From 1337054af111958d373cbc2ac89d45b4fa94fd5f Mon Sep 17 00:00:00 2001 From: Travis Cline Date: Fri, 21 Jun 2024 11:20:40 +0200 Subject: [PATCH] macos: Regenerate --- .../accessibility_button_protocol.gen.go | 32 +- ...lity_contains_transient_ui_protocol.gen.go | 32 +- .../appkit/accessibility_custom_action.gen.go | 48 +- .../appkit/accessibility_custom_rotor.gen.go | 34 +- ...essibility_custom_rotor_item_result.gen.go | 65 +- ...lity_custom_rotor_search_parameters.gen.go | 34 +- macos/appkit/accessibility_element.gen.go | 37 +- ...essibility_element_loading_protocol.gen.go | 32 +- .../accessibility_element_protocol.gen.go | 132 - .../accessibility_layout_area_protocol.gen.go | 32 +- ...lity_navigable_static_text_protocol.gen.go | 32 +- macos/appkit/accessibility_protocol.gen.go | 4206 ++++++++--------- .../accessibility_slider_protocol.gen.go | 64 +- .../accessibility_stepper_protocol.gen.go | 48 +- .../accessibility_switch_protocol.gen.go | 32 +- .../accessibility_table_protocol.gen.go | 178 +- macos/appkit/alert.gen.go | 194 +- macos/appkit/aliastypes.gen.go | 3 +- macos/appkit/alignment_feedback_filter.gen.go | 38 +- ...matable_property_container_protocol.gen.go | 32 +- macos/appkit/animation.gen.go | 152 +- macos/appkit/animation_context.gen.go | 114 +- macos/appkit/animation_delegate.gen.go | 138 +- macos/appkit/appearance.gen.go | 34 +- macos/appkit/application.gen.go | 1029 ++-- macos/appkit/application_delegate.gen.go | 1515 ++---- macos/appkit/array_controller.gen.go | 364 +- macos/appkit/ats_typesetter.gen.go | 9 + macos/appkit/bezier_path.gen.go | 711 ++- macos/appkit/bitmap_image_rep.gen.go | 375 +- macos/appkit/box.gen.go | 218 +- macos/appkit/browser.gen.go | 1092 ++--- macos/appkit/browser_cell.gen.go | 90 +- macos/appkit/browser_delegate.gen.go | 1098 +---- macos/appkit/button.gen.go | 504 +- macos/appkit/button_cell.gen.go | 304 +- macos/appkit/button_touch_bar_item.gen.go | 116 +- .../candidate_list_touch_bar_item.gen.go | 88 +- ...didate_list_touch_bar_item_delegate.gen.go | 101 +- macos/appkit/cell.gen.go | 1300 ++--- macos/appkit/ci_image_rep.gen.go | 24 +- macos/appkit/click_gesture_recognizer.gen.go | 40 +- macos/appkit/clip_view.gen.go | 114 +- .../cloud_sharing_service_delegate.gen.go | 128 +- macos/appkit/collection_layout_anchor.gen.go | 32 +- ..._layout_boundary_supplementary_item.gen.go | 82 +- ...ollection_layout_container_protocol.gen.go | 46 +- .../collection_layout_decoration_item.gen.go | 12 - .../appkit/collection_layout_dimension.gen.go | 84 +- .../collection_layout_edge_spacing.gen.go | 28 +- macos/appkit/collection_layout_group.gen.go | 66 +- ...collection_layout_group_custom_item.gen.go | 24 +- macos/appkit/collection_layout_item.gen.go | 48 +- macos/appkit/collection_layout_section.gen.go | 108 +- macos/appkit/collection_layout_spacing.gen.go | 42 +- ...ollection_layout_supplementary_item.gen.go | 42 +- ...ection_layout_visible_item_protocol.gen.go | 189 +- macos/appkit/collection_view.gen.go | 605 ++- ...ollection_view_compositional_layout.gen.go | 28 - ..._compositional_layout_configuration.gen.go | 34 +- ...ollection_view_data_source_protocol.gen.go | 49 +- macos/appkit/collection_view_delegate.gen.go | 815 +--- ...ollection_view_delegate_flow_layout.gen.go | 172 +- .../collection_view_element_protocol.gen.go | 30 +- .../appkit/collection_view_flow_layout.gen.go | 172 +- ...ew_flow_layout_invalidation_context.gen.go | 34 +- .../appkit/collection_view_grid_layout.gen.go | 108 +- macos/appkit/collection_view_item.gen.go | 74 +- macos/appkit/collection_view_layout.gen.go | 313 +- .../collection_view_layout_attributes.gen.go | 144 +- ...on_view_layout_invalidation_context.gen.go | 100 +- ...ollection_view_prefetching_protocol.gen.go | 15 - .../collection_view_transition_layout.gen.go | 36 +- .../appkit/collection_view_update_item.gen.go | 18 +- macos/appkit/color.gen.go | 1680 ++++--- macos/appkit/color_list.gen.go | 92 +- macos/appkit/color_panel.gen.go | 178 +- macos/appkit/color_picker.gen.go | 66 +- .../appkit/color_picker_touch_bar_item.gen.go | 134 +- .../color_picking_custom_protocol.gen.go | 62 +- .../color_picking_default_protocol.gen.go | 130 +- macos/appkit/color_space.gen.go | 206 +- macos/appkit/color_well.gen.go | 28 +- macos/appkit/combo_box.gen.go | 310 +- macos/appkit/combo_box_cell.gen.go | 272 +- ...combo_box_cell_data_source_protocol.gen.go | 32 - .../combo_box_data_source_protocol.gen.go | 64 +- macos/appkit/combo_box_delegate.gen.go | 118 +- macos/appkit/control.gen.go | 542 +-- .../control_text_editing_delegate.gen.go | 247 +- macos/appkit/controller.gen.go | 22 +- macos/appkit/cursor.gen.go | 364 +- macos/appkit/custom_image_rep.gen.go | 18 +- macos/appkit/data_asset.gen.go | 15 - macos/appkit/date_picker.gen.go | 284 +- macos/appkit/date_picker_cell.gen.go | 252 +- macos/appkit/dictionary_controller.gen.go | 88 +- ...ictionary_controller_key_value_pair.gen.go | 42 +- .../diffable_data_source_snapshot.gen.go | 202 +- macos/appkit/dock_tile.gen.go | 70 +- .../appkit/dock_tile_plug_in_protocol.gen.go | 30 +- macos/appkit/document.gen.go | 1389 +++--- macos/appkit/document_controller.gen.go | 364 +- .../dragging_destination_protocol.gen.go | 100 +- macos/appkit/dragging_info_protocol.gen.go | 206 +- macos/appkit/dragging_item.gen.go | 18 +- macos/appkit/dragging_session.gen.go | 48 +- macos/appkit/dragging_source_protocol.gen.go | 46 - macos/appkit/editor_protocol.gen.go | 28 +- .../editor_registration_protocol.gen.go | 28 +- macos/appkit/enumtypes.gen.go | 141 +- macos/appkit/enumtypes_amd64.gen.go | 3 - macos/appkit/enumtypes_arm64.gen.go | 3 - macos/appkit/event.gen.go | 852 ++-- macos/appkit/file_promise_provider.gen.go | 34 +- .../file_promise_provider_delegate.gen.go | 75 +- macos/appkit/file_promise_receiver.gen.go | 32 +- macos/appkit/font.gen.go | 659 ++- macos/appkit/font_asset_request.gen.go | 14 +- macos/appkit/font_changing_protocol.gen.go | 30 +- macos/appkit/font_collection.gen.go | 132 +- macos/appkit/font_descriptor.gen.go | 155 +- macos/appkit/font_manager.gen.go | 339 +- macos/appkit/font_panel.gen.go | 86 +- macos/appkit/form.gen.go | 28 - macos/appkit/form_cell.gen.go | 122 +- macos/appkit/gesture_recognizer.gen.go | 468 +- .../appkit/gesture_recognizer_delegate.gen.go | 176 +- macos/appkit/glyph_storage_protocol.gen.go | 46 +- macos/appkit/gradient.gen.go | 72 +- macos/appkit/graphics_context.gen.go | 258 +- macos/appkit/grid_cell.gen.go | 90 +- macos/appkit/grid_column.gen.go | 80 +- macos/appkit/grid_row.gen.go | 100 +- macos/appkit/grid_view.gen.go | 220 +- macos/appkit/group_touch_bar_item.gen.go | 108 +- macos/appkit/help_manager.gen.go | 66 +- macos/appkit/image.gen.go | 606 ++- macos/appkit/image_cell.gen.go | 34 +- macos/appkit/image_rep.gen.go | 347 +- .../appkit/image_symbol_configuration.gen.go | 72 +- macos/appkit/image_view.gen.go | 136 +- macos/appkit/layout_anchor.gen.go | 55 +- macos/appkit/layout_constraint.gen.go | 140 +- macos/appkit/layout_dimension.gen.go | 73 +- macos/appkit/layout_guide.gen.go | 138 +- macos/appkit/layout_manager.gen.go | 1146 ++--- macos/appkit/layout_manager_delegate.gen.go | 413 +- macos/appkit/layout_x_axis_anchor.gen.go | 28 +- macos/appkit/layout_y_axis_anchor.gen.go | 36 +- macos/appkit/level_indicator.gen.go | 268 +- macos/appkit/level_indicator_cell.gen.go | 128 +- macos/appkit/matrix.gen.go | 855 ++-- .../media_library_browser_controller.gen.go | 30 +- macos/appkit/menu.gen.go | 482 +- macos/appkit/menu_delegate.gen.go | 244 +- macos/appkit/menu_item.gen.go | 493 +- macos/appkit/menu_item_cell.gen.go | 100 +- macos/appkit/menu_toolbar_item.gen.go | 34 +- macos/appkit/mutable_font_collection.gen.go | 16 +- macos/appkit/mutable_paragraph_style.gen.go | 200 +- macos/appkit/nib.gen.go | 24 +- macos/appkit/nib_connector.gen.go | 32 +- macos/appkit/object_controller.gen.go | 216 +- macos/appkit/open_gl_layer.gen.go | 52 +- macos/appkit/open_panel.gen.go | 140 +- macos/appkit/open_save_panel_delegate.gen.go | 140 +- macos/appkit/outline_view.gen.go | 230 +- .../outline_view_data_source_protocol.gen.go | 207 - macos/appkit/outline_view_delegate.gen.go | 1244 +---- macos/appkit/page_controller.gen.go | 104 +- macos/appkit/page_controller_delegate.gen.go | 178 +- macos/appkit/page_layout.gen.go | 44 +- macos/appkit/pan_gesture_recognizer.gen.go | 44 +- macos/appkit/panel.gen.go | 44 +- macos/appkit/paragraph_style.gen.go | 206 +- macos/appkit/pasteboard.gen.go | 262 +- macos/appkit/pasteboard_item.gen.go | 70 +- ...teboard_item_data_provider_protocol.gen.go | 30 +- .../pasteboard_type_owner_protocol.gen.go | 30 +- macos/appkit/path_cell.gen.go | 216 +- macos/appkit/path_cell_delegate.gen.go | 37 +- macos/appkit/path_control.gen.go | 194 +- macos/appkit/path_control_delegate.gen.go | 172 +- macos/appkit/path_control_item.gen.go | 46 +- macos/appkit/pdf_image_rep.gen.go | 18 +- macos/appkit/pdf_info.gen.go | 78 +- macos/appkit/pdf_panel.gen.go | 34 +- macos/appkit/persistent_document.gen.go | 35 +- macos/appkit/picker_touch_bar_item.gen.go | 168 +- macos/appkit/pict_image_rep.gen.go | 24 +- macos/appkit/pop_up_button.gen.go | 316 +- macos/appkit/pop_up_button_cell.gen.go | 332 +- macos/appkit/popover.gen.go | 164 +- macos/appkit/popover_delegate.gen.go | 248 +- macos/appkit/popover_touch_bar_item.gen.go | 132 +- .../predicate_editor_row_template.gen.go | 144 +- macos/appkit/press_gesture_recognizer.gen.go | 40 +- macos/appkit/print_info.gen.go | 380 +- macos/appkit/print_operation.gen.go | 297 +- macos/appkit/print_panel.gen.go | 118 +- .../print_panel_accessorizing_protocol.gen.go | 32 +- macos/appkit/printer.gen.go | 59 +- macos/appkit/progress_indicator.gen.go | 150 +- macos/appkit/protocols.gen.m | 2 - macos/appkit/responder.gen.go | 645 ++- .../appkit/rotation_gesture_recognizer.gen.go | 34 +- macos/appkit/rule_editor.gen.go | 354 +- macos/appkit/rule_editor_delegate.gen.go | 106 +- macos/appkit/ruler_marker.gen.go | 140 +- macos/appkit/ruler_view.gen.go | 258 +- macos/appkit/running_application.gen.go | 176 +- macos/appkit/save_panel.gen.go | 306 +- macos/appkit/screen.gen.go | 218 +- macos/appkit/scroll_view.gen.go | 735 ++- macos/appkit/scroller.gen.go | 131 +- macos/appkit/scrubber.gen.go | 388 +- macos/appkit/scrubber_arranged_view.gen.go | 34 +- .../scrubber_data_source_protocol.gen.go | 32 +- macos/appkit/scrubber_delegate.gen.go | 167 +- macos/appkit/scrubber_layout.gen.go | 94 +- .../appkit/scrubber_layout_attributes.gen.go | 34 +- macos/appkit/scrubber_selection_style.gen.go | 30 +- macos/appkit/search_field.gen.go | 150 +- macos/appkit/search_field_cell.gen.go | 160 +- macos/appkit/secure_text_field.gen.go | 24 +- macos/appkit/segmented_cell.gen.go | 242 +- macos/appkit/segmented_control.gen.go | 336 +- macos/appkit/segue_performing_protocol.gen.go | 30 +- macos/appkit/shadow.gen.go | 22 +- macos/appkit/sharing_service.gen.go | 158 +- macos/appkit/sharing_service_delegate.gen.go | 206 +- .../sharing_service_picker_delegate.gen.go | 70 +- macos/appkit/slider.gen.go | 170 +- macos/appkit/slider_accessory.gen.go | 28 +- macos/appkit/slider_accessory_behavior.gen.go | 36 +- macos/appkit/slider_cell.gen.go | 222 +- macos/appkit/slider_touch_bar_item.gen.go | 156 +- macos/appkit/sound.gen.go | 182 +- macos/appkit/speech_recognizer.gen.go | 78 +- macos/appkit/spell_checker.gen.go | 499 +- macos/appkit/split_view.gen.go | 206 +- macos/appkit/split_view_controller.gen.go | 114 +- macos/appkit/split_view_delegate.gen.go | 313 +- macos/appkit/split_view_item.gen.go | 234 +- ...spring_loading_destination_protocol.gen.go | 84 +- macos/appkit/stack_view.gen.go | 260 +- macos/appkit/stack_view_delegate.gen.go | 33 - ...ard_key_binding_responding_protocol.gen.go | 1436 +++--- macos/appkit/status_bar.gen.go | 40 +- macos/appkit/status_bar_button.gen.go | 24 +- macos/appkit/status_item.gen.go | 54 +- macos/appkit/stepper.gen.go | 34 +- macos/appkit/stepper_cell.gen.go | 74 +- macos/appkit/stepper_touch_bar_item.gen.go | 72 +- macos/appkit/storyboard.gen.go | 27 +- macos/appkit/storyboard_segue.gen.go | 42 +- macos/appkit/string_drawing_context.gen.go | 26 +- macos/appkit/tab_view.gen.go | 246 +- macos/appkit/tab_view_controller.gen.go | 183 +- macos/appkit/tab_view_delegate.gen.go | 67 - macos/appkit/tab_view_item.gen.go | 170 +- macos/appkit/table_cell_view.gen.go | 86 +- macos/appkit/table_column.gen.go | 174 +- macos/appkit/table_header_view.gen.go | 44 +- macos/appkit/table_row_view.gen.go | 236 +- macos/appkit/table_view.gen.go | 1322 +++--- .../table_view_data_source_protocol.gen.go | 127 - macos/appkit/table_view_delegate.gen.go | 933 +--- .../table_view_diffable_data_source.gen.go | 56 +- macos/appkit/table_view_row_action.gen.go | 36 +- macos/appkit/text.gen.go | 624 ++- macos/appkit/text_alternatives.gen.go | 18 +- macos/appkit/text_attachment.gen.go | 215 +- macos/appkit/text_attachment_cell.gen.go | 46 +- .../text_attachment_cell_protocol.gen.go | 224 - .../text_attachment_layout_protocol.gen.go | 34 +- .../text_attachment_view_provider.gen.go | 46 +- macos/appkit/text_block.gen.go | 146 +- .../text_checking_client_protocol.gen.go | 102 +- macos/appkit/text_checking_controller.gen.go | 108 +- macos/appkit/text_container.gen.go | 165 +- macos/appkit/text_content_manager.gen.go | 106 +- .../text_content_manager_delegate.gen.go | 36 +- macos/appkit/text_content_storage.gen.go | 58 +- macos/appkit/text_delegate.gen.go | 122 +- macos/appkit/text_element.gen.go | 34 +- .../text_element_provider_protocol.gen.go | 82 +- macos/appkit/text_field.gen.go | 414 +- macos/appkit/text_field_cell.gen.go | 88 +- macos/appkit/text_field_delegate.gen.go | 69 - macos/appkit/text_finder.gen.go | 94 +- .../text_finder_bar_container_protocol.gen.go | 78 +- .../appkit/text_finder_client_protocol.gen.go | 174 +- .../appkit/text_input_client_protocol.gen.go | 240 +- macos/appkit/text_input_context.gen.go | 102 +- .../appkit/text_input_traits_protocol.gen.go | 174 +- macos/appkit/text_layout_fragment.gen.go | 136 +- macos/appkit/text_layout_manager.gen.go | 330 +- .../text_layout_manager_delegate.gen.go | 73 +- macos/appkit/text_line_fragment.gen.go | 44 +- macos/appkit/text_list.gen.go | 18 +- macos/appkit/text_range.gen.go | 78 +- macos/appkit/text_selection.gen.go | 96 +- ...text_selection_data_source_protocol.gen.go | 118 +- macos/appkit/text_selection_navigation.gen.go | 87 +- macos/appkit/text_storage.gen.go | 398 +- macos/appkit/text_storage_delegate.gen.go | 35 +- macos/appkit/text_tab.gen.go | 18 +- macos/appkit/text_table.gen.go | 78 +- macos/appkit/text_table_block.gen.go | 28 +- macos/appkit/text_view.gen.go | 1802 ++++--- macos/appkit/text_view_delegate.gen.go | 864 +--- .../text_viewport_layout_controller.gen.go | 48 +- ...viewport_layout_controller_delegate.gen.go | 106 +- macos/appkit/tint_configuration.gen.go | 72 +- .../titlebar_accessory_view_controller.gen.go | 28 +- macos/appkit/token_field.gen.go | 94 +- macos/appkit/token_field_cell.gen.go | 100 +- macos/appkit/token_field_cell_delegate.gen.go | 308 +- macos/appkit/token_field_delegate.gen.go | 308 +- macos/appkit/toolbar.gen.go | 208 +- macos/appkit/toolbar_delegate.gen.go | 144 +- macos/appkit/toolbar_item.gen.go | 264 +- macos/appkit/toolbar_item_group.gen.go | 62 +- macos/appkit/touch.gen.go | 64 +- macos/appkit/touch_bar.gen.go | 136 +- macos/appkit/touch_bar_item.gen.go | 36 +- macos/appkit/tracking_area.gen.go | 18 +- macos/appkit/tree_controller.gen.go | 338 +- macos/appkit/tree_node.gen.go | 46 +- macos/appkit/typesetter.gen.go | 490 +- macos/appkit/user_defaults_controller.gen.go | 82 +- .../user_interface_compression_options.gen.go | 122 +- ...user_interface_compression_protocol.gen.go | 30 +- ...r_interface_item_searching_protocol.gen.go | 30 +- macos/appkit/view.gen.go | 3015 ++++++------ macos/appkit/view_controller.gen.go | 406 +- ...ller_presentation_animator_protocol.gen.go | 30 +- macos/appkit/visual_effect_view.gen.go | 92 +- macos/appkit/window.gen.go | 3033 ++++++------ macos/appkit/window_controller.gen.go | 238 +- macos/appkit/window_delegate.gen.go | 1814 +++---- macos/appkit/window_tab.gen.go | 40 +- macos/appkit/window_tab_group.gen.go | 66 +- macos/appkit/workspace.gen.go | 418 +- .../workspace_open_configuration.gen.go | 168 +- macos/avfoundation/asset.gen.go | 308 +- .../asset_download_configuration.gen.go | 44 +- .../asset_download_delegate.gen.go | 201 +- .../asset_download_url_session.gen.go | 43 +- .../avfoundation/asset_export_session.gen.go | 340 +- .../avfoundation/asset_image_generator.gen.go | 110 +- macos/avfoundation/asset_reader.gen.go | 62 +- .../asset_reader_audio_mix_output.gen.go | 18 +- macos/avfoundation/asset_reader_output.gen.go | 50 +- ...asset_reader_output_caption_adaptor.gen.go | 42 +- ...sset_reader_sample_reference_output.gen.go | 24 +- .../asset_reader_track_output.gen.go | 18 +- ...set_reader_video_composition_output.gen.go | 42 +- .../asset_resource_loader_delegate.gen.go | 137 +- ...loading_content_information_request.gen.go | 58 +- ...asset_resource_loading_data_request.gen.go | 38 +- .../asset_resource_loading_request.gen.go | 72 +- .../avfoundation/asset_segment_report.gen.go | 18 +- ...t_segment_report_sample_information.gen.go | 18 +- .../asset_segment_track_report.gen.go | 28 +- macos/avfoundation/asset_track.gen.go | 284 +- macos/avfoundation/asset_variant.gen.go | 18 +- .../asset_variant_qualifier.gen.go | 54 +- .../asset_variant_video_attributes.gen.go | 36 +- macos/avfoundation/asset_writer.gen.go | 372 +- .../avfoundation/asset_writer_delegate.gen.go | 35 +- macos/avfoundation/asset_writer_input.gen.go | 350 +- .../asset_writer_input_caption_adaptor.gen.go | 24 +- .../asset_writer_input_group.gen.go | 18 +- ...t_writer_input_pixel_buffer_adaptor.gen.go | 20 +- ...chronous_ci_image_filtering_request.gen.go | 18 +- ...chronous_key_value_loading_protocol.gen.go | 30 +- ...nchronous_video_composition_request.gen.go | 64 +- .../audio_mix_input_parameters.gen.go | 20 +- .../camera_calibration_data.gen.go | 66 +- macos/avfoundation/caption.gen.go | 76 +- .../caption_conversion_validator.gen.go | 20 +- .../caption_conversion_warning.gen.go | 20 +- macos/avfoundation/caption_group.gen.go | 18 +- macos/avfoundation/caption_grouper.gen.go | 16 +- macos/avfoundation/caption_region.gen.go | 118 +- macos/avfoundation/caption_renderer.gen.go | 16 +- .../caption_renderer_scene.gen.go | 18 +- macos/avfoundation/caption_ruby.gen.go | 32 +- .../avfoundation/capture_audio_channel.gen.go | 34 +- .../capture_audio_data_output.gen.go | 28 +- .../capture_audio_file_output.gen.go | 50 +- .../capture_audio_preview_output.gen.go | 34 +- macos/avfoundation/capture_connection.gen.go | 214 +- macos/avfoundation/capture_device.gen.go | 860 ++-- .../avfoundation/capture_device_format.gen.go | 94 +- macos/avfoundation/capture_file_output.gen.go | 126 +- .../capture_file_output_delegate.gen.go | 6 +- ...ture_file_output_recording_delegate.gen.go | 134 +- macos/avfoundation/capture_input_port.gen.go | 52 +- .../capture_movie_file_output.gen.go | 73 +- macos/avfoundation/capture_output.gen.go | 18 +- macos/avfoundation/capture_photo.gen.go | 28 +- .../capture_photo_capture_delegate.gen.go | 135 +- .../avfoundation/capture_photo_output.gen.go | 56 +- .../capture_photo_settings.gen.go | 42 +- .../capture_resolved_photo_settings.gen.go | 18 +- .../avfoundation/capture_screen_input.gen.go | 60 +- macos/avfoundation/capture_session.gen.go | 160 +- .../capture_video_data_output.gen.go | 38 +- ..._data_output_sample_buffer_delegate.gen.go | 33 - .../capture_video_preview_layer.gen.go | 142 +- macos/avfoundation/composition.gen.go | 38 +- ...rack_format_description_replacement.gen.go | 18 +- .../composition_track_segment.gen.go | 52 +- macos/avfoundation/content_key_request.gen.go | 101 +- .../avfoundation/content_key_response.gen.go | 24 +- macos/avfoundation/content_key_session.gen.go | 186 +- .../content_key_session_delegate.gen.go | 242 +- .../avfoundation/content_key_specifier.gen.go | 42 +- .../coordinated_playback_participant.gen.go | 18 +- .../date_range_metadata_group.gen.go | 18 +- .../delegating_playback_coordinator.gen.go | 26 +- ..._playback_coordinator_pause_command.gen.go | 18 +- ...oordinator_playback_control_command.gen.go | 18 +- ...g_playback_coordinator_seek_command.gen.go | 36 +- macos/avfoundation/depth_data.gen.go | 104 +- .../fragmented_asset_minder.gen.go | 18 +- macos/avfoundation/fragmented_movie.gen.go | 48 +- .../fragmented_movie_minder.gen.go | 16 +- macos/avfoundation/frame_rate_range.gen.go | 20 +- macos/avfoundation/media_selection.gen.go | 18 +- .../avfoundation/media_selection_group.gen.go | 89 +- .../media_selection_option.gen.go | 84 +- .../avfoundation/metadata_face_object.gen.go | 18 +- macos/avfoundation/metadata_group.gen.go | 18 +- macos/avfoundation/metadata_item.gen.go | 242 +- .../metadata_item_value_request.gen.go | 16 +- ...tadata_machine_readable_code_object.gen.go | 18 +- macos/avfoundation/metadata_object.gen.go | 18 +- macos/avfoundation/movie.gen.go | 112 +- macos/avfoundation/movie_track.gen.go | 18 +- ..._download_storage_management_policy.gen.go | 16 +- .../mutable_audio_mix_input_parameters.gen.go | 56 +- macos/avfoundation/mutable_caption.gen.go | 152 +- .../mutable_caption_region.gen.go | 42 +- macos/avfoundation/mutable_composition.gen.go | 26 +- .../mutable_composition_track.gen.go | 104 +- .../mutable_date_range_metadata_group.gen.go | 16 +- .../avfoundation/mutable_metadata_item.gen.go | 78 +- macos/avfoundation/mutable_movie.gen.go | 228 +- macos/avfoundation/mutable_movie_track.gen.go | 316 +- .../mutable_timed_metadata_group.gen.go | 24 +- .../mutable_video_composition.gen.go | 72 +- ...table_video_composition_instruction.gen.go | 26 +- ...video_composition_layer_instruction.gen.go | 54 +- .../output_settings_assistant.gen.go | 74 +- .../avfoundation/playback_coordinator.gen.go | 44 +- ...ordinator_playback_control_delegate.gen.go | 101 +- macos/avfoundation/player.gen.go | 440 +- .../player_interstitial_event.gen.go | 68 +- .../player_interstitial_event_monitor.gen.go | 28 +- macos/avfoundation/player_item.gen.go | 867 ++-- .../player_item_access_log.gen.go | 18 +- .../player_item_access_log_event.gen.go | 228 +- .../player_item_error_log_event.gen.go | 56 +- .../player_item_legible_output.gen.go | 52 +- .../player_item_metadata_output.gen.go | 18 +- macos/avfoundation/player_item_output.gen.go | 20 +- .../player_item_output_pull_delegate.gen.go | 66 +- macos/avfoundation/player_item_track.gen.go | 38 +- .../player_item_video_output.gen.go | 82 +- macos/avfoundation/player_layer.gen.go | 100 +- macos/avfoundation/player_looper.gen.go | 48 +- .../player_media_selection_criteria.gen.go | 42 +- ...layer_playback_coordinator_delegate.gen.go | 37 +- .../portrait_effects_matte.gen.go | 24 +- macos/avfoundation/protocols.gen.m | 1 - macos/avfoundation/queue_player.gen.go | 90 +- ...ed_sample_buffer_rendering_protocol.gen.go | 78 +- macos/avfoundation/route_detector.gen.go | 18 +- .../sample_buffer_audio_renderer.gen.go | 78 +- .../sample_buffer_display_layer.gen.go | 102 +- .../sample_buffer_render_synchronizer.gen.go | 94 +- .../avfoundation/sample_buffer_request.gen.go | 94 +- macos/avfoundation/sample_cursor.gen.go | 168 +- .../semantic_segmentation_matte.gen.go | 42 +- macos/avfoundation/synchronized_layer.gen.go | 52 +- macos/avfoundation/text_style_rule.gen.go | 59 +- .../avfoundation/timed_metadata_group.gen.go | 24 +- macos/avfoundation/url_asset.gen.go | 60 +- .../video_compositing_protocol.gen.go | 96 +- macos/avfoundation/video_composition.gen.go | 100 +- ...deo_composition_core_animation_tool.gen.go | 24 - .../video_composition_instruction.gen.go | 70 +- ...eo_composition_instruction_protocol.gen.go | 151 - ...video_composition_layer_instruction.gen.go | 18 +- .../video_composition_render_context.gen.go | 46 +- ...sition_validation_handling_protocol.gen.go | 48 - macos/avkit/capture_view.gen.go | 62 +- .../picture_in_picture_controller.gen.go | 152 +- ...n_picture_controller_content_source.gen.go | 18 +- ...ture_in_picture_controller_delegate.gen.go | 74 +- ...ure_sample_buffer_playback_delegate.gen.go | 144 +- macos/avkit/player_view.gen.go | 212 +- macos/avkit/player_view_delegate.gen.go | 130 +- ...er_view_picture_in_picture_delegate.gen.go | 212 +- macos/avkit/route_picker_view.gen.go | 34 +- macos/avkit/route_picker_view_delegate.gen.go | 66 +- macos/cloudkit/accept_shares_operation.gen.go | 44 +- macos/cloudkit/container.gen.go | 120 +- macos/cloudkit/database.gen.go | 104 +- macos/cloudkit/database_subscription.gen.go | 20 +- .../fetch_database_changes_operation.gen.go | 122 +- ...h_record_zone_changes_configuration.gen.go | 40 +- ...fetch_record_zone_changes_operation.gen.go | 88 +- .../fetch_record_zones_operation.gen.go | 44 +- macos/cloudkit/fetch_records_operation.gen.go | 102 +- .../fetch_share_metadata_operation.gen.go | 68 +- .../fetch_share_participants_operation.gen.go | 44 +- .../fetch_subscriptions_operation.gen.go | 44 +- .../fetch_web_auth_token_operation.gen.go | 44 +- .../cloudkit/location_sort_descriptor.gen.go | 52 - .../modify_record_zones_operation.gen.go | 54 +- .../cloudkit/modify_records_operation.gen.go | 156 +- .../modify_subscriptions_operation.gen.go | 86 +- macos/cloudkit/notification.gen.go | 48 +- macos/cloudkit/notification_info.gen.go | 310 +- macos/cloudkit/operation.gen.go | 44 +- macos/cloudkit/operation_configuration.gen.go | 74 +- macos/cloudkit/operation_group.gen.go | 68 +- macos/cloudkit/query.gen.go | 34 +- macos/cloudkit/query_notification.gen.go | 20 +- macos/cloudkit/query_operation.gen.go | 84 +- macos/cloudkit/query_subscription.gen.go | 32 +- macos/cloudkit/record.gen.go | 215 +- macos/cloudkit/record_id.gen.go | 32 +- .../record_key_value_setting_protocol.gen.go | 66 +- macos/cloudkit/record_zone.gen.go | 18 +- .../cloudkit/record_zone_subscription.gen.go | 32 +- macos/cloudkit/share.gen.go | 78 +- macos/cloudkit/share_metadata.gen.go | 66 +- macos/cloudkit/share_participant.gen.go | 18 +- macos/cloudkit/subscription.gen.go | 18 +- macos/cloudkit/user_identity.gen.go | 36 +- .../cloudkit/user_identity_lookup_info.gen.go | 76 +- .../change_history_add_contact_event.gen.go | 14 +- .../change_history_add_group_event.gen.go | 14 +- ...e_history_add_member_to_group_event.gen.go | 14 +- ...ange_history_event_visitor_protocol.gen.go | 140 +- .../change_history_fetch_request.gen.go | 66 +- ...tory_remove_member_from_group_event.gen.go | 14 +- macos/contacts/contact.gen.go | 404 +- macos/contacts/contact_fetch_request.gen.go | 74 +- macos/contacts/contact_formatter.gen.go | 108 +- macos/contacts/contact_property.gen.go | 20 +- macos/contacts/contact_relation.gen.go | 24 +- macos/contacts/contact_store.gen.go | 108 +- .../contact_v_card_serialization.gen.go | 30 +- macos/contacts/container.gen.go | 40 +- macos/contacts/fetch_result.gen.go | 14 +- macos/contacts/group.gen.go | 50 +- macos/contacts/labeled_value.gen.go | 46 +- macos/contacts/mutable_contact.gen.go | 240 +- macos/contacts/mutable_postal_address.gen.go | 46 +- macos/contacts/postal_address.gen.go | 66 +- .../contacts/postal_address_formatter.gen.go | 40 +- macos/contacts/save_request.gen.go | 80 +- macos/contactsui/contact_picker.gen.go | 34 +- .../contactsui/contact_picker_delegate.gen.go | 107 +- .../contactsui/contact_view_controller.gen.go | 8 - macos/coreaudiotypes/enumtypes.gen.go | 4 +- macos/coredata/atomic_store.gen.go | 98 +- macos/coredata/atomic_store_cache_node.gen.go | 18 +- macos/coredata/attribute_description.gen.go | 110 +- macos/coredata/batch_insert_request.gen.go | 140 +- macos/coredata/batch_update_request.gen.go | 100 +- macos/coredata/batch_update_result.gen.go | 18 +- macos/coredata/constraint_conflict.gen.go | 56 +- .../core_data_core_spotlight_delegate.gen.go | 52 +- macos/coredata/entity_description.gen.go | 270 +- macos/coredata/entity_mapping.gen.go | 208 +- macos/coredata/entity_migration_policy.gen.go | 58 +- macos/coredata/fetch_index_description.gen.go | 34 +- .../fetch_index_element_description.gen.go | 36 +- macos/coredata/fetch_request.gen.go | 330 +- .../coredata/fetch_request_expression.gen.go | 18 +- .../fetched_results_controller.gen.go | 88 +- ...fetched_results_controller_delegate.gen.go | 139 +- ...tched_results_section_info_protocol.gen.go | 48 +- macos/coredata/incremental_store.gen.go | 86 +- macos/coredata/incremental_store_node.gen.go | 28 +- macos/coredata/managed_object.gen.go | 365 +- macos/coredata/managed_object_context.gen.go | 492 +- macos/coredata/managed_object_id.gen.go | 18 +- macos/coredata/managed_object_model.gen.go | 172 +- macos/coredata/mapping_model.gen.go | 18 +- macos/coredata/merge_conflict.gen.go | 28 +- macos/coredata/merge_policy.gen.go | 82 +- macos/coredata/migration_manager.gen.go | 146 +- .../persistent_cloud_kit_container.gen.go | 150 +- ...ersistent_cloud_kit_container_event.gen.go | 46 +- ...t_cloud_kit_container_event_request.gen.go | 24 +- ...nt_cloud_kit_container_event_result.gen.go | 18 +- ...sistent_cloud_kit_container_options.gen.go | 18 +- macos/coredata/persistent_container.gen.go | 108 +- .../coredata/persistent_history_change.gen.go | 76 +- .../persistent_history_change_request.gen.go | 94 +- .../persistent_history_transaction.gen.go | 116 +- macos/coredata/persistent_store.gen.go | 114 +- ...ersistent_store_asynchronous_result.gen.go | 18 +- .../persistent_store_coordinator.gen.go | 165 +- .../persistent_store_description.gen.go | 152 +- macos/coredata/property_description.gen.go | 158 +- macos/coredata/property_mapping.gen.go | 34 +- .../coredata/relationship_description.gen.go | 44 +- macos/coredata/save_changes_request.gen.go | 38 +- macos/corefoundation/enumtypes.gen.go | 6 +- macos/coregraphics/aliastypes.gen.go | 2 +- macos/coregraphics/enumtypes.gen.go | 2 +- .../accordion_fold_transition_protocol.gen.go | 64 +- macos/coreimage/affine_clamp_protocol.gen.go | 62 +- macos/coreimage/affine_tile_protocol.gen.go | 62 +- macos/coreimage/aliastypes.gen.go | 2 +- .../area_reduction_filter_protocol.gen.go | 56 +- macos/coreimage/aztec_code_descriptor.gen.go | 36 +- .../aztec_code_generator_protocol.gen.go | 124 +- .../bars_swipe_transition_protocol.gen.go | 64 +- .../bicubic_scale_transform_protocol.gen.go | 126 +- macos/coreimage/blend_kernel.gen.go | 657 ++- .../coreimage/blend_with_mask_protocol.gen.go | 62 +- macos/coreimage/bloom_protocol.gen.go | 62 +- macos/coreimage/bokeh_blur_protocol.gen.go | 126 +- macos/coreimage/box_blur_protocol.gen.go | 62 +- .../bump_distortion_linear_protocol.gen.go | 112 +- .../coreimage/bump_distortion_protocol.gen.go | 56 +- .../checkerboard_generator_protocol.gen.go | 126 +- .../circle_splash_distortion_protocol.gen.go | 62 +- .../coreimage/circular_screen_protocol.gen.go | 62 +- macos/coreimage/circular_wrap_protocol.gen.go | 112 +- macos/coreimage/cmyk_halftone_protocol.gen.go | 218 +- .../code128_barcode_generator_protocol.gen.go | 62 +- macos/coreimage/color.gen.go | 318 +- .../color_absolute_difference_protocol.gen.go | 56 +- macos/coreimage/color_clamp_protocol.gen.go | 64 +- .../coreimage/color_controls_protocol.gen.go | 62 +- .../color_cross_polynomial_protocol.gen.go | 94 +- macos/coreimage/color_cube_protocol.gen.go | 64 +- ...olor_cube_with_color_space_protocol.gen.go | 62 +- ...olor_cubes_mixed_with_mask_protocol.gen.go | 124 +- macos/coreimage/color_curves_protocol.gen.go | 124 +- macos/coreimage/color_kernel.gen.go | 12 - macos/coreimage/color_matrix_protocol.gen.go | 62 +- .../color_monochrome_protocol.gen.go | 62 +- .../color_polynomial_protocol.gen.go | 124 +- .../coreimage/color_posterize_protocol.gen.go | 62 +- .../coreimage/color_threshold_protocol.gen.go | 56 +- macos/coreimage/context.gen.go | 383 +- macos/coreimage/convolution_protocol.gen.go | 62 +- .../copy_machine_transition_protocol.gen.go | 64 +- macos/coreimage/core_ml_model_protocol.gen.go | 124 +- macos/coreimage/crystallize_protocol.gen.go | 62 +- .../coreimage/depth_of_field_protocol.gen.go | 218 +- macos/coreimage/detector.gen.go | 25 +- macos/coreimage/disc_blur_protocol.gen.go | 62 +- ...grate_with_mask_transition_protocol.gen.go | 94 +- .../displacement_distortion_protocol.gen.go | 56 +- macos/coreimage/dither_protocol.gen.go | 62 +- .../document_enhancer_protocol.gen.go | 62 +- macos/coreimage/dot_screen_protocol.gen.go | 96 +- macos/coreimage/droste_protocol.gen.go | 146 +- .../edge_preserve_upsample_protocol.gen.go | 62 +- macos/coreimage/edge_work_protocol.gen.go | 62 +- macos/coreimage/edges_protocol.gen.go | 62 +- .../coreimage/exposure_adjust_protocol.gen.go | 62 +- macos/coreimage/face_feature.gen.go | 104 +- macos/coreimage/false_color_protocol.gen.go | 62 +- macos/coreimage/filter.gen.go | 3810 ++++++++------- macos/coreimage/filter_generator.gen.go | 122 +- macos/coreimage/filter_protocol.gen.go | 125 +- macos/coreimage/filter_shape.gen.go | 62 +- .../flash_transition_protocol.gen.go | 158 +- ...coordinate_geometry_filter_protocol.gen.go | 84 +- .../fourfold_reflected_tile_protocol.gen.go | 124 +- .../fourfold_rotated_tile_protocol.gen.go | 124 +- .../fourfold_translated_tile_protocol.gen.go | 124 +- .../gaussian_gradient_protocol.gen.go | 94 +- .../glass_distortion_protocol.gen.go | 90 +- macos/coreimage/glass_lozenge_protocol.gen.go | 112 +- .../glide_reflected_tile_protocol.gen.go | 62 +- macos/coreimage/gloom_protocol.gen.go | 62 +- .../coreimage/hatched_screen_protocol.gen.go | 124 +- .../height_field_from_mask_protocol.gen.go | 62 +- .../hexagonal_pixellate_protocol.gen.go | 62 +- .../highlight_shadow_adjust_protocol.gen.go | 94 +- .../histogram_display_protocol.gen.go | 112 +- .../coreimage/hole_distortion_protocol.gen.go | 56 +- ..._saturation_value_gradient_protocol.gen.go | 62 +- macos/coreimage/image.gen.go | 897 ++-- macos/coreimage/image_accumulator.gen.go | 74 +- .../image_processor_input_protocol.gen.go | 96 +- macos/coreimage/image_processor_kernel.gen.go | 60 +- .../image_processor_output_protocol.gen.go | 112 +- macos/coreimage/k_means_protocol.gen.go | 56 +- macos/coreimage/kaleidoscope_protocol.gen.go | 124 +- macos/coreimage/kernel.gen.go | 58 +- macos/coreimage/lab_delta_e_protocol.gen.go | 62 +- .../lanczos_scale_transform_protocol.gen.go | 62 +- .../lenticular_halo_generator_protocol.gen.go | 128 +- macos/coreimage/light_tunnel_protocol.gen.go | 90 +- macos/coreimage/line_overlay_protocol.gen.go | 128 +- macos/coreimage/line_screen_protocol.gen.go | 124 +- .../coreimage/linear_gradient_protocol.gen.go | 94 +- .../masked_variable_blur_protocol.gen.go | 62 +- .../coreimage/mesh_generator_protocol.gen.go | 62 +- macos/coreimage/mix_protocol.gen.go | 62 +- .../coreimage/mod_transition_protocol.gen.go | 94 +- .../morphology_minimum_protocol.gen.go | 62 +- ...rphology_rectangle_maximum_protocol.gen.go | 62 +- ...rphology_rectangle_minimum_protocol.gen.go | 62 +- .../nine_part_stretched_protocol.gen.go | 84 +- .../coreimage/nine_part_tiled_protocol.gen.go | 118 +- .../coreimage/noise_reduction_protocol.gen.go | 62 +- macos/coreimage/op_tile_protocol.gen.go | 64 +- .../page_curl_transition_protocol.gen.go | 62 +- ...url_with_shadow_transition_protocol.gen.go | 190 +- .../palette_centroid_protocol.gen.go | 62 +- macos/coreimage/palettize_protocol.gen.go | 62 +- .../parallelogram_tile_protocol.gen.go | 94 +- .../pd_f417_barcode_generator_protocol.gen.go | 350 +- .../coreimage/pd_f417_code_descriptor.gen.go | 36 +- .../person_segmentation_protocol.gen.go | 56 +- .../perspective_rotate_protocol.gen.go | 94 +- .../perspective_tile_protocol.gen.go | 124 +- .../pinch_distortion_protocol.gen.go | 112 +- macos/coreimage/pixellate_protocol.gen.go | 62 +- macos/coreimage/plug_in.gen.go | 28 +- macos/coreimage/pointillize_protocol.gen.go | 62 +- macos/coreimage/qr_code_descriptor.gen.go | 44 +- macos/coreimage/qr_code_feature.gen.go | 56 +- .../qr_code_generator_protocol.gen.go | 62 +- .../coreimage/radial_gradient_protocol.gen.go | 124 +- macos/coreimage/raw_filter.gen.go | 636 +-- macos/coreimage/rectangle_feature.gen.go | 18 +- macos/coreimage/render_destination.gen.go | 164 +- macos/coreimage/render_info.gen.go | 18 +- .../ripple_transition_protocol.gen.go | 156 +- ...ounded_rectangle_generator_protocol.gen.go | 62 +- macos/coreimage/sampler.gen.go | 53 - macos/coreimage/sepia_tone_protocol.gen.go | 62 +- .../coreimage/shaded_material_protocol.gen.go | 64 +- .../sharpen_luminance_protocol.gen.go | 62 +- .../sixfold_reflected_tile_protocol.gen.go | 62 +- .../sixfold_rotated_tile_protocol.gen.go | 62 +- .../smooth_linear_gradient_protocol.gen.go | 62 +- macos/coreimage/spot_color_protocol.gen.go | 318 +- macos/coreimage/spot_light_protocol.gen.go | 158 +- .../star_shine_generator_protocol.gen.go | 190 +- macos/coreimage/stretch_crop_protocol.gen.go | 84 +- .../stripes_generator_protocol.gen.go | 124 +- .../sunbeams_generator_protocol.gen.go | 186 +- .../swipe_transition_protocol.gen.go | 124 +- .../temperature_and_tint_protocol.gen.go | 64 +- macos/coreimage/text_feature.gen.go | 38 +- .../text_image_generator_protocol.gen.go | 124 +- macos/coreimage/tone_curve_protocol.gen.go | 156 +- .../torus_lens_distortion_protocol.gen.go | 112 +- .../transition_filter_protocol.gen.go | 64 +- .../triangle_kaleidoscope_protocol.gen.go | 124 +- macos/coreimage/triangle_tile_protocol.gen.go | 62 +- .../twelvefold_reflected_tile_protocol.gen.go | 124 +- .../twirl_distortion_protocol.gen.go | 112 +- macos/coreimage/unsharp_mask_protocol.gen.go | 62 +- macos/coreimage/vector.gen.go | 260 +- .../coreimage/vignette_effect_protocol.gen.go | 94 +- macos/coreimage/vignette_protocol.gen.go | 64 +- .../vortex_distortion_protocol.gen.go | 56 +- macos/coreimage/warp_kernel.gen.go | 12 - macos/corelocation/beacon.gen.go | 56 +- macos/corelocation/geocoder.gen.go | 63 +- macos/corelocation/heading.gen.go | 44 +- macos/corelocation/location.gen.go | 140 +- macos/corelocation/location_manager.gen.go | 370 +- .../location_manager_delegate.gen.go | 380 +- .../location_source_information.gen.go | 18 +- macos/corelocation/placemark.gen.go | 144 +- macos/corelocation/region.gen.go | 36 +- macos/corelocation/visit.gen.go | 28 +- macos/coremedia/aliastypes.gen.go | 6 +- macos/coremediaio/extension_device.gen.go | 88 +- .../extension_device_properties.gen.go | 92 +- .../extension_device_source_protocol.gen.go | 32 +- .../extension_property_attributes.gen.go | 60 +- .../extension_property_state.gen.go | 38 +- macos/coremediaio/extension_provider.gen.go | 36 +- .../extension_provider_properties.gen.go | 24 +- .../extension_provider_source_protocol.gen.go | 32 +- macos/coremediaio/extension_stream.gen.go | 102 +- ...n_stream_custom_clock_configuration.gen.go | 60 +- .../extension_stream_format.gen.go | 42 +- .../extension_stream_properties.gen.go | 112 +- .../extension_stream_source_protocol.gen.go | 64 +- macos/coremidi/ci_device_info.gen.go | 36 +- macos/coremidi/ci_discovered_node.gen.go | 36 +- macos/coremidi/ci_profile.gen.go | 14 - .../ci_profile_responder_delegate.gen.go | 132 +- macos/coremidi/ci_profile_state.gen.go | 18 +- macos/coremidi/ci_responder.gen.go | 36 +- macos/coremidi/ci_session.gen.go | 92 +- macos/coremidi/enumtypes.gen.go | 9 - macos/coremidi/network_host.gen.go | 52 +- macos/coremidi/network_session.gen.go | 120 +- macos/coreml/custom_layer_protocol.gen.go | 80 +- macos/coreml/custom_model_protocol.gen.go | 32 +- macos/coreml/feature_description.gen.go | 66 +- macos/coreml/feature_value.gen.go | 242 +- macos/coreml/image_constraint.gen.go | 28 +- macos/coreml/image_size_constraint.gen.go | 18 +- macos/coreml/metric_key.gen.go | 30 +- macos/coreml/model.gen.go | 88 +- macos/coreml/model_configuration.gen.go | 68 +- macos/coreml/model_description.gen.go | 74 +- macos/coreml/multi_array.gen.go | 78 +- macos/coreml/multi_array_constraint.gen.go | 20 +- .../multi_array_shape_constraint.gen.go | 18 +- macos/coreml/parameter_description.gen.go | 20 +- macos/coreml/parameter_key.gen.go | 186 +- macos/coreml/sequence.gen.go | 18 +- macos/coreml/sequence_constraint.gen.go | 18 +- macos/coreml/task.gen.go | 16 +- macos/coreml/update_context.gen.go | 18 +- macos/coreml/update_task.gen.go | 39 - .../corespotlight/custom_attribute_key.gen.go | 50 +- macos/corespotlight/localized_string.gen.go | 280 +- macos/corespotlight/person.gen.go | 36 +- macos/corespotlight/search_query.gen.go | 62 +- macos/corespotlight/searchable_index.gen.go | 86 +- .../searchable_index_delegate.gen.go | 181 +- macos/corespotlight/searchable_item.gen.go | 40 +- .../searchable_item_attribute_set.gen.go | 3608 +++++++------- macos/corevideo/aliastypes.gen.go | 2 +- macos/corevideo/enumtypes.gen.go | 2 +- ...e_provider_change_observer_protocol.gen.go | 32 +- .../fileprovider/file_provider_domain.gen.go | 62 +- ...vider_enumeration_observer_protocol.gen.go | 30 +- .../file_provider_enumerator_protocol.gen.go | 32 +- .../file_provider_item_version.gen.go | 18 +- .../fileprovider/file_provider_manager.gen.go | 244 +- ...vider_replicated_extension_protocol.gen.go | 144 +- .../fileprovider/file_provider_request.gen.go | 18 +- ...sting_collision_resolution_protocol.gen.go | 32 +- ..._provider_testing_deletion_protocol.gen.go | 80 +- ...provider_testing_ingestion_protocol.gen.go | 32 +- ...vider_testing_modification_protocol.gen.go | 80 +- ...provider_testing_operation_protocol.gen.go | 112 +- macos/foundation/affine_transform.gen.go | 134 +- macos/foundation/aliastypes.gen.go | 8 +- .../foundation/apple_event_descriptor.gen.go | 324 +- macos/foundation/apple_event_manager.gen.go | 50 +- macos/foundation/apple_script.gen.go | 36 +- macos/foundation/array.gen.go | 643 +-- macos/foundation/attributed_string.gen.go | 452 +- ...ted_string_markdown_parsing_options.gen.go | 34 +- macos/foundation/autorelease_pool.gen.go | 22 +- .../background_activity_scheduler.gen.go | 88 +- macos/foundation/bundle.gen.go | 570 +-- macos/foundation/byte_count_formatter.gen.go | 158 +- macos/foundation/cache.gen.go | 90 +- macos/foundation/cached_url_response.gen.go | 50 +- macos/foundation/calendar.gen.go | 591 +-- macos/foundation/calendar_date.gen.go | 96 +- macos/foundation/character_set.gen.go | 396 +- macos/foundation/class_description.gen.go | 48 +- macos/foundation/coder.gen.go | 686 ++- macos/foundation/comparison_predicate.gen.go | 49 +- macos/foundation/compound_predicate.gen.go | 40 +- macos/foundation/condition.gen.go | 16 +- macos/foundation/condition_lock.gen.go | 43 +- macos/foundation/counted_set.gen.go | 132 +- macos/foundation/create_command.gen.go | 18 +- macos/foundation/data.gen.go | 318 +- macos/foundation/date.gen.go | 192 +- macos/foundation/date_components.gen.go | 326 +- .../date_components_formatter.gen.go | 192 +- macos/foundation/date_formatter.gen.go | 670 +-- macos/foundation/date_interval.gen.go | 62 +- .../foundation/date_interval_formatter.gen.go | 84 +- macos/foundation/decimal_number.gen.go | 275 +- .../decimal_number_behaviors_protocol.gen.go | 32 +- macos/foundation/dictionary.gen.go | 507 +- macos/foundation/dimension.gen.go | 24 +- macos/foundation/directory_enumerator.gen.go | 32 +- .../discardable_content_protocol.gen.go | 30 +- macos/foundation/distributed_lock.gen.go | 40 +- .../distributed_notification_center.gen.go | 26 +- macos/foundation/energy_formatter.gen.go | 18 +- macos/foundation/enumtypes.gen.go | 68 +- macos/foundation/error.gen.go | 96 +- macos/foundation/exception.gen.go | 64 +- macos/foundation/expression.gen.go | 348 +- macos/foundation/extension_context.gen.go | 60 +- macos/foundation/extension_item.gen.go | 68 +- macos/foundation/file_coordinator.gen.go | 126 +- macos/foundation/file_handle.gen.go | 288 +- macos/foundation/file_manager.gen.go | 530 +-- macos/foundation/file_manager_delegate.gen.go | 512 +- .../foundation/file_presenter_protocol.gen.go | 269 +- macos/foundation/file_version.gen.go | 158 +- macos/foundation/file_wrapper.gen.go | 188 +- macos/foundation/formatter.gen.go | 37 +- macos/foundation/hash_table.gen.go | 259 - macos/foundation/http_cookie.gen.go | 150 +- macos/foundation/http_cookie_storage.gen.go | 84 +- macos/foundation/index_path.gen.go | 125 +- macos/foundation/index_set.gen.go | 264 +- macos/foundation/inflection_rule.gen.go | 30 +- macos/foundation/input_stream.gen.go | 48 +- macos/foundation/invocation.gen.go | 80 +- macos/foundation/invocation_operation.gen.go | 24 +- .../foundation/is_o8601_date_formatter.gen.go | 15 - macos/foundation/item_provider.gen.go | 233 +- .../item_provider_writing_protocol.gen.go | 32 +- macos/foundation/json_serialization.gen.go | 60 +- macos/foundation/keyed_archiver.gen.go | 40 +- .../foundation/keyed_archiver_delegate.gen.go | 143 +- macos/foundation/keyed_unarchiver.gen.go | 117 +- .../keyed_unarchiver_delegate.gen.go | 110 +- macos/foundation/length_formatter.gen.go | 70 +- macos/foundation/list_formatter.gen.go | 42 +- macos/foundation/locale.gen.go | 486 +- macos/foundation/lock.gen.go | 18 +- macos/foundation/locking_protocol.gen.go | 30 +- macos/foundation/logical_test.gen.go | 28 +- macos/foundation/mach_port.gen.go | 29 - macos/foundation/map_table.gen.go | 244 - macos/foundation/mass_formatter.gen.go | 56 +- macos/foundation/measurement.gen.go | 18 +- macos/foundation/measurement_formatter.gen.go | 34 +- macos/foundation/metadata_query.gen.go | 292 +- .../foundation/metadata_query_delegate.gen.go | 34 - .../metadata_query_result_group.gen.go | 28 +- macos/foundation/method_signature.gen.go | 48 +- macos/foundation/morphology.gen.go | 64 +- macos/foundation/mutable_array.gen.go | 402 +- .../mutable_attributed_string.gen.go | 389 +- macos/foundation/mutable_character_set.gen.go | 48 +- macos/foundation/mutable_data.gen.go | 382 +- macos/foundation/mutable_dictionary.gen.go | 463 +- macos/foundation/mutable_index_set.gen.go | 108 +- macos/foundation/mutable_ordered_set.gen.go | 466 +- macos/foundation/mutable_set.gen.go | 216 +- macos/foundation/mutable_string.gen.go | 358 +- macos/foundation/mutable_url_request.gen.go | 162 +- macos/foundation/name_specifier.gen.go | 2 +- .../net_service_browser_delegate.gen.go | 174 +- macos/foundation/net_service_delegate.gen.go | 219 +- macos/foundation/notification.gen.go | 38 +- macos/foundation/notification_center.gen.go | 56 +- macos/foundation/notification_queue.gen.go | 18 +- macos/foundation/number.gen.go | 526 +-- macos/foundation/number_formatter.gen.go | 1226 ++--- macos/foundation/operation.gen.go | 140 +- macos/foundation/operation_queue.gen.go | 122 +- .../ordered_collection_change.gen.go | 49 +- .../ordered_collection_difference.gen.go | 32 +- macos/foundation/ordered_set.gen.go | 558 +-- macos/foundation/orthography.gen.go | 28 +- macos/foundation/output_stream.gen.go | 100 +- .../foundation/person_name_components.gen.go | 68 +- .../person_name_components_formatter.gen.go | 44 +- macos/foundation/pointer_array.gen.go | 46 +- macos/foundation/pointer_functions.gen.go | 88 +- macos/foundation/port.gen.go | 45 +- macos/foundation/port_message.gen.go | 28 +- macos/foundation/positional_specifier.gen.go | 52 +- macos/foundation/predicate.gen.go | 73 +- macos/foundation/presentation_intent.gen.go | 204 +- macos/foundation/process_info.gen.go | 228 +- macos/foundation/progress.gen.go | 457 +- .../property_list_serialization.gen.go | 76 +- macos/foundation/purgeable_data.gen.go | 278 +- macos/foundation/regular_expression.gen.go | 108 +- .../relative_date_time_formatter.gen.go | 108 +- macos/foundation/relative_specifier.gen.go | 36 +- macos/foundation/run_loop.gen.go | 118 +- macos/foundation/scanner.gen.go | 232 +- .../script_class_description.gen.go | 142 +- .../foundation/script_coercion_handler.gen.go | 20 +- macos/foundation/script_command.gen.go | 198 +- .../script_command_description.gen.go | 84 +- .../foundation/script_object_specifier.gen.go | 152 +- macos/foundation/script_suite_registry.gen.go | 124 +- macos/foundation/set.gen.go | 366 +- macos/foundation/socket_port.gen.go | 104 +- macos/foundation/sort_descriptor.gen.go | 80 +- macos/foundation/spell_server_delegate.gen.go | 240 +- macos/foundation/stream.gen.go | 66 +- macos/foundation/string.gen.go | 1386 ++---- macos/foundation/task.gen.go | 244 +- macos/foundation/text_checking_result.gen.go | 362 +- macos/foundation/thread.gen.go | 278 +- macos/foundation/time_zone.gen.go | 289 +- macos/foundation/timer.gen.go | 152 +- .../ubiquitous_key_value_store.gen.go | 166 +- macos/foundation/undo_manager.gen.go | 278 +- macos/foundation/unit_acceleration.gen.go | 54 +- macos/foundation/unit_angle.gen.go | 84 +- macos/foundation/unit_area.gen.go | 228 +- .../foundation/unit_concentration_mass.gen.go | 54 +- macos/foundation/unit_converter.gen.go | 18 +- macos/foundation/unit_converter_linear.gen.go | 28 - macos/foundation/unit_dispersion.gen.go | 24 +- macos/foundation/unit_duration.gen.go | 116 +- macos/foundation/unit_electric_charge.gen.go | 70 +- macos/foundation/unit_electric_current.gen.go | 54 +- .../unit_electric_potential_difference.gen.go | 54 +- .../unit_electric_resistance.gen.go | 84 +- macos/foundation/unit_energy.gen.go | 70 +- macos/foundation/unit_frequency.gen.go | 134 +- macos/foundation/unit_fuel_efficiency.gen.go | 54 +- macos/foundation/unit_illuminance.gen.go | 24 +- .../unit_information_storage.gen.go | 574 +-- macos/foundation/unit_length.gen.go | 358 +- macos/foundation/unit_mass.gen.go | 246 +- macos/foundation/unit_power.gen.go | 164 +- macos/foundation/unit_pressure.gen.go | 114 +- macos/foundation/unit_speed.gen.go | 54 +- macos/foundation/unit_temperature.gen.go | 54 +- macos/foundation/unit_volume.gen.go | 504 +- macos/foundation/url.gen.go | 724 ++- .../url_authentication_challenge.gen.go | 48 +- ...ntication_challenge_sender_protocol.gen.go | 30 +- macos/foundation/url_cache.gen.go | 106 +- macos/foundation/url_components.gen.go | 406 +- macos/foundation/url_connection.gen.go | 40 +- .../url_connection_data_delegate.gen.go | 208 +- .../foundation/url_connection_delegate.gen.go | 37 +- .../url_connection_download_delegate.gen.go | 76 +- macos/foundation/url_credential.gen.go | 36 +- .../foundation/url_credential_storage.gen.go | 86 +- macos/foundation/url_download.gen.go | 14 +- macos/foundation/url_download_delegate.gen.go | 414 +- macos/foundation/url_protection_space.gen.go | 90 +- macos/foundation/url_protocol.gen.go | 164 +- .../url_protocol_client_protocol.gen.go | 90 - macos/foundation/url_query_item.gen.go | 18 +- macos/foundation/url_request.gen.go | 182 +- macos/foundation/url_response.gen.go | 36 +- macos/foundation/url_session.gen.go | 286 +- .../url_session_configuration.gen.go | 446 +- .../url_session_data_delegate.gen.go | 134 +- macos/foundation/url_session_delegate.gen.go | 93 +- .../url_session_download_delegate.gen.go | 68 +- .../url_session_stream_delegate.gen.go | 101 +- .../foundation/url_session_stream_task.gen.go | 52 +- macos/foundation/url_session_task.gen.go | 264 +- .../url_session_task_delegate.gen.go | 233 +- .../url_session_task_metrics.gen.go | 18 +- ...rl_session_task_transaction_metrics.gen.go | 324 +- .../url_session_web_socket_delegate.gen.go | 35 +- .../url_session_web_socket_message.gen.go | 34 +- .../url_session_web_socket_task.gen.go | 44 +- macos/foundation/user_activity.gen.go | 400 +- .../foundation/user_activity_delegate.gen.go | 66 +- macos/foundation/user_defaults.gen.go | 325 +- macos/foundation/user_unix_task.gen.go | 34 +- macos/foundation/uuid.gen.go | 28 +- macos/foundation/value.gen.go | 246 +- macos/foundation/value_transformer.gen.go | 70 +- macos/foundation/whose_specifier.gen.go | 60 +- macos/foundation/xml_document.gen.go | 282 +- macos/foundation/xml_element.gen.go | 246 +- macos/foundation/xml_node.gen.go | 521 +- macos/foundation/xml_parser.gen.go | 164 +- macos/foundation/xml_parser_delegate.gen.go | 640 +-- macos/foundation/xmldtd.gen.go | 138 +- macos/foundation/xmldtd_node.gen.go | 66 +- macos/foundation/xpc_coder.gen.go | 18 +- macos/foundation/xpc_connection.gen.go | 166 +- macos/foundation/xpc_interface.gen.go | 50 +- macos/foundation/xpc_listener.gen.go | 52 +- .../xpc_proxy_creating_protocol.gen.go | 32 +- macos/iosurface/io_surface.gen.go | 216 +- macos/mediaplayer/content_item.gen.go | 128 +- macos/mediaplayer/feedback_command.gen.go | 34 +- macos/mediaplayer/media_item_artwork.gen.go | 18 +- .../now_playing_info_language_option.gen.go | 46 +- macos/mediaplayer/rating_command.gen.go | 34 +- macos/mediaplayer/remote_command.gen.go | 24 +- .../mediaplayer/remote_command_center.gen.go | 152 +- ...re_bounding_box_geometry_descriptor.gen.go | 34 +- ..._structure_command_encoder_protocol.gen.go | 199 +- ...ation_structure_geometry_descriptor.gen.go | 68 +- ...motion_triangle_geometry_descriptor.gen.go | 74 +- ...ucture_triangle_geometry_descriptor.gen.go | 78 +- macos/metal/argument_descriptor.gen.go | 94 +- macos/metal/argument_encoder_protocol.gen.go | 396 +- macos/metal/array_type.gen.go | 56 +- macos/metal/attribute.gen.go | 46 +- macos/metal/attribute_descriptor.gen.go | 34 +- macos/metal/attribute_descriptor_array.gen.go | 16 +- macos/metal/binary_archive_protocol.gen.go | 66 +- .../blit_command_encoder_protocol.gen.go | 404 +- ...sample_buffer_attachment_descriptor.gen.go | 34 +- macos/metal/buffer_layout_descriptor.gen.go | 34 +- .../buffer_layout_descriptor_array.gen.go | 16 +- macos/metal/buffer_protocol.gen.go | 82 +- macos/metal/capture_manager.gen.go | 52 +- macos/metal/capture_scope_protocol.gen.go | 48 +- macos/metal/command_buffer_descriptor.gen.go | 34 +- macos/metal/command_buffer_protocol.gen.go | 488 +- macos/metal/command_encoder_protocol.gen.go | 62 +- macos/metal/command_queue_protocol.gen.go | 48 +- macos/metal/compile_options.gen.go | 88 +- .../compute_command_encoder_protocol.gen.go | 495 +- ...sample_buffer_attachment_descriptor.gen.go | 34 +- .../metal/compute_pipeline_descriptor.gen.go | 202 +- .../compute_pipeline_state_protocol.gen.go | 144 +- .../counter_sample_buffer_descriptor.gen.go | 54 +- .../counter_sample_buffer_protocol.gen.go | 32 +- macos/metal/depth_stencil_descriptor.gen.go | 68 +- .../metal/depth_stencil_state_protocol.gen.go | 32 +- macos/metal/device_protocol.gen.go | 1519 +++--- macos/metal/drawable_protocol.gen.go | 32 +- macos/metal/enumtypes.gen.go | 6 +- macos/metal/event_protocol.gen.go | 32 +- macos/metal/function_constant.gen.go | 36 +- macos/metal/function_constant_values.gen.go | 8 - macos/metal/function_descriptor.gen.go | 74 +- macos/metal/function_handle_protocol.gen.go | 32 +- ...unction_log_debug_location_protocol.gen.go | 48 +- macos/metal/function_log_protocol.gen.go | 32 +- macos/metal/function_protocol.gen.go | 174 +- .../function_stitching_function_node.gen.go | 40 +- macos/metal/function_stitching_graph.gen.go | 54 +- macos/metal/heap_descriptor.gen.go | 68 +- macos/metal/heap_protocol.gen.go | 210 +- .../indirect_command_buffer_descriptor.gen.go | 74 +- .../indirect_command_buffer_protocol.gen.go | 30 +- .../indirect_compute_command_protocol.gen.go | 144 +- .../indirect_render_command_protocol.gen.go | 70 +- ...e_acceleration_structure_descriptor.gen.go | 168 +- ...ntersection_function_table_protocol.gen.go | 129 +- macos/metal/library_protocol.gen.go | 156 +- macos/metal/linked_functions.gen.go | 54 +- macos/metal/motion_keyframe_data.gen.go | 34 +- ...lel_render_command_encoder_protocol.gen.go | 100 +- .../pipeline_buffer_descriptor_array.gen.go | 16 +- macos/metal/pointer_type.gen.go | 38 +- ...e_acceleration_structure_descriptor.gen.go | 68 +- ...rasterization_rate_layer_descriptor.gen.go | 42 +- .../rasterization_rate_map_descriptor.gen.go | 56 +- .../rasterization_rate_map_protocol.gen.go | 80 +- .../rasterization_rate_sample_array.gen.go | 16 +- .../render_command_encoder_protocol.gen.go | 1511 +++--- .../render_pass_attachment_descriptor.gen.go | 174 +- ...er_pass_depth_attachment_descriptor.gen.go | 34 +- macos/metal/render_pass_descriptor.gen.go | 234 +- ...sample_buffer_attachment_descriptor.gen.go | 84 +- ..._buffer_attachment_descriptor_array.gen.go | 16 +- ..._pass_stencil_attachment_descriptor.gen.go | 34 +- ...ipeline_color_attachment_descriptor.gen.go | 148 +- macos/metal/render_pipeline_descriptor.gen.go | 570 +-- .../render_pipeline_state_protocol.gen.go | 130 +- macos/metal/resource_protocol.gen.go | 144 +- ...urce_state_command_encoder_protocol.gen.go | 34 +- ...sample_buffer_attachment_descriptor.gen.go | 56 +- ..._buffer_attachment_descriptor_array.gen.go | 16 +- macos/metal/sampler_descriptor.gen.go | 228 +- .../stage_input_output_descriptor.gen.go | 42 +- macos/metal/stencil_descriptor.gen.go | 34 +- .../metal/stitched_library_descriptor.gen.go | 34 +- macos/metal/struct_member.gen.go | 36 +- macos/metal/texture_descriptor.gen.go | 294 +- macos/metal/texture_protocol.gen.go | 466 +- macos/metal/texture_reference_type.gen.go | 28 +- ...e_color_attachment_descriptor_array.gen.go | 16 +- .../tile_render_pipeline_descriptor.gen.go | 186 +- macos/metal/vertex_attribute.gen.go | 48 +- .../metal/vertex_attribute_descriptor.gen.go | 34 +- .../vertex_buffer_layout_descriptor.gen.go | 34 +- macos/metal/vertex_descriptor.gen.go | 18 +- .../visible_function_table_protocol.gen.go | 32 +- macos/mps/acceleration_structure.gen.go | 28 +- macos/mps/binary_image_kernel.gen.go | 142 +- macos/mps/cnn_arithmetic.gen.go | 76 +- macos/mps/cnn_arithmetic_gradient.gen.go | 96 +- .../mps/cnn_arithmetic_gradient_state.gen.go | 103 +- macos/mps/cnn_batch_normalization.gen.go | 76 +- ..._normalization_data_source_protocol.gen.go | 176 +- .../cnn_batch_normalization_gradient.gen.go | 34 - macos/mps/cnn_batch_normalization_node.gen.go | 24 +- .../mps/cnn_batch_normalization_state.gen.go | 147 +- macos/mps/cnn_binary_convolution.gen.go | 16 - macos/mps/cnn_binary_convolution_node.gen.go | 38 +- macos/mps/cnn_binary_fully_connected.gen.go | 16 - .../cnn_binary_fully_connected_node.gen.go | 43 +- macos/mps/cnn_binary_kernel.gen.go | 490 +- macos/mps/cnn_convolution.gen.go | 81 +- ...nn_convolution_data_source_protocol.gen.go | 202 +- macos/mps/cnn_convolution_descriptor.gen.go | 142 +- macos/mps/cnn_convolution_gradient.gen.go | 28 +- .../mps/cnn_convolution_gradient_node.gen.go | 24 +- .../mps/cnn_convolution_gradient_state.gen.go | 119 +- macos/mps/cnn_convolution_node.gen.go | 18 +- macos/mps/cnn_convolution_transpose.gen.go | 192 +- .../cnn_convolution_transpose_gradient.gen.go | 26 +- ...convolution_transpose_gradient_node.gen.go | 48 +- ...onvolution_transpose_gradient_state.gen.go | 103 +- .../mps/cnn_convolution_transpose_node.gen.go | 24 +- ...onvolution_weights_and_biases_state.gen.go | 159 +- .../cnn_cross_channel_normalization.gen.go | 52 +- ...ross_channel_normalization_gradient.gen.go | 32 +- ...nn_cross_channel_normalization_node.gen.go | 14 - ...n_depth_wise_convolution_descriptor.gen.go | 12 - macos/mps/cnn_dilated_pooling_max.gen.go | 15 - .../cnn_dilated_pooling_max_gradient.gen.go | 15 - ...n_dilated_pooling_max_gradient_node.gen.go | 24 +- macos/mps/cnn_dilated_pooling_max_node.gen.go | 50 +- macos/mps/cnn_dropout_gradient.gen.go | 14 +- macos/mps/cnn_dropout_gradient_node.gen.go | 14 +- macos/mps/cnn_dropout_gradient_state.gen.go | 103 +- macos/mps/cnn_dropout_node.gen.go | 62 +- macos/mps/cnn_fully_connected.gen.go | 15 - .../cnn_fully_connected_gradient_node.gen.go | 24 +- macos/mps/cnn_fully_connected_node.gen.go | 24 +- macos/mps/cnn_gradient_kernel.gen.go | 62 +- macos/mps/cnn_group_normalization.gen.go | 18 +- ..._normalization_data_source_protocol.gen.go | 104 +- ..._group_normalization_gradient_state.gen.go | 119 +- macos/mps/cnn_group_normalization_node.gen.go | 24 +- macos/mps/cnn_instance_normalization.gen.go | 26 +- ..._normalization_data_source_protocol.gen.go | 130 +- ...stance_normalization_gradient_state.gen.go | 127 +- macos/mps/cnn_kernel.gen.go | 390 +- .../cnn_local_contrast_normalization.gen.go | 112 +- ...cal_contrast_normalization_gradient.gen.go | 72 +- ...ontrast_normalization_gradient_node.gen.go | 102 +- ...n_local_contrast_normalization_node.gen.go | 64 +- .../mps/cnn_log_soft_max_gradient_node.gen.go | 24 +- macos/mps/cnn_loss.gen.go | 84 +- macos/mps/cnn_loss_data_descriptor.gen.go | 38 +- macos/mps/cnn_loss_descriptor.gen.go | 64 +- macos/mps/cnn_loss_labels.gen.go | 147 +- macos/mps/cnn_multiary_kernel.gen.go | 380 +- macos/mps/cnn_neuron.gen.go | 22 +- macos/mps/cnn_neuron_elu_node.gen.go | 26 - macos/mps/cnn_neuron_exponential_node.gen.go | 26 - macos/mps/cnn_neuron_ge_lu_node.gen.go | 24 +- macos/mps/cnn_neuron_gradient.gen.go | 30 +- macos/mps/cnn_neuron_gradient_node.gen.go | 24 +- macos/mps/cnn_neuron_hard_sigmoid_node.gen.go | 36 +- macos/mps/cnn_neuron_linear_node.gen.go | 36 +- macos/mps/cnn_neuron_logarithm_node.gen.go | 36 +- macos/mps/cnn_neuron_node.gen.go | 18 +- macos/mps/cnn_neuron_power_node.gen.go | 26 - macos/mps/cnn_neuron_re_lu_node.gen.go | 26 - macos/mps/cnn_neuron_re_lun_node.gen.go | 26 - macos/mps/cnn_neuron_soft_plus_node.gen.go | 36 +- macos/mps/cnn_neuron_tan_h_node.gen.go | 40 +- ..._normalization_gamma_and_beta_state.gen.go | 129 +- ...rmalization_mean_and_variance_state.gen.go | 137 +- macos/mps/cnn_normalization_node.gen.go | 52 +- macos/mps/cnn_pooling.gen.go | 15 - macos/mps/cnn_pooling_average.gen.go | 43 +- macos/mps/cnn_pooling_average_node.gen.go | 50 +- macos/mps/cnn_pooling_gradient.gen.go | 15 - macos/mps/cnn_pooling_gradient_node.gen.go | 18 +- macos/mps/cnn_pooling_l2_norm.gen.go | 15 - macos/mps/cnn_pooling_l2_norm_node.gen.go | 50 +- macos/mps/cnn_pooling_max.gen.go | 15 - macos/mps/cnn_pooling_max_node.gen.go | 50 +- macos/mps/cnn_pooling_node.gen.go | 68 +- macos/mps/cnn_soft_max_gradient_node.gen.go | 24 +- macos/mps/cnn_soft_max_node.gen.go | 24 +- macos/mps/cnn_spatial_normalization.gen.go | 34 +- .../cnn_spatial_normalization_gradient.gen.go | 34 +- ...spatial_normalization_gradient_node.gen.go | 72 +- .../mps/cnn_spatial_normalization_node.gen.go | 34 +- ...nn_sub_pixel_convolution_descriptor.gen.go | 12 - macos/mps/cnn_upsampling_bilinear.gen.go | 15 - ...n_upsampling_bilinear_gradient_node.gen.go | 14 +- macos/mps/cnn_upsampling_bilinear_node.gen.go | 40 +- macos/mps/cnn_upsampling_gradient.gen.go | 14 +- ...nn_upsampling_nearest_gradient_node.gen.go | 14 +- macos/mps/cnn_upsampling_nearest_node.gen.go | 14 +- macos/mps/cnnyolo_loss.gen.go | 136 +- macos/mps/cnnyolo_loss_descriptor.gen.go | 192 +- macos/mps/command_buffer.gen.go | 26 +- macos/mps/gru_descriptor.gen.go | 158 +- macos/mps/heap_provider_protocol.gen.go | 32 +- macos/mps/image.gen.go | 260 +- macos/mps/image_allocator_protocol.gen.go | 28 +- macos/mps/image_area_max.gen.go | 18 +- macos/mps/image_arithmetic.gen.go | 84 +- macos/mps/image_box.gen.go | 18 +- macos/mps/image_canny.gen.go | 51 +- macos/mps/image_conversion.gen.go | 18 +- macos/mps/image_convolution.gen.go | 18 +- macos/mps/image_copy_to_matrix.gen.go | 72 +- macos/mps/image_descriptor.gen.go | 158 +- macos/mps/image_dilate.gen.go | 18 +- macos/mps/image_ed_lines.gen.go | 142 +- macos/mps/image_find_keypoints.gen.go | 28 +- macos/mps/image_gaussian_pyramid.gen.go | 30 - macos/mps/image_guided_filter.gen.go | 137 +- macos/mps/image_histogram.gen.go | 78 +- macos/mps/image_laplacian_pyramid.gen.go | 30 - macos/mps/image_laplacian_pyramid_add.gen.go | 30 - .../image_laplacian_pyramid_subtract.gen.go | 30 - macos/mps/image_median.gen.go | 30 +- macos/mps/image_normalized_histogram.gen.go | 74 +- macos/mps/image_pyramid.gen.go | 48 +- macos/mps/image_sobel.gen.go | 15 - macos/mps/image_threshold_truncate.gen.go | 18 +- .../instance_acceleration_structure.gen.go | 28 +- macos/mps/kernel.gen.go | 46 +- macos/mps/keyed_unarchiver.gen.go | 60 +- macos/mps/lstm_descriptor.gen.go | 348 +- macos/mps/matrix.gen.go | 103 +- macos/mps/matrix_batch_normalization.gen.go | 120 +- ...matrix_batch_normalization_gradient.gen.go | 70 +- macos/mps/matrix_binary_kernel.gen.go | 84 +- macos/mps/matrix_copy.gen.go | 67 +- macos/mps/matrix_copy_descriptor.gen.go | 22 +- macos/mps/matrix_copy_to_image.gen.go | 46 +- .../mps/matrix_decomposition_cholesky.gen.go | 28 +- macos/mps/matrix_decomposition_lu.gen.go | 28 +- macos/mps/matrix_descriptor.gen.go | 122 +- macos/mps/matrix_find_top_k.gen.go | 56 +- macos/mps/matrix_fully_connected.gen.go | 104 +- .../matrix_fully_connected_gradient.gen.go | 56 +- macos/mps/matrix_log_soft_max_gradient.gen.go | 24 +- macos/mps/matrix_multiplication.gen.go | 97 +- macos/mps/matrix_neuron.gen.go | 84 +- macos/mps/matrix_neuron_gradient.gen.go | 102 +- macos/mps/matrix_random.gen.go | 65 +- ...trix_random_distribution_descriptor.gen.go | 95 +- macos/mps/matrix_random_mtg_p32.gen.go | 30 - macos/mps/matrix_random_philox.gen.go | 30 - macos/mps/matrix_soft_max_gradient.gen.go | 52 +- macos/mps/matrix_solve_cholesky.gen.go | 28 +- macos/mps/matrix_solve_lu.gen.go | 28 +- macos/mps/matrix_solve_triangular.gen.go | 28 +- macos/mps/matrix_sum.gen.go | 100 +- macos/mps/matrix_unary_kernel.gen.go | 62 +- macos/mps/matrix_vector_multiplication.gen.go | 43 +- macos/mps/nd_array.gen.go | 189 +- macos/mps/nd_array_binary_kernel.gen.go | 55 - ...rray_binary_primary_gradient_kernel.gen.go | 17 - ...ay_binary_secondary_gradient_kernel.gen.go | 17 - macos/mps/nd_array_descriptor.gen.go | 100 +- .../mps/nd_array_gather_gradient_state.gen.go | 103 +- macos/mps/nd_array_gradient_state.gen.go | 103 +- .../mps/nd_array_matrix_multiplication.gen.go | 28 +- .../nd_array_multiary_gradient_kernel.gen.go | 17 - macos/mps/nd_array_multiary_kernel.gen.go | 53 - .../mps/nd_array_unary_gradient_kernel.gen.go | 17 - macos/mps/nd_array_unary_kernel.gen.go | 55 - macos/mps/nn_addition_node.gen.go | 28 +- macos/mps/nn_arithmetic_gradient_node.gen.go | 90 +- macos/mps/nn_bilinear_scale_node.gen.go | 42 +- macos/mps/nn_binary_arithmetic_node.gen.go | 152 +- macos/mps/nn_binary_gradient_state.gen.go | 103 +- macos/mps/nn_compare.gen.go | 28 +- macos/mps/nn_comparison_node.gen.go | 28 +- macos/mps/nn_concatenation_node.gen.go | 24 +- macos/mps/nn_crop_and_resize_bilinear.gen.go | 28 +- macos/mps/nn_default_padding.gen.go | 22 +- macos/mps/nn_division_node.gen.go | 28 +- macos/mps/nn_filter_node.gen.go | 64 +- macos/mps/nn_forward_loss.gen.go | 91 +- macos/mps/nn_forward_loss_node.gen.go | 104 +- macos/mps/nn_gradient_state.gen.go | 103 +- macos/mps/nn_gram_matrix_calculation.gen.go | 15 - ...nn_gram_matrix_calculation_gradient.gen.go | 15 - ...am_matrix_calculation_gradient_node.gen.go | 36 +- .../nn_gram_matrix_calculation_node.gen.go | 44 +- macos/mps/nn_graph.gen.go | 244 +- macos/mps/nn_image_node.gen.go | 124 +- macos/mps/nn_initial_gradient_node.gen.go | 24 +- macos/mps/nn_lanczos_scale_node.gen.go | 42 +- macos/mps/nn_local_correlation.gen.go | 71 +- macos/mps/nn_loss_gradient.gen.go | 109 +- macos/mps/nn_loss_gradient_node.gen.go | 130 +- macos/mps/nn_multiary_gradient_state.gen.go | 103 +- macos/mps/nn_multiplication_node.gen.go | 28 +- macos/mps/nn_neuron_descriptor.gen.go | 101 +- macos/mps/nn_optimizer.gen.go | 86 +- macos/mps/nn_optimizer_adam.gen.go | 198 +- macos/mps/nn_optimizer_descriptor.gen.go | 92 +- macos/mps/nn_optimizer_rms_prop.gen.go | 103 +- ...timizer_stochastic_gradient_descent.gen.go | 128 +- macos/mps/nn_pad.gen.go | 64 +- macos/mps/nn_pad_gradient_node.gen.go | 24 +- macos/mps/nn_padding_protocol.gen.go | 46 +- ...ce_feature_channels_and_weights_sum.gen.go | 15 - macos/mps/nn_reshape.gen.go | 54 +- macos/mps/nn_resize_bilinear.gen.go | 18 +- macos/mps/nn_scale_node.gen.go | 42 +- macos/mps/nn_subtraction_node.gen.go | 28 +- .../mps/polygon_acceleration_structure.gen.go | 28 +- macos/mps/predicate.gen.go | 24 +- ...uadrilateral_acceleration_structure.gen.go | 28 +- macos/mps/ray_intersector.gen.go | 28 +- macos/mps/rnn_descriptor.gen.go | 68 +- macos/mps/rnn_image_inference_layer.gen.go | 83 +- macos/mps/rnn_matrix_inference_layer.gen.go | 102 +- macos/mps/rnn_matrix_training_layer.gen.go | 148 +- macos/mps/rnn_matrix_training_state.gen.go | 103 +- macos/mps/rnn_recurrent_image_state.gen.go | 103 +- macos/mps/rnn_recurrent_matrix_state.gen.go | 103 +- macos/mps/state.gen.go | 179 +- macos/mps/state_resource_list.gen.go | 34 +- macos/mps/svgf.gen.go | 343 +- .../mps/svgf_default_texture_allocator.gen.go | 32 +- macos/mps/svgf_denoiser.gen.go | 66 +- .../svgf_texture_allocator_protocol.gen.go | 32 +- macos/mps/temporal_aa.gen.go | 24 +- macos/mps/temporary_image.gen.go | 54 +- macos/mps/temporary_matrix.gen.go | 37 +- macos/mps/temporary_nd_array.gen.go | 15 - macos/mps/temporary_vector.gen.go | 15 - .../triangle_acceleration_structure.gen.go | 28 +- macos/mps/unary_image_kernel.gen.go | 73 +- macos/mps/vector.gen.go | 79 +- macos/mps/vector_descriptor.gen.go | 40 +- .../convolution2_d_op_descriptor.gen.go | 168 +- ...thwise_convolution2_d_op_descriptor.gen.go | 172 +- ...thwise_convolution3_d_op_descriptor.gen.go | 68 +- macos/mpsgraph/executable.gen.go | 14 +- .../executable_execution_descriptor.gen.go | 34 +- macos/mpsgraph/execution_descriptor.gen.go | 28 +- macos/mpsgraph/graph.gen.go | 2163 +++------ macos/mpsgraph/lstm_descriptor.gen.go | 136 +- macos/mpsgraph/operation.gen.go | 32 +- .../mpsgraph/pooling2_d_op_descriptor.gen.go | 220 +- .../mpsgraph/pooling4_d_op_descriptor.gen.go | 128 +- macos/mpsgraph/random_op_descriptor.gen.go | 116 +- macos/mpsgraph/shaped_type.gen.go | 28 +- .../single_gate_rnn_descriptor.gen.go | 32 +- macos/mpsgraph/stencil_op_descriptor.gen.go | 120 +- macos/mpsgraph/tensor.gen.go | 14 +- macos/mpsgraph/tensor_data.gen.go | 75 +- macos/mpsgraph/variable_op.gen.go | 14 +- macos/quartz/camera_device_view.gen.go | 342 +- .../quartz/camera_device_view_delegate.gen.go | 37 +- macos/quartz/composition_layer.gen.go | 52 +- macos/quartz/composition_picker_panel.gen.go | 14 - macos/quartz/device_browser_view.gen.go | 88 +- .../device_browser_view_delegate.gen.go | 34 - macos/quartz/enumtypes.gen.go | 12 +- macos/quartz/filter_browser_panel.gen.go | 38 +- macos/quartz/filter_ui_view.gen.go | 38 +- macos/quartz/image_browser_cell.gen.go | 102 +- macos/quartz/image_edit_panel.gen.go | 40 +- macos/quartz/image_view.gen.go | 430 +- macos/quartz/picture_taker.gen.go | 82 +- macos/quartz/plug_in_context_protocol.gen.go | 2 +- macos/quartz/quartz_filter.gen.go | 74 +- macos/quartz/quartz_filter_manager.gen.go | 54 +- macos/quartz/save_options.gen.go | 36 +- macos/quartz/scanner_device_view.gen.go | 196 +- .../scanner_device_view_delegate.gen.go | 101 +- macos/quartz/slideshow.gen.go | 78 +- .../slideshow_data_source_protocol.gen.go | 80 +- macos/quartzcore/animation.gen.go | 100 +- macos/quartzcore/basic_animation.gen.go | 40 +- macos/quartzcore/constraint.gen.go | 52 +- macos/quartzcore/edr_metadata.gen.go | 30 +- macos/quartzcore/emitter_cell.gen.go | 630 +-- macos/quartzcore/emitter_layer.gen.go | 286 +- macos/quartzcore/enumtypes.gen.go | 4 +- macos/quartzcore/gradient_layer.gen.go | 106 +- macos/quartzcore/keyframe_animation.gen.go | 108 +- macos/quartzcore/layer.gen.go | 1555 +++--- macos/quartzcore/layer_delegate.gen.go | 72 +- .../quartzcore/layout_manager_protocol.gen.go | 30 +- macos/quartzcore/media_timing_function.gen.go | 24 +- macos/quartzcore/media_timing_protocol.gen.go | 188 +- .../quartzcore/metal_drawable_protocol.gen.go | 32 +- macos/quartzcore/metal_layer.gen.go | 236 +- macos/quartzcore/open_gl_layer.gen.go | 52 +- macos/quartzcore/property_animation.gen.go | 40 +- macos/quartzcore/remote_layer_client.gen.go | 18 +- macos/quartzcore/renderer.gen.go | 112 +- macos/quartzcore/replicator_layer.gen.go | 184 +- macos/quartzcore/scroll_layer.gen.go | 52 +- macos/quartzcore/shape_layer.gen.go | 206 +- macos/quartzcore/spring_animation.gen.go | 58 +- macos/quartzcore/text_layer.gen.go | 130 +- macos/quartzcore/tiled_layer.gen.go | 86 +- macos/quartzcore/transaction.gen.go | 226 +- macos/quartzcore/transform_layer.gen.go | 52 +- macos/quartzcore/transition.gen.go | 54 +- macos/uti/type.gen.go | 232 +- macos/vision/barcode_observation.gen.go | 20 +- macos/vision/circle.gen.go | 41 +- .../vision/classification_observation.gen.go | 18 +- macos/vision/contour.gen.go | 54 +- macos/vision/contours_observation.gen.go | 28 +- macos/vision/core_ml_request.gen.go | 32 +- macos/vision/detect_contours_request.gen.go | 54 +- macos/vision/detect_rectangles_request.gen.go | 88 +- .../vision/detect_trajectories_request.gen.go | 50 +- macos/vision/detected_point.gen.go | 24 +- macos/vision/face_landmark_region2_d.gen.go | 18 +- macos/vision/face_landmarks2_d.gen.go | 106 +- macos/vision/face_observation.gen.go | 36 +- .../generate_optical_flow_request.gen.go | 301 +- ...enerate_person_segmentation_request.gen.go | 20 +- macos/vision/geometry_utils.gen.go | 30 +- ...ographic_image_registration_request.gen.go | 301 +- .../vision/human_body_pose_observation.gen.go | 28 +- .../vision/human_hand_pose_observation.gen.go | 18 +- .../vision/image_registration_request.gen.go | 301 +- macos/vision/image_request_handler.gen.go | 109 +- macos/vision/observation.gen.go | 18 +- macos/vision/pixel_buffer_observation.gen.go | 18 +- macos/vision/point.gen.go | 58 +- macos/vision/recognize_text_request.gen.go | 68 +- macos/vision/recognized_point.gen.go | 24 +- .../recognized_points_observation.gen.go | 18 +- macos/vision/rectangle_observation.gen.go | 18 +- macos/vision/request.gen.go | 62 +- macos/vision/sequence_request_handler.gen.go | 104 - macos/vision/stateful_request.gen.go | 18 +- macos/vision/targeted_image_request.gen.go | 301 +- macos/vision/track_object_request.gen.go | 14 - macos/vision/track_rectangle_request.gen.go | 14 - macos/vision/tracking_request.gen.go | 34 +- macos/vision/trajectory_observation.gen.go | 28 +- ...lational_image_registration_request.gen.go | 301 +- macos/vision/vector.gen.go | 114 +- macos/vision/video_processor.gen.go | 18 +- macos/webkit/back_forward_list.gen.go | 38 +- macos/webkit/back_forward_list_item.gen.go | 20 +- macos/webkit/content_rule_list_store.gen.go | 32 +- macos/webkit/content_world.gen.go | 16 +- macos/webkit/dom_node.gen.go | 18 +- macos/webkit/domcss_style_declaration.gen.go | 2010 ++++---- macos/webkit/download.gen.go | 18 +- macos/webkit/download_delegate.gen.go | 103 +- macos/webkit/find_configuration.gen.go | 34 +- macos/webkit/frame_info.gen.go | 18 +- macos/webkit/http_cookie_store.gen.go | 42 +- macos/webkit/navigation_action.gen.go | 66 +- macos/webkit/navigation_delegate.gen.go | 437 +- macos/webkit/navigation_response.gen.go | 18 +- macos/webkit/open_panel_parameters.gen.go | 18 +- macos/webkit/preferences.gen.go | 122 +- macos/webkit/script_message.gen.go | 36 +- macos/webkit/security_origin.gen.go | 18 +- macos/webkit/snapshot_configuration.gen.go | 34 +- macos/webkit/ui_delegate.gen.go | 202 +- .../webkit/url_scheme_handler_protocol.gen.go | 16 - macos/webkit/url_scheme_task_protocol.gen.go | 62 +- macos/webkit/user_content_controller.gen.go | 101 +- macos/webkit/user_script.gen.go | 32 +- macos/webkit/web_back_forward_list.gen.go | 2 +- macos/webkit/web_data_source.gen.go | 2 +- ...eb_document_representation_protocol.gen.go | 2 +- .../webkit/web_document_view_protocol.gen.go | 2 +- macos/webkit/web_history.gen.go | 2 +- macos/webkit/web_preferences.gen.go | 2 +- macos/webkit/web_resource.gen.go | 18 +- macos/webkit/web_view.gen.go | 605 ++- macos/webkit/web_view_configuration.gen.go | 180 +- macos/webkit/website_data_store.gen.go | 50 +- macos/webkit/window_features.gen.go | 90 +- 1572 files changed, 91874 insertions(+), 123102 deletions(-) delete mode 100644 macos/appkit/accessibility_element_protocol.gen.go delete mode 100644 macos/appkit/text_attachment_cell_protocol.gen.go delete mode 100644 macos/avfoundation/video_composition_instruction_protocol.gen.go delete mode 100644 macos/foundation/hash_table.gen.go delete mode 100644 macos/foundation/map_table.gen.go diff --git a/macos/appkit/accessibility_button_protocol.gen.go b/macos/appkit/accessibility_button_protocol.gen.go index f42dffcf..2683f82d 100644 --- a/macos/appkit/accessibility_button_protocol.gen.go +++ b/macos/appkit/accessibility_button_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitybutton?language=objc type PAccessibilityButton interface { - // optional - AccessibilityPerformPress() bool - HasAccessibilityPerformPress() bool - // optional AccessibilityLabel() string HasAccessibilityLabel() bool + + // optional + AccessibilityPerformPress() bool + HasAccessibilityPerformPress() bool } // ensure impl type implements protocol interface @@ -27,18 +27,6 @@ type AccessibilityButtonObject struct { objc.Object } -func (a_ AccessibilityButtonObject) HasAccessibilityPerformPress() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformPress")) -} - -// Simulates clicking the button. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitybutton/1525542-accessibilityperformpress?language=objc -func (a_ AccessibilityButtonObject) AccessibilityPerformPress() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformPress")) - return rv -} - func (a_ AccessibilityButtonObject) HasAccessibilityLabel() bool { return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } @@ -50,3 +38,15 @@ func (a_ AccessibilityButtonObject) AccessibilityLabel() string { rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) return rv } + +func (a_ AccessibilityButtonObject) HasAccessibilityPerformPress() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformPress")) +} + +// Simulates clicking the button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitybutton/1525542-accessibilityperformpress?language=objc +func (a_ AccessibilityButtonObject) AccessibilityPerformPress() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformPress")) + return rv +} diff --git a/macos/appkit/accessibility_contains_transient_ui_protocol.gen.go b/macos/appkit/accessibility_contains_transient_ui_protocol.gen.go index 0cb09317..69c0679e 100644 --- a/macos/appkit/accessibility_contains_transient_ui_protocol.gen.go +++ b/macos/appkit/accessibility_contains_transient_ui_protocol.gen.go @@ -10,10 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycontainstransientui?language=objc type PAccessibilityContainsTransientUI interface { - // optional - IsAccessibilityAlternateUIVisible() bool - HasIsAccessibilityAlternateUIVisible() bool - // optional AccessibilityPerformShowDefaultUI() bool HasAccessibilityPerformShowDefaultUI() bool @@ -21,6 +17,10 @@ type PAccessibilityContainsTransientUI interface { // optional AccessibilityPerformShowAlternateUI() bool HasAccessibilityPerformShowAlternateUI() bool + + // optional + IsAccessibilityAlternateUIVisible() bool + HasIsAccessibilityAlternateUIVisible() bool } // ensure impl type implements protocol interface @@ -31,18 +31,6 @@ type AccessibilityContainsTransientUIObject struct { objc.Object } -func (a_ AccessibilityContainsTransientUIObject) HasIsAccessibilityAlternateUIVisible() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityAlternateUIVisible")) -} - -// Returns a Boolean value that determines whether the accessibility element’s alternative UI is currently visible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycontainstransientui/1526272-isaccessibilityalternateuivisibl?language=objc -func (a_ AccessibilityContainsTransientUIObject) IsAccessibilityAlternateUIVisible() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityAlternateUIVisible")) - return rv -} - func (a_ AccessibilityContainsTransientUIObject) HasAccessibilityPerformShowDefaultUI() bool { return a_.RespondsToSelector(objc.Sel("accessibilityPerformShowDefaultUI")) } @@ -66,3 +54,15 @@ func (a_ AccessibilityContainsTransientUIObject) AccessibilityPerformShowAlterna rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformShowAlternateUI")) return rv } + +func (a_ AccessibilityContainsTransientUIObject) HasIsAccessibilityAlternateUIVisible() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityAlternateUIVisible")) +} + +// Returns a Boolean value that determines whether the accessibility element’s alternative UI is currently visible. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycontainstransientui/1526272-isaccessibilityalternateuivisibl?language=objc +func (a_ AccessibilityContainsTransientUIObject) IsAccessibilityAlternateUIVisible() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityAlternateUIVisible")) + return rv +} diff --git a/macos/appkit/accessibility_custom_action.gen.go b/macos/appkit/accessibility_custom_action.gen.go index 0b104687..6b213216 100644 --- a/macos/appkit/accessibility_custom_action.gen.go +++ b/macos/appkit/accessibility_custom_action.gen.go @@ -20,10 +20,10 @@ type IAccessibilityCustomAction interface { objc.IObject Target() objc.Object SetTarget(value objc.IObject) - Selector() objc.Selector - SetSelector(value objc.Selector) Name() string SetName(value string) + Selector() objc.Selector + SetSelector(value objc.Selector) Handler() func() bool SetHandler(value func() bool) } @@ -55,20 +55,6 @@ func NewAccessibilityCustomActionWithNameHandler(name string, handler func() boo return instance } -func (a_ AccessibilityCustomAction) InitWithNameTargetSelector(name string, target objc.IObject, selector objc.Selector) AccessibilityCustomAction { - rv := objc.Call[AccessibilityCustomAction](a_, objc.Sel("initWithName:target:selector:"), name, target, selector) - return rv -} - -// Creates a custom action object with the specified name, target, and selector. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomaction/2870146-initwithname?language=objc -func NewAccessibilityCustomActionWithNameTargetSelector(name string, target objc.IObject, selector objc.Selector) AccessibilityCustomAction { - instance := AccessibilityCustomActionClass.Alloc().InitWithNameTargetSelector(name, target, selector) - instance.Autorelease() - return instance -} - func (ac _AccessibilityCustomActionClass) Alloc() AccessibilityCustomAction { rv := objc.Call[AccessibilityCustomAction](ac, objc.Sel("alloc")) return rv @@ -104,21 +90,6 @@ func (a_ AccessibilityCustomAction) SetTarget(value objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("setTarget:"), value) } -// The method to call on the target to perform the action. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomaction/2870110-selector?language=objc -func (a_ AccessibilityCustomAction) Selector() objc.Selector { - rv := objc.Call[objc.Selector](a_, objc.Sel("selector")) - return rv -} - -// The method to call on the target to perform the action. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomaction/2870110-selector?language=objc -func (a_ AccessibilityCustomAction) SetSelector(value objc.Selector) { - objc.Call[objc.Void](a_, objc.Sel("setSelector:"), value) -} - // A localized name that describes the action. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomaction/2870118-name?language=objc @@ -134,6 +105,21 @@ func (a_ AccessibilityCustomAction) SetName(value string) { objc.Call[objc.Void](a_, objc.Sel("setName:"), value) } +// The method to call on the target to perform the action. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomaction/2870110-selector?language=objc +func (a_ AccessibilityCustomAction) Selector() objc.Selector { + rv := objc.Call[objc.Selector](a_, objc.Sel("selector")) + return rv +} + +// The method to call on the target to perform the action. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomaction/2870110-selector?language=objc +func (a_ AccessibilityCustomAction) SetSelector(value objc.Selector) { + objc.Call[objc.Void](a_, objc.Sel("setSelector:"), value) +} + // The closure that handles the execution of the action. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomaction/2870157-handler?language=objc diff --git a/macos/appkit/accessibility_custom_rotor.gen.go b/macos/appkit/accessibility_custom_rotor.gen.go index 95bccbd5..3ed44fbf 100644 --- a/macos/appkit/accessibility_custom_rotor.gen.go +++ b/macos/appkit/accessibility_custom_rotor.gen.go @@ -21,13 +21,13 @@ type IAccessibilityCustomRotor interface { ItemSearchDelegate() AccessibilityCustomRotorItemSearchDelegateObject SetItemSearchDelegate(value PAccessibilityCustomRotorItemSearchDelegate) SetItemSearchDelegateObject(valueObject objc.IObject) - Label() string - SetLabel(value string) ItemLoadingDelegate() AccessibilityElementLoadingObject SetItemLoadingDelegate(value PAccessibilityElementLoading) SetItemLoadingDelegateObject(valueObject objc.IObject) Type() AccessibilityCustomRotorType SetType(value AccessibilityCustomRotorType) + Label() string + SetLabel(value string) } // A context-sensitive function that helps VoiceOver users find the next instance of a related accessibility element. [Full Topic] @@ -117,21 +117,6 @@ func (a_ AccessibilityCustomRotor) SetItemSearchDelegateObject(valueObject objc. objc.Call[objc.Void](a_, objc.Sel("setItemSearchDelegate:"), valueObject) } -// The localized label that assistive apps use to describe the custom rotor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotor/2876331-label?language=objc -func (a_ AccessibilityCustomRotor) Label() string { - rv := objc.Call[string](a_, objc.Sel("label")) - return rv -} - -// The localized label that assistive apps use to describe the custom rotor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotor/2876331-label?language=objc -func (a_ AccessibilityCustomRotor) SetLabel(value string) { - objc.Call[objc.Void](a_, objc.Sel("setLabel:"), value) -} - // The delegate for loading item results that don’t have a backing UI element at loading time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotor/2890783-itemloadingdelegate?language=objc @@ -170,3 +155,18 @@ func (a_ AccessibilityCustomRotor) Type() AccessibilityCustomRotorType { func (a_ AccessibilityCustomRotor) SetType(value AccessibilityCustomRotorType) { objc.Call[objc.Void](a_, objc.Sel("setType:"), value) } + +// The localized label that assistive apps use to describe the custom rotor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotor/2876331-label?language=objc +func (a_ AccessibilityCustomRotor) Label() string { + rv := objc.Call[string](a_, objc.Sel("label")) + return rv +} + +// The localized label that assistive apps use to describe the custom rotor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotor/2876331-label?language=objc +func (a_ AccessibilityCustomRotor) SetLabel(value string) { + objc.Call[objc.Void](a_, objc.Sel("setLabel:"), value) +} diff --git a/macos/appkit/accessibility_custom_rotor_item_result.gen.go b/macos/appkit/accessibility_custom_rotor_item_result.gen.go index e6e8dc83..3aa3dc1c 100644 --- a/macos/appkit/accessibility_custom_rotor_item_result.gen.go +++ b/macos/appkit/accessibility_custom_rotor_item_result.gen.go @@ -19,12 +19,12 @@ type _AccessibilityCustomRotorItemResultClass struct { // An interface definition for the [AccessibilityCustomRotorItemResult] class. type IAccessibilityCustomRotorItemResult interface { objc.IObject - CustomLabel() string - SetCustomLabel(value string) - TargetElement() AccessibilityElementObject + TargetElement() objc.Object TargetRange() foundation.Range SetTargetRange(value foundation.Range) ItemLoadingToken() AccessibilityLoadingToken + CustomLabel() string + SetCustomLabel(value string) } // A target accessibility element that a custom rotor references. [Full Topic] @@ -40,31 +40,30 @@ func AccessibilityCustomRotorItemResultFrom(ptr unsafe.Pointer) AccessibilityCus } } -func (a_ AccessibilityCustomRotorItemResult) InitWithTargetElement(targetElement PAccessibilityElement) AccessibilityCustomRotorItemResult { - po0 := objc.WrapAsProtocol("NSAccessibilityElement", targetElement) - rv := objc.Call[AccessibilityCustomRotorItemResult](a_, objc.Sel("initWithTargetElement:"), po0) +func (a_ AccessibilityCustomRotorItemResult) InitWithItemLoadingTokenCustomLabel(itemLoadingToken AccessibilityLoadingToken, customLabel string) AccessibilityCustomRotorItemResult { + rv := objc.Call[AccessibilityCustomRotorItemResult](a_, objc.Sel("initWithItemLoadingToken:customLabel:"), itemLoadingToken, customLabel) return rv } -// Creates an item result with the specified target element. [Full Topic] +// Creates an item result with the specified item load token and custom label. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemresult/2876308-initwithtargetelement?language=objc -func NewAccessibilityCustomRotorItemResultWithTargetElement(targetElement PAccessibilityElement) AccessibilityCustomRotorItemResult { - instance := AccessibilityCustomRotorItemResultClass.Alloc().InitWithTargetElement(targetElement) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemresult/2890782-initwithitemloadingtoken?language=objc +func NewAccessibilityCustomRotorItemResultWithItemLoadingTokenCustomLabel(itemLoadingToken AccessibilityLoadingToken, customLabel string) AccessibilityCustomRotorItemResult { + instance := AccessibilityCustomRotorItemResultClass.Alloc().InitWithItemLoadingTokenCustomLabel(itemLoadingToken, customLabel) instance.Autorelease() return instance } -func (a_ AccessibilityCustomRotorItemResult) InitWithItemLoadingTokenCustomLabel(itemLoadingToken AccessibilityLoadingToken, customLabel string) AccessibilityCustomRotorItemResult { - rv := objc.Call[AccessibilityCustomRotorItemResult](a_, objc.Sel("initWithItemLoadingToken:customLabel:"), itemLoadingToken, customLabel) +func (a_ AccessibilityCustomRotorItemResult) InitWithTargetElement(targetElement objc.IObject) AccessibilityCustomRotorItemResult { + rv := objc.Call[AccessibilityCustomRotorItemResult](a_, objc.Sel("initWithTargetElement:"), targetElement) return rv } -// Creates an item result with the specified item load token and custom label. [Full Topic] +// Creates an item result with the specified target element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemresult/2890782-initwithitemloadingtoken?language=objc -func NewAccessibilityCustomRotorItemResultWithItemLoadingTokenCustomLabel(itemLoadingToken AccessibilityLoadingToken, customLabel string) AccessibilityCustomRotorItemResult { - instance := AccessibilityCustomRotorItemResultClass.Alloc().InitWithItemLoadingTokenCustomLabel(itemLoadingToken, customLabel) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemresult/2876308-initwithtargetelement?language=objc +func NewAccessibilityCustomRotorItemResultWithTargetElement(targetElement objc.IObject) AccessibilityCustomRotorItemResult { + instance := AccessibilityCustomRotorItemResultClass.Alloc().InitWithTargetElement(targetElement) instance.Autorelease() return instance } @@ -89,26 +88,11 @@ func (a_ AccessibilityCustomRotorItemResult) Init() AccessibilityCustomRotorItem return rv } -// A localized label to use instead of the default item label to describe the item result. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemresult/2876298-customlabel?language=objc -func (a_ AccessibilityCustomRotorItemResult) CustomLabel() string { - rv := objc.Call[string](a_, objc.Sel("customLabel")) - return rv -} - -// A localized label to use instead of the default item label to describe the item result. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemresult/2876298-customlabel?language=objc -func (a_ AccessibilityCustomRotorItemResult) SetCustomLabel(value string) { - objc.Call[objc.Void](a_, objc.Sel("setCustomLabel:"), value) -} - // A target element that references an element to message for accessibility properties. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemresult/2876335-targetelement?language=objc -func (a_ AccessibilityCustomRotorItemResult) TargetElement() AccessibilityElementObject { - rv := objc.Call[AccessibilityElementObject](a_, objc.Sel("targetElement")) +func (a_ AccessibilityCustomRotorItemResult) TargetElement() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("targetElement")) return rv } @@ -134,3 +118,18 @@ func (a_ AccessibilityCustomRotorItemResult) ItemLoadingToken() AccessibilityLoa rv := objc.Call[AccessibilityLoadingToken](a_, objc.Sel("itemLoadingToken")) return rv } + +// A localized label to use instead of the default item label to describe the item result. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemresult/2876298-customlabel?language=objc +func (a_ AccessibilityCustomRotorItemResult) CustomLabel() string { + rv := objc.Call[string](a_, objc.Sel("customLabel")) + return rv +} + +// A localized label to use instead of the default item label to describe the item result. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemresult/2876298-customlabel?language=objc +func (a_ AccessibilityCustomRotorItemResult) SetCustomLabel(value string) { + objc.Call[objc.Void](a_, objc.Sel("setCustomLabel:"), value) +} diff --git a/macos/appkit/accessibility_custom_rotor_search_parameters.gen.go b/macos/appkit/accessibility_custom_rotor_search_parameters.gen.go index cf1cd0a2..7444f8d3 100644 --- a/macos/appkit/accessibility_custom_rotor_search_parameters.gen.go +++ b/macos/appkit/accessibility_custom_rotor_search_parameters.gen.go @@ -18,12 +18,12 @@ type _AccessibilityCustomRotorSearchParametersClass struct { // An interface definition for the [AccessibilityCustomRotorSearchParameters] class. type IAccessibilityCustomRotorSearchParameters interface { objc.IObject - FilterString() string - SetFilterString(value string) SearchDirection() AccessibilityCustomRotorSearchDirection SetSearchDirection(value AccessibilityCustomRotorSearchDirection) CurrentItem() AccessibilityCustomRotorItemResult SetCurrentItem(value IAccessibilityCustomRotorItemResult) + FilterString() string + SetFilterString(value string) } // Search parameters for a custom rotor. [Full Topic] @@ -59,21 +59,6 @@ func (a_ AccessibilityCustomRotorSearchParameters) Init() AccessibilityCustomRot return rv } -// A string of text to filter the results against. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotorsearchparameters/2876328-filterstring?language=objc -func (a_ AccessibilityCustomRotorSearchParameters) FilterString() string { - rv := objc.Call[string](a_, objc.Sel("filterString")) - return rv -} - -// A string of text to filter the results against. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotorsearchparameters/2876328-filterstring?language=objc -func (a_ AccessibilityCustomRotorSearchParameters) SetFilterString(value string) { - objc.Call[objc.Void](a_, objc.Sel("setFilterString:"), value) -} - // The direction to search for an item result. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotorsearchparameters/2876322-searchdirection?language=objc @@ -103,3 +88,18 @@ func (a_ AccessibilityCustomRotorSearchParameters) CurrentItem() AccessibilityCu func (a_ AccessibilityCustomRotorSearchParameters) SetCurrentItem(value IAccessibilityCustomRotorItemResult) { objc.Call[objc.Void](a_, objc.Sel("setCurrentItem:"), value) } + +// A string of text to filter the results against. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotorsearchparameters/2876328-filterstring?language=objc +func (a_ AccessibilityCustomRotorSearchParameters) FilterString() string { + rv := objc.Call[string](a_, objc.Sel("filterString")) + return rv +} + +// A string of text to filter the results against. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotorsearchparameters/2876328-filterstring?language=objc +func (a_ AccessibilityCustomRotorSearchParameters) SetFilterString(value string) { + objc.Call[objc.Void](a_, objc.Sel("setFilterString:"), value) +} diff --git a/macos/appkit/accessibility_element.gen.go b/macos/appkit/accessibility_element.gen.go index 74cfc022..3c3ad667 100644 --- a/macos/appkit/accessibility_element.gen.go +++ b/macos/appkit/accessibility_element.gen.go @@ -19,12 +19,11 @@ type _AccessibilityElementClass struct { // An interface definition for the [AccessibilityElement] class. type IAccessibilityElement interface { objc.IObject - AccessibilityIdentifier() string + AccessibilityAddChildElement(childElement IAccessibilityElement) AccessibilityParent() objc.Object AccessibilityFrame() foundation.Rect IsAccessibilityFocused() bool - AccessibilityAddChildElement(childElement PAccessibilityElement) - AccessibilityAddChildElementObject(childElementObject objc.IObject) + AccessibilityIdentifier() string AccessibilityFrameInParentSpace() foundation.Rect SetAccessibilityFrameInParentSpace(value foundation.Rect) } @@ -62,12 +61,11 @@ func (a_ AccessibilityElement) Init() AccessibilityElement { return rv } -// Returns the accessibility element’s identity. [Full Topic] +// Adds a child to the accessibility element in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/1534023-nsaccessibilityelement/1533707-accessibilityidentifier?language=objc -func (a_ AccessibilityElement) AccessibilityIdentifier() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityIdentifier")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelement/1533717-accessibilityaddchildelement?language=objc +func (a_ AccessibilityElement) AccessibilityAddChildElement(childElement IAccessibilityElement) { + objc.Call[objc.Void](a_, objc.Sel("accessibilityAddChildElement:"), childElement) } // Returns the accessibility element’s parent in the accessibility hierarchy. [Full Topic] @@ -94,21 +92,6 @@ func (a_ AccessibilityElement) IsAccessibilityFocused() bool { return rv } -// Adds a child to the accessibility element in the accessibility hierarchy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelement/1533717-accessibilityaddchildelement?language=objc -func (a_ AccessibilityElement) AccessibilityAddChildElement(childElement PAccessibilityElement) { - po0 := objc.WrapAsProtocol("NSAccessibilityElement", childElement) - objc.Call[objc.Void](a_, objc.Sel("accessibilityAddChildElement:"), po0) -} - -// Adds a child to the accessibility element in the accessibility hierarchy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelement/1533717-accessibilityaddchildelement?language=objc -func (a_ AccessibilityElement) AccessibilityAddChildElementObject(childElementObject objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("accessibilityAddChildElement:"), childElementObject) -} - // Instantiates and configures a new accessibility element. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelement/1531178-accessibilityelementwithrole?language=objc @@ -124,6 +107,14 @@ func AccessibilityElement_AccessibilityElementWithRoleFrameLabelParent(role Acce return AccessibilityElementClass.AccessibilityElementWithRoleFrameLabelParent(role, frame, label, parent) } +// Returns the accessibility element’s identity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/1534023-nsaccessibilityelement/1533707-accessibilityidentifier?language=objc +func (a_ AccessibilityElement) AccessibilityIdentifier() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityIdentifier")) + return rv +} + // The accessibility element’s frame in its parent’s coordinate system. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelement/1569648-accessibilityframeinparentspace?language=objc diff --git a/macos/appkit/accessibility_element_loading_protocol.gen.go b/macos/appkit/accessibility_element_loading_protocol.gen.go index 461d99ed..79471353 100644 --- a/macos/appkit/accessibility_element_loading_protocol.gen.go +++ b/macos/appkit/accessibility_element_loading_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelementloading?language=objc type PAccessibilityElementLoading interface { // optional - AccessibilityRangeInTargetElementWithToken(token AccessibilityLoadingToken) foundation.Range - HasAccessibilityRangeInTargetElementWithToken() bool + AccessibilityElementWithToken(token AccessibilityLoadingToken) objc.Object + HasAccessibilityElementWithToken() bool // optional - AccessibilityElementWithToken(token AccessibilityLoadingToken) AccessibilityElementObject - HasAccessibilityElementWithToken() bool + AccessibilityRangeInTargetElementWithToken(token AccessibilityLoadingToken) foundation.Range + HasAccessibilityRangeInTargetElementWithToken() bool } // ensure impl type implements protocol interface @@ -28,26 +28,26 @@ type AccessibilityElementLoadingObject struct { objc.Object } -func (a_ AccessibilityElementLoadingObject) HasAccessibilityRangeInTargetElementWithToken() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRangeInTargetElementWithToken:")) +func (a_ AccessibilityElementLoadingObject) HasAccessibilityElementWithToken() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityElementWithToken:")) } -// Returns the range that specifies the area of interest in text-based accessibility elements with the specified load token. [Full Topic] +// Loads the target accessibility element with the specified load token. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelementloading/2890818-accessibilityrangeintargetelemen?language=objc -func (a_ AccessibilityElementLoadingObject) AccessibilityRangeInTargetElementWithToken(token AccessibilityLoadingToken) foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeInTargetElementWithToken:"), token) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelementloading/2890815-accessibilityelementwithtoken?language=objc +func (a_ AccessibilityElementLoadingObject) AccessibilityElementWithToken(token AccessibilityLoadingToken) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityElementWithToken:"), token) return rv } -func (a_ AccessibilityElementLoadingObject) HasAccessibilityElementWithToken() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityElementWithToken:")) +func (a_ AccessibilityElementLoadingObject) HasAccessibilityRangeInTargetElementWithToken() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRangeInTargetElementWithToken:")) } -// Loads the target accessibility element with the specified load token. [Full Topic] +// Returns the range that specifies the area of interest in text-based accessibility elements with the specified load token. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelementloading/2890815-accessibilityelementwithtoken?language=objc -func (a_ AccessibilityElementLoadingObject) AccessibilityElementWithToken(token AccessibilityLoadingToken) AccessibilityElementObject { - rv := objc.Call[AccessibilityElementObject](a_, objc.Sel("accessibilityElementWithToken:"), token) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelementloading/2890818-accessibilityrangeintargetelemen?language=objc +func (a_ AccessibilityElementLoadingObject) AccessibilityRangeInTargetElementWithToken(token AccessibilityLoadingToken) foundation.Range { + rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeInTargetElementWithToken:"), token) return rv } diff --git a/macos/appkit/accessibility_element_protocol.gen.go b/macos/appkit/accessibility_element_protocol.gen.go deleted file mode 100644 index 2b1bf4aa..00000000 --- a/macos/appkit/accessibility_element_protocol.gen.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by DarwinKit. DO NOT EDIT. - -package appkit - -import ( - "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/objc" -) - -// A role-based protocol that declares the minimum interface necessary to interact with an assistive app. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1534023-nsaccessibilityelement?language=objc -type PAccessibilityElement interface { - // optional - AccessibilityIdentifier() string - HasAccessibilityIdentifier() bool - - // optional - AccessibilityParent() objc.Object - HasAccessibilityParent() bool - - // optional - AccessibilityFrame() foundation.Rect - HasAccessibilityFrame() bool - - // optional - IsAccessibilityFocused() bool - HasIsAccessibilityFocused() bool - - // optional - AccessibilityAddChildElement(childElement AccessibilityElementObject) - HasAccessibilityAddChildElement() bool - - // optional - SetAccessibilityFrameInParentSpace(value foundation.Rect) - HasSetAccessibilityFrameInParentSpace() bool - - // optional - AccessibilityFrameInParentSpace() foundation.Rect - HasAccessibilityFrameInParentSpace() bool -} - -// ensure impl type implements protocol interface -var _ PAccessibilityElement = (*AccessibilityElementObject)(nil) - -// A concrete type for the [PAccessibilityElement] protocol. -type AccessibilityElementObject struct { - objc.Object -} - -func (a_ AccessibilityElementObject) HasAccessibilityIdentifier() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityIdentifier")) -} - -// Returns the accessibility element’s identity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1534023-nsaccessibilityelement/1533707-accessibilityidentifier?language=objc -func (a_ AccessibilityElementObject) AccessibilityIdentifier() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityIdentifier")) - return rv -} - -func (a_ AccessibilityElementObject) HasAccessibilityParent() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityParent")) -} - -// Returns the accessibility element’s parent in the accessibility hierarchy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1534023-nsaccessibilityelement/1529078-accessibilityparent?language=objc -func (a_ AccessibilityElementObject) AccessibilityParent() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityParent")) - return rv -} - -func (a_ AccessibilityElementObject) HasAccessibilityFrame() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityFrame")) -} - -// Returns the accessibility element’s frame in screen coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1534023-nsaccessibilityelement/1528055-accessibilityframe?language=objc -func (a_ AccessibilityElementObject) AccessibilityFrame() foundation.Rect { - rv := objc.Call[foundation.Rect](a_, objc.Sel("accessibilityFrame")) - return rv -} - -func (a_ AccessibilityElementObject) HasIsAccessibilityFocused() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityFocused")) -} - -// Returns a Boolean value that indicates whether the accessibility element has the keyboard focus. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1534023-nsaccessibilityelement/1525133-isaccessibilityfocused?language=objc -func (a_ AccessibilityElementObject) IsAccessibilityFocused() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityFocused")) - return rv -} - -func (a_ AccessibilityElementObject) HasAccessibilityAddChildElement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityAddChildElement:")) -} - -// Adds a child to the accessibility element in the accessibility hierarchy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelement/1533717-accessibilityaddchildelement?language=objc -func (a_ AccessibilityElementObject) AccessibilityAddChildElement(childElement AccessibilityElementObject) { - po0 := objc.WrapAsProtocol("NSAccessibilityElement", childElement) - objc.Call[objc.Void](a_, objc.Sel("accessibilityAddChildElement:"), po0) -} - -func (a_ AccessibilityElementObject) HasSetAccessibilityFrameInParentSpace() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityFrameInParentSpace:")) -} - -// The accessibility element’s frame in its parent’s coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelement/1569648-accessibilityframeinparentspace?language=objc -func (a_ AccessibilityElementObject) SetAccessibilityFrameInParentSpace(value foundation.Rect) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFrameInParentSpace:"), value) -} - -func (a_ AccessibilityElementObject) HasAccessibilityFrameInParentSpace() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityFrameInParentSpace")) -} - -// The accessibility element’s frame in its parent’s coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelement/1569648-accessibilityframeinparentspace?language=objc -func (a_ AccessibilityElementObject) AccessibilityFrameInParentSpace() foundation.Rect { - rv := objc.Call[foundation.Rect](a_, objc.Sel("accessibilityFrameInParentSpace")) - return rv -} diff --git a/macos/appkit/accessibility_layout_area_protocol.gen.go b/macos/appkit/accessibility_layout_area_protocol.gen.go index f153914a..251d7ff9 100644 --- a/macos/appkit/accessibility_layout_area_protocol.gen.go +++ b/macos/appkit/accessibility_layout_area_protocol.gen.go @@ -14,14 +14,14 @@ type PAccessibilityLayoutArea interface { AccessibilityChildren() []objc.Object HasAccessibilityChildren() bool - // optional - AccessibilitySelectedChildren() []objc.Object - HasAccessibilitySelectedChildren() bool - // optional AccessibilityLabel() string HasAccessibilityLabel() bool + // optional + AccessibilitySelectedChildren() []objc.Object + HasAccessibilitySelectedChildren() bool + // optional AccessibilityFocusedUIElement() objc.Object HasAccessibilityFocusedUIElement() bool @@ -47,18 +47,6 @@ func (a_ AccessibilityLayoutAreaObject) AccessibilityChildren() []objc.Object { return rv } -func (a_ AccessibilityLayoutAreaObject) HasAccessibilitySelectedChildren() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedChildren")) -} - -// Returns the layout area’s currently selected children. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitylayoutarea/1528883-accessibilityselectedchildren?language=objc -func (a_ AccessibilityLayoutAreaObject) AccessibilitySelectedChildren() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedChildren")) - return rv -} - func (a_ AccessibilityLayoutAreaObject) HasAccessibilityLabel() bool { return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } @@ -71,6 +59,18 @@ func (a_ AccessibilityLayoutAreaObject) AccessibilityLabel() string { return rv } +func (a_ AccessibilityLayoutAreaObject) HasAccessibilitySelectedChildren() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedChildren")) +} + +// Returns the layout area’s currently selected children. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitylayoutarea/1528883-accessibilityselectedchildren?language=objc +func (a_ AccessibilityLayoutAreaObject) AccessibilitySelectedChildren() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedChildren")) + return rv +} + func (a_ AccessibilityLayoutAreaObject) HasAccessibilityFocusedUIElement() bool { return a_.RespondsToSelector(objc.Sel("accessibilityFocusedUIElement")) } diff --git a/macos/appkit/accessibility_navigable_static_text_protocol.gen.go b/macos/appkit/accessibility_navigable_static_text_protocol.gen.go index aa6ec791..667b2930 100644 --- a/macos/appkit/accessibility_navigable_static_text_protocol.gen.go +++ b/macos/appkit/accessibility_navigable_static_text_protocol.gen.go @@ -15,6 +15,10 @@ type PAccessibilityNavigableStaticText interface { AccessibilityFrameForRange(range_ foundation.Range) foundation.Rect HasAccessibilityFrameForRange() bool + // optional + AccessibilityRangeForLine(lineNumber int) foundation.Range + HasAccessibilityRangeForLine() bool + // optional AccessibilityLineForIndex(index int) int HasAccessibilityLineForIndex() bool @@ -22,10 +26,6 @@ type PAccessibilityNavigableStaticText interface { // optional AccessibilityStringForRange(range_ foundation.Range) string HasAccessibilityStringForRange() bool - - // optional - AccessibilityRangeForLine(lineNumber int) foundation.Range - HasAccessibilityRangeForLine() bool } // ensure impl type implements protocol interface @@ -48,6 +48,18 @@ func (a_ AccessibilityNavigableStaticTextObject) AccessibilityFrameForRange(rang return rv } +func (a_ AccessibilityNavigableStaticTextObject) HasAccessibilityRangeForLine() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRangeForLine:")) +} + +// Returns the range of characters in the specified line. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitynavigablestatictext/1527015-accessibilityrangeforline?language=objc +func (a_ AccessibilityNavigableStaticTextObject) AccessibilityRangeForLine(lineNumber int) foundation.Range { + rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeForLine:"), lineNumber) + return rv +} + func (a_ AccessibilityNavigableStaticTextObject) HasAccessibilityLineForIndex() bool { return a_.RespondsToSelector(objc.Sel("accessibilityLineForIndex:")) } @@ -71,15 +83,3 @@ func (a_ AccessibilityNavigableStaticTextObject) AccessibilityStringForRange(ran rv := objc.Call[string](a_, objc.Sel("accessibilityStringForRange:"), range_) return rv } - -func (a_ AccessibilityNavigableStaticTextObject) HasAccessibilityRangeForLine() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRangeForLine:")) -} - -// Returns the range of characters in the specified line. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitynavigablestatictext/1527015-accessibilityrangeforline?language=objc -func (a_ AccessibilityNavigableStaticTextObject) AccessibilityRangeForLine(lineNumber int) foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeForLine:"), lineNumber) - return rv -} diff --git a/macos/appkit/accessibility_protocol.gen.go b/macos/appkit/accessibility_protocol.gen.go index 99e1ecad..9cf10af5 100644 --- a/macos/appkit/accessibility_protocol.gen.go +++ b/macos/appkit/accessibility_protocol.gen.go @@ -12,164 +12,156 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility?language=objc type PAccessibility interface { // optional - AccessibilityPerformShowDefaultUI() bool - HasAccessibilityPerformShowDefaultUI() bool - - // optional - AccessibilityCellForColumnRow(column int, row int) objc.Object - HasAccessibilityCellForColumnRow() bool + AccessibilityAttributedStringForRange(range_ foundation.Range) foundation.AttributedString + HasAccessibilityAttributedStringForRange() bool // optional - AccessibilityScreenPointForLayoutPoint(point foundation.Point) foundation.Point - HasAccessibilityScreenPointForLayoutPoint() bool + AccessibilityFrameForRange(range_ foundation.Range) foundation.Rect + HasAccessibilityFrameForRange() bool // optional - AccessibilityPerformDecrement() bool - HasAccessibilityPerformDecrement() bool + AccessibilityRTFForRange(range_ foundation.Range) []byte + HasAccessibilityRTFForRange() bool // optional - AccessibilityStringForRange(range_ foundation.Range) string - HasAccessibilityStringForRange() bool + AccessibilityRangeForLine(line int) foundation.Range + HasAccessibilityRangeForLine() bool // optional - AccessibilityPerformConfirm() bool - HasAccessibilityPerformConfirm() bool + AccessibilityLayoutSizeForScreenSize(size foundation.Size) foundation.Size + HasAccessibilityLayoutSizeForScreenSize() bool // optional - AccessibilityRTFForRange(range_ foundation.Range) []byte - HasAccessibilityRTFForRange() bool + AccessibilityPerformShowDefaultUI() bool + HasAccessibilityPerformShowDefaultUI() bool // optional - AccessibilityLineForIndex(index int) int - HasAccessibilityLineForIndex() bool + AccessibilityPerformDecrement() bool + HasAccessibilityPerformDecrement() bool // optional - AccessibilityPerformDelete() bool - HasAccessibilityPerformDelete() bool + AccessibilityPerformShowAlternateUI() bool + HasAccessibilityPerformShowAlternateUI() bool // optional - AccessibilityStyleRangeForIndex(index int) foundation.Range - HasAccessibilityStyleRangeForIndex() bool + AccessibilityLineForIndex(index int) int + HasAccessibilityLineForIndex() bool // optional - AccessibilityAttributedStringForRange(range_ foundation.Range) foundation.AttributedString - HasAccessibilityAttributedStringForRange() bool + AccessibilityPerformPress() bool + HasAccessibilityPerformPress() bool // optional - AccessibilityPerformShowAlternateUI() bool - HasAccessibilityPerformShowAlternateUI() bool + AccessibilityScreenPointForLayoutPoint(point foundation.Point) foundation.Point + HasAccessibilityScreenPointForLayoutPoint() bool // optional - AccessibilityPerformRaise() bool - HasAccessibilityPerformRaise() bool + AccessibilityPerformDelete() bool + HasAccessibilityPerformDelete() bool // optional AccessibilityRangeForPosition(point foundation.Point) foundation.Range HasAccessibilityRangeForPosition() bool - // optional - IsAccessibilitySelectorAllowed(selector objc.Selector) bool - HasIsAccessibilitySelectorAllowed() bool - // optional AccessibilityPerformShowMenu() bool HasAccessibilityPerformShowMenu() bool // optional - AccessibilityPerformPress() bool - HasAccessibilityPerformPress() bool + AccessibilityPerformConfirm() bool + HasAccessibilityPerformConfirm() bool // optional - AccessibilityScreenSizeForLayoutSize(size foundation.Size) foundation.Size - HasAccessibilityScreenSizeForLayoutSize() bool + AccessibilityPerformIncrement() bool + HasAccessibilityPerformIncrement() bool // optional - AccessibilityFrameForRange(range_ foundation.Range) foundation.Rect - HasAccessibilityFrameForRange() bool + AccessibilityStyleRangeForIndex(index int) foundation.Range + HasAccessibilityStyleRangeForIndex() bool // optional AccessibilityRangeForIndex(index int) foundation.Range HasAccessibilityRangeForIndex() bool // optional - AccessibilityRangeForLine(line int) foundation.Range - HasAccessibilityRangeForLine() bool + AccessibilityPerformRaise() bool + HasAccessibilityPerformRaise() bool // optional AccessibilityPerformCancel() bool HasAccessibilityPerformCancel() bool // optional - AccessibilityPerformPick() bool - HasAccessibilityPerformPick() bool + AccessibilityStringForRange(range_ foundation.Range) string + HasAccessibilityStringForRange() bool // optional - AccessibilityLayoutSizeForScreenSize(size foundation.Size) foundation.Size - HasAccessibilityLayoutSizeForScreenSize() bool + IsAccessibilitySelectorAllowed(selector objc.Selector) bool + HasIsAccessibilitySelectorAllowed() bool // optional - AccessibilityLayoutPointForScreenPoint(point foundation.Point) foundation.Point - HasAccessibilityLayoutPointForScreenPoint() bool + AccessibilityCellForColumnRow(column int, row int) objc.Object + HasAccessibilityCellForColumnRow() bool // optional - AccessibilityPerformIncrement() bool - HasAccessibilityPerformIncrement() bool + AccessibilityPerformPick() bool + HasAccessibilityPerformPick() bool // optional - SetAccessibilityHandles(value []objc.Object) - HasSetAccessibilityHandles() bool + AccessibilityScreenSizeForLayoutSize(size foundation.Size) foundation.Size + HasAccessibilityScreenSizeForLayoutSize() bool // optional - AccessibilityHandles() []objc.Object - HasAccessibilityHandles() bool + AccessibilityLayoutPointForScreenPoint(point foundation.Point) foundation.Point + HasAccessibilityLayoutPointForScreenPoint() bool // optional - SetAccessibilityActivationPoint(value foundation.Point) - HasSetAccessibilityActivationPoint() bool + SetAccessibilityClearButton(value objc.Object) + HasSetAccessibilityClearButton() bool // optional - AccessibilityActivationPoint() foundation.Point - HasAccessibilityActivationPoint() bool + AccessibilityClearButton() objc.Object + HasAccessibilityClearButton() bool // optional - SetAccessibilityMarkerUIElements(value []objc.Object) - HasSetAccessibilityMarkerUIElements() bool + SetAccessibilityOverflowButton(value objc.Object) + HasSetAccessibilityOverflowButton() bool // optional - AccessibilityMarkerUIElements() []objc.Object - HasAccessibilityMarkerUIElements() bool + AccessibilityOverflowButton() objc.Object + HasAccessibilityOverflowButton() bool // optional - SetAccessibilityRowCount(value int) - HasSetAccessibilityRowCount() bool + SetAccessibilityChildren(value []objc.Object) + HasSetAccessibilityChildren() bool // optional - AccessibilityRowCount() int - HasAccessibilityRowCount() bool + AccessibilityChildren() []objc.Object + HasAccessibilityChildren() bool // optional - SetAccessibilityAlternateUIVisible(value bool) - HasSetAccessibilityAlternateUIVisible() bool + SetAccessibilityColumnHeaderUIElements(value []objc.Object) + HasSetAccessibilityColumnHeaderUIElements() bool // optional - IsAccessibilityAlternateUIVisible() bool - HasIsAccessibilityAlternateUIVisible() bool + AccessibilityColumnHeaderUIElements() []objc.Object + HasAccessibilityColumnHeaderUIElements() bool // optional - SetAccessibilityRequired(value bool) - HasSetAccessibilityRequired() bool + SetAccessibilitySelectedTextRanges(value []foundation.Value) + HasSetAccessibilitySelectedTextRanges() bool // optional - IsAccessibilityRequired() bool - HasIsAccessibilityRequired() bool + AccessibilitySelectedTextRanges() []foundation.Value + HasAccessibilitySelectedTextRanges() bool // optional - SetAccessibilityHorizontalUnits(value AccessibilityUnits) - HasSetAccessibilityHorizontalUnits() bool + SetAccessibilityCriticalValue(value objc.Object) + HasSetAccessibilityCriticalValue() bool // optional - AccessibilityHorizontalUnits() AccessibilityUnits - HasAccessibilityHorizontalUnits() bool + AccessibilityCriticalValue() objc.Object + HasAccessibilityCriticalValue() bool // optional SetAccessibilityHeader(value objc.Object) @@ -180,172 +172,148 @@ type PAccessibility interface { HasAccessibilityHeader() bool // optional - SetAccessibilityDisclosedRows(value objc.Object) - HasSetAccessibilityDisclosedRows() bool + SetAccessibilitySharedCharacterRange(value foundation.Range) + HasSetAccessibilitySharedCharacterRange() bool // optional - AccessibilityDisclosedRows() objc.Object - HasAccessibilityDisclosedRows() bool + AccessibilitySharedCharacterRange() foundation.Range + HasAccessibilitySharedCharacterRange() bool // optional - SetAccessibilityMenuBar(value objc.Object) - HasSetAccessibilityMenuBar() bool + SetAccessibilityMarkerGroupUIElement(value objc.Object) + HasSetAccessibilityMarkerGroupUIElement() bool // optional - AccessibilityMenuBar() objc.Object - HasAccessibilityMenuBar() bool + AccessibilityMarkerGroupUIElement() objc.Object + HasAccessibilityMarkerGroupUIElement() bool // optional - SetAccessibilityDisclosureLevel(value int) - HasSetAccessibilityDisclosureLevel() bool + SetAccessibilityRequired(value bool) + HasSetAccessibilityRequired() bool // optional - AccessibilityDisclosureLevel() int - HasAccessibilityDisclosureLevel() bool + IsAccessibilityRequired() bool + HasIsAccessibilityRequired() bool // optional - SetAccessibilityExtrasMenuBar(value objc.Object) - HasSetAccessibilityExtrasMenuBar() bool + SetAccessibilitySearchButton(value objc.Object) + HasSetAccessibilitySearchButton() bool // optional - AccessibilityExtrasMenuBar() objc.Object - HasAccessibilityExtrasMenuBar() bool + AccessibilitySearchButton() objc.Object + HasAccessibilitySearchButton() bool // optional - SetAccessibilityIdentifier(value string) - HasSetAccessibilityIdentifier() bool + SetAccessibilityParent(value objc.Object) + HasSetAccessibilityParent() bool // optional - AccessibilityIdentifier() string - HasAccessibilityIdentifier() bool + AccessibilityParent() objc.Object + HasAccessibilityParent() bool // optional - SetAccessibilityMaxValue(value objc.Object) - HasSetAccessibilityMaxValue() bool + SetAccessibilityNumberOfCharacters(value int) + HasSetAccessibilityNumberOfCharacters() bool // optional - AccessibilityMaxValue() objc.Object - HasAccessibilityMaxValue() bool + AccessibilityNumberOfCharacters() int + HasAccessibilityNumberOfCharacters() bool // optional - SetAccessibilityRoleDescription(value string) - HasSetAccessibilityRoleDescription() bool + SetAccessibilityDefaultButton(value objc.Object) + HasSetAccessibilityDefaultButton() bool // optional - AccessibilityRoleDescription() string - HasAccessibilityRoleDescription() bool + AccessibilityDefaultButton() objc.Object + HasAccessibilityDefaultButton() bool // optional - SetAccessibilityIncrementButton(value objc.Object) - HasSetAccessibilityIncrementButton() bool + SetAccessibilityTitle(value string) + HasSetAccessibilityTitle() bool // optional - AccessibilityIncrementButton() objc.Object - HasAccessibilityIncrementButton() bool + AccessibilityTitle() string + HasAccessibilityTitle() bool // optional - SetAccessibilityURL(value foundation.URL) - HasSetAccessibilityURL() bool + SetAccessibilityRowHeaderUIElements(value []objc.Object) + HasSetAccessibilityRowHeaderUIElements() bool // optional - AccessibilityURL() foundation.URL - HasAccessibilityURL() bool + AccessibilityRowHeaderUIElements() []objc.Object + HasAccessibilityRowHeaderUIElements() bool // optional - SetAccessibilityTitleUIElement(value objc.Object) - HasSetAccessibilityTitleUIElement() bool + SetAccessibilityVisibleCharacterRange(value foundation.Range) + HasSetAccessibilityVisibleCharacterRange() bool // optional - AccessibilityTitleUIElement() objc.Object - HasAccessibilityTitleUIElement() bool + AccessibilityVisibleCharacterRange() foundation.Range + HasAccessibilityVisibleCharacterRange() bool // optional - SetAccessibilityVisibleCells(value []objc.Object) - HasSetAccessibilityVisibleCells() bool + SetAccessibilityFrame(value foundation.Rect) + HasSetAccessibilityFrame() bool // optional - AccessibilityVisibleCells() []objc.Object - HasAccessibilityVisibleCells() bool + AccessibilityFrame() foundation.Rect + HasAccessibilityFrame() bool // optional - SetAccessibilityPlaceholderValue(value string) - HasSetAccessibilityPlaceholderValue() bool + SetAccessibilityHidden(value bool) + HasSetAccessibilityHidden() bool // optional - AccessibilityPlaceholderValue() string - HasAccessibilityPlaceholderValue() bool + IsAccessibilityHidden() bool + HasIsAccessibilityHidden() bool // optional - SetAccessibilityWarningValue(value objc.Object) - HasSetAccessibilityWarningValue() bool + SetAccessibilityMarkerTypeDescription(value string) + HasSetAccessibilityMarkerTypeDescription() bool // optional - AccessibilityWarningValue() objc.Object - HasAccessibilityWarningValue() bool + AccessibilityMarkerTypeDescription() string + HasAccessibilityMarkerTypeDescription() bool // optional - SetAccessibilityDecrementButton(value objc.Object) - HasSetAccessibilityDecrementButton() bool + SetAccessibilityRowIndexRange(value foundation.Range) + HasSetAccessibilityRowIndexRange() bool // optional - AccessibilityDecrementButton() objc.Object - HasAccessibilityDecrementButton() bool + AccessibilityRowIndexRange() foundation.Range + HasAccessibilityRowIndexRange() bool // optional - SetAccessibilitySelectedColumns(value []objc.Object) - HasSetAccessibilitySelectedColumns() bool - - // optional - AccessibilitySelectedColumns() []objc.Object - HasAccessibilitySelectedColumns() bool - - // optional - SetAccessibilityMinValue(value objc.Object) - HasSetAccessibilityMinValue() bool - - // optional - AccessibilityMinValue() objc.Object - HasAccessibilityMinValue() bool - - // optional - SetAccessibilityLinkedUIElements(value []objc.Object) - HasSetAccessibilityLinkedUIElements() bool - - // optional - AccessibilityLinkedUIElements() []objc.Object - HasAccessibilityLinkedUIElements() bool - - // optional - SetAccessibilityCustomActions(value []AccessibilityCustomAction) - HasSetAccessibilityCustomActions() bool + SetAccessibilityVerticalUnits(value AccessibilityUnits) + HasSetAccessibilityVerticalUnits() bool // optional - AccessibilityCustomActions() []AccessibilityCustomAction - HasAccessibilityCustomActions() bool + AccessibilityVerticalUnits() AccessibilityUnits + HasAccessibilityVerticalUnits() bool // optional - SetAccessibilityColumnIndexRange(value foundation.Range) - HasSetAccessibilityColumnIndexRange() bool + SetAccessibilityVisibleRows(value []objc.Object) + HasSetAccessibilityVisibleRows() bool // optional - AccessibilityColumnIndexRange() foundation.Range - HasAccessibilityColumnIndexRange() bool + AccessibilityVisibleRows() []objc.Object + HasAccessibilityVisibleRows() bool // optional - SetAccessibilityEdited(value bool) - HasSetAccessibilityEdited() bool + SetAccessibilitySelectedCells(value []objc.Object) + HasSetAccessibilitySelectedCells() bool // optional - IsAccessibilityEdited() bool - HasIsAccessibilityEdited() bool + AccessibilitySelectedCells() []objc.Object + HasAccessibilitySelectedCells() bool // optional - SetAccessibilityLabel(value string) - HasSetAccessibilityLabel() bool + SetAccessibilityVisibleColumns(value []objc.Object) + HasSetAccessibilityVisibleColumns() bool // optional - AccessibilityLabel() string - HasAccessibilityLabel() bool + AccessibilityVisibleColumns() []objc.Object + HasAccessibilityVisibleColumns() bool // optional SetAccessibilityMain(value bool) @@ -356,60 +324,60 @@ type PAccessibility interface { HasIsAccessibilityMain() bool // optional - SetAccessibilityHidden(value bool) - HasSetAccessibilityHidden() bool + SetAccessibilityMarkerUIElements(value []objc.Object) + HasSetAccessibilityMarkerUIElements() bool // optional - IsAccessibilityHidden() bool - HasIsAccessibilityHidden() bool + AccessibilityMarkerUIElements() []objc.Object + HasAccessibilityMarkerUIElements() bool // optional - SetAccessibilityFocused(value bool) - HasSetAccessibilityFocused() bool + SetAccessibilityWarningValue(value objc.Object) + HasSetAccessibilityWarningValue() bool // optional - IsAccessibilityFocused() bool - HasIsAccessibilityFocused() bool + AccessibilityWarningValue() objc.Object + HasAccessibilityWarningValue() bool // optional - SetAccessibilityVerticalScrollBar(value objc.Object) - HasSetAccessibilityVerticalScrollBar() bool + SetAccessibilityContents(value []objc.Object) + HasSetAccessibilityContents() bool // optional - AccessibilityVerticalScrollBar() objc.Object - HasAccessibilityVerticalScrollBar() bool + AccessibilityContents() []objc.Object + HasAccessibilityContents() bool // optional - SetAccessibilitySubrole(value AccessibilitySubrole) - HasSetAccessibilitySubrole() bool + SetAccessibilityServesAsTitleForUIElements(value []objc.Object) + HasSetAccessibilityServesAsTitleForUIElements() bool // optional - AccessibilitySubrole() AccessibilitySubrole - HasAccessibilitySubrole() bool + AccessibilityServesAsTitleForUIElements() []objc.Object + HasAccessibilityServesAsTitleForUIElements() bool // optional - SetAccessibilityTabs(value []objc.Object) - HasSetAccessibilityTabs() bool + SetAccessibilityVerticalUnitDescription(value string) + HasSetAccessibilityVerticalUnitDescription() bool // optional - AccessibilityTabs() []objc.Object - HasAccessibilityTabs() bool + AccessibilityVerticalUnitDescription() string + HasAccessibilityVerticalUnitDescription() bool // optional - SetAccessibilityCriticalValue(value objc.Object) - HasSetAccessibilityCriticalValue() bool + SetAccessibilityIndex(value int) + HasSetAccessibilityIndex() bool // optional - AccessibilityCriticalValue() objc.Object - HasAccessibilityCriticalValue() bool + AccessibilityIndex() int + HasAccessibilityIndex() bool // optional - SetAccessibilityVisibleChildren(value []objc.Object) - HasSetAccessibilityVisibleChildren() bool + SetAccessibilityLabel(value string) + HasSetAccessibilityLabel() bool // optional - AccessibilityVisibleChildren() []objc.Object - HasAccessibilityVisibleChildren() bool + AccessibilityLabel() string + HasAccessibilityLabel() bool // optional SetAccessibilityFocusedWindow(value objc.Object) @@ -420,60 +388,60 @@ type PAccessibility interface { HasAccessibilityFocusedWindow() bool // optional - SetAccessibilityChildrenInNavigationOrder(value []AccessibilityElementObject) - HasSetAccessibilityChildrenInNavigationOrder() bool + SetAccessibilityToolbarButton(value objc.Object) + HasSetAccessibilityToolbarButton() bool // optional - AccessibilityChildrenInNavigationOrder() []AccessibilityElementObject - HasAccessibilityChildrenInNavigationOrder() bool + AccessibilityToolbarButton() objc.Object + HasAccessibilityToolbarButton() bool // optional - SetAccessibilityFrame(value foundation.Rect) - HasSetAccessibilityFrame() bool + SetAccessibilityShownMenu(value objc.Object) + HasSetAccessibilityShownMenu() bool // optional - AccessibilityFrame() foundation.Rect - HasAccessibilityFrame() bool + AccessibilityShownMenu() objc.Object + HasAccessibilityShownMenu() bool // optional - SetAccessibilityExpanded(value bool) - HasSetAccessibilityExpanded() bool + SetAccessibilitySplitters(value []objc.Object) + HasSetAccessibilitySplitters() bool // optional - IsAccessibilityExpanded() bool - HasIsAccessibilityExpanded() bool + AccessibilitySplitters() []objc.Object + HasAccessibilitySplitters() bool // optional - SetAccessibilityTitle(value string) - HasSetAccessibilityTitle() bool + SetAccessibilityMainWindow(value objc.Object) + HasSetAccessibilityMainWindow() bool // optional - AccessibilityTitle() string - HasAccessibilityTitle() bool + AccessibilityMainWindow() objc.Object + HasAccessibilityMainWindow() bool // optional - SetAccessibilityDisclosed(value bool) - HasSetAccessibilityDisclosed() bool + SetAccessibilityOrientation(value AccessibilityOrientation) + HasSetAccessibilityOrientation() bool // optional - IsAccessibilityDisclosed() bool - HasIsAccessibilityDisclosed() bool + AccessibilityOrientation() AccessibilityOrientation + HasAccessibilityOrientation() bool // optional - SetAccessibilityVerticalUnitDescription(value string) - HasSetAccessibilityVerticalUnitDescription() bool + SetAccessibilityRole(value AccessibilityRole) + HasSetAccessibilityRole() bool // optional - AccessibilityVerticalUnitDescription() string - HasAccessibilityVerticalUnitDescription() bool + AccessibilityRole() AccessibilityRole + HasAccessibilityRole() bool // optional - SetAccessibilityPreviousContents(value []objc.Object) - HasSetAccessibilityPreviousContents() bool + SetAccessibilityAllowedValues(value []foundation.Number) + HasSetAccessibilityAllowedValues() bool // optional - AccessibilityPreviousContents() []objc.Object - HasAccessibilityPreviousContents() bool + AccessibilityAllowedValues() []foundation.Number + HasAccessibilityAllowedValues() bool // optional SetAccessibilityCloseButton(value objc.Object) @@ -484,516 +452,516 @@ type PAccessibility interface { HasAccessibilityCloseButton() bool // optional - SetAccessibilitySelectedCells(value []objc.Object) - HasSetAccessibilitySelectedCells() bool + SetAccessibilityCancelButton(value objc.Object) + HasSetAccessibilityCancelButton() bool // optional - AccessibilitySelectedCells() []objc.Object - HasAccessibilitySelectedCells() bool + AccessibilityCancelButton() objc.Object + HasAccessibilityCancelButton() bool // optional - SetAccessibilityMarkerTypeDescription(value string) - HasSetAccessibilityMarkerTypeDescription() bool + SetAccessibilityFocused(value bool) + HasSetAccessibilityFocused() bool // optional - AccessibilityMarkerTypeDescription() string - HasAccessibilityMarkerTypeDescription() bool + IsAccessibilityFocused() bool + HasIsAccessibilityFocused() bool // optional - SetAccessibilityDefaultButton(value objc.Object) - HasSetAccessibilityDefaultButton() bool + SetAccessibilityCustomRotors(value []AccessibilityCustomRotor) + HasSetAccessibilityCustomRotors() bool // optional - AccessibilityDefaultButton() objc.Object - HasAccessibilityDefaultButton() bool + AccessibilityCustomRotors() []AccessibilityCustomRotor + HasAccessibilityCustomRotors() bool // optional - SetAccessibilityIndex(value int) - HasSetAccessibilityIndex() bool + SetAccessibilityOrderedByRow(value bool) + HasSetAccessibilityOrderedByRow() bool // optional - AccessibilityIndex() int - HasAccessibilityIndex() bool + IsAccessibilityOrderedByRow() bool + HasIsAccessibilityOrderedByRow() bool // optional - SetAccessibilityApplicationFocusedUIElement(value objc.Object) - HasSetAccessibilityApplicationFocusedUIElement() bool + SetAccessibilitySubrole(value AccessibilitySubrole) + HasSetAccessibilitySubrole() bool // optional - AccessibilityApplicationFocusedUIElement() objc.Object - HasAccessibilityApplicationFocusedUIElement() bool + AccessibilitySubrole() AccessibilitySubrole + HasAccessibilitySubrole() bool // optional - SetAccessibilityWindow(value objc.Object) - HasSetAccessibilityWindow() bool + SetAccessibilityTitleUIElement(value objc.Object) + HasSetAccessibilityTitleUIElement() bool // optional - AccessibilityWindow() objc.Object - HasAccessibilityWindow() bool + AccessibilityTitleUIElement() objc.Object + HasAccessibilityTitleUIElement() bool // optional - SetAccessibilityRowIndexRange(value foundation.Range) - HasSetAccessibilityRowIndexRange() bool + SetAccessibilityChildrenInNavigationOrder(value []objc.Object) + HasSetAccessibilityChildrenInNavigationOrder() bool // optional - AccessibilityRowIndexRange() foundation.Range - HasAccessibilityRowIndexRange() bool + AccessibilityChildrenInNavigationOrder() []objc.Object + HasAccessibilityChildrenInNavigationOrder() bool // optional - SetAccessibilityUnits(value AccessibilityUnits) - HasSetAccessibilityUnits() bool + SetAccessibilityAlternateUIVisible(value bool) + HasSetAccessibilityAlternateUIVisible() bool // optional - AccessibilityUnits() AccessibilityUnits - HasAccessibilityUnits() bool + IsAccessibilityAlternateUIVisible() bool + HasIsAccessibilityAlternateUIVisible() bool // optional - SetAccessibilityFrontmost(value bool) - HasSetAccessibilityFrontmost() bool + SetAccessibilitySelectedTextRange(value foundation.Range) + HasSetAccessibilitySelectedTextRange() bool // optional - IsAccessibilityFrontmost() bool - HasIsAccessibilityFrontmost() bool + AccessibilitySelectedTextRange() foundation.Range + HasAccessibilitySelectedTextRange() bool // optional - SetAccessibilityLabelValue(value float32) - HasSetAccessibilityLabelValue() bool + SetAccessibilitySharedFocusElements(value []objc.Object) + HasSetAccessibilitySharedFocusElements() bool // optional - AccessibilityLabelValue() float32 - HasAccessibilityLabelValue() bool + AccessibilitySharedFocusElements() []objc.Object + HasAccessibilitySharedFocusElements() bool // optional - SetAccessibilityWindows(value []objc.Object) - HasSetAccessibilityWindows() bool + SetAccessibilityMaxValue(value objc.Object) + HasSetAccessibilityMaxValue() bool // optional - AccessibilityWindows() []objc.Object - HasAccessibilityWindows() bool + AccessibilityMaxValue() objc.Object + HasAccessibilityMaxValue() bool // optional - SetAccessibilityEnabled(value bool) - HasSetAccessibilityEnabled() bool + SetAccessibilityDocument(value string) + HasSetAccessibilityDocument() bool // optional - IsAccessibilityEnabled() bool - HasIsAccessibilityEnabled() bool + AccessibilityDocument() string + HasAccessibilityDocument() bool // optional - SetAccessibilityColumnCount(value int) - HasSetAccessibilityColumnCount() bool + SetAccessibilityCustomActions(value []AccessibilityCustomAction) + HasSetAccessibilityCustomActions() bool // optional - AccessibilityColumnCount() int - HasAccessibilityColumnCount() bool + AccessibilityCustomActions() []AccessibilityCustomAction + HasAccessibilityCustomActions() bool // optional - SetAccessibilityChildren(value []objc.Object) - HasSetAccessibilityChildren() bool + SetAccessibilityDecrementButton(value objc.Object) + HasSetAccessibilityDecrementButton() bool // optional - AccessibilityChildren() []objc.Object - HasAccessibilityChildren() bool + AccessibilityDecrementButton() objc.Object + HasAccessibilityDecrementButton() bool // optional - SetAccessibilityHorizontalUnitDescription(value string) - HasSetAccessibilityHorizontalUnitDescription() bool + SetAccessibilitySharedTextUIElements(value []objc.Object) + HasSetAccessibilitySharedTextUIElements() bool // optional - AccessibilityHorizontalUnitDescription() string - HasAccessibilityHorizontalUnitDescription() bool + AccessibilitySharedTextUIElements() []objc.Object + HasAccessibilitySharedTextUIElements() bool // optional - SetAccessibilitySelectedTextRange(value foundation.Range) - HasSetAccessibilitySelectedTextRange() bool + SetAccessibilitySelected(value bool) + HasSetAccessibilitySelected() bool // optional - AccessibilitySelectedTextRange() foundation.Range - HasAccessibilitySelectedTextRange() bool + IsAccessibilitySelected() bool + HasIsAccessibilitySelected() bool // optional - SetAccessibilityRole(value AccessibilityRole) - HasSetAccessibilityRole() bool + SetAccessibilityColumns(value []objc.Object) + HasSetAccessibilityColumns() bool // optional - AccessibilityRole() AccessibilityRole - HasAccessibilityRole() bool + AccessibilityColumns() []objc.Object + HasAccessibilityColumns() bool // optional - SetAccessibilityMarkerGroupUIElement(value objc.Object) - HasSetAccessibilityMarkerGroupUIElement() bool + SetAccessibilityRoleDescription(value string) + HasSetAccessibilityRoleDescription() bool // optional - AccessibilityMarkerGroupUIElement() objc.Object - HasAccessibilityMarkerGroupUIElement() bool + AccessibilityRoleDescription() string + HasAccessibilityRoleDescription() bool // optional - SetAccessibilityRulerMarkerType(value AccessibilityRulerMarkerType) - HasSetAccessibilityRulerMarkerType() bool + SetAccessibilityActivationPoint(value foundation.Point) + HasSetAccessibilityActivationPoint() bool // optional - AccessibilityRulerMarkerType() AccessibilityRulerMarkerType - HasAccessibilityRulerMarkerType() bool + AccessibilityActivationPoint() foundation.Point + HasAccessibilityActivationPoint() bool // optional - SetAccessibilitySortDirection(value AccessibilitySortDirection) - HasSetAccessibilitySortDirection() bool + SetAccessibilityIdentifier(value string) + HasSetAccessibilityIdentifier() bool // optional - AccessibilitySortDirection() AccessibilitySortDirection - HasAccessibilitySortDirection() bool + AccessibilityIdentifier() string + HasAccessibilityIdentifier() bool // optional - SetAccessibilityValue(value objc.Object) - HasSetAccessibilityValue() bool + SetAccessibilityTopLevelUIElement(value objc.Object) + HasSetAccessibilityTopLevelUIElement() bool // optional - AccessibilityValue() objc.Object - HasAccessibilityValue() bool + AccessibilityTopLevelUIElement() objc.Object + HasAccessibilityTopLevelUIElement() bool // optional - SetAccessibilityDocument(value string) - HasSetAccessibilityDocument() bool + SetAccessibilityMenuBar(value objc.Object) + HasSetAccessibilityMenuBar() bool // optional - AccessibilityDocument() string - HasAccessibilityDocument() bool + AccessibilityMenuBar() objc.Object + HasAccessibilityMenuBar() bool // optional - SetAccessibilityVerticalUnits(value AccessibilityUnits) - HasSetAccessibilityVerticalUnits() bool + SetAccessibilityColumnCount(value int) + HasSetAccessibilityColumnCount() bool // optional - AccessibilityVerticalUnits() AccessibilityUnits - HasAccessibilityVerticalUnits() bool + AccessibilityColumnCount() int + HasAccessibilityColumnCount() bool // optional - SetAccessibilityVisibleCharacterRange(value foundation.Range) - HasSetAccessibilityVisibleCharacterRange() bool + SetAccessibilityWindows(value []objc.Object) + HasSetAccessibilityWindows() bool // optional - AccessibilityVisibleCharacterRange() foundation.Range - HasAccessibilityVisibleCharacterRange() bool + AccessibilityWindows() []objc.Object + HasAccessibilityWindows() bool // optional - SetAccessibilityMainWindow(value objc.Object) - HasSetAccessibilityMainWindow() bool + SetAccessibilityURL(value foundation.URL) + HasSetAccessibilityURL() bool // optional - AccessibilityMainWindow() objc.Object - HasAccessibilityMainWindow() bool + AccessibilityURL() foundation.URL + HasAccessibilityURL() bool // optional - SetAccessibilityDisclosedByRow(value objc.Object) - HasSetAccessibilityDisclosedByRow() bool + SetAccessibilityMinimizeButton(value objc.Object) + HasSetAccessibilityMinimizeButton() bool // optional - AccessibilityDisclosedByRow() objc.Object - HasAccessibilityDisclosedByRow() bool + AccessibilityMinimizeButton() objc.Object + HasAccessibilityMinimizeButton() bool // optional - SetAccessibilityClearButton(value objc.Object) - HasSetAccessibilityClearButton() bool + SetAccessibilityDisclosed(value bool) + HasSetAccessibilityDisclosed() bool // optional - AccessibilityClearButton() objc.Object - HasAccessibilityClearButton() bool + IsAccessibilityDisclosed() bool + HasIsAccessibilityDisclosed() bool // optional - SetAccessibilityNumberOfCharacters(value int) - HasSetAccessibilityNumberOfCharacters() bool + SetAccessibilityMinValue(value objc.Object) + HasSetAccessibilityMinValue() bool // optional - AccessibilityNumberOfCharacters() int - HasAccessibilityNumberOfCharacters() bool + AccessibilityMinValue() objc.Object + HasAccessibilityMinValue() bool // optional - SetAccessibilityGrowArea(value objc.Object) - HasSetAccessibilityGrowArea() bool + SetAccessibilityRows(value []objc.Object) + HasSetAccessibilityRows() bool // optional - AccessibilityGrowArea() objc.Object - HasAccessibilityGrowArea() bool + AccessibilityRows() []objc.Object + HasAccessibilityRows() bool // optional - SetAccessibilityZoomButton(value objc.Object) - HasSetAccessibilityZoomButton() bool + SetAccessibilityMarkerValues(value objc.Object) + HasSetAccessibilityMarkerValues() bool // optional - AccessibilityZoomButton() objc.Object - HasAccessibilityZoomButton() bool + AccessibilityMarkerValues() objc.Object + HasAccessibilityMarkerValues() bool // optional - SetAccessibilityParent(value objc.Object) - HasSetAccessibilityParent() bool + SetAccessibilityModal(value bool) + HasSetAccessibilityModal() bool // optional - AccessibilityParent() objc.Object - HasAccessibilityParent() bool + IsAccessibilityModal() bool + HasIsAccessibilityModal() bool // optional - SetAccessibilitySearchButton(value objc.Object) - HasSetAccessibilitySearchButton() bool + SetAccessibilityVisibleChildren(value []objc.Object) + HasSetAccessibilityVisibleChildren() bool // optional - AccessibilitySearchButton() objc.Object - HasAccessibilitySearchButton() bool + AccessibilityVisibleChildren() []objc.Object + HasAccessibilityVisibleChildren() bool // optional - SetAccessibilitySelectedTextRanges(value []foundation.Value) - HasSetAccessibilitySelectedTextRanges() bool + SetAccessibilityVisibleCells(value []objc.Object) + HasSetAccessibilityVisibleCells() bool // optional - AccessibilitySelectedTextRanges() []foundation.Value - HasAccessibilitySelectedTextRanges() bool + AccessibilityVisibleCells() []objc.Object + HasAccessibilityVisibleCells() bool // optional - SetAccessibilityValueDescription(value string) - HasSetAccessibilityValueDescription() bool + SetAccessibilityLabelValue(value float32) + HasSetAccessibilityLabelValue() bool // optional - AccessibilityValueDescription() string - HasAccessibilityValueDescription() bool + AccessibilityLabelValue() float32 + HasAccessibilityLabelValue() bool // optional - SetAccessibilitySplitters(value []objc.Object) - HasSetAccessibilitySplitters() bool + SetAccessibilityExpanded(value bool) + HasSetAccessibilityExpanded() bool // optional - AccessibilitySplitters() []objc.Object - HasAccessibilitySplitters() bool + IsAccessibilityExpanded() bool + HasIsAccessibilityExpanded() bool // optional - SetAccessibilityServesAsTitleForUIElements(value []objc.Object) - HasSetAccessibilityServesAsTitleForUIElements() bool + SetAccessibilityRulerMarkerType(value AccessibilityRulerMarkerType) + HasSetAccessibilityRulerMarkerType() bool // optional - AccessibilityServesAsTitleForUIElements() []objc.Object - HasAccessibilityServesAsTitleForUIElements() bool + AccessibilityRulerMarkerType() AccessibilityRulerMarkerType + HasAccessibilityRulerMarkerType() bool // optional - SetAccessibilitySharedCharacterRange(value foundation.Range) - HasSetAccessibilitySharedCharacterRange() bool + SetAccessibilityProtectedContent(value bool) + HasSetAccessibilityProtectedContent() bool // optional - AccessibilitySharedCharacterRange() foundation.Range - HasAccessibilitySharedCharacterRange() bool + IsAccessibilityProtectedContent() bool + HasIsAccessibilityProtectedContent() bool // optional - SetAccessibilityOverflowButton(value objc.Object) - HasSetAccessibilityOverflowButton() bool + SetAccessibilityValue(value objc.Object) + HasSetAccessibilityValue() bool // optional - AccessibilityOverflowButton() objc.Object - HasAccessibilityOverflowButton() bool + AccessibilityValue() objc.Object + HasAccessibilityValue() bool // optional - SetAccessibilityElement(value bool) - HasSetAccessibilityElement() bool + SetAccessibilityEdited(value bool) + HasSetAccessibilityEdited() bool // optional - IsAccessibilityElement() bool - HasIsAccessibilityElement() bool + IsAccessibilityEdited() bool + HasIsAccessibilityEdited() bool // optional - SetAccessibilityMinimized(value bool) - HasSetAccessibilityMinimized() bool + SetAccessibilityHelp(value string) + HasSetAccessibilityHelp() bool // optional - IsAccessibilityMinimized() bool - HasIsAccessibilityMinimized() bool + AccessibilityHelp() string + HasAccessibilityHelp() bool // optional - SetAccessibilityOrderedByRow(value bool) - HasSetAccessibilityOrderedByRow() bool + SetAccessibilityRowCount(value int) + HasSetAccessibilityRowCount() bool // optional - IsAccessibilityOrderedByRow() bool - HasIsAccessibilityOrderedByRow() bool + AccessibilityRowCount() int + HasAccessibilityRowCount() bool // optional - SetAccessibilityRows(value []objc.Object) - HasSetAccessibilityRows() bool + SetAccessibilityColumnIndexRange(value foundation.Range) + HasSetAccessibilityColumnIndexRange() bool // optional - AccessibilityRows() []objc.Object - HasAccessibilityRows() bool + AccessibilityColumnIndexRange() foundation.Range + HasAccessibilityColumnIndexRange() bool // optional - SetAccessibilityTopLevelUIElement(value objc.Object) - HasSetAccessibilityTopLevelUIElement() bool + SetAccessibilitySortDirection(value AccessibilitySortDirection) + HasSetAccessibilitySortDirection() bool // optional - AccessibilityTopLevelUIElement() objc.Object - HasAccessibilityTopLevelUIElement() bool + AccessibilitySortDirection() AccessibilitySortDirection + HasAccessibilitySortDirection() bool // optional - SetAccessibilityColumnHeaderUIElements(value []objc.Object) - HasSetAccessibilityColumnHeaderUIElements() bool + SetAccessibilityValueDescription(value string) + HasSetAccessibilityValueDescription() bool // optional - AccessibilityColumnHeaderUIElements() []objc.Object - HasAccessibilityColumnHeaderUIElements() bool + AccessibilityValueDescription() string + HasAccessibilityValueDescription() bool // optional - SetAccessibilityRowHeaderUIElements(value []objc.Object) - HasSetAccessibilityRowHeaderUIElements() bool + SetAccessibilityLinkedUIElements(value []objc.Object) + HasSetAccessibilityLinkedUIElements() bool // optional - AccessibilityRowHeaderUIElements() []objc.Object - HasAccessibilityRowHeaderUIElements() bool + AccessibilityLinkedUIElements() []objc.Object + HasAccessibilityLinkedUIElements() bool // optional - SetAccessibilitySelectedRows(value []objc.Object) - HasSetAccessibilitySelectedRows() bool + SetAccessibilityExtrasMenuBar(value objc.Object) + HasSetAccessibilityExtrasMenuBar() bool // optional - AccessibilitySelectedRows() []objc.Object - HasAccessibilitySelectedRows() bool + AccessibilityExtrasMenuBar() objc.Object + HasAccessibilityExtrasMenuBar() bool // optional - SetAccessibilityVisibleRows(value []objc.Object) - HasSetAccessibilityVisibleRows() bool + SetAccessibilityWindow(value objc.Object) + HasSetAccessibilityWindow() bool // optional - AccessibilityVisibleRows() []objc.Object - HasAccessibilityVisibleRows() bool + AccessibilityWindow() objc.Object + HasAccessibilityWindow() bool // optional - SetAccessibilitySelectedText(value string) - HasSetAccessibilitySelectedText() bool + SetAccessibilityDisclosedByRow(value objc.Object) + HasSetAccessibilityDisclosedByRow() bool // optional - AccessibilitySelectedText() string - HasAccessibilitySelectedText() bool + AccessibilityDisclosedByRow() objc.Object + HasAccessibilityDisclosedByRow() bool // optional - SetAccessibilityOrientation(value AccessibilityOrientation) - HasSetAccessibilityOrientation() bool + SetAccessibilityHorizontalUnitDescription(value string) + HasSetAccessibilityHorizontalUnitDescription() bool // optional - AccessibilityOrientation() AccessibilityOrientation - HasAccessibilityOrientation() bool + AccessibilityHorizontalUnitDescription() string + HasAccessibilityHorizontalUnitDescription() bool // optional - SetAccessibilitySharedTextUIElements(value []objc.Object) - HasSetAccessibilitySharedTextUIElements() bool + SetAccessibilityZoomButton(value objc.Object) + HasSetAccessibilityZoomButton() bool // optional - AccessibilitySharedTextUIElements() []objc.Object - HasAccessibilitySharedTextUIElements() bool + AccessibilityZoomButton() objc.Object + HasAccessibilityZoomButton() bool // optional - SetAccessibilityFilename(value string) - HasSetAccessibilityFilename() bool + SetAccessibilityColumnTitles(value []objc.Object) + HasSetAccessibilityColumnTitles() bool // optional - AccessibilityFilename() string - HasAccessibilityFilename() bool + AccessibilityColumnTitles() []objc.Object + HasAccessibilityColumnTitles() bool // optional - SetAccessibilityNextContents(value []objc.Object) - HasSetAccessibilityNextContents() bool + SetAccessibilityVerticalScrollBar(value objc.Object) + HasSetAccessibilityVerticalScrollBar() bool // optional - AccessibilityNextContents() []objc.Object - HasAccessibilityNextContents() bool + AccessibilityVerticalScrollBar() objc.Object + HasAccessibilityVerticalScrollBar() bool // optional - SetAccessibilitySharedFocusElements(value []objc.Object) - HasSetAccessibilitySharedFocusElements() bool + SetAccessibilityIncrementButton(value objc.Object) + HasSetAccessibilityIncrementButton() bool // optional - AccessibilitySharedFocusElements() []objc.Object - HasAccessibilitySharedFocusElements() bool + AccessibilityIncrementButton() objc.Object + HasAccessibilityIncrementButton() bool // optional - SetAccessibilityColumns(value []objc.Object) - HasSetAccessibilityColumns() bool + SetAccessibilityGrowArea(value objc.Object) + HasSetAccessibilityGrowArea() bool // optional - AccessibilityColumns() []objc.Object - HasAccessibilityColumns() bool + AccessibilityGrowArea() objc.Object + HasAccessibilityGrowArea() bool // optional - SetAccessibilityMinimizeButton(value objc.Object) - HasSetAccessibilityMinimizeButton() bool + SetAccessibilityNextContents(value []objc.Object) + HasSetAccessibilityNextContents() bool // optional - AccessibilityMinimizeButton() objc.Object - HasAccessibilityMinimizeButton() bool + AccessibilityNextContents() []objc.Object + HasAccessibilityNextContents() bool // optional - SetAccessibilityColumnTitles(value []objc.Object) - HasSetAccessibilityColumnTitles() bool + SetAccessibilityHorizontalScrollBar(value objc.Object) + HasSetAccessibilityHorizontalScrollBar() bool // optional - AccessibilityColumnTitles() []objc.Object - HasAccessibilityColumnTitles() bool + AccessibilityHorizontalScrollBar() objc.Object + HasAccessibilityHorizontalScrollBar() bool // optional - SetAccessibilityHelp(value string) - HasSetAccessibilityHelp() bool + SetAccessibilityUnitDescription(value string) + HasSetAccessibilityUnitDescription() bool // optional - AccessibilityHelp() string - HasAccessibilityHelp() bool + AccessibilityUnitDescription() string + HasAccessibilityUnitDescription() bool // optional - SetAccessibilityLabelUIElements(value []objc.Object) - HasSetAccessibilityLabelUIElements() bool + SetAccessibilitySelectedColumns(value []objc.Object) + HasSetAccessibilitySelectedColumns() bool // optional - AccessibilityLabelUIElements() []objc.Object - HasAccessibilityLabelUIElements() bool + AccessibilitySelectedColumns() []objc.Object + HasAccessibilitySelectedColumns() bool // optional - SetAccessibilityProtectedContent(value bool) - HasSetAccessibilityProtectedContent() bool + SetAccessibilityPreviousContents(value []objc.Object) + HasSetAccessibilityPreviousContents() bool // optional - IsAccessibilityProtectedContent() bool - HasIsAccessibilityProtectedContent() bool + AccessibilityPreviousContents() []objc.Object + HasAccessibilityPreviousContents() bool // optional - SetAccessibilityModal(value bool) - HasSetAccessibilityModal() bool + SetAccessibilitySelectedText(value string) + HasSetAccessibilitySelectedText() bool // optional - IsAccessibilityModal() bool - HasIsAccessibilityModal() bool + AccessibilitySelectedText() string + HasAccessibilitySelectedText() bool // optional - SetAccessibilityToolbarButton(value objc.Object) - HasSetAccessibilityToolbarButton() bool + SetAccessibilityHorizontalUnits(value AccessibilityUnits) + HasSetAccessibilityHorizontalUnits() bool // optional - AccessibilityToolbarButton() objc.Object - HasAccessibilityToolbarButton() bool + AccessibilityHorizontalUnits() AccessibilityUnits + HasAccessibilityHorizontalUnits() bool // optional - SetAccessibilityShownMenu(value objc.Object) - HasSetAccessibilityShownMenu() bool + SetAccessibilityEnabled(value bool) + HasSetAccessibilityEnabled() bool // optional - AccessibilityShownMenu() objc.Object - HasAccessibilityShownMenu() bool + IsAccessibilityEnabled() bool + HasIsAccessibilityEnabled() bool // optional - SetAccessibilitySearchMenu(value objc.Object) - HasSetAccessibilitySearchMenu() bool + SetAccessibilityTabs(value []objc.Object) + HasSetAccessibilityTabs() bool // optional - AccessibilitySearchMenu() objc.Object - HasAccessibilitySearchMenu() bool + AccessibilityTabs() []objc.Object + HasAccessibilityTabs() bool // optional - SetAccessibilityMarkerValues(value objc.Object) - HasSetAccessibilityMarkerValues() bool + SetAccessibilityInsertionPointLineNumber(value int) + HasSetAccessibilityInsertionPointLineNumber() bool // optional - AccessibilityMarkerValues() objc.Object - HasAccessibilityMarkerValues() bool + AccessibilityInsertionPointLineNumber() int + HasAccessibilityInsertionPointLineNumber() bool // optional SetAccessibilityProxy(value objc.Object) @@ -1004,171 +972,155 @@ type PAccessibility interface { HasAccessibilityProxy() bool // optional - SetAccessibilityVisibleColumns(value []objc.Object) - HasSetAccessibilityVisibleColumns() bool + SetAccessibilitySearchMenu(value objc.Object) + HasSetAccessibilitySearchMenu() bool // optional - AccessibilityVisibleColumns() []objc.Object - HasAccessibilityVisibleColumns() bool + AccessibilitySearchMenu() objc.Object + HasAccessibilitySearchMenu() bool // optional - SetAccessibilityInsertionPointLineNumber(value int) - HasSetAccessibilityInsertionPointLineNumber() bool + SetAccessibilityFilename(value string) + HasSetAccessibilityFilename() bool // optional - AccessibilityInsertionPointLineNumber() int - HasAccessibilityInsertionPointLineNumber() bool + AccessibilityFilename() string + HasAccessibilityFilename() bool // optional - SetAccessibilityFullScreenButton(value objc.Object) - HasSetAccessibilityFullScreenButton() bool + SetAccessibilitySelectedChildren(value []objc.Object) + HasSetAccessibilitySelectedChildren() bool // optional - AccessibilityFullScreenButton() objc.Object - HasAccessibilityFullScreenButton() bool + AccessibilitySelectedChildren() []objc.Object + HasAccessibilitySelectedChildren() bool // optional - SetAccessibilityAllowedValues(value []foundation.Number) - HasSetAccessibilityAllowedValues() bool + SetAccessibilityApplicationFocusedUIElement(value objc.Object) + HasSetAccessibilityApplicationFocusedUIElement() bool // optional - AccessibilityAllowedValues() []foundation.Number - HasAccessibilityAllowedValues() bool + AccessibilityApplicationFocusedUIElement() objc.Object + HasAccessibilityApplicationFocusedUIElement() bool // optional - SetAccessibilitySelectedChildren(value []objc.Object) - HasSetAccessibilitySelectedChildren() bool + SetAccessibilityMinimized(value bool) + HasSetAccessibilityMinimized() bool // optional - AccessibilitySelectedChildren() []objc.Object - HasAccessibilitySelectedChildren() bool + IsAccessibilityMinimized() bool + HasIsAccessibilityMinimized() bool // optional - SetAccessibilityCustomRotors(value []AccessibilityCustomRotor) - HasSetAccessibilityCustomRotors() bool + SetAccessibilityElement(value bool) + HasSetAccessibilityElement() bool // optional - AccessibilityCustomRotors() []AccessibilityCustomRotor - HasAccessibilityCustomRotors() bool + IsAccessibilityElement() bool + HasIsAccessibilityElement() bool // optional - SetAccessibilityUnitDescription(value string) - HasSetAccessibilityUnitDescription() bool + SetAccessibilityDisclosedRows(value objc.Object) + HasSetAccessibilityDisclosedRows() bool // optional - AccessibilityUnitDescription() string - HasAccessibilityUnitDescription() bool + AccessibilityDisclosedRows() objc.Object + HasAccessibilityDisclosedRows() bool // optional - SetAccessibilityContents(value []objc.Object) - HasSetAccessibilityContents() bool + SetAccessibilityFullScreenButton(value objc.Object) + HasSetAccessibilityFullScreenButton() bool // optional - AccessibilityContents() []objc.Object - HasAccessibilityContents() bool + AccessibilityFullScreenButton() objc.Object + HasAccessibilityFullScreenButton() bool // optional - SetAccessibilityHorizontalScrollBar(value objc.Object) - HasSetAccessibilityHorizontalScrollBar() bool + SetAccessibilityFrontmost(value bool) + HasSetAccessibilityFrontmost() bool // optional - AccessibilityHorizontalScrollBar() objc.Object - HasAccessibilityHorizontalScrollBar() bool + IsAccessibilityFrontmost() bool + HasIsAccessibilityFrontmost() bool // optional - SetAccessibilityCancelButton(value objc.Object) - HasSetAccessibilityCancelButton() bool + SetAccessibilityLabelUIElements(value []objc.Object) + HasSetAccessibilityLabelUIElements() bool // optional - AccessibilityCancelButton() objc.Object - HasAccessibilityCancelButton() bool + AccessibilityLabelUIElements() []objc.Object + HasAccessibilityLabelUIElements() bool // optional - SetAccessibilitySelected(value bool) - HasSetAccessibilitySelected() bool + SetAccessibilityDisclosureLevel(value int) + HasSetAccessibilityDisclosureLevel() bool // optional - IsAccessibilitySelected() bool - HasIsAccessibilitySelected() bool -} - -// ensure impl type implements protocol interface -var _ PAccessibility = (*AccessibilityObject)(nil) + AccessibilityDisclosureLevel() int + HasAccessibilityDisclosureLevel() bool -// A concrete type for the [PAccessibility] protocol. -type AccessibilityObject struct { - objc.Object -} + // optional + SetAccessibilityPlaceholderValue(value string) + HasSetAccessibilityPlaceholderValue() bool -func (a_ AccessibilityObject) HasAccessibilityPerformShowDefaultUI() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformShowDefaultUI")) -} + // optional + AccessibilityPlaceholderValue() string + HasAccessibilityPlaceholderValue() bool -// Returns to the accessibility element’s original UI. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1531207-accessibilityperformshowdefaultu?language=objc -func (a_ AccessibilityObject) AccessibilityPerformShowDefaultUI() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformShowDefaultUI")) - return rv -} + // optional + SetAccessibilityUnits(value AccessibilityUnits) + HasSetAccessibilityUnits() bool -func (a_ AccessibilityObject) HasAccessibilityCellForColumnRow() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCellForColumn:row:")) -} + // optional + AccessibilityUnits() AccessibilityUnits + HasAccessibilityUnits() bool -// Returns the cell at the specified column and row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1532709-accessibilitycellforcolumn?language=objc -func (a_ AccessibilityObject) AccessibilityCellForColumnRow(column int, row int) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCellForColumn:row:"), column, row) - return rv -} + // optional + SetAccessibilityHandles(value []objc.Object) + HasSetAccessibilityHandles() bool -func (a_ AccessibilityObject) HasAccessibilityScreenPointForLayoutPoint() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityScreenPointForLayoutPoint:")) -} + // optional + AccessibilityHandles() []objc.Object + HasAccessibilityHandles() bool -// Converts the provided point in the layout area’s coordinates to a point in the screen’s coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1524668-accessibilityscreenpointforlayou?language=objc -func (a_ AccessibilityObject) AccessibilityScreenPointForLayoutPoint(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](a_, objc.Sel("accessibilityScreenPointForLayoutPoint:"), point) - return rv -} + // optional + SetAccessibilitySelectedRows(value []objc.Object) + HasSetAccessibilitySelectedRows() bool -func (a_ AccessibilityObject) HasAccessibilityPerformDecrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) + // optional + AccessibilitySelectedRows() []objc.Object + HasAccessibilitySelectedRows() bool } -// Decrements the accessibility element’s value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526626-accessibilityperformdecrement?language=objc -func (a_ AccessibilityObject) AccessibilityPerformDecrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDecrement")) - return rv +// ensure impl type implements protocol interface +var _ PAccessibility = (*AccessibilityObject)(nil) + +// A concrete type for the [PAccessibility] protocol. +type AccessibilityObject struct { + objc.Object } -func (a_ AccessibilityObject) HasAccessibilityStringForRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityStringForRange:")) +func (a_ AccessibilityObject) HasAccessibilityAttributedStringForRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityAttributedStringForRange:")) } -// Returns the substring for the specified range. [Full Topic] +// Returns the attributed substring for the specified range of characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534940-accessibilitystringforrange?language=objc -func (a_ AccessibilityObject) AccessibilityStringForRange(range_ foundation.Range) string { - rv := objc.Call[string](a_, objc.Sel("accessibilityStringForRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1532250-accessibilityattributedstringfor?language=objc +func (a_ AccessibilityObject) AccessibilityAttributedStringForRange(range_ foundation.Range) foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](a_, objc.Sel("accessibilityAttributedStringForRange:"), range_) return rv } -func (a_ AccessibilityObject) HasAccessibilityPerformConfirm() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformConfirm")) +func (a_ AccessibilityObject) HasAccessibilityFrameForRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityFrameForRange:")) } -// Simulates pressing Return in the accessibility element. [Full Topic] +// Returns the rectangle that encloses the specified range of characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534952-accessibilityperformconfirm?language=objc -func (a_ AccessibilityObject) AccessibilityPerformConfirm() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformConfirm")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526088-accessibilityframeforrange?language=objc +func (a_ AccessibilityObject) AccessibilityFrameForRange(range_ foundation.Range) foundation.Rect { + rv := objc.Call[foundation.Rect](a_, objc.Sel("accessibilityFrameForRange:"), range_) return rv } @@ -1184,51 +1136,51 @@ func (a_ AccessibilityObject) AccessibilityRTFForRange(range_ foundation.Range) return rv } -func (a_ AccessibilityObject) HasAccessibilityLineForIndex() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLineForIndex:")) +func (a_ AccessibilityObject) HasAccessibilityRangeForLine() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRangeForLine:")) } -// Returns the line number for the line that contains the specified character index. [Full Topic] +// Returns the range of characters in the specified line. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1525305-accessibilitylineforindex?language=objc -func (a_ AccessibilityObject) AccessibilityLineForIndex(index int) int { - rv := objc.Call[int](a_, objc.Sel("accessibilityLineForIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1528813-accessibilityrangeforline?language=objc +func (a_ AccessibilityObject) AccessibilityRangeForLine(line int) foundation.Range { + rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeForLine:"), line) return rv } -func (a_ AccessibilityObject) HasAccessibilityPerformDelete() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformDelete")) +func (a_ AccessibilityObject) HasAccessibilityLayoutSizeForScreenSize() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLayoutSizeForScreenSize:")) } -// Deletes the accessibility element’s value. [Full Topic] +// Converts the provided size in screen coordinates to a size in the layout area’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1524609-accessibilityperformdelete?language=objc -func (a_ AccessibilityObject) AccessibilityPerformDelete() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDelete")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535016-accessibilitylayoutsizeforscreen?language=objc +func (a_ AccessibilityObject) AccessibilityLayoutSizeForScreenSize(size foundation.Size) foundation.Size { + rv := objc.Call[foundation.Size](a_, objc.Sel("accessibilityLayoutSizeForScreenSize:"), size) return rv } -func (a_ AccessibilityObject) HasAccessibilityStyleRangeForIndex() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityStyleRangeForIndex:")) +func (a_ AccessibilityObject) HasAccessibilityPerformShowDefaultUI() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformShowDefaultUI")) } -// Returns a range of characters that all have the same style as the specified character. [Full Topic] +// Returns to the accessibility element’s original UI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1530474-accessibilitystylerangeforindex?language=objc -func (a_ AccessibilityObject) AccessibilityStyleRangeForIndex(index int) foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityStyleRangeForIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1531207-accessibilityperformshowdefaultu?language=objc +func (a_ AccessibilityObject) AccessibilityPerformShowDefaultUI() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformShowDefaultUI")) return rv } -func (a_ AccessibilityObject) HasAccessibilityAttributedStringForRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityAttributedStringForRange:")) +func (a_ AccessibilityObject) HasAccessibilityPerformDecrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) } -// Returns the attributed substring for the specified range of characters. [Full Topic] +// Decrements the accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1532250-accessibilityattributedstringfor?language=objc -func (a_ AccessibilityObject) AccessibilityAttributedStringForRange(range_ foundation.Range) foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](a_, objc.Sel("accessibilityAttributedStringForRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526626-accessibilityperformdecrement?language=objc +func (a_ AccessibilityObject) AccessibilityPerformDecrement() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDecrement")) return rv } @@ -1244,39 +1196,63 @@ func (a_ AccessibilityObject) AccessibilityPerformShowAlternateUI() bool { return rv } -func (a_ AccessibilityObject) HasAccessibilityPerformRaise() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformRaise")) +func (a_ AccessibilityObject) HasAccessibilityLineForIndex() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLineForIndex:")) } -// Brings the window to the front. [Full Topic] +// Returns the line number for the line that contains the specified character index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1530545-accessibilityperformraise?language=objc -func (a_ AccessibilityObject) AccessibilityPerformRaise() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformRaise")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1525305-accessibilitylineforindex?language=objc +func (a_ AccessibilityObject) AccessibilityLineForIndex(index int) int { + rv := objc.Call[int](a_, objc.Sel("accessibilityLineForIndex:"), index) return rv } -func (a_ AccessibilityObject) HasAccessibilityRangeForPosition() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRangeForPosition:")) +func (a_ AccessibilityObject) HasAccessibilityPerformPress() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformPress")) } -// Returns the range of characters for the glyph at the specified point. [Full Topic] +// Simulates clicking the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1531615-accessibilityrangeforposition?language=objc -func (a_ AccessibilityObject) AccessibilityRangeForPosition(point foundation.Point) foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeForPosition:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526358-accessibilityperformpress?language=objc +func (a_ AccessibilityObject) AccessibilityPerformPress() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformPress")) return rv } -func (a_ AccessibilityObject) HasIsAccessibilitySelectorAllowed() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilitySelectorAllowed:")) +func (a_ AccessibilityObject) HasAccessibilityScreenPointForLayoutPoint() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityScreenPointForLayoutPoint:")) } -// Returns a Boolean value that indicates whether assistive apps can invoke the specified selector on the accessibility element. [Full Topic] +// Converts the provided point in the layout area’s coordinates to a point in the screen’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1524956-isaccessibilityselectorallowed?language=objc -func (a_ AccessibilityObject) IsAccessibilitySelectorAllowed(selector objc.Selector) bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilitySelectorAllowed:"), selector) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1524668-accessibilityscreenpointforlayou?language=objc +func (a_ AccessibilityObject) AccessibilityScreenPointForLayoutPoint(point foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](a_, objc.Sel("accessibilityScreenPointForLayoutPoint:"), point) + return rv +} + +func (a_ AccessibilityObject) HasAccessibilityPerformDelete() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformDelete")) +} + +// Deletes the accessibility element’s value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1524609-accessibilityperformdelete?language=objc +func (a_ AccessibilityObject) AccessibilityPerformDelete() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDelete")) + return rv +} + +func (a_ AccessibilityObject) HasAccessibilityRangeForPosition() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRangeForPosition:")) +} + +// Returns the range of characters for the glyph at the specified point. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1531615-accessibilityrangeforposition?language=objc +func (a_ AccessibilityObject) AccessibilityRangeForPosition(point foundation.Point) foundation.Range { + rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeForPosition:"), point) return rv } @@ -1292,39 +1268,39 @@ func (a_ AccessibilityObject) AccessibilityPerformShowMenu() bool { return rv } -func (a_ AccessibilityObject) HasAccessibilityPerformPress() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformPress")) +func (a_ AccessibilityObject) HasAccessibilityPerformConfirm() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformConfirm")) } -// Simulates clicking the accessibility element. [Full Topic] +// Simulates pressing Return in the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526358-accessibilityperformpress?language=objc -func (a_ AccessibilityObject) AccessibilityPerformPress() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformPress")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534952-accessibilityperformconfirm?language=objc +func (a_ AccessibilityObject) AccessibilityPerformConfirm() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformConfirm")) return rv } -func (a_ AccessibilityObject) HasAccessibilityScreenSizeForLayoutSize() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityScreenSizeForLayoutSize:")) +func (a_ AccessibilityObject) HasAccessibilityPerformIncrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) } -// Converts the provided size in the layout area’s coordinates to a size in the screen’s coordinate system. [Full Topic] +// Increments the accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526114-accessibilityscreensizeforlayout?language=objc -func (a_ AccessibilityObject) AccessibilityScreenSizeForLayoutSize(size foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](a_, objc.Sel("accessibilityScreenSizeForLayoutSize:"), size) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1525705-accessibilityperformincrement?language=objc +func (a_ AccessibilityObject) AccessibilityPerformIncrement() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformIncrement")) return rv } -func (a_ AccessibilityObject) HasAccessibilityFrameForRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityFrameForRange:")) +func (a_ AccessibilityObject) HasAccessibilityStyleRangeForIndex() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityStyleRangeForIndex:")) } -// Returns the rectangle that encloses the specified range of characters. [Full Topic] +// Returns a range of characters that all have the same style as the specified character. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526088-accessibilityframeforrange?language=objc -func (a_ AccessibilityObject) AccessibilityFrameForRange(range_ foundation.Range) foundation.Rect { - rv := objc.Call[foundation.Rect](a_, objc.Sel("accessibilityFrameForRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1530474-accessibilitystylerangeforindex?language=objc +func (a_ AccessibilityObject) AccessibilityStyleRangeForIndex(index int) foundation.Range { + rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityStyleRangeForIndex:"), index) return rv } @@ -1340,15 +1316,15 @@ func (a_ AccessibilityObject) AccessibilityRangeForIndex(index int) foundation.R return rv } -func (a_ AccessibilityObject) HasAccessibilityRangeForLine() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRangeForLine:")) +func (a_ AccessibilityObject) HasAccessibilityPerformRaise() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformRaise")) } -// Returns the range of characters in the specified line. [Full Topic] +// Brings the window to the front. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1528813-accessibilityrangeforline?language=objc -func (a_ AccessibilityObject) AccessibilityRangeForLine(line int) foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeForLine:"), line) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1530545-accessibilityperformraise?language=objc +func (a_ AccessibilityObject) AccessibilityPerformRaise() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformRaise")) return rv } @@ -1364,212 +1340,213 @@ func (a_ AccessibilityObject) AccessibilityPerformCancel() bool { return rv } -func (a_ AccessibilityObject) HasAccessibilityPerformPick() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformPick")) +func (a_ AccessibilityObject) HasAccessibilityStringForRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityStringForRange:")) } -// Selects the accessibility element. [Full Topic] +// Returns the substring for the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535130-accessibilityperformpick?language=objc -func (a_ AccessibilityObject) AccessibilityPerformPick() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformPick")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534940-accessibilitystringforrange?language=objc +func (a_ AccessibilityObject) AccessibilityStringForRange(range_ foundation.Range) string { + rv := objc.Call[string](a_, objc.Sel("accessibilityStringForRange:"), range_) return rv } -func (a_ AccessibilityObject) HasAccessibilityLayoutSizeForScreenSize() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLayoutSizeForScreenSize:")) +func (a_ AccessibilityObject) HasIsAccessibilitySelectorAllowed() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilitySelectorAllowed:")) } -// Converts the provided size in screen coordinates to a size in the layout area’s coordinate system. [Full Topic] +// Returns a Boolean value that indicates whether assistive apps can invoke the specified selector on the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535016-accessibilitylayoutsizeforscreen?language=objc -func (a_ AccessibilityObject) AccessibilityLayoutSizeForScreenSize(size foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](a_, objc.Sel("accessibilityLayoutSizeForScreenSize:"), size) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1524956-isaccessibilityselectorallowed?language=objc +func (a_ AccessibilityObject) IsAccessibilitySelectorAllowed(selector objc.Selector) bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilitySelectorAllowed:"), selector) return rv } -func (a_ AccessibilityObject) HasAccessibilityLayoutPointForScreenPoint() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLayoutPointForScreenPoint:")) +func (a_ AccessibilityObject) HasAccessibilityCellForColumnRow() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCellForColumn:row:")) } -// Converts the provided point in screen coordinates to a point in the layout area’s coordinate system. [Full Topic] +// Returns the cell at the specified column and row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526401-accessibilitylayoutpointforscree?language=objc -func (a_ AccessibilityObject) AccessibilityLayoutPointForScreenPoint(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](a_, objc.Sel("accessibilityLayoutPointForScreenPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1532709-accessibilitycellforcolumn?language=objc +func (a_ AccessibilityObject) AccessibilityCellForColumnRow(column int, row int) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCellForColumn:row:"), column, row) return rv } -func (a_ AccessibilityObject) HasAccessibilityPerformIncrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) +func (a_ AccessibilityObject) HasAccessibilityPerformPick() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformPick")) } -// Increments the accessibility element’s value. [Full Topic] +// Selects the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1525705-accessibilityperformincrement?language=objc -func (a_ AccessibilityObject) AccessibilityPerformIncrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformIncrement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535130-accessibilityperformpick?language=objc +func (a_ AccessibilityObject) AccessibilityPerformPick() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformPick")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityHandles() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHandles:")) +func (a_ AccessibilityObject) HasAccessibilityScreenSizeForLayoutSize() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityScreenSizeForLayoutSize:")) } -// The drag handle accessibility elements for the layout item element. [Full Topic] +// Converts the provided size in the layout area’s coordinates to a size in the screen’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535085-accessibilityhandles?language=objc -func (a_ AccessibilityObject) SetAccessibilityHandles(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHandles:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526114-accessibilityscreensizeforlayout?language=objc +func (a_ AccessibilityObject) AccessibilityScreenSizeForLayoutSize(size foundation.Size) foundation.Size { + rv := objc.Call[foundation.Size](a_, objc.Sel("accessibilityScreenSizeForLayoutSize:"), size) + return rv } -func (a_ AccessibilityObject) HasAccessibilityHandles() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHandles")) +func (a_ AccessibilityObject) HasAccessibilityLayoutPointForScreenPoint() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLayoutPointForScreenPoint:")) } -// The drag handle accessibility elements for the layout item element. [Full Topic] +// Converts the provided point in screen coordinates to a point in the layout area’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535085-accessibilityhandles?language=objc -func (a_ AccessibilityObject) AccessibilityHandles() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityHandles")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526401-accessibilitylayoutpointforscree?language=objc +func (a_ AccessibilityObject) AccessibilityLayoutPointForScreenPoint(point foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](a_, objc.Sel("accessibilityLayoutPointForScreenPoint:"), point) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityActivationPoint() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityActivationPoint:")) +func (a_ AccessibilityObject) HasSetAccessibilityClearButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityClearButton:")) } -// The activation point for the user interface element. [Full Topic] +// The clear button for the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535149-accessibilityactivationpoint?language=objc -func (a_ AccessibilityObject) SetAccessibilityActivationPoint(value foundation.Point) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityActivationPoint:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534949-accessibilityclearbutton?language=objc +func (a_ AccessibilityObject) SetAccessibilityClearButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityClearButton:"), value) } -func (a_ AccessibilityObject) HasAccessibilityActivationPoint() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityActivationPoint")) +func (a_ AccessibilityObject) HasAccessibilityClearButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityClearButton")) } -// The activation point for the user interface element. [Full Topic] +// The clear button for the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535149-accessibilityactivationpoint?language=objc -func (a_ AccessibilityObject) AccessibilityActivationPoint() foundation.Point { - rv := objc.Call[foundation.Point](a_, objc.Sel("accessibilityActivationPoint")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534949-accessibilityclearbutton?language=objc +func (a_ AccessibilityObject) AccessibilityClearButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityClearButton")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityMarkerUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityOverflowButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityOverflowButton:")) } -// An array of marker accessibility elements for the ruler. [Full Topic] +// The overflow button for the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535037-accessibilitymarkeruielements?language=objc -func (a_ AccessibilityObject) SetAccessibilityMarkerUIElements(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerUIElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534943-accessibilityoverflowbutton?language=objc +func (a_ AccessibilityObject) SetAccessibilityOverflowButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityOverflowButton:"), value) } -func (a_ AccessibilityObject) HasAccessibilityMarkerUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMarkerUIElements")) +func (a_ AccessibilityObject) HasAccessibilityOverflowButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityOverflowButton")) } -// An array of marker accessibility elements for the ruler. [Full Topic] +// The overflow button for the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535037-accessibilitymarkeruielements?language=objc -func (a_ AccessibilityObject) AccessibilityMarkerUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityMarkerUIElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534943-accessibilityoverflowbutton?language=objc +func (a_ AccessibilityObject) AccessibilityOverflowButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityOverflowButton")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityRowCount() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRowCount:")) +func (a_ AccessibilityObject) HasSetAccessibilityChildren() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityChildren:")) } -// The number of rows in the accessibility element’s grid. [Full Topic] +// The child accessibility elements in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535013-accessibilityrowcount?language=objc -func (a_ AccessibilityObject) SetAccessibilityRowCount(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRowCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535018-accessibilitychildren?language=objc +func (a_ AccessibilityObject) SetAccessibilityChildren(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityChildren:"), value) } -func (a_ AccessibilityObject) HasAccessibilityRowCount() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRowCount")) +func (a_ AccessibilityObject) HasAccessibilityChildren() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityChildren")) } -// The number of rows in the accessibility element’s grid. [Full Topic] +// The child accessibility elements in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535013-accessibilityrowcount?language=objc -func (a_ AccessibilityObject) AccessibilityRowCount() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityRowCount")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535018-accessibilitychildren?language=objc +func (a_ AccessibilityObject) AccessibilityChildren() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityChildren")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityAlternateUIVisible() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityAlternateUIVisible:")) +func (a_ AccessibilityObject) HasSetAccessibilityColumnHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnHeaderUIElements:")) } -// A Boolean value that determines whether the accessibility element’s alternative UI is currently visible. [Full Topic] +// The column header accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535035-accessibilityalternateuivisible?language=objc -func (a_ AccessibilityObject) SetAccessibilityAlternateUIVisible(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityAlternateUIVisible:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534988-accessibilitycolumnheaderuieleme?language=objc +func (a_ AccessibilityObject) SetAccessibilityColumnHeaderUIElements(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnHeaderUIElements:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityAlternateUIVisible() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityAlternateUIVisible")) +func (a_ AccessibilityObject) HasAccessibilityColumnHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumnHeaderUIElements")) } -// A Boolean value that determines whether the accessibility element’s alternative UI is currently visible. [Full Topic] +// The column header accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535035-accessibilityalternateuivisible?language=objc -func (a_ AccessibilityObject) IsAccessibilityAlternateUIVisible() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityAlternateUIVisible")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534988-accessibilitycolumnheaderuieleme?language=objc +func (a_ AccessibilityObject) AccessibilityColumnHeaderUIElements() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumnHeaderUIElements")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityRequired() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRequired:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedTextRanges() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedTextRanges:")) } -// A Boolean value that determines whether the accessibility element must have content for successful submission of a form. [Full Topic] +// An array of ranges for the currently selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1646618-accessibilityrequired?language=objc -func (a_ AccessibilityObject) SetAccessibilityRequired(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRequired:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535133-accessibilityselectedtextranges?language=objc +func (a_ AccessibilityObject) SetAccessibilitySelectedTextRanges(value []foundation.Value) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedTextRanges:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityRequired() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityRequired")) +func (a_ AccessibilityObject) HasAccessibilitySelectedTextRanges() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedTextRanges")) } -// A Boolean value that determines whether the accessibility element must have content for successful submission of a form. [Full Topic] +// An array of ranges for the currently selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1646618-accessibilityrequired?language=objc -func (a_ AccessibilityObject) IsAccessibilityRequired() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityRequired")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535133-accessibilityselectedtextranges?language=objc +func (a_ AccessibilityObject) AccessibilitySelectedTextRanges() []foundation.Value { + rv := objc.Call[[]foundation.Value](a_, objc.Sel("accessibilitySelectedTextRanges")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityHorizontalUnits() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalUnits:")) +func (a_ AccessibilityObject) HasSetAccessibilityCriticalValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityCriticalValue:")) } -// The units that the layout area uses for horizontal values. [Full Topic] +// The critical value for the level indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535154-accessibilityhorizontalunits?language=objc -func (a_ AccessibilityObject) SetAccessibilityHorizontalUnits(value AccessibilityUnits) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHorizontalUnits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534973-accessibilitycriticalvalue?language=objc +func (a_ AccessibilityObject) SetAccessibilityCriticalValue(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCriticalValue:"), value) } -func (a_ AccessibilityObject) HasAccessibilityHorizontalUnits() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalUnits")) +func (a_ AccessibilityObject) HasAccessibilityCriticalValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCriticalValue")) } -// The units that the layout area uses for horizontal values. [Full Topic] +// The critical value for the level indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535154-accessibilityhorizontalunits?language=objc -func (a_ AccessibilityObject) AccessibilityHorizontalUnits() AccessibilityUnits { - rv := objc.Call[AccessibilityUnits](a_, objc.Sel("accessibilityHorizontalUnits")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534973-accessibilitycriticalvalue?language=objc +func (a_ AccessibilityObject) AccessibilityCriticalValue() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCriticalValue")) return rv } @@ -1596,486 +1573,417 @@ func (a_ AccessibilityObject) AccessibilityHeader() objc.Object { return rv } -func (a_ AccessibilityObject) HasSetAccessibilityDisclosedRows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosedRows:")) +func (a_ AccessibilityObject) HasSetAccessibilitySharedCharacterRange() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedCharacterRange:")) } -// The rows that the current row discloses. [Full Topic] +// The range of characters that the accessibility element displays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535008-accessibilitydisclosedrows?language=objc -func (a_ AccessibilityObject) SetAccessibilityDisclosedRows(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosedRows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535069-accessibilitysharedcharacterrang?language=objc +func (a_ AccessibilityObject) SetAccessibilitySharedCharacterRange(value foundation.Range) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySharedCharacterRange:"), value) } -func (a_ AccessibilityObject) HasAccessibilityDisclosedRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDisclosedRows")) +func (a_ AccessibilityObject) HasAccessibilitySharedCharacterRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySharedCharacterRange")) } -// The rows that the current row discloses. [Full Topic] +// The range of characters that the accessibility element displays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535008-accessibilitydisclosedrows?language=objc -func (a_ AccessibilityObject) AccessibilityDisclosedRows() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDisclosedRows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535069-accessibilitysharedcharacterrang?language=objc +func (a_ AccessibilityObject) AccessibilitySharedCharacterRange() foundation.Range { + rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilitySharedCharacterRange")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityMenuBar() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMenuBar:")) +func (a_ AccessibilityObject) HasSetAccessibilityMarkerGroupUIElement() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerGroupUIElement:")) } -// The app’s menu bar. [Full Topic] +// The user interface element that functions as a marker group for the ruler accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535055-accessibilitymenubar?language=objc -func (a_ AccessibilityObject) SetAccessibilityMenuBar(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMenuBar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535081-accessibilitymarkergroupuielemen?language=objc +func (a_ AccessibilityObject) SetAccessibilityMarkerGroupUIElement(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerGroupUIElement:"), value) } -func (a_ AccessibilityObject) HasAccessibilityMenuBar() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMenuBar")) +func (a_ AccessibilityObject) HasAccessibilityMarkerGroupUIElement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMarkerGroupUIElement")) } -// The app’s menu bar. [Full Topic] +// The user interface element that functions as a marker group for the ruler accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535055-accessibilitymenubar?language=objc -func (a_ AccessibilityObject) AccessibilityMenuBar() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMenuBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535081-accessibilitymarkergroupuielemen?language=objc +func (a_ AccessibilityObject) AccessibilityMarkerGroupUIElement() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMarkerGroupUIElement")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityDisclosureLevel() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosureLevel:")) +func (a_ AccessibilityObject) HasSetAccessibilityRequired() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRequired:")) } -// The indention level for the row. [Full Topic] +// A Boolean value that determines whether the accessibility element must have content for successful submission of a form. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535111-accessibilitydisclosurelevel?language=objc -func (a_ AccessibilityObject) SetAccessibilityDisclosureLevel(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosureLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1646618-accessibilityrequired?language=objc +func (a_ AccessibilityObject) SetAccessibilityRequired(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRequired:"), value) } -func (a_ AccessibilityObject) HasAccessibilityDisclosureLevel() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDisclosureLevel")) +func (a_ AccessibilityObject) HasIsAccessibilityRequired() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityRequired")) } -// The indention level for the row. [Full Topic] +// A Boolean value that determines whether the accessibility element must have content for successful submission of a form. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535111-accessibilitydisclosurelevel?language=objc -func (a_ AccessibilityObject) AccessibilityDisclosureLevel() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityDisclosureLevel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1646618-accessibilityrequired?language=objc +func (a_ AccessibilityObject) IsAccessibilityRequired() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityRequired")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityExtrasMenuBar() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityExtrasMenuBar:")) +func (a_ AccessibilityObject) HasSetAccessibilitySearchButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySearchButton:")) } -// The icon for the app’s menu bar extra. [Full Topic] +// The search button for the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534996-accessibilityextrasmenubar?language=objc -func (a_ AccessibilityObject) SetAccessibilityExtrasMenuBar(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityExtrasMenuBar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535105-accessibilitysearchbutton?language=objc +func (a_ AccessibilityObject) SetAccessibilitySearchButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySearchButton:"), value) } -func (a_ AccessibilityObject) HasAccessibilityExtrasMenuBar() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityExtrasMenuBar")) +func (a_ AccessibilityObject) HasAccessibilitySearchButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySearchButton")) } -// The icon for the app’s menu bar extra. [Full Topic] +// The search button for the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534996-accessibilityextrasmenubar?language=objc -func (a_ AccessibilityObject) AccessibilityExtrasMenuBar() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityExtrasMenuBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535105-accessibilitysearchbutton?language=objc +func (a_ AccessibilityObject) AccessibilitySearchButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilitySearchButton")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityIdentifier() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityIdentifier:")) +func (a_ AccessibilityObject) HasSetAccessibilityParent() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityParent:")) } -// The accessibility element’s identity. [Full Topic] +// The accessibility element’s parent in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535023-accessibilityidentifier?language=objc -func (a_ AccessibilityObject) SetAccessibilityIdentifier(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535040-accessibilityparent?language=objc +func (a_ AccessibilityObject) SetAccessibilityParent(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityParent:"), value) } -func (a_ AccessibilityObject) HasAccessibilityIdentifier() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityIdentifier")) +func (a_ AccessibilityObject) HasAccessibilityParent() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityParent")) } -// The accessibility element’s identity. [Full Topic] +// The accessibility element’s parent in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535023-accessibilityidentifier?language=objc -func (a_ AccessibilityObject) AccessibilityIdentifier() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535040-accessibilityparent?language=objc +func (a_ AccessibilityObject) AccessibilityParent() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityParent")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityMaxValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMaxValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityNumberOfCharacters() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityNumberOfCharacters:")) } -// The maximum value for the accessibility element. [Full Topic] +// The number of characters in the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535078-accessibilitymaxvalue?language=objc -func (a_ AccessibilityObject) SetAccessibilityMaxValue(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMaxValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534982-accessibilitynumberofcharacters?language=objc +func (a_ AccessibilityObject) SetAccessibilityNumberOfCharacters(value int) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityNumberOfCharacters:"), value) } -func (a_ AccessibilityObject) HasAccessibilityMaxValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMaxValue")) +func (a_ AccessibilityObject) HasAccessibilityNumberOfCharacters() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityNumberOfCharacters")) } -// The maximum value for the accessibility element. [Full Topic] +// The number of characters in the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535078-accessibilitymaxvalue?language=objc -func (a_ AccessibilityObject) AccessibilityMaxValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMaxValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534982-accessibilitynumberofcharacters?language=objc +func (a_ AccessibilityObject) AccessibilityNumberOfCharacters() int { + rv := objc.Call[int](a_, objc.Sel("accessibilityNumberOfCharacters")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityRoleDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRoleDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityDefaultButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDefaultButton:")) } -// A localized, human-intelligible description of the accessibility element’s role, such as radio button. [Full Topic] +// The child accessibility element that represents the window’s default button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535144-accessibilityroledescription?language=objc -func (a_ AccessibilityObject) SetAccessibilityRoleDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRoleDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534957-accessibilitydefaultbutton?language=objc +func (a_ AccessibilityObject) SetAccessibilityDefaultButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDefaultButton:"), value) } -func (a_ AccessibilityObject) HasAccessibilityRoleDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRoleDescription")) +func (a_ AccessibilityObject) HasAccessibilityDefaultButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDefaultButton")) } -// A localized, human-intelligible description of the accessibility element’s role, such as radio button. [Full Topic] +// The child accessibility element that represents the window’s default button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535144-accessibilityroledescription?language=objc -func (a_ AccessibilityObject) AccessibilityRoleDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityRoleDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534957-accessibilitydefaultbutton?language=objc +func (a_ AccessibilityObject) AccessibilityDefaultButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDefaultButton")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityIncrementButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityIncrementButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityTitle() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityTitle:")) } -// The increment button for the stepper accessibility element. [Full Topic] +// The title of the accessibility element—for example, a button’s visible text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535007-accessibilityincrementbutton?language=objc -func (a_ AccessibilityObject) SetAccessibilityIncrementButton(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityIncrementButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535033-accessibilitytitle?language=objc +func (a_ AccessibilityObject) SetAccessibilityTitle(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTitle:"), value) } -func (a_ AccessibilityObject) HasAccessibilityIncrementButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityIncrementButton")) +func (a_ AccessibilityObject) HasAccessibilityTitle() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityTitle")) } -// The increment button for the stepper accessibility element. [Full Topic] +// The title of the accessibility element—for example, a button’s visible text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535007-accessibilityincrementbutton?language=objc -func (a_ AccessibilityObject) AccessibilityIncrementButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityIncrementButton")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535033-accessibilitytitle?language=objc +func (a_ AccessibilityObject) AccessibilityTitle() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityTitle")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityURL() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityURL:")) +func (a_ AccessibilityObject) HasSetAccessibilityRowHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRowHeaderUIElements:")) } -// The URL for the accessibility element. [Full Topic] +// The row header accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535157-accessibilityurl?language=objc -func (a_ AccessibilityObject) SetAccessibilityURL(value foundation.URL) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535014-accessibilityrowheaderuielements?language=objc +func (a_ AccessibilityObject) SetAccessibilityRowHeaderUIElements(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRowHeaderUIElements:"), value) } -func (a_ AccessibilityObject) HasAccessibilityURL() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityURL")) +func (a_ AccessibilityObject) HasAccessibilityRowHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRowHeaderUIElements")) } -// The URL for the accessibility element. [Full Topic] +// The row header accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535157-accessibilityurl?language=objc -func (a_ AccessibilityObject) AccessibilityURL() foundation.URL { - rv := objc.Call[foundation.URL](a_, objc.Sel("accessibilityURL")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535014-accessibilityrowheaderuielements?language=objc +func (a_ AccessibilityObject) AccessibilityRowHeaderUIElements() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityRowHeaderUIElements")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityTitleUIElement() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityTitleUIElement:")) +func (a_ AccessibilityObject) HasSetAccessibilityVisibleCharacterRange() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleCharacterRange:")) } -// A static text element that represents the accessibility element’s title. [Full Topic] +// The range of visible characters in the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535155-accessibilitytitleuielement?language=objc -func (a_ AccessibilityObject) SetAccessibilityTitleUIElement(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTitleUIElement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535058-accessibilityvisiblecharacterran?language=objc +func (a_ AccessibilityObject) SetAccessibilityVisibleCharacterRange(value foundation.Range) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleCharacterRange:"), value) } -func (a_ AccessibilityObject) HasAccessibilityTitleUIElement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityTitleUIElement")) +func (a_ AccessibilityObject) HasAccessibilityVisibleCharacterRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCharacterRange")) } -// A static text element that represents the accessibility element’s title. [Full Topic] +// The range of visible characters in the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535155-accessibilitytitleuielement?language=objc -func (a_ AccessibilityObject) AccessibilityTitleUIElement() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityTitleUIElement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535058-accessibilityvisiblecharacterran?language=objc +func (a_ AccessibilityObject) AccessibilityVisibleCharacterRange() foundation.Range { + rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityVisibleCharacterRange")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityVisibleCells() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleCells:")) +func (a_ AccessibilityObject) HasSetAccessibilityFrame() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityFrame:")) } -// The visible cells for the table. [Full Topic] +// The accessibility element’s frame in screen coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535042-accessibilityvisiblecells?language=objc -func (a_ AccessibilityObject) SetAccessibilityVisibleCells(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleCells:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534939-accessibilityframe?language=objc +func (a_ AccessibilityObject) SetAccessibilityFrame(value foundation.Rect) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFrame:"), value) } -func (a_ AccessibilityObject) HasAccessibilityVisibleCells() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCells")) +func (a_ AccessibilityObject) HasAccessibilityFrame() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityFrame")) } -// The visible cells for the table. [Full Topic] +// The accessibility element’s frame in screen coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535042-accessibilityvisiblecells?language=objc -func (a_ AccessibilityObject) AccessibilityVisibleCells() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleCells")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534939-accessibilityframe?language=objc +func (a_ AccessibilityObject) AccessibilityFrame() foundation.Rect { + rv := objc.Call[foundation.Rect](a_, objc.Sel("accessibilityFrame")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityPlaceholderValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityPlaceholderValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityHidden() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHidden:")) } -// The placeholder value for the accessibility element. [Full Topic] +// A Boolean value that determines whether the app is in a hidden state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535063-accessibilityplaceholdervalue?language=objc -func (a_ AccessibilityObject) SetAccessibilityPlaceholderValue(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityPlaceholderValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534961-accessibilityhidden?language=objc +func (a_ AccessibilityObject) SetAccessibilityHidden(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHidden:"), value) } -func (a_ AccessibilityObject) HasAccessibilityPlaceholderValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPlaceholderValue")) +func (a_ AccessibilityObject) HasIsAccessibilityHidden() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityHidden")) } -// The placeholder value for the accessibility element. [Full Topic] +// A Boolean value that determines whether the app is in a hidden state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535063-accessibilityplaceholdervalue?language=objc -func (a_ AccessibilityObject) AccessibilityPlaceholderValue() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityPlaceholderValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534961-accessibilityhidden?language=objc +func (a_ AccessibilityObject) IsAccessibilityHidden() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityHidden")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityWarningValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityWarningValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityMarkerTypeDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerTypeDescription:")) } -// The warning value for the level indicator. [Full Topic] +// A human-readable description of the marker type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535032-accessibilitywarningvalue?language=objc -func (a_ AccessibilityObject) SetAccessibilityWarningValue(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityWarningValue:"), value) -} - -func (a_ AccessibilityObject) HasAccessibilityWarningValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityWarningValue")) -} - -// The warning value for the level indicator. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535032-accessibilitywarningvalue?language=objc -func (a_ AccessibilityObject) AccessibilityWarningValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityWarningValue")) - return rv -} - -func (a_ AccessibilityObject) HasSetAccessibilityDecrementButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDecrementButton:")) -} - -// The decrement button for the stepper accessibility element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535097-accessibilitydecrementbutton?language=objc -func (a_ AccessibilityObject) SetAccessibilityDecrementButton(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDecrementButton:"), value) -} - -func (a_ AccessibilityObject) HasAccessibilityDecrementButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDecrementButton")) -} - -// The decrement button for the stepper accessibility element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535097-accessibilitydecrementbutton?language=objc -func (a_ AccessibilityObject) AccessibilityDecrementButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDecrementButton")) - return rv -} - -func (a_ AccessibilityObject) HasSetAccessibilitySelectedColumns() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedColumns:")) -} - -// The currently selected columns for the table or outline. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534978-accessibilityselectedcolumns?language=objc -func (a_ AccessibilityObject) SetAccessibilitySelectedColumns(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedColumns:"), value) -} - -func (a_ AccessibilityObject) HasAccessibilitySelectedColumns() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedColumns")) -} - -// The currently selected columns for the table or outline. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534978-accessibilityselectedcolumns?language=objc -func (a_ AccessibilityObject) AccessibilitySelectedColumns() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedColumns")) - return rv -} - -func (a_ AccessibilityObject) HasSetAccessibilityMinValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMinValue:")) -} - -// The minimum value for the accessibility element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534995-accessibilityminvalue?language=objc -func (a_ AccessibilityObject) SetAccessibilityMinValue(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMinValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534968-accessibilitymarkertypedescripti?language=objc +func (a_ AccessibilityObject) SetAccessibilityMarkerTypeDescription(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerTypeDescription:"), value) } -func (a_ AccessibilityObject) HasAccessibilityMinValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMinValue")) +func (a_ AccessibilityObject) HasAccessibilityMarkerTypeDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMarkerTypeDescription")) } -// The minimum value for the accessibility element. [Full Topic] +// A human-readable description of the marker type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534995-accessibilityminvalue?language=objc -func (a_ AccessibilityObject) AccessibilityMinValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMinValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534968-accessibilitymarkertypedescripti?language=objc +func (a_ AccessibilityObject) AccessibilityMarkerTypeDescription() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityMarkerTypeDescription")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityLinkedUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityLinkedUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityRowIndexRange() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRowIndexRange:")) } -// The elements that have links with the accessibility element. [Full Topic] +// The row index range of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534972-accessibilitylinkeduielements?language=objc -func (a_ AccessibilityObject) SetAccessibilityLinkedUIElements(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLinkedUIElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535153-accessibilityrowindexrange?language=objc +func (a_ AccessibilityObject) SetAccessibilityRowIndexRange(value foundation.Range) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRowIndexRange:"), value) } -func (a_ AccessibilityObject) HasAccessibilityLinkedUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLinkedUIElements")) +func (a_ AccessibilityObject) HasAccessibilityRowIndexRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRowIndexRange")) } -// The elements that have links with the accessibility element. [Full Topic] +// The row index range of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534972-accessibilitylinkeduielements?language=objc -func (a_ AccessibilityObject) AccessibilityLinkedUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityLinkedUIElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535153-accessibilityrowindexrange?language=objc +func (a_ AccessibilityObject) AccessibilityRowIndexRange() foundation.Range { + rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRowIndexRange")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityCustomActions() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityCustomActions:")) +func (a_ AccessibilityObject) HasSetAccessibilityVerticalUnits() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalUnits:")) } -// The custom actions of the current accessibility element. [Full Topic] +// The units that the layout area uses for vertical values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869551-accessibilitycustomactions?language=objc -func (a_ AccessibilityObject) SetAccessibilityCustomActions(value []AccessibilityCustomAction) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCustomActions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535011-accessibilityverticalunits?language=objc +func (a_ AccessibilityObject) SetAccessibilityVerticalUnits(value AccessibilityUnits) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVerticalUnits:"), value) } -func (a_ AccessibilityObject) HasAccessibilityCustomActions() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCustomActions")) +func (a_ AccessibilityObject) HasAccessibilityVerticalUnits() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVerticalUnits")) } -// The custom actions of the current accessibility element. [Full Topic] +// The units that the layout area uses for vertical values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869551-accessibilitycustomactions?language=objc -func (a_ AccessibilityObject) AccessibilityCustomActions() []AccessibilityCustomAction { - rv := objc.Call[[]AccessibilityCustomAction](a_, objc.Sel("accessibilityCustomActions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535011-accessibilityverticalunits?language=objc +func (a_ AccessibilityObject) AccessibilityVerticalUnits() AccessibilityUnits { + rv := objc.Call[AccessibilityUnits](a_, objc.Sel("accessibilityVerticalUnits")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityColumnIndexRange() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnIndexRange:")) +func (a_ AccessibilityObject) HasSetAccessibilityVisibleRows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleRows:")) } -// The column index range of the cell. [Full Topic] +// The visible rows for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534979-accessibilitycolumnindexrange?language=objc -func (a_ AccessibilityObject) SetAccessibilityColumnIndexRange(value foundation.Range) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnIndexRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535004-accessibilityvisiblerows?language=objc +func (a_ AccessibilityObject) SetAccessibilityVisibleRows(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleRows:"), value) } -func (a_ AccessibilityObject) HasAccessibilityColumnIndexRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumnIndexRange")) +func (a_ AccessibilityObject) HasAccessibilityVisibleRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleRows")) } -// The column index range of the cell. [Full Topic] +// The visible rows for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534979-accessibilitycolumnindexrange?language=objc -func (a_ AccessibilityObject) AccessibilityColumnIndexRange() foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityColumnIndexRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535004-accessibilityvisiblerows?language=objc +func (a_ AccessibilityObject) AccessibilityVisibleRows() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleRows")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityEdited() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityEdited:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedCells() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedCells:")) } -// A Boolean value that indicates whether the accessibility element is in an edited state. [Full Topic] +// The currently selected cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535077-accessibilityedited?language=objc -func (a_ AccessibilityObject) SetAccessibilityEdited(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityEdited:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535101-accessibilityselectedcells?language=objc +func (a_ AccessibilityObject) SetAccessibilitySelectedCells(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedCells:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityEdited() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityEdited")) +func (a_ AccessibilityObject) HasAccessibilitySelectedCells() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedCells")) } -// A Boolean value that indicates whether the accessibility element is in an edited state. [Full Topic] +// The currently selected cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535077-accessibilityedited?language=objc -func (a_ AccessibilityObject) IsAccessibilityEdited() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityEdited")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535101-accessibilityselectedcells?language=objc +func (a_ AccessibilityObject) AccessibilitySelectedCells() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedCells")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityLabel() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityLabel:")) +func (a_ AccessibilityObject) HasSetAccessibilityVisibleColumns() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleColumns:")) } -// A short description of the accessibility element. [Full Topic] +// The visible columns for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534976-accessibilitylabel?language=objc -func (a_ AccessibilityObject) SetAccessibilityLabel(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535150-accessibilityvisiblecolumns?language=objc +func (a_ AccessibilityObject) SetAccessibilityVisibleColumns(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleColumns:"), value) } -func (a_ AccessibilityObject) HasAccessibilityLabel() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) +func (a_ AccessibilityObject) HasAccessibilityVisibleColumns() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleColumns")) } -// A short description of the accessibility element. [Full Topic] +// The visible columns for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534976-accessibilitylabel?language=objc -func (a_ AccessibilityObject) AccessibilityLabel() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535150-accessibilityvisiblecolumns?language=objc +func (a_ AccessibilityObject) AccessibilityVisibleColumns() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleColumns")) return rv } @@ -2102,164 +2010,164 @@ func (a_ AccessibilityObject) IsAccessibilityMain() bool { return rv } -func (a_ AccessibilityObject) HasSetAccessibilityHidden() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHidden:")) +func (a_ AccessibilityObject) HasSetAccessibilityMarkerUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerUIElements:")) } -// A Boolean value that determines whether the app is in a hidden state. [Full Topic] +// An array of marker accessibility elements for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534961-accessibilityhidden?language=objc -func (a_ AccessibilityObject) SetAccessibilityHidden(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHidden:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535037-accessibilitymarkeruielements?language=objc +func (a_ AccessibilityObject) SetAccessibilityMarkerUIElements(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerUIElements:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityHidden() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityHidden")) +func (a_ AccessibilityObject) HasAccessibilityMarkerUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMarkerUIElements")) } -// A Boolean value that determines whether the app is in a hidden state. [Full Topic] +// An array of marker accessibility elements for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534961-accessibilityhidden?language=objc -func (a_ AccessibilityObject) IsAccessibilityHidden() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityHidden")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535037-accessibilitymarkeruielements?language=objc +func (a_ AccessibilityObject) AccessibilityMarkerUIElements() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityMarkerUIElements")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityFocused() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityFocused:")) +func (a_ AccessibilityObject) HasSetAccessibilityWarningValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityWarningValue:")) } -// A Boolean value that determines whether the accessibility element has the keyboard focus. [Full Topic] +// The warning value for the level indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534994-accessibilityfocused?language=objc -func (a_ AccessibilityObject) SetAccessibilityFocused(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFocused:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535032-accessibilitywarningvalue?language=objc +func (a_ AccessibilityObject) SetAccessibilityWarningValue(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityWarningValue:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityFocused() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityFocused")) +func (a_ AccessibilityObject) HasAccessibilityWarningValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityWarningValue")) } -// A Boolean value that determines whether the accessibility element has the keyboard focus. [Full Topic] +// The warning value for the level indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534994-accessibilityfocused?language=objc -func (a_ AccessibilityObject) IsAccessibilityFocused() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityFocused")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535032-accessibilitywarningvalue?language=objc +func (a_ AccessibilityObject) AccessibilityWarningValue() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityWarningValue")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityVerticalScrollBar() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalScrollBar:")) +func (a_ AccessibilityObject) HasSetAccessibilityContents() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityContents:")) } -// The vertical scroll bar for the scroll view. [Full Topic] +// The contents of the current accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535053-accessibilityverticalscrollbar?language=objc -func (a_ AccessibilityObject) SetAccessibilityVerticalScrollBar(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVerticalScrollBar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535026-accessibilitycontents?language=objc +func (a_ AccessibilityObject) SetAccessibilityContents(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityContents:"), value) } -func (a_ AccessibilityObject) HasAccessibilityVerticalScrollBar() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVerticalScrollBar")) +func (a_ AccessibilityObject) HasAccessibilityContents() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityContents")) } -// The vertical scroll bar for the scroll view. [Full Topic] +// The contents of the current accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535053-accessibilityverticalscrollbar?language=objc -func (a_ AccessibilityObject) AccessibilityVerticalScrollBar() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityVerticalScrollBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535026-accessibilitycontents?language=objc +func (a_ AccessibilityObject) AccessibilityContents() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityContents")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySubrole() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySubrole:")) +func (a_ AccessibilityObject) HasSetAccessibilityServesAsTitleForUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityServesAsTitleForUIElements:")) } -// The specialized interface element type that the accessibility element represents. [Full Topic] +// The list of elements that the accessibility element is a title for. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535070-accessibilitysubrole?language=objc -func (a_ AccessibilityObject) SetAccessibilitySubrole(value AccessibilitySubrole) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySubrole:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535122-accessibilityservesastitleforuie?language=objc +func (a_ AccessibilityObject) SetAccessibilityServesAsTitleForUIElements(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityServesAsTitleForUIElements:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySubrole() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySubrole")) +func (a_ AccessibilityObject) HasAccessibilityServesAsTitleForUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityServesAsTitleForUIElements")) } -// The specialized interface element type that the accessibility element represents. [Full Topic] +// The list of elements that the accessibility element is a title for. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535070-accessibilitysubrole?language=objc -func (a_ AccessibilityObject) AccessibilitySubrole() AccessibilitySubrole { - rv := objc.Call[AccessibilitySubrole](a_, objc.Sel("accessibilitySubrole")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535122-accessibilityservesastitleforuie?language=objc +func (a_ AccessibilityObject) AccessibilityServesAsTitleForUIElements() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityServesAsTitleForUIElements")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityTabs() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityTabs:")) +func (a_ AccessibilityObject) HasSetAccessibilityVerticalUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalUnitDescription:")) } -// The tab accessibility elements for the tab view. [Full Topic] +// A description of the layout area’s vertical units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535044-accessibilitytabs?language=objc -func (a_ AccessibilityObject) SetAccessibilityTabs(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTabs:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535065-accessibilityverticalunitdescrip?language=objc +func (a_ AccessibilityObject) SetAccessibilityVerticalUnitDescription(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVerticalUnitDescription:"), value) } -func (a_ AccessibilityObject) HasAccessibilityTabs() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityTabs")) +func (a_ AccessibilityObject) HasAccessibilityVerticalUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVerticalUnitDescription")) } -// The tab accessibility elements for the tab view. [Full Topic] +// A description of the layout area’s vertical units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535044-accessibilitytabs?language=objc -func (a_ AccessibilityObject) AccessibilityTabs() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityTabs")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535065-accessibilityverticalunitdescrip?language=objc +func (a_ AccessibilityObject) AccessibilityVerticalUnitDescription() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityVerticalUnitDescription")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityCriticalValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityCriticalValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityIndex() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityIndex:")) } -// The critical value for the level indicator. [Full Topic] +// The index of the row or column that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534973-accessibilitycriticalvalue?language=objc -func (a_ AccessibilityObject) SetAccessibilityCriticalValue(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCriticalValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535067-accessibilityindex?language=objc +func (a_ AccessibilityObject) SetAccessibilityIndex(value int) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityIndex:"), value) } -func (a_ AccessibilityObject) HasAccessibilityCriticalValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCriticalValue")) +func (a_ AccessibilityObject) HasAccessibilityIndex() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityIndex")) } -// The critical value for the level indicator. [Full Topic] +// The index of the row or column that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534973-accessibilitycriticalvalue?language=objc -func (a_ AccessibilityObject) AccessibilityCriticalValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCriticalValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535067-accessibilityindex?language=objc +func (a_ AccessibilityObject) AccessibilityIndex() int { + rv := objc.Call[int](a_, objc.Sel("accessibilityIndex")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityVisibleChildren() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleChildren:")) +func (a_ AccessibilityObject) HasSetAccessibilityLabel() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityLabel:")) } -// The accessibility element’s visible child accessibility elements. [Full Topic] +// A short description of the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534964-accessibilityvisiblechildren?language=objc -func (a_ AccessibilityObject) SetAccessibilityVisibleChildren(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleChildren:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534976-accessibilitylabel?language=objc +func (a_ AccessibilityObject) SetAccessibilityLabel(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLabel:"), value) } -func (a_ AccessibilityObject) HasAccessibilityVisibleChildren() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleChildren")) +func (a_ AccessibilityObject) HasAccessibilityLabel() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } -// The accessibility element’s visible child accessibility elements. [Full Topic] +// A short description of the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534964-accessibilityvisiblechildren?language=objc -func (a_ AccessibilityObject) AccessibilityVisibleChildren() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleChildren")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534976-accessibilitylabel?language=objc +func (a_ AccessibilityObject) AccessibilityLabel() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) return rv } @@ -2286,164 +2194,164 @@ func (a_ AccessibilityObject) AccessibilityFocusedWindow() objc.Object { return rv } -func (a_ AccessibilityObject) HasSetAccessibilityChildrenInNavigationOrder() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityChildrenInNavigationOrder:")) +func (a_ AccessibilityObject) HasSetAccessibilityToolbarButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityToolbarButton:")) } -// An array of child accessibility elements in order for linear navigation. [Full Topic] +// The child accessibility element that represents the window’s toolbar button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869552-accessibilitychildreninnavigatio?language=objc -func (a_ AccessibilityObject) SetAccessibilityChildrenInNavigationOrder(value []AccessibilityElementObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityChildrenInNavigationOrder:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535075-accessibilitytoolbarbutton?language=objc +func (a_ AccessibilityObject) SetAccessibilityToolbarButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityToolbarButton:"), value) } -func (a_ AccessibilityObject) HasAccessibilityChildrenInNavigationOrder() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityChildrenInNavigationOrder")) +func (a_ AccessibilityObject) HasAccessibilityToolbarButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityToolbarButton")) } -// An array of child accessibility elements in order for linear navigation. [Full Topic] +// The child accessibility element that represents the window’s toolbar button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869552-accessibilitychildreninnavigatio?language=objc -func (a_ AccessibilityObject) AccessibilityChildrenInNavigationOrder() []AccessibilityElementObject { - rv := objc.Call[[]AccessibilityElementObject](a_, objc.Sel("accessibilityChildrenInNavigationOrder")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535075-accessibilitytoolbarbutton?language=objc +func (a_ AccessibilityObject) AccessibilityToolbarButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityToolbarButton")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityFrame() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityFrame:")) +func (a_ AccessibilityObject) HasSetAccessibilityShownMenu() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityShownMenu:")) } -// The accessibility element’s frame in screen coordinates. [Full Topic] +// The menu currently displaying for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534939-accessibilityframe?language=objc -func (a_ AccessibilityObject) SetAccessibilityFrame(value foundation.Rect) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFrame:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534983-accessibilityshownmenu?language=objc +func (a_ AccessibilityObject) SetAccessibilityShownMenu(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityShownMenu:"), value) } -func (a_ AccessibilityObject) HasAccessibilityFrame() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityFrame")) +func (a_ AccessibilityObject) HasAccessibilityShownMenu() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityShownMenu")) } -// The accessibility element’s frame in screen coordinates. [Full Topic] +// The menu currently displaying for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534939-accessibilityframe?language=objc -func (a_ AccessibilityObject) AccessibilityFrame() foundation.Rect { - rv := objc.Call[foundation.Rect](a_, objc.Sel("accessibilityFrame")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534983-accessibilityshownmenu?language=objc +func (a_ AccessibilityObject) AccessibilityShownMenu() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityShownMenu")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityExpanded() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityExpanded:")) +func (a_ AccessibilityObject) HasSetAccessibilitySplitters() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySplitters:")) } -// A Boolean value that determines whether the accessibility element is in an expanded state. [Full Topic] +// An array that contains the views and splitter bar from the split view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535045-accessibilityexpanded?language=objc -func (a_ AccessibilityObject) SetAccessibilityExpanded(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityExpanded:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535088-accessibilitysplitters?language=objc +func (a_ AccessibilityObject) SetAccessibilitySplitters(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySplitters:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityExpanded() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityExpanded")) +func (a_ AccessibilityObject) HasAccessibilitySplitters() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySplitters")) } -// A Boolean value that determines whether the accessibility element is in an expanded state. [Full Topic] +// An array that contains the views and splitter bar from the split view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535045-accessibilityexpanded?language=objc -func (a_ AccessibilityObject) IsAccessibilityExpanded() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityExpanded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535088-accessibilitysplitters?language=objc +func (a_ AccessibilityObject) AccessibilitySplitters() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySplitters")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityTitle() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityTitle:")) +func (a_ AccessibilityObject) HasSetAccessibilityMainWindow() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMainWindow:")) } -// The title of the accessibility element—for example, a button’s visible text. [Full Topic] +// The app’s main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535033-accessibilitytitle?language=objc -func (a_ AccessibilityObject) SetAccessibilityTitle(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535138-accessibilitymainwindow?language=objc +func (a_ AccessibilityObject) SetAccessibilityMainWindow(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMainWindow:"), value) } -func (a_ AccessibilityObject) HasAccessibilityTitle() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityTitle")) +func (a_ AccessibilityObject) HasAccessibilityMainWindow() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMainWindow")) } -// The title of the accessibility element—for example, a button’s visible text. [Full Topic] +// The app’s main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535033-accessibilitytitle?language=objc -func (a_ AccessibilityObject) AccessibilityTitle() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535138-accessibilitymainwindow?language=objc +func (a_ AccessibilityObject) AccessibilityMainWindow() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMainWindow")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityDisclosed() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosed:")) +func (a_ AccessibilityObject) HasSetAccessibilityOrientation() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityOrientation:")) } -// A Boolean value that determines whether the row is disclosing other rows. [Full Topic] +// The orientation of the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535124-accessibilitydisclosed?language=objc -func (a_ AccessibilityObject) SetAccessibilityDisclosed(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535106-accessibilityorientation?language=objc +func (a_ AccessibilityObject) SetAccessibilityOrientation(value AccessibilityOrientation) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityOrientation:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityDisclosed() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityDisclosed")) +func (a_ AccessibilityObject) HasAccessibilityOrientation() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityOrientation")) } -// A Boolean value that determines whether the row is disclosing other rows. [Full Topic] +// The orientation of the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535124-accessibilitydisclosed?language=objc -func (a_ AccessibilityObject) IsAccessibilityDisclosed() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityDisclosed")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535106-accessibilityorientation?language=objc +func (a_ AccessibilityObject) AccessibilityOrientation() AccessibilityOrientation { + rv := objc.Call[AccessibilityOrientation](a_, objc.Sel("accessibilityOrientation")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityVerticalUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalUnitDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityRole() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRole:")) } -// A description of the layout area’s vertical units. [Full Topic] +// The type of interface element that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535065-accessibilityverticalunitdescrip?language=objc -func (a_ AccessibilityObject) SetAccessibilityVerticalUnitDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVerticalUnitDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535005-accessibilityrole?language=objc +func (a_ AccessibilityObject) SetAccessibilityRole(value AccessibilityRole) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRole:"), value) } -func (a_ AccessibilityObject) HasAccessibilityVerticalUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVerticalUnitDescription")) +func (a_ AccessibilityObject) HasAccessibilityRole() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRole")) } -// A description of the layout area’s vertical units. [Full Topic] +// The type of interface element that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535065-accessibilityverticalunitdescrip?language=objc -func (a_ AccessibilityObject) AccessibilityVerticalUnitDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityVerticalUnitDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535005-accessibilityrole?language=objc +func (a_ AccessibilityObject) AccessibilityRole() AccessibilityRole { + rv := objc.Call[AccessibilityRole](a_, objc.Sel("accessibilityRole")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityPreviousContents() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityPreviousContents:")) +func (a_ AccessibilityObject) HasSetAccessibilityAllowedValues() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityAllowedValues:")) } -// The contents that precede the divider accessibility element. [Full Topic] +// The allowed values for the slider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534950-accessibilitypreviouscontents?language=objc -func (a_ AccessibilityObject) SetAccessibilityPreviousContents(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityPreviousContents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534941-accessibilityallowedvalues?language=objc +func (a_ AccessibilityObject) SetAccessibilityAllowedValues(value []foundation.Number) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityAllowedValues:"), value) } -func (a_ AccessibilityObject) HasAccessibilityPreviousContents() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPreviousContents")) +func (a_ AccessibilityObject) HasAccessibilityAllowedValues() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityAllowedValues")) } -// The contents that precede the divider accessibility element. [Full Topic] +// The allowed values for the slider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534950-accessibilitypreviouscontents?language=objc -func (a_ AccessibilityObject) AccessibilityPreviousContents() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityPreviousContents")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534941-accessibilityallowedvalues?language=objc +func (a_ AccessibilityObject) AccessibilityAllowedValues() []foundation.Number { + rv := objc.Call[[]foundation.Number](a_, objc.Sel("accessibilityAllowedValues")) return rv } @@ -2470,1176 +2378,1245 @@ func (a_ AccessibilityObject) AccessibilityCloseButton() objc.Object { return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySelectedCells() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedCells:")) +func (a_ AccessibilityObject) HasSetAccessibilityCancelButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityCancelButton:")) } -// The currently selected cells for the table. [Full Topic] +// The child accessibility element that represents the window’s cancel button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535101-accessibilityselectedcells?language=objc -func (a_ AccessibilityObject) SetAccessibilitySelectedCells(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedCells:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535060-accessibilitycancelbutton?language=objc +func (a_ AccessibilityObject) SetAccessibilityCancelButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCancelButton:"), value) +} + +func (a_ AccessibilityObject) HasAccessibilityCancelButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCancelButton")) +} + +// The child accessibility element that represents the window’s cancel button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535060-accessibilitycancelbutton?language=objc +func (a_ AccessibilityObject) AccessibilityCancelButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCancelButton")) + return rv +} + +func (a_ AccessibilityObject) HasSetAccessibilityFocused() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityFocused:")) +} + +// A Boolean value that determines whether the accessibility element has the keyboard focus. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534994-accessibilityfocused?language=objc +func (a_ AccessibilityObject) SetAccessibilityFocused(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFocused:"), value) +} + +func (a_ AccessibilityObject) HasIsAccessibilityFocused() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityFocused")) +} + +// A Boolean value that determines whether the accessibility element has the keyboard focus. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534994-accessibilityfocused?language=objc +func (a_ AccessibilityObject) IsAccessibilityFocused() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityFocused")) + return rv +} + +func (a_ AccessibilityObject) HasSetAccessibilityCustomRotors() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityCustomRotors:")) +} + +// The custom rotors of the current accessibility element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2876053-accessibilitycustomrotors?language=objc +func (a_ AccessibilityObject) SetAccessibilityCustomRotors(value []AccessibilityCustomRotor) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCustomRotors:"), value) +} + +func (a_ AccessibilityObject) HasAccessibilityCustomRotors() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCustomRotors")) +} + +// The custom rotors of the current accessibility element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2876053-accessibilitycustomrotors?language=objc +func (a_ AccessibilityObject) AccessibilityCustomRotors() []AccessibilityCustomRotor { + rv := objc.Call[[]AccessibilityCustomRotor](a_, objc.Sel("accessibilityCustomRotors")) + return rv +} + +func (a_ AccessibilityObject) HasSetAccessibilityOrderedByRow() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityOrderedByRow:")) +} + +// A Boolean value that determines whether the accessibility element’s grid is in row major order or in column major order. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535061-accessibilityorderedbyrow?language=objc +func (a_ AccessibilityObject) SetAccessibilityOrderedByRow(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityOrderedByRow:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySelectedCells() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedCells")) +func (a_ AccessibilityObject) HasIsAccessibilityOrderedByRow() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityOrderedByRow")) } -// The currently selected cells for the table. [Full Topic] +// A Boolean value that determines whether the accessibility element’s grid is in row major order or in column major order. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535101-accessibilityselectedcells?language=objc -func (a_ AccessibilityObject) AccessibilitySelectedCells() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedCells")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535061-accessibilityorderedbyrow?language=objc +func (a_ AccessibilityObject) IsAccessibilityOrderedByRow() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityOrderedByRow")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityMarkerTypeDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerTypeDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilitySubrole() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySubrole:")) } -// A human-readable description of the marker type. [Full Topic] +// The specialized interface element type that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534968-accessibilitymarkertypedescripti?language=objc -func (a_ AccessibilityObject) SetAccessibilityMarkerTypeDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerTypeDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535070-accessibilitysubrole?language=objc +func (a_ AccessibilityObject) SetAccessibilitySubrole(value AccessibilitySubrole) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySubrole:"), value) } -func (a_ AccessibilityObject) HasAccessibilityMarkerTypeDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMarkerTypeDescription")) +func (a_ AccessibilityObject) HasAccessibilitySubrole() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySubrole")) } -// A human-readable description of the marker type. [Full Topic] +// The specialized interface element type that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534968-accessibilitymarkertypedescripti?language=objc -func (a_ AccessibilityObject) AccessibilityMarkerTypeDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityMarkerTypeDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535070-accessibilitysubrole?language=objc +func (a_ AccessibilityObject) AccessibilitySubrole() AccessibilitySubrole { + rv := objc.Call[AccessibilitySubrole](a_, objc.Sel("accessibilitySubrole")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityDefaultButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDefaultButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityTitleUIElement() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityTitleUIElement:")) } -// The child accessibility element that represents the window’s default button. [Full Topic] +// A static text element that represents the accessibility element’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534957-accessibilitydefaultbutton?language=objc -func (a_ AccessibilityObject) SetAccessibilityDefaultButton(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDefaultButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535155-accessibilitytitleuielement?language=objc +func (a_ AccessibilityObject) SetAccessibilityTitleUIElement(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTitleUIElement:"), value) } -func (a_ AccessibilityObject) HasAccessibilityDefaultButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDefaultButton")) +func (a_ AccessibilityObject) HasAccessibilityTitleUIElement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityTitleUIElement")) } -// The child accessibility element that represents the window’s default button. [Full Topic] +// A static text element that represents the accessibility element’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534957-accessibilitydefaultbutton?language=objc -func (a_ AccessibilityObject) AccessibilityDefaultButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDefaultButton")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535155-accessibilitytitleuielement?language=objc +func (a_ AccessibilityObject) AccessibilityTitleUIElement() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityTitleUIElement")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityIndex() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityIndex:")) +func (a_ AccessibilityObject) HasSetAccessibilityChildrenInNavigationOrder() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityChildrenInNavigationOrder:")) } -// The index of the row or column that the accessibility element represents. [Full Topic] +// An array of child accessibility elements in order for linear navigation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535067-accessibilityindex?language=objc -func (a_ AccessibilityObject) SetAccessibilityIndex(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869552-accessibilitychildreninnavigatio?language=objc +func (a_ AccessibilityObject) SetAccessibilityChildrenInNavigationOrder(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityChildrenInNavigationOrder:"), value) } -func (a_ AccessibilityObject) HasAccessibilityIndex() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityIndex")) +func (a_ AccessibilityObject) HasAccessibilityChildrenInNavigationOrder() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityChildrenInNavigationOrder")) } -// The index of the row or column that the accessibility element represents. [Full Topic] +// An array of child accessibility elements in order for linear navigation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535067-accessibilityindex?language=objc -func (a_ AccessibilityObject) AccessibilityIndex() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityIndex")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869552-accessibilitychildreninnavigatio?language=objc +func (a_ AccessibilityObject) AccessibilityChildrenInNavigationOrder() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityChildrenInNavigationOrder")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityApplicationFocusedUIElement() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityApplicationFocusedUIElement:")) +func (a_ AccessibilityObject) HasSetAccessibilityAlternateUIVisible() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityAlternateUIVisible:")) } -// The child accessibility element with the current focus. [Full Topic] +// A Boolean value that determines whether the accessibility element’s alternative UI is currently visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535139-accessibilityapplicationfocusedu?language=objc -func (a_ AccessibilityObject) SetAccessibilityApplicationFocusedUIElement(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityApplicationFocusedUIElement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535035-accessibilityalternateuivisible?language=objc +func (a_ AccessibilityObject) SetAccessibilityAlternateUIVisible(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityAlternateUIVisible:"), value) } -func (a_ AccessibilityObject) HasAccessibilityApplicationFocusedUIElement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityApplicationFocusedUIElement")) +func (a_ AccessibilityObject) HasIsAccessibilityAlternateUIVisible() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityAlternateUIVisible")) } -// The child accessibility element with the current focus. [Full Topic] +// A Boolean value that determines whether the accessibility element’s alternative UI is currently visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535139-accessibilityapplicationfocusedu?language=objc -func (a_ AccessibilityObject) AccessibilityApplicationFocusedUIElement() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityApplicationFocusedUIElement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535035-accessibilityalternateuivisible?language=objc +func (a_ AccessibilityObject) IsAccessibilityAlternateUIVisible() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityAlternateUIVisible")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityWindow() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityWindow:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedTextRange() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedTextRange:")) } -// The window that contains the accessibility element. [Full Topic] +// The range of the currently selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535030-accessibilitywindow?language=objc -func (a_ AccessibilityObject) SetAccessibilityWindow(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityWindow:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534989-accessibilityselectedtextrange?language=objc +func (a_ AccessibilityObject) SetAccessibilitySelectedTextRange(value foundation.Range) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedTextRange:"), value) } -func (a_ AccessibilityObject) HasAccessibilityWindow() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityWindow")) +func (a_ AccessibilityObject) HasAccessibilitySelectedTextRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedTextRange")) } -// The window that contains the accessibility element. [Full Topic] +// The range of the currently selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535030-accessibilitywindow?language=objc -func (a_ AccessibilityObject) AccessibilityWindow() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534989-accessibilityselectedtextrange?language=objc +func (a_ AccessibilityObject) AccessibilitySelectedTextRange() foundation.Range { + rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilitySelectedTextRange")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityRowIndexRange() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRowIndexRange:")) +func (a_ AccessibilityObject) HasSetAccessibilitySharedFocusElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedFocusElements:")) } -// The row index range of the cell. [Full Topic] +// An array of elements that shares the keyboard focus with the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535153-accessibilityrowindexrange?language=objc -func (a_ AccessibilityObject) SetAccessibilityRowIndexRange(value foundation.Range) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRowIndexRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534990-accessibilitysharedfocuselements?language=objc +func (a_ AccessibilityObject) SetAccessibilitySharedFocusElements(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySharedFocusElements:"), value) } -func (a_ AccessibilityObject) HasAccessibilityRowIndexRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRowIndexRange")) +func (a_ AccessibilityObject) HasAccessibilitySharedFocusElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySharedFocusElements")) } -// The row index range of the cell. [Full Topic] +// An array of elements that shares the keyboard focus with the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535153-accessibilityrowindexrange?language=objc -func (a_ AccessibilityObject) AccessibilityRowIndexRange() foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRowIndexRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534990-accessibilitysharedfocuselements?language=objc +func (a_ AccessibilityObject) AccessibilitySharedFocusElements() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySharedFocusElements")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityUnits() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityUnits:")) +func (a_ AccessibilityObject) HasSetAccessibilityMaxValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMaxValue:")) } -// The units for the ruler. [Full Topic] +// The maximum value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535029-accessibilityunits?language=objc -func (a_ AccessibilityObject) SetAccessibilityUnits(value AccessibilityUnits) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityUnits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535078-accessibilitymaxvalue?language=objc +func (a_ AccessibilityObject) SetAccessibilityMaxValue(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMaxValue:"), value) } -func (a_ AccessibilityObject) HasAccessibilityUnits() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityUnits")) +func (a_ AccessibilityObject) HasAccessibilityMaxValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMaxValue")) } -// The units for the ruler. [Full Topic] +// The maximum value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535029-accessibilityunits?language=objc -func (a_ AccessibilityObject) AccessibilityUnits() AccessibilityUnits { - rv := objc.Call[AccessibilityUnits](a_, objc.Sel("accessibilityUnits")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535078-accessibilitymaxvalue?language=objc +func (a_ AccessibilityObject) AccessibilityMaxValue() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMaxValue")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityFrontmost() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityFrontmost:")) +func (a_ AccessibilityObject) HasSetAccessibilityDocument() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDocument:")) } -// A Boolean value that determines whether the app is the frontmost app. [Full Topic] +// The URL for the file that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535073-accessibilityfrontmost?language=objc -func (a_ AccessibilityObject) SetAccessibilityFrontmost(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFrontmost:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534993-accessibilitydocument?language=objc +func (a_ AccessibilityObject) SetAccessibilityDocument(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDocument:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityFrontmost() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityFrontmost")) +func (a_ AccessibilityObject) HasAccessibilityDocument() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDocument")) } -// A Boolean value that determines whether the app is the frontmost app. [Full Topic] +// The URL for the file that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535073-accessibilityfrontmost?language=objc -func (a_ AccessibilityObject) IsAccessibilityFrontmost() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityFrontmost")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534993-accessibilitydocument?language=objc +func (a_ AccessibilityObject) AccessibilityDocument() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityDocument")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityLabelValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityLabelValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityCustomActions() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityCustomActions:")) } -// The value of the label accessibility element. [Full Topic] +// The custom actions of the current accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535108-accessibilitylabelvalue?language=objc -func (a_ AccessibilityObject) SetAccessibilityLabelValue(value float32) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLabelValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869551-accessibilitycustomactions?language=objc +func (a_ AccessibilityObject) SetAccessibilityCustomActions(value []AccessibilityCustomAction) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCustomActions:"), value) } -func (a_ AccessibilityObject) HasAccessibilityLabelValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabelValue")) +func (a_ AccessibilityObject) HasAccessibilityCustomActions() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCustomActions")) } -// The value of the label accessibility element. [Full Topic] +// The custom actions of the current accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535108-accessibilitylabelvalue?language=objc -func (a_ AccessibilityObject) AccessibilityLabelValue() float32 { - rv := objc.Call[float32](a_, objc.Sel("accessibilityLabelValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869551-accessibilitycustomactions?language=objc +func (a_ AccessibilityObject) AccessibilityCustomActions() []AccessibilityCustomAction { + rv := objc.Call[[]AccessibilityCustomAction](a_, objc.Sel("accessibilityCustomActions")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityWindows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityWindows:")) +func (a_ AccessibilityObject) HasSetAccessibilityDecrementButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDecrementButton:")) } -// An array that contains all the app’s windows. [Full Topic] +// The decrement button for the stepper accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535117-accessibilitywindows?language=objc -func (a_ AccessibilityObject) SetAccessibilityWindows(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityWindows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535097-accessibilitydecrementbutton?language=objc +func (a_ AccessibilityObject) SetAccessibilityDecrementButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDecrementButton:"), value) } -func (a_ AccessibilityObject) HasAccessibilityWindows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityWindows")) +func (a_ AccessibilityObject) HasAccessibilityDecrementButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDecrementButton")) } -// An array that contains all the app’s windows. [Full Topic] +// The decrement button for the stepper accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535117-accessibilitywindows?language=objc -func (a_ AccessibilityObject) AccessibilityWindows() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityWindows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535097-accessibilitydecrementbutton?language=objc +func (a_ AccessibilityObject) AccessibilityDecrementButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDecrementButton")) return rv } - -func (a_ AccessibilityObject) HasSetAccessibilityEnabled() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityEnabled:")) + +func (a_ AccessibilityObject) HasSetAccessibilitySharedTextUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedTextUIElements:")) } -// A Boolean value that determines whether the accessibility element responds to user events. [Full Topic] +// Other elements that share text with the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535024-accessibilityenabled?language=objc -func (a_ AccessibilityObject) SetAccessibilityEnabled(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534991-accessibilitysharedtextuielement?language=objc +func (a_ AccessibilityObject) SetAccessibilitySharedTextUIElements(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySharedTextUIElements:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityEnabled() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityEnabled")) +func (a_ AccessibilityObject) HasAccessibilitySharedTextUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySharedTextUIElements")) } -// A Boolean value that determines whether the accessibility element responds to user events. [Full Topic] +// Other elements that share text with the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535024-accessibilityenabled?language=objc -func (a_ AccessibilityObject) IsAccessibilityEnabled() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534991-accessibilitysharedtextuielement?language=objc +func (a_ AccessibilityObject) AccessibilitySharedTextUIElements() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySharedTextUIElements")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityColumnCount() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnCount:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelected() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelected:")) } -// The number of columns in the accessibility element’s grid. [Full Topic] +// A Boolean value that determines whether the accessibility element is currently in a selected state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534966-accessibilitycolumncount?language=objc -func (a_ AccessibilityObject) SetAccessibilityColumnCount(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534981-accessibilityselected?language=objc +func (a_ AccessibilityObject) SetAccessibilitySelected(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelected:"), value) } -func (a_ AccessibilityObject) HasAccessibilityColumnCount() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumnCount")) +func (a_ AccessibilityObject) HasIsAccessibilitySelected() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilitySelected")) } -// The number of columns in the accessibility element’s grid. [Full Topic] +// A Boolean value that determines whether the accessibility element is currently in a selected state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534966-accessibilitycolumncount?language=objc -func (a_ AccessibilityObject) AccessibilityColumnCount() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityColumnCount")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534981-accessibilityselected?language=objc +func (a_ AccessibilityObject) IsAccessibilitySelected() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilitySelected")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityChildren() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityChildren:")) +func (a_ AccessibilityObject) HasSetAccessibilityColumns() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityColumns:")) } -// The child accessibility elements in the accessibility hierarchy. [Full Topic] +// The column accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535018-accessibilitychildren?language=objc -func (a_ AccessibilityObject) SetAccessibilityChildren(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityChildren:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535115-accessibilitycolumns?language=objc +func (a_ AccessibilityObject) SetAccessibilityColumns(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumns:"), value) } -func (a_ AccessibilityObject) HasAccessibilityChildren() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityChildren")) +func (a_ AccessibilityObject) HasAccessibilityColumns() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumns")) } -// The child accessibility elements in the accessibility hierarchy. [Full Topic] +// The column accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535018-accessibilitychildren?language=objc -func (a_ AccessibilityObject) AccessibilityChildren() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityChildren")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535115-accessibilitycolumns?language=objc +func (a_ AccessibilityObject) AccessibilityColumns() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumns")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityHorizontalUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalUnitDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityRoleDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRoleDescription:")) } -// A description of the layout area’s horizontal units. [Full Topic] +// A localized, human-intelligible description of the accessibility element’s role, such as radio button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535095-accessibilityhorizontalunitdescr?language=objc -func (a_ AccessibilityObject) SetAccessibilityHorizontalUnitDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHorizontalUnitDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535144-accessibilityroledescription?language=objc +func (a_ AccessibilityObject) SetAccessibilityRoleDescription(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRoleDescription:"), value) } -func (a_ AccessibilityObject) HasAccessibilityHorizontalUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalUnitDescription")) +func (a_ AccessibilityObject) HasAccessibilityRoleDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRoleDescription")) } -// A description of the layout area’s horizontal units. [Full Topic] +// A localized, human-intelligible description of the accessibility element’s role, such as radio button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535095-accessibilityhorizontalunitdescr?language=objc -func (a_ AccessibilityObject) AccessibilityHorizontalUnitDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityHorizontalUnitDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535144-accessibilityroledescription?language=objc +func (a_ AccessibilityObject) AccessibilityRoleDescription() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityRoleDescription")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySelectedTextRange() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedTextRange:")) +func (a_ AccessibilityObject) HasSetAccessibilityActivationPoint() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityActivationPoint:")) } -// The range of the currently selected text. [Full Topic] +// The activation point for the user interface element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534989-accessibilityselectedtextrange?language=objc -func (a_ AccessibilityObject) SetAccessibilitySelectedTextRange(value foundation.Range) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedTextRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535149-accessibilityactivationpoint?language=objc +func (a_ AccessibilityObject) SetAccessibilityActivationPoint(value foundation.Point) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityActivationPoint:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySelectedTextRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedTextRange")) +func (a_ AccessibilityObject) HasAccessibilityActivationPoint() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityActivationPoint")) } -// The range of the currently selected text. [Full Topic] +// The activation point for the user interface element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534989-accessibilityselectedtextrange?language=objc -func (a_ AccessibilityObject) AccessibilitySelectedTextRange() foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilitySelectedTextRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535149-accessibilityactivationpoint?language=objc +func (a_ AccessibilityObject) AccessibilityActivationPoint() foundation.Point { + rv := objc.Call[foundation.Point](a_, objc.Sel("accessibilityActivationPoint")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityRole() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRole:")) +func (a_ AccessibilityObject) HasSetAccessibilityIdentifier() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityIdentifier:")) } -// The type of interface element that the accessibility element represents. [Full Topic] +// The accessibility element’s identity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535005-accessibilityrole?language=objc -func (a_ AccessibilityObject) SetAccessibilityRole(value AccessibilityRole) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRole:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535023-accessibilityidentifier?language=objc +func (a_ AccessibilityObject) SetAccessibilityIdentifier(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityIdentifier:"), value) } -func (a_ AccessibilityObject) HasAccessibilityRole() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRole")) +func (a_ AccessibilityObject) HasAccessibilityIdentifier() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityIdentifier")) } -// The type of interface element that the accessibility element represents. [Full Topic] +// The accessibility element’s identity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535005-accessibilityrole?language=objc -func (a_ AccessibilityObject) AccessibilityRole() AccessibilityRole { - rv := objc.Call[AccessibilityRole](a_, objc.Sel("accessibilityRole")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535023-accessibilityidentifier?language=objc +func (a_ AccessibilityObject) AccessibilityIdentifier() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityIdentifier")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityMarkerGroupUIElement() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerGroupUIElement:")) +func (a_ AccessibilityObject) HasSetAccessibilityTopLevelUIElement() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityTopLevelUIElement:")) } -// The user interface element that functions as a marker group for the ruler accessibility element. [Full Topic] +// The top-level element that contains the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535081-accessibilitymarkergroupuielemen?language=objc -func (a_ AccessibilityObject) SetAccessibilityMarkerGroupUIElement(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerGroupUIElement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535092-accessibilitytopleveluielement?language=objc +func (a_ AccessibilityObject) SetAccessibilityTopLevelUIElement(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTopLevelUIElement:"), value) } -func (a_ AccessibilityObject) HasAccessibilityMarkerGroupUIElement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMarkerGroupUIElement")) +func (a_ AccessibilityObject) HasAccessibilityTopLevelUIElement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityTopLevelUIElement")) } -// The user interface element that functions as a marker group for the ruler accessibility element. [Full Topic] +// The top-level element that contains the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535081-accessibilitymarkergroupuielemen?language=objc -func (a_ AccessibilityObject) AccessibilityMarkerGroupUIElement() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMarkerGroupUIElement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535092-accessibilitytopleveluielement?language=objc +func (a_ AccessibilityObject) AccessibilityTopLevelUIElement() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityTopLevelUIElement")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityRulerMarkerType() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRulerMarkerType:")) +func (a_ AccessibilityObject) HasSetAccessibilityMenuBar() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMenuBar:")) } -// The type of markers for the ruler. [Full Topic] +// The app’s menu bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535099-accessibilityrulermarkertype?language=objc -func (a_ AccessibilityObject) SetAccessibilityRulerMarkerType(value AccessibilityRulerMarkerType) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRulerMarkerType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535055-accessibilitymenubar?language=objc +func (a_ AccessibilityObject) SetAccessibilityMenuBar(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMenuBar:"), value) } -func (a_ AccessibilityObject) HasAccessibilityRulerMarkerType() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRulerMarkerType")) +func (a_ AccessibilityObject) HasAccessibilityMenuBar() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMenuBar")) } -// The type of markers for the ruler. [Full Topic] +// The app’s menu bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535099-accessibilityrulermarkertype?language=objc -func (a_ AccessibilityObject) AccessibilityRulerMarkerType() AccessibilityRulerMarkerType { - rv := objc.Call[AccessibilityRulerMarkerType](a_, objc.Sel("accessibilityRulerMarkerType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535055-accessibilitymenubar?language=objc +func (a_ AccessibilityObject) AccessibilityMenuBar() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMenuBar")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySortDirection() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySortDirection:")) +func (a_ AccessibilityObject) HasSetAccessibilityColumnCount() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnCount:")) } -// The accessibility element’s sort direction. [Full Topic] +// The number of columns in the accessibility element’s grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534962-accessibilitysortdirection?language=objc -func (a_ AccessibilityObject) SetAccessibilitySortDirection(value AccessibilitySortDirection) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySortDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534966-accessibilitycolumncount?language=objc +func (a_ AccessibilityObject) SetAccessibilityColumnCount(value int) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnCount:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySortDirection() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySortDirection")) +func (a_ AccessibilityObject) HasAccessibilityColumnCount() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumnCount")) } -// The accessibility element’s sort direction. [Full Topic] +// The number of columns in the accessibility element’s grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534962-accessibilitysortdirection?language=objc -func (a_ AccessibilityObject) AccessibilitySortDirection() AccessibilitySortDirection { - rv := objc.Call[AccessibilitySortDirection](a_, objc.Sel("accessibilitySortDirection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534966-accessibilitycolumncount?language=objc +func (a_ AccessibilityObject) AccessibilityColumnCount() int { + rv := objc.Call[int](a_, objc.Sel("accessibilityColumnCount")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityWindows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityWindows:")) } -// The accessibility element’s value. [Full Topic] +// An array that contains all the app’s windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535103-accessibilityvalue?language=objc -func (a_ AccessibilityObject) SetAccessibilityValue(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535117-accessibilitywindows?language=objc +func (a_ AccessibilityObject) SetAccessibilityWindows(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityWindows:"), value) } -func (a_ AccessibilityObject) HasAccessibilityValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityValue")) +func (a_ AccessibilityObject) HasAccessibilityWindows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityWindows")) } -// The accessibility element’s value. [Full Topic] +// An array that contains all the app’s windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535103-accessibilityvalue?language=objc -func (a_ AccessibilityObject) AccessibilityValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535117-accessibilitywindows?language=objc +func (a_ AccessibilityObject) AccessibilityWindows() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityWindows")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityDocument() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDocument:")) +func (a_ AccessibilityObject) HasSetAccessibilityURL() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityURL:")) } -// The URL for the file that the accessibility element represents. [Full Topic] +// The URL for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534993-accessibilitydocument?language=objc -func (a_ AccessibilityObject) SetAccessibilityDocument(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDocument:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535157-accessibilityurl?language=objc +func (a_ AccessibilityObject) SetAccessibilityURL(value foundation.URL) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityURL:"), value) } -func (a_ AccessibilityObject) HasAccessibilityDocument() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDocument")) +func (a_ AccessibilityObject) HasAccessibilityURL() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityURL")) } -// The URL for the file that the accessibility element represents. [Full Topic] +// The URL for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534993-accessibilitydocument?language=objc -func (a_ AccessibilityObject) AccessibilityDocument() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityDocument")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535157-accessibilityurl?language=objc +func (a_ AccessibilityObject) AccessibilityURL() foundation.URL { + rv := objc.Call[foundation.URL](a_, objc.Sel("accessibilityURL")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityVerticalUnits() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalUnits:")) +func (a_ AccessibilityObject) HasSetAccessibilityMinimizeButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMinimizeButton:")) } -// The units that the layout area uses for vertical values. [Full Topic] +// The child accessibility element that represents the window’s minimize button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535011-accessibilityverticalunits?language=objc -func (a_ AccessibilityObject) SetAccessibilityVerticalUnits(value AccessibilityUnits) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVerticalUnits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535052-accessibilityminimizebutton?language=objc +func (a_ AccessibilityObject) SetAccessibilityMinimizeButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMinimizeButton:"), value) } -func (a_ AccessibilityObject) HasAccessibilityVerticalUnits() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVerticalUnits")) +func (a_ AccessibilityObject) HasAccessibilityMinimizeButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMinimizeButton")) } -// The units that the layout area uses for vertical values. [Full Topic] +// The child accessibility element that represents the window’s minimize button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535011-accessibilityverticalunits?language=objc -func (a_ AccessibilityObject) AccessibilityVerticalUnits() AccessibilityUnits { - rv := objc.Call[AccessibilityUnits](a_, objc.Sel("accessibilityVerticalUnits")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535052-accessibilityminimizebutton?language=objc +func (a_ AccessibilityObject) AccessibilityMinimizeButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMinimizeButton")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityVisibleCharacterRange() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleCharacterRange:")) +func (a_ AccessibilityObject) HasSetAccessibilityDisclosed() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosed:")) } -// The range of visible characters in the document. [Full Topic] +// A Boolean value that determines whether the row is disclosing other rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535058-accessibilityvisiblecharacterran?language=objc -func (a_ AccessibilityObject) SetAccessibilityVisibleCharacterRange(value foundation.Range) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleCharacterRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535124-accessibilitydisclosed?language=objc +func (a_ AccessibilityObject) SetAccessibilityDisclosed(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosed:"), value) } -func (a_ AccessibilityObject) HasAccessibilityVisibleCharacterRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCharacterRange")) +func (a_ AccessibilityObject) HasIsAccessibilityDisclosed() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityDisclosed")) } -// The range of visible characters in the document. [Full Topic] +// A Boolean value that determines whether the row is disclosing other rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535058-accessibilityvisiblecharacterran?language=objc -func (a_ AccessibilityObject) AccessibilityVisibleCharacterRange() foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityVisibleCharacterRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535124-accessibilitydisclosed?language=objc +func (a_ AccessibilityObject) IsAccessibilityDisclosed() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityDisclosed")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityMainWindow() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMainWindow:")) +func (a_ AccessibilityObject) HasSetAccessibilityMinValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMinValue:")) } -// The app’s main window. [Full Topic] +// The minimum value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535138-accessibilitymainwindow?language=objc -func (a_ AccessibilityObject) SetAccessibilityMainWindow(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMainWindow:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534995-accessibilityminvalue?language=objc +func (a_ AccessibilityObject) SetAccessibilityMinValue(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMinValue:"), value) } -func (a_ AccessibilityObject) HasAccessibilityMainWindow() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMainWindow")) +func (a_ AccessibilityObject) HasAccessibilityMinValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMinValue")) } -// The app’s main window. [Full Topic] +// The minimum value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535138-accessibilitymainwindow?language=objc -func (a_ AccessibilityObject) AccessibilityMainWindow() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMainWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534995-accessibilityminvalue?language=objc +func (a_ AccessibilityObject) AccessibilityMinValue() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMinValue")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityDisclosedByRow() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosedByRow:")) +func (a_ AccessibilityObject) HasSetAccessibilityRows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRows:")) } -// The row disclosing the current row. [Full Topic] +// The row accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535146-accessibilitydisclosedbyrow?language=objc -func (a_ AccessibilityObject) SetAccessibilityDisclosedByRow(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosedByRow:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534945-accessibilityrows?language=objc +func (a_ AccessibilityObject) SetAccessibilityRows(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRows:"), value) } -func (a_ AccessibilityObject) HasAccessibilityDisclosedByRow() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDisclosedByRow")) +func (a_ AccessibilityObject) HasAccessibilityRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRows")) } -// The row disclosing the current row. [Full Topic] +// The row accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535146-accessibilitydisclosedbyrow?language=objc -func (a_ AccessibilityObject) AccessibilityDisclosedByRow() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDisclosedByRow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534945-accessibilityrows?language=objc +func (a_ AccessibilityObject) AccessibilityRows() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityRows")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityClearButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityClearButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityMarkerValues() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerValues:")) } -// The clear button for the search field. [Full Topic] +// The marker values for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534949-accessibilityclearbutton?language=objc -func (a_ AccessibilityObject) SetAccessibilityClearButton(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityClearButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535076-accessibilitymarkervalues?language=objc +func (a_ AccessibilityObject) SetAccessibilityMarkerValues(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerValues:"), value) } -func (a_ AccessibilityObject) HasAccessibilityClearButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityClearButton")) +func (a_ AccessibilityObject) HasAccessibilityMarkerValues() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMarkerValues")) } -// The clear button for the search field. [Full Topic] +// The marker values for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534949-accessibilityclearbutton?language=objc -func (a_ AccessibilityObject) AccessibilityClearButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityClearButton")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535076-accessibilitymarkervalues?language=objc +func (a_ AccessibilityObject) AccessibilityMarkerValues() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMarkerValues")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityNumberOfCharacters() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityNumberOfCharacters:")) +func (a_ AccessibilityObject) HasSetAccessibilityModal() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityModal:")) } -// The number of characters in the text. [Full Topic] +// A Boolean value that determines whether the window is modal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534982-accessibilitynumberofcharacters?language=objc -func (a_ AccessibilityObject) SetAccessibilityNumberOfCharacters(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityNumberOfCharacters:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535140-accessibilitymodal?language=objc +func (a_ AccessibilityObject) SetAccessibilityModal(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityModal:"), value) } -func (a_ AccessibilityObject) HasAccessibilityNumberOfCharacters() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityNumberOfCharacters")) +func (a_ AccessibilityObject) HasIsAccessibilityModal() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityModal")) } -// The number of characters in the text. [Full Topic] +// A Boolean value that determines whether the window is modal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534982-accessibilitynumberofcharacters?language=objc -func (a_ AccessibilityObject) AccessibilityNumberOfCharacters() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityNumberOfCharacters")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535140-accessibilitymodal?language=objc +func (a_ AccessibilityObject) IsAccessibilityModal() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityModal")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityGrowArea() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityGrowArea:")) +func (a_ AccessibilityObject) HasSetAccessibilityVisibleChildren() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleChildren:")) } -// The child accessibility element that represents the window’s grow area. [Full Topic] +// The accessibility element’s visible child accessibility elements. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535074-accessibilitygrowarea?language=objc -func (a_ AccessibilityObject) SetAccessibilityGrowArea(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityGrowArea:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534964-accessibilityvisiblechildren?language=objc +func (a_ AccessibilityObject) SetAccessibilityVisibleChildren(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleChildren:"), value) } -func (a_ AccessibilityObject) HasAccessibilityGrowArea() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityGrowArea")) +func (a_ AccessibilityObject) HasAccessibilityVisibleChildren() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleChildren")) } -// The child accessibility element that represents the window’s grow area. [Full Topic] +// The accessibility element’s visible child accessibility elements. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535074-accessibilitygrowarea?language=objc -func (a_ AccessibilityObject) AccessibilityGrowArea() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityGrowArea")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534964-accessibilityvisiblechildren?language=objc +func (a_ AccessibilityObject) AccessibilityVisibleChildren() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleChildren")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityZoomButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityZoomButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityVisibleCells() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleCells:")) } -// The child accessibility element that represents the window’s zoom button. [Full Topic] +// The visible cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535090-accessibilityzoombutton?language=objc -func (a_ AccessibilityObject) SetAccessibilityZoomButton(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityZoomButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535042-accessibilityvisiblecells?language=objc +func (a_ AccessibilityObject) SetAccessibilityVisibleCells(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleCells:"), value) } -func (a_ AccessibilityObject) HasAccessibilityZoomButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityZoomButton")) +func (a_ AccessibilityObject) HasAccessibilityVisibleCells() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCells")) } -// The child accessibility element that represents the window’s zoom button. [Full Topic] +// The visible cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535090-accessibilityzoombutton?language=objc -func (a_ AccessibilityObject) AccessibilityZoomButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityZoomButton")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535042-accessibilityvisiblecells?language=objc +func (a_ AccessibilityObject) AccessibilityVisibleCells() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleCells")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityParent() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityParent:")) +func (a_ AccessibilityObject) HasSetAccessibilityLabelValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityLabelValue:")) } -// The accessibility element’s parent in the accessibility hierarchy. [Full Topic] +// The value of the label accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535040-accessibilityparent?language=objc -func (a_ AccessibilityObject) SetAccessibilityParent(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityParent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535108-accessibilitylabelvalue?language=objc +func (a_ AccessibilityObject) SetAccessibilityLabelValue(value float32) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLabelValue:"), value) } -func (a_ AccessibilityObject) HasAccessibilityParent() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityParent")) +func (a_ AccessibilityObject) HasAccessibilityLabelValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabelValue")) } -// The accessibility element’s parent in the accessibility hierarchy. [Full Topic] +// The value of the label accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535040-accessibilityparent?language=objc -func (a_ AccessibilityObject) AccessibilityParent() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityParent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535108-accessibilitylabelvalue?language=objc +func (a_ AccessibilityObject) AccessibilityLabelValue() float32 { + rv := objc.Call[float32](a_, objc.Sel("accessibilityLabelValue")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySearchButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySearchButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityExpanded() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityExpanded:")) } -// The search button for the search field. [Full Topic] +// A Boolean value that determines whether the accessibility element is in an expanded state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535105-accessibilitysearchbutton?language=objc -func (a_ AccessibilityObject) SetAccessibilitySearchButton(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySearchButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535045-accessibilityexpanded?language=objc +func (a_ AccessibilityObject) SetAccessibilityExpanded(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityExpanded:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySearchButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySearchButton")) +func (a_ AccessibilityObject) HasIsAccessibilityExpanded() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityExpanded")) } -// The search button for the search field. [Full Topic] +// A Boolean value that determines whether the accessibility element is in an expanded state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535105-accessibilitysearchbutton?language=objc -func (a_ AccessibilityObject) AccessibilitySearchButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilitySearchButton")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535045-accessibilityexpanded?language=objc +func (a_ AccessibilityObject) IsAccessibilityExpanded() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityExpanded")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySelectedTextRanges() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedTextRanges:")) +func (a_ AccessibilityObject) HasSetAccessibilityRulerMarkerType() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRulerMarkerType:")) } -// An array of ranges for the currently selected text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535133-accessibilityselectedtextranges?language=objc -func (a_ AccessibilityObject) SetAccessibilitySelectedTextRanges(value []foundation.Value) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedTextRanges:"), value) +// The type of markers for the ruler. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535099-accessibilityrulermarkertype?language=objc +func (a_ AccessibilityObject) SetAccessibilityRulerMarkerType(value AccessibilityRulerMarkerType) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRulerMarkerType:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySelectedTextRanges() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedTextRanges")) +func (a_ AccessibilityObject) HasAccessibilityRulerMarkerType() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRulerMarkerType")) } -// An array of ranges for the currently selected text. [Full Topic] +// The type of markers for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535133-accessibilityselectedtextranges?language=objc -func (a_ AccessibilityObject) AccessibilitySelectedTextRanges() []foundation.Value { - rv := objc.Call[[]foundation.Value](a_, objc.Sel("accessibilitySelectedTextRanges")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535099-accessibilityrulermarkertype?language=objc +func (a_ AccessibilityObject) AccessibilityRulerMarkerType() AccessibilityRulerMarkerType { + rv := objc.Call[AccessibilityRulerMarkerType](a_, objc.Sel("accessibilityRulerMarkerType")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityValueDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityValueDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityProtectedContent() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityProtectedContent:")) } -// A human-readable description of the accessibility element’s value. [Full Topic] +// A Boolean value that determines whether the accessibility element contains protected content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535113-accessibilityvaluedescription?language=objc -func (a_ AccessibilityObject) SetAccessibilityValueDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityValueDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535083-accessibilityprotectedcontent?language=objc +func (a_ AccessibilityObject) SetAccessibilityProtectedContent(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityProtectedContent:"), value) } -func (a_ AccessibilityObject) HasAccessibilityValueDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityValueDescription")) +func (a_ AccessibilityObject) HasIsAccessibilityProtectedContent() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityProtectedContent")) } -// A human-readable description of the accessibility element’s value. [Full Topic] +// A Boolean value that determines whether the accessibility element contains protected content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535113-accessibilityvaluedescription?language=objc -func (a_ AccessibilityObject) AccessibilityValueDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityValueDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535083-accessibilityprotectedcontent?language=objc +func (a_ AccessibilityObject) IsAccessibilityProtectedContent() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityProtectedContent")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySplitters() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySplitters:")) +func (a_ AccessibilityObject) HasSetAccessibilityValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityValue:")) } -// An array that contains the views and splitter bar from the split view. [Full Topic] +// The accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535088-accessibilitysplitters?language=objc -func (a_ AccessibilityObject) SetAccessibilitySplitters(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySplitters:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535103-accessibilityvalue?language=objc +func (a_ AccessibilityObject) SetAccessibilityValue(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityValue:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySplitters() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySplitters")) +func (a_ AccessibilityObject) HasAccessibilityValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityValue")) } -// An array that contains the views and splitter bar from the split view. [Full Topic] +// The accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535088-accessibilitysplitters?language=objc -func (a_ AccessibilityObject) AccessibilitySplitters() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySplitters")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535103-accessibilityvalue?language=objc +func (a_ AccessibilityObject) AccessibilityValue() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityValue")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityServesAsTitleForUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityServesAsTitleForUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityEdited() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityEdited:")) } -// The list of elements that the accessibility element is a title for. [Full Topic] +// A Boolean value that indicates whether the accessibility element is in an edited state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535122-accessibilityservesastitleforuie?language=objc -func (a_ AccessibilityObject) SetAccessibilityServesAsTitleForUIElements(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityServesAsTitleForUIElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535077-accessibilityedited?language=objc +func (a_ AccessibilityObject) SetAccessibilityEdited(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityEdited:"), value) } -func (a_ AccessibilityObject) HasAccessibilityServesAsTitleForUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityServesAsTitleForUIElements")) +func (a_ AccessibilityObject) HasIsAccessibilityEdited() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityEdited")) } -// The list of elements that the accessibility element is a title for. [Full Topic] +// A Boolean value that indicates whether the accessibility element is in an edited state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535122-accessibilityservesastitleforuie?language=objc -func (a_ AccessibilityObject) AccessibilityServesAsTitleForUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityServesAsTitleForUIElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535077-accessibilityedited?language=objc +func (a_ AccessibilityObject) IsAccessibilityEdited() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityEdited")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySharedCharacterRange() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedCharacterRange:")) +func (a_ AccessibilityObject) HasSetAccessibilityHelp() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHelp:")) } -// The range of characters that the accessibility element displays. [Full Topic] +// The help text for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535069-accessibilitysharedcharacterrang?language=objc -func (a_ AccessibilityObject) SetAccessibilitySharedCharacterRange(value foundation.Range) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySharedCharacterRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534974-accessibilityhelp?language=objc +func (a_ AccessibilityObject) SetAccessibilityHelp(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHelp:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySharedCharacterRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySharedCharacterRange")) +func (a_ AccessibilityObject) HasAccessibilityHelp() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHelp")) } -// The range of characters that the accessibility element displays. [Full Topic] +// The help text for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535069-accessibilitysharedcharacterrang?language=objc -func (a_ AccessibilityObject) AccessibilitySharedCharacterRange() foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilitySharedCharacterRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534974-accessibilityhelp?language=objc +func (a_ AccessibilityObject) AccessibilityHelp() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityHelp")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityOverflowButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityOverflowButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityRowCount() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRowCount:")) } -// The overflow button for the toolbar. [Full Topic] +// The number of rows in the accessibility element’s grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534943-accessibilityoverflowbutton?language=objc -func (a_ AccessibilityObject) SetAccessibilityOverflowButton(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityOverflowButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535013-accessibilityrowcount?language=objc +func (a_ AccessibilityObject) SetAccessibilityRowCount(value int) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRowCount:"), value) } -func (a_ AccessibilityObject) HasAccessibilityOverflowButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityOverflowButton")) +func (a_ AccessibilityObject) HasAccessibilityRowCount() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRowCount")) } -// The overflow button for the toolbar. [Full Topic] +// The number of rows in the accessibility element’s grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534943-accessibilityoverflowbutton?language=objc -func (a_ AccessibilityObject) AccessibilityOverflowButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityOverflowButton")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535013-accessibilityrowcount?language=objc +func (a_ AccessibilityObject) AccessibilityRowCount() int { + rv := objc.Call[int](a_, objc.Sel("accessibilityRowCount")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityElement() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityElement:")) +func (a_ AccessibilityObject) HasSetAccessibilityColumnIndexRange() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnIndexRange:")) } -// A Boolean value that determines whether the accessibility element participates in the accessibility hierarchy. [Full Topic] +// The column index range of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535002-accessibilityelement?language=objc -func (a_ AccessibilityObject) SetAccessibilityElement(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityElement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534979-accessibilitycolumnindexrange?language=objc +func (a_ AccessibilityObject) SetAccessibilityColumnIndexRange(value foundation.Range) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnIndexRange:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityElement() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityElement")) +func (a_ AccessibilityObject) HasAccessibilityColumnIndexRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumnIndexRange")) } -// A Boolean value that determines whether the accessibility element participates in the accessibility hierarchy. [Full Topic] +// The column index range of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535002-accessibilityelement?language=objc -func (a_ AccessibilityObject) IsAccessibilityElement() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityElement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534979-accessibilitycolumnindexrange?language=objc +func (a_ AccessibilityObject) AccessibilityColumnIndexRange() foundation.Range { + rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityColumnIndexRange")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityMinimized() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMinimized:")) +func (a_ AccessibilityObject) HasSetAccessibilitySortDirection() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySortDirection:")) } -// A Boolean value that determines whether this window is in a minimized state. [Full Topic] +// The accessibility element’s sort direction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535028-accessibilityminimized?language=objc -func (a_ AccessibilityObject) SetAccessibilityMinimized(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMinimized:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534962-accessibilitysortdirection?language=objc +func (a_ AccessibilityObject) SetAccessibilitySortDirection(value AccessibilitySortDirection) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySortDirection:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityMinimized() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityMinimized")) +func (a_ AccessibilityObject) HasAccessibilitySortDirection() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySortDirection")) } -// A Boolean value that determines whether this window is in a minimized state. [Full Topic] +// The accessibility element’s sort direction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535028-accessibilityminimized?language=objc -func (a_ AccessibilityObject) IsAccessibilityMinimized() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityMinimized")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534962-accessibilitysortdirection?language=objc +func (a_ AccessibilityObject) AccessibilitySortDirection() AccessibilitySortDirection { + rv := objc.Call[AccessibilitySortDirection](a_, objc.Sel("accessibilitySortDirection")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityOrderedByRow() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityOrderedByRow:")) +func (a_ AccessibilityObject) HasSetAccessibilityValueDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityValueDescription:")) } -// A Boolean value that determines whether the accessibility element’s grid is in row major order or in column major order. [Full Topic] +// A human-readable description of the accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535061-accessibilityorderedbyrow?language=objc -func (a_ AccessibilityObject) SetAccessibilityOrderedByRow(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityOrderedByRow:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535113-accessibilityvaluedescription?language=objc +func (a_ AccessibilityObject) SetAccessibilityValueDescription(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityValueDescription:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityOrderedByRow() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityOrderedByRow")) +func (a_ AccessibilityObject) HasAccessibilityValueDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityValueDescription")) } -// A Boolean value that determines whether the accessibility element’s grid is in row major order or in column major order. [Full Topic] +// A human-readable description of the accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535061-accessibilityorderedbyrow?language=objc -func (a_ AccessibilityObject) IsAccessibilityOrderedByRow() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityOrderedByRow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535113-accessibilityvaluedescription?language=objc +func (a_ AccessibilityObject) AccessibilityValueDescription() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityValueDescription")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityRows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRows:")) +func (a_ AccessibilityObject) HasSetAccessibilityLinkedUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityLinkedUIElements:")) } -// The row accessibility elements for the table or outline. [Full Topic] +// The elements that have links with the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534945-accessibilityrows?language=objc -func (a_ AccessibilityObject) SetAccessibilityRows(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534972-accessibilitylinkeduielements?language=objc +func (a_ AccessibilityObject) SetAccessibilityLinkedUIElements(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLinkedUIElements:"), value) } -func (a_ AccessibilityObject) HasAccessibilityRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRows")) +func (a_ AccessibilityObject) HasAccessibilityLinkedUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLinkedUIElements")) } -// The row accessibility elements for the table or outline. [Full Topic] +// The elements that have links with the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534945-accessibilityrows?language=objc -func (a_ AccessibilityObject) AccessibilityRows() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityRows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534972-accessibilitylinkeduielements?language=objc +func (a_ AccessibilityObject) AccessibilityLinkedUIElements() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityLinkedUIElements")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityTopLevelUIElement() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityTopLevelUIElement:")) +func (a_ AccessibilityObject) HasSetAccessibilityExtrasMenuBar() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityExtrasMenuBar:")) } -// The top-level element that contains the accessibility element. [Full Topic] +// The icon for the app’s menu bar extra. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535092-accessibilitytopleveluielement?language=objc -func (a_ AccessibilityObject) SetAccessibilityTopLevelUIElement(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTopLevelUIElement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534996-accessibilityextrasmenubar?language=objc +func (a_ AccessibilityObject) SetAccessibilityExtrasMenuBar(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityExtrasMenuBar:"), value) } -func (a_ AccessibilityObject) HasAccessibilityTopLevelUIElement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityTopLevelUIElement")) +func (a_ AccessibilityObject) HasAccessibilityExtrasMenuBar() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityExtrasMenuBar")) } -// The top-level element that contains the accessibility element. [Full Topic] +// The icon for the app’s menu bar extra. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535092-accessibilitytopleveluielement?language=objc -func (a_ AccessibilityObject) AccessibilityTopLevelUIElement() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityTopLevelUIElement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534996-accessibilityextrasmenubar?language=objc +func (a_ AccessibilityObject) AccessibilityExtrasMenuBar() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityExtrasMenuBar")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityColumnHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnHeaderUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityWindow() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityWindow:")) } -// The column header accessibility elements for the table or outline. [Full Topic] +// The window that contains the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534988-accessibilitycolumnheaderuieleme?language=objc -func (a_ AccessibilityObject) SetAccessibilityColumnHeaderUIElements(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnHeaderUIElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535030-accessibilitywindow?language=objc +func (a_ AccessibilityObject) SetAccessibilityWindow(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityWindow:"), value) } -func (a_ AccessibilityObject) HasAccessibilityColumnHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumnHeaderUIElements")) +func (a_ AccessibilityObject) HasAccessibilityWindow() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityWindow")) } -// The column header accessibility elements for the table or outline. [Full Topic] +// The window that contains the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534988-accessibilitycolumnheaderuieleme?language=objc -func (a_ AccessibilityObject) AccessibilityColumnHeaderUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumnHeaderUIElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535030-accessibilitywindow?language=objc +func (a_ AccessibilityObject) AccessibilityWindow() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityWindow")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityRowHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRowHeaderUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityDisclosedByRow() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosedByRow:")) } -// The row header accessibility elements for the table or outline. [Full Topic] +// The row disclosing the current row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535014-accessibilityrowheaderuielements?language=objc -func (a_ AccessibilityObject) SetAccessibilityRowHeaderUIElements(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRowHeaderUIElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535146-accessibilitydisclosedbyrow?language=objc +func (a_ AccessibilityObject) SetAccessibilityDisclosedByRow(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosedByRow:"), value) } -func (a_ AccessibilityObject) HasAccessibilityRowHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRowHeaderUIElements")) +func (a_ AccessibilityObject) HasAccessibilityDisclosedByRow() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDisclosedByRow")) } -// The row header accessibility elements for the table or outline. [Full Topic] +// The row disclosing the current row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535014-accessibilityrowheaderuielements?language=objc -func (a_ AccessibilityObject) AccessibilityRowHeaderUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityRowHeaderUIElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535146-accessibilitydisclosedbyrow?language=objc +func (a_ AccessibilityObject) AccessibilityDisclosedByRow() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDisclosedByRow")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySelectedRows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedRows:")) +func (a_ AccessibilityObject) HasSetAccessibilityHorizontalUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalUnitDescription:")) } -// The currently selected rows for the table or outline. [Full Topic] +// A description of the layout area’s horizontal units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535125-accessibilityselectedrows?language=objc -func (a_ AccessibilityObject) SetAccessibilitySelectedRows(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedRows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535095-accessibilityhorizontalunitdescr?language=objc +func (a_ AccessibilityObject) SetAccessibilityHorizontalUnitDescription(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHorizontalUnitDescription:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySelectedRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedRows")) +func (a_ AccessibilityObject) HasAccessibilityHorizontalUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalUnitDescription")) } -// The currently selected rows for the table or outline. [Full Topic] +// A description of the layout area’s horizontal units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535125-accessibilityselectedrows?language=objc -func (a_ AccessibilityObject) AccessibilitySelectedRows() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedRows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535095-accessibilityhorizontalunitdescr?language=objc +func (a_ AccessibilityObject) AccessibilityHorizontalUnitDescription() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityHorizontalUnitDescription")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityVisibleRows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleRows:")) +func (a_ AccessibilityObject) HasSetAccessibilityZoomButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityZoomButton:")) } -// The visible rows for the table or outline. [Full Topic] +// The child accessibility element that represents the window’s zoom button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535004-accessibilityvisiblerows?language=objc -func (a_ AccessibilityObject) SetAccessibilityVisibleRows(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleRows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535090-accessibilityzoombutton?language=objc +func (a_ AccessibilityObject) SetAccessibilityZoomButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityZoomButton:"), value) } -func (a_ AccessibilityObject) HasAccessibilityVisibleRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleRows")) +func (a_ AccessibilityObject) HasAccessibilityZoomButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityZoomButton")) } -// The visible rows for the table or outline. [Full Topic] +// The child accessibility element that represents the window’s zoom button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535004-accessibilityvisiblerows?language=objc -func (a_ AccessibilityObject) AccessibilityVisibleRows() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleRows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535090-accessibilityzoombutton?language=objc +func (a_ AccessibilityObject) AccessibilityZoomButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityZoomButton")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySelectedText() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedText:")) +func (a_ AccessibilityObject) HasSetAccessibilityColumnTitles() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnTitles:")) } -// The currently selected text. [Full Topic] +// The column titles for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535038-accessibilityselectedtext?language=objc -func (a_ AccessibilityObject) SetAccessibilitySelectedText(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedText:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535148-accessibilitycolumntitles?language=objc +func (a_ AccessibilityObject) SetAccessibilityColumnTitles(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnTitles:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySelectedText() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedText")) +func (a_ AccessibilityObject) HasAccessibilityColumnTitles() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumnTitles")) } -// The currently selected text. [Full Topic] +// The column titles for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535038-accessibilityselectedtext?language=objc -func (a_ AccessibilityObject) AccessibilitySelectedText() string { - rv := objc.Call[string](a_, objc.Sel("accessibilitySelectedText")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535148-accessibilitycolumntitles?language=objc +func (a_ AccessibilityObject) AccessibilityColumnTitles() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumnTitles")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityOrientation() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityOrientation:")) +func (a_ AccessibilityObject) HasSetAccessibilityVerticalScrollBar() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalScrollBar:")) } -// The orientation of the accessibility element. [Full Topic] +// The vertical scroll bar for the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535106-accessibilityorientation?language=objc -func (a_ AccessibilityObject) SetAccessibilityOrientation(value AccessibilityOrientation) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityOrientation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535053-accessibilityverticalscrollbar?language=objc +func (a_ AccessibilityObject) SetAccessibilityVerticalScrollBar(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVerticalScrollBar:"), value) } -func (a_ AccessibilityObject) HasAccessibilityOrientation() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityOrientation")) +func (a_ AccessibilityObject) HasAccessibilityVerticalScrollBar() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVerticalScrollBar")) } -// The orientation of the accessibility element. [Full Topic] +// The vertical scroll bar for the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535106-accessibilityorientation?language=objc -func (a_ AccessibilityObject) AccessibilityOrientation() AccessibilityOrientation { - rv := objc.Call[AccessibilityOrientation](a_, objc.Sel("accessibilityOrientation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535053-accessibilityverticalscrollbar?language=objc +func (a_ AccessibilityObject) AccessibilityVerticalScrollBar() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityVerticalScrollBar")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySharedTextUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedTextUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityIncrementButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityIncrementButton:")) } -// Other elements that share text with the accessibility element. [Full Topic] +// The increment button for the stepper accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534991-accessibilitysharedtextuielement?language=objc -func (a_ AccessibilityObject) SetAccessibilitySharedTextUIElements(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySharedTextUIElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535007-accessibilityincrementbutton?language=objc +func (a_ AccessibilityObject) SetAccessibilityIncrementButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityIncrementButton:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySharedTextUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySharedTextUIElements")) +func (a_ AccessibilityObject) HasAccessibilityIncrementButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityIncrementButton")) } -// Other elements that share text with the accessibility element. [Full Topic] +// The increment button for the stepper accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534991-accessibilitysharedtextuielement?language=objc -func (a_ AccessibilityObject) AccessibilitySharedTextUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySharedTextUIElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535007-accessibilityincrementbutton?language=objc +func (a_ AccessibilityObject) AccessibilityIncrementButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityIncrementButton")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityFilename() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityFilename:")) +func (a_ AccessibilityObject) HasSetAccessibilityGrowArea() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityGrowArea:")) } -// The filename for the file that the accessibility element represents. [Full Topic] +// The child accessibility element that represents the window’s grow area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535068-accessibilityfilename?language=objc -func (a_ AccessibilityObject) SetAccessibilityFilename(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFilename:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535074-accessibilitygrowarea?language=objc +func (a_ AccessibilityObject) SetAccessibilityGrowArea(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityGrowArea:"), value) } -func (a_ AccessibilityObject) HasAccessibilityFilename() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityFilename")) +func (a_ AccessibilityObject) HasAccessibilityGrowArea() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityGrowArea")) } -// The filename for the file that the accessibility element represents. [Full Topic] +// The child accessibility element that represents the window’s grow area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535068-accessibilityfilename?language=objc -func (a_ AccessibilityObject) AccessibilityFilename() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityFilename")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535074-accessibilitygrowarea?language=objc +func (a_ AccessibilityObject) AccessibilityGrowArea() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityGrowArea")) return rv } @@ -3666,233 +3643,233 @@ func (a_ AccessibilityObject) AccessibilityNextContents() []objc.Object { return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySharedFocusElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedFocusElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityHorizontalScrollBar() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalScrollBar:")) } -// An array of elements that shares the keyboard focus with the accessibility element. [Full Topic] +// The horizontal scroll bar for the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534990-accessibilitysharedfocuselements?language=objc -func (a_ AccessibilityObject) SetAccessibilitySharedFocusElements(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySharedFocusElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534942-accessibilityhorizontalscrollbar?language=objc +func (a_ AccessibilityObject) SetAccessibilityHorizontalScrollBar(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHorizontalScrollBar:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySharedFocusElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySharedFocusElements")) +func (a_ AccessibilityObject) HasAccessibilityHorizontalScrollBar() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalScrollBar")) } -// An array of elements that shares the keyboard focus with the accessibility element. [Full Topic] +// The horizontal scroll bar for the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534990-accessibilitysharedfocuselements?language=objc -func (a_ AccessibilityObject) AccessibilitySharedFocusElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySharedFocusElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534942-accessibilityhorizontalscrollbar?language=objc +func (a_ AccessibilityObject) AccessibilityHorizontalScrollBar() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityHorizontalScrollBar")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityColumns() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityColumns:")) +func (a_ AccessibilityObject) HasSetAccessibilityUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityUnitDescription:")) } -// The column accessibility elements for the table or outline. [Full Topic] +// A human-readable description of the ruler’s units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535115-accessibilitycolumns?language=objc -func (a_ AccessibilityObject) SetAccessibilityColumns(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumns:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535094-accessibilityunitdescription?language=objc +func (a_ AccessibilityObject) SetAccessibilityUnitDescription(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityUnitDescription:"), value) } -func (a_ AccessibilityObject) HasAccessibilityColumns() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumns")) +func (a_ AccessibilityObject) HasAccessibilityUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityUnitDescription")) } -// The column accessibility elements for the table or outline. [Full Topic] +// A human-readable description of the ruler’s units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535115-accessibilitycolumns?language=objc -func (a_ AccessibilityObject) AccessibilityColumns() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535094-accessibilityunitdescription?language=objc +func (a_ AccessibilityObject) AccessibilityUnitDescription() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityUnitDescription")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityMinimizeButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMinimizeButton:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedColumns() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedColumns:")) } -// The child accessibility element that represents the window’s minimize button. [Full Topic] +// The currently selected columns for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535052-accessibilityminimizebutton?language=objc -func (a_ AccessibilityObject) SetAccessibilityMinimizeButton(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMinimizeButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534978-accessibilityselectedcolumns?language=objc +func (a_ AccessibilityObject) SetAccessibilitySelectedColumns(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedColumns:"), value) } - -func (a_ AccessibilityObject) HasAccessibilityMinimizeButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMinimizeButton")) + +func (a_ AccessibilityObject) HasAccessibilitySelectedColumns() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedColumns")) } -// The child accessibility element that represents the window’s minimize button. [Full Topic] +// The currently selected columns for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535052-accessibilityminimizebutton?language=objc -func (a_ AccessibilityObject) AccessibilityMinimizeButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMinimizeButton")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534978-accessibilityselectedcolumns?language=objc +func (a_ AccessibilityObject) AccessibilitySelectedColumns() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedColumns")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityColumnTitles() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnTitles:")) +func (a_ AccessibilityObject) HasSetAccessibilityPreviousContents() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityPreviousContents:")) } -// The column titles for the accessibility element. [Full Topic] +// The contents that precede the divider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535148-accessibilitycolumntitles?language=objc -func (a_ AccessibilityObject) SetAccessibilityColumnTitles(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnTitles:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534950-accessibilitypreviouscontents?language=objc +func (a_ AccessibilityObject) SetAccessibilityPreviousContents(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityPreviousContents:"), value) } -func (a_ AccessibilityObject) HasAccessibilityColumnTitles() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumnTitles")) +func (a_ AccessibilityObject) HasAccessibilityPreviousContents() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPreviousContents")) } -// The column titles for the accessibility element. [Full Topic] +// The contents that precede the divider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535148-accessibilitycolumntitles?language=objc -func (a_ AccessibilityObject) AccessibilityColumnTitles() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumnTitles")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534950-accessibilitypreviouscontents?language=objc +func (a_ AccessibilityObject) AccessibilityPreviousContents() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityPreviousContents")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityHelp() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHelp:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedText() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedText:")) } -// The help text for the accessibility element. [Full Topic] +// The currently selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534974-accessibilityhelp?language=objc -func (a_ AccessibilityObject) SetAccessibilityHelp(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHelp:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535038-accessibilityselectedtext?language=objc +func (a_ AccessibilityObject) SetAccessibilitySelectedText(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedText:"), value) } -func (a_ AccessibilityObject) HasAccessibilityHelp() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHelp")) +func (a_ AccessibilityObject) HasAccessibilitySelectedText() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedText")) } -// The help text for the accessibility element. [Full Topic] +// The currently selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534974-accessibilityhelp?language=objc -func (a_ AccessibilityObject) AccessibilityHelp() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityHelp")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535038-accessibilityselectedtext?language=objc +func (a_ AccessibilityObject) AccessibilitySelectedText() string { + rv := objc.Call[string](a_, objc.Sel("accessibilitySelectedText")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityLabelUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityLabelUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityHorizontalUnits() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalUnits:")) } -// The child label elements for the slider accessibility element. [Full Topic] +// The units that the layout area uses for horizontal values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534954-accessibilitylabeluielements?language=objc -func (a_ AccessibilityObject) SetAccessibilityLabelUIElements(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLabelUIElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535154-accessibilityhorizontalunits?language=objc +func (a_ AccessibilityObject) SetAccessibilityHorizontalUnits(value AccessibilityUnits) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHorizontalUnits:"), value) } -func (a_ AccessibilityObject) HasAccessibilityLabelUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabelUIElements")) +func (a_ AccessibilityObject) HasAccessibilityHorizontalUnits() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalUnits")) } -// The child label elements for the slider accessibility element. [Full Topic] +// The units that the layout area uses for horizontal values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534954-accessibilitylabeluielements?language=objc -func (a_ AccessibilityObject) AccessibilityLabelUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityLabelUIElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535154-accessibilityhorizontalunits?language=objc +func (a_ AccessibilityObject) AccessibilityHorizontalUnits() AccessibilityUnits { + rv := objc.Call[AccessibilityUnits](a_, objc.Sel("accessibilityHorizontalUnits")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityProtectedContent() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityProtectedContent:")) +func (a_ AccessibilityObject) HasSetAccessibilityEnabled() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityEnabled:")) } -// A Boolean value that determines whether the accessibility element contains protected content. [Full Topic] +// A Boolean value that determines whether the accessibility element responds to user events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535083-accessibilityprotectedcontent?language=objc -func (a_ AccessibilityObject) SetAccessibilityProtectedContent(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityProtectedContent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535024-accessibilityenabled?language=objc +func (a_ AccessibilityObject) SetAccessibilityEnabled(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityEnabled:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityProtectedContent() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityProtectedContent")) +func (a_ AccessibilityObject) HasIsAccessibilityEnabled() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityEnabled")) } -// A Boolean value that determines whether the accessibility element contains protected content. [Full Topic] +// A Boolean value that determines whether the accessibility element responds to user events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535083-accessibilityprotectedcontent?language=objc -func (a_ AccessibilityObject) IsAccessibilityProtectedContent() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityProtectedContent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535024-accessibilityenabled?language=objc +func (a_ AccessibilityObject) IsAccessibilityEnabled() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityEnabled")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityModal() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityModal:")) +func (a_ AccessibilityObject) HasSetAccessibilityTabs() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityTabs:")) } -// A Boolean value that determines whether the window is modal. [Full Topic] +// The tab accessibility elements for the tab view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535140-accessibilitymodal?language=objc -func (a_ AccessibilityObject) SetAccessibilityModal(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityModal:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535044-accessibilitytabs?language=objc +func (a_ AccessibilityObject) SetAccessibilityTabs(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTabs:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilityModal() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityModal")) +func (a_ AccessibilityObject) HasAccessibilityTabs() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityTabs")) } -// A Boolean value that determines whether the window is modal. [Full Topic] +// The tab accessibility elements for the tab view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535140-accessibilitymodal?language=objc -func (a_ AccessibilityObject) IsAccessibilityModal() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityModal")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535044-accessibilitytabs?language=objc +func (a_ AccessibilityObject) AccessibilityTabs() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityTabs")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityToolbarButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityToolbarButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityInsertionPointLineNumber() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityInsertionPointLineNumber:")) } -// The child accessibility element that represents the window’s toolbar button. [Full Topic] +// The line number that contains the insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535075-accessibilitytoolbarbutton?language=objc -func (a_ AccessibilityObject) SetAccessibilityToolbarButton(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityToolbarButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535050-accessibilityinsertionpointlinen?language=objc +func (a_ AccessibilityObject) SetAccessibilityInsertionPointLineNumber(value int) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityInsertionPointLineNumber:"), value) } -func (a_ AccessibilityObject) HasAccessibilityToolbarButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityToolbarButton")) +func (a_ AccessibilityObject) HasAccessibilityInsertionPointLineNumber() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityInsertionPointLineNumber")) } -// The child accessibility element that represents the window’s toolbar button. [Full Topic] +// The line number that contains the insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535075-accessibilitytoolbarbutton?language=objc -func (a_ AccessibilityObject) AccessibilityToolbarButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityToolbarButton")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535050-accessibilityinsertionpointlinen?language=objc +func (a_ AccessibilityObject) AccessibilityInsertionPointLineNumber() int { + rv := objc.Call[int](a_, objc.Sel("accessibilityInsertionPointLineNumber")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityShownMenu() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityShownMenu:")) +func (a_ AccessibilityObject) HasSetAccessibilityProxy() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityProxy:")) } -// The menu currently displaying for the accessibility element. [Full Topic] +// The child accessibility element that represents the window’s proxy icon. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534983-accessibilityshownmenu?language=objc -func (a_ AccessibilityObject) SetAccessibilityShownMenu(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityShownMenu:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535143-accessibilityproxy?language=objc +func (a_ AccessibilityObject) SetAccessibilityProxy(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityProxy:"), value) } -func (a_ AccessibilityObject) HasAccessibilityShownMenu() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityShownMenu")) +func (a_ AccessibilityObject) HasAccessibilityProxy() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityProxy")) } -// The menu currently displaying for the accessibility element. [Full Topic] +// The child accessibility element that represents the window’s proxy icon. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534983-accessibilityshownmenu?language=objc -func (a_ AccessibilityObject) AccessibilityShownMenu() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityShownMenu")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535143-accessibilityproxy?language=objc +func (a_ AccessibilityObject) AccessibilityProxy() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityProxy")) return rv } @@ -3919,95 +3896,141 @@ func (a_ AccessibilityObject) AccessibilitySearchMenu() objc.Object { return rv } -func (a_ AccessibilityObject) HasSetAccessibilityMarkerValues() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerValues:")) +func (a_ AccessibilityObject) HasSetAccessibilityFilename() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityFilename:")) } -// The marker values for the ruler. [Full Topic] +// The filename for the file that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535076-accessibilitymarkervalues?language=objc -func (a_ AccessibilityObject) SetAccessibilityMarkerValues(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerValues:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535068-accessibilityfilename?language=objc +func (a_ AccessibilityObject) SetAccessibilityFilename(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFilename:"), value) } -func (a_ AccessibilityObject) HasAccessibilityMarkerValues() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMarkerValues")) +func (a_ AccessibilityObject) HasAccessibilityFilename() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityFilename")) } -// The marker values for the ruler. [Full Topic] +// The filename for the file that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535076-accessibilitymarkervalues?language=objc -func (a_ AccessibilityObject) AccessibilityMarkerValues() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMarkerValues")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535068-accessibilityfilename?language=objc +func (a_ AccessibilityObject) AccessibilityFilename() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityFilename")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityProxy() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityProxy:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedChildren() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedChildren:")) } -// The child accessibility element that represents the window’s proxy icon. [Full Topic] +// The accessibility element’s currently selected children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535143-accessibilityproxy?language=objc -func (a_ AccessibilityObject) SetAccessibilityProxy(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityProxy:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534970-accessibilityselectedchildren?language=objc +func (a_ AccessibilityObject) SetAccessibilitySelectedChildren(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedChildren:"), value) +} + +func (a_ AccessibilityObject) HasAccessibilitySelectedChildren() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedChildren")) +} + +// The accessibility element’s currently selected children. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534970-accessibilityselectedchildren?language=objc +func (a_ AccessibilityObject) AccessibilitySelectedChildren() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedChildren")) + return rv +} + +func (a_ AccessibilityObject) HasSetAccessibilityApplicationFocusedUIElement() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityApplicationFocusedUIElement:")) +} + +// The child accessibility element with the current focus. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535139-accessibilityapplicationfocusedu?language=objc +func (a_ AccessibilityObject) SetAccessibilityApplicationFocusedUIElement(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityApplicationFocusedUIElement:"), value) +} + +func (a_ AccessibilityObject) HasAccessibilityApplicationFocusedUIElement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityApplicationFocusedUIElement")) +} + +// The child accessibility element with the current focus. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535139-accessibilityapplicationfocusedu?language=objc +func (a_ AccessibilityObject) AccessibilityApplicationFocusedUIElement() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityApplicationFocusedUIElement")) + return rv +} + +func (a_ AccessibilityObject) HasSetAccessibilityMinimized() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMinimized:")) +} + +// A Boolean value that determines whether this window is in a minimized state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535028-accessibilityminimized?language=objc +func (a_ AccessibilityObject) SetAccessibilityMinimized(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMinimized:"), value) } -func (a_ AccessibilityObject) HasAccessibilityProxy() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityProxy")) +func (a_ AccessibilityObject) HasIsAccessibilityMinimized() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityMinimized")) } -// The child accessibility element that represents the window’s proxy icon. [Full Topic] +// A Boolean value that determines whether this window is in a minimized state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535143-accessibilityproxy?language=objc -func (a_ AccessibilityObject) AccessibilityProxy() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityProxy")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535028-accessibilityminimized?language=objc +func (a_ AccessibilityObject) IsAccessibilityMinimized() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityMinimized")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityVisibleColumns() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleColumns:")) +func (a_ AccessibilityObject) HasSetAccessibilityElement() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityElement:")) } -// The visible columns for the table or outline. [Full Topic] +// A Boolean value that determines whether the accessibility element participates in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535150-accessibilityvisiblecolumns?language=objc -func (a_ AccessibilityObject) SetAccessibilityVisibleColumns(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleColumns:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535002-accessibilityelement?language=objc +func (a_ AccessibilityObject) SetAccessibilityElement(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityElement:"), value) } -func (a_ AccessibilityObject) HasAccessibilityVisibleColumns() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleColumns")) +func (a_ AccessibilityObject) HasIsAccessibilityElement() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityElement")) } -// The visible columns for the table or outline. [Full Topic] +// A Boolean value that determines whether the accessibility element participates in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535150-accessibilityvisiblecolumns?language=objc -func (a_ AccessibilityObject) AccessibilityVisibleColumns() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535002-accessibilityelement?language=objc +func (a_ AccessibilityObject) IsAccessibilityElement() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityElement")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityInsertionPointLineNumber() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityInsertionPointLineNumber:")) +func (a_ AccessibilityObject) HasSetAccessibilityDisclosedRows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosedRows:")) } -// The line number that contains the insertion point. [Full Topic] +// The rows that the current row discloses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535050-accessibilityinsertionpointlinen?language=objc -func (a_ AccessibilityObject) SetAccessibilityInsertionPointLineNumber(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityInsertionPointLineNumber:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535008-accessibilitydisclosedrows?language=objc +func (a_ AccessibilityObject) SetAccessibilityDisclosedRows(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosedRows:"), value) } -func (a_ AccessibilityObject) HasAccessibilityInsertionPointLineNumber() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityInsertionPointLineNumber")) +func (a_ AccessibilityObject) HasAccessibilityDisclosedRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDisclosedRows")) } -// The line number that contains the insertion point. [Full Topic] +// The rows that the current row discloses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535050-accessibilityinsertionpointlinen?language=objc -func (a_ AccessibilityObject) AccessibilityInsertionPointLineNumber() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityInsertionPointLineNumber")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535008-accessibilitydisclosedrows?language=objc +func (a_ AccessibilityObject) AccessibilityDisclosedRows() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDisclosedRows")) return rv } @@ -4034,186 +4057,163 @@ func (a_ AccessibilityObject) AccessibilityFullScreenButton() objc.Object { return rv } -func (a_ AccessibilityObject) HasSetAccessibilityAllowedValues() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityAllowedValues:")) -} - -// The allowed values for the slider accessibility element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534941-accessibilityallowedvalues?language=objc -func (a_ AccessibilityObject) SetAccessibilityAllowedValues(value []foundation.Number) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityAllowedValues:"), value) -} - -func (a_ AccessibilityObject) HasAccessibilityAllowedValues() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityAllowedValues")) -} - -// The allowed values for the slider accessibility element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534941-accessibilityallowedvalues?language=objc -func (a_ AccessibilityObject) AccessibilityAllowedValues() []foundation.Number { - rv := objc.Call[[]foundation.Number](a_, objc.Sel("accessibilityAllowedValues")) - return rv -} - -func (a_ AccessibilityObject) HasSetAccessibilitySelectedChildren() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedChildren:")) +func (a_ AccessibilityObject) HasSetAccessibilityFrontmost() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityFrontmost:")) } -// The accessibility element’s currently selected children. [Full Topic] +// A Boolean value that determines whether the app is the frontmost app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534970-accessibilityselectedchildren?language=objc -func (a_ AccessibilityObject) SetAccessibilitySelectedChildren(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedChildren:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535073-accessibilityfrontmost?language=objc +func (a_ AccessibilityObject) SetAccessibilityFrontmost(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFrontmost:"), value) } -func (a_ AccessibilityObject) HasAccessibilitySelectedChildren() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedChildren")) +func (a_ AccessibilityObject) HasIsAccessibilityFrontmost() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityFrontmost")) } -// The accessibility element’s currently selected children. [Full Topic] +// A Boolean value that determines whether the app is the frontmost app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534970-accessibilityselectedchildren?language=objc -func (a_ AccessibilityObject) AccessibilitySelectedChildren() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedChildren")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535073-accessibilityfrontmost?language=objc +func (a_ AccessibilityObject) IsAccessibilityFrontmost() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityFrontmost")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityCustomRotors() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityCustomRotors:")) +func (a_ AccessibilityObject) HasSetAccessibilityLabelUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityLabelUIElements:")) } -// The custom rotors of the current accessibility element. [Full Topic] +// The child label elements for the slider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2876053-accessibilitycustomrotors?language=objc -func (a_ AccessibilityObject) SetAccessibilityCustomRotors(value []AccessibilityCustomRotor) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCustomRotors:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534954-accessibilitylabeluielements?language=objc +func (a_ AccessibilityObject) SetAccessibilityLabelUIElements(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLabelUIElements:"), value) } -func (a_ AccessibilityObject) HasAccessibilityCustomRotors() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCustomRotors")) +func (a_ AccessibilityObject) HasAccessibilityLabelUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabelUIElements")) } -// The custom rotors of the current accessibility element. [Full Topic] +// The child label elements for the slider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2876053-accessibilitycustomrotors?language=objc -func (a_ AccessibilityObject) AccessibilityCustomRotors() []AccessibilityCustomRotor { - rv := objc.Call[[]AccessibilityCustomRotor](a_, objc.Sel("accessibilityCustomRotors")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534954-accessibilitylabeluielements?language=objc +func (a_ AccessibilityObject) AccessibilityLabelUIElements() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityLabelUIElements")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityUnitDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityDisclosureLevel() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosureLevel:")) } -// A human-readable description of the ruler’s units. [Full Topic] +// The indention level for the row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535094-accessibilityunitdescription?language=objc -func (a_ AccessibilityObject) SetAccessibilityUnitDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityUnitDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535111-accessibilitydisclosurelevel?language=objc +func (a_ AccessibilityObject) SetAccessibilityDisclosureLevel(value int) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosureLevel:"), value) } -func (a_ AccessibilityObject) HasAccessibilityUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityUnitDescription")) +func (a_ AccessibilityObject) HasAccessibilityDisclosureLevel() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDisclosureLevel")) } -// A human-readable description of the ruler’s units. [Full Topic] +// The indention level for the row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535094-accessibilityunitdescription?language=objc -func (a_ AccessibilityObject) AccessibilityUnitDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityUnitDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535111-accessibilitydisclosurelevel?language=objc +func (a_ AccessibilityObject) AccessibilityDisclosureLevel() int { + rv := objc.Call[int](a_, objc.Sel("accessibilityDisclosureLevel")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityContents() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityContents:")) +func (a_ AccessibilityObject) HasSetAccessibilityPlaceholderValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityPlaceholderValue:")) } -// The contents of the current accessibility element. [Full Topic] +// The placeholder value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535026-accessibilitycontents?language=objc -func (a_ AccessibilityObject) SetAccessibilityContents(value []objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityContents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535063-accessibilityplaceholdervalue?language=objc +func (a_ AccessibilityObject) SetAccessibilityPlaceholderValue(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityPlaceholderValue:"), value) } -func (a_ AccessibilityObject) HasAccessibilityContents() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityContents")) +func (a_ AccessibilityObject) HasAccessibilityPlaceholderValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPlaceholderValue")) } -// The contents of the current accessibility element. [Full Topic] +// The placeholder value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535026-accessibilitycontents?language=objc -func (a_ AccessibilityObject) AccessibilityContents() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityContents")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535063-accessibilityplaceholdervalue?language=objc +func (a_ AccessibilityObject) AccessibilityPlaceholderValue() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityPlaceholderValue")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityHorizontalScrollBar() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalScrollBar:")) +func (a_ AccessibilityObject) HasSetAccessibilityUnits() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityUnits:")) } -// The horizontal scroll bar for the scroll view. [Full Topic] +// The units for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534942-accessibilityhorizontalscrollbar?language=objc -func (a_ AccessibilityObject) SetAccessibilityHorizontalScrollBar(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHorizontalScrollBar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535029-accessibilityunits?language=objc +func (a_ AccessibilityObject) SetAccessibilityUnits(value AccessibilityUnits) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityUnits:"), value) } -func (a_ AccessibilityObject) HasAccessibilityHorizontalScrollBar() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalScrollBar")) +func (a_ AccessibilityObject) HasAccessibilityUnits() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityUnits")) } -// The horizontal scroll bar for the scroll view. [Full Topic] +// The units for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534942-accessibilityhorizontalscrollbar?language=objc -func (a_ AccessibilityObject) AccessibilityHorizontalScrollBar() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityHorizontalScrollBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535029-accessibilityunits?language=objc +func (a_ AccessibilityObject) AccessibilityUnits() AccessibilityUnits { + rv := objc.Call[AccessibilityUnits](a_, objc.Sel("accessibilityUnits")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilityCancelButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityCancelButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityHandles() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHandles:")) } -// The child accessibility element that represents the window’s cancel button. [Full Topic] +// The drag handle accessibility elements for the layout item element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535060-accessibilitycancelbutton?language=objc -func (a_ AccessibilityObject) SetAccessibilityCancelButton(value objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCancelButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535085-accessibilityhandles?language=objc +func (a_ AccessibilityObject) SetAccessibilityHandles(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHandles:"), value) } -func (a_ AccessibilityObject) HasAccessibilityCancelButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCancelButton")) +func (a_ AccessibilityObject) HasAccessibilityHandles() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHandles")) } -// The child accessibility element that represents the window’s cancel button. [Full Topic] +// The drag handle accessibility elements for the layout item element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535060-accessibilitycancelbutton?language=objc -func (a_ AccessibilityObject) AccessibilityCancelButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCancelButton")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535085-accessibilityhandles?language=objc +func (a_ AccessibilityObject) AccessibilityHandles() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityHandles")) return rv } -func (a_ AccessibilityObject) HasSetAccessibilitySelected() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelected:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedRows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedRows:")) } -// A Boolean value that determines whether the accessibility element is currently in a selected state. [Full Topic] +// The currently selected rows for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534981-accessibilityselected?language=objc -func (a_ AccessibilityObject) SetAccessibilitySelected(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelected:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535125-accessibilityselectedrows?language=objc +func (a_ AccessibilityObject) SetAccessibilitySelectedRows(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedRows:"), value) } -func (a_ AccessibilityObject) HasIsAccessibilitySelected() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilitySelected")) +func (a_ AccessibilityObject) HasAccessibilitySelectedRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedRows")) } -// A Boolean value that determines whether the accessibility element is currently in a selected state. [Full Topic] +// The currently selected rows for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534981-accessibilityselected?language=objc -func (a_ AccessibilityObject) IsAccessibilitySelected() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilitySelected")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535125-accessibilityselectedrows?language=objc +func (a_ AccessibilityObject) AccessibilitySelectedRows() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedRows")) return rv } diff --git a/macos/appkit/accessibility_slider_protocol.gen.go b/macos/appkit/accessibility_slider_protocol.gen.go index b3ed5204..6227be6e 100644 --- a/macos/appkit/accessibility_slider_protocol.gen.go +++ b/macos/appkit/accessibility_slider_protocol.gen.go @@ -11,20 +11,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider?language=objc type PAccessibilitySlider interface { // optional - AccessibilityPerformIncrement() bool - HasAccessibilityPerformIncrement() bool - - // optional - AccessibilityValue() objc.Object - HasAccessibilityValue() bool + AccessibilityPerformDecrement() bool + HasAccessibilityPerformDecrement() bool // optional AccessibilityLabel() string HasAccessibilityLabel() bool // optional - AccessibilityPerformDecrement() bool - HasAccessibilityPerformDecrement() bool + AccessibilityPerformIncrement() bool + HasAccessibilityPerformIncrement() bool + + // optional + AccessibilityValue() objc.Object + HasAccessibilityValue() bool } // ensure impl type implements protocol interface @@ -35,27 +35,15 @@ type AccessibilitySliderObject struct { objc.Object } -func (a_ AccessibilitySliderObject) HasAccessibilityPerformIncrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) -} - -// Increments the slider’s value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider/1528478-accessibilityperformincrement?language=objc -func (a_ AccessibilitySliderObject) AccessibilityPerformIncrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformIncrement")) - return rv -} - -func (a_ AccessibilitySliderObject) HasAccessibilityValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityValue")) +func (a_ AccessibilitySliderObject) HasAccessibilityPerformDecrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) } -// Returns the slider’s value. [Full Topic] +// Decrements the slider’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider/1530335-accessibilityvalue?language=objc -func (a_ AccessibilitySliderObject) AccessibilityValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider/1534967-accessibilityperformdecrement?language=objc +func (a_ AccessibilitySliderObject) AccessibilityPerformDecrement() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDecrement")) return rv } @@ -71,14 +59,26 @@ func (a_ AccessibilitySliderObject) AccessibilityLabel() string { return rv } -func (a_ AccessibilitySliderObject) HasAccessibilityPerformDecrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) +func (a_ AccessibilitySliderObject) HasAccessibilityPerformIncrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) } -// Decrements the slider’s value. [Full Topic] +// Increments the slider’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider/1534967-accessibilityperformdecrement?language=objc -func (a_ AccessibilitySliderObject) AccessibilityPerformDecrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDecrement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider/1528478-accessibilityperformincrement?language=objc +func (a_ AccessibilitySliderObject) AccessibilityPerformIncrement() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformIncrement")) + return rv +} + +func (a_ AccessibilitySliderObject) HasAccessibilityValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityValue")) +} + +// Returns the slider’s value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider/1530335-accessibilityvalue?language=objc +func (a_ AccessibilitySliderObject) AccessibilityValue() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityValue")) return rv } diff --git a/macos/appkit/accessibility_stepper_protocol.gen.go b/macos/appkit/accessibility_stepper_protocol.gen.go index 066e8c3d..dafc6240 100644 --- a/macos/appkit/accessibility_stepper_protocol.gen.go +++ b/macos/appkit/accessibility_stepper_protocol.gen.go @@ -11,20 +11,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper?language=objc type PAccessibilityStepper interface { // optional - AccessibilityPerformIncrement() bool - HasAccessibilityPerformIncrement() bool + AccessibilityPerformDecrement() bool + HasAccessibilityPerformDecrement() bool // optional AccessibilityLabel() string HasAccessibilityLabel() bool // optional - AccessibilityValue() objc.Object - HasAccessibilityValue() bool + AccessibilityPerformIncrement() bool + HasAccessibilityPerformIncrement() bool // optional - AccessibilityPerformDecrement() bool - HasAccessibilityPerformDecrement() bool + AccessibilityValue() objc.Object + HasAccessibilityValue() bool } // ensure impl type implements protocol interface @@ -35,15 +35,15 @@ type AccessibilityStepperObject struct { objc.Object } -func (a_ AccessibilityStepperObject) HasAccessibilityPerformIncrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) +func (a_ AccessibilityStepperObject) HasAccessibilityPerformDecrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) } -// Increments the stepper’s value. [Full Topic] +// Decrements the stepper’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper/1533764-accessibilityperformincrement?language=objc -func (a_ AccessibilityStepperObject) AccessibilityPerformIncrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformIncrement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper/1525327-accessibilityperformdecrement?language=objc +func (a_ AccessibilityStepperObject) AccessibilityPerformDecrement() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDecrement")) return rv } @@ -59,26 +59,26 @@ func (a_ AccessibilityStepperObject) AccessibilityLabel() string { return rv } -func (a_ AccessibilityStepperObject) HasAccessibilityValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityValue")) +func (a_ AccessibilityStepperObject) HasAccessibilityPerformIncrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) } -// Returns the stepper’s value. [Full Topic] +// Increments the stepper’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper/1528167-accessibilityvalue?language=objc -func (a_ AccessibilityStepperObject) AccessibilityValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper/1533764-accessibilityperformincrement?language=objc +func (a_ AccessibilityStepperObject) AccessibilityPerformIncrement() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformIncrement")) return rv } -func (a_ AccessibilityStepperObject) HasAccessibilityPerformDecrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) +func (a_ AccessibilityStepperObject) HasAccessibilityValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityValue")) } -// Decrements the stepper’s value. [Full Topic] +// Returns the stepper’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper/1525327-accessibilityperformdecrement?language=objc -func (a_ AccessibilityStepperObject) AccessibilityPerformDecrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDecrement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper/1528167-accessibilityvalue?language=objc +func (a_ AccessibilityStepperObject) AccessibilityValue() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityValue")) return rv } diff --git a/macos/appkit/accessibility_switch_protocol.gen.go b/macos/appkit/accessibility_switch_protocol.gen.go index a3317298..a1af1488 100644 --- a/macos/appkit/accessibility_switch_protocol.gen.go +++ b/macos/appkit/accessibility_switch_protocol.gen.go @@ -11,16 +11,16 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityswitch?language=objc type PAccessibilitySwitch interface { // optional - AccessibilityValue() string - HasAccessibilityValue() bool + AccessibilityPerformDecrement() bool + HasAccessibilityPerformDecrement() bool // optional AccessibilityPerformIncrement() bool HasAccessibilityPerformIncrement() bool // optional - AccessibilityPerformDecrement() bool - HasAccessibilityPerformDecrement() bool + AccessibilityValue() string + HasAccessibilityValue() bool } // ensure impl type implements protocol interface @@ -31,15 +31,15 @@ type AccessibilitySwitchObject struct { objc.Object } -func (a_ AccessibilitySwitchObject) HasAccessibilityValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityValue")) +func (a_ AccessibilitySwitchObject) HasAccessibilityPerformDecrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) } -// Returns the switch’s value. [Full Topic] +// Decrements the switch’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityswitch/1533946-accessibilityvalue?language=objc -func (a_ AccessibilitySwitchObject) AccessibilityValue() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityswitch/1528290-accessibilityperformdecrement?language=objc +func (a_ AccessibilitySwitchObject) AccessibilityPerformDecrement() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDecrement")) return rv } @@ -55,14 +55,14 @@ func (a_ AccessibilitySwitchObject) AccessibilityPerformIncrement() bool { return rv } -func (a_ AccessibilitySwitchObject) HasAccessibilityPerformDecrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) +func (a_ AccessibilitySwitchObject) HasAccessibilityValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityValue")) } -// Decrements the switch’s value. [Full Topic] +// Returns the switch’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityswitch/1528290-accessibilityperformdecrement?language=objc -func (a_ AccessibilitySwitchObject) AccessibilityPerformDecrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDecrement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityswitch/1533946-accessibilityvalue?language=objc +func (a_ AccessibilitySwitchObject) AccessibilityValue() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityValue")) return rv } diff --git a/macos/appkit/accessibility_table_protocol.gen.go b/macos/appkit/accessibility_table_protocol.gen.go index a93a01e9..4ecb4cce 100644 --- a/macos/appkit/accessibility_table_protocol.gen.go +++ b/macos/appkit/accessibility_table_protocol.gen.go @@ -11,52 +11,52 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable?language=objc type PAccessibilityTable interface { // optional - AccessibilitySelectedCells() []objc.Object - HasAccessibilitySelectedCells() bool - - // optional - AccessibilityVisibleColumns() []objc.Object - HasAccessibilityVisibleColumns() bool + AccessibilityColumnHeaderUIElements() []objc.Object + HasAccessibilityColumnHeaderUIElements() bool // optional - AccessibilityRows() []AccessibilityRowObject - HasAccessibilityRows() bool + SetAccessibilitySelectedRows(selectedRows []AccessibilityRowObject) + HasSetAccessibilitySelectedRows() bool // optional - AccessibilitySelectedRows() []AccessibilityRowObject - HasAccessibilitySelectedRows() bool + AccessibilityRowHeaderUIElements() []objc.Object + HasAccessibilityRowHeaderUIElements() bool // optional AccessibilityVisibleRows() []AccessibilityRowObject HasAccessibilityVisibleRows() bool // optional - SetAccessibilitySelectedRows(selectedRows []AccessibilityRowObject) - HasSetAccessibilitySelectedRows() bool + AccessibilitySelectedCells() []objc.Object + HasAccessibilitySelectedCells() bool // optional - AccessibilityRowHeaderUIElements() []objc.Object - HasAccessibilityRowHeaderUIElements() bool + AccessibilityVisibleColumns() []objc.Object + HasAccessibilityVisibleColumns() bool // optional - AccessibilityColumns() []objc.Object - HasAccessibilityColumns() bool + AccessibilityLabel() string + HasAccessibilityLabel() bool // optional - AccessibilityVisibleCells() []objc.Object - HasAccessibilityVisibleCells() bool + AccessibilityColumns() []objc.Object + HasAccessibilityColumns() bool // optional - AccessibilityColumnHeaderUIElements() []objc.Object - HasAccessibilityColumnHeaderUIElements() bool + AccessibilityRows() []AccessibilityRowObject + HasAccessibilityRows() bool // optional - AccessibilityLabel() string - HasAccessibilityLabel() bool + AccessibilityVisibleCells() []objc.Object + HasAccessibilityVisibleCells() bool // optional AccessibilitySelectedColumns() []objc.Object HasAccessibilitySelectedColumns() bool + + // optional + AccessibilitySelectedRows() []AccessibilityRowObject + HasAccessibilitySelectedRows() bool } // ensure impl type implements protocol interface @@ -67,51 +67,38 @@ type AccessibilityTableObject struct { objc.Object } -func (a_ AccessibilityTableObject) HasAccessibilitySelectedCells() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedCells")) -} - -// The currently selected cells for the table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1525577-accessibilityselectedcells?language=objc -func (a_ AccessibilityTableObject) AccessibilitySelectedCells() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedCells")) - return rv -} - -func (a_ AccessibilityTableObject) HasAccessibilityVisibleColumns() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleColumns")) +func (a_ AccessibilityTableObject) HasAccessibilityColumnHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumnHeaderUIElements")) } -// Returns the visible columns for the table. [Full Topic] +// Returns the column header accessibility elements for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1530264-accessibilityvisiblecolumns?language=objc -func (a_ AccessibilityTableObject) AccessibilityVisibleColumns() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526621-accessibilitycolumnheaderuieleme?language=objc +func (a_ AccessibilityTableObject) AccessibilityColumnHeaderUIElements() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumnHeaderUIElements")) return rv } -func (a_ AccessibilityTableObject) HasAccessibilityRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRows")) +func (a_ AccessibilityTableObject) HasSetAccessibilitySelectedRows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedRows:")) } -// Returns the row accessibility elements for the table. [Full Topic] +// Sets the table’s currently selected rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526672-accessibilityrows?language=objc -func (a_ AccessibilityTableObject) AccessibilityRows() []AccessibilityRowObject { - rv := objc.Call[[]AccessibilityRowObject](a_, objc.Sel("accessibilityRows")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1534612-setaccessibilityselectedrows?language=objc +func (a_ AccessibilityTableObject) SetAccessibilitySelectedRows(selectedRows []AccessibilityRowObject) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedRows:"), selectedRows) } -func (a_ AccessibilityTableObject) HasAccessibilitySelectedRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedRows")) +func (a_ AccessibilityTableObject) HasAccessibilityRowHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRowHeaderUIElements")) } -// Returns the currently selected rows for the table. [Full Topic] +// Returns the row header accessibility elements for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1529241-accessibilityselectedrows?language=objc -func (a_ AccessibilityTableObject) AccessibilitySelectedRows() []AccessibilityRowObject { - rv := objc.Call[[]AccessibilityRowObject](a_, objc.Sel("accessibilitySelectedRows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1524262-accessibilityrowheaderuielements?language=objc +func (a_ AccessibilityTableObject) AccessibilityRowHeaderUIElements() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityRowHeaderUIElements")) return rv } @@ -127,74 +114,75 @@ func (a_ AccessibilityTableObject) AccessibilityVisibleRows() []AccessibilityRow return rv } -func (a_ AccessibilityTableObject) HasSetAccessibilitySelectedRows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedRows:")) +func (a_ AccessibilityTableObject) HasAccessibilitySelectedCells() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedCells")) } -// Sets the table’s currently selected rows. [Full Topic] +// The currently selected cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1534612-setaccessibilityselectedrows?language=objc -func (a_ AccessibilityTableObject) SetAccessibilitySelectedRows(selectedRows []AccessibilityRowObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedRows:"), selectedRows) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1525577-accessibilityselectedcells?language=objc +func (a_ AccessibilityTableObject) AccessibilitySelectedCells() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedCells")) + return rv } -func (a_ AccessibilityTableObject) HasAccessibilityRowHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRowHeaderUIElements")) +func (a_ AccessibilityTableObject) HasAccessibilityVisibleColumns() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleColumns")) } -// Returns the row header accessibility elements for the table. [Full Topic] +// Returns the visible columns for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1524262-accessibilityrowheaderuielements?language=objc -func (a_ AccessibilityTableObject) AccessibilityRowHeaderUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityRowHeaderUIElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1530264-accessibilityvisiblecolumns?language=objc +func (a_ AccessibilityTableObject) AccessibilityVisibleColumns() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleColumns")) return rv } -func (a_ AccessibilityTableObject) HasAccessibilityColumns() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumns")) +func (a_ AccessibilityTableObject) HasAccessibilityLabel() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } -// Returns the column accessibility elements for the table. [Full Topic] +// Returns a short description of the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1524744-accessibilitycolumns?language=objc -func (a_ AccessibilityTableObject) AccessibilityColumns() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526563-accessibilitylabel?language=objc +func (a_ AccessibilityTableObject) AccessibilityLabel() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) return rv } -func (a_ AccessibilityTableObject) HasAccessibilityVisibleCells() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCells")) +func (a_ AccessibilityTableObject) HasAccessibilityColumns() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumns")) } -// Returns the visible cells for the table. [Full Topic] +// Returns the column accessibility elements for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526711-accessibilityvisiblecells?language=objc -func (a_ AccessibilityTableObject) AccessibilityVisibleCells() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleCells")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1524744-accessibilitycolumns?language=objc +func (a_ AccessibilityTableObject) AccessibilityColumns() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumns")) return rv } -func (a_ AccessibilityTableObject) HasAccessibilityColumnHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumnHeaderUIElements")) +func (a_ AccessibilityTableObject) HasAccessibilityRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRows")) } -// Returns the column header accessibility elements for the table. [Full Topic] +// Returns the row accessibility elements for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526621-accessibilitycolumnheaderuieleme?language=objc -func (a_ AccessibilityTableObject) AccessibilityColumnHeaderUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumnHeaderUIElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526672-accessibilityrows?language=objc +func (a_ AccessibilityTableObject) AccessibilityRows() []AccessibilityRowObject { + rv := objc.Call[[]AccessibilityRowObject](a_, objc.Sel("accessibilityRows")) return rv } -func (a_ AccessibilityTableObject) HasAccessibilityLabel() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) +func (a_ AccessibilityTableObject) HasAccessibilityVisibleCells() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCells")) } -// Returns a short description of the table. [Full Topic] +// Returns the visible cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526563-accessibilitylabel?language=objc -func (a_ AccessibilityTableObject) AccessibilityLabel() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526711-accessibilityvisiblecells?language=objc +func (a_ AccessibilityTableObject) AccessibilityVisibleCells() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleCells")) return rv } @@ -209,3 +197,15 @@ func (a_ AccessibilityTableObject) AccessibilitySelectedColumns() []objc.Object rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedColumns")) return rv } + +func (a_ AccessibilityTableObject) HasAccessibilitySelectedRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedRows")) +} + +// Returns the currently selected rows for the table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1529241-accessibilityselectedrows?language=objc +func (a_ AccessibilityTableObject) AccessibilitySelectedRows() []AccessibilityRowObject { + rv := objc.Call[[]AccessibilityRowObject](a_, objc.Sel("accessibilitySelectedRows")) + return rv +} diff --git a/macos/appkit/alert.gen.go b/macos/appkit/alert.gen.go index bae83fe4..d5c5b283 100644 --- a/macos/appkit/alert.gen.go +++ b/macos/appkit/alert.gen.go @@ -21,30 +21,30 @@ type IAlert interface { objc.IObject RunModal() ModalResponse Layout() - BeginSheetModalForWindowCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) AddButtonWithTitle(title string) Button + BeginSheetModalForWindowCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) + SuppressionButton() Button MessageText() string SetMessageText(value string) - AccessoryView() View - SetAccessoryView(value IView) - SuppressionButton() Button - HelpAnchor() HelpAnchorName - SetHelpAnchor(value HelpAnchorName) - AlertStyle() AlertStyle - SetAlertStyle(value AlertStyle) - Buttons() []Button InformativeText() string SetInformativeText(value string) - Icon() Image - SetIcon(value IImage) - ShowsSuppressionButton() bool - SetShowsSuppressionButton(value bool) Delegate() AlertDelegateObject SetDelegate(value PAlertDelegate) SetDelegateObject(valueObject objc.IObject) ShowsHelp() bool SetShowsHelp(value bool) + Icon() Image + SetIcon(value IImage) + ShowsSuppressionButton() bool + SetShowsSuppressionButton(value bool) + AccessoryView() View + SetAccessoryView(value IView) + AlertStyle() AlertStyle + SetAlertStyle(value AlertStyle) Window() Window + Buttons() []Button + HelpAnchor() HelpAnchorName + SetHelpAnchor(value HelpAnchorName) } // A modal dialog or sheet attached to a document window. [Full Topic] @@ -95,13 +95,6 @@ func (a_ Alert) Layout() { objc.Call[objc.Void](a_, objc.Sel("layout")) } -// Runs the alert modally as a sheet attached to the specified window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1524296-beginsheetmodalforwindow?language=objc -func (a_ Alert) BeginSheetModalForWindowCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) { - objc.Call[objc.Void](a_, objc.Sel("beginSheetModalForWindow:completionHandler:"), sheetWindow, handler) -} - // Adds a button with a given title to the alert. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1524532-addbuttonwithtitle?language=objc @@ -125,6 +118,21 @@ func Alert_AlertWithError(error foundation.IError) Alert { return AlertClass.AlertWithError(error) } +// Runs the alert modally as a sheet attached to the specified window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1524296-beginsheetmodalforwindow?language=objc +func (a_ Alert) BeginSheetModalForWindowCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) { + objc.Call[objc.Void](a_, objc.Sel("beginSheetModalForWindow:completionHandler:"), sheetWindow, handler) +} + +// The alert’s suppression checkbox. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1532209-suppressionbutton?language=objc +func (a_ Alert) SuppressionButton() Button { + rv := objc.Call[Button](a_, objc.Sel("suppressionButton")) + return rv +} + // The alert’s message text or title. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1532498-messagetext?language=objc @@ -140,80 +148,58 @@ func (a_ Alert) SetMessageText(value string) { objc.Call[objc.Void](a_, objc.Sel("setMessageText:"), value) } -// The alert’s accessory view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1530575-accessoryview?language=objc -func (a_ Alert) AccessoryView() View { - rv := objc.Call[View](a_, objc.Sel("accessoryView")) - return rv -} - -// The alert’s accessory view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1530575-accessoryview?language=objc -func (a_ Alert) SetAccessoryView(value IView) { - objc.Call[objc.Void](a_, objc.Sel("setAccessoryView:"), value) -} - -// The alert’s suppression checkbox. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1532209-suppressionbutton?language=objc -func (a_ Alert) SuppressionButton() Button { - rv := objc.Call[Button](a_, objc.Sel("suppressionButton")) - return rv -} - -// The alert’s HTML help anchor. [Full Topic] +// The alert’s informative text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534314-helpanchor?language=objc -func (a_ Alert) HelpAnchor() HelpAnchorName { - rv := objc.Call[HelpAnchorName](a_, objc.Sel("helpAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1529629-informativetext?language=objc +func (a_ Alert) InformativeText() string { + rv := objc.Call[string](a_, objc.Sel("informativeText")) return rv } -// The alert’s HTML help anchor. [Full Topic] +// The alert’s informative text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534314-helpanchor?language=objc -func (a_ Alert) SetHelpAnchor(value HelpAnchorName) { - objc.Call[objc.Void](a_, objc.Sel("setHelpAnchor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1529629-informativetext?language=objc +func (a_ Alert) SetInformativeText(value string) { + objc.Call[objc.Void](a_, objc.Sel("setInformativeText:"), value) } -// Indicates the alert’s severity level. [Full Topic] +// The alert’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1528506-alertstyle?language=objc -func (a_ Alert) AlertStyle() AlertStyle { - rv := objc.Call[AlertStyle](a_, objc.Sel("alertStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534327-delegate?language=objc +func (a_ Alert) Delegate() AlertDelegateObject { + rv := objc.Call[AlertDelegateObject](a_, objc.Sel("delegate")) return rv } -// Indicates the alert’s severity level. [Full Topic] +// The alert’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1528506-alertstyle?language=objc -func (a_ Alert) SetAlertStyle(value AlertStyle) { - objc.Call[objc.Void](a_, objc.Sel("setAlertStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534327-delegate?language=objc +func (a_ Alert) SetDelegate(value PAlertDelegate) { + po0 := objc.WrapAsProtocol("NSAlertDelegate", value) + objc.SetAssociatedObject(a_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), po0) } -// The array of response buttons for the alert. [Full Topic] +// The alert’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1532992-buttons?language=objc -func (a_ Alert) Buttons() []Button { - rv := objc.Call[[]Button](a_, objc.Sel("buttons")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534327-delegate?language=objc +func (a_ Alert) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), valueObject) } -// The alert’s informative text. [Full Topic] +// Specifies whether the alert has a help button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1529629-informativetext?language=objc -func (a_ Alert) InformativeText() string { - rv := objc.Call[string](a_, objc.Sel("informativeText")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1535856-showshelp?language=objc +func (a_ Alert) ShowsHelp() bool { + rv := objc.Call[bool](a_, objc.Sel("showsHelp")) return rv } -// The alert’s informative text. [Full Topic] +// Specifies whether the alert has a help button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1529629-informativetext?language=objc -func (a_ Alert) SetInformativeText(value string) { - objc.Call[objc.Void](a_, objc.Sel("setInformativeText:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1535856-showshelp?language=objc +func (a_ Alert) SetShowsHelp(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setShowsHelp:"), value) } // The custom icon displayed in the alert. [Full Topic] @@ -246,43 +232,34 @@ func (a_ Alert) SetShowsSuppressionButton(value bool) { objc.Call[objc.Void](a_, objc.Sel("setShowsSuppressionButton:"), value) } -// The alert’s delegate. [Full Topic] +// The alert’s accessory view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534327-delegate?language=objc -func (a_ Alert) Delegate() AlertDelegateObject { - rv := objc.Call[AlertDelegateObject](a_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1530575-accessoryview?language=objc +func (a_ Alert) AccessoryView() View { + rv := objc.Call[View](a_, objc.Sel("accessoryView")) return rv } -// The alert’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534327-delegate?language=objc -func (a_ Alert) SetDelegate(value PAlertDelegate) { - po0 := objc.WrapAsProtocol("NSAlertDelegate", value) - objc.SetAssociatedObject(a_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), po0) -} - -// The alert’s delegate. [Full Topic] +// The alert’s accessory view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534327-delegate?language=objc -func (a_ Alert) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1530575-accessoryview?language=objc +func (a_ Alert) SetAccessoryView(value IView) { + objc.Call[objc.Void](a_, objc.Sel("setAccessoryView:"), value) } -// Specifies whether the alert has a help button. [Full Topic] +// Indicates the alert’s severity level. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1535856-showshelp?language=objc -func (a_ Alert) ShowsHelp() bool { - rv := objc.Call[bool](a_, objc.Sel("showsHelp")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1528506-alertstyle?language=objc +func (a_ Alert) AlertStyle() AlertStyle { + rv := objc.Call[AlertStyle](a_, objc.Sel("alertStyle")) return rv } -// Specifies whether the alert has a help button. [Full Topic] +// Indicates the alert’s severity level. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1535856-showshelp?language=objc -func (a_ Alert) SetShowsHelp(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setShowsHelp:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1528506-alertstyle?language=objc +func (a_ Alert) SetAlertStyle(value AlertStyle) { + objc.Call[objc.Void](a_, objc.Sel("setAlertStyle:"), value) } // The app-modal panel or document-modal sheet that corresponds to the alert. [Full Topic] @@ -292,3 +269,26 @@ func (a_ Alert) Window() Window { rv := objc.Call[Window](a_, objc.Sel("window")) return rv } + +// The array of response buttons for the alert. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1532992-buttons?language=objc +func (a_ Alert) Buttons() []Button { + rv := objc.Call[[]Button](a_, objc.Sel("buttons")) + return rv +} + +// The alert’s HTML help anchor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534314-helpanchor?language=objc +func (a_ Alert) HelpAnchor() HelpAnchorName { + rv := objc.Call[HelpAnchorName](a_, objc.Sel("helpAnchor")) + return rv +} + +// The alert’s HTML help anchor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534314-helpanchor?language=objc +func (a_ Alert) SetHelpAnchor(value HelpAnchorName) { + objc.Call[objc.Void](a_, objc.Sel("setHelpAnchor:"), value) +} diff --git a/macos/appkit/aliastypes.gen.go b/macos/appkit/aliastypes.gen.go index 392c7e56..741213ed 100644 --- a/macos/appkit/aliastypes.gen.go +++ b/macos/appkit/aliastypes.gen.go @@ -3,6 +3,7 @@ package appkit import ( + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -45,7 +46,7 @@ type CollectionViewDiffableDataSourceItemProvider = func(arg0 CollectionView, ar // A closure called before each layout cycle to allow modification of items in a section immediately before they’re displayed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsectionvisibleitemsinvalidationhandler?language=objc -type CollectionLayoutSectionVisibleItemsInvalidationHandler = func(visibleItems []CollectionLayoutVisibleItemObject, contentOffset foundation.Point, layoutEnvironment CollectionLayoutEnvironmentObject) +type CollectionLayoutSectionVisibleItemsInvalidationHandler = func(visibleItems []CollectionLayoutVisibleItemObject, contentOffset coregraphics.Point, layoutEnvironment CollectionLayoutEnvironmentObject) // A closure that creates and returns each of the custom group’s items. [Full Topic] // diff --git a/macos/appkit/alignment_feedback_filter.gen.go b/macos/appkit/alignment_feedback_filter.gen.go index 8c74d61f..9d1715c5 100644 --- a/macos/appkit/alignment_feedback_filter.gen.go +++ b/macos/appkit/alignment_feedback_filter.gen.go @@ -19,12 +19,12 @@ type _AlignmentFeedbackFilterClass struct { // An interface definition for the [AlignmentFeedbackFilter] class. type IAlignmentFeedbackFilter interface { objc.IObject - AlignmentFeedbackTokenForVerticalMovementInViewPreviousYAlignedYDefaultY(view IView, previousY float64, alignedY float64, defaultY float64) AlignmentFeedbackTokenObject - PerformFeedbackPerformanceTime(alignmentFeedbackTokens []PAlignmentFeedbackToken, performanceTime HapticFeedbackPerformanceTime) UpdateWithEvent(event IEvent) + UpdateWithPanRecognizer(panRecognizer IPanGestureRecognizer) + PerformFeedbackPerformanceTime(alignmentFeedbackTokens []PAlignmentFeedbackToken, performanceTime HapticFeedbackPerformanceTime) + AlignmentFeedbackTokenForVerticalMovementInViewPreviousYAlignedYDefaultY(view IView, previousY float64, alignedY float64, defaultY float64) AlignmentFeedbackTokenObject AlignmentFeedbackTokenForMovementInViewPreviousPointAlignedPointDefaultPoint(view IView, previousPoint foundation.Point, alignedPoint foundation.Point, defaultPoint foundation.Point) AlignmentFeedbackTokenObject AlignmentFeedbackTokenForHorizontalMovementInViewPreviousXAlignedXDefaultX(view IView, previousX float64, alignedX float64, defaultX float64) AlignmentFeedbackTokenObject - UpdateWithPanRecognizer(panRecognizer IPanGestureRecognizer) } // An object that can filter the movement of an object and provides haptic feedback when alignment occurs. [Full Topic] @@ -60,12 +60,18 @@ func (a_ AlignmentFeedbackFilter) Init() AlignmentFeedbackFilter { return rv } -// Requests a feedback token for the alignment of an object requiring vertical movement only. [Full Topic] +// Informs the feedback filter about a new event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbackfilter/1531563-alignmentfeedbacktokenforvertica?language=objc -func (a_ AlignmentFeedbackFilter) AlignmentFeedbackTokenForVerticalMovementInViewPreviousYAlignedYDefaultY(view IView, previousY float64, alignedY float64, defaultY float64) AlignmentFeedbackTokenObject { - rv := objc.Call[AlignmentFeedbackTokenObject](a_, objc.Sel("alignmentFeedbackTokenForVerticalMovementInView:previousY:alignedY:defaultY:"), view, previousY, alignedY, defaultY) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbackfilter/1532257-updatewithevent?language=objc +func (a_ AlignmentFeedbackFilter) UpdateWithEvent(event IEvent) { + objc.Call[objc.Void](a_, objc.Sel("updateWithEvent:"), event) +} + +// Informs the feedback filter about a new pan (drag) gesture recognizer event. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbackfilter/1527844-updatewithpanrecognizer?language=objc +func (a_ AlignmentFeedbackFilter) UpdateWithPanRecognizer(panRecognizer IPanGestureRecognizer) { + objc.Call[objc.Void](a_, objc.Sel("updateWithPanRecognizer:"), panRecognizer) } // Performs the haptic feedback described by one or more alignment feedback tokens. [Full Topic] @@ -75,11 +81,12 @@ func (a_ AlignmentFeedbackFilter) PerformFeedbackPerformanceTime(alignmentFeedba objc.Call[objc.Void](a_, objc.Sel("performFeedback:performanceTime:"), alignmentFeedbackTokens, performanceTime) } -// Informs the feedback filter about a new event. [Full Topic] +// Requests a feedback token for the alignment of an object requiring vertical movement only. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbackfilter/1532257-updatewithevent?language=objc -func (a_ AlignmentFeedbackFilter) UpdateWithEvent(event IEvent) { - objc.Call[objc.Void](a_, objc.Sel("updateWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbackfilter/1531563-alignmentfeedbacktokenforvertica?language=objc +func (a_ AlignmentFeedbackFilter) AlignmentFeedbackTokenForVerticalMovementInViewPreviousYAlignedYDefaultY(view IView, previousY float64, alignedY float64, defaultY float64) AlignmentFeedbackTokenObject { + rv := objc.Call[AlignmentFeedbackTokenObject](a_, objc.Sel("alignmentFeedbackTokenForVerticalMovementInView:previousY:alignedY:defaultY:"), view, previousY, alignedY, defaultY) + return rv } // Requests a feedback token for the alignment of an object requiring horizontal and vertical movement. [Full Topic] @@ -98,13 +105,6 @@ func (a_ AlignmentFeedbackFilter) AlignmentFeedbackTokenForHorizontalMovementInV return rv } -// Informs the feedback filter about a new pan (drag) gesture recognizer event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbackfilter/1527844-updatewithpanrecognizer?language=objc -func (a_ AlignmentFeedbackFilter) UpdateWithPanRecognizer(panRecognizer IPanGestureRecognizer) { - objc.Call[objc.Void](a_, objc.Sel("updateWithPanRecognizer:"), panRecognizer) -} - // Retrieves the event types the filter accepts. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbackfilter/1530921-inputeventmask?language=objc diff --git a/macos/appkit/animatable_property_container_protocol.gen.go b/macos/appkit/animatable_property_container_protocol.gen.go index 923f3e2b..c52d73ac 100644 --- a/macos/appkit/animatable_property_container_protocol.gen.go +++ b/macos/appkit/animatable_property_container_protocol.gen.go @@ -10,14 +10,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimatablepropertycontainer?language=objc type PAnimatablePropertyContainer interface { - // optional - AnimationForKey(key AnimatablePropertyKey) objc.Object - HasAnimationForKey() bool - // optional Animator() objc.Object HasAnimator() bool + // optional + AnimationForKey(key AnimatablePropertyKey) objc.Object + HasAnimationForKey() bool + // optional SetAnimations(value map[AnimatablePropertyKey]objc.Object) HasSetAnimations() bool @@ -35,18 +35,6 @@ type AnimatablePropertyContainerObject struct { objc.Object } -func (a_ AnimatablePropertyContainerObject) HasAnimationForKey() bool { - return a_.RespondsToSelector(objc.Sel("animationForKey:")) -} - -// Returns the animation that should be performed for the specified key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimatablepropertycontainer/1526209-animationforkey?language=objc -func (a_ AnimatablePropertyContainerObject) AnimationForKey(key AnimatablePropertyKey) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("animationForKey:"), key) - return rv -} - func (a_ AnimatablePropertyContainerObject) HasAnimator() bool { return a_.RespondsToSelector(objc.Sel("animator")) } @@ -59,6 +47,18 @@ func (a_ AnimatablePropertyContainerObject) Animator() objc.Object { return rv } +func (a_ AnimatablePropertyContainerObject) HasAnimationForKey() bool { + return a_.RespondsToSelector(objc.Sel("animationForKey:")) +} + +// Returns the animation that should be performed for the specified key. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimatablepropertycontainer/1526209-animationforkey?language=objc +func (a_ AnimatablePropertyContainerObject) AnimationForKey(key AnimatablePropertyKey) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("animationForKey:"), key) + return rv +} + func (a_ AnimatablePropertyContainerObject) HasSetAnimations() bool { return a_.RespondsToSelector(objc.Sel("setAnimations:")) } diff --git a/macos/appkit/animation.gen.go b/macos/appkit/animation.gen.go index 1462fc31..ae6388ac 100644 --- a/macos/appkit/animation.gen.go +++ b/macos/appkit/animation.gen.go @@ -19,32 +19,32 @@ type _AnimationClass struct { // An interface definition for the [Animation] class. type IAnimation interface { objc.IObject + RemoveProgressMark(progressMark AnimationProgress) + StopAnimation() + StartAnimation() ClearStartAnimation() - StopWhenAnimationReachesProgress(animation IAnimation, stopProgress AnimationProgress) StartWhenAnimationReachesProgress(animation IAnimation, startProgress AnimationProgress) AddProgressMark(progressMark AnimationProgress) - RemoveProgressMark(progressMark AnimationProgress) - StartAnimation() ClearStopAnimation() - StopAnimation() + StopWhenAnimationReachesProgress(animation IAnimation, stopProgress AnimationProgress) + AnimationBlockingMode() AnimationBlockingMode + SetAnimationBlockingMode(value AnimationBlockingMode) CurrentProgress() AnimationProgress SetCurrentProgress(value AnimationProgress) + FrameRate() float32 + SetFrameRate(value float32) RunLoopModesForAnimating() []foundation.RunLoopMode ProgressMarks() []foundation.Number SetProgressMarks(value []foundation.INumber) Delegate() AnimationDelegateObject SetDelegate(value PAnimationDelegate) SetDelegateObject(valueObject objc.IObject) - Duration() foundation.TimeInterval - SetDuration(value foundation.TimeInterval) + CurrentValue() float32 IsAnimating() bool AnimationCurve() AnimationCurve SetAnimationCurve(value AnimationCurve) - AnimationBlockingMode() AnimationBlockingMode - SetAnimationBlockingMode(value AnimationBlockingMode) - CurrentValue() float32 - FrameRate() float32 - SetFrameRate(value float32) + Duration() foundation.TimeInterval + SetDuration(value foundation.TimeInterval) } // An object that manages the timing and progress of animations in the user interface. [Full Topic] @@ -94,6 +94,27 @@ func (a_ Animation) Init() Animation { return rv } +// Removes progress mark from the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1528288-removeprogressmark?language=objc +func (a_ Animation) RemoveProgressMark(progressMark AnimationProgress) { + objc.Call[objc.Void](a_, objc.Sel("removeProgressMark:"), progressMark) +} + +// Stops the animation represented by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1528672-stopanimation?language=objc +func (a_ Animation) StopAnimation() { + objc.Call[objc.Void](a_, objc.Sel("stopAnimation")) +} + +// Starts the animation represented by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1529209-startanimation?language=objc +func (a_ Animation) StartAnimation() { + objc.Call[objc.Void](a_, objc.Sel("startAnimation")) +} + // Clears linkage to another animation that causes the receiver to start. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1535932-clearstartanimation?language=objc @@ -101,13 +122,6 @@ func (a_ Animation) ClearStartAnimation() { objc.Call[objc.Void](a_, objc.Sel("clearStartAnimation")) } -// Stops running the animation represented by the receiver when another animation reaches a specific progress mark. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1530363-stopwhenanimation?language=objc -func (a_ Animation) StopWhenAnimationReachesProgress(animation IAnimation, stopProgress AnimationProgress) { - objc.Call[objc.Void](a_, objc.Sel("stopWhenAnimation:reachesProgress:"), animation, stopProgress) -} - // Starts running the animation represented by the receiver when another animation reaches a specific progress mark. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1526774-startwhenanimation?language=objc @@ -122,32 +136,33 @@ func (a_ Animation) AddProgressMark(progressMark AnimationProgress) { objc.Call[objc.Void](a_, objc.Sel("addProgressMark:"), progressMark) } -// Removes progress mark from the receiver. [Full Topic] +// Clears linkage to another animation that causes the receiver to stop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1528288-removeprogressmark?language=objc -func (a_ Animation) RemoveProgressMark(progressMark AnimationProgress) { - objc.Call[objc.Void](a_, objc.Sel("removeProgressMark:"), progressMark) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1524448-clearstopanimation?language=objc +func (a_ Animation) ClearStopAnimation() { + objc.Call[objc.Void](a_, objc.Sel("clearStopAnimation")) } -// Starts the animation represented by the receiver. [Full Topic] +// Stops running the animation represented by the receiver when another animation reaches a specific progress mark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1529209-startanimation?language=objc -func (a_ Animation) StartAnimation() { - objc.Call[objc.Void](a_, objc.Sel("startAnimation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1530363-stopwhenanimation?language=objc +func (a_ Animation) StopWhenAnimationReachesProgress(animation IAnimation, stopProgress AnimationProgress) { + objc.Call[objc.Void](a_, objc.Sel("stopWhenAnimation:reachesProgress:"), animation, stopProgress) } -// Clears linkage to another animation that causes the receiver to stop. [Full Topic] +// The blocking mode of the animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1524448-clearstopanimation?language=objc -func (a_ Animation) ClearStopAnimation() { - objc.Call[objc.Void](a_, objc.Sel("clearStopAnimation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1533725-animationblockingmode?language=objc +func (a_ Animation) AnimationBlockingMode() AnimationBlockingMode { + rv := objc.Call[AnimationBlockingMode](a_, objc.Sel("animationBlockingMode")) + return rv } -// Stops the animation represented by the receiver. [Full Topic] +// The blocking mode of the animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1528672-stopanimation?language=objc -func (a_ Animation) StopAnimation() { - objc.Call[objc.Void](a_, objc.Sel("stopAnimation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1533725-animationblockingmode?language=objc +func (a_ Animation) SetAnimationBlockingMode(value AnimationBlockingMode) { + objc.Call[objc.Void](a_, objc.Sel("setAnimationBlockingMode:"), value) } // The current progress of the animation. [Full Topic] @@ -165,6 +180,21 @@ func (a_ Animation) SetCurrentProgress(value AnimationProgress) { objc.Call[objc.Void](a_, objc.Sel("setCurrentProgress:"), value) } +// The number of frame updates per second to generate for the animation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1526694-framerate?language=objc +func (a_ Animation) FrameRate() float32 { + rv := objc.Call[float32](a_, objc.Sel("frameRate")) + return rv +} + +// The number of frame updates per second to generate for the animation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1526694-framerate?language=objc +func (a_ Animation) SetFrameRate(value float32) { + objc.Call[objc.Void](a_, objc.Sel("setFrameRate:"), value) +} + // An array of strings representing the run loop modes in which the animation can run. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1526965-runloopmodesforanimating?language=objc @@ -212,21 +242,14 @@ func (a_ Animation) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), valueObject) } -// The duration of the animation, in seconds. [Full Topic] +// The current value of the animation effect, based on the current progress [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1535110-duration?language=objc -func (a_ Animation) Duration() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](a_, objc.Sel("duration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1531043-currentvalue?language=objc +func (a_ Animation) CurrentValue() float32 { + rv := objc.Call[float32](a_, objc.Sel("currentValue")) return rv } -// The duration of the animation, in seconds. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1535110-duration?language=objc -func (a_ Animation) SetDuration(value foundation.TimeInterval) { - objc.Call[objc.Void](a_, objc.Sel("setDuration:"), value) -} - // A Boolean value indicating whether the animation is in progress. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1527492-animating?language=objc @@ -250,40 +273,17 @@ func (a_ Animation) SetAnimationCurve(value AnimationCurve) { objc.Call[objc.Void](a_, objc.Sel("setAnimationCurve:"), value) } -// The blocking mode of the animation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1533725-animationblockingmode?language=objc -func (a_ Animation) AnimationBlockingMode() AnimationBlockingMode { - rv := objc.Call[AnimationBlockingMode](a_, objc.Sel("animationBlockingMode")) - return rv -} - -// The blocking mode of the animation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1533725-animationblockingmode?language=objc -func (a_ Animation) SetAnimationBlockingMode(value AnimationBlockingMode) { - objc.Call[objc.Void](a_, objc.Sel("setAnimationBlockingMode:"), value) -} - -// The current value of the animation effect, based on the current progress [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1531043-currentvalue?language=objc -func (a_ Animation) CurrentValue() float32 { - rv := objc.Call[float32](a_, objc.Sel("currentValue")) - return rv -} - -// The number of frame updates per second to generate for the animation. [Full Topic] +// The duration of the animation, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1526694-framerate?language=objc -func (a_ Animation) FrameRate() float32 { - rv := objc.Call[float32](a_, objc.Sel("frameRate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1535110-duration?language=objc +func (a_ Animation) Duration() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](a_, objc.Sel("duration")) return rv } -// The number of frame updates per second to generate for the animation. [Full Topic] +// The duration of the animation, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1526694-framerate?language=objc -func (a_ Animation) SetFrameRate(value float32) { - objc.Call[objc.Void](a_, objc.Sel("setFrameRate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1535110-duration?language=objc +func (a_ Animation) SetDuration(value foundation.TimeInterval) { + objc.Call[objc.Void](a_, objc.Sel("setDuration:"), value) } diff --git a/macos/appkit/animation_context.gen.go b/macos/appkit/animation_context.gen.go index 5bb0c52a..35534e21 100644 --- a/macos/appkit/animation_context.gen.go +++ b/macos/appkit/animation_context.gen.go @@ -20,14 +20,14 @@ type _AnimationContextClass struct { // An interface definition for the [AnimationContext] class. type IAnimationContext interface { objc.IObject - Duration() foundation.TimeInterval - SetDuration(value foundation.TimeInterval) - TimingFunction() quartzcore.MediaTimingFunction - SetTimingFunction(value quartzcore.IMediaTimingFunction) AllowsImplicitAnimation() bool SetAllowsImplicitAnimation(value bool) CompletionHandler() func() SetCompletionHandler(value func()) + TimingFunction() quartzcore.MediaTimingFunction + SetTimingFunction(value quartzcore.IMediaTimingFunction) + Duration() foundation.TimeInterval + SetDuration(value foundation.TimeInterval) } // An animation context, which contains information about environment and state. [Full Topic] @@ -63,48 +63,6 @@ func (a_ AnimationContext) Init() AnimationContext { return rv } -// Ends the current animation grouping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1526927-endgrouping?language=objc -func (ac _AnimationContextClass) EndGrouping() { - objc.Call[objc.Void](ac, objc.Sel("endGrouping")) -} - -// Ends the current animation grouping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1526927-endgrouping?language=objc -func AnimationContext_EndGrouping() { - AnimationContextClass.EndGrouping() -} - -// Allows you to specify a completion block body after the set of animation actions whose completion will trigger the completion block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1529847-runanimationgroup?language=objc -func (ac _AnimationContextClass) RunAnimationGroupCompletionHandler(changes func(context AnimationContext), completionHandler func()) { - objc.Call[objc.Void](ac, objc.Sel("runAnimationGroup:completionHandler:"), changes, completionHandler) -} - -// Allows you to specify a completion block body after the set of animation actions whose completion will trigger the completion block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1529847-runanimationgroup?language=objc -func AnimationContext_RunAnimationGroupCompletionHandler(changes func(context AnimationContext), completionHandler func()) { - AnimationContextClass.RunAnimationGroupCompletionHandler(changes, completionHandler) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/2967169-runanimationgroup?language=objc -func (ac _AnimationContextClass) RunAnimationGroup(changes func(context AnimationContext)) { - objc.Call[objc.Void](ac, objc.Sel("runAnimationGroup:"), changes) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/2967169-runanimationgroup?language=objc -func AnimationContext_RunAnimationGroup(changes func(context AnimationContext)) { - AnimationContextClass.RunAnimationGroup(changes) -} - // Creates a new animation grouping. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1530234-begingrouping?language=objc @@ -119,34 +77,32 @@ func AnimationContext_BeginGrouping() { AnimationContextClass.BeginGrouping() } -// The duration used by animations created as a result of setting new values for an animatable property. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1526780-duration?language=objc -func (a_ AnimationContext) Duration() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](a_, objc.Sel("duration")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/2967169-runanimationgroup?language=objc +func (ac _AnimationContextClass) RunAnimationGroup(changes func(context AnimationContext)) { + objc.Call[objc.Void](ac, objc.Sel("runAnimationGroup:"), changes) } -// The duration used by animations created as a result of setting new values for an animatable property. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1526780-duration?language=objc -func (a_ AnimationContext) SetDuration(value foundation.TimeInterval) { - objc.Call[objc.Void](a_, objc.Sel("setDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/2967169-runanimationgroup?language=objc +func AnimationContext_RunAnimationGroup(changes func(context AnimationContext)) { + AnimationContextClass.RunAnimationGroup(changes) } -// The timing function used for all animations within this animation proxy group. [Full Topic] +// Ends the current animation grouping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1524985-timingfunction?language=objc -func (a_ AnimationContext) TimingFunction() quartzcore.MediaTimingFunction { - rv := objc.Call[quartzcore.MediaTimingFunction](a_, objc.Sel("timingFunction")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1526927-endgrouping?language=objc +func (ac _AnimationContextClass) EndGrouping() { + objc.Call[objc.Void](ac, objc.Sel("endGrouping")) } -// The timing function used for all animations within this animation proxy group. [Full Topic] +// Ends the current animation grouping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1524985-timingfunction?language=objc -func (a_ AnimationContext) SetTimingFunction(value quartzcore.IMediaTimingFunction) { - objc.Call[objc.Void](a_, objc.Sel("setTimingFunction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1526927-endgrouping?language=objc +func AnimationContext_EndGrouping() { + AnimationContextClass.EndGrouping() } // Returns the current animation context. [Full Topic] @@ -193,3 +149,33 @@ func (a_ AnimationContext) CompletionHandler() func() { func (a_ AnimationContext) SetCompletionHandler(value func()) { objc.Call[objc.Void](a_, objc.Sel("setCompletionHandler:"), value) } + +// The timing function used for all animations within this animation proxy group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1524985-timingfunction?language=objc +func (a_ AnimationContext) TimingFunction() quartzcore.MediaTimingFunction { + rv := objc.Call[quartzcore.MediaTimingFunction](a_, objc.Sel("timingFunction")) + return rv +} + +// The timing function used for all animations within this animation proxy group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1524985-timingfunction?language=objc +func (a_ AnimationContext) SetTimingFunction(value quartzcore.IMediaTimingFunction) { + objc.Call[objc.Void](a_, objc.Sel("setTimingFunction:"), value) +} + +// The duration used by animations created as a result of setting new values for an animatable property. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1526780-duration?language=objc +func (a_ AnimationContext) Duration() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](a_, objc.Sel("duration")) + return rv +} + +// The duration used by animations created as a result of setting new values for an animatable property. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1526780-duration?language=objc +func (a_ AnimationContext) SetDuration(value foundation.TimeInterval) { + objc.Call[objc.Void](a_, objc.Sel("setDuration:"), value) +} diff --git a/macos/appkit/animation_delegate.gen.go b/macos/appkit/animation_delegate.gen.go index fbbc4d1b..dfe487ab 100644 --- a/macos/appkit/animation_delegate.gen.go +++ b/macos/appkit/animation_delegate.gen.go @@ -11,68 +11,46 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate?language=objc type PAnimationDelegate interface { // optional - AnimationDidStop(animation Animation) - HasAnimationDidStop() bool - - // optional - AnimationValueForProgress(animation Animation, progress AnimationProgress) float32 - HasAnimationValueForProgress() bool + AnimationDidEnd(animation Animation) + HasAnimationDidEnd() bool // optional AnimationDidReachProgressMark(animation Animation, progress AnimationProgress) HasAnimationDidReachProgressMark() bool - // optional - AnimationDidEnd(animation Animation) - HasAnimationDidEnd() bool - // optional AnimationShouldStart(animation Animation) bool HasAnimationShouldStart() bool + + // optional + AnimationDidStop(animation Animation) + HasAnimationDidStop() bool } // A delegate implementation builder for the [PAnimationDelegate] protocol. type AnimationDelegate struct { - _AnimationDidStop func(animation Animation) - _AnimationValueForProgress func(animation Animation, progress AnimationProgress) float32 - _AnimationDidReachProgressMark func(animation Animation, progress AnimationProgress) _AnimationDidEnd func(animation Animation) + _AnimationDidReachProgressMark func(animation Animation, progress AnimationProgress) _AnimationShouldStart func(animation Animation) bool + _AnimationDidStop func(animation Animation) } -func (di *AnimationDelegate) HasAnimationDidStop() bool { - return di._AnimationDidStop != nil -} - -// Sent to the delegate when the specified animation is stopped before it completes its run. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1534155-animationdidstop?language=objc -func (di *AnimationDelegate) SetAnimationDidStop(f func(animation Animation)) { - di._AnimationDidStop = f -} - -// Sent to the delegate when the specified animation is stopped before it completes its run. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1534155-animationdidstop?language=objc -func (di *AnimationDelegate) AnimationDidStop(animation Animation) { - di._AnimationDidStop(animation) -} -func (di *AnimationDelegate) HasAnimationValueForProgress() bool { - return di._AnimationValueForProgress != nil +func (di *AnimationDelegate) HasAnimationDidEnd() bool { + return di._AnimationDidEnd != nil } -// Requests a custom curve value for the current progress value. [Full Topic] +// Sent to the delegate when the specified animation completes its run. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1528965-animation?language=objc -func (di *AnimationDelegate) SetAnimationValueForProgress(f func(animation Animation, progress AnimationProgress) float32) { - di._AnimationValueForProgress = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1535871-animationdidend?language=objc +func (di *AnimationDelegate) SetAnimationDidEnd(f func(animation Animation)) { + di._AnimationDidEnd = f } -// Requests a custom curve value for the current progress value. [Full Topic] +// Sent to the delegate when the specified animation completes its run. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1528965-animation?language=objc -func (di *AnimationDelegate) AnimationValueForProgress(animation Animation, progress AnimationProgress) float32 { - return di._AnimationValueForProgress(animation, progress) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1535871-animationdidend?language=objc +func (di *AnimationDelegate) AnimationDidEnd(animation Animation) { + di._AnimationDidEnd(animation) } func (di *AnimationDelegate) HasAnimationDidReachProgressMark() bool { return di._AnimationDidReachProgressMark != nil @@ -91,23 +69,6 @@ func (di *AnimationDelegate) SetAnimationDidReachProgressMark(f func(animation A func (di *AnimationDelegate) AnimationDidReachProgressMark(animation Animation, progress AnimationProgress) { di._AnimationDidReachProgressMark(animation, progress) } -func (di *AnimationDelegate) HasAnimationDidEnd() bool { - return di._AnimationDidEnd != nil -} - -// Sent to the delegate when the specified animation completes its run. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1535871-animationdidend?language=objc -func (di *AnimationDelegate) SetAnimationDidEnd(f func(animation Animation)) { - di._AnimationDidEnd = f -} - -// Sent to the delegate when the specified animation completes its run. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1535871-animationdidend?language=objc -func (di *AnimationDelegate) AnimationDidEnd(animation Animation) { - di._AnimationDidEnd(animation) -} func (di *AnimationDelegate) HasAnimationShouldStart() bool { return di._AnimationShouldStart != nil } @@ -125,36 +86,41 @@ func (di *AnimationDelegate) SetAnimationShouldStart(f func(animation Animation) func (di *AnimationDelegate) AnimationShouldStart(animation Animation) bool { return di._AnimationShouldStart(animation) } - -// ensure impl type implements protocol interface -var _ PAnimationDelegate = (*AnimationDelegateObject)(nil) - -// A concrete type for the [PAnimationDelegate] protocol. -type AnimationDelegateObject struct { - objc.Object +func (di *AnimationDelegate) HasAnimationDidStop() bool { + return di._AnimationDidStop != nil } -func (a_ AnimationDelegateObject) HasAnimationDidStop() bool { - return a_.RespondsToSelector(objc.Sel("animationDidStop:")) +// Sent to the delegate when the specified animation is stopped before it completes its run. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1534155-animationdidstop?language=objc +func (di *AnimationDelegate) SetAnimationDidStop(f func(animation Animation)) { + di._AnimationDidStop = f } // Sent to the delegate when the specified animation is stopped before it completes its run. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1534155-animationdidstop?language=objc -func (a_ AnimationDelegateObject) AnimationDidStop(animation Animation) { - objc.Call[objc.Void](a_, objc.Sel("animationDidStop:"), animation) +func (di *AnimationDelegate) AnimationDidStop(animation Animation) { + di._AnimationDidStop(animation) } -func (a_ AnimationDelegateObject) HasAnimationValueForProgress() bool { - return a_.RespondsToSelector(objc.Sel("animation:valueForProgress:")) +// ensure impl type implements protocol interface +var _ PAnimationDelegate = (*AnimationDelegateObject)(nil) + +// A concrete type for the [PAnimationDelegate] protocol. +type AnimationDelegateObject struct { + objc.Object } -// Requests a custom curve value for the current progress value. [Full Topic] +func (a_ AnimationDelegateObject) HasAnimationDidEnd() bool { + return a_.RespondsToSelector(objc.Sel("animationDidEnd:")) +} + +// Sent to the delegate when the specified animation completes its run. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1528965-animation?language=objc -func (a_ AnimationDelegateObject) AnimationValueForProgress(animation Animation, progress AnimationProgress) float32 { - rv := objc.Call[float32](a_, objc.Sel("animation:valueForProgress:"), animation, progress) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1535871-animationdidend?language=objc +func (a_ AnimationDelegateObject) AnimationDidEnd(animation Animation) { + objc.Call[objc.Void](a_, objc.Sel("animationDidEnd:"), animation) } func (a_ AnimationDelegateObject) HasAnimationDidReachProgressMark() bool { @@ -168,17 +134,6 @@ func (a_ AnimationDelegateObject) AnimationDidReachProgressMark(animation Animat objc.Call[objc.Void](a_, objc.Sel("animation:didReachProgressMark:"), animation, progress) } -func (a_ AnimationDelegateObject) HasAnimationDidEnd() bool { - return a_.RespondsToSelector(objc.Sel("animationDidEnd:")) -} - -// Sent to the delegate when the specified animation completes its run. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1535871-animationdidend?language=objc -func (a_ AnimationDelegateObject) AnimationDidEnd(animation Animation) { - objc.Call[objc.Void](a_, objc.Sel("animationDidEnd:"), animation) -} - func (a_ AnimationDelegateObject) HasAnimationShouldStart() bool { return a_.RespondsToSelector(objc.Sel("animationShouldStart:")) } @@ -190,3 +145,14 @@ func (a_ AnimationDelegateObject) AnimationShouldStart(animation Animation) bool rv := objc.Call[bool](a_, objc.Sel("animationShouldStart:"), animation) return rv } + +func (a_ AnimationDelegateObject) HasAnimationDidStop() bool { + return a_.RespondsToSelector(objc.Sel("animationDidStop:")) +} + +// Sent to the delegate when the specified animation is stopped before it completes its run. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1534155-animationdidstop?language=objc +func (a_ AnimationDelegateObject) AnimationDidStop(animation Animation) { + objc.Call[objc.Void](a_, objc.Sel("animationDidStop:"), animation) +} diff --git a/macos/appkit/appearance.gen.go b/macos/appkit/appearance.gen.go index 2b597ace..2b5423f6 100644 --- a/macos/appkit/appearance.gen.go +++ b/macos/appkit/appearance.gen.go @@ -19,10 +19,10 @@ type _AppearanceClass struct { // An interface definition for the [Appearance] class. type IAppearance interface { objc.IObject - PerformAsCurrentDrawingAppearance(block func()) BestMatchFromAppearancesWithNames(appearances []AppearanceName) AppearanceName - AllowsVibrancy() bool + PerformAsCurrentDrawingAppearance(block func()) Name() AppearanceName + AllowsVibrancy() bool } // An object that manages standard appearance attributes for UI elements in an app. [Full Topic] @@ -72,13 +72,6 @@ func (a_ Appearance) Init() Appearance { return rv } -// Sets the appearance to be the active drawing appearance and perform the specified block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearance/3674525-performascurrentdrawingappearanc?language=objc -func (a_ Appearance) PerformAsCurrentDrawingAppearance(block func()) { - objc.Call[objc.Void](a_, objc.Sel("performAsCurrentDrawingAppearance:"), block) -} - // Returns the appearance name that most closely matches the current appearance object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearance/2980972-bestmatchfromappearanceswithname?language=objc @@ -87,6 +80,13 @@ func (a_ Appearance) BestMatchFromAppearancesWithNames(appearances []AppearanceN return rv } +// Sets the appearance to be the active drawing appearance and perform the specified block. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearance/3674525-performascurrentdrawingappearanc?language=objc +func (a_ Appearance) PerformAsCurrentDrawingAppearance(block func()) { + objc.Call[objc.Void](a_, objc.Sel("performAsCurrentDrawingAppearance:"), block) +} + // Creates an appearance object based on the name of one of the standard system appearances. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearance/1529612-appearancenamed?language=objc @@ -102,6 +102,14 @@ func Appearance_AppearanceNamed(name AppearanceName) Appearance { return AppearanceClass.AppearanceNamed(name) } +// The name of the appearance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearance/1528677-name?language=objc +func (a_ Appearance) Name() AppearanceName { + rv := objc.Call[AppearanceName](a_, objc.Sel("name")) + return rv +} + // The appearance that the system uses for color and asset resolution, and that’s active for drawing, usually from locking focus on a view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearance/3674524-currentdrawingappearance?language=objc @@ -124,11 +132,3 @@ func (a_ Appearance) AllowsVibrancy() bool { rv := objc.Call[bool](a_, objc.Sel("allowsVibrancy")) return rv } - -// The name of the appearance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearance/1528677-name?language=objc -func (a_ Appearance) Name() AppearanceName { - rv := objc.Call[AppearanceName](a_, objc.Sel("name")) - return rv -} diff --git a/macos/appkit/application.gen.go b/macos/appkit/application.gen.go index f6260d24..57d62efc 100644 --- a/macos/appkit/application.gen.go +++ b/macos/appkit/application.gen.go @@ -19,109 +19,106 @@ type _ApplicationClass struct { // An interface definition for the [Application] class. type IApplication interface { IResponder - UpdateWindows() - Terminate(sender objc.IObject) - EnableRelaunchOnLogin() - EnumerateWindowsWithOptionsUsingBlock(options WindowListOptions, block func(window Window, stop *bool)) - TargetForActionToFrom(action objc.Selector, target objc.IObject, sender objc.IObject) objc.Object - OrderFrontStandardAboutPanelWithOptions(optionsDictionary map[AboutPanelOptionKey]objc.IObject) - DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) - MiniaturizeAll(sender objc.IObject) - HideOtherApplications(sender objc.IObject) - ReplyToApplicationShouldTerminate(shouldTerminate bool) - Hide(sender objc.IObject) - SetWindowsNeedUpdate(needUpdate bool) - RegisterUserInterfaceItemSearchHandler(handler PUserInterfaceItemSearching) - RegisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) - PreventWindowOrdering() - StopModalWithCode(returnCode ModalResponse) - Stop(sender objc.IObject) + SendActionToFrom(action objc.Selector, target objc.IObject, sender objc.IObject) bool EndModalSession(session ModalSession) - OrderFrontStandardAboutPanel(sender objc.IObject) - RegisterServicesMenuSendTypesReturnTypes(sendTypes []PasteboardType, returnTypes []PasteboardType) RequestUserAttention(requestType RequestUserAttentionType) int - RegisterForRemoteNotifications() + CancelUserAttentionRequest(request int) + SendEvent(event IEvent) UpdateWindowsItem(win IWindow) + ArrangeInFront(sender objc.IObject) + RemoveWindowsItem(win IWindow) + Hide(sender objc.IObject) + RegisterServicesMenuSendTypesReturnTypes(sendTypes []PasteboardType, returnTypes []PasteboardType) + TargetForActionToFrom(action objc.Selector, target objc.IObject, sender objc.IObject) objc.Object SearchStringInUserInterfaceItemStringSearchRangeFoundRange(searchString string, stringToSearch string, searchRange foundation.Range, foundRange *foundation.Range) bool + StopModalWithCode(returnCode ModalResponse) UnregisterForRemoteNotifications() - AbortModal() - RestoreWindowWithIdentifierStateCompletionHandler(identifier UserInterfaceItemIdentifier, state foundation.ICoder, completionHandler func(arg0 Window, arg1 foundation.Error)) bool - ReplyToOpenOrPrint(reply ApplicationDelegateReply) - UnhideWithoutActivation() - OrderFrontCharacterPalette(sender objc.IObject) - NextEventMatchingMaskUntilDateInModeDequeue(mask EventMask, expiration foundation.IDate, mode foundation.RunLoopMode, deqFlag bool) Event - RemoveWindowsItem(win IWindow) + WindowWithWindowNumber(windowNum int) Window RunModalSession(session ModalSession) ModalResponse - BeginModalSessionForWindow(window IWindow) ModalSession - Unhide(sender objc.IObject) - RunModalForWindow(window IWindow) ModalResponse - UnhideAllApplications(sender objc.IObject) - ChangeWindowsItemTitleFilename(win IWindow, string_ string, isFilename bool) - TargetForAction(action objc.Selector) objc.Object - ArrangeInFront(sender objc.IObject) - PostEventAtStart(event IEvent, flag bool) - ShowHelp(sender objc.IObject) - Deactivate() - SendEvent(event IEvent) - ToggleTouchBarCustomizationPalette(sender objc.IObject) objc.Object - RunPageLayout(sender objc.IObject) - OrderFrontColorPanel(sender objc.IObject) + StopModal() + AbortModal() ExtendStateRestoration() - Run() - AddWindowsItemTitleFilename(win IWindow, string_ string, isFilename bool) + DisableRelaunchOnLogin() + EnumerateWindowsWithOptionsUsingBlock(options WindowListOptions, block func(window Window, stop *bool)) + OrderFrontStandardAboutPanel(sender objc.IObject) + CompleteStateRestoration() + OrderFrontCharacterPalette(sender objc.IObject) + DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) + SetWindowsNeedUpdate(needUpdate bool) ActivationPolicy() ApplicationActivationPolicy - StopModal() + ToggleTouchBarCustomizationPalette(sender objc.IObject) objc.Object FinishLaunching() + PreventWindowOrdering() + EnableRelaunchOnLogin() + UnhideWithoutActivation() UnregisterUserInterfaceItemSearchHandler(handler PUserInterfaceItemSearching) UnregisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) + RunPageLayout(sender objc.IObject) ReportException(exception foundation.IException) - SetActivationPolicy(activationPolicy ApplicationActivationPolicy) bool - WindowWithWindowNumber(windowNum int) Window + OrderFrontColorPanel(sender objc.IObject) + Deactivate() + AddWindowsItemTitleFilename(win IWindow, string_ string, isFilename bool) + UpdateWindows() + RegisterForRemoteNotifications() + PostEventAtStart(event IEvent, flag bool) + UnhideAllApplications(sender objc.IObject) ActivateContextHelpMode(sender objc.IObject) - CompleteStateRestoration() - SendActionToFrom(action objc.Selector, target objc.IObject, sender objc.IObject) bool - CancelUserAttentionRequest(request int) - DisableRelaunchOnLogin() - DockTile() DockTile - OcclusionState() ApplicationOcclusionState + SetActivationPolicy(activationPolicy ApplicationActivationPolicy) bool + MiniaturizeAll(sender objc.IObject) + NextEventMatchingMaskUntilDateInModeDequeue(mask EventMask, expiration foundation.IDate, mode foundation.RunLoopMode, deqFlag bool) Event + HideOtherApplications(sender objc.IObject) + ReplyToOpenOrPrint(reply ApplicationDelegateReply) + ShowHelp(sender objc.IObject) + ReplyToApplicationShouldTerminate(shouldTerminate bool) + Run() + Stop(sender objc.IObject) + Unhide(sender objc.IObject) + RegisterUserInterfaceItemSearchHandler(handler PUserInterfaceItemSearching) + RegisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) + ChangeWindowsItemTitleFilename(win IWindow, string_ string, isFilename bool) + Terminate(sender objc.IObject) + RestoreWindowWithIdentifierStateCompletionHandler(identifier UserInterfaceItemIdentifier, state foundation.ICoder, completionHandler func(arg0 Window, arg1 foundation.Error)) bool + OrderFrontStandardAboutPanelWithOptions(optionsDictionary map[AboutPanelOptionKey]objc.IObject) IsRegisteredForRemoteNotifications() bool + ServicesMenu() Menu + SetServicesMenu(value IMenu) IsRunning() bool - IsAutomaticCustomizeTouchBarMenuItemEnabled() bool - SetAutomaticCustomizeTouchBarMenuItemEnabled(value bool) - CurrentSystemPresentationOptions() ApplicationPresentationOptions - Windows() []Window - IsActive() bool - WindowsMenu() Menu - SetWindowsMenu(value IMenu) - IsProtectedDataAvailable() bool - Appearance() Appearance - SetAppearance(value IAppearance) - KeyWindow() Window - OrderedDocuments() []Document - OrderedWindows() []Window IsHidden() bool + KeyWindow() Window PresentationOptions() ApplicationPresentationOptions SetPresentationOptions(value ApplicationPresentationOptions) - MainMenu() Menu - SetMainMenu(value IMenu) - ModalWindow() Window - ServicesMenu() Menu - SetServicesMenu(value IMenu) - ServicesProvider() objc.Object - SetServicesProvider(value objc.IObject) - HelpMenu() Menu - SetHelpMenu(value IMenu) + CurrentEvent() Event + MainWindow() Window + EffectiveAppearance() Appearance + CurrentSystemPresentationOptions() ApplicationPresentationOptions ApplicationIconImage() Image SetApplicationIconImage(value IImage) + IsActive() bool + IsFullKeyboardAccessEnabled() bool Delegate() ApplicationDelegateObject SetDelegate(value PApplicationDelegate) SetDelegateObject(valueObject objc.IObject) - EffectiveAppearance() Appearance - EnabledRemoteNotificationTypes() RemoteNotificationType - MainWindow() Window - CurrentEvent() Event - IsFullKeyboardAccessEnabled() bool + ServicesProvider() objc.Object + SetServicesProvider(value objc.IObject) UserInterfaceLayoutDirection() UserInterfaceLayoutDirection + OrderedDocuments() []Document + OcclusionState() ApplicationOcclusionState + Windows() []Window + HelpMenu() Menu + SetHelpMenu(value IMenu) + OrderedWindows() []Window + WindowsMenu() Menu + SetWindowsMenu(value IMenu) + DockTile() DockTile + IsAutomaticCustomizeTouchBarMenuItemEnabled() bool + SetAutomaticCustomizeTouchBarMenuItemEnabled(value bool) + MainMenu() Menu + SetMainMenu(value IMenu) + ModalWindow() Window + EnabledRemoteNotificationTypes() RemoteNotificationType + Appearance() Appearance + SetAppearance(value IAppearance) + IsProtectedDataAvailable() bool } // An object that manages an app’s main event loop and resources used by all of that app’s objects. [Full Topic] @@ -157,75 +154,62 @@ func (a_ Application) Init() Application { return rv } -// Sends an [appkit/nswindow/update] message to each onscreen window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428675-updatewindows?language=objc -func (a_ Application) UpdateWindows() { - objc.Call[objc.Void](a_, objc.Sel("updateWindows")) -} - -// Terminates the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428417-terminate?language=objc -func (a_ Application) Terminate(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("terminate:"), sender) -} - -// Enables relaunching the app on login. [Full Topic] +// Sends the given action message to the given target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428453-enablerelaunchonlogin?language=objc -func (a_ Application) EnableRelaunchOnLogin() { - objc.Call[objc.Void](a_, objc.Sel("enableRelaunchOnLogin")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428509-sendaction?language=objc +func (a_ Application) SendActionToFrom(action objc.Selector, target objc.IObject, sender objc.IObject) bool { + rv := objc.Call[bool](a_, objc.Sel("sendAction:to:from:"), action, target, sender) + return rv } -// Executes a block for each of the app's windows. [Full Topic] +// Finishes a modal session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1644472-enumeratewindowswithoptions?language=objc -func (a_ Application) EnumerateWindowsWithOptionsUsingBlock(options WindowListOptions, block func(window Window, stop *bool)) { - objc.Call[objc.Void](a_, objc.Sel("enumerateWindowsWithOptions:usingBlock:"), options, block) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428438-endmodalsession?language=objc +func (a_ Application) EndModalSession(session ModalSession) { + objc.Call[objc.Void](a_, objc.Sel("endModalSession:"), session) } -// Searches for an object that can receive the message specified by the given selector. [Full Topic] +// Starts a user attention request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428658-targetforaction?language=objc -func (a_ Application) TargetForActionToFrom(action objc.Selector, target objc.IObject, sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("targetForAction:to:from:"), action, target, sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428358-requestuserattention?language=objc +func (a_ Application) RequestUserAttention(requestType RequestUserAttentionType) int { + rv := objc.Call[int](a_, objc.Sel("requestUserAttention:"), requestType) return rv } -// Displays a standard About window with information from a given options dictionary. [Full Topic] +// Cancels a previous user attention request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428479-orderfrontstandardaboutpanelwith?language=objc -func (a_ Application) OrderFrontStandardAboutPanelWithOptions(optionsDictionary map[AboutPanelOptionKey]objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("orderFrontStandardAboutPanelWithOptions:"), optionsDictionary) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428683-canceluserattentionrequest?language=objc +func (a_ Application) CancelUserAttentionRequest(request int) { + objc.Call[objc.Void](a_, objc.Sel("cancelUserAttentionRequest:"), request) } -// Removes all events matching the given mask and generated before the specified event. [Full Topic] +// Dispatches an event to other objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428652-discardeventsmatchingmask?language=objc -func (a_ Application) DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) { - objc.Call[objc.Void](a_, objc.Sel("discardEventsMatchingMask:beforeEvent:"), mask, lastEvent) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428359-sendevent?language=objc +func (a_ Application) SendEvent(event IEvent) { + objc.Call[objc.Void](a_, objc.Sel("sendEvent:"), event) } -// Miniaturizes all the receiver’s windows. [Full Topic] +// Updates the Window menu item for a given window to reflect the edited status of that window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428393-miniaturizeall?language=objc -func (a_ Application) MiniaturizeAll(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("miniaturizeAll:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428422-updatewindowsitem?language=objc +func (a_ Application) UpdateWindowsItem(win IWindow) { + objc.Call[objc.Void](a_, objc.Sel("updateWindowsItem:"), win) } -// Hides all apps, except the receiver. [Full Topic] +// Arranges windows listed in the Window menu in front of all other windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428746-hideotherapplications?language=objc -func (a_ Application) HideOtherApplications(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("hideOtherApplications:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428739-arrangeinfront?language=objc +func (a_ Application) ArrangeInFront(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("arrangeInFront:"), sender) } -// Responds to NSTerminateLater once the app knows whether it can terminate. [Full Topic] +// Removes the Window menu item for a given window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428594-replytoapplicationshouldterminat?language=objc -func (a_ Application) ReplyToApplicationShouldTerminate(shouldTerminate bool) { - objc.Call[objc.Void](a_, objc.Sel("replyToApplicationShouldTerminate:"), shouldTerminate) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428625-removewindowsitem?language=objc +func (a_ Application) RemoveWindowsItem(win IWindow) { + objc.Call[objc.Void](a_, objc.Sel("removeWindowsItem:"), win) } // Hides all the receiver’s windows, and the next app in line is activated. [Full Topic] @@ -235,33 +219,27 @@ func (a_ Application) Hide(sender objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("hide:"), sender) } -// Sets whether the receiver’s windows need updating when the receiver has finished processing the current event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428451-setwindowsneedupdate?language=objc -func (a_ Application) SetWindowsNeedUpdate(needUpdate bool) { - objc.Call[objc.Void](a_, objc.Sel("setWindowsNeedUpdate:"), needUpdate) -} - -// Register an object that provides help data to your app. [Full Topic] +// Registers the pasteboard types the receiver can send and receive in response to service requests. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1420818-registeruserinterfaceitemsearchh?language=objc -func (a_ Application) RegisterUserInterfaceItemSearchHandler(handler PUserInterfaceItemSearching) { - po0 := objc.WrapAsProtocol("NSUserInterfaceItemSearching", handler) - objc.Call[objc.Void](a_, objc.Sel("registerUserInterfaceItemSearchHandler:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428751-registerservicesmenusendtypes?language=objc +func (a_ Application) RegisterServicesMenuSendTypesReturnTypes(sendTypes []PasteboardType, returnTypes []PasteboardType) { + objc.Call[objc.Void](a_, objc.Sel("registerServicesMenuSendTypes:returnTypes:"), sendTypes, returnTypes) } -// Register an object that provides help data to your app. [Full Topic] +// Searches for an object that can receive the message specified by the given selector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1420818-registeruserinterfaceitemsearchh?language=objc -func (a_ Application) RegisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("registerUserInterfaceItemSearchHandler:"), handlerObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428658-targetforaction?language=objc +func (a_ Application) TargetForActionToFrom(action objc.Selector, target objc.IObject, sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("targetForAction:to:from:"), action, target, sender) + return rv } -// Suppresses the usual window ordering in handling the most recent mouse-down event. [Full Topic] +// Searches for the string in the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428640-preventwindowordering?language=objc -func (a_ Application) PreventWindowOrdering() { - objc.Call[objc.Void](a_, objc.Sel("preventWindowOrdering")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1420808-searchstring?language=objc +func (a_ Application) SearchStringInUserInterfaceItemStringSearchRangeFoundRange(searchString string, stringToSearch string, searchRange foundation.Range, foundRange *foundation.Range) bool { + rv := objc.Call[bool](a_, objc.Sel("searchString:inUserInterfaceItemString:searchRange:foundRange:"), searchString, stringToSearch, searchRange, foundRange) + return rv } // Stops a modal event loop, allowing you to return a custom result code. [Full Topic] @@ -271,98 +249,76 @@ func (a_ Application) StopModalWithCode(returnCode ModalResponse) { objc.Call[objc.Void](a_, objc.Sel("stopModalWithCode:"), returnCode) } -// Stops the main event loop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428473-stop?language=objc -func (a_ Application) Stop(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("stop:"), sender) -} - -// Finishes a modal session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428438-endmodalsession?language=objc -func (a_ Application) EndModalSession(session ModalSession) { - objc.Call[objc.Void](a_, objc.Sel("endModalSession:"), session) -} - -// Displays a standard About window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428724-orderfrontstandardaboutpanel?language=objc -func (a_ Application) OrderFrontStandardAboutPanel(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("orderFrontStandardAboutPanel:"), sender) -} - -// Registers the pasteboard types the receiver can send and receive in response to service requests. [Full Topic] +// Unregister for notifications received from Apple Push Notification service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428751-registerservicesmenusendtypes?language=objc -func (a_ Application) RegisterServicesMenuSendTypesReturnTypes(sendTypes []PasteboardType, returnTypes []PasteboardType) { - objc.Call[objc.Void](a_, objc.Sel("registerServicesMenuSendTypes:returnTypes:"), sendTypes, returnTypes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428747-unregisterforremotenotifications?language=objc +func (a_ Application) UnregisterForRemoteNotifications() { + objc.Call[objc.Void](a_, objc.Sel("unregisterForRemoteNotifications")) } -// Starts a user attention request. [Full Topic] +// Returns the window corresponding to the specified window number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428358-requestuserattention?language=objc -func (a_ Application) RequestUserAttention(requestType RequestUserAttentionType) int { - rv := objc.Call[int](a_, objc.Sel("requestUserAttention:"), requestType) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428464-windowwithwindownumber?language=objc +func (a_ Application) WindowWithWindowNumber(windowNum int) Window { + rv := objc.Call[Window](a_, objc.Sel("windowWithWindowNumber:"), windowNum) return rv } -// Register for notifications sent by Apple Push Notification service (APNs). [Full Topic] +// Runs a given modal session, as defined in a previous invocation of beginModalSessionForWindow:relativeToWindow:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2967172-registerforremotenotifications?language=objc -func (a_ Application) RegisterForRemoteNotifications() { - objc.Call[objc.Void](a_, objc.Sel("registerForRemoteNotifications")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428590-runmodalsession?language=objc +func (a_ Application) RunModalSession(session ModalSession) ModalResponse { + rv := objc.Call[ModalResponse](a_, objc.Sel("runModalSession:"), session) + return rv } -// Updates the Window menu item for a given window to reflect the edited status of that window. [Full Topic] +// Stops a modal event loop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428422-updatewindowsitem?language=objc -func (a_ Application) UpdateWindowsItem(win IWindow) { - objc.Call[objc.Void](a_, objc.Sel("updateWindowsItem:"), win) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428489-stopmodal?language=objc +func (a_ Application) StopModal() { + objc.Call[objc.Void](a_, objc.Sel("stopModal")) } -// Searches for the string in the user interface. [Full Topic] +// Aborts the event loop started by runModalForWindow:relativeToWindow: or runModalSession:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1420808-searchstring?language=objc -func (a_ Application) SearchStringInUserInterfaceItemStringSearchRangeFoundRange(searchString string, stringToSearch string, searchRange foundation.Range, foundRange *foundation.Range) bool { - rv := objc.Call[bool](a_, objc.Sel("searchString:inUserInterfaceItemString:searchRange:foundRange:"), searchString, stringToSearch, searchRange, foundRange) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428753-abortmodal?language=objc +func (a_ Application) AbortModal() { + objc.Call[objc.Void](a_, objc.Sel("abortModal")) } -// Unregister for notifications received from Apple Push Notification service. [Full Topic] +// Allows an app to extend its state restoration period. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428747-unregisterforremotenotifications?language=objc -func (a_ Application) UnregisterForRemoteNotifications() { - objc.Call[objc.Void](a_, objc.Sel("unregisterForRemoteNotifications")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1526248-extendstaterestoration?language=objc +func (a_ Application) ExtendStateRestoration() { + objc.Call[objc.Void](a_, objc.Sel("extendStateRestoration")) } -// Aborts the event loop started by [appkit/nsapplication/runmodalforwindow] or [appkit/nsapplication/runmodalsession]. [Full Topic] +// Disables relaunching the app on login. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428753-abortmodal?language=objc -func (a_ Application) AbortModal() { - objc.Call[objc.Void](a_, objc.Sel("abortModal")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428376-disablerelaunchonlogin?language=objc +func (a_ Application) DisableRelaunchOnLogin() { + objc.Call[objc.Void](a_, objc.Sel("disableRelaunchOnLogin")) } -// Invoked to request that a window be restored. [Full Topic] +// Executes a block for each of the app's windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1526233-restorewindowwithidentifier?language=objc -func (a_ Application) RestoreWindowWithIdentifierStateCompletionHandler(identifier UserInterfaceItemIdentifier, state foundation.ICoder, completionHandler func(arg0 Window, arg1 foundation.Error)) bool { - rv := objc.Call[bool](a_, objc.Sel("restoreWindowWithIdentifier:state:completionHandler:"), identifier, state, completionHandler) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1644472-enumeratewindowswithoptions?language=objc +func (a_ Application) EnumerateWindowsWithOptionsUsingBlock(options WindowListOptions, block func(window Window, stop *bool)) { + objc.Call[objc.Void](a_, objc.Sel("enumerateWindowsWithOptions:usingBlock:"), options, block) } -// Handles errors that might occur when the user attempts to open or print files. [Full Topic] +// Displays a standard About window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428592-replytoopenorprint?language=objc -func (a_ Application) ReplyToOpenOrPrint(reply ApplicationDelegateReply) { - objc.Call[objc.Void](a_, objc.Sel("replyToOpenOrPrint:"), reply) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428724-orderfrontstandardaboutpanel?language=objc +func (a_ Application) OrderFrontStandardAboutPanel(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("orderFrontStandardAboutPanel:"), sender) } -// Restores hidden windows without activating their owner (the receiver). [Full Topic] +// Completes the extended state restoration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428566-unhidewithoutactivation?language=objc -func (a_ Application) UnhideWithoutActivation() { - objc.Call[objc.Void](a_, objc.Sel("unhideWithoutActivation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1526245-completestaterestoration?language=objc +func (a_ Application) CompleteStateRestoration() { + objc.Call[objc.Void](a_, objc.Sel("completeStateRestoration")) } // Opens the character palette. [Full Topic] @@ -372,208 +328,161 @@ func (a_ Application) OrderFrontCharacterPalette(sender objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("orderFrontCharacterPalette:"), sender) } -// Returns the next event matching a given mask, or nil if no such event is found before a specified expiration date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428485-nexteventmatchingmask?language=objc -func (a_ Application) NextEventMatchingMaskUntilDateInModeDequeue(mask EventMask, expiration foundation.IDate, mode foundation.RunLoopMode, deqFlag bool) Event { - rv := objc.Call[Event](a_, objc.Sel("nextEventMatchingMask:untilDate:inMode:dequeue:"), mask, expiration, mode, deqFlag) - return rv -} - -// Removes the Window menu item for a given window. [Full Topic] +// Removes all events matching the given mask and generated before the specified event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428625-removewindowsitem?language=objc -func (a_ Application) RemoveWindowsItem(win IWindow) { - objc.Call[objc.Void](a_, objc.Sel("removeWindowsItem:"), win) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428652-discardeventsmatchingmask?language=objc +func (a_ Application) DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) { + objc.Call[objc.Void](a_, objc.Sel("discardEventsMatchingMask:beforeEvent:"), mask, lastEvent) } -// Runs a given modal session, as defined in a previous invocation of [appkit/nsapplication/beginmodalsessionforwindow]. [Full Topic] +// Sets whether the receiver’s windows need updating when the receiver has finished processing the current event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428590-runmodalsession?language=objc -func (a_ Application) RunModalSession(session ModalSession) ModalResponse { - rv := objc.Call[ModalResponse](a_, objc.Sel("runModalSession:"), session) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428451-setwindowsneedupdate?language=objc +func (a_ Application) SetWindowsNeedUpdate(needUpdate bool) { + objc.Call[objc.Void](a_, objc.Sel("setWindowsNeedUpdate:"), needUpdate) } -// Sets up a modal session with the given window and returns a pointer to the NSModalSession structure representing the session. [Full Topic] +// Returns the app’s activation policy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428418-beginmodalsessionforwindow?language=objc -func (a_ Application) BeginModalSessionForWindow(window IWindow) ModalSession { - rv := objc.Call[ModalSession](a_, objc.Sel("beginModalSessionForWindow:"), window) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428703-activationpolicy?language=objc +func (a_ Application) ActivationPolicy() ApplicationActivationPolicy { + rv := objc.Call[ApplicationActivationPolicy](a_, objc.Sel("activationPolicy")) return rv } -// Restores hidden windows to the screen and makes the receiver active. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428761-unhide?language=objc -func (a_ Application) Unhide(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("unhide:"), sender) -} - -// Starts a modal event loop for the specified window. [Full Topic] +// Show or hides the interface for customizing the Touch Bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428436-runmodalforwindow?language=objc -func (a_ Application) RunModalForWindow(window IWindow) ModalResponse { - rv := objc.Call[ModalResponse](a_, objc.Sel("runModalForWindow:"), window) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2646920-toggletouchbarcustomizationpalet?language=objc +func (a_ Application) ToggleTouchBarCustomizationPalette(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("toggleTouchBarCustomizationPalette:"), sender) return rv } -// Unhides all apps, including the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428737-unhideallapplications?language=objc -func (a_ Application) UnhideAllApplications(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("unhideAllApplications:"), sender) -} - -// Changes the item for a given window in the Window menu to a given string. [Full Topic] +// Activates the app, opens any files specified by the NSOpen user default, and unhighlights the app’s icon. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428689-changewindowsitem?language=objc -func (a_ Application) ChangeWindowsItemTitleFilename(win IWindow, string_ string, isFilename bool) { - objc.Call[objc.Void](a_, objc.Sel("changeWindowsItem:title:filename:"), win, string_, isFilename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428771-finishlaunching?language=objc +func (a_ Application) FinishLaunching() { + objc.Call[objc.Void](a_, objc.Sel("finishLaunching")) } -// Returns the object that receives the action message specified by the given selector. [Full Topic] +// Suppresses the usual window ordering in handling the most recent mouse-down event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428449-targetforaction?language=objc -func (a_ Application) TargetForAction(action objc.Selector) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("targetForAction:"), action) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428640-preventwindowordering?language=objc +func (a_ Application) PreventWindowOrdering() { + objc.Call[objc.Void](a_, objc.Sel("preventWindowOrdering")) } -// Arranges windows listed in the Window menu in front of all other windows. [Full Topic] +// Enables relaunching the app on login. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428739-arrangeinfront?language=objc -func (a_ Application) ArrangeInFront(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("arrangeInFront:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428453-enablerelaunchonlogin?language=objc +func (a_ Application) EnableRelaunchOnLogin() { + objc.Call[objc.Void](a_, objc.Sel("enableRelaunchOnLogin")) } -// Adds a given event to the receiver’s event queue. [Full Topic] +// Creates and executes a new thread based on the specified target and selector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428710-postevent?language=objc -func (a_ Application) PostEventAtStart(event IEvent, flag bool) { - objc.Call[objc.Void](a_, objc.Sel("postEvent:atStart:"), event, flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428374-detachdrawingthread?language=objc +func (ac _ApplicationClass) DetachDrawingThreadToTargetWithObject(selector objc.Selector, target objc.IObject, argument objc.IObject) { + objc.Call[objc.Void](ac, objc.Sel("detachDrawingThread:toTarget:withObject:"), selector, target, argument) } -// If your project is properly registered, and the necessary keys have been set in the property list, this method launches Help Viewer and displays the first page of your app’s help book. [Full Topic] +// Creates and executes a new thread based on the specified target and selector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1500910-showhelp?language=objc -func (a_ Application) ShowHelp(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("showHelp:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428374-detachdrawingthread?language=objc +func Application_DetachDrawingThreadToTargetWithObject(selector objc.Selector, target objc.IObject, argument objc.IObject) { + ApplicationClass.DetachDrawingThreadToTargetWithObject(selector, target, argument) } -// Deactivates the receiver. [Full Topic] +// Restores hidden windows without activating their owner (the receiver). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428428-deactivate?language=objc -func (a_ Application) Deactivate() { - objc.Call[objc.Void](a_, objc.Sel("deactivate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428566-unhidewithoutactivation?language=objc +func (a_ Application) UnhideWithoutActivation() { + objc.Call[objc.Void](a_, objc.Sel("unhideWithoutActivation")) } -// Dispatches an event to other objects. [Full Topic] +// Unregister an object that provides help data to your app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428359-sendevent?language=objc -func (a_ Application) SendEvent(event IEvent) { - objc.Call[objc.Void](a_, objc.Sel("sendEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1420820-unregisteruserinterfaceitemsearc?language=objc +func (a_ Application) UnregisterUserInterfaceItemSearchHandler(handler PUserInterfaceItemSearching) { + po0 := objc.WrapAsProtocol("NSUserInterfaceItemSearching", handler) + objc.Call[objc.Void](a_, objc.Sel("unregisterUserInterfaceItemSearchHandler:"), po0) } -// Show or hides the interface for customizing the Touch Bar. [Full Topic] +// Unregister an object that provides help data to your app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2646920-toggletouchbarcustomizationpalet?language=objc -func (a_ Application) ToggleTouchBarCustomizationPalette(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("toggleTouchBarCustomizationPalette:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1420820-unregisteruserinterfaceitemsearc?language=objc +func (a_ Application) UnregisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("unregisterUserInterfaceItemSearchHandler:"), handlerObject) } // Displays the receiver’s page layout panel, an instance of NSPageLayout. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1397808-runpagelayout?language=objc func (a_ Application) RunPageLayout(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("runPageLayout:"), sender) -} - -// Brings up the color panel, an instance of NSColorPanel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1534097-orderfrontcolorpanel?language=objc -func (a_ Application) OrderFrontColorPanel(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("orderFrontColorPanel:"), sender) -} - -// Allows an app to extend its state restoration period. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1526248-extendstaterestoration?language=objc -func (a_ Application) ExtendStateRestoration() { - objc.Call[objc.Void](a_, objc.Sel("extendStateRestoration")) -} - -// Starts the main event loop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428631-run?language=objc -func (a_ Application) Run() { - objc.Call[objc.Void](a_, objc.Sel("run")) + objc.Call[objc.Void](a_, objc.Sel("runPageLayout:"), sender) } -// Adds an item to the Window menu for a given window. [Full Topic] +// Logs a given exception by calling NSLog(). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428660-addwindowsitem?language=objc -func (a_ Application) AddWindowsItemTitleFilename(win IWindow, string_ string, isFilename bool) { - objc.Call[objc.Void](a_, objc.Sel("addWindowsItem:title:filename:"), win, string_, isFilename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428396-reportexception?language=objc +func (a_ Application) ReportException(exception foundation.IException) { + objc.Call[objc.Void](a_, objc.Sel("reportException:"), exception) } -// Creates and executes a new thread based on the specified target and selector. [Full Topic] +// Brings up the color panel, an instance of NSColorPanel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428374-detachdrawingthread?language=objc -func (ac _ApplicationClass) DetachDrawingThreadToTargetWithObject(selector objc.Selector, target objc.IObject, argument objc.IObject) { - objc.Call[objc.Void](ac, objc.Sel("detachDrawingThread:toTarget:withObject:"), selector, target, argument) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1534097-orderfrontcolorpanel?language=objc +func (a_ Application) OrderFrontColorPanel(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("orderFrontColorPanel:"), sender) } -// Creates and executes a new thread based on the specified target and selector. [Full Topic] +// Deactivates the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428374-detachdrawingthread?language=objc -func Application_DetachDrawingThreadToTargetWithObject(selector objc.Selector, target objc.IObject, argument objc.IObject) { - ApplicationClass.DetachDrawingThreadToTargetWithObject(selector, target, argument) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428428-deactivate?language=objc +func (a_ Application) Deactivate() { + objc.Call[objc.Void](a_, objc.Sel("deactivate")) } -// Returns the app’s activation policy. [Full Topic] +// Adds an item to the Window menu for a given window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428703-activationpolicy?language=objc -func (a_ Application) ActivationPolicy() ApplicationActivationPolicy { - rv := objc.Call[ApplicationActivationPolicy](a_, objc.Sel("activationPolicy")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428660-addwindowsitem?language=objc +func (a_ Application) AddWindowsItemTitleFilename(win IWindow, string_ string, isFilename bool) { + objc.Call[objc.Void](a_, objc.Sel("addWindowsItem:title:filename:"), win, string_, isFilename) } -// Stops a modal event loop. [Full Topic] +// Sends an update message to each onscreen window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428489-stopmodal?language=objc -func (a_ Application) StopModal() { - objc.Call[objc.Void](a_, objc.Sel("stopModal")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428675-updatewindows?language=objc +func (a_ Application) UpdateWindows() { + objc.Call[objc.Void](a_, objc.Sel("updateWindows")) } -// Activates the app, opens any files specified by the NSOpen user default, and unhighlights the app’s icon. [Full Topic] +// Register for notifications sent by Apple Push Notification service (APNs). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428771-finishlaunching?language=objc -func (a_ Application) FinishLaunching() { - objc.Call[objc.Void](a_, objc.Sel("finishLaunching")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2967172-registerforremotenotifications?language=objc +func (a_ Application) RegisterForRemoteNotifications() { + objc.Call[objc.Void](a_, objc.Sel("registerForRemoteNotifications")) } -// Unregister an object that provides help data to your app. [Full Topic] +// Adds a given event to the receiver’s event queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1420820-unregisteruserinterfaceitemsearc?language=objc -func (a_ Application) UnregisterUserInterfaceItemSearchHandler(handler PUserInterfaceItemSearching) { - po0 := objc.WrapAsProtocol("NSUserInterfaceItemSearching", handler) - objc.Call[objc.Void](a_, objc.Sel("unregisterUserInterfaceItemSearchHandler:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428710-postevent?language=objc +func (a_ Application) PostEventAtStart(event IEvent, flag bool) { + objc.Call[objc.Void](a_, objc.Sel("postEvent:atStart:"), event, flag) } -// Unregister an object that provides help data to your app. [Full Topic] +// Unhides all apps, including the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1420820-unregisteruserinterfaceitemsearc?language=objc -func (a_ Application) UnregisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("unregisterUserInterfaceItemSearchHandler:"), handlerObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428737-unhideallapplications?language=objc +func (a_ Application) UnhideAllApplications(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("unhideAllApplications:"), sender) } -// Logs a given exception by calling NSLog(). [Full Topic] +// Places the receiver in context-sensitive help mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428396-reportexception?language=objc -func (a_ Application) ReportException(exception foundation.IException) { - objc.Call[objc.Void](a_, objc.Sel("reportException:"), exception) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1500925-activatecontexthelpmode?language=objc +func (a_ Application) ActivateContextHelpMode(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("activateContextHelpMode:"), sender) } // Attempts to modify the app’s activation policy. [Full Topic] @@ -584,257 +493,261 @@ func (a_ Application) SetActivationPolicy(activationPolicy ApplicationActivation return rv } -// Returns the window corresponding to the specified window number. [Full Topic] +// Miniaturizes all the receiver’s windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428464-windowwithwindownumber?language=objc -func (a_ Application) WindowWithWindowNumber(windowNum int) Window { - rv := objc.Call[Window](a_, objc.Sel("windowWithWindowNumber:"), windowNum) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428393-miniaturizeall?language=objc +func (a_ Application) MiniaturizeAll(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("miniaturizeAll:"), sender) +} + +// Returns the next event matching a given mask, or nil if no such event is found before a specified expiration date. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428485-nexteventmatchingmask?language=objc +func (a_ Application) NextEventMatchingMaskUntilDateInModeDequeue(mask EventMask, expiration foundation.IDate, mode foundation.RunLoopMode, deqFlag bool) Event { + rv := objc.Call[Event](a_, objc.Sel("nextEventMatchingMask:untilDate:inMode:dequeue:"), mask, expiration, mode, deqFlag) return rv } -// Places the receiver in context-sensitive help mode. [Full Topic] +// Hides all apps, except the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1500925-activatecontexthelpmode?language=objc -func (a_ Application) ActivateContextHelpMode(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("activateContextHelpMode:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428746-hideotherapplications?language=objc +func (a_ Application) HideOtherApplications(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("hideOtherApplications:"), sender) } -// Completes the extended state restoration. [Full Topic] +// Handles errors that might occur when the user attempts to open or print files. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1526245-completestaterestoration?language=objc -func (a_ Application) CompleteStateRestoration() { - objc.Call[objc.Void](a_, objc.Sel("completeStateRestoration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428592-replytoopenorprint?language=objc +func (a_ Application) ReplyToOpenOrPrint(reply ApplicationDelegateReply) { + objc.Call[objc.Void](a_, objc.Sel("replyToOpenOrPrint:"), reply) } -// Sends the given action message to the given target. [Full Topic] +// If your project is properly registered, and the necessary keys have been set in the property list, this method launches Help Viewer and displays the first page of your app’s help book. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428509-sendaction?language=objc -func (a_ Application) SendActionToFrom(action objc.Selector, target objc.IObject, sender objc.IObject) bool { - rv := objc.Call[bool](a_, objc.Sel("sendAction:to:from:"), action, target, sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1500910-showhelp?language=objc +func (a_ Application) ShowHelp(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("showHelp:"), sender) } -// Cancels a previous user attention request. [Full Topic] +// Responds to NSTerminateLater once the app knows whether it can terminate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428683-canceluserattentionrequest?language=objc -func (a_ Application) CancelUserAttentionRequest(request int) { - objc.Call[objc.Void](a_, objc.Sel("cancelUserAttentionRequest:"), request) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428594-replytoapplicationshouldterminat?language=objc +func (a_ Application) ReplyToApplicationShouldTerminate(shouldTerminate bool) { + objc.Call[objc.Void](a_, objc.Sel("replyToApplicationShouldTerminate:"), shouldTerminate) } -// Disables relaunching the app on login. [Full Topic] +// Starts the main event loop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428376-disablerelaunchonlogin?language=objc -func (a_ Application) DisableRelaunchOnLogin() { - objc.Call[objc.Void](a_, objc.Sel("disableRelaunchOnLogin")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428631-run?language=objc +func (a_ Application) Run() { + objc.Call[objc.Void](a_, objc.Sel("run")) } -// The app’s Dock tile. [Full Topic] +// Stops the main event loop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428671-docktile?language=objc -func (a_ Application) DockTile() DockTile { - rv := objc.Call[DockTile](a_, objc.Sel("dockTile")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428473-stop?language=objc +func (a_ Application) Stop(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("stop:"), sender) } -// The occlusion state of the app. [Full Topic] +// Restores hidden windows to the screen and makes the receiver active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428656-occlusionstate?language=objc -func (a_ Application) OcclusionState() ApplicationOcclusionState { - rv := objc.Call[ApplicationOcclusionState](a_, objc.Sel("occlusionState")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428761-unhide?language=objc +func (a_ Application) Unhide(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("unhide:"), sender) } -// A Boolean value indicating whether the app is registered with Apple Push Notification service (APNs). [Full Topic] +// Register an object that provides help data to your app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2967173-registeredforremotenotifications?language=objc -func (a_ Application) IsRegisteredForRemoteNotifications() bool { - rv := objc.Call[bool](a_, objc.Sel("isRegisteredForRemoteNotifications")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1420818-registeruserinterfaceitemsearchh?language=objc +func (a_ Application) RegisterUserInterfaceItemSearchHandler(handler PUserInterfaceItemSearching) { + po0 := objc.WrapAsProtocol("NSUserInterfaceItemSearching", handler) + objc.Call[objc.Void](a_, objc.Sel("registerUserInterfaceItemSearchHandler:"), po0) } -// A Boolean value indicating whether the main event loop is running. [Full Topic] +// Register an object that provides help data to your app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428759-running?language=objc -func (a_ Application) IsRunning() bool { - rv := objc.Call[bool](a_, objc.Sel("isRunning")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1420818-registeruserinterfaceitemsearchh?language=objc +func (a_ Application) RegisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("registerUserInterfaceItemSearchHandler:"), handlerObject) } -// A Boolean value indicating whether the main menu contains an item for customizing the contents of the Touch Bar. [Full Topic] +// Changes the item for a given window in the Window menu to a given string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2646923-automaticcustomizetouchbarmenuit?language=objc -func (a_ Application) IsAutomaticCustomizeTouchBarMenuItemEnabled() bool { - rv := objc.Call[bool](a_, objc.Sel("isAutomaticCustomizeTouchBarMenuItemEnabled")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428689-changewindowsitem?language=objc +func (a_ Application) ChangeWindowsItemTitleFilename(win IWindow, string_ string, isFilename bool) { + objc.Call[objc.Void](a_, objc.Sel("changeWindowsItem:title:filename:"), win, string_, isFilename) } -// A Boolean value indicating whether the main menu contains an item for customizing the contents of the Touch Bar. [Full Topic] +// Terminates the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2646923-automaticcustomizetouchbarmenuit?language=objc -func (a_ Application) SetAutomaticCustomizeTouchBarMenuItemEnabled(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAutomaticCustomizeTouchBarMenuItemEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428417-terminate?language=objc +func (a_ Application) Terminate(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("terminate:"), sender) } -// Returns the application instance, creating it if it doesn’t exist yet. [Full Topic] +// Invoked to request that a window be restored. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428360-sharedapplication?language=objc -func (ac _ApplicationClass) SharedApplication() Application { - rv := objc.Call[Application](ac, objc.Sel("sharedApplication")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1526233-restorewindowwithidentifier?language=objc +func (a_ Application) RestoreWindowWithIdentifierStateCompletionHandler(identifier UserInterfaceItemIdentifier, state foundation.ICoder, completionHandler func(arg0 Window, arg1 foundation.Error)) bool { + rv := objc.Call[bool](a_, objc.Sel("restoreWindowWithIdentifier:state:completionHandler:"), identifier, state, completionHandler) return rv } -// Returns the application instance, creating it if it doesn’t exist yet. [Full Topic] +// Displays a standard About window with information from a given options dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428360-sharedapplication?language=objc -func Application_SharedApplication() Application { - return ApplicationClass.SharedApplication() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428479-orderfrontstandardaboutpanelwith?language=objc +func (a_ Application) OrderFrontStandardAboutPanelWithOptions(optionsDictionary map[AboutPanelOptionKey]objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("orderFrontStandardAboutPanelWithOptions:"), optionsDictionary) } -// The set of app presentation options that are currently in effect for the system. [Full Topic] +// A Boolean value indicating whether the app is registered with Apple Push Notification service (APNs). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428717-currentsystempresentationoptions?language=objc -func (a_ Application) CurrentSystemPresentationOptions() ApplicationPresentationOptions { - rv := objc.Call[ApplicationPresentationOptions](a_, objc.Sel("currentSystemPresentationOptions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2967173-registeredforremotenotifications?language=objc +func (a_ Application) IsRegisteredForRemoteNotifications() bool { + rv := objc.Call[bool](a_, objc.Sel("isRegisteredForRemoteNotifications")) return rv } -// An array of the app’s window objects. [Full Topic] +// The app’s Services menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428402-windows?language=objc -func (a_ Application) Windows() []Window { - rv := objc.Call[[]Window](a_, objc.Sel("windows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428608-servicesmenu?language=objc +func (a_ Application) ServicesMenu() Menu { + rv := objc.Call[Menu](a_, objc.Sel("servicesMenu")) return rv } -// A Boolean value indicating whether this is the active app. [Full Topic] +// The app’s Services menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428493-active?language=objc -func (a_ Application) IsActive() bool { - rv := objc.Call[bool](a_, objc.Sel("isActive")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428608-servicesmenu?language=objc +func (a_ Application) SetServicesMenu(value IMenu) { + objc.Call[objc.Void](a_, objc.Sel("setServicesMenu:"), value) } -// The Window menu of the app. [Full Topic] +// A Boolean value indicating whether the main event loop is running. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428547-windowsmenu?language=objc -func (a_ Application) WindowsMenu() Menu { - rv := objc.Call[Menu](a_, objc.Sel("windowsMenu")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428759-running?language=objc +func (a_ Application) IsRunning() bool { + rv := objc.Call[bool](a_, objc.Sel("isRunning")) return rv } -// The Window menu of the app. [Full Topic] +// A Boolean value indicating whether the app is hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428547-windowsmenu?language=objc -func (a_ Application) SetWindowsMenu(value IMenu) { - objc.Call[objc.Void](a_, objc.Sel("setWindowsMenu:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428416-hidden?language=objc +func (a_ Application) IsHidden() bool { + rv := objc.Call[bool](a_, objc.Sel("isHidden")) + return rv } -// [Full Topic] +// The window that currently receives keyboard events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/3752992-protecteddataavailable?language=objc -func (a_ Application) IsProtectedDataAvailable() bool { - rv := objc.Call[bool](a_, objc.Sel("isProtectedDataAvailable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428406-keywindow?language=objc +func (a_ Application) KeyWindow() Window { + rv := objc.Call[Window](a_, objc.Sel("keyWindow")) return rv } -// The appearance associated with the app’s windows. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2967170-appearance?language=objc -func (a_ Application) Appearance() Appearance { - rv := objc.Call[Appearance](a_, objc.Sel("appearance")) +// The presentation options that should be in effect for the system when this app is active. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428664-presentationoptions?language=objc +func (a_ Application) PresentationOptions() ApplicationPresentationOptions { + rv := objc.Call[ApplicationPresentationOptions](a_, objc.Sel("presentationOptions")) return rv } -// The appearance associated with the app’s windows. [Full Topic] +// The presentation options that should be in effect for the system when this app is active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2967170-appearance?language=objc -func (a_ Application) SetAppearance(value IAppearance) { - objc.Call[objc.Void](a_, objc.Sel("setAppearance:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428664-presentationoptions?language=objc +func (a_ Application) SetPresentationOptions(value ApplicationPresentationOptions) { + objc.Call[objc.Void](a_, objc.Sel("setPresentationOptions:"), value) } -// The window that currently receives keyboard events. [Full Topic] +// The last event object that the app retrieved from the event queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428406-keywindow?language=objc -func (a_ Application) KeyWindow() Window { - rv := objc.Call[Window](a_, objc.Sel("keyWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428668-currentevent?language=objc +func (a_ Application) CurrentEvent() Event { + rv := objc.Call[Event](a_, objc.Sel("currentEvent")) return rv } -// An array of document objects arranged according to the front-to-back ordering of their associated windows. [Full Topic] +// The app’s main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1494283-ordereddocuments?language=objc -func (a_ Application) OrderedDocuments() []Document { - rv := objc.Call[[]Document](a_, objc.Sel("orderedDocuments")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428723-mainwindow?language=objc +func (a_ Application) MainWindow() Window { + rv := objc.Call[Window](a_, objc.Sel("mainWindow")) return rv } -// An array of window objects arranged according to their front-to-back ordering on the screen. [Full Topic] +// The appearance that AppKit uses to draw the app’s interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1494287-orderedwindows?language=objc -func (a_ Application) OrderedWindows() []Window { - rv := objc.Call[[]Window](a_, objc.Sel("orderedWindows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2967171-effectiveappearance?language=objc +func (a_ Application) EffectiveAppearance() Appearance { + rv := objc.Call[Appearance](a_, objc.Sel("effectiveAppearance")) return rv } -// A Boolean value indicating whether the app is hidden. [Full Topic] +// The set of app presentation options that are currently in effect for the system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428416-hidden?language=objc -func (a_ Application) IsHidden() bool { - rv := objc.Call[bool](a_, objc.Sel("isHidden")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428717-currentsystempresentationoptions?language=objc +func (a_ Application) CurrentSystemPresentationOptions() ApplicationPresentationOptions { + rv := objc.Call[ApplicationPresentationOptions](a_, objc.Sel("currentSystemPresentationOptions")) return rv } -// The presentation options that should be in effect for the system when this app is active. [Full Topic] +// The image used for the app’s icon. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428664-presentationoptions?language=objc -func (a_ Application) PresentationOptions() ApplicationPresentationOptions { - rv := objc.Call[ApplicationPresentationOptions](a_, objc.Sel("presentationOptions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428744-applicationiconimage?language=objc +func (a_ Application) ApplicationIconImage() Image { + rv := objc.Call[Image](a_, objc.Sel("applicationIconImage")) return rv } -// The presentation options that should be in effect for the system when this app is active. [Full Topic] +// The image used for the app’s icon. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428664-presentationoptions?language=objc -func (a_ Application) SetPresentationOptions(value ApplicationPresentationOptions) { - objc.Call[objc.Void](a_, objc.Sel("setPresentationOptions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428744-applicationiconimage?language=objc +func (a_ Application) SetApplicationIconImage(value IImage) { + objc.Call[objc.Void](a_, objc.Sel("setApplicationIconImage:"), value) } -// The app’s main menu bar. [Full Topic] +// A Boolean value indicating whether this is the active app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428634-mainmenu?language=objc -func (a_ Application) MainMenu() Menu { - rv := objc.Call[Menu](a_, objc.Sel("mainMenu")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428493-active?language=objc +func (a_ Application) IsActive() bool { + rv := objc.Call[bool](a_, objc.Sel("isActive")) return rv } -// The app’s main menu bar. [Full Topic] +// A Boolean value indicating whether Full Keyboard Access is enabled in the Keyboard preference pane. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428634-mainmenu?language=objc -func (a_ Application) SetMainMenu(value IMenu) { - objc.Call[objc.Void](a_, objc.Sel("setMainMenu:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428469-fullkeyboardaccessenabled?language=objc +func (a_ Application) IsFullKeyboardAccessEnabled() bool { + rv := objc.Call[bool](a_, objc.Sel("isFullKeyboardAccessEnabled")) + return rv } -// The modal window displayed by the app. [Full Topic] +// The app delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428610-modalwindow?language=objc -func (a_ Application) ModalWindow() Window { - rv := objc.Call[Window](a_, objc.Sel("modalWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428705-delegate?language=objc +func (a_ Application) Delegate() ApplicationDelegateObject { + rv := objc.Call[ApplicationDelegateObject](a_, objc.Sel("delegate")) return rv } -// The app’s Services menu. [Full Topic] +// The app delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428608-servicesmenu?language=objc -func (a_ Application) ServicesMenu() Menu { - rv := objc.Call[Menu](a_, objc.Sel("servicesMenu")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428705-delegate?language=objc +func (a_ Application) SetDelegate(value PApplicationDelegate) { + po0 := objc.WrapAsProtocol("NSApplicationDelegate", value) + objc.SetAssociatedObject(a_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), po0) } -// The app’s Services menu. [Full Topic] +// The app delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428608-servicesmenu?language=objc -func (a_ Application) SetServicesMenu(value IMenu) { - objc.Call[objc.Void](a_, objc.Sel("setServicesMenu:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428705-delegate?language=objc +func (a_ Application) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), valueObject) } // The object that provides the services the current app advertises in the Services menu of other apps. [Full Topic] @@ -852,6 +765,38 @@ func (a_ Application) SetServicesProvider(value objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("setServicesProvider:"), value) } +// The layout direction of the user interface. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428556-userinterfacelayoutdirection?language=objc +func (a_ Application) UserInterfaceLayoutDirection() UserInterfaceLayoutDirection { + rv := objc.Call[UserInterfaceLayoutDirection](a_, objc.Sel("userInterfaceLayoutDirection")) + return rv +} + +// An array of document objects arranged according to the front-to-back ordering of their associated windows. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1494283-ordereddocuments?language=objc +func (a_ Application) OrderedDocuments() []Document { + rv := objc.Call[[]Document](a_, objc.Sel("orderedDocuments")) + return rv +} + +// The occlusion state of the app. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428656-occlusionstate?language=objc +func (a_ Application) OcclusionState() ApplicationOcclusionState { + rv := objc.Call[ApplicationOcclusionState](a_, objc.Sel("occlusionState")) + return rv +} + +// An array of the app’s window objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428402-windows?language=objc +func (a_ Application) Windows() []Window { + rv := objc.Call[[]Window](a_, objc.Sel("windows")) + return rv +} + // The help menu used by the app. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428644-helpmenu?language=objc @@ -867,89 +812,117 @@ func (a_ Application) SetHelpMenu(value IMenu) { objc.Call[objc.Void](a_, objc.Sel("setHelpMenu:"), value) } -// The image used for the app’s icon. [Full Topic] +// Returns the application instance, creating it if it doesn’t exist yet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428744-applicationiconimage?language=objc -func (a_ Application) ApplicationIconImage() Image { - rv := objc.Call[Image](a_, objc.Sel("applicationIconImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428360-sharedapplication?language=objc +func (ac _ApplicationClass) SharedApplication() Application { + rv := objc.Call[Application](ac, objc.Sel("sharedApplication")) return rv } -// The image used for the app’s icon. [Full Topic] +// Returns the application instance, creating it if it doesn’t exist yet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428744-applicationiconimage?language=objc -func (a_ Application) SetApplicationIconImage(value IImage) { - objc.Call[objc.Void](a_, objc.Sel("setApplicationIconImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428360-sharedapplication?language=objc +func Application_SharedApplication() Application { + return ApplicationClass.SharedApplication() } -// The app delegate object. [Full Topic] +// An array of window objects arranged according to their front-to-back ordering on the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428705-delegate?language=objc -func (a_ Application) Delegate() ApplicationDelegateObject { - rv := objc.Call[ApplicationDelegateObject](a_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1494287-orderedwindows?language=objc +func (a_ Application) OrderedWindows() []Window { + rv := objc.Call[[]Window](a_, objc.Sel("orderedWindows")) return rv } -// The app delegate object. [Full Topic] +// The Window menu of the app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428705-delegate?language=objc -func (a_ Application) SetDelegate(value PApplicationDelegate) { - po0 := objc.WrapAsProtocol("NSApplicationDelegate", value) - objc.SetAssociatedObject(a_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428547-windowsmenu?language=objc +func (a_ Application) WindowsMenu() Menu { + rv := objc.Call[Menu](a_, objc.Sel("windowsMenu")) + return rv } -// The app delegate object. [Full Topic] +// The Window menu of the app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428705-delegate?language=objc -func (a_ Application) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428547-windowsmenu?language=objc +func (a_ Application) SetWindowsMenu(value IMenu) { + objc.Call[objc.Void](a_, objc.Sel("setWindowsMenu:"), value) } -// The appearance that AppKit uses to draw the app’s interface. [Full Topic] +// The app’s Dock tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2967171-effectiveappearance?language=objc -func (a_ Application) EffectiveAppearance() Appearance { - rv := objc.Call[Appearance](a_, objc.Sel("effectiveAppearance")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428671-docktile?language=objc +func (a_ Application) DockTile() DockTile { + rv := objc.Call[DockTile](a_, objc.Sel("dockTile")) return rv } -// The types of push notifications that the app accepts. [Full Topic] +// A Boolean value indicating whether the main menu contains an item for customizing the contents of the Touch Bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428776-enabledremotenotificationtypes?language=objc -func (a_ Application) EnabledRemoteNotificationTypes() RemoteNotificationType { - rv := objc.Call[RemoteNotificationType](a_, objc.Sel("enabledRemoteNotificationTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2646923-automaticcustomizetouchbarmenuit?language=objc +func (a_ Application) IsAutomaticCustomizeTouchBarMenuItemEnabled() bool { + rv := objc.Call[bool](a_, objc.Sel("isAutomaticCustomizeTouchBarMenuItemEnabled")) return rv } -// The app’s main window. [Full Topic] +// A Boolean value indicating whether the main menu contains an item for customizing the contents of the Touch Bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428723-mainwindow?language=objc -func (a_ Application) MainWindow() Window { - rv := objc.Call[Window](a_, objc.Sel("mainWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2646923-automaticcustomizetouchbarmenuit?language=objc +func (a_ Application) SetAutomaticCustomizeTouchBarMenuItemEnabled(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAutomaticCustomizeTouchBarMenuItemEnabled:"), value) +} + +// The app’s main menu bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428634-mainmenu?language=objc +func (a_ Application) MainMenu() Menu { + rv := objc.Call[Menu](a_, objc.Sel("mainMenu")) return rv } -// The last event object that the app retrieved from the event queue. [Full Topic] +// The app’s main menu bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428668-currentevent?language=objc -func (a_ Application) CurrentEvent() Event { - rv := objc.Call[Event](a_, objc.Sel("currentEvent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428634-mainmenu?language=objc +func (a_ Application) SetMainMenu(value IMenu) { + objc.Call[objc.Void](a_, objc.Sel("setMainMenu:"), value) +} + +// The modal window displayed by the app. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428610-modalwindow?language=objc +func (a_ Application) ModalWindow() Window { + rv := objc.Call[Window](a_, objc.Sel("modalWindow")) return rv } -// A Boolean value indicating whether Full Keyboard Access is enabled in the Keyboard preference pane. [Full Topic] +// The types of push notifications that the app accepts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428469-fullkeyboardaccessenabled?language=objc -func (a_ Application) IsFullKeyboardAccessEnabled() bool { - rv := objc.Call[bool](a_, objc.Sel("isFullKeyboardAccessEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428776-enabledremotenotificationtypes?language=objc +func (a_ Application) EnabledRemoteNotificationTypes() RemoteNotificationType { + rv := objc.Call[RemoteNotificationType](a_, objc.Sel("enabledRemoteNotificationTypes")) return rv } -// The layout direction of the user interface. [Full Topic] +// The appearance associated with the app’s windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428556-userinterfacelayoutdirection?language=objc -func (a_ Application) UserInterfaceLayoutDirection() UserInterfaceLayoutDirection { - rv := objc.Call[UserInterfaceLayoutDirection](a_, objc.Sel("userInterfaceLayoutDirection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2967170-appearance?language=objc +func (a_ Application) Appearance() Appearance { + rv := objc.Call[Appearance](a_, objc.Sel("appearance")) + return rv +} + +// The appearance associated with the app’s windows. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/2967170-appearance?language=objc +func (a_ Application) SetAppearance(value IAppearance) { + objc.Call[objc.Void](a_, objc.Sel("setAppearance:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/3752992-protecteddataavailable?language=objc +func (a_ Application) IsProtectedDataAvailable() bool { + rv := objc.Call[bool](a_, objc.Sel("isProtectedDataAvailable")) return rv } diff --git a/macos/appkit/application_delegate.gen.go b/macos/appkit/application_delegate.gen.go index 8d0572e4..198635ea 100644 --- a/macos/appkit/application_delegate.gen.go +++ b/macos/appkit/application_delegate.gen.go @@ -12,268 +12,207 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate?language=objc type PApplicationDelegate interface { // optional - ApplicationWillResignActive(notification foundation.Notification) - HasApplicationWillResignActive() bool - - // optional - ApplicationWillHide(notification foundation.Notification) - HasApplicationWillHide() bool - - // optional - ApplicationDockMenu(sender Application) Menu - HasApplicationDockMenu() bool + ApplicationDidResignActive(notification foundation.Notification) + HasApplicationDidResignActive() bool // optional - ApplicationDidChangeOcclusionState(notification foundation.Notification) - HasApplicationDidChangeOcclusionState() bool + ApplicationDidFinishLaunching(notification foundation.Notification) + HasApplicationDidFinishLaunching() bool // optional ApplicationShouldTerminate(sender Application) ApplicationTerminateReply HasApplicationShouldTerminate() bool // optional - ApplicationShouldTerminateAfterLastWindowClosed(sender Application) bool - HasApplicationShouldTerminateAfterLastWindowClosed() bool - - // optional - ApplicationSupportsSecureRestorableState(app Application) bool - HasApplicationSupportsSecureRestorableState() bool - - // optional - ApplicationDidReceiveRemoteNotification(application Application, userInfo map[string]objc.Object) - HasApplicationDidReceiveRemoteNotification() bool - - // optional - ApplicationProtectedDataDidBecomeAvailable(notification foundation.Notification) - HasApplicationProtectedDataDidBecomeAvailable() bool - - // optional - ApplicationShouldHandleReopenHasVisibleWindows(sender Application, flag bool) bool - HasApplicationShouldHandleReopenHasVisibleWindows() bool - - // optional - ApplicationOpenURLs(application Application, urls []foundation.URL) - HasApplicationOpenURLs() bool - - // optional - ApplicationOpenFile(sender Application, filename string) bool - HasApplicationOpenFile() bool - - // optional - ApplicationWillUpdate(notification foundation.Notification) - HasApplicationWillUpdate() bool - - // optional - ApplicationContinueUserActivityRestorationHandler(application Application, userActivity foundation.UserActivity, restorationHandler func(restorableObjects []UserActivityRestoringObject)) bool - HasApplicationContinueUserActivityRestorationHandler() bool - - // optional - ApplicationWillEncodeRestorableState(app Application, coder foundation.Coder) - HasApplicationWillEncodeRestorableState() bool - - // optional - ApplicationDelegateHandlesKey(sender Application, key string) bool - HasApplicationDelegateHandlesKey() bool - - // optional - ApplicationShouldAutomaticallyLocalizeKeyEquivalents(application Application) bool - HasApplicationShouldAutomaticallyLocalizeKeyEquivalents() bool - - // optional - ApplicationWillPresentError(application Application, error foundation.Error) foundation.Error - HasApplicationWillPresentError() bool - - // optional - ApplicationWillTerminate(notification foundation.Notification) - HasApplicationWillTerminate() bool - - // optional - ApplicationDidFailToContinueUserActivityWithTypeError(application Application, userActivityType string, error foundation.Error) - HasApplicationDidFailToContinueUserActivityWithTypeError() bool + ApplicationWillBecomeActive(notification foundation.Notification) + HasApplicationWillBecomeActive() bool // optional - ApplicationWillContinueUserActivityWithType(application Application, userActivityType string) bool - HasApplicationWillContinueUserActivityWithType() bool + ApplicationDockMenu(sender Application) Menu + HasApplicationDockMenu() bool // optional ApplicationWillFinishLaunching(notification foundation.Notification) HasApplicationWillFinishLaunching() bool // optional - ApplicationDidBecomeActive(notification foundation.Notification) - HasApplicationDidBecomeActive() bool - - // optional - ApplicationDidFailToRegisterForRemoteNotificationsWithError(application Application, error foundation.Error) - HasApplicationDidFailToRegisterForRemoteNotificationsWithError() bool + ApplicationShouldTerminateAfterLastWindowClosed(sender Application) bool + HasApplicationShouldTerminateAfterLastWindowClosed() bool // optional - ApplicationDidUpdate(notification foundation.Notification) - HasApplicationDidUpdate() bool + ApplicationProtectedDataWillBecomeUnavailable(notification foundation.Notification) + HasApplicationProtectedDataWillBecomeUnavailable() bool // optional - ApplicationDidChangeScreenParameters(notification foundation.Notification) - HasApplicationDidChangeScreenParameters() bool + ApplicationDidHide(notification foundation.Notification) + HasApplicationDidHide() bool // optional - ApplicationPrintFilesWithSettingsShowPrintPanels(application Application, fileNames []string, printSettings map[PrintInfoAttributeKey]objc.Object, showPrintPanels bool) ApplicationPrintReply - HasApplicationPrintFilesWithSettingsShowPrintPanels() bool + ApplicationWillResignActive(notification foundation.Notification) + HasApplicationWillResignActive() bool // optional - ApplicationHandlerForIntent(application Application, intent objc.Object) objc.Object - HasApplicationHandlerForIntent() bool + ApplicationDidBecomeActive(notification foundation.Notification) + HasApplicationDidBecomeActive() bool // optional - ApplicationUserDidAcceptCloudKitShareWithMetadata(application Application, metadata objc.Object) - HasApplicationUserDidAcceptCloudKitShareWithMetadata() bool + ApplicationProtectedDataDidBecomeAvailable(notification foundation.Notification) + HasApplicationProtectedDataDidBecomeAvailable() bool // optional - ApplicationDidDecodeRestorableState(app Application, coder foundation.Coder) - HasApplicationDidDecodeRestorableState() bool + ApplicationWillHide(notification foundation.Notification) + HasApplicationWillHide() bool // optional - ApplicationDidUpdateUserActivity(application Application, userActivity foundation.UserActivity) - HasApplicationDidUpdateUserActivity() bool + ApplicationWillUpdate(notification foundation.Notification) + HasApplicationWillUpdate() bool // optional - ApplicationDidResignActive(notification foundation.Notification) - HasApplicationDidResignActive() bool + ApplicationShouldOpenUntitledFile(sender Application) bool + HasApplicationShouldOpenUntitledFile() bool // optional - ApplicationDidRegisterForRemoteNotificationsWithDeviceToken(application Application, deviceToken []byte) - HasApplicationDidRegisterForRemoteNotificationsWithDeviceToken() bool + ApplicationSupportsSecureRestorableState(app Application) bool + HasApplicationSupportsSecureRestorableState() bool // optional - ApplicationOpenFiles(sender Application, filenames []string) - HasApplicationOpenFiles() bool + ApplicationWillUnhide(notification foundation.Notification) + HasApplicationWillUnhide() bool // optional - ApplicationProtectedDataWillBecomeUnavailable(notification foundation.Notification) - HasApplicationProtectedDataWillBecomeUnavailable() bool + ApplicationOpenUntitledFile(sender Application) bool + HasApplicationOpenUntitledFile() bool // optional - ApplicationOpenFileWithoutUI(sender objc.Object, filename string) bool - HasApplicationOpenFileWithoutUI() bool + ApplicationShouldAutomaticallyLocalizeKeyEquivalents(application Application) bool + HasApplicationShouldAutomaticallyLocalizeKeyEquivalents() bool // optional - ApplicationOpenTempFile(sender Application, filename string) bool - HasApplicationOpenTempFile() bool + ApplicationDidDecodeRestorableState(app Application, coder foundation.Coder) + HasApplicationDidDecodeRestorableState() bool // optional - ApplicationDidHide(notification foundation.Notification) - HasApplicationDidHide() bool + ApplicationDidUpdate(notification foundation.Notification) + HasApplicationDidUpdate() bool // optional - ApplicationShouldOpenUntitledFile(sender Application) bool - HasApplicationShouldOpenUntitledFile() bool + ApplicationDidChangeOcclusionState(notification foundation.Notification) + HasApplicationDidChangeOcclusionState() bool // optional - ApplicationWillBecomeActive(notification foundation.Notification) - HasApplicationWillBecomeActive() bool + ApplicationDidChangeScreenParameters(notification foundation.Notification) + HasApplicationDidChangeScreenParameters() bool // optional - ApplicationDidFinishLaunching(notification foundation.Notification) - HasApplicationDidFinishLaunching() bool + ApplicationWillTerminate(notification foundation.Notification) + HasApplicationWillTerminate() bool // optional ApplicationDidUnhide(notification foundation.Notification) HasApplicationDidUnhide() bool // optional - ApplicationWillUnhide(notification foundation.Notification) - HasApplicationWillUnhide() bool - - // optional - ApplicationOpenUntitledFile(sender Application) bool - HasApplicationOpenUntitledFile() bool - - // optional - ApplicationPrintFile(sender Application, filename string) bool - HasApplicationPrintFile() bool + ApplicationShouldHandleReopenHasVisibleWindows(sender Application, flag bool) bool + HasApplicationShouldHandleReopenHasVisibleWindows() bool } // A delegate implementation builder for the [PApplicationDelegate] protocol. type ApplicationDelegate struct { - _ApplicationWillResignActive func(notification foundation.Notification) - _ApplicationWillHide func(notification foundation.Notification) - _ApplicationDockMenu func(sender Application) Menu - _ApplicationDidChangeOcclusionState func(notification foundation.Notification) - _ApplicationShouldTerminate func(sender Application) ApplicationTerminateReply - _ApplicationShouldTerminateAfterLastWindowClosed func(sender Application) bool - _ApplicationSupportsSecureRestorableState func(app Application) bool - _ApplicationDidReceiveRemoteNotification func(application Application, userInfo map[string]objc.Object) - _ApplicationProtectedDataDidBecomeAvailable func(notification foundation.Notification) - _ApplicationShouldHandleReopenHasVisibleWindows func(sender Application, flag bool) bool - _ApplicationOpenURLs func(application Application, urls []foundation.URL) - _ApplicationOpenFile func(sender Application, filename string) bool - _ApplicationWillUpdate func(notification foundation.Notification) - _ApplicationContinueUserActivityRestorationHandler func(application Application, userActivity foundation.UserActivity, restorationHandler func(restorableObjects []UserActivityRestoringObject)) bool - _ApplicationWillEncodeRestorableState func(app Application, coder foundation.Coder) - _ApplicationDelegateHandlesKey func(sender Application, key string) bool - _ApplicationShouldAutomaticallyLocalizeKeyEquivalents func(application Application) bool - _ApplicationWillPresentError func(application Application, error foundation.Error) foundation.Error - _ApplicationWillTerminate func(notification foundation.Notification) - _ApplicationDidFailToContinueUserActivityWithTypeError func(application Application, userActivityType string, error foundation.Error) - _ApplicationWillContinueUserActivityWithType func(application Application, userActivityType string) bool - _ApplicationWillFinishLaunching func(notification foundation.Notification) - _ApplicationDidBecomeActive func(notification foundation.Notification) - _ApplicationDidFailToRegisterForRemoteNotificationsWithError func(application Application, error foundation.Error) - _ApplicationDidUpdate func(notification foundation.Notification) - _ApplicationDidChangeScreenParameters func(notification foundation.Notification) - _ApplicationPrintFilesWithSettingsShowPrintPanels func(application Application, fileNames []string, printSettings map[PrintInfoAttributeKey]objc.Object, showPrintPanels bool) ApplicationPrintReply - _ApplicationHandlerForIntent func(application Application, intent objc.Object) objc.Object - _ApplicationUserDidAcceptCloudKitShareWithMetadata func(application Application, metadata objc.Object) - _ApplicationDidDecodeRestorableState func(app Application, coder foundation.Coder) - _ApplicationDidUpdateUserActivity func(application Application, userActivity foundation.UserActivity) - _ApplicationDidResignActive func(notification foundation.Notification) - _ApplicationDidRegisterForRemoteNotificationsWithDeviceToken func(application Application, deviceToken []byte) - _ApplicationOpenFiles func(sender Application, filenames []string) - _ApplicationProtectedDataWillBecomeUnavailable func(notification foundation.Notification) - _ApplicationOpenFileWithoutUI func(sender objc.Object, filename string) bool - _ApplicationOpenTempFile func(sender Application, filename string) bool - _ApplicationDidHide func(notification foundation.Notification) - _ApplicationShouldOpenUntitledFile func(sender Application) bool - _ApplicationWillBecomeActive func(notification foundation.Notification) - _ApplicationDidFinishLaunching func(notification foundation.Notification) - _ApplicationDidUnhide func(notification foundation.Notification) - _ApplicationWillUnhide func(notification foundation.Notification) - _ApplicationOpenUntitledFile func(sender Application) bool - _ApplicationPrintFile func(sender Application, filename string) bool + _ApplicationDidResignActive func(notification foundation.Notification) + _ApplicationDidFinishLaunching func(notification foundation.Notification) + _ApplicationShouldTerminate func(sender Application) ApplicationTerminateReply + _ApplicationWillBecomeActive func(notification foundation.Notification) + _ApplicationDockMenu func(sender Application) Menu + _ApplicationWillFinishLaunching func(notification foundation.Notification) + _ApplicationShouldTerminateAfterLastWindowClosed func(sender Application) bool + _ApplicationProtectedDataWillBecomeUnavailable func(notification foundation.Notification) + _ApplicationDidHide func(notification foundation.Notification) + _ApplicationWillResignActive func(notification foundation.Notification) + _ApplicationDidBecomeActive func(notification foundation.Notification) + _ApplicationProtectedDataDidBecomeAvailable func(notification foundation.Notification) + _ApplicationWillHide func(notification foundation.Notification) + _ApplicationWillUpdate func(notification foundation.Notification) + _ApplicationShouldOpenUntitledFile func(sender Application) bool + _ApplicationSupportsSecureRestorableState func(app Application) bool + _ApplicationWillUnhide func(notification foundation.Notification) + _ApplicationOpenUntitledFile func(sender Application) bool + _ApplicationShouldAutomaticallyLocalizeKeyEquivalents func(application Application) bool + _ApplicationDidDecodeRestorableState func(app Application, coder foundation.Coder) + _ApplicationDidUpdate func(notification foundation.Notification) + _ApplicationDidChangeOcclusionState func(notification foundation.Notification) + _ApplicationDidChangeScreenParameters func(notification foundation.Notification) + _ApplicationWillTerminate func(notification foundation.Notification) + _ApplicationDidUnhide func(notification foundation.Notification) + _ApplicationShouldHandleReopenHasVisibleWindows func(sender Application, flag bool) bool } -func (di *ApplicationDelegate) HasApplicationWillResignActive() bool { - return di._ApplicationWillResignActive != nil +func (di *ApplicationDelegate) HasApplicationDidResignActive() bool { + return di._ApplicationDidResignActive != nil } -// Tells the delegate that the app is about to become inactive and will lose focus. [Full Topic] +// Tells the delegate that the app is no longer active and doesn’t have focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428539-applicationwillresignactive?language=objc -func (di *ApplicationDelegate) SetApplicationWillResignActive(f func(notification foundation.Notification)) { - di._ApplicationWillResignActive = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428636-applicationdidresignactive?language=objc +func (di *ApplicationDelegate) SetApplicationDidResignActive(f func(notification foundation.Notification)) { + di._ApplicationDidResignActive = f } -// Tells the delegate that the app is about to become inactive and will lose focus. [Full Topic] +// Tells the delegate that the app is no longer active and doesn’t have focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428539-applicationwillresignactive?language=objc -func (di *ApplicationDelegate) ApplicationWillResignActive(notification foundation.Notification) { - di._ApplicationWillResignActive(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428636-applicationdidresignactive?language=objc +func (di *ApplicationDelegate) ApplicationDidResignActive(notification foundation.Notification) { + di._ApplicationDidResignActive(notification) } -func (di *ApplicationDelegate) HasApplicationWillHide() bool { - return di._ApplicationWillHide != nil +func (di *ApplicationDelegate) HasApplicationDidFinishLaunching() bool { + return di._ApplicationDidFinishLaunching != nil } -// Tells the delegate that the app is about to be hidden. [Full Topic] +// Tells the delegate that the app’s initialization is complete but it hasn’t received its first event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428478-applicationwillhide?language=objc -func (di *ApplicationDelegate) SetApplicationWillHide(f func(notification foundation.Notification)) { - di._ApplicationWillHide = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428385-applicationdidfinishlaunching?language=objc +func (di *ApplicationDelegate) SetApplicationDidFinishLaunching(f func(notification foundation.Notification)) { + di._ApplicationDidFinishLaunching = f } -// Tells the delegate that the app is about to be hidden. [Full Topic] +// Tells the delegate that the app’s initialization is complete but it hasn’t received its first event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428478-applicationwillhide?language=objc -func (di *ApplicationDelegate) ApplicationWillHide(notification foundation.Notification) { - di._ApplicationWillHide(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428385-applicationdidfinishlaunching?language=objc +func (di *ApplicationDelegate) ApplicationDidFinishLaunching(notification foundation.Notification) { + di._ApplicationDidFinishLaunching(notification) +} +func (di *ApplicationDelegate) HasApplicationShouldTerminate() bool { + return di._ApplicationShouldTerminate != nil +} + +// Returns a value that indicates if the app should terminate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428642-applicationshouldterminate?language=objc +func (di *ApplicationDelegate) SetApplicationShouldTerminate(f func(sender Application) ApplicationTerminateReply) { + di._ApplicationShouldTerminate = f +} + +// Returns a value that indicates if the app should terminate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428642-applicationshouldterminate?language=objc +func (di *ApplicationDelegate) ApplicationShouldTerminate(sender Application) ApplicationTerminateReply { + return di._ApplicationShouldTerminate(sender) +} +func (di *ApplicationDelegate) HasApplicationWillBecomeActive() bool { + return di._ApplicationWillBecomeActive != nil +} + +// Tells the delegate that the app is about to become active. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428699-applicationwillbecomeactive?language=objc +func (di *ApplicationDelegate) SetApplicationWillBecomeActive(f func(notification foundation.Notification)) { + di._ApplicationWillBecomeActive = f +} + +// Tells the delegate that the app is about to become active. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428699-applicationwillbecomeactive?language=objc +func (di *ApplicationDelegate) ApplicationWillBecomeActive(notification foundation.Notification) { + di._ApplicationWillBecomeActive(notification) } func (di *ApplicationDelegate) HasApplicationDockMenu() bool { return di._ApplicationDockMenu != nil @@ -292,39 +231,22 @@ func (di *ApplicationDelegate) SetApplicationDockMenu(f func(sender Application) func (di *ApplicationDelegate) ApplicationDockMenu(sender Application) Menu { return di._ApplicationDockMenu(sender) } -func (di *ApplicationDelegate) HasApplicationDidChangeOcclusionState() bool { - return di._ApplicationDidChangeOcclusionState != nil -} - -// Tells the delegate about changes to the app’s occlusion state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428362-applicationdidchangeocclusionsta?language=objc -func (di *ApplicationDelegate) SetApplicationDidChangeOcclusionState(f func(notification foundation.Notification)) { - di._ApplicationDidChangeOcclusionState = f -} - -// Tells the delegate about changes to the app’s occlusion state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428362-applicationdidchangeocclusionsta?language=objc -func (di *ApplicationDelegate) ApplicationDidChangeOcclusionState(notification foundation.Notification) { - di._ApplicationDidChangeOcclusionState(notification) -} -func (di *ApplicationDelegate) HasApplicationShouldTerminate() bool { - return di._ApplicationShouldTerminate != nil +func (di *ApplicationDelegate) HasApplicationWillFinishLaunching() bool { + return di._ApplicationWillFinishLaunching != nil } -// Returns a value that indicates if the app should terminate. [Full Topic] +// Tells the delegate that the app’s initialization is about to complete. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428642-applicationshouldterminate?language=objc -func (di *ApplicationDelegate) SetApplicationShouldTerminate(f func(sender Application) ApplicationTerminateReply) { - di._ApplicationShouldTerminate = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428623-applicationwillfinishlaunching?language=objc +func (di *ApplicationDelegate) SetApplicationWillFinishLaunching(f func(notification foundation.Notification)) { + di._ApplicationWillFinishLaunching = f } -// Returns a value that indicates if the app should terminate. [Full Topic] +// Tells the delegate that the app’s initialization is about to complete. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428642-applicationshouldterminate?language=objc -func (di *ApplicationDelegate) ApplicationShouldTerminate(sender Application) ApplicationTerminateReply { - return di._ApplicationShouldTerminate(sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428623-applicationwillfinishlaunching?language=objc +func (di *ApplicationDelegate) ApplicationWillFinishLaunching(notification foundation.Notification) { + di._ApplicationWillFinishLaunching(notification) } func (di *ApplicationDelegate) HasApplicationShouldTerminateAfterLastWindowClosed() bool { return di._ApplicationShouldTerminateAfterLastWindowClosed != nil @@ -343,277 +265,56 @@ func (di *ApplicationDelegate) SetApplicationShouldTerminateAfterLastWindowClose func (di *ApplicationDelegate) ApplicationShouldTerminateAfterLastWindowClosed(sender Application) bool { return di._ApplicationShouldTerminateAfterLastWindowClosed(sender) } -func (di *ApplicationDelegate) HasApplicationSupportsSecureRestorableState() bool { - return di._ApplicationSupportsSecureRestorableState != nil +func (di *ApplicationDelegate) HasApplicationProtectedDataWillBecomeUnavailable() bool { + return di._ApplicationProtectedDataWillBecomeUnavailable != nil } -// Returns a Boolean value that indicates if the app supports secure state restoration. [Full Topic] +// Tells the delegate that protected data is about to become unavailable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3762521-applicationsupportssecurerestora?language=objc -func (di *ApplicationDelegate) SetApplicationSupportsSecureRestorableState(f func(app Application) bool) { - di._ApplicationSupportsSecureRestorableState = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752994-applicationprotecteddatawillbeco?language=objc +func (di *ApplicationDelegate) SetApplicationProtectedDataWillBecomeUnavailable(f func(notification foundation.Notification)) { + di._ApplicationProtectedDataWillBecomeUnavailable = f } -// Returns a Boolean value that indicates if the app supports secure state restoration. [Full Topic] +// Tells the delegate that protected data is about to become unavailable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3762521-applicationsupportssecurerestora?language=objc -func (di *ApplicationDelegate) ApplicationSupportsSecureRestorableState(app Application) bool { - return di._ApplicationSupportsSecureRestorableState(app) -} -func (di *ApplicationDelegate) HasApplicationDidReceiveRemoteNotification() bool { - return di._ApplicationDidReceiveRemoteNotification != nil -} - -// Tells the delegate when the app receives a remote notification. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428430-application?language=objc -func (di *ApplicationDelegate) SetApplicationDidReceiveRemoteNotification(f func(application Application, userInfo map[string]objc.Object)) { - di._ApplicationDidReceiveRemoteNotification = f -} - -// Tells the delegate when the app receives a remote notification. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428430-application?language=objc -func (di *ApplicationDelegate) ApplicationDidReceiveRemoteNotification(application Application, userInfo map[string]objc.Object) { - di._ApplicationDidReceiveRemoteNotification(application, userInfo) -} -func (di *ApplicationDelegate) HasApplicationProtectedDataDidBecomeAvailable() bool { - return di._ApplicationProtectedDataDidBecomeAvailable != nil -} - -// Tells the delegate that protected data is now available. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752993-applicationprotecteddatadidbecom?language=objc -func (di *ApplicationDelegate) SetApplicationProtectedDataDidBecomeAvailable(f func(notification foundation.Notification)) { - di._ApplicationProtectedDataDidBecomeAvailable = f -} - -// Tells the delegate that protected data is now available. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752993-applicationprotecteddatadidbecom?language=objc -func (di *ApplicationDelegate) ApplicationProtectedDataDidBecomeAvailable(notification foundation.Notification) { - di._ApplicationProtectedDataDidBecomeAvailable(notification) -} -func (di *ApplicationDelegate) HasApplicationShouldHandleReopenHasVisibleWindows() bool { - return di._ApplicationShouldHandleReopenHasVisibleWindows != nil -} - -// Returns a Boolean value that indicates if the app responds to reopen AppleEvents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428638-applicationshouldhandlereopen?language=objc -func (di *ApplicationDelegate) SetApplicationShouldHandleReopenHasVisibleWindows(f func(sender Application, flag bool) bool) { - di._ApplicationShouldHandleReopenHasVisibleWindows = f -} - -// Returns a Boolean value that indicates if the app responds to reopen AppleEvents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428638-applicationshouldhandlereopen?language=objc -func (di *ApplicationDelegate) ApplicationShouldHandleReopenHasVisibleWindows(sender Application, flag bool) bool { - return di._ApplicationShouldHandleReopenHasVisibleWindows(sender, flag) -} -func (di *ApplicationDelegate) HasApplicationOpenURLs() bool { - return di._ApplicationOpenURLs != nil -} - -// Tells the delegate to open the resource at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/2887193-application?language=objc -func (di *ApplicationDelegate) SetApplicationOpenURLs(f func(application Application, urls []foundation.URL)) { - di._ApplicationOpenURLs = f -} - -// Tells the delegate to open the resource at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/2887193-application?language=objc -func (di *ApplicationDelegate) ApplicationOpenURLs(application Application, urls []foundation.URL) { - di._ApplicationOpenURLs(application, urls) -} -func (di *ApplicationDelegate) HasApplicationOpenFile() bool { - return di._ApplicationOpenFile != nil -} - -// Returns a Boolean value that indicates if the app opens the specified file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428612-application?language=objc -func (di *ApplicationDelegate) SetApplicationOpenFile(f func(sender Application, filename string) bool) { - di._ApplicationOpenFile = f -} - -// Returns a Boolean value that indicates if the app opens the specified file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428612-application?language=objc -func (di *ApplicationDelegate) ApplicationOpenFile(sender Application, filename string) bool { - return di._ApplicationOpenFile(sender, filename) -} -func (di *ApplicationDelegate) HasApplicationWillUpdate() bool { - return di._ApplicationWillUpdate != nil -} - -// Tells the delegate that the app is about to update its windows. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428774-applicationwillupdate?language=objc -func (di *ApplicationDelegate) SetApplicationWillUpdate(f func(notification foundation.Notification)) { - di._ApplicationWillUpdate = f -} - -// Tells the delegate that the app is about to update its windows. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428774-applicationwillupdate?language=objc -func (di *ApplicationDelegate) ApplicationWillUpdate(notification foundation.Notification) { - di._ApplicationWillUpdate(notification) -} -func (di *ApplicationDelegate) HasApplicationContinueUserActivityRestorationHandler() bool { - return di._ApplicationContinueUserActivityRestorationHandler != nil -} - -// Returns a Boolean value that indicates if the app successfully recreates the specified activity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428471-application?language=objc -func (di *ApplicationDelegate) SetApplicationContinueUserActivityRestorationHandler(f func(application Application, userActivity foundation.UserActivity, restorationHandler func(restorableObjects []UserActivityRestoringObject)) bool) { - di._ApplicationContinueUserActivityRestorationHandler = f -} - -// Returns a Boolean value that indicates if the app successfully recreates the specified activity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428471-application?language=objc -func (di *ApplicationDelegate) ApplicationContinueUserActivityRestorationHandler(application Application, userActivity foundation.UserActivity, restorationHandler func(restorableObjects []UserActivityRestoringObject)) bool { - return di._ApplicationContinueUserActivityRestorationHandler(application, userActivity, restorationHandler) -} -func (di *ApplicationDelegate) HasApplicationWillEncodeRestorableState() bool { - return di._ApplicationWillEncodeRestorableState != nil -} - -// Tells the delegate that the app is about to encode its restorable state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428400-application?language=objc -func (di *ApplicationDelegate) SetApplicationWillEncodeRestorableState(f func(app Application, coder foundation.Coder)) { - di._ApplicationWillEncodeRestorableState = f -} - -// Tells the delegate that the app is about to encode its restorable state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428400-application?language=objc -func (di *ApplicationDelegate) ApplicationWillEncodeRestorableState(app Application, coder foundation.Coder) { - di._ApplicationWillEncodeRestorableState(app, coder) -} -func (di *ApplicationDelegate) HasApplicationDelegateHandlesKey() bool { - return di._ApplicationDelegateHandlesKey != nil -} - -// Returns a Boolean value that indicates if the app supports the specified scripting key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3005173-application?language=objc -func (di *ApplicationDelegate) SetApplicationDelegateHandlesKey(f func(sender Application, key string) bool) { - di._ApplicationDelegateHandlesKey = f -} - -// Returns a Boolean value that indicates if the app supports the specified scripting key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3005173-application?language=objc -func (di *ApplicationDelegate) ApplicationDelegateHandlesKey(sender Application, key string) bool { - return di._ApplicationDelegateHandlesKey(sender, key) -} -func (di *ApplicationDelegate) HasApplicationShouldAutomaticallyLocalizeKeyEquivalents() bool { - return di._ApplicationShouldAutomaticallyLocalizeKeyEquivalents != nil -} - -// Returns a Boolean value that tells the system whether to remap menu shortcuts to support localized keyboards. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3787553-applicationshouldautomaticallylo?language=objc -func (di *ApplicationDelegate) SetApplicationShouldAutomaticallyLocalizeKeyEquivalents(f func(application Application) bool) { - di._ApplicationShouldAutomaticallyLocalizeKeyEquivalents = f -} - -// Returns a Boolean value that tells the system whether to remap menu shortcuts to support localized keyboards. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3787553-applicationshouldautomaticallylo?language=objc -func (di *ApplicationDelegate) ApplicationShouldAutomaticallyLocalizeKeyEquivalents(application Application) bool { - return di._ApplicationShouldAutomaticallyLocalizeKeyEquivalents(application) -} -func (di *ApplicationDelegate) HasApplicationWillPresentError() bool { - return di._ApplicationWillPresentError != nil -} - -// Returns an error for the app to display to the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428721-application?language=objc -func (di *ApplicationDelegate) SetApplicationWillPresentError(f func(application Application, error foundation.Error) foundation.Error) { - di._ApplicationWillPresentError = f -} - -// Returns an error for the app to display to the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428721-application?language=objc -func (di *ApplicationDelegate) ApplicationWillPresentError(application Application, error foundation.Error) foundation.Error { - return di._ApplicationWillPresentError(application, error) -} -func (di *ApplicationDelegate) HasApplicationWillTerminate() bool { - return di._ApplicationWillTerminate != nil -} - -// Tells the delegate that the app is about to terminate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428522-applicationwillterminate?language=objc -func (di *ApplicationDelegate) SetApplicationWillTerminate(f func(notification foundation.Notification)) { - di._ApplicationWillTerminate = f -} - -// Tells the delegate that the app is about to terminate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428522-applicationwillterminate?language=objc -func (di *ApplicationDelegate) ApplicationWillTerminate(notification foundation.Notification) { - di._ApplicationWillTerminate(notification) -} -func (di *ApplicationDelegate) HasApplicationDidFailToContinueUserActivityWithTypeError() bool { - return di._ApplicationDidFailToContinueUserActivityWithTypeError != nil -} - -// Tells the delegate that the app couldn’t continue the specified activity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428613-application?language=objc -func (di *ApplicationDelegate) SetApplicationDidFailToContinueUserActivityWithTypeError(f func(application Application, userActivityType string, error foundation.Error)) { - di._ApplicationDidFailToContinueUserActivityWithTypeError = f -} - -// Tells the delegate that the app couldn’t continue the specified activity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428613-application?language=objc -func (di *ApplicationDelegate) ApplicationDidFailToContinueUserActivityWithTypeError(application Application, userActivityType string, error foundation.Error) { - di._ApplicationDidFailToContinueUserActivityWithTypeError(application, userActivityType, error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752994-applicationprotecteddatawillbeco?language=objc +func (di *ApplicationDelegate) ApplicationProtectedDataWillBecomeUnavailable(notification foundation.Notification) { + di._ApplicationProtectedDataWillBecomeUnavailable(notification) } -func (di *ApplicationDelegate) HasApplicationWillContinueUserActivityWithType() bool { - return di._ApplicationWillContinueUserActivityWithType != nil +func (di *ApplicationDelegate) HasApplicationDidHide() bool { + return di._ApplicationDidHide != nil } -// Returns a Boolean value that indicates if the app can continue the specified activity. [Full Topic] +// Tells the delegate that the app is now hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428364-application?language=objc -func (di *ApplicationDelegate) SetApplicationWillContinueUserActivityWithType(f func(application Application, userActivityType string) bool) { - di._ApplicationWillContinueUserActivityWithType = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428552-applicationdidhide?language=objc +func (di *ApplicationDelegate) SetApplicationDidHide(f func(notification foundation.Notification)) { + di._ApplicationDidHide = f } -// Returns a Boolean value that indicates if the app can continue the specified activity. [Full Topic] +// Tells the delegate that the app is now hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428364-application?language=objc -func (di *ApplicationDelegate) ApplicationWillContinueUserActivityWithType(application Application, userActivityType string) bool { - return di._ApplicationWillContinueUserActivityWithType(application, userActivityType) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428552-applicationdidhide?language=objc +func (di *ApplicationDelegate) ApplicationDidHide(notification foundation.Notification) { + di._ApplicationDidHide(notification) } -func (di *ApplicationDelegate) HasApplicationWillFinishLaunching() bool { - return di._ApplicationWillFinishLaunching != nil +func (di *ApplicationDelegate) HasApplicationWillResignActive() bool { + return di._ApplicationWillResignActive != nil } -// Tells the delegate that the app’s initialization is about to complete. [Full Topic] +// Tells the delegate that the app is about to become inactive and will lose focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428623-applicationwillfinishlaunching?language=objc -func (di *ApplicationDelegate) SetApplicationWillFinishLaunching(f func(notification foundation.Notification)) { - di._ApplicationWillFinishLaunching = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428539-applicationwillresignactive?language=objc +func (di *ApplicationDelegate) SetApplicationWillResignActive(f func(notification foundation.Notification)) { + di._ApplicationWillResignActive = f } -// Tells the delegate that the app’s initialization is about to complete. [Full Topic] +// Tells the delegate that the app is about to become inactive and will lose focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428623-applicationwillfinishlaunching?language=objc -func (di *ApplicationDelegate) ApplicationWillFinishLaunching(notification foundation.Notification) { - di._ApplicationWillFinishLaunching(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428539-applicationwillresignactive?language=objc +func (di *ApplicationDelegate) ApplicationWillResignActive(notification foundation.Notification) { + di._ApplicationWillResignActive(notification) } func (di *ApplicationDelegate) HasApplicationDidBecomeActive() bool { return di._ApplicationDidBecomeActive != nil @@ -632,260 +333,56 @@ func (di *ApplicationDelegate) SetApplicationDidBecomeActive(f func(notification func (di *ApplicationDelegate) ApplicationDidBecomeActive(notification foundation.Notification) { di._ApplicationDidBecomeActive(notification) } -func (di *ApplicationDelegate) HasApplicationDidFailToRegisterForRemoteNotificationsWithError() bool { - return di._ApplicationDidFailToRegisterForRemoteNotificationsWithError != nil -} - -// Tells the delegate that the app was unable to register for Apple Push Services. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428554-application?language=objc -func (di *ApplicationDelegate) SetApplicationDidFailToRegisterForRemoteNotificationsWithError(f func(application Application, error foundation.Error)) { - di._ApplicationDidFailToRegisterForRemoteNotificationsWithError = f -} - -// Tells the delegate that the app was unable to register for Apple Push Services. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428554-application?language=objc -func (di *ApplicationDelegate) ApplicationDidFailToRegisterForRemoteNotificationsWithError(application Application, error foundation.Error) { - di._ApplicationDidFailToRegisterForRemoteNotificationsWithError(application, error) -} -func (di *ApplicationDelegate) HasApplicationDidUpdate() bool { - return di._ApplicationDidUpdate != nil -} - -// Tells the delegate that the app’s windows did update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428589-applicationdidupdate?language=objc -func (di *ApplicationDelegate) SetApplicationDidUpdate(f func(notification foundation.Notification)) { - di._ApplicationDidUpdate = f -} - -// Tells the delegate that the app’s windows did update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428589-applicationdidupdate?language=objc -func (di *ApplicationDelegate) ApplicationDidUpdate(notification foundation.Notification) { - di._ApplicationDidUpdate(notification) -} -func (di *ApplicationDelegate) HasApplicationDidChangeScreenParameters() bool { - return di._ApplicationDidChangeScreenParameters != nil -} - -// Tells the delegate about changes to the configuration of any attached displays. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428424-applicationdidchangescreenparame?language=objc -func (di *ApplicationDelegate) SetApplicationDidChangeScreenParameters(f func(notification foundation.Notification)) { - di._ApplicationDidChangeScreenParameters = f -} - -// Tells the delegate about changes to the configuration of any attached displays. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428424-applicationdidchangescreenparame?language=objc -func (di *ApplicationDelegate) ApplicationDidChangeScreenParameters(notification foundation.Notification) { - di._ApplicationDidChangeScreenParameters(notification) -} -func (di *ApplicationDelegate) HasApplicationPrintFilesWithSettingsShowPrintPanels() bool { - return di._ApplicationPrintFilesWithSettingsShowPrintPanels != nil -} - -// Returns a value that indicates if the app prints the specified files. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428713-application?language=objc -func (di *ApplicationDelegate) SetApplicationPrintFilesWithSettingsShowPrintPanels(f func(application Application, fileNames []string, printSettings map[PrintInfoAttributeKey]objc.Object, showPrintPanels bool) ApplicationPrintReply) { - di._ApplicationPrintFilesWithSettingsShowPrintPanels = f -} - -// Returns a value that indicates if the app prints the specified files. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428713-application?language=objc -func (di *ApplicationDelegate) ApplicationPrintFilesWithSettingsShowPrintPanels(application Application, fileNames []string, printSettings map[PrintInfoAttributeKey]objc.Object, showPrintPanels bool) ApplicationPrintReply { - return di._ApplicationPrintFilesWithSettingsShowPrintPanels(application, fileNames, printSettings, showPrintPanels) -} -func (di *ApplicationDelegate) HasApplicationHandlerForIntent() bool { - return di._ApplicationHandlerForIntent != nil -} - -// Returns an intent handler that’s capable of handling the specified intent. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3786062-application?language=objc -func (di *ApplicationDelegate) SetApplicationHandlerForIntent(f func(application Application, intent objc.Object) objc.Object) { - di._ApplicationHandlerForIntent = f -} - -// Returns an intent handler that’s capable of handling the specified intent. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3786062-application?language=objc -func (di *ApplicationDelegate) ApplicationHandlerForIntent(application Application, intent objc.Object) objc.Object { - return di._ApplicationHandlerForIntent(application, intent) -} -func (di *ApplicationDelegate) HasApplicationUserDidAcceptCloudKitShareWithMetadata() bool { - return di._ApplicationUserDidAcceptCloudKitShareWithMetadata != nil -} - -// Tells the delegate when the user accepts a CloudKit sharing invitation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/2138329-application?language=objc -func (di *ApplicationDelegate) SetApplicationUserDidAcceptCloudKitShareWithMetadata(f func(application Application, metadata objc.Object)) { - di._ApplicationUserDidAcceptCloudKitShareWithMetadata = f -} - -// Tells the delegate when the user accepts a CloudKit sharing invitation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/2138329-application?language=objc -func (di *ApplicationDelegate) ApplicationUserDidAcceptCloudKitShareWithMetadata(application Application, metadata objc.Object) { - di._ApplicationUserDidAcceptCloudKitShareWithMetadata(application, metadata) -} -func (di *ApplicationDelegate) HasApplicationDidDecodeRestorableState() bool { - return di._ApplicationDidDecodeRestorableState != nil -} - -// Tells the delegate when the app finished decoding its restorable state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428693-application?language=objc -func (di *ApplicationDelegate) SetApplicationDidDecodeRestorableState(f func(app Application, coder foundation.Coder)) { - di._ApplicationDidDecodeRestorableState = f -} - -// Tells the delegate when the app finished decoding its restorable state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428693-application?language=objc -func (di *ApplicationDelegate) ApplicationDidDecodeRestorableState(app Application, coder foundation.Coder) { - di._ApplicationDidDecodeRestorableState(app, coder) -} -func (di *ApplicationDelegate) HasApplicationDidUpdateUserActivity() bool { - return di._ApplicationDidUpdateUserActivity != nil -} - -// Tells the delegate that there are changes to the specified activity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428457-application?language=objc -func (di *ApplicationDelegate) SetApplicationDidUpdateUserActivity(f func(application Application, userActivity foundation.UserActivity)) { - di._ApplicationDidUpdateUserActivity = f -} - -// Tells the delegate that there are changes to the specified activity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428457-application?language=objc -func (di *ApplicationDelegate) ApplicationDidUpdateUserActivity(application Application, userActivity foundation.UserActivity) { - di._ApplicationDidUpdateUserActivity(application, userActivity) -} -func (di *ApplicationDelegate) HasApplicationDidResignActive() bool { - return di._ApplicationDidResignActive != nil -} - -// Tells the delegate that the app is no longer active and doesn’t have focus. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428636-applicationdidresignactive?language=objc -func (di *ApplicationDelegate) SetApplicationDidResignActive(f func(notification foundation.Notification)) { - di._ApplicationDidResignActive = f -} - -// Tells the delegate that the app is no longer active and doesn’t have focus. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428636-applicationdidresignactive?language=objc -func (di *ApplicationDelegate) ApplicationDidResignActive(notification foundation.Notification) { - di._ApplicationDidResignActive(notification) -} -func (di *ApplicationDelegate) HasApplicationDidRegisterForRemoteNotificationsWithDeviceToken() bool { - return di._ApplicationDidRegisterForRemoteNotificationsWithDeviceToken != nil -} - -// Tells the delegate that the app registered for Apple Push Services. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428766-application?language=objc -func (di *ApplicationDelegate) SetApplicationDidRegisterForRemoteNotificationsWithDeviceToken(f func(application Application, deviceToken []byte)) { - di._ApplicationDidRegisterForRemoteNotificationsWithDeviceToken = f -} - -// Tells the delegate that the app registered for Apple Push Services. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428766-application?language=objc -func (di *ApplicationDelegate) ApplicationDidRegisterForRemoteNotificationsWithDeviceToken(application Application, deviceToken []byte) { - di._ApplicationDidRegisterForRemoteNotificationsWithDeviceToken(application, deviceToken) -} -func (di *ApplicationDelegate) HasApplicationOpenFiles() bool { - return di._ApplicationOpenFiles != nil -} - -// Tells the delegate to open the specified files. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428742-application?language=objc -func (di *ApplicationDelegate) SetApplicationOpenFiles(f func(sender Application, filenames []string)) { - di._ApplicationOpenFiles = f -} - -// Tells the delegate to open the specified files. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428742-application?language=objc -func (di *ApplicationDelegate) ApplicationOpenFiles(sender Application, filenames []string) { - di._ApplicationOpenFiles(sender, filenames) -} -func (di *ApplicationDelegate) HasApplicationProtectedDataWillBecomeUnavailable() bool { - return di._ApplicationProtectedDataWillBecomeUnavailable != nil -} - -// Tells the delegate that protected data is about to become unavailable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752994-applicationprotecteddatawillbeco?language=objc -func (di *ApplicationDelegate) SetApplicationProtectedDataWillBecomeUnavailable(f func(notification foundation.Notification)) { - di._ApplicationProtectedDataWillBecomeUnavailable = f -} - -// Tells the delegate that protected data is about to become unavailable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752994-applicationprotecteddatawillbeco?language=objc -func (di *ApplicationDelegate) ApplicationProtectedDataWillBecomeUnavailable(notification foundation.Notification) { - di._ApplicationProtectedDataWillBecomeUnavailable(notification) -} -func (di *ApplicationDelegate) HasApplicationOpenFileWithoutUI() bool { - return di._ApplicationOpenFileWithoutUI != nil +func (di *ApplicationDelegate) HasApplicationProtectedDataDidBecomeAvailable() bool { + return di._ApplicationProtectedDataDidBecomeAvailable != nil } -// Returns a Boolean value that indicates if the app opens the specified file without showing its user interface. [Full Topic] +// Tells the delegate that protected data is now available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428459-application?language=objc -func (di *ApplicationDelegate) SetApplicationOpenFileWithoutUI(f func(sender objc.Object, filename string) bool) { - di._ApplicationOpenFileWithoutUI = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752993-applicationprotecteddatadidbecom?language=objc +func (di *ApplicationDelegate) SetApplicationProtectedDataDidBecomeAvailable(f func(notification foundation.Notification)) { + di._ApplicationProtectedDataDidBecomeAvailable = f } -// Returns a Boolean value that indicates if the app opens the specified file without showing its user interface. [Full Topic] +// Tells the delegate that protected data is now available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428459-application?language=objc -func (di *ApplicationDelegate) ApplicationOpenFileWithoutUI(sender objc.Object, filename string) bool { - return di._ApplicationOpenFileWithoutUI(sender, filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752993-applicationprotecteddatadidbecom?language=objc +func (di *ApplicationDelegate) ApplicationProtectedDataDidBecomeAvailable(notification foundation.Notification) { + di._ApplicationProtectedDataDidBecomeAvailable(notification) } -func (di *ApplicationDelegate) HasApplicationOpenTempFile() bool { - return di._ApplicationOpenTempFile != nil +func (di *ApplicationDelegate) HasApplicationWillHide() bool { + return di._ApplicationWillHide != nil } -// Returns a Boolean value that indicates if the app opens the specified temporary file. [Full Topic] +// Tells the delegate that the app is about to be hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428495-application?language=objc -func (di *ApplicationDelegate) SetApplicationOpenTempFile(f func(sender Application, filename string) bool) { - di._ApplicationOpenTempFile = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428478-applicationwillhide?language=objc +func (di *ApplicationDelegate) SetApplicationWillHide(f func(notification foundation.Notification)) { + di._ApplicationWillHide = f } -// Returns a Boolean value that indicates if the app opens the specified temporary file. [Full Topic] +// Tells the delegate that the app is about to be hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428495-application?language=objc -func (di *ApplicationDelegate) ApplicationOpenTempFile(sender Application, filename string) bool { - return di._ApplicationOpenTempFile(sender, filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428478-applicationwillhide?language=objc +func (di *ApplicationDelegate) ApplicationWillHide(notification foundation.Notification) { + di._ApplicationWillHide(notification) } -func (di *ApplicationDelegate) HasApplicationDidHide() bool { - return di._ApplicationDidHide != nil +func (di *ApplicationDelegate) HasApplicationWillUpdate() bool { + return di._ApplicationWillUpdate != nil } -// Tells the delegate that the app is now hidden. [Full Topic] +// Tells the delegate that the app is about to update its windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428552-applicationdidhide?language=objc -func (di *ApplicationDelegate) SetApplicationDidHide(f func(notification foundation.Notification)) { - di._ApplicationDidHide = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428774-applicationwillupdate?language=objc +func (di *ApplicationDelegate) SetApplicationWillUpdate(f func(notification foundation.Notification)) { + di._ApplicationWillUpdate = f } -// Tells the delegate that the app is now hidden. [Full Topic] +// Tells the delegate that the app is about to update its windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428552-applicationdidhide?language=objc -func (di *ApplicationDelegate) ApplicationDidHide(notification foundation.Notification) { - di._ApplicationDidHide(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428774-applicationwillupdate?language=objc +func (di *ApplicationDelegate) ApplicationWillUpdate(notification foundation.Notification) { + di._ApplicationWillUpdate(notification) } func (di *ApplicationDelegate) HasApplicationShouldOpenUntitledFile() bool { return di._ApplicationShouldOpenUntitledFile != nil @@ -904,56 +401,22 @@ func (di *ApplicationDelegate) SetApplicationShouldOpenUntitledFile(f func(sende func (di *ApplicationDelegate) ApplicationShouldOpenUntitledFile(sender Application) bool { return di._ApplicationShouldOpenUntitledFile(sender) } -func (di *ApplicationDelegate) HasApplicationWillBecomeActive() bool { - return di._ApplicationWillBecomeActive != nil -} - -// Tells the delegate that the app is about to become active. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428699-applicationwillbecomeactive?language=objc -func (di *ApplicationDelegate) SetApplicationWillBecomeActive(f func(notification foundation.Notification)) { - di._ApplicationWillBecomeActive = f -} - -// Tells the delegate that the app is about to become active. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428699-applicationwillbecomeactive?language=objc -func (di *ApplicationDelegate) ApplicationWillBecomeActive(notification foundation.Notification) { - di._ApplicationWillBecomeActive(notification) -} -func (di *ApplicationDelegate) HasApplicationDidFinishLaunching() bool { - return di._ApplicationDidFinishLaunching != nil -} - -// Tells the delegate that the app’s initialization is complete but it hasn’t received its first event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428385-applicationdidfinishlaunching?language=objc -func (di *ApplicationDelegate) SetApplicationDidFinishLaunching(f func(notification foundation.Notification)) { - di._ApplicationDidFinishLaunching = f -} - -// Tells the delegate that the app’s initialization is complete but it hasn’t received its first event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428385-applicationdidfinishlaunching?language=objc -func (di *ApplicationDelegate) ApplicationDidFinishLaunching(notification foundation.Notification) { - di._ApplicationDidFinishLaunching(notification) -} -func (di *ApplicationDelegate) HasApplicationDidUnhide() bool { - return di._ApplicationDidUnhide != nil +func (di *ApplicationDelegate) HasApplicationSupportsSecureRestorableState() bool { + return di._ApplicationSupportsSecureRestorableState != nil } -// Tells the delegate that the app is now visible. [Full Topic] +// Returns a Boolean value that indicates if the app supports secure state restoration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428755-applicationdidunhide?language=objc -func (di *ApplicationDelegate) SetApplicationDidUnhide(f func(notification foundation.Notification)) { - di._ApplicationDidUnhide = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3762521-applicationsupportssecurerestora?language=objc +func (di *ApplicationDelegate) SetApplicationSupportsSecureRestorableState(f func(app Application) bool) { + di._ApplicationSupportsSecureRestorableState = f } -// Tells the delegate that the app is now visible. [Full Topic] +// Returns a Boolean value that indicates if the app supports secure state restoration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428755-applicationdidunhide?language=objc -func (di *ApplicationDelegate) ApplicationDidUnhide(notification foundation.Notification) { - di._ApplicationDidUnhide(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3762521-applicationsupportssecurerestora?language=objc +func (di *ApplicationDelegate) ApplicationSupportsSecureRestorableState(app Application) bool { + return di._ApplicationSupportsSecureRestorableState(app) } func (di *ApplicationDelegate) HasApplicationWillUnhide() bool { return di._ApplicationWillUnhide != nil @@ -989,271 +452,205 @@ func (di *ApplicationDelegate) SetApplicationOpenUntitledFile(f func(sender Appl func (di *ApplicationDelegate) ApplicationOpenUntitledFile(sender Application) bool { return di._ApplicationOpenUntitledFile(sender) } -func (di *ApplicationDelegate) HasApplicationPrintFile() bool { - return di._ApplicationPrintFile != nil +func (di *ApplicationDelegate) HasApplicationShouldAutomaticallyLocalizeKeyEquivalents() bool { + return di._ApplicationShouldAutomaticallyLocalizeKeyEquivalents != nil } -// Returns a Boolean value that indicates if the app prints the specified file in its entirety. [Full Topic] +// Returns a Boolean value that tells the system whether to remap menu shortcuts to support localized keyboards. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428520-application?language=objc -func (di *ApplicationDelegate) SetApplicationPrintFile(f func(sender Application, filename string) bool) { - di._ApplicationPrintFile = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3787553-applicationshouldautomaticallylo?language=objc +func (di *ApplicationDelegate) SetApplicationShouldAutomaticallyLocalizeKeyEquivalents(f func(application Application) bool) { + di._ApplicationShouldAutomaticallyLocalizeKeyEquivalents = f } -// Returns a Boolean value that indicates if the app prints the specified file in its entirety. [Full Topic] +// Returns a Boolean value that tells the system whether to remap menu shortcuts to support localized keyboards. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428520-application?language=objc -func (di *ApplicationDelegate) ApplicationPrintFile(sender Application, filename string) bool { - return di._ApplicationPrintFile(sender, filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3787553-applicationshouldautomaticallylo?language=objc +func (di *ApplicationDelegate) ApplicationShouldAutomaticallyLocalizeKeyEquivalents(application Application) bool { + return di._ApplicationShouldAutomaticallyLocalizeKeyEquivalents(application) } - -// ensure impl type implements protocol interface -var _ PApplicationDelegate = (*ApplicationDelegateObject)(nil) - -// A concrete type for the [PApplicationDelegate] protocol. -type ApplicationDelegateObject struct { - objc.Object +func (di *ApplicationDelegate) HasApplicationDidDecodeRestorableState() bool { + return di._ApplicationDidDecodeRestorableState != nil } -func (a_ ApplicationDelegateObject) HasApplicationWillResignActive() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillResignActive:")) +// Tells the delegate when the app finished decoding its restorable state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428693-application?language=objc +func (di *ApplicationDelegate) SetApplicationDidDecodeRestorableState(f func(app Application, coder foundation.Coder)) { + di._ApplicationDidDecodeRestorableState = f } -// Tells the delegate that the app is about to become inactive and will lose focus. [Full Topic] +// Tells the delegate when the app finished decoding its restorable state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428539-applicationwillresignactive?language=objc -func (a_ ApplicationDelegateObject) ApplicationWillResignActive(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillResignActive:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428693-application?language=objc +func (di *ApplicationDelegate) ApplicationDidDecodeRestorableState(app Application, coder foundation.Coder) { + di._ApplicationDidDecodeRestorableState(app, coder) } - -func (a_ ApplicationDelegateObject) HasApplicationWillHide() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillHide:")) +func (di *ApplicationDelegate) HasApplicationDidUpdate() bool { + return di._ApplicationDidUpdate != nil } -// Tells the delegate that the app is about to be hidden. [Full Topic] +// Tells the delegate that the app’s windows did update. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428478-applicationwillhide?language=objc -func (a_ ApplicationDelegateObject) ApplicationWillHide(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillHide:"), notification) -} - -func (a_ ApplicationDelegateObject) HasApplicationDockMenu() bool { - return a_.RespondsToSelector(objc.Sel("applicationDockMenu:")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428589-applicationdidupdate?language=objc +func (di *ApplicationDelegate) SetApplicationDidUpdate(f func(notification foundation.Notification)) { + di._ApplicationDidUpdate = f } -// Returns the app’s dock menu. [Full Topic] +// Tells the delegate that the app’s windows did update. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428564-applicationdockmenu?language=objc -func (a_ ApplicationDelegateObject) ApplicationDockMenu(sender Application) Menu { - rv := objc.Call[Menu](a_, objc.Sel("applicationDockMenu:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428589-applicationdidupdate?language=objc +func (di *ApplicationDelegate) ApplicationDidUpdate(notification foundation.Notification) { + di._ApplicationDidUpdate(notification) } - -func (a_ ApplicationDelegateObject) HasApplicationDidChangeOcclusionState() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidChangeOcclusionState:")) +func (di *ApplicationDelegate) HasApplicationDidChangeOcclusionState() bool { + return di._ApplicationDidChangeOcclusionState != nil } // Tells the delegate about changes to the app’s occlusion state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428362-applicationdidchangeocclusionsta?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidChangeOcclusionState(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidChangeOcclusionState:"), notification) -} - -func (a_ ApplicationDelegateObject) HasApplicationShouldTerminate() bool { - return a_.RespondsToSelector(objc.Sel("applicationShouldTerminate:")) -} - -// Returns a value that indicates if the app should terminate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428642-applicationshouldterminate?language=objc -func (a_ ApplicationDelegateObject) ApplicationShouldTerminate(sender Application) ApplicationTerminateReply { - rv := objc.Call[ApplicationTerminateReply](a_, objc.Sel("applicationShouldTerminate:"), sender) - return rv -} - -func (a_ ApplicationDelegateObject) HasApplicationShouldTerminateAfterLastWindowClosed() bool { - return a_.RespondsToSelector(objc.Sel("applicationShouldTerminateAfterLastWindowClosed:")) -} - -// Returns a Boolean value that indicates if the app terminates once the last window closes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428381-applicationshouldterminateafterl?language=objc -func (a_ ApplicationDelegateObject) ApplicationShouldTerminateAfterLastWindowClosed(sender Application) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationShouldTerminateAfterLastWindowClosed:"), sender) - return rv -} - -func (a_ ApplicationDelegateObject) HasApplicationSupportsSecureRestorableState() bool { - return a_.RespondsToSelector(objc.Sel("applicationSupportsSecureRestorableState:")) +func (di *ApplicationDelegate) SetApplicationDidChangeOcclusionState(f func(notification foundation.Notification)) { + di._ApplicationDidChangeOcclusionState = f } -// Returns a Boolean value that indicates if the app supports secure state restoration. [Full Topic] +// Tells the delegate about changes to the app’s occlusion state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3762521-applicationsupportssecurerestora?language=objc -func (a_ ApplicationDelegateObject) ApplicationSupportsSecureRestorableState(app Application) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationSupportsSecureRestorableState:"), app) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428362-applicationdidchangeocclusionsta?language=objc +func (di *ApplicationDelegate) ApplicationDidChangeOcclusionState(notification foundation.Notification) { + di._ApplicationDidChangeOcclusionState(notification) } - -func (a_ ApplicationDelegateObject) HasApplicationDidReceiveRemoteNotification() bool { - return a_.RespondsToSelector(objc.Sel("application:didReceiveRemoteNotification:")) +func (di *ApplicationDelegate) HasApplicationDidChangeScreenParameters() bool { + return di._ApplicationDidChangeScreenParameters != nil } -// Tells the delegate when the app receives a remote notification. [Full Topic] +// Tells the delegate about changes to the configuration of any attached displays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428430-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidReceiveRemoteNotification(application Application, userInfo map[string]objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("application:didReceiveRemoteNotification:"), application, userInfo) -} - -func (a_ ApplicationDelegateObject) HasApplicationProtectedDataDidBecomeAvailable() bool { - return a_.RespondsToSelector(objc.Sel("applicationProtectedDataDidBecomeAvailable:")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428424-applicationdidchangescreenparame?language=objc +func (di *ApplicationDelegate) SetApplicationDidChangeScreenParameters(f func(notification foundation.Notification)) { + di._ApplicationDidChangeScreenParameters = f } -// Tells the delegate that protected data is now available. [Full Topic] +// Tells the delegate about changes to the configuration of any attached displays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752993-applicationprotecteddatadidbecom?language=objc -func (a_ ApplicationDelegateObject) ApplicationProtectedDataDidBecomeAvailable(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationProtectedDataDidBecomeAvailable:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428424-applicationdidchangescreenparame?language=objc +func (di *ApplicationDelegate) ApplicationDidChangeScreenParameters(notification foundation.Notification) { + di._ApplicationDidChangeScreenParameters(notification) } - -func (a_ ApplicationDelegateObject) HasApplicationShouldHandleReopenHasVisibleWindows() bool { - return a_.RespondsToSelector(objc.Sel("applicationShouldHandleReopen:hasVisibleWindows:")) +func (di *ApplicationDelegate) HasApplicationWillTerminate() bool { + return di._ApplicationWillTerminate != nil } -// Returns a Boolean value that indicates if the app responds to reopen AppleEvents. [Full Topic] +// Tells the delegate that the app is about to terminate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428638-applicationshouldhandlereopen?language=objc -func (a_ ApplicationDelegateObject) ApplicationShouldHandleReopenHasVisibleWindows(sender Application, flag bool) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationShouldHandleReopen:hasVisibleWindows:"), sender, flag) - return rv -} - -func (a_ ApplicationDelegateObject) HasApplicationOpenURLs() bool { - return a_.RespondsToSelector(objc.Sel("application:openURLs:")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428522-applicationwillterminate?language=objc +func (di *ApplicationDelegate) SetApplicationWillTerminate(f func(notification foundation.Notification)) { + di._ApplicationWillTerminate = f } -// Tells the delegate to open the resource at the specified URL. [Full Topic] +// Tells the delegate that the app is about to terminate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/2887193-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationOpenURLs(application Application, urls []foundation.URL) { - objc.Call[objc.Void](a_, objc.Sel("application:openURLs:"), application, urls) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428522-applicationwillterminate?language=objc +func (di *ApplicationDelegate) ApplicationWillTerminate(notification foundation.Notification) { + di._ApplicationWillTerminate(notification) } - -func (a_ ApplicationDelegateObject) HasApplicationOpenFile() bool { - return a_.RespondsToSelector(objc.Sel("application:openFile:")) +func (di *ApplicationDelegate) HasApplicationDidUnhide() bool { + return di._ApplicationDidUnhide != nil } -// Returns a Boolean value that indicates if the app opens the specified file. [Full Topic] +// Tells the delegate that the app is now visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428612-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationOpenFile(sender Application, filename string) bool { - rv := objc.Call[bool](a_, objc.Sel("application:openFile:"), sender, filename) - return rv -} - -func (a_ ApplicationDelegateObject) HasApplicationWillUpdate() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillUpdate:")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428755-applicationdidunhide?language=objc +func (di *ApplicationDelegate) SetApplicationDidUnhide(f func(notification foundation.Notification)) { + di._ApplicationDidUnhide = f } -// Tells the delegate that the app is about to update its windows. [Full Topic] +// Tells the delegate that the app is now visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428774-applicationwillupdate?language=objc -func (a_ ApplicationDelegateObject) ApplicationWillUpdate(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillUpdate:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428755-applicationdidunhide?language=objc +func (di *ApplicationDelegate) ApplicationDidUnhide(notification foundation.Notification) { + di._ApplicationDidUnhide(notification) } - -func (a_ ApplicationDelegateObject) HasApplicationContinueUserActivityRestorationHandler() bool { - return a_.RespondsToSelector(objc.Sel("application:continueUserActivity:restorationHandler:")) +func (di *ApplicationDelegate) HasApplicationShouldHandleReopenHasVisibleWindows() bool { + return di._ApplicationShouldHandleReopenHasVisibleWindows != nil } -// Returns a Boolean value that indicates if the app successfully recreates the specified activity. [Full Topic] +// Returns a Boolean value that indicates if the app responds to reopen AppleEvents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428471-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationContinueUserActivityRestorationHandler(application Application, userActivity foundation.UserActivity, restorationHandler func(restorableObjects []UserActivityRestoringObject)) bool { - rv := objc.Call[bool](a_, objc.Sel("application:continueUserActivity:restorationHandler:"), application, userActivity, restorationHandler) - return rv -} - -func (a_ ApplicationDelegateObject) HasApplicationWillEncodeRestorableState() bool { - return a_.RespondsToSelector(objc.Sel("application:willEncodeRestorableState:")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428638-applicationshouldhandlereopen?language=objc +func (di *ApplicationDelegate) SetApplicationShouldHandleReopenHasVisibleWindows(f func(sender Application, flag bool) bool) { + di._ApplicationShouldHandleReopenHasVisibleWindows = f } -// Tells the delegate that the app is about to encode its restorable state. [Full Topic] +// Returns a Boolean value that indicates if the app responds to reopen AppleEvents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428400-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationWillEncodeRestorableState(app Application, coder foundation.Coder) { - objc.Call[objc.Void](a_, objc.Sel("application:willEncodeRestorableState:"), app, coder) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428638-applicationshouldhandlereopen?language=objc +func (di *ApplicationDelegate) ApplicationShouldHandleReopenHasVisibleWindows(sender Application, flag bool) bool { + return di._ApplicationShouldHandleReopenHasVisibleWindows(sender, flag) } -func (a_ ApplicationDelegateObject) HasApplicationDelegateHandlesKey() bool { - return a_.RespondsToSelector(objc.Sel("application:delegateHandlesKey:")) -} +// ensure impl type implements protocol interface +var _ PApplicationDelegate = (*ApplicationDelegateObject)(nil) -// Returns a Boolean value that indicates if the app supports the specified scripting key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3005173-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationDelegateHandlesKey(sender Application, key string) bool { - rv := objc.Call[bool](a_, objc.Sel("application:delegateHandlesKey:"), sender, key) - return rv +// A concrete type for the [PApplicationDelegate] protocol. +type ApplicationDelegateObject struct { + objc.Object } -func (a_ ApplicationDelegateObject) HasApplicationShouldAutomaticallyLocalizeKeyEquivalents() bool { - return a_.RespondsToSelector(objc.Sel("applicationShouldAutomaticallyLocalizeKeyEquivalents:")) +func (a_ ApplicationDelegateObject) HasApplicationDidResignActive() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidResignActive:")) } -// Returns a Boolean value that tells the system whether to remap menu shortcuts to support localized keyboards. [Full Topic] +// Tells the delegate that the app is no longer active and doesn’t have focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3787553-applicationshouldautomaticallylo?language=objc -func (a_ ApplicationDelegateObject) ApplicationShouldAutomaticallyLocalizeKeyEquivalents(application Application) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationShouldAutomaticallyLocalizeKeyEquivalents:"), application) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428636-applicationdidresignactive?language=objc +func (a_ ApplicationDelegateObject) ApplicationDidResignActive(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationDidResignActive:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationWillPresentError() bool { - return a_.RespondsToSelector(objc.Sel("application:willPresentError:")) +func (a_ ApplicationDelegateObject) HasApplicationDidFinishLaunching() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidFinishLaunching:")) } -// Returns an error for the app to display to the user. [Full Topic] +// Tells the delegate that the app’s initialization is complete but it hasn’t received its first event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428721-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationWillPresentError(application Application, error foundation.Error) foundation.Error { - rv := objc.Call[foundation.Error](a_, objc.Sel("application:willPresentError:"), application, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428385-applicationdidfinishlaunching?language=objc +func (a_ ApplicationDelegateObject) ApplicationDidFinishLaunching(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationDidFinishLaunching:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationWillTerminate() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillTerminate:")) +func (a_ ApplicationDelegateObject) HasApplicationShouldTerminate() bool { + return a_.RespondsToSelector(objc.Sel("applicationShouldTerminate:")) } -// Tells the delegate that the app is about to terminate. [Full Topic] +// Returns a value that indicates if the app should terminate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428522-applicationwillterminate?language=objc -func (a_ ApplicationDelegateObject) ApplicationWillTerminate(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillTerminate:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428642-applicationshouldterminate?language=objc +func (a_ ApplicationDelegateObject) ApplicationShouldTerminate(sender Application) ApplicationTerminateReply { + rv := objc.Call[ApplicationTerminateReply](a_, objc.Sel("applicationShouldTerminate:"), sender) + return rv } -func (a_ ApplicationDelegateObject) HasApplicationDidFailToContinueUserActivityWithTypeError() bool { - return a_.RespondsToSelector(objc.Sel("application:didFailToContinueUserActivityWithType:error:")) +func (a_ ApplicationDelegateObject) HasApplicationWillBecomeActive() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillBecomeActive:")) } -// Tells the delegate that the app couldn’t continue the specified activity. [Full Topic] +// Tells the delegate that the app is about to become active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428613-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidFailToContinueUserActivityWithTypeError(application Application, userActivityType string, error foundation.Error) { - objc.Call[objc.Void](a_, objc.Sel("application:didFailToContinueUserActivityWithType:error:"), application, userActivityType, error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428699-applicationwillbecomeactive?language=objc +func (a_ ApplicationDelegateObject) ApplicationWillBecomeActive(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationWillBecomeActive:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationWillContinueUserActivityWithType() bool { - return a_.RespondsToSelector(objc.Sel("application:willContinueUserActivityWithType:")) +func (a_ ApplicationDelegateObject) HasApplicationDockMenu() bool { + return a_.RespondsToSelector(objc.Sel("applicationDockMenu:")) } -// Returns a Boolean value that indicates if the app can continue the specified activity. [Full Topic] +// Returns the app’s dock menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428364-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationWillContinueUserActivityWithType(application Application, userActivityType string) bool { - rv := objc.Call[bool](a_, objc.Sel("application:willContinueUserActivityWithType:"), application, userActivityType) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428564-applicationdockmenu?language=objc +func (a_ ApplicationDelegateObject) ApplicationDockMenu(sender Application) Menu { + rv := objc.Call[Menu](a_, objc.Sel("applicationDockMenu:"), sender) return rv } @@ -1268,218 +665,207 @@ func (a_ ApplicationDelegateObject) ApplicationWillFinishLaunching(notification objc.Call[objc.Void](a_, objc.Sel("applicationWillFinishLaunching:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationDidBecomeActive() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidBecomeActive:")) -} - -// Tells the delegate that the app is now active. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428577-applicationdidbecomeactive?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidBecomeActive(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidBecomeActive:"), notification) -} - -func (a_ ApplicationDelegateObject) HasApplicationDidFailToRegisterForRemoteNotificationsWithError() bool { - return a_.RespondsToSelector(objc.Sel("application:didFailToRegisterForRemoteNotificationsWithError:")) +func (a_ ApplicationDelegateObject) HasApplicationShouldTerminateAfterLastWindowClosed() bool { + return a_.RespondsToSelector(objc.Sel("applicationShouldTerminateAfterLastWindowClosed:")) } -// Tells the delegate that the app was unable to register for Apple Push Services. [Full Topic] +// Returns a Boolean value that indicates if the app terminates once the last window closes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428554-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidFailToRegisterForRemoteNotificationsWithError(application Application, error foundation.Error) { - objc.Call[objc.Void](a_, objc.Sel("application:didFailToRegisterForRemoteNotificationsWithError:"), application, error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428381-applicationshouldterminateafterl?language=objc +func (a_ ApplicationDelegateObject) ApplicationShouldTerminateAfterLastWindowClosed(sender Application) bool { + rv := objc.Call[bool](a_, objc.Sel("applicationShouldTerminateAfterLastWindowClosed:"), sender) + return rv } -func (a_ ApplicationDelegateObject) HasApplicationDidUpdate() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidUpdate:")) +func (a_ ApplicationDelegateObject) HasApplicationProtectedDataWillBecomeUnavailable() bool { + return a_.RespondsToSelector(objc.Sel("applicationProtectedDataWillBecomeUnavailable:")) } -// Tells the delegate that the app’s windows did update. [Full Topic] +// Tells the delegate that protected data is about to become unavailable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428589-applicationdidupdate?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidUpdate(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidUpdate:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752994-applicationprotecteddatawillbeco?language=objc +func (a_ ApplicationDelegateObject) ApplicationProtectedDataWillBecomeUnavailable(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationProtectedDataWillBecomeUnavailable:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationDidChangeScreenParameters() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidChangeScreenParameters:")) +func (a_ ApplicationDelegateObject) HasApplicationDidHide() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidHide:")) } -// Tells the delegate about changes to the configuration of any attached displays. [Full Topic] +// Tells the delegate that the app is now hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428424-applicationdidchangescreenparame?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidChangeScreenParameters(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidChangeScreenParameters:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428552-applicationdidhide?language=objc +func (a_ ApplicationDelegateObject) ApplicationDidHide(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationDidHide:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationPrintFilesWithSettingsShowPrintPanels() bool { - return a_.RespondsToSelector(objc.Sel("application:printFiles:withSettings:showPrintPanels:")) +func (a_ ApplicationDelegateObject) HasApplicationWillResignActive() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillResignActive:")) } -// Returns a value that indicates if the app prints the specified files. [Full Topic] +// Tells the delegate that the app is about to become inactive and will lose focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428713-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationPrintFilesWithSettingsShowPrintPanels(application Application, fileNames []string, printSettings map[PrintInfoAttributeKey]objc.Object, showPrintPanels bool) ApplicationPrintReply { - rv := objc.Call[ApplicationPrintReply](a_, objc.Sel("application:printFiles:withSettings:showPrintPanels:"), application, fileNames, printSettings, showPrintPanels) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428539-applicationwillresignactive?language=objc +func (a_ ApplicationDelegateObject) ApplicationWillResignActive(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationWillResignActive:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationHandlerForIntent() bool { - return a_.RespondsToSelector(objc.Sel("application:handlerForIntent:")) +func (a_ ApplicationDelegateObject) HasApplicationDidBecomeActive() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidBecomeActive:")) } -// Returns an intent handler that’s capable of handling the specified intent. [Full Topic] +// Tells the delegate that the app is now active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3786062-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationHandlerForIntent(application Application, intent objc.Object) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("application:handlerForIntent:"), application, intent) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428577-applicationdidbecomeactive?language=objc +func (a_ ApplicationDelegateObject) ApplicationDidBecomeActive(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationDidBecomeActive:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationUserDidAcceptCloudKitShareWithMetadata() bool { - return a_.RespondsToSelector(objc.Sel("application:userDidAcceptCloudKitShareWithMetadata:")) +func (a_ ApplicationDelegateObject) HasApplicationProtectedDataDidBecomeAvailable() bool { + return a_.RespondsToSelector(objc.Sel("applicationProtectedDataDidBecomeAvailable:")) } -// Tells the delegate when the user accepts a CloudKit sharing invitation. [Full Topic] +// Tells the delegate that protected data is now available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/2138329-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationUserDidAcceptCloudKitShareWithMetadata(application Application, metadata objc.Object) { - objc.Call[objc.Void](a_, objc.Sel("application:userDidAcceptCloudKitShareWithMetadata:"), application, metadata) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752993-applicationprotecteddatadidbecom?language=objc +func (a_ ApplicationDelegateObject) ApplicationProtectedDataDidBecomeAvailable(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationProtectedDataDidBecomeAvailable:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationDidDecodeRestorableState() bool { - return a_.RespondsToSelector(objc.Sel("application:didDecodeRestorableState:")) +func (a_ ApplicationDelegateObject) HasApplicationWillHide() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillHide:")) } -// Tells the delegate when the app finished decoding its restorable state. [Full Topic] +// Tells the delegate that the app is about to be hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428693-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidDecodeRestorableState(app Application, coder foundation.Coder) { - objc.Call[objc.Void](a_, objc.Sel("application:didDecodeRestorableState:"), app, coder) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428478-applicationwillhide?language=objc +func (a_ ApplicationDelegateObject) ApplicationWillHide(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationWillHide:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationDidUpdateUserActivity() bool { - return a_.RespondsToSelector(objc.Sel("application:didUpdateUserActivity:")) +func (a_ ApplicationDelegateObject) HasApplicationWillUpdate() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillUpdate:")) } -// Tells the delegate that there are changes to the specified activity. [Full Topic] +// Tells the delegate that the app is about to update its windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428457-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidUpdateUserActivity(application Application, userActivity foundation.UserActivity) { - objc.Call[objc.Void](a_, objc.Sel("application:didUpdateUserActivity:"), application, userActivity) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428774-applicationwillupdate?language=objc +func (a_ ApplicationDelegateObject) ApplicationWillUpdate(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationWillUpdate:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationDidResignActive() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidResignActive:")) +func (a_ ApplicationDelegateObject) HasApplicationShouldOpenUntitledFile() bool { + return a_.RespondsToSelector(objc.Sel("applicationShouldOpenUntitledFile:")) } -// Tells the delegate that the app is no longer active and doesn’t have focus. [Full Topic] +// Returns a Boolean value that indicates if the app can open an untitled file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428636-applicationdidresignactive?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidResignActive(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidResignActive:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428444-applicationshouldopenuntitledfil?language=objc +func (a_ ApplicationDelegateObject) ApplicationShouldOpenUntitledFile(sender Application) bool { + rv := objc.Call[bool](a_, objc.Sel("applicationShouldOpenUntitledFile:"), sender) + return rv } -func (a_ ApplicationDelegateObject) HasApplicationDidRegisterForRemoteNotificationsWithDeviceToken() bool { - return a_.RespondsToSelector(objc.Sel("application:didRegisterForRemoteNotificationsWithDeviceToken:")) +func (a_ ApplicationDelegateObject) HasApplicationSupportsSecureRestorableState() bool { + return a_.RespondsToSelector(objc.Sel("applicationSupportsSecureRestorableState:")) } -// Tells the delegate that the app registered for Apple Push Services. [Full Topic] +// Returns a Boolean value that indicates if the app supports secure state restoration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428766-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidRegisterForRemoteNotificationsWithDeviceToken(application Application, deviceToken []byte) { - objc.Call[objc.Void](a_, objc.Sel("application:didRegisterForRemoteNotificationsWithDeviceToken:"), application, deviceToken) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3762521-applicationsupportssecurerestora?language=objc +func (a_ ApplicationDelegateObject) ApplicationSupportsSecureRestorableState(app Application) bool { + rv := objc.Call[bool](a_, objc.Sel("applicationSupportsSecureRestorableState:"), app) + return rv } -func (a_ ApplicationDelegateObject) HasApplicationOpenFiles() bool { - return a_.RespondsToSelector(objc.Sel("application:openFiles:")) +func (a_ ApplicationDelegateObject) HasApplicationWillUnhide() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillUnhide:")) } -// Tells the delegate to open the specified files. [Full Topic] +// Tells the delegate that the app is about to become visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428742-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationOpenFiles(sender Application, filenames []string) { - objc.Call[objc.Void](a_, objc.Sel("application:openFiles:"), sender, filenames) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428585-applicationwillunhide?language=objc +func (a_ ApplicationDelegateObject) ApplicationWillUnhide(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationWillUnhide:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationProtectedDataWillBecomeUnavailable() bool { - return a_.RespondsToSelector(objc.Sel("applicationProtectedDataWillBecomeUnavailable:")) +func (a_ ApplicationDelegateObject) HasApplicationOpenUntitledFile() bool { + return a_.RespondsToSelector(objc.Sel("applicationOpenUntitledFile:")) } -// Tells the delegate that protected data is about to become unavailable. [Full Topic] +// Returns a Boolean value that indicates if the app opens an untitled file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752994-applicationprotecteddatawillbeco?language=objc -func (a_ ApplicationDelegateObject) ApplicationProtectedDataWillBecomeUnavailable(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationProtectedDataWillBecomeUnavailable:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428491-applicationopenuntitledfile?language=objc +func (a_ ApplicationDelegateObject) ApplicationOpenUntitledFile(sender Application) bool { + rv := objc.Call[bool](a_, objc.Sel("applicationOpenUntitledFile:"), sender) + return rv } -func (a_ ApplicationDelegateObject) HasApplicationOpenFileWithoutUI() bool { - return a_.RespondsToSelector(objc.Sel("application:openFileWithoutUI:")) +func (a_ ApplicationDelegateObject) HasApplicationShouldAutomaticallyLocalizeKeyEquivalents() bool { + return a_.RespondsToSelector(objc.Sel("applicationShouldAutomaticallyLocalizeKeyEquivalents:")) } -// Returns a Boolean value that indicates if the app opens the specified file without showing its user interface. [Full Topic] +// Returns a Boolean value that tells the system whether to remap menu shortcuts to support localized keyboards. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428459-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationOpenFileWithoutUI(sender objc.Object, filename string) bool { - rv := objc.Call[bool](a_, objc.Sel("application:openFileWithoutUI:"), sender, filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3787553-applicationshouldautomaticallylo?language=objc +func (a_ ApplicationDelegateObject) ApplicationShouldAutomaticallyLocalizeKeyEquivalents(application Application) bool { + rv := objc.Call[bool](a_, objc.Sel("applicationShouldAutomaticallyLocalizeKeyEquivalents:"), application) return rv } -func (a_ ApplicationDelegateObject) HasApplicationOpenTempFile() bool { - return a_.RespondsToSelector(objc.Sel("application:openTempFile:")) +func (a_ ApplicationDelegateObject) HasApplicationDidDecodeRestorableState() bool { + return a_.RespondsToSelector(objc.Sel("application:didDecodeRestorableState:")) } -// Returns a Boolean value that indicates if the app opens the specified temporary file. [Full Topic] +// Tells the delegate when the app finished decoding its restorable state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428495-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationOpenTempFile(sender Application, filename string) bool { - rv := objc.Call[bool](a_, objc.Sel("application:openTempFile:"), sender, filename) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428693-application?language=objc +func (a_ ApplicationDelegateObject) ApplicationDidDecodeRestorableState(app Application, coder foundation.Coder) { + objc.Call[objc.Void](a_, objc.Sel("application:didDecodeRestorableState:"), app, coder) } -func (a_ ApplicationDelegateObject) HasApplicationDidHide() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidHide:")) +func (a_ ApplicationDelegateObject) HasApplicationDidUpdate() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidUpdate:")) } -// Tells the delegate that the app is now hidden. [Full Topic] +// Tells the delegate that the app’s windows did update. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428552-applicationdidhide?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidHide(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidHide:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428589-applicationdidupdate?language=objc +func (a_ ApplicationDelegateObject) ApplicationDidUpdate(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationDidUpdate:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationShouldOpenUntitledFile() bool { - return a_.RespondsToSelector(objc.Sel("applicationShouldOpenUntitledFile:")) +func (a_ ApplicationDelegateObject) HasApplicationDidChangeOcclusionState() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidChangeOcclusionState:")) } -// Returns a Boolean value that indicates if the app can open an untitled file. [Full Topic] +// Tells the delegate about changes to the app’s occlusion state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428444-applicationshouldopenuntitledfil?language=objc -func (a_ ApplicationDelegateObject) ApplicationShouldOpenUntitledFile(sender Application) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationShouldOpenUntitledFile:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428362-applicationdidchangeocclusionsta?language=objc +func (a_ ApplicationDelegateObject) ApplicationDidChangeOcclusionState(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationDidChangeOcclusionState:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationWillBecomeActive() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillBecomeActive:")) +func (a_ ApplicationDelegateObject) HasApplicationDidChangeScreenParameters() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidChangeScreenParameters:")) } -// Tells the delegate that the app is about to become active. [Full Topic] +// Tells the delegate about changes to the configuration of any attached displays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428699-applicationwillbecomeactive?language=objc -func (a_ ApplicationDelegateObject) ApplicationWillBecomeActive(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillBecomeActive:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428424-applicationdidchangescreenparame?language=objc +func (a_ ApplicationDelegateObject) ApplicationDidChangeScreenParameters(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationDidChangeScreenParameters:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationDidFinishLaunching() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidFinishLaunching:")) +func (a_ ApplicationDelegateObject) HasApplicationWillTerminate() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillTerminate:")) } -// Tells the delegate that the app’s initialization is complete but it hasn’t received its first event. [Full Topic] +// Tells the delegate that the app is about to terminate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428385-applicationdidfinishlaunching?language=objc -func (a_ ApplicationDelegateObject) ApplicationDidFinishLaunching(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidFinishLaunching:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428522-applicationwillterminate?language=objc +func (a_ ApplicationDelegateObject) ApplicationWillTerminate(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationWillTerminate:"), notification) } func (a_ ApplicationDelegateObject) HasApplicationDidUnhide() bool { @@ -1493,37 +879,14 @@ func (a_ ApplicationDelegateObject) ApplicationDidUnhide(notification foundation objc.Call[objc.Void](a_, objc.Sel("applicationDidUnhide:"), notification) } -func (a_ ApplicationDelegateObject) HasApplicationWillUnhide() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillUnhide:")) -} - -// Tells the delegate that the app is about to become visible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428585-applicationwillunhide?language=objc -func (a_ ApplicationDelegateObject) ApplicationWillUnhide(notification foundation.Notification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillUnhide:"), notification) -} - -func (a_ ApplicationDelegateObject) HasApplicationOpenUntitledFile() bool { - return a_.RespondsToSelector(objc.Sel("applicationOpenUntitledFile:")) -} - -// Returns a Boolean value that indicates if the app opens an untitled file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428491-applicationopenuntitledfile?language=objc -func (a_ ApplicationDelegateObject) ApplicationOpenUntitledFile(sender Application) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationOpenUntitledFile:"), sender) - return rv -} - -func (a_ ApplicationDelegateObject) HasApplicationPrintFile() bool { - return a_.RespondsToSelector(objc.Sel("application:printFile:")) +func (a_ ApplicationDelegateObject) HasApplicationShouldHandleReopenHasVisibleWindows() bool { + return a_.RespondsToSelector(objc.Sel("applicationShouldHandleReopen:hasVisibleWindows:")) } -// Returns a Boolean value that indicates if the app prints the specified file in its entirety. [Full Topic] +// Returns a Boolean value that indicates if the app responds to reopen AppleEvents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428520-application?language=objc -func (a_ ApplicationDelegateObject) ApplicationPrintFile(sender Application, filename string) bool { - rv := objc.Call[bool](a_, objc.Sel("application:printFile:"), sender, filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428638-applicationshouldhandlereopen?language=objc +func (a_ ApplicationDelegateObject) ApplicationShouldHandleReopenHasVisibleWindows(sender Application, flag bool) bool { + rv := objc.Call[bool](a_, objc.Sel("applicationShouldHandleReopen:hasVisibleWindows:"), sender, flag) return rv } diff --git a/macos/appkit/array_controller.gen.go b/macos/appkit/array_controller.gen.go index ab077525..b9dedfc3 100644 --- a/macos/appkit/array_controller.gen.go +++ b/macos/appkit/array_controller.gen.go @@ -19,48 +19,48 @@ type _ArrayControllerClass struct { // An interface definition for the [ArrayController] class. type IArrayController interface { IObjectController - AddSelectionIndexes(indexes foundation.IIndexSet) bool - InsertObjectsAtArrangedObjectIndexes(objects []objc.IObject, indexes foundation.IIndexSet) RemoveObjectAtArrangedObjectIndex(index uint) - ArrangeObjects(objects []objc.IObject) []objc.Object - SetSelectionIndexes(indexes foundation.IIndexSet) bool - AddObjects(objects []objc.IObject) - SelectPrevious(sender objc.IObject) objc.Object SetSelectionIndex(index uint) bool + RemoveSelectionIndexes(indexes foundation.IIndexSet) bool + SetSelectedObjects(objects []objc.IObject) bool + AddSelectionIndexes(indexes foundation.IIndexSet) bool InsertObjectAtArrangedObjectIndex(object objc.IObject, index uint) + SetSelectionIndexes(indexes foundation.IIndexSet) bool + RemoveObjectsAtArrangedObjectIndexes(indexes foundation.IIndexSet) DidChangeArrangementCriteria() + RearrangeObjects() + SelectPrevious(sender objc.IObject) objc.Object + RemoveObjects(objects []objc.IObject) AddSelectedObjects(objects []objc.IObject) bool - RemoveObjectsAtArrangedObjectIndexes(indexes foundation.IIndexSet) - SetSelectedObjects(objects []objc.IObject) bool + ArrangeObjects(objects []objc.IObject) []objc.Object + AddObjects(objects []objc.IObject) RemoveSelectedObjects(objects []objc.IObject) bool SelectNext(sender objc.IObject) objc.Object - RemoveSelectionIndexes(indexes foundation.IIndexSet) bool - RemoveObjects(objects []objc.IObject) Insert(sender objc.IObject) objc.Object - RearrangeObjects() - SelectionIndex() uint - AutomaticallyRearrangesObjects() bool - SetAutomaticallyRearrangesObjects(value bool) + InsertObjectsAtArrangedObjectIndexes(objects []objc.IObject, indexes foundation.IIndexSet) PreservesSelection() bool SetPreservesSelection(value bool) - SelectionIndexes() foundation.IndexSet - AvoidsEmptySelection() bool - SetAvoidsEmptySelection(value bool) - ClearsFilterPredicateOnInsertion() bool - SetClearsFilterPredicateOnInsertion(value bool) AlwaysUsesMultipleValuesMarker() bool SetAlwaysUsesMultipleValuesMarker(value bool) - SelectsInsertedObjects() bool - SetSelectsInsertedObjects(value bool) FilterPredicate() foundation.Predicate SetFilterPredicate(value foundation.IPredicate) - ArrangedObjects() objc.Object + AutomaticRearrangementKeyPaths() []string CanSelectPrevious() bool - CanSelectNext() bool SortDescriptors() []foundation.SortDescriptor SetSortDescriptors(value []foundation.ISortDescriptor) + ArrangedObjects() objc.Object + SelectionIndexes() foundation.IndexSet CanInsert() bool - AutomaticRearrangementKeyPaths() []string + CanSelectNext() bool + SelectionIndex() uint + AutomaticallyRearrangesObjects() bool + SetAutomaticallyRearrangesObjects(value bool) + ClearsFilterPredicateOnInsertion() bool + SetClearsFilterPredicateOnInsertion(value bool) + SelectsInsertedObjects() bool + SetSelectsInsertedObjects(value bool) + AvoidsEmptySelection() bool + SetAvoidsEmptySelection(value bool) } // A bindings-compatible controller that manages a collection of objects. [Full Topic] @@ -110,21 +110,6 @@ func NewArrayControllerWithContent(content objc.IObject) ArrayController { return instance } -// Adds the objects at the specified indexes in the receiver’s content array to the current selection, returning YES if the selection was changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533997-addselectionindexes?language=objc -func (a_ ArrayController) AddSelectionIndexes(indexes foundation.IIndexSet) bool { - rv := objc.Call[bool](a_, objc.Sel("addSelectionIndexes:"), indexes) - return rv -} - -// Inserts objects into the receiver’s arranged objects array at the locations specified in indexes, and adds it to the receiver’s content collection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1527973-insertobjects?language=objc -func (a_ ArrayController) InsertObjectsAtArrangedObjectIndexes(objects []objc.IObject, indexes foundation.IIndexSet) { - objc.Call[objc.Void](a_, objc.Sel("insertObjects:atArrangedObjectIndexes:"), objects, indexes) -} - // Removes the object at the specified index in the receiver’s arranged objects from the receiver’s content array. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534738-removeobjectatarrangedobjectinde?language=objc @@ -132,42 +117,35 @@ func (a_ ArrayController) RemoveObjectAtArrangedObjectIndex(index uint) { objc.Call[objc.Void](a_, objc.Sel("removeObjectAtArrangedObjectIndex:"), index) } -// Returns a given array, appropriately sorted and filtered. [Full Topic] +// Sets the receiver’s selection to the given index, and returns a Boolean value that indicates whether the selection was changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533881-arrangeobjects?language=objc -func (a_ ArrayController) ArrangeObjects(objects []objc.IObject) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("arrangeObjects:"), objects) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1526094-setselectionindex?language=objc +func (a_ ArrayController) SetSelectionIndex(index uint) bool { + rv := objc.Call[bool](a_, objc.Sel("setSelectionIndex:"), index) return rv } -// Sets the receiver’s selection indexes and returns a Boolean value that indicates whether the selection changed. [Full Topic] +// Removes the object as the specified indexes from the receiver’s current selection, returning YES if the selection was changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1525801-setselectionindexes?language=objc -func (a_ ArrayController) SetSelectionIndexes(indexes foundation.IIndexSet) bool { - rv := objc.Call[bool](a_, objc.Sel("setSelectionIndexes:"), indexes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1525061-removeselectionindexes?language=objc +func (a_ ArrayController) RemoveSelectionIndexes(indexes foundation.IIndexSet) bool { + rv := objc.Call[bool](a_, objc.Sel("removeSelectionIndexes:"), indexes) return rv } -// Adds objects to the receiver’s content collection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533977-addobjects?language=objc -func (a_ ArrayController) AddObjects(objects []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("addObjects:"), objects) -} - -// Selects the previous object, relative to the current selection, in the receiver’s arranged content. [Full Topic] +// Sets objects as the receiver’s current selection, returning YES if the selection was changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1528448-selectprevious?language=objc -func (a_ ArrayController) SelectPrevious(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("selectPrevious:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533937-setselectedobjects?language=objc +func (a_ ArrayController) SetSelectedObjects(objects []objc.IObject) bool { + rv := objc.Call[bool](a_, objc.Sel("setSelectedObjects:"), objects) return rv } -// Sets the receiver’s selection to the given index, and returns a Boolean value that indicates whether the selection was changed. [Full Topic] +// Adds the objects at the specified indexes in the receiver’s content array to the current selection, returning YES if the selection was changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1526094-setselectionindex?language=objc -func (a_ ArrayController) SetSelectionIndex(index uint) bool { - rv := objc.Call[bool](a_, objc.Sel("setSelectionIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533997-addselectionindexes?language=objc +func (a_ ArrayController) AddSelectionIndexes(indexes foundation.IIndexSet) bool { + rv := objc.Call[bool](a_, objc.Sel("addSelectionIndexes:"), indexes) return rv } @@ -178,6 +156,21 @@ func (a_ ArrayController) InsertObjectAtArrangedObjectIndex(object objc.IObject, objc.Call[objc.Void](a_, objc.Sel("insertObject:atArrangedObjectIndex:"), object, index) } +// Sets the receiver’s selection indexes and returns a Boolean value that indicates whether the selection changed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1525801-setselectionindexes?language=objc +func (a_ ArrayController) SetSelectionIndexes(indexes foundation.IIndexSet) bool { + rv := objc.Call[bool](a_, objc.Sel("setSelectionIndexes:"), indexes) + return rv +} + +// Removes the objects at the specified indexes in the receiver’s arranged objects from the content array. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533508-removeobjectsatarrangedobjectind?language=objc +func (a_ ArrayController) RemoveObjectsAtArrangedObjectIndexes(indexes foundation.IIndexSet) { + objc.Call[objc.Void](a_, objc.Sel("removeObjectsAtArrangedObjectIndexes:"), indexes) +} + // Invoked when any criteria for arranging objects change. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1526171-didchangearrangementcriteria?language=objc @@ -185,6 +178,28 @@ func (a_ ArrayController) DidChangeArrangementCriteria() { objc.Call[objc.Void](a_, objc.Sel("didChangeArrangementCriteria")) } +// Triggers filtering of the receiver’s content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534319-rearrangeobjects?language=objc +func (a_ ArrayController) RearrangeObjects() { + objc.Call[objc.Void](a_, objc.Sel("rearrangeObjects")) +} + +// Selects the previous object, relative to the current selection, in the receiver’s arranged content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1528448-selectprevious?language=objc +func (a_ ArrayController) SelectPrevious(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("selectPrevious:"), sender) + return rv +} + +// Removes objects from the receiver’s content collection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533426-removeobjects?language=objc +func (a_ ArrayController) RemoveObjects(objects []objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("removeObjects:"), objects) +} + // Adds objects from the receiver’s content array to the current selection, returning YES if the selection was changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533846-addselectedobjects?language=objc @@ -193,19 +208,19 @@ func (a_ ArrayController) AddSelectedObjects(objects []objc.IObject) bool { return rv } -// Removes the objects at the specified indexes in the receiver’s arranged objects from the content array. [Full Topic] +// Returns a given array, appropriately sorted and filtered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533508-removeobjectsatarrangedobjectind?language=objc -func (a_ ArrayController) RemoveObjectsAtArrangedObjectIndexes(indexes foundation.IIndexSet) { - objc.Call[objc.Void](a_, objc.Sel("removeObjectsAtArrangedObjectIndexes:"), indexes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533881-arrangeobjects?language=objc +func (a_ ArrayController) ArrangeObjects(objects []objc.IObject) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("arrangeObjects:"), objects) + return rv } -// Sets objects as the receiver’s current selection, returning YES if the selection was changed. [Full Topic] +// Adds objects to the receiver’s content collection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533937-setselectedobjects?language=objc -func (a_ ArrayController) SetSelectedObjects(objects []objc.IObject) bool { - rv := objc.Call[bool](a_, objc.Sel("setSelectedObjects:"), objects) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533977-addobjects?language=objc +func (a_ ArrayController) AddObjects(objects []objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("addObjects:"), objects) } // Removes objects from the receiver’s current selection, returning YES if the selection was changed. [Full Topic] @@ -224,21 +239,6 @@ func (a_ ArrayController) SelectNext(sender objc.IObject) objc.Object { return rv } -// Removes the object as the specified indexes from the receiver’s current selection, returning YES if the selection was changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1525061-removeselectionindexes?language=objc -func (a_ ArrayController) RemoveSelectionIndexes(indexes foundation.IIndexSet) bool { - rv := objc.Call[bool](a_, objc.Sel("removeSelectionIndexes:"), indexes) - return rv -} - -// Removes objects from the receiver’s content collection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1533426-removeobjects?language=objc -func (a_ ArrayController) RemoveObjects(objects []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("removeObjects:"), objects) -} - // Creates a new object and inserts it into the receiver’s content array. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1535089-insert?language=objc @@ -247,34 +247,11 @@ func (a_ ArrayController) Insert(sender objc.IObject) objc.Object { return rv } -// Triggers filtering of the receiver’s content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534319-rearrangeobjects?language=objc -func (a_ ArrayController) RearrangeObjects() { - objc.Call[objc.Void](a_, objc.Sel("rearrangeObjects")) -} - -// The index of the first object in the receiver’s selection [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1535885-selectionindex?language=objc -func (a_ ArrayController) SelectionIndex() uint { - rv := objc.Call[uint](a_, objc.Sel("selectionIndex")) - return rv -} - -// A Boolean that indicates if the receiver automatically rearranges its content to correspond to the current sort descriptors and filter predicates [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1524747-automaticallyrearrangesobjects?language=objc -func (a_ ArrayController) AutomaticallyRearrangesObjects() bool { - rv := objc.Call[bool](a_, objc.Sel("automaticallyRearrangesObjects")) - return rv -} - -// A Boolean that indicates if the receiver automatically rearranges its content to correspond to the current sort descriptors and filter predicates [Full Topic] +// Inserts objects into the receiver’s arranged objects array at the locations specified in indexes, and adds it to the receiver’s content collection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1524747-automaticallyrearrangesobjects?language=objc -func (a_ ArrayController) SetAutomaticallyRearrangesObjects(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAutomaticallyRearrangesObjects:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1527973-insertobjects?language=objc +func (a_ ArrayController) InsertObjectsAtArrangedObjectIndexes(objects []objc.IObject, indexes foundation.IIndexSet) { + objc.Call[objc.Void](a_, objc.Sel("insertObjects:atArrangedObjectIndexes:"), objects, indexes) } // A Boolean value that indicates whether the receiver will attempt to preserve the current selection when the content changes [Full Topic] @@ -292,44 +269,6 @@ func (a_ ArrayController) SetPreservesSelection(value bool) { objc.Call[objc.Void](a_, objc.Sel("setPreservesSelection:"), value) } -// An index set containing the indexes of the receiver’s currently selected objects in the content array [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1529908-selectionindexes?language=objc -func (a_ ArrayController) SelectionIndexes() foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](a_, objc.Sel("selectionIndexes")) - return rv -} - -// A Boolean value that indicates whether the receiver requires that the content array attempt to maintain a selection [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1532785-avoidsemptyselection?language=objc -func (a_ ArrayController) AvoidsEmptySelection() bool { - rv := objc.Call[bool](a_, objc.Sel("avoidsEmptySelection")) - return rv -} - -// A Boolean value that indicates whether the receiver requires that the content array attempt to maintain a selection [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1532785-avoidsemptyselection?language=objc -func (a_ ArrayController) SetAvoidsEmptySelection(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAvoidsEmptySelection:"), value) -} - -// A Boolean value that indicates whether the receiver automatically clears an existing filter predicate when new items are inserted or added to the content [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534701-clearsfilterpredicateoninsertion?language=objc -func (a_ ArrayController) ClearsFilterPredicateOnInsertion() bool { - rv := objc.Call[bool](a_, objc.Sel("clearsFilterPredicateOnInsertion")) - return rv -} - -// A Boolean value that indicates whether the receiver automatically clears an existing filter predicate when new items are inserted or added to the content [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534701-clearsfilterpredicateoninsertion?language=objc -func (a_ ArrayController) SetClearsFilterPredicateOnInsertion(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setClearsFilterPredicateOnInsertion:"), value) -} - // A Boolean value that indicates whether the receiver always returns the multiple values marker when multiple objects are selected [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1527129-alwaysusesmultiplevaluesmarker?language=objc @@ -345,21 +284,6 @@ func (a_ ArrayController) SetAlwaysUsesMultipleValuesMarker(value bool) { objc.Call[objc.Void](a_, objc.Sel("setAlwaysUsesMultipleValuesMarker:"), value) } -// A Boolean value that indicates whether the receiver automatically selects inserted objects [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1527427-selectsinsertedobjects?language=objc -func (a_ ArrayController) SelectsInsertedObjects() bool { - rv := objc.Call[bool](a_, objc.Sel("selectsInsertedObjects")) - return rv -} - -// A Boolean value that indicates whether the receiver automatically selects inserted objects [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1527427-selectsinsertedobjects?language=objc -func (a_ ArrayController) SetSelectsInsertedObjects(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setSelectsInsertedObjects:"), value) -} - // A predicate used by the receiver to filter the array controller contents [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1524815-filterpredicate?language=objc @@ -375,11 +299,11 @@ func (a_ ArrayController) SetFilterPredicate(value foundation.IPredicate) { objc.Call[objc.Void](a_, objc.Sel("setFilterPredicate:"), value) } -// An array containing the receiver’s content objects arranged using [appkit/nsarraycontroller/arrangeobjects]. [Full Topic] +// An array of key paths that trigger automatic content sorting or filtering [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534299-arrangedobjects?language=objc -func (a_ ArrayController) ArrangedObjects() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("arrangedObjects")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1526714-automaticrearrangementkeypaths?language=objc +func (a_ ArrayController) AutomaticRearrangementKeyPaths() []string { + rv := objc.Call[[]string](a_, objc.Sel("automaticRearrangementKeyPaths")) return rv } @@ -391,14 +315,6 @@ func (a_ ArrayController) CanSelectPrevious() bool { return rv } -// A Boolean value indicating whether the next object, relative to the current selection, in the receiver’s content array can be selected [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534863-canselectnext?language=objc -func (a_ ArrayController) CanSelectNext() bool { - rv := objc.Call[bool](a_, objc.Sel("canSelectNext")) - return rv -} - // An array of NSSortDescriptor objects, used by the receiver to arrange its content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1525707-sortdescriptors?language=objc @@ -414,6 +330,22 @@ func (a_ ArrayController) SetSortDescriptors(value []foundation.ISortDescriptor) objc.Call[objc.Void](a_, objc.Sel("setSortDescriptors:"), value) } +// An array containing the receiver’s content objects arranged using arrangeObjects:. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534299-arrangedobjects?language=objc +func (a_ ArrayController) ArrangedObjects() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("arrangedObjects")) + return rv +} + +// An index set containing the indexes of the receiver’s currently selected objects in the content array [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1529908-selectionindexes?language=objc +func (a_ ArrayController) SelectionIndexes() foundation.IndexSet { + rv := objc.Call[foundation.IndexSet](a_, objc.Sel("selectionIndexes")) + return rv +} + // Returns a Boolean value that indicates whether an object can be inserted into the receiver’s content collection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1532900-caninsert?language=objc @@ -422,10 +354,78 @@ func (a_ ArrayController) CanInsert() bool { return rv } -// An array of key paths that trigger automatic content sorting or filtering [Full Topic] +// A Boolean value indicating whether the next object, relative to the current selection, in the receiver’s content array can be selected [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1526714-automaticrearrangementkeypaths?language=objc -func (a_ ArrayController) AutomaticRearrangementKeyPaths() []string { - rv := objc.Call[[]string](a_, objc.Sel("automaticRearrangementKeyPaths")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534863-canselectnext?language=objc +func (a_ ArrayController) CanSelectNext() bool { + rv := objc.Call[bool](a_, objc.Sel("canSelectNext")) + return rv +} + +// The index of the first object in the receiver’s selection [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1535885-selectionindex?language=objc +func (a_ ArrayController) SelectionIndex() uint { + rv := objc.Call[uint](a_, objc.Sel("selectionIndex")) + return rv +} + +// A Boolean that indicates if the receiver automatically rearranges its content to correspond to the current sort descriptors and filter predicates [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1524747-automaticallyrearrangesobjects?language=objc +func (a_ ArrayController) AutomaticallyRearrangesObjects() bool { + rv := objc.Call[bool](a_, objc.Sel("automaticallyRearrangesObjects")) + return rv +} + +// A Boolean that indicates if the receiver automatically rearranges its content to correspond to the current sort descriptors and filter predicates [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1524747-automaticallyrearrangesobjects?language=objc +func (a_ ArrayController) SetAutomaticallyRearrangesObjects(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAutomaticallyRearrangesObjects:"), value) +} + +// A Boolean value that indicates whether the receiver automatically clears an existing filter predicate when new items are inserted or added to the content [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534701-clearsfilterpredicateoninsertion?language=objc +func (a_ ArrayController) ClearsFilterPredicateOnInsertion() bool { + rv := objc.Call[bool](a_, objc.Sel("clearsFilterPredicateOnInsertion")) + return rv +} + +// A Boolean value that indicates whether the receiver automatically clears an existing filter predicate when new items are inserted or added to the content [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1534701-clearsfilterpredicateoninsertion?language=objc +func (a_ ArrayController) SetClearsFilterPredicateOnInsertion(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setClearsFilterPredicateOnInsertion:"), value) +} + +// A Boolean value that indicates whether the receiver automatically selects inserted objects [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1527427-selectsinsertedobjects?language=objc +func (a_ ArrayController) SelectsInsertedObjects() bool { + rv := objc.Call[bool](a_, objc.Sel("selectsInsertedObjects")) return rv } + +// A Boolean value that indicates whether the receiver automatically selects inserted objects [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1527427-selectsinsertedobjects?language=objc +func (a_ ArrayController) SetSelectsInsertedObjects(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setSelectsInsertedObjects:"), value) +} + +// A Boolean value that indicates whether the receiver requires that the content array attempt to maintain a selection [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1532785-avoidsemptyselection?language=objc +func (a_ ArrayController) AvoidsEmptySelection() bool { + rv := objc.Call[bool](a_, objc.Sel("avoidsEmptySelection")) + return rv +} + +// A Boolean value that indicates whether the receiver requires that the content array attempt to maintain a selection [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1532785-avoidsemptyselection?language=objc +func (a_ ArrayController) SetAvoidsEmptySelection(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAvoidsEmptySelection:"), value) +} diff --git a/macos/appkit/ats_typesetter.gen.go b/macos/appkit/ats_typesetter.gen.go index e1251cb8..dfe17556 100644 --- a/macos/appkit/ats_typesetter.gen.go +++ b/macos/appkit/ats_typesetter.gen.go @@ -5,6 +5,7 @@ package appkit import ( "unsafe" + "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -18,6 +19,7 @@ type _ATSTypesetterClass struct { // An interface definition for the [ATSTypesetter] class. type IATSTypesetter interface { ITypesetter + GetLineFragmentRectUsedRectForParagraphSeparatorGlyphRangeAtProposedOrigin(lineFragmentRect *foundation.Rect, lineFragmentUsedRect *foundation.Rect, paragraphSeparatorGlyphRange foundation.Range, lineOrigin foundation.Point) } // A concrete typesetter object that places glyphs during the text layout process. [Full Topic] @@ -53,6 +55,13 @@ func (a_ ATSTypesetter) Init() ATSTypesetter { return rv } +// Calculates the line fragment rectangle and the portion of the rectangle that contains marks. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsatstypesetter/1528343-getlinefragmentrect?language=objc +func (a_ ATSTypesetter) GetLineFragmentRectUsedRectForParagraphSeparatorGlyphRangeAtProposedOrigin(lineFragmentRect *foundation.Rect, lineFragmentUsedRect *foundation.Rect, paragraphSeparatorGlyphRange foundation.Range, lineOrigin foundation.Point) { + objc.Call[objc.Void](a_, objc.Sel("getLineFragmentRect:usedRect:forParagraphSeparatorGlyphRange:atProposedOrigin:"), lineFragmentRect, lineFragmentUsedRect, paragraphSeparatorGlyphRange, lineOrigin) +} + // Returns a shared instance of the typesetter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsatstypesetter/1530993-sharedtypesetter?language=objc diff --git a/macos/appkit/bezier_path.gen.go b/macos/appkit/bezier_path.gen.go index 8e624b43..0480ae6e 100644 --- a/macos/appkit/bezier_path.gen.go +++ b/macos/appkit/bezier_path.gen.go @@ -20,54 +20,52 @@ type _BezierPathClass struct { // An interface definition for the [BezierPath] class. type IBezierPath interface { objc.IObject - GetLineDashCountPhase(pattern *float64, count *int, phase *float64) - ElementAtIndexAssociatedPoints(index int, points foundation.PointArray) BezierPathElement - RelativeCurveToPointControlPoint1ControlPoint2(endPoint foundation.Point, controlPoint1 foundation.Point, controlPoint2 foundation.Point) - Stroke() + AppendBezierPathWithCGGlyphsCountInFont(glyphs *coregraphics.Glyph, count int, font IFont) ElementAtIndex(index int) BezierPathElement - RelativeLineToPoint(point foundation.Point) - ContainsPoint(point foundation.Point) bool - TransformUsingAffineTransform(transform foundation.IAffineTransform) + SetClip() + AddClip() AppendBezierPathWithRoundedRectXRadiusYRadius(rect foundation.Rect, xRadius float64, yRadius float64) - AppendBezierPathWithPointsCount(points foundation.PointArray, count int) - AppendBezierPathWithCGGlyphInFont(glyph coregraphics.Glyph, font IFont) + TransformUsingAffineTransform(transform foundation.IAffineTransform) + AppendBezierPathWithOvalInRect(rect foundation.Rect) + ContainsPoint(point foundation.Point) bool RemoveAllPoints() - SetAssociatedPointsAtIndex(points foundation.PointArray, index int) - Fill() + AppendBezierPathWithRect(rect foundation.Rect) + RelativeCurveToPointControlPoint1ControlPoint2(endPoint foundation.Point, controlPoint1 foundation.Point, controlPoint2 foundation.Point) LineToPoint(point foundation.Point) + GetLineDashCountPhase(pattern *float64, count *int, phase *float64) + RelativeMoveToPoint(point foundation.Point) AppendBezierPathWithArcFromPointToPointRadius(point1 foundation.Point, point2 foundation.Point, radius float64) - AppendBezierPathWithCGGlyphsCountInFont(glyphs *coregraphics.Glyph, count int, font IFont) - AppendBezierPathWithRect(rect foundation.Rect) - AddClip() - SetClip() - SetLineDashCountPhase(pattern *float64, count int, phase float64) - AppendBezierPathWithArcWithCenterRadiusStartAngleEndAngleClockwise(center foundation.Point, radius float64, startAngle float64, endAngle float64, clockwise bool) - ClosePath() - AppendBezierPathWithArcWithCenterRadiusStartAngleEndAngle(center foundation.Point, radius float64, startAngle float64, endAngle float64) CurveToPointControlPoint1ControlPoint2(endPoint foundation.Point, controlPoint1 foundation.Point, controlPoint2 foundation.Point) - AppendBezierPathWithOvalInRect(rect foundation.Rect) - MoveToPoint(point foundation.Point) AppendBezierPath(path IBezierPath) - RelativeMoveToPoint(point foundation.Point) - LineJoinStyle() LineJoinStyle - SetLineJoinStyle(value LineJoinStyle) - CurrentPoint() foundation.Point - LineCapStyle() LineCapStyle - SetLineCapStyle(value LineCapStyle) - ControlPointBounds() foundation.Rect + Stroke() + AppendBezierPathWithArcWithCenterRadiusStartAngleEndAngle(center foundation.Point, radius float64, startAngle float64, endAngle float64) + ClosePath() + RelativeLineToPoint(point foundation.Point) + MoveToPoint(point foundation.Point) + AppendBezierPathWithPointsCount(points foundation.PointArray, count int) + SetLineDashCountPhase(pattern *float64, count int, phase float64) + SetAssociatedPointsAtIndex(points foundation.PointArray, index int) + Fill() + AppendBezierPathWithCGGlyphInFont(glyph coregraphics.Glyph, font IFont) LineWidth() float64 SetLineWidth(value float64) - WindingRule() WindingRule - SetWindingRule(value WindingRule) - ElementCount() int IsEmpty() bool - Bounds() foundation.Rect BezierPathByReversingPath() BezierPath - BezierPathByFlatteningPath() BezierPath MiterLimit() float64 SetMiterLimit(value float64) Flatness() float64 SetFlatness(value float64) + LineJoinStyle() LineJoinStyle + SetLineJoinStyle(value LineJoinStyle) + Bounds() foundation.Rect + LineCapStyle() LineCapStyle + SetLineCapStyle(value LineCapStyle) + ControlPointBounds() foundation.Rect + ElementCount() int + BezierPathByFlatteningPath() BezierPath + CurrentPoint() foundation.Point + WindingRule() WindingRule + SetWindingRule(value WindingRule) } // An object that can create paths using PostScript-style commands. [Full Topic] @@ -103,64 +101,21 @@ func (b_ BezierPath) Init() BezierPath { return rv } -// Creates and returns a new Bézier path object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520652-bezierpath?language=objc -func (bc _BezierPathClass) BezierPath() BezierPath { - rv := objc.Call[BezierPath](bc, objc.Sel("bezierPath")) - return rv -} - -// Creates and returns a new Bézier path object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520652-bezierpath?language=objc -func BezierPath_BezierPath() BezierPath { - return BezierPathClass.BezierPath() -} - -// Returns the line-stroking pattern for the receiver. [Full Topic] +// Appends the outlines of the specified glyphs to the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520636-getlinedash?language=objc -func (b_ BezierPath) GetLineDashCountPhase(pattern *float64, count *int, phase *float64) { - objc.Call[objc.Void](b_, objc.Sel("getLineDash:count:phase:"), pattern, count, phase) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/2887165-appendbezierpathwithcgglyphs?language=objc +func (b_ BezierPath) AppendBezierPathWithCGGlyphsCountInFont(glyphs *coregraphics.Glyph, count int, font IFont) { + objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithCGGlyphs:count:inFont:"), glyphs, count, font) } -// Gets the element type and (and optionally) the associated points for the path element at the specified index. [Full Topic] +// Returns the type of path element at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520674-elementatindex?language=objc -func (b_ BezierPath) ElementAtIndexAssociatedPoints(index int, points foundation.PointArray) BezierPathElement { - rv := objc.Call[BezierPathElement](b_, objc.Sel("elementAtIndex:associatedPoints:"), index, points) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520751-elementatindex?language=objc +func (b_ BezierPath) ElementAtIndex(index int) BezierPathElement { + rv := objc.Call[BezierPathElement](b_, objc.Sel("elementAtIndex:"), index) return rv } -// Strokes the path of the specified rectangle using the current stroke color and the default drawing attributes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520741-strokerect?language=objc -func (bc _BezierPathClass) StrokeRect(rect foundation.Rect) { - objc.Call[objc.Void](bc, objc.Sel("strokeRect:"), rect) -} - -// Strokes the path of the specified rectangle using the current stroke color and the default drawing attributes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520741-strokerect?language=objc -func BezierPath_StrokeRect(rect foundation.Rect) { - BezierPathClass.StrokeRect(rect) -} - -// Adds a Bezier cubic curve to the path from the current point to a new location, which is specified as a relative distance from the current point. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520714-relativecurvetopoint?language=objc -func (b_ BezierPath) RelativeCurveToPointControlPoint1ControlPoint2(endPoint foundation.Point, controlPoint1 foundation.Point, controlPoint2 foundation.Point) { - objc.Call[objc.Void](b_, objc.Sel("relativeCurveToPoint:controlPoint1:controlPoint2:"), endPoint, controlPoint1, controlPoint2) -} - -// Draws a line along the path using the current stroke color and drawing attributes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520739-stroke?language=objc -func (b_ BezierPath) Stroke() { - objc.Call[objc.Void](b_, objc.Sel("stroke")) -} - // Creates and returns a new Bézier path object initialized with an oval path inscribed in the specified rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520647-bezierpathwithovalinrect?language=objc @@ -176,19 +131,18 @@ func BezierPath_BezierPathWithOvalInRect(rect foundation.Rect) BezierPath { return BezierPathClass.BezierPathWithOvalInRect(rect) } -// Returns the type of path element at the specified index. [Full Topic] +// Replaces the clipping path of the current graphics context with the area inside the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520751-elementatindex?language=objc -func (b_ BezierPath) ElementAtIndex(index int) BezierPathElement { - rv := objc.Call[BezierPathElement](b_, objc.Sel("elementAtIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520704-setclip?language=objc +func (b_ BezierPath) SetClip() { + objc.Call[objc.Void](b_, objc.Sel("setClip")) } -// Appends a straight line segment to the path starting at the current point and moving towards the specified point, relative to the current location. [Full Topic] +// Intersects the area enclosed by the path with the clipping path of the current graphics context and makes the resulting shape the current clipping path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520709-relativelinetopoint?language=objc -func (b_ BezierPath) RelativeLineToPoint(point foundation.Point) { - objc.Call[objc.Void](b_, objc.Sel("relativeLineToPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520634-addclip?language=objc +func (b_ BezierPath) AddClip() { + objc.Call[objc.Void](b_, objc.Sel("addClip")) } // Creates and returns a new Bézier path object initialized with a rounded rectangular path. [Full Topic] @@ -206,26 +160,11 @@ func BezierPath_BezierPathWithRoundedRectXRadiusYRadius(rect foundation.Rect, xR return BezierPathClass.BezierPathWithRoundedRectXRadiusYRadius(rect, xRadius, yRadius) } -// Returns a Boolean value that indicates whether the path contains the specified point. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520716-containspoint?language=objc -func (b_ BezierPath) ContainsPoint(point foundation.Point) bool { - rv := objc.Call[bool](b_, objc.Sel("containsPoint:"), point) - return rv -} - -// Draws a set of packed glyphs at the specified point in the current coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520630-drawpackedglyphs?language=objc -func (bc _BezierPathClass) DrawPackedGlyphsAtPoint(packedGlyphs *uint8, point foundation.Point) { - objc.Call[objc.Void](bc, objc.Sel("drawPackedGlyphs:atPoint:"), packedGlyphs, point) -} - -// Draws a set of packed glyphs at the specified point in the current coordinate system. [Full Topic] +// Appends a rounded rectangular path to the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520630-drawpackedglyphs?language=objc -func BezierPath_DrawPackedGlyphsAtPoint(packedGlyphs *uint8, point foundation.Point) { - BezierPathClass.DrawPackedGlyphsAtPoint(packedGlyphs, point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520705-appendbezierpathwithroundedrect?language=objc +func (b_ BezierPath) AppendBezierPathWithRoundedRectXRadiusYRadius(rect foundation.Rect, xRadius float64, yRadius float64) { + objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithRoundedRect:xRadius:yRadius:"), rect, xRadius, yRadius) } // Transforms all points in the path using the specified transform. [Full Topic] @@ -235,25 +174,19 @@ func (b_ BezierPath) TransformUsingAffineTransform(transform foundation.IAffineT objc.Call[objc.Void](b_, objc.Sel("transformUsingAffineTransform:"), transform) } -// Appends a rounded rectangular path to the path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520705-appendbezierpathwithroundedrect?language=objc -func (b_ BezierPath) AppendBezierPathWithRoundedRectXRadiusYRadius(rect foundation.Rect, xRadius float64, yRadius float64) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithRoundedRect:xRadius:yRadius:"), rect, xRadius, yRadius) -} - -// Appends a series of line segments to the path. [Full Topic] +// Appends an oval path to the path, inscribing the oval in the specified rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520749-appendbezierpathwithpoints?language=objc -func (b_ BezierPath) AppendBezierPathWithPointsCount(points foundation.PointArray, count int) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithPoints:count:"), points, count) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520718-appendbezierpathwithovalinrect?language=objc +func (b_ BezierPath) AppendBezierPathWithOvalInRect(rect foundation.Rect) { + objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithOvalInRect:"), rect) } -// Appends an outline of the specified glyph to the path. [Full Topic] +// Returns a Boolean value that indicates whether the path contains the specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/2887184-appendbezierpathwithcgglyph?language=objc -func (b_ BezierPath) AppendBezierPathWithCGGlyphInFont(glyph coregraphics.Glyph, font IFont) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithCGGlyph:inFont:"), glyph, font) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520716-containspoint?language=objc +func (b_ BezierPath) ContainsPoint(point foundation.Point) bool { + rv := objc.Call[bool](b_, objc.Sel("containsPoint:"), point) + return rv } // Removes all path elements from the path, effectively clearing the path. [Full Topic] @@ -263,18 +196,11 @@ func (b_ BezierPath) RemoveAllPoints() { objc.Call[objc.Void](b_, objc.Sel("removeAllPoints")) } -// Changes the points associated with the specified path element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520671-setassociatedpoints?language=objc -func (b_ BezierPath) SetAssociatedPointsAtIndex(points foundation.PointArray, index int) { - objc.Call[objc.Void](b_, objc.Sel("setAssociatedPoints:atIndex:"), points, index) -} - -// Paints the region enclosed by the path. [Full Topic] +// Appends a rectangular path to the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520700-fill?language=objc -func (b_ BezierPath) Fill() { - objc.Call[objc.Void](b_, objc.Sel("fill")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520670-appendbezierpathwithrect?language=objc +func (b_ BezierPath) AppendBezierPathWithRect(rect foundation.Rect) { + objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithRect:"), rect) } // Creates and returns a new Bézier path object initialized with a rectangular path. [Full Topic] @@ -292,6 +218,13 @@ func BezierPath_BezierPathWithRect(rect foundation.Rect) BezierPath { return BezierPathClass.BezierPathWithRect(rect) } +// Adds a Bezier cubic curve to the path from the current point to a new location, which is specified as a relative distance from the current point. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520714-relativecurvetopoint?language=objc +func (b_ BezierPath) RelativeCurveToPointControlPoint1ControlPoint2(endPoint foundation.Point, controlPoint1 foundation.Point, controlPoint2 foundation.Point) { + objc.Call[objc.Void](b_, objc.Sel("relativeCurveToPoint:controlPoint1:controlPoint2:"), endPoint, controlPoint1, controlPoint2) +} + // Appends a straight line to the path. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520742-linetopoint?language=objc @@ -299,6 +232,20 @@ func (b_ BezierPath) LineToPoint(point foundation.Point) { objc.Call[objc.Void](b_, objc.Sel("lineToPoint:"), point) } +// Returns the line-stroking pattern for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520636-getlinedash?language=objc +func (b_ BezierPath) GetLineDashCountPhase(pattern *float64, count *int, phase *float64) { + objc.Call[objc.Void](b_, objc.Sel("getLineDash:count:phase:"), pattern, count, phase) +} + +// Moves the path’s current point to a new point whose location is the specified distance from the current point. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520724-relativemovetopoint?language=objc +func (b_ BezierPath) RelativeMoveToPoint(point foundation.Point) { + objc.Call[objc.Void](b_, objc.Sel("relativeMoveToPoint:"), point) +} + // Appends an arc to the path. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520737-appendbezierpathwitharcfrompoint?language=objc @@ -306,116 +253,131 @@ func (b_ BezierPath) AppendBezierPathWithArcFromPointToPointRadius(point1 founda objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithArcFromPoint:toPoint:radius:"), point1, point2, radius) } -// Appends the outlines of the specified glyphs to the path. [Full Topic] +// Creates and returns a new Bézier path object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/2887165-appendbezierpathwithcgglyphs?language=objc -func (b_ BezierPath) AppendBezierPathWithCGGlyphsCountInFont(glyphs *coregraphics.Glyph, count int, font IFont) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithCGGlyphs:count:inFont:"), glyphs, count, font) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520652-bezierpath?language=objc +func (bc _BezierPathClass) BezierPath() BezierPath { + rv := objc.Call[BezierPath](bc, objc.Sel("bezierPath")) + return rv } -// Appends a rectangular path to the path. [Full Topic] +// Creates and returns a new Bézier path object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520670-appendbezierpathwithrect?language=objc -func (b_ BezierPath) AppendBezierPathWithRect(rect foundation.Rect) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520652-bezierpath?language=objc +func BezierPath_BezierPath() BezierPath { + return BezierPathClass.BezierPath() } -// Strokes a line between two points using the current stroke color and the default drawing attributes. [Full Topic] +// Adds a Bezier cubic curve to the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520626-strokelinefrompoint?language=objc -func (bc _BezierPathClass) StrokeLineFromPointToPoint(point1 foundation.Point, point2 foundation.Point) { - objc.Call[objc.Void](bc, objc.Sel("strokeLineFromPoint:toPoint:"), point1, point2) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520628-curvetopoint?language=objc +func (b_ BezierPath) CurveToPointControlPoint1ControlPoint2(endPoint foundation.Point, controlPoint1 foundation.Point, controlPoint2 foundation.Point) { + objc.Call[objc.Void](b_, objc.Sel("curveToPoint:controlPoint1:controlPoint2:"), endPoint, controlPoint1, controlPoint2) } -// Strokes a line between two points using the current stroke color and the default drawing attributes. [Full Topic] +// Appends the contents of the specified path object to the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520626-strokelinefrompoint?language=objc -func BezierPath_StrokeLineFromPointToPoint(point1 foundation.Point, point2 foundation.Point) { - BezierPathClass.StrokeLineFromPointToPoint(point1, point2) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520688-appendbezierpath?language=objc +func (b_ BezierPath) AppendBezierPath(path IBezierPath) { + objc.Call[objc.Void](b_, objc.Sel("appendBezierPath:"), path) } -// Fills the specified rectangular path with the current fill color. [Full Topic] +// Draws a line along the path using the current stroke color and drawing attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520747-fillrect?language=objc -func (bc _BezierPathClass) FillRect(rect foundation.Rect) { - objc.Call[objc.Void](bc, objc.Sel("fillRect:"), rect) -} +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520739-stroke?language=objc +func (b_ BezierPath) Stroke() { + objc.Call[objc.Void](b_, objc.Sel("stroke")) +} -// Fills the specified rectangular path with the current fill color. [Full Topic] +// Appends an arc of a circle to the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520747-fillrect?language=objc -func BezierPath_FillRect(rect foundation.Rect) { - BezierPathClass.FillRect(rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520680-appendbezierpathwitharcwithcente?language=objc +func (b_ BezierPath) AppendBezierPathWithArcWithCenterRadiusStartAngleEndAngle(center foundation.Point, radius float64, startAngle float64, endAngle float64) { + objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:"), center, radius, startAngle, endAngle) } -// Intersects the area enclosed by the path with the clipping path of the current graphics context and makes the resulting shape the current clipping path. [Full Topic] +// Closes the most recently added subpath. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520634-addclip?language=objc -func (b_ BezierPath) AddClip() { - objc.Call[objc.Void](b_, objc.Sel("addClip")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520640-closepath?language=objc +func (b_ BezierPath) ClosePath() { + objc.Call[objc.Void](b_, objc.Sel("closePath")) } -// Replaces the clipping path of the current graphics context with the area inside the path. [Full Topic] +// Strokes a line between two points using the current stroke color and the default drawing attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520704-setclip?language=objc -func (b_ BezierPath) SetClip() { - objc.Call[objc.Void](b_, objc.Sel("setClip")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520626-strokelinefrompoint?language=objc +func (bc _BezierPathClass) StrokeLineFromPointToPoint(point1 foundation.Point, point2 foundation.Point) { + objc.Call[objc.Void](bc, objc.Sel("strokeLineFromPoint:toPoint:"), point1, point2) } -// Sets the line-stroking pattern for the path. [Full Topic] +// Strokes a line between two points using the current stroke color and the default drawing attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520730-setlinedash?language=objc -func (b_ BezierPath) SetLineDashCountPhase(pattern *float64, count int, phase float64) { - objc.Call[objc.Void](b_, objc.Sel("setLineDash:count:phase:"), pattern, count, phase) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520626-strokelinefrompoint?language=objc +func BezierPath_StrokeLineFromPointToPoint(point1 foundation.Point, point2 foundation.Point) { + BezierPathClass.StrokeLineFromPointToPoint(point1, point2) } -// Appends an arc of a circle to the path. [Full Topic] +// Appends a straight line segment to the path starting at the current point and moving towards the specified point, relative to the current location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520659-appendbezierpathwitharcwithcente?language=objc -func (b_ BezierPath) AppendBezierPathWithArcWithCenterRadiusStartAngleEndAngleClockwise(center foundation.Point, radius float64, startAngle float64, endAngle float64, clockwise bool) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:clockwise:"), center, radius, startAngle, endAngle, clockwise) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520709-relativelinetopoint?language=objc +func (b_ BezierPath) RelativeLineToPoint(point foundation.Point) { + objc.Call[objc.Void](b_, objc.Sel("relativeLineToPoint:"), point) } -// Closes the most recently added subpath. [Full Topic] +// Moves the path’s current point to the specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520640-closepath?language=objc -func (b_ BezierPath) ClosePath() { - objc.Call[objc.Void](b_, objc.Sel("closePath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520684-movetopoint?language=objc +func (b_ BezierPath) MoveToPoint(point foundation.Point) { + objc.Call[objc.Void](b_, objc.Sel("moveToPoint:"), point) } -// Appends an arc of a circle to the path. [Full Topic] +// Appends a series of line segments to the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520680-appendbezierpathwitharcwithcente?language=objc -func (b_ BezierPath) AppendBezierPathWithArcWithCenterRadiusStartAngleEndAngle(center foundation.Point, radius float64, startAngle float64, endAngle float64) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:"), center, radius, startAngle, endAngle) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520749-appendbezierpathwithpoints?language=objc +func (b_ BezierPath) AppendBezierPathWithPointsCount(points foundation.PointArray, count int) { + objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithPoints:count:"), points, count) } -// Adds a Bezier cubic curve to the path. [Full Topic] +// Fills the specified rectangular path with the current fill color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520628-curvetopoint?language=objc -func (b_ BezierPath) CurveToPointControlPoint1ControlPoint2(endPoint foundation.Point, controlPoint1 foundation.Point, controlPoint2 foundation.Point) { - objc.Call[objc.Void](b_, objc.Sel("curveToPoint:controlPoint1:controlPoint2:"), endPoint, controlPoint1, controlPoint2) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520747-fillrect?language=objc +func (bc _BezierPathClass) FillRect(rect foundation.Rect) { + objc.Call[objc.Void](bc, objc.Sel("fillRect:"), rect) } -// Appends an oval path to the path, inscribing the oval in the specified rectangle. [Full Topic] +// Fills the specified rectangular path with the current fill color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520718-appendbezierpathwithovalinrect?language=objc -func (b_ BezierPath) AppendBezierPathWithOvalInRect(rect foundation.Rect) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithOvalInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520747-fillrect?language=objc +func BezierPath_FillRect(rect foundation.Rect) { + BezierPathClass.FillRect(rect) } -// Moves the path’s current point to the specified location. [Full Topic] +// Sets the line-stroking pattern for the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520684-movetopoint?language=objc -func (b_ BezierPath) MoveToPoint(point foundation.Point) { - objc.Call[objc.Void](b_, objc.Sel("moveToPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520730-setlinedash?language=objc +func (b_ BezierPath) SetLineDashCountPhase(pattern *float64, count int, phase float64) { + objc.Call[objc.Void](b_, objc.Sel("setLineDash:count:phase:"), pattern, count, phase) } -// Appends the contents of the specified path object to the path. [Full Topic] +// Changes the points associated with the specified path element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520688-appendbezierpath?language=objc -func (b_ BezierPath) AppendBezierPath(path IBezierPath) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520671-setassociatedpoints?language=objc +func (b_ BezierPath) SetAssociatedPointsAtIndex(points foundation.PointArray, index int) { + objc.Call[objc.Void](b_, objc.Sel("setAssociatedPoints:atIndex:"), points, index) +} + +// Strokes the path of the specified rectangle using the current stroke color and the default drawing attributes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520741-strokerect?language=objc +func (bc _BezierPathClass) StrokeRect(rect foundation.Rect) { + objc.Call[objc.Void](bc, objc.Sel("strokeRect:"), rect) +} + +// Strokes the path of the specified rectangle using the current stroke color and the default drawing attributes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520741-strokerect?language=objc +func BezierPath_StrokeRect(rect foundation.Rect) { + BezierPathClass.StrokeRect(rect) } // Intersects the specified rectangle with the clipping path of the current graphics context and makes the resulting shape the current clipping path. [Full Topic] @@ -432,86 +394,61 @@ func BezierPath_ClipRect(rect foundation.Rect) { BezierPathClass.ClipRect(rect) } -// Moves the path’s current point to a new point whose location is the specified distance from the current point. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520724-relativemovetopoint?language=objc -func (b_ BezierPath) RelativeMoveToPoint(point foundation.Point) { - objc.Call[objc.Void](b_, objc.Sel("relativeMoveToPoint:"), point) -} - -// The line join style for the path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520726-linejoinstyle?language=objc -func (b_ BezierPath) LineJoinStyle() LineJoinStyle { - rv := objc.Call[LineJoinStyle](b_, objc.Sel("lineJoinStyle")) - return rv -} - -// The line join style for the path. [Full Topic] +// Paints the region enclosed by the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520726-linejoinstyle?language=objc -func (b_ BezierPath) SetLineJoinStyle(value LineJoinStyle) { - objc.Call[objc.Void](b_, objc.Sel("setLineJoinStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520700-fill?language=objc +func (b_ BezierPath) Fill() { + objc.Call[objc.Void](b_, objc.Sel("fill")) } -// The current point (the trailing point or ending point in the most recently added segment). [Full Topic] +// Draws a set of packed glyphs at the specified point in the current coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520698-currentpoint?language=objc -func (b_ BezierPath) CurrentPoint() foundation.Point { - rv := objc.Call[foundation.Point](b_, objc.Sel("currentPoint")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520630-drawpackedglyphs?language=objc +func (bc _BezierPathClass) DrawPackedGlyphsAtPoint(packedGlyphs *uint8, point foundation.Point) { + objc.Call[objc.Void](bc, objc.Sel("drawPackedGlyphs:atPoint:"), packedGlyphs, point) } -// The line cap style for the path. [Full Topic] +// Draws a set of packed glyphs at the specified point in the current coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520667-linecapstyle?language=objc -func (b_ BezierPath) LineCapStyle() LineCapStyle { - rv := objc.Call[LineCapStyle](b_, objc.Sel("lineCapStyle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520630-drawpackedglyphs?language=objc +func BezierPath_DrawPackedGlyphsAtPoint(packedGlyphs *uint8, point foundation.Point) { + BezierPathClass.DrawPackedGlyphsAtPoint(packedGlyphs, point) } -// The line cap style for the path. [Full Topic] +// Appends an outline of the specified glyph to the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520667-linecapstyle?language=objc -func (b_ BezierPath) SetLineCapStyle(value LineCapStyle) { - objc.Call[objc.Void](b_, objc.Sel("setLineCapStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/2887184-appendbezierpathwithcgglyph?language=objc +func (b_ BezierPath) AppendBezierPathWithCGGlyphInFont(glyph coregraphics.Glyph, font IFont) { + objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithCGGlyph:inFont:"), glyph, font) } -// The default flatness value for all paths. [Full Topic] +// Returns the default miter limit for all paths. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520720-defaultflatness?language=objc -func (bc _BezierPathClass) DefaultFlatness() float64 { - rv := objc.Call[float64](bc, objc.Sel("defaultFlatness")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520728-defaultmiterlimit?language=objc +func (bc _BezierPathClass) DefaultMiterLimit() float64 { + rv := objc.Call[float64](bc, objc.Sel("defaultMiterLimit")) return rv } -// The default flatness value for all paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520720-defaultflatness?language=objc -func BezierPath_DefaultFlatness() float64 { - return BezierPathClass.DefaultFlatness() -} - -// The default flatness value for all paths. [Full Topic] +// Returns the default miter limit for all paths. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520720-defaultflatness?language=objc -func (bc _BezierPathClass) SetDefaultFlatness(value float64) { - objc.Call[objc.Void](bc, objc.Sel("setDefaultFlatness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520728-defaultmiterlimit?language=objc +func BezierPath_DefaultMiterLimit() float64 { + return BezierPathClass.DefaultMiterLimit() } -// The default flatness value for all paths. [Full Topic] +// Returns the default miter limit for all paths. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520720-defaultflatness?language=objc -func BezierPath_SetDefaultFlatness(value float64) { - BezierPathClass.SetDefaultFlatness(value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520728-defaultmiterlimit?language=objc +func (bc _BezierPathClass) SetDefaultMiterLimit(value float64) { + objc.Call[objc.Void](bc, objc.Sel("setDefaultMiterLimit:"), value) } -// The bounding box of the path, including any control points. [Full Topic] +// Returns the default miter limit for all paths. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520654-controlpointbounds?language=objc -func (b_ BezierPath) ControlPointBounds() foundation.Rect { - rv := objc.Call[foundation.Rect](b_, objc.Sel("controlPointBounds")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520728-defaultmiterlimit?language=objc +func BezierPath_SetDefaultMiterLimit(value float64) { + BezierPathClass.SetDefaultMiterLimit(value) } // The width of stroked path lines. [Full Topic] @@ -529,19 +466,20 @@ func (b_ BezierPath) SetLineWidth(value float64) { objc.Call[objc.Void](b_, objc.Sel("setLineWidth:"), value) } -// The winding rule used to fill the path. [Full Topic] +// A Boolean value that indicates whether the path is empty. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520657-windingrule?language=objc -func (b_ BezierPath) WindingRule() WindingRule { - rv := objc.Call[WindingRule](b_, objc.Sel("windingRule")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520712-empty?language=objc +func (b_ BezierPath) IsEmpty() bool { + rv := objc.Call[bool](b_, objc.Sel("isEmpty")) return rv } -// The winding rule used to fill the path. [Full Topic] +// A path containing the reversed contents of the current path object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520657-windingrule?language=objc -func (b_ BezierPath) SetWindingRule(value WindingRule) { - objc.Call[objc.Void](b_, objc.Sel("setWindingRule:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520656-bezierpathbyreversingpath?language=objc +func (b_ BezierPath) BezierPathByReversingPath() BezierPath { + rv := objc.Call[BezierPath](b_, objc.Sel("bezierPathByReversingPath")) + return rv } // Returns the default line width for the all paths. [Full Topic] @@ -573,94 +511,34 @@ func BezierPath_SetDefaultLineWidth(value float64) { BezierPathClass.SetDefaultLineWidth(value) } -// Returns the default miter limit for all paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520728-defaultmiterlimit?language=objc -func (bc _BezierPathClass) DefaultMiterLimit() float64 { - rv := objc.Call[float64](bc, objc.Sel("defaultMiterLimit")) - return rv -} - -// Returns the default miter limit for all paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520728-defaultmiterlimit?language=objc -func BezierPath_DefaultMiterLimit() float64 { - return BezierPathClass.DefaultMiterLimit() -} - -// Returns the default miter limit for all paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520728-defaultmiterlimit?language=objc -func (bc _BezierPathClass) SetDefaultMiterLimit(value float64) { - objc.Call[objc.Void](bc, objc.Sel("setDefaultMiterLimit:"), value) -} - -// Returns the default miter limit for all paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520728-defaultmiterlimit?language=objc -func BezierPath_SetDefaultMiterLimit(value float64) { - BezierPathClass.SetDefaultMiterLimit(value) -} - -// Returns the default line join style for all paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520648-defaultlinejoinstyle?language=objc -func (bc _BezierPathClass) DefaultLineJoinStyle() LineJoinStyle { - rv := objc.Call[LineJoinStyle](bc, objc.Sel("defaultLineJoinStyle")) - return rv -} - -// Returns the default line join style for all paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520648-defaultlinejoinstyle?language=objc -func BezierPath_DefaultLineJoinStyle() LineJoinStyle { - return BezierPathClass.DefaultLineJoinStyle() -} - -// Returns the default line join style for all paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520648-defaultlinejoinstyle?language=objc -func (bc _BezierPathClass) SetDefaultLineJoinStyle(value LineJoinStyle) { - objc.Call[objc.Void](bc, objc.Sel("setDefaultLineJoinStyle:"), value) -} - -// Returns the default line join style for all paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520648-defaultlinejoinstyle?language=objc -func BezierPath_SetDefaultLineJoinStyle(value LineJoinStyle) { - BezierPathClass.SetDefaultLineJoinStyle(value) -} - -// The total number of path elements in the path. [Full Topic] +// The limit at which miter joins are converted to bevel joins. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520645-elementcount?language=objc -func (b_ BezierPath) ElementCount() int { - rv := objc.Call[int](b_, objc.Sel("elementCount")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520740-miterlimit?language=objc +func (b_ BezierPath) MiterLimit() float64 { + rv := objc.Call[float64](b_, objc.Sel("miterLimit")) return rv } -// A Boolean value that indicates whether the path is empty. [Full Topic] +// The limit at which miter joins are converted to bevel joins. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520712-empty?language=objc -func (b_ BezierPath) IsEmpty() bool { - rv := objc.Call[bool](b_, objc.Sel("isEmpty")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520740-miterlimit?language=objc +func (b_ BezierPath) SetMiterLimit(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setMiterLimit:"), value) } -// The bounding box of the path. [Full Topic] +// The accuracy with which curves are rendered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520722-bounds?language=objc -func (b_ BezierPath) Bounds() foundation.Rect { - rv := objc.Call[foundation.Rect](b_, objc.Sel("bounds")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520676-flatness?language=objc +func (b_ BezierPath) Flatness() float64 { + rv := objc.Call[float64](b_, objc.Sel("flatness")) return rv } -// A path containing the reversed contents of the current path object. [Full Topic] +// The accuracy with which curves are rendered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520656-bezierpathbyreversingpath?language=objc -func (b_ BezierPath) BezierPathByReversingPath() BezierPath { - rv := objc.Call[BezierPath](b_, objc.Sel("bezierPathByReversingPath")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520676-flatness?language=objc +func (b_ BezierPath) SetFlatness(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setFlatness:"), value) } // Returns the default winding rule used to fill all paths. [Full Topic] @@ -692,11 +570,26 @@ func BezierPath_SetDefaultWindingRule(value WindingRule) { BezierPathClass.SetDefaultWindingRule(value) } -// A flattened version of the path object. [Full Topic] +// The line join style for the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520733-bezierpathbyflatteningpath?language=objc -func (b_ BezierPath) BezierPathByFlatteningPath() BezierPath { - rv := objc.Call[BezierPath](b_, objc.Sel("bezierPathByFlatteningPath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520726-linejoinstyle?language=objc +func (b_ BezierPath) LineJoinStyle() LineJoinStyle { + rv := objc.Call[LineJoinStyle](b_, objc.Sel("lineJoinStyle")) + return rv +} + +// The line join style for the path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520726-linejoinstyle?language=objc +func (b_ BezierPath) SetLineJoinStyle(value LineJoinStyle) { + objc.Call[objc.Void](b_, objc.Sel("setLineJoinStyle:"), value) +} + +// The bounding box of the path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520722-bounds?language=objc +func (b_ BezierPath) Bounds() foundation.Rect { + rv := objc.Call[foundation.Rect](b_, objc.Sel("bounds")) return rv } @@ -729,32 +622,122 @@ func BezierPath_SetDefaultLineCapStyle(value LineCapStyle) { BezierPathClass.SetDefaultLineCapStyle(value) } -// The limit at which miter joins are converted to bevel joins. [Full Topic] +// Returns the default line join style for all paths. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520740-miterlimit?language=objc -func (b_ BezierPath) MiterLimit() float64 { - rv := objc.Call[float64](b_, objc.Sel("miterLimit")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520648-defaultlinejoinstyle?language=objc +func (bc _BezierPathClass) DefaultLineJoinStyle() LineJoinStyle { + rv := objc.Call[LineJoinStyle](bc, objc.Sel("defaultLineJoinStyle")) return rv } -// The limit at which miter joins are converted to bevel joins. [Full Topic] +// Returns the default line join style for all paths. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520740-miterlimit?language=objc -func (b_ BezierPath) SetMiterLimit(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setMiterLimit:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520648-defaultlinejoinstyle?language=objc +func BezierPath_DefaultLineJoinStyle() LineJoinStyle { + return BezierPathClass.DefaultLineJoinStyle() } -// The accuracy with which curves are rendered. [Full Topic] +// Returns the default line join style for all paths. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520676-flatness?language=objc -func (b_ BezierPath) Flatness() float64 { - rv := objc.Call[float64](b_, objc.Sel("flatness")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520648-defaultlinejoinstyle?language=objc +func (bc _BezierPathClass) SetDefaultLineJoinStyle(value LineJoinStyle) { + objc.Call[objc.Void](bc, objc.Sel("setDefaultLineJoinStyle:"), value) +} + +// Returns the default line join style for all paths. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520648-defaultlinejoinstyle?language=objc +func BezierPath_SetDefaultLineJoinStyle(value LineJoinStyle) { + BezierPathClass.SetDefaultLineJoinStyle(value) +} + +// The line cap style for the path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520667-linecapstyle?language=objc +func (b_ BezierPath) LineCapStyle() LineCapStyle { + rv := objc.Call[LineCapStyle](b_, objc.Sel("lineCapStyle")) return rv } -// The accuracy with which curves are rendered. [Full Topic] +// The line cap style for the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520676-flatness?language=objc -func (b_ BezierPath) SetFlatness(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setFlatness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520667-linecapstyle?language=objc +func (b_ BezierPath) SetLineCapStyle(value LineCapStyle) { + objc.Call[objc.Void](b_, objc.Sel("setLineCapStyle:"), value) +} + +// The default flatness value for all paths. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520720-defaultflatness?language=objc +func (bc _BezierPathClass) DefaultFlatness() float64 { + rv := objc.Call[float64](bc, objc.Sel("defaultFlatness")) + return rv +} + +// The default flatness value for all paths. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520720-defaultflatness?language=objc +func BezierPath_DefaultFlatness() float64 { + return BezierPathClass.DefaultFlatness() +} + +// The default flatness value for all paths. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520720-defaultflatness?language=objc +func (bc _BezierPathClass) SetDefaultFlatness(value float64) { + objc.Call[objc.Void](bc, objc.Sel("setDefaultFlatness:"), value) +} + +// The default flatness value for all paths. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520720-defaultflatness?language=objc +func BezierPath_SetDefaultFlatness(value float64) { + BezierPathClass.SetDefaultFlatness(value) +} + +// The bounding box of the path, including any control points. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520654-controlpointbounds?language=objc +func (b_ BezierPath) ControlPointBounds() foundation.Rect { + rv := objc.Call[foundation.Rect](b_, objc.Sel("controlPointBounds")) + return rv +} + +// The total number of path elements in the path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520645-elementcount?language=objc +func (b_ BezierPath) ElementCount() int { + rv := objc.Call[int](b_, objc.Sel("elementCount")) + return rv +} + +// A flattened version of the path object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520733-bezierpathbyflatteningpath?language=objc +func (b_ BezierPath) BezierPathByFlatteningPath() BezierPath { + rv := objc.Call[BezierPath](b_, objc.Sel("bezierPathByFlatteningPath")) + return rv +} + +// The current point (the trailing point or ending point in the most recently added segment). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520698-currentpoint?language=objc +func (b_ BezierPath) CurrentPoint() foundation.Point { + rv := objc.Call[foundation.Point](b_, objc.Sel("currentPoint")) + return rv +} + +// The winding rule used to fill the path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520657-windingrule?language=objc +func (b_ BezierPath) WindingRule() WindingRule { + rv := objc.Call[WindingRule](b_, objc.Sel("windingRule")) + return rv +} + +// The winding rule used to fill the path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520657-windingrule?language=objc +func (b_ BezierPath) SetWindingRule(value WindingRule) { + objc.Call[objc.Void](b_, objc.Sel("setWindingRule:"), value) } diff --git a/macos/appkit/bitmap_image_rep.gen.go b/macos/appkit/bitmap_image_rep.gen.go index 0d6fcad7..b98858b7 100644 --- a/macos/appkit/bitmap_image_rep.gen.go +++ b/macos/appkit/bitmap_image_rep.gen.go @@ -20,33 +20,33 @@ type _BitmapImageRepClass struct { // An interface definition for the [BitmapImageRep] class. type IBitmapImageRep interface { IImageRep + BitmapImageRepByConvertingToColorSpaceRenderingIntent(targetSpace IColorSpace, renderingIntent ColorRenderingIntent) BitmapImageRep + SetCompressionFactor(compression TIFFCompression, factor float32) + TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float32) []byte CanBeCompressedUsing(compression TIFFCompression) bool - ColorizeByMappingGrayToColorBlackMappingWhiteMapping(midPoint float64, midPointColor IColor, shadowColor IColor, lightColor IColor) - ValueForProperty(property BitmapImageRepPropertyKey) objc.Object - GetBitmapDataPlanes(data unsafe.Pointer) + GetPixelAtXY(p *uint, x int, y int) IncrementalLoadFromDataComplete(data []byte, complete bool) int ColorAtXY(x int, y int) Color - GetPixelAtXY(p *uint, x int, y int) GetCompressionFactor(compression *TIFFCompression, factor *float32) + SetPropertyWithValue(property BitmapImageRepPropertyKey, value objc.IObject) SetPixelAtXY(p *uint, x int, y int) + GetBitmapDataPlanes(data unsafe.Pointer) + ColorizeByMappingGrayToColorBlackMappingWhiteMapping(midPoint float64, midPointColor IColor, shadowColor IColor, lightColor IColor) + ValueForProperty(property BitmapImageRepPropertyKey) objc.Object SetColorAtXY(color IColor, x int, y int) - BitmapImageRepByRetaggingWithColorSpace(newSpace IColorSpace) BitmapImageRep - BitmapImageRepByConvertingToColorSpaceRenderingIntent(targetSpace IColorSpace, renderingIntent ColorRenderingIntent) BitmapImageRep RepresentationUsingTypeProperties(storageType BitmapImageFileType, properties map[BitmapImageRepPropertyKey]objc.IObject) []byte - SetPropertyWithValue(property BitmapImageRepPropertyKey, value objc.IObject) - TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float32) []byte - SetCompressionFactor(compression TIFFCompression, factor float32) + BitmapImageRepByRetaggingWithColorSpace(newSpace IColorSpace) BitmapImageRep + TIFFRepresentation() []byte + CGImage() coregraphics.ImageRef + SamplesPerPixel() int BytesPerPlane() int - BitsPerPixel() int BytesPerRow() int + ColorSpace() ColorSpace BitmapFormat() BitmapFormat BitmapData() *uint8 IsPlanar() bool - SamplesPerPixel() int + BitsPerPixel() int NumberOfPlanes() int - ColorSpace() ColorSpace - CGImage() coregraphics.ImageRef - TIFFRepresentation() []byte } // An object that renders an image from bitmap data. [Full Topic] @@ -62,42 +62,16 @@ func BitmapImageRepFrom(ptr unsafe.Pointer) BitmapImageRep { } } -func (b_ BitmapImageRep) InitWithCGImage(cgImage coregraphics.ImageRef) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithCGImage:"), cgImage) - return rv -} - -// Returns a bitmap image representation from a Core Graphics image object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395423-initwithcgimage?language=objc -func NewBitmapImageRepWithCGImage(cgImage coregraphics.ImageRef) BitmapImageRep { - instance := BitmapImageRepClass.Alloc().InitWithCGImage(cgImage) - instance.Autorelease() - return instance -} - -func (bc _BitmapImageRepClass) ImageRepWithData(data []byte) BitmapImageRep { - rv := objc.Call[BitmapImageRep](bc, objc.Sel("imageRepWithData:"), data) - return rv -} - -// Creates and returns a bitmap image representation with the first image in the specified data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395502-imagerepwithdata?language=objc -func BitmapImageRep_ImageRepWithData(data []byte) BitmapImageRep { - return BitmapImageRepClass.ImageRepWithData(data) -} - -func (b_ BitmapImageRep) InitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel(planes unsafe.Pointer, width int, height int, bps int, spp int, alpha bool, isPlanar bool, colorSpaceName ColorSpaceName, rBytes int, pBits int) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:"), planes, width, height, bps, spp, alpha, isPlanar, colorSpaceName, rBytes, pBits) +func (b_ BitmapImageRep) InitWithCIImage(ciImage coreimage.IImage) BitmapImageRep { + rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithCIImage:"), ciImage) return rv } -// Initializes a newly allocated bitmap image representation so it can render the specified image. [Full Topic] +// Returns a bitmap image representation from a Core Image object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395540-initwithbitmapdataplanes?language=objc -func NewBitmapImageRepWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel(planes unsafe.Pointer, width int, height int, bps int, spp int, alpha bool, isPlanar bool, colorSpaceName ColorSpaceName, rBytes int, pBits int) BitmapImageRep { - instance := BitmapImageRepClass.Alloc().InitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel(planes, width, height, bps, spp, alpha, isPlanar, colorSpaceName, rBytes, pBits) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395587-initwithciimage?language=objc +func NewBitmapImageRepWithCIImage(ciImage coreimage.IImage) BitmapImageRep { + instance := BitmapImageRepClass.Alloc().InitWithCIImage(ciImage) instance.Autorelease() return instance } @@ -116,44 +90,56 @@ func NewBitmapImageRepForIncrementalLoad() BitmapImageRep { return instance } -func (b_ BitmapImageRep) InitWithCIImage(ciImage coreimage.IImage) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithCIImage:"), ciImage) +func (b_ BitmapImageRep) InitWithData(data []byte) BitmapImageRep { + rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithData:"), data) return rv } -// Returns a bitmap image representation from a Core Image object. [Full Topic] +// Initializes a newly allocated bitmap image representation from the specified data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395587-initwithciimage?language=objc -func NewBitmapImageRepWithCIImage(ciImage coreimage.IImage) BitmapImageRep { - instance := BitmapImageRepClass.Alloc().InitWithCIImage(ciImage) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395569-initwithdata?language=objc +func NewBitmapImageRepWithData(data []byte) BitmapImageRep { + instance := BitmapImageRepClass.Alloc().InitWithData(data) instance.Autorelease() return instance } -func (b_ BitmapImageRep) InitWithData(data []byte) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithData:"), data) +func (b_ BitmapImageRep) InitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel(planes unsafe.Pointer, width int, height int, bps int, spp int, alpha bool, isPlanar bool, colorSpaceName ColorSpaceName, rBytes int, pBits int) BitmapImageRep { + rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:"), planes, width, height, bps, spp, alpha, isPlanar, colorSpaceName, rBytes, pBits) return rv } -// Initializes a newly allocated bitmap image representation from the specified data. [Full Topic] +// Initializes a newly allocated bitmap image representation so it can render the specified image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395569-initwithdata?language=objc -func NewBitmapImageRepWithData(data []byte) BitmapImageRep { - instance := BitmapImageRepClass.Alloc().InitWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395540-initwithbitmapdataplanes?language=objc +func NewBitmapImageRepWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel(planes unsafe.Pointer, width int, height int, bps int, spp int, alpha bool, isPlanar bool, colorSpaceName ColorSpaceName, rBytes int, pBits int) BitmapImageRep { + instance := BitmapImageRepClass.Alloc().InitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel(planes, width, height, bps, spp, alpha, isPlanar, colorSpaceName, rBytes, pBits) instance.Autorelease() return instance } -func (b_ BitmapImageRep) InitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBitmapFormatBytesPerRowBitsPerPixel(planes unsafe.Pointer, width int, height int, bps int, spp int, alpha bool, isPlanar bool, colorSpaceName ColorSpaceName, bitmapFormat BitmapFormat, rBytes int, pBits int) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:"), planes, width, height, bps, spp, alpha, isPlanar, colorSpaceName, bitmapFormat, rBytes, pBits) +func (bc _BitmapImageRepClass) ImageRepWithData(data []byte) BitmapImageRep { + rv := objc.Call[BitmapImageRep](bc, objc.Sel("imageRepWithData:"), data) return rv } -// Initializes a newly allocated bitmap image representation so it can render the specified image. [Full Topic] +// Creates and returns a bitmap image representation with the first image in the specified data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395538-initwithbitmapdataplanes?language=objc -func NewBitmapImageRepWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBitmapFormatBytesPerRowBitsPerPixel(planes unsafe.Pointer, width int, height int, bps int, spp int, alpha bool, isPlanar bool, colorSpaceName ColorSpaceName, bitmapFormat BitmapFormat, rBytes int, pBits int) BitmapImageRep { - instance := BitmapImageRepClass.Alloc().InitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBitmapFormatBytesPerRowBitsPerPixel(planes, width, height, bps, spp, alpha, isPlanar, colorSpaceName, bitmapFormat, rBytes, pBits) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395502-imagerepwithdata?language=objc +func BitmapImageRep_ImageRepWithData(data []byte) BitmapImageRep { + return BitmapImageRepClass.ImageRepWithData(data) +} + +func (b_ BitmapImageRep) InitWithCGImage(cgImage coregraphics.ImageRef) BitmapImageRep { + rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithCGImage:"), cgImage) + return rv +} + +// Returns a bitmap image representation from a Core Graphics image object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395423-initwithcgimage?language=objc +func NewBitmapImageRepWithCGImage(cgImage coregraphics.ImageRef) BitmapImageRep { + instance := BitmapImageRepClass.Alloc().InitWithCGImage(cgImage) instance.Autorelease() return instance } @@ -178,19 +164,42 @@ func (b_ BitmapImageRep) Init() BitmapImageRep { return rv } -// Creates and returns an array of bitmap image representation objects that correspond to the images in the specified data. [Full Topic] +// Formats the specified bitmap images using the specified storage type and properties and returns them in a data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395419-imagerepswithdata?language=objc -func (bc _BitmapImageRepClass) ImageRepsWithData(data []byte) []ImageRep { - rv := objc.Call[[]ImageRep](bc, objc.Sel("imageRepsWithData:"), data) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395520-representationofimagerepsinarray?language=objc +func (bc _BitmapImageRepClass) RepresentationOfImageRepsInArrayUsingTypeProperties(imageReps []IImageRep, storageType BitmapImageFileType, properties map[BitmapImageRepPropertyKey]objc.IObject) []byte { + rv := objc.Call[[]byte](bc, objc.Sel("representationOfImageRepsInArray:usingType:properties:"), imageReps, storageType, properties) return rv } -// Creates and returns an array of bitmap image representation objects that correspond to the images in the specified data. [Full Topic] +// Formats the specified bitmap images using the specified storage type and properties and returns them in a data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395419-imagerepswithdata?language=objc -func BitmapImageRep_ImageRepsWithData(data []byte) []ImageRep { - return BitmapImageRepClass.ImageRepsWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395520-representationofimagerepsinarray?language=objc +func BitmapImageRep_RepresentationOfImageRepsInArrayUsingTypeProperties(imageReps []IImageRep, storageType BitmapImageFileType, properties map[BitmapImageRepPropertyKey]objc.IObject) []byte { + return BitmapImageRepClass.RepresentationOfImageRepsInArrayUsingTypeProperties(imageReps, storageType, properties) +} + +// Converts the bitmap image representation to the specified color space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395470-bitmapimagerepbyconvertingtocolo?language=objc +func (b_ BitmapImageRep) BitmapImageRepByConvertingToColorSpaceRenderingIntent(targetSpace IColorSpace, renderingIntent ColorRenderingIntent) BitmapImageRep { + rv := objc.Call[BitmapImageRep](b_, objc.Sel("bitmapImageRepByConvertingToColorSpace:renderingIntent:"), targetSpace, renderingIntent) + return rv +} + +// Sets the bitmap image representation’s compression type and compression factor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395478-setcompression?language=objc +func (b_ BitmapImageRep) SetCompressionFactor(compression TIFFCompression, factor float32) { + objc.Call[objc.Void](b_, objc.Sel("setCompression:factor:"), compression, factor) +} + +// Returns a TIFF representation of the image using the specified compression. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395524-tiffrepresentationusingcompressi?language=objc +func (b_ BitmapImageRep) TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float32) []byte { + rv := objc.Call[[]byte](b_, objc.Sel("TIFFRepresentationUsingCompression:factor:"), comp, factor) + return rv } // Tests whether the bitmap image representation can be compressed by the specified compression scheme. [Full Topic] @@ -201,26 +210,25 @@ func (b_ BitmapImageRep) CanBeCompressedUsing(compression TIFFCompression) bool return rv } -// Colorizes a grayscale image. [Full Topic] +// Returns by indirection the pixel data for the specified location in the bitmap image representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395530-colorizebymappinggray?language=objc -func (b_ BitmapImageRep) ColorizeByMappingGrayToColorBlackMappingWhiteMapping(midPoint float64, midPointColor IColor, shadowColor IColor, lightColor IColor) { - objc.Call[objc.Void](b_, objc.Sel("colorizeByMappingGray:toColor:blackMapping:whiteMapping:"), midPoint, midPointColor, shadowColor, lightColor) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395567-getpixel?language=objc +func (b_ BitmapImageRep) GetPixelAtXY(p *uint, x int, y int) { + objc.Call[objc.Void](b_, objc.Sel("getPixel:atX:y:"), p, x, y) } -// Returns the value for the specified property. [Full Topic] +// Returns by indirection an array of all available compression types that can be used when writing a TIFF image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395492-valueforproperty?language=objc -func (b_ BitmapImageRep) ValueForProperty(property BitmapImageRepPropertyKey) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("valueForProperty:"), property) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395513-gettiffcompressiontypes?language=objc +func (bc _BitmapImageRepClass) GetTIFFCompressionTypesCount(list unsafe.Pointer, numTypes *int) { + objc.Call[objc.Void](bc, objc.Sel("getTIFFCompressionTypes:count:"), list, numTypes) } -// Returns by indirection bitmap data of the bitmap image representation separated into planes. [Full Topic] +// Returns by indirection an array of all available compression types that can be used when writing a TIFF image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395490-getbitmapdataplanes?language=objc -func (b_ BitmapImageRep) GetBitmapDataPlanes(data unsafe.Pointer) { - objc.Call[objc.Void](b_, objc.Sel("getBitmapDataPlanes:"), data) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395513-gettiffcompressiontypes?language=objc +func BitmapImageRep_GetTIFFCompressionTypesCount(list unsafe.Pointer, numTypes *int) { + BitmapImageRepClass.GetTIFFCompressionTypesCount(list, numTypes) } // Loads the current image data into an incrementally-loaded image representation and returns the current status of the image. [Full Topic] @@ -239,13 +247,6 @@ func (b_ BitmapImageRep) ColorAtXY(x int, y int) Color { return rv } -// Returns by indirection the pixel data for the specified location in the bitmap image representation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395567-getpixel?language=objc -func (b_ BitmapImageRep) GetPixelAtXY(p *uint, x int, y int) { - objc.Call[objc.Void](b_, objc.Sel("getPixel:atX:y:"), p, x, y) -} - // Returns by indirection the bitmap image representation’s compression type and compression factor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395515-getcompression?language=objc @@ -253,6 +254,13 @@ func (b_ BitmapImageRep) GetCompressionFactor(compression *TIFFCompression, fact objc.Call[objc.Void](b_, objc.Sel("getCompression:factor:"), compression, factor) } +// Sets the specified property of the bitmap image representation to the specified value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395486-setproperty?language=objc +func (b_ BitmapImageRep) SetPropertyWithValue(property BitmapImageRepPropertyKey, value objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("setProperty:withValue:"), property, value) +} + // Sets the bitmap image representation’s pixel at the specified coordinates to the specified raw pixel values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395446-setpixel?language=objc @@ -260,79 +268,33 @@ func (b_ BitmapImageRep) SetPixelAtXY(p *uint, x int, y int) { objc.Call[objc.Void](b_, objc.Sel("setPixel:atX:y:"), p, x, y) } -// Changes the color of the pixel at the specified coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395472-setcolor?language=objc -func (b_ BitmapImageRep) SetColorAtXY(color IColor, x int, y int) { - objc.Call[objc.Void](b_, objc.Sel("setColor:atX:y:"), color, x, y) -} - -// Changes the color space tag of the bitmap image representation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395512-bitmapimagerepbyretaggingwithcol?language=objc -func (b_ BitmapImageRep) BitmapImageRepByRetaggingWithColorSpace(newSpace IColorSpace) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("bitmapImageRepByRetaggingWithColorSpace:"), newSpace) - return rv -} - -// Formats the specified bitmap images using the specified storage type and properties and returns them in a data object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395520-representationofimagerepsinarray?language=objc -func (bc _BitmapImageRepClass) RepresentationOfImageRepsInArrayUsingTypeProperties(imageReps []IImageRep, storageType BitmapImageFileType, properties map[BitmapImageRepPropertyKey]objc.IObject) []byte { - rv := objc.Call[[]byte](bc, objc.Sel("representationOfImageRepsInArray:usingType:properties:"), imageReps, storageType, properties) - return rv -} - -// Formats the specified bitmap images using the specified storage type and properties and returns them in a data object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395520-representationofimagerepsinarray?language=objc -func BitmapImageRep_RepresentationOfImageRepsInArrayUsingTypeProperties(imageReps []IImageRep, storageType BitmapImageFileType, properties map[BitmapImageRepPropertyKey]objc.IObject) []byte { - return BitmapImageRepClass.RepresentationOfImageRepsInArrayUsingTypeProperties(imageReps, storageType, properties) -} - -// Converts the bitmap image representation to the specified color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395470-bitmapimagerepbyconvertingtocolo?language=objc -func (b_ BitmapImageRep) BitmapImageRepByConvertingToColorSpaceRenderingIntent(targetSpace IColorSpace, renderingIntent ColorRenderingIntent) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("bitmapImageRepByConvertingToColorSpace:renderingIntent:"), targetSpace, renderingIntent) - return rv -} - -// Formats the bitmap representation’s image data using the specified storage type and properties and returns it in a data object. [Full Topic] +// Returns by indirection bitmap data of the bitmap image representation separated into planes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395458-representationusingtype?language=objc -func (b_ BitmapImageRep) RepresentationUsingTypeProperties(storageType BitmapImageFileType, properties map[BitmapImageRepPropertyKey]objc.IObject) []byte { - rv := objc.Call[[]byte](b_, objc.Sel("representationUsingType:properties:"), storageType, properties) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395490-getbitmapdataplanes?language=objc +func (b_ BitmapImageRep) GetBitmapDataPlanes(data unsafe.Pointer) { + objc.Call[objc.Void](b_, objc.Sel("getBitmapDataPlanes:"), data) } -// Sets the specified property of the bitmap image representation to the specified value. [Full Topic] +// Colorizes a grayscale image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395486-setproperty?language=objc -func (b_ BitmapImageRep) SetPropertyWithValue(property BitmapImageRepPropertyKey, value objc.IObject) { - objc.Call[objc.Void](b_, objc.Sel("setProperty:withValue:"), property, value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395530-colorizebymappinggray?language=objc +func (b_ BitmapImageRep) ColorizeByMappingGrayToColorBlackMappingWhiteMapping(midPoint float64, midPointColor IColor, shadowColor IColor, lightColor IColor) { + objc.Call[objc.Void](b_, objc.Sel("colorizeByMappingGray:toColor:blackMapping:whiteMapping:"), midPoint, midPointColor, shadowColor, lightColor) } -// Returns a TIFF representation of the image using the specified compression. [Full Topic] +// Creates and returns an array of bitmap image representation objects that correspond to the images in the specified data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395524-tiffrepresentationusingcompressi?language=objc -func (b_ BitmapImageRep) TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float32) []byte { - rv := objc.Call[[]byte](b_, objc.Sel("TIFFRepresentationUsingCompression:factor:"), comp, factor) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395419-imagerepswithdata?language=objc +func (bc _BitmapImageRepClass) ImageRepsWithData(data []byte) []ImageRep { + rv := objc.Call[[]ImageRep](bc, objc.Sel("imageRepsWithData:"), data) return rv } -// Returns by indirection an array of all available compression types that can be used when writing a TIFF image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395513-gettiffcompressiontypes?language=objc -func (bc _BitmapImageRepClass) GetTIFFCompressionTypesCount(list unsafe.Pointer, numTypes *int) { - objc.Call[objc.Void](bc, objc.Sel("getTIFFCompressionTypes:count:"), list, numTypes) -} - -// Returns by indirection an array of all available compression types that can be used when writing a TIFF image. [Full Topic] +// Creates and returns an array of bitmap image representation objects that correspond to the images in the specified data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395513-gettiffcompressiontypes?language=objc -func BitmapImageRep_GetTIFFCompressionTypesCount(list unsafe.Pointer, numTypes *int) { - BitmapImageRepClass.GetTIFFCompressionTypesCount(list, numTypes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395419-imagerepswithdata?language=objc +func BitmapImageRep_ImageRepsWithData(data []byte) []ImageRep { + return BitmapImageRepClass.ImageRepsWithData(data) } // Returns a TIFF representation of the specified images. [Full Topic] @@ -350,11 +312,27 @@ func BitmapImageRep_TIFFRepresentationOfImageRepsInArray(array []IImageRep) []by return BitmapImageRepClass.TIFFRepresentationOfImageRepsInArray(array) } -// Sets the bitmap image representation’s compression type and compression factor. [Full Topic] +// Returns the value for the specified property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395478-setcompression?language=objc -func (b_ BitmapImageRep) SetCompressionFactor(compression TIFFCompression, factor float32) { - objc.Call[objc.Void](b_, objc.Sel("setCompression:factor:"), compression, factor) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395492-valueforproperty?language=objc +func (b_ BitmapImageRep) ValueForProperty(property BitmapImageRepPropertyKey) objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("valueForProperty:"), property) + return rv +} + +// Changes the color of the pixel at the specified coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395472-setcolor?language=objc +func (b_ BitmapImageRep) SetColorAtXY(color IColor, x int, y int) { + objc.Call[objc.Void](b_, objc.Sel("setColor:atX:y:"), color, x, y) +} + +// Formats the bitmap representation’s image data using the specified storage type and properties and returns it in a data object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395458-representationusingtype?language=objc +func (b_ BitmapImageRep) RepresentationUsingTypeProperties(storageType BitmapImageFileType, properties map[BitmapImageRepPropertyKey]objc.IObject) []byte { + rv := objc.Call[[]byte](b_, objc.Sel("representationUsingType:properties:"), storageType, properties) + return rv } // Returns an autoreleased string containing the localized name for the specified compression type. [Full Topic] @@ -372,34 +350,43 @@ func BitmapImageRep_LocalizedNameForTIFFCompressionType(compression TIFFCompress return BitmapImageRepClass.LocalizedNameForTIFFCompressionType(compression) } -// Returns a TIFF representation of the specified images using the specified compression scheme and factor. [Full Topic] +// Changes the color space tag of the bitmap image representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395456-tiffrepresentationofimagerepsina?language=objc -func (bc _BitmapImageRepClass) TIFFRepresentationOfImageRepsInArrayUsingCompressionFactor(array []IImageRep, comp TIFFCompression, factor float32) []byte { - rv := objc.Call[[]byte](bc, objc.Sel("TIFFRepresentationOfImageRepsInArray:usingCompression:factor:"), array, comp, factor) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395512-bitmapimagerepbyretaggingwithcol?language=objc +func (b_ BitmapImageRep) BitmapImageRepByRetaggingWithColorSpace(newSpace IColorSpace) BitmapImageRep { + rv := objc.Call[BitmapImageRep](b_, objc.Sel("bitmapImageRepByRetaggingWithColorSpace:"), newSpace) return rv } -// Returns a TIFF representation of the specified images using the specified compression scheme and factor. [Full Topic] +// A TIFF representation of the bitmap image data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395456-tiffrepresentationofimagerepsina?language=objc -func BitmapImageRep_TIFFRepresentationOfImageRepsInArrayUsingCompressionFactor(array []IImageRep, comp TIFFCompression, factor float32) []byte { - return BitmapImageRepClass.TIFFRepresentationOfImageRepsInArrayUsingCompressionFactor(array, comp, factor) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395557-tiffrepresentation?language=objc +func (b_ BitmapImageRep) TIFFRepresentation() []byte { + rv := objc.Call[[]byte](b_, objc.Sel("TIFFRepresentation")) + return rv } -// The number of bytes in each plane or channel of data. [Full Topic] +// A Core Graphics image object based on the bitmap image representation’s data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395559-bytesperplane?language=objc -func (b_ BitmapImageRep) BytesPerPlane() int { - rv := objc.Call[int](b_, objc.Sel("bytesPerPlane")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395506-cgimage?language=objc +func (b_ BitmapImageRep) CGImage() coregraphics.ImageRef { + rv := objc.Call[coregraphics.ImageRef](b_, objc.Sel("CGImage")) return rv } -// The number of bits allocated for each pixel in each plane of data. [Full Topic] +// The number of components for each pixel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395488-bitsperpixel?language=objc -func (b_ BitmapImageRep) BitsPerPixel() int { - rv := objc.Call[int](b_, objc.Sel("bitsPerPixel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395577-samplesperpixel?language=objc +func (b_ BitmapImageRep) SamplesPerPixel() int { + rv := objc.Call[int](b_, objc.Sel("samplesPerPixel")) + return rv +} + +// The number of bytes in each plane or channel of data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395559-bytesperplane?language=objc +func (b_ BitmapImageRep) BytesPerPlane() int { + rv := objc.Call[int](b_, objc.Sel("bytesPerPlane")) return rv } @@ -411,6 +398,14 @@ func (b_ BitmapImageRep) BytesPerRow() int { return rv } +// The color space of the bitmap. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395468-colorspace?language=objc +func (b_ BitmapImageRep) ColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](b_, objc.Sel("colorSpace")) + return rv +} + // The format of the bitmap image representation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395508-bitmapformat?language=objc @@ -435,11 +430,11 @@ func (b_ BitmapImageRep) IsPlanar() bool { return rv } -// The number of components for each pixel. [Full Topic] +// The number of bits allocated for each pixel in each plane of data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395577-samplesperpixel?language=objc -func (b_ BitmapImageRep) SamplesPerPixel() int { - rv := objc.Call[int](b_, objc.Sel("samplesPerPixel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395488-bitsperpixel?language=objc +func (b_ BitmapImageRep) BitsPerPixel() int { + rv := objc.Call[int](b_, objc.Sel("bitsPerPixel")) return rv } @@ -450,27 +445,3 @@ func (b_ BitmapImageRep) NumberOfPlanes() int { rv := objc.Call[int](b_, objc.Sel("numberOfPlanes")) return rv } - -// The color space of the bitmap. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395468-colorspace?language=objc -func (b_ BitmapImageRep) ColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](b_, objc.Sel("colorSpace")) - return rv -} - -// A Core Graphics image object based on the bitmap image representation’s data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395506-cgimage?language=objc -func (b_ BitmapImageRep) CGImage() coregraphics.ImageRef { - rv := objc.Call[coregraphics.ImageRef](b_, objc.Sel("CGImage")) - return rv -} - -// A TIFF representation of the bitmap image data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395557-tiffrepresentation?language=objc -func (b_ BitmapImageRep) TIFFRepresentation() []byte { - rv := objc.Call[[]byte](b_, objc.Sel("TIFFRepresentation")) - return rv -} diff --git a/macos/appkit/box.gen.go b/macos/appkit/box.gen.go index 3aad0d97..2b5926e4 100644 --- a/macos/appkit/box.gen.go +++ b/macos/appkit/box.gen.go @@ -21,31 +21,31 @@ type IBox interface { IView SizeToFit() SetFrameFromContentFrame(contentFrame foundation.Rect) - TitleCell() objc.Object - ContentViewMargins() foundation.Size - SetContentViewMargins(value foundation.Size) - BorderRect() foundation.Rect - TitleRect() foundation.Rect - BorderColor() Color - SetBorderColor(value IColor) IsTransparent() bool SetTransparent(value bool) - Title() string - SetTitle(value string) + TitlePosition() TitlePosition + SetTitlePosition(value TitlePosition) + ContentView() View + SetContentView(value IView) + TitleRect() foundation.Rect + TitleCell() objc.Object CornerRadius() float64 SetCornerRadius(value float64) + FillColor() Color + SetFillColor(value IColor) BoxType() BoxType SetBoxType(value BoxType) + Title() string + SetTitle(value string) + BorderColor() Color + SetBorderColor(value IColor) BorderWidth() float64 SetBorderWidth(value float64) - ContentView() View - SetContentView(value IView) - FillColor() Color - SetFillColor(value IColor) - TitlePosition() TitlePosition - SetTitlePosition(value TitlePosition) TitleFont() Font SetTitleFont(value IFont) + ContentViewMargins() foundation.Size + SetContentViewMargins(value foundation.Size) + BorderRect() foundation.Rect } // A stylized rectangular box with an optional title. [Full Topic] @@ -109,90 +109,67 @@ func (b_ Box) SetFrameFromContentFrame(contentFrame foundation.Rect) { objc.Call[objc.Void](b_, objc.Sel("setFrameFromContentFrame:"), contentFrame) } -// The cell used to display the receiver’s title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429789-titlecell?language=objc -func (b_ Box) TitleCell() objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("titleCell")) - return rv -} - -// The distances between the border and the content view. [Full Topic] +// A Boolean value that indicates whether the receiver is transparent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429837-contentviewmargins?language=objc -func (b_ Box) ContentViewMargins() foundation.Size { - rv := objc.Call[foundation.Size](b_, objc.Sel("contentViewMargins")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429821-transparent?language=objc +func (b_ Box) IsTransparent() bool { + rv := objc.Call[bool](b_, objc.Sel("isTransparent")) return rv } -// The distances between the border and the content view. [Full Topic] +// A Boolean value that indicates whether the receiver is transparent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429837-contentviewmargins?language=objc -func (b_ Box) SetContentViewMargins(value foundation.Size) { - objc.Call[objc.Void](b_, objc.Sel("setContentViewMargins:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429821-transparent?language=objc +func (b_ Box) SetTransparent(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setTransparent:"), value) } -// The rectangle in which the receiver’s border is drawn. [Full Topic] +// A constant representing the title position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429787-borderrect?language=objc -func (b_ Box) BorderRect() foundation.Rect { - rv := objc.Call[foundation.Rect](b_, objc.Sel("borderRect")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429844-titleposition?language=objc +func (b_ Box) TitlePosition() TitlePosition { + rv := objc.Call[TitlePosition](b_, objc.Sel("titlePosition")) return rv } -// The rectangle in which the receiver’s title is drawn. [Full Topic] +// A constant representing the title position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429785-titlerect?language=objc -func (b_ Box) TitleRect() foundation.Rect { - rv := objc.Call[foundation.Rect](b_, objc.Sel("titleRect")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429844-titleposition?language=objc +func (b_ Box) SetTitlePosition(value TitlePosition) { + objc.Call[objc.Void](b_, objc.Sel("setTitlePosition:"), value) } -// The color of the receiver’s border when the receiver is a custom box with a simple line border. [Full Topic] +// The receiver’s content view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429839-bordercolor?language=objc -func (b_ Box) BorderColor() Color { - rv := objc.Call[Color](b_, objc.Sel("borderColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429818-contentview?language=objc +func (b_ Box) ContentView() View { + rv := objc.Call[View](b_, objc.Sel("contentView")) return rv } -// The color of the receiver’s border when the receiver is a custom box with a simple line border. [Full Topic] +// The receiver’s content view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429839-bordercolor?language=objc -func (b_ Box) SetBorderColor(value IColor) { - objc.Call[objc.Void](b_, objc.Sel("setBorderColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429818-contentview?language=objc +func (b_ Box) SetContentView(value IView) { + objc.Call[objc.Void](b_, objc.Sel("setContentView:"), value) } -// A Boolean value that indicates whether the receiver is transparent. [Full Topic] +// The rectangle in which the receiver’s title is drawn. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429821-transparent?language=objc -func (b_ Box) IsTransparent() bool { - rv := objc.Call[bool](b_, objc.Sel("isTransparent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429785-titlerect?language=objc +func (b_ Box) TitleRect() foundation.Rect { + rv := objc.Call[foundation.Rect](b_, objc.Sel("titleRect")) return rv } -// A Boolean value that indicates whether the receiver is transparent. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429821-transparent?language=objc -func (b_ Box) SetTransparent(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setTransparent:"), value) -} - -// The receiver’s title. [Full Topic] +// The cell used to display the receiver’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429795-title?language=objc -func (b_ Box) Title() string { - rv := objc.Call[string](b_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429789-titlecell?language=objc +func (b_ Box) TitleCell() objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("titleCell")) return rv } -// The receiver’s title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429795-title?language=objc -func (b_ Box) SetTitle(value string) { - objc.Call[objc.Void](b_, objc.Sel("setTitle:"), value) -} - // The radius of the receiver’s corners when the receiver is a custom box with a simple line border. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429812-cornerradius?language=objc @@ -208,6 +185,21 @@ func (b_ Box) SetCornerRadius(value float64) { objc.Call[objc.Void](b_, objc.Sel("setCornerRadius:"), value) } +// The color of the receiver’s background when the receiver is a custom box with a simple line border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429797-fillcolor?language=objc +func (b_ Box) FillColor() Color { + rv := objc.Call[Color](b_, objc.Sel("fillColor")) + return rv +} + +// The color of the receiver’s background when the receiver is a custom box with a simple line border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429797-fillcolor?language=objc +func (b_ Box) SetFillColor(value IColor) { + objc.Call[objc.Void](b_, objc.Sel("setFillColor:"), value) +} + // The receiver’s box type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429822-boxtype?language=objc @@ -223,64 +215,49 @@ func (b_ Box) SetBoxType(value BoxType) { objc.Call[objc.Void](b_, objc.Sel("setBoxType:"), value) } -// The width of the receiver’s border when the receiver is a custom box with a simple line border. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429831-borderwidth?language=objc -func (b_ Box) BorderWidth() float64 { - rv := objc.Call[float64](b_, objc.Sel("borderWidth")) - return rv -} - -// The width of the receiver’s border when the receiver is a custom box with a simple line border. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429831-borderwidth?language=objc -func (b_ Box) SetBorderWidth(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setBorderWidth:"), value) -} - -// The receiver’s content view. [Full Topic] +// The receiver’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429818-contentview?language=objc -func (b_ Box) ContentView() View { - rv := objc.Call[View](b_, objc.Sel("contentView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429795-title?language=objc +func (b_ Box) Title() string { + rv := objc.Call[string](b_, objc.Sel("title")) return rv } -// The receiver’s content view. [Full Topic] +// The receiver’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429818-contentview?language=objc -func (b_ Box) SetContentView(value IView) { - objc.Call[objc.Void](b_, objc.Sel("setContentView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429795-title?language=objc +func (b_ Box) SetTitle(value string) { + objc.Call[objc.Void](b_, objc.Sel("setTitle:"), value) } -// The color of the receiver’s background when the receiver is a custom box with a simple line border. [Full Topic] +// The color of the receiver’s border when the receiver is a custom box with a simple line border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429797-fillcolor?language=objc -func (b_ Box) FillColor() Color { - rv := objc.Call[Color](b_, objc.Sel("fillColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429839-bordercolor?language=objc +func (b_ Box) BorderColor() Color { + rv := objc.Call[Color](b_, objc.Sel("borderColor")) return rv } -// The color of the receiver’s background when the receiver is a custom box with a simple line border. [Full Topic] +// The color of the receiver’s border when the receiver is a custom box with a simple line border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429797-fillcolor?language=objc -func (b_ Box) SetFillColor(value IColor) { - objc.Call[objc.Void](b_, objc.Sel("setFillColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429839-bordercolor?language=objc +func (b_ Box) SetBorderColor(value IColor) { + objc.Call[objc.Void](b_, objc.Sel("setBorderColor:"), value) } -// A constant representing the title position. [Full Topic] +// The width of the receiver’s border when the receiver is a custom box with a simple line border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429844-titleposition?language=objc -func (b_ Box) TitlePosition() TitlePosition { - rv := objc.Call[TitlePosition](b_, objc.Sel("titlePosition")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429831-borderwidth?language=objc +func (b_ Box) BorderWidth() float64 { + rv := objc.Call[float64](b_, objc.Sel("borderWidth")) return rv } -// A constant representing the title position. [Full Topic] +// The width of the receiver’s border when the receiver is a custom box with a simple line border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429844-titleposition?language=objc -func (b_ Box) SetTitlePosition(value TitlePosition) { - objc.Call[objc.Void](b_, objc.Sel("setTitlePosition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429831-borderwidth?language=objc +func (b_ Box) SetBorderWidth(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setBorderWidth:"), value) } // The font object used to draw the receiver’s title. [Full Topic] @@ -297,3 +274,26 @@ func (b_ Box) TitleFont() Font { func (b_ Box) SetTitleFont(value IFont) { objc.Call[objc.Void](b_, objc.Sel("setTitleFont:"), value) } + +// The distances between the border and the content view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429837-contentviewmargins?language=objc +func (b_ Box) ContentViewMargins() foundation.Size { + rv := objc.Call[foundation.Size](b_, objc.Sel("contentViewMargins")) + return rv +} + +// The distances between the border and the content view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429837-contentviewmargins?language=objc +func (b_ Box) SetContentViewMargins(value foundation.Size) { + objc.Call[objc.Void](b_, objc.Sel("setContentViewMargins:"), value) +} + +// The rectangle in which the receiver’s border is drawn. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429787-borderrect?language=objc +func (b_ Box) BorderRect() foundation.Rect { + rv := objc.Call[foundation.Rect](b_, objc.Sel("borderRect")) + return rv +} diff --git a/macos/appkit/browser.gen.go b/macos/appkit/browser.gen.go index 7da49edd..72ce7f0f 100644 --- a/macos/appkit/browser.gen.go +++ b/macos/appkit/browser.gen.go @@ -19,115 +19,115 @@ type _BrowserClass struct { // An interface definition for the [Browser] class. type IBrowser interface { IControl - CanDragRowsWithIndexesInColumnWithEvent(rowIndexes foundation.IIndexSet, column int, event IEvent) bool - ValidateVisibleColumns() SendAction() bool - SetPath(path string) bool + SetDefaultColumnWidth(columnWidth float64) + ScrollRowToVisibleInColumn(row int, column int) + ReloadDataForRowIndexesInColumn(rowIndexes foundation.IIndexSet, column int) + Path() string + SelectedRowInColumn(column int) int + SelectedCellInColumn(column int) objc.Object + ColumnContentWidthForColumnWidth(columnWidth float64) float64 + SelectRowInColumn(row int, column int) + DefaultColumnWidth() float64 + PathToColumn(column int) string TitleFrameOfColumn(column int) foundation.Rect - FrameOfColumn(column int) foundation.Rect - EditItemAtIndexPathWithEventSelect(indexPath foundation.IIndexPath, event IEvent, select_ bool) DrawTitleOfColumnInRect(column int, rect foundation.Rect) - SelectAll(sender objc.IObject) - SetDraggingSourceOperationMaskForLocal(mask DragOperation, isLocal bool) - AddColumn() - ReloadDataForRowIndexesInColumn(rowIndexes foundation.IIndexSet, column int) - SetCellClass(factoryId objc.IClass) - GetRowColumnForPoint(row *int, column *int, point foundation.Point) bool - DraggingImageForRowsWithIndexesInColumnWithEventOffset(rowIndexes foundation.IIndexSet, column int, event IEvent, dragImageOffset foundation.PointPointer) Image - Tile() + SetPath(path string) bool + SelectedRowIndexesInColumn(column int) foundation.IndexSet + DoClick(sender objc.IObject) + ScrollColumnsLeftBy(shiftAmount int) + LoadColumnZero() + LoadedCellAtRowColumn(row int, col int) objc.Object IndexPathForColumn(column int) foundation.IndexPath + ScrollColumnToVisible(column int) DoDoubleClick(sender objc.IObject) - DefaultColumnWidth() float64 - ItemAtIndexPath(indexPath foundation.IIndexPath) objc.Object - TitleOfColumn(column int) string - SelectedRowIndexesInColumn(column int) foundation.IndexSet - SelectedRowInColumn(column int) int + DraggingImageForRowsWithIndexesInColumnWithEventOffset(rowIndexes foundation.IIndexSet, column int, event IEvent, dragImageOffset foundation.PointPointer) Image + SelectAll(sender objc.IObject) + FrameOfColumn(column int) foundation.Rect + ScrollColumnsRightBy(shiftAmount int) SetTitleOfColumn(string_ string, column int) + IsLeafItem(item objc.IObject) bool ReloadColumn(column int) - NoteHeightOfRowsWithIndexesChangedInColumn(indexSet foundation.IIndexSet, columnIndex int) - ColumnContentWidthForColumnWidth(columnWidth float64) float64 - ScrollColumnsLeftBy(shiftAmount int) FrameOfInsideOfColumn(column int) foundation.Rect - WidthOfColumn(column int) float64 - LoadColumnZero() - LoadedCellAtRowColumn(row int, col int) objc.Object + EditItemAtIndexPathWithEventSelect(indexPath foundation.IIndexPath, event IEvent, select_ bool) SelectRowIndexesInColumn(indexes foundation.IIndexSet, column int) - ParentForItemsInColumn(column int) objc.Object - IsLeafItem(item objc.IObject) bool + TitleOfColumn(column int) string + NoteHeightOfRowsWithIndexesChangedInColumn(indexSet foundation.IIndexSet, columnIndex int) + ValidateVisibleColumns() + CanDragRowsWithIndexesInColumnWithEvent(rowIndexes foundation.IIndexSet, column int, event IEvent) bool + SetDraggingSourceOperationMaskForLocal(mask DragOperation, isLocal bool) ColumnWidthForColumnContentWidth(columnContentWidth float64) float64 - SelectedCellInColumn(column int) objc.Object - PathToColumn(column int) string - SelectRowInColumn(row int, column int) - SetWidthOfColumn(columnWidth float64, columnIndex int) - ScrollRowToVisibleInColumn(row int, column int) - DoClick(sender objc.IObject) - SetDefaultColumnWidth(columnWidth float64) - ItemAtRowInColumn(row int, column int) objc.Object - ScrollColumnsRightBy(shiftAmount int) - ScrollColumnToVisible(column int) - Path() string + SetCellClass(factoryId objc.IClass) + AddColumn() FrameOfRowInColumn(row int, column int) foundation.Rect - ClickedRow() int - SendsActionOnArrowKeys() bool - SetSendsActionOnArrowKeys(value bool) - TakesTitleFromPreviousColumn() bool - SetTakesTitleFromPreviousColumn(value bool) - LastVisibleColumn() int - MinColumnWidth() float64 - SetMinColumnWidth(value float64) + GetRowColumnForPoint(row *int, column *int, point foundation.Point) bool + Tile() + ItemAtRowInColumn(row int, column int) objc.Object + SetWidthOfColumn(columnWidth float64, columnIndex int) + ItemAtIndexPath(indexPath foundation.IIndexPath) objc.Object + WidthOfColumn(column int) float64 + ParentForItemsInColumn(column int) objc.Object DoubleAction() objc.Selector SetDoubleAction(value objc.Selector) - ColumnsAutosaveName() BrowserColumnsAutosaveName - SetColumnsAutosaveName(value BrowserColumnsAutosaveName) - SelectionIndexPaths() []foundation.IndexPath - SetSelectionIndexPaths(value []foundation.IIndexPath) - HasHorizontalScroller() bool - SetHasHorizontalScroller(value bool) - IsLoaded() bool - TitleHeight() float64 - LastColumn() int - SetLastColumn(value int) - SeparatesColumns() bool - SetSeparatesColumns(value bool) + SelectedCells() []Cell + PrefersAllColumnUserResizing() bool + SetPrefersAllColumnUserResizing(value bool) SelectedCell() objc.Object - FirstVisibleColumn() int - MaxVisibleColumns() int - SetMaxVisibleColumns(value int) - AutohidesScroller() bool - SetAutohidesScroller(value bool) - AllowsTypeSelect() bool - SetAllowsTypeSelect(value bool) - AllowsMultipleSelection() bool - SetAllowsMultipleSelection(value bool) SelectionIndexPath() foundation.IndexPath SetSelectionIndexPath(value foundation.IIndexPath) - AllowsBranchSelection() bool - SetAllowsBranchSelection(value bool) - SelectedColumn() int - PrefersAllColumnUserResizing() bool - SetPrefersAllColumnUserResizing(value bool) - IsTitled() bool - SetTitled(value bool) + AllowsEmptySelection() bool + SetAllowsEmptySelection(value bool) RowHeight() float64 SetRowHeight(value float64) - SelectedCells() []Cell + AutohidesScroller() bool + SetAutohidesScroller(value bool) + ClickedColumn() int + IsTitled() bool + SetTitled(value bool) + CellPrototype() objc.Object + SetCellPrototype(value objc.IObject) + LastVisibleColumn() int + AllowsTypeSelect() bool + SetAllowsTypeSelect(value bool) + IsLoaded() bool ColumnResizingType() BrowserColumnResizingType SetColumnResizingType(value BrowserColumnResizingType) - AllowsEmptySelection() bool - SetAllowsEmptySelection(value bool) - ClickedColumn() int - BackgroundColor() Color - SetBackgroundColor(value IColor) - NumberOfVisibleColumns() int + FirstVisibleColumn() int ReusesColumns() bool SetReusesColumns(value bool) - CellPrototype() objc.Object - SetCellPrototype(value objc.IObject) - PathSeparator() string - SetPathSeparator(value string) Delegate() BrowserDelegateObject SetDelegate(value PBrowserDelegate) SetDelegateObject(valueObject objc.IObject) + BackgroundColor() Color + SetBackgroundColor(value IColor) + AllowsBranchSelection() bool + SetAllowsBranchSelection(value bool) + SelectionIndexPaths() []foundation.IndexPath + SetSelectionIndexPaths(value []foundation.IIndexPath) + NumberOfVisibleColumns() int + SendsActionOnArrowKeys() bool + SetSendsActionOnArrowKeys(value bool) + ClickedRow() int + AllowsMultipleSelection() bool + SetAllowsMultipleSelection(value bool) + SelectedColumn() int + TitleHeight() float64 + PathSeparator() string + SetPathSeparator(value string) + SeparatesColumns() bool + SetSeparatesColumns(value bool) + MaxVisibleColumns() int + SetMaxVisibleColumns(value int) + ColumnsAutosaveName() BrowserColumnsAutosaveName + SetColumnsAutosaveName(value BrowserColumnsAutosaveName) + LastColumn() int + SetLastColumn(value int) + MinColumnWidth() float64 + SetMinColumnWidth(value float64) + TakesTitleFromPreviousColumn() bool + SetTakesTitleFromPreviousColumn(value bool) + HasHorizontalScroller() bool + SetHasHorizontalScroller(value bool) } // An interface that displays a hierarchically organized list of data items that can be navigated and selected. [Full Topic] @@ -177,21 +177,6 @@ func NewBrowserWithFrame(frameRect foundation.Rect) Browser { return instance } -// Indicates whether the browser can attempt to initiate a drag of the given rows for the given event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407632-candragrowswithindexes?language=objc -func (b_ Browser) CanDragRowsWithIndexesInColumnWithEvent(rowIndexes foundation.IIndexSet, column int, event IEvent) bool { - rv := objc.Call[bool](b_, objc.Sel("canDragRowsWithIndexes:inColumn:withEvent:"), rowIndexes, column, event) - return rv -} - -// Validates the browser’s visible columns. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407725-validatevisiblecolumns?language=objc -func (b_ Browser) ValidateVisibleColumns() { - objc.Call[objc.Void](b_, objc.Sel("validateVisibleColumns")) -} - // Sends the action message to the target. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407675-sendaction?language=objc @@ -200,114 +185,140 @@ func (b_ Browser) SendAction() bool { return rv } -// Sets the path to be displayed by the browser. [Full Topic] +// Sets the default column width for new browser columns that do not otherwise have an initial width from defaults or the browser’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407751-setpath?language=objc -func (b_ Browser) SetPath(path string) bool { - rv := objc.Call[bool](b_, objc.Sel("setPath:"), path) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407651-setdefaultcolumnwidth?language=objc +func (b_ Browser) SetDefaultColumnWidth(columnWidth float64) { + objc.Call[objc.Void](b_, objc.Sel("setDefaultColumnWidth:"), columnWidth) } -// Removes the column configuration data stored under the given name from the application’s user defaults. [Full Topic] +// Scrolls the specified row to be visible within the specified column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407668-removesavedcolumnswithautosavena?language=objc -func (bc _BrowserClass) RemoveSavedColumnsWithAutosaveName(name BrowserColumnsAutosaveName) { - objc.Call[objc.Void](bc, objc.Sel("removeSavedColumnsWithAutosaveName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407719-scrollrowtovisible?language=objc +func (b_ Browser) ScrollRowToVisibleInColumn(row int, column int) { + objc.Call[objc.Void](b_, objc.Sel("scrollRowToVisible:inColumn:"), row, column) } -// Removes the column configuration data stored under the given name from the application’s user defaults. [Full Topic] +// Updates the rows in the column with the specified column index with indexes in the specified set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407668-removesavedcolumnswithautosavena?language=objc -func Browser_RemoveSavedColumnsWithAutosaveName(name BrowserColumnsAutosaveName) { - BrowserClass.RemoveSavedColumnsWithAutosaveName(name) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407805-reloaddataforrowindexes?language=objc +func (b_ Browser) ReloadDataForRowIndexesInColumn(rowIndexes foundation.IIndexSet, column int) { + objc.Call[objc.Void](b_, objc.Sel("reloadDataForRowIndexes:inColumn:"), rowIndexes, column) } -// Returns the bounds of the title frame for the specified column. [Full Topic] +// Returns a string representing the browser’s current path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407544-titleframeofcolumn?language=objc -func (b_ Browser) TitleFrameOfColumn(column int) foundation.Rect { - rv := objc.Call[foundation.Rect](b_, objc.Sel("titleFrameOfColumn:"), column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407731-path?language=objc +func (b_ Browser) Path() string { + rv := objc.Call[string](b_, objc.Sel("path")) return rv } -// Returns the rectangle containing the given column. [Full Topic] +// Returns the row index of the selected cell in the specified column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407620-frameofcolumn?language=objc -func (b_ Browser) FrameOfColumn(column int) foundation.Rect { - rv := objc.Call[foundation.Rect](b_, objc.Sel("frameOfColumn:"), column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407528-selectedrowincolumn?language=objc +func (b_ Browser) SelectedRowInColumn(column int) int { + rv := objc.Call[int](b_, objc.Sel("selectedRowInColumn:"), column) return rv } -// Begins editing the item at the specified path. [Full Topic] +// Returns the last (lowest) cell selected in the given column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407558-edititematindexpath?language=objc -func (b_ Browser) EditItemAtIndexPathWithEventSelect(indexPath foundation.IIndexPath, event IEvent, select_ bool) { - objc.Call[objc.Void](b_, objc.Sel("editItemAtIndexPath:withEvent:select:"), indexPath, event, select_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407592-selectedcellincolumn?language=objc +func (b_ Browser) SelectedCellInColumn(column int) objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("selectedCellInColumn:"), column) + return rv } -// Draws the title for the specified column within the given rectangle. [Full Topic] +// Returns the content width for a given column width. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407809-drawtitleofcolumn?language=objc -func (b_ Browser) DrawTitleOfColumnInRect(column int, rect foundation.Rect) { - objc.Call[objc.Void](b_, objc.Sel("drawTitleOfColumn:inRect:"), column, rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407522-columncontentwidthforcolumnwidth?language=objc +func (b_ Browser) ColumnContentWidthForColumnWidth(columnWidth float64) float64 { + rv := objc.Call[float64](b_, objc.Sel("columnContentWidthForColumnWidth:"), columnWidth) + return rv } -// Selects all cells in the last column of the browser. [Full Topic] +// Selects the cell at the specified row and column index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407717-selectall?language=objc -func (b_ Browser) SelectAll(sender objc.IObject) { - objc.Call[objc.Void](b_, objc.Sel("selectAll:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407560-selectrow?language=objc +func (b_ Browser) SelectRowInColumn(row int, column int) { + objc.Call[objc.Void](b_, objc.Sel("selectRow:inColumn:"), row, column) } -// Specifies the drag-operation mask for dragging operations with local or external destinations. [Full Topic] +// Returns the default column width of the browser’s columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407559-setdraggingsourceoperationmask?language=objc -func (b_ Browser) SetDraggingSourceOperationMaskForLocal(mask DragOperation, isLocal bool) { - objc.Call[objc.Void](b_, objc.Sel("setDraggingSourceOperationMask:forLocal:"), mask, isLocal) -} +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407615-defaultcolumnwidth?language=objc +func (b_ Browser) DefaultColumnWidth() float64 { + rv := objc.Call[float64](b_, objc.Sel("defaultColumnWidth")) + return rv +} -// Adds a column to the right of the last column. [Full Topic] +// Returns a string representing the path from the first column up to, but not including, the column at the given index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407723-addcolumn?language=objc -func (b_ Browser) AddColumn() { - objc.Call[objc.Void](b_, objc.Sel("addColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407727-pathtocolumn?language=objc +func (b_ Browser) PathToColumn(column int) string { + rv := objc.Call[string](b_, objc.Sel("pathToColumn:"), column) + return rv } -// Updates the rows in the column with the specified column index with indexes in the specified set. [Full Topic] +// Returns the bounds of the title frame for the specified column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407805-reloaddataforrowindexes?language=objc -func (b_ Browser) ReloadDataForRowIndexesInColumn(rowIndexes foundation.IIndexSet, column int) { - objc.Call[objc.Void](b_, objc.Sel("reloadDataForRowIndexes:inColumn:"), rowIndexes, column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407544-titleframeofcolumn?language=objc +func (b_ Browser) TitleFrameOfColumn(column int) foundation.Rect { + rv := objc.Call[foundation.Rect](b_, objc.Sel("titleFrameOfColumn:"), column) + return rv } -// Sets the class of the cell to be used by the matrices in the columns of the browser. [Full Topic] +// Draws the title for the specified column within the given rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407811-setcellclass?language=objc -func (b_ Browser) SetCellClass(factoryId objc.IClass) { - objc.Call[objc.Void](b_, objc.Sel("setCellClass:"), factoryId) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407809-drawtitleofcolumn?language=objc +func (b_ Browser) DrawTitleOfColumnInRect(column int, rect foundation.Rect) { + objc.Call[objc.Void](b_, objc.Sel("drawTitleOfColumn:inRect:"), column, rect) } -// Gets the row and column coordinates for the specified point, if a cell exists at that point. [Full Topic] +// Sets the path to be displayed by the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407606-getrow?language=objc -func (b_ Browser) GetRowColumnForPoint(row *int, column *int, point foundation.Point) bool { - rv := objc.Call[bool](b_, objc.Sel("getRow:column:forPoint:"), row, column, point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407751-setpath?language=objc +func (b_ Browser) SetPath(path string) bool { + rv := objc.Call[bool](b_, objc.Sel("setPath:"), path) return rv } -// Provides an image to represent dragged rows during a drag operation on the browser. [Full Topic] +// Provides the indexes of the selected rows in a given column of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407532-draggingimageforrowswithindexes?language=objc -func (b_ Browser) DraggingImageForRowsWithIndexesInColumnWithEventOffset(rowIndexes foundation.IIndexSet, column int, event IEvent, dragImageOffset foundation.PointPointer) Image { - rv := objc.Call[Image](b_, objc.Sel("draggingImageForRowsWithIndexes:inColumn:withEvent:offset:"), rowIndexes, column, event, dragImageOffset) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407807-selectedrowindexesincolumn?language=objc +func (b_ Browser) SelectedRowIndexesInColumn(column int) foundation.IndexSet { + rv := objc.Call[foundation.IndexSet](b_, objc.Sel("selectedRowIndexesInColumn:"), column) return rv } -// Adjusts the various subviews of the browser—scrollers, columns, titles, and so on—without redrawing. [Full Topic] +// Responds to (single) mouse clicks in a column of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407788-tile?language=objc -func (b_ Browser) Tile() { - objc.Call[objc.Void](b_, objc.Sel("tile")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407600-doclick?language=objc +func (b_ Browser) DoClick(sender objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("doClick:"), sender) +} + +// Scrolls columns left by the specified number of columns. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407747-scrollcolumnsleftby?language=objc +func (b_ Browser) ScrollColumnsLeftBy(shiftAmount int) { + objc.Call[objc.Void](b_, objc.Sel("scrollColumnsLeftBy:"), shiftAmount) +} + +// Loads column 0; unloads previously loaded columns. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407745-loadcolumnzero?language=objc +func (b_ Browser) LoadColumnZero() { + objc.Call[objc.Void](b_, objc.Sel("loadColumnZero")) +} + +// Loads, if necessary, and returns the cell at the specified row and column location. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407581-loadedcellatrow?language=objc +func (b_ Browser) LoadedCellAtRowColumn(row int, col int) objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("loadedCellAtRow:column:"), row, col) + return rv } // Returns the index path of the item whose children are displayed in the given column. [Full Topic] @@ -318,6 +329,13 @@ func (b_ Browser) IndexPathForColumn(column int) foundation.IndexPath { return rv } +// Scrolls to make the specified column visible. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407516-scrollcolumntovisible?language=objc +func (b_ Browser) ScrollColumnToVisible(column int) { + objc.Call[objc.Void](b_, objc.Sel("scrollColumnToVisible:"), column) +} + // Responds to double clicks in a column of the browser. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407800-dodoubleclick?language=objc @@ -325,44 +343,34 @@ func (b_ Browser) DoDoubleClick(sender objc.IObject) { objc.Call[objc.Void](b_, objc.Sel("doDoubleClick:"), sender) } -// Returns the default column width of the browser’s columns. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407615-defaultcolumnwidth?language=objc -func (b_ Browser) DefaultColumnWidth() float64 { - rv := objc.Call[float64](b_, objc.Sel("defaultColumnWidth")) - return rv -} - -// Returns the item at the specified index path. [Full Topic] +// Provides an image to represent dragged rows during a drag operation on the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407673-itematindexpath?language=objc -func (b_ Browser) ItemAtIndexPath(indexPath foundation.IIndexPath) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("itemAtIndexPath:"), indexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407532-draggingimageforrowswithindexes?language=objc +func (b_ Browser) DraggingImageForRowsWithIndexesInColumnWithEventOffset(rowIndexes foundation.IIndexSet, column int, event IEvent, dragImageOffset foundation.PointPointer) Image { + rv := objc.Call[Image](b_, objc.Sel("draggingImageForRowsWithIndexes:inColumn:withEvent:offset:"), rowIndexes, column, event, dragImageOffset) return rv } -// Returns the title displayed for the given column. [Full Topic] +// Selects all cells in the last column of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407794-titleofcolumn?language=objc -func (b_ Browser) TitleOfColumn(column int) string { - rv := objc.Call[string](b_, objc.Sel("titleOfColumn:"), column) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407717-selectall?language=objc +func (b_ Browser) SelectAll(sender objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("selectAll:"), sender) } -// Provides the indexes of the selected rows in a given column of the browser. [Full Topic] +// Returns the rectangle containing the given column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407807-selectedrowindexesincolumn?language=objc -func (b_ Browser) SelectedRowIndexesInColumn(column int) foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](b_, objc.Sel("selectedRowIndexesInColumn:"), column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407620-frameofcolumn?language=objc +func (b_ Browser) FrameOfColumn(column int) foundation.Rect { + rv := objc.Call[foundation.Rect](b_, objc.Sel("frameOfColumn:"), column) return rv } -// Returns the row index of the selected cell in the specified column. [Full Topic] +// Scrolls columns right by the specified number of columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407528-selectedrowincolumn?language=objc -func (b_ Browser) SelectedRowInColumn(column int) int { - rv := objc.Call[int](b_, objc.Sel("selectedRowInColumn:"), column) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407684-scrollcolumnsrightby?language=objc +func (b_ Browser) ScrollColumnsRightBy(shiftAmount int) { + objc.Call[objc.Void](b_, objc.Sel("scrollColumnsRightBy:"), shiftAmount) } // Sets the title of the given column. [Full Topic] @@ -372,33 +380,19 @@ func (b_ Browser) SetTitleOfColumn(string_ string, column int) { objc.Call[objc.Void](b_, objc.Sel("setTitle:ofColumn:"), string_, column) } -// Reloads the given column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407764-reloadcolumn?language=objc -func (b_ Browser) ReloadColumn(column int) { - objc.Call[objc.Void](b_, objc.Sel("reloadColumn:"), column) -} - -// Immediately retiles the browser’s columns using row heights specified by the browser’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407608-noteheightofrowswithindexeschang?language=objc -func (b_ Browser) NoteHeightOfRowsWithIndexesChangedInColumn(indexSet foundation.IIndexSet, columnIndex int) { - objc.Call[objc.Void](b_, objc.Sel("noteHeightOfRowsWithIndexesChanged:inColumn:"), indexSet, columnIndex) -} - -// Returns the content width for a given column width. [Full Topic] +// Returns whether the specified item is a leaf item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407522-columncontentwidthforcolumnwidth?language=objc -func (b_ Browser) ColumnContentWidthForColumnWidth(columnWidth float64) float64 { - rv := objc.Call[float64](b_, objc.Sel("columnContentWidthForColumnWidth:"), columnWidth) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407713-isleafitem?language=objc +func (b_ Browser) IsLeafItem(item objc.IObject) bool { + rv := objc.Call[bool](b_, objc.Sel("isLeafItem:"), item) return rv } -// Scrolls columns left by the specified number of columns. [Full Topic] +// Reloads the given column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407747-scrollcolumnsleftby?language=objc -func (b_ Browser) ScrollColumnsLeftBy(shiftAmount int) { - objc.Call[objc.Void](b_, objc.Sel("scrollColumnsLeftBy:"), shiftAmount) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407764-reloadcolumn?language=objc +func (b_ Browser) ReloadColumn(column int) { + objc.Call[objc.Void](b_, objc.Sel("reloadColumn:"), column) } // Returns the rectangle containing the specified column, not including borders. [Full Topic] @@ -409,52 +403,57 @@ func (b_ Browser) FrameOfInsideOfColumn(column int) foundation.Rect { return rv } -// Returns the width of the specified column. [Full Topic] +// Begins editing the item at the specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407778-widthofcolumn?language=objc -func (b_ Browser) WidthOfColumn(column int) float64 { - rv := objc.Call[float64](b_, objc.Sel("widthOfColumn:"), column) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407558-edititematindexpath?language=objc +func (b_ Browser) EditItemAtIndexPathWithEventSelect(indexPath foundation.IIndexPath, event IEvent, select_ bool) { + objc.Call[objc.Void](b_, objc.Sel("editItemAtIndexPath:withEvent:select:"), indexPath, event, select_) } -// Loads column 0; unloads previously loaded columns. [Full Topic] +// Specifies the selected rows in a given column of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407745-loadcolumnzero?language=objc -func (b_ Browser) LoadColumnZero() { - objc.Call[objc.Void](b_, objc.Sel("loadColumnZero")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407618-selectrowindexes?language=objc +func (b_ Browser) SelectRowIndexesInColumn(indexes foundation.IIndexSet, column int) { + objc.Call[objc.Void](b_, objc.Sel("selectRowIndexes:inColumn:"), indexes, column) } -// Loads, if necessary, and returns the cell at the specified row and column location. [Full Topic] +// Returns the title displayed for the given column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407581-loadedcellatrow?language=objc -func (b_ Browser) LoadedCellAtRowColumn(row int, col int) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("loadedCellAtRow:column:"), row, col) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407794-titleofcolumn?language=objc +func (b_ Browser) TitleOfColumn(column int) string { + rv := objc.Call[string](b_, objc.Sel("titleOfColumn:"), column) return rv } -// Specifies the selected rows in a given column of the browser. [Full Topic] +// Immediately retiles the browser’s columns using row heights specified by the browser’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407618-selectrowindexes?language=objc -func (b_ Browser) SelectRowIndexesInColumn(indexes foundation.IIndexSet, column int) { - objc.Call[objc.Void](b_, objc.Sel("selectRowIndexes:inColumn:"), indexes, column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407608-noteheightofrowswithindexeschang?language=objc +func (b_ Browser) NoteHeightOfRowsWithIndexesChangedInColumn(indexSet foundation.IIndexSet, columnIndex int) { + objc.Call[objc.Void](b_, objc.Sel("noteHeightOfRowsWithIndexesChanged:inColumn:"), indexSet, columnIndex) } -// Returns the item that contains the children located in the specified column. [Full Topic] +// Validates the browser’s visible columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407570-parentforitemsincolumn?language=objc -func (b_ Browser) ParentForItemsInColumn(column int) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("parentForItemsInColumn:"), column) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407725-validatevisiblecolumns?language=objc +func (b_ Browser) ValidateVisibleColumns() { + objc.Call[objc.Void](b_, objc.Sel("validateVisibleColumns")) } -// Returns whether the specified item is a leaf item. [Full Topic] +// Indicates whether the browser can attempt to initiate a drag of the given rows for the given event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407713-isleafitem?language=objc -func (b_ Browser) IsLeafItem(item objc.IObject) bool { - rv := objc.Call[bool](b_, objc.Sel("isLeafItem:"), item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407632-candragrowswithindexes?language=objc +func (b_ Browser) CanDragRowsWithIndexesInColumnWithEvent(rowIndexes foundation.IIndexSet, column int, event IEvent) bool { + rv := objc.Call[bool](b_, objc.Sel("canDragRowsWithIndexes:inColumn:withEvent:"), rowIndexes, column, event) return rv } +// Specifies the drag-operation mask for dragging operations with local or external destinations. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407559-setdraggingsourceoperationmask?language=objc +func (b_ Browser) SetDraggingSourceOperationMaskForLocal(mask DragOperation, isLocal bool) { + objc.Call[objc.Void](b_, objc.Sel("setDraggingSourceOperationMask:forLocal:"), mask, isLocal) +} + // Returns the column width for the width of the given column’s content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407648-columnwidthforcolumncontentwidth?language=objc @@ -463,283 +462,284 @@ func (b_ Browser) ColumnWidthForColumnContentWidth(columnContentWidth float64) f return rv } -// Returns the last (lowest) cell selected in the given column. [Full Topic] +// Sets the class of the cell to be used by the matrices in the columns of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407592-selectedcellincolumn?language=objc -func (b_ Browser) SelectedCellInColumn(column int) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("selectedCellInColumn:"), column) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407811-setcellclass?language=objc +func (b_ Browser) SetCellClass(factoryId objc.IClass) { + objc.Call[objc.Void](b_, objc.Sel("setCellClass:"), factoryId) } -// Returns a string representing the path from the first column up to, but not including, the column at the given index. [Full Topic] +// Adds a column to the right of the last column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407727-pathtocolumn?language=objc -func (b_ Browser) PathToColumn(column int) string { - rv := objc.Call[string](b_, objc.Sel("pathToColumn:"), column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407723-addcolumn?language=objc +func (b_ Browser) AddColumn() { + objc.Call[objc.Void](b_, objc.Sel("addColumn")) +} + +// Returns the frame of the cell at the specified location, including the expandable arrow. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407622-frameofrow?language=objc +func (b_ Browser) FrameOfRowInColumn(row int, column int) foundation.Rect { + rv := objc.Call[foundation.Rect](b_, objc.Sel("frameOfRow:inColumn:"), row, column) return rv } -// Selects the cell at the specified row and column index. [Full Topic] +// Gets the row and column coordinates for the specified point, if a cell exists at that point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407560-selectrow?language=objc -func (b_ Browser) SelectRowInColumn(row int, column int) { - objc.Call[objc.Void](b_, objc.Sel("selectRow:inColumn:"), row, column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407606-getrow?language=objc +func (b_ Browser) GetRowColumnForPoint(row *int, column *int, point foundation.Point) bool { + rv := objc.Call[bool](b_, objc.Sel("getRow:column:forPoint:"), row, column, point) + return rv } -// Sets the width of the specified column. [Full Topic] +// Adjusts the various subviews of the browser—scrollers, columns, titles, and so on—without redrawing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407679-setwidth?language=objc -func (b_ Browser) SetWidthOfColumn(columnWidth float64, columnIndex int) { - objc.Call[objc.Void](b_, objc.Sel("setWidth:ofColumn:"), columnWidth, columnIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407788-tile?language=objc +func (b_ Browser) Tile() { + objc.Call[objc.Void](b_, objc.Sel("tile")) } -// Scrolls the specified row to be visible within the specified column. [Full Topic] +// Returns the item located at the specified row and column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407719-scrollrowtovisible?language=objc -func (b_ Browser) ScrollRowToVisibleInColumn(row int, column int) { - objc.Call[objc.Void](b_, objc.Sel("scrollRowToVisible:inColumn:"), row, column) -} - -// Responds to (single) mouse clicks in a column of the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407600-doclick?language=objc -func (b_ Browser) DoClick(sender objc.IObject) { - objc.Call[objc.Void](b_, objc.Sel("doClick:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407701-itematrow?language=objc +func (b_ Browser) ItemAtRowInColumn(row int, column int) objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("itemAtRow:inColumn:"), row, column) + return rv } -// Sets the default column width for new browser columns that do not otherwise have an initial width from defaults or the browser’s delegate. [Full Topic] +// Sets the width of the specified column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407651-setdefaultcolumnwidth?language=objc -func (b_ Browser) SetDefaultColumnWidth(columnWidth float64) { - objc.Call[objc.Void](b_, objc.Sel("setDefaultColumnWidth:"), columnWidth) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407679-setwidth?language=objc +func (b_ Browser) SetWidthOfColumn(columnWidth float64, columnIndex int) { + objc.Call[objc.Void](b_, objc.Sel("setWidth:ofColumn:"), columnWidth, columnIndex) } -// Returns the item located at the specified row and column. [Full Topic] +// Returns the item at the specified index path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407701-itematrow?language=objc -func (b_ Browser) ItemAtRowInColumn(row int, column int) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("itemAtRow:inColumn:"), row, column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407673-itematindexpath?language=objc +func (b_ Browser) ItemAtIndexPath(indexPath foundation.IIndexPath) objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("itemAtIndexPath:"), indexPath) return rv } -// Scrolls columns right by the specified number of columns. [Full Topic] +// Removes the column configuration data stored under the given name from the application’s user defaults. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407684-scrollcolumnsrightby?language=objc -func (b_ Browser) ScrollColumnsRightBy(shiftAmount int) { - objc.Call[objc.Void](b_, objc.Sel("scrollColumnsRightBy:"), shiftAmount) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407668-removesavedcolumnswithautosavena?language=objc +func (bc _BrowserClass) RemoveSavedColumnsWithAutosaveName(name BrowserColumnsAutosaveName) { + objc.Call[objc.Void](bc, objc.Sel("removeSavedColumnsWithAutosaveName:"), name) } -// Scrolls to make the specified column visible. [Full Topic] +// Removes the column configuration data stored under the given name from the application’s user defaults. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407516-scrollcolumntovisible?language=objc -func (b_ Browser) ScrollColumnToVisible(column int) { - objc.Call[objc.Void](b_, objc.Sel("scrollColumnToVisible:"), column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407668-removesavedcolumnswithautosavena?language=objc +func Browser_RemoveSavedColumnsWithAutosaveName(name BrowserColumnsAutosaveName) { + BrowserClass.RemoveSavedColumnsWithAutosaveName(name) } -// Returns a string representing the browser’s current path. [Full Topic] +// Returns the width of the specified column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407731-path?language=objc -func (b_ Browser) Path() string { - rv := objc.Call[string](b_, objc.Sel("path")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407778-widthofcolumn?language=objc +func (b_ Browser) WidthOfColumn(column int) float64 { + rv := objc.Call[float64](b_, objc.Sel("widthOfColumn:"), column) return rv } -// Returns the frame of the cell at the specified location, including the expandable arrow. [Full Topic] +// Returns the item that contains the children located in the specified column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407622-frameofrow?language=objc -func (b_ Browser) FrameOfRowInColumn(row int, column int) foundation.Rect { - rv := objc.Call[foundation.Rect](b_, objc.Sel("frameOfRow:inColumn:"), row, column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407570-parentforitemsincolumn?language=objc +func (b_ Browser) ParentForItemsInColumn(column int) objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("parentForItemsInColumn:"), column) return rv } -// The row number of the cell that the user clicked to display a context menu. [Full Topic] +// The browser’s double-click action method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407671-clickedrow?language=objc -func (b_ Browser) ClickedRow() int { - rv := objc.Call[int](b_, objc.Sel("clickedRow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407698-doubleaction?language=objc +func (b_ Browser) DoubleAction() objc.Selector { + rv := objc.Call[objc.Selector](b_, objc.Sel("doubleAction")) return rv } -// A Boolean that indicates whether pressing an arrow key causes an action message to be sent. [Full Topic] +// The browser’s double-click action method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407614-sendsactiononarrowkeys?language=objc -func (b_ Browser) SendsActionOnArrowKeys() bool { - rv := objc.Call[bool](b_, objc.Sel("sendsActionOnArrowKeys")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407698-doubleaction?language=objc +func (b_ Browser) SetDoubleAction(value objc.Selector) { + objc.Call[objc.Void](b_, objc.Sel("setDoubleAction:"), value) } -// A Boolean that indicates whether pressing an arrow key causes an action message to be sent. [Full Topic] +// All cells selected in the rightmost column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407614-sendsactiononarrowkeys?language=objc -func (b_ Browser) SetSendsActionOnArrowKeys(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setSendsActionOnArrowKeys:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407588-selectedcells?language=objc +func (b_ Browser) SelectedCells() []Cell { + rv := objc.Call[[]Cell](b_, objc.Sel("selectedCells")) + return rv } -// A Boolean that indicates whether a column takes its title from the selected cell in the previous column. [Full Topic] +// A Boolean that indicates whether the browser is set to resize all columns simultaneously rather than resizing a single column at a time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407564-takestitlefrompreviouscolumn?language=objc -func (b_ Browser) TakesTitleFromPreviousColumn() bool { - rv := objc.Call[bool](b_, objc.Sel("takesTitleFromPreviousColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407690-prefersallcolumnuserresizing?language=objc +func (b_ Browser) PrefersAllColumnUserResizing() bool { + rv := objc.Call[bool](b_, objc.Sel("prefersAllColumnUserResizing")) return rv } -// A Boolean that indicates whether a column takes its title from the selected cell in the previous column. [Full Topic] +// A Boolean that indicates whether the browser is set to resize all columns simultaneously rather than resizing a single column at a time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407564-takestitlefrompreviouscolumn?language=objc -func (b_ Browser) SetTakesTitleFromPreviousColumn(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setTakesTitleFromPreviousColumn:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407690-prefersallcolumnuserresizing?language=objc +func (b_ Browser) SetPrefersAllColumnUserResizing(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setPrefersAllColumnUserResizing:"), value) } -// The index of the last visible column. [Full Topic] +// The last (rightmost and lowest) selected cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407610-lastvisiblecolumn?language=objc -func (b_ Browser) LastVisibleColumn() int { - rv := objc.Call[int](b_, objc.Sel("lastVisibleColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407730-selectedcell?language=objc +func (b_ Browser) SelectedCell() objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("selectedCell")) return rv } -// The minimum column width, in pixels. [Full Topic] +// The index path of the item selected in the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407513-mincolumnwidth?language=objc -func (b_ Browser) MinColumnWidth() float64 { - rv := objc.Call[float64](b_, objc.Sel("minColumnWidth")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407507-selectionindexpath?language=objc +func (b_ Browser) SelectionIndexPath() foundation.IndexPath { + rv := objc.Call[foundation.IndexPath](b_, objc.Sel("selectionIndexPath")) return rv } -// The minimum column width, in pixels. [Full Topic] +// The index path of the item selected in the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407513-mincolumnwidth?language=objc -func (b_ Browser) SetMinColumnWidth(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setMinColumnWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407507-selectionindexpath?language=objc +func (b_ Browser) SetSelectionIndexPath(value foundation.IIndexPath) { + objc.Call[objc.Void](b_, objc.Sel("setSelectionIndexPath:"), value) } -// The browser’s double-click action method. [Full Topic] +// A Boolean that indicates whether there can be nothing selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407698-doubleaction?language=objc -func (b_ Browser) DoubleAction() objc.Selector { - rv := objc.Call[objc.Selector](b_, objc.Sel("doubleAction")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407585-allowsemptyselection?language=objc +func (b_ Browser) AllowsEmptySelection() bool { + rv := objc.Call[bool](b_, objc.Sel("allowsEmptySelection")) return rv } -// The browser’s double-click action method. [Full Topic] +// A Boolean that indicates whether there can be nothing selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407698-doubleaction?language=objc -func (b_ Browser) SetDoubleAction(value objc.Selector) { - objc.Call[objc.Void](b_, objc.Sel("setDoubleAction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407585-allowsemptyselection?language=objc +func (b_ Browser) SetAllowsEmptySelection(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setAllowsEmptySelection:"), value) } -// The name used to automatically save the browser’s column configuration. [Full Topic] +// The height of the browser’s rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407650-columnsautosavename?language=objc -func (b_ Browser) ColumnsAutosaveName() BrowserColumnsAutosaveName { - rv := objc.Call[BrowserColumnsAutosaveName](b_, objc.Sel("columnsAutosaveName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407642-rowheight?language=objc +func (b_ Browser) RowHeight() float64 { + rv := objc.Call[float64](b_, objc.Sel("rowHeight")) return rv } -// The name used to automatically save the browser’s column configuration. [Full Topic] +// The height of the browser’s rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407650-columnsautosavename?language=objc -func (b_ Browser) SetColumnsAutosaveName(value BrowserColumnsAutosaveName) { - objc.Call[objc.Void](b_, objc.Sel("setColumnsAutosaveName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407642-rowheight?language=objc +func (b_ Browser) SetRowHeight(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setRowHeight:"), value) } -// An array containing the index paths of all items selected in the browser. [Full Topic] +// A Boolean that indicates whether the browser automatically hides its scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407536-selectionindexpaths?language=objc -func (b_ Browser) SelectionIndexPaths() []foundation.IndexPath { - rv := objc.Call[[]foundation.IndexPath](b_, objc.Sel("selectionIndexPaths")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407696-autohidesscroller?language=objc +func (b_ Browser) AutohidesScroller() bool { + rv := objc.Call[bool](b_, objc.Sel("autohidesScroller")) return rv } -// An array containing the index paths of all items selected in the browser. [Full Topic] +// A Boolean that indicates whether the browser automatically hides its scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407536-selectionindexpaths?language=objc -func (b_ Browser) SetSelectionIndexPaths(value []foundation.IIndexPath) { - objc.Call[objc.Void](b_, objc.Sel("setSelectionIndexPaths:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407696-autohidesscroller?language=objc +func (b_ Browser) SetAutohidesScroller(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setAutohidesScroller:"), value) } -// A Boolean that indicates whether the browser has a horizontal scroller. [Full Topic] +// The column number of the cell that the user clicked to display a context menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407551-hashorizontalscroller?language=objc -func (b_ Browser) HasHorizontalScroller() bool { - rv := objc.Call[bool](b_, objc.Sel("hasHorizontalScroller")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407590-clickedcolumn?language=objc +func (b_ Browser) ClickedColumn() int { + rv := objc.Call[int](b_, objc.Sel("clickedColumn")) return rv } -// A Boolean that indicates whether the browser has a horizontal scroller. [Full Topic] +// A Boolean that indicates whether columns display titles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407551-hashorizontalscroller?language=objc -func (b_ Browser) SetHasHorizontalScroller(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setHasHorizontalScroller:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407735-titled?language=objc +func (b_ Browser) IsTitled() bool { + rv := objc.Call[bool](b_, objc.Sel("isTitled")) + return rv } -// Returns the NSBrowserCell class. [Full Topic] +// A Boolean that indicates whether columns display titles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407505-cellclass?language=objc -func (bc _BrowserClass) CellClass() objc.Class { - rv := objc.Call[objc.Class](bc, objc.Sel("cellClass")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407735-titled?language=objc +func (b_ Browser) SetTitled(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setTitled:"), value) } -// Returns the NSBrowserCell class. [Full Topic] +// The prototype NSCell for displaying items in the matrices in the columns of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407505-cellclass?language=objc -func Browser_CellClass() objc.Class { - return BrowserClass.CellClass() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407662-cellprototype?language=objc +func (b_ Browser) CellPrototype() objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("cellPrototype")) + return rv } -// A Boolean that indicates whether column 0 is loaded. [Full Topic] +// The prototype NSCell for displaying items in the matrices in the columns of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407758-loaded?language=objc -func (b_ Browser) IsLoaded() bool { - rv := objc.Call[bool](b_, objc.Sel("isLoaded")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407662-cellprototype?language=objc +func (b_ Browser) SetCellPrototype(value objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("setCellPrototype:"), value) } -// The height of the column titles for the browser. [Full Topic] +// The index of the last visible column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407709-titleheight?language=objc -func (b_ Browser) TitleHeight() float64 { - rv := objc.Call[float64](b_, objc.Sel("titleHeight")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407610-lastvisiblecolumn?language=objc +func (b_ Browser) LastVisibleColumn() int { + rv := objc.Call[int](b_, objc.Sel("lastVisibleColumn")) return rv } -// The index of the last column loaded. [Full Topic] +// A Boolean that indicates whether the browser allows keystroke-based selection (type select). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407715-lastcolumn?language=objc -func (b_ Browser) LastColumn() int { - rv := objc.Call[int](b_, objc.Sel("lastColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407682-allowstypeselect?language=objc +func (b_ Browser) AllowsTypeSelect() bool { + rv := objc.Call[bool](b_, objc.Sel("allowsTypeSelect")) return rv } -// The index of the last column loaded. [Full Topic] +// A Boolean that indicates whether the browser allows keystroke-based selection (type select). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407715-lastcolumn?language=objc -func (b_ Browser) SetLastColumn(value int) { - objc.Call[objc.Void](b_, objc.Sel("setLastColumn:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407682-allowstypeselect?language=objc +func (b_ Browser) SetAllowsTypeSelect(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setAllowsTypeSelect:"), value) } -// A Boolean that indicates whether columns are separated by bezeled borders. [Full Topic] +// A Boolean that indicates whether column 0 is loaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407653-separatescolumns?language=objc -func (b_ Browser) SeparatesColumns() bool { - rv := objc.Call[bool](b_, objc.Sel("separatesColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407758-loaded?language=objc +func (b_ Browser) IsLoaded() bool { + rv := objc.Call[bool](b_, objc.Sel("isLoaded")) return rv } -// A Boolean that indicates whether columns are separated by bezeled borders. [Full Topic] +// A constant indicating the browser’s column resizing type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407653-separatescolumns?language=objc -func (b_ Browser) SetSeparatesColumns(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setSeparatesColumns:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407694-columnresizingtype?language=objc +func (b_ Browser) ColumnResizingType() BrowserColumnResizingType { + rv := objc.Call[BrowserColumnResizingType](b_, objc.Sel("columnResizingType")) + return rv } -// The last (rightmost and lowest) selected cell. [Full Topic] +// A constant indicating the browser’s column resizing type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407730-selectedcell?language=objc -func (b_ Browser) SelectedCell() objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("selectedCell")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407694-columnresizingtype?language=objc +func (b_ Browser) SetColumnResizingType(value BrowserColumnResizingType) { + objc.Call[objc.Void](b_, objc.Sel("setColumnResizingType:"), value) } // The index of the first visible column. [Full Topic] @@ -750,79 +750,58 @@ func (b_ Browser) FirstVisibleColumn() int { return rv } -// The maximum number of visible columns. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407749-maxvisiblecolumns?language=objc -func (b_ Browser) MaxVisibleColumns() int { - rv := objc.Call[int](b_, objc.Sel("maxVisibleColumns")) - return rv -} - -// The maximum number of visible columns. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407749-maxvisiblecolumns?language=objc -func (b_ Browser) SetMaxVisibleColumns(value int) { - objc.Call[objc.Void](b_, objc.Sel("setMaxVisibleColumns:"), value) -} - -// A Boolean that indicates whether the browser automatically hides its scroller. [Full Topic] +// A Boolean that indicates whether the browser reuses matrix objects after their columns are unloaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407696-autohidesscroller?language=objc -func (b_ Browser) AutohidesScroller() bool { - rv := objc.Call[bool](b_, objc.Sel("autohidesScroller")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407792-reusescolumns?language=objc +func (b_ Browser) ReusesColumns() bool { + rv := objc.Call[bool](b_, objc.Sel("reusesColumns")) return rv } -// A Boolean that indicates whether the browser automatically hides its scroller. [Full Topic] +// A Boolean that indicates whether the browser reuses matrix objects after their columns are unloaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407696-autohidesscroller?language=objc -func (b_ Browser) SetAutohidesScroller(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setAutohidesScroller:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407792-reusescolumns?language=objc +func (b_ Browser) SetReusesColumns(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setReusesColumns:"), value) } -// A Boolean that indicates whether the browser allows keystroke-based selection (type select). [Full Topic] +// The browser’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407682-allowstypeselect?language=objc -func (b_ Browser) AllowsTypeSelect() bool { - rv := objc.Call[bool](b_, objc.Sel("allowsTypeSelect")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407686-delegate?language=objc +func (b_ Browser) Delegate() BrowserDelegateObject { + rv := objc.Call[BrowserDelegateObject](b_, objc.Sel("delegate")) return rv } -// A Boolean that indicates whether the browser allows keystroke-based selection (type select). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407682-allowstypeselect?language=objc -func (b_ Browser) SetAllowsTypeSelect(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setAllowsTypeSelect:"), value) -} - -// A Boolean that indicates whether the user can select multiple items. [Full Topic] +// The browser’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407509-allowsmultipleselection?language=objc -func (b_ Browser) AllowsMultipleSelection() bool { - rv := objc.Call[bool](b_, objc.Sel("allowsMultipleSelection")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407686-delegate?language=objc +func (b_ Browser) SetDelegate(value PBrowserDelegate) { + po0 := objc.WrapAsProtocol("NSBrowserDelegate", value) + objc.SetAssociatedObject(b_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](b_, objc.Sel("setDelegate:"), po0) } -// A Boolean that indicates whether the user can select multiple items. [Full Topic] +// The browser’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407509-allowsmultipleselection?language=objc -func (b_ Browser) SetAllowsMultipleSelection(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setAllowsMultipleSelection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407686-delegate?language=objc +func (b_ Browser) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("setDelegate:"), valueObject) } -// The index path of the item selected in the browser. [Full Topic] +// The browser’s background color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407507-selectionindexpath?language=objc -func (b_ Browser) SelectionIndexPath() foundation.IndexPath { - rv := objc.Call[foundation.IndexPath](b_, objc.Sel("selectionIndexPath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407520-backgroundcolor?language=objc +func (b_ Browser) BackgroundColor() Color { + rv := objc.Call[Color](b_, objc.Sel("backgroundColor")) return rv } -// The index path of the item selected in the browser. [Full Topic] +// The browser’s background color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407507-selectionindexpath?language=objc -func (b_ Browser) SetSelectionIndexPath(value foundation.IIndexPath) { - objc.Call[objc.Void](b_, objc.Sel("setSelectionIndexPath:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407520-backgroundcolor?language=objc +func (b_ Browser) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](b_, objc.Sel("setBackgroundColor:"), value) } // A Boolean that indicates whether the user can select branch items. [Full Topic] @@ -840,193 +819,214 @@ func (b_ Browser) SetAllowsBranchSelection(value bool) { objc.Call[objc.Void](b_, objc.Sel("setAllowsBranchSelection:"), value) } -// The index of the last column with a selected item. [Full Topic] +// An array containing the index paths of all items selected in the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407568-selectedcolumn?language=objc -func (b_ Browser) SelectedColumn() int { - rv := objc.Call[int](b_, objc.Sel("selectedColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407536-selectionindexpaths?language=objc +func (b_ Browser) SelectionIndexPaths() []foundation.IndexPath { + rv := objc.Call[[]foundation.IndexPath](b_, objc.Sel("selectionIndexPaths")) return rv } -// A Boolean that indicates whether the browser is set to resize all columns simultaneously rather than resizing a single column at a time. [Full Topic] +// An array containing the index paths of all items selected in the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407690-prefersallcolumnuserresizing?language=objc -func (b_ Browser) PrefersAllColumnUserResizing() bool { - rv := objc.Call[bool](b_, objc.Sel("prefersAllColumnUserResizing")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407536-selectionindexpaths?language=objc +func (b_ Browser) SetSelectionIndexPaths(value []foundation.IIndexPath) { + objc.Call[objc.Void](b_, objc.Sel("setSelectionIndexPaths:"), value) } -// A Boolean that indicates whether the browser is set to resize all columns simultaneously rather than resizing a single column at a time. [Full Topic] +// The number of visible columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407690-prefersallcolumnuserresizing?language=objc -func (b_ Browser) SetPrefersAllColumnUserResizing(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setPrefersAllColumnUserResizing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407700-numberofvisiblecolumns?language=objc +func (b_ Browser) NumberOfVisibleColumns() int { + rv := objc.Call[int](b_, objc.Sel("numberOfVisibleColumns")) + return rv } -// A Boolean that indicates whether columns display titles. [Full Topic] +// A Boolean that indicates whether pressing an arrow key causes an action message to be sent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407735-titled?language=objc -func (b_ Browser) IsTitled() bool { - rv := objc.Call[bool](b_, objc.Sel("isTitled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407614-sendsactiononarrowkeys?language=objc +func (b_ Browser) SendsActionOnArrowKeys() bool { + rv := objc.Call[bool](b_, objc.Sel("sendsActionOnArrowKeys")) return rv } -// A Boolean that indicates whether columns display titles. [Full Topic] +// A Boolean that indicates whether pressing an arrow key causes an action message to be sent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407735-titled?language=objc -func (b_ Browser) SetTitled(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setTitled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407614-sendsactiononarrowkeys?language=objc +func (b_ Browser) SetSendsActionOnArrowKeys(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setSendsActionOnArrowKeys:"), value) } -// The height of the browser’s rows. [Full Topic] +// The row number of the cell that the user clicked to display a context menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407642-rowheight?language=objc -func (b_ Browser) RowHeight() float64 { - rv := objc.Call[float64](b_, objc.Sel("rowHeight")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407671-clickedrow?language=objc +func (b_ Browser) ClickedRow() int { + rv := objc.Call[int](b_, objc.Sel("clickedRow")) return rv } -// The height of the browser’s rows. [Full Topic] +// A Boolean that indicates whether the user can select multiple items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407642-rowheight?language=objc -func (b_ Browser) SetRowHeight(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setRowHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407509-allowsmultipleselection?language=objc +func (b_ Browser) AllowsMultipleSelection() bool { + rv := objc.Call[bool](b_, objc.Sel("allowsMultipleSelection")) + return rv } -// All cells selected in the rightmost column. [Full Topic] +// A Boolean that indicates whether the user can select multiple items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407588-selectedcells?language=objc -func (b_ Browser) SelectedCells() []Cell { - rv := objc.Call[[]Cell](b_, objc.Sel("selectedCells")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407509-allowsmultipleselection?language=objc +func (b_ Browser) SetAllowsMultipleSelection(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setAllowsMultipleSelection:"), value) } -// A constant indicating the browser’s column resizing type. [Full Topic] +// The index of the last column with a selected item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407694-columnresizingtype?language=objc -func (b_ Browser) ColumnResizingType() BrowserColumnResizingType { - rv := objc.Call[BrowserColumnResizingType](b_, objc.Sel("columnResizingType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407568-selectedcolumn?language=objc +func (b_ Browser) SelectedColumn() int { + rv := objc.Call[int](b_, objc.Sel("selectedColumn")) return rv } -// A constant indicating the browser’s column resizing type. [Full Topic] +// The height of the column titles for the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407694-columnresizingtype?language=objc -func (b_ Browser) SetColumnResizingType(value BrowserColumnResizingType) { - objc.Call[objc.Void](b_, objc.Sel("setColumnResizingType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407709-titleheight?language=objc +func (b_ Browser) TitleHeight() float64 { + rv := objc.Call[float64](b_, objc.Sel("titleHeight")) + return rv } -// A Boolean that indicates whether there can be nothing selected. [Full Topic] +// The path separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407585-allowsemptyselection?language=objc -func (b_ Browser) AllowsEmptySelection() bool { - rv := objc.Call[bool](b_, objc.Sel("allowsEmptySelection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407688-pathseparator?language=objc +func (b_ Browser) PathSeparator() string { + rv := objc.Call[string](b_, objc.Sel("pathSeparator")) return rv } -// A Boolean that indicates whether there can be nothing selected. [Full Topic] +// The path separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407585-allowsemptyselection?language=objc -func (b_ Browser) SetAllowsEmptySelection(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setAllowsEmptySelection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407688-pathseparator?language=objc +func (b_ Browser) SetPathSeparator(value string) { + objc.Call[objc.Void](b_, objc.Sel("setPathSeparator:"), value) } -// The column number of the cell that the user clicked to display a context menu. [Full Topic] +// A Boolean that indicates whether columns are separated by bezeled borders. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407590-clickedcolumn?language=objc -func (b_ Browser) ClickedColumn() int { - rv := objc.Call[int](b_, objc.Sel("clickedColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407653-separatescolumns?language=objc +func (b_ Browser) SeparatesColumns() bool { + rv := objc.Call[bool](b_, objc.Sel("separatesColumns")) return rv } -// The browser’s background color. [Full Topic] +// A Boolean that indicates whether columns are separated by bezeled borders. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407520-backgroundcolor?language=objc -func (b_ Browser) BackgroundColor() Color { - rv := objc.Call[Color](b_, objc.Sel("backgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407653-separatescolumns?language=objc +func (b_ Browser) SetSeparatesColumns(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setSeparatesColumns:"), value) +} + +// The maximum number of visible columns. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407749-maxvisiblecolumns?language=objc +func (b_ Browser) MaxVisibleColumns() int { + rv := objc.Call[int](b_, objc.Sel("maxVisibleColumns")) return rv } -// The browser’s background color. [Full Topic] +// The maximum number of visible columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407520-backgroundcolor?language=objc -func (b_ Browser) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](b_, objc.Sel("setBackgroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407749-maxvisiblecolumns?language=objc +func (b_ Browser) SetMaxVisibleColumns(value int) { + objc.Call[objc.Void](b_, objc.Sel("setMaxVisibleColumns:"), value) } -// The number of visible columns. [Full Topic] +// The name used to automatically save the browser’s column configuration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407700-numberofvisiblecolumns?language=objc -func (b_ Browser) NumberOfVisibleColumns() int { - rv := objc.Call[int](b_, objc.Sel("numberOfVisibleColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407650-columnsautosavename?language=objc +func (b_ Browser) ColumnsAutosaveName() BrowserColumnsAutosaveName { + rv := objc.Call[BrowserColumnsAutosaveName](b_, objc.Sel("columnsAutosaveName")) return rv } -// A Boolean that indicates whether the browser reuses matrix objects after their columns are unloaded. [Full Topic] +// The name used to automatically save the browser’s column configuration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407792-reusescolumns?language=objc -func (b_ Browser) ReusesColumns() bool { - rv := objc.Call[bool](b_, objc.Sel("reusesColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407650-columnsautosavename?language=objc +func (b_ Browser) SetColumnsAutosaveName(value BrowserColumnsAutosaveName) { + objc.Call[objc.Void](b_, objc.Sel("setColumnsAutosaveName:"), value) +} + +// Returns the NSBrowserCell class. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407505-cellclass?language=objc +func (bc _BrowserClass) CellClass() objc.Class { + rv := objc.Call[objc.Class](bc, objc.Sel("cellClass")) return rv } -// A Boolean that indicates whether the browser reuses matrix objects after their columns are unloaded. [Full Topic] +// Returns the NSBrowserCell class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407792-reusescolumns?language=objc -func (b_ Browser) SetReusesColumns(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setReusesColumns:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407505-cellclass?language=objc +func Browser_CellClass() objc.Class { + return BrowserClass.CellClass() } -// The prototype NSCell for displaying items in the matrices in the columns of the browser. [Full Topic] +// The index of the last column loaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407662-cellprototype?language=objc -func (b_ Browser) CellPrototype() objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("cellPrototype")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407715-lastcolumn?language=objc +func (b_ Browser) LastColumn() int { + rv := objc.Call[int](b_, objc.Sel("lastColumn")) return rv } -// The prototype NSCell for displaying items in the matrices in the columns of the browser. [Full Topic] +// The index of the last column loaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407662-cellprototype?language=objc -func (b_ Browser) SetCellPrototype(value objc.IObject) { - objc.Call[objc.Void](b_, objc.Sel("setCellPrototype:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407715-lastcolumn?language=objc +func (b_ Browser) SetLastColumn(value int) { + objc.Call[objc.Void](b_, objc.Sel("setLastColumn:"), value) } -// The path separator. [Full Topic] +// The minimum column width, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407688-pathseparator?language=objc -func (b_ Browser) PathSeparator() string { - rv := objc.Call[string](b_, objc.Sel("pathSeparator")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407513-mincolumnwidth?language=objc +func (b_ Browser) MinColumnWidth() float64 { + rv := objc.Call[float64](b_, objc.Sel("minColumnWidth")) return rv } -// The path separator. [Full Topic] +// The minimum column width, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407688-pathseparator?language=objc -func (b_ Browser) SetPathSeparator(value string) { - objc.Call[objc.Void](b_, objc.Sel("setPathSeparator:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407513-mincolumnwidth?language=objc +func (b_ Browser) SetMinColumnWidth(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setMinColumnWidth:"), value) } -// The browser’s delegate. [Full Topic] +// A Boolean that indicates whether a column takes its title from the selected cell in the previous column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407686-delegate?language=objc -func (b_ Browser) Delegate() BrowserDelegateObject { - rv := objc.Call[BrowserDelegateObject](b_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407564-takestitlefrompreviouscolumn?language=objc +func (b_ Browser) TakesTitleFromPreviousColumn() bool { + rv := objc.Call[bool](b_, objc.Sel("takesTitleFromPreviousColumn")) return rv } -// The browser’s delegate. [Full Topic] +// A Boolean that indicates whether a column takes its title from the selected cell in the previous column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407686-delegate?language=objc -func (b_ Browser) SetDelegate(value PBrowserDelegate) { - po0 := objc.WrapAsProtocol("NSBrowserDelegate", value) - objc.SetAssociatedObject(b_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](b_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407564-takestitlefrompreviouscolumn?language=objc +func (b_ Browser) SetTakesTitleFromPreviousColumn(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setTakesTitleFromPreviousColumn:"), value) } -// The browser’s delegate. [Full Topic] +// A Boolean that indicates whether the browser has a horizontal scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407686-delegate?language=objc -func (b_ Browser) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](b_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407551-hashorizontalscroller?language=objc +func (b_ Browser) HasHorizontalScroller() bool { + rv := objc.Call[bool](b_, objc.Sel("hasHorizontalScroller")) + return rv +} + +// A Boolean that indicates whether the browser has a horizontal scroller. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407551-hashorizontalscroller?language=objc +func (b_ Browser) SetHasHorizontalScroller(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setHasHorizontalScroller:"), value) } diff --git a/macos/appkit/browser_cell.gen.go b/macos/appkit/browser_cell.gen.go index b01e34f9..ed65f334 100644 --- a/macos/appkit/browser_cell.gen.go +++ b/macos/appkit/browser_cell.gen.go @@ -18,15 +18,15 @@ type _BrowserCellClass struct { // An interface definition for the [BrowserCell] class. type IBrowserCell interface { ICell - Reset() - Set() HighlightColorInView(controlView IView) Color - IsLoaded() bool - SetLoaded(value bool) - AlternateImage() Image - SetAlternateImage(value IImage) + Set() + Reset() IsLeaf() bool SetLeaf(value bool) + AlternateImage() Image + SetAlternateImage(value IImage) + IsLoaded() bool + SetLoaded(value bool) } // The user interface of a browser. [Full Topic] @@ -90,20 +90,6 @@ func (b_ BrowserCell) Init() BrowserCell { return rv } -// Unhighlights the receiver and unsets its state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435773-reset?language=objc -func (b_ BrowserCell) Reset() { - objc.Call[objc.Void](b_, objc.Sel("reset")) -} - -// Highlights the receiver and sets its state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435770-set?language=objc -func (b_ BrowserCell) Set() { - objc.Call[objc.Void](b_, objc.Sel("set")) -} - // Returns the highlight color that the receiver wants to display. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435767-highlightcolorinview?language=objc @@ -112,34 +98,33 @@ func (b_ BrowserCell) HighlightColorInView(controlView IView) Color { return rv } -// Returns the default image for branch cells in a browser. [Full Topic] +// Highlights the receiver and sets its state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435775-branchimage?language=objc -func (bc _BrowserCellClass) BranchImage() Image { - rv := objc.Call[Image](bc, objc.Sel("branchImage")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435770-set?language=objc +func (b_ BrowserCell) Set() { + objc.Call[objc.Void](b_, objc.Sel("set")) } -// Returns the default image for branch cells in a browser. [Full Topic] +// Unhighlights the receiver and unsets its state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435775-branchimage?language=objc -func BrowserCell_BranchImage() Image { - return BrowserCellClass.BranchImage() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435773-reset?language=objc +func (b_ BrowserCell) Reset() { + objc.Call[objc.Void](b_, objc.Sel("reset")) } -// A Boolean that indicates whether the cell is ready to display. [Full Topic] +// A Boolean that indicates whether the browser cell is a leaf or a branch cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435772-loaded?language=objc -func (b_ BrowserCell) IsLoaded() bool { - rv := objc.Call[bool](b_, objc.Sel("isLoaded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435771-leaf?language=objc +func (b_ BrowserCell) IsLeaf() bool { + rv := objc.Call[bool](b_, objc.Sel("isLeaf")) return rv } -// A Boolean that indicates whether the cell is ready to display. [Full Topic] +// A Boolean that indicates whether the browser cell is a leaf or a branch cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435772-loaded?language=objc -func (b_ BrowserCell) SetLoaded(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setLoaded:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435771-leaf?language=objc +func (b_ BrowserCell) SetLeaf(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setLeaf:"), value) } // The browser cell’s image for the highlighted state. [Full Topic] @@ -157,6 +142,21 @@ func (b_ BrowserCell) SetAlternateImage(value IImage) { objc.Call[objc.Void](b_, objc.Sel("setAlternateImage:"), value) } +// A Boolean that indicates whether the cell is ready to display. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435772-loaded?language=objc +func (b_ BrowserCell) IsLoaded() bool { + rv := objc.Call[bool](b_, objc.Sel("isLoaded")) + return rv +} + +// A Boolean that indicates whether the cell is ready to display. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435772-loaded?language=objc +func (b_ BrowserCell) SetLoaded(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setLoaded:"), value) +} + // Returns the default image for branch browser cells that are highlighted. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435769-highlightedbranchimage?language=objc @@ -172,17 +172,17 @@ func BrowserCell_HighlightedBranchImage() Image { return BrowserCellClass.HighlightedBranchImage() } -// A Boolean that indicates whether the browser cell is a leaf or a branch cell. [Full Topic] +// Returns the default image for branch cells in a browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435771-leaf?language=objc -func (b_ BrowserCell) IsLeaf() bool { - rv := objc.Call[bool](b_, objc.Sel("isLeaf")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435775-branchimage?language=objc +func (bc _BrowserCellClass) BranchImage() Image { + rv := objc.Call[Image](bc, objc.Sel("branchImage")) return rv } -// A Boolean that indicates whether the browser cell is a leaf or a branch cell. [Full Topic] +// Returns the default image for branch cells in a browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435771-leaf?language=objc -func (b_ BrowserCell) SetLeaf(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setLeaf:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435775-branchimage?language=objc +func BrowserCell_BranchImage() Image { + return BrowserCellClass.BranchImage() } diff --git a/macos/appkit/browser_delegate.gen.go b/macos/appkit/browser_delegate.gen.go index 2e397cec..cf7d801a 100644 --- a/macos/appkit/browser_delegate.gen.go +++ b/macos/appkit/browser_delegate.gen.go @@ -11,685 +11,86 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate?language=objc type PBrowserDelegate interface { - // optional - BrowserNumberOfChildrenOfItem(browser Browser, item objc.Object) int - HasBrowserNumberOfChildrenOfItem() bool - - // optional - BrowserTitleOfColumn(sender Browser, column int) string - HasBrowserTitleOfColumn() bool - - // optional - BrowserHeightOfRowInColumn(browser Browser, row int, columnIndex int) float64 - HasBrowserHeightOfRowInColumn() bool - - // optional - BrowserNumberOfRowsInColumn(sender Browser, column int) int - HasBrowserNumberOfRowsInColumn() bool - - // optional - BrowserDidChangeLastColumnToColumn(browser Browser, oldLastColumn int, column int) - HasBrowserDidChangeLastColumnToColumn() bool - - // optional - BrowserTypeSelectStringForRowInColumn(browser Browser, row int, column int) string - HasBrowserTypeSelectStringForRowInColumn() bool - - // optional - BrowserAcceptDropAtRowColumnDropOperation(browser Browser, info DraggingInfoObject, row int, column int, dropOperation BrowserDropOperation) bool - HasBrowserAcceptDropAtRowColumnDropOperation() bool - - // optional - BrowserHeaderViewControllerForItem(browser Browser, item objc.Object) ViewController - HasBrowserHeaderViewControllerForItem() bool - - // optional - BrowserCanDragRowsWithIndexesInColumnWithEvent(browser Browser, rowIndexes foundation.IndexSet, column int, event Event) bool - HasBrowserCanDragRowsWithIndexesInColumnWithEvent() bool - - // optional - BrowserNextTypeSelectMatchFromRowToRowInColumnForString(browser Browser, startRow int, endRow int, column int, searchString string) int - HasBrowserNextTypeSelectMatchFromRowToRowInColumnForString() bool - - // optional - BrowserSizeToFitWidthOfColumn(browser Browser, columnIndex int) float64 - HasBrowserSizeToFitWidthOfColumn() bool - - // optional - BrowserDidScroll(sender Browser) - HasBrowserDidScroll() bool - - // optional - RootItemForBrowser(browser Browser) objc.Object - HasRootItemForBrowser() bool - - // optional - BrowserIsColumnValid(sender Browser, column int) bool - HasBrowserIsColumnValid() bool - - // optional - BrowserIsLeafItem(browser Browser, item objc.Object) bool - HasBrowserIsLeafItem() bool - - // optional - BrowserShouldSizeColumnForUserResizeToWidth(browser Browser, columnIndex int, forUserResize bool, suggestedWidth float64) float64 - HasBrowserShouldSizeColumnForUserResizeToWidth() bool - // optional BrowserColumnConfigurationDidChange(notification foundation.Notification) HasBrowserColumnConfigurationDidChange() bool // optional - BrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset(browser Browser, rowIndexes foundation.IndexSet, column int, event Event, dragImageOffset foundation.PointPointer) Image - HasBrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset() bool - - // optional - BrowserChildOfItem(browser Browser, index int, item objc.Object) objc.Object - HasBrowserChildOfItem() bool - - // optional - BrowserShouldEditItem(browser Browser, item objc.Object) bool - HasBrowserShouldEditItem() bool - - // optional - BrowserCreateRowsForColumnInMatrix(sender Browser, column int, matrix Matrix) - HasBrowserCreateRowsForColumnInMatrix() bool - - // optional - BrowserSetObjectValueForItem(browser Browser, object objc.Object, item objc.Object) - HasBrowserSetObjectValueForItem() bool - - // optional - BrowserShouldTypeSelectForEventWithCurrentSearchString(browser Browser, event Event, searchString string) bool - HasBrowserShouldTypeSelectForEventWithCurrentSearchString() bool - - // optional - BrowserPreviewViewControllerForLeafItem(browser Browser, item objc.Object) ViewController - HasBrowserPreviewViewControllerForLeafItem() bool - - // optional - BrowserWillScroll(sender Browser) - HasBrowserWillScroll() bool - - // optional - BrowserShouldShowCellExpansionForRowColumn(browser Browser, row int, column int) bool - HasBrowserShouldShowCellExpansionForRowColumn() bool - - // optional - BrowserWriteRowsWithIndexesInColumnToPasteboard(browser Browser, rowIndexes foundation.IndexSet, column int, pasteboard Pasteboard) bool - HasBrowserWriteRowsWithIndexesInColumnToPasteboard() bool - - // optional - BrowserSelectCellWithStringInColumn(sender Browser, title string, column int) bool - HasBrowserSelectCellWithStringInColumn() bool - - // optional - BrowserWillDisplayCellAtRowColumn(sender Browser, cell objc.Object, row int, column int) - HasBrowserWillDisplayCellAtRowColumn() bool + RootItemForBrowser(browser Browser) objc.Object + HasRootItemForBrowser() bool // optional - BrowserSelectionIndexesForProposedSelectionInColumn(browser Browser, proposedSelectionIndexes foundation.IndexSet, column int) foundation.IndexSet - HasBrowserSelectionIndexesForProposedSelectionInColumn() bool + BrowserDidScroll(sender Browser) + HasBrowserDidScroll() bool // optional BrowserObjectValueForItem(browser Browser, item objc.Object) objc.Object - HasBrowserObjectValueForItem() bool - - // optional - BrowserSelectRowInColumn(sender Browser, row int, column int) bool - HasBrowserSelectRowInColumn() bool - - // optional - BrowserValidateDropProposedRowColumnDropOperation(browser Browser, info DraggingInfoObject, row *int, column *int, dropOperation *BrowserDropOperation) DragOperation - HasBrowserValidateDropProposedRowColumnDropOperation() bool -} - -// A delegate implementation builder for the [PBrowserDelegate] protocol. -type BrowserDelegate struct { - _BrowserNumberOfChildrenOfItem func(browser Browser, item objc.Object) int - _BrowserTitleOfColumn func(sender Browser, column int) string - _BrowserHeightOfRowInColumn func(browser Browser, row int, columnIndex int) float64 - _BrowserNumberOfRowsInColumn func(sender Browser, column int) int - _BrowserDidChangeLastColumnToColumn func(browser Browser, oldLastColumn int, column int) - _BrowserTypeSelectStringForRowInColumn func(browser Browser, row int, column int) string - _BrowserAcceptDropAtRowColumnDropOperation func(browser Browser, info DraggingInfoObject, row int, column int, dropOperation BrowserDropOperation) bool - _BrowserHeaderViewControllerForItem func(browser Browser, item objc.Object) ViewController - _BrowserCanDragRowsWithIndexesInColumnWithEvent func(browser Browser, rowIndexes foundation.IndexSet, column int, event Event) bool - _BrowserNextTypeSelectMatchFromRowToRowInColumnForString func(browser Browser, startRow int, endRow int, column int, searchString string) int - _BrowserSizeToFitWidthOfColumn func(browser Browser, columnIndex int) float64 - _BrowserDidScroll func(sender Browser) - _RootItemForBrowser func(browser Browser) objc.Object - _BrowserIsColumnValid func(sender Browser, column int) bool - _BrowserIsLeafItem func(browser Browser, item objc.Object) bool - _BrowserShouldSizeColumnForUserResizeToWidth func(browser Browser, columnIndex int, forUserResize bool, suggestedWidth float64) float64 - _BrowserColumnConfigurationDidChange func(notification foundation.Notification) - _BrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset func(browser Browser, rowIndexes foundation.IndexSet, column int, event Event, dragImageOffset foundation.PointPointer) Image - _BrowserChildOfItem func(browser Browser, index int, item objc.Object) objc.Object - _BrowserShouldEditItem func(browser Browser, item objc.Object) bool - _BrowserCreateRowsForColumnInMatrix func(sender Browser, column int, matrix Matrix) - _BrowserSetObjectValueForItem func(browser Browser, object objc.Object, item objc.Object) - _BrowserShouldTypeSelectForEventWithCurrentSearchString func(browser Browser, event Event, searchString string) bool - _BrowserPreviewViewControllerForLeafItem func(browser Browser, item objc.Object) ViewController - _BrowserWillScroll func(sender Browser) - _BrowserShouldShowCellExpansionForRowColumn func(browser Browser, row int, column int) bool - _BrowserWriteRowsWithIndexesInColumnToPasteboard func(browser Browser, rowIndexes foundation.IndexSet, column int, pasteboard Pasteboard) bool - _BrowserSelectCellWithStringInColumn func(sender Browser, title string, column int) bool - _BrowserWillDisplayCellAtRowColumn func(sender Browser, cell objc.Object, row int, column int) - _BrowserSelectionIndexesForProposedSelectionInColumn func(browser Browser, proposedSelectionIndexes foundation.IndexSet, column int) foundation.IndexSet - _BrowserObjectValueForItem func(browser Browser, item objc.Object) objc.Object - _BrowserSelectRowInColumn func(sender Browser, row int, column int) bool - _BrowserValidateDropProposedRowColumnDropOperation func(browser Browser, info DraggingInfoObject, row *int, column *int, dropOperation *BrowserDropOperation) DragOperation -} - -func (di *BrowserDelegate) HasBrowserNumberOfChildrenOfItem() bool { - return di._BrowserNumberOfChildrenOfItem != nil -} - -// Asks the delegate for the number of children the given item has. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407755-browser?language=objc -func (di *BrowserDelegate) SetBrowserNumberOfChildrenOfItem(f func(browser Browser, item objc.Object) int) { - di._BrowserNumberOfChildrenOfItem = f -} - -// Asks the delegate for the number of children the given item has. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407755-browser?language=objc -func (di *BrowserDelegate) BrowserNumberOfChildrenOfItem(browser Browser, item objc.Object) int { - return di._BrowserNumberOfChildrenOfItem(browser, item) -} -func (di *BrowserDelegate) HasBrowserTitleOfColumn() bool { - return di._BrowserTitleOfColumn != nil -} - -// Asks the delegate for the title to display above the specified column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407677-browser?language=objc -func (di *BrowserDelegate) SetBrowserTitleOfColumn(f func(sender Browser, column int) string) { - di._BrowserTitleOfColumn = f -} - -// Asks the delegate for the title to display above the specified column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407677-browser?language=objc -func (di *BrowserDelegate) BrowserTitleOfColumn(sender Browser, column int) string { - return di._BrowserTitleOfColumn(sender, column) -} -func (di *BrowserDelegate) HasBrowserHeightOfRowInColumn() bool { - return di._BrowserHeightOfRowInColumn != nil -} - -// Specifies the height of the specified row in the specified column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407646-browser?language=objc -func (di *BrowserDelegate) SetBrowserHeightOfRowInColumn(f func(browser Browser, row int, columnIndex int) float64) { - di._BrowserHeightOfRowInColumn = f -} - -// Specifies the height of the specified row in the specified column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407646-browser?language=objc -func (di *BrowserDelegate) BrowserHeightOfRowInColumn(browser Browser, row int, columnIndex int) float64 { - return di._BrowserHeightOfRowInColumn(browser, row, columnIndex) -} -func (di *BrowserDelegate) HasBrowserNumberOfRowsInColumn() bool { - return di._BrowserNumberOfRowsInColumn != nil -} - -// Returns the number of rows of data in the specified column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407583-browser?language=objc -func (di *BrowserDelegate) SetBrowserNumberOfRowsInColumn(f func(sender Browser, column int) int) { - di._BrowserNumberOfRowsInColumn = f -} - -// Returns the number of rows of data in the specified column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407583-browser?language=objc -func (di *BrowserDelegate) BrowserNumberOfRowsInColumn(sender Browser, column int) int { - return di._BrowserNumberOfRowsInColumn(sender, column) -} -func (di *BrowserDelegate) HasBrowserDidChangeLastColumnToColumn() bool { - return di._BrowserDidChangeLastColumnToColumn != nil -} - -// Tells the delegate that the browser’s last column changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407612-browser?language=objc -func (di *BrowserDelegate) SetBrowserDidChangeLastColumnToColumn(f func(browser Browser, oldLastColumn int, column int)) { - di._BrowserDidChangeLastColumnToColumn = f -} - -// Tells the delegate that the browser’s last column changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407612-browser?language=objc -func (di *BrowserDelegate) BrowserDidChangeLastColumnToColumn(browser Browser, oldLastColumn int, column int) { - di._BrowserDidChangeLastColumnToColumn(browser, oldLastColumn, column) -} -func (di *BrowserDelegate) HasBrowserTypeSelectStringForRowInColumn() bool { - return di._BrowserTypeSelectStringForRowInColumn != nil -} - -// Sent to the delegate to get the keyboard-based selection (type select) string for the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407762-browser?language=objc -func (di *BrowserDelegate) SetBrowserTypeSelectStringForRowInColumn(f func(browser Browser, row int, column int) string) { - di._BrowserTypeSelectStringForRowInColumn = f -} - -// Sent to the delegate to get the keyboard-based selection (type select) string for the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407762-browser?language=objc -func (di *BrowserDelegate) BrowserTypeSelectStringForRowInColumn(browser Browser, row int, column int) string { - return di._BrowserTypeSelectStringForRowInColumn(browser, row, column) -} -func (di *BrowserDelegate) HasBrowserAcceptDropAtRowColumnDropOperation() bool { - return di._BrowserAcceptDropAtRowColumnDropOperation != nil -} - -// Sent to the delegate during a dragging session to determine whether to accept the drop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407737-browser?language=objc -func (di *BrowserDelegate) SetBrowserAcceptDropAtRowColumnDropOperation(f func(browser Browser, info DraggingInfoObject, row int, column int, dropOperation BrowserDropOperation) bool) { - di._BrowserAcceptDropAtRowColumnDropOperation = f -} - -// Sent to the delegate during a dragging session to determine whether to accept the drop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407737-browser?language=objc -func (di *BrowserDelegate) BrowserAcceptDropAtRowColumnDropOperation(browser Browser, info DraggingInfoObject, row int, column int, dropOperation BrowserDropOperation) bool { - return di._BrowserAcceptDropAtRowColumnDropOperation(browser, info, row, column, dropOperation) -} -func (di *BrowserDelegate) HasBrowserHeaderViewControllerForItem() bool { - return di._BrowserHeaderViewControllerForItem != nil -} - -// Asks the delegate for a controller that provides a header view for the specified column item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407782-browser?language=objc -func (di *BrowserDelegate) SetBrowserHeaderViewControllerForItem(f func(browser Browser, item objc.Object) ViewController) { - di._BrowserHeaderViewControllerForItem = f -} - -// Asks the delegate for a controller that provides a header view for the specified column item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407782-browser?language=objc -func (di *BrowserDelegate) BrowserHeaderViewControllerForItem(browser Browser, item objc.Object) ViewController { - return di._BrowserHeaderViewControllerForItem(browser, item) -} -func (di *BrowserDelegate) HasBrowserCanDragRowsWithIndexesInColumnWithEvent() bool { - return di._BrowserCanDragRowsWithIndexesInColumnWithEvent != nil -} - -// Sent to the delegate to determine whether the browser can attempt to initiate a drag of the specified rows for the specified event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407768-browser?language=objc -func (di *BrowserDelegate) SetBrowserCanDragRowsWithIndexesInColumnWithEvent(f func(browser Browser, rowIndexes foundation.IndexSet, column int, event Event) bool) { - di._BrowserCanDragRowsWithIndexesInColumnWithEvent = f -} - -// Sent to the delegate to determine whether the browser can attempt to initiate a drag of the specified rows for the specified event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407768-browser?language=objc -func (di *BrowserDelegate) BrowserCanDragRowsWithIndexesInColumnWithEvent(browser Browser, rowIndexes foundation.IndexSet, column int, event Event) bool { - return di._BrowserCanDragRowsWithIndexesInColumnWithEvent(browser, rowIndexes, column, event) -} -func (di *BrowserDelegate) HasBrowserNextTypeSelectMatchFromRowToRowInColumnForString() bool { - return di._BrowserNextTypeSelectMatchFromRowToRowInColumnForString != nil -} - -// Sent to the delegate to customize a browser’s keyboard-based selection (type select) behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407553-browser?language=objc -func (di *BrowserDelegate) SetBrowserNextTypeSelectMatchFromRowToRowInColumnForString(f func(browser Browser, startRow int, endRow int, column int, searchString string) int) { - di._BrowserNextTypeSelectMatchFromRowToRowInColumnForString = f -} - -// Sent to the delegate to customize a browser’s keyboard-based selection (type select) behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407553-browser?language=objc -func (di *BrowserDelegate) BrowserNextTypeSelectMatchFromRowToRowInColumnForString(browser Browser, startRow int, endRow int, column int, searchString string) int { - return di._BrowserNextTypeSelectMatchFromRowToRowInColumnForString(browser, startRow, endRow, column, searchString) -} -func (di *BrowserDelegate) HasBrowserSizeToFitWidthOfColumn() bool { - return di._BrowserSizeToFitWidthOfColumn != nil -} - -// Returns the ideal width for a column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407524-browser?language=objc -func (di *BrowserDelegate) SetBrowserSizeToFitWidthOfColumn(f func(browser Browser, columnIndex int) float64) { - di._BrowserSizeToFitWidthOfColumn = f -} - -// Returns the ideal width for a column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407524-browser?language=objc -func (di *BrowserDelegate) BrowserSizeToFitWidthOfColumn(browser Browser, columnIndex int) float64 { - return di._BrowserSizeToFitWidthOfColumn(browser, columnIndex) -} -func (di *BrowserDelegate) HasBrowserDidScroll() bool { - return di._BrowserDidScroll != nil -} - -// Notifies the delegate when the browser has scrolled. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407566-browserdidscroll?language=objc -func (di *BrowserDelegate) SetBrowserDidScroll(f func(sender Browser)) { - di._BrowserDidScroll = f -} - -// Notifies the delegate when the browser has scrolled. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407566-browserdidscroll?language=objc -func (di *BrowserDelegate) BrowserDidScroll(sender Browser) { - di._BrowserDidScroll(sender) -} -func (di *BrowserDelegate) HasRootItemForBrowser() bool { - return di._RootItemForBrowser != nil -} - -// Asks the delegate to return the root item of the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407526-rootitemforbrowser?language=objc -func (di *BrowserDelegate) SetRootItemForBrowser(f func(browser Browser) objc.Object) { - di._RootItemForBrowser = f -} - -// Asks the delegate to return the root item of the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407526-rootitemforbrowser?language=objc -func (di *BrowserDelegate) RootItemForBrowser(browser Browser) objc.Object { - return di._RootItemForBrowser(browser) -} -func (di *BrowserDelegate) HasBrowserIsColumnValid() bool { - return di._BrowserIsColumnValid != nil -} - -// Returns whether the contents of the specified column are valid. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407540-browser?language=objc -func (di *BrowserDelegate) SetBrowserIsColumnValid(f func(sender Browser, column int) bool) { - di._BrowserIsColumnValid = f -} - -// Returns whether the contents of the specified column are valid. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407540-browser?language=objc -func (di *BrowserDelegate) BrowserIsColumnValid(sender Browser, column int) bool { - return di._BrowserIsColumnValid(sender, column) -} -func (di *BrowserDelegate) HasBrowserIsLeafItem() bool { - return di._BrowserIsLeafItem != nil -} - -// Asks the delegate whether the specified item is a leaf item (an item that cannot be expanded). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407786-browser?language=objc -func (di *BrowserDelegate) SetBrowserIsLeafItem(f func(browser Browser, item objc.Object) bool) { - di._BrowserIsLeafItem = f -} - -// Asks the delegate whether the specified item is a leaf item (an item that cannot be expanded). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407786-browser?language=objc -func (di *BrowserDelegate) BrowserIsLeafItem(browser Browser, item objc.Object) bool { - return di._BrowserIsLeafItem(browser, item) -} -func (di *BrowserDelegate) HasBrowserShouldSizeColumnForUserResizeToWidth() bool { - return di._BrowserShouldSizeColumnForUserResizeToWidth != nil -} - -// Used to determine a column’s initial size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407557-browser?language=objc -func (di *BrowserDelegate) SetBrowserShouldSizeColumnForUserResizeToWidth(f func(browser Browser, columnIndex int, forUserResize bool, suggestedWidth float64) float64) { - di._BrowserShouldSizeColumnForUserResizeToWidth = f -} - -// Used to determine a column’s initial size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407557-browser?language=objc -func (di *BrowserDelegate) BrowserShouldSizeColumnForUserResizeToWidth(browser Browser, columnIndex int, forUserResize bool, suggestedWidth float64) float64 { - return di._BrowserShouldSizeColumnForUserResizeToWidth(browser, columnIndex, forUserResize, suggestedWidth) -} -func (di *BrowserDelegate) HasBrowserColumnConfigurationDidChange() bool { - return di._BrowserColumnConfigurationDidChange != nil -} - -// Used by clients to implement their own column width persistence. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407542-browsercolumnconfigurationdidcha?language=objc -func (di *BrowserDelegate) SetBrowserColumnConfigurationDidChange(f func(notification foundation.Notification)) { - di._BrowserColumnConfigurationDidChange = f -} - -// Used by clients to implement their own column width persistence. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407542-browsercolumnconfigurationdidcha?language=objc -func (di *BrowserDelegate) BrowserColumnConfigurationDidChange(notification foundation.Notification) { - di._BrowserColumnConfigurationDidChange(notification) -} -func (di *BrowserDelegate) HasBrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset() bool { - return di._BrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset != nil -} - -// Sent to the delegate to obtain an image to represent dragged rows during a drag operation on a browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407598-browser?language=objc -func (di *BrowserDelegate) SetBrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset(f func(browser Browser, rowIndexes foundation.IndexSet, column int, event Event, dragImageOffset foundation.PointPointer) Image) { - di._BrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset = f -} - -// Sent to the delegate to obtain an image to represent dragged rows during a drag operation on a browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407598-browser?language=objc -func (di *BrowserDelegate) BrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset(browser Browser, rowIndexes foundation.IndexSet, column int, event Event, dragImageOffset foundation.PointPointer) Image { - return di._BrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset(browser, rowIndexes, column, event, dragImageOffset) -} -func (di *BrowserDelegate) HasBrowserChildOfItem() bool { - return di._BrowserChildOfItem != nil -} - -// Asks the delegate to return the child of the specified item at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407572-browser?language=objc -func (di *BrowserDelegate) SetBrowserChildOfItem(f func(browser Browser, index int, item objc.Object) objc.Object) { - di._BrowserChildOfItem = f -} - -// Asks the delegate to return the child of the specified item at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407572-browser?language=objc -func (di *BrowserDelegate) BrowserChildOfItem(browser Browser, index int, item objc.Object) objc.Object { - return di._BrowserChildOfItem(browser, index, item) -} -func (di *BrowserDelegate) HasBrowserShouldEditItem() bool { - return di._BrowserShouldEditItem != nil -} - -// Asks the delegate whether the browser may start an editing session for the specified item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407634-browser?language=objc -func (di *BrowserDelegate) SetBrowserShouldEditItem(f func(browser Browser, item objc.Object) bool) { - di._BrowserShouldEditItem = f -} - -// Asks the delegate whether the browser may start an editing session for the specified item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407634-browser?language=objc -func (di *BrowserDelegate) BrowserShouldEditItem(browser Browser, item objc.Object) bool { - return di._BrowserShouldEditItem(browser, item) -} -func (di *BrowserDelegate) HasBrowserCreateRowsForColumnInMatrix() bool { - return di._BrowserCreateRowsForColumnInMatrix != nil -} - -// Creates a row in the given matrix for each row of data in the specified column of the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407666-browser?language=objc -func (di *BrowserDelegate) SetBrowserCreateRowsForColumnInMatrix(f func(sender Browser, column int, matrix Matrix)) { - di._BrowserCreateRowsForColumnInMatrix = f -} - -// Creates a row in the given matrix for each row of data in the specified column of the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407666-browser?language=objc -func (di *BrowserDelegate) BrowserCreateRowsForColumnInMatrix(sender Browser, column int, matrix Matrix) { - di._BrowserCreateRowsForColumnInMatrix(sender, column, matrix) -} -func (di *BrowserDelegate) HasBrowserSetObjectValueForItem() bool { - return di._BrowserSetObjectValueForItem != nil -} - -// Sets the object that the specified item uses to draw its contents to the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407756-browser?language=objc -func (di *BrowserDelegate) SetBrowserSetObjectValueForItem(f func(browser Browser, object objc.Object, item objc.Object)) { - di._BrowserSetObjectValueForItem = f -} - -// Sets the object that the specified item uses to draw its contents to the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407756-browser?language=objc -func (di *BrowserDelegate) BrowserSetObjectValueForItem(browser Browser, object objc.Object, item objc.Object) { - di._BrowserSetObjectValueForItem(browser, object, item) -} -func (di *BrowserDelegate) HasBrowserShouldTypeSelectForEventWithCurrentSearchString() bool { - return di._BrowserShouldTypeSelectForEventWithCurrentSearchString != nil -} - -// Sent to the delegate to determine whether keyboard-based selection (type select) for a given event and search string should proceed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407804-browser?language=objc -func (di *BrowserDelegate) SetBrowserShouldTypeSelectForEventWithCurrentSearchString(f func(browser Browser, event Event, searchString string) bool) { - di._BrowserShouldTypeSelectForEventWithCurrentSearchString = f -} - -// Sent to the delegate to determine whether keyboard-based selection (type select) for a given event and search string should proceed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407804-browser?language=objc -func (di *BrowserDelegate) BrowserShouldTypeSelectForEventWithCurrentSearchString(browser Browser, event Event, searchString string) bool { - return di._BrowserShouldTypeSelectForEventWithCurrentSearchString(browser, event, searchString) -} -func (di *BrowserDelegate) HasBrowserPreviewViewControllerForLeafItem() bool { - return di._BrowserPreviewViewControllerForLeafItem != nil -} - -// Asks the delegate for a controller that provides a preview column for the specified leaf item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407772-browser?language=objc -func (di *BrowserDelegate) SetBrowserPreviewViewControllerForLeafItem(f func(browser Browser, item objc.Object) ViewController) { - di._BrowserPreviewViewControllerForLeafItem = f -} - -// Asks the delegate for a controller that provides a preview column for the specified leaf item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407772-browser?language=objc -func (di *BrowserDelegate) BrowserPreviewViewControllerForLeafItem(browser Browser, item objc.Object) ViewController { - return di._BrowserPreviewViewControllerForLeafItem(browser, item) -} -func (di *BrowserDelegate) HasBrowserWillScroll() bool { - return di._BrowserWillScroll != nil -} - -// Notifies the delegate when the browser will scroll. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407721-browserwillscroll?language=objc -func (di *BrowserDelegate) SetBrowserWillScroll(f func(sender Browser)) { - di._BrowserWillScroll = f -} - -// Notifies the delegate when the browser will scroll. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407721-browserwillscroll?language=objc -func (di *BrowserDelegate) BrowserWillScroll(sender Browser) { - di._BrowserWillScroll(sender) -} -func (di *BrowserDelegate) HasBrowserShouldShowCellExpansionForRowColumn() bool { - return di._BrowserShouldShowCellExpansionForRowColumn != nil -} - -// Invoked to allow the delegate to control cell expansion for a specific row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407602-browser?language=objc -func (di *BrowserDelegate) SetBrowserShouldShowCellExpansionForRowColumn(f func(browser Browser, row int, column int) bool) { - di._BrowserShouldShowCellExpansionForRowColumn = f -} - -// Invoked to allow the delegate to control cell expansion for a specific row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407602-browser?language=objc -func (di *BrowserDelegate) BrowserShouldShowCellExpansionForRowColumn(browser Browser, row int, column int) bool { - return di._BrowserShouldShowCellExpansionForRowColumn(browser, row, column) -} -func (di *BrowserDelegate) HasBrowserWriteRowsWithIndexesInColumnToPasteboard() bool { - return di._BrowserWriteRowsWithIndexesInColumnToPasteboard != nil -} + HasBrowserObjectValueForItem() bool -// Determines whether a drag operation can proceed. This method is required for a browser to be a drag source. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407657-browser?language=objc -func (di *BrowserDelegate) SetBrowserWriteRowsWithIndexesInColumnToPasteboard(f func(browser Browser, rowIndexes foundation.IndexSet, column int, pasteboard Pasteboard) bool) { - di._BrowserWriteRowsWithIndexesInColumnToPasteboard = f + // optional + BrowserWillScroll(sender Browser) + HasBrowserWillScroll() bool } -// Determines whether a drag operation can proceed. This method is required for a browser to be a drag source. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407657-browser?language=objc -func (di *BrowserDelegate) BrowserWriteRowsWithIndexesInColumnToPasteboard(browser Browser, rowIndexes foundation.IndexSet, column int, pasteboard Pasteboard) bool { - return di._BrowserWriteRowsWithIndexesInColumnToPasteboard(browser, rowIndexes, column, pasteboard) +// A delegate implementation builder for the [PBrowserDelegate] protocol. +type BrowserDelegate struct { + _BrowserColumnConfigurationDidChange func(notification foundation.Notification) + _RootItemForBrowser func(browser Browser) objc.Object + _BrowserDidScroll func(sender Browser) + _BrowserObjectValueForItem func(browser Browser, item objc.Object) objc.Object + _BrowserWillScroll func(sender Browser) } -func (di *BrowserDelegate) HasBrowserSelectCellWithStringInColumn() bool { - return di._BrowserSelectCellWithStringInColumn != nil + +func (di *BrowserDelegate) HasBrowserColumnConfigurationDidChange() bool { + return di._BrowserColumnConfigurationDidChange != nil } -// Asks the delegate to select the cell with the given title in the specified column. [Full Topic] +// Used by clients to implement their own column width persistence. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407548-browser?language=objc -func (di *BrowserDelegate) SetBrowserSelectCellWithStringInColumn(f func(sender Browser, title string, column int) bool) { - di._BrowserSelectCellWithStringInColumn = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407542-browsercolumnconfigurationdidcha?language=objc +func (di *BrowserDelegate) SetBrowserColumnConfigurationDidChange(f func(notification foundation.Notification)) { + di._BrowserColumnConfigurationDidChange = f } -// Asks the delegate to select the cell with the given title in the specified column. [Full Topic] +// Used by clients to implement their own column width persistence. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407548-browser?language=objc -func (di *BrowserDelegate) BrowserSelectCellWithStringInColumn(sender Browser, title string, column int) bool { - return di._BrowserSelectCellWithStringInColumn(sender, title, column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407542-browsercolumnconfigurationdidcha?language=objc +func (di *BrowserDelegate) BrowserColumnConfigurationDidChange(notification foundation.Notification) { + di._BrowserColumnConfigurationDidChange(notification) } -func (di *BrowserDelegate) HasBrowserWillDisplayCellAtRowColumn() bool { - return di._BrowserWillDisplayCellAtRowColumn != nil +func (di *BrowserDelegate) HasRootItemForBrowser() bool { + return di._RootItemForBrowser != nil } -// Gives the delegate the opportunity to modify the specified cell at the given row and column location before the browser displays it. [Full Topic] +// Asks the delegate to return the root item of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407705-browser?language=objc -func (di *BrowserDelegate) SetBrowserWillDisplayCellAtRowColumn(f func(sender Browser, cell objc.Object, row int, column int)) { - di._BrowserWillDisplayCellAtRowColumn = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407526-rootitemforbrowser?language=objc +func (di *BrowserDelegate) SetRootItemForBrowser(f func(browser Browser) objc.Object) { + di._RootItemForBrowser = f } -// Gives the delegate the opportunity to modify the specified cell at the given row and column location before the browser displays it. [Full Topic] +// Asks the delegate to return the root item of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407705-browser?language=objc -func (di *BrowserDelegate) BrowserWillDisplayCellAtRowColumn(sender Browser, cell objc.Object, row int, column int) { - di._BrowserWillDisplayCellAtRowColumn(sender, cell, row, column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407526-rootitemforbrowser?language=objc +func (di *BrowserDelegate) RootItemForBrowser(browser Browser) objc.Object { + return di._RootItemForBrowser(browser) } -func (di *BrowserDelegate) HasBrowserSelectionIndexesForProposedSelectionInColumn() bool { - return di._BrowserSelectionIndexesForProposedSelectionInColumn != nil +func (di *BrowserDelegate) HasBrowserDidScroll() bool { + return di._BrowserDidScroll != nil } -// Asks the delegate for a set of indexes to select when the user changes the selection in the browser with the keyboard or mouse. [Full Topic] +// Notifies the delegate when the browser has scrolled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407660-browser?language=objc -func (di *BrowserDelegate) SetBrowserSelectionIndexesForProposedSelectionInColumn(f func(browser Browser, proposedSelectionIndexes foundation.IndexSet, column int) foundation.IndexSet) { - di._BrowserSelectionIndexesForProposedSelectionInColumn = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407566-browserdidscroll?language=objc +func (di *BrowserDelegate) SetBrowserDidScroll(f func(sender Browser)) { + di._BrowserDidScroll = f } -// Asks the delegate for a set of indexes to select when the user changes the selection in the browser with the keyboard or mouse. [Full Topic] +// Notifies the delegate when the browser has scrolled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407660-browser?language=objc -func (di *BrowserDelegate) BrowserSelectionIndexesForProposedSelectionInColumn(browser Browser, proposedSelectionIndexes foundation.IndexSet, column int) foundation.IndexSet { - return di._BrowserSelectionIndexesForProposedSelectionInColumn(browser, proposedSelectionIndexes, column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407566-browserdidscroll?language=objc +func (di *BrowserDelegate) BrowserDidScroll(sender Browser) { + di._BrowserDidScroll(sender) } func (di *BrowserDelegate) HasBrowserObjectValueForItem() bool { return di._BrowserObjectValueForItem != nil @@ -708,39 +109,22 @@ func (di *BrowserDelegate) SetBrowserObjectValueForItem(f func(browser Browser, func (di *BrowserDelegate) BrowserObjectValueForItem(browser Browser, item objc.Object) objc.Object { return di._BrowserObjectValueForItem(browser, item) } -func (di *BrowserDelegate) HasBrowserSelectRowInColumn() bool { - return di._BrowserSelectRowInColumn != nil -} - -// Asks the delegate to select the cell at the specified row and column location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407802-browser?language=objc -func (di *BrowserDelegate) SetBrowserSelectRowInColumn(f func(sender Browser, row int, column int) bool) { - di._BrowserSelectRowInColumn = f -} - -// Asks the delegate to select the cell at the specified row and column location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407802-browser?language=objc -func (di *BrowserDelegate) BrowserSelectRowInColumn(sender Browser, row int, column int) bool { - return di._BrowserSelectRowInColumn(sender, row, column) -} -func (di *BrowserDelegate) HasBrowserValidateDropProposedRowColumnDropOperation() bool { - return di._BrowserValidateDropProposedRowColumnDropOperation != nil +func (di *BrowserDelegate) HasBrowserWillScroll() bool { + return di._BrowserWillScroll != nil } -// Sent to the delegate during a dragging session to determine whether a drop should be accepted and to obtain the drop location. This method is required for a browser to be a drag destination. [Full Topic] +// Notifies the delegate when the browser will scroll. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407766-browser?language=objc -func (di *BrowserDelegate) SetBrowserValidateDropProposedRowColumnDropOperation(f func(browser Browser, info DraggingInfoObject, row *int, column *int, dropOperation *BrowserDropOperation) DragOperation) { - di._BrowserValidateDropProposedRowColumnDropOperation = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407721-browserwillscroll?language=objc +func (di *BrowserDelegate) SetBrowserWillScroll(f func(sender Browser)) { + di._BrowserWillScroll = f } -// Sent to the delegate during a dragging session to determine whether a drop should be accepted and to obtain the drop location. This method is required for a browser to be a drag destination. [Full Topic] +// Notifies the delegate when the browser will scroll. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407766-browser?language=objc -func (di *BrowserDelegate) BrowserValidateDropProposedRowColumnDropOperation(browser Browser, info DraggingInfoObject, row *int, column *int, dropOperation *BrowserDropOperation) DragOperation { - return di._BrowserValidateDropProposedRowColumnDropOperation(browser, info, row, column, dropOperation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407721-browserwillscroll?language=objc +func (di *BrowserDelegate) BrowserWillScroll(sender Browser) { + di._BrowserWillScroll(sender) } // ensure impl type implements protocol interface @@ -751,197 +135,6 @@ type BrowserDelegateObject struct { objc.Object } -func (b_ BrowserDelegateObject) HasBrowserNumberOfChildrenOfItem() bool { - return b_.RespondsToSelector(objc.Sel("browser:numberOfChildrenOfItem:")) -} - -// Asks the delegate for the number of children the given item has. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407755-browser?language=objc -func (b_ BrowserDelegateObject) BrowserNumberOfChildrenOfItem(browser Browser, item objc.Object) int { - rv := objc.Call[int](b_, objc.Sel("browser:numberOfChildrenOfItem:"), browser, item) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserTitleOfColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:titleOfColumn:")) -} - -// Asks the delegate for the title to display above the specified column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407677-browser?language=objc -func (b_ BrowserDelegateObject) BrowserTitleOfColumn(sender Browser, column int) string { - rv := objc.Call[string](b_, objc.Sel("browser:titleOfColumn:"), sender, column) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserHeightOfRowInColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:heightOfRow:inColumn:")) -} - -// Specifies the height of the specified row in the specified column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407646-browser?language=objc -func (b_ BrowserDelegateObject) BrowserHeightOfRowInColumn(browser Browser, row int, columnIndex int) float64 { - rv := objc.Call[float64](b_, objc.Sel("browser:heightOfRow:inColumn:"), browser, row, columnIndex) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserNumberOfRowsInColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:numberOfRowsInColumn:")) -} - -// Returns the number of rows of data in the specified column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407583-browser?language=objc -func (b_ BrowserDelegateObject) BrowserNumberOfRowsInColumn(sender Browser, column int) int { - rv := objc.Call[int](b_, objc.Sel("browser:numberOfRowsInColumn:"), sender, column) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserDidChangeLastColumnToColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:didChangeLastColumn:toColumn:")) -} - -// Tells the delegate that the browser’s last column changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407612-browser?language=objc -func (b_ BrowserDelegateObject) BrowserDidChangeLastColumnToColumn(browser Browser, oldLastColumn int, column int) { - objc.Call[objc.Void](b_, objc.Sel("browser:didChangeLastColumn:toColumn:"), browser, oldLastColumn, column) -} - -func (b_ BrowserDelegateObject) HasBrowserTypeSelectStringForRowInColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:typeSelectStringForRow:inColumn:")) -} - -// Sent to the delegate to get the keyboard-based selection (type select) string for the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407762-browser?language=objc -func (b_ BrowserDelegateObject) BrowserTypeSelectStringForRowInColumn(browser Browser, row int, column int) string { - rv := objc.Call[string](b_, objc.Sel("browser:typeSelectStringForRow:inColumn:"), browser, row, column) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserAcceptDropAtRowColumnDropOperation() bool { - return b_.RespondsToSelector(objc.Sel("browser:acceptDrop:atRow:column:dropOperation:")) -} - -// Sent to the delegate during a dragging session to determine whether to accept the drop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407737-browser?language=objc -func (b_ BrowserDelegateObject) BrowserAcceptDropAtRowColumnDropOperation(browser Browser, info DraggingInfoObject, row int, column int, dropOperation BrowserDropOperation) bool { - po1 := objc.WrapAsProtocol("NSDraggingInfo", info) - rv := objc.Call[bool](b_, objc.Sel("browser:acceptDrop:atRow:column:dropOperation:"), browser, po1, row, column, dropOperation) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserHeaderViewControllerForItem() bool { - return b_.RespondsToSelector(objc.Sel("browser:headerViewControllerForItem:")) -} - -// Asks the delegate for a controller that provides a header view for the specified column item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407782-browser?language=objc -func (b_ BrowserDelegateObject) BrowserHeaderViewControllerForItem(browser Browser, item objc.Object) ViewController { - rv := objc.Call[ViewController](b_, objc.Sel("browser:headerViewControllerForItem:"), browser, item) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserCanDragRowsWithIndexesInColumnWithEvent() bool { - return b_.RespondsToSelector(objc.Sel("browser:canDragRowsWithIndexes:inColumn:withEvent:")) -} - -// Sent to the delegate to determine whether the browser can attempt to initiate a drag of the specified rows for the specified event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407768-browser?language=objc -func (b_ BrowserDelegateObject) BrowserCanDragRowsWithIndexesInColumnWithEvent(browser Browser, rowIndexes foundation.IndexSet, column int, event Event) bool { - rv := objc.Call[bool](b_, objc.Sel("browser:canDragRowsWithIndexes:inColumn:withEvent:"), browser, rowIndexes, column, event) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserNextTypeSelectMatchFromRowToRowInColumnForString() bool { - return b_.RespondsToSelector(objc.Sel("browser:nextTypeSelectMatchFromRow:toRow:inColumn:forString:")) -} - -// Sent to the delegate to customize a browser’s keyboard-based selection (type select) behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407553-browser?language=objc -func (b_ BrowserDelegateObject) BrowserNextTypeSelectMatchFromRowToRowInColumnForString(browser Browser, startRow int, endRow int, column int, searchString string) int { - rv := objc.Call[int](b_, objc.Sel("browser:nextTypeSelectMatchFromRow:toRow:inColumn:forString:"), browser, startRow, endRow, column, searchString) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserSizeToFitWidthOfColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:sizeToFitWidthOfColumn:")) -} - -// Returns the ideal width for a column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407524-browser?language=objc -func (b_ BrowserDelegateObject) BrowserSizeToFitWidthOfColumn(browser Browser, columnIndex int) float64 { - rv := objc.Call[float64](b_, objc.Sel("browser:sizeToFitWidthOfColumn:"), browser, columnIndex) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserDidScroll() bool { - return b_.RespondsToSelector(objc.Sel("browserDidScroll:")) -} - -// Notifies the delegate when the browser has scrolled. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407566-browserdidscroll?language=objc -func (b_ BrowserDelegateObject) BrowserDidScroll(sender Browser) { - objc.Call[objc.Void](b_, objc.Sel("browserDidScroll:"), sender) -} - -func (b_ BrowserDelegateObject) HasRootItemForBrowser() bool { - return b_.RespondsToSelector(objc.Sel("rootItemForBrowser:")) -} - -// Asks the delegate to return the root item of the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407526-rootitemforbrowser?language=objc -func (b_ BrowserDelegateObject) RootItemForBrowser(browser Browser) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("rootItemForBrowser:"), browser) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserIsColumnValid() bool { - return b_.RespondsToSelector(objc.Sel("browser:isColumnValid:")) -} - -// Returns whether the contents of the specified column are valid. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407540-browser?language=objc -func (b_ BrowserDelegateObject) BrowserIsColumnValid(sender Browser, column int) bool { - rv := objc.Call[bool](b_, objc.Sel("browser:isColumnValid:"), sender, column) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserIsLeafItem() bool { - return b_.RespondsToSelector(objc.Sel("browser:isLeafItem:")) -} - -// Asks the delegate whether the specified item is a leaf item (an item that cannot be expanded). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407786-browser?language=objc -func (b_ BrowserDelegateObject) BrowserIsLeafItem(browser Browser, item objc.Object) bool { - rv := objc.Call[bool](b_, objc.Sel("browser:isLeafItem:"), browser, item) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserShouldSizeColumnForUserResizeToWidth() bool { - return b_.RespondsToSelector(objc.Sel("browser:shouldSizeColumn:forUserResize:toWidth:")) -} - -// Used to determine a column’s initial size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407557-browser?language=objc -func (b_ BrowserDelegateObject) BrowserShouldSizeColumnForUserResizeToWidth(browser Browser, columnIndex int, forUserResize bool, suggestedWidth float64) float64 { - rv := objc.Call[float64](b_, objc.Sel("browser:shouldSizeColumn:forUserResize:toWidth:"), browser, columnIndex, forUserResize, suggestedWidth) - return rv -} - func (b_ BrowserDelegateObject) HasBrowserColumnConfigurationDidChange() bool { return b_.RespondsToSelector(objc.Sel("browserColumnConfigurationDidChange:")) } @@ -953,156 +146,27 @@ func (b_ BrowserDelegateObject) BrowserColumnConfigurationDidChange(notification objc.Call[objc.Void](b_, objc.Sel("browserColumnConfigurationDidChange:"), notification) } -func (b_ BrowserDelegateObject) HasBrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset() bool { - return b_.RespondsToSelector(objc.Sel("browser:draggingImageForRowsWithIndexes:inColumn:withEvent:offset:")) -} - -// Sent to the delegate to obtain an image to represent dragged rows during a drag operation on a browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407598-browser?language=objc -func (b_ BrowserDelegateObject) BrowserDraggingImageForRowsWithIndexesInColumnWithEventOffset(browser Browser, rowIndexes foundation.IndexSet, column int, event Event, dragImageOffset foundation.PointPointer) Image { - rv := objc.Call[Image](b_, objc.Sel("browser:draggingImageForRowsWithIndexes:inColumn:withEvent:offset:"), browser, rowIndexes, column, event, dragImageOffset) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserChildOfItem() bool { - return b_.RespondsToSelector(objc.Sel("browser:child:ofItem:")) -} - -// Asks the delegate to return the child of the specified item at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407572-browser?language=objc -func (b_ BrowserDelegateObject) BrowserChildOfItem(browser Browser, index int, item objc.Object) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("browser:child:ofItem:"), browser, index, item) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserShouldEditItem() bool { - return b_.RespondsToSelector(objc.Sel("browser:shouldEditItem:")) -} - -// Asks the delegate whether the browser may start an editing session for the specified item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407634-browser?language=objc -func (b_ BrowserDelegateObject) BrowserShouldEditItem(browser Browser, item objc.Object) bool { - rv := objc.Call[bool](b_, objc.Sel("browser:shouldEditItem:"), browser, item) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserCreateRowsForColumnInMatrix() bool { - return b_.RespondsToSelector(objc.Sel("browser:createRowsForColumn:inMatrix:")) -} - -// Creates a row in the given matrix for each row of data in the specified column of the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407666-browser?language=objc -func (b_ BrowserDelegateObject) BrowserCreateRowsForColumnInMatrix(sender Browser, column int, matrix Matrix) { - objc.Call[objc.Void](b_, objc.Sel("browser:createRowsForColumn:inMatrix:"), sender, column, matrix) -} - -func (b_ BrowserDelegateObject) HasBrowserSetObjectValueForItem() bool { - return b_.RespondsToSelector(objc.Sel("browser:setObjectValue:forItem:")) -} - -// Sets the object that the specified item uses to draw its contents to the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407756-browser?language=objc -func (b_ BrowserDelegateObject) BrowserSetObjectValueForItem(browser Browser, object objc.Object, item objc.Object) { - objc.Call[objc.Void](b_, objc.Sel("browser:setObjectValue:forItem:"), browser, object, item) -} - -func (b_ BrowserDelegateObject) HasBrowserShouldTypeSelectForEventWithCurrentSearchString() bool { - return b_.RespondsToSelector(objc.Sel("browser:shouldTypeSelectForEvent:withCurrentSearchString:")) -} - -// Sent to the delegate to determine whether keyboard-based selection (type select) for a given event and search string should proceed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407804-browser?language=objc -func (b_ BrowserDelegateObject) BrowserShouldTypeSelectForEventWithCurrentSearchString(browser Browser, event Event, searchString string) bool { - rv := objc.Call[bool](b_, objc.Sel("browser:shouldTypeSelectForEvent:withCurrentSearchString:"), browser, event, searchString) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserPreviewViewControllerForLeafItem() bool { - return b_.RespondsToSelector(objc.Sel("browser:previewViewControllerForLeafItem:")) -} - -// Asks the delegate for a controller that provides a preview column for the specified leaf item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407772-browser?language=objc -func (b_ BrowserDelegateObject) BrowserPreviewViewControllerForLeafItem(browser Browser, item objc.Object) ViewController { - rv := objc.Call[ViewController](b_, objc.Sel("browser:previewViewControllerForLeafItem:"), browser, item) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserWillScroll() bool { - return b_.RespondsToSelector(objc.Sel("browserWillScroll:")) -} - -// Notifies the delegate when the browser will scroll. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407721-browserwillscroll?language=objc -func (b_ BrowserDelegateObject) BrowserWillScroll(sender Browser) { - objc.Call[objc.Void](b_, objc.Sel("browserWillScroll:"), sender) -} - -func (b_ BrowserDelegateObject) HasBrowserShouldShowCellExpansionForRowColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:shouldShowCellExpansionForRow:column:")) -} - -// Invoked to allow the delegate to control cell expansion for a specific row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407602-browser?language=objc -func (b_ BrowserDelegateObject) BrowserShouldShowCellExpansionForRowColumn(browser Browser, row int, column int) bool { - rv := objc.Call[bool](b_, objc.Sel("browser:shouldShowCellExpansionForRow:column:"), browser, row, column) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserWriteRowsWithIndexesInColumnToPasteboard() bool { - return b_.RespondsToSelector(objc.Sel("browser:writeRowsWithIndexes:inColumn:toPasteboard:")) -} - -// Determines whether a drag operation can proceed. This method is required for a browser to be a drag source. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407657-browser?language=objc -func (b_ BrowserDelegateObject) BrowserWriteRowsWithIndexesInColumnToPasteboard(browser Browser, rowIndexes foundation.IndexSet, column int, pasteboard Pasteboard) bool { - rv := objc.Call[bool](b_, objc.Sel("browser:writeRowsWithIndexes:inColumn:toPasteboard:"), browser, rowIndexes, column, pasteboard) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserSelectCellWithStringInColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:selectCellWithString:inColumn:")) +func (b_ BrowserDelegateObject) HasRootItemForBrowser() bool { + return b_.RespondsToSelector(objc.Sel("rootItemForBrowser:")) } -// Asks the delegate to select the cell with the given title in the specified column. [Full Topic] +// Asks the delegate to return the root item of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407548-browser?language=objc -func (b_ BrowserDelegateObject) BrowserSelectCellWithStringInColumn(sender Browser, title string, column int) bool { - rv := objc.Call[bool](b_, objc.Sel("browser:selectCellWithString:inColumn:"), sender, title, column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407526-rootitemforbrowser?language=objc +func (b_ BrowserDelegateObject) RootItemForBrowser(browser Browser) objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("rootItemForBrowser:"), browser) return rv } -func (b_ BrowserDelegateObject) HasBrowserWillDisplayCellAtRowColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:willDisplayCell:atRow:column:")) -} - -// Gives the delegate the opportunity to modify the specified cell at the given row and column location before the browser displays it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407705-browser?language=objc -func (b_ BrowserDelegateObject) BrowserWillDisplayCellAtRowColumn(sender Browser, cell objc.Object, row int, column int) { - objc.Call[objc.Void](b_, objc.Sel("browser:willDisplayCell:atRow:column:"), sender, cell, row, column) -} - -func (b_ BrowserDelegateObject) HasBrowserSelectionIndexesForProposedSelectionInColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:selectionIndexesForProposedSelection:inColumn:")) +func (b_ BrowserDelegateObject) HasBrowserDidScroll() bool { + return b_.RespondsToSelector(objc.Sel("browserDidScroll:")) } -// Asks the delegate for a set of indexes to select when the user changes the selection in the browser with the keyboard or mouse. [Full Topic] +// Notifies the delegate when the browser has scrolled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407660-browser?language=objc -func (b_ BrowserDelegateObject) BrowserSelectionIndexesForProposedSelectionInColumn(browser Browser, proposedSelectionIndexes foundation.IndexSet, column int) foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](b_, objc.Sel("browser:selectionIndexesForProposedSelection:inColumn:"), browser, proposedSelectionIndexes, column) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407566-browserdidscroll?language=objc +func (b_ BrowserDelegateObject) BrowserDidScroll(sender Browser) { + objc.Call[objc.Void](b_, objc.Sel("browserDidScroll:"), sender) } func (b_ BrowserDelegateObject) HasBrowserObjectValueForItem() bool { @@ -1117,27 +181,13 @@ func (b_ BrowserDelegateObject) BrowserObjectValueForItem(browser Browser, item return rv } -func (b_ BrowserDelegateObject) HasBrowserSelectRowInColumn() bool { - return b_.RespondsToSelector(objc.Sel("browser:selectRow:inColumn:")) -} - -// Asks the delegate to select the cell at the specified row and column location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407802-browser?language=objc -func (b_ BrowserDelegateObject) BrowserSelectRowInColumn(sender Browser, row int, column int) bool { - rv := objc.Call[bool](b_, objc.Sel("browser:selectRow:inColumn:"), sender, row, column) - return rv -} - -func (b_ BrowserDelegateObject) HasBrowserValidateDropProposedRowColumnDropOperation() bool { - return b_.RespondsToSelector(objc.Sel("browser:validateDrop:proposedRow:column:dropOperation:")) +func (b_ BrowserDelegateObject) HasBrowserWillScroll() bool { + return b_.RespondsToSelector(objc.Sel("browserWillScroll:")) } -// Sent to the delegate during a dragging session to determine whether a drop should be accepted and to obtain the drop location. This method is required for a browser to be a drag destination. [Full Topic] +// Notifies the delegate when the browser will scroll. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407766-browser?language=objc -func (b_ BrowserDelegateObject) BrowserValidateDropProposedRowColumnDropOperation(browser Browser, info DraggingInfoObject, row *int, column *int, dropOperation *BrowserDropOperation) DragOperation { - po1 := objc.WrapAsProtocol("NSDraggingInfo", info) - rv := objc.Call[DragOperation](b_, objc.Sel("browser:validateDrop:proposedRow:column:dropOperation:"), browser, po1, row, column, dropOperation) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407721-browserwillscroll?language=objc +func (b_ BrowserDelegateObject) BrowserWillScroll(sender Browser) { + objc.Call[objc.Void](b_, objc.Sel("browserWillScroll:"), sender) } diff --git a/macos/appkit/button.gen.go b/macos/appkit/button.gen.go index a73c4195..7395e275 100644 --- a/macos/appkit/button.gen.go +++ b/macos/appkit/button.gen.go @@ -19,62 +19,62 @@ type _ButtonClass struct { // An interface definition for the [Button] class. type IButton interface { IControl + SetNextState() MinimumSizeWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) foundation.Size - GetPeriodicDelayInterval(delay *float32, interval *float32) - SetButtonType(type_ ButtonType) CompressWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) - SetNextState() SetPeriodicDelayInterval(delay float32, interval float32) Highlight(flag bool) + GetPeriodicDelayInterval(delay *float32, interval *float32) + SetButtonType(type_ ButtonType) + ImageHugsTitle() bool + SetImageHugsTitle(value bool) + AllowsMixedState() bool + SetAllowsMixedState(value bool) + AttributedAlternateTitle() foundation.AttributedString + SetAttributedAlternateTitle(value foundation.IAttributedString) + KeyEquivalent() string + SetKeyEquivalent(value string) + ActiveCompressionOptions() UserInterfaceCompressionOptions + IsTransparent() bool + SetTransparent(value bool) + AlternateTitle() string + SetAlternateTitle(value string) + ContentTintColor() Color + SetContentTintColor(value IColor) + State() ControlStateValue + SetState(value ControlStateValue) IsBordered() bool SetBordered(value bool) - Title() string - SetTitle(value string) - SymbolConfiguration() ImageSymbolConfiguration - SetSymbolConfiguration(value IImageSymbolConfiguration) - IsSpringLoaded() bool - SetSpringLoaded(value bool) ImagePosition() CellImagePosition SetImagePosition(value CellImagePosition) - IsTransparent() bool - SetTransparent(value bool) - ShowsBorderOnlyWhileMouseInside() bool - SetShowsBorderOnlyWhileMouseInside(value bool) - Image() Image - SetImage(value IImage) - ImageHugsTitle() bool - SetImageHugsTitle(value bool) AlternateImage() Image SetAlternateImage(value IImage) - State() ControlStateValue - SetState(value ControlStateValue) - BezelColor() Color - SetBezelColor(value IColor) - ImageScaling() ImageScaling - SetImageScaling(value ImageScaling) - ContentTintColor() Color - SetContentTintColor(value IColor) - BezelStyle() BezelStyle - SetBezelStyle(value BezelStyle) - ActiveCompressionOptions() UserInterfaceCompressionOptions - Sound() Sound - SetSound(value ISound) - HasDestructiveAction() bool - SetHasDestructiveAction(value bool) MaxAcceleratorLevel() int SetMaxAcceleratorLevel(value int) AttributedTitle() foundation.AttributedString SetAttributedTitle(value foundation.IAttributedString) - AttributedAlternateTitle() foundation.AttributedString - SetAttributedAlternateTitle(value foundation.IAttributedString) - AlternateTitle() string - SetAlternateTitle(value string) + ImageScaling() ImageScaling + SetImageScaling(value ImageScaling) + HasDestructiveAction() bool + SetHasDestructiveAction(value bool) + SymbolConfiguration() ImageSymbolConfiguration + SetSymbolConfiguration(value IImageSymbolConfiguration) + BezelColor() Color + SetBezelColor(value IColor) + Title() string + SetTitle(value string) + Sound() Sound + SetSound(value ISound) KeyEquivalentModifierMask() EventModifierFlags SetKeyEquivalentModifierMask(value EventModifierFlags) - KeyEquivalent() string - SetKeyEquivalent(value string) - AllowsMixedState() bool - SetAllowsMixedState(value bool) + BezelStyle() BezelStyle + SetBezelStyle(value BezelStyle) + Image() Image + SetImage(value IImage) + IsSpringLoaded() bool + SetSpringLoaded(value bool) + ShowsBorderOnlyWhileMouseInside() bool + SetShowsBorderOnlyWhileMouseInside(value bool) } // A control that defines an area on the screen that a user clicks to trigger an action. [Full Topic] @@ -90,16 +90,16 @@ func ButtonFrom(ptr unsafe.Pointer) Button { } } -func (bc _ButtonClass) ButtonWithTitleImageTargetAction(title string, image IImage, target objc.IObject, action objc.Selector) Button { - rv := objc.Call[Button](bc, objc.Sel("buttonWithTitle:image:target:action:"), title, image, target, action) +func (bc _ButtonClass) CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) Button { + rv := objc.Call[Button](bc, objc.Sel("checkboxWithTitle:target:action:"), title, target, action) return rv } -// Creates a standard push button with a title and image. [Full Topic] +// Creates a standard checkbox with the title you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1644719-buttonwithtitle?language=objc -func Button_ButtonWithTitleImageTargetAction(title string, image IImage, target objc.IObject, action objc.Selector) Button { - return ButtonClass.ButtonWithTitleImageTargetAction(title, image, target, action) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1644525-checkboxwithtitle?language=objc +func Button_CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) Button { + return ButtonClass.CheckboxWithTitleTargetAction(title, target, action) } func (bc _ButtonClass) ButtonWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) Button { @@ -114,18 +114,6 @@ func Button_ButtonWithTitleTargetAction(title string, target objc.IObject, actio return ButtonClass.ButtonWithTitleTargetAction(title, target, action) } -func (bc _ButtonClass) CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) Button { - rv := objc.Call[Button](bc, objc.Sel("checkboxWithTitle:target:action:"), title, target, action) - return rv -} - -// Creates a standard checkbox with the title you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1644525-checkboxwithtitle?language=objc -func Button_CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) Button { - return ButtonClass.CheckboxWithTitleTargetAction(title, target, action) -} - func (bc _ButtonClass) ButtonWithImageTargetAction(image IImage, target objc.IObject, action objc.Selector) Button { rv := objc.Call[Button](bc, objc.Sel("buttonWithImage:target:action:"), image, target, action) return rv @@ -184,6 +172,13 @@ func NewButtonWithFrame(frameRect foundation.Rect) Button { return instance } +// Sets the button to its next state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1530594-setnextstate?language=objc +func (b_ Button) SetNextState() { + objc.Call[objc.Void](b_, objc.Sel("setNextState")) +} + // Returns the minimum size of the button by using the compression options. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2952059-minimumsizewithprioritizedcompre?language=objc @@ -192,20 +187,6 @@ func (b_ Button) MinimumSizeWithPrioritizedCompressionOptions(prioritizedOptions return rv } -// Returns by reference the delay and interval periods for a continuous button. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524817-getperiodicdelay?language=objc -func (b_ Button) GetPeriodicDelayInterval(delay *float32, interval *float32) { - objc.Call[objc.Void](b_, objc.Sel("getPeriodicDelay:interval:"), delay, interval) -} - -// Sets the button’s type, which affects its user interface and behavior when clicked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524983-setbuttontype?language=objc -func (b_ Button) SetButtonType(type_ ButtonType) { - objc.Call[objc.Void](b_, objc.Sel("setButtonType:"), type_) -} - // Sets the priority compression options for this button. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2952060-compresswithprioritizedcompressi?language=objc @@ -213,13 +194,6 @@ func (b_ Button) CompressWithPrioritizedCompressionOptions(prioritizedOptions [] objc.Call[objc.Void](b_, objc.Sel("compressWithPrioritizedCompressionOptions:"), prioritizedOptions) } -// Sets the button to its next state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1530594-setnextstate?language=objc -func (b_ Button) SetNextState() { - objc.Call[objc.Void](b_, objc.Sel("setNextState")) -} - // Sets the message delay and interval periods for a continuous button. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1526612-setperiodicdelay?language=objc @@ -234,79 +208,86 @@ func (b_ Button) Highlight(flag bool) { objc.Call[objc.Void](b_, objc.Sel("highlight:"), flag) } -// A Boolean value that determines whether the button has a border. [Full Topic] +// Returns by reference the delay and interval periods for a continuous button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1525565-bordered?language=objc -func (b_ Button) IsBordered() bool { - rv := objc.Call[bool](b_, objc.Sel("isBordered")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524817-getperiodicdelay?language=objc +func (b_ Button) GetPeriodicDelayInterval(delay *float32, interval *float32) { + objc.Call[objc.Void](b_, objc.Sel("getPeriodicDelay:interval:"), delay, interval) } -// A Boolean value that determines whether the button has a border. [Full Topic] +// Sets the button’s type, which affects its user interface and behavior when clicked. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1525565-bordered?language=objc -func (b_ Button) SetBordered(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setBordered:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524983-setbuttontype?language=objc +func (b_ Button) SetButtonType(type_ ButtonType) { + objc.Call[objc.Void](b_, objc.Sel("setButtonType:"), type_) } -// The title displayed on the button when it’s in an off state. [Full Topic] +// A Boolean value that determines how the button’s image and title are positioned together within the button bezel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524430-title?language=objc -func (b_ Button) Title() string { - rv := objc.Call[string](b_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2092414-imagehugstitle?language=objc +func (b_ Button) ImageHugsTitle() bool { + rv := objc.Call[bool](b_, objc.Sel("imageHugsTitle")) return rv } -// The title displayed on the button when it’s in an off state. [Full Topic] +// A Boolean value that determines how the button’s image and title are positioned together within the button bezel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524430-title?language=objc -func (b_ Button) SetTitle(value string) { - objc.Call[objc.Void](b_, objc.Sel("setTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2092414-imagehugstitle?language=objc +func (b_ Button) SetImageHugsTitle(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setImageHugsTitle:"), value) } -// The combination of point size, weight, and scale to use when sizing and displaying symbol images. [Full Topic] +// A Boolean value that indicates whether the button allows a mixed state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/3667453-symbolconfiguration?language=objc -func (b_ Button) SymbolConfiguration() ImageSymbolConfiguration { - rv := objc.Call[ImageSymbolConfiguration](b_, objc.Sel("symbolConfiguration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1528670-allowsmixedstate?language=objc +func (b_ Button) AllowsMixedState() bool { + rv := objc.Call[bool](b_, objc.Sel("allowsMixedState")) return rv } -// The combination of point size, weight, and scale to use when sizing and displaying symbol images. [Full Topic] +// A Boolean value that indicates whether the button allows a mixed state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/3667453-symbolconfiguration?language=objc -func (b_ Button) SetSymbolConfiguration(value IImageSymbolConfiguration) { - objc.Call[objc.Void](b_, objc.Sel("setSymbolConfiguration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1528670-allowsmixedstate?language=objc +func (b_ Button) SetAllowsMixedState(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setAllowsMixedState:"), value) } -// A Boolean value that indicates whether spring loading is enabled for the button. [Full Topic] +// The title that the button displays as an attributed string when the button is in an on state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1532300-springloaded?language=objc -func (b_ Button) IsSpringLoaded() bool { - rv := objc.Call[bool](b_, objc.Sel("isSpringLoaded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1526723-attributedalternatetitle?language=objc +func (b_ Button) AttributedAlternateTitle() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedAlternateTitle")) return rv } -// A Boolean value that indicates whether spring loading is enabled for the button. [Full Topic] +// The title that the button displays as an attributed string when the button is in an on state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1532300-springloaded?language=objc -func (b_ Button) SetSpringLoaded(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setSpringLoaded:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1526723-attributedalternatetitle?language=objc +func (b_ Button) SetAttributedAlternateTitle(value foundation.IAttributedString) { + objc.Call[objc.Void](b_, objc.Sel("setAttributedAlternateTitle:"), value) } -// The position of the button’s image relative to its title. [Full Topic] +// The key-equivalent character of the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1526778-imageposition?language=objc -func (b_ Button) ImagePosition() CellImagePosition { - rv := objc.Call[CellImagePosition](b_, objc.Sel("imagePosition")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1525368-keyequivalent?language=objc +func (b_ Button) KeyEquivalent() string { + rv := objc.Call[string](b_, objc.Sel("keyEquivalent")) return rv } -// The position of the button’s image relative to its title. [Full Topic] +// The key-equivalent character of the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1526778-imageposition?language=objc -func (b_ Button) SetImagePosition(value CellImagePosition) { - objc.Call[objc.Void](b_, objc.Sel("setImagePosition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1525368-keyequivalent?language=objc +func (b_ Button) SetKeyEquivalent(value string) { + objc.Call[objc.Void](b_, objc.Sel("setKeyEquivalent:"), value) +} + +// The compression options active for this button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2952061-activecompressionoptions?language=objc +func (b_ Button) ActiveCompressionOptions() UserInterfaceCompressionOptions { + rv := objc.Call[UserInterfaceCompressionOptions](b_, objc.Sel("activeCompressionOptions")) + return rv } // A Boolean value that indicates whether the button is transparent. [Full Topic] @@ -324,64 +305,34 @@ func (b_ Button) SetTransparent(value bool) { objc.Call[objc.Void](b_, objc.Sel("setTransparent:"), value) } -// A Boolean value that determines whether the button displays its border only when the pointer is over it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1532248-showsborderonlywhilemouseinside?language=objc -func (b_ Button) ShowsBorderOnlyWhileMouseInside() bool { - rv := objc.Call[bool](b_, objc.Sel("showsBorderOnlyWhileMouseInside")) - return rv -} - -// A Boolean value that determines whether the button displays its border only when the pointer is over it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1532248-showsborderonlywhilemouseinside?language=objc -func (b_ Button) SetShowsBorderOnlyWhileMouseInside(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setShowsBorderOnlyWhileMouseInside:"), value) -} - -// The image that appears on the button when it’s in an off state, or nil if there is no such image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1534221-image?language=objc -func (b_ Button) Image() Image { - rv := objc.Call[Image](b_, objc.Sel("image")) - return rv -} - -// The image that appears on the button when it’s in an off state, or nil if there is no such image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1534221-image?language=objc -func (b_ Button) SetImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setImage:"), value) -} - -// A Boolean value that determines how the button’s image and title are positioned together within the button bezel. [Full Topic] +// The title that the button displays when the button is in an on state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2092414-imagehugstitle?language=objc -func (b_ Button) ImageHugsTitle() bool { - rv := objc.Call[bool](b_, objc.Sel("imageHugsTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1529588-alternatetitle?language=objc +func (b_ Button) AlternateTitle() string { + rv := objc.Call[string](b_, objc.Sel("alternateTitle")) return rv } -// A Boolean value that determines how the button’s image and title are positioned together within the button bezel. [Full Topic] +// The title that the button displays when the button is in an on state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2092414-imagehugstitle?language=objc -func (b_ Button) SetImageHugsTitle(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setImageHugsTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1529588-alternatetitle?language=objc +func (b_ Button) SetAlternateTitle(value string) { + objc.Call[objc.Void](b_, objc.Sel("setAlternateTitle:"), value) } -// An alternate image that appears on the button when the button is in an on state. [Full Topic] +// A tint color to use for the template image and text content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1533935-alternateimage?language=objc -func (b_ Button) AlternateImage() Image { - rv := objc.Call[Image](b_, objc.Sel("alternateImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/3000781-contenttintcolor?language=objc +func (b_ Button) ContentTintColor() Color { + rv := objc.Call[Color](b_, objc.Sel("contentTintColor")) return rv } -// An alternate image that appears on the button when the button is in an on state. [Full Topic] +// A tint color to use for the template image and text content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1533935-alternateimage?language=objc -func (b_ Button) SetAlternateImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setAlternateImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/3000781-contenttintcolor?language=objc +func (b_ Button) SetContentTintColor(value IColor) { + objc.Call[objc.Void](b_, objc.Sel("setContentTintColor:"), value) } // The button’s state. [Full Topic] @@ -399,87 +350,94 @@ func (b_ Button) SetState(value ControlStateValue) { objc.Call[objc.Void](b_, objc.Sel("setState:"), value) } -// The color of the button's bezel, in appearances that support it. [Full Topic] +// A Boolean value that determines whether the button has a border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2561000-bezelcolor?language=objc -func (b_ Button) BezelColor() Color { - rv := objc.Call[Color](b_, objc.Sel("bezelColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1525565-bordered?language=objc +func (b_ Button) IsBordered() bool { + rv := objc.Call[bool](b_, objc.Sel("isBordered")) return rv } -// The color of the button's bezel, in appearances that support it. [Full Topic] +// A Boolean value that determines whether the button has a border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2561000-bezelcolor?language=objc -func (b_ Button) SetBezelColor(value IColor) { - objc.Call[objc.Void](b_, objc.Sel("setBezelColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1525565-bordered?language=objc +func (b_ Button) SetBordered(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setBordered:"), value) } -// The scaling mode applied to make the cell’s image fit the frame of the image view. [Full Topic] +// The position of the button’s image relative to its title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2202284-imagescaling?language=objc -func (b_ Button) ImageScaling() ImageScaling { - rv := objc.Call[ImageScaling](b_, objc.Sel("imageScaling")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1526778-imageposition?language=objc +func (b_ Button) ImagePosition() CellImagePosition { + rv := objc.Call[CellImagePosition](b_, objc.Sel("imagePosition")) return rv } -// The scaling mode applied to make the cell’s image fit the frame of the image view. [Full Topic] +// The position of the button’s image relative to its title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2202284-imagescaling?language=objc -func (b_ Button) SetImageScaling(value ImageScaling) { - objc.Call[objc.Void](b_, objc.Sel("setImageScaling:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1526778-imageposition?language=objc +func (b_ Button) SetImagePosition(value CellImagePosition) { + objc.Call[objc.Void](b_, objc.Sel("setImagePosition:"), value) } -// A tint color to use for the template image and text content. [Full Topic] +// An alternate image that appears on the button when the button is in an on state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/3000781-contenttintcolor?language=objc -func (b_ Button) ContentTintColor() Color { - rv := objc.Call[Color](b_, objc.Sel("contentTintColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1533935-alternateimage?language=objc +func (b_ Button) AlternateImage() Image { + rv := objc.Call[Image](b_, objc.Sel("alternateImage")) return rv } -// A tint color to use for the template image and text content. [Full Topic] +// An alternate image that appears on the button when the button is in an on state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/3000781-contenttintcolor?language=objc -func (b_ Button) SetContentTintColor(value IColor) { - objc.Call[objc.Void](b_, objc.Sel("setContentTintColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1533935-alternateimage?language=objc +func (b_ Button) SetAlternateImage(value IImage) { + objc.Call[objc.Void](b_, objc.Sel("setAlternateImage:"), value) } -// The appearance of the button’s border. [Full Topic] +// An integer value indicating the maximum pressure level for a button of type NSMultiLevelAcceleratorButton. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1527022-bezelstyle?language=objc -func (b_ Button) BezelStyle() BezelStyle { - rv := objc.Call[BezelStyle](b_, objc.Sel("bezelStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1534413-maxacceleratorlevel?language=objc +func (b_ Button) MaxAcceleratorLevel() int { + rv := objc.Call[int](b_, objc.Sel("maxAcceleratorLevel")) return rv } -// The appearance of the button’s border. [Full Topic] +// An integer value indicating the maximum pressure level for a button of type NSMultiLevelAcceleratorButton. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1527022-bezelstyle?language=objc -func (b_ Button) SetBezelStyle(value BezelStyle) { - objc.Call[objc.Void](b_, objc.Sel("setBezelStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1534413-maxacceleratorlevel?language=objc +func (b_ Button) SetMaxAcceleratorLevel(value int) { + objc.Call[objc.Void](b_, objc.Sel("setMaxAcceleratorLevel:"), value) } -// The compression options active for this button. [Full Topic] +// The title that the button displays in an off state, as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2952061-activecompressionoptions?language=objc -func (b_ Button) ActiveCompressionOptions() UserInterfaceCompressionOptions { - rv := objc.Call[UserInterfaceCompressionOptions](b_, objc.Sel("activeCompressionOptions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524640-attributedtitle?language=objc +func (b_ Button) AttributedTitle() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedTitle")) return rv } -// The sound that plays when the user clicks the button. [Full Topic] +// The title that the button displays in an off state, as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1530910-sound?language=objc -func (b_ Button) Sound() Sound { - rv := objc.Call[Sound](b_, objc.Sel("sound")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524640-attributedtitle?language=objc +func (b_ Button) SetAttributedTitle(value foundation.IAttributedString) { + objc.Call[objc.Void](b_, objc.Sel("setAttributedTitle:"), value) +} + +// The scaling mode applied to make the cell’s image fit the frame of the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2202284-imagescaling?language=objc +func (b_ Button) ImageScaling() ImageScaling { + rv := objc.Call[ImageScaling](b_, objc.Sel("imageScaling")) return rv } -// The sound that plays when the user clicks the button. [Full Topic] +// The scaling mode applied to make the cell’s image fit the frame of the image view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1530910-sound?language=objc -func (b_ Button) SetSound(value ISound) { - objc.Call[objc.Void](b_, objc.Sel("setSound:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2202284-imagescaling?language=objc +func (b_ Button) SetImageScaling(value ImageScaling) { + objc.Call[objc.Void](b_, objc.Sel("setImageScaling:"), value) } // A Boolean value that defines whether a button’s action has a destructive effect. [Full Topic] @@ -497,64 +455,64 @@ func (b_ Button) SetHasDestructiveAction(value bool) { objc.Call[objc.Void](b_, objc.Sel("setHasDestructiveAction:"), value) } -// An integer value indicating the maximum pressure level for a button of type NSMultiLevelAcceleratorButton. [Full Topic] +// The combination of point size, weight, and scale to use when sizing and displaying symbol images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1534413-maxacceleratorlevel?language=objc -func (b_ Button) MaxAcceleratorLevel() int { - rv := objc.Call[int](b_, objc.Sel("maxAcceleratorLevel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/3667453-symbolconfiguration?language=objc +func (b_ Button) SymbolConfiguration() ImageSymbolConfiguration { + rv := objc.Call[ImageSymbolConfiguration](b_, objc.Sel("symbolConfiguration")) return rv } -// An integer value indicating the maximum pressure level for a button of type NSMultiLevelAcceleratorButton. [Full Topic] +// The combination of point size, weight, and scale to use when sizing and displaying symbol images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1534413-maxacceleratorlevel?language=objc -func (b_ Button) SetMaxAcceleratorLevel(value int) { - objc.Call[objc.Void](b_, objc.Sel("setMaxAcceleratorLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/3667453-symbolconfiguration?language=objc +func (b_ Button) SetSymbolConfiguration(value IImageSymbolConfiguration) { + objc.Call[objc.Void](b_, objc.Sel("setSymbolConfiguration:"), value) } -// The title that the button displays in an off state, as an attributed string. [Full Topic] +// The color of the button's bezel, in appearances that support it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524640-attributedtitle?language=objc -func (b_ Button) AttributedTitle() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2561000-bezelcolor?language=objc +func (b_ Button) BezelColor() Color { + rv := objc.Call[Color](b_, objc.Sel("bezelColor")) return rv } -// The title that the button displays in an off state, as an attributed string. [Full Topic] +// The color of the button's bezel, in appearances that support it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524640-attributedtitle?language=objc -func (b_ Button) SetAttributedTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](b_, objc.Sel("setAttributedTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/2561000-bezelcolor?language=objc +func (b_ Button) SetBezelColor(value IColor) { + objc.Call[objc.Void](b_, objc.Sel("setBezelColor:"), value) } -// The title that the button displays as an attributed string when the button is in an on state. [Full Topic] +// The title displayed on the button when it’s in an off state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1526723-attributedalternatetitle?language=objc -func (b_ Button) AttributedAlternateTitle() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedAlternateTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524430-title?language=objc +func (b_ Button) Title() string { + rv := objc.Call[string](b_, objc.Sel("title")) return rv } -// The title that the button displays as an attributed string when the button is in an on state. [Full Topic] +// The title displayed on the button when it’s in an off state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1526723-attributedalternatetitle?language=objc -func (b_ Button) SetAttributedAlternateTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](b_, objc.Sel("setAttributedAlternateTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524430-title?language=objc +func (b_ Button) SetTitle(value string) { + objc.Call[objc.Void](b_, objc.Sel("setTitle:"), value) } -// The title that the button displays when the button is in an on state. [Full Topic] +// The sound that plays when the user clicks the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1529588-alternatetitle?language=objc -func (b_ Button) AlternateTitle() string { - rv := objc.Call[string](b_, objc.Sel("alternateTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1530910-sound?language=objc +func (b_ Button) Sound() Sound { + rv := objc.Call[Sound](b_, objc.Sel("sound")) return rv } -// The title that the button displays when the button is in an on state. [Full Topic] +// The sound that plays when the user clicks the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1529588-alternatetitle?language=objc -func (b_ Button) SetAlternateTitle(value string) { - objc.Call[objc.Void](b_, objc.Sel("setAlternateTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1530910-sound?language=objc +func (b_ Button) SetSound(value ISound) { + objc.Call[objc.Void](b_, objc.Sel("setSound:"), value) } // The mask specifying the modifier keys for the button’s key equivalent. [Full Topic] @@ -572,32 +530,62 @@ func (b_ Button) SetKeyEquivalentModifierMask(value EventModifierFlags) { objc.Call[objc.Void](b_, objc.Sel("setKeyEquivalentModifierMask:"), value) } -// The key-equivalent character of the button. [Full Topic] +// The appearance of the button’s border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1525368-keyequivalent?language=objc -func (b_ Button) KeyEquivalent() string { - rv := objc.Call[string](b_, objc.Sel("keyEquivalent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1527022-bezelstyle?language=objc +func (b_ Button) BezelStyle() BezelStyle { + rv := objc.Call[BezelStyle](b_, objc.Sel("bezelStyle")) return rv } -// The key-equivalent character of the button. [Full Topic] +// The appearance of the button’s border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1525368-keyequivalent?language=objc -func (b_ Button) SetKeyEquivalent(value string) { - objc.Call[objc.Void](b_, objc.Sel("setKeyEquivalent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1527022-bezelstyle?language=objc +func (b_ Button) SetBezelStyle(value BezelStyle) { + objc.Call[objc.Void](b_, objc.Sel("setBezelStyle:"), value) } -// A Boolean value that indicates whether the button allows a mixed state. [Full Topic] +// The image that appears on the button when it’s in an off state, or nil if there is no such image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1528670-allowsmixedstate?language=objc -func (b_ Button) AllowsMixedState() bool { - rv := objc.Call[bool](b_, objc.Sel("allowsMixedState")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1534221-image?language=objc +func (b_ Button) Image() Image { + rv := objc.Call[Image](b_, objc.Sel("image")) return rv } -// A Boolean value that indicates whether the button allows a mixed state. [Full Topic] +// The image that appears on the button when it’s in an off state, or nil if there is no such image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1528670-allowsmixedstate?language=objc -func (b_ Button) SetAllowsMixedState(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setAllowsMixedState:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1534221-image?language=objc +func (b_ Button) SetImage(value IImage) { + objc.Call[objc.Void](b_, objc.Sel("setImage:"), value) +} + +// A Boolean value that indicates whether spring loading is enabled for the button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1532300-springloaded?language=objc +func (b_ Button) IsSpringLoaded() bool { + rv := objc.Call[bool](b_, objc.Sel("isSpringLoaded")) + return rv +} + +// A Boolean value that indicates whether spring loading is enabled for the button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1532300-springloaded?language=objc +func (b_ Button) SetSpringLoaded(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setSpringLoaded:"), value) +} + +// A Boolean value that determines whether the button displays its border only when the pointer is over it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1532248-showsborderonlywhilemouseinside?language=objc +func (b_ Button) ShowsBorderOnlyWhileMouseInside() bool { + rv := objc.Call[bool](b_, objc.Sel("showsBorderOnlyWhileMouseInside")) + return rv +} + +// A Boolean value that determines whether the button displays its border only when the pointer is over it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1532248-showsborderonlywhilemouseinside?language=objc +func (b_ Button) SetShowsBorderOnlyWhileMouseInside(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setShowsBorderOnlyWhileMouseInside:"), value) } diff --git a/macos/appkit/button_cell.gen.go b/macos/appkit/button_cell.gen.go index cd3cd6a3..2b1c8d29 100644 --- a/macos/appkit/button_cell.gen.go +++ b/macos/appkit/button_cell.gen.go @@ -19,44 +19,44 @@ type _ButtonCellClass struct { // An interface definition for the [ButtonCell] class. type IButtonCell interface { IActionCell - MouseExited(event IEvent) - SetPeriodicDelayInterval(delay float32, interval float32) MouseEntered(event IEvent) - SetButtonType(type_ ButtonType) DrawBezelWithFrameInView(frame foundation.Rect, controlView IView) + MouseExited(event IEvent) DrawTitleWithFrameInView(title foundation.IAttributedString, frame foundation.Rect, controlView IView) foundation.Rect DrawImageWithFrameInView(image IImage, frame foundation.Rect, controlView IView) - KeyEquivalentModifierMask() EventModifierFlags - SetKeyEquivalentModifierMask(value EventModifierFlags) + SetPeriodicDelayInterval(delay float32, interval float32) + SetButtonType(type_ ButtonType) + AttributedAlternateTitle() foundation.AttributedString + SetAttributedAlternateTitle(value foundation.IAttributedString) + SetKeyEquivalent(value string) + IsTransparent() bool + SetTransparent(value bool) AlternateTitle() string SetAlternateTitle(value string) + HighlightsBy() CellStyleMask + SetHighlightsBy(value CellStyleMask) + ImageDimsWhenDisabled() bool + SetImageDimsWhenDisabled(value bool) ImagePosition() CellImagePosition SetImagePosition(value CellImagePosition) - SetKeyEquivalent(value string) - ShowsBorderOnlyWhileMouseInside() bool - SetShowsBorderOnlyWhileMouseInside(value bool) AlternateImage() Image SetAlternateImage(value IImage) - ImageDimsWhenDisabled() bool - SetImageDimsWhenDisabled(value bool) - BezelStyle() BezelStyle - SetBezelStyle(value BezelStyle) BackgroundColor() Color SetBackgroundColor(value IColor) - Sound() Sound - SetSound(value ISound) - HighlightsBy() CellStyleMask - SetHighlightsBy(value CellStyleMask) - ImageScaling() ImageScaling - SetImageScaling(value ImageScaling) - IsTransparent() bool - SetTransparent(value bool) - AttributedAlternateTitle() foundation.AttributedString - SetAttributedAlternateTitle(value foundation.IAttributedString) AttributedTitle() foundation.AttributedString SetAttributedTitle(value foundation.IAttributedString) + ImageScaling() ImageScaling + SetImageScaling(value ImageScaling) ShowsStateBy() CellStyleMask SetShowsStateBy(value CellStyleMask) + Sound() Sound + SetSound(value ISound) + KeyEquivalentModifierMask() EventModifierFlags + SetKeyEquivalentModifierMask(value EventModifierFlags) + BezelStyle() BezelStyle + SetBezelStyle(value BezelStyle) + ShowsBorderOnlyWhileMouseInside() bool + SetShowsBorderOnlyWhileMouseInside(value bool) } // An object that defines the user interface of a button or other clickable region of a view. [Full Topic] @@ -120,20 +120,6 @@ func (b_ ButtonCell) Init() ButtonCell { return rv } -// Erases the button’s border. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1530776-mouseexited?language=objc -func (b_ ButtonCell) MouseExited(event IEvent) { - objc.Call[objc.Void](b_, objc.Sel("mouseExited:"), event) -} - -// Sets the message delay and interval for the button. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1525725-setperiodicdelay?language=objc -func (b_ ButtonCell) SetPeriodicDelayInterval(delay float32, interval float32) { - objc.Call[objc.Void](b_, objc.Sel("setPeriodicDelay:interval:"), delay, interval) -} - // Draws the button’s border. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1524997-mouseentered?language=objc @@ -141,13 +127,6 @@ func (b_ ButtonCell) MouseEntered(event IEvent) { objc.Call[objc.Void](b_, objc.Sel("mouseEntered:"), event) } -// Sets how the button highlights while pressed and how it shows its state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1527474-setbuttontype?language=objc -func (b_ ButtonCell) SetButtonType(type_ ButtonType) { - objc.Call[objc.Void](b_, objc.Sel("setButtonType:"), type_) -} - // Draws the border of the button using the current bezel style. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1524939-drawbezelwithframe?language=objc @@ -155,6 +134,13 @@ func (b_ ButtonCell) DrawBezelWithFrameInView(frame foundation.Rect, controlView objc.Call[objc.Void](b_, objc.Sel("drawBezelWithFrame:inView:"), frame, controlView) } +// Erases the button’s border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1530776-mouseexited?language=objc +func (b_ ButtonCell) MouseExited(event IEvent) { + objc.Call[objc.Void](b_, objc.Sel("mouseExited:"), event) +} + // Draws the button’s title centered vertically in a specified rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528861-drawtitle?language=objc @@ -170,86 +156,85 @@ func (b_ ButtonCell) DrawImageWithFrameInView(image IImage, frame foundation.Rec objc.Call[objc.Void](b_, objc.Sel("drawImage:withFrame:inView:"), image, frame, controlView) } -// The mask that identifies the modifier keys for the button's key equivalent. [Full Topic] +// Sets the message delay and interval for the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528315-keyequivalentmodifiermask?language=objc -func (b_ ButtonCell) KeyEquivalentModifierMask() EventModifierFlags { - rv := objc.Call[EventModifierFlags](b_, objc.Sel("keyEquivalentModifierMask")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1525725-setperiodicdelay?language=objc +func (b_ ButtonCell) SetPeriodicDelayInterval(delay float32, interval float32) { + objc.Call[objc.Void](b_, objc.Sel("setPeriodicDelay:interval:"), delay, interval) } -// The mask that identifies the modifier keys for the button's key equivalent. [Full Topic] +// Sets how the button highlights while pressed and how it shows its state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528315-keyequivalentmodifiermask?language=objc -func (b_ ButtonCell) SetKeyEquivalentModifierMask(value EventModifierFlags) { - objc.Call[objc.Void](b_, objc.Sel("setKeyEquivalentModifierMask:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1527474-setbuttontype?language=objc +func (b_ ButtonCell) SetButtonType(type_ ButtonType) { + objc.Call[objc.Void](b_, objc.Sel("setButtonType:"), type_) } -// The string displayed by the button when it’s in its alternate state. [Full Topic] +// The title displayed by the button when it’s in its alternate state, as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1535382-alternatetitle?language=objc -func (b_ ButtonCell) AlternateTitle() string { - rv := objc.Call[string](b_, objc.Sel("alternateTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1526922-attributedalternatetitle?language=objc +func (b_ ButtonCell) AttributedAlternateTitle() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedAlternateTitle")) return rv } -// The string displayed by the button when it’s in its alternate state. [Full Topic] +// The title displayed by the button when it’s in its alternate state, as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1535382-alternatetitle?language=objc -func (b_ ButtonCell) SetAlternateTitle(value string) { - objc.Call[objc.Void](b_, objc.Sel("setAlternateTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1526922-attributedalternatetitle?language=objc +func (b_ ButtonCell) SetAttributedAlternateTitle(value foundation.IAttributedString) { + objc.Call[objc.Void](b_, objc.Sel("setAttributedAlternateTitle:"), value) } -// The position of the button’s image relative to its title. [Full Topic] +// The button’s key-equivalent character. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1529593-imageposition?language=objc -func (b_ ButtonCell) ImagePosition() CellImagePosition { - rv := objc.Call[CellImagePosition](b_, objc.Sel("imagePosition")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1529476-keyequivalent?language=objc +func (b_ ButtonCell) SetKeyEquivalent(value string) { + objc.Call[objc.Void](b_, objc.Sel("setKeyEquivalent:"), value) } -// The position of the button’s image relative to its title. [Full Topic] +// A Boolean value that indicates if the button is transparent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1529593-imageposition?language=objc -func (b_ ButtonCell) SetImagePosition(value CellImagePosition) { - objc.Call[objc.Void](b_, objc.Sel("setImagePosition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1530887-transparent?language=objc +func (b_ ButtonCell) IsTransparent() bool { + rv := objc.Call[bool](b_, objc.Sel("isTransparent")) + return rv } -// The button’s key-equivalent character. [Full Topic] +// A Boolean value that indicates if the button is transparent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1529476-keyequivalent?language=objc -func (b_ ButtonCell) SetKeyEquivalent(value string) { - objc.Call[objc.Void](b_, objc.Sel("setKeyEquivalent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1530887-transparent?language=objc +func (b_ ButtonCell) SetTransparent(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setTransparent:"), value) } -// A Boolean value that indicates if the button displays its border only when the pointer is over it. [Full Topic] +// The string displayed by the button when it’s in its alternate state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1527903-showsborderonlywhilemouseinside?language=objc -func (b_ ButtonCell) ShowsBorderOnlyWhileMouseInside() bool { - rv := objc.Call[bool](b_, objc.Sel("showsBorderOnlyWhileMouseInside")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1535382-alternatetitle?language=objc +func (b_ ButtonCell) AlternateTitle() string { + rv := objc.Call[string](b_, objc.Sel("alternateTitle")) return rv } -// A Boolean value that indicates if the button displays its border only when the pointer is over it. [Full Topic] +// The string displayed by the button when it’s in its alternate state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1527903-showsborderonlywhilemouseinside?language=objc -func (b_ ButtonCell) SetShowsBorderOnlyWhileMouseInside(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setShowsBorderOnlyWhileMouseInside:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1535382-alternatetitle?language=objc +func (b_ ButtonCell) SetAlternateTitle(value string) { + objc.Call[objc.Void](b_, objc.Sel("setAlternateTitle:"), value) } -// The image the button displays in its alternate state. [Full Topic] +// A set of flags that indicate how the button highlights when it receives a mouse-down event (that is, when the button is pressed). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1527064-alternateimage?language=objc -func (b_ ButtonCell) AlternateImage() Image { - rv := objc.Call[Image](b_, objc.Sel("alternateImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528459-highlightsby?language=objc +func (b_ ButtonCell) HighlightsBy() CellStyleMask { + rv := objc.Call[CellStyleMask](b_, objc.Sel("highlightsBy")) return rv } -// The image the button displays in its alternate state. [Full Topic] +// A set of flags that indicate how the button highlights when it receives a mouse-down event (that is, when the button is pressed). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1527064-alternateimage?language=objc -func (b_ ButtonCell) SetAlternateImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setAlternateImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528459-highlightsby?language=objc +func (b_ ButtonCell) SetHighlightsBy(value CellStyleMask) { + objc.Call[objc.Void](b_, objc.Sel("setHighlightsBy:"), value) } // A Boolean value that indicates if the button’s image and text appear “dim” when the button is disabled. [Full Topic] @@ -267,19 +252,34 @@ func (b_ ButtonCell) SetImageDimsWhenDisabled(value bool) { objc.Call[objc.Void](b_, objc.Sel("setImageDimsWhenDisabled:"), value) } -// The appearance of the button’s border, if it has one. [Full Topic] +// The position of the button’s image relative to its title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528696-bezelstyle?language=objc -func (b_ ButtonCell) BezelStyle() BezelStyle { - rv := objc.Call[BezelStyle](b_, objc.Sel("bezelStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1529593-imageposition?language=objc +func (b_ ButtonCell) ImagePosition() CellImagePosition { + rv := objc.Call[CellImagePosition](b_, objc.Sel("imagePosition")) return rv } -// The appearance of the button’s border, if it has one. [Full Topic] +// The position of the button’s image relative to its title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528696-bezelstyle?language=objc -func (b_ ButtonCell) SetBezelStyle(value BezelStyle) { - objc.Call[objc.Void](b_, objc.Sel("setBezelStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1529593-imageposition?language=objc +func (b_ ButtonCell) SetImagePosition(value CellImagePosition) { + objc.Call[objc.Void](b_, objc.Sel("setImagePosition:"), value) +} + +// The image the button displays in its alternate state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1527064-alternateimage?language=objc +func (b_ ButtonCell) AlternateImage() Image { + rv := objc.Call[Image](b_, objc.Sel("alternateImage")) + return rv +} + +// The image the button displays in its alternate state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1527064-alternateimage?language=objc +func (b_ ButtonCell) SetAlternateImage(value IImage) { + objc.Call[objc.Void](b_, objc.Sel("setAlternateImage:"), value) } // The background color of the button. [Full Topic] @@ -297,34 +297,19 @@ func (b_ ButtonCell) SetBackgroundColor(value IColor) { objc.Call[objc.Void](b_, objc.Sel("setBackgroundColor:"), value) } -// The sound that’s played when the user presses the button (that is during a mouse-down event). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1525955-sound?language=objc -func (b_ ButtonCell) Sound() Sound { - rv := objc.Call[Sound](b_, objc.Sel("sound")) - return rv -} - -// The sound that’s played when the user presses the button (that is during a mouse-down event). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1525955-sound?language=objc -func (b_ ButtonCell) SetSound(value ISound) { - objc.Call[objc.Void](b_, objc.Sel("setSound:"), value) -} - -// A set of flags that indicate how the button highlights when it receives a mouse-down event (that is, when the button is pressed). [Full Topic] +// The title displayed by the button when it’s in its normal state as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528459-highlightsby?language=objc -func (b_ ButtonCell) HighlightsBy() CellStyleMask { - rv := objc.Call[CellStyleMask](b_, objc.Sel("highlightsBy")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1529303-attributedtitle?language=objc +func (b_ ButtonCell) AttributedTitle() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedTitle")) return rv } -// A set of flags that indicate how the button highlights when it receives a mouse-down event (that is, when the button is pressed). [Full Topic] +// The title displayed by the button when it’s in its normal state as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528459-highlightsby?language=objc -func (b_ ButtonCell) SetHighlightsBy(value CellStyleMask) { - objc.Call[objc.Void](b_, objc.Sel("setHighlightsBy:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1529303-attributedtitle?language=objc +func (b_ ButtonCell) SetAttributedTitle(value foundation.IAttributedString) { + objc.Call[objc.Void](b_, objc.Sel("setAttributedTitle:"), value) } // The scale factor for the button’s image. [Full Topic] @@ -342,62 +327,77 @@ func (b_ ButtonCell) SetImageScaling(value ImageScaling) { objc.Call[objc.Void](b_, objc.Sel("setImageScaling:"), value) } -// A Boolean value that indicates if the button is transparent. [Full Topic] +// The flags that indicate how the button cell shows its alternate state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1530887-transparent?language=objc -func (b_ ButtonCell) IsTransparent() bool { - rv := objc.Call[bool](b_, objc.Sel("isTransparent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1533225-showsstateby?language=objc +func (b_ ButtonCell) ShowsStateBy() CellStyleMask { + rv := objc.Call[CellStyleMask](b_, objc.Sel("showsStateBy")) return rv } -// A Boolean value that indicates if the button is transparent. [Full Topic] +// The flags that indicate how the button cell shows its alternate state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1530887-transparent?language=objc -func (b_ ButtonCell) SetTransparent(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setTransparent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1533225-showsstateby?language=objc +func (b_ ButtonCell) SetShowsStateBy(value CellStyleMask) { + objc.Call[objc.Void](b_, objc.Sel("setShowsStateBy:"), value) } -// The title displayed by the button when it’s in its alternate state, as an attributed string. [Full Topic] +// The sound that’s played when the user presses the button (that is during a mouse-down event). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1526922-attributedalternatetitle?language=objc -func (b_ ButtonCell) AttributedAlternateTitle() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedAlternateTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1525955-sound?language=objc +func (b_ ButtonCell) Sound() Sound { + rv := objc.Call[Sound](b_, objc.Sel("sound")) return rv } -// The title displayed by the button when it’s in its alternate state, as an attributed string. [Full Topic] +// The sound that’s played when the user presses the button (that is during a mouse-down event). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1526922-attributedalternatetitle?language=objc -func (b_ ButtonCell) SetAttributedAlternateTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](b_, objc.Sel("setAttributedAlternateTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1525955-sound?language=objc +func (b_ ButtonCell) SetSound(value ISound) { + objc.Call[objc.Void](b_, objc.Sel("setSound:"), value) } -// The title displayed by the button when it’s in its normal state as an attributed string. [Full Topic] +// The mask that identifies the modifier keys for the button's key equivalent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1529303-attributedtitle?language=objc -func (b_ ButtonCell) AttributedTitle() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528315-keyequivalentmodifiermask?language=objc +func (b_ ButtonCell) KeyEquivalentModifierMask() EventModifierFlags { + rv := objc.Call[EventModifierFlags](b_, objc.Sel("keyEquivalentModifierMask")) return rv } -// The title displayed by the button when it’s in its normal state as an attributed string. [Full Topic] +// The mask that identifies the modifier keys for the button's key equivalent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1529303-attributedtitle?language=objc -func (b_ ButtonCell) SetAttributedTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](b_, objc.Sel("setAttributedTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528315-keyequivalentmodifiermask?language=objc +func (b_ ButtonCell) SetKeyEquivalentModifierMask(value EventModifierFlags) { + objc.Call[objc.Void](b_, objc.Sel("setKeyEquivalentModifierMask:"), value) } -// The flags that indicate how the button cell shows its alternate state. [Full Topic] +// The appearance of the button’s border, if it has one. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1533225-showsstateby?language=objc -func (b_ ButtonCell) ShowsStateBy() CellStyleMask { - rv := objc.Call[CellStyleMask](b_, objc.Sel("showsStateBy")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528696-bezelstyle?language=objc +func (b_ ButtonCell) BezelStyle() BezelStyle { + rv := objc.Call[BezelStyle](b_, objc.Sel("bezelStyle")) return rv } -// The flags that indicate how the button cell shows its alternate state. [Full Topic] +// The appearance of the button’s border, if it has one. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1533225-showsstateby?language=objc -func (b_ ButtonCell) SetShowsStateBy(value CellStyleMask) { - objc.Call[objc.Void](b_, objc.Sel("setShowsStateBy:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1528696-bezelstyle?language=objc +func (b_ ButtonCell) SetBezelStyle(value BezelStyle) { + objc.Call[objc.Void](b_, objc.Sel("setBezelStyle:"), value) +} + +// A Boolean value that indicates if the button displays its border only when the pointer is over it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1527903-showsborderonlywhilemouseinside?language=objc +func (b_ ButtonCell) ShowsBorderOnlyWhileMouseInside() bool { + rv := objc.Call[bool](b_, objc.Sel("showsBorderOnlyWhileMouseInside")) + return rv +} + +// A Boolean value that indicates if the button displays its border only when the pointer is over it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttoncell/1527903-showsborderonlywhilemouseinside?language=objc +func (b_ ButtonCell) SetShowsBorderOnlyWhileMouseInside(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setShowsBorderOnlyWhileMouseInside:"), value) } diff --git a/macos/appkit/button_touch_bar_item.gen.go b/macos/appkit/button_touch_bar_item.gen.go index d5154bf6..1e13a6a1 100644 --- a/macos/appkit/button_touch_bar_item.gen.go +++ b/macos/appkit/button_touch_bar_item.gen.go @@ -18,19 +18,19 @@ type _ButtonTouchBarItemClass struct { // An interface definition for the [ButtonTouchBarItem] class. type IButtonTouchBarItem interface { ITouchBarItem - SetCustomizationLabel(value string) - IsEnabled() bool - SetEnabled(value bool) Target() objc.Object SetTarget(value objc.IObject) - Title() string - SetTitle(value string) - Image() Image - SetImage(value IImage) + SetCustomizationLabel(value string) Action() objc.Selector SetAction(value objc.Selector) BezelColor() Color SetBezelColor(value IColor) + Title() string + SetTitle(value string) + IsEnabled() bool + SetEnabled(value bool) + Image() Image + SetImage(value IImage) } // A bar item that provides a button. [Full Topic] @@ -58,30 +58,6 @@ func ButtonTouchBarItem_ButtonTouchBarItemWithIdentifierTitleTargetAction(identi return ButtonTouchBarItemClass.ButtonTouchBarItemWithIdentifierTitleTargetAction(identifier, title, target, action) } -func (bc _ButtonTouchBarItemClass) ButtonTouchBarItemWithIdentifierTitleImageTargetAction(identifier TouchBarItemIdentifier, title string, image IImage, target objc.IObject, action objc.Selector) ButtonTouchBarItem { - rv := objc.Call[ButtonTouchBarItem](bc, objc.Sel("buttonTouchBarItemWithIdentifier:title:image:target:action:"), identifier, title, image, target, action) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237179-buttontouchbaritemwithidentifier?language=objc -func ButtonTouchBarItem_ButtonTouchBarItemWithIdentifierTitleImageTargetAction(identifier TouchBarItemIdentifier, title string, image IImage, target objc.IObject, action objc.Selector) ButtonTouchBarItem { - return ButtonTouchBarItemClass.ButtonTouchBarItemWithIdentifierTitleImageTargetAction(identifier, title, image, target, action) -} - -func (bc _ButtonTouchBarItemClass) ButtonTouchBarItemWithIdentifierImageTargetAction(identifier TouchBarItemIdentifier, image IImage, target objc.IObject, action objc.Selector) ButtonTouchBarItem { - rv := objc.Call[ButtonTouchBarItem](bc, objc.Sel("buttonTouchBarItemWithIdentifier:image:target:action:"), identifier, image, target, action) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237178-buttontouchbaritemwithidentifier?language=objc -func ButtonTouchBarItem_ButtonTouchBarItemWithIdentifierImageTargetAction(identifier TouchBarItemIdentifier, image IImage, target objc.IObject, action objc.Selector) ButtonTouchBarItem { - return ButtonTouchBarItemClass.ButtonTouchBarItemWithIdentifierImageTargetAction(identifier, image, target, action) -} - func (bc _ButtonTouchBarItemClass) Alloc() ButtonTouchBarItem { rv := objc.Call[ButtonTouchBarItem](bc, objc.Sel("alloc")) return rv @@ -116,6 +92,21 @@ func NewButtonTouchBarItemWithIdentifier(identifier TouchBarItemIdentifier) Butt return instance } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237184-target?language=objc +func (b_ ButtonTouchBarItem) Target() objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("target")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237184-target?language=objc +func (b_ ButtonTouchBarItem) SetTarget(value objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("setTarget:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237181-customizationlabel?language=objc @@ -125,32 +116,32 @@ func (b_ ButtonTouchBarItem) SetCustomizationLabel(value string) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3353052-enabled?language=objc -func (b_ ButtonTouchBarItem) IsEnabled() bool { - rv := objc.Call[bool](b_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237176-action?language=objc +func (b_ ButtonTouchBarItem) Action() objc.Selector { + rv := objc.Call[objc.Selector](b_, objc.Sel("action")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3353052-enabled?language=objc -func (b_ ButtonTouchBarItem) SetEnabled(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237176-action?language=objc +func (b_ ButtonTouchBarItem) SetAction(value objc.Selector) { + objc.Call[objc.Void](b_, objc.Sel("setAction:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237184-target?language=objc -func (b_ ButtonTouchBarItem) Target() objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("target")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237177-bezelcolor?language=objc +func (b_ ButtonTouchBarItem) BezelColor() Color { + rv := objc.Call[Color](b_, objc.Sel("bezelColor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237184-target?language=objc -func (b_ ButtonTouchBarItem) SetTarget(value objc.IObject) { - objc.Call[objc.Void](b_, objc.Sel("setTarget:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237177-bezelcolor?language=objc +func (b_ ButtonTouchBarItem) SetBezelColor(value IColor) { + objc.Call[objc.Void](b_, objc.Sel("setBezelColor:"), value) } // [Full Topic] @@ -170,45 +161,30 @@ func (b_ ButtonTouchBarItem) SetTitle(value string) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237182-image?language=objc -func (b_ ButtonTouchBarItem) Image() Image { - rv := objc.Call[Image](b_, objc.Sel("image")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237182-image?language=objc -func (b_ ButtonTouchBarItem) SetImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setImage:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237176-action?language=objc -func (b_ ButtonTouchBarItem) Action() objc.Selector { - rv := objc.Call[objc.Selector](b_, objc.Sel("action")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3353052-enabled?language=objc +func (b_ ButtonTouchBarItem) IsEnabled() bool { + rv := objc.Call[bool](b_, objc.Sel("isEnabled")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237176-action?language=objc -func (b_ ButtonTouchBarItem) SetAction(value objc.Selector) { - objc.Call[objc.Void](b_, objc.Sel("setAction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3353052-enabled?language=objc +func (b_ ButtonTouchBarItem) SetEnabled(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setEnabled:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237177-bezelcolor?language=objc -func (b_ ButtonTouchBarItem) BezelColor() Color { - rv := objc.Call[Color](b_, objc.Sel("bezelColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237182-image?language=objc +func (b_ ButtonTouchBarItem) Image() Image { + rv := objc.Call[Image](b_, objc.Sel("image")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237177-bezelcolor?language=objc -func (b_ ButtonTouchBarItem) SetBezelColor(value IColor) { - objc.Call[objc.Void](b_, objc.Sel("setBezelColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontouchbaritem/3237182-image?language=objc +func (b_ ButtonTouchBarItem) SetImage(value IImage) { + objc.Call[objc.Void](b_, objc.Sel("setImage:"), value) } diff --git a/macos/appkit/candidate_list_touch_bar_item.gen.go b/macos/appkit/candidate_list_touch_bar_item.gen.go index 51884146..bee9f698 100644 --- a/macos/appkit/candidate_list_touch_bar_item.gen.go +++ b/macos/appkit/candidate_list_touch_bar_item.gen.go @@ -21,22 +21,22 @@ type ICandidateListTouchBarItem interface { ITouchBarItem SetCandidatesForSelectedRangeInString(candidates []objc.IObject, selectedRange foundation.Range, originalString string) UpdateWithInsertionPointVisibility(isVisible bool) + Candidates() []objc.Object AllowsTextInputContextCandidates() bool SetAllowsTextInputContextCandidates(value bool) IsCandidateListVisible() bool + SetCustomizationLabel(value string) AllowsCollapsing() bool SetAllowsCollapsing(value bool) + IsCollapsed() bool + SetCollapsed(value bool) Delegate() CandidateListTouchBarItemDelegateObject SetDelegate(value PCandidateListTouchBarItemDelegate) SetDelegateObject(valueObject objc.IObject) - Candidates() []objc.Object - AttributedStringForCandidate() func(candidate objc.Object, index int) foundation.AttributedString - SetAttributedStringForCandidate(value func(candidate objc.Object, index int) foundation.AttributedString) - SetCustomizationLabel(value string) Client() View SetClient(value IView) - IsCollapsed() bool - SetCollapsed(value bool) + AttributedStringForCandidate() func(candidate objc.Object, index int) foundation.AttributedString + SetAttributedStringForCandidate(value func(candidate objc.Object, index int) foundation.AttributedString) } // A bar item that, along with its delegate, provides a list of textual suggestions for the current text view. [Full Topic] @@ -100,6 +100,14 @@ func (c_ CandidateListTouchBarItem) UpdateWithInsertionPointVisibility(isVisible objc.Call[objc.Void](c_, objc.Sel("updateWithInsertionPointVisibility:"), isVisible) } +// The array of candidate objects previously set by setCandidates:forSelectedRange:inString:. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544728-candidates?language=objc +func (c_ CandidateListTouchBarItem) Candidates() []objc.Object { + rv := objc.Call[[]objc.Object](c_, objc.Sel("candidates")) + return rv +} + // A Boolean value that specifies whether a candidate list item displays candidates from text input providers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544668-allowstextinputcontextcandidates?language=objc @@ -123,6 +131,13 @@ func (c_ CandidateListTouchBarItem) IsCandidateListVisible() bool { return rv } +// The user-visible string identifying this item during bar customization. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544821-customizationlabel?language=objc +func (c_ CandidateListTouchBarItem) SetCustomizationLabel(value string) { + objc.Call[objc.Void](c_, objc.Sel("setCustomizationLabel:"), value) +} + // A Boolean value that specifies whether the item can be collapsed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544718-allowscollapsing?language=objc @@ -138,6 +153,21 @@ func (c_ CandidateListTouchBarItem) SetAllowsCollapsing(value bool) { objc.Call[objc.Void](c_, objc.Sel("setAllowsCollapsing:"), value) } +// A Boolean value that controls the visibility of the candidate list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544733-collapsed?language=objc +func (c_ CandidateListTouchBarItem) IsCollapsed() bool { + rv := objc.Call[bool](c_, objc.Sel("isCollapsed")) + return rv +} + +// A Boolean value that controls the visibility of the candidate list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544733-collapsed?language=objc +func (c_ CandidateListTouchBarItem) SetCollapsed(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setCollapsed:"), value) +} + // The delegate of the candidate list item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544820-delegate?language=objc @@ -162,36 +192,6 @@ func (c_ CandidateListTouchBarItem) SetDelegateObject(valueObject objc.IObject) objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), valueObject) } -// The array of candidate objects previously set by [appkit/nscandidatelisttouchbaritem/setcandidates]. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544728-candidates?language=objc -func (c_ CandidateListTouchBarItem) Candidates() []objc.Object { - rv := objc.Call[[]objc.Object](c_, objc.Sel("candidates")) - return rv -} - -// A block that converts a candidate object into an attributed string for display in the candidate list item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544823-attributedstringforcandidate?language=objc -func (c_ CandidateListTouchBarItem) AttributedStringForCandidate() func(candidate objc.Object, index int) foundation.AttributedString { - rv := objc.Call[func(candidate objc.Object, index int) foundation.AttributedString](c_, objc.Sel("attributedStringForCandidate")) - return rv -} - -// A block that converts a candidate object into an attributed string for display in the candidate list item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544823-attributedstringforcandidate?language=objc -func (c_ CandidateListTouchBarItem) SetAttributedStringForCandidate(value func(candidate objc.Object, index int) foundation.AttributedString) { - objc.Call[objc.Void](c_, objc.Sel("setAttributedStringForCandidate:"), value) -} - -// The user-visible string identifying this item during bar customization. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544821-customizationlabel?language=objc -func (c_ CandidateListTouchBarItem) SetCustomizationLabel(value string) { - objc.Call[objc.Void](c_, objc.Sel("setCustomizationLabel:"), value) -} - // The client object for the candidate list item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544873-client?language=objc @@ -207,17 +207,17 @@ func (c_ CandidateListTouchBarItem) SetClient(value IView) { objc.Call[objc.Void](c_, objc.Sel("setClient:"), value) } -// A Boolean value that controls the visibility of the candidate list. [Full Topic] +// A block that converts a candidate object into an attributed string for display in the candidate list item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544733-collapsed?language=objc -func (c_ CandidateListTouchBarItem) IsCollapsed() bool { - rv := objc.Call[bool](c_, objc.Sel("isCollapsed")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544823-attributedstringforcandidate?language=objc +func (c_ CandidateListTouchBarItem) AttributedStringForCandidate() func(candidate objc.Object, index int) foundation.AttributedString { + rv := objc.Call[func(candidate objc.Object, index int) foundation.AttributedString](c_, objc.Sel("attributedStringForCandidate")) return rv } -// A Boolean value that controls the visibility of the candidate list. [Full Topic] +// A block that converts a candidate object into an attributed string for display in the candidate list item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544733-collapsed?language=objc -func (c_ CandidateListTouchBarItem) SetCollapsed(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setCollapsed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritem/2544823-attributedstringforcandidate?language=objc +func (c_ CandidateListTouchBarItem) SetAttributedStringForCandidate(value func(candidate objc.Object, index int) foundation.AttributedString) { + objc.Call[objc.Void](c_, objc.Sel("setAttributedStringForCandidate:"), value) } diff --git a/macos/appkit/candidate_list_touch_bar_item_delegate.gen.go b/macos/appkit/candidate_list_touch_bar_item_delegate.gen.go index 3dfccbb3..803438a6 100644 --- a/macos/appkit/candidate_list_touch_bar_item_delegate.gen.go +++ b/macos/appkit/candidate_list_touch_bar_item_delegate.gen.go @@ -10,18 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate?language=objc type PCandidateListTouchBarItemDelegate interface { - // optional - CandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex(anItem CandidateListTouchBarItem, previousIndex int, index int) - HasCandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex() bool - - // optional - CandidateListTouchBarItemChangedCandidateListVisibility(anItem CandidateListTouchBarItem, isVisible bool) - HasCandidateListTouchBarItemChangedCandidateListVisibility() bool - - // optional - CandidateListTouchBarItemEndSelectingCandidateAtIndex(anItem CandidateListTouchBarItem, index int) - HasCandidateListTouchBarItemEndSelectingCandidateAtIndex() bool - // optional CandidateListTouchBarItemBeginSelectingCandidateAtIndex(anItem CandidateListTouchBarItem, index int) HasCandidateListTouchBarItemBeginSelectingCandidateAtIndex() bool @@ -29,63 +17,9 @@ type PCandidateListTouchBarItemDelegate interface { // A delegate implementation builder for the [PCandidateListTouchBarItemDelegate] protocol. type CandidateListTouchBarItemDelegate struct { - _CandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex func(anItem CandidateListTouchBarItem, previousIndex int, index int) - _CandidateListTouchBarItemChangedCandidateListVisibility func(anItem CandidateListTouchBarItem, isVisible bool) - _CandidateListTouchBarItemEndSelectingCandidateAtIndex func(anItem CandidateListTouchBarItem, index int) - _CandidateListTouchBarItemBeginSelectingCandidateAtIndex func(anItem CandidateListTouchBarItem, index int) -} - -func (di *CandidateListTouchBarItemDelegate) HasCandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex() bool { - return di._CandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex != nil -} - -// Tells the delegate that user has moved from touching one candidate in the candidate list item to another. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate/2544677-candidatelisttouchbaritem?language=objc -func (di *CandidateListTouchBarItemDelegate) SetCandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex(f func(anItem CandidateListTouchBarItem, previousIndex int, index int)) { - di._CandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex = f -} - -// Tells the delegate that user has moved from touching one candidate in the candidate list item to another. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate/2544677-candidatelisttouchbaritem?language=objc -func (di *CandidateListTouchBarItemDelegate) CandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex(anItem CandidateListTouchBarItem, previousIndex int, index int) { - di._CandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex(anItem, previousIndex, index) -} -func (di *CandidateListTouchBarItemDelegate) HasCandidateListTouchBarItemChangedCandidateListVisibility() bool { - return di._CandidateListTouchBarItemChangedCandidateListVisibility != nil -} - -// Tells the delegate that the visibility of the candidate list has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate/2544878-candidatelisttouchbaritem?language=objc -func (di *CandidateListTouchBarItemDelegate) SetCandidateListTouchBarItemChangedCandidateListVisibility(f func(anItem CandidateListTouchBarItem, isVisible bool)) { - di._CandidateListTouchBarItemChangedCandidateListVisibility = f -} - -// Tells the delegate that the visibility of the candidate list has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate/2544878-candidatelisttouchbaritem?language=objc -func (di *CandidateListTouchBarItemDelegate) CandidateListTouchBarItemChangedCandidateListVisibility(anItem CandidateListTouchBarItem, isVisible bool) { - di._CandidateListTouchBarItemChangedCandidateListVisibility(anItem, isVisible) -} -func (di *CandidateListTouchBarItemDelegate) HasCandidateListTouchBarItemEndSelectingCandidateAtIndex() bool { - return di._CandidateListTouchBarItemEndSelectingCandidateAtIndex != nil -} - -// Tells the delegate that a user has stopped touching candidates in the candidate list item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate/2544704-candidatelisttouchbaritem?language=objc -func (di *CandidateListTouchBarItemDelegate) SetCandidateListTouchBarItemEndSelectingCandidateAtIndex(f func(anItem CandidateListTouchBarItem, index int)) { - di._CandidateListTouchBarItemEndSelectingCandidateAtIndex = f + _CandidateListTouchBarItemBeginSelectingCandidateAtIndex func(anItem CandidateListTouchBarItem, index int) } -// Tells the delegate that a user has stopped touching candidates in the candidate list item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate/2544704-candidatelisttouchbaritem?language=objc -func (di *CandidateListTouchBarItemDelegate) CandidateListTouchBarItemEndSelectingCandidateAtIndex(anItem CandidateListTouchBarItem, index int) { - di._CandidateListTouchBarItemEndSelectingCandidateAtIndex(anItem, index) -} func (di *CandidateListTouchBarItemDelegate) HasCandidateListTouchBarItemBeginSelectingCandidateAtIndex() bool { return di._CandidateListTouchBarItemBeginSelectingCandidateAtIndex != nil } @@ -112,39 +46,6 @@ type CandidateListTouchBarItemDelegateObject struct { objc.Object } -func (c_ CandidateListTouchBarItemDelegateObject) HasCandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex() bool { - return c_.RespondsToSelector(objc.Sel("candidateListTouchBarItem:changeSelectionFromCandidateAtIndex:toIndex:")) -} - -// Tells the delegate that user has moved from touching one candidate in the candidate list item to another. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate/2544677-candidatelisttouchbaritem?language=objc -func (c_ CandidateListTouchBarItemDelegateObject) CandidateListTouchBarItemChangeSelectionFromCandidateAtIndexToIndex(anItem CandidateListTouchBarItem, previousIndex int, index int) { - objc.Call[objc.Void](c_, objc.Sel("candidateListTouchBarItem:changeSelectionFromCandidateAtIndex:toIndex:"), anItem, previousIndex, index) -} - -func (c_ CandidateListTouchBarItemDelegateObject) HasCandidateListTouchBarItemChangedCandidateListVisibility() bool { - return c_.RespondsToSelector(objc.Sel("candidateListTouchBarItem:changedCandidateListVisibility:")) -} - -// Tells the delegate that the visibility of the candidate list has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate/2544878-candidatelisttouchbaritem?language=objc -func (c_ CandidateListTouchBarItemDelegateObject) CandidateListTouchBarItemChangedCandidateListVisibility(anItem CandidateListTouchBarItem, isVisible bool) { - objc.Call[objc.Void](c_, objc.Sel("candidateListTouchBarItem:changedCandidateListVisibility:"), anItem, isVisible) -} - -func (c_ CandidateListTouchBarItemDelegateObject) HasCandidateListTouchBarItemEndSelectingCandidateAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("candidateListTouchBarItem:endSelectingCandidateAtIndex:")) -} - -// Tells the delegate that a user has stopped touching candidates in the candidate list item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate/2544704-candidatelisttouchbaritem?language=objc -func (c_ CandidateListTouchBarItemDelegateObject) CandidateListTouchBarItemEndSelectingCandidateAtIndex(anItem CandidateListTouchBarItem, index int) { - objc.Call[objc.Void](c_, objc.Sel("candidateListTouchBarItem:endSelectingCandidateAtIndex:"), anItem, index) -} - func (c_ CandidateListTouchBarItemDelegateObject) HasCandidateListTouchBarItemBeginSelectingCandidateAtIndex() bool { return c_.RespondsToSelector(objc.Sel("candidateListTouchBarItem:beginSelectingCandidateAtIndex:")) } diff --git a/macos/appkit/cell.gen.go b/macos/appkit/cell.gen.go index 42e5e0ac..12420c33 100644 --- a/macos/appkit/cell.gen.go +++ b/macos/appkit/cell.gen.go @@ -19,140 +19,140 @@ type _CellClass struct { // An interface definition for the [Cell] class. type ICell interface { objc.IObject + ContinueTrackingAtInView(lastPoint foundation.Point, currentPoint foundation.Point, controlView IView) bool + DraggingImageComponentsWithFrameInView(frame foundation.Rect, view IView) []DraggingImageComponent + SetNextState() + StopTrackingAtInViewMouseIsUp(lastPoint foundation.Point, stopPoint foundation.Point, controlView IView, flag bool) FieldEditorForView(controlView IView) TextView - CalcDrawInfo(rect foundation.Rect) - TakeIntValueFrom(sender objc.IObject) + TakeObjectValueFrom(sender objc.IObject) + SetUpFieldEditorAttributes(textObj IText) Text + ResetCursorRectInView(cellFrame foundation.Rect, controlView IView) + DrawWithFrameInView(cellFrame foundation.Rect, controlView IView) + MenuForEventInRectOfView(event IEvent, cellFrame foundation.Rect, view IView) Menu + StartTrackingAtInView(startPoint foundation.Point, controlView IView) bool + TakeStringValueFrom(sender objc.IObject) + FocusRingMaskBoundsForFrameInView(cellFrame foundation.Rect, controlView IView) foundation.Rect + DrawWithExpansionFrameInView(cellFrame foundation.Rect, view IView) HitTestForEventInRectOfView(event IEvent, cellFrame foundation.Rect, controlView IView) CellHitResult - SendActionOn(mask EventMask) int + TakeFloatValueFrom(sender objc.IObject) + TakeDoubleValueFrom(sender objc.IObject) + DrawInteriorWithFrameInView(cellFrame foundation.Rect, controlView IView) EditWithFrameInViewEditorDelegateEvent(rect foundation.Rect, controlView IView, textObj IText, delegate objc.IObject, event IEvent) + TitleRectForBounds(rect foundation.Rect) foundation.Rect + CellSizeForBounds(rect foundation.Rect) foundation.Size TakeIntegerValueFrom(sender objc.IObject) EndEditing(textObj IText) - SelectWithFrameInViewEditorDelegateStartLength(rect foundation.Rect, controlView IView, textObj IText, delegate objc.IObject, selStart int, selLength int) - StopTrackingAtInViewMouseIsUp(lastPoint foundation.Point, stopPoint foundation.Point, controlView IView, flag bool) + DrawingRectForBounds(rect foundation.Rect) foundation.Rect + DrawFocusRingMaskWithFrameInView(cellFrame foundation.Rect, controlView IView) + CellAttribute(parameter CellAttribute) int + CalcDrawInfo(rect foundation.Rect) + PerformClick(sender objc.IObject) SetCellAttributeTo(parameter CellAttribute, value int) + TrackMouseInRectOfViewUntilMouseUp(event IEvent, cellFrame foundation.Rect, controlView IView, flag bool) bool + ImageRectForBounds(rect foundation.Rect) foundation.Rect HighlightColorWithFrameInView(cellFrame foundation.Rect, controlView IView) Color - ExpansionFrameWithFrameInView(cellFrame foundation.Rect, view IView) foundation.Rect - TakeObjectValueFrom(sender objc.IObject) - Compare(otherCell objc.IObject) foundation.ComparisonResult - TitleRectForBounds(rect foundation.Rect) foundation.Rect HighlightWithFrameInView(flag bool, cellFrame foundation.Rect, controlView IView) - TakeDoubleValueFrom(sender objc.IObject) - TakeFloatValueFrom(sender objc.IObject) - CellAttribute(parameter CellAttribute) int GetPeriodicDelayInterval(delay *float32, interval *float32) - DrawFocusRingMaskWithFrameInView(cellFrame foundation.Rect, controlView IView) - TrackMouseInRectOfViewUntilMouseUp(event IEvent, cellFrame foundation.Rect, controlView IView, flag bool) bool - SetUpFieldEditorAttributes(textObj IText) Text - CellSizeForBounds(rect foundation.Rect) foundation.Size - DraggingImageComponentsWithFrameInView(frame foundation.Rect, view IView) []DraggingImageComponent - ContinueTrackingAtInView(lastPoint foundation.Point, currentPoint foundation.Point, controlView IView) bool - PerformClick(sender objc.IObject) - FocusRingMaskBoundsForFrameInView(cellFrame foundation.Rect, controlView IView) foundation.Rect - SetNextState() - DrawWithFrameInView(cellFrame foundation.Rect, controlView IView) - DrawInteriorWithFrameInView(cellFrame foundation.Rect, controlView IView) - TakeStringValueFrom(sender objc.IObject) - DrawWithExpansionFrameInView(cellFrame foundation.Rect, view IView) - DrawingRectForBounds(rect foundation.Rect) foundation.Rect - StartTrackingAtInView(startPoint foundation.Point, controlView IView) bool - ImageRectForBounds(rect foundation.Rect) foundation.Rect - MenuForEventInRectOfView(event IEvent, cellFrame foundation.Rect, view IView) Menu - ResetCursorRectInView(cellFrame foundation.Rect, controlView IView) - Target() objc.Object - SetTarget(value objc.IObject) - BackgroundStyle() BackgroundStyle - SetBackgroundStyle(value BackgroundStyle) - WantsNotificationForMarkedText() bool - StringValue() string - SetStringValue(value string) - KeyEquivalent() string - ShowsFirstResponder() bool - SetShowsFirstResponder(value bool) - IsEnabled() bool - SetEnabled(value bool) - AttributedStringValue() foundation.AttributedString - SetAttributedStringValue(value foundation.IAttributedString) - AllowsUndo() bool - SetAllowsUndo(value bool) - AllowsMixedState() bool - SetAllowsMixedState(value bool) - Menu() Menu - SetMenu(value IMenu) - Wraps() bool - SetWraps(value bool) + TakeIntValueFrom(sender objc.IObject) + SendActionOn(mask EventMask) int + Compare(otherCell objc.IObject) foundation.ComparisonResult + ExpansionFrameWithFrameInView(cellFrame foundation.Rect, view IView) foundation.Rect + SelectWithFrameInViewEditorDelegateStartLength(rect foundation.Rect, controlView IView, textObj IText, delegate objc.IObject, selStart int, selLength int) IntegerValue() int SetIntegerValue(value int) - BaseWritingDirection() WritingDirection - SetBaseWritingDirection(value WritingDirection) - IsBezeled() bool - SetBezeled(value bool) - State() ControlStateValue - SetState(value ControlStateValue) - InteriorBackgroundStyle() BackgroundStyle - AllowsEditingTextAttributes() bool - SetAllowsEditingTextAttributes(value bool) - ObjectValue() objc.Object - SetObjectValue(value objc.IObject) - FocusRingType() FocusRingType - SetFocusRingType(value FocusRingType) - HasValidObjectValue() bool - RepresentedObject() objc.Object - SetRepresentedObject(value objc.IObject) + AllowsMixedState() bool + SetAllowsMixedState(value bool) + KeyEquivalent() string + MouseDownFlags() int + IsHighlighted() bool + SetHighlighted(value bool) IntValue() int SetIntValue(value int) - Action() objc.Selector - SetAction(value objc.Selector) + BackgroundStyle() BackgroundStyle + SetBackgroundStyle(value BackgroundStyle) + ControlSize() ControlSize + SetControlSize(value ControlSize) + Target() objc.Object + SetTarget(value objc.IObject) + State() ControlStateValue + SetState(value ControlStateValue) + UsesSingleLineMode() bool + SetUsesSingleLineMode(value bool) IsBordered() bool SetBordered(value bool) - Title() string - SetTitle(value string) - ControlView() View - SetControlView(value IView) - AcceptsFirstResponder() bool - DoubleValue() float64 - SetDoubleValue(value float64) + Action() objc.Selector + SetAction(value objc.Selector) + IsEditable() bool + SetEditable(value bool) + IsContinuous() bool + SetContinuous(value bool) + AttributedStringValue() foundation.AttributedString + SetAttributedStringValue(value foundation.IAttributedString) + StringValue() string + SetStringValue(value string) + Alignment() TextAlignment + SetAlignment(value TextAlignment) + FocusRingType() FocusRingType + SetFocusRingType(value FocusRingType) Formatter() foundation.Formatter SetFormatter(value foundation.IFormatter) + NextState() int + AllowsEditingTextAttributes() bool + SetAllowsEditingTextAttributes(value bool) + HasValidObjectValue() bool + UserInterfaceLayoutDirection() UserInterfaceLayoutDirection + SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) + InteriorBackgroundStyle() BackgroundStyle IsSelectable() bool SetSelectable(value bool) - NextState() int - RefusesFirstResponder() bool - SetRefusesFirstResponder(value bool) - IsEditable() bool - SetEditable(value bool) - IsOpaque() bool ImportsGraphics() bool SetImportsGraphics(value bool) - IsHighlighted() bool - SetHighlighted(value bool) + IsOpaque() bool + DoubleValue() float64 + SetDoubleValue(value float64) + WantsNotificationForMarkedText() bool Font() Font SetFont(value IFont) - MouseDownFlags() int + CellSize() foundation.Size + Menu() Menu + SetMenu(value IMenu) + ObjectValue() objc.Object + SetObjectValue(value objc.IObject) + Wraps() bool + SetWraps(value bool) + AcceptsFirstResponder() bool + ShowsFirstResponder() bool + SetShowsFirstResponder(value bool) + IsScrollable() bool + SetScrollable(value bool) + RepresentedObject() objc.Object + SetRepresentedObject(value objc.IObject) Tag() int SetTag(value int) - FloatValue() float32 - SetFloatValue(value float32) + Title() string + SetTitle(value string) + ControlView() View + SetControlView(value IView) + BaseWritingDirection() WritingDirection + SetBaseWritingDirection(value WritingDirection) Type() CellType SetType(value CellType) - IsContinuous() bool - SetContinuous(value bool) - CellSize() foundation.Size - UserInterfaceLayoutDirection() UserInterfaceLayoutDirection - SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) - UsesSingleLineMode() bool - SetUsesSingleLineMode(value bool) - IsScrollable() bool - SetScrollable(value bool) + FloatValue() float32 + SetFloatValue(value float32) + IsEnabled() bool + SetEnabled(value bool) Image() Image SetImage(value IImage) - ControlSize() ControlSize - SetControlSize(value ControlSize) - SendsActionOnEndEditing() bool - SetSendsActionOnEndEditing(value bool) + RefusesFirstResponder() bool + SetRefusesFirstResponder(value bool) + AllowsUndo() bool + SetAllowsUndo(value bool) + IsBezeled() bool + SetBezeled(value bool) TruncatesLastVisibleLine() bool SetTruncatesLastVisibleLine(value bool) - Alignment() TextAlignment - SetAlignment(value TextAlignment) + SendsActionOnEndEditing() bool + SetSendsActionOnEndEditing(value bool) } // A mechanism for displaying text or images in a view object without the overhead of a full NSView subclass. [Full Topic] @@ -168,11 +168,6 @@ func CellFrom(ptr unsafe.Pointer) Cell { } } -func (c_ Cell) Init() Cell { - rv := objc.Call[Cell](c_, objc.Sel("init")) - return rv -} - func (c_ Cell) InitImageCell(image IImage) Cell { rv := objc.Call[Cell](c_, objc.Sel("initImageCell:"), image) return rv @@ -201,6 +196,11 @@ func NewCellTextCell(string_ string) Cell { return instance } +func (c_ Cell) Init() Cell { + rv := objc.Call[Cell](c_, objc.Sel("init")) + return rv +} + func (cc _CellClass) Alloc() Cell { rv := objc.Call[Cell](cc, objc.Sel("alloc")) return rv @@ -216,70 +216,27 @@ func NewCell() Cell { return CellClass.New() } -// Returns a custom field editor for editing in the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532763-fieldeditorforview?language=objc -func (c_ Cell) FieldEditorForView(controlView IView) TextView { - rv := objc.Call[TextView](c_, objc.Sel("fieldEditorForView:"), controlView) - return rv -} - -// Recalculates the cell geometry. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533752-calcdrawinfo?language=objc -func (c_ Cell) CalcDrawInfo(rect foundation.Rect) { - objc.Call[objc.Void](c_, objc.Sel("calcDrawInfo:"), rect) -} - -// Sets the value of the receiver’s cell to an integer value obtained from the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533920-takeintvaluefrom?language=objc -func (c_ Cell) TakeIntValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeIntValueFrom:"), sender) -} - -// Returns hit testing information for the receiver. [Full Topic] +// Returns a Boolean value that indicates whether mouse tracking should continue in the receiving cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529601-hittestforevent?language=objc -func (c_ Cell) HitTestForEventInRectOfView(event IEvent, cellFrame foundation.Rect, controlView IView) CellHitResult { - rv := objc.Call[CellHitResult](c_, objc.Sel("hitTestForEvent:inRect:ofView:"), event, cellFrame, controlView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535599-continuetracking?language=objc +func (c_ Cell) ContinueTrackingAtInView(lastPoint foundation.Point, currentPoint foundation.Point, controlView IView) bool { + rv := objc.Call[bool](c_, objc.Sel("continueTracking:at:inView:"), lastPoint, currentPoint, controlView) return rv } -// Sets the conditions on which the receiver sends action messages to its target. [Full Topic] +// Generates dragging image components with the specified frame in the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1528114-sendactionon?language=objc -func (c_ Cell) SendActionOn(mask EventMask) int { - rv := objc.Call[int](c_, objc.Sel("sendActionOn:"), mask) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532987-draggingimagecomponentswithframe?language=objc +func (c_ Cell) DraggingImageComponentsWithFrameInView(frame foundation.Rect, view IView) []DraggingImageComponent { + rv := objc.Call[[]DraggingImageComponent](c_, objc.Sel("draggingImageComponentsWithFrame:inView:"), frame, view) return rv } -// Begins editing of the receiver’s text using the specified field editor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533600-editwithframe?language=objc -func (c_ Cell) EditWithFrameInViewEditorDelegateEvent(rect foundation.Rect, controlView IView, textObj IText, delegate objc.IObject, event IEvent) { - objc.Call[objc.Void](c_, objc.Sel("editWithFrame:inView:editor:delegate:event:"), rect, controlView, textObj, delegate, event) -} - -// Sets the value of the receiver’s cell to an integer value obtained from the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534969-takeintegervaluefrom?language=objc -func (c_ Cell) TakeIntegerValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeIntegerValueFrom:"), sender) -} - -// Ends the editing of text in the receiver using the specified field editor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535574-endediting?language=objc -func (c_ Cell) EndEditing(textObj IText) { - objc.Call[objc.Void](c_, objc.Sel("endEditing:"), textObj) -} - -// Selects the specified text range in the cell's field editor. [Full Topic] +// Changes cell’s state to the next value in the sequence. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527438-selectwithframe?language=objc -func (c_ Cell) SelectWithFrameInViewEditorDelegateStartLength(rect foundation.Rect, controlView IView, textObj IText, delegate objc.IObject, selStart int, selLength int) { - objc.Call[objc.Void](c_, objc.Sel("selectWithFrame:inView:editor:delegate:start:length:"), rect, controlView, textObj, delegate, selStart, selLength) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533557-setnextstate?language=objc +func (c_ Cell) SetNextState() { + objc.Call[objc.Void](c_, objc.Sel("setNextState")) } // Stops tracking mouse events within the receiver. [Full Topic] @@ -289,108 +246,122 @@ func (c_ Cell) StopTrackingAtInViewMouseIsUp(lastPoint foundation.Point, stopPoi objc.Call[objc.Void](c_, objc.Sel("stopTracking:at:inView:mouseIsUp:"), lastPoint, stopPoint, controlView, flag) } -// Sets the value for the specified cell attribute. [Full Topic] +// Returns a custom field editor for editing in the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531257-setcellattribute?language=objc -func (c_ Cell) SetCellAttributeTo(parameter CellAttribute, value int) { - objc.Call[objc.Void](c_, objc.Sel("setCellAttribute:to:"), parameter, value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532763-fieldeditorforview?language=objc +func (c_ Cell) FieldEditorForView(controlView IView) TextView { + rv := objc.Call[TextView](c_, objc.Sel("fieldEditorForView:"), controlView) + return rv } -// Returns the color the receiver uses when drawing the selection highlight. [Full Topic] +// Sets the value of the receiver’s cell to the object value obtained from the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534018-highlightcolorwithframe?language=objc -func (c_ Cell) HighlightColorWithFrameInView(cellFrame foundation.Rect, controlView IView) Color { - rv := objc.Call[Color](c_, objc.Sel("highlightColorWithFrame:inView:"), cellFrame, controlView) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529915-takeobjectvaluefrom?language=objc +func (c_ Cell) TakeObjectValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeObjectValueFrom:"), sender) } -// Returns the expansion cell frame for the receiver. [Full Topic] +// Configures the textual and background attributes of the receiver's field editor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526362-expansionframewithframe?language=objc -func (c_ Cell) ExpansionFrameWithFrameInView(cellFrame foundation.Rect, view IView) foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("expansionFrameWithFrame:inView:"), cellFrame, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535864-setupfieldeditorattributes?language=objc +func (c_ Cell) SetUpFieldEditorAttributes(textObj IText) Text { + rv := objc.Call[Text](c_, objc.Sel("setUpFieldEditorAttributes:"), textObj) return rv } -// Sets the value of the receiver’s cell to the object value obtained from the specified object. [Full Topic] +// Sets the receiver to show the I-beam cursor while it tracks the mouse. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529915-takeobjectvaluefrom?language=objc -func (c_ Cell) TakeObjectValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeObjectValueFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524496-resetcursorrect?language=objc +func (c_ Cell) ResetCursorRectInView(cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](c_, objc.Sel("resetCursorRect:inView:"), cellFrame, controlView) } -// Compares the string values of the receiver another cell, disregarding case. [Full Topic] +// Draws the receiver’s border and then draws the interior of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527644-compare?language=objc -func (c_ Cell) Compare(otherCell objc.IObject) foundation.ComparisonResult { - rv := objc.Call[foundation.ComparisonResult](c_, objc.Sel("compare:"), otherCell) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535830-drawwithframe?language=objc +func (c_ Cell) DrawWithFrameInView(cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](c_, objc.Sel("drawWithFrame:inView:"), cellFrame, controlView) +} + +// Returns the menu associated with the cell and related to the specified event and frame. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535924-menuforevent?language=objc +func (c_ Cell) MenuForEventInRectOfView(event IEvent, cellFrame foundation.Rect, view IView) Menu { + rv := objc.Call[Menu](c_, objc.Sel("menuForEvent:inRect:ofView:"), event, cellFrame, view) return rv } -// Returns the rectangle in which the receiver draws its title text. [Full Topic] +// Begins tracking mouse events within the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531281-titlerectforbounds?language=objc -func (c_ Cell) TitleRectForBounds(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("titleRectForBounds:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526663-starttrackingat?language=objc +func (c_ Cell) StartTrackingAtInView(startPoint foundation.Point, controlView IView) bool { + rv := objc.Call[bool](c_, objc.Sel("startTrackingAt:inView:"), startPoint, controlView) return rv } -// Redraws the receiver with the specified highlight setting. [Full Topic] +// Sets the value of the receiver’s cell to the string value obtained from the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533933-highlight?language=objc -func (c_ Cell) HighlightWithFrameInView(flag bool, cellFrame foundation.Rect, controlView IView) { - objc.Call[objc.Void](c_, objc.Sel("highlight:withFrame:inView:"), flag, cellFrame, controlView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527148-takestringvaluefrom?language=objc +func (c_ Cell) TakeStringValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeStringValueFrom:"), sender) } -// Sets the value of the receiver’s cell to a double-precision floating-point value obtained from the specified object. [Full Topic] +// Returns the bounds of the focus ring mask. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526375-takedoublevaluefrom?language=objc -func (c_ Cell) TakeDoubleValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeDoubleValueFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534929-focusringmaskboundsforframe?language=objc +func (c_ Cell) FocusRingMaskBoundsForFrameInView(cellFrame foundation.Rect, controlView IView) foundation.Rect { + rv := objc.Call[foundation.Rect](c_, objc.Sel("focusRingMaskBoundsForFrame:inView:"), cellFrame, controlView) + return rv } -// Sets the value of the receiver’s cell to a single-precision floating-point value obtained from the specified object. [Full Topic] +// Instructs the receiver to draw in an expansion frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535839-takefloatvaluefrom?language=objc -func (c_ Cell) TakeFloatValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeFloatValueFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1528566-drawwithexpansionframe?language=objc +func (c_ Cell) DrawWithExpansionFrameInView(cellFrame foundation.Rect, view IView) { + objc.Call[objc.Void](c_, objc.Sel("drawWithExpansionFrame:inView:"), cellFrame, view) } -// Returns the value for the specified cell attribute. [Full Topic] +// Returns hit testing information for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530877-cellattribute?language=objc -func (c_ Cell) CellAttribute(parameter CellAttribute) int { - rv := objc.Call[int](c_, objc.Sel("cellAttribute:"), parameter) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529601-hittestforevent?language=objc +func (c_ Cell) HitTestForEventInRectOfView(event IEvent, cellFrame foundation.Rect, controlView IView) CellHitResult { + rv := objc.Call[CellHitResult](c_, objc.Sel("hitTestForEvent:inRect:ofView:"), event, cellFrame, controlView) return rv } -// Returns the initial delay and repeat values for continuous sending of action messages to target objects. [Full Topic] +// Sets the value of the receiver’s cell to a single-precision floating-point value obtained from the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535611-getperiodicdelay?language=objc -func (c_ Cell) GetPeriodicDelayInterval(delay *float32, interval *float32) { - objc.Call[objc.Void](c_, objc.Sel("getPeriodicDelay:interval:"), delay, interval) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535839-takefloatvaluefrom?language=objc +func (c_ Cell) TakeFloatValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeFloatValueFrom:"), sender) } -// Draws the focus ring for the control. [Full Topic] +// Sets the value of the receiver’s cell to a double-precision floating-point value obtained from the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524608-drawfocusringmaskwithframe?language=objc -func (c_ Cell) DrawFocusRingMaskWithFrameInView(cellFrame foundation.Rect, controlView IView) { - objc.Call[objc.Void](c_, objc.Sel("drawFocusRingMaskWithFrame:inView:"), cellFrame, controlView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526375-takedoublevaluefrom?language=objc +func (c_ Cell) TakeDoubleValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeDoubleValueFrom:"), sender) } -// Initiates the mouse tracking behavior in a cell. [Full Topic] +// Draws the interior portion of the receiver, which includes the image or text portion but does not include the border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533606-trackmouse?language=objc -func (c_ Cell) TrackMouseInRectOfViewUntilMouseUp(event IEvent, cellFrame foundation.Rect, controlView IView, flag bool) bool { - rv := objc.Call[bool](c_, objc.Sel("trackMouse:inRect:ofView:untilMouseUp:"), event, cellFrame, controlView, flag) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531274-drawinteriorwithframe?language=objc +func (c_ Cell) DrawInteriorWithFrameInView(cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](c_, objc.Sel("drawInteriorWithFrame:inView:"), cellFrame, controlView) } -// Configures the textual and background attributes of the receiver's field editor. [Full Topic] +// Begins editing of the receiver’s text using the specified field editor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535864-setupfieldeditorattributes?language=objc -func (c_ Cell) SetUpFieldEditorAttributes(textObj IText) Text { - rv := objc.Call[Text](c_, objc.Sel("setUpFieldEditorAttributes:"), textObj) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533600-editwithframe?language=objc +func (c_ Cell) EditWithFrameInViewEditorDelegateEvent(rect foundation.Rect, controlView IView, textObj IText, delegate objc.IObject, event IEvent) { + objc.Call[objc.Void](c_, objc.Sel("editWithFrame:inView:editor:delegate:event:"), rect, controlView, textObj, delegate, event) +} + +// Returns the rectangle in which the receiver draws its title text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531281-titlerectforbounds?language=objc +func (c_ Cell) TitleRectForBounds(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](c_, objc.Sel("titleRectForBounds:"), rect) return rv } @@ -402,85 +373,69 @@ func (c_ Cell) CellSizeForBounds(rect foundation.Rect) foundation.Size { return rv } -// Generates dragging image components with the specified frame in the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532987-draggingimagecomponentswithframe?language=objc -func (c_ Cell) DraggingImageComponentsWithFrameInView(frame foundation.Rect, view IView) []DraggingImageComponent { - rv := objc.Call[[]DraggingImageComponent](c_, objc.Sel("draggingImageComponentsWithFrame:inView:"), frame, view) - return rv -} - -// Returns a Boolean value that indicates whether mouse tracking should continue in the receiving cell. [Full Topic] +// Sets the value of the receiver’s cell to an integer value obtained from the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535599-continuetracking?language=objc -func (c_ Cell) ContinueTrackingAtInView(lastPoint foundation.Point, currentPoint foundation.Point, controlView IView) bool { - rv := objc.Call[bool](c_, objc.Sel("continueTracking:at:inView:"), lastPoint, currentPoint, controlView) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534969-takeintegervaluefrom?language=objc +func (c_ Cell) TakeIntegerValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeIntegerValueFrom:"), sender) } -// Simulates a single mouse click on the receiver. [Full Topic] +// Ends the editing of text in the receiver using the specified field editor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534984-performclick?language=objc -func (c_ Cell) PerformClick(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("performClick:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535574-endediting?language=objc +func (c_ Cell) EndEditing(textObj IText) { + objc.Call[objc.Void](c_, objc.Sel("endEditing:"), textObj) } -// Returns the bounds of the focus ring mask. [Full Topic] +// Returns the rectangle within which the receiver draws itself [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534929-focusringmaskboundsforframe?language=objc -func (c_ Cell) FocusRingMaskBoundsForFrameInView(cellFrame foundation.Rect, controlView IView) foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("focusRingMaskBoundsForFrame:inView:"), cellFrame, controlView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526266-drawingrectforbounds?language=objc +func (c_ Cell) DrawingRectForBounds(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](c_, objc.Sel("drawingRectForBounds:"), rect) return rv } -// Changes cell’s state to the next value in the sequence. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533557-setnextstate?language=objc -func (c_ Cell) SetNextState() { - objc.Call[objc.Void](c_, objc.Sel("setNextState")) -} - -// Draws the receiver’s border and then draws the interior of the cell. [Full Topic] +// Draws the focus ring for the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535830-drawwithframe?language=objc -func (c_ Cell) DrawWithFrameInView(cellFrame foundation.Rect, controlView IView) { - objc.Call[objc.Void](c_, objc.Sel("drawWithFrame:inView:"), cellFrame, controlView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524608-drawfocusringmaskwithframe?language=objc +func (c_ Cell) DrawFocusRingMaskWithFrameInView(cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](c_, objc.Sel("drawFocusRingMaskWithFrame:inView:"), cellFrame, controlView) } -// Draws the interior portion of the receiver, which includes the image or text portion but does not include the border. [Full Topic] +// Returns the value for the specified cell attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531274-drawinteriorwithframe?language=objc -func (c_ Cell) DrawInteriorWithFrameInView(cellFrame foundation.Rect, controlView IView) { - objc.Call[objc.Void](c_, objc.Sel("drawInteriorWithFrame:inView:"), cellFrame, controlView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530877-cellattribute?language=objc +func (c_ Cell) CellAttribute(parameter CellAttribute) int { + rv := objc.Call[int](c_, objc.Sel("cellAttribute:"), parameter) + return rv } -// Sets the value of the receiver’s cell to the string value obtained from the specified object. [Full Topic] +// Recalculates the cell geometry. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527148-takestringvaluefrom?language=objc -func (c_ Cell) TakeStringValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeStringValueFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533752-calcdrawinfo?language=objc +func (c_ Cell) CalcDrawInfo(rect foundation.Rect) { + objc.Call[objc.Void](c_, objc.Sel("calcDrawInfo:"), rect) } -// Instructs the receiver to draw in an expansion frame. [Full Topic] +// Simulates a single mouse click on the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1528566-drawwithexpansionframe?language=objc -func (c_ Cell) DrawWithExpansionFrameInView(cellFrame foundation.Rect, view IView) { - objc.Call[objc.Void](c_, objc.Sel("drawWithExpansionFrame:inView:"), cellFrame, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534984-performclick?language=objc +func (c_ Cell) PerformClick(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("performClick:"), sender) } -// Returns the rectangle within which the receiver draws itself [Full Topic] +// Sets the value for the specified cell attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526266-drawingrectforbounds?language=objc -func (c_ Cell) DrawingRectForBounds(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("drawingRectForBounds:"), rect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531257-setcellattribute?language=objc +func (c_ Cell) SetCellAttributeTo(parameter CellAttribute, value int) { + objc.Call[objc.Void](c_, objc.Sel("setCellAttribute:to:"), parameter, value) } -// Begins tracking mouse events within the receiver. [Full Topic] +// Initiates the mouse tracking behavior in a cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526663-starttrackingat?language=objc -func (c_ Cell) StartTrackingAtInView(startPoint foundation.Point, controlView IView) bool { - rv := objc.Call[bool](c_, objc.Sel("startTrackingAt:inView:"), startPoint, controlView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533606-trackmouse?language=objc +func (c_ Cell) TrackMouseInRectOfViewUntilMouseUp(event IEvent, cellFrame foundation.Rect, controlView IView, flag bool) bool { + rv := objc.Call[bool](c_, objc.Sel("trackMouse:inRect:ofView:untilMouseUp:"), event, cellFrame, controlView, flag) return rv } @@ -492,72 +447,94 @@ func (c_ Cell) ImageRectForBounds(rect foundation.Rect) foundation.Rect { return rv } -// Returns the menu associated with the cell and related to the specified event and frame. [Full Topic] +// Returns the color the receiver uses when drawing the selection highlight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535924-menuforevent?language=objc -func (c_ Cell) MenuForEventInRectOfView(event IEvent, cellFrame foundation.Rect, view IView) Menu { - rv := objc.Call[Menu](c_, objc.Sel("menuForEvent:inRect:ofView:"), event, cellFrame, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534018-highlightcolorwithframe?language=objc +func (c_ Cell) HighlightColorWithFrameInView(cellFrame foundation.Rect, controlView IView) Color { + rv := objc.Call[Color](c_, objc.Sel("highlightColorWithFrame:inView:"), cellFrame, controlView) return rv } -// Sets the receiver to show the I-beam cursor while it tracks the mouse. [Full Topic] +// Redraws the receiver with the specified highlight setting. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524496-resetcursorrect?language=objc -func (c_ Cell) ResetCursorRectInView(cellFrame foundation.Rect, controlView IView) { - objc.Call[objc.Void](c_, objc.Sel("resetCursorRect:inView:"), cellFrame, controlView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533933-highlight?language=objc +func (c_ Cell) HighlightWithFrameInView(flag bool, cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](c_, objc.Sel("highlight:withFrame:inView:"), flag, cellFrame, controlView) +} + +// Returns the initial delay and repeat values for continuous sending of action messages to target objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535611-getperiodicdelay?language=objc +func (c_ Cell) GetPeriodicDelayInterval(delay *float32, interval *float32) { + objc.Call[objc.Void](c_, objc.Sel("getPeriodicDelay:interval:"), delay, interval) +} + +// Sets the value of the receiver’s cell to an integer value obtained from the specified object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533920-takeintvaluefrom?language=objc +func (c_ Cell) TakeIntValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeIntValueFrom:"), sender) } -// The object that receives the cell’s action messages. [Full Topic] +// Sets the conditions on which the receiver sends action messages to its target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535832-target?language=objc -func (c_ Cell) Target() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("target")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1528114-sendactionon?language=objc +func (c_ Cell) SendActionOn(mask EventMask) int { + rv := objc.Call[int](c_, objc.Sel("sendActionOn:"), mask) return rv } -// The object that receives the cell’s action messages. [Full Topic] +// Compares the string values of the receiver another cell, disregarding case. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535832-target?language=objc -func (c_ Cell) SetTarget(value objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setTarget:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527644-compare?language=objc +func (c_ Cell) Compare(otherCell objc.IObject) foundation.ComparisonResult { + rv := objc.Call[foundation.ComparisonResult](c_, objc.Sel("compare:"), otherCell) + return rv } -// The cell’s background style. [Full Topic] +// Returns the expansion cell frame for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524686-backgroundstyle?language=objc -func (c_ Cell) BackgroundStyle() BackgroundStyle { - rv := objc.Call[BackgroundStyle](c_, objc.Sel("backgroundStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526362-expansionframewithframe?language=objc +func (c_ Cell) ExpansionFrameWithFrameInView(cellFrame foundation.Rect, view IView) foundation.Rect { + rv := objc.Call[foundation.Rect](c_, objc.Sel("expansionFrameWithFrame:inView:"), cellFrame, view) return rv } -// The cell’s background style. [Full Topic] +// Selects the specified text range in the cell's field editor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524686-backgroundstyle?language=objc -func (c_ Cell) SetBackgroundStyle(value BackgroundStyle) { - objc.Call[objc.Void](c_, objc.Sel("setBackgroundStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527438-selectwithframe?language=objc +func (c_ Cell) SelectWithFrameInViewEditorDelegateStartLength(rect foundation.Rect, controlView IView, textObj IText, delegate objc.IObject, selStart int, selLength int) { + objc.Call[objc.Void](c_, objc.Sel("selectWithFrame:inView:editor:delegate:start:length:"), rect, controlView, textObj, delegate, selStart, selLength) } -// A Boolean value indicating whether the cell’s field editor should post text change notifications. [Full Topic] +// The cell’s value as an NSInteger type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535894-wantsnotificationformarkedtext?language=objc -func (c_ Cell) WantsNotificationForMarkedText() bool { - rv := objc.Call[bool](c_, objc.Sel("wantsNotificationForMarkedText")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527783-integervalue?language=objc +func (c_ Cell) IntegerValue() int { + rv := objc.Call[int](c_, objc.Sel("integerValue")) return rv } -// The cell’s value as a string. [Full Topic] +// The cell’s value as an NSInteger type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530915-stringvalue?language=objc -func (c_ Cell) StringValue() string { - rv := objc.Call[string](c_, objc.Sel("stringValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527783-integervalue?language=objc +func (c_ Cell) SetIntegerValue(value int) { + objc.Call[objc.Void](c_, objc.Sel("setIntegerValue:"), value) +} + +// A Boolean value indicating whether the cell supports three states instead of two. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531578-allowsmixedstate?language=objc +func (c_ Cell) AllowsMixedState() bool { + rv := objc.Call[bool](c_, objc.Sel("allowsMixedState")) return rv } -// The cell’s value as a string. [Full Topic] +// A Boolean value indicating whether the cell supports three states instead of two. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530915-stringvalue?language=objc -func (c_ Cell) SetStringValue(value string) { - objc.Call[objc.Void](c_, objc.Sel("setStringValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531578-allowsmixedstate?language=objc +func (c_ Cell) SetAllowsMixedState(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setAllowsMixedState:"), value) } // The key equivalent associated with clicking the cell. [Full Topic] @@ -568,237 +545,237 @@ func (c_ Cell) KeyEquivalent() string { return rv } -// A Boolean value indicating whether the cell provides a visual indication that it is the first responder. [Full Topic] +// The modifier flags for the last (left) mouse-down event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532415-showsfirstresponder?language=objc -func (c_ Cell) ShowsFirstResponder() bool { - rv := objc.Call[bool](c_, objc.Sel("showsFirstResponder")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527798-mousedownflags?language=objc +func (c_ Cell) MouseDownFlags() int { + rv := objc.Call[int](c_, objc.Sel("mouseDownFlags")) return rv } -// A Boolean value indicating whether the cell provides a visual indication that it is the first responder. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532415-showsfirstresponder?language=objc -func (c_ Cell) SetShowsFirstResponder(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setShowsFirstResponder:"), value) -} - -// A Boolean value indicating whether the cell is currently enabled. [Full Topic] +// A Boolean value indicating whether the cell has a highlighted appearance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533415-enabled?language=objc -func (c_ Cell) IsEnabled() bool { - rv := objc.Call[bool](c_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530864-highlighted?language=objc +func (c_ Cell) IsHighlighted() bool { + rv := objc.Call[bool](c_, objc.Sel("isHighlighted")) return rv } -// A Boolean value indicating whether the cell is currently enabled. [Full Topic] +// A Boolean value indicating whether the cell has a highlighted appearance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533415-enabled?language=objc -func (c_ Cell) SetEnabled(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530864-highlighted?language=objc +func (c_ Cell) SetHighlighted(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setHighlighted:"), value) } -// The cell’s value as an attributed string. [Full Topic] +// Returns the default menu for instances of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534119-attributedstringvalue?language=objc -func (c_ Cell) AttributedStringValue() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](c_, objc.Sel("attributedStringValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531847-defaultmenu?language=objc +func (cc _CellClass) DefaultMenu() Menu { + rv := objc.Call[Menu](cc, objc.Sel("defaultMenu")) return rv } -// The cell’s value as an attributed string. [Full Topic] +// Returns the default menu for instances of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534119-attributedstringvalue?language=objc -func (c_ Cell) SetAttributedStringValue(value foundation.IAttributedString) { - objc.Call[objc.Void](c_, objc.Sel("setAttributedStringValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531847-defaultmenu?language=objc +func Cell_DefaultMenu() Menu { + return CellClass.DefaultMenu() } -// A Boolean value indicating whether the cell assumes responsibility for undo operations. [Full Topic] +// The cell’s value as an integer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531576-allowsundo?language=objc -func (c_ Cell) AllowsUndo() bool { - rv := objc.Call[bool](c_, objc.Sel("allowsUndo")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525170-intvalue?language=objc +func (c_ Cell) IntValue() int { + rv := objc.Call[int](c_, objc.Sel("intValue")) return rv } -// A Boolean value indicating whether the cell assumes responsibility for undo operations. [Full Topic] +// The cell’s value as an integer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531576-allowsundo?language=objc -func (c_ Cell) SetAllowsUndo(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setAllowsUndo:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525170-intvalue?language=objc +func (c_ Cell) SetIntValue(value int) { + objc.Call[objc.Void](c_, objc.Sel("setIntValue:"), value) } -// A Boolean value indicating whether the cell supports three states instead of two. [Full Topic] +// The cell’s background style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531578-allowsmixedstate?language=objc -func (c_ Cell) AllowsMixedState() bool { - rv := objc.Call[bool](c_, objc.Sel("allowsMixedState")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524686-backgroundstyle?language=objc +func (c_ Cell) BackgroundStyle() BackgroundStyle { + rv := objc.Call[BackgroundStyle](c_, objc.Sel("backgroundStyle")) return rv } -// A Boolean value indicating whether the cell supports three states instead of two. [Full Topic] +// The cell’s background style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531578-allowsmixedstate?language=objc -func (c_ Cell) SetAllowsMixedState(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setAllowsMixedState:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524686-backgroundstyle?language=objc +func (c_ Cell) SetBackgroundStyle(value BackgroundStyle) { + objc.Call[objc.Void](c_, objc.Sel("setBackgroundStyle:"), value) } -// The cell’s contextual menu. [Full Topic] +// The size of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530019-menu?language=objc -func (c_ Cell) Menu() Menu { - rv := objc.Call[Menu](c_, objc.Sel("menu")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530780-controlsize?language=objc +func (c_ Cell) ControlSize() ControlSize { + rv := objc.Call[ControlSize](c_, objc.Sel("controlSize")) return rv } -// The cell’s contextual menu. [Full Topic] +// The size of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530019-menu?language=objc -func (c_ Cell) SetMenu(value IMenu) { - objc.Call[objc.Void](c_, objc.Sel("setMenu:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530780-controlsize?language=objc +func (c_ Cell) SetControlSize(value ControlSize) { + objc.Call[objc.Void](c_, objc.Sel("setControlSize:"), value) } -// A Boolean value indicating whether the cell wraps text whose length that exceeds the cell’s frame. [Full Topic] +// The object that receives the cell’s action messages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527479-wraps?language=objc -func (c_ Cell) Wraps() bool { - rv := objc.Call[bool](c_, objc.Sel("wraps")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535832-target?language=objc +func (c_ Cell) Target() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("target")) return rv } -// A Boolean value indicating whether the cell wraps text whose length that exceeds the cell’s frame. [Full Topic] +// The object that receives the cell’s action messages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527479-wraps?language=objc -func (c_ Cell) SetWraps(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setWraps:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535832-target?language=objc +func (c_ Cell) SetTarget(value objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setTarget:"), value) } -// The cell’s value as an NSInteger type. [Full Topic] +// The cell’s current state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527783-integervalue?language=objc -func (c_ Cell) IntegerValue() int { - rv := objc.Call[int](c_, objc.Sel("integerValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527417-state?language=objc +func (c_ Cell) State() ControlStateValue { + rv := objc.Call[ControlStateValue](c_, objc.Sel("state")) return rv } -// The cell’s value as an NSInteger type. [Full Topic] +// The cell’s current state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527783-integervalue?language=objc -func (c_ Cell) SetIntegerValue(value int) { - objc.Call[objc.Void](c_, objc.Sel("setIntegerValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527417-state?language=objc +func (c_ Cell) SetState(value ControlStateValue) { + objc.Call[objc.Void](c_, objc.Sel("setState:"), value) } -// The initial writing direction used to determine the actual writing direction for text. [Full Topic] +// A Boolean value indicating whether the cell restricts layout and rendering of text to a single line. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525503-basewritingdirection?language=objc -func (c_ Cell) BaseWritingDirection() WritingDirection { - rv := objc.Call[WritingDirection](c_, objc.Sel("baseWritingDirection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525481-usessinglelinemode?language=objc +func (c_ Cell) UsesSingleLineMode() bool { + rv := objc.Call[bool](c_, objc.Sel("usesSingleLineMode")) return rv } -// The initial writing direction used to determine the actual writing direction for text. [Full Topic] +// A Boolean value indicating whether the cell restricts layout and rendering of text to a single line. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525503-basewritingdirection?language=objc -func (c_ Cell) SetBaseWritingDirection(value WritingDirection) { - objc.Call[objc.Void](c_, objc.Sel("setBaseWritingDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525481-usessinglelinemode?language=objc +func (c_ Cell) SetUsesSingleLineMode(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setUsesSingleLineMode:"), value) } -// Returns the default menu for instances of the cell. [Full Topic] +// A Boolean value indicating whether the cell draws itself outlined with a plain border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531847-defaultmenu?language=objc -func (cc _CellClass) DefaultMenu() Menu { - rv := objc.Call[Menu](cc, objc.Sel("defaultMenu")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525990-bordered?language=objc +func (c_ Cell) IsBordered() bool { + rv := objc.Call[bool](c_, objc.Sel("isBordered")) return rv } -// Returns the default menu for instances of the cell. [Full Topic] +// A Boolean value indicating whether the cell draws itself outlined with a plain border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531847-defaultmenu?language=objc -func Cell_DefaultMenu() Menu { - return CellClass.DefaultMenu() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525990-bordered?language=objc +func (c_ Cell) SetBordered(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setBordered:"), value) } -// A Boolean value indicating whether the cell has a bezeled border. [Full Topic] +// The action performed by the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533376-bezeled?language=objc -func (c_ Cell) IsBezeled() bool { - rv := objc.Call[bool](c_, objc.Sel("isBezeled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524654-action?language=objc +func (c_ Cell) Action() objc.Selector { + rv := objc.Call[objc.Selector](c_, objc.Sel("action")) return rv } -// A Boolean value indicating whether the cell has a bezeled border. [Full Topic] +// The action performed by the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533376-bezeled?language=objc -func (c_ Cell) SetBezeled(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setBezeled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524654-action?language=objc +func (c_ Cell) SetAction(value objc.Selector) { + objc.Call[objc.Void](c_, objc.Sel("setAction:"), value) } -// The cell’s current state. [Full Topic] +// A Boolean value indicating whether the cell is editable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527417-state?language=objc -func (c_ Cell) State() ControlStateValue { - rv := objc.Call[ControlStateValue](c_, objc.Sel("state")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535822-editable?language=objc +func (c_ Cell) IsEditable() bool { + rv := objc.Call[bool](c_, objc.Sel("isEditable")) return rv } -// The cell’s current state. [Full Topic] +// A Boolean value indicating whether the cell is editable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527417-state?language=objc -func (c_ Cell) SetState(value ControlStateValue) { - objc.Call[objc.Void](c_, objc.Sel("setState:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535822-editable?language=objc +func (c_ Cell) SetEditable(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setEditable:"), value) } -// The cell’s interior background style. [Full Topic] +// A Boolean value indicating whether the cell sends its action message continuously during mouse tracking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526141-interiorbackgroundstyle?language=objc -func (c_ Cell) InteriorBackgroundStyle() BackgroundStyle { - rv := objc.Call[BackgroundStyle](c_, objc.Sel("interiorBackgroundStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529179-continuous?language=objc +func (c_ Cell) IsContinuous() bool { + rv := objc.Call[bool](c_, objc.Sel("isContinuous")) return rv } -// A Boolean value indicating whether the cell allows the editing of its content’s text attributes by the user. [Full Topic] +// A Boolean value indicating whether the cell sends its action message continuously during mouse tracking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535675-allowseditingtextattributes?language=objc -func (c_ Cell) AllowsEditingTextAttributes() bool { - rv := objc.Call[bool](c_, objc.Sel("allowsEditingTextAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529179-continuous?language=objc +func (c_ Cell) SetContinuous(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setContinuous:"), value) +} + +// The cell’s value as an attributed string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534119-attributedstringvalue?language=objc +func (c_ Cell) AttributedStringValue() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](c_, objc.Sel("attributedStringValue")) return rv } -// A Boolean value indicating whether the cell allows the editing of its content’s text attributes by the user. [Full Topic] +// The cell’s value as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535675-allowseditingtextattributes?language=objc -func (c_ Cell) SetAllowsEditingTextAttributes(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setAllowsEditingTextAttributes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534119-attributedstringvalue?language=objc +func (c_ Cell) SetAttributedStringValue(value foundation.IAttributedString) { + objc.Call[objc.Void](c_, objc.Sel("setAttributedStringValue:"), value) } -// The cell’s value as an Objective-C object. [Full Topic] +// The cell’s value as a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530936-objectvalue?language=objc -func (c_ Cell) ObjectValue() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("objectValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530915-stringvalue?language=objc +func (c_ Cell) StringValue() string { + rv := objc.Call[string](c_, objc.Sel("stringValue")) return rv } -// The cell’s value as an Objective-C object. [Full Topic] +// The cell’s value as a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530936-objectvalue?language=objc -func (c_ Cell) SetObjectValue(value objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setObjectValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530915-stringvalue?language=objc +func (c_ Cell) SetStringValue(value string) { + objc.Call[objc.Void](c_, objc.Sel("setStringValue:"), value) } -// Returns a Boolean value that indicates whether tracking stops when the cursor leaves the cell. [Full Topic] +// The alignment of the cell’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530790-preferstrackinguntilmouseup?language=objc -func (cc _CellClass) PrefersTrackingUntilMouseUp() bool { - rv := objc.Call[bool](cc, objc.Sel("prefersTrackingUntilMouseUp")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534359-alignment?language=objc +func (c_ Cell) Alignment() TextAlignment { + rv := objc.Call[TextAlignment](c_, objc.Sel("alignment")) return rv } -// Returns a Boolean value that indicates whether tracking stops when the cursor leaves the cell. [Full Topic] +// The alignment of the cell’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530790-preferstrackinguntilmouseup?language=objc -func Cell_PrefersTrackingUntilMouseUp() bool { - return CellClass.PrefersTrackingUntilMouseUp() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534359-alignment?language=objc +func (c_ Cell) SetAlignment(value TextAlignment) { + objc.Call[objc.Void](c_, objc.Sel("setAlignment:"), value) } // The type of focus ring to use with the associated view. [Full Topic] @@ -816,109 +793,110 @@ func (c_ Cell) SetFocusRingType(value FocusRingType) { objc.Call[objc.Void](c_, objc.Sel("setFocusRingType:"), value) } -// A Boolean value that indicates whether the cell has a valid object value. [Full Topic] +// The cell’s formatter object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534009-hasvalidobjectvalue?language=objc -func (c_ Cell) HasValidObjectValue() bool { - rv := objc.Call[bool](c_, objc.Sel("hasValidObjectValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531115-formatter?language=objc +func (c_ Cell) Formatter() foundation.Formatter { + rv := objc.Call[foundation.Formatter](c_, objc.Sel("formatter")) return rv } -// The object represented by the cell. [Full Topic] +// The cell’s formatter object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533116-representedobject?language=objc -func (c_ Cell) RepresentedObject() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("representedObject")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531115-formatter?language=objc +func (c_ Cell) SetFormatter(value foundation.IFormatter) { + objc.Call[objc.Void](c_, objc.Sel("setFormatter:"), value) } -// The object represented by the cell. [Full Topic] +// The cell’s next state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533116-representedobject?language=objc -func (c_ Cell) SetRepresentedObject(value objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setRepresentedObject:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531235-nextstate?language=objc +func (c_ Cell) NextState() int { + rv := objc.Call[int](c_, objc.Sel("nextState")) + return rv } -// The cell’s value as an integer. [Full Topic] +// A Boolean value indicating whether the cell allows the editing of its content’s text attributes by the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525170-intvalue?language=objc -func (c_ Cell) IntValue() int { - rv := objc.Call[int](c_, objc.Sel("intValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535675-allowseditingtextattributes?language=objc +func (c_ Cell) AllowsEditingTextAttributes() bool { + rv := objc.Call[bool](c_, objc.Sel("allowsEditingTextAttributes")) return rv } -// The cell’s value as an integer. [Full Topic] +// A Boolean value indicating whether the cell allows the editing of its content’s text attributes by the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525170-intvalue?language=objc -func (c_ Cell) SetIntValue(value int) { - objc.Call[objc.Void](c_, objc.Sel("setIntValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535675-allowseditingtextattributes?language=objc +func (c_ Cell) SetAllowsEditingTextAttributes(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setAllowsEditingTextAttributes:"), value) } -// The action performed by the cell. [Full Topic] +// A Boolean value that indicates whether the cell has a valid object value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524654-action?language=objc -func (c_ Cell) Action() objc.Selector { - rv := objc.Call[objc.Selector](c_, objc.Sel("action")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534009-hasvalidobjectvalue?language=objc +func (c_ Cell) HasValidObjectValue() bool { + rv := objc.Call[bool](c_, objc.Sel("hasValidObjectValue")) return rv } -// The action performed by the cell. [Full Topic] +// The layout direction of the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524654-action?language=objc -func (c_ Cell) SetAction(value objc.Selector) { - objc.Call[objc.Void](c_, objc.Sel("setAction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529213-userinterfacelayoutdirection?language=objc +func (c_ Cell) UserInterfaceLayoutDirection() UserInterfaceLayoutDirection { + rv := objc.Call[UserInterfaceLayoutDirection](c_, objc.Sel("userInterfaceLayoutDirection")) + return rv } -// A Boolean value indicating whether the cell draws itself outlined with a plain border. [Full Topic] +// The layout direction of the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525990-bordered?language=objc -func (c_ Cell) IsBordered() bool { - rv := objc.Call[bool](c_, objc.Sel("isBordered")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529213-userinterfacelayoutdirection?language=objc +func (c_ Cell) SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) { + objc.Call[objc.Void](c_, objc.Sel("setUserInterfaceLayoutDirection:"), value) } -// A Boolean value indicating whether the cell draws itself outlined with a plain border. [Full Topic] +// The cell’s interior background style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525990-bordered?language=objc -func (c_ Cell) SetBordered(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setBordered:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526141-interiorbackgroundstyle?language=objc +func (c_ Cell) InteriorBackgroundStyle() BackgroundStyle { + rv := objc.Call[BackgroundStyle](c_, objc.Sel("interiorBackgroundStyle")) + return rv } -// The cell’s title text. [Full Topic] +// A Boolean value indicating whether the cell’s text can be selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525561-title?language=objc -func (c_ Cell) Title() string { - rv := objc.Call[string](c_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529411-selectable?language=objc +func (c_ Cell) IsSelectable() bool { + rv := objc.Call[bool](c_, objc.Sel("isSelectable")) return rv } -// The cell’s title text. [Full Topic] +// A Boolean value indicating whether the cell’s text can be selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525561-title?language=objc -func (c_ Cell) SetTitle(value string) { - objc.Call[objc.Void](c_, objc.Sel("setTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529411-selectable?language=objc +func (c_ Cell) SetSelectable(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSelectable:"), value) } -// The view associated with the cell. [Full Topic] +// A Boolean value indicating whether the cell supports the importation of images into its text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535913-controlview?language=objc -func (c_ Cell) ControlView() View { - rv := objc.Call[View](c_, objc.Sel("controlView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532380-importsgraphics?language=objc +func (c_ Cell) ImportsGraphics() bool { + rv := objc.Call[bool](c_, objc.Sel("importsGraphics")) return rv } -// The view associated with the cell. [Full Topic] +// A Boolean value indicating whether the cell supports the importation of images into its text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535913-controlview?language=objc -func (c_ Cell) SetControlView(value IView) { - objc.Call[objc.Void](c_, objc.Sel("setControlView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532380-importsgraphics?language=objc +func (c_ Cell) SetImportsGraphics(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setImportsGraphics:"), value) } -// A Boolean value indicating whether the cell accepts first responder status. [Full Topic] +// A Boolean value indicating whether the cell is completely opaque. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525710-acceptsfirstresponder?language=objc -func (c_ Cell) AcceptsFirstResponder() bool { - rv := objc.Call[bool](c_, objc.Sel("acceptsFirstResponder")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531610-opaque?language=objc +func (c_ Cell) IsOpaque() bool { + rv := objc.Call[bool](c_, objc.Sel("isOpaque")) return rv } @@ -937,34 +915,27 @@ func (c_ Cell) SetDoubleValue(value float64) { objc.Call[objc.Void](c_, objc.Sel("setDoubleValue:"), value) } -// The cell’s formatter object. [Full Topic] +// A Boolean value indicating whether the cell’s field editor should post text change notifications. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531115-formatter?language=objc -func (c_ Cell) Formatter() foundation.Formatter { - rv := objc.Call[foundation.Formatter](c_, objc.Sel("formatter")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535894-wantsnotificationformarkedtext?language=objc +func (c_ Cell) WantsNotificationForMarkedText() bool { + rv := objc.Call[bool](c_, objc.Sel("wantsNotificationForMarkedText")) return rv } -// The cell’s formatter object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531115-formatter?language=objc -func (c_ Cell) SetFormatter(value foundation.IFormatter) { - objc.Call[objc.Void](c_, objc.Sel("setFormatter:"), value) -} - -// A Boolean value indicating whether the cell’s text can be selected. [Full Topic] +// The font that the cell uses to display text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529411-selectable?language=objc -func (c_ Cell) IsSelectable() bool { - rv := objc.Call[bool](c_, objc.Sel("isSelectable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526710-font?language=objc +func (c_ Cell) Font() Font { + rv := objc.Call[Font](c_, objc.Sel("font")) return rv } -// A Boolean value indicating whether the cell’s text can be selected. [Full Topic] +// The font that the cell uses to display text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529411-selectable?language=objc -func (c_ Cell) SetSelectable(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setSelectable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526710-font?language=objc +func (c_ Cell) SetFont(value IFont) { + objc.Call[objc.Void](c_, objc.Sel("setFont:"), value) } // Returns the default type of focus ring for the receiver. [Full Topic] @@ -982,103 +953,125 @@ func Cell_DefaultFocusRingType() FocusRingType { return CellClass.DefaultFocusRingType() } -// The cell’s next state. [Full Topic] +// The minimum size needed to display the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531235-nextstate?language=objc -func (c_ Cell) NextState() int { - rv := objc.Call[int](c_, objc.Sel("nextState")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532056-cellsize?language=objc +func (c_ Cell) CellSize() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("cellSize")) return rv } -// A Boolean value indicating whether the cell refuses the first responder status. [Full Topic] +// The cell’s contextual menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525857-refusesfirstresponder?language=objc -func (c_ Cell) RefusesFirstResponder() bool { - rv := objc.Call[bool](c_, objc.Sel("refusesFirstResponder")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530019-menu?language=objc +func (c_ Cell) Menu() Menu { + rv := objc.Call[Menu](c_, objc.Sel("menu")) + return rv +} + +// The cell’s contextual menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530019-menu?language=objc +func (c_ Cell) SetMenu(value IMenu) { + objc.Call[objc.Void](c_, objc.Sel("setMenu:"), value) +} + +// The cell’s value as an Objective-C object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530936-objectvalue?language=objc +func (c_ Cell) ObjectValue() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("objectValue")) + return rv +} + +// The cell’s value as an Objective-C object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530936-objectvalue?language=objc +func (c_ Cell) SetObjectValue(value objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setObjectValue:"), value) +} + +// A Boolean value indicating whether the cell wraps text whose length that exceeds the cell’s frame. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527479-wraps?language=objc +func (c_ Cell) Wraps() bool { + rv := objc.Call[bool](c_, objc.Sel("wraps")) return rv } -// A Boolean value indicating whether the cell refuses the first responder status. [Full Topic] +// A Boolean value indicating whether the cell wraps text whose length that exceeds the cell’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525857-refusesfirstresponder?language=objc -func (c_ Cell) SetRefusesFirstResponder(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setRefusesFirstResponder:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527479-wraps?language=objc +func (c_ Cell) SetWraps(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setWraps:"), value) } -// A Boolean value indicating whether the cell is editable. [Full Topic] +// Returns a Boolean value that indicates whether tracking stops when the cursor leaves the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535822-editable?language=objc -func (c_ Cell) IsEditable() bool { - rv := objc.Call[bool](c_, objc.Sel("isEditable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530790-preferstrackinguntilmouseup?language=objc +func (cc _CellClass) PrefersTrackingUntilMouseUp() bool { + rv := objc.Call[bool](cc, objc.Sel("prefersTrackingUntilMouseUp")) return rv } -// A Boolean value indicating whether the cell is editable. [Full Topic] +// Returns a Boolean value that indicates whether tracking stops when the cursor leaves the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535822-editable?language=objc -func (c_ Cell) SetEditable(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setEditable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530790-preferstrackinguntilmouseup?language=objc +func Cell_PrefersTrackingUntilMouseUp() bool { + return CellClass.PrefersTrackingUntilMouseUp() } -// A Boolean value indicating whether the cell is completely opaque. [Full Topic] +// A Boolean value indicating whether the cell accepts first responder status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531610-opaque?language=objc -func (c_ Cell) IsOpaque() bool { - rv := objc.Call[bool](c_, objc.Sel("isOpaque")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525710-acceptsfirstresponder?language=objc +func (c_ Cell) AcceptsFirstResponder() bool { + rv := objc.Call[bool](c_, objc.Sel("acceptsFirstResponder")) return rv } -// A Boolean value indicating whether the cell supports the importation of images into its text. [Full Topic] +// A Boolean value indicating whether the cell provides a visual indication that it is the first responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532380-importsgraphics?language=objc -func (c_ Cell) ImportsGraphics() bool { - rv := objc.Call[bool](c_, objc.Sel("importsGraphics")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532415-showsfirstresponder?language=objc +func (c_ Cell) ShowsFirstResponder() bool { + rv := objc.Call[bool](c_, objc.Sel("showsFirstResponder")) return rv } -// A Boolean value indicating whether the cell supports the importation of images into its text. [Full Topic] +// A Boolean value indicating whether the cell provides a visual indication that it is the first responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532380-importsgraphics?language=objc -func (c_ Cell) SetImportsGraphics(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setImportsGraphics:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532415-showsfirstresponder?language=objc +func (c_ Cell) SetShowsFirstResponder(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setShowsFirstResponder:"), value) } -// A Boolean value indicating whether the cell has a highlighted appearance. [Full Topic] +// A Boolean value indicating whether excess text scrolls past the cell’s bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530864-highlighted?language=objc -func (c_ Cell) IsHighlighted() bool { - rv := objc.Call[bool](c_, objc.Sel("isHighlighted")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534125-scrollable?language=objc +func (c_ Cell) IsScrollable() bool { + rv := objc.Call[bool](c_, objc.Sel("isScrollable")) return rv } -// A Boolean value indicating whether the cell has a highlighted appearance. [Full Topic] +// A Boolean value indicating whether excess text scrolls past the cell’s bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530864-highlighted?language=objc -func (c_ Cell) SetHighlighted(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setHighlighted:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534125-scrollable?language=objc +func (c_ Cell) SetScrollable(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setScrollable:"), value) } -// The font that the cell uses to display text. [Full Topic] +// The object represented by the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526710-font?language=objc -func (c_ Cell) Font() Font { - rv := objc.Call[Font](c_, objc.Sel("font")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533116-representedobject?language=objc +func (c_ Cell) RepresentedObject() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("representedObject")) return rv } -// The font that the cell uses to display text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526710-font?language=objc -func (c_ Cell) SetFont(value IFont) { - objc.Call[objc.Void](c_, objc.Sel("setFont:"), value) -} - -// The modifier flags for the last (left) mouse-down event. [Full Topic] +// The object represented by the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1527798-mousedownflags?language=objc -func (c_ Cell) MouseDownFlags() int { - rv := objc.Call[int](c_, objc.Sel("mouseDownFlags")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533116-representedobject?language=objc +func (c_ Cell) SetRepresentedObject(value objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setRepresentedObject:"), value) } // A tag for identifying the cell. [Full Topic] @@ -1096,102 +1089,94 @@ func (c_ Cell) SetTag(value int) { objc.Call[objc.Void](c_, objc.Sel("setTag:"), value) } -// The cell’s value as a single-precision floating-point number. [Full Topic] +// The cell’s title text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534292-floatvalue?language=objc -func (c_ Cell) FloatValue() float32 { - rv := objc.Call[float32](c_, objc.Sel("floatValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525561-title?language=objc +func (c_ Cell) Title() string { + rv := objc.Call[string](c_, objc.Sel("title")) return rv } -// The cell’s value as a single-precision floating-point number. [Full Topic] +// The cell’s title text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534292-floatvalue?language=objc -func (c_ Cell) SetFloatValue(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setFloatValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525561-title?language=objc +func (c_ Cell) SetTitle(value string) { + objc.Call[objc.Void](c_, objc.Sel("setTitle:"), value) } -// The type of the cell. [Full Topic] +// The view associated with the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524871-type?language=objc -func (c_ Cell) Type() CellType { - rv := objc.Call[CellType](c_, objc.Sel("type")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535913-controlview?language=objc +func (c_ Cell) ControlView() View { + rv := objc.Call[View](c_, objc.Sel("controlView")) return rv } -// The type of the cell. [Full Topic] +// The view associated with the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524871-type?language=objc -func (c_ Cell) SetType(value CellType) { - objc.Call[objc.Void](c_, objc.Sel("setType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535913-controlview?language=objc +func (c_ Cell) SetControlView(value IView) { + objc.Call[objc.Void](c_, objc.Sel("setControlView:"), value) } -// A Boolean value indicating whether the cell sends its action message continuously during mouse tracking. [Full Topic] +// The initial writing direction used to determine the actual writing direction for text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529179-continuous?language=objc -func (c_ Cell) IsContinuous() bool { - rv := objc.Call[bool](c_, objc.Sel("isContinuous")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525503-basewritingdirection?language=objc +func (c_ Cell) BaseWritingDirection() WritingDirection { + rv := objc.Call[WritingDirection](c_, objc.Sel("baseWritingDirection")) return rv } -// A Boolean value indicating whether the cell sends its action message continuously during mouse tracking. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529179-continuous?language=objc -func (c_ Cell) SetContinuous(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setContinuous:"), value) -} - -// The minimum size needed to display the cell. [Full Topic] +// The initial writing direction used to determine the actual writing direction for text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1532056-cellsize?language=objc -func (c_ Cell) CellSize() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("cellSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525503-basewritingdirection?language=objc +func (c_ Cell) SetBaseWritingDirection(value WritingDirection) { + objc.Call[objc.Void](c_, objc.Sel("setBaseWritingDirection:"), value) } -// The layout direction of the user interface. [Full Topic] +// The type of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529213-userinterfacelayoutdirection?language=objc -func (c_ Cell) UserInterfaceLayoutDirection() UserInterfaceLayoutDirection { - rv := objc.Call[UserInterfaceLayoutDirection](c_, objc.Sel("userInterfaceLayoutDirection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524871-type?language=objc +func (c_ Cell) Type() CellType { + rv := objc.Call[CellType](c_, objc.Sel("type")) return rv } -// The layout direction of the user interface. [Full Topic] +// The type of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1529213-userinterfacelayoutdirection?language=objc -func (c_ Cell) SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) { - objc.Call[objc.Void](c_, objc.Sel("setUserInterfaceLayoutDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1524871-type?language=objc +func (c_ Cell) SetType(value CellType) { + objc.Call[objc.Void](c_, objc.Sel("setType:"), value) } -// A Boolean value indicating whether the cell restricts layout and rendering of text to a single line. [Full Topic] +// The cell’s value as a single-precision floating-point number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525481-usessinglelinemode?language=objc -func (c_ Cell) UsesSingleLineMode() bool { - rv := objc.Call[bool](c_, objc.Sel("usesSingleLineMode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534292-floatvalue?language=objc +func (c_ Cell) FloatValue() float32 { + rv := objc.Call[float32](c_, objc.Sel("floatValue")) return rv } -// A Boolean value indicating whether the cell restricts layout and rendering of text to a single line. [Full Topic] +// The cell’s value as a single-precision floating-point number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525481-usessinglelinemode?language=objc -func (c_ Cell) SetUsesSingleLineMode(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setUsesSingleLineMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534292-floatvalue?language=objc +func (c_ Cell) SetFloatValue(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setFloatValue:"), value) } -// A Boolean value indicating whether excess text scrolls past the cell’s bounds. [Full Topic] +// A Boolean value indicating whether the cell is currently enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534125-scrollable?language=objc -func (c_ Cell) IsScrollable() bool { - rv := objc.Call[bool](c_, objc.Sel("isScrollable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533415-enabled?language=objc +func (c_ Cell) IsEnabled() bool { + rv := objc.Call[bool](c_, objc.Sel("isEnabled")) return rv } -// A Boolean value indicating whether excess text scrolls past the cell’s bounds. [Full Topic] +// A Boolean value indicating whether the cell is currently enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534125-scrollable?language=objc -func (c_ Cell) SetScrollable(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setScrollable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533415-enabled?language=objc +func (c_ Cell) SetEnabled(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) } // The image displayed by the cell, if any. [Full Topic] @@ -1209,34 +1194,49 @@ func (c_ Cell) SetImage(value IImage) { objc.Call[objc.Void](c_, objc.Sel("setImage:"), value) } -// The size of the cell. [Full Topic] +// A Boolean value indicating whether the cell refuses the first responder status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530780-controlsize?language=objc -func (c_ Cell) ControlSize() ControlSize { - rv := objc.Call[ControlSize](c_, objc.Sel("controlSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525857-refusesfirstresponder?language=objc +func (c_ Cell) RefusesFirstResponder() bool { + rv := objc.Call[bool](c_, objc.Sel("refusesFirstResponder")) return rv } -// The size of the cell. [Full Topic] +// A Boolean value indicating whether the cell refuses the first responder status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1530780-controlsize?language=objc -func (c_ Cell) SetControlSize(value ControlSize) { - objc.Call[objc.Void](c_, objc.Sel("setControlSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1525857-refusesfirstresponder?language=objc +func (c_ Cell) SetRefusesFirstResponder(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setRefusesFirstResponder:"), value) } -// A Boolean value indicating whether the cell’s control object sends its action message when the user finishes editing the cell’s text. [Full Topic] +// A Boolean value indicating whether the cell assumes responsibility for undo operations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526617-sendsactiononendediting?language=objc -func (c_ Cell) SendsActionOnEndEditing() bool { - rv := objc.Call[bool](c_, objc.Sel("sendsActionOnEndEditing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531576-allowsundo?language=objc +func (c_ Cell) AllowsUndo() bool { + rv := objc.Call[bool](c_, objc.Sel("allowsUndo")) return rv } -// A Boolean value indicating whether the cell’s control object sends its action message when the user finishes editing the cell’s text. [Full Topic] +// A Boolean value indicating whether the cell assumes responsibility for undo operations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526617-sendsactiononendediting?language=objc -func (c_ Cell) SetSendsActionOnEndEditing(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setSendsActionOnEndEditing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1531576-allowsundo?language=objc +func (c_ Cell) SetAllowsUndo(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setAllowsUndo:"), value) +} + +// A Boolean value indicating whether the cell has a bezeled border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533376-bezeled?language=objc +func (c_ Cell) IsBezeled() bool { + rv := objc.Call[bool](c_, objc.Sel("isBezeled")) + return rv +} + +// A Boolean value indicating whether the cell has a bezeled border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533376-bezeled?language=objc +func (c_ Cell) SetBezeled(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setBezeled:"), value) } // A Boolean value indicating whether the cell truncates text that does not fit within the cell’s bounds. [Full Topic] @@ -1254,17 +1254,17 @@ func (c_ Cell) SetTruncatesLastVisibleLine(value bool) { objc.Call[objc.Void](c_, objc.Sel("setTruncatesLastVisibleLine:"), value) } -// The alignment of the cell’s text. [Full Topic] +// A Boolean value indicating whether the cell’s control object sends its action message when the user finishes editing the cell’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534359-alignment?language=objc -func (c_ Cell) Alignment() TextAlignment { - rv := objc.Call[TextAlignment](c_, objc.Sel("alignment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526617-sendsactiononendediting?language=objc +func (c_ Cell) SendsActionOnEndEditing() bool { + rv := objc.Call[bool](c_, objc.Sel("sendsActionOnEndEditing")) return rv } -// The alignment of the cell’s text. [Full Topic] +// A Boolean value indicating whether the cell’s control object sends its action message when the user finishes editing the cell’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534359-alignment?language=objc -func (c_ Cell) SetAlignment(value TextAlignment) { - objc.Call[objc.Void](c_, objc.Sel("setAlignment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1526617-sendsactiononendediting?language=objc +func (c_ Cell) SetSendsActionOnEndEditing(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSendsActionOnEndEditing:"), value) } diff --git a/macos/appkit/ci_image_rep.gen.go b/macos/appkit/ci_image_rep.gen.go index 9facefa1..c6904182 100644 --- a/macos/appkit/ci_image_rep.gen.go +++ b/macos/appkit/ci_image_rep.gen.go @@ -35,18 +35,6 @@ func CIImageRepFrom(ptr unsafe.Pointer) CIImageRep { } } -func (cc _CIImageRepClass) ImageRepWithCIImage(image coreimage.IImage) CIImageRep { - rv := objc.Call[CIImageRep](cc, objc.Sel("imageRepWithCIImage:"), image) - return rv -} - -// Creates and returns a representation of an image initialized to the specified Core Image instance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsciimagerep/1550736-imagerepwithciimage?language=objc -func CIImageRep_ImageRepWithCIImage(image coreimage.IImage) CIImageRep { - return CIImageRepClass.ImageRepWithCIImage(image) -} - func (c_ CIImageRep) InitWithCIImage(image coreimage.IImage) CIImageRep { rv := objc.Call[CIImageRep](c_, objc.Sel("initWithCIImage:"), image) return rv @@ -61,6 +49,18 @@ func NewCIImageRepWithCIImage(image coreimage.IImage) CIImageRep { return instance } +func (cc _CIImageRepClass) ImageRepWithCIImage(image coreimage.IImage) CIImageRep { + rv := objc.Call[CIImageRep](cc, objc.Sel("imageRepWithCIImage:"), image) + return rv +} + +// Creates and returns a representation of an image initialized to the specified Core Image instance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsciimagerep/1550736-imagerepwithciimage?language=objc +func CIImageRep_ImageRepWithCIImage(image coreimage.IImage) CIImageRep { + return CIImageRepClass.ImageRepWithCIImage(image) +} + func (cc _CIImageRepClass) Alloc() CIImageRep { rv := objc.Call[CIImageRep](cc, objc.Sel("alloc")) return rv diff --git a/macos/appkit/click_gesture_recognizer.gen.go b/macos/appkit/click_gesture_recognizer.gen.go index fb0217d3..cc580a6d 100644 --- a/macos/appkit/click_gesture_recognizer.gen.go +++ b/macos/appkit/click_gesture_recognizer.gen.go @@ -18,12 +18,12 @@ type _ClickGestureRecognizerClass struct { // An interface definition for the [ClickGestureRecognizer] class. type IClickGestureRecognizer interface { IGestureRecognizer - NumberOfClicksRequired() int - SetNumberOfClicksRequired(value int) - NumberOfTouchesRequired() int - SetNumberOfTouchesRequired(value int) ButtonMask() uint SetButtonMask(value uint) + NumberOfTouchesRequired() int + SetNumberOfTouchesRequired(value int) + NumberOfClicksRequired() int + SetNumberOfClicksRequired(value int) } // A discrete gesture recognizer that tracks a specified number of mouse clicks. [Full Topic] @@ -73,19 +73,19 @@ func NewClickGestureRecognizerWithTargetAction(target objc.IObject, action objc. return instance } -// The number of clicks required to match. [Full Topic] +// A bit mask of the button (or buttons) required to recognize this click. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclickgesturerecognizer/1534485-numberofclicksrequired?language=objc -func (c_ ClickGestureRecognizer) NumberOfClicksRequired() int { - rv := objc.Call[int](c_, objc.Sel("numberOfClicksRequired")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclickgesturerecognizer/1530136-buttonmask?language=objc +func (c_ ClickGestureRecognizer) ButtonMask() uint { + rv := objc.Call[uint](c_, objc.Sel("buttonMask")) return rv } -// The number of clicks required to match. [Full Topic] +// A bit mask of the button (or buttons) required to recognize this click. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclickgesturerecognizer/1534485-numberofclicksrequired?language=objc -func (c_ ClickGestureRecognizer) SetNumberOfClicksRequired(value int) { - objc.Call[objc.Void](c_, objc.Sel("setNumberOfClicksRequired:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclickgesturerecognizer/1530136-buttonmask?language=objc +func (c_ ClickGestureRecognizer) SetButtonMask(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setButtonMask:"), value) } // The number of touches required in an NSTouchBar object for the gesture recognizer to match. [Full Topic] @@ -103,17 +103,17 @@ func (c_ ClickGestureRecognizer) SetNumberOfTouchesRequired(value int) { objc.Call[objc.Void](c_, objc.Sel("setNumberOfTouchesRequired:"), value) } -// A bit mask of the button (or buttons) required to recognize this click. [Full Topic] +// The number of clicks required to match. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclickgesturerecognizer/1530136-buttonmask?language=objc -func (c_ ClickGestureRecognizer) ButtonMask() uint { - rv := objc.Call[uint](c_, objc.Sel("buttonMask")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclickgesturerecognizer/1534485-numberofclicksrequired?language=objc +func (c_ ClickGestureRecognizer) NumberOfClicksRequired() int { + rv := objc.Call[int](c_, objc.Sel("numberOfClicksRequired")) return rv } -// A bit mask of the button (or buttons) required to recognize this click. [Full Topic] +// The number of clicks required to match. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclickgesturerecognizer/1530136-buttonmask?language=objc -func (c_ ClickGestureRecognizer) SetButtonMask(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setButtonMask:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclickgesturerecognizer/1534485-numberofclicksrequired?language=objc +func (c_ ClickGestureRecognizer) SetNumberOfClicksRequired(value int) { + objc.Call[objc.Void](c_, objc.Sel("setNumberOfClicksRequired:"), value) } diff --git a/macos/appkit/clip_view.gen.go b/macos/appkit/clip_view.gen.go index a8e8d6b9..34df56ed 100644 --- a/macos/appkit/clip_view.gen.go +++ b/macos/appkit/clip_view.gen.go @@ -20,23 +20,23 @@ type _ClipViewClass struct { type IClipView interface { IView ViewBoundsChanged(notification foundation.INotification) - ViewFrameChanged(notification foundation.INotification) ScrollToPoint(newOrigin foundation.Point) ConstrainBoundsRect(proposedBounds foundation.Rect) foundation.Rect + ViewFrameChanged(notification foundation.INotification) DocumentCursor() Cursor SetDocumentCursor(value ICursor) - DocumentView() View - SetDocumentView(value IView) - DocumentVisibleRect() foundation.Rect + ContentInsets() foundation.EdgeInsets + SetContentInsets(value foundation.EdgeInsets) + BackgroundColor() Color + SetBackgroundColor(value IColor) DrawsBackground() bool SetDrawsBackground(value bool) + DocumentVisibleRect() foundation.Rect DocumentRect() foundation.Rect + DocumentView() View + SetDocumentView(value IView) AutomaticallyAdjustsContentInsets() bool SetAutomaticallyAdjustsContentInsets(value bool) - ContentInsets() foundation.EdgeInsets - SetContentInsets(value foundation.EdgeInsets) - BackgroundColor() Color - SetBackgroundColor(value IColor) } // An object that clips a document view to a scroll view's frame. [Full Topic] @@ -93,13 +93,6 @@ func (c_ ClipView) ViewBoundsChanged(notification foundation.INotification) { objc.Call[objc.Void](c_, objc.Sel("viewBoundsChanged:"), notification) } -// Handles an NSViewFrameDidChangeNotification, passed in the aNotification argument, by updating a containing NSScrollView based on the new frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1526364-viewframechanged?language=objc -func (c_ ClipView) ViewFrameChanged(notification foundation.INotification) { - objc.Call[objc.Void](c_, objc.Sel("viewFrameChanged:"), notification) -} - // Changes the origin of the clip view’s bounds rectangle to newOrigin. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1528826-scrolltopoint?language=objc @@ -115,6 +108,13 @@ func (c_ ClipView) ConstrainBoundsRect(proposedBounds foundation.Rect) foundatio return rv } +// Handles an NSViewFrameDidChangeNotification, passed in the aNotification argument, by updating a containing NSScrollView based on the new frame. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1526364-viewframechanged?language=objc +func (c_ ClipView) ViewFrameChanged(notification foundation.INotification) { + objc.Call[objc.Void](c_, objc.Sel("viewFrameChanged:"), notification) +} + // The cursor object used when the pointer lies over the view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1535377-documentcursor?language=objc @@ -130,29 +130,36 @@ func (c_ ClipView) SetDocumentCursor(value ICursor) { objc.Call[objc.Void](c_, objc.Sel("setDocumentCursor:"), value) } -// The clip view’s document view. [Full Topic] +// The distance that the content view is inset from the enclosing scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1524587-documentview?language=objc -func (c_ ClipView) DocumentView() View { - rv := objc.Call[View](c_, objc.Sel("documentView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1524329-contentinsets?language=objc +func (c_ ClipView) ContentInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](c_, objc.Sel("contentInsets")) return rv } -// The clip view’s document view. [Full Topic] +// The distance that the content view is inset from the enclosing scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1524587-documentview?language=objc -func (c_ ClipView) SetDocumentView(value IView) { - objc.Call[objc.Void](c_, objc.Sel("setDocumentView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1524329-contentinsets?language=objc +func (c_ ClipView) SetContentInsets(value foundation.EdgeInsets) { + objc.Call[objc.Void](c_, objc.Sel("setContentInsets:"), value) } -// The exposed rectangle of the clip view’s document view, in the document view’s own coordinate system. [Full Topic] +// The color of the clip view’s background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1527958-documentvisiblerect?language=objc -func (c_ ClipView) DocumentVisibleRect() foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("documentVisibleRect")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1525469-backgroundcolor?language=objc +func (c_ ClipView) BackgroundColor() Color { + rv := objc.Call[Color](c_, objc.Sel("backgroundColor")) return rv } +// The color of the clip view’s background. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1525469-backgroundcolor?language=objc +func (c_ ClipView) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](c_, objc.Sel("setBackgroundColor:"), value) +} + // A Boolean value that indicates if the clip view draws its background color. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1534684-drawsbackground?language=objc @@ -168,6 +175,14 @@ func (c_ ClipView) SetDrawsBackground(value bool) { objc.Call[objc.Void](c_, objc.Sel("setDrawsBackground:"), value) } +// The exposed rectangle of the clip view’s document view, in the document view’s own coordinate system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1527958-documentvisiblerect?language=objc +func (c_ ClipView) DocumentVisibleRect() foundation.Rect { + rv := objc.Call[foundation.Rect](c_, objc.Sel("documentVisibleRect")) + return rv +} + // The rectangle defining the document view’s frame, adjusted to the size of the clip view if the document view is smaller. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1533338-documentrect?language=objc @@ -176,6 +191,21 @@ func (c_ ClipView) DocumentRect() foundation.Rect { return rv } +// The clip view’s document view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1524587-documentview?language=objc +func (c_ ClipView) DocumentView() View { + rv := objc.Call[View](c_, objc.Sel("documentView")) + return rv +} + +// The clip view’s document view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1524587-documentview?language=objc +func (c_ ClipView) SetDocumentView(value IView) { + objc.Call[objc.Void](c_, objc.Sel("setDocumentView:"), value) +} + // A Boolean value that indicates if the clip view automatically accounts for other scroll view subviews. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1527540-automaticallyadjustscontentinset?language=objc @@ -190,33 +220,3 @@ func (c_ ClipView) AutomaticallyAdjustsContentInsets() bool { func (c_ ClipView) SetAutomaticallyAdjustsContentInsets(value bool) { objc.Call[objc.Void](c_, objc.Sel("setAutomaticallyAdjustsContentInsets:"), value) } - -// The distance that the content view is inset from the enclosing scroll view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1524329-contentinsets?language=objc -func (c_ ClipView) ContentInsets() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](c_, objc.Sel("contentInsets")) - return rv -} - -// The distance that the content view is inset from the enclosing scroll view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1524329-contentinsets?language=objc -func (c_ ClipView) SetContentInsets(value foundation.EdgeInsets) { - objc.Call[objc.Void](c_, objc.Sel("setContentInsets:"), value) -} - -// The color of the clip view’s background. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1525469-backgroundcolor?language=objc -func (c_ ClipView) BackgroundColor() Color { - rv := objc.Call[Color](c_, objc.Sel("backgroundColor")) - return rv -} - -// The color of the clip view’s background. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsclipview/1525469-backgroundcolor?language=objc -func (c_ ClipView) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](c_, objc.Sel("setBackgroundColor:"), value) -} diff --git a/macos/appkit/cloud_sharing_service_delegate.gen.go b/macos/appkit/cloud_sharing_service_delegate.gen.go index 07c1cea1..99aac5e2 100644 --- a/macos/appkit/cloud_sharing_service_delegate.gen.go +++ b/macos/appkit/cloud_sharing_service_delegate.gen.go @@ -11,82 +11,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate?language=objc type PCloudSharingServiceDelegate interface { - // optional - OptionsForSharingServiceShareProvider(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions - HasOptionsForSharingServiceShareProvider() bool - - // optional - SharingServiceDidStopSharing(sharingService SharingService, share objc.Object) - HasSharingServiceDidStopSharing() bool - - // optional - SharingServiceDidCompleteForItemsError(sharingService SharingService, items []objc.Object, error foundation.Error) - HasSharingServiceDidCompleteForItemsError() bool - // optional SharingServiceDidSaveShare(sharingService SharingService, share objc.Object) HasSharingServiceDidSaveShare() bool + + // optional + OptionsForSharingServiceShareProvider(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions + HasOptionsForSharingServiceShareProvider() bool } // A delegate implementation builder for the [PCloudSharingServiceDelegate] protocol. type CloudSharingServiceDelegate struct { - _OptionsForSharingServiceShareProvider func(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions - _SharingServiceDidStopSharing func(sharingService SharingService, share objc.Object) - _SharingServiceDidCompleteForItemsError func(sharingService SharingService, items []objc.Object, error foundation.Error) - _SharingServiceDidSaveShare func(sharingService SharingService, share objc.Object) -} - -func (di *CloudSharingServiceDelegate) HasOptionsForSharingServiceShareProvider() bool { - return di._OptionsForSharingServiceShareProvider != nil + _SharingServiceDidSaveShare func(sharingService SharingService, share objc.Object) + _OptionsForSharingServiceShareProvider func(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions } -// Asks the delegate for the participant options for the cloud-sharing service. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644694-optionsforsharingservice?language=objc -func (di *CloudSharingServiceDelegate) SetOptionsForSharingServiceShareProvider(f func(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions) { - di._OptionsForSharingServiceShareProvider = f -} - -// Asks the delegate for the participant options for the cloud-sharing service. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644694-optionsforsharingservice?language=objc -func (di *CloudSharingServiceDelegate) OptionsForSharingServiceShareProvider(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions { - return di._OptionsForSharingServiceShareProvider(cloudKitSharingService, provider) -} -func (di *CloudSharingServiceDelegate) HasSharingServiceDidStopSharing() bool { - return di._SharingServiceDidStopSharing != nil -} - -// Tells the delegate when the user stops sharing the CloudKit share. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644709-sharingservice?language=objc -func (di *CloudSharingServiceDelegate) SetSharingServiceDidStopSharing(f func(sharingService SharingService, share objc.Object)) { - di._SharingServiceDidStopSharing = f -} - -// Tells the delegate when the user stops sharing the CloudKit share. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644709-sharingservice?language=objc -func (di *CloudSharingServiceDelegate) SharingServiceDidStopSharing(sharingService SharingService, share objc.Object) { - di._SharingServiceDidStopSharing(sharingService, share) -} -func (di *CloudSharingServiceDelegate) HasSharingServiceDidCompleteForItemsError() bool { - return di._SharingServiceDidCompleteForItemsError != nil -} - -// Tells the delegate when the cloud-sharing service completes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644666-sharingservice?language=objc -func (di *CloudSharingServiceDelegate) SetSharingServiceDidCompleteForItemsError(f func(sharingService SharingService, items []objc.Object, error foundation.Error)) { - di._SharingServiceDidCompleteForItemsError = f -} - -// Tells the delegate when the cloud-sharing service completes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644666-sharingservice?language=objc -func (di *CloudSharingServiceDelegate) SharingServiceDidCompleteForItemsError(sharingService SharingService, items []objc.Object, error foundation.Error) { - di._SharingServiceDidCompleteForItemsError(sharingService, items, error) -} func (di *CloudSharingServiceDelegate) HasSharingServiceDidSaveShare() bool { return di._SharingServiceDidSaveShare != nil } @@ -104,47 +43,30 @@ func (di *CloudSharingServiceDelegate) SetSharingServiceDidSaveShare(f func(shar func (di *CloudSharingServiceDelegate) SharingServiceDidSaveShare(sharingService SharingService, share objc.Object) { di._SharingServiceDidSaveShare(sharingService, share) } - -// ensure impl type implements protocol interface -var _ PCloudSharingServiceDelegate = (*CloudSharingServiceDelegateObject)(nil) - -// A concrete type for the [PCloudSharingServiceDelegate] protocol. -type CloudSharingServiceDelegateObject struct { - objc.Object -} - -func (c_ CloudSharingServiceDelegateObject) HasOptionsForSharingServiceShareProvider() bool { - return c_.RespondsToSelector(objc.Sel("optionsForSharingService:shareProvider:")) +func (di *CloudSharingServiceDelegate) HasOptionsForSharingServiceShareProvider() bool { + return di._OptionsForSharingServiceShareProvider != nil } // Asks the delegate for the participant options for the cloud-sharing service. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644694-optionsforsharingservice?language=objc -func (c_ CloudSharingServiceDelegateObject) OptionsForSharingServiceShareProvider(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions { - rv := objc.Call[CloudKitSharingServiceOptions](c_, objc.Sel("optionsForSharingService:shareProvider:"), cloudKitSharingService, provider) - return rv -} - -func (c_ CloudSharingServiceDelegateObject) HasSharingServiceDidStopSharing() bool { - return c_.RespondsToSelector(objc.Sel("sharingService:didStopSharing:")) +func (di *CloudSharingServiceDelegate) SetOptionsForSharingServiceShareProvider(f func(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions) { + di._OptionsForSharingServiceShareProvider = f } -// Tells the delegate when the user stops sharing the CloudKit share. [Full Topic] +// Asks the delegate for the participant options for the cloud-sharing service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644709-sharingservice?language=objc -func (c_ CloudSharingServiceDelegateObject) SharingServiceDidStopSharing(sharingService SharingService, share objc.Object) { - objc.Call[objc.Void](c_, objc.Sel("sharingService:didStopSharing:"), sharingService, share) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644694-optionsforsharingservice?language=objc +func (di *CloudSharingServiceDelegate) OptionsForSharingServiceShareProvider(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions { + return di._OptionsForSharingServiceShareProvider(cloudKitSharingService, provider) } -func (c_ CloudSharingServiceDelegateObject) HasSharingServiceDidCompleteForItemsError() bool { - return c_.RespondsToSelector(objc.Sel("sharingService:didCompleteForItems:error:")) -} +// ensure impl type implements protocol interface +var _ PCloudSharingServiceDelegate = (*CloudSharingServiceDelegateObject)(nil) -// Tells the delegate when the cloud-sharing service completes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644666-sharingservice?language=objc -func (c_ CloudSharingServiceDelegateObject) SharingServiceDidCompleteForItemsError(sharingService SharingService, items []objc.Object, error foundation.Error) { - objc.Call[objc.Void](c_, objc.Sel("sharingService:didCompleteForItems:error:"), sharingService, items, error) +// A concrete type for the [PCloudSharingServiceDelegate] protocol. +type CloudSharingServiceDelegateObject struct { + objc.Object } func (c_ CloudSharingServiceDelegateObject) HasSharingServiceDidSaveShare() bool { @@ -157,3 +79,15 @@ func (c_ CloudSharingServiceDelegateObject) HasSharingServiceDidSaveShare() bool func (c_ CloudSharingServiceDelegateObject) SharingServiceDidSaveShare(sharingService SharingService, share objc.Object) { objc.Call[objc.Void](c_, objc.Sel("sharingService:didSaveShare:"), sharingService, share) } + +func (c_ CloudSharingServiceDelegateObject) HasOptionsForSharingServiceShareProvider() bool { + return c_.RespondsToSelector(objc.Sel("optionsForSharingService:shareProvider:")) +} + +// Asks the delegate for the participant options for the cloud-sharing service. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644694-optionsforsharingservice?language=objc +func (c_ CloudSharingServiceDelegateObject) OptionsForSharingServiceShareProvider(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions { + rv := objc.Call[CloudKitSharingServiceOptions](c_, objc.Sel("optionsForSharingService:shareProvider:"), cloudKitSharingService, provider) + return rv +} diff --git a/macos/appkit/collection_layout_anchor.gen.go b/macos/appkit/collection_layout_anchor.gen.go index bc7f20cf..86409095 100644 --- a/macos/appkit/collection_layout_anchor.gen.go +++ b/macos/appkit/collection_layout_anchor.gen.go @@ -5,7 +5,7 @@ package appkit import ( "unsafe" - "github.com/progrium/darwinkit/macos/foundation" + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/objc" ) @@ -22,7 +22,7 @@ type ICollectionLayoutAnchor interface { Edges() DirectionalRectEdge IsFractionalOffset() bool IsAbsoluteOffset() bool - Offset() foundation.Point + Offset() coregraphics.Point } // An object that defines how to attach a supplementary item to an item in a collection view. [Full Topic] @@ -38,30 +38,6 @@ func CollectionLayoutAnchorFrom(ptr unsafe.Pointer) CollectionLayoutAnchor { } } -func (cc _CollectionLayoutAnchorClass) LayoutAnchorWithEdgesFractionalOffset(edges DirectionalRectEdge, fractionalOffset foundation.Point) CollectionLayoutAnchor { - rv := objc.Call[CollectionLayoutAnchor](cc, objc.Sel("layoutAnchorWithEdges:fractionalOffset:"), edges, fractionalOffset) - return rv -} - -// Creates an anchor with the specified edges to attach to, offset by the provided fractional value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutanchor/3213815-layoutanchorwithedges?language=objc -func CollectionLayoutAnchor_LayoutAnchorWithEdgesFractionalOffset(edges DirectionalRectEdge, fractionalOffset foundation.Point) CollectionLayoutAnchor { - return CollectionLayoutAnchorClass.LayoutAnchorWithEdgesFractionalOffset(edges, fractionalOffset) -} - -func (cc _CollectionLayoutAnchorClass) LayoutAnchorWithEdgesAbsoluteOffset(edges DirectionalRectEdge, absoluteOffset foundation.Point) CollectionLayoutAnchor { - rv := objc.Call[CollectionLayoutAnchor](cc, objc.Sel("layoutAnchorWithEdges:absoluteOffset:"), edges, absoluteOffset) - return rv -} - -// Creates an anchor with the specified edges to attach to, offset by the provided absolute value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutanchor/3213814-layoutanchorwithedges?language=objc -func CollectionLayoutAnchor_LayoutAnchorWithEdgesAbsoluteOffset(edges DirectionalRectEdge, absoluteOffset foundation.Point) CollectionLayoutAnchor { - return CollectionLayoutAnchorClass.LayoutAnchorWithEdgesAbsoluteOffset(edges, absoluteOffset) -} - func (cc _CollectionLayoutAnchorClass) LayoutAnchorWithEdges(edges DirectionalRectEdge) CollectionLayoutAnchor { rv := objc.Call[CollectionLayoutAnchor](cc, objc.Sel("layoutAnchorWithEdges:"), edges) return rv @@ -121,7 +97,7 @@ func (c_ CollectionLayoutAnchor) IsAbsoluteOffset() bool { // The floating-point value of the anchor's offset from the item it's attached to. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutanchor/3199037-offset?language=objc -func (c_ CollectionLayoutAnchor) Offset() foundation.Point { - rv := objc.Call[foundation.Point](c_, objc.Sel("offset")) +func (c_ CollectionLayoutAnchor) Offset() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("offset")) return rv } diff --git a/macos/appkit/collection_layout_boundary_supplementary_item.gen.go b/macos/appkit/collection_layout_boundary_supplementary_item.gen.go index a94b830d..3f6fa1c9 100644 --- a/macos/appkit/collection_layout_boundary_supplementary_item.gen.go +++ b/macos/appkit/collection_layout_boundary_supplementary_item.gen.go @@ -5,7 +5,7 @@ package appkit import ( "unsafe" - "github.com/progrium/darwinkit/macos/foundation" + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/objc" ) @@ -19,12 +19,12 @@ type _CollectionLayoutBoundarySupplementaryItemClass struct { // An interface definition for the [CollectionLayoutBoundarySupplementaryItem] class. type ICollectionLayoutBoundarySupplementaryItem interface { ICollectionLayoutSupplementaryItem - Offset() foundation.Point - ExtendsBoundary() bool - SetExtendsBoundary(value bool) Alignment() RectAlignment PinToVisibleBounds() bool SetPinToVisibleBounds(value bool) + Offset() coregraphics.Point + ExtendsBoundary() bool + SetExtendsBoundary(value bool) } // An object used to add headers or footers to a collection view. [Full Topic] @@ -52,18 +52,6 @@ func CollectionLayoutBoundarySupplementaryItem_BoundarySupplementaryItemWithLayo return CollectionLayoutBoundarySupplementaryItemClass.BoundarySupplementaryItemWithLayoutSizeElementKindAlignment(layoutSize, elementKind, alignment) } -func (cc _CollectionLayoutBoundarySupplementaryItemClass) BoundarySupplementaryItemWithLayoutSizeElementKindAlignmentAbsoluteOffset(layoutSize ICollectionLayoutSize, elementKind string, alignment RectAlignment, absoluteOffset foundation.Point) CollectionLayoutBoundarySupplementaryItem { - rv := objc.Call[CollectionLayoutBoundarySupplementaryItem](cc, objc.Sel("boundarySupplementaryItemWithLayoutSize:elementKind:alignment:absoluteOffset:"), layoutSize, elementKind, alignment, absoluteOffset) - return rv -} - -// Creates a boundary supplementary item of the specified size and element kind, with an alignment relative to a section or layout at an absolute offset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutboundarysupplementaryitem/3213820-boundarysupplementaryitemwithlay?language=objc -func CollectionLayoutBoundarySupplementaryItem_BoundarySupplementaryItemWithLayoutSizeElementKindAlignmentAbsoluteOffset(layoutSize ICollectionLayoutSize, elementKind string, alignment RectAlignment, absoluteOffset foundation.Point) CollectionLayoutBoundarySupplementaryItem { - return CollectionLayoutBoundarySupplementaryItemClass.BoundarySupplementaryItemWithLayoutSizeElementKindAlignmentAbsoluteOffset(layoutSize, elementKind, alignment, absoluteOffset) -} - func (cc _CollectionLayoutBoundarySupplementaryItemClass) Alloc() CollectionLayoutBoundarySupplementaryItem { rv := objc.Call[CollectionLayoutBoundarySupplementaryItem](cc, objc.Sel("alloc")) return rv @@ -84,18 +72,6 @@ func (c_ CollectionLayoutBoundarySupplementaryItem) Init() CollectionLayoutBound return rv } -func (cc _CollectionLayoutBoundarySupplementaryItemClass) SupplementaryItemWithLayoutSizeElementKindContainerAnchor(layoutSize ICollectionLayoutSize, elementKind string, containerAnchor ICollectionLayoutAnchor) CollectionLayoutBoundarySupplementaryItem { - rv := objc.Call[CollectionLayoutBoundarySupplementaryItem](cc, objc.Sel("supplementaryItemWithLayoutSize:elementKind:containerAnchor:"), layoutSize, elementKind, containerAnchor) - return rv -} - -// Creates a supplementary item of the specified size and element kind, with an anchor relative to a container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsupplementaryitem/3213899-supplementaryitemwithlayoutsize?language=objc -func CollectionLayoutBoundarySupplementaryItem_SupplementaryItemWithLayoutSizeElementKindContainerAnchor(layoutSize ICollectionLayoutSize, elementKind string, containerAnchor ICollectionLayoutAnchor) CollectionLayoutBoundarySupplementaryItem { - return CollectionLayoutBoundarySupplementaryItemClass.SupplementaryItemWithLayoutSizeElementKindContainerAnchor(layoutSize, elementKind, containerAnchor) -} - func (cc _CollectionLayoutBoundarySupplementaryItemClass) SupplementaryItemWithLayoutSizeElementKindContainerAnchorItemAnchor(layoutSize ICollectionLayoutSize, elementKind string, containerAnchor ICollectionLayoutAnchor, itemAnchor ICollectionLayoutAnchor) CollectionLayoutBoundarySupplementaryItem { rv := objc.Call[CollectionLayoutBoundarySupplementaryItem](cc, objc.Sel("supplementaryItemWithLayoutSize:elementKind:containerAnchor:itemAnchor:"), layoutSize, elementKind, containerAnchor, itemAnchor) return rv @@ -120,23 +96,34 @@ func CollectionLayoutBoundarySupplementaryItem_ItemWithLayoutSize(layoutSize ICo return CollectionLayoutBoundarySupplementaryItemClass.ItemWithLayoutSize(layoutSize) } -func (cc _CollectionLayoutBoundarySupplementaryItemClass) ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutBoundarySupplementaryItem { - rv := objc.Call[CollectionLayoutBoundarySupplementaryItem](cc, objc.Sel("itemWithLayoutSize:supplementaryItems:"), layoutSize, supplementaryItems) +// The alignment of the boundary supplementary item relative to the section or layout it’s attached to. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutboundarysupplementaryitem/3199039-alignment?language=objc +func (c_ CollectionLayoutBoundarySupplementaryItem) Alignment() RectAlignment { + rv := objc.Call[RectAlignment](c_, objc.Sel("alignment")) + return rv +} + +// A Boolean value that indicates whether a header or footer is pinned to the top or bottom visible boundary of the section or layout it’s attached to. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutboundarysupplementaryitem/3199044-pintovisiblebounds?language=objc +func (c_ CollectionLayoutBoundarySupplementaryItem) PinToVisibleBounds() bool { + rv := objc.Call[bool](c_, objc.Sel("pinToVisibleBounds")) return rv } -// Creates an item of the specified size with an array of supplementary items to attach to the item. [Full Topic] +// A Boolean value that indicates whether a header or footer is pinned to the top or bottom visible boundary of the section or layout it’s attached to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3213872-itemwithlayoutsize?language=objc -func CollectionLayoutBoundarySupplementaryItem_ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutBoundarySupplementaryItem { - return CollectionLayoutBoundarySupplementaryItemClass.ItemWithLayoutSizeSupplementaryItems(layoutSize, supplementaryItems) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutboundarysupplementaryitem/3199044-pintovisiblebounds?language=objc +func (c_ CollectionLayoutBoundarySupplementaryItem) SetPinToVisibleBounds(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setPinToVisibleBounds:"), value) } // The floating-point value of the boundary supplementary item’s offset from the section or layout it’s attached to. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutboundarysupplementaryitem/3199043-offset?language=objc -func (c_ CollectionLayoutBoundarySupplementaryItem) Offset() foundation.Point { - rv := objc.Call[foundation.Point](c_, objc.Sel("offset")) +func (c_ CollectionLayoutBoundarySupplementaryItem) Offset() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("offset")) return rv } @@ -154,26 +141,3 @@ func (c_ CollectionLayoutBoundarySupplementaryItem) ExtendsBoundary() bool { func (c_ CollectionLayoutBoundarySupplementaryItem) SetExtendsBoundary(value bool) { objc.Call[objc.Void](c_, objc.Sel("setExtendsBoundary:"), value) } - -// The alignment of the boundary supplementary item relative to the section or layout it’s attached to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutboundarysupplementaryitem/3199039-alignment?language=objc -func (c_ CollectionLayoutBoundarySupplementaryItem) Alignment() RectAlignment { - rv := objc.Call[RectAlignment](c_, objc.Sel("alignment")) - return rv -} - -// A Boolean value that indicates whether a header or footer is pinned to the top or bottom visible boundary of the section or layout it’s attached to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutboundarysupplementaryitem/3199044-pintovisiblebounds?language=objc -func (c_ CollectionLayoutBoundarySupplementaryItem) PinToVisibleBounds() bool { - rv := objc.Call[bool](c_, objc.Sel("pinToVisibleBounds")) - return rv -} - -// A Boolean value that indicates whether a header or footer is pinned to the top or bottom visible boundary of the section or layout it’s attached to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutboundarysupplementaryitem/3199044-pintovisiblebounds?language=objc -func (c_ CollectionLayoutBoundarySupplementaryItem) SetPinToVisibleBounds(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setPinToVisibleBounds:"), value) -} diff --git a/macos/appkit/collection_layout_container_protocol.gen.go b/macos/appkit/collection_layout_container_protocol.gen.go index dda50b6c..62b24c75 100644 --- a/macos/appkit/collection_layout_container_protocol.gen.go +++ b/macos/appkit/collection_layout_container_protocol.gen.go @@ -3,7 +3,7 @@ package appkit import ( - "github.com/progrium/darwinkit/macos/foundation" + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/objc" ) @@ -11,20 +11,20 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutcontainer?language=objc type PCollectionLayoutContainer interface { - // optional - EffectiveContentInsets() DirectionalEdgeInsets - HasEffectiveContentInsets() bool - // optional ContentInsets() DirectionalEdgeInsets HasContentInsets() bool // optional - ContentSize() foundation.Size + ContentSize() coregraphics.Size HasContentSize() bool // optional - EffectiveContentSize() foundation.Size + EffectiveContentInsets() DirectionalEdgeInsets + HasEffectiveContentInsets() bool + + // optional + EffectiveContentSize() coregraphics.Size HasEffectiveContentSize() bool } @@ -36,18 +36,6 @@ type CollectionLayoutContainerObject struct { objc.Object } -func (c_ CollectionLayoutContainerObject) HasEffectiveContentInsets() bool { - return c_.RespondsToSelector(objc.Sel("effectiveContentInsets")) -} - -// The amount of space added around the content of the container to adjust its final size after item content insets are applied. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutcontainer/3199048-effectivecontentinsets?language=objc -func (c_ CollectionLayoutContainerObject) EffectiveContentInsets() DirectionalEdgeInsets { - rv := objc.Call[DirectionalEdgeInsets](c_, objc.Sel("effectiveContentInsets")) - return rv -} - func (c_ CollectionLayoutContainerObject) HasContentInsets() bool { return c_.RespondsToSelector(objc.Sel("contentInsets")) } @@ -67,8 +55,20 @@ func (c_ CollectionLayoutContainerObject) HasContentSize() bool { // The size of the container before content insets are applied. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutcontainer/3199047-contentsize?language=objc -func (c_ CollectionLayoutContainerObject) ContentSize() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("contentSize")) +func (c_ CollectionLayoutContainerObject) ContentSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](c_, objc.Sel("contentSize")) + return rv +} + +func (c_ CollectionLayoutContainerObject) HasEffectiveContentInsets() bool { + return c_.RespondsToSelector(objc.Sel("effectiveContentInsets")) +} + +// The amount of space added around the content of the container to adjust its final size after item content insets are applied. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutcontainer/3199048-effectivecontentinsets?language=objc +func (c_ CollectionLayoutContainerObject) EffectiveContentInsets() DirectionalEdgeInsets { + rv := objc.Call[DirectionalEdgeInsets](c_, objc.Sel("effectiveContentInsets")) return rv } @@ -79,7 +79,7 @@ func (c_ CollectionLayoutContainerObject) HasEffectiveContentSize() bool { // The size of the container after content insets are applied. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutcontainer/3199049-effectivecontentsize?language=objc -func (c_ CollectionLayoutContainerObject) EffectiveContentSize() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("effectiveContentSize")) +func (c_ CollectionLayoutContainerObject) EffectiveContentSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](c_, objc.Sel("effectiveContentSize")) return rv } diff --git a/macos/appkit/collection_layout_decoration_item.gen.go b/macos/appkit/collection_layout_decoration_item.gen.go index cb8de5d6..e13b87b3 100644 --- a/macos/appkit/collection_layout_decoration_item.gen.go +++ b/macos/appkit/collection_layout_decoration_item.gen.go @@ -80,18 +80,6 @@ func CollectionLayoutDecorationItem_ItemWithLayoutSize(layoutSize ICollectionLay return CollectionLayoutDecorationItemClass.ItemWithLayoutSize(layoutSize) } -func (cc _CollectionLayoutDecorationItemClass) ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutDecorationItem { - rv := objc.Call[CollectionLayoutDecorationItem](cc, objc.Sel("itemWithLayoutSize:supplementaryItems:"), layoutSize, supplementaryItems) - return rv -} - -// Creates an item of the specified size with an array of supplementary items to attach to the item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3213872-itemwithlayoutsize?language=objc -func CollectionLayoutDecorationItem_ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutDecorationItem { - return CollectionLayoutDecorationItemClass.ItemWithLayoutSizeSupplementaryItems(layoutSize, supplementaryItems) -} - // A string that identifies the type of decoration item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdecorationitem/3213831-elementkind?language=objc diff --git a/macos/appkit/collection_layout_dimension.gen.go b/macos/appkit/collection_layout_dimension.gen.go index 32ae86cb..ce00c596 100644 --- a/macos/appkit/collection_layout_dimension.gen.go +++ b/macos/appkit/collection_layout_dimension.gen.go @@ -18,11 +18,11 @@ type _CollectionLayoutDimensionClass struct { // An interface definition for the [CollectionLayoutDimension] class. type ICollectionLayoutDimension interface { objc.IObject - IsFractionalHeight() bool - IsFractionalWidth() bool IsEstimated() bool Dimension() float64 + IsFractionalWidth() bool IsAbsolute() bool + IsFractionalHeight() bool } // An individual dimension representing an item’s width or height in a collection view. [Full Topic] @@ -38,30 +38,6 @@ func CollectionLayoutDimensionFrom(ptr unsafe.Pointer) CollectionLayoutDimension } } -func (cc _CollectionLayoutDimensionClass) AbsoluteDimension(absoluteDimension float64) CollectionLayoutDimension { - rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("absoluteDimension:"), absoluteDimension) - return rv -} - -// Creates a dimension with an absolute point value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199055-absolutedimension?language=objc -func CollectionLayoutDimension_AbsoluteDimension(absoluteDimension float64) CollectionLayoutDimension { - return CollectionLayoutDimensionClass.AbsoluteDimension(absoluteDimension) -} - -func (cc _CollectionLayoutDimensionClass) EstimatedDimension(estimatedDimension float64) CollectionLayoutDimension { - rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("estimatedDimension:"), estimatedDimension) - return rv -} - -// Creates a dimension with an estimated point value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199057-estimateddimension?language=objc -func CollectionLayoutDimension_EstimatedDimension(estimatedDimension float64) CollectionLayoutDimension { - return CollectionLayoutDimensionClass.EstimatedDimension(estimatedDimension) -} - func (cc _CollectionLayoutDimensionClass) FractionalHeightDimension(fractionalHeight float64) CollectionLayoutDimension { rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("fractionalHeightDimension:"), fractionalHeight) return rv @@ -74,6 +50,18 @@ func CollectionLayoutDimension_FractionalHeightDimension(fractionalHeight float6 return CollectionLayoutDimensionClass.FractionalHeightDimension(fractionalHeight) } +func (cc _CollectionLayoutDimensionClass) AbsoluteDimension(absoluteDimension float64) CollectionLayoutDimension { + rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("absoluteDimension:"), absoluteDimension) + return rv +} + +// Creates a dimension with an absolute point value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199055-absolutedimension?language=objc +func CollectionLayoutDimension_AbsoluteDimension(absoluteDimension float64) CollectionLayoutDimension { + return CollectionLayoutDimensionClass.AbsoluteDimension(absoluteDimension) +} + func (cc _CollectionLayoutDimensionClass) FractionalWidthDimension(fractionalWidth float64) CollectionLayoutDimension { rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("fractionalWidthDimension:"), fractionalWidth) return rv @@ -86,6 +74,18 @@ func CollectionLayoutDimension_FractionalWidthDimension(fractionalWidth float64) return CollectionLayoutDimensionClass.FractionalWidthDimension(fractionalWidth) } +func (cc _CollectionLayoutDimensionClass) EstimatedDimension(estimatedDimension float64) CollectionLayoutDimension { + rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("estimatedDimension:"), estimatedDimension) + return rv +} + +// Creates a dimension with an estimated point value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199057-estimateddimension?language=objc +func CollectionLayoutDimension_EstimatedDimension(estimatedDimension float64) CollectionLayoutDimension { + return CollectionLayoutDimensionClass.EstimatedDimension(estimatedDimension) +} + func (cc _CollectionLayoutDimensionClass) Alloc() CollectionLayoutDimension { rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("alloc")) return rv @@ -106,22 +106,6 @@ func (c_ CollectionLayoutDimension) Init() CollectionLayoutDimension { return rv } -// A Boolean value that indicates whether the dimension is expressed as a fraction of its container’s height. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199062-isfractionalheight?language=objc -func (c_ CollectionLayoutDimension) IsFractionalHeight() bool { - rv := objc.Call[bool](c_, objc.Sel("isFractionalHeight")) - return rv -} - -// A Boolean value that indicates whether the dimension is expressed as a fraction of its container’s width. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199063-isfractionalwidth?language=objc -func (c_ CollectionLayoutDimension) IsFractionalWidth() bool { - rv := objc.Call[bool](c_, objc.Sel("isFractionalWidth")) - return rv -} - // A Boolean value that indicates whether the dimension is expressed as an estimated value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199061-isestimated?language=objc @@ -138,6 +122,14 @@ func (c_ CollectionLayoutDimension) Dimension() float64 { return rv } +// A Boolean value that indicates whether the dimension is expressed as a fraction of its container’s width. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199063-isfractionalwidth?language=objc +func (c_ CollectionLayoutDimension) IsFractionalWidth() bool { + rv := objc.Call[bool](c_, objc.Sel("isFractionalWidth")) + return rv +} + // A Boolean value that indicates whether the dimension is expressed as an absolute value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199060-isabsolute?language=objc @@ -145,3 +137,11 @@ func (c_ CollectionLayoutDimension) IsAbsolute() bool { rv := objc.Call[bool](c_, objc.Sel("isAbsolute")) return rv } + +// A Boolean value that indicates whether the dimension is expressed as a fraction of its container’s height. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199062-isfractionalheight?language=objc +func (c_ CollectionLayoutDimension) IsFractionalHeight() bool { + rv := objc.Call[bool](c_, objc.Sel("isFractionalHeight")) + return rv +} diff --git a/macos/appkit/collection_layout_edge_spacing.gen.go b/macos/appkit/collection_layout_edge_spacing.gen.go index 62e9cefc..97618e36 100644 --- a/macos/appkit/collection_layout_edge_spacing.gen.go +++ b/macos/appkit/collection_layout_edge_spacing.gen.go @@ -18,10 +18,10 @@ type _CollectionLayoutEdgeSpacingClass struct { // An interface definition for the [CollectionLayoutEdgeSpacing] class. type ICollectionLayoutEdgeSpacing interface { objc.IObject + Leading() CollectionLayoutSpacing Trailing() CollectionLayoutSpacing - Top() CollectionLayoutSpacing Bottom() CollectionLayoutSpacing - Leading() CollectionLayoutSpacing + Top() CollectionLayoutSpacing } // An object that defines the space around the edges of items in a collection view. [Full Topic] @@ -69,19 +69,19 @@ func (c_ CollectionLayoutEdgeSpacing) Init() CollectionLayoutEdgeSpacing { return rv } -// The trailing edge spacing value. [Full Topic] +// The leading edge spacing value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutedgespacing/3199071-trailing?language=objc -func (c_ CollectionLayoutEdgeSpacing) Trailing() CollectionLayoutSpacing { - rv := objc.Call[CollectionLayoutSpacing](c_, objc.Sel("trailing")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutedgespacing/3199069-leading?language=objc +func (c_ CollectionLayoutEdgeSpacing) Leading() CollectionLayoutSpacing { + rv := objc.Call[CollectionLayoutSpacing](c_, objc.Sel("leading")) return rv } -// The top edge spacing value. [Full Topic] +// The trailing edge spacing value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutedgespacing/3199070-top?language=objc -func (c_ CollectionLayoutEdgeSpacing) Top() CollectionLayoutSpacing { - rv := objc.Call[CollectionLayoutSpacing](c_, objc.Sel("top")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutedgespacing/3199071-trailing?language=objc +func (c_ CollectionLayoutEdgeSpacing) Trailing() CollectionLayoutSpacing { + rv := objc.Call[CollectionLayoutSpacing](c_, objc.Sel("trailing")) return rv } @@ -93,10 +93,10 @@ func (c_ CollectionLayoutEdgeSpacing) Bottom() CollectionLayoutSpacing { return rv } -// The leading edge spacing value. [Full Topic] +// The top edge spacing value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutedgespacing/3199069-leading?language=objc -func (c_ CollectionLayoutEdgeSpacing) Leading() CollectionLayoutSpacing { - rv := objc.Call[CollectionLayoutSpacing](c_, objc.Sel("leading")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutedgespacing/3199070-top?language=objc +func (c_ CollectionLayoutEdgeSpacing) Top() CollectionLayoutSpacing { + rv := objc.Call[CollectionLayoutSpacing](c_, objc.Sel("top")) return rv } diff --git a/macos/appkit/collection_layout_group.gen.go b/macos/appkit/collection_layout_group.gen.go index 7fee7bf8..ba94811b 100644 --- a/macos/appkit/collection_layout_group.gen.go +++ b/macos/appkit/collection_layout_group.gen.go @@ -19,10 +19,10 @@ type _CollectionLayoutGroupClass struct { type ICollectionLayoutGroup interface { ICollectionLayoutItem VisualDescription() string - InterItemSpacing() CollectionLayoutSpacing - SetInterItemSpacing(value ICollectionLayoutSpacing) SetSupplementaryItems(value []ICollectionLayoutSupplementaryItem) Subitems() []CollectionLayoutItem + InterItemSpacing() CollectionLayoutSpacing + SetInterItemSpacing(value ICollectionLayoutSpacing) } // A container for a set of items that lays out the items along a path. [Full Topic] @@ -38,16 +38,16 @@ func CollectionLayoutGroupFrom(ptr unsafe.Pointer) CollectionLayoutGroup { } } -func (cc _CollectionLayoutGroupClass) CustomGroupWithLayoutSizeItemProvider(layoutSize ICollectionLayoutSize, itemProvider CollectionLayoutGroupCustomItemProvider) CollectionLayoutGroup { - rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("customGroupWithLayoutSize:itemProvider:"), layoutSize, itemProvider) +func (cc _CollectionLayoutGroupClass) VerticalGroupWithLayoutSizeSubitems(layoutSize ICollectionLayoutSize, subitems []ICollectionLayoutItem) CollectionLayoutGroup { + rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("verticalGroupWithLayoutSize:subitems:"), layoutSize, subitems) return rv } -// Creates a group of the specified size, with an item provider that creates a custom arrangement for those items. [Full Topic] +// Creates a group of the specified size, containing an array of items arranged in a vertical line. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroup/3213853-customgroupwithlayoutsize?language=objc -func CollectionLayoutGroup_CustomGroupWithLayoutSizeItemProvider(layoutSize ICollectionLayoutSize, itemProvider CollectionLayoutGroupCustomItemProvider) CollectionLayoutGroup { - return CollectionLayoutGroupClass.CustomGroupWithLayoutSizeItemProvider(layoutSize, itemProvider) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroup/3213860-verticalgroupwithlayoutsize?language=objc +func CollectionLayoutGroup_VerticalGroupWithLayoutSizeSubitems(layoutSize ICollectionLayoutSize, subitems []ICollectionLayoutItem) CollectionLayoutGroup { + return CollectionLayoutGroupClass.VerticalGroupWithLayoutSizeSubitems(layoutSize, subitems) } func (cc _CollectionLayoutGroupClass) HorizontalGroupWithLayoutSizeSubitems(layoutSize ICollectionLayoutSize, subitems []ICollectionLayoutItem) CollectionLayoutGroup { @@ -62,16 +62,16 @@ func CollectionLayoutGroup_HorizontalGroupWithLayoutSizeSubitems(layoutSize ICol return CollectionLayoutGroupClass.HorizontalGroupWithLayoutSizeSubitems(layoutSize, subitems) } -func (cc _CollectionLayoutGroupClass) VerticalGroupWithLayoutSizeSubitems(layoutSize ICollectionLayoutSize, subitems []ICollectionLayoutItem) CollectionLayoutGroup { - rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("verticalGroupWithLayoutSize:subitems:"), layoutSize, subitems) +func (cc _CollectionLayoutGroupClass) CustomGroupWithLayoutSizeItemProvider(layoutSize ICollectionLayoutSize, itemProvider CollectionLayoutGroupCustomItemProvider) CollectionLayoutGroup { + rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("customGroupWithLayoutSize:itemProvider:"), layoutSize, itemProvider) return rv } -// Creates a group of the specified size, containing an array of items arranged in a vertical line. [Full Topic] +// Creates a group of the specified size, with an item provider that creates a custom arrangement for those items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroup/3213860-verticalgroupwithlayoutsize?language=objc -func CollectionLayoutGroup_VerticalGroupWithLayoutSizeSubitems(layoutSize ICollectionLayoutSize, subitems []ICollectionLayoutItem) CollectionLayoutGroup { - return CollectionLayoutGroupClass.VerticalGroupWithLayoutSizeSubitems(layoutSize, subitems) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroup/3213853-customgroupwithlayoutsize?language=objc +func CollectionLayoutGroup_CustomGroupWithLayoutSizeItemProvider(layoutSize ICollectionLayoutSize, itemProvider CollectionLayoutGroupCustomItemProvider) CollectionLayoutGroup { + return CollectionLayoutGroupClass.CustomGroupWithLayoutSizeItemProvider(layoutSize, itemProvider) } func (cc _CollectionLayoutGroupClass) Alloc() CollectionLayoutGroup { @@ -106,23 +106,26 @@ func CollectionLayoutGroup_ItemWithLayoutSize(layoutSize ICollectionLayoutSize) return CollectionLayoutGroupClass.ItemWithLayoutSize(layoutSize) } -func (cc _CollectionLayoutGroupClass) ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutGroup { - rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("itemWithLayoutSize:supplementaryItems:"), layoutSize, supplementaryItems) +// Returns a string with an ASCII representation of the group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroup/3199082-visualdescription?language=objc +func (c_ CollectionLayoutGroup) VisualDescription() string { + rv := objc.Call[string](c_, objc.Sel("visualDescription")) return rv } -// Creates an item of the specified size with an array of supplementary items to attach to the item. [Full Topic] +// An array of the supplementary items that are anchored to the group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3213872-itemwithlayoutsize?language=objc -func CollectionLayoutGroup_ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutGroup { - return CollectionLayoutGroupClass.ItemWithLayoutSizeSupplementaryItems(layoutSize, supplementaryItems) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroup/3199079-supplementaryitems?language=objc +func (c_ CollectionLayoutGroup) SetSupplementaryItems(value []ICollectionLayoutSupplementaryItem) { + objc.Call[objc.Void](c_, objc.Sel("setSupplementaryItems:"), value) } -// Returns a string with an ASCII representation of the group. [Full Topic] +// An array of the items contained in the group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroup/3199082-visualdescription?language=objc -func (c_ CollectionLayoutGroup) VisualDescription() string { - rv := objc.Call[string](c_, objc.Sel("visualDescription")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroup/3213857-subitems?language=objc +func (c_ CollectionLayoutGroup) Subitems() []CollectionLayoutItem { + rv := objc.Call[[]CollectionLayoutItem](c_, objc.Sel("subitems")) return rv } @@ -140,18 +143,3 @@ func (c_ CollectionLayoutGroup) InterItemSpacing() CollectionLayoutSpacing { func (c_ CollectionLayoutGroup) SetInterItemSpacing(value ICollectionLayoutSpacing) { objc.Call[objc.Void](c_, objc.Sel("setInterItemSpacing:"), value) } - -// An array of the supplementary items that are anchored to the group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroup/3199079-supplementaryitems?language=objc -func (c_ CollectionLayoutGroup) SetSupplementaryItems(value []ICollectionLayoutSupplementaryItem) { - objc.Call[objc.Void](c_, objc.Sel("setSupplementaryItems:"), value) -} - -// An array of the items contained in the group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroup/3213857-subitems?language=objc -func (c_ CollectionLayoutGroup) Subitems() []CollectionLayoutItem { - rv := objc.Call[[]CollectionLayoutItem](c_, objc.Sel("subitems")) - return rv -} diff --git a/macos/appkit/collection_layout_group_custom_item.gen.go b/macos/appkit/collection_layout_group_custom_item.gen.go index f7f73720..a978215f 100644 --- a/macos/appkit/collection_layout_group_custom_item.gen.go +++ b/macos/appkit/collection_layout_group_custom_item.gen.go @@ -5,7 +5,7 @@ package appkit import ( "unsafe" - "github.com/progrium/darwinkit/macos/foundation" + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/objc" ) @@ -19,7 +19,7 @@ type _CollectionLayoutGroupCustomItemClass struct { // An interface definition for the [CollectionLayoutGroupCustomItem] class. type ICollectionLayoutGroupCustomItem interface { objc.IObject - Frame() foundation.Rect + Frame() coregraphics.Rect ZIndex() int } @@ -36,19 +36,7 @@ func CollectionLayoutGroupCustomItemFrom(ptr unsafe.Pointer) CollectionLayoutGro } } -func (cc _CollectionLayoutGroupCustomItemClass) CustomItemWithFrameZIndex(frame foundation.Rect, zIndex int) CollectionLayoutGroupCustomItem { - rv := objc.Call[CollectionLayoutGroupCustomItem](cc, objc.Sel("customItemWithFrame:zIndex:"), frame, zIndex) - return rv -} - -// Creates a custom item with the specified frame and vertical stacking order in relation to other items in the group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroupcustomitem/3213864-customitemwithframe?language=objc -func CollectionLayoutGroupCustomItem_CustomItemWithFrameZIndex(frame foundation.Rect, zIndex int) CollectionLayoutGroupCustomItem { - return CollectionLayoutGroupCustomItemClass.CustomItemWithFrameZIndex(frame, zIndex) -} - -func (cc _CollectionLayoutGroupCustomItemClass) CustomItemWithFrame(frame foundation.Rect) CollectionLayoutGroupCustomItem { +func (cc _CollectionLayoutGroupCustomItemClass) CustomItemWithFrame(frame coregraphics.Rect) CollectionLayoutGroupCustomItem { rv := objc.Call[CollectionLayoutGroupCustomItem](cc, objc.Sel("customItemWithFrame:"), frame) return rv } @@ -56,7 +44,7 @@ func (cc _CollectionLayoutGroupCustomItemClass) CustomItemWithFrame(frame founda // Creates a custom item with the specified frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroupcustomitem/3213863-customitemwithframe?language=objc -func CollectionLayoutGroupCustomItem_CustomItemWithFrame(frame foundation.Rect) CollectionLayoutGroupCustomItem { +func CollectionLayoutGroupCustomItem_CustomItemWithFrame(frame coregraphics.Rect) CollectionLayoutGroupCustomItem { return CollectionLayoutGroupCustomItemClass.CustomItemWithFrame(frame) } @@ -83,8 +71,8 @@ func (c_ CollectionLayoutGroupCustomItem) Init() CollectionLayoutGroupCustomItem // The frame of the custom item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroupcustomitem/3213865-frame?language=objc -func (c_ CollectionLayoutGroupCustomItem) Frame() foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("frame")) +func (c_ CollectionLayoutGroupCustomItem) Frame() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](c_, objc.Sel("frame")) return rv } diff --git a/macos/appkit/collection_layout_item.gen.go b/macos/appkit/collection_layout_item.gen.go index 48d025c3..e2079da8 100644 --- a/macos/appkit/collection_layout_item.gen.go +++ b/macos/appkit/collection_layout_item.gen.go @@ -18,12 +18,12 @@ type _CollectionLayoutItemClass struct { // An interface definition for the [CollectionLayoutItem] class. type ICollectionLayoutItem interface { objc.IObject + LayoutSize() CollectionLayoutSize + SupplementaryItems() []CollectionLayoutSupplementaryItem ContentInsets() DirectionalEdgeInsets SetContentInsets(value DirectionalEdgeInsets) - LayoutSize() CollectionLayoutSize EdgeSpacing() CollectionLayoutEdgeSpacing SetEdgeSpacing(value ICollectionLayoutEdgeSpacing) - SupplementaryItems() []CollectionLayoutSupplementaryItem } // The most basic component of a collection view’s layout. [Full Topic] @@ -51,18 +51,6 @@ func CollectionLayoutItem_ItemWithLayoutSize(layoutSize ICollectionLayoutSize) C return CollectionLayoutItemClass.ItemWithLayoutSize(layoutSize) } -func (cc _CollectionLayoutItemClass) ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutItem { - rv := objc.Call[CollectionLayoutItem](cc, objc.Sel("itemWithLayoutSize:supplementaryItems:"), layoutSize, supplementaryItems) - return rv -} - -// Creates an item of the specified size with an array of supplementary items to attach to the item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3213872-itemwithlayoutsize?language=objc -func CollectionLayoutItem_ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutItem { - return CollectionLayoutItemClass.ItemWithLayoutSizeSupplementaryItems(layoutSize, supplementaryItems) -} - func (cc _CollectionLayoutItemClass) Alloc() CollectionLayoutItem { rv := objc.Call[CollectionLayoutItem](cc, objc.Sel("alloc")) return rv @@ -83,6 +71,22 @@ func (c_ CollectionLayoutItem) Init() CollectionLayoutItem { return rv } +// The item's size expressed in width and height dimensions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3213873-layoutsize?language=objc +func (c_ CollectionLayoutItem) LayoutSize() CollectionLayoutSize { + rv := objc.Call[CollectionLayoutSize](c_, objc.Sel("layoutSize")) + return rv +} + +// An array of the supplementary items attached to the item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3213874-supplementaryitems?language=objc +func (c_ CollectionLayoutItem) SupplementaryItems() []CollectionLayoutSupplementaryItem { + rv := objc.Call[[]CollectionLayoutSupplementaryItem](c_, objc.Sel("supplementaryItems")) + return rv +} + // The amount of space added around the content of the item to adjust its final size after its position is computed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199084-contentinsets?language=objc @@ -98,14 +102,6 @@ func (c_ CollectionLayoutItem) SetContentInsets(value DirectionalEdgeInsets) { objc.Call[objc.Void](c_, objc.Sel("setContentInsets:"), value) } -// The item's size expressed in width and height dimensions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3213873-layoutsize?language=objc -func (c_ CollectionLayoutItem) LayoutSize() CollectionLayoutSize { - rv := objc.Call[CollectionLayoutSize](c_, objc.Sel("layoutSize")) - return rv -} - // The amount of space added around the boundaries of the item between other items and this item's container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199085-edgespacing?language=objc @@ -120,11 +116,3 @@ func (c_ CollectionLayoutItem) EdgeSpacing() CollectionLayoutEdgeSpacing { func (c_ CollectionLayoutItem) SetEdgeSpacing(value ICollectionLayoutEdgeSpacing) { objc.Call[objc.Void](c_, objc.Sel("setEdgeSpacing:"), value) } - -// An array of the supplementary items attached to the item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3213874-supplementaryitems?language=objc -func (c_ CollectionLayoutItem) SupplementaryItems() []CollectionLayoutSupplementaryItem { - rv := objc.Call[[]CollectionLayoutSupplementaryItem](c_, objc.Sel("supplementaryItems")) - return rv -} diff --git a/macos/appkit/collection_layout_section.gen.go b/macos/appkit/collection_layout_section.gen.go index 48d66b07..c8265e4d 100644 --- a/macos/appkit/collection_layout_section.gen.go +++ b/macos/appkit/collection_layout_section.gen.go @@ -18,20 +18,20 @@ type _CollectionLayoutSectionClass struct { // An interface definition for the [CollectionLayoutSection] class. type ICollectionLayoutSection interface { objc.IObject + SupplementariesFollowContentInsets() bool + SetSupplementariesFollowContentInsets(value bool) OrthogonalScrollingBehavior() CollectionLayoutSectionOrthogonalScrollingBehavior SetOrthogonalScrollingBehavior(value CollectionLayoutSectionOrthogonalScrollingBehavior) - VisibleItemsInvalidationHandler() CollectionLayoutSectionVisibleItemsInvalidationHandler - SetVisibleItemsInvalidationHandler(value CollectionLayoutSectionVisibleItemsInvalidationHandler) - BoundarySupplementaryItems() []CollectionLayoutBoundarySupplementaryItem - SetBoundarySupplementaryItems(value []ICollectionLayoutBoundarySupplementaryItem) ContentInsets() DirectionalEdgeInsets SetContentInsets(value DirectionalEdgeInsets) - InterGroupSpacing() float64 - SetInterGroupSpacing(value float64) - SupplementariesFollowContentInsets() bool - SetSupplementariesFollowContentInsets(value bool) + VisibleItemsInvalidationHandler() CollectionLayoutSectionVisibleItemsInvalidationHandler + SetVisibleItemsInvalidationHandler(value CollectionLayoutSectionVisibleItemsInvalidationHandler) DecorationItems() []CollectionLayoutDecorationItem SetDecorationItems(value []ICollectionLayoutDecorationItem) + InterGroupSpacing() float64 + SetInterGroupSpacing(value float64) + BoundarySupplementaryItems() []CollectionLayoutBoundarySupplementaryItem + SetBoundarySupplementaryItems(value []ICollectionLayoutBoundarySupplementaryItem) } // A container that combines a set of groups into distinct visual groupings. [Full Topic] @@ -79,6 +79,21 @@ func (c_ CollectionLayoutSection) Init() CollectionLayoutSection { return rv } +// A Boolean value that indicates whether the section’s supplementary items follow the specified content insets for the section. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199095-supplementariesfollowcontentinse?language=objc +func (c_ CollectionLayoutSection) SupplementariesFollowContentInsets() bool { + rv := objc.Call[bool](c_, objc.Sel("supplementariesFollowContentInsets")) + return rv +} + +// A Boolean value that indicates whether the section’s supplementary items follow the specified content insets for the section. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199095-supplementariesfollowcontentinse?language=objc +func (c_ CollectionLayoutSection) SetSupplementariesFollowContentInsets(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSupplementariesFollowContentInsets:"), value) +} + // The section’s scrolling behavior in relation to the main layout axis. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199094-orthogonalscrollingbehavior?language=objc @@ -94,6 +109,21 @@ func (c_ CollectionLayoutSection) SetOrthogonalScrollingBehavior(value Collectio objc.Call[objc.Void](c_, objc.Sel("setOrthogonalScrollingBehavior:"), value) } +// The amount of space between the content of the section and its boundaries. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199090-contentinsets?language=objc +func (c_ CollectionLayoutSection) ContentInsets() DirectionalEdgeInsets { + rv := objc.Call[DirectionalEdgeInsets](c_, objc.Sel("contentInsets")) + return rv +} + +// The amount of space between the content of the section and its boundaries. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199090-contentinsets?language=objc +func (c_ CollectionLayoutSection) SetContentInsets(value DirectionalEdgeInsets) { + objc.Call[objc.Void](c_, objc.Sel("setContentInsets:"), value) +} + // A closure called before each layout cycle to allow modification of the items in the section immediately before they’re displayed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199096-visibleitemsinvalidationhandler?language=objc @@ -109,34 +139,19 @@ func (c_ CollectionLayoutSection) SetVisibleItemsInvalidationHandler(value Colle objc.Call[objc.Void](c_, objc.Sel("setVisibleItemsInvalidationHandler:"), value) } -// An array of the supplementary items that are associated with the boundary edges of the section, such as headers and footers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199089-boundarysupplementaryitems?language=objc -func (c_ CollectionLayoutSection) BoundarySupplementaryItems() []CollectionLayoutBoundarySupplementaryItem { - rv := objc.Call[[]CollectionLayoutBoundarySupplementaryItem](c_, objc.Sel("boundarySupplementaryItems")) - return rv -} - -// An array of the supplementary items that are associated with the boundary edges of the section, such as headers and footers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199089-boundarysupplementaryitems?language=objc -func (c_ CollectionLayoutSection) SetBoundarySupplementaryItems(value []ICollectionLayoutBoundarySupplementaryItem) { - objc.Call[objc.Void](c_, objc.Sel("setBoundarySupplementaryItems:"), value) -} - -// The amount of space between the content of the section and its boundaries. [Full Topic] +// An array of the decoration items that are anchored to the section, such as background decoration views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199090-contentinsets?language=objc -func (c_ CollectionLayoutSection) ContentInsets() DirectionalEdgeInsets { - rv := objc.Call[DirectionalEdgeInsets](c_, objc.Sel("contentInsets")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199091-decorationitems?language=objc +func (c_ CollectionLayoutSection) DecorationItems() []CollectionLayoutDecorationItem { + rv := objc.Call[[]CollectionLayoutDecorationItem](c_, objc.Sel("decorationItems")) return rv } -// The amount of space between the content of the section and its boundaries. [Full Topic] +// An array of the decoration items that are anchored to the section, such as background decoration views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199090-contentinsets?language=objc -func (c_ CollectionLayoutSection) SetContentInsets(value DirectionalEdgeInsets) { - objc.Call[objc.Void](c_, objc.Sel("setContentInsets:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199091-decorationitems?language=objc +func (c_ CollectionLayoutSection) SetDecorationItems(value []ICollectionLayoutDecorationItem) { + objc.Call[objc.Void](c_, objc.Sel("setDecorationItems:"), value) } // The amount of space between the groups in the section. [Full Topic] @@ -154,32 +169,17 @@ func (c_ CollectionLayoutSection) SetInterGroupSpacing(value float64) { objc.Call[objc.Void](c_, objc.Sel("setInterGroupSpacing:"), value) } -// A Boolean value that indicates whether the section’s supplementary items follow the specified content insets for the section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199095-supplementariesfollowcontentinse?language=objc -func (c_ CollectionLayoutSection) SupplementariesFollowContentInsets() bool { - rv := objc.Call[bool](c_, objc.Sel("supplementariesFollowContentInsets")) - return rv -} - -// A Boolean value that indicates whether the section’s supplementary items follow the specified content insets for the section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199095-supplementariesfollowcontentinse?language=objc -func (c_ CollectionLayoutSection) SetSupplementariesFollowContentInsets(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setSupplementariesFollowContentInsets:"), value) -} - -// An array of the decoration items that are anchored to the section, such as background decoration views. [Full Topic] +// An array of the supplementary items that are associated with the boundary edges of the section, such as headers and footers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199091-decorationitems?language=objc -func (c_ CollectionLayoutSection) DecorationItems() []CollectionLayoutDecorationItem { - rv := objc.Call[[]CollectionLayoutDecorationItem](c_, objc.Sel("decorationItems")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199089-boundarysupplementaryitems?language=objc +func (c_ CollectionLayoutSection) BoundarySupplementaryItems() []CollectionLayoutBoundarySupplementaryItem { + rv := objc.Call[[]CollectionLayoutBoundarySupplementaryItem](c_, objc.Sel("boundarySupplementaryItems")) return rv } -// An array of the decoration items that are anchored to the section, such as background decoration views. [Full Topic] +// An array of the supplementary items that are associated with the boundary edges of the section, such as headers and footers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199091-decorationitems?language=objc -func (c_ CollectionLayoutSection) SetDecorationItems(value []ICollectionLayoutDecorationItem) { - objc.Call[objc.Void](c_, objc.Sel("setDecorationItems:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199089-boundarysupplementaryitems?language=objc +func (c_ CollectionLayoutSection) SetBoundarySupplementaryItems(value []ICollectionLayoutBoundarySupplementaryItem) { + objc.Call[objc.Void](c_, objc.Sel("setBoundarySupplementaryItems:"), value) } diff --git a/macos/appkit/collection_layout_spacing.gen.go b/macos/appkit/collection_layout_spacing.gen.go index de261def..b8ca8c1d 100644 --- a/macos/appkit/collection_layout_spacing.gen.go +++ b/macos/appkit/collection_layout_spacing.gen.go @@ -18,9 +18,9 @@ type _CollectionLayoutSpacingClass struct { // An interface definition for the [CollectionLayoutSpacing] class. type ICollectionLayoutSpacing interface { objc.IObject - IsFlexibleSpacing() bool Spacing() float64 IsFixedSpacing() bool + IsFlexibleSpacing() bool } // An object that defines the space between or around items in a collection view. [Full Topic] @@ -36,18 +36,6 @@ func CollectionLayoutSpacingFrom(ptr unsafe.Pointer) CollectionLayoutSpacing { } } -func (cc _CollectionLayoutSpacingClass) FlexibleSpacing(flexibleSpacing float64) CollectionLayoutSpacing { - rv := objc.Call[CollectionLayoutSpacing](cc, objc.Sel("flexibleSpacing:"), flexibleSpacing) - return rv -} - -// Creates a space equivalent to or greater than the specified number of points, depending on the available space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutspacing/3199104-flexiblespacing?language=objc -func CollectionLayoutSpacing_FlexibleSpacing(flexibleSpacing float64) CollectionLayoutSpacing { - return CollectionLayoutSpacingClass.FlexibleSpacing(flexibleSpacing) -} - func (cc _CollectionLayoutSpacingClass) FixedSpacing(fixedSpacing float64) CollectionLayoutSpacing { rv := objc.Call[CollectionLayoutSpacing](cc, objc.Sel("fixedSpacing:"), fixedSpacing) return rv @@ -60,6 +48,18 @@ func CollectionLayoutSpacing_FixedSpacing(fixedSpacing float64) CollectionLayout return CollectionLayoutSpacingClass.FixedSpacing(fixedSpacing) } +func (cc _CollectionLayoutSpacingClass) FlexibleSpacing(flexibleSpacing float64) CollectionLayoutSpacing { + rv := objc.Call[CollectionLayoutSpacing](cc, objc.Sel("flexibleSpacing:"), flexibleSpacing) + return rv +} + +// Creates a space equivalent to or greater than the specified number of points, depending on the available space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutspacing/3199104-flexiblespacing?language=objc +func CollectionLayoutSpacing_FlexibleSpacing(flexibleSpacing float64) CollectionLayoutSpacing { + return CollectionLayoutSpacingClass.FlexibleSpacing(flexibleSpacing) +} + func (cc _CollectionLayoutSpacingClass) Alloc() CollectionLayoutSpacing { rv := objc.Call[CollectionLayoutSpacing](cc, objc.Sel("alloc")) return rv @@ -80,14 +80,6 @@ func (c_ CollectionLayoutSpacing) Init() CollectionLayoutSpacing { return rv } -// A Boolean value that indicates whether the space is flexible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutspacing/3199106-isflexiblespacing?language=objc -func (c_ CollectionLayoutSpacing) IsFlexibleSpacing() bool { - rv := objc.Call[bool](c_, objc.Sel("isFlexibleSpacing")) - return rv -} - // The floating-point value of the space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutspacing/3199107-spacing?language=objc @@ -103,3 +95,11 @@ func (c_ CollectionLayoutSpacing) IsFixedSpacing() bool { rv := objc.Call[bool](c_, objc.Sel("isFixedSpacing")) return rv } + +// A Boolean value that indicates whether the space is flexible. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutspacing/3199106-isflexiblespacing?language=objc +func (c_ CollectionLayoutSpacing) IsFlexibleSpacing() bool { + rv := objc.Call[bool](c_, objc.Sel("isFlexibleSpacing")) + return rv +} diff --git a/macos/appkit/collection_layout_supplementary_item.gen.go b/macos/appkit/collection_layout_supplementary_item.gen.go index 97f2f770..69d62750 100644 --- a/macos/appkit/collection_layout_supplementary_item.gen.go +++ b/macos/appkit/collection_layout_supplementary_item.gen.go @@ -20,9 +20,9 @@ type ICollectionLayoutSupplementaryItem interface { ICollectionLayoutItem ContainerAnchor() CollectionLayoutAnchor ItemAnchor() CollectionLayoutAnchor + ElementKind() string ZIndex() int SetZIndex(value int) - ElementKind() string } // An object used to add an extra visual decoration to an item in a collection view. [Full Topic] @@ -38,18 +38,6 @@ func CollectionLayoutSupplementaryItemFrom(ptr unsafe.Pointer) CollectionLayoutS } } -func (cc _CollectionLayoutSupplementaryItemClass) SupplementaryItemWithLayoutSizeElementKindContainerAnchor(layoutSize ICollectionLayoutSize, elementKind string, containerAnchor ICollectionLayoutAnchor) CollectionLayoutSupplementaryItem { - rv := objc.Call[CollectionLayoutSupplementaryItem](cc, objc.Sel("supplementaryItemWithLayoutSize:elementKind:containerAnchor:"), layoutSize, elementKind, containerAnchor) - return rv -} - -// Creates a supplementary item of the specified size and element kind, with an anchor relative to a container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsupplementaryitem/3213899-supplementaryitemwithlayoutsize?language=objc -func CollectionLayoutSupplementaryItem_SupplementaryItemWithLayoutSizeElementKindContainerAnchor(layoutSize ICollectionLayoutSize, elementKind string, containerAnchor ICollectionLayoutAnchor) CollectionLayoutSupplementaryItem { - return CollectionLayoutSupplementaryItemClass.SupplementaryItemWithLayoutSizeElementKindContainerAnchor(layoutSize, elementKind, containerAnchor) -} - func (cc _CollectionLayoutSupplementaryItemClass) SupplementaryItemWithLayoutSizeElementKindContainerAnchorItemAnchor(layoutSize ICollectionLayoutSize, elementKind string, containerAnchor ICollectionLayoutAnchor, itemAnchor ICollectionLayoutAnchor) CollectionLayoutSupplementaryItem { rv := objc.Call[CollectionLayoutSupplementaryItem](cc, objc.Sel("supplementaryItemWithLayoutSize:elementKind:containerAnchor:itemAnchor:"), layoutSize, elementKind, containerAnchor, itemAnchor) return rv @@ -94,18 +82,6 @@ func CollectionLayoutSupplementaryItem_ItemWithLayoutSize(layoutSize ICollection return CollectionLayoutSupplementaryItemClass.ItemWithLayoutSize(layoutSize) } -func (cc _CollectionLayoutSupplementaryItemClass) ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutSupplementaryItem { - rv := objc.Call[CollectionLayoutSupplementaryItem](cc, objc.Sel("itemWithLayoutSize:supplementaryItems:"), layoutSize, supplementaryItems) - return rv -} - -// Creates an item of the specified size with an array of supplementary items to attach to the item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3213872-itemwithlayoutsize?language=objc -func CollectionLayoutSupplementaryItem_ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutSupplementaryItem { - return CollectionLayoutSupplementaryItemClass.ItemWithLayoutSizeSupplementaryItems(layoutSize, supplementaryItems) -} - // The anchor between the supplementary item and the container it's attached to. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsupplementaryitem/3199109-containeranchor?language=objc @@ -122,6 +98,14 @@ func (c_ CollectionLayoutSupplementaryItem) ItemAnchor() CollectionLayoutAnchor return rv } +// A string that identifies the type of supplementary item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsupplementaryitem/3199110-elementkind?language=objc +func (c_ CollectionLayoutSupplementaryItem) ElementKind() string { + rv := objc.Call[string](c_, objc.Sel("elementKind")) + return rv +} + // The vertical stacking order of the supplementary item in relation to other items in the section. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsupplementaryitem/3199114-zindex?language=objc @@ -136,11 +120,3 @@ func (c_ CollectionLayoutSupplementaryItem) ZIndex() int { func (c_ CollectionLayoutSupplementaryItem) SetZIndex(value int) { objc.Call[objc.Void](c_, objc.Sel("setZIndex:"), value) } - -// A string that identifies the type of supplementary item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutsupplementaryitem/3199110-elementkind?language=objc -func (c_ CollectionLayoutSupplementaryItem) ElementKind() string { - rv := objc.Call[string](c_, objc.Sel("elementKind")) - return rv -} diff --git a/macos/appkit/collection_layout_visible_item_protocol.gen.go b/macos/appkit/collection_layout_visible_item_protocol.gen.go index 5f7830e4..7a93ca0a 100644 --- a/macos/appkit/collection_layout_visible_item_protocol.gen.go +++ b/macos/appkit/collection_layout_visible_item_protocol.gen.go @@ -3,6 +3,7 @@ package appkit import ( + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -12,37 +13,29 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem?language=objc type PCollectionLayoutVisibleItem interface { // optional - Bounds() foundation.Rect - HasBounds() bool + SetHidden(value bool) + HasSetHidden() bool // optional - RepresentedElementKind() string - HasRepresentedElementKind() bool + IsHidden() bool + HasIsHidden() bool // optional - SetZIndex(value int) - HasSetZIndex() bool + Name() string + HasName() bool // optional - ZIndex() int - HasZIndex() bool + Bounds() coregraphics.Rect + HasBounds() bool // optional - IndexPath() foundation.IndexPath - HasIndexPath() bool + RepresentedElementKind() string + HasRepresentedElementKind() bool // optional RepresentedElementCategory() CollectionElementCategory HasRepresentedElementCategory() bool - // optional - Frame() foundation.Rect - HasFrame() bool - - // optional - Name() string - HasName() bool - // optional SetAlpha(value float64) HasSetAlpha() bool @@ -52,19 +45,27 @@ type PCollectionLayoutVisibleItem interface { HasAlpha() bool // optional - SetHidden(value bool) - HasSetHidden() bool + IndexPath() foundation.IndexPath + HasIndexPath() bool // optional - IsHidden() bool - HasIsHidden() bool + Frame() coregraphics.Rect + HasFrame() bool // optional - SetCenter(value foundation.Point) + SetZIndex(value int) + HasSetZIndex() bool + + // optional + ZIndex() int + HasZIndex() bool + + // optional + SetCenter(value coregraphics.Point) HasSetCenter() bool // optional - Center() foundation.Point + Center() coregraphics.Point HasCenter() bool } @@ -76,62 +77,62 @@ type CollectionLayoutVisibleItemObject struct { objc.Object } -func (c_ CollectionLayoutVisibleItemObject) HasBounds() bool { - return c_.RespondsToSelector(objc.Sel("bounds")) +func (c_ CollectionLayoutVisibleItemObject) HasSetHidden() bool { + return c_.RespondsToSelector(objc.Sel("setHidden:")) } -// The bounds rectangle, which describes the item's location and size in its own coordinate system. [Full Topic] +// A Boolean value that determines whether the item is hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199117-bounds?language=objc -func (c_ CollectionLayoutVisibleItemObject) Bounds() foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("bounds")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199121-hidden?language=objc +func (c_ CollectionLayoutVisibleItemObject) SetHidden(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setHidden:"), value) } -func (c_ CollectionLayoutVisibleItemObject) HasRepresentedElementKind() bool { - return c_.RespondsToSelector(objc.Sel("representedElementKind")) +func (c_ CollectionLayoutVisibleItemObject) HasIsHidden() bool { + return c_.RespondsToSelector(objc.Sel("isHidden")) } -// A string that identifies the type of item. [Full Topic] +// A Boolean value that determines whether the item is hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199124-representedelementkind?language=objc -func (c_ CollectionLayoutVisibleItemObject) RepresentedElementKind() string { - rv := objc.Call[string](c_, objc.Sel("representedElementKind")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199121-hidden?language=objc +func (c_ CollectionLayoutVisibleItemObject) IsHidden() bool { + rv := objc.Call[bool](c_, objc.Sel("isHidden")) return rv } -func (c_ CollectionLayoutVisibleItemObject) HasSetZIndex() bool { - return c_.RespondsToSelector(objc.Sel("setZIndex:")) +func (c_ CollectionLayoutVisibleItemObject) HasName() bool { + return c_.RespondsToSelector(objc.Sel("name")) } -// The vertical stacking order of the item in relation to other items in the section. [Full Topic] +// The name of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199127-zindex?language=objc -func (c_ CollectionLayoutVisibleItemObject) SetZIndex(value int) { - objc.Call[objc.Void](c_, objc.Sel("setZIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199122-name?language=objc +func (c_ CollectionLayoutVisibleItemObject) Name() string { + rv := objc.Call[string](c_, objc.Sel("name")) + return rv } -func (c_ CollectionLayoutVisibleItemObject) HasZIndex() bool { - return c_.RespondsToSelector(objc.Sel("zIndex")) +func (c_ CollectionLayoutVisibleItemObject) HasBounds() bool { + return c_.RespondsToSelector(objc.Sel("bounds")) } -// The vertical stacking order of the item in relation to other items in the section. [Full Topic] +// The bounds rectangle, which describes the item's location and size in its own coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199127-zindex?language=objc -func (c_ CollectionLayoutVisibleItemObject) ZIndex() int { - rv := objc.Call[int](c_, objc.Sel("zIndex")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199117-bounds?language=objc +func (c_ CollectionLayoutVisibleItemObject) Bounds() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](c_, objc.Sel("bounds")) return rv } -func (c_ CollectionLayoutVisibleItemObject) HasIndexPath() bool { - return c_.RespondsToSelector(objc.Sel("indexPath")) +func (c_ CollectionLayoutVisibleItemObject) HasRepresentedElementKind() bool { + return c_.RespondsToSelector(objc.Sel("representedElementKind")) } -// The index path of the item. [Full Topic] +// A string that identifies the type of item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199120-indexpath?language=objc -func (c_ CollectionLayoutVisibleItemObject) IndexPath() foundation.IndexPath { - rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPath")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199124-representedelementkind?language=objc +func (c_ CollectionLayoutVisibleItemObject) RepresentedElementKind() string { + rv := objc.Call[string](c_, objc.Sel("representedElementKind")) return rv } @@ -147,30 +148,6 @@ func (c_ CollectionLayoutVisibleItemObject) RepresentedElementCategory() Collect return rv } -func (c_ CollectionLayoutVisibleItemObject) HasFrame() bool { - return c_.RespondsToSelector(objc.Sel("frame")) -} - -// The frame rectangle, which describes the item's location and size in its section's coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199119-frame?language=objc -func (c_ CollectionLayoutVisibleItemObject) Frame() foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("frame")) - return rv -} - -func (c_ CollectionLayoutVisibleItemObject) HasName() bool { - return c_.RespondsToSelector(objc.Sel("name")) -} - -// The name of the item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199122-name?language=objc -func (c_ CollectionLayoutVisibleItemObject) Name() string { - rv := objc.Call[string](c_, objc.Sel("name")) - return rv -} - func (c_ CollectionLayoutVisibleItemObject) HasSetAlpha() bool { return c_.RespondsToSelector(objc.Sel("setAlpha:")) } @@ -194,26 +171,50 @@ func (c_ CollectionLayoutVisibleItemObject) Alpha() float64 { return rv } -func (c_ CollectionLayoutVisibleItemObject) HasSetHidden() bool { - return c_.RespondsToSelector(objc.Sel("setHidden:")) +func (c_ CollectionLayoutVisibleItemObject) HasIndexPath() bool { + return c_.RespondsToSelector(objc.Sel("indexPath")) } -// A Boolean value that determines whether the item is hidden. [Full Topic] +// The index path of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199121-hidden?language=objc -func (c_ CollectionLayoutVisibleItemObject) SetHidden(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setHidden:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199120-indexpath?language=objc +func (c_ CollectionLayoutVisibleItemObject) IndexPath() foundation.IndexPath { + rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPath")) + return rv } -func (c_ CollectionLayoutVisibleItemObject) HasIsHidden() bool { - return c_.RespondsToSelector(objc.Sel("isHidden")) +func (c_ CollectionLayoutVisibleItemObject) HasFrame() bool { + return c_.RespondsToSelector(objc.Sel("frame")) } -// A Boolean value that determines whether the item is hidden. [Full Topic] +// The frame rectangle, which describes the item's location and size in its section's coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199121-hidden?language=objc -func (c_ CollectionLayoutVisibleItemObject) IsHidden() bool { - rv := objc.Call[bool](c_, objc.Sel("isHidden")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199119-frame?language=objc +func (c_ CollectionLayoutVisibleItemObject) Frame() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](c_, objc.Sel("frame")) + return rv +} + +func (c_ CollectionLayoutVisibleItemObject) HasSetZIndex() bool { + return c_.RespondsToSelector(objc.Sel("setZIndex:")) +} + +// The vertical stacking order of the item in relation to other items in the section. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199127-zindex?language=objc +func (c_ CollectionLayoutVisibleItemObject) SetZIndex(value int) { + objc.Call[objc.Void](c_, objc.Sel("setZIndex:"), value) +} + +func (c_ CollectionLayoutVisibleItemObject) HasZIndex() bool { + return c_.RespondsToSelector(objc.Sel("zIndex")) +} + +// The vertical stacking order of the item in relation to other items in the section. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199127-zindex?language=objc +func (c_ CollectionLayoutVisibleItemObject) ZIndex() int { + rv := objc.Call[int](c_, objc.Sel("zIndex")) return rv } @@ -224,7 +225,7 @@ func (c_ CollectionLayoutVisibleItemObject) HasSetCenter() bool { // The center point of the item's frame rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199118-center?language=objc -func (c_ CollectionLayoutVisibleItemObject) SetCenter(value foundation.Point) { +func (c_ CollectionLayoutVisibleItemObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) } @@ -235,7 +236,7 @@ func (c_ CollectionLayoutVisibleItemObject) HasCenter() bool { // The center point of the item's frame rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199118-center?language=objc -func (c_ CollectionLayoutVisibleItemObject) Center() foundation.Point { - rv := objc.Call[foundation.Point](c_, objc.Sel("center")) +func (c_ CollectionLayoutVisibleItemObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) return rv } diff --git a/macos/appkit/collection_view.gen.go b/macos/appkit/collection_view.gen.go index f48d837e..6e7151cc 100644 --- a/macos/appkit/collection_view.gen.go +++ b/macos/appkit/collection_view.gen.go @@ -19,76 +19,73 @@ type _CollectionViewClass struct { // An interface definition for the [CollectionView] class. type ICollectionView interface { IView - DraggingImageForItemsAtIndexesWithEventOffset(indexes foundation.IIndexSet, event IEvent, dragImageOffset foundation.PointPointer) Image - DeselectAll(sender objc.IObject) objc.Object - IndexPathsForVisibleSupplementaryElementsOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set - MoveSectionToSection(section int, newSection int) - SelectItemsAtIndexPathsScrollPosition(indexPaths foundation.ISet, scrollPosition CollectionViewScrollPosition) - InsertItemsAtIndexPaths(indexPaths foundation.ISet) - DeleteSections(sections foundation.IIndexSet) - LayoutAttributesForSupplementaryElementOfKindAtIndexPath(kind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes + ItemAtIndex(index uint) CollectionViewItem RegisterNibForItemWithIdentifier(nib INib, identifier UserInterfaceItemIdentifier) - ToggleSectionCollapse(sender objc.IObject) objc.Object - ItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewItem + IndexPathsForVisibleSupplementaryElementsOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set + InsertSections(sections foundation.IIndexSet) + MakeItemWithIdentifierForIndexPath(identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) CollectionViewItem + NumberOfItemsInSection(section int) int + DeselectAll(sender objc.IObject) objc.Object + ReloadItemsAtIndexPaths(indexPaths foundation.ISet) + FrameForItemAtIndexWithNumberOfItems(index uint, numberOfItems uint) foundation.Rect RegisterClassForItemWithIdentifier(itemClass objc.IClass, identifier UserInterfaceItemIdentifier) IndexPathForItemAtPoint(point foundation.Point) foundation.IndexPath - IndexPathForItem(item ICollectionViewItem) foundation.IndexPath - FrameForItemAtIndex(index uint) foundation.Rect - RegisterClassForSupplementaryViewOfKindWithIdentifier(viewClass objc.IClass, kind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier) - VisibleItems() []CollectionViewItem - ReloadData() + DraggingImageForItemsAtIndexesWithEventOffset(indexes foundation.IIndexSet, event IEvent, dragImageOffset foundation.PointPointer) Image SelectAll(sender objc.IObject) objc.Object + DeleteSections(sections foundation.IIndexSet) + SelectItemsAtIndexPathsScrollPosition(indexPaths foundation.ISet, scrollPosition CollectionViewScrollPosition) + ScrollToItemsAtIndexPathsScrollPosition(indexPaths foundation.ISet, scrollPosition CollectionViewScrollPosition) + PerformBatchUpdatesCompletionHandler(updates func(), completionHandler func(finished bool)) + IndexPathForItem(item ICollectionViewItem) foundation.IndexPath + DraggingImageForItemsAtIndexPathsWithEventOffset(indexPaths foundation.ISet, event IEvent, dragImageOffset foundation.PointPointer) Image + MakeSupplementaryViewOfKindWithIdentifierForIndexPath(elementKind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) View IndexPathsForVisibleItems() foundation.Set - FrameForItemAtIndexWithNumberOfItems(index uint, numberOfItems uint) foundation.Rect - ItemAtIndex(index uint) CollectionViewItem - ReloadItemsAtIndexPaths(indexPaths foundation.ISet) DeselectItemsAtIndexPaths(indexPaths foundation.ISet) - MakeItemWithIdentifierForIndexPath(identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) CollectionViewItem - DraggingImageForItemsAtIndexPathsWithEventOffset(indexPaths foundation.ISet, event IEvent, dragImageOffset foundation.PointPointer) Image + SetDraggingSourceOperationMaskForLocal(dragOperationMask DragOperation, localDestination bool) SupplementaryViewForElementKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) View - RegisterNibForSupplementaryViewOfKindWithIdentifier(nib INib, kind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier) + InsertItemsAtIndexPaths(indexPaths foundation.ISet) + VisibleItems() []CollectionViewItem + ToggleSectionCollapse(sender objc.IObject) objc.Object + MoveSectionToSection(section int, newSection int) LayoutAttributesForItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes - InsertSections(sections foundation.IIndexSet) + LayoutAttributesForSupplementaryElementOfKindAtIndexPath(kind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes + ItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewItem + ReloadData() ReloadSections(sections foundation.IIndexSet) - VisibleSupplementaryViewsOfKind(elementKind CollectionViewSupplementaryElementKind) []View - SetDraggingSourceOperationMaskForLocal(dragOperationMask DragOperation, localDestination bool) - NumberOfItemsInSection(section int) int - MakeSupplementaryViewOfKindWithIdentifierForIndexPath(elementKind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) View DeleteItemsAtIndexPaths(indexPaths foundation.ISet) MoveItemAtIndexPathToIndexPath(indexPath foundation.IIndexPath, newIndexPath foundation.IIndexPath) - PerformBatchUpdatesCompletionHandler(updates func(), completionHandler func(finished bool)) - ScrollToItemsAtIndexPathsScrollPosition(indexPaths foundation.ISet, scrollPosition CollectionViewScrollPosition) - NumberOfSections() int - IsSelectable() bool - SetSelectable(value bool) - BackgroundViewScrollsWithContent() bool - SetBackgroundViewScrollsWithContent(value bool) - AllowsMultipleSelection() bool - SetAllowsMultipleSelection(value bool) - PrefetchDataSource() CollectionViewPrefetchingObject - SetPrefetchDataSource(value PCollectionViewPrefetching) - SetPrefetchDataSourceObject(valueObject objc.IObject) + VisibleSupplementaryViewsOfKind(elementKind CollectionViewSupplementaryElementKind) []View + DataSource() CollectionViewDataSourceObject + SetDataSource(value PCollectionViewDataSource) + SetDataSourceObject(valueObject objc.IObject) Content() []objc.Object SetContent(value []objc.IObject) - CollectionViewLayout() CollectionViewLayout - SetCollectionViewLayout(value ICollectionViewLayout) BackgroundColors() []Color SetBackgroundColors(value []IColor) AllowsEmptySelection() bool SetAllowsEmptySelection(value bool) - SelectionIndexPaths() foundation.Set - SetSelectionIndexPaths(value foundation.ISet) - SelectionIndexes() foundation.IndexSet - SetSelectionIndexes(value foundation.IIndexSet) BackgroundView() View SetBackgroundView(value IView) + IsFirstResponder() bool + CollectionViewLayout() CollectionViewLayout + SetCollectionViewLayout(value ICollectionViewLayout) Delegate() CollectionViewDelegateObject SetDelegate(value PCollectionViewDelegate) SetDelegateObject(valueObject objc.IObject) - IsFirstResponder() bool - DataSource() CollectionViewDataSourceObject - SetDataSource(value PCollectionViewDataSource) - SetDataSourceObject(valueObject objc.IObject) + SelectionIndexPaths() foundation.Set + SetSelectionIndexPaths(value foundation.ISet) + BackgroundViewScrollsWithContent() bool + SetBackgroundViewScrollsWithContent(value bool) + IsSelectable() bool + SetSelectable(value bool) + SelectionIndexes() foundation.IndexSet + SetSelectionIndexes(value foundation.IIndexSet) + AllowsMultipleSelection() bool + SetAllowsMultipleSelection(value bool) + NumberOfSections() int + PrefetchDataSource() CollectionViewPrefetchingObject + SetPrefetchDataSource(value PCollectionViewPrefetching) + SetPrefetchDataSourceObject(valueObject objc.IObject) } // An ordered collection of data items displayed in a customizable layout. [Full Topic] @@ -138,20 +135,19 @@ func NewCollectionViewWithFrame(frameRect foundation.Rect) CollectionView { return instance } -// This method computes and returns an image to use for dragging. [Full Topic] +// Returns the collection view item for the represented object at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528249-draggingimageforitemsatindexes?language=objc -func (c_ CollectionView) DraggingImageForItemsAtIndexesWithEventOffset(indexes foundation.IIndexSet, event IEvent, dragImageOffset foundation.PointPointer) Image { - rv := objc.Call[Image](c_, objc.Sel("draggingImageForItemsAtIndexes:withEvent:offset:"), indexes, event, dragImageOffset) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1526399-itematindex?language=objc +func (c_ CollectionView) ItemAtIndex(index uint) CollectionViewItem { + rv := objc.Call[CollectionViewItem](c_, objc.Sel("itemAtIndex:"), index) return rv } -// Deselects all items in the collection view. [Full Topic] +// Registers a nib file to use when creating items in the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528251-deselectall?language=objc -func (c_ CollectionView) DeselectAll(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("deselectAll:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528174-registernib?language=objc +func (c_ CollectionView) RegisterNibForItemWithIdentifier(nib INib, identifier UserInterfaceItemIdentifier) { + objc.Call[objc.Void](c_, objc.Sel("registerNib:forItemWithIdentifier:"), nib, identifier) } // Returns the index paths of the currently active supplementary views. [Full Topic] @@ -162,62 +158,49 @@ func (c_ CollectionView) IndexPathsForVisibleSupplementaryElementsOfKind(element return rv } -// Moves a section from its current location to a new location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1524485-movesection?language=objc -func (c_ CollectionView) MoveSectionToSection(section int, newSection int) { - objc.Call[objc.Void](c_, objc.Sel("moveSection:toSection:"), section, newSection) -} - -// Adds the specified items to the current selection and optionally scrolls the items into position. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1525656-selectitemsatindexpaths?language=objc -func (c_ CollectionView) SelectItemsAtIndexPathsScrollPosition(indexPaths foundation.ISet, scrollPosition CollectionViewScrollPosition) { - objc.Call[objc.Void](c_, objc.Sel("selectItemsAtIndexPaths:scrollPosition:"), indexPaths, scrollPosition) -} - -// Inserts new items into the collection view at the specified locations. [Full Topic] +// Inserts new sections at the specified indexes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528267-insertitemsatindexpaths?language=objc -func (c_ CollectionView) InsertItemsAtIndexPaths(indexPaths foundation.ISet) { - objc.Call[objc.Void](c_, objc.Sel("insertItemsAtIndexPaths:"), indexPaths) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1526126-insertsections?language=objc +func (c_ CollectionView) InsertSections(sections foundation.IIndexSet) { + objc.Call[objc.Void](c_, objc.Sel("insertSections:"), sections) } -// Deletes the specified sections and their contained items. [Full Topic] +// Creates or returns a reusable item object of the specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1527083-deletesections?language=objc -func (c_ CollectionView) DeleteSections(sections foundation.IIndexSet) { - objc.Call[objc.Void](c_, objc.Sel("deleteSections:"), sections) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528240-makeitemwithidentifier?language=objc +func (c_ CollectionView) MakeItemWithIdentifierForIndexPath(identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) CollectionViewItem { + rv := objc.Call[CollectionViewItem](c_, objc.Sel("makeItemWithIdentifier:forIndexPath:"), identifier, indexPath) + return rv } -// Returns the layout information for the supplementary view at the specified index path. [Full Topic] +// Returns the number of items in the specified section. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1526721-layoutattributesforsupplementary?language=objc -func (c_ CollectionView) LayoutAttributesForSupplementaryElementOfKindAtIndexPath(kind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForSupplementaryElementOfKind:atIndexPath:"), kind, indexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528291-numberofitemsinsection?language=objc +func (c_ CollectionView) NumberOfItemsInSection(section int) int { + rv := objc.Call[int](c_, objc.Sel("numberOfItemsInSection:"), section) return rv } -// Registers a nib file to use when creating items in the collection view. [Full Topic] +// Deselects all items in the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528174-registernib?language=objc -func (c_ CollectionView) RegisterNibForItemWithIdentifier(nib INib, identifier UserInterfaceItemIdentifier) { - objc.Call[objc.Void](c_, objc.Sel("registerNib:forItemWithIdentifier:"), nib, identifier) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528251-deselectall?language=objc +func (c_ CollectionView) DeselectAll(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("deselectAll:"), sender) + return rv } -// Collapses the section in which the sender resides into a single horizontally scrollable row. [Full Topic] +// Reloads only the specified items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1644691-togglesectioncollapse?language=objc -func (c_ CollectionView) ToggleSectionCollapse(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("toggleSectionCollapse:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528166-reloaditemsatindexpaths?language=objc +func (c_ CollectionView) ReloadItemsAtIndexPaths(indexPaths foundation.ISet) { + objc.Call[objc.Void](c_, objc.Sel("reloadItemsAtIndexPaths:"), indexPaths) } -// Returns the item associated with the specified index path. [Full Topic] +// Returns the frame of an item based on the number of items in the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528184-itematindexpath?language=objc -func (c_ CollectionView) ItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewItem { - rv := objc.Call[CollectionViewItem](c_, objc.Sel("itemAtIndexPath:"), indexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528209-frameforitematindex?language=objc +func (c_ CollectionView) FrameForItemAtIndexWithNumberOfItems(index uint, numberOfItems uint) foundation.Rect { + rv := objc.Call[foundation.Rect](c_, objc.Sel("frameForItemAtIndex:withNumberOfItems:"), index, numberOfItems) return rv } @@ -236,81 +219,80 @@ func (c_ CollectionView) IndexPathForItemAtPoint(point foundation.Point) foundat return rv } -// Returns the index path of the specified item. [Full Topic] +// This method computes and returns an image to use for dragging. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528277-indexpathforitem?language=objc -func (c_ CollectionView) IndexPathForItem(item ICollectionViewItem) foundation.IndexPath { - rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPathForItem:"), item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528249-draggingimageforitemsatindexes?language=objc +func (c_ CollectionView) DraggingImageForItemsAtIndexesWithEventOffset(indexes foundation.IIndexSet, event IEvent, dragImageOffset foundation.PointPointer) Image { + rv := objc.Call[Image](c_, objc.Sel("draggingImageForItemsAtIndexes:withEvent:offset:"), indexes, event, dragImageOffset) return rv } -// Returns the frame of the collection view item at the specified index. [Full Topic] +// Selects all items in the collection view, if doing so is possible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1524639-frameforitematindex?language=objc -func (c_ CollectionView) FrameForItemAtIndex(index uint) foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("frameForItemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528156-selectall?language=objc +func (c_ CollectionView) SelectAll(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("selectAll:"), sender) return rv } -// Registers a class to use when creating new supplementary views in the collection view. [Full Topic] +// Deletes the specified sections and their contained items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528233-registerclass?language=objc -func (c_ CollectionView) RegisterClassForSupplementaryViewOfKindWithIdentifier(viewClass objc.IClass, kind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier) { - objc.Call[objc.Void](c_, objc.Sel("registerClass:forSupplementaryViewOfKind:withIdentifier:"), viewClass, kind, identifier) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1527083-deletesections?language=objc +func (c_ CollectionView) DeleteSections(sections foundation.IIndexSet) { + objc.Call[objc.Void](c_, objc.Sel("deleteSections:"), sections) } -// Returns an array of the actively managed items in the collection view. [Full Topic] +// Adds the specified items to the current selection and optionally scrolls the items into position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528194-visibleitems?language=objc -func (c_ CollectionView) VisibleItems() []CollectionViewItem { - rv := objc.Call[[]CollectionViewItem](c_, objc.Sel("visibleItems")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1525656-selectitemsatindexpaths?language=objc +func (c_ CollectionView) SelectItemsAtIndexPathsScrollPosition(indexPaths foundation.ISet, scrollPosition CollectionViewScrollPosition) { + objc.Call[objc.Void](c_, objc.Sel("selectItemsAtIndexPaths:scrollPosition:"), indexPaths, scrollPosition) } -// Reloads all of the data for the collection view. [Full Topic] +// Scrolls the collection view contents until the specified items are visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528264-reloaddata?language=objc -func (c_ CollectionView) ReloadData() { - objc.Call[objc.Void](c_, objc.Sel("reloadData")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528227-scrolltoitemsatindexpaths?language=objc +func (c_ CollectionView) ScrollToItemsAtIndexPathsScrollPosition(indexPaths foundation.ISet, scrollPosition CollectionViewScrollPosition) { + objc.Call[objc.Void](c_, objc.Sel("scrollToItemsAtIndexPaths:scrollPosition:"), indexPaths, scrollPosition) } -// Selects all items in the collection view, if doing so is possible. [Full Topic] +// Encapsulates multiple insert, delete, reload, and move operations into a single animated operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528156-selectall?language=objc -func (c_ CollectionView) SelectAll(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("selectAll:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1525876-performbatchupdates?language=objc +func (c_ CollectionView) PerformBatchUpdatesCompletionHandler(updates func(), completionHandler func(finished bool)) { + objc.Call[objc.Void](c_, objc.Sel("performBatchUpdates:completionHandler:"), updates, completionHandler) } -// Returns the index paths of the currently active items. [Full Topic] +// Returns the index path of the specified item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528223-indexpathsforvisibleitems?language=objc -func (c_ CollectionView) IndexPathsForVisibleItems() foundation.Set { - rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsForVisibleItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528277-indexpathforitem?language=objc +func (c_ CollectionView) IndexPathForItem(item ICollectionViewItem) foundation.IndexPath { + rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPathForItem:"), item) return rv } -// Returns the frame of an item based on the number of items in the collection view. [Full Topic] +// Returns an image to use for dragging the specified items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528209-frameforitematindex?language=objc -func (c_ CollectionView) FrameForItemAtIndexWithNumberOfItems(index uint, numberOfItems uint) foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("frameForItemAtIndex:withNumberOfItems:"), index, numberOfItems) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528191-draggingimageforitemsatindexpath?language=objc +func (c_ CollectionView) DraggingImageForItemsAtIndexPathsWithEventOffset(indexPaths foundation.ISet, event IEvent, dragImageOffset foundation.PointPointer) Image { + rv := objc.Call[Image](c_, objc.Sel("draggingImageForItemsAtIndexPaths:withEvent:offset:"), indexPaths, event, dragImageOffset) return rv } -// Returns the collection view item for the represented object at the specified index. [Full Topic] +// Creates or returns a reusable supplementary view of the specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1526399-itematindex?language=objc -func (c_ CollectionView) ItemAtIndex(index uint) CollectionViewItem { - rv := objc.Call[CollectionViewItem](c_, objc.Sel("itemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528302-makesupplementaryviewofkind?language=objc +func (c_ CollectionView) MakeSupplementaryViewOfKindWithIdentifierForIndexPath(elementKind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) View { + rv := objc.Call[View](c_, objc.Sel("makeSupplementaryViewOfKind:withIdentifier:forIndexPath:"), elementKind, identifier, indexPath) return rv } -// Reloads only the specified items. [Full Topic] +// Returns the index paths of the currently active items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528166-reloaditemsatindexpaths?language=objc -func (c_ CollectionView) ReloadItemsAtIndexPaths(indexPaths foundation.ISet) { - objc.Call[objc.Void](c_, objc.Sel("reloadItemsAtIndexPaths:"), indexPaths) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528223-indexpathsforvisibleitems?language=objc +func (c_ CollectionView) IndexPathsForVisibleItems() foundation.Set { + rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsForVisibleItems")) + return rv } // Removes the specified items from the current selection. [Full Topic] @@ -320,20 +302,11 @@ func (c_ CollectionView) DeselectItemsAtIndexPaths(indexPaths foundation.ISet) { objc.Call[objc.Void](c_, objc.Sel("deselectItemsAtIndexPaths:"), indexPaths) } -// Creates or returns a reusable item object of the specified type. [Full Topic] +// Configures the default value returned from draggingSourceOperationMaskForLocal:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528240-makeitemwithidentifier?language=objc -func (c_ CollectionView) MakeItemWithIdentifierForIndexPath(identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) CollectionViewItem { - rv := objc.Call[CollectionViewItem](c_, objc.Sel("makeItemWithIdentifier:forIndexPath:"), identifier, indexPath) - return rv -} - -// Returns an image to use for dragging the specified items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528191-draggingimageforitemsatindexpath?language=objc -func (c_ CollectionView) DraggingImageForItemsAtIndexPathsWithEventOffset(indexPaths foundation.ISet, event IEvent, dragImageOffset foundation.PointPointer) Image { - rv := objc.Call[Image](c_, objc.Sel("draggingImageForItemsAtIndexPaths:withEvent:offset:"), indexPaths, event, dragImageOffset) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528229-setdraggingsourceoperationmask?language=objc +func (c_ CollectionView) SetDraggingSourceOperationMaskForLocal(dragOperationMask DragOperation, localDestination bool) { + objc.Call[objc.Void](c_, objc.Sel("setDraggingSourceOperationMask:forLocal:"), dragOperationMask, localDestination) } // Returns the supplementary view associated with the specified index path. [Full Topic] @@ -344,64 +317,72 @@ func (c_ CollectionView) SupplementaryViewForElementKindAtIndexPath(elementKind return rv } -// Registers a nib file to use when creating supplementary views in the collection view. [Full Topic] +// Inserts new items into the collection view at the specified locations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1527005-registernib?language=objc -func (c_ CollectionView) RegisterNibForSupplementaryViewOfKindWithIdentifier(nib INib, kind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier) { - objc.Call[objc.Void](c_, objc.Sel("registerNib:forSupplementaryViewOfKind:withIdentifier:"), nib, kind, identifier) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528267-insertitemsatindexpaths?language=objc +func (c_ CollectionView) InsertItemsAtIndexPaths(indexPaths foundation.ISet) { + objc.Call[objc.Void](c_, objc.Sel("insertItemsAtIndexPaths:"), indexPaths) } -// Returns the layout information for the item at the specified index path. [Full Topic] +// Returns an array of the actively managed items in the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528243-layoutattributesforitematindexpa?language=objc -func (c_ CollectionView) LayoutAttributesForItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForItemAtIndexPath:"), indexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528194-visibleitems?language=objc +func (c_ CollectionView) VisibleItems() []CollectionViewItem { + rv := objc.Call[[]CollectionViewItem](c_, objc.Sel("visibleItems")) return rv } -// Inserts new sections at the specified indexes. [Full Topic] +// Collapses the section in which the sender resides into a single horizontally scrollable row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1526126-insertsections?language=objc -func (c_ CollectionView) InsertSections(sections foundation.IIndexSet) { - objc.Call[objc.Void](c_, objc.Sel("insertSections:"), sections) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1644691-togglesectioncollapse?language=objc +func (c_ CollectionView) ToggleSectionCollapse(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("toggleSectionCollapse:"), sender) + return rv } -// Reloads the data in the specified sections of the collection view. [Full Topic] +// Moves a section from its current location to a new location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528306-reloadsections?language=objc -func (c_ CollectionView) ReloadSections(sections foundation.IIndexSet) { - objc.Call[objc.Void](c_, objc.Sel("reloadSections:"), sections) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1524485-movesection?language=objc +func (c_ CollectionView) MoveSectionToSection(section int, newSection int) { + objc.Call[objc.Void](c_, objc.Sel("moveSection:toSection:"), section, newSection) } -// Returns an array of the actively managed supplementary views in the collection view. [Full Topic] +// Returns the layout information for the item at the specified index path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528203-visiblesupplementaryviewsofkind?language=objc -func (c_ CollectionView) VisibleSupplementaryViewsOfKind(elementKind CollectionViewSupplementaryElementKind) []View { - rv := objc.Call[[]View](c_, objc.Sel("visibleSupplementaryViewsOfKind:"), elementKind) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528243-layoutattributesforitematindexpa?language=objc +func (c_ CollectionView) LayoutAttributesForItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForItemAtIndexPath:"), indexPath) return rv } -// Configures the default value returned from [objectivec/nsobject/draggingsourceoperationmaskforlo]. [Full Topic] +// Returns the layout information for the supplementary view at the specified index path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528229-setdraggingsourceoperationmask?language=objc -func (c_ CollectionView) SetDraggingSourceOperationMaskForLocal(dragOperationMask DragOperation, localDestination bool) { - objc.Call[objc.Void](c_, objc.Sel("setDraggingSourceOperationMask:forLocal:"), dragOperationMask, localDestination) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1526721-layoutattributesforsupplementary?language=objc +func (c_ CollectionView) LayoutAttributesForSupplementaryElementOfKindAtIndexPath(kind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForSupplementaryElementOfKind:atIndexPath:"), kind, indexPath) + return rv } -// Returns the number of items in the specified section. [Full Topic] +// Returns the item associated with the specified index path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528291-numberofitemsinsection?language=objc -func (c_ CollectionView) NumberOfItemsInSection(section int) int { - rv := objc.Call[int](c_, objc.Sel("numberOfItemsInSection:"), section) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528184-itematindexpath?language=objc +func (c_ CollectionView) ItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewItem { + rv := objc.Call[CollectionViewItem](c_, objc.Sel("itemAtIndexPath:"), indexPath) return rv } -// Creates or returns a reusable supplementary view of the specified type. [Full Topic] +// Reloads all of the data for the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528302-makesupplementaryviewofkind?language=objc -func (c_ CollectionView) MakeSupplementaryViewOfKindWithIdentifierForIndexPath(elementKind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) View { - rv := objc.Call[View](c_, objc.Sel("makeSupplementaryViewOfKind:withIdentifier:forIndexPath:"), elementKind, identifier, indexPath) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528264-reloaddata?language=objc +func (c_ CollectionView) ReloadData() { + objc.Call[objc.Void](c_, objc.Sel("reloadData")) +} + +// Reloads the data in the specified sections of the collection view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528306-reloadsections?language=objc +func (c_ CollectionView) ReloadSections(sections foundation.IIndexSet) { + objc.Call[objc.Void](c_, objc.Sel("reloadSections:"), sections) } // Deletes the items at the specified index paths. [Full Topic] @@ -418,110 +399,104 @@ func (c_ CollectionView) MoveItemAtIndexPathToIndexPath(indexPath foundation.IIn objc.Call[objc.Void](c_, objc.Sel("moveItemAtIndexPath:toIndexPath:"), indexPath, newIndexPath) } -// Encapsulates multiple insert, delete, reload, and move operations into a single animated operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1525876-performbatchupdates?language=objc -func (c_ CollectionView) PerformBatchUpdatesCompletionHandler(updates func(), completionHandler func(finished bool)) { - objc.Call[objc.Void](c_, objc.Sel("performBatchUpdates:completionHandler:"), updates, completionHandler) -} - -// Scrolls the collection view contents until the specified items are visible. [Full Topic] +// Returns an array of the actively managed supplementary views in the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528227-scrolltoitemsatindexpaths?language=objc -func (c_ CollectionView) ScrollToItemsAtIndexPathsScrollPosition(indexPaths foundation.ISet, scrollPosition CollectionViewScrollPosition) { - objc.Call[objc.Void](c_, objc.Sel("scrollToItemsAtIndexPaths:scrollPosition:"), indexPaths, scrollPosition) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528203-visiblesupplementaryviewsofkind?language=objc +func (c_ CollectionView) VisibleSupplementaryViewsOfKind(elementKind CollectionViewSupplementaryElementKind) []View { + rv := objc.Call[[]View](c_, objc.Sel("visibleSupplementaryViewsOfKind:"), elementKind) + return rv } -// The number of sections in the collection view. [Full Topic] +// An object that provides data for the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528238-numberofsections?language=objc -func (c_ CollectionView) NumberOfSections() int { - rv := objc.Call[int](c_, objc.Sel("numberOfSections")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528222-datasource?language=objc +func (c_ CollectionView) DataSource() CollectionViewDataSourceObject { + rv := objc.Call[CollectionViewDataSourceObject](c_, objc.Sel("dataSource")) return rv } -// A Boolean value that indicates whether the user may select items in the collection view. [Full Topic] +// An object that provides data for the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528300-selectable?language=objc -func (c_ CollectionView) IsSelectable() bool { - rv := objc.Call[bool](c_, objc.Sel("isSelectable")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528222-datasource?language=objc +func (c_ CollectionView) SetDataSource(value PCollectionViewDataSource) { + po0 := objc.WrapAsProtocol("NSCollectionViewDataSource", value) + objc.SetAssociatedObject(c_, objc.AssociationKey("setDataSource"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](c_, objc.Sel("setDataSource:"), po0) } -// A Boolean value that indicates whether the user may select items in the collection view. [Full Topic] +// An object that provides data for the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528300-selectable?language=objc -func (c_ CollectionView) SetSelectable(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setSelectable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528222-datasource?language=objc +func (c_ CollectionView) SetDataSourceObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setDataSource:"), valueObject) } -// A Boolean value that indicates whether the collection view’s background view scrolls with the items and other content. [Full Topic] +// An array that provides data for the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1644533-backgroundviewscrollswithcontent?language=objc -func (c_ CollectionView) BackgroundViewScrollsWithContent() bool { - rv := objc.Call[bool](c_, objc.Sel("backgroundViewScrollsWithContent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528207-content?language=objc +func (c_ CollectionView) Content() []objc.Object { + rv := objc.Call[[]objc.Object](c_, objc.Sel("content")) return rv } -// A Boolean value that indicates whether the collection view’s background view scrolls with the items and other content. [Full Topic] +// An array that provides data for the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1644533-backgroundviewscrollswithcontent?language=objc -func (c_ CollectionView) SetBackgroundViewScrollsWithContent(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setBackgroundViewScrollsWithContent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528207-content?language=objc +func (c_ CollectionView) SetContent(value []objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setContent:"), value) } -// A Boolean value that indicates whether the user may select more than one item in the collection view. [Full Topic] +// An array containing the collection view’s background colors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1524276-allowsmultipleselection?language=objc -func (c_ CollectionView) AllowsMultipleSelection() bool { - rv := objc.Call[bool](c_, objc.Sel("allowsMultipleSelection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528220-backgroundcolors?language=objc +func (c_ CollectionView) BackgroundColors() []Color { + rv := objc.Call[[]Color](c_, objc.Sel("backgroundColors")) return rv } -// A Boolean value that indicates whether the user may select more than one item in the collection view. [Full Topic] +// An array containing the collection view’s background colors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1524276-allowsmultipleselection?language=objc -func (c_ CollectionView) SetAllowsMultipleSelection(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setAllowsMultipleSelection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528220-backgroundcolors?language=objc +func (c_ CollectionView) SetBackgroundColors(value []IColor) { + objc.Call[objc.Void](c_, objc.Sel("setBackgroundColors:"), value) } -// [Full Topic] +// A Boolean value indicating whether the collection view may have no selected items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/2879292-prefetchdatasource?language=objc -func (c_ CollectionView) PrefetchDataSource() CollectionViewPrefetchingObject { - rv := objc.Call[CollectionViewPrefetchingObject](c_, objc.Sel("prefetchDataSource")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528180-allowsemptyselection?language=objc +func (c_ CollectionView) AllowsEmptySelection() bool { + rv := objc.Call[bool](c_, objc.Sel("allowsEmptySelection")) return rv } -// [Full Topic] +// A Boolean value indicating whether the collection view may have no selected items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/2879292-prefetchdatasource?language=objc -func (c_ CollectionView) SetPrefetchDataSource(value PCollectionViewPrefetching) { - po0 := objc.WrapAsProtocol("NSCollectionViewPrefetching", value) - objc.SetAssociatedObject(c_, objc.AssociationKey("setPrefetchDataSource"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](c_, objc.Sel("setPrefetchDataSource:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528180-allowsemptyselection?language=objc +func (c_ CollectionView) SetAllowsEmptySelection(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setAllowsEmptySelection:"), value) } -// [Full Topic] +// The background view placed behind all items and supplementary views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/2879292-prefetchdatasource?language=objc -func (c_ CollectionView) SetPrefetchDataSourceObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setPrefetchDataSource:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528250-backgroundview?language=objc +func (c_ CollectionView) BackgroundView() View { + rv := objc.Call[View](c_, objc.Sel("backgroundView")) + return rv } -// An array that provides data for the collection view. [Full Topic] +// The background view placed behind all items and supplementary views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528207-content?language=objc -func (c_ CollectionView) Content() []objc.Object { - rv := objc.Call[[]objc.Object](c_, objc.Sel("content")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528250-backgroundview?language=objc +func (c_ CollectionView) SetBackgroundView(value IView) { + objc.Call[objc.Void](c_, objc.Sel("setBackgroundView:"), value) } -// An array that provides data for the collection view. [Full Topic] +// A Boolean value indicating whether the collection view is the first responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528207-content?language=objc -func (c_ CollectionView) SetContent(value []objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setContent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528199-firstresponder?language=objc +func (c_ CollectionView) IsFirstResponder() bool { + rv := objc.Call[bool](c_, objc.Sel("isFirstResponder")) + return rv } // The layout object used to organize the collection view’s content. [Full Topic] @@ -539,34 +514,28 @@ func (c_ CollectionView) SetCollectionViewLayout(value ICollectionViewLayout) { objc.Call[objc.Void](c_, objc.Sel("setCollectionViewLayout:"), value) } -// An array containing the collection view’s background colors. [Full Topic] +// The collection view’s delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528220-backgroundcolors?language=objc -func (c_ CollectionView) BackgroundColors() []Color { - rv := objc.Call[[]Color](c_, objc.Sel("backgroundColors")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528246-delegate?language=objc +func (c_ CollectionView) Delegate() CollectionViewDelegateObject { + rv := objc.Call[CollectionViewDelegateObject](c_, objc.Sel("delegate")) return rv } -// An array containing the collection view’s background colors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528220-backgroundcolors?language=objc -func (c_ CollectionView) SetBackgroundColors(value []IColor) { - objc.Call[objc.Void](c_, objc.Sel("setBackgroundColors:"), value) -} - -// A Boolean value indicating whether the collection view may have no selected items. [Full Topic] +// The collection view’s delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528180-allowsemptyselection?language=objc -func (c_ CollectionView) AllowsEmptySelection() bool { - rv := objc.Call[bool](c_, objc.Sel("allowsEmptySelection")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528246-delegate?language=objc +func (c_ CollectionView) SetDelegate(value PCollectionViewDelegate) { + po0 := objc.WrapAsProtocol("NSCollectionViewDelegate", value) + objc.SetAssociatedObject(c_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), po0) } -// A Boolean value indicating whether the collection view may have no selected items. [Full Topic] +// The collection view’s delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528180-allowsemptyselection?language=objc -func (c_ CollectionView) SetAllowsEmptySelection(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setAllowsEmptySelection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528246-delegate?language=objc +func (c_ CollectionView) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), valueObject) } // The set of index paths representing the currently selected items. [Full Topic] @@ -584,88 +553,94 @@ func (c_ CollectionView) SetSelectionIndexPaths(value foundation.ISet) { objc.Call[objc.Void](c_, objc.Sel("setSelectionIndexPaths:"), value) } -// The indexes of the currently selected items. [Full Topic] +// A Boolean value that indicates whether the collection view’s background view scrolls with the items and other content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1525505-selectionindexes?language=objc -func (c_ CollectionView) SelectionIndexes() foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](c_, objc.Sel("selectionIndexes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1644533-backgroundviewscrollswithcontent?language=objc +func (c_ CollectionView) BackgroundViewScrollsWithContent() bool { + rv := objc.Call[bool](c_, objc.Sel("backgroundViewScrollsWithContent")) return rv } -// The indexes of the currently selected items. [Full Topic] +// A Boolean value that indicates whether the collection view’s background view scrolls with the items and other content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1525505-selectionindexes?language=objc -func (c_ CollectionView) SetSelectionIndexes(value foundation.IIndexSet) { - objc.Call[objc.Void](c_, objc.Sel("setSelectionIndexes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1644533-backgroundviewscrollswithcontent?language=objc +func (c_ CollectionView) SetBackgroundViewScrollsWithContent(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setBackgroundViewScrollsWithContent:"), value) } -// The background view placed behind all items and supplementary views. [Full Topic] +// A Boolean value that indicates whether the user may select items in the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528250-backgroundview?language=objc -func (c_ CollectionView) BackgroundView() View { - rv := objc.Call[View](c_, objc.Sel("backgroundView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528300-selectable?language=objc +func (c_ CollectionView) IsSelectable() bool { + rv := objc.Call[bool](c_, objc.Sel("isSelectable")) return rv } -// The background view placed behind all items and supplementary views. [Full Topic] +// A Boolean value that indicates whether the user may select items in the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528250-backgroundview?language=objc -func (c_ CollectionView) SetBackgroundView(value IView) { - objc.Call[objc.Void](c_, objc.Sel("setBackgroundView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528300-selectable?language=objc +func (c_ CollectionView) SetSelectable(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSelectable:"), value) } -// The collection view’s delegate object. [Full Topic] +// The indexes of the currently selected items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528246-delegate?language=objc -func (c_ CollectionView) Delegate() CollectionViewDelegateObject { - rv := objc.Call[CollectionViewDelegateObject](c_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1525505-selectionindexes?language=objc +func (c_ CollectionView) SelectionIndexes() foundation.IndexSet { + rv := objc.Call[foundation.IndexSet](c_, objc.Sel("selectionIndexes")) return rv } -// The collection view’s delegate object. [Full Topic] +// The indexes of the currently selected items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528246-delegate?language=objc -func (c_ CollectionView) SetDelegate(value PCollectionViewDelegate) { - po0 := objc.WrapAsProtocol("NSCollectionViewDelegate", value) - objc.SetAssociatedObject(c_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1525505-selectionindexes?language=objc +func (c_ CollectionView) SetSelectionIndexes(value foundation.IIndexSet) { + objc.Call[objc.Void](c_, objc.Sel("setSelectionIndexes:"), value) } -// The collection view’s delegate object. [Full Topic] +// A Boolean value that indicates whether the user may select more than one item in the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528246-delegate?language=objc -func (c_ CollectionView) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1524276-allowsmultipleselection?language=objc +func (c_ CollectionView) AllowsMultipleSelection() bool { + rv := objc.Call[bool](c_, objc.Sel("allowsMultipleSelection")) + return rv } -// A Boolean value indicating whether the collection view is the first responder. [Full Topic] +// A Boolean value that indicates whether the user may select more than one item in the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528199-firstresponder?language=objc -func (c_ CollectionView) IsFirstResponder() bool { - rv := objc.Call[bool](c_, objc.Sel("isFirstResponder")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1524276-allowsmultipleselection?language=objc +func (c_ CollectionView) SetAllowsMultipleSelection(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setAllowsMultipleSelection:"), value) +} + +// The number of sections in the collection view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528238-numberofsections?language=objc +func (c_ CollectionView) NumberOfSections() int { + rv := objc.Call[int](c_, objc.Sel("numberOfSections")) return rv } -// An object that provides data for the collection view. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528222-datasource?language=objc -func (c_ CollectionView) DataSource() CollectionViewDataSourceObject { - rv := objc.Call[CollectionViewDataSourceObject](c_, objc.Sel("dataSource")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/2879292-prefetchdatasource?language=objc +func (c_ CollectionView) PrefetchDataSource() CollectionViewPrefetchingObject { + rv := objc.Call[CollectionViewPrefetchingObject](c_, objc.Sel("prefetchDataSource")) return rv } -// An object that provides data for the collection view. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528222-datasource?language=objc -func (c_ CollectionView) SetDataSource(value PCollectionViewDataSource) { - po0 := objc.WrapAsProtocol("NSCollectionViewDataSource", value) - objc.SetAssociatedObject(c_, objc.AssociationKey("setDataSource"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](c_, objc.Sel("setDataSource:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/2879292-prefetchdatasource?language=objc +func (c_ CollectionView) SetPrefetchDataSource(value PCollectionViewPrefetching) { + po0 := objc.WrapAsProtocol("NSCollectionViewPrefetching", value) + objc.SetAssociatedObject(c_, objc.AssociationKey("setPrefetchDataSource"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](c_, objc.Sel("setPrefetchDataSource:"), po0) } -// An object that provides data for the collection view. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528222-datasource?language=objc -func (c_ CollectionView) SetDataSourceObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setDataSource:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/2879292-prefetchdatasource?language=objc +func (c_ CollectionView) SetPrefetchDataSourceObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setPrefetchDataSource:"), valueObject) } diff --git a/macos/appkit/collection_view_compositional_layout.gen.go b/macos/appkit/collection_view_compositional_layout.gen.go index 3c2574ba..9167fd44 100644 --- a/macos/appkit/collection_view_compositional_layout.gen.go +++ b/macos/appkit/collection_view_compositional_layout.gen.go @@ -49,34 +49,6 @@ func NewCollectionViewCompositionalLayoutWithSection(section ICollectionLayoutSe return instance } -func (c_ CollectionViewCompositionalLayout) InitWithSectionProviderConfiguration(sectionProvider CollectionViewCompositionalLayoutSectionProvider, configuration ICollectionViewCompositionalLayoutConfiguration) CollectionViewCompositionalLayout { - rv := objc.Call[CollectionViewCompositionalLayout](c_, objc.Sel("initWithSectionProvider:configuration:"), sectionProvider, configuration) - return rv -} - -// Creates a compositional layout object with a section provider and an additional configuration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewcompositionallayout/3281809-initwithsectionprovider?language=objc -func NewCollectionViewCompositionalLayoutWithSectionProviderConfiguration(sectionProvider CollectionViewCompositionalLayoutSectionProvider, configuration ICollectionViewCompositionalLayoutConfiguration) CollectionViewCompositionalLayout { - instance := CollectionViewCompositionalLayoutClass.Alloc().InitWithSectionProviderConfiguration(sectionProvider, configuration) - instance.Autorelease() - return instance -} - -func (c_ CollectionViewCompositionalLayout) InitWithSectionConfiguration(section ICollectionLayoutSection, configuration ICollectionViewCompositionalLayoutConfiguration) CollectionViewCompositionalLayout { - rv := objc.Call[CollectionViewCompositionalLayout](c_, objc.Sel("initWithSection:configuration:"), section, configuration) - return rv -} - -// Creates a compositional layout object with a single section and an additional configuration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewcompositionallayout/3281807-initwithsection?language=objc -func NewCollectionViewCompositionalLayoutWithSectionConfiguration(section ICollectionLayoutSection, configuration ICollectionViewCompositionalLayoutConfiguration) CollectionViewCompositionalLayout { - instance := CollectionViewCompositionalLayoutClass.Alloc().InitWithSectionConfiguration(section, configuration) - instance.Autorelease() - return instance -} - func (c_ CollectionViewCompositionalLayout) InitWithSectionProvider(sectionProvider CollectionViewCompositionalLayoutSectionProvider) CollectionViewCompositionalLayout { rv := objc.Call[CollectionViewCompositionalLayout](c_, objc.Sel("initWithSectionProvider:"), sectionProvider) return rv diff --git a/macos/appkit/collection_view_compositional_layout_configuration.gen.go b/macos/appkit/collection_view_compositional_layout_configuration.gen.go index a6dc214d..cbffa1dc 100644 --- a/macos/appkit/collection_view_compositional_layout_configuration.gen.go +++ b/macos/appkit/collection_view_compositional_layout_configuration.gen.go @@ -18,12 +18,12 @@ type _CollectionViewCompositionalLayoutConfigurationClass struct { // An interface definition for the [CollectionViewCompositionalLayoutConfiguration] class. type ICollectionViewCompositionalLayoutConfiguration interface { objc.IObject - BoundarySupplementaryItems() []CollectionLayoutBoundarySupplementaryItem - SetBoundarySupplementaryItems(value []ICollectionLayoutBoundarySupplementaryItem) ScrollDirection() CollectionViewScrollDirection SetScrollDirection(value CollectionViewScrollDirection) InterSectionSpacing() float64 SetInterSectionSpacing(value float64) + BoundarySupplementaryItems() []CollectionLayoutBoundarySupplementaryItem + SetBoundarySupplementaryItems(value []ICollectionLayoutBoundarySupplementaryItem) } // An object that defines scroll direction, section spacing, and headers or footers for the layout. [Full Topic] @@ -59,21 +59,6 @@ func (c_ CollectionViewCompositionalLayoutConfiguration) Init() CollectionViewCo return rv } -// An array of the supplementary items that are associated with the boundary edges of the entire layout, such as global headers and footers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewcompositionallayoutconfiguration/3281811-boundarysupplementaryitems?language=objc -func (c_ CollectionViewCompositionalLayoutConfiguration) BoundarySupplementaryItems() []CollectionLayoutBoundarySupplementaryItem { - rv := objc.Call[[]CollectionLayoutBoundarySupplementaryItem](c_, objc.Sel("boundarySupplementaryItems")) - return rv -} - -// An array of the supplementary items that are associated with the boundary edges of the entire layout, such as global headers and footers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewcompositionallayoutconfiguration/3281811-boundarysupplementaryitems?language=objc -func (c_ CollectionViewCompositionalLayoutConfiguration) SetBoundarySupplementaryItems(value []ICollectionLayoutBoundarySupplementaryItem) { - objc.Call[objc.Void](c_, objc.Sel("setBoundarySupplementaryItems:"), value) -} - // The axis that the content in the collection view layout scrolls along. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewcompositionallayoutconfiguration/3281813-scrolldirection?language=objc @@ -103,3 +88,18 @@ func (c_ CollectionViewCompositionalLayoutConfiguration) InterSectionSpacing() f func (c_ CollectionViewCompositionalLayoutConfiguration) SetInterSectionSpacing(value float64) { objc.Call[objc.Void](c_, objc.Sel("setInterSectionSpacing:"), value) } + +// An array of the supplementary items that are associated with the boundary edges of the entire layout, such as global headers and footers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewcompositionallayoutconfiguration/3281811-boundarysupplementaryitems?language=objc +func (c_ CollectionViewCompositionalLayoutConfiguration) BoundarySupplementaryItems() []CollectionLayoutBoundarySupplementaryItem { + rv := objc.Call[[]CollectionLayoutBoundarySupplementaryItem](c_, objc.Sel("boundarySupplementaryItems")) + return rv +} + +// An array of the supplementary items that are associated with the boundary edges of the entire layout, such as global headers and footers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewcompositionallayoutconfiguration/3281811-boundarysupplementaryitems?language=objc +func (c_ CollectionViewCompositionalLayoutConfiguration) SetBoundarySupplementaryItems(value []ICollectionLayoutBoundarySupplementaryItem) { + objc.Call[objc.Void](c_, objc.Sel("setBoundarySupplementaryItems:"), value) +} diff --git a/macos/appkit/collection_view_data_source_protocol.gen.go b/macos/appkit/collection_view_data_source_protocol.gen.go index 76d43631..d5331bf7 100644 --- a/macos/appkit/collection_view_data_source_protocol.gen.go +++ b/macos/appkit/collection_view_data_source_protocol.gen.go @@ -3,7 +3,6 @@ package appkit import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -11,21 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdatasource?language=objc type PCollectionViewDataSource interface { - // optional - CollectionViewNumberOfItemsInSection(collectionView CollectionView, section int) int - HasCollectionViewNumberOfItemsInSection() bool - // optional NumberOfSectionsInCollectionView(collectionView CollectionView) int HasNumberOfSectionsInCollectionView() bool // optional - CollectionViewViewForSupplementaryElementOfKindAtIndexPath(collectionView CollectionView, kind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) View - HasCollectionViewViewForSupplementaryElementOfKindAtIndexPath() bool - - // optional - CollectionViewItemForRepresentedObjectAtIndexPath(collectionView CollectionView, indexPath foundation.IndexPath) CollectionViewItem - HasCollectionViewItemForRepresentedObjectAtIndexPath() bool + CollectionViewNumberOfItemsInSection(collectionView CollectionView, section int) int + HasCollectionViewNumberOfItemsInSection() bool } // ensure impl type implements protocol interface @@ -36,18 +27,6 @@ type CollectionViewDataSourceObject struct { objc.Object } -func (c_ CollectionViewDataSourceObject) HasCollectionViewNumberOfItemsInSection() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:numberOfItemsInSection:")) -} - -// Asks your data source object to provide the number of items in the specified section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdatasource/1525594-collectionview?language=objc -func (c_ CollectionViewDataSourceObject) CollectionViewNumberOfItemsInSection(collectionView CollectionView, section int) int { - rv := objc.Call[int](c_, objc.Sel("collectionView:numberOfItemsInSection:"), collectionView, section) - return rv -} - func (c_ CollectionViewDataSourceObject) HasNumberOfSectionsInCollectionView() bool { return c_.RespondsToSelector(objc.Sel("numberOfSectionsInCollectionView:")) } @@ -60,26 +39,14 @@ func (c_ CollectionViewDataSourceObject) NumberOfSectionsInCollectionView(collec return rv } -func (c_ CollectionViewDataSourceObject) HasCollectionViewViewForSupplementaryElementOfKindAtIndexPath() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:viewForSupplementaryElementOfKind:atIndexPath:")) -} - -// Asks your data source object to provide the supplementary view at the specified location in a section of the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdatasource/1528286-collectionview?language=objc -func (c_ CollectionViewDataSourceObject) CollectionViewViewForSupplementaryElementOfKindAtIndexPath(collectionView CollectionView, kind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) View { - rv := objc.Call[View](c_, objc.Sel("collectionView:viewForSupplementaryElementOfKind:atIndexPath:"), collectionView, kind, indexPath) - return rv -} - -func (c_ CollectionViewDataSourceObject) HasCollectionViewItemForRepresentedObjectAtIndexPath() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:itemForRepresentedObjectAtIndexPath:")) +func (c_ CollectionViewDataSourceObject) HasCollectionViewNumberOfItemsInSection() bool { + return c_.RespondsToSelector(objc.Sel("collectionView:numberOfItemsInSection:")) } -// Asks your data source object to provide the item at the specified location in the collection view. [Full Topic] +// Asks your data source object to provide the number of items in the specified section. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdatasource/1524271-collectionview?language=objc -func (c_ CollectionViewDataSourceObject) CollectionViewItemForRepresentedObjectAtIndexPath(collectionView CollectionView, indexPath foundation.IndexPath) CollectionViewItem { - rv := objc.Call[CollectionViewItem](c_, objc.Sel("collectionView:itemForRepresentedObjectAtIndexPath:"), collectionView, indexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdatasource/1525594-collectionview?language=objc +func (c_ CollectionViewDataSourceObject) CollectionViewNumberOfItemsInSection(collectionView CollectionView, section int) int { + rv := objc.Call[int](c_, objc.Sel("collectionView:numberOfItemsInSection:"), collectionView, section) return rv } diff --git a/macos/appkit/collection_view_delegate.gen.go b/macos/appkit/collection_view_delegate.gen.go index 511b1a7a..3ee94d80 100644 --- a/macos/appkit/collection_view_delegate.gen.go +++ b/macos/appkit/collection_view_delegate.gen.go @@ -3,8 +3,6 @@ package appkit import ( - "unsafe" - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -16,131 +14,11 @@ type PCollectionViewDelegate interface { // optional CollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) HasCollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath() bool - - // optional - CollectionViewDraggingImageForItemsAtIndexesWithEventOffset(collectionView CollectionView, indexes foundation.IndexSet, event Event, dragImageOffset foundation.PointPointer) Image - HasCollectionViewDraggingImageForItemsAtIndexesWithEventOffset() bool - - // optional - CollectionViewCanDragItemsAtIndexPathsWithEvent(collectionView CollectionView, indexPaths foundation.Set, event Event) bool - HasCollectionViewCanDragItemsAtIndexPathsWithEvent() bool - - // optional - CollectionViewPasteboardWriterForItemAtIndex(collectionView CollectionView, index uint) PasteboardWritingObject - HasCollectionViewPasteboardWriterForItemAtIndex() bool - - // optional - CollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset(collectionView CollectionView, indexPaths foundation.Set, event Event, dragImageOffset foundation.PointPointer) Image - HasCollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset() bool - - // optional - CollectionViewShouldChangeItemsAtIndexPathsToHighlightState(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) foundation.Set - HasCollectionViewShouldChangeItemsAtIndexPathsToHighlightState() bool - - // optional - CollectionViewCanDragItemsAtIndexesWithEvent(collectionView CollectionView, indexes foundation.IndexSet, event Event) bool - HasCollectionViewCanDragItemsAtIndexesWithEvent() bool - - // optional - CollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) - HasCollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath() bool - - // optional - CollectionViewAcceptDropIndexPathDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, indexPath foundation.IndexPath, dropOperation CollectionViewDropOperation) bool - HasCollectionViewAcceptDropIndexPathDropOperation() bool - - // optional - CollectionViewAcceptDropIndexDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, index int, dropOperation CollectionViewDropOperation) bool - HasCollectionViewAcceptDropIndexDropOperation() bool - - // optional - CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexes foundation.IndexSet) - HasCollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes() bool - - // optional - CollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) - HasCollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath() bool - - // optional - CollectionViewShouldDeselectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) foundation.Set - HasCollectionViewShouldDeselectItemsAtIndexPaths() bool - - // optional - CollectionViewDidChangeItemsAtIndexPathsToHighlightState(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) - HasCollectionViewDidChangeItemsAtIndexPathsToHighlightState() bool - - // optional - CollectionViewDraggingSessionEndedAtPointDragOperation(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, operation DragOperation) - HasCollectionViewDraggingSessionEndedAtPointDragOperation() bool - - // optional - CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexPaths foundation.Set) - HasCollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths() bool - - // optional - CollectionViewWillDisplayItemForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) - HasCollectionViewWillDisplayItemForRepresentedObjectAtIndexPath() bool - - // optional - CollectionViewValidateDropProposedIndexDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, proposedDropIndex *int, proposedDropOperation *CollectionViewDropOperation) DragOperation - HasCollectionViewValidateDropProposedIndexDropOperation() bool - - // optional - CollectionViewUpdateDraggingItemsForDrag(collectionView CollectionView, draggingInfo DraggingInfoObject) - HasCollectionViewUpdateDraggingItemsForDrag() bool - - // optional - CollectionViewPasteboardWriterForItemAtIndexPath(collectionView CollectionView, indexPath foundation.IndexPath) PasteboardWritingObject - HasCollectionViewPasteboardWriterForItemAtIndexPath() bool - - // optional - CollectionViewShouldSelectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) foundation.Set - HasCollectionViewShouldSelectItemsAtIndexPaths() bool - - // optional - CollectionViewDidSelectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) - HasCollectionViewDidSelectItemsAtIndexPaths() bool - - // optional - CollectionViewValidateDropProposedIndexPathDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, proposedDropIndexPath unsafe.Pointer, proposedDropOperation *CollectionViewDropOperation) DragOperation - HasCollectionViewValidateDropProposedIndexPathDropOperation() bool - - // optional - CollectionViewTransitionLayoutForOldLayoutNewLayout(collectionView CollectionView, fromLayout CollectionViewLayout, toLayout CollectionViewLayout) CollectionViewTransitionLayout - HasCollectionViewTransitionLayoutForOldLayoutNewLayout() bool - - // optional - CollectionViewDidDeselectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) - HasCollectionViewDidDeselectItemsAtIndexPaths() bool } // A delegate implementation builder for the [PCollectionViewDelegate] protocol. type CollectionViewDelegate struct { - _CollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath func(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) - _CollectionViewDraggingImageForItemsAtIndexesWithEventOffset func(collectionView CollectionView, indexes foundation.IndexSet, event Event, dragImageOffset foundation.PointPointer) Image - _CollectionViewCanDragItemsAtIndexPathsWithEvent func(collectionView CollectionView, indexPaths foundation.Set, event Event) bool - _CollectionViewPasteboardWriterForItemAtIndex func(collectionView CollectionView, index uint) PasteboardWritingObject - _CollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset func(collectionView CollectionView, indexPaths foundation.Set, event Event, dragImageOffset foundation.PointPointer) Image - _CollectionViewShouldChangeItemsAtIndexPathsToHighlightState func(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) foundation.Set - _CollectionViewCanDragItemsAtIndexesWithEvent func(collectionView CollectionView, indexes foundation.IndexSet, event Event) bool - _CollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath func(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) - _CollectionViewAcceptDropIndexPathDropOperation func(collectionView CollectionView, draggingInfo DraggingInfoObject, indexPath foundation.IndexPath, dropOperation CollectionViewDropOperation) bool - _CollectionViewAcceptDropIndexDropOperation func(collectionView CollectionView, draggingInfo DraggingInfoObject, index int, dropOperation CollectionViewDropOperation) bool - _CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes func(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexes foundation.IndexSet) - _CollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath func(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) - _CollectionViewShouldDeselectItemsAtIndexPaths func(collectionView CollectionView, indexPaths foundation.Set) foundation.Set - _CollectionViewDidChangeItemsAtIndexPathsToHighlightState func(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) - _CollectionViewDraggingSessionEndedAtPointDragOperation func(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, operation DragOperation) - _CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths func(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexPaths foundation.Set) - _CollectionViewWillDisplayItemForRepresentedObjectAtIndexPath func(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) - _CollectionViewValidateDropProposedIndexDropOperation func(collectionView CollectionView, draggingInfo DraggingInfoObject, proposedDropIndex *int, proposedDropOperation *CollectionViewDropOperation) DragOperation - _CollectionViewUpdateDraggingItemsForDrag func(collectionView CollectionView, draggingInfo DraggingInfoObject) - _CollectionViewPasteboardWriterForItemAtIndexPath func(collectionView CollectionView, indexPath foundation.IndexPath) PasteboardWritingObject - _CollectionViewShouldSelectItemsAtIndexPaths func(collectionView CollectionView, indexPaths foundation.Set) foundation.Set - _CollectionViewDidSelectItemsAtIndexPaths func(collectionView CollectionView, indexPaths foundation.Set) - _CollectionViewValidateDropProposedIndexPathDropOperation func(collectionView CollectionView, draggingInfo DraggingInfoObject, proposedDropIndexPath unsafe.Pointer, proposedDropOperation *CollectionViewDropOperation) DragOperation - _CollectionViewTransitionLayoutForOldLayoutNewLayout func(collectionView CollectionView, fromLayout CollectionViewLayout, toLayout CollectionViewLayout) CollectionViewTransitionLayout - _CollectionViewDidDeselectItemsAtIndexPaths func(collectionView CollectionView, indexPaths foundation.Set) + _CollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath func(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) } func (di *CollectionViewDelegate) HasCollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath() bool { @@ -160,414 +38,6 @@ func (di *CollectionViewDelegate) SetCollectionViewDidEndDisplayingItemForRepres func (di *CollectionViewDelegate) CollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) { di._CollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath(collectionView, item, indexPath) } -func (di *CollectionViewDelegate) HasCollectionViewDraggingImageForItemsAtIndexesWithEventOffset() bool { - return di._CollectionViewDraggingImageForItemsAtIndexesWithEventOffset != nil -} - -// Creates and returns a drag image to represent the specified items during a drag. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528138-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewDraggingImageForItemsAtIndexesWithEventOffset(f func(collectionView CollectionView, indexes foundation.IndexSet, event Event, dragImageOffset foundation.PointPointer) Image) { - di._CollectionViewDraggingImageForItemsAtIndexesWithEventOffset = f -} - -// Creates and returns a drag image to represent the specified items during a drag. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528138-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewDraggingImageForItemsAtIndexesWithEventOffset(collectionView CollectionView, indexes foundation.IndexSet, event Event, dragImageOffset foundation.PointPointer) Image { - return di._CollectionViewDraggingImageForItemsAtIndexesWithEventOffset(collectionView, indexes, event, dragImageOffset) -} -func (di *CollectionViewDelegate) HasCollectionViewCanDragItemsAtIndexPathsWithEvent() bool { - return di._CollectionViewCanDragItemsAtIndexPathsWithEvent != nil -} - -// Returns a Boolean indicating whether a drag operation involving the specified items can begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525969-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewCanDragItemsAtIndexPathsWithEvent(f func(collectionView CollectionView, indexPaths foundation.Set, event Event) bool) { - di._CollectionViewCanDragItemsAtIndexPathsWithEvent = f -} - -// Returns a Boolean indicating whether a drag operation involving the specified items can begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525969-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewCanDragItemsAtIndexPathsWithEvent(collectionView CollectionView, indexPaths foundation.Set, event Event) bool { - return di._CollectionViewCanDragItemsAtIndexPathsWithEvent(collectionView, indexPaths, event) -} -func (di *CollectionViewDelegate) HasCollectionViewPasteboardWriterForItemAtIndex() bool { - return di._CollectionViewPasteboardWriterForItemAtIndex != nil -} - -// Provides the pasteboard writer for the item at the specified index [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528257-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewPasteboardWriterForItemAtIndex(f func(collectionView CollectionView, index uint) PasteboardWritingObject) { - di._CollectionViewPasteboardWriterForItemAtIndex = f -} - -// Provides the pasteboard writer for the item at the specified index [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528257-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewPasteboardWriterForItemAtIndex(collectionView CollectionView, index uint) PasteboardWritingObject { - return di._CollectionViewPasteboardWriterForItemAtIndex(collectionView, index) -} -func (di *CollectionViewDelegate) HasCollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset() bool { - return di._CollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset != nil -} - -// Creates and returns a drag image to represent the specified items during a drag. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528175-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset(f func(collectionView CollectionView, indexPaths foundation.Set, event Event, dragImageOffset foundation.PointPointer) Image) { - di._CollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset = f -} - -// Creates and returns a drag image to represent the specified items during a drag. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528175-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset(collectionView CollectionView, indexPaths foundation.Set, event Event, dragImageOffset foundation.PointPointer) Image { - return di._CollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset(collectionView, indexPaths, event, dragImageOffset) -} -func (di *CollectionViewDelegate) HasCollectionViewShouldChangeItemsAtIndexPathsToHighlightState() bool { - return di._CollectionViewShouldChangeItemsAtIndexPathsToHighlightState != nil -} - -// Asks the delegate to approve the pending highlighting of the specified items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528178-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewShouldChangeItemsAtIndexPathsToHighlightState(f func(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) foundation.Set) { - di._CollectionViewShouldChangeItemsAtIndexPathsToHighlightState = f -} - -// Asks the delegate to approve the pending highlighting of the specified items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528178-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewShouldChangeItemsAtIndexPathsToHighlightState(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) foundation.Set { - return di._CollectionViewShouldChangeItemsAtIndexPathsToHighlightState(collectionView, indexPaths, highlightState) -} -func (di *CollectionViewDelegate) HasCollectionViewCanDragItemsAtIndexesWithEvent() bool { - return di._CollectionViewCanDragItemsAtIndexesWithEvent != nil -} - -// Returns a Boolean indicating whether the collection view can begin dragging the specified items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528212-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewCanDragItemsAtIndexesWithEvent(f func(collectionView CollectionView, indexes foundation.IndexSet, event Event) bool) { - di._CollectionViewCanDragItemsAtIndexesWithEvent = f -} - -// Returns a Boolean indicating whether the collection view can begin dragging the specified items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528212-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewCanDragItemsAtIndexesWithEvent(collectionView CollectionView, indexes foundation.IndexSet, event Event) bool { - return di._CollectionViewCanDragItemsAtIndexesWithEvent(collectionView, indexes, event) -} -func (di *CollectionViewDelegate) HasCollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath() bool { - return di._CollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath != nil -} - -// Notifies the delegate that the specified supplementary view was removed from the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528192-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(f func(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath)) { - di._CollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath = f -} - -// Notifies the delegate that the specified supplementary view was removed from the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528192-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) { - di._CollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(collectionView, view, elementKind, indexPath) -} -func (di *CollectionViewDelegate) HasCollectionViewAcceptDropIndexPathDropOperation() bool { - return di._CollectionViewAcceptDropIndexPathDropOperation != nil -} - -// Incorporates the dropped content into the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525045-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewAcceptDropIndexPathDropOperation(f func(collectionView CollectionView, draggingInfo DraggingInfoObject, indexPath foundation.IndexPath, dropOperation CollectionViewDropOperation) bool) { - di._CollectionViewAcceptDropIndexPathDropOperation = f -} - -// Incorporates the dropped content into the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525045-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewAcceptDropIndexPathDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, indexPath foundation.IndexPath, dropOperation CollectionViewDropOperation) bool { - return di._CollectionViewAcceptDropIndexPathDropOperation(collectionView, draggingInfo, indexPath, dropOperation) -} -func (di *CollectionViewDelegate) HasCollectionViewAcceptDropIndexDropOperation() bool { - return di._CollectionViewAcceptDropIndexDropOperation != nil -} - -// Invoked when the mouse is released over a collection view that previously allowed a drop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528242-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewAcceptDropIndexDropOperation(f func(collectionView CollectionView, draggingInfo DraggingInfoObject, index int, dropOperation CollectionViewDropOperation) bool) { - di._CollectionViewAcceptDropIndexDropOperation = f -} - -// Invoked when the mouse is released over a collection view that previously allowed a drop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528242-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewAcceptDropIndexDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, index int, dropOperation CollectionViewDropOperation) bool { - return di._CollectionViewAcceptDropIndexDropOperation(collectionView, draggingInfo, index, dropOperation) -} -func (di *CollectionViewDelegate) HasCollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes() bool { - return di._CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes != nil -} - -// Notifies your delegate that a drag session is about to begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1524615-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes(f func(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexes foundation.IndexSet)) { - di._CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes = f -} - -// Notifies your delegate that a drag session is about to begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1524615-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexes foundation.IndexSet) { - di._CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes(collectionView, session, screenPoint, indexes) -} -func (di *CollectionViewDelegate) HasCollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath() bool { - return di._CollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath != nil -} - -// Notifies the delegate that the specified supplementary view is about to be displayed by the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525963-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(f func(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath)) { - di._CollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath = f -} - -// Notifies the delegate that the specified supplementary view is about to be displayed by the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525963-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) { - di._CollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(collectionView, view, elementKind, indexPath) -} -func (di *CollectionViewDelegate) HasCollectionViewShouldDeselectItemsAtIndexPaths() bool { - return di._CollectionViewShouldDeselectItemsAtIndexPaths != nil -} - -// Asks the delegate object to approve the pending deselection of items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525582-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewShouldDeselectItemsAtIndexPaths(f func(collectionView CollectionView, indexPaths foundation.Set) foundation.Set) { - di._CollectionViewShouldDeselectItemsAtIndexPaths = f -} - -// Asks the delegate object to approve the pending deselection of items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525582-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewShouldDeselectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) foundation.Set { - return di._CollectionViewShouldDeselectItemsAtIndexPaths(collectionView, indexPaths) -} -func (di *CollectionViewDelegate) HasCollectionViewDidChangeItemsAtIndexPathsToHighlightState() bool { - return di._CollectionViewDidChangeItemsAtIndexPathsToHighlightState != nil -} - -// Notifies the delegate that the highlight state of the specified items changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1526015-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewDidChangeItemsAtIndexPathsToHighlightState(f func(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState)) { - di._CollectionViewDidChangeItemsAtIndexPathsToHighlightState = f -} - -// Notifies the delegate that the highlight state of the specified items changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1526015-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewDidChangeItemsAtIndexPathsToHighlightState(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) { - di._CollectionViewDidChangeItemsAtIndexPathsToHighlightState(collectionView, indexPaths, highlightState) -} -func (di *CollectionViewDelegate) HasCollectionViewDraggingSessionEndedAtPointDragOperation() bool { - return di._CollectionViewDraggingSessionEndedAtPointDragOperation != nil -} - -// Notifies your delegate that a drag session ended. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528224-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewDraggingSessionEndedAtPointDragOperation(f func(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, operation DragOperation)) { - di._CollectionViewDraggingSessionEndedAtPointDragOperation = f -} - -// Notifies your delegate that a drag session ended. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528224-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewDraggingSessionEndedAtPointDragOperation(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, operation DragOperation) { - di._CollectionViewDraggingSessionEndedAtPointDragOperation(collectionView, session, screenPoint, operation) -} -func (di *CollectionViewDelegate) HasCollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths() bool { - return di._CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths != nil -} - -// Notifies your delegate that a drag session is about to begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1527718-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths(f func(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexPaths foundation.Set)) { - di._CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths = f -} - -// Notifies your delegate that a drag session is about to begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1527718-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexPaths foundation.Set) { - di._CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths(collectionView, session, screenPoint, indexPaths) -} -func (di *CollectionViewDelegate) HasCollectionViewWillDisplayItemForRepresentedObjectAtIndexPath() bool { - return di._CollectionViewWillDisplayItemForRepresentedObjectAtIndexPath != nil -} - -// Notifies the delegate that the specified item is about to be displayed by the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1524266-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewWillDisplayItemForRepresentedObjectAtIndexPath(f func(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath)) { - di._CollectionViewWillDisplayItemForRepresentedObjectAtIndexPath = f -} - -// Notifies the delegate that the specified item is about to be displayed by the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1524266-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewWillDisplayItemForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) { - di._CollectionViewWillDisplayItemForRepresentedObjectAtIndexPath(collectionView, item, indexPath) -} -func (di *CollectionViewDelegate) HasCollectionViewValidateDropProposedIndexDropOperation() bool { - return di._CollectionViewValidateDropProposedIndexDropOperation != nil -} - -// Validates the specified location to see if it is a valid drop target. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528283-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewValidateDropProposedIndexDropOperation(f func(collectionView CollectionView, draggingInfo DraggingInfoObject, proposedDropIndex *int, proposedDropOperation *CollectionViewDropOperation) DragOperation) { - di._CollectionViewValidateDropProposedIndexDropOperation = f -} - -// Validates the specified location to see if it is a valid drop target. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528283-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewValidateDropProposedIndexDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, proposedDropIndex *int, proposedDropOperation *CollectionViewDropOperation) DragOperation { - return di._CollectionViewValidateDropProposedIndexDropOperation(collectionView, draggingInfo, proposedDropIndex, proposedDropOperation) -} -func (di *CollectionViewDelegate) HasCollectionViewUpdateDraggingItemsForDrag() bool { - return di._CollectionViewUpdateDraggingItemsForDrag != nil -} - -// Asks your delegate to update the dragging items during a drag operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1526881-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewUpdateDraggingItemsForDrag(f func(collectionView CollectionView, draggingInfo DraggingInfoObject)) { - di._CollectionViewUpdateDraggingItemsForDrag = f -} - -// Asks your delegate to update the dragging items during a drag operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1526881-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewUpdateDraggingItemsForDrag(collectionView CollectionView, draggingInfo DraggingInfoObject) { - di._CollectionViewUpdateDraggingItemsForDrag(collectionView, draggingInfo) -} -func (di *CollectionViewDelegate) HasCollectionViewPasteboardWriterForItemAtIndexPath() bool { - return di._CollectionViewPasteboardWriterForItemAtIndexPath != nil -} - -// Provides the pasteboard writer for the item at the specified index path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1527290-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewPasteboardWriterForItemAtIndexPath(f func(collectionView CollectionView, indexPath foundation.IndexPath) PasteboardWritingObject) { - di._CollectionViewPasteboardWriterForItemAtIndexPath = f -} - -// Provides the pasteboard writer for the item at the specified index path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1527290-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewPasteboardWriterForItemAtIndexPath(collectionView CollectionView, indexPath foundation.IndexPath) PasteboardWritingObject { - return di._CollectionViewPasteboardWriterForItemAtIndexPath(collectionView, indexPath) -} -func (di *CollectionViewDelegate) HasCollectionViewShouldSelectItemsAtIndexPaths() bool { - return di._CollectionViewShouldSelectItemsAtIndexPaths != nil -} - -// Asks the delegate to approve the pending selection of items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528280-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewShouldSelectItemsAtIndexPaths(f func(collectionView CollectionView, indexPaths foundation.Set) foundation.Set) { - di._CollectionViewShouldSelectItemsAtIndexPaths = f -} - -// Asks the delegate to approve the pending selection of items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528280-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewShouldSelectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) foundation.Set { - return di._CollectionViewShouldSelectItemsAtIndexPaths(collectionView, indexPaths) -} -func (di *CollectionViewDelegate) HasCollectionViewDidSelectItemsAtIndexPaths() bool { - return di._CollectionViewDidSelectItemsAtIndexPaths != nil -} - -// Notifies the delegate object that one or more items were selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528236-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewDidSelectItemsAtIndexPaths(f func(collectionView CollectionView, indexPaths foundation.Set)) { - di._CollectionViewDidSelectItemsAtIndexPaths = f -} - -// Notifies the delegate object that one or more items were selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528236-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewDidSelectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) { - di._CollectionViewDidSelectItemsAtIndexPaths(collectionView, indexPaths) -} -func (di *CollectionViewDelegate) HasCollectionViewValidateDropProposedIndexPathDropOperation() bool { - return di._CollectionViewValidateDropProposedIndexPathDropOperation != nil -} - -// Validates whether a drop operation is possible at the specified location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525471-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewValidateDropProposedIndexPathDropOperation(f func(collectionView CollectionView, draggingInfo DraggingInfoObject, proposedDropIndexPath unsafe.Pointer, proposedDropOperation *CollectionViewDropOperation) DragOperation) { - di._CollectionViewValidateDropProposedIndexPathDropOperation = f -} - -// Validates whether a drop operation is possible at the specified location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525471-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewValidateDropProposedIndexPathDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, proposedDropIndexPath unsafe.Pointer, proposedDropOperation *CollectionViewDropOperation) DragOperation { - return di._CollectionViewValidateDropProposedIndexPathDropOperation(collectionView, draggingInfo, proposedDropIndexPath, proposedDropOperation) -} -func (di *CollectionViewDelegate) HasCollectionViewTransitionLayoutForOldLayoutNewLayout() bool { - return di._CollectionViewTransitionLayoutForOldLayoutNewLayout != nil -} - -// Returns the transition layout object to use when performing an animated change between different layouts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528228-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewTransitionLayoutForOldLayoutNewLayout(f func(collectionView CollectionView, fromLayout CollectionViewLayout, toLayout CollectionViewLayout) CollectionViewTransitionLayout) { - di._CollectionViewTransitionLayoutForOldLayoutNewLayout = f -} - -// Returns the transition layout object to use when performing an animated change between different layouts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528228-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewTransitionLayoutForOldLayoutNewLayout(collectionView CollectionView, fromLayout CollectionViewLayout, toLayout CollectionViewLayout) CollectionViewTransitionLayout { - return di._CollectionViewTransitionLayoutForOldLayoutNewLayout(collectionView, fromLayout, toLayout) -} -func (di *CollectionViewDelegate) HasCollectionViewDidDeselectItemsAtIndexPaths() bool { - return di._CollectionViewDidDeselectItemsAtIndexPaths != nil -} - -// Notifies the delegate object that one or more items were deselected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528279-collectionview?language=objc -func (di *CollectionViewDelegate) SetCollectionViewDidDeselectItemsAtIndexPaths(f func(collectionView CollectionView, indexPaths foundation.Set)) { - di._CollectionViewDidDeselectItemsAtIndexPaths = f -} - -// Notifies the delegate object that one or more items were deselected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528279-collectionview?language=objc -func (di *CollectionViewDelegate) CollectionViewDidDeselectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) { - di._CollectionViewDidDeselectItemsAtIndexPaths(collectionView, indexPaths) -} // ensure impl type implements protocol interface var _ PCollectionViewDelegate = (*CollectionViewDelegateObject)(nil) @@ -587,286 +57,3 @@ func (c_ CollectionViewDelegateObject) HasCollectionViewDidEndDisplayingItemForR func (c_ CollectionViewDelegateObject) CollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) { objc.Call[objc.Void](c_, objc.Sel("collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath:"), collectionView, item, indexPath) } - -func (c_ CollectionViewDelegateObject) HasCollectionViewDraggingImageForItemsAtIndexesWithEventOffset() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:draggingImageForItemsAtIndexes:withEvent:offset:")) -} - -// Creates and returns a drag image to represent the specified items during a drag. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528138-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewDraggingImageForItemsAtIndexesWithEventOffset(collectionView CollectionView, indexes foundation.IndexSet, event Event, dragImageOffset foundation.PointPointer) Image { - rv := objc.Call[Image](c_, objc.Sel("collectionView:draggingImageForItemsAtIndexes:withEvent:offset:"), collectionView, indexes, event, dragImageOffset) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewCanDragItemsAtIndexPathsWithEvent() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:canDragItemsAtIndexPaths:withEvent:")) -} - -// Returns a Boolean indicating whether a drag operation involving the specified items can begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525969-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewCanDragItemsAtIndexPathsWithEvent(collectionView CollectionView, indexPaths foundation.Set, event Event) bool { - rv := objc.Call[bool](c_, objc.Sel("collectionView:canDragItemsAtIndexPaths:withEvent:"), collectionView, indexPaths, event) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewPasteboardWriterForItemAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:pasteboardWriterForItemAtIndex:")) -} - -// Provides the pasteboard writer for the item at the specified index [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528257-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewPasteboardWriterForItemAtIndex(collectionView CollectionView, index uint) PasteboardWritingObject { - rv := objc.Call[PasteboardWritingObject](c_, objc.Sel("collectionView:pasteboardWriterForItemAtIndex:"), collectionView, index) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:draggingImageForItemsAtIndexPaths:withEvent:offset:")) -} - -// Creates and returns a drag image to represent the specified items during a drag. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528175-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewDraggingImageForItemsAtIndexPathsWithEventOffset(collectionView CollectionView, indexPaths foundation.Set, event Event, dragImageOffset foundation.PointPointer) Image { - rv := objc.Call[Image](c_, objc.Sel("collectionView:draggingImageForItemsAtIndexPaths:withEvent:offset:"), collectionView, indexPaths, event, dragImageOffset) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewShouldChangeItemsAtIndexPathsToHighlightState() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:shouldChangeItemsAtIndexPaths:toHighlightState:")) -} - -// Asks the delegate to approve the pending highlighting of the specified items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528178-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewShouldChangeItemsAtIndexPathsToHighlightState(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) foundation.Set { - rv := objc.Call[foundation.Set](c_, objc.Sel("collectionView:shouldChangeItemsAtIndexPaths:toHighlightState:"), collectionView, indexPaths, highlightState) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewCanDragItemsAtIndexesWithEvent() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:canDragItemsAtIndexes:withEvent:")) -} - -// Returns a Boolean indicating whether the collection view can begin dragging the specified items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528212-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewCanDragItemsAtIndexesWithEvent(collectionView CollectionView, indexes foundation.IndexSet, event Event) bool { - rv := objc.Call[bool](c_, objc.Sel("collectionView:canDragItemsAtIndexes:withEvent:"), collectionView, indexes, event) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:didEndDisplayingSupplementaryView:forElementOfKind:atIndexPath:")) -} - -// Notifies the delegate that the specified supplementary view was removed from the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528192-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:didEndDisplayingSupplementaryView:forElementOfKind:atIndexPath:"), collectionView, view, elementKind, indexPath) -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewAcceptDropIndexPathDropOperation() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:acceptDrop:indexPath:dropOperation:")) -} - -// Incorporates the dropped content into the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525045-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewAcceptDropIndexPathDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, indexPath foundation.IndexPath, dropOperation CollectionViewDropOperation) bool { - po1 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - rv := objc.Call[bool](c_, objc.Sel("collectionView:acceptDrop:indexPath:dropOperation:"), collectionView, po1, indexPath, dropOperation) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewAcceptDropIndexDropOperation() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:acceptDrop:index:dropOperation:")) -} - -// Invoked when the mouse is released over a collection view that previously allowed a drop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528242-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewAcceptDropIndexDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, index int, dropOperation CollectionViewDropOperation) bool { - po1 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - rv := objc.Call[bool](c_, objc.Sel("collectionView:acceptDrop:index:dropOperation:"), collectionView, po1, index, dropOperation) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:draggingSession:willBeginAtPoint:forItemsAtIndexes:")) -} - -// Notifies your delegate that a drag session is about to begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1524615-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexes(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexes foundation.IndexSet) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:draggingSession:willBeginAtPoint:forItemsAtIndexes:"), collectionView, session, screenPoint, indexes) -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:willDisplaySupplementaryView:forElementKind:atIndexPath:")) -} - -// Notifies the delegate that the specified supplementary view is about to be displayed by the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525963-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:willDisplaySupplementaryView:forElementKind:atIndexPath:"), collectionView, view, elementKind, indexPath) -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewShouldDeselectItemsAtIndexPaths() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:shouldDeselectItemsAtIndexPaths:")) -} - -// Asks the delegate object to approve the pending deselection of items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525582-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewShouldDeselectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) foundation.Set { - rv := objc.Call[foundation.Set](c_, objc.Sel("collectionView:shouldDeselectItemsAtIndexPaths:"), collectionView, indexPaths) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewDidChangeItemsAtIndexPathsToHighlightState() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:didChangeItemsAtIndexPaths:toHighlightState:")) -} - -// Notifies the delegate that the highlight state of the specified items changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1526015-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewDidChangeItemsAtIndexPathsToHighlightState(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:didChangeItemsAtIndexPaths:toHighlightState:"), collectionView, indexPaths, highlightState) -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewDraggingSessionEndedAtPointDragOperation() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:draggingSession:endedAtPoint:dragOperation:")) -} - -// Notifies your delegate that a drag session ended. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528224-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewDraggingSessionEndedAtPointDragOperation(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, operation DragOperation) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:draggingSession:endedAtPoint:dragOperation:"), collectionView, session, screenPoint, operation) -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:draggingSession:willBeginAtPoint:forItemsAtIndexPaths:")) -} - -// Notifies your delegate that a drag session is about to begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1527718-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewDraggingSessionWillBeginAtPointForItemsAtIndexPaths(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexPaths foundation.Set) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:draggingSession:willBeginAtPoint:forItemsAtIndexPaths:"), collectionView, session, screenPoint, indexPaths) -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewWillDisplayItemForRepresentedObjectAtIndexPath() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:willDisplayItem:forRepresentedObjectAtIndexPath:")) -} - -// Notifies the delegate that the specified item is about to be displayed by the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1524266-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewWillDisplayItemForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:willDisplayItem:forRepresentedObjectAtIndexPath:"), collectionView, item, indexPath) -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewValidateDropProposedIndexDropOperation() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:validateDrop:proposedIndex:dropOperation:")) -} - -// Validates the specified location to see if it is a valid drop target. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528283-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewValidateDropProposedIndexDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, proposedDropIndex *int, proposedDropOperation *CollectionViewDropOperation) DragOperation { - po1 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - rv := objc.Call[DragOperation](c_, objc.Sel("collectionView:validateDrop:proposedIndex:dropOperation:"), collectionView, po1, proposedDropIndex, proposedDropOperation) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewUpdateDraggingItemsForDrag() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:updateDraggingItemsForDrag:")) -} - -// Asks your delegate to update the dragging items during a drag operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1526881-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewUpdateDraggingItemsForDrag(collectionView CollectionView, draggingInfo DraggingInfoObject) { - po1 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - objc.Call[objc.Void](c_, objc.Sel("collectionView:updateDraggingItemsForDrag:"), collectionView, po1) -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewPasteboardWriterForItemAtIndexPath() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:pasteboardWriterForItemAtIndexPath:")) -} - -// Provides the pasteboard writer for the item at the specified index path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1527290-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewPasteboardWriterForItemAtIndexPath(collectionView CollectionView, indexPath foundation.IndexPath) PasteboardWritingObject { - rv := objc.Call[PasteboardWritingObject](c_, objc.Sel("collectionView:pasteboardWriterForItemAtIndexPath:"), collectionView, indexPath) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewShouldSelectItemsAtIndexPaths() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:shouldSelectItemsAtIndexPaths:")) -} - -// Asks the delegate to approve the pending selection of items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528280-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewShouldSelectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) foundation.Set { - rv := objc.Call[foundation.Set](c_, objc.Sel("collectionView:shouldSelectItemsAtIndexPaths:"), collectionView, indexPaths) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewDidSelectItemsAtIndexPaths() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:didSelectItemsAtIndexPaths:")) -} - -// Notifies the delegate object that one or more items were selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528236-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewDidSelectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:didSelectItemsAtIndexPaths:"), collectionView, indexPaths) -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewValidateDropProposedIndexPathDropOperation() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:validateDrop:proposedIndexPath:dropOperation:")) -} - -// Validates whether a drop operation is possible at the specified location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1525471-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewValidateDropProposedIndexPathDropOperation(collectionView CollectionView, draggingInfo DraggingInfoObject, proposedDropIndexPath unsafe.Pointer, proposedDropOperation *CollectionViewDropOperation) DragOperation { - po1 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - rv := objc.Call[DragOperation](c_, objc.Sel("collectionView:validateDrop:proposedIndexPath:dropOperation:"), collectionView, po1, proposedDropIndexPath, proposedDropOperation) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewTransitionLayoutForOldLayoutNewLayout() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:transitionLayoutForOldLayout:newLayout:")) -} - -// Returns the transition layout object to use when performing an animated change between different layouts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528228-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewTransitionLayoutForOldLayoutNewLayout(collectionView CollectionView, fromLayout CollectionViewLayout, toLayout CollectionViewLayout) CollectionViewTransitionLayout { - rv := objc.Call[CollectionViewTransitionLayout](c_, objc.Sel("collectionView:transitionLayoutForOldLayout:newLayout:"), collectionView, fromLayout, toLayout) - return rv -} - -func (c_ CollectionViewDelegateObject) HasCollectionViewDidDeselectItemsAtIndexPaths() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:didDeselectItemsAtIndexPaths:")) -} - -// Notifies the delegate object that one or more items were deselected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528279-collectionview?language=objc -func (c_ CollectionViewDelegateObject) CollectionViewDidDeselectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:didDeselectItemsAtIndexPaths:"), collectionView, indexPaths) -} diff --git a/macos/appkit/collection_view_delegate_flow_layout.gen.go b/macos/appkit/collection_view_delegate_flow_layout.gen.go index d507f4ea..a0cd5d9e 100644 --- a/macos/appkit/collection_view_delegate_flow_layout.gen.go +++ b/macos/appkit/collection_view_delegate_flow_layout.gen.go @@ -11,75 +11,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout?language=objc type PCollectionViewDelegateFlowLayout interface { - // optional - CollectionViewLayoutReferenceSizeForHeaderInSection(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.Size - HasCollectionViewLayoutReferenceSizeForHeaderInSection() bool - - // optional - CollectionViewLayoutSizeForItemAtIndexPath(collectionView CollectionView, collectionViewLayout CollectionViewLayout, indexPath foundation.IndexPath) foundation.Size - HasCollectionViewLayoutSizeForItemAtIndexPath() bool - // optional CollectionViewLayoutInsetForSectionAtIndex(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.EdgeInsets HasCollectionViewLayoutInsetForSectionAtIndex() bool - - // optional - CollectionViewLayoutMinimumLineSpacingForSectionAtIndex(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) float64 - HasCollectionViewLayoutMinimumLineSpacingForSectionAtIndex() bool - - // optional - CollectionViewLayoutReferenceSizeForFooterInSection(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.Size - HasCollectionViewLayoutReferenceSizeForFooterInSection() bool - - // optional - CollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) float64 - HasCollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex() bool } // A delegate implementation builder for the [PCollectionViewDelegateFlowLayout] protocol. type CollectionViewDelegateFlowLayout struct { - _CollectionViewLayoutReferenceSizeForHeaderInSection func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.Size - _CollectionViewLayoutSizeForItemAtIndexPath func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, indexPath foundation.IndexPath) foundation.Size - _CollectionViewLayoutInsetForSectionAtIndex func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.EdgeInsets - _CollectionViewLayoutMinimumLineSpacingForSectionAtIndex func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) float64 - _CollectionViewLayoutReferenceSizeForFooterInSection func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.Size - _CollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) float64 -} - -func (di *CollectionViewDelegateFlowLayout) HasCollectionViewLayoutReferenceSizeForHeaderInSection() bool { - return di._CollectionViewLayoutReferenceSizeForHeaderInSection != nil -} - -// Asks the delegate for the size of the header view in the specified section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402876-collectionview?language=objc -func (di *CollectionViewDelegateFlowLayout) SetCollectionViewLayoutReferenceSizeForHeaderInSection(f func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.Size) { - di._CollectionViewLayoutReferenceSizeForHeaderInSection = f -} - -// Asks the delegate for the size of the header view in the specified section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402876-collectionview?language=objc -func (di *CollectionViewDelegateFlowLayout) CollectionViewLayoutReferenceSizeForHeaderInSection(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.Size { - return di._CollectionViewLayoutReferenceSizeForHeaderInSection(collectionView, collectionViewLayout, section) -} -func (di *CollectionViewDelegateFlowLayout) HasCollectionViewLayoutSizeForItemAtIndexPath() bool { - return di._CollectionViewLayoutSizeForItemAtIndexPath != nil + _CollectionViewLayoutInsetForSectionAtIndex func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.EdgeInsets } -// Asks the delegate for the size of the specified item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402900-collectionview?language=objc -func (di *CollectionViewDelegateFlowLayout) SetCollectionViewLayoutSizeForItemAtIndexPath(f func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, indexPath foundation.IndexPath) foundation.Size) { - di._CollectionViewLayoutSizeForItemAtIndexPath = f -} - -// Asks the delegate for the size of the specified item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402900-collectionview?language=objc -func (di *CollectionViewDelegateFlowLayout) CollectionViewLayoutSizeForItemAtIndexPath(collectionView CollectionView, collectionViewLayout CollectionViewLayout, indexPath foundation.IndexPath) foundation.Size { - return di._CollectionViewLayoutSizeForItemAtIndexPath(collectionView, collectionViewLayout, indexPath) -} func (di *CollectionViewDelegateFlowLayout) HasCollectionViewLayoutInsetForSectionAtIndex() bool { return di._CollectionViewLayoutInsetForSectionAtIndex != nil } @@ -97,57 +38,6 @@ func (di *CollectionViewDelegateFlowLayout) SetCollectionViewLayoutInsetForSecti func (di *CollectionViewDelegateFlowLayout) CollectionViewLayoutInsetForSectionAtIndex(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.EdgeInsets { return di._CollectionViewLayoutInsetForSectionAtIndex(collectionView, collectionViewLayout, section) } -func (di *CollectionViewDelegateFlowLayout) HasCollectionViewLayoutMinimumLineSpacingForSectionAtIndex() bool { - return di._CollectionViewLayoutMinimumLineSpacingForSectionAtIndex != nil -} - -// Asks the delegate for the spacing between successive rows or columns of a section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402887-collectionview?language=objc -func (di *CollectionViewDelegateFlowLayout) SetCollectionViewLayoutMinimumLineSpacingForSectionAtIndex(f func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) float64) { - di._CollectionViewLayoutMinimumLineSpacingForSectionAtIndex = f -} - -// Asks the delegate for the spacing between successive rows or columns of a section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402887-collectionview?language=objc -func (di *CollectionViewDelegateFlowLayout) CollectionViewLayoutMinimumLineSpacingForSectionAtIndex(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) float64 { - return di._CollectionViewLayoutMinimumLineSpacingForSectionAtIndex(collectionView, collectionViewLayout, section) -} -func (di *CollectionViewDelegateFlowLayout) HasCollectionViewLayoutReferenceSizeForFooterInSection() bool { - return di._CollectionViewLayoutReferenceSizeForFooterInSection != nil -} - -// Asks the delegate for the size of the footer view in the specified section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402883-collectionview?language=objc -func (di *CollectionViewDelegateFlowLayout) SetCollectionViewLayoutReferenceSizeForFooterInSection(f func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.Size) { - di._CollectionViewLayoutReferenceSizeForFooterInSection = f -} - -// Asks the delegate for the size of the footer view in the specified section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402883-collectionview?language=objc -func (di *CollectionViewDelegateFlowLayout) CollectionViewLayoutReferenceSizeForFooterInSection(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.Size { - return di._CollectionViewLayoutReferenceSizeForFooterInSection(collectionView, collectionViewLayout, section) -} -func (di *CollectionViewDelegateFlowLayout) HasCollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex() bool { - return di._CollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex != nil -} - -// Asks the delegate for the spacing between successive items of a single row or column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402879-collectionview?language=objc -func (di *CollectionViewDelegateFlowLayout) SetCollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex(f func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) float64) { - di._CollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex = f -} - -// Asks the delegate for the spacing between successive items of a single row or column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402879-collectionview?language=objc -func (di *CollectionViewDelegateFlowLayout) CollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) float64 { - return di._CollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex(collectionView, collectionViewLayout, section) -} // ensure impl type implements protocol interface var _ PCollectionViewDelegateFlowLayout = (*CollectionViewDelegateFlowLayoutObject)(nil) @@ -157,30 +47,6 @@ type CollectionViewDelegateFlowLayoutObject struct { objc.Object } -func (c_ CollectionViewDelegateFlowLayoutObject) HasCollectionViewLayoutReferenceSizeForHeaderInSection() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:layout:referenceSizeForHeaderInSection:")) -} - -// Asks the delegate for the size of the header view in the specified section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402876-collectionview?language=objc -func (c_ CollectionViewDelegateFlowLayoutObject) CollectionViewLayoutReferenceSizeForHeaderInSection(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("collectionView:layout:referenceSizeForHeaderInSection:"), collectionView, collectionViewLayout, section) - return rv -} - -func (c_ CollectionViewDelegateFlowLayoutObject) HasCollectionViewLayoutSizeForItemAtIndexPath() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:layout:sizeForItemAtIndexPath:")) -} - -// Asks the delegate for the size of the specified item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402900-collectionview?language=objc -func (c_ CollectionViewDelegateFlowLayoutObject) CollectionViewLayoutSizeForItemAtIndexPath(collectionView CollectionView, collectionViewLayout CollectionViewLayout, indexPath foundation.IndexPath) foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("collectionView:layout:sizeForItemAtIndexPath:"), collectionView, collectionViewLayout, indexPath) - return rv -} - func (c_ CollectionViewDelegateFlowLayoutObject) HasCollectionViewLayoutInsetForSectionAtIndex() bool { return c_.RespondsToSelector(objc.Sel("collectionView:layout:insetForSectionAtIndex:")) } @@ -192,39 +58,3 @@ func (c_ CollectionViewDelegateFlowLayoutObject) CollectionViewLayoutInsetForSec rv := objc.Call[foundation.EdgeInsets](c_, objc.Sel("collectionView:layout:insetForSectionAtIndex:"), collectionView, collectionViewLayout, section) return rv } - -func (c_ CollectionViewDelegateFlowLayoutObject) HasCollectionViewLayoutMinimumLineSpacingForSectionAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:layout:minimumLineSpacingForSectionAtIndex:")) -} - -// Asks the delegate for the spacing between successive rows or columns of a section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402887-collectionview?language=objc -func (c_ CollectionViewDelegateFlowLayoutObject) CollectionViewLayoutMinimumLineSpacingForSectionAtIndex(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) float64 { - rv := objc.Call[float64](c_, objc.Sel("collectionView:layout:minimumLineSpacingForSectionAtIndex:"), collectionView, collectionViewLayout, section) - return rv -} - -func (c_ CollectionViewDelegateFlowLayoutObject) HasCollectionViewLayoutReferenceSizeForFooterInSection() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:layout:referenceSizeForFooterInSection:")) -} - -// Asks the delegate for the size of the footer view in the specified section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402883-collectionview?language=objc -func (c_ CollectionViewDelegateFlowLayoutObject) CollectionViewLayoutReferenceSizeForFooterInSection(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("collectionView:layout:referenceSizeForFooterInSection:"), collectionView, collectionViewLayout, section) - return rv -} - -func (c_ CollectionViewDelegateFlowLayoutObject) HasCollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:layout:minimumInteritemSpacingForSectionAtIndex:")) -} - -// Asks the delegate for the spacing between successive items of a single row or column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402879-collectionview?language=objc -func (c_ CollectionViewDelegateFlowLayoutObject) CollectionViewLayoutMinimumInteritemSpacingForSectionAtIndex(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) float64 { - rv := objc.Call[float64](c_, objc.Sel("collectionView:layout:minimumInteritemSpacingForSectionAtIndex:"), collectionView, collectionViewLayout, section) - return rv -} diff --git a/macos/appkit/collection_view_element_protocol.gen.go b/macos/appkit/collection_view_element_protocol.gen.go index 71360bc0..b5a0de38 100644 --- a/macos/appkit/collection_view_element_protocol.gen.go +++ b/macos/appkit/collection_view_element_protocol.gen.go @@ -22,13 +22,13 @@ type PCollectionViewElement interface { DidTransitionFromLayoutToLayout(oldLayout CollectionViewLayout, newLayout CollectionViewLayout) HasDidTransitionFromLayoutToLayout() bool - // optional - PreferredLayoutAttributesFittingAttributes(layoutAttributes CollectionViewLayoutAttributes) CollectionViewLayoutAttributes - HasPreferredLayoutAttributesFittingAttributes() bool - // optional PrepareForReuse() HasPrepareForReuse() bool + + // optional + PreferredLayoutAttributesFittingAttributes(layoutAttributes CollectionViewLayoutAttributes) CollectionViewLayoutAttributes + HasPreferredLayoutAttributesFittingAttributes() bool } // ensure impl type implements protocol interface @@ -72,6 +72,17 @@ func (c_ CollectionViewElementObject) DidTransitionFromLayoutToLayout(oldLayout objc.Call[objc.Void](c_, objc.Sel("didTransitionFromLayout:toLayout:"), oldLayout, newLayout) } +func (c_ CollectionViewElementObject) HasPrepareForReuse() bool { + return c_.RespondsToSelector(objc.Sel("prepareForReuse")) +} + +// Performs any necessary cleanup to prepare the element for use again. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewelement/1528248-prepareforreuse?language=objc +func (c_ CollectionViewElementObject) PrepareForReuse() { + objc.Call[objc.Void](c_, objc.Sel("prepareForReuse")) +} + func (c_ CollectionViewElementObject) HasPreferredLayoutAttributesFittingAttributes() bool { return c_.RespondsToSelector(objc.Sel("preferredLayoutAttributesFittingAttributes:")) } @@ -83,14 +94,3 @@ func (c_ CollectionViewElementObject) PreferredLayoutAttributesFittingAttributes rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("preferredLayoutAttributesFittingAttributes:"), layoutAttributes) return rv } - -func (c_ CollectionViewElementObject) HasPrepareForReuse() bool { - return c_.RespondsToSelector(objc.Sel("prepareForReuse")) -} - -// Performs any necessary cleanup to prepare the element for use again. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewelement/1528248-prepareforreuse?language=objc -func (c_ CollectionViewElementObject) PrepareForReuse() { - objc.Call[objc.Void](c_, objc.Sel("prepareForReuse")) -} diff --git a/macos/appkit/collection_view_flow_layout.gen.go b/macos/appkit/collection_view_flow_layout.gen.go index 88d2e26c..2ec4ec5d 100644 --- a/macos/appkit/collection_view_flow_layout.gen.go +++ b/macos/appkit/collection_view_flow_layout.gen.go @@ -19,29 +19,29 @@ type _CollectionViewFlowLayoutClass struct { // An interface definition for the [CollectionViewFlowLayout] class. type ICollectionViewFlowLayout interface { ICollectionViewLayout - CollapseSectionAtIndex(sectionIndex uint) - SectionAtIndexIsCollapsed(sectionIndex uint) bool ExpandSectionAtIndex(sectionIndex uint) - ScrollDirection() CollectionViewScrollDirection - SetScrollDirection(value CollectionViewScrollDirection) - MinimumLineSpacing() float64 - SetMinimumLineSpacing(value float64) + SectionAtIndexIsCollapsed(sectionIndex uint) bool + CollapseSectionAtIndex(sectionIndex uint) + ItemSize() foundation.Size + SetItemSize(value foundation.Size) HeaderReferenceSize() foundation.Size SetHeaderReferenceSize(value foundation.Size) + MinimumInteritemSpacing() float64 + SetMinimumInteritemSpacing(value float64) FooterReferenceSize() foundation.Size SetFooterReferenceSize(value foundation.Size) - ItemSize() foundation.Size - SetItemSize(value foundation.Size) - EstimatedItemSize() foundation.Size - SetEstimatedItemSize(value foundation.Size) SectionInset() foundation.EdgeInsets SetSectionInset(value foundation.EdgeInsets) - SectionHeadersPinToVisibleBounds() bool - SetSectionHeadersPinToVisibleBounds(value bool) - MinimumInteritemSpacing() float64 - SetMinimumInteritemSpacing(value float64) + ScrollDirection() CollectionViewScrollDirection + SetScrollDirection(value CollectionViewScrollDirection) + EstimatedItemSize() foundation.Size + SetEstimatedItemSize(value foundation.Size) SectionFootersPinToVisibleBounds() bool SetSectionFootersPinToVisibleBounds(value bool) + MinimumLineSpacing() float64 + SetMinimumLineSpacing(value float64) + SectionHeadersPinToVisibleBounds() bool + SetSectionHeadersPinToVisibleBounds(value bool) } // A layout that organizes items into a flexible and configurable arrangement. [Full Topic] @@ -79,9 +79,9 @@ func (c_ CollectionViewFlowLayout) Init() CollectionViewFlowLayout { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644723-collapsesectionatindex?language=objc -func (c_ CollectionViewFlowLayout) CollapseSectionAtIndex(sectionIndex uint) { - objc.Call[objc.Void](c_, objc.Sel("collapseSectionAtIndex:"), sectionIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644651-expandsectionatindex?language=objc +func (c_ CollectionViewFlowLayout) ExpandSectionAtIndex(sectionIndex uint) { + objc.Call[objc.Void](c_, objc.Sel("expandSectionAtIndex:"), sectionIndex) } // [Full Topic] @@ -94,39 +94,24 @@ func (c_ CollectionViewFlowLayout) SectionAtIndexIsCollapsed(sectionIndex uint) // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644651-expandsectionatindex?language=objc -func (c_ CollectionViewFlowLayout) ExpandSectionAtIndex(sectionIndex uint) { - objc.Call[objc.Void](c_, objc.Sel("expandSectionAtIndex:"), sectionIndex) -} - -// The scroll direction of the layout. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402869-scrolldirection?language=objc -func (c_ CollectionViewFlowLayout) ScrollDirection() CollectionViewScrollDirection { - rv := objc.Call[CollectionViewScrollDirection](c_, objc.Sel("scrollDirection")) - return rv -} - -// The scroll direction of the layout. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402869-scrolldirection?language=objc -func (c_ CollectionViewFlowLayout) SetScrollDirection(value CollectionViewScrollDirection) { - objc.Call[objc.Void](c_, objc.Sel("setScrollDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644723-collapsesectionatindex?language=objc +func (c_ CollectionViewFlowLayout) CollapseSectionAtIndex(sectionIndex uint) { + objc.Call[objc.Void](c_, objc.Sel("collapseSectionAtIndex:"), sectionIndex) } -// The minimum spacing (in points) to use between rows or columns. [Full Topic] +// The default size to use for items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402898-minimumlinespacing?language=objc -func (c_ CollectionViewFlowLayout) MinimumLineSpacing() float64 { - rv := objc.Call[float64](c_, objc.Sel("minimumLineSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402863-itemsize?language=objc +func (c_ CollectionViewFlowLayout) ItemSize() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("itemSize")) return rv } -// The minimum spacing (in points) to use between rows or columns. [Full Topic] +// The default size to use for items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402898-minimumlinespacing?language=objc -func (c_ CollectionViewFlowLayout) SetMinimumLineSpacing(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setMinimumLineSpacing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402863-itemsize?language=objc +func (c_ CollectionViewFlowLayout) SetItemSize(value foundation.Size) { + objc.Call[objc.Void](c_, objc.Sel("setItemSize:"), value) } // The default size to use for section headers. [Full Topic] @@ -144,6 +129,21 @@ func (c_ CollectionViewFlowLayout) SetHeaderReferenceSize(value foundation.Size) objc.Call[objc.Void](c_, objc.Sel("setHeaderReferenceSize:"), value) } +// The minimum spacing (in points) to use between items in the same row or column. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402872-minimuminteritemspacing?language=objc +func (c_ CollectionViewFlowLayout) MinimumInteritemSpacing() float64 { + rv := objc.Call[float64](c_, objc.Sel("minimumInteritemSpacing")) + return rv +} + +// The minimum spacing (in points) to use between items in the same row or column. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402872-minimuminteritemspacing?language=objc +func (c_ CollectionViewFlowLayout) SetMinimumInteritemSpacing(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setMinimumInteritemSpacing:"), value) +} + // The default size to use for section footers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402892-footerreferencesize?language=objc @@ -159,19 +159,34 @@ func (c_ CollectionViewFlowLayout) SetFooterReferenceSize(value foundation.Size) objc.Call[objc.Void](c_, objc.Sel("setFooterReferenceSize:"), value) } -// The default size to use for items. [Full Topic] +// The margins used to lay out content in a section. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402863-itemsize?language=objc -func (c_ CollectionViewFlowLayout) ItemSize() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("itemSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402862-sectioninset?language=objc +func (c_ CollectionViewFlowLayout) SectionInset() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](c_, objc.Sel("sectionInset")) return rv } -// The default size to use for items. [Full Topic] +// The margins used to lay out content in a section. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402863-itemsize?language=objc -func (c_ CollectionViewFlowLayout) SetItemSize(value foundation.Size) { - objc.Call[objc.Void](c_, objc.Sel("setItemSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402862-sectioninset?language=objc +func (c_ CollectionViewFlowLayout) SetSectionInset(value foundation.EdgeInsets) { + objc.Call[objc.Void](c_, objc.Sel("setSectionInset:"), value) +} + +// The scroll direction of the layout. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402869-scrolldirection?language=objc +func (c_ CollectionViewFlowLayout) ScrollDirection() CollectionViewScrollDirection { + rv := objc.Call[CollectionViewScrollDirection](c_, objc.Sel("scrollDirection")) + return rv +} + +// The scroll direction of the layout. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402869-scrolldirection?language=objc +func (c_ CollectionViewFlowLayout) SetScrollDirection(value CollectionViewScrollDirection) { + objc.Call[objc.Void](c_, objc.Sel("setScrollDirection:"), value) } // The estimated size of items in the collection view. [Full Topic] @@ -189,62 +204,47 @@ func (c_ CollectionViewFlowLayout) SetEstimatedItemSize(value foundation.Size) { objc.Call[objc.Void](c_, objc.Sel("setEstimatedItemSize:"), value) } -// The margins used to lay out content in a section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402862-sectioninset?language=objc -func (c_ CollectionViewFlowLayout) SectionInset() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](c_, objc.Sel("sectionInset")) - return rv -} - -// The margins used to lay out content in a section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402862-sectioninset?language=objc -func (c_ CollectionViewFlowLayout) SetSectionInset(value foundation.EdgeInsets) { - objc.Call[objc.Void](c_, objc.Sel("setSectionInset:"), value) -} - // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644640-sectionheaderspintovisiblebounds?language=objc -func (c_ CollectionViewFlowLayout) SectionHeadersPinToVisibleBounds() bool { - rv := objc.Call[bool](c_, objc.Sel("sectionHeadersPinToVisibleBounds")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644671-sectionfooterspintovisiblebounds?language=objc +func (c_ CollectionViewFlowLayout) SectionFootersPinToVisibleBounds() bool { + rv := objc.Call[bool](c_, objc.Sel("sectionFootersPinToVisibleBounds")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644640-sectionheaderspintovisiblebounds?language=objc -func (c_ CollectionViewFlowLayout) SetSectionHeadersPinToVisibleBounds(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setSectionHeadersPinToVisibleBounds:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644671-sectionfooterspintovisiblebounds?language=objc +func (c_ CollectionViewFlowLayout) SetSectionFootersPinToVisibleBounds(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSectionFootersPinToVisibleBounds:"), value) } -// The minimum spacing (in points) to use between items in the same row or column. [Full Topic] +// The minimum spacing (in points) to use between rows or columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402872-minimuminteritemspacing?language=objc -func (c_ CollectionViewFlowLayout) MinimumInteritemSpacing() float64 { - rv := objc.Call[float64](c_, objc.Sel("minimumInteritemSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402898-minimumlinespacing?language=objc +func (c_ CollectionViewFlowLayout) MinimumLineSpacing() float64 { + rv := objc.Call[float64](c_, objc.Sel("minimumLineSpacing")) return rv } -// The minimum spacing (in points) to use between items in the same row or column. [Full Topic] +// The minimum spacing (in points) to use between rows or columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402872-minimuminteritemspacing?language=objc -func (c_ CollectionViewFlowLayout) SetMinimumInteritemSpacing(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setMinimumInteritemSpacing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1402898-minimumlinespacing?language=objc +func (c_ CollectionViewFlowLayout) SetMinimumLineSpacing(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setMinimumLineSpacing:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644671-sectionfooterspintovisiblebounds?language=objc -func (c_ CollectionViewFlowLayout) SectionFootersPinToVisibleBounds() bool { - rv := objc.Call[bool](c_, objc.Sel("sectionFootersPinToVisibleBounds")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644640-sectionheaderspintovisiblebounds?language=objc +func (c_ CollectionViewFlowLayout) SectionHeadersPinToVisibleBounds() bool { + rv := objc.Call[bool](c_, objc.Sel("sectionHeadersPinToVisibleBounds")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644671-sectionfooterspintovisiblebounds?language=objc -func (c_ CollectionViewFlowLayout) SetSectionFootersPinToVisibleBounds(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setSectionFootersPinToVisibleBounds:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout/1644640-sectionheaderspintovisiblebounds?language=objc +func (c_ CollectionViewFlowLayout) SetSectionHeadersPinToVisibleBounds(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSectionHeadersPinToVisibleBounds:"), value) } diff --git a/macos/appkit/collection_view_flow_layout_invalidation_context.gen.go b/macos/appkit/collection_view_flow_layout_invalidation_context.gen.go index d60cae75..e87b92bf 100644 --- a/macos/appkit/collection_view_flow_layout_invalidation_context.gen.go +++ b/macos/appkit/collection_view_flow_layout_invalidation_context.gen.go @@ -18,10 +18,10 @@ type _CollectionViewFlowLayoutInvalidationContextClass struct { // An interface definition for the [CollectionViewFlowLayoutInvalidationContext] class. type ICollectionViewFlowLayoutInvalidationContext interface { ICollectionViewLayoutInvalidationContext - InvalidateFlowLayoutDelegateMetrics() bool - SetInvalidateFlowLayoutDelegateMetrics(value bool) InvalidateFlowLayoutAttributes() bool SetInvalidateFlowLayoutAttributes(value bool) + InvalidateFlowLayoutDelegateMetrics() bool + SetInvalidateFlowLayoutDelegateMetrics(value bool) } // An object that identifies the portions of a flow layout object that need to be updated. [Full Topic] @@ -57,21 +57,6 @@ func (c_ CollectionViewFlowLayoutInvalidationContext) Init() CollectionViewFlowL return rv } -// A Boolean value indicating whether the flow layout object should fetch new size information from its delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayoutinvalidationcontext/1402902-invalidateflowlayoutdelegatemetr?language=objc -func (c_ CollectionViewFlowLayoutInvalidationContext) InvalidateFlowLayoutDelegateMetrics() bool { - rv := objc.Call[bool](c_, objc.Sel("invalidateFlowLayoutDelegateMetrics")) - return rv -} - -// A Boolean value indicating whether the flow layout object should fetch new size information from its delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayoutinvalidationcontext/1402902-invalidateflowlayoutdelegatemetr?language=objc -func (c_ CollectionViewFlowLayoutInvalidationContext) SetInvalidateFlowLayoutDelegateMetrics(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setInvalidateFlowLayoutDelegateMetrics:"), value) -} - // A Boolean value indicating whether the flow layout object should invalidate its current attributes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayoutinvalidationcontext/1402870-invalidateflowlayoutattributes?language=objc @@ -86,3 +71,18 @@ func (c_ CollectionViewFlowLayoutInvalidationContext) InvalidateFlowLayoutAttrib func (c_ CollectionViewFlowLayoutInvalidationContext) SetInvalidateFlowLayoutAttributes(value bool) { objc.Call[objc.Void](c_, objc.Sel("setInvalidateFlowLayoutAttributes:"), value) } + +// A Boolean value indicating whether the flow layout object should fetch new size information from its delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayoutinvalidationcontext/1402902-invalidateflowlayoutdelegatemetr?language=objc +func (c_ CollectionViewFlowLayoutInvalidationContext) InvalidateFlowLayoutDelegateMetrics() bool { + rv := objc.Call[bool](c_, objc.Sel("invalidateFlowLayoutDelegateMetrics")) + return rv +} + +// A Boolean value indicating whether the flow layout object should fetch new size information from its delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewflowlayoutinvalidationcontext/1402902-invalidateflowlayoutdelegatemetr?language=objc +func (c_ CollectionViewFlowLayoutInvalidationContext) SetInvalidateFlowLayoutDelegateMetrics(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setInvalidateFlowLayoutDelegateMetrics:"), value) +} diff --git a/macos/appkit/collection_view_grid_layout.gen.go b/macos/appkit/collection_view_grid_layout.gen.go index db4093aa..415dcd32 100644 --- a/macos/appkit/collection_view_grid_layout.gen.go +++ b/macos/appkit/collection_view_grid_layout.gen.go @@ -19,22 +19,22 @@ type _CollectionViewGridLayoutClass struct { // An interface definition for the [CollectionViewGridLayout] class. type ICollectionViewGridLayout interface { ICollectionViewLayout + BackgroundColors() []Color + SetBackgroundColors(value []IColor) + MinimumItemSize() foundation.Size + SetMinimumItemSize(value foundation.Size) MaximumNumberOfRows() uint SetMaximumNumberOfRows(value uint) - Margins() foundation.EdgeInsets - SetMargins(value foundation.EdgeInsets) MaximumItemSize() foundation.Size SetMaximumItemSize(value foundation.Size) MinimumInteritemSpacing() float64 SetMinimumInteritemSpacing(value float64) - BackgroundColors() []Color - SetBackgroundColors(value []IColor) - MinimumLineSpacing() float64 - SetMinimumLineSpacing(value float64) + Margins() foundation.EdgeInsets + SetMargins(value foundation.EdgeInsets) MaximumNumberOfColumns() uint SetMaximumNumberOfColumns(value uint) - MinimumItemSize() foundation.Size - SetMinimumItemSize(value foundation.Size) + MinimumLineSpacing() float64 + SetMinimumLineSpacing(value float64) } // A layout that displays a single section of items in a row and column grid. [Full Topic] @@ -70,6 +70,36 @@ func (c_ CollectionViewGridLayout) Init() CollectionViewGridLayout { return rv } +// The array of background colors to use when drawing the grid. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1530955-backgroundcolors?language=objc +func (c_ CollectionViewGridLayout) BackgroundColors() []Color { + rv := objc.Call[[]Color](c_, objc.Sel("backgroundColors")) + return rv +} + +// The array of background colors to use when drawing the grid. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1530955-backgroundcolors?language=objc +func (c_ CollectionViewGridLayout) SetBackgroundColors(value []IColor) { + objc.Call[objc.Void](c_, objc.Sel("setBackgroundColors:"), value) +} + +// The smallest allowable size for an item’s view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1534425-minimumitemsize?language=objc +func (c_ CollectionViewGridLayout) MinimumItemSize() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("minimumItemSize")) + return rv +} + +// The smallest allowable size for an item’s view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1534425-minimumitemsize?language=objc +func (c_ CollectionViewGridLayout) SetMinimumItemSize(value foundation.Size) { + objc.Call[objc.Void](c_, objc.Sel("setMinimumItemSize:"), value) +} + // The maximum number of rows to display in the collection view’s visible area. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1524389-maximumnumberofrows?language=objc @@ -85,21 +115,6 @@ func (c_ CollectionViewGridLayout) SetMaximumNumberOfRows(value uint) { objc.Call[objc.Void](c_, objc.Sel("setMaximumNumberOfRows:"), value) } -// The amount of empty space (in points) around the grid’s content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1527362-margins?language=objc -func (c_ CollectionViewGridLayout) Margins() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](c_, objc.Sel("margins")) - return rv -} - -// The amount of empty space (in points) around the grid’s content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1527362-margins?language=objc -func (c_ CollectionViewGridLayout) SetMargins(value foundation.EdgeInsets) { - objc.Call[objc.Void](c_, objc.Sel("setMargins:"), value) -} - // The largest allowable size for an item’s view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1530923-maximumitemsize?language=objc @@ -130,34 +145,19 @@ func (c_ CollectionViewGridLayout) SetMinimumInteritemSpacing(value float64) { objc.Call[objc.Void](c_, objc.Sel("setMinimumInteritemSpacing:"), value) } -// The array of background colors to use when drawing the grid. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1530955-backgroundcolors?language=objc -func (c_ CollectionViewGridLayout) BackgroundColors() []Color { - rv := objc.Call[[]Color](c_, objc.Sel("backgroundColors")) - return rv -} - -// The array of background colors to use when drawing the grid. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1530955-backgroundcolors?language=objc -func (c_ CollectionViewGridLayout) SetBackgroundColors(value []IColor) { - objc.Call[objc.Void](c_, objc.Sel("setBackgroundColors:"), value) -} - -// The minimum spacing (in points) to use between rows or columns. [Full Topic] +// The amount of empty space (in points) around the grid’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1535114-minimumlinespacing?language=objc -func (c_ CollectionViewGridLayout) MinimumLineSpacing() float64 { - rv := objc.Call[float64](c_, objc.Sel("minimumLineSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1527362-margins?language=objc +func (c_ CollectionViewGridLayout) Margins() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](c_, objc.Sel("margins")) return rv } -// The minimum spacing (in points) to use between rows or columns. [Full Topic] +// The amount of empty space (in points) around the grid’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1535114-minimumlinespacing?language=objc -func (c_ CollectionViewGridLayout) SetMinimumLineSpacing(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setMinimumLineSpacing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1527362-margins?language=objc +func (c_ CollectionViewGridLayout) SetMargins(value foundation.EdgeInsets) { + objc.Call[objc.Void](c_, objc.Sel("setMargins:"), value) } // The maximum number of columns to display in the collection view’s visible area. [Full Topic] @@ -175,17 +175,17 @@ func (c_ CollectionViewGridLayout) SetMaximumNumberOfColumns(value uint) { objc.Call[objc.Void](c_, objc.Sel("setMaximumNumberOfColumns:"), value) } -// The smallest allowable size for an item’s view. [Full Topic] +// The minimum spacing (in points) to use between rows or columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1534425-minimumitemsize?language=objc -func (c_ CollectionViewGridLayout) MinimumItemSize() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("minimumItemSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1535114-minimumlinespacing?language=objc +func (c_ CollectionViewGridLayout) MinimumLineSpacing() float64 { + rv := objc.Call[float64](c_, objc.Sel("minimumLineSpacing")) return rv } -// The smallest allowable size for an item’s view. [Full Topic] +// The minimum spacing (in points) to use between rows or columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1534425-minimumitemsize?language=objc -func (c_ CollectionViewGridLayout) SetMinimumItemSize(value foundation.Size) { - objc.Call[objc.Void](c_, objc.Sel("setMinimumItemSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewgridlayout/1535114-minimumlinespacing?language=objc +func (c_ CollectionViewGridLayout) SetMinimumLineSpacing(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setMinimumLineSpacing:"), value) } diff --git a/macos/appkit/collection_view_item.gen.go b/macos/appkit/collection_view_item.gen.go index 71a022e0..11c01623 100644 --- a/macos/appkit/collection_view_item.gen.go +++ b/macos/appkit/collection_view_item.gen.go @@ -19,16 +19,16 @@ type _CollectionViewItemClass struct { // An interface definition for the [CollectionViewItem] class. type ICollectionViewItem interface { IViewController - TextField() TextField - SetTextField(value ITextField) - IsSelected() bool - SetSelected(value bool) - ImageView() ImageView - SetImageView(value IImageView) HighlightState() CollectionViewItemHighlightState SetHighlightState(value CollectionViewItemHighlightState) + IsSelected() bool + SetSelected(value bool) + TextField() TextField + SetTextField(value ITextField) CollectionView() CollectionView DraggingImageComponents() []DraggingImageComponent + ImageView() ImageView + SetImageView(value IImageView) } // The visual representation for a single data element in a collection view. [Full Topic] @@ -78,19 +78,19 @@ func NewCollectionViewItemWithNibNameBundle(nibNameOrNil NibName, nibBundleOrNil return instance } -// A text field outlet that you can use to display a string. [Full Topic] +// The highlight state currently applied to the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1527126-textfield?language=objc -func (c_ CollectionViewItem) TextField() TextField { - rv := objc.Call[TextField](c_, objc.Sel("textField")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1527689-highlightstate?language=objc +func (c_ CollectionViewItem) HighlightState() CollectionViewItemHighlightState { + rv := objc.Call[CollectionViewItemHighlightState](c_, objc.Sel("highlightState")) return rv } -// A text field outlet that you can use to display a string. [Full Topic] +// The highlight state currently applied to the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1527126-textfield?language=objc -func (c_ CollectionViewItem) SetTextField(value ITextField) { - objc.Call[objc.Void](c_, objc.Sel("setTextField:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1527689-highlightstate?language=objc +func (c_ CollectionViewItem) SetHighlightState(value CollectionViewItemHighlightState) { + objc.Call[objc.Void](c_, objc.Sel("setHighlightState:"), value) } // A Boolean indicating whether the item is currently selected. [Full Topic] @@ -108,34 +108,19 @@ func (c_ CollectionViewItem) SetSelected(value bool) { objc.Call[objc.Void](c_, objc.Sel("setSelected:"), value) } -// An image view outlet that you can use to display images. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1525366-imageview?language=objc -func (c_ CollectionViewItem) ImageView() ImageView { - rv := objc.Call[ImageView](c_, objc.Sel("imageView")) - return rv -} - -// An image view outlet that you can use to display images. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1525366-imageview?language=objc -func (c_ CollectionViewItem) SetImageView(value IImageView) { - objc.Call[objc.Void](c_, objc.Sel("setImageView:"), value) -} - -// The highlight state currently applied to the item. [Full Topic] +// A text field outlet that you can use to display a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1527689-highlightstate?language=objc -func (c_ CollectionViewItem) HighlightState() CollectionViewItemHighlightState { - rv := objc.Call[CollectionViewItemHighlightState](c_, objc.Sel("highlightState")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1527126-textfield?language=objc +func (c_ CollectionViewItem) TextField() TextField { + rv := objc.Call[TextField](c_, objc.Sel("textField")) return rv } -// The highlight state currently applied to the item. [Full Topic] +// A text field outlet that you can use to display a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1527689-highlightstate?language=objc -func (c_ CollectionViewItem) SetHighlightState(value CollectionViewItemHighlightState) { - objc.Call[objc.Void](c_, objc.Sel("setHighlightState:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1527126-textfield?language=objc +func (c_ CollectionViewItem) SetTextField(value ITextField) { + objc.Call[objc.Void](c_, objc.Sel("setTextField:"), value) } // The collection view that owns the item. [Full Topic] @@ -153,3 +138,18 @@ func (c_ CollectionViewItem) DraggingImageComponents() []DraggingImageComponent rv := objc.Call[[]DraggingImageComponent](c_, objc.Sel("draggingImageComponents")) return rv } + +// An image view outlet that you can use to display images. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1525366-imageview?language=objc +func (c_ CollectionViewItem) ImageView() ImageView { + rv := objc.Call[ImageView](c_, objc.Sel("imageView")) + return rv +} + +// An image view outlet that you can use to display images. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewitem/1525366-imageview?language=objc +func (c_ CollectionViewItem) SetImageView(value IImageView) { + objc.Call[objc.Void](c_, objc.Sel("setImageView:"), value) +} diff --git a/macos/appkit/collection_view_layout.gen.go b/macos/appkit/collection_view_layout.gen.go index 498963b6..352dd6ac 100644 --- a/macos/appkit/collection_view_layout.gen.go +++ b/macos/appkit/collection_view_layout.gen.go @@ -19,42 +19,37 @@ type _CollectionViewLayoutClass struct { // An interface definition for the [CollectionViewLayout] class. type ICollectionViewLayout interface { objc.IObject - IndexPathsToDeleteForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set - RegisterClassForDecorationViewOfKind(viewClass objc.IClass, elementKind CollectionViewDecorationElementKind) - InvalidateLayoutWithContext(context ICollectionViewLayoutInvalidationContext) - TargetContentOffsetForProposedContentOffsetWithScrollingVelocity(proposedContentOffset foundation.Point, velocity foundation.Point) foundation.Point - InvalidationContextForBoundsChange(newBounds foundation.Rect) CollectionViewLayoutInvalidationContext - PrepareLayout() - ShouldInvalidateLayoutForBoundsChange(newBounds foundation.Rect) bool - FinalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, decorationIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes - FinalizeCollectionViewUpdates() - ShouldInvalidateLayoutForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes ICollectionViewLayoutAttributes, originalAttributes ICollectionViewLayoutAttributes) bool + IndexPathsToInsertForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set + PrepareForTransitionFromLayout(oldLayout ICollectionViewLayout) RegisterNibForDecorationViewOfKind(nib INib, elementKind CollectionViewDecorationElementKind) + PrepareLayout() + LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes + InvalidateLayout() IndexPathsToInsertForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set - FinalizeAnimatedBoundsChange() - FinalizeLayoutTransition() - PrepareForAnimatedBoundsChange(oldBounds foundation.Rect) - IndexPathsToInsertForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set - InitialLayoutAttributesForAppearingSupplementaryElementOfKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, elementIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes + InvalidationContextForBoundsChange(newBounds foundation.Rect) CollectionViewLayoutInvalidationContext + ShouldInvalidateLayoutForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes ICollectionViewLayoutAttributes, originalAttributes ICollectionViewLayoutAttributes) bool + InvalidationContextForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes ICollectionViewLayoutAttributes, originalAttributes ICollectionViewLayoutAttributes) CollectionViewLayoutInvalidationContext + RegisterClassForDecorationViewOfKind(viewClass objc.IClass, elementKind CollectionViewDecorationElementKind) TargetContentOffsetForProposedContentOffset(proposedContentOffset foundation.Point) foundation.Point - LayoutAttributesForItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes - FinalLayoutAttributesForDisappearingItemAtIndexPath(itemIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes LayoutAttributesForElementsInRect(rect foundation.Rect) []CollectionViewLayoutAttributes LayoutAttributesForDecorationViewOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes + LayoutAttributesForDropTargetAtPoint(pointInCollectionView foundation.Point) CollectionViewLayoutAttributes + InvalidateLayoutWithContext(context ICollectionViewLayoutInvalidationContext) + PrepareForCollectionViewUpdates(updateItems []ICollectionViewUpdateItem) + FinalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, decorationIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes + IndexPathsToDeleteForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set + IndexPathsToDeleteForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set + FinalizeCollectionViewUpdates() PrepareForTransitionToLayout(newLayout ICollectionViewLayout) InitialLayoutAttributesForAppearingDecorationElementOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, decorationIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes - InvalidateLayout() - FinalLayoutAttributesForDisappearingSupplementaryElementOfKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, elementIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes - InvalidationContextForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes ICollectionViewLayoutAttributes, originalAttributes ICollectionViewLayoutAttributes) CollectionViewLayoutInvalidationContext - LayoutAttributesForDropTargetAtPoint(pointInCollectionView foundation.Point) CollectionViewLayoutAttributes + FinalizeLayoutTransition() + PrepareForAnimatedBoundsChange(oldBounds foundation.Rect) + LayoutAttributesForItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes LayoutAttributesForSupplementaryViewOfKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes - InitialLayoutAttributesForAppearingItemAtIndexPath(itemIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes - PrepareForTransitionFromLayout(oldLayout ICollectionViewLayout) - LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes - IndexPathsToDeleteForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set - PrepareForCollectionViewUpdates(updateItems []ICollectionViewUpdateItem) - CollectionView() CollectionView + FinalizeAnimatedBoundsChange() + ShouldInvalidateLayoutForBoundsChange(newBounds foundation.Rect) bool CollectionViewContentSize() foundation.Size + CollectionView() CollectionView } // An abstract base class that you subclass and use to generate layout information for a collection view. [Full Topic] @@ -90,42 +85,26 @@ func (c_ CollectionViewLayout) Init() CollectionViewLayout { return rv } -// Returns the index paths for any supplementary views that the layout object wants to remove from the collection view. [Full Topic] +// Returns the index paths for any supplementary views that the layout object wants to add to the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1529622-indexpathstodeleteforsupplementa?language=objc -func (c_ CollectionViewLayout) IndexPathsToDeleteForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set { - rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToDeleteForSupplementaryViewOfKind:"), elementKind) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534044-indexpathstoinsertforsupplementa?language=objc +func (c_ CollectionViewLayout) IndexPathsToInsertForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set { + rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToInsertForSupplementaryViewOfKind:"), elementKind) return rv } -// Registers a class to use when creating the layout’s decoration views. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533837-registerclass?language=objc -func (c_ CollectionViewLayout) RegisterClassForDecorationViewOfKind(viewClass objc.IClass, elementKind CollectionViewDecorationElementKind) { - objc.Call[objc.Void](c_, objc.Sel("registerClass:forDecorationViewOfKind:"), viewClass, elementKind) -} - -// Invalidates specific parts of the layout using the specified context object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533282-invalidatelayoutwithcontext?language=objc -func (c_ CollectionViewLayout) InvalidateLayoutWithContext(context ICollectionViewLayoutInvalidationContext) { - objc.Call[objc.Void](c_, objc.Sel("invalidateLayoutWithContext:"), context) -} - -// Returns the offset value to use for the collection view’s content at the end of scrolling. [Full Topic] +// Prepares the layout object to be installed in the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1525755-targetcontentoffsetforproposedco?language=objc -func (c_ CollectionViewLayout) TargetContentOffsetForProposedContentOffsetWithScrollingVelocity(proposedContentOffset foundation.Point, velocity foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](c_, objc.Sel("targetContentOffsetForProposedContentOffset:withScrollingVelocity:"), proposedContentOffset, velocity) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533383-preparefortransitionfromlayout?language=objc +func (c_ CollectionViewLayout) PrepareForTransitionFromLayout(oldLayout ICollectionViewLayout) { + objc.Call[objc.Void](c_, objc.Sel("prepareForTransitionFromLayout:"), oldLayout) } -// Returns an invalidation context object that defines the portions of the layout that need to be updated. [Full Topic] +// Registers a nib file to use when creating the layout’s decoration views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534058-invalidationcontextforboundschan?language=objc -func (c_ CollectionViewLayout) InvalidationContextForBoundsChange(newBounds foundation.Rect) CollectionViewLayoutInvalidationContext { - rv := objc.Call[CollectionViewLayoutInvalidationContext](c_, objc.Sel("invalidationContextForBoundsChange:"), newBounds) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535405-registernib?language=objc +func (c_ CollectionViewLayout) RegisterNibForDecorationViewOfKind(nib INib, elementKind CollectionViewDecorationElementKind) { + objc.Call[objc.Void](c_, objc.Sel("registerNib:forDecorationViewOfKind:"), nib, elementKind) } // Prepares the layout object to begin laying out content. [Full Topic] @@ -135,27 +114,35 @@ func (c_ CollectionViewLayout) PrepareLayout() { objc.Call[objc.Void](c_, objc.Sel("prepareLayout")) } -// Returns a Boolean indicating whether a bounds change triggers a layout update. [Full Topic] +// Returns layout attributes for the inter-item gap at the specified location in your layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1531047-shouldinvalidatelayoutforboundsc?language=objc -func (c_ CollectionViewLayout) ShouldInvalidateLayoutForBoundsChange(newBounds foundation.Rect) bool { - rv := objc.Call[bool](c_, objc.Sel("shouldInvalidateLayoutForBoundsChange:"), newBounds) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1528296-layoutattributesforinteritemgapb?language=objc +func (c_ CollectionViewLayout) LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForInterItemGapBeforeIndexPath:"), indexPath) return rv } -// Returns the ending layout information for a decoration view being removed from the collection view. [Full Topic] +// Invalidates all layout information and triggers a layout update. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535917-finallayoutattributesfordisappea?language=objc -func (c_ CollectionViewLayout) FinalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, decorationIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("finalLayoutAttributesForDisappearingDecorationElementOfKind:atIndexPath:"), elementKind, decorationIndexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534293-invalidatelayout?language=objc +func (c_ CollectionViewLayout) InvalidateLayout() { + objc.Call[objc.Void](c_, objc.Sel("invalidateLayout")) +} + +// Returns the index paths for any decoration views that the layout object wants to add to the collection view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1528098-indexpathstoinsertfordecorationv?language=objc +func (c_ CollectionViewLayout) IndexPathsToInsertForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set { + rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToInsertForDecorationViewOfKind:"), elementKind) return rv } -// Performs needed steps after items are inserted, deleted, or moved within a collection view. [Full Topic] +// Returns an invalidation context object that defines the portions of the layout that need to be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534473-finalizecollectionviewupdates?language=objc -func (c_ CollectionViewLayout) FinalizeCollectionViewUpdates() { - objc.Call[objc.Void](c_, objc.Sel("finalizeCollectionViewUpdates")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534058-invalidationcontextforboundschan?language=objc +func (c_ CollectionViewLayout) InvalidationContextForBoundsChange(newBounds foundation.Rect) CollectionViewLayoutInvalidationContext { + rv := objc.Call[CollectionViewLayoutInvalidationContext](c_, objc.Sel("invalidationContextForBoundsChange:"), newBounds) + return rv } // Returns a Boolean indicating whether changes to a cell’s layout attributes trigger a larger layout update. [Full Topic] @@ -166,96 +153,96 @@ func (c_ CollectionViewLayout) ShouldInvalidateLayoutForPreferredLayoutAttribute return rv } -// Registers a nib file to use when creating the layout’s decoration views. [Full Topic] +// Returns an invalidation context object that defines the portions of the layout that need to be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535405-registernib?language=objc -func (c_ CollectionViewLayout) RegisterNibForDecorationViewOfKind(nib INib, elementKind CollectionViewDecorationElementKind) { - objc.Call[objc.Void](c_, objc.Sel("registerNib:forDecorationViewOfKind:"), nib, elementKind) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535343-invalidationcontextforpreferredl?language=objc +func (c_ CollectionViewLayout) InvalidationContextForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes ICollectionViewLayoutAttributes, originalAttributes ICollectionViewLayoutAttributes) CollectionViewLayoutInvalidationContext { + rv := objc.Call[CollectionViewLayoutInvalidationContext](c_, objc.Sel("invalidationContextForPreferredLayoutAttributes:withOriginalAttributes:"), preferredAttributes, originalAttributes) + return rv } -// Returns the index paths for any decoration views that the layout object wants to add to the collection view. [Full Topic] +// Registers a class to use when creating the layout’s decoration views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1528098-indexpathstoinsertfordecorationv?language=objc -func (c_ CollectionViewLayout) IndexPathsToInsertForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set { - rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToInsertForDecorationViewOfKind:"), elementKind) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533837-registerclass?language=objc +func (c_ CollectionViewLayout) RegisterClassForDecorationViewOfKind(viewClass objc.IClass, elementKind CollectionViewDecorationElementKind) { + objc.Call[objc.Void](c_, objc.Sel("registerClass:forDecorationViewOfKind:"), viewClass, elementKind) } -// Cleans up after any animated changes to the collection view’s bounds or after the insertion or deletion of items. [Full Topic] +// Returns the offset value to use after an animated layout update or change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533163-finalizeanimatedboundschange?language=objc -func (c_ CollectionViewLayout) FinalizeAnimatedBoundsChange() { - objc.Call[objc.Void](c_, objc.Sel("finalizeAnimatedBoundsChange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535608-targetcontentoffsetforproposedco?language=objc +func (c_ CollectionViewLayout) TargetContentOffsetForProposedContentOffset(proposedContentOffset foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](c_, objc.Sel("targetContentOffsetForProposedContentOffset:"), proposedContentOffset) + return rv } -// Performs any final steps related to a layout transition before the transition animations actually occur. [Full Topic] +// Returns the layout attribute objects for all items and views in the specified rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534138-finalizelayouttransition?language=objc -func (c_ CollectionViewLayout) FinalizeLayoutTransition() { - objc.Call[objc.Void](c_, objc.Sel("finalizeLayoutTransition")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1524636-layoutattributesforelementsinrec?language=objc +func (c_ CollectionViewLayout) LayoutAttributesForElementsInRect(rect foundation.Rect) []CollectionViewLayoutAttributes { + rv := objc.Call[[]CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForElementsInRect:"), rect) + return rv } -// Prepares the layout object for animated changes to the collection view’s bounds or for the insertion or deletion of items. [Full Topic] +// Returns the layout attributes of the decoration view at the specified location in your layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533678-prepareforanimatedboundschange?language=objc -func (c_ CollectionViewLayout) PrepareForAnimatedBoundsChange(oldBounds foundation.Rect) { - objc.Call[objc.Void](c_, objc.Sel("prepareForAnimatedBoundsChange:"), oldBounds) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1527929-layoutattributesfordecorationvie?language=objc +func (c_ CollectionViewLayout) LayoutAttributesForDecorationViewOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForDecorationViewOfKind:atIndexPath:"), elementKind, indexPath) + return rv } -// Returns the index paths for any supplementary views that the layout object wants to add to the collection view. [Full Topic] +// Returns layout attributes for the drop target at the specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534044-indexpathstoinsertforsupplementa?language=objc -func (c_ CollectionViewLayout) IndexPathsToInsertForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set { - rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToInsertForSupplementaryViewOfKind:"), elementKind) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535931-layoutattributesfordroptargetatp?language=objc +func (c_ CollectionViewLayout) LayoutAttributesForDropTargetAtPoint(pointInCollectionView foundation.Point) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForDropTargetAtPoint:"), pointInCollectionView) return rv } -// Returns the starting layout information for a supplementary view being added to the collection view. [Full Topic] +// Invalidates specific parts of the layout using the specified context object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535331-initiallayoutattributesforappear?language=objc -func (c_ CollectionViewLayout) InitialLayoutAttributesForAppearingSupplementaryElementOfKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, elementIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("initialLayoutAttributesForAppearingSupplementaryElementOfKind:atIndexPath:"), elementKind, elementIndexPath) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533282-invalidatelayoutwithcontext?language=objc +func (c_ CollectionViewLayout) InvalidateLayoutWithContext(context ICollectionViewLayoutInvalidationContext) { + objc.Call[objc.Void](c_, objc.Sel("invalidateLayoutWithContext:"), context) } -// Returns the offset value to use after an animated layout update or change. [Full Topic] +// Performs needed tasks before items are inserted, deleted, or moved within the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535608-targetcontentoffsetforproposedco?language=objc -func (c_ CollectionViewLayout) TargetContentOffsetForProposedContentOffset(proposedContentOffset foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](c_, objc.Sel("targetContentOffsetForProposedContentOffset:"), proposedContentOffset) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533485-prepareforcollectionviewupdates?language=objc +func (c_ CollectionViewLayout) PrepareForCollectionViewUpdates(updateItems []ICollectionViewUpdateItem) { + objc.Call[objc.Void](c_, objc.Sel("prepareForCollectionViewUpdates:"), updateItems) } -// Returns the layout attributes for the item at the specified index path. [Full Topic] +// Returns the ending layout information for a decoration view being removed from the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534298-layoutattributesforitematindexpa?language=objc -func (c_ CollectionViewLayout) LayoutAttributesForItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForItemAtIndexPath:"), indexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535917-finallayoutattributesfordisappea?language=objc +func (c_ CollectionViewLayout) FinalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, decorationIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("finalLayoutAttributesForDisappearingDecorationElementOfKind:atIndexPath:"), elementKind, decorationIndexPath) return rv } -// Returns the ending layout information for an item being removed from the collection view. [Full Topic] +// Returns index paths for any decoration views that the layout object wants to remove from the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533317-finallayoutattributesfordisappea?language=objc -func (c_ CollectionViewLayout) FinalLayoutAttributesForDisappearingItemAtIndexPath(itemIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("finalLayoutAttributesForDisappearingItemAtIndexPath:"), itemIndexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1529635-indexpathstodeletefordecorationv?language=objc +func (c_ CollectionViewLayout) IndexPathsToDeleteForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set { + rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToDeleteForDecorationViewOfKind:"), elementKind) return rv } -// Returns the layout attribute objects for all items and views in the specified rectangle. [Full Topic] +// Returns the index paths for any supplementary views that the layout object wants to remove from the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1524636-layoutattributesforelementsinrec?language=objc -func (c_ CollectionViewLayout) LayoutAttributesForElementsInRect(rect foundation.Rect) []CollectionViewLayoutAttributes { - rv := objc.Call[[]CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForElementsInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1529622-indexpathstodeleteforsupplementa?language=objc +func (c_ CollectionViewLayout) IndexPathsToDeleteForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set { + rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToDeleteForSupplementaryViewOfKind:"), elementKind) return rv } -// Returns the layout attributes of the decoration view at the specified location in your layout. [Full Topic] +// Performs needed steps after items are inserted, deleted, or moved within a collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1527929-layoutattributesfordecorationvie?language=objc -func (c_ CollectionViewLayout) LayoutAttributesForDecorationViewOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForDecorationViewOfKind:atIndexPath:"), elementKind, indexPath) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534473-finalizecollectionviewupdates?language=objc +func (c_ CollectionViewLayout) FinalizeCollectionViewUpdates() { + objc.Call[objc.Void](c_, objc.Sel("finalizeCollectionViewUpdates")) } // Prepares the layout object to be uninstalled from the collection view. [Full Topic] @@ -273,34 +260,25 @@ func (c_ CollectionViewLayout) InitialLayoutAttributesForAppearingDecorationElem return rv } -// Invalidates all layout information and triggers a layout update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534293-invalidatelayout?language=objc -func (c_ CollectionViewLayout) InvalidateLayout() { - objc.Call[objc.Void](c_, objc.Sel("invalidateLayout")) -} - -// Returns the ending layout information for a supplementary view being removed from the collection view. [Full Topic] +// Performs any final steps related to a layout transition before the transition animations actually occur. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535919-finallayoutattributesfordisappea?language=objc -func (c_ CollectionViewLayout) FinalLayoutAttributesForDisappearingSupplementaryElementOfKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, elementIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("finalLayoutAttributesForDisappearingSupplementaryElementOfKind:atIndexPath:"), elementKind, elementIndexPath) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534138-finalizelayouttransition?language=objc +func (c_ CollectionViewLayout) FinalizeLayoutTransition() { + objc.Call[objc.Void](c_, objc.Sel("finalizeLayoutTransition")) } -// Returns an invalidation context object that defines the portions of the layout that need to be updated. [Full Topic] +// Prepares the layout object for animated changes to the collection view’s bounds or for the insertion or deletion of items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535343-invalidationcontextforpreferredl?language=objc -func (c_ CollectionViewLayout) InvalidationContextForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes ICollectionViewLayoutAttributes, originalAttributes ICollectionViewLayoutAttributes) CollectionViewLayoutInvalidationContext { - rv := objc.Call[CollectionViewLayoutInvalidationContext](c_, objc.Sel("invalidationContextForPreferredLayoutAttributes:withOriginalAttributes:"), preferredAttributes, originalAttributes) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533678-prepareforanimatedboundschange?language=objc +func (c_ CollectionViewLayout) PrepareForAnimatedBoundsChange(oldBounds foundation.Rect) { + objc.Call[objc.Void](c_, objc.Sel("prepareForAnimatedBoundsChange:"), oldBounds) } -// Returns layout attributes for the drop target at the specified point. [Full Topic] +// Returns the layout attributes for the item at the specified index path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535931-layoutattributesfordroptargetatp?language=objc -func (c_ CollectionViewLayout) LayoutAttributesForDropTargetAtPoint(pointInCollectionView foundation.Point) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForDropTargetAtPoint:"), pointInCollectionView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1534298-layoutattributesforitematindexpa?language=objc +func (c_ CollectionViewLayout) LayoutAttributesForItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForItemAtIndexPath:"), indexPath) return rv } @@ -312,44 +290,21 @@ func (c_ CollectionViewLayout) LayoutAttributesForSupplementaryViewOfKindAtIndex return rv } -// Returns the starting layout information for an item being inserted into the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533598-initiallayoutattributesforappear?language=objc -func (c_ CollectionViewLayout) InitialLayoutAttributesForAppearingItemAtIndexPath(itemIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("initialLayoutAttributesForAppearingItemAtIndexPath:"), itemIndexPath) - return rv -} - -// Prepares the layout object to be installed in the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533383-preparefortransitionfromlayout?language=objc -func (c_ CollectionViewLayout) PrepareForTransitionFromLayout(oldLayout ICollectionViewLayout) { - objc.Call[objc.Void](c_, objc.Sel("prepareForTransitionFromLayout:"), oldLayout) -} - -// Returns layout attributes for the inter-item gap at the specified location in your layout. [Full Topic] +// Cleans up after any animated changes to the collection view’s bounds or after the insertion or deletion of items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1528296-layoutattributesforinteritemgapb?language=objc -func (c_ CollectionViewLayout) LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForInterItemGapBeforeIndexPath:"), indexPath) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533163-finalizeanimatedboundschange?language=objc +func (c_ CollectionViewLayout) FinalizeAnimatedBoundsChange() { + objc.Call[objc.Void](c_, objc.Sel("finalizeAnimatedBoundsChange")) } -// Returns index paths for any decoration views that the layout object wants to remove from the collection view. [Full Topic] +// Returns a Boolean indicating whether a bounds change triggers a layout update. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1529635-indexpathstodeletefordecorationv?language=objc -func (c_ CollectionViewLayout) IndexPathsToDeleteForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set { - rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToDeleteForDecorationViewOfKind:"), elementKind) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1531047-shouldinvalidatelayoutforboundsc?language=objc +func (c_ CollectionViewLayout) ShouldInvalidateLayoutForBoundsChange(newBounds foundation.Rect) bool { + rv := objc.Call[bool](c_, objc.Sel("shouldInvalidateLayoutForBoundsChange:"), newBounds) return rv } -// Performs needed tasks before items are inserted, deleted, or moved within the collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533485-prepareforcollectionviewupdates?language=objc -func (c_ CollectionViewLayout) PrepareForCollectionViewUpdates(updateItems []ICollectionViewUpdateItem) { - objc.Call[objc.Void](c_, objc.Sel("prepareForCollectionViewUpdates:"), updateItems) -} - // Returns the class to use for layout attribute objects [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1527555-layoutattributesclass?language=objc @@ -365,11 +320,11 @@ func CollectionViewLayout_LayoutAttributesClass() objc.Class { return CollectionViewLayoutClass.LayoutAttributesClass() } -// The collection view object currently using this layout. [Full Topic] +// The width and height of the collection view’s contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533540-collectionview?language=objc -func (c_ CollectionViewLayout) CollectionView() CollectionView { - rv := objc.Call[CollectionView](c_, objc.Sel("collectionView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1532618-collectionviewcontentsize?language=objc +func (c_ CollectionViewLayout) CollectionViewContentSize() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("collectionViewContentSize")) return rv } @@ -388,10 +343,10 @@ func CollectionViewLayout_InvalidationContextClass() objc.Class { return CollectionViewLayoutClass.InvalidationContextClass() } -// The width and height of the collection view’s contents. [Full Topic] +// The collection view object currently using this layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1532618-collectionviewcontentsize?language=objc -func (c_ CollectionViewLayout) CollectionViewContentSize() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("collectionViewContentSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1533540-collectionview?language=objc +func (c_ CollectionViewLayout) CollectionView() CollectionView { + rv := objc.Call[CollectionView](c_, objc.Sel("collectionView")) return rv } diff --git a/macos/appkit/collection_view_layout_attributes.gen.go b/macos/appkit/collection_view_layout_attributes.gen.go index d6271714..96ffae43 100644 --- a/macos/appkit/collection_view_layout_attributes.gen.go +++ b/macos/appkit/collection_view_layout_attributes.gen.go @@ -19,20 +19,20 @@ type _CollectionViewLayoutAttributesClass struct { // An interface definition for the [CollectionViewLayoutAttributes] class. type ICollectionViewLayoutAttributes interface { objc.IObject - RepresentedElementCategory() CollectionElementCategory IsHidden() bool SetHidden(value bool) - ZIndex() int - SetZIndex(value int) + RepresentedElementKind() string + RepresentedElementCategory() CollectionElementCategory Alpha() float64 SetAlpha(value float64) - RepresentedElementKind() string - Size() foundation.Size - SetSize(value foundation.Size) - Frame() foundation.Rect - SetFrame(value foundation.Rect) IndexPath() foundation.IndexPath SetIndexPath(value foundation.IIndexPath) + Frame() foundation.Rect + SetFrame(value foundation.Rect) + ZIndex() int + SetZIndex(value int) + Size() foundation.Size + SetSize(value foundation.Size) } // An object that contains layout-related attributes for an element in a collection view. [Full Topic] @@ -48,30 +48,6 @@ func CollectionViewLayoutAttributesFrom(ptr unsafe.Pointer) CollectionViewLayout } } -func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForDecorationViewOfKindWithIndexPath(decorationViewKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForDecorationViewOfKind:withIndexPath:"), decorationViewKind, indexPath) - return rv -} - -// Creates and returns a layout attributes object for a decoration view based on the specified information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1535736-layoutattributesfordecorationvie?language=objc -func CollectionViewLayoutAttributes_LayoutAttributesForDecorationViewOfKindWithIndexPath(decorationViewKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - return CollectionViewLayoutAttributesClass.LayoutAttributesForDecorationViewOfKindWithIndexPath(decorationViewKind, indexPath) -} - -func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForItemWithIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForItemWithIndexPath:"), indexPath) - return rv -} - -// Creates and returns a layout attributes object for the item at the specified index path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1529886-layoutattributesforitemwithindex?language=objc -func CollectionViewLayoutAttributes_LayoutAttributesForItemWithIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - return CollectionViewLayoutAttributesClass.LayoutAttributesForItemWithIndexPath(indexPath) -} - func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForInterItemGapBeforeIndexPath:"), indexPath) return rv @@ -84,6 +60,18 @@ func CollectionViewLayoutAttributes_LayoutAttributesForInterItemGapBeforeIndexPa return CollectionViewLayoutAttributesClass.LayoutAttributesForInterItemGapBeforeIndexPath(indexPath) } +func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForDecorationViewOfKindWithIndexPath(decorationViewKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForDecorationViewOfKind:withIndexPath:"), decorationViewKind, indexPath) + return rv +} + +// Creates and returns a layout attributes object for a decoration view based on the specified information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1535736-layoutattributesfordecorationvie?language=objc +func CollectionViewLayoutAttributes_LayoutAttributesForDecorationViewOfKindWithIndexPath(decorationViewKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + return CollectionViewLayoutAttributesClass.LayoutAttributesForDecorationViewOfKindWithIndexPath(decorationViewKind, indexPath) +} + func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForSupplementaryViewOfKindWithIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForSupplementaryViewOfKind:withIndexPath:"), elementKind, indexPath) return rv @@ -96,6 +84,18 @@ func CollectionViewLayoutAttributes_LayoutAttributesForSupplementaryViewOfKindWi return CollectionViewLayoutAttributesClass.LayoutAttributesForSupplementaryViewOfKindWithIndexPath(elementKind, indexPath) } +func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForItemWithIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForItemWithIndexPath:"), indexPath) + return rv +} + +// Creates and returns a layout attributes object for the item at the specified index path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1529886-layoutattributesforitemwithindex?language=objc +func CollectionViewLayoutAttributes_LayoutAttributesForItemWithIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + return CollectionViewLayoutAttributesClass.LayoutAttributesForItemWithIndexPath(indexPath) +} + func (cc _CollectionViewLayoutAttributesClass) Alloc() CollectionViewLayoutAttributes { rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("alloc")) return rv @@ -116,14 +116,6 @@ func (c_ CollectionViewLayoutAttributes) Init() CollectionViewLayoutAttributes { return rv } -// The type of the element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1529026-representedelementcategory?language=objc -func (c_ CollectionViewLayoutAttributes) RepresentedElementCategory() CollectionElementCategory { - rv := objc.Call[CollectionElementCategory](c_, objc.Sel("representedElementCategory")) - return rv -} - // A Boolean value indicating whether the element is hidden. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1535336-hidden?language=objc @@ -139,19 +131,20 @@ func (c_ CollectionViewLayoutAttributes) SetHidden(value bool) { objc.Call[objc.Void](c_, objc.Sel("setHidden:"), value) } -// The element’s position on the z axis. [Full Topic] +// The identifier for specific elements of your collection view interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1531553-zindex?language=objc -func (c_ CollectionViewLayoutAttributes) ZIndex() int { - rv := objc.Call[int](c_, objc.Sel("zIndex")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1533826-representedelementkind?language=objc +func (c_ CollectionViewLayoutAttributes) RepresentedElementKind() string { + rv := objc.Call[string](c_, objc.Sel("representedElementKind")) return rv } -// The element’s position on the z axis. [Full Topic] +// The type of the element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1531553-zindex?language=objc -func (c_ CollectionViewLayoutAttributes) SetZIndex(value int) { - objc.Call[objc.Void](c_, objc.Sel("setZIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1529026-representedelementcategory?language=objc +func (c_ CollectionViewLayoutAttributes) RepresentedElementCategory() CollectionElementCategory { + rv := objc.Call[CollectionElementCategory](c_, objc.Sel("representedElementCategory")) + return rv } // The transparency of the element. [Full Topic] @@ -169,27 +162,19 @@ func (c_ CollectionViewLayoutAttributes) SetAlpha(value float64) { objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } -// The identifier for specific elements of your collection view interface. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1533826-representedelementkind?language=objc -func (c_ CollectionViewLayoutAttributes) RepresentedElementKind() string { - rv := objc.Call[string](c_, objc.Sel("representedElementKind")) - return rv -} - -// The size of the element. [Full Topic] +// The index path of the element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1528769-size?language=objc -func (c_ CollectionViewLayoutAttributes) Size() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("size")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1531306-indexpath?language=objc +func (c_ CollectionViewLayoutAttributes) IndexPath() foundation.IndexPath { + rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPath")) return rv } -// The size of the element. [Full Topic] +// The index path of the element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1528769-size?language=objc -func (c_ CollectionViewLayoutAttributes) SetSize(value foundation.Size) { - objc.Call[objc.Void](c_, objc.Sel("setSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1531306-indexpath?language=objc +func (c_ CollectionViewLayoutAttributes) SetIndexPath(value foundation.IIndexPath) { + objc.Call[objc.Void](c_, objc.Sel("setIndexPath:"), value) } // The frame rectangle of the element. [Full Topic] @@ -207,17 +192,32 @@ func (c_ CollectionViewLayoutAttributes) SetFrame(value foundation.Rect) { objc.Call[objc.Void](c_, objc.Sel("setFrame:"), value) } -// The index path of the element. [Full Topic] +// The element’s position on the z axis. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1531306-indexpath?language=objc -func (c_ CollectionViewLayoutAttributes) IndexPath() foundation.IndexPath { - rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1531553-zindex?language=objc +func (c_ CollectionViewLayoutAttributes) ZIndex() int { + rv := objc.Call[int](c_, objc.Sel("zIndex")) return rv } -// The index path of the element. [Full Topic] +// The element’s position on the z axis. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1531306-indexpath?language=objc -func (c_ CollectionViewLayoutAttributes) SetIndexPath(value foundation.IIndexPath) { - objc.Call[objc.Void](c_, objc.Sel("setIndexPath:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1531553-zindex?language=objc +func (c_ CollectionViewLayoutAttributes) SetZIndex(value int) { + objc.Call[objc.Void](c_, objc.Sel("setZIndex:"), value) +} + +// The size of the element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1528769-size?language=objc +func (c_ CollectionViewLayoutAttributes) Size() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("size")) + return rv +} + +// The size of the element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1528769-size?language=objc +func (c_ CollectionViewLayoutAttributes) SetSize(value foundation.Size) { + objc.Call[objc.Void](c_, objc.Sel("setSize:"), value) } diff --git a/macos/appkit/collection_view_layout_invalidation_context.gen.go b/macos/appkit/collection_view_layout_invalidation_context.gen.go index 00bb17f6..65bc18a8 100644 --- a/macos/appkit/collection_view_layout_invalidation_context.gen.go +++ b/macos/appkit/collection_view_layout_invalidation_context.gen.go @@ -19,18 +19,18 @@ type _CollectionViewLayoutInvalidationContextClass struct { // An interface definition for the [CollectionViewLayoutInvalidationContext] class. type ICollectionViewLayoutInvalidationContext interface { objc.IObject - InvalidateItemsAtIndexPaths(indexPaths foundation.ISet) - InvalidateDecorationElementsOfKindAtIndexPaths(elementKind CollectionViewDecorationElementKind, indexPaths foundation.ISet) InvalidateSupplementaryElementsOfKindAtIndexPaths(elementKind CollectionViewSupplementaryElementKind, indexPaths foundation.ISet) - ContentOffsetAdjustment() foundation.Point - SetContentOffsetAdjustment(value foundation.Point) - ContentSizeAdjustment() foundation.Size - SetContentSizeAdjustment(value foundation.Size) + InvalidateDecorationElementsOfKindAtIndexPaths(elementKind CollectionViewDecorationElementKind, indexPaths foundation.ISet) + InvalidateItemsAtIndexPaths(indexPaths foundation.ISet) + InvalidatedDecorationIndexPaths() map[CollectionViewDecorationElementKind]foundation.Set InvalidateEverything() bool + InvalidatedItemIndexPaths() foundation.Set InvalidateDataSourceCounts() bool InvalidatedSupplementaryIndexPaths() map[CollectionViewSupplementaryElementKind]foundation.Set - InvalidatedItemIndexPaths() foundation.Set - InvalidatedDecorationIndexPaths() map[CollectionViewDecorationElementKind]foundation.Set + ContentSizeAdjustment() foundation.Size + SetContentSizeAdjustment(value foundation.Size) + ContentOffsetAdjustment() foundation.Point + SetContentOffsetAdjustment(value foundation.Point) } // An object that identifies the portions of your layout that need to be updated. [Full Topic] @@ -66,20 +66,6 @@ func (c_ CollectionViewLayoutInvalidationContext) Init() CollectionViewLayoutInv return rv } -// Marks the specified items as invalid so that their layout information can be updated. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1526592-invalidateitemsatindexpaths?language=objc -func (c_ CollectionViewLayoutInvalidationContext) InvalidateItemsAtIndexPaths(indexPaths foundation.ISet) { - objc.Call[objc.Void](c_, objc.Sel("invalidateItemsAtIndexPaths:"), indexPaths) -} - -// Marks the specified decoration views as invalid so that their layout information can be updated. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1535363-invalidatedecorationelementsofki?language=objc -func (c_ CollectionViewLayoutInvalidationContext) InvalidateDecorationElementsOfKindAtIndexPaths(elementKind CollectionViewDecorationElementKind, indexPaths foundation.ISet) { - objc.Call[objc.Void](c_, objc.Sel("invalidateDecorationElementsOfKind:atIndexPaths:"), elementKind, indexPaths) -} - // Marks the specified supplementary views as invalid so that their layout information can be updated. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1533990-invalidatesupplementaryelementso?language=objc @@ -87,36 +73,28 @@ func (c_ CollectionViewLayoutInvalidationContext) InvalidateSupplementaryElement objc.Call[objc.Void](c_, objc.Sel("invalidateSupplementaryElementsOfKind:atIndexPaths:"), elementKind, indexPaths) } -// The delta value to add to the collection view’s content offset. [Full Topic] +// Marks the specified decoration views as invalid so that their layout information can be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1533465-contentoffsetadjustment?language=objc -func (c_ CollectionViewLayoutInvalidationContext) ContentOffsetAdjustment() foundation.Point { - rv := objc.Call[foundation.Point](c_, objc.Sel("contentOffsetAdjustment")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1535363-invalidatedecorationelementsofki?language=objc +func (c_ CollectionViewLayoutInvalidationContext) InvalidateDecorationElementsOfKindAtIndexPaths(elementKind CollectionViewDecorationElementKind, indexPaths foundation.ISet) { + objc.Call[objc.Void](c_, objc.Sel("invalidateDecorationElementsOfKind:atIndexPaths:"), elementKind, indexPaths) } -// The delta value to add to the collection view’s content offset. [Full Topic] +// Marks the specified items as invalid so that their layout information can be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1533465-contentoffsetadjustment?language=objc -func (c_ CollectionViewLayoutInvalidationContext) SetContentOffsetAdjustment(value foundation.Point) { - objc.Call[objc.Void](c_, objc.Sel("setContentOffsetAdjustment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1526592-invalidateitemsatindexpaths?language=objc +func (c_ CollectionViewLayoutInvalidationContext) InvalidateItemsAtIndexPaths(indexPaths foundation.ISet) { + objc.Call[objc.Void](c_, objc.Sel("invalidateItemsAtIndexPaths:"), indexPaths) } -// The delta value to add to the collection view’s content size. [Full Topic] +// A dictionary containing the decoration views whose layout attributes are invalid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1527883-contentsizeadjustment?language=objc -func (c_ CollectionViewLayoutInvalidationContext) ContentSizeAdjustment() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("contentSizeAdjustment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1530481-invalidateddecorationindexpaths?language=objc +func (c_ CollectionViewLayoutInvalidationContext) InvalidatedDecorationIndexPaths() map[CollectionViewDecorationElementKind]foundation.Set { + rv := objc.Call[map[CollectionViewDecorationElementKind]foundation.Set](c_, objc.Sel("invalidatedDecorationIndexPaths")) return rv } -// The delta value to add to the collection view’s content size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1527883-contentsizeadjustment?language=objc -func (c_ CollectionViewLayoutInvalidationContext) SetContentSizeAdjustment(value foundation.Size) { - objc.Call[objc.Void](c_, objc.Sel("setContentSizeAdjustment:"), value) -} - // A Boolean that indicates whether all layout data should be marked as invalid. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1525613-invalidateeverything?language=objc @@ -125,6 +103,14 @@ func (c_ CollectionViewLayoutInvalidationContext) InvalidateEverything() bool { return rv } +// The set of items whose layout attributes are invalid. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1525361-invalidateditemindexpaths?language=objc +func (c_ CollectionViewLayoutInvalidationContext) InvalidatedItemIndexPaths() foundation.Set { + rv := objc.Call[foundation.Set](c_, objc.Sel("invalidatedItemIndexPaths")) + return rv +} + // A Boolean that indicates whether the layout object should ask for new section and item counts. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1526189-invalidatedatasourcecounts?language=objc @@ -141,18 +127,32 @@ func (c_ CollectionViewLayoutInvalidationContext) InvalidatedSupplementaryIndexP return rv } -// The set of items whose layout attributes are invalid. [Full Topic] +// The delta value to add to the collection view’s content size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1525361-invalidateditemindexpaths?language=objc -func (c_ CollectionViewLayoutInvalidationContext) InvalidatedItemIndexPaths() foundation.Set { - rv := objc.Call[foundation.Set](c_, objc.Sel("invalidatedItemIndexPaths")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1527883-contentsizeadjustment?language=objc +func (c_ CollectionViewLayoutInvalidationContext) ContentSizeAdjustment() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("contentSizeAdjustment")) return rv } -// A dictionary containing the decoration views whose layout attributes are invalid. [Full Topic] +// The delta value to add to the collection view’s content size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1530481-invalidateddecorationindexpaths?language=objc -func (c_ CollectionViewLayoutInvalidationContext) InvalidatedDecorationIndexPaths() map[CollectionViewDecorationElementKind]foundation.Set { - rv := objc.Call[map[CollectionViewDecorationElementKind]foundation.Set](c_, objc.Sel("invalidatedDecorationIndexPaths")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1527883-contentsizeadjustment?language=objc +func (c_ CollectionViewLayoutInvalidationContext) SetContentSizeAdjustment(value foundation.Size) { + objc.Call[objc.Void](c_, objc.Sel("setContentSizeAdjustment:"), value) +} + +// The delta value to add to the collection view’s content offset. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1533465-contentoffsetadjustment?language=objc +func (c_ CollectionViewLayoutInvalidationContext) ContentOffsetAdjustment() foundation.Point { + rv := objc.Call[foundation.Point](c_, objc.Sel("contentOffsetAdjustment")) return rv } + +// The delta value to add to the collection view’s content offset. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1533465-contentoffsetadjustment?language=objc +func (c_ CollectionViewLayoutInvalidationContext) SetContentOffsetAdjustment(value foundation.Point) { + objc.Call[objc.Void](c_, objc.Sel("setContentOffsetAdjustment:"), value) +} diff --git a/macos/appkit/collection_view_prefetching_protocol.gen.go b/macos/appkit/collection_view_prefetching_protocol.gen.go index 046d782c..91fc64ce 100644 --- a/macos/appkit/collection_view_prefetching_protocol.gen.go +++ b/macos/appkit/collection_view_prefetching_protocol.gen.go @@ -14,10 +14,6 @@ type PCollectionViewPrefetching interface { // optional CollectionViewPrefetchItemsAtIndexPaths(collectionView CollectionView, indexPaths []foundation.IndexPath) HasCollectionViewPrefetchItemsAtIndexPaths() bool - - // optional - CollectionViewCancelPrefetchingForItemsAtIndexPaths(collectionView CollectionView, indexPaths []foundation.IndexPath) - HasCollectionViewCancelPrefetchingForItemsAtIndexPaths() bool } // ensure impl type implements protocol interface @@ -38,14 +34,3 @@ func (c_ CollectionViewPrefetchingObject) HasCollectionViewPrefetchItemsAtIndexP func (c_ CollectionViewPrefetchingObject) CollectionViewPrefetchItemsAtIndexPaths(collectionView CollectionView, indexPaths []foundation.IndexPath) { objc.Call[objc.Void](c_, objc.Sel("collectionView:prefetchItemsAtIndexPaths:"), collectionView, indexPaths) } - -func (c_ CollectionViewPrefetchingObject) HasCollectionViewCancelPrefetchingForItemsAtIndexPaths() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:cancelPrefetchingForItemsAtIndexPaths:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewprefetching/2879295-collectionview?language=objc -func (c_ CollectionViewPrefetchingObject) CollectionViewCancelPrefetchingForItemsAtIndexPaths(collectionView CollectionView, indexPaths []foundation.IndexPath) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:cancelPrefetchingForItemsAtIndexPaths:"), collectionView, indexPaths) -} diff --git a/macos/appkit/collection_view_transition_layout.gen.go b/macos/appkit/collection_view_transition_layout.gen.go index 4f65eebb..4876a129 100644 --- a/macos/appkit/collection_view_transition_layout.gen.go +++ b/macos/appkit/collection_view_transition_layout.gen.go @@ -18,12 +18,12 @@ type _CollectionViewTransitionLayoutClass struct { // An interface definition for the [CollectionViewTransitionLayout] class. type ICollectionViewTransitionLayout interface { ICollectionViewLayout - UpdateValueForAnimatedKey(value float64, key CollectionViewTransitionLayoutAnimatedKey) ValueForAnimatedKey(key CollectionViewTransitionLayoutAnimatedKey) float64 - NextLayout() CollectionViewLayout + UpdateValueForAnimatedKey(value float64, key CollectionViewTransitionLayoutAnimatedKey) + CurrentLayout() CollectionViewLayout TransitionProgress() float64 SetTransitionProgress(value float64) - CurrentLayout() CollectionViewLayout + NextLayout() CollectionViewLayout } // An object that implements custom behaviors when changing from one layout to another in a collection view. [Full Topic] @@ -73,13 +73,6 @@ func (c_ CollectionViewTransitionLayout) Init() CollectionViewTransitionLayout { return rv } -// Sets the value of a key whose value you use during the animation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewtransitionlayout/1524303-updatevalue?language=objc -func (c_ CollectionViewTransitionLayout) UpdateValueForAnimatedKey(value float64, key CollectionViewTransitionLayoutAnimatedKey) { - objc.Call[objc.Void](c_, objc.Sel("updateValue:forAnimatedKey:"), value, key) -} - // Returns the most recently set value for the specified key. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewtransitionlayout/1524429-valueforanimatedkey?language=objc @@ -88,11 +81,18 @@ func (c_ CollectionViewTransitionLayout) ValueForAnimatedKey(key CollectionViewT return rv } -// The collection view’s new layout object. [Full Topic] +// Sets the value of a key whose value you use during the animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewtransitionlayout/1524426-nextlayout?language=objc -func (c_ CollectionViewTransitionLayout) NextLayout() CollectionViewLayout { - rv := objc.Call[CollectionViewLayout](c_, objc.Sel("nextLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewtransitionlayout/1524303-updatevalue?language=objc +func (c_ CollectionViewTransitionLayout) UpdateValueForAnimatedKey(value float64, key CollectionViewTransitionLayoutAnimatedKey) { + objc.Call[objc.Void](c_, objc.Sel("updateValue:forAnimatedKey:"), value, key) +} + +// The collection view’s current layout object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewtransitionlayout/1524425-currentlayout?language=objc +func (c_ CollectionViewTransitionLayout) CurrentLayout() CollectionViewLayout { + rv := objc.Call[CollectionViewLayout](c_, objc.Sel("currentLayout")) return rv } @@ -111,10 +111,10 @@ func (c_ CollectionViewTransitionLayout) SetTransitionProgress(value float64) { objc.Call[objc.Void](c_, objc.Sel("setTransitionProgress:"), value) } -// The collection view’s current layout object. [Full Topic] +// The collection view’s new layout object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewtransitionlayout/1524425-currentlayout?language=objc -func (c_ CollectionViewTransitionLayout) CurrentLayout() CollectionViewLayout { - rv := objc.Call[CollectionViewLayout](c_, objc.Sel("currentLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewtransitionlayout/1524426-nextlayout?language=objc +func (c_ CollectionViewTransitionLayout) NextLayout() CollectionViewLayout { + rv := objc.Call[CollectionViewLayout](c_, objc.Sel("nextLayout")) return rv } diff --git a/macos/appkit/collection_view_update_item.gen.go b/macos/appkit/collection_view_update_item.gen.go index 0711fbcd..9e7d8c47 100644 --- a/macos/appkit/collection_view_update_item.gen.go +++ b/macos/appkit/collection_view_update_item.gen.go @@ -20,8 +20,8 @@ type _CollectionViewUpdateItemClass struct { type ICollectionViewUpdateItem interface { objc.IObject UpdateAction() CollectionUpdateAction - IndexPathAfterUpdate() foundation.IndexPath IndexPathBeforeUpdate() foundation.IndexPath + IndexPathAfterUpdate() foundation.IndexPath } // A description of a single change to make to an item in a collection view. [Full Topic] @@ -65,14 +65,6 @@ func (c_ CollectionViewUpdateItem) UpdateAction() CollectionUpdateAction { return rv } -// The index path of the item after the update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewupdateitem/1530431-indexpathafterupdate?language=objc -func (c_ CollectionViewUpdateItem) IndexPathAfterUpdate() foundation.IndexPath { - rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPathAfterUpdate")) - return rv -} - // The index path of the item before the update. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewupdateitem/1534798-indexpathbeforeupdate?language=objc @@ -80,3 +72,11 @@ func (c_ CollectionViewUpdateItem) IndexPathBeforeUpdate() foundation.IndexPath rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPathBeforeUpdate")) return rv } + +// The index path of the item after the update. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewupdateitem/1530431-indexpathafterupdate?language=objc +func (c_ CollectionViewUpdateItem) IndexPathAfterUpdate() foundation.IndexPath { + rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPathAfterUpdate")) + return rv +} diff --git a/macos/appkit/color.gen.go b/macos/appkit/color.gen.go index 45d336e8..11c37049 100644 --- a/macos/appkit/color.gen.go +++ b/macos/appkit/color.gen.go @@ -21,44 +21,44 @@ type _ColorClass struct { // An interface definition for the [Color] class. type IColor interface { objc.IObject + ColorWithSystemEffect(systemEffect ColorSystemEffect) Color + Set() WriteToPasteboard(pasteBoard IPasteboard) + ColorUsingType(type_ ColorType) Color + ShadowWithLevel(val float64) Color + BlendedColorWithFractionOfColor(fraction float64, color IColor) Color GetRedGreenBlueAlpha(red *float64, green *float64, blue *float64, alpha *float64) + GetCyanMagentaYellowBlackAlpha(cyan *float64, magenta *float64, yellow *float64, black *float64, alpha *float64) + GetComponents(components *float64) GetWhiteAlpha(white *float64, alpha *float64) + SetStroke() + DrawSwatchInRect(rect foundation.Rect) HighlightWithLevel(val float64) Color + ColorWithAlphaComponent(alpha float64) Color SetFill() - ShadowWithLevel(val float64) Color - DrawSwatchInRect(rect foundation.Rect) GetHueSaturationBrightnessAlpha(hue *float64, saturation *float64, brightness *float64, alpha *float64) ColorUsingColorSpace(space IColorSpace) Color - BlendedColorWithFractionOfColor(fraction float64, color IColor) Color - SetStroke() - ColorUsingType(type_ ColorType) Color - GetComponents(components *float64) - ColorWithAlphaComponent(alpha float64) Color - Set() - GetCyanMagentaYellowBlackAlpha(cyan *float64, magenta *float64, yellow *float64, black *float64, alpha *float64) - ColorWithSystemEffect(systemEffect ColorSystemEffect) Color + GreenComponent() float64 + BlackComponent() float64 + LocalizedColorNameComponent() string YellowComponent() float64 - CGColor() coregraphics.ColorRef - Type() ColorType - ColorNameComponent() ColorName + PatternImage() Image HueComponent() float64 - NumberOfComponents() int + ColorNameComponent() ColorName + RedComponent() float64 + ColorSpace() ColorSpace WhiteComponent() float64 BrightnessComponent() float64 + SaturationComponent() float64 + MagentaComponent() float64 + Type() ColorType + BlueComponent() float64 + LocalizedCatalogNameComponent() string + NumberOfComponents() int AlphaComponent() float64 - BlackComponent() float64 CyanComponent() float64 - LocalizedCatalogNameComponent() string - LocalizedColorNameComponent() string - BlueComponent() float64 - RedComponent() float64 CatalogNameComponent() ColorListName - PatternImage() Image - SaturationComponent() float64 - ColorSpace() ColorSpace - MagentaComponent() float64 - GreenComponent() float64 + CGColor() coregraphics.ColorRef } // An object that stores color data and sometimes opacity (alpha value). [Full Topic] @@ -94,6 +94,36 @@ func NewColor() Color { return ColorClass.New() } +// Creates a color object using the specified Core Graphics color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524265-colorwithcgcolor?language=objc +func (cc _ColorClass) ColorWithCGColor(cgColor coregraphics.ColorRef) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithCGColor:"), cgColor) + return rv +} + +// Creates a color object using the specified Core Graphics color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524265-colorwithcgcolor?language=objc +func Color_ColorWithCGColor(cgColor coregraphics.ColorRef) Color { + return ColorClass.ColorWithCGColor(cgColor) +} + +// Returns a new color object that represents the current color modified to include the specified visual effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998826-colorwithsystemeffect?language=objc +func (c_ Color) ColorWithSystemEffect(systemEffect ColorSystemEffect) Color { + rv := objc.Call[Color](c_, objc.Sel("colorWithSystemEffect:"), systemEffect) + return rv +} + +// Sets the color of subsequent drawing to the color that the color object represents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527089-set?language=objc +func (c_ Color) Set() { + objc.Call[objc.Void](c_, objc.Sel("set")) +} + // Writes the color object’s data to the specified pasteboard. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532199-writetopasteboard?language=objc @@ -101,11 +131,43 @@ func (c_ Color) WriteToPasteboard(pasteBoard IPasteboard) { objc.Call[objc.Void](c_, objc.Sel("writeToPasteboard:"), pasteBoard) } -// Returns the color object’s RGB component and opacity values in the respective arguments. [Full Topic] +// Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the app's main bundle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527848-getred?language=objc -func (c_ Color) GetRedGreenBlueAlpha(red *float64, green *float64, blue *float64, alpha *float64) { - objc.Call[objc.Void](c_, objc.Sel("getRed:green:blue:alpha:"), red, green, blue, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2876295-colornamed?language=objc +func (cc _ColorClass) ColorNamed(name ColorName) Color { + rv := objc.Call[Color](cc, objc.Sel("colorNamed:"), name) + return rv +} + +// Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the app's main bundle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2876295-colornamed?language=objc +func Color_ColorNamed(name ColorName) Color { + return ColorClass.ColorNamed(name) +} + +// Returns a version of the color object that is compatible with the specified color type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2880320-colorusingtype?language=objc +func (c_ Color) ColorUsingType(type_ ColorType) Color { + rv := objc.Call[Color](c_, objc.Sel("colorUsingType:"), type_) + return rv +} + +// Creates a new color object that represents a blend between the current color and the shadow color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528523-shadowwithlevel?language=objc +func (c_ Color) ShadowWithLevel(val float64) Color { + rv := objc.Call[Color](c_, objc.Sel("shadowWithLevel:"), val) + return rv +} + +// Creates a new color object whose component values are a weighted sum of the current color object and the specified color object's. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524689-blendedcolorwithfraction?language=objc +func (c_ Color) BlendedColorWithFractionOfColor(fraction float64, color IColor) Color { + rv := objc.Call[Color](c_, objc.Sel("blendedColorWithFraction:ofColor:"), fraction, color) + return rv } // Creates a color object with the specified hue, saturation, brightness, and alpha channel values. [Full Topic] @@ -123,41 +185,48 @@ func Color_ColorWithHueSaturationBrightnessAlpha(hue float64, saturation float64 return ColorClass.ColorWithHueSaturationBrightnessAlpha(hue, saturation, brightness, alpha) } -// Returns the grayscale and alpha values of the color. [Full Topic] +// Creates a color object using the given opacity and RGB components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532613-getwhite?language=objc -func (c_ Color) GetWhiteAlpha(white *float64, alpha *float64) { - objc.Call[objc.Void](c_, objc.Sel("getWhite:alpha:"), white, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526323-colorwithcalibratedred?language=objc +func (cc _ColorClass) ColorWithCalibratedRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithCalibratedRed:green:blue:alpha:"), red, green, blue, alpha) + return rv } -// Creates a new color object that represents a blend between the current color and the highlight color. [Full Topic] +// Creates a color object using the given opacity and RGB components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533061-highlightwithlevel?language=objc -func (c_ Color) HighlightWithLevel(val float64) Color { - rv := objc.Call[Color](c_, objc.Sel("highlightWithLevel:"), val) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526323-colorwithcalibratedred?language=objc +func Color_ColorWithCalibratedRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { + return ColorClass.ColorWithCalibratedRedGreenBlueAlpha(red, green, blue, alpha) } -// Sets the fill color of subsequent drawing to the color object’s color. [Full Topic] +// Returns the color object’s RGB component and opacity values in the respective arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524755-setfill?language=objc -func (c_ Color) SetFill() { - objc.Call[objc.Void](c_, objc.Sel("setFill")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527848-getred?language=objc +func (c_ Color) GetRedGreenBlueAlpha(red *float64, green *float64, blue *float64, alpha *float64) { + objc.Call[objc.Void](c_, objc.Sel("getRed:green:blue:alpha:"), red, green, blue, alpha) } -// Creates a new color object that represents a blend between the current color and the shadow color. [Full Topic] +// Returns the color object’s CMYK and opacity values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528523-shadowwithlevel?language=objc -func (c_ Color) ShadowWithLevel(val float64) Color { - rv := objc.Call[Color](c_, objc.Sel("shadowWithLevel:"), val) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531348-getcyan?language=objc +func (c_ Color) GetCyanMagentaYellowBlackAlpha(cyan *float64, magenta *float64, yellow *float64, black *float64, alpha *float64) { + objc.Call[objc.Void](c_, objc.Sel("getCyan:magenta:yellow:black:alpha:"), cyan, magenta, yellow, black, alpha) +} + +// Creates a dynamic catalog color with a provider that’s used to resolve the exact color value, calculated on first use. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3294481-colorwithname?language=objc +func (cc _ColorClass) ColorWithNameDynamicProvider(colorName ColorName, dynamicProvider func(arg0 Appearance) Color) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithName:dynamicProvider:"), colorName, dynamicProvider) return rv } -// Draws the current color in the specified rectangle. [Full Topic] +// Creates a dynamic catalog color with a provider that’s used to resolve the exact color value, calculated on first use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531770-drawswatchinrect?language=objc -func (c_ Color) DrawSwatchInRect(rect foundation.Rect) { - objc.Call[objc.Void](c_, objc.Sel("drawSwatchInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3294481-colorwithname?language=objc +func Color_ColorWithNameDynamicProvider(colorName ColorName, dynamicProvider func(arg0 Appearance) Color) Color { + return ColorClass.ColorWithNameDynamicProvider(colorName, dynamicProvider) } // Creates a color object using the given opacity value and HSB color space components. [Full Topic] @@ -175,6 +244,49 @@ func Color_ColorWithDeviceHueSaturationBrightnessAlpha(hue float64, saturation f return ColorClass.ColorWithDeviceHueSaturationBrightnessAlpha(hue, saturation, brightness, alpha) } +// Returns the components of the color as an array. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524600-getcomponents?language=objc +func (c_ Color) GetComponents(components *float64) { + objc.Call[objc.Void](c_, objc.Sel("getComponents:"), components) +} + +// Returns the grayscale and alpha values of the color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532613-getwhite?language=objc +func (c_ Color) GetWhiteAlpha(white *float64, alpha *float64) { + objc.Call[objc.Void](c_, objc.Sel("getWhite:alpha:"), white, alpha) +} + +// Sets the stroke color of subsequent drawing to the color object’s color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531019-setstroke?language=objc +func (c_ Color) SetStroke() { + objc.Call[objc.Void](c_, objc.Sel("setStroke")) +} + +// Draws the current color in the specified rectangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531770-drawswatchinrect?language=objc +func (c_ Color) DrawSwatchInRect(rect foundation.Rect) { + objc.Call[objc.Void](c_, objc.Sel("drawSwatchInRect:"), rect) +} + +// Creates a color object with the specified brightness and alpha channel values. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525501-colorwithwhite?language=objc +func (cc _ColorClass) ColorWithWhiteAlpha(white float64, alpha float64) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithWhite:alpha:"), white, alpha) + return rv +} + +// Creates a color object with the specified brightness and alpha channel values. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525501-colorwithwhite?language=objc +func Color_ColorWithWhiteAlpha(white float64, alpha float64) Color { + return ColorClass.ColorWithWhiteAlpha(white, alpha) +} + // Creates a color object from color data currently on the pasteboard. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535057-colorfrompasteboard?language=objc @@ -190,21 +302,6 @@ func Color_ColorFromPasteboard(pasteBoard IPasteboard) Color { return ColorClass.ColorFromPasteboard(pasteBoard) } -// Returns the color object’s HSB component and opacity values in the respective arguments. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534060-gethue?language=objc -func (c_ Color) GetHueSaturationBrightnessAlpha(hue *float64, saturation *float64, brightness *float64, alpha *float64) { - objc.Call[objc.Void](c_, objc.Sel("getHue:saturation:brightness:alpha:"), hue, saturation, brightness, alpha) -} - -// Creates a new color object representing the color of the current color object in the specified color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527379-colorusingcolorspace?language=objc -func (c_ Color) ColorUsingColorSpace(space IColorSpace) Color { - rv := objc.Call[Color](c_, objc.Sel("colorUsingColorSpace:"), space) - return rv -} - // Creates a color object from the specified components in the sRGB colorspace. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532666-colorwithsrgbred?language=objc @@ -220,109 +317,102 @@ func Color_ColorWithSRGBRedGreenBlueAlpha(red float64, green float64, blue float return ColorClass.ColorWithSRGBRedGreenBlueAlpha(red, green, blue, alpha) } -// Creates a color object using the specified Core Graphics color. [Full Topic] +// Creates a color object with the specified color space, hue, saturation, brightness, and alpha channel values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524265-colorwithcgcolor?language=objc -func (cc _ColorClass) ColorWithCGColor(cgColor coregraphics.ColorRef) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithCGColor:"), cgColor) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1644595-colorwithcolorspace?language=objc +func (cc _ColorClass) ColorWithColorSpaceHueSaturationBrightnessAlpha(space IColorSpace, hue float64, saturation float64, brightness float64, alpha float64) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithColorSpace:hue:saturation:brightness:alpha:"), space, hue, saturation, brightness, alpha) return rv } -// Creates a color object using the specified Core Graphics color. [Full Topic] +// Creates a color object with the specified color space, hue, saturation, brightness, and alpha channel values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524265-colorwithcgcolor?language=objc -func Color_ColorWithCGColor(cgColor coregraphics.ColorRef) Color { - return ColorClass.ColorWithCGColor(cgColor) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1644595-colorwithcolorspace?language=objc +func Color_ColorWithColorSpaceHueSaturationBrightnessAlpha(space IColorSpace, hue float64, saturation float64, brightness float64, alpha float64) Color { + return ColorClass.ColorWithColorSpaceHueSaturationBrightnessAlpha(space, hue, saturation, brightness, alpha) } -// Creates a color object from the specified components of the given color space. [Full Topic] +// Creates a color object using the specified asset catalog and color names. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533762-colorwithcolorspace?language=objc -func (cc _ColorClass) ColorWithColorSpaceComponentsCount(space IColorSpace, components *float64, numberOfComponents int) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithColorSpace:components:count:"), space, components, numberOfComponents) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1530559-colorwithcatalogname?language=objc +func (cc _ColorClass) ColorWithCatalogNameColorName(listName ColorListName, colorName ColorName) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithCatalogName:colorName:"), listName, colorName) return rv } -// Creates a color object from the specified components of the given color space. [Full Topic] +// Creates a color object using the specified asset catalog and color names. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533762-colorwithcolorspace?language=objc -func Color_ColorWithColorSpaceComponentsCount(space IColorSpace, components *float64, numberOfComponents int) Color { - return ColorClass.ColorWithColorSpaceComponentsCount(space, components, numberOfComponents) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1530559-colorwithcatalogname?language=objc +func Color_ColorWithCatalogNameColorName(listName ColorListName, colorName ColorName) Color { + return ColorClass.ColorWithCatalogNameColorName(listName, colorName) } -// Creates a new color object whose component values are a weighted sum of the current color object and the specified color object's. [Full Topic] +// Creates a new color object that represents a blend between the current color and the highlight color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524689-blendedcolorwithfraction?language=objc -func (c_ Color) BlendedColorWithFractionOfColor(fraction float64, color IColor) Color { - rv := objc.Call[Color](c_, objc.Sel("blendedColorWithFraction:ofColor:"), fraction, color) - return rv -} - -// Sets the stroke color of subsequent drawing to the color object’s color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531019-setstroke?language=objc -func (c_ Color) SetStroke() { - objc.Call[objc.Void](c_, objc.Sel("setStroke")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533061-highlightwithlevel?language=objc +func (c_ Color) HighlightWithLevel(val float64) Color { + rv := objc.Call[Color](c_, objc.Sel("highlightWithLevel:"), val) + return rv } -// Creates a color object using the given opacity and RGB components. [Full Topic] +// Creates a new color object that has the same color space and component values as the current color object, but the specified alpha component. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526323-colorwithcalibratedred?language=objc -func (cc _ColorClass) ColorWithCalibratedRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithCalibratedRed:green:blue:alpha:"), red, green, blue, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526906-colorwithalphacomponent?language=objc +func (c_ Color) ColorWithAlphaComponent(alpha float64) Color { + rv := objc.Call[Color](c_, objc.Sel("colorWithAlphaComponent:"), alpha) return rv } -// Creates a color object using the given opacity and RGB components. [Full Topic] +// Creates a color object with the specified red, green, blue, and alpha channel values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526323-colorwithcalibratedred?language=objc -func Color_ColorWithCalibratedRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { - return ColorClass.ColorWithCalibratedRedGreenBlueAlpha(red, green, blue, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535804-colorwithred?language=objc +func (cc _ColorClass) ColorWithRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithRed:green:blue:alpha:"), red, green, blue, alpha) + return rv } -// Creates a color object using the given opacity value and RGB components. [Full Topic] +// Creates a color object with the specified red, green, blue, and alpha channel values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524567-colorwithdevicered?language=objc -func (cc _ColorClass) ColorWithDeviceRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithDeviceRed:green:blue:alpha:"), red, green, blue, alpha) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535804-colorwithred?language=objc +func Color_ColorWithRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { + return ColorClass.ColorWithRedGreenBlueAlpha(red, green, blue, alpha) } -// Creates a color object using the given opacity value and RGB components. [Full Topic] +// Creates a color object that uses the specified image pattern to paint the target area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524567-colorwithdevicered?language=objc -func Color_ColorWithDeviceRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { - return ColorClass.ColorWithDeviceRedGreenBlueAlpha(red, green, blue, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527422-colorwithpatternimage?language=objc +func (cc _ColorClass) ColorWithPatternImage(image IImage) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithPatternImage:"), image) + return rv } -// Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the specified bundle. [Full Topic] +// Creates a color object that uses the specified image pattern to paint the target area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2876294-colornamed?language=objc -func (cc _ColorClass) ColorNamedBundle(name ColorName, bundle foundation.IBundle) Color { - rv := objc.Call[Color](cc, objc.Sel("colorNamed:bundle:"), name, bundle) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527422-colorwithpatternimage?language=objc +func Color_ColorWithPatternImage(image IImage) Color { + return ColorClass.ColorWithPatternImage(image) } -// Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the specified bundle. [Full Topic] +// Sets the fill color of subsequent drawing to the color object’s color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2876294-colornamed?language=objc -func Color_ColorNamedBundle(name ColorName, bundle foundation.IBundle) Color { - return ColorClass.ColorNamedBundle(name, bundle) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524755-setfill?language=objc +func (c_ Color) SetFill() { + objc.Call[objc.Void](c_, objc.Sel("setFill")) } -// Creates a color object using the given opacity and grayscale values. [Full Topic] +// Creates a color object from the specified Core Image color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525958-colorwithdevicewhite?language=objc -func (cc _ColorClass) ColorWithDeviceWhiteAlpha(white float64, alpha float64) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithDeviceWhite:alpha:"), white, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525446-colorwithcicolor?language=objc +func (cc _ColorClass) ColorWithCIColor(color coreimage.IColor) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithCIColor:"), color) return rv } -// Creates a color object using the given opacity and grayscale values. [Full Topic] +// Creates a color object from the specified Core Image color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525958-colorwithdevicewhite?language=objc -func Color_ColorWithDeviceWhiteAlpha(white float64, alpha float64) Color { - return ColorClass.ColorWithDeviceWhiteAlpha(white, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525446-colorwithcicolor?language=objc +func Color_ColorWithCIColor(color coreimage.IColor) Color { + return ColorClass.ColorWithCIColor(color) } // Creates a color object using the given opacity and HSB color space components. [Full Topic] @@ -340,34 +430,11 @@ func Color_ColorWithCalibratedHueSaturationBrightnessAlpha(hue float64, saturati return ColorClass.ColorWithCalibratedHueSaturationBrightnessAlpha(hue, saturation, brightness, alpha) } -// Creates a dynamic catalog color with a provider that’s used to resolve the exact color value, calculated on first use. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3294481-colorwithname?language=objc -func (cc _ColorClass) ColorWithNameDynamicProvider(colorName ColorName, dynamicProvider func(arg0 Appearance) Color) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithName:dynamicProvider:"), colorName, dynamicProvider) - return rv -} - -// Creates a dynamic catalog color with a provider that’s used to resolve the exact color value, calculated on first use. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3294481-colorwithname?language=objc -func Color_ColorWithNameDynamicProvider(colorName ColorName, dynamicProvider func(arg0 Appearance) Color) Color { - return ColorClass.ColorWithNameDynamicProvider(colorName, dynamicProvider) -} - -// Returns a version of the color object that is compatible with the specified color type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2880320-colorusingtype?language=objc -func (c_ Color) ColorUsingType(type_ ColorType) Color { - rv := objc.Call[Color](c_, objc.Sel("colorUsingType:"), type_) - return rv -} - -// Returns the components of the color as an array. [Full Topic] +// Returns the color object’s HSB component and opacity values in the respective arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524600-getcomponents?language=objc -func (c_ Color) GetComponents(components *float64) { - objc.Call[objc.Void](c_, objc.Sel("getComponents:"), components) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534060-gethue?language=objc +func (c_ Color) GetHueSaturationBrightnessAlpha(hue *float64, saturation *float64, brightness *float64, alpha *float64) { + objc.Call[objc.Void](c_, objc.Sel("getHue:saturation:brightness:alpha:"), hue, saturation, brightness, alpha) } // Creates a color object using the given opacity and grayscale values. [Full Topic] @@ -385,21 +452,6 @@ func Color_ColorWithCalibratedWhiteAlpha(white float64, alpha float64) Color { return ColorClass.ColorWithCalibratedWhiteAlpha(white, alpha) } -// Creates a color object that uses the specified image pattern to paint the target area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527422-colorwithpatternimage?language=objc -func (cc _ColorClass) ColorWithPatternImage(image IImage) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithPatternImage:"), image) - return rv -} - -// Creates a color object that uses the specified image pattern to paint the target area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527422-colorwithpatternimage?language=objc -func Color_ColorWithPatternImage(image IImage) Color { - return ColorClass.ColorWithPatternImage(image) -} - // Returns a color object with the specified white and alpha values in the GenericGamma22 colorspace. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525670-colorwithgenericgamma22white?language=objc @@ -415,56 +467,34 @@ func Color_ColorWithGenericGamma22WhiteAlpha(white float64, alpha float64) Color return ColorClass.ColorWithGenericGamma22WhiteAlpha(white, alpha) } -// Creates a color object from the specified Core Image color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525446-colorwithcicolor?language=objc -func (cc _ColorClass) ColorWithCIColor(color coreimage.IColor) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithCIColor:"), color) - return rv -} - -// Creates a color object from the specified Core Image color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525446-colorwithcicolor?language=objc -func Color_ColorWithCIColor(color coreimage.IColor) Color { - return ColorClass.ColorWithCIColor(color) -} - -// Creates a new color object that has the same color space and component values as the current color object, but the specified alpha component. [Full Topic] +// Creates a color object from the specified components in the Display P3 color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526906-colorwithalphacomponent?language=objc -func (c_ Color) ColorWithAlphaComponent(alpha float64) Color { - rv := objc.Call[Color](c_, objc.Sel("colorWithAlphaComponent:"), alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1644633-colorwithdisplayp3red?language=objc +func (cc _ColorClass) ColorWithDisplayP3RedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithDisplayP3Red:green:blue:alpha:"), red, green, blue, alpha) return rv } -// Sets the color of subsequent drawing to the color that the color object represents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527089-set?language=objc -func (c_ Color) Set() { - objc.Call[objc.Void](c_, objc.Sel("set")) -} - -// Returns the color object’s CMYK and opacity values. [Full Topic] +// Creates a color object from the specified components in the Display P3 color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531348-getcyan?language=objc -func (c_ Color) GetCyanMagentaYellowBlackAlpha(cyan *float64, magenta *float64, yellow *float64, black *float64, alpha *float64) { - objc.Call[objc.Void](c_, objc.Sel("getCyan:magenta:yellow:black:alpha:"), cyan, magenta, yellow, black, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1644633-colorwithdisplayp3red?language=objc +func Color_ColorWithDisplayP3RedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { + return ColorClass.ColorWithDisplayP3RedGreenBlueAlpha(red, green, blue, alpha) } -// Creates a color object with the specified red, green, blue, and alpha channel values. [Full Topic] +// Creates a color object using the given opacity value and RGB components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535804-colorwithred?language=objc -func (cc _ColorClass) ColorWithRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithRed:green:blue:alpha:"), red, green, blue, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524567-colorwithdevicered?language=objc +func (cc _ColorClass) ColorWithDeviceRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithDeviceRed:green:blue:alpha:"), red, green, blue, alpha) return rv } -// Creates a color object with the specified red, green, blue, and alpha channel values. [Full Topic] +// Creates a color object using the given opacity value and RGB components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535804-colorwithred?language=objc -func Color_ColorWithRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { - return ColorClass.ColorWithRedGreenBlueAlpha(red, green, blue, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524567-colorwithdevicered?language=objc +func Color_ColorWithDeviceRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { + return ColorClass.ColorWithDeviceRedGreenBlueAlpha(red, green, blue, alpha) } // Creates a color object using the given opacity value and CMYK components. [Full Topic] @@ -482,271 +512,240 @@ func Color_ColorWithDeviceCyanMagentaYellowBlackAlpha(cyan float64, magenta floa return ColorClass.ColorWithDeviceCyanMagentaYellowBlackAlpha(cyan, magenta, yellow, black, alpha) } -// Creates a color object with the specified brightness and alpha channel values. [Full Topic] +// Creates a new color object representing the color of the current color object in the specified color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525501-colorwithwhite?language=objc -func (cc _ColorClass) ColorWithWhiteAlpha(white float64, alpha float64) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithWhite:alpha:"), white, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527379-colorusingcolorspace?language=objc +func (c_ Color) ColorUsingColorSpace(space IColorSpace) Color { + rv := objc.Call[Color](c_, objc.Sel("colorUsingColorSpace:"), space) return rv } -// Creates a color object with the specified brightness and alpha channel values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525501-colorwithwhite?language=objc -func Color_ColorWithWhiteAlpha(white float64, alpha float64) Color { - return ColorClass.ColorWithWhiteAlpha(white, alpha) -} - -// Creates a color object from the specified components in the Display P3 color space. [Full Topic] +// Creates a color object using the given opacity and grayscale values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1644633-colorwithdisplayp3red?language=objc -func (cc _ColorClass) ColorWithDisplayP3RedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithDisplayP3Red:green:blue:alpha:"), red, green, blue, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525958-colorwithdevicewhite?language=objc +func (cc _ColorClass) ColorWithDeviceWhiteAlpha(white float64, alpha float64) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithDeviceWhite:alpha:"), white, alpha) return rv } -// Creates a color object from the specified components in the Display P3 color space. [Full Topic] +// Creates a color object using the given opacity and grayscale values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1644633-colorwithdisplayp3red?language=objc -func Color_ColorWithDisplayP3RedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { - return ColorClass.ColorWithDisplayP3RedGreenBlueAlpha(red, green, blue, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525958-colorwithdevicewhite?language=objc +func Color_ColorWithDeviceWhiteAlpha(white float64, alpha float64) Color { + return ColorClass.ColorWithDeviceWhiteAlpha(white, alpha) } -// Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the app's main bundle. [Full Topic] +// Returns a color object whose grayscale value is 2/3 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2876295-colornamed?language=objc -func (cc _ColorClass) ColorNamed(name ColorName) Color { - rv := objc.Call[Color](cc, objc.Sel("colorNamed:"), name) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535184-lightgraycolor?language=objc +func (cc _ColorClass) LightGrayColor() Color { + rv := objc.Call[Color](cc, objc.Sel("lightGrayColor")) return rv } -// Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the app's main bundle. [Full Topic] +// Returns a color object whose grayscale value is 2/3 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2876295-colornamed?language=objc -func Color_ColorNamed(name ColorName) Color { - return ColorClass.ColorNamed(name) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535184-lightgraycolor?language=objc +func Color_LightGrayColor() Color { + return ColorClass.LightGrayColor() } -// Creates a color object using the specified asset catalog and color names. [Full Topic] +// The color to use for the background of large controls, such as scroll views or table views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1530559-colorwithcatalogname?language=objc -func (cc _ColorClass) ColorWithCatalogNameColorName(listName ColorListName, colorName ColorName) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithCatalogName:colorName:"), listName, colorName) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531948-controlbackgroundcolor?language=objc +func (cc _ColorClass) ControlBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("controlBackgroundColor")) return rv } -// Creates a color object using the specified asset catalog and color names. [Full Topic] +// The color to use for the background of large controls, such as scroll views or table views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1530559-colorwithcatalogname?language=objc -func Color_ColorWithCatalogNameColorName(listName ColorListName, colorName ColorName) Color { - return ColorClass.ColorWithCatalogNameColorName(listName, colorName) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531948-controlbackgroundcolor?language=objc +func Color_ControlBackgroundColor() Color { + return ColorClass.ControlBackgroundColor() } -// Returns a new color object that represents the current color modified to include the specified visual effect. [Full Topic] +// The green component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998826-colorwithsystemeffect?language=objc -func (c_ Color) ColorWithSystemEffect(systemEffect ColorSystemEffect) Color { - rv := objc.Call[Color](c_, objc.Sel("colorWithSystemEffect:"), systemEffect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525935-greencomponent?language=objc +func (c_ Color) GreenComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("greenComponent")) return rv } -// Creates a color object with the specified color space, hue, saturation, brightness, and alpha channel values. [Full Topic] +// Returns a color object whose grayscale and alpha values are both 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1644595-colorwithcolorspace?language=objc -func (cc _ColorClass) ColorWithColorSpaceHueSaturationBrightnessAlpha(space IColorSpace, hue float64, saturation float64, brightness float64, alpha float64) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithColorSpace:hue:saturation:brightness:alpha:"), space, hue, saturation, brightness, alpha) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526370-whitecolor?language=objc +func (cc _ColorClass) WhiteColor() Color { + rv := objc.Call[Color](cc, objc.Sel("whiteColor")) return rv } -// Creates a color object with the specified color space, hue, saturation, brightness, and alpha channel values. [Full Topic] +// Returns a color object whose grayscale and alpha values are both 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1644595-colorwithcolorspace?language=objc -func Color_ColorWithColorSpaceHueSaturationBrightnessAlpha(space IColorSpace, hue float64, saturation float64, brightness float64, alpha float64) Color { - return ColorClass.ColorWithColorSpaceHueSaturationBrightnessAlpha(space, hue, saturation, brightness, alpha) -} - -// The yellow component value of the color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531965-yellowcomponent?language=objc -func (c_ Color) YellowComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("yellowComponent")) - return rv -} - -// The Core Graphics color object corresponding to the color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527738-cgcolor?language=objc -func (c_ Color) CGColor() coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](c_, objc.Sel("CGColor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526370-whitecolor?language=objc +func Color_WhiteColor() Color { + return ColorClass.WhiteColor() } -// The color to use for the window background. [Full Topic] +// Returns a color object whose RGB value is 1.0, 0.0, 1.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528630-windowbackgroundcolor?language=objc -func (cc _ColorClass) WindowBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("windowBackgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529883-magentacolor?language=objc +func (cc _ColorClass) MagentaColor() Color { + rv := objc.Call[Color](cc, objc.Sel("magentaColor")) return rv } -// The color to use for the window background. [Full Topic] +// Returns a color object whose RGB value is 1.0, 0.0, 1.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528630-windowbackgroundcolor?language=objc -func Color_WindowBackgroundColor() Color { - return ColorClass.WindowBackgroundColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529883-magentacolor?language=objc +func Color_MagentaColor() Color { + return ColorClass.MagentaColor() } -// The type of the color object. [Full Topic] +// The color to use for the face of a selected control—that is, a control that has been clicked or is being dragged. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2880315-type?language=objc -func (c_ Color) Type() ColorType { - rv := objc.Call[ColorType](c_, objc.Sel("type")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526796-selectedcontrolcolor?language=objc +func (cc _ColorClass) SelectedControlColor() Color { + rv := objc.Call[Color](cc, objc.Sel("selectedControlColor")) return rv } -// The name of the color. [Full Topic] +// The color to use for the face of a selected control—that is, a control that has been clicked or is being dragged. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528278-colornamecomponent?language=objc -func (c_ Color) ColorNameComponent() ColorName { - rv := objc.Call[ColorName](c_, objc.Sel("colorNameComponent")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526796-selectedcontrolcolor?language=objc +func Color_SelectedControlColor() Color { + return ColorClass.SelectedControlColor() } -// Returns a color object whose grayscale value is 1/3 and whose alpha value is 1.0. [Full Topic] +// The black component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533739-darkgraycolor?language=objc -func (cc _ColorClass) DarkGrayColor() Color { - rv := objc.Call[Color](cc, objc.Sel("darkGrayColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526883-blackcomponent?language=objc +func (c_ Color) BlackComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("blackComponent")) return rv } -// Returns a color object whose grayscale value is 1/3 and whose alpha value is 1.0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533739-darkgraycolor?language=objc -func Color_DarkGrayColor() Color { - return ColorClass.DarkGrayColor() -} - -// Returns a color object whose RGB value is 1.0, 0.0, 1.0 and whose alpha value is 1.0. [Full Topic] +// The localized version of the color name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529883-magentacolor?language=objc -func (cc _ColorClass) MagentaColor() Color { - rv := objc.Call[Color](cc, objc.Sel("magentaColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527286-localizedcolornamecomponent?language=objc +func (c_ Color) LocalizedColorNameComponent() string { + rv := objc.Call[string](c_, objc.Sel("localizedColorNameComponent")) return rv } -// Returns a color object whose RGB value is 1.0, 0.0, 1.0 and whose alpha value is 1.0. [Full Topic] +// The yellow component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529883-magentacolor?language=objc -func Color_MagentaColor() Color { - return ColorClass.MagentaColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531965-yellowcomponent?language=objc +func (c_ Color) YellowComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("yellowComponent")) + return rv } -// The hue component value of the color. [Full Topic] +// The current system control tint color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531780-huecomponent?language=objc -func (c_ Color) HueComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("hueComponent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526377-currentcontroltint?language=objc +func (cc _ColorClass) CurrentControlTint() ControlTint { + rv := objc.Call[ControlTint](cc, objc.Sel("currentControlTint")) return rv } -// The number of components in the color. [Full Topic] +// The current system control tint color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531308-numberofcomponents?language=objc -func (c_ Color) NumberOfComponents() int { - rv := objc.Call[int](c_, objc.Sel("numberOfComponents")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526377-currentcontroltint?language=objc +func Color_CurrentControlTint() ControlTint { + return ColorClass.CurrentControlTint() } -// Returns a color object whose grayscale value is 2/3 and whose alpha value is 1.0. [Full Topic] +// The color to use for the window background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535184-lightgraycolor?language=objc -func (cc _ColorClass) LightGrayColor() Color { - rv := objc.Call[Color](cc, objc.Sel("lightGrayColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528630-windowbackgroundcolor?language=objc +func (cc _ColorClass) WindowBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("windowBackgroundColor")) return rv } -// Returns a color object whose grayscale value is 2/3 and whose alpha value is 1.0. [Full Topic] +// The color to use for the window background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535184-lightgraycolor?language=objc -func Color_LightGrayColor() Color { - return ColorClass.LightGrayColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528630-windowbackgroundcolor?language=objc +func Color_WindowBackgroundColor() Color { + return ColorClass.WindowBackgroundColor() } -// The white component value of the color. [Full Topic] +// The pattern image used to paint the target area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534051-whitecomponent?language=objc -func (c_ Color) WhiteComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("whiteComponent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531572-patternimage?language=objc +func (c_ Color) PatternImage() Image { + rv := objc.Call[Image](c_, objc.Sel("patternImage")) return rv } -// The color to use for text in a selected control—that is, a control being clicked or dragged. [Full Topic] +// The color to use as a virtual light source on the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535591-selectedcontroltextcolor?language=objc -func (cc _ColorClass) SelectedControlTextColor() Color { - rv := objc.Call[Color](cc, objc.Sel("selectedControlTextColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527697-highlightcolor?language=objc +func (cc _ColorClass) HighlightColor() Color { + rv := objc.Call[Color](cc, objc.Sel("highlightColor")) return rv } -// The color to use for text in a selected control—that is, a control being clicked or dragged. [Full Topic] +// The color to use as a virtual light source on the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535591-selectedcontroltextcolor?language=objc -func Color_SelectedControlTextColor() Color { - return ColorClass.SelectedControlTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527697-highlightcolor?language=objc +func Color_HighlightColor() Color { + return ColorClass.HighlightColor() } -// Returns a color object for purple that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The secondary color to use for text labels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879259-systempurplecolor?language=objc -func (cc _ColorClass) SystemPurpleColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemPurpleColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533254-secondarylabelcolor?language=objc +func (cc _ColorClass) SecondaryLabelColor() Color { + rv := objc.Call[Color](cc, objc.Sel("secondaryLabelColor")) return rv } -// Returns a color object for purple that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The secondary color to use for text labels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879259-systempurplecolor?language=objc -func Color_SystemPurpleColor() Color { - return ColorClass.SystemPurpleColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533254-secondarylabelcolor?language=objc +func Color_SecondaryLabelColor() Color { + return ColorClass.SecondaryLabelColor() } -// The brightness component value of the color. [Full Topic] +// The hue component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529355-brightnesscomponent?language=objc -func (c_ Color) BrightnessComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("brightnessComponent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531780-huecomponent?language=objc +func (c_ Color) HueComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("hueComponent")) return rv } -// The color to use for placeholder text in controls or text views. [Full Topic] +// The color to use for text in a selected control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998829-placeholdertextcolor?language=objc -func (cc _ColorClass) PlaceholderTextColor() Color { - rv := objc.Call[Color](cc, objc.Sel("placeholderTextColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527413-alternateselectedcontroltextcolo?language=objc +func (cc _ColorClass) AlternateSelectedControlTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("alternateSelectedControlTextColor")) return rv } -// The color to use for placeholder text in controls or text views. [Full Topic] +// The color to use for text in a selected control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998829-placeholdertextcolor?language=objc -func Color_PlaceholderTextColor() Color { - return ColorClass.PlaceholderTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527413-alternateselectedcontroltextcolo?language=objc +func Color_AlternateSelectedControlTextColor() Color { + return ColorClass.AlternateSelectedControlTextColor() } -// The color to use for text. [Full Topic] +// The patterned color to use for the background of a scrubber control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527025-textcolor?language=objc -func (cc _ColorClass) TextColor() Color { - rv := objc.Call[Color](cc, objc.Sel("textColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2646931-scrubbertexturedbackgroundcolor?language=objc +func (cc _ColorClass) ScrubberTexturedBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("scrubberTexturedBackgroundColor")) return rv } -// The color to use for text. [Full Topic] +// The patterned color to use for the background of a scrubber control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527025-textcolor?language=objc -func Color_TextColor() Color { - return ColorClass.TextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2646931-scrubbertexturedbackgroundcolor?language=objc +func Color_ScrubberTexturedBackgroundColor() Color { + return ColorClass.ScrubberTexturedBackgroundColor() } // Returns a color object whose grayscale value is 0.0 and whose alpha value is 1.0. [Full Topic] @@ -764,110 +763,87 @@ func Color_BlackColor() Color { return ColorClass.BlackColor() } -// Returns a color object for brown that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The name of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879266-systembrowncolor?language=objc -func (cc _ColorClass) SystemBrownColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemBrownColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528278-colornamecomponent?language=objc +func (c_ Color) ColorNameComponent() ColorName { + rv := objc.Call[ColorName](c_, objc.Sel("colorNameComponent")) return rv } -// Returns a color object for brown that automatically adapts to vibrancy and accessibility settings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879266-systembrowncolor?language=objc -func Color_SystemBrownColor() Color { - return ColorClass.SystemBrownColor() -} - -// Returns a color object for blue that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The highlight color to use for the bubble that shows inline search result values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879260-systembluecolor?language=objc -func (cc _ColorClass) SystemBlueColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemBlueColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998827-findhighlightcolor?language=objc +func (cc _ColorClass) FindHighlightColor() Color { + rv := objc.Call[Color](cc, objc.Sel("findHighlightColor")) return rv } -// Returns a color object for blue that automatically adapts to vibrancy and accessibility settings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879260-systembluecolor?language=objc -func Color_SystemBlueColor() Color { - return ColorClass.SystemBlueColor() -} - -// The alpha (opacity) component value of the color. [Full Topic] +// The highlight color to use for the bubble that shows inline search result values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532504-alphacomponent?language=objc -func (c_ Color) AlphaComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("alphaComponent")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998827-findhighlightcolor?language=objc +func Color_FindHighlightColor() Color { + return ColorClass.FindHighlightColor() } -// The tertiary color to use for text labels. [Full Topic] +// The color to use for selected text in an unemphasized context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532376-tertiarylabelcolor?language=objc -func (cc _ColorClass) TertiaryLabelColor() Color { - rv := objc.Call[Color](cc, objc.Sel("tertiaryLabelColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998834-unemphasizedselectedtextcolor?language=objc +func (cc _ColorClass) UnemphasizedSelectedTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("unemphasizedSelectedTextColor")) return rv } -// The tertiary color to use for text labels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532376-tertiarylabelcolor?language=objc -func Color_TertiaryLabelColor() Color { - return ColorClass.TertiaryLabelColor() -} - -// The black component value of the color. [Full Topic] +// The color to use for selected text in an unemphasized context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526883-blackcomponent?language=objc -func (c_ Color) BlackComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("blackComponent")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998834-unemphasizedselectedtextcolor?language=objc +func Color_UnemphasizedSelectedTextColor() Color { + return ColorClass.UnemphasizedSelectedTextColor() } -// Returns a color object for indigo that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// Returns a color object whose grayscale value is 0.5 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3174920-systemindigocolor?language=objc -func (cc _ColorClass) SystemIndigoColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemIndigoColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535307-graycolor?language=objc +func (cc _ColorClass) GrayColor() Color { + rv := objc.Call[Color](cc, objc.Sel("grayColor")) return rv } -// Returns a color object for indigo that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// Returns a color object whose grayscale value is 0.5 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3174920-systemindigocolor?language=objc -func Color_SystemIndigoColor() Color { - return ColorClass.SystemIndigoColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535307-graycolor?language=objc +func Color_GrayColor() Color { + return ColorClass.GrayColor() } -// The current system control tint color. [Full Topic] +// Returns a color object for pink that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526377-currentcontroltint?language=objc -func (cc _ColorClass) CurrentControlTint() ControlTint { - rv := objc.Call[ControlTint](cc, objc.Sel("currentControlTint")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879261-systempinkcolor?language=objc +func (cc _ColorClass) SystemPinkColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemPinkColor")) return rv } -// The current system control tint color. [Full Topic] +// Returns a color object for pink that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526377-currentcontroltint?language=objc -func Color_CurrentControlTint() ControlTint { - return ColorClass.CurrentControlTint() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879261-systempinkcolor?language=objc +func Color_SystemPinkColor() Color { + return ColorClass.SystemPinkColor() } -// Returns a color object whose RGB value is 0.0, 1.0, 0.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object for purple that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527433-greencolor?language=objc -func (cc _ColorClass) GreenColor() Color { - rv := objc.Call[Color](cc, objc.Sel("greenColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879259-systempurplecolor?language=objc +func (cc _ColorClass) SystemPurpleColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemPurpleColor")) return rv } -// Returns a color object whose RGB value is 0.0, 1.0, 0.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object for purple that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527433-greencolor?language=objc -func Color_GreenColor() Color { - return ColorClass.GreenColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879259-systempurplecolor?language=objc +func Color_SystemPurpleColor() Color { + return ColorClass.SystemPurpleColor() } // Returns a color object for green that automatically adapts to vibrancy and accessibility settings. [Full Topic] @@ -885,80 +861,49 @@ func Color_SystemGreenColor() Color { return ColorClass.SystemGreenColor() } -// Returns a color object for yellow that automatically adapts to vibrancy and accessibility settings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879267-systemyellowcolor?language=objc -func (cc _ColorClass) SystemYellowColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemYellowColor")) - return rv -} - -// Returns a color object for yellow that automatically adapts to vibrancy and accessibility settings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879267-systemyellowcolor?language=objc -func Color_SystemYellowColor() Color { - return ColorClass.SystemYellowColor() -} - -// The color to use for text in a window's frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524257-windowframetextcolor?language=objc -func (cc _ColorClass) WindowFrameTextColor() Color { - rv := objc.Call[Color](cc, objc.Sel("windowFrameTextColor")) - return rv -} - -// The color to use for text in a window's frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524257-windowframetextcolor?language=objc -func Color_WindowFrameTextColor() Color { - return ColorClass.WindowFrameTextColor() -} - -// The cyan component value of the color. [Full Topic] +// The color to use for placeholder text in controls or text views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528234-cyancomponent?language=objc -func (c_ Color) CyanComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("cyanComponent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998829-placeholdertextcolor?language=objc +func (cc _ColorClass) PlaceholderTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("placeholderTextColor")) return rv } -// The localized version of the catalog name containing the color. [Full Topic] +// The color to use for placeholder text in controls or text views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535351-localizedcatalognamecomponent?language=objc -func (c_ Color) LocalizedCatalogNameComponent() string { - rv := objc.Call[string](c_, objc.Sel("localizedCatalogNameComponent")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998829-placeholdertextcolor?language=objc +func Color_PlaceholderTextColor() Color { + return ColorClass.PlaceholderTextColor() } -// Returns a color object whose grayscale and alpha values are both 1.0. [Full Topic] +// The user's current accent color preference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526370-whitecolor?language=objc -func (cc _ColorClass) WhiteColor() Color { - rv := objc.Call[Color](cc, objc.Sel("whiteColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3000782-controlaccentcolor?language=objc +func (cc _ColorClass) ControlAccentColor() Color { + rv := objc.Call[Color](cc, objc.Sel("controlAccentColor")) return rv } -// Returns a color object whose grayscale and alpha values are both 1.0. [Full Topic] +// The user's current accent color preference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526370-whitecolor?language=objc -func Color_WhiteColor() Color { - return ColorClass.WhiteColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3000782-controlaccentcolor?language=objc +func Color_ControlAccentColor() Color { + return ColorClass.ControlAccentColor() } -// Returns a color object whose RGB value is 1.0, 1.0, 0.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object for yellow that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524796-yellowcolor?language=objc -func (cc _ColorClass) YellowColor() Color { - rv := objc.Call[Color](cc, objc.Sel("yellowColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879267-systemyellowcolor?language=objc +func (cc _ColorClass) SystemYellowColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemYellowColor")) return rv } -// Returns a color object whose RGB value is 1.0, 1.0, 0.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object for yellow that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524796-yellowcolor?language=objc -func Color_YellowColor() Color { - return ColorClass.YellowColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879267-systemyellowcolor?language=objc +func Color_SystemYellowColor() Color { + return ColorClass.SystemYellowColor() } // Returns a color object whose grayscale and alpha values are both 0.0. [Full Topic] @@ -976,80 +921,64 @@ func Color_ClearColor() Color { return ColorClass.ClearColor() } -// The localized version of the color name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527286-localizedcolornamecomponent?language=objc -func (c_ Color) LocalizedColorNameComponent() string { - rv := objc.Call[string](c_, objc.Sel("localizedColorNameComponent")) - return rv -} - -// The blue component value of the color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534229-bluecomponent?language=objc -func (c_ Color) BlueComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("blueComponent")) - return rv -} - -// The color to use for text in header cells in table views and outline views. [Full Topic] +// Returns a color object whose RGB value is 0.0, 1.0, 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531237-headertextcolor?language=objc -func (cc _ColorClass) HeaderTextColor() Color { - rv := objc.Call[Color](cc, objc.Sel("headerTextColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527433-greencolor?language=objc +func (cc _ColorClass) GreenColor() Color { + rv := objc.Call[Color](cc, objc.Sel("greenColor")) return rv } -// The color to use for text in header cells in table views and outline views. [Full Topic] +// Returns a color object whose RGB value is 0.0, 1.0, 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531237-headertextcolor?language=objc -func Color_HeaderTextColor() Color { - return ColorClass.HeaderTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527433-greencolor?language=objc +func Color_GreenColor() Color { + return ColorClass.GreenColor() } -// The color to use for the flat surfaces of a control. [Full Topic] +// The color to use for separators between different sections of content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524856-controlcolor?language=objc -func (cc _ColorClass) ControlColor() Color { - rv := objc.Call[Color](cc, objc.Sel("controlColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998831-separatorcolor?language=objc +func (cc _ColorClass) SeparatorColor() Color { + rv := objc.Call[Color](cc, objc.Sel("separatorColor")) return rv } -// The color to use for the flat surfaces of a control. [Full Topic] +// The color to use for separators between different sections of content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524856-controlcolor?language=objc -func Color_ControlColor() Color { - return ColorClass.ControlColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998831-separatorcolor?language=objc +func Color_SeparatorColor() Color { + return ColorClass.SeparatorColor() } -// Returns a color object whose grayscale value is 0.5 and whose alpha value is 1.0. [Full Topic] +// Returns a color object whose RGB value is 1.0, 1.0, 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535307-graycolor?language=objc -func (cc _ColorClass) GrayColor() Color { - rv := objc.Call[Color](cc, objc.Sel("grayColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524796-yellowcolor?language=objc +func (cc _ColorClass) YellowColor() Color { + rv := objc.Call[Color](cc, objc.Sel("yellowColor")) return rv } -// Returns a color object whose grayscale value is 0.5 and whose alpha value is 1.0. [Full Topic] +// Returns a color object whose RGB value is 1.0, 1.0, 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535307-graycolor?language=objc -func Color_GrayColor() Color { - return ColorClass.GrayColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524796-yellowcolor?language=objc +func Color_YellowColor() Color { + return ColorClass.YellowColor() } -// Returns a color object for teal that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The tertiary color to use for text labels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3174921-systemtealcolor?language=objc -func (cc _ColorClass) SystemTealColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemTealColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532376-tertiarylabelcolor?language=objc +func (cc _ColorClass) TertiaryLabelColor() Color { + rv := objc.Call[Color](cc, objc.Sel("tertiaryLabelColor")) return rv } -// Returns a color object for teal that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The tertiary color to use for text labels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3174921-systemtealcolor?language=objc -func Color_SystemTealColor() Color { - return ColorClass.SystemTealColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532376-tertiarylabelcolor?language=objc +func Color_TertiaryLabelColor() Color { + return ColorClass.TertiaryLabelColor() } // The color to use for text on disabled controls. [Full Topic] @@ -1067,208 +996,261 @@ func Color_DisabledControlTextColor() Color { return ColorClass.DisabledControlTextColor() } -// The quaternary color to use for text labels and separators. [Full Topic] +// Returns a color object whose RGB value is 0.5, 0.0, 0.5 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534635-quaternarylabelcolor?language=objc -func (cc _ColorClass) QuaternaryLabelColor() Color { - rv := objc.Call[Color](cc, objc.Sel("quaternaryLabelColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526713-purplecolor?language=objc +func (cc _ColorClass) PurpleColor() Color { + rv := objc.Call[Color](cc, objc.Sel("purpleColor")) return rv } -// The quaternary color to use for text labels and separators. [Full Topic] +// Returns a color object whose RGB value is 0.5, 0.0, 0.5 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534635-quaternarylabelcolor?language=objc -func Color_QuaternaryLabelColor() Color { - return ColorClass.QuaternaryLabelColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526713-purplecolor?language=objc +func Color_PurpleColor() Color { + return ColorClass.PurpleColor() } -// The color to use for the text in menu items. [Full Topic] +// The red component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526658-selectedmenuitemtextcolor?language=objc -func (cc _ColorClass) SelectedMenuItemTextColor() Color { - rv := objc.Call[Color](cc, objc.Sel("selectedMenuItemTextColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1530483-redcomponent?language=objc +func (c_ Color) RedComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("redComponent")) return rv } -// The color to use for the text in menu items. [Full Topic] +// Returns a color object whose RGB value is 0.6, 0.4, 0.2 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526658-selectedmenuitemtextcolor?language=objc -func Color_SelectedMenuItemTextColor() Color { - return ColorClass.SelectedMenuItemTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534013-browncolor?language=objc +func (cc _ColorClass) BrownColor() Color { + rv := objc.Call[Color](cc, objc.Sel("brownColor")) + return rv } -// The color to use as a virtual light source on the screen. [Full Topic] +// Returns a color object whose RGB value is 0.6, 0.4, 0.2 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527697-highlightcolor?language=objc -func (cc _ColorClass) HighlightColor() Color { - rv := objc.Call[Color](cc, objc.Sel("highlightColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534013-browncolor?language=objc +func Color_BrownColor() Color { + return ColorClass.BrownColor() +} + +// The color to use for text in header cells in table views and outline views. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531237-headertextcolor?language=objc +func (cc _ColorClass) HeaderTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("headerTextColor")) return rv } -// The color to use as a virtual light source on the screen. [Full Topic] +// The color to use for text in header cells in table views and outline views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527697-highlightcolor?language=objc -func Color_HighlightColor() Color { - return ColorClass.HighlightColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531237-headertextcolor?language=objc +func Color_HeaderTextColor() Color { + return ColorClass.HeaderTextColor() } -// The red component value of the color. [Full Topic] +// The color to use for selected and unemphasized content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1530483-redcomponent?language=objc -func (c_ Color) RedComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("redComponent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998832-unemphasizedselectedcontentbackg?language=objc +func (cc _ColorClass) UnemphasizedSelectedContentBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("unemphasizedSelectedContentBackgroundColor")) return rv } -// Returns a color object for mint that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use for selected and unemphasized content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3816006-systemmintcolor?language=objc -func (cc _ColorClass) SystemMintColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemMintColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998832-unemphasizedselectedcontentbackg?language=objc +func Color_UnemphasizedSelectedContentBackgroundColor() Color { + return ColorClass.UnemphasizedSelectedContentBackgroundColor() +} + +// Returns a color object whose grayscale value is 1/3 and whose alpha value is 1.0. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533739-darkgraycolor?language=objc +func (cc _ColorClass) DarkGrayColor() Color { + rv := objc.Call[Color](cc, objc.Sel("darkGrayColor")) return rv } -// Returns a color object for mint that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// Returns a color object whose grayscale value is 1/3 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3816006-systemmintcolor?language=objc -func Color_SystemMintColor() Color { - return ColorClass.SystemMintColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533739-darkgraycolor?language=objc +func Color_DarkGrayColor() Color { + return ColorClass.DarkGrayColor() } -// The highlight color to use for the bubble that shows inline search result values. [Full Topic] +// Returns a color object for gray that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998827-findhighlightcolor?language=objc -func (cc _ColorClass) FindHighlightColor() Color { - rv := objc.Call[Color](cc, objc.Sel("findHighlightColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879265-systemgraycolor?language=objc +func (cc _ColorClass) SystemGrayColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemGrayColor")) return rv } -// The highlight color to use for the bubble that shows inline search result values. [Full Topic] +// Returns a color object for gray that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998827-findhighlightcolor?language=objc -func Color_FindHighlightColor() Color { - return ColorClass.FindHighlightColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879265-systemgraycolor?language=objc +func Color_SystemGrayColor() Color { + return ColorClass.SystemGrayColor() } -// The secondary color to use for text labels. [Full Topic] +// The color space associated with the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533254-secondarylabelcolor?language=objc -func (cc _ColorClass) SecondaryLabelColor() Color { - rv := objc.Call[Color](cc, objc.Sel("secondaryLabelColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526733-colorspace?language=objc +func (c_ Color) ColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](c_, objc.Sel("colorSpace")) return rv } -// The secondary color to use for text labels. [Full Topic] +// Returns a color object for brown that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533254-secondarylabelcolor?language=objc -func Color_SecondaryLabelColor() Color { - return ColorClass.SecondaryLabelColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879266-systembrowncolor?language=objc +func (cc _ColorClass) SystemBrownColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemBrownColor")) + return rv } -// The patterned color to use for the background of a scrubber control. [Full Topic] +// Returns a color object for brown that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2646931-scrubbertexturedbackgroundcolor?language=objc -func (cc _ColorClass) ScrubberTexturedBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("scrubberTexturedBackgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879266-systembrowncolor?language=objc +func Color_SystemBrownColor() Color { + return ColorClass.SystemBrownColor() +} + +// The white component value of the color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534051-whitecomponent?language=objc +func (c_ Color) WhiteComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("whiteComponent")) return rv } -// The patterned color to use for the background of a scrubber control. [Full Topic] +// The color to use for the text background in an unemphasized context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2646931-scrubbertexturedbackgroundcolor?language=objc -func Color_ScrubberTexturedBackgroundColor() Color { - return ColorClass.ScrubberTexturedBackgroundColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998833-unemphasizedselectedtextbackgrou?language=objc +func (cc _ColorClass) UnemphasizedSelectedTextBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("unemphasizedSelectedTextBackgroundColor")) + return rv } -// The color to use for text in a selected control. [Full Topic] +// The color to use for the text background in an unemphasized context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527413-alternateselectedcontroltextcolo?language=objc -func (cc _ColorClass) AlternateSelectedControlTextColor() Color { - rv := objc.Call[Color](cc, objc.Sel("alternateSelectedControlTextColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998833-unemphasizedselectedtextbackgrou?language=objc +func Color_UnemphasizedSelectedTextBackgroundColor() Color { + return ColorClass.UnemphasizedSelectedTextBackgroundColor() +} + +// Returns a color object for red that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879262-systemredcolor?language=objc +func (cc _ColorClass) SystemRedColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemRedColor")) return rv } -// The color to use for text in a selected control. [Full Topic] +// Returns a color object for red that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879262-systemredcolor?language=objc +func Color_SystemRedColor() Color { + return ColorClass.SystemRedColor() +} + +// Returns a color object whose RGB value is 1.0, 0.0, 0.0 and whose alpha value is 1.0. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525063-redcolor?language=objc +func (cc _ColorClass) RedColor() Color { + rv := objc.Call[Color](cc, objc.Sel("redColor")) + return rv +} + +// Returns a color object whose RGB value is 1.0, 0.0, 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527413-alternateselectedcontroltextcolo?language=objc -func Color_AlternateSelectedControlTextColor() Color { - return ColorClass.AlternateSelectedControlTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525063-redcolor?language=objc +func Color_RedColor() Color { + return ColorClass.RedColor() } -// The color to use for the background area behind text. [Full Topic] +// The color to use for text in a window's frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535446-textbackgroundcolor?language=objc -func (cc _ColorClass) TextBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("textBackgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524257-windowframetextcolor?language=objc +func (cc _ColorClass) WindowFrameTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("windowFrameTextColor")) return rv } -// The color to use for the background area behind text. [Full Topic] +// The color to use for text in a window's frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535446-textbackgroundcolor?language=objc -func Color_TextBackgroundColor() Color { - return ColorClass.TextBackgroundColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524257-windowframetextcolor?language=objc +func Color_WindowFrameTextColor() Color { + return ColorClass.WindowFrameTextColor() } -// The catalog containing the color’s name. [Full Topic] +// The brightness component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535443-catalognamecomponent?language=objc -func (c_ Color) CatalogNameComponent() ColorListName { - rv := objc.Call[ColorListName](c_, objc.Sel("catalogNameComponent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529355-brightnesscomponent?language=objc +func (c_ Color) BrightnessComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("brightnessComponent")) return rv } -// The color to use for separators between different sections of content. [Full Topic] +// The color to use for the background of selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998831-separatorcolor?language=objc -func (cc _ColorClass) SeparatorColor() Color { - rv := objc.Call[Color](cc, objc.Sel("separatorColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528136-selectedtextbackgroundcolor?language=objc +func (cc _ColorClass) SelectedTextBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("selectedTextBackgroundColor")) return rv } -// The color to use for separators between different sections of content. [Full Topic] +// The color to use for the background of selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998831-separatorcolor?language=objc -func Color_SeparatorColor() Color { - return ColorClass.SeparatorColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528136-selectedtextbackgroundcolor?language=objc +func Color_SelectedTextBackgroundColor() Color { + return ColorClass.SelectedTextBackgroundColor() } -// The pattern image used to paint the target area. [Full Topic] +// Returns a color object for teal that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531572-patternimage?language=objc -func (c_ Color) PatternImage() Image { - rv := objc.Call[Image](c_, objc.Sel("patternImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3174921-systemtealcolor?language=objc +func (cc _ColorClass) SystemTealColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemTealColor")) return rv } -// The colors to use for alternating content, typically found in table views and collection views. [Full Topic] +// Returns a color object for teal that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998825-alternatingcontentbackgroundcolo?language=objc -func (cc _ColorClass) AlternatingContentBackgroundColors() []Color { - rv := objc.Call[[]Color](cc, objc.Sel("alternatingContentBackgroundColors")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3174921-systemtealcolor?language=objc +func Color_SystemTealColor() Color { + return ColorClass.SystemTealColor() +} + +// Returns a color object whose RGB value is 0.0, 1.0, 1.0 and whose alpha value is 1.0. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529217-cyancolor?language=objc +func (cc _ColorClass) CyanColor() Color { + rv := objc.Call[Color](cc, objc.Sel("cyanColor")) return rv } -// The colors to use for alternating content, typically found in table views and collection views. [Full Topic] +// Returns a color object whose RGB value is 0.0, 1.0, 1.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998825-alternatingcontentbackgroundcolo?language=objc -func Color_AlternatingContentBackgroundColors() []Color { - return ColorClass.AlternatingContentBackgroundColors() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529217-cyancolor?language=objc +func Color_CyanColor() Color { + return ColorClass.CyanColor() } -// The color to use for virtual shadows cast by raised objects on the screen. [Full Topic] +// The quaternary color to use for text labels and separators. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525121-shadowcolor?language=objc -func (cc _ColorClass) ShadowColor() Color { - rv := objc.Call[Color](cc, objc.Sel("shadowColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534635-quaternarylabelcolor?language=objc +func (cc _ColorClass) QuaternaryLabelColor() Color { + rv := objc.Call[Color](cc, objc.Sel("quaternaryLabelColor")) return rv } -// The color to use for virtual shadows cast by raised objects on the screen. [Full Topic] +// The quaternary color to use for text labels and separators. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525121-shadowcolor?language=objc -func Color_ShadowColor() Color { - return ColorClass.ShadowColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534635-quaternarylabelcolor?language=objc +func Color_QuaternaryLabelColor() Color { + return ColorClass.QuaternaryLabelColor() } // The saturation component value of the color. [Full Topic] @@ -1279,117 +1261,102 @@ func (c_ Color) SaturationComponent() float64 { return rv } -// Returns a color object whose RGB value is 0.6, 0.4, 0.2 and whose alpha value is 1.0. [Full Topic] +// The color to use for selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534013-browncolor?language=objc -func (cc _ColorClass) BrownColor() Color { - rv := objc.Call[Color](cc, objc.Sel("brownColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528605-selectedtextcolor?language=objc +func (cc _ColorClass) SelectedTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("selectedTextColor")) return rv } -// Returns a color object whose RGB value is 0.6, 0.4, 0.2 and whose alpha value is 1.0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534013-browncolor?language=objc -func Color_BrownColor() Color { - return ColorClass.BrownColor() -} - -// The color space associated with the color. [Full Topic] +// The color to use for selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526733-colorspace?language=objc -func (c_ Color) ColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](c_, objc.Sel("colorSpace")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528605-selectedtextcolor?language=objc +func Color_SelectedTextColor() Color { + return ColorClass.SelectedTextColor() } -// The color to use for links. [Full Topic] +// The magenta component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998828-linkcolor?language=objc -func (cc _ColorClass) LinkColor() Color { - rv := objc.Call[Color](cc, objc.Sel("linkColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535560-magentacomponent?language=objc +func (c_ Color) MagentaComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("magentaComponent")) return rv } -// The color to use for links. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998828-linkcolor?language=objc -func Color_LinkColor() Color { - return ColorClass.LinkColor() -} - -// Returns a color object whose RGB value is 1.0, 0.0, 0.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object whose RGB value is 0.0, 0.0, 1.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525063-redcolor?language=objc -func (cc _ColorClass) RedColor() Color { - rv := objc.Call[Color](cc, objc.Sel("redColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535421-bluecolor?language=objc +func (cc _ColorClass) BlueColor() Color { + rv := objc.Call[Color](cc, objc.Sel("blueColor")) return rv } -// Returns a color object whose RGB value is 1.0, 0.0, 0.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object whose RGB value is 0.0, 0.0, 1.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525063-redcolor?language=objc -func Color_RedColor() Color { - return ColorClass.RedColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535421-bluecolor?language=objc +func Color_BlueColor() Color { + return ColorClass.BlueColor() } -// The color to use for the background of selected and emphasized content. [Full Topic] +// The color to use for text in a selected control—that is, a control being clicked or dragged. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998830-selectedcontentbackgroundcolor?language=objc -func (cc _ColorClass) SelectedContentBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("selectedContentBackgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535591-selectedcontroltextcolor?language=objc +func (cc _ColorClass) SelectedControlTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("selectedControlTextColor")) return rv } -// The color to use for the background of selected and emphasized content. [Full Topic] +// The color to use for text in a selected control—that is, a control being clicked or dragged. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998830-selectedcontentbackgroundcolor?language=objc -func Color_SelectedContentBackgroundColor() Color { - return ColorClass.SelectedContentBackgroundColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535591-selectedcontroltextcolor?language=objc +func Color_SelectedControlTextColor() Color { + return ColorClass.SelectedControlTextColor() } -// Returns a color object for gray that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use for the background area behind text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879265-systemgraycolor?language=objc -func (cc _ColorClass) SystemGrayColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemGrayColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535446-textbackgroundcolor?language=objc +func (cc _ColorClass) TextBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("textBackgroundColor")) return rv } -// Returns a color object for gray that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use for the background area behind text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879265-systemgraycolor?language=objc -func Color_SystemGrayColor() Color { - return ColorClass.SystemGrayColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535446-textbackgroundcolor?language=objc +func Color_TextBackgroundColor() Color { + return ColorClass.TextBackgroundColor() } -// The color to use for selected text. [Full Topic] +// The color to use for text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528605-selectedtextcolor?language=objc -func (cc _ColorClass) SelectedTextColor() Color { - rv := objc.Call[Color](cc, objc.Sel("selectedTextColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527025-textcolor?language=objc +func (cc _ColorClass) TextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("textColor")) return rv } -// The color to use for selected text. [Full Topic] +// The color to use for text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528605-selectedtextcolor?language=objc -func Color_SelectedTextColor() Color { - return ColorClass.SelectedTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527025-textcolor?language=objc +func Color_TextColor() Color { + return ColorClass.TextColor() } -// Returns a color object for cyan that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use for virtual shadows cast by raised objects on the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3816005-systemcyancolor?language=objc -func (cc _ColorClass) SystemCyanColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemCyanColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525121-shadowcolor?language=objc +func (cc _ColorClass) ShadowColor() Color { + rv := objc.Call[Color](cc, objc.Sel("shadowColor")) return rv } -// Returns a color object for cyan that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use for virtual shadows cast by raised objects on the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3816005-systemcyancolor?language=objc -func Color_SystemCyanColor() Color { - return ColorClass.SystemCyanColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525121-shadowcolor?language=objc +func Color_ShadowColor() Color { + return ColorClass.ShadowColor() } // The color to use for text on enabled controls. [Full Topic] @@ -1407,72 +1374,74 @@ func Color_ControlTextColor() Color { return ColorClass.ControlTextColor() } -// Returns a color object for pink that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// Returns a color object for mint that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879261-systempinkcolor?language=objc -func (cc _ColorClass) SystemPinkColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemPinkColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3816006-systemmintcolor?language=objc +func (cc _ColorClass) SystemMintColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemMintColor")) return rv } -// Returns a color object for pink that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// Returns a color object for mint that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879261-systempinkcolor?language=objc -func Color_SystemPinkColor() Color { - return ColorClass.SystemPinkColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3816006-systemmintcolor?language=objc +func Color_SystemMintColor() Color { + return ColorClass.SystemMintColor() } -// The magenta component value of the color. [Full Topic] +// The color to use for links. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535560-magentacomponent?language=objc -func (c_ Color) MagentaComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("magentaComponent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998828-linkcolor?language=objc +func (cc _ColorClass) LinkColor() Color { + rv := objc.Call[Color](cc, objc.Sel("linkColor")) return rv } -// The color to use for the background of large controls, such as scroll views or table views. [Full Topic] +// The color to use for links. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531948-controlbackgroundcolor?language=objc -func (cc _ColorClass) ControlBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("controlBackgroundColor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998828-linkcolor?language=objc +func Color_LinkColor() Color { + return ColorClass.LinkColor() } -// The color to use for the background of large controls, such as scroll views or table views. [Full Topic] +// The type of the color object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531948-controlbackgroundcolor?language=objc -func Color_ControlBackgroundColor() Color { - return ColorClass.ControlBackgroundColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2880315-type?language=objc +func (c_ Color) Type() ColorType { + rv := objc.Call[ColorType](c_, objc.Sel("type")) + return rv } -// The primary color to use for text labels. [Full Topic] +// The blue component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534657-labelcolor?language=objc -func (cc _ColorClass) LabelColor() Color { - rv := objc.Call[Color](cc, objc.Sel("labelColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534229-bluecomponent?language=objc +func (c_ Color) BlueComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("blueComponent")) return rv } -// The primary color to use for text labels. [Full Topic] +// The localized version of the catalog name containing the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534657-labelcolor?language=objc -func Color_LabelColor() Color { - return ColorClass.LabelColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535351-localizedcatalognamecomponent?language=objc +func (c_ Color) LocalizedCatalogNameComponent() string { + rv := objc.Call[string](c_, objc.Sel("localizedCatalogNameComponent")) + return rv } -// Returns a color object for red that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The number of components in the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879262-systemredcolor?language=objc -func (cc _ColorClass) SystemRedColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemRedColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531308-numberofcomponents?language=objc +func (c_ Color) NumberOfComponents() int { + rv := objc.Call[int](c_, objc.Sel("numberOfComponents")) return rv } -// Returns a color object for red that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The alpha (opacity) component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879262-systemredcolor?language=objc -func Color_SystemRedColor() Color { - return ColorClass.SystemRedColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532504-alphacomponent?language=objc +func (c_ Color) AlphaComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("alphaComponent")) + return rv } // The color to use for the optional gridlines, such as those in a table view. [Full Topic] @@ -1490,205 +1459,206 @@ func Color_GridColor() Color { return ColorClass.GridColor() } -// Returns a color object for orange that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use in the area beneath your window's views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879263-systemorangecolor?language=objc -func (cc _ColorClass) SystemOrangeColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemOrangeColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534707-underpagebackgroundcolor?language=objc +func (cc _ColorClass) UnderPageBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("underPageBackgroundColor")) return rv } -// Returns a color object for orange that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use in the area beneath your window's views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879263-systemorangecolor?language=objc -func Color_SystemOrangeColor() Color { - return ColorClass.SystemOrangeColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534707-underpagebackgroundcolor?language=objc +func Color_UnderPageBackgroundColor() Color { + return ColorClass.UnderPageBackgroundColor() } -// The color to use for selected text in an unemphasized context. [Full Topic] +// Returns a color object for indigo that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998834-unemphasizedselectedtextcolor?language=objc -func (cc _ColorClass) UnemphasizedSelectedTextColor() Color { - rv := objc.Call[Color](cc, objc.Sel("unemphasizedSelectedTextColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3174920-systemindigocolor?language=objc +func (cc _ColorClass) SystemIndigoColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemIndigoColor")) return rv } -// The color to use for selected text in an unemphasized context. [Full Topic] +// Returns a color object for indigo that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998834-unemphasizedselectedtextcolor?language=objc -func Color_UnemphasizedSelectedTextColor() Color { - return ColorClass.UnemphasizedSelectedTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3174920-systemindigocolor?language=objc +func Color_SystemIndigoColor() Color { + return ColorClass.SystemIndigoColor() } -// Returns a color object whose RGB value is 0.0, 1.0, 1.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object for cyan that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529217-cyancolor?language=objc -func (cc _ColorClass) CyanColor() Color { - rv := objc.Call[Color](cc, objc.Sel("cyanColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3816005-systemcyancolor?language=objc +func (cc _ColorClass) SystemCyanColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemCyanColor")) return rv } -// Returns a color object whose RGB value is 0.0, 1.0, 1.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object for cyan that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529217-cyancolor?language=objc -func Color_CyanColor() Color { - return ColorClass.CyanColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3816005-systemcyancolor?language=objc +func Color_SystemCyanColor() Color { + return ColorClass.SystemCyanColor() } -// Returns a color object whose RGB value is 0.0, 0.0, 1.0 and whose alpha value is 1.0. [Full Topic] +// The color to use for the background of selected and emphasized content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535421-bluecolor?language=objc -func (cc _ColorClass) BlueColor() Color { - rv := objc.Call[Color](cc, objc.Sel("blueColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998830-selectedcontentbackgroundcolor?language=objc +func (cc _ColorClass) SelectedContentBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("selectedContentBackgroundColor")) return rv } -// Returns a color object whose RGB value is 0.0, 0.0, 1.0 and whose alpha value is 1.0. [Full Topic] +// The color to use for the background of selected and emphasized content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535421-bluecolor?language=objc -func Color_BlueColor() Color { - return ColorClass.BlueColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998830-selectedcontentbackgroundcolor?language=objc +func Color_SelectedContentBackgroundColor() Color { + return ColorClass.SelectedContentBackgroundColor() } -// The color to use for the background of selected text. [Full Topic] +// The color to use for the text in menu items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528136-selectedtextbackgroundcolor?language=objc -func (cc _ColorClass) SelectedTextBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("selectedTextBackgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526658-selectedmenuitemtextcolor?language=objc +func (cc _ColorClass) SelectedMenuItemTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("selectedMenuItemTextColor")) return rv } -// The color to use for the background of selected text. [Full Topic] +// The color to use for the text in menu items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528136-selectedtextbackgroundcolor?language=objc -func Color_SelectedTextBackgroundColor() Color { - return ColorClass.SelectedTextBackgroundColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526658-selectedmenuitemtextcolor?language=objc +func Color_SelectedMenuItemTextColor() Color { + return ColorClass.SelectedMenuItemTextColor() } -// The color to use for the keyboard focus ring around controls. [Full Topic] +// Returns a color object whose RGB value is 1.0, 0.5, 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532031-keyboardfocusindicatorcolor?language=objc -func (cc _ColorClass) KeyboardFocusIndicatorColor() Color { - rv := objc.Call[Color](cc, objc.Sel("keyboardFocusIndicatorColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526691-orangecolor?language=objc +func (cc _ColorClass) OrangeColor() Color { + rv := objc.Call[Color](cc, objc.Sel("orangeColor")) return rv } -// The color to use for the keyboard focus ring around controls. [Full Topic] +// Returns a color object whose RGB value is 1.0, 0.5, 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532031-keyboardfocusindicatorcolor?language=objc -func Color_KeyboardFocusIndicatorColor() Color { - return ColorClass.KeyboardFocusIndicatorColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526691-orangecolor?language=objc +func Color_OrangeColor() Color { + return ColorClass.OrangeColor() } -// Returns a color object whose RGB value is 0.5, 0.0, 0.5 and whose alpha value is 1.0. [Full Topic] +// The cyan component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526713-purplecolor?language=objc -func (cc _ColorClass) PurpleColor() Color { - rv := objc.Call[Color](cc, objc.Sel("purpleColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1528234-cyancomponent?language=objc +func (c_ Color) CyanComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("cyanComponent")) return rv } -// Returns a color object whose RGB value is 0.5, 0.0, 0.5 and whose alpha value is 1.0. [Full Topic] +// The colors to use for alternating content, typically found in table views and collection views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526713-purplecolor?language=objc -func Color_PurpleColor() Color { - return ColorClass.PurpleColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998825-alternatingcontentbackgroundcolo?language=objc +func (cc _ColorClass) AlternatingContentBackgroundColors() []Color { + rv := objc.Call[[]Color](cc, objc.Sel("alternatingContentBackgroundColors")) + return rv } -// The color to use for the text background in an unemphasized context. [Full Topic] +// The colors to use for alternating content, typically found in table views and collection views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998833-unemphasizedselectedtextbackgrou?language=objc -func (cc _ColorClass) UnemphasizedSelectedTextBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("unemphasizedSelectedTextBackgroundColor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998825-alternatingcontentbackgroundcolo?language=objc +func Color_AlternatingContentBackgroundColors() []Color { + return ColorClass.AlternatingContentBackgroundColors() } -// The color to use for the text background in an unemphasized context. [Full Topic] +// Returns a color object for orange that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998833-unemphasizedselectedtextbackgrou?language=objc -func Color_UnemphasizedSelectedTextBackgroundColor() Color { - return ColorClass.UnemphasizedSelectedTextBackgroundColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879263-systemorangecolor?language=objc +func (cc _ColorClass) SystemOrangeColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemOrangeColor")) + return rv } -// The color to use for the face of a selected control—that is, a control that has been clicked or is being dragged. [Full Topic] +// Returns a color object for orange that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526796-selectedcontrolcolor?language=objc -func (cc _ColorClass) SelectedControlColor() Color { - rv := objc.Call[Color](cc, objc.Sel("selectedControlColor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879263-systemorangecolor?language=objc +func Color_SystemOrangeColor() Color { + return ColorClass.SystemOrangeColor() } -// The color to use for the face of a selected control—that is, a control that has been clicked or is being dragged. [Full Topic] +// The catalog containing the color’s name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526796-selectedcontrolcolor?language=objc -func Color_SelectedControlColor() Color { - return ColorClass.SelectedControlColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535443-catalognamecomponent?language=objc +func (c_ Color) CatalogNameComponent() ColorListName { + rv := objc.Call[ColorListName](c_, objc.Sel("catalogNameComponent")) + return rv } -// Returns a color object whose RGB value is 1.0, 0.5, 0.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object for blue that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526691-orangecolor?language=objc -func (cc _ColorClass) OrangeColor() Color { - rv := objc.Call[Color](cc, objc.Sel("orangeColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879260-systembluecolor?language=objc +func (cc _ColorClass) SystemBlueColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemBlueColor")) return rv } -// Returns a color object whose RGB value is 1.0, 0.5, 0.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object for blue that automatically adapts to vibrancy and accessibility settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526691-orangecolor?language=objc -func Color_OrangeColor() Color { - return ColorClass.OrangeColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879260-systembluecolor?language=objc +func Color_SystemBlueColor() Color { + return ColorClass.SystemBlueColor() } -// The color to use for selected and unemphasized content. [Full Topic] +// The primary color to use for text labels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998832-unemphasizedselectedcontentbackg?language=objc -func (cc _ColorClass) UnemphasizedSelectedContentBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("unemphasizedSelectedContentBackgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534657-labelcolor?language=objc +func (cc _ColorClass) LabelColor() Color { + rv := objc.Call[Color](cc, objc.Sel("labelColor")) return rv } -// The color to use for selected and unemphasized content. [Full Topic] +// The primary color to use for text labels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998832-unemphasizedselectedcontentbackg?language=objc -func Color_UnemphasizedSelectedContentBackgroundColor() Color { - return ColorClass.UnemphasizedSelectedContentBackgroundColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534657-labelcolor?language=objc +func Color_LabelColor() Color { + return ColorClass.LabelColor() } -// The color to use in the area beneath your window's views. [Full Topic] +// The color to use for the keyboard focus ring around controls. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534707-underpagebackgroundcolor?language=objc -func (cc _ColorClass) UnderPageBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("underPageBackgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532031-keyboardfocusindicatorcolor?language=objc +func (cc _ColorClass) KeyboardFocusIndicatorColor() Color { + rv := objc.Call[Color](cc, objc.Sel("keyboardFocusIndicatorColor")) return rv } -// The color to use in the area beneath your window's views. [Full Topic] +// The color to use for the keyboard focus ring around controls. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534707-underpagebackgroundcolor?language=objc -func Color_UnderPageBackgroundColor() Color { - return ColorClass.UnderPageBackgroundColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532031-keyboardfocusindicatorcolor?language=objc +func Color_KeyboardFocusIndicatorColor() Color { + return ColorClass.KeyboardFocusIndicatorColor() } -// The green component value of the color. [Full Topic] +// The color to use for the flat surfaces of a control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525935-greencomponent?language=objc -func (c_ Color) GreenComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("greenComponent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524856-controlcolor?language=objc +func (cc _ColorClass) ControlColor() Color { + rv := objc.Call[Color](cc, objc.Sel("controlColor")) return rv } -// The user's current accent color preference. [Full Topic] +// The color to use for the flat surfaces of a control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3000782-controlaccentcolor?language=objc -func (cc _ColorClass) ControlAccentColor() Color { - rv := objc.Call[Color](cc, objc.Sel("controlAccentColor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524856-controlcolor?language=objc +func Color_ControlColor() Color { + return ColorClass.ControlColor() } -// The user's current accent color preference. [Full Topic] +// The Core Graphics color object corresponding to the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3000782-controlaccentcolor?language=objc -func Color_ControlAccentColor() Color { - return ColorClass.ControlAccentColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527738-cgcolor?language=objc +func (c_ Color) CGColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](c_, objc.Sel("CGColor")) + return rv } diff --git a/macos/appkit/color_list.gen.go b/macos/appkit/color_list.gen.go index f6a1b6a6..bf5bafab 100644 --- a/macos/appkit/color_list.gen.go +++ b/macos/appkit/color_list.gen.go @@ -19,12 +19,12 @@ type _ColorListClass struct { // An interface definition for the [ColorList] class. type IColorList interface { objc.IObject - SetColorForKey(color IColor, key ColorName) RemoveFile() - ColorWithKey(key ColorName) Color - WriteToURLError(url foundation.IURL, errPtr unsafe.Pointer) bool InsertColorKeyAtIndex(color IColor, key ColorName, loc uint) RemoveColorWithKey(key ColorName) + ColorWithKey(key ColorName) Color + WriteToURLError(url foundation.IURL, errPtr unsafe.Pointer) bool + SetColorForKey(color IColor, key ColorName) IsEditable() bool Name() ColorListName AllKeys() []ColorName @@ -43,20 +43,6 @@ func ColorListFrom(ptr unsafe.Pointer) ColorList { } } -func (c_ ColorList) InitWithName(name ColorListName) ColorList { - rv := objc.Call[ColorList](c_, objc.Sel("initWithName:"), name) - return rv -} - -// Initializes and returns a color list, registering it under the specified name if it isn’t in use already. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522140-initwithname?language=objc -func NewColorListWithName(name ColorListName) ColorList { - instance := ColorListClass.Alloc().InitWithName(name) - instance.Autorelease() - return instance -} - func (c_ ColorList) InitWithNameFromFile(name ColorListName, path string) ColorList { rv := objc.Call[ColorList](c_, objc.Sel("initWithName:fromFile:"), name, path) return rv @@ -91,13 +77,6 @@ func (c_ ColorList) Init() ColorList { return rv } -// Associates the specified color object with the specified key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522130-setcolor?language=objc -func (c_ ColorList) SetColorForKey(color IColor, key ColorName) { - objc.Call[objc.Void](c_, objc.Sel("setColor:forKey:"), color, key) -} - // Removes the file from which the list was created, if the file is in a standard search path and owned by the user. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522132-removefile?language=objc @@ -105,22 +84,6 @@ func (c_ ColorList) RemoveFile() { objc.Call[objc.Void](c_, objc.Sel("removeFile")) } -// Returns the color object associated with the specified key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522143-colorwithkey?language=objc -func (c_ ColorList) ColorWithKey(key ColorName) Color { - rv := objc.Call[Color](c_, objc.Sel("colorWithKey:"), key) - return rv -} - -// Saves the color list to the file at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/2269695-writetourl?language=objc -func (c_ ColorList) WriteToURLError(url foundation.IURL, errPtr unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("writeToURL:error:"), url, errPtr) - return rv -} - // Inserts the specified color at the specified location in the color list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522137-insertcolor?language=objc @@ -150,28 +113,27 @@ func (c_ ColorList) RemoveColorWithKey(key ColorName) { objc.Call[objc.Void](c_, objc.Sel("removeColorWithKey:"), key) } -// A Boolean value that indicates whether the color list can be modified. [Full Topic] +// Returns the color object associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522125-editable?language=objc -func (c_ ColorList) IsEditable() bool { - rv := objc.Call[bool](c_, objc.Sel("isEditable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522143-colorwithkey?language=objc +func (c_ ColorList) ColorWithKey(key ColorName) Color { + rv := objc.Call[Color](c_, objc.Sel("colorWithKey:"), key) return rv } -// The name of the color list. [Full Topic] +// Saves the color list to the file at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522138-name?language=objc -func (c_ ColorList) Name() ColorListName { - rv := objc.Call[ColorListName](c_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/2269695-writetourl?language=objc +func (c_ ColorList) WriteToURLError(url foundation.IURL, errPtr unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("writeToURL:error:"), url, errPtr) return rv } -// An array of the keys by which the color objects are stored in the color list. [Full Topic] +// Associates the specified color object with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522141-allkeys?language=objc -func (c_ ColorList) AllKeys() []ColorName { - rv := objc.Call[[]ColorName](c_, objc.Sel("allKeys")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522130-setcolor?language=objc +func (c_ ColorList) SetColorForKey(color IColor, key ColorName) { + objc.Call[objc.Void](c_, objc.Sel("setColor:forKey:"), color, key) } // Returns an array of all color lists found in the standard color list directories. [Full Topic] @@ -188,3 +150,27 @@ func (cc _ColorListClass) AvailableColorLists() []ColorList { func ColorList_AvailableColorLists() []ColorList { return ColorListClass.AvailableColorLists() } + +// A Boolean value that indicates whether the color list can be modified. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522125-editable?language=objc +func (c_ ColorList) IsEditable() bool { + rv := objc.Call[bool](c_, objc.Sel("isEditable")) + return rv +} + +// The name of the color list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522138-name?language=objc +func (c_ ColorList) Name() ColorListName { + rv := objc.Call[ColorListName](c_, objc.Sel("name")) + return rv +} + +// An array of the keys by which the color objects are stored in the color list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/1522141-allkeys?language=objc +func (c_ ColorList) AllKeys() []ColorName { + rv := objc.Call[[]ColorName](c_, objc.Sel("allKeys")) + return rv +} diff --git a/macos/appkit/color_panel.gen.go b/macos/appkit/color_panel.gen.go index 52ff6f6e..bab065f8 100644 --- a/macos/appkit/color_panel.gen.go +++ b/macos/appkit/color_panel.gen.go @@ -19,21 +19,21 @@ type _ColorPanelClass struct { // An interface definition for the [ColorPanel] class. type IColorPanel interface { IPanel - SetAction(selector objc.Selector) - DetachColorList(colorList IColorList) AttachColorList(colorList IColorList) + DetachColorList(colorList IColorList) + SetAction(selector objc.Selector) SetTarget(target objc.IObject) - Mode() ColorPanelMode - SetMode(value ColorPanelMode) - AccessoryView() View - SetAccessoryView(value IView) + Color() Color + SetColor(value IColor) IsContinuous() bool SetContinuous(value bool) + AccessoryView() View + SetAccessoryView(value IView) + Alpha() float64 + Mode() ColorPanelMode + SetMode(value ColorPanelMode) ShowsAlpha() bool SetShowsAlpha(value bool) - Color() Color - SetColor(value IColor) - Alpha() float64 } // A standard user interface for selecting color in an app. [Full Topic] @@ -95,25 +95,11 @@ func NewColorPanelWithContentRectStyleMaskBackingDeferScreen(contentRect foundat return instance } -func (c_ ColorPanel) InitWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) ColorPanel { - rv := objc.Call[ColorPanel](c_, objc.Sel("initWithContentRect:styleMask:backing:defer:"), contentRect, style, backingStoreType, flag) - return rv -} - -// Initializes the window with the specified values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc -func NewColorPanelWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) ColorPanel { - instance := ColorPanelClass.Alloc().InitWithContentRectStyleMaskBackingDefer(contentRect, style, backingStoreType, flag) - instance.Autorelease() - return instance -} - -// Sets the color panel's action message. [Full Topic] +// Adds the list of NSColor objects specified to all the color pickers in the receiver that display color lists by invoking attachColorList: on all color pickers in the application. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1531244-setaction?language=objc -func (c_ ColorPanel) SetAction(selector objc.Selector) { - objc.Call[objc.Void](c_, objc.Sel("setAction:"), selector) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1531970-attachcolorlist?language=objc +func (c_ ColorPanel) AttachColorList(colorList IColorList) { + objc.Call[objc.Void](c_, objc.Sel("attachColorList:"), colorList) } // Specifies the color panel’s initial picker. [Full Topic] @@ -130,21 +116,6 @@ func ColorPanel_SetPickerMode(mode ColorPanelMode) { ColorPanelClass.SetPickerMode(mode) } -// Drags a color into a destination view from the specified source view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1529152-dragcolor?language=objc -func (cc _ColorPanelClass) DragColorWithEventFromView(color IColor, event IEvent, sourceView IView) bool { - rv := objc.Call[bool](cc, objc.Sel("dragColor:withEvent:fromView:"), color, event, sourceView) - return rv -} - -// Drags a color into a destination view from the specified source view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1529152-dragcolor?language=objc -func ColorPanel_DragColorWithEventFromView(color IColor, event IEvent, sourceView IView) bool { - return ColorPanelClass.DragColorWithEventFromView(color, event, sourceView) -} - // Determines which color selection modes are available in an application’s NSColorPanel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1534004-setpickermask?language=objc @@ -159,70 +130,70 @@ func ColorPanel_SetPickerMask(mask ColorPanelOptions) { ColorPanelClass.SetPickerMask(mask) } -// Removes the list of colors from all the color pickers in the receiver that display color lists by invoking [appkit/nscolorpanel/detachcolorlist] on all color pickers in the application. [Full Topic] +// Removes the list of colors from all the color pickers in the receiver that display color lists by invoking detachColorList: on all color pickers in the application. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1529357-detachcolorlist?language=objc func (c_ ColorPanel) DetachColorList(colorList IColorList) { objc.Call[objc.Void](c_, objc.Sel("detachColorList:"), colorList) } -// Adds the list of NSColor objects specified to all the color pickers in the receiver that display color lists by invoking [appkit/nscolorpanel/attachcolorlist] on all color pickers in the application. [Full Topic] +// Drags a color into a destination view from the specified source view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1531970-attachcolorlist?language=objc -func (c_ ColorPanel) AttachColorList(colorList IColorList) { - objc.Call[objc.Void](c_, objc.Sel("attachColorList:"), colorList) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1529152-dragcolor?language=objc +func (cc _ColorPanelClass) DragColorWithEventFromView(color IColor, event IEvent, sourceView IView) bool { + rv := objc.Call[bool](cc, objc.Sel("dragColor:withEvent:fromView:"), color, event, sourceView) + return rv } -// Sets the target of the receiver. [Full Topic] +// Drags a color into a destination view from the specified source view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1524753-settarget?language=objc -func (c_ ColorPanel) SetTarget(target objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setTarget:"), target) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1529152-dragcolor?language=objc +func ColorPanel_DragColorWithEventFromView(color IColor, event IEvent, sourceView IView) bool { + return ColorPanelClass.DragColorWithEventFromView(color, event, sourceView) } -// Returns a Boolean value indicating whether the NSColorPanel has been created already. [Full Topic] +// Sets the color panel's action message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525183-sharedcolorpanelexists?language=objc -func (cc _ColorPanelClass) SharedColorPanelExists() bool { - rv := objc.Call[bool](cc, objc.Sel("sharedColorPanelExists")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1531244-setaction?language=objc +func (c_ ColorPanel) SetAction(selector objc.Selector) { + objc.Call[objc.Void](c_, objc.Sel("setAction:"), selector) } -// Returns a Boolean value indicating whether the NSColorPanel has been created already. [Full Topic] +// Sets the target of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525183-sharedcolorpanelexists?language=objc -func ColorPanel_SharedColorPanelExists() bool { - return ColorPanelClass.SharedColorPanelExists() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1524753-settarget?language=objc +func (c_ ColorPanel) SetTarget(target objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setTarget:"), target) } -// The mode of the receiver the mode is one of the modes allowed by the color mask. [Full Topic] +// The color of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525410-mode?language=objc -func (c_ ColorPanel) Mode() ColorPanelMode { - rv := objc.Call[ColorPanelMode](c_, objc.Sel("mode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1530835-color?language=objc +func (c_ ColorPanel) Color() Color { + rv := objc.Call[Color](c_, objc.Sel("color")) return rv } -// The mode of the receiver the mode is one of the modes allowed by the color mask. [Full Topic] +// The color of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525410-mode?language=objc -func (c_ ColorPanel) SetMode(value ColorPanelMode) { - objc.Call[objc.Void](c_, objc.Sel("setMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1530835-color?language=objc +func (c_ ColorPanel) SetColor(value IColor) { + objc.Call[objc.Void](c_, objc.Sel("setColor:"), value) } -// The accessory view. [Full Topic] +// Returns a Boolean value indicating whether the NSColorPanel has been created already. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1526892-accessoryview?language=objc -func (c_ ColorPanel) AccessoryView() View { - rv := objc.Call[View](c_, objc.Sel("accessoryView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525183-sharedcolorpanelexists?language=objc +func (cc _ColorPanelClass) SharedColorPanelExists() bool { + rv := objc.Call[bool](cc, objc.Sel("sharedColorPanelExists")) return rv } -// The accessory view. [Full Topic] +// Returns a Boolean value indicating whether the NSColorPanel has been created already. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1526892-accessoryview?language=objc -func (c_ ColorPanel) SetAccessoryView(value IView) { - objc.Call[objc.Void](c_, objc.Sel("setAccessoryView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525183-sharedcolorpanelexists?language=objc +func ColorPanel_SharedColorPanelExists() bool { + return ColorPanelClass.SharedColorPanelExists() } // Returns the shared NSColorPanel instance, creating it if necessary. [Full Topic] @@ -255,40 +226,55 @@ func (c_ ColorPanel) SetContinuous(value bool) { objc.Call[objc.Void](c_, objc.Sel("setContinuous:"), value) } -// A Boolean value that indicates whether the receiver shows alpha values and an opacity slider. [Full Topic] +// The accessory view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525279-showsalpha?language=objc -func (c_ ColorPanel) ShowsAlpha() bool { - rv := objc.Call[bool](c_, objc.Sel("showsAlpha")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1526892-accessoryview?language=objc +func (c_ ColorPanel) AccessoryView() View { + rv := objc.Call[View](c_, objc.Sel("accessoryView")) return rv } -// A Boolean value that indicates whether the receiver shows alpha values and an opacity slider. [Full Topic] +// The accessory view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525279-showsalpha?language=objc -func (c_ ColorPanel) SetShowsAlpha(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setShowsAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1526892-accessoryview?language=objc +func (c_ ColorPanel) SetAccessoryView(value IView) { + objc.Call[objc.Void](c_, objc.Sel("setAccessoryView:"), value) } -// The color of the receiver. [Full Topic] +// The receiver’s current alpha value based on its opacity slider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1530835-color?language=objc -func (c_ ColorPanel) Color() Color { - rv := objc.Call[Color](c_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1526246-alpha?language=objc +func (c_ ColorPanel) Alpha() float64 { + rv := objc.Call[float64](c_, objc.Sel("alpha")) return rv } -// The color of the receiver. [Full Topic] +// The mode of the receiver the mode is one of the modes allowed by the color mask. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1530835-color?language=objc -func (c_ ColorPanel) SetColor(value IColor) { - objc.Call[objc.Void](c_, objc.Sel("setColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525410-mode?language=objc +func (c_ ColorPanel) Mode() ColorPanelMode { + rv := objc.Call[ColorPanelMode](c_, objc.Sel("mode")) + return rv } -// The receiver’s current alpha value based on its opacity slider. [Full Topic] +// The mode of the receiver the mode is one of the modes allowed by the color mask. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1526246-alpha?language=objc -func (c_ ColorPanel) Alpha() float64 { - rv := objc.Call[float64](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525410-mode?language=objc +func (c_ ColorPanel) SetMode(value ColorPanelMode) { + objc.Call[objc.Void](c_, objc.Sel("setMode:"), value) +} + +// A Boolean value that indicates whether the receiver shows alpha values and an opacity slider. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525279-showsalpha?language=objc +func (c_ ColorPanel) ShowsAlpha() bool { + rv := objc.Call[bool](c_, objc.Sel("showsAlpha")) return rv } + +// A Boolean value that indicates whether the receiver shows alpha values and an opacity slider. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpanel/1525279-showsalpha?language=objc +func (c_ ColorPanel) SetShowsAlpha(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setShowsAlpha:"), value) +} diff --git a/macos/appkit/color_picker.gen.go b/macos/appkit/color_picker.gen.go index f6d4371f..d656e67e 100644 --- a/macos/appkit/color_picker.gen.go +++ b/macos/appkit/color_picker.gen.go @@ -19,15 +19,15 @@ type _ColorPickerClass struct { // An interface definition for the [ColorPicker] class. type IColorPicker interface { objc.IObject + AttachColorList(colorList IColorList) + InsertNewButtonImageIn(newButtonImage IImage, buttonCell IButtonCell) + SetMode(mode ColorPanelMode) DetachColorList(colorList IColorList) ViewSizeChanged(sender objc.IObject) - SetMode(mode ColorPanelMode) - InsertNewButtonImageIn(newButtonImage IImage, buttonCell IButtonCell) - AttachColorList(colorList IColorList) + ColorPanel() ColorPanel ProvideNewButtonImage() Image - MinContentSize() foundation.Size ButtonToolTip() string - ColorPanel() ColorPanel + MinContentSize() foundation.Size } // An abstract superclass that implements the default color picking protocol. [Full Topic] @@ -77,18 +77,18 @@ func (c_ ColorPicker) Init() ColorPicker { return rv } -// Overriden to detach a color list from a color picker. [Full Topic] +// Overriden to attach a color list to a color picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492388-detachcolorlist?language=objc -func (c_ ColorPicker) DetachColorList(colorList IColorList) { - objc.Call[objc.Void](c_, objc.Sel("detachColorList:"), colorList) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492395-attachcolorlist?language=objc +func (c_ ColorPicker) AttachColorList(colorList IColorList) { + objc.Call[objc.Void](c_, objc.Sel("attachColorList:"), colorList) } -// Overriden to respond to a size change. [Full Topic] +// Sets the image used for the specified button cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492389-viewsizechanged?language=objc -func (c_ ColorPicker) ViewSizeChanged(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("viewSizeChanged:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492402-insertnewbuttonimage?language=objc +func (c_ ColorPicker) InsertNewButtonImageIn(newButtonImage IImage, buttonCell IButtonCell) { + objc.Call[objc.Void](c_, objc.Sel("insertNewButtonImage:in:"), newButtonImage, buttonCell) } // Overriden to set the color picker’s mode. [Full Topic] @@ -98,33 +98,33 @@ func (c_ ColorPicker) SetMode(mode ColorPanelMode) { objc.Call[objc.Void](c_, objc.Sel("setMode:"), mode) } -// Sets the image used for the specified button cell. [Full Topic] +// Overriden to detach a color list from a color picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492402-insertnewbuttonimage?language=objc -func (c_ ColorPicker) InsertNewButtonImageIn(newButtonImage IImage, buttonCell IButtonCell) { - objc.Call[objc.Void](c_, objc.Sel("insertNewButtonImage:in:"), newButtonImage, buttonCell) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492388-detachcolorlist?language=objc +func (c_ ColorPicker) DetachColorList(colorList IColorList) { + objc.Call[objc.Void](c_, objc.Sel("detachColorList:"), colorList) } -// Overriden to attach a color list to a color picker. [Full Topic] +// Overriden to respond to a size change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492395-attachcolorlist?language=objc -func (c_ ColorPicker) AttachColorList(colorList IColorList) { - objc.Call[objc.Void](c_, objc.Sel("attachColorList:"), colorList) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492389-viewsizechanged?language=objc +func (c_ ColorPicker) ViewSizeChanged(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("viewSizeChanged:"), sender) } -// The button image used by the color picker. [Full Topic] +// The color panel instance that owns the color picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492393-providenewbuttonimage?language=objc -func (c_ ColorPicker) ProvideNewButtonImage() Image { - rv := objc.Call[Image](c_, objc.Sel("provideNewButtonImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492396-colorpanel?language=objc +func (c_ ColorPicker) ColorPanel() ColorPanel { + rv := objc.Call[ColorPanel](c_, objc.Sel("colorPanel")) return rv } -// The minimum content size. [Full Topic] +// The button image used by the color picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492391-mincontentsize?language=objc -func (c_ ColorPicker) MinContentSize() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("minContentSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492393-providenewbuttonimage?language=objc +func (c_ ColorPicker) ProvideNewButtonImage() Image { + rv := objc.Call[Image](c_, objc.Sel("provideNewButtonImage")) return rv } @@ -136,10 +136,10 @@ func (c_ ColorPicker) ButtonToolTip() string { return rv } -// The color panel instance that owns the color picker. [Full Topic] +// The minimum content size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492396-colorpanel?language=objc -func (c_ ColorPicker) ColorPanel() ColorPanel { - rv := objc.Call[ColorPanel](c_, objc.Sel("colorPanel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492391-mincontentsize?language=objc +func (c_ ColorPicker) MinContentSize() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("minContentSize")) return rv } diff --git a/macos/appkit/color_picker_touch_bar_item.gen.go b/macos/appkit/color_picker_touch_bar_item.gen.go index 0619a893..41563049 100644 --- a/macos/appkit/color_picker_touch_bar_item.gen.go +++ b/macos/appkit/color_picker_touch_bar_item.gen.go @@ -18,21 +18,21 @@ type _ColorPickerTouchBarItemClass struct { // An interface definition for the [ColorPickerTouchBarItem] class. type IColorPickerTouchBarItem interface { ITouchBarItem - ShowsAlpha() bool - SetShowsAlpha(value bool) + Color() Color + SetColor(value IColor) + Target() objc.Object + SetTarget(value objc.IObject) + SetCustomizationLabel(value string) Action() objc.Selector SetAction(value objc.Selector) AllowedColorSpaces() []ColorSpace SetAllowedColorSpaces(value []IColorSpace) - Target() objc.Object - SetTarget(value objc.IObject) - Color() Color - SetColor(value IColor) - IsEnabled() bool - SetEnabled(value bool) - SetCustomizationLabel(value string) ColorList() ColorList SetColorList(value IColorList) + ShowsAlpha() bool + SetShowsAlpha(value bool) + IsEnabled() bool + SetEnabled(value bool) } // A bar item that provides a system-defined color picker. [Full Topic] @@ -60,16 +60,16 @@ func ColorPickerTouchBarItem_StrokeColorPickerWithIdentifier(identifier TouchBar return ColorPickerTouchBarItemClass.StrokeColorPickerWithIdentifier(identifier) } -func (cc _ColorPickerTouchBarItemClass) ColorPickerWithIdentifierButtonImage(identifier TouchBarItemIdentifier, image IImage) ColorPickerTouchBarItem { - rv := objc.Call[ColorPickerTouchBarItem](cc, objc.Sel("colorPickerWithIdentifier:buttonImage:"), identifier, image) +func (cc _ColorPickerTouchBarItemClass) ColorPickerWithIdentifier(identifier TouchBarItemIdentifier) ColorPickerTouchBarItem { + rv := objc.Call[ColorPickerTouchBarItem](cc, objc.Sel("colorPickerWithIdentifier:"), identifier) return rv } -// Creates a color picker bar item using the supplied image as its icon. [Full Topic] +// Creates a bar item with the standard color picker icon. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544784-colorpickerwithidentifier?language=objc -func ColorPickerTouchBarItem_ColorPickerWithIdentifierButtonImage(identifier TouchBarItemIdentifier, image IImage) ColorPickerTouchBarItem { - return ColorPickerTouchBarItemClass.ColorPickerWithIdentifierButtonImage(identifier, image) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544807-colorpickerwithidentifier?language=objc +func ColorPickerTouchBarItem_ColorPickerWithIdentifier(identifier TouchBarItemIdentifier) ColorPickerTouchBarItem { + return ColorPickerTouchBarItemClass.ColorPickerWithIdentifier(identifier) } func (cc _ColorPickerTouchBarItemClass) TextColorPickerWithIdentifier(identifier TouchBarItemIdentifier) ColorPickerTouchBarItem { @@ -84,18 +84,6 @@ func ColorPickerTouchBarItem_TextColorPickerWithIdentifier(identifier TouchBarIt return ColorPickerTouchBarItemClass.TextColorPickerWithIdentifier(identifier) } -func (cc _ColorPickerTouchBarItemClass) ColorPickerWithIdentifier(identifier TouchBarItemIdentifier) ColorPickerTouchBarItem { - rv := objc.Call[ColorPickerTouchBarItem](cc, objc.Sel("colorPickerWithIdentifier:"), identifier) - return rv -} - -// Creates a bar item with the standard color picker icon. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544807-colorpickerwithidentifier?language=objc -func ColorPickerTouchBarItem_ColorPickerWithIdentifier(identifier TouchBarItemIdentifier) ColorPickerTouchBarItem { - return ColorPickerTouchBarItemClass.ColorPickerWithIdentifier(identifier) -} - func (cc _ColorPickerTouchBarItemClass) Alloc() ColorPickerTouchBarItem { rv := objc.Call[ColorPickerTouchBarItem](cc, objc.Sel("alloc")) return rv @@ -130,19 +118,41 @@ func NewColorPickerTouchBarItemWithIdentifier(identifier TouchBarItemIdentifier) return instance } -// A Boolean value that controls whether the color picker allows picking of colors with alpha values other than 1.0. [Full Topic] +// The picker's currently selected color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544828-showsalpha?language=objc -func (c_ ColorPickerTouchBarItem) ShowsAlpha() bool { - rv := objc.Call[bool](c_, objc.Sel("showsAlpha")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544768-color?language=objc +func (c_ ColorPickerTouchBarItem) Color() Color { + rv := objc.Call[Color](c_, objc.Sel("color")) return rv } -// A Boolean value that controls whether the color picker allows picking of colors with alpha values other than 1.0. [Full Topic] +// The picker's currently selected color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544828-showsalpha?language=objc -func (c_ ColorPickerTouchBarItem) SetShowsAlpha(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setShowsAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544768-color?language=objc +func (c_ ColorPickerTouchBarItem) SetColor(value IColor) { + objc.Call[objc.Void](c_, objc.Sel("setColor:"), value) +} + +// An object that is notified when a user interacts with the color picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544857-target?language=objc +func (c_ ColorPickerTouchBarItem) Target() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("target")) + return rv +} + +// An object that is notified when a user interacts with the color picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544857-target?language=objc +func (c_ ColorPickerTouchBarItem) SetTarget(value objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setTarget:"), value) +} + +// The user-visible string identifying this item during touch bar customization. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544803-customizationlabel?language=objc +func (c_ ColorPickerTouchBarItem) SetCustomizationLabel(value string) { + objc.Call[objc.Void](c_, objc.Sel("setCustomizationLabel:"), value) } // The selector on the target object that is invoked when a user interacts with the color picker. [Full Topic] @@ -175,34 +185,34 @@ func (c_ ColorPickerTouchBarItem) SetAllowedColorSpaces(value []IColorSpace) { objc.Call[objc.Void](c_, objc.Sel("setAllowedColorSpaces:"), value) } -// An object that is notified when a user interacts with the color picker. [Full Topic] +// The list of colors displayed in the color picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544857-target?language=objc -func (c_ ColorPickerTouchBarItem) Target() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("target")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2641681-colorlist?language=objc +func (c_ ColorPickerTouchBarItem) ColorList() ColorList { + rv := objc.Call[ColorList](c_, objc.Sel("colorList")) return rv } -// An object that is notified when a user interacts with the color picker. [Full Topic] +// The list of colors displayed in the color picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544857-target?language=objc -func (c_ ColorPickerTouchBarItem) SetTarget(value objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setTarget:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2641681-colorlist?language=objc +func (c_ ColorPickerTouchBarItem) SetColorList(value IColorList) { + objc.Call[objc.Void](c_, objc.Sel("setColorList:"), value) } -// The picker's currently selected color. [Full Topic] +// A Boolean value that controls whether the color picker allows picking of colors with alpha values other than 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544768-color?language=objc -func (c_ ColorPickerTouchBarItem) Color() Color { - rv := objc.Call[Color](c_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544828-showsalpha?language=objc +func (c_ ColorPickerTouchBarItem) ShowsAlpha() bool { + rv := objc.Call[bool](c_, objc.Sel("showsAlpha")) return rv } -// The picker's currently selected color. [Full Topic] +// A Boolean value that controls whether the color picker allows picking of colors with alpha values other than 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544768-color?language=objc -func (c_ ColorPickerTouchBarItem) SetColor(value IColor) { - objc.Call[objc.Void](c_, objc.Sel("setColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544828-showsalpha?language=objc +func (c_ ColorPickerTouchBarItem) SetShowsAlpha(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setShowsAlpha:"), value) } // A Boolean value that determines whether the color picker is enabled. [Full Topic] @@ -219,25 +229,3 @@ func (c_ ColorPickerTouchBarItem) IsEnabled() bool { func (c_ ColorPickerTouchBarItem) SetEnabled(value bool) { objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) } - -// The user-visible string identifying this item during touch bar customization. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2544803-customizationlabel?language=objc -func (c_ ColorPickerTouchBarItem) SetCustomizationLabel(value string) { - objc.Call[objc.Void](c_, objc.Sel("setCustomizationLabel:"), value) -} - -// The list of colors displayed in the color picker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2641681-colorlist?language=objc -func (c_ ColorPickerTouchBarItem) ColorList() ColorList { - rv := objc.Call[ColorList](c_, objc.Sel("colorList")) - return rv -} - -// The list of colors displayed in the color picker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickertouchbaritem/2641681-colorlist?language=objc -func (c_ ColorPickerTouchBarItem) SetColorList(value IColorList) { - objc.Call[objc.Void](c_, objc.Sel("setColorList:"), value) -} diff --git a/macos/appkit/color_picking_custom_protocol.gen.go b/macos/appkit/color_picking_custom_protocol.gen.go index c1d2941e..209cb07c 100644 --- a/macos/appkit/color_picking_custom_protocol.gen.go +++ b/macos/appkit/color_picking_custom_protocol.gen.go @@ -11,20 +11,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingcustom?language=objc type PColorPickingCustom interface { // optional - SupportsMode(mode ColorPanelMode) bool - HasSupportsMode() bool - - // optional - CurrentMode() ColorPanelMode - HasCurrentMode() bool + ProvideNewView(initialRequest bool) View + HasProvideNewView() bool // optional SetColor(newColor Color) HasSetColor() bool // optional - ProvideNewView(initialRequest bool) View - HasProvideNewView() bool + SupportsMode(mode ColorPanelMode) bool + HasSupportsMode() bool + + // optional + CurrentMode() ColorPanelMode + HasCurrentMode() bool } // ensure impl type implements protocol interface @@ -35,6 +35,29 @@ type ColorPickingCustomObject struct { objc.Object } +func (c_ ColorPickingCustomObject) HasProvideNewView() bool { + return c_.RespondsToSelector(objc.Sel("provideNewView:")) +} + +// Returns the view containing the receiver’s user interface. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingcustom/1525701-providenewview?language=objc +func (c_ ColorPickingCustomObject) ProvideNewView(initialRequest bool) View { + rv := objc.Call[View](c_, objc.Sel("provideNewView:"), initialRequest) + return rv +} + +func (c_ ColorPickingCustomObject) HasSetColor() bool { + return c_.RespondsToSelector(objc.Sel("setColor:")) +} + +// Adjusts the receiver to make the specified color the currently selected color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingcustom/1526545-setcolor?language=objc +func (c_ ColorPickingCustomObject) SetColor(newColor Color) { + objc.Call[objc.Void](c_, objc.Sel("setColor:"), newColor) +} + func (c_ ColorPickingCustomObject) HasSupportsMode() bool { return c_.RespondsToSelector(objc.Sel("supportsMode:")) } @@ -58,26 +81,3 @@ func (c_ ColorPickingCustomObject) CurrentMode() ColorPanelMode { rv := objc.Call[ColorPanelMode](c_, objc.Sel("currentMode")) return rv } - -func (c_ ColorPickingCustomObject) HasSetColor() bool { - return c_.RespondsToSelector(objc.Sel("setColor:")) -} - -// Adjusts the receiver to make the specified color the currently selected color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingcustom/1526545-setcolor?language=objc -func (c_ ColorPickingCustomObject) SetColor(newColor Color) { - objc.Call[objc.Void](c_, objc.Sel("setColor:"), newColor) -} - -func (c_ ColorPickingCustomObject) HasProvideNewView() bool { - return c_.RespondsToSelector(objc.Sel("provideNewView:")) -} - -// Returns the view containing the receiver’s user interface. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingcustom/1525701-providenewview?language=objc -func (c_ ColorPickingCustomObject) ProvideNewView(initialRequest bool) View { - rv := objc.Call[View](c_, objc.Sel("provideNewView:"), initialRequest) - return rv -} diff --git a/macos/appkit/color_picking_default_protocol.gen.go b/macos/appkit/color_picking_default_protocol.gen.go index f5e91cb5..9c008d6b 100644 --- a/macos/appkit/color_picking_default_protocol.gen.go +++ b/macos/appkit/color_picking_default_protocol.gen.go @@ -12,44 +12,44 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault?language=objc type PColorPickingDefault interface { // optional - ProvideNewButtonImage() Image - HasProvideNewButtonImage() bool - - // optional - SetMode(mode ColorPanelMode) - HasSetMode() bool + AlphaControlAddedOrRemoved(sender objc.Object) + HasAlphaControlAddedOrRemoved() bool // optional InitWithPickerMaskColorPanel(mask uint, owningColorPanel ColorPanel) objc.Object HasInitWithPickerMaskColorPanel() bool // optional - AlphaControlAddedOrRemoved(sender objc.Object) - HasAlphaControlAddedOrRemoved() bool + AttachColorList(colorList ColorList) + HasAttachColorList() bool // optional - MinContentSize() foundation.Size - HasMinContentSize() bool + InsertNewButtonImageIn(newButtonImage Image, buttonCell ButtonCell) + HasInsertNewButtonImageIn() bool // optional - ViewSizeChanged(sender objc.Object) - HasViewSizeChanged() bool + SetMode(mode ColorPanelMode) + HasSetMode() bool // optional DetachColorList(colorList ColorList) HasDetachColorList() bool // optional - AttachColorList(colorList ColorList) - HasAttachColorList() bool + ProvideNewButtonImage() Image + HasProvideNewButtonImage() bool // optional ButtonToolTip() string HasButtonToolTip() bool // optional - InsertNewButtonImageIn(newButtonImage Image, buttonCell ButtonCell) - HasInsertNewButtonImageIn() bool + MinContentSize() foundation.Size + HasMinContentSize() bool + + // optional + ViewSizeChanged(sender objc.Object) + HasViewSizeChanged() bool } // ensure impl type implements protocol interface @@ -60,27 +60,15 @@ type ColorPickingDefaultObject struct { objc.Object } -func (c_ ColorPickingDefaultObject) HasProvideNewButtonImage() bool { - return c_.RespondsToSelector(objc.Sel("provideNewButtonImage")) -} - -// Provides the image of the button used to select the receiver in the color panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1534615-providenewbuttonimage?language=objc -func (c_ ColorPickingDefaultObject) ProvideNewButtonImage() Image { - rv := objc.Call[Image](c_, objc.Sel("provideNewButtonImage")) - return rv -} - -func (c_ ColorPickingDefaultObject) HasSetMode() bool { - return c_.RespondsToSelector(objc.Sel("setMode:")) +func (c_ ColorPickingDefaultObject) HasAlphaControlAddedOrRemoved() bool { + return c_.RespondsToSelector(objc.Sel("alphaControlAddedOrRemoved:")) } -// Specifies the receiver’s mode. [Full Topic] +// Sent when the color panel's opacity controls have been hidden or displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1525088-setmode?language=objc -func (c_ ColorPickingDefaultObject) SetMode(mode ColorPanelMode) { - objc.Call[objc.Void](c_, objc.Sel("setMode:"), mode) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1535478-alphacontroladdedorremoved?language=objc +func (c_ ColorPickingDefaultObject) AlphaControlAddedOrRemoved(sender objc.Object) { + objc.Call[objc.Void](c_, objc.Sel("alphaControlAddedOrRemoved:"), sender) } func (c_ ColorPickingDefaultObject) HasInitWithPickerMaskColorPanel() bool { @@ -95,38 +83,37 @@ func (c_ ColorPickingDefaultObject) InitWithPickerMaskColorPanel(mask uint, owni return rv } -func (c_ ColorPickingDefaultObject) HasAlphaControlAddedOrRemoved() bool { - return c_.RespondsToSelector(objc.Sel("alphaControlAddedOrRemoved:")) +func (c_ ColorPickingDefaultObject) HasAttachColorList() bool { + return c_.RespondsToSelector(objc.Sel("attachColorList:")) } -// Sent when the color panel's opacity controls have been hidden or displayed. [Full Topic] +// Tells the receiver to attach the given color list, if it isn’t already displaying the list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1535478-alphacontroladdedorremoved?language=objc -func (c_ ColorPickingDefaultObject) AlphaControlAddedOrRemoved(sender objc.Object) { - objc.Call[objc.Void](c_, objc.Sel("alphaControlAddedOrRemoved:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1531650-attachcolorlist?language=objc +func (c_ ColorPickingDefaultObject) AttachColorList(colorList ColorList) { + objc.Call[objc.Void](c_, objc.Sel("attachColorList:"), colorList) } -func (c_ ColorPickingDefaultObject) HasMinContentSize() bool { - return c_.RespondsToSelector(objc.Sel("minContentSize")) +func (c_ ColorPickingDefaultObject) HasInsertNewButtonImageIn() bool { + return c_.RespondsToSelector(objc.Sel("insertNewButtonImage:in:")) } -// Indicates the receiver’s minimum content size. [Full Topic] +// Sets the image of a given button cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1535437-mincontentsize?language=objc -func (c_ ColorPickingDefaultObject) MinContentSize() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("minContentSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1525078-insertnewbuttonimage?language=objc +func (c_ ColorPickingDefaultObject) InsertNewButtonImageIn(newButtonImage Image, buttonCell ButtonCell) { + objc.Call[objc.Void](c_, objc.Sel("insertNewButtonImage:in:"), newButtonImage, buttonCell) } -func (c_ ColorPickingDefaultObject) HasViewSizeChanged() bool { - return c_.RespondsToSelector(objc.Sel("viewSizeChanged:")) +func (c_ ColorPickingDefaultObject) HasSetMode() bool { + return c_.RespondsToSelector(objc.Sel("setMode:")) } -// Tells the recever when the color panel's view size changes in a way that might affect the color picker. [Full Topic] +// Specifies the receiver’s mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1535866-viewsizechanged?language=objc -func (c_ ColorPickingDefaultObject) ViewSizeChanged(sender objc.Object) { - objc.Call[objc.Void](c_, objc.Sel("viewSizeChanged:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1525088-setmode?language=objc +func (c_ ColorPickingDefaultObject) SetMode(mode ColorPanelMode) { + objc.Call[objc.Void](c_, objc.Sel("setMode:"), mode) } func (c_ ColorPickingDefaultObject) HasDetachColorList() bool { @@ -140,15 +127,16 @@ func (c_ ColorPickingDefaultObject) DetachColorList(colorList ColorList) { objc.Call[objc.Void](c_, objc.Sel("detachColorList:"), colorList) } -func (c_ ColorPickingDefaultObject) HasAttachColorList() bool { - return c_.RespondsToSelector(objc.Sel("attachColorList:")) +func (c_ ColorPickingDefaultObject) HasProvideNewButtonImage() bool { + return c_.RespondsToSelector(objc.Sel("provideNewButtonImage")) } -// Tells the receiver to attach the given color list, if it isn’t already displaying the list. [Full Topic] +// Provides the image of the button used to select the receiver in the color panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1531650-attachcolorlist?language=objc -func (c_ ColorPickingDefaultObject) AttachColorList(colorList ColorList) { - objc.Call[objc.Void](c_, objc.Sel("attachColorList:"), colorList) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1534615-providenewbuttonimage?language=objc +func (c_ ColorPickingDefaultObject) ProvideNewButtonImage() Image { + rv := objc.Call[Image](c_, objc.Sel("provideNewButtonImage")) + return rv } func (c_ ColorPickingDefaultObject) HasButtonToolTip() bool { @@ -163,13 +151,25 @@ func (c_ ColorPickingDefaultObject) ButtonToolTip() string { return rv } -func (c_ ColorPickingDefaultObject) HasInsertNewButtonImageIn() bool { - return c_.RespondsToSelector(objc.Sel("insertNewButtonImage:in:")) +func (c_ ColorPickingDefaultObject) HasMinContentSize() bool { + return c_.RespondsToSelector(objc.Sel("minContentSize")) } -// Sets the image of a given button cell. [Full Topic] +// Indicates the receiver’s minimum content size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1525078-insertnewbuttonimage?language=objc -func (c_ ColorPickingDefaultObject) InsertNewButtonImageIn(newButtonImage Image, buttonCell ButtonCell) { - objc.Call[objc.Void](c_, objc.Sel("insertNewButtonImage:in:"), newButtonImage, buttonCell) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1535437-mincontentsize?language=objc +func (c_ ColorPickingDefaultObject) MinContentSize() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("minContentSize")) + return rv +} + +func (c_ ColorPickingDefaultObject) HasViewSizeChanged() bool { + return c_.RespondsToSelector(objc.Sel("viewSizeChanged:")) +} + +// Tells the recever when the color panel's view size changes in a way that might affect the color picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1535866-viewsizechanged?language=objc +func (c_ ColorPickingDefaultObject) ViewSizeChanged(sender objc.Object) { + objc.Call[objc.Void](c_, objc.Sel("viewSizeChanged:"), sender) } diff --git a/macos/appkit/color_space.gen.go b/macos/appkit/color_space.gen.go index 0a55ae24..54fd87ff 100644 --- a/macos/appkit/color_space.gen.go +++ b/macos/appkit/color_space.gen.go @@ -20,9 +20,9 @@ type _ColorSpaceClass struct { type IColorSpace interface { objc.IObject ICCProfileData() []byte - NumberOfColorComponents() int ColorSpaceModel() ColorSpaceModel LocalizedName() string + NumberOfColorComponents() int ColorSyncProfile() unsafe.Pointer CGColorSpace() coregraphics.ColorSpaceRef } @@ -117,6 +117,14 @@ func ColorSpace_AvailableColorSpacesWithModel(model ColorSpaceModel) []ColorSpac return ColorSpaceClass.AvailableColorSpacesWithModel(model) } +// The ICC profile data from which the color space was created. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412078-iccprofiledata?language=objc +func (c_ ColorSpace) ICCProfileData() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("ICCProfileData")) + return rv +} + // A color space object that represents an extended gray color space with a gamma value of 2.2. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1644177-extendedgenericgamma22graycolors?language=objc @@ -132,34 +140,42 @@ func ColorSpace_ExtendedGenericGamma22GrayColorSpace() ColorSpace { return ColorSpaceClass.ExtendedGenericGamma22GrayColorSpace() } -// A color space object that represents an extended sRGB color space. [Full Topic] +// The model on which the color space is based. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1644175-extendedsrgbcolorspace?language=objc -func (cc _ColorSpaceClass) ExtendedSRGBColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](cc, objc.Sel("extendedSRGBColorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412095-colorspacemodel?language=objc +func (c_ ColorSpace) ColorSpaceModel() ColorSpaceModel { + rv := objc.Call[ColorSpaceModel](c_, objc.Sel("colorSpaceModel")) return rv } -// A color space object that represents an extended sRGB color space. [Full Topic] +// A color space object that represents a device-independent RGB color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1644175-extendedsrgbcolorspace?language=objc -func ColorSpace_ExtendedSRGBColorSpace() ColorSpace { - return ColorSpaceClass.ExtendedSRGBColorSpace() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412082-genericrgbcolorspace?language=objc +func (cc _ColorSpaceClass) GenericRGBColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](cc, objc.Sel("genericRGBColorSpace")) + return rv } -// A color space object that represents a device-independent gray color space. [Full Topic] +// A color space object that represents a device-independent RGB color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412060-genericgraycolorspace?language=objc -func (cc _ColorSpaceClass) GenericGrayColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](cc, objc.Sel("genericGrayColorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412082-genericrgbcolorspace?language=objc +func ColorSpace_GenericRGBColorSpace() ColorSpace { + return ColorSpaceClass.GenericRGBColorSpace() +} + +// A color space object that represents a calibrated or device-dependent RGB color space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412066-devicergbcolorspace?language=objc +func (cc _ColorSpaceClass) DeviceRGBColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](cc, objc.Sel("deviceRGBColorSpace")) return rv } -// A color space object that represents a device-independent gray color space. [Full Topic] +// A color space object that represents a calibrated or device-dependent RGB color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412060-genericgraycolorspace?language=objc -func ColorSpace_GenericGrayColorSpace() ColorSpace { - return ColorSpaceClass.GenericGrayColorSpace() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412066-devicergbcolorspace?language=objc +func ColorSpace_DeviceRGBColorSpace() ColorSpace { + return ColorSpaceClass.DeviceRGBColorSpace() } // A color space object that represents a calibrated or device-dependent gray color space. [Full Topic] @@ -192,14 +208,44 @@ func ColorSpace_SRGBColorSpace() ColorSpace { return ColorSpaceClass.SRGBColorSpace() } -// The ICC profile data from which the color space was created. [Full Topic] +// A color space object that represents an extended sRGB color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412078-iccprofiledata?language=objc -func (c_ ColorSpace) ICCProfileData() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("ICCProfileData")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1644175-extendedsrgbcolorspace?language=objc +func (cc _ColorSpaceClass) ExtendedSRGBColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](cc, objc.Sel("extendedSRGBColorSpace")) + return rv +} + +// A color space object that represents an extended sRGB color space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1644175-extendedsrgbcolorspace?language=objc +func ColorSpace_ExtendedSRGBColorSpace() ColorSpace { + return ColorSpaceClass.ExtendedSRGBColorSpace() +} + +// The localized name of the color space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412072-localizedname?language=objc +func (c_ ColorSpace) LocalizedName() string { + rv := objc.Call[string](c_, objc.Sel("localizedName")) return rv } +// A color space object that represents a calibrated or device-dependent CMYK color space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412090-devicecmykcolorspace?language=objc +func (cc _ColorSpaceClass) DeviceCMYKColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](cc, objc.Sel("deviceCMYKColorSpace")) + return rv +} + +// A color space object that represents a calibrated or device-dependent CMYK color space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412090-devicecmykcolorspace?language=objc +func ColorSpace_DeviceCMYKColorSpace() ColorSpace { + return ColorSpaceClass.DeviceCMYKColorSpace() +} + // The number of components, excluding alpha, the color space supports. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412099-numberofcolorcomponents?language=objc @@ -208,19 +254,27 @@ func (c_ ColorSpace) NumberOfColorComponents() int { return rv } -// A color space object that represents a calibrated or device-dependent RGB color space. [Full Topic] +// The ColorSync profile from which the color space was created. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412066-devicergbcolorspace?language=objc -func (cc _ColorSpaceClass) DeviceRGBColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](cc, objc.Sel("deviceRGBColorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412076-colorsyncprofile?language=objc +func (c_ ColorSpace) ColorSyncProfile() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](c_, objc.Sel("colorSyncProfile")) return rv } -// A color space object that represents a calibrated or device-dependent RGB color space. [Full Topic] +// A color space object that represents a device-independent CMYK color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412066-devicergbcolorspace?language=objc -func ColorSpace_DeviceRGBColorSpace() ColorSpace { - return ColorSpaceClass.DeviceRGBColorSpace() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412088-genericcmykcolorspace?language=objc +func (cc _ColorSpaceClass) GenericCMYKColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](cc, objc.Sel("genericCMYKColorSpace")) + return rv +} + +// A color space object that represents a device-independent CMYK color space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412088-genericcmykcolorspace?language=objc +func ColorSpace_GenericCMYKColorSpace() ColorSpace { + return ColorSpaceClass.GenericCMYKColorSpace() } // A color space object that represents an Adobe RGB (1998) color space. [Full Topic] @@ -238,49 +292,26 @@ func ColorSpace_AdobeRGB1998ColorSpace() ColorSpace { return ColorSpaceClass.AdobeRGB1998ColorSpace() } -// A color space object that represents a device-independent RGB color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412082-genericrgbcolorspace?language=objc -func (cc _ColorSpaceClass) GenericRGBColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](cc, objc.Sel("genericRGBColorSpace")) - return rv -} - -// A color space object that represents a device-independent RGB color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412082-genericrgbcolorspace?language=objc -func ColorSpace_GenericRGBColorSpace() ColorSpace { - return ColorSpaceClass.GenericRGBColorSpace() -} - -// The model on which the color space is based. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412095-colorspacemodel?language=objc -func (c_ ColorSpace) ColorSpaceModel() ColorSpaceModel { - rv := objc.Call[ColorSpaceModel](c_, objc.Sel("colorSpaceModel")) - return rv -} - -// A color space object that represents a gray color space with a gamma value of 2.2. [Full Topic] +// A color space object that represents a device-independent gray color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412103-genericgamma22graycolorspace?language=objc -func (cc _ColorSpaceClass) GenericGamma22GrayColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](cc, objc.Sel("genericGamma22GrayColorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412060-genericgraycolorspace?language=objc +func (cc _ColorSpaceClass) GenericGrayColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](cc, objc.Sel("genericGrayColorSpace")) return rv } -// A color space object that represents a gray color space with a gamma value of 2.2. [Full Topic] +// A color space object that represents a device-independent gray color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412103-genericgamma22graycolorspace?language=objc -func ColorSpace_GenericGamma22GrayColorSpace() ColorSpace { - return ColorSpaceClass.GenericGamma22GrayColorSpace() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412060-genericgraycolorspace?language=objc +func ColorSpace_GenericGrayColorSpace() ColorSpace { + return ColorSpaceClass.GenericGrayColorSpace() } -// The localized name of the color space. [Full Topic] +// The Core Graphics color-space object that represents a color space equivalent to the color space’s. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412072-localizedname?language=objc -func (c_ ColorSpace) LocalizedName() string { - rv := objc.Call[string](c_, objc.Sel("localizedName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412073-cgcolorspace?language=objc +func (c_ ColorSpace) CGColorSpace() coregraphics.ColorSpaceRef { + rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("CGColorSpace")) return rv } @@ -299,48 +330,17 @@ func ColorSpace_DisplayP3ColorSpace() ColorSpace { return ColorSpaceClass.DisplayP3ColorSpace() } -// The ColorSync profile from which the color space was created. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412076-colorsyncprofile?language=objc -func (c_ ColorSpace) ColorSyncProfile() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](c_, objc.Sel("colorSyncProfile")) - return rv -} - -// A color space object that represents a device-independent CMYK color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412088-genericcmykcolorspace?language=objc -func (cc _ColorSpaceClass) GenericCMYKColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](cc, objc.Sel("genericCMYKColorSpace")) - return rv -} - -// A color space object that represents a device-independent CMYK color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412088-genericcmykcolorspace?language=objc -func ColorSpace_GenericCMYKColorSpace() ColorSpace { - return ColorSpaceClass.GenericCMYKColorSpace() -} - -// A color space object that represents a calibrated or device-dependent CMYK color space. [Full Topic] +// A color space object that represents a gray color space with a gamma value of 2.2. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412090-devicecmykcolorspace?language=objc -func (cc _ColorSpaceClass) DeviceCMYKColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](cc, objc.Sel("deviceCMYKColorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412103-genericgamma22graycolorspace?language=objc +func (cc _ColorSpaceClass) GenericGamma22GrayColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](cc, objc.Sel("genericGamma22GrayColorSpace")) return rv } -// A color space object that represents a calibrated or device-dependent CMYK color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412090-devicecmykcolorspace?language=objc -func ColorSpace_DeviceCMYKColorSpace() ColorSpace { - return ColorSpaceClass.DeviceCMYKColorSpace() -} - -// The Core Graphics color-space object that represents a color space equivalent to the color space’s. [Full Topic] +// A color space object that represents a gray color space with a gamma value of 2.2. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412073-cgcolorspace?language=objc -func (c_ ColorSpace) CGColorSpace() coregraphics.ColorSpaceRef { - rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("CGColorSpace")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412103-genericgamma22graycolorspace?language=objc +func ColorSpace_GenericGamma22GrayColorSpace() ColorSpace { + return ColorSpaceClass.GenericGamma22GrayColorSpace() } diff --git a/macos/appkit/color_well.gen.go b/macos/appkit/color_well.gen.go index 854590df..e8cfe249 100644 --- a/macos/appkit/color_well.gen.go +++ b/macos/appkit/color_well.gen.go @@ -20,12 +20,12 @@ type _ColorWellClass struct { type IColorWell interface { IControl Activate(exclusive bool) - Deactivate() DrawWellInside(insideRect foundation.Rect) TakeColorFrom(sender objc.IObject) - IsActive() bool + Deactivate() Color() Color SetColor(value IColor) + IsActive() bool } // A control that displays a color value and lets the user change that color value. [Full Topic] @@ -82,13 +82,6 @@ func (c_ ColorWell) Activate(exclusive bool) { objc.Call[objc.Void](c_, objc.Sel("activate:"), exclusive) } -// Deactivates the color well. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorwell/1524493-deactivate?language=objc -func (c_ ColorWell) Deactivate() { - objc.Call[objc.Void](c_, objc.Sel("deactivate")) -} - // Draws the area inside the color well at the specified location without drawing borders. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorwell/1530268-drawwellinside?language=objc @@ -103,12 +96,11 @@ func (c_ ColorWell) TakeColorFrom(sender objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("takeColorFrom:"), sender) } -// A Boolean value that indicates whether the color well is currently active. [Full Topic] +// Deactivates the color well. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorwell/1528698-active?language=objc -func (c_ ColorWell) IsActive() bool { - rv := objc.Call[bool](c_, objc.Sel("isActive")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorwell/1524493-deactivate?language=objc +func (c_ ColorWell) Deactivate() { + objc.Call[objc.Void](c_, objc.Sel("deactivate")) } // The currently selected color for the color well. [Full Topic] @@ -125,3 +117,11 @@ func (c_ ColorWell) Color() Color { func (c_ ColorWell) SetColor(value IColor) { objc.Call[objc.Void](c_, objc.Sel("setColor:"), value) } + +// A Boolean value that indicates whether the color well is currently active. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorwell/1528698-active?language=objc +func (c_ ColorWell) IsActive() bool { + rv := objc.Call[bool](c_, objc.Sel("isActive")) + return rv +} diff --git a/macos/appkit/combo_box.gen.go b/macos/appkit/combo_box.gen.go index 08491278..9f3daa1b 100644 --- a/macos/appkit/combo_box.gen.go +++ b/macos/appkit/combo_box.gen.go @@ -19,42 +19,42 @@ type _ComboBoxClass struct { // An interface definition for the [ComboBox] class. type IComboBox interface { ITextField - RemoveItemAtIndex(index int) - ReloadData() - RemoveAllItems() - AddItemsWithObjectValues(objects []objc.IObject) - SelectItemAtIndex(index int) - IndexOfItemWithObjectValue(object objc.IObject) int RemoveItemWithObjectValue(object objc.IObject) - AddItemWithObjectValue(object objc.IObject) NoteNumberOfItemsChanged() - ScrollItemAtIndexToTop(index int) + IndexOfItemWithObjectValue(object objc.IObject) int + InsertItemWithObjectValueAtIndex(object objc.IObject, index int) ScrollItemAtIndexToVisible(index int) + RemoveAllItems() + RemoveItemAtIndex(index int) + AddItemWithObjectValue(object objc.IObject) + AddItemsWithObjectValues(objects []objc.IObject) + DeselectItemAtIndex(index int) + ScrollItemAtIndexToTop(index int) SelectItemWithObjectValue(object objc.IObject) + SelectItemAtIndex(index int) ItemObjectValueAtIndex(index int) objc.Object - DeselectItemAtIndex(index int) - InsertItemWithObjectValueAtIndex(object objc.IObject, index int) - NumberOfVisibleItems() int - SetNumberOfVisibleItems(value int) - ObjectValues() []objc.Object + ReloadData() DataSource() ComboBoxDataSourceObject SetDataSource(value PComboBoxDataSource) SetDataSourceObject(valueObject objc.IObject) - IsButtonBordered() bool - SetButtonBordered(value bool) - ObjectValueOfSelectedItem() objc.Object - IntercellSpacing() foundation.Size - SetIntercellSpacing(value foundation.Size) - UsesDataSource() bool - SetUsesDataSource(value bool) + IndexOfSelectedItem() int ItemHeight() float64 SetItemHeight(value float64) - NumberOfItems() int + ObjectValueOfSelectedItem() objc.Object HasVerticalScroller() bool SetHasVerticalScroller(value bool) - IndexOfSelectedItem() int Completes() bool SetCompletes(value bool) + UsesDataSource() bool + SetUsesDataSource(value bool) + ObjectValues() []objc.Object + NumberOfItems() int + NumberOfVisibleItems() int + SetNumberOfVisibleItems(value int) + IsButtonBordered() bool + SetButtonBordered(value bool) + IntercellSpacing() foundation.Size + SetIntercellSpacing(value foundation.Size) } // A view that displays a list of values in a pop-up menu where the user selects a value or types in a custom value. [Full Topic] @@ -90,18 +90,6 @@ func (c_ ComboBox) Init() ComboBox { return rv } -func (cc _ComboBoxClass) LabelWithString(stringValue string) ComboBox { - rv := objc.Call[ComboBox](cc, objc.Sel("labelWithString:"), stringValue) - return rv -} - -// Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc -func ComboBox_LabelWithString(stringValue string) ComboBox { - return ComboBoxClass.LabelWithString(stringValue) -} - func (cc _ComboBoxClass) LabelWithAttributedString(attributedStringValue foundation.IAttributedString) ComboBox { rv := objc.Call[ComboBox](cc, objc.Sel("labelWithAttributedString:"), attributedStringValue) return rv @@ -114,6 +102,18 @@ func ComboBox_LabelWithAttributedString(attributedStringValue foundation.IAttrib return ComboBoxClass.LabelWithAttributedString(attributedStringValue) } +func (cc _ComboBoxClass) LabelWithString(stringValue string) ComboBox { + rv := objc.Call[ComboBox](cc, objc.Sel("labelWithString:"), stringValue) + return rv +} + +// Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc +func ComboBox_LabelWithString(stringValue string) ComboBox { + return ComboBoxClass.LabelWithString(stringValue) +} + func (cc _ComboBoxClass) WrappingLabelWithString(stringValue string) ComboBox { rv := objc.Call[ComboBox](cc, objc.Sel("wrappingLabelWithString:"), stringValue) return rv @@ -152,54 +152,54 @@ func NewComboBoxWithFrame(frameRect foundation.Rect) ComboBox { return instance } -// Removes the object at the specified location from the receiver’s internal item list. [Full Topic] +// Removes all occurrences of the given object from the receiver’s internal item list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436761-removeitematindex?language=objc -func (c_ ComboBox) RemoveItemAtIndex(index int) { - objc.Call[objc.Void](c_, objc.Sel("removeItemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436759-removeitemwithobjectvalue?language=objc +func (c_ ComboBox) RemoveItemWithObjectValue(object objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("removeItemWithObjectValue:"), object) } -// Marks the receiver as needing redisplay, so that it will reload the data for visible pop-up items and draw the new values. [Full Topic] +// Informs the receiver that the number of items in its data source has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436717-reloaddata?language=objc -func (c_ ComboBox) ReloadData() { - objc.Call[objc.Void](c_, objc.Sel("reloadData")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436723-notenumberofitemschanged?language=objc +func (c_ ComboBox) NoteNumberOfItemsChanged() { + objc.Call[objc.Void](c_, objc.Sel("noteNumberOfItemsChanged")) } -// Removes all items from the receiver’s internal item list. [Full Topic] +// Searches the receiver’s internal item list for the specified object and returns the lowest matching index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436721-removeallitems?language=objc -func (c_ ComboBox) RemoveAllItems() { - objc.Call[objc.Void](c_, objc.Sel("removeAllItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436707-indexofitemwithobjectvalue?language=objc +func (c_ ComboBox) IndexOfItemWithObjectValue(object objc.IObject) int { + rv := objc.Call[int](c_, objc.Sel("indexOfItemWithObjectValue:"), object) + return rv } -// Adds multiple objects to the end of the receiver’s internal item list. [Full Topic] +// Inserts an object at the specified location in the receiver’s internal item list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436751-additemswithobjectvalues?language=objc -func (c_ ComboBox) AddItemsWithObjectValues(objects []objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("addItemsWithObjectValues:"), objects) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436703-insertitemwithobjectvalue?language=objc +func (c_ ComboBox) InsertItemWithObjectValueAtIndex(object objc.IObject, index int) { + objc.Call[objc.Void](c_, objc.Sel("insertItemWithObjectValue:atIndex:"), object, index) } -// Selects the pop-up list row at the given index. [Full Topic] +// Scrolls the receiver’s pop-up list vertically so that the item at the specified index is visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436735-selectitematindex?language=objc -func (c_ ComboBox) SelectItemAtIndex(index int) { - objc.Call[objc.Void](c_, objc.Sel("selectItemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436776-scrollitematindextovisible?language=objc +func (c_ ComboBox) ScrollItemAtIndexToVisible(index int) { + objc.Call[objc.Void](c_, objc.Sel("scrollItemAtIndexToVisible:"), index) } -// Searches the receiver’s internal item list for the specified object and returns the lowest matching index. [Full Topic] +// Removes all items from the receiver’s internal item list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436707-indexofitemwithobjectvalue?language=objc -func (c_ ComboBox) IndexOfItemWithObjectValue(object objc.IObject) int { - rv := objc.Call[int](c_, objc.Sel("indexOfItemWithObjectValue:"), object) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436721-removeallitems?language=objc +func (c_ ComboBox) RemoveAllItems() { + objc.Call[objc.Void](c_, objc.Sel("removeAllItems")) } -// Removes all occurrences of the given object from the receiver’s internal item list. [Full Topic] +// Removes the object at the specified location from the receiver’s internal item list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436759-removeitemwithobjectvalue?language=objc -func (c_ ComboBox) RemoveItemWithObjectValue(object objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("removeItemWithObjectValue:"), object) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436761-removeitematindex?language=objc +func (c_ ComboBox) RemoveItemAtIndex(index int) { + objc.Call[objc.Void](c_, objc.Sel("removeItemAtIndex:"), index) } // Adds an object to the end of the receiver’s internal item list. [Full Topic] @@ -209,11 +209,18 @@ func (c_ ComboBox) AddItemWithObjectValue(object objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("addItemWithObjectValue:"), object) } -// Informs the receiver that the number of items in its data source has changed. [Full Topic] +// Adds multiple objects to the end of the receiver’s internal item list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436723-notenumberofitemschanged?language=objc -func (c_ ComboBox) NoteNumberOfItemsChanged() { - objc.Call[objc.Void](c_, objc.Sel("noteNumberOfItemsChanged")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436751-additemswithobjectvalues?language=objc +func (c_ ComboBox) AddItemsWithObjectValues(objects []objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("addItemsWithObjectValues:"), objects) +} + +// Deselects the pop-up list item at the specified index if it’s selected. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436699-deselectitematindex?language=objc +func (c_ ComboBox) DeselectItemAtIndex(index int) { + objc.Call[objc.Void](c_, objc.Sel("deselectItemAtIndex:"), index) } // Scrolls the receiver’s pop-up list vertically so that the item at the specified index is as close to the top as possible. [Full Topic] @@ -223,13 +230,6 @@ func (c_ ComboBox) ScrollItemAtIndexToTop(index int) { objc.Call[objc.Void](c_, objc.Sel("scrollItemAtIndexToTop:"), index) } -// Scrolls the receiver’s pop-up list vertically so that the item at the specified index is visible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436776-scrollitematindextovisible?language=objc -func (c_ ComboBox) ScrollItemAtIndexToVisible(index int) { - objc.Call[objc.Void](c_, objc.Sel("scrollItemAtIndexToVisible:"), index) -} - // Selects the first pop-up list item that corresponds to the given object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436737-selectitemwithobjectvalue?language=objc @@ -237,6 +237,13 @@ func (c_ ComboBox) SelectItemWithObjectValue(object objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("selectItemWithObjectValue:"), object) } +// Selects the pop-up list row at the given index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436735-selectitematindex?language=objc +func (c_ ComboBox) SelectItemAtIndex(index int) { + objc.Call[objc.Void](c_, objc.Sel("selectItemAtIndex:"), index) +} + // Returns the object located at the given index within the receiver’s internal item list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436731-itemobjectvalueatindex?language=objc @@ -245,41 +252,11 @@ func (c_ ComboBox) ItemObjectValueAtIndex(index int) objc.Object { return rv } -// Deselects the pop-up list item at the specified index if it’s selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436699-deselectitematindex?language=objc -func (c_ ComboBox) DeselectItemAtIndex(index int) { - objc.Call[objc.Void](c_, objc.Sel("deselectItemAtIndex:"), index) -} - -// Inserts an object at the specified location in the receiver’s internal item list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436703-insertitemwithobjectvalue?language=objc -func (c_ ComboBox) InsertItemWithObjectValueAtIndex(object objc.IObject, index int) { - objc.Call[objc.Void](c_, objc.Sel("insertItemWithObjectValue:atIndex:"), object, index) -} - -// The maximum number of visible items to display in the pop-up list at one time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436741-numberofvisibleitems?language=objc -func (c_ ComboBox) NumberOfVisibleItems() int { - rv := objc.Call[int](c_, objc.Sel("numberOfVisibleItems")) - return rv -} - -// The maximum number of visible items to display in the pop-up list at one time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436741-numberofvisibleitems?language=objc -func (c_ ComboBox) SetNumberOfVisibleItems(value int) { - objc.Call[objc.Void](c_, objc.Sel("setNumberOfVisibleItems:"), value) -} - -// An array of the items from the combo box’s internal list. [Full Topic] +// Marks the receiver as needing redisplay, so that it will reload the data for visible pop-up items and draw the new values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436709-objectvalues?language=objc -func (c_ ComboBox) ObjectValues() []objc.Object { - rv := objc.Call[[]objc.Object](c_, objc.Sel("objectValues")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436717-reloaddata?language=objc +func (c_ ComboBox) ReloadData() { + objc.Call[objc.Void](c_, objc.Sel("reloadData")) } // The object that provides the item data for the combo box. [Full Topic] @@ -305,19 +282,27 @@ func (c_ ComboBox) SetDataSourceObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDataSource:"), valueObject) } -// A Boolean value indicating whether the combo box displays a border. [Full Topic] +// The index of the last item selected from the pop-up list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436711-buttonbordered?language=objc -func (c_ ComboBox) IsButtonBordered() bool { - rv := objc.Call[bool](c_, objc.Sel("isButtonBordered")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436701-indexofselecteditem?language=objc +func (c_ ComboBox) IndexOfSelectedItem() int { + rv := objc.Call[int](c_, objc.Sel("indexOfSelectedItem")) return rv } -// A Boolean value indicating whether the combo box displays a border. [Full Topic] +// The height of each item in the pop-up list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436711-buttonbordered?language=objc -func (c_ ComboBox) SetButtonBordered(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setButtonBordered:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436767-itemheight?language=objc +func (c_ ComboBox) ItemHeight() float64 { + rv := objc.Call[float64](c_, objc.Sel("itemHeight")) + return rv +} + +// The height of each item in the pop-up list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436767-itemheight?language=objc +func (c_ ComboBox) SetItemHeight(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setItemHeight:"), value) } // The object corresponding to the last item selected from the pop-up list. [Full Topic] @@ -328,19 +313,34 @@ func (c_ ComboBox) ObjectValueOfSelectedItem() objc.Object { return rv } -// The horizontal and vertical spacing between cells in the pop-up list. [Full Topic] +// A Boolean value indicating whether the combo box has a vertical scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436771-intercellspacing?language=objc -func (c_ ComboBox) IntercellSpacing() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("intercellSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436705-hasverticalscroller?language=objc +func (c_ ComboBox) HasVerticalScroller() bool { + rv := objc.Call[bool](c_, objc.Sel("hasVerticalScroller")) return rv } -// The horizontal and vertical spacing between cells in the pop-up list. [Full Topic] +// A Boolean value indicating whether the combo box has a vertical scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436771-intercellspacing?language=objc -func (c_ ComboBox) SetIntercellSpacing(value foundation.Size) { - objc.Call[objc.Void](c_, objc.Sel("setIntercellSpacing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436705-hasverticalscroller?language=objc +func (c_ ComboBox) SetHasVerticalScroller(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setHasVerticalScroller:"), value) +} + +// A Boolean value indicating whether the combo box tries to complete what the user types. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436749-completes?language=objc +func (c_ ComboBox) Completes() bool { + rv := objc.Call[bool](c_, objc.Sel("completes")) + return rv +} + +// A Boolean value indicating whether the combo box tries to complete what the user types. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436749-completes?language=objc +func (c_ ComboBox) SetCompletes(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setCompletes:"), value) } // A Boolean value indicating whether the combo box retrieves its items from a data source object. [Full Topic] @@ -358,21 +358,14 @@ func (c_ ComboBox) SetUsesDataSource(value bool) { objc.Call[objc.Void](c_, objc.Sel("setUsesDataSource:"), value) } -// The height of each item in the pop-up list. [Full Topic] +// An array of the items from the combo box’s internal list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436767-itemheight?language=objc -func (c_ ComboBox) ItemHeight() float64 { - rv := objc.Call[float64](c_, objc.Sel("itemHeight")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436709-objectvalues?language=objc +func (c_ ComboBox) ObjectValues() []objc.Object { + rv := objc.Call[[]objc.Object](c_, objc.Sel("objectValues")) return rv } -// The height of each item in the pop-up list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436767-itemheight?language=objc -func (c_ ComboBox) SetItemHeight(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setItemHeight:"), value) -} - // The total number of items in the pop-up list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436747-numberofitems?language=objc @@ -381,40 +374,47 @@ func (c_ ComboBox) NumberOfItems() int { return rv } -// A Boolean value indicating whether the combo box has a vertical scroller. [Full Topic] +// The maximum number of visible items to display in the pop-up list at one time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436705-hasverticalscroller?language=objc -func (c_ ComboBox) HasVerticalScroller() bool { - rv := objc.Call[bool](c_, objc.Sel("hasVerticalScroller")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436741-numberofvisibleitems?language=objc +func (c_ ComboBox) NumberOfVisibleItems() int { + rv := objc.Call[int](c_, objc.Sel("numberOfVisibleItems")) return rv } -// A Boolean value indicating whether the combo box has a vertical scroller. [Full Topic] +// The maximum number of visible items to display in the pop-up list at one time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436705-hasverticalscroller?language=objc -func (c_ ComboBox) SetHasVerticalScroller(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setHasVerticalScroller:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436741-numberofvisibleitems?language=objc +func (c_ ComboBox) SetNumberOfVisibleItems(value int) { + objc.Call[objc.Void](c_, objc.Sel("setNumberOfVisibleItems:"), value) } -// The index of the last item selected from the pop-up list. [Full Topic] +// A Boolean value indicating whether the combo box displays a border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436701-indexofselecteditem?language=objc -func (c_ ComboBox) IndexOfSelectedItem() int { - rv := objc.Call[int](c_, objc.Sel("indexOfSelectedItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436711-buttonbordered?language=objc +func (c_ ComboBox) IsButtonBordered() bool { + rv := objc.Call[bool](c_, objc.Sel("isButtonBordered")) return rv } -// A Boolean value indicating whether the combo box tries to complete what the user types. [Full Topic] +// A Boolean value indicating whether the combo box displays a border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436749-completes?language=objc -func (c_ ComboBox) Completes() bool { - rv := objc.Call[bool](c_, objc.Sel("completes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436711-buttonbordered?language=objc +func (c_ ComboBox) SetButtonBordered(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setButtonBordered:"), value) +} + +// The horizontal and vertical spacing between cells in the pop-up list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436771-intercellspacing?language=objc +func (c_ ComboBox) IntercellSpacing() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("intercellSpacing")) return rv } -// A Boolean value indicating whether the combo box tries to complete what the user types. [Full Topic] +// The horizontal and vertical spacing between cells in the pop-up list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436749-completes?language=objc -func (c_ ComboBox) SetCompletes(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setCompletes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436771-intercellspacing?language=objc +func (c_ ComboBox) SetIntercellSpacing(value foundation.Size) { + objc.Call[objc.Void](c_, objc.Sel("setIntercellSpacing:"), value) } diff --git a/macos/appkit/combo_box_cell.gen.go b/macos/appkit/combo_box_cell.gen.go index 5e09de23..aeb361b5 100644 --- a/macos/appkit/combo_box_cell.gen.go +++ b/macos/appkit/combo_box_cell.gen.go @@ -19,43 +19,43 @@ type _ComboBoxCellClass struct { // An interface definition for the [ComboBoxCell] class. type IComboBoxCell interface { ITextFieldCell - SelectItemWithObjectValue(object objc.IObject) - ScrollItemAtIndexToVisible(index int) - ScrollItemAtIndexToTop(index int) - DeselectItemAtIndex(index int) - CompletedString(string_ string) string + RemoveItemWithObjectValue(object objc.IObject) + NoteNumberOfItemsChanged() + IndexOfItemWithObjectValue(object objc.IObject) int InsertItemWithObjectValueAtIndex(object objc.IObject, index int) - ReloadData() + ScrollItemAtIndexToVisible(index int) RemoveAllItems() - NoteNumberOfItemsChanged() + RemoveItemAtIndex(index int) AddItemWithObjectValue(object objc.IObject) - IndexOfItemWithObjectValue(object objc.IObject) int - RemoveItemWithObjectValue(object objc.IObject) + AddItemsWithObjectValues(objects []objc.IObject) + DeselectItemAtIndex(index int) + ScrollItemAtIndexToTop(index int) + SelectItemWithObjectValue(object objc.IObject) SelectItemAtIndex(index int) - RemoveItemAtIndex(index int) ItemObjectValueAtIndex(index int) objc.Object - AddItemsWithObjectValues(objects []objc.IObject) - ObjectValues() []objc.Object - NumberOfItems() int + CompletedString(string_ string) string + ReloadData() DataSource() ComboBoxCellDataSourceObject SetDataSource(value PComboBoxCellDataSource) SetDataSourceObject(valueObject objc.IObject) - NumberOfVisibleItems() int - SetNumberOfVisibleItems(value int) - IsButtonBordered() bool - SetButtonBordered(value bool) IndexOfSelectedItem() int + ItemHeight() float64 + SetItemHeight(value float64) ObjectValueOfSelectedItem() objc.Object + HasVerticalScroller() bool + SetHasVerticalScroller(value bool) Completes() bool SetCompletes(value bool) UsesDataSource() bool SetUsesDataSource(value bool) - HasVerticalScroller() bool - SetHasVerticalScroller(value bool) + ObjectValues() []objc.Object + NumberOfItems() int + NumberOfVisibleItems() int + SetNumberOfVisibleItems(value int) + IsButtonBordered() bool + SetButtonBordered(value bool) IntercellSpacing() foundation.Size SetIntercellSpacing(value foundation.Size) - ItemHeight() float64 - SetItemHeight(value float64) } // The user interface of a combo box. [Full Topic] @@ -119,39 +119,25 @@ func NewComboBoxCellImageCell(image IImage) ComboBoxCell { return instance } -// Selects the first pop-up list item that corresponds to the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410280-selectitemwithobjectvalue?language=objc -func (c_ ComboBoxCell) SelectItemWithObjectValue(object objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("selectItemWithObjectValue:"), object) -} - -// Scrolls the combo box’s pop-up list vertically so that the item at the given index is visible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410272-scrollitematindextovisible?language=objc -func (c_ ComboBoxCell) ScrollItemAtIndexToVisible(index int) { - objc.Call[objc.Void](c_, objc.Sel("scrollItemAtIndexToVisible:"), index) -} - -// Scrolls the combo box’s pop-up list vertically so that the item at the given index is as close to the top as possible. [Full Topic] +// Removes all occurrences of the specified object from the combo box’s internal item list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410288-scrollitematindextotop?language=objc -func (c_ ComboBoxCell) ScrollItemAtIndexToTop(index int) { - objc.Call[objc.Void](c_, objc.Sel("scrollItemAtIndexToTop:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410295-removeitemwithobjectvalue?language=objc +func (c_ ComboBoxCell) RemoveItemWithObjectValue(object objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("removeItemWithObjectValue:"), object) } -// Deselects the pop-up list item at the given index if it’s selected. [Full Topic] +// Informs the combo box that the number of items in its data source has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410282-deselectitematindex?language=objc -func (c_ ComboBoxCell) DeselectItemAtIndex(index int) { - objc.Call[objc.Void](c_, objc.Sel("deselectItemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410268-notenumberofitemschanged?language=objc +func (c_ ComboBoxCell) NoteNumberOfItemsChanged() { + objc.Call[objc.Void](c_, objc.Sel("noteNumberOfItemsChanged")) } -// Returns a string from the combo box’s pop-up list that starts with the given substring. [Full Topic] +// Searches the combo box’s internal item list for the given object and returns the matching index number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410264-completedstring?language=objc -func (c_ ComboBoxCell) CompletedString(string_ string) string { - rv := objc.Call[string](c_, objc.Sel("completedString:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410283-indexofitemwithobjectvalue?language=objc +func (c_ ComboBoxCell) IndexOfItemWithObjectValue(object objc.IObject) int { + rv := objc.Call[int](c_, objc.Sel("indexOfItemWithObjectValue:"), object) return rv } @@ -162,11 +148,11 @@ func (c_ ComboBoxCell) InsertItemWithObjectValueAtIndex(object objc.IObject, ind objc.Call[objc.Void](c_, objc.Sel("insertItemWithObjectValue:atIndex:"), object, index) } -// Marks the combo box as needing redisplay, so that it will reload the data for visible pop-up items and draw the new values. [Full Topic] +// Scrolls the combo box’s pop-up list vertically so that the item at the given index is visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410248-reloaddata?language=objc -func (c_ ComboBoxCell) ReloadData() { - objc.Call[objc.Void](c_, objc.Sel("reloadData")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410272-scrollitematindextovisible?language=objc +func (c_ ComboBoxCell) ScrollItemAtIndexToVisible(index int) { + objc.Call[objc.Void](c_, objc.Sel("scrollItemAtIndexToVisible:"), index) } // Removes all items from the combo box’s internal item list. [Full Topic] @@ -176,11 +162,11 @@ func (c_ ComboBoxCell) RemoveAllItems() { objc.Call[objc.Void](c_, objc.Sel("removeAllItems")) } -// Informs the combo box that the number of items in its data source has changed. [Full Topic] +// Removes the object at the specified location from the combo box’s internal item list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410268-notenumberofitemschanged?language=objc -func (c_ ComboBoxCell) NoteNumberOfItemsChanged() { - objc.Call[objc.Void](c_, objc.Sel("noteNumberOfItemsChanged")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410276-removeitematindex?language=objc +func (c_ ComboBoxCell) RemoveItemAtIndex(index int) { + objc.Call[objc.Void](c_, objc.Sel("removeItemAtIndex:"), index) } // Adds the specified object to the internal item list. [Full Topic] @@ -190,19 +176,32 @@ func (c_ ComboBoxCell) AddItemWithObjectValue(object objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("addItemWithObjectValue:"), object) } -// Searches the combo box’s internal item list for the given object and returns the matching index number. [Full Topic] +// Adds multiple objects to the internal item list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410283-indexofitemwithobjectvalue?language=objc -func (c_ ComboBoxCell) IndexOfItemWithObjectValue(object objc.IObject) int { - rv := objc.Call[int](c_, objc.Sel("indexOfItemWithObjectValue:"), object) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410300-additemswithobjectvalues?language=objc +func (c_ ComboBoxCell) AddItemsWithObjectValues(objects []objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("addItemsWithObjectValues:"), objects) } -// Removes all occurrences of the specified object from the combo box’s internal item list. [Full Topic] +// Deselects the pop-up list item at the given index if it’s selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410295-removeitemwithobjectvalue?language=objc -func (c_ ComboBoxCell) RemoveItemWithObjectValue(object objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("removeItemWithObjectValue:"), object) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410282-deselectitematindex?language=objc +func (c_ ComboBoxCell) DeselectItemAtIndex(index int) { + objc.Call[objc.Void](c_, objc.Sel("deselectItemAtIndex:"), index) +} + +// Scrolls the combo box’s pop-up list vertically so that the item at the given index is as close to the top as possible. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410288-scrollitematindextotop?language=objc +func (c_ ComboBoxCell) ScrollItemAtIndexToTop(index int) { + objc.Call[objc.Void](c_, objc.Sel("scrollItemAtIndexToTop:"), index) +} + +// Selects the first pop-up list item that corresponds to the specified object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410280-selectitemwithobjectvalue?language=objc +func (c_ ComboBoxCell) SelectItemWithObjectValue(object objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("selectItemWithObjectValue:"), object) } // Selects the pop-up list row at the given index. [Full Topic] @@ -212,13 +211,6 @@ func (c_ ComboBoxCell) SelectItemAtIndex(index int) { objc.Call[objc.Void](c_, objc.Sel("selectItemAtIndex:"), index) } -// Removes the object at the specified location from the combo box’s internal item list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410276-removeitematindex?language=objc -func (c_ ComboBoxCell) RemoveItemAtIndex(index int) { - objc.Call[objc.Void](c_, objc.Sel("removeItemAtIndex:"), index) -} - // Returns the object located at the specified location in the internal item list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410255-itemobjectvalueatindex?language=objc @@ -227,27 +219,19 @@ func (c_ ComboBoxCell) ItemObjectValueAtIndex(index int) objc.Object { return rv } -// Adds multiple objects to the internal item list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410300-additemswithobjectvalues?language=objc -func (c_ ComboBoxCell) AddItemsWithObjectValues(objects []objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("addItemsWithObjectValues:"), objects) -} - -// The combo box’s internal item list in an array. [Full Topic] +// Returns a string from the combo box’s pop-up list that starts with the given substring. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410304-objectvalues?language=objc -func (c_ ComboBoxCell) ObjectValues() []objc.Object { - rv := objc.Call[[]objc.Object](c_, objc.Sel("objectValues")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410264-completedstring?language=objc +func (c_ ComboBoxCell) CompletedString(string_ string) string { + rv := objc.Call[string](c_, objc.Sel("completedString:"), string_) return rv } -// The total number of items in the pop-up list. [Full Topic] +// Marks the combo box as needing redisplay, so that it will reload the data for visible pop-up items and draw the new values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410260-numberofitems?language=objc -func (c_ ComboBoxCell) NumberOfItems() int { - rv := objc.Call[int](c_, objc.Sel("numberOfItems")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410248-reloaddata?language=objc +func (c_ ComboBoxCell) ReloadData() { + objc.Call[objc.Void](c_, objc.Sel("reloadData")) } // The object that provides the data displayed in the combo box’s pop-up list. [Full Topic] @@ -273,50 +257,50 @@ func (c_ ComboBoxCell) SetDataSourceObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDataSource:"), valueObject) } -// The maximum number of items visible in the pop-up list at any one time. [Full Topic] +// The index of the last item selected from the pop-up list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410298-numberofvisibleitems?language=objc -func (c_ ComboBoxCell) NumberOfVisibleItems() int { - rv := objc.Call[int](c_, objc.Sel("numberOfVisibleItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410274-indexofselecteditem?language=objc +func (c_ ComboBoxCell) IndexOfSelectedItem() int { + rv := objc.Call[int](c_, objc.Sel("indexOfSelectedItem")) return rv } -// The maximum number of items visible in the pop-up list at any one time. [Full Topic] +// The height of each item in the combo box’s pop-up list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410298-numberofvisibleitems?language=objc -func (c_ ComboBoxCell) SetNumberOfVisibleItems(value int) { - objc.Call[objc.Void](c_, objc.Sel("setNumberOfVisibleItems:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410306-itemheight?language=objc +func (c_ ComboBoxCell) ItemHeight() float64 { + rv := objc.Call[float64](c_, objc.Sel("itemHeight")) + return rv } -// A Boolean value that indicates whether the combo box button displays a border. [Full Topic] +// The height of each item in the combo box’s pop-up list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410246-buttonbordered?language=objc -func (c_ ComboBoxCell) IsButtonBordered() bool { - rv := objc.Call[bool](c_, objc.Sel("isButtonBordered")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410306-itemheight?language=objc +func (c_ ComboBoxCell) SetItemHeight(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setItemHeight:"), value) } -// A Boolean value that indicates whether the combo box button displays a border. [Full Topic] +// The object corresponding to the last item selected from the pop-up list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410246-buttonbordered?language=objc -func (c_ ComboBoxCell) SetButtonBordered(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setButtonBordered:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410278-objectvalueofselecteditem?language=objc +func (c_ ComboBoxCell) ObjectValueOfSelectedItem() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("objectValueOfSelectedItem")) + return rv } -// The index of the last item selected from the pop-up list. [Full Topic] +// A Boolean value that indicates if the combo box displays a vertical scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410274-indexofselecteditem?language=objc -func (c_ ComboBoxCell) IndexOfSelectedItem() int { - rv := objc.Call[int](c_, objc.Sel("indexOfSelectedItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410252-hasverticalscroller?language=objc +func (c_ ComboBoxCell) HasVerticalScroller() bool { + rv := objc.Call[bool](c_, objc.Sel("hasVerticalScroller")) return rv } -// The object corresponding to the last item selected from the pop-up list. [Full Topic] +// A Boolean value that indicates if the combo box displays a vertical scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410278-objectvalueofselecteditem?language=objc -func (c_ ComboBoxCell) ObjectValueOfSelectedItem() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("objectValueOfSelectedItem")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410252-hasverticalscroller?language=objc +func (c_ ComboBoxCell) SetHasVerticalScroller(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setHasVerticalScroller:"), value) } // A Boolean value that indicates if the combo box tries to complete text entered by the user. [Full Topic] @@ -349,19 +333,50 @@ func (c_ ComboBoxCell) SetUsesDataSource(value bool) { objc.Call[objc.Void](c_, objc.Sel("setUsesDataSource:"), value) } -// A Boolean value that indicates if the combo box displays a vertical scroller. [Full Topic] +// The combo box’s internal item list in an array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410252-hasverticalscroller?language=objc -func (c_ ComboBoxCell) HasVerticalScroller() bool { - rv := objc.Call[bool](c_, objc.Sel("hasVerticalScroller")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410304-objectvalues?language=objc +func (c_ ComboBoxCell) ObjectValues() []objc.Object { + rv := objc.Call[[]objc.Object](c_, objc.Sel("objectValues")) return rv } -// A Boolean value that indicates if the combo box displays a vertical scroller. [Full Topic] +// The total number of items in the pop-up list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410252-hasverticalscroller?language=objc -func (c_ ComboBoxCell) SetHasVerticalScroller(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setHasVerticalScroller:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410260-numberofitems?language=objc +func (c_ ComboBoxCell) NumberOfItems() int { + rv := objc.Call[int](c_, objc.Sel("numberOfItems")) + return rv +} + +// The maximum number of items visible in the pop-up list at any one time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410298-numberofvisibleitems?language=objc +func (c_ ComboBoxCell) NumberOfVisibleItems() int { + rv := objc.Call[int](c_, objc.Sel("numberOfVisibleItems")) + return rv +} + +// The maximum number of items visible in the pop-up list at any one time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410298-numberofvisibleitems?language=objc +func (c_ ComboBoxCell) SetNumberOfVisibleItems(value int) { + objc.Call[objc.Void](c_, objc.Sel("setNumberOfVisibleItems:"), value) +} + +// A Boolean value that indicates whether the combo box button displays a border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410246-buttonbordered?language=objc +func (c_ ComboBoxCell) IsButtonBordered() bool { + rv := objc.Call[bool](c_, objc.Sel("isButtonBordered")) + return rv +} + +// A Boolean value that indicates whether the combo box button displays a border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410246-buttonbordered?language=objc +func (c_ ComboBoxCell) SetButtonBordered(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setButtonBordered:"), value) } // The spacing between cells in the combo box’s pop-up list. [Full Topic] @@ -378,18 +393,3 @@ func (c_ ComboBoxCell) IntercellSpacing() foundation.Size { func (c_ ComboBoxCell) SetIntercellSpacing(value foundation.Size) { objc.Call[objc.Void](c_, objc.Sel("setIntercellSpacing:"), value) } - -// The height of each item in the combo box’s pop-up list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410306-itemheight?language=objc -func (c_ ComboBoxCell) ItemHeight() float64 { - rv := objc.Call[float64](c_, objc.Sel("itemHeight")) - return rv -} - -// The height of each item in the combo box’s pop-up list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410306-itemheight?language=objc -func (c_ ComboBoxCell) SetItemHeight(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setItemHeight:"), value) -} diff --git a/macos/appkit/combo_box_cell_data_source_protocol.gen.go b/macos/appkit/combo_box_cell_data_source_protocol.gen.go index 335aaf50..f19a2b1b 100644 --- a/macos/appkit/combo_box_cell_data_source_protocol.gen.go +++ b/macos/appkit/combo_box_cell_data_source_protocol.gen.go @@ -17,14 +17,6 @@ type PComboBoxCellDataSource interface { // optional ComboBoxCellObjectValueForItemAtIndex(comboBoxCell ComboBoxCell, index int) objc.Object HasComboBoxCellObjectValueForItemAtIndex() bool - - // optional - ComboBoxCellIndexOfItemWithStringValue(comboBoxCell ComboBoxCell, string_ string) uint - HasComboBoxCellIndexOfItemWithStringValue() bool - - // optional - ComboBoxCellCompletedString(comboBoxCell ComboBoxCell, uncompletedString string) string - HasComboBoxCellCompletedString() bool } // ensure impl type implements protocol interface @@ -58,27 +50,3 @@ func (c_ ComboBoxCellDataSourceObject) ComboBoxCellObjectValueForItemAtIndex(com rv := objc.Call[objc.Object](c_, objc.Sel("comboBoxCell:objectValueForItemAtIndex:"), comboBoxCell, index) return rv } - -func (c_ ComboBoxCellDataSourceObject) HasComboBoxCellIndexOfItemWithStringValue() bool { - return c_.RespondsToSelector(objc.Sel("comboBoxCell:indexOfItemWithStringValue:")) -} - -// Invoked by an NSComboBoxCell object to synchronize the pop-up list’s selected item with the text field’s contents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcelldatasource/1410285-comboboxcell?language=objc -func (c_ ComboBoxCellDataSourceObject) ComboBoxCellIndexOfItemWithStringValue(comboBoxCell ComboBoxCell, string_ string) uint { - rv := objc.Call[uint](c_, objc.Sel("comboBoxCell:indexOfItemWithStringValue:"), comboBoxCell, string_) - return rv -} - -func (c_ ComboBoxCellDataSourceObject) HasComboBoxCellCompletedString() bool { - return c_.RespondsToSelector(objc.Sel("comboBoxCell:completedString:")) -} - -// Returns the item from the combo box's pop-up list that matches the text entered by the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcelldatasource/1410250-comboboxcell?language=objc -func (c_ ComboBoxCellDataSourceObject) ComboBoxCellCompletedString(comboBoxCell ComboBoxCell, uncompletedString string) string { - rv := objc.Call[string](c_, objc.Sel("comboBoxCell:completedString:"), comboBoxCell, uncompletedString) - return rv -} diff --git a/macos/appkit/combo_box_data_source_protocol.gen.go b/macos/appkit/combo_box_data_source_protocol.gen.go index 5f1bbb2a..4041fb16 100644 --- a/macos/appkit/combo_box_data_source_protocol.gen.go +++ b/macos/appkit/combo_box_data_source_protocol.gen.go @@ -10,21 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdatasource?language=objc type PComboBoxDataSource interface { - // optional - ComboBoxObjectValueForItemAtIndex(comboBox ComboBox, index int) objc.Object - HasComboBoxObjectValueForItemAtIndex() bool - - // optional - ComboBoxCompletedString(comboBox ComboBox, string_ string) string - HasComboBoxCompletedString() bool - - // optional - ComboBoxIndexOfItemWithStringValue(comboBox ComboBox, string_ string) uint - HasComboBoxIndexOfItemWithStringValue() bool - // optional NumberOfItemsInComboBox(comboBox ComboBox) int HasNumberOfItemsInComboBox() bool + + // optional + ComboBoxObjectValueForItemAtIndex(comboBox ComboBox, index int) objc.Object + HasComboBoxObjectValueForItemAtIndex() bool } // ensure impl type implements protocol interface @@ -35,42 +27,6 @@ type ComboBoxDataSourceObject struct { objc.Object } -func (c_ ComboBoxDataSourceObject) HasComboBoxObjectValueForItemAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("comboBox:objectValueForItemAtIndex:")) -} - -// Returns the object that corresponds to the item at the specified index in the combo box. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdatasource/1436753-combobox?language=objc -func (c_ ComboBoxDataSourceObject) ComboBoxObjectValueForItemAtIndex(comboBox ComboBox, index int) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("comboBox:objectValueForItemAtIndex:"), comboBox, index) - return rv -} - -func (c_ ComboBoxDataSourceObject) HasComboBoxCompletedString() bool { - return c_.RespondsToSelector(objc.Sel("comboBox:completedString:")) -} - -// Returns the first item from the pop-up list that starts with the text the user has typed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdatasource/1436733-combobox?language=objc -func (c_ ComboBoxDataSourceObject) ComboBoxCompletedString(comboBox ComboBox, string_ string) string { - rv := objc.Call[string](c_, objc.Sel("comboBox:completedString:"), comboBox, string_) - return rv -} - -func (c_ ComboBoxDataSourceObject) HasComboBoxIndexOfItemWithStringValue() bool { - return c_.RespondsToSelector(objc.Sel("comboBox:indexOfItemWithStringValue:")) -} - -// Returns the index of the combo box item matching the specified string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdatasource/1436713-combobox?language=objc -func (c_ ComboBoxDataSourceObject) ComboBoxIndexOfItemWithStringValue(comboBox ComboBox, string_ string) uint { - rv := objc.Call[uint](c_, objc.Sel("comboBox:indexOfItemWithStringValue:"), comboBox, string_) - return rv -} - func (c_ ComboBoxDataSourceObject) HasNumberOfItemsInComboBox() bool { return c_.RespondsToSelector(objc.Sel("numberOfItemsInComboBox:")) } @@ -82,3 +38,15 @@ func (c_ ComboBoxDataSourceObject) NumberOfItemsInComboBox(comboBox ComboBox) in rv := objc.Call[int](c_, objc.Sel("numberOfItemsInComboBox:"), comboBox) return rv } + +func (c_ ComboBoxDataSourceObject) HasComboBoxObjectValueForItemAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("comboBox:objectValueForItemAtIndex:")) +} + +// Returns the object that corresponds to the item at the specified index in the combo box. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdatasource/1436753-combobox?language=objc +func (c_ ComboBoxDataSourceObject) ComboBoxObjectValueForItemAtIndex(comboBox ComboBox, index int) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("comboBox:objectValueForItemAtIndex:"), comboBox, index) + return rv +} diff --git a/macos/appkit/combo_box_delegate.gen.go b/macos/appkit/combo_box_delegate.gen.go index 435d8d72..b22ecd59 100644 --- a/macos/appkit/combo_box_delegate.gen.go +++ b/macos/appkit/combo_box_delegate.gen.go @@ -12,14 +12,6 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate?language=objc type PComboBoxDelegate interface { PTextFieldDelegate - // optional - ComboBoxWillDismiss(notification foundation.Notification) - HasComboBoxWillDismiss() bool - - // optional - ComboBoxSelectionIsChanging(notification foundation.Notification) - HasComboBoxSelectionIsChanging() bool - // optional ComboBoxSelectionDidChange(notification foundation.Notification) HasComboBoxSelectionDidChange() bool @@ -27,51 +19,25 @@ type PComboBoxDelegate interface { // optional ComboBoxWillPopUp(notification foundation.Notification) HasComboBoxWillPopUp() bool + + // optional + ComboBoxWillDismiss(notification foundation.Notification) + HasComboBoxWillDismiss() bool + + // optional + ComboBoxSelectionIsChanging(notification foundation.Notification) + HasComboBoxSelectionIsChanging() bool } // A delegate implementation builder for the [PComboBoxDelegate] protocol. type ComboBoxDelegate struct { TextFieldDelegate - _ComboBoxWillDismiss func(notification foundation.Notification) - _ComboBoxSelectionIsChanging func(notification foundation.Notification) _ComboBoxSelectionDidChange func(notification foundation.Notification) _ComboBoxWillPopUp func(notification foundation.Notification) + _ComboBoxWillDismiss func(notification foundation.Notification) + _ComboBoxSelectionIsChanging func(notification foundation.Notification) } -func (di *ComboBoxDelegate) HasComboBoxWillDismiss() bool { - return di._ComboBoxWillDismiss != nil -} - -// Informs the delegate that the pop-up list is about to be dismissed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436763-comboboxwilldismiss?language=objc -func (di *ComboBoxDelegate) SetComboBoxWillDismiss(f func(notification foundation.Notification)) { - di._ComboBoxWillDismiss = f -} - -// Informs the delegate that the pop-up list is about to be dismissed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436763-comboboxwilldismiss?language=objc -func (di *ComboBoxDelegate) ComboBoxWillDismiss(notification foundation.Notification) { - di._ComboBoxWillDismiss(notification) -} -func (di *ComboBoxDelegate) HasComboBoxSelectionIsChanging() bool { - return di._ComboBoxSelectionIsChanging != nil -} - -// Informs the delegate that the pop-up list selection is changing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436715-comboboxselectionischanging?language=objc -func (di *ComboBoxDelegate) SetComboBoxSelectionIsChanging(f func(notification foundation.Notification)) { - di._ComboBoxSelectionIsChanging = f -} - -// Informs the delegate that the pop-up list selection is changing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436715-comboboxselectionischanging?language=objc -func (di *ComboBoxDelegate) ComboBoxSelectionIsChanging(notification foundation.Notification) { - di._ComboBoxSelectionIsChanging(notification) -} func (di *ComboBoxDelegate) HasComboBoxSelectionDidChange() bool { return di._ComboBoxSelectionDidChange != nil } @@ -106,35 +72,47 @@ func (di *ComboBoxDelegate) SetComboBoxWillPopUp(f func(notification foundation. func (di *ComboBoxDelegate) ComboBoxWillPopUp(notification foundation.Notification) { di._ComboBoxWillPopUp(notification) } - -// ensure impl type implements protocol interface -var _ PComboBoxDelegate = (*ComboBoxDelegateObject)(nil) - -// A concrete type for the [PComboBoxDelegate] protocol. -type ComboBoxDelegateObject struct { - TextFieldDelegateObject +func (di *ComboBoxDelegate) HasComboBoxWillDismiss() bool { + return di._ComboBoxWillDismiss != nil } -func (c_ ComboBoxDelegateObject) HasComboBoxWillDismiss() bool { - return c_.RespondsToSelector(objc.Sel("comboBoxWillDismiss:")) +// Informs the delegate that the pop-up list is about to be dismissed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436763-comboboxwilldismiss?language=objc +func (di *ComboBoxDelegate) SetComboBoxWillDismiss(f func(notification foundation.Notification)) { + di._ComboBoxWillDismiss = f } // Informs the delegate that the pop-up list is about to be dismissed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436763-comboboxwilldismiss?language=objc -func (c_ ComboBoxDelegateObject) ComboBoxWillDismiss(notification foundation.Notification) { - objc.Call[objc.Void](c_, objc.Sel("comboBoxWillDismiss:"), notification) +func (di *ComboBoxDelegate) ComboBoxWillDismiss(notification foundation.Notification) { + di._ComboBoxWillDismiss(notification) +} +func (di *ComboBoxDelegate) HasComboBoxSelectionIsChanging() bool { + return di._ComboBoxSelectionIsChanging != nil } -func (c_ ComboBoxDelegateObject) HasComboBoxSelectionIsChanging() bool { - return c_.RespondsToSelector(objc.Sel("comboBoxSelectionIsChanging:")) +// Informs the delegate that the pop-up list selection is changing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436715-comboboxselectionischanging?language=objc +func (di *ComboBoxDelegate) SetComboBoxSelectionIsChanging(f func(notification foundation.Notification)) { + di._ComboBoxSelectionIsChanging = f } // Informs the delegate that the pop-up list selection is changing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436715-comboboxselectionischanging?language=objc -func (c_ ComboBoxDelegateObject) ComboBoxSelectionIsChanging(notification foundation.Notification) { - objc.Call[objc.Void](c_, objc.Sel("comboBoxSelectionIsChanging:"), notification) +func (di *ComboBoxDelegate) ComboBoxSelectionIsChanging(notification foundation.Notification) { + di._ComboBoxSelectionIsChanging(notification) +} + +// ensure impl type implements protocol interface +var _ PComboBoxDelegate = (*ComboBoxDelegateObject)(nil) + +// A concrete type for the [PComboBoxDelegate] protocol. +type ComboBoxDelegateObject struct { + TextFieldDelegateObject } func (c_ ComboBoxDelegateObject) HasComboBoxSelectionDidChange() bool { @@ -158,3 +136,25 @@ func (c_ ComboBoxDelegateObject) HasComboBoxWillPopUp() bool { func (c_ ComboBoxDelegateObject) ComboBoxWillPopUp(notification foundation.Notification) { objc.Call[objc.Void](c_, objc.Sel("comboBoxWillPopUp:"), notification) } + +func (c_ ComboBoxDelegateObject) HasComboBoxWillDismiss() bool { + return c_.RespondsToSelector(objc.Sel("comboBoxWillDismiss:")) +} + +// Informs the delegate that the pop-up list is about to be dismissed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436763-comboboxwilldismiss?language=objc +func (c_ ComboBoxDelegateObject) ComboBoxWillDismiss(notification foundation.Notification) { + objc.Call[objc.Void](c_, objc.Sel("comboBoxWillDismiss:"), notification) +} + +func (c_ ComboBoxDelegateObject) HasComboBoxSelectionIsChanging() bool { + return c_.RespondsToSelector(objc.Sel("comboBoxSelectionIsChanging:")) +} + +// Informs the delegate that the pop-up list selection is changing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436715-comboboxselectionischanging?language=objc +func (c_ ComboBoxDelegateObject) ComboBoxSelectionIsChanging(notification foundation.Notification) { + objc.Call[objc.Void](c_, objc.Sel("comboBoxSelectionIsChanging:"), notification) +} diff --git a/macos/appkit/control.gen.go b/macos/appkit/control.gen.go index 5058a51e..49f96042 100644 --- a/macos/appkit/control.gen.go +++ b/macos/appkit/control.gen.go @@ -19,67 +19,67 @@ type _ControlClass struct { // An interface definition for the [Control] class. type IControl interface { IView - TakeIntValueFrom(sender objc.IObject) - SelectWithFrameEditorDelegateStartLength(rect foundation.Rect, textObj IText, delegate objc.IObject, selStart int, selLength int) - TakeDoubleValueFrom(sender objc.IObject) - SendActionOn(mask EventMask) int - SizeThatFits(size foundation.Size) foundation.Size - AbortEditing() bool - TakeIntegerValueFrom(sender objc.IObject) SendActionTo(action objc.Selector, target objc.IObject) bool - PerformClick(sender objc.IObject) + SizeThatFits(size foundation.Size) foundation.Size TakeObjectValueFrom(sender objc.IObject) - EndEditing(textObj IText) - SizeToFit() + InvalidateIntrinsicContentSizeForCell(cell ICell) + ValidateEditing() TakeStringValueFrom(sender objc.IObject) - EditWithFrameEditorDelegateEvent(rect foundation.Rect, textObj IText, delegate objc.IObject, event IEvent) - ExpansionFrameWithFrame(contentFrame foundation.Rect) foundation.Rect CurrentEditor() Text - ValidateEditing() - InvalidateIntrinsicContentSizeForCell(cell ICell) DrawWithExpansionFrameInView(contentFrame foundation.Rect, view IView) + AbortEditing() bool TakeFloatValueFrom(sender objc.IObject) - Action() objc.Selector - SetAction(value objc.Selector) - BaseWritingDirection() WritingDirection - SetBaseWritingDirection(value WritingDirection) + TakeDoubleValueFrom(sender objc.IObject) + EditWithFrameEditorDelegateEvent(rect foundation.Rect, textObj IText, delegate objc.IObject, event IEvent) + TakeIntegerValueFrom(sender objc.IObject) + EndEditing(textObj IText) + PerformClick(sender objc.IObject) + SizeToFit() + TakeIntValueFrom(sender objc.IObject) + SendActionOn(mask EventMask) int + ExpansionFrameWithFrame(contentFrame foundation.Rect) foundation.Rect + SelectWithFrameEditorDelegateStartLength(rect foundation.Rect, textObj IText, delegate objc.IObject, selStart int, selLength int) + IntegerValue() int + SetIntegerValue(value int) IsHighlighted() bool SetHighlighted(value bool) - Formatter() foundation.Formatter - SetFormatter(value foundation.IFormatter) - FloatValue() float32 - SetFloatValue(value float32) IntValue() int SetIntValue(value int) - SetTag(value int) - ObjectValue() objc.Object - SetObjectValue(value objc.IObject) - Alignment() TextAlignment - SetAlignment(value TextAlignment) ControlSize() ControlSize SetControlSize(value ControlSize) - Font() Font - SetFont(value IFont) - IgnoresMultiClick() bool - SetIgnoresMultiClick(value bool) + Target() objc.Object + SetTarget(value objc.IObject) UsesSingleLineMode() bool SetUsesSingleLineMode(value bool) - IntegerValue() int - SetIntegerValue(value int) + Action() objc.Selector + SetAction(value objc.Selector) AllowsExpansionToolTips() bool SetAllowsExpansionToolTips(value bool) IsContinuous() bool SetContinuous(value bool) - DoubleValue() float64 - SetDoubleValue(value float64) - IsEnabled() bool - SetEnabled(value bool) AttributedStringValue() foundation.AttributedString SetAttributedStringValue(value foundation.IAttributedString) StringValue() string SetStringValue(value string) - Target() objc.Object - SetTarget(value objc.IObject) + Alignment() TextAlignment + SetAlignment(value TextAlignment) + Formatter() foundation.Formatter + SetFormatter(value foundation.IFormatter) + DoubleValue() float64 + SetDoubleValue(value float64) + Font() Font + SetFont(value IFont) + IgnoresMultiClick() bool + SetIgnoresMultiClick(value bool) + ObjectValue() objc.Object + SetObjectValue(value objc.IObject) + SetTag(value int) + BaseWritingDirection() WritingDirection + SetBaseWritingDirection(value WritingDirection) + FloatValue() float32 + SetFloatValue(value float32) + IsEnabled() bool + SetEnabled(value bool) RefusesFirstResponder() bool SetRefusesFirstResponder(value bool) } @@ -131,43 +131,65 @@ func (c_ Control) Init() Control { return rv } -// Sets the value of the receiver’s cell to an integer value obtained from the specified object. [Full Topic] +// Causes the specified action to be sent to the target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428859-takeintvaluefrom?language=objc -func (c_ Control) TakeIntValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeIntValueFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428851-sendaction?language=objc +func (c_ Control) SendActionTo(action objc.Selector, target objc.IObject) bool { + rv := objc.Call[bool](c_, objc.Sel("sendAction:to:"), action, target) + return rv } -// Selects the specified text range in the receiver's field editor. [Full Topic] +// Asks the control to calculate and return the size that best fits the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428968-selectwithframe?language=objc -func (c_ Control) SelectWithFrameEditorDelegateStartLength(rect foundation.Rect, textObj IText, delegate objc.IObject, selStart int, selLength int) { - objc.Call[objc.Void](c_, objc.Sel("selectWithFrame:editor:delegate:start:length:"), rect, textObj, delegate, selStart, selLength) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428902-sizethatfits?language=objc +func (c_ Control) SizeThatFits(size foundation.Size) foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("sizeThatFits:"), size) + return rv } -// Sets the value of the receiver’s cell to a double-precision floating-point value obtained from the specified object. [Full Topic] +// Sets the value of the receiver’s cell to the object value obtained from the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428958-takedoublevaluefrom?language=objc -func (c_ Control) TakeDoubleValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeDoubleValueFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428853-takeobjectvaluefrom?language=objc +func (c_ Control) TakeObjectValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeObjectValueFrom:"), sender) } -// Sets the conditions on which the receiver sends action messages to its target. [Full Topic] +// Notifies the control that the intrinsic content size for its cell is no longer valid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428972-sendactionon?language=objc -func (c_ Control) SendActionOn(mask EventMask) int { - rv := objc.Call[int](c_, objc.Sel("sendActionOn:"), mask) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1526876-invalidateintrinsiccontentsizefo?language=objc +func (c_ Control) InvalidateIntrinsicContentSizeForCell(cell ICell) { + objc.Call[objc.Void](c_, objc.Sel("invalidateIntrinsicContentSizeForCell:"), cell) } -// Asks the control to calculate and return the size that best fits the specified size. [Full Topic] +// Validates changes to any user-typed text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428902-sizethatfits?language=objc -func (c_ Control) SizeThatFits(size foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("sizeThatFits:"), size) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428855-validateediting?language=objc +func (c_ Control) ValidateEditing() { + objc.Call[objc.Void](c_, objc.Sel("validateEditing")) +} + +// Sets the value of the receiver’s cell to the string value obtained from the specified object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428912-takestringvaluefrom?language=objc +func (c_ Control) TakeStringValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeStringValueFrom:"), sender) +} + +// Returns the current field editor for the control. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428980-currenteditor?language=objc +func (c_ Control) CurrentEditor() Text { + rv := objc.Call[Text](c_, objc.Sel("currentEditor")) return rv } +// Performs custom expansion tool tip drawing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428895-drawwithexpansionframe?language=objc +func (c_ Control) DrawWithExpansionFrameInView(contentFrame foundation.Rect, view IView) { + objc.Call[objc.Void](c_, objc.Sel("drawWithExpansionFrame:inView:"), contentFrame, view) +} + // Terminates the current editing operation and discards any edited text. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428867-abortediting?language=objc @@ -176,33 +198,32 @@ func (c_ Control) AbortEditing() bool { return rv } -// Sets the value of the receiver’s cell to an NSInteger value obtained from the specified object. [Full Topic] +// Sets the value of the receiver’s cell to a single-precision floating-point value obtained from the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428875-takeintegervaluefrom?language=objc -func (c_ Control) TakeIntegerValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeIntegerValueFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428938-takefloatvaluefrom?language=objc +func (c_ Control) TakeFloatValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeFloatValueFrom:"), sender) } -// Causes the specified action to be sent to the target. [Full Topic] +// Sets the value of the receiver’s cell to a double-precision floating-point value obtained from the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428851-sendaction?language=objc -func (c_ Control) SendActionTo(action objc.Selector, target objc.IObject) bool { - rv := objc.Call[bool](c_, objc.Sel("sendAction:to:"), action, target) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428958-takedoublevaluefrom?language=objc +func (c_ Control) TakeDoubleValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeDoubleValueFrom:"), sender) } -// Simulates a single mouse click on the receiver. [Full Topic] +// Begins editing of the receiver’s text using the specified field editor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428974-performclick?language=objc -func (c_ Control) PerformClick(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("performClick:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428919-editwithframe?language=objc +func (c_ Control) EditWithFrameEditorDelegateEvent(rect foundation.Rect, textObj IText, delegate objc.IObject, event IEvent) { + objc.Call[objc.Void](c_, objc.Sel("editWithFrame:editor:delegate:event:"), rect, textObj, delegate, event) } -// Sets the value of the receiver’s cell to the object value obtained from the specified object. [Full Topic] +// Sets the value of the receiver’s cell to an NSInteger value obtained from the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428853-takeobjectvaluefrom?language=objc -func (c_ Control) TakeObjectValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeObjectValueFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428875-takeintegervaluefrom?language=objc +func (c_ Control) TakeIntegerValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeIntegerValueFrom:"), sender) } // Ends the editing of text in the receiver using the specified field editor. [Full Topic] @@ -212,6 +233,13 @@ func (c_ Control) EndEditing(textObj IText) { objc.Call[objc.Void](c_, objc.Sel("endEditing:"), textObj) } +// Simulates a single mouse click on the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428974-performclick?language=objc +func (c_ Control) PerformClick(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("performClick:"), sender) +} + // Resizes the receiver’s frame so that it’s the minimum size needed to contain its cell. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428877-sizetofit?language=objc @@ -219,18 +247,19 @@ func (c_ Control) SizeToFit() { objc.Call[objc.Void](c_, objc.Sel("sizeToFit")) } -// Sets the value of the receiver’s cell to the string value obtained from the specified object. [Full Topic] +// Sets the value of the receiver’s cell to an integer value obtained from the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428912-takestringvaluefrom?language=objc -func (c_ Control) TakeStringValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeStringValueFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428859-takeintvaluefrom?language=objc +func (c_ Control) TakeIntValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeIntValueFrom:"), sender) } -// Begins editing of the receiver’s text using the specified field editor. [Full Topic] +// Sets the conditions on which the receiver sends action messages to its target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428919-editwithframe?language=objc -func (c_ Control) EditWithFrameEditorDelegateEvent(rect foundation.Rect, textObj IText, delegate objc.IObject, event IEvent) { - objc.Call[objc.Void](c_, objc.Sel("editWithFrame:editor:delegate:event:"), rect, textObj, delegate, event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428972-sendactionon?language=objc +func (c_ Control) SendActionOn(mask EventMask) int { + rv := objc.Call[int](c_, objc.Sel("sendActionOn:"), mask) + return rv } // The frame in which a tool tip can be displayed, if needed. [Full Topic] @@ -241,152 +270,176 @@ func (c_ Control) ExpansionFrameWithFrame(contentFrame foundation.Rect) foundati return rv } -// Returns the current field editor for the control. [Full Topic] +// Selects the specified text range in the receiver's field editor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428980-currenteditor?language=objc -func (c_ Control) CurrentEditor() Text { - rv := objc.Call[Text](c_, objc.Sel("currentEditor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428968-selectwithframe?language=objc +func (c_ Control) SelectWithFrameEditorDelegateStartLength(rect foundation.Rect, textObj IText, delegate objc.IObject, selStart int, selLength int) { + objc.Call[objc.Void](c_, objc.Sel("selectWithFrame:editor:delegate:start:length:"), rect, textObj, delegate, selStart, selLength) } -// Validates changes to any user-typed text. [Full Topic] +// The value of the receiver’s cell as an NSInteger value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428855-validateediting?language=objc -func (c_ Control) ValidateEditing() { - objc.Call[objc.Void](c_, objc.Sel("validateEditing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428969-integervalue?language=objc +func (c_ Control) IntegerValue() int { + rv := objc.Call[int](c_, objc.Sel("integerValue")) + return rv } -// Notifies the control that the intrinsic content size for its cell is no longer valid. [Full Topic] +// The value of the receiver’s cell as an NSInteger value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1526876-invalidateintrinsiccontentsizefo?language=objc -func (c_ Control) InvalidateIntrinsicContentSizeForCell(cell ICell) { - objc.Call[objc.Void](c_, objc.Sel("invalidateIntrinsicContentSizeForCell:"), cell) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428969-integervalue?language=objc +func (c_ Control) SetIntegerValue(value int) { + objc.Call[objc.Void](c_, objc.Sel("setIntegerValue:"), value) } -// Performs custom expansion tool tip drawing. [Full Topic] +// A Boolean value that indicates whether the cell is highlighted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428895-drawwithexpansionframe?language=objc -func (c_ Control) DrawWithExpansionFrameInView(contentFrame foundation.Rect, view IView) { - objc.Call[objc.Void](c_, objc.Sel("drawWithExpansionFrame:inView:"), contentFrame, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428927-highlighted?language=objc +func (c_ Control) IsHighlighted() bool { + rv := objc.Call[bool](c_, objc.Sel("isHighlighted")) + return rv } -// Sets the value of the receiver’s cell to a single-precision floating-point value obtained from the specified object. [Full Topic] +// A Boolean value that indicates whether the cell is highlighted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428938-takefloatvaluefrom?language=objc -func (c_ Control) TakeFloatValueFrom(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("takeFloatValueFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428927-highlighted?language=objc +func (c_ Control) SetHighlighted(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setHighlighted:"), value) } -// The default action-message selector associated with the control. [Full Topic] +// The value of the receiver’s cell as an integer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428956-action?language=objc -func (c_ Control) Action() objc.Selector { - rv := objc.Call[objc.Selector](c_, objc.Sel("action")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428939-intvalue?language=objc +func (c_ Control) IntValue() int { + rv := objc.Call[int](c_, objc.Sel("intValue")) return rv } -// The default action-message selector associated with the control. [Full Topic] +// The value of the receiver’s cell as an integer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428956-action?language=objc -func (c_ Control) SetAction(value objc.Selector) { - objc.Call[objc.Void](c_, objc.Sel("setAction:"), value) -} +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428939-intvalue?language=objc +func (c_ Control) SetIntValue(value int) { + objc.Call[objc.Void](c_, objc.Sel("setIntValue:"), value) +} -// The initial writing direction used to determine the actual writing direction for text. [Full Topic] +// The size of the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428921-basewritingdirection?language=objc -func (c_ Control) BaseWritingDirection() WritingDirection { - rv := objc.Call[WritingDirection](c_, objc.Sel("baseWritingDirection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428871-controlsize?language=objc +func (c_ Control) ControlSize() ControlSize { + rv := objc.Call[ControlSize](c_, objc.Sel("controlSize")) return rv } -// The initial writing direction used to determine the actual writing direction for text. [Full Topic] +// The size of the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428921-basewritingdirection?language=objc -func (c_ Control) SetBaseWritingDirection(value WritingDirection) { - objc.Call[objc.Void](c_, objc.Sel("setBaseWritingDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428871-controlsize?language=objc +func (c_ Control) SetControlSize(value ControlSize) { + objc.Call[objc.Void](c_, objc.Sel("setControlSize:"), value) } -// A Boolean value that indicates whether the cell is highlighted. [Full Topic] +// The target object that receives action messages from the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428927-highlighted?language=objc -func (c_ Control) IsHighlighted() bool { - rv := objc.Call[bool](c_, objc.Sel("isHighlighted")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428885-target?language=objc +func (c_ Control) Target() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("target")) return rv } -// A Boolean value that indicates whether the cell is highlighted. [Full Topic] +// The target object that receives action messages from the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428927-highlighted?language=objc -func (c_ Control) SetHighlighted(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setHighlighted:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428885-target?language=objc +func (c_ Control) SetTarget(value objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setTarget:"), value) } -// The receiver’s formatter. [Full Topic] +// A Boolean value that indicates whether the text in the control’s cell uses single line mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428887-formatter?language=objc -func (c_ Control) Formatter() foundation.Formatter { - rv := objc.Call[foundation.Formatter](c_, objc.Sel("formatter")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428929-usessinglelinemode?language=objc +func (c_ Control) UsesSingleLineMode() bool { + rv := objc.Call[bool](c_, objc.Sel("usesSingleLineMode")) return rv } -// The receiver’s formatter. [Full Topic] +// A Boolean value that indicates whether the text in the control’s cell uses single line mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428887-formatter?language=objc -func (c_ Control) SetFormatter(value foundation.IFormatter) { - objc.Call[objc.Void](c_, objc.Sel("setFormatter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428929-usessinglelinemode?language=objc +func (c_ Control) SetUsesSingleLineMode(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setUsesSingleLineMode:"), value) } -// The value of the receiver’s cell as a single-precision floating-point number. [Full Topic] +// The default action-message selector associated with the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428889-floatvalue?language=objc -func (c_ Control) FloatValue() float32 { - rv := objc.Call[float32](c_, objc.Sel("floatValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428956-action?language=objc +func (c_ Control) Action() objc.Selector { + rv := objc.Call[objc.Selector](c_, objc.Sel("action")) return rv } -// The value of the receiver’s cell as a single-precision floating-point number. [Full Topic] +// The default action-message selector associated with the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428889-floatvalue?language=objc -func (c_ Control) SetFloatValue(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setFloatValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428956-action?language=objc +func (c_ Control) SetAction(value objc.Selector) { + objc.Call[objc.Void](c_, objc.Sel("setAction:"), value) } -// The value of the receiver’s cell as an integer. [Full Topic] +// A Boolean value that indicates whether expansion tool tips are shown when the control is hovered over. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428939-intvalue?language=objc -func (c_ Control) IntValue() int { - rv := objc.Call[int](c_, objc.Sel("intValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428962-allowsexpansiontooltips?language=objc +func (c_ Control) AllowsExpansionToolTips() bool { + rv := objc.Call[bool](c_, objc.Sel("allowsExpansionToolTips")) return rv } -// The value of the receiver’s cell as an integer. [Full Topic] +// A Boolean value that indicates whether expansion tool tips are shown when the control is hovered over. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428939-intvalue?language=objc -func (c_ Control) SetIntValue(value int) { - objc.Call[objc.Void](c_, objc.Sel("setIntValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428962-allowsexpansiontooltips?language=objc +func (c_ Control) SetAllowsExpansionToolTips(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setAllowsExpansionToolTips:"), value) } -// The tag identifying the receiver (not the tag of the receiver’s cell). [Full Topic] +// A Boolean value indicating whether the receiver’s cell sends its action message continuously to its target during mouse tracking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428910-tag?language=objc -func (c_ Control) SetTag(value int) { - objc.Call[objc.Void](c_, objc.Sel("setTag:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428952-continuous?language=objc +func (c_ Control) IsContinuous() bool { + rv := objc.Call[bool](c_, objc.Sel("isContinuous")) + return rv } -// The value of the receiver’s cell as an Objective-C object. [Full Topic] +// A Boolean value indicating whether the receiver’s cell sends its action message continuously to its target during mouse tracking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428849-objectvalue?language=objc -func (c_ Control) ObjectValue() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("objectValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428952-continuous?language=objc +func (c_ Control) SetContinuous(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setContinuous:"), value) +} + +// The value of the receiver’s cell as an attributed string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428916-attributedstringvalue?language=objc +func (c_ Control) AttributedStringValue() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](c_, objc.Sel("attributedStringValue")) return rv } -// The value of the receiver’s cell as an Objective-C object. [Full Topic] +// The value of the receiver’s cell as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428849-objectvalue?language=objc -func (c_ Control) SetObjectValue(value objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setObjectValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428916-attributedstringvalue?language=objc +func (c_ Control) SetAttributedStringValue(value foundation.IAttributedString) { + objc.Call[objc.Void](c_, objc.Sel("setAttributedStringValue:"), value) +} + +// The value of the receiver’s cell as an NSString object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428950-stringvalue?language=objc +func (c_ Control) StringValue() string { + rv := objc.Call[string](c_, objc.Sel("stringValue")) + return rv +} + +// The value of the receiver’s cell as an NSString object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428950-stringvalue?language=objc +func (c_ Control) SetStringValue(value string) { + objc.Call[objc.Void](c_, objc.Sel("setStringValue:"), value) } // The alignment mode of the text in the receiver’s cell. [Full Topic] @@ -404,19 +457,34 @@ func (c_ Control) SetAlignment(value TextAlignment) { objc.Call[objc.Void](c_, objc.Sel("setAlignment:"), value) } -// The size of the control. [Full Topic] +// The receiver’s formatter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428871-controlsize?language=objc -func (c_ Control) ControlSize() ControlSize { - rv := objc.Call[ControlSize](c_, objc.Sel("controlSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428887-formatter?language=objc +func (c_ Control) Formatter() foundation.Formatter { + rv := objc.Call[foundation.Formatter](c_, objc.Sel("formatter")) return rv } -// The size of the control. [Full Topic] +// The receiver’s formatter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428871-controlsize?language=objc -func (c_ Control) SetControlSize(value ControlSize) { - objc.Call[objc.Void](c_, objc.Sel("setControlSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428887-formatter?language=objc +func (c_ Control) SetFormatter(value foundation.IFormatter) { + objc.Call[objc.Void](c_, objc.Sel("setFormatter:"), value) +} + +// The value of the receiver’s cell as a double-precision floating-point number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428942-doublevalue?language=objc +func (c_ Control) DoubleValue() float64 { + rv := objc.Call[float64](c_, objc.Sel("doubleValue")) + return rv +} + +// The value of the receiver’s cell as a double-precision floating-point number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428942-doublevalue?language=objc +func (c_ Control) SetDoubleValue(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setDoubleValue:"), value) } // The font used to draw text in the receiver’s cell. [Full Topic] @@ -449,79 +517,56 @@ func (c_ Control) SetIgnoresMultiClick(value bool) { objc.Call[objc.Void](c_, objc.Sel("setIgnoresMultiClick:"), value) } -// A Boolean value that indicates whether the text in the control’s cell uses single line mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428929-usessinglelinemode?language=objc -func (c_ Control) UsesSingleLineMode() bool { - rv := objc.Call[bool](c_, objc.Sel("usesSingleLineMode")) - return rv -} - -// A Boolean value that indicates whether the text in the control’s cell uses single line mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428929-usessinglelinemode?language=objc -func (c_ Control) SetUsesSingleLineMode(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setUsesSingleLineMode:"), value) -} - -// The value of the receiver’s cell as an NSInteger value. [Full Topic] +// The value of the receiver’s cell as an Objective-C object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428969-integervalue?language=objc -func (c_ Control) IntegerValue() int { - rv := objc.Call[int](c_, objc.Sel("integerValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428849-objectvalue?language=objc +func (c_ Control) ObjectValue() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("objectValue")) return rv } -// The value of the receiver’s cell as an NSInteger value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428969-integervalue?language=objc -func (c_ Control) SetIntegerValue(value int) { - objc.Call[objc.Void](c_, objc.Sel("setIntegerValue:"), value) -} - -// A Boolean value that indicates whether expansion tool tips are shown when the control is hovered over. [Full Topic] +// The value of the receiver’s cell as an Objective-C object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428962-allowsexpansiontooltips?language=objc -func (c_ Control) AllowsExpansionToolTips() bool { - rv := objc.Call[bool](c_, objc.Sel("allowsExpansionToolTips")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428849-objectvalue?language=objc +func (c_ Control) SetObjectValue(value objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setObjectValue:"), value) } -// A Boolean value that indicates whether expansion tool tips are shown when the control is hovered over. [Full Topic] +// The tag identifying the receiver (not the tag of the receiver’s cell). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428962-allowsexpansiontooltips?language=objc -func (c_ Control) SetAllowsExpansionToolTips(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setAllowsExpansionToolTips:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428910-tag?language=objc +func (c_ Control) SetTag(value int) { + objc.Call[objc.Void](c_, objc.Sel("setTag:"), value) } -// A Boolean value indicating whether the receiver’s cell sends its action message continuously to its target during mouse tracking. [Full Topic] +// The initial writing direction used to determine the actual writing direction for text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428952-continuous?language=objc -func (c_ Control) IsContinuous() bool { - rv := objc.Call[bool](c_, objc.Sel("isContinuous")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428921-basewritingdirection?language=objc +func (c_ Control) BaseWritingDirection() WritingDirection { + rv := objc.Call[WritingDirection](c_, objc.Sel("baseWritingDirection")) return rv } -// A Boolean value indicating whether the receiver’s cell sends its action message continuously to its target during mouse tracking. [Full Topic] +// The initial writing direction used to determine the actual writing direction for text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428952-continuous?language=objc -func (c_ Control) SetContinuous(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setContinuous:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428921-basewritingdirection?language=objc +func (c_ Control) SetBaseWritingDirection(value WritingDirection) { + objc.Call[objc.Void](c_, objc.Sel("setBaseWritingDirection:"), value) } -// The value of the receiver’s cell as a double-precision floating-point number. [Full Topic] +// The value of the receiver’s cell as a single-precision floating-point number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428942-doublevalue?language=objc -func (c_ Control) DoubleValue() float64 { - rv := objc.Call[float64](c_, objc.Sel("doubleValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428889-floatvalue?language=objc +func (c_ Control) FloatValue() float32 { + rv := objc.Call[float32](c_, objc.Sel("floatValue")) return rv } -// The value of the receiver’s cell as a double-precision floating-point number. [Full Topic] +// The value of the receiver’s cell as a single-precision floating-point number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428942-doublevalue?language=objc -func (c_ Control) SetDoubleValue(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setDoubleValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428889-floatvalue?language=objc +func (c_ Control) SetFloatValue(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setFloatValue:"), value) } // A Boolean value that indicates whether the receiver reacts to mouse events. [Full Topic] @@ -539,51 +584,6 @@ func (c_ Control) SetEnabled(value bool) { objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) } -// The value of the receiver’s cell as an attributed string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428916-attributedstringvalue?language=objc -func (c_ Control) AttributedStringValue() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](c_, objc.Sel("attributedStringValue")) - return rv -} - -// The value of the receiver’s cell as an attributed string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428916-attributedstringvalue?language=objc -func (c_ Control) SetAttributedStringValue(value foundation.IAttributedString) { - objc.Call[objc.Void](c_, objc.Sel("setAttributedStringValue:"), value) -} - -// The value of the receiver’s cell as an NSString object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428950-stringvalue?language=objc -func (c_ Control) StringValue() string { - rv := objc.Call[string](c_, objc.Sel("stringValue")) - return rv -} - -// The value of the receiver’s cell as an NSString object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428950-stringvalue?language=objc -func (c_ Control) SetStringValue(value string) { - objc.Call[objc.Void](c_, objc.Sel("setStringValue:"), value) -} - -// The target object that receives action messages from the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428885-target?language=objc -func (c_ Control) Target() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("target")) - return rv -} - -// The target object that receives action messages from the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428885-target?language=objc -func (c_ Control) SetTarget(value objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setTarget:"), value) -} - // A Boolean value indicating whether the receiver refuses the first responder role. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428976-refusesfirstresponder?language=objc diff --git a/macos/appkit/control_text_editing_delegate.gen.go b/macos/appkit/control_text_editing_delegate.gen.go index 786a2e71..01d1151d 100644 --- a/macos/appkit/control_text_editing_delegate.gen.go +++ b/macos/appkit/control_text_editing_delegate.gen.go @@ -11,37 +11,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate?language=objc type PControlTextEditingDelegate interface { - // optional - ControlTextDidBeginEditing(obj foundation.Notification) - HasControlTextDidBeginEditing() bool - - // optional - ControlIsValidObject(control Control, obj objc.Object) bool - HasControlIsValidObject() bool - - // optional - ControlTextViewDoCommandBySelector(control Control, textView TextView, commandSelector objc.Selector) bool - HasControlTextViewDoCommandBySelector() bool - - // optional - ControlTextShouldBeginEditing(control Control, fieldEditor Text) bool - HasControlTextShouldBeginEditing() bool - - // optional - ControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem(control Control, textView TextView, words []string, charRange foundation.Range, index *int) []string - HasControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem() bool - - // optional - ControlDidFailToValidatePartialStringErrorDescription(control Control, string_ string, error string) - HasControlDidFailToValidatePartialStringErrorDescription() bool - // optional ControlTextDidChange(obj foundation.Notification) HasControlTextDidChange() bool // optional - ControlDidFailToFormatStringErrorDescription(control Control, string_ string, error string) bool - HasControlDidFailToFormatStringErrorDescription() bool + ControlTextDidBeginEditing(obj foundation.Notification) + HasControlTextDidBeginEditing() bool // optional ControlTextDidEndEditing(obj foundation.Notification) @@ -54,120 +30,12 @@ type PControlTextEditingDelegate interface { // A delegate implementation builder for the [PControlTextEditingDelegate] protocol. type ControlTextEditingDelegate struct { - _ControlTextDidBeginEditing func(obj foundation.Notification) - _ControlIsValidObject func(control Control, obj objc.Object) bool - _ControlTextViewDoCommandBySelector func(control Control, textView TextView, commandSelector objc.Selector) bool - _ControlTextShouldBeginEditing func(control Control, fieldEditor Text) bool - _ControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem func(control Control, textView TextView, words []string, charRange foundation.Range, index *int) []string - _ControlDidFailToValidatePartialStringErrorDescription func(control Control, string_ string, error string) - _ControlTextDidChange func(obj foundation.Notification) - _ControlDidFailToFormatStringErrorDescription func(control Control, string_ string, error string) bool - _ControlTextDidEndEditing func(obj foundation.Notification) - _ControlTextShouldEndEditing func(control Control, fieldEditor Text) bool -} - -func (di *ControlTextEditingDelegate) HasControlTextDidBeginEditing() bool { - return di._ControlTextDidBeginEditing != nil -} - -// Tells the delegate that the control started editing its text content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/3005176-controltextdidbeginediting?language=objc -func (di *ControlTextEditingDelegate) SetControlTextDidBeginEditing(f func(obj foundation.Notification)) { - di._ControlTextDidBeginEditing = f -} - -// Tells the delegate that the control started editing its text content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/3005176-controltextdidbeginediting?language=objc -func (di *ControlTextEditingDelegate) ControlTextDidBeginEditing(obj foundation.Notification) { - di._ControlTextDidBeginEditing(obj) -} -func (di *ControlTextEditingDelegate) HasControlIsValidObject() bool { - return di._ControlIsValidObject != nil -} - -// Invoked when the insertion point leaves a cell belonging to the specified control, but before the value of the cell’s object is displayed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428873-control?language=objc -func (di *ControlTextEditingDelegate) SetControlIsValidObject(f func(control Control, obj objc.Object) bool) { - di._ControlIsValidObject = f -} - -// Invoked when the insertion point leaves a cell belonging to the specified control, but before the value of the cell’s object is displayed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428873-control?language=objc -func (di *ControlTextEditingDelegate) ControlIsValidObject(control Control, obj objc.Object) bool { - return di._ControlIsValidObject(control, obj) -} -func (di *ControlTextEditingDelegate) HasControlTextViewDoCommandBySelector() bool { - return di._ControlTextViewDoCommandBySelector != nil -} - -// Invoked when users press keys with predefined bindings in a cell of the specified control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428898-control?language=objc -func (di *ControlTextEditingDelegate) SetControlTextViewDoCommandBySelector(f func(control Control, textView TextView, commandSelector objc.Selector) bool) { - di._ControlTextViewDoCommandBySelector = f -} - -// Invoked when users press keys with predefined bindings in a cell of the specified control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428898-control?language=objc -func (di *ControlTextEditingDelegate) ControlTextViewDoCommandBySelector(control Control, textView TextView, commandSelector objc.Selector) bool { - return di._ControlTextViewDoCommandBySelector(control, textView, commandSelector) -} -func (di *ControlTextEditingDelegate) HasControlTextShouldBeginEditing() bool { - return di._ControlTextShouldBeginEditing != nil -} - -// Invoked when the user tries to enter a character in a cell of a control that allows editing of text (such as a text field or form field). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428865-control?language=objc -func (di *ControlTextEditingDelegate) SetControlTextShouldBeginEditing(f func(control Control, fieldEditor Text) bool) { - di._ControlTextShouldBeginEditing = f -} - -// Invoked when the user tries to enter a character in a cell of a control that allows editing of text (such as a text field or form field). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428865-control?language=objc -func (di *ControlTextEditingDelegate) ControlTextShouldBeginEditing(control Control, fieldEditor Text) bool { - return di._ControlTextShouldBeginEditing(control, fieldEditor) -} -func (di *ControlTextEditingDelegate) HasControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem() bool { - return di._ControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem != nil -} - -// Invoked to allow you to control the list of proposed text completions generated by text fields and other controls. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428925-control?language=objc -func (di *ControlTextEditingDelegate) SetControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem(f func(control Control, textView TextView, words []string, charRange foundation.Range, index *int) []string) { - di._ControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem = f -} - -// Invoked to allow you to control the list of proposed text completions generated by text fields and other controls. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428925-control?language=objc -func (di *ControlTextEditingDelegate) ControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem(control Control, textView TextView, words []string, charRange foundation.Range, index *int) []string { - return di._ControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem(control, textView, words, charRange, index) -} -func (di *ControlTextEditingDelegate) HasControlDidFailToValidatePartialStringErrorDescription() bool { - return di._ControlDidFailToValidatePartialStringErrorDescription != nil + _ControlTextDidChange func(obj foundation.Notification) + _ControlTextDidBeginEditing func(obj foundation.Notification) + _ControlTextDidEndEditing func(obj foundation.Notification) + _ControlTextShouldEndEditing func(control Control, fieldEditor Text) bool } -// Invoked when the formatter for the cell belonging to control (or selected cell) rejects a partial string a user is typing into the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428941-control?language=objc -func (di *ControlTextEditingDelegate) SetControlDidFailToValidatePartialStringErrorDescription(f func(control Control, string_ string, error string)) { - di._ControlDidFailToValidatePartialStringErrorDescription = f -} - -// Invoked when the formatter for the cell belonging to control (or selected cell) rejects a partial string a user is typing into the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428941-control?language=objc -func (di *ControlTextEditingDelegate) ControlDidFailToValidatePartialStringErrorDescription(control Control, string_ string, error string) { - di._ControlDidFailToValidatePartialStringErrorDescription(control, string_, error) -} func (di *ControlTextEditingDelegate) HasControlTextDidChange() bool { return di._ControlTextDidChange != nil } @@ -185,22 +53,22 @@ func (di *ControlTextEditingDelegate) SetControlTextDidChange(f func(obj foundat func (di *ControlTextEditingDelegate) ControlTextDidChange(obj foundation.Notification) { di._ControlTextDidChange(obj) } -func (di *ControlTextEditingDelegate) HasControlDidFailToFormatStringErrorDescription() bool { - return di._ControlDidFailToFormatStringErrorDescription != nil +func (di *ControlTextEditingDelegate) HasControlTextDidBeginEditing() bool { + return di._ControlTextDidBeginEditing != nil } -// Invoked when the formatter for the cell belonging to the specified control cannot convert a string to an underlying object. [Full Topic] +// Tells the delegate that the control started editing its text content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428883-control?language=objc -func (di *ControlTextEditingDelegate) SetControlDidFailToFormatStringErrorDescription(f func(control Control, string_ string, error string) bool) { - di._ControlDidFailToFormatStringErrorDescription = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/3005176-controltextdidbeginediting?language=objc +func (di *ControlTextEditingDelegate) SetControlTextDidBeginEditing(f func(obj foundation.Notification)) { + di._ControlTextDidBeginEditing = f } -// Invoked when the formatter for the cell belonging to the specified control cannot convert a string to an underlying object. [Full Topic] +// Tells the delegate that the control started editing its text content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428883-control?language=objc -func (di *ControlTextEditingDelegate) ControlDidFailToFormatStringErrorDescription(control Control, string_ string, error string) bool { - return di._ControlDidFailToFormatStringErrorDescription(control, string_, error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/3005176-controltextdidbeginediting?language=objc +func (di *ControlTextEditingDelegate) ControlTextDidBeginEditing(obj foundation.Notification) { + di._ControlTextDidBeginEditing(obj) } func (di *ControlTextEditingDelegate) HasControlTextDidEndEditing() bool { return di._ControlTextDidEndEditing != nil @@ -245,76 +113,6 @@ type ControlTextEditingDelegateObject struct { objc.Object } -func (c_ ControlTextEditingDelegateObject) HasControlTextDidBeginEditing() bool { - return c_.RespondsToSelector(objc.Sel("controlTextDidBeginEditing:")) -} - -// Tells the delegate that the control started editing its text content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/3005176-controltextdidbeginediting?language=objc -func (c_ ControlTextEditingDelegateObject) ControlTextDidBeginEditing(obj foundation.Notification) { - objc.Call[objc.Void](c_, objc.Sel("controlTextDidBeginEditing:"), obj) -} - -func (c_ ControlTextEditingDelegateObject) HasControlIsValidObject() bool { - return c_.RespondsToSelector(objc.Sel("control:isValidObject:")) -} - -// Invoked when the insertion point leaves a cell belonging to the specified control, but before the value of the cell’s object is displayed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428873-control?language=objc -func (c_ ControlTextEditingDelegateObject) ControlIsValidObject(control Control, obj objc.Object) bool { - rv := objc.Call[bool](c_, objc.Sel("control:isValidObject:"), control, obj) - return rv -} - -func (c_ ControlTextEditingDelegateObject) HasControlTextViewDoCommandBySelector() bool { - return c_.RespondsToSelector(objc.Sel("control:textView:doCommandBySelector:")) -} - -// Invoked when users press keys with predefined bindings in a cell of the specified control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428898-control?language=objc -func (c_ ControlTextEditingDelegateObject) ControlTextViewDoCommandBySelector(control Control, textView TextView, commandSelector objc.Selector) bool { - rv := objc.Call[bool](c_, objc.Sel("control:textView:doCommandBySelector:"), control, textView, commandSelector) - return rv -} - -func (c_ ControlTextEditingDelegateObject) HasControlTextShouldBeginEditing() bool { - return c_.RespondsToSelector(objc.Sel("control:textShouldBeginEditing:")) -} - -// Invoked when the user tries to enter a character in a cell of a control that allows editing of text (such as a text field or form field). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428865-control?language=objc -func (c_ ControlTextEditingDelegateObject) ControlTextShouldBeginEditing(control Control, fieldEditor Text) bool { - rv := objc.Call[bool](c_, objc.Sel("control:textShouldBeginEditing:"), control, fieldEditor) - return rv -} - -func (c_ ControlTextEditingDelegateObject) HasControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem() bool { - return c_.RespondsToSelector(objc.Sel("control:textView:completions:forPartialWordRange:indexOfSelectedItem:")) -} - -// Invoked to allow you to control the list of proposed text completions generated by text fields and other controls. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428925-control?language=objc -func (c_ ControlTextEditingDelegateObject) ControlTextViewCompletionsForPartialWordRangeIndexOfSelectedItem(control Control, textView TextView, words []string, charRange foundation.Range, index *int) []string { - rv := objc.Call[[]string](c_, objc.Sel("control:textView:completions:forPartialWordRange:indexOfSelectedItem:"), control, textView, words, charRange, index) - return rv -} - -func (c_ ControlTextEditingDelegateObject) HasControlDidFailToValidatePartialStringErrorDescription() bool { - return c_.RespondsToSelector(objc.Sel("control:didFailToValidatePartialString:errorDescription:")) -} - -// Invoked when the formatter for the cell belonging to control (or selected cell) rejects a partial string a user is typing into the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428941-control?language=objc -func (c_ ControlTextEditingDelegateObject) ControlDidFailToValidatePartialStringErrorDescription(control Control, string_ string, error string) { - objc.Call[objc.Void](c_, objc.Sel("control:didFailToValidatePartialString:errorDescription:"), control, string_, error) -} - func (c_ ControlTextEditingDelegateObject) HasControlTextDidChange() bool { return c_.RespondsToSelector(objc.Sel("controlTextDidChange:")) } @@ -326,16 +124,15 @@ func (c_ ControlTextEditingDelegateObject) ControlTextDidChange(obj foundation.N objc.Call[objc.Void](c_, objc.Sel("controlTextDidChange:"), obj) } -func (c_ ControlTextEditingDelegateObject) HasControlDidFailToFormatStringErrorDescription() bool { - return c_.RespondsToSelector(objc.Sel("control:didFailToFormatString:errorDescription:")) +func (c_ ControlTextEditingDelegateObject) HasControlTextDidBeginEditing() bool { + return c_.RespondsToSelector(objc.Sel("controlTextDidBeginEditing:")) } -// Invoked when the formatter for the cell belonging to the specified control cannot convert a string to an underlying object. [Full Topic] +// Tells the delegate that the control started editing its text content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428883-control?language=objc -func (c_ ControlTextEditingDelegateObject) ControlDidFailToFormatStringErrorDescription(control Control, string_ string, error string) bool { - rv := objc.Call[bool](c_, objc.Sel("control:didFailToFormatString:errorDescription:"), control, string_, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/3005176-controltextdidbeginediting?language=objc +func (c_ ControlTextEditingDelegateObject) ControlTextDidBeginEditing(obj foundation.Notification) { + objc.Call[objc.Void](c_, objc.Sel("controlTextDidBeginEditing:"), obj) } func (c_ ControlTextEditingDelegateObject) HasControlTextDidEndEditing() bool { diff --git a/macos/appkit/controller.gen.go b/macos/appkit/controller.gen.go index bcd87b16..604baf7d 100644 --- a/macos/appkit/controller.gen.go +++ b/macos/appkit/controller.gen.go @@ -18,13 +18,13 @@ type _ControllerClass struct { // An interface definition for the [Controller] class. type IController interface { objc.IObject - DiscardEditing() + CommitEditing() bool ObjectDidBeginEditing(editor PEditor) ObjectDidBeginEditingObject(editorObject objc.IObject) ObjectDidEndEditing(editor PEditor) ObjectDidEndEditingObject(editorObject objc.IObject) CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.IObject, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) - CommitEditing() bool + DiscardEditing() IsEditing() bool } @@ -61,11 +61,12 @@ func NewController() Controller { return ControllerClass.New() } -// Discards any pending changes by registered editors. [Full Topic] +// Causes the receiver to attempt to commit any pending edits, returning YES if successful or no edits were pending. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroller/1528652-discardediting?language=objc -func (c_ Controller) DiscardEditing() { - objc.Call[objc.Void](c_, objc.Sel("discardEditing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroller/1531472-commitediting?language=objc +func (c_ Controller) CommitEditing() bool { + rv := objc.Call[bool](c_, objc.Sel("commitEditing")) + return rv } // Invoked to inform the receiver that editor has uncommitted changes that can affect the receiver. [Full Topic] @@ -105,12 +106,11 @@ func (c_ Controller) CommitEditingWithDelegateDidCommitSelectorContextInfo(deleg objc.Call[objc.Void](c_, objc.Sel("commitEditingWithDelegate:didCommitSelector:contextInfo:"), delegate, didCommitSelector, contextInfo) } -// Causes the receiver to attempt to commit any pending edits, returning YES if successful or no edits were pending. [Full Topic] +// Discards any pending changes by registered editors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroller/1531472-commitediting?language=objc -func (c_ Controller) CommitEditing() bool { - rv := objc.Call[bool](c_, objc.Sel("commitEditing")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroller/1528652-discardediting?language=objc +func (c_ Controller) DiscardEditing() { + objc.Call[objc.Void](c_, objc.Sel("discardEditing")) } // A Boolean value indicating if any editors are registered with the controller. [Full Topic] diff --git a/macos/appkit/cursor.gen.go b/macos/appkit/cursor.gen.go index e90554bd..b28bfb2e 100644 --- a/macos/appkit/cursor.gen.go +++ b/macos/appkit/cursor.gen.go @@ -19,8 +19,8 @@ type _CursorClass struct { // An interface definition for the [Cursor] class. type ICursor interface { objc.IObject - Push() Set() + Push() HotSpot() foundation.Point Image() Image } @@ -38,20 +38,6 @@ func CursorFrom(ptr unsafe.Pointer) Cursor { } } -func (c_ Cursor) InitWithImageHotSpot(newImage IImage, point foundation.Point) Cursor { - rv := objc.Call[Cursor](c_, objc.Sel("initWithImage:hotSpot:"), newImage, point) - return rv -} - -// Initializes a cursor with the given image and hot spot. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524612-initwithimage?language=objc -func NewCursorWithImageHotSpot(newImage IImage, point foundation.Point) Cursor { - instance := CursorClass.Alloc().InitWithImageHotSpot(newImage, point) - instance.Autorelease() - return instance -} - func (cc _CursorClass) Alloc() Cursor { rv := objc.Call[Cursor](cc, objc.Sel("alloc")) return rv @@ -72,27 +58,6 @@ func (c_ Cursor) Init() Cursor { return rv } -// Puts the receiver on top of the cursor stack and makes it the current cursor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532500-push?language=objc -func (c_ Cursor) Push() { - objc.Call[objc.Void](c_, objc.Sel("push")) -} - -// Pops the current cursor off the top of the stack. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532104-pop?language=objc -func (cc _CursorClass) Pop_() { - objc.Call[objc.Void](cc, objc.Sel("pop")) -} - -// Pops the current cursor off the top of the stack. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532104-pop?language=objc -func Cursor_Pop_() { - CursorClass.Pop_() -} - // Makes the current cursor invisible. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1527345-hide?language=objc @@ -107,20 +72,6 @@ func Cursor_Hide() { CursorClass.Hide() } -// Sets whether the cursor is hidden until the mouse moves. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534665-sethiddenuntilmousemoves?language=objc -func (cc _CursorClass) SetHiddenUntilMouseMoves(flag bool) { - objc.Call[objc.Void](cc, objc.Sel("setHiddenUntilMouseMoves:"), flag) -} - -// Sets whether the cursor is hidden until the mouse moves. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534665-sethiddenuntilmousemoves?language=objc -func Cursor_SetHiddenUntilMouseMoves(flag bool) { - CursorClass.SetHiddenUntilMouseMoves(flag) -} - // Makes the receiver the current cursor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1526148-set?language=objc @@ -128,71 +79,83 @@ func (c_ Cursor) Set() { objc.Call[objc.Void](c_, objc.Sel("set")) } -// Negates an earlier call to [appkit/nscursor/hide] by showing the current cursor. [Full Topic] +// Puts the receiver on top of the cursor stack and makes it the current cursor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532500-push?language=objc +func (c_ Cursor) Push() { + objc.Call[objc.Void](c_, objc.Sel("push")) +} + +// Negates an earlier call to hide by showing the current cursor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532996-unhide?language=objc func (cc _CursorClass) Unhide() { objc.Call[objc.Void](cc, objc.Sel("unhide")) } -// Negates an earlier call to [appkit/nscursor/hide] by showing the current cursor. [Full Topic] +// Negates an earlier call to hide by showing the current cursor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532996-unhide?language=objc func Cursor_Unhide() { CursorClass.Unhide() } -// Returns the application’s current cursor. [Full Topic] +// Pops the current cursor off the top of the stack. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524595-currentcursor?language=objc -func (cc _CursorClass) CurrentCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("currentCursor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532104-pop?language=objc +func (cc _CursorClass) Pop() { + objc.Call[objc.Void](cc, objc.Sel("pop")) } -// Returns the application’s current cursor. [Full Topic] +// Pops the current cursor off the top of the stack. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524595-currentcursor?language=objc -func Cursor_CurrentCursor() Cursor { - return CursorClass.CurrentCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532104-pop?language=objc +func Cursor_Pop() { + CursorClass.Pop() } -// The position of the cursor's hot spot. [Full Topic] +// Sets whether the cursor is hidden until the mouse moves. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1529096-hotspot?language=objc -func (c_ Cursor) HotSpot() foundation.Point { - rv := objc.Call[foundation.Point](c_, objc.Sel("hotSpot")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534665-sethiddenuntilmousemoves?language=objc +func (cc _CursorClass) SetHiddenUntilMouseMoves(flag bool) { + objc.Call[objc.Void](cc, objc.Sel("setHiddenUntilMouseMoves:"), flag) } -// Returns a cursor that looks like a capital I with a tiny crossbeam at its middle. [Full Topic] +// Sets whether the cursor is hidden until the mouse moves. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1526109-ibeamcursor?language=objc -func (cc _CursorClass) IBeamCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("IBeamCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534665-sethiddenuntilmousemoves?language=objc +func Cursor_SetHiddenUntilMouseMoves(flag bool) { + CursorClass.SetHiddenUntilMouseMoves(flag) +} + +// Returns the resize-right system cursor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1526314-resizerightcursor?language=objc +func (cc _CursorClass) ResizeRightCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("resizeRightCursor")) return rv } -// Returns a cursor that looks like a capital I with a tiny crossbeam at its middle. [Full Topic] +// Returns the resize-right system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1526109-ibeamcursor?language=objc -func Cursor_IBeamCursor() Cursor { - return CursorClass.IBeamCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1526314-resizerightcursor?language=objc +func Cursor_ResizeRightCursor() Cursor { + return CursorClass.ResizeRightCursor() } -// Returns a cursor indicating that the current operation will result in a link action. [Full Topic] +// Returns the resize-left system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534435-draglinkcursor?language=objc -func (cc _CursorClass) DragLinkCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("dragLinkCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1535416-resizeleftcursor?language=objc +func (cc _CursorClass) ResizeLeftCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("resizeLeftCursor")) return rv } -// Returns a cursor indicating that the current operation will result in a link action. [Full Topic] +// Returns the resize-left system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534435-draglinkcursor?language=objc -func Cursor_DragLinkCursor() Cursor { - return CursorClass.DragLinkCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1535416-resizeleftcursor?language=objc +func Cursor_ResizeLeftCursor() Cursor { + return CursorClass.ResizeLeftCursor() } // Returns a cursor indicating that the current operation will result in a copy action. [Full Topic] @@ -210,79 +173,87 @@ func Cursor_DragCopyCursor() Cursor { return CursorClass.DragCopyCursor() } -// Returns the resize-right system cursor. [Full Topic] +// Returns the resize-up-and-down system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1526314-resizerightcursor?language=objc -func (cc _CursorClass) ResizeRightCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("resizeRightCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524641-resizeupdowncursor?language=objc +func (cc _CursorClass) ResizeUpDownCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("resizeUpDownCursor")) return rv } -// Returns the resize-right system cursor. [Full Topic] +// Returns the resize-up-and-down system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1526314-resizerightcursor?language=objc -func Cursor_ResizeRightCursor() Cursor { - return CursorClass.ResizeRightCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524641-resizeupdowncursor?language=objc +func Cursor_ResizeUpDownCursor() Cursor { + return CursorClass.ResizeUpDownCursor() } -// Returns the cursor for editing vertical layout text. [Full Topic] +// Returns a cursor indicating that the current operation will result in a disappearing item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1525182-ibeamcursorforverticallayout?language=objc -func (cc _CursorClass) IBeamCursorForVerticalLayout() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("IBeamCursorForVerticalLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534280-disappearingitemcursor?language=objc +func (cc _CursorClass) DisappearingItemCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("disappearingItemCursor")) return rv } -// Returns the cursor for editing vertical layout text. [Full Topic] +// Returns a cursor indicating that the current operation will result in a disappearing item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1525182-ibeamcursorforverticallayout?language=objc -func Cursor_IBeamCursorForVerticalLayout() Cursor { - return CursorClass.IBeamCursorForVerticalLayout() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534280-disappearingitemcursor?language=objc +func Cursor_DisappearingItemCursor() Cursor { + return CursorClass.DisappearingItemCursor() } -// Returns the resize-down system cursor. [Full Topic] +// Returns the pointing-hand system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1531340-resizedowncursor?language=objc -func (cc _CursorClass) ResizeDownCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("resizeDownCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1531896-pointinghandcursor?language=objc +func (cc _CursorClass) PointingHandCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("pointingHandCursor")) return rv } -// Returns the resize-down system cursor. [Full Topic] +// Returns the pointing-hand system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1531340-resizedowncursor?language=objc -func Cursor_ResizeDownCursor() Cursor { - return CursorClass.ResizeDownCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1531896-pointinghandcursor?language=objc +func Cursor_PointingHandCursor() Cursor { + return CursorClass.PointingHandCursor() } -// Returns a cursor indicating that the current operation will result in a disappearing item. [Full Topic] +// Returns the cursor for editing vertical layout text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534280-disappearingitemcursor?language=objc -func (cc _CursorClass) DisappearingItemCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("disappearingItemCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1525182-ibeamcursorforverticallayout?language=objc +func (cc _CursorClass) IBeamCursorForVerticalLayout() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("IBeamCursorForVerticalLayout")) return rv } -// Returns a cursor indicating that the current operation will result in a disappearing item. [Full Topic] +// Returns the cursor for editing vertical layout text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534280-disappearingitemcursor?language=objc -func Cursor_DisappearingItemCursor() Cursor { - return CursorClass.DisappearingItemCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1525182-ibeamcursorforverticallayout?language=objc +func Cursor_IBeamCursorForVerticalLayout() Cursor { + return CursorClass.IBeamCursorForVerticalLayout() } -// Returns the closed-hand system cursor. [Full Topic] +// Returns the resize-up system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524603-closedhandcursor?language=objc -func (cc _CursorClass) ClosedHandCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("closedHandCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532226-resizeupcursor?language=objc +func (cc _CursorClass) ResizeUpCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("resizeUpCursor")) return rv } -// Returns the closed-hand system cursor. [Full Topic] +// Returns the resize-up system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524603-closedhandcursor?language=objc -func Cursor_ClosedHandCursor() Cursor { - return CursorClass.ClosedHandCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532226-resizeupcursor?language=objc +func Cursor_ResizeUpCursor() Cursor { + return CursorClass.ResizeUpCursor() +} + +// The position of the cursor's hot spot. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1529096-hotspot?language=objc +func (c_ Cursor) HotSpot() foundation.Point { + rv := objc.Call[foundation.Point](c_, objc.Sel("hotSpot")) + return rv } // Returns the contextual menu system cursor. [Full Topic] @@ -315,21 +286,6 @@ func Cursor_CurrentSystemCursor() Cursor { return CursorClass.CurrentSystemCursor() } -// Returns the resize-left system cursor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1535416-resizeleftcursor?language=objc -func (cc _CursorClass) ResizeLeftCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("resizeLeftCursor")) - return rv -} - -// Returns the resize-left system cursor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1535416-resizeleftcursor?language=objc -func Cursor_ResizeLeftCursor() Cursor { - return CursorClass.ResizeLeftCursor() -} - // Returns the cross-hair system cursor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1525359-crosshaircursor?language=objc @@ -345,64 +301,79 @@ func Cursor_CrosshairCursor() Cursor { return CursorClass.CrosshairCursor() } -// Returns the resize-left-and-right system cursor. [Full Topic] +// Returns the default cursor, the arrow cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1525074-resizeleftrightcursor?language=objc -func (cc _CursorClass) ResizeLeftRightCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("resizeLeftRightCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1527160-arrowcursor?language=objc +func (cc _CursorClass) ArrowCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("arrowCursor")) return rv } -// Returns the resize-left-and-right system cursor. [Full Topic] +// Returns the default cursor, the arrow cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1525074-resizeleftrightcursor?language=objc -func Cursor_ResizeLeftRightCursor() Cursor { - return CursorClass.ResizeLeftRightCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1527160-arrowcursor?language=objc +func Cursor_ArrowCursor() Cursor { + return CursorClass.ArrowCursor() } -// Returns the open-hand system cursor. [Full Topic] +// Returns a cursor that looks like a capital I with a tiny crossbeam at its middle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1528540-openhandcursor?language=objc -func (cc _CursorClass) OpenHandCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("openHandCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1526109-ibeamcursor?language=objc +func (cc _CursorClass) IBeamCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("IBeamCursor")) return rv } -// Returns the open-hand system cursor. [Full Topic] +// Returns a cursor that looks like a capital I with a tiny crossbeam at its middle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1528540-openhandcursor?language=objc -func Cursor_OpenHandCursor() Cursor { - return CursorClass.OpenHandCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1526109-ibeamcursor?language=objc +func Cursor_IBeamCursor() Cursor { + return CursorClass.IBeamCursor() } -// Returns the resize-up system cursor. [Full Topic] +// Returns the resize-down system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532226-resizeupcursor?language=objc -func (cc _CursorClass) ResizeUpCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("resizeUpCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1531340-resizedowncursor?language=objc +func (cc _CursorClass) ResizeDownCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("resizeDownCursor")) return rv } -// Returns the resize-up system cursor. [Full Topic] +// Returns the resize-down system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532226-resizeupcursor?language=objc -func Cursor_ResizeUpCursor() Cursor { - return CursorClass.ResizeUpCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1531340-resizedowncursor?language=objc +func Cursor_ResizeDownCursor() Cursor { + return CursorClass.ResizeDownCursor() } -// Returns the default cursor, the arrow cursor. [Full Topic] +// Returns a cursor indicating that the current operation will result in a link action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1527160-arrowcursor?language=objc -func (cc _CursorClass) ArrowCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("arrowCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534435-draglinkcursor?language=objc +func (cc _CursorClass) DragLinkCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("dragLinkCursor")) return rv } -// Returns the default cursor, the arrow cursor. [Full Topic] +// Returns a cursor indicating that the current operation will result in a link action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1527160-arrowcursor?language=objc -func Cursor_ArrowCursor() Cursor { - return CursorClass.ArrowCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534435-draglinkcursor?language=objc +func Cursor_DragLinkCursor() Cursor { + return CursorClass.DragLinkCursor() +} + +// Returns the closed-hand system cursor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524603-closedhandcursor?language=objc +func (cc _CursorClass) ClosedHandCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("closedHandCursor")) + return rv +} + +// Returns the closed-hand system cursor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524603-closedhandcursor?language=objc +func Cursor_ClosedHandCursor() Cursor { + return CursorClass.ClosedHandCursor() } // Returns the operation not allowed cursor. [Full Topic] @@ -420,40 +391,55 @@ func Cursor_OperationNotAllowedCursor() Cursor { return CursorClass.OperationNotAllowedCursor() } -// Returns the pointing-hand system cursor. [Full Topic] +// The cursor’s image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1531896-pointinghandcursor?language=objc -func (cc _CursorClass) PointingHandCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("pointingHandCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1527062-image?language=objc +func (c_ Cursor) Image() Image { + rv := objc.Call[Image](c_, objc.Sel("image")) return rv } -// Returns the pointing-hand system cursor. [Full Topic] +// Returns the resize-left-and-right system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1531896-pointinghandcursor?language=objc -func Cursor_PointingHandCursor() Cursor { - return CursorClass.PointingHandCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1525074-resizeleftrightcursor?language=objc +func (cc _CursorClass) ResizeLeftRightCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("resizeLeftRightCursor")) + return rv } -// The cursor’s image. [Full Topic] +// Returns the resize-left-and-right system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1527062-image?language=objc -func (c_ Cursor) Image() Image { - rv := objc.Call[Image](c_, objc.Sel("image")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1525074-resizeleftrightcursor?language=objc +func Cursor_ResizeLeftRightCursor() Cursor { + return CursorClass.ResizeLeftRightCursor() +} + +// Returns the open-hand system cursor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1528540-openhandcursor?language=objc +func (cc _CursorClass) OpenHandCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("openHandCursor")) return rv } -// Returns the resize-up-and-down system cursor. [Full Topic] +// Returns the open-hand system cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524641-resizeupdowncursor?language=objc -func (cc _CursorClass) ResizeUpDownCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("resizeUpDownCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1528540-openhandcursor?language=objc +func Cursor_OpenHandCursor() Cursor { + return CursorClass.OpenHandCursor() +} + +// Returns the application’s current cursor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524595-currentcursor?language=objc +func (cc _CursorClass) CurrentCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("currentCursor")) return rv } -// Returns the resize-up-and-down system cursor. [Full Topic] +// Returns the application’s current cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524641-resizeupdowncursor?language=objc -func Cursor_ResizeUpDownCursor() Cursor { - return CursorClass.ResizeUpDownCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524595-currentcursor?language=objc +func Cursor_CurrentCursor() Cursor { + return CursorClass.CurrentCursor() } diff --git a/macos/appkit/custom_image_rep.gen.go b/macos/appkit/custom_image_rep.gen.go index 81e6971f..f36d0477 100644 --- a/macos/appkit/custom_image_rep.gen.go +++ b/macos/appkit/custom_image_rep.gen.go @@ -19,8 +19,8 @@ type _CustomImageRepClass struct { // An interface definition for the [CustomImageRep] class. type ICustomImageRep interface { IImageRep - DrawingHandler() func(arg0 foundation.Rect) bool DrawSelector() objc.Selector + DrawingHandler() func(arg0 foundation.Rect) bool Delegate() objc.Object } @@ -85,14 +85,6 @@ func (c_ CustomImageRep) Init() CustomImageRep { return rv } -// The destination rectangle of the drawing handler block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscustomimagerep/1527316-drawinghandler?language=objc -func (c_ CustomImageRep) DrawingHandler() func(arg0 foundation.Rect) bool { - rv := objc.Call[func(arg0 foundation.Rect) bool](c_, objc.Sel("drawingHandler")) - return rv -} - // The selector for the delegate's drawing method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscustomimagerep/1529935-drawselector?language=objc @@ -101,6 +93,14 @@ func (c_ CustomImageRep) DrawSelector() objc.Selector { return rv } +// The destination rectangle of the drawing handler block. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscustomimagerep/1527316-drawinghandler?language=objc +func (c_ CustomImageRep) DrawingHandler() func(arg0 foundation.Rect) bool { + rv := objc.Call[func(arg0 foundation.Rect) bool](c_, objc.Sel("drawingHandler")) + return rv +} + // The delegate object that renders the image for the image representation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscustomimagerep/1534716-delegate?language=objc diff --git a/macos/appkit/data_asset.gen.go b/macos/appkit/data_asset.gen.go index 8267e19d..c1a6e871 100644 --- a/macos/appkit/data_asset.gen.go +++ b/macos/appkit/data_asset.gen.go @@ -5,7 +5,6 @@ package appkit import ( "unsafe" - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -51,20 +50,6 @@ func NewDataAssetWithName(name DataAssetName) DataAsset { return instance } -func (d_ DataAsset) InitWithNameBundle(name DataAssetName, bundle foundation.IBundle) DataAsset { - rv := objc.Call[DataAsset](d_, objc.Sel("initWithName:bundle:"), name, bundle) - return rv -} - -// Initializes and returns an object with a reference to the named data asset that’s in an asset catalog in the specified bundle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdataasset/1403436-initwithname?language=objc -func NewDataAssetWithNameBundle(name DataAssetName, bundle foundation.IBundle) DataAsset { - instance := DataAssetClass.Alloc().InitWithNameBundle(name, bundle) - instance.Autorelease() - return instance -} - func (dc _DataAssetClass) Alloc() DataAsset { rv := objc.Call[DataAsset](dc, objc.Sel("alloc")) return rv diff --git a/macos/appkit/date_picker.gen.go b/macos/appkit/date_picker.gen.go index 944c9777..49ffb7c0 100644 --- a/macos/appkit/date_picker.gen.go +++ b/macos/appkit/date_picker.gen.go @@ -19,41 +19,41 @@ type _DatePickerClass struct { // An interface definition for the [DatePicker] class. type IDatePicker interface { IControl + IsBordered() bool + SetBordered(value bool) + DatePickerElements() DatePickerElementFlags + SetDatePickerElements(value DatePickerElementFlags) + TimeInterval() foundation.TimeInterval + SetTimeInterval(value foundation.TimeInterval) Locale() foundation.Locale SetLocale(value foundation.ILocale) - PresentsCalendarOverlay() bool - SetPresentsCalendarOverlay(value bool) + Delegate() DatePickerCellDelegateObject + SetDelegate(value PDatePickerCellDelegate) + SetDelegateObject(valueObject objc.IObject) BackgroundColor() Color SetBackgroundColor(value IColor) MinDate() foundation.Date SetMinDate(value foundation.IDate) + DrawsBackground() bool + SetDrawsBackground(value bool) + TimeZone() foundation.TimeZone + SetTimeZone(value foundation.ITimeZone) DateValue() foundation.Date SetDateValue(value foundation.IDate) - DatePickerElements() DatePickerElementFlags - SetDatePickerElements(value DatePickerElementFlags) + PresentsCalendarOverlay() bool + SetPresentsCalendarOverlay(value bool) + TextColor() Color + SetTextColor(value IColor) Calendar() foundation.Calendar SetCalendar(value foundation.ICalendar) - Delegate() DatePickerCellDelegateObject - SetDelegate(value PDatePickerCellDelegate) - SetDelegateObject(valueObject objc.IObject) DatePickerMode() DatePickerMode SetDatePickerMode(value DatePickerMode) - TimeInterval() foundation.TimeInterval - SetTimeInterval(value foundation.TimeInterval) MaxDate() foundation.Date SetMaxDate(value foundation.IDate) - TextColor() Color - SetTextColor(value IColor) - TimeZone() foundation.TimeZone - SetTimeZone(value foundation.ITimeZone) - DatePickerStyle() DatePickerStyle - SetDatePickerStyle(value DatePickerStyle) - DrawsBackground() bool - SetDrawsBackground(value bool) - IsBordered() bool - SetBordered(value bool) IsBezeled() bool SetBezeled(value bool) + DatePickerStyle() DatePickerStyle + SetDatePickerStyle(value DatePickerStyle) } // A display of a calendar date with controls for editing the date value. [Full Topic] @@ -103,6 +103,51 @@ func NewDatePickerWithFrame(frameRect foundation.Rect) DatePicker { return instance } +// A Boolean value that indicates whether the date picker has a plain border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1534176-bordered?language=objc +func (d_ DatePicker) IsBordered() bool { + rv := objc.Call[bool](d_, objc.Sel("isBordered")) + return rv +} + +// A Boolean value that indicates whether the date picker has a plain border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1534176-bordered?language=objc +func (d_ DatePicker) SetBordered(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setBordered:"), value) +} + +// A bitmask that indicates which visual elements of the date picker are currently shown, and which won't be usable because they are hidden. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533480-datepickerelements?language=objc +func (d_ DatePicker) DatePickerElements() DatePickerElementFlags { + rv := objc.Call[DatePickerElementFlags](d_, objc.Sel("datePickerElements")) + return rv +} + +// A bitmask that indicates which visual elements of the date picker are currently shown, and which won't be usable because they are hidden. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533480-datepickerelements?language=objc +func (d_ DatePicker) SetDatePickerElements(value DatePickerElementFlags) { + objc.Call[objc.Void](d_, objc.Sel("setDatePickerElements:"), value) +} + +// The time interval selected by the date picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1526681-timeinterval?language=objc +func (d_ DatePicker) TimeInterval() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](d_, objc.Sel("timeInterval")) + return rv +} + +// The time interval selected by the date picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1526681-timeinterval?language=objc +func (d_ DatePicker) SetTimeInterval(value foundation.TimeInterval) { + objc.Call[objc.Void](d_, objc.Sel("setTimeInterval:"), value) +} + // The date picker’s locale. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1525940-locale?language=objc @@ -118,19 +163,28 @@ func (d_ DatePicker) SetLocale(value foundation.ILocale) { objc.Call[objc.Void](d_, objc.Sel("setLocale:"), value) } -// A Boolean value that indicates whether to present a graphical calendar overlay when editing a calendar element within a text-field style date picker. [Full Topic] +// A delegate for the date picker’s cell [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/3521157-presentscalendaroverlay?language=objc -func (d_ DatePicker) PresentsCalendarOverlay() bool { - rv := objc.Call[bool](d_, objc.Sel("presentsCalendarOverlay")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533878-delegate?language=objc +func (d_ DatePicker) Delegate() DatePickerCellDelegateObject { + rv := objc.Call[DatePickerCellDelegateObject](d_, objc.Sel("delegate")) return rv } -// A Boolean value that indicates whether to present a graphical calendar overlay when editing a calendar element within a text-field style date picker. [Full Topic] +// A delegate for the date picker’s cell [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/3521157-presentscalendaroverlay?language=objc -func (d_ DatePicker) SetPresentsCalendarOverlay(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setPresentsCalendarOverlay:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533878-delegate?language=objc +func (d_ DatePicker) SetDelegate(value PDatePickerCellDelegate) { + po0 := objc.WrapAsProtocol("NSDatePickerCellDelegate", value) + objc.SetAssociatedObject(d_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), po0) +} + +// A delegate for the date picker’s cell [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533878-delegate?language=objc +func (d_ DatePicker) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), valueObject) } // The date picker’s background color. [Full Topic] @@ -163,6 +217,36 @@ func (d_ DatePicker) SetMinDate(value foundation.IDate) { objc.Call[objc.Void](d_, objc.Sel("setMinDate:"), value) } +// A Boolean value that indicates whether the date picker draws the background. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1528266-drawsbackground?language=objc +func (d_ DatePicker) DrawsBackground() bool { + rv := objc.Call[bool](d_, objc.Sel("drawsBackground")) + return rv +} + +// A Boolean value that indicates whether the date picker draws the background. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1528266-drawsbackground?language=objc +func (d_ DatePicker) SetDrawsBackground(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setDrawsBackground:"), value) +} + +// The time zone for the date picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1535451-timezone?language=objc +func (d_ DatePicker) TimeZone() foundation.TimeZone { + rv := objc.Call[foundation.TimeZone](d_, objc.Sel("timeZone")) + return rv +} + +// The time zone for the date picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1535451-timezone?language=objc +func (d_ DatePicker) SetTimeZone(value foundation.ITimeZone) { + objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), value) +} + // The date selected by the date picker. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1527606-datevalue?language=objc @@ -178,19 +262,34 @@ func (d_ DatePicker) SetDateValue(value foundation.IDate) { objc.Call[objc.Void](d_, objc.Sel("setDateValue:"), value) } -// A bitmask that indicates which visual elements of the date picker are currently shown, and which won't be usable because they are hidden. [Full Topic] +// A Boolean value that indicates whether to present a graphical calendar overlay when editing a calendar element within a text-field style date picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533480-datepickerelements?language=objc -func (d_ DatePicker) DatePickerElements() DatePickerElementFlags { - rv := objc.Call[DatePickerElementFlags](d_, objc.Sel("datePickerElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/3521157-presentscalendaroverlay?language=objc +func (d_ DatePicker) PresentsCalendarOverlay() bool { + rv := objc.Call[bool](d_, objc.Sel("presentsCalendarOverlay")) return rv } -// A bitmask that indicates which visual elements of the date picker are currently shown, and which won't be usable because they are hidden. [Full Topic] +// A Boolean value that indicates whether to present a graphical calendar overlay when editing a calendar element within a text-field style date picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533480-datepickerelements?language=objc -func (d_ DatePicker) SetDatePickerElements(value DatePickerElementFlags) { - objc.Call[objc.Void](d_, objc.Sel("setDatePickerElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/3521157-presentscalendaroverlay?language=objc +func (d_ DatePicker) SetPresentsCalendarOverlay(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setPresentsCalendarOverlay:"), value) +} + +// The date picker’s text color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1534294-textcolor?language=objc +func (d_ DatePicker) TextColor() Color { + rv := objc.Call[Color](d_, objc.Sel("textColor")) + return rv +} + +// The date picker’s text color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1534294-textcolor?language=objc +func (d_ DatePicker) SetTextColor(value IColor) { + objc.Call[objc.Void](d_, objc.Sel("setTextColor:"), value) } // The calendar used by the date picker. [Full Topic] @@ -208,30 +307,6 @@ func (d_ DatePicker) SetCalendar(value foundation.ICalendar) { objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), value) } -// A delegate for the date picker’s cell [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533878-delegate?language=objc -func (d_ DatePicker) Delegate() DatePickerCellDelegateObject { - rv := objc.Call[DatePickerCellDelegateObject](d_, objc.Sel("delegate")) - return rv -} - -// A delegate for the date picker’s cell [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533878-delegate?language=objc -func (d_ DatePicker) SetDelegate(value PDatePickerCellDelegate) { - po0 := objc.WrapAsProtocol("NSDatePickerCellDelegate", value) - objc.SetAssociatedObject(d_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), po0) -} - -// A delegate for the date picker’s cell [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533878-delegate?language=objc -func (d_ DatePicker) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), valueObject) -} - // The date picker’s mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1527214-datepickermode?language=objc @@ -247,21 +322,6 @@ func (d_ DatePicker) SetDatePickerMode(value DatePickerMode) { objc.Call[objc.Void](d_, objc.Sel("setDatePickerMode:"), value) } -// The time interval selected by the date picker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1526681-timeinterval?language=objc -func (d_ DatePicker) TimeInterval() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](d_, objc.Sel("timeInterval")) - return rv -} - -// The time interval selected by the date picker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1526681-timeinterval?language=objc -func (d_ DatePicker) SetTimeInterval(value foundation.TimeInterval) { - objc.Call[objc.Void](d_, objc.Sel("setTimeInterval:"), value) -} - // The date picker’s maximum date value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1535887-maxdate?language=objc @@ -277,34 +337,19 @@ func (d_ DatePicker) SetMaxDate(value foundation.IDate) { objc.Call[objc.Void](d_, objc.Sel("setMaxDate:"), value) } -// The date picker’s text color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1534294-textcolor?language=objc -func (d_ DatePicker) TextColor() Color { - rv := objc.Call[Color](d_, objc.Sel("textColor")) - return rv -} - -// The date picker’s text color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1534294-textcolor?language=objc -func (d_ DatePicker) SetTextColor(value IColor) { - objc.Call[objc.Void](d_, objc.Sel("setTextColor:"), value) -} - -// The time zone for the date picker. [Full Topic] +// A Boolean value that indicates whether the date picker draws a bezeled border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1535451-timezone?language=objc -func (d_ DatePicker) TimeZone() foundation.TimeZone { - rv := objc.Call[foundation.TimeZone](d_, objc.Sel("timeZone")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533534-bezeled?language=objc +func (d_ DatePicker) IsBezeled() bool { + rv := objc.Call[bool](d_, objc.Sel("isBezeled")) return rv } -// The time zone for the date picker. [Full Topic] +// A Boolean value that indicates whether the date picker draws a bezeled border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1535451-timezone?language=objc -func (d_ DatePicker) SetTimeZone(value foundation.ITimeZone) { - objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533534-bezeled?language=objc +func (d_ DatePicker) SetBezeled(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setBezeled:"), value) } // The date picker’s style. [Full Topic] @@ -321,48 +366,3 @@ func (d_ DatePicker) DatePickerStyle() DatePickerStyle { func (d_ DatePicker) SetDatePickerStyle(value DatePickerStyle) { objc.Call[objc.Void](d_, objc.Sel("setDatePickerStyle:"), value) } - -// A Boolean value that indicates whether the date picker draws the background. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1528266-drawsbackground?language=objc -func (d_ DatePicker) DrawsBackground() bool { - rv := objc.Call[bool](d_, objc.Sel("drawsBackground")) - return rv -} - -// A Boolean value that indicates whether the date picker draws the background. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1528266-drawsbackground?language=objc -func (d_ DatePicker) SetDrawsBackground(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setDrawsBackground:"), value) -} - -// A Boolean value that indicates whether the date picker has a plain border. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1534176-bordered?language=objc -func (d_ DatePicker) IsBordered() bool { - rv := objc.Call[bool](d_, objc.Sel("isBordered")) - return rv -} - -// A Boolean value that indicates whether the date picker has a plain border. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1534176-bordered?language=objc -func (d_ DatePicker) SetBordered(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setBordered:"), value) -} - -// A Boolean value that indicates whether the date picker draws a bezeled border. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533534-bezeled?language=objc -func (d_ DatePicker) IsBezeled() bool { - rv := objc.Call[bool](d_, objc.Sel("isBezeled")) - return rv -} - -// A Boolean value that indicates whether the date picker draws a bezeled border. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1533534-bezeled?language=objc -func (d_ DatePicker) SetBezeled(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setBezeled:"), value) -} diff --git a/macos/appkit/date_picker_cell.gen.go b/macos/appkit/date_picker_cell.gen.go index 94525b8c..5dbb018f 100644 --- a/macos/appkit/date_picker_cell.gen.go +++ b/macos/appkit/date_picker_cell.gen.go @@ -19,35 +19,35 @@ type _DatePickerCellClass struct { // An interface definition for the [DatePickerCell] class. type IDatePickerCell interface { IActionCell - MinDate() foundation.Date - SetMinDate(value foundation.IDate) - DrawsBackground() bool - SetDrawsBackground(value bool) - TimeInterval() foundation.TimeInterval - SetTimeInterval(value foundation.TimeInterval) - DatePickerStyle() DatePickerStyle - SetDatePickerStyle(value DatePickerStyle) - MaxDate() foundation.Date - SetMaxDate(value foundation.IDate) - DatePickerMode() DatePickerMode - SetDatePickerMode(value DatePickerMode) DatePickerElements() DatePickerElementFlags SetDatePickerElements(value DatePickerElementFlags) + TimeInterval() foundation.TimeInterval + SetTimeInterval(value foundation.TimeInterval) + Locale() foundation.Locale + SetLocale(value foundation.ILocale) Delegate() DatePickerCellDelegateObject SetDelegate(value PDatePickerCellDelegate) SetDelegateObject(valueObject objc.IObject) - Locale() foundation.Locale - SetLocale(value foundation.ILocale) - Calendar() foundation.Calendar - SetCalendar(value foundation.ICalendar) BackgroundColor() Color SetBackgroundColor(value IColor) + MinDate() foundation.Date + SetMinDate(value foundation.IDate) + DrawsBackground() bool + SetDrawsBackground(value bool) TimeZone() foundation.TimeZone SetTimeZone(value foundation.ITimeZone) - TextColor() Color - SetTextColor(value IColor) DateValue() foundation.Date SetDateValue(value foundation.IDate) + TextColor() Color + SetTextColor(value IColor) + Calendar() foundation.Calendar + SetCalendar(value foundation.ICalendar) + DatePickerMode() DatePickerMode + SetDatePickerMode(value DatePickerMode) + MaxDate() foundation.Date + SetMaxDate(value foundation.IDate) + DatePickerStyle() DatePickerStyle + SetDatePickerStyle(value DatePickerStyle) } // An object that controls the behavior of a date picker, or of a single date picker cell in a matrix. [Full Topic] @@ -111,34 +111,19 @@ func NewDatePickerCellImageCell(image IImage) DatePickerCell { return instance } -// The minimum date that the picker allows as input. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459619-mindate?language=objc -func (d_ DatePickerCell) MinDate() foundation.Date { - rv := objc.Call[foundation.Date](d_, objc.Sel("minDate")) - return rv -} - -// The minimum date that the picker allows as input. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459619-mindate?language=objc -func (d_ DatePickerCell) SetMinDate(value foundation.IDate) { - objc.Call[objc.Void](d_, objc.Sel("setMinDate:"), value) -} - -// A Boolean value indicating whether the cell draws its background. [Full Topic] +// A bitmask that indicates which visual elements are shown by the date picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459591-drawsbackground?language=objc -func (d_ DatePickerCell) DrawsBackground() bool { - rv := objc.Call[bool](d_, objc.Sel("drawsBackground")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459639-datepickerelements?language=objc +func (d_ DatePickerCell) DatePickerElements() DatePickerElementFlags { + rv := objc.Call[DatePickerElementFlags](d_, objc.Sel("datePickerElements")) return rv } -// A Boolean value indicating whether the cell draws its background. [Full Topic] +// A bitmask that indicates which visual elements are shown by the date picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459591-drawsbackground?language=objc -func (d_ DatePickerCell) SetDrawsBackground(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setDrawsBackground:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459639-datepickerelements?language=objc +func (d_ DatePickerCell) SetDatePickerElements(value DatePickerElementFlags) { + objc.Call[objc.Void](d_, objc.Sel("setDatePickerElements:"), value) } // The time interval that represents the date range. [Full Topic] @@ -156,64 +141,19 @@ func (d_ DatePickerCell) SetTimeInterval(value foundation.TimeInterval) { objc.Call[objc.Void](d_, objc.Sel("setTimeInterval:"), value) } -// The date picker style to use. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459635-datepickerstyle?language=objc -func (d_ DatePickerCell) DatePickerStyle() DatePickerStyle { - rv := objc.Call[DatePickerStyle](d_, objc.Sel("datePickerStyle")) - return rv -} - -// The date picker style to use. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459635-datepickerstyle?language=objc -func (d_ DatePickerCell) SetDatePickerStyle(value DatePickerStyle) { - objc.Call[objc.Void](d_, objc.Sel("setDatePickerStyle:"), value) -} - -// The maximum date that the picker allows as input. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459640-maxdate?language=objc -func (d_ DatePickerCell) MaxDate() foundation.Date { - rv := objc.Call[foundation.Date](d_, objc.Sel("maxDate")) - return rv -} - -// The maximum date that the picker allows as input. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459640-maxdate?language=objc -func (d_ DatePickerCell) SetMaxDate(value foundation.IDate) { - objc.Call[objc.Void](d_, objc.Sel("setMaxDate:"), value) -} - -// The mode in use by the date picker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459602-datepickermode?language=objc -func (d_ DatePickerCell) DatePickerMode() DatePickerMode { - rv := objc.Call[DatePickerMode](d_, objc.Sel("datePickerMode")) - return rv -} - -// The mode in use by the date picker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459602-datepickermode?language=objc -func (d_ DatePickerCell) SetDatePickerMode(value DatePickerMode) { - objc.Call[objc.Void](d_, objc.Sel("setDatePickerMode:"), value) -} - -// A bitmask that indicates which visual elements are shown by the date picker. [Full Topic] +// The locale used to display dates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459639-datepickerelements?language=objc -func (d_ DatePickerCell) DatePickerElements() DatePickerElementFlags { - rv := objc.Call[DatePickerElementFlags](d_, objc.Sel("datePickerElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459625-locale?language=objc +func (d_ DatePickerCell) Locale() foundation.Locale { + rv := objc.Call[foundation.Locale](d_, objc.Sel("locale")) return rv } -// A bitmask that indicates which visual elements are shown by the date picker. [Full Topic] +// The locale used to display dates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459639-datepickerelements?language=objc -func (d_ DatePickerCell) SetDatePickerElements(value DatePickerElementFlags) { - objc.Call[objc.Void](d_, objc.Sel("setDatePickerElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459625-locale?language=objc +func (d_ DatePickerCell) SetLocale(value foundation.ILocale) { + objc.Call[objc.Void](d_, objc.Sel("setLocale:"), value) } // The delegate associated with the date picker. [Full Topic] @@ -240,49 +180,49 @@ func (d_ DatePickerCell) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), valueObject) } -// The locale used to display dates. [Full Topic] +// The cell’s background color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459625-locale?language=objc -func (d_ DatePickerCell) Locale() foundation.Locale { - rv := objc.Call[foundation.Locale](d_, objc.Sel("locale")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459629-backgroundcolor?language=objc +func (d_ DatePickerCell) BackgroundColor() Color { + rv := objc.Call[Color](d_, objc.Sel("backgroundColor")) return rv } -// The locale used to display dates. [Full Topic] +// The cell’s background color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459625-locale?language=objc -func (d_ DatePickerCell) SetLocale(value foundation.ILocale) { - objc.Call[objc.Void](d_, objc.Sel("setLocale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459629-backgroundcolor?language=objc +func (d_ DatePickerCell) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](d_, objc.Sel("setBackgroundColor:"), value) } -// The calendar used by the date picker. [Full Topic] +// The minimum date that the picker allows as input. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459609-calendar?language=objc -func (d_ DatePickerCell) Calendar() foundation.Calendar { - rv := objc.Call[foundation.Calendar](d_, objc.Sel("calendar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459619-mindate?language=objc +func (d_ DatePickerCell) MinDate() foundation.Date { + rv := objc.Call[foundation.Date](d_, objc.Sel("minDate")) return rv } -// The calendar used by the date picker. [Full Topic] +// The minimum date that the picker allows as input. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459609-calendar?language=objc -func (d_ DatePickerCell) SetCalendar(value foundation.ICalendar) { - objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459619-mindate?language=objc +func (d_ DatePickerCell) SetMinDate(value foundation.IDate) { + objc.Call[objc.Void](d_, objc.Sel("setMinDate:"), value) } -// The cell’s background color. [Full Topic] +// A Boolean value indicating whether the cell draws its background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459629-backgroundcolor?language=objc -func (d_ DatePickerCell) BackgroundColor() Color { - rv := objc.Call[Color](d_, objc.Sel("backgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459591-drawsbackground?language=objc +func (d_ DatePickerCell) DrawsBackground() bool { + rv := objc.Call[bool](d_, objc.Sel("drawsBackground")) return rv } -// The cell’s background color. [Full Topic] +// A Boolean value indicating whether the cell draws its background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459629-backgroundcolor?language=objc -func (d_ DatePickerCell) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](d_, objc.Sel("setBackgroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459591-drawsbackground?language=objc +func (d_ DatePickerCell) SetDrawsBackground(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setDrawsBackground:"), value) } // The time zone used to display time-related values. [Full Topic] @@ -300,6 +240,21 @@ func (d_ DatePickerCell) SetTimeZone(value foundation.ITimeZone) { objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), value) } +// The date currently specified in the picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459594-datevalue?language=objc +func (d_ DatePickerCell) DateValue() foundation.Date { + rv := objc.Call[foundation.Date](d_, objc.Sel("dateValue")) + return rv +} + +// The date currently specified in the picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459594-datevalue?language=objc +func (d_ DatePickerCell) SetDateValue(value foundation.IDate) { + objc.Call[objc.Void](d_, objc.Sel("setDateValue:"), value) +} + // The cell’s text color. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459644-textcolor?language=objc @@ -315,17 +270,62 @@ func (d_ DatePickerCell) SetTextColor(value IColor) { objc.Call[objc.Void](d_, objc.Sel("setTextColor:"), value) } -// The date currently specified in the picker. [Full Topic] +// The calendar used by the date picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459594-datevalue?language=objc -func (d_ DatePickerCell) DateValue() foundation.Date { - rv := objc.Call[foundation.Date](d_, objc.Sel("dateValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459609-calendar?language=objc +func (d_ DatePickerCell) Calendar() foundation.Calendar { + rv := objc.Call[foundation.Calendar](d_, objc.Sel("calendar")) return rv } -// The date currently specified in the picker. [Full Topic] +// The calendar used by the date picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459594-datevalue?language=objc -func (d_ DatePickerCell) SetDateValue(value foundation.IDate) { - objc.Call[objc.Void](d_, objc.Sel("setDateValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459609-calendar?language=objc +func (d_ DatePickerCell) SetCalendar(value foundation.ICalendar) { + objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), value) +} + +// The mode in use by the date picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459602-datepickermode?language=objc +func (d_ DatePickerCell) DatePickerMode() DatePickerMode { + rv := objc.Call[DatePickerMode](d_, objc.Sel("datePickerMode")) + return rv +} + +// The mode in use by the date picker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459602-datepickermode?language=objc +func (d_ DatePickerCell) SetDatePickerMode(value DatePickerMode) { + objc.Call[objc.Void](d_, objc.Sel("setDatePickerMode:"), value) +} + +// The maximum date that the picker allows as input. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459640-maxdate?language=objc +func (d_ DatePickerCell) MaxDate() foundation.Date { + rv := objc.Call[foundation.Date](d_, objc.Sel("maxDate")) + return rv +} + +// The maximum date that the picker allows as input. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459640-maxdate?language=objc +func (d_ DatePickerCell) SetMaxDate(value foundation.IDate) { + objc.Call[objc.Void](d_, objc.Sel("setMaxDate:"), value) +} + +// The date picker style to use. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459635-datepickerstyle?language=objc +func (d_ DatePickerCell) DatePickerStyle() DatePickerStyle { + rv := objc.Call[DatePickerStyle](d_, objc.Sel("datePickerStyle")) + return rv +} + +// The date picker style to use. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459635-datepickerstyle?language=objc +func (d_ DatePickerCell) SetDatePickerStyle(value DatePickerStyle) { + objc.Call[objc.Void](d_, objc.Sel("setDatePickerStyle:"), value) } diff --git a/macos/appkit/dictionary_controller.gen.go b/macos/appkit/dictionary_controller.gen.go index 2dcb345a..45057f82 100644 --- a/macos/appkit/dictionary_controller.gen.go +++ b/macos/appkit/dictionary_controller.gen.go @@ -20,16 +20,16 @@ type IDictionaryController interface { IArrayController ExcludedKeys() []string SetExcludedKeys(value []string) - InitialKey() string - SetInitialKey(value string) - LocalizedKeyDictionary() map[string]string - SetLocalizedKeyDictionary(value map[string]string) - IncludedKeys() []string - SetIncludedKeys(value []string) LocalizedKeyTable() string SetLocalizedKeyTable(value string) + IncludedKeys() []string + SetIncludedKeys(value []string) InitialValue() objc.Object SetInitialValue(value objc.IObject) + InitialKey() string + SetInitialKey(value string) + LocalizedKeyDictionary() map[string]string + SetLocalizedKeyDictionary(value map[string]string) } // A bindings-compatible controller that manages the display and editing of a dictionary of key-value pairs. [Full Topic] @@ -94,34 +94,19 @@ func (d_ DictionaryController) SetExcludedKeys(value []string) { objc.Call[objc.Void](d_, objc.Sel("setExcludedKeys:"), value) } -// The string used as the initial key name for a newly inserted item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1530444-initialkey?language=objc -func (d_ DictionaryController) InitialKey() string { - rv := objc.Call[string](d_, objc.Sel("initialKey")) - return rv -} - -// The string used as the initial key name for a newly inserted item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1530444-initialkey?language=objc -func (d_ DictionaryController) SetInitialKey(value string) { - objc.Call[objc.Void](d_, objc.Sel("setInitialKey:"), value) -} - -// The localized key names that are displayed by the receiver in place of the key names. [Full Topic] +// the strings file used to localize key names. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1532944-localizedkeydictionary?language=objc -func (d_ DictionaryController) LocalizedKeyDictionary() map[string]string { - rv := objc.Call[map[string]string](d_, objc.Sel("localizedKeyDictionary")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1524332-localizedkeytable?language=objc +func (d_ DictionaryController) LocalizedKeyTable() string { + rv := objc.Call[string](d_, objc.Sel("localizedKeyTable")) return rv } -// The localized key names that are displayed by the receiver in place of the key names. [Full Topic] +// the strings file used to localize key names. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1532944-localizedkeydictionary?language=objc -func (d_ DictionaryController) SetLocalizedKeyDictionary(value map[string]string) { - objc.Call[objc.Void](d_, objc.Sel("setLocalizedKeyDictionary:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1524332-localizedkeytable?language=objc +func (d_ DictionaryController) SetLocalizedKeyTable(value string) { + objc.Call[objc.Void](d_, objc.Sel("setLocalizedKeyTable:"), value) } // The key names that are represented by a key-value pair, even if they are not present in the receiver’s content dictionary. [Full Topic] @@ -139,21 +124,6 @@ func (d_ DictionaryController) SetIncludedKeys(value []string) { objc.Call[objc.Void](d_, objc.Sel("setIncludedKeys:"), value) } -// the strings file used to localize key names. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1524332-localizedkeytable?language=objc -func (d_ DictionaryController) LocalizedKeyTable() string { - rv := objc.Call[string](d_, objc.Sel("localizedKeyTable")) - return rv -} - -// the strings file used to localize key names. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1524332-localizedkeytable?language=objc -func (d_ DictionaryController) SetLocalizedKeyTable(value string) { - objc.Call[objc.Void](d_, objc.Sel("setLocalizedKeyTable:"), value) -} - // The string used as the initial value for a newly inserted item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1535925-initialvalue?language=objc @@ -168,3 +138,33 @@ func (d_ DictionaryController) InitialValue() objc.Object { func (d_ DictionaryController) SetInitialValue(value objc.IObject) { objc.Call[objc.Void](d_, objc.Sel("setInitialValue:"), value) } + +// The string used as the initial key name for a newly inserted item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1530444-initialkey?language=objc +func (d_ DictionaryController) InitialKey() string { + rv := objc.Call[string](d_, objc.Sel("initialKey")) + return rv +} + +// The string used as the initial key name for a newly inserted item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1530444-initialkey?language=objc +func (d_ DictionaryController) SetInitialKey(value string) { + objc.Call[objc.Void](d_, objc.Sel("setInitialKey:"), value) +} + +// The localized key names that are displayed by the receiver in place of the key names. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1532944-localizedkeydictionary?language=objc +func (d_ DictionaryController) LocalizedKeyDictionary() map[string]string { + rv := objc.Call[map[string]string](d_, objc.Sel("localizedKeyDictionary")) + return rv +} + +// The localized key names that are displayed by the receiver in place of the key names. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontroller/1532944-localizedkeydictionary?language=objc +func (d_ DictionaryController) SetLocalizedKeyDictionary(value map[string]string) { + objc.Call[objc.Void](d_, objc.Sel("setLocalizedKeyDictionary:"), value) +} diff --git a/macos/appkit/dictionary_controller_key_value_pair.gen.go b/macos/appkit/dictionary_controller_key_value_pair.gen.go index bea7ace9..95f6339a 100644 --- a/macos/appkit/dictionary_controller_key_value_pair.gen.go +++ b/macos/appkit/dictionary_controller_key_value_pair.gen.go @@ -18,13 +18,13 @@ type _DictionaryControllerKeyValuePairClass struct { // An interface definition for the [DictionaryControllerKeyValuePair] class. type IDictionaryControllerKeyValuePair interface { objc.IObject - IsExplicitlyIncluded() bool LocalizedKey() string SetLocalizedKey(value string) - Value() objc.Object - SetValue(value objc.IObject) Key() string SetKey(value string) + Value() objc.Object + SetValue(value objc.IObject) + IsExplicitlyIncluded() bool } // A set of methods implemented by arranged objects to give access to information about those objects. [Full Topic] @@ -60,14 +60,6 @@ func (d_ DictionaryControllerKeyValuePair) Init() DictionaryControllerKeyValuePa return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontrollerkeyvaluepair/1526717-explicitlyincluded?language=objc -func (d_ DictionaryControllerKeyValuePair) IsExplicitlyIncluded() bool { - rv := objc.Call[bool](d_, objc.Sel("isExplicitlyIncluded")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontrollerkeyvaluepair/1531961-localizedkey?language=objc @@ -83,6 +75,21 @@ func (d_ DictionaryControllerKeyValuePair) SetLocalizedKey(value string) { objc.Call[objc.Void](d_, objc.Sel("setLocalizedKey:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontrollerkeyvaluepair/1527207-key?language=objc +func (d_ DictionaryControllerKeyValuePair) Key() string { + rv := objc.Call[string](d_, objc.Sel("key")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontrollerkeyvaluepair/1527207-key?language=objc +func (d_ DictionaryControllerKeyValuePair) SetKey(value string) { + objc.Call[objc.Void](d_, objc.Sel("setKey:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontrollerkeyvaluepair/1532277-value?language=objc @@ -100,15 +107,8 @@ func (d_ DictionaryControllerKeyValuePair) SetValue(value objc.IObject) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontrollerkeyvaluepair/1527207-key?language=objc -func (d_ DictionaryControllerKeyValuePair) Key() string { - rv := objc.Call[string](d_, objc.Sel("key")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontrollerkeyvaluepair/1526717-explicitlyincluded?language=objc +func (d_ DictionaryControllerKeyValuePair) IsExplicitlyIncluded() bool { + rv := objc.Call[bool](d_, objc.Sel("isExplicitlyIncluded")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontrollerkeyvaluepair/1527207-key?language=objc -func (d_ DictionaryControllerKeyValuePair) SetKey(value string) { - objc.Call[objc.Void](d_, objc.Sel("setKey:"), value) -} diff --git a/macos/appkit/diffable_data_source_snapshot.gen.go b/macos/appkit/diffable_data_source_snapshot.gen.go index 3953b8fe..eaa8a8c8 100644 --- a/macos/appkit/diffable_data_source_snapshot.gen.go +++ b/macos/appkit/diffable_data_source_snapshot.gen.go @@ -18,31 +18,26 @@ type _DiffableDataSourceSnapshotClass struct { // An interface definition for the [DiffableDataSourceSnapshot] class. type IDiffableDataSourceSnapshot interface { objc.IObject - DeleteSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) - MoveItemWithIdentifierAfterItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) + SectionIdentifierForSectionContainingItemIdentifier(itemIdentifier objc.IObject) objc.Object + ReloadItemsWithIdentifiers(identifiers []objc.IObject) + AppendSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) + MoveSectionWithIdentifierAfterSectionWithIdentifier(fromSectionIdentifier objc.IObject, toSectionIdentifier objc.IObject) + IndexOfSectionIdentifier(sectionIdentifier objc.IObject) int ReloadSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) - MoveItemWithIdentifierBeforeItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) + NumberOfItemsInSection(sectionIdentifier objc.IObject) int DeleteItemsWithIdentifiers(identifiers []objc.IObject) - InsertItemsWithIdentifiersBeforeItemWithIdentifier(identifiers []objc.IObject, itemIdentifier objc.IObject) - AppendItemsWithIdentifiers(identifiers []objc.IObject) - IndexOfItemIdentifier(itemIdentifier objc.IObject) int - AppendItemsWithIdentifiersIntoSectionWithIdentifier(identifiers []objc.IObject, sectionIdentifier objc.IObject) - MoveSectionWithIdentifierAfterSectionWithIdentifier(fromSectionIdentifier objc.IObject, toSectionIdentifier objc.IObject) - InsertSectionsWithIdentifiersAfterSectionWithIdentifier(sectionIdentifiers []objc.IObject, toSectionIdentifier objc.IObject) - MoveSectionWithIdentifierBeforeSectionWithIdentifier(fromSectionIdentifier objc.IObject, toSectionIdentifier objc.IObject) - ReloadItemsWithIdentifiers(identifiers []objc.IObject) - InsertItemsWithIdentifiersAfterItemWithIdentifier(identifiers []objc.IObject, itemIdentifier objc.IObject) DeleteAllItems() - InsertSectionsWithIdentifiersBeforeSectionWithIdentifier(sectionIdentifiers []objc.IObject, toSectionIdentifier objc.IObject) - SectionIdentifierForSectionContainingItemIdentifier(itemIdentifier objc.IObject) objc.Object - AppendSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) + InsertSectionsWithIdentifiersAfterSectionWithIdentifier(sectionIdentifiers []objc.IObject, toSectionIdentifier objc.IObject) + MoveItemWithIdentifierAfterItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) + IndexOfItemIdentifier(itemIdentifier objc.IObject) int ItemIdentifiersInSectionWithIdentifier(sectionIdentifier objc.IObject) []objc.Object - NumberOfItemsInSection(sectionIdentifier objc.IObject) int - IndexOfSectionIdentifier(sectionIdentifier objc.IObject) int - NumberOfSections() int + InsertItemsWithIdentifiersAfterItemWithIdentifier(identifiers []objc.IObject, itemIdentifier objc.IObject) + AppendItemsWithIdentifiers(identifiers []objc.IObject) + DeleteSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) + SectionIdentifiers() []objc.Object NumberOfItems() int ItemIdentifiers() []objc.Object - SectionIdentifiers() []objc.Object + NumberOfSections() int } // A representation of the state of the data in a view at a specific point in time. [Full Topic] @@ -78,68 +73,26 @@ func (d_ DiffableDataSourceSnapshot) Init() DiffableDataSourceSnapshot { return rv } -// Deletes the sections with the specified identifiers from the snapshot. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182900-deletesectionswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) DeleteSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("deleteSectionsWithIdentifiers:"), sectionIdentifiers) -} - -// Moves the item from its current position in the snapshot to the position immediately after the specified item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182909-moveitemwithidentifier?language=objc -func (d_ DiffableDataSourceSnapshot) MoveItemWithIdentifierAfterItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("moveItemWithIdentifier:afterItemWithIdentifier:"), fromIdentifier, toIdentifier) -} - -// Reloads the data within the specified sections of the snapshot. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182917-reloadsectionswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) ReloadSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("reloadSectionsWithIdentifiers:"), sectionIdentifiers) -} - -// Moves the item from its current position in the snapshot to the position immediately before the specified item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182910-moveitemwithidentifier?language=objc -func (d_ DiffableDataSourceSnapshot) MoveItemWithIdentifierBeforeItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("moveItemWithIdentifier:beforeItemWithIdentifier:"), fromIdentifier, toIdentifier) -} - -// Deletes the items with the specified identifiers from the snapshot. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182899-deleteitemswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) DeleteItemsWithIdentifiers(identifiers []objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("deleteItemsWithIdentifiers:"), identifiers) -} - -// Inserts the provided items immediately before the item with the specified identifier in the snapshot. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182904-insertitemswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) InsertItemsWithIdentifiersBeforeItemWithIdentifier(identifiers []objc.IObject, itemIdentifier objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("insertItemsWithIdentifiers:beforeItemWithIdentifier:"), identifiers, itemIdentifier) -} - -// Adds the items with the specified identifiers to the last section of the snapshot. [Full Topic] +// Returns the identifier of the section containing the specified item in the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182895-appenditemswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) AppendItemsWithIdentifiers(identifiers []objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("appendItemsWithIdentifiers:"), identifiers) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182918-sectionidentifierforsectionconta?language=objc +func (d_ DiffableDataSourceSnapshot) SectionIdentifierForSectionContainingItemIdentifier(itemIdentifier objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("sectionIdentifierForSectionContainingItemIdentifier:"), itemIdentifier) + return rv } -// Returns the index of the item in the snapshot with the specified identifier. [Full Topic] +// Reloads the data within the specified items in the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182901-indexofitemidentifier?language=objc -func (d_ DiffableDataSourceSnapshot) IndexOfItemIdentifier(itemIdentifier objc.IObject) int { - rv := objc.Call[int](d_, objc.Sel("indexOfItemIdentifier:"), itemIdentifier) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182916-reloaditemswithidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) ReloadItemsWithIdentifiers(identifiers []objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("reloadItemsWithIdentifiers:"), identifiers) } -// Adds the items with the specified identifiers to the specified section of the snapshot. [Full Topic] +// Adds the sections with the specified identifiers to the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182896-appenditemswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) AppendItemsWithIdentifiersIntoSectionWithIdentifier(identifiers []objc.IObject, sectionIdentifier objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("appendItemsWithIdentifiers:intoSectionWithIdentifier:"), identifiers, sectionIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182897-appendsectionswithidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) AppendSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("appendSectionsWithIdentifiers:"), sectionIdentifiers) } // Moves the section from its current position in the snapshot to the position immediately after the specified section. [Full Topic] @@ -149,32 +102,34 @@ func (d_ DiffableDataSourceSnapshot) MoveSectionWithIdentifierAfterSectionWithId objc.Call[objc.Void](d_, objc.Sel("moveSectionWithIdentifier:afterSectionWithIdentifier:"), fromSectionIdentifier, toSectionIdentifier) } -// Inserts the provided sections immediately after the section with the specified identifier in the snapshot. [Full Topic] +// Returns the index of the section of the snapshot with the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182905-insertsectionswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) InsertSectionsWithIdentifiersAfterSectionWithIdentifier(sectionIdentifiers []objc.IObject, toSectionIdentifier objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("insertSectionsWithIdentifiers:afterSectionWithIdentifier:"), sectionIdentifiers, toSectionIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182902-indexofsectionidentifier?language=objc +func (d_ DiffableDataSourceSnapshot) IndexOfSectionIdentifier(sectionIdentifier objc.IObject) int { + rv := objc.Call[int](d_, objc.Sel("indexOfSectionIdentifier:"), sectionIdentifier) + return rv } -// Moves the section from its current position in the snapshot to the position immediately before the specified section. [Full Topic] +// Reloads the data within the specified sections of the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182912-movesectionwithidentifier?language=objc -func (d_ DiffableDataSourceSnapshot) MoveSectionWithIdentifierBeforeSectionWithIdentifier(fromSectionIdentifier objc.IObject, toSectionIdentifier objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("moveSectionWithIdentifier:beforeSectionWithIdentifier:"), fromSectionIdentifier, toSectionIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182917-reloadsectionswithidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) ReloadSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("reloadSectionsWithIdentifiers:"), sectionIdentifiers) } -// Reloads the data within the specified items in the snapshot. [Full Topic] +// Returns the number of items in the specified section of the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182916-reloaditemswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) ReloadItemsWithIdentifiers(identifiers []objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("reloadItemsWithIdentifiers:"), identifiers) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182914-numberofitemsinsection?language=objc +func (d_ DiffableDataSourceSnapshot) NumberOfItemsInSection(sectionIdentifier objc.IObject) int { + rv := objc.Call[int](d_, objc.Sel("numberOfItemsInSection:"), sectionIdentifier) + return rv } -// Inserts the provided items immediately after the item with the specified identifier in the snapshot. [Full Topic] +// Deletes the items with the specified identifiers from the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182903-insertitemswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) InsertItemsWithIdentifiersAfterItemWithIdentifier(identifiers []objc.IObject, itemIdentifier objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("insertItemsWithIdentifiers:afterItemWithIdentifier:"), identifiers, itemIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182899-deleteitemswithidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) DeleteItemsWithIdentifiers(identifiers []objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("deleteItemsWithIdentifiers:"), identifiers) } // Deletes all of the items from the snapshot. [Full Topic] @@ -184,26 +139,26 @@ func (d_ DiffableDataSourceSnapshot) DeleteAllItems() { objc.Call[objc.Void](d_, objc.Sel("deleteAllItems")) } -// Inserts the provided sections immediately before the section with the specified identifier in the snapshot. [Full Topic] +// Inserts the provided sections immediately after the section with the specified identifier in the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182906-insertsectionswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) InsertSectionsWithIdentifiersBeforeSectionWithIdentifier(sectionIdentifiers []objc.IObject, toSectionIdentifier objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("insertSectionsWithIdentifiers:beforeSectionWithIdentifier:"), sectionIdentifiers, toSectionIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182905-insertsectionswithidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) InsertSectionsWithIdentifiersAfterSectionWithIdentifier(sectionIdentifiers []objc.IObject, toSectionIdentifier objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("insertSectionsWithIdentifiers:afterSectionWithIdentifier:"), sectionIdentifiers, toSectionIdentifier) } -// Returns the identifier of the section containing the specified item in the snapshot. [Full Topic] +// Moves the item from its current position in the snapshot to the position immediately after the specified item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182918-sectionidentifierforsectionconta?language=objc -func (d_ DiffableDataSourceSnapshot) SectionIdentifierForSectionContainingItemIdentifier(itemIdentifier objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("sectionIdentifierForSectionContainingItemIdentifier:"), itemIdentifier) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182909-moveitemwithidentifier?language=objc +func (d_ DiffableDataSourceSnapshot) MoveItemWithIdentifierAfterItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("moveItemWithIdentifier:afterItemWithIdentifier:"), fromIdentifier, toIdentifier) } -// Adds the sections with the specified identifiers to the snapshot. [Full Topic] +// Returns the index of the item in the snapshot with the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182897-appendsectionswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) AppendSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("appendSectionsWithIdentifiers:"), sectionIdentifiers) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182901-indexofitemidentifier?language=objc +func (d_ DiffableDataSourceSnapshot) IndexOfItemIdentifier(itemIdentifier objc.IObject) int { + rv := objc.Call[int](d_, objc.Sel("indexOfItemIdentifier:"), itemIdentifier) + return rv } // Returns the identifiers of all of the items in the specified section of the snapshot. [Full Topic] @@ -214,27 +169,32 @@ func (d_ DiffableDataSourceSnapshot) ItemIdentifiersInSectionWithIdentifier(sect return rv } -// Returns the number of items in the specified section of the snapshot. [Full Topic] +// Inserts the provided items immediately after the item with the specified identifier in the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182914-numberofitemsinsection?language=objc -func (d_ DiffableDataSourceSnapshot) NumberOfItemsInSection(sectionIdentifier objc.IObject) int { - rv := objc.Call[int](d_, objc.Sel("numberOfItemsInSection:"), sectionIdentifier) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182903-insertitemswithidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) InsertItemsWithIdentifiersAfterItemWithIdentifier(identifiers []objc.IObject, itemIdentifier objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("insertItemsWithIdentifiers:afterItemWithIdentifier:"), identifiers, itemIdentifier) } -// Returns the index of the section of the snapshot with the specified identifier. [Full Topic] +// Adds the items with the specified identifiers to the last section of the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182902-indexofsectionidentifier?language=objc -func (d_ DiffableDataSourceSnapshot) IndexOfSectionIdentifier(sectionIdentifier objc.IObject) int { - rv := objc.Call[int](d_, objc.Sel("indexOfSectionIdentifier:"), sectionIdentifier) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182895-appenditemswithidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) AppendItemsWithIdentifiers(identifiers []objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("appendItemsWithIdentifiers:"), identifiers) } -// The number of sections in the snapshot. [Full Topic] +// Deletes the sections with the specified identifiers from the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182915-numberofsections?language=objc -func (d_ DiffableDataSourceSnapshot) NumberOfSections() int { - rv := objc.Call[int](d_, objc.Sel("numberOfSections")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182900-deletesectionswithidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) DeleteSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("deleteSectionsWithIdentifiers:"), sectionIdentifiers) +} + +// The identifiers of all of the sections in the snapshot. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182919-sectionidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) SectionIdentifiers() []objc.Object { + rv := objc.Call[[]objc.Object](d_, objc.Sel("sectionIdentifiers")) return rv } @@ -254,10 +214,10 @@ func (d_ DiffableDataSourceSnapshot) ItemIdentifiers() []objc.Object { return rv } -// The identifiers of all of the sections in the snapshot. [Full Topic] +// The number of sections in the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182919-sectionidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) SectionIdentifiers() []objc.Object { - rv := objc.Call[[]objc.Object](d_, objc.Sel("sectionIdentifiers")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsdiffabledatasourcesnapshot/3182915-numberofsections?language=objc +func (d_ DiffableDataSourceSnapshot) NumberOfSections() int { + rv := objc.Call[int](d_, objc.Sel("numberOfSections")) return rv } diff --git a/macos/appkit/dock_tile.gen.go b/macos/appkit/dock_tile.gen.go index f007d6a8..b78d1a43 100644 --- a/macos/appkit/dock_tile.gen.go +++ b/macos/appkit/dock_tile.gen.go @@ -20,14 +20,14 @@ type _DockTileClass struct { type IDockTile interface { objc.IObject Display() - Size() foundation.Size + ContentView() View + SetContentView(value IView) + ShowsApplicationBadge() bool + SetShowsApplicationBadge(value bool) Owner() objc.Object BadgeLabel() string SetBadgeLabel(value string) - ShowsApplicationBadge() bool - SetShowsApplicationBadge(value bool) - ContentView() View - SetContentView(value IView) + Size() foundation.Size } // The visual representation of your app’s miniaturized windows and app icon as they appear in the Dock. [Full Topic] @@ -70,14 +70,36 @@ func (d_ DockTile) Display() { objc.Call[objc.Void](d_, objc.Sel("display")) } -// The size of the tile. [Full Topic] +// The view to use for drawing the dock tile contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1534239-size?language=objc -func (d_ DockTile) Size() foundation.Size { - rv := objc.Call[foundation.Size](d_, objc.Sel("size")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1525995-contentview?language=objc +func (d_ DockTile) ContentView() View { + rv := objc.Call[View](d_, objc.Sel("contentView")) return rv } +// The view to use for drawing the dock tile contents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1525995-contentview?language=objc +func (d_ DockTile) SetContentView(value IView) { + objc.Call[objc.Void](d_, objc.Sel("setContentView:"), value) +} + +// A Boolean showing whether the tile is badged with the application’s icon [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1528057-showsapplicationbadge?language=objc +func (d_ DockTile) ShowsApplicationBadge() bool { + rv := objc.Call[bool](d_, objc.Sel("showsApplicationBadge")) + return rv +} + +// A Boolean showing whether the tile is badged with the application’s icon [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1528057-showsapplicationbadge?language=objc +func (d_ DockTile) SetShowsApplicationBadge(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setShowsApplicationBadge:"), value) +} + // The object represented by the dock tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1533723-owner?language=objc @@ -101,32 +123,10 @@ func (d_ DockTile) SetBadgeLabel(value string) { objc.Call[objc.Void](d_, objc.Sel("setBadgeLabel:"), value) } -// A Boolean showing whether the tile is badged with the application’s icon [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1528057-showsapplicationbadge?language=objc -func (d_ DockTile) ShowsApplicationBadge() bool { - rv := objc.Call[bool](d_, objc.Sel("showsApplicationBadge")) - return rv -} - -// A Boolean showing whether the tile is badged with the application’s icon [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1528057-showsapplicationbadge?language=objc -func (d_ DockTile) SetShowsApplicationBadge(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setShowsApplicationBadge:"), value) -} - -// The view to use for drawing the dock tile contents. [Full Topic] +// The size of the tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1525995-contentview?language=objc -func (d_ DockTile) ContentView() View { - rv := objc.Call[View](d_, objc.Sel("contentView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1534239-size?language=objc +func (d_ DockTile) Size() foundation.Size { + rv := objc.Call[foundation.Size](d_, objc.Sel("size")) return rv } - -// The view to use for drawing the dock tile contents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktile/1525995-contentview?language=objc -func (d_ DockTile) SetContentView(value IView) { - objc.Call[objc.Void](d_, objc.Sel("setContentView:"), value) -} diff --git a/macos/appkit/dock_tile_plug_in_protocol.gen.go b/macos/appkit/dock_tile_plug_in_protocol.gen.go index 8eb89bb6..7657aae0 100644 --- a/macos/appkit/dock_tile_plug_in_protocol.gen.go +++ b/macos/appkit/dock_tile_plug_in_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktileplugin?language=objc type PDockTilePlugIn interface { - // optional - DockMenu() Menu - HasDockMenu() bool - // optional SetDockTile(dockTile DockTile) HasSetDockTile() bool + + // optional + DockMenu() Menu + HasDockMenu() bool } // ensure impl type implements protocol interface @@ -27,6 +27,17 @@ type DockTilePlugInObject struct { objc.Object } +func (d_ DockTilePlugInObject) HasSetDockTile() bool { + return d_.RespondsToSelector(objc.Sel("setDockTile:")) +} + +// Invoked when the plug-in is first loaded and when the application is removed from the Dock. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktileplugin/1534120-setdocktile?language=objc +func (d_ DockTilePlugInObject) SetDockTile(dockTile DockTile) { + objc.Call[objc.Void](d_, objc.Sel("setDockTile:"), dockTile) +} + func (d_ DockTilePlugInObject) HasDockMenu() bool { return d_.RespondsToSelector(objc.Sel("dockMenu")) } @@ -38,14 +49,3 @@ func (d_ DockTilePlugInObject) DockMenu() Menu { rv := objc.Call[Menu](d_, objc.Sel("dockMenu")) return rv } - -func (d_ DockTilePlugInObject) HasSetDockTile() bool { - return d_.RespondsToSelector(objc.Sel("setDockTile:")) -} - -// Invoked when the plug-in is first loaded and when the application is removed from the Dock. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktileplugin/1534120-setdocktile?language=objc -func (d_ DockTilePlugInObject) SetDockTile(dockTile DockTile) { - objc.Call[objc.Void](d_, objc.Sel("setDockTile:"), dockTile) -} diff --git a/macos/appkit/document.gen.go b/macos/appkit/document.gen.go index c32aa4dc..7a917872 100644 --- a/macos/appkit/document.gen.go +++ b/macos/appkit/document.gen.go @@ -19,133 +19,127 @@ type _DocumentClass struct { // An interface definition for the [Document] class. type IDocument interface { objc.IObject - RemoveWindowController(windowController IWindowController) - ShareDocumentWithSharingServiceCompletionHandler(sharingService ISharingService, completionHandler func(success bool)) - SaveToURLOfTypeForSaveOperationCompletionHandler(url foundation.IURL, typeName string, saveOperation SaveOperationType, completionHandler func(errorOrNil foundation.Error)) - ContinueAsynchronousWorkOnMainThreadUsingBlock(block func()) - PerformSynchronousFileAccessUsingBlock(block func()) - HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object - WritableTypesForSaveOperation(saveOperation SaveOperationType) []string - AutosaveDocumentWithDelegateDidAutosaveSelectorContextInfo(delegate objc.IObject, didAutosaveSelector objc.Selector, contextInfo unsafe.Pointer) - ShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo(windowController IWindowController, delegate objc.IObject, shouldCloseSelector objc.Selector, contextInfo unsafe.Pointer) - RevertDocumentToSaved(sender objc.IObject) objc.Object - InvalidateRestorableState() - PrintOperationWithSettingsError(printSettings map[PrintInfoAttributeKey]objc.IObject, outError unsafe.Pointer) PrintOperation + LockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) RunModalSavePanelForSaveOperationDelegateDidSaveSelectorContextInfo(saveOperation SaveOperationType, delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) - Close() FileWrapperOfTypeError(typeName string, outError unsafe.Pointer) foundation.FileWrapper - UpdateUserActivityState(activity foundation.IUserActivity) - DuplicateDocumentWithDelegateDidDuplicateSelectorContextInfo(delegate objc.IObject, didDuplicateSelector objc.Selector, contextInfo unsafe.Pointer) - LockDocument(sender objc.IObject) objc.Object - LockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) - FileNameExtensionForTypeSaveOperation(typeName string, saveOperation SaveOperationType) string - CanCloseDocumentWithDelegateShouldCloseSelectorContextInfo(delegate objc.IObject, shouldCloseSelector objc.Selector, contextInfo unsafe.Pointer) - PrepareSharingServicePicker(sharingServicePicker ISharingServicePicker) - WriteSafelyToURLOfTypeForSaveOperationError(url foundation.IURL, typeName string, saveOperation SaveOperationType, outError unsafe.Pointer) bool - RunModalPageLayoutWithPrintInfoDelegateDidRunSelectorContextInfo(printInfo IPrintInfo, delegate objc.IObject, didRunSelector objc.Selector, contextInfo unsafe.Pointer) - PrepareSavePanel(savePanel ISavePanel) bool - MoveToURLCompletionHandler(url foundation.IURL, completionHandler func(arg0 foundation.Error)) - PrintDocumentWithSettingsShowPrintPanelDelegateDidPrintSelectorContextInfo(printSettings map[PrintInfoAttributeKey]objc.IObject, showPrintPanel bool, delegate objc.IObject, didPrintSelector objc.Selector, contextInfo unsafe.Pointer) - CheckAutosavingSafetyAndReturnError(outError unsafe.Pointer) bool - UnlockDocumentWithCompletionHandler(completionHandler func(didUnlock bool)) + PrintDocument(sender objc.IObject) objc.Object + RemoveWindowController(windowController IWindowController) + RevertDocumentToSaved(sender objc.IObject) objc.Object + DuplicateAndReturnError(outError unsafe.Pointer) Document + ShowWindows() + WillPresentError(error foundation.IError) foundation.Error + ContinueAsynchronousWorkOnMainThreadUsingBlock(block func()) + SetWindow(window IWindow) + WillNotPresentError(error foundation.IError) + DataOfTypeError(typeName string, outError unsafe.Pointer) []byte ScheduleAutosaving() + PrintOperationWithSettingsError(printSettings map[PrintInfoAttributeKey]objc.IObject, outError unsafe.Pointer) PrintOperation ContinueActivityUsingBlock(block func()) - SaveDocumentWithDelegateDidSaveSelectorContextInfo(delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) - MakeWindowControllers() - WindowControllerWillLoadNib(windowController IWindowController) - SaveDocumentToPDF(sender objc.IObject) objc.Object - DataOfTypeError(typeName string, outError unsafe.Pointer) []byte - EncodeRestorableStateWithCoderBackgroundQueue(coder foundation.ICoder, queue foundation.IOperationQueue) - SetDisplayName(displayNameOrNil string) - ChangeCountTokenForSaveOperation(saveOperation SaveOperationType) objc.Object - UpdateChangeCount(change DocumentChangeType) + InvalidateRestorableState() HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object + SaveDocumentAs(sender objc.IObject) objc.Object + LockDocument(sender objc.IObject) objc.Object + Close() + ShouldChangePrintInfo(newPrintInfo IPrintInfo) bool + HandleCloseScriptCommand(command foundation.ICloseCommand) objc.Object + PreparePageLayout(pageLayout IPageLayout) bool + PerformActivityWithSynchronousWaitingUsingBlock(waitSynchronously bool, block func(arg0 func())) + LockDocumentWithCompletionHandler(completionHandler func(didLock bool)) + UnblockUserInteraction() SaveDocument(sender objc.IObject) objc.Object - RevertToContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) bool - PrintDocument(sender objc.IObject) objc.Object - SetWindow(window IWindow) - WillNotPresentError(error foundation.IError) + WindowControllerWillLoadNib(windowController IWindowController) + MoveDocumentToUbiquityContainer(sender objc.IObject) objc.Object + PerformSynchronousFileAccessUsingBlock(block func()) + WriteSafelyToURLOfTypeForSaveOperationError(url foundation.IURL, typeName string, saveOperation SaveOperationType, outError unsafe.Pointer) bool + SaveDocumentTo(sender objc.IObject) objc.Object + BrowseDocumentVersions(sender objc.IObject) objc.Object + SaveDocumentToPDF(sender objc.IObject) objc.Object + WritableTypesForSaveOperation(saveOperation SaveOperationType) []string + DuplicateDocumentWithDelegateDidDuplicateSelectorContextInfo(delegate objc.IObject, didDuplicateSelector objc.Selector, contextInfo unsafe.Pointer) + ReadFromURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) bool + AutosaveWithImplicitCancellabilityCompletionHandler(autosavingIsImplicitlyCancellable bool, completionHandler func(errorOrNil foundation.Error)) + DefaultDraftName() string AddWindowController(windowController IWindowController) + HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object RestoreStateWithCoder(coder foundation.ICoder) - ShowWindows() - EncodeRestorableStateWithCoder(coder foundation.ICoder) - DefaultDraftName() string - SaveToURLOfTypeForSaveOperationDelegateDidSaveSelectorContextInfo(url foundation.IURL, typeName string, saveOperation SaveOperationType, delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) - ReadFromURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) bool - PresentError(error foundation.IError) bool - RenameDocument(sender objc.IObject) objc.Object - PreparePageLayout(pageLayout IPageLayout) bool + SetDisplayName(displayNameOrNil string) + CanCloseDocumentWithDelegateShouldCloseSelectorContextInfo(delegate objc.IObject, shouldCloseSelector objc.Selector, contextInfo unsafe.Pointer) + RestoreDocumentWindowWithIdentifierStateCompletionHandler(identifier UserInterfaceItemIdentifier, state foundation.ICoder, completionHandler func(arg0 Window, arg1 foundation.Error)) ValidateUserInterfaceItem(item PValidatedUserInterfaceItem) bool ValidateUserInterfaceItemObject(itemObject objc.IObject) bool - AutosaveWithImplicitCancellabilityCompletionHandler(autosavingIsImplicitlyCancellable bool, completionHandler func(errorOrNil foundation.Error)) - ShouldChangePrintInfo(newPrintInfo IPrintInfo) bool - PresentErrorModalForWindowDelegateDidPresentSelectorContextInfo(error foundation.IError, window IWindow, delegate objc.IObject, didPresentSelector objc.Selector, contextInfo unsafe.Pointer) - UnlockDocument(sender objc.IObject) objc.Object - WriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError unsafe.Pointer) bool - FileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError unsafe.Pointer) map[string]objc.Object - DuplicateAndReturnError(outError unsafe.Pointer) Document - WindowControllerDidLoadNib(windowController IWindowController) - RunModalPrintOperationDelegateDidRunSelectorContextInfo(printOperation IPrintOperation, delegate objc.IObject, didRunSelector objc.Selector, contextInfo unsafe.Pointer) - StopBrowsingVersionsWithCompletionHandler(completionHandler func()) + ReadFromDataOfTypeError(data []byte, typeName string, outError unsafe.Pointer) bool RunPageLayout(sender objc.IObject) objc.Object - HandleCloseScriptCommand(command foundation.ICloseCommand) objc.Object - UpdateChangeCountWithTokenForSaveOperation(changeCountToken objc.IObject, saveOperation SaveOperationType) - SaveDocumentTo(sender objc.IObject) objc.Object + UpdateUserActivityState(activity foundation.IUserActivity) + UnlockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) MoveDocumentWithCompletionHandler(completionHandler func(didMove bool)) - ReadFromDataOfTypeError(data []byte, typeName string, outError unsafe.Pointer) bool - SaveDocumentAs(sender objc.IObject) objc.Object + PerformAsynchronousFileAccessUsingBlock(block func(arg0 func())) + CanAsynchronouslyWriteToURLOfTypeForSaveOperation(url foundation.IURL, typeName string, saveOperation SaveOperationType) bool + ChangeCountTokenForSaveOperation(saveOperation SaveOperationType) objc.Object + FileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError unsafe.Pointer) map[string]objc.Object + UnlockDocumentWithCompletionHandler(completionHandler func(didUnlock bool)) + FileNameExtensionForTypeSaveOperation(typeName string, saveOperation SaveOperationType) string + RenameDocument(sender objc.IObject) objc.Object + ShareDocumentWithSharingServiceCompletionHandler(sharingService ISharingService, completionHandler func(success bool)) ReadFromFileWrapperOfTypeError(fileWrapper foundation.IFileWrapper, typeName string, outError unsafe.Pointer) bool - PerformActivityWithSynchronousWaitingUsingBlock(waitSynchronously bool, block func(arg0 func())) - RestoreDocumentWindowWithIdentifierStateCompletionHandler(identifier UserInterfaceItemIdentifier, state foundation.ICoder, completionHandler func(arg0 Window, arg1 foundation.Error)) - WillPresentError(error foundation.IError) foundation.Error - WriteToURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) bool + WriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError unsafe.Pointer) bool + StopBrowsingVersionsWithCompletionHandler(completionHandler func()) + PrintDocumentWithSettingsShowPrintPanelDelegateDidPrintSelectorContextInfo(printSettings map[PrintInfoAttributeKey]objc.IObject, showPrintPanel bool, delegate objc.IObject, didPrintSelector objc.Selector, contextInfo unsafe.Pointer) DuplicateDocument(sender objc.IObject) objc.Object - UnblockUserInteraction() + MakeWindowControllers() + UnlockDocument(sender objc.IObject) objc.Object + RunModalPrintOperationDelegateDidRunSelectorContextInfo(printOperation IPrintOperation, delegate objc.IObject, didRunSelector objc.Selector, contextInfo unsafe.Pointer) + SaveDocumentWithDelegateDidSaveSelectorContextInfo(delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) + RevertToContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) bool + CheckAutosavingSafetyAndReturnError(outError unsafe.Pointer) bool + WindowControllerDidLoadNib(windowController IWindowController) + ShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo(windowController IWindowController, delegate objc.IObject, shouldCloseSelector objc.Selector, contextInfo unsafe.Pointer) + MoveToURLCompletionHandler(url foundation.IURL, completionHandler func(arg0 foundation.Error)) + AutosaveDocumentWithDelegateDidAutosaveSelectorContextInfo(delegate objc.IObject, didAutosaveSelector objc.Selector, contextInfo unsafe.Pointer) + PrepareSavePanel(savePanel ISavePanel) bool + PresentError(error foundation.IError) bool MoveDocument(sender objc.IObject) objc.Object - CanAsynchronouslyWriteToURLOfTypeForSaveOperation(url foundation.IURL, typeName string, saveOperation SaveOperationType) bool - BrowseDocumentVersions(sender objc.IObject) objc.Object - PerformAsynchronousFileAccessUsingBlock(block func(arg0 func())) - LockDocumentWithCompletionHandler(completionHandler func(didLock bool)) - UnlockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) - MoveDocumentToUbiquityContainer(sender objc.IObject) objc.Object - ShouldRunSavePanelWithAccessoryView() bool - AllowsDocumentSharing() bool - UndoManager() foundation.UndoManager - SetUndoManager(value foundation.IUndoManager) + UpdateChangeCountWithTokenForSaveOperation(changeCountToken objc.IObject, saveOperation SaveOperationType) + EncodeRestorableStateWithCoder(coder foundation.ICoder) + UpdateChangeCount(change DocumentChangeType) + PrepareSharingServicePicker(sharingServicePicker ISharingServicePicker) PrintInfo() PrintInfo SetPrintInfo(value IPrintInfo) - IsInViewingMode() bool - KeepBackupFile() bool + ObjectSpecifier() foundation.ScriptObjectSpecifier + IsDraft() bool + SetDraft(value bool) + FileNameExtensionWasHiddenInLastRunSavePanel() bool + UndoManager() foundation.UndoManager + SetUndoManager(value foundation.IUndoManager) + AutosavedContentsFileURL() foundation.URL + SetAutosavedContentsFileURL(value foundation.IURL) + ShouldRunSavePanelWithAccessoryView() bool LastComponentOfFileName() string SetLastComponentOfFileName(value string) + KeepBackupFile() bool + BackupFileURL() foundation.URL + FileURL() foundation.URL + SetFileURL(value foundation.IURL) FileTypeFromLastRunSavePanel() string - WindowNibName() NibName + WindowControllers() []WindowController + IsEntireFileLoaded() bool + IsBrowsingVersions() bool + IsInViewingMode() bool + PDFPrintOperation() PrintOperation + HasUndoManager() bool + SetHasUndoManager(value bool) FileType() string SetFileType(value string) - PDFPrintOperation() PrintOperation - HasUnautosavedChanges() bool - IsEntireFileLoaded() bool - AutosavingFileType() string + IsDocumentEdited() bool + IsLocked() bool FileModificationDate() foundation.Date SetFileModificationDate(value foundation.IDate) - DisplayName() string + WindowNibName() NibName AutosavingIsImplicitlyCancellable() bool - WindowControllers() []WindowController - IsDocumentEdited() bool - FileURL() foundation.URL - SetFileURL(value foundation.IURL) - HasUndoManager() bool - SetHasUndoManager(value bool) - IsBrowsingVersions() bool - FileNameExtensionWasHiddenInLastRunSavePanel() bool - BackupFileURL() foundation.URL - AutosavedContentsFileURL() foundation.URL - SetAutosavedContentsFileURL(value foundation.IURL) + AllowsDocumentSharing() bool + HasUnautosavedChanges() bool + AutosavingFileType() string WindowForSheet() Window - IsLocked() bool - ObjectSpecifier() foundation.ScriptObjectSpecifier - IsDraft() bool - SetDraft(value bool) + DisplayName() string UserActivity() foundation.UserActivity SetUserActivity(value foundation.IUserActivity) } @@ -163,20 +157,6 @@ func DocumentFrom(ptr unsafe.Pointer) Document { } } -func (d_ Document) InitForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError unsafe.Pointer) Document { - rv := objc.Call[Document](d_, objc.Sel("initForURL:withContentsOfURL:ofType:error:"), urlOrNil, contentsURL, typeName, outError) - return rv -} - -// Initializes a document with the specified contents, and places the resulting document's file at the designated location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515041-initforurl?language=objc -func NewDocumentForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError unsafe.Pointer) Document { - instance := DocumentClass.Alloc().InitForURLWithContentsOfURLOfTypeError(urlOrNil, contentsURL, typeName, outError) - instance.Autorelease() - return instance -} - func (d_ Document) InitWithTypeError(typeName string, outError unsafe.Pointer) Document { rv := objc.Call[Document](d_, objc.Sel("initWithType:error:"), typeName, outError) return rv @@ -196,16 +176,16 @@ func (d_ Document) Init() Document { return rv } -func (d_ Document) InitWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) Document { - rv := objc.Call[Document](d_, objc.Sel("initWithContentsOfURL:ofType:error:"), url, typeName, outError) +func (d_ Document) InitForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError unsafe.Pointer) Document { + rv := objc.Call[Document](d_, objc.Sel("initForURL:withContentsOfURL:ofType:error:"), urlOrNil, contentsURL, typeName, outError) return rv } -// Initializes a document located by a URL of a specified type. [Full Topic] +// Initializes a document with the specified contents, and places the resulting document's file at the designated location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515097-initwithcontentsofurl?language=objc -func NewDocumentWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) Document { - instance := DocumentClass.Alloc().InitWithContentsOfURLOfTypeError(url, typeName, outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515041-initforurl?language=objc +func NewDocumentForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError unsafe.Pointer) Document { + instance := DocumentClass.Alloc().InitForURLWithContentsOfURLOfTypeError(urlOrNil, contentsURL, typeName, outError) instance.Autorelease() return instance } @@ -225,6 +205,66 @@ func NewDocument() Document { return DocumentClass.New() } +// Prevents the user from making changes to the document's file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515189-lockwithcompletionhandler?language=objc +func (d_ Document) LockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("lockWithCompletionHandler:"), completionHandler) +} + +// Presents a modal Save panel to the user, then tries to save the document if the user approves the operation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515180-runmodalsavepanelforsaveoperatio?language=objc +func (d_ Document) RunModalSavePanelForSaveOperationDelegateDidSaveSelectorContextInfo(saveOperation SaveOperationType, delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](d_, objc.Sel("runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo:"), saveOperation, delegate, didSaveSelector, contextInfo) +} + +// Returns a Boolean value that indicates whether the document can read and write the data natively. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515072-isnativetype?language=objc +func (dc _DocumentClass) IsNativeType(type_ string) bool { + rv := objc.Call[bool](dc, objc.Sel("isNativeType:"), type_) + return rv +} + +// Returns a Boolean value that indicates whether the document can read and write the data natively. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515072-isnativetype?language=objc +func Document_IsNativeType(type_ string) bool { + return DocumentClass.IsNativeType(type_) +} + +// Returns the classes that support secure coding. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/3762522-allowedclassesforrestorablestate?language=objc +func (dc _DocumentClass) AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { + rv := objc.Call[[]objc.Class](dc, objc.Sel("allowedClassesForRestorableStateKeyPath:"), keyPath) + return rv +} + +// Returns the classes that support secure coding. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/3762522-allowedclassesforrestorablestate?language=objc +func Document_AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { + return DocumentClass.AllowedClassesForRestorableStateKeyPath(keyPath) +} + +// Creates and returns a file wrapper that contains the contents of the document, formatted to the specified type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515089-filewrapperoftype?language=objc +func (d_ Document) FileWrapperOfTypeError(typeName string, outError unsafe.Pointer) foundation.FileWrapper { + rv := objc.Call[foundation.FileWrapper](d_, objc.Sel("fileWrapperOfType:error:"), typeName, outError) + return rv +} + +// Prints the receiver in response to the user choosing the Print menu command. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515154-printdocument?language=objc +func (d_ Document) PrintDocument(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("printDocument:"), sender) + return rv +} + // Removes the specified window controller from the receiver’s array of window controllers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515242-removewindowcontroller?language=objc @@ -232,18 +272,35 @@ func (d_ Document) RemoveWindowController(windowController IWindowController) { objc.Call[objc.Void](d_, objc.Sel("removeWindowController:"), windowController) } -// Share the document's file using the specified sharing service. [Full Topic] +// The action of the File menu item Revert in a document-based app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2902309-sharedocumentwithsharingservice?language=objc -func (d_ Document) ShareDocumentWithSharingServiceCompletionHandler(sharingService ISharingService, completionHandler func(success bool)) { - objc.Call[objc.Void](d_, objc.Sel("shareDocumentWithSharingService:completionHandler:"), sharingService, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515059-revertdocumenttosaved?language=objc +func (d_ Document) RevertDocumentToSaved(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("revertDocumentToSaved:"), sender) + return rv +} + +// Creates a new document whose contents are the same as the receiver and returns an error object if unsuccessful. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515201-duplicateandreturnerror?language=objc +func (d_ Document) DuplicateAndReturnError(outError unsafe.Pointer) Document { + rv := objc.Call[Document](d_, objc.Sel("duplicateAndReturnError:"), outError) + return rv +} + +// Displays all of the document’s windows, bringing them to the front and making them main or key as necessary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515049-showwindows?language=objc +func (d_ Document) ShowWindows() { + objc.Call[objc.Void](d_, objc.Sel("showWindows")) } -// Saves the contents of the document to a file or file package located by a URL, that is formatted to a specified type, for a particular kind of save operation, and invokes the passed-in completion handler. [Full Topic] +// Called when the receiver is about to present an error. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515178-savetourl?language=objc -func (d_ Document) SaveToURLOfTypeForSaveOperationCompletionHandler(url foundation.IURL, typeName string, saveOperation SaveOperationType, completionHandler func(errorOrNil foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("saveToURL:ofType:forSaveOperation:completionHandler:"), url, typeName, saveOperation, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515229-willpresenterror?language=objc +func (d_ Document) WillPresentError(error foundation.IError) foundation.Error { + rv := objc.Call[foundation.Error](d_, objc.Sel("willPresentError:"), error) + return rv } // Invokes the passed-in block on the main thread. [Full Topic] @@ -253,49 +310,48 @@ func (d_ Document) ContinueAsynchronousWorkOnMainThreadUsingBlock(block func()) objc.Call[objc.Void](d_, objc.Sel("continueAsynchronousWorkOnMainThreadUsingBlock:"), block) } -// Waits for any scheduled file access to complete, then invokes the passed-in block. [Full Topic] +// Sets the window outlet of this document to the specified value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515227-performsynchronousfileaccessusin?language=objc -func (d_ Document) PerformSynchronousFileAccessUsingBlock(block func()) { - objc.Call[objc.Void](d_, objc.Sel("performSynchronousFileAccessUsingBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515217-setwindow?language=objc +func (d_ Document) SetWindow(window IWindow) { + objc.Call[objc.Void](d_, objc.Sel("setWindow:"), window) } -// Handles the Print AppleScript command by attempting to print the document. [Full Topic] +// Confirms that the error object is not to be presented to the user and the error cannot be recovered from, so cleanup can be done. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500135-handleprintscriptcommand?language=objc -func (d_ Document) HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("handlePrintScriptCommand:"), command) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515188-willnotpresenterror?language=objc +func (d_ Document) WillNotPresentError(error foundation.IError) { + objc.Call[objc.Void](d_, objc.Sel("willNotPresentError:"), error) } -// Returns the names of the types to which this document can be saved for a specified kind of save operation. [Full Topic] +// Creates and returns a data object that contains the contents of the document, formatted to a specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515186-writabletypesforsaveoperation?language=objc -func (d_ Document) WritableTypesForSaveOperation(saveOperation SaveOperationType) []string { - rv := objc.Call[[]string](d_, objc.Sel("writableTypesForSaveOperation:"), saveOperation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515205-dataoftype?language=objc +func (d_ Document) DataOfTypeError(typeName string, outError unsafe.Pointer) []byte { + rv := objc.Call[[]byte](d_, objc.Sel("dataOfType:error:"), typeName, outError) return rv } -// Autosaves the document’s contents to an appropriate location in the file system. [Full Topic] +// Schedules periodic autosaving for the purpose of crash protection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515225-autosavedocumentwithdelegate?language=objc -func (d_ Document) AutosaveDocumentWithDelegateDidAutosaveSelectorContextInfo(delegate objc.IObject, didAutosaveSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("autosaveDocumentWithDelegate:didAutosaveSelector:contextInfo:"), delegate, didAutosaveSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515119-scheduleautosaving?language=objc +func (d_ Document) ScheduleAutosaving() { + objc.Call[objc.Void](d_, objc.Sel("scheduleAutosaving")) } -// Determines whether the system should close the document and its associated window. [Full Topic] +// Creates and returns a print operation for the document's contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515247-shouldclosewindowcontroller?language=objc -func (d_ Document) ShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo(windowController IWindowController, delegate objc.IObject, shouldCloseSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("shouldCloseWindowController:delegate:shouldCloseSelector:contextInfo:"), windowController, delegate, shouldCloseSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515070-printoperationwithsettings?language=objc +func (d_ Document) PrintOperationWithSettingsError(printSettings map[PrintInfoAttributeKey]objc.IObject, outError unsafe.Pointer) PrintOperation { + rv := objc.Call[PrintOperation](d_, objc.Sel("printOperationWithSettings:error:"), printSettings, outError) + return rv } -// The action of the File menu item Revert in a document-based app. [Full Topic] +// Continues to perform the task for a user activity object using a different block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515059-revertdocumenttosaved?language=objc -func (d_ Document) RevertDocumentToSaved(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("revertDocumentToSaved:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515151-continueactivityusingblock?language=objc +func (d_ Document) ContinueActivityUsingBlock(block func()) { + objc.Call[objc.Void](d_, objc.Sel("continueActivityUsingBlock:"), block) } // Marks the document’s interface-related state as dirty. [Full Topic] @@ -305,19 +361,28 @@ func (d_ Document) InvalidateRestorableState() { objc.Call[objc.Void](d_, objc.Sel("invalidateRestorableState")) } -// Creates and returns a print operation for the document's contents. [Full Topic] +// Handles the Save AppleScript command by attempting to save the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515070-printoperationwithsettings?language=objc -func (d_ Document) PrintOperationWithSettingsError(printSettings map[PrintInfoAttributeKey]objc.IObject, outError unsafe.Pointer) PrintOperation { - rv := objc.Call[PrintOperation](d_, objc.Sel("printOperationWithSettings:error:"), printSettings, outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500138-handlesavescriptcommand?language=objc +func (d_ Document) HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("handleSaveScriptCommand:"), command) return rv } -// Presents a modal Save panel to the user, then tries to save the document if the user approves the operation. [Full Topic] +// The action method invoked in the receiver as first responder when the user chooses the Save As menu command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515180-runmodalsavepanelforsaveoperatio?language=objc -func (d_ Document) RunModalSavePanelForSaveOperationDelegateDidSaveSelectorContextInfo(saveOperation SaveOperationType, delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo:"), saveOperation, delegate, didSaveSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515171-savedocumentas?language=objc +func (d_ Document) SaveDocumentAs(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("saveDocumentAs:"), sender) + return rv +} + +// Locks the document in response to the user choosing the Lock menu item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515218-lockdocument?language=objc +func (d_ Document) LockDocument(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("lockDocument:"), sender) + return rv } // Closes all of the document's windows and removes the document from its document controller. [Full Topic] @@ -327,173 +392,171 @@ func (d_ Document) Close() { objc.Call[objc.Void](d_, objc.Sel("close")) } -// Creates and returns a file wrapper that contains the contents of the document, formatted to the specified type. [Full Topic] +// Returns a Boolean value that indicates whether the document allows changes to the default printing information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515089-filewrapperoftype?language=objc -func (d_ Document) FileWrapperOfTypeError(typeName string, outError unsafe.Pointer) foundation.FileWrapper { - rv := objc.Call[foundation.FileWrapper](d_, objc.Sel("fileWrapperOfType:error:"), typeName, outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515243-shouldchangeprintinfo?language=objc +func (d_ Document) ShouldChangePrintInfo(newPrintInfo IPrintInfo) bool { + rv := objc.Call[bool](d_, objc.Sel("shouldChangePrintInfo:"), newPrintInfo) return rv } -// Updates the state of the given user activity. [Full Topic] +// Handles the Close AppleScript command by attempting to close the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1529014-updateuseractivitystate?language=objc -func (d_ Document) UpdateUserActivityState(activity foundation.IUserActivity) { - objc.Call[objc.Void](d_, objc.Sel("updateUserActivityState:"), activity) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500136-handleclosescriptcommand?language=objc +func (d_ Document) HandleCloseScriptCommand(command foundation.ICloseCommand) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("handleCloseScriptCommand:"), command) + return rv } -// Creates a new document whose contents are the same as the current document. [Full Topic] +// Adds document-specific content to the Page Layout panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515133-duplicatedocumentwithdelegate?language=objc -func (d_ Document) DuplicateDocumentWithDelegateDidDuplicateSelectorContextInfo(delegate objc.IObject, didDuplicateSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("duplicateDocumentWithDelegate:didDuplicateSelector:contextInfo:"), delegate, didDuplicateSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515169-preparepagelayout?language=objc +func (d_ Document) PreparePageLayout(pageLayout IPageLayout) bool { + rv := objc.Call[bool](d_, objc.Sel("preparePageLayout:"), pageLayout) + return rv } -// Locks the document in response to the user choosing the Lock menu item. [Full Topic] +// Waits for any work scheduled by previous invocations of this method to complete, then invokes the passed-in block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515218-lockdocument?language=objc -func (d_ Document) LockDocument(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("lockDocument:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515066-performactivitywithsynchronouswa?language=objc +func (d_ Document) PerformActivityWithSynchronousWaitingUsingBlock(waitSynchronously bool, block func(arg0 func())) { + objc.Call[objc.Void](d_, objc.Sel("performActivityWithSynchronousWaiting:usingBlock:"), waitSynchronously, block) } -// Prevents the user from making changes to the document's file. [Full Topic] +// Prevents the user from making further changes to the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515189-lockwithcompletionhandler?language=objc -func (d_ Document) LockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("lockWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515233-lockdocumentwithcompletionhandle?language=objc +func (d_ Document) LockDocumentWithCompletionHandler(completionHandler func(didLock bool)) { + objc.Call[objc.Void](d_, objc.Sel("lockDocumentWithCompletionHandler:"), completionHandler) } -// Returns a filename extension that can be appended to a base filename, for a specified file type and kind of save operation. [Full Topic] +// Unblocks the main thread during asynchronous saving. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515074-filenameextensionfortype?language=objc -func (d_ Document) FileNameExtensionForTypeSaveOperation(typeName string, saveOperation SaveOperationType) string { - rv := objc.Call[string](d_, objc.Sel("fileNameExtensionForType:saveOperation:"), typeName, saveOperation) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515238-unblockuserinteraction?language=objc +func (d_ Document) UnblockUserInteraction() { + objc.Call[objc.Void](d_, objc.Sel("unblockUserInteraction")) } -// Determines whether to close the document, prompting the user as needed to choose a course of action. [Full Topic] +// The action method invoked in the receiver as first responder when the user chooses the Save menu command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515206-canclosedocumentwithdelegate?language=objc -func (d_ Document) CanCloseDocumentWithDelegateShouldCloseSelectorContextInfo(delegate objc.IObject, shouldCloseSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:"), delegate, shouldCloseSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515147-savedocument?language=objc +func (d_ Document) SaveDocument(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("saveDocument:"), sender) + return rv } -// Perform any custom setup associated with a sharing service picker. [Full Topic] +// Called before one of the document's window controllers loads its nib file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2902326-preparesharingservicepicker?language=objc -func (d_ Document) PrepareSharingServicePicker(sharingServicePicker ISharingServicePicker) { - objc.Call[objc.Void](d_, objc.Sel("prepareSharingServicePicker:"), sharingServicePicker) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515116-windowcontrollerwillloadnib?language=objc +func (d_ Document) WindowControllerWillLoadNib(windowController IWindowController) { + objc.Call[objc.Void](d_, objc.Sel("windowControllerWillLoadNib:"), windowController) } -// Writes the contents of the document to a file or file package located by a URL. [Full Topic] +// Moves the document to the user’s iCloud storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515150-writesafelytourl?language=objc -func (d_ Document) WriteSafelyToURLOfTypeForSaveOperationError(url foundation.IURL, typeName string, saveOperation SaveOperationType, outError unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("writeSafelyToURL:ofType:forSaveOperation:error:"), url, typeName, saveOperation, outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515210-movedocumenttoubiquitycontainer?language=objc +func (d_ Document) MoveDocumentToUbiquityContainer(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("moveDocumentToUbiquityContainer:"), sender) return rv } -// Runs the modal page layout panel with the receiver’s printing information object. [Full Topic] +// Waits for any scheduled file access to complete, then invokes the passed-in block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515100-runmodalpagelayoutwithprintinfo?language=objc -func (d_ Document) RunModalPageLayoutWithPrintInfoDelegateDidRunSelectorContextInfo(printInfo IPrintInfo, delegate objc.IObject, didRunSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo:"), printInfo, delegate, didRunSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515227-performsynchronousfileaccessusin?language=objc +func (d_ Document) PerformSynchronousFileAccessUsingBlock(block func()) { + objc.Call[objc.Void](d_, objc.Sel("performSynchronousFileAccessUsingBlock:"), block) } -// Tells the document to customize the specified Save panel. [Full Topic] +// Writes the contents of the document to a file or file package located by a URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515094-preparesavepanel?language=objc -func (d_ Document) PrepareSavePanel(savePanel ISavePanel) bool { - rv := objc.Call[bool](d_, objc.Sel("prepareSavePanel:"), savePanel) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515150-writesafelytourl?language=objc +func (d_ Document) WriteSafelyToURLOfTypeForSaveOperationError(url foundation.IURL, typeName string, saveOperation SaveOperationType, outError unsafe.Pointer) bool { + rv := objc.Call[bool](d_, objc.Sel("writeSafelyToURL:ofType:forSaveOperation:error:"), url, typeName, saveOperation, outError) return rv } -// Moves the document’s file to the given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515057-movetourl?language=objc -func (d_ Document) MoveToURLCompletionHandler(url foundation.IURL, completionHandler func(arg0 foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("moveToURL:completionHandler:"), url, completionHandler) -} - -// Prints the document's contents, optionally displaying a print panel to the user. [Full Topic] +// The action method invoked in the receiver as first responder when the user chooses the Save To menu command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515058-printdocumentwithsettings?language=objc -func (d_ Document) PrintDocumentWithSettingsShowPrintPanelDelegateDidPrintSelectorContextInfo(printSettings map[PrintInfoAttributeKey]objc.IObject, showPrintPanel bool, delegate objc.IObject, didPrintSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:"), printSettings, showPrintPanel, delegate, didPrintSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515208-savedocumentto?language=objc +func (d_ Document) SaveDocumentTo(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("saveDocumentTo:"), sender) + return rv } -// Returns a Boolean value that indicates whether it is safe to autosave document changes. [Full Topic] +// Opens the Versions browser in the document’s main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515061-checkautosavingsafetyandreturner?language=objc -func (d_ Document) CheckAutosavingSafetyAndReturnError(outError unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("checkAutosavingSafetyAndReturnError:"), outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515193-browsedocumentversions?language=objc +func (d_ Document) BrowseDocumentVersions(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("browseDocumentVersions:"), sender) return rv } -// Allows the user to make modifications to the document. [Full Topic] +// Exports a PDF representation of the document’s current contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515248-unlockdocumentwithcompletionhand?language=objc -func (d_ Document) UnlockDocumentWithCompletionHandler(completionHandler func(didUnlock bool)) { - objc.Call[objc.Void](d_, objc.Sel("unlockDocumentWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515176-savedocumenttopdf?language=objc +func (d_ Document) SaveDocumentToPDF(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("saveDocumentToPDF:"), sender) + return rv } -// Schedules periodic autosaving for the purpose of crash protection. [Full Topic] +// Returns the names of the types to which this document can be saved for a specified kind of save operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515119-scheduleautosaving?language=objc -func (d_ Document) ScheduleAutosaving() { - objc.Call[objc.Void](d_, objc.Sel("scheduleAutosaving")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515186-writabletypesforsaveoperation?language=objc +func (d_ Document) WritableTypesForSaveOperation(saveOperation SaveOperationType) []string { + rv := objc.Call[[]string](d_, objc.Sel("writableTypesForSaveOperation:"), saveOperation) + return rv } -// Continues to perform the task for a user activity object using a different block. [Full Topic] +// Creates a new document whose contents are the same as the current document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515151-continueactivityusingblock?language=objc -func (d_ Document) ContinueActivityUsingBlock(block func()) { - objc.Call[objc.Void](d_, objc.Sel("continueActivityUsingBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515133-duplicatedocumentwithdelegate?language=objc +func (d_ Document) DuplicateDocumentWithDelegateDidDuplicateSelectorContextInfo(delegate objc.IObject, didDuplicateSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](d_, objc.Sel("duplicateDocumentWithDelegate:didDuplicateSelector:contextInfo:"), delegate, didDuplicateSelector, contextInfo) } -// Saves the document and delivers the results to the provided delegate object. [Full Topic] +// Sets the contents of this document by reading from a file or file package, of a specified type, located by a URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515048-savedocumentwithdelegate?language=objc -func (d_ Document) SaveDocumentWithDelegateDidSaveSelectorContextInfo(delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("saveDocumentWithDelegate:didSaveSelector:contextInfo:"), delegate, didSaveSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515144-readfromurl?language=objc +func (d_ Document) ReadFromURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) bool { + rv := objc.Call[bool](d_, objc.Sel("readFromURL:ofType:error:"), url, typeName, outError) + return rv } -// Creates the window controller objects that the document uses to display its content. [Full Topic] +// Autosaves the document’s contents to an appropriate file-system location, as needed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515220-makewindowcontrollers?language=objc -func (d_ Document) MakeWindowControllers() { - objc.Call[objc.Void](d_, objc.Sel("makeWindowControllers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515096-autosavewithimplicitcancellabili?language=objc +func (d_ Document) AutosaveWithImplicitCancellabilityCompletionHandler(autosavingIsImplicitlyCancellable bool, completionHandler func(errorOrNil foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("autosaveWithImplicitCancellability:completionHandler:"), autosavingIsImplicitlyCancellable, completionHandler) } -// Called before one of the document's window controllers loads its nib file. [Full Topic] +// Returns the default draft name for the document subclass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515116-windowcontrollerwillloadnib?language=objc -func (d_ Document) WindowControllerWillLoadNib(windowController IWindowController) { - objc.Call[objc.Void](d_, objc.Sel("windowControllerWillLoadNib:"), windowController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515245-defaultdraftname?language=objc +func (d_ Document) DefaultDraftName() string { + rv := objc.Call[string](d_, objc.Sel("defaultDraftName")) + return rv } -// Exports a PDF representation of the document’s current contents. [Full Topic] +// Adds the specified window controller to the current document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515176-savedocumenttopdf?language=objc -func (d_ Document) SaveDocumentToPDF(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("saveDocumentToPDF:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515179-addwindowcontroller?language=objc +func (d_ Document) AddWindowController(windowController IWindowController) { + objc.Call[objc.Void](d_, objc.Sel("addWindowController:"), windowController) } -// Creates and returns a data object that contains the contents of the document, formatted to a specified type. [Full Topic] +// Handles the Print AppleScript command by attempting to print the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515205-dataoftype?language=objc -func (d_ Document) DataOfTypeError(typeName string, outError unsafe.Pointer) []byte { - rv := objc.Call[[]byte](d_, objc.Sel("dataOfType:error:"), typeName, outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500135-handleprintscriptcommand?language=objc +func (d_ Document) HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("handlePrintScriptCommand:"), command) return rv } -// Saves the interface-related state of the document. [Full Topic] +// Restores the interface-related state of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2876345-encoderestorablestatewithcoder?language=objc -func (d_ Document) EncodeRestorableStateWithCoderBackgroundQueue(coder foundation.ICoder, queue foundation.IOperationQueue) { - objc.Call[objc.Void](d_, objc.Sel("encodeRestorableStateWithCoder:backgroundQueue:"), coder, queue) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1526237-restorestatewithcoder?language=objc +func (d_ Document) RestoreStateWithCoder(coder foundation.ICoder) { + objc.Call[objc.Void](d_, objc.Sel("restoreStateWithCoder:"), coder) } // Sets the name of this document for presentation to the user. [Full Topic] @@ -503,123 +566,117 @@ func (d_ Document) SetDisplayName(displayNameOrNil string) { objc.Call[objc.Void](d_, objc.Sel("setDisplayName:"), displayNameOrNil) } -// Returns an object that encapsulates the current record of document changes at the beginning of a save operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515129-changecounttokenforsaveoperation?language=objc -func (d_ Document) ChangeCountTokenForSaveOperation(saveOperation SaveOperationType) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("changeCountTokenForSaveOperation:"), saveOperation) - return rv -} - -// Updates the receiver’s change count according to the given change type. [Full Topic] +// Determines whether to close the document, prompting the user as needed to choose a course of action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515223-updatechangecount?language=objc -func (d_ Document) UpdateChangeCount(change DocumentChangeType) { - objc.Call[objc.Void](d_, objc.Sel("updateChangeCount:"), change) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515206-canclosedocumentwithdelegate?language=objc +func (d_ Document) CanCloseDocumentWithDelegateShouldCloseSelectorContextInfo(delegate objc.IObject, shouldCloseSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](d_, objc.Sel("canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:"), delegate, shouldCloseSelector, contextInfo) } -// Handles the Save AppleScript command by attempting to save the document. [Full Topic] +// Restores a window that was associated with a document, after that document is reopened. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500138-handlesavescriptcommand?language=objc -func (d_ Document) HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("handleSaveScriptCommand:"), command) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1524586-restoredocumentwindowwithidentif?language=objc +func (d_ Document) RestoreDocumentWindowWithIdentifierStateCompletionHandler(identifier UserInterfaceItemIdentifier, state foundation.ICoder, completionHandler func(arg0 Window, arg1 foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("restoreDocumentWindowWithIdentifier:state:completionHandler:"), identifier, state, completionHandler) } -// The action method invoked in the receiver as first responder when the user chooses the Save menu command. [Full Topic] +// Validates the specified user interface item that the receiver manages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515147-savedocument?language=objc -func (d_ Document) SaveDocument(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("saveDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515190-validateuserinterfaceitem?language=objc +func (d_ Document) ValidateUserInterfaceItem(item PValidatedUserInterfaceItem) bool { + po0 := objc.WrapAsProtocol("NSValidatedUserInterfaceItem", item) + rv := objc.Call[bool](d_, objc.Sel("validateUserInterfaceItem:"), po0) return rv } -// Discards all unsaved document modifications and replaces the document’s contents by reading a file or file package located by a URL of a specified type. [Full Topic] +// Validates the specified user interface item that the receiver manages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515122-reverttocontentsofurl?language=objc -func (d_ Document) RevertToContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("revertToContentsOfURL:ofType:error:"), url, typeName, outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515190-validateuserinterfaceitem?language=objc +func (d_ Document) ValidateUserInterfaceItemObject(itemObject objc.IObject) bool { + rv := objc.Call[bool](d_, objc.Sel("validateUserInterfaceItem:"), itemObject) return rv } -// Prints the receiver in response to the user choosing the Print menu command. [Full Topic] +// Sets the contents of this document by reading from data of a specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515154-printdocument?language=objc -func (d_ Document) PrintDocument(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("printDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515198-readfromdata?language=objc +func (d_ Document) ReadFromDataOfTypeError(data []byte, typeName string, outError unsafe.Pointer) bool { + rv := objc.Call[bool](d_, objc.Sel("readFromData:ofType:error:"), data, typeName, outError) return rv } -// Sets the window outlet of this document to the specified value. [Full Topic] +// The action method invoked in the receiver as first responder when the user chooses the Page Setup menu command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515217-setwindow?language=objc -func (d_ Document) SetWindow(window IWindow) { - objc.Call[objc.Void](d_, objc.Sel("setWindow:"), window) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515140-runpagelayout?language=objc +func (d_ Document) RunPageLayout(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("runPageLayout:"), sender) + return rv } -// Confirms that the error object is not to be presented to the user and the error cannot be recovered from, so cleanup can be done. [Full Topic] +// Updates the state of the given user activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515188-willnotpresenterror?language=objc -func (d_ Document) WillNotPresentError(error foundation.IError) { - objc.Call[objc.Void](d_, objc.Sel("willNotPresentError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1529014-updateuseractivitystate?language=objc +func (d_ Document) UpdateUserActivityState(activity foundation.IUserActivity) { + objc.Call[objc.Void](d_, objc.Sel("updateUserActivityState:"), activity) } -// Adds the specified window controller to the current document. [Full Topic] +// Allows the user to make modifications to the document's file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515179-addwindowcontroller?language=objc -func (d_ Document) AddWindowController(windowController IWindowController) { - objc.Call[objc.Void](d_, objc.Sel("addWindowController:"), windowController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515131-unlockwithcompletionhandler?language=objc +func (d_ Document) UnlockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("unlockWithCompletionHandler:"), completionHandler) } -// Restores the interface-related state of the document. [Full Topic] +// Moves the document to a user-selected location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1526237-restorestatewithcoder?language=objc -func (d_ Document) RestoreStateWithCoder(coder foundation.ICoder) { - objc.Call[objc.Void](d_, objc.Sel("restoreStateWithCoder:"), coder) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515043-movedocumentwithcompletionhandle?language=objc +func (d_ Document) MoveDocumentWithCompletionHandler(completionHandler func(didMove bool)) { + objc.Call[objc.Void](d_, objc.Sel("moveDocumentWithCompletionHandler:"), completionHandler) } -// Displays all of the document’s windows, bringing them to the front and making them main or key as necessary. [Full Topic] +// Waits for any scheduled file access to complete but without blocking the main thread, then invokes the passed-in block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515049-showwindows?language=objc -func (d_ Document) ShowWindows() { - objc.Call[objc.Void](d_, objc.Sel("showWindows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515124-performasynchronousfileaccessusi?language=objc +func (d_ Document) PerformAsynchronousFileAccessUsingBlock(block func(arg0 func())) { + objc.Call[objc.Void](d_, objc.Sel("performAsynchronousFileAccessUsingBlock:"), block) } -// Saves the interface-related state of the document. [Full Topic] +// Returns whether the receiver can concurrently write to a file or file package located by a URL, that is formatted for a specific type, for a specific kind of save operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1526257-encoderestorablestatewithcoder?language=objc -func (d_ Document) EncodeRestorableStateWithCoder(coder foundation.ICoder) { - objc.Call[objc.Void](d_, objc.Sel("encodeRestorableStateWithCoder:"), coder) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515177-canasynchronouslywritetourl?language=objc +func (d_ Document) CanAsynchronouslyWriteToURLOfTypeForSaveOperation(url foundation.IURL, typeName string, saveOperation SaveOperationType) bool { + rv := objc.Call[bool](d_, objc.Sel("canAsynchronouslyWriteToURL:ofType:forSaveOperation:"), url, typeName, saveOperation) + return rv } -// Returns the default draft name for the document subclass. [Full Topic] +// Returns an object that encapsulates the current record of document changes at the beginning of a save operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515245-defaultdraftname?language=objc -func (d_ Document) DefaultDraftName() string { - rv := objc.Call[string](d_, objc.Sel("defaultDraftName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515129-changecounttokenforsaveoperation?language=objc +func (d_ Document) ChangeCountTokenForSaveOperation(saveOperation SaveOperationType) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("changeCountTokenForSaveOperation:"), saveOperation) return rv } -// Saves the contents of the document to a file or file package located by a URL, that is formatted to a specified type, for a particular kind of save operation. [Full Topic] +// Returns the attributes to write to the file or file package at the specified URL, and targeting the specified type of save operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515148-savetourl?language=objc -func (d_ Document) SaveToURLOfTypeForSaveOperationDelegateDidSaveSelectorContextInfo(url foundation.IURL, typeName string, saveOperation SaveOperationType, delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:"), url, typeName, saveOperation, delegate, didSaveSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515062-fileattributestowritetourl?language=objc +func (d_ Document) FileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError unsafe.Pointer) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](d_, objc.Sel("fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL:error:"), url, typeName, saveOperation, absoluteOriginalContentsURL, outError) + return rv } -// Sets the contents of this document by reading from a file or file package, of a specified type, located by a URL. [Full Topic] +// Allows the user to make modifications to the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515144-readfromurl?language=objc -func (d_ Document) ReadFromURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("readFromURL:ofType:error:"), url, typeName, outError) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515248-unlockdocumentwithcompletionhand?language=objc +func (d_ Document) UnlockDocumentWithCompletionHandler(completionHandler func(didUnlock bool)) { + objc.Call[objc.Void](d_, objc.Sel("unlockDocumentWithCompletionHandler:"), completionHandler) } -// Presents an error alert to the user as a modal panel. [Full Topic] +// Returns a filename extension that can be appended to a base filename, for a specified file type and kind of save operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515184-presenterror?language=objc -func (d_ Document) PresentError(error foundation.IError) bool { - rv := objc.Call[bool](d_, objc.Sel("presentError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515074-filenameextensionfortype?language=objc +func (d_ Document) FileNameExtensionForTypeSaveOperation(typeName string, saveOperation SaveOperationType) string { + rv := objc.Call[string](d_, objc.Sel("fileNameExtensionForType:saveOperation:"), typeName, saveOperation) return rv } @@ -631,51 +688,56 @@ func (d_ Document) RenameDocument(sender objc.IObject) objc.Object { return rv } -// Adds document-specific content to the Page Layout panel. [Full Topic] +// Share the document's file using the specified sharing service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515169-preparepagelayout?language=objc -func (d_ Document) PreparePageLayout(pageLayout IPageLayout) bool { - rv := objc.Call[bool](d_, objc.Sel("preparePageLayout:"), pageLayout) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2902309-sharedocumentwithsharingservice?language=objc +func (d_ Document) ShareDocumentWithSharingServiceCompletionHandler(sharingService ISharingService, completionHandler func(success bool)) { + objc.Call[objc.Void](d_, objc.Sel("shareDocumentWithSharingService:completionHandler:"), sharingService, completionHandler) } -// Validates the specified user interface item that the receiver manages. [Full Topic] +// Sets the contents of this document by reading from a file wrapper of a specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515190-validateuserinterfaceitem?language=objc -func (d_ Document) ValidateUserInterfaceItem(item PValidatedUserInterfaceItem) bool { - po0 := objc.WrapAsProtocol("NSValidatedUserInterfaceItem", item) - rv := objc.Call[bool](d_, objc.Sel("validateUserInterfaceItem:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515044-readfromfilewrapper?language=objc +func (d_ Document) ReadFromFileWrapperOfTypeError(fileWrapper foundation.IFileWrapper, typeName string, outError unsafe.Pointer) bool { + rv := objc.Call[bool](d_, objc.Sel("readFromFileWrapper:ofType:error:"), fileWrapper, typeName, outError) return rv } -// Validates the specified user interface item that the receiver manages. [Full Topic] +// Writes the contents of the document to a file or file package located by a URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515190-validateuserinterfaceitem?language=objc -func (d_ Document) ValidateUserInterfaceItemObject(itemObject objc.IObject) bool { - rv := objc.Call[bool](d_, objc.Sel("validateUserInterfaceItem:"), itemObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515203-writetourl?language=objc +func (d_ Document) WriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError unsafe.Pointer) bool { + rv := objc.Call[bool](d_, objc.Sel("writeToURL:ofType:forSaveOperation:originalContentsURL:error:"), url, typeName, saveOperation, absoluteOriginalContentsURL, outError) return rv } -// Autosaves the document’s contents to an appropriate file-system location, as needed. [Full Topic] +// Dismiss the Versions browser for the current document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515096-autosavewithimplicitcancellabili?language=objc -func (d_ Document) AutosaveWithImplicitCancellabilityCompletionHandler(autosavingIsImplicitlyCancellable bool, completionHandler func(errorOrNil foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("autosaveWithImplicitCancellability:completionHandler:"), autosavingIsImplicitlyCancellable, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2177312-stopbrowsingversionswithcompleti?language=objc +func (d_ Document) StopBrowsingVersionsWithCompletionHandler(completionHandler func()) { + objc.Call[objc.Void](d_, objc.Sel("stopBrowsingVersionsWithCompletionHandler:"), completionHandler) } -// Returns a Boolean value that indicates whether the document allows changes to the default printing information. [Full Topic] +// Prints the document's contents, optionally displaying a print panel to the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515243-shouldchangeprintinfo?language=objc -func (d_ Document) ShouldChangePrintInfo(newPrintInfo IPrintInfo) bool { - rv := objc.Call[bool](d_, objc.Sel("shouldChangePrintInfo:"), newPrintInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515058-printdocumentwithsettings?language=objc +func (d_ Document) PrintDocumentWithSettingsShowPrintPanelDelegateDidPrintSelectorContextInfo(printSettings map[PrintInfoAttributeKey]objc.IObject, showPrintPanel bool, delegate objc.IObject, didPrintSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](d_, objc.Sel("printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:"), printSettings, showPrintPanel, delegate, didPrintSelector, contextInfo) +} + +// Creates a copy of the receiving document in response to the user choosing Duplicate from the File menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515226-duplicatedocument?language=objc +func (d_ Document) DuplicateDocument(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("duplicateDocument:"), sender) return rv } -// Presents an error alert to the user as a modal panel. [Full Topic] +// Creates the window controller objects that the document uses to display its content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515051-presenterror?language=objc -func (d_ Document) PresentErrorModalForWindowDelegateDidPresentSelectorContextInfo(error foundation.IError, window IWindow, delegate objc.IObject, didPresentSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("presentError:modalForWindow:delegate:didPresentSelector:contextInfo:"), error, window, delegate, didPresentSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515220-makewindowcontrollers?language=objc +func (d_ Document) MakeWindowControllers() { + objc.Call[objc.Void](d_, objc.Sel("makeWindowControllers")) } // Unlocks the document in response to the user choosing the Unlock menu item. [Full Topic] @@ -686,45 +748,36 @@ func (d_ Document) UnlockDocument(sender objc.IObject) objc.Object { return rv } -// Writes the contents of the document to a file or file package located by a URL. [Full Topic] +// Runs the specified print operation modally. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515203-writetourl?language=objc -func (d_ Document) WriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToURL:ofType:forSaveOperation:originalContentsURL:error:"), url, typeName, saveOperation, absoluteOriginalContentsURL, outError) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515234-runmodalprintoperation?language=objc +func (d_ Document) RunModalPrintOperationDelegateDidRunSelectorContextInfo(printOperation IPrintOperation, delegate objc.IObject, didRunSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](d_, objc.Sel("runModalPrintOperation:delegate:didRunSelector:contextInfo:"), printOperation, delegate, didRunSelector, contextInfo) } -// Returns the attributes to write to the file or file package at the specified URL, and targeting the specified type of save operation. [Full Topic] +// Saves the document and delivers the results to the provided delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515062-fileattributestowritetourl?language=objc -func (d_ Document) FileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError unsafe.Pointer) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](d_, objc.Sel("fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL:error:"), url, typeName, saveOperation, absoluteOriginalContentsURL, outError) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515048-savedocumentwithdelegate?language=objc +func (d_ Document) SaveDocumentWithDelegateDidSaveSelectorContextInfo(delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](d_, objc.Sel("saveDocumentWithDelegate:didSaveSelector:contextInfo:"), delegate, didSaveSelector, contextInfo) } -// Creates a new document whose contents are the same as the receiver and returns an error object if unsuccessful. [Full Topic] +// Discards all unsaved document modifications and replaces the document’s contents by reading a file or file package located by a URL of a specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515201-duplicateandreturnerror?language=objc -func (d_ Document) DuplicateAndReturnError(outError unsafe.Pointer) Document { - rv := objc.Call[Document](d_, objc.Sel("duplicateAndReturnError:"), outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515122-reverttocontentsofurl?language=objc +func (d_ Document) RevertToContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) bool { + rv := objc.Call[bool](d_, objc.Sel("revertToContentsOfURL:ofType:error:"), url, typeName, outError) return rv } -// Returns a Boolean value that indicates whether the receiver reads multiple documents of the given type concurrently. [Full Topic] +// Returns a Boolean value that indicates whether it is safe to autosave document changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515216-canconcurrentlyreaddocumentsofty?language=objc -func (dc _DocumentClass) CanConcurrentlyReadDocumentsOfType(typeName string) bool { - rv := objc.Call[bool](dc, objc.Sel("canConcurrentlyReadDocumentsOfType:"), typeName) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515061-checkautosavingsafetyandreturner?language=objc +func (d_ Document) CheckAutosavingSafetyAndReturnError(outError unsafe.Pointer) bool { + rv := objc.Call[bool](d_, objc.Sel("checkAutosavingSafetyAndReturnError:"), outError) return rv } -// Returns a Boolean value that indicates whether the receiver reads multiple documents of the given type concurrently. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515216-canconcurrentlyreaddocumentsofty?language=objc -func Document_CanConcurrentlyReadDocumentsOfType(typeName string) bool { - return DocumentClass.CanConcurrentlyReadDocumentsOfType(typeName) -} - // Called after one of the document's window controllers loads its nib file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515221-windowcontrollerdidloadnib?language=objc @@ -732,48 +785,63 @@ func (d_ Document) WindowControllerDidLoadNib(windowController IWindowController objc.Call[objc.Void](d_, objc.Sel("windowControllerDidLoadNib:"), windowController) } -// Runs the specified print operation modally. [Full Topic] +// Determines whether the system should close the document and its associated window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515234-runmodalprintoperation?language=objc -func (d_ Document) RunModalPrintOperationDelegateDidRunSelectorContextInfo(printOperation IPrintOperation, delegate objc.IObject, didRunSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("runModalPrintOperation:delegate:didRunSelector:contextInfo:"), printOperation, delegate, didRunSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515247-shouldclosewindowcontroller?language=objc +func (d_ Document) ShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo(windowController IWindowController, delegate objc.IObject, shouldCloseSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](d_, objc.Sel("shouldCloseWindowController:delegate:shouldCloseSelector:contextInfo:"), windowController, delegate, shouldCloseSelector, contextInfo) } -// Returns the classes that support secure coding. [Full Topic] +// Moves the document’s file to the given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/3762522-allowedclassesforrestorablestate?language=objc -func (dc _DocumentClass) AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { - rv := objc.Call[[]objc.Class](dc, objc.Sel("allowedClassesForRestorableStateKeyPath:"), keyPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515057-movetourl?language=objc +func (d_ Document) MoveToURLCompletionHandler(url foundation.IURL, completionHandler func(arg0 foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("moveToURL:completionHandler:"), url, completionHandler) +} + +// Autosaves the document’s contents to an appropriate location in the file system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515225-autosavedocumentwithdelegate?language=objc +func (d_ Document) AutosaveDocumentWithDelegateDidAutosaveSelectorContextInfo(delegate objc.IObject, didAutosaveSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](d_, objc.Sel("autosaveDocumentWithDelegate:didAutosaveSelector:contextInfo:"), delegate, didAutosaveSelector, contextInfo) +} + +// Tells the document to customize the specified Save panel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515094-preparesavepanel?language=objc +func (d_ Document) PrepareSavePanel(savePanel ISavePanel) bool { + rv := objc.Call[bool](d_, objc.Sel("prepareSavePanel:"), savePanel) return rv } -// Returns the classes that support secure coding. [Full Topic] +// Returns a Boolean value that indicates whether the receiver reads multiple documents of the given type concurrently. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/3762522-allowedclassesforrestorablestate?language=objc -func Document_AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { - return DocumentClass.AllowedClassesForRestorableStateKeyPath(keyPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515216-canconcurrentlyreaddocumentsofty?language=objc +func (dc _DocumentClass) CanConcurrentlyReadDocumentsOfType(typeName string) bool { + rv := objc.Call[bool](dc, objc.Sel("canConcurrentlyReadDocumentsOfType:"), typeName) + return rv } -// Dismiss the Versions browser for the current document. [Full Topic] +// Returns a Boolean value that indicates whether the receiver reads multiple documents of the given type concurrently. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2177312-stopbrowsingversionswithcompleti?language=objc -func (d_ Document) StopBrowsingVersionsWithCompletionHandler(completionHandler func()) { - objc.Call[objc.Void](d_, objc.Sel("stopBrowsingVersionsWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515216-canconcurrentlyreaddocumentsofty?language=objc +func Document_CanConcurrentlyReadDocumentsOfType(typeName string) bool { + return DocumentClass.CanConcurrentlyReadDocumentsOfType(typeName) } -// The action method invoked in the receiver as first responder when the user chooses the Page Setup menu command. [Full Topic] +// Presents an error alert to the user as a modal panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515140-runpagelayout?language=objc -func (d_ Document) RunPageLayout(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("runPageLayout:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515184-presenterror?language=objc +func (d_ Document) PresentError(error foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("presentError:"), error) return rv } -// Handles the Close AppleScript command by attempting to close the document. [Full Topic] +// Moves the document to a new location in response to the user choosing the Move To… menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500136-handleclosescriptcommand?language=objc -func (d_ Document) HandleCloseScriptCommand(command foundation.ICloseCommand) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("handleCloseScriptCommand:"), command) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515118-movedocument?language=objc +func (d_ Document) MoveDocument(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("moveDocument:"), sender) return rv } @@ -784,256 +852,248 @@ func (d_ Document) UpdateChangeCountWithTokenForSaveOperation(changeCountToken o objc.Call[objc.Void](d_, objc.Sel("updateChangeCountWithToken:forSaveOperation:"), changeCountToken, saveOperation) } -// The action method invoked in the receiver as first responder when the user chooses the Save To menu command. [Full Topic] +// Saves the interface-related state of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515208-savedocumentto?language=objc -func (d_ Document) SaveDocumentTo(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("saveDocumentTo:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1526257-encoderestorablestatewithcoder?language=objc +func (d_ Document) EncodeRestorableStateWithCoder(coder foundation.ICoder) { + objc.Call[objc.Void](d_, objc.Sel("encodeRestorableStateWithCoder:"), coder) } -// Moves the document to a user-selected location. [Full Topic] +// Updates the receiver’s change count according to the given change type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515043-movedocumentwithcompletionhandle?language=objc -func (d_ Document) MoveDocumentWithCompletionHandler(completionHandler func(didMove bool)) { - objc.Call[objc.Void](d_, objc.Sel("moveDocumentWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515223-updatechangecount?language=objc +func (d_ Document) UpdateChangeCount(change DocumentChangeType) { + objc.Call[objc.Void](d_, objc.Sel("updateChangeCount:"), change) } -// Sets the contents of this document by reading from data of a specified type. [Full Topic] +// Perform any custom setup associated with a sharing service picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515198-readfromdata?language=objc -func (d_ Document) ReadFromDataOfTypeError(data []byte, typeName string, outError unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("readFromData:ofType:error:"), data, typeName, outError) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2902326-preparesharingservicepicker?language=objc +func (d_ Document) PrepareSharingServicePicker(sharingServicePicker ISharingServicePicker) { + objc.Call[objc.Void](d_, objc.Sel("prepareSharingServicePicker:"), sharingServicePicker) } -// The action method invoked in the receiver as first responder when the user chooses the Save As menu command. [Full Topic] +// The printing information associated with the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515171-savedocumentas?language=objc -func (d_ Document) SaveDocumentAs(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("saveDocumentAs:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515163-printinfo?language=objc +func (d_ Document) PrintInfo() PrintInfo { + rv := objc.Call[PrintInfo](d_, objc.Sel("printInfo")) return rv } -// Sets the contents of this document by reading from a file wrapper of a specified type. [Full Topic] +// The printing information associated with the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515044-readfromfilewrapper?language=objc -func (d_ Document) ReadFromFileWrapperOfTypeError(fileWrapper foundation.IFileWrapper, typeName string, outError unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("readFromFileWrapper:ofType:error:"), fileWrapper, typeName, outError) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515163-printinfo?language=objc +func (d_ Document) SetPrintInfo(value IPrintInfo) { + objc.Call[objc.Void](d_, objc.Sel("setPrintInfo:"), value) } -// Waits for any work scheduled by previous invocations of this method to complete, then invokes the passed-in block. [Full Topic] +// Returns the object specifier that represents the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515066-performactivitywithsynchronouswa?language=objc -func (d_ Document) PerformActivityWithSynchronousWaitingUsingBlock(waitSynchronously bool, block func(arg0 func())) { - objc.Call[objc.Void](d_, objc.Sel("performActivityWithSynchronousWaiting:usingBlock:"), waitSynchronously, block) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500134-objectspecifier?language=objc +func (d_ Document) ObjectSpecifier() foundation.ScriptObjectSpecifier { + rv := objc.Call[foundation.ScriptObjectSpecifier](d_, objc.Sel("objectSpecifier")) + return rv } -// Restores a window that was associated with a document, after that document is reopened. [Full Topic] +// A Boolean value that indicates whether the document is a draft that the user has not yet saved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1524586-restoredocumentwindowwithidentif?language=objc -func (d_ Document) RestoreDocumentWindowWithIdentifierStateCompletionHandler(identifier UserInterfaceItemIdentifier, state foundation.ICoder, completionHandler func(arg0 Window, arg1 foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("restoreDocumentWindowWithIdentifier:state:completionHandler:"), identifier, state, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515065-draft?language=objc +func (d_ Document) IsDraft() bool { + rv := objc.Call[bool](d_, objc.Sel("isDraft")) + return rv } -// Called when the receiver is about to present an error. [Full Topic] +// A Boolean value that indicates whether the document is a draft that the user has not yet saved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515229-willpresenterror?language=objc -func (d_ Document) WillPresentError(error foundation.IError) foundation.Error { - rv := objc.Call[foundation.Error](d_, objc.Sel("willPresentError:"), error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515065-draft?language=objc +func (d_ Document) SetDraft(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setDraft:"), value) } -// Writes the contents of the document to a file or file package located by a URL, that is formatted to a specified type. [Full Topic] +// A Boolean value that indicates whether the user chose to hide the document's filename extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515076-writetourl?language=objc -func (d_ Document) WriteToURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToURL:ofType:error:"), url, typeName, outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515092-filenameextensionwashiddeninlast?language=objc +func (d_ Document) FileNameExtensionWasHiddenInLastRunSavePanel() bool { + rv := objc.Call[bool](d_, objc.Sel("fileNameExtensionWasHiddenInLastRunSavePanel")) return rv } -// Creates a copy of the receiving document in response to the user choosing Duplicate from the File menu. [Full Topic] +// The object that the document uses to support undo/redo operations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515226-duplicatedocument?language=objc -func (d_ Document) DuplicateDocument(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("duplicateDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515166-undomanager?language=objc +func (d_ Document) UndoManager() foundation.UndoManager { + rv := objc.Call[foundation.UndoManager](d_, objc.Sel("undoManager")) return rv } -// Unblocks the main thread during asynchronous saving. [Full Topic] +// The object that the document uses to support undo/redo operations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515238-unblockuserinteraction?language=objc -func (d_ Document) UnblockUserInteraction() { - objc.Call[objc.Void](d_, objc.Sel("unblockUserInteraction")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515166-undomanager?language=objc +func (d_ Document) SetUndoManager(value foundation.IUndoManager) { + objc.Call[objc.Void](d_, objc.Sel("setUndoManager:"), value) } -// Moves the document to a new location in response to the user choosing the Move To… menu item. [Full Topic] +// The location of the most recently autosaved document contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515118-movedocument?language=objc -func (d_ Document) MoveDocument(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("moveDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515232-autosavedcontentsfileurl?language=objc +func (d_ Document) AutosavedContentsFileURL() foundation.URL { + rv := objc.Call[foundation.URL](d_, objc.Sel("autosavedContentsFileURL")) return rv } -// Returns whether the receiver can concurrently write to a file or file package located by a URL, that is formatted for a specific type, for a specific kind of save operation. [Full Topic] +// The location of the most recently autosaved document contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515177-canasynchronouslywritetourl?language=objc -func (d_ Document) CanAsynchronouslyWriteToURLOfTypeForSaveOperation(url foundation.IURL, typeName string, saveOperation SaveOperationType) bool { - rv := objc.Call[bool](d_, objc.Sel("canAsynchronouslyWriteToURL:ofType:forSaveOperation:"), url, typeName, saveOperation) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515232-autosavedcontentsfileurl?language=objc +func (d_ Document) SetAutosavedContentsFileURL(value foundation.IURL) { + objc.Call[objc.Void](d_, objc.Sel("setAutosavedContentsFileURL:"), value) } -// Opens the Versions browser in the document’s main window. [Full Topic] +// Returns whether the document object stores its contents in the user's iCloud document storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515193-browsedocumentversions?language=objc -func (d_ Document) BrowseDocumentVersions(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("browseDocumentVersions:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515085-usesubiquitousstorage?language=objc +func (dc _DocumentClass) UsesUbiquitousStorage() bool { + rv := objc.Call[bool](dc, objc.Sel("usesUbiquitousStorage")) return rv } -// Returns a Boolean value that indicates whether the document can read and write the data natively. [Full Topic] +// Returns whether the document object stores its contents in the user's iCloud document storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515072-isnativetype?language=objc -func (dc _DocumentClass) IsNativeType(type_ string) bool { - rv := objc.Call[bool](dc, objc.Sel("isNativeType:"), type_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515085-usesubiquitousstorage?language=objc +func Document_UsesUbiquitousStorage() bool { + return DocumentClass.UsesUbiquitousStorage() } -// Returns a Boolean value that indicates whether the document can read and write the data natively. [Full Topic] +// A Boolean value that indicates whether the document’s Save panel displays a list of supported writable document types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515072-isnativetype?language=objc -func Document_IsNativeType(type_ string) bool { - return DocumentClass.IsNativeType(type_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515183-shouldrunsavepanelwithaccessoryv?language=objc +func (d_ Document) ShouldRunSavePanelWithAccessoryView() bool { + rv := objc.Call[bool](d_, objc.Sel("shouldRunSavePanelWithAccessoryView")) + return rv } -// Waits for any scheduled file access to complete but without blocking the main thread, then invokes the passed-in block. [Full Topic] +// The name of the document seen by the user in AppleScript. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515124-performasynchronousfileaccessusi?language=objc -func (d_ Document) PerformAsynchronousFileAccessUsingBlock(block func(arg0 func())) { - objc.Call[objc.Void](d_, objc.Sel("performAsynchronousFileAccessUsingBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500132-lastcomponentoffilename?language=objc +func (d_ Document) LastComponentOfFileName() string { + rv := objc.Call[string](d_, objc.Sel("lastComponentOfFileName")) + return rv } -// Prevents the user from making further changes to the document. [Full Topic] +// The name of the document seen by the user in AppleScript. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515233-lockdocumentwithcompletionhandle?language=objc -func (d_ Document) LockDocumentWithCompletionHandler(completionHandler func(didLock bool)) { - objc.Call[objc.Void](d_, objc.Sel("lockDocumentWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500132-lastcomponentoffilename?language=objc +func (d_ Document) SetLastComponentOfFileName(value string) { + objc.Call[objc.Void](d_, objc.Sel("setLastComponentOfFileName:"), value) } -// Allows the user to make modifications to the document's file. [Full Topic] +// A Boolean value that indicates whether the document archives previously saved versions of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515131-unlockwithcompletionhandler?language=objc -func (d_ Document) UnlockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("unlockWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515060-keepbackupfile?language=objc +func (d_ Document) KeepBackupFile() bool { + rv := objc.Call[bool](d_, objc.Sel("keepBackupFile")) + return rv } -// Moves the document to the user’s iCloud storage. [Full Topic] +// A Boolean value that indicates whether the document subclass supports autosaving of drafts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515210-movedocumenttoubiquitycontainer?language=objc -func (d_ Document) MoveDocumentToUbiquityContainer(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("moveDocumentToUbiquityContainer:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515109-autosavesdrafts?language=objc +func (dc _DocumentClass) AutosavesDrafts() bool { + rv := objc.Call[bool](dc, objc.Sel("autosavesDrafts")) return rv } -// A Boolean value that indicates whether the document’s Save panel displays a list of supported writable document types. [Full Topic] +// A Boolean value that indicates whether the document subclass supports autosaving of drafts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515183-shouldrunsavepanelwithaccessoryv?language=objc -func (d_ Document) ShouldRunSavePanelWithAccessoryView() bool { - rv := objc.Call[bool](d_, objc.Sel("shouldRunSavePanelWithAccessoryView")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515109-autosavesdrafts?language=objc +func Document_AutosavesDrafts() bool { + return DocumentClass.AutosavesDrafts() } -// A Boolean value that indicates whether the document is shareable from the standard Share menu. [Full Topic] +// The URL for the document’s backup file that was created during an autosave operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2902303-allowsdocumentsharing?language=objc -func (d_ Document) AllowsDocumentSharing() bool { - rv := objc.Call[bool](d_, objc.Sel("allowsDocumentSharing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515200-backupfileurl?language=objc +func (d_ Document) BackupFileURL() foundation.URL { + rv := objc.Call[foundation.URL](d_, objc.Sel("backupFileURL")) return rv } -// The object that the document uses to support undo/redo operations. [Full Topic] +// Returns an array of key paths that represent the restorable attributes of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515166-undomanager?language=objc -func (d_ Document) UndoManager() foundation.UndoManager { - rv := objc.Call[foundation.UndoManager](d_, objc.Sel("undoManager")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1526232-restorablestatekeypaths?language=objc +func (dc _DocumentClass) RestorableStateKeyPaths() []string { + rv := objc.Call[[]string](dc, objc.Sel("restorableStateKeyPaths")) return rv } -// The object that the document uses to support undo/redo operations. [Full Topic] +// Returns an array of key paths that represent the restorable attributes of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515166-undomanager?language=objc -func (d_ Document) SetUndoManager(value foundation.IUndoManager) { - objc.Call[objc.Void](d_, objc.Sel("setUndoManager:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1526232-restorablestatekeypaths?language=objc +func Document_RestorableStateKeyPaths() []string { + return DocumentClass.RestorableStateKeyPaths() } -// The printing information associated with the document. [Full Topic] +// The location of the document’s on-disk representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515163-printinfo?language=objc -func (d_ Document) PrintInfo() PrintInfo { - rv := objc.Call[PrintInfo](d_, objc.Sel("printInfo")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515038-fileurl?language=objc +func (d_ Document) FileURL() foundation.URL { + rv := objc.Call[foundation.URL](d_, objc.Sel("fileURL")) return rv } -// The printing information associated with the document. [Full Topic] +// The location of the document’s on-disk representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515163-printinfo?language=objc -func (d_ Document) SetPrintInfo(value IPrintInfo) { - objc.Call[objc.Void](d_, objc.Sel("setPrintInfo:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515038-fileurl?language=objc +func (d_ Document) SetFileURL(value foundation.IURL) { + objc.Call[objc.Void](d_, objc.Sel("setFileURL:"), value) } -// A Boolean value that indicates whether the document is in read-only mode. [Full Topic] +// The file type that was last selected in the Save panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515086-inviewingmode?language=objc -func (d_ Document) IsInViewingMode() bool { - rv := objc.Call[bool](d_, objc.Sel("isInViewingMode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515240-filetypefromlastrunsavepanel?language=objc +func (d_ Document) FileTypeFromLastRunSavePanel() string { + rv := objc.Call[string](d_, objc.Sel("fileTypeFromLastRunSavePanel")) return rv } -// A Boolean value that indicates whether the document archives previously saved versions of the document. [Full Topic] +// The document’s current window controllers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515060-keepbackupfile?language=objc -func (d_ Document) KeepBackupFile() bool { - rv := objc.Call[bool](d_, objc.Sel("keepBackupFile")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515156-windowcontrollers?language=objc +func (d_ Document) WindowControllers() []WindowController { + rv := objc.Call[[]WindowController](d_, objc.Sel("windowControllers")) return rv } -// The name of the document seen by the user in AppleScript. [Full Topic] +// A Boolean value that indicates whether the document’s file is completely loaded into memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500132-lastcomponentoffilename?language=objc -func (d_ Document) LastComponentOfFileName() string { - rv := objc.Call[string](d_, objc.Sel("lastComponentOfFileName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515053-entirefileloaded?language=objc +func (d_ Document) IsEntireFileLoaded() bool { + rv := objc.Call[bool](d_, objc.Sel("isEntireFileLoaded")) return rv } -// The name of the document seen by the user in AppleScript. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500132-lastcomponentoffilename?language=objc -func (d_ Document) SetLastComponentOfFileName(value string) { - objc.Call[objc.Void](d_, objc.Sel("setLastComponentOfFileName:"), value) -} - -// The file type that was last selected in the Save panel. [Full Topic] +// A Boolean value that indicates whether the document is currently displaying the Versions browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515240-filetypefromlastrunsavepanel?language=objc -func (d_ Document) FileTypeFromLastRunSavePanel() string { - rv := objc.Call[string](d_, objc.Sel("fileTypeFromLastRunSavePanel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2177310-browsingversions?language=objc +func (d_ Document) IsBrowsingVersions() bool { + rv := objc.Call[bool](d_, objc.Sel("isBrowsingVersions")) return rv } -// Returns the types of data the receiver can read natively and any types filterable to that native type. [Full Topic] +// A Boolean value that indicates whether the document is in read-only mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515104-readabletypes?language=objc -func (dc _DocumentClass) ReadableTypes() []string { - rv := objc.Call[[]string](dc, objc.Sel("readableTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515086-inviewingmode?language=objc +func (d_ Document) IsInViewingMode() bool { + rv := objc.Call[bool](d_, objc.Sel("isInViewingMode")) return rv } -// Returns the types of data the receiver can read natively and any types filterable to that native type. [Full Topic] +// A print operation you can use to create a PDF representation of the document’s current contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515104-readabletypes?language=objc -func Document_ReadableTypes() []string { - return DocumentClass.ReadableTypes() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515246-pdfprintoperation?language=objc +func (d_ Document) PDFPrintOperation() PrintOperation { + rv := objc.Call[PrintOperation](d_, objc.Sel("PDFPrintOperation")) + return rv } // Returns whether the document subclass supports version management. [Full Topic] @@ -1051,29 +1111,36 @@ func Document_PreservesVersions() bool { return DocumentClass.PreservesVersions() } -// Returns an array of key paths that represent the restorable attributes of the document. [Full Topic] +// A Boolean value that indicates whether the document owns an undo manager object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1526232-restorablestatekeypaths?language=objc -func (dc _DocumentClass) RestorableStateKeyPaths() []string { - rv := objc.Call[[]string](dc, objc.Sel("restorableStateKeyPaths")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515103-hasundomanager?language=objc +func (d_ Document) HasUndoManager() bool { + rv := objc.Call[bool](d_, objc.Sel("hasUndoManager")) return rv } -// Returns an array of key paths that represent the restorable attributes of the document. [Full Topic] +// A Boolean value that indicates whether the document owns an undo manager object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1526232-restorablestatekeypaths?language=objc -func Document_RestorableStateKeyPaths() []string { - return DocumentClass.RestorableStateKeyPaths() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515103-hasundomanager?language=objc +func (d_ Document) SetHasUndoManager(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setHasUndoManager:"), value) } -// The name of the document’s sole nib file. [Full Topic] +// Returns the types of data the receiver can read natively and any types filterable to that native type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515174-windownibname?language=objc -func (d_ Document) WindowNibName() NibName { - rv := objc.Call[NibName](d_, objc.Sel("windowNibName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515104-readabletypes?language=objc +func (dc _DocumentClass) ReadableTypes() []string { + rv := objc.Call[[]string](dc, objc.Sel("readableTypes")) return rv } +// Returns the types of data the receiver can read natively and any types filterable to that native type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515104-readabletypes?language=objc +func Document_ReadableTypes() []string { + return DocumentClass.ReadableTypes() +} + // The name of the document type, as specified in the app’s information property-list file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515121-filetype?language=objc @@ -1089,65 +1156,19 @@ func (d_ Document) SetFileType(value string) { objc.Call[objc.Void](d_, objc.Sel("setFileType:"), value) } -// A Boolean value that indicates whether the document subclass supports autosaving of drafts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515109-autosavesdrafts?language=objc -func (dc _DocumentClass) AutosavesDrafts() bool { - rv := objc.Call[bool](dc, objc.Sel("autosavesDrafts")) - return rv -} - -// A Boolean value that indicates whether the document subclass supports autosaving of drafts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515109-autosavesdrafts?language=objc -func Document_AutosavesDrafts() bool { - return DocumentClass.AutosavesDrafts() -} - -// A print operation you can use to create a PDF representation of the document’s current contents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515246-pdfprintoperation?language=objc -func (d_ Document) PDFPrintOperation() PrintOperation { - rv := objc.Call[PrintOperation](d_, objc.Sel("PDFPrintOperation")) - return rv -} - -// A Boolean value that indicates whether the document has changes that have not been autosaved. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515079-hasunautosavedchanges?language=objc -func (d_ Document) HasUnautosavedChanges() bool { - rv := objc.Call[bool](d_, objc.Sel("hasUnautosavedChanges")) - return rv -} - -// Returns the types of data the receiver can write natively and any types filterable to that native type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515236-writabletypes?language=objc -func (dc _DocumentClass) WritableTypes() []string { - rv := objc.Call[[]string](dc, objc.Sel("writableTypes")) - return rv -} - -// Returns the types of data the receiver can write natively and any types filterable to that native type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515236-writabletypes?language=objc -func Document_WritableTypes() []string { - return DocumentClass.WritableTypes() -} - -// A Boolean value that indicates whether the document’s file is completely loaded into memory. [Full Topic] +// A Boolean value that indicates whether the document has unsaved changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515053-entirefileloaded?language=objc -func (d_ Document) IsEntireFileLoaded() bool { - rv := objc.Call[bool](d_, objc.Sel("isEntireFileLoaded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515091-documentedited?language=objc +func (d_ Document) IsDocumentEdited() bool { + rv := objc.Call[bool](d_, objc.Sel("isDocumentEdited")) return rv } -// Returns the document type to use for an autosave operation. [Full Topic] +// A Boolean value that indicates whether or not the file can be written to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515136-autosavingfiletype?language=objc -func (d_ Document) AutosavingFileType() string { - rv := objc.Call[string](d_, objc.Sel("autosavingFileType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515212-locked?language=objc +func (d_ Document) IsLocked() bool { + rv := objc.Call[bool](d_, objc.Sel("isLocked")) return rv } @@ -1166,11 +1187,11 @@ func (d_ Document) SetFileModificationDate(value foundation.IDate) { objc.Call[objc.Void](d_, objc.Sel("setFileModificationDate:"), value) } -// The name of the document as displayed in the title bars of the document’s windows and in alert dialogs related to the document. [Full Topic] +// The name of the document’s sole nib file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515077-displayname?language=objc -func (d_ Document) DisplayName() string { - rv := objc.Call[string](d_, objc.Sel("displayName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515174-windownibname?language=objc +func (d_ Document) WindowNibName() NibName { + rv := objc.Call[NibName](d_, objc.Sel("windowNibName")) return rv } @@ -1182,52 +1203,14 @@ func (d_ Document) AutosavingIsImplicitlyCancellable() bool { return rv } -// Returns whether the document object stores its contents in the user's iCloud document storage. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515085-usesubiquitousstorage?language=objc -func (dc _DocumentClass) UsesUbiquitousStorage() bool { - rv := objc.Call[bool](dc, objc.Sel("usesUbiquitousStorage")) - return rv -} - -// Returns whether the document object stores its contents in the user's iCloud document storage. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515085-usesubiquitousstorage?language=objc -func Document_UsesUbiquitousStorage() bool { - return DocumentClass.UsesUbiquitousStorage() -} - -// The document’s current window controllers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515156-windowcontrollers?language=objc -func (d_ Document) WindowControllers() []WindowController { - rv := objc.Call[[]WindowController](d_, objc.Sel("windowControllers")) - return rv -} - -// A Boolean value that indicates whether the document has unsaved changes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515091-documentedited?language=objc -func (d_ Document) IsDocumentEdited() bool { - rv := objc.Call[bool](d_, objc.Sel("isDocumentEdited")) - return rv -} - -// The location of the document’s on-disk representation. [Full Topic] +// A Boolean value that indicates whether the document is shareable from the standard Share menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515038-fileurl?language=objc -func (d_ Document) FileURL() foundation.URL { - rv := objc.Call[foundation.URL](d_, objc.Sel("fileURL")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2902303-allowsdocumentsharing?language=objc +func (d_ Document) AllowsDocumentSharing() bool { + rv := objc.Call[bool](d_, objc.Sel("allowsDocumentSharing")) return rv } -// The location of the document’s on-disk representation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515038-fileurl?language=objc -func (d_ Document) SetFileURL(value foundation.IURL) { - objc.Call[objc.Void](d_, objc.Sel("setFileURL:"), value) -} - // Returns whether the receiver supports autosaving in place. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515106-autosavesinplace?language=objc @@ -1243,60 +1226,37 @@ func Document_AutosavesInPlace() bool { return DocumentClass.AutosavesInPlace() } -// A Boolean value that indicates whether the document owns an undo manager object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515103-hasundomanager?language=objc -func (d_ Document) HasUndoManager() bool { - rv := objc.Call[bool](d_, objc.Sel("hasUndoManager")) - return rv -} - -// A Boolean value that indicates whether the document owns an undo manager object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515103-hasundomanager?language=objc -func (d_ Document) SetHasUndoManager(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setHasUndoManager:"), value) -} - -// A Boolean value that indicates whether the document is currently displaying the Versions browser. [Full Topic] +// Returns the types of data the receiver can write natively and any types filterable to that native type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/2177310-browsingversions?language=objc -func (d_ Document) IsBrowsingVersions() bool { - rv := objc.Call[bool](d_, objc.Sel("isBrowsingVersions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515236-writabletypes?language=objc +func (dc _DocumentClass) WritableTypes() []string { + rv := objc.Call[[]string](dc, objc.Sel("writableTypes")) return rv } -// A Boolean value that indicates whether the user chose to hide the document's filename extension. [Full Topic] +// Returns the types of data the receiver can write natively and any types filterable to that native type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515092-filenameextensionwashiddeninlast?language=objc -func (d_ Document) FileNameExtensionWasHiddenInLastRunSavePanel() bool { - rv := objc.Call[bool](d_, objc.Sel("fileNameExtensionWasHiddenInLastRunSavePanel")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515236-writabletypes?language=objc +func Document_WritableTypes() []string { + return DocumentClass.WritableTypes() } -// The URL for the document’s backup file that was created during an autosave operation. [Full Topic] +// A Boolean value that indicates whether the document has changes that have not been autosaved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515200-backupfileurl?language=objc -func (d_ Document) BackupFileURL() foundation.URL { - rv := objc.Call[foundation.URL](d_, objc.Sel("backupFileURL")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515079-hasunautosavedchanges?language=objc +func (d_ Document) HasUnautosavedChanges() bool { + rv := objc.Call[bool](d_, objc.Sel("hasUnautosavedChanges")) return rv } -// The location of the most recently autosaved document contents. [Full Topic] +// Returns the document type to use for an autosave operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515232-autosavedcontentsfileurl?language=objc -func (d_ Document) AutosavedContentsFileURL() foundation.URL { - rv := objc.Call[foundation.URL](d_, objc.Sel("autosavedContentsFileURL")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515136-autosavingfiletype?language=objc +func (d_ Document) AutosavingFileType() string { + rv := objc.Call[string](d_, objc.Sel("autosavingFileType")) return rv } -// The location of the most recently autosaved document contents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515232-autosavedcontentsfileurl?language=objc -func (d_ Document) SetAutosavedContentsFileURL(value foundation.IURL) { - objc.Call[objc.Void](d_, objc.Sel("setAutosavedContentsFileURL:"), value) -} - // Returns the document window to use as the parent of a document-modal sheet. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515064-windowforsheet?language=objc @@ -1305,37 +1265,14 @@ func (d_ Document) WindowForSheet() Window { return rv } -// A Boolean value that indicates whether or not the file can be written to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515212-locked?language=objc -func (d_ Document) IsLocked() bool { - rv := objc.Call[bool](d_, objc.Sel("isLocked")) - return rv -} - -// Returns the object specifier that represents the document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1500134-objectspecifier?language=objc -func (d_ Document) ObjectSpecifier() foundation.ScriptObjectSpecifier { - rv := objc.Call[foundation.ScriptObjectSpecifier](d_, objc.Sel("objectSpecifier")) - return rv -} - -// A Boolean value that indicates whether the document is a draft that the user has not yet saved. [Full Topic] +// The name of the document as displayed in the title bars of the document’s windows and in alert dialogs related to the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515065-draft?language=objc -func (d_ Document) IsDraft() bool { - rv := objc.Call[bool](d_, objc.Sel("isDraft")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515077-displayname?language=objc +func (d_ Document) DisplayName() string { + rv := objc.Call[string](d_, objc.Sel("displayName")) return rv } -// A Boolean value that indicates whether the document is a draft that the user has not yet saved. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515065-draft?language=objc -func (d_ Document) SetDraft(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setDraft:"), value) -} - // An object that encapsulates a user activity supported by this document. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1526106-useractivity?language=objc diff --git a/macos/appkit/document_controller.gen.go b/macos/appkit/document_controller.gen.go index 123fc6b8..5f92fbe6 100644 --- a/macos/appkit/document_controller.gen.go +++ b/macos/appkit/document_controller.gen.go @@ -19,49 +19,44 @@ type _DocumentControllerClass struct { // An interface definition for the [DocumentController] class. type IDocumentController interface { objc.IObject + ClearRecentDocuments(sender objc.IObject) objc.Object + OpenDocument(sender objc.IObject) objc.Object + DocumentForURL(url foundation.IURL) Document WillPresentError(error foundation.IError) foundation.Error - DuplicateDocumentWithContentsOfURLCopyingDisplayNameError(url foundation.IURL, duplicateByCopying bool, displayNameOrNil string, outError unsafe.Pointer) Document - PresentError(error foundation.IError) bool - SaveAllDocuments(sender objc.IObject) objc.Object - URLsFromRunningOpenPanel() []foundation.URL + ReviewUnsavedDocumentsWithAlertTitleCancellableDelegateDidReviewAllSelectorContextInfo(title string, cancellable bool, delegate objc.IObject, didReviewAllSelector objc.Selector, contextInfo unsafe.Pointer) + RemoveDocument(document IDocument) + BeginOpenPanelWithCompletionHandler(completionHandler func(arg0 []foundation.URL)) + DocumentForWindow(window IWindow) Document + AddDocument(document IDocument) DisplayNameForType(typeName string) string - OpenDocument(sender objc.IObject) objc.Object + SaveAllDocuments(sender objc.IObject) objc.Object ValidateUserInterfaceItem(item PValidatedUserInterfaceItem) bool ValidateUserInterfaceItemObject(itemObject objc.IObject) bool TypeForContentsOfURLError(url foundation.IURL, outError unsafe.Pointer) string - MakeUntitledDocumentOfTypeError(typeName string, outError unsafe.Pointer) Document - NewDocument(sender objc.IObject) objc.Object - OpenUntitledDocumentAndDisplayError(displayDocument bool, outError unsafe.Pointer) Document - MakeDocumentWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) Document - BeginOpenPanelForTypesCompletionHandler(openPanel IOpenPanel, inTypes []string, completionHandler func(result int)) - CloseAllDocumentsWithDelegateDidCloseAllSelectorContextInfo(delegate objc.IObject, didCloseAllSelector objc.Selector, contextInfo unsafe.Pointer) - ReviewUnsavedDocumentsWithAlertTitleCancellableDelegateDidReviewAllSelectorContextInfo(title string, cancellable bool, delegate objc.IObject, didReviewAllSelector objc.Selector, contextInfo unsafe.Pointer) - ClearRecentDocuments(sender objc.IObject) objc.Object - PresentErrorModalForWindowDelegateDidPresentSelectorContextInfo(error foundation.IError, window IWindow, delegate objc.IObject, didPresentSelector objc.Selector, contextInfo unsafe.Pointer) - DocumentForURL(url foundation.IURL) Document - AddDocument(document IDocument) RunModalOpenPanelForTypes(openPanel IOpenPanel, types []string) int NoteNewRecentDocument(document IDocument) + URLsFromRunningOpenPanel() []foundation.URL NoteNewRecentDocumentURL(url foundation.IURL) - ReopenDocumentForURLWithContentsOfURLDisplayCompletionHandler(urlOrNil foundation.IURL, contentsURL foundation.IURL, displayDocument bool, completionHandler func(document Document, documentWasAlreadyOpen bool, error foundation.Error)) - StandardShareMenuItem() MenuItem - BeginOpenPanelWithCompletionHandler(completionHandler func(arg0 []foundation.URL)) - OpenDocumentWithContentsOfURLDisplayCompletionHandler(url foundation.IURL, displayDocument bool, completionHandler func(document Document, documentWasAlreadyOpen bool, error foundation.Error)) - DocumentForWindow(window IWindow) Document - MakeDocumentForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError unsafe.Pointer) Document - RemoveDocument(document IDocument) DocumentClassForType(typeName string) objc.Class + OpenUntitledDocumentAndDisplayError(displayDocument bool, outError unsafe.Pointer) Document + DuplicateDocumentWithContentsOfURLCopyingDisplayNameError(url foundation.IURL, duplicateByCopying bool, displayNameOrNil string, outError unsafe.Pointer) Document + NewDocument(sender objc.IObject) objc.Object + CloseAllDocumentsWithDelegateDidCloseAllSelectorContextInfo(delegate objc.IObject, didCloseAllSelector objc.Selector, contextInfo unsafe.Pointer) + MakeDocumentForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError unsafe.Pointer) Document + PresentError(error foundation.IError) bool + StandardShareMenuItem() MenuItem + BeginOpenPanelForTypesCompletionHandler(openPanel IOpenPanel, inTypes []string, completionHandler func(result int)) CurrentDocument() Document MaximumRecentDocumentCount() uint - DocumentClassNames() []string DefaultType() string - HasEditedDocuments() bool - CurrentDirectory() string - Documents() []Document + DocumentClassNames() []string RecentDocumentURLs() []foundation.URL - AllowsAutomaticShareMenu() bool AutosavingDelay() foundation.TimeInterval SetAutosavingDelay(value foundation.TimeInterval) + AllowsAutomaticShareMenu() bool + Documents() []Document + HasEditedDocuments() bool + CurrentDirectory() string } // An object that manages an app’s documents. [Full Topic] @@ -97,6 +92,30 @@ func NewDocumentController() DocumentController { return DocumentControllerClass.New() } +// Empties the recent documents list for the application. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514933-clearrecentdocuments?language=objc +func (d_ DocumentController) ClearRecentDocuments(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("clearRecentDocuments:"), sender) + return rv +} + +// An action method called by the Open menu command, it runs the modal Open panel and, based on the selected filenames, creates one or more NSDocument objects from the contents of the files. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1515005-opendocument?language=objc +func (d_ DocumentController) OpenDocument(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("openDocument:"), sender) + return rv +} + +// Returns, for a given URL, the open document whose file or file package is located by the URL, or nil if there is no such open document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514939-documentforurl?language=objc +func (d_ DocumentController) DocumentForURL(url foundation.IURL) Document { + rv := objc.Call[Document](d_, objc.Sel("documentForURL:"), url) + return rv +} + // Indicates an error condition and provides the opportunity to return the same or a different error. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514994-willpresenterror?language=objc @@ -105,38 +124,42 @@ func (d_ DocumentController) WillPresentError(error foundation.IError) foundatio return rv } -// Creates a new document by reading the contents for the document from another URL, presents its user interface, and returns the document if successful. [Full Topic] +// Displays an alert asking if the user wants to review unsaved documents, quit regardless of unsaved documents, or cancel the save operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514982-duplicatedocumentwithcontentsofu?language=objc -func (d_ DocumentController) DuplicateDocumentWithContentsOfURLCopyingDisplayNameError(url foundation.IURL, duplicateByCopying bool, displayNameOrNil string, outError unsafe.Pointer) Document { - rv := objc.Call[Document](d_, objc.Sel("duplicateDocumentWithContentsOfURL:copying:displayName:error:"), url, duplicateByCopying, displayNameOrNil, outError) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514940-reviewunsaveddocumentswithalertt?language=objc +func (d_ DocumentController) ReviewUnsavedDocumentsWithAlertTitleCancellableDelegateDidReviewAllSelectorContextInfo(title string, cancellable bool, delegate objc.IObject, didReviewAllSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](d_, objc.Sel("reviewUnsavedDocumentsWithAlertTitle:cancellable:delegate:didReviewAllSelector:contextInfo:"), title, cancellable, delegate, didReviewAllSelector, contextInfo) } -// Presents an error alert to the user as a modal panel. [Full Topic] +// Removes the given document from the list of open documents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514977-presenterror?language=objc -func (d_ DocumentController) PresentError(error foundation.IError) bool { - rv := objc.Call[bool](d_, objc.Sel("presentError:"), error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514984-removedocument?language=objc +func (d_ DocumentController) RemoveDocument(document IDocument) { + objc.Call[objc.Void](d_, objc.Sel("removeDocument:"), document) } -// As the action method called by the Save All command, saves all open documents of the application that need to be saved. [Full Topic] +// Presents an Open dialog and delivers the results to a completion handler as an array of URLs for the chosen files (or nil). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514959-savealldocuments?language=objc -func (d_ DocumentController) SaveAllDocuments(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("saveAllDocuments:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1515001-beginopenpanelwithcompletionhand?language=objc +func (d_ DocumentController) BeginOpenPanelWithCompletionHandler(completionHandler func(arg0 []foundation.URL)) { + objc.Call[objc.Void](d_, objc.Sel("beginOpenPanelWithCompletionHandler:"), completionHandler) } -// An array of URLs corresponding to the files selected in a running open panel. [Full Topic] +// Returns the document object whose window controller owns a specified window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514972-urlsfromrunningopenpanel?language=objc -func (d_ DocumentController) URLsFromRunningOpenPanel() []foundation.URL { - rv := objc.Call[[]foundation.URL](d_, objc.Sel("URLsFromRunningOpenPanel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514970-documentforwindow?language=objc +func (d_ DocumentController) DocumentForWindow(window IWindow) Document { + rv := objc.Call[Document](d_, objc.Sel("documentForWindow:"), window) return rv } +// Adds the given document to the list of open documents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1515013-adddocument?language=objc +func (d_ DocumentController) AddDocument(document IDocument) { + objc.Call[objc.Void](d_, objc.Sel("addDocument:"), document) +} + // Returns the descriptive name for the specified document type, which is used in the File Format pop-up menu of the Save As dialog. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514937-displaynamefortype?language=objc @@ -145,11 +168,11 @@ func (d_ DocumentController) DisplayNameForType(typeName string) string { return rv } -// An action method called by the Open menu command, it runs the modal Open panel and, based on the selected filenames, creates one or more NSDocument objects from the contents of the files. [Full Topic] +// As the action method called by the Save All command, saves all open documents of the application that need to be saved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1515005-opendocument?language=objc -func (d_ DocumentController) OpenDocument(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("openDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514959-savealldocuments?language=objc +func (d_ DocumentController) SaveAllDocuments(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("saveAllDocuments:"), sender) return rv } @@ -178,89 +201,6 @@ func (d_ DocumentController) TypeForContentsOfURLError(url foundation.IURL, outE return rv } -// Instantiates a new untitled document of the specified type and returns it if successful. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514963-makeuntitleddocumentoftype?language=objc -func (d_ DocumentController) MakeUntitledDocumentOfTypeError(typeName string, outError unsafe.Pointer) Document { - rv := objc.Call[Document](d_, objc.Sel("makeUntitledDocumentOfType:error:"), typeName, outError) - return rv -} - -// An action method called by the New menu command, this method creates a new NSDocument object and adds it to the list of such objects managed by the document controller. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514997-newdocument?language=objc -func (d_ DocumentController) NewDocument(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("newDocument:"), sender) - return rv -} - -// Creates a new untitled document, presents its user interface if displayDocument is YES, and returns the document if successful. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1515014-openuntitleddocumentanddisplay?language=objc -func (d_ DocumentController) OpenUntitledDocumentAndDisplayError(displayDocument bool, outError unsafe.Pointer) Document { - rv := objc.Call[Document](d_, objc.Sel("openUntitledDocumentAndDisplay:error:"), displayDocument, outError) - return rv -} - -// Instantiates a document located by a URL, of a specified type, and returns it if successful. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514949-makedocumentwithcontentsofurl?language=objc -func (d_ DocumentController) MakeDocumentWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) Document { - rv := objc.Call[Document](d_, objc.Sel("makeDocumentWithContentsOfURL:ofType:error:"), url, typeName, outError) - return rv -} - -// Presents a nonmodal Open dialog that displays files you can open from a list of UTIs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514969-beginopenpanel?language=objc -func (d_ DocumentController) BeginOpenPanelForTypesCompletionHandler(openPanel IOpenPanel, inTypes []string, completionHandler func(result int)) { - objc.Call[objc.Void](d_, objc.Sel("beginOpenPanel:forTypes:completionHandler:"), openPanel, inTypes, completionHandler) -} - -// Iterates through all the open documents and tries to close them one by one using the specified delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514995-closealldocumentswithdelegate?language=objc -func (d_ DocumentController) CloseAllDocumentsWithDelegateDidCloseAllSelectorContextInfo(delegate objc.IObject, didCloseAllSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:"), delegate, didCloseAllSelector, contextInfo) -} - -// Displays an alert asking if the user wants to review unsaved documents, quit regardless of unsaved documents, or cancel the save operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514940-reviewunsaveddocumentswithalertt?language=objc -func (d_ DocumentController) ReviewUnsavedDocumentsWithAlertTitleCancellableDelegateDidReviewAllSelectorContextInfo(title string, cancellable bool, delegate objc.IObject, didReviewAllSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("reviewUnsavedDocumentsWithAlertTitle:cancellable:delegate:didReviewAllSelector:contextInfo:"), title, cancellable, delegate, didReviewAllSelector, contextInfo) -} - -// Empties the recent documents list for the application. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514933-clearrecentdocuments?language=objc -func (d_ DocumentController) ClearRecentDocuments(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("clearRecentDocuments:"), sender) - return rv -} - -// Presents an error alert to the user as a modal panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514954-presenterror?language=objc -func (d_ DocumentController) PresentErrorModalForWindowDelegateDidPresentSelectorContextInfo(error foundation.IError, window IWindow, delegate objc.IObject, didPresentSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](d_, objc.Sel("presentError:modalForWindow:delegate:didPresentSelector:contextInfo:"), error, window, delegate, didPresentSelector, contextInfo) -} - -// Returns, for a given URL, the open document whose file or file package is located by the URL, or nil if there is no such open document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514939-documentforurl?language=objc -func (d_ DocumentController) DocumentForURL(url foundation.IURL) Document { - rv := objc.Call[Document](d_, objc.Sel("documentForURL:"), url) - return rv -} - -// Adds the given document to the list of open documents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1515013-adddocument?language=objc -func (d_ DocumentController) AddDocument(document IDocument) { - objc.Call[objc.Void](d_, objc.Sel("addDocument:"), document) -} - // Presents a modal Open dialog and limits selection to specific file types. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514960-runmodalopenpanel?language=objc @@ -276,6 +216,14 @@ func (d_ DocumentController) NoteNewRecentDocument(document IDocument) { objc.Call[objc.Void](d_, objc.Sel("noteNewRecentDocument:"), document) } +// An array of URLs corresponding to the files selected in a running open panel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514972-urlsfromrunningopenpanel?language=objc +func (d_ DocumentController) URLsFromRunningOpenPanel() []foundation.URL { + rv := objc.Call[[]foundation.URL](d_, objc.Sel("URLsFromRunningOpenPanel")) + return rv +} + // Adds or replaces an Open Recent menu item corresponding to the data located by the URL. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514967-notenewrecentdocumenturl?language=objc @@ -283,41 +231,43 @@ func (d_ DocumentController) NoteNewRecentDocumentURL(url foundation.IURL) { objc.Call[objc.Void](d_, objc.Sel("noteNewRecentDocumentURL:"), url) } -// Reopens a document, optionally located by a URL, by reading the contents for the document from another URL, optionally presents its user interface, and calls the passed-in completion handler. [Full Topic] +// Returns the NSDocument subclass associated with a given document type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514935-reopendocumentforurl?language=objc -func (d_ DocumentController) ReopenDocumentForURLWithContentsOfURLDisplayCompletionHandler(urlOrNil foundation.IURL, contentsURL foundation.IURL, displayDocument bool, completionHandler func(document Document, documentWasAlreadyOpen bool, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("reopenDocumentForURL:withContentsOfURL:display:completionHandler:"), urlOrNil, contentsURL, displayDocument, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514947-documentclassfortype?language=objc +func (d_ DocumentController) DocumentClassForType(typeName string) objc.Class { + rv := objc.Call[objc.Class](d_, objc.Sel("documentClassForType:"), typeName) + return rv } -// Returns a menu item that your app uses for sharing the current document. [Full Topic] +// Creates a new untitled document, presents its user interface if displayDocument is YES, and returns the document if successful. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/2902324-standardsharemenuitem?language=objc -func (d_ DocumentController) StandardShareMenuItem() MenuItem { - rv := objc.Call[MenuItem](d_, objc.Sel("standardShareMenuItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1515014-openuntitleddocumentanddisplay?language=objc +func (d_ DocumentController) OpenUntitledDocumentAndDisplayError(displayDocument bool, outError unsafe.Pointer) Document { + rv := objc.Call[Document](d_, objc.Sel("openUntitledDocumentAndDisplay:error:"), displayDocument, outError) return rv } -// Presents an Open dialog and delivers the results to a completion handler as an array of URLs for the chosen files (or nil). [Full Topic] +// Creates a new document by reading the contents for the document from another URL, presents its user interface, and returns the document if successful. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1515001-beginopenpanelwithcompletionhand?language=objc -func (d_ DocumentController) BeginOpenPanelWithCompletionHandler(completionHandler func(arg0 []foundation.URL)) { - objc.Call[objc.Void](d_, objc.Sel("beginOpenPanelWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514982-duplicatedocumentwithcontentsofu?language=objc +func (d_ DocumentController) DuplicateDocumentWithContentsOfURLCopyingDisplayNameError(url foundation.IURL, duplicateByCopying bool, displayNameOrNil string, outError unsafe.Pointer) Document { + rv := objc.Call[Document](d_, objc.Sel("duplicateDocumentWithContentsOfURL:copying:displayName:error:"), url, duplicateByCopying, displayNameOrNil, outError) + return rv } -// Opens a document located by a URL, optionally presents its user interface, and calls the passed-in completion handler. [Full Topic] +// An action method called by the New menu command, this method creates a new NSDocument object and adds it to the list of such objects managed by the document controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514992-opendocumentwithcontentsofurl?language=objc -func (d_ DocumentController) OpenDocumentWithContentsOfURLDisplayCompletionHandler(url foundation.IURL, displayDocument bool, completionHandler func(document Document, documentWasAlreadyOpen bool, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("openDocumentWithContentsOfURL:display:completionHandler:"), url, displayDocument, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514997-newdocument?language=objc +func (d_ DocumentController) NewDocument(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("newDocument:"), sender) + return rv } -// Returns the document object whose window controller owns a specified window. [Full Topic] +// Iterates through all the open documents and tries to close them one by one using the specified delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514970-documentforwindow?language=objc -func (d_ DocumentController) DocumentForWindow(window IWindow) Document { - rv := objc.Call[Document](d_, objc.Sel("documentForWindow:"), window) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514995-closealldocumentswithdelegate?language=objc +func (d_ DocumentController) CloseAllDocumentsWithDelegateDidCloseAllSelectorContextInfo(delegate objc.IObject, didCloseAllSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](d_, objc.Sel("closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:"), delegate, didCloseAllSelector, contextInfo) } // Instantiates a document located by a URL, of a specified type, but by reading the contents for the document from another URL, and returns it if successful. [Full Topic] @@ -328,34 +278,27 @@ func (d_ DocumentController) MakeDocumentForURLWithContentsOfURLOfTypeError(urlO return rv } -// Removes the given document from the list of open documents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514984-removedocument?language=objc -func (d_ DocumentController) RemoveDocument(document IDocument) { - objc.Call[objc.Void](d_, objc.Sel("removeDocument:"), document) -} - -// Returns the NSDocument subclass associated with a given document type. [Full Topic] +// Presents an error alert to the user as a modal panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514947-documentclassfortype?language=objc -func (d_ DocumentController) DocumentClassForType(typeName string) objc.Class { - rv := objc.Call[objc.Class](d_, objc.Sel("documentClassForType:"), typeName) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514977-presenterror?language=objc +func (d_ DocumentController) PresentError(error foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("presentError:"), error) return rv } -// Returns the shared NSDocumentController instance. [Full Topic] +// Returns a menu item that your app uses for sharing the current document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514981-shareddocumentcontroller?language=objc -func (dc _DocumentControllerClass) SharedDocumentController() DocumentController { - rv := objc.Call[DocumentController](dc, objc.Sel("sharedDocumentController")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/2902324-standardsharemenuitem?language=objc +func (d_ DocumentController) StandardShareMenuItem() MenuItem { + rv := objc.Call[MenuItem](d_, objc.Sel("standardShareMenuItem")) return rv } -// Returns the shared NSDocumentController instance. [Full Topic] +// Presents a nonmodal Open dialog that displays files you can open from a list of UTIs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514981-shareddocumentcontroller?language=objc -func DocumentController_SharedDocumentController() DocumentController { - return DocumentControllerClass.SharedDocumentController() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514969-beginopenpanel?language=objc +func (d_ DocumentController) BeginOpenPanelForTypesCompletionHandler(openPanel IOpenPanel, inTypes []string, completionHandler func(result int)) { + objc.Call[objc.Void](d_, objc.Sel("beginOpenPanel:forTypes:completionHandler:"), openPanel, inTypes, completionHandler) } // The document object associated with the main window. [Full Topic] @@ -374,6 +317,14 @@ func (d_ DocumentController) MaximumRecentDocumentCount() uint { return rv } +// Returns the name of the document type that should be used when creating new documents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514986-defaulttype?language=objc +func (d_ DocumentController) DefaultType() string { + rv := objc.Call[string](d_, objc.Sel("defaultType")) + return rv +} + // An array of strings representing the custom document classes supported by this app. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514988-documentclassnames?language=objc @@ -382,27 +333,34 @@ func (d_ DocumentController) DocumentClassNames() []string { return rv } -// Returns the name of the document type that should be used when creating new documents. [Full Topic] +// The list of recent-document URLs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514986-defaulttype?language=objc -func (d_ DocumentController) DefaultType() string { - rv := objc.Call[string](d_, objc.Sel("defaultType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514976-recentdocumenturls?language=objc +func (d_ DocumentController) RecentDocumentURLs() []foundation.URL { + rv := objc.Call[[]foundation.URL](d_, objc.Sel("recentDocumentURLs")) return rv } -// A Boolean value indicating whether the receiver has any documents with unsaved changes. [Full Topic] +// The time interval (in seconds) for periodic autosaving. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514964-hasediteddocuments?language=objc -func (d_ DocumentController) HasEditedDocuments() bool { - rv := objc.Call[bool](d_, objc.Sel("hasEditedDocuments")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514953-autosavingdelay?language=objc +func (d_ DocumentController) AutosavingDelay() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](d_, objc.Sel("autosavingDelay")) return rv } -// The directory path to be used as the starting point in the Open panel. [Full Topic] +// The time interval (in seconds) for periodic autosaving. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514942-currentdirectory?language=objc -func (d_ DocumentController) CurrentDirectory() string { - rv := objc.Call[string](d_, objc.Sel("currentDirectory")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514953-autosavingdelay?language=objc +func (d_ DocumentController) SetAutosavingDelay(value foundation.TimeInterval) { + objc.Call[objc.Void](d_, objc.Sel("setAutosavingDelay:"), value) +} + +// A Boolean value that the system uses to insert a Share menu in the File menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/2902308-allowsautomaticsharemenu?language=objc +func (d_ DocumentController) AllowsAutomaticShareMenu() bool { + rv := objc.Call[bool](d_, objc.Sel("allowsAutomaticShareMenu")) return rv } @@ -414,33 +372,33 @@ func (d_ DocumentController) Documents() []Document { return rv } -// The list of recent-document URLs. [Full Topic] +// A Boolean value indicating whether the receiver has any documents with unsaved changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514976-recentdocumenturls?language=objc -func (d_ DocumentController) RecentDocumentURLs() []foundation.URL { - rv := objc.Call[[]foundation.URL](d_, objc.Sel("recentDocumentURLs")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514964-hasediteddocuments?language=objc +func (d_ DocumentController) HasEditedDocuments() bool { + rv := objc.Call[bool](d_, objc.Sel("hasEditedDocuments")) return rv } -// A Boolean value that the system uses to insert a Share menu in the File menu. [Full Topic] +// Returns the shared NSDocumentController instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/2902308-allowsautomaticsharemenu?language=objc -func (d_ DocumentController) AllowsAutomaticShareMenu() bool { - rv := objc.Call[bool](d_, objc.Sel("allowsAutomaticShareMenu")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514981-shareddocumentcontroller?language=objc +func (dc _DocumentControllerClass) SharedDocumentController() DocumentController { + rv := objc.Call[DocumentController](dc, objc.Sel("sharedDocumentController")) return rv } -// The time interval (in seconds) for periodic autosaving. [Full Topic] +// Returns the shared NSDocumentController instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514953-autosavingdelay?language=objc -func (d_ DocumentController) AutosavingDelay() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](d_, objc.Sel("autosavingDelay")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514981-shareddocumentcontroller?language=objc +func DocumentController_SharedDocumentController() DocumentController { + return DocumentControllerClass.SharedDocumentController() } -// The time interval (in seconds) for periodic autosaving. [Full Topic] +// The directory path to be used as the starting point in the Open panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514953-autosavingdelay?language=objc -func (d_ DocumentController) SetAutosavingDelay(value foundation.TimeInterval) { - objc.Call[objc.Void](d_, objc.Sel("setAutosavingDelay:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514942-currentdirectory?language=objc +func (d_ DocumentController) CurrentDirectory() string { + rv := objc.Call[string](d_, objc.Sel("currentDirectory")) + return rv } diff --git a/macos/appkit/dragging_destination_protocol.gen.go b/macos/appkit/dragging_destination_protocol.gen.go index 9328e435..b424e373 100644 --- a/macos/appkit/dragging_destination_protocol.gen.go +++ b/macos/appkit/dragging_destination_protocol.gen.go @@ -10,17 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination?language=objc type PDraggingDestination interface { - // optional - DraggingExited(sender DraggingInfoObject) - HasDraggingExited() bool - // optional WantsPeriodicDraggingUpdates() bool HasWantsPeriodicDraggingUpdates() bool // optional - ConcludeDragOperation(sender DraggingInfoObject) - HasConcludeDragOperation() bool + PrepareForDragOperation(sender DraggingInfoObject) bool + HasPrepareForDragOperation() bool // optional DraggingEntered(sender DraggingInfoObject) DragOperation @@ -31,12 +27,8 @@ type PDraggingDestination interface { HasPerformDragOperation() bool // optional - UpdateDraggingItemsForDrag(sender DraggingInfoObject) - HasUpdateDraggingItemsForDrag() bool - - // optional - PrepareForDragOperation(sender DraggingInfoObject) bool - HasPrepareForDragOperation() bool + ConcludeDragOperation(sender DraggingInfoObject) + HasConcludeDragOperation() bool // optional DraggingUpdated(sender DraggingInfoObject) DragOperation @@ -45,6 +37,14 @@ type PDraggingDestination interface { // optional DraggingEnded(sender DraggingInfoObject) HasDraggingEnded() bool + + // optional + UpdateDraggingItemsForDrag(sender DraggingInfoObject) + HasUpdateDraggingItemsForDrag() bool + + // optional + DraggingExited(sender DraggingInfoObject) + HasDraggingExited() bool } // ensure impl type implements protocol interface @@ -55,23 +55,11 @@ type DraggingDestinationObject struct { objc.Object } -func (d_ DraggingDestinationObject) HasDraggingExited() bool { - return d_.RespondsToSelector(objc.Sel("draggingExited:")) -} - -// Invoked when the dragged image exits the destination’s bounds rectangle (in the case of a view object) or its frame rectangle (in the case of a window object). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416056-draggingexited?language=objc -func (d_ DraggingDestinationObject) DraggingExited(sender DraggingInfoObject) { - po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) - objc.Call[objc.Void](d_, objc.Sel("draggingExited:"), po0) -} - func (d_ DraggingDestinationObject) HasWantsPeriodicDraggingUpdates() bool { return d_.RespondsToSelector(objc.Sel("wantsPeriodicDraggingUpdates")) } -// Asks the destination object whether it wants to receive periodic [appkit/nsdraggingdestination/draggingupdated] messages. [Full Topic] +// Asks the destination object whether it wants to receive periodic draggingUpdated: messages. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416049-wantsperiodicdraggingupdates?language=objc func (d_ DraggingDestinationObject) WantsPeriodicDraggingUpdates() bool { @@ -79,16 +67,17 @@ func (d_ DraggingDestinationObject) WantsPeriodicDraggingUpdates() bool { return rv } -func (d_ DraggingDestinationObject) HasConcludeDragOperation() bool { - return d_.RespondsToSelector(objc.Sel("concludeDragOperation:")) +func (d_ DraggingDestinationObject) HasPrepareForDragOperation() bool { + return d_.RespondsToSelector(objc.Sel("prepareForDragOperation:")) } -// Invoked when the dragging operation is complete, signaling the receiver to perform any necessary clean-up. [Full Topic] +// Invoked when the image is released, allowing the receiver to agree to or refuse drag operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416010-concludedragoperation?language=objc -func (d_ DraggingDestinationObject) ConcludeDragOperation(sender DraggingInfoObject) { +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416066-preparefordragoperation?language=objc +func (d_ DraggingDestinationObject) PrepareForDragOperation(sender DraggingInfoObject) bool { po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) - objc.Call[objc.Void](d_, objc.Sel("concludeDragOperation:"), po0) + rv := objc.Call[bool](d_, objc.Sel("prepareForDragOperation:"), po0) + return rv } func (d_ DraggingDestinationObject) HasDraggingEntered() bool { @@ -117,29 +106,16 @@ func (d_ DraggingDestinationObject) PerformDragOperation(sender DraggingInfoObje return rv } -func (d_ DraggingDestinationObject) HasUpdateDraggingItemsForDrag() bool { - return d_.RespondsToSelector(objc.Sel("updateDraggingItemsForDrag:")) -} - -// Invoked when the dragging images should be changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416050-updatedraggingitemsfordrag?language=objc -func (d_ DraggingDestinationObject) UpdateDraggingItemsForDrag(sender DraggingInfoObject) { - po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) - objc.Call[objc.Void](d_, objc.Sel("updateDraggingItemsForDrag:"), po0) -} - -func (d_ DraggingDestinationObject) HasPrepareForDragOperation() bool { - return d_.RespondsToSelector(objc.Sel("prepareForDragOperation:")) +func (d_ DraggingDestinationObject) HasConcludeDragOperation() bool { + return d_.RespondsToSelector(objc.Sel("concludeDragOperation:")) } -// Invoked when the image is released, allowing the receiver to agree to or refuse drag operation. [Full Topic] +// Invoked when the dragging operation is complete, signaling the receiver to perform any necessary clean-up. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416066-preparefordragoperation?language=objc -func (d_ DraggingDestinationObject) PrepareForDragOperation(sender DraggingInfoObject) bool { +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416010-concludedragoperation?language=objc +func (d_ DraggingDestinationObject) ConcludeDragOperation(sender DraggingInfoObject) { po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) - rv := objc.Call[bool](d_, objc.Sel("prepareForDragOperation:"), po0) - return rv + objc.Call[objc.Void](d_, objc.Sel("concludeDragOperation:"), po0) } func (d_ DraggingDestinationObject) HasDraggingUpdated() bool { @@ -166,3 +142,27 @@ func (d_ DraggingDestinationObject) DraggingEnded(sender DraggingInfoObject) { po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) objc.Call[objc.Void](d_, objc.Sel("draggingEnded:"), po0) } + +func (d_ DraggingDestinationObject) HasUpdateDraggingItemsForDrag() bool { + return d_.RespondsToSelector(objc.Sel("updateDraggingItemsForDrag:")) +} + +// Invoked when the dragging images should be changed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416050-updatedraggingitemsfordrag?language=objc +func (d_ DraggingDestinationObject) UpdateDraggingItemsForDrag(sender DraggingInfoObject) { + po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) + objc.Call[objc.Void](d_, objc.Sel("updateDraggingItemsForDrag:"), po0) +} + +func (d_ DraggingDestinationObject) HasDraggingExited() bool { + return d_.RespondsToSelector(objc.Sel("draggingExited:")) +} + +// Invoked when the dragged image exits the destination’s bounds rectangle (in the case of a view object) or its frame rectangle (in the case of a window object). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416056-draggingexited?language=objc +func (d_ DraggingDestinationObject) DraggingExited(sender DraggingInfoObject) { + po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) + objc.Call[objc.Void](d_, objc.Sel("draggingExited:"), po0) +} diff --git a/macos/appkit/dragging_info_protocol.gen.go b/macos/appkit/dragging_info_protocol.gen.go index 5e714d54..b6ce17a5 100644 --- a/macos/appkit/dragging_info_protocol.gen.go +++ b/macos/appkit/dragging_info_protocol.gen.go @@ -15,45 +15,33 @@ type PDraggingInfo interface { EnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock(enumOpts DraggingItemEnumerationOptions, view View, classArray []objc.Class, searchOptions map[PasteboardReadingOptionKey]objc.Object, block func(draggingItem DraggingItem, idx int, stop *bool)) HasEnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock() bool - // optional - SlideDraggedImageTo(screenPoint foundation.Point) - HasSlideDraggedImageTo() bool - // optional ResetSpringLoading() HasResetSpringLoading() bool // optional - SetNumberOfValidItemsForDrop(value int) - HasSetNumberOfValidItemsForDrop() bool - - // optional - NumberOfValidItemsForDrop() int - HasNumberOfValidItemsForDrop() bool + SlideDraggedImageTo(screenPoint foundation.Point) + HasSlideDraggedImageTo() bool // optional DraggingDestinationWindow() Window HasDraggingDestinationWindow() bool // optional - SetAnimatesToDestination(value bool) - HasSetAnimatesToDestination() bool - - // optional - AnimatesToDestination() bool - HasAnimatesToDestination() bool + DraggingPasteboard() Pasteboard + HasDraggingPasteboard() bool // optional DraggingSourceOperationMask() DragOperation HasDraggingSourceOperationMask() bool // optional - DraggingSource() objc.Object - HasDraggingSource() bool + SetNumberOfValidItemsForDrop(value int) + HasSetNumberOfValidItemsForDrop() bool // optional - DraggingLocation() foundation.Point - HasDraggingLocation() bool + NumberOfValidItemsForDrop() int + HasNumberOfValidItemsForDrop() bool // optional SetDraggingFormation(value DraggingFormation) @@ -68,16 +56,28 @@ type PDraggingInfo interface { HasSpringLoadingHighlight() bool // optional - DraggingSequenceNumber() int - HasDraggingSequenceNumber() bool + DraggedImageLocation() foundation.Point + HasDraggedImageLocation() bool // optional - DraggingPasteboard() Pasteboard - HasDraggingPasteboard() bool + DraggingLocation() foundation.Point + HasDraggingLocation() bool // optional - DraggedImageLocation() foundation.Point - HasDraggedImageLocation() bool + DraggingSource() objc.Object + HasDraggingSource() bool + + // optional + SetAnimatesToDestination(value bool) + HasSetAnimatesToDestination() bool + + // optional + AnimatesToDestination() bool + HasAnimatesToDestination() bool + + // optional + DraggingSequenceNumber() int + HasDraggingSequenceNumber() bool } // ensure impl type implements protocol interface @@ -99,17 +99,6 @@ func (d_ DraggingInfoObject) EnumerateDraggingItemsWithOptionsForViewClassesSear objc.Call[objc.Void](d_, objc.Sel("enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:"), enumOpts, view, classArray, searchOptions, block) } -func (d_ DraggingInfoObject) HasSlideDraggedImageTo() bool { - return d_.RespondsToSelector(objc.Sel("slideDraggedImageTo:")) -} - -// Slides the image to a specified location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416045-slidedraggedimageto?language=objc -func (d_ DraggingInfoObject) SlideDraggedImageTo(screenPoint foundation.Point) { - objc.Call[objc.Void](d_, objc.Sel("slideDraggedImageTo:"), screenPoint) -} - func (d_ DraggingInfoObject) HasResetSpringLoading() bool { return d_.RespondsToSelector(objc.Sel("resetSpringLoading")) } @@ -121,27 +110,15 @@ func (d_ DraggingInfoObject) ResetSpringLoading() { objc.Call[objc.Void](d_, objc.Sel("resetSpringLoading")) } -func (d_ DraggingInfoObject) HasSetNumberOfValidItemsForDrop() bool { - return d_.RespondsToSelector(objc.Sel("setNumberOfValidItemsForDrop:")) -} - -// The number of valid items for a drop operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416033-numberofvaliditemsfordrop?language=objc -func (d_ DraggingInfoObject) SetNumberOfValidItemsForDrop(value int) { - objc.Call[objc.Void](d_, objc.Sel("setNumberOfValidItemsForDrop:"), value) -} - -func (d_ DraggingInfoObject) HasNumberOfValidItemsForDrop() bool { - return d_.RespondsToSelector(objc.Sel("numberOfValidItemsForDrop")) +func (d_ DraggingInfoObject) HasSlideDraggedImageTo() bool { + return d_.RespondsToSelector(objc.Sel("slideDraggedImageTo:")) } -// The number of valid items for a drop operation. [Full Topic] +// Slides the image to a specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416033-numberofvaliditemsfordrop?language=objc -func (d_ DraggingInfoObject) NumberOfValidItemsForDrop() int { - rv := objc.Call[int](d_, objc.Sel("numberOfValidItemsForDrop")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416045-slidedraggedimageto?language=objc +func (d_ DraggingInfoObject) SlideDraggedImageTo(screenPoint foundation.Point) { + objc.Call[objc.Void](d_, objc.Sel("slideDraggedImageTo:"), screenPoint) } func (d_ DraggingInfoObject) HasDraggingDestinationWindow() bool { @@ -156,26 +133,15 @@ func (d_ DraggingInfoObject) DraggingDestinationWindow() Window { return rv } -func (d_ DraggingInfoObject) HasSetAnimatesToDestination() bool { - return d_.RespondsToSelector(objc.Sel("setAnimatesToDestination:")) -} - -// A Boolean value that indicates whether the dragging formation animates while the drag is over the destination. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416098-animatestodestination?language=objc -func (d_ DraggingInfoObject) SetAnimatesToDestination(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setAnimatesToDestination:"), value) -} - -func (d_ DraggingInfoObject) HasAnimatesToDestination() bool { - return d_.RespondsToSelector(objc.Sel("animatesToDestination")) +func (d_ DraggingInfoObject) HasDraggingPasteboard() bool { + return d_.RespondsToSelector(objc.Sel("draggingPasteboard")) } -// A Boolean value that indicates whether the dragging formation animates while the drag is over the destination. [Full Topic] +// The pasteboard object that holds the dragged data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416098-animatestodestination?language=objc -func (d_ DraggingInfoObject) AnimatesToDestination() bool { - rv := objc.Call[bool](d_, objc.Sel("animatesToDestination")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416092-draggingpasteboard?language=objc +func (d_ DraggingInfoObject) DraggingPasteboard() Pasteboard { + rv := objc.Call[Pasteboard](d_, objc.Sel("draggingPasteboard")) return rv } @@ -191,27 +157,26 @@ func (d_ DraggingInfoObject) DraggingSourceOperationMask() DragOperation { return rv } -func (d_ DraggingInfoObject) HasDraggingSource() bool { - return d_.RespondsToSelector(objc.Sel("draggingSource")) +func (d_ DraggingInfoObject) HasSetNumberOfValidItemsForDrop() bool { + return d_.RespondsToSelector(objc.Sel("setNumberOfValidItemsForDrop:")) } -// The source, or owner, of the dragged data. [Full Topic] +// The number of valid items for a drop operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416068-draggingsource?language=objc -func (d_ DraggingInfoObject) DraggingSource() objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("draggingSource")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416033-numberofvaliditemsfordrop?language=objc +func (d_ DraggingInfoObject) SetNumberOfValidItemsForDrop(value int) { + objc.Call[objc.Void](d_, objc.Sel("setNumberOfValidItemsForDrop:"), value) } -func (d_ DraggingInfoObject) HasDraggingLocation() bool { - return d_.RespondsToSelector(objc.Sel("draggingLocation")) +func (d_ DraggingInfoObject) HasNumberOfValidItemsForDrop() bool { + return d_.RespondsToSelector(objc.Sel("numberOfValidItemsForDrop")) } -// The current location of the mouse pointer in the base coordinate system of the destination object’s window. [Full Topic] +// The number of valid items for a drop operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416070-dragginglocation?language=objc -func (d_ DraggingInfoObject) DraggingLocation() foundation.Point { - rv := objc.Call[foundation.Point](d_, objc.Sel("draggingLocation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416033-numberofvaliditemsfordrop?language=objc +func (d_ DraggingInfoObject) NumberOfValidItemsForDrop() int { + rv := objc.Call[int](d_, objc.Sel("numberOfValidItemsForDrop")) return rv } @@ -250,38 +215,73 @@ func (d_ DraggingInfoObject) SpringLoadingHighlight() SpringLoadingHighlight { return rv } -func (d_ DraggingInfoObject) HasDraggingSequenceNumber() bool { - return d_.RespondsToSelector(objc.Sel("draggingSequenceNumber")) +func (d_ DraggingInfoObject) HasDraggedImageLocation() bool { + return d_.RespondsToSelector(objc.Sel("draggedImageLocation")) } -// A number that uniquely identifies the dragging session. [Full Topic] +// The current location of the dragged image’s origin, in the base coordinate system of the destination object’s window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416039-draggingsequencenumber?language=objc -func (d_ DraggingInfoObject) DraggingSequenceNumber() int { - rv := objc.Call[int](d_, objc.Sel("draggingSequenceNumber")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1415990-draggedimagelocation?language=objc +func (d_ DraggingInfoObject) DraggedImageLocation() foundation.Point { + rv := objc.Call[foundation.Point](d_, objc.Sel("draggedImageLocation")) return rv } -func (d_ DraggingInfoObject) HasDraggingPasteboard() bool { - return d_.RespondsToSelector(objc.Sel("draggingPasteboard")) +func (d_ DraggingInfoObject) HasDraggingLocation() bool { + return d_.RespondsToSelector(objc.Sel("draggingLocation")) } -// The pasteboard object that holds the dragged data. [Full Topic] +// The current location of the mouse pointer in the base coordinate system of the destination object’s window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416092-draggingpasteboard?language=objc -func (d_ DraggingInfoObject) DraggingPasteboard() Pasteboard { - rv := objc.Call[Pasteboard](d_, objc.Sel("draggingPasteboard")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416070-dragginglocation?language=objc +func (d_ DraggingInfoObject) DraggingLocation() foundation.Point { + rv := objc.Call[foundation.Point](d_, objc.Sel("draggingLocation")) return rv } -func (d_ DraggingInfoObject) HasDraggedImageLocation() bool { - return d_.RespondsToSelector(objc.Sel("draggedImageLocation")) +func (d_ DraggingInfoObject) HasDraggingSource() bool { + return d_.RespondsToSelector(objc.Sel("draggingSource")) } -// The current location of the dragged image’s origin, in the base coordinate system of the destination object’s window. [Full Topic] +// The source, or owner, of the dragged data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1415990-draggedimagelocation?language=objc -func (d_ DraggingInfoObject) DraggedImageLocation() foundation.Point { - rv := objc.Call[foundation.Point](d_, objc.Sel("draggedImageLocation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416068-draggingsource?language=objc +func (d_ DraggingInfoObject) DraggingSource() objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("draggingSource")) + return rv +} + +func (d_ DraggingInfoObject) HasSetAnimatesToDestination() bool { + return d_.RespondsToSelector(objc.Sel("setAnimatesToDestination:")) +} + +// A Boolean value that indicates whether the dragging formation animates while the drag is over the destination. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416098-animatestodestination?language=objc +func (d_ DraggingInfoObject) SetAnimatesToDestination(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setAnimatesToDestination:"), value) +} + +func (d_ DraggingInfoObject) HasAnimatesToDestination() bool { + return d_.RespondsToSelector(objc.Sel("animatesToDestination")) +} + +// A Boolean value that indicates whether the dragging formation animates while the drag is over the destination. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416098-animatestodestination?language=objc +func (d_ DraggingInfoObject) AnimatesToDestination() bool { + rv := objc.Call[bool](d_, objc.Sel("animatesToDestination")) + return rv +} + +func (d_ DraggingInfoObject) HasDraggingSequenceNumber() bool { + return d_.RespondsToSelector(objc.Sel("draggingSequenceNumber")) +} + +// A number that uniquely identifies the dragging session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416039-draggingsequencenumber?language=objc +func (d_ DraggingInfoObject) DraggingSequenceNumber() int { + rv := objc.Call[int](d_, objc.Sel("draggingSequenceNumber")) return rv } diff --git a/macos/appkit/dragging_item.gen.go b/macos/appkit/dragging_item.gen.go index f5ce937a..33c62193 100644 --- a/macos/appkit/dragging_item.gen.go +++ b/macos/appkit/dragging_item.gen.go @@ -20,10 +20,10 @@ type _DraggingItemClass struct { type IDraggingItem interface { objc.IObject SetDraggingFrameContents(frame foundation.Rect, contents objc.IObject) + Item() objc.Object DraggingFrame() foundation.Rect SetDraggingFrame(value foundation.Rect) ImageComponents() []DraggingImageComponent - Item() objc.Object ImageComponentsProvider() func() []DraggingImageComponent SetImageComponentsProvider(value func() []DraggingImageComponent) } @@ -83,6 +83,14 @@ func (d_ DraggingItem) SetDraggingFrameContents(frame foundation.Rect, contents objc.Call[objc.Void](d_, objc.Sel("setDraggingFrame:contents:"), frame, contents) } +// The pasteboard reader or writer object dependent on the context where you use the dragging item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingitem/1533258-item?language=objc +func (d_ DraggingItem) Item() objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("item")) + return rv +} + // The frame of the dragging item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingitem/1528559-draggingframe?language=objc @@ -106,14 +114,6 @@ func (d_ DraggingItem) ImageComponents() []DraggingImageComponent { return rv } -// The pasteboard reader or writer object dependent on the context where you use the dragging item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingitem/1533258-item?language=objc -func (d_ DraggingItem) Item() objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("item")) - return rv -} - // An array of blocks that provide the dragging image components. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingitem/1535607-imagecomponentsprovider?language=objc diff --git a/macos/appkit/dragging_session.gen.go b/macos/appkit/dragging_session.gen.go index ce2ca7a0..5ded1115 100644 --- a/macos/appkit/dragging_session.gen.go +++ b/macos/appkit/dragging_session.gen.go @@ -21,14 +21,14 @@ type IDraggingSession interface { objc.IObject EnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock(enumOpts DraggingItemEnumerationOptions, view IView, classArray []objc.IClass, searchOptions map[PasteboardReadingOptionKey]objc.IObject, block func(draggingItem DraggingItem, idx int, stop *bool)) DraggingPasteboard() Pasteboard - DraggingLocation() foundation.Point DraggingFormation() DraggingFormation SetDraggingFormation(value DraggingFormation) - DraggingSequenceNumber() int - AnimatesToStartingPositionsOnCancelOrFail() bool - SetAnimatesToStartingPositionsOnCancelOrFail(value bool) DraggingLeaderIndex() int SetDraggingLeaderIndex(value int) + AnimatesToStartingPositionsOnCancelOrFail() bool + SetAnimatesToStartingPositionsOnCancelOrFail(value bool) + DraggingLocation() foundation.Point + DraggingSequenceNumber() int } // The encapsulation of a drag-and-drop action that supports modification of the drag while in progress. [Full Topic] @@ -79,14 +79,6 @@ func (d_ DraggingSession) DraggingPasteboard() Pasteboard { return rv } -// The current cursor location of the drag in screen coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsession/1529395-dragginglocation?language=objc -func (d_ DraggingSession) DraggingLocation() foundation.Point { - rv := objc.Call[foundation.Point](d_, objc.Sel("draggingLocation")) - return rv -} - // Controls the dragging formation when the drag is not over the source or a valid destination. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsession/1524544-draggingformation?language=objc @@ -102,14 +94,21 @@ func (d_ DraggingSession) SetDraggingFormation(value DraggingFormation) { objc.Call[objc.Void](d_, objc.Sel("setDraggingFormation:"), value) } -// Returns a number that uniquely identifies the dragging session. [Full Topic] +// The index of the dragging item under the cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsession/1533229-draggingsequencenumber?language=objc -func (d_ DraggingSession) DraggingSequenceNumber() int { - rv := objc.Call[int](d_, objc.Sel("draggingSequenceNumber")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsession/1533729-draggingleaderindex?language=objc +func (d_ DraggingSession) DraggingLeaderIndex() int { + rv := objc.Call[int](d_, objc.Sel("draggingLeaderIndex")) return rv } +// The index of the dragging item under the cursor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsession/1533729-draggingleaderindex?language=objc +func (d_ DraggingSession) SetDraggingLeaderIndex(value int) { + objc.Call[objc.Void](d_, objc.Sel("setDraggingLeaderIndex:"), value) +} + // Controls whether the dragging image animates back to its starting point on a cancelled or failed drag. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsession/1531277-animatestostartingpositionsoncan?language=objc @@ -125,17 +124,18 @@ func (d_ DraggingSession) SetAnimatesToStartingPositionsOnCancelOrFail(value boo objc.Call[objc.Void](d_, objc.Sel("setAnimatesToStartingPositionsOnCancelOrFail:"), value) } -// The index of the dragging item under the cursor. [Full Topic] +// The current cursor location of the drag in screen coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsession/1533729-draggingleaderindex?language=objc -func (d_ DraggingSession) DraggingLeaderIndex() int { - rv := objc.Call[int](d_, objc.Sel("draggingLeaderIndex")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsession/1529395-dragginglocation?language=objc +func (d_ DraggingSession) DraggingLocation() foundation.Point { + rv := objc.Call[foundation.Point](d_, objc.Sel("draggingLocation")) return rv } -// The index of the dragging item under the cursor. [Full Topic] +// Returns a number that uniquely identifies the dragging session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsession/1533729-draggingleaderindex?language=objc -func (d_ DraggingSession) SetDraggingLeaderIndex(value int) { - objc.Call[objc.Void](d_, objc.Sel("setDraggingLeaderIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsession/1533229-draggingsequencenumber?language=objc +func (d_ DraggingSession) DraggingSequenceNumber() int { + rv := objc.Call[int](d_, objc.Sel("draggingSequenceNumber")) + return rv } diff --git a/macos/appkit/dragging_source_protocol.gen.go b/macos/appkit/dragging_source_protocol.gen.go index 15884b44..ad93e50b 100644 --- a/macos/appkit/dragging_source_protocol.gen.go +++ b/macos/appkit/dragging_source_protocol.gen.go @@ -11,22 +11,10 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsource?language=objc type PDraggingSource interface { - // optional - DraggingSessionEndedAtPointOperation(session DraggingSession, screenPoint foundation.Point, operation DragOperation) - HasDraggingSessionEndedAtPointOperation() bool - - // optional - DraggingSessionWillBeginAtPoint(session DraggingSession, screenPoint foundation.Point) - HasDraggingSessionWillBeginAtPoint() bool - // optional DraggingSessionMovedToPoint(session DraggingSession, screenPoint foundation.Point) HasDraggingSessionMovedToPoint() bool - // optional - DraggingSessionSourceOperationMaskForDraggingContext(session DraggingSession, context DraggingContext) DragOperation - HasDraggingSessionSourceOperationMaskForDraggingContext() bool - // optional IgnoreModifierKeysForDraggingSession(session DraggingSession) bool HasIgnoreModifierKeysForDraggingSession() bool @@ -40,28 +28,6 @@ type DraggingSourceObject struct { objc.Object } -func (d_ DraggingSourceObject) HasDraggingSessionEndedAtPointOperation() bool { - return d_.RespondsToSelector(objc.Sel("draggingSession:endedAtPoint:operation:")) -} - -// Invoked when the dragging session has completed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsource/1416017-draggingsession?language=objc -func (d_ DraggingSourceObject) DraggingSessionEndedAtPointOperation(session DraggingSession, screenPoint foundation.Point, operation DragOperation) { - objc.Call[objc.Void](d_, objc.Sel("draggingSession:endedAtPoint:operation:"), session, screenPoint, operation) -} - -func (d_ DraggingSourceObject) HasDraggingSessionWillBeginAtPoint() bool { - return d_.RespondsToSelector(objc.Sel("draggingSession:willBeginAtPoint:")) -} - -// Invoked when the drag will begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsource/1415960-draggingsession?language=objc -func (d_ DraggingSourceObject) DraggingSessionWillBeginAtPoint(session DraggingSession, screenPoint foundation.Point) { - objc.Call[objc.Void](d_, objc.Sel("draggingSession:willBeginAtPoint:"), session, screenPoint) -} - func (d_ DraggingSourceObject) HasDraggingSessionMovedToPoint() bool { return d_.RespondsToSelector(objc.Sel("draggingSession:movedToPoint:")) } @@ -73,18 +39,6 @@ func (d_ DraggingSourceObject) DraggingSessionMovedToPoint(session DraggingSessi objc.Call[objc.Void](d_, objc.Sel("draggingSession:movedToPoint:"), session, screenPoint) } -func (d_ DraggingSourceObject) HasDraggingSessionSourceOperationMaskForDraggingContext() bool { - return d_.RespondsToSelector(objc.Sel("draggingSession:sourceOperationMaskForDraggingContext:")) -} - -// Declares the types of operations the source allows to be performed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsource/1416000-draggingsession?language=objc -func (d_ DraggingSourceObject) DraggingSessionSourceOperationMaskForDraggingContext(session DraggingSession, context DraggingContext) DragOperation { - rv := objc.Call[DragOperation](d_, objc.Sel("draggingSession:sourceOperationMaskForDraggingContext:"), session, context) - return rv -} - func (d_ DraggingSourceObject) HasIgnoreModifierKeysForDraggingSession() bool { return d_.RespondsToSelector(objc.Sel("ignoreModifierKeysForDraggingSession:")) } diff --git a/macos/appkit/editor_protocol.gen.go b/macos/appkit/editor_protocol.gen.go index e11122b5..39ab09e6 100644 --- a/macos/appkit/editor_protocol.gen.go +++ b/macos/appkit/editor_protocol.gen.go @@ -13,16 +13,16 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nseditor?language=objc type PEditor interface { // optional - CommitEditingAndReturnError(error unsafe.Pointer) bool - HasCommitEditingAndReturnError() bool + CommitEditing() bool + HasCommitEditing() bool // optional CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.Object, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) HasCommitEditingWithDelegateDidCommitSelectorContextInfo() bool // optional - CommitEditing() bool - HasCommitEditing() bool + CommitEditingAndReturnError(error unsafe.Pointer) bool + HasCommitEditingAndReturnError() bool // optional DiscardEditing() @@ -37,15 +37,15 @@ type EditorObject struct { objc.Object } -func (e_ EditorObject) HasCommitEditingAndReturnError() bool { - return e_.RespondsToSelector(objc.Sel("commitEditingAndReturnError:")) +func (e_ EditorObject) HasCommitEditing() bool { + return e_.RespondsToSelector(objc.Sel("commitEditing")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nseditor/3005184-commiteditingandreturnerror?language=objc -func (e_ EditorObject) CommitEditingAndReturnError(error unsafe.Pointer) bool { - rv := objc.Call[bool](e_, objc.Sel("commitEditingAndReturnError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nseditor/3005183-commitediting?language=objc +func (e_ EditorObject) CommitEditing() bool { + rv := objc.Call[bool](e_, objc.Sel("commitEditing")) return rv } @@ -60,15 +60,15 @@ func (e_ EditorObject) CommitEditingWithDelegateDidCommitSelectorContextInfo(del objc.Call[objc.Void](e_, objc.Sel("commitEditingWithDelegate:didCommitSelector:contextInfo:"), delegate, didCommitSelector, contextInfo) } -func (e_ EditorObject) HasCommitEditing() bool { - return e_.RespondsToSelector(objc.Sel("commitEditing")) +func (e_ EditorObject) HasCommitEditingAndReturnError() bool { + return e_.RespondsToSelector(objc.Sel("commitEditingAndReturnError:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nseditor/3005183-commitediting?language=objc -func (e_ EditorObject) CommitEditing() bool { - rv := objc.Call[bool](e_, objc.Sel("commitEditing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nseditor/3005184-commiteditingandreturnerror?language=objc +func (e_ EditorObject) CommitEditingAndReturnError(error unsafe.Pointer) bool { + rv := objc.Call[bool](e_, objc.Sel("commitEditingAndReturnError:"), error) return rv } diff --git a/macos/appkit/editor_registration_protocol.gen.go b/macos/appkit/editor_registration_protocol.gen.go index 12545b10..dcbdcc7b 100644 --- a/macos/appkit/editor_registration_protocol.gen.go +++ b/macos/appkit/editor_registration_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nseditorregistration?language=objc type PEditorRegistration interface { - // optional - ObjectDidEndEditing(editor EditorObject) - HasObjectDidEndEditing() bool - // optional ObjectDidBeginEditing(editor EditorObject) HasObjectDidBeginEditing() bool + + // optional + ObjectDidEndEditing(editor EditorObject) + HasObjectDidEndEditing() bool } // ensure impl type implements protocol interface @@ -27,26 +27,26 @@ type EditorRegistrationObject struct { objc.Object } -func (e_ EditorRegistrationObject) HasObjectDidEndEditing() bool { - return e_.RespondsToSelector(objc.Sel("objectDidEndEditing:")) +func (e_ EditorRegistrationObject) HasObjectDidBeginEditing() bool { + return e_.RespondsToSelector(objc.Sel("objectDidBeginEditing:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nseditorregistration/3005189-objectdidendediting?language=objc -func (e_ EditorRegistrationObject) ObjectDidEndEditing(editor EditorObject) { +// [Full Topic]: https://developer.apple.com/documentation/appkit/nseditorregistration/3005188-objectdidbeginediting?language=objc +func (e_ EditorRegistrationObject) ObjectDidBeginEditing(editor EditorObject) { po0 := objc.WrapAsProtocol("NSEditor", editor) - objc.Call[objc.Void](e_, objc.Sel("objectDidEndEditing:"), po0) + objc.Call[objc.Void](e_, objc.Sel("objectDidBeginEditing:"), po0) } -func (e_ EditorRegistrationObject) HasObjectDidBeginEditing() bool { - return e_.RespondsToSelector(objc.Sel("objectDidBeginEditing:")) +func (e_ EditorRegistrationObject) HasObjectDidEndEditing() bool { + return e_.RespondsToSelector(objc.Sel("objectDidEndEditing:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nseditorregistration/3005188-objectdidbeginediting?language=objc -func (e_ EditorRegistrationObject) ObjectDidBeginEditing(editor EditorObject) { +// [Full Topic]: https://developer.apple.com/documentation/appkit/nseditorregistration/3005189-objectdidendediting?language=objc +func (e_ EditorRegistrationObject) ObjectDidEndEditing(editor EditorObject) { po0 := objc.WrapAsProtocol("NSEditor", editor) - objc.Call[objc.Void](e_, objc.Sel("objectDidBeginEditing:"), po0) + objc.Call[objc.Void](e_, objc.Sel("objectDidEndEditing:"), po0) } diff --git a/macos/appkit/enumtypes.gen.go b/macos/appkit/enumtypes.gen.go index c1fb53a1..5100ad76 100644 --- a/macos/appkit/enumtypes.gen.go +++ b/macos/appkit/enumtypes.gen.go @@ -531,7 +531,7 @@ const ( AccessibilityUnitsUnknown AccessibilityUnits = 0 ) -// The NSAlert class defines the alert styles used by the [appkit/nsalert/alertstyle] property. [Full Topic] +// The NSAlert class defines the alert styles used by the alertStyle property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsalertstyle?language=objc type AlertStyle uint @@ -687,7 +687,7 @@ const ( AppearanceNameVibrantLight AppearanceName = "NSAppearanceNameVibrantLight" ) -// The following flags are for [appkit/nsrunningapplication/activatewithoptions]. [Full Topic] +// The following flags are for activateWithOptions:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationactivationoptions?language=objc type ApplicationActivationOptions uint @@ -697,7 +697,7 @@ const ( ApplicationActivateIgnoringOtherApps ApplicationActivationOptions = 2 ) -// Activation policies (used by [appkit/nsrunningapplication/activationpolicy]) that control whether and how an app may be activated. [Full Topic] +// Activation policies (used by activationPolicy) that control whether and how an app may be activated. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationactivationpolicy?language=objc type ApplicationActivationPolicy int @@ -896,7 +896,7 @@ const ( BackingStoreRetained BackingStoreType = 0 ) -// Bezel styles used by the [appkit/nsbuttoncell/bezelstyle] property. [Full Topic] +// Bezel styles used by the bezelStyle property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezelstyle?language=objc type BezelStyle uint @@ -1047,7 +1047,7 @@ const ( WidthBinding BindingName = "width" ) -// Values that are used as keys in the options dictionary passed to the [objectivec/nsobject/bind] method. [Full Topic] +// Values that are used as keys in the options dictionary passed to the bind:toObject:withKeyPath:options: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbindingoption?language=objc type BindingOption string @@ -1183,7 +1183,7 @@ const ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercolumnsautosavename?language=objc type BrowserColumnsAutosaveName string -// The type used to specify the drop type of a drag-and-drop operation. See [appkit/nsbrowserdelegate/browser] for more information. [Full Topic] +// The type used to specify the drop type of a drag-and-drop operation. See browser:objectValueForItem: for more information. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdropoperation?language=objc type BrowserDropOperation uint @@ -1193,7 +1193,7 @@ const ( BrowserDropOn BrowserDropOperation = 0 ) -// Button types that you can specify using [appkit/nsbuttoncell/setbuttontype]. [Full Topic] +// Button types that you can specify using setButtonType:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbuttontype?language=objc type ButtonType uint @@ -1248,7 +1248,7 @@ const ( PushInCell CellAttribute = 2 ) -// Constants used by the [appkit/nscell/hittestforevent] method to determine the effect of an event. [Full Topic] +// Constants used by the hitTestForEvent:inRect:ofView: method to determine the effect of an event. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscellhitresult?language=objc type CellHitResult uint @@ -1377,7 +1377,7 @@ const ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdecorationelementkind?language=objc type CollectionViewDecorationElementKind string -// These constants specify if acceptance of a drop should be at the item it is dropped on or before the item. These constants are used by the [appkit/nscollectionviewdelegate/collectionview] and [appkit/nscollectionviewdelegate/collectionview] methods in NSCollectionViewDelegate [Full Topic] +// These constants specify if acceptance of a drop should be at the item it is dropped on or before the item. These constants are used by the collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath: and collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath: methods in NSCollectionViewDelegate [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdropoperation?language=objc type CollectionViewDropOperation int @@ -1708,7 +1708,7 @@ const ( CorrectionIndicatorTypeReversion CorrectionIndicatorType = 1 ) -// The correction response passed to the[appkit/nsspellchecker/recordresponse] method. [Full Topic] +// The correction response passed to therecordResponse:toCorrection:forWord:language:inSpellDocumentWithTag: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscorrectionresponse?language=objc type CorrectionResponse int @@ -1851,7 +1851,6 @@ const ( type DragOperation uint const ( - DragOperationAll DragOperation = 15 DragOperationAll_Obsolete DragOperation = 15 DragOperationCopy DragOperation = 1 DragOperationDelete DragOperation = 32 @@ -2154,7 +2153,7 @@ const ( TabletProximity EventType = 24 ) -// These constants define the tags for [appkit/nstextview/performfindpanelaction]. [Full Topic] +// These constants define the tags for performFindPanelAction:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfindpanelaction?language=objc type FindPanelAction uint @@ -2242,7 +2241,7 @@ const ( FontCollectionWasShown FontCollectionActionTypeKey = "NSFontCollectionWasShown" ) -// These constants are used by the [appkit/nsfontcollection/matchingdescriptorswithoptions] and [appkit/nsfontcollection/matchingdescriptorsforfamily] options dictionary parameters. [Full Topic] +// These constants are used by the matchingDescriptorsWithOptions: and matchingDescriptorsForFamily: options dictionary parameters. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollectionmatchingoptionkey?language=objc type FontCollectionMatchingOptionKey string @@ -2253,7 +2252,7 @@ const ( FontCollectionRemoveDuplicatesOption FontCollectionMatchingOptionKey = "NSCTFontCollectionRemoveDuplicatesOption" ) -// The constants represent the standard mutable collection names—these names are included in the list of [appkit/nsfontcollection/allfontcollectionnames]--they have special meaning to the Cocoa font system and should not be hidden or renamed. [Full Topic] +// The constants represent the standard mutable collection names—these names are included in the list of allFontCollectionNames--they have special meaning to the Cocoa font system and should not be hidden or renamed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollectionname?language=objc type FontCollectionName string @@ -2398,15 +2397,6 @@ const ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontfamilyclass?language=objc type FontFamilyClass uint32 -// Constant you use to access NSFontFamilyClass values in the upper four bits of NSFontSymbolicTraits. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1469940-nsfontfamilyclassmask?language=objc -type FontFamilyClassMask int - -const ( - KFontFamilyClassMask FontFamilyClassMask = 4026531840 -) - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanelmodemask?language=objc @@ -2559,7 +2549,7 @@ const ( GradientDrawsBeforeStartingLocation GradientDrawingOptions = 1 ) -// Specify the gradients used by the [appkit/nsbuttoncell/gradienttype] property. [Full Topic] +// Specify the gradients used by the gradientType property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradienttype?language=objc type GradientType uint @@ -2657,7 +2647,7 @@ type HelpBookName string // [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanagercontexthelpkey?language=objc type HelpManagerContextHelpKey string -// Constants used by [appkit/nsimagecell/imagealignment] that allow you to specify the location of the image in the frame. [Full Topic] +// Constants used by imageAlignment that allow you to specify the location of the image in the frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagealignment?language=objc type ImageAlignment uint @@ -2941,7 +2931,7 @@ const ( ImageSymbolScaleSmall ImageSymbolScale = 1 ) -// These constants are used in NSResponder’s [appkit/nsresponder/interfacestyle] method. [Full Topic] +// These constants are used in NSResponder’s interfaceStyle method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsinterfacestyle?language=objc type InterfaceStyle uint @@ -3058,7 +3048,7 @@ const ( // Constants that specify what happens when a line is too long for a container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslinebreakmode?language=objc -type LineBreakMode uint +type LineBreakMode int const ( LineBreakByCharWrapping LineBreakMode = 1 @@ -3157,7 +3147,7 @@ const ( MediaLibraryMovie MediaLibrary = 4 ) -// These constants are used as a bitmask for specifying a set of menu or menu item properties, and are contained by the [appkit/nsmenu/propertiestoupdate] property. [Full Topic] +// These constants are used as a bitmask for specifying a set of menu or menu item properties, and are contained by the propertiesToUpdate property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuproperties?language=objc type MenuProperties uint @@ -3467,7 +3457,7 @@ const ( UnknownPointingDevice PointingDeviceType = 0 ) -// These constants are defined for use with the [appkit/nspopupbuttoncell/arrowposition] property. [Full Topic] +// These constants are defined for use with the arrowPosition property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopuparrowposition?language=objc type PopUpArrowPosition uint @@ -3734,7 +3724,7 @@ const ( RemoteNotificationTypeSound RemoteNotificationType = 2 ) -// These constants specify the level of severity of a user attention request and are used by [appkit/nsapplication/canceluserattentionrequest] and [appkit/nsapplication/requestuserattention]. [Full Topic] +// These constants specify the level of severity of a user attention request and are used by cancelUserAttentionRequest: and requestUserAttention:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrequestuserattentiontype?language=objc type RequestUserAttentionType uint @@ -3756,7 +3746,7 @@ const ( RuleEditorNestingModeSingle RuleEditorNestingMode = 0 ) -// These strings are used as keys to the dictionary returned from the delegate’s [appkit/nsruleeditordelegate/ruleeditor] optional method. To construct a valid predicate, the union of the dictionaries for each item in the row must contain the required parts. [Full Topic] +// These strings are used as keys to the dictionary returned from the delegate’s ruleEditor:numberOfChildrenForCriterion:withRowType: optional method. To construct a valid predicate, the union of the dictionaries for each item in the row must contain the required parts. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditorpredicatepartkey?language=objc type RuleEditorPredicatePartKey string @@ -3781,7 +3771,7 @@ const ( RuleEditorRowTypeSimple RuleEditorRowType = 0 ) -// These constants are defined to specify a ruler’s orientation and are used by [appkit/nsrulerview/orientation]. [Full Topic] +// These constants are defined to specify a ruler’s orientation and are used by orientation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerorientation?language=objc type RulerOrientation uint @@ -3818,7 +3808,7 @@ const ( SaveToOperation SaveOperationType = 2 ) -// These constants specify where the scroller’s buttons appear and are used by the [appkit/nsscroller/arrowsposition] property. [Full Topic] +// These constants specify where the scroller’s buttons appear and are used by the arrowsPosition property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollarrowposition?language=objc type ScrollArrowPosition uint @@ -3852,7 +3842,7 @@ const ( ScrollViewFindBarPositionBelowContent ScrollViewFindBarPosition = 2 ) -// These constants describe the two scroller buttons and are used by [appkit/nsscroller/drawarrow]. [Full Topic] +// These constants describe the two scroller buttons and are used by drawArrow:highlight:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollerarrow?language=objc type ScrollerArrow uint @@ -3937,7 +3927,7 @@ const ( SegmentDistributionFit SegmentDistribution = 0 ) -// The following constants specify the visual style used to display the segmented control. They are used by [appkit/nssegmentedcontrol/segmentstyle]. [Full Topic] +// The following constants specify the visual style used to display the segmented control. They are used by segmentStyle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentstyle?language=objc type SegmentStyle int @@ -3953,7 +3943,7 @@ const ( SegmentStyleTexturedSquare SegmentStyle = 4 ) -// The following constants specify the type of tracking behavior a segmented control exhibits. They are used by [appkit/nssegmentedcontrol/trackingmode]. [Full Topic] +// The following constants specify the type of tracking behavior a segmented control exhibits. They are used by trackingMode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentswitchtracking?language=objc type SegmentSwitchTracking uint @@ -3965,7 +3955,7 @@ const ( SegmentSwitchTrackingSelectOne SegmentSwitchTracking = 0 ) -// These constants specify the preferred direction of selection. They’re used by [appkit/nstextview/selectionaffinity] and [appkit/nstextview/setselectedrange]. [Full Topic] +// These constants specify the preferred direction of selection. They’re used by selectionAffinity and setSelectedRange:affinity:stillSelecting:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsselectionaffinity?language=objc type SelectionAffinity uint @@ -3986,7 +3976,7 @@ const ( SelectingPrevious SelectionDirection = 2 ) -// These constants specify how much the text view extends the selection when the user drags the mouse. They’re used by [appkit/nstextview/selectiongranularity], and [appkit/nstextview/selectionrangeforproposedrange]: [Full Topic] +// These constants specify how much the text view extends the selection when the user drags the mouse. They’re used by selectionGranularity, and selectionRangeForProposedRange:granularity:: [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsselectiongranularity?language=objc type SelectionGranularity uint @@ -4051,7 +4041,7 @@ const ( SliderAccessoryWidthWide SliderAccessoryWidth = 72.000000 ) -// The types of sliders, used by [appkit/nsslidercell/slidertype]. [Full Topic] +// The types of sliders, used by sliderType. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertype?language=objc type SliderType uint @@ -4073,7 +4063,7 @@ type SoundName string // [Full Topic]: https://developer.apple.com/documentation/appkit/nssoundplaybackdeviceidentifier?language=objc type SoundPlaybackDeviceIdentifier string -// These constants are used to indicate where speech should be stopped and paused. See [appkit/nsspeechsynthesizer/pausespeakingatboundary] and [appkit/nsspeechsynthesizer/stopspeakingatboundary]. [Full Topic] +// These constants are used to indicate where speech should be stopped and paused. See pauseSpeakingAtBoundary: and stopSpeakingAtBoundary:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechboundary?language=objc type SpeechBoundary uint @@ -4094,7 +4084,7 @@ const ( SpeechCommandSuffix SpeechCommandDelimiterKey = "Suffix" ) -// These constants identify key-value pairs used to add vocabulary to the dictionary using [appkit/nsspeechsynthesizer/addspeechdictionary]. [Full Topic] +// These constants identify key-value pairs used to add vocabulary to the dictionary using addSpeechDictionary:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechdictionarykey?language=objc type SpeechDictionaryKey string @@ -4146,7 +4136,7 @@ const ( SpeechPhonemeInfoSymbol SpeechPhonemeInfoKey = "Symbol" ) -// These constants are used with [appkit/nsspeechsynthesizer/setobject] and [appkit/nsspeechsynthesizer/objectforproperty] to get or set the characteristics of a synthesizer. [Full Topic] +// These constants are used with setObject:forProperty:error: and objectForProperty:error: to get or set the characteristics of a synthesizer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechpropertykey?language=objc type SpeechPropertyKey string @@ -4414,7 +4404,7 @@ const ( TabViewControllerTabStyleUnspecified TabViewControllerTabStyle = -1 ) -// These constants specify the tab view’s type as used by the [appkit/nstabview/tabviewtype] property. [Full Topic] +// These constants specify the tab view’s type as used by the tabViewType property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewtype?language=objc type TabViewType uint @@ -4470,7 +4460,7 @@ const ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewautosavename?language=objc type TableViewAutosaveName string -// The following constants specify the autoresizing styles. These constants are used by the [appkit/nstableview/columnautoresizingstyle] property. [Full Topic] +// The following constants specify the autoresizing styles. These constants are used by the columnAutoresizingStyle property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewcolumnautoresizingstyle?language=objc type TableViewColumnAutoresizingStyle uint @@ -4484,7 +4474,7 @@ const ( TableViewUniformColumnAutoresizingStyle TableViewColumnAutoresizingStyle = 1 ) -// These constants specify the drag styles displayed by the table view. They’re used by [appkit/nstableview/draggingdestinationfeedbackstyle]. [Full Topic] +// These constants specify the drag styles displayed by the table view. They’re used by draggingDestinationFeedbackStyle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdraggingdestinationfeedbackstyle?language=objc type TableViewDraggingDestinationFeedbackStyle int @@ -4506,7 +4496,7 @@ const ( TableViewDropOn TableViewDropOperation = 0 ) -// NSTableView defines these constants to specify grid styles. These constants are used by the [appkit/nstableview/gridstylemask] property. The mask can be either NSTableViewGridNone or it can contain either or both of the other options combined using the C bitwise OR operator. [Full Topic] +// NSTableView defines these constants to specify grid styles. These constants are used by the gridStyleMask property. The mask can be either [appkit/nstableviewgridlinestyle/nstableviewgridnone] or it can contain either or both of the other options combined using the C bitwise OR operator. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewgridlinestyle?language=objc type TableViewGridLineStyle uint @@ -4528,7 +4518,7 @@ const ( TableViewRowActionStyleRegular TableViewRowActionStyle = 0 ) -// The row size style constants define the size of the rows in the table view. They are used by the [appkit/nstableview/effectiverowsizestyle] and [appkit/nstableview/rowsizestyle] properties. You can also query the row size in the NSTableCellView class’ property [appkit/nstablecellview/rowsizestyle]. [Full Topic] +// The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle properties. You can also query the row size in the NSTableCellView class’ property rowSizeStyle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewrowsizestyle?language=objc type TableViewRowSizeStyle int @@ -4541,7 +4531,7 @@ const ( TableViewRowSizeStyleSmall TableViewRowSizeStyle = 1 ) -// The following constants specify the selection highlight styles. These constants are used by the [appkit/nstableview/selectionhighlightstyle] property. [Full Topic] +// The following constants specify the selection highlight styles. These constants are used by the selectionHighlightStyle property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewselectionhighlightstyle?language=objc type TableViewSelectionHighlightStyle int @@ -4581,7 +4571,7 @@ const ( TextAlignmentNatural TextAlignment = 4 ) -// The following constants specify values used by the methods [appkit/nstextblock/setvalue], [appkit/nstextblock/valuefordimension], and [appkit/nstextblock/valuetypefordimension] to specify text block dimensions. [Full Topic] +// The following constants specify values used by the methods setValue:type:forDimension:, valueForDimension:, and valueTypeForDimension: to specify text block dimensions. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblockdimension?language=objc type TextBlockDimension uint @@ -4595,7 +4585,7 @@ const ( TextBlockWidth TextBlockDimension = 0 ) -// The following constants specify values used by the properties and methods [appkit/nstextblock/contentwidthvaluetype], [appkit/nstextblock/setwidth], [appkit/nstextblock/setwidth], [appkit/nstextblock/widthforlayer], and [appkit/nstextblock/widthvaluetypeforlayer] to specify text block layer values. [Full Topic] +// The following constants specify values used by the properties and methods contentWidthValueType, setWidth:type:forLayer:, setWidth:type:forLayer:, widthForLayer:edge:, and widthValueTypeForLayer:edge: to specify text block layer values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblocklayer?language=objc type TextBlockLayer int @@ -4606,7 +4596,7 @@ const ( TextBlockPadding TextBlockLayer = -1 ) -// The following constants specify values used by the methods [appkit/nstextblock/setvalue] and [appkit/nstextblock/valuetypefordimension] to specify text block value types. [Full Topic] +// The following constants specify values used by the methods setValue:type:forDimension: and valueTypeForDimension: to specify text block value types. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblockvaluetype?language=objc type TextBlockValueType uint @@ -4616,7 +4606,7 @@ const ( TextBlockPercentageValueType TextBlockValueType = 1 ) -// The following constants specify values used by the property [appkit/nstextblock/verticalalignment] to specify vertical alignment. [Full Topic] +// The following constants specify values used by the property verticalAlignment to specify vertical alignment. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblockverticalalignment?language=objc type TextBlockVerticalAlignment uint @@ -4628,7 +4618,7 @@ const ( TextBlockTopAlignment TextBlockVerticalAlignment = 0 ) -// The constants are optional keys that can be used in the options dictionary parameter of the [appkit/nsspellchecker/checkstring], [appkit/nsspellchecker/requestcheckingofstring], and [appkit/nsspellchecker/menuforresult] methods. [Full Topic] +// The constants are optional keys that can be used in the options dictionary parameter of the checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:, requestCheckingOfString:range:types:options:inSpellDocumentWithTag:completionHandler:, and menuForResult:string:options:atLocation:inView: methods. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingoptionkey?language=objc type TextCheckingOptionKey string @@ -4686,7 +4676,7 @@ const ( TextFieldSquareBezel TextFieldBezelStyle = 0 ) -// These constants specify the user interface item tags that correspond find action. These constants are passed to the [appkit/nsresponder/performtextfinderaction] method, the responder will call the appropriate method for the tag. That method will, in turn, determine the desired action and invoke the appropriate method in the NSTextFinder object’s NSTextFinderClient protocol. [Full Topic] +// These constants specify the user interface item tags that correspond find action. These constants are passed to the performTextFinderAction: method, the responder will call the appropriate method for the tag. That method will, in turn, determine the desired action and invoke the appropriate method in the NSTextFinder object’s NSTextFinderClient protocol. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderaction?language=objc type TextFinderAction int @@ -4985,7 +4975,7 @@ const ( RightTabStopType TextTabType = 1 ) -// These constants, specifying the type of text table layout algorithm, are used with [appkit/nstexttable/layoutalgorithm]. [Full Topic] +// These constants, specifying the type of text table layout algorithm, are used with layoutAlgorithm. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttablelayoutalgorithm?language=objc type TextTableLayoutAlgorithm uint @@ -5038,7 +5028,7 @@ const ( TitlebarSeparatorStyleShadow TitlebarSeparatorStyle = 3 ) -// The NSTokenStyle constants define how tokens are displayed and editable in the NSTokenFieldCell. These values are used by [appkit/nstokenfieldcell/tokenstyle] and the delegate method [appkit/nstokenfieldcelldelegate/tokenfieldcell]. [Full Topic] +// The NSTokenStyle constants define how tokens are displayed and editable in the NSTokenFieldCell. These values are used by tokenStyle and the delegate method tokenFieldCell:editingStringForRepresentedObject:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenstyle?language=objc type TokenStyle uint @@ -5209,7 +5199,7 @@ const ( TouchTypeMaskIndirect TouchTypeMask = 2 ) -// The data type defined for the constants specified in the options parameter of [appkit/nstrackingarea/initwithrect]. These constants are described below; you can specify multiple constants by performing a bitwise-OR operation with them. In particular, you must supply one or more of the tracking-type constants (that is, NSTrackingMouseEnteredAndExited, NSTrackingMouseMoved, and NSTrackingCursorUpdate) and one of the active constants (that is, NSTrackingActiveWhenFirstResponder, NSTrackingActiveInKeyWindow, NSTrackingActiveInActiveApp, and NSTrackingActiveAlways). In addition, you may specify any of the behavior constants (that is, NSTrackingAssumeInside, NSTrackingInVisibleRect, and NSTrackingEnabledDuringMouseDrag). [Full Topic] +// The data type defined for the constants specified in the options parameter of initWithRect:options:owner:userInfo:. These constants are described below; you can specify multiple constants by performing a bitwise-OR operation with them. In particular, you must supply one or more of the tracking-type constants (that is, [appkit/nstrackingareaoptions/nstrackingmouseenteredandexited], [appkit/nstrackingareaoptions/nstrackingmousemoved], and [appkit/nstrackingareaoptions/nstrackingcursorupdate]) and one of the active constants (that is, [appkit/nstrackingareaoptions/nstrackingactivewhenfirstresponder], [appkit/nstrackingareaoptions/nstrackingactiveinkeywindow], [appkit/nstrackingareaoptions/nstrackingactiveinactiveapp], and [appkit/nstrackingareaoptions/nstrackingactivealways]). In addition, you may specify any of the behavior constants (that is, [appkit/nstrackingareaoptions/nstrackingassumeinside], [appkit/nstrackingareaoptions/nstrackinginvisiblerect], and [appkit/nstrackingareaoptions/nstrackingenabledduringmousedrag]). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstrackingareaoptions?language=objc type TrackingAreaOptions uint @@ -5246,7 +5236,7 @@ const ( TypesetterOriginalBehavior TypesetterBehavior = 0 ) -// The following constants are possible values returned by the [appkit/nstypesetter/actionforcontrolcharacteratindex] method to determine the action associated with a control character. [Full Topic] +// The following constants are possible values returned by the actionForControlCharacterAtIndex: method to determine the action associated with a control character. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesettercontrolcharacteraction?language=objc type TypesetterControlCharacterAction uint @@ -5260,16 +5250,6 @@ const ( TypesetterZeroAdvancementAction TypesetterControlCharacterAction = 1 ) -// Constants that define the underline mask. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1580760-nsunderlinestrikethroughmask?language=objc -type UnderlineStrikethroughMask int - -const ( - NoUnderlineStyle UnderlineStrikethroughMask = 0 - SingleUnderlineStyle UnderlineStrikethroughMask = 1 -) - // Constants for the underline style and strikethrough style attribute keys. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nsunderlinestyle?language=objc @@ -5288,15 +5268,6 @@ const ( UnderlineStyleThick UnderlineStyle = 2 ) -// This constant is used by the NSRunLoop method [foundation/nsrunloop/performselector]. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1428550-nsupdatewindowsrunloopordering?language=objc -type UpdateWindowsRunLoopOrdering int - -const ( - KUpdateWindowsRunLoopOrdering UpdateWindowsRunLoopOrdering = 500000 -) - // These constants specify which parts of the scroller are visible. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsusablescrollerparts?language=objc @@ -5350,7 +5321,7 @@ const ( ViewAnimationFadeOutEffect ViewAnimationEffectName = "NSViewAnimationFadeOutEffect" ) -// The following string constants are keys for the dictionaries in the array passed into [appkit/nsviewanimation/initwithviewanimations] and [appkit/nsviewanimation/viewanimations]. [Full Topic] +// The following string constants are keys for the dictionaries in the array passed into initWithViewAnimations: and viewAnimations. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewanimationkey?language=objc type ViewAnimationKey string @@ -5379,7 +5350,7 @@ const ( ViewControllerTransitionSlideUp ViewControllerTransitionOptions = 16 ) -// These constants are keys that you can use in the options dictionary in [appkit/nsview/enterfullscreenmode] and [appkit/nsview/exitfullscreenmodewithoptions]. [Full Topic] +// These constants are keys that you can use in the options dictionary in enterFullScreenMode:withOptions: and exitFullScreenModeWithOptions:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewfullscreenmodeoptionkey?language=objc type ViewFullScreenModeOptionKey string @@ -5391,7 +5362,7 @@ const ( FullScreenModeWindowLevel ViewFullScreenModeOptionKey = "NSFullScreenModeWindowLevel" ) -// These constants specify the location of the layer content when the content is not rerendered in response to view resizing. For more information, see the [appkit/nsview/layercontentsplacement] property. [Full Topic] +// These constants specify the location of the layer content when the content is not rerendered in response to view resizing. For more information, see the layerContentsPlacement property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewlayercontentsplacement?language=objc type ViewLayerContentsPlacement int @@ -5411,7 +5382,7 @@ const ( ViewLayerContentsPlacementTopRight ViewLayerContentsPlacement = 5 ) -// Constants that specify how layer resizing is handled when a view is layer-backed or layer-hosting. For more information, see the [appkit/nsview/layercontentsredrawpolicy] property. [Full Topic] +// Constants that specify how layer resizing is handled when a view is layer-backed or layer-hosting. For more information, see the layerContentsRedrawPolicy property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewlayercontentsredrawpolicy?language=objc type ViewLayerContentsRedrawPolicy int @@ -5472,7 +5443,7 @@ const ( VisualEffectStateInactive VisualEffectState = 2 ) -// The following constants are keys for the dictionary returned by [appkit/nsspeechsynthesizer/attributesforvoice]. [Full Topic] +// The following constants are keys for the dictionary returned by attributesForVoice:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsvoiceattributekey?language=objc type VoiceAttributeKey string @@ -5489,7 +5460,7 @@ const ( VoiceSupportedCharacters VoiceAttributeKey = "VoiceSupportedCharacters" ) -// The following constants define voice gender attributes, which are the allowable values of the NSVoiceGender key returned by [appkit/nsspeechsynthesizer/attributesforvoice]. [Full Topic] +// The following constants define voice gender attributes, which are the allowable values of the NSVoiceGender key returned by attributesForVoice:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsvoicegendername?language=objc type VoiceGenderName string @@ -5768,7 +5739,7 @@ const ( WorkspaceDesktopImageScalingKey WorkspaceDesktopImageOptionKey = "NSWorkspaceDesktopImageScalingKey" ) -// These constants specify different types of file operations used by [appkit/nsworkspace/performfileoperation]. [Full Topic] +// These constants specify different types of file operations used by performFileOperation:source:destination:files:tag:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspacefileoperationname?language=objc type WorkspaceFileOperationName string @@ -5796,7 +5767,7 @@ const ( ExcludeQuickDrawElementsIconCreationOption WorkspaceIconCreationOptions = 2 ) -// The following keys can be used in the configuration dictionary of the [appkit/nsworkspace/launchapplicationaturl] method. Each key is optional, and if omitted, default behavior is applied. [Full Topic] +// The following keys can be used in the configuration dictionary of the launchApplicationAtURL:options:configuration:error: method. Each key is optional, and if omitted, default behavior is applied. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspacelaunchconfigurationkey?language=objc type WorkspaceLaunchConfigurationKey string diff --git a/macos/appkit/enumtypes_amd64.gen.go b/macos/appkit/enumtypes_amd64.gen.go index 53376555..c825775f 100644 --- a/macos/appkit/enumtypes_amd64.gen.go +++ b/macos/appkit/enumtypes_amd64.gen.go @@ -152,7 +152,6 @@ const () const () const () const () -const () const ( ImageResizingModeStretch ImageResizingMode = 0 ImageResizingModeTile ImageResizingMode = 1 @@ -372,5 +371,3 @@ const () const () const () const () -const () -const () diff --git a/macos/appkit/enumtypes_arm64.gen.go b/macos/appkit/enumtypes_arm64.gen.go index 95cb838e..a996e2f3 100644 --- a/macos/appkit/enumtypes_arm64.gen.go +++ b/macos/appkit/enumtypes_arm64.gen.go @@ -152,7 +152,6 @@ const () const () const () const () -const () const ( ImageResizingModeStretch ImageResizingMode = 1 ImageResizingModeTile ImageResizingMode = 0 @@ -372,5 +371,3 @@ const () const () const () const () -const () -const () diff --git a/macos/appkit/event.gen.go b/macos/appkit/event.gen.go index 7fc16031..3bf6814c 100644 --- a/macos/appkit/event.gen.go +++ b/macos/appkit/event.gen.go @@ -20,67 +20,67 @@ type _EventClass struct { // An interface definition for the [Event] class. type IEvent interface { objc.IObject + CoalescedTouchesForTouch(touch ITouch) []Touch + TrackSwipeEventWithOptionsDampenAmountThresholdMinMaxUsingHandler(options EventSwipeTrackingOptions, minDampenThreshold float64, maxDampenThreshold float64, trackingHandler func(gestureAmount float64, phase EventPhase, isComplete bool, stop *bool)) AllTouches() foundation.Set - TouchesForView(view IView) foundation.Set CharactersByApplyingModifiers(modifiers EventModifierFlags) string - TrackSwipeEventWithOptionsDampenAmountThresholdMinMaxUsingHandler(options EventSwipeTrackingOptions, minDampenThreshold float64, maxDampenThreshold float64, trackingHandler func(gestureAmount float64, phase EventPhase, isComplete bool, stop *bool)) LocationInNode(node objc.IObject) coregraphics.Point + TouchesForView(view IView) foundation.Set TouchesMatchingPhaseInView(phase TouchPhase, view IView) foundation.Set - CoalescedTouchesForTouch(touch ITouch) []Touch + Pressure() float32 + AbsoluteZ() int SystemTabletID() uint - EventRef() unsafe.Pointer - Characters() string - Phase() EventPhase - VendorPointingDeviceType() uint - PressureBehavior() PressureBehavior - ScrollingDeltaX() float64 - Magnification() float64 - DeltaX() float64 - IsEnteringProximity() bool - ScrollingDeltaY() float64 - Subtype() EventSubtype + TabletID() uint + DeviceID() uint PointingDeviceType() PointingDeviceType - AbsoluteZ() int - IsARepeat() bool - Window() Window + Data1() int + ButtonNumber() int + EventRef() unsafe.Pointer DeltaZ() float64 - Rotation() float32 - UniqueID() int64 - PointingDeviceID() uint - KeyCode() int StageTransition() float64 - ClickCount() int + Tilt() foundation.Point + Characters() string + UserData() unsafe.Pointer + PointingDeviceSerialNumber() uint VendorDefined() objc.Object - ButtonNumber() int - AssociatedEventsMask() EventMask EventNumber() int - DeviceID() uint + MomentumPhase() EventPhase TrackingArea() TrackingArea - TangentialPressure() float32 - Data1() int - Timestamp() foundation.TimeInterval + UniqueID() int64 + Rotation() float32 + PointingDeviceID() uint + AssociatedEventsMask() EventMask + Magnification() float64 CGEvent() coregraphics.EventRef - AbsoluteY() int - AbsoluteX() int - Tilt() foundation.Point - Data2() int + Subtype() EventSubtype + DeltaX() float64 + VendorID() uint + TrackingNumber() int + ButtonMask() EventButtonMask + VendorPointingDeviceType() uint DeltaY() float64 - UserData() unsafe.Pointer + KeyCode() int WindowNumber() int - HasPreciseScrollingDeltas() bool - TabletID() uint - PointingDeviceSerialNumber() uint - Stage() int + IsDirectionInvertedFromDevice() bool + IsEnteringProximity() bool + LocationInWindow() foundation.Point + Timestamp() foundation.TimeInterval CapabilityMask() uint - TrackingNumber() int - CharactersIgnoringModifiers() string + AbsoluteX() int Type() EventType - LocationInWindow() foundation.Point - Pressure() float32 - ButtonMask() EventButtonMask - VendorID() uint - MomentumPhase() EventPhase - IsDirectionInvertedFromDevice() bool + ScrollingDeltaX() float64 + Window() Window + IsARepeat() bool + Data2() int + TangentialPressure() float32 + Stage() int + HasPreciseScrollingDeltas() bool + ScrollingDeltaY() float64 + AbsoluteY() int + ClickCount() int + Phase() EventPhase + CharactersIgnoringModifiers() string + PressureBehavior() PressureBehavior } // An object that contains information about an input action, such as a mouse click or a key press. [Full Topic] @@ -131,18 +131,41 @@ func Event_EventWithEventRef(eventRef unsafe.Pointer) Event { return EventClass.EventWithEventRef(eventRef) } -// Removes the specified event monitor. [Full Topic] +// Returns all of the touch objects associated with the specified main touch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533709-removemonitor?language=objc -func (ec _EventClass) RemoveMonitor(eventMonitor objc.IObject) { - objc.Call[objc.Void](ec, objc.Sel("removeMonitor:"), eventMonitor) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2646916-coalescedtouchesfortouch?language=objc +func (e_ Event) CoalescedTouchesForTouch(touch ITouch) []Touch { + rv := objc.Call[[]Touch](e_, objc.Sel("coalescedTouchesForTouch:"), touch) + return rv } -// Removes the specified event monitor. [Full Topic] +// Allows tracking and user interface feedback of scroll wheel events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533709-removemonitor?language=objc -func Event_RemoveMonitor(eventMonitor objc.IObject) { - EventClass.RemoveMonitor(eventMonitor) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533300-trackswipeeventwithoptions?language=objc +func (e_ Event) TrackSwipeEventWithOptionsDampenAmountThresholdMinMaxUsingHandler(options EventSwipeTrackingOptions, minDampenThreshold float64, maxDampenThreshold float64, trackingHandler func(gestureAmount float64, phase EventPhase, isComplete bool, stop *bool)) { + objc.Call[objc.Void](e_, objc.Sel("trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:"), options, minDampenThreshold, maxDampenThreshold, trackingHandler) +} + +// Begins generating periodic events for the current thread. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526044-startperiodiceventsafterdelay?language=objc +func (ec _EventClass) StartPeriodicEventsAfterDelayWithPeriod(delay foundation.TimeInterval, period foundation.TimeInterval) { + objc.Call[objc.Void](ec, objc.Sel("startPeriodicEventsAfterDelay:withPeriod:"), delay, period) +} + +// Begins generating periodic events for the current thread. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526044-startperiodiceventsafterdelay?language=objc +func Event_StartPeriodicEventsAfterDelayWithPeriod(delay foundation.TimeInterval, period foundation.TimeInterval) { + EventClass.StartPeriodicEventsAfterDelayWithPeriod(delay, period) +} + +// Returns all touch objects associated with the event. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2646917-alltouches?language=objc +func (e_ Event) AllTouches() foundation.Set { + rv := objc.Call[foundation.Set](e_, objc.Sel("allTouches")) + return rv } // Creates and returns a new event object that describes a tracking-rectangle or cursor-update event. [Full Topic] @@ -160,34 +183,56 @@ func Event_EnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberConte return EventClass.EnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberTrackingNumberUserData(type_, location, flags, time, wNum, unusedPassNil, enum, tNum, data) } -// Creates and returns a new event object that describes a mouse-down, -up, -moved, or -dragged event. [Full Topic] +// Returns the new characters that result if you apply the specified modifier keys to the event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1532495-mouseeventwithtype?language=objc -func (ec _EventClass) MouseEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberClickCountPressure(type_ EventType, location foundation.Point, flags EventModifierFlags, time foundation.TimeInterval, wNum int, unusedPassNil IGraphicsContext, enum int, cNum int, pressure float32) Event { - rv := objc.Call[Event](ec, objc.Sel("mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:"), type_, location, flags, time, wNum, unusedPassNil, enum, cNum, pressure) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/3242717-charactersbyapplyingmodifiers?language=objc +func (e_ Event) CharactersByApplyingModifiers(modifiers EventModifierFlags) string { + rv := objc.Call[string](e_, objc.Sel("charactersByApplyingModifiers:"), modifiers) return rv } -// Creates and returns a new event object that describes a mouse-down, -up, -moved, or -dragged event. [Full Topic] +// Removes the specified event monitor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1532495-mouseeventwithtype?language=objc -func Event_MouseEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberClickCountPressure(type_ EventType, location foundation.Point, flags EventModifierFlags, time foundation.TimeInterval, wNum int, unusedPassNil IGraphicsContext, enum int, cNum int, pressure float32) Event { - return EventClass.MouseEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberClickCountPressure(type_, location, flags, time, wNum, unusedPassNil, enum, cNum, pressure) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533709-removemonitor?language=objc +func (ec _EventClass) RemoveMonitor(eventMonitor objc.IObject) { + objc.Call[objc.Void](ec, objc.Sel("removeMonitor:"), eventMonitor) } -// Installs an event monitor that receives copies of events the system posts to other applications. [Full Topic] +// Removes the specified event monitor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535472-addglobalmonitorforeventsmatchin?language=objc -func (ec _EventClass) AddGlobalMonitorForEventsMatchingMaskHandler(mask EventMask, block func(event Event)) objc.Object { - rv := objc.Call[objc.Object](ec, objc.Sel("addGlobalMonitorForEventsMatchingMask:handler:"), mask, block) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533709-removemonitor?language=objc +func Event_RemoveMonitor(eventMonitor objc.IObject) { + EventClass.RemoveMonitor(eventMonitor) +} + +// Returns the location of the receiver in the coordinate system of the given node. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1483105-locationinnode?language=objc +func (e_ Event) LocationInNode(node objc.IObject) coregraphics.Point { + rv := objc.Call[coregraphics.Point](e_, objc.Sel("locationInNode:"), node) return rv } -// Installs an event monitor that receives copies of events the system posts to other applications. [Full Topic] +// Returns the touch objects from the event that belong to the specified view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535472-addglobalmonitorforeventsmatchin?language=objc -func Event_AddGlobalMonitorForEventsMatchingMaskHandler(mask EventMask, block func(event Event)) objc.Object { - return EventClass.AddGlobalMonitorForEventsMatchingMaskHandler(mask, block) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2646918-touchesforview?language=objc +func (e_ Event) TouchesForView(view IView) foundation.Set { + rv := objc.Call[foundation.Set](e_, objc.Sel("touchesForView:"), view) + return rv +} + +// Stops generating periodic events for the current thread and discards any periodic events remaining in the queue. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533746-stopperiodicevents?language=objc +func (ec _EventClass) StopPeriodicEvents() { + objc.Call[objc.Void](ec, objc.Sel("stopPeriodicEvents")) +} + +// Stops generating periodic events for the current thread and discards any periodic events remaining in the queue. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533746-stopperiodicevents?language=objc +func Event_StopPeriodicEvents() { + EventClass.StopPeriodicEvents() } // Creates and returns an event object for a Core Graphics event. [Full Topic] @@ -205,22 +250,29 @@ func Event_EventWithCGEvent(cgEvent coregraphics.EventRef) Event { return EventClass.EventWithCGEvent(cgEvent) } -// Returns all touch objects associated with the event. [Full Topic] +// Returns the touch objects associated with the specified phase. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2646917-alltouches?language=objc -func (e_ Event) AllTouches() foundation.Set { - rv := objc.Call[foundation.Set](e_, objc.Sel("allTouches")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530950-touchesmatchingphase?language=objc +func (e_ Event) TouchesMatchingPhaseInView(phase TouchPhase, view IView) foundation.Set { + rv := objc.Call[foundation.Set](e_, objc.Sel("touchesMatchingPhase:inView:"), phase, view) return rv } -// Returns the touch objects from the event that belong to the specified view. [Full Topic] +// Installs an event monitor that receives copies of events the system posts to other applications. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2646918-touchesforview?language=objc -func (e_ Event) TouchesForView(view IView) foundation.Set { - rv := objc.Call[foundation.Set](e_, objc.Sel("touchesForView:"), view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535472-addglobalmonitorforeventsmatchin?language=objc +func (ec _EventClass) AddGlobalMonitorForEventsMatchingMaskHandler(mask EventMask, block func(event Event)) objc.Object { + rv := objc.Call[objc.Object](ec, objc.Sel("addGlobalMonitorForEventsMatchingMask:handler:"), mask, block) return rv } +// Installs an event monitor that receives copies of events the system posts to other applications. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535472-addglobalmonitorforeventsmatchin?language=objc +func Event_AddGlobalMonitorForEventsMatchingMaskHandler(mask EventMask, block func(event Event)) objc.Object { + return EventClass.AddGlobalMonitorForEventsMatchingMaskHandler(mask, block) +} + // Installs an event monitor that receives copies of events the system posts to this app prior to their dispatch. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534971-addlocalmonitorforeventsmatching?language=objc @@ -236,28 +288,6 @@ func Event_AddLocalMonitorForEventsMatchingMaskHandler(mask EventMask, block fun return EventClass.AddLocalMonitorForEventsMatchingMaskHandler(mask, block) } -// Begins generating periodic events for the current thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526044-startperiodiceventsafterdelay?language=objc -func (ec _EventClass) StartPeriodicEventsAfterDelayWithPeriod(delay foundation.TimeInterval, period foundation.TimeInterval) { - objc.Call[objc.Void](ec, objc.Sel("startPeriodicEventsAfterDelay:withPeriod:"), delay, period) -} - -// Begins generating periodic events for the current thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526044-startperiodiceventsafterdelay?language=objc -func Event_StartPeriodicEventsAfterDelayWithPeriod(delay foundation.TimeInterval, period foundation.TimeInterval) { - EventClass.StartPeriodicEventsAfterDelayWithPeriod(delay, period) -} - -// Returns the new characters that result if you apply the specified modifier keys to the event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/3242717-charactersbyapplyingmodifiers?language=objc -func (e_ Event) CharactersByApplyingModifiers(modifiers EventModifierFlags) string { - rv := objc.Call[string](e_, objc.Sel("charactersByApplyingModifiers:"), modifiers) - return rv -} - // Creates and returns a new event object that describes a custom event. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530010-othereventwithtype?language=objc @@ -273,25 +303,19 @@ func Event_OtherEventWithTypeLocationModifierFlagsTimestampWindowNumberContextSu return EventClass.OtherEventWithTypeLocationModifierFlagsTimestampWindowNumberContextSubtypeData1Data2(type_, location, flags, time, wNum, unusedPassNil, subtype, d1, d2) } -// Allows tracking and user interface feedback of scroll wheel events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533300-trackswipeeventwithoptions?language=objc -func (e_ Event) TrackSwipeEventWithOptionsDampenAmountThresholdMinMaxUsingHandler(options EventSwipeTrackingOptions, minDampenThreshold float64, maxDampenThreshold float64, trackingHandler func(gestureAmount float64, phase EventPhase, isComplete bool, stop *bool)) { - objc.Call[objc.Void](e_, objc.Sel("trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:"), options, minDampenThreshold, maxDampenThreshold, trackingHandler) -} - -// Stops generating periodic events for the current thread and discards any periodic events remaining in the queue. [Full Topic] +// Creates and returns a new event object that describes a mouse-down, -up, -moved, or -dragged event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533746-stopperiodicevents?language=objc -func (ec _EventClass) StopPeriodicEvents() { - objc.Call[objc.Void](ec, objc.Sel("stopPeriodicEvents")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1532495-mouseeventwithtype?language=objc +func (ec _EventClass) MouseEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberClickCountPressure(type_ EventType, location foundation.Point, flags EventModifierFlags, time foundation.TimeInterval, wNum int, unusedPassNil IGraphicsContext, enum int, cNum int, pressure float32) Event { + rv := objc.Call[Event](ec, objc.Sel("mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:"), type_, location, flags, time, wNum, unusedPassNil, enum, cNum, pressure) + return rv } -// Stops generating periodic events for the current thread and discards any periodic events remaining in the queue. [Full Topic] +// Creates and returns a new event object that describes a mouse-down, -up, -moved, or -dragged event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533746-stopperiodicevents?language=objc -func Event_StopPeriodicEvents() { - EventClass.StopPeriodicEvents() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1532495-mouseeventwithtype?language=objc +func Event_MouseEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberClickCountPressure(type_ EventType, location foundation.Point, flags EventModifierFlags, time foundation.TimeInterval, wNum int, unusedPassNil IGraphicsContext, enum int, cNum int, pressure float32) Event { + return EventClass.MouseEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberClickCountPressure(type_, location, flags, time, wNum, unusedPassNil, enum, cNum, pressure) } // Creates and returns a new event object that describes a key event. [Full Topic] @@ -309,27 +333,19 @@ func Event_KeyEventWithTypeLocationModifierFlagsTimestampWindowNumberContextChar return EventClass.KeyEventWithTypeLocationModifierFlagsTimestampWindowNumberContextCharactersCharactersIgnoringModifiersIsARepeatKeyCode(type_, location, flags, time, wNum, unusedPassNil, keys, ukeys, flag, code) } -// Returns the location of the receiver in the coordinate system of the given node. [Full Topic] +// A normalized value that indicates the degree of pressure applied to an appropriate input device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1483105-locationinnode?language=objc -func (e_ Event) LocationInNode(node objc.IObject) coregraphics.Point { - rv := objc.Call[coregraphics.Point](e_, objc.Sel("locationInNode:"), node) - return rv -} - -// Returns the touch objects associated with the specified phase. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530950-touchesmatchingphase?language=objc -func (e_ Event) TouchesMatchingPhaseInView(phase TouchPhase, view IView) foundation.Set { - rv := objc.Call[foundation.Set](e_, objc.Sel("touchesMatchingPhase:inView:"), phase, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534543-pressure?language=objc +func (e_ Event) Pressure() float32 { + rv := objc.Call[float32](e_, objc.Sel("pressure")) return rv } -// Returns all of the touch objects associated with the specified main touch. [Full Topic] +// The absolute z coordinate of pointing device on its tablet at full tablet resolution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2646916-coalescedtouchesfortouch?language=objc -func (e_ Event) CoalescedTouchesForTouch(touch ITouch) []Touch { - rv := objc.Call[[]Touch](e_, objc.Sel("coalescedTouchesForTouch:"), touch) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1532154-absolutez?language=objc +func (e_ Event) AbsoluteZ() int { + rv := objc.Call[int](e_, objc.Sel("absoluteZ")) return rv } @@ -341,269 +357,244 @@ func (e_ Event) SystemTabletID() uint { return rv } -// An opaque Carbon type associated with this event. [Full Topic] +// The USB model identifier of the tablet device associated with this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525143-eventref?language=objc -func (e_ Event) EventRef() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](e_, objc.Sel("eventRef")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527003-tabletid?language=objc +func (e_ Event) TabletID() uint { + rv := objc.Call[uint](e_, objc.Sel("tabletID")) return rv } -// The characters associated with a key-up or key-down event. [Full Topic] +// A special identifier the system matches against tablet-pointer and tablet-proximity events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534183-characters?language=objc -func (e_ Event) Characters() string { - rv := objc.Call[string](e_, objc.Sel("characters")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530014-deviceid?language=objc +func (e_ Event) DeviceID() uint { + rv := objc.Call[uint](e_, objc.Sel("deviceID")) return rv } -// The phase of a gesture event, such as a magnify, scroll, or pressure change. [Full Topic] +// The maximum number of seconds in which a second mouse click must occur for an event to be a double-click event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533550-phase?language=objc -func (e_ Event) Phase() EventPhase { - rv := objc.Call[EventPhase](e_, objc.Sel("phase")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528384-doubleclickinterval?language=objc +func (ec _EventClass) DoubleClickInterval() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](ec, objc.Sel("doubleClickInterval")) return rv } -// The indices of the currently pressed mouse buttons. [Full Topic] +// The maximum number of seconds in which a second mouse click must occur for an event to be a double-click event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527943-pressedmousebuttons?language=objc -func (ec _EventClass) PressedMouseButtons() uint { - rv := objc.Call[uint](ec, objc.Sel("pressedMouseButtons")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528384-doubleclickinterval?language=objc +func Event_DoubleClickInterval() foundation.TimeInterval { + return EventClass.DoubleClickInterval() } -// The indices of the currently pressed mouse buttons. [Full Topic] +// The kind of pointing device associated with this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527943-pressedmousebuttons?language=objc -func Event_PressedMouseButtons() uint { - return EventClass.PressedMouseButtons() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535573-pointingdevicetype?language=objc +func (e_ Event) PointingDeviceType() PointingDeviceType { + rv := objc.Call[PointingDeviceType](e_, objc.Sel("pointingDeviceType")) + return rv } -// A coded bit field whose set bits indicate the type of pointing device (within a vendor selection) associated with the event. [Full Topic] +// Additional data associated with this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527736-vendorpointingdevicetype?language=objc -func (e_ Event) VendorPointingDeviceType() uint { - rv := objc.Call[uint](e_, objc.Sel("vendorPointingDeviceType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528289-data1?language=objc +func (e_ Event) Data1() int { + rv := objc.Call[int](e_, objc.Sel("data1")) return rv } -// The number of seconds someone must hold down a key to generate key-repeat events after the initial delay. [Full Topic] +// A Boolean value that indicates whether the system coalesces mouse movement events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526076-keyrepeatinterval?language=objc -func (ec _EventClass) KeyRepeatInterval() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](ec, objc.Sel("keyRepeatInterval")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc +func (ec _EventClass) MouseCoalescingEnabled() bool { + rv := objc.Call[bool](ec, objc.Sel("mouseCoalescingEnabled")) return rv } -// The number of seconds someone must hold down a key to generate key-repeat events after the initial delay. [Full Topic] +// A Boolean value that indicates whether the system coalesces mouse movement events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526076-keyrepeatinterval?language=objc -func Event_KeyRepeatInterval() foundation.TimeInterval { - return EventClass.KeyRepeatInterval() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc +func Event_MouseCoalescingEnabled() bool { + return EventClass.MouseCoalescingEnabled() } -// The behavior and progression for a pressure event. [Full Topic] +// A Boolean value that indicates whether the system coalesces mouse movement events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1531392-pressurebehavior?language=objc -func (e_ Event) PressureBehavior() PressureBehavior { - rv := objc.Call[PressureBehavior](e_, objc.Sel("pressureBehavior")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc +func (ec _EventClass) SetMouseCoalescingEnabled(value bool) { + objc.Call[objc.Void](ec, objc.Sel("setMouseCoalescingEnabled:"), value) } -// The scroll wheel’s horizontal delta. [Full Topic] +// A Boolean value that indicates whether the system coalesces mouse movement events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1524505-scrollingdeltax?language=objc -func (e_ Event) ScrollingDeltaX() float64 { - rv := objc.Call[float64](e_, objc.Sel("scrollingDeltaX")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc +func Event_SetMouseCoalescingEnabled(value bool) { + EventClass.SetMouseCoalescingEnabled(value) } -// The amount of change to add to a magnification gesture. [Full Topic] +// The currently pressed modifier keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1531642-magnification?language=objc -func (e_ Event) Magnification() float64 { - rv := objc.Call[float64](e_, objc.Sel("magnification")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535211-modifierflags?language=objc +func (ec _EventClass) ModifierFlags() EventModifierFlags { + rv := objc.Call[EventModifierFlags](ec, objc.Sel("modifierFlags")) return rv } -// The x-coordinate change for scroll wheel, mouse-move, mouse-drag, and swipe events. [Full Topic] +// The currently pressed modifier keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534871-deltax?language=objc -func (e_ Event) DeltaX() float64 { - rv := objc.Call[float64](e_, objc.Sel("deltaX")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535211-modifierflags?language=objc +func Event_ModifierFlags() EventModifierFlags { + return EventClass.ModifierFlags() } -// A Boolean value that indicates whether a pointing device is entering or leaving the proximity of its tablet. [Full Topic] +// The button number for a mouse event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1531702-enteringproximity?language=objc -func (e_ Event) IsEnteringProximity() bool { - rv := objc.Call[bool](e_, objc.Sel("isEnteringProximity")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527828-buttonnumber?language=objc +func (e_ Event) ButtonNumber() int { + rv := objc.Call[int](e_, objc.Sel("buttonNumber")) return rv } -// The scroll wheel’s vertical delta. [Full Topic] +// An opaque Carbon type associated with this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535387-scrollingdeltay?language=objc -func (e_ Event) ScrollingDeltaY() float64 { - rv := objc.Call[float64](e_, objc.Sel("scrollingDeltaY")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525143-eventref?language=objc +func (e_ Event) EventRef() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](e_, objc.Sel("eventRef")) return rv } -// The event’s subtype. [Full Topic] +// The z-coordinate change for a scroll wheel, mouse-move, or mouse-drag event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527726-subtype?language=objc -func (e_ Event) Subtype() EventSubtype { - rv := objc.Call[EventSubtype](e_, objc.Sel("subtype")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1531528-deltaz?language=objc +func (e_ Event) DeltaZ() float64 { + rv := objc.Call[float64](e_, objc.Sel("deltaZ")) return rv } -// The kind of pointing device associated with this event. [Full Topic] +// The transition value for the stage of a pressure gesture event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535573-pointingdevicetype?language=objc -func (e_ Event) PointingDeviceType() PointingDeviceType { - rv := objc.Call[PointingDeviceType](e_, objc.Sel("pointingDeviceType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526739-stagetransition?language=objc +func (e_ Event) StageTransition() float64 { + rv := objc.Call[float64](e_, objc.Sel("stageTransition")) return rv } -// The absolute z coordinate of pointing device on its tablet at full tablet resolution. [Full Topic] +// The scaled tilt values of the pointing device that generated this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1532154-absolutez?language=objc -func (e_ Event) AbsoluteZ() int { - rv := objc.Call[int](e_, objc.Sel("absoluteZ")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534226-tilt?language=objc +func (e_ Event) Tilt() foundation.Point { + rv := objc.Call[foundation.Point](e_, objc.Sel("tilt")) return rv } -// A Boolean value that indicates whether the key event is a repeat. [Full Topic] +// The characters associated with a key-up or key-down event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528049-arepeat?language=objc -func (e_ Event) IsARepeat() bool { - rv := objc.Call[bool](e_, objc.Sel("isARepeat")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534183-characters?language=objc +func (e_ Event) Characters() string { + rv := objc.Call[string](e_, objc.Sel("characters")) return rv } -// The window object associated with the event. [Full Topic] +// The data associated with a mouse-tracking event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530808-window?language=objc -func (e_ Event) Window() Window { - rv := objc.Call[Window](e_, objc.Sel("window")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526810-userdata?language=objc +func (e_ Event) UserData() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](e_, objc.Sel("userData")) return rv } -// The z-coordinate change for a scroll wheel, mouse-move, or mouse-drag event. [Full Topic] +// The vendor-assigned serial number of a pointing device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1531528-deltaz?language=objc -func (e_ Event) DeltaZ() float64 { - rv := objc.Call[float64](e_, objc.Sel("deltaZ")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533420-pointingdeviceserialnumber?language=objc +func (e_ Event) PointingDeviceSerialNumber() uint { + rv := objc.Call[uint](e_, objc.Sel("pointingDeviceSerialNumber")) return rv } -// A Boolean value that indicates whether the system coalesces mouse movement events. [Full Topic] +// An array of three vendor-defined number objects associated with a pointing-type event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc -func (ec _EventClass) MouseCoalescingEnabled() bool { - rv := objc.Call[bool](ec, objc.Sel("mouseCoalescingEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530551-vendordefined?language=objc +func (e_ Event) VendorDefined() objc.Object { + rv := objc.Call[objc.Object](e_, objc.Sel("vendorDefined")) return rv } -// A Boolean value that indicates whether the system coalesces mouse movement events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc -func Event_MouseCoalescingEnabled() bool { - return EventClass.MouseCoalescingEnabled() -} - -// A Boolean value that indicates whether the system coalesces mouse movement events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc -func (ec _EventClass) SetMouseCoalescingEnabled(value bool) { - objc.Call[objc.Void](ec, objc.Sel("setMouseCoalescingEnabled:"), value) -} - -// A Boolean value that indicates whether the system coalesces mouse movement events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc -func Event_SetMouseCoalescingEnabled(value bool) { - EventClass.SetMouseCoalescingEnabled(value) -} - -// The rotation in degrees of the tablet pointing device associated with this event. [Full Topic] +// The counter value of the latest mouse or tracking-rectangle event object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526249-rotation?language=objc -func (e_ Event) Rotation() float32 { - rv := objc.Call[float32](e_, objc.Sel("rotation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535220-eventnumber?language=objc +func (e_ Event) EventNumber() int { + rv := objc.Call[int](e_, objc.Sel("eventNumber")) return rv } -// The unique identifier of the pointing device that generated this event. [Full Topic] +// The number of seconds someone must hold down a key to generate key-repeat events after the initial delay. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535813-uniqueid?language=objc -func (e_ Event) UniqueID() int64 { - rv := objc.Call[int64](e_, objc.Sel("uniqueID")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526076-keyrepeatinterval?language=objc +func (ec _EventClass) KeyRepeatInterval() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](ec, objc.Sel("keyRepeatInterval")) return rv } -// The index of the pointing device currently in proximity with the tablet. [Full Topic] +// The number of seconds someone must hold down a key to generate key-repeat events after the initial delay. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528818-pointingdeviceid?language=objc -func (e_ Event) PointingDeviceID() uint { - rv := objc.Call[uint](e_, objc.Sel("pointingDeviceID")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526076-keyrepeatinterval?language=objc +func Event_KeyRepeatInterval() foundation.TimeInterval { + return EventClass.KeyRepeatInterval() } -// The virtual code for the key associated with the event. [Full Topic] +// The number of seconds someone must hold down a key before the first key repeat event occurs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534513-keycode?language=objc -func (e_ Event) KeyCode() int { - rv := objc.Call[int](e_, objc.Sel("keyCode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530832-keyrepeatdelay?language=objc +func (ec _EventClass) KeyRepeatDelay() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](ec, objc.Sel("keyRepeatDelay")) return rv } -// The transition value for the stage of a pressure gesture event. [Full Topic] +// The number of seconds someone must hold down a key before the first key repeat event occurs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526739-stagetransition?language=objc -func (e_ Event) StageTransition() float64 { - rv := objc.Call[float64](e_, objc.Sel("stageTransition")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530832-keyrepeatdelay?language=objc +func Event_KeyRepeatDelay() foundation.TimeInterval { + return EventClass.KeyRepeatDelay() } -// The number of mouse clicks associated with a mouse-down or mouse-up event. [Full Topic] +// The momentum phase for a scroll or flick gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528200-clickcount?language=objc -func (e_ Event) ClickCount() int { - rv := objc.Call[int](e_, objc.Sel("clickCount")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525439-momentumphase?language=objc +func (e_ Event) MomentumPhase() EventPhase { + rv := objc.Call[EventPhase](e_, objc.Sel("momentumPhase")) return rv } -// Reports the current mouse position in screen coordinates. [Full Topic] +// The tracking area for the event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533380-mouselocation?language=objc -func (ec _EventClass) MouseLocation() foundation.Point { - rv := objc.Call[foundation.Point](ec, objc.Sel("mouseLocation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534800-trackingarea?language=objc +func (e_ Event) TrackingArea() TrackingArea { + rv := objc.Call[TrackingArea](e_, objc.Sel("trackingArea")) return rv } -// Reports the current mouse position in screen coordinates. [Full Topic] +// The unique identifier of the pointing device that generated this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533380-mouselocation?language=objc -func Event_MouseLocation() foundation.Point { - return EventClass.MouseLocation() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535813-uniqueid?language=objc +func (e_ Event) UniqueID() int64 { + rv := objc.Call[int64](e_, objc.Sel("uniqueID")) + return rv } -// An array of three vendor-defined number objects associated with a pointing-type event. [Full Topic] +// The rotation in degrees of the tablet pointing device associated with this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530551-vendordefined?language=objc -func (e_ Event) VendorDefined() objc.Object { - rv := objc.Call[objc.Object](e_, objc.Sel("vendorDefined")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526249-rotation?language=objc +func (e_ Event) Rotation() float32 { + rv := objc.Call[float32](e_, objc.Sel("rotation")) return rv } -// The button number for a mouse event. [Full Topic] +// The index of the pointing device currently in proximity with the tablet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527828-buttonnumber?language=objc -func (e_ Event) ButtonNumber() int { - rv := objc.Call[int](e_, objc.Sel("buttonNumber")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528818-pointingdeviceid?language=objc +func (e_ Event) PointingDeviceID() uint { + rv := objc.Call[uint](e_, objc.Sel("pointingDeviceID")) return rv } @@ -615,121 +606,97 @@ func (e_ Event) AssociatedEventsMask() EventMask { return rv } -// The counter value of the latest mouse or tracking-rectangle event object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535220-eventnumber?language=objc -func (e_ Event) EventNumber() int { - rv := objc.Call[int](e_, objc.Sel("eventNumber")) - return rv -} - -// The currently pressed modifier keys. [Full Topic] +// The amount of change to add to a magnification gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535211-modifierflags?language=objc -func (ec _EventClass) ModifierFlags() EventModifierFlags { - rv := objc.Call[EventModifierFlags](ec, objc.Sel("modifierFlags")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1531642-magnification?language=objc +func (e_ Event) Magnification() float64 { + rv := objc.Call[float64](e_, objc.Sel("magnification")) return rv } -// The currently pressed modifier keys. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535211-modifierflags?language=objc -func Event_ModifierFlags() EventModifierFlags { - return EventClass.ModifierFlags() -} - -// A Boolean value that indicates whether to track fluid swipe gestures using scroll events. [Full Topic] +// The Core Graphics event object corresponding to this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870067-swipetrackingfromscrolleventsena?language=objc -func (ec _EventClass) SwipeTrackingFromScrollEventsEnabled() bool { - rv := objc.Call[bool](ec, objc.Sel("swipeTrackingFromScrollEventsEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530429-cgevent?language=objc +func (e_ Event) CGEvent() coregraphics.EventRef { + rv := objc.Call[coregraphics.EventRef](e_, objc.Sel("CGEvent")) return rv } -// A Boolean value that indicates whether to track fluid swipe gestures using scroll events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870067-swipetrackingfromscrolleventsena?language=objc -func Event_SwipeTrackingFromScrollEventsEnabled() bool { - return EventClass.SwipeTrackingFromScrollEventsEnabled() -} - -// A special identifier the system matches against tablet-pointer and tablet-proximity events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530014-deviceid?language=objc -func (e_ Event) DeviceID() uint { - rv := objc.Call[uint](e_, objc.Sel("deviceID")) +// Reports the current mouse position in screen coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533380-mouselocation?language=objc +func (ec _EventClass) MouseLocation() foundation.Point { + rv := objc.Call[foundation.Point](ec, objc.Sel("mouseLocation")) return rv } -// The tracking area for the event. [Full Topic] +// Reports the current mouse position in screen coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534800-trackingarea?language=objc -func (e_ Event) TrackingArea() TrackingArea { - rv := objc.Call[TrackingArea](e_, objc.Sel("trackingArea")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533380-mouselocation?language=objc +func Event_MouseLocation() foundation.Point { + return EventClass.MouseLocation() } -// The tangential pressure on the device that generated this event. [Full Topic] +// The event’s subtype. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525959-tangentialpressure?language=objc -func (e_ Event) TangentialPressure() float32 { - rv := objc.Call[float32](e_, objc.Sel("tangentialPressure")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527726-subtype?language=objc +func (e_ Event) Subtype() EventSubtype { + rv := objc.Call[EventSubtype](e_, objc.Sel("subtype")) return rv } -// Additional data associated with this event. [Full Topic] +// The x-coordinate change for scroll wheel, mouse-move, mouse-drag, and swipe events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528289-data1?language=objc -func (e_ Event) Data1() int { - rv := objc.Call[int](e_, objc.Sel("data1")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534871-deltax?language=objc +func (e_ Event) DeltaX() float64 { + rv := objc.Call[float64](e_, objc.Sel("deltaX")) return rv } -// The time when the event occurred in seconds since system startup. [Full Topic] +// The vendor identifier of the tablet associated with the event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528239-timestamp?language=objc -func (e_ Event) Timestamp() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](e_, objc.Sel("timestamp")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525177-vendorid?language=objc +func (e_ Event) VendorID() uint { + rv := objc.Call[uint](e_, objc.Sel("vendorID")) return rv } -// The Core Graphics event object corresponding to this event. [Full Topic] +// The indices of the currently pressed mouse buttons. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530429-cgevent?language=objc -func (e_ Event) CGEvent() coregraphics.EventRef { - rv := objc.Call[coregraphics.EventRef](e_, objc.Sel("CGEvent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527943-pressedmousebuttons?language=objc +func (ec _EventClass) PressedMouseButtons() uint { + rv := objc.Call[uint](ec, objc.Sel("pressedMouseButtons")) return rv } -// The absolute y coordinate of a pointing device on its tablet at full tablet resolution. [Full Topic] +// The indices of the currently pressed mouse buttons. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528904-absolutey?language=objc -func (e_ Event) AbsoluteY() int { - rv := objc.Call[int](e_, objc.Sel("absoluteY")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527943-pressedmousebuttons?language=objc +func Event_PressedMouseButtons() uint { + return EventClass.PressedMouseButtons() } -// The absolute x coordinate of a pointing device on its tablet at full tablet resolution. [Full Topic] +// The identifier of a mouse-tracking event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530617-absolutex?language=objc -func (e_ Event) AbsoluteX() int { - rv := objc.Call[int](e_, objc.Sel("absoluteX")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533974-trackingnumber?language=objc +func (e_ Event) TrackingNumber() int { + rv := objc.Call[int](e_, objc.Sel("trackingNumber")) return rv } -// The scaled tilt values of the pointing device that generated this event. [Full Topic] +// A bit mask identifying the buttons pressed for a tablet event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534226-tilt?language=objc -func (e_ Event) Tilt() foundation.Point { - rv := objc.Call[foundation.Point](e_, objc.Sel("tilt")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535428-buttonmask?language=objc +func (e_ Event) ButtonMask() EventButtonMask { + rv := objc.Call[EventButtonMask](e_, objc.Sel("buttonMask")) return rv } -// Additional data associated with this event. [Full Topic] +// A coded bit field whose set bits indicate the type of pointing device (within a vendor selection) associated with the event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528647-data2?language=objc -func (e_ Event) Data2() int { - rv := objc.Call[int](e_, objc.Sel("data2")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527736-vendorpointingdevicetype?language=objc +func (e_ Event) VendorPointingDeviceType() uint { + rv := objc.Call[uint](e_, objc.Sel("vendorPointingDeviceType")) return rv } @@ -741,14 +708,29 @@ func (e_ Event) DeltaY() float64 { return rv } -// The data associated with a mouse-tracking event. [Full Topic] +// The virtual code for the key associated with the event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526810-userdata?language=objc -func (e_ Event) UserData() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](e_, objc.Sel("userData")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534513-keycode?language=objc +func (e_ Event) KeyCode() int { + rv := objc.Call[int](e_, objc.Sel("keyCode")) + return rv +} + +// A Boolean value that indicates whether to track fluid swipe gestures using scroll events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870067-swipetrackingfromscrolleventsena?language=objc +func (ec _EventClass) SwipeTrackingFromScrollEventsEnabled() bool { + rv := objc.Call[bool](ec, objc.Sel("swipeTrackingFromScrollEventsEnabled")) return rv } +// A Boolean value that indicates whether to track fluid swipe gestures using scroll events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870067-swipetrackingfromscrolleventsena?language=objc +func Event_SwipeTrackingFromScrollEventsEnabled() bool { + return EventClass.SwipeTrackingFromScrollEventsEnabled() +} + // The identifier for the window device associated with the event. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1531361-windownumber?language=objc @@ -757,35 +739,35 @@ func (e_ Event) WindowNumber() int { return rv } -// A Boolean value that indicates whether precise scrolling deltas are available. [Full Topic] +// A Boolean value that indicates whether the user has changed the device inversion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525758-hasprecisescrollingdeltas?language=objc -func (e_ Event) HasPreciseScrollingDeltas() bool { - rv := objc.Call[bool](e_, objc.Sel("hasPreciseScrollingDeltas")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525151-directioninvertedfromdevice?language=objc +func (e_ Event) IsDirectionInvertedFromDevice() bool { + rv := objc.Call[bool](e_, objc.Sel("isDirectionInvertedFromDevice")) return rv } -// The USB model identifier of the tablet device associated with this event. [Full Topic] +// A Boolean value that indicates whether a pointing device is entering or leaving the proximity of its tablet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527003-tabletid?language=objc -func (e_ Event) TabletID() uint { - rv := objc.Call[uint](e_, objc.Sel("tabletID")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1531702-enteringproximity?language=objc +func (e_ Event) IsEnteringProximity() bool { + rv := objc.Call[bool](e_, objc.Sel("isEnteringProximity")) return rv } -// The vendor-assigned serial number of a pointing device. [Full Topic] +// The event location in the base coordinate system of the associated window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533420-pointingdeviceserialnumber?language=objc -func (e_ Event) PointingDeviceSerialNumber() uint { - rv := objc.Call[uint](e_, objc.Sel("pointingDeviceSerialNumber")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1529068-locationinwindow?language=objc +func (e_ Event) LocationInWindow() foundation.Point { + rv := objc.Call[foundation.Point](e_, objc.Sel("locationInWindow")) return rv } -// A value that indicates the stage of a pressure gesture event. [Full Topic] +// The time when the event occurred in seconds since system startup. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527242-stage?language=objc -func (e_ Event) Stage() int { - rv := objc.Call[int](e_, objc.Sel("stage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528239-timestamp?language=objc +func (e_ Event) Timestamp() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](e_, objc.Sel("timestamp")) return rv } @@ -797,104 +779,122 @@ func (e_ Event) CapabilityMask() uint { return rv } -// The identifier of a mouse-tracking event. [Full Topic] +// The absolute x coordinate of a pointing device on its tablet at full tablet resolution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533974-trackingnumber?language=objc -func (e_ Event) TrackingNumber() int { - rv := objc.Call[int](e_, objc.Sel("trackingNumber")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530617-absolutex?language=objc +func (e_ Event) AbsoluteX() int { + rv := objc.Call[int](e_, objc.Sel("absoluteX")) return rv } -// The characters generated by a key event as if no modifier key (except for Shift) applies. [Full Topic] +// The event’s type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1524605-charactersignoringmodifiers?language=objc -func (e_ Event) CharactersIgnoringModifiers() string { - rv := objc.Call[string](e_, objc.Sel("charactersIgnoringModifiers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528439-type?language=objc +func (e_ Event) Type() EventType { + rv := objc.Call[EventType](e_, objc.Sel("type")) return rv } -// The number of seconds someone must hold down a key before the first key repeat event occurs. [Full Topic] +// The scroll wheel’s horizontal delta. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530832-keyrepeatdelay?language=objc -func (ec _EventClass) KeyRepeatDelay() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](ec, objc.Sel("keyRepeatDelay")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1524505-scrollingdeltax?language=objc +func (e_ Event) ScrollingDeltaX() float64 { + rv := objc.Call[float64](e_, objc.Sel("scrollingDeltaX")) return rv } -// The number of seconds someone must hold down a key before the first key repeat event occurs. [Full Topic] +// The window object associated with the event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530832-keyrepeatdelay?language=objc -func Event_KeyRepeatDelay() foundation.TimeInterval { - return EventClass.KeyRepeatDelay() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530808-window?language=objc +func (e_ Event) Window() Window { + rv := objc.Call[Window](e_, objc.Sel("window")) + return rv } -// The event’s type. [Full Topic] +// A Boolean value that indicates whether the key event is a repeat. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528439-type?language=objc -func (e_ Event) Type() EventType { - rv := objc.Call[EventType](e_, objc.Sel("type")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528049-arepeat?language=objc +func (e_ Event) IsARepeat() bool { + rv := objc.Call[bool](e_, objc.Sel("isARepeat")) return rv } -// The event location in the base coordinate system of the associated window. [Full Topic] +// Additional data associated with this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1529068-locationinwindow?language=objc -func (e_ Event) LocationInWindow() foundation.Point { - rv := objc.Call[foundation.Point](e_, objc.Sel("locationInWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528647-data2?language=objc +func (e_ Event) Data2() int { + rv := objc.Call[int](e_, objc.Sel("data2")) return rv } -// A normalized value that indicates the degree of pressure applied to an appropriate input device. [Full Topic] +// The tangential pressure on the device that generated this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1534543-pressure?language=objc -func (e_ Event) Pressure() float32 { - rv := objc.Call[float32](e_, objc.Sel("pressure")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525959-tangentialpressure?language=objc +func (e_ Event) TangentialPressure() float32 { + rv := objc.Call[float32](e_, objc.Sel("tangentialPressure")) return rv } -// A bit mask identifying the buttons pressed for a tablet event. [Full Topic] +// A value that indicates the stage of a pressure gesture event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535428-buttonmask?language=objc -func (e_ Event) ButtonMask() EventButtonMask { - rv := objc.Call[EventButtonMask](e_, objc.Sel("buttonMask")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527242-stage?language=objc +func (e_ Event) Stage() int { + rv := objc.Call[int](e_, objc.Sel("stage")) return rv } -// The vendor identifier of the tablet associated with the event. [Full Topic] +// A Boolean value that indicates whether precise scrolling deltas are available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525177-vendorid?language=objc -func (e_ Event) VendorID() uint { - rv := objc.Call[uint](e_, objc.Sel("vendorID")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525758-hasprecisescrollingdeltas?language=objc +func (e_ Event) HasPreciseScrollingDeltas() bool { + rv := objc.Call[bool](e_, objc.Sel("hasPreciseScrollingDeltas")) return rv } -// The momentum phase for a scroll or flick gesture. [Full Topic] +// The scroll wheel’s vertical delta. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525439-momentumphase?language=objc -func (e_ Event) MomentumPhase() EventPhase { - rv := objc.Call[EventPhase](e_, objc.Sel("momentumPhase")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1535387-scrollingdeltay?language=objc +func (e_ Event) ScrollingDeltaY() float64 { + rv := objc.Call[float64](e_, objc.Sel("scrollingDeltaY")) return rv } -// The maximum number of seconds in which a second mouse click must occur for an event to be a double-click event. [Full Topic] +// The absolute y coordinate of a pointing device on its tablet at full tablet resolution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528384-doubleclickinterval?language=objc -func (ec _EventClass) DoubleClickInterval() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](ec, objc.Sel("doubleClickInterval")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528904-absolutey?language=objc +func (e_ Event) AbsoluteY() int { + rv := objc.Call[int](e_, objc.Sel("absoluteY")) return rv } -// The maximum number of seconds in which a second mouse click must occur for an event to be a double-click event. [Full Topic] +// The number of mouse clicks associated with a mouse-down or mouse-up event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528384-doubleclickinterval?language=objc -func Event_DoubleClickInterval() foundation.TimeInterval { - return EventClass.DoubleClickInterval() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528200-clickcount?language=objc +func (e_ Event) ClickCount() int { + rv := objc.Call[int](e_, objc.Sel("clickCount")) + return rv } -// A Boolean value that indicates whether the user has changed the device inversion. [Full Topic] +// The phase of a gesture event, such as a magnify, scroll, or pressure change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525151-directioninvertedfromdevice?language=objc -func (e_ Event) IsDirectionInvertedFromDevice() bool { - rv := objc.Call[bool](e_, objc.Sel("isDirectionInvertedFromDevice")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533550-phase?language=objc +func (e_ Event) Phase() EventPhase { + rv := objc.Call[EventPhase](e_, objc.Sel("phase")) + return rv +} + +// The characters generated by a key event as if no modifier key (except for Shift) applies. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1524605-charactersignoringmodifiers?language=objc +func (e_ Event) CharactersIgnoringModifiers() string { + rv := objc.Call[string](e_, objc.Sel("charactersIgnoringModifiers")) + return rv +} + +// The behavior and progression for a pressure event. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1531392-pressurebehavior?language=objc +func (e_ Event) PressureBehavior() PressureBehavior { + rv := objc.Call[PressureBehavior](e_, objc.Sel("pressureBehavior")) return rv } diff --git a/macos/appkit/file_promise_provider.gen.go b/macos/appkit/file_promise_provider.gen.go index 6f80edc5..99bb4816 100644 --- a/macos/appkit/file_promise_provider.gen.go +++ b/macos/appkit/file_promise_provider.gen.go @@ -20,11 +20,11 @@ type IFilePromiseProvider interface { objc.IObject UserInfo() objc.Object SetUserInfo(value objc.IObject) - FileType() string - SetFileType(value string) Delegate() FilePromiseProviderDelegateObject SetDelegate(value PFilePromiseProviderDelegate) SetDelegateObject(valueObject objc.IObject) + FileType() string + SetFileType(value string) } // An object that provides a promise for the pasteboard. [Full Topic] @@ -90,21 +90,6 @@ func (f_ FilePromiseProvider) SetUserInfo(value objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("setUserInfo:"), value) } -// The file type of the file promise provider. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseprovider/1644738-filetype?language=objc -func (f_ FilePromiseProvider) FileType() string { - rv := objc.Call[string](f_, objc.Sel("fileType")) - return rv -} - -// The file type of the file promise provider. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseprovider/1644738-filetype?language=objc -func (f_ FilePromiseProvider) SetFileType(value string) { - objc.Call[objc.Void](f_, objc.Sel("setFileType:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseprovider/1644726-delegate?language=objc @@ -128,3 +113,18 @@ func (f_ FilePromiseProvider) SetDelegate(value PFilePromiseProviderDelegate) { func (f_ FilePromiseProvider) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("setDelegate:"), valueObject) } + +// The file type of the file promise provider. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseprovider/1644738-filetype?language=objc +func (f_ FilePromiseProvider) FileType() string { + rv := objc.Call[string](f_, objc.Sel("fileType")) + return rv +} + +// The file type of the file promise provider. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseprovider/1644738-filetype?language=objc +func (f_ FilePromiseProvider) SetFileType(value string) { + objc.Call[objc.Void](f_, objc.Sel("setFileType:"), value) +} diff --git a/macos/appkit/file_promise_provider_delegate.gen.go b/macos/appkit/file_promise_provider_delegate.gen.go index 36de3ebb..55842b22 100644 --- a/macos/appkit/file_promise_provider_delegate.gen.go +++ b/macos/appkit/file_promise_provider_delegate.gen.go @@ -11,43 +11,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate?language=objc type PFilePromiseProviderDelegate interface { - // optional - FilePromiseProviderFileNameForType(filePromiseProvider FilePromiseProvider, fileType string) string - HasFilePromiseProviderFileNameForType() bool - // optional OperationQueueForFilePromiseProvider(filePromiseProvider FilePromiseProvider) foundation.OperationQueue HasOperationQueueForFilePromiseProvider() bool // optional - FilePromiseProviderWritePromiseToURLCompletionHandler(filePromiseProvider FilePromiseProvider, url foundation.URL, completionHandler func(errorOrNil foundation.Error)) - HasFilePromiseProviderWritePromiseToURLCompletionHandler() bool + FilePromiseProviderFileNameForType(filePromiseProvider FilePromiseProvider, fileType string) string + HasFilePromiseProviderFileNameForType() bool } // A delegate implementation builder for the [PFilePromiseProviderDelegate] protocol. type FilePromiseProviderDelegate struct { - _FilePromiseProviderFileNameForType func(filePromiseProvider FilePromiseProvider, fileType string) string - _OperationQueueForFilePromiseProvider func(filePromiseProvider FilePromiseProvider) foundation.OperationQueue - _FilePromiseProviderWritePromiseToURLCompletionHandler func(filePromiseProvider FilePromiseProvider, url foundation.URL, completionHandler func(errorOrNil foundation.Error)) -} - -func (di *FilePromiseProviderDelegate) HasFilePromiseProviderFileNameForType() bool { - return di._FilePromiseProviderFileNameForType != nil -} - -// Provides the drag destination file's name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/2369278-filepromiseprovider?language=objc -func (di *FilePromiseProviderDelegate) SetFilePromiseProviderFileNameForType(f func(filePromiseProvider FilePromiseProvider, fileType string) string) { - di._FilePromiseProviderFileNameForType = f + _OperationQueueForFilePromiseProvider func(filePromiseProvider FilePromiseProvider) foundation.OperationQueue + _FilePromiseProviderFileNameForType func(filePromiseProvider FilePromiseProvider, fileType string) string } -// Provides the drag destination file's name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/2369278-filepromiseprovider?language=objc -func (di *FilePromiseProviderDelegate) FilePromiseProviderFileNameForType(filePromiseProvider FilePromiseProvider, fileType string) string { - return di._FilePromiseProviderFileNameForType(filePromiseProvider, fileType) -} func (di *FilePromiseProviderDelegate) HasOperationQueueForFilePromiseProvider() bool { return di._OperationQueueForFilePromiseProvider != nil } @@ -65,22 +43,22 @@ func (di *FilePromiseProviderDelegate) SetOperationQueueForFilePromiseProvider(f func (di *FilePromiseProviderDelegate) OperationQueueForFilePromiseProvider(filePromiseProvider FilePromiseProvider) foundation.OperationQueue { return di._OperationQueueForFilePromiseProvider(filePromiseProvider) } -func (di *FilePromiseProviderDelegate) HasFilePromiseProviderWritePromiseToURLCompletionHandler() bool { - return di._FilePromiseProviderWritePromiseToURLCompletionHandler != nil +func (di *FilePromiseProviderDelegate) HasFilePromiseProviderFileNameForType() bool { + return di._FilePromiseProviderFileNameForType != nil } -// Writes the contents of a promise to the specified URL. [Full Topic] +// Provides the drag destination file's name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/1644244-filepromiseprovider?language=objc -func (di *FilePromiseProviderDelegate) SetFilePromiseProviderWritePromiseToURLCompletionHandler(f func(filePromiseProvider FilePromiseProvider, url foundation.URL, completionHandler func(errorOrNil foundation.Error))) { - di._FilePromiseProviderWritePromiseToURLCompletionHandler = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/2369278-filepromiseprovider?language=objc +func (di *FilePromiseProviderDelegate) SetFilePromiseProviderFileNameForType(f func(filePromiseProvider FilePromiseProvider, fileType string) string) { + di._FilePromiseProviderFileNameForType = f } -// Writes the contents of a promise to the specified URL. [Full Topic] +// Provides the drag destination file's name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/1644244-filepromiseprovider?language=objc -func (di *FilePromiseProviderDelegate) FilePromiseProviderWritePromiseToURLCompletionHandler(filePromiseProvider FilePromiseProvider, url foundation.URL, completionHandler func(errorOrNil foundation.Error)) { - di._FilePromiseProviderWritePromiseToURLCompletionHandler(filePromiseProvider, url, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/2369278-filepromiseprovider?language=objc +func (di *FilePromiseProviderDelegate) FilePromiseProviderFileNameForType(filePromiseProvider FilePromiseProvider, fileType string) string { + return di._FilePromiseProviderFileNameForType(filePromiseProvider, fileType) } // ensure impl type implements protocol interface @@ -91,18 +69,6 @@ type FilePromiseProviderDelegateObject struct { objc.Object } -func (f_ FilePromiseProviderDelegateObject) HasFilePromiseProviderFileNameForType() bool { - return f_.RespondsToSelector(objc.Sel("filePromiseProvider:fileNameForType:")) -} - -// Provides the drag destination file's name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/2369278-filepromiseprovider?language=objc -func (f_ FilePromiseProviderDelegateObject) FilePromiseProviderFileNameForType(filePromiseProvider FilePromiseProvider, fileType string) string { - rv := objc.Call[string](f_, objc.Sel("filePromiseProvider:fileNameForType:"), filePromiseProvider, fileType) - return rv -} - func (f_ FilePromiseProviderDelegateObject) HasOperationQueueForFilePromiseProvider() bool { return f_.RespondsToSelector(objc.Sel("operationQueueForFilePromiseProvider:")) } @@ -115,13 +81,14 @@ func (f_ FilePromiseProviderDelegateObject) OperationQueueForFilePromiseProvider return rv } -func (f_ FilePromiseProviderDelegateObject) HasFilePromiseProviderWritePromiseToURLCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("filePromiseProvider:writePromiseToURL:completionHandler:")) +func (f_ FilePromiseProviderDelegateObject) HasFilePromiseProviderFileNameForType() bool { + return f_.RespondsToSelector(objc.Sel("filePromiseProvider:fileNameForType:")) } -// Writes the contents of a promise to the specified URL. [Full Topic] +// Provides the drag destination file's name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/1644244-filepromiseprovider?language=objc -func (f_ FilePromiseProviderDelegateObject) FilePromiseProviderWritePromiseToURLCompletionHandler(filePromiseProvider FilePromiseProvider, url foundation.URL, completionHandler func(errorOrNil foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("filePromiseProvider:writePromiseToURL:completionHandler:"), filePromiseProvider, url, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/2369278-filepromiseprovider?language=objc +func (f_ FilePromiseProviderDelegateObject) FilePromiseProviderFileNameForType(filePromiseProvider FilePromiseProvider, fileType string) string { + rv := objc.Call[string](f_, objc.Sel("filePromiseProvider:fileNameForType:"), filePromiseProvider, fileType) + return rv } diff --git a/macos/appkit/file_promise_receiver.gen.go b/macos/appkit/file_promise_receiver.gen.go index 3e93fdb7..70e15075 100644 --- a/macos/appkit/file_promise_receiver.gen.go +++ b/macos/appkit/file_promise_receiver.gen.go @@ -20,8 +20,8 @@ type _FilePromiseReceiverClass struct { type IFilePromiseReceiver interface { objc.IObject ReceivePromisedFilesAtDestinationOptionsOperationQueueReader(destinationDir foundation.IURL, options foundation.Dictionary, operationQueue foundation.IOperationQueue, reader func(fileURL foundation.URL, errorOrNil foundation.Error)) - FileNames() []string FileTypes() []string + FileNames() []string } // An object that receives a file promise from the pasteboard. [Full Topic] @@ -64,21 +64,14 @@ func (f_ FilePromiseReceiver) ReceivePromisedFilesAtDestinationOptionsOperationQ objc.Call[objc.Void](f_, objc.Sel("receivePromisedFilesAtDestination:options:operationQueue:reader:"), destinationDir, options, operationQueue, reader) } -// An array containing dragged file types that are readable. [Full Topic] +// An array containing types of the promised files being written to the destination location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromisereceiver/1642140-readabledraggedtypes?language=objc -func (fc _FilePromiseReceiverClass) ReadableDraggedTypes() []string { - rv := objc.Call[[]string](fc, objc.Sel("readableDraggedTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromisereceiver/1642141-filetypes?language=objc +func (f_ FilePromiseReceiver) FileTypes() []string { + rv := objc.Call[[]string](f_, objc.Sel("fileTypes")) return rv } -// An array containing dragged file types that are readable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromisereceiver/1642140-readabledraggedtypes?language=objc -func FilePromiseReceiver_ReadableDraggedTypes() []string { - return FilePromiseReceiverClass.ReadableDraggedTypes() -} - // An array containing names of the promised files being written to the destination location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromisereceiver/1642142-filenames?language=objc @@ -87,10 +80,17 @@ func (f_ FilePromiseReceiver) FileNames() []string { return rv } -// An array containing types of the promised files being written to the destination location. [Full Topic] +// An array containing dragged file types that are readable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromisereceiver/1642141-filetypes?language=objc -func (f_ FilePromiseReceiver) FileTypes() []string { - rv := objc.Call[[]string](f_, objc.Sel("fileTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromisereceiver/1642140-readabledraggedtypes?language=objc +func (fc _FilePromiseReceiverClass) ReadableDraggedTypes() []string { + rv := objc.Call[[]string](fc, objc.Sel("readableDraggedTypes")) return rv } + +// An array containing dragged file types that are readable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromisereceiver/1642140-readabledraggedtypes?language=objc +func FilePromiseReceiver_ReadableDraggedTypes() []string { + return FilePromiseReceiverClass.ReadableDraggedTypes() +} diff --git a/macos/appkit/font.gen.go b/macos/appkit/font.gen.go index 52ad5089..f8bd4279 100644 --- a/macos/appkit/font.gen.go +++ b/macos/appkit/font.gen.go @@ -20,36 +20,36 @@ type _FontClass struct { // An interface definition for the [Font] class. type IFont interface { objc.IObject - AdvancementForCGGlyph(glyph coregraphics.Glyph) foundation.Size GetBoundingRectsForCGGlyphsCount(bounds foundation.RectArray, glyphs *coregraphics.Glyph, glyphCount uint) - SetInContext(graphicsContext IGraphicsContext) BoundingRectForCGGlyph(glyph coregraphics.Glyph) foundation.Rect - GetAdvancementsForCGGlyphsCount(advancements foundation.SizeArray, glyphs *coregraphics.Glyph, glyphCount uint) Set() FontWithSize(fontSize float64) Font - NumberOfGlyphs() uint - FontName() string + GetAdvancementsForCGGlyphsCount(advancements foundation.SizeArray, glyphs *coregraphics.Glyph, glyphCount uint) + SetInContext(graphicsContext IGraphicsContext) + AdvancementForCGGlyph(glyph coregraphics.Glyph) foundation.Size + FontDescriptor() FontDescriptor + Ascender() float64 CapHeight() float64 IsFixedPitch() bool - MostCompatibleStringEncoding() foundation.StringEncoding - DisplayName() string - BoundingRectForFont() foundation.Rect - UnderlinePosition() float64 - ItalicAngle() float64 + CoveredCharacterSet() foundation.CharacterSet TextTransform() foundation.AffineTransform - FontDescriptor() FontDescriptor - VerticalFont() Font + UnderlinePosition() float64 Leading() float64 - IsVertical() bool MaximumAdvancement() foundation.Size - UnderlineThickness() float64 - FamilyName() string - Matrix() *float64 - Descender() float64 + NumberOfGlyphs() uint XHeight() float64 - Ascender() float64 - CoveredCharacterSet() foundation.CharacterSet PointSize() float64 + VerticalFont() Font + BoundingRectForFont() foundation.Rect + Descender() float64 + FontName() string + Matrix() *float64 + IsVertical() bool + ItalicAngle() float64 + MostCompatibleStringEncoding() foundation.StringEncoding + UnderlineThickness() float64 + DisplayName() string + FamilyName() string } // The representation of a font in an app. [Full Topic] @@ -85,56 +85,26 @@ func (f_ Font) Init() Font { return rv } -// Sets the font used by default for documents and other text under the user’s control, when that font should be fixed-pitch, to the specified font. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529050-setuserfixedpitchfont?language=objc -func (fc _FontClass) SetUserFixedPitchFont(font IFont) { - objc.Call[objc.Void](fc, objc.Sel("setUserFixedPitchFont:"), font) -} - -// Sets the font used by default for documents and other text under the user’s control, when that font should be fixed-pitch, to the specified font. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529050-setuserfixedpitchfont?language=objc -func Font_SetUserFixedPitchFont(font IFont) { - FontClass.SetUserFixedPitchFont(font) -} - -// Returns the font size used for the specified control size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529747-systemfontsizeforcontrolsize?language=objc -func (fc _FontClass) SystemFontSizeForControlSize(controlSize ControlSize) float64 { - rv := objc.Call[float64](fc, objc.Sel("systemFontSizeForControlSize:"), controlSize) - return rv -} - -// Returns the font size used for the specified control size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529747-systemfontsizeforcontrolsize?language=objc -func Font_SystemFontSizeForControlSize(controlSize ControlSize) float64 { - return FontClass.SystemFontSizeForControlSize(controlSize) -} - -// Returns the nominal spacing for the given glyph—the distance the current point moves after showing the glyph—accounting for the receiver’s size. [Full Topic] +// Returns an array of the bounding rectangles for the specified glyphs rendered by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/2887191-advancementforcgglyph?language=objc -func (f_ Font) AdvancementForCGGlyph(glyph coregraphics.Glyph) foundation.Size { - rv := objc.Call[foundation.Size](f_, objc.Sel("advancementForCGGlyph:"), glyph) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/2887175-getboundingrects?language=objc +func (f_ Font) GetBoundingRectsForCGGlyphsCount(bounds foundation.RectArray, glyphs *coregraphics.Glyph, glyphCount uint) { + objc.Call[objc.Void](f_, objc.Sel("getBoundingRects:forCGGlyphs:count:"), bounds, glyphs, glyphCount) } -// Returns the standard system font with the specified size. [Full Topic] +// Returns the font used for palette window title bars, in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1530094-systemfontofsize?language=objc -func (fc _FontClass) SystemFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("systemFontOfSize:"), fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535462-palettefontofsize?language=objc +func (fc _FontClass) PaletteFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("paletteFontOfSize:"), fontSize) return rv } -// Returns the standard system font with the specified size. [Full Topic] +// Returns the font used for palette window title bars, in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1530094-systemfontofsize?language=objc -func Font_SystemFontOfSize(fontSize float64) Font { - return FontClass.SystemFontOfSize(fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535462-palettefontofsize?language=objc +func Font_PaletteFontOfSize(fontSize float64) Font { + return FontClass.PaletteFontOfSize(fontSize) } // Returns the font used for window title bars, in the specified size. [Full Topic] @@ -152,56 +122,56 @@ func Font_TitleBarFontOfSize(fontSize float64) Font { return FontClass.TitleBarFontOfSize(fontSize) } -// Returns a font object for the specified font descriptor and font size. [Full Topic] +// Returns the bounding rectangle for the specified glyph, scaled to the receiver’s size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525386-fontwithdescriptor?language=objc -func (fc _FontClass) FontWithDescriptorSize(fontDescriptor IFontDescriptor, fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("fontWithDescriptor:size:"), fontDescriptor, fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/2887147-boundingrectforcgglyph?language=objc +func (f_ Font) BoundingRectForCGGlyph(glyph coregraphics.Glyph) foundation.Rect { + rv := objc.Call[foundation.Rect](f_, objc.Sel("boundingRectForCGGlyph:"), glyph) return rv } -// Returns a font object for the specified font descriptor and font size. [Full Topic] +// Sets this font as the font for the current graphics context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525386-fontwithdescriptor?language=objc -func Font_FontWithDescriptorSize(fontDescriptor IFontDescriptor, fontSize float64) Font { - return FontClass.FontWithDescriptorSize(fontDescriptor, fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531373-set?language=objc +func (f_ Font) Set() { + objc.Call[objc.Void](f_, objc.Sel("set")) } -// Returns an array of the bounding rectangles for the specified glyphs rendered by the receiver. [Full Topic] +// Sets the font used by default for documents and other text under the user’s control to the specified font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/2887175-getboundingrects?language=objc -func (f_ Font) GetBoundingRectsForCGGlyphsCount(bounds foundation.RectArray, glyphs *coregraphics.Glyph, glyphCount uint) { - objc.Call[objc.Void](f_, objc.Sel("getBoundingRects:forCGGlyphs:count:"), bounds, glyphs, glyphCount) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1526068-setuserfont?language=objc +func (fc _FontClass) SetUserFont(font IFont) { + objc.Call[objc.Void](fc, objc.Sel("setUserFont:"), font) } -// Returns the font used for the content of controls in the specified size. [Full Topic] +// Sets the font used by default for documents and other text under the user’s control to the specified font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527070-controlcontentfontofsize?language=objc -func (fc _FontClass) ControlContentFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("controlContentFontOfSize:"), fontSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1526068-setuserfont?language=objc +func Font_SetUserFont(font IFont) { + FontClass.SetUserFont(font) } -// Returns the font used for the content of controls in the specified size. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527070-controlcontentfontofsize?language=objc -func Font_ControlContentFontOfSize(fontSize float64) Font { - return FontClass.ControlContentFontOfSize(fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/3667454-fontwithsize?language=objc +func (f_ Font) FontWithSize(fontSize float64) Font { + rv := objc.Call[Font](f_, objc.Sel("fontWithSize:"), fontSize) + return rv } -// Returns the font used for palette window title bars, in the specified size. [Full Topic] +// Returns a version of the standard system font that contains monospaced digit glyphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535462-palettefontofsize?language=objc -func (fc _FontClass) PaletteFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("paletteFontOfSize:"), fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1528205-monospaceddigitsystemfontofsize?language=objc +func (fc _FontClass) MonospacedDigitSystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { + rv := objc.Call[Font](fc, objc.Sel("monospacedDigitSystemFontOfSize:weight:"), fontSize, weight) return rv } -// Returns the font used for palette window title bars, in the specified size. [Full Topic] +// Returns a version of the standard system font that contains monospaced digit glyphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535462-palettefontofsize?language=objc -func Font_PaletteFontOfSize(fontSize float64) Font { - return FontClass.PaletteFontOfSize(fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1528205-monospaceddigitsystemfontofsize?language=objc +func Font_MonospacedDigitSystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { + return FontClass.MonospacedDigitSystemFontOfSizeWeight(fontSize, weight) } // Returns the font associated with the text style. [Full Topic] @@ -219,71 +189,34 @@ func Font_PreferredFontForTextStyleOptions(style FontTextStyle, options map[Font return FontClass.PreferredFontForTextStyleOptions(style, options) } -// Returns the font used for standard interface labels in the specified size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1528213-labelfontofsize?language=objc -func (fc _FontClass) LabelFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("labelFontOfSize:"), fontSize) - return rv -} - -// Returns the font used for standard interface labels in the specified size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1528213-labelfontofsize?language=objc -func Font_LabelFontOfSize(fontSize float64) Font { - return FontClass.LabelFontOfSize(fontSize) -} - -// Sets this font as the font for the specified graphics context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534538-setincontext?language=objc -func (f_ Font) SetInContext(graphicsContext IGraphicsContext) { - objc.Call[objc.Void](f_, objc.Sel("setInContext:"), graphicsContext) -} - -// Returns the standard system font with the specified size and weight. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1524930-systemfontofsize?language=objc -func (fc _FontClass) SystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { - rv := objc.Call[Font](fc, objc.Sel("systemFontOfSize:weight:"), fontSize, weight) - return rv -} - -// Returns the standard system font with the specified size and weight. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1524930-systemfontofsize?language=objc -func Font_SystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { - return FontClass.SystemFontOfSizeWeight(fontSize, weight) -} - -// Returns a font object for the specified font descriptor and text transform. [Full Topic] +// Returns the font used for standard interface items, such as button labels, menu items, and so on, in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525775-fontwithdescriptor?language=objc -func (fc _FontClass) FontWithDescriptorTextTransform(fontDescriptor IFontDescriptor, textTransform foundation.IAffineTransform) Font { - rv := objc.Call[Font](fc, objc.Sel("fontWithDescriptor:textTransform:"), fontDescriptor, textTransform) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525777-messagefontofsize?language=objc +func (fc _FontClass) MessageFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("messageFontOfSize:"), fontSize) return rv } -// Returns a font object for the specified font descriptor and text transform. [Full Topic] +// Returns the font used for standard interface items, such as button labels, menu items, and so on, in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525775-fontwithdescriptor?language=objc -func Font_FontWithDescriptorTextTransform(fontDescriptor IFontDescriptor, textTransform foundation.IAffineTransform) Font { - return FontClass.FontWithDescriptorTextTransform(fontDescriptor, textTransform) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525777-messagefontofsize?language=objc +func Font_MessageFontOfSize(fontSize float64) Font { + return FontClass.MessageFontOfSize(fontSize) } -// Returns a version of the standard system font that contains monospaced digit glyphs. [Full Topic] +// Returns the standard system font in boldface type with the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1528205-monospaceddigitsystemfontofsize?language=objc -func (fc _FontClass) MonospacedDigitSystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { - rv := objc.Call[Font](fc, objc.Sel("monospacedDigitSystemFontOfSize:weight:"), fontSize, weight) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1533549-boldsystemfontofsize?language=objc +func (fc _FontClass) BoldSystemFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("boldSystemFontOfSize:"), fontSize) return rv } -// Returns a version of the standard system font that contains monospaced digit glyphs. [Full Topic] +// Returns the standard system font in boldface type with the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1528205-monospaceddigitsystemfontofsize?language=objc -func Font_MonospacedDigitSystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { - return FontClass.MonospacedDigitSystemFontOfSizeWeight(fontSize, weight) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1533549-boldsystemfontofsize?language=objc +func Font_BoldSystemFontOfSize(fontSize float64) Font { + return FontClass.BoldSystemFontOfSize(fontSize) } // Returns the font used for menu items, in the specified size. [Full Topic] @@ -301,229 +234,221 @@ func Font_MenuFontOfSize(fontSize float64) Font { return FontClass.MenuFontOfSize(fontSize) } -// Returns the font used for menu bar items, in the specified size. [Full Topic] +// Returns the standard system font with the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534194-menubarfontofsize?language=objc -func (fc _FontClass) MenuBarFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("menuBarFontOfSize:"), fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1530094-systemfontofsize?language=objc +func (fc _FontClass) SystemFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("systemFontOfSize:"), fontSize) return rv } -// Returns the font used for menu bar items, in the specified size. [Full Topic] +// Returns the standard system font with the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534194-menubarfontofsize?language=objc -func Font_MenuBarFontOfSize(fontSize float64) Font { - return FontClass.MenuBarFontOfSize(fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1530094-systemfontofsize?language=objc +func Font_SystemFontOfSize(fontSize float64) Font { + return FontClass.SystemFontOfSize(fontSize) } -// Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), when that font should be fixed-pitch, in the specified size. [Full Topic] +// Returns an array of the advancements for the specified glyphs rendered by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531381-userfixedpitchfontofsize?language=objc -func (fc _FontClass) UserFixedPitchFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("userFixedPitchFontOfSize:"), fontSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/2887171-getadvancements?language=objc +func (f_ Font) GetAdvancementsForCGGlyphsCount(advancements foundation.SizeArray, glyphs *coregraphics.Glyph, glyphCount uint) { + objc.Call[objc.Void](f_, objc.Sel("getAdvancements:forCGGlyphs:count:"), advancements, glyphs, glyphCount) } -// Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), when that font should be fixed-pitch, in the specified size. [Full Topic] +// Returns the font used for tool tips labels, in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531381-userfixedpitchfontofsize?language=objc -func Font_UserFixedPitchFontOfSize(fontSize float64) Font { - return FontClass.UserFixedPitchFontOfSize(fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527704-tooltipsfontofsize?language=objc +func (fc _FontClass) ToolTipsFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("toolTipsFontOfSize:"), fontSize) + return rv } -// Returns the bounding rectangle for the specified glyph, scaled to the receiver’s size. [Full Topic] +// Returns the font used for tool tips labels, in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/2887147-boundingrectforcgglyph?language=objc -func (f_ Font) BoundingRectForCGGlyph(glyph coregraphics.Glyph) foundation.Rect { - rv := objc.Call[foundation.Rect](f_, objc.Sel("boundingRectForCGGlyph:"), glyph) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527704-tooltipsfontofsize?language=objc +func Font_ToolTipsFontOfSize(fontSize float64) Font { + return FontClass.ToolTipsFontOfSize(fontSize) } -// Returns the font used for standard interface items, such as button labels, menu items, and so on, in the specified size. [Full Topic] +// Returns a font object for the specified font name and matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525777-messagefontofsize?language=objc -func (fc _FontClass) MessageFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("messageFontOfSize:"), fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1530751-fontwithname?language=objc +func (fc _FontClass) FontWithNameMatrix(fontName string, fontMatrix *float64) Font { + rv := objc.Call[Font](fc, objc.Sel("fontWithName:matrix:"), fontName, fontMatrix) return rv } -// Returns the font used for standard interface items, such as button labels, menu items, and so on, in the specified size. [Full Topic] +// Returns a font object for the specified font name and matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525777-messagefontofsize?language=objc -func Font_MessageFontOfSize(fontSize float64) Font { - return FontClass.MessageFontOfSize(fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1530751-fontwithname?language=objc +func Font_FontWithNameMatrix(fontName string, fontMatrix *float64) Font { + return FontClass.FontWithNameMatrix(fontName, fontMatrix) } -// Sets the font used by default for documents and other text under the user’s control to the specified font. [Full Topic] +// Returns a monospace version of the system font with the specified size and weight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1526068-setuserfont?language=objc -func (fc _FontClass) SetUserFont(font IFont) { - objc.Call[objc.Void](fc, objc.Sel("setUserFont:"), font) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/3042659-monospacedsystemfontofsize?language=objc +func (fc _FontClass) MonospacedSystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { + rv := objc.Call[Font](fc, objc.Sel("monospacedSystemFontOfSize:weight:"), fontSize, weight) + return rv } -// Sets the font used by default for documents and other text under the user’s control to the specified font. [Full Topic] +// Returns a monospace version of the system font with the specified size and weight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1526068-setuserfont?language=objc -func Font_SetUserFont(font IFont) { - FontClass.SetUserFont(font) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/3042659-monospacedsystemfontofsize?language=objc +func Font_MonospacedSystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { + return FontClass.MonospacedSystemFontOfSizeWeight(fontSize, weight) } -// Returns the standard system font in boldface type with the specified size. [Full Topic] +// Sets this font as the font for the specified graphics context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1533549-boldsystemfontofsize?language=objc -func (fc _FontClass) BoldSystemFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("boldSystemFontOfSize:"), fontSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534538-setincontext?language=objc +func (f_ Font) SetInContext(graphicsContext IGraphicsContext) { + objc.Call[objc.Void](f_, objc.Sel("setInContext:"), graphicsContext) } -// Returns the standard system font in boldface type with the specified size. [Full Topic] +// Returns the nominal spacing for the given glyph—the distance the current point moves after showing the glyph—accounting for the receiver’s size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1533549-boldsystemfontofsize?language=objc -func Font_BoldSystemFontOfSize(fontSize float64) Font { - return FontClass.BoldSystemFontOfSize(fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/2887191-advancementforcgglyph?language=objc +func (f_ Font) AdvancementForCGGlyph(glyph coregraphics.Glyph) foundation.Size { + rv := objc.Call[foundation.Size](f_, objc.Sel("advancementForCGGlyph:"), glyph) + return rv } -// Creates a font object for the specified font name and font size. [Full Topic] +// Returns the font used for menu bar items, in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525977-fontwithname?language=objc -func (fc _FontClass) FontWithNameSize(fontName string, fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("fontWithName:size:"), fontName, fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534194-menubarfontofsize?language=objc +func (fc _FontClass) MenuBarFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("menuBarFontOfSize:"), fontSize) return rv } -// Creates a font object for the specified font name and font size. [Full Topic] +// Returns the font used for menu bar items, in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525977-fontwithname?language=objc -func Font_FontWithNameSize(fontName string, fontSize float64) Font { - return FontClass.FontWithNameSize(fontName, fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534194-menubarfontofsize?language=objc +func Font_MenuBarFontOfSize(fontSize float64) Font { + return FontClass.MenuBarFontOfSize(fontSize) } -// Returns a monospace version of the system font with the specified size and weight. [Full Topic] +// Returns a font object for the specified font descriptor and font size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/3042659-monospacedsystemfontofsize?language=objc -func (fc _FontClass) MonospacedSystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { - rv := objc.Call[Font](fc, objc.Sel("monospacedSystemFontOfSize:weight:"), fontSize, weight) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525386-fontwithdescriptor?language=objc +func (fc _FontClass) FontWithDescriptorSize(fontDescriptor IFontDescriptor, fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("fontWithDescriptor:size:"), fontDescriptor, fontSize) return rv } -// Returns a monospace version of the system font with the specified size and weight. [Full Topic] +// Returns a font object for the specified font descriptor and font size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/3042659-monospacedsystemfontofsize?language=objc -func Font_MonospacedSystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { - return FontClass.MonospacedSystemFontOfSizeWeight(fontSize, weight) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525386-fontwithdescriptor?language=objc +func Font_FontWithDescriptorSize(fontDescriptor IFontDescriptor, fontSize float64) Font { + return FontClass.FontWithDescriptorSize(fontDescriptor, fontSize) } -// Returns the font used for tool tips labels, in the specified size. [Full Topic] +// Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), when that font should be fixed-pitch, in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527704-tooltipsfontofsize?language=objc -func (fc _FontClass) ToolTipsFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("toolTipsFontOfSize:"), fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531381-userfixedpitchfontofsize?language=objc +func (fc _FontClass) UserFixedPitchFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("userFixedPitchFontOfSize:"), fontSize) return rv } -// Returns the font used for tool tips labels, in the specified size. [Full Topic] +// Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), when that font should be fixed-pitch, in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527704-tooltipsfontofsize?language=objc -func Font_ToolTipsFontOfSize(fontSize float64) Font { - return FontClass.ToolTipsFontOfSize(fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531381-userfixedpitchfontofsize?language=objc +func Font_UserFixedPitchFontOfSize(fontSize float64) Font { + return FontClass.UserFixedPitchFontOfSize(fontSize) } -// Returns an array of the advancements for the specified glyphs rendered by the receiver. [Full Topic] +// Sets the font used by default for documents and other text under the user’s control, when that font should be fixed-pitch, to the specified font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/2887171-getadvancements?language=objc -func (f_ Font) GetAdvancementsForCGGlyphsCount(advancements foundation.SizeArray, glyphs *coregraphics.Glyph, glyphCount uint) { - objc.Call[objc.Void](f_, objc.Sel("getAdvancements:forCGGlyphs:count:"), advancements, glyphs, glyphCount) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529050-setuserfixedpitchfont?language=objc +func (fc _FontClass) SetUserFixedPitchFont(font IFont) { + objc.Call[objc.Void](fc, objc.Sel("setUserFixedPitchFont:"), font) } -// Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), in the specified size. [Full Topic] +// Sets the font used by default for documents and other text under the user’s control, when that font should be fixed-pitch, to the specified font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1524559-userfontofsize?language=objc -func (fc _FontClass) UserFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("userFontOfSize:"), fontSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529050-setuserfixedpitchfont?language=objc +func Font_SetUserFixedPitchFont(font IFont) { + FontClass.SetUserFixedPitchFont(font) } -// Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), in the specified size. [Full Topic] +// Returns the font used for the content of controls in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1524559-userfontofsize?language=objc -func Font_UserFontOfSize(fontSize float64) Font { - return FontClass.UserFontOfSize(fontSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527070-controlcontentfontofsize?language=objc +func (fc _FontClass) ControlContentFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("controlContentFontOfSize:"), fontSize) + return rv } -// Sets this font as the font for the current graphics context. [Full Topic] +// Returns the font used for the content of controls in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531373-set?language=objc -func (f_ Font) Set() { - objc.Call[objc.Void](f_, objc.Sel("set")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527070-controlcontentfontofsize?language=objc +func Font_ControlContentFontOfSize(fontSize float64) Font { + return FontClass.ControlContentFontOfSize(fontSize) } -// Returns a font object for the specified font name and matrix. [Full Topic] +// Returns the font used for standard interface labels in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1530751-fontwithname?language=objc -func (fc _FontClass) FontWithNameMatrix(fontName string, fontMatrix *float64) Font { - rv := objc.Call[Font](fc, objc.Sel("fontWithName:matrix:"), fontName, fontMatrix) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1528213-labelfontofsize?language=objc +func (fc _FontClass) LabelFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("labelFontOfSize:"), fontSize) return rv } -// Returns a font object for the specified font name and matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1530751-fontwithname?language=objc -func Font_FontWithNameMatrix(fontName string, fontMatrix *float64) Font { - return FontClass.FontWithNameMatrix(fontName, fontMatrix) -} - -// [Full Topic] +// Returns the font used for standard interface labels in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/3667454-fontwithsize?language=objc -func (f_ Font) FontWithSize(fontSize float64) Font { - rv := objc.Call[Font](f_, objc.Sel("fontWithSize:"), fontSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1528213-labelfontofsize?language=objc +func Font_LabelFontOfSize(fontSize float64) Font { + return FontClass.LabelFontOfSize(fontSize) } -// Returns the size of the standard small system font. [Full Topic] +// Returns the font size used for the specified control size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535612-smallsystemfontsize?language=objc -func (fc _FontClass) SmallSystemFontSize() float64 { - rv := objc.Call[float64](fc, objc.Sel("smallSystemFontSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529747-systemfontsizeforcontrolsize?language=objc +func (fc _FontClass) SystemFontSizeForControlSize(controlSize ControlSize) float64 { + rv := objc.Call[float64](fc, objc.Sel("systemFontSizeForControlSize:"), controlSize) return rv } -// Returns the size of the standard small system font. [Full Topic] +// Returns the font size used for the specified control size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535612-smallsystemfontsize?language=objc -func Font_SmallSystemFontSize() float64 { - return FontClass.SmallSystemFontSize() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529747-systemfontsizeforcontrolsize?language=objc +func Font_SystemFontSizeForControlSize(controlSize ControlSize) float64 { + return FontClass.SystemFontSizeForControlSize(controlSize) } -// The number of glyphs in the font. [Full Topic] +// Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1533968-numberofglyphs?language=objc -func (f_ Font) NumberOfGlyphs() uint { - rv := objc.Call[uint](f_, objc.Sel("numberOfGlyphs")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1524559-userfontofsize?language=objc +func (fc _FontClass) UserFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("userFontOfSize:"), fontSize) return rv } -// The full name of the font, as used in PostScript language code—for example, “Times-Roman” or “Helvetica-Oblique.” [Full Topic] +// Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), in the specified size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1526183-fontname?language=objc -func (f_ Font) FontName() string { - rv := objc.Call[string](f_, objc.Sel("fontName")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1524559-userfontofsize?language=objc +func Font_UserFontOfSize(fontSize float64) Font { + return FontClass.UserFontOfSize(fontSize) } -// Returns the size of the standard label font. [Full Topic] +// The font descriptor object for the font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534629-labelfontsize?language=objc -func (fc _FontClass) LabelFontSize() float64 { - rv := objc.Call[float64](fc, objc.Sel("labelFontSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1530476-fontdescriptor?language=objc +func (f_ Font) FontDescriptor() FontDescriptor { + rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptor")) return rv } -// Returns the size of the standard label font. [Full Topic] +// The top y-coordinate, offset from the baseline, of the font’s longest ascender. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534629-labelfontsize?language=objc -func Font_LabelFontSize() float64 { - return FontClass.LabelFontSize() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535420-ascender?language=objc +func (f_ Font) Ascender() float64 { + rv := objc.Call[float64](f_, objc.Sel("ascender")) + return rv } // The cap height of the font. [Full Topic] @@ -534,22 +459,6 @@ func (f_ Font) CapHeight() float64 { return rv } -// A Boolean value indicating whether all glyphs in the font have the same advancement. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529210-fixedpitch?language=objc -func (f_ Font) IsFixedPitch() bool { - rv := objc.Call[bool](f_, objc.Sel("isFixedPitch")) - return rv -} - -// The string encoding that works best with the font. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527635-mostcompatiblestringencoding?language=objc -func (f_ Font) MostCompatibleStringEncoding() foundation.StringEncoding { - rv := objc.Call[foundation.StringEncoding](f_, objc.Sel("mostCompatibleStringEncoding")) - return rv -} - // Returns the size of the standard system font. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531931-systemfontsize?language=objc @@ -565,19 +474,27 @@ func Font_SystemFontSize() float64 { return FontClass.SystemFontSize() } -// The name of the font, including family and face names, to use when displaying the font information to the user. [Full Topic] +// A Boolean value indicating whether all glyphs in the font have the same advancement. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531660-displayname?language=objc -func (f_ Font) DisplayName() string { - rv := objc.Call[string](f_, objc.Sel("displayName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529210-fixedpitch?language=objc +func (f_ Font) IsFixedPitch() bool { + rv := objc.Call[bool](f_, objc.Sel("isFixedPitch")) return rv } -// The font’s bounding rectangle, scaled to the font’s size. [Full Topic] +// The character set containing all of the nominal characters that the font can render. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527321-boundingrectforfont?language=objc -func (f_ Font) BoundingRectForFont() foundation.Rect { - rv := objc.Call[foundation.Rect](f_, objc.Sel("boundingRectForFont")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535912-coveredcharacterset?language=objc +func (f_ Font) CoveredCharacterSet() foundation.CharacterSet { + rv := objc.Call[foundation.CharacterSet](f_, objc.Sel("coveredCharacterSet")) + return rv +} + +// The current transformation matrix of the font. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1526270-texttransform?language=objc +func (f_ Font) TextTransform() foundation.AffineTransform { + rv := objc.Call[foundation.AffineTransform](f_, objc.Sel("textTransform")) return rv } @@ -589,75 +506,90 @@ func (f_ Font) UnderlinePosition() float64 { return rv } -// The number of degrees that the font is slanted counterclockwise from the vertical. [Full Topic] +// The leading value of the font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535194-italicangle?language=objc -func (f_ Font) ItalicAngle() float64 { - rv := objc.Call[float64](f_, objc.Sel("italicAngle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534083-leading?language=objc +func (f_ Font) Leading() float64 { + rv := objc.Call[float64](f_, objc.Sel("leading")) return rv } -// The current transformation matrix of the font. [Full Topic] +// The maximum advance of any of the font’s glyphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1526270-texttransform?language=objc -func (f_ Font) TextTransform() foundation.AffineTransform { - rv := objc.Call[foundation.AffineTransform](f_, objc.Sel("textTransform")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1526023-maximumadvancement?language=objc +func (f_ Font) MaximumAdvancement() foundation.Size { + rv := objc.Call[foundation.Size](f_, objc.Sel("maximumAdvancement")) return rv } -// The font descriptor object for the font. [Full Topic] +// The number of glyphs in the font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1530476-fontdescriptor?language=objc -func (f_ Font) FontDescriptor() FontDescriptor { - rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1533968-numberofglyphs?language=objc +func (f_ Font) NumberOfGlyphs() uint { + rv := objc.Call[uint](f_, objc.Sel("numberOfGlyphs")) return rv } -// A vertical version of the font. [Full Topic] +// The x-height of the font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535152-verticalfont?language=objc -func (f_ Font) VerticalFont() Font { - rv := objc.Call[Font](f_, objc.Sel("verticalFont")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1533428-xheight?language=objc +func (f_ Font) XHeight() float64 { + rv := objc.Call[float64](f_, objc.Sel("xHeight")) return rv } -// The leading value of the font. [Full Topic] +// Returns the size of the standard small system font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534083-leading?language=objc -func (f_ Font) Leading() float64 { - rv := objc.Call[float64](f_, objc.Sel("leading")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535612-smallsystemfontsize?language=objc +func (fc _FontClass) SmallSystemFontSize() float64 { + rv := objc.Call[float64](fc, objc.Sel("smallSystemFontSize")) return rv } -// A Boolean value indicating whether the font is a vertical font. [Full Topic] +// Returns the size of the standard small system font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534644-vertical?language=objc -func (f_ Font) IsVertical() bool { - rv := objc.Call[bool](f_, objc.Sel("isVertical")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535612-smallsystemfontsize?language=objc +func Font_SmallSystemFontSize() float64 { + return FontClass.SmallSystemFontSize() +} + +// The point size of the font. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1524511-pointsize?language=objc +func (f_ Font) PointSize() float64 { + rv := objc.Call[float64](f_, objc.Sel("pointSize")) return rv } -// The maximum advance of any of the font’s glyphs. [Full Topic] +// A vertical version of the font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1526023-maximumadvancement?language=objc -func (f_ Font) MaximumAdvancement() foundation.Size { - rv := objc.Call[foundation.Size](f_, objc.Sel("maximumAdvancement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535152-verticalfont?language=objc +func (f_ Font) VerticalFont() Font { + rv := objc.Call[Font](f_, objc.Sel("verticalFont")) return rv } -// The thickness to use when drawing underlines with the font. [Full Topic] +// The font’s bounding rectangle, scaled to the font’s size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531229-underlinethickness?language=objc -func (f_ Font) UnderlineThickness() float64 { - rv := objc.Call[float64](f_, objc.Sel("underlineThickness")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527321-boundingrectforfont?language=objc +func (f_ Font) BoundingRectForFont() foundation.Rect { + rv := objc.Call[foundation.Rect](f_, objc.Sel("boundingRectForFont")) return rv } -// The family name of the font—for example, “Times” or “Helvetica.” [Full Topic] +// The bottom y-coordinate, offset from the baseline, of the font’s longest descender. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529585-familyname?language=objc -func (f_ Font) FamilyName() string { - rv := objc.Call[string](f_, objc.Sel("familyName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1532270-descender?language=objc +func (f_ Font) Descender() float64 { + rv := objc.Call[float64](f_, objc.Sel("descender")) + return rv +} + +// The full name of the font, as used in PostScript language code—for example, “Times-Roman” or “Helvetica-Oblique.” [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1526183-fontname?language=objc +func (f_ Font) FontName() string { + rv := objc.Call[string](f_, objc.Sel("fontName")) return rv } @@ -669,42 +601,65 @@ func (f_ Font) Matrix() *float64 { return rv } -// The bottom y-coordinate, offset from the baseline, of the font’s longest descender. [Full Topic] +// A Boolean value indicating whether the font is a vertical font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1532270-descender?language=objc -func (f_ Font) Descender() float64 { - rv := objc.Call[float64](f_, objc.Sel("descender")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534644-vertical?language=objc +func (f_ Font) IsVertical() bool { + rv := objc.Call[bool](f_, objc.Sel("isVertical")) return rv } -// The x-height of the font. [Full Topic] +// Returns the size of the standard label font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1533428-xheight?language=objc -func (f_ Font) XHeight() float64 { - rv := objc.Call[float64](f_, objc.Sel("xHeight")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534629-labelfontsize?language=objc +func (fc _FontClass) LabelFontSize() float64 { + rv := objc.Call[float64](fc, objc.Sel("labelFontSize")) return rv } -// The top y-coordinate, offset from the baseline, of the font’s longest ascender. [Full Topic] +// Returns the size of the standard label font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535420-ascender?language=objc -func (f_ Font) Ascender() float64 { - rv := objc.Call[float64](f_, objc.Sel("ascender")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534629-labelfontsize?language=objc +func Font_LabelFontSize() float64 { + return FontClass.LabelFontSize() +} + +// The number of degrees that the font is slanted counterclockwise from the vertical. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535194-italicangle?language=objc +func (f_ Font) ItalicAngle() float64 { + rv := objc.Call[float64](f_, objc.Sel("italicAngle")) return rv } -// The character set containing all of the nominal characters that the font can render. [Full Topic] +// The string encoding that works best with the font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1535912-coveredcharacterset?language=objc -func (f_ Font) CoveredCharacterSet() foundation.CharacterSet { - rv := objc.Call[foundation.CharacterSet](f_, objc.Sel("coveredCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1527635-mostcompatiblestringencoding?language=objc +func (f_ Font) MostCompatibleStringEncoding() foundation.StringEncoding { + rv := objc.Call[foundation.StringEncoding](f_, objc.Sel("mostCompatibleStringEncoding")) return rv } -// The point size of the font. [Full Topic] +// The thickness to use when drawing underlines with the font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1524511-pointsize?language=objc -func (f_ Font) PointSize() float64 { - rv := objc.Call[float64](f_, objc.Sel("pointSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531229-underlinethickness?language=objc +func (f_ Font) UnderlineThickness() float64 { + rv := objc.Call[float64](f_, objc.Sel("underlineThickness")) + return rv +} + +// The name of the font, including family and face names, to use when displaying the font information to the user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531660-displayname?language=objc +func (f_ Font) DisplayName() string { + rv := objc.Call[string](f_, objc.Sel("displayName")) + return rv +} + +// The family name of the font—for example, “Times” or “Helvetica.” [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1529585-familyname?language=objc +func (f_ Font) FamilyName() string { + rv := objc.Call[string](f_, objc.Sel("familyName")) return rv } diff --git a/macos/appkit/font_asset_request.gen.go b/macos/appkit/font_asset_request.gen.go index 1a9dec21..72a1b398 100644 --- a/macos/appkit/font_asset_request.gen.go +++ b/macos/appkit/font_asset_request.gen.go @@ -20,8 +20,8 @@ type _FontAssetRequestClass struct { type IFontAssetRequest interface { objc.IObject DownloadFontAssetsWithCompletionHandler(completionHandler func(error foundation.Error) bool) - Progress() foundation.Progress DownloadedFontDescriptors() []FontDescriptor + Progress() foundation.Progress } // [Full Topic] @@ -80,16 +80,16 @@ func (f_ FontAssetRequest) DownloadFontAssetsWithCompletionHandler(completionHan // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontassetrequest/2890804-progress?language=objc -func (f_ FontAssetRequest) Progress() foundation.Progress { - rv := objc.Call[foundation.Progress](f_, objc.Sel("progress")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontassetrequest/2890802-downloadedfontdescriptors?language=objc +func (f_ FontAssetRequest) DownloadedFontDescriptors() []FontDescriptor { + rv := objc.Call[[]FontDescriptor](f_, objc.Sel("downloadedFontDescriptors")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontassetrequest/2890802-downloadedfontdescriptors?language=objc -func (f_ FontAssetRequest) DownloadedFontDescriptors() []FontDescriptor { - rv := objc.Call[[]FontDescriptor](f_, objc.Sel("downloadedFontDescriptors")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontassetrequest/2890804-progress?language=objc +func (f_ FontAssetRequest) Progress() foundation.Progress { + rv := objc.Call[foundation.Progress](f_, objc.Sel("progress")) return rv } diff --git a/macos/appkit/font_changing_protocol.gen.go b/macos/appkit/font_changing_protocol.gen.go index 87599974..f8b67b25 100644 --- a/macos/appkit/font_changing_protocol.gen.go +++ b/macos/appkit/font_changing_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontchanging?language=objc type PFontChanging interface { - // optional - ValidModesForFontPanel(fontPanel FontPanel) FontPanelModeMask - HasValidModesForFontPanel() bool - // optional ChangeFont(sender FontManager) HasChangeFont() bool + + // optional + ValidModesForFontPanel(fontPanel FontPanel) FontPanelModeMask + HasValidModesForFontPanel() bool } // ensure impl type implements protocol interface @@ -27,25 +27,25 @@ type FontChangingObject struct { objc.Object } -func (f_ FontChangingObject) HasValidModesForFontPanel() bool { - return f_.RespondsToSelector(objc.Sel("validModesForFontPanel:")) +func (f_ FontChangingObject) HasChangeFont() bool { + return f_.RespondsToSelector(objc.Sel("changeFont:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontchanging/3005181-validmodesforfontpanel?language=objc -func (f_ FontChangingObject) ValidModesForFontPanel(fontPanel FontPanel) FontPanelModeMask { - rv := objc.Call[FontPanelModeMask](f_, objc.Sel("validModesForFontPanel:"), fontPanel) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontchanging/3005180-changefont?language=objc +func (f_ FontChangingObject) ChangeFont(sender FontManager) { + objc.Call[objc.Void](f_, objc.Sel("changeFont:"), sender) } -func (f_ FontChangingObject) HasChangeFont() bool { - return f_.RespondsToSelector(objc.Sel("changeFont:")) +func (f_ FontChangingObject) HasValidModesForFontPanel() bool { + return f_.RespondsToSelector(objc.Sel("validModesForFontPanel:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontchanging/3005180-changefont?language=objc -func (f_ FontChangingObject) ChangeFont(sender FontManager) { - objc.Call[objc.Void](f_, objc.Sel("changeFont:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontchanging/3005181-validmodesforfontpanel?language=objc +func (f_ FontChangingObject) ValidModesForFontPanel(fontPanel FontPanel) FontPanelModeMask { + rv := objc.Call[FontPanelModeMask](f_, objc.Sel("validModesForFontPanel:"), fontPanel) + return rv } diff --git a/macos/appkit/font_collection.gen.go b/macos/appkit/font_collection.gen.go index 54463f6d..d77cd397 100644 --- a/macos/appkit/font_collection.gen.go +++ b/macos/appkit/font_collection.gen.go @@ -20,7 +20,6 @@ type _FontCollectionClass struct { type IFontCollection interface { objc.IObject MatchingDescriptorsForFamily(family string) []FontDescriptor - MatchingDescriptorsForFamilyOptions(family string, options map[FontCollectionMatchingOptionKey]foundation.INumber) []FontDescriptor MatchingDescriptorsWithOptions(options map[FontCollectionMatchingOptionKey]foundation.INumber) []FontDescriptor ExclusionDescriptors() []FontDescriptor QueryDescriptors() []FontDescriptor @@ -60,6 +59,21 @@ func (f_ FontCollection) Init() FontCollection { return rv } +// Creates a named font collection object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497514-fontcollectionwithname?language=objc +func (fc _FontCollectionClass) FontCollectionWithName(name FontCollectionName) FontCollection { + rv := objc.Call[FontCollection](fc, objc.Sel("fontCollectionWithName:"), name) + return rv +} + +// Creates a named font collection object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497514-fontcollectionwithname?language=objc +func FontCollection_FontCollectionWithName(name FontCollectionName) FontCollection { + return FontCollectionClass.FontCollectionWithName(name) +} + // Returns an array of font descriptors matching the logical descriptors for the given font family. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497496-matchingdescriptorsforfamily?language=objc @@ -83,19 +97,19 @@ func FontCollection_RenameFontCollectionWithNameVisibilityToNameError(oldName Fo return FontCollectionClass.RenameFontCollectionWithNameVisibilityToNameError(oldName, visibility, newName, outError) } -// Returns a font collection matching the given descriptors. [Full Topic] +// Make the given font collection visible by giving it a name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497467-fontcollectionwithdescriptors?language=objc -func (fc _FontCollectionClass) FontCollectionWithDescriptors(queryDescriptors []IFontDescriptor) FontCollection { - rv := objc.Call[FontCollection](fc, objc.Sel("fontCollectionWithDescriptors:"), queryDescriptors) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497512-showfontcollection?language=objc +func (fc _FontCollectionClass) ShowFontCollectionWithNameVisibilityError(collection IFontCollection, name FontCollectionName, visibility FontCollectionVisibility, error unsafe.Pointer) bool { + rv := objc.Call[bool](fc, objc.Sel("showFontCollection:withName:visibility:error:"), collection, name, visibility, error) return rv } -// Returns a font collection matching the given descriptors. [Full Topic] +// Make the given font collection visible by giving it a name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497467-fontcollectionwithdescriptors?language=objc -func FontCollection_FontCollectionWithDescriptors(queryDescriptors []IFontDescriptor) FontCollection { - return FontCollectionClass.FontCollectionWithDescriptors(queryDescriptors) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497512-showfontcollection?language=objc +func FontCollection_ShowFontCollectionWithNameVisibilityError(collection IFontCollection, name FontCollectionName, visibility FontCollectionVisibility, error unsafe.Pointer) bool { + return FontCollectionClass.ShowFontCollectionWithNameVisibilityError(collection, name, visibility, error) } // Remove from view the named font collection with the specified visibility. [Full Topic] @@ -113,27 +127,34 @@ func FontCollection_HideFontCollectionWithNameVisibilityError(name FontCollectio return FontCollectionClass.HideFontCollectionWithNameVisibilityError(name, visibility, error) } -// Returns an array of font descriptors matching the logical descriptors for the given font family and options. [Full Topic] +// Returns a font collection matching the given descriptors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497522-matchingdescriptorsforfamily?language=objc -func (f_ FontCollection) MatchingDescriptorsForFamilyOptions(family string, options map[FontCollectionMatchingOptionKey]foundation.INumber) []FontDescriptor { - rv := objc.Call[[]FontDescriptor](f_, objc.Sel("matchingDescriptorsForFamily:options:"), family, options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497467-fontcollectionwithdescriptors?language=objc +func (fc _FontCollectionClass) FontCollectionWithDescriptors(queryDescriptors []IFontDescriptor) FontCollection { + rv := objc.Call[FontCollection](fc, objc.Sel("fontCollectionWithDescriptors:"), queryDescriptors) return rv } -// Creates a named font collection object. [Full Topic] +// Returns a font collection matching the given descriptors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497514-fontcollectionwithname?language=objc -func (fc _FontCollectionClass) FontCollectionWithName(name FontCollectionName) FontCollection { - rv := objc.Call[FontCollection](fc, objc.Sel("fontCollectionWithName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497467-fontcollectionwithdescriptors?language=objc +func FontCollection_FontCollectionWithDescriptors(queryDescriptors []IFontDescriptor) FontCollection { + return FontCollectionClass.FontCollectionWithDescriptors(queryDescriptors) +} + +// Returns a collection of fonts matching the given locale. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497481-fontcollectionwithlocale?language=objc +func (fc _FontCollectionClass) FontCollectionWithLocale(locale foundation.ILocale) FontCollection { + rv := objc.Call[FontCollection](fc, objc.Sel("fontCollectionWithLocale:"), locale) return rv } -// Creates a named font collection object. [Full Topic] +// Returns a collection of fonts matching the given locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497514-fontcollectionwithname?language=objc -func FontCollection_FontCollectionWithName(name FontCollectionName) FontCollection { - return FontCollectionClass.FontCollectionWithName(name) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497481-fontcollectionwithlocale?language=objc +func FontCollection_FontCollectionWithLocale(locale foundation.ILocale) FontCollection { + return FontCollectionClass.FontCollectionWithLocale(locale) } // Returns an array of font descriptors matching the logical descriptors with the given options. [Full Topic] @@ -144,49 +165,27 @@ func (f_ FontCollection) MatchingDescriptorsWithOptions(options map[FontCollecti return rv } -// Make the given font collection visible by giving it a name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497512-showfontcollection?language=objc -func (fc _FontCollectionClass) ShowFontCollectionWithNameVisibilityError(collection IFontCollection, name FontCollectionName, visibility FontCollectionVisibility, error unsafe.Pointer) bool { - rv := objc.Call[bool](fc, objc.Sel("showFontCollection:withName:visibility:error:"), collection, name, visibility, error) - return rv -} - -// Make the given font collection visible by giving it a name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497512-showfontcollection?language=objc -func FontCollection_ShowFontCollectionWithNameVisibilityError(collection IFontCollection, name FontCollectionName, visibility FontCollectionVisibility, error unsafe.Pointer) bool { - return FontCollectionClass.ShowFontCollectionWithNameVisibilityError(collection, name, visibility, error) -} - -// Returns a collection of fonts matching the given locale. [Full Topic] +// A list of query font descriptors whose matching results are excluded from the list of matching descriptors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497481-fontcollectionwithlocale?language=objc -func (fc _FontCollectionClass) FontCollectionWithLocale(locale foundation.ILocale) FontCollection { - rv := objc.Call[FontCollection](fc, objc.Sel("fontCollectionWithLocale:"), locale) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497456-exclusiondescriptors?language=objc +func (f_ FontCollection) ExclusionDescriptors() []FontDescriptor { + rv := objc.Call[[]FontDescriptor](f_, objc.Sel("exclusionDescriptors")) return rv } -// Returns a collection of fonts matching the given locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497481-fontcollectionwithlocale?language=objc -func FontCollection_FontCollectionWithLocale(locale foundation.ILocale) FontCollection { - return FontCollectionClass.FontCollectionWithLocale(locale) -} - -// Creates a font collection with the specified name and font visibility. [Full Topic] +// The font collection that matches all registered fonts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497475-fontcollectionwithname?language=objc -func (fc _FontCollectionClass) FontCollectionWithNameVisibility(name FontCollectionName, visibility FontCollectionVisibility) FontCollection { - rv := objc.Call[FontCollection](fc, objc.Sel("fontCollectionWithName:visibility:"), name, visibility) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497473-fontcollectionwithallavailablede?language=objc +func (fc _FontCollectionClass) FontCollectionWithAllAvailableDescriptors() FontCollection { + rv := objc.Call[FontCollection](fc, objc.Sel("fontCollectionWithAllAvailableDescriptors")) return rv } -// Creates a font collection with the specified name and font visibility. [Full Topic] +// The font collection that matches all registered fonts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497475-fontcollectionwithname?language=objc -func FontCollection_FontCollectionWithNameVisibility(name FontCollectionName, visibility FontCollectionVisibility) FontCollection { - return FontCollectionClass.FontCollectionWithNameVisibility(name, visibility) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497473-fontcollectionwithallavailablede?language=objc +func FontCollection_FontCollectionWithAllAvailableDescriptors() FontCollection { + return FontCollectionClass.FontCollectionWithAllAvailableDescriptors() } // Returns all named collections visible to this process. [Full Topic] @@ -204,14 +203,6 @@ func FontCollection_AllFontCollectionNames() []FontCollectionName { return FontCollectionClass.AllFontCollectionNames() } -// A list of query font descriptors whose matching results are excluded from the list of matching descriptors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497456-exclusiondescriptors?language=objc -func (f_ FontCollection) ExclusionDescriptors() []FontDescriptor { - rv := objc.Call[[]FontDescriptor](f_, objc.Sel("exclusionDescriptors")) - return rv -} - // An array of font descriptors whose matching results produce the collection’s matching descriptors. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497441-querydescriptors?language=objc @@ -220,21 +211,6 @@ func (f_ FontCollection) QueryDescriptors() []FontDescriptor { return rv } -// The font collection that matches all registered fonts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497473-fontcollectionwithallavailablede?language=objc -func (fc _FontCollectionClass) FontCollectionWithAllAvailableDescriptors() FontCollection { - rv := objc.Call[FontCollection](fc, objc.Sel("fontCollectionWithAllAvailableDescriptors")) - return rv -} - -// The font collection that matches all registered fonts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497473-fontcollectionwithallavailablede?language=objc -func FontCollection_FontCollectionWithAllAvailableDescriptors() FontCollection { - return FontCollectionClass.FontCollectionWithAllAvailableDescriptors() -} - // An array of font descriptors matching the logical descriptors. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497523-matchingdescriptors?language=objc diff --git a/macos/appkit/font_descriptor.gen.go b/macos/appkit/font_descriptor.gen.go index 1b38ca15..15c1e8be 100644 --- a/macos/appkit/font_descriptor.gen.go +++ b/macos/appkit/font_descriptor.gen.go @@ -19,20 +19,20 @@ type _FontDescriptorClass struct { // An interface definition for the [FontDescriptor] class. type IFontDescriptor interface { objc.IObject - FontDescriptorWithFace(newFace string) FontDescriptor - FontDescriptorWithFamily(newFamily string) FontDescriptor - FontDescriptorWithSize(newPointSize float64) FontDescriptor - MatchingFontDescriptorWithMandatoryKeys(mandatoryKeys foundation.ISet) FontDescriptor ObjectForKey(attribute FontDescriptorAttributeName) objc.Object - FontDescriptorByAddingAttributes(attributes map[FontDescriptorAttributeName]objc.IObject) FontDescriptor - FontDescriptorWithMatrix(matrix foundation.IAffineTransform) FontDescriptor + MatchingFontDescriptorWithMandatoryKeys(mandatoryKeys foundation.ISet) FontDescriptor FontDescriptorWithSymbolicTraits(symbolicTraits FontDescriptorSymbolicTraits) FontDescriptor + FontDescriptorByAddingAttributes(attributes map[FontDescriptorAttributeName]objc.IObject) FontDescriptor + FontDescriptorWithFace(newFace string) FontDescriptor + FontDescriptorWithSize(newPointSize float64) FontDescriptor + FontDescriptorWithFamily(newFamily string) FontDescriptor MatchingFontDescriptorsWithMandatoryKeys(mandatoryKeys foundation.ISet) []FontDescriptor - SymbolicTraits() FontDescriptorSymbolicTraits + FontDescriptorWithMatrix(matrix foundation.IAffineTransform) FontDescriptor FontAttributes() map[FontDescriptorAttributeName]objc.Object - Matrix() foundation.AffineTransform - PointSize() float64 RequiresFontAssetRequest() bool + PointSize() float64 + Matrix() foundation.AffineTransform + SymbolicTraits() FontDescriptorSymbolicTraits PostscriptName() string } @@ -97,28 +97,27 @@ func (f_ FontDescriptor) Init() FontDescriptor { return rv } -// Returns a new font descriptor based on the current object, but with the specified face. [Full Topic] +// Returns the font attribute specified by the given key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469928-fontdescriptorwithface?language=objc -func (f_ FontDescriptor) FontDescriptorWithFace(newFace string) FontDescriptor { - rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithFace:"), newFace) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469837-objectforkey?language=objc +func (f_ FontDescriptor) ObjectForKey(attribute FontDescriptorAttributeName) objc.Object { + rv := objc.Call[objc.Object](f_, objc.Sel("objectForKey:"), attribute) return rv } -// Returns a new font descriptor based on the current object, but with the specified font family. [Full Topic] +// Returns a font descriptor with the name and size attributes set to the given values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469866-fontdescriptorwithfamily?language=objc -func (f_ FontDescriptor) FontDescriptorWithFamily(newFamily string) FontDescriptor { - rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithFamily:"), newFamily) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469912-fontdescriptorwithname?language=objc +func (fc _FontDescriptorClass) FontDescriptorWithNameSize(fontName string, size float64) FontDescriptor { + rv := objc.Call[FontDescriptor](fc, objc.Sel("fontDescriptorWithName:size:"), fontName, size) return rv } -// Returns a new font descriptor based on the current object, but with the specified point size. [Full Topic] +// Returns a font descriptor with the name and size attributes set to the given values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469835-fontdescriptorwithsize?language=objc -func (f_ FontDescriptor) FontDescriptorWithSize(newPointSize float64) FontDescriptor { - rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithSize:"), newPointSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469912-fontdescriptorwithname?language=objc +func FontDescriptor_FontDescriptorWithNameSize(fontName string, size float64) FontDescriptor { + return FontDescriptorClass.FontDescriptorWithNameSize(fontName, size) } // Returns a normalized font descriptor whose specified attributes match those of the receiver. [Full Topic] @@ -129,43 +128,19 @@ func (f_ FontDescriptor) MatchingFontDescriptorWithMandatoryKeys(mandatoryKeys f return rv } -// Returns the font attribute specified by the given key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469837-objectforkey?language=objc -func (f_ FontDescriptor) ObjectForKey(attribute FontDescriptorAttributeName) objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("objectForKey:"), attribute) - return rv -} - -// Returns a new font descriptor based on the current object, but with the specified attributes taking precedence over the existing ones. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469987-fontdescriptorbyaddingattributes?language=objc -func (f_ FontDescriptor) FontDescriptorByAddingAttributes(attributes map[FontDescriptorAttributeName]objc.IObject) FontDescriptor { - rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorByAddingAttributes:"), attributes) - return rv -} - -// Returns a new font descriptor based on the current object, but with the specified font matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469983-fontdescriptorwithmatrix?language=objc -func (f_ FontDescriptor) FontDescriptorWithMatrix(matrix foundation.IAffineTransform) FontDescriptor { - rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithMatrix:"), matrix) - return rv -} - -// Returns a font descriptor with the name and matrix attributes set to the given values. [Full Topic] +// Returns a font descriptor with a dictionary of attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469942-fontdescriptorwithname?language=objc -func (fc _FontDescriptorClass) FontDescriptorWithNameMatrix(fontName string, matrix foundation.IAffineTransform) FontDescriptor { - rv := objc.Call[FontDescriptor](fc, objc.Sel("fontDescriptorWithName:matrix:"), fontName, matrix) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469856-fontdescriptorwithfontattributes?language=objc +func (fc _FontDescriptorClass) FontDescriptorWithFontAttributes(attributes map[FontDescriptorAttributeName]objc.IObject) FontDescriptor { + rv := objc.Call[FontDescriptor](fc, objc.Sel("fontDescriptorWithFontAttributes:"), attributes) return rv } -// Returns a font descriptor with the name and matrix attributes set to the given values. [Full Topic] +// Returns a font descriptor with a dictionary of attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469942-fontdescriptorwithname?language=objc -func FontDescriptor_FontDescriptorWithNameMatrix(fontName string, matrix foundation.IAffineTransform) FontDescriptor { - return FontDescriptorClass.FontDescriptorWithNameMatrix(fontName, matrix) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469856-fontdescriptorwithfontattributes?language=objc +func FontDescriptor_FontDescriptorWithFontAttributes(attributes map[FontDescriptorAttributeName]objc.IObject) FontDescriptor { + return FontDescriptorClass.FontDescriptorWithFontAttributes(attributes) } // Returns a new font descriptor based on the current object, but with the specified symbolic traits taking precedence over the existing ones. [Full Topic] @@ -176,6 +151,14 @@ func (f_ FontDescriptor) FontDescriptorWithSymbolicTraits(symbolicTraits FontDes return rv } +// Returns a new font descriptor based on the current object, but with the specified attributes taking precedence over the existing ones. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469987-fontdescriptorbyaddingattributes?language=objc +func (f_ FontDescriptor) FontDescriptorByAddingAttributes(attributes map[FontDescriptorAttributeName]objc.IObject) FontDescriptor { + rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorByAddingAttributes:"), attributes) + return rv +} + // Returns a font descriptor that contains the text style. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/3553196-preferredfontdescriptorfortextst?language=objc @@ -191,34 +174,28 @@ func FontDescriptor_PreferredFontDescriptorForTextStyleOptions(style FontTextSty return FontDescriptorClass.PreferredFontDescriptorForTextStyleOptions(style, options) } -// Returns a font descriptor with a dictionary of attributes. [Full Topic] +// Returns a new font descriptor based on the current object, but with the specified face. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469856-fontdescriptorwithfontattributes?language=objc -func (fc _FontDescriptorClass) FontDescriptorWithFontAttributes(attributes map[FontDescriptorAttributeName]objc.IObject) FontDescriptor { - rv := objc.Call[FontDescriptor](fc, objc.Sel("fontDescriptorWithFontAttributes:"), attributes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469928-fontdescriptorwithface?language=objc +func (f_ FontDescriptor) FontDescriptorWithFace(newFace string) FontDescriptor { + rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithFace:"), newFace) return rv } -// Returns a font descriptor with a dictionary of attributes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469856-fontdescriptorwithfontattributes?language=objc -func FontDescriptor_FontDescriptorWithFontAttributes(attributes map[FontDescriptorAttributeName]objc.IObject) FontDescriptor { - return FontDescriptorClass.FontDescriptorWithFontAttributes(attributes) -} - -// Returns a font descriptor with the name and size attributes set to the given values. [Full Topic] +// Returns a new font descriptor based on the current object, but with the specified point size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469912-fontdescriptorwithname?language=objc -func (fc _FontDescriptorClass) FontDescriptorWithNameSize(fontName string, size float64) FontDescriptor { - rv := objc.Call[FontDescriptor](fc, objc.Sel("fontDescriptorWithName:size:"), fontName, size) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469835-fontdescriptorwithsize?language=objc +func (f_ FontDescriptor) FontDescriptorWithSize(newPointSize float64) FontDescriptor { + rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithSize:"), newPointSize) return rv } -// Returns a font descriptor with the name and size attributes set to the given values. [Full Topic] +// Returns a new font descriptor based on the current object, but with the specified font family. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469912-fontdescriptorwithname?language=objc -func FontDescriptor_FontDescriptorWithNameSize(fontName string, size float64) FontDescriptor { - return FontDescriptorClass.FontDescriptorWithNameSize(fontName, size) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469866-fontdescriptorwithfamily?language=objc +func (f_ FontDescriptor) FontDescriptorWithFamily(newFamily string) FontDescriptor { + rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithFamily:"), newFamily) + return rv } // Returns all the fonts available on the system whose specified attributes match those of the receiver. [Full Topic] @@ -229,11 +206,11 @@ func (f_ FontDescriptor) MatchingFontDescriptorsWithMandatoryKeys(mandatoryKeys return rv } -// A bit mask that describes the traits of the receiver. [Full Topic] +// Returns a new font descriptor based on the current object, but with the specified font matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469858-symbolictraits?language=objc -func (f_ FontDescriptor) SymbolicTraits() FontDescriptorSymbolicTraits { - rv := objc.Call[FontDescriptorSymbolicTraits](f_, objc.Sel("symbolicTraits")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469983-fontdescriptorwithmatrix?language=objc +func (f_ FontDescriptor) FontDescriptorWithMatrix(matrix foundation.IAffineTransform) FontDescriptor { + rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithMatrix:"), matrix) return rv } @@ -245,11 +222,11 @@ func (f_ FontDescriptor) FontAttributes() map[FontDescriptorAttributeName]objc.O return rv } -// The current transform matrix of the receiver. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469950-matrix?language=objc -func (f_ FontDescriptor) Matrix() foundation.AffineTransform { - rv := objc.Call[foundation.AffineTransform](f_, objc.Sel("matrix")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/2890793-requiresfontassetrequest?language=objc +func (f_ FontDescriptor) RequiresFontAssetRequest() bool { + rv := objc.Call[bool](f_, objc.Sel("requiresFontAssetRequest")) return rv } @@ -261,11 +238,19 @@ func (f_ FontDescriptor) PointSize() float64 { return rv } -// [Full Topic] +// The current transform matrix of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/2890793-requiresfontassetrequest?language=objc -func (f_ FontDescriptor) RequiresFontAssetRequest() bool { - rv := objc.Call[bool](f_, objc.Sel("requiresFontAssetRequest")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469950-matrix?language=objc +func (f_ FontDescriptor) Matrix() foundation.AffineTransform { + rv := objc.Call[foundation.AffineTransform](f_, objc.Sel("matrix")) + return rv +} + +// A bit mask that describes the traits of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469858-symbolictraits?language=objc +func (f_ FontDescriptor) SymbolicTraits() FontDescriptorSymbolicTraits { + rv := objc.Call[FontDescriptorSymbolicTraits](f_, objc.Sel("symbolicTraits")) return rv } diff --git a/macos/appkit/font_manager.gen.go b/macos/appkit/font_manager.gen.go index 4677fb6c..f5935f23 100644 --- a/macos/appkit/font_manager.gen.go +++ b/macos/appkit/font_manager.gen.go @@ -18,45 +18,40 @@ type _FontManagerClass struct { // An interface definition for the [FontManager] class. type IFontManager interface { objc.IObject - FontWithFamilyTraitsWeightSize(family string, traits FontTraitMask, weight int, size float64) Font - ConvertFontToFace(fontObj IFont, typeface string) Font - ConvertFontToSize(fontObj IFont, size float64) Font - SetSelectedFontIsMultiple(fontObj IFont, flag bool) - OrderFrontStylesPanel(sender objc.IObject) - ConvertFont(fontObj IFont) Font - ConvertAttributes(attributes map[string]objc.IObject) map[string]objc.Object - FontNamedHasTraits(fName string, someTraits FontTraitMask) bool + SendAction() bool + ConvertFontTraits(traits FontTraitMask) FontTraitMask + AvailableFontNamesWithTraits(someTraits FontTraitMask) []string LocalizedNameForFamilyFace(family string, faceKey string) string - OrderFrontFontPanel(sender objc.IObject) + ConvertAttributes(attributes map[string]objc.IObject) map[string]objc.Object WeightOfFont(fontObj IFont) int - ConvertFontToFamily(fontObj IFont, family string) Font - SetSelectedAttributesIsMultiple(attributes map[string]objc.IObject, flag bool) - ConvertWeightOfFont(upFlag bool, fontObj IFont) Font - ConvertFontTraits(traits FontTraitMask) FontTraitMask - AddFontTrait(sender objc.IObject) + SetFontMenu(newMenu IMenu) TraitsOfFont(fontObj IFont) FontTraitMask RemoveFontTrait(sender objc.IObject) - SetFontMenu(newMenu IMenu) + OrderFrontFontPanel(sender objc.IObject) + AddFontTrait(sender objc.IObject) + ModifyFont(sender objc.IObject) + ConvertWeightOfFont(upFlag bool, fontObj IFont) Font + OrderFrontStylesPanel(sender objc.IObject) + SetSelectedAttributesIsMultiple(attributes map[string]objc.IObject, flag bool) FontMenu(create bool) Menu + ConvertFontToSize(fontObj IFont, size float64) Font + FontWithFamilyTraitsWeightSize(family string, traits FontTraitMask, weight int, size float64) Font + SetSelectedFontIsMultiple(fontObj IFont, flag bool) FontPanel(create bool) FontPanel - ConvertFontToHaveTrait(fontObj IFont, trait FontTraitMask) Font - AvailableFontNamesWithTraits(someTraits FontTraitMask) []string + FontNamedHasTraits(fName string, someTraits FontTraitMask) bool ModifyFontViaPanel(sender objc.IObject) - ConvertFontToNotHaveTrait(fontObj IFont, trait FontTraitMask) Font - ModifyFont(sender objc.IObject) AvailableMembersOfFontFamily(fam string) [][]objc.Object - SendAction() bool CurrentFontAction() FontAction - AvailableFonts() []string - SelectedFont() Font - IsEnabled() bool - SetEnabled(value bool) - IsMultiple() bool Target() objc.Object SetTarget(value objc.IObject) - AvailableFontFamilies() []string Action() objc.Selector SetAction(value objc.Selector) + IsMultiple() bool + AvailableFontFamilies() []string + SelectedFont() Font + IsEnabled() bool + SetEnabled(value bool) + AvailableFonts() []string } // The center of activity for the font-conversion system. [Full Topic] @@ -92,49 +87,35 @@ func (f_ FontManager) Init() FontManager { return rv } -// Attempts to load a font with the specified characteristics. [Full Topic] +// A Boolean value that indicates whether a responder handled the font manager’s action message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462332-fontwithfamily?language=objc -func (f_ FontManager) FontWithFamilyTraitsWeightSize(family string, traits FontTraitMask, weight int, size float64) Font { - rv := objc.Call[Font](f_, objc.Sel("fontWithFamily:traits:weight:size:"), family, traits, weight, size) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462386-sendaction?language=objc +func (f_ FontManager) SendAction() bool { + rv := objc.Call[bool](f_, objc.Sel("sendAction")) return rv } -// Returns a font whose traits are as similar as possible to those of the given font except for the typeface, which is changed to the given typeface. [Full Topic] +// Converts font traits to a new traits mask value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462309-convertfont?language=objc -func (f_ FontManager) ConvertFontToFace(fontObj IFont, typeface string) Font { - rv := objc.Call[Font](f_, objc.Sel("convertFont:toFace:"), fontObj, typeface) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462274-convertfonttraits?language=objc +func (f_ FontManager) ConvertFontTraits(traits FontTraitMask) FontTraitMask { + rv := objc.Call[FontTraitMask](f_, objc.Sel("convertFontTraits:"), traits) return rv } -// Returns a font object whose traits are the same as those of the given font, except for the size, which is changed to the given size. [Full Topic] +// Returns the names of the fonts available in the system whose traits are described exactly by the given font trait mask (not the NSFont objects themselves). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462378-convertfont?language=objc -func (f_ FontManager) ConvertFontToSize(fontObj IFont, size float64) Font { - rv := objc.Call[Font](f_, objc.Sel("convertFont:toSize:"), fontObj, size) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462329-availablefontnameswithtraits?language=objc +func (f_ FontManager) AvailableFontNamesWithTraits(someTraits FontTraitMask) []string { + rv := objc.Call[[]string](f_, objc.Sel("availableFontNamesWithTraits:"), someTraits) return rv } -// Records the specified font as the currently selected font and updates the Font panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462398-setselectedfont?language=objc -func (f_ FontManager) SetSelectedFontIsMultiple(fontObj IFont, flag bool) { - objc.Call[objc.Void](f_, objc.Sel("setSelectedFont:isMultiple:"), fontObj, flag) -} - -// Opens the Font Styles panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462392-orderfrontstylespanel?language=objc -func (f_ FontManager) OrderFrontStylesPanel(sender objc.IObject) { - objc.Call[objc.Void](f_, objc.Sel("orderFrontStylesPanel:"), sender) -} - -// Converts the given font according to the object that initiated a font change, typically the Font panel or Font menu. [Full Topic] +// Returns a localized string with the name of the specified font family and face, if one exists. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462293-convertfont?language=objc -func (f_ FontManager) ConvertFont(fontObj IFont) Font { - rv := objc.Call[Font](f_, objc.Sel("convertFont:"), fontObj) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462277-localizednameforfamily?language=objc +func (f_ FontManager) LocalizedNameForFamilyFace(family string, faceKey string) string { + rv := objc.Call[string](f_, objc.Sel("localizedNameForFamily:face:"), family, faceKey) return rv } @@ -146,22 +127,36 @@ func (f_ FontManager) ConvertAttributes(attributes map[string]objc.IObject) map[ return rv } -// Indicates whether the given font has all the specified traits. [Full Topic] +// Returns an approximation of the specified font's weight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462327-fontnamed?language=objc -func (f_ FontManager) FontNamedHasTraits(fName string, someTraits FontTraitMask) bool { - rv := objc.Call[bool](f_, objc.Sel("fontNamed:hasTraits:"), fName, someTraits) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462351-weightoffont?language=objc +func (f_ FontManager) WeightOfFont(fontObj IFont) int { + rv := objc.Call[int](f_, objc.Sel("weightOfFont:"), fontObj) return rv } -// Returns a localized string with the name of the specified font family and face, if one exists. [Full Topic] +// Records the given menu as the application’s Font menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462277-localizednameforfamily?language=objc -func (f_ FontManager) LocalizedNameForFamilyFace(family string, faceKey string) string { - rv := objc.Call[string](f_, objc.Sel("localizedNameForFamily:face:"), family, faceKey) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462381-setfontmenu?language=objc +func (f_ FontManager) SetFontMenu(newMenu IMenu) { + objc.Call[objc.Void](f_, objc.Sel("setFontMenu:"), newMenu) +} + +// Returns the traits of the given font. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462374-traitsoffont?language=objc +func (f_ FontManager) TraitsOfFont(fontObj IFont) FontTraitMask { + rv := objc.Call[FontTraitMask](f_, objc.Sel("traitsOfFont:"), fontObj) return rv } +// Removes a trait from the font. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462276-removefonttrait?language=objc +func (f_ FontManager) RemoveFontTrait(sender objc.IObject) { + objc.Call[objc.Void](f_, objc.Sel("removeFontTrait:"), sender) +} + // Opens the Font panel, creating it if necessary, and displays that panel in front of the app's windows. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462384-orderfrontfontpanel?language=objc @@ -169,22 +164,35 @@ func (f_ FontManager) OrderFrontFontPanel(sender objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("orderFrontFontPanel:"), sender) } -// Returns an approximation of the specified font's weight. [Full Topic] +// Adds a trait to the font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462351-weightoffont?language=objc -func (f_ FontManager) WeightOfFont(fontObj IFont) int { - rv := objc.Call[int](f_, objc.Sel("weightOfFont:"), fontObj) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462320-addfonttrait?language=objc +func (f_ FontManager) AddFontTrait(sender objc.IObject) { + objc.Call[objc.Void](f_, objc.Sel("addFontTrait:"), sender) +} + +// Modifies a trait of the font. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462353-modifyfont?language=objc +func (f_ FontManager) ModifyFont(sender objc.IObject) { + objc.Call[objc.Void](f_, objc.Sel("modifyFont:"), sender) } -// Returns a font whose traits are as similar as possible to those of the given font except for the font family, which is changed to the given family. [Full Topic] +// Returns a font object whose weight is greater or lesser than that of the given font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462318-convertfont?language=objc -func (f_ FontManager) ConvertFontToFamily(fontObj IFont, family string) Font { - rv := objc.Call[Font](f_, objc.Sel("convertFont:toFamily:"), fontObj, family) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462321-convertweight?language=objc +func (f_ FontManager) ConvertWeightOfFont(upFlag bool, fontObj IFont) Font { + rv := objc.Call[Font](f_, objc.Sel("convertWeight:ofFont:"), upFlag, fontObj) return rv } +// Opens the Font Styles panel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462392-orderfrontstylespanel?language=objc +func (f_ FontManager) OrderFrontStylesPanel(sender objc.IObject) { + objc.Call[objc.Void](f_, objc.Sel("orderFrontStylesPanel:"), sender) +} + // Informs the Font panel that the specified font attributes changed for the selected text. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462270-setselectedattributes?language=objc @@ -192,11 +200,11 @@ func (f_ FontManager) SetSelectedAttributesIsMultiple(attributes map[string]objc objc.Call[objc.Void](f_, objc.Sel("setSelectedAttributes:isMultiple:"), attributes, flag) } -// Returns a font object whose weight is greater or lesser than that of the given font. [Full Topic] +// Returns the menu that’s connected to the font conversion system, creating it if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462321-convertweight?language=objc -func (f_ FontManager) ConvertWeightOfFont(upFlag bool, fontObj IFont) Font { - rv := objc.Call[Font](f_, objc.Sel("convertWeight:ofFont:"), upFlag, fontObj) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462337-fontmenu?language=objc +func (f_ FontManager) FontMenu(create bool) Menu { + rv := objc.Call[Menu](f_, objc.Sel("fontMenu:"), create) return rv } @@ -214,49 +222,27 @@ func FontManager_SetFontPanelFactory(factoryId objc.IClass) { FontManagerClass.SetFontPanelFactory(factoryId) } -// Converts font traits to a new traits mask value. [Full Topic] +// Returns a font object whose traits are the same as those of the given font, except for the size, which is changed to the given size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462274-convertfonttraits?language=objc -func (f_ FontManager) ConvertFontTraits(traits FontTraitMask) FontTraitMask { - rv := objc.Call[FontTraitMask](f_, objc.Sel("convertFontTraits:"), traits) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462378-convertfont?language=objc +func (f_ FontManager) ConvertFontToSize(fontObj IFont, size float64) Font { + rv := objc.Call[Font](f_, objc.Sel("convertFont:toSize:"), fontObj, size) return rv } -// Adds a trait to the font. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462320-addfonttrait?language=objc -func (f_ FontManager) AddFontTrait(sender objc.IObject) { - objc.Call[objc.Void](f_, objc.Sel("addFontTrait:"), sender) -} - -// Returns the traits of the given font. [Full Topic] +// Attempts to load a font with the specified characteristics. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462374-traitsoffont?language=objc -func (f_ FontManager) TraitsOfFont(fontObj IFont) FontTraitMask { - rv := objc.Call[FontTraitMask](f_, objc.Sel("traitsOfFont:"), fontObj) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462332-fontwithfamily?language=objc +func (f_ FontManager) FontWithFamilyTraitsWeightSize(family string, traits FontTraitMask, weight int, size float64) Font { + rv := objc.Call[Font](f_, objc.Sel("fontWithFamily:traits:weight:size:"), family, traits, weight, size) return rv } -// Removes a trait from the font. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462276-removefonttrait?language=objc -func (f_ FontManager) RemoveFontTrait(sender objc.IObject) { - objc.Call[objc.Void](f_, objc.Sel("removeFontTrait:"), sender) -} - -// Records the given menu as the application’s Font menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462381-setfontmenu?language=objc -func (f_ FontManager) SetFontMenu(newMenu IMenu) { - objc.Call[objc.Void](f_, objc.Sel("setFontMenu:"), newMenu) -} - -// Returns the menu that’s connected to the font conversion system, creating it if necessary. [Full Topic] +// Records the specified font as the currently selected font and updates the Font panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462337-fontmenu?language=objc -func (f_ FontManager) FontMenu(create bool) Menu { - rv := objc.Call[Menu](f_, objc.Sel("fontMenu:"), create) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462398-setselectedfont?language=objc +func (f_ FontManager) SetSelectedFontIsMultiple(fontObj IFont, flag bool) { + objc.Call[objc.Void](f_, objc.Sel("setSelectedFont:isMultiple:"), fontObj, flag) } // Returns the application’s shared Font panel object, creating it if necessary. [Full Topic] @@ -267,22 +253,6 @@ func (f_ FontManager) FontPanel(create bool) FontPanel { return rv } -// Returns a new version of the font object containing a single additional trait. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462345-convertfont?language=objc -func (f_ FontManager) ConvertFontToHaveTrait(fontObj IFont, trait FontTraitMask) Font { - rv := objc.Call[Font](f_, objc.Sel("convertFont:toHaveTrait:"), fontObj, trait) - return rv -} - -// Returns the names of the fonts available in the system whose traits are described exactly by the given font trait mask (not the NSFont objects themselves). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462329-availablefontnameswithtraits?language=objc -func (f_ FontManager) AvailableFontNamesWithTraits(someTraits FontTraitMask) []string { - rv := objc.Call[[]string](f_, objc.Sel("availableFontNamesWithTraits:"), someTraits) - return rv -} - // Sets the class that creates the shared font manager object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462402-setfontmanagerfactory?language=objc @@ -297,26 +267,19 @@ func FontManager_SetFontManagerFactory(factoryId objc.IClass) { FontManagerClass.SetFontManagerFactory(factoryId) } -// Modifies a font trait using input from the Font panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462355-modifyfontviapanel?language=objc -func (f_ FontManager) ModifyFontViaPanel(sender objc.IObject) { - objc.Call[objc.Void](f_, objc.Sel("modifyFontViaPanel:"), sender) -} - -// Returns a new version of a font object without the specified traits. [Full Topic] +// Indicates whether the given font has all the specified traits. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462364-convertfont?language=objc -func (f_ FontManager) ConvertFontToNotHaveTrait(fontObj IFont, trait FontTraitMask) Font { - rv := objc.Call[Font](f_, objc.Sel("convertFont:toNotHaveTrait:"), fontObj, trait) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462327-fontnamed?language=objc +func (f_ FontManager) FontNamedHasTraits(fName string, someTraits FontTraitMask) bool { + rv := objc.Call[bool](f_, objc.Sel("fontNamed:hasTraits:"), fName, someTraits) return rv } -// Modifies a trait of the font. [Full Topic] +// Modifies a font trait using input from the Font panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462353-modifyfont?language=objc -func (f_ FontManager) ModifyFont(sender objc.IObject) { - objc.Call[objc.Void](f_, objc.Sel("modifyFont:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462355-modifyfontviapanel?language=objc +func (f_ FontManager) ModifyFontViaPanel(sender objc.IObject) { + objc.Call[objc.Void](f_, objc.Sel("modifyFontViaPanel:"), sender) } // Returns an array with one entry for each available member of a font family. [Full Topic] @@ -327,14 +290,6 @@ func (f_ FontManager) AvailableMembersOfFontFamily(fam string) [][]objc.Object { return rv } -// A Boolean value that indicates whether a responder handled the font manager’s action message. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462386-sendaction?language=objc -func (f_ FontManager) SendAction() bool { - rv := objc.Call[bool](f_, objc.Sel("sendAction")) - return rv -} - // The current font conversion action. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462362-currentfontaction?language=objc @@ -343,35 +298,34 @@ func (f_ FontManager) CurrentFontAction() FontAction { return rv } -// The names of the fonts available in the system (not the NSFont objects themselves). [Full Topic] +// The object that receives action messages related to the font manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462372-availablefonts?language=objc -func (f_ FontManager) AvailableFonts() []string { - rv := objc.Call[[]string](f_, objc.Sel("availableFonts")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462380-target?language=objc +func (f_ FontManager) Target() objc.Object { + rv := objc.Call[objc.Object](f_, objc.Sel("target")) return rv } -// The currently selected font object. [Full Topic] +// The object that receives action messages related to the font manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462268-selectedfont?language=objc -func (f_ FontManager) SelectedFont() Font { - rv := objc.Call[Font](f_, objc.Sel("selectedFont")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462380-target?language=objc +func (f_ FontManager) SetTarget(value objc.IObject) { + objc.Call[objc.Void](f_, objc.Sel("setTarget:"), value) } -// A Boolean value that indicates whether the font conversion system’s Font panel and Font menu items are enabled. [Full Topic] +// The action sent to the first responder when the user selects a new font from the Font panel or chooses a command from the Font menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462341-enabled?language=objc -func (f_ FontManager) IsEnabled() bool { - rv := objc.Call[bool](f_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462349-action?language=objc +func (f_ FontManager) Action() objc.Selector { + rv := objc.Call[objc.Selector](f_, objc.Sel("action")) return rv } -// A Boolean value that indicates whether the font conversion system’s Font panel and Font menu items are enabled. [Full Topic] +// The action sent to the first responder when the user selects a new font from the Font panel or chooses a command from the Font menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462341-enabled?language=objc -func (f_ FontManager) SetEnabled(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462349-action?language=objc +func (f_ FontManager) SetAction(value objc.Selector) { + objc.Call[objc.Void](f_, objc.Sel("setAction:"), value) } // A Boolean value that indicates whether the currently selected font has multiple fonts. [Full Topic] @@ -382,19 +336,19 @@ func (f_ FontManager) IsMultiple() bool { return rv } -// The object that receives action messages related to the font manager. [Full Topic] +// Returns the shared instance of the font manager for the application, creating it if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462380-target?language=objc -func (f_ FontManager) Target() objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("target")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462360-sharedfontmanager?language=objc +func (fc _FontManagerClass) SharedFontManager() FontManager { + rv := objc.Call[FontManager](fc, objc.Sel("sharedFontManager")) return rv } -// The object that receives action messages related to the font manager. [Full Topic] +// Returns the shared instance of the font manager for the application, creating it if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462380-target?language=objc -func (f_ FontManager) SetTarget(value objc.IObject) { - objc.Call[objc.Void](f_, objc.Sel("setTarget:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462360-sharedfontmanager?language=objc +func FontManager_SharedFontManager() FontManager { + return FontManagerClass.SharedFontManager() } // The names of the font families available in the system. [Full Topic] @@ -405,32 +359,33 @@ func (f_ FontManager) AvailableFontFamilies() []string { return rv } -// Returns the shared instance of the font manager for the application, creating it if necessary. [Full Topic] +// The currently selected font object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462360-sharedfontmanager?language=objc -func (fc _FontManagerClass) SharedFontManager() FontManager { - rv := objc.Call[FontManager](fc, objc.Sel("sharedFontManager")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462268-selectedfont?language=objc +func (f_ FontManager) SelectedFont() Font { + rv := objc.Call[Font](f_, objc.Sel("selectedFont")) return rv } -// Returns the shared instance of the font manager for the application, creating it if necessary. [Full Topic] +// A Boolean value that indicates whether the font conversion system’s Font panel and Font menu items are enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462360-sharedfontmanager?language=objc -func FontManager_SharedFontManager() FontManager { - return FontManagerClass.SharedFontManager() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462341-enabled?language=objc +func (f_ FontManager) IsEnabled() bool { + rv := objc.Call[bool](f_, objc.Sel("isEnabled")) + return rv } -// The action sent to the first responder when the user selects a new font from the Font panel or chooses a command from the Font menu. [Full Topic] +// A Boolean value that indicates whether the font conversion system’s Font panel and Font menu items are enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462349-action?language=objc -func (f_ FontManager) Action() objc.Selector { - rv := objc.Call[objc.Selector](f_, objc.Sel("action")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462341-enabled?language=objc +func (f_ FontManager) SetEnabled(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setEnabled:"), value) } -// The action sent to the first responder when the user selects a new font from the Font panel or chooses a command from the Font menu. [Full Topic] +// The names of the fonts available in the system (not the NSFont objects themselves). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462349-action?language=objc -func (f_ FontManager) SetAction(value objc.Selector) { - objc.Call[objc.Void](f_, objc.Sel("setAction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462372-availablefonts?language=objc +func (f_ FontManager) AvailableFonts() []string { + rv := objc.Call[[]string](f_, objc.Sel("availableFonts")) + return rv } diff --git a/macos/appkit/font_panel.gen.go b/macos/appkit/font_panel.gen.go index f01ee98c..04187fa6 100644 --- a/macos/appkit/font_panel.gen.go +++ b/macos/appkit/font_panel.gen.go @@ -19,13 +19,13 @@ type _FontPanelClass struct { // An interface definition for the [FontPanel] class. type IFontPanel interface { IPanel - ReloadDefaultFontFamilies() - SetPanelFontIsMultiple(fontObj IFont, flag bool) PanelConvertFont(fontObj IFont) Font - IsEnabled() bool - SetEnabled(value bool) + SetPanelFontIsMultiple(fontObj IFont, flag bool) + ReloadDefaultFontFamilies() AccessoryView() View SetAccessoryView(value IView) + IsEnabled() bool + SetEnabled(value bool) } // The Font panel—a user interface object that displays a list of available fonts, letting the user preview them and change the font used to display text. [Full Topic] @@ -87,18 +87,19 @@ func NewFontPanelWithContentRectStyleMaskBackingDeferScreen(contentRect foundati return instance } -func (f_ FontPanel) InitWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) FontPanel { - rv := objc.Call[FontPanel](f_, objc.Sel("initWithContentRect:styleMask:backing:defer:"), contentRect, style, backingStoreType, flag) +// Converts the specified font using the settings in the receiver, with the aid of the shared NSFontManager if necessary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1535338-panelconvertfont?language=objc +func (f_ FontPanel) PanelConvertFont(fontObj IFont) Font { + rv := objc.Call[Font](f_, objc.Sel("panelConvertFont:"), fontObj) return rv } -// Initializes the window with the specified values. [Full Topic] +// Sets the selected font in the receiver to the specified font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc -func NewFontPanelWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) FontPanel { - instance := FontPanelClass.Alloc().InitWithContentRectStyleMaskBackingDefer(contentRect, style, backingStoreType, flag) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1532648-setpanelfont?language=objc +func (f_ FontPanel) SetPanelFontIsMultiple(fontObj IFont, flag bool) { + objc.Call[objc.Void](f_, objc.Sel("setPanelFont:isMultiple:"), fontObj, flag) } // Triggers a reload to the default state, so that the delegate is called. [Full Topic] @@ -108,21 +109,36 @@ func (f_ FontPanel) ReloadDefaultFontFamilies() { objc.Call[objc.Void](f_, objc.Sel("reloadDefaultFontFamilies")) } -// Sets the selected font in the receiver to the specified font. [Full Topic] +// The specified view as the receiver’s accessory view, allowing you to add custom controls to your application’s Font panel without having to create a subclass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1532648-setpanelfont?language=objc -func (f_ FontPanel) SetPanelFontIsMultiple(fontObj IFont, flag bool) { - objc.Call[objc.Void](f_, objc.Sel("setPanelFont:isMultiple:"), fontObj, flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1535927-accessoryview?language=objc +func (f_ FontPanel) AccessoryView() View { + rv := objc.Call[View](f_, objc.Sel("accessoryView")) + return rv } -// Converts the specified font using the settings in the receiver, with the aid of the shared NSFontManager if necessary. [Full Topic] +// The specified view as the receiver’s accessory view, allowing you to add custom controls to your application’s Font panel without having to create a subclass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1535338-panelconvertfont?language=objc -func (f_ FontPanel) PanelConvertFont(fontObj IFont) Font { - rv := objc.Call[Font](f_, objc.Sel("panelConvertFont:"), fontObj) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1535927-accessoryview?language=objc +func (f_ FontPanel) SetAccessoryView(value IView) { + objc.Call[objc.Void](f_, objc.Sel("setAccessoryView:"), value) +} + +// Returns the single NSFontPanel instance for the application, creating it if necessary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1527046-sharedfontpanel?language=objc +func (fc _FontPanelClass) SharedFontPanel() FontPanel { + rv := objc.Call[FontPanel](fc, objc.Sel("sharedFontPanel")) return rv } +// Returns the single NSFontPanel instance for the application, creating it if necessary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1527046-sharedfontpanel?language=objc +func FontPanel_SharedFontPanel() FontPanel { + return FontPanelClass.SharedFontPanel() +} + // Returns YES if the shared Font panel has been created, NO if it hasn’t. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1524657-sharedfontpanelexists?language=objc @@ -152,33 +168,3 @@ func (f_ FontPanel) IsEnabled() bool { func (f_ FontPanel) SetEnabled(value bool) { objc.Call[objc.Void](f_, objc.Sel("setEnabled:"), value) } - -// Returns the single NSFontPanel instance for the application, creating it if necessary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1527046-sharedfontpanel?language=objc -func (fc _FontPanelClass) SharedFontPanel() FontPanel { - rv := objc.Call[FontPanel](fc, objc.Sel("sharedFontPanel")) - return rv -} - -// Returns the single NSFontPanel instance for the application, creating it if necessary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1527046-sharedfontpanel?language=objc -func FontPanel_SharedFontPanel() FontPanel { - return FontPanelClass.SharedFontPanel() -} - -// The specified view as the receiver’s accessory view, allowing you to add custom controls to your application’s Font panel without having to create a subclass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1535927-accessoryview?language=objc -func (f_ FontPanel) AccessoryView() View { - rv := objc.Call[View](f_, objc.Sel("accessoryView")) - return rv -} - -// The specified view as the receiver’s accessory view, allowing you to add custom controls to your application’s Font panel without having to create a subclass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontpanel/1535927-accessoryview?language=objc -func (f_ FontPanel) SetAccessoryView(value IView) { - objc.Call[objc.Void](f_, objc.Sel("setAccessoryView:"), value) -} diff --git a/macos/appkit/form.gen.go b/macos/appkit/form.gen.go index 6067f98a..a9ca9c1c 100644 --- a/macos/appkit/form.gen.go +++ b/macos/appkit/form.gen.go @@ -54,20 +54,6 @@ func (f_ Form) Init() Form { return rv } -func (f_ Form) InitWithFrameModePrototypeNumberOfRowsNumberOfColumns(frameRect foundation.Rect, mode MatrixMode, cell ICell, rowsHigh int, colsWide int) Form { - rv := objc.Call[Form](f_, objc.Sel("initWithFrame:mode:prototype:numberOfRows:numberOfColumns:"), frameRect, mode, cell, rowsHigh, colsWide) - return rv -} - -// Initializes and returns a newly allocated matrix of the specified size using the given cell as a prototype. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436386-initwithframe?language=objc -func NewFormWithFrameModePrototypeNumberOfRowsNumberOfColumns(frameRect foundation.Rect, mode MatrixMode, cell ICell, rowsHigh int, colsWide int) Form { - instance := FormClass.Alloc().InitWithFrameModePrototypeNumberOfRowsNumberOfColumns(frameRect, mode, cell, rowsHigh, colsWide) - instance.Autorelease() - return instance -} - func (f_ Form) InitWithFrame(frameRect foundation.Rect) Form { rv := objc.Call[Form](f_, objc.Sel("initWithFrame:"), frameRect) return rv @@ -81,17 +67,3 @@ func NewFormWithFrame(frameRect foundation.Rect) Form { instance.Autorelease() return instance } - -func (f_ Form) InitWithFrameModeCellClassNumberOfRowsNumberOfColumns(frameRect foundation.Rect, mode MatrixMode, factoryId objc.IClass, rowsHigh int, colsWide int) Form { - rv := objc.Call[Form](f_, objc.Sel("initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:"), frameRect, mode, factoryId, rowsHigh, colsWide) - return rv -} - -// Initializes and returns a newly allocated matrix of the specified size using cells of the given class. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436400-initwithframe?language=objc -func NewFormWithFrameModeCellClassNumberOfRowsNumberOfColumns(frameRect foundation.Rect, mode MatrixMode, factoryId objc.IClass, rowsHigh int, colsWide int) Form { - instance := FormClass.Alloc().InitWithFrameModeCellClassNumberOfRowsNumberOfColumns(frameRect, mode, factoryId, rowsHigh, colsWide) - instance.Autorelease() - return instance -} diff --git a/macos/appkit/form_cell.gen.go b/macos/appkit/form_cell.gen.go index 45471d1c..5087bbaf 100644 --- a/macos/appkit/form_cell.gen.go +++ b/macos/appkit/form_cell.gen.go @@ -19,22 +19,22 @@ type _FormCellClass struct { // An interface definition for the [FormCell] class. type IFormCell interface { IActionCell - TitleWidth(size foundation.Size) float64 TitleAlignment() TextAlignment SetTitleAlignment(value TextAlignment) + TitleWidth() float64 + SetTitleWidth(value float64) + PlaceholderAttributedString() foundation.AttributedString + SetPlaceholderAttributedString(value foundation.IAttributedString) AttributedTitle() foundation.AttributedString SetAttributedTitle(value foundation.IAttributedString) + PreferredTextFieldWidth() float64 + SetPreferredTextFieldWidth(value float64) TitleBaseWritingDirection() WritingDirection SetTitleBaseWritingDirection(value WritingDirection) - TitleFont() Font - SetTitleFont(value IFont) PlaceholderString() string SetPlaceholderString(value string) - PlaceholderAttributedString() foundation.AttributedString - SetPlaceholderAttributedString(value foundation.IAttributedString) - PreferredTextFieldWidth() float64 - SetPreferredTextFieldWidth(value float64) - SetTitleWidth(value float64) + TitleFont() Font + SetTitleFont(value IFont) } // The NSFormCell class is used to implement text entry fields in a form. The left part of an NSFormCell object contains a title. The right part contains an editable text entry field. [Full Topic] @@ -98,14 +98,6 @@ func NewFormCellImageCell(image IImage) FormCell { return instance } -// Returns the width of the title field constrained to the specified size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1526921-titlewidth?language=objc -func (f_ FormCell) TitleWidth(size foundation.Size) float64 { - rv := objc.Call[float64](f_, objc.Sel("titleWidth:"), size) - return rv -} - // The alignment of the title. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1525716-titlealignment?language=objc @@ -121,6 +113,36 @@ func (f_ FormCell) SetTitleAlignment(value TextAlignment) { objc.Call[objc.Void](f_, objc.Sel("setTitleAlignment:"), value) } +// The width of the title field. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1535464-titlewidth?language=objc +func (f_ FormCell) TitleWidth() float64 { + rv := objc.Call[float64](f_, objc.Sel("titleWidth")) + return rv +} + +// The width of the title field. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1535464-titlewidth?language=objc +func (f_ FormCell) SetTitleWidth(value float64) { + objc.Call[objc.Void](f_, objc.Sel("setTitleWidth:"), value) +} + +// The cell’s attributed placeholder string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1535914-placeholderattributedstring?language=objc +func (f_ FormCell) PlaceholderAttributedString() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](f_, objc.Sel("placeholderAttributedString")) + return rv +} + +// The cell’s attributed placeholder string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1535914-placeholderattributedstring?language=objc +func (f_ FormCell) SetPlaceholderAttributedString(value foundation.IAttributedString) { + objc.Call[objc.Void](f_, objc.Sel("setPlaceholderAttributedString:"), value) +} + // The title of the cell as an attributed string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1527410-attributedtitle?language=objc @@ -136,6 +158,21 @@ func (f_ FormCell) SetAttributedTitle(value foundation.IAttributedString) { objc.Call[objc.Void](f_, objc.Sel("setAttributedTitle:"), value) } +// The preferred text field width. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1527483-preferredtextfieldwidth?language=objc +func (f_ FormCell) PreferredTextFieldWidth() float64 { + rv := objc.Call[float64](f_, objc.Sel("preferredTextFieldWidth")) + return rv +} + +// The preferred text field width. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1527483-preferredtextfieldwidth?language=objc +func (f_ FormCell) SetPreferredTextFieldWidth(value float64) { + objc.Call[objc.Void](f_, objc.Sel("setPreferredTextFieldWidth:"), value) +} + // The default writing direction used to render the form cell’s title. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1526419-titlebasewritingdirection?language=objc @@ -151,21 +188,6 @@ func (f_ FormCell) SetTitleBaseWritingDirection(value WritingDirection) { objc.Call[objc.Void](f_, objc.Sel("setTitleBaseWritingDirection:"), value) } -// The font used to draw cell’s title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1525255-titlefont?language=objc -func (f_ FormCell) TitleFont() Font { - rv := objc.Call[Font](f_, objc.Sel("titleFont")) - return rv -} - -// The font used to draw cell’s title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1525255-titlefont?language=objc -func (f_ FormCell) SetTitleFont(value IFont) { - objc.Call[objc.Void](f_, objc.Sel("setTitleFont:"), value) -} - // The cell’s plain text placeholder string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1534043-placeholderstring?language=objc @@ -181,39 +203,17 @@ func (f_ FormCell) SetPlaceholderString(value string) { objc.Call[objc.Void](f_, objc.Sel("setPlaceholderString:"), value) } -// The cell’s attributed placeholder string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1535914-placeholderattributedstring?language=objc -func (f_ FormCell) PlaceholderAttributedString() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](f_, objc.Sel("placeholderAttributedString")) - return rv -} - -// The cell’s attributed placeholder string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1535914-placeholderattributedstring?language=objc -func (f_ FormCell) SetPlaceholderAttributedString(value foundation.IAttributedString) { - objc.Call[objc.Void](f_, objc.Sel("setPlaceholderAttributedString:"), value) -} - -// The preferred text field width. [Full Topic] +// The font used to draw cell’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1527483-preferredtextfieldwidth?language=objc -func (f_ FormCell) PreferredTextFieldWidth() float64 { - rv := objc.Call[float64](f_, objc.Sel("preferredTextFieldWidth")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1525255-titlefont?language=objc +func (f_ FormCell) TitleFont() Font { + rv := objc.Call[Font](f_, objc.Sel("titleFont")) return rv } -// The preferred text field width. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1527483-preferredtextfieldwidth?language=objc -func (f_ FormCell) SetPreferredTextFieldWidth(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setPreferredTextFieldWidth:"), value) -} - -// The width of the title field. [Full Topic] +// The font used to draw cell’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1535464-titlewidth?language=objc -func (f_ FormCell) SetTitleWidth(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setTitleWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1525255-titlefont?language=objc +func (f_ FormCell) SetTitleFont(value IFont) { + objc.Call[objc.Void](f_, objc.Sel("setTitleFont:"), value) } diff --git a/macos/appkit/gesture_recognizer.gen.go b/macos/appkit/gesture_recognizer.gen.go index 726b2595..a6c48307 100644 --- a/macos/appkit/gesture_recognizer.gen.go +++ b/macos/appkit/gesture_recognizer.gen.go @@ -20,58 +20,58 @@ type _GestureRecognizerClass struct { type IGestureRecognizer interface { objc.IObject TouchesMovedWithEvent(event IEvent) + MouseUp(event IEvent) + CanBePreventedByGestureRecognizer(preventingGestureRecognizer IGestureRecognizer) bool + PressureChangeWithEvent(event IEvent) + ShouldBeRequiredToFailByGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool + OtherMouseDragged(event IEvent) + RightMouseDragged(event IEvent) + CanPreventGestureRecognizer(preventedGestureRecognizer IGestureRecognizer) bool + ShouldRequireFailureOfGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool + FlagsChanged(event IEvent) + TouchesBeganWithEvent(event IEvent) + TouchesCancelledWithEvent(event IEvent) + RotateWithEvent(event IEvent) KeyDown(event IEvent) - Reset() TabletPoint(event IEvent) - KeyUp(event IEvent) - MouseDown(event IEvent) - CanPreventGestureRecognizer(preventedGestureRecognizer IGestureRecognizer) bool TouchesEndedWithEvent(event IEvent) - CanBePreventedByGestureRecognizer(preventingGestureRecognizer IGestureRecognizer) bool OtherMouseDown(event IEvent) - RightMouseUp(event IEvent) OtherMouseUp(event IEvent) - RotateWithEvent(event IEvent) - MouseDragged(event IEvent) - TouchesBeganWithEvent(event IEvent) - PressureChangeWithEvent(event IEvent) MagnifyWithEvent(event IEvent) - TouchesCancelledWithEvent(event IEvent) - OtherMouseDragged(event IEvent) - MouseUp(event IEvent) + MouseDragged(event IEvent) LocationInView(view IView) foundation.Point - ShouldBeRequiredToFailByGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool - RightMouseDragged(event IEvent) - ShouldRequireFailureOfGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool - FlagsChanged(event IEvent) + MouseDown(event IEvent) + KeyUp(event IEvent) RightMouseDown(event IEvent) - DelaysMagnificationEvents() bool - SetDelaysMagnificationEvents(value bool) - DelaysSecondaryMouseButtonEvents() bool - SetDelaysSecondaryMouseButtonEvents(value bool) - DelaysKeyEvents() bool - SetDelaysKeyEvents(value bool) - PressureConfiguration() PressureConfiguration - SetPressureConfiguration(value IPressureConfiguration) + Reset() + RightMouseUp(event IEvent) DelaysOtherMouseButtonEvents() bool SetDelaysOtherMouseButtonEvents(value bool) - DelaysRotationEvents() bool - SetDelaysRotationEvents(value bool) - State() GestureRecognizerState - IsEnabled() bool - SetEnabled(value bool) + DelaysSecondaryMouseButtonEvents() bool + SetDelaysSecondaryMouseButtonEvents(value bool) Target() objc.Object SetTarget(value objc.IObject) - AllowedTouchTypes() TouchTypeMask - SetAllowedTouchTypes(value TouchTypeMask) + State() GestureRecognizerState + Action() objc.Selector + SetAction(value objc.Selector) + PressureConfiguration() PressureConfiguration + SetPressureConfiguration(value IPressureConfiguration) View() View - DelaysPrimaryMouseButtonEvents() bool - SetDelaysPrimaryMouseButtonEvents(value bool) + DelaysMagnificationEvents() bool + SetDelaysMagnificationEvents(value bool) Delegate() GestureRecognizerDelegateObject SetDelegate(value PGestureRecognizerDelegate) SetDelegateObject(valueObject objc.IObject) - Action() objc.Selector - SetAction(value objc.Selector) + DelaysPrimaryMouseButtonEvents() bool + SetDelaysPrimaryMouseButtonEvents(value bool) + DelaysKeyEvents() bool + SetDelaysKeyEvents(value bool) + DelaysRotationEvents() bool + SetDelaysRotationEvents(value bool) + AllowedTouchTypes() TouchTypeMask + SetAllowedTouchTypes(value TouchTypeMask) + IsEnabled() bool + SetEnabled(value bool) } // An object that monitors events and calls its action method when a predefined sequence of events occur. [Full Topic] @@ -128,39 +128,48 @@ func (g_ GestureRecognizer) TouchesMovedWithEvent(event IEvent) { objc.Call[objc.Void](g_, objc.Sel("touchesMovedWithEvent:"), event) } -// Informs the gesture recognizer that the user has pressed a key. [Full Topic] +// Informs the gesture recognizer that the user released the left mouse button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1532158-keydown?language=objc -func (g_ GestureRecognizer) KeyDown(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("keyDown:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1526116-mouseup?language=objc +func (g_ GestureRecognizer) MouseUp(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("mouseUp:"), event) } -// Overridden to reset the internal state of the gesture recognizer when an attempt completes. [Full Topic] +// Overridden to indicate that the specified gesture recognizer can prevent the current object from recognizing a gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1527219-reset?language=objc -func (g_ GestureRecognizer) Reset() { - objc.Call[objc.Void](g_, objc.Sel("reset")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1534587-canbepreventedbygesturerecognize?language=objc +func (g_ GestureRecognizer) CanBePreventedByGestureRecognizer(preventingGestureRecognizer IGestureRecognizer) bool { + rv := objc.Call[bool](g_, objc.Sel("canBePreventedByGestureRecognizer:"), preventingGestureRecognizer) + return rv } -// Informs the user that a tablet-point event occurred. [Full Topic] +// Informs the current object that a pressure change occurred on a system that supports pressure sensitivity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529889-tabletpoint?language=objc -func (g_ GestureRecognizer) TabletPoint(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("tabletPoint:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1527009-pressurechangewithevent?language=objc +func (g_ GestureRecognizer) PressureChangeWithEvent(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("pressureChangeWithEvent:"), event) } -// Informs the gesture recognizer that the user released a key. [Full Topic] +// Overridden to indicate that the current object must fail before the specified gesture recognizer begins recognizing its gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1526578-keyup?language=objc -func (g_ GestureRecognizer) KeyUp(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("keyUp:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1530755-shouldberequiredtofailbygesturer?language=objc +func (g_ GestureRecognizer) ShouldBeRequiredToFailByGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool { + rv := objc.Call[bool](g_, objc.Sel("shouldBeRequiredToFailByGestureRecognizer:"), otherGestureRecognizer) + return rv } -// Informs the gesture recognizer that the user pressed the left mouse button. [Full Topic] +// Informs the gesture recognizer that the user moved the mouse with a button other than the left or right one pressed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1524901-mousedown?language=objc -func (g_ GestureRecognizer) MouseDown(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("mouseDown:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1534208-othermousedragged?language=objc +func (g_ GestureRecognizer) OtherMouseDragged(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("otherMouseDragged:"), event) +} + +// Informs the gesture recognizer that the user moved the mouse with the right button pressed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529778-rightmousedragged?language=objc +func (g_ GestureRecognizer) RightMouseDragged(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("rightMouseDragged:"), event) } // Overridden to indicate that the current object can prevent the specified gesture recognizer from recognizing its gesture. [Full Topic] @@ -171,40 +180,33 @@ func (g_ GestureRecognizer) CanPreventGestureRecognizer(preventedGestureRecogniz return rv } -// Called when one or more fingers are removed from contact with an NSTouchBar instance on the Touch Bar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/2544740-touchesendedwithevent?language=objc -func (g_ GestureRecognizer) TouchesEndedWithEvent(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("touchesEndedWithEvent:"), event) -} - -// Overridden to indicate that the specified gesture recognizer can prevent the current object from recognizing a gesture. [Full Topic] +// Overridden to indicate that the specified gesture recognizer must fail before the current object begins recognizing its gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1534587-canbepreventedbygesturerecognize?language=objc -func (g_ GestureRecognizer) CanBePreventedByGestureRecognizer(preventingGestureRecognizer IGestureRecognizer) bool { - rv := objc.Call[bool](g_, objc.Sel("canBePreventedByGestureRecognizer:"), preventingGestureRecognizer) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1532939-shouldrequirefailureofgesturerec?language=objc +func (g_ GestureRecognizer) ShouldRequireFailureOfGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool { + rv := objc.Call[bool](g_, objc.Sel("shouldRequireFailureOfGestureRecognizer:"), otherGestureRecognizer) return rv } -// Informs the gesture recognizer that the user pressed a mouse button other than the left or right one. [Full Topic] +// Informs the current object that the user pressed or released a modifier key (Shift, Control, and so on). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1534433-othermousedown?language=objc -func (g_ GestureRecognizer) OtherMouseDown(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("otherMouseDown:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1532604-flagschanged?language=objc +func (g_ GestureRecognizer) FlagsChanged(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("flagsChanged:"), event) } -// Informs the gesture recognizer that the user released the right mouse button. [Full Topic] +// Called when one or more fingers first make contact with an NSTouchBar instance on the Touch Bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1525729-rightmouseup?language=objc -func (g_ GestureRecognizer) RightMouseUp(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("rightMouseUp:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/2544794-touchesbeganwithevent?language=objc +func (g_ GestureRecognizer) TouchesBeganWithEvent(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("touchesBeganWithEvent:"), event) } -// Informs the gesture recognizer that the user released a mouse button other than the left or right one. [Full Topic] +// Called when a system event, such as a low-memory warning, cancels an in-progress touch event in an NSTouchBar object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1527874-othermouseup?language=objc -func (g_ GestureRecognizer) OtherMouseUp(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("otherMouseUp:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/2544757-touchescancelledwithevent?language=objc +func (g_ GestureRecognizer) TouchesCancelledWithEvent(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("touchesCancelledWithEvent:"), event) } // Informs the gesture recognizer that the user is performing a rotation gesture. [Full Topic] @@ -214,53 +216,53 @@ func (g_ GestureRecognizer) RotateWithEvent(event IEvent) { objc.Call[objc.Void](g_, objc.Sel("rotateWithEvent:"), event) } -// Informs the gesture recognizer that the user moved the mouse with the left button pressed. [Full Topic] +// Informs the gesture recognizer that the user has pressed a key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1534535-mousedragged?language=objc -func (g_ GestureRecognizer) MouseDragged(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("mouseDragged:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1532158-keydown?language=objc +func (g_ GestureRecognizer) KeyDown(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("keyDown:"), event) } -// Called when one or more fingers first make contact with an NSTouchBar instance on the Touch Bar. [Full Topic] +// Informs the user that a tablet-point event occurred. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/2544794-touchesbeganwithevent?language=objc -func (g_ GestureRecognizer) TouchesBeganWithEvent(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("touchesBeganWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529889-tabletpoint?language=objc +func (g_ GestureRecognizer) TabletPoint(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("tabletPoint:"), event) } -// Informs the current object that a pressure change occurred on a system that supports pressure sensitivity. [Full Topic] +// Called when one or more fingers are removed from contact with an NSTouchBar instance on the Touch Bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1527009-pressurechangewithevent?language=objc -func (g_ GestureRecognizer) PressureChangeWithEvent(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("pressureChangeWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/2544740-touchesendedwithevent?language=objc +func (g_ GestureRecognizer) TouchesEndedWithEvent(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("touchesEndedWithEvent:"), event) } -// Informs the gesture recognizer that the user is performing a pinch gesture. [Full Topic] +// Informs the gesture recognizer that the user pressed a mouse button other than the left or right one. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1528828-magnifywithevent?language=objc -func (g_ GestureRecognizer) MagnifyWithEvent(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("magnifyWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1534433-othermousedown?language=objc +func (g_ GestureRecognizer) OtherMouseDown(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("otherMouseDown:"), event) } -// Called when a system event, such as a low-memory warning, cancels an in-progress touch event in an NSTouchBar object. [Full Topic] +// Informs the gesture recognizer that the user released a mouse button other than the left or right one. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/2544757-touchescancelledwithevent?language=objc -func (g_ GestureRecognizer) TouchesCancelledWithEvent(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("touchesCancelledWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1527874-othermouseup?language=objc +func (g_ GestureRecognizer) OtherMouseUp(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("otherMouseUp:"), event) } -// Informs the gesture recognizer that the user moved the mouse with a button other than the left or right one pressed. [Full Topic] +// Informs the gesture recognizer that the user is performing a pinch gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1534208-othermousedragged?language=objc -func (g_ GestureRecognizer) OtherMouseDragged(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("otherMouseDragged:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1528828-magnifywithevent?language=objc +func (g_ GestureRecognizer) MagnifyWithEvent(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("magnifyWithEvent:"), event) } -// Informs the gesture recognizer that the user released the left mouse button. [Full Topic] +// Informs the gesture recognizer that the user moved the mouse with the left button pressed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1526116-mouseup?language=objc -func (g_ GestureRecognizer) MouseUp(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("mouseUp:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1534535-mousedragged?language=objc +func (g_ GestureRecognizer) MouseDragged(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("mouseDragged:"), event) } // Returns the point computed as the location of the gesture. [Full Topic] @@ -271,56 +273,54 @@ func (g_ GestureRecognizer) LocationInView(view IView) foundation.Point { return rv } -// Overridden to indicate that the current object must fail before the specified gesture recognizer begins recognizing its gesture. [Full Topic] +// Informs the gesture recognizer that the user pressed the left mouse button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1530755-shouldberequiredtofailbygesturer?language=objc -func (g_ GestureRecognizer) ShouldBeRequiredToFailByGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool { - rv := objc.Call[bool](g_, objc.Sel("shouldBeRequiredToFailByGestureRecognizer:"), otherGestureRecognizer) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1524901-mousedown?language=objc +func (g_ GestureRecognizer) MouseDown(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("mouseDown:"), event) } -// Informs the gesture recognizer that the user moved the mouse with the right button pressed. [Full Topic] +// Informs the gesture recognizer that the user released a key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529778-rightmousedragged?language=objc -func (g_ GestureRecognizer) RightMouseDragged(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("rightMouseDragged:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1526578-keyup?language=objc +func (g_ GestureRecognizer) KeyUp(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("keyUp:"), event) } -// Overridden to indicate that the specified gesture recognizer must fail before the current object begins recognizing its gesture. [Full Topic] +// Informs the gesture recognizer that the user pressed the right mouse button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1532939-shouldrequirefailureofgesturerec?language=objc -func (g_ GestureRecognizer) ShouldRequireFailureOfGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool { - rv := objc.Call[bool](g_, objc.Sel("shouldRequireFailureOfGestureRecognizer:"), otherGestureRecognizer) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1527421-rightmousedown?language=objc +func (g_ GestureRecognizer) RightMouseDown(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("rightMouseDown:"), event) } -// Informs the current object that the user pressed or released a modifier key (Shift, Control, and so on). [Full Topic] +// Overridden to reset the internal state of the gesture recognizer when an attempt completes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1532604-flagschanged?language=objc -func (g_ GestureRecognizer) FlagsChanged(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("flagsChanged:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1527219-reset?language=objc +func (g_ GestureRecognizer) Reset() { + objc.Call[objc.Void](g_, objc.Sel("reset")) } -// Informs the gesture recognizer that the user pressed the right mouse button. [Full Topic] +// Informs the gesture recognizer that the user released the right mouse button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1527421-rightmousedown?language=objc -func (g_ GestureRecognizer) RightMouseDown(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("rightMouseDown:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1525729-rightmouseup?language=objc +func (g_ GestureRecognizer) RightMouseUp(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("rightMouseUp:"), event) } -// A Boolean value that indicates whether magnification events are delivered only after gesture recognition fails. [Full Topic] +// A Boolean value that indicates whether other mouse button events are delivered only after gesture recognition fails. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529974-delaysmagnificationevents?language=objc -func (g_ GestureRecognizer) DelaysMagnificationEvents() bool { - rv := objc.Call[bool](g_, objc.Sel("delaysMagnificationEvents")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1530375-delaysothermousebuttonevents?language=objc +func (g_ GestureRecognizer) DelaysOtherMouseButtonEvents() bool { + rv := objc.Call[bool](g_, objc.Sel("delaysOtherMouseButtonEvents")) return rv } -// A Boolean value that indicates whether magnification events are delivered only after gesture recognition fails. [Full Topic] +// A Boolean value that indicates whether other mouse button events are delivered only after gesture recognition fails. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529974-delaysmagnificationevents?language=objc -func (g_ GestureRecognizer) SetDelaysMagnificationEvents(value bool) { - objc.Call[objc.Void](g_, objc.Sel("setDelaysMagnificationEvents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1530375-delaysothermousebuttonevents?language=objc +func (g_ GestureRecognizer) SetDelaysOtherMouseButtonEvents(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setDelaysOtherMouseButtonEvents:"), value) } // A Boolean value that indicates whether secondary mouse button events are delivered only after gesture recognition fails. [Full Topic] @@ -338,125 +338,104 @@ func (g_ GestureRecognizer) SetDelaysSecondaryMouseButtonEvents(value bool) { objc.Call[objc.Void](g_, objc.Sel("setDelaysSecondaryMouseButtonEvents:"), value) } -// A Boolean value that indicates whether key events are delivered only after gesture recognition fails. [Full Topic] +// The object that implements the action method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529788-delayskeyevents?language=objc -func (g_ GestureRecognizer) DelaysKeyEvents() bool { - rv := objc.Call[bool](g_, objc.Sel("delaysKeyEvents")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1530932-target?language=objc +func (g_ GestureRecognizer) Target() objc.Object { + rv := objc.Call[objc.Object](g_, objc.Sel("target")) return rv } -// A Boolean value that indicates whether key events are delivered only after gesture recognition fails. [Full Topic] +// The object that implements the action method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529788-delayskeyevents?language=objc -func (g_ GestureRecognizer) SetDelaysKeyEvents(value bool) { - objc.Call[objc.Void](g_, objc.Sel("setDelaysKeyEvents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1530932-target?language=objc +func (g_ GestureRecognizer) SetTarget(value objc.IObject) { + objc.Call[objc.Void](g_, objc.Sel("setTarget:"), value) } -// Configures the behavior and progression of the Force Touch trackpad when responding to recognized pressure gestures. [Full Topic] +// The current state of the gesture recognizer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535895-pressureconfiguration?language=objc -func (g_ GestureRecognizer) PressureConfiguration() PressureConfiguration { - rv := objc.Call[PressureConfiguration](g_, objc.Sel("pressureConfiguration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535694-state?language=objc +func (g_ GestureRecognizer) State() GestureRecognizerState { + rv := objc.Call[GestureRecognizerState](g_, objc.Sel("state")) return rv } -// Configures the behavior and progression of the Force Touch trackpad when responding to recognized pressure gestures. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535895-pressureconfiguration?language=objc -func (g_ GestureRecognizer) SetPressureConfiguration(value IPressureConfiguration) { - objc.Call[objc.Void](g_, objc.Sel("setPressureConfiguration:"), value) -} - -// A Boolean value that indicates whether other mouse button events are delivered only after gesture recognition fails. [Full Topic] +// The action method to call when the gesture is recognized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1530375-delaysothermousebuttonevents?language=objc -func (g_ GestureRecognizer) DelaysOtherMouseButtonEvents() bool { - rv := objc.Call[bool](g_, objc.Sel("delaysOtherMouseButtonEvents")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529280-action?language=objc +func (g_ GestureRecognizer) Action() objc.Selector { + rv := objc.Call[objc.Selector](g_, objc.Sel("action")) return rv } -// A Boolean value that indicates whether other mouse button events are delivered only after gesture recognition fails. [Full Topic] +// The action method to call when the gesture is recognized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1530375-delaysothermousebuttonevents?language=objc -func (g_ GestureRecognizer) SetDelaysOtherMouseButtonEvents(value bool) { - objc.Call[objc.Void](g_, objc.Sel("setDelaysOtherMouseButtonEvents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529280-action?language=objc +func (g_ GestureRecognizer) SetAction(value objc.Selector) { + objc.Call[objc.Void](g_, objc.Sel("setAction:"), value) } -// A Boolean value that indicates whether rotation events are delivered only after gesture recognition fails. [Full Topic] +// Configures the behavior and progression of the Force Touch trackpad when responding to recognized pressure gestures. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535384-delaysrotationevents?language=objc -func (g_ GestureRecognizer) DelaysRotationEvents() bool { - rv := objc.Call[bool](g_, objc.Sel("delaysRotationEvents")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535895-pressureconfiguration?language=objc +func (g_ GestureRecognizer) PressureConfiguration() PressureConfiguration { + rv := objc.Call[PressureConfiguration](g_, objc.Sel("pressureConfiguration")) return rv } -// A Boolean value that indicates whether rotation events are delivered only after gesture recognition fails. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535384-delaysrotationevents?language=objc -func (g_ GestureRecognizer) SetDelaysRotationEvents(value bool) { - objc.Call[objc.Void](g_, objc.Sel("setDelaysRotationEvents:"), value) -} - -// The current state of the gesture recognizer. [Full Topic] +// Configures the behavior and progression of the Force Touch trackpad when responding to recognized pressure gestures. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535694-state?language=objc -func (g_ GestureRecognizer) State() GestureRecognizerState { - rv := objc.Call[GestureRecognizerState](g_, objc.Sel("state")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535895-pressureconfiguration?language=objc +func (g_ GestureRecognizer) SetPressureConfiguration(value IPressureConfiguration) { + objc.Call[objc.Void](g_, objc.Sel("setPressureConfiguration:"), value) } -// A Boolean value indicating whether the gesture recognizer is able to handle events. [Full Topic] +// The view to which the gesture recognizer is attached. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535263-enabled?language=objc -func (g_ GestureRecognizer) IsEnabled() bool { - rv := objc.Call[bool](g_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1527192-view?language=objc +func (g_ GestureRecognizer) View() View { + rv := objc.Call[View](g_, objc.Sel("view")) return rv } -// A Boolean value indicating whether the gesture recognizer is able to handle events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535263-enabled?language=objc -func (g_ GestureRecognizer) SetEnabled(value bool) { - objc.Call[objc.Void](g_, objc.Sel("setEnabled:"), value) -} - -// The object that implements the action method. [Full Topic] +// A Boolean value that indicates whether magnification events are delivered only after gesture recognition fails. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1530932-target?language=objc -func (g_ GestureRecognizer) Target() objc.Object { - rv := objc.Call[objc.Object](g_, objc.Sel("target")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529974-delaysmagnificationevents?language=objc +func (g_ GestureRecognizer) DelaysMagnificationEvents() bool { + rv := objc.Call[bool](g_, objc.Sel("delaysMagnificationEvents")) return rv } -// The object that implements the action method. [Full Topic] +// A Boolean value that indicates whether magnification events are delivered only after gesture recognition fails. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1530932-target?language=objc -func (g_ GestureRecognizer) SetTarget(value objc.IObject) { - objc.Call[objc.Void](g_, objc.Sel("setTarget:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529974-delaysmagnificationevents?language=objc +func (g_ GestureRecognizer) SetDelaysMagnificationEvents(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setDelaysMagnificationEvents:"), value) } -// [Full Topic] +// The delegate of the gesture recognizer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/2588249-allowedtouchtypes?language=objc -func (g_ GestureRecognizer) AllowedTouchTypes() TouchTypeMask { - rv := objc.Call[TouchTypeMask](g_, objc.Sel("allowedTouchTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529879-delegate?language=objc +func (g_ GestureRecognizer) Delegate() GestureRecognizerDelegateObject { + rv := objc.Call[GestureRecognizerDelegateObject](g_, objc.Sel("delegate")) return rv } -// [Full Topic] +// The delegate of the gesture recognizer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/2588249-allowedtouchtypes?language=objc -func (g_ GestureRecognizer) SetAllowedTouchTypes(value TouchTypeMask) { - objc.Call[objc.Void](g_, objc.Sel("setAllowedTouchTypes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529879-delegate?language=objc +func (g_ GestureRecognizer) SetDelegate(value PGestureRecognizerDelegate) { + po0 := objc.WrapAsProtocol("NSGestureRecognizerDelegate", value) + objc.SetAssociatedObject(g_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](g_, objc.Sel("setDelegate:"), po0) } -// The view to which the gesture recognizer is attached. [Full Topic] +// The delegate of the gesture recognizer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1527192-view?language=objc -func (g_ GestureRecognizer) View() View { - rv := objc.Call[View](g_, objc.Sel("view")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529879-delegate?language=objc +func (g_ GestureRecognizer) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](g_, objc.Sel("setDelegate:"), valueObject) } // A Boolean value that indicates whether primary mouse button events are delivered only after gesture recognition fails. [Full Topic] @@ -474,41 +453,62 @@ func (g_ GestureRecognizer) SetDelaysPrimaryMouseButtonEvents(value bool) { objc.Call[objc.Void](g_, objc.Sel("setDelaysPrimaryMouseButtonEvents:"), value) } -// The delegate of the gesture recognizer. [Full Topic] +// A Boolean value that indicates whether key events are delivered only after gesture recognition fails. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529879-delegate?language=objc -func (g_ GestureRecognizer) Delegate() GestureRecognizerDelegateObject { - rv := objc.Call[GestureRecognizerDelegateObject](g_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529788-delayskeyevents?language=objc +func (g_ GestureRecognizer) DelaysKeyEvents() bool { + rv := objc.Call[bool](g_, objc.Sel("delaysKeyEvents")) return rv } -// The delegate of the gesture recognizer. [Full Topic] +// A Boolean value that indicates whether key events are delivered only after gesture recognition fails. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529879-delegate?language=objc -func (g_ GestureRecognizer) SetDelegate(value PGestureRecognizerDelegate) { - po0 := objc.WrapAsProtocol("NSGestureRecognizerDelegate", value) - objc.SetAssociatedObject(g_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](g_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529788-delayskeyevents?language=objc +func (g_ GestureRecognizer) SetDelaysKeyEvents(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setDelaysKeyEvents:"), value) } -// The delegate of the gesture recognizer. [Full Topic] +// A Boolean value that indicates whether rotation events are delivered only after gesture recognition fails. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529879-delegate?language=objc -func (g_ GestureRecognizer) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](g_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535384-delaysrotationevents?language=objc +func (g_ GestureRecognizer) DelaysRotationEvents() bool { + rv := objc.Call[bool](g_, objc.Sel("delaysRotationEvents")) + return rv } -// The action method to call when the gesture is recognized. [Full Topic] +// A Boolean value that indicates whether rotation events are delivered only after gesture recognition fails. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529280-action?language=objc -func (g_ GestureRecognizer) Action() objc.Selector { - rv := objc.Call[objc.Selector](g_, objc.Sel("action")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535384-delaysrotationevents?language=objc +func (g_ GestureRecognizer) SetDelaysRotationEvents(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setDelaysRotationEvents:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/2588249-allowedtouchtypes?language=objc +func (g_ GestureRecognizer) AllowedTouchTypes() TouchTypeMask { + rv := objc.Call[TouchTypeMask](g_, objc.Sel("allowedTouchTypes")) return rv } -// The action method to call when the gesture is recognized. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529280-action?language=objc -func (g_ GestureRecognizer) SetAction(value objc.Selector) { - objc.Call[objc.Void](g_, objc.Sel("setAction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/2588249-allowedtouchtypes?language=objc +func (g_ GestureRecognizer) SetAllowedTouchTypes(value TouchTypeMask) { + objc.Call[objc.Void](g_, objc.Sel("setAllowedTouchTypes:"), value) +} + +// A Boolean value indicating whether the gesture recognizer is able to handle events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535263-enabled?language=objc +func (g_ GestureRecognizer) IsEnabled() bool { + rv := objc.Call[bool](g_, objc.Sel("isEnabled")) + return rv +} + +// A Boolean value indicating whether the gesture recognizer is able to handle events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1535263-enabled?language=objc +func (g_ GestureRecognizer) SetEnabled(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setEnabled:"), value) } diff --git a/macos/appkit/gesture_recognizer_delegate.gen.go b/macos/appkit/gesture_recognizer_delegate.gen.go index af6cc0bd..75419c6e 100644 --- a/macos/appkit/gesture_recognizer_delegate.gen.go +++ b/macos/appkit/gesture_recognizer_delegate.gen.go @@ -10,109 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate?language=objc type PGestureRecognizerDelegate interface { - // optional - GestureRecognizerShouldRequireFailureOfGestureRecognizer(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool - HasGestureRecognizerShouldRequireFailureOfGestureRecognizer() bool - - // optional - GestureRecognizerShouldReceiveTouch(gestureRecognizer GestureRecognizer, touch Touch) bool - HasGestureRecognizerShouldReceiveTouch() bool - - // optional - GestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool - HasGestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer() bool - - // optional - GestureRecognizerShouldAttemptToRecognizeWithEvent(gestureRecognizer GestureRecognizer, event Event) bool - HasGestureRecognizerShouldAttemptToRecognizeWithEvent() bool - // optional GestureRecognizerShouldBegin(gestureRecognizer GestureRecognizer) bool HasGestureRecognizerShouldBegin() bool // optional - GestureRecognizerShouldBeRequiredToFailByGestureRecognizer(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool - HasGestureRecognizerShouldBeRequiredToFailByGestureRecognizer() bool + GestureRecognizerShouldReceiveTouch(gestureRecognizer GestureRecognizer, touch Touch) bool + HasGestureRecognizerShouldReceiveTouch() bool } // A delegate implementation builder for the [PGestureRecognizerDelegate] protocol. type GestureRecognizerDelegate struct { - _GestureRecognizerShouldRequireFailureOfGestureRecognizer func(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool - _GestureRecognizerShouldReceiveTouch func(gestureRecognizer GestureRecognizer, touch Touch) bool - _GestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer func(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool - _GestureRecognizerShouldAttemptToRecognizeWithEvent func(gestureRecognizer GestureRecognizer, event Event) bool - _GestureRecognizerShouldBegin func(gestureRecognizer GestureRecognizer) bool - _GestureRecognizerShouldBeRequiredToFailByGestureRecognizer func(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool -} - -func (di *GestureRecognizerDelegate) HasGestureRecognizerShouldRequireFailureOfGestureRecognizer() bool { - return di._GestureRecognizerShouldRequireFailureOfGestureRecognizer != nil -} - -// Asks the delegate if the current gesture recognizer must wait to recognize its gesture until the specified gesture recognizer fails. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1527318-gesturerecognizer?language=objc -func (di *GestureRecognizerDelegate) SetGestureRecognizerShouldRequireFailureOfGestureRecognizer(f func(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool) { - di._GestureRecognizerShouldRequireFailureOfGestureRecognizer = f -} - -// Asks the delegate if the current gesture recognizer must wait to recognize its gesture until the specified gesture recognizer fails. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1527318-gesturerecognizer?language=objc -func (di *GestureRecognizerDelegate) GestureRecognizerShouldRequireFailureOfGestureRecognizer(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool { - return di._GestureRecognizerShouldRequireFailureOfGestureRecognizer(gestureRecognizer, otherGestureRecognizer) -} -func (di *GestureRecognizerDelegate) HasGestureRecognizerShouldReceiveTouch() bool { - return di._GestureRecognizerShouldReceiveTouch != nil -} - -// Called, for a new touch, before the system calls the touchesBegan:withEvent: method on the gesture recognizer. Return NO to prevent the gesture recognizer from seeing this touch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/2544787-gesturerecognizer?language=objc -func (di *GestureRecognizerDelegate) SetGestureRecognizerShouldReceiveTouch(f func(gestureRecognizer GestureRecognizer, touch Touch) bool) { - di._GestureRecognizerShouldReceiveTouch = f -} - -// Called, for a new touch, before the system calls the touchesBegan:withEvent: method on the gesture recognizer. Return NO to prevent the gesture recognizer from seeing this touch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/2544787-gesturerecognizer?language=objc -func (di *GestureRecognizerDelegate) GestureRecognizerShouldReceiveTouch(gestureRecognizer GestureRecognizer, touch Touch) bool { - return di._GestureRecognizerShouldReceiveTouch(gestureRecognizer, touch) -} -func (di *GestureRecognizerDelegate) HasGestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer() bool { - return di._GestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer != nil -} - -// Asks the delegate if two gesture recognizers should be allowed to recognize their gestures simultaneously. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1529773-gesturerecognizer?language=objc -func (di *GestureRecognizerDelegate) SetGestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(f func(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool) { - di._GestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer = f -} - -// Asks the delegate if two gesture recognizers should be allowed to recognize their gestures simultaneously. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1529773-gesturerecognizer?language=objc -func (di *GestureRecognizerDelegate) GestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool { - return di._GestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(gestureRecognizer, otherGestureRecognizer) -} -func (di *GestureRecognizerDelegate) HasGestureRecognizerShouldAttemptToRecognizeWithEvent() bool { - return di._GestureRecognizerShouldAttemptToRecognizeWithEvent != nil -} - -// Asks the delegate if a gesture recognizer should attempt to recognize gestures for a particular event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1529420-gesturerecognizer?language=objc -func (di *GestureRecognizerDelegate) SetGestureRecognizerShouldAttemptToRecognizeWithEvent(f func(gestureRecognizer GestureRecognizer, event Event) bool) { - di._GestureRecognizerShouldAttemptToRecognizeWithEvent = f + _GestureRecognizerShouldBegin func(gestureRecognizer GestureRecognizer) bool + _GestureRecognizerShouldReceiveTouch func(gestureRecognizer GestureRecognizer, touch Touch) bool } -// Asks the delegate if a gesture recognizer should attempt to recognize gestures for a particular event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1529420-gesturerecognizer?language=objc -func (di *GestureRecognizerDelegate) GestureRecognizerShouldAttemptToRecognizeWithEvent(gestureRecognizer GestureRecognizer, event Event) bool { - return di._GestureRecognizerShouldAttemptToRecognizeWithEvent(gestureRecognizer, event) -} func (di *GestureRecognizerDelegate) HasGestureRecognizerShouldBegin() bool { return di._GestureRecognizerShouldBegin != nil } @@ -130,22 +42,22 @@ func (di *GestureRecognizerDelegate) SetGestureRecognizerShouldBegin(f func(gest func (di *GestureRecognizerDelegate) GestureRecognizerShouldBegin(gestureRecognizer GestureRecognizer) bool { return di._GestureRecognizerShouldBegin(gestureRecognizer) } -func (di *GestureRecognizerDelegate) HasGestureRecognizerShouldBeRequiredToFailByGestureRecognizer() bool { - return di._GestureRecognizerShouldBeRequiredToFailByGestureRecognizer != nil +func (di *GestureRecognizerDelegate) HasGestureRecognizerShouldReceiveTouch() bool { + return di._GestureRecognizerShouldReceiveTouch != nil } -// Asks the delegate if the current gesture recognizer must fail before another gesture recognizer is allowed to recognize its gesture. [Full Topic] +// Called, for a new touch, before the system calls the touchesBegan:withEvent: method on the gesture recognizer. Return NO to prevent the gesture recognizer from seeing this touch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1535422-gesturerecognizer?language=objc -func (di *GestureRecognizerDelegate) SetGestureRecognizerShouldBeRequiredToFailByGestureRecognizer(f func(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool) { - di._GestureRecognizerShouldBeRequiredToFailByGestureRecognizer = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/2544787-gesturerecognizer?language=objc +func (di *GestureRecognizerDelegate) SetGestureRecognizerShouldReceiveTouch(f func(gestureRecognizer GestureRecognizer, touch Touch) bool) { + di._GestureRecognizerShouldReceiveTouch = f } -// Asks the delegate if the current gesture recognizer must fail before another gesture recognizer is allowed to recognize its gesture. [Full Topic] +// Called, for a new touch, before the system calls the touchesBegan:withEvent: method on the gesture recognizer. Return NO to prevent the gesture recognizer from seeing this touch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1535422-gesturerecognizer?language=objc -func (di *GestureRecognizerDelegate) GestureRecognizerShouldBeRequiredToFailByGestureRecognizer(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool { - return di._GestureRecognizerShouldBeRequiredToFailByGestureRecognizer(gestureRecognizer, otherGestureRecognizer) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/2544787-gesturerecognizer?language=objc +func (di *GestureRecognizerDelegate) GestureRecognizerShouldReceiveTouch(gestureRecognizer GestureRecognizer, touch Touch) bool { + return di._GestureRecognizerShouldReceiveTouch(gestureRecognizer, touch) } // ensure impl type implements protocol interface @@ -156,54 +68,6 @@ type GestureRecognizerDelegateObject struct { objc.Object } -func (g_ GestureRecognizerDelegateObject) HasGestureRecognizerShouldRequireFailureOfGestureRecognizer() bool { - return g_.RespondsToSelector(objc.Sel("gestureRecognizer:shouldRequireFailureOfGestureRecognizer:")) -} - -// Asks the delegate if the current gesture recognizer must wait to recognize its gesture until the specified gesture recognizer fails. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1527318-gesturerecognizer?language=objc -func (g_ GestureRecognizerDelegateObject) GestureRecognizerShouldRequireFailureOfGestureRecognizer(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool { - rv := objc.Call[bool](g_, objc.Sel("gestureRecognizer:shouldRequireFailureOfGestureRecognizer:"), gestureRecognizer, otherGestureRecognizer) - return rv -} - -func (g_ GestureRecognizerDelegateObject) HasGestureRecognizerShouldReceiveTouch() bool { - return g_.RespondsToSelector(objc.Sel("gestureRecognizer:shouldReceiveTouch:")) -} - -// Called, for a new touch, before the system calls the touchesBegan:withEvent: method on the gesture recognizer. Return NO to prevent the gesture recognizer from seeing this touch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/2544787-gesturerecognizer?language=objc -func (g_ GestureRecognizerDelegateObject) GestureRecognizerShouldReceiveTouch(gestureRecognizer GestureRecognizer, touch Touch) bool { - rv := objc.Call[bool](g_, objc.Sel("gestureRecognizer:shouldReceiveTouch:"), gestureRecognizer, touch) - return rv -} - -func (g_ GestureRecognizerDelegateObject) HasGestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer() bool { - return g_.RespondsToSelector(objc.Sel("gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:")) -} - -// Asks the delegate if two gesture recognizers should be allowed to recognize their gestures simultaneously. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1529773-gesturerecognizer?language=objc -func (g_ GestureRecognizerDelegateObject) GestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool { - rv := objc.Call[bool](g_, objc.Sel("gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:"), gestureRecognizer, otherGestureRecognizer) - return rv -} - -func (g_ GestureRecognizerDelegateObject) HasGestureRecognizerShouldAttemptToRecognizeWithEvent() bool { - return g_.RespondsToSelector(objc.Sel("gestureRecognizer:shouldAttemptToRecognizeWithEvent:")) -} - -// Asks the delegate if a gesture recognizer should attempt to recognize gestures for a particular event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1529420-gesturerecognizer?language=objc -func (g_ GestureRecognizerDelegateObject) GestureRecognizerShouldAttemptToRecognizeWithEvent(gestureRecognizer GestureRecognizer, event Event) bool { - rv := objc.Call[bool](g_, objc.Sel("gestureRecognizer:shouldAttemptToRecognizeWithEvent:"), gestureRecognizer, event) - return rv -} - func (g_ GestureRecognizerDelegateObject) HasGestureRecognizerShouldBegin() bool { return g_.RespondsToSelector(objc.Sel("gestureRecognizerShouldBegin:")) } @@ -216,14 +80,14 @@ func (g_ GestureRecognizerDelegateObject) GestureRecognizerShouldBegin(gestureRe return rv } -func (g_ GestureRecognizerDelegateObject) HasGestureRecognizerShouldBeRequiredToFailByGestureRecognizer() bool { - return g_.RespondsToSelector(objc.Sel("gestureRecognizer:shouldBeRequiredToFailByGestureRecognizer:")) +func (g_ GestureRecognizerDelegateObject) HasGestureRecognizerShouldReceiveTouch() bool { + return g_.RespondsToSelector(objc.Sel("gestureRecognizer:shouldReceiveTouch:")) } -// Asks the delegate if the current gesture recognizer must fail before another gesture recognizer is allowed to recognize its gesture. [Full Topic] +// Called, for a new touch, before the system calls the touchesBegan:withEvent: method on the gesture recognizer. Return NO to prevent the gesture recognizer from seeing this touch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1535422-gesturerecognizer?language=objc -func (g_ GestureRecognizerDelegateObject) GestureRecognizerShouldBeRequiredToFailByGestureRecognizer(gestureRecognizer GestureRecognizer, otherGestureRecognizer GestureRecognizer) bool { - rv := objc.Call[bool](g_, objc.Sel("gestureRecognizer:shouldBeRequiredToFailByGestureRecognizer:"), gestureRecognizer, otherGestureRecognizer) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/2544787-gesturerecognizer?language=objc +func (g_ GestureRecognizerDelegateObject) GestureRecognizerShouldReceiveTouch(gestureRecognizer GestureRecognizer, touch Touch) bool { + rv := objc.Call[bool](g_, objc.Sel("gestureRecognizer:shouldReceiveTouch:"), gestureRecognizer, touch) return rv } diff --git a/macos/appkit/glyph_storage_protocol.gen.go b/macos/appkit/glyph_storage_protocol.gen.go index a406691a..b552c782 100644 --- a/macos/appkit/glyph_storage_protocol.gen.go +++ b/macos/appkit/glyph_storage_protocol.gen.go @@ -12,20 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsglyphstorage?language=objc type PGlyphStorage interface { // optional - AttributedString() foundation.AttributedString - HasAttributedString() bool + SetIntAttributeValueForGlyphAtIndex(attributeTag int, val int, glyphIndex uint) + HasSetIntAttributeValueForGlyphAtIndex() bool // optional - InsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex(glyphs *Glyph, length uint, glyphIndex uint, charIndex uint) - HasInsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex() bool + AttributedString() foundation.AttributedString + HasAttributedString() bool // optional LayoutOptions() uint HasLayoutOptions() bool // optional - SetIntAttributeValueForGlyphAtIndex(attributeTag int, val int, glyphIndex uint) - HasSetIntAttributeValueForGlyphAtIndex() bool + InsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex(glyphs *Glyph, length uint, glyphIndex uint, charIndex uint) + HasInsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex() bool } // ensure impl type implements protocol interface @@ -36,6 +36,17 @@ type GlyphStorageObject struct { objc.Object } +func (g_ GlyphStorageObject) HasSetIntAttributeValueForGlyphAtIndex() bool { + return g_.RespondsToSelector(objc.Sel("setIntAttribute:value:forGlyphAtIndex:")) +} + +// Sets a custom attribute value for a given glyph. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsglyphstorage/1425141-setintattribute?language=objc +func (g_ GlyphStorageObject) SetIntAttributeValueForGlyphAtIndex(attributeTag int, val int, glyphIndex uint) { + objc.Call[objc.Void](g_, objc.Sel("setIntAttribute:value:forGlyphAtIndex:"), attributeTag, val, glyphIndex) +} + func (g_ GlyphStorageObject) HasAttributedString() bool { return g_.RespondsToSelector(objc.Sel("attributedString")) } @@ -48,17 +59,6 @@ func (g_ GlyphStorageObject) AttributedString() foundation.AttributedString { return rv } -func (g_ GlyphStorageObject) HasInsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex() bool { - return g_.RespondsToSelector(objc.Sel("insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:")) -} - -// Inserts the given glyphs into the glyph cache and maps them to the specified characters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsglyphstorage/1425153-insertglyphs?language=objc -func (g_ GlyphStorageObject) InsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex(glyphs *Glyph, length uint, glyphIndex uint, charIndex uint) { - objc.Call[objc.Void](g_, objc.Sel("insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:"), glyphs, length, glyphIndex, charIndex) -} - func (g_ GlyphStorageObject) HasLayoutOptions() bool { return g_.RespondsToSelector(objc.Sel("layoutOptions")) } @@ -71,13 +71,13 @@ func (g_ GlyphStorageObject) LayoutOptions() uint { return rv } -func (g_ GlyphStorageObject) HasSetIntAttributeValueForGlyphAtIndex() bool { - return g_.RespondsToSelector(objc.Sel("setIntAttribute:value:forGlyphAtIndex:")) +func (g_ GlyphStorageObject) HasInsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex() bool { + return g_.RespondsToSelector(objc.Sel("insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:")) } -// Sets a custom attribute value for a given glyph. [Full Topic] +// Inserts the given glyphs into the glyph cache and maps them to the specified characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsglyphstorage/1425141-setintattribute?language=objc -func (g_ GlyphStorageObject) SetIntAttributeValueForGlyphAtIndex(attributeTag int, val int, glyphIndex uint) { - objc.Call[objc.Void](g_, objc.Sel("setIntAttribute:value:forGlyphAtIndex:"), attributeTag, val, glyphIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsglyphstorage/1425153-insertglyphs?language=objc +func (g_ GlyphStorageObject) InsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex(glyphs *Glyph, length uint, glyphIndex uint, charIndex uint) { + objc.Call[objc.Void](g_, objc.Sel("insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:"), glyphs, length, glyphIndex, charIndex) } diff --git a/macos/appkit/gradient.gen.go b/macos/appkit/gradient.gen.go index 4e059245..81c22540 100644 --- a/macos/appkit/gradient.gen.go +++ b/macos/appkit/gradient.gen.go @@ -19,13 +19,11 @@ type _GradientClass struct { // An interface definition for the [Gradient] class. type IGradient interface { objc.IObject + GetColorLocationAtIndex(color unsafe.Pointer, location *float64, index int) + DrawFromCenterRadiusToCenterRadiusOptions(startCenter foundation.Point, startRadius float64, endCenter foundation.Point, endRadius float64, options GradientDrawingOptions) DrawInRectRelativeCenterPosition(rect foundation.Rect, relativeCenterPosition foundation.Point) InterpolatedColorAtLocation(location float64) Color - DrawFromCenterRadiusToCenterRadiusOptions(startCenter foundation.Point, startRadius float64, endCenter foundation.Point, endRadius float64, options GradientDrawingOptions) - GetColorLocationAtIndex(color unsafe.Pointer, location *float64, index int) - DrawInRectAngle(rect foundation.Rect, angle float64) DrawFromPointToPointOptions(startingPoint foundation.Point, endingPoint foundation.Point, options GradientDrawingOptions) - DrawInBezierPathRelativeCenterPosition(path IBezierPath, relativeCenterPosition foundation.Point) DrawInBezierPathAngle(path IBezierPath, angle float64) ColorSpace() ColorSpace NumberOfColorStops() int @@ -44,20 +42,6 @@ func GradientFrom(ptr unsafe.Pointer) Gradient { } } -func (g_ Gradient) InitWithStartingColorEndingColor(startingColor IColor, endingColor IColor) Gradient { - rv := objc.Call[Gradient](g_, objc.Sel("initWithStartingColor:endingColor:"), startingColor, endingColor) - return rv -} - -// Initializes a newly allocated gradient object with two colors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1525448-initwithstartingcolor?language=objc -func NewGradientWithStartingColorEndingColor(startingColor IColor, endingColor IColor) Gradient { - instance := GradientClass.Alloc().InitWithStartingColorEndingColor(startingColor, endingColor) - instance.Autorelease() - return instance -} - func (g_ Gradient) InitWithColorsAndLocations(firstColor IColor, args ...any) Gradient { rv := objc.Call[Gradient](g_, objc.Sel("initWithColorsAndLocations:"), append([]any{firstColor}, args...)...) return rv @@ -72,16 +56,16 @@ func NewGradientWithColorsAndLocations(firstColor IColor, args ...any) Gradient return instance } -func (g_ Gradient) InitWithColorsAtLocationsColorSpace(colorArray []IColor, locations *float64, colorSpace IColorSpace) Gradient { - rv := objc.Call[Gradient](g_, objc.Sel("initWithColors:atLocations:colorSpace:"), colorArray, locations, colorSpace) +func (g_ Gradient) InitWithStartingColorEndingColor(startingColor IColor, endingColor IColor) Gradient { + rv := objc.Call[Gradient](g_, objc.Sel("initWithStartingColor:endingColor:"), startingColor, endingColor) return rv } -// Initializes a newly allocated gradient object with the specified colors, color locations, and color space. [Full Topic] +// Initializes a newly allocated gradient object with two colors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1524459-initwithcolors?language=objc -func NewGradientWithColorsAtLocationsColorSpace(colorArray []IColor, locations *float64, colorSpace IColorSpace) Gradient { - instance := GradientClass.Alloc().InitWithColorsAtLocationsColorSpace(colorArray, locations, colorSpace) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1525448-initwithstartingcolor?language=objc +func NewGradientWithStartingColorEndingColor(startingColor IColor, endingColor IColor) Gradient { + instance := GradientClass.Alloc().InitWithStartingColorEndingColor(startingColor, endingColor) instance.Autorelease() return instance } @@ -120,19 +104,11 @@ func (g_ Gradient) Init() Gradient { return rv } -// Draws a radial gradient starting at the center of the specified rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1533703-drawinrect?language=objc -func (g_ Gradient) DrawInRectRelativeCenterPosition(rect foundation.Rect, relativeCenterPosition foundation.Point) { - objc.Call[objc.Void](g_, objc.Sel("drawInRect:relativeCenterPosition:"), rect, relativeCenterPosition) -} - -// Returns the color of the rendered gradient at the specified relative location. [Full Topic] +// Returns information about the color stop at the specified index in the receiver’s color array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1526409-interpolatedcoloratlocation?language=objc -func (g_ Gradient) InterpolatedColorAtLocation(location float64) Color { - rv := objc.Call[Color](g_, objc.Sel("interpolatedColorAtLocation:"), location) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1533505-getcolor?language=objc +func (g_ Gradient) GetColorLocationAtIndex(color unsafe.Pointer, location *float64, index int) { + objc.Call[objc.Void](g_, objc.Sel("getColor:location:atIndex:"), color, location, index) } // Draws a radial gradient between the specified circles. [Full Topic] @@ -142,18 +118,19 @@ func (g_ Gradient) DrawFromCenterRadiusToCenterRadiusOptions(startCenter foundat objc.Call[objc.Void](g_, objc.Sel("drawFromCenter:radius:toCenter:radius:options:"), startCenter, startRadius, endCenter, endRadius, options) } -// Returns information about the color stop at the specified index in the receiver’s color array. [Full Topic] +// Draws a radial gradient starting at the center of the specified rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1533505-getcolor?language=objc -func (g_ Gradient) GetColorLocationAtIndex(color unsafe.Pointer, location *float64, index int) { - objc.Call[objc.Void](g_, objc.Sel("getColor:location:atIndex:"), color, location, index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1533703-drawinrect?language=objc +func (g_ Gradient) DrawInRectRelativeCenterPosition(rect foundation.Rect, relativeCenterPosition foundation.Point) { + objc.Call[objc.Void](g_, objc.Sel("drawInRect:relativeCenterPosition:"), rect, relativeCenterPosition) } -// Fills the specified rectangle with a linear gradient. [Full Topic] +// Returns the color of the rendered gradient at the specified relative location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1529086-drawinrect?language=objc -func (g_ Gradient) DrawInRectAngle(rect foundation.Rect, angle float64) { - objc.Call[objc.Void](g_, objc.Sel("drawInRect:angle:"), rect, angle) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1526409-interpolatedcoloratlocation?language=objc +func (g_ Gradient) InterpolatedColorAtLocation(location float64) Color { + rv := objc.Call[Color](g_, objc.Sel("interpolatedColorAtLocation:"), location) + return rv } // Draws a linear gradient between the specified start and end points. [Full Topic] @@ -163,13 +140,6 @@ func (g_ Gradient) DrawFromPointToPointOptions(startingPoint foundation.Point, e objc.Call[objc.Void](g_, objc.Sel("drawFromPoint:toPoint:options:"), startingPoint, endingPoint, options) } -// Draws a radial gradient starting at the center point of the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1530168-drawinbezierpath?language=objc -func (g_ Gradient) DrawInBezierPathRelativeCenterPosition(path IBezierPath, relativeCenterPosition foundation.Point) { - objc.Call[objc.Void](g_, objc.Sel("drawInBezierPath:relativeCenterPosition:"), path, relativeCenterPosition) -} - // Fills the specified path with a linear gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1534785-drawinbezierpath?language=objc diff --git a/macos/appkit/graphics_context.gen.go b/macos/appkit/graphics_context.gen.go index 3ee94b21..a6161238 100644 --- a/macos/appkit/graphics_context.gen.go +++ b/macos/appkit/graphics_context.gen.go @@ -22,21 +22,21 @@ type _GraphicsContextClass struct { type IGraphicsContext interface { objc.IObject FlushGraphics() + PatternPhase() foundation.Point + SetPatternPhase(value foundation.Point) + CIContext() coreimage.Context + ImageInterpolation() ImageInterpolation + SetImageInterpolation(value ImageInterpolation) ShouldAntialias() bool SetShouldAntialias(value bool) CGContext() coregraphics.ContextRef - IsDrawingToScreen() bool - ColorRenderingIntent() ColorRenderingIntent - SetColorRenderingIntent(value ColorRenderingIntent) CompositingOperation() CompositingOperation SetCompositingOperation(value CompositingOperation) + ColorRenderingIntent() ColorRenderingIntent + SetColorRenderingIntent(value ColorRenderingIntent) + IsDrawingToScreen() bool IsFlipped() bool - ImageInterpolation() ImageInterpolation - SetImageInterpolation(value ImageInterpolation) Attributes() map[GraphicsContextAttributeKey]objc.Object - PatternPhase() foundation.Point - SetPatternPhase(value foundation.Point) - CIContext() coreimage.Context } // An object that represents a graphics context. [Full Topic] @@ -72,6 +72,43 @@ func (g_ GraphicsContext) Init() GraphicsContext { return rv } +// Returns a Boolean value that indicates whether the current context is drawing to the screen. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1525944-currentcontextdrawingtoscreen?language=objc +func (gc _GraphicsContextClass) CurrentContextDrawingToScreen() bool { + rv := objc.Call[bool](gc, objc.Sel("currentContextDrawingToScreen")) + return rv +} + +// Returns a Boolean value that indicates whether the current context is drawing to the screen. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1525944-currentcontextdrawingtoscreen?language=objc +func GraphicsContext_CurrentContextDrawingToScreen() bool { + return GraphicsContextClass.CurrentContextDrawingToScreen() +} + +// Creates a new graphics context for drawing into a window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1532883-graphicscontextwithwindow?language=objc +func (gc _GraphicsContextClass) GraphicsContextWithWindow(window IWindow) GraphicsContext { + rv := objc.Call[GraphicsContext](gc, objc.Sel("graphicsContextWithWindow:"), window) + return rv +} + +// Creates a new graphics context for drawing into a window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1532883-graphicscontextwithwindow?language=objc +func GraphicsContext_GraphicsContextWithWindow(window IWindow) GraphicsContext { + return GraphicsContextClass.GraphicsContextWithWindow(window) +} + +// Forces any buffered operations or data to be sent to the graphics context’s destination. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1527919-flushgraphics?language=objc +func (g_ GraphicsContext) FlushGraphics() { + objc.Call[objc.Void](g_, objc.Sel("flushGraphics")) +} + // Creates a new graphics context from the specified Core Graphics context and the initial flipped state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1535380-graphicscontextwithcgcontext?language=objc @@ -87,18 +124,47 @@ func GraphicsContext_GraphicsContextWithCGContextFlipped(graphicsPort coregraphi return GraphicsContextClass.GraphicsContextWithCGContextFlipped(graphicsPort, initialFlippedState) } +// Pops a graphics context from the per-thread stack, makes it current, and sends the context a restore graphics state message. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1524294-restoregraphicsstate?language=objc +func (gc _GraphicsContextClass) RestoreGraphicsState() { + objc.Call[objc.Void](gc, objc.Sel("restoreGraphicsState")) +} + +// Pops a graphics context from the per-thread stack, makes it current, and sends the context a restore graphics state message. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1524294-restoregraphicsstate?language=objc +func GraphicsContext_RestoreGraphicsState() { + GraphicsContextClass.RestoreGraphicsState() +} + +// Creates a new graphics context using the specified bipmap image representation object as the context destination. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529827-graphicscontextwithbitmapimagere?language=objc +func (gc _GraphicsContextClass) GraphicsContextWithBitmapImageRep(bitmapRep IBitmapImageRep) GraphicsContext { + rv := objc.Call[GraphicsContext](gc, objc.Sel("graphicsContextWithBitmapImageRep:"), bitmapRep) + return rv +} + +// Creates a new graphics context using the specified bipmap image representation object as the context destination. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529827-graphicscontextwithbitmapimagere?language=objc +func GraphicsContext_GraphicsContextWithBitmapImageRep(bitmapRep IBitmapImageRep) GraphicsContext { + return GraphicsContextClass.GraphicsContextWithBitmapImageRep(bitmapRep) +} + // Saves the graphics state of the current graphics context. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1526017-savegraphicsstate?language=objc -func (gc _GraphicsContextClass) SaveGraphicsState_() { +func (gc _GraphicsContextClass) SaveGraphicsState() { objc.Call[objc.Void](gc, objc.Sel("saveGraphicsState")) } // Saves the graphics state of the current graphics context. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1526017-savegraphicsstate?language=objc -func GraphicsContext_SaveGraphicsState_() { - GraphicsContextClass.SaveGraphicsState_() +func GraphicsContext_SaveGraphicsState() { + GraphicsContextClass.SaveGraphicsState() } // Creates a graphics context using the specified attributes. [Full Topic] @@ -116,70 +182,71 @@ func GraphicsContext_GraphicsContextWithAttributes(attributes map[GraphicsContex return GraphicsContextClass.GraphicsContextWithAttributes(attributes) } -// Returns a Boolean value that indicates whether the current context is drawing to the screen. [Full Topic] +// The amount to offset the pattern color when filling the graphics context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1525944-currentcontextdrawingtoscreen?language=objc -func (gc _GraphicsContextClass) CurrentContextDrawingToScreen() bool { - rv := objc.Call[bool](gc, objc.Sel("currentContextDrawingToScreen")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1527510-patternphase?language=objc +func (g_ GraphicsContext) PatternPhase() foundation.Point { + rv := objc.Call[foundation.Point](g_, objc.Sel("patternPhase")) return rv } -// Returns a Boolean value that indicates whether the current context is drawing to the screen. [Full Topic] +// The amount to offset the pattern color when filling the graphics context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1525944-currentcontextdrawingtoscreen?language=objc -func GraphicsContext_CurrentContextDrawingToScreen() bool { - return GraphicsContextClass.CurrentContextDrawingToScreen() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1527510-patternphase?language=objc +func (g_ GraphicsContext) SetPatternPhase(value foundation.Point) { + objc.Call[objc.Void](g_, objc.Sel("setPatternPhase:"), value) } -// Creates a new graphics context using the specified bipmap image representation object as the context destination. [Full Topic] +// Returns the current graphics context of the current thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529827-graphicscontextwithbitmapimagere?language=objc -func (gc _GraphicsContextClass) GraphicsContextWithBitmapImageRep(bitmapRep IBitmapImageRep) GraphicsContext { - rv := objc.Call[GraphicsContext](gc, objc.Sel("graphicsContextWithBitmapImageRep:"), bitmapRep) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1535352-currentcontext?language=objc +func (gc _GraphicsContextClass) CurrentContext() GraphicsContext { + rv := objc.Call[GraphicsContext](gc, objc.Sel("currentContext")) return rv } -// Creates a new graphics context using the specified bipmap image representation object as the context destination. [Full Topic] +// Returns the current graphics context of the current thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529827-graphicscontextwithbitmapimagere?language=objc -func GraphicsContext_GraphicsContextWithBitmapImageRep(bitmapRep IBitmapImageRep) GraphicsContext { - return GraphicsContextClass.GraphicsContextWithBitmapImageRep(bitmapRep) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1535352-currentcontext?language=objc +func GraphicsContext_CurrentContext() GraphicsContext { + return GraphicsContextClass.CurrentContext() } -// Forces any buffered operations or data to be sent to the graphics context’s destination. [Full Topic] +// Returns the current graphics context of the current thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1527919-flushgraphics?language=objc -func (g_ GraphicsContext) FlushGraphics() { - objc.Call[objc.Void](g_, objc.Sel("flushGraphics")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1535352-currentcontext?language=objc +func (gc _GraphicsContextClass) SetCurrentContext(value IGraphicsContext) { + objc.Call[objc.Void](gc, objc.Sel("setCurrentContext:"), value) } -// Pops a graphics context from the per-thread stack, makes it current, and sends the context a restore graphics state message. [Full Topic] +// Returns the current graphics context of the current thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1524294-restoregraphicsstate?language=objc -func (gc _GraphicsContextClass) RestoreGraphicsState_() { - objc.Call[objc.Void](gc, objc.Sel("restoreGraphicsState")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1535352-currentcontext?language=objc +func GraphicsContext_SetCurrentContext(value IGraphicsContext) { + GraphicsContextClass.SetCurrentContext(value) } -// Pops a graphics context from the per-thread stack, makes it current, and sends the context a restore graphics state message. [Full Topic] +// A context for Core Image objects that you can use to render into the graphics context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1524294-restoregraphicsstate?language=objc -func GraphicsContext_RestoreGraphicsState_() { - GraphicsContextClass.RestoreGraphicsState_() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1534326-cicontext?language=objc +func (g_ GraphicsContext) CIContext() coreimage.Context { + rv := objc.Call[coreimage.Context](g_, objc.Sel("CIContext")) + return rv } -// Creates a new graphics context for drawing into a window. [Full Topic] +// A constant that specifies the graphics context’s interpolation, or image smoothing, behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1532883-graphicscontextwithwindow?language=objc -func (gc _GraphicsContextClass) GraphicsContextWithWindow(window IWindow) GraphicsContext { - rv := objc.Call[GraphicsContext](gc, objc.Sel("graphicsContextWithWindow:"), window) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529711-imageinterpolation?language=objc +func (g_ GraphicsContext) ImageInterpolation() ImageInterpolation { + rv := objc.Call[ImageInterpolation](g_, objc.Sel("imageInterpolation")) return rv } -// Creates a new graphics context for drawing into a window. [Full Topic] +// A constant that specifies the graphics context’s interpolation, or image smoothing, behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1532883-graphicscontextwithwindow?language=objc -func GraphicsContext_GraphicsContextWithWindow(window IWindow) GraphicsContext { - return GraphicsContextClass.GraphicsContextWithWindow(window) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529711-imageinterpolation?language=objc +func (g_ GraphicsContext) SetImageInterpolation(value ImageInterpolation) { + objc.Call[objc.Void](g_, objc.Sel("setImageInterpolation:"), value) } // A Boolean value that indicates whether the graphics context uses antialiasing. [Full Topic] @@ -205,14 +272,21 @@ func (g_ GraphicsContext) CGContext() coregraphics.ContextRef { return rv } -// A Boolean value that indicates whether the drawing destination is the screen. [Full Topic] +// The graphics context’s global compositing operation setting. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1524673-drawingtoscreen?language=objc -func (g_ GraphicsContext) IsDrawingToScreen() bool { - rv := objc.Call[bool](g_, objc.Sel("isDrawingToScreen")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1525984-compositingoperation?language=objc +func (g_ GraphicsContext) CompositingOperation() CompositingOperation { + rv := objc.Call[CompositingOperation](g_, objc.Sel("compositingOperation")) return rv } +// The graphics context’s global compositing operation setting. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1525984-compositingoperation?language=objc +func (g_ GraphicsContext) SetCompositingOperation(value CompositingOperation) { + objc.Call[objc.Void](g_, objc.Sel("setCompositingOperation:"), value) +} + // The color rendering intent in the graphics context’s graphics state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1533527-colorrenderingintent?language=objc @@ -228,21 +302,14 @@ func (g_ GraphicsContext) SetColorRenderingIntent(value ColorRenderingIntent) { objc.Call[objc.Void](g_, objc.Sel("setColorRenderingIntent:"), value) } -// The graphics context’s global compositing operation setting. [Full Topic] +// A Boolean value that indicates whether the drawing destination is the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1525984-compositingoperation?language=objc -func (g_ GraphicsContext) CompositingOperation() CompositingOperation { - rv := objc.Call[CompositingOperation](g_, objc.Sel("compositingOperation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1524673-drawingtoscreen?language=objc +func (g_ GraphicsContext) IsDrawingToScreen() bool { + rv := objc.Call[bool](g_, objc.Sel("isDrawingToScreen")) return rv } -// The graphics context’s global compositing operation setting. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1525984-compositingoperation?language=objc -func (g_ GraphicsContext) SetCompositingOperation(value CompositingOperation) { - objc.Call[objc.Void](g_, objc.Sel("setCompositingOperation:"), value) -} - // A Boolean value that indicates the graphics context’s flipped state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1531568-flipped?language=objc @@ -251,21 +318,6 @@ func (g_ GraphicsContext) IsFlipped() bool { return rv } -// A constant that specifies the graphics context’s interpolation, or image smoothing, behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529711-imageinterpolation?language=objc -func (g_ GraphicsContext) ImageInterpolation() ImageInterpolation { - rv := objc.Call[ImageInterpolation](g_, objc.Sel("imageInterpolation")) - return rv -} - -// A constant that specifies the graphics context’s interpolation, or image smoothing, behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529711-imageinterpolation?language=objc -func (g_ GraphicsContext) SetImageInterpolation(value ImageInterpolation) { - objc.Call[objc.Void](g_, objc.Sel("setImageInterpolation:"), value) -} - // The attributes used to create this instance. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1528254-attributes?language=objc @@ -273,55 +325,3 @@ func (g_ GraphicsContext) Attributes() map[GraphicsContextAttributeKey]objc.Obje rv := objc.Call[map[GraphicsContextAttributeKey]objc.Object](g_, objc.Sel("attributes")) return rv } - -// The amount to offset the pattern color when filling the graphics context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1527510-patternphase?language=objc -func (g_ GraphicsContext) PatternPhase() foundation.Point { - rv := objc.Call[foundation.Point](g_, objc.Sel("patternPhase")) - return rv -} - -// The amount to offset the pattern color when filling the graphics context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1527510-patternphase?language=objc -func (g_ GraphicsContext) SetPatternPhase(value foundation.Point) { - objc.Call[objc.Void](g_, objc.Sel("setPatternPhase:"), value) -} - -// A context for Core Image objects that you can use to render into the graphics context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1534326-cicontext?language=objc -func (g_ GraphicsContext) CIContext() coreimage.Context { - rv := objc.Call[coreimage.Context](g_, objc.Sel("CIContext")) - return rv -} - -// Returns the current graphics context of the current thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1535352-currentcontext?language=objc -func (gc _GraphicsContextClass) CurrentContext() GraphicsContext { - rv := objc.Call[GraphicsContext](gc, objc.Sel("currentContext")) - return rv -} - -// Returns the current graphics context of the current thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1535352-currentcontext?language=objc -func GraphicsContext_CurrentContext() GraphicsContext { - return GraphicsContextClass.CurrentContext() -} - -// Returns the current graphics context of the current thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1535352-currentcontext?language=objc -func (gc _GraphicsContextClass) SetCurrentContext(value IGraphicsContext) { - objc.Call[objc.Void](gc, objc.Sel("setCurrentContext:"), value) -} - -// Returns the current graphics context of the current thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1535352-currentcontext?language=objc -func GraphicsContext_SetCurrentContext(value IGraphicsContext) { - GraphicsContextClass.SetCurrentContext(value) -} diff --git a/macos/appkit/grid_cell.gen.go b/macos/appkit/grid_cell.gen.go index cea2d592..a45794e1 100644 --- a/macos/appkit/grid_cell.gen.go +++ b/macos/appkit/grid_cell.gen.go @@ -18,18 +18,18 @@ type _GridCellClass struct { // An interface definition for the [GridCell] class. type IGridCell interface { objc.IObject + RowAlignment() GridRowAlignment + SetRowAlignment(value GridRowAlignment) + ContentView() View + SetContentView(value IView) + CustomPlacementConstraints() []LayoutConstraint + SetCustomPlacementConstraints(value []ILayoutConstraint) YPlacement() GridCellPlacement SetYPlacement(value GridCellPlacement) + Column() GridColumn Row() GridRow XPlacement() GridCellPlacement SetXPlacement(value GridCellPlacement) - Column() GridColumn - RowAlignment() GridRowAlignment - SetRowAlignment(value GridRowAlignment) - CustomPlacementConstraints() []LayoutConstraint - SetCustomPlacementConstraints(value []ILayoutConstraint) - ContentView() View - SetContentView(value IView) } // An individual content area within a grid view, typically at the intersection of a row and a column. [Full Topic] @@ -67,17 +67,17 @@ func (g_ GridCell) Init() GridCell { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639737-yplacement?language=objc -func (g_ GridCell) YPlacement() GridCellPlacement { - rv := objc.Call[GridCellPlacement](g_, objc.Sel("yPlacement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1823686-rowalignment?language=objc +func (g_ GridCell) RowAlignment() GridRowAlignment { + rv := objc.Call[GridRowAlignment](g_, objc.Sel("rowAlignment")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639737-yplacement?language=objc -func (g_ GridCell) SetYPlacement(value GridCellPlacement) { - objc.Call[objc.Void](g_, objc.Sel("setYPlacement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1823686-rowalignment?language=objc +func (g_ GridCell) SetRowAlignment(value GridRowAlignment) { + objc.Call[objc.Void](g_, objc.Sel("setRowAlignment:"), value) } // [Full Topic] @@ -97,76 +97,76 @@ func GridCell_EmptyContentView() View { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639763-row?language=objc -func (g_ GridCell) Row() GridRow { - rv := objc.Call[GridRow](g_, objc.Sel("row")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639721-contentview?language=objc +func (g_ GridCell) ContentView() View { + rv := objc.Call[View](g_, objc.Sel("contentView")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639710-xplacement?language=objc -func (g_ GridCell) XPlacement() GridCellPlacement { - rv := objc.Call[GridCellPlacement](g_, objc.Sel("xPlacement")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639721-contentview?language=objc +func (g_ GridCell) SetContentView(value IView) { + objc.Call[objc.Void](g_, objc.Sel("setContentView:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639710-xplacement?language=objc -func (g_ GridCell) SetXPlacement(value GridCellPlacement) { - objc.Call[objc.Void](g_, objc.Sel("setXPlacement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639717-customplacementconstraints?language=objc +func (g_ GridCell) CustomPlacementConstraints() []LayoutConstraint { + rv := objc.Call[[]LayoutConstraint](g_, objc.Sel("customPlacementConstraints")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639747-column?language=objc -func (g_ GridCell) Column() GridColumn { - rv := objc.Call[GridColumn](g_, objc.Sel("column")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639717-customplacementconstraints?language=objc +func (g_ GridCell) SetCustomPlacementConstraints(value []ILayoutConstraint) { + objc.Call[objc.Void](g_, objc.Sel("setCustomPlacementConstraints:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1823686-rowalignment?language=objc -func (g_ GridCell) RowAlignment() GridRowAlignment { - rv := objc.Call[GridRowAlignment](g_, objc.Sel("rowAlignment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639737-yplacement?language=objc +func (g_ GridCell) YPlacement() GridCellPlacement { + rv := objc.Call[GridCellPlacement](g_, objc.Sel("yPlacement")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1823686-rowalignment?language=objc -func (g_ GridCell) SetRowAlignment(value GridRowAlignment) { - objc.Call[objc.Void](g_, objc.Sel("setRowAlignment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639737-yplacement?language=objc +func (g_ GridCell) SetYPlacement(value GridCellPlacement) { + objc.Call[objc.Void](g_, objc.Sel("setYPlacement:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639717-customplacementconstraints?language=objc -func (g_ GridCell) CustomPlacementConstraints() []LayoutConstraint { - rv := objc.Call[[]LayoutConstraint](g_, objc.Sel("customPlacementConstraints")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639747-column?language=objc +func (g_ GridCell) Column() GridColumn { + rv := objc.Call[GridColumn](g_, objc.Sel("column")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639717-customplacementconstraints?language=objc -func (g_ GridCell) SetCustomPlacementConstraints(value []ILayoutConstraint) { - objc.Call[objc.Void](g_, objc.Sel("setCustomPlacementConstraints:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639763-row?language=objc +func (g_ GridCell) Row() GridRow { + rv := objc.Call[GridRow](g_, objc.Sel("row")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639721-contentview?language=objc -func (g_ GridCell) ContentView() View { - rv := objc.Call[View](g_, objc.Sel("contentView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639710-xplacement?language=objc +func (g_ GridCell) XPlacement() GridCellPlacement { + rv := objc.Call[GridCellPlacement](g_, objc.Sel("xPlacement")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639721-contentview?language=objc -func (g_ GridCell) SetContentView(value IView) { - objc.Call[objc.Void](g_, objc.Sel("setContentView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcell/1639710-xplacement?language=objc +func (g_ GridCell) SetXPlacement(value GridCellPlacement) { + objc.Call[objc.Void](g_, objc.Sel("setXPlacement:"), value) } diff --git a/macos/appkit/grid_column.gen.go b/macos/appkit/grid_column.gen.go index 9e2d85c8..c2647481 100644 --- a/macos/appkit/grid_column.gen.go +++ b/macos/appkit/grid_column.gen.go @@ -19,20 +19,20 @@ type _GridColumnClass struct { // An interface definition for the [GridColumn] class. type IGridColumn interface { objc.IObject - CellAtIndex(index int) GridCell MergeCellsInRange(range_ foundation.Range) - GridView() GridView + CellAtIndex(index int) GridCell + Width() float64 + SetWidth(value float64) IsHidden() bool SetHidden(value bool) + LeadingPadding() float64 + SetLeadingPadding(value float64) + GridView() GridView XPlacement() GridCellPlacement SetXPlacement(value GridCellPlacement) - Width() float64 - SetWidth(value float64) TrailingPadding() float64 SetTrailingPadding(value float64) NumberOfCells() int - LeadingPadding() float64 - SetLeadingPadding(value float64) } // A column within a grid view. [Full Topic] @@ -68,6 +68,13 @@ func (g_ GridColumn) Init() GridColumn { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639752-mergecellsinrange?language=objc +func (g_ GridColumn) MergeCellsInRange(range_ foundation.Range) { + objc.Call[objc.Void](g_, objc.Sel("mergeCellsInRange:"), range_) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639683-cellatindex?language=objc @@ -78,17 +85,17 @@ func (g_ GridColumn) CellAtIndex(index int) GridCell { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639752-mergecellsinrange?language=objc -func (g_ GridColumn) MergeCellsInRange(range_ foundation.Range) { - objc.Call[objc.Void](g_, objc.Sel("mergeCellsInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639679-width?language=objc +func (g_ GridColumn) Width() float64 { + rv := objc.Call[float64](g_, objc.Sel("width")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639675-gridview?language=objc -func (g_ GridColumn) GridView() GridView { - rv := objc.Call[GridView](g_, objc.Sel("gridView")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639679-width?language=objc +func (g_ GridColumn) SetWidth(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setWidth:"), value) } // [Full Topic] @@ -108,32 +115,40 @@ func (g_ GridColumn) SetHidden(value bool) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639663-xplacement?language=objc -func (g_ GridColumn) XPlacement() GridCellPlacement { - rv := objc.Call[GridCellPlacement](g_, objc.Sel("xPlacement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639769-leadingpadding?language=objc +func (g_ GridColumn) LeadingPadding() float64 { + rv := objc.Call[float64](g_, objc.Sel("leadingPadding")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639663-xplacement?language=objc -func (g_ GridColumn) SetXPlacement(value GridCellPlacement) { - objc.Call[objc.Void](g_, objc.Sel("setXPlacement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639769-leadingpadding?language=objc +func (g_ GridColumn) SetLeadingPadding(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setLeadingPadding:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639679-width?language=objc -func (g_ GridColumn) Width() float64 { - rv := objc.Call[float64](g_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639675-gridview?language=objc +func (g_ GridColumn) GridView() GridView { + rv := objc.Call[GridView](g_, objc.Sel("gridView")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639679-width?language=objc -func (g_ GridColumn) SetWidth(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639663-xplacement?language=objc +func (g_ GridColumn) XPlacement() GridCellPlacement { + rv := objc.Call[GridCellPlacement](g_, objc.Sel("xPlacement")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639663-xplacement?language=objc +func (g_ GridColumn) SetXPlacement(value GridCellPlacement) { + objc.Call[objc.Void](g_, objc.Sel("setXPlacement:"), value) } // [Full Topic] @@ -158,18 +173,3 @@ func (g_ GridColumn) NumberOfCells() int { rv := objc.Call[int](g_, objc.Sel("numberOfCells")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639769-leadingpadding?language=objc -func (g_ GridColumn) LeadingPadding() float64 { - rv := objc.Call[float64](g_, objc.Sel("leadingPadding")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridcolumn/1639769-leadingpadding?language=objc -func (g_ GridColumn) SetLeadingPadding(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setLeadingPadding:"), value) -} diff --git a/macos/appkit/grid_row.gen.go b/macos/appkit/grid_row.gen.go index ab77f688..4d63ce88 100644 --- a/macos/appkit/grid_row.gen.go +++ b/macos/appkit/grid_row.gen.go @@ -19,22 +19,22 @@ type _GridRowClass struct { // An interface definition for the [GridRow] class. type IGridRow interface { objc.IObject - CellAtIndex(index int) GridCell MergeCellsInRange(range_ foundation.Range) - Height() float64 - SetHeight(value float64) - NumberOfCells() int - TopPadding() float64 - SetTopPadding(value float64) + CellAtIndex(index int) GridCell + RowAlignment() GridRowAlignment + SetRowAlignment(value GridRowAlignment) IsHidden() bool SetHidden(value bool) YPlacement() GridCellPlacement SetYPlacement(value GridCellPlacement) + Height() float64 + SetHeight(value float64) + GridView() GridView BottomPadding() float64 SetBottomPadding(value float64) - GridView() GridView - RowAlignment() GridRowAlignment - SetRowAlignment(value GridRowAlignment) + NumberOfCells() int + TopPadding() float64 + SetTopPadding(value float64) } // A row within a grid view. [Full Topic] @@ -70,14 +70,6 @@ func (g_ GridRow) Init() GridRow { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639712-cellatindex?language=objc -func (g_ GridRow) CellAtIndex(index int) GridCell { - rv := objc.Call[GridCell](g_, objc.Sel("cellAtIndex:"), index) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639726-mergecellsinrange?language=objc @@ -87,40 +79,25 @@ func (g_ GridRow) MergeCellsInRange(range_ foundation.Range) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639728-height?language=objc -func (g_ GridRow) Height() float64 { - rv := objc.Call[float64](g_, objc.Sel("height")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639728-height?language=objc -func (g_ GridRow) SetHeight(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setHeight:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639685-numberofcells?language=objc -func (g_ GridRow) NumberOfCells() int { - rv := objc.Call[int](g_, objc.Sel("numberOfCells")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639712-cellatindex?language=objc +func (g_ GridRow) CellAtIndex(index int) GridCell { + rv := objc.Call[GridCell](g_, objc.Sel("cellAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639785-toppadding?language=objc -func (g_ GridRow) TopPadding() float64 { - rv := objc.Call[float64](g_, objc.Sel("topPadding")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1823690-rowalignment?language=objc +func (g_ GridRow) RowAlignment() GridRowAlignment { + rv := objc.Call[GridRowAlignment](g_, objc.Sel("rowAlignment")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639785-toppadding?language=objc -func (g_ GridRow) SetTopPadding(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setTopPadding:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1823690-rowalignment?language=objc +func (g_ GridRow) SetRowAlignment(value GridRowAlignment) { + objc.Call[objc.Void](g_, objc.Sel("setRowAlignment:"), value) } // [Full Topic] @@ -153,6 +130,29 @@ func (g_ GridRow) SetYPlacement(value GridCellPlacement) { objc.Call[objc.Void](g_, objc.Sel("setYPlacement:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639728-height?language=objc +func (g_ GridRow) Height() float64 { + rv := objc.Call[float64](g_, objc.Sel("height")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639728-height?language=objc +func (g_ GridRow) SetHeight(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setHeight:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639773-gridview?language=objc +func (g_ GridRow) GridView() GridView { + rv := objc.Call[GridView](g_, objc.Sel("gridView")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639739-bottompadding?language=objc @@ -170,23 +170,23 @@ func (g_ GridRow) SetBottomPadding(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639773-gridview?language=objc -func (g_ GridRow) GridView() GridView { - rv := objc.Call[GridView](g_, objc.Sel("gridView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639685-numberofcells?language=objc +func (g_ GridRow) NumberOfCells() int { + rv := objc.Call[int](g_, objc.Sel("numberOfCells")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1823690-rowalignment?language=objc -func (g_ GridRow) RowAlignment() GridRowAlignment { - rv := objc.Call[GridRowAlignment](g_, objc.Sel("rowAlignment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639785-toppadding?language=objc +func (g_ GridRow) TopPadding() float64 { + rv := objc.Call[float64](g_, objc.Sel("topPadding")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1823690-rowalignment?language=objc -func (g_ GridRow) SetRowAlignment(value GridRowAlignment) { - objc.Call[objc.Void](g_, objc.Sel("setRowAlignment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridrow/1639785-toppadding?language=objc +func (g_ GridRow) SetTopPadding(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setTopPadding:"), value) } diff --git a/macos/appkit/grid_view.gen.go b/macos/appkit/grid_view.gen.go index 504412d6..3e3c4f48 100644 --- a/macos/appkit/grid_view.gen.go +++ b/macos/appkit/grid_view.gen.go @@ -19,33 +19,33 @@ type _GridViewClass struct { // An interface definition for the [GridView] class. type IGridView interface { IView - RemoveRowAtIndex(index int) - InsertColumnAtIndexWithViews(index int, views []IView) GridColumn + IndexOfColumn(column IGridColumn) int RemoveColumnAtIndex(index int) - MergeCellsInHorizontalRangeVerticalRange(hRange foundation.Range, vRange foundation.Range) - AddRowWithViews(views []IView) GridRow - MoveColumnAtIndexToIndex(fromIndex int, toIndex int) - InsertRowAtIndexWithViews(index int, views []IView) GridRow IndexOfRow(row IGridRow) int - IndexOfColumn(column IGridColumn) int + InsertColumnAtIndexWithViews(index int, views []IView) GridColumn ColumnAtIndex(index int) GridColumn - RowAtIndex(index int) GridRow - CellAtColumnIndexRowIndex(columnIndex int, rowIndex int) GridCell - CellForView(view IView) GridCell + MergeCellsInHorizontalRangeVerticalRange(hRange foundation.Range, vRange foundation.Range) AddColumnWithViews(views []IView) GridColumn + AddRowWithViews(views []IView) GridRow + CellForView(view IView) GridCell + InsertRowAtIndexWithViews(index int, views []IView) GridRow MoveRowAtIndexToIndex(fromIndex int, toIndex int) - NumberOfColumns() int - XPlacement() GridCellPlacement - SetXPlacement(value GridCellPlacement) - NumberOfRows() int + CellAtColumnIndexRowIndex(columnIndex int, rowIndex int) GridCell + MoveColumnAtIndexToIndex(fromIndex int, toIndex int) + RemoveRowAtIndex(index int) + RowAtIndex(index int) GridRow + RowAlignment() GridRowAlignment + SetRowAlignment(value GridRowAlignment) + ColumnSpacing() float64 + SetColumnSpacing(value float64) YPlacement() GridCellPlacement SetYPlacement(value GridCellPlacement) + XPlacement() GridCellPlacement + SetXPlacement(value GridCellPlacement) RowSpacing() float64 SetRowSpacing(value float64) - ColumnSpacing() float64 - SetColumnSpacing(value float64) - RowAlignment() GridRowAlignment - SetRowAlignment(value GridRowAlignment) + NumberOfRows() int + NumberOfColumns() int } // A container that aligns views in a flexible grid of rows and columns. [Full Topic] @@ -119,11 +119,27 @@ func (g_ GridView) Init() GridView { return rv } -// Removes the row from the grid view at the index. [Full Topic] +// Returns the index of the specified grid column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639771-removerowatindex?language=objc -func (g_ GridView) RemoveRowAtIndex(index int) { - objc.Call[objc.Void](g_, objc.Sel("removeRowAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639667-indexofcolumn?language=objc +func (g_ GridView) IndexOfColumn(column IGridColumn) int { + rv := objc.Call[int](g_, objc.Sel("indexOfColumn:"), column) + return rv +} + +// Removes the column from the grid view at the specified index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639759-removecolumnatindex?language=objc +func (g_ GridView) RemoveColumnAtIndex(index int) { + objc.Call[objc.Void](g_, objc.Sel("removeColumnAtIndex:"), index) +} + +// Returns the index of the specified grid row. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639661-indexofrow?language=objc +func (g_ GridView) IndexOfRow(row IGridRow) int { + rv := objc.Call[int](g_, objc.Sel("indexOfRow:"), row) + return rv } // Inserts the array of view objects at the specified index. [Full Topic] @@ -134,11 +150,12 @@ func (g_ GridView) InsertColumnAtIndexWithViews(index int, views []IView) GridCo return rv } -// Removes the column from the grid view at the specified index. [Full Topic] +// Returns the grid column object at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639759-removecolumnatindex?language=objc -func (g_ GridView) RemoveColumnAtIndex(index int) { - objc.Call[objc.Void](g_, objc.Sel("removeColumnAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639674-columnatindex?language=objc +func (g_ GridView) ColumnAtIndex(index int) GridColumn { + rv := objc.Call[GridColumn](g_, objc.Sel("columnAtIndex:"), index) + return rv } // Expands the cell at the top-leading corner of the horizontal and vertical range to cover the entire area. [Full Topic] @@ -148,6 +165,14 @@ func (g_ GridView) MergeCellsInHorizontalRangeVerticalRange(hRange foundation.Ra objc.Call[objc.Void](g_, objc.Sel("mergeCellsInHorizontalRange:verticalRange:"), hRange, vRange) } +// Adds a new column containing the array of views. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639783-addcolumnwithviews?language=objc +func (g_ GridView) AddColumnWithViews(views []IView) GridColumn { + rv := objc.Call[GridColumn](g_, objc.Sel("addColumnWithViews:"), views) + return rv +} + // Adds an array of views to a new row. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639690-addrowwithviews?language=objc @@ -156,11 +181,12 @@ func (g_ GridView) AddRowWithViews(views []IView) GridRow { return rv } -// Moves the specified column to a new column location. [Full Topic] +// Returns the grid cell object that contains the given view or one of its ancestors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639659-movecolumnatindex?language=objc -func (g_ GridView) MoveColumnAtIndexToIndex(fromIndex int, toIndex int) { - objc.Call[objc.Void](g_, objc.Sel("moveColumnAtIndex:toIndex:"), fromIndex, toIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639703-cellforview?language=objc +func (g_ GridView) CellForView(view IView) GridCell { + rv := objc.Call[GridCell](g_, objc.Sel("cellForView:"), view) + return rv } // Inserts the array of view objects into the grid view at the index. [Full Topic] @@ -171,28 +197,33 @@ func (g_ GridView) InsertRowAtIndexWithViews(index int, views []IView) GridRow { return rv } -// Returns the index of the specified grid row. [Full Topic] +// Moves the specified row to the new row location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639661-indexofrow?language=objc -func (g_ GridView) IndexOfRow(row IGridRow) int { - rv := objc.Call[int](g_, objc.Sel("indexOfRow:"), row) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639687-moverowatindex?language=objc +func (g_ GridView) MoveRowAtIndexToIndex(fromIndex int, toIndex int) { + objc.Call[objc.Void](g_, objc.Sel("moveRowAtIndex:toIndex:"), fromIndex, toIndex) } -// Returns the index of the specified grid column. [Full Topic] +// Returns the grid cell object at the specified column and row index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639667-indexofcolumn?language=objc -func (g_ GridView) IndexOfColumn(column IGridColumn) int { - rv := objc.Call[int](g_, objc.Sel("indexOfColumn:"), column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639778-cellatcolumnindex?language=objc +func (g_ GridView) CellAtColumnIndexRowIndex(columnIndex int, rowIndex int) GridCell { + rv := objc.Call[GridCell](g_, objc.Sel("cellAtColumnIndex:rowIndex:"), columnIndex, rowIndex) return rv } -// Returns the grid column object at the specified index. [Full Topic] +// Moves the specified column to a new column location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639674-columnatindex?language=objc -func (g_ GridView) ColumnAtIndex(index int) GridColumn { - rv := objc.Call[GridColumn](g_, objc.Sel("columnAtIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639659-movecolumnatindex?language=objc +func (g_ GridView) MoveColumnAtIndexToIndex(fromIndex int, toIndex int) { + objc.Call[objc.Void](g_, objc.Sel("moveColumnAtIndex:toIndex:"), fromIndex, toIndex) +} + +// Removes the row from the grid view at the index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639771-removerowatindex?language=objc +func (g_ GridView) RemoveRowAtIndex(index int) { + objc.Call[objc.Void](g_, objc.Sel("removeRowAtIndex:"), index) } // Returns the grid row object at the specified index. [Full Topic] @@ -203,45 +234,51 @@ func (g_ GridView) RowAtIndex(index int) GridRow { return rv } -// Returns the grid cell object at the specified column and row index. [Full Topic] +// The row alignment for the grid view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639778-cellatcolumnindex?language=objc -func (g_ GridView) CellAtColumnIndexRowIndex(columnIndex int, rowIndex int) GridCell { - rv := objc.Call[GridCell](g_, objc.Sel("cellAtColumnIndex:rowIndex:"), columnIndex, rowIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1823691-rowalignment?language=objc +func (g_ GridView) RowAlignment() GridRowAlignment { + rv := objc.Call[GridRowAlignment](g_, objc.Sel("rowAlignment")) return rv } -// Returns the grid cell object that contains the given view or one of its ancestors. [Full Topic] +// The row alignment for the grid view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639703-cellforview?language=objc -func (g_ GridView) CellForView(view IView) GridCell { - rv := objc.Call[GridCell](g_, objc.Sel("cellForView:"), view) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1823691-rowalignment?language=objc +func (g_ GridView) SetRowAlignment(value GridRowAlignment) { + objc.Call[objc.Void](g_, objc.Sel("setRowAlignment:"), value) } -// Adds a new column containing the array of views. [Full Topic] +// The column spacing for the grid view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639783-addcolumnwithviews?language=objc -func (g_ GridView) AddColumnWithViews(views []IView) GridColumn { - rv := objc.Call[GridColumn](g_, objc.Sel("addColumnWithViews:"), views) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639776-columnspacing?language=objc +func (g_ GridView) ColumnSpacing() float64 { + rv := objc.Call[float64](g_, objc.Sel("columnSpacing")) return rv } -// Moves the specified row to the new row location. [Full Topic] +// The column spacing for the grid view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639687-moverowatindex?language=objc -func (g_ GridView) MoveRowAtIndexToIndex(fromIndex int, toIndex int) { - objc.Call[objc.Void](g_, objc.Sel("moveRowAtIndex:toIndex:"), fromIndex, toIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639776-columnspacing?language=objc +func (g_ GridView) SetColumnSpacing(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setColumnSpacing:"), value) } -// The number of columns in the grid view. [Full Topic] +// The placement of the cell within the grid row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639698-numberofcolumns?language=objc -func (g_ GridView) NumberOfColumns() int { - rv := objc.Call[int](g_, objc.Sel("numberOfColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639767-yplacement?language=objc +func (g_ GridView) YPlacement() GridCellPlacement { + rv := objc.Call[GridCellPlacement](g_, objc.Sel("yPlacement")) return rv } +// The placement of the cell within the grid row. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639767-yplacement?language=objc +func (g_ GridView) SetYPlacement(value GridCellPlacement) { + objc.Call[objc.Void](g_, objc.Sel("setYPlacement:"), value) +} + // The placement of the cell within the grid column. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639732-xplacement?language=objc @@ -257,29 +294,6 @@ func (g_ GridView) SetXPlacement(value GridCellPlacement) { objc.Call[objc.Void](g_, objc.Sel("setXPlacement:"), value) } -// The number of rows in the grid view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639705-numberofrows?language=objc -func (g_ GridView) NumberOfRows() int { - rv := objc.Call[int](g_, objc.Sel("numberOfRows")) - return rv -} - -// The placement of the cell within the grid row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639767-yplacement?language=objc -func (g_ GridView) YPlacement() GridCellPlacement { - rv := objc.Call[GridCellPlacement](g_, objc.Sel("yPlacement")) - return rv -} - -// The placement of the cell within the grid row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639767-yplacement?language=objc -func (g_ GridView) SetYPlacement(value GridCellPlacement) { - objc.Call[objc.Void](g_, objc.Sel("setYPlacement:"), value) -} - // The row spacing for the grid view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639730-rowspacing?language=objc @@ -295,32 +309,18 @@ func (g_ GridView) SetRowSpacing(value float64) { objc.Call[objc.Void](g_, objc.Sel("setRowSpacing:"), value) } -// The column spacing for the grid view. [Full Topic] +// The number of rows in the grid view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639776-columnspacing?language=objc -func (g_ GridView) ColumnSpacing() float64 { - rv := objc.Call[float64](g_, objc.Sel("columnSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639705-numberofrows?language=objc +func (g_ GridView) NumberOfRows() int { + rv := objc.Call[int](g_, objc.Sel("numberOfRows")) return rv } -// The column spacing for the grid view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639776-columnspacing?language=objc -func (g_ GridView) SetColumnSpacing(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setColumnSpacing:"), value) -} - -// The row alignment for the grid view. [Full Topic] +// The number of columns in the grid view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1823691-rowalignment?language=objc -func (g_ GridView) RowAlignment() GridRowAlignment { - rv := objc.Call[GridRowAlignment](g_, objc.Sel("rowAlignment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1639698-numberofcolumns?language=objc +func (g_ GridView) NumberOfColumns() int { + rv := objc.Call[int](g_, objc.Sel("numberOfColumns")) return rv } - -// The row alignment for the grid view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgridview/1823691-rowalignment?language=objc -func (g_ GridView) SetRowAlignment(value GridRowAlignment) { - objc.Call[objc.Void](g_, objc.Sel("setRowAlignment:"), value) -} diff --git a/macos/appkit/group_touch_bar_item.gen.go b/macos/appkit/group_touch_bar_item.gen.go index d5f1b7fb..2cb71825 100644 --- a/macos/appkit/group_touch_bar_item.gen.go +++ b/macos/appkit/group_touch_bar_item.gen.go @@ -18,18 +18,18 @@ type _GroupTouchBarItemClass struct { // An interface definition for the [GroupTouchBarItem] class. type IGroupTouchBarItem interface { ITouchBarItem - PrefersEqualWidths() bool - SetPrefersEqualWidths(value bool) SetCustomizationLabel(value string) - EffectiveCompressionOptions() UserInterfaceCompressionOptions PreferredItemWidth() float64 SetPreferredItemWidth(value float64) - GroupTouchBar() TouchBar - SetGroupTouchBar(value ITouchBar) - GroupUserInterfaceLayoutDirection() UserInterfaceLayoutDirection - SetGroupUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) + EffectiveCompressionOptions() UserInterfaceCompressionOptions PrioritizedCompressionOptions() []UserInterfaceCompressionOptions SetPrioritizedCompressionOptions(value []IUserInterfaceCompressionOptions) + GroupUserInterfaceLayoutDirection() UserInterfaceLayoutDirection + SetGroupUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) + GroupTouchBar() TouchBar + SetGroupTouchBar(value ITouchBar) + PrefersEqualWidths() bool + SetPrefersEqualWidths(value bool) } // A bar item that provides a bar to contain other items. [Full Topic] @@ -69,18 +69,6 @@ func GroupTouchBarItem_AlertStyleGroupItemWithIdentifier(identifier TouchBarItem return GroupTouchBarItemClass.AlertStyleGroupItemWithIdentifier(identifier) } -func (gc _GroupTouchBarItemClass) GroupItemWithIdentifierItemsAllowedCompressionOptions(identifier TouchBarItemIdentifier, items []ITouchBarItem, allowedCompressionOptions IUserInterfaceCompressionOptions) GroupTouchBarItem { - rv := objc.Call[GroupTouchBarItem](gc, objc.Sel("groupItemWithIdentifier:items:allowedCompressionOptions:"), identifier, items, allowedCompressionOptions) - return rv -} - -// Initializes and returns a group item whose bar is constructed from the supplied items, and with the specified compression options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909988-groupitemwithidentifier?language=objc -func GroupTouchBarItem_GroupItemWithIdentifierItemsAllowedCompressionOptions(identifier TouchBarItemIdentifier, items []ITouchBarItem, allowedCompressionOptions IUserInterfaceCompressionOptions) GroupTouchBarItem { - return GroupTouchBarItemClass.GroupItemWithIdentifierItemsAllowedCompressionOptions(identifier, items, allowedCompressionOptions) -} - func (gc _GroupTouchBarItemClass) Alloc() GroupTouchBarItem { rv := objc.Call[GroupTouchBarItem](gc, objc.Sel("alloc")) return rv @@ -115,21 +103,6 @@ func NewGroupTouchBarItemWithIdentifier(identifier TouchBarItemIdentifier) Group return instance } -// A Boolean value that specifies that items should have equal widths when possible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909972-prefersequalwidths?language=objc -func (g_ GroupTouchBarItem) PrefersEqualWidths() bool { - rv := objc.Call[bool](g_, objc.Sel("prefersEqualWidths")) - return rv -} - -// A Boolean value that specifies that items should have equal widths when possible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909972-prefersequalwidths?language=objc -func (g_ GroupTouchBarItem) SetPrefersEqualWidths(value bool) { - objc.Call[objc.Void](g_, objc.Sel("setPrefersEqualWidths:"), value) -} - // The user-visible string identifying this item during bar customization. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2544877-customizationlabel?language=objc @@ -137,15 +110,7 @@ func (g_ GroupTouchBarItem) SetCustomizationLabel(value string) { objc.Call[objc.Void](g_, objc.Sel("setCustomizationLabel:"), value) } -// The compression options that are currently active on the group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909985-effectivecompressionoptions?language=objc -func (g_ GroupTouchBarItem) EffectiveCompressionOptions() UserInterfaceCompressionOptions { - rv := objc.Call[UserInterfaceCompressionOptions](g_, objc.Sel("effectiveCompressionOptions")) - return rv -} - -// The preferred width for items in the group when [appkit/nsgrouptouchbaritem/prefersequalwidths] is YES. [Full Topic] +// The preferred width for items in the group when prefersEqualWidths is YES. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909975-preferreditemwidth?language=objc func (g_ GroupTouchBarItem) PreferredItemWidth() float64 { @@ -153,26 +118,34 @@ func (g_ GroupTouchBarItem) PreferredItemWidth() float64 { return rv } -// The preferred width for items in the group when [appkit/nsgrouptouchbaritem/prefersequalwidths] is YES. [Full Topic] +// The preferred width for items in the group when prefersEqualWidths is YES. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909975-preferreditemwidth?language=objc func (g_ GroupTouchBarItem) SetPreferredItemWidth(value float64) { objc.Call[objc.Void](g_, objc.Sel("setPreferredItemWidth:"), value) } -// A bar that holds this group's items. [Full Topic] +// The compression options that are currently active on the group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2544717-grouptouchbar?language=objc -func (g_ GroupTouchBarItem) GroupTouchBar() TouchBar { - rv := objc.Call[TouchBar](g_, objc.Sel("groupTouchBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909985-effectivecompressionoptions?language=objc +func (g_ GroupTouchBarItem) EffectiveCompressionOptions() UserInterfaceCompressionOptions { + rv := objc.Call[UserInterfaceCompressionOptions](g_, objc.Sel("effectiveCompressionOptions")) return rv } -// A bar that holds this group's items. [Full Topic] +// The allowed compression options, in the order they should be applied. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2544717-grouptouchbar?language=objc -func (g_ GroupTouchBarItem) SetGroupTouchBar(value ITouchBar) { - objc.Call[objc.Void](g_, objc.Sel("setGroupTouchBar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909968-prioritizedcompressionoptions?language=objc +func (g_ GroupTouchBarItem) PrioritizedCompressionOptions() []UserInterfaceCompressionOptions { + rv := objc.Call[[]UserInterfaceCompressionOptions](g_, objc.Sel("prioritizedCompressionOptions")) + return rv +} + +// The allowed compression options, in the order they should be applied. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909968-prioritizedcompressionoptions?language=objc +func (g_ GroupTouchBarItem) SetPrioritizedCompressionOptions(value []IUserInterfaceCompressionOptions) { + objc.Call[objc.Void](g_, objc.Sel("setPrioritizedCompressionOptions:"), value) } // The user interface direction that controls the layout order of the items. [Full Topic] @@ -190,17 +163,32 @@ func (g_ GroupTouchBarItem) SetGroupUserInterfaceLayoutDirection(value UserInter objc.Call[objc.Void](g_, objc.Sel("setGroupUserInterfaceLayoutDirection:"), value) } -// The allowed compression options, in the order they should be applied. [Full Topic] +// A bar that holds this group's items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909968-prioritizedcompressionoptions?language=objc -func (g_ GroupTouchBarItem) PrioritizedCompressionOptions() []UserInterfaceCompressionOptions { - rv := objc.Call[[]UserInterfaceCompressionOptions](g_, objc.Sel("prioritizedCompressionOptions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2544717-grouptouchbar?language=objc +func (g_ GroupTouchBarItem) GroupTouchBar() TouchBar { + rv := objc.Call[TouchBar](g_, objc.Sel("groupTouchBar")) return rv } -// The allowed compression options, in the order they should be applied. [Full Topic] +// A bar that holds this group's items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909968-prioritizedcompressionoptions?language=objc -func (g_ GroupTouchBarItem) SetPrioritizedCompressionOptions(value []IUserInterfaceCompressionOptions) { - objc.Call[objc.Void](g_, objc.Sel("setPrioritizedCompressionOptions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2544717-grouptouchbar?language=objc +func (g_ GroupTouchBarItem) SetGroupTouchBar(value ITouchBar) { + objc.Call[objc.Void](g_, objc.Sel("setGroupTouchBar:"), value) +} + +// A Boolean value that specifies that items should have equal widths when possible. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909972-prefersequalwidths?language=objc +func (g_ GroupTouchBarItem) PrefersEqualWidths() bool { + rv := objc.Call[bool](g_, objc.Sel("prefersEqualWidths")) + return rv +} + +// A Boolean value that specifies that items should have equal widths when possible. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909972-prefersequalwidths?language=objc +func (g_ GroupTouchBarItem) SetPrefersEqualWidths(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setPrefersEqualWidths:"), value) } diff --git a/macos/appkit/help_manager.gen.go b/macos/appkit/help_manager.gen.go index 133f1be1..afda67ec 100644 --- a/macos/appkit/help_manager.gen.go +++ b/macos/appkit/help_manager.gen.go @@ -19,13 +19,13 @@ type _HelpManagerClass struct { // An interface definition for the [HelpManager] class. type IHelpManager interface { objc.IObject - FindStringInBook(query string, book HelpBookName) - ContextHelpForObject(object objc.IObject) foundation.AttributedString + RemoveContextHelpForObject(object objc.IObject) OpenHelpAnchorInBook(anchor HelpAnchorName, book HelpBookName) + ContextHelpForObject(object objc.IObject) foundation.AttributedString ShowContextHelpForObjectLocationHint(object objc.IObject, pt foundation.Point) bool RegisterBooksInBundle(bundle foundation.IBundle) bool SetContextHelpForObject(attrString foundation.IAttributedString, object objc.IObject) - RemoveContextHelpForObject(object objc.IObject) + FindStringInBook(query string, book HelpBookName) } // An object for displaying online help for an app. [Full Topic] @@ -61,11 +61,18 @@ func (h_ HelpManager) Init() HelpManager { return rv } -// Performs a search for the specified string in the specified book. [Full Topic] +// Removes the association between an object and its context-sensitive help. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500904-findstring?language=objc -func (h_ HelpManager) FindStringInBook(query string, book HelpBookName) { - objc.Call[objc.Void](h_, objc.Sel("findString:inBook:"), query, book) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500906-removecontexthelpforobject?language=objc +func (h_ HelpManager) RemoveContextHelpForObject(object objc.IObject) { + objc.Call[objc.Void](h_, objc.Sel("removeContextHelpForObject:"), object) +} + +// Finds and displays the text at the given anchor location in the given book. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500908-openhelpanchor?language=objc +func (h_ HelpManager) OpenHelpAnchorInBook(anchor HelpAnchorName, book HelpBookName) { + objc.Call[objc.Void](h_, objc.Sel("openHelpAnchor:inBook:"), anchor, book) } // Returns context-sensitive help for an object. [Full Topic] @@ -76,13 +83,6 @@ func (h_ HelpManager) ContextHelpForObject(object objc.IObject) foundation.Attri return rv } -// Finds and displays the text at the given anchor location in the given book. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500908-openhelpanchor?language=objc -func (h_ HelpManager) OpenHelpAnchorInBook(anchor HelpAnchorName, book HelpBookName) { - objc.Call[objc.Void](h_, objc.Sel("openHelpAnchor:inBook:"), anchor, book) -} - // Displays the context-sensitive help for a given object at or near the point on the screen specified by a given point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500930-showcontexthelpforobject?language=objc @@ -106,26 +106,11 @@ func (h_ HelpManager) SetContextHelpForObject(attrString foundation.IAttributedS objc.Call[objc.Void](h_, objc.Sel("setContextHelp:forObject:"), attrString, object) } -// Removes the association between an object and its context-sensitive help. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500906-removecontexthelpforobject?language=objc -func (h_ HelpManager) RemoveContextHelpForObject(object objc.IObject) { - objc.Call[objc.Void](h_, objc.Sel("removeContextHelpForObject:"), object) -} - -// Returns the shared NSHelpManager instance, creating it if it does not already exist. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500924-sharedhelpmanager?language=objc -func (hc _HelpManagerClass) SharedHelpManager() HelpManager { - rv := objc.Call[HelpManager](hc, objc.Sel("sharedHelpManager")) - return rv -} - -// Returns the shared NSHelpManager instance, creating it if it does not already exist. [Full Topic] +// Performs a search for the specified string in the specified book. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500924-sharedhelpmanager?language=objc -func HelpManager_SharedHelpManager() HelpManager { - return HelpManagerClass.SharedHelpManager() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500904-findstring?language=objc +func (h_ HelpManager) FindStringInBook(query string, book HelpBookName) { + objc.Call[objc.Void](h_, objc.Sel("findString:inBook:"), query, book) } // [Full Topic] @@ -156,3 +141,18 @@ func (hc _HelpManagerClass) SetContextHelpModeActive(value bool) { func HelpManager_SetContextHelpModeActive(value bool) { HelpManagerClass.SetContextHelpModeActive(value) } + +// Returns the shared NSHelpManager instance, creating it if it does not already exist. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500924-sharedhelpmanager?language=objc +func (hc _HelpManagerClass) SharedHelpManager() HelpManager { + rv := objc.Call[HelpManager](hc, objc.Sel("sharedHelpManager")) + return rv +} + +// Returns the shared NSHelpManager instance, creating it if it does not already exist. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanager/1500924-sharedhelpmanager?language=objc +func HelpManager_SharedHelpManager() HelpManager { + return HelpManagerClass.SharedHelpManager() +} diff --git a/macos/appkit/image.gen.go b/macos/appkit/image.gen.go index d9be102b..4ec4b24a 100644 --- a/macos/appkit/image.gen.go +++ b/macos/appkit/image.gen.go @@ -20,55 +20,53 @@ type _ImageClass struct { // An interface definition for the [Image] class. type IImage interface { objc.IObject - DrawInRectFromRectOperationFraction(rect foundation.Rect, fromRect foundation.Rect, op CompositingOperation, delta float64) - DrawInRectFromRectOperationFractionRespectFlippedHints(dstSpacePortionRect foundation.Rect, srcSpacePortionRect foundation.Rect, op CompositingOperation, requestedAlpha float64, respectContextIsFlipped bool, hints map[ImageHintKey]objc.IObject) - Recache() - DrawRepresentationInRect(imageRep IImageRep, rect foundation.Rect) bool - SetName(string_ ImageName) bool - BestRepresentationForRectContextHints(rect foundation.Rect, referenceContext IGraphicsContext, hints map[ImageHintKey]objc.IObject) ImageRep - AddRepresentations(imageReps []IImageRep) - DrawAtPointFromRectOperationFraction(point foundation.Point, fromRect foundation.Rect, op CompositingOperation, delta float64) ImageWithSymbolConfiguration(configuration IImageSymbolConfiguration) Image - CGImageForProposedRectContextHints(proposedDestRect *foundation.Rect, referenceContext IGraphicsContext, hints map[ImageHintKey]objc.IObject) coregraphics.ImageRef - RemoveRepresentation(imageRep IImageRep) - AddRepresentation(imageRep IImageRep) - HitTestRectWithImageDestinationRectContextHintsFlipped(testRectDestSpace foundation.Rect, imageRectDestSpace foundation.Rect, context IGraphicsContext, hints map[ImageHintKey]objc.IObject, flipped bool) bool + DrawAtPointFromRectOperationFraction(point foundation.Point, fromRect foundation.Rect, op CompositingOperation, delta float64) TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float32) []byte - Name() ImageName RecommendedLayerContentsScale(preferredContentsScale float64) float64 + DrawInRectFromRectOperationFraction(rect foundation.Rect, fromRect foundation.Rect, op CompositingOperation, delta float64) + Name() ImageName + AddRepresentations(imageReps []IImageRep) LayerContentsForContentsScale(layerContentsScale float64) objc.Object - DrawInRect(rect foundation.Rect) - ResizingMode() ImageResizingMode - SetResizingMode(value ImageResizingMode) - MatchesOnMultipleResolution() bool - SetMatchesOnMultipleResolution(value bool) + SetName(string_ ImageName) bool + RemoveRepresentation(imageRep IImageRep) + HitTestRectWithImageDestinationRectContextHintsFlipped(testRectDestSpace foundation.Rect, imageRectDestSpace foundation.Rect, context IGraphicsContext, hints map[ImageHintKey]objc.IObject, flipped bool) bool + Recache() + CGImageForProposedRectContextHints(proposedDestRect *foundation.Rect, referenceContext IGraphicsContext, hints map[ImageHintKey]objc.IObject) coregraphics.ImageRef + BestRepresentationForRectContextHints(rect foundation.Rect, referenceContext IGraphicsContext, hints map[ImageHintKey]objc.IObject) ImageRep + DrawRepresentationInRect(imageRep IImageRep, rect foundation.Rect) bool + AddRepresentation(imageRep IImageRep) + TIFFRepresentation() []byte + AccessibilityDescription() string + SetAccessibilityDescription(value string) + IsTemplate() bool + SetTemplate(value bool) + Representations() []ImageRep Delegate() ImageDelegateObject SetDelegate(value PImageDelegate) SetDelegateObject(valueObject objc.IObject) - MatchesOnlyOnBestFittingAxis() bool - SetMatchesOnlyOnBestFittingAxis(value bool) - CacheMode() ImageCacheMode - SetCacheMode(value ImageCacheMode) IsValid() bool - Size() foundation.Size - SetSize(value foundation.Size) - AlignmentRect() foundation.Rect - SetAlignmentRect(value foundation.Rect) - IsTemplate() bool - SetTemplate(value bool) - UsesEPSOnResolutionMismatch() bool - SetUsesEPSOnResolutionMismatch(value bool) - SymbolConfiguration() ImageSymbolConfiguration - AccessibilityDescription() string - SetAccessibilityDescription(value string) - TIFFRepresentation() []byte - Representations() []ImageRep - CapInsets() foundation.EdgeInsets - SetCapInsets(value foundation.EdgeInsets) BackgroundColor() Color SetBackgroundColor(value IColor) + SymbolConfiguration() ImageSymbolConfiguration + UsesEPSOnResolutionMismatch() bool + SetUsesEPSOnResolutionMismatch(value bool) PrefersColorMatch() bool SetPrefersColorMatch(value bool) + CapInsets() foundation.EdgeInsets + SetCapInsets(value foundation.EdgeInsets) + CacheMode() ImageCacheMode + SetCacheMode(value ImageCacheMode) + AlignmentRect() foundation.Rect + SetAlignmentRect(value foundation.Rect) + MatchesOnMultipleResolution() bool + SetMatchesOnMultipleResolution(value bool) + Size() foundation.Size + SetSize(value foundation.Size) + ResizingMode() ImageResizingMode + SetResizingMode(value ImageResizingMode) + MatchesOnlyOnBestFittingAxis() bool + SetMatchesOnlyOnBestFittingAxis(value bool) } // A high-level interface for manipulating image data. [Full Topic] @@ -84,18 +82,16 @@ func ImageFrom(ptr unsafe.Pointer) Image { } } -func (i_ Image) InitWithContentsOfURL(url foundation.IURL) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithContentsOfURL:"), url) +func (ic _ImageClass) ImageWithSizeFlippedDrawingHandler(size foundation.Size, drawingHandlerShouldBeCalledWithFlippedContext bool, drawingHandler func(dstRect foundation.Rect) bool) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithSize:flipped:drawingHandler:"), size, drawingHandlerShouldBeCalledWithFlippedContext, drawingHandler) return rv } -// Initializes and returns an image object with the contents of the specified URL. [Full Topic] +// Creates and returns an image object whose contents are drawn using the specified block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519907-initwithcontentsofurl?language=objc -func NewImageWithContentsOfURL(url foundation.IURL) Image { - instance := ImageClass.Alloc().InitWithContentsOfURL(url) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519860-imagewithsize?language=objc +func Image_ImageWithSizeFlippedDrawingHandler(size foundation.Size, drawingHandlerShouldBeCalledWithFlippedContext bool, drawingHandler func(dstRect foundation.Rect) bool) Image { + return ImageClass.ImageWithSizeFlippedDrawingHandler(size, drawingHandlerShouldBeCalledWithFlippedContext, drawingHandler) } func (i_ Image) InitWithPasteboard(pasteboard IPasteboard) Image { @@ -112,30 +108,30 @@ func NewImageWithPasteboard(pasteboard IPasteboard) Image { return instance } -func (i_ Image) InitWithDataIgnoringOrientation(data []byte) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithDataIgnoringOrientation:"), data) +func (i_ Image) InitWithContentsOfFile(fileName string) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithContentsOfFile:"), fileName) return rv } -// Initializes and returns an image object using the provided image data and ignoring the EXIF orientation tags. [Full Topic] +// Initializes and returns an image object with the contents of the specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519915-initwithdataignoringorientation?language=objc -func NewImageWithDataIgnoringOrientation(data []byte) Image { - instance := ImageClass.Alloc().InitWithDataIgnoringOrientation(data) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519918-initwithcontentsoffile?language=objc +func NewImageWithContentsOfFile(fileName string) Image { + instance := ImageClass.Alloc().InitWithContentsOfFile(fileName) instance.Autorelease() return instance } -func (i_ Image) InitWithCGImageSize(cgImage coregraphics.ImageRef, size foundation.Size) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithCGImage:size:"), cgImage, size) +func (i_ Image) InitWithSize(size foundation.Size) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithSize:"), size) return rv } -// Creates a new image using the contents of the provided image. [Full Topic] +// Initializes and returns an image object with the specified dimensions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519939-initwithcgimage?language=objc -func NewImageWithCGImageSize(cgImage coregraphics.ImageRef, size foundation.Size) Image { - instance := ImageClass.Alloc().InitWithCGImageSize(cgImage, size) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520033-initwithsize?language=objc +func NewImageWithSize(size foundation.Size) Image { + instance := ImageClass.Alloc().InitWithSize(size) instance.Autorelease() return instance } @@ -154,6 +150,20 @@ func NewImageWithData(data []byte) Image { return instance } +func (i_ Image) InitWithDataIgnoringOrientation(data []byte) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithDataIgnoringOrientation:"), data) + return rv +} + +// Initializes and returns an image object using the provided image data and ignoring the EXIF orientation tags. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519915-initwithdataignoringorientation?language=objc +func NewImageWithDataIgnoringOrientation(data []byte) Image { + instance := ImageClass.Alloc().InitWithDataIgnoringOrientation(data) + instance.Autorelease() + return instance +} + func (ic _ImageClass) ImageWithSystemSymbolNameAccessibilityDescription(name string, description string) Image { rv := objc.Call[Image](ic, objc.Sel("imageWithSystemSymbolName:accessibilityDescription:"), name, description) return rv @@ -166,16 +176,18 @@ func Image_ImageWithSystemSymbolNameAccessibilityDescription(name string, descri return ImageClass.ImageWithSystemSymbolNameAccessibilityDescription(name, description) } -func (ic _ImageClass) ImageWithSizeFlippedDrawingHandler(size foundation.Size, drawingHandlerShouldBeCalledWithFlippedContext bool, drawingHandler func(dstRect foundation.Rect) bool) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithSize:flipped:drawingHandler:"), size, drawingHandlerShouldBeCalledWithFlippedContext, drawingHandler) +func (i_ Image) InitWithContentsOfURL(url foundation.IURL) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithContentsOfURL:"), url) return rv } -// Creates and returns an image object whose contents are drawn using the specified block. [Full Topic] +// Initializes and returns an image object with the contents of the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519860-imagewithsize?language=objc -func Image_ImageWithSizeFlippedDrawingHandler(size foundation.Size, drawingHandlerShouldBeCalledWithFlippedContext bool, drawingHandler func(dstRect foundation.Rect) bool) Image { - return ImageClass.ImageWithSizeFlippedDrawingHandler(size, drawingHandlerShouldBeCalledWithFlippedContext, drawingHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519907-initwithcontentsofurl?language=objc +func NewImageWithContentsOfURL(url foundation.IURL) Image { + instance := ImageClass.Alloc().InitWithContentsOfURL(url) + instance.Autorelease() + return instance } func (i_ Image) InitByReferencingURL(url foundation.IURL) Image { @@ -192,44 +204,30 @@ func NewImageByReferencingURL(url foundation.IURL) Image { return instance } -func (i_ Image) InitByReferencingFile(fileName string) Image { - rv := objc.Call[Image](i_, objc.Sel("initByReferencingFile:"), fileName) - return rv -} - -// Initializes and returns an image object using the specified file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519955-initbyreferencingfile?language=objc -func NewImageByReferencingFile(fileName string) Image { - instance := ImageClass.Alloc().InitByReferencingFile(fileName) - instance.Autorelease() - return instance -} - -func (i_ Image) InitWithContentsOfFile(fileName string) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithContentsOfFile:"), fileName) +func (i_ Image) InitWithCGImageSize(cgImage coregraphics.ImageRef, size foundation.Size) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithCGImage:size:"), cgImage, size) return rv } -// Initializes and returns an image object with the contents of the specified file. [Full Topic] +// Creates a new image using the contents of the provided image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519918-initwithcontentsoffile?language=objc -func NewImageWithContentsOfFile(fileName string) Image { - instance := ImageClass.Alloc().InitWithContentsOfFile(fileName) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519939-initwithcgimage?language=objc +func NewImageWithCGImageSize(cgImage coregraphics.ImageRef, size foundation.Size) Image { + instance := ImageClass.Alloc().InitWithCGImageSize(cgImage, size) instance.Autorelease() return instance } -func (i_ Image) InitWithSize(size foundation.Size) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithSize:"), size) +func (i_ Image) InitByReferencingFile(fileName string) Image { + rv := objc.Call[Image](i_, objc.Sel("initByReferencingFile:"), fileName) return rv } -// Initializes and returns an image object with the specified dimensions. [Full Topic] +// Initializes and returns an image object using the specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520033-initwithsize?language=objc -func NewImageWithSize(size foundation.Size) Image { - instance := ImageClass.Alloc().InitWithSize(size) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519955-initbyreferencingfile?language=objc +func NewImageByReferencingFile(fileName string) Image { + instance := ImageClass.Alloc().InitByReferencingFile(fileName) instance.Autorelease() return instance } @@ -254,19 +252,35 @@ func (i_ Image) Init() Image { return rv } -// Tests whether the image can create an instance of itself using pasteboard data. [Full Topic] +// Creates a new symbol image with the specified configuration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520039-caninitwithpasteboard?language=objc -func (ic _ImageClass) CanInitWithPasteboard(pasteboard IPasteboard) bool { - rv := objc.Call[bool](ic, objc.Sel("canInitWithPasteboard:"), pasteboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/3656508-imagewithsymbolconfiguration?language=objc +func (i_ Image) ImageWithSymbolConfiguration(configuration IImageSymbolConfiguration) Image { + rv := objc.Call[Image](i_, objc.Sel("imageWithSymbolConfiguration:"), configuration) return rv } -// Tests whether the image can create an instance of itself using pasteboard data. [Full Topic] +// Draws all or part of the image at the specified point in the current coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520039-caninitwithpasteboard?language=objc -func Image_CanInitWithPasteboard(pasteboard IPasteboard) bool { - return ImageClass.CanInitWithPasteboard(pasteboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519981-drawatpoint?language=objc +func (i_ Image) DrawAtPointFromRectOperationFraction(point foundation.Point, fromRect foundation.Rect, op CompositingOperation, delta float64) { + objc.Call[objc.Void](i_, objc.Sel("drawAtPoint:fromRect:operation:fraction:"), point, fromRect, op, delta) +} + +// Returns a data object that contains TIFF data with the specified compression settings for all of the image representations in the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519949-tiffrepresentationusingcompressi?language=objc +func (i_ Image) TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float32) []byte { + rv := objc.Call[[]byte](i_, objc.Sel("TIFFRepresentationUsingCompression:factor:"), comp, factor) + return rv +} + +// Returns the recommended layer contents scale for this image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519878-recommendedlayercontentsscale?language=objc +func (i_ Image) RecommendedLayerContentsScale(preferredContentsScale float64) float64 { + rv := objc.Call[float64](i_, objc.Sel("recommendedLayerContentsScale:"), preferredContentsScale) + return rv } // Draws all or part of the image in the specified rectangle in the current coordinate system. [Full Topic] @@ -276,25 +290,26 @@ func (i_ Image) DrawInRectFromRectOperationFraction(rect foundation.Rect, fromRe objc.Call[objc.Void](i_, objc.Sel("drawInRect:fromRect:operation:fraction:"), rect, fromRect, op, delta) } -// Draws all or part of the image in the specified rectangle respecting the hints and the orientation of the current coordinate system. [Full Topic] +// Returns the name associated with the image, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520043-drawinrect?language=objc -func (i_ Image) DrawInRectFromRectOperationFractionRespectFlippedHints(dstSpacePortionRect foundation.Rect, srcSpacePortionRect foundation.Rect, op CompositingOperation, requestedAlpha float64, respectContextIsFlipped bool, hints map[ImageHintKey]objc.IObject) { - objc.Call[objc.Void](i_, objc.Sel("drawInRect:fromRect:operation:fraction:respectFlipped:hints:"), dstSpacePortionRect, srcSpacePortionRect, op, requestedAlpha, respectContextIsFlipped, hints) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519884-name?language=objc +func (i_ Image) Name() ImageName { + rv := objc.Call[ImageName](i_, objc.Sel("name")) + return rv } -// Invalidates and frees offscreen caches of all image representations. [Full Topic] +// Adds an array of image representation objects to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519890-recache?language=objc -func (i_ Image) Recache() { - objc.Call[objc.Void](i_, objc.Sel("recache")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519964-addrepresentations?language=objc +func (i_ Image) AddRepresentations(imageReps []IImageRep) { + objc.Call[objc.Void](i_, objc.Sel("addRepresentations:"), imageReps) } -// Draws the image using the specified image representation object. [Full Topic] +// Returns an object that may be used as the contents of a layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519904-drawrepresentation?language=objc -func (i_ Image) DrawRepresentationInRect(imageRep IImageRep, rect foundation.Rect) bool { - rv := objc.Call[bool](i_, objc.Sel("drawRepresentation:inRect:"), imageRep, rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519851-layercontentsforcontentsscale?language=objc +func (i_ Image) LayerContentsForContentsScale(layerContentsScale float64) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("layerContentsForContentsScale:"), layerContentsScale) return rv } @@ -306,42 +321,34 @@ func (i_ Image) SetName(string_ ImageName) bool { return rv } -// Returns the best representation of the image for the specified rectangle using the provided hints. [Full Topic] +// Returns the image object associated with the specified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519961-bestrepresentationforrect?language=objc -func (i_ Image) BestRepresentationForRectContextHints(rect foundation.Rect, referenceContext IGraphicsContext, hints map[ImageHintKey]objc.IObject) ImageRep { - rv := objc.Call[ImageRep](i_, objc.Sel("bestRepresentationForRect:context:hints:"), rect, referenceContext, hints) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520015-imagenamed?language=objc +func (ic _ImageClass) ImageNamed(name ImageName) Image { + rv := objc.Call[Image](ic, objc.Sel("imageNamed:"), name) return rv } -// Adds an array of image representation objects to the image. [Full Topic] +// Returns the image object associated with the specified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519964-addrepresentations?language=objc -func (i_ Image) AddRepresentations(imageReps []IImageRep) { - objc.Call[objc.Void](i_, objc.Sel("addRepresentations:"), imageReps) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520015-imagenamed?language=objc +func Image_ImageNamed(name ImageName) Image { + return ImageClass.ImageNamed(name) } -// Draws all or part of the image at the specified point in the current coordinate system. [Full Topic] +// Tests whether the image can create an instance of itself using pasteboard data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519981-drawatpoint?language=objc -func (i_ Image) DrawAtPointFromRectOperationFraction(point foundation.Point, fromRect foundation.Rect, op CompositingOperation, delta float64) { - objc.Call[objc.Void](i_, objc.Sel("drawAtPoint:fromRect:operation:fraction:"), point, fromRect, op, delta) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520039-caninitwithpasteboard?language=objc +func (ic _ImageClass) CanInitWithPasteboard(pasteboard IPasteboard) bool { + rv := objc.Call[bool](ic, objc.Sel("canInitWithPasteboard:"), pasteboard) + return rv } -// Creates a new symbol image with the specified configuration. [Full Topic] +// Tests whether the image can create an instance of itself using pasteboard data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/3656508-imagewithsymbolconfiguration?language=objc -func (i_ Image) ImageWithSymbolConfiguration(configuration IImageSymbolConfiguration) Image { - rv := objc.Call[Image](i_, objc.Sel("imageWithSymbolConfiguration:"), configuration) - return rv -} - -// Returns a Core Graphics image based on the contents of the current image object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519861-cgimageforproposedrect?language=objc -func (i_ Image) CGImageForProposedRectContextHints(proposedDestRect *foundation.Rect, referenceContext IGraphicsContext, hints map[ImageHintKey]objc.IObject) coregraphics.ImageRef { - rv := objc.Call[coregraphics.ImageRef](i_, objc.Sel("CGImageForProposedRect:context:hints:"), proposedDestRect, referenceContext, hints) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520039-caninitwithpasteboard?language=objc +func Image_CanInitWithPasteboard(pasteboard IPasteboard) bool { + return ImageClass.CanInitWithPasteboard(pasteboard) } // Removes and releases the specified image representation. [Full Topic] @@ -351,105 +358,98 @@ func (i_ Image) RemoveRepresentation(imageRep IImageRep) { objc.Call[objc.Void](i_, objc.Sel("removeRepresentation:"), imageRep) } -// Adds the specified image representation object to the image. [Full Topic] +// Returns whether the destination rectangle would intersect a non-transparent portion of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519911-addrepresentation?language=objc -func (i_ Image) AddRepresentation(imageRep IImageRep) { - objc.Call[objc.Void](i_, objc.Sel("addRepresentation:"), imageRep) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519922-hittestrect?language=objc +func (i_ Image) HitTestRectWithImageDestinationRectContextHintsFlipped(testRectDestSpace foundation.Rect, imageRectDestSpace foundation.Rect, context IGraphicsContext, hints map[ImageHintKey]objc.IObject, flipped bool) bool { + rv := objc.Call[bool](i_, objc.Sel("hitTestRect:withImageDestinationRect:context:hints:flipped:"), testRectDestSpace, imageRectDestSpace, context, hints, flipped) + return rv } -// Returns the image object associated with the specified name. [Full Topic] +// Invalidates and frees offscreen caches of all image representations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520015-imagenamed?language=objc -func (ic _ImageClass) ImageNamed(name ImageName) Image { - rv := objc.Call[Image](ic, objc.Sel("imageNamed:"), name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519890-recache?language=objc +func (i_ Image) Recache() { + objc.Call[objc.Void](i_, objc.Sel("recache")) } -// Returns the image object associated with the specified name. [Full Topic] +// Returns a Core Graphics image based on the contents of the current image object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520015-imagenamed?language=objc -func Image_ImageNamed(name ImageName) Image { - return ImageClass.ImageNamed(name) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519861-cgimageforproposedrect?language=objc +func (i_ Image) CGImageForProposedRectContextHints(proposedDestRect *foundation.Rect, referenceContext IGraphicsContext, hints map[ImageHintKey]objc.IObject) coregraphics.ImageRef { + rv := objc.Call[coregraphics.ImageRef](i_, objc.Sel("CGImageForProposedRect:context:hints:"), proposedDestRect, referenceContext, hints) + return rv } -// Returns whether the destination rectangle would intersect a non-transparent portion of the image. [Full Topic] +// Returns the best representation of the image for the specified rectangle using the provided hints. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519922-hittestrect?language=objc -func (i_ Image) HitTestRectWithImageDestinationRectContextHintsFlipped(testRectDestSpace foundation.Rect, imageRectDestSpace foundation.Rect, context IGraphicsContext, hints map[ImageHintKey]objc.IObject, flipped bool) bool { - rv := objc.Call[bool](i_, objc.Sel("hitTestRect:withImageDestinationRect:context:hints:flipped:"), testRectDestSpace, imageRectDestSpace, context, hints, flipped) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519961-bestrepresentationforrect?language=objc +func (i_ Image) BestRepresentationForRectContextHints(rect foundation.Rect, referenceContext IGraphicsContext, hints map[ImageHintKey]objc.IObject) ImageRep { + rv := objc.Call[ImageRep](i_, objc.Sel("bestRepresentationForRect:context:hints:"), rect, referenceContext, hints) return rv } -// Returns a data object that contains TIFF data with the specified compression settings for all of the image representations in the image. [Full Topic] +// Draws the image using the specified image representation object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519949-tiffrepresentationusingcompressi?language=objc -func (i_ Image) TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float32) []byte { - rv := objc.Call[[]byte](i_, objc.Sel("TIFFRepresentationUsingCompression:factor:"), comp, factor) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519904-drawrepresentation?language=objc +func (i_ Image) DrawRepresentationInRect(imageRep IImageRep, rect foundation.Rect) bool { + rv := objc.Call[bool](i_, objc.Sel("drawRepresentation:inRect:"), imageRep, rect) return rv } -// Returns the name associated with the image, if any. [Full Topic] +// Adds the specified image representation object to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519884-name?language=objc -func (i_ Image) Name() ImageName { - rv := objc.Call[ImageName](i_, objc.Sel("name")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519911-addrepresentation?language=objc +func (i_ Image) AddRepresentation(imageRep IImageRep) { + objc.Call[objc.Void](i_, objc.Sel("addRepresentation:"), imageRep) } -// Returns the recommended layer contents scale for this image. [Full Topic] +// A data object containing TIFF data for all of the image representations in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519878-recommendedlayercontentsscale?language=objc -func (i_ Image) RecommendedLayerContentsScale(preferredContentsScale float64) float64 { - rv := objc.Call[float64](i_, objc.Sel("recommendedLayerContentsScale:"), preferredContentsScale) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519841-tiffrepresentation?language=objc +func (i_ Image) TIFFRepresentation() []byte { + rv := objc.Call[[]byte](i_, objc.Sel("TIFFRepresentation")) return rv } -// Returns an object that may be used as the contents of a layer. [Full Topic] +// The image’s accessibility description. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519851-layercontentsforcontentsscale?language=objc -func (i_ Image) LayerContentsForContentsScale(layerContentsScale float64) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("layerContentsForContentsScale:"), layerContentsScale) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519943-accessibilitydescription?language=objc +func (i_ Image) AccessibilityDescription() string { + rv := objc.Call[string](i_, objc.Sel("accessibilityDescription")) return rv } -// Draws the image in the specified rectangle. [Full Topic] +// The image’s accessibility description. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519863-drawinrect?language=objc -func (i_ Image) DrawInRect(rect foundation.Rect) { - objc.Call[objc.Void](i_, objc.Sel("drawInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519943-accessibilitydescription?language=objc +func (i_ Image) SetAccessibilityDescription(value string) { + objc.Call[objc.Void](i_, objc.Sel("setAccessibilityDescription:"), value) } -// The resizing mode for the image. [Full Topic] +// A Boolean value that determines whether the image represents a template image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520060-resizingmode?language=objc -func (i_ Image) ResizingMode() ImageResizingMode { - rv := objc.Call[ImageResizingMode](i_, objc.Sel("resizingMode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520017-template?language=objc +func (i_ Image) IsTemplate() bool { + rv := objc.Call[bool](i_, objc.Sel("isTemplate")) return rv } -// The resizing mode for the image. [Full Topic] +// A Boolean value that determines whether the image represents a template image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520060-resizingmode?language=objc -func (i_ Image) SetResizingMode(value ImageResizingMode) { - objc.Call[objc.Void](i_, objc.Sel("setResizingMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520017-template?language=objc +func (i_ Image) SetTemplate(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setTemplate:"), value) } -// A Boolean value that indicates whether image representations whose resolution is an integral multiple of the device resolution are a match. [Full Topic] +// An array containing all of the image object’s image representations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519963-matchesonmultipleresolution?language=objc -func (i_ Image) MatchesOnMultipleResolution() bool { - rv := objc.Call[bool](i_, objc.Sel("matchesOnMultipleResolution")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519858-representations?language=objc +func (i_ Image) Representations() []ImageRep { + rv := objc.Call[[]ImageRep](i_, objc.Sel("representations")) return rv } -// A Boolean value that indicates whether image representations whose resolution is an integral multiple of the device resolution are a match. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519963-matchesonmultipleresolution?language=objc -func (i_ Image) SetMatchesOnMultipleResolution(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setMatchesOnMultipleResolution:"), value) -} - // The image’s delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519926-delegate?language=objc @@ -474,214 +474,198 @@ func (i_ Image) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](i_, objc.Sel("setDelegate:"), valueObject) } -// A Boolean value that indicates whether the image matches only on the best fitting axis. [Full Topic] +// A Boolean value that indicates whether it is possible to draw an image representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519848-matchesonlyonbestfittingaxis?language=objc -func (i_ Image) MatchesOnlyOnBestFittingAxis() bool { - rv := objc.Call[bool](i_, objc.Sel("matchesOnlyOnBestFittingAxis")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519991-valid?language=objc +func (i_ Image) IsValid() bool { + rv := objc.Call[bool](i_, objc.Sel("isValid")) return rv } -// A Boolean value that indicates whether the image matches only on the best fitting axis. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519848-matchesonlyonbestfittingaxis?language=objc -func (i_ Image) SetMatchesOnlyOnBestFittingAxis(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setMatchesOnlyOnBestFittingAxis:"), value) -} - -// The image’s caching mode. [Full Topic] +// The background color for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519850-cachemode?language=objc -func (i_ Image) CacheMode() ImageCacheMode { - rv := objc.Call[ImageCacheMode](i_, objc.Sel("cacheMode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520059-backgroundcolor?language=objc +func (i_ Image) BackgroundColor() Color { + rv := objc.Call[Color](i_, objc.Sel("backgroundColor")) return rv } -// The image’s caching mode. [Full Topic] +// The background color for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519850-cachemode?language=objc -func (i_ Image) SetCacheMode(value ImageCacheMode) { - objc.Call[objc.Void](i_, objc.Sel("setCacheMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520059-backgroundcolor?language=objc +func (i_ Image) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](i_, objc.Sel("setBackgroundColor:"), value) } -// Returns an array of UTI strings identifying the image types supported directly by the registered image representation objects. [Full Topic] +// Returns an array of UTI strings identifying the image types supported by the registered image representation objects, either directly or through a user-installed filter service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519899-imageunfilteredtypes?language=objc -func (ic _ImageClass) ImageUnfilteredTypes() []string { - rv := objc.Call[[]string](ic, objc.Sel("imageUnfilteredTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519988-imagetypes?language=objc +func (ic _ImageClass) ImageTypes() []string { + rv := objc.Call[[]string](ic, objc.Sel("imageTypes")) return rv } -// Returns an array of UTI strings identifying the image types supported directly by the registered image representation objects. [Full Topic] +// Returns an array of UTI strings identifying the image types supported by the registered image representation objects, either directly or through a user-installed filter service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519899-imageunfilteredtypes?language=objc -func Image_ImageUnfilteredTypes() []string { - return ImageClass.ImageUnfilteredTypes() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519988-imagetypes?language=objc +func Image_ImageTypes() []string { + return ImageClass.ImageTypes() } -// A Boolean value that indicates whether it is possible to draw an image representation. [Full Topic] +// The configuration details for a symbol image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519991-valid?language=objc -func (i_ Image) IsValid() bool { - rv := objc.Call[bool](i_, objc.Sel("isValid")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/3852559-symbolconfiguration?language=objc +func (i_ Image) SymbolConfiguration() ImageSymbolConfiguration { + rv := objc.Call[ImageSymbolConfiguration](i_, objc.Sel("symbolConfiguration")) return rv } -// The size of the image. [Full Topic] +// A Boolean value that indicates whether EPS representations are preferred when no other representations match the resolution of the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519987-size?language=objc -func (i_ Image) Size() foundation.Size { - rv := objc.Call[foundation.Size](i_, objc.Sel("size")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519868-usesepsonresolutionmismatch?language=objc +func (i_ Image) UsesEPSOnResolutionMismatch() bool { + rv := objc.Call[bool](i_, objc.Sel("usesEPSOnResolutionMismatch")) return rv } -// The size of the image. [Full Topic] +// A Boolean value that indicates whether EPS representations are preferred when no other representations match the resolution of the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519987-size?language=objc -func (i_ Image) SetSize(value foundation.Size) { - objc.Call[objc.Void](i_, objc.Sel("setSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519868-usesepsonresolutionmismatch?language=objc +func (i_ Image) SetUsesEPSOnResolutionMismatch(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setUsesEPSOnResolutionMismatch:"), value) } -// A rectangle that you can use to position the image during layout. [Full Topic] +// Returns an array of UTI strings identifying the image types supported directly by the registered image representation objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519905-alignmentrect?language=objc -func (i_ Image) AlignmentRect() foundation.Rect { - rv := objc.Call[foundation.Rect](i_, objc.Sel("alignmentRect")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519899-imageunfilteredtypes?language=objc +func (ic _ImageClass) ImageUnfilteredTypes() []string { + rv := objc.Call[[]string](ic, objc.Sel("imageUnfilteredTypes")) return rv } -// A rectangle that you can use to position the image during layout. [Full Topic] +// Returns an array of UTI strings identifying the image types supported directly by the registered image representation objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519905-alignmentrect?language=objc -func (i_ Image) SetAlignmentRect(value foundation.Rect) { - objc.Call[objc.Void](i_, objc.Sel("setAlignmentRect:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519899-imageunfilteredtypes?language=objc +func Image_ImageUnfilteredTypes() []string { + return ImageClass.ImageUnfilteredTypes() } -// A Boolean value that determines whether the image represents a template image. [Full Topic] +// A Boolean value that indicates whether the image prefers to choose image representations using color-matching or resolution-matching. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520017-template?language=objc -func (i_ Image) IsTemplate() bool { - rv := objc.Call[bool](i_, objc.Sel("isTemplate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520010-preferscolormatch?language=objc +func (i_ Image) PrefersColorMatch() bool { + rv := objc.Call[bool](i_, objc.Sel("prefersColorMatch")) return rv } -// A Boolean value that determines whether the image represents a template image. [Full Topic] +// A Boolean value that indicates whether the image prefers to choose image representations using color-matching or resolution-matching. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520017-template?language=objc -func (i_ Image) SetTemplate(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setTemplate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520010-preferscolormatch?language=objc +func (i_ Image) SetPrefersColorMatch(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setPrefersColorMatch:"), value) } -// A Boolean value that indicates whether EPS representations are preferred when no other representations match the resolution of the device. [Full Topic] +// The cap insets for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519868-usesepsonresolutionmismatch?language=objc -func (i_ Image) UsesEPSOnResolutionMismatch() bool { - rv := objc.Call[bool](i_, objc.Sel("usesEPSOnResolutionMismatch")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520012-capinsets?language=objc +func (i_ Image) CapInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](i_, objc.Sel("capInsets")) return rv } -// A Boolean value that indicates whether EPS representations are preferred when no other representations match the resolution of the device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519868-usesepsonresolutionmismatch?language=objc -func (i_ Image) SetUsesEPSOnResolutionMismatch(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setUsesEPSOnResolutionMismatch:"), value) -} - -// The configuration details for a symbol image. [Full Topic] +// The cap insets for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/3852559-symbolconfiguration?language=objc -func (i_ Image) SymbolConfiguration() ImageSymbolConfiguration { - rv := objc.Call[ImageSymbolConfiguration](i_, objc.Sel("symbolConfiguration")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520012-capinsets?language=objc +func (i_ Image) SetCapInsets(value foundation.EdgeInsets) { + objc.Call[objc.Void](i_, objc.Sel("setCapInsets:"), value) } -// The image’s accessibility description. [Full Topic] +// The image’s caching mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519943-accessibilitydescription?language=objc -func (i_ Image) AccessibilityDescription() string { - rv := objc.Call[string](i_, objc.Sel("accessibilityDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519850-cachemode?language=objc +func (i_ Image) CacheMode() ImageCacheMode { + rv := objc.Call[ImageCacheMode](i_, objc.Sel("cacheMode")) return rv } -// The image’s accessibility description. [Full Topic] +// The image’s caching mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519943-accessibilitydescription?language=objc -func (i_ Image) SetAccessibilityDescription(value string) { - objc.Call[objc.Void](i_, objc.Sel("setAccessibilityDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519850-cachemode?language=objc +func (i_ Image) SetCacheMode(value ImageCacheMode) { + objc.Call[objc.Void](i_, objc.Sel("setCacheMode:"), value) } -// Returns an array of UTI strings identifying the image types supported by the registered image representation objects, either directly or through a user-installed filter service. [Full Topic] +// A rectangle that you can use to position the image during layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519988-imagetypes?language=objc -func (ic _ImageClass) ImageTypes() []string { - rv := objc.Call[[]string](ic, objc.Sel("imageTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519905-alignmentrect?language=objc +func (i_ Image) AlignmentRect() foundation.Rect { + rv := objc.Call[foundation.Rect](i_, objc.Sel("alignmentRect")) return rv } -// Returns an array of UTI strings identifying the image types supported by the registered image representation objects, either directly or through a user-installed filter service. [Full Topic] +// A rectangle that you can use to position the image during layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519988-imagetypes?language=objc -func Image_ImageTypes() []string { - return ImageClass.ImageTypes() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519905-alignmentrect?language=objc +func (i_ Image) SetAlignmentRect(value foundation.Rect) { + objc.Call[objc.Void](i_, objc.Sel("setAlignmentRect:"), value) } -// A data object containing TIFF data for all of the image representations in the image. [Full Topic] +// A Boolean value that indicates whether image representations whose resolution is an integral multiple of the device resolution are a match. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519841-tiffrepresentation?language=objc -func (i_ Image) TIFFRepresentation() []byte { - rv := objc.Call[[]byte](i_, objc.Sel("TIFFRepresentation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519963-matchesonmultipleresolution?language=objc +func (i_ Image) MatchesOnMultipleResolution() bool { + rv := objc.Call[bool](i_, objc.Sel("matchesOnMultipleResolution")) return rv } -// An array containing all of the image object’s image representations. [Full Topic] +// A Boolean value that indicates whether image representations whose resolution is an integral multiple of the device resolution are a match. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519858-representations?language=objc -func (i_ Image) Representations() []ImageRep { - rv := objc.Call[[]ImageRep](i_, objc.Sel("representations")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519963-matchesonmultipleresolution?language=objc +func (i_ Image) SetMatchesOnMultipleResolution(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setMatchesOnMultipleResolution:"), value) } -// The cap insets for the image. [Full Topic] +// The size of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520012-capinsets?language=objc -func (i_ Image) CapInsets() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](i_, objc.Sel("capInsets")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519987-size?language=objc +func (i_ Image) Size() foundation.Size { + rv := objc.Call[foundation.Size](i_, objc.Sel("size")) return rv } -// The cap insets for the image. [Full Topic] +// The size of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520012-capinsets?language=objc -func (i_ Image) SetCapInsets(value foundation.EdgeInsets) { - objc.Call[objc.Void](i_, objc.Sel("setCapInsets:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519987-size?language=objc +func (i_ Image) SetSize(value foundation.Size) { + objc.Call[objc.Void](i_, objc.Sel("setSize:"), value) } -// The background color for the image. [Full Topic] +// The resizing mode for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520059-backgroundcolor?language=objc -func (i_ Image) BackgroundColor() Color { - rv := objc.Call[Color](i_, objc.Sel("backgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520060-resizingmode?language=objc +func (i_ Image) ResizingMode() ImageResizingMode { + rv := objc.Call[ImageResizingMode](i_, objc.Sel("resizingMode")) return rv } -// The background color for the image. [Full Topic] +// The resizing mode for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520059-backgroundcolor?language=objc -func (i_ Image) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](i_, objc.Sel("setBackgroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520060-resizingmode?language=objc +func (i_ Image) SetResizingMode(value ImageResizingMode) { + objc.Call[objc.Void](i_, objc.Sel("setResizingMode:"), value) } -// A Boolean value that indicates whether the image prefers to choose image representations using color-matching or resolution-matching. [Full Topic] +// A Boolean value that indicates whether the image matches only on the best fitting axis. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520010-preferscolormatch?language=objc -func (i_ Image) PrefersColorMatch() bool { - rv := objc.Call[bool](i_, objc.Sel("prefersColorMatch")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519848-matchesonlyonbestfittingaxis?language=objc +func (i_ Image) MatchesOnlyOnBestFittingAxis() bool { + rv := objc.Call[bool](i_, objc.Sel("matchesOnlyOnBestFittingAxis")) return rv } -// A Boolean value that indicates whether the image prefers to choose image representations using color-matching or resolution-matching. [Full Topic] +// A Boolean value that indicates whether the image matches only on the best fitting axis. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520010-preferscolormatch?language=objc -func (i_ Image) SetPrefersColorMatch(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setPrefersColorMatch:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519848-matchesonlyonbestfittingaxis?language=objc +func (i_ Image) SetMatchesOnlyOnBestFittingAxis(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setMatchesOnlyOnBestFittingAxis:"), value) } diff --git a/macos/appkit/image_cell.gen.go b/macos/appkit/image_cell.gen.go index 6c7324ec..255f9be7 100644 --- a/macos/appkit/image_cell.gen.go +++ b/macos/appkit/image_cell.gen.go @@ -20,10 +20,10 @@ type IImageCell interface { ICell ImageAlignment() ImageAlignment SetImageAlignment(value ImageAlignment) - ImageFrameStyle() ImageFrameStyle - SetImageFrameStyle(value ImageFrameStyle) ImageScaling() ImageScaling SetImageScaling(value ImageScaling) + ImageFrameStyle() ImageFrameStyle + SetImageFrameStyle(value ImageFrameStyle) } // An NSImageCell object displays a single image (encapsulated in an NSImage object) in a frame. This class provides methods for choosing the frame and for aligning and scaling the image to fit the frame. [Full Topic] @@ -102,21 +102,6 @@ func (i_ ImageCell) SetImageAlignment(value ImageAlignment) { objc.Call[objc.Void](i_, objc.Sel("setImageAlignment:"), value) } -// The style of the frame that borders the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagecell/1526164-imageframestyle?language=objc -func (i_ ImageCell) ImageFrameStyle() ImageFrameStyle { - rv := objc.Call[ImageFrameStyle](i_, objc.Sel("imageFrameStyle")) - return rv -} - -// The style of the frame that borders the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagecell/1526164-imageframestyle?language=objc -func (i_ ImageCell) SetImageFrameStyle(value ImageFrameStyle) { - objc.Call[objc.Void](i_, objc.Sel("setImageFrameStyle:"), value) -} - // The scaling mode used to fit the receiver's image into the frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagecell/1532559-imagescaling?language=objc @@ -131,3 +116,18 @@ func (i_ ImageCell) ImageScaling() ImageScaling { func (i_ ImageCell) SetImageScaling(value ImageScaling) { objc.Call[objc.Void](i_, objc.Sel("setImageScaling:"), value) } + +// The style of the frame that borders the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagecell/1526164-imageframestyle?language=objc +func (i_ ImageCell) ImageFrameStyle() ImageFrameStyle { + rv := objc.Call[ImageFrameStyle](i_, objc.Sel("imageFrameStyle")) + return rv +} + +// The style of the frame that borders the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagecell/1526164-imageframestyle?language=objc +func (i_ ImageCell) SetImageFrameStyle(value ImageFrameStyle) { + objc.Call[objc.Void](i_, objc.Sel("setImageFrameStyle:"), value) +} diff --git a/macos/appkit/image_rep.gen.go b/macos/appkit/image_rep.gen.go index 85fa3a12..3623f5a4 100644 --- a/macos/appkit/image_rep.gen.go +++ b/macos/appkit/image_rep.gen.go @@ -20,27 +20,26 @@ type _ImageRepClass struct { // An interface definition for the [ImageRep] class. type IImageRep interface { objc.IObject - CGImageForProposedRectContextHints(proposedDestRect *foundation.Rect, context IGraphicsContext, hints map[ImageHintKey]objc.IObject) coregraphics.ImageRef - DrawInRect(rect foundation.Rect) bool - DrawInRectFromRectOperationFractionRespectFlippedHints(dstSpacePortionRect foundation.Rect, srcSpacePortionRect foundation.Rect, op CompositingOperation, requestedAlpha float64, respectContextIsFlipped bool, hints map[ImageHintKey]objc.IObject) bool DrawAtPoint(point foundation.Point) bool + DrawInRect(rect foundation.Rect) bool Draw() bool + CGImageForProposedRectContextHints(proposedDestRect *foundation.Rect, context IGraphicsContext, hints map[ImageHintKey]objc.IObject) coregraphics.ImageRef + LayoutDirection() ImageLayoutDirection + SetLayoutDirection(value ImageLayoutDirection) ColorSpaceName() ColorSpaceName SetColorSpaceName(value ColorSpaceName) + IsOpaque() bool + SetOpaque(value bool) + PixelsWide() int + SetPixelsWide(value int) + HasAlpha() bool + SetAlpha(value bool) PixelsHigh() int SetPixelsHigh(value int) BitsPerSample() int SetBitsPerSample(value int) - HasAlpha() bool - SetAlpha(value bool) - LayoutDirection() ImageLayoutDirection - SetLayoutDirection(value ImageLayoutDirection) - PixelsWide() int - SetPixelsWide(value int) Size() foundation.Size SetSize(value foundation.Size) - IsOpaque() bool - SetOpaque(value bool) } // A semiabstract superclass that provides subclasses that you use to draw an image from a particular type of source data. [Full Topic] @@ -76,27 +75,27 @@ func NewImageRep() ImageRep { return ImageRepClass.New() } -// Returns a Core Graphics image object that captures the drawing of the image. [Full Topic] +// Creates and returns an image representation object using the contents of the specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533478-cgimageforproposedrect?language=objc -func (i_ ImageRep) CGImageForProposedRectContextHints(proposedDestRect *foundation.Rect, context IGraphicsContext, hints map[ImageHintKey]objc.IObject) coregraphics.ImageRef { - rv := objc.Call[coregraphics.ImageRef](i_, objc.Sel("CGImageForProposedRect:context:hints:"), proposedDestRect, context, hints) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534589-imagerepwithcontentsoffile?language=objc +func (ic _ImageRepClass) ImageRepWithContentsOfFile(filename string) ImageRep { + rv := objc.Call[ImageRep](ic, objc.Sel("imageRepWithContentsOfFile:"), filename) return rv } -// Returns the image representation subclass that handles the specified type of data. [Full Topic] +// Creates and returns an image representation object using the contents of the specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534272-imagerepclassfordata?language=objc -func (ic _ImageRepClass) ImageRepClassForData(data []byte) objc.Class { - rv := objc.Call[objc.Class](ic, objc.Sel("imageRepClassForData:"), data) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534589-imagerepwithcontentsoffile?language=objc +func ImageRep_ImageRepWithContentsOfFile(filename string) ImageRep { + return ImageRepClass.ImageRepWithContentsOfFile(filename) } -// Returns the image representation subclass that handles the specified type of data. [Full Topic] +// Draws the image representation’s image data at the specified point in the current coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534272-imagerepclassfordata?language=objc -func ImageRep_ImageRepClassForData(data []byte) objc.Class { - return ImageRepClass.ImageRepClassForData(data) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1525632-drawatpoint?language=objc +func (i_ ImageRep) DrawAtPoint(point foundation.Point) bool { + rv := objc.Call[bool](i_, objc.Sel("drawAtPoint:"), point) + return rv } // Creates and returns an array of image representation objects initialized using the contents of the specified URL. [Full Topic] @@ -114,35 +113,35 @@ func ImageRep_ImageRepsWithContentsOfURL(url foundation.IURL) []ImageRep { return ImageRepClass.ImageRepsWithContentsOfURL(url) } -// Draws the image, scaling it (as needed) to fit the specified rectangle. [Full Topic] +// Returns the image representation subclass that handles the specified type of data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535066-drawinrect?language=objc -func (i_ ImageRep) DrawInRect(rect foundation.Rect) bool { - rv := objc.Call[bool](i_, objc.Sel("drawInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534272-imagerepclassfordata?language=objc +func (ic _ImageRepClass) ImageRepClassForData(data []byte) objc.Class { + rv := objc.Call[objc.Class](ic, objc.Sel("imageRepClassForData:"), data) return rv } -// Draws all or part of the image in the specified rectangle in the current coordinate system. [Full Topic] +// Returns the image representation subclass that handles the specified type of data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533982-drawinrect?language=objc -func (i_ ImageRep) DrawInRectFromRectOperationFractionRespectFlippedHints(dstSpacePortionRect foundation.Rect, srcSpacePortionRect foundation.Rect, op CompositingOperation, requestedAlpha float64, respectContextIsFlipped bool, hints map[ImageHintKey]objc.IObject) bool { - rv := objc.Call[bool](i_, objc.Sel("drawInRect:fromRect:operation:fraction:respectFlipped:hints:"), dstSpacePortionRect, srcSpacePortionRect, op, requestedAlpha, respectContextIsFlipped, hints) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534272-imagerepclassfordata?language=objc +func ImageRep_ImageRepClassForData(data []byte) objc.Class { + return ImageRepClass.ImageRepClassForData(data) } -// Creates and returns an array of image representation objects initialized using the contents of the pasteboard. [Full Topic] +// Draws the image, scaling it (as needed) to fit the specified rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535586-imagerepswithpasteboard?language=objc -func (ic _ImageRepClass) ImageRepsWithPasteboard(pasteboard IPasteboard) []ImageRep { - rv := objc.Call[[]ImageRep](ic, objc.Sel("imageRepsWithPasteboard:"), pasteboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535066-drawinrect?language=objc +func (i_ ImageRep) DrawInRect(rect foundation.Rect) bool { + rv := objc.Call[bool](i_, objc.Sel("drawInRect:"), rect) return rv } -// Creates and returns an array of image representation objects initialized using the contents of the pasteboard. [Full Topic] +// Implemented by subclasses to draw the image in the current coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535586-imagerepswithpasteboard?language=objc -func ImageRep_ImageRepsWithPasteboard(pasteboard IPasteboard) []ImageRep { - return ImageRepClass.ImageRepsWithPasteboard(pasteboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526674-draw?language=objc +func (i_ ImageRep) Draw() bool { + rv := objc.Call[bool](i_, objc.Sel("draw")) + return rv } // Creates and returns an image representation object using the contents of the specified pasteboard. [Full Topic] @@ -160,6 +159,21 @@ func ImageRep_ImageRepWithPasteboard(pasteboard IPasteboard) ImageRep { return ImageRepClass.ImageRepWithPasteboard(pasteboard) } +// Returns the image representation subclass that handles image data for the specified UTI. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1529342-imagerepclassfortype?language=objc +func (ic _ImageRepClass) ImageRepClassForType(type_ string) objc.Class { + rv := objc.Call[objc.Class](ic, objc.Sel("imageRepClassForType:"), type_) + return rv +} + +// Returns the image representation subclass that handles image data for the specified UTI. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1529342-imagerepclassfortype?language=objc +func ImageRep_ImageRepClassForType(type_ string) objc.Class { + return ImageRepClass.ImageRepClassForType(type_) +} + // Creates and returns an image representation object using the data at the specified URL. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535840-imagerepwithcontentsofurl?language=objc @@ -175,27 +189,19 @@ func ImageRep_ImageRepWithContentsOfURL(url foundation.IURL) ImageRep { return ImageRepClass.ImageRepWithContentsOfURL(url) } -// Draws the image representation’s image data at the specified point in the current coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1525632-drawatpoint?language=objc -func (i_ ImageRep) DrawAtPoint(point foundation.Point) bool { - rv := objc.Call[bool](i_, objc.Sel("drawAtPoint:"), point) - return rv -} - -// Returns a Boolean value that indicates whether the image representation can initialize itself from the specified data. [Full Topic] +// Returns a Boolean value that indicates whether the receiver can initialize itself from the data on the specified pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535427-caninitwithdata?language=objc -func (ic _ImageRepClass) CanInitWithData(data []byte) bool { - rv := objc.Call[bool](ic, objc.Sel("canInitWithData:"), data) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1527887-caninitwithpasteboard?language=objc +func (ic _ImageRepClass) CanInitWithPasteboard(pasteboard IPasteboard) bool { + rv := objc.Call[bool](ic, objc.Sel("canInitWithPasteboard:"), pasteboard) return rv } -// Returns a Boolean value that indicates whether the image representation can initialize itself from the specified data. [Full Topic] +// Returns a Boolean value that indicates whether the receiver can initialize itself from the data on the specified pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535427-caninitwithdata?language=objc -func ImageRep_CanInitWithData(data []byte) bool { - return ImageRepClass.CanInitWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1527887-caninitwithpasteboard?language=objc +func ImageRep_CanInitWithPasteboard(pasteboard IPasteboard) bool { + return ImageRepClass.CanInitWithPasteboard(pasteboard) } // Removes the specified image representation subclass from the registry of available image representations. [Full Topic] @@ -212,101 +218,86 @@ func ImageRep_UnregisterImageRepClass(imageRepClass objc.IClass) { ImageRepClass.UnregisterImageRepClass(imageRepClass) } -// Implemented by subclasses to draw the image in the current coordinate system. [Full Topic] +// Returns a Boolean value that indicates whether the image representation can initialize itself from the specified data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526674-draw?language=objc -func (i_ ImageRep) Draw() bool { - rv := objc.Call[bool](i_, objc.Sel("draw")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535427-caninitwithdata?language=objc +func (ic _ImageRepClass) CanInitWithData(data []byte) bool { + rv := objc.Call[bool](ic, objc.Sel("canInitWithData:"), data) return rv } -// Adds the specified class to the registry of available image representation subclasses. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535393-registerimagerepclass?language=objc -func (ic _ImageRepClass) RegisterImageRepClass(imageRepClass objc.IClass) { - objc.Call[objc.Void](ic, objc.Sel("registerImageRepClass:"), imageRepClass) -} - -// Adds the specified class to the registry of available image representation subclasses. [Full Topic] +// Returns a Boolean value that indicates whether the image representation can initialize itself from the specified data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535393-registerimagerepclass?language=objc -func ImageRep_RegisterImageRepClass(imageRepClass objc.IClass) { - ImageRepClass.RegisterImageRepClass(imageRepClass) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535427-caninitwithdata?language=objc +func ImageRep_CanInitWithData(data []byte) bool { + return ImageRepClass.CanInitWithData(data) } -// Creates and returns an image representation object using the contents of the specified file. [Full Topic] +// Creates and returns an array of image representation objects initialized using the contents of the specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534589-imagerepwithcontentsoffile?language=objc -func (ic _ImageRepClass) ImageRepWithContentsOfFile(filename string) ImageRep { - rv := objc.Call[ImageRep](ic, objc.Sel("imageRepWithContentsOfFile:"), filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526968-imagerepswithcontentsoffile?language=objc +func (ic _ImageRepClass) ImageRepsWithContentsOfFile(filename string) []ImageRep { + rv := objc.Call[[]ImageRep](ic, objc.Sel("imageRepsWithContentsOfFile:"), filename) return rv } -// Creates and returns an image representation object using the contents of the specified file. [Full Topic] +// Creates and returns an array of image representation objects initialized using the contents of the specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534589-imagerepwithcontentsoffile?language=objc -func ImageRep_ImageRepWithContentsOfFile(filename string) ImageRep { - return ImageRepClass.ImageRepWithContentsOfFile(filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526968-imagerepswithcontentsoffile?language=objc +func ImageRep_ImageRepsWithContentsOfFile(filename string) []ImageRep { + return ImageRepClass.ImageRepsWithContentsOfFile(filename) } -// Returns the image representation subclass that handles image data for the specified UTI. [Full Topic] +// Adds the specified class to the registry of available image representation subclasses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1529342-imagerepclassfortype?language=objc -func (ic _ImageRepClass) ImageRepClassForType(type_ string) objc.Class { - rv := objc.Call[objc.Class](ic, objc.Sel("imageRepClassForType:"), type_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535393-registerimagerepclass?language=objc +func (ic _ImageRepClass) RegisterImageRepClass(imageRepClass objc.IClass) { + objc.Call[objc.Void](ic, objc.Sel("registerImageRepClass:"), imageRepClass) } -// Returns the image representation subclass that handles image data for the specified UTI. [Full Topic] +// Adds the specified class to the registry of available image representation subclasses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1529342-imagerepclassfortype?language=objc -func ImageRep_ImageRepClassForType(type_ string) objc.Class { - return ImageRepClass.ImageRepClassForType(type_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535393-registerimagerepclass?language=objc +func ImageRep_RegisterImageRepClass(imageRepClass objc.IClass) { + ImageRepClass.RegisterImageRepClass(imageRepClass) } -// Returns a Boolean value that indicates whether the receiver can initialize itself from the data on the specified pasteboard. [Full Topic] +// Returns a Core Graphics image object that captures the drawing of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1527887-caninitwithpasteboard?language=objc -func (ic _ImageRepClass) CanInitWithPasteboard(pasteboard IPasteboard) bool { - rv := objc.Call[bool](ic, objc.Sel("canInitWithPasteboard:"), pasteboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533478-cgimageforproposedrect?language=objc +func (i_ ImageRep) CGImageForProposedRectContextHints(proposedDestRect *foundation.Rect, context IGraphicsContext, hints map[ImageHintKey]objc.IObject) coregraphics.ImageRef { + rv := objc.Call[coregraphics.ImageRef](i_, objc.Sel("CGImageForProposedRect:context:hints:"), proposedDestRect, context, hints) return rv } -// Returns a Boolean value that indicates whether the receiver can initialize itself from the data on the specified pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1527887-caninitwithpasteboard?language=objc -func ImageRep_CanInitWithPasteboard(pasteboard IPasteboard) bool { - return ImageRepClass.CanInitWithPasteboard(pasteboard) -} - -// Creates and returns an array of image representation objects initialized using the contents of the specified file. [Full Topic] +// Creates and returns an array of image representation objects initialized using the contents of the pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526968-imagerepswithcontentsoffile?language=objc -func (ic _ImageRepClass) ImageRepsWithContentsOfFile(filename string) []ImageRep { - rv := objc.Call[[]ImageRep](ic, objc.Sel("imageRepsWithContentsOfFile:"), filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535586-imagerepswithpasteboard?language=objc +func (ic _ImageRepClass) ImageRepsWithPasteboard(pasteboard IPasteboard) []ImageRep { + rv := objc.Call[[]ImageRep](ic, objc.Sel("imageRepsWithPasteboard:"), pasteboard) return rv } -// Creates and returns an array of image representation objects initialized using the contents of the specified file. [Full Topic] +// Creates and returns an array of image representation objects initialized using the contents of the pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526968-imagerepswithcontentsoffile?language=objc -func ImageRep_ImageRepsWithContentsOfFile(filename string) []ImageRep { - return ImageRepClass.ImageRepsWithContentsOfFile(filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535586-imagerepswithpasteboard?language=objc +func ImageRep_ImageRepsWithPasteboard(pasteboard IPasteboard) []ImageRep { + return ImageRepClass.ImageRepsWithPasteboard(pasteboard) } -// Returns an array containing the registered image representation classes. [Full Topic] +// The layout direction for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1525139-registeredimagerepclasses?language=objc -func (ic _ImageRepClass) RegisteredImageRepClasses() []objc.Class { - rv := objc.Call[[]objc.Class](ic, objc.Sel("registeredImageRepClasses")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1690237-layoutdirection?language=objc +func (i_ ImageRep) LayoutDirection() ImageLayoutDirection { + rv := objc.Call[ImageLayoutDirection](i_, objc.Sel("layoutDirection")) return rv } -// Returns an array containing the registered image representation classes. [Full Topic] +// The layout direction for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1525139-registeredimagerepclasses?language=objc -func ImageRep_RegisteredImageRepClasses() []objc.Class { - return ImageRepClass.RegisteredImageRepClasses() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1690237-layoutdirection?language=objc +func (i_ ImageRep) SetLayoutDirection(value ImageLayoutDirection) { + objc.Call[objc.Void](i_, objc.Sel("setLayoutDirection:"), value) } // The name of the color space used by the image data. [Full Topic] @@ -324,21 +315,6 @@ func (i_ ImageRep) SetColorSpaceName(value ColorSpaceName) { objc.Call[objc.Void](i_, objc.Sel("setColorSpaceName:"), value) } -// The height of the image, measured in pixels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533989-pixelshigh?language=objc -func (i_ ImageRep) PixelsHigh() int { - rv := objc.Call[int](i_, objc.Sel("pixelsHigh")) - return rv -} - -// The height of the image, measured in pixels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533989-pixelshigh?language=objc -func (i_ ImageRep) SetPixelsHigh(value int) { - objc.Call[objc.Void](i_, objc.Sel("setPixelsHigh:"), value) -} - // Returns an array of UTI strings identifying the image types supported by the image representation, either directly or through a user-installed filter service. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535246-imagetypes?language=objc @@ -354,34 +330,34 @@ func ImageRep_ImageTypes() []string { return ImageRepClass.ImageTypes() } -// The number of bits per sample in the object (if the object is a planar image, this property contains the number of bits per sample per plane). [Full Topic] +// A Boolean value that indicates whether the image is opaque. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533157-bitspersample?language=objc -func (i_ ImageRep) BitsPerSample() int { - rv := objc.Call[int](i_, objc.Sel("bitsPerSample")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1528462-opaque?language=objc +func (i_ ImageRep) IsOpaque() bool { + rv := objc.Call[bool](i_, objc.Sel("isOpaque")) return rv } -// The number of bits per sample in the object (if the object is a planar image, this property contains the number of bits per sample per plane). [Full Topic] +// A Boolean value that indicates whether the image is opaque. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533157-bitspersample?language=objc -func (i_ ImageRep) SetBitsPerSample(value int) { - objc.Call[objc.Void](i_, objc.Sel("setBitsPerSample:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1528462-opaque?language=objc +func (i_ ImageRep) SetOpaque(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setOpaque:"), value) } -// Returns an array of UTI strings identifying the image types supported directly by the ime representation. [Full Topic] +// The width of the image, measured in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534816-imageunfilteredtypes?language=objc -func (ic _ImageRepClass) ImageUnfilteredTypes() []string { - rv := objc.Call[[]string](ic, objc.Sel("imageUnfilteredTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526995-pixelswide?language=objc +func (i_ ImageRep) PixelsWide() int { + rv := objc.Call[int](i_, objc.Sel("pixelsWide")) return rv } -// Returns an array of UTI strings identifying the image types supported directly by the ime representation. [Full Topic] +// The width of the image, measured in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534816-imageunfilteredtypes?language=objc -func ImageRep_ImageUnfilteredTypes() []string { - return ImageRepClass.ImageUnfilteredTypes() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526995-pixelswide?language=objc +func (i_ ImageRep) SetPixelsWide(value int) { + objc.Call[objc.Void](i_, objc.Sel("setPixelsWide:"), value) } // A Boolean value that indicates whether the image data has an alpha channel. [Full Topic] @@ -399,34 +375,64 @@ func (i_ ImageRep) SetAlpha(value bool) { objc.Call[objc.Void](i_, objc.Sel("setAlpha:"), value) } -// The layout direction for the image. [Full Topic] +// The height of the image, measured in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1690237-layoutdirection?language=objc -func (i_ ImageRep) LayoutDirection() ImageLayoutDirection { - rv := objc.Call[ImageLayoutDirection](i_, objc.Sel("layoutDirection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533989-pixelshigh?language=objc +func (i_ ImageRep) PixelsHigh() int { + rv := objc.Call[int](i_, objc.Sel("pixelsHigh")) return rv } -// The layout direction for the image. [Full Topic] +// The height of the image, measured in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1690237-layoutdirection?language=objc -func (i_ ImageRep) SetLayoutDirection(value ImageLayoutDirection) { - objc.Call[objc.Void](i_, objc.Sel("setLayoutDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533989-pixelshigh?language=objc +func (i_ ImageRep) SetPixelsHigh(value int) { + objc.Call[objc.Void](i_, objc.Sel("setPixelsHigh:"), value) } -// The width of the image, measured in pixels. [Full Topic] +// Returns an array of UTI strings identifying the image types supported directly by the ime representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526995-pixelswide?language=objc -func (i_ ImageRep) PixelsWide() int { - rv := objc.Call[int](i_, objc.Sel("pixelsWide")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534816-imageunfilteredtypes?language=objc +func (ic _ImageRepClass) ImageUnfilteredTypes() []string { + rv := objc.Call[[]string](ic, objc.Sel("imageUnfilteredTypes")) return rv } -// The width of the image, measured in pixels. [Full Topic] +// Returns an array of UTI strings identifying the image types supported directly by the ime representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526995-pixelswide?language=objc -func (i_ ImageRep) SetPixelsWide(value int) { - objc.Call[objc.Void](i_, objc.Sel("setPixelsWide:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1534816-imageunfilteredtypes?language=objc +func ImageRep_ImageUnfilteredTypes() []string { + return ImageRepClass.ImageUnfilteredTypes() +} + +// Returns an array containing the registered image representation classes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1525139-registeredimagerepclasses?language=objc +func (ic _ImageRepClass) RegisteredImageRepClasses() []objc.Class { + rv := objc.Call[[]objc.Class](ic, objc.Sel("registeredImageRepClasses")) + return rv +} + +// Returns an array containing the registered image representation classes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1525139-registeredimagerepclasses?language=objc +func ImageRep_RegisteredImageRepClasses() []objc.Class { + return ImageRepClass.RegisteredImageRepClasses() +} + +// The number of bits per sample in the object (if the object is a planar image, this property contains the number of bits per sample per plane). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533157-bitspersample?language=objc +func (i_ ImageRep) BitsPerSample() int { + rv := objc.Call[int](i_, objc.Sel("bitsPerSample")) + return rv +} + +// The number of bits per sample in the object (if the object is a planar image, this property contains the number of bits per sample per plane). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1533157-bitspersample?language=objc +func (i_ ImageRep) SetBitsPerSample(value int) { + objc.Call[objc.Void](i_, objc.Sel("setBitsPerSample:"), value) } // The size of the image representation, measured in points in the user coordinate space. [Full Topic] @@ -443,18 +449,3 @@ func (i_ ImageRep) Size() foundation.Size { func (i_ ImageRep) SetSize(value foundation.Size) { objc.Call[objc.Void](i_, objc.Sel("setSize:"), value) } - -// A Boolean value that indicates whether the image is opaque. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1528462-opaque?language=objc -func (i_ ImageRep) IsOpaque() bool { - rv := objc.Call[bool](i_, objc.Sel("isOpaque")) - return rv -} - -// A Boolean value that indicates whether the image is opaque. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1528462-opaque?language=objc -func (i_ ImageRep) SetOpaque(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setOpaque:"), value) -} diff --git a/macos/appkit/image_symbol_configuration.gen.go b/macos/appkit/image_symbol_configuration.gen.go index 52da4149..e030ec20 100644 --- a/macos/appkit/image_symbol_configuration.gen.go +++ b/macos/appkit/image_symbol_configuration.gen.go @@ -33,6 +33,30 @@ func ImageSymbolConfigurationFrom(ptr unsafe.Pointer) ImageSymbolConfiguration { } } +func (ic _ImageSymbolConfigurationClass) ConfigurationWithPaletteColors(paletteColors []IColor) ImageSymbolConfiguration { + rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("configurationWithPaletteColors:"), paletteColors) + return rv +} + +// Creates a color configuration by specifying a palette of colors. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagesymbolconfiguration/3852563-configurationwithpalettecolors?language=objc +func ImageSymbolConfiguration_ConfigurationWithPaletteColors(paletteColors []IColor) ImageSymbolConfiguration { + return ImageSymbolConfigurationClass.ConfigurationWithPaletteColors(paletteColors) +} + +func (ic _ImageSymbolConfigurationClass) ConfigurationWithPointSizeWeight(pointSize float64, weight FontWeight) ImageSymbolConfiguration { + rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("configurationWithPointSize:weight:"), pointSize, weight) + return rv +} + +// Creates a symbol configuration with the specified point size and font weight. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagesymbolconfiguration/3656510-configurationwithpointsize?language=objc +func ImageSymbolConfiguration_ConfigurationWithPointSizeWeight(pointSize float64, weight FontWeight) ImageSymbolConfiguration { + return ImageSymbolConfigurationClass.ConfigurationWithPointSizeWeight(pointSize, weight) +} + func (ic _ImageSymbolConfigurationClass) ConfigurationWithScale(scale ImageSymbolScale) ImageSymbolConfiguration { rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("configurationWithScale:"), scale) return rv @@ -57,18 +81,6 @@ func ImageSymbolConfiguration_ConfigurationWithHierarchicalColor(hierarchicalCol return ImageSymbolConfigurationClass.ConfigurationWithHierarchicalColor(hierarchicalColor) } -func (ic _ImageSymbolConfigurationClass) ConfigurationWithPointSizeWeightScale(pointSize float64, weight FontWeight, scale ImageSymbolScale) ImageSymbolConfiguration { - rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("configurationWithPointSize:weight:scale:"), pointSize, weight, scale) - return rv -} - -// Creates a symbol configuration with the specified point size, font weight, and symbol scale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagesymbolconfiguration/3656511-configurationwithpointsize?language=objc -func ImageSymbolConfiguration_ConfigurationWithPointSizeWeightScale(pointSize float64, weight FontWeight, scale ImageSymbolScale) ImageSymbolConfiguration { - return ImageSymbolConfigurationClass.ConfigurationWithPointSizeWeightScale(pointSize, weight, scale) -} - func (ic _ImageSymbolConfigurationClass) ConfigurationWithTextStyle(style FontTextStyle) ImageSymbolConfiguration { rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("configurationWithTextStyle:"), style) return rv @@ -93,18 +105,6 @@ func ImageSymbolConfiguration_ConfigurationPreferringMulticolor() ImageSymbolCon return ImageSymbolConfigurationClass.ConfigurationPreferringMulticolor() } -func (ic _ImageSymbolConfigurationClass) ConfigurationWithPointSizeWeight(pointSize float64, weight FontWeight) ImageSymbolConfiguration { - rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("configurationWithPointSize:weight:"), pointSize, weight) - return rv -} - -// Creates a symbol configuration with the specified point size and font weight. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagesymbolconfiguration/3656510-configurationwithpointsize?language=objc -func ImageSymbolConfiguration_ConfigurationWithPointSizeWeight(pointSize float64, weight FontWeight) ImageSymbolConfiguration { - return ImageSymbolConfigurationClass.ConfigurationWithPointSizeWeight(pointSize, weight) -} - func (i_ ImageSymbolConfiguration) ConfigurationByApplyingConfiguration(configuration IImageSymbolConfiguration) ImageSymbolConfiguration { rv := objc.Call[ImageSymbolConfiguration](i_, objc.Sel("configurationByApplyingConfiguration:"), configuration) return rv @@ -119,30 +119,6 @@ func ImageSymbolConfiguration_ConfigurationByApplyingConfiguration(configuration return instance } -func (ic _ImageSymbolConfigurationClass) ConfigurationWithTextStyleScale(style FontTextStyle, scale ImageSymbolScale) ImageSymbolConfiguration { - rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("configurationWithTextStyle:scale:"), style, scale) - return rv -} - -// Creates a symbol configuration with the specified text style and symbol scale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagesymbolconfiguration/3656513-configurationwithtextstyle?language=objc -func ImageSymbolConfiguration_ConfigurationWithTextStyleScale(style FontTextStyle, scale ImageSymbolScale) ImageSymbolConfiguration { - return ImageSymbolConfigurationClass.ConfigurationWithTextStyleScale(style, scale) -} - -func (ic _ImageSymbolConfigurationClass) ConfigurationWithPaletteColors(paletteColors []IColor) ImageSymbolConfiguration { - rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("configurationWithPaletteColors:"), paletteColors) - return rv -} - -// Creates a color configuration by specifying a palette of colors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagesymbolconfiguration/3852563-configurationwithpalettecolors?language=objc -func ImageSymbolConfiguration_ConfigurationWithPaletteColors(paletteColors []IColor) ImageSymbolConfiguration { - return ImageSymbolConfigurationClass.ConfigurationWithPaletteColors(paletteColors) -} - func (ic _ImageSymbolConfigurationClass) Alloc() ImageSymbolConfiguration { rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("alloc")) return rv diff --git a/macos/appkit/image_view.gen.go b/macos/appkit/image_view.gen.go index dd9f9684..2c77a2fb 100644 --- a/macos/appkit/image_view.gen.go +++ b/macos/appkit/image_view.gen.go @@ -19,24 +19,24 @@ type _ImageViewClass struct { // An interface definition for the [ImageView] class. type IImageView interface { IControl + ContentTintColor() Color + SetContentTintColor(value IColor) ImageAlignment() ImageAlignment SetImageAlignment(value ImageAlignment) - Image() Image - SetImage(value IImage) - SymbolConfiguration() ImageSymbolConfiguration - SetSymbolConfiguration(value IImageSymbolConfiguration) - Animates() bool - SetAnimates(value bool) AllowsCutCopyPaste() bool SetAllowsCutCopyPaste(value bool) + IsEditable() bool + SetEditable(value bool) ImageScaling() ImageScaling SetImageScaling(value ImageScaling) - ContentTintColor() Color - SetContentTintColor(value IColor) + SymbolConfiguration() ImageSymbolConfiguration + SetSymbolConfiguration(value IImageSymbolConfiguration) ImageFrameStyle() ImageFrameStyle SetImageFrameStyle(value ImageFrameStyle) - IsEditable() bool - SetEditable(value bool) + Animates() bool + SetAnimates(value bool) + Image() Image + SetImage(value IImage) } // A display of image data in a frame. [Full Topic] @@ -98,64 +98,34 @@ func NewImageViewWithFrame(frameRect foundation.Rect) ImageView { return instance } -// The alignment of the cell’s image inside the image view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404963-imagealignment?language=objc -func (i_ ImageView) ImageAlignment() ImageAlignment { - rv := objc.Call[ImageAlignment](i_, objc.Sel("imageAlignment")) - return rv -} - -// The alignment of the cell’s image inside the image view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404963-imagealignment?language=objc -func (i_ ImageView) SetImageAlignment(value ImageAlignment) { - objc.Call[objc.Void](i_, objc.Sel("setImageAlignment:"), value) -} - -// The image displayed by the image view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404952-image?language=objc -func (i_ ImageView) Image() Image { - rv := objc.Call[Image](i_, objc.Sel("image")) - return rv -} - -// The image displayed by the image view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404952-image?language=objc -func (i_ ImageView) SetImage(value IImage) { - objc.Call[objc.Void](i_, objc.Sel("setImage:"), value) -} - // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/3667456-symbolconfiguration?language=objc -func (i_ ImageView) SymbolConfiguration() ImageSymbolConfiguration { - rv := objc.Call[ImageSymbolConfiguration](i_, objc.Sel("symbolConfiguration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/3000783-contenttintcolor?language=objc +func (i_ ImageView) ContentTintColor() Color { + rv := objc.Call[Color](i_, objc.Sel("contentTintColor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/3667456-symbolconfiguration?language=objc -func (i_ ImageView) SetSymbolConfiguration(value IImageSymbolConfiguration) { - objc.Call[objc.Void](i_, objc.Sel("setSymbolConfiguration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/3000783-contenttintcolor?language=objc +func (i_ ImageView) SetContentTintColor(value IColor) { + objc.Call[objc.Void](i_, objc.Sel("setContentTintColor:"), value) } -// A Boolean value indicating whether the image view automatically plays animated images. [Full Topic] +// The alignment of the cell’s image inside the image view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404950-animates?language=objc -func (i_ ImageView) Animates() bool { - rv := objc.Call[bool](i_, objc.Sel("animates")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404963-imagealignment?language=objc +func (i_ ImageView) ImageAlignment() ImageAlignment { + rv := objc.Call[ImageAlignment](i_, objc.Sel("imageAlignment")) return rv } -// A Boolean value indicating whether the image view automatically plays animated images. [Full Topic] +// The alignment of the cell’s image inside the image view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404950-animates?language=objc -func (i_ ImageView) SetAnimates(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setAnimates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404963-imagealignment?language=objc +func (i_ ImageView) SetImageAlignment(value ImageAlignment) { + objc.Call[objc.Void](i_, objc.Sel("setImageAlignment:"), value) } // A Boolean value indicating whether the image view lets the user cut, copy, and paste the image contents. [Full Topic] @@ -173,6 +143,21 @@ func (i_ ImageView) SetAllowsCutCopyPaste(value bool) { objc.Call[objc.Void](i_, objc.Sel("setAllowsCutCopyPaste:"), value) } +// A Boolean value indicating whether the user can drag a new image into the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404954-editable?language=objc +func (i_ ImageView) IsEditable() bool { + rv := objc.Call[bool](i_, objc.Sel("isEditable")) + return rv +} + +// A Boolean value indicating whether the user can drag a new image into the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404954-editable?language=objc +func (i_ ImageView) SetEditable(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setEditable:"), value) +} + // The scaling mode applied to make the cell’s image fit the frame of the image view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404956-imagescaling?language=objc @@ -190,17 +175,17 @@ func (i_ ImageView) SetImageScaling(value ImageScaling) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/3000783-contenttintcolor?language=objc -func (i_ ImageView) ContentTintColor() Color { - rv := objc.Call[Color](i_, objc.Sel("contentTintColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/3667456-symbolconfiguration?language=objc +func (i_ ImageView) SymbolConfiguration() ImageSymbolConfiguration { + rv := objc.Call[ImageSymbolConfiguration](i_, objc.Sel("symbolConfiguration")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/3000783-contenttintcolor?language=objc -func (i_ ImageView) SetContentTintColor(value IColor) { - objc.Call[objc.Void](i_, objc.Sel("setContentTintColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/3667456-symbolconfiguration?language=objc +func (i_ ImageView) SetSymbolConfiguration(value IImageSymbolConfiguration) { + objc.Call[objc.Void](i_, objc.Sel("setSymbolConfiguration:"), value) } // The style of frame that appears around the image. [Full Topic] @@ -218,17 +203,32 @@ func (i_ ImageView) SetImageFrameStyle(value ImageFrameStyle) { objc.Call[objc.Void](i_, objc.Sel("setImageFrameStyle:"), value) } -// A Boolean value indicating whether the user can drag a new image into the image view. [Full Topic] +// A Boolean value indicating whether the image view automatically plays animated images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404954-editable?language=objc -func (i_ ImageView) IsEditable() bool { - rv := objc.Call[bool](i_, objc.Sel("isEditable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404950-animates?language=objc +func (i_ ImageView) Animates() bool { + rv := objc.Call[bool](i_, objc.Sel("animates")) return rv } -// A Boolean value indicating whether the user can drag a new image into the image view. [Full Topic] +// A Boolean value indicating whether the image view automatically plays animated images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404954-editable?language=objc -func (i_ ImageView) SetEditable(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setEditable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404950-animates?language=objc +func (i_ ImageView) SetAnimates(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setAnimates:"), value) +} + +// The image displayed by the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404952-image?language=objc +func (i_ ImageView) Image() Image { + rv := objc.Call[Image](i_, objc.Sel("image")) + return rv +} + +// The image displayed by the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimageview/1404952-image?language=objc +func (i_ ImageView) SetImage(value IImage) { + objc.Call[objc.Void](i_, objc.Sel("setImage:"), value) } diff --git a/macos/appkit/layout_anchor.gen.go b/macos/appkit/layout_anchor.gen.go index 5e88ec4e..bbd12c76 100644 --- a/macos/appkit/layout_anchor.gen.go +++ b/macos/appkit/layout_anchor.gen.go @@ -19,14 +19,11 @@ type _LayoutAnchorClass struct { type ILayoutAnchor interface { objc.IObject ConstraintLessThanOrEqualToAnchor(anchor ILayoutAnchor) LayoutConstraint - ConstraintEqualToAnchorConstant(anchor ILayoutAnchor, c float64) LayoutConstraint - ConstraintGreaterThanOrEqualToAnchor(anchor ILayoutAnchor) LayoutConstraint ConstraintEqualToAnchor(anchor ILayoutAnchor) LayoutConstraint - ConstraintLessThanOrEqualToAnchorConstant(anchor ILayoutAnchor, c float64) LayoutConstraint - ConstraintGreaterThanOrEqualToAnchorConstant(anchor ILayoutAnchor, c float64) LayoutConstraint - ConstraintsAffectingLayout() []LayoutConstraint + ConstraintGreaterThanOrEqualToAnchor(anchor ILayoutAnchor) LayoutConstraint Item() objc.Object Name() string + ConstraintsAffectingLayout() []LayoutConstraint HasAmbiguousLayout() bool } @@ -71,22 +68,6 @@ func (l_ LayoutAnchor) ConstraintLessThanOrEqualToAnchor(anchor ILayoutAnchor) L return rv } -// Returns a constraint that defines one item’s attribute as equal to another item’s attribute plus a constant offset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutanchor/1500937-constraintequaltoanchor?language=objc -func (l_ LayoutAnchor) ConstraintEqualToAnchorConstant(anchor ILayoutAnchor, c float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToAnchor:constant:"), anchor, c) - return rv -} - -// Returns a constraint that defines one item’s attribute as greater than or equal to another. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutanchor/1500936-constraintgreaterthanorequaltoan?language=objc -func (l_ LayoutAnchor) ConstraintGreaterThanOrEqualToAnchor(anchor ILayoutAnchor) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToAnchor:"), anchor) - return rv -} - // Returns a constraint that defines one item’s attribute as equal to another. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutanchor/1500946-constraintequaltoanchor?language=objc @@ -95,27 +76,11 @@ func (l_ LayoutAnchor) ConstraintEqualToAnchor(anchor ILayoutAnchor) LayoutConst return rv } -// Returns a constraint that defines one item’s attribute as less than or equal to another item’s attribute plus a constant offset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutanchor/1500959-constraintlessthanorequaltoancho?language=objc -func (l_ LayoutAnchor) ConstraintLessThanOrEqualToAnchorConstant(anchor ILayoutAnchor, c float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToAnchor:constant:"), anchor, c) - return rv -} - -// Returns a constraint that defines one item’s attribute as greater than or equal to another item’s attribute plus a constant offset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutanchor/1500948-constraintgreaterthanorequaltoan?language=objc -func (l_ LayoutAnchor) ConstraintGreaterThanOrEqualToAnchorConstant(anchor ILayoutAnchor, c float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToAnchor:constant:"), anchor, c) - return rv -} - -// The constraints that impact the layout of the anchor. [Full Topic] +// Returns a constraint that defines one item’s attribute as greater than or equal to another. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutanchor/2870023-constraintsaffectinglayout?language=objc -func (l_ LayoutAnchor) ConstraintsAffectingLayout() []LayoutConstraint { - rv := objc.Call[[]LayoutConstraint](l_, objc.Sel("constraintsAffectingLayout")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutanchor/1500936-constraintgreaterthanorequaltoan?language=objc +func (l_ LayoutAnchor) ConstraintGreaterThanOrEqualToAnchor(anchor ILayoutAnchor) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToAnchor:"), anchor) return rv } @@ -135,6 +100,14 @@ func (l_ LayoutAnchor) Name() string { return rv } +// The constraints that impact the layout of the anchor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutanchor/2870023-constraintsaffectinglayout?language=objc +func (l_ LayoutAnchor) ConstraintsAffectingLayout() []LayoutConstraint { + rv := objc.Call[[]LayoutConstraint](l_, objc.Sel("constraintsAffectingLayout")) + return rv +} + // A Boolean value indicating whether the constraints impacting the anchor specify its location ambiguously. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutanchor/2870024-hasambiguouslayout?language=objc diff --git a/macos/appkit/layout_constraint.gen.go b/macos/appkit/layout_constraint.gen.go index dbbff9e9..6b72b6b4 100644 --- a/macos/appkit/layout_constraint.gen.go +++ b/macos/appkit/layout_constraint.gen.go @@ -19,23 +19,23 @@ type _LayoutConstraintClass struct { type ILayoutConstraint interface { objc.IObject Relation() LayoutRelation - FirstAnchor() LayoutAnchor - SecondAttribute() LayoutAttribute Priority() LayoutPriority SetPriority(value LayoutPriority) - Identifier() string - SetIdentifier(value string) - SecondAnchor() LayoutAnchor Multiplier() float64 - SecondItem() objc.Object - ShouldBeArchived() bool - SetShouldBeArchived(value bool) IsActive() bool SetActive(value bool) + SecondItem() objc.Object FirstItem() objc.Object FirstAttribute() LayoutAttribute + FirstAnchor() LayoutAnchor + SecondAttribute() LayoutAttribute Constant() float64 SetConstant(value float64) + ShouldBeArchived() bool + SetShouldBeArchived(value bool) + SecondAnchor() LayoutAnchor + Identifier() string + SetIdentifier(value string) } // The relationship between two user interface objects that must be satisfied by the constraint-based layout system. [Full Topic] @@ -134,22 +134,6 @@ func (l_ LayoutConstraint) Relation() LayoutRelation { return rv } -// The first anchor that defines the constraint. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1644261-firstanchor?language=objc -func (l_ LayoutConstraint) FirstAnchor() LayoutAnchor { - rv := objc.Call[LayoutAnchor](l_, objc.Sel("firstAnchor")) - return rv -} - -// The attribute of the second object participating in the constraint. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526941-secondattribute?language=objc -func (l_ LayoutConstraint) SecondAttribute() LayoutAttribute { - rv := objc.Call[LayoutAttribute](l_, objc.Sel("secondAttribute")) - return rv -} - // The priority of the constraint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526946-priority?language=objc @@ -165,29 +149,6 @@ func (l_ LayoutConstraint) SetPriority(value LayoutPriority) { objc.Call[objc.Void](l_, objc.Sel("setPriority:"), value) } -// The name that identifies the constraint. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526879-identifier?language=objc -func (l_ LayoutConstraint) Identifier() string { - rv := objc.Call[string](l_, objc.Sel("identifier")) - return rv -} - -// The name that identifies the constraint. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526879-identifier?language=objc -func (l_ LayoutConstraint) SetIdentifier(value string) { - objc.Call[objc.Void](l_, objc.Sel("setIdentifier:"), value) -} - -// The second anchor that defines the constraint. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1644260-secondanchor?language=objc -func (l_ LayoutConstraint) SecondAnchor() LayoutAnchor { - rv := objc.Call[LayoutAnchor](l_, objc.Sel("secondAnchor")) - return rv -} - // The multiplier applied to the second attribute participating in the constraint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526920-multiplier?language=objc @@ -196,29 +157,6 @@ func (l_ LayoutConstraint) Multiplier() float64 { return rv } -// The second object participating in the constraint. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526868-seconditem?language=objc -func (l_ LayoutConstraint) SecondItem() objc.Object { - rv := objc.Call[objc.Object](l_, objc.Sel("secondItem")) - return rv -} - -// A Boolean value that determines whether the constraint should be archived by its owning view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1525647-shouldbearchived?language=objc -func (l_ LayoutConstraint) ShouldBeArchived() bool { - rv := objc.Call[bool](l_, objc.Sel("shouldBeArchived")) - return rv -} - -// A Boolean value that determines whether the constraint should be archived by its owning view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1525647-shouldbearchived?language=objc -func (l_ LayoutConstraint) SetShouldBeArchived(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setShouldBeArchived:"), value) -} - // The active state of the constraint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1527000-active?language=objc @@ -234,6 +172,14 @@ func (l_ LayoutConstraint) SetActive(value bool) { objc.Call[objc.Void](l_, objc.Sel("setActive:"), value) } +// The second object participating in the constraint. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526868-seconditem?language=objc +func (l_ LayoutConstraint) SecondItem() objc.Object { + rv := objc.Call[objc.Object](l_, objc.Sel("secondItem")) + return rv +} + // The first object participating in the constraint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526860-firstitem?language=objc @@ -250,6 +196,22 @@ func (l_ LayoutConstraint) FirstAttribute() LayoutAttribute { return rv } +// The first anchor that defines the constraint. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1644261-firstanchor?language=objc +func (l_ LayoutConstraint) FirstAnchor() LayoutAnchor { + rv := objc.Call[LayoutAnchor](l_, objc.Sel("firstAnchor")) + return rv +} + +// The attribute of the second object participating in the constraint. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526941-secondattribute?language=objc +func (l_ LayoutConstraint) SecondAttribute() LayoutAttribute { + rv := objc.Call[LayoutAttribute](l_, objc.Sel("secondAttribute")) + return rv +} + // The constant added to the multiplied second attribute participating in the constraint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526928-constant?language=objc @@ -264,3 +226,41 @@ func (l_ LayoutConstraint) Constant() float64 { func (l_ LayoutConstraint) SetConstant(value float64) { objc.Call[objc.Void](l_, objc.Sel("setConstant:"), value) } + +// A Boolean value that determines whether the constraint should be archived by its owning view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1525647-shouldbearchived?language=objc +func (l_ LayoutConstraint) ShouldBeArchived() bool { + rv := objc.Call[bool](l_, objc.Sel("shouldBeArchived")) + return rv +} + +// A Boolean value that determines whether the constraint should be archived by its owning view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1525647-shouldbearchived?language=objc +func (l_ LayoutConstraint) SetShouldBeArchived(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setShouldBeArchived:"), value) +} + +// The second anchor that defines the constraint. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1644260-secondanchor?language=objc +func (l_ LayoutConstraint) SecondAnchor() LayoutAnchor { + rv := objc.Call[LayoutAnchor](l_, objc.Sel("secondAnchor")) + return rv +} + +// The name that identifies the constraint. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526879-identifier?language=objc +func (l_ LayoutConstraint) Identifier() string { + rv := objc.Call[string](l_, objc.Sel("identifier")) + return rv +} + +// The name that identifies the constraint. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526879-identifier?language=objc +func (l_ LayoutConstraint) SetIdentifier(value string) { + objc.Call[objc.Void](l_, objc.Sel("setIdentifier:"), value) +} diff --git a/macos/appkit/layout_dimension.gen.go b/macos/appkit/layout_dimension.gen.go index 13270bc1..9642269e 100644 --- a/macos/appkit/layout_dimension.gen.go +++ b/macos/appkit/layout_dimension.gen.go @@ -18,15 +18,12 @@ type _LayoutDimensionClass struct { // An interface definition for the [LayoutDimension] class. type ILayoutDimension interface { ILayoutAnchor + ConstraintLessThanOrEqualToAnchorMultiplier(anchor ILayoutDimension, m float64) LayoutConstraint + ConstraintEqualToAnchorMultiplierConstant(anchor ILayoutDimension, m float64, c float64) LayoutConstraint ConstraintEqualToConstant(c float64) LayoutConstraint - ConstraintLessThanOrEqualToAnchorMultiplierConstant(anchor ILayoutDimension, m float64, c float64) LayoutConstraint + ConstraintLessThanOrEqualToConstant(c float64) LayoutConstraint ConstraintGreaterThanOrEqualToConstant(c float64) LayoutConstraint - ConstraintEqualToAnchorMultiplier(anchor ILayoutDimension, m float64) LayoutConstraint - ConstraintEqualToAnchorMultiplierConstant(anchor ILayoutDimension, m float64, c float64) LayoutConstraint ConstraintGreaterThanOrEqualToAnchorMultiplier(anchor ILayoutDimension, m float64) LayoutConstraint - ConstraintGreaterThanOrEqualToAnchorMultiplierConstant(anchor ILayoutDimension, m float64, c float64) LayoutConstraint - ConstraintLessThanOrEqualToAnchorMultiplier(anchor ILayoutDimension, m float64) LayoutConstraint - ConstraintLessThanOrEqualToConstant(c float64) LayoutConstraint } // A factory class for creating size-based layout constraint objects using a fluent API. [Full Topic] @@ -62,35 +59,11 @@ func (l_ LayoutDimension) Init() LayoutDimension { return rv } -// Returns a constraint that defines a constant size for the anchor’s size attribute. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500941-constraintequaltoconstant?language=objc -func (l_ LayoutDimension) ConstraintEqualToConstant(c float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToConstant:"), c) - return rv -} - -// Returns a constraint that defines the anchor’s size attribute as greater than or equal to the specified anchor multiplied by the constant plus an offset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500957-constraintlessthanorequaltoancho?language=objc -func (l_ LayoutDimension) ConstraintLessThanOrEqualToAnchorMultiplierConstant(anchor ILayoutDimension, m float64, c float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToAnchor:multiplier:constant:"), anchor, m, c) - return rv -} - -// Returns a constraint that defines the minimum size for the anchor’s size attribute. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500939-constraintgreaterthanorequaltoco?language=objc -func (l_ LayoutDimension) ConstraintGreaterThanOrEqualToConstant(c float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToConstant:"), c) - return rv -} - -// Returns a constraint that defines the anchor’s size attribute as equal to the specified anchor multiplied by the constant. [Full Topic] +// Returns a constraint that defines the anchor’s size attribute as less than or equal to the specified anchor multiplied by the constant. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500951-constraintequaltoanchor?language=objc -func (l_ LayoutDimension) ConstraintEqualToAnchorMultiplier(anchor ILayoutDimension, m float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToAnchor:multiplier:"), anchor, m) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500943-constraintlessthanorequaltoancho?language=objc +func (l_ LayoutDimension) ConstraintLessThanOrEqualToAnchorMultiplier(anchor ILayoutDimension, m float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToAnchor:multiplier:"), anchor, m) return rv } @@ -102,34 +75,34 @@ func (l_ LayoutDimension) ConstraintEqualToAnchorMultiplierConstant(anchor ILayo return rv } -// Returns a constraint that defines the anchor’s size attribute as greater than or equal to the specified anchor multiplied by the constant. [Full Topic] +// Returns a constraint that defines a constant size for the anchor’s size attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500961-constraintgreaterthanorequaltoan?language=objc -func (l_ LayoutDimension) ConstraintGreaterThanOrEqualToAnchorMultiplier(anchor ILayoutDimension, m float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToAnchor:multiplier:"), anchor, m) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500941-constraintequaltoconstant?language=objc +func (l_ LayoutDimension) ConstraintEqualToConstant(c float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToConstant:"), c) return rv } -// Returns a constraint that defines the anchor’s size attribute as greater than or equal to the specified anchor multiplied by the constant plus an offset. [Full Topic] +// Returns a constraint that defines the maximum size for the anchor’s size attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500965-constraintgreaterthanorequaltoan?language=objc -func (l_ LayoutDimension) ConstraintGreaterThanOrEqualToAnchorMultiplierConstant(anchor ILayoutDimension, m float64, c float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToAnchor:multiplier:constant:"), anchor, m, c) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500963-constraintlessthanorequaltoconst?language=objc +func (l_ LayoutDimension) ConstraintLessThanOrEqualToConstant(c float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToConstant:"), c) return rv } -// Returns a constraint that defines the anchor’s size attribute as less than or equal to the specified anchor multiplied by the constant. [Full Topic] +// Returns a constraint that defines the minimum size for the anchor’s size attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500943-constraintlessthanorequaltoancho?language=objc -func (l_ LayoutDimension) ConstraintLessThanOrEqualToAnchorMultiplier(anchor ILayoutDimension, m float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToAnchor:multiplier:"), anchor, m) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500939-constraintgreaterthanorequaltoco?language=objc +func (l_ LayoutDimension) ConstraintGreaterThanOrEqualToConstant(c float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToConstant:"), c) return rv } -// Returns a constraint that defines the maximum size for the anchor’s size attribute. [Full Topic] +// Returns a constraint that defines the anchor’s size attribute as greater than or equal to the specified anchor multiplied by the constant. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500963-constraintlessthanorequaltoconst?language=objc -func (l_ LayoutDimension) ConstraintLessThanOrEqualToConstant(c float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToConstant:"), c) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500961-constraintgreaterthanorequaltoan?language=objc +func (l_ LayoutDimension) ConstraintGreaterThanOrEqualToAnchorMultiplier(anchor ILayoutDimension, m float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToAnchor:multiplier:"), anchor, m) return rv } diff --git a/macos/appkit/layout_guide.gen.go b/macos/appkit/layout_guide.gen.go index f2863797..a805035a 100644 --- a/macos/appkit/layout_guide.gen.go +++ b/macos/appkit/layout_guide.gen.go @@ -20,22 +20,22 @@ type _LayoutGuideClass struct { type ILayoutGuide interface { objc.IObject ConstraintsAffectingLayoutForOrientation(orientation LayoutConstraintOrientation) []LayoutConstraint - TrailingAnchor() LayoutXAxisAnchor + TopAnchor() LayoutYAxisAnchor + LeftAnchor() LayoutXAxisAnchor CenterYAnchor() LayoutYAxisAnchor + RightAnchor() LayoutXAxisAnchor + BottomAnchor() LayoutYAxisAnchor + HeightAnchor() LayoutDimension + TrailingAnchor() LayoutXAxisAnchor + LeadingAnchor() LayoutXAxisAnchor + Frame() foundation.Rect OwningView() View SetOwningView(value IView) - TopAnchor() LayoutYAxisAnchor - BottomAnchor() LayoutYAxisAnchor + HasAmbiguousLayout() bool CenterXAnchor() LayoutXAxisAnchor - HeightAnchor() LayoutDimension Identifier() UserInterfaceItemIdentifier SetIdentifier(value UserInterfaceItemIdentifier) - HasAmbiguousLayout() bool - LeadingAnchor() LayoutXAxisAnchor - Frame() foundation.Rect WidthAnchor() LayoutDimension - LeftAnchor() LayoutXAxisAnchor - RightAnchor() LayoutXAxisAnchor } // A rectangular area that can interact with Auto Layout. [Full Topic] @@ -79,11 +79,19 @@ func (l_ LayoutGuide) ConstraintsAffectingLayoutForOrientation(orientation Layou return rv } -// A layout anchor representing the trailing edge of the layout guide’s frame. [Full Topic] +// A layout anchor representing the top edge of the layout guide’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1528204-trailinganchor?language=objc -func (l_ LayoutGuide) TrailingAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("trailingAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1534159-topanchor?language=objc +func (l_ LayoutGuide) TopAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](l_, objc.Sel("topAnchor")) + return rv +} + +// A layout anchor representing the left edge of the layout guide’s frame. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1530723-leftanchor?language=objc +func (l_ LayoutGuide) LeftAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("leftAnchor")) return rv } @@ -95,66 +103,67 @@ func (l_ LayoutGuide) CenterYAnchor() LayoutYAxisAnchor { return rv } -// The view that owns this layout guide. [Full Topic] +// A layout anchor representing the right edge of the layout guide’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1533971-owningview?language=objc -func (l_ LayoutGuide) OwningView() View { - rv := objc.Call[View](l_, objc.Sel("owningView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1534892-rightanchor?language=objc +func (l_ LayoutGuide) RightAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("rightAnchor")) return rv } -// The view that owns this layout guide. [Full Topic] +// A layout anchor representing the bottom edge of the layout guide’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1533971-owningview?language=objc -func (l_ LayoutGuide) SetOwningView(value IView) { - objc.Call[objc.Void](l_, objc.Sel("setOwningView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1529133-bottomanchor?language=objc +func (l_ LayoutGuide) BottomAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](l_, objc.Sel("bottomAnchor")) + return rv } -// A layout anchor representing the top edge of the layout guide’s frame. [Full Topic] +// A layout anchor representing the height of the layout guide’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1534159-topanchor?language=objc -func (l_ LayoutGuide) TopAnchor() LayoutYAxisAnchor { - rv := objc.Call[LayoutYAxisAnchor](l_, objc.Sel("topAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1532150-heightanchor?language=objc +func (l_ LayoutGuide) HeightAnchor() LayoutDimension { + rv := objc.Call[LayoutDimension](l_, objc.Sel("heightAnchor")) return rv } -// A layout anchor representing the bottom edge of the layout guide’s frame. [Full Topic] +// A layout anchor representing the trailing edge of the layout guide’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1529133-bottomanchor?language=objc -func (l_ LayoutGuide) BottomAnchor() LayoutYAxisAnchor { - rv := objc.Call[LayoutYAxisAnchor](l_, objc.Sel("bottomAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1528204-trailinganchor?language=objc +func (l_ LayoutGuide) TrailingAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("trailingAnchor")) return rv } -// A layout anchor representing the horizontal center of the layout guide’s frame. [Full Topic] +// A layout anchor representing the leading edge of the layout guide’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1528997-centerxanchor?language=objc -func (l_ LayoutGuide) CenterXAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("centerXAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1534720-leadinganchor?language=objc +func (l_ LayoutGuide) LeadingAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("leadingAnchor")) return rv } -// A layout anchor representing the height of the layout guide’s frame. [Full Topic] +// The layout guide’s frame in its owning view’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1532150-heightanchor?language=objc -func (l_ LayoutGuide) HeightAnchor() LayoutDimension { - rv := objc.Call[LayoutDimension](l_, objc.Sel("heightAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1533744-frame?language=objc +func (l_ LayoutGuide) Frame() foundation.Rect { + rv := objc.Call[foundation.Rect](l_, objc.Sel("frame")) return rv } -// A string used to identify the layout guide. [Full Topic] +// The view that owns this layout guide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1524460-identifier?language=objc -func (l_ LayoutGuide) Identifier() UserInterfaceItemIdentifier { - rv := objc.Call[UserInterfaceItemIdentifier](l_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1533971-owningview?language=objc +func (l_ LayoutGuide) OwningView() View { + rv := objc.Call[View](l_, objc.Sel("owningView")) return rv } -// A string used to identify the layout guide. [Full Topic] +// The view that owns this layout guide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1524460-identifier?language=objc -func (l_ LayoutGuide) SetIdentifier(value UserInterfaceItemIdentifier) { - objc.Call[objc.Void](l_, objc.Sel("setIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1533971-owningview?language=objc +func (l_ LayoutGuide) SetOwningView(value IView) { + objc.Call[objc.Void](l_, objc.Sel("setOwningView:"), value) } // [Full Topic] @@ -165,22 +174,29 @@ func (l_ LayoutGuide) HasAmbiguousLayout() bool { return rv } -// A layout anchor representing the leading edge of the layout guide’s frame. [Full Topic] +// A layout anchor representing the horizontal center of the layout guide’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1534720-leadinganchor?language=objc -func (l_ LayoutGuide) LeadingAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("leadingAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1528997-centerxanchor?language=objc +func (l_ LayoutGuide) CenterXAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("centerXAnchor")) return rv } -// The layout guide’s frame in its owning view’s coordinate system. [Full Topic] +// A string used to identify the layout guide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1533744-frame?language=objc -func (l_ LayoutGuide) Frame() foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("frame")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1524460-identifier?language=objc +func (l_ LayoutGuide) Identifier() UserInterfaceItemIdentifier { + rv := objc.Call[UserInterfaceItemIdentifier](l_, objc.Sel("identifier")) return rv } +// A string used to identify the layout guide. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1524460-identifier?language=objc +func (l_ LayoutGuide) SetIdentifier(value UserInterfaceItemIdentifier) { + objc.Call[objc.Void](l_, objc.Sel("setIdentifier:"), value) +} + // A layout anchor representing the width of the layout guide’s frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1527215-widthanchor?language=objc @@ -188,19 +204,3 @@ func (l_ LayoutGuide) WidthAnchor() LayoutDimension { rv := objc.Call[LayoutDimension](l_, objc.Sel("widthAnchor")) return rv } - -// A layout anchor representing the left edge of the layout guide’s frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1530723-leftanchor?language=objc -func (l_ LayoutGuide) LeftAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("leftAnchor")) - return rv -} - -// A layout anchor representing the right edge of the layout guide’s frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutguide/1534892-rightanchor?language=objc -func (l_ LayoutGuide) RightAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("rightAnchor")) - return rv -} diff --git a/macos/appkit/layout_manager.gen.go b/macos/appkit/layout_manager.gen.go index a58ec3b5..51f39c26 100644 --- a/macos/appkit/layout_manager.gen.go +++ b/macos/appkit/layout_manager.gen.go @@ -20,130 +20,119 @@ type _LayoutManagerClass struct { // An interface definition for the [LayoutManager] class. type ILayoutManager interface { objc.IObject + DrawsOutsideLineFragmentForGlyphAtIndex(glyphIndex uint) bool + SetLocationForStartOfGlyphRange(location coregraphics.Point, glyphRange foundation.Range) + SetTextContainerForGlyphRange(container ITextContainer, glyphRange foundation.Range) + GlyphIndexForPointInTextContainer(point coregraphics.Point, container ITextContainer) uint + LineFragmentUsedRectForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) coregraphics.Rect + TruncatedGlyphRangeInLineFragmentForGlyphAtIndex(glyphIndex uint) foundation.Range + TextContainerChangedTextView(container ITextContainer) TemporaryAttributesAtCharacterIndexEffectiveRange(charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object + SetExtraLineFragmentRectUsedRectTextContainer(fragmentRect coregraphics.Rect, usedRect coregraphics.Rect, container ITextContainer) AddTemporaryAttributesForCharacterRange(attrs map[foundation.AttributedStringKey]objc.IObject, charRange foundation.Range) SetBoundsRectForTextBlockGlyphRange(rect foundation.Rect, block ITextBlock, glyphRange foundation.Range) - TemporaryAttributesAtCharacterIndexLongestEffectiveRangeInRange(location uint, range_ foundation.RangePointer, rangeLimit foundation.Range) map[foundation.AttributedStringKey]objc.Object - DefaultLineHeightForFont(theFont IFont) float64 - BoundsRectForTextBlockAtIndexEffectiveRange(block ITextBlock, glyphIndex uint, effectiveGlyphRange foundation.RangePointer) foundation.Rect - ShowAttachmentCellInRectCharacterIndex(cell ICell, rect foundation.Rect, attachmentIndex uint) - BoundsRectForTextBlockGlyphRange(block ITextBlock, glyphRange foundation.Range) foundation.Rect - TextContainerChangedTextView(container ITextContainer) - SetTemporaryAttributesForCharacterRange(attrs map[foundation.AttributedStringKey]objc.IObject, charRange foundation.Range) - DefaultBaselineOffsetForFont(theFont IFont) float64 - RemoveTemporaryAttributeForCharacterRange(attrName foundation.AttributedStringKey, charRange foundation.Range) - RulerAccessoryViewForTextViewParagraphStyleRulerEnabled(view ITextView, style IParagraphStyle, ruler IRulerView, isEnabled bool) View - ReplaceTextStorage(newTextStorage ITextStorage) - SetLayoutRectForTextBlockGlyphRange(rect foundation.Rect, block ITextBlock, glyphRange foundation.Range) - TemporaryAttributeAtCharacterIndexEffectiveRange(attrName foundation.AttributedStringKey, location uint, range_ foundation.RangePointer) objc.Object LayoutManagerOwnsFirstResponderInWindow(window IWindow) bool - RulerMarkersForTextViewParagraphStyleRuler(view ITextView, style IParagraphStyle, ruler IRulerView) []RulerMarker - LayoutRectForTextBlockGlyphRange(block ITextBlock, glyphRange foundation.Range) foundation.Rect - AddTemporaryAttributeValueForCharacterRange(attrName foundation.AttributedStringKey, value objc.IObject, charRange foundation.Range) - LayoutRectForTextBlockAtIndexEffectiveRange(block ITextBlock, glyphIndex uint, effectiveGlyphRange foundation.RangePointer) foundation.Rect - TemporaryAttributeAtCharacterIndexLongestEffectiveRangeInRange(attrName foundation.AttributedStringKey, location uint, range_ foundation.RangePointer, rangeLimit foundation.Range) objc.Object - AddTextContainer(container ITextContainer) - SetDrawsOutsideLineFragmentForGlyphAtIndex(flag bool, glyphIndex uint) - TextContainerForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) TextContainer + EnsureGlyphsForGlyphRange(glyphRange foundation.Range) EnsureLayoutForCharacterRange(charRange foundation.Range) - GlyphIndexForCharacterAtIndex(charIndex uint) uint - LineFragmentUsedRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex uint, effectiveGlyphRange foundation.RangePointer, flag bool) foundation.Rect + SetNotShownAttributeForGlyphAtIndex(flag bool, glyphIndex uint) EnsureLayoutForGlyphRange(glyphRange foundation.Range) - LineFragmentRectForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) foundation.Rect - EnsureLayoutForTextContainer(container ITextContainer) - GlyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer(bounds foundation.Rect, container ITextContainer) foundation.Range - DrawsOutsideLineFragmentForGlyphAtIndex(glyphIndex uint) bool - SetAttachmentSizeForGlyphRange(attachmentSize foundation.Size, glyphRange foundation.Range) - InvalidateLayoutForCharacterRangeActualCharacterRange(charRange foundation.Range, actualCharRange foundation.RangePointer) - UsedRectForTextContainer(container ITextContainer) foundation.Rect - TruncatedGlyphRangeInLineFragmentForGlyphAtIndex(glyphIndex uint) foundation.Range - LineFragmentRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex uint, effectiveGlyphRange foundation.RangePointer, flag bool) foundation.Rect - SetLocationForStartOfGlyphRange(location foundation.Point, glyphRange foundation.Range) + GlyphIndexForCharacterAtIndex(charIndex uint) uint + DrawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, strikethroughVal UnderlineStyle, baselineOffset float64, lineRect coregraphics.Rect, lineGlyphRange foundation.Range, containerOrigin coregraphics.Point) + AttachmentSizeForGlyphAtIndex(glyphIndex uint) coregraphics.Size InvalidateDisplayForCharacterRange(charRange foundation.Range) + AddTemporaryAttributeValueForCharacterRange(attrName foundation.AttributedStringKey, value objc.IObject, charRange foundation.Range) + SetTemporaryAttributesForCharacterRange(attrs map[foundation.AttributedStringKey]objc.IObject, charRange foundation.Range) + UsedRectForTextContainer(container ITextContainer) coregraphics.Rect + RemoveTextContainerAtIndex(index uint) + CharacterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints(point coregraphics.Point, container ITextContainer, partialFraction *float64) uint InsertTextContainerAtIndex(container ITextContainer, index uint) - DrawGlyphsForGlyphRangeAtPoint(glyphsToShow foundation.Range, origin foundation.Point) - NotShownAttributeForGlyphAtIndex(glyphIndex uint) bool - IsValidGlyphIndex(glyphIndex uint) bool - CGGlyphAtIndex(glyphIndex uint) coregraphics.Glyph - ShowCGGlyphsPositionsCountFontTextMatrixAttributesInContext(glyphs *coregraphics.Glyph, positions *coregraphics.Point, glyphCount int, font IFont, textMatrix coregraphics.AffineTransform, attributes map[foundation.AttributedStringKey]objc.IObject, CGContext coregraphics.ContextRef) - CharacterIndexForGlyphAtIndex(glyphIndex uint) uint - LocationForGlyphAtIndex(glyphIndex uint) foundation.Point - LineFragmentUsedRectForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) foundation.Rect - SetLineFragmentRectForGlyphRangeUsedRect(fragmentRect foundation.Rect, glyphRange foundation.Range, usedRect foundation.Rect) - CharacterRangeForGlyphRangeActualGlyphRange(glyphRange foundation.Range, actualGlyphRange foundation.RangePointer) foundation.Range - GlyphRangeForTextContainer(container ITextContainer) foundation.Range - InvalidateGlyphsForCharacterRangeChangeInLengthActualCharacterRange(charRange foundation.Range, delta int, actualCharRange foundation.RangePointer) - EnumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock(glyphRange foundation.Range, selectedRange foundation.Range, textContainer ITextContainer, block func(rect foundation.Rect, stop *bool)) - PropertyForGlyphAtIndex(glyphIndex uint) GlyphProperty + AddTextContainer(container ITextContainer) + DefaultBaselineOffsetForFont(theFont IFont) float64 + LineFragmentRectForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) coregraphics.Rect + DrawBackgroundForGlyphRangeAtPoint(glyphsToShow foundation.Range, origin coregraphics.Point) + EnsureLayoutForTextContainer(container ITextContainer) + ShowAttachmentCellInRectCharacterIndex(cell ICell, rect foundation.Rect, attachmentIndex uint) InvalidateDisplayForGlyphRange(glyphRange foundation.Range) - GlyphRangeForBoundingRectInTextContainer(bounds foundation.Rect, container ITextContainer) foundation.Range - StrikethroughGlyphRangeStrikethroughTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, strikethroughVal UnderlineStyle, lineRect foundation.Rect, lineGlyphRange foundation.Range, containerOrigin foundation.Point) - EnsureLayoutForBoundingRectInTextContainer(bounds foundation.Rect, container ITextContainer) - UnderlineGlyphRangeUnderlineTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, underlineVal UnderlineStyle, lineRect foundation.Rect, lineGlyphRange foundation.Range, containerOrigin foundation.Point) GetLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes(charIndex uint, aFlag bool, dFlag bool, positions *float64, charIndexes *uint) uint - DrawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, underlineVal UnderlineStyle, baselineOffset float64, lineRect foundation.Rect, lineGlyphRange foundation.Range, containerOrigin foundation.Point) - DrawBackgroundForGlyphRangeAtPoint(glyphsToShow foundation.Range, origin foundation.Point) - ProcessEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(textStorage ITextStorage, editMask TextStorageEditActions, newCharRange foundation.Range, delta int, invalidatedCharRange foundation.Range) - AttachmentSizeForGlyphAtIndex(glyphIndex uint) foundation.Size - CGGlyphAtIndexIsValidIndex(glyphIndex uint, isValidIndex *bool) coregraphics.Glyph - GetFirstUnlaidCharacterIndexGlyphIndex(charIndex *uint, glyphIndex *uint) - DrawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, strikethroughVal UnderlineStyle, baselineOffset float64, lineRect foundation.Rect, lineGlyphRange foundation.Range, containerOrigin foundation.Point) - GlyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph(point foundation.Point, container ITextContainer, partialFraction *float64) uint - GetGlyphsInRangeGlyphsPropertiesCharacterIndexesBidiLevels(glyphRange foundation.Range, glyphBuffer *coregraphics.Glyph, props *GlyphProperty, charIndexBuffer *uint, bidiLevelBuffer *uint8) uint - GlyphIndexForPointInTextContainer(point foundation.Point, container ITextContainer) uint - EnsureGlyphsForCharacterRange(charRange foundation.Range) - RemoveTextContainerAtIndex(index uint) - BoundingRectForGlyphRangeInTextContainer(glyphRange foundation.Range, container ITextContainer) foundation.Rect + GlyphRangeForTextContainer(container ITextContainer) foundation.Range + TextContainerForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) TextContainer GlyphRangeForCharacterRangeActualCharacterRange(charRange foundation.Range, actualCharRange foundation.RangePointer) foundation.Range - EnumerateLineFragmentsForGlyphRangeUsingBlock(glyphRange foundation.Range, block func(rect foundation.Rect, usedRect foundation.Rect, textContainer TextContainer, glyphRange foundation.Range, stop *bool)) - FractionOfDistanceThroughGlyphForPointInTextContainer(point foundation.Point, container ITextContainer) float64 - TextContainerForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex uint, effectiveGlyphRange foundation.RangePointer, flag bool) TextContainer - EnsureGlyphsForGlyphRange(glyphRange foundation.Range) - CharacterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints(point foundation.Point, container ITextContainer, partialFraction *float64) uint - SetNotShownAttributeForGlyphAtIndex(flag bool, glyphIndex uint) - RangeOfNominallySpacedGlyphsContainingIndex(glyphIndex uint) foundation.Range - SetExtraLineFragmentRectUsedRectTextContainer(fragmentRect foundation.Rect, usedRect foundation.Rect, container ITextContainer) + SetDrawsOutsideLineFragmentForGlyphAtIndex(flag bool, glyphIndex uint) + BoundsRectForTextBlockGlyphRange(block ITextBlock, glyphRange foundation.Range) foundation.Rect + FillBackgroundRectArrayCountForCharacterRangeColor(rectArray *coregraphics.Rect, rectCount uint, charRange foundation.Range, color IColor) + ShowCGGlyphsPositionsCountFontTextMatrixAttributesInContext(glyphs *coregraphics.Glyph, positions *coregraphics.Point, glyphCount int, font IFont, textMatrix coregraphics.AffineTransform, attributes map[foundation.AttributedStringKey]objc.IObject, CGContext coregraphics.ContextRef) FirstUnlaidGlyphIndex() uint - SetGlyphsPropertiesCharacterIndexesFontForGlyphRange(glyphs *coregraphics.Glyph, props *GlyphProperty, charIndexes *uint, aFont IFont, glyphRange foundation.Range) - SetTextContainerForGlyphRange(container ITextContainer, glyphRange foundation.Range) + CGGlyphAtIndexIsValidIndex(glyphIndex uint, isValidIndex *bool) coregraphics.Glyph + EnumerateLineFragmentsForGlyphRangeUsingBlock(glyphRange foundation.Range, block func(rect coregraphics.Rect, usedRect coregraphics.Rect, textContainer TextContainer, glyphRange foundation.Range, stop *bool)) TextContainerChangedGeometry(container ITextContainer) - FillBackgroundRectArrayCountForCharacterRangeColor(rectArray *foundation.Rect, rectCount uint, charRange foundation.Range, color IColor) + ReplaceTextStorage(newTextStorage ITextStorage) + SetGlyphsPropertiesCharacterIndexesFontForGlyphRange(glyphs *coregraphics.Glyph, props *GlyphProperty, charIndexes *uint, aFont IFont, glyphRange foundation.Range) + EnumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock(glyphRange foundation.Range, selectedRange foundation.Range, textContainer ITextContainer, block func(rect coregraphics.Rect, stop *bool)) + SetLayoutRectForTextBlockGlyphRange(rect foundation.Rect, block ITextBlock, glyphRange foundation.Range) + ProcessEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(textStorage ITextStorage, editMask TextStorageEditActions, newCharRange foundation.Range, delta int, invalidatedCharRange foundation.Range) + UnderlineGlyphRangeUnderlineTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, underlineVal UnderlineStyle, lineRect coregraphics.Rect, lineGlyphRange foundation.Range, containerOrigin coregraphics.Point) FirstUnlaidCharacterIndex() uint - TypesetterBehavior() TypesetterBehavior - SetTypesetterBehavior(value TypesetterBehavior) - DefaultAttachmentScaling() ImageScaling - SetDefaultAttachmentScaling(value ImageScaling) - Typesetter() Typesetter - SetTypesetter(value ITypesetter) - FirstTextView() TextView - GlyphGenerator() GlyphGenerator - SetGlyphGenerator(value IGlyphGenerator) + DrawGlyphsForGlyphRangeAtPoint(glyphsToShow foundation.Range, origin coregraphics.Point) + SetLineFragmentRectForGlyphRangeUsedRect(fragmentRect coregraphics.Rect, glyphRange foundation.Range, usedRect coregraphics.Rect) + NotShownAttributeForGlyphAtIndex(glyphIndex uint) bool + StrikethroughGlyphRangeStrikethroughTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, strikethroughVal UnderlineStyle, lineRect coregraphics.Rect, lineGlyphRange foundation.Range, containerOrigin coregraphics.Point) + InvalidateGlyphsForCharacterRangeChangeInLengthActualCharacterRange(charRange foundation.Range, delta int, actualCharRange foundation.RangePointer) + EnsureGlyphsForCharacterRange(charRange foundation.Range) + GlyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer(bounds coregraphics.Rect, container ITextContainer) foundation.Range + RulerMarkersForTextViewParagraphStyleRuler(view ITextView, style IParagraphStyle, ruler IRulerView) []RulerMarker + SetAttachmentSizeForGlyphRange(attachmentSize coregraphics.Size, glyphRange foundation.Range) + DefaultLineHeightForFont(theFont IFont) float64 + EnsureLayoutForBoundingRectInTextContainer(bounds coregraphics.Rect, container ITextContainer) + PropertyForGlyphAtIndex(glyphIndex uint) GlyphProperty + CharacterRangeForGlyphRangeActualGlyphRange(glyphRange foundation.Range, actualGlyphRange foundation.RangePointer) foundation.Range + CharacterIndexForGlyphAtIndex(glyphIndex uint) uint + LayoutRectForTextBlockGlyphRange(block ITextBlock, glyphRange foundation.Range) foundation.Rect + LocationForGlyphAtIndex(glyphIndex uint) coregraphics.Point + GlyphRangeForBoundingRectInTextContainer(bounds coregraphics.Rect, container ITextContainer) foundation.Range + TemporaryAttributeAtCharacterIndexLongestEffectiveRangeInRange(attrName foundation.AttributedStringKey, location uint, range_ foundation.RangePointer, rangeLimit foundation.Range) objc.Object + GetFirstUnlaidCharacterIndexGlyphIndex(charIndex *uint, glyphIndex *uint) + RulerAccessoryViewForTextViewParagraphStyleRulerEnabled(view ITextView, style IParagraphStyle, ruler IRulerView, isEnabled bool) View + RangeOfNominallySpacedGlyphsContainingIndex(glyphIndex uint) foundation.Range + BoundingRectForGlyphRangeInTextContainer(glyphRange foundation.Range, container ITextContainer) coregraphics.Rect + FractionOfDistanceThroughGlyphForPointInTextContainer(point coregraphics.Point, container ITextContainer) float64 + RemoveTemporaryAttributeForCharacterRange(attrName foundation.AttributedStringKey, charRange foundation.Range) + DrawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, underlineVal UnderlineStyle, baselineOffset float64, lineRect coregraphics.Rect, lineGlyphRange foundation.Range, containerOrigin coregraphics.Point) + IsValidGlyphIndex(glyphIndex uint) bool + ShowsInvisibleCharacters() bool + SetShowsInvisibleCharacters(value bool) + ShowsControlCharacters() bool + SetShowsControlCharacters(value bool) + ExtraLineFragmentRect() coregraphics.Rect TextViewForBeginningOfSelection() TextView - BackgroundLayoutEnabled() bool - SetBackgroundLayoutEnabled(value bool) - NumberOfGlyphs() uint + HasNonContiguousLayout() bool UsesDefaultHyphenation() bool SetUsesDefaultHyphenation(value bool) - TextContainers() []TextContainer + NumberOfGlyphs() uint + Typesetter() Typesetter + SetTypesetter(value ITypesetter) + Delegate() LayoutManagerDelegateObject + SetDelegate(value PLayoutManagerDelegate) + SetDelegateObject(valueObject objc.IObject) AllowsNonContiguousLayout() bool SetAllowsNonContiguousLayout(value bool) + LimitsLayoutForSuspiciousContents() bool + SetLimitsLayoutForSuspiciousContents(value bool) + GlyphGenerator() GlyphGenerator + SetGlyphGenerator(value IGlyphGenerator) UsesFontLeading() bool SetUsesFontLeading(value bool) - Delegate() LayoutManagerDelegateObject - SetDelegate(value PLayoutManagerDelegate) - SetDelegateObject(valueObject objc.IObject) - ExtraLineFragmentTextContainer() TextContainer + TypesetterBehavior() TypesetterBehavior + SetTypesetterBehavior(value TypesetterBehavior) + TextContainers() []TextContainer + FirstTextView() TextView + BackgroundLayoutEnabled() bool + SetBackgroundLayoutEnabled(value bool) + ExtraLineFragmentUsedRect() coregraphics.Rect TextStorage() TextStorage SetTextStorage(value ITextStorage) - LimitsLayoutForSuspiciousContents() bool - SetLimitsLayoutForSuspiciousContents(value bool) - ShowsInvisibleCharacters() bool - SetShowsInvisibleCharacters(value bool) - ExtraLineFragmentUsedRect() foundation.Rect - ExtraLineFragmentRect() foundation.Rect - ShowsControlCharacters() bool - SetShowsControlCharacters(value bool) - HasNonContiguousLayout() bool + DefaultAttachmentScaling() ImageScaling + SetDefaultAttachmentScaling(value ImageScaling) + ExtraLineFragmentTextContainer() TextContainer } // An object that coordinates the layout and display of text characters. [Full Topic] @@ -179,64 +168,49 @@ func NewLayoutManager() LayoutManager { return LayoutManagerClass.New() } -// Returns the dictionary of temporary attributes for the specified character range. [Full Topic] +// Indicates whether the glyph draws outside its line fragment rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403033-temporaryattributesatcharacterin?language=objc -func (l_ LayoutManager) TemporaryAttributesAtCharacterIndexEffectiveRange(charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object { - rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](l_, objc.Sel("temporaryAttributesAtCharacterIndex:effectiveRange:"), charIndex, effectiveCharRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403003-drawsoutsidelinefragmentforglyph?language=objc +func (l_ LayoutManager) DrawsOutsideLineFragmentForGlyphAtIndex(glyphIndex uint) bool { + rv := objc.Call[bool](l_, objc.Sel("drawsOutsideLineFragmentForGlyphAtIndex:"), glyphIndex) return rv } -// Appends one or more temporary attributes to the attributes dictionary of the specified character range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403250-addtemporaryattributes?language=objc -func (l_ LayoutManager) AddTemporaryAttributesForCharacterRange(attrs map[foundation.AttributedStringKey]objc.IObject, charRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("addTemporaryAttributes:forCharacterRange:"), attrs, charRange) -} - -// Sets the bounding rectangle that encloses the specified text block and glyph range. [Full Topic] +// Sets the location for the first glyph in the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402991-setboundsrect?language=objc -func (l_ LayoutManager) SetBoundsRectForTextBlockGlyphRange(rect foundation.Rect, block ITextBlock, glyphRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("setBoundsRect:forTextBlock:glyphRange:"), rect, block, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402982-setlocation?language=objc +func (l_ LayoutManager) SetLocationForStartOfGlyphRange(location coregraphics.Point, glyphRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("setLocation:forStartOfGlyphRange:"), location, glyphRange) } -// Returns the temporary attributes for a character, and the maximum range they apply to. [Full Topic] +// Associates a text container with the specified range of glyphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403060-temporaryattributesatcharacterin?language=objc -func (l_ LayoutManager) TemporaryAttributesAtCharacterIndexLongestEffectiveRangeInRange(location uint, range_ foundation.RangePointer, rangeLimit foundation.Range) map[foundation.AttributedStringKey]objc.Object { - rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](l_, objc.Sel("temporaryAttributesAtCharacterIndex:longestEffectiveRange:inRange:"), location, range_, rangeLimit) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403241-settextcontainer?language=objc +func (l_ LayoutManager) SetTextContainerForGlyphRange(container ITextContainer, glyphRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("setTextContainer:forGlyphRange:"), container, glyphRange) } -// Returns the default line height for a line of text that uses a specified font. [Full Topic] +// Returns the index of the glyph at the specified location in a text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403007-defaultlineheightforfont?language=objc -func (l_ LayoutManager) DefaultLineHeightForFont(theFont IFont) float64 { - rv := objc.Call[float64](l_, objc.Sel("defaultLineHeightForFont:"), theFont) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403112-glyphindexforpoint?language=objc +func (l_ LayoutManager) GlyphIndexForPointInTextContainer(point coregraphics.Point, container ITextContainer) uint { + rv := objc.Call[uint](l_, objc.Sel("glyphIndexForPoint:inTextContainer:"), point, container) return rv } -// Returns the bounding rectangle for the specified text block and glyph. [Full Topic] +// Returns the usage rectangle for the line fragment and (optionally) returns the entire range of glyphs in that fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402956-boundsrectfortextblock?language=objc -func (l_ LayoutManager) BoundsRectForTextBlockAtIndexEffectiveRange(block ITextBlock, glyphIndex uint, effectiveGlyphRange foundation.RangePointer) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("boundsRectForTextBlock:atIndex:effectiveRange:"), block, glyphIndex, effectiveGlyphRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403193-linefragmentusedrectforglyphatin?language=objc +func (l_ LayoutManager) LineFragmentUsedRectForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("lineFragmentUsedRectForGlyphAtIndex:effectiveRange:"), glyphIndex, effectiveGlyphRange) return rv } -// Draws an attachment cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402965-showattachmentcell?language=objc -func (l_ LayoutManager) ShowAttachmentCellInRectCharacterIndex(cell ICell, rect foundation.Rect, attachmentIndex uint) { - objc.Call[objc.Void](l_, objc.Sel("showAttachmentCell:inRect:characterIndex:"), cell, rect, attachmentIndex) -} - -// Returns the bounding rectangle that encloses the specified text block and glyph range. [Full Topic] +// Returns the range of truncated glyphs for a line fragment that contains the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403138-boundsrectfortextblock?language=objc -func (l_ LayoutManager) BoundsRectForTextBlockGlyphRange(block ITextBlock, glyphRange foundation.Range) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("boundsRectForTextBlock:glyphRange:"), block, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403203-truncatedglyphrangeinlinefragmen?language=objc +func (l_ LayoutManager) TruncatedGlyphRangeInLineFragmentForGlyphAtIndex(glyphIndex uint) foundation.Range { + rv := objc.Call[foundation.Range](l_, objc.Sel("truncatedGlyphRangeInLineFragmentForGlyphAtIndex:"), glyphIndex) return rv } @@ -247,56 +221,33 @@ func (l_ LayoutManager) TextContainerChangedTextView(container ITextContainer) { objc.Call[objc.Void](l_, objc.Sel("textContainerChangedTextView:"), container) } -// Sets one or more temporary attributes for the specified character range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403037-settemporaryattributes?language=objc -func (l_ LayoutManager) SetTemporaryAttributesForCharacterRange(attrs map[foundation.AttributedStringKey]objc.IObject, charRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("setTemporaryAttributes:forCharacterRange:"), attrs, charRange) -} - -// Returns the default baseline offset that the layout manager's typesetter uses for the specified font. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403058-defaultbaselineoffsetforfont?language=objc -func (l_ LayoutManager) DefaultBaselineOffsetForFont(theFont IFont) float64 { - rv := objc.Call[float64](l_, objc.Sel("defaultBaselineOffsetForFont:"), theFont) - return rv -} - -// Removes a temporary attribute from the list of attributes for the specified character range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403087-removetemporaryattribute?language=objc -func (l_ LayoutManager) RemoveTemporaryAttributeForCharacterRange(attrName foundation.AttributedStringKey, charRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("removeTemporaryAttribute:forCharacterRange:"), attrName, charRange) -} - -// Returns the accessory view that the text system uses for its ruler. [Full Topic] +// Returns the dictionary of temporary attributes for the specified character range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403130-ruleraccessoryviewfortextview?language=objc -func (l_ LayoutManager) RulerAccessoryViewForTextViewParagraphStyleRulerEnabled(view ITextView, style IParagraphStyle, ruler IRulerView, isEnabled bool) View { - rv := objc.Call[View](l_, objc.Sel("rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:"), view, style, ruler, isEnabled) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403033-temporaryattributesatcharacterin?language=objc +func (l_ LayoutManager) TemporaryAttributesAtCharacterIndexEffectiveRange(charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object { + rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](l_, objc.Sel("temporaryAttributesAtCharacterIndex:effectiveRange:"), charIndex, effectiveCharRange) return rv } -// Replaces the layout manager's current text storage object with the specified object. [Full Topic] +// Sets the bounds and container for the extra line fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403227-replacetextstorage?language=objc -func (l_ LayoutManager) ReplaceTextStorage(newTextStorage ITextStorage) { - objc.Call[objc.Void](l_, objc.Sel("replaceTextStorage:"), newTextStorage) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403071-setextralinefragmentrect?language=objc +func (l_ LayoutManager) SetExtraLineFragmentRectUsedRectTextContainer(fragmentRect coregraphics.Rect, usedRect coregraphics.Rect, container ITextContainer) { + objc.Call[objc.Void](l_, objc.Sel("setExtraLineFragmentRect:usedRect:textContainer:"), fragmentRect, usedRect, container) } -// Sets the layout rectangle that encloses the specified text block and glyph range. [Full Topic] +// Appends one or more temporary attributes to the attributes dictionary of the specified character range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402929-setlayoutrect?language=objc -func (l_ LayoutManager) SetLayoutRectForTextBlockGlyphRange(rect foundation.Rect, block ITextBlock, glyphRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("setLayoutRect:forTextBlock:glyphRange:"), rect, block, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403250-addtemporaryattributes?language=objc +func (l_ LayoutManager) AddTemporaryAttributesForCharacterRange(attrs map[foundation.AttributedStringKey]objc.IObject, charRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("addTemporaryAttributes:forCharacterRange:"), attrs, charRange) } -// Returns the value for the temporary attribute of a character, and the range it applies to. [Full Topic] +// Sets the bounding rectangle that encloses the specified text block and glyph range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402969-temporaryattribute?language=objc -func (l_ LayoutManager) TemporaryAttributeAtCharacterIndexEffectiveRange(attrName foundation.AttributedStringKey, location uint, range_ foundation.RangePointer) objc.Object { - rv := objc.Call[objc.Object](l_, objc.Sel("temporaryAttribute:atCharacterIndex:effectiveRange:"), attrName, location, range_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402991-setboundsrect?language=objc +func (l_ LayoutManager) SetBoundsRectForTextBlockGlyphRange(rect foundation.Rect, block ITextBlock, glyphRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("setBoundsRect:forTextBlock:glyphRange:"), rect, block, glyphRange) } // Indicates whether the first responder in the specified window is a text view for the layout manager. [Full Topic] @@ -307,65 +258,11 @@ func (l_ LayoutManager) LayoutManagerOwnsFirstResponderInWindow(window IWindow) return rv } -// Returns an array of text ruler objects for the current selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403163-rulermarkersfortextview?language=objc -func (l_ LayoutManager) RulerMarkersForTextViewParagraphStyleRuler(view ITextView, style IParagraphStyle, ruler IRulerView) []RulerMarker { - rv := objc.Call[[]RulerMarker](l_, objc.Sel("rulerMarkersForTextView:paragraphStyle:ruler:"), view, style, ruler) - return rv -} - -// Returns the rectangle for the layout of the specified text block and glyph range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403201-layoutrectfortextblock?language=objc -func (l_ LayoutManager) LayoutRectForTextBlockGlyphRange(block ITextBlock, glyphRange foundation.Range) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("layoutRectForTextBlock:glyphRange:"), block, glyphRange) - return rv -} - -// Adds a temporary attribute to the characters in the specified range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403005-addtemporaryattribute?language=objc -func (l_ LayoutManager) AddTemporaryAttributeValueForCharacterRange(attrName foundation.AttributedStringKey, value objc.IObject, charRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("addTemporaryAttribute:value:forCharacterRange:"), attrName, value, charRange) -} - -// Returns the rectangle for the layout of the specified text block and glyph. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403102-layoutrectfortextblock?language=objc -func (l_ LayoutManager) LayoutRectForTextBlockAtIndexEffectiveRange(block ITextBlock, glyphIndex uint, effectiveGlyphRange foundation.RangePointer) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("layoutRectForTextBlock:atIndex:effectiveRange:"), block, glyphIndex, effectiveGlyphRange) - return rv -} - -// Returns the value for the temporary attribute of a character, and the maximum range it applies to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403223-temporaryattribute?language=objc -func (l_ LayoutManager) TemporaryAttributeAtCharacterIndexLongestEffectiveRangeInRange(attrName foundation.AttributedStringKey, location uint, range_ foundation.RangePointer, rangeLimit foundation.Range) objc.Object { - rv := objc.Call[objc.Object](l_, objc.Sel("temporaryAttribute:atCharacterIndex:longestEffectiveRange:inRange:"), attrName, location, range_, rangeLimit) - return rv -} - -// Appends the specified text container to the series of text containers where the layout manager arranges text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402946-addtextcontainer?language=objc -func (l_ LayoutManager) AddTextContainer(container ITextContainer) { - objc.Call[objc.Void](l_, objc.Sel("addTextContainer:"), container) -} - -// Indicates whether the specified glyph exceeds the bounds of the line fragment for its layout. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402964-setdrawsoutsidelinefragment?language=objc -func (l_ LayoutManager) SetDrawsOutsideLineFragmentForGlyphAtIndex(flag bool, glyphIndex uint) { - objc.Call[objc.Void](l_, objc.Sel("setDrawsOutsideLineFragment:forGlyphAtIndex:"), flag, glyphIndex) -} - -// Returns the text container that manages the layout for the specified glyph, causing layout to happen as necessary. [Full Topic] +// Forces the layout manager to generate glyphs for the specified glyph range if it hasn’t already. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403110-textcontainerforglyphatindex?language=objc -func (l_ LayoutManager) TextContainerForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) TextContainer { - rv := objc.Call[TextContainer](l_, objc.Sel("textContainerForGlyphAtIndex:effectiveRange:"), glyphIndex, effectiveGlyphRange) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403219-ensureglyphsforglyphrange?language=objc +func (l_ LayoutManager) EnsureGlyphsForGlyphRange(glyphRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("ensureGlyphsForGlyphRange:"), glyphRange) } // Forces the layout manager to perform layout for the specified character range if it hasn’t already. [Full Topic] @@ -375,20 +272,11 @@ func (l_ LayoutManager) EnsureLayoutForCharacterRange(charRange foundation.Range objc.Call[objc.Void](l_, objc.Sel("ensureLayoutForCharacterRange:"), charRange) } -// Returns the index of the first glyph of the character at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403001-glyphindexforcharacteratindex?language=objc -func (l_ LayoutManager) GlyphIndexForCharacterAtIndex(charIndex uint) uint { - rv := objc.Call[uint](l_, objc.Sel("glyphIndexForCharacterAtIndex:"), charIndex) - return rv -} - -// Returns the usage rectangle for the line fragment and (optionally) returns the entire range of glyphs in that fragment. [Full Topic] +// Sets the visibility of the glyph at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403035-linefragmentusedrectforglyphatin?language=objc -func (l_ LayoutManager) LineFragmentUsedRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex uint, effectiveGlyphRange foundation.RangePointer, flag bool) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("lineFragmentUsedRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:"), glyphIndex, effectiveGlyphRange, flag) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403078-setnotshownattribute?language=objc +func (l_ LayoutManager) SetNotShownAttributeForGlyphAtIndex(flag bool, glyphIndex uint) { + objc.Call[objc.Void](l_, objc.Sel("setNotShownAttribute:forGlyphAtIndex:"), flag, glyphIndex) } // Forces the layout manager to perform layout for the specified glyph range if it hasn’t already. [Full Topic] @@ -398,89 +286,73 @@ func (l_ LayoutManager) EnsureLayoutForGlyphRange(glyphRange foundation.Range) { objc.Call[objc.Void](l_, objc.Sel("ensureLayoutForGlyphRange:"), glyphRange) } -// Returns the rectangle for the line fragment where the glyph lies and (optionally), by reference, the entire range of glyphs in that fragment. [Full Topic] +// Returns the index of the first glyph of the character at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403140-linefragmentrectforglyphatindex?language=objc -func (l_ LayoutManager) LineFragmentRectForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("lineFragmentRectForGlyphAtIndex:effectiveRange:"), glyphIndex, effectiveGlyphRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403001-glyphindexforcharacteratindex?language=objc +func (l_ LayoutManager) GlyphIndexForCharacterAtIndex(charIndex uint) uint { + rv := objc.Call[uint](l_, objc.Sel("glyphIndexForCharacterAtIndex:"), charIndex) return rv } -// Forces the layout manager to perform layout for the specified text container if it hasn’t already. [Full Topic] +// Draws a strikethrough for the specified glyphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402967-ensurelayoutfortextcontainer?language=objc -func (l_ LayoutManager) EnsureLayoutForTextContainer(container ITextContainer) { - objc.Call[objc.Void](l_, objc.Sel("ensureLayoutForTextContainer:"), container) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403169-drawstrikethroughforglyphrange?language=objc +func (l_ LayoutManager) DrawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, strikethroughVal UnderlineStyle, baselineOffset float64, lineRect coregraphics.Rect, lineGlyphRange foundation.Range, containerOrigin coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("drawStrikethroughForGlyphRange:strikethroughType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:"), glyphRange, strikethroughVal, baselineOffset, lineRect, lineGlyphRange, containerOrigin) } -// Returns the smallest contiguous range for glyphs lying wholly or partially within the specified rectangle of the text container. [Full Topic] +// Returns the size of the attachment glyph at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403183-glyphrangeforboundingrectwithout?language=objc -func (l_ LayoutManager) GlyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer(bounds foundation.Rect, container ITextContainer) foundation.Range { - rv := objc.Call[foundation.Range](l_, objc.Sel("glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:"), bounds, container) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403099-attachmentsizeforglyphatindex?language=objc +func (l_ LayoutManager) AttachmentSizeForGlyphAtIndex(glyphIndex uint) coregraphics.Size { + rv := objc.Call[coregraphics.Size](l_, objc.Sel("attachmentSizeForGlyphAtIndex:"), glyphIndex) return rv } -// Indicates whether the glyph draws outside its line fragment rectangle. [Full Topic] +// Invalidates display for the specified character range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403003-drawsoutsidelinefragmentforglyph?language=objc -func (l_ LayoutManager) DrawsOutsideLineFragmentForGlyphAtIndex(glyphIndex uint) bool { - rv := objc.Call[bool](l_, objc.Sel("drawsOutsideLineFragmentForGlyphAtIndex:"), glyphIndex) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402924-invalidatedisplayforcharacterran?language=objc +func (l_ LayoutManager) InvalidateDisplayForCharacterRange(charRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("invalidateDisplayForCharacterRange:"), charRange) } -// Sets the size to use when drawing a glyph that represents an attachment. [Full Topic] +// Adds a temporary attribute to the characters in the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403047-setattachmentsize?language=objc -func (l_ LayoutManager) SetAttachmentSizeForGlyphRange(attachmentSize foundation.Size, glyphRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("setAttachmentSize:forGlyphRange:"), attachmentSize, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403005-addtemporaryattribute?language=objc +func (l_ LayoutManager) AddTemporaryAttributeValueForCharacterRange(attrName foundation.AttributedStringKey, value objc.IObject, charRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("addTemporaryAttribute:value:forCharacterRange:"), attrName, value, charRange) } -// Invalidates the layout information for the glyphs that map to the specified character range. [Full Topic] +// Sets one or more temporary attributes for the specified character range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403248-invalidatelayoutforcharacterrang?language=objc -func (l_ LayoutManager) InvalidateLayoutForCharacterRangeActualCharacterRange(charRange foundation.Range, actualCharRange foundation.RangePointer) { - objc.Call[objc.Void](l_, objc.Sel("invalidateLayoutForCharacterRange:actualCharacterRange:"), charRange, actualCharRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403037-settemporaryattributes?language=objc +func (l_ LayoutManager) SetTemporaryAttributesForCharacterRange(attrs map[foundation.AttributedStringKey]objc.IObject, charRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("setTemporaryAttributes:forCharacterRange:"), attrs, charRange) } // Returns the bounding rectangle for the glyphs in the specified text container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402980-usedrectfortextcontainer?language=objc -func (l_ LayoutManager) UsedRectForTextContainer(container ITextContainer) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("usedRectForTextContainer:"), container) +func (l_ LayoutManager) UsedRectForTextContainer(container ITextContainer) coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("usedRectForTextContainer:"), container) return rv } -// Returns the range of truncated glyphs for a line fragment that contains the specified index. [Full Topic] +// Removes the text container at the specified index and invalidates the layout as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403203-truncatedglyphrangeinlinefragmen?language=objc -func (l_ LayoutManager) TruncatedGlyphRangeInLineFragmentForGlyphAtIndex(glyphIndex uint) foundation.Range { - rv := objc.Call[foundation.Range](l_, objc.Sel("truncatedGlyphRangeInLineFragmentForGlyphAtIndex:"), glyphIndex) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403017-removetextcontaineratindex?language=objc +func (l_ LayoutManager) RemoveTextContainerAtIndex(index uint) { + objc.Call[objc.Void](l_, objc.Sel("removeTextContainerAtIndex:"), index) } -// Returns the line fragment rectangle that contains the glyph at the specified glyph index. [Full Topic] +// Returns the index of the character that lies beneath the specified point using the specified container's coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403116-linefragmentrectforglyphatindex?language=objc -func (l_ LayoutManager) LineFragmentRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex uint, effectiveGlyphRange foundation.RangePointer, flag bool) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("lineFragmentRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:"), glyphIndex, effectiveGlyphRange, flag) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403028-characterindexforpoint?language=objc +func (l_ LayoutManager) CharacterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints(point coregraphics.Point, container ITextContainer, partialFraction *float64) uint { + rv := objc.Call[uint](l_, objc.Sel("characterIndexForPoint:inTextContainer:fractionOfDistanceBetweenInsertionPoints:"), point, container, partialFraction) return rv } -// Sets the location for the first glyph in the specified range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402982-setlocation?language=objc -func (l_ LayoutManager) SetLocationForStartOfGlyphRange(location foundation.Point, glyphRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("setLocation:forStartOfGlyphRange:"), location, glyphRange) -} - -// Invalidates display for the specified character range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402924-invalidatedisplayforcharacterran?language=objc -func (l_ LayoutManager) InvalidateDisplayForCharacterRange(charRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("invalidateDisplayForCharacterRange:"), charRange) -} - // Inserts a text container at the specified index in the list of text containers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403010-inserttextcontainer?language=objc @@ -488,169 +360,174 @@ func (l_ LayoutManager) InsertTextContainerAtIndex(container ITextContainer, ind objc.Call[objc.Void](l_, objc.Sel("insertTextContainer:atIndex:"), container, index) } -// Draws the specified glyphs, which must lie completely within a single text container. [Full Topic] +// Appends the specified text container to the series of text containers where the layout manager arranges text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403158-drawglyphsforglyphrange?language=objc -func (l_ LayoutManager) DrawGlyphsForGlyphRangeAtPoint(glyphsToShow foundation.Range, origin foundation.Point) { - objc.Call[objc.Void](l_, objc.Sel("drawGlyphsForGlyphRange:atPoint:"), glyphsToShow, origin) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402946-addtextcontainer?language=objc +func (l_ LayoutManager) AddTextContainer(container ITextContainer) { + objc.Call[objc.Void](l_, objc.Sel("addTextContainer:"), container) } -// Indicates whether the glyph at the specified index has a visible representation. [Full Topic] +// Returns the default baseline offset that the layout manager's typesetter uses for the specified font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402931-notshownattributeforglyphatindex?language=objc -func (l_ LayoutManager) NotShownAttributeForGlyphAtIndex(glyphIndex uint) bool { - rv := objc.Call[bool](l_, objc.Sel("notShownAttributeForGlyphAtIndex:"), glyphIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403058-defaultbaselineoffsetforfont?language=objc +func (l_ LayoutManager) DefaultBaselineOffsetForFont(theFont IFont) float64 { + rv := objc.Call[float64](l_, objc.Sel("defaultBaselineOffsetForFont:"), theFont) return rv } -// Indicates whether the specified index refers to a valid glyph. [Full Topic] +// Returns the rectangle for the line fragment where the glyph lies and (optionally), by reference, the entire range of glyphs in that fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402950-isvalidglyphindex?language=objc -func (l_ LayoutManager) IsValidGlyphIndex(glyphIndex uint) bool { - rv := objc.Call[bool](l_, objc.Sel("isValidGlyphIndex:"), glyphIndex) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403140-linefragmentrectforglyphatindex?language=objc +func (l_ LayoutManager) LineFragmentRectForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("lineFragmentRectForGlyphAtIndex:effectiveRange:"), glyphIndex, effectiveGlyphRange) return rv } -// Returns the glyph at the specified index. [Full Topic] +// Draws background marks for the specified glyphs, which must lie completely within a single text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403039-cgglyphatindex?language=objc -func (l_ LayoutManager) CGGlyphAtIndex(glyphIndex uint) coregraphics.Glyph { - rv := objc.Call[coregraphics.Glyph](l_, objc.Sel("CGGlyphAtIndex:"), glyphIndex) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402949-drawbackgroundforglyphrange?language=objc +func (l_ LayoutManager) DrawBackgroundForGlyphRangeAtPoint(glyphsToShow foundation.Range, origin coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("drawBackgroundForGlyphRange:atPoint:"), glyphsToShow, origin) } -// Renders the glyphs at the specified positions, using the specified attributes. [Full Topic] +// Forces the layout manager to perform layout for the specified text container if it hasn’t already. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/3180379-showcgglyphs?language=objc -func (l_ LayoutManager) ShowCGGlyphsPositionsCountFontTextMatrixAttributesInContext(glyphs *coregraphics.Glyph, positions *coregraphics.Point, glyphCount int, font IFont, textMatrix coregraphics.AffineTransform, attributes map[foundation.AttributedStringKey]objc.IObject, CGContext coregraphics.ContextRef) { - objc.Call[objc.Void](l_, objc.Sel("showCGGlyphs:positions:count:font:textMatrix:attributes:inContext:"), glyphs, positions, glyphCount, font, textMatrix, attributes, CGContext) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402967-ensurelayoutfortextcontainer?language=objc +func (l_ LayoutManager) EnsureLayoutForTextContainer(container ITextContainer) { + objc.Call[objc.Void](l_, objc.Sel("ensureLayoutForTextContainer:"), container) } -// Returns the index in the text storage for the first character of the specified glyph. [Full Topic] +// Draws an attachment cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402944-characterindexforglyphatindex?language=objc -func (l_ LayoutManager) CharacterIndexForGlyphAtIndex(glyphIndex uint) uint { - rv := objc.Call[uint](l_, objc.Sel("characterIndexForGlyphAtIndex:"), glyphIndex) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402965-showattachmentcell?language=objc +func (l_ LayoutManager) ShowAttachmentCellInRectCharacterIndex(cell ICell, rect foundation.Rect, attachmentIndex uint) { + objc.Call[objc.Void](l_, objc.Sel("showAttachmentCell:inRect:characterIndex:"), cell, rect, attachmentIndex) } -// Returns the location for the specified glyph within its line fragment. [Full Topic] +// Invalidates a range of glyphs, requiring new layout information, and updates the appropriate regions of any text views that display those glyphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403239-locationforglyphatindex?language=objc -func (l_ LayoutManager) LocationForGlyphAtIndex(glyphIndex uint) foundation.Point { - rv := objc.Call[foundation.Point](l_, objc.Sel("locationForGlyphAtIndex:"), glyphIndex) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403118-invalidatedisplayforglyphrange?language=objc +func (l_ LayoutManager) InvalidateDisplayForGlyphRange(glyphRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("invalidateDisplayForGlyphRange:"), glyphRange) } -// Returns the usage rectangle for the line fragment and (optionally) returns the entire range of glyphs in that fragment. [Full Topic] +// Returns insertion points in bulk for a specified line fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403193-linefragmentusedrectforglyphatin?language=objc -func (l_ LayoutManager) LineFragmentUsedRectForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("lineFragmentUsedRectForGlyphAtIndex:effectiveRange:"), glyphIndex, effectiveGlyphRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403012-getlinefragmentinsertionpointsfo?language=objc +func (l_ LayoutManager) GetLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes(charIndex uint, aFlag bool, dFlag bool, positions *float64, charIndexes *uint) uint { + rv := objc.Call[uint](l_, objc.Sel("getLineFragmentInsertionPointsForCharacterAtIndex:alternatePositions:inDisplayOrder:positions:characterIndexes:"), charIndex, aFlag, dFlag, positions, charIndexes) return rv } -// Associates the line fragment bounds for the specified range of glyphs. [Full Topic] +// Returns the range of glyphs lying within the specified text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402935-setlinefragmentrect?language=objc -func (l_ LayoutManager) SetLineFragmentRectForGlyphRangeUsedRect(fragmentRect foundation.Rect, glyphRange foundation.Range, usedRect foundation.Rect) { - objc.Call[objc.Void](l_, objc.Sel("setLineFragmentRect:forGlyphRange:usedRect:"), fragmentRect, glyphRange, usedRect) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403041-glyphrangefortextcontainer?language=objc +func (l_ LayoutManager) GlyphRangeForTextContainer(container ITextContainer) foundation.Range { + rv := objc.Call[foundation.Range](l_, objc.Sel("glyphRangeForTextContainer:"), container) + return rv } -// Returns the range of characters that correspond to the glyphs in the specified glyph range. [Full Topic] +// Returns the text container that manages the layout for the specified glyph, causing layout to happen as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403225-characterrangeforglyphrange?language=objc -func (l_ LayoutManager) CharacterRangeForGlyphRangeActualGlyphRange(glyphRange foundation.Range, actualGlyphRange foundation.RangePointer) foundation.Range { - rv := objc.Call[foundation.Range](l_, objc.Sel("characterRangeForGlyphRange:actualGlyphRange:"), glyphRange, actualGlyphRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403110-textcontainerforglyphatindex?language=objc +func (l_ LayoutManager) TextContainerForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) TextContainer { + rv := objc.Call[TextContainer](l_, objc.Sel("textContainerForGlyphAtIndex:effectiveRange:"), glyphIndex, effectiveGlyphRange) return rv } -// Returns the range of glyphs lying within the specified text container. [Full Topic] +// Returns the range of glyphs that the specified range of characters generates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403041-glyphrangefortextcontainer?language=objc -func (l_ LayoutManager) GlyphRangeForTextContainer(container ITextContainer) foundation.Range { - rv := objc.Call[foundation.Range](l_, objc.Sel("glyphRangeForTextContainer:"), container) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402999-glyphrangeforcharacterrange?language=objc +func (l_ LayoutManager) GlyphRangeForCharacterRangeActualCharacterRange(charRange foundation.Range, actualCharRange foundation.RangePointer) foundation.Range { + rv := objc.Call[foundation.Range](l_, objc.Sel("glyphRangeForCharacterRange:actualCharacterRange:"), charRange, actualCharRange) return rv } -// Invalidates and adjusts the glyphs in the specified character range. [Full Topic] +// Indicates whether the specified glyph exceeds the bounds of the line fragment for its layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403171-invalidateglyphsforcharacterrang?language=objc -func (l_ LayoutManager) InvalidateGlyphsForCharacterRangeChangeInLengthActualCharacterRange(charRange foundation.Range, delta int, actualCharRange foundation.RangePointer) { - objc.Call[objc.Void](l_, objc.Sel("invalidateGlyphsForCharacterRange:changeInLength:actualCharacterRange:"), charRange, delta, actualCharRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402964-setdrawsoutsidelinefragment?language=objc +func (l_ LayoutManager) SetDrawsOutsideLineFragmentForGlyphAtIndex(flag bool, glyphIndex uint) { + objc.Call[objc.Void](l_, objc.Sel("setDrawsOutsideLineFragment:forGlyphAtIndex:"), flag, glyphIndex) +} + +// Returns the bounding rectangle that encloses the specified text block and glyph range. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403138-boundsrectfortextblock?language=objc +func (l_ LayoutManager) BoundsRectForTextBlockGlyphRange(block ITextBlock, glyphRange foundation.Range) foundation.Rect { + rv := objc.Call[foundation.Rect](l_, objc.Sel("boundsRectForTextBlock:glyphRange:"), block, glyphRange) + return rv } -// Enumerates enclosing rectangles for the specified glyph range in a text container. [Full Topic] +// Fills background rectangles with a color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403021-enumerateenclosingrectsforglyphr?language=objc -func (l_ LayoutManager) EnumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock(glyphRange foundation.Range, selectedRange foundation.Range, textContainer ITextContainer, block func(rect foundation.Rect, stop *bool)) { - objc.Call[objc.Void](l_, objc.Sel("enumerateEnclosingRectsForGlyphRange:withinSelectedGlyphRange:inTextContainer:usingBlock:"), glyphRange, selectedRange, textContainer, block) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403161-fillbackgroundrectarray?language=objc +func (l_ LayoutManager) FillBackgroundRectArrayCountForCharacterRangeColor(rectArray *coregraphics.Rect, rectCount uint, charRange foundation.Range, color IColor) { + objc.Call[objc.Void](l_, objc.Sel("fillBackgroundRectArray:count:forCharacterRange:color:"), rectArray, rectCount, charRange, color) } -// Returns the glyph property of the glyph at the specified index. [Full Topic] +// Renders the glyphs at the specified positions, using the specified attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403014-propertyforglyphatindex?language=objc -func (l_ LayoutManager) PropertyForGlyphAtIndex(glyphIndex uint) GlyphProperty { - rv := objc.Call[GlyphProperty](l_, objc.Sel("propertyForGlyphAtIndex:"), glyphIndex) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/3180379-showcgglyphs?language=objc +func (l_ LayoutManager) ShowCGGlyphsPositionsCountFontTextMatrixAttributesInContext(glyphs *coregraphics.Glyph, positions *coregraphics.Point, glyphCount int, font IFont, textMatrix coregraphics.AffineTransform, attributes map[foundation.AttributedStringKey]objc.IObject, CGContext coregraphics.ContextRef) { + objc.Call[objc.Void](l_, objc.Sel("showCGGlyphs:positions:count:font:textMatrix:attributes:inContext:"), glyphs, positions, glyphCount, font, textMatrix, attributes, CGContext) } -// Invalidates a range of glyphs, requiring new layout information, and updates the appropriate regions of any text views that display those glyphs. [Full Topic] +// Returns the index for the first glyph in the layout manager that isn’t in the layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403118-invalidatedisplayforglyphrange?language=objc -func (l_ LayoutManager) InvalidateDisplayForGlyphRange(glyphRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("invalidateDisplayForGlyphRange:"), glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403245-firstunlaidglyphindex?language=objc +func (l_ LayoutManager) FirstUnlaidGlyphIndex() uint { + rv := objc.Call[uint](l_, objc.Sel("firstUnlaidGlyphIndex")) + return rv } -// Returns the smallest contiguous range for glyphs lying wholly or partially within the specified rectangle of the text container. [Full Topic] +// Returns the glyph at the specified index along with information about whether the glyph index is valid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403053-glyphrangeforboundingrect?language=objc -func (l_ LayoutManager) GlyphRangeForBoundingRectInTextContainer(bounds foundation.Rect, container ITextContainer) foundation.Range { - rv := objc.Call[foundation.Range](l_, objc.Sel("glyphRangeForBoundingRect:inTextContainer:"), bounds, container) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403132-cgglyphatindex?language=objc +func (l_ LayoutManager) CGGlyphAtIndexIsValidIndex(glyphIndex uint, isValidIndex *bool) coregraphics.Glyph { + rv := objc.Call[coregraphics.Glyph](l_, objc.Sel("CGGlyphAtIndex:isValidIndex:"), glyphIndex, isValidIndex) return rv } -// Calculates and draws strikethrough for the specified glyphs. [Full Topic] +// Enumerates line fragments intersecting with the specified glyph range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403009-strikethroughglyphrange?language=objc -func (l_ LayoutManager) StrikethroughGlyphRangeStrikethroughTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, strikethroughVal UnderlineStyle, lineRect foundation.Rect, lineGlyphRange foundation.Range, containerOrigin foundation.Point) { - objc.Call[objc.Void](l_, objc.Sel("strikethroughGlyphRange:strikethroughType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:"), glyphRange, strikethroughVal, lineRect, lineGlyphRange, containerOrigin) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403160-enumeratelinefragmentsforglyphra?language=objc +func (l_ LayoutManager) EnumerateLineFragmentsForGlyphRangeUsingBlock(glyphRange foundation.Range, block func(rect coregraphics.Rect, usedRect coregraphics.Rect, textContainer TextContainer, glyphRange foundation.Range, stop *bool)) { + objc.Call[objc.Void](l_, objc.Sel("enumerateLineFragmentsForGlyphRange:usingBlock:"), glyphRange, block) } -// Forces the layout manager to perform layout for the specified area in the specified text container if it hasn’t already. [Full Topic] +// Invalidates the layout information, and possibly glyphs, for the specified text container and all subsequent text container objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402962-ensurelayoutforboundingrect?language=objc -func (l_ LayoutManager) EnsureLayoutForBoundingRectInTextContainer(bounds foundation.Rect, container ITextContainer) { - objc.Call[objc.Void](l_, objc.Sel("ensureLayoutForBoundingRect:inTextContainer:"), bounds, container) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403091-textcontainerchangedgeometry?language=objc +func (l_ LayoutManager) TextContainerChangedGeometry(container ITextContainer) { + objc.Call[objc.Void](l_, objc.Sel("textContainerChangedGeometry:"), container) } -// Calculates subranges to underline for the specified glyphs and draws the underlining as appropriate. [Full Topic] +// Replaces the layout manager's current text storage object with the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403114-underlineglyphrange?language=objc -func (l_ LayoutManager) UnderlineGlyphRangeUnderlineTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, underlineVal UnderlineStyle, lineRect foundation.Rect, lineGlyphRange foundation.Range, containerOrigin foundation.Point) { - objc.Call[objc.Void](l_, objc.Sel("underlineGlyphRange:underlineType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:"), glyphRange, underlineVal, lineRect, lineGlyphRange, containerOrigin) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403227-replacetextstorage?language=objc +func (l_ LayoutManager) ReplaceTextStorage(newTextStorage ITextStorage) { + objc.Call[objc.Void](l_, objc.Sel("replaceTextStorage:"), newTextStorage) } -// Returns insertion points in bulk for a specified line fragment. [Full Topic] +// Stores the initial glyphs and glyph properties for a character range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403012-getlinefragmentinsertionpointsfo?language=objc -func (l_ LayoutManager) GetLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes(charIndex uint, aFlag bool, dFlag bool, positions *float64, charIndexes *uint) uint { - rv := objc.Call[uint](l_, objc.Sel("getLineFragmentInsertionPointsForCharacterAtIndex:alternatePositions:inDisplayOrder:positions:characterIndexes:"), charIndex, aFlag, dFlag, positions, charIndexes) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403030-setglyphs?language=objc +func (l_ LayoutManager) SetGlyphsPropertiesCharacterIndexesFontForGlyphRange(glyphs *coregraphics.Glyph, props *GlyphProperty, charIndexes *uint, aFont IFont, glyphRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("setGlyphs:properties:characterIndexes:font:forGlyphRange:"), glyphs, props, charIndexes, aFont, glyphRange) } -// Draws underlining for the glyphs in a specified range. [Full Topic] +// Enumerates enclosing rectangles for the specified glyph range in a text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403079-drawunderlineforglyphrange?language=objc -func (l_ LayoutManager) DrawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, underlineVal UnderlineStyle, baselineOffset float64, lineRect foundation.Rect, lineGlyphRange foundation.Range, containerOrigin foundation.Point) { - objc.Call[objc.Void](l_, objc.Sel("drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:"), glyphRange, underlineVal, baselineOffset, lineRect, lineGlyphRange, containerOrigin) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403021-enumerateenclosingrectsforglyphr?language=objc +func (l_ LayoutManager) EnumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock(glyphRange foundation.Range, selectedRange foundation.Range, textContainer ITextContainer, block func(rect coregraphics.Rect, stop *bool)) { + objc.Call[objc.Void](l_, objc.Sel("enumerateEnclosingRectsForGlyphRange:withinSelectedGlyphRange:inTextContainer:usingBlock:"), glyphRange, selectedRange, textContainer, block) } -// Draws background marks for the specified glyphs, which must lie completely within a single text container. [Full Topic] +// Sets the layout rectangle that encloses the specified text block and glyph range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402949-drawbackgroundforglyphrange?language=objc -func (l_ LayoutManager) DrawBackgroundForGlyphRangeAtPoint(glyphsToShow foundation.Range, origin foundation.Point) { - objc.Call[objc.Void](l_, objc.Sel("drawBackgroundForGlyphRange:atPoint:"), glyphsToShow, origin) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402929-setlayoutrect?language=objc +func (l_ LayoutManager) SetLayoutRectForTextBlockGlyphRange(rect foundation.Rect, block ITextBlock, glyphRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("setLayoutRect:forTextBlock:glyphRange:"), rect, block, glyphRange) } // Notifies the layout manager when an edit action changes the contents of its text storage object. [Full Topic] @@ -660,58 +537,55 @@ func (l_ LayoutManager) ProcessEditingForTextStorageEditedRangeChangeInLengthInv objc.Call[objc.Void](l_, objc.Sel("processEditingForTextStorage:edited:range:changeInLength:invalidatedRange:"), textStorage, editMask, newCharRange, delta, invalidatedCharRange) } -// Returns the size of the attachment glyph at the specified index. [Full Topic] +// Calculates subranges to underline for the specified glyphs and draws the underlining as appropriate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403099-attachmentsizeforglyphatindex?language=objc -func (l_ LayoutManager) AttachmentSizeForGlyphAtIndex(glyphIndex uint) foundation.Size { - rv := objc.Call[foundation.Size](l_, objc.Sel("attachmentSizeForGlyphAtIndex:"), glyphIndex) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403114-underlineglyphrange?language=objc +func (l_ LayoutManager) UnderlineGlyphRangeUnderlineTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, underlineVal UnderlineStyle, lineRect coregraphics.Rect, lineGlyphRange foundation.Range, containerOrigin coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("underlineGlyphRange:underlineType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:"), glyphRange, underlineVal, lineRect, lineGlyphRange, containerOrigin) } -// Returns the glyph at the specified index along with information about whether the glyph index is valid. [Full Topic] +// Returns the index for the first character in the layout manager that isn’t in the layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403132-cgglyphatindex?language=objc -func (l_ LayoutManager) CGGlyphAtIndexIsValidIndex(glyphIndex uint, isValidIndex *bool) coregraphics.Glyph { - rv := objc.Call[coregraphics.Glyph](l_, objc.Sel("CGGlyphAtIndex:isValidIndex:"), glyphIndex, isValidIndex) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403067-firstunlaidcharacterindex?language=objc +func (l_ LayoutManager) FirstUnlaidCharacterIndex() uint { + rv := objc.Call[uint](l_, objc.Sel("firstUnlaidCharacterIndex")) return rv } -// Returns the indexes for the first character and glyph that have invalid layout information. [Full Topic] +// Draws the specified glyphs, which must lie completely within a single text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403187-getfirstunlaidcharacterindex?language=objc -func (l_ LayoutManager) GetFirstUnlaidCharacterIndexGlyphIndex(charIndex *uint, glyphIndex *uint) { - objc.Call[objc.Void](l_, objc.Sel("getFirstUnlaidCharacterIndex:glyphIndex:"), charIndex, glyphIndex) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403158-drawglyphsforglyphrange?language=objc +func (l_ LayoutManager) DrawGlyphsForGlyphRangeAtPoint(glyphsToShow foundation.Range, origin coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("drawGlyphsForGlyphRange:atPoint:"), glyphsToShow, origin) } -// Draws a strikethrough for the specified glyphs. [Full Topic] +// Associates the line fragment bounds for the specified range of glyphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403169-drawstrikethroughforglyphrange?language=objc -func (l_ LayoutManager) DrawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, strikethroughVal UnderlineStyle, baselineOffset float64, lineRect foundation.Rect, lineGlyphRange foundation.Range, containerOrigin foundation.Point) { - objc.Call[objc.Void](l_, objc.Sel("drawStrikethroughForGlyphRange:strikethroughType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:"), glyphRange, strikethroughVal, baselineOffset, lineRect, lineGlyphRange, containerOrigin) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402935-setlinefragmentrect?language=objc +func (l_ LayoutManager) SetLineFragmentRectForGlyphRangeUsedRect(fragmentRect coregraphics.Rect, glyphRange foundation.Range, usedRect coregraphics.Rect) { + objc.Call[objc.Void](l_, objc.Sel("setLineFragmentRect:forGlyphRange:usedRect:"), fragmentRect, glyphRange, usedRect) } -// Returns the index of the glyph at the specified point using the container's coordinate system. [Full Topic] +// Indicates whether the glyph at the specified index has a visible representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402933-glyphindexforpoint?language=objc -func (l_ LayoutManager) GlyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph(point foundation.Point, container ITextContainer, partialFraction *float64) uint { - rv := objc.Call[uint](l_, objc.Sel("glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:"), point, container, partialFraction) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402931-notshownattributeforglyphatindex?language=objc +func (l_ LayoutManager) NotShownAttributeForGlyphAtIndex(glyphIndex uint) bool { + rv := objc.Call[bool](l_, objc.Sel("notShownAttributeForGlyphAtIndex:"), glyphIndex) return rv } -// Fills a passed-in buffer with a sequence of glyphs. [Full Topic] +// Calculates and draws strikethrough for the specified glyphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403104-getglyphsinrange?language=objc -func (l_ LayoutManager) GetGlyphsInRangeGlyphsPropertiesCharacterIndexesBidiLevels(glyphRange foundation.Range, glyphBuffer *coregraphics.Glyph, props *GlyphProperty, charIndexBuffer *uint, bidiLevelBuffer *uint8) uint { - rv := objc.Call[uint](l_, objc.Sel("getGlyphsInRange:glyphs:properties:characterIndexes:bidiLevels:"), glyphRange, glyphBuffer, props, charIndexBuffer, bidiLevelBuffer) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403009-strikethroughglyphrange?language=objc +func (l_ LayoutManager) StrikethroughGlyphRangeStrikethroughTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, strikethroughVal UnderlineStyle, lineRect coregraphics.Rect, lineGlyphRange foundation.Range, containerOrigin coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("strikethroughGlyphRange:strikethroughType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:"), glyphRange, strikethroughVal, lineRect, lineGlyphRange, containerOrigin) } -// Returns the index of the glyph at the specified location in a text container. [Full Topic] +// Invalidates and adjusts the glyphs in the specified character range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403112-glyphindexforpoint?language=objc -func (l_ LayoutManager) GlyphIndexForPointInTextContainer(point foundation.Point, container ITextContainer) uint { - rv := objc.Call[uint](l_, objc.Sel("glyphIndexForPoint:inTextContainer:"), point, container) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403171-invalidateglyphsforcharacterrang?language=objc +func (l_ LayoutManager) InvalidateGlyphsForCharacterRangeChangeInLengthActualCharacterRange(charRange foundation.Range, delta int, actualCharRange foundation.RangePointer) { + objc.Call[objc.Void](l_, objc.Sel("invalidateGlyphsForCharacterRange:changeInLength:actualCharacterRange:"), charRange, delta, actualCharRange) } // Forces the layout manager to generate glyphs for the specified character range if it hasn’t already. [Full Topic] @@ -721,199 +595,197 @@ func (l_ LayoutManager) EnsureGlyphsForCharacterRange(charRange foundation.Range objc.Call[objc.Void](l_, objc.Sel("ensureGlyphsForCharacterRange:"), charRange) } -// Removes the text container at the specified index and invalidates the layout as necessary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403017-removetextcontaineratindex?language=objc -func (l_ LayoutManager) RemoveTextContainerAtIndex(index uint) { - objc.Call[objc.Void](l_, objc.Sel("removeTextContainerAtIndex:"), index) -} - -// Returns the bounding rectangle for the specified glyphs in a container. [Full Topic] +// Returns the smallest contiguous range for glyphs lying wholly or partially within the specified rectangle of the text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403255-boundingrectforglyphrange?language=objc -func (l_ LayoutManager) BoundingRectForGlyphRangeInTextContainer(glyphRange foundation.Range, container ITextContainer) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("boundingRectForGlyphRange:inTextContainer:"), glyphRange, container) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403183-glyphrangeforboundingrectwithout?language=objc +func (l_ LayoutManager) GlyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer(bounds coregraphics.Rect, container ITextContainer) foundation.Range { + rv := objc.Call[foundation.Range](l_, objc.Sel("glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:"), bounds, container) return rv } -// Returns the range of glyphs that the specified range of characters generates. [Full Topic] +// Returns an array of text ruler objects for the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402999-glyphrangeforcharacterrange?language=objc -func (l_ LayoutManager) GlyphRangeForCharacterRangeActualCharacterRange(charRange foundation.Range, actualCharRange foundation.RangePointer) foundation.Range { - rv := objc.Call[foundation.Range](l_, objc.Sel("glyphRangeForCharacterRange:actualCharacterRange:"), charRange, actualCharRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403163-rulermarkersfortextview?language=objc +func (l_ LayoutManager) RulerMarkersForTextViewParagraphStyleRuler(view ITextView, style IParagraphStyle, ruler IRulerView) []RulerMarker { + rv := objc.Call[[]RulerMarker](l_, objc.Sel("rulerMarkersForTextView:paragraphStyle:ruler:"), view, style, ruler) return rv } -// Enumerates line fragments intersecting with the specified glyph range. [Full Topic] +// Sets the size to use when drawing a glyph that represents an attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403160-enumeratelinefragmentsforglyphra?language=objc -func (l_ LayoutManager) EnumerateLineFragmentsForGlyphRangeUsingBlock(glyphRange foundation.Range, block func(rect foundation.Rect, usedRect foundation.Rect, textContainer TextContainer, glyphRange foundation.Range, stop *bool)) { - objc.Call[objc.Void](l_, objc.Sel("enumerateLineFragmentsForGlyphRange:usingBlock:"), glyphRange, block) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403047-setattachmentsize?language=objc +func (l_ LayoutManager) SetAttachmentSizeForGlyphRange(attachmentSize coregraphics.Size, glyphRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("setAttachmentSize:forGlyphRange:"), attachmentSize, glyphRange) } -// Returns the fraction of the distance between the glyph at the specified point and the next glyph. [Full Topic] +// Returns the default line height for a line of text that uses a specified font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403097-fractionofdistancethroughglyphfo?language=objc -func (l_ LayoutManager) FractionOfDistanceThroughGlyphForPointInTextContainer(point foundation.Point, container ITextContainer) float64 { - rv := objc.Call[float64](l_, objc.Sel("fractionOfDistanceThroughGlyphForPoint:inTextContainer:"), point, container) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403007-defaultlineheightforfont?language=objc +func (l_ LayoutManager) DefaultLineHeightForFont(theFont IFont) float64 { + rv := objc.Call[float64](l_, objc.Sel("defaultLineHeightForFont:"), theFont) return rv } -// Returns the text container that manages the layout for the specified glyph. [Full Topic] +// Forces the layout manager to perform layout for the specified area in the specified text container if it hasn’t already. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403055-textcontainerforglyphatindex?language=objc -func (l_ LayoutManager) TextContainerForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex uint, effectiveGlyphRange foundation.RangePointer, flag bool) TextContainer { - rv := objc.Call[TextContainer](l_, objc.Sel("textContainerForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:"), glyphIndex, effectiveGlyphRange, flag) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402962-ensurelayoutforboundingrect?language=objc +func (l_ LayoutManager) EnsureLayoutForBoundingRectInTextContainer(bounds coregraphics.Rect, container ITextContainer) { + objc.Call[objc.Void](l_, objc.Sel("ensureLayoutForBoundingRect:inTextContainer:"), bounds, container) } -// Forces the layout manager to generate glyphs for the specified glyph range if it hasn’t already. [Full Topic] +// Returns the glyph property of the glyph at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403219-ensureglyphsforglyphrange?language=objc -func (l_ LayoutManager) EnsureGlyphsForGlyphRange(glyphRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("ensureGlyphsForGlyphRange:"), glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403014-propertyforglyphatindex?language=objc +func (l_ LayoutManager) PropertyForGlyphAtIndex(glyphIndex uint) GlyphProperty { + rv := objc.Call[GlyphProperty](l_, objc.Sel("propertyForGlyphAtIndex:"), glyphIndex) + return rv } -// Returns the index of the character that lies beneath the specified point using the specified container's coordinate system. [Full Topic] +// Returns the range of characters that correspond to the glyphs in the specified glyph range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403028-characterindexforpoint?language=objc -func (l_ LayoutManager) CharacterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints(point foundation.Point, container ITextContainer, partialFraction *float64) uint { - rv := objc.Call[uint](l_, objc.Sel("characterIndexForPoint:inTextContainer:fractionOfDistanceBetweenInsertionPoints:"), point, container, partialFraction) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403225-characterrangeforglyphrange?language=objc +func (l_ LayoutManager) CharacterRangeForGlyphRangeActualGlyphRange(glyphRange foundation.Range, actualGlyphRange foundation.RangePointer) foundation.Range { + rv := objc.Call[foundation.Range](l_, objc.Sel("characterRangeForGlyphRange:actualGlyphRange:"), glyphRange, actualGlyphRange) return rv } -// Sets the visibility of the glyph at the specified index. [Full Topic] +// Returns the index in the text storage for the first character of the specified glyph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403078-setnotshownattribute?language=objc -func (l_ LayoutManager) SetNotShownAttributeForGlyphAtIndex(flag bool, glyphIndex uint) { - objc.Call[objc.Void](l_, objc.Sel("setNotShownAttribute:forGlyphAtIndex:"), flag, glyphIndex) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402944-characterindexforglyphatindex?language=objc +func (l_ LayoutManager) CharacterIndexForGlyphAtIndex(glyphIndex uint) uint { + rv := objc.Call[uint](l_, objc.Sel("characterIndexForGlyphAtIndex:"), glyphIndex) + return rv } -// Returns the range of displayable glyphs that surround the glyph at the specified index. [Full Topic] +// Returns the rectangle for the layout of the specified text block and glyph range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403152-rangeofnominallyspacedglyphscont?language=objc -func (l_ LayoutManager) RangeOfNominallySpacedGlyphsContainingIndex(glyphIndex uint) foundation.Range { - rv := objc.Call[foundation.Range](l_, objc.Sel("rangeOfNominallySpacedGlyphsContainingIndex:"), glyphIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403201-layoutrectfortextblock?language=objc +func (l_ LayoutManager) LayoutRectForTextBlockGlyphRange(block ITextBlock, glyphRange foundation.Range) foundation.Rect { + rv := objc.Call[foundation.Rect](l_, objc.Sel("layoutRectForTextBlock:glyphRange:"), block, glyphRange) return rv } -// Sets the bounds and container for the extra line fragment. [Full Topic] +// Returns the location for the specified glyph within its line fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403071-setextralinefragmentrect?language=objc -func (l_ LayoutManager) SetExtraLineFragmentRectUsedRectTextContainer(fragmentRect foundation.Rect, usedRect foundation.Rect, container ITextContainer) { - objc.Call[objc.Void](l_, objc.Sel("setExtraLineFragmentRect:usedRect:textContainer:"), fragmentRect, usedRect, container) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403239-locationforglyphatindex?language=objc +func (l_ LayoutManager) LocationForGlyphAtIndex(glyphIndex uint) coregraphics.Point { + rv := objc.Call[coregraphics.Point](l_, objc.Sel("locationForGlyphAtIndex:"), glyphIndex) + return rv } -// Returns the index for the first glyph in the layout manager that isn’t in the layout. [Full Topic] +// Returns the smallest contiguous range for glyphs lying wholly or partially within the specified rectangle of the text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403245-firstunlaidglyphindex?language=objc -func (l_ LayoutManager) FirstUnlaidGlyphIndex() uint { - rv := objc.Call[uint](l_, objc.Sel("firstUnlaidGlyphIndex")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403053-glyphrangeforboundingrect?language=objc +func (l_ LayoutManager) GlyphRangeForBoundingRectInTextContainer(bounds coregraphics.Rect, container ITextContainer) foundation.Range { + rv := objc.Call[foundation.Range](l_, objc.Sel("glyphRangeForBoundingRect:inTextContainer:"), bounds, container) return rv } -// Stores the initial glyphs and glyph properties for a character range. [Full Topic] +// Returns the value for the temporary attribute of a character, and the maximum range it applies to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403030-setglyphs?language=objc -func (l_ LayoutManager) SetGlyphsPropertiesCharacterIndexesFontForGlyphRange(glyphs *coregraphics.Glyph, props *GlyphProperty, charIndexes *uint, aFont IFont, glyphRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("setGlyphs:properties:characterIndexes:font:forGlyphRange:"), glyphs, props, charIndexes, aFont, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403223-temporaryattribute?language=objc +func (l_ LayoutManager) TemporaryAttributeAtCharacterIndexLongestEffectiveRangeInRange(attrName foundation.AttributedStringKey, location uint, range_ foundation.RangePointer, rangeLimit foundation.Range) objc.Object { + rv := objc.Call[objc.Object](l_, objc.Sel("temporaryAttribute:atCharacterIndex:longestEffectiveRange:inRange:"), attrName, location, range_, rangeLimit) + return rv } -// Associates a text container with the specified range of glyphs. [Full Topic] +// Returns the indexes for the first character and glyph that have invalid layout information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403241-settextcontainer?language=objc -func (l_ LayoutManager) SetTextContainerForGlyphRange(container ITextContainer, glyphRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("setTextContainer:forGlyphRange:"), container, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403187-getfirstunlaidcharacterindex?language=objc +func (l_ LayoutManager) GetFirstUnlaidCharacterIndexGlyphIndex(charIndex *uint, glyphIndex *uint) { + objc.Call[objc.Void](l_, objc.Sel("getFirstUnlaidCharacterIndex:glyphIndex:"), charIndex, glyphIndex) } -// Invalidates the layout information, and possibly glyphs, for the specified text container and all subsequent text container objects. [Full Topic] +// Returns the accessory view that the text system uses for its ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403091-textcontainerchangedgeometry?language=objc -func (l_ LayoutManager) TextContainerChangedGeometry(container ITextContainer) { - objc.Call[objc.Void](l_, objc.Sel("textContainerChangedGeometry:"), container) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403130-ruleraccessoryviewfortextview?language=objc +func (l_ LayoutManager) RulerAccessoryViewForTextViewParagraphStyleRulerEnabled(view ITextView, style IParagraphStyle, ruler IRulerView, isEnabled bool) View { + rv := objc.Call[View](l_, objc.Sel("rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:"), view, style, ruler, isEnabled) + return rv } -// Fills background rectangles with a color. [Full Topic] +// Returns the range of displayable glyphs that surround the glyph at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403161-fillbackgroundrectarray?language=objc -func (l_ LayoutManager) FillBackgroundRectArrayCountForCharacterRangeColor(rectArray *foundation.Rect, rectCount uint, charRange foundation.Range, color IColor) { - objc.Call[objc.Void](l_, objc.Sel("fillBackgroundRectArray:count:forCharacterRange:color:"), rectArray, rectCount, charRange, color) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403152-rangeofnominallyspacedglyphscont?language=objc +func (l_ LayoutManager) RangeOfNominallySpacedGlyphsContainingIndex(glyphIndex uint) foundation.Range { + rv := objc.Call[foundation.Range](l_, objc.Sel("rangeOfNominallySpacedGlyphsContainingIndex:"), glyphIndex) + return rv } -// Returns the index for the first character in the layout manager that isn’t in the layout. [Full Topic] +// Returns the bounding rectangle for the specified glyphs in a container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403067-firstunlaidcharacterindex?language=objc -func (l_ LayoutManager) FirstUnlaidCharacterIndex() uint { - rv := objc.Call[uint](l_, objc.Sel("firstUnlaidCharacterIndex")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403255-boundingrectforglyphrange?language=objc +func (l_ LayoutManager) BoundingRectForGlyphRangeInTextContainer(glyphRange foundation.Range, container ITextContainer) coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("boundingRectForGlyphRange:inTextContainer:"), glyphRange, container) return rv } -// The default typesetter behavior. [Full Topic] +// Returns the fraction of the distance between the glyph at the specified point and the next glyph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403199-typesetterbehavior?language=objc -func (l_ LayoutManager) TypesetterBehavior() TypesetterBehavior { - rv := objc.Call[TypesetterBehavior](l_, objc.Sel("typesetterBehavior")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403097-fractionofdistancethroughglyphfo?language=objc +func (l_ LayoutManager) FractionOfDistanceThroughGlyphForPointInTextContainer(point coregraphics.Point, container ITextContainer) float64 { + rv := objc.Call[float64](l_, objc.Sel("fractionOfDistanceThroughGlyphForPoint:inTextContainer:"), point, container) return rv } -// The default typesetter behavior. [Full Topic] +// Removes a temporary attribute from the list of attributes for the specified character range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403199-typesetterbehavior?language=objc -func (l_ LayoutManager) SetTypesetterBehavior(value TypesetterBehavior) { - objc.Call[objc.Void](l_, objc.Sel("setTypesetterBehavior:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403087-removetemporaryattribute?language=objc +func (l_ LayoutManager) RemoveTemporaryAttributeForCharacterRange(attrName foundation.AttributedStringKey, charRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("removeTemporaryAttribute:forCharacterRange:"), attrName, charRange) } -// The default amount of scaling to apply when an attachment image is too large to fit in a text container. [Full Topic] +// Draws underlining for the glyphs in a specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403045-defaultattachmentscaling?language=objc -func (l_ LayoutManager) DefaultAttachmentScaling() ImageScaling { - rv := objc.Call[ImageScaling](l_, objc.Sel("defaultAttachmentScaling")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403079-drawunderlineforglyphrange?language=objc +func (l_ LayoutManager) DrawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange foundation.Range, underlineVal UnderlineStyle, baselineOffset float64, lineRect coregraphics.Rect, lineGlyphRange foundation.Range, containerOrigin coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:"), glyphRange, underlineVal, baselineOffset, lineRect, lineGlyphRange, containerOrigin) } -// The default amount of scaling to apply when an attachment image is too large to fit in a text container. [Full Topic] +// Indicates whether the specified index refers to a valid glyph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403045-defaultattachmentscaling?language=objc -func (l_ LayoutManager) SetDefaultAttachmentScaling(value ImageScaling) { - objc.Call[objc.Void](l_, objc.Sel("setDefaultAttachmentScaling:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402950-isvalidglyphindex?language=objc +func (l_ LayoutManager) IsValidGlyphIndex(glyphIndex uint) bool { + rv := objc.Call[bool](l_, objc.Sel("isValidGlyphIndex:"), glyphIndex) + return rv } -// The current typesetter. [Full Topic] +// A Boolean value that indicates whether to substitute visible glyphs for whitespace and other typically invisible characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403205-typesetter?language=objc -func (l_ LayoutManager) Typesetter() Typesetter { - rv := objc.Call[Typesetter](l_, objc.Sel("typesetter")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403254-showsinvisiblecharacters?language=objc +func (l_ LayoutManager) ShowsInvisibleCharacters() bool { + rv := objc.Call[bool](l_, objc.Sel("showsInvisibleCharacters")) return rv } -// The current typesetter. [Full Topic] +// A Boolean value that indicates whether to substitute visible glyphs for whitespace and other typically invisible characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403205-typesetter?language=objc -func (l_ LayoutManager) SetTypesetter(value ITypesetter) { - objc.Call[objc.Void](l_, objc.Sel("setTypesetter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403254-showsinvisiblecharacters?language=objc +func (l_ LayoutManager) SetShowsInvisibleCharacters(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setShowsInvisibleCharacters:"), value) } -// The first text view in the layout manager’s series of text views. [Full Topic] +// A Boolean value that indicates whether the layout manager substitutes visible glyphs for control characters in the layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402995-firsttextview?language=objc -func (l_ LayoutManager) FirstTextView() TextView { - rv := objc.Call[TextView](l_, objc.Sel("firstTextView")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402912-showscontrolcharacters?language=objc +func (l_ LayoutManager) ShowsControlCharacters() bool { + rv := objc.Call[bool](l_, objc.Sel("showsControlCharacters")) return rv } -// The glyph generator that the layout manager uses. [Full Topic] +// A Boolean value that indicates whether the layout manager substitutes visible glyphs for control characters in the layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403069-glyphgenerator?language=objc -func (l_ LayoutManager) GlyphGenerator() GlyphGenerator { - rv := objc.Call[GlyphGenerator](l_, objc.Sel("glyphGenerator")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402912-showscontrolcharacters?language=objc +func (l_ LayoutManager) SetShowsControlCharacters(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setShowsControlCharacters:"), value) } -// The glyph generator that the layout manager uses. [Full Topic] +// The rectangle for the extra line fragment at the end of a document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403069-glyphgenerator?language=objc -func (l_ LayoutManager) SetGlyphGenerator(value IGlyphGenerator) { - objc.Call[objc.Void](l_, objc.Sel("setGlyphGenerator:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403175-extralinefragmentrect?language=objc +func (l_ LayoutManager) ExtraLineFragmentRect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("extraLineFragmentRect")) + return rv } // The text view that contains the first glyph in the selection. [Full Topic] @@ -924,26 +796,11 @@ func (l_ LayoutManager) TextViewForBeginningOfSelection() TextView { return rv } -// A Boolean value that indicates whether the layout manager generates glyphs and lays them out when the app's run loop is idle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402952-backgroundlayoutenabled?language=objc -func (l_ LayoutManager) BackgroundLayoutEnabled() bool { - rv := objc.Call[bool](l_, objc.Sel("backgroundLayoutEnabled")) - return rv -} - -// A Boolean value that indicates whether the layout manager generates glyphs and lays them out when the app's run loop is idle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402952-backgroundlayoutenabled?language=objc -func (l_ LayoutManager) SetBackgroundLayoutEnabled(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setBackgroundLayoutEnabled:"), value) -} - -// The number of glyphs in the layout manager. [Full Topic] +// A Boolean value that indicates whether the layout manager currently has any areas of noncontiguous layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402937-numberofglyphs?language=objc -func (l_ LayoutManager) NumberOfGlyphs() uint { - rv := objc.Call[uint](l_, objc.Sel("numberOfGlyphs")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403207-hasnoncontiguouslayout?language=objc +func (l_ LayoutManager) HasNonContiguousLayout() bool { + rv := objc.Call[bool](l_, objc.Sel("hasNonContiguousLayout")) return rv } @@ -962,42 +819,27 @@ func (l_ LayoutManager) SetUsesDefaultHyphenation(value bool) { objc.Call[objc.Void](l_, objc.Sel("setUsesDefaultHyphenation:"), value) } -// The current text containers of the layout manager. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403144-textcontainers?language=objc -func (l_ LayoutManager) TextContainers() []TextContainer { - rv := objc.Call[[]TextContainer](l_, objc.Sel("textContainers")) - return rv -} - -// A Boolean value that indicates whether the layout manager allows noncontiguous layout. [Full Topic] +// The number of glyphs in the layout manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403197-allowsnoncontiguouslayout?language=objc -func (l_ LayoutManager) AllowsNonContiguousLayout() bool { - rv := objc.Call[bool](l_, objc.Sel("allowsNonContiguousLayout")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402937-numberofglyphs?language=objc +func (l_ LayoutManager) NumberOfGlyphs() uint { + rv := objc.Call[uint](l_, objc.Sel("numberOfGlyphs")) return rv } -// A Boolean value that indicates whether the layout manager allows noncontiguous layout. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403197-allowsnoncontiguouslayout?language=objc -func (l_ LayoutManager) SetAllowsNonContiguousLayout(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setAllowsNonContiguousLayout:"), value) -} - -// A Boolean value that indicates whether the layout manager uses the leading of the font. [Full Topic] +// The current typesetter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403156-usesfontleading?language=objc -func (l_ LayoutManager) UsesFontLeading() bool { - rv := objc.Call[bool](l_, objc.Sel("usesFontLeading")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403205-typesetter?language=objc +func (l_ LayoutManager) Typesetter() Typesetter { + rv := objc.Call[Typesetter](l_, objc.Sel("typesetter")) return rv } -// A Boolean value that indicates whether the layout manager uses the leading of the font. [Full Topic] +// The current typesetter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403156-usesfontleading?language=objc -func (l_ LayoutManager) SetUsesFontLeading(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setUsesFontLeading:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403205-typesetter?language=objc +func (l_ LayoutManager) SetTypesetter(value ITypesetter) { + objc.Call[objc.Void](l_, objc.Sel("setTypesetter:"), value) } // The layout manager’s delegate. [Full Topic] @@ -1024,27 +866,19 @@ func (l_ LayoutManager) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), valueObject) } -// The text container for the extra line fragment rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403165-extralinefragmenttextcontainer?language=objc -func (l_ LayoutManager) ExtraLineFragmentTextContainer() TextContainer { - rv := objc.Call[TextContainer](l_, objc.Sel("extraLineFragmentTextContainer")) - return rv -} - -// The text storage object that contains the content to lay out. [Full Topic] +// A Boolean value that indicates whether the layout manager allows noncontiguous layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403015-textstorage?language=objc -func (l_ LayoutManager) TextStorage() TextStorage { - rv := objc.Call[TextStorage](l_, objc.Sel("textStorage")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403197-allowsnoncontiguouslayout?language=objc +func (l_ LayoutManager) AllowsNonContiguousLayout() bool { + rv := objc.Call[bool](l_, objc.Sel("allowsNonContiguousLayout")) return rv } -// The text storage object that contains the content to lay out. [Full Topic] +// A Boolean value that indicates whether the layout manager allows noncontiguous layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403015-textstorage?language=objc -func (l_ LayoutManager) SetTextStorage(value ITextStorage) { - objc.Call[objc.Void](l_, objc.Sel("setTextStorage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403197-allowsnoncontiguouslayout?language=objc +func (l_ LayoutManager) SetAllowsNonContiguousLayout(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setAllowsNonContiguousLayout:"), value) } // A Boolean value that indicates whether the layout manager avoids laying out unusually long or suspicious input. [Full Topic] @@ -1062,56 +896,124 @@ func (l_ LayoutManager) SetLimitsLayoutForSuspiciousContents(value bool) { objc.Call[objc.Void](l_, objc.Sel("setLimitsLayoutForSuspiciousContents:"), value) } -// A Boolean value that indicates whether to substitute visible glyphs for whitespace and other typically invisible characters. [Full Topic] +// The glyph generator that the layout manager uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403254-showsinvisiblecharacters?language=objc -func (l_ LayoutManager) ShowsInvisibleCharacters() bool { - rv := objc.Call[bool](l_, objc.Sel("showsInvisibleCharacters")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403069-glyphgenerator?language=objc +func (l_ LayoutManager) GlyphGenerator() GlyphGenerator { + rv := objc.Call[GlyphGenerator](l_, objc.Sel("glyphGenerator")) return rv } -// A Boolean value that indicates whether to substitute visible glyphs for whitespace and other typically invisible characters. [Full Topic] +// The glyph generator that the layout manager uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403254-showsinvisiblecharacters?language=objc -func (l_ LayoutManager) SetShowsInvisibleCharacters(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setShowsInvisibleCharacters:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403069-glyphgenerator?language=objc +func (l_ LayoutManager) SetGlyphGenerator(value IGlyphGenerator) { + objc.Call[objc.Void](l_, objc.Sel("setGlyphGenerator:"), value) +} + +// A Boolean value that indicates whether the layout manager uses the leading of the font. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403156-usesfontleading?language=objc +func (l_ LayoutManager) UsesFontLeading() bool { + rv := objc.Call[bool](l_, objc.Sel("usesFontLeading")) + return rv +} + +// A Boolean value that indicates whether the layout manager uses the leading of the font. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403156-usesfontleading?language=objc +func (l_ LayoutManager) SetUsesFontLeading(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setUsesFontLeading:"), value) +} + +// The default typesetter behavior. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403199-typesetterbehavior?language=objc +func (l_ LayoutManager) TypesetterBehavior() TypesetterBehavior { + rv := objc.Call[TypesetterBehavior](l_, objc.Sel("typesetterBehavior")) + return rv +} + +// The default typesetter behavior. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403199-typesetterbehavior?language=objc +func (l_ LayoutManager) SetTypesetterBehavior(value TypesetterBehavior) { + objc.Call[objc.Void](l_, objc.Sel("setTypesetterBehavior:"), value) +} + +// The current text containers of the layout manager. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403144-textcontainers?language=objc +func (l_ LayoutManager) TextContainers() []TextContainer { + rv := objc.Call[[]TextContainer](l_, objc.Sel("textContainers")) + return rv +} + +// The first text view in the layout manager’s series of text views. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402995-firsttextview?language=objc +func (l_ LayoutManager) FirstTextView() TextView { + rv := objc.Call[TextView](l_, objc.Sel("firstTextView")) + return rv +} + +// A Boolean value that indicates whether the layout manager generates glyphs and lays them out when the app's run loop is idle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402952-backgroundlayoutenabled?language=objc +func (l_ LayoutManager) BackgroundLayoutEnabled() bool { + rv := objc.Call[bool](l_, objc.Sel("backgroundLayoutEnabled")) + return rv +} + +// A Boolean value that indicates whether the layout manager generates glyphs and lays them out when the app's run loop is idle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1402952-backgroundlayoutenabled?language=objc +func (l_ LayoutManager) SetBackgroundLayoutEnabled(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setBackgroundLayoutEnabled:"), value) } // The rectangle that encloses the insertion point in the extra line fragment rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402988-extralinefragmentusedrect?language=objc -func (l_ LayoutManager) ExtraLineFragmentUsedRect() foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("extraLineFragmentUsedRect")) +func (l_ LayoutManager) ExtraLineFragmentUsedRect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("extraLineFragmentUsedRect")) return rv } -// The rectangle for the extra line fragment at the end of a document. [Full Topic] +// The text storage object that contains the content to lay out. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403175-extralinefragmentrect?language=objc -func (l_ LayoutManager) ExtraLineFragmentRect() foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("extraLineFragmentRect")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403015-textstorage?language=objc +func (l_ LayoutManager) TextStorage() TextStorage { + rv := objc.Call[TextStorage](l_, objc.Sel("textStorage")) return rv } -// A Boolean value that indicates whether the layout manager substitutes visible glyphs for control characters in the layout. [Full Topic] +// The text storage object that contains the content to lay out. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402912-showscontrolcharacters?language=objc -func (l_ LayoutManager) ShowsControlCharacters() bool { - rv := objc.Call[bool](l_, objc.Sel("showsControlCharacters")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403015-textstorage?language=objc +func (l_ LayoutManager) SetTextStorage(value ITextStorage) { + objc.Call[objc.Void](l_, objc.Sel("setTextStorage:"), value) +} + +// The default amount of scaling to apply when an attachment image is too large to fit in a text container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403045-defaultattachmentscaling?language=objc +func (l_ LayoutManager) DefaultAttachmentScaling() ImageScaling { + rv := objc.Call[ImageScaling](l_, objc.Sel("defaultAttachmentScaling")) return rv } -// A Boolean value that indicates whether the layout manager substitutes visible glyphs for control characters in the layout. [Full Topic] +// The default amount of scaling to apply when an attachment image is too large to fit in a text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402912-showscontrolcharacters?language=objc -func (l_ LayoutManager) SetShowsControlCharacters(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setShowsControlCharacters:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanager/1403045-defaultattachmentscaling?language=objc +func (l_ LayoutManager) SetDefaultAttachmentScaling(value ImageScaling) { + objc.Call[objc.Void](l_, objc.Sel("setDefaultAttachmentScaling:"), value) } -// A Boolean value that indicates whether the layout manager currently has any areas of noncontiguous layout. [Full Topic] +// The text container for the extra line fragment rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403207-hasnoncontiguouslayout?language=objc -func (l_ LayoutManager) HasNonContiguousLayout() bool { - rv := objc.Call[bool](l_, objc.Sel("hasNonContiguousLayout")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1403165-extralinefragmenttextcontainer?language=objc +func (l_ LayoutManager) ExtraLineFragmentTextContainer() TextContainer { + rv := objc.Call[TextContainer](l_, objc.Sel("extraLineFragmentTextContainer")) return rv } diff --git a/macos/appkit/layout_manager_delegate.gen.go b/macos/appkit/layout_manager_delegate.gen.go index 1fa292db..bcac129e 100644 --- a/macos/appkit/layout_manager_delegate.gen.go +++ b/macos/appkit/layout_manager_delegate.gen.go @@ -3,7 +3,6 @@ package appkit import ( - "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -12,229 +11,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate?language=objc type PLayoutManagerDelegate interface { - // optional - LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object - HasLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange() bool - - // optional - LayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 - HasLayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect() bool - - // optional - LayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex(layoutManager LayoutManager, charIndex uint) bool - HasLayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex() bool - - // optional - LayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange(layoutManager LayoutManager, glyphs *coregraphics.Glyph, props *GlyphProperty, charIndexes *uint, aFont Font, glyphRange foundation.Range) uint - HasLayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange() bool - - // optional - LayoutManagerDidCompleteLayoutForTextContainerAtEnd(layoutManager LayoutManager, textContainer TextContainer, layoutFinishedFlag bool) - HasLayoutManagerDidCompleteLayoutForTextContainerAtEnd() bool - - // optional - LayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 - HasLayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect() bool - - // optional - LayoutManagerShouldUseActionForControlCharacterAtIndex(layoutManager LayoutManager, action ControlCharacterAction, charIndex uint) ControlCharacterAction - HasLayoutManagerShouldUseActionForControlCharacterAtIndex() bool - - // optional - LayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 - HasLayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect() bool - - // optional - LayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex(layoutManager LayoutManager, charIndex uint) bool - HasLayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex() bool - // optional LayoutManagerDidInvalidateLayout(sender LayoutManager) HasLayoutManagerDidInvalidateLayout() bool // optional - LayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(layoutManager LayoutManager, glyphIndex uint, textContainer TextContainer, proposedRect foundation.Rect, glyphPosition foundation.Point, charIndex uint) foundation.Rect - HasLayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex() bool - - // optional - LayoutManagerTextContainerDidChangeGeometryFromSize(layoutManager LayoutManager, textContainer TextContainer, oldSize foundation.Size) - HasLayoutManagerTextContainerDidChangeGeometryFromSize() bool - - // optional - LayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange(layoutManager LayoutManager, lineFragmentRect *foundation.Rect, lineFragmentUsedRect *foundation.Rect, baselineOffset *float64, textContainer TextContainer, glyphRange foundation.Range) bool - HasLayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange() bool + LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object + HasLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange() bool } // A delegate implementation builder for the [PLayoutManagerDelegate] protocol. type LayoutManagerDelegate struct { - _LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange func(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object - _LayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect func(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 - _LayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex func(layoutManager LayoutManager, charIndex uint) bool - _LayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange func(layoutManager LayoutManager, glyphs *coregraphics.Glyph, props *GlyphProperty, charIndexes *uint, aFont Font, glyphRange foundation.Range) uint - _LayoutManagerDidCompleteLayoutForTextContainerAtEnd func(layoutManager LayoutManager, textContainer TextContainer, layoutFinishedFlag bool) - _LayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect func(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 - _LayoutManagerShouldUseActionForControlCharacterAtIndex func(layoutManager LayoutManager, action ControlCharacterAction, charIndex uint) ControlCharacterAction - _LayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect func(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 - _LayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex func(layoutManager LayoutManager, charIndex uint) bool - _LayoutManagerDidInvalidateLayout func(sender LayoutManager) - _LayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex func(layoutManager LayoutManager, glyphIndex uint, textContainer TextContainer, proposedRect foundation.Rect, glyphPosition foundation.Point, charIndex uint) foundation.Rect - _LayoutManagerTextContainerDidChangeGeometryFromSize func(layoutManager LayoutManager, textContainer TextContainer, oldSize foundation.Size) - _LayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange func(layoutManager LayoutManager, lineFragmentRect *foundation.Rect, lineFragmentUsedRect *foundation.Rect, baselineOffset *float64, textContainer TextContainer, glyphRange foundation.Range) bool -} - -func (di *LayoutManagerDelegate) HasLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange() bool { - return di._LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange != nil -} - -// Asks the delegate whether to use temporary attributes when drawing the text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanagerdelegate/1403085-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(f func(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object) { - di._LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange = f -} - -// Asks the delegate whether to use temporary attributes when drawing the text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanagerdelegate/1403085-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object { - return di._LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager, attrs, toScreen, charIndex, effectiveCharRange) -} -func (di *LayoutManagerDelegate) HasLayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect() bool { - return di._LayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect != nil -} - -// Returns the amount of space to add at the end of a paragraph. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403076-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(f func(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64) { - di._LayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect = f -} - -// Returns the amount of space to add at the end of a paragraph. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403076-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 { - return di._LayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(layoutManager, glyphIndex, rect) -} -func (di *LayoutManagerDelegate) HasLayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex() bool { - return di._LayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex != nil -} - -// Asks the delegate whether to break the line at the specified character. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403128-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex(f func(layoutManager LayoutManager, charIndex uint) bool) { - di._LayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex = f -} - -// Asks the delegate whether to break the line at the specified character. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403128-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex(layoutManager LayoutManager, charIndex uint) bool { - return di._LayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex(layoutManager, charIndex) -} -func (di *LayoutManagerDelegate) HasLayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange() bool { - return di._LayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange != nil -} - -// Enables customization of the initial glyph generation process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403073-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange(f func(layoutManager LayoutManager, glyphs *coregraphics.Glyph, props *GlyphProperty, charIndexes *uint, aFont Font, glyphRange foundation.Range) uint) { - di._LayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange = f -} - -// Enables customization of the initial glyph generation process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403073-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange(layoutManager LayoutManager, glyphs *coregraphics.Glyph, props *GlyphProperty, charIndexes *uint, aFont Font, glyphRange foundation.Range) uint { - return di._LayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange(layoutManager, glyphs, props, charIndexes, aFont, glyphRange) -} -func (di *LayoutManagerDelegate) HasLayoutManagerDidCompleteLayoutForTextContainerAtEnd() bool { - return di._LayoutManagerDidCompleteLayoutForTextContainerAtEnd != nil -} - -// Informs the delegate when the layout manager finishes laying out text in the specified text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1402926-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerDidCompleteLayoutForTextContainerAtEnd(f func(layoutManager LayoutManager, textContainer TextContainer, layoutFinishedFlag bool)) { - di._LayoutManagerDidCompleteLayoutForTextContainerAtEnd = f -} - -// Informs the delegate when the layout manager finishes laying out text in the specified text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1402926-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerDidCompleteLayoutForTextContainerAtEnd(layoutManager LayoutManager, textContainer TextContainer, layoutFinishedFlag bool) { - di._LayoutManagerDidCompleteLayoutForTextContainerAtEnd(layoutManager, textContainer, layoutFinishedFlag) -} -func (di *LayoutManagerDelegate) HasLayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect() bool { - return di._LayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect != nil -} - -// Returns the amount of space to add to the end of a line. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1402948-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(f func(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64) { - di._LayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect = f + _LayoutManagerDidInvalidateLayout func(sender LayoutManager) + _LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange func(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object } -// Returns the amount of space to add to the end of a line. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1402948-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 { - return di._LayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(layoutManager, glyphIndex, rect) -} -func (di *LayoutManagerDelegate) HasLayoutManagerShouldUseActionForControlCharacterAtIndex() bool { - return di._LayoutManagerShouldUseActionForControlCharacterAtIndex != nil -} - -// Returns the control character action for the control character at the specified character index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403167-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerShouldUseActionForControlCharacterAtIndex(f func(layoutManager LayoutManager, action ControlCharacterAction, charIndex uint) ControlCharacterAction) { - di._LayoutManagerShouldUseActionForControlCharacterAtIndex = f -} - -// Returns the control character action for the control character at the specified character index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403167-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerShouldUseActionForControlCharacterAtIndex(layoutManager LayoutManager, action ControlCharacterAction, charIndex uint) ControlCharacterAction { - return di._LayoutManagerShouldUseActionForControlCharacterAtIndex(layoutManager, action, charIndex) -} -func (di *LayoutManagerDelegate) HasLayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect() bool { - return di._LayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect != nil -} - -// Returns the amount of space to add at the beginning of a paragraph. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403177-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect(f func(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64) { - di._LayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect = f -} - -// Returns the amount of space to add at the beginning of a paragraph. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403177-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 { - return di._LayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect(layoutManager, glyphIndex, rect) -} -func (di *LayoutManagerDelegate) HasLayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex() bool { - return di._LayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex != nil -} - -// Asks the delegate whether to break the line at the specified word. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403051-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex(f func(layoutManager LayoutManager, charIndex uint) bool) { - di._LayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex = f -} - -// Asks the delegate whether to break the line at the specified word. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403051-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex(layoutManager LayoutManager, charIndex uint) bool { - return di._LayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex(layoutManager, charIndex) -} func (di *LayoutManagerDelegate) HasLayoutManagerDidInvalidateLayout() bool { return di._LayoutManagerDidInvalidateLayout != nil } @@ -252,56 +43,22 @@ func (di *LayoutManagerDelegate) SetLayoutManagerDidInvalidateLayout(f func(send func (di *LayoutManagerDelegate) LayoutManagerDidInvalidateLayout(sender LayoutManager) { di._LayoutManagerDidInvalidateLayout(sender) } -func (di *LayoutManagerDelegate) HasLayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex() bool { - return di._LayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex != nil -} - -// Returns the bounding rectangle for the specified control glyph with the specified parameters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1402922-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(f func(layoutManager LayoutManager, glyphIndex uint, textContainer TextContainer, proposedRect foundation.Rect, glyphPosition foundation.Point, charIndex uint) foundation.Rect) { - di._LayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex = f -} - -// Returns the bounding rectangle for the specified control glyph with the specified parameters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1402922-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(layoutManager LayoutManager, glyphIndex uint, textContainer TextContainer, proposedRect foundation.Rect, glyphPosition foundation.Point, charIndex uint) foundation.Rect { - return di._LayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(layoutManager, glyphIndex, textContainer, proposedRect, glyphPosition, charIndex) -} -func (di *LayoutManagerDelegate) HasLayoutManagerTextContainerDidChangeGeometryFromSize() bool { - return di._LayoutManagerTextContainerDidChangeGeometryFromSize != nil -} - -// Informs the delegate when the layout manager invalidates layout due to a change in the geometry of the specified text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403049-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerTextContainerDidChangeGeometryFromSize(f func(layoutManager LayoutManager, textContainer TextContainer, oldSize foundation.Size)) { - di._LayoutManagerTextContainerDidChangeGeometryFromSize = f -} - -// Informs the delegate when the layout manager invalidates layout due to a change in the geometry of the specified text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403049-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerTextContainerDidChangeGeometryFromSize(layoutManager LayoutManager, textContainer TextContainer, oldSize foundation.Size) { - di._LayoutManagerTextContainerDidChangeGeometryFromSize(layoutManager, textContainer, oldSize) -} -func (di *LayoutManagerDelegate) HasLayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange() bool { - return di._LayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange != nil +func (di *LayoutManagerDelegate) HasLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange() bool { + return di._LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange != nil } -// Customizes the line fragment geometry before committing it to the layout cache. [Full Topic] +// Asks the delegate whether to use temporary attributes when drawing the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403122-layoutmanager?language=objc -func (di *LayoutManagerDelegate) SetLayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange(f func(layoutManager LayoutManager, lineFragmentRect *foundation.Rect, lineFragmentUsedRect *foundation.Rect, baselineOffset *float64, textContainer TextContainer, glyphRange foundation.Range) bool) { - di._LayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanagerdelegate/1403085-layoutmanager?language=objc +func (di *LayoutManagerDelegate) SetLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(f func(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object) { + di._LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange = f } -// Customizes the line fragment geometry before committing it to the layout cache. [Full Topic] +// Asks the delegate whether to use temporary attributes when drawing the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403122-layoutmanager?language=objc -func (di *LayoutManagerDelegate) LayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange(layoutManager LayoutManager, lineFragmentRect *foundation.Rect, lineFragmentUsedRect *foundation.Rect, baselineOffset *float64, textContainer TextContainer, glyphRange foundation.Range) bool { - return di._LayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange(layoutManager, lineFragmentRect, lineFragmentUsedRect, baselineOffset, textContainer, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanagerdelegate/1403085-layoutmanager?language=objc +func (di *LayoutManagerDelegate) LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object { + return di._LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager, attrs, toScreen, charIndex, effectiveCharRange) } // ensure impl type implements protocol interface @@ -312,113 +69,6 @@ type LayoutManagerDelegateObject struct { objc.Object } -func (l_ LayoutManagerDelegateObject) HasLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:shouldUseTemporaryAttributes:forDrawingToScreen:atCharacterIndex:effectiveRange:")) -} - -// Asks the delegate whether to use temporary attributes when drawing the text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanagerdelegate/1403085-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object { - rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](l_, objc.Sel("layoutManager:shouldUseTemporaryAttributes:forDrawingToScreen:atCharacterIndex:effectiveRange:"), layoutManager, attrs, toScreen, charIndex, effectiveCharRange) - return rv -} - -func (l_ LayoutManagerDelegateObject) HasLayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:paragraphSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:")) -} - -// Returns the amount of space to add at the end of a paragraph. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403076-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 { - rv := objc.Call[float64](l_, objc.Sel("layoutManager:paragraphSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:"), layoutManager, glyphIndex, rect) - return rv -} - -func (l_ LayoutManagerDelegateObject) HasLayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:shouldBreakLineByHyphenatingBeforeCharacterAtIndex:")) -} - -// Asks the delegate whether to break the line at the specified character. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403128-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex(layoutManager LayoutManager, charIndex uint) bool { - rv := objc.Call[bool](l_, objc.Sel("layoutManager:shouldBreakLineByHyphenatingBeforeCharacterAtIndex:"), layoutManager, charIndex) - return rv -} - -func (l_ LayoutManagerDelegateObject) HasLayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:shouldGenerateGlyphs:properties:characterIndexes:font:forGlyphRange:")) -} - -// Enables customization of the initial glyph generation process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403073-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange(layoutManager LayoutManager, glyphs *coregraphics.Glyph, props *GlyphProperty, charIndexes *uint, aFont Font, glyphRange foundation.Range) uint { - rv := objc.Call[uint](l_, objc.Sel("layoutManager:shouldGenerateGlyphs:properties:characterIndexes:font:forGlyphRange:"), layoutManager, glyphs, props, charIndexes, aFont, glyphRange) - return rv -} - -func (l_ LayoutManagerDelegateObject) HasLayoutManagerDidCompleteLayoutForTextContainerAtEnd() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:didCompleteLayoutForTextContainer:atEnd:")) -} - -// Informs the delegate when the layout manager finishes laying out text in the specified text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1402926-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerDidCompleteLayoutForTextContainerAtEnd(layoutManager LayoutManager, textContainer TextContainer, layoutFinishedFlag bool) { - objc.Call[objc.Void](l_, objc.Sel("layoutManager:didCompleteLayoutForTextContainer:atEnd:"), layoutManager, textContainer, layoutFinishedFlag) -} - -func (l_ LayoutManagerDelegateObject) HasLayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:lineSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:")) -} - -// Returns the amount of space to add to the end of a line. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1402948-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 { - rv := objc.Call[float64](l_, objc.Sel("layoutManager:lineSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:"), layoutManager, glyphIndex, rect) - return rv -} - -func (l_ LayoutManagerDelegateObject) HasLayoutManagerShouldUseActionForControlCharacterAtIndex() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:shouldUseAction:forControlCharacterAtIndex:")) -} - -// Returns the control character action for the control character at the specified character index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403167-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerShouldUseActionForControlCharacterAtIndex(layoutManager LayoutManager, action ControlCharacterAction, charIndex uint) ControlCharacterAction { - rv := objc.Call[ControlCharacterAction](l_, objc.Sel("layoutManager:shouldUseAction:forControlCharacterAtIndex:"), layoutManager, action, charIndex) - return rv -} - -func (l_ LayoutManagerDelegateObject) HasLayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:paragraphSpacingBeforeGlyphAtIndex:withProposedLineFragmentRect:")) -} - -// Returns the amount of space to add at the beginning of a paragraph. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403177-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect(layoutManager LayoutManager, glyphIndex uint, rect foundation.Rect) float64 { - rv := objc.Call[float64](l_, objc.Sel("layoutManager:paragraphSpacingBeforeGlyphAtIndex:withProposedLineFragmentRect:"), layoutManager, glyphIndex, rect) - return rv -} - -func (l_ LayoutManagerDelegateObject) HasLayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:shouldBreakLineByWordBeforeCharacterAtIndex:")) -} - -// Asks the delegate whether to break the line at the specified word. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403051-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerShouldBreakLineByWordBeforeCharacterAtIndex(layoutManager LayoutManager, charIndex uint) bool { - rv := objc.Call[bool](l_, objc.Sel("layoutManager:shouldBreakLineByWordBeforeCharacterAtIndex:"), layoutManager, charIndex) - return rv -} - func (l_ LayoutManagerDelegateObject) HasLayoutManagerDidInvalidateLayout() bool { return l_.RespondsToSelector(objc.Sel("layoutManagerDidInvalidateLayout:")) } @@ -430,37 +80,14 @@ func (l_ LayoutManagerDelegateObject) LayoutManagerDidInvalidateLayout(sender La objc.Call[objc.Void](l_, objc.Sel("layoutManagerDidInvalidateLayout:"), sender) } -func (l_ LayoutManagerDelegateObject) HasLayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:")) -} - -// Returns the bounding rectangle for the specified control glyph with the specified parameters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1402922-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(layoutManager LayoutManager, glyphIndex uint, textContainer TextContainer, proposedRect foundation.Rect, glyphPosition foundation.Point, charIndex uint) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("layoutManager:boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:"), layoutManager, glyphIndex, textContainer, proposedRect, glyphPosition, charIndex) - return rv -} - -func (l_ LayoutManagerDelegateObject) HasLayoutManagerTextContainerDidChangeGeometryFromSize() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:textContainer:didChangeGeometryFromSize:")) -} - -// Informs the delegate when the layout manager invalidates layout due to a change in the geometry of the specified text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403049-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerTextContainerDidChangeGeometryFromSize(layoutManager LayoutManager, textContainer TextContainer, oldSize foundation.Size) { - objc.Call[objc.Void](l_, objc.Sel("layoutManager:textContainer:didChangeGeometryFromSize:"), layoutManager, textContainer, oldSize) -} - -func (l_ LayoutManagerDelegateObject) HasLayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:shouldSetLineFragmentRect:lineFragmentUsedRect:baselineOffset:inTextContainer:forGlyphRange:")) +func (l_ LayoutManagerDelegateObject) HasLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange() bool { + return l_.RespondsToSelector(objc.Sel("layoutManager:shouldUseTemporaryAttributes:forDrawingToScreen:atCharacterIndex:effectiveRange:")) } -// Customizes the line fragment geometry before committing it to the layout cache. [Full Topic] +// Asks the delegate whether to use temporary attributes when drawing the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1403122-layoutmanager?language=objc -func (l_ LayoutManagerDelegateObject) LayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange(layoutManager LayoutManager, lineFragmentRect *foundation.Rect, lineFragmentUsedRect *foundation.Rect, baselineOffset *float64, textContainer TextContainer, glyphRange foundation.Range) bool { - rv := objc.Call[bool](l_, objc.Sel("layoutManager:shouldSetLineFragmentRect:lineFragmentUsedRect:baselineOffset:inTextContainer:forGlyphRange:"), layoutManager, lineFragmentRect, lineFragmentUsedRect, baselineOffset, textContainer, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanagerdelegate/1403085-layoutmanager?language=objc +func (l_ LayoutManagerDelegateObject) LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.Object { + rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](l_, objc.Sel("layoutManager:shouldUseTemporaryAttributes:forDrawingToScreen:atCharacterIndex:effectiveRange:"), layoutManager, attrs, toScreen, charIndex, effectiveCharRange) return rv } diff --git a/macos/appkit/layout_x_axis_anchor.gen.go b/macos/appkit/layout_x_axis_anchor.gen.go index 40b8e850..ce56c47d 100644 --- a/macos/appkit/layout_x_axis_anchor.gen.go +++ b/macos/appkit/layout_x_axis_anchor.gen.go @@ -18,10 +18,10 @@ type _LayoutXAxisAnchorClass struct { // An interface definition for the [LayoutXAxisAnchor] class. type ILayoutXAxisAnchor interface { ILayoutAnchor - AnchorWithOffsetToAnchor(otherAnchor ILayoutXAxisAnchor) LayoutDimension ConstraintLessThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint - ConstraintEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint ConstraintGreaterThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint + ConstraintEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint + AnchorWithOffsetToAnchor(otherAnchor ILayoutXAxisAnchor) LayoutDimension } // A factory class for creating horizontal layout constraint objects using a fluent API. [Full Topic] @@ -57,14 +57,6 @@ func (l_ LayoutXAxisAnchor) Init() LayoutXAxisAnchor { return rv } -// Creates a layout dimension object from two anchors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutxaxisanchor/2866024-anchorwithoffsettoanchor?language=objc -func (l_ LayoutXAxisAnchor) AnchorWithOffsetToAnchor(otherAnchor ILayoutXAxisAnchor) LayoutDimension { - rv := objc.Call[LayoutDimension](l_, objc.Sel("anchorWithOffsetToAnchor:"), otherAnchor) - return rv -} - // Returns a constraint that defines the maximum amount by which the current anchor trails the specified anchor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutxaxisanchor/2866018-constraintlessthanorequaltosyste?language=objc @@ -73,6 +65,14 @@ func (l_ LayoutXAxisAnchor) ConstraintLessThanOrEqualToSystemSpacingAfterAnchorM return rv } +// Returns a constraint that defines the minimum amount by which the current anchor trails the specified anchor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutxaxisanchor/2865871-constraintgreaterthanorequaltosy?language=objc +func (l_ LayoutXAxisAnchor) ConstraintGreaterThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToSystemSpacingAfterAnchor:multiplier:"), anchor, multiplier) + return rv +} + // Returns a constraint that defines by how much the current anchor trails the specified anchor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutxaxisanchor/2866112-constraintequaltosystemspacingaf?language=objc @@ -81,10 +81,10 @@ func (l_ LayoutXAxisAnchor) ConstraintEqualToSystemSpacingAfterAnchorMultiplier( return rv } -// Returns a constraint that defines the minimum amount by which the current anchor trails the specified anchor. [Full Topic] +// Creates a layout dimension object from two anchors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutxaxisanchor/2865871-constraintgreaterthanorequaltosy?language=objc -func (l_ LayoutXAxisAnchor) ConstraintGreaterThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToSystemSpacingAfterAnchor:multiplier:"), anchor, multiplier) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutxaxisanchor/2866024-anchorwithoffsettoanchor?language=objc +func (l_ LayoutXAxisAnchor) AnchorWithOffsetToAnchor(otherAnchor ILayoutXAxisAnchor) LayoutDimension { + rv := objc.Call[LayoutDimension](l_, objc.Sel("anchorWithOffsetToAnchor:"), otherAnchor) return rv } diff --git a/macos/appkit/layout_y_axis_anchor.gen.go b/macos/appkit/layout_y_axis_anchor.gen.go index 6a19e161..a8aaa4cb 100644 --- a/macos/appkit/layout_y_axis_anchor.gen.go +++ b/macos/appkit/layout_y_axis_anchor.gen.go @@ -18,10 +18,10 @@ type _LayoutYAxisAnchorClass struct { // An interface definition for the [LayoutYAxisAnchor] class. type ILayoutYAxisAnchor interface { ILayoutAnchor - ConstraintGreaterThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint ConstraintLessThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint - AnchorWithOffsetToAnchor(otherAnchor ILayoutYAxisAnchor) LayoutDimension ConstraintEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint + ConstraintGreaterThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint + AnchorWithOffsetToAnchor(otherAnchor ILayoutYAxisAnchor) LayoutDimension } // A factory class for creating vertical layout constraint objects using a fluent API. [Full Topic] @@ -57,14 +57,6 @@ func (l_ LayoutYAxisAnchor) Init() LayoutYAxisAnchor { return rv } -// Returns a constraint that defines the minimum distance by which the current anchor is positioned below the specified anchor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutyaxisanchor/2866086-constraintgreaterthanorequaltosy?language=objc -func (l_ LayoutYAxisAnchor) ConstraintGreaterThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToSystemSpacingBelowAnchor:multiplier:"), anchor, multiplier) - return rv -} - // Returns a constraint that defines the maximum distance by which the current anchor is positioned below the specified anchor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutyaxisanchor/2865829-constraintlessthanorequaltosyste?language=objc @@ -73,14 +65,6 @@ func (l_ LayoutYAxisAnchor) ConstraintLessThanOrEqualToSystemSpacingBelowAnchorM return rv } -// Creates a layout dimension object from two anchors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutyaxisanchor/2865935-anchorwithoffsettoanchor?language=objc -func (l_ LayoutYAxisAnchor) AnchorWithOffsetToAnchor(otherAnchor ILayoutYAxisAnchor) LayoutDimension { - rv := objc.Call[LayoutDimension](l_, objc.Sel("anchorWithOffsetToAnchor:"), otherAnchor) - return rv -} - // Returns a constraint that defines the specific distance at which the current anchor is positioned below the specified anchor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutyaxisanchor/2866022-constraintequaltosystemspacingbe?language=objc @@ -88,3 +72,19 @@ func (l_ LayoutYAxisAnchor) ConstraintEqualToSystemSpacingBelowAnchorMultiplier( rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToSystemSpacingBelowAnchor:multiplier:"), anchor, multiplier) return rv } + +// Returns a constraint that defines the minimum distance by which the current anchor is positioned below the specified anchor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutyaxisanchor/2866086-constraintgreaterthanorequaltosy?language=objc +func (l_ LayoutYAxisAnchor) ConstraintGreaterThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToSystemSpacingBelowAnchor:multiplier:"), anchor, multiplier) + return rv +} + +// Creates a layout dimension object from two anchors. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutyaxisanchor/2865935-anchorwithoffsettoanchor?language=objc +func (l_ LayoutYAxisAnchor) AnchorWithOffsetToAnchor(otherAnchor ILayoutYAxisAnchor) LayoutDimension { + rv := objc.Call[LayoutDimension](l_, objc.Sel("anchorWithOffsetToAnchor:"), otherAnchor) + return rv +} diff --git a/macos/appkit/level_indicator.gen.go b/macos/appkit/level_indicator.gen.go index 8f02e87b..8a719aca 100644 --- a/macos/appkit/level_indicator.gen.go +++ b/macos/appkit/level_indicator.gen.go @@ -19,40 +19,40 @@ type _LevelIndicatorClass struct { // An interface definition for the [LevelIndicator] class. type ILevelIndicator interface { IControl - TickMarkValueAtIndex(index int) float64 RectOfTickMarkAtIndex(index int) foundation.Rect - MinValue() float64 - SetMinValue(value float64) - NumberOfTickMarks() int - SetNumberOfTickMarks(value int) - CriticalValue() float64 - SetCriticalValue(value float64) + TickMarkValueAtIndex(index int) float64 DrawsTieredCapacityLevels() bool SetDrawsTieredCapacityLevels(value bool) - RatingImage() Image - SetRatingImage(value IImage) + RatingPlaceholderImage() Image + SetRatingPlaceholderImage(value IImage) + TickMarkPosition() TickMarkPosition + SetTickMarkPosition(value TickMarkPosition) + CriticalValue() float64 + SetCriticalValue(value float64) + NumberOfMajorTickMarks() int + SetNumberOfMajorTickMarks(value int) WarningValue() float64 SetWarningValue(value float64) + IsEditable() bool + SetEditable(value bool) LevelIndicatorStyle() LevelIndicatorStyle SetLevelIndicatorStyle(value LevelIndicatorStyle) + CriticalFillColor() Color + SetCriticalFillColor(value IColor) WarningFillColor() Color SetWarningFillColor(value IColor) + MinValue() float64 + SetMinValue(value float64) FillColor() Color SetFillColor(value IColor) - PlaceholderVisibility() LevelIndicatorPlaceholderVisibility - SetPlaceholderVisibility(value LevelIndicatorPlaceholderVisibility) - TickMarkPosition() TickMarkPosition - SetTickMarkPosition(value TickMarkPosition) - IsEditable() bool - SetEditable(value bool) - RatingPlaceholderImage() Image - SetRatingPlaceholderImage(value IImage) MaxValue() float64 SetMaxValue(value float64) - NumberOfMajorTickMarks() int - SetNumberOfMajorTickMarks(value int) - CriticalFillColor() Color - SetCriticalFillColor(value IColor) + RatingImage() Image + SetRatingImage(value IImage) + PlaceholderVisibility() LevelIndicatorPlaceholderVisibility + SetPlaceholderVisibility(value LevelIndicatorPlaceholderVisibility) + NumberOfTickMarks() int + SetNumberOfTickMarks(value int) } // A visual representation of a level or quantity, using discrete values. [Full Topic] @@ -102,6 +102,14 @@ func NewLevelIndicatorWithFrame(frameRect foundation.Rect) LevelIndicator { return instance } +// Returns the bounding rectangle of the tick mark identified by the specified index (the minimum-value tick mark is at index 0). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388825-rectoftickmarkatindex?language=objc +func (l_ LevelIndicator) RectOfTickMarkAtIndex(index int) foundation.Rect { + rv := objc.Call[foundation.Rect](l_, objc.Sel("rectOfTickMarkAtIndex:"), index) + return rv +} + // Returns the receiver’s value represented by the tick mark at the specified index (the minimum-value tick mark has an index of 0). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388823-tickmarkvalueatindex?language=objc @@ -110,42 +118,49 @@ func (l_ LevelIndicator) TickMarkValueAtIndex(index int) float64 { return rv } -// Returns the bounding rectangle of the tick mark identified by the specified index (the minimum-value tick mark is at index 0). [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388825-rectoftickmarkatindex?language=objc -func (l_ LevelIndicator) RectOfTickMarkAtIndex(index int) foundation.Rect { - rv := objc.Call[foundation.Rect](l_, objc.Sel("rectOfTickMarkAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902322-drawstieredcapacitylevels?language=objc +func (l_ LevelIndicator) DrawsTieredCapacityLevels() bool { + rv := objc.Call[bool](l_, objc.Sel("drawsTieredCapacityLevels")) return rv } -// The receiver’s minimum value. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388829-minvalue?language=objc -func (l_ LevelIndicator) MinValue() float64 { - rv := objc.Call[float64](l_, objc.Sel("minValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902322-drawstieredcapacitylevels?language=objc +func (l_ LevelIndicator) SetDrawsTieredCapacityLevels(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setDrawsTieredCapacityLevels:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902328-ratingplaceholderimage?language=objc +func (l_ LevelIndicator) RatingPlaceholderImage() Image { + rv := objc.Call[Image](l_, objc.Sel("ratingPlaceholderImage")) return rv } -// The receiver’s minimum value. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388829-minvalue?language=objc -func (l_ LevelIndicator) SetMinValue(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setMinValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902328-ratingplaceholderimage?language=objc +func (l_ LevelIndicator) SetRatingPlaceholderImage(value IImage) { + objc.Call[objc.Void](l_, objc.Sel("setRatingPlaceholderImage:"), value) } -// The number of tick marks associated with the receiver. [Full Topic] +// Determines how the receiver’s tick marks are aligned with it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388827-numberoftickmarks?language=objc -func (l_ LevelIndicator) NumberOfTickMarks() int { - rv := objc.Call[int](l_, objc.Sel("numberOfTickMarks")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388837-tickmarkposition?language=objc +func (l_ LevelIndicator) TickMarkPosition() TickMarkPosition { + rv := objc.Call[TickMarkPosition](l_, objc.Sel("tickMarkPosition")) return rv } -// The number of tick marks associated with the receiver. [Full Topic] +// Determines how the receiver’s tick marks are aligned with it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388827-numberoftickmarks?language=objc -func (l_ LevelIndicator) SetNumberOfTickMarks(value int) { - objc.Call[objc.Void](l_, objc.Sel("setNumberOfTickMarks:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388837-tickmarkposition?language=objc +func (l_ LevelIndicator) SetTickMarkPosition(value TickMarkPosition) { + objc.Call[objc.Void](l_, objc.Sel("setTickMarkPosition:"), value) } // The receiver’s critical value. [Full Topic] @@ -163,34 +178,19 @@ func (l_ LevelIndicator) SetCriticalValue(value float64) { objc.Call[objc.Void](l_, objc.Sel("setCriticalValue:"), value) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902322-drawstieredcapacitylevels?language=objc -func (l_ LevelIndicator) DrawsTieredCapacityLevels() bool { - rv := objc.Call[bool](l_, objc.Sel("drawsTieredCapacityLevels")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902322-drawstieredcapacitylevels?language=objc -func (l_ LevelIndicator) SetDrawsTieredCapacityLevels(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setDrawsTieredCapacityLevels:"), value) -} - -// [Full Topic] +// The number of major tick marks associated with the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902327-ratingimage?language=objc -func (l_ LevelIndicator) RatingImage() Image { - rv := objc.Call[Image](l_, objc.Sel("ratingImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388819-numberofmajortickmarks?language=objc +func (l_ LevelIndicator) NumberOfMajorTickMarks() int { + rv := objc.Call[int](l_, objc.Sel("numberOfMajorTickMarks")) return rv } -// [Full Topic] +// The number of major tick marks associated with the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902327-ratingimage?language=objc -func (l_ LevelIndicator) SetRatingImage(value IImage) { - objc.Call[objc.Void](l_, objc.Sel("setRatingImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388819-numberofmajortickmarks?language=objc +func (l_ LevelIndicator) SetNumberOfMajorTickMarks(value int) { + objc.Call[objc.Void](l_, objc.Sel("setNumberOfMajorTickMarks:"), value) } // The receiver’s warning value. [Full Topic] @@ -208,6 +208,21 @@ func (l_ LevelIndicator) SetWarningValue(value float64) { objc.Call[objc.Void](l_, objc.Sel("setWarningValue:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2919732-editable?language=objc +func (l_ LevelIndicator) IsEditable() bool { + rv := objc.Call[bool](l_, objc.Sel("isEditable")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2919732-editable?language=objc +func (l_ LevelIndicator) SetEditable(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setEditable:"), value) +} + // The appearance of the indicator. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388833-levelindicatorstyle?language=objc @@ -225,92 +240,62 @@ func (l_ LevelIndicator) SetLevelIndicatorStyle(value LevelIndicatorStyle) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902307-warningfillcolor?language=objc -func (l_ LevelIndicator) WarningFillColor() Color { - rv := objc.Call[Color](l_, objc.Sel("warningFillColor")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902307-warningfillcolor?language=objc -func (l_ LevelIndicator) SetWarningFillColor(value IColor) { - objc.Call[objc.Void](l_, objc.Sel("setWarningFillColor:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902325-fillcolor?language=objc -func (l_ LevelIndicator) FillColor() Color { - rv := objc.Call[Color](l_, objc.Sel("fillColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902316-criticalfillcolor?language=objc +func (l_ LevelIndicator) CriticalFillColor() Color { + rv := objc.Call[Color](l_, objc.Sel("criticalFillColor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902325-fillcolor?language=objc -func (l_ LevelIndicator) SetFillColor(value IColor) { - objc.Call[objc.Void](l_, objc.Sel("setFillColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902316-criticalfillcolor?language=objc +func (l_ LevelIndicator) SetCriticalFillColor(value IColor) { + objc.Call[objc.Void](l_, objc.Sel("setCriticalFillColor:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902323-placeholdervisibility?language=objc -func (l_ LevelIndicator) PlaceholderVisibility() LevelIndicatorPlaceholderVisibility { - rv := objc.Call[LevelIndicatorPlaceholderVisibility](l_, objc.Sel("placeholderVisibility")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902307-warningfillcolor?language=objc +func (l_ LevelIndicator) WarningFillColor() Color { + rv := objc.Call[Color](l_, objc.Sel("warningFillColor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902323-placeholdervisibility?language=objc -func (l_ LevelIndicator) SetPlaceholderVisibility(value LevelIndicatorPlaceholderVisibility) { - objc.Call[objc.Void](l_, objc.Sel("setPlaceholderVisibility:"), value) -} - -// Determines how the receiver’s tick marks are aligned with it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388837-tickmarkposition?language=objc -func (l_ LevelIndicator) TickMarkPosition() TickMarkPosition { - rv := objc.Call[TickMarkPosition](l_, objc.Sel("tickMarkPosition")) - return rv -} - -// Determines how the receiver’s tick marks are aligned with it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388837-tickmarkposition?language=objc -func (l_ LevelIndicator) SetTickMarkPosition(value TickMarkPosition) { - objc.Call[objc.Void](l_, objc.Sel("setTickMarkPosition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902307-warningfillcolor?language=objc +func (l_ LevelIndicator) SetWarningFillColor(value IColor) { + objc.Call[objc.Void](l_, objc.Sel("setWarningFillColor:"), value) } -// [Full Topic] +// The receiver’s minimum value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2919732-editable?language=objc -func (l_ LevelIndicator) IsEditable() bool { - rv := objc.Call[bool](l_, objc.Sel("isEditable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388829-minvalue?language=objc +func (l_ LevelIndicator) MinValue() float64 { + rv := objc.Call[float64](l_, objc.Sel("minValue")) return rv } -// [Full Topic] +// The receiver’s minimum value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2919732-editable?language=objc -func (l_ LevelIndicator) SetEditable(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setEditable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388829-minvalue?language=objc +func (l_ LevelIndicator) SetMinValue(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setMinValue:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902328-ratingplaceholderimage?language=objc -func (l_ LevelIndicator) RatingPlaceholderImage() Image { - rv := objc.Call[Image](l_, objc.Sel("ratingPlaceholderImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902325-fillcolor?language=objc +func (l_ LevelIndicator) FillColor() Color { + rv := objc.Call[Color](l_, objc.Sel("fillColor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902328-ratingplaceholderimage?language=objc -func (l_ LevelIndicator) SetRatingPlaceholderImage(value IImage) { - objc.Call[objc.Void](l_, objc.Sel("setRatingPlaceholderImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902325-fillcolor?language=objc +func (l_ LevelIndicator) SetFillColor(value IColor) { + objc.Call[objc.Void](l_, objc.Sel("setFillColor:"), value) } // The receiver’s maximum value. [Full Topic] @@ -328,32 +313,47 @@ func (l_ LevelIndicator) SetMaxValue(value float64) { objc.Call[objc.Void](l_, objc.Sel("setMaxValue:"), value) } -// The number of major tick marks associated with the receiver. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388819-numberofmajortickmarks?language=objc -func (l_ LevelIndicator) NumberOfMajorTickMarks() int { - rv := objc.Call[int](l_, objc.Sel("numberOfMajorTickMarks")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902327-ratingimage?language=objc +func (l_ LevelIndicator) RatingImage() Image { + rv := objc.Call[Image](l_, objc.Sel("ratingImage")) return rv } -// The number of major tick marks associated with the receiver. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388819-numberofmajortickmarks?language=objc -func (l_ LevelIndicator) SetNumberOfMajorTickMarks(value int) { - objc.Call[objc.Void](l_, objc.Sel("setNumberOfMajorTickMarks:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902327-ratingimage?language=objc +func (l_ LevelIndicator) SetRatingImage(value IImage) { + objc.Call[objc.Void](l_, objc.Sel("setRatingImage:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902316-criticalfillcolor?language=objc -func (l_ LevelIndicator) CriticalFillColor() Color { - rv := objc.Call[Color](l_, objc.Sel("criticalFillColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902323-placeholdervisibility?language=objc +func (l_ LevelIndicator) PlaceholderVisibility() LevelIndicatorPlaceholderVisibility { + rv := objc.Call[LevelIndicatorPlaceholderVisibility](l_, objc.Sel("placeholderVisibility")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902316-criticalfillcolor?language=objc -func (l_ LevelIndicator) SetCriticalFillColor(value IColor) { - objc.Call[objc.Void](l_, objc.Sel("setCriticalFillColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/2902323-placeholdervisibility?language=objc +func (l_ LevelIndicator) SetPlaceholderVisibility(value LevelIndicatorPlaceholderVisibility) { + objc.Call[objc.Void](l_, objc.Sel("setPlaceholderVisibility:"), value) +} + +// The number of tick marks associated with the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388827-numberoftickmarks?language=objc +func (l_ LevelIndicator) NumberOfTickMarks() int { + rv := objc.Call[int](l_, objc.Sel("numberOfTickMarks")) + return rv +} + +// The number of tick marks associated with the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicator/1388827-numberoftickmarks?language=objc +func (l_ LevelIndicator) SetNumberOfTickMarks(value int) { + objc.Call[objc.Void](l_, objc.Sel("setNumberOfTickMarks:"), value) } diff --git a/macos/appkit/level_indicator_cell.gen.go b/macos/appkit/level_indicator_cell.gen.go index 1051abf8..f84f25c8 100644 --- a/macos/appkit/level_indicator_cell.gen.go +++ b/macos/appkit/level_indicator_cell.gen.go @@ -21,22 +21,22 @@ type ILevelIndicatorCell interface { IActionCell RectOfTickMarkAtIndex(index int) foundation.Rect TickMarkValueAtIndex(index int) float64 - NumberOfTickMarks() int - SetNumberOfTickMarks(value int) - NumberOfMajorTickMarks() int - SetNumberOfMajorTickMarks(value int) - CriticalValue() float64 - SetCriticalValue(value float64) - MinValue() float64 - SetMinValue(value float64) - LevelIndicatorStyle() LevelIndicatorStyle - SetLevelIndicatorStyle(value LevelIndicatorStyle) TickMarkPosition() TickMarkPosition SetTickMarkPosition(value TickMarkPosition) + CriticalValue() float64 + SetCriticalValue(value float64) + NumberOfMajorTickMarks() int + SetNumberOfMajorTickMarks(value int) WarningValue() float64 SetWarningValue(value float64) + LevelIndicatorStyle() LevelIndicatorStyle + SetLevelIndicatorStyle(value LevelIndicatorStyle) + MinValue() float64 + SetMinValue(value float64) MaxValue() float64 SetMaxValue(value float64) + NumberOfTickMarks() int + SetNumberOfTickMarks(value int) } // NSLevelIndicatorCell is a subclass of NSActionCell that provides several level indicator display styles including: capacity, ranking and relevancy. The capacity style provides both continuous and discrete modes. [Full Topic] @@ -130,34 +130,19 @@ func (l_ LevelIndicatorCell) TickMarkValueAtIndex(index int) float64 { return rv } -// The number of tick marks displayed by the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1534680-numberoftickmarks?language=objc -func (l_ LevelIndicatorCell) NumberOfTickMarks() int { - rv := objc.Call[int](l_, objc.Sel("numberOfTickMarks")) - return rv -} - -// The number of tick marks displayed by the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1534680-numberoftickmarks?language=objc -func (l_ LevelIndicatorCell) SetNumberOfTickMarks(value int) { - objc.Call[objc.Void](l_, objc.Sel("setNumberOfTickMarks:"), value) -} - -// The number of major tick marks displayed by the control. [Full Topic] +// The placement of tick marks on the level indicator control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1528987-numberofmajortickmarks?language=objc -func (l_ LevelIndicatorCell) NumberOfMajorTickMarks() int { - rv := objc.Call[int](l_, objc.Sel("numberOfMajorTickMarks")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1532399-tickmarkposition?language=objc +func (l_ LevelIndicatorCell) TickMarkPosition() TickMarkPosition { + rv := objc.Call[TickMarkPosition](l_, objc.Sel("tickMarkPosition")) return rv } -// The number of major tick marks displayed by the control. [Full Topic] +// The placement of tick marks on the level indicator control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1528987-numberofmajortickmarks?language=objc -func (l_ LevelIndicatorCell) SetNumberOfMajorTickMarks(value int) { - objc.Call[objc.Void](l_, objc.Sel("setNumberOfMajorTickMarks:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1532399-tickmarkposition?language=objc +func (l_ LevelIndicatorCell) SetTickMarkPosition(value TickMarkPosition) { + objc.Call[objc.Void](l_, objc.Sel("setTickMarkPosition:"), value) } // The critical value of the level indicator control. [Full Topic] @@ -175,19 +160,34 @@ func (l_ LevelIndicatorCell) SetCriticalValue(value float64) { objc.Call[objc.Void](l_, objc.Sel("setCriticalValue:"), value) } -// The minimum value of the control. [Full Topic] +// The number of major tick marks displayed by the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1534472-minvalue?language=objc -func (l_ LevelIndicatorCell) MinValue() float64 { - rv := objc.Call[float64](l_, objc.Sel("minValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1528987-numberofmajortickmarks?language=objc +func (l_ LevelIndicatorCell) NumberOfMajorTickMarks() int { + rv := objc.Call[int](l_, objc.Sel("numberOfMajorTickMarks")) return rv } -// The minimum value of the control. [Full Topic] +// The number of major tick marks displayed by the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1534472-minvalue?language=objc -func (l_ LevelIndicatorCell) SetMinValue(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setMinValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1528987-numberofmajortickmarks?language=objc +func (l_ LevelIndicatorCell) SetNumberOfMajorTickMarks(value int) { + objc.Call[objc.Void](l_, objc.Sel("setNumberOfMajorTickMarks:"), value) +} + +// The warning value of the level indicator control. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1528974-warningvalue?language=objc +func (l_ LevelIndicatorCell) WarningValue() float64 { + rv := objc.Call[float64](l_, objc.Sel("warningValue")) + return rv +} + +// The warning value of the level indicator control. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1528974-warningvalue?language=objc +func (l_ LevelIndicatorCell) SetWarningValue(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setWarningValue:"), value) } // The style of the level indicator control. [Full Topic] @@ -205,34 +205,19 @@ func (l_ LevelIndicatorCell) SetLevelIndicatorStyle(value LevelIndicatorStyle) { objc.Call[objc.Void](l_, objc.Sel("setLevelIndicatorStyle:"), value) } -// The placement of tick marks on the level indicator control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1532399-tickmarkposition?language=objc -func (l_ LevelIndicatorCell) TickMarkPosition() TickMarkPosition { - rv := objc.Call[TickMarkPosition](l_, objc.Sel("tickMarkPosition")) - return rv -} - -// The placement of tick marks on the level indicator control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1532399-tickmarkposition?language=objc -func (l_ LevelIndicatorCell) SetTickMarkPosition(value TickMarkPosition) { - objc.Call[objc.Void](l_, objc.Sel("setTickMarkPosition:"), value) -} - -// The warning value of the level indicator control. [Full Topic] +// The minimum value of the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1528974-warningvalue?language=objc -func (l_ LevelIndicatorCell) WarningValue() float64 { - rv := objc.Call[float64](l_, objc.Sel("warningValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1534472-minvalue?language=objc +func (l_ LevelIndicatorCell) MinValue() float64 { + rv := objc.Call[float64](l_, objc.Sel("minValue")) return rv } -// The warning value of the level indicator control. [Full Topic] +// The minimum value of the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1528974-warningvalue?language=objc -func (l_ LevelIndicatorCell) SetWarningValue(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setWarningValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1534472-minvalue?language=objc +func (l_ LevelIndicatorCell) SetMinValue(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setMinValue:"), value) } // The maximum value of the control. [Full Topic] @@ -249,3 +234,18 @@ func (l_ LevelIndicatorCell) MaxValue() float64 { func (l_ LevelIndicatorCell) SetMaxValue(value float64) { objc.Call[objc.Void](l_, objc.Sel("setMaxValue:"), value) } + +// The number of tick marks displayed by the control. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1534680-numberoftickmarks?language=objc +func (l_ LevelIndicatorCell) NumberOfTickMarks() int { + rv := objc.Call[int](l_, objc.Sel("numberOfTickMarks")) + return rv +} + +// The number of tick marks displayed by the control. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1534680-numberoftickmarks?language=objc +func (l_ LevelIndicatorCell) SetNumberOfTickMarks(value int) { + objc.Call[objc.Void](l_, objc.Sel("setNumberOfTickMarks:"), value) +} diff --git a/macos/appkit/matrix.gen.go b/macos/appkit/matrix.gen.go index a8bf249a..c7923b8a 100644 --- a/macos/appkit/matrix.gen.go +++ b/macos/appkit/matrix.gen.go @@ -19,97 +19,93 @@ type _MatrixClass struct { // An interface definition for the [Matrix] class. type IMatrix interface { IControl - SelectCellWithTag(tag int) bool - InsertColumnWithCells(column int, newCells []ICell) - SortUsingSelector(comparator objc.Selector) - SelectCellAtRowColumn(row int, col int) - SetSelectionFromToAnchorHighlight(startPos int, endPos int, anchorPos int, lit bool) - TextDidEndEditing(notification foundation.INotification) - SetStateAtRowColumn(value int, row int, col int) - TextDidBeginEditing(notification foundation.INotification) - SendActionToForAllCells(selector objc.Selector, object objc.IObject, flag bool) - GetRowColumnOfCell(row *int, col *int, cell ICell) bool - TextDidChange(notification foundation.INotification) - AddColumn() - SelectText(sender objc.IObject) - AddRow() - TextShouldEndEditing(textObject IText) bool - GetRowColumnForPoint(row *int, col *int, point foundation.Point) bool SendAction() bool - MakeCellAtRowColumn(row int, col int) Cell - SelectAll(sender objc.IObject) - SizeToCells() - PutCellAtRowColumn(newCell ICell, row int, col int) - AddRowWithCells(newCells []ICell) - InsertRow(row int) - DrawCellAtRowColumn(row int, col int) + DeselectSelectedCell() AddColumnWithCells(newCells []ICell) CellFrameAtRowColumn(row int, col int) foundation.Rect - RenewRowsColumns(newRows int, newCols int) + SetToolTipForCell(toolTipString string, cell ICell) + AddRow() RemoveRow(row int) - TextShouldBeginEditing(textObject IText) bool - ToolTipForCell(cell ICell) string + SortUsingFunctionContext(compare func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) + SizeToCells() ScrollCellToVisibleAtRowColumn(row int, col int) - SendDoubleAction() - CellWithTag(tag int) Cell + DrawCellAtRowColumn(row int, col int) + SelectCellWithTag(tag int) bool + PutCellAtRowColumn(newCell ICell, row int, col int) + HighlightCellAtRowColumn(flag bool, row int, col int) + SelectAll(sender objc.IObject) + SelectText(sender objc.IObject) SelectTextAtRowColumn(row int, col int) Cell - DeselectSelectedCell() - InsertRowWithCells(row int, newCells []ICell) + TextShouldBeginEditing(textObject IText) bool + AddRowWithCells(newCells []ICell) + SortUsingSelector(comparator objc.Selector) + InsertRow(row int) + InsertColumnWithCells(column int, newCells []ICell) + TextDidChange(notification foundation.INotification) + CellWithTag(tag int) Cell + CellAtRowColumn(row int, col int) Cell + TextDidBeginEditing(notification foundation.INotification) SetScrollable(flag bool) + SendDoubleAction() + SelectCellAtRowColumn(row int, col int) + RemoveColumn(col int) DeselectAllCells() - SetToolTipForCell(toolTipString string, cell ICell) - GetNumberOfRowsColumns(rowCount *int, colCount *int) + MakeCellAtRowColumn(row int, col int) Cell + SetSelectionFromToAnchorHighlight(startPos int, endPos int, anchorPos int, lit bool) + ToolTipForCell(cell ICell) string SetValidateSize(flag bool) - CellAtRowColumn(row int, col int) Cell - HighlightCellAtRowColumn(flag bool, row int, col int) - RemoveColumn(col int) - InsertColumn(column int) - SortUsingFunctionContext(compare func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) - AutorecalculatesCellSize() bool - SetAutorecalculatesCellSize(value bool) - DrawsCellBackground() bool - SetDrawsCellBackground(value bool) - NumberOfColumns() int - CellSize() foundation.Size - SetCellSize(value foundation.Size) - Prototype() Cell - SetPrototype(value ICell) + TextShouldEndEditing(textObject IText) bool + AddColumn() + RenewRowsColumns(newRows int, newCols int) + GetRowColumnOfCell(row *int, col *int, cell ICell) bool + TextDidEndEditing(notification foundation.INotification) + GetNumberOfRowsColumns(rowCount *int, colCount *int) + SetStateAtRowColumn(value int, row int, col int) + MouseDownFlags() int DoubleAction() objc.Selector SetDoubleAction(value objc.Selector) - SelectedRow() int + SelectedCells() []Cell TabKeyTraversesCells() bool SetTabKeyTraversesCells(value bool) - NumberOfRows() int - IsSelectionByRect() bool - SetSelectionByRect(value bool) - KeyCell() Cell - SetKeyCell(value ICell) SelectedCell() Cell - BackgroundColor() Color - SetBackgroundColor(value IColor) + AllowsEmptySelection() bool + SetAllowsEmptySelection(value bool) + Cells() []Cell CellBackgroundColor() Color SetCellBackgroundColor(value IColor) - MouseDownFlags() int - Cells() []Cell - DrawsBackground() bool - SetDrawsBackground(value bool) + IsSelectionByRect() bool + SetSelectionByRect(value bool) IsAutoscroll() bool SetAutoscroll(value bool) - SelectedColumn() int - AllowsEmptySelection() bool - SetAllowsEmptySelection(value bool) + DrawsCellBackground() bool + SetDrawsCellBackground(value bool) + AutorecalculatesCellSize() bool + SetAutorecalculatesCellSize(value bool) Delegate() MatrixDelegateObject SetDelegate(value PMatrixDelegate) SetDelegateObject(valueObject objc.IObject) + BackgroundColor() Color + SetBackgroundColor(value IColor) + DrawsBackground() bool + SetDrawsBackground(value bool) + CellSize() foundation.Size + SetCellSize(value foundation.Size) + KeyCell() Cell + SetKeyCell(value ICell) + SelectedColumn() int + SelectedRow() int + Mode() MatrixMode + SetMode(value MatrixMode) AutosizesCells() bool SetAutosizesCells(value bool) - IntercellSpacing() foundation.Size - SetIntercellSpacing(value foundation.Size) CellClass() objc.Class SetCellClass(value objc.IClass) - SelectedCells() []Cell - Mode() MatrixMode - SetMode(value MatrixMode) + Prototype() Cell + SetPrototype(value ICell) + NumberOfRows() int + IntercellSpacing() foundation.Size + SetIntercellSpacing(value foundation.Size) + NumberOfColumns() int } // A legacy interface for grouping radio buttons or other types of cells together. [Full Topic] @@ -125,20 +121,6 @@ func MatrixFrom(ptr unsafe.Pointer) Matrix { } } -func (m_ Matrix) InitWithFrameModePrototypeNumberOfRowsNumberOfColumns(frameRect foundation.Rect, mode MatrixMode, cell ICell, rowsHigh int, colsWide int) Matrix { - rv := objc.Call[Matrix](m_, objc.Sel("initWithFrame:mode:prototype:numberOfRows:numberOfColumns:"), frameRect, mode, cell, rowsHigh, colsWide) - return rv -} - -// Initializes and returns a newly allocated matrix of the specified size using the given cell as a prototype. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436386-initwithframe?language=objc -func NewMatrixWithFrameModePrototypeNumberOfRowsNumberOfColumns(frameRect foundation.Rect, mode MatrixMode, cell ICell, rowsHigh int, colsWide int) Matrix { - instance := MatrixClass.Alloc().InitWithFrameModePrototypeNumberOfRowsNumberOfColumns(frameRect, mode, cell, rowsHigh, colsWide) - instance.Autorelease() - return instance -} - func (m_ Matrix) InitWithFrame(frameRect foundation.Rect) Matrix { rv := objc.Call[Matrix](m_, objc.Sel("initWithFrame:"), frameRect) return rv @@ -153,20 +135,6 @@ func NewMatrixWithFrame(frameRect foundation.Rect) Matrix { return instance } -func (m_ Matrix) InitWithFrameModeCellClassNumberOfRowsNumberOfColumns(frameRect foundation.Rect, mode MatrixMode, factoryId objc.IClass, rowsHigh int, colsWide int) Matrix { - rv := objc.Call[Matrix](m_, objc.Sel("initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:"), frameRect, mode, factoryId, rowsHigh, colsWide) - return rv -} - -// Initializes and returns a newly allocated matrix of the specified size using cells of the given class. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436400-initwithframe?language=objc -func NewMatrixWithFrameModeCellClassNumberOfRowsNumberOfColumns(frameRect foundation.Rect, mode MatrixMode, factoryId objc.IClass, rowsHigh int, colsWide int) Matrix { - instance := MatrixClass.Alloc().InitWithFrameModeCellClassNumberOfRowsNumberOfColumns(frameRect, mode, factoryId, rowsHigh, colsWide) - instance.Autorelease() - return instance -} - func (mc _MatrixClass) Alloc() Matrix { rv := objc.Call[Matrix](mc, objc.Sel("alloc")) return rv @@ -187,90 +155,112 @@ func (m_ Matrix) Init() Matrix { return rv } -// Selects the last cell with the given tag. [Full Topic] +// If the selected cell has both an action and a target, sends its action to its target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436446-selectcellwithtag?language=objc -func (m_ Matrix) SelectCellWithTag(tag int) bool { - rv := objc.Call[bool](m_, objc.Sel("selectCellWithTag:"), tag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436413-sendaction?language=objc +func (m_ Matrix) SendAction() bool { + rv := objc.Call[bool](m_, objc.Sel("sendAction")) return rv } -// Inserts a new column of cells before the specified column, using the given cells. [Full Topic] +// Deselects the selected cell or cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436483-insertcolumn?language=objc -func (m_ Matrix) InsertColumnWithCells(column int, newCells []ICell) { - objc.Call[objc.Void](m_, objc.Sel("insertColumn:withCells:"), column, newCells) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436440-deselectselectedcell?language=objc +func (m_ Matrix) DeselectSelectedCell() { + objc.Call[objc.Void](m_, objc.Sel("deselectSelectedCell")) } -// Sorts the receiver’s cells in ascending order as defined by the comparison method. [Full Topic] +// Adds a new column of cells to the right of the last column, using the given cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436475-sortusingselector?language=objc -func (m_ Matrix) SortUsingSelector(comparator objc.Selector) { - objc.Call[objc.Void](m_, objc.Sel("sortUsingSelector:"), comparator) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436453-addcolumnwithcells?language=objc +func (m_ Matrix) AddColumnWithCells(newCells []ICell) { + objc.Call[objc.Void](m_, objc.Sel("addColumnWithCells:"), newCells) } -// Selects the cell at the specified row and column within the receiver. [Full Topic] +// Returns the frame rectangle of the cell that would be drawn at the specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436399-selectcellatrow?language=objc -func (m_ Matrix) SelectCellAtRowColumn(row int, col int) { - objc.Call[objc.Void](m_, objc.Sel("selectCellAtRow:column:"), row, col) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436417-cellframeatrow?language=objc +func (m_ Matrix) CellFrameAtRowColumn(row int, col int) foundation.Rect { + rv := objc.Call[foundation.Rect](m_, objc.Sel("cellFrameAtRow:column:"), row, col) + return rv } -// Programmatically selects a range of cells. [Full Topic] +// Sets the tooltip for the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436405-setselectionfrom?language=objc -func (m_ Matrix) SetSelectionFromToAnchorHighlight(startPos int, endPos int, anchorPos int, lit bool) { - objc.Call[objc.Void](m_, objc.Sel("setSelectionFrom:to:anchor:highlight:"), startPos, endPos, anchorPos, lit) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436372-settooltip?language=objc +func (m_ Matrix) SetToolTipForCell(toolTipString string, cell ICell) { + objc.Call[objc.Void](m_, objc.Sel("setToolTip:forCell:"), toolTipString, cell) } -// Invoked when text editing ends. [Full Topic] +// Adds a new row of cells below the last row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436426-textdidendediting?language=objc -func (m_ Matrix) TextDidEndEditing(notification foundation.INotification) { - objc.Call[objc.Void](m_, objc.Sel("textDidEndEditing:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436414-addrow?language=objc +func (m_ Matrix) AddRow() { + objc.Call[objc.Void](m_, objc.Sel("addRow")) } -// Sets the state of the cell at specified location. [Full Topic] +// Removes the specified row from the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436479-setstate?language=objc -func (m_ Matrix) SetStateAtRowColumn(value int, row int, col int) { - objc.Call[objc.Void](m_, objc.Sel("setState:atRow:column:"), value, row, col) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436403-removerow?language=objc +func (m_ Matrix) RemoveRow(row int) { + objc.Call[objc.Void](m_, objc.Sel("removeRow:"), row) } -// Invoked when there’s a change in the text after the receiver gains first responder status. [Full Topic] +// Sorts the receiver’s cells in ascending order as defined by the specified comparison function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436395-textdidbeginediting?language=objc -func (m_ Matrix) TextDidBeginEditing(notification foundation.INotification) { - objc.Call[objc.Void](m_, objc.Sel("textDidBeginEditing:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436468-sortusingfunction?language=objc +func (m_ Matrix) SortUsingFunctionContext(compare func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) { + objc.Call[objc.Void](m_, objc.Sel("sortUsingFunction:context:"), compare, context) +} + +// Changes the width and the height of the receiver’s frame so it exactly contains the cells. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436408-sizetocells?language=objc +func (m_ Matrix) SizeToCells() { + objc.Call[objc.Void](m_, objc.Sel("sizeToCells")) } -// Iterates through the cells in the receiver, sending the specified selector to an object for each cell. [Full Topic] +// Scrolls the receiver so the specified cell is visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436370-sendaction?language=objc -func (m_ Matrix) SendActionToForAllCells(selector objc.Selector, object objc.IObject, flag bool) { - objc.Call[objc.Void](m_, objc.Sel("sendAction:to:forAllCells:"), selector, object, flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436455-scrollcelltovisibleatrow?language=objc +func (m_ Matrix) ScrollCellToVisibleAtRowColumn(row int, col int) { + objc.Call[objc.Void](m_, objc.Sel("scrollCellToVisibleAtRow:column:"), row, col) } -// Searches the receiver for the specified cell and returns the row and column of the cell [Full Topic] +// Displays the cell at the specified row and column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436421-getrow?language=objc -func (m_ Matrix) GetRowColumnOfCell(row *int, col *int, cell ICell) bool { - rv := objc.Call[bool](m_, objc.Sel("getRow:column:ofCell:"), row, col, cell) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436495-drawcellatrow?language=objc +func (m_ Matrix) DrawCellAtRowColumn(row int, col int) { + objc.Call[objc.Void](m_, objc.Sel("drawCellAtRow:column:"), row, col) +} + +// Selects the last cell with the given tag. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436446-selectcellwithtag?language=objc +func (m_ Matrix) SelectCellWithTag(tag int) bool { + rv := objc.Call[bool](m_, objc.Sel("selectCellWithTag:"), tag) return rv } -// Invoked when a key-down event or paste operation occurs that changes the receiver’s contents. [Full Topic] +// Replaces the cell at the specified row and column with the new cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436489-textdidchange?language=objc -func (m_ Matrix) TextDidChange(notification foundation.INotification) { - objc.Call[objc.Void](m_, objc.Sel("textDidChange:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436384-putcell?language=objc +func (m_ Matrix) PutCellAtRowColumn(newCell ICell, row int, col int) { + objc.Call[objc.Void](m_, objc.Sel("putCell:atRow:column:"), newCell, row, col) } -// Adds a new column of cells to the right of the last column. [Full Topic] +// Highlights or unhighlights the cell at the specified row and column location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436419-addcolumn?language=objc -func (m_ Matrix) AddColumn() { - objc.Call[objc.Void](m_, objc.Sel("addColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436499-highlightcell?language=objc +func (m_ Matrix) HighlightCellAtRowColumn(flag bool, row int, col int) { + objc.Call[objc.Void](m_, objc.Sel("highlightCell:atRow:column:"), flag, row, col) +} + +// Selects and highlights all cells in the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436378-selectall?language=objc +func (m_ Matrix) SelectAll(sender objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("selectAll:"), sender) } // Selects text in the currently selected cell or in the key cell. [Full Topic] @@ -280,66 +270,22 @@ func (m_ Matrix) SelectText(sender objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("selectText:"), sender) } -// Adds a new row of cells below the last row. [Full Topic] +// Selects the text in the cell at the specified location and returns the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436414-addrow?language=objc -func (m_ Matrix) AddRow() { - objc.Call[objc.Void](m_, objc.Sel("addRow")) -} - -// Requests permission to end editing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436509-textshouldendediting?language=objc -func (m_ Matrix) TextShouldEndEditing(textObject IText) bool { - rv := objc.Call[bool](m_, objc.Sel("textShouldEndEditing:"), textObject) - return rv -} - -// Indicates whether the specified point lies within one of the cells of the matrix and returns the location of the cell within which the point lies. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436441-getrow?language=objc -func (m_ Matrix) GetRowColumnForPoint(row *int, col *int, point foundation.Point) bool { - rv := objc.Call[bool](m_, objc.Sel("getRow:column:forPoint:"), row, col, point) - return rv -} - -// If the selected cell has both an action and a target, sends its action to its target. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436413-sendaction?language=objc -func (m_ Matrix) SendAction() bool { - rv := objc.Call[bool](m_, objc.Sel("sendAction")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436459-selecttextatrow?language=objc +func (m_ Matrix) SelectTextAtRowColumn(row int, col int) Cell { + rv := objc.Call[Cell](m_, objc.Sel("selectTextAtRow:column:"), row, col) return rv } -// Creates a new cell at the location specified by the given row and column in the receiver. [Full Topic] +// Requests permission to begin editing text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436439-makecellatrow?language=objc -func (m_ Matrix) MakeCellAtRowColumn(row int, col int) Cell { - rv := objc.Call[Cell](m_, objc.Sel("makeCellAtRow:column:"), row, col) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436393-textshouldbeginediting?language=objc +func (m_ Matrix) TextShouldBeginEditing(textObject IText) bool { + rv := objc.Call[bool](m_, objc.Sel("textShouldBeginEditing:"), textObject) return rv } -// Selects and highlights all cells in the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436378-selectall?language=objc -func (m_ Matrix) SelectAll(sender objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("selectAll:"), sender) -} - -// Changes the width and the height of the receiver’s frame so it exactly contains the cells. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436408-sizetocells?language=objc -func (m_ Matrix) SizeToCells() { - objc.Call[objc.Void](m_, objc.Sel("sizeToCells")) -} - -// Replaces the cell at the specified row and column with the new cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436384-putcell?language=objc -func (m_ Matrix) PutCellAtRowColumn(newCell ICell, row int, col int) { - objc.Call[objc.Void](m_, objc.Sel("putCell:atRow:column:"), newCell, row, col) -} - // Adds a new row of cells below the last row, using the specified cells. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436450-addrowwithcells?language=objc @@ -347,6 +293,13 @@ func (m_ Matrix) AddRowWithCells(newCells []ICell) { objc.Call[objc.Void](m_, objc.Sel("addRowWithCells:"), newCells) } +// Sorts the receiver’s cells in ascending order as defined by the comparison method. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436475-sortusingselector?language=objc +func (m_ Matrix) SortUsingSelector(comparator objc.Selector) { + objc.Call[objc.Void](m_, objc.Sel("sortUsingSelector:"), comparator) +} + // Inserts a new row of cells before the specified row. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436427-insertrow?language=objc @@ -354,63 +307,48 @@ func (m_ Matrix) InsertRow(row int) { objc.Call[objc.Void](m_, objc.Sel("insertRow:"), row) } -// Displays the cell at the specified row and column. [Full Topic] +// Inserts a new column of cells before the specified column, using the given cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436495-drawcellatrow?language=objc -func (m_ Matrix) DrawCellAtRowColumn(row int, col int) { - objc.Call[objc.Void](m_, objc.Sel("drawCellAtRow:column:"), row, col) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436483-insertcolumn?language=objc +func (m_ Matrix) InsertColumnWithCells(column int, newCells []ICell) { + objc.Call[objc.Void](m_, objc.Sel("insertColumn:withCells:"), column, newCells) } -// Adds a new column of cells to the right of the last column, using the given cells. [Full Topic] +// Invoked when a key-down event or paste operation occurs that changes the receiver’s contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436453-addcolumnwithcells?language=objc -func (m_ Matrix) AddColumnWithCells(newCells []ICell) { - objc.Call[objc.Void](m_, objc.Sel("addColumnWithCells:"), newCells) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436489-textdidchange?language=objc +func (m_ Matrix) TextDidChange(notification foundation.INotification) { + objc.Call[objc.Void](m_, objc.Sel("textDidChange:"), notification) } -// Returns the frame rectangle of the cell that would be drawn at the specified location. [Full Topic] +// Searches the receiver and returns the last cell matching the specified tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436417-cellframeatrow?language=objc -func (m_ Matrix) CellFrameAtRowColumn(row int, col int) foundation.Rect { - rv := objc.Call[foundation.Rect](m_, objc.Sel("cellFrameAtRow:column:"), row, col) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436481-cellwithtag?language=objc +func (m_ Matrix) CellWithTag(tag int) Cell { + rv := objc.Call[Cell](m_, objc.Sel("cellWithTag:"), tag) return rv } -// Changes the number of rows and columns in the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436452-renewrows?language=objc -func (m_ Matrix) RenewRowsColumns(newRows int, newCols int) { - objc.Call[objc.Void](m_, objc.Sel("renewRows:columns:"), newRows, newCols) -} - -// Removes the specified row from the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436403-removerow?language=objc -func (m_ Matrix) RemoveRow(row int) { - objc.Call[objc.Void](m_, objc.Sel("removeRow:"), row) -} - -// Requests permission to begin editing text. [Full Topic] +// Returns the cell at the specified row and column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436393-textshouldbeginediting?language=objc -func (m_ Matrix) TextShouldBeginEditing(textObject IText) bool { - rv := objc.Call[bool](m_, objc.Sel("textShouldBeginEditing:"), textObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436424-cellatrow?language=objc +func (m_ Matrix) CellAtRowColumn(row int, col int) Cell { + rv := objc.Call[Cell](m_, objc.Sel("cellAtRow:column:"), row, col) return rv } -// Returns the tooltip for the specified cell. [Full Topic] +// Invoked when there’s a change in the text after the receiver gains first responder status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436401-tooltipforcell?language=objc -func (m_ Matrix) ToolTipForCell(cell ICell) string { - rv := objc.Call[string](m_, objc.Sel("toolTipForCell:"), cell) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436395-textdidbeginediting?language=objc +func (m_ Matrix) TextDidBeginEditing(notification foundation.INotification) { + objc.Call[objc.Void](m_, objc.Sel("textDidBeginEditing:"), notification) } -// Scrolls the receiver so the specified cell is visible. [Full Topic] +// Specifies whether the cells in the matrix are scrollable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436455-scrollcelltovisibleatrow?language=objc -func (m_ Matrix) ScrollCellToVisibleAtRowColumn(row int, col int) { - objc.Call[objc.Void](m_, objc.Sel("scrollCellToVisibleAtRow:column:"), row, col) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436420-setscrollable?language=objc +func (m_ Matrix) SetScrollable(flag bool) { + objc.Call[objc.Void](m_, objc.Sel("setScrollable:"), flag) } // Sends the double-click action message to the target of the receiver. [Full Topic] @@ -420,41 +358,18 @@ func (m_ Matrix) SendDoubleAction() { objc.Call[objc.Void](m_, objc.Sel("sendDoubleAction")) } -// Searches the receiver and returns the last cell matching the specified tag. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436481-cellwithtag?language=objc -func (m_ Matrix) CellWithTag(tag int) Cell { - rv := objc.Call[Cell](m_, objc.Sel("cellWithTag:"), tag) - return rv -} - -// Selects the text in the cell at the specified location and returns the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436459-selecttextatrow?language=objc -func (m_ Matrix) SelectTextAtRowColumn(row int, col int) Cell { - rv := objc.Call[Cell](m_, objc.Sel("selectTextAtRow:column:"), row, col) - return rv -} - -// Deselects the selected cell or cells. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436440-deselectselectedcell?language=objc -func (m_ Matrix) DeselectSelectedCell() { - objc.Call[objc.Void](m_, objc.Sel("deselectSelectedCell")) -} - -// Inserts a new row of cells before the specified row, using the given cells. [Full Topic] +// Selects the cell at the specified row and column within the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436493-insertrow?language=objc -func (m_ Matrix) InsertRowWithCells(row int, newCells []ICell) { - objc.Call[objc.Void](m_, objc.Sel("insertRow:withCells:"), row, newCells) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436399-selectcellatrow?language=objc +func (m_ Matrix) SelectCellAtRowColumn(row int, col int) { + objc.Call[objc.Void](m_, objc.Sel("selectCellAtRow:column:"), row, col) } -// Specifies whether the cells in the matrix are scrollable. [Full Topic] +// Removes the specified column at from the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436420-setscrollable?language=objc -func (m_ Matrix) SetScrollable(flag bool) { - objc.Call[objc.Void](m_, objc.Sel("setScrollable:"), flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436397-removecolumn?language=objc +func (m_ Matrix) RemoveColumn(col int) { + objc.Call[objc.Void](m_, objc.Sel("removeColumn:"), col) } // Deselects all cells in the receiver and, if necessary, redisplays the receiver. [Full Topic] @@ -464,18 +379,27 @@ func (m_ Matrix) DeselectAllCells() { objc.Call[objc.Void](m_, objc.Sel("deselectAllCells")) } -// Sets the tooltip for the cell. [Full Topic] +// Creates a new cell at the location specified by the given row and column in the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436372-settooltip?language=objc -func (m_ Matrix) SetToolTipForCell(toolTipString string, cell ICell) { - objc.Call[objc.Void](m_, objc.Sel("setToolTip:forCell:"), toolTipString, cell) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436439-makecellatrow?language=objc +func (m_ Matrix) MakeCellAtRowColumn(row int, col int) Cell { + rv := objc.Call[Cell](m_, objc.Sel("makeCellAtRow:column:"), row, col) + return rv } -// Obtains the number of rows and columns in the receiver. [Full Topic] +// Programmatically selects a range of cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436423-getnumberofrows?language=objc -func (m_ Matrix) GetNumberOfRowsColumns(rowCount *int, colCount *int) { - objc.Call[objc.Void](m_, objc.Sel("getNumberOfRows:columns:"), rowCount, colCount) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436405-setselectionfrom?language=objc +func (m_ Matrix) SetSelectionFromToAnchorHighlight(startPos int, endPos int, anchorPos int, lit bool) { + objc.Call[objc.Void](m_, objc.Sel("setSelectionFrom:to:anchor:highlight:"), startPos, endPos, anchorPos, lit) +} + +// Returns the tooltip for the specified cell. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436401-tooltipforcell?language=objc +func (m_ Matrix) ToolTipForCell(cell ICell) string { + rv := objc.Call[string](m_, objc.Sel("toolTipForCell:"), cell) + return rv } // Specifies whether the receiver's size information is validated. [Full Topic] @@ -485,154 +409,147 @@ func (m_ Matrix) SetValidateSize(flag bool) { objc.Call[objc.Void](m_, objc.Sel("setValidateSize:"), flag) } -// Returns the cell at the specified row and column. [Full Topic] +// Requests permission to end editing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436424-cellatrow?language=objc -func (m_ Matrix) CellAtRowColumn(row int, col int) Cell { - rv := objc.Call[Cell](m_, objc.Sel("cellAtRow:column:"), row, col) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436509-textshouldendediting?language=objc +func (m_ Matrix) TextShouldEndEditing(textObject IText) bool { + rv := objc.Call[bool](m_, objc.Sel("textShouldEndEditing:"), textObject) return rv } -// Highlights or unhighlights the cell at the specified row and column location. [Full Topic] +// Adds a new column of cells to the right of the last column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436499-highlightcell?language=objc -func (m_ Matrix) HighlightCellAtRowColumn(flag bool, row int, col int) { - objc.Call[objc.Void](m_, objc.Sel("highlightCell:atRow:column:"), flag, row, col) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436419-addcolumn?language=objc +func (m_ Matrix) AddColumn() { + objc.Call[objc.Void](m_, objc.Sel("addColumn")) } -// Removes the specified column at from the receiver. [Full Topic] +// Changes the number of rows and columns in the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436397-removecolumn?language=objc -func (m_ Matrix) RemoveColumn(col int) { - objc.Call[objc.Void](m_, objc.Sel("removeColumn:"), col) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436452-renewrows?language=objc +func (m_ Matrix) RenewRowsColumns(newRows int, newCols int) { + objc.Call[objc.Void](m_, objc.Sel("renewRows:columns:"), newRows, newCols) } -// Inserts a new column of cells at the specified location. . [Full Topic] +// Searches the receiver for the specified cell and returns the row and column of the cell [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436376-insertcolumn?language=objc -func (m_ Matrix) InsertColumn(column int) { - objc.Call[objc.Void](m_, objc.Sel("insertColumn:"), column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436421-getrow?language=objc +func (m_ Matrix) GetRowColumnOfCell(row *int, col *int, cell ICell) bool { + rv := objc.Call[bool](m_, objc.Sel("getRow:column:ofCell:"), row, col, cell) + return rv } -// Sorts the receiver’s cells in ascending order as defined by the specified comparison function. [Full Topic] +// Invoked when text editing ends. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436468-sortusingfunction?language=objc -func (m_ Matrix) SortUsingFunctionContext(compare func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) { - objc.Call[objc.Void](m_, objc.Sel("sortUsingFunction:context:"), compare, context) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436426-textdidendediting?language=objc +func (m_ Matrix) TextDidEndEditing(notification foundation.INotification) { + objc.Call[objc.Void](m_, objc.Sel("textDidEndEditing:"), notification) } -// A Boolean that indicates whether the matrix auto-recalculates its cell size. [Full Topic] +// Obtains the number of rows and columns in the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436501-autorecalculatescellsize?language=objc -func (m_ Matrix) AutorecalculatesCellSize() bool { - rv := objc.Call[bool](m_, objc.Sel("autorecalculatesCellSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436423-getnumberofrows?language=objc +func (m_ Matrix) GetNumberOfRowsColumns(rowCount *int, colCount *int) { + objc.Call[objc.Void](m_, objc.Sel("getNumberOfRows:columns:"), rowCount, colCount) } -// A Boolean that indicates whether the matrix auto-recalculates its cell size. [Full Topic] +// Sets the state of the cell at specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436501-autorecalculatescellsize?language=objc -func (m_ Matrix) SetAutorecalculatesCellSize(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAutorecalculatesCellSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436479-setstate?language=objc +func (m_ Matrix) SetStateAtRowColumn(value int, row int, col int) { + objc.Call[objc.Void](m_, objc.Sel("setState:atRow:column:"), value, row, col) } -// A Boolean that indicates whether the matrix draws the background within each of its cells. [Full Topic] +// The flags in effect at the mouse-down event that started the current tracking session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436379-drawscellbackground?language=objc -func (m_ Matrix) DrawsCellBackground() bool { - rv := objc.Call[bool](m_, objc.Sel("drawsCellBackground")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436487-mousedownflags?language=objc +func (m_ Matrix) MouseDownFlags() int { + rv := objc.Call[int](m_, objc.Sel("mouseDownFlags")) return rv } -// A Boolean that indicates whether the matrix draws the background within each of its cells. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436379-drawscellbackground?language=objc -func (m_ Matrix) SetDrawsCellBackground(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setDrawsCellBackground:"), value) -} - -// The number of columns in the matrix. [Full Topic] +// The action sent to the target of the receiver when the user double-clicks a cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436461-numberofcolumns?language=objc -func (m_ Matrix) NumberOfColumns() int { - rv := objc.Call[int](m_, objc.Sel("numberOfColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436469-doubleaction?language=objc +func (m_ Matrix) DoubleAction() objc.Selector { + rv := objc.Call[objc.Selector](m_, objc.Sel("doubleAction")) return rv } -// The size of each cell in the matrix. [Full Topic] +// The action sent to the target of the receiver when the user double-clicks a cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436497-cellsize?language=objc -func (m_ Matrix) CellSize() foundation.Size { - rv := objc.Call[foundation.Size](m_, objc.Sel("cellSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436469-doubleaction?language=objc +func (m_ Matrix) SetDoubleAction(value objc.Selector) { + objc.Call[objc.Void](m_, objc.Sel("setDoubleAction:"), value) } -// The size of each cell in the matrix. [Full Topic] +// An array containing all of the matrix’s highlighted cells plus its selected cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436497-cellsize?language=objc -func (m_ Matrix) SetCellSize(value foundation.Size) { - objc.Call[objc.Void](m_, objc.Sel("setCellSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436434-selectedcells?language=objc +func (m_ Matrix) SelectedCells() []Cell { + rv := objc.Call[[]Cell](m_, objc.Sel("selectedCells")) + return rv } -// The prototype cell that’s copied whenever the matrix creates a new cell. [Full Topic] +// A Boolean that indicates whether pressing the Tab key advances the key cell to the next selectable cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436406-prototype?language=objc -func (m_ Matrix) Prototype() Cell { - rv := objc.Call[Cell](m_, objc.Sel("prototype")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436491-tabkeytraversescells?language=objc +func (m_ Matrix) TabKeyTraversesCells() bool { + rv := objc.Call[bool](m_, objc.Sel("tabKeyTraversesCells")) return rv } -// The prototype cell that’s copied whenever the matrix creates a new cell. [Full Topic] +// A Boolean that indicates whether pressing the Tab key advances the key cell to the next selectable cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436406-prototype?language=objc -func (m_ Matrix) SetPrototype(value ICell) { - objc.Call[objc.Void](m_, objc.Sel("setPrototype:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436491-tabkeytraversescells?language=objc +func (m_ Matrix) SetTabKeyTraversesCells(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setTabKeyTraversesCells:"), value) } -// The action sent to the target of the receiver when the user double-clicks a cell. [Full Topic] +// The most recently selected cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436469-doubleaction?language=objc -func (m_ Matrix) DoubleAction() objc.Selector { - rv := objc.Call[objc.Selector](m_, objc.Sel("doubleAction")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436472-selectedcell?language=objc +func (m_ Matrix) SelectedCell() Cell { + rv := objc.Call[Cell](m_, objc.Sel("selectedCell")) return rv } -// The action sent to the target of the receiver when the user double-clicks a cell. [Full Topic] +// A Boolean that indicates whether a radio-mode matrix supports an empty selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436469-doubleaction?language=objc -func (m_ Matrix) SetDoubleAction(value objc.Selector) { - objc.Call[objc.Void](m_, objc.Sel("setDoubleAction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436394-allowsemptyselection?language=objc +func (m_ Matrix) AllowsEmptySelection() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsEmptySelection")) + return rv } -// The row number of the selected cell. [Full Topic] +// A Boolean that indicates whether a radio-mode matrix supports an empty selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436377-selectedrow?language=objc -func (m_ Matrix) SelectedRow() int { - rv := objc.Call[int](m_, objc.Sel("selectedRow")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436394-allowsemptyselection?language=objc +func (m_ Matrix) SetAllowsEmptySelection(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsEmptySelection:"), value) } -// A Boolean that indicates whether pressing the Tab key advances the key cell to the next selectable cell. [Full Topic] +// An array containing the cells of the matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436491-tabkeytraversescells?language=objc -func (m_ Matrix) TabKeyTraversesCells() bool { - rv := objc.Call[bool](m_, objc.Sel("tabKeyTraversesCells")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436464-cells?language=objc +func (m_ Matrix) Cells() []Cell { + rv := objc.Call[[]Cell](m_, objc.Sel("cells")) return rv } -// A Boolean that indicates whether pressing the Tab key advances the key cell to the next selectable cell. [Full Topic] +// The background color of the matrix’s cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436491-tabkeytraversescells?language=objc -func (m_ Matrix) SetTabKeyTraversesCells(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setTabKeyTraversesCells:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436449-cellbackgroundcolor?language=objc +func (m_ Matrix) CellBackgroundColor() Color { + rv := objc.Call[Color](m_, objc.Sel("cellBackgroundColor")) + return rv } -// The number of rows in the matrix. [Full Topic] +// The background color of the matrix’s cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436507-numberofrows?language=objc -func (m_ Matrix) NumberOfRows() int { - rv := objc.Call[int](m_, objc.Sel("numberOfRows")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436449-cellbackgroundcolor?language=objc +func (m_ Matrix) SetCellBackgroundColor(value IColor) { + objc.Call[objc.Void](m_, objc.Sel("setCellBackgroundColor:"), value) } // A Boolean that indicates whether the user can select a rectangle of cells in the receiver by dragging the cursor. [Full Topic] @@ -650,75 +567,90 @@ func (m_ Matrix) SetSelectionByRect(value bool) { objc.Call[objc.Void](m_, objc.Sel("setSelectionByRect:"), value) } -// The cell that will be clicked when the user presses the Space bar. [Full Topic] +// A Boolean that indicates whether the receiver is automatically scrolled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436411-keycell?language=objc -func (m_ Matrix) KeyCell() Cell { - rv := objc.Call[Cell](m_, objc.Sel("keyCell")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436410-autoscroll?language=objc +func (m_ Matrix) IsAutoscroll() bool { + rv := objc.Call[bool](m_, objc.Sel("isAutoscroll")) return rv } -// The cell that will be clicked when the user presses the Space bar. [Full Topic] +// A Boolean that indicates whether the receiver is automatically scrolled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436411-keycell?language=objc -func (m_ Matrix) SetKeyCell(value ICell) { - objc.Call[objc.Void](m_, objc.Sel("setKeyCell:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436410-autoscroll?language=objc +func (m_ Matrix) SetAutoscroll(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAutoscroll:"), value) } -// The most recently selected cell. [Full Topic] +// A Boolean that indicates whether the matrix draws the background within each of its cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436472-selectedcell?language=objc -func (m_ Matrix) SelectedCell() Cell { - rv := objc.Call[Cell](m_, objc.Sel("selectedCell")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436379-drawscellbackground?language=objc +func (m_ Matrix) DrawsCellBackground() bool { + rv := objc.Call[bool](m_, objc.Sel("drawsCellBackground")) return rv } -// The background color of the matrix (the space between the cells). [Full Topic] +// A Boolean that indicates whether the matrix draws the background within each of its cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436442-backgroundcolor?language=objc -func (m_ Matrix) BackgroundColor() Color { - rv := objc.Call[Color](m_, objc.Sel("backgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436379-drawscellbackground?language=objc +func (m_ Matrix) SetDrawsCellBackground(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setDrawsCellBackground:"), value) +} + +// A Boolean that indicates whether the matrix auto-recalculates its cell size. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436501-autorecalculatescellsize?language=objc +func (m_ Matrix) AutorecalculatesCellSize() bool { + rv := objc.Call[bool](m_, objc.Sel("autorecalculatesCellSize")) return rv } -// The background color of the matrix (the space between the cells). [Full Topic] +// A Boolean that indicates whether the matrix auto-recalculates its cell size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436442-backgroundcolor?language=objc -func (m_ Matrix) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](m_, objc.Sel("setBackgroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436501-autorecalculatescellsize?language=objc +func (m_ Matrix) SetAutorecalculatesCellSize(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAutorecalculatesCellSize:"), value) } -// The background color of the matrix’s cells. [Full Topic] +// The delegate for messages from the field editor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436449-cellbackgroundcolor?language=objc -func (m_ Matrix) CellBackgroundColor() Color { - rv := objc.Call[Color](m_, objc.Sel("cellBackgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436404-delegate?language=objc +func (m_ Matrix) Delegate() MatrixDelegateObject { + rv := objc.Call[MatrixDelegateObject](m_, objc.Sel("delegate")) return rv } -// The background color of the matrix’s cells. [Full Topic] +// The delegate for messages from the field editor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436449-cellbackgroundcolor?language=objc -func (m_ Matrix) SetCellBackgroundColor(value IColor) { - objc.Call[objc.Void](m_, objc.Sel("setCellBackgroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436404-delegate?language=objc +func (m_ Matrix) SetDelegate(value PMatrixDelegate) { + po0 := objc.WrapAsProtocol("NSMatrixDelegate", value) + objc.SetAssociatedObject(m_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](m_, objc.Sel("setDelegate:"), po0) } -// The flags in effect at the mouse-down event that started the current tracking session. [Full Topic] +// The delegate for messages from the field editor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436487-mousedownflags?language=objc -func (m_ Matrix) MouseDownFlags() int { - rv := objc.Call[int](m_, objc.Sel("mouseDownFlags")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436404-delegate?language=objc +func (m_ Matrix) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setDelegate:"), valueObject) } -// An array containing the cells of the matrix. [Full Topic] +// The background color of the matrix (the space between the cells). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436464-cells?language=objc -func (m_ Matrix) Cells() []Cell { - rv := objc.Call[[]Cell](m_, objc.Sel("cells")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436442-backgroundcolor?language=objc +func (m_ Matrix) BackgroundColor() Color { + rv := objc.Call[Color](m_, objc.Sel("backgroundColor")) return rv } +// The background color of the matrix (the space between the cells). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436442-backgroundcolor?language=objc +func (m_ Matrix) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](m_, objc.Sel("setBackgroundColor:"), value) +} + // A Boolean that indicates whether the matrix draws its background. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436447-drawsbackground?language=objc @@ -734,66 +666,65 @@ func (m_ Matrix) SetDrawsBackground(value bool) { objc.Call[objc.Void](m_, objc.Sel("setDrawsBackground:"), value) } -// A Boolean that indicates whether the receiver is automatically scrolled. [Full Topic] +// The size of each cell in the matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436410-autoscroll?language=objc -func (m_ Matrix) IsAutoscroll() bool { - rv := objc.Call[bool](m_, objc.Sel("isAutoscroll")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436497-cellsize?language=objc +func (m_ Matrix) CellSize() foundation.Size { + rv := objc.Call[foundation.Size](m_, objc.Sel("cellSize")) return rv } -// A Boolean that indicates whether the receiver is automatically scrolled. [Full Topic] +// The size of each cell in the matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436410-autoscroll?language=objc -func (m_ Matrix) SetAutoscroll(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAutoscroll:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436497-cellsize?language=objc +func (m_ Matrix) SetCellSize(value foundation.Size) { + objc.Call[objc.Void](m_, objc.Sel("setCellSize:"), value) } -// The column number of the selected cell. [Full Topic] +// The cell that will be clicked when the user presses the Space bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436389-selectedcolumn?language=objc -func (m_ Matrix) SelectedColumn() int { - rv := objc.Call[int](m_, objc.Sel("selectedColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436411-keycell?language=objc +func (m_ Matrix) KeyCell() Cell { + rv := objc.Call[Cell](m_, objc.Sel("keyCell")) return rv } -// A Boolean that indicates whether a radio-mode matrix supports an empty selection. [Full Topic] +// The cell that will be clicked when the user presses the Space bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436394-allowsemptyselection?language=objc -func (m_ Matrix) AllowsEmptySelection() bool { - rv := objc.Call[bool](m_, objc.Sel("allowsEmptySelection")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436411-keycell?language=objc +func (m_ Matrix) SetKeyCell(value ICell) { + objc.Call[objc.Void](m_, objc.Sel("setKeyCell:"), value) } -// A Boolean that indicates whether a radio-mode matrix supports an empty selection. [Full Topic] +// The column number of the selected cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436394-allowsemptyselection?language=objc -func (m_ Matrix) SetAllowsEmptySelection(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAllowsEmptySelection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436389-selectedcolumn?language=objc +func (m_ Matrix) SelectedColumn() int { + rv := objc.Call[int](m_, objc.Sel("selectedColumn")) + return rv } -// The delegate for messages from the field editor. [Full Topic] +// The row number of the selected cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436404-delegate?language=objc -func (m_ Matrix) Delegate() MatrixDelegateObject { - rv := objc.Call[MatrixDelegateObject](m_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436377-selectedrow?language=objc +func (m_ Matrix) SelectedRow() int { + rv := objc.Call[int](m_, objc.Sel("selectedRow")) return rv } -// The delegate for messages from the field editor. [Full Topic] +// The selection mode of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436404-delegate?language=objc -func (m_ Matrix) SetDelegate(value PMatrixDelegate) { - po0 := objc.WrapAsProtocol("NSMatrixDelegate", value) - objc.SetAssociatedObject(m_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](m_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436390-mode?language=objc +func (m_ Matrix) Mode() MatrixMode { + rv := objc.Call[MatrixMode](m_, objc.Sel("mode")) + return rv } -// The delegate for messages from the field editor. [Full Topic] +// The selection mode of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436404-delegate?language=objc -func (m_ Matrix) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436390-mode?language=objc +func (m_ Matrix) SetMode(value MatrixMode) { + objc.Call[objc.Void](m_, objc.Sel("setMode:"), value) } // A Boolean that indicates whether the cell sizes change when the receiver is resized. [Full Topic] @@ -811,21 +742,6 @@ func (m_ Matrix) SetAutosizesCells(value bool) { objc.Call[objc.Void](m_, objc.Sel("setAutosizesCells:"), value) } -// The vertical and horizontal spacing between cells in the matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436398-intercellspacing?language=objc -func (m_ Matrix) IntercellSpacing() foundation.Size { - rv := objc.Call[foundation.Size](m_, objc.Sel("intercellSpacing")) - return rv -} - -// The vertical and horizontal spacing between cells in the matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436398-intercellspacing?language=objc -func (m_ Matrix) SetIntercellSpacing(value foundation.Size) { - objc.Call[objc.Void](m_, objc.Sel("setIntercellSpacing:"), value) -} - // The subclass of NSCell that the matrix uses when creating new (empty) cells. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436445-cellclass?language=objc @@ -841,25 +757,48 @@ func (m_ Matrix) SetCellClass(value objc.IClass) { objc.Call[objc.Void](m_, objc.Sel("setCellClass:"), value) } -// An array containing all of the matrix’s highlighted cells plus its selected cell. [Full Topic] +// The prototype cell that’s copied whenever the matrix creates a new cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436434-selectedcells?language=objc -func (m_ Matrix) SelectedCells() []Cell { - rv := objc.Call[[]Cell](m_, objc.Sel("selectedCells")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436406-prototype?language=objc +func (m_ Matrix) Prototype() Cell { + rv := objc.Call[Cell](m_, objc.Sel("prototype")) return rv } -// The selection mode of the receiver. [Full Topic] +// The prototype cell that’s copied whenever the matrix creates a new cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436390-mode?language=objc -func (m_ Matrix) Mode() MatrixMode { - rv := objc.Call[MatrixMode](m_, objc.Sel("mode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436406-prototype?language=objc +func (m_ Matrix) SetPrototype(value ICell) { + objc.Call[objc.Void](m_, objc.Sel("setPrototype:"), value) +} + +// The number of rows in the matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436507-numberofrows?language=objc +func (m_ Matrix) NumberOfRows() int { + rv := objc.Call[int](m_, objc.Sel("numberOfRows")) return rv } -// The selection mode of the receiver. [Full Topic] +// The vertical and horizontal spacing between cells in the matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436390-mode?language=objc -func (m_ Matrix) SetMode(value MatrixMode) { - objc.Call[objc.Void](m_, objc.Sel("setMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436398-intercellspacing?language=objc +func (m_ Matrix) IntercellSpacing() foundation.Size { + rv := objc.Call[foundation.Size](m_, objc.Sel("intercellSpacing")) + return rv +} + +// The vertical and horizontal spacing between cells in the matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436398-intercellspacing?language=objc +func (m_ Matrix) SetIntercellSpacing(value foundation.Size) { + objc.Call[objc.Void](m_, objc.Sel("setIntercellSpacing:"), value) +} + +// The number of columns in the matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436461-numberofcolumns?language=objc +func (m_ Matrix) NumberOfColumns() int { + rv := objc.Call[int](m_, objc.Sel("numberOfColumns")) + return rv } diff --git a/macos/appkit/media_library_browser_controller.gen.go b/macos/appkit/media_library_browser_controller.gen.go index 9a3f2b3b..5e4be623 100644 --- a/macos/appkit/media_library_browser_controller.gen.go +++ b/macos/appkit/media_library_browser_controller.gen.go @@ -84,6 +84,21 @@ func (m_ MediaLibraryBrowserController) SetVisible(value bool) { objc.Call[objc.Void](m_, objc.Sel("setVisible:"), value) } +// Returns the shared Media Library Browser instance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmedialibrarybrowsercontroller/1423485-sharedmedialibrarybrowsercontrol?language=objc +func (mc _MediaLibraryBrowserControllerClass) SharedMediaLibraryBrowserController() MediaLibraryBrowserController { + rv := objc.Call[MediaLibraryBrowserController](mc, objc.Sel("sharedMediaLibraryBrowserController")) + return rv +} + +// Returns the shared Media Library Browser instance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmedialibrarybrowsercontroller/1423485-sharedmedialibrarybrowsercontrol?language=objc +func MediaLibraryBrowserController_SharedMediaLibraryBrowserController() MediaLibraryBrowserController { + return MediaLibraryBrowserControllerClass.SharedMediaLibraryBrowserController() +} + // The frame, in global coordinates, used to display the Media Library Browser panel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmedialibrarybrowsercontroller/1423477-frame?language=objc @@ -113,18 +128,3 @@ func (m_ MediaLibraryBrowserController) MediaLibraries() MediaLibrary { func (m_ MediaLibraryBrowserController) SetMediaLibraries(value MediaLibrary) { objc.Call[objc.Void](m_, objc.Sel("setMediaLibraries:"), value) } - -// Returns the shared Media Library Browser instance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmedialibrarybrowsercontroller/1423485-sharedmedialibrarybrowsercontrol?language=objc -func (mc _MediaLibraryBrowserControllerClass) SharedMediaLibraryBrowserController() MediaLibraryBrowserController { - rv := objc.Call[MediaLibraryBrowserController](mc, objc.Sel("sharedMediaLibraryBrowserController")) - return rv -} - -// Returns the shared Media Library Browser instance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmedialibrarybrowsercontroller/1423485-sharedmedialibrarybrowsercontrol?language=objc -func MediaLibraryBrowserController_SharedMediaLibraryBrowserController() MediaLibraryBrowserController { - return MediaLibraryBrowserControllerClass.SharedMediaLibraryBrowserController() -} diff --git a/macos/appkit/menu.gen.go b/macos/appkit/menu.gen.go index d41b3998..67698152 100644 --- a/macos/appkit/menu.gen.go +++ b/macos/appkit/menu.gen.go @@ -19,57 +19,57 @@ type _MenuClass struct { // An interface definition for the [Menu] class. type IMenu interface { objc.IObject - ItemWithTitle(title string) MenuItem - IndexOfItemWithTag(tag int) int - InsertItemWithTitleActionKeyEquivalentAtIndex(string_ string, selector objc.Selector, charCode string, index int) MenuItem - CancelTrackingWithoutAnimation() - InsertItemAtIndex(newItem IMenuItem, index int) - SetSubmenuForItem(menu IMenu, item IMenuItem) - PopUpMenuPositioningItemAtLocationInView(item IMenuItem, location foundation.Point, view IView) bool - IndexOfItemWithTitle(title string) int - IndexOfItemWithSubmenu(submenu IMenu) int - RemoveAllItems() ItemAtIndex(index int) MenuItem + PerformActionForItemAtIndex(index int) + IndexOfItemWithSubmenu(submenu IMenu) int CancelTracking() - AddItemWithTitleActionKeyEquivalent(string_ string, selector objc.Selector, charCode string) MenuItem AddItem(newItem IMenuItem) - IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int - PerformActionForItemAtIndex(index int) - PerformKeyEquivalent(event IEvent) bool - IndexOfItem(item IMenuItem) int + IndexOfItemWithTag(tag int) int + InsertItemWithTitleActionKeyEquivalentAtIndex(string_ string, selector objc.Selector, charCode string, index int) MenuItem + ItemChanged(item IMenuItem) + RemoveAllItems() RemoveItemAtIndex(index int) RemoveItem(item IMenuItem) + AddItemWithTitleActionKeyEquivalent(string_ string, selector objc.Selector, charCode string) MenuItem + ItemWithTitle(title string) MenuItem IndexOfItemWithRepresentedObject(object objc.IObject) int + PerformKeyEquivalent(event IEvent) bool + SetSubmenuForItem(menu IMenu, item IMenuItem) + IndexOfItem(item IMenuItem) int SubmenuAction(sender objc.IObject) - ItemChanged(item IMenuItem) - ItemWithTag(tag int) MenuItem + PopUpMenuPositioningItemAtLocationInView(item IMenuItem, location foundation.Point, view IView) bool + IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int + IndexOfItemWithTitle(title string) int Update() - Title() string - SetTitle(value string) - PropertiesToUpdate() MenuProperties - MenuBarHeight() float64 - Font() Font - SetFont(value IFont) - Size() foundation.Size - NumberOfItems() int - Supermenu() Menu - SetSupermenu(value IMenu) - ShowsStateColumn() bool - SetShowsStateColumn(value bool) + ItemWithTag(tag int) MenuItem + InsertItemAtIndex(newItem IMenuItem, index int) + CancelTrackingWithoutAnimation() AllowsContextMenuPlugIns() bool SetAllowsContextMenuPlugIns(value bool) + Supermenu() Menu + SetSupermenu(value IMenu) ItemArray() []MenuItem SetItemArray(value []IMenuItem) + MenuBarHeight() float64 + HighlightedItem() MenuItem + AutoenablesItems() bool + SetAutoenablesItems(value bool) Delegate() MenuDelegateObject SetDelegate(value PMenuDelegate) SetDelegateObject(valueObject objc.IObject) - AutoenablesItems() bool - SetAutoenablesItems(value bool) - HighlightedItem() MenuItem UserInterfaceLayoutDirection() UserInterfaceLayoutDirection SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) MinimumWidth() float64 SetMinimumWidth(value float64) + Font() Font + SetFont(value IFont) + PropertiesToUpdate() MenuProperties + NumberOfItems() int + Title() string + SetTitle(value string) + ShowsStateColumn() bool + SetShowsStateColumn(value bool) + Size() foundation.Size } // An object that manages an app’s menus. [Full Topic] @@ -119,79 +119,19 @@ func (m_ Menu) Init() Menu { return rv } -// Returns the first menu item in the menu with a specified title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518248-itemwithtitle?language=objc -func (m_ Menu) ItemWithTitle(title string) MenuItem { - rv := objc.Call[MenuItem](m_, objc.Sel("itemWithTitle:"), title) - return rv -} - -// Returns the index of the first menu item in the menu identified by a tag. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518164-indexofitemwithtag?language=objc -func (m_ Menu) IndexOfItemWithTag(tag int) int { - rv := objc.Call[int](m_, objc.Sel("indexOfItemWithTag:"), tag) - return rv -} - -// Creates and adds a menu item at a specified location in the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518146-insertitemwithtitle?language=objc -func (m_ Menu) InsertItemWithTitleActionKeyEquivalentAtIndex(string_ string, selector objc.Selector, charCode string, index int) MenuItem { - rv := objc.Call[MenuItem](m_, objc.Sel("insertItemWithTitle:action:keyEquivalent:atIndex:"), string_, selector, charCode, index) - return rv -} - -// Dismisses the menu and ends all menu tracking without displaying the associated animation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518244-canceltrackingwithoutanimation?language=objc -func (m_ Menu) CancelTrackingWithoutAnimation() { - objc.Call[objc.Void](m_, objc.Sel("cancelTrackingWithoutAnimation")) -} - -// Inserts a menu item into the menu at a specific location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518201-insertitem?language=objc -func (m_ Menu) InsertItemAtIndex(newItem IMenuItem, index int) { - objc.Call[objc.Void](m_, objc.Sel("insertItem:atIndex:"), newItem, index) -} - -// Assigns a menu to be a submenu of the menu controlled by a given menu item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518194-setsubmenu?language=objc -func (m_ Menu) SetSubmenuForItem(menu IMenu, item IMenuItem) { - objc.Call[objc.Void](m_, objc.Sel("setSubmenu:forItem:"), menu, item) -} - -// Pops up the menu at the specified location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518212-popupmenupositioningitem?language=objc -func (m_ Menu) PopUpMenuPositioningItemAtLocationInView(item IMenuItem, location foundation.Point, view IView) bool { - rv := objc.Call[bool](m_, objc.Sel("popUpMenuPositioningItem:atLocation:inView:"), item, location, view) - return rv -} - -// Returns the index of the first menu item in the menu that has a specified title. [Full Topic] +// Returns the menu item at a specific location of the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518237-indexofitemwithtitle?language=objc -func (m_ Menu) IndexOfItemWithTitle(title string) int { - rv := objc.Call[int](m_, objc.Sel("indexOfItemWithTitle:"), title) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518218-itematindex?language=objc +func (m_ Menu) ItemAtIndex(index int) MenuItem { + rv := objc.Call[MenuItem](m_, objc.Sel("itemAtIndex:"), index) return rv } -// Displays a contextual menu over a view for an event using a specified font. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518165-popupcontextmenu?language=objc -func (mc _MenuClass) PopUpContextMenuWithEventForViewWithFont(menu IMenu, event IEvent, view IView, font IFont) { - objc.Call[objc.Void](mc, objc.Sel("popUpContextMenu:withEvent:forView:withFont:"), menu, event, view, font) -} - -// Displays a contextual menu over a view for an event using a specified font. [Full Topic] +// Causes the application to send the action message of a specified menu item to its target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518165-popupcontextmenu?language=objc -func Menu_PopUpContextMenuWithEventForViewWithFont(menu IMenu, event IEvent, view IView, font IFont) { - MenuClass.PopUpContextMenuWithEventForViewWithFont(menu, event, view, font) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518210-performactionforitematindex?language=objc +func (m_ Menu) PerformActionForItemAtIndex(index int) { + objc.Call[objc.Void](m_, objc.Sel("performActionForItemAtIndex:"), index) } // Returns the index of the menu item in the menu with the given submenu. [Full Topic] @@ -202,21 +142,6 @@ func (m_ Menu) IndexOfItemWithSubmenu(submenu IMenu) int { return rv } -// Removes all the menu items in the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518234-removeallitems?language=objc -func (m_ Menu) RemoveAllItems() { - objc.Call[objc.Void](m_, objc.Sel("removeAllItems")) -} - -// Returns the menu item at a specific location of the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518218-itematindex?language=objc -func (m_ Menu) ItemAtIndex(index int) MenuItem { - rv := objc.Call[MenuItem](m_, objc.Sel("itemAtIndex:"), index) - return rv -} - // Dismisses the menu and ends all menu tracking. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518150-canceltracking?language=objc @@ -224,14 +149,6 @@ func (m_ Menu) CancelTracking() { objc.Call[objc.Void](m_, objc.Sel("cancelTracking")) } -// Creates a new menu item and adds it to the end of the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518181-additemwithtitle?language=objc -func (m_ Menu) AddItemWithTitleActionKeyEquivalent(string_ string, selector objc.Selector, charCode string) MenuItem { - rv := objc.Call[MenuItem](m_, objc.Sel("addItemWithTitle:action:keyEquivalent:"), string_, selector, charCode) - return rv -} - // Adds a menu item to the end of the menu. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518176-additem?language=objc @@ -239,35 +156,34 @@ func (m_ Menu) AddItem(newItem IMenuItem) { objc.Call[objc.Void](m_, objc.Sel("addItem:"), newItem) } -// Returns the index of the first menu item in the menu that has a specified action and target. [Full Topic] +// Returns the index of the first menu item in the menu identified by a tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518153-indexofitemwithtarget?language=objc -func (m_ Menu) IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int { - rv := objc.Call[int](m_, objc.Sel("indexOfItemWithTarget:andAction:"), target, actionSelector) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518164-indexofitemwithtag?language=objc +func (m_ Menu) IndexOfItemWithTag(tag int) int { + rv := objc.Call[int](m_, objc.Sel("indexOfItemWithTag:"), tag) return rv } -// Causes the application to send the action message of a specified menu item to its target. [Full Topic] +// Creates and adds a menu item at a specified location in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518210-performactionforitematindex?language=objc -func (m_ Menu) PerformActionForItemAtIndex(index int) { - objc.Call[objc.Void](m_, objc.Sel("performActionForItemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518146-insertitemwithtitle?language=objc +func (m_ Menu) InsertItemWithTitleActionKeyEquivalentAtIndex(string_ string, selector objc.Selector, charCode string, index int) MenuItem { + rv := objc.Call[MenuItem](m_, objc.Sel("insertItemWithTitle:action:keyEquivalent:atIndex:"), string_, selector, charCode, index) + return rv } -// Performs the action for the menu item that corresponds to the given key equivalent. [Full Topic] +// Invoked when a menu item is modified visually (for example, its title changes). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518198-performkeyequivalent?language=objc -func (m_ Menu) PerformKeyEquivalent(event IEvent) bool { - rv := objc.Call[bool](m_, objc.Sel("performKeyEquivalent:"), event) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518154-itemchanged?language=objc +func (m_ Menu) ItemChanged(item IMenuItem) { + objc.Call[objc.Void](m_, objc.Sel("itemChanged:"), item) } -// Returns the index identifying the location of a specified menu item in the menu. [Full Topic] +// Removes all the menu items in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518178-indexofitem?language=objc -func (m_ Menu) IndexOfItem(item IMenuItem) int { - rv := objc.Call[int](m_, objc.Sel("indexOfItem:"), item) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518234-removeallitems?language=objc +func (m_ Menu) RemoveAllItems() { + objc.Call[objc.Void](m_, objc.Sel("removeAllItems")) } // Removes the menu item at a specified location in the menu. [Full Topic] @@ -298,6 +214,22 @@ func Menu_SetMenuBarVisible(visible bool) { MenuClass.SetMenuBarVisible(visible) } +// Creates a new menu item and adds it to the end of the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518181-additemwithtitle?language=objc +func (m_ Menu) AddItemWithTitleActionKeyEquivalent(string_ string, selector objc.Selector, charCode string) MenuItem { + rv := objc.Call[MenuItem](m_, objc.Sel("addItemWithTitle:action:keyEquivalent:"), string_, selector, charCode) + return rv +} + +// Returns the first menu item in the menu with a specified title. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518248-itemwithtitle?language=objc +func (m_ Menu) ItemWithTitle(title string) MenuItem { + rv := objc.Call[MenuItem](m_, objc.Sel("itemWithTitle:"), title) + return rv +} + // Returns the index of the first menu item in the menu that has a given represented object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518175-indexofitemwithrepresentedobject?language=objc @@ -306,6 +238,29 @@ func (m_ Menu) IndexOfItemWithRepresentedObject(object objc.IObject) int { return rv } +// Performs the action for the menu item that corresponds to the given key equivalent. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518198-performkeyequivalent?language=objc +func (m_ Menu) PerformKeyEquivalent(event IEvent) bool { + rv := objc.Call[bool](m_, objc.Sel("performKeyEquivalent:"), event) + return rv +} + +// Assigns a menu to be a submenu of the menu controlled by a given menu item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518194-setsubmenu?language=objc +func (m_ Menu) SetSubmenuForItem(menu IMenu, item IMenuItem) { + objc.Call[objc.Void](m_, objc.Sel("setSubmenu:forItem:"), menu, item) +} + +// Returns the index identifying the location of a specified menu item in the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518178-indexofitem?language=objc +func (m_ Menu) IndexOfItem(item IMenuItem) int { + rv := objc.Call[int](m_, objc.Sel("indexOfItem:"), item) + return rv +} + // The action method assigned to menu items that open submenus. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518179-submenuaction?language=objc @@ -313,6 +268,22 @@ func (m_ Menu) SubmenuAction(sender objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("submenuAction:"), sender) } +// Pops up the menu at the specified location. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518212-popupmenupositioningitem?language=objc +func (m_ Menu) PopUpMenuPositioningItemAtLocationInView(item IMenuItem, location foundation.Point, view IView) bool { + rv := objc.Call[bool](m_, objc.Sel("popUpMenuPositioningItem:atLocation:inView:"), item, location, view) + return rv +} + +// Returns the index of the first menu item in the menu that has a specified action and target. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518153-indexofitemwithtarget?language=objc +func (m_ Menu) IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int { + rv := objc.Call[int](m_, objc.Sel("indexOfItemWithTarget:andAction:"), target, actionSelector) + return rv +} + // Displays a contextual menu over a view for an event. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518170-popupcontextmenu?language=objc @@ -327,21 +298,6 @@ func Menu_PopUpContextMenuWithEventForView(menu IMenu, event IEvent, view IView) MenuClass.PopUpContextMenuWithEventForView(menu, event, view) } -// Invoked when a menu item is modified visually (for example, its title changes). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518154-itemchanged?language=objc -func (m_ Menu) ItemChanged(item IMenuItem) { - objc.Call[objc.Void](m_, objc.Sel("itemChanged:"), item) -} - -// Returns the first menu item in the menu with the specified tag. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518223-itemwithtag?language=objc -func (m_ Menu) ItemWithTag(tag int) MenuItem { - rv := objc.Call[MenuItem](m_, objc.Sel("itemWithTag:"), tag) - return rv -} - // Returns a Boolean value that indicates whether the menu bar is visible. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518236-menubarvisible?language=objc @@ -357,73 +313,56 @@ func Menu_MenuBarVisible() bool { return MenuClass.MenuBarVisible() } -// Enables or disables the menu items of the menu based on the NSMenuValidation informal protocol and sizes the menu to fit its current menu items if necessary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518249-update?language=objc -func (m_ Menu) Update() { - objc.Call[objc.Void](m_, objc.Sel("update")) -} - -// The title of the menu. [Full Topic] +// Returns the index of the first menu item in the menu that has a specified title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518192-title?language=objc -func (m_ Menu) Title() string { - rv := objc.Call[string](m_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518237-indexofitemwithtitle?language=objc +func (m_ Menu) IndexOfItemWithTitle(title string) int { + rv := objc.Call[int](m_, objc.Sel("indexOfItemWithTitle:"), title) return rv } -// The title of the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518192-title?language=objc -func (m_ Menu) SetTitle(value string) { - objc.Call[objc.Void](m_, objc.Sel("setTitle:"), value) -} - -// The available properties for the menu. [Full Topic] +// Enables or disables the menu items of the menu based on the NSMenuValidation informal protocol and sizes the menu to fit its current menu items if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518245-propertiestoupdate?language=objc -func (m_ Menu) PropertiesToUpdate() MenuProperties { - rv := objc.Call[MenuProperties](m_, objc.Sel("propertiesToUpdate")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518249-update?language=objc +func (m_ Menu) Update() { + objc.Call[objc.Void](m_, objc.Sel("update")) } -// The menu bar height for the main menu in pixels. [Full Topic] +// Returns the first menu item in the menu with the specified tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518141-menubarheight?language=objc -func (m_ Menu) MenuBarHeight() float64 { - rv := objc.Call[float64](m_, objc.Sel("menuBarHeight")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518223-itemwithtag?language=objc +func (m_ Menu) ItemWithTag(tag int) MenuItem { + rv := objc.Call[MenuItem](m_, objc.Sel("itemWithTag:"), tag) return rv } -// The font of the menu and its submenus. [Full Topic] +// Inserts a menu item into the menu at a specific location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518230-font?language=objc -func (m_ Menu) Font() Font { - rv := objc.Call[Font](m_, objc.Sel("font")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518201-insertitem?language=objc +func (m_ Menu) InsertItemAtIndex(newItem IMenuItem, index int) { + objc.Call[objc.Void](m_, objc.Sel("insertItem:atIndex:"), newItem, index) } -// The font of the menu and its submenus. [Full Topic] +// Dismisses the menu and ends all menu tracking without displaying the associated animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518230-font?language=objc -func (m_ Menu) SetFont(value IFont) { - objc.Call[objc.Void](m_, objc.Sel("setFont:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518244-canceltrackingwithoutanimation?language=objc +func (m_ Menu) CancelTrackingWithoutAnimation() { + objc.Call[objc.Void](m_, objc.Sel("cancelTrackingWithoutAnimation")) } -// The size of the menu in screen coordinates [Full Topic] +// Indicates whether the pop-up menu allows appending of contextual menu plug-in items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518185-size?language=objc -func (m_ Menu) Size() foundation.Size { - rv := objc.Call[foundation.Size](m_, objc.Sel("size")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518220-allowscontextmenuplugins?language=objc +func (m_ Menu) AllowsContextMenuPlugIns() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsContextMenuPlugIns")) return rv } -// The number of menu items in the menu, including separator items. [Full Topic] +// Indicates whether the pop-up menu allows appending of contextual menu plug-in items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518202-numberofitems?language=objc -func (m_ Menu) NumberOfItems() int { - rv := objc.Call[int](m_, objc.Sel("numberOfItems")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518220-allowscontextmenuplugins?language=objc +func (m_ Menu) SetAllowsContextMenuPlugIns(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsContextMenuPlugIns:"), value) } // The parent menu that contains the menu as a submenu. [Full Topic] @@ -441,49 +380,50 @@ func (m_ Menu) SetSupermenu(value IMenu) { objc.Call[objc.Void](m_, objc.Sel("setSupermenu:"), value) } -// Indicates whether the menu displays the state column. [Full Topic] +// An array containing the menu items in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518253-showsstatecolumn?language=objc -func (m_ Menu) ShowsStateColumn() bool { - rv := objc.Call[bool](m_, objc.Sel("showsStateColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518186-itemarray?language=objc +func (m_ Menu) ItemArray() []MenuItem { + rv := objc.Call[[]MenuItem](m_, objc.Sel("itemArray")) return rv } -// Indicates whether the menu displays the state column. [Full Topic] +// An array containing the menu items in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518253-showsstatecolumn?language=objc -func (m_ Menu) SetShowsStateColumn(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setShowsStateColumn:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518186-itemarray?language=objc +func (m_ Menu) SetItemArray(value []IMenuItem) { + objc.Call[objc.Void](m_, objc.Sel("setItemArray:"), value) } -// Indicates whether the pop-up menu allows appending of contextual menu plug-in items. [Full Topic] +// The menu bar height for the main menu in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518220-allowscontextmenuplugins?language=objc -func (m_ Menu) AllowsContextMenuPlugIns() bool { - rv := objc.Call[bool](m_, objc.Sel("allowsContextMenuPlugIns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518141-menubarheight?language=objc +func (m_ Menu) MenuBarHeight() float64 { + rv := objc.Call[float64](m_, objc.Sel("menuBarHeight")) return rv } -// Indicates whether the pop-up menu allows appending of contextual menu plug-in items. [Full Topic] +// Indicates the currently highlighted item in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518220-allowscontextmenuplugins?language=objc -func (m_ Menu) SetAllowsContextMenuPlugIns(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAllowsContextMenuPlugIns:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518222-highlighteditem?language=objc +func (m_ Menu) HighlightedItem() MenuItem { + rv := objc.Call[MenuItem](m_, objc.Sel("highlightedItem")) + return rv } -// An array containing the menu items in the menu. [Full Topic] +// Indicates whether the menu automatically enables and disables its menu items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518186-itemarray?language=objc -func (m_ Menu) ItemArray() []MenuItem { - rv := objc.Call[[]MenuItem](m_, objc.Sel("itemArray")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518227-autoenablesitems?language=objc +func (m_ Menu) AutoenablesItems() bool { + rv := objc.Call[bool](m_, objc.Sel("autoenablesItems")) return rv } -// An array containing the menu items in the menu. [Full Topic] +// Indicates whether the menu automatically enables and disables its menu items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518186-itemarray?language=objc -func (m_ Menu) SetItemArray(value []IMenuItem) { - objc.Call[objc.Void](m_, objc.Sel("setItemArray:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518227-autoenablesitems?language=objc +func (m_ Menu) SetAutoenablesItems(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAutoenablesItems:"), value) } // The delegate of the menu. [Full Topic] @@ -510,29 +450,6 @@ func (m_ Menu) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("setDelegate:"), valueObject) } -// Indicates whether the menu automatically enables and disables its menu items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518227-autoenablesitems?language=objc -func (m_ Menu) AutoenablesItems() bool { - rv := objc.Call[bool](m_, objc.Sel("autoenablesItems")) - return rv -} - -// Indicates whether the menu automatically enables and disables its menu items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518227-autoenablesitems?language=objc -func (m_ Menu) SetAutoenablesItems(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAutoenablesItems:"), value) -} - -// Indicates the currently highlighted item in the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518222-highlighteditem?language=objc -func (m_ Menu) HighlightedItem() MenuItem { - rv := objc.Call[MenuItem](m_, objc.Sel("highlightedItem")) - return rv -} - // Configures the layout direction of menu items in the menu. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518254-userinterfacelayoutdirection?language=objc @@ -562,3 +479,72 @@ func (m_ Menu) MinimumWidth() float64 { func (m_ Menu) SetMinimumWidth(value float64) { objc.Call[objc.Void](m_, objc.Sel("setMinimumWidth:"), value) } + +// The font of the menu and its submenus. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518230-font?language=objc +func (m_ Menu) Font() Font { + rv := objc.Call[Font](m_, objc.Sel("font")) + return rv +} + +// The font of the menu and its submenus. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518230-font?language=objc +func (m_ Menu) SetFont(value IFont) { + objc.Call[objc.Void](m_, objc.Sel("setFont:"), value) +} + +// The available properties for the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518245-propertiestoupdate?language=objc +func (m_ Menu) PropertiesToUpdate() MenuProperties { + rv := objc.Call[MenuProperties](m_, objc.Sel("propertiesToUpdate")) + return rv +} + +// The number of menu items in the menu, including separator items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518202-numberofitems?language=objc +func (m_ Menu) NumberOfItems() int { + rv := objc.Call[int](m_, objc.Sel("numberOfItems")) + return rv +} + +// The title of the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518192-title?language=objc +func (m_ Menu) Title() string { + rv := objc.Call[string](m_, objc.Sel("title")) + return rv +} + +// The title of the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518192-title?language=objc +func (m_ Menu) SetTitle(value string) { + objc.Call[objc.Void](m_, objc.Sel("setTitle:"), value) +} + +// Indicates whether the menu displays the state column. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518253-showsstatecolumn?language=objc +func (m_ Menu) ShowsStateColumn() bool { + rv := objc.Call[bool](m_, objc.Sel("showsStateColumn")) + return rv +} + +// Indicates whether the menu displays the state column. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518253-showsstatecolumn?language=objc +func (m_ Menu) SetShowsStateColumn(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setShowsStateColumn:"), value) +} + +// The size of the menu in screen coordinates [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518185-size?language=objc +func (m_ Menu) Size() foundation.Size { + rv := objc.Call[foundation.Size](m_, objc.Sel("size")) + return rv +} diff --git a/macos/appkit/menu_delegate.gen.go b/macos/appkit/menu_delegate.gen.go index a37ca0c4..922ddbb9 100644 --- a/macos/appkit/menu_delegate.gen.go +++ b/macos/appkit/menu_delegate.gen.go @@ -14,66 +14,78 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate?language=objc type PMenuDelegate interface { // optional - NumberOfItemsInMenu(menu Menu) int - HasNumberOfItemsInMenu() bool - - // optional - MenuDidClose(menu Menu) - HasMenuDidClose() bool + MenuHasKeyEquivalentForEventTargetAction(menu Menu, event Event, target unsafe.Pointer, action unsafe.Pointer) bool + HasMenuHasKeyEquivalentForEventTargetAction() bool // optional - MenuNeedsUpdate(menu Menu) - HasMenuNeedsUpdate() bool + MenuWillHighlightItem(menu Menu, item MenuItem) + HasMenuWillHighlightItem() bool // optional - MenuWillOpen(menu Menu) - HasMenuWillOpen() bool + MenuDidClose(menu Menu) + HasMenuDidClose() bool // optional - MenuWillHighlightItem(menu Menu, item MenuItem) - HasMenuWillHighlightItem() bool + NumberOfItemsInMenu(menu Menu) int + HasNumberOfItemsInMenu() bool // optional - MenuHasKeyEquivalentForEventTargetAction(menu Menu, event Event, target unsafe.Pointer, action unsafe.Pointer) bool - HasMenuHasKeyEquivalentForEventTargetAction() bool + MenuNeedsUpdate(menu Menu) + HasMenuNeedsUpdate() bool // optional ConfinementRectForMenuOnScreen(menu Menu, screen Screen) foundation.Rect HasConfinementRectForMenuOnScreen() bool // optional - MenuUpdateItemAtIndexShouldCancel(menu Menu, item MenuItem, index int, shouldCancel bool) bool - HasMenuUpdateItemAtIndexShouldCancel() bool + MenuWillOpen(menu Menu) + HasMenuWillOpen() bool } // A delegate implementation builder for the [PMenuDelegate] protocol. type MenuDelegate struct { - _NumberOfItemsInMenu func(menu Menu) int + _MenuHasKeyEquivalentForEventTargetAction func(menu Menu, event Event, target unsafe.Pointer, action unsafe.Pointer) bool + _MenuWillHighlightItem func(menu Menu, item MenuItem) _MenuDidClose func(menu Menu) + _NumberOfItemsInMenu func(menu Menu) int _MenuNeedsUpdate func(menu Menu) - _MenuWillOpen func(menu Menu) - _MenuWillHighlightItem func(menu Menu, item MenuItem) - _MenuHasKeyEquivalentForEventTargetAction func(menu Menu, event Event, target unsafe.Pointer, action unsafe.Pointer) bool _ConfinementRectForMenuOnScreen func(menu Menu, screen Screen) foundation.Rect - _MenuUpdateItemAtIndexShouldCancel func(menu Menu, item MenuItem, index int, shouldCancel bool) bool + _MenuWillOpen func(menu Menu) } -func (di *MenuDelegate) HasNumberOfItemsInMenu() bool { - return di._NumberOfItemsInMenu != nil +func (di *MenuDelegate) HasMenuHasKeyEquivalentForEventTargetAction() bool { + return di._MenuHasKeyEquivalentForEventTargetAction != nil } -// Invoked when a menu is about to be displayed at the start of a tracking session so the delegate can specify the number of items in the menu. [Full Topic] +// Invoked to allow the delegate to return the target and action for a key-down event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518242-numberofitemsinmenu?language=objc -func (di *MenuDelegate) SetNumberOfItemsInMenu(f func(menu Menu) int) { - di._NumberOfItemsInMenu = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518211-menuhaskeyequivalent?language=objc +func (di *MenuDelegate) SetMenuHasKeyEquivalentForEventTargetAction(f func(menu Menu, event Event, target unsafe.Pointer, action unsafe.Pointer) bool) { + di._MenuHasKeyEquivalentForEventTargetAction = f } -// Invoked when a menu is about to be displayed at the start of a tracking session so the delegate can specify the number of items in the menu. [Full Topic] +// Invoked to allow the delegate to return the target and action for a key-down event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518242-numberofitemsinmenu?language=objc -func (di *MenuDelegate) NumberOfItemsInMenu(menu Menu) int { - return di._NumberOfItemsInMenu(menu) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518211-menuhaskeyequivalent?language=objc +func (di *MenuDelegate) MenuHasKeyEquivalentForEventTargetAction(menu Menu, event Event, target unsafe.Pointer, action unsafe.Pointer) bool { + return di._MenuHasKeyEquivalentForEventTargetAction(menu, event, target, action) +} +func (di *MenuDelegate) HasMenuWillHighlightItem() bool { + return di._MenuWillHighlightItem != nil +} + +// Invoked to indicate that a menu is about to highlight a given item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518260-menu?language=objc +func (di *MenuDelegate) SetMenuWillHighlightItem(f func(menu Menu, item MenuItem)) { + di._MenuWillHighlightItem = f +} + +// Invoked to indicate that a menu is about to highlight a given item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518260-menu?language=objc +func (di *MenuDelegate) MenuWillHighlightItem(menu Menu, item MenuItem) { + di._MenuWillHighlightItem(menu, item) } func (di *MenuDelegate) HasMenuDidClose() bool { return di._MenuDidClose != nil @@ -92,6 +104,23 @@ func (di *MenuDelegate) SetMenuDidClose(f func(menu Menu)) { func (di *MenuDelegate) MenuDidClose(menu Menu) { di._MenuDidClose(menu) } +func (di *MenuDelegate) HasNumberOfItemsInMenu() bool { + return di._NumberOfItemsInMenu != nil +} + +// Invoked when a menu is about to be displayed at the start of a tracking session so the delegate can specify the number of items in the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518242-numberofitemsinmenu?language=objc +func (di *MenuDelegate) SetNumberOfItemsInMenu(f func(menu Menu) int) { + di._NumberOfItemsInMenu = f +} + +// Invoked when a menu is about to be displayed at the start of a tracking session so the delegate can specify the number of items in the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518242-numberofitemsinmenu?language=objc +func (di *MenuDelegate) NumberOfItemsInMenu(menu Menu) int { + return di._NumberOfItemsInMenu(menu) +} func (di *MenuDelegate) HasMenuNeedsUpdate() bool { return di._MenuNeedsUpdate != nil } @@ -109,57 +138,6 @@ func (di *MenuDelegate) SetMenuNeedsUpdate(f func(menu Menu)) { func (di *MenuDelegate) MenuNeedsUpdate(menu Menu) { di._MenuNeedsUpdate(menu) } -func (di *MenuDelegate) HasMenuWillOpen() bool { - return di._MenuWillOpen != nil -} - -// Invoked when a menu is about to open. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518156-menuwillopen?language=objc -func (di *MenuDelegate) SetMenuWillOpen(f func(menu Menu)) { - di._MenuWillOpen = f -} - -// Invoked when a menu is about to open. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518156-menuwillopen?language=objc -func (di *MenuDelegate) MenuWillOpen(menu Menu) { - di._MenuWillOpen(menu) -} -func (di *MenuDelegate) HasMenuWillHighlightItem() bool { - return di._MenuWillHighlightItem != nil -} - -// Invoked to indicate that a menu is about to highlight a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518260-menu?language=objc -func (di *MenuDelegate) SetMenuWillHighlightItem(f func(menu Menu, item MenuItem)) { - di._MenuWillHighlightItem = f -} - -// Invoked to indicate that a menu is about to highlight a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518260-menu?language=objc -func (di *MenuDelegate) MenuWillHighlightItem(menu Menu, item MenuItem) { - di._MenuWillHighlightItem(menu, item) -} -func (di *MenuDelegate) HasMenuHasKeyEquivalentForEventTargetAction() bool { - return di._MenuHasKeyEquivalentForEventTargetAction != nil -} - -// Invoked to allow the delegate to return the target and action for a key-down event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518211-menuhaskeyequivalent?language=objc -func (di *MenuDelegate) SetMenuHasKeyEquivalentForEventTargetAction(f func(menu Menu, event Event, target unsafe.Pointer, action unsafe.Pointer) bool) { - di._MenuHasKeyEquivalentForEventTargetAction = f -} - -// Invoked to allow the delegate to return the target and action for a key-down event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518211-menuhaskeyequivalent?language=objc -func (di *MenuDelegate) MenuHasKeyEquivalentForEventTargetAction(menu Menu, event Event, target unsafe.Pointer, action unsafe.Pointer) bool { - return di._MenuHasKeyEquivalentForEventTargetAction(menu, event, target, action) -} func (di *MenuDelegate) HasConfinementRectForMenuOnScreen() bool { return di._ConfinementRectForMenuOnScreen != nil } @@ -177,22 +155,22 @@ func (di *MenuDelegate) SetConfinementRectForMenuOnScreen(f func(menu Menu, scre func (di *MenuDelegate) ConfinementRectForMenuOnScreen(menu Menu, screen Screen) foundation.Rect { return di._ConfinementRectForMenuOnScreen(menu, screen) } -func (di *MenuDelegate) HasMenuUpdateItemAtIndexShouldCancel() bool { - return di._MenuUpdateItemAtIndexShouldCancel != nil +func (di *MenuDelegate) HasMenuWillOpen() bool { + return di._MenuWillOpen != nil } -// Invoked to let the delegate update a menu item before it is displayed. [Full Topic] +// Invoked when a menu is about to open. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518256-menu?language=objc -func (di *MenuDelegate) SetMenuUpdateItemAtIndexShouldCancel(f func(menu Menu, item MenuItem, index int, shouldCancel bool) bool) { - di._MenuUpdateItemAtIndexShouldCancel = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518156-menuwillopen?language=objc +func (di *MenuDelegate) SetMenuWillOpen(f func(menu Menu)) { + di._MenuWillOpen = f } -// Invoked to let the delegate update a menu item before it is displayed. [Full Topic] +// Invoked when a menu is about to open. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518256-menu?language=objc -func (di *MenuDelegate) MenuUpdateItemAtIndexShouldCancel(menu Menu, item MenuItem, index int, shouldCancel bool) bool { - return di._MenuUpdateItemAtIndexShouldCancel(menu, item, index, shouldCancel) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518156-menuwillopen?language=objc +func (di *MenuDelegate) MenuWillOpen(menu Menu) { + di._MenuWillOpen(menu) } // ensure impl type implements protocol interface @@ -203,18 +181,29 @@ type MenuDelegateObject struct { objc.Object } -func (m_ MenuDelegateObject) HasNumberOfItemsInMenu() bool { - return m_.RespondsToSelector(objc.Sel("numberOfItemsInMenu:")) +func (m_ MenuDelegateObject) HasMenuHasKeyEquivalentForEventTargetAction() bool { + return m_.RespondsToSelector(objc.Sel("menuHasKeyEquivalent:forEvent:target:action:")) } -// Invoked when a menu is about to be displayed at the start of a tracking session so the delegate can specify the number of items in the menu. [Full Topic] +// Invoked to allow the delegate to return the target and action for a key-down event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518242-numberofitemsinmenu?language=objc -func (m_ MenuDelegateObject) NumberOfItemsInMenu(menu Menu) int { - rv := objc.Call[int](m_, objc.Sel("numberOfItemsInMenu:"), menu) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518211-menuhaskeyequivalent?language=objc +func (m_ MenuDelegateObject) MenuHasKeyEquivalentForEventTargetAction(menu Menu, event Event, target unsafe.Pointer, action unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("menuHasKeyEquivalent:forEvent:target:action:"), menu, event, target, action) return rv } +func (m_ MenuDelegateObject) HasMenuWillHighlightItem() bool { + return m_.RespondsToSelector(objc.Sel("menu:willHighlightItem:")) +} + +// Invoked to indicate that a menu is about to highlight a given item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518260-menu?language=objc +func (m_ MenuDelegateObject) MenuWillHighlightItem(menu Menu, item MenuItem) { + objc.Call[objc.Void](m_, objc.Sel("menu:willHighlightItem:"), menu, item) +} + func (m_ MenuDelegateObject) HasMenuDidClose() bool { return m_.RespondsToSelector(objc.Sel("menuDidClose:")) } @@ -226,6 +215,18 @@ func (m_ MenuDelegateObject) MenuDidClose(menu Menu) { objc.Call[objc.Void](m_, objc.Sel("menuDidClose:"), menu) } +func (m_ MenuDelegateObject) HasNumberOfItemsInMenu() bool { + return m_.RespondsToSelector(objc.Sel("numberOfItemsInMenu:")) +} + +// Invoked when a menu is about to be displayed at the start of a tracking session so the delegate can specify the number of items in the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518242-numberofitemsinmenu?language=objc +func (m_ MenuDelegateObject) NumberOfItemsInMenu(menu Menu) int { + rv := objc.Call[int](m_, objc.Sel("numberOfItemsInMenu:"), menu) + return rv +} + func (m_ MenuDelegateObject) HasMenuNeedsUpdate() bool { return m_.RespondsToSelector(objc.Sel("menuNeedsUpdate:")) } @@ -237,40 +238,6 @@ func (m_ MenuDelegateObject) MenuNeedsUpdate(menu Menu) { objc.Call[objc.Void](m_, objc.Sel("menuNeedsUpdate:"), menu) } -func (m_ MenuDelegateObject) HasMenuWillOpen() bool { - return m_.RespondsToSelector(objc.Sel("menuWillOpen:")) -} - -// Invoked when a menu is about to open. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518156-menuwillopen?language=objc -func (m_ MenuDelegateObject) MenuWillOpen(menu Menu) { - objc.Call[objc.Void](m_, objc.Sel("menuWillOpen:"), menu) -} - -func (m_ MenuDelegateObject) HasMenuWillHighlightItem() bool { - return m_.RespondsToSelector(objc.Sel("menu:willHighlightItem:")) -} - -// Invoked to indicate that a menu is about to highlight a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518260-menu?language=objc -func (m_ MenuDelegateObject) MenuWillHighlightItem(menu Menu, item MenuItem) { - objc.Call[objc.Void](m_, objc.Sel("menu:willHighlightItem:"), menu, item) -} - -func (m_ MenuDelegateObject) HasMenuHasKeyEquivalentForEventTargetAction() bool { - return m_.RespondsToSelector(objc.Sel("menuHasKeyEquivalent:forEvent:target:action:")) -} - -// Invoked to allow the delegate to return the target and action for a key-down event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518211-menuhaskeyequivalent?language=objc -func (m_ MenuDelegateObject) MenuHasKeyEquivalentForEventTargetAction(menu Menu, event Event, target unsafe.Pointer, action unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("menuHasKeyEquivalent:forEvent:target:action:"), menu, event, target, action) - return rv -} - func (m_ MenuDelegateObject) HasConfinementRectForMenuOnScreen() bool { return m_.RespondsToSelector(objc.Sel("confinementRectForMenu:onScreen:")) } @@ -283,14 +250,13 @@ func (m_ MenuDelegateObject) ConfinementRectForMenuOnScreen(menu Menu, screen Sc return rv } -func (m_ MenuDelegateObject) HasMenuUpdateItemAtIndexShouldCancel() bool { - return m_.RespondsToSelector(objc.Sel("menu:updateItem:atIndex:shouldCancel:")) +func (m_ MenuDelegateObject) HasMenuWillOpen() bool { + return m_.RespondsToSelector(objc.Sel("menuWillOpen:")) } -// Invoked to let the delegate update a menu item before it is displayed. [Full Topic] +// Invoked when a menu is about to open. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518256-menu?language=objc -func (m_ MenuDelegateObject) MenuUpdateItemAtIndexShouldCancel(menu Menu, item MenuItem, index int, shouldCancel bool) bool { - rv := objc.Call[bool](m_, objc.Sel("menu:updateItem:atIndex:shouldCancel:"), menu, item, index, shouldCancel) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518156-menuwillopen?language=objc +func (m_ MenuDelegateObject) MenuWillOpen(menu Menu) { + objc.Call[objc.Void](m_, objc.Sel("menuWillOpen:"), menu) } diff --git a/macos/appkit/menu_item.gen.go b/macos/appkit/menu_item.gen.go index d3e1405d..b0491881 100644 --- a/macos/appkit/menu_item.gen.go +++ b/macos/appkit/menu_item.gen.go @@ -19,60 +19,60 @@ type _MenuItemClass struct { // An interface definition for the [MenuItem] class. type IMenuItem interface { objc.IObject - Tag() int - SetTag(value int) - AllowsAutomaticKeyEquivalentMirroring() bool - SetAllowsAutomaticKeyEquivalentMirroring(value bool) - Submenu() Menu - SetSubmenu(value IMenu) - IsHiddenOrHasHiddenAncestor() bool + KeyEquivalent() string + SetKeyEquivalent(value string) + OffStateImage() Image + SetOffStateImage(value IImage) + IsHighlighted() bool UserKeyEquivalent() string - Image() Image - SetImage(value IImage) - Action() objc.Selector - SetAction(value objc.Selector) - IndentationLevel() int - SetIndentationLevel(value int) Target() objc.Object SetTarget(value objc.IObject) - View() View - SetView(value IView) State() ControlStateValue SetState(value ControlStateValue) - MixedStateImage() Image - SetMixedStateImage(value IImage) - IsSeparatorItem() bool - RepresentedObject() objc.Object - SetRepresentedObject(value objc.IObject) + IsHidden() bool + SetHidden(value bool) + IndentationLevel() int + SetIndentationLevel(value int) + Action() objc.Selector + SetAction(value objc.Selector) + ToolTip() string + SetToolTip(value string) IsAlternate() bool SetAlternate(value bool) - Menu() Menu - SetMenu(value IMenu) + View() View + SetView(value IView) + AllowsAutomaticKeyEquivalentLocalization() bool + SetAllowsAutomaticKeyEquivalentLocalization(value bool) AttributedTitle() foundation.AttributedString SetAttributedTitle(value foundation.IAttributedString) - HasSubmenu() bool + OnStateImage() Image + SetOnStateImage(value IImage) AllowsKeyEquivalentWhenHidden() bool SetAllowsKeyEquivalentWhenHidden(value bool) + AllowsAutomaticKeyEquivalentMirroring() bool + SetAllowsAutomaticKeyEquivalentMirroring(value bool) + Menu() Menu + SetMenu(value IMenu) + IsSeparatorItem() bool + RepresentedObject() objc.Object + SetRepresentedObject(value objc.IObject) + Tag() int + SetTag(value int) Title() string SetTitle(value string) - IsHidden() bool - SetHidden(value bool) - OffStateImage() Image - SetOffStateImage(value IImage) - KeyEquivalent() string - SetKeyEquivalent(value string) - IsHighlighted() bool + MixedStateImage() Image + SetMixedStateImage(value IImage) + Submenu() Menu + SetSubmenu(value IMenu) + HasSubmenu() bool KeyEquivalentModifierMask() EventModifierFlags SetKeyEquivalentModifierMask(value EventModifierFlags) - ToolTip() string - SetToolTip(value string) - AllowsAutomaticKeyEquivalentLocalization() bool - SetAllowsAutomaticKeyEquivalentLocalization(value bool) + IsHiddenOrHasHiddenAncestor() bool ParentItem() MenuItem IsEnabled() bool SetEnabled(value bool) - OnStateImage() Image - SetOnStateImage(value IImage) + Image() Image + SetImage(value IImage) } // A command item in an app menu. [Full Topic] @@ -122,95 +122,110 @@ func (m_ MenuItem) Init() MenuItem { return rv } -// Returns a menu item that is used to separate logical groups of menu commands. [Full Topic] +// The menu item’s unmodified key equivalent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514838-separatoritem?language=objc -func (mc _MenuItemClass) SeparatorItem() MenuItem { - rv := objc.Call[MenuItem](mc, objc.Sel("separatorItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514842-keyequivalent?language=objc +func (m_ MenuItem) KeyEquivalent() string { + rv := objc.Call[string](m_, objc.Sel("keyEquivalent")) return rv } -// Returns a menu item that is used to separate logical groups of menu commands. [Full Topic] +// The menu item’s unmodified key equivalent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514838-separatoritem?language=objc -func MenuItem_SeparatorItem() MenuItem { - return MenuItemClass.SeparatorItem() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514842-keyequivalent?language=objc +func (m_ MenuItem) SetKeyEquivalent(value string) { + objc.Call[objc.Void](m_, objc.Sel("setKeyEquivalent:"), value) } -// The menu item's tag. [Full Topic] +// The image of the menu item that indicates an “off” state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514840-tag?language=objc -func (m_ MenuItem) Tag() int { - rv := objc.Call[int](m_, objc.Sel("tag")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514821-offstateimage?language=objc +func (m_ MenuItem) OffStateImage() Image { + rv := objc.Call[Image](m_, objc.Sel("offStateImage")) return rv } -// The menu item's tag. [Full Topic] +// The image of the menu item that indicates an “off” state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514840-tag?language=objc -func (m_ MenuItem) SetTag(value int) { - objc.Call[objc.Void](m_, objc.Sel("setTag:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514821-offstateimage?language=objc +func (m_ MenuItem) SetOffStateImage(value IImage) { + objc.Call[objc.Void](m_, objc.Sel("setOffStateImage:"), value) } -// A Boolean value that determines whether the system automatically swaps input strings for some keyboard shortcuts when the interface direction changes. [Full Topic] +// A Boolean value that indicates whether the menu item should be drawn highlighted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/3787555-allowsautomatickeyequivalentmirr?language=objc -func (m_ MenuItem) AllowsAutomaticKeyEquivalentMirroring() bool { - rv := objc.Call[bool](m_, objc.Sel("allowsAutomaticKeyEquivalentMirroring")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514856-highlighted?language=objc +func (m_ MenuItem) IsHighlighted() bool { + rv := objc.Call[bool](m_, objc.Sel("isHighlighted")) return rv } -// A Boolean value that determines whether the system automatically swaps input strings for some keyboard shortcuts when the interface direction changes. [Full Topic] +// The user-assigned key equivalent for the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/3787555-allowsautomatickeyequivalentmirr?language=objc -func (m_ MenuItem) SetAllowsAutomaticKeyEquivalentMirroring(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAllowsAutomaticKeyEquivalentMirroring:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514850-userkeyequivalent?language=objc +func (m_ MenuItem) UserKeyEquivalent() string { + rv := objc.Call[string](m_, objc.Sel("userKeyEquivalent")) + return rv } -// The submenu of the menu item. [Full Topic] +// The menu item's target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514845-submenu?language=objc -func (m_ MenuItem) Submenu() Menu { - rv := objc.Call[Menu](m_, objc.Sel("submenu")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514843-target?language=objc +func (m_ MenuItem) Target() objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("target")) return rv } -// The submenu of the menu item. [Full Topic] +// The menu item's target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514845-submenu?language=objc -func (m_ MenuItem) SetSubmenu(value IMenu) { - objc.Call[objc.Void](m_, objc.Sel("setSubmenu:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514843-target?language=objc +func (m_ MenuItem) SetTarget(value objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setTarget:"), value) } -// A Boolean value that indicates whether the menu item or any of its superitems is hidden. [Full Topic] +// The state of the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514832-hiddenorhashiddenancestor?language=objc -func (m_ MenuItem) IsHiddenOrHasHiddenAncestor() bool { - rv := objc.Call[bool](m_, objc.Sel("isHiddenOrHasHiddenAncestor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514804-state?language=objc +func (m_ MenuItem) State() ControlStateValue { + rv := objc.Call[ControlStateValue](m_, objc.Sel("state")) return rv } -// The user-assigned key equivalent for the menu item. [Full Topic] +// The state of the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514850-userkeyequivalent?language=objc -func (m_ MenuItem) UserKeyEquivalent() string { - rv := objc.Call[string](m_, objc.Sel("userKeyEquivalent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514804-state?language=objc +func (m_ MenuItem) SetState(value ControlStateValue) { + objc.Call[objc.Void](m_, objc.Sel("setState:"), value) +} + +// A Boolean value that indicates whether the menu item is hidden. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514846-hidden?language=objc +func (m_ MenuItem) IsHidden() bool { + rv := objc.Call[bool](m_, objc.Sel("isHidden")) return rv } -// The menu item’s image. [Full Topic] +// A Boolean value that indicates whether the menu item is hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514819-image?language=objc -func (m_ MenuItem) Image() Image { - rv := objc.Call[Image](m_, objc.Sel("image")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514846-hidden?language=objc +func (m_ MenuItem) SetHidden(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setHidden:"), value) +} + +// The menu item indentation level for the menu item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514809-indentationlevel?language=objc +func (m_ MenuItem) IndentationLevel() int { + rv := objc.Call[int](m_, objc.Sel("indentationLevel")) return rv } -// The menu item’s image. [Full Topic] +// The menu item indentation level for the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514819-image?language=objc -func (m_ MenuItem) SetImage(value IImage) { - objc.Call[objc.Void](m_, objc.Sel("setImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514809-indentationlevel?language=objc +func (m_ MenuItem) SetIndentationLevel(value int) { + objc.Call[objc.Void](m_, objc.Sel("setIndentationLevel:"), value) } // The menu item's action-method selector. [Full Topic] @@ -228,34 +243,34 @@ func (m_ MenuItem) SetAction(value objc.Selector) { objc.Call[objc.Void](m_, objc.Sel("setAction:"), value) } -// The menu item indentation level for the menu item. [Full Topic] +// A help tag for the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514809-indentationlevel?language=objc -func (m_ MenuItem) IndentationLevel() int { - rv := objc.Call[int](m_, objc.Sel("indentationLevel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514848-tooltip?language=objc +func (m_ MenuItem) ToolTip() string { + rv := objc.Call[string](m_, objc.Sel("toolTip")) return rv } -// The menu item indentation level for the menu item. [Full Topic] +// A help tag for the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514809-indentationlevel?language=objc -func (m_ MenuItem) SetIndentationLevel(value int) { - objc.Call[objc.Void](m_, objc.Sel("setIndentationLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514848-tooltip?language=objc +func (m_ MenuItem) SetToolTip(value string) { + objc.Call[objc.Void](m_, objc.Sel("setToolTip:"), value) } -// The menu item's target. [Full Topic] +// A Boolean value that marks the menu item as an alternate to the previous menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514843-target?language=objc -func (m_ MenuItem) Target() objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("target")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514823-alternate?language=objc +func (m_ MenuItem) IsAlternate() bool { + rv := objc.Call[bool](m_, objc.Sel("isAlternate")) return rv } -// The menu item's target. [Full Topic] +// A Boolean value that marks the menu item as an alternate to the previous menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514843-target?language=objc -func (m_ MenuItem) SetTarget(value objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setTarget:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514823-alternate?language=objc +func (m_ MenuItem) SetAlternate(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAlternate:"), value) } // The content view for the menu item. [Full Topic] @@ -273,72 +288,79 @@ func (m_ MenuItem) SetView(value IView) { objc.Call[objc.Void](m_, objc.Sel("setView:"), value) } -// The state of the menu item. [Full Topic] +// A Boolean value that determines whether the system automatically remaps the keyboard shortcut to support localized keyboards. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514804-state?language=objc -func (m_ MenuItem) State() ControlStateValue { - rv := objc.Call[ControlStateValue](m_, objc.Sel("state")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/3787554-allowsautomatickeyequivalentloca?language=objc +func (m_ MenuItem) AllowsAutomaticKeyEquivalentLocalization() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsAutomaticKeyEquivalentLocalization")) return rv } -// The state of the menu item. [Full Topic] +// A Boolean value that determines whether the system automatically remaps the keyboard shortcut to support localized keyboards. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514804-state?language=objc -func (m_ MenuItem) SetState(value ControlStateValue) { - objc.Call[objc.Void](m_, objc.Sel("setState:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/3787554-allowsautomatickeyequivalentloca?language=objc +func (m_ MenuItem) SetAllowsAutomaticKeyEquivalentLocalization(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsAutomaticKeyEquivalentLocalization:"), value) } -// The image of the menu item that indicates a “mixed” state, that is, a state neither “on” nor “off.” [Full Topic] +// A custom string for a menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514827-mixedstateimage?language=objc -func (m_ MenuItem) MixedStateImage() Image { - rv := objc.Call[Image](m_, objc.Sel("mixedStateImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514860-attributedtitle?language=objc +func (m_ MenuItem) AttributedTitle() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](m_, objc.Sel("attributedTitle")) return rv } -// The image of the menu item that indicates a “mixed” state, that is, a state neither “on” nor “off.” [Full Topic] +// A custom string for a menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514827-mixedstateimage?language=objc -func (m_ MenuItem) SetMixedStateImage(value IImage) { - objc.Call[objc.Void](m_, objc.Sel("setMixedStateImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514860-attributedtitle?language=objc +func (m_ MenuItem) SetAttributedTitle(value foundation.IAttributedString) { + objc.Call[objc.Void](m_, objc.Sel("setAttributedTitle:"), value) } -// A Boolean value indicating whether the menu item is a separator item. [Full Topic] +// The image of the menu item that indicates an “on” state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514837-separatoritem?language=objc -func (m_ MenuItem) IsSeparatorItem() bool { - rv := objc.Call[bool](m_, objc.Sel("isSeparatorItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514861-onstateimage?language=objc +func (m_ MenuItem) OnStateImage() Image { + rv := objc.Call[Image](m_, objc.Sel("onStateImage")) return rv } -// The object represented by the menu item. [Full Topic] +// The image of the menu item that indicates an “on” state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514834-representedobject?language=objc -func (m_ MenuItem) RepresentedObject() objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("representedObject")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514861-onstateimage?language=objc +func (m_ MenuItem) SetOnStateImage(value IImage) { + objc.Call[objc.Void](m_, objc.Sel("setOnStateImage:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/2880316-allowskeyequivalentwhenhidden?language=objc +func (m_ MenuItem) AllowsKeyEquivalentWhenHidden() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsKeyEquivalentWhenHidden")) return rv } -// The object represented by the menu item. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514834-representedobject?language=objc -func (m_ MenuItem) SetRepresentedObject(value objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setRepresentedObject:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/2880316-allowskeyequivalentwhenhidden?language=objc +func (m_ MenuItem) SetAllowsKeyEquivalentWhenHidden(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsKeyEquivalentWhenHidden:"), value) } -// A Boolean value that marks the menu item as an alternate to the previous menu item. [Full Topic] +// A Boolean value that determines whether the system automatically swaps input strings for some keyboard shortcuts when the interface direction changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514823-alternate?language=objc -func (m_ MenuItem) IsAlternate() bool { - rv := objc.Call[bool](m_, objc.Sel("isAlternate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/3787555-allowsautomatickeyequivalentmirr?language=objc +func (m_ MenuItem) AllowsAutomaticKeyEquivalentMirroring() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsAutomaticKeyEquivalentMirroring")) return rv } -// A Boolean value that marks the menu item as an alternate to the previous menu item. [Full Topic] +// A Boolean value that determines whether the system automatically swaps input strings for some keyboard shortcuts when the interface direction changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514823-alternate?language=objc -func (m_ MenuItem) SetAlternate(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAlternate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/3787555-allowsautomatickeyequivalentmirr?language=objc +func (m_ MenuItem) SetAllowsAutomaticKeyEquivalentMirroring(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsAutomaticKeyEquivalentMirroring:"), value) } // The menu item’s menu. [Full Topic] @@ -356,42 +378,71 @@ func (m_ MenuItem) SetMenu(value IMenu) { objc.Call[objc.Void](m_, objc.Sel("setMenu:"), value) } -// A custom string for a menu item. [Full Topic] +// Returns a Boolean value that indicates whether menu items conform to user preferences for key equivalents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514860-attributedtitle?language=objc -func (m_ MenuItem) AttributedTitle() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](m_, objc.Sel("attributedTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514811-usesuserkeyequivalents?language=objc +func (mc _MenuItemClass) UsesUserKeyEquivalents() bool { + rv := objc.Call[bool](mc, objc.Sel("usesUserKeyEquivalents")) return rv } -// A custom string for a menu item. [Full Topic] +// Returns a Boolean value that indicates whether menu items conform to user preferences for key equivalents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514860-attributedtitle?language=objc -func (m_ MenuItem) SetAttributedTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](m_, objc.Sel("setAttributedTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514811-usesuserkeyequivalents?language=objc +func MenuItem_UsesUserKeyEquivalents() bool { + return MenuItemClass.UsesUserKeyEquivalents() } -// A Boolean value that indicates whether the menu item has a submenu. [Full Topic] +// Returns a Boolean value that indicates whether menu items conform to user preferences for key equivalents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514817-hassubmenu?language=objc -func (m_ MenuItem) HasSubmenu() bool { - rv := objc.Call[bool](m_, objc.Sel("hasSubmenu")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514811-usesuserkeyequivalents?language=objc +func (mc _MenuItemClass) SetUsesUserKeyEquivalents(value bool) { + objc.Call[objc.Void](mc, objc.Sel("setUsesUserKeyEquivalents:"), value) +} + +// Returns a Boolean value that indicates whether menu items conform to user preferences for key equivalents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514811-usesuserkeyequivalents?language=objc +func MenuItem_SetUsesUserKeyEquivalents(value bool) { + MenuItemClass.SetUsesUserKeyEquivalents(value) +} + +// A Boolean value indicating whether the menu item is a separator item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514837-separatoritem?language=objc +func (m_ MenuItem) IsSeparatorItem() bool { + rv := objc.Call[bool](m_, objc.Sel("isSeparatorItem")) return rv } -// [Full Topic] +// The object represented by the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/2880316-allowskeyequivalentwhenhidden?language=objc -func (m_ MenuItem) AllowsKeyEquivalentWhenHidden() bool { - rv := objc.Call[bool](m_, objc.Sel("allowsKeyEquivalentWhenHidden")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514834-representedobject?language=objc +func (m_ MenuItem) RepresentedObject() objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("representedObject")) return rv } -// [Full Topic] +// The object represented by the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/2880316-allowskeyequivalentwhenhidden?language=objc -func (m_ MenuItem) SetAllowsKeyEquivalentWhenHidden(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAllowsKeyEquivalentWhenHidden:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514834-representedobject?language=objc +func (m_ MenuItem) SetRepresentedObject(value objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setRepresentedObject:"), value) +} + +// The menu item's tag. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514840-tag?language=objc +func (m_ MenuItem) Tag() int { + rv := objc.Call[int](m_, objc.Sel("tag")) + return rv +} + +// The menu item's tag. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514840-tag?language=objc +func (m_ MenuItem) SetTag(value int) { + objc.Call[objc.Void](m_, objc.Sel("setTag:"), value) } // The menu item's title. [Full Topic] @@ -409,56 +460,41 @@ func (m_ MenuItem) SetTitle(value string) { objc.Call[objc.Void](m_, objc.Sel("setTitle:"), value) } -// A Boolean value that indicates whether the menu item is hidden. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514846-hidden?language=objc -func (m_ MenuItem) IsHidden() bool { - rv := objc.Call[bool](m_, objc.Sel("isHidden")) - return rv -} - -// A Boolean value that indicates whether the menu item is hidden. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514846-hidden?language=objc -func (m_ MenuItem) SetHidden(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setHidden:"), value) -} - -// The image of the menu item that indicates an “off” state. [Full Topic] +// The image of the menu item that indicates a “mixed” state, that is, a state neither “on” nor “off.” [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514821-offstateimage?language=objc -func (m_ MenuItem) OffStateImage() Image { - rv := objc.Call[Image](m_, objc.Sel("offStateImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514827-mixedstateimage?language=objc +func (m_ MenuItem) MixedStateImage() Image { + rv := objc.Call[Image](m_, objc.Sel("mixedStateImage")) return rv } -// The image of the menu item that indicates an “off” state. [Full Topic] +// The image of the menu item that indicates a “mixed” state, that is, a state neither “on” nor “off.” [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514821-offstateimage?language=objc -func (m_ MenuItem) SetOffStateImage(value IImage) { - objc.Call[objc.Void](m_, objc.Sel("setOffStateImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514827-mixedstateimage?language=objc +func (m_ MenuItem) SetMixedStateImage(value IImage) { + objc.Call[objc.Void](m_, objc.Sel("setMixedStateImage:"), value) } -// The menu item’s unmodified key equivalent. [Full Topic] +// The submenu of the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514842-keyequivalent?language=objc -func (m_ MenuItem) KeyEquivalent() string { - rv := objc.Call[string](m_, objc.Sel("keyEquivalent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514845-submenu?language=objc +func (m_ MenuItem) Submenu() Menu { + rv := objc.Call[Menu](m_, objc.Sel("submenu")) return rv } -// The menu item’s unmodified key equivalent. [Full Topic] +// The submenu of the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514842-keyequivalent?language=objc -func (m_ MenuItem) SetKeyEquivalent(value string) { - objc.Call[objc.Void](m_, objc.Sel("setKeyEquivalent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514845-submenu?language=objc +func (m_ MenuItem) SetSubmenu(value IMenu) { + objc.Call[objc.Void](m_, objc.Sel("setSubmenu:"), value) } -// A Boolean value that indicates whether the menu item should be drawn highlighted. [Full Topic] +// A Boolean value that indicates whether the menu item has a submenu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514856-highlighted?language=objc -func (m_ MenuItem) IsHighlighted() bool { - rv := objc.Call[bool](m_, objc.Sel("isHighlighted")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514817-hassubmenu?language=objc +func (m_ MenuItem) HasSubmenu() bool { + rv := objc.Call[bool](m_, objc.Sel("hasSubmenu")) return rv } @@ -477,65 +513,14 @@ func (m_ MenuItem) SetKeyEquivalentModifierMask(value EventModifierFlags) { objc.Call[objc.Void](m_, objc.Sel("setKeyEquivalentModifierMask:"), value) } -// Returns a Boolean value that indicates whether menu items conform to user preferences for key equivalents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514811-usesuserkeyequivalents?language=objc -func (mc _MenuItemClass) UsesUserKeyEquivalents() bool { - rv := objc.Call[bool](mc, objc.Sel("usesUserKeyEquivalents")) - return rv -} - -// Returns a Boolean value that indicates whether menu items conform to user preferences for key equivalents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514811-usesuserkeyequivalents?language=objc -func MenuItem_UsesUserKeyEquivalents() bool { - return MenuItemClass.UsesUserKeyEquivalents() -} - -// Returns a Boolean value that indicates whether menu items conform to user preferences for key equivalents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514811-usesuserkeyequivalents?language=objc -func (mc _MenuItemClass) SetUsesUserKeyEquivalents(value bool) { - objc.Call[objc.Void](mc, objc.Sel("setUsesUserKeyEquivalents:"), value) -} - -// Returns a Boolean value that indicates whether menu items conform to user preferences for key equivalents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514811-usesuserkeyequivalents?language=objc -func MenuItem_SetUsesUserKeyEquivalents(value bool) { - MenuItemClass.SetUsesUserKeyEquivalents(value) -} - -// A help tag for the menu item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514848-tooltip?language=objc -func (m_ MenuItem) ToolTip() string { - rv := objc.Call[string](m_, objc.Sel("toolTip")) - return rv -} - -// A help tag for the menu item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514848-tooltip?language=objc -func (m_ MenuItem) SetToolTip(value string) { - objc.Call[objc.Void](m_, objc.Sel("setToolTip:"), value) -} - -// A Boolean value that determines whether the system automatically remaps the keyboard shortcut to support localized keyboards. [Full Topic] +// A Boolean value that indicates whether the menu item or any of its superitems is hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/3787554-allowsautomatickeyequivalentloca?language=objc -func (m_ MenuItem) AllowsAutomaticKeyEquivalentLocalization() bool { - rv := objc.Call[bool](m_, objc.Sel("allowsAutomaticKeyEquivalentLocalization")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514832-hiddenorhashiddenancestor?language=objc +func (m_ MenuItem) IsHiddenOrHasHiddenAncestor() bool { + rv := objc.Call[bool](m_, objc.Sel("isHiddenOrHasHiddenAncestor")) return rv } -// A Boolean value that determines whether the system automatically remaps the keyboard shortcut to support localized keyboards. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/3787554-allowsautomatickeyequivalentloca?language=objc -func (m_ MenuItem) SetAllowsAutomaticKeyEquivalentLocalization(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAllowsAutomaticKeyEquivalentLocalization:"), value) -} - // The menu item whose submenu contains the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514813-parentitem?language=objc @@ -559,17 +544,17 @@ func (m_ MenuItem) SetEnabled(value bool) { objc.Call[objc.Void](m_, objc.Sel("setEnabled:"), value) } -// The image of the menu item that indicates an “on” state. [Full Topic] +// The menu item’s image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514861-onstateimage?language=objc -func (m_ MenuItem) OnStateImage() Image { - rv := objc.Call[Image](m_, objc.Sel("onStateImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514819-image?language=objc +func (m_ MenuItem) Image() Image { + rv := objc.Call[Image](m_, objc.Sel("image")) return rv } -// The image of the menu item that indicates an “on” state. [Full Topic] +// The menu item’s image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514861-onstateimage?language=objc -func (m_ MenuItem) SetOnStateImage(value IImage) { - objc.Call[objc.Void](m_, objc.Sel("setOnStateImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514819-image?language=objc +func (m_ MenuItem) SetImage(value IImage) { + objc.Call[objc.Void](m_, objc.Sel("setImage:"), value) } diff --git a/macos/appkit/menu_item_cell.gen.go b/macos/appkit/menu_item_cell.gen.go index f478ea98..123ea40d 100644 --- a/macos/appkit/menu_item_cell.gen.go +++ b/macos/appkit/menu_item_cell.gen.go @@ -20,22 +20,22 @@ type _MenuItemCellClass struct { type IMenuItemCell interface { IButtonCell KeyEquivalentRectForBounds(cellFrame foundation.Rect) foundation.Rect - DrawBorderAndBackgroundWithFrameInView(cellFrame foundation.Rect, controlView IView) StateImageRectForBounds(cellFrame foundation.Rect) foundation.Rect DrawSeparatorItemWithFrameInView(cellFrame foundation.Rect, controlView IView) - DrawKeyEquivalentWithFrameInView(cellFrame foundation.Rect, controlView IView) CalcSize() + DrawBorderAndBackgroundWithFrameInView(cellFrame foundation.Rect, controlView IView) DrawStateImageWithFrameInView(cellFrame foundation.Rect, controlView IView) - NeedsDisplay() bool - SetNeedsDisplay(value bool) - ImageWidth() float64 + DrawKeyEquivalentWithFrameInView(cellFrame foundation.Rect, controlView IView) + KeyEquivalentWidth() float64 + TitleWidth() float64 + StateImageWidth() float64 MenuItem() MenuItem SetMenuItem(value IMenuItem) - TitleWidth() float64 NeedsSizing() bool SetNeedsSizing(value bool) - KeyEquivalentWidth() float64 - StateImageWidth() float64 + ImageWidth() float64 + NeedsDisplay() bool + SetNeedsDisplay(value bool) } // An object that handles the measurement and display of a single menu item in its encompassing frame. [Full Topic] @@ -107,13 +107,6 @@ func (m_ MenuItemCell) KeyEquivalentRectForBounds(cellFrame foundation.Rect) fou return rv } -// Draws the borders and background associated with the receiver’s menu item (if any). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498863-drawborderandbackgroundwithframe?language=objc -func (m_ MenuItemCell) DrawBorderAndBackgroundWithFrameInView(cellFrame foundation.Rect, controlView IView) { - objc.Call[objc.Void](m_, objc.Sel("drawBorderAndBackgroundWithFrame:inView:"), cellFrame, controlView) -} - // Returns the rectangle into which the menu item’s state image should be drawn. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498855-stateimagerectforbounds?language=objc @@ -129,13 +122,6 @@ func (m_ MenuItemCell) DrawSeparatorItemWithFrameInView(cellFrame foundation.Rec objc.Call[objc.Void](m_, objc.Sel("drawSeparatorItemWithFrame:inView:"), cellFrame, controlView) } -// Draws the key equivalent associated with the menu item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498851-drawkeyequivalentwithframe?language=objc -func (m_ MenuItemCell) DrawKeyEquivalentWithFrameInView(cellFrame foundation.Rect, controlView IView) { - objc.Call[objc.Void](m_, objc.Sel("drawKeyEquivalentWithFrame:inView:"), cellFrame, controlView) -} - // Calculates the minimum required width and height of the receiver’s menu item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498862-calcsize?language=objc @@ -143,6 +129,13 @@ func (m_ MenuItemCell) CalcSize() { objc.Call[objc.Void](m_, objc.Sel("calcSize")) } +// Draws the borders and background associated with the receiver’s menu item (if any). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498863-drawborderandbackgroundwithframe?language=objc +func (m_ MenuItemCell) DrawBorderAndBackgroundWithFrameInView(cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](m_, objc.Sel("drawBorderAndBackgroundWithFrame:inView:"), cellFrame, controlView) +} + // Draws the state image associated with the menu item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498854-drawstateimagewithframe?language=objc @@ -150,26 +143,34 @@ func (m_ MenuItemCell) DrawStateImageWithFrameInView(cellFrame foundation.Rect, objc.Call[objc.Void](m_, objc.Sel("drawStateImageWithFrame:inView:"), cellFrame, controlView) } -// A Boolean value indicating whether the menu item needs to be displayed. [Full Topic] +// Draws the key equivalent associated with the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498861-needsdisplay?language=objc -func (m_ MenuItemCell) NeedsDisplay() bool { - rv := objc.Call[bool](m_, objc.Sel("needsDisplay")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498851-drawkeyequivalentwithframe?language=objc +func (m_ MenuItemCell) DrawKeyEquivalentWithFrameInView(cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](m_, objc.Sel("drawKeyEquivalentWithFrame:inView:"), cellFrame, controlView) +} + +// The width of the menu item’s key equivalent string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498874-keyequivalentwidth?language=objc +func (m_ MenuItemCell) KeyEquivalentWidth() float64 { + rv := objc.Call[float64](m_, objc.Sel("keyEquivalentWidth")) return rv } -// A Boolean value indicating whether the menu item needs to be displayed. [Full Topic] +// The width of the menu item’s text, measured in points. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498861-needsdisplay?language=objc -func (m_ MenuItemCell) SetNeedsDisplay(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setNeedsDisplay:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498865-titlewidth?language=objc +func (m_ MenuItemCell) TitleWidth() float64 { + rv := objc.Call[float64](m_, objc.Sel("titleWidth")) + return rv } -// The width of the image associated with the menu item. [Full Topic] +// The width of the image used to indicate the state of the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498877-imagewidth?language=objc -func (m_ MenuItemCell) ImageWidth() float64 { - rv := objc.Call[float64](m_, objc.Sel("imageWidth")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498879-stateimagewidth?language=objc +func (m_ MenuItemCell) StateImageWidth() float64 { + rv := objc.Call[float64](m_, objc.Sel("stateImageWidth")) return rv } @@ -188,14 +189,6 @@ func (m_ MenuItemCell) SetMenuItem(value IMenuItem) { objc.Call[objc.Void](m_, objc.Sel("setMenuItem:"), value) } -// The width of the menu item’s text, measured in points. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498865-titlewidth?language=objc -func (m_ MenuItemCell) TitleWidth() float64 { - rv := objc.Call[float64](m_, objc.Sel("titleWidth")) - return rv -} - // A Boolean value indicating whether the size of the menu needs to be calculated. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498869-needssizing?language=objc @@ -211,18 +204,25 @@ func (m_ MenuItemCell) SetNeedsSizing(value bool) { objc.Call[objc.Void](m_, objc.Sel("setNeedsSizing:"), value) } -// The width of the menu item’s key equivalent string. [Full Topic] +// The width of the image associated with the menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498874-keyequivalentwidth?language=objc -func (m_ MenuItemCell) KeyEquivalentWidth() float64 { - rv := objc.Call[float64](m_, objc.Sel("keyEquivalentWidth")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498877-imagewidth?language=objc +func (m_ MenuItemCell) ImageWidth() float64 { + rv := objc.Call[float64](m_, objc.Sel("imageWidth")) return rv } -// The width of the image used to indicate the state of the menu item. [Full Topic] +// A Boolean value indicating whether the menu item needs to be displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498879-stateimagewidth?language=objc -func (m_ MenuItemCell) StateImageWidth() float64 { - rv := objc.Call[float64](m_, objc.Sel("stateImageWidth")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498861-needsdisplay?language=objc +func (m_ MenuItemCell) NeedsDisplay() bool { + rv := objc.Call[bool](m_, objc.Sel("needsDisplay")) return rv } + +// A Boolean value indicating whether the menu item needs to be displayed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemcell/1498861-needsdisplay?language=objc +func (m_ MenuItemCell) SetNeedsDisplay(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setNeedsDisplay:"), value) +} diff --git a/macos/appkit/menu_toolbar_item.gen.go b/macos/appkit/menu_toolbar_item.gen.go index 82f7bd79..69ae8741 100644 --- a/macos/appkit/menu_toolbar_item.gen.go +++ b/macos/appkit/menu_toolbar_item.gen.go @@ -18,10 +18,10 @@ type _MenuToolbarItemClass struct { // An interface definition for the [MenuToolbarItem] class. type IMenuToolbarItem interface { IToolbarItem - Menu() Menu - SetMenu(value IMenu) ShowsIndicator() bool SetShowsIndicator(value bool) + Menu() Menu + SetMenu(value IMenu) } // A control that presents a menu in a window’s toolbar. [Full Topic] @@ -71,21 +71,6 @@ func NewMenuToolbarItemWithItemIdentifier(itemIdentifier ToolbarItemIdentifier) return instance } -// The menu presented from the toolbar item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenutoolbaritem/3237191-menu?language=objc -func (m_ MenuToolbarItem) Menu() Menu { - rv := objc.Call[Menu](m_, objc.Sel("menu")) - return rv -} - -// The menu presented from the toolbar item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenutoolbaritem/3237191-menu?language=objc -func (m_ MenuToolbarItem) SetMenu(value IMenu) { - objc.Call[objc.Void](m_, objc.Sel("setMenu:"), value) -} - // A Boolean value that determines whether the toolbar item displays an indicator of additional functionality. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenutoolbaritem/3237192-showsindicator?language=objc @@ -100,3 +85,18 @@ func (m_ MenuToolbarItem) ShowsIndicator() bool { func (m_ MenuToolbarItem) SetShowsIndicator(value bool) { objc.Call[objc.Void](m_, objc.Sel("setShowsIndicator:"), value) } + +// The menu presented from the toolbar item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenutoolbaritem/3237191-menu?language=objc +func (m_ MenuToolbarItem) Menu() Menu { + rv := objc.Call[Menu](m_, objc.Sel("menu")) + return rv +} + +// The menu presented from the toolbar item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenutoolbaritem/3237191-menu?language=objc +func (m_ MenuToolbarItem) SetMenu(value IMenu) { + objc.Call[objc.Void](m_, objc.Sel("setMenu:"), value) +} diff --git a/macos/appkit/mutable_font_collection.gen.go b/macos/appkit/mutable_font_collection.gen.go index d9c39a2e..14b07e9c 100644 --- a/macos/appkit/mutable_font_collection.gen.go +++ b/macos/appkit/mutable_font_collection.gen.go @@ -20,8 +20,8 @@ type IMutableFontCollection interface { IFontCollection AddQueryForDescriptors(descriptors []IFontDescriptor) RemoveQueryForDescriptors(descriptors []IFontDescriptor) - SetQueryDescriptors(value []IFontDescriptor) SetExclusionDescriptors(value []IFontDescriptor) + SetQueryDescriptors(value []IFontDescriptor) } // A mutable collection of font descriptors taken together as a single object. [Full Topic] @@ -71,16 +71,16 @@ func (m_ MutableFontCollection) RemoveQueryForDescriptors(descriptors []IFontDes objc.Call[objc.Void](m_, objc.Sel("removeQueryForDescriptors:"), descriptors) } -// The font descriptors to include in query results. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmutablefontcollection/1497457-querydescriptors?language=objc -func (m_ MutableFontCollection) SetQueryDescriptors(value []IFontDescriptor) { - objc.Call[objc.Void](m_, objc.Sel("setQueryDescriptors:"), value) -} - // The font descriptors to exclude from query results. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmutablefontcollection/1497442-exclusiondescriptors?language=objc func (m_ MutableFontCollection) SetExclusionDescriptors(value []IFontDescriptor) { objc.Call[objc.Void](m_, objc.Sel("setExclusionDescriptors:"), value) } + +// The font descriptors to include in query results. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmutablefontcollection/1497457-querydescriptors?language=objc +func (m_ MutableFontCollection) SetQueryDescriptors(value []IFontDescriptor) { + objc.Call[objc.Void](m_, objc.Sel("setQueryDescriptors:"), value) +} diff --git a/macos/appkit/mutable_paragraph_style.gen.go b/macos/appkit/mutable_paragraph_style.gen.go index 87dd04f7..b780e057 100644 --- a/macos/appkit/mutable_paragraph_style.gen.go +++ b/macos/appkit/mutable_paragraph_style.gen.go @@ -18,30 +18,30 @@ type _MutableParagraphStyleClass struct { // An interface definition for the [MutableParagraphStyle] class. type IMutableParagraphStyle interface { IParagraphStyle - RemoveTabStop(anObject ITextTab) SetParagraphStyle(obj IParagraphStyle) AddTabStop(anObject ITextTab) - SetTextBlocks(value []ITextBlock) + RemoveTabStop(anObject ITextTab) + SetLineSpacing(value float64) SetTextLists(value []ITextList) - SetHeaderLevel(value int) + SetAllowsDefaultTighteningForTruncation(value bool) + SetUsesDefaultHyphenation(value bool) + SetMinimumLineHeight(value float64) SetTighteningFactorForTruncation(value float32) - SetHeadIndent(value float64) - SetDefaultTabInterval(value float64) - SetBaseWritingDirection(value WritingDirection) - SetParagraphSpacing(value float64) - SetTailIndent(value float64) - SetTabStops(value []ITextTab) SetAlignment(value TextAlignment) - SetHyphenationFactor(value float32) - SetAllowsDefaultTighteningForTruncation(value bool) - SetLineSpacing(value float64) SetFirstLineHeadIndent(value float64) - SetLineHeightMultiple(value float64) - SetParagraphSpacingBefore(value float64) - SetMinimumLineHeight(value float64) SetLineBreakStrategy(value LineBreakStrategy) SetMaximumLineHeight(value float64) - SetUsesDefaultHyphenation(value bool) + SetHeaderLevel(value int) + SetDefaultTabInterval(value float64) + SetTabStops(value []ITextTab) + SetTextBlocks(value []ITextBlock) + SetLineHeightMultiple(value float64) + SetBaseWritingDirection(value WritingDirection) + SetHyphenationFactor(value float32) + SetParagraphSpacingBefore(value float64) + SetParagraphSpacing(value float64) + SetTailIndent(value float64) + SetHeadIndent(value float64) } // An object for changing the values of the subattributes in a paragraph style attribute. [Full Topic] @@ -77,13 +77,6 @@ func (m_ MutableParagraphStyle) Init() MutableParagraphStyle { return rv } -// Removes the first text tab with a location and type equal to the specified tab stop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1535084-removetabstop?language=objc -func (m_ MutableParagraphStyle) RemoveTabStop(anObject ITextTab) { - objc.Call[objc.Void](m_, objc.Sel("removeTabStop:"), anObject) -} - // Replaces the subattributes of the paragraph with those in the specified paragraph style object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1533980-setparagraphstyle?language=objc @@ -98,11 +91,18 @@ func (m_ MutableParagraphStyle) AddTabStop(anObject ITextTab) { objc.Call[objc.Void](m_, objc.Sel("addTabStop:"), anObject) } -// The text blocks that contain the paragraph. [Full Topic] +// Removes the first text tab with a location and type equal to the specified tab stop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmutableparagraphstyle/1535855-textblocks?language=objc -func (m_ MutableParagraphStyle) SetTextBlocks(value []ITextBlock) { - objc.Call[objc.Void](m_, objc.Sel("setTextBlocks:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1535084-removetabstop?language=objc +func (m_ MutableParagraphStyle) RemoveTabStop(anObject ITextTab) { + objc.Call[objc.Void](m_, objc.Sel("removeTabStop:"), anObject) +} + +// The distance in points between the bottom of one line fragment and the top of the next. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1528742-linespacing?language=objc +func (m_ MutableParagraphStyle) SetLineSpacing(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setLineSpacing:"), value) } // The text lists that contain the paragraph. [Full Topic] @@ -112,11 +112,25 @@ func (m_ MutableParagraphStyle) SetTextLists(value []ITextList) { objc.Call[objc.Void](m_, objc.Sel("setTextLists:"), value) } -// The paragraph’s header level for HTML generation. [Full Topic] +// A Boolean value that indicates whether the system tightens intercharacter spacing before truncating text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmutableparagraphstyle/1533962-headerlevel?language=objc -func (m_ MutableParagraphStyle) SetHeaderLevel(value int) { - objc.Call[objc.Void](m_, objc.Sel("setHeaderLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1534136-allowsdefaulttighteningfortrunca?language=objc +func (m_ MutableParagraphStyle) SetAllowsDefaultTighteningForTruncation(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsDefaultTighteningForTruncation:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/3809912-usesdefaulthyphenation?language=objc +func (m_ MutableParagraphStyle) SetUsesDefaultHyphenation(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setUsesDefaultHyphenation:"), value) +} + +// The paragraph’s minimum line height. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1531118-minimumlineheight?language=objc +func (m_ MutableParagraphStyle) SetMinimumLineHeight(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setMinimumLineHeight:"), value) } // The threshold for using tightening as an alternative to truncation. [Full Topic] @@ -126,39 +140,46 @@ func (m_ MutableParagraphStyle) SetTighteningFactorForTruncation(value float32) objc.Call[objc.Void](m_, objc.Sel("setTighteningFactorForTruncation:"), value) } -// The indentation of the paragraph’s lines other than the first. [Full Topic] +// The text alignment of the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1525135-headindent?language=objc -func (m_ MutableParagraphStyle) SetHeadIndent(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setHeadIndent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1534368-alignment?language=objc +func (m_ MutableParagraphStyle) SetAlignment(value TextAlignment) { + objc.Call[objc.Void](m_, objc.Sel("setAlignment:"), value) } -// A number used as the document’s default tab spacing. [Full Topic] +// The indentation of the first line of the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1529861-defaulttabinterval?language=objc -func (m_ MutableParagraphStyle) SetDefaultTabInterval(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setDefaultTabInterval:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1528392-firstlineheadindent?language=objc +func (m_ MutableParagraphStyle) SetFirstLineHeadIndent(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setFirstLineHeadIndent:"), value) } -// The base writing direction for the paragraph. [Full Topic] +// The strategies that the text system may use to break lines while laying out the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1534601-basewritingdirection?language=objc -func (m_ MutableParagraphStyle) SetBaseWritingDirection(value WritingDirection) { - objc.Call[objc.Void](m_, objc.Sel("setBaseWritingDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/3667462-linebreakstrategy?language=objc +func (m_ MutableParagraphStyle) SetLineBreakStrategy(value LineBreakStrategy) { + objc.Call[objc.Void](m_, objc.Sel("setLineBreakStrategy:"), value) } -// The space after the end of the paragraph. [Full Topic] +// The paragraph’s maximum line height. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1532528-paragraphspacing?language=objc -func (m_ MutableParagraphStyle) SetParagraphSpacing(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setParagraphSpacing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1524351-maximumlineheight?language=objc +func (m_ MutableParagraphStyle) SetMaximumLineHeight(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setMaximumLineHeight:"), value) } -// The trailing indentation of the paragraph. [Full Topic] +// The paragraph’s header level for HTML generation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1531666-tailindent?language=objc -func (m_ MutableParagraphStyle) SetTailIndent(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setTailIndent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmutableparagraphstyle/1533962-headerlevel?language=objc +func (m_ MutableParagraphStyle) SetHeaderLevel(value int) { + objc.Call[objc.Void](m_, objc.Sel("setHeaderLevel:"), value) +} + +// A number used as the document’s default tab spacing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1529861-defaulttabinterval?language=objc +func (m_ MutableParagraphStyle) SetDefaultTabInterval(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setDefaultTabInterval:"), value) } // The text tab objects that represent the paragraph’s tab stops. [Full Topic] @@ -168,46 +189,32 @@ func (m_ MutableParagraphStyle) SetTabStops(value []ITextTab) { objc.Call[objc.Void](m_, objc.Sel("setTabStops:"), value) } -// The text alignment of the paragraph. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1534368-alignment?language=objc -func (m_ MutableParagraphStyle) SetAlignment(value TextAlignment) { - objc.Call[objc.Void](m_, objc.Sel("setAlignment:"), value) -} - -// The paragraph’s threshold for hyphenation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1535553-hyphenationfactor?language=objc -func (m_ MutableParagraphStyle) SetHyphenationFactor(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setHyphenationFactor:"), value) -} - -// A Boolean value that indicates whether the system tightens intercharacter spacing before truncating text. [Full Topic] +// The text blocks that contain the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1534136-allowsdefaulttighteningfortrunca?language=objc -func (m_ MutableParagraphStyle) SetAllowsDefaultTighteningForTruncation(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAllowsDefaultTighteningForTruncation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmutableparagraphstyle/1535855-textblocks?language=objc +func (m_ MutableParagraphStyle) SetTextBlocks(value []ITextBlock) { + objc.Call[objc.Void](m_, objc.Sel("setTextBlocks:"), value) } -// The distance in points between the bottom of one line fragment and the top of the next. [Full Topic] +// The line height multiple. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1528742-linespacing?language=objc -func (m_ MutableParagraphStyle) SetLineSpacing(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setLineSpacing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1524596-lineheightmultiple?language=objc +func (m_ MutableParagraphStyle) SetLineHeightMultiple(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setLineHeightMultiple:"), value) } -// The indentation of the first line of the paragraph. [Full Topic] +// The base writing direction for the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1528392-firstlineheadindent?language=objc -func (m_ MutableParagraphStyle) SetFirstLineHeadIndent(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setFirstLineHeadIndent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1534601-basewritingdirection?language=objc +func (m_ MutableParagraphStyle) SetBaseWritingDirection(value WritingDirection) { + objc.Call[objc.Void](m_, objc.Sel("setBaseWritingDirection:"), value) } -// The line height multiple. [Full Topic] +// The paragraph’s threshold for hyphenation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1524596-lineheightmultiple?language=objc -func (m_ MutableParagraphStyle) SetLineHeightMultiple(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setLineHeightMultiple:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1535553-hyphenationfactor?language=objc +func (m_ MutableParagraphStyle) SetHyphenationFactor(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setHyphenationFactor:"), value) } // The distance between the paragraph’s top and the beginning of its text content. [Full Topic] @@ -217,30 +224,23 @@ func (m_ MutableParagraphStyle) SetParagraphSpacingBefore(value float64) { objc.Call[objc.Void](m_, objc.Sel("setParagraphSpacingBefore:"), value) } -// The paragraph’s minimum line height. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1531118-minimumlineheight?language=objc -func (m_ MutableParagraphStyle) SetMinimumLineHeight(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setMinimumLineHeight:"), value) -} - -// The strategies that the text system may use to break lines while laying out the paragraph. [Full Topic] +// The space after the end of the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/3667462-linebreakstrategy?language=objc -func (m_ MutableParagraphStyle) SetLineBreakStrategy(value LineBreakStrategy) { - objc.Call[objc.Void](m_, objc.Sel("setLineBreakStrategy:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1532528-paragraphspacing?language=objc +func (m_ MutableParagraphStyle) SetParagraphSpacing(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setParagraphSpacing:"), value) } -// The paragraph’s maximum line height. [Full Topic] +// The trailing indentation of the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1524351-maximumlineheight?language=objc -func (m_ MutableParagraphStyle) SetMaximumLineHeight(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setMaximumLineHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1531666-tailindent?language=objc +func (m_ MutableParagraphStyle) SetTailIndent(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setTailIndent:"), value) } -// [Full Topic] +// The indentation of the paragraph’s lines other than the first. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/3809912-usesdefaulthyphenation?language=objc -func (m_ MutableParagraphStyle) SetUsesDefaultHyphenation(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setUsesDefaultHyphenation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1525135-headindent?language=objc +func (m_ MutableParagraphStyle) SetHeadIndent(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setHeadIndent:"), value) } diff --git a/macos/appkit/nib.gen.go b/macos/appkit/nib.gen.go index 0837d43e..d399b78d 100644 --- a/macos/appkit/nib.gen.go +++ b/macos/appkit/nib.gen.go @@ -35,30 +35,30 @@ func NibFrom(ptr unsafe.Pointer) Nib { } } -func (n_ Nib) InitWithNibDataBundle(nibData []byte, bundle foundation.IBundle) Nib { - rv := objc.Call[Nib](n_, objc.Sel("initWithNibData:bundle:"), nibData, bundle) +func (n_ Nib) InitWithNibNamedBundle(nibName NibName, bundle foundation.IBundle) Nib { + rv := objc.Call[Nib](n_, objc.Sel("initWithNibNamed:bundle:"), nibName, bundle) return rv } -// Initializes an instance with nib data and specified bundle for locating resources. [Full Topic] +// Returns an NSNib object initialized to the nib file in the specified bundle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnib/1535865-initwithnibdata?language=objc -func NewNibWithNibDataBundle(nibData []byte, bundle foundation.IBundle) Nib { - instance := NibClass.Alloc().InitWithNibDataBundle(nibData, bundle) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnib/1533932-initwithnibnamed?language=objc +func NewNibWithNibNamedBundle(nibName NibName, bundle foundation.IBundle) Nib { + instance := NibClass.Alloc().InitWithNibNamedBundle(nibName, bundle) instance.Autorelease() return instance } -func (n_ Nib) InitWithNibNamedBundle(nibName NibName, bundle foundation.IBundle) Nib { - rv := objc.Call[Nib](n_, objc.Sel("initWithNibNamed:bundle:"), nibName, bundle) +func (n_ Nib) InitWithNibDataBundle(nibData []byte, bundle foundation.IBundle) Nib { + rv := objc.Call[Nib](n_, objc.Sel("initWithNibData:bundle:"), nibData, bundle) return rv } -// Returns an NSNib object initialized to the nib file in the specified bundle. [Full Topic] +// Initializes an instance with nib data and specified bundle for locating resources. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnib/1533932-initwithnibnamed?language=objc -func NewNibWithNibNamedBundle(nibName NibName, bundle foundation.IBundle) Nib { - instance := NibClass.Alloc().InitWithNibNamedBundle(nibName, bundle) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnib/1535865-initwithnibdata?language=objc +func NewNibWithNibDataBundle(nibData []byte, bundle foundation.IBundle) Nib { + instance := NibClass.Alloc().InitWithNibDataBundle(nibData, bundle) instance.Autorelease() return instance } diff --git a/macos/appkit/nib_connector.gen.go b/macos/appkit/nib_connector.gen.go index 4b6ea2c7..a8ffd133 100644 --- a/macos/appkit/nib_connector.gen.go +++ b/macos/appkit/nib_connector.gen.go @@ -20,12 +20,12 @@ type INibConnector interface { objc.IObject ReplaceObjectWithObject(oldObject objc.IObject, newObject objc.IObject) EstablishConnection() - Label() string - SetLabel(value string) - Destination() objc.Object - SetDestination(value objc.IObject) Source() objc.Object SetSource(value objc.IObject) + Destination() objc.Object + SetDestination(value objc.IObject) + Label() string + SetLabel(value string) } // A connection between two nibs. [Full Topic] @@ -77,17 +77,17 @@ func (n_ NibConnector) EstablishConnection() { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnibconnector/1387493-label?language=objc -func (n_ NibConnector) Label() string { - rv := objc.Call[string](n_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnibconnector/1387484-source?language=objc +func (n_ NibConnector) Source() objc.Object { + rv := objc.Call[objc.Object](n_, objc.Sel("source")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnibconnector/1387493-label?language=objc -func (n_ NibConnector) SetLabel(value string) { - objc.Call[objc.Void](n_, objc.Sel("setLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnibconnector/1387484-source?language=objc +func (n_ NibConnector) SetSource(value objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setSource:"), value) } // [Full Topic] @@ -107,15 +107,15 @@ func (n_ NibConnector) SetDestination(value objc.IObject) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnibconnector/1387484-source?language=objc -func (n_ NibConnector) Source() objc.Object { - rv := objc.Call[objc.Object](n_, objc.Sel("source")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnibconnector/1387493-label?language=objc +func (n_ NibConnector) Label() string { + rv := objc.Call[string](n_, objc.Sel("label")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnibconnector/1387484-source?language=objc -func (n_ NibConnector) SetSource(value objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setSource:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsnibconnector/1387493-label?language=objc +func (n_ NibConnector) SetLabel(value string) { + objc.Call[objc.Void](n_, objc.Sel("setLabel:"), value) } diff --git a/macos/appkit/object_controller.gen.go b/macos/appkit/object_controller.gen.go index 0f3f8ca6..a97c801b 100644 --- a/macos/appkit/object_controller.gen.go +++ b/macos/appkit/object_controller.gen.go @@ -20,37 +20,37 @@ type _ObjectControllerClass struct { // An interface definition for the [ObjectController] class. type IObjectController interface { IController - DefaultFetchRequest() coredata.FetchRequest + AddObject(object objc.IObject) PrepareContent() - Remove(sender objc.IObject) objc.Object - FetchWithRequestMergeError(fetchRequest coredata.IFetchRequest, merge bool, error unsafe.Pointer) bool - RemoveObject(object objc.IObject) NewObject() objc.Object - Add(sender objc.IObject) objc.Object + RemoveObject(object objc.IObject) + Fetch(sender objc.IObject) objc.Object ValidateUserInterfaceItem(item PValidatedUserInterfaceItem) bool ValidateUserInterfaceItemObject(itemObject objc.IObject) bool - AddObject(object objc.IObject) - Fetch(sender objc.IObject) objc.Object - IsEditable() bool - SetEditable(value bool) + Remove(sender objc.IObject) objc.Object + Add(sender objc.IObject) objc.Object + FetchWithRequestMergeError(fetchRequest coredata.IFetchRequest, merge bool, error unsafe.Pointer) bool + DefaultFetchRequest() coredata.FetchRequest EntityName() string SetEntityName(value string) + Content() objc.Object + SetContent(value objc.IObject) + CanAdd() bool ObjectClass() objc.Class SetObjectClass(value objc.IClass) - AutomaticallyPreparesContent() bool - SetAutomaticallyPreparesContent(value bool) + IsEditable() bool + SetEditable(value bool) FetchPredicate() foundation.Predicate SetFetchPredicate(value foundation.IPredicate) - UsesLazyFetching() bool - SetUsesLazyFetching(value bool) - Content() objc.Object - SetContent(value objc.IObject) + SelectedObjects() []objc.Object + AutomaticallyPreparesContent() bool + SetAutomaticallyPreparesContent(value bool) + Selection() objc.Object ManagedObjectContext() coredata.ManagedObjectContext SetManagedObjectContext(value coredata.IManagedObjectContext) - SelectedObjects() []objc.Object - CanAdd() bool CanRemove() bool - Selection() objc.Object + UsesLazyFetching() bool + SetUsesLazyFetching(value bool) } // A controller that can manage an object's properties referenced by key-value paths. [Full Topic] @@ -100,12 +100,11 @@ func (o_ ObjectController) Init() ObjectController { return rv } -// Returns the default fetch request used by the receiver. [Full Topic] +// Sets the receiver’s content object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1528145-defaultfetchrequest?language=objc -func (o_ ObjectController) DefaultFetchRequest() coredata.FetchRequest { - rv := objc.Call[coredata.FetchRequest](o_, objc.Sel("defaultFetchRequest")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1534093-addobject?language=objc +func (o_ ObjectController) AddObject(object objc.IObject) { + objc.Call[objc.Void](o_, objc.Sel("addObject:"), object) } // Typically overridden by subclasses that require additional control over the creation of new objects. [Full Topic] @@ -115,19 +114,11 @@ func (o_ ObjectController) PrepareContent() { objc.Call[objc.Void](o_, objc.Sel("prepareContent")) } -// Removes the receiver’s content object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1533713-remove?language=objc -func (o_ ObjectController) Remove(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("remove:"), sender) - return rv -} - -// Subclasses should override this method to customize a fetch request, for example to specify fetch limits. [Full Topic] +// Creates and returns a new object of the appropriate class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1531782-fetchwithrequest?language=objc -func (o_ ObjectController) FetchWithRequestMergeError(fetchRequest coredata.IFetchRequest, merge bool, error unsafe.Pointer) bool { - rv := objc.Call[bool](o_, objc.Sel("fetchWithRequest:merge:error:"), fetchRequest, merge, error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1535921-newobject?language=objc +func (o_ ObjectController) NewObject() objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("newObject")) return rv } @@ -138,19 +129,11 @@ func (o_ ObjectController) RemoveObject(object objc.IObject) { objc.Call[objc.Void](o_, objc.Sel("removeObject:"), object) } -// Creates and returns a new object of the appropriate class. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1535921-newobject?language=objc -func (o_ ObjectController) NewObject() objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("newObject")) - return rv -} - -// Creates a new object and sets it as the receiver’s content object. [Full Topic] +// Causes the receiver to fetch the data objects specified by the entity name and fetch predicate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1528376-add?language=objc -func (o_ ObjectController) Add(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("add:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1524554-fetch?language=objc +func (o_ ObjectController) Fetch(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("fetch:"), sender) return rv } @@ -171,34 +154,36 @@ func (o_ ObjectController) ValidateUserInterfaceItemObject(itemObject objc.IObje return rv } -// Sets the receiver’s content object. [Full Topic] +// Removes the receiver’s content object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1534093-addobject?language=objc -func (o_ ObjectController) AddObject(object objc.IObject) { - objc.Call[objc.Void](o_, objc.Sel("addObject:"), object) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1533713-remove?language=objc +func (o_ ObjectController) Remove(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("remove:"), sender) + return rv } -// Causes the receiver to fetch the data objects specified by the entity name and fetch predicate. [Full Topic] +// Creates a new object and sets it as the receiver’s content object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1524554-fetch?language=objc -func (o_ ObjectController) Fetch(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("fetch:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1528376-add?language=objc +func (o_ ObjectController) Add(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("add:"), sender) return rv } -// A Boolean that indicates whether the receiver allows adding and removing objects. [Full Topic] +// Subclasses should override this method to customize a fetch request, for example to specify fetch limits. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1534699-editable?language=objc -func (o_ ObjectController) IsEditable() bool { - rv := objc.Call[bool](o_, objc.Sel("isEditable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1531782-fetchwithrequest?language=objc +func (o_ ObjectController) FetchWithRequestMergeError(fetchRequest coredata.IFetchRequest, merge bool, error unsafe.Pointer) bool { + rv := objc.Call[bool](o_, objc.Sel("fetchWithRequest:merge:error:"), fetchRequest, merge, error) return rv } -// A Boolean that indicates whether the receiver allows adding and removing objects. [Full Topic] +// Returns the default fetch request used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1534699-editable?language=objc -func (o_ ObjectController) SetEditable(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setEditable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1528145-defaultfetchrequest?language=objc +func (o_ ObjectController) DefaultFetchRequest() coredata.FetchRequest { + rv := objc.Call[coredata.FetchRequest](o_, objc.Sel("defaultFetchRequest")) + return rv } // The entity name used by the receiver to create new objects. [Full Topic] @@ -216,6 +201,29 @@ func (o_ ObjectController) SetEntityName(value string) { objc.Call[objc.Void](o_, objc.Sel("setEntityName:"), value) } +// The receiver’s content object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1530826-content?language=objc +func (o_ ObjectController) Content() objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("content")) + return rv +} + +// The receiver’s content object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1530826-content?language=objc +func (o_ ObjectController) SetContent(value objc.IObject) { + objc.Call[objc.Void](o_, objc.Sel("setContent:"), value) +} + +// A Boolean value that indicates whether an object can be added to the receiver using add:. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1528497-canadd?language=objc +func (o_ ObjectController) CanAdd() bool { + rv := objc.Call[bool](o_, objc.Sel("canAdd")) + return rv +} + // The object class to use when creating new objects. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1535459-objectclass?language=objc @@ -231,19 +239,19 @@ func (o_ ObjectController) SetObjectClass(value objc.IClass) { objc.Call[objc.Void](o_, objc.Sel("setObjectClass:"), value) } -// A Boolean that shows whether the receiver automatically creates and inserts new content objects automatically when loading from a nib file. [Full Topic] +// A Boolean that indicates whether the receiver allows adding and removing objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1534767-automaticallypreparescontent?language=objc -func (o_ ObjectController) AutomaticallyPreparesContent() bool { - rv := objc.Call[bool](o_, objc.Sel("automaticallyPreparesContent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1534699-editable?language=objc +func (o_ ObjectController) IsEditable() bool { + rv := objc.Call[bool](o_, objc.Sel("isEditable")) return rv } -// A Boolean that shows whether the receiver automatically creates and inserts new content objects automatically when loading from a nib file. [Full Topic] +// A Boolean that indicates whether the receiver allows adding and removing objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1534767-automaticallypreparescontent?language=objc -func (o_ ObjectController) SetAutomaticallyPreparesContent(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setAutomaticallyPreparesContent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1534699-editable?language=objc +func (o_ ObjectController) SetEditable(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setEditable:"), value) } // The receiver’s fetch predicate. [Full Topic] @@ -261,34 +269,35 @@ func (o_ ObjectController) SetFetchPredicate(value foundation.IPredicate) { objc.Call[objc.Void](o_, objc.Sel("setFetchPredicate:"), value) } -// A Boolean that indicates whether the receiver uses lazy fetching. [Full Topic] +// An array of all objects to be affected by editing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1531411-useslazyfetching?language=objc -func (o_ ObjectController) UsesLazyFetching() bool { - rv := objc.Call[bool](o_, objc.Sel("usesLazyFetching")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1535397-selectedobjects?language=objc +func (o_ ObjectController) SelectedObjects() []objc.Object { + rv := objc.Call[[]objc.Object](o_, objc.Sel("selectedObjects")) return rv } -// A Boolean that indicates whether the receiver uses lazy fetching. [Full Topic] +// A Boolean that shows whether the receiver automatically creates and inserts new content objects automatically when loading from a nib file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1531411-useslazyfetching?language=objc -func (o_ ObjectController) SetUsesLazyFetching(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setUsesLazyFetching:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1534767-automaticallypreparescontent?language=objc +func (o_ ObjectController) AutomaticallyPreparesContent() bool { + rv := objc.Call[bool](o_, objc.Sel("automaticallyPreparesContent")) + return rv } -// The receiver’s content object. [Full Topic] +// A Boolean that shows whether the receiver automatically creates and inserts new content objects automatically when loading from a nib file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1530826-content?language=objc -func (o_ ObjectController) Content() objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("content")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1534767-automaticallypreparescontent?language=objc +func (o_ ObjectController) SetAutomaticallyPreparesContent(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setAutomaticallyPreparesContent:"), value) } -// The receiver’s content object. [Full Topic] +// A proxy object representing the receiver’s selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1530826-content?language=objc -func (o_ ObjectController) SetContent(value objc.IObject) { - objc.Call[objc.Void](o_, objc.Sel("setContent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1527403-selection?language=objc +func (o_ ObjectController) Selection() objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("selection")) + return rv } // The receiver’s managed object context. [Full Topic] @@ -306,22 +315,6 @@ func (o_ ObjectController) SetManagedObjectContext(value coredata.IManagedObject objc.Call[objc.Void](o_, objc.Sel("setManagedObjectContext:"), value) } -// An array of all objects to be affected by editing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1535397-selectedobjects?language=objc -func (o_ ObjectController) SelectedObjects() []objc.Object { - rv := objc.Call[[]objc.Object](o_, objc.Sel("selectedObjects")) - return rv -} - -// A Boolean value that indicates whether an object can be added to the receiver using [appkit/nsobjectcontroller/add]. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1528497-canadd?language=objc -func (o_ ObjectController) CanAdd() bool { - rv := objc.Call[bool](o_, objc.Sel("canAdd")) - return rv -} - // A Boolean value that indicates whether an object can be removed from the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1532378-canremove?language=objc @@ -330,10 +323,17 @@ func (o_ ObjectController) CanRemove() bool { return rv } -// A proxy object representing the receiver’s selection. [Full Topic] +// A Boolean that indicates whether the receiver uses lazy fetching. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1527403-selection?language=objc -func (o_ ObjectController) Selection() objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("selection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1531411-useslazyfetching?language=objc +func (o_ ObjectController) UsesLazyFetching() bool { + rv := objc.Call[bool](o_, objc.Sel("usesLazyFetching")) return rv } + +// A Boolean that indicates whether the receiver uses lazy fetching. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1531411-useslazyfetching?language=objc +func (o_ ObjectController) SetUsesLazyFetching(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setUsesLazyFetching:"), value) +} diff --git a/macos/appkit/open_gl_layer.gen.go b/macos/appkit/open_gl_layer.gen.go index c2905ba9..d452a2ec 100644 --- a/macos/appkit/open_gl_layer.gen.go +++ b/macos/appkit/open_gl_layer.gen.go @@ -54,56 +54,56 @@ func (o_ OpenGLLayer) Init() OpenGLLayer { return rv } -func (o_ OpenGLLayer) ModelLayer() OpenGLLayer { - rv := objc.Call[OpenGLLayer](o_, objc.Sel("modelLayer")) +func (oc _OpenGLLayerClass) Layer() OpenGLLayer { + rv := objc.Call[OpenGLLayer](oc, objc.Sel("layer")) return rv } -// Returns the model layer object associated with the receiver, if any. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc -func OpenGLLayer_ModelLayer() OpenGLLayer { - instance := OpenGLLayerClass.Alloc().ModelLayer() - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func OpenGLLayer_Layer() OpenGLLayer { + return OpenGLLayerClass.Layer() } -func (o_ OpenGLLayer) PresentationLayer() OpenGLLayer { - rv := objc.Call[OpenGLLayer](o_, objc.Sel("presentationLayer")) +func (o_ OpenGLLayer) InitWithLayer(layer objc.IObject) OpenGLLayer { + rv := objc.Call[OpenGLLayer](o_, objc.Sel("initWithLayer:"), layer) return rv } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] +// Override to copy or initialize custom fields of the specified layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc -func OpenGLLayer_PresentationLayer() OpenGLLayer { - instance := OpenGLLayerClass.Alloc().PresentationLayer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewOpenGLLayerWithLayer(layer objc.IObject) OpenGLLayer { + instance := OpenGLLayerClass.Alloc().InitWithLayer(layer) instance.Autorelease() return instance } -func (o_ OpenGLLayer) InitWithLayer(layer objc.IObject) OpenGLLayer { - rv := objc.Call[OpenGLLayer](o_, objc.Sel("initWithLayer:"), layer) +func (o_ OpenGLLayer) ModelLayer() OpenGLLayer { + rv := objc.Call[OpenGLLayer](o_, objc.Sel("modelLayer")) return rv } -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewOpenGLLayerWithLayer(layer objc.IObject) OpenGLLayer { - instance := OpenGLLayerClass.Alloc().InitWithLayer(layer) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc +func OpenGLLayer_ModelLayer() OpenGLLayer { + instance := OpenGLLayerClass.Alloc().ModelLayer() instance.Autorelease() return instance } -func (oc _OpenGLLayerClass) Layer() OpenGLLayer { - rv := objc.Call[OpenGLLayer](oc, objc.Sel("layer")) +func (o_ OpenGLLayer) PresentationLayer() OpenGLLayer { + rv := objc.Call[OpenGLLayer](o_, objc.Sel("presentationLayer")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func OpenGLLayer_Layer() OpenGLLayer { - return OpenGLLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc +func OpenGLLayer_PresentationLayer() OpenGLLayer { + instance := OpenGLLayerClass.Alloc().PresentationLayer() + instance.Autorelease() + return instance } diff --git a/macos/appkit/open_panel.gen.go b/macos/appkit/open_panel.gen.go index ee7f4309..16529d08 100644 --- a/macos/appkit/open_panel.gen.go +++ b/macos/appkit/open_panel.gen.go @@ -19,21 +19,21 @@ type _OpenPanelClass struct { // An interface definition for the [OpenPanel] class. type IOpenPanel interface { ISavePanel - URLs() []foundation.URL - AllowsMultipleSelection() bool - SetAllowsMultipleSelection(value bool) - CanDownloadUbiquitousContents() bool - SetCanDownloadUbiquitousContents(value bool) IsAccessoryViewDisclosed() bool SetAccessoryViewDisclosed(value bool) + ResolvesAliases() bool + SetResolvesAliases(value bool) CanResolveUbiquitousConflicts() bool SetCanResolveUbiquitousConflicts(value bool) - CanChooseDirectories() bool - SetCanChooseDirectories(value bool) + CanDownloadUbiquitousContents() bool + SetCanDownloadUbiquitousContents(value bool) + AllowsMultipleSelection() bool + SetAllowsMultipleSelection(value bool) + URLs() []foundation.URL CanChooseFiles() bool SetCanChooseFiles(value bool) - ResolvesAliases() bool - SetResolvesAliases(value bool) + CanChooseDirectories() bool + SetCanChooseDirectories(value bool) } // A panel that prompts the user to select a file to open. [Full Topic] @@ -95,20 +95,6 @@ func NewOpenPanelWithContentRectStyleMaskBackingDeferScreen(contentRect foundati return instance } -func (o_ OpenPanel) InitWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) OpenPanel { - rv := objc.Call[OpenPanel](o_, objc.Sel("initWithContentRect:styleMask:backing:defer:"), contentRect, style, backingStoreType, flag) - return rv -} - -// Initializes the window with the specified values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc -func NewOpenPanelWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) OpenPanel { - instance := OpenPanelClass.Alloc().InitWithContentRectStyleMaskBackingDefer(contentRect, style, backingStoreType, flag) - instance.Autorelease() - return instance -} - // Creates a new Open panel and initializes it with a default configuration. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1584365-openpanel?language=objc @@ -124,44 +110,6 @@ func OpenPanel_OpenPanel() OpenPanel { return OpenPanelClass.OpenPanel() } -// An array of URLs, each of which contains the fully specified location of a selected file or directory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1529845-urls?language=objc -func (o_ OpenPanel) URLs() []foundation.URL { - rv := objc.Call[[]foundation.URL](o_, objc.Sel("URLs")) - return rv -} - -// A Boolean that indicates whether the user may select multiple files and directories. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1530786-allowsmultipleselection?language=objc -func (o_ OpenPanel) AllowsMultipleSelection() bool { - rv := objc.Call[bool](o_, objc.Sel("allowsMultipleSelection")) - return rv -} - -// A Boolean that indicates whether the user may select multiple files and directories. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1530786-allowsmultipleselection?language=objc -func (o_ OpenPanel) SetAllowsMultipleSelection(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setAllowsMultipleSelection:"), value) -} - -// A Boolean value that indicates how the panel responds to iCloud documents that aren't fully downloaded locally. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533418-candownloadubiquitouscontents?language=objc -func (o_ OpenPanel) CanDownloadUbiquitousContents() bool { - rv := objc.Call[bool](o_, objc.Sel("canDownloadUbiquitousContents")) - return rv -} - -// A Boolean value that indicates how the panel responds to iCloud documents that aren't fully downloaded locally. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533418-candownloadubiquitouscontents?language=objc -func (o_ OpenPanel) SetCanDownloadUbiquitousContents(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setCanDownloadUbiquitousContents:"), value) -} - // A Boolean value that indicates whether the panel's accessory view is visible. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1535036-accessoryviewdisclosed?language=objc @@ -177,6 +125,21 @@ func (o_ OpenPanel) SetAccessoryViewDisclosed(value bool) { objc.Call[objc.Void](o_, objc.Sel("setAccessoryViewDisclosed:"), value) } +// A Boolean that indicates whether the panel resolves aliases. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533625-resolvesaliases?language=objc +func (o_ OpenPanel) ResolvesAliases() bool { + rv := objc.Call[bool](o_, objc.Sel("resolvesAliases")) + return rv +} + +// A Boolean that indicates whether the panel resolves aliases. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533625-resolvesaliases?language=objc +func (o_ OpenPanel) SetResolvesAliases(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setResolvesAliases:"), value) +} + // A Boolean value that indicates how the panel responds to iCloud documents that have conflicting versions. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533261-canresolveubiquitousconflicts?language=objc @@ -192,19 +155,42 @@ func (o_ OpenPanel) SetCanResolveUbiquitousConflicts(value bool) { objc.Call[objc.Void](o_, objc.Sel("setCanResolveUbiquitousConflicts:"), value) } -// A Boolean that indicates whether the user can choose directories in the panel. [Full Topic] +// A Boolean value that indicates how the panel responds to iCloud documents that aren't fully downloaded locally. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1532668-canchoosedirectories?language=objc -func (o_ OpenPanel) CanChooseDirectories() bool { - rv := objc.Call[bool](o_, objc.Sel("canChooseDirectories")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533418-candownloadubiquitouscontents?language=objc +func (o_ OpenPanel) CanDownloadUbiquitousContents() bool { + rv := objc.Call[bool](o_, objc.Sel("canDownloadUbiquitousContents")) return rv } -// A Boolean that indicates whether the user can choose directories in the panel. [Full Topic] +// A Boolean value that indicates how the panel responds to iCloud documents that aren't fully downloaded locally. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1532668-canchoosedirectories?language=objc -func (o_ OpenPanel) SetCanChooseDirectories(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setCanChooseDirectories:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533418-candownloadubiquitouscontents?language=objc +func (o_ OpenPanel) SetCanDownloadUbiquitousContents(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setCanDownloadUbiquitousContents:"), value) +} + +// A Boolean that indicates whether the user may select multiple files and directories. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1530786-allowsmultipleselection?language=objc +func (o_ OpenPanel) AllowsMultipleSelection() bool { + rv := objc.Call[bool](o_, objc.Sel("allowsMultipleSelection")) + return rv +} + +// A Boolean that indicates whether the user may select multiple files and directories. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1530786-allowsmultipleselection?language=objc +func (o_ OpenPanel) SetAllowsMultipleSelection(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setAllowsMultipleSelection:"), value) +} + +// An array of URLs, each of which contains the fully specified location of a selected file or directory. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1529845-urls?language=objc +func (o_ OpenPanel) URLs() []foundation.URL { + rv := objc.Call[[]foundation.URL](o_, objc.Sel("URLs")) + return rv } // A Boolean that indicates whether the user can choose files in the panel. [Full Topic] @@ -222,17 +208,17 @@ func (o_ OpenPanel) SetCanChooseFiles(value bool) { objc.Call[objc.Void](o_, objc.Sel("setCanChooseFiles:"), value) } -// A Boolean that indicates whether the panel resolves aliases. [Full Topic] +// A Boolean that indicates whether the user can choose directories in the panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533625-resolvesaliases?language=objc -func (o_ OpenPanel) ResolvesAliases() bool { - rv := objc.Call[bool](o_, objc.Sel("resolvesAliases")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1532668-canchoosedirectories?language=objc +func (o_ OpenPanel) CanChooseDirectories() bool { + rv := objc.Call[bool](o_, objc.Sel("canChooseDirectories")) return rv } -// A Boolean that indicates whether the panel resolves aliases. [Full Topic] +// A Boolean that indicates whether the user can choose directories in the panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533625-resolvesaliases?language=objc -func (o_ OpenPanel) SetResolvesAliases(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setResolvesAliases:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1532668-canchoosedirectories?language=objc +func (o_ OpenPanel) SetCanChooseDirectories(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setCanChooseDirectories:"), value) } diff --git a/macos/appkit/open_save_panel_delegate.gen.go b/macos/appkit/open_save_panel_delegate.gen.go index 6e7c119d..70221029 100644 --- a/macos/appkit/open_save_panel_delegate.gen.go +++ b/macos/appkit/open_save_panel_delegate.gen.go @@ -3,8 +3,6 @@ package appkit import ( - "unsafe" - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -13,58 +11,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate?language=objc type POpenSavePanelDelegate interface { - // optional - PanelUserEnteredFilenameConfirmed(sender objc.Object, filename string, okFlag bool) string - HasPanelUserEnteredFilenameConfirmed() bool - // optional PanelShouldEnableURL(sender objc.Object, url foundation.URL) bool HasPanelShouldEnableURL() bool - // optional - PanelValidateURLError(sender objc.Object, url foundation.URL, outError unsafe.Pointer) bool - HasPanelValidateURLError() bool - - // optional - PanelDidChangeToDirectoryURL(sender objc.Object, url foundation.URL) - HasPanelDidChangeToDirectoryURL() bool - // optional PanelSelectionDidChange(sender objc.Object) HasPanelSelectionDidChange() bool - - // optional - PanelWillExpand(sender objc.Object, expanding bool) - HasPanelWillExpand() bool } // A delegate implementation builder for the [POpenSavePanelDelegate] protocol. type OpenSavePanelDelegate struct { - _PanelUserEnteredFilenameConfirmed func(sender objc.Object, filename string, okFlag bool) string - _PanelShouldEnableURL func(sender objc.Object, url foundation.URL) bool - _PanelValidateURLError func(sender objc.Object, url foundation.URL, outError unsafe.Pointer) bool - _PanelDidChangeToDirectoryURL func(sender objc.Object, url foundation.URL) - _PanelSelectionDidChange func(sender objc.Object) - _PanelWillExpand func(sender objc.Object, expanding bool) -} - -func (di *OpenSavePanelDelegate) HasPanelUserEnteredFilenameConfirmed() bool { - return di._PanelUserEnteredFilenameConfirmed != nil + _PanelShouldEnableURL func(sender objc.Object, url foundation.URL) bool + _PanelSelectionDidChange func(sender objc.Object) } -// Tells the delegate that the user confirmed a filename choice by clicking Save in a Save panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1524630-panel?language=objc -func (di *OpenSavePanelDelegate) SetPanelUserEnteredFilenameConfirmed(f func(sender objc.Object, filename string, okFlag bool) string) { - di._PanelUserEnteredFilenameConfirmed = f -} - -// Tells the delegate that the user confirmed a filename choice by clicking Save in a Save panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1524630-panel?language=objc -func (di *OpenSavePanelDelegate) PanelUserEnteredFilenameConfirmed(sender objc.Object, filename string, okFlag bool) string { - return di._PanelUserEnteredFilenameConfirmed(sender, filename, okFlag) -} func (di *OpenSavePanelDelegate) HasPanelShouldEnableURL() bool { return di._PanelShouldEnableURL != nil } @@ -82,40 +43,6 @@ func (di *OpenSavePanelDelegate) SetPanelShouldEnableURL(f func(sender objc.Obje func (di *OpenSavePanelDelegate) PanelShouldEnableURL(sender objc.Object, url foundation.URL) bool { return di._PanelShouldEnableURL(sender, url) } -func (di *OpenSavePanelDelegate) HasPanelValidateURLError() bool { - return di._PanelValidateURLError != nil -} - -// Asks the delegate to validate the URL for a file that the user selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1535141-panel?language=objc -func (di *OpenSavePanelDelegate) SetPanelValidateURLError(f func(sender objc.Object, url foundation.URL, outError unsafe.Pointer) bool) { - di._PanelValidateURLError = f -} - -// Asks the delegate to validate the URL for a file that the user selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1535141-panel?language=objc -func (di *OpenSavePanelDelegate) PanelValidateURLError(sender objc.Object, url foundation.URL, outError unsafe.Pointer) bool { - return di._PanelValidateURLError(sender, url, outError) -} -func (di *OpenSavePanelDelegate) HasPanelDidChangeToDirectoryURL() bool { - return di._PanelDidChangeToDirectoryURL != nil -} - -// Tells the delegate that the user changed the selected directory to the directory located at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1527117-panel?language=objc -func (di *OpenSavePanelDelegate) SetPanelDidChangeToDirectoryURL(f func(sender objc.Object, url foundation.URL)) { - di._PanelDidChangeToDirectoryURL = f -} - -// Tells the delegate that the user changed the selected directory to the directory located at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1527117-panel?language=objc -func (di *OpenSavePanelDelegate) PanelDidChangeToDirectoryURL(sender objc.Object, url foundation.URL) { - di._PanelDidChangeToDirectoryURL(sender, url) -} func (di *OpenSavePanelDelegate) HasPanelSelectionDidChange() bool { return di._PanelSelectionDidChange != nil } @@ -133,23 +60,6 @@ func (di *OpenSavePanelDelegate) SetPanelSelectionDidChange(f func(sender objc.O func (di *OpenSavePanelDelegate) PanelSelectionDidChange(sender objc.Object) { di._PanelSelectionDidChange(sender) } -func (di *OpenSavePanelDelegate) HasPanelWillExpand() bool { - return di._PanelWillExpand != nil -} - -// Tells the delegate that the Save panel is about to expand or collapse because the user clicked the disclosure triangle that displays or hides the file browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1532953-panel?language=objc -func (di *OpenSavePanelDelegate) SetPanelWillExpand(f func(sender objc.Object, expanding bool)) { - di._PanelWillExpand = f -} - -// Tells the delegate that the Save panel is about to expand or collapse because the user clicked the disclosure triangle that displays or hides the file browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1532953-panel?language=objc -func (di *OpenSavePanelDelegate) PanelWillExpand(sender objc.Object, expanding bool) { - di._PanelWillExpand(sender, expanding) -} // ensure impl type implements protocol interface var _ POpenSavePanelDelegate = (*OpenSavePanelDelegateObject)(nil) @@ -159,18 +69,6 @@ type OpenSavePanelDelegateObject struct { objc.Object } -func (o_ OpenSavePanelDelegateObject) HasPanelUserEnteredFilenameConfirmed() bool { - return o_.RespondsToSelector(objc.Sel("panel:userEnteredFilename:confirmed:")) -} - -// Tells the delegate that the user confirmed a filename choice by clicking Save in a Save panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1524630-panel?language=objc -func (o_ OpenSavePanelDelegateObject) PanelUserEnteredFilenameConfirmed(sender objc.Object, filename string, okFlag bool) string { - rv := objc.Call[string](o_, objc.Sel("panel:userEnteredFilename:confirmed:"), sender, filename, okFlag) - return rv -} - func (o_ OpenSavePanelDelegateObject) HasPanelShouldEnableURL() bool { return o_.RespondsToSelector(objc.Sel("panel:shouldEnableURL:")) } @@ -183,29 +81,6 @@ func (o_ OpenSavePanelDelegateObject) PanelShouldEnableURL(sender objc.Object, u return rv } -func (o_ OpenSavePanelDelegateObject) HasPanelValidateURLError() bool { - return o_.RespondsToSelector(objc.Sel("panel:validateURL:error:")) -} - -// Asks the delegate to validate the URL for a file that the user selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1535141-panel?language=objc -func (o_ OpenSavePanelDelegateObject) PanelValidateURLError(sender objc.Object, url foundation.URL, outError unsafe.Pointer) bool { - rv := objc.Call[bool](o_, objc.Sel("panel:validateURL:error:"), sender, url, outError) - return rv -} - -func (o_ OpenSavePanelDelegateObject) HasPanelDidChangeToDirectoryURL() bool { - return o_.RespondsToSelector(objc.Sel("panel:didChangeToDirectoryURL:")) -} - -// Tells the delegate that the user changed the selected directory to the directory located at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1527117-panel?language=objc -func (o_ OpenSavePanelDelegateObject) PanelDidChangeToDirectoryURL(sender objc.Object, url foundation.URL) { - objc.Call[objc.Void](o_, objc.Sel("panel:didChangeToDirectoryURL:"), sender, url) -} - func (o_ OpenSavePanelDelegateObject) HasPanelSelectionDidChange() bool { return o_.RespondsToSelector(objc.Sel("panelSelectionDidChange:")) } @@ -216,14 +91,3 @@ func (o_ OpenSavePanelDelegateObject) HasPanelSelectionDidChange() bool { func (o_ OpenSavePanelDelegateObject) PanelSelectionDidChange(sender objc.Object) { objc.Call[objc.Void](o_, objc.Sel("panelSelectionDidChange:"), sender) } - -func (o_ OpenSavePanelDelegateObject) HasPanelWillExpand() bool { - return o_.RespondsToSelector(objc.Sel("panel:willExpand:")) -} - -// Tells the delegate that the Save panel is about to expand or collapse because the user clicked the disclosure triangle that displays or hides the file browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1532953-panel?language=objc -func (o_ OpenSavePanelDelegateObject) PanelWillExpand(sender objc.Object, expanding bool) { - objc.Call[objc.Void](o_, objc.Sel("panel:willExpand:"), sender, expanding) -} diff --git a/macos/appkit/outline_view.gen.go b/macos/appkit/outline_view.gen.go index ca7da1e7..f4e7f5eb 100644 --- a/macos/appkit/outline_view.gen.go +++ b/macos/appkit/outline_view.gen.go @@ -19,38 +19,35 @@ type _OutlineViewClass struct { // An interface definition for the [OutlineView] class. type IOutlineView interface { ITableView + SetDropItemDropChildIndex(item objc.IObject, index int) MoveItemAtIndexInParentToIndexInParent(fromIndex int, oldParent objc.IObject, toIndex int, newParent objc.IObject) IsItemExpanded(item objc.IObject) bool - ItemAtRow(row int) objc.Object - RemoveItemsAtIndexesInParentWithAnimation(indexes foundation.IIndexSet, parent objc.IObject, animationOptions TableViewAnimationOptions) RowForItem(item objc.IObject) int - ExpandItemExpandChildren(item objc.IObject, expandChildren bool) - LevelForRow(row int) int - ChildIndexForItem(item objc.IObject) int - FrameOfOutlineCellAtRow(row int) foundation.Rect + ExpandItem(item objc.IObject) + LevelForItem(item objc.IObject) int ReloadItem(item objc.IObject) - InsertItemsAtIndexesInParentWithAnimation(indexes foundation.IIndexSet, parent objc.IObject, animationOptions TableViewAnimationOptions) - NumberOfChildrenOfItem(item objc.IObject) int + RemoveItemsAtIndexesInParentWithAnimation(indexes foundation.IIndexSet, parent objc.IObject, animationOptions TableViewAnimationOptions) ParentForItem(item objc.IObject) objc.Object - LevelForItem(item objc.IObject) int CollapseItem(item objc.IObject) + LevelForRow(row int) int + NumberOfChildrenOfItem(item objc.IObject) int + InsertItemsAtIndexesInParentWithAnimation(indexes foundation.IIndexSet, parent objc.IObject, animationOptions TableViewAnimationOptions) + FrameOfOutlineCellAtRow(row int) foundation.Rect + IsExpandable(item objc.IObject) bool + ItemAtRow(row int) objc.Object ChildOfItem(index int, item objc.IObject) objc.Object - CollapseItemCollapseChildren(item objc.IObject, collapseChildren bool) - SetDropItemDropChildIndex(item objc.IObject, index int) - ReloadItemReloadChildren(item objc.IObject, reloadChildren bool) + ChildIndexForItem(item objc.IObject) int ShouldCollapseAutoExpandedItemsForDeposited(deposited bool) bool - IsExpandable(item objc.IObject) bool - ExpandItem(item objc.IObject) - IndentationMarkerFollowsCell() bool - SetIndentationMarkerFollowsCell(value bool) - StronglyReferencesItems() bool - SetStronglyReferencesItems(value bool) AutosaveExpandedItems() bool SetAutosaveExpandedItems(value bool) - OutlineTableColumn() TableColumn - SetOutlineTableColumn(value ITableColumn) AutoresizesOutlineColumn() bool SetAutoresizesOutlineColumn(value bool) + StronglyReferencesItems() bool + SetStronglyReferencesItems(value bool) + IndentationMarkerFollowsCell() bool + SetIndentationMarkerFollowsCell(value bool) + OutlineTableColumn() TableColumn + SetOutlineTableColumn(value ITableColumn) IndentationPerLevel() float64 SetIndentationPerLevel(value float64) } @@ -102,6 +99,13 @@ func NewOutlineViewWithFrame(frameRect foundation.Rect) OutlineView { return instance } +// Used to “retarget” a proposed drop. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1525351-setdropitem?language=objc +func (o_ OutlineView) SetDropItemDropChildIndex(item objc.IObject, index int) { + objc.Call[objc.Void](o_, objc.Sel("setDropItem:dropChildIndex:"), item, index) +} + // Moves an item at a given index in the given parent to a new index in a new parent. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1530467-moveitematindex?language=objc @@ -117,14 +121,36 @@ func (o_ OutlineView) IsItemExpanded(item objc.IObject) bool { return rv } -// Returns the item associated with a given row. [Full Topic] +// Returns the row associated with a given item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1534846-itematrow?language=objc -func (o_ OutlineView) ItemAtRow(row int) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("itemAtRow:"), row) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1533885-rowforitem?language=objc +func (o_ OutlineView) RowForItem(item objc.IObject) int { + rv := objc.Call[int](o_, objc.Sel("rowForItem:"), item) + return rv +} + +// Expands a given item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1535323-expanditem?language=objc +func (o_ OutlineView) ExpandItem(item objc.IObject) { + objc.Call[objc.Void](o_, objc.Sel("expandItem:"), item) +} + +// Returns the indentation level for a given item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1535891-levelforitem?language=objc +func (o_ OutlineView) LevelForItem(item objc.IObject) int { + rv := objc.Call[int](o_, objc.Sel("levelForItem:"), item) return rv } +// Reloads and redisplays the data for the given item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1531263-reloaditem?language=objc +func (o_ OutlineView) ReloadItem(item objc.IObject) { + objc.Call[objc.Void](o_, objc.Sel("reloadItem:"), item) +} + // Removes items at the given indexes in the given parent with the specified optional animations. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1527168-removeitemsatindexes?language=objc @@ -132,19 +158,19 @@ func (o_ OutlineView) RemoveItemsAtIndexesInParentWithAnimation(indexes foundati objc.Call[objc.Void](o_, objc.Sel("removeItemsAtIndexes:inParent:withAnimation:"), indexes, parent, animationOptions) } -// Returns the row associated with a given item. [Full Topic] +// Returns the parent for a given item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1533885-rowforitem?language=objc -func (o_ OutlineView) RowForItem(item objc.IObject) int { - rv := objc.Call[int](o_, objc.Sel("rowForItem:"), item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1535031-parentforitem?language=objc +func (o_ OutlineView) ParentForItem(item objc.IObject) objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("parentForItem:"), item) return rv } -// Expands a specified item and, optionally, its children. [Full Topic] +// Collapses a given item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1532826-expanditem?language=objc -func (o_ OutlineView) ExpandItemExpandChildren(item objc.IObject, expandChildren bool) { - objc.Call[objc.Void](o_, objc.Sel("expandItem:expandChildren:"), item, expandChildren) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1532295-collapseitem?language=objc +func (o_ OutlineView) CollapseItem(item objc.IObject) { + objc.Call[objc.Void](o_, objc.Sel("collapseItem:"), item) } // Returns the indentation level for a given row. [Full Topic] @@ -155,29 +181,14 @@ func (o_ OutlineView) LevelForRow(row int) int { return rv } -// Returns the child index of the specified item within its parent. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1529954-childindexforitem?language=objc -func (o_ OutlineView) ChildIndexForItem(item objc.IObject) int { - rv := objc.Call[int](o_, objc.Sel("childIndexForItem:"), item) - return rv -} - -// Returns the frame of the outline cell for a given row. [Full Topic] +// Returns the number of children for the specified parent item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1532314-frameofoutlinecellatrow?language=objc -func (o_ OutlineView) FrameOfOutlineCellAtRow(row int) foundation.Rect { - rv := objc.Call[foundation.Rect](o_, objc.Sel("frameOfOutlineCellAtRow:"), row) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1534304-numberofchildrenofitem?language=objc +func (o_ OutlineView) NumberOfChildrenOfItem(item objc.IObject) int { + rv := objc.Call[int](o_, objc.Sel("numberOfChildrenOfItem:"), item) return rv } -// Reloads and redisplays the data for the given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1531263-reloaditem?language=objc -func (o_ OutlineView) ReloadItem(item objc.IObject) { - objc.Call[objc.Void](o_, objc.Sel("reloadItem:"), item) -} - // Inserts new items at the given indexes in the given parent with the specified optional animations. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1528656-insertitemsatindexes?language=objc @@ -185,37 +196,30 @@ func (o_ OutlineView) InsertItemsAtIndexesInParentWithAnimation(indexes foundati objc.Call[objc.Void](o_, objc.Sel("insertItemsAtIndexes:inParent:withAnimation:"), indexes, parent, animationOptions) } -// Returns the number of children for the specified parent item. [Full Topic] +// Returns the frame of the outline cell for a given row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1534304-numberofchildrenofitem?language=objc -func (o_ OutlineView) NumberOfChildrenOfItem(item objc.IObject) int { - rv := objc.Call[int](o_, objc.Sel("numberOfChildrenOfItem:"), item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1532314-frameofoutlinecellatrow?language=objc +func (o_ OutlineView) FrameOfOutlineCellAtRow(row int) foundation.Rect { + rv := objc.Call[foundation.Rect](o_, objc.Sel("frameOfOutlineCellAtRow:"), row) return rv } -// Returns the parent for a given item. [Full Topic] +// Returns a Boolean value that indicates whether a given item is expandable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1535031-parentforitem?language=objc -func (o_ OutlineView) ParentForItem(item objc.IObject) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("parentForItem:"), item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1533676-isexpandable?language=objc +func (o_ OutlineView) IsExpandable(item objc.IObject) bool { + rv := objc.Call[bool](o_, objc.Sel("isExpandable:"), item) return rv } -// Returns the indentation level for a given item. [Full Topic] +// Returns the item associated with a given row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1535891-levelforitem?language=objc -func (o_ OutlineView) LevelForItem(item objc.IObject) int { - rv := objc.Call[int](o_, objc.Sel("levelForItem:"), item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1534846-itematrow?language=objc +func (o_ OutlineView) ItemAtRow(row int) objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("itemAtRow:"), row) return rv } -// Collapses a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1532295-collapseitem?language=objc -func (o_ OutlineView) CollapseItem(item objc.IObject) { - objc.Call[objc.Void](o_, objc.Sel("collapseItem:"), item) -} - // Returns the specified child of an item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1527501-child?language=objc @@ -224,25 +228,12 @@ func (o_ OutlineView) ChildOfItem(index int, item objc.IObject) objc.Object { return rv } -// Collapses a given item and, optionally, its children. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1531436-collapseitem?language=objc -func (o_ OutlineView) CollapseItemCollapseChildren(item objc.IObject, collapseChildren bool) { - objc.Call[objc.Void](o_, objc.Sel("collapseItem:collapseChildren:"), item, collapseChildren) -} - -// Used to “retarget” a proposed drop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1525351-setdropitem?language=objc -func (o_ OutlineView) SetDropItemDropChildIndex(item objc.IObject, index int) { - objc.Call[objc.Void](o_, objc.Sel("setDropItem:dropChildIndex:"), item, index) -} - -// Reloads a given item and, optionally, its children. [Full Topic] +// Returns the child index of the specified item within its parent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1531176-reloaditem?language=objc -func (o_ OutlineView) ReloadItemReloadChildren(item objc.IObject, reloadChildren bool) { - objc.Call[objc.Void](o_, objc.Sel("reloadItem:reloadChildren:"), item, reloadChildren) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1529954-childindexforitem?language=objc +func (o_ OutlineView) ChildIndexForItem(item objc.IObject) int { + rv := objc.Call[int](o_, objc.Sel("childIndexForItem:"), item) + return rv } // Returns a Boolean value that indicates whether auto-expanded items should return to their original collapsed state. [Full Topic] @@ -253,34 +244,34 @@ func (o_ OutlineView) ShouldCollapseAutoExpandedItemsForDeposited(deposited bool return rv } -// Returns a Boolean value that indicates whether a given item is expandable. [Full Topic] +// A Boolean value indicating whether the expanded items are automatically saved across launches of the app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1533676-isexpandable?language=objc -func (o_ OutlineView) IsExpandable(item objc.IObject) bool { - rv := objc.Call[bool](o_, objc.Sel("isExpandable:"), item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1530638-autosaveexpandeditems?language=objc +func (o_ OutlineView) AutosaveExpandedItems() bool { + rv := objc.Call[bool](o_, objc.Sel("autosaveExpandedItems")) return rv } -// Expands a given item. [Full Topic] +// A Boolean value indicating whether the expanded items are automatically saved across launches of the app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1535323-expanditem?language=objc -func (o_ OutlineView) ExpandItem(item objc.IObject) { - objc.Call[objc.Void](o_, objc.Sel("expandItem:"), item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1530638-autosaveexpandeditems?language=objc +func (o_ OutlineView) SetAutosaveExpandedItems(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setAutosaveExpandedItems:"), value) } -// A Boolean value indicating whether the indentation marker symbol displayed in the outline column should be indented along with the cell contents. [Full Topic] +// A Boolean value that indicates whether the outline view resizes its outline column when the user expands or collapses items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1531707-indentationmarkerfollowscell?language=objc -func (o_ OutlineView) IndentationMarkerFollowsCell() bool { - rv := objc.Call[bool](o_, objc.Sel("indentationMarkerFollowsCell")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1532304-autoresizesoutlinecolumn?language=objc +func (o_ OutlineView) AutoresizesOutlineColumn() bool { + rv := objc.Call[bool](o_, objc.Sel("autoresizesOutlineColumn")) return rv } -// A Boolean value indicating whether the indentation marker symbol displayed in the outline column should be indented along with the cell contents. [Full Topic] +// A Boolean value that indicates whether the outline view resizes its outline column when the user expands or collapses items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1531707-indentationmarkerfollowscell?language=objc -func (o_ OutlineView) SetIndentationMarkerFollowsCell(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setIndentationMarkerFollowsCell:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1532304-autoresizesoutlinecolumn?language=objc +func (o_ OutlineView) SetAutoresizesOutlineColumn(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setAutoresizesOutlineColumn:"), value) } // A Boolean value that indicates whether the outline view retains and releases the objects returned from its data source. [Full Topic] @@ -298,19 +289,19 @@ func (o_ OutlineView) SetStronglyReferencesItems(value bool) { objc.Call[objc.Void](o_, objc.Sel("setStronglyReferencesItems:"), value) } -// A Boolean value indicating whether the expanded items are automatically saved across launches of the app. [Full Topic] +// A Boolean value indicating whether the indentation marker symbol displayed in the outline column should be indented along with the cell contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1530638-autosaveexpandeditems?language=objc -func (o_ OutlineView) AutosaveExpandedItems() bool { - rv := objc.Call[bool](o_, objc.Sel("autosaveExpandedItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1531707-indentationmarkerfollowscell?language=objc +func (o_ OutlineView) IndentationMarkerFollowsCell() bool { + rv := objc.Call[bool](o_, objc.Sel("indentationMarkerFollowsCell")) return rv } -// A Boolean value indicating whether the expanded items are automatically saved across launches of the app. [Full Topic] +// A Boolean value indicating whether the indentation marker symbol displayed in the outline column should be indented along with the cell contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1530638-autosaveexpandeditems?language=objc -func (o_ OutlineView) SetAutosaveExpandedItems(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setAutosaveExpandedItems:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1531707-indentationmarkerfollowscell?language=objc +func (o_ OutlineView) SetIndentationMarkerFollowsCell(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setIndentationMarkerFollowsCell:"), value) } // The table column in which hierarchical data is displayed. [Full Topic] @@ -328,21 +319,6 @@ func (o_ OutlineView) SetOutlineTableColumn(value ITableColumn) { objc.Call[objc.Void](o_, objc.Sel("setOutlineTableColumn:"), value) } -// A Boolean value that indicates whether the outline view resizes its outline column when the user expands or collapses items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1532304-autoresizesoutlinecolumn?language=objc -func (o_ OutlineView) AutoresizesOutlineColumn() bool { - rv := objc.Call[bool](o_, objc.Sel("autoresizesOutlineColumn")) - return rv -} - -// A Boolean value that indicates whether the outline view resizes its outline column when the user expands or collapses items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1532304-autoresizesoutlinecolumn?language=objc -func (o_ OutlineView) SetAutoresizesOutlineColumn(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setAutoresizesOutlineColumn:"), value) -} - // The per-level indentation, measured in points. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineview/1535181-indentationperlevel?language=objc diff --git a/macos/appkit/outline_view_data_source_protocol.gen.go b/macos/appkit/outline_view_data_source_protocol.gen.go index 636c5366..62567d09 100644 --- a/macos/appkit/outline_view_data_source_protocol.gen.go +++ b/macos/appkit/outline_view_data_source_protocol.gen.go @@ -14,58 +14,6 @@ type POutlineViewDataSource interface { // optional OutlineViewSortDescriptorsDidChange(outlineView OutlineView, oldDescriptors []foundation.SortDescriptor) HasOutlineViewSortDescriptorsDidChange() bool - - // optional - OutlineViewChildOfItem(outlineView OutlineView, index int, item objc.Object) objc.Object - HasOutlineViewChildOfItem() bool - - // optional - OutlineViewPersistentObjectForItem(outlineView OutlineView, item objc.Object) objc.Object - HasOutlineViewPersistentObjectForItem() bool - - // optional - OutlineViewValidateDropProposedItemProposedChildIndex(outlineView OutlineView, info DraggingInfoObject, item objc.Object, index int) DragOperation - HasOutlineViewValidateDropProposedItemProposedChildIndex() bool - - // optional - OutlineViewDraggingSessionWillBeginAtPointForItems(outlineView OutlineView, session DraggingSession, screenPoint foundation.Point, draggedItems []objc.Object) - HasOutlineViewDraggingSessionWillBeginAtPointForItems() bool - - // optional - OutlineViewAcceptDropItemChildIndex(outlineView OutlineView, info DraggingInfoObject, item objc.Object, index int) bool - HasOutlineViewAcceptDropItemChildIndex() bool - - // optional - OutlineViewDraggingSessionEndedAtPointOperation(outlineView OutlineView, session DraggingSession, screenPoint foundation.Point, operation DragOperation) - HasOutlineViewDraggingSessionEndedAtPointOperation() bool - - // optional - OutlineViewSetObjectValueForTableColumnByItem(outlineView OutlineView, object objc.Object, tableColumn TableColumn, item objc.Object) - HasOutlineViewSetObjectValueForTableColumnByItem() bool - - // optional - OutlineViewPasteboardWriterForItem(outlineView OutlineView, item objc.Object) PasteboardWritingObject - HasOutlineViewPasteboardWriterForItem() bool - - // optional - OutlineViewNumberOfChildrenOfItem(outlineView OutlineView, item objc.Object) int - HasOutlineViewNumberOfChildrenOfItem() bool - - // optional - OutlineViewObjectValueForTableColumnByItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) objc.Object - HasOutlineViewObjectValueForTableColumnByItem() bool - - // optional - OutlineViewUpdateDraggingItemsForDrag(outlineView OutlineView, draggingInfo DraggingInfoObject) - HasOutlineViewUpdateDraggingItemsForDrag() bool - - // optional - OutlineViewItemForPersistentObject(outlineView OutlineView, object objc.Object) objc.Object - HasOutlineViewItemForPersistentObject() bool - - // optional - OutlineViewIsItemExpandable(outlineView OutlineView, item objc.Object) bool - HasOutlineViewIsItemExpandable() bool } // ensure impl type implements protocol interface @@ -86,158 +34,3 @@ func (o_ OutlineViewDataSourceObject) HasOutlineViewSortDescriptorsDidChange() b func (o_ OutlineViewDataSourceObject) OutlineViewSortDescriptorsDidChange(outlineView OutlineView, oldDescriptors []foundation.SortDescriptor) { objc.Call[objc.Void](o_, objc.Sel("outlineView:sortDescriptorsDidChange:"), outlineView, oldDescriptors) } - -func (o_ OutlineViewDataSourceObject) HasOutlineViewChildOfItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:child:ofItem:")) -} - -// Returns the child item at the specified index of a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1528977-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewChildOfItem(outlineView OutlineView, index int, item objc.Object) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("outlineView:child:ofItem:"), outlineView, index, item) - return rv -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewPersistentObjectForItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:persistentObjectForItem:")) -} - -// Invoked by outlineView to return an archived object for item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1532545-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewPersistentObjectForItem(outlineView OutlineView, item objc.Object) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("outlineView:persistentObjectForItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewValidateDropProposedItemProposedChildIndex() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:validateDrop:proposedItem:proposedChildIndex:")) -} - -// Used by an outline view to determine a valid drop target. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1533597-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewValidateDropProposedItemProposedChildIndex(outlineView OutlineView, info DraggingInfoObject, item objc.Object, index int) DragOperation { - po1 := objc.WrapAsProtocol("NSDraggingInfo", info) - rv := objc.Call[DragOperation](o_, objc.Sel("outlineView:validateDrop:proposedItem:proposedChildIndex:"), outlineView, po1, item, index) - return rv -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewDraggingSessionWillBeginAtPointForItems() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:draggingSession:willBeginAtPoint:forItems:")) -} - -// Implement this method know when the given dragging session is about to begin and potentially modify the dragging session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1535142-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewDraggingSessionWillBeginAtPointForItems(outlineView OutlineView, session DraggingSession, screenPoint foundation.Point, draggedItems []objc.Object) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:draggingSession:willBeginAtPoint:forItems:"), outlineView, session, screenPoint, draggedItems) -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewAcceptDropItemChildIndex() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:acceptDrop:item:childIndex:")) -} - -// Returns a Boolean value that indicates whether a drop operation was successful. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1529572-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewAcceptDropItemChildIndex(outlineView OutlineView, info DraggingInfoObject, item objc.Object, index int) bool { - po1 := objc.WrapAsProtocol("NSDraggingInfo", info) - rv := objc.Call[bool](o_, objc.Sel("outlineView:acceptDrop:item:childIndex:"), outlineView, po1, item, index) - return rv -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewDraggingSessionEndedAtPointOperation() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:draggingSession:endedAtPoint:operation:")) -} - -// Implement this method to know when the given dragging session has ended. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1532073-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewDraggingSessionEndedAtPointOperation(outlineView OutlineView, session DraggingSession, screenPoint foundation.Point, operation DragOperation) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:draggingSession:endedAtPoint:operation:"), outlineView, session, screenPoint, operation) -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewSetObjectValueForTableColumnByItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:setObjectValue:forTableColumn:byItem:")) -} - -// Set the data object for a given item in a given column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1534817-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewSetObjectValueForTableColumnByItem(outlineView OutlineView, object objc.Object, tableColumn TableColumn, item objc.Object) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:setObjectValue:forTableColumn:byItem:"), outlineView, object, tableColumn, item) -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewPasteboardWriterForItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:pasteboardWriterForItem:")) -} - -// Implement this method to enable the table to be an NSDraggingSource that supports dragging multiple items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1525837-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewPasteboardWriterForItem(outlineView OutlineView, item objc.Object) PasteboardWritingObject { - rv := objc.Call[PasteboardWritingObject](o_, objc.Sel("outlineView:pasteboardWriterForItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewNumberOfChildrenOfItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:numberOfChildrenOfItem:")) -} - -// Returns the number of child items encompassed by a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1535549-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewNumberOfChildrenOfItem(outlineView OutlineView, item objc.Object) int { - rv := objc.Call[int](o_, objc.Sel("outlineView:numberOfChildrenOfItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewObjectValueForTableColumnByItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:objectValueForTableColumn:byItem:")) -} - -// Invoked by outlineView to return the data object associated with the specified item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1531606-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewObjectValueForTableColumnByItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("outlineView:objectValueForTableColumn:byItem:"), outlineView, tableColumn, item) - return rv -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewUpdateDraggingItemsForDrag() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:updateDraggingItemsForDrag:")) -} - -// Implement this method to enable the table to update dragging items as they are dragged over the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1534424-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewUpdateDraggingItemsForDrag(outlineView OutlineView, draggingInfo DraggingInfoObject) { - po1 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - objc.Call[objc.Void](o_, objc.Sel("outlineView:updateDraggingItemsForDrag:"), outlineView, po1) -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewItemForPersistentObject() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:itemForPersistentObject:")) -} - -// Invoked by outlineView to return the item for the archived object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1533602-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewItemForPersistentObject(outlineView OutlineView, object objc.Object) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("outlineView:itemForPersistentObject:"), outlineView, object) - return rv -} - -func (o_ OutlineViewDataSourceObject) HasOutlineViewIsItemExpandable() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:isItemExpandable:")) -} - -// Returns a Boolean value that indicates whether the a given item is expandable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1535198-outlineview?language=objc -func (o_ OutlineViewDataSourceObject) OutlineViewIsItemExpandable(outlineView OutlineView, item objc.Object) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:isItemExpandable:"), outlineView, item) - return rv -} diff --git a/macos/appkit/outline_view_delegate.gen.go b/macos/appkit/outline_view_delegate.gen.go index 3b5666e4..be68a5d6 100644 --- a/macos/appkit/outline_view_delegate.gen.go +++ b/macos/appkit/outline_view_delegate.gen.go @@ -12,230 +12,78 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate?language=objc type POutlineViewDelegate interface { PControlTextEditingDelegate - // optional - SelectionShouldChangeInOutlineView(outlineView OutlineView) bool - HasSelectionShouldChangeInOutlineView() bool - - // optional - OutlineViewSelectionIndexesForProposedSelection(outlineView OutlineView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet - HasOutlineViewSelectionIndexesForProposedSelection() bool - - // optional - OutlineViewItemWillExpand(notification foundation.Notification) - HasOutlineViewItemWillExpand() bool - - // optional - OutlineViewHeightOfRowByItem(outlineView OutlineView, item objc.Object) float64 - HasOutlineViewHeightOfRowByItem() bool - - // optional - OutlineViewDidClickTableColumn(outlineView OutlineView, tableColumn TableColumn) - HasOutlineViewDidClickTableColumn() bool - - // optional - OutlineViewItemDidExpand(notification foundation.Notification) - HasOutlineViewItemDidExpand() bool - - // optional - OutlineViewShouldSelectTableColumn(outlineView OutlineView, tableColumn TableColumn) bool - HasOutlineViewShouldSelectTableColumn() bool - - // optional - OutlineViewNextTypeSelectMatchFromItemToItemForString(outlineView OutlineView, startItem objc.Object, endItem objc.Object, searchString string) objc.Object - HasOutlineViewNextTypeSelectMatchFromItemToItemForString() bool - - // optional - OutlineViewShouldSelectItem(outlineView OutlineView, item objc.Object) bool - HasOutlineViewShouldSelectItem() bool - - // optional - OutlineViewColumnDidResize(notification foundation.Notification) - HasOutlineViewColumnDidResize() bool - // optional OutlineViewItemDidCollapse(notification foundation.Notification) HasOutlineViewItemDidCollapse() bool // optional - OutlineViewMouseDownInHeaderOfTableColumn(outlineView OutlineView, tableColumn TableColumn) - HasOutlineViewMouseDownInHeaderOfTableColumn() bool - - // optional - OutlineViewTintConfigurationForItem(outlineView OutlineView, item objc.Object) TintConfiguration - HasOutlineViewTintConfigurationForItem() bool + OutlineViewItemWillExpand(notification foundation.Notification) + HasOutlineViewItemWillExpand() bool // optional OutlineViewColumnDidMove(notification foundation.Notification) HasOutlineViewColumnDidMove() bool - // optional - OutlineViewDidAddRowViewForRow(outlineView OutlineView, rowView TableRowView, row int) - HasOutlineViewDidAddRowViewForRow() bool - - // optional - OutlineViewSelectionIsChanging(notification foundation.Notification) - HasOutlineViewSelectionIsChanging() bool - - // optional - OutlineViewShouldTrackCellForTableColumnItem(outlineView OutlineView, cell Cell, tableColumn TableColumn, item objc.Object) bool - HasOutlineViewShouldTrackCellForTableColumnItem() bool - - // optional - OutlineViewShouldCollapseItem(outlineView OutlineView, item objc.Object) bool - HasOutlineViewShouldCollapseItem() bool - - // optional - OutlineViewSizeToFitWidthOfColumn(outlineView OutlineView, column int) float64 - HasOutlineViewSizeToFitWidthOfColumn() bool - - // optional - OutlineViewShouldShowOutlineCellForItem(outlineView OutlineView, item objc.Object) bool - HasOutlineViewShouldShowOutlineCellForItem() bool - - // optional - OutlineViewToolTipForCellRectTableColumnItemMouseLocation(outlineView OutlineView, cell Cell, rect foundation.RectPointer, tableColumn TableColumn, item objc.Object, mouseLocation foundation.Point) string - HasOutlineViewToolTipForCellRectTableColumnItemMouseLocation() bool - - // optional - OutlineViewShouldEditTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) bool - HasOutlineViewShouldEditTableColumnItem() bool - // optional OutlineViewItemWillCollapse(notification foundation.Notification) HasOutlineViewItemWillCollapse() bool // optional - OutlineViewShouldExpandItem(outlineView OutlineView, item objc.Object) bool - HasOutlineViewShouldExpandItem() bool - - // optional - OutlineViewWillDisplayCellForTableColumnItem(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object) - HasOutlineViewWillDisplayCellForTableColumnItem() bool + OutlineViewColumnDidResize(notification foundation.Notification) + HasOutlineViewColumnDidResize() bool // optional - OutlineViewDataCellForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) Cell - HasOutlineViewDataCellForTableColumnItem() bool + OutlineViewDidClickTableColumn(outlineView OutlineView, tableColumn TableColumn) + HasOutlineViewDidClickTableColumn() bool // optional OutlineViewSelectionDidChange(notification foundation.Notification) HasOutlineViewSelectionDidChange() bool // optional - OutlineViewWillDisplayOutlineCellForTableColumnItem(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object) - HasOutlineViewWillDisplayOutlineCellForTableColumnItem() bool - - // optional - OutlineViewViewForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) View - HasOutlineViewViewForTableColumnItem() bool - - // optional - OutlineViewDidRemoveRowViewForRow(outlineView OutlineView, rowView TableRowView, row int) - HasOutlineViewDidRemoveRowViewForRow() bool - - // optional - OutlineViewShouldTypeSelectForEventWithCurrentSearchString(outlineView OutlineView, event Event, searchString string) bool - HasOutlineViewShouldTypeSelectForEventWithCurrentSearchString() bool - - // optional - OutlineViewRowViewForItem(outlineView OutlineView, item objc.Object) TableRowView - HasOutlineViewRowViewForItem() bool - - // optional - OutlineViewIsGroupItem(outlineView OutlineView, item objc.Object) bool - HasOutlineViewIsGroupItem() bool - - // optional - OutlineViewShouldShowCellExpansionForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) bool - HasOutlineViewShouldShowCellExpansionForTableColumnItem() bool - - // optional - OutlineViewDidDragTableColumn(outlineView OutlineView, tableColumn TableColumn) - HasOutlineViewDidDragTableColumn() bool + OutlineViewItemDidExpand(notification foundation.Notification) + HasOutlineViewItemDidExpand() bool // optional - OutlineViewShouldReorderColumnToColumn(outlineView OutlineView, columnIndex int, newColumnIndex int) bool - HasOutlineViewShouldReorderColumnToColumn() bool + OutlineViewSelectionIsChanging(notification foundation.Notification) + HasOutlineViewSelectionIsChanging() bool // optional - OutlineViewTypeSelectStringForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) string - HasOutlineViewTypeSelectStringForTableColumnItem() bool + SelectionShouldChangeInOutlineView(outlineView OutlineView) bool + HasSelectionShouldChangeInOutlineView() bool } // A delegate implementation builder for the [POutlineViewDelegate] protocol. type OutlineViewDelegate struct { ControlTextEditingDelegate - _SelectionShouldChangeInOutlineView func(outlineView OutlineView) bool - _OutlineViewSelectionIndexesForProposedSelection func(outlineView OutlineView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet - _OutlineViewItemWillExpand func(notification foundation.Notification) - _OutlineViewHeightOfRowByItem func(outlineView OutlineView, item objc.Object) float64 - _OutlineViewDidClickTableColumn func(outlineView OutlineView, tableColumn TableColumn) - _OutlineViewItemDidExpand func(notification foundation.Notification) - _OutlineViewShouldSelectTableColumn func(outlineView OutlineView, tableColumn TableColumn) bool - _OutlineViewNextTypeSelectMatchFromItemToItemForString func(outlineView OutlineView, startItem objc.Object, endItem objc.Object, searchString string) objc.Object - _OutlineViewShouldSelectItem func(outlineView OutlineView, item objc.Object) bool - _OutlineViewColumnDidResize func(notification foundation.Notification) - _OutlineViewItemDidCollapse func(notification foundation.Notification) - _OutlineViewMouseDownInHeaderOfTableColumn func(outlineView OutlineView, tableColumn TableColumn) - _OutlineViewTintConfigurationForItem func(outlineView OutlineView, item objc.Object) TintConfiguration - _OutlineViewColumnDidMove func(notification foundation.Notification) - _OutlineViewDidAddRowViewForRow func(outlineView OutlineView, rowView TableRowView, row int) - _OutlineViewSelectionIsChanging func(notification foundation.Notification) - _OutlineViewShouldTrackCellForTableColumnItem func(outlineView OutlineView, cell Cell, tableColumn TableColumn, item objc.Object) bool - _OutlineViewShouldCollapseItem func(outlineView OutlineView, item objc.Object) bool - _OutlineViewSizeToFitWidthOfColumn func(outlineView OutlineView, column int) float64 - _OutlineViewShouldShowOutlineCellForItem func(outlineView OutlineView, item objc.Object) bool - _OutlineViewToolTipForCellRectTableColumnItemMouseLocation func(outlineView OutlineView, cell Cell, rect foundation.RectPointer, tableColumn TableColumn, item objc.Object, mouseLocation foundation.Point) string - _OutlineViewShouldEditTableColumnItem func(outlineView OutlineView, tableColumn TableColumn, item objc.Object) bool - _OutlineViewItemWillCollapse func(notification foundation.Notification) - _OutlineViewShouldExpandItem func(outlineView OutlineView, item objc.Object) bool - _OutlineViewWillDisplayCellForTableColumnItem func(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object) - _OutlineViewDataCellForTableColumnItem func(outlineView OutlineView, tableColumn TableColumn, item objc.Object) Cell - _OutlineViewSelectionDidChange func(notification foundation.Notification) - _OutlineViewWillDisplayOutlineCellForTableColumnItem func(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object) - _OutlineViewViewForTableColumnItem func(outlineView OutlineView, tableColumn TableColumn, item objc.Object) View - _OutlineViewDidRemoveRowViewForRow func(outlineView OutlineView, rowView TableRowView, row int) - _OutlineViewShouldTypeSelectForEventWithCurrentSearchString func(outlineView OutlineView, event Event, searchString string) bool - _OutlineViewRowViewForItem func(outlineView OutlineView, item objc.Object) TableRowView - _OutlineViewIsGroupItem func(outlineView OutlineView, item objc.Object) bool - _OutlineViewShouldShowCellExpansionForTableColumnItem func(outlineView OutlineView, tableColumn TableColumn, item objc.Object) bool - _OutlineViewDidDragTableColumn func(outlineView OutlineView, tableColumn TableColumn) - _OutlineViewShouldReorderColumnToColumn func(outlineView OutlineView, columnIndex int, newColumnIndex int) bool - _OutlineViewTypeSelectStringForTableColumnItem func(outlineView OutlineView, tableColumn TableColumn, item objc.Object) string -} - -func (di *OutlineViewDelegate) HasSelectionShouldChangeInOutlineView() bool { - return di._SelectionShouldChangeInOutlineView != nil -} - -// Returns a Boolean value that indicates whether the outline view should change its selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530734-selectionshouldchangeinoutlinevi?language=objc -func (di *OutlineViewDelegate) SetSelectionShouldChangeInOutlineView(f func(outlineView OutlineView) bool) { - di._SelectionShouldChangeInOutlineView = f + _OutlineViewItemDidCollapse func(notification foundation.Notification) + _OutlineViewItemWillExpand func(notification foundation.Notification) + _OutlineViewColumnDidMove func(notification foundation.Notification) + _OutlineViewItemWillCollapse func(notification foundation.Notification) + _OutlineViewColumnDidResize func(notification foundation.Notification) + _OutlineViewDidClickTableColumn func(outlineView OutlineView, tableColumn TableColumn) + _OutlineViewSelectionDidChange func(notification foundation.Notification) + _OutlineViewItemDidExpand func(notification foundation.Notification) + _OutlineViewSelectionIsChanging func(notification foundation.Notification) + _SelectionShouldChangeInOutlineView func(outlineView OutlineView) bool } -// Returns a Boolean value that indicates whether the outline view should change its selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530734-selectionshouldchangeinoutlinevi?language=objc -func (di *OutlineViewDelegate) SelectionShouldChangeInOutlineView(outlineView OutlineView) bool { - return di._SelectionShouldChangeInOutlineView(outlineView) -} -func (di *OutlineViewDelegate) HasOutlineViewSelectionIndexesForProposedSelection() bool { - return di._OutlineViewSelectionIndexesForProposedSelection != nil +func (di *OutlineViewDelegate) HasOutlineViewItemDidCollapse() bool { + return di._OutlineViewItemDidCollapse != nil } -// Invoked to allow the delegate to modify the proposed selection. [Full Topic] +// Invoked when the did collapse notification is posted—that is, whenever the user collapses an item in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1527575-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewSelectionIndexesForProposedSelection(f func(outlineView OutlineView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet) { - di._OutlineViewSelectionIndexesForProposedSelection = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535557-outlineviewitemdidcollapse?language=objc +func (di *OutlineViewDelegate) SetOutlineViewItemDidCollapse(f func(notification foundation.Notification)) { + di._OutlineViewItemDidCollapse = f } -// Invoked to allow the delegate to modify the proposed selection. [Full Topic] +// Invoked when the did collapse notification is posted—that is, whenever the user collapses an item in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1527575-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewSelectionIndexesForProposedSelection(outlineView OutlineView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet { - return di._OutlineViewSelectionIndexesForProposedSelection(outlineView, proposedSelectionIndexes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535557-outlineviewitemdidcollapse?language=objc +func (di *OutlineViewDelegate) OutlineViewItemDidCollapse(notification foundation.Notification) { + di._OutlineViewItemDidCollapse(notification) } func (di *OutlineViewDelegate) HasOutlineViewItemWillExpand() bool { return di._OutlineViewItemWillExpand != nil @@ -254,22 +102,56 @@ func (di *OutlineViewDelegate) SetOutlineViewItemWillExpand(f func(notification func (di *OutlineViewDelegate) OutlineViewItemWillExpand(notification foundation.Notification) { di._OutlineViewItemWillExpand(notification) } -func (di *OutlineViewDelegate) HasOutlineViewHeightOfRowByItem() bool { - return di._OutlineViewHeightOfRowByItem != nil +func (di *OutlineViewDelegate) HasOutlineViewColumnDidMove() bool { + return di._OutlineViewColumnDidMove != nil +} + +// Invoked whenever the user moves a column in the outline view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1525297-outlineviewcolumndidmove?language=objc +func (di *OutlineViewDelegate) SetOutlineViewColumnDidMove(f func(notification foundation.Notification)) { + di._OutlineViewColumnDidMove = f +} + +// Invoked whenever the user moves a column in the outline view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1525297-outlineviewcolumndidmove?language=objc +func (di *OutlineViewDelegate) OutlineViewColumnDidMove(notification foundation.Notification) { + di._OutlineViewColumnDidMove(notification) +} +func (di *OutlineViewDelegate) HasOutlineViewItemWillCollapse() bool { + return di._OutlineViewItemWillCollapse != nil +} + +// Invoked when notification is posted—that is, whenever the user is about to collapse an item in the outline view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526896-outlineviewitemwillcollapse?language=objc +func (di *OutlineViewDelegate) SetOutlineViewItemWillCollapse(f func(notification foundation.Notification)) { + di._OutlineViewItemWillCollapse = f +} + +// Invoked when notification is posted—that is, whenever the user is about to collapse an item in the outline view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526896-outlineviewitemwillcollapse?language=objc +func (di *OutlineViewDelegate) OutlineViewItemWillCollapse(notification foundation.Notification) { + di._OutlineViewItemWillCollapse(notification) +} +func (di *OutlineViewDelegate) HasOutlineViewColumnDidResize() bool { + return di._OutlineViewColumnDidResize != nil } -// Returns the height in points of the row containing item. [Full Topic] +// Invoked whenever the user resizes a column in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531870-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewHeightOfRowByItem(f func(outlineView OutlineView, item objc.Object) float64) { - di._OutlineViewHeightOfRowByItem = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1533372-outlineviewcolumndidresize?language=objc +func (di *OutlineViewDelegate) SetOutlineViewColumnDidResize(f func(notification foundation.Notification)) { + di._OutlineViewColumnDidResize = f } -// Returns the height in points of the row containing item. [Full Topic] +// Invoked whenever the user resizes a column in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531870-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewHeightOfRowByItem(outlineView OutlineView, item objc.Object) float64 { - return di._OutlineViewHeightOfRowByItem(outlineView, item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1533372-outlineviewcolumndidresize?language=objc +func (di *OutlineViewDelegate) OutlineViewColumnDidResize(notification foundation.Notification) { + di._OutlineViewColumnDidResize(notification) } func (di *OutlineViewDelegate) HasOutlineViewDidClickTableColumn() bool { return di._OutlineViewDidClickTableColumn != nil @@ -288,6 +170,23 @@ func (di *OutlineViewDelegate) SetOutlineViewDidClickTableColumn(f func(outlineV func (di *OutlineViewDelegate) OutlineViewDidClickTableColumn(outlineView OutlineView, tableColumn TableColumn) { di._OutlineViewDidClickTableColumn(outlineView, tableColumn) } +func (di *OutlineViewDelegate) HasOutlineViewSelectionDidChange() bool { + return di._OutlineViewSelectionDidChange != nil +} + +// Invoked when the selection did change notification is posted—that is, immediately after the outline view’s selection has changed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526913-outlineviewselectiondidchange?language=objc +func (di *OutlineViewDelegate) SetOutlineViewSelectionDidChange(f func(notification foundation.Notification)) { + di._OutlineViewSelectionDidChange = f +} + +// Invoked when the selection did change notification is posted—that is, immediately after the outline view’s selection has changed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526913-outlineviewselectiondidchange?language=objc +func (di *OutlineViewDelegate) OutlineViewSelectionDidChange(notification foundation.Notification) { + di._OutlineViewSelectionDidChange(notification) +} func (di *OutlineViewDelegate) HasOutlineViewItemDidExpand() bool { return di._OutlineViewItemDidExpand != nil } @@ -305,598 +204,124 @@ func (di *OutlineViewDelegate) SetOutlineViewItemDidExpand(f func(notification f func (di *OutlineViewDelegate) OutlineViewItemDidExpand(notification foundation.Notification) { di._OutlineViewItemDidExpand(notification) } -func (di *OutlineViewDelegate) HasOutlineViewShouldSelectTableColumn() bool { - return di._OutlineViewShouldSelectTableColumn != nil +func (di *OutlineViewDelegate) HasOutlineViewSelectionIsChanging() bool { + return di._OutlineViewSelectionIsChanging != nil } -// Returns a Boolean value that indicates whether the outline view should select a given table column. [Full Topic] +// Invoked when notification is posted—that is, whenever the outline view’s selection changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535118-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewShouldSelectTableColumn(f func(outlineView OutlineView, tableColumn TableColumn) bool) { - di._OutlineViewShouldSelectTableColumn = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1532481-outlineviewselectionischanging?language=objc +func (di *OutlineViewDelegate) SetOutlineViewSelectionIsChanging(f func(notification foundation.Notification)) { + di._OutlineViewSelectionIsChanging = f } -// Returns a Boolean value that indicates whether the outline view should select a given table column. [Full Topic] +// Invoked when notification is posted—that is, whenever the outline view’s selection changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535118-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewShouldSelectTableColumn(outlineView OutlineView, tableColumn TableColumn) bool { - return di._OutlineViewShouldSelectTableColumn(outlineView, tableColumn) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1532481-outlineviewselectionischanging?language=objc +func (di *OutlineViewDelegate) OutlineViewSelectionIsChanging(notification foundation.Notification) { + di._OutlineViewSelectionIsChanging(notification) } -func (di *OutlineViewDelegate) HasOutlineViewNextTypeSelectMatchFromItemToItemForString() bool { - return di._OutlineViewNextTypeSelectMatchFromItemToItemForString != nil +func (di *OutlineViewDelegate) HasSelectionShouldChangeInOutlineView() bool { + return di._SelectionShouldChangeInOutlineView != nil } -// Returns the first item that matches the searchString from within the range of startItem to endItem [Full Topic] +// Returns a Boolean value that indicates whether the outline view should change its selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1533321-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewNextTypeSelectMatchFromItemToItemForString(f func(outlineView OutlineView, startItem objc.Object, endItem objc.Object, searchString string) objc.Object) { - di._OutlineViewNextTypeSelectMatchFromItemToItemForString = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530734-selectionshouldchangeinoutlinevi?language=objc +func (di *OutlineViewDelegate) SetSelectionShouldChangeInOutlineView(f func(outlineView OutlineView) bool) { + di._SelectionShouldChangeInOutlineView = f } -// Returns the first item that matches the searchString from within the range of startItem to endItem [Full Topic] +// Returns a Boolean value that indicates whether the outline view should change its selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1533321-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewNextTypeSelectMatchFromItemToItemForString(outlineView OutlineView, startItem objc.Object, endItem objc.Object, searchString string) objc.Object { - return di._OutlineViewNextTypeSelectMatchFromItemToItemForString(outlineView, startItem, endItem, searchString) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530734-selectionshouldchangeinoutlinevi?language=objc +func (di *OutlineViewDelegate) SelectionShouldChangeInOutlineView(outlineView OutlineView) bool { + return di._SelectionShouldChangeInOutlineView(outlineView) } -func (di *OutlineViewDelegate) HasOutlineViewShouldSelectItem() bool { - return di._OutlineViewShouldSelectItem != nil + +// ensure impl type implements protocol interface +var _ POutlineViewDelegate = (*OutlineViewDelegateObject)(nil) + +// A concrete type for the [POutlineViewDelegate] protocol. +type OutlineViewDelegateObject struct { + ControlTextEditingDelegateObject } -// Returns a Boolean value that indicates whether the outline view should select a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531075-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewShouldSelectItem(f func(outlineView OutlineView, item objc.Object) bool) { - di._OutlineViewShouldSelectItem = f +func (o_ OutlineViewDelegateObject) HasOutlineViewItemDidCollapse() bool { + return o_.RespondsToSelector(objc.Sel("outlineViewItemDidCollapse:")) } -// Returns a Boolean value that indicates whether the outline view should select a given item. [Full Topic] +// Invoked when the did collapse notification is posted—that is, whenever the user collapses an item in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531075-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewShouldSelectItem(outlineView OutlineView, item objc.Object) bool { - return di._OutlineViewShouldSelectItem(outlineView, item) -} -func (di *OutlineViewDelegate) HasOutlineViewColumnDidResize() bool { - return di._OutlineViewColumnDidResize != nil +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535557-outlineviewitemdidcollapse?language=objc +func (o_ OutlineViewDelegateObject) OutlineViewItemDidCollapse(notification foundation.Notification) { + objc.Call[objc.Void](o_, objc.Sel("outlineViewItemDidCollapse:"), notification) } -// Invoked whenever the user resizes a column in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1533372-outlineviewcolumndidresize?language=objc -func (di *OutlineViewDelegate) SetOutlineViewColumnDidResize(f func(notification foundation.Notification)) { - di._OutlineViewColumnDidResize = f +func (o_ OutlineViewDelegateObject) HasOutlineViewItemWillExpand() bool { + return o_.RespondsToSelector(objc.Sel("outlineViewItemWillExpand:")) } -// Invoked whenever the user resizes a column in the outline view. [Full Topic] +// Invoked when notification is posted—that is, whenever the user is about to expand an item in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1533372-outlineviewcolumndidresize?language=objc -func (di *OutlineViewDelegate) OutlineViewColumnDidResize(notification foundation.Notification) { - di._OutlineViewColumnDidResize(notification) -} -func (di *OutlineViewDelegate) HasOutlineViewItemDidCollapse() bool { - return di._OutlineViewItemDidCollapse != nil +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535847-outlineviewitemwillexpand?language=objc +func (o_ OutlineViewDelegateObject) OutlineViewItemWillExpand(notification foundation.Notification) { + objc.Call[objc.Void](o_, objc.Sel("outlineViewItemWillExpand:"), notification) } -// Invoked when the did collapse notification is posted—that is, whenever the user collapses an item in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535557-outlineviewitemdidcollapse?language=objc -func (di *OutlineViewDelegate) SetOutlineViewItemDidCollapse(f func(notification foundation.Notification)) { - di._OutlineViewItemDidCollapse = f +func (o_ OutlineViewDelegateObject) HasOutlineViewColumnDidMove() bool { + return o_.RespondsToSelector(objc.Sel("outlineViewColumnDidMove:")) } -// Invoked when the did collapse notification is posted—that is, whenever the user collapses an item in the outline view. [Full Topic] +// Invoked whenever the user moves a column in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535557-outlineviewitemdidcollapse?language=objc -func (di *OutlineViewDelegate) OutlineViewItemDidCollapse(notification foundation.Notification) { - di._OutlineViewItemDidCollapse(notification) -} -func (di *OutlineViewDelegate) HasOutlineViewMouseDownInHeaderOfTableColumn() bool { - return di._OutlineViewMouseDownInHeaderOfTableColumn != nil +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1525297-outlineviewcolumndidmove?language=objc +func (o_ OutlineViewDelegateObject) OutlineViewColumnDidMove(notification foundation.Notification) { + objc.Call[objc.Void](o_, objc.Sel("outlineViewColumnDidMove:"), notification) } -// Sent to the delegate whenever the mouse button is clicked in outlineView while the cursor is in a column header tableColumn. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531835-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewMouseDownInHeaderOfTableColumn(f func(outlineView OutlineView, tableColumn TableColumn)) { - di._OutlineViewMouseDownInHeaderOfTableColumn = f +func (o_ OutlineViewDelegateObject) HasOutlineViewItemWillCollapse() bool { + return o_.RespondsToSelector(objc.Sel("outlineViewItemWillCollapse:")) } -// Sent to the delegate whenever the mouse button is clicked in outlineView while the cursor is in a column header tableColumn. [Full Topic] +// Invoked when notification is posted—that is, whenever the user is about to collapse an item in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531835-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewMouseDownInHeaderOfTableColumn(outlineView OutlineView, tableColumn TableColumn) { - di._OutlineViewMouseDownInHeaderOfTableColumn(outlineView, tableColumn) -} -func (di *OutlineViewDelegate) HasOutlineViewTintConfigurationForItem() bool { - return di._OutlineViewTintConfigurationForItem != nil +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526896-outlineviewitemwillcollapse?language=objc +func (o_ OutlineViewDelegateObject) OutlineViewItemWillCollapse(notification foundation.Notification) { + objc.Call[objc.Void](o_, objc.Sel("outlineViewItemWillCollapse:"), notification) } -// Customizes an item’s tinting behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/3626816-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewTintConfigurationForItem(f func(outlineView OutlineView, item objc.Object) TintConfiguration) { - di._OutlineViewTintConfigurationForItem = f +func (o_ OutlineViewDelegateObject) HasOutlineViewColumnDidResize() bool { + return o_.RespondsToSelector(objc.Sel("outlineViewColumnDidResize:")) } -// Customizes an item’s tinting behavior. [Full Topic] +// Invoked whenever the user resizes a column in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/3626816-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewTintConfigurationForItem(outlineView OutlineView, item objc.Object) TintConfiguration { - return di._OutlineViewTintConfigurationForItem(outlineView, item) -} -func (di *OutlineViewDelegate) HasOutlineViewColumnDidMove() bool { - return di._OutlineViewColumnDidMove != nil +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1533372-outlineviewcolumndidresize?language=objc +func (o_ OutlineViewDelegateObject) OutlineViewColumnDidResize(notification foundation.Notification) { + objc.Call[objc.Void](o_, objc.Sel("outlineViewColumnDidResize:"), notification) } -// Invoked whenever the user moves a column in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1525297-outlineviewcolumndidmove?language=objc -func (di *OutlineViewDelegate) SetOutlineViewColumnDidMove(f func(notification foundation.Notification)) { - di._OutlineViewColumnDidMove = f -} - -// Invoked whenever the user moves a column in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1525297-outlineviewcolumndidmove?language=objc -func (di *OutlineViewDelegate) OutlineViewColumnDidMove(notification foundation.Notification) { - di._OutlineViewColumnDidMove(notification) -} -func (di *OutlineViewDelegate) HasOutlineViewDidAddRowViewForRow() bool { - return di._OutlineViewDidAddRowViewForRow != nil -} - -// Implemented to know when a new row view is added to the table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1528320-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewDidAddRowViewForRow(f func(outlineView OutlineView, rowView TableRowView, row int)) { - di._OutlineViewDidAddRowViewForRow = f -} - -// Implemented to know when a new row view is added to the table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1528320-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewDidAddRowViewForRow(outlineView OutlineView, rowView TableRowView, row int) { - di._OutlineViewDidAddRowViewForRow(outlineView, rowView, row) -} -func (di *OutlineViewDelegate) HasOutlineViewSelectionIsChanging() bool { - return di._OutlineViewSelectionIsChanging != nil -} - -// Invoked when notification is posted—that is, whenever the outline view’s selection changes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1532481-outlineviewselectionischanging?language=objc -func (di *OutlineViewDelegate) SetOutlineViewSelectionIsChanging(f func(notification foundation.Notification)) { - di._OutlineViewSelectionIsChanging = f -} - -// Invoked when notification is posted—that is, whenever the outline view’s selection changes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1532481-outlineviewselectionischanging?language=objc -func (di *OutlineViewDelegate) OutlineViewSelectionIsChanging(notification foundation.Notification) { - di._OutlineViewSelectionIsChanging(notification) -} -func (di *OutlineViewDelegate) HasOutlineViewShouldTrackCellForTableColumnItem() bool { - return di._OutlineViewShouldTrackCellForTableColumnItem != nil -} - -// Returns a Boolean value that indicates whether a given cell should be tracked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534295-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewShouldTrackCellForTableColumnItem(f func(outlineView OutlineView, cell Cell, tableColumn TableColumn, item objc.Object) bool) { - di._OutlineViewShouldTrackCellForTableColumnItem = f -} - -// Returns a Boolean value that indicates whether a given cell should be tracked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534295-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewShouldTrackCellForTableColumnItem(outlineView OutlineView, cell Cell, tableColumn TableColumn, item objc.Object) bool { - return di._OutlineViewShouldTrackCellForTableColumnItem(outlineView, cell, tableColumn, item) -} -func (di *OutlineViewDelegate) HasOutlineViewShouldCollapseItem() bool { - return di._OutlineViewShouldCollapseItem != nil -} - -// Returns a Boolean value that indicates whether the outline view should collapse a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1529825-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewShouldCollapseItem(f func(outlineView OutlineView, item objc.Object) bool) { - di._OutlineViewShouldCollapseItem = f -} - -// Returns a Boolean value that indicates whether the outline view should collapse a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1529825-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewShouldCollapseItem(outlineView OutlineView, item objc.Object) bool { - return di._OutlineViewShouldCollapseItem(outlineView, item) -} -func (di *OutlineViewDelegate) HasOutlineViewSizeToFitWidthOfColumn() bool { - return di._OutlineViewSizeToFitWidthOfColumn != nil -} - -// Invoked to allow the delegate to provide custom sizing behavior when a column’s resize divider is double clicked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530479-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewSizeToFitWidthOfColumn(f func(outlineView OutlineView, column int) float64) { - di._OutlineViewSizeToFitWidthOfColumn = f -} - -// Invoked to allow the delegate to provide custom sizing behavior when a column’s resize divider is double clicked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530479-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewSizeToFitWidthOfColumn(outlineView OutlineView, column int) float64 { - return di._OutlineViewSizeToFitWidthOfColumn(outlineView, column) -} -func (di *OutlineViewDelegate) HasOutlineViewShouldShowOutlineCellForItem() bool { - return di._OutlineViewShouldShowOutlineCellForItem != nil -} - -// Returns whether the specified item should display the outline cell (the disclosure triangle). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534006-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewShouldShowOutlineCellForItem(f func(outlineView OutlineView, item objc.Object) bool) { - di._OutlineViewShouldShowOutlineCellForItem = f -} - -// Returns whether the specified item should display the outline cell (the disclosure triangle). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534006-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewShouldShowOutlineCellForItem(outlineView OutlineView, item objc.Object) bool { - return di._OutlineViewShouldShowOutlineCellForItem(outlineView, item) -} -func (di *OutlineViewDelegate) HasOutlineViewToolTipForCellRectTableColumnItemMouseLocation() bool { - return di._OutlineViewToolTipForCellRectTableColumnItemMouseLocation != nil -} - -// When the cursor pauses over a given cell, the value returned from this method is displayed in a tooltip. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1527695-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewToolTipForCellRectTableColumnItemMouseLocation(f func(outlineView OutlineView, cell Cell, rect foundation.RectPointer, tableColumn TableColumn, item objc.Object, mouseLocation foundation.Point) string) { - di._OutlineViewToolTipForCellRectTableColumnItemMouseLocation = f -} - -// When the cursor pauses over a given cell, the value returned from this method is displayed in a tooltip. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1527695-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewToolTipForCellRectTableColumnItemMouseLocation(outlineView OutlineView, cell Cell, rect foundation.RectPointer, tableColumn TableColumn, item objc.Object, mouseLocation foundation.Point) string { - return di._OutlineViewToolTipForCellRectTableColumnItemMouseLocation(outlineView, cell, rect, tableColumn, item, mouseLocation) -} -func (di *OutlineViewDelegate) HasOutlineViewShouldEditTableColumnItem() bool { - return di._OutlineViewShouldEditTableColumnItem != nil -} - -// Returns a Boolean value that indicates whether the outline view should allow editing of a given item in a given table column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535450-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewShouldEditTableColumnItem(f func(outlineView OutlineView, tableColumn TableColumn, item objc.Object) bool) { - di._OutlineViewShouldEditTableColumnItem = f -} - -// Returns a Boolean value that indicates whether the outline view should allow editing of a given item in a given table column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535450-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewShouldEditTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) bool { - return di._OutlineViewShouldEditTableColumnItem(outlineView, tableColumn, item) -} -func (di *OutlineViewDelegate) HasOutlineViewItemWillCollapse() bool { - return di._OutlineViewItemWillCollapse != nil -} - -// Invoked when notification is posted—that is, whenever the user is about to collapse an item in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526896-outlineviewitemwillcollapse?language=objc -func (di *OutlineViewDelegate) SetOutlineViewItemWillCollapse(f func(notification foundation.Notification)) { - di._OutlineViewItemWillCollapse = f -} - -// Invoked when notification is posted—that is, whenever the user is about to collapse an item in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526896-outlineviewitemwillcollapse?language=objc -func (di *OutlineViewDelegate) OutlineViewItemWillCollapse(notification foundation.Notification) { - di._OutlineViewItemWillCollapse(notification) -} -func (di *OutlineViewDelegate) HasOutlineViewShouldExpandItem() bool { - return di._OutlineViewShouldExpandItem != nil -} - -// Returns a Boolean value that indicates whether the outline view should expand a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531199-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewShouldExpandItem(f func(outlineView OutlineView, item objc.Object) bool) { - di._OutlineViewShouldExpandItem = f -} - -// Returns a Boolean value that indicates whether the outline view should expand a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531199-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewShouldExpandItem(outlineView OutlineView, item objc.Object) bool { - return di._OutlineViewShouldExpandItem(outlineView, item) -} -func (di *OutlineViewDelegate) HasOutlineViewWillDisplayCellForTableColumnItem() bool { - return di._OutlineViewWillDisplayCellForTableColumnItem != nil -} - -// Informs the delegate that the cell specified by the column and item will be displayed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1529359-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewWillDisplayCellForTableColumnItem(f func(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object)) { - di._OutlineViewWillDisplayCellForTableColumnItem = f -} - -// Informs the delegate that the cell specified by the column and item will be displayed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1529359-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewWillDisplayCellForTableColumnItem(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object) { - di._OutlineViewWillDisplayCellForTableColumnItem(outlineView, cell, tableColumn, item) -} -func (di *OutlineViewDelegate) HasOutlineViewDataCellForTableColumnItem() bool { - return di._OutlineViewDataCellForTableColumnItem != nil -} - -// Returns the cell to use in a given column for a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1525161-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewDataCellForTableColumnItem(f func(outlineView OutlineView, tableColumn TableColumn, item objc.Object) Cell) { - di._OutlineViewDataCellForTableColumnItem = f +func (o_ OutlineViewDelegateObject) HasOutlineViewDidClickTableColumn() bool { + return o_.RespondsToSelector(objc.Sel("outlineView:didClickTableColumn:")) } -// Returns the cell to use in a given column for a given item. [Full Topic] +// Sent at the time the mouse button subsequently goes up in outlineView and tableColumn has been “clicked” without having been dragged anywhere. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1525161-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewDataCellForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) Cell { - return di._OutlineViewDataCellForTableColumnItem(outlineView, tableColumn, item) -} -func (di *OutlineViewDelegate) HasOutlineViewSelectionDidChange() bool { - return di._OutlineViewSelectionDidChange != nil +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534040-outlineview?language=objc +func (o_ OutlineViewDelegateObject) OutlineViewDidClickTableColumn(outlineView OutlineView, tableColumn TableColumn) { + objc.Call[objc.Void](o_, objc.Sel("outlineView:didClickTableColumn:"), outlineView, tableColumn) } -// Invoked when the selection did change notification is posted—that is, immediately after the outline view’s selection has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526913-outlineviewselectiondidchange?language=objc -func (di *OutlineViewDelegate) SetOutlineViewSelectionDidChange(f func(notification foundation.Notification)) { - di._OutlineViewSelectionDidChange = f +func (o_ OutlineViewDelegateObject) HasOutlineViewSelectionDidChange() bool { + return o_.RespondsToSelector(objc.Sel("outlineViewSelectionDidChange:")) } // Invoked when the selection did change notification is posted—that is, immediately after the outline view’s selection has changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526913-outlineviewselectiondidchange?language=objc -func (di *OutlineViewDelegate) OutlineViewSelectionDidChange(notification foundation.Notification) { - di._OutlineViewSelectionDidChange(notification) -} -func (di *OutlineViewDelegate) HasOutlineViewWillDisplayOutlineCellForTableColumnItem() bool { - return di._OutlineViewWillDisplayOutlineCellForTableColumnItem != nil -} - -// Informs the delegate that an outline view is about to display a cell used to draw the expansion symbol. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535808-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewWillDisplayOutlineCellForTableColumnItem(f func(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object)) { - di._OutlineViewWillDisplayOutlineCellForTableColumnItem = f -} - -// Informs the delegate that an outline view is about to display a cell used to draw the expansion symbol. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535808-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewWillDisplayOutlineCellForTableColumnItem(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object) { - di._OutlineViewWillDisplayOutlineCellForTableColumnItem(outlineView, cell, tableColumn, item) -} -func (di *OutlineViewDelegate) HasOutlineViewViewForTableColumnItem() bool { - return di._OutlineViewViewForTableColumnItem != nil -} - -// Implemented to return the view used to display the specified item and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535566-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewViewForTableColumnItem(f func(outlineView OutlineView, tableColumn TableColumn, item objc.Object) View) { - di._OutlineViewViewForTableColumnItem = f -} - -// Implemented to return the view used to display the specified item and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535566-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewViewForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) View { - return di._OutlineViewViewForTableColumnItem(outlineView, tableColumn, item) -} -func (di *OutlineViewDelegate) HasOutlineViewDidRemoveRowViewForRow() bool { - return di._OutlineViewDidRemoveRowViewForRow != nil -} - -// Implemented to know when a row view is removed from the table [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530612-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewDidRemoveRowViewForRow(f func(outlineView OutlineView, rowView TableRowView, row int)) { - di._OutlineViewDidRemoveRowViewForRow = f -} - -// Implemented to know when a row view is removed from the table [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530612-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewDidRemoveRowViewForRow(outlineView OutlineView, rowView TableRowView, row int) { - di._OutlineViewDidRemoveRowViewForRow(outlineView, rowView, row) -} -func (di *OutlineViewDelegate) HasOutlineViewShouldTypeSelectForEventWithCurrentSearchString() bool { - return di._OutlineViewShouldTypeSelectForEventWithCurrentSearchString != nil -} - -// Returns a Boolean value that indicates whether type select should proceed for a given event and search string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1532941-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewShouldTypeSelectForEventWithCurrentSearchString(f func(outlineView OutlineView, event Event, searchString string) bool) { - di._OutlineViewShouldTypeSelectForEventWithCurrentSearchString = f -} - -// Returns a Boolean value that indicates whether type select should proceed for a given event and search string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1532941-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewShouldTypeSelectForEventWithCurrentSearchString(outlineView OutlineView, event Event, searchString string) bool { - return di._OutlineViewShouldTypeSelectForEventWithCurrentSearchString(outlineView, event, searchString) -} -func (di *OutlineViewDelegate) HasOutlineViewRowViewForItem() bool { - return di._OutlineViewRowViewForItem != nil -} - -// implement this method to return a custom NSTableRowView for a particular item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1532140-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewRowViewForItem(f func(outlineView OutlineView, item objc.Object) TableRowView) { - di._OutlineViewRowViewForItem = f -} - -// implement this method to return a custom NSTableRowView for a particular item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1532140-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewRowViewForItem(outlineView OutlineView, item objc.Object) TableRowView { - return di._OutlineViewRowViewForItem(outlineView, item) -} -func (di *OutlineViewDelegate) HasOutlineViewIsGroupItem() bool { - return di._OutlineViewIsGroupItem != nil -} - -// Returns a Boolean that indicates whether a given row should be drawn in the “group row” style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1528482-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewIsGroupItem(f func(outlineView OutlineView, item objc.Object) bool) { - di._OutlineViewIsGroupItem = f -} - -// Returns a Boolean that indicates whether a given row should be drawn in the “group row” style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1528482-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewIsGroupItem(outlineView OutlineView, item objc.Object) bool { - return di._OutlineViewIsGroupItem(outlineView, item) -} -func (di *OutlineViewDelegate) HasOutlineViewShouldShowCellExpansionForTableColumnItem() bool { - return di._OutlineViewShouldShowCellExpansionForTableColumnItem != nil -} - -// Invoked to allow the delegate to control cell expansion for a specific column and item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534411-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewShouldShowCellExpansionForTableColumnItem(f func(outlineView OutlineView, tableColumn TableColumn, item objc.Object) bool) { - di._OutlineViewShouldShowCellExpansionForTableColumnItem = f -} - -// Invoked to allow the delegate to control cell expansion for a specific column and item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534411-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewShouldShowCellExpansionForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) bool { - return di._OutlineViewShouldShowCellExpansionForTableColumnItem(outlineView, tableColumn, item) -} -func (di *OutlineViewDelegate) HasOutlineViewDidDragTableColumn() bool { - return di._OutlineViewDidDragTableColumn != nil -} - -// Sent at the time the mouse button goes up in outlineView and tableColumn has been dragged during the time the mouse button was down. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526632-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewDidDragTableColumn(f func(outlineView OutlineView, tableColumn TableColumn)) { - di._OutlineViewDidDragTableColumn = f -} - -// Sent at the time the mouse button goes up in outlineView and tableColumn has been dragged during the time the mouse button was down. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526632-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewDidDragTableColumn(outlineView OutlineView, tableColumn TableColumn) { - di._OutlineViewDidDragTableColumn(outlineView, tableColumn) -} -func (di *OutlineViewDelegate) HasOutlineViewShouldReorderColumnToColumn() bool { - return di._OutlineViewShouldReorderColumnToColumn != nil -} - -// Sent to the delegate to allow or prohibit the specified column to be dragged to a new location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530792-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewShouldReorderColumnToColumn(f func(outlineView OutlineView, columnIndex int, newColumnIndex int) bool) { - di._OutlineViewShouldReorderColumnToColumn = f -} - -// Sent to the delegate to allow or prohibit the specified column to be dragged to a new location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530792-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewShouldReorderColumnToColumn(outlineView OutlineView, columnIndex int, newColumnIndex int) bool { - return di._OutlineViewShouldReorderColumnToColumn(outlineView, columnIndex, newColumnIndex) -} -func (di *OutlineViewDelegate) HasOutlineViewTypeSelectStringForTableColumnItem() bool { - return di._OutlineViewTypeSelectStringForTableColumnItem != nil -} - -// Returns the string that is used for type selection for a given column and item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526847-outlineview?language=objc -func (di *OutlineViewDelegate) SetOutlineViewTypeSelectStringForTableColumnItem(f func(outlineView OutlineView, tableColumn TableColumn, item objc.Object) string) { - di._OutlineViewTypeSelectStringForTableColumnItem = f -} - -// Returns the string that is used for type selection for a given column and item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526847-outlineview?language=objc -func (di *OutlineViewDelegate) OutlineViewTypeSelectStringForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) string { - return di._OutlineViewTypeSelectStringForTableColumnItem(outlineView, tableColumn, item) -} - -// ensure impl type implements protocol interface -var _ POutlineViewDelegate = (*OutlineViewDelegateObject)(nil) - -// A concrete type for the [POutlineViewDelegate] protocol. -type OutlineViewDelegateObject struct { - ControlTextEditingDelegateObject -} - -func (o_ OutlineViewDelegateObject) HasSelectionShouldChangeInOutlineView() bool { - return o_.RespondsToSelector(objc.Sel("selectionShouldChangeInOutlineView:")) -} - -// Returns a Boolean value that indicates whether the outline view should change its selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530734-selectionshouldchangeinoutlinevi?language=objc -func (o_ OutlineViewDelegateObject) SelectionShouldChangeInOutlineView(outlineView OutlineView) bool { - rv := objc.Call[bool](o_, objc.Sel("selectionShouldChangeInOutlineView:"), outlineView) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewSelectionIndexesForProposedSelection() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:selectionIndexesForProposedSelection:")) -} - -// Invoked to allow the delegate to modify the proposed selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1527575-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewSelectionIndexesForProposedSelection(outlineView OutlineView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](o_, objc.Sel("outlineView:selectionIndexesForProposedSelection:"), outlineView, proposedSelectionIndexes) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewItemWillExpand() bool { - return o_.RespondsToSelector(objc.Sel("outlineViewItemWillExpand:")) -} - -// Invoked when notification is posted—that is, whenever the user is about to expand an item in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535847-outlineviewitemwillexpand?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewItemWillExpand(notification foundation.Notification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewItemWillExpand:"), notification) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewHeightOfRowByItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:heightOfRowByItem:")) -} - -// Returns the height in points of the row containing item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531870-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewHeightOfRowByItem(outlineView OutlineView, item objc.Object) float64 { - rv := objc.Call[float64](o_, objc.Sel("outlineView:heightOfRowByItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewDidClickTableColumn() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:didClickTableColumn:")) -} - -// Sent at the time the mouse button subsequently goes up in outlineView and tableColumn has been “clicked” without having been dragged anywhere. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534040-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewDidClickTableColumn(outlineView OutlineView, tableColumn TableColumn) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:didClickTableColumn:"), outlineView, tableColumn) +func (o_ OutlineViewDelegateObject) OutlineViewSelectionDidChange(notification foundation.Notification) { + objc.Call[objc.Void](o_, objc.Sel("outlineViewSelectionDidChange:"), notification) } func (o_ OutlineViewDelegateObject) HasOutlineViewItemDidExpand() bool { @@ -910,109 +335,6 @@ func (o_ OutlineViewDelegateObject) OutlineViewItemDidExpand(notification founda objc.Call[objc.Void](o_, objc.Sel("outlineViewItemDidExpand:"), notification) } -func (o_ OutlineViewDelegateObject) HasOutlineViewShouldSelectTableColumn() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:shouldSelectTableColumn:")) -} - -// Returns a Boolean value that indicates whether the outline view should select a given table column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535118-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewShouldSelectTableColumn(outlineView OutlineView, tableColumn TableColumn) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:shouldSelectTableColumn:"), outlineView, tableColumn) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewNextTypeSelectMatchFromItemToItemForString() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:nextTypeSelectMatchFromItem:toItem:forString:")) -} - -// Returns the first item that matches the searchString from within the range of startItem to endItem [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1533321-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewNextTypeSelectMatchFromItemToItemForString(outlineView OutlineView, startItem objc.Object, endItem objc.Object, searchString string) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("outlineView:nextTypeSelectMatchFromItem:toItem:forString:"), outlineView, startItem, endItem, searchString) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewShouldSelectItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:shouldSelectItem:")) -} - -// Returns a Boolean value that indicates whether the outline view should select a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531075-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewShouldSelectItem(outlineView OutlineView, item objc.Object) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:shouldSelectItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewColumnDidResize() bool { - return o_.RespondsToSelector(objc.Sel("outlineViewColumnDidResize:")) -} - -// Invoked whenever the user resizes a column in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1533372-outlineviewcolumndidresize?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewColumnDidResize(notification foundation.Notification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewColumnDidResize:"), notification) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewItemDidCollapse() bool { - return o_.RespondsToSelector(objc.Sel("outlineViewItemDidCollapse:")) -} - -// Invoked when the did collapse notification is posted—that is, whenever the user collapses an item in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535557-outlineviewitemdidcollapse?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewItemDidCollapse(notification foundation.Notification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewItemDidCollapse:"), notification) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewMouseDownInHeaderOfTableColumn() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:mouseDownInHeaderOfTableColumn:")) -} - -// Sent to the delegate whenever the mouse button is clicked in outlineView while the cursor is in a column header tableColumn. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531835-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewMouseDownInHeaderOfTableColumn(outlineView OutlineView, tableColumn TableColumn) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:mouseDownInHeaderOfTableColumn:"), outlineView, tableColumn) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewTintConfigurationForItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:tintConfigurationForItem:")) -} - -// Customizes an item’s tinting behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/3626816-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewTintConfigurationForItem(outlineView OutlineView, item objc.Object) TintConfiguration { - rv := objc.Call[TintConfiguration](o_, objc.Sel("outlineView:tintConfigurationForItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewColumnDidMove() bool { - return o_.RespondsToSelector(objc.Sel("outlineViewColumnDidMove:")) -} - -// Invoked whenever the user moves a column in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1525297-outlineviewcolumndidmove?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewColumnDidMove(notification foundation.Notification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewColumnDidMove:"), notification) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewDidAddRowViewForRow() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:didAddRowView:forRow:")) -} - -// Implemented to know when a new row view is added to the table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1528320-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewDidAddRowViewForRow(outlineView OutlineView, rowView TableRowView, row int) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:didAddRowView:forRow:"), outlineView, rowView, row) -} - func (o_ OutlineViewDelegateObject) HasOutlineViewSelectionIsChanging() bool { return o_.RespondsToSelector(objc.Sel("outlineViewSelectionIsChanging:")) } @@ -1024,248 +346,14 @@ func (o_ OutlineViewDelegateObject) OutlineViewSelectionIsChanging(notification objc.Call[objc.Void](o_, objc.Sel("outlineViewSelectionIsChanging:"), notification) } -func (o_ OutlineViewDelegateObject) HasOutlineViewShouldTrackCellForTableColumnItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:shouldTrackCell:forTableColumn:item:")) -} - -// Returns a Boolean value that indicates whether a given cell should be tracked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534295-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewShouldTrackCellForTableColumnItem(outlineView OutlineView, cell Cell, tableColumn TableColumn, item objc.Object) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:shouldTrackCell:forTableColumn:item:"), outlineView, cell, tableColumn, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewShouldCollapseItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:shouldCollapseItem:")) -} - -// Returns a Boolean value that indicates whether the outline view should collapse a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1529825-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewShouldCollapseItem(outlineView OutlineView, item objc.Object) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:shouldCollapseItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewSizeToFitWidthOfColumn() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:sizeToFitWidthOfColumn:")) -} - -// Invoked to allow the delegate to provide custom sizing behavior when a column’s resize divider is double clicked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530479-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewSizeToFitWidthOfColumn(outlineView OutlineView, column int) float64 { - rv := objc.Call[float64](o_, objc.Sel("outlineView:sizeToFitWidthOfColumn:"), outlineView, column) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewShouldShowOutlineCellForItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:shouldShowOutlineCellForItem:")) -} - -// Returns whether the specified item should display the outline cell (the disclosure triangle). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534006-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewShouldShowOutlineCellForItem(outlineView OutlineView, item objc.Object) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:shouldShowOutlineCellForItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewToolTipForCellRectTableColumnItemMouseLocation() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:toolTipForCell:rect:tableColumn:item:mouseLocation:")) -} - -// When the cursor pauses over a given cell, the value returned from this method is displayed in a tooltip. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1527695-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewToolTipForCellRectTableColumnItemMouseLocation(outlineView OutlineView, cell Cell, rect foundation.RectPointer, tableColumn TableColumn, item objc.Object, mouseLocation foundation.Point) string { - rv := objc.Call[string](o_, objc.Sel("outlineView:toolTipForCell:rect:tableColumn:item:mouseLocation:"), outlineView, cell, rect, tableColumn, item, mouseLocation) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewShouldEditTableColumnItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:shouldEditTableColumn:item:")) -} - -// Returns a Boolean value that indicates whether the outline view should allow editing of a given item in a given table column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535450-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewShouldEditTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:shouldEditTableColumn:item:"), outlineView, tableColumn, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewItemWillCollapse() bool { - return o_.RespondsToSelector(objc.Sel("outlineViewItemWillCollapse:")) -} - -// Invoked when notification is posted—that is, whenever the user is about to collapse an item in the outline view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526896-outlineviewitemwillcollapse?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewItemWillCollapse(notification foundation.Notification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewItemWillCollapse:"), notification) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewShouldExpandItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:shouldExpandItem:")) -} - -// Returns a Boolean value that indicates whether the outline view should expand a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1531199-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewShouldExpandItem(outlineView OutlineView, item objc.Object) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:shouldExpandItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewWillDisplayCellForTableColumnItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:willDisplayCell:forTableColumn:item:")) -} - -// Informs the delegate that the cell specified by the column and item will be displayed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1529359-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewWillDisplayCellForTableColumnItem(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:willDisplayCell:forTableColumn:item:"), outlineView, cell, tableColumn, item) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewDataCellForTableColumnItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:dataCellForTableColumn:item:")) -} - -// Returns the cell to use in a given column for a given item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1525161-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewDataCellForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) Cell { - rv := objc.Call[Cell](o_, objc.Sel("outlineView:dataCellForTableColumn:item:"), outlineView, tableColumn, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewSelectionDidChange() bool { - return o_.RespondsToSelector(objc.Sel("outlineViewSelectionDidChange:")) -} - -// Invoked when the selection did change notification is posted—that is, immediately after the outline view’s selection has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526913-outlineviewselectiondidchange?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewSelectionDidChange(notification foundation.Notification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewSelectionDidChange:"), notification) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewWillDisplayOutlineCellForTableColumnItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:willDisplayOutlineCell:forTableColumn:item:")) -} - -// Informs the delegate that an outline view is about to display a cell used to draw the expansion symbol. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535808-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewWillDisplayOutlineCellForTableColumnItem(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:willDisplayOutlineCell:forTableColumn:item:"), outlineView, cell, tableColumn, item) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewViewForTableColumnItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:viewForTableColumn:item:")) -} - -// Implemented to return the view used to display the specified item and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535566-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewViewForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) View { - rv := objc.Call[View](o_, objc.Sel("outlineView:viewForTableColumn:item:"), outlineView, tableColumn, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewDidRemoveRowViewForRow() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:didRemoveRowView:forRow:")) -} - -// Implemented to know when a row view is removed from the table [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530612-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewDidRemoveRowViewForRow(outlineView OutlineView, rowView TableRowView, row int) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:didRemoveRowView:forRow:"), outlineView, rowView, row) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewShouldTypeSelectForEventWithCurrentSearchString() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:shouldTypeSelectForEvent:withCurrentSearchString:")) -} - -// Returns a Boolean value that indicates whether type select should proceed for a given event and search string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1532941-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewShouldTypeSelectForEventWithCurrentSearchString(outlineView OutlineView, event Event, searchString string) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:shouldTypeSelectForEvent:withCurrentSearchString:"), outlineView, event, searchString) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewRowViewForItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:rowViewForItem:")) -} - -// implement this method to return a custom NSTableRowView for a particular item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1532140-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewRowViewForItem(outlineView OutlineView, item objc.Object) TableRowView { - rv := objc.Call[TableRowView](o_, objc.Sel("outlineView:rowViewForItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewIsGroupItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:isGroupItem:")) -} - -// Returns a Boolean that indicates whether a given row should be drawn in the “group row” style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1528482-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewIsGroupItem(outlineView OutlineView, item objc.Object) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:isGroupItem:"), outlineView, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewShouldShowCellExpansionForTableColumnItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:shouldShowCellExpansionForTableColumn:item:")) -} - -// Invoked to allow the delegate to control cell expansion for a specific column and item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534411-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewShouldShowCellExpansionForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:shouldShowCellExpansionForTableColumn:item:"), outlineView, tableColumn, item) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewDidDragTableColumn() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:didDragTableColumn:")) -} - -// Sent at the time the mouse button goes up in outlineView and tableColumn has been dragged during the time the mouse button was down. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526632-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewDidDragTableColumn(outlineView OutlineView, tableColumn TableColumn) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:didDragTableColumn:"), outlineView, tableColumn) -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewShouldReorderColumnToColumn() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:shouldReorderColumn:toColumn:")) -} - -// Sent to the delegate to allow or prohibit the specified column to be dragged to a new location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530792-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewShouldReorderColumnToColumn(outlineView OutlineView, columnIndex int, newColumnIndex int) bool { - rv := objc.Call[bool](o_, objc.Sel("outlineView:shouldReorderColumn:toColumn:"), outlineView, columnIndex, newColumnIndex) - return rv -} - -func (o_ OutlineViewDelegateObject) HasOutlineViewTypeSelectStringForTableColumnItem() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:typeSelectStringForTableColumn:item:")) +func (o_ OutlineViewDelegateObject) HasSelectionShouldChangeInOutlineView() bool { + return o_.RespondsToSelector(objc.Sel("selectionShouldChangeInOutlineView:")) } -// Returns the string that is used for type selection for a given column and item. [Full Topic] +// Returns a Boolean value that indicates whether the outline view should change its selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1526847-outlineview?language=objc -func (o_ OutlineViewDelegateObject) OutlineViewTypeSelectStringForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) string { - rv := objc.Call[string](o_, objc.Sel("outlineView:typeSelectStringForTableColumn:item:"), outlineView, tableColumn, item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530734-selectionshouldchangeinoutlinevi?language=objc +func (o_ OutlineViewDelegateObject) SelectionShouldChangeInOutlineView(outlineView OutlineView) bool { + rv := objc.Call[bool](o_, objc.Sel("selectionShouldChangeInOutlineView:"), outlineView) return rv } diff --git a/macos/appkit/page_controller.gen.go b/macos/appkit/page_controller.gen.go index ebabac91..13089192 100644 --- a/macos/appkit/page_controller.gen.go +++ b/macos/appkit/page_controller.gen.go @@ -19,21 +19,21 @@ type _PageControllerClass struct { // An interface definition for the [PageController] class. type IPageController interface { IViewController - NavigateBack(sender objc.IObject) objc.Object - NavigateForwardToObject(object objc.IObject) NavigateForward(sender objc.IObject) objc.Object - CompleteTransition() + NavigateForwardToObject(object objc.IObject) TakeSelectedIndexFrom(sender objc.IObject) objc.Object - SelectedIndex() int - SetSelectedIndex(value int) + CompleteTransition() + NavigateBack(sender objc.IObject) objc.Object + SelectedViewController() ViewController ArrangedObjects() []objc.Object SetArrangedObjects(value []objc.IObject) - SelectedViewController() ViewController - TransitionStyle() PageControllerTransitionStyle - SetTransitionStyle(value PageControllerTransitionStyle) Delegate() PageControllerDelegateObject SetDelegate(value PPageControllerDelegate) SetDelegateObject(valueObject objc.IObject) + TransitionStyle() PageControllerTransitionStyle + SetTransitionStyle(value PageControllerTransitionStyle) + SelectedIndex() int + SetSelectedIndex(value int) } // An object that controls swipe navigation and animations between views or view content. [Full Topic] @@ -83,11 +83,11 @@ func NewPageControllerWithNibNameBundle(nibNameOrNil NibName, nibBundleOrNil fou return instance } -// Navigates backwards in the page controller’s arranged objects array. [Full Topic] +// Navigates to the next object in the page controller’s arranged objects array, if appropriate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435017-navigateback?language=objc -func (p_ PageController) NavigateBack(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("navigateBack:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435004-navigateforward?language=objc +func (p_ PageController) NavigateForward(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("navigateForward:"), sender) return rv } @@ -98,11 +98,11 @@ func (p_ PageController) NavigateForwardToObject(object objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("navigateForwardToObject:"), object) } -// Navigates to the next object in the page controller’s arranged objects array, if appropriate. [Full Topic] +// Navigates to the selected index, which is taken from the sender. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435004-navigateforward?language=objc -func (p_ PageController) NavigateForward(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("navigateForward:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435011-takeselectedindexfrom?language=objc +func (p_ PageController) TakeSelectedIndexFrom(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("takeSelectedIndexFrom:"), sender) return rv } @@ -113,29 +113,22 @@ func (p_ PageController) CompleteTransition() { objc.Call[objc.Void](p_, objc.Sel("completeTransition")) } -// Navigates to the selected index, which is taken from the sender. [Full Topic] +// Navigates backwards in the page controller’s arranged objects array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435011-takeselectedindexfrom?language=objc -func (p_ PageController) TakeSelectedIndexFrom(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("takeSelectedIndexFrom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435017-navigateback?language=objc +func (p_ PageController) NavigateBack(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("navigateBack:"), sender) return rv } -// The currently selected object in the arranged objects array. [Full Topic] +// The view controller associated with the selected object.. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1434988-selectedindex?language=objc -func (p_ PageController) SelectedIndex() int { - rv := objc.Call[int](p_, objc.Sel("selectedIndex")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435013-selectedviewcontroller?language=objc +func (p_ PageController) SelectedViewController() ViewController { + rv := objc.Call[ViewController](p_, objc.Sel("selectedViewController")) return rv } -// The currently selected object in the arranged objects array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1434988-selectedindex?language=objc -func (p_ PageController) SetSelectedIndex(value int) { - objc.Call[objc.Void](p_, objc.Sel("setSelectedIndex:"), value) -} - // An array containing the objects displayed in the page controller’s view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435001-arrangedobjects?language=objc @@ -151,14 +144,30 @@ func (p_ PageController) SetArrangedObjects(value []objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setArrangedObjects:"), value) } -// The view controller associated with the selected object.. [Full Topic] +// The page controller’s delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435013-selectedviewcontroller?language=objc -func (p_ PageController) SelectedViewController() ViewController { - rv := objc.Call[ViewController](p_, objc.Sel("selectedViewController")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435019-delegate?language=objc +func (p_ PageController) Delegate() PageControllerDelegateObject { + rv := objc.Call[PageControllerDelegateObject](p_, objc.Sel("delegate")) return rv } +// The page controller’s delegate object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435019-delegate?language=objc +func (p_ PageController) SetDelegate(value PPageControllerDelegate) { + po0 := objc.WrapAsProtocol("NSPageControllerDelegate", value) + objc.SetAssociatedObject(p_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), po0) +} + +// The page controller’s delegate object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435019-delegate?language=objc +func (p_ PageController) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), valueObject) +} + // The transition style the page controller uses when changing pages. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1434999-transitionstyle?language=objc @@ -174,26 +183,17 @@ func (p_ PageController) SetTransitionStyle(value PageControllerTransitionStyle) objc.Call[objc.Void](p_, objc.Sel("setTransitionStyle:"), value) } -// The page controller’s delegate object. [Full Topic] +// The currently selected object in the arranged objects array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435019-delegate?language=objc -func (p_ PageController) Delegate() PageControllerDelegateObject { - rv := objc.Call[PageControllerDelegateObject](p_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1434988-selectedindex?language=objc +func (p_ PageController) SelectedIndex() int { + rv := objc.Call[int](p_, objc.Sel("selectedIndex")) return rv } -// The page controller’s delegate object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435019-delegate?language=objc -func (p_ PageController) SetDelegate(value PPageControllerDelegate) { - po0 := objc.WrapAsProtocol("NSPageControllerDelegate", value) - objc.SetAssociatedObject(p_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), po0) -} - -// The page controller’s delegate object. [Full Topic] +// The currently selected object in the arranged objects array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435019-delegate?language=objc -func (p_ PageController) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1434988-selectedindex?language=objc +func (p_ PageController) SetSelectedIndex(value int) { + objc.Call[objc.Void](p_, objc.Sel("setSelectedIndex:"), value) } diff --git a/macos/appkit/page_controller_delegate.gen.go b/macos/appkit/page_controller_delegate.gen.go index 65e7c2cb..62b69db5 100644 --- a/macos/appkit/page_controller_delegate.gen.go +++ b/macos/appkit/page_controller_delegate.gen.go @@ -3,7 +3,6 @@ package appkit import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -11,63 +10,26 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate?language=objc type PPageControllerDelegate interface { - // optional - PageControllerDidTransitionToObject(pageController PageController, object objc.Object) - HasPageControllerDidTransitionToObject() bool - // optional PageControllerDidEndLiveTransition(pageController PageController) HasPageControllerDidEndLiveTransition() bool - // optional - PageControllerIdentifierForObject(pageController PageController, object objc.Object) PageControllerObjectIdentifier - HasPageControllerIdentifierForObject() bool - // optional PageControllerWillStartLiveTransition(pageController PageController) HasPageControllerWillStartLiveTransition() bool // optional - PageControllerFrameForObject(pageController PageController, object objc.Object) foundation.Rect - HasPageControllerFrameForObject() bool - - // optional - PageControllerViewControllerForIdentifier(pageController PageController, identifier PageControllerObjectIdentifier) ViewController - HasPageControllerViewControllerForIdentifier() bool - - // optional - PageControllerPrepareViewControllerWithObject(pageController PageController, viewController ViewController, object objc.Object) - HasPageControllerPrepareViewControllerWithObject() bool + PageControllerDidTransitionToObject(pageController PageController, object objc.Object) + HasPageControllerDidTransitionToObject() bool } // A delegate implementation builder for the [PPageControllerDelegate] protocol. type PageControllerDelegate struct { - _PageControllerDidTransitionToObject func(pageController PageController, object objc.Object) - _PageControllerDidEndLiveTransition func(pageController PageController) - _PageControllerIdentifierForObject func(pageController PageController, object objc.Object) PageControllerObjectIdentifier - _PageControllerWillStartLiveTransition func(pageController PageController) - _PageControllerFrameForObject func(pageController PageController, object objc.Object) foundation.Rect - _PageControllerViewControllerForIdentifier func(pageController PageController, identifier PageControllerObjectIdentifier) ViewController - _PageControllerPrepareViewControllerWithObject func(pageController PageController, viewController ViewController, object objc.Object) -} - -func (di *PageControllerDelegate) HasPageControllerDidTransitionToObject() bool { - return di._PageControllerDidTransitionToObject != nil -} - -// This message is sent when any page transition is completed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435021-pagecontroller?language=objc -func (di *PageControllerDelegate) SetPageControllerDidTransitionToObject(f func(pageController PageController, object objc.Object)) { - di._PageControllerDidTransitionToObject = f + _PageControllerDidEndLiveTransition func(pageController PageController) + _PageControllerWillStartLiveTransition func(pageController PageController) + _PageControllerDidTransitionToObject func(pageController PageController, object objc.Object) } -// This message is sent when any page transition is completed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435021-pagecontroller?language=objc -func (di *PageControllerDelegate) PageControllerDidTransitionToObject(pageController PageController, object objc.Object) { - di._PageControllerDidTransitionToObject(pageController, object) -} func (di *PageControllerDelegate) HasPageControllerDidEndLiveTransition() bool { return di._PageControllerDidEndLiveTransition != nil } @@ -85,23 +47,6 @@ func (di *PageControllerDelegate) SetPageControllerDidEndLiveTransition(f func(p func (di *PageControllerDelegate) PageControllerDidEndLiveTransition(pageController PageController) { di._PageControllerDidEndLiveTransition(pageController) } -func (di *PageControllerDelegate) HasPageControllerIdentifierForObject() bool { - return di._PageControllerIdentifierForObject != nil -} - -// Return the identifier of the view controller that owns a view to display the object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435007-pagecontroller?language=objc -func (di *PageControllerDelegate) SetPageControllerIdentifierForObject(f func(pageController PageController, object objc.Object) PageControllerObjectIdentifier) { - di._PageControllerIdentifierForObject = f -} - -// Return the identifier of the view controller that owns a view to display the object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435007-pagecontroller?language=objc -func (di *PageControllerDelegate) PageControllerIdentifierForObject(pageController PageController, object objc.Object) PageControllerObjectIdentifier { - return di._PageControllerIdentifierForObject(pageController, object) -} func (di *PageControllerDelegate) HasPageControllerWillStartLiveTransition() bool { return di._PageControllerWillStartLiveTransition != nil } @@ -119,56 +64,22 @@ func (di *PageControllerDelegate) SetPageControllerWillStartLiveTransition(f fun func (di *PageControllerDelegate) PageControllerWillStartLiveTransition(pageController PageController) { di._PageControllerWillStartLiveTransition(pageController) } -func (di *PageControllerDelegate) HasPageControllerFrameForObject() bool { - return di._PageControllerFrameForObject != nil -} - -// Returns the frame appropriate for displaying the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1434992-pagecontroller?language=objc -func (di *PageControllerDelegate) SetPageControllerFrameForObject(f func(pageController PageController, object objc.Object) foundation.Rect) { - di._PageControllerFrameForObject = f -} - -// Returns the frame appropriate for displaying the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1434992-pagecontroller?language=objc -func (di *PageControllerDelegate) PageControllerFrameForObject(pageController PageController, object objc.Object) foundation.Rect { - return di._PageControllerFrameForObject(pageController, object) -} -func (di *PageControllerDelegate) HasPageControllerViewControllerForIdentifier() bool { - return di._PageControllerViewControllerForIdentifier != nil -} - -// Returns a view controller the page controller uses for managing the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435015-pagecontroller?language=objc -func (di *PageControllerDelegate) SetPageControllerViewControllerForIdentifier(f func(pageController PageController, identifier PageControllerObjectIdentifier) ViewController) { - di._PageControllerViewControllerForIdentifier = f -} - -// Returns a view controller the page controller uses for managing the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435015-pagecontroller?language=objc -func (di *PageControllerDelegate) PageControllerViewControllerForIdentifier(pageController PageController, identifier PageControllerObjectIdentifier) ViewController { - return di._PageControllerViewControllerForIdentifier(pageController, identifier) -} -func (di *PageControllerDelegate) HasPageControllerPrepareViewControllerWithObject() bool { - return di._PageControllerPrepareViewControllerWithObject != nil +func (di *PageControllerDelegate) HasPageControllerDidTransitionToObject() bool { + return di._PageControllerDidTransitionToObject != nil } -// Prepare the view controller and it’s view for drawing. [Full Topic] +// This message is sent when any page transition is completed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1434983-pagecontroller?language=objc -func (di *PageControllerDelegate) SetPageControllerPrepareViewControllerWithObject(f func(pageController PageController, viewController ViewController, object objc.Object)) { - di._PageControllerPrepareViewControllerWithObject = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435021-pagecontroller?language=objc +func (di *PageControllerDelegate) SetPageControllerDidTransitionToObject(f func(pageController PageController, object objc.Object)) { + di._PageControllerDidTransitionToObject = f } -// Prepare the view controller and it’s view for drawing. [Full Topic] +// This message is sent when any page transition is completed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1434983-pagecontroller?language=objc -func (di *PageControllerDelegate) PageControllerPrepareViewControllerWithObject(pageController PageController, viewController ViewController, object objc.Object) { - di._PageControllerPrepareViewControllerWithObject(pageController, viewController, object) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435021-pagecontroller?language=objc +func (di *PageControllerDelegate) PageControllerDidTransitionToObject(pageController PageController, object objc.Object) { + di._PageControllerDidTransitionToObject(pageController, object) } // ensure impl type implements protocol interface @@ -179,17 +90,6 @@ type PageControllerDelegateObject struct { objc.Object } -func (p_ PageControllerDelegateObject) HasPageControllerDidTransitionToObject() bool { - return p_.RespondsToSelector(objc.Sel("pageController:didTransitionToObject:")) -} - -// This message is sent when any page transition is completed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435021-pagecontroller?language=objc -func (p_ PageControllerDelegateObject) PageControllerDidTransitionToObject(pageController PageController, object objc.Object) { - objc.Call[objc.Void](p_, objc.Sel("pageController:didTransitionToObject:"), pageController, object) -} - func (p_ PageControllerDelegateObject) HasPageControllerDidEndLiveTransition() bool { return p_.RespondsToSelector(objc.Sel("pageControllerDidEndLiveTransition:")) } @@ -201,18 +101,6 @@ func (p_ PageControllerDelegateObject) PageControllerDidEndLiveTransition(pageCo objc.Call[objc.Void](p_, objc.Sel("pageControllerDidEndLiveTransition:"), pageController) } -func (p_ PageControllerDelegateObject) HasPageControllerIdentifierForObject() bool { - return p_.RespondsToSelector(objc.Sel("pageController:identifierForObject:")) -} - -// Return the identifier of the view controller that owns a view to display the object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435007-pagecontroller?language=objc -func (p_ PageControllerDelegateObject) PageControllerIdentifierForObject(pageController PageController, object objc.Object) PageControllerObjectIdentifier { - rv := objc.Call[PageControllerObjectIdentifier](p_, objc.Sel("pageController:identifierForObject:"), pageController, object) - return rv -} - func (p_ PageControllerDelegateObject) HasPageControllerWillStartLiveTransition() bool { return p_.RespondsToSelector(objc.Sel("pageControllerWillStartLiveTransition:")) } @@ -224,37 +112,13 @@ func (p_ PageControllerDelegateObject) PageControllerWillStartLiveTransition(pag objc.Call[objc.Void](p_, objc.Sel("pageControllerWillStartLiveTransition:"), pageController) } -func (p_ PageControllerDelegateObject) HasPageControllerFrameForObject() bool { - return p_.RespondsToSelector(objc.Sel("pageController:frameForObject:")) -} - -// Returns the frame appropriate for displaying the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1434992-pagecontroller?language=objc -func (p_ PageControllerDelegateObject) PageControllerFrameForObject(pageController PageController, object objc.Object) foundation.Rect { - rv := objc.Call[foundation.Rect](p_, objc.Sel("pageController:frameForObject:"), pageController, object) - return rv -} - -func (p_ PageControllerDelegateObject) HasPageControllerViewControllerForIdentifier() bool { - return p_.RespondsToSelector(objc.Sel("pageController:viewControllerForIdentifier:")) -} - -// Returns a view controller the page controller uses for managing the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435015-pagecontroller?language=objc -func (p_ PageControllerDelegateObject) PageControllerViewControllerForIdentifier(pageController PageController, identifier PageControllerObjectIdentifier) ViewController { - rv := objc.Call[ViewController](p_, objc.Sel("pageController:viewControllerForIdentifier:"), pageController, identifier) - return rv -} - -func (p_ PageControllerDelegateObject) HasPageControllerPrepareViewControllerWithObject() bool { - return p_.RespondsToSelector(objc.Sel("pageController:prepareViewController:withObject:")) +func (p_ PageControllerDelegateObject) HasPageControllerDidTransitionToObject() bool { + return p_.RespondsToSelector(objc.Sel("pageController:didTransitionToObject:")) } -// Prepare the view controller and it’s view for drawing. [Full Topic] +// This message is sent when any page transition is completed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1434983-pagecontroller?language=objc -func (p_ PageControllerDelegateObject) PageControllerPrepareViewControllerWithObject(pageController PageController, viewController ViewController, object objc.Object) { - objc.Call[objc.Void](p_, objc.Sel("pageController:prepareViewController:withObject:"), pageController, viewController, object) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435021-pagecontroller?language=objc +func (p_ PageControllerDelegateObject) PageControllerDidTransitionToObject(pageController PageController, object objc.Object) { + objc.Call[objc.Void](p_, objc.Sel("pageController:didTransitionToObject:"), pageController, object) } diff --git a/macos/appkit/page_layout.gen.go b/macos/appkit/page_layout.gen.go index a0c23c0e..5aca0b25 100644 --- a/macos/appkit/page_layout.gen.go +++ b/macos/appkit/page_layout.gen.go @@ -18,12 +18,12 @@ type _PageLayoutClass struct { // An interface definition for the [PageLayout] class. type IPageLayout interface { objc.IObject - AddAccessoryController(accessoryController IViewController) RemoveAccessoryController(accessoryController IViewController) - RunModalWithPrintInfo(printInfo IPrintInfo) int RunModal() int - AccessoryControllers() []ViewController + AddAccessoryController(accessoryController IViewController) + RunModalWithPrintInfo(printInfo IPrintInfo) int PrintInfo() PrintInfo + AccessoryControllers() []ViewController } // A panel that queries the user for information such as paper type and orientation. [Full Topic] @@ -59,13 +59,6 @@ func (p_ PageLayout) Init() PageLayout { return rv } -// Adds the specified controller of an accessory view to be presented in the page setup panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagelayout/1397790-addaccessorycontroller?language=objc -func (p_ PageLayout) AddAccessoryController(accessoryController IViewController) { - objc.Call[objc.Void](p_, objc.Sel("addAccessoryController:"), accessoryController) -} - // Removes the specified controller of an accessory view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspagelayout/1397802-removeaccessorycontroller?language=objc @@ -73,6 +66,21 @@ func (p_ PageLayout) RemoveAccessoryController(accessoryController IViewControll objc.Call[objc.Void](p_, objc.Sel("removeAccessoryController:"), accessoryController) } +// Displays the page layout panel and begins the modal loop using the shared print info object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagelayout/1397798-runmodal?language=objc +func (p_ PageLayout) RunModal() int { + rv := objc.Call[int](p_, objc.Sel("runModal")) + return rv +} + +// Adds the specified controller of an accessory view to be presented in the page setup panel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagelayout/1397790-addaccessorycontroller?language=objc +func (p_ PageLayout) AddAccessoryController(accessoryController IViewController) { + objc.Call[objc.Void](p_, objc.Sel("addAccessoryController:"), accessoryController) +} + // Displays the page layout panel and begins the modal loop using the specified print info object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspagelayout/1397784-runmodalwithprintinfo?language=objc @@ -96,11 +104,11 @@ func PageLayout_PageLayout() PageLayout { return PageLayoutClass.PageLayout() } -// Displays the page layout panel and begins the modal loop using the shared print info object. [Full Topic] +// The printing information object used when the page layout panel is run. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagelayout/1397798-runmodal?language=objc -func (p_ PageLayout) RunModal() int { - rv := objc.Call[int](p_, objc.Sel("runModal")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagelayout/1397804-printinfo?language=objc +func (p_ PageLayout) PrintInfo() PrintInfo { + rv := objc.Call[PrintInfo](p_, objc.Sel("printInfo")) return rv } @@ -111,11 +119,3 @@ func (p_ PageLayout) AccessoryControllers() []ViewController { rv := objc.Call[[]ViewController](p_, objc.Sel("accessoryControllers")) return rv } - -// The printing information object used when the page layout panel is run. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagelayout/1397804-printinfo?language=objc -func (p_ PageLayout) PrintInfo() PrintInfo { - rv := objc.Call[PrintInfo](p_, objc.Sel("printInfo")) - return rv -} diff --git a/macos/appkit/pan_gesture_recognizer.gen.go b/macos/appkit/pan_gesture_recognizer.gen.go index c0bdfb37..36383ada 100644 --- a/macos/appkit/pan_gesture_recognizer.gen.go +++ b/macos/appkit/pan_gesture_recognizer.gen.go @@ -19,13 +19,13 @@ type _PanGestureRecognizerClass struct { // An interface definition for the [PanGestureRecognizer] class. type IPanGestureRecognizer interface { IGestureRecognizer + SetTranslationInView(translation foundation.Point, view IView) VelocityInView(view IView) foundation.Point TranslationInView(view IView) foundation.Point - SetTranslationInView(translation foundation.Point, view IView) - NumberOfTouchesRequired() int - SetNumberOfTouchesRequired(value int) ButtonMask() uint SetButtonMask(value uint) + NumberOfTouchesRequired() int + SetNumberOfTouchesRequired(value int) } // A continuous gesture recognizer for panning gestures. [Full Topic] @@ -75,6 +75,13 @@ func NewPanGestureRecognizerWithTargetAction(target objc.IObject, action objc.Se return instance } +// Changes the current translation value of the gesture recognizer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspangesturerecognizer/1515533-settranslation?language=objc +func (p_ PanGestureRecognizer) SetTranslationInView(translation foundation.Point, view IView) { + objc.Call[objc.Void](p_, objc.Sel("setTranslation:inView:"), translation, view) +} + // The velocity of the pan, measured in points per second. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspangesturerecognizer/1515532-velocityinview?language=objc @@ -91,11 +98,19 @@ func (p_ PanGestureRecognizer) TranslationInView(view IView) foundation.Point { return rv } -// Changes the current translation value of the gesture recognizer. [Full Topic] +// A bit mask of the button (or buttons) required to recognize this gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspangesturerecognizer/1515533-settranslation?language=objc -func (p_ PanGestureRecognizer) SetTranslationInView(translation foundation.Point, view IView) { - objc.Call[objc.Void](p_, objc.Sel("setTranslation:inView:"), translation, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspangesturerecognizer/1515529-buttonmask?language=objc +func (p_ PanGestureRecognizer) ButtonMask() uint { + rv := objc.Call[uint](p_, objc.Sel("buttonMask")) + return rv +} + +// A bit mask of the button (or buttons) required to recognize this gesture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspangesturerecognizer/1515529-buttonmask?language=objc +func (p_ PanGestureRecognizer) SetButtonMask(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setButtonMask:"), value) } // The number of necessary touches on a Touch Bar for the gesture recognizer to match. [Full Topic] @@ -112,18 +127,3 @@ func (p_ PanGestureRecognizer) NumberOfTouchesRequired() int { func (p_ PanGestureRecognizer) SetNumberOfTouchesRequired(value int) { objc.Call[objc.Void](p_, objc.Sel("setNumberOfTouchesRequired:"), value) } - -// A bit mask of the button (or buttons) required to recognize this gesture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspangesturerecognizer/1515529-buttonmask?language=objc -func (p_ PanGestureRecognizer) ButtonMask() uint { - rv := objc.Call[uint](p_, objc.Sel("buttonMask")) - return rv -} - -// A bit mask of the button (or buttons) required to recognize this gesture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspangesturerecognizer/1515529-buttonmask?language=objc -func (p_ PanGestureRecognizer) SetButtonMask(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setButtonMask:"), value) -} diff --git a/macos/appkit/panel.gen.go b/macos/appkit/panel.gen.go index fa01e332..3bcbb1a8 100644 --- a/macos/appkit/panel.gen.go +++ b/macos/appkit/panel.gen.go @@ -19,10 +19,10 @@ type _PanelClass struct { // An interface definition for the [Panel] class. type IPanel interface { IWindow - SetFloatingPanel(value bool) - SetWorksWhenModal(value bool) BecomesKeyOnlyIfNeeded() bool SetBecomesKeyOnlyIfNeeded(value bool) + SetWorksWhenModal(value bool) + SetFloatingPanel(value bool) } // A special kind of window that typically performs a function that is auxiliary to the main window. [Full Topic] @@ -84,25 +84,19 @@ func NewPanelWithContentRectStyleMaskBackingDeferScreen(contentRect foundation.R return instance } -func (p_ Panel) InitWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) Panel { - rv := objc.Call[Panel](p_, objc.Sel("initWithContentRect:styleMask:backing:defer:"), contentRect, style, backingStoreType, flag) - return rv -} - -// Initializes the window with the specified values. [Full Topic] +// A Boolean value that indicates whether the receiver becomes the key window only when needed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc -func NewPanelWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) Panel { - instance := PanelClass.Alloc().InitWithContentRectStyleMaskBackingDefer(contentRect, style, backingStoreType, flag) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspanel/1528836-becomeskeyonlyifneeded?language=objc +func (p_ Panel) BecomesKeyOnlyIfNeeded() bool { + rv := objc.Call[bool](p_, objc.Sel("becomesKeyOnlyIfNeeded")) + return rv } -// A Boolean value that indicates whether the receiver is a floating panel. [Full Topic] +// A Boolean value that indicates whether the receiver becomes the key window only when needed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspanel/1531901-floatingpanel?language=objc -func (p_ Panel) SetFloatingPanel(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setFloatingPanel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspanel/1528836-becomeskeyonlyifneeded?language=objc +func (p_ Panel) SetBecomesKeyOnlyIfNeeded(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setBecomesKeyOnlyIfNeeded:"), value) } // A Boolean value that indicates whether the panel receives keyboard and mouse events even when some other window is being run modally. [Full Topic] @@ -112,17 +106,9 @@ func (p_ Panel) SetWorksWhenModal(value bool) { objc.Call[objc.Void](p_, objc.Sel("setWorksWhenModal:"), value) } -// A Boolean value that indicates whether the receiver becomes the key window only when needed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspanel/1528836-becomeskeyonlyifneeded?language=objc -func (p_ Panel) BecomesKeyOnlyIfNeeded() bool { - rv := objc.Call[bool](p_, objc.Sel("becomesKeyOnlyIfNeeded")) - return rv -} - -// A Boolean value that indicates whether the receiver becomes the key window only when needed. [Full Topic] +// A Boolean value that indicates whether the receiver is a floating panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspanel/1528836-becomeskeyonlyifneeded?language=objc -func (p_ Panel) SetBecomesKeyOnlyIfNeeded(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setBecomesKeyOnlyIfNeeded:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspanel/1531901-floatingpanel?language=objc +func (p_ Panel) SetFloatingPanel(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setFloatingPanel:"), value) } diff --git a/macos/appkit/paragraph_style.gen.go b/macos/appkit/paragraph_style.gen.go index 0fa098b5..60a1a983 100644 --- a/macos/appkit/paragraph_style.gen.go +++ b/macos/appkit/paragraph_style.gen.go @@ -18,27 +18,27 @@ type _ParagraphStyleClass struct { // An interface definition for the [ParagraphStyle] class. type IParagraphStyle interface { objc.IObject - TextBlocks() []TextBlock - HeaderLevel() int - TighteningFactorForTruncation() float32 + LineSpacing() float64 TextLists() []TextList - TailIndent() float64 + AllowsDefaultTighteningForTruncation() bool + UsesDefaultHyphenation() bool MinimumLineHeight() float64 - ParagraphSpacingBefore() float64 - HyphenationFactor() float32 + TighteningFactorForTruncation() float32 + Alignment() TextAlignment + FirstLineHeadIndent() float64 + LineBreakStrategy() LineBreakStrategy MaximumLineHeight() float64 - ParagraphSpacing() float64 - UsesDefaultHyphenation() bool + HeaderLevel() int DefaultTabInterval() float64 - AllowsDefaultTighteningForTruncation() bool - HeadIndent() float64 - LineBreakStrategy() LineBreakStrategy - Alignment() TextAlignment - LineSpacing() float64 - LineHeightMultiple() float64 TabStops() []TextTab + TextBlocks() []TextBlock + LineHeightMultiple() float64 BaseWritingDirection() WritingDirection - FirstLineHeadIndent() float64 + HyphenationFactor() float32 + ParagraphSpacingBefore() float64 + ParagraphSpacing() float64 + TailIndent() float64 + HeadIndent() float64 } // The paragraph or ruler attributes for an attributed string. [Full Topic] @@ -89,27 +89,26 @@ func ParagraphStyle_DefaultWritingDirectionForLanguage(languageName string) Writ return ParagraphStyleClass.DefaultWritingDirectionForLanguage(languageName) } -// The text blocks that contain the paragraph. [Full Topic] +// The default paragraph style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsparagraphstyle/1528053-textblocks?language=objc -func (p_ ParagraphStyle) TextBlocks() []TextBlock { - rv := objc.Call[[]TextBlock](p_, objc.Sel("textBlocks")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1532681-defaultparagraphstyle?language=objc +func (pc _ParagraphStyleClass) DefaultParagraphStyle() ParagraphStyle { + rv := objc.Call[ParagraphStyle](pc, objc.Sel("defaultParagraphStyle")) return rv } -// The paragraph’s header level for HTML generation. [Full Topic] +// The default paragraph style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsparagraphstyle/1535869-headerlevel?language=objc -func (p_ ParagraphStyle) HeaderLevel() int { - rv := objc.Call[int](p_, objc.Sel("headerLevel")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1532681-defaultparagraphstyle?language=objc +func ParagraphStyle_DefaultParagraphStyle() ParagraphStyle { + return ParagraphStyleClass.DefaultParagraphStyle() } -// The threshold for using tightening as an alternative to truncation. [Full Topic] +// The distance in points between the bottom of one line fragment and the top of the next. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsparagraphstyle/1529278-tighteningfactorfortruncation?language=objc -func (p_ ParagraphStyle) TighteningFactorForTruncation() float32 { - rv := objc.Call[float32](p_, objc.Sel("tighteningFactorForTruncation")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1524635-linespacing?language=objc +func (p_ ParagraphStyle) LineSpacing() float64 { + rv := objc.Call[float64](p_, objc.Sel("lineSpacing")) return rv } @@ -121,11 +120,19 @@ func (p_ ParagraphStyle) TextLists() []TextList { return rv } -// The trailing indentation of the paragraph. [Full Topic] +// A Boolean value that indicates whether the system tightens character spacing before truncating text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1525556-tailindent?language=objc -func (p_ ParagraphStyle) TailIndent() float64 { - rv := objc.Call[float64](p_, objc.Sel("tailIndent")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1528994-allowsdefaulttighteningfortrunca?language=objc +func (p_ ParagraphStyle) AllowsDefaultTighteningForTruncation() bool { + rv := objc.Call[bool](p_, objc.Sel("allowsDefaultTighteningForTruncation")) + return rv +} + +// A Boolean value that indicates whether the paragraph style uses the system hyphenation settings. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/3809913-usesdefaulthyphenation?language=objc +func (p_ ParagraphStyle) UsesDefaultHyphenation() bool { + rv := objc.Call[bool](p_, objc.Sel("usesDefaultHyphenation")) return rv } @@ -137,137 +144,130 @@ func (p_ ParagraphStyle) MinimumLineHeight() float64 { return rv } -// The distance between the paragraph’s top and the beginning of its text content. [Full Topic] +// The threshold for using tightening as an alternative to truncation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1533011-paragraphspacingbefore?language=objc -func (p_ ParagraphStyle) ParagraphSpacingBefore() float64 { - rv := objc.Call[float64](p_, objc.Sel("paragraphSpacingBefore")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsparagraphstyle/1529278-tighteningfactorfortruncation?language=objc +func (p_ ParagraphStyle) TighteningFactorForTruncation() float32 { + rv := objc.Call[float32](p_, objc.Sel("tighteningFactorForTruncation")) return rv } -// The paragraph’s threshold for hyphenation. [Full Topic] +// The text alignment of the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1529275-hyphenationfactor?language=objc -func (p_ ParagraphStyle) HyphenationFactor() float32 { - rv := objc.Call[float32](p_, objc.Sel("hyphenationFactor")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1532321-alignment?language=objc +func (p_ ParagraphStyle) Alignment() TextAlignment { + rv := objc.Call[TextAlignment](p_, objc.Sel("alignment")) return rv } -// The paragraph’s maximum line height. [Full Topic] +// The indentation of the first line of the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1533343-maximumlineheight?language=objc -func (p_ ParagraphStyle) MaximumLineHeight() float64 { - rv := objc.Call[float64](p_, objc.Sel("maximumLineHeight")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1527764-firstlineheadindent?language=objc +func (p_ ParagraphStyle) FirstLineHeadIndent() float64 { + rv := objc.Call[float64](p_, objc.Sel("firstLineHeadIndent")) return rv } -// Distance between the bottom of this paragraph and top of next. [Full Topic] +// The strategy for breaking lines while laying out paragraphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1530912-paragraphspacing?language=objc -func (p_ ParagraphStyle) ParagraphSpacing() float64 { - rv := objc.Call[float64](p_, objc.Sel("paragraphSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/3667463-linebreakstrategy?language=objc +func (p_ ParagraphStyle) LineBreakStrategy() LineBreakStrategy { + rv := objc.Call[LineBreakStrategy](p_, objc.Sel("lineBreakStrategy")) return rv } -// A Boolean value that indicates whether the paragraph style uses the system hyphenation settings. [Full Topic] +// The paragraph’s maximum line height. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/3809913-usesdefaulthyphenation?language=objc -func (p_ ParagraphStyle) UsesDefaultHyphenation() bool { - rv := objc.Call[bool](p_, objc.Sel("usesDefaultHyphenation")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1533343-maximumlineheight?language=objc +func (p_ ParagraphStyle) MaximumLineHeight() float64 { + rv := objc.Call[float64](p_, objc.Sel("maximumLineHeight")) return rv } -// The documentwide default tab interval. [Full Topic] +// The paragraph’s header level for HTML generation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1535614-defaulttabinterval?language=objc -func (p_ ParagraphStyle) DefaultTabInterval() float64 { - rv := objc.Call[float64](p_, objc.Sel("defaultTabInterval")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsparagraphstyle/1535869-headerlevel?language=objc +func (p_ ParagraphStyle) HeaderLevel() int { + rv := objc.Call[int](p_, objc.Sel("headerLevel")) return rv } -// A Boolean value that indicates whether the system tightens character spacing before truncating text. [Full Topic] +// The documentwide default tab interval. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1528994-allowsdefaulttighteningfortrunca?language=objc -func (p_ ParagraphStyle) AllowsDefaultTighteningForTruncation() bool { - rv := objc.Call[bool](p_, objc.Sel("allowsDefaultTighteningForTruncation")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1535614-defaulttabinterval?language=objc +func (p_ ParagraphStyle) DefaultTabInterval() float64 { + rv := objc.Call[float64](p_, objc.Sel("defaultTabInterval")) return rv } -// The indentation of the paragraph’s lines other than the first. [Full Topic] +// The text tab objects that represent the paragraph’s tab stops. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1530760-headindent?language=objc -func (p_ ParagraphStyle) HeadIndent() float64 { - rv := objc.Call[float64](p_, objc.Sel("headIndent")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1532841-tabstops?language=objc +func (p_ ParagraphStyle) TabStops() []TextTab { + rv := objc.Call[[]TextTab](p_, objc.Sel("tabStops")) return rv } -// The strategy for breaking lines while laying out paragraphs. [Full Topic] +// The text blocks that contain the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/3667463-linebreakstrategy?language=objc -func (p_ ParagraphStyle) LineBreakStrategy() LineBreakStrategy { - rv := objc.Call[LineBreakStrategy](p_, objc.Sel("lineBreakStrategy")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsparagraphstyle/1528053-textblocks?language=objc +func (p_ ParagraphStyle) TextBlocks() []TextBlock { + rv := objc.Call[[]TextBlock](p_, objc.Sel("textBlocks")) return rv } -// The text alignment of the paragraph. [Full Topic] +// The line height multiple. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1532321-alignment?language=objc -func (p_ ParagraphStyle) Alignment() TextAlignment { - rv := objc.Call[TextAlignment](p_, objc.Sel("alignment")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1528614-lineheightmultiple?language=objc +func (p_ ParagraphStyle) LineHeightMultiple() float64 { + rv := objc.Call[float64](p_, objc.Sel("lineHeightMultiple")) return rv } -// The distance in points between the bottom of one line fragment and the top of the next. [Full Topic] +// The base writing direction for the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1524635-linespacing?language=objc -func (p_ ParagraphStyle) LineSpacing() float64 { - rv := objc.Call[float64](p_, objc.Sel("lineSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1527354-basewritingdirection?language=objc +func (p_ ParagraphStyle) BaseWritingDirection() WritingDirection { + rv := objc.Call[WritingDirection](p_, objc.Sel("baseWritingDirection")) return rv } -// The line height multiple. [Full Topic] +// The paragraph’s threshold for hyphenation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1528614-lineheightmultiple?language=objc -func (p_ ParagraphStyle) LineHeightMultiple() float64 { - rv := objc.Call[float64](p_, objc.Sel("lineHeightMultiple")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1529275-hyphenationfactor?language=objc +func (p_ ParagraphStyle) HyphenationFactor() float32 { + rv := objc.Call[float32](p_, objc.Sel("hyphenationFactor")) return rv } -// The text tab objects that represent the paragraph’s tab stops. [Full Topic] +// The distance between the paragraph’s top and the beginning of its text content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1532841-tabstops?language=objc -func (p_ ParagraphStyle) TabStops() []TextTab { - rv := objc.Call[[]TextTab](p_, objc.Sel("tabStops")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1533011-paragraphspacingbefore?language=objc +func (p_ ParagraphStyle) ParagraphSpacingBefore() float64 { + rv := objc.Call[float64](p_, objc.Sel("paragraphSpacingBefore")) return rv } -// The base writing direction for the paragraph. [Full Topic] +// Distance between the bottom of this paragraph and top of next. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1527354-basewritingdirection?language=objc -func (p_ ParagraphStyle) BaseWritingDirection() WritingDirection { - rv := objc.Call[WritingDirection](p_, objc.Sel("baseWritingDirection")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1530912-paragraphspacing?language=objc +func (p_ ParagraphStyle) ParagraphSpacing() float64 { + rv := objc.Call[float64](p_, objc.Sel("paragraphSpacing")) return rv } -// The default paragraph style. [Full Topic] +// The trailing indentation of the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1532681-defaultparagraphstyle?language=objc -func (pc _ParagraphStyleClass) DefaultParagraphStyle() ParagraphStyle { - rv := objc.Call[ParagraphStyle](pc, objc.Sel("defaultParagraphStyle")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1525556-tailindent?language=objc +func (p_ ParagraphStyle) TailIndent() float64 { + rv := objc.Call[float64](p_, objc.Sel("tailIndent")) return rv } -// The default paragraph style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1532681-defaultparagraphstyle?language=objc -func ParagraphStyle_DefaultParagraphStyle() ParagraphStyle { - return ParagraphStyleClass.DefaultParagraphStyle() -} - -// The indentation of the first line of the paragraph. [Full Topic] +// The indentation of the paragraph’s lines other than the first. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1527764-firstlineheadindent?language=objc -func (p_ ParagraphStyle) FirstLineHeadIndent() float64 { - rv := objc.Call[float64](p_, objc.Sel("firstLineHeadIndent")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1530760-headindent?language=objc +func (p_ ParagraphStyle) HeadIndent() float64 { + rv := objc.Call[float64](p_, objc.Sel("headIndent")) return rv } diff --git a/macos/appkit/pasteboard.gen.go b/macos/appkit/pasteboard.gen.go index 9986210c..48b7aeb6 100644 --- a/macos/appkit/pasteboard.gen.go +++ b/macos/appkit/pasteboard.gen.go @@ -19,27 +19,27 @@ type _PasteboardClass struct { // An interface definition for the [Pasteboard] class. type IPasteboard interface { objc.IObject - AddTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int + StringForType(dataType PasteboardType) string ReadFileContentsTypeToFile(type_ PasteboardType, filename string) string - SetPropertyListForType(plist objc.IObject, dataType PasteboardType) bool - WriteObjects(objects []PPasteboardWriting) bool - ClearContents() int ReadObjectsForClassesOptions(classArray []objc.IClass, options map[PasteboardReadingOptionKey]objc.IObject) []objc.Object - StringForType(dataType PasteboardType) string IndexOfPasteboardItem(pasteboardItem IPasteboardItem) uint - DataForType(dataType PasteboardType) []byte - CanReadObjectForClassesOptions(classArray []objc.IClass, options map[PasteboardReadingOptionKey]objc.IObject) bool - DeclareTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int - PropertyListForType(dataType PasteboardType) objc.Object + AddTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int WriteFileContents(filename string) bool + ReadFileWrapper() foundation.FileWrapper + WriteObjects(objects []PPasteboardWriting) bool ReleaseGlobally() - CanReadItemWithDataConformingToTypes(types []string) bool WriteFileWrapper(wrapper foundation.IFileWrapper) bool + SetPropertyListForType(plist objc.IObject, dataType PasteboardType) bool + SetStringForType(string_ string, dataType PasteboardType) bool + CanReadObjectForClassesOptions(classArray []objc.IClass, options map[PasteboardReadingOptionKey]objc.IObject) bool + DataForType(dataType PasteboardType) []byte + ClearContents() int SetDataForType(data []byte, dataType PasteboardType) bool PrepareForNewContentsWithOptions(options PasteboardContentsOptions) int AvailableTypeFromArray(types []PasteboardType) PasteboardType - ReadFileWrapper() foundation.FileWrapper - SetStringForType(string_ string, dataType PasteboardType) bool + DeclareTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int + CanReadItemWithDataConformingToTypes(types []string) bool + PropertyListForType(dataType PasteboardType) objc.Object Name() PasteboardName Types() []PasteboardType ChangeCount() int @@ -79,51 +79,11 @@ func (p_ Pasteboard) Init() Pasteboard { return rv } -// Adds promises for the specified types to the first pasteboard item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533580-addtypes?language=objc -func (p_ Pasteboard) AddTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int { - rv := objc.Call[int](p_, objc.Sel("addTypes:owner:"), newTypes, newOwner) - return rv -} - -// Reads data representing a file’s contents from the receiver and writes it to the specified file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533575-readfilecontentstype?language=objc -func (p_ Pasteboard) ReadFileContentsTypeToFile(type_ PasteboardType, filename string) string { - rv := objc.Call[string](p_, objc.Sel("readFileContentsType:toFile:"), type_, filename) - return rv -} - -// Sets the given property list as the representation for the specified type for the first item on the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1530774-setpropertylist?language=objc -func (p_ Pasteboard) SetPropertyListForType(plist objc.IObject, dataType PasteboardType) bool { - rv := objc.Call[bool](p_, objc.Sel("setPropertyList:forType:"), plist, dataType) - return rv -} - -// Writes an array of objects to the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1525945-writeobjects?language=objc -func (p_ Pasteboard) WriteObjects(objects []PPasteboardWriting) bool { - rv := objc.Call[bool](p_, objc.Sel("writeObjects:"), objects) - return rv -} - -// Clears the existing contents of the pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533599-clearcontents?language=objc -func (p_ Pasteboard) ClearContents() int { - rv := objc.Call[int](p_, objc.Sel("clearContents")) - return rv -} - -// Reads from the receiver objects that best match the specified array of classes. [Full Topic] +// Returns a concatenation of the strings for the specified type from all the items in the receiver that contain the type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1524454-readobjectsforclasses?language=objc -func (p_ Pasteboard) ReadObjectsForClassesOptions(classArray []objc.IClass, options map[PasteboardReadingOptionKey]objc.IObject) []objc.Object { - rv := objc.Call[[]objc.Object](p_, objc.Sel("readObjectsForClasses:options:"), classArray, options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533566-stringfortype?language=objc +func (p_ Pasteboard) StringForType(dataType PasteboardType) string { + rv := objc.Call[string](p_, objc.Sel("stringForType:"), dataType) return rv } @@ -142,26 +102,19 @@ func Pasteboard_PasteboardWithName(name PasteboardName) Pasteboard { return PasteboardClass.PasteboardWithName(name) } -// Creates a new pasteboard object that supplies the specified pasteboard data in as many types as possible based on the available filter services. [Full Topic] +// Reads data representing a file’s contents from the receiver and writes it to the specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1530088-pasteboardbyfilteringtypesinpast?language=objc -func (pc _PasteboardClass) PasteboardByFilteringTypesInPasteboard(pboard IPasteboard) Pasteboard { - rv := objc.Call[Pasteboard](pc, objc.Sel("pasteboardByFilteringTypesInPasteboard:"), pboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533575-readfilecontentstype?language=objc +func (p_ Pasteboard) ReadFileContentsTypeToFile(type_ PasteboardType, filename string) string { + rv := objc.Call[string](p_, objc.Sel("readFileContentsType:toFile:"), type_, filename) return rv } -// Creates a new pasteboard object that supplies the specified pasteboard data in as many types as possible based on the available filter services. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1530088-pasteboardbyfilteringtypesinpast?language=objc -func Pasteboard_PasteboardByFilteringTypesInPasteboard(pboard IPasteboard) Pasteboard { - return PasteboardClass.PasteboardByFilteringTypesInPasteboard(pboard) -} - -// Returns a concatenation of the strings for the specified type from all the items in the receiver that contain the type. [Full Topic] +// Reads from the receiver objects that best match the specified array of classes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533566-stringfortype?language=objc -func (p_ Pasteboard) StringForType(dataType PasteboardType) string { - rv := objc.Call[string](p_, objc.Sel("stringForType:"), dataType) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1524454-readobjectsforclasses?language=objc +func (p_ Pasteboard) ReadObjectsForClassesOptions(classArray []objc.IClass, options map[PasteboardReadingOptionKey]objc.IObject) []objc.Object { + rv := objc.Call[[]objc.Object](p_, objc.Sel("readObjectsForClasses:options:"), classArray, options) return rv } @@ -173,11 +126,11 @@ func (p_ Pasteboard) IndexOfPasteboardItem(pasteboardItem IPasteboardItem) uint return rv } -// Returns the data for the specified type from the first item in the receiver that contains the type. [Full Topic] +// Adds promises for the specified types to the first pasteboard item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1531810-datafortype?language=objc -func (p_ Pasteboard) DataForType(dataType PasteboardType) []byte { - rv := objc.Call[[]byte](p_, objc.Sel("dataForType:"), dataType) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533580-addtypes?language=objc +func (p_ Pasteboard) AddTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int { + rv := objc.Call[int](p_, objc.Sel("addTypes:owner:"), newTypes, newOwner) return rv } @@ -196,35 +149,27 @@ func Pasteboard_PasteboardByFilteringDataOfType(data []byte, type_ PasteboardTyp return PasteboardClass.PasteboardByFilteringDataOfType(data, type_) } -// Returns a Boolean value that indicates whether the receiver contains any items that can be represented as an instance of any class in a given array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533360-canreadobjectforclasses?language=objc -func (p_ Pasteboard) CanReadObjectForClassesOptions(classArray []objc.IClass, options map[PasteboardReadingOptionKey]objc.IObject) bool { - rv := objc.Call[bool](p_, objc.Sel("canReadObjectForClasses:options:"), classArray, options) - return rv -} - -// Prepares the receiver for a change in its contents by declaring the new types of data it will contain and a new owner. [Full Topic] +// Writes the contents of the specified file to the pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533561-declaretypes?language=objc -func (p_ Pasteboard) DeclareTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int { - rv := objc.Call[int](p_, objc.Sel("declareTypes:owner:"), newTypes, newOwner) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1531224-writefilecontents?language=objc +func (p_ Pasteboard) WriteFileContents(filename string) bool { + rv := objc.Call[bool](p_, objc.Sel("writeFileContents:"), filename) return rv } -// Returns the property list for the specified type from the first item in the receiver that contains the type. [Full Topic] +// Reads data representing a file’s contents from the receiver and returns it as a file wrapper. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1528588-propertylistfortype?language=objc -func (p_ Pasteboard) PropertyListForType(dataType PasteboardType) objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("propertyListForType:"), dataType) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1524779-readfilewrapper?language=objc +func (p_ Pasteboard) ReadFileWrapper() foundation.FileWrapper { + rv := objc.Call[foundation.FileWrapper](p_, objc.Sel("readFileWrapper")) return rv } -// Writes the contents of the specified file to the pasteboard. [Full Topic] +// Writes an array of objects to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1531224-writefilecontents?language=objc -func (p_ Pasteboard) WriteFileContents(filename string) bool { - rv := objc.Call[bool](p_, objc.Sel("writeFileContents:"), filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1525945-writeobjects?language=objc +func (p_ Pasteboard) WriteObjects(objects []PPasteboardWriting) bool { + rv := objc.Call[bool](p_, objc.Sel("writeObjects:"), objects) return rv } @@ -235,14 +180,6 @@ func (p_ Pasteboard) ReleaseGlobally() { objc.Call[objc.Void](p_, objc.Sel("releaseGlobally")) } -// Returns a Boolean value that indicates whether the receiver contains any items that conform to the specified UTIs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533576-canreaditemwithdataconformingtot?language=objc -func (p_ Pasteboard) CanReadItemWithDataConformingToTypes(types []string) bool { - rv := objc.Call[bool](p_, objc.Sel("canReadItemWithDataConformingToTypes:"), types) - return rv -} - // Writes the serialized contents of the specified file wrapper to the pasteboard. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1527279-writefilewrapper?language=objc @@ -251,19 +188,19 @@ func (p_ Pasteboard) WriteFileWrapper(wrapper foundation.IFileWrapper) bool { return rv } -// Sets the data as the representation for the specified type for the first item on the receiver. [Full Topic] +// Sets the given property list as the representation for the specified type for the first item on the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1531214-setdata?language=objc -func (p_ Pasteboard) SetDataForType(data []byte, dataType PasteboardType) bool { - rv := objc.Call[bool](p_, objc.Sel("setData:forType:"), data, dataType) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1530774-setpropertylist?language=objc +func (p_ Pasteboard) SetPropertyListForType(plist objc.IObject, dataType PasteboardType) bool { + rv := objc.Call[bool](p_, objc.Sel("setPropertyList:forType:"), plist, dataType) return rv } -// Prepares the pasteboard to receive new contents, removing the existing pasteboard contents. [Full Topic] +// Sets the given string as the representation for the specified type for the first item on the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/2344960-preparefornewcontentswithoptions?language=objc -func (p_ Pasteboard) PrepareForNewContentsWithOptions(options PasteboardContentsOptions) int { - rv := objc.Call[int](p_, objc.Sel("prepareForNewContentsWithOptions:"), options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1528225-setstring?language=objc +func (p_ Pasteboard) SetStringForType(string_ string, dataType PasteboardType) bool { + rv := objc.Call[bool](p_, objc.Sel("setString:forType:"), string_, dataType) return rv } @@ -282,11 +219,42 @@ func Pasteboard_PasteboardWithUniqueName() Pasteboard { return PasteboardClass.PasteboardWithUniqueName() } -// Scans the specified types for a type that the receiver supports. [Full Topic] +// Creates a new pasteboard object that supplies the specified file in as many types as possible based on the available filter services. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1526078-availabletypefromarray?language=objc -func (p_ Pasteboard) AvailableTypeFromArray(types []PasteboardType) PasteboardType { - rv := objc.Call[PasteboardType](p_, objc.Sel("availableTypeFromArray:"), types) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1532744-pasteboardbyfilteringfile?language=objc +func (pc _PasteboardClass) PasteboardByFilteringFile(filename string) Pasteboard { + rv := objc.Call[Pasteboard](pc, objc.Sel("pasteboardByFilteringFile:"), filename) + return rv +} + +// Creates a new pasteboard object that supplies the specified file in as many types as possible based on the available filter services. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1532744-pasteboardbyfilteringfile?language=objc +func Pasteboard_PasteboardByFilteringFile(filename string) Pasteboard { + return PasteboardClass.PasteboardByFilteringFile(filename) +} + +// Returns a Boolean value that indicates whether the receiver contains any items that can be represented as an instance of any class in a given array. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533360-canreadobjectforclasses?language=objc +func (p_ Pasteboard) CanReadObjectForClassesOptions(classArray []objc.IClass, options map[PasteboardReadingOptionKey]objc.IObject) bool { + rv := objc.Call[bool](p_, objc.Sel("canReadObjectForClasses:options:"), classArray, options) + return rv +} + +// Returns the data for the specified type from the first item in the receiver that contains the type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1531810-datafortype?language=objc +func (p_ Pasteboard) DataForType(dataType PasteboardType) []byte { + rv := objc.Call[[]byte](p_, objc.Sel("dataForType:"), dataType) + return rv +} + +// Clears the existing contents of the pasteboard. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533599-clearcontents?language=objc +func (p_ Pasteboard) ClearContents() int { + rv := objc.Call[int](p_, objc.Sel("clearContents")) return rv } @@ -305,34 +273,66 @@ func Pasteboard_TypesFilterableTo(type_ PasteboardType) []PasteboardType { return PasteboardClass.TypesFilterableTo(type_) } -// Reads data representing a file’s contents from the receiver and returns it as a file wrapper. [Full Topic] +// Sets the data as the representation for the specified type for the first item on the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1524779-readfilewrapper?language=objc -func (p_ Pasteboard) ReadFileWrapper() foundation.FileWrapper { - rv := objc.Call[foundation.FileWrapper](p_, objc.Sel("readFileWrapper")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1531214-setdata?language=objc +func (p_ Pasteboard) SetDataForType(data []byte, dataType PasteboardType) bool { + rv := objc.Call[bool](p_, objc.Sel("setData:forType:"), data, dataType) return rv } -// Creates a new pasteboard object that supplies the specified file in as many types as possible based on the available filter services. [Full Topic] +// Prepares the pasteboard to receive new contents, removing the existing pasteboard contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1532744-pasteboardbyfilteringfile?language=objc -func (pc _PasteboardClass) PasteboardByFilteringFile(filename string) Pasteboard { - rv := objc.Call[Pasteboard](pc, objc.Sel("pasteboardByFilteringFile:"), filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/2344960-preparefornewcontentswithoptions?language=objc +func (p_ Pasteboard) PrepareForNewContentsWithOptions(options PasteboardContentsOptions) int { + rv := objc.Call[int](p_, objc.Sel("prepareForNewContentsWithOptions:"), options) return rv } -// Creates a new pasteboard object that supplies the specified file in as many types as possible based on the available filter services. [Full Topic] +// Creates a new pasteboard object that supplies the specified pasteboard data in as many types as possible based on the available filter services. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1532744-pasteboardbyfilteringfile?language=objc -func Pasteboard_PasteboardByFilteringFile(filename string) Pasteboard { - return PasteboardClass.PasteboardByFilteringFile(filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1530088-pasteboardbyfilteringtypesinpast?language=objc +func (pc _PasteboardClass) PasteboardByFilteringTypesInPasteboard(pboard IPasteboard) Pasteboard { + rv := objc.Call[Pasteboard](pc, objc.Sel("pasteboardByFilteringTypesInPasteboard:"), pboard) + return rv } -// Sets the given string as the representation for the specified type for the first item on the receiver. [Full Topic] +// Creates a new pasteboard object that supplies the specified pasteboard data in as many types as possible based on the available filter services. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1528225-setstring?language=objc -func (p_ Pasteboard) SetStringForType(string_ string, dataType PasteboardType) bool { - rv := objc.Call[bool](p_, objc.Sel("setString:forType:"), string_, dataType) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1530088-pasteboardbyfilteringtypesinpast?language=objc +func Pasteboard_PasteboardByFilteringTypesInPasteboard(pboard IPasteboard) Pasteboard { + return PasteboardClass.PasteboardByFilteringTypesInPasteboard(pboard) +} + +// Scans the specified types for a type that the receiver supports. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1526078-availabletypefromarray?language=objc +func (p_ Pasteboard) AvailableTypeFromArray(types []PasteboardType) PasteboardType { + rv := objc.Call[PasteboardType](p_, objc.Sel("availableTypeFromArray:"), types) + return rv +} + +// Prepares the receiver for a change in its contents by declaring the new types of data it will contain and a new owner. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533561-declaretypes?language=objc +func (p_ Pasteboard) DeclareTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int { + rv := objc.Call[int](p_, objc.Sel("declareTypes:owner:"), newTypes, newOwner) + return rv +} + +// Returns a Boolean value that indicates whether the receiver contains any items that conform to the specified UTIs. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1533576-canreaditemwithdataconformingtot?language=objc +func (p_ Pasteboard) CanReadItemWithDataConformingToTypes(types []string) bool { + rv := objc.Call[bool](p_, objc.Sel("canReadItemWithDataConformingToTypes:"), types) + return rv +} + +// Returns the property list for the specified type from the first item in the receiver that contains the type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1528588-propertylistfortype?language=objc +func (p_ Pasteboard) PropertyListForType(dataType PasteboardType) objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("propertyListForType:"), dataType) return rv } diff --git a/macos/appkit/pasteboard_item.gen.go b/macos/appkit/pasteboard_item.gen.go index 67b6089f..389a11cc 100644 --- a/macos/appkit/pasteboard_item.gen.go +++ b/macos/appkit/pasteboard_item.gen.go @@ -18,15 +18,15 @@ type _PasteboardItemClass struct { // An interface definition for the [PasteboardItem] class. type IPasteboardItem interface { objc.IObject - SetDataProviderForTypes(dataProvider PPasteboardItemDataProvider, types []PasteboardType) bool - SetDataProviderObjectForTypes(dataProviderObject objc.IObject, types []PasteboardType) bool - SetDataForType(data []byte, type_ PasteboardType) bool + StringForType(type_ PasteboardType) string + SetPropertyListForType(propertyList objc.IObject, type_ PasteboardType) bool SetStringForType(string_ string, type_ PasteboardType) bool DataForType(type_ PasteboardType) []byte - PropertyListForType(type_ PasteboardType) objc.Object - SetPropertyListForType(propertyList objc.IObject, type_ PasteboardType) bool + SetDataForType(data []byte, type_ PasteboardType) bool + SetDataProviderForTypes(dataProvider PPasteboardItemDataProvider, types []PasteboardType) bool + SetDataProviderObjectForTypes(dataProviderObject objc.IObject, types []PasteboardType) bool AvailableTypeFromArray(types []PasteboardType) PasteboardType - StringForType(type_ PasteboardType) string + PropertyListForType(type_ PasteboardType) objc.Object Types() []PasteboardType } @@ -63,28 +63,19 @@ func (p_ PasteboardItem) Init() PasteboardItem { return rv } -// Sets the data provider for the specified types. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508502-setdataprovider?language=objc -func (p_ PasteboardItem) SetDataProviderForTypes(dataProvider PPasteboardItemDataProvider, types []PasteboardType) bool { - po0 := objc.WrapAsProtocol("NSPasteboardItemDataProvider", dataProvider) - rv := objc.Call[bool](p_, objc.Sel("setDataProvider:forTypes:"), po0, types) - return rv -} - -// Sets the data provider for the specified types. [Full Topic] +// Returns the value for the specified type as a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508502-setdataprovider?language=objc -func (p_ PasteboardItem) SetDataProviderObjectForTypes(dataProviderObject objc.IObject, types []PasteboardType) bool { - rv := objc.Call[bool](p_, objc.Sel("setDataProvider:forTypes:"), dataProviderObject, types) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508490-stringfortype?language=objc +func (p_ PasteboardItem) StringForType(type_ PasteboardType) string { + rv := objc.Call[string](p_, objc.Sel("stringForType:"), type_) return rv } -// Sets the value for a specified type as a data object. [Full Topic] +// Sets the value for a specified type as a property list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508501-setdata?language=objc -func (p_ PasteboardItem) SetDataForType(data []byte, type_ PasteboardType) bool { - rv := objc.Call[bool](p_, objc.Sel("setData:forType:"), data, type_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508494-setpropertylist?language=objc +func (p_ PasteboardItem) SetPropertyListForType(propertyList objc.IObject, type_ PasteboardType) bool { + rv := objc.Call[bool](p_, objc.Sel("setPropertyList:forType:"), propertyList, type_) return rv } @@ -104,19 +95,28 @@ func (p_ PasteboardItem) DataForType(type_ PasteboardType) []byte { return rv } -// Returns the value for the specified type as a property list. [Full Topic] +// Sets the value for a specified type as a data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508489-propertylistfortype?language=objc -func (p_ PasteboardItem) PropertyListForType(type_ PasteboardType) objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("propertyListForType:"), type_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508501-setdata?language=objc +func (p_ PasteboardItem) SetDataForType(data []byte, type_ PasteboardType) bool { + rv := objc.Call[bool](p_, objc.Sel("setData:forType:"), data, type_) return rv } -// Sets the value for a specified type as a property list. [Full Topic] +// Sets the data provider for the specified types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508494-setpropertylist?language=objc -func (p_ PasteboardItem) SetPropertyListForType(propertyList objc.IObject, type_ PasteboardType) bool { - rv := objc.Call[bool](p_, objc.Sel("setPropertyList:forType:"), propertyList, type_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508502-setdataprovider?language=objc +func (p_ PasteboardItem) SetDataProviderForTypes(dataProvider PPasteboardItemDataProvider, types []PasteboardType) bool { + po0 := objc.WrapAsProtocol("NSPasteboardItemDataProvider", dataProvider) + rv := objc.Call[bool](p_, objc.Sel("setDataProvider:forTypes:"), po0, types) + return rv +} + +// Sets the data provider for the specified types. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508502-setdataprovider?language=objc +func (p_ PasteboardItem) SetDataProviderObjectForTypes(dataProviderObject objc.IObject, types []PasteboardType) bool { + rv := objc.Call[bool](p_, objc.Sel("setDataProvider:forTypes:"), dataProviderObject, types) return rv } @@ -128,11 +128,11 @@ func (p_ PasteboardItem) AvailableTypeFromArray(types []PasteboardType) Pasteboa return rv } -// Returns the value for the specified type as a string. [Full Topic] +// Returns the value for the specified type as a property list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508490-stringfortype?language=objc -func (p_ PasteboardItem) StringForType(type_ PasteboardType) string { - rv := objc.Call[string](p_, objc.Sel("stringForType:"), type_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditem/1508489-propertylistfortype?language=objc +func (p_ PasteboardItem) PropertyListForType(type_ PasteboardType) objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("propertyListForType:"), type_) return rv } diff --git a/macos/appkit/pasteboard_item_data_provider_protocol.gen.go b/macos/appkit/pasteboard_item_data_provider_protocol.gen.go index befe20c5..cb222908 100644 --- a/macos/appkit/pasteboard_item_data_provider_protocol.gen.go +++ b/macos/appkit/pasteboard_item_data_provider_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditemdataprovider?language=objc type PPasteboardItemDataProvider interface { - // optional - PasteboardItemProvideDataForType(pasteboard Pasteboard, item PasteboardItem, type_ PasteboardType) - HasPasteboardItemProvideDataForType() bool - // optional PasteboardFinishedWithDataProvider(pasteboard Pasteboard) HasPasteboardFinishedWithDataProvider() bool + + // optional + PasteboardItemProvideDataForType(pasteboard Pasteboard, item PasteboardItem, type_ PasteboardType) + HasPasteboardItemProvideDataForType() bool } // ensure impl type implements protocol interface @@ -27,17 +27,6 @@ type PasteboardItemDataProviderObject struct { objc.Object } -func (p_ PasteboardItemDataProviderObject) HasPasteboardItemProvideDataForType() bool { - return p_.RespondsToSelector(objc.Sel("pasteboard:item:provideDataForType:")) -} - -// Asks the receiver to provide data for a specified type to a given pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditemdataprovider/1508503-pasteboard?language=objc -func (p_ PasteboardItemDataProviderObject) PasteboardItemProvideDataForType(pasteboard Pasteboard, item PasteboardItem, type_ PasteboardType) { - objc.Call[objc.Void](p_, objc.Sel("pasteboard:item:provideDataForType:"), pasteboard, item, type_) -} - func (p_ PasteboardItemDataProviderObject) HasPasteboardFinishedWithDataProvider() bool { return p_.RespondsToSelector(objc.Sel("pasteboardFinishedWithDataProvider:")) } @@ -48,3 +37,14 @@ func (p_ PasteboardItemDataProviderObject) HasPasteboardFinishedWithDataProvider func (p_ PasteboardItemDataProviderObject) PasteboardFinishedWithDataProvider(pasteboard Pasteboard) { objc.Call[objc.Void](p_, objc.Sel("pasteboardFinishedWithDataProvider:"), pasteboard) } + +func (p_ PasteboardItemDataProviderObject) HasPasteboardItemProvideDataForType() bool { + return p_.RespondsToSelector(objc.Sel("pasteboard:item:provideDataForType:")) +} + +// Asks the receiver to provide data for a specified type to a given pasteboard. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditemdataprovider/1508503-pasteboard?language=objc +func (p_ PasteboardItemDataProviderObject) PasteboardItemProvideDataForType(pasteboard Pasteboard, item PasteboardItem, type_ PasteboardType) { + objc.Call[objc.Void](p_, objc.Sel("pasteboard:item:provideDataForType:"), pasteboard, item, type_) +} diff --git a/macos/appkit/pasteboard_type_owner_protocol.gen.go b/macos/appkit/pasteboard_type_owner_protocol.gen.go index 4cd436c1..8f9a99c9 100644 --- a/macos/appkit/pasteboard_type_owner_protocol.gen.go +++ b/macos/appkit/pasteboard_type_owner_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardtypeowner?language=objc type PPasteboardTypeOwner interface { - // optional - PasteboardProvideDataForType(sender Pasteboard, type_ PasteboardType) - HasPasteboardProvideDataForType() bool - // optional PasteboardChangedOwner(sender Pasteboard) HasPasteboardChangedOwner() bool + + // optional + PasteboardProvideDataForType(sender Pasteboard, type_ PasteboardType) + HasPasteboardProvideDataForType() bool } // ensure impl type implements protocol interface @@ -27,17 +27,6 @@ type PasteboardTypeOwnerObject struct { objc.Object } -func (p_ PasteboardTypeOwnerObject) HasPasteboardProvideDataForType() bool { - return p_.RespondsToSelector(objc.Sel("pasteboard:provideDataForType:")) -} - -// Requests that the object provide data for the data type to the pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardtypeowner/3005193-pasteboard?language=objc -func (p_ PasteboardTypeOwnerObject) PasteboardProvideDataForType(sender Pasteboard, type_ PasteboardType) { - objc.Call[objc.Void](p_, objc.Sel("pasteboard:provideDataForType:"), sender, type_) -} - func (p_ PasteboardTypeOwnerObject) HasPasteboardChangedOwner() bool { return p_.RespondsToSelector(objc.Sel("pasteboardChangedOwner:")) } @@ -48,3 +37,14 @@ func (p_ PasteboardTypeOwnerObject) HasPasteboardChangedOwner() bool { func (p_ PasteboardTypeOwnerObject) PasteboardChangedOwner(sender Pasteboard) { objc.Call[objc.Void](p_, objc.Sel("pasteboardChangedOwner:"), sender) } + +func (p_ PasteboardTypeOwnerObject) HasPasteboardProvideDataForType() bool { + return p_.RespondsToSelector(objc.Sel("pasteboard:provideDataForType:")) +} + +// Requests that the object provide data for the data type to the pasteboard. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardtypeowner/3005193-pasteboard?language=objc +func (p_ PasteboardTypeOwnerObject) PasteboardProvideDataForType(sender Pasteboard, type_ PasteboardType) { + objc.Call[objc.Void](p_, objc.Sel("pasteboard:provideDataForType:"), sender, type_) +} diff --git a/macos/appkit/path_cell.gen.go b/macos/appkit/path_cell.gen.go index 61bfffbb..472137d2 100644 --- a/macos/appkit/path_cell.gen.go +++ b/macos/appkit/path_cell.gen.go @@ -19,30 +19,30 @@ type _PathCellClass struct { // An interface definition for the [PathCell] class. type IPathCell interface { IActionCell - RectOfPathComponentCellWithFrameInView(cell IPathComponentCell, frame foundation.Rect, view IView) foundation.Rect MouseEnteredWithFrameInView(event IEvent, frame foundation.Rect, view IView) PathComponentCellAtPointWithFrameInView(point foundation.Point, frame foundation.Rect, view IView) PathComponentCell + RectOfPathComponentCellWithFrameInView(cell IPathComponentCell, frame foundation.Rect, view IView) foundation.Rect MouseExitedWithFrameInView(event IEvent, frame foundation.Rect, view IView) + DoubleAction() objc.Selector + SetDoubleAction(value objc.Selector) + Delegate() PathCellDelegateObject + SetDelegate(value PPathCellDelegate) + SetDelegateObject(valueObject objc.IObject) + PlaceholderAttributedString() foundation.AttributedString + SetPlaceholderAttributedString(value foundation.IAttributedString) + BackgroundColor() Color + SetBackgroundColor(value IColor) PathComponentCells() []PathComponentCell SetPathComponentCells(value []IPathComponentCell) - ClickedPathComponentCell() PathComponentCell + PathStyle() PathStyle + SetPathStyle(value PathStyle) AllowedTypes() []string SetAllowedTypes(value []string) - PlaceholderAttributedString() foundation.AttributedString - SetPlaceholderAttributedString(value foundation.IAttributedString) - PlaceholderString() string - SetPlaceholderString(value string) URL() foundation.URL SetURL(value foundation.IURL) - Delegate() PathCellDelegateObject - SetDelegate(value PPathCellDelegate) - SetDelegateObject(valueObject objc.IObject) - PathStyle() PathStyle - SetPathStyle(value PathStyle) - BackgroundColor() Color - SetBackgroundColor(value IColor) - DoubleAction() objc.Selector - SetDoubleAction(value objc.Selector) + PlaceholderString() string + SetPlaceholderString(value string) + ClickedPathComponentCell() PathComponentCell } // The user interface of a path control object. [Full Topic] @@ -106,14 +106,6 @@ func NewPathCellTextCell(string_ string) PathCell { return instance } -// Returns the current rectangle being displayed for a given path component cell, with respect to a given frame in a given view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1534143-rectofpathcomponentcell?language=objc -func (p_ PathCell) RectOfPathComponentCellWithFrameInView(cell IPathComponentCell, frame foundation.Rect, view IView) foundation.Rect { - rv := objc.Call[foundation.Rect](p_, objc.Sel("rectOfPathComponentCell:withFrame:inView:"), cell, frame, view) - return rv -} - // Displays the cell component over which the mouse is hovering. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1526407-mouseentered?language=objc @@ -129,6 +121,14 @@ func (p_ PathCell) PathComponentCellAtPointWithFrameInView(point foundation.Poin return rv } +// Returns the current rectangle being displayed for a given path component cell, with respect to a given frame in a given view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1534143-rectofpathcomponentcell?language=objc +func (p_ PathCell) RectOfPathComponentCellWithFrameInView(cell IPathComponentCell, frame foundation.Rect, view IView) foundation.Rect { + rv := objc.Call[foundation.Rect](p_, objc.Sel("rectOfPathComponentCell:withFrame:inView:"), cell, frame, view) + return rv +} + // Hides the cell component over which the mouse is hovering. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1525878-mouseexited?language=objc @@ -136,42 +136,43 @@ func (p_ PathCell) MouseExitedWithFrameInView(event IEvent, frame foundation.Rec objc.Call[objc.Void](p_, objc.Sel("mouseExited:withFrame:inView:"), event, frame, view) } -// Sets the array of NSPathComponentCell objects currently being displayed. [Full Topic] +// Sets the receiver’s double-click action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1529433-pathcomponentcells?language=objc -func (p_ PathCell) PathComponentCells() []PathComponentCell { - rv := objc.Call[[]PathComponentCell](p_, objc.Sel("pathComponentCells")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532554-doubleaction?language=objc +func (p_ PathCell) DoubleAction() objc.Selector { + rv := objc.Call[objc.Selector](p_, objc.Sel("doubleAction")) return rv } -// Sets the array of NSPathComponentCell objects currently being displayed. [Full Topic] +// Sets the receiver’s double-click action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1529433-pathcomponentcells?language=objc -func (p_ PathCell) SetPathComponentCells(value []IPathComponentCell) { - objc.Call[objc.Void](p_, objc.Sel("setPathComponentCells:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532554-doubleaction?language=objc +func (p_ PathCell) SetDoubleAction(value objc.Selector) { + objc.Call[objc.Void](p_, objc.Sel("setDoubleAction:"), value) } -// Sets the value of the path displayed by the receiver. [Full Topic] +// Sets the receiver’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1524894-clickedpathcomponentcell?language=objc -func (p_ PathCell) ClickedPathComponentCell() PathComponentCell { - rv := objc.Call[PathComponentCell](p_, objc.Sel("clickedPathComponentCell")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532834-delegate?language=objc +func (p_ PathCell) Delegate() PathCellDelegateObject { + rv := objc.Call[PathCellDelegateObject](p_, objc.Sel("delegate")) return rv } -// Sets the component types allowed in the path when the cell is editable. [Full Topic] +// Sets the receiver’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1524305-allowedtypes?language=objc -func (p_ PathCell) AllowedTypes() []string { - rv := objc.Call[[]string](p_, objc.Sel("allowedTypes")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532834-delegate?language=objc +func (p_ PathCell) SetDelegate(value PPathCellDelegate) { + po0 := objc.WrapAsProtocol("NSPathCellDelegate", value) + objc.SetAssociatedObject(p_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), po0) } -// Sets the component types allowed in the path when the cell is editable. [Full Topic] +// Sets the receiver’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1524305-allowedtypes?language=objc -func (p_ PathCell) SetAllowedTypes(value []string) { - objc.Call[objc.Void](p_, objc.Sel("setAllowedTypes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532834-delegate?language=objc +func (p_ PathCell) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), valueObject) } // Sets the value of the placeholder attributed string. [Full Topic] @@ -189,116 +190,115 @@ func (p_ PathCell) SetPlaceholderAttributedString(value foundation.IAttributedSt objc.Call[objc.Void](p_, objc.Sel("setPlaceholderAttributedString:"), value) } -// Returns the placeholder string. [Full Topic] +// Returns the current background color of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1531136-placeholderstring?language=objc -func (p_ PathCell) PlaceholderString() string { - rv := objc.Call[string](p_, objc.Sel("placeholderString")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1527481-backgroundcolor?language=objc +func (p_ PathCell) BackgroundColor() Color { + rv := objc.Call[Color](p_, objc.Sel("backgroundColor")) return rv } -// Returns the placeholder string. [Full Topic] +// Returns the current background color of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1531136-placeholderstring?language=objc -func (p_ PathCell) SetPlaceholderString(value string) { - objc.Call[objc.Void](p_, objc.Sel("setPlaceholderString:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1527481-backgroundcolor?language=objc +func (p_ PathCell) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](p_, objc.Sel("setBackgroundColor:"), value) } -// Returns the class used to create pathComponentCell objects when automatically filling up the control. [Full Topic] +// Sets the array of NSPathComponentCell objects currently being displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1535369-pathcomponentcellclass?language=objc -func (pc _PathCellClass) PathComponentCellClass() objc.Class { - rv := objc.Call[objc.Class](pc, objc.Sel("pathComponentCellClass")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1529433-pathcomponentcells?language=objc +func (p_ PathCell) PathComponentCells() []PathComponentCell { + rv := objc.Call[[]PathComponentCell](p_, objc.Sel("pathComponentCells")) return rv } -// Returns the class used to create pathComponentCell objects when automatically filling up the control. [Full Topic] +// Sets the array of NSPathComponentCell objects currently being displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1535369-pathcomponentcellclass?language=objc -func PathCell_PathComponentCellClass() objc.Class { - return PathCellClass.PathComponentCellClass() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1529433-pathcomponentcells?language=objc +func (p_ PathCell) SetPathComponentCells(value []IPathComponentCell) { + objc.Call[objc.Void](p_, objc.Sel("setPathComponentCells:"), value) } -// Returns the path displayed by the receiver. [Full Topic] +// Sets the receiver’s path style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1525034-url?language=objc -func (p_ PathCell) URL() foundation.URL { - rv := objc.Call[foundation.URL](p_, objc.Sel("URL")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1524249-pathstyle?language=objc +func (p_ PathCell) PathStyle() PathStyle { + rv := objc.Call[PathStyle](p_, objc.Sel("pathStyle")) return rv } -// Returns the path displayed by the receiver. [Full Topic] +// Sets the receiver’s path style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1525034-url?language=objc -func (p_ PathCell) SetURL(value foundation.IURL) { - objc.Call[objc.Void](p_, objc.Sel("setURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1524249-pathstyle?language=objc +func (p_ PathCell) SetPathStyle(value PathStyle) { + objc.Call[objc.Void](p_, objc.Sel("setPathStyle:"), value) } -// Sets the receiver’s delegate. [Full Topic] +// Sets the component types allowed in the path when the cell is editable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532834-delegate?language=objc -func (p_ PathCell) Delegate() PathCellDelegateObject { - rv := objc.Call[PathCellDelegateObject](p_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1524305-allowedtypes?language=objc +func (p_ PathCell) AllowedTypes() []string { + rv := objc.Call[[]string](p_, objc.Sel("allowedTypes")) return rv } -// Sets the receiver’s delegate. [Full Topic] +// Sets the component types allowed in the path when the cell is editable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532834-delegate?language=objc -func (p_ PathCell) SetDelegate(value PPathCellDelegate) { - po0 := objc.WrapAsProtocol("NSPathCellDelegate", value) - objc.SetAssociatedObject(p_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1524305-allowedtypes?language=objc +func (p_ PathCell) SetAllowedTypes(value []string) { + objc.Call[objc.Void](p_, objc.Sel("setAllowedTypes:"), value) } -// Sets the receiver’s delegate. [Full Topic] +// Returns the path displayed by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532834-delegate?language=objc -func (p_ PathCell) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1525034-url?language=objc +func (p_ PathCell) URL() foundation.URL { + rv := objc.Call[foundation.URL](p_, objc.Sel("URL")) + return rv } -// Sets the receiver’s path style. [Full Topic] +// Returns the path displayed by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1524249-pathstyle?language=objc -func (p_ PathCell) PathStyle() PathStyle { - rv := objc.Call[PathStyle](p_, objc.Sel("pathStyle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1525034-url?language=objc +func (p_ PathCell) SetURL(value foundation.IURL) { + objc.Call[objc.Void](p_, objc.Sel("setURL:"), value) } -// Sets the receiver’s path style. [Full Topic] +// Returns the placeholder string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1524249-pathstyle?language=objc -func (p_ PathCell) SetPathStyle(value PathStyle) { - objc.Call[objc.Void](p_, objc.Sel("setPathStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1531136-placeholderstring?language=objc +func (p_ PathCell) PlaceholderString() string { + rv := objc.Call[string](p_, objc.Sel("placeholderString")) + return rv } -// Returns the current background color of the receiver. [Full Topic] +// Returns the placeholder string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1527481-backgroundcolor?language=objc -func (p_ PathCell) BackgroundColor() Color { - rv := objc.Call[Color](p_, objc.Sel("backgroundColor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1531136-placeholderstring?language=objc +func (p_ PathCell) SetPlaceholderString(value string) { + objc.Call[objc.Void](p_, objc.Sel("setPlaceholderString:"), value) } -// Returns the current background color of the receiver. [Full Topic] +// Sets the value of the path displayed by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1527481-backgroundcolor?language=objc -func (p_ PathCell) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](p_, objc.Sel("setBackgroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1524894-clickedpathcomponentcell?language=objc +func (p_ PathCell) ClickedPathComponentCell() PathComponentCell { + rv := objc.Call[PathComponentCell](p_, objc.Sel("clickedPathComponentCell")) + return rv } -// Sets the receiver’s double-click action. [Full Topic] +// Returns the class used to create pathComponentCell objects when automatically filling up the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532554-doubleaction?language=objc -func (p_ PathCell) DoubleAction() objc.Selector { - rv := objc.Call[objc.Selector](p_, objc.Sel("doubleAction")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1535369-pathcomponentcellclass?language=objc +func (pc _PathCellClass) PathComponentCellClass() objc.Class { + rv := objc.Call[objc.Class](pc, objc.Sel("pathComponentCellClass")) return rv } -// Sets the receiver’s double-click action. [Full Topic] +// Returns the class used to create pathComponentCell objects when automatically filling up the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532554-doubleaction?language=objc -func (p_ PathCell) SetDoubleAction(value objc.Selector) { - objc.Call[objc.Void](p_, objc.Sel("setDoubleAction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1535369-pathcomponentcellclass?language=objc +func PathCell_PathComponentCellClass() objc.Class { + return PathCellClass.PathComponentCellClass() } diff --git a/macos/appkit/path_cell_delegate.gen.go b/macos/appkit/path_cell_delegate.gen.go index fa1d9898..3b622374 100644 --- a/macos/appkit/path_cell_delegate.gen.go +++ b/macos/appkit/path_cell_delegate.gen.go @@ -6,14 +6,10 @@ import ( "github.com/progrium/darwinkit/objc" ) -// A set of methods that enable the delegate of a path cell object to customize the Open panel or pop-up menu of a path whose style is set to NSPathStylePopUp. [Full Topic] +// A set of methods that enable the delegate of a path cell object to customize the Open panel or pop-up menu of a path whose style is set to [appkit/nspathstyle/nspathstylepopup]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcelldelegate?language=objc type PPathCellDelegate interface { - // optional - PathCellWillDisplayOpenPanel(pathCell PathCell, openPanel OpenPanel) - HasPathCellWillDisplayOpenPanel() bool - // optional PathCellWillPopUpMenu(pathCell PathCell, menu Menu) HasPathCellWillPopUpMenu() bool @@ -21,27 +17,9 @@ type PPathCellDelegate interface { // A delegate implementation builder for the [PPathCellDelegate] protocol. type PathCellDelegate struct { - _PathCellWillDisplayOpenPanel func(pathCell PathCell, openPanel OpenPanel) - _PathCellWillPopUpMenu func(pathCell PathCell, menu Menu) -} - -func (di *PathCellDelegate) HasPathCellWillDisplayOpenPanel() bool { - return di._PathCellWillDisplayOpenPanel != nil -} - -// Implement this method to customize the Open panel shown by a pop-up–style path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcelldelegate/1526099-pathcell?language=objc -func (di *PathCellDelegate) SetPathCellWillDisplayOpenPanel(f func(pathCell PathCell, openPanel OpenPanel)) { - di._PathCellWillDisplayOpenPanel = f + _PathCellWillPopUpMenu func(pathCell PathCell, menu Menu) } -// Implement this method to customize the Open panel shown by a pop-up–style path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcelldelegate/1526099-pathcell?language=objc -func (di *PathCellDelegate) PathCellWillDisplayOpenPanel(pathCell PathCell, openPanel OpenPanel) { - di._PathCellWillDisplayOpenPanel(pathCell, openPanel) -} func (di *PathCellDelegate) HasPathCellWillPopUpMenu() bool { return di._PathCellWillPopUpMenu != nil } @@ -68,17 +46,6 @@ type PathCellDelegateObject struct { objc.Object } -func (p_ PathCellDelegateObject) HasPathCellWillDisplayOpenPanel() bool { - return p_.RespondsToSelector(objc.Sel("pathCell:willDisplayOpenPanel:")) -} - -// Implement this method to customize the Open panel shown by a pop-up–style path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcelldelegate/1526099-pathcell?language=objc -func (p_ PathCellDelegateObject) PathCellWillDisplayOpenPanel(pathCell PathCell, openPanel OpenPanel) { - objc.Call[objc.Void](p_, objc.Sel("pathCell:willDisplayOpenPanel:"), pathCell, openPanel) -} - func (p_ PathCellDelegateObject) HasPathCellWillPopUpMenu() bool { return p_.RespondsToSelector(objc.Sel("pathCell:willPopUpMenu:")) } diff --git a/macos/appkit/path_control.gen.go b/macos/appkit/path_control.gen.go index a82d7683..92151dc5 100644 --- a/macos/appkit/path_control.gen.go +++ b/macos/appkit/path_control.gen.go @@ -20,28 +20,28 @@ type _PathControlClass struct { type IPathControl interface { IControl SetDraggingSourceOperationMaskForLocal(mask DragOperation, isLocal bool) - PathStyle() PathStyle - SetPathStyle(value PathStyle) - PlaceholderString() string - SetPlaceholderString(value string) + DoubleAction() objc.Selector + SetDoubleAction(value objc.Selector) + IsEditable() bool + SetEditable(value bool) + ClickedPathItem() PathControlItem + Delegate() PathControlDelegateObject + SetDelegate(value PPathControlDelegate) + SetDelegateObject(valueObject objc.IObject) PlaceholderAttributedString() foundation.AttributedString SetPlaceholderAttributedString(value foundation.IAttributedString) + BackgroundColor() Color + SetBackgroundColor(value IColor) + PathStyle() PathStyle + SetPathStyle(value PathStyle) AllowedTypes() []string SetAllowedTypes(value []string) - IsEditable() bool - SetEditable(value bool) URL() foundation.URL SetURL(value foundation.IURL) PathItems() []PathControlItem SetPathItems(value []IPathControlItem) - DoubleAction() objc.Selector - SetDoubleAction(value objc.Selector) - BackgroundColor() Color - SetBackgroundColor(value IColor) - Delegate() PathControlDelegateObject - SetDelegate(value PPathControlDelegate) - SetDelegateObject(valueObject objc.IObject) - ClickedPathItem() PathControlItem + PlaceholderString() string + SetPlaceholderString(value string) } // A display of a file system path or virtual path information. [Full Topic] @@ -91,41 +91,73 @@ func NewPathControlWithFrame(frameRect foundation.Rect) PathControl { return instance } -// Configures the default value returned from [objectivec/nsobject/draggingsourceoperationmaskforlo]. [Full Topic] +// Configures the default value returned from draggingSourceOperationMaskForLocal:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1526909-setdraggingsourceoperationmask?language=objc func (p_ PathControl) SetDraggingSourceOperationMaskForLocal(mask DragOperation, isLocal bool) { objc.Call[objc.Void](p_, objc.Sel("setDraggingSourceOperationMask:forLocal:"), mask, isLocal) } -// The receiver’s path style. [Full Topic] +// The receiver’s double-click action method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1532330-pathstyle?language=objc -func (p_ PathControl) PathStyle() PathStyle { - rv := objc.Call[PathStyle](p_, objc.Sel("pathStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1534088-doubleaction?language=objc +func (p_ PathControl) DoubleAction() objc.Selector { + rv := objc.Call[objc.Selector](p_, objc.Sel("doubleAction")) return rv } -// The receiver’s path style. [Full Topic] +// The receiver’s double-click action method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1532330-pathstyle?language=objc -func (p_ PathControl) SetPathStyle(value PathStyle) { - objc.Call[objc.Void](p_, objc.Sel("setPathStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1534088-doubleaction?language=objc +func (p_ PathControl) SetDoubleAction(value objc.Selector) { + objc.Call[objc.Void](p_, objc.Sel("setDoubleAction:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1531787-placeholderstring?language=objc -func (p_ PathControl) PlaceholderString() string { - rv := objc.Call[string](p_, objc.Sel("placeholderString")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1535833-editable?language=objc +func (p_ PathControl) IsEditable() bool { + rv := objc.Call[bool](p_, objc.Sel("isEditable")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1531787-placeholderstring?language=objc -func (p_ PathControl) SetPlaceholderString(value string) { - objc.Call[objc.Void](p_, objc.Sel("setPlaceholderString:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1535833-editable?language=objc +func (p_ PathControl) SetEditable(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setEditable:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1535047-clickedpathitem?language=objc +func (p_ PathControl) ClickedPathItem() PathControlItem { + rv := objc.Call[PathControlItem](p_, objc.Sel("clickedPathItem")) + return rv +} + +// The receiver’s delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1526753-delegate?language=objc +func (p_ PathControl) Delegate() PathControlDelegateObject { + rv := objc.Call[PathControlDelegateObject](p_, objc.Sel("delegate")) + return rv +} + +// The receiver’s delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1526753-delegate?language=objc +func (p_ PathControl) SetDelegate(value PPathControlDelegate) { + po0 := objc.WrapAsProtocol("NSPathControlDelegate", value) + objc.SetAssociatedObject(p_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), po0) +} + +// The receiver’s delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1526753-delegate?language=objc +func (p_ PathControl) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), valueObject) } // [Full Topic] @@ -143,34 +175,49 @@ func (p_ PathControl) SetPlaceholderAttributedString(value foundation.IAttribute objc.Call[objc.Void](p_, objc.Sel("setPlaceholderAttributedString:"), value) } -// [Full Topic] +// The receiver’s background color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1527415-allowedtypes?language=objc -func (p_ PathControl) AllowedTypes() []string { - rv := objc.Call[[]string](p_, objc.Sel("allowedTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1534164-backgroundcolor?language=objc +func (p_ PathControl) BackgroundColor() Color { + rv := objc.Call[Color](p_, objc.Sel("backgroundColor")) return rv } -// [Full Topic] +// The receiver’s background color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1527415-allowedtypes?language=objc -func (p_ PathControl) SetAllowedTypes(value []string) { - objc.Call[objc.Void](p_, objc.Sel("setAllowedTypes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1534164-backgroundcolor?language=objc +func (p_ PathControl) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](p_, objc.Sel("setBackgroundColor:"), value) +} + +// The receiver’s path style. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1532330-pathstyle?language=objc +func (p_ PathControl) PathStyle() PathStyle { + rv := objc.Call[PathStyle](p_, objc.Sel("pathStyle")) + return rv +} + +// The receiver’s path style. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1532330-pathstyle?language=objc +func (p_ PathControl) SetPathStyle(value PathStyle) { + objc.Call[objc.Void](p_, objc.Sel("setPathStyle:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1535833-editable?language=objc -func (p_ PathControl) IsEditable() bool { - rv := objc.Call[bool](p_, objc.Sel("isEditable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1527415-allowedtypes?language=objc +func (p_ PathControl) AllowedTypes() []string { + rv := objc.Call[[]string](p_, objc.Sel("allowedTypes")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1535833-editable?language=objc -func (p_ PathControl) SetEditable(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setEditable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1527415-allowedtypes?language=objc +func (p_ PathControl) SetAllowedTypes(value []string) { + objc.Call[objc.Void](p_, objc.Sel("setAllowedTypes:"), value) } // The path value displayed by the receiver. [Full Topic] @@ -203,64 +250,17 @@ func (p_ PathControl) SetPathItems(value []IPathControlItem) { objc.Call[objc.Void](p_, objc.Sel("setPathItems:"), value) } -// The receiver’s double-click action method. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1534088-doubleaction?language=objc -func (p_ PathControl) DoubleAction() objc.Selector { - rv := objc.Call[objc.Selector](p_, objc.Sel("doubleAction")) - return rv -} - -// The receiver’s double-click action method. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1534088-doubleaction?language=objc -func (p_ PathControl) SetDoubleAction(value objc.Selector) { - objc.Call[objc.Void](p_, objc.Sel("setDoubleAction:"), value) -} - -// The receiver’s background color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1534164-backgroundcolor?language=objc -func (p_ PathControl) BackgroundColor() Color { - rv := objc.Call[Color](p_, objc.Sel("backgroundColor")) - return rv -} - -// The receiver’s background color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1534164-backgroundcolor?language=objc -func (p_ PathControl) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](p_, objc.Sel("setBackgroundColor:"), value) -} - -// The receiver’s delegate. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1526753-delegate?language=objc -func (p_ PathControl) Delegate() PathControlDelegateObject { - rv := objc.Call[PathControlDelegateObject](p_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1531787-placeholderstring?language=objc +func (p_ PathControl) PlaceholderString() string { + rv := objc.Call[string](p_, objc.Sel("placeholderString")) return rv } -// The receiver’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1526753-delegate?language=objc -func (p_ PathControl) SetDelegate(value PPathControlDelegate) { - po0 := objc.WrapAsProtocol("NSPathControlDelegate", value) - objc.SetAssociatedObject(p_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), po0) -} - -// The receiver’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1526753-delegate?language=objc -func (p_ PathControl) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), valueObject) -} - // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1535047-clickedpathitem?language=objc -func (p_ PathControl) ClickedPathItem() PathControlItem { - rv := objc.Call[PathControlItem](p_, objc.Sel("clickedPathItem")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrol/1531787-placeholderstring?language=objc +func (p_ PathControl) SetPlaceholderString(value string) { + objc.Call[objc.Void](p_, objc.Sel("setPlaceholderString:"), value) } diff --git a/macos/appkit/path_control_delegate.gen.go b/macos/appkit/path_control_delegate.gen.go index b00cd2c9..ef337184 100644 --- a/macos/appkit/path_control_delegate.gen.go +++ b/macos/appkit/path_control_delegate.gen.go @@ -13,36 +13,11 @@ type PPathControlDelegate interface { // optional PathControlShouldDragItemWithPasteboard(pathControl PathControl, pathItem PathControlItem, pasteboard Pasteboard) bool HasPathControlShouldDragItemWithPasteboard() bool - - // optional - PathControlShouldDragPathComponentCellWithPasteboard(pathControl PathControl, pathComponentCell PathComponentCell, pasteboard Pasteboard) bool - HasPathControlShouldDragPathComponentCellWithPasteboard() bool - - // optional - PathControlValidateDrop(pathControl PathControl, info DraggingInfoObject) DragOperation - HasPathControlValidateDrop() bool - - // optional - PathControlWillDisplayOpenPanel(pathControl PathControl, openPanel OpenPanel) - HasPathControlWillDisplayOpenPanel() bool - - // optional - PathControlAcceptDrop(pathControl PathControl, info DraggingInfoObject) bool - HasPathControlAcceptDrop() bool - - // optional - PathControlWillPopUpMenu(pathControl PathControl, menu Menu) - HasPathControlWillPopUpMenu() bool } // A delegate implementation builder for the [PPathControlDelegate] protocol. type PathControlDelegate struct { - _PathControlShouldDragItemWithPasteboard func(pathControl PathControl, pathItem PathControlItem, pasteboard Pasteboard) bool - _PathControlShouldDragPathComponentCellWithPasteboard func(pathControl PathControl, pathComponentCell PathComponentCell, pasteboard Pasteboard) bool - _PathControlValidateDrop func(pathControl PathControl, info DraggingInfoObject) DragOperation - _PathControlWillDisplayOpenPanel func(pathControl PathControl, openPanel OpenPanel) - _PathControlAcceptDrop func(pathControl PathControl, info DraggingInfoObject) bool - _PathControlWillPopUpMenu func(pathControl PathControl, menu Menu) + _PathControlShouldDragItemWithPasteboard func(pathControl PathControl, pathItem PathControlItem, pasteboard Pasteboard) bool } func (di *PathControlDelegate) HasPathControlShouldDragItemWithPasteboard() bool { @@ -62,91 +37,6 @@ func (di *PathControlDelegate) SetPathControlShouldDragItemWithPasteboard(f func func (di *PathControlDelegate) PathControlShouldDragItemWithPasteboard(pathControl PathControl, pathItem PathControlItem, pasteboard Pasteboard) bool { return di._PathControlShouldDragItemWithPasteboard(pathControl, pathItem, pasteboard) } -func (di *PathControlDelegate) HasPathControlShouldDragPathComponentCellWithPasteboard() bool { - return di._PathControlShouldDragPathComponentCellWithPasteboard != nil -} - -// Implement this method to enable dragging from the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1533453-pathcontrol?language=objc -func (di *PathControlDelegate) SetPathControlShouldDragPathComponentCellWithPasteboard(f func(pathControl PathControl, pathComponentCell PathComponentCell, pasteboard Pasteboard) bool) { - di._PathControlShouldDragPathComponentCellWithPasteboard = f -} - -// Implement this method to enable dragging from the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1533453-pathcontrol?language=objc -func (di *PathControlDelegate) PathControlShouldDragPathComponentCellWithPasteboard(pathControl PathControl, pathComponentCell PathComponentCell, pasteboard Pasteboard) bool { - return di._PathControlShouldDragPathComponentCellWithPasteboard(pathControl, pathComponentCell, pasteboard) -} -func (di *PathControlDelegate) HasPathControlValidateDrop() bool { - return di._PathControlValidateDrop != nil -} - -// Implement this method to enable dragging onto the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1528554-pathcontrol?language=objc -func (di *PathControlDelegate) SetPathControlValidateDrop(f func(pathControl PathControl, info DraggingInfoObject) DragOperation) { - di._PathControlValidateDrop = f -} - -// Implement this method to enable dragging onto the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1528554-pathcontrol?language=objc -func (di *PathControlDelegate) PathControlValidateDrop(pathControl PathControl, info DraggingInfoObject) DragOperation { - return di._PathControlValidateDrop(pathControl, info) -} -func (di *PathControlDelegate) HasPathControlWillDisplayOpenPanel() bool { - return di._PathControlWillDisplayOpenPanel != nil -} - -// Implement this method to customize the Open panel shown by a pop-up–style path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1530012-pathcontrol?language=objc -func (di *PathControlDelegate) SetPathControlWillDisplayOpenPanel(f func(pathControl PathControl, openPanel OpenPanel)) { - di._PathControlWillDisplayOpenPanel = f -} - -// Implement this method to customize the Open panel shown by a pop-up–style path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1530012-pathcontrol?language=objc -func (di *PathControlDelegate) PathControlWillDisplayOpenPanel(pathControl PathControl, openPanel OpenPanel) { - di._PathControlWillDisplayOpenPanel(pathControl, openPanel) -} -func (di *PathControlDelegate) HasPathControlAcceptDrop() bool { - return di._PathControlAcceptDrop != nil -} - -// Implement this method to accept previously validated contents dropped onto the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1528517-pathcontrol?language=objc -func (di *PathControlDelegate) SetPathControlAcceptDrop(f func(pathControl PathControl, info DraggingInfoObject) bool) { - di._PathControlAcceptDrop = f -} - -// Implement this method to accept previously validated contents dropped onto the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1528517-pathcontrol?language=objc -func (di *PathControlDelegate) PathControlAcceptDrop(pathControl PathControl, info DraggingInfoObject) bool { - return di._PathControlAcceptDrop(pathControl, info) -} -func (di *PathControlDelegate) HasPathControlWillPopUpMenu() bool { - return di._PathControlWillPopUpMenu != nil -} - -// Implement this method to customize the menu of a pop-up–style path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1531724-pathcontrol?language=objc -func (di *PathControlDelegate) SetPathControlWillPopUpMenu(f func(pathControl PathControl, menu Menu)) { - di._PathControlWillPopUpMenu = f -} - -// Implement this method to customize the menu of a pop-up–style path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1531724-pathcontrol?language=objc -func (di *PathControlDelegate) PathControlWillPopUpMenu(pathControl PathControl, menu Menu) { - di._PathControlWillPopUpMenu(pathControl, menu) -} // ensure impl type implements protocol interface var _ PPathControlDelegate = (*PathControlDelegateObject)(nil) @@ -167,63 +57,3 @@ func (p_ PathControlDelegateObject) PathControlShouldDragItemWithPasteboard(path rv := objc.Call[bool](p_, objc.Sel("pathControl:shouldDragItem:withPasteboard:"), pathControl, pathItem, pasteboard) return rv } - -func (p_ PathControlDelegateObject) HasPathControlShouldDragPathComponentCellWithPasteboard() bool { - return p_.RespondsToSelector(objc.Sel("pathControl:shouldDragPathComponentCell:withPasteboard:")) -} - -// Implement this method to enable dragging from the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1533453-pathcontrol?language=objc -func (p_ PathControlDelegateObject) PathControlShouldDragPathComponentCellWithPasteboard(pathControl PathControl, pathComponentCell PathComponentCell, pasteboard Pasteboard) bool { - rv := objc.Call[bool](p_, objc.Sel("pathControl:shouldDragPathComponentCell:withPasteboard:"), pathControl, pathComponentCell, pasteboard) - return rv -} - -func (p_ PathControlDelegateObject) HasPathControlValidateDrop() bool { - return p_.RespondsToSelector(objc.Sel("pathControl:validateDrop:")) -} - -// Implement this method to enable dragging onto the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1528554-pathcontrol?language=objc -func (p_ PathControlDelegateObject) PathControlValidateDrop(pathControl PathControl, info DraggingInfoObject) DragOperation { - po1 := objc.WrapAsProtocol("NSDraggingInfo", info) - rv := objc.Call[DragOperation](p_, objc.Sel("pathControl:validateDrop:"), pathControl, po1) - return rv -} - -func (p_ PathControlDelegateObject) HasPathControlWillDisplayOpenPanel() bool { - return p_.RespondsToSelector(objc.Sel("pathControl:willDisplayOpenPanel:")) -} - -// Implement this method to customize the Open panel shown by a pop-up–style path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1530012-pathcontrol?language=objc -func (p_ PathControlDelegateObject) PathControlWillDisplayOpenPanel(pathControl PathControl, openPanel OpenPanel) { - objc.Call[objc.Void](p_, objc.Sel("pathControl:willDisplayOpenPanel:"), pathControl, openPanel) -} - -func (p_ PathControlDelegateObject) HasPathControlAcceptDrop() bool { - return p_.RespondsToSelector(objc.Sel("pathControl:acceptDrop:")) -} - -// Implement this method to accept previously validated contents dropped onto the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1528517-pathcontrol?language=objc -func (p_ PathControlDelegateObject) PathControlAcceptDrop(pathControl PathControl, info DraggingInfoObject) bool { - po1 := objc.WrapAsProtocol("NSDraggingInfo", info) - rv := objc.Call[bool](p_, objc.Sel("pathControl:acceptDrop:"), pathControl, po1) - return rv -} - -func (p_ PathControlDelegateObject) HasPathControlWillPopUpMenu() bool { - return p_.RespondsToSelector(objc.Sel("pathControl:willPopUpMenu:")) -} - -// Implement this method to customize the menu of a pop-up–style path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1531724-pathcontrol?language=objc -func (p_ PathControlDelegateObject) PathControlWillPopUpMenu(pathControl PathControl, menu Menu) { - objc.Call[objc.Void](p_, objc.Sel("pathControl:willPopUpMenu:"), pathControl, menu) -} diff --git a/macos/appkit/path_control_item.gen.go b/macos/appkit/path_control_item.gen.go index 9cf35121..ef6c48f6 100644 --- a/macos/appkit/path_control_item.gen.go +++ b/macos/appkit/path_control_item.gen.go @@ -19,13 +19,13 @@ type _PathControlItemClass struct { // An interface definition for the [PathControlItem] class. type IPathControlItem interface { objc.IObject - Title() string - SetTitle(value string) AttributedTitle() foundation.AttributedString SetAttributedTitle(value foundation.IAttributedString) + URL() foundation.URL + Title() string + SetTitle(value string) Image() Image SetImage(value IImage) - URL() foundation.URL } // [Full Topic] @@ -63,32 +63,40 @@ func (p_ PathControlItem) Init() PathControlItem { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrolitem/1388293-title?language=objc -func (p_ PathControlItem) Title() string { - rv := objc.Call[string](p_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrolitem/1388287-attributedtitle?language=objc +func (p_ PathControlItem) AttributedTitle() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](p_, objc.Sel("attributedTitle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrolitem/1388293-title?language=objc -func (p_ PathControlItem) SetTitle(value string) { - objc.Call[objc.Void](p_, objc.Sel("setTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrolitem/1388287-attributedtitle?language=objc +func (p_ PathControlItem) SetAttributedTitle(value foundation.IAttributedString) { + objc.Call[objc.Void](p_, objc.Sel("setAttributedTitle:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrolitem/1388287-attributedtitle?language=objc -func (p_ PathControlItem) AttributedTitle() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](p_, objc.Sel("attributedTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrolitem/1388289-url?language=objc +func (p_ PathControlItem) URL() foundation.URL { + rv := objc.Call[foundation.URL](p_, objc.Sel("URL")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrolitem/1388287-attributedtitle?language=objc -func (p_ PathControlItem) SetAttributedTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](p_, objc.Sel("setAttributedTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrolitem/1388293-title?language=objc +func (p_ PathControlItem) Title() string { + rv := objc.Call[string](p_, objc.Sel("title")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrolitem/1388293-title?language=objc +func (p_ PathControlItem) SetTitle(value string) { + objc.Call[objc.Void](p_, objc.Sel("setTitle:"), value) } // [Full Topic] @@ -105,11 +113,3 @@ func (p_ PathControlItem) Image() Image { func (p_ PathControlItem) SetImage(value IImage) { objc.Call[objc.Void](p_, objc.Sel("setImage:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontrolitem/1388289-url?language=objc -func (p_ PathControlItem) URL() foundation.URL { - rv := objc.Call[foundation.URL](p_, objc.Sel("URL")) - return rv -} diff --git a/macos/appkit/pdf_image_rep.gen.go b/macos/appkit/pdf_image_rep.gen.go index 77e5d2f6..a676f467 100644 --- a/macos/appkit/pdf_image_rep.gen.go +++ b/macos/appkit/pdf_image_rep.gen.go @@ -21,9 +21,9 @@ type IPDFImageRep interface { IImageRep PDFRepresentation() []byte PageCount() int + Bounds() foundation.Rect CurrentPage() int SetCurrentPage(value int) - Bounds() foundation.Rect } // An object that can render an image from a PDF format data stream. [Full Topic] @@ -101,6 +101,14 @@ func (p_ PDFImageRep) PageCount() int { return rv } +// The image representation’s bounding rectangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfimagerep/1533966-bounds?language=objc +func (p_ PDFImageRep) Bounds() foundation.Rect { + rv := objc.Call[foundation.Rect](p_, objc.Sel("bounds")) + return rv +} + // The page currently displayed by the image representation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfimagerep/1528846-currentpage?language=objc @@ -115,11 +123,3 @@ func (p_ PDFImageRep) CurrentPage() int { func (p_ PDFImageRep) SetCurrentPage(value int) { objc.Call[objc.Void](p_, objc.Sel("setCurrentPage:"), value) } - -// The image representation’s bounding rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfimagerep/1533966-bounds?language=objc -func (p_ PDFImageRep) Bounds() foundation.Rect { - rv := objc.Call[foundation.Rect](p_, objc.Sel("bounds")) - return rv -} diff --git a/macos/appkit/pdf_info.gen.go b/macos/appkit/pdf_info.gen.go index 84b40de8..e3d191ee 100644 --- a/macos/appkit/pdf_info.gen.go +++ b/macos/appkit/pdf_info.gen.go @@ -19,17 +19,17 @@ type _PDFInfoClass struct { // An interface definition for the [PDFInfo] class. type IPDFInfo interface { objc.IObject - IsFileExtensionHidden() bool - SetFileExtensionHidden(value bool) TagNames() []string SetTagNames(value []string) - URL() foundation.URL - SetURL(value foundation.IURL) PaperSize() foundation.Size SetPaperSize(value foundation.Size) + IsFileExtensionHidden() bool + SetFileExtensionHidden(value bool) + URL() foundation.URL + SetURL(value foundation.IURL) + Attributes() foundation.MutableDictionary Orientation() PaperOrientation SetOrientation(value PaperOrientation) - Attributes() foundation.MutableDictionary } // An object that stores information associated with the creation of a PDF file, such as its URL, tag names, page orientation, and paper size. [Full Topic] @@ -65,21 +65,6 @@ func (p_ PDFInfo) Init() PDFInfo { return rv } -// A Boolean value that indicates whether the file extension should appear after the filename. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1527208-fileextensionhidden?language=objc -func (p_ PDFInfo) IsFileExtensionHidden() bool { - rv := objc.Call[bool](p_, objc.Sel("isFileExtensionHidden")) - return rv -} - -// A Boolean value that indicates whether the file extension should appear after the filename. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1527208-fileextensionhidden?language=objc -func (p_ PDFInfo) SetFileExtensionHidden(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setFileExtensionHidden:"), value) -} - // An array of tag names that should be applied to the PDF file after it’s created. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1525418-tagnames?language=objc @@ -95,6 +80,36 @@ func (p_ PDFInfo) SetTagNames(value []string) { objc.Call[objc.Void](p_, objc.Sel("setTagNames:"), value) } +// The paper size to use when exporting content as a PDF file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1532272-papersize?language=objc +func (p_ PDFInfo) PaperSize() foundation.Size { + rv := objc.Call[foundation.Size](p_, objc.Sel("paperSize")) + return rv +} + +// The paper size to use when exporting content as a PDF file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1532272-papersize?language=objc +func (p_ PDFInfo) SetPaperSize(value foundation.Size) { + objc.Call[objc.Void](p_, objc.Sel("setPaperSize:"), value) +} + +// A Boolean value that indicates whether the file extension should appear after the filename. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1527208-fileextensionhidden?language=objc +func (p_ PDFInfo) IsFileExtensionHidden() bool { + rv := objc.Call[bool](p_, objc.Sel("isFileExtensionHidden")) + return rv +} + +// A Boolean value that indicates whether the file extension should appear after the filename. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1527208-fileextensionhidden?language=objc +func (p_ PDFInfo) SetFileExtensionHidden(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setFileExtensionHidden:"), value) +} + // The URL identifying the location at which the PDF file will be created. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1528885-url?language=objc @@ -110,21 +125,14 @@ func (p_ PDFInfo) SetURL(value foundation.IURL) { objc.Call[objc.Void](p_, objc.Sel("setURL:"), value) } -// The paper size to use when exporting content as a PDF file. [Full Topic] +// A dictionary of additional attributes that describe how to export content as a PDF file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1532272-papersize?language=objc -func (p_ PDFInfo) PaperSize() foundation.Size { - rv := objc.Call[foundation.Size](p_, objc.Sel("paperSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1528715-attributes?language=objc +func (p_ PDFInfo) Attributes() foundation.MutableDictionary { + rv := objc.Call[foundation.MutableDictionary](p_, objc.Sel("attributes")) return rv } -// The paper size to use when exporting content as a PDF file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1532272-papersize?language=objc -func (p_ PDFInfo) SetPaperSize(value foundation.Size) { - objc.Call[objc.Void](p_, objc.Sel("setPaperSize:"), value) -} - // The paper orientation to use when exporting content as a PDF file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1524848-orientation?language=objc @@ -139,11 +147,3 @@ func (p_ PDFInfo) Orientation() PaperOrientation { func (p_ PDFInfo) SetOrientation(value PaperOrientation) { objc.Call[objc.Void](p_, objc.Sel("setOrientation:"), value) } - -// A dictionary of additional attributes that describe how to export content as a PDF file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfinfo/1528715-attributes?language=objc -func (p_ PDFInfo) Attributes() foundation.MutableDictionary { - rv := objc.Call[foundation.MutableDictionary](p_, objc.Sel("attributes")) - return rv -} diff --git a/macos/appkit/pdf_panel.gen.go b/macos/appkit/pdf_panel.gen.go index fb347570..f103edc1 100644 --- a/macos/appkit/pdf_panel.gen.go +++ b/macos/appkit/pdf_panel.gen.go @@ -21,10 +21,10 @@ type IPDFPanel interface { BeginSheetWithPDFInfoModalForWindowCompletionHandler(pdfInfo IPDFInfo, docWindow IWindow, completionHandler func(arg0 int)) Options() PDFPanelOptions SetOptions(value PDFPanelOptions) - DefaultFileName() string - SetDefaultFileName(value string) AccessoryController() ViewController SetAccessoryController(value IViewController) + DefaultFileName() string + SetDefaultFileName(value string) } // A Save or Export as PDF panel that’s consistent with the macOS user interface. [Full Topic] @@ -97,21 +97,6 @@ func (p_ PDFPanel) SetOptions(value PDFPanelOptions) { objc.Call[objc.Void](p_, objc.Sel("setOptions:"), value) } -// The initial value for the user-editable filename shown in the name field of the PDF panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfpanel/1532720-defaultfilename?language=objc -func (p_ PDFPanel) DefaultFileName() string { - rv := objc.Call[string](p_, objc.Sel("defaultFileName")) - return rv -} - -// The initial value for the user-editable filename shown in the name field of the PDF panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfpanel/1532720-defaultfilename?language=objc -func (p_ PDFPanel) SetDefaultFileName(value string) { - objc.Call[objc.Void](p_, objc.Sel("setDefaultFileName:"), value) -} - // A view controller for the accessory view that the panel can present. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfpanel/1524637-accessorycontroller?language=objc @@ -126,3 +111,18 @@ func (p_ PDFPanel) AccessoryController() ViewController { func (p_ PDFPanel) SetAccessoryController(value IViewController) { objc.Call[objc.Void](p_, objc.Sel("setAccessoryController:"), value) } + +// The initial value for the user-editable filename shown in the name field of the PDF panel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfpanel/1532720-defaultfilename?language=objc +func (p_ PDFPanel) DefaultFileName() string { + rv := objc.Call[string](p_, objc.Sel("defaultFileName")) + return rv +} + +// The initial value for the user-editable filename shown in the name field of the PDF panel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspdfpanel/1532720-defaultfilename?language=objc +func (p_ PDFPanel) SetDefaultFileName(value string) { + objc.Call[objc.Void](p_, objc.Sel("setDefaultFileName:"), value) +} diff --git a/macos/appkit/persistent_document.gen.go b/macos/appkit/persistent_document.gen.go index 6a95f7a8..a7c94cb4 100644 --- a/macos/appkit/persistent_document.gen.go +++ b/macos/appkit/persistent_document.gen.go @@ -21,7 +21,6 @@ type _PersistentDocumentClass struct { type IPersistentDocument interface { IDocument PersistentStoreTypeForFileType(fileType string) string - ConfigurePersistentStoreCoordinatorForURLOfTypeModelConfigurationStoreOptionsError(url foundation.IURL, fileType string, configuration string, storeOptions map[string]objc.IObject, error unsafe.Pointer) bool ManagedObjectModel() coredata.ManagedObjectModel ManagedObjectContext() coredata.ManagedObjectContext SetManagedObjectContext(value coredata.IManagedObjectContext) @@ -60,20 +59,6 @@ func (p_ PersistentDocument) Init() PersistentDocument { return rv } -func (p_ PersistentDocument) InitForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError unsafe.Pointer) PersistentDocument { - rv := objc.Call[PersistentDocument](p_, objc.Sel("initForURL:withContentsOfURL:ofType:error:"), urlOrNil, contentsURL, typeName, outError) - return rv -} - -// Initializes a document with the specified contents, and places the resulting document's file at the designated location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515041-initforurl?language=objc -func NewPersistentDocumentForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError unsafe.Pointer) PersistentDocument { - instance := PersistentDocumentClass.Alloc().InitForURLWithContentsOfURLOfTypeError(urlOrNil, contentsURL, typeName, outError) - instance.Autorelease() - return instance -} - func (p_ PersistentDocument) InitWithTypeError(typeName string, outError unsafe.Pointer) PersistentDocument { rv := objc.Call[PersistentDocument](p_, objc.Sel("initWithType:error:"), typeName, outError) return rv @@ -88,16 +73,16 @@ func NewPersistentDocumentWithTypeError(typeName string, outError unsafe.Pointer return instance } -func (p_ PersistentDocument) InitWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) PersistentDocument { - rv := objc.Call[PersistentDocument](p_, objc.Sel("initWithContentsOfURL:ofType:error:"), url, typeName, outError) +func (p_ PersistentDocument) InitForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError unsafe.Pointer) PersistentDocument { + rv := objc.Call[PersistentDocument](p_, objc.Sel("initForURL:withContentsOfURL:ofType:error:"), urlOrNil, contentsURL, typeName, outError) return rv } -// Initializes a document located by a URL of a specified type. [Full Topic] +// Initializes a document with the specified contents, and places the resulting document's file at the designated location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515097-initwithcontentsofurl?language=objc -func NewPersistentDocumentWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError unsafe.Pointer) PersistentDocument { - instance := PersistentDocumentClass.Alloc().InitWithContentsOfURLOfTypeError(url, typeName, outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515041-initforurl?language=objc +func NewPersistentDocumentForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError unsafe.Pointer) PersistentDocument { + instance := PersistentDocumentClass.Alloc().InitForURLWithContentsOfURLOfTypeError(urlOrNil, contentsURL, typeName, outError) instance.Autorelease() return instance } @@ -110,14 +95,6 @@ func (p_ PersistentDocument) PersistentStoreTypeForFileType(fileType string) str return rv } -// Configures the receiver’s persistent store coordinator with the appropriate stores for a given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspersistentdocument/1396160-configurepersistentstorecoordina?language=objc -func (p_ PersistentDocument) ConfigurePersistentStoreCoordinatorForURLOfTypeModelConfigurationStoreOptionsError(url foundation.IURL, fileType string, configuration string, storeOptions map[string]objc.IObject, error unsafe.Pointer) bool { - rv := objc.Call[bool](p_, objc.Sel("configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:"), url, fileType, configuration, storeOptions, error) - return rv -} - // The managed object model of the document. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspersistentdocument/1396152-managedobjectmodel?language=objc diff --git a/macos/appkit/picker_touch_bar_item.gen.go b/macos/appkit/picker_touch_bar_item.gen.go index 3950468e..d45d5d32 100644 --- a/macos/appkit/picker_touch_bar_item.gen.go +++ b/macos/appkit/picker_touch_bar_item.gen.go @@ -18,33 +18,33 @@ type _PickerTouchBarItemClass struct { // An interface definition for the [PickerTouchBarItem] class. type IPickerTouchBarItem interface { ITouchBarItem + SetLabelAtIndex(label string, index int) ImageAtIndex(index int) Image - LabelAtIndex(index int) string SetImageAtIndex(image IImage, index int) - SetLabelAtIndex(label string, index int) - IsEnabledAtIndex(index int) bool + LabelAtIndex(index int) string SetEnabledAtIndex(enabled bool, index int) - IsEnabled() bool - SetEnabled(value bool) - ControlRepresentation() PickerTouchBarItemControlRepresentation - SetControlRepresentation(value PickerTouchBarItemControlRepresentation) + IsEnabledAtIndex(index int) bool + CollapsedRepresentationImage() Image + SetCollapsedRepresentationImage(value IImage) Target() objc.Object SetTarget(value objc.IObject) + SetCustomizationLabel(value string) Action() objc.Selector SetAction(value objc.Selector) CollapsedRepresentationLabel() string SetCollapsedRepresentationLabel(value string) - SelectedIndex() int - SetSelectedIndex(value int) - SetCustomizationLabel(value string) - SelectionMode() PickerTouchBarItemSelectionMode - SetSelectionMode(value PickerTouchBarItemSelectionMode) - CollapsedRepresentationImage() Image - SetCollapsedRepresentationImage(value IImage) SelectionColor() Color SetSelectionColor(value IColor) + SelectionMode() PickerTouchBarItemSelectionMode + SetSelectionMode(value PickerTouchBarItemSelectionMode) NumberOfOptions() int SetNumberOfOptions(value int) + ControlRepresentation() PickerTouchBarItemControlRepresentation + SetControlRepresentation(value PickerTouchBarItemControlRepresentation) + IsEnabled() bool + SetEnabled(value bool) + SelectedIndex() int + SetSelectedIndex(value int) } // A bar item that provides a picker control with multiple options. [Full Topic] @@ -72,18 +72,6 @@ func PickerTouchBarItem_PickerTouchBarItemWithIdentifierLabelsSelectionModeTarge return PickerTouchBarItemClass.PickerTouchBarItemWithIdentifierLabelsSelectionModeTargetAction(identifier, labels, selectionMode, target, action) } -func (pc _PickerTouchBarItemClass) PickerTouchBarItemWithIdentifierImagesSelectionModeTargetAction(identifier TouchBarItemIdentifier, images []IImage, selectionMode PickerTouchBarItemSelectionMode, target objc.IObject, action objc.Selector) PickerTouchBarItem { - rv := objc.Call[PickerTouchBarItem](pc, objc.Sel("pickerTouchBarItemWithIdentifier:images:selectionMode:target:action:"), identifier, images, selectionMode, target, action) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237203-pickertouchbaritemwithidentifier?language=objc -func PickerTouchBarItem_PickerTouchBarItemWithIdentifierImagesSelectionModeTargetAction(identifier TouchBarItemIdentifier, images []IImage, selectionMode PickerTouchBarItemSelectionMode, target objc.IObject, action objc.Selector) PickerTouchBarItem { - return PickerTouchBarItemClass.PickerTouchBarItemWithIdentifierImagesSelectionModeTargetAction(identifier, images, selectionMode, target, action) -} - func (pc _PickerTouchBarItemClass) Alloc() PickerTouchBarItem { rv := objc.Call[PickerTouchBarItem](pc, objc.Sel("alloc")) return rv @@ -120,17 +108,16 @@ func NewPickerTouchBarItemWithIdentifier(identifier TouchBarItemIdentifier) Pick // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237199-imageatindex?language=objc -func (p_ PickerTouchBarItem) ImageAtIndex(index int) Image { - rv := objc.Call[Image](p_, objc.Sel("imageAtIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237209-setlabel?language=objc +func (p_ PickerTouchBarItem) SetLabelAtIndex(label string, index int) { + objc.Call[objc.Void](p_, objc.Sel("setLabel:atIndex:"), label, index) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237201-labelatindex?language=objc -func (p_ PickerTouchBarItem) LabelAtIndex(index int) string { - rv := objc.Call[string](p_, objc.Sel("labelAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237199-imageatindex?language=objc +func (p_ PickerTouchBarItem) ImageAtIndex(index int) Image { + rv := objc.Call[Image](p_, objc.Sel("imageAtIndex:"), index) return rv } @@ -143,16 +130,9 @@ func (p_ PickerTouchBarItem) SetImageAtIndex(image IImage, index int) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237209-setlabel?language=objc -func (p_ PickerTouchBarItem) SetLabelAtIndex(label string, index int) { - objc.Call[objc.Void](p_, objc.Sel("setLabel:atIndex:"), label, index) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3353056-isenabledatindex?language=objc -func (p_ PickerTouchBarItem) IsEnabledAtIndex(index int) bool { - rv := objc.Call[bool](p_, objc.Sel("isEnabledAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237201-labelatindex?language=objc +func (p_ PickerTouchBarItem) LabelAtIndex(index int) string { + rv := objc.Call[string](p_, objc.Sel("labelAtIndex:"), index) return rv } @@ -165,32 +145,25 @@ func (p_ PickerTouchBarItem) SetEnabledAtIndex(enabled bool, index int) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3353055-enabled?language=objc -func (p_ PickerTouchBarItem) IsEnabled() bool { - rv := objc.Call[bool](p_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3353056-isenabledatindex?language=objc +func (p_ PickerTouchBarItem) IsEnabledAtIndex(index int) bool { + rv := objc.Call[bool](p_, objc.Sel("isEnabledAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3353055-enabled?language=objc -func (p_ PickerTouchBarItem) SetEnabled(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setEnabled:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237197-controlrepresentation?language=objc -func (p_ PickerTouchBarItem) ControlRepresentation() PickerTouchBarItemControlRepresentation { - rv := objc.Call[PickerTouchBarItemControlRepresentation](p_, objc.Sel("controlRepresentation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237195-collapsedrepresentationimage?language=objc +func (p_ PickerTouchBarItem) CollapsedRepresentationImage() Image { + rv := objc.Call[Image](p_, objc.Sel("collapsedRepresentationImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237197-controlrepresentation?language=objc -func (p_ PickerTouchBarItem) SetControlRepresentation(value PickerTouchBarItemControlRepresentation) { - objc.Call[objc.Void](p_, objc.Sel("setControlRepresentation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237195-collapsedrepresentationimage?language=objc +func (p_ PickerTouchBarItem) SetCollapsedRepresentationImage(value IImage) { + objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentationImage:"), value) } // [Full Topic] @@ -208,6 +181,13 @@ func (p_ PickerTouchBarItem) SetTarget(value objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setTarget:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237198-customizationlabel?language=objc +func (p_ PickerTouchBarItem) SetCustomizationLabel(value string) { + objc.Call[objc.Void](p_, objc.Sel("setCustomizationLabel:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237194-action?language=objc @@ -240,24 +220,17 @@ func (p_ PickerTouchBarItem) SetCollapsedRepresentationLabel(value string) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237205-selectedindex?language=objc -func (p_ PickerTouchBarItem) SelectedIndex() int { - rv := objc.Call[int](p_, objc.Sel("selectedIndex")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237206-selectioncolor?language=objc +func (p_ PickerTouchBarItem) SelectionColor() Color { + rv := objc.Call[Color](p_, objc.Sel("selectionColor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237205-selectedindex?language=objc -func (p_ PickerTouchBarItem) SetSelectedIndex(value int) { - objc.Call[objc.Void](p_, objc.Sel("setSelectedIndex:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237198-customizationlabel?language=objc -func (p_ PickerTouchBarItem) SetCustomizationLabel(value string) { - objc.Call[objc.Void](p_, objc.Sel("setCustomizationLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237206-selectioncolor?language=objc +func (p_ PickerTouchBarItem) SetSelectionColor(value IColor) { + objc.Call[objc.Void](p_, objc.Sel("setSelectionColor:"), value) } // [Full Topic] @@ -277,45 +250,60 @@ func (p_ PickerTouchBarItem) SetSelectionMode(value PickerTouchBarItemSelectionM // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237195-collapsedrepresentationimage?language=objc -func (p_ PickerTouchBarItem) CollapsedRepresentationImage() Image { - rv := objc.Call[Image](p_, objc.Sel("collapsedRepresentationImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237202-numberofoptions?language=objc +func (p_ PickerTouchBarItem) NumberOfOptions() int { + rv := objc.Call[int](p_, objc.Sel("numberOfOptions")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237195-collapsedrepresentationimage?language=objc -func (p_ PickerTouchBarItem) SetCollapsedRepresentationImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentationImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237202-numberofoptions?language=objc +func (p_ PickerTouchBarItem) SetNumberOfOptions(value int) { + objc.Call[objc.Void](p_, objc.Sel("setNumberOfOptions:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237206-selectioncolor?language=objc -func (p_ PickerTouchBarItem) SelectionColor() Color { - rv := objc.Call[Color](p_, objc.Sel("selectionColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237197-controlrepresentation?language=objc +func (p_ PickerTouchBarItem) ControlRepresentation() PickerTouchBarItemControlRepresentation { + rv := objc.Call[PickerTouchBarItemControlRepresentation](p_, objc.Sel("controlRepresentation")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237206-selectioncolor?language=objc -func (p_ PickerTouchBarItem) SetSelectionColor(value IColor) { - objc.Call[objc.Void](p_, objc.Sel("setSelectionColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237197-controlrepresentation?language=objc +func (p_ PickerTouchBarItem) SetControlRepresentation(value PickerTouchBarItemControlRepresentation) { + objc.Call[objc.Void](p_, objc.Sel("setControlRepresentation:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237202-numberofoptions?language=objc -func (p_ PickerTouchBarItem) NumberOfOptions() int { - rv := objc.Call[int](p_, objc.Sel("numberOfOptions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3353055-enabled?language=objc +func (p_ PickerTouchBarItem) IsEnabled() bool { + rv := objc.Call[bool](p_, objc.Sel("isEnabled")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237202-numberofoptions?language=objc -func (p_ PickerTouchBarItem) SetNumberOfOptions(value int) { - objc.Call[objc.Void](p_, objc.Sel("setNumberOfOptions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3353055-enabled?language=objc +func (p_ PickerTouchBarItem) SetEnabled(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setEnabled:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237205-selectedindex?language=objc +func (p_ PickerTouchBarItem) SelectedIndex() int { + rv := objc.Call[int](p_, objc.Sel("selectedIndex")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspickertouchbaritem/3237205-selectedindex?language=objc +func (p_ PickerTouchBarItem) SetSelectedIndex(value int) { + objc.Call[objc.Void](p_, objc.Sel("setSelectedIndex:"), value) } diff --git a/macos/appkit/pict_image_rep.gen.go b/macos/appkit/pict_image_rep.gen.go index 926672ae..06353257 100644 --- a/macos/appkit/pict_image_rep.gen.go +++ b/macos/appkit/pict_image_rep.gen.go @@ -36,18 +36,6 @@ func PICTImageRepFrom(ptr unsafe.Pointer) PICTImageRep { } } -func (pc _PICTImageRepClass) ImageRepWithData(pictData []byte) PICTImageRep { - rv := objc.Call[PICTImageRep](pc, objc.Sel("imageRepWithData:"), pictData) - return rv -} - -// Creates and returns a representation of an image from the specified data in the PICT file format. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspictimagerep/1588725-imagerepwithdata?language=objc -func PICTImageRep_ImageRepWithData(pictData []byte) PICTImageRep { - return PICTImageRepClass.ImageRepWithData(pictData) -} - func (p_ PICTImageRep) InitWithData(pictData []byte) PICTImageRep { rv := objc.Call[PICTImageRep](p_, objc.Sel("initWithData:"), pictData) return rv @@ -62,6 +50,18 @@ func NewPICTImageRepWithData(pictData []byte) PICTImageRep { return instance } +func (pc _PICTImageRepClass) ImageRepWithData(pictData []byte) PICTImageRep { + rv := objc.Call[PICTImageRep](pc, objc.Sel("imageRepWithData:"), pictData) + return rv +} + +// Creates and returns a representation of an image from the specified data in the PICT file format. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspictimagerep/1588725-imagerepwithdata?language=objc +func PICTImageRep_ImageRepWithData(pictData []byte) PICTImageRep { + return PICTImageRepClass.ImageRepWithData(pictData) +} + func (pc _PICTImageRepClass) Alloc() PICTImageRep { rv := objc.Call[PICTImageRep](pc, objc.Sel("alloc")) return rv diff --git a/macos/appkit/pop_up_button.gen.go b/macos/appkit/pop_up_button.gen.go index 374fb4fb..ce53b293 100644 --- a/macos/appkit/pop_up_button.gen.go +++ b/macos/appkit/pop_up_button.gen.go @@ -19,39 +19,39 @@ type _PopUpButtonClass struct { // An interface definition for the [PopUpButton] class. type IPopUpButton interface { IButton - IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int - ItemWithTitle(title string) MenuItem - RemoveItemAtIndex(index int) - RemoveItemWithTitle(title string) - IndexOfItemWithTitle(title string) int + ItemAtIndex(index int) MenuItem IndexOfItemWithTag(tag int) int - AddItemsWithTitles(itemTitles []string) - ItemTitleAtIndex(index int) string - IndexOfItem(item IMenuItem) int + InsertItemWithTitleAtIndex(title string, index int) RemoveAllItems() - SynchronizeTitleAndSelectedItem() + RemoveItemAtIndex(index int) + RemoveItemWithTitle(title string) SelectItemWithTag(tag int) bool - ItemAtIndex(index int) MenuItem - IndexOfItemWithRepresentedObject(obj objc.IObject) int AddItemWithTitle(title string) SelectItemWithTitle(title string) - SelectItemAtIndex(index int) - InsertItemWithTitleAtIndex(title string, index int) + ItemWithTitle(title string) MenuItem + IndexOfItemWithRepresentedObject(obj objc.IObject) int + ItemTitleAtIndex(index int) string SelectItem(item IMenuItem) - ItemTitles() []string - TitleOfSelectedItem() string - PreferredEdge() foundation.RectEdge - SetPreferredEdge(value foundation.RectEdge) - NumberOfItems() int - ItemArray() []MenuItem - PullsDown() bool - SetPullsDown(value bool) + IndexOfItem(item IMenuItem) int + AddItemsWithTitles(itemTitles []string) + SelectItemAtIndex(index int) + SynchronizeTitleAndSelectedItem() + IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int + IndexOfItemWithTitle(title string) int IndexOfSelectedItem() int + SelectedItem() MenuItem + ItemArray() []MenuItem AutoenablesItems() bool SetAutoenablesItems(value bool) - SelectedItem() MenuItem + PullsDown() bool + SetPullsDown(value bool) LastItem() MenuItem + NumberOfItems() int SelectedTag() int + TitleOfSelectedItem() string + ItemTitles() []string + PreferredEdge() foundation.RectEdge + SetPreferredEdge(value foundation.RectEdge) } // A control for selecting an item from a list. [Full Topic] @@ -101,16 +101,16 @@ func (p_ PopUpButton) Init() PopUpButton { return rv } -func (pc _PopUpButtonClass) ButtonWithTitleImageTargetAction(title string, image IImage, target objc.IObject, action objc.Selector) PopUpButton { - rv := objc.Call[PopUpButton](pc, objc.Sel("buttonWithTitle:image:target:action:"), title, image, target, action) +func (pc _PopUpButtonClass) CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) PopUpButton { + rv := objc.Call[PopUpButton](pc, objc.Sel("checkboxWithTitle:target:action:"), title, target, action) return rv } -// Creates a standard push button with a title and image. [Full Topic] +// Creates a standard checkbox with the title you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1644719-buttonwithtitle?language=objc -func PopUpButton_ButtonWithTitleImageTargetAction(title string, image IImage, target objc.IObject, action objc.Selector) PopUpButton { - return PopUpButtonClass.ButtonWithTitleImageTargetAction(title, image, target, action) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1644525-checkboxwithtitle?language=objc +func PopUpButton_CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) PopUpButton { + return PopUpButtonClass.CheckboxWithTitleTargetAction(title, target, action) } func (pc _PopUpButtonClass) ButtonWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) PopUpButton { @@ -125,18 +125,6 @@ func PopUpButton_ButtonWithTitleTargetAction(title string, target objc.IObject, return PopUpButtonClass.ButtonWithTitleTargetAction(title, target, action) } -func (pc _PopUpButtonClass) CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) PopUpButton { - rv := objc.Call[PopUpButton](pc, objc.Sel("checkboxWithTitle:target:action:"), title, target, action) - return rv -} - -// Creates a standard checkbox with the title you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1644525-checkboxwithtitle?language=objc -func PopUpButton_CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) PopUpButton { - return PopUpButtonClass.CheckboxWithTitleTargetAction(title, target, action) -} - func (pc _PopUpButtonClass) ButtonWithImageTargetAction(image IImage, target objc.IObject, action objc.Selector) PopUpButton { rv := objc.Call[PopUpButton](pc, objc.Sel("buttonWithImage:target:action:"), image, target, action) return rv @@ -175,41 +163,11 @@ func NewPopUpButtonWithFrame(frameRect foundation.Rect) PopUpButton { return instance } -// Returns the index of the menu item with the specified target and action. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535747-indexofitemwithtarget?language=objc -func (p_ PopUpButton) IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int { - rv := objc.Call[int](p_, objc.Sel("indexOfItemWithTarget:andAction:"), target, actionSelector) - return rv -} - -// Returns the menu item with the specified title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1524680-itemwithtitle?language=objc -func (p_ PopUpButton) ItemWithTitle(title string) MenuItem { - rv := objc.Call[MenuItem](p_, objc.Sel("itemWithTitle:"), title) - return rv -} - -// Removes the item at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1525241-removeitematindex?language=objc -func (p_ PopUpButton) RemoveItemAtIndex(index int) { - objc.Call[objc.Void](p_, objc.Sel("removeItemAtIndex:"), index) -} - -// Removes the item with the specified title from the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1530675-removeitemwithtitle?language=objc -func (p_ PopUpButton) RemoveItemWithTitle(title string) { - objc.Call[objc.Void](p_, objc.Sel("removeItemWithTitle:"), title) -} - -// Returns the index of the item with the specified title. [Full Topic] +// Returns the menu item at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535406-indexofitemwithtitle?language=objc -func (p_ PopUpButton) IndexOfItemWithTitle(title string) int { - rv := objc.Call[int](p_, objc.Sel("indexOfItemWithTitle:"), title) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535860-itematindex?language=objc +func (p_ PopUpButton) ItemAtIndex(index int) MenuItem { + rv := objc.Call[MenuItem](p_, objc.Sel("itemAtIndex:"), index) return rv } @@ -221,27 +179,11 @@ func (p_ PopUpButton) IndexOfItemWithTag(tag int) int { return rv } -// Adds multiple items to the end of the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1532518-additemswithtitles?language=objc -func (p_ PopUpButton) AddItemsWithTitles(itemTitles []string) { - objc.Call[objc.Void](p_, objc.Sel("addItemsWithTitles:"), itemTitles) -} - -// Returns the title of the item at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1524908-itemtitleatindex?language=objc -func (p_ PopUpButton) ItemTitleAtIndex(index int) string { - rv := objc.Call[string](p_, objc.Sel("itemTitleAtIndex:"), index) - return rv -} - -// Returns the index of the specified menu item. [Full Topic] +// Inserts an item at the specified position in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1529708-indexofitem?language=objc -func (p_ PopUpButton) IndexOfItem(item IMenuItem) int { - rv := objc.Call[int](p_, objc.Sel("indexOfItem:"), item) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1533750-insertitemwithtitle?language=objc +func (p_ PopUpButton) InsertItemWithTitleAtIndex(title string, index int) { + objc.Call[objc.Void](p_, objc.Sel("insertItemWithTitle:atIndex:"), title, index) } // Removes all items in the receiver’s item menu. [Full Topic] @@ -251,11 +193,18 @@ func (p_ PopUpButton) RemoveAllItems() { objc.Call[objc.Void](p_, objc.Sel("removeAllItems")) } -// Ensures that the item being displayed by the receiver agrees with the selected item. [Full Topic] +// Removes the item at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1527124-synchronizetitleandselecteditem?language=objc -func (p_ PopUpButton) SynchronizeTitleAndSelectedItem() { - objc.Call[objc.Void](p_, objc.Sel("synchronizeTitleAndSelectedItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1525241-removeitematindex?language=objc +func (p_ PopUpButton) RemoveItemAtIndex(index int) { + objc.Call[objc.Void](p_, objc.Sel("removeItemAtIndex:"), index) +} + +// Removes the item with the specified title from the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1530675-removeitemwithtitle?language=objc +func (p_ PopUpButton) RemoveItemWithTitle(title string) { + objc.Call[objc.Void](p_, objc.Sel("removeItemWithTitle:"), title) } // Selects the menu item with the specified tag. [Full Topic] @@ -266,22 +215,6 @@ func (p_ PopUpButton) SelectItemWithTag(tag int) bool { return rv } -// Returns the menu item at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535860-itematindex?language=objc -func (p_ PopUpButton) ItemAtIndex(index int) MenuItem { - rv := objc.Call[MenuItem](p_, objc.Sel("itemAtIndex:"), index) - return rv -} - -// Returns the index of the menu item that holds the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1533993-indexofitemwithrepresentedobject?language=objc -func (p_ PopUpButton) IndexOfItemWithRepresentedObject(obj objc.IObject) int { - rv := objc.Call[int](p_, objc.Sel("indexOfItemWithRepresentedObject:"), obj) - return rv -} - // Adds an item with the specified title to the end of the menu. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1529500-additemwithtitle?language=objc @@ -296,18 +229,28 @@ func (p_ PopUpButton) SelectItemWithTitle(title string) { objc.Call[objc.Void](p_, objc.Sel("selectItemWithTitle:"), title) } -// Selects the item in the menu at the specified index. [Full Topic] +// Returns the menu item with the specified title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534906-selectitematindex?language=objc -func (p_ PopUpButton) SelectItemAtIndex(index int) { - objc.Call[objc.Void](p_, objc.Sel("selectItemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1524680-itemwithtitle?language=objc +func (p_ PopUpButton) ItemWithTitle(title string) MenuItem { + rv := objc.Call[MenuItem](p_, objc.Sel("itemWithTitle:"), title) + return rv } -// Inserts an item at the specified position in the menu. [Full Topic] +// Returns the index of the menu item that holds the specified represented object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1533750-insertitemwithtitle?language=objc -func (p_ PopUpButton) InsertItemWithTitleAtIndex(title string, index int) { - objc.Call[objc.Void](p_, objc.Sel("insertItemWithTitle:atIndex:"), title, index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1533993-indexofitemwithrepresentedobject?language=objc +func (p_ PopUpButton) IndexOfItemWithRepresentedObject(obj objc.IObject) int { + rv := objc.Call[int](p_, objc.Sel("indexOfItemWithRepresentedObject:"), obj) + return rv +} + +// Returns the title of the item at the specified index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1524908-itemtitleatindex?language=objc +func (p_ PopUpButton) ItemTitleAtIndex(index int) string { + rv := objc.Call[string](p_, objc.Sel("itemTitleAtIndex:"), index) + return rv } // Selects the specified menu item. [Full Topic] @@ -317,73 +260,72 @@ func (p_ PopUpButton) SelectItem(item IMenuItem) { objc.Call[objc.Void](p_, objc.Sel("selectItem:"), item) } -// An array of strings corresponding to the titles of the items in the menu. [Full Topic] +// Returns the index of the specified menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1529271-itemtitles?language=objc -func (p_ PopUpButton) ItemTitles() []string { - rv := objc.Call[[]string](p_, objc.Sel("itemTitles")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1529708-indexofitem?language=objc +func (p_ PopUpButton) IndexOfItem(item IMenuItem) int { + rv := objc.Call[int](p_, objc.Sel("indexOfItem:"), item) return rv } -// The title of the item that was last selected by the user. [Full Topic] +// Adds multiple items to the end of the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534038-titleofselecteditem?language=objc -func (p_ PopUpButton) TitleOfSelectedItem() string { - rv := objc.Call[string](p_, objc.Sel("titleOfSelectedItem")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1532518-additemswithtitles?language=objc +func (p_ PopUpButton) AddItemsWithTitles(itemTitles []string) { + objc.Call[objc.Void](p_, objc.Sel("addItemsWithTitles:"), itemTitles) } -// The edge of the button on which to display the menu when screen space is constrained. [Full Topic] +// Selects the item in the menu at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535345-preferrededge?language=objc -func (p_ PopUpButton) PreferredEdge() foundation.RectEdge { - rv := objc.Call[foundation.RectEdge](p_, objc.Sel("preferredEdge")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534906-selectitematindex?language=objc +func (p_ PopUpButton) SelectItemAtIndex(index int) { + objc.Call[objc.Void](p_, objc.Sel("selectItemAtIndex:"), index) } -// The edge of the button on which to display the menu when screen space is constrained. [Full Topic] +// Ensures that the item being displayed by the receiver agrees with the selected item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535345-preferrededge?language=objc -func (p_ PopUpButton) SetPreferredEdge(value foundation.RectEdge) { - objc.Call[objc.Void](p_, objc.Sel("setPreferredEdge:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1527124-synchronizetitleandselecteditem?language=objc +func (p_ PopUpButton) SynchronizeTitleAndSelectedItem() { + objc.Call[objc.Void](p_, objc.Sel("synchronizeTitleAndSelectedItem")) } -// The number of items in the menu. [Full Topic] +// Returns the index of the menu item with the specified target and action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534959-numberofitems?language=objc -func (p_ PopUpButton) NumberOfItems() int { - rv := objc.Call[int](p_, objc.Sel("numberOfItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535747-indexofitemwithtarget?language=objc +func (p_ PopUpButton) IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int { + rv := objc.Call[int](p_, objc.Sel("indexOfItemWithTarget:andAction:"), target, actionSelector) return rv } -// The array of menu item objects associated with the button. [Full Topic] +// Returns the index of the item with the specified title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535361-itemarray?language=objc -func (p_ PopUpButton) ItemArray() []MenuItem { - rv := objc.Call[[]MenuItem](p_, objc.Sel("itemArray")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535406-indexofitemwithtitle?language=objc +func (p_ PopUpButton) IndexOfItemWithTitle(title string) int { + rv := objc.Call[int](p_, objc.Sel("indexOfItemWithTitle:"), title) return rv } -// A Boolean value indicating whether the button displays a pull-down or pop-up menu. [Full Topic] +// The index of the item that was last selected by the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1532070-pullsdown?language=objc -func (p_ PopUpButton) PullsDown() bool { - rv := objc.Call[bool](p_, objc.Sel("pullsDown")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534134-indexofselecteditem?language=objc +func (p_ PopUpButton) IndexOfSelectedItem() int { + rv := objc.Call[int](p_, objc.Sel("indexOfSelectedItem")) return rv } -// A Boolean value indicating whether the button displays a pull-down or pop-up menu. [Full Topic] +// The menu item that was last selected by the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1532070-pullsdown?language=objc -func (p_ PopUpButton) SetPullsDown(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setPullsDown:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1526197-selecteditem?language=objc +func (p_ PopUpButton) SelectedItem() MenuItem { + rv := objc.Call[MenuItem](p_, objc.Sel("selectedItem")) + return rv } -// The index of the item that was last selected by the user. [Full Topic] +// The array of menu item objects associated with the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534134-indexofselecteditem?language=objc -func (p_ PopUpButton) IndexOfSelectedItem() int { - rv := objc.Call[int](p_, objc.Sel("indexOfSelectedItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535361-itemarray?language=objc +func (p_ PopUpButton) ItemArray() []MenuItem { + rv := objc.Call[[]MenuItem](p_, objc.Sel("itemArray")) return rv } @@ -402,14 +344,21 @@ func (p_ PopUpButton) SetAutoenablesItems(value bool) { objc.Call[objc.Void](p_, objc.Sel("setAutoenablesItems:"), value) } -// The menu item that was last selected by the user. [Full Topic] +// A Boolean value indicating whether the button displays a pull-down or pop-up menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1526197-selecteditem?language=objc -func (p_ PopUpButton) SelectedItem() MenuItem { - rv := objc.Call[MenuItem](p_, objc.Sel("selectedItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1532070-pullsdown?language=objc +func (p_ PopUpButton) PullsDown() bool { + rv := objc.Call[bool](p_, objc.Sel("pullsDown")) return rv } +// A Boolean value indicating whether the button displays a pull-down or pop-up menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1532070-pullsdown?language=objc +func (p_ PopUpButton) SetPullsDown(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setPullsDown:"), value) +} + // The last item in the menu. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535371-lastitem?language=objc @@ -418,6 +367,14 @@ func (p_ PopUpButton) LastItem() MenuItem { return rv } +// The number of items in the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534959-numberofitems?language=objc +func (p_ PopUpButton) NumberOfItems() int { + rv := objc.Call[int](p_, objc.Sel("numberOfItems")) + return rv +} + // The tag of the menu item that was last selected by the user. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1577134-selectedtag?language=objc @@ -425,3 +382,34 @@ func (p_ PopUpButton) SelectedTag() int { rv := objc.Call[int](p_, objc.Sel("selectedTag")) return rv } + +// The title of the item that was last selected by the user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534038-titleofselecteditem?language=objc +func (p_ PopUpButton) TitleOfSelectedItem() string { + rv := objc.Call[string](p_, objc.Sel("titleOfSelectedItem")) + return rv +} + +// An array of strings corresponding to the titles of the items in the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1529271-itemtitles?language=objc +func (p_ PopUpButton) ItemTitles() []string { + rv := objc.Call[[]string](p_, objc.Sel("itemTitles")) + return rv +} + +// The edge of the button on which to display the menu when screen space is constrained. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535345-preferrededge?language=objc +func (p_ PopUpButton) PreferredEdge() foundation.RectEdge { + rv := objc.Call[foundation.RectEdge](p_, objc.Sel("preferredEdge")) + return rv +} + +// The edge of the button on which to display the menu when screen space is constrained. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535345-preferrededge?language=objc +func (p_ PopUpButton) SetPreferredEdge(value foundation.RectEdge) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredEdge:"), value) +} diff --git a/macos/appkit/pop_up_button_cell.gen.go b/macos/appkit/pop_up_button_cell.gen.go index 25c189b2..8041cb6c 100644 --- a/macos/appkit/pop_up_button_cell.gen.go +++ b/macos/appkit/pop_up_button_cell.gen.go @@ -19,47 +19,47 @@ type _PopUpButtonCellClass struct { // An interface definition for the [PopUpButtonCell] class. type IPopUpButtonCell interface { IMenuItemCell - SelectItemAtIndex(index int) - InsertItemWithTitleAtIndex(title string, index int) - AddItemWithTitle(title string) + ItemAtIndex(index int) MenuItem IndexOfItemWithTag(tag int) int - RemoveItemWithTitle(title string) - IndexOfItem(item IMenuItem) int - AttachPopUpWithFrameInView(cellFrame foundation.Rect, controlView IView) + InsertItemWithTitleAtIndex(title string, index int) RemoveAllItems() + RemoveItemAtIndex(index int) + RemoveItemWithTitle(title string) SelectItemWithTag(tag int) bool - IndexOfItemWithRepresentedObject(obj objc.IObject) int - SynchronizeTitleAndSelectedItem() + AddItemWithTitle(title string) + SelectItemWithTitle(title string) + DismissPopUp() ItemWithTitle(title string) MenuItem - AddItemsWithTitles(itemTitles []string) + IndexOfItemWithRepresentedObject(obj objc.IObject) int + ItemTitleAtIndex(index int) string SelectItem(item IMenuItem) + IndexOfItem(item IMenuItem) int PerformClickWithFrameInView(frame foundation.Rect, controlView IView) - RemoveItemAtIndex(index int) - SelectItemWithTitle(title string) - ItemTitleAtIndex(index int) string - ItemAtIndex(index int) MenuItem + AddItemsWithTitles(itemTitles []string) + SelectItemAtIndex(index int) + SynchronizeTitleAndSelectedItem() IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int - DismissPopUp() IndexOfItemWithTitle(title string) int + AttachPopUpWithFrameInView(cellFrame foundation.Rect, controlView IView) + AltersStateOfSelectedItem() bool + SetAltersStateOfSelectedItem(value bool) + IndexOfSelectedItem() int + SelectedItem() MenuItem + ArrowPosition() PopUpArrowPosition + SetArrowPosition(value PopUpArrowPosition) + ItemArray() []MenuItem AutoenablesItems() bool SetAutoenablesItems(value bool) - SelectedItem() MenuItem - UsesItemFromMenu() bool - SetUsesItemFromMenu(value bool) PullsDown() bool SetPullsDown(value bool) + LastItem() MenuItem NumberOfItems() int - ItemTitles() []string - AltersStateOfSelectedItem() bool - SetAltersStateOfSelectedItem(value bool) - ItemArray() []MenuItem TitleOfSelectedItem() string - IndexOfSelectedItem() int + ItemTitles() []string PreferredEdge() foundation.RectEdge SetPreferredEdge(value foundation.RectEdge) - ArrowPosition() PopUpArrowPosition - SetArrowPosition(value PopUpArrowPosition) - LastItem() MenuItem + UsesItemFromMenu() bool + SetUsesItemFromMenu(value bool) } // The NSPopUpButtonCell class defines the visual appearance of pop-up buttons that display pop-up or pull-down menus. Pop-up menus present the user with a set of choices, much the way radio buttons do, but using much less space. Pull-down menus also provide a set of choices but present the information in a slightly different way, usually to provide a set of commands from which the user can choose. [Full Topic] @@ -137,11 +137,20 @@ func NewPopUpButtonCellImageCell(image IImage) PopUpButtonCell { return instance } -// Selects the item in the menu at the specified index. [Full Topic] +// Returns the menu item at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534855-selectitematindex?language=objc -func (p_ PopUpButtonCell) SelectItemAtIndex(index int) { - objc.Call[objc.Void](p_, objc.Sel("selectItemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1525784-itematindex?language=objc +func (p_ PopUpButtonCell) ItemAtIndex(index int) MenuItem { + rv := objc.Call[MenuItem](p_, objc.Sel("itemAtIndex:"), index) + return rv +} + +// Returns the index of the menu item with the specified tag. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1527486-indexofitemwithtag?language=objc +func (p_ PopUpButtonCell) IndexOfItemWithTag(tag int) int { + rv := objc.Call[int](p_, objc.Sel("indexOfItemWithTag:"), tag) + return rv } // Inserts an item at the specified position in the menu. [Full Topic] @@ -151,19 +160,18 @@ func (p_ PopUpButtonCell) InsertItemWithTitleAtIndex(title string, index int) { objc.Call[objc.Void](p_, objc.Sel("insertItemWithTitle:atIndex:"), title, index) } -// Adds an item with the specified title to the end of the menu. [Full Topic] +// Removes all items in the receiver’s item menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1526296-additemwithtitle?language=objc -func (p_ PopUpButtonCell) AddItemWithTitle(title string) { - objc.Call[objc.Void](p_, objc.Sel("addItemWithTitle:"), title) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534852-removeallitems?language=objc +func (p_ PopUpButtonCell) RemoveAllItems() { + objc.Call[objc.Void](p_, objc.Sel("removeAllItems")) } -// Returns the index of the menu item with the specified tag. [Full Topic] +// Removes the item at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1527486-indexofitemwithtag?language=objc -func (p_ PopUpButtonCell) IndexOfItemWithTag(tag int) int { - rv := objc.Call[int](p_, objc.Sel("indexOfItemWithTag:"), tag) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1528201-removeitematindex?language=objc +func (p_ PopUpButtonCell) RemoveItemAtIndex(index int) { + objc.Call[objc.Void](p_, objc.Sel("removeItemAtIndex:"), index) } // Removes the item with the specified title from the menu. [Full Topic] @@ -173,33 +181,40 @@ func (p_ PopUpButtonCell) RemoveItemWithTitle(title string) { objc.Call[objc.Void](p_, objc.Sel("removeItemWithTitle:"), title) } -// Returns the index of the specified menu item. [Full Topic] +// Selects the menu item with the specified tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1532397-indexofitem?language=objc -func (p_ PopUpButtonCell) IndexOfItem(item IMenuItem) int { - rv := objc.Call[int](p_, objc.Sel("indexOfItem:"), item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534888-selectitemwithtag?language=objc +func (p_ PopUpButtonCell) SelectItemWithTag(tag int) bool { + rv := objc.Call[bool](p_, objc.Sel("selectItemWithTag:"), tag) return rv } -// Sets up the receiver to display a menu. [Full Topic] +// Adds an item with the specified title to the end of the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1531648-attachpopupwithframe?language=objc -func (p_ PopUpButtonCell) AttachPopUpWithFrameInView(cellFrame foundation.Rect, controlView IView) { - objc.Call[objc.Void](p_, objc.Sel("attachPopUpWithFrame:inView:"), cellFrame, controlView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1526296-additemwithtitle?language=objc +func (p_ PopUpButtonCell) AddItemWithTitle(title string) { + objc.Call[objc.Void](p_, objc.Sel("addItemWithTitle:"), title) } -// Removes all items in the receiver’s item menu. [Full Topic] +// Selects the item with the specified title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534852-removeallitems?language=objc -func (p_ PopUpButtonCell) RemoveAllItems() { - objc.Call[objc.Void](p_, objc.Sel("removeAllItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534289-selectitemwithtitle?language=objc +func (p_ PopUpButtonCell) SelectItemWithTitle(title string) { + objc.Call[objc.Void](p_, objc.Sel("selectItemWithTitle:"), title) } -// Selects the menu item with the specified tag. [Full Topic] +// Dismisses the pop-up button’s menu by ordering its window out. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534888-selectitemwithtag?language=objc -func (p_ PopUpButtonCell) SelectItemWithTag(tag int) bool { - rv := objc.Call[bool](p_, objc.Sel("selectItemWithTag:"), tag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1535041-dismisspopup?language=objc +func (p_ PopUpButtonCell) DismissPopUp() { + objc.Call[objc.Void](p_, objc.Sel("dismissPopUp")) +} + +// Returns the menu item with the specified title. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534638-itemwithtitle?language=objc +func (p_ PopUpButtonCell) ItemWithTitle(title string) MenuItem { + rv := objc.Call[MenuItem](p_, objc.Sel("itemWithTitle:"), title) return rv } @@ -211,28 +226,14 @@ func (p_ PopUpButtonCell) IndexOfItemWithRepresentedObject(obj objc.IObject) int return rv } -// Synchronizes the pop-up button’s displayed item with the currently selected menu item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1535190-synchronizetitleandselecteditem?language=objc -func (p_ PopUpButtonCell) SynchronizeTitleAndSelectedItem() { - objc.Call[objc.Void](p_, objc.Sel("synchronizeTitleAndSelectedItem")) -} - -// Returns the menu item with the specified title. [Full Topic] +// Returns the title of the item at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534638-itemwithtitle?language=objc -func (p_ PopUpButtonCell) ItemWithTitle(title string) MenuItem { - rv := objc.Call[MenuItem](p_, objc.Sel("itemWithTitle:"), title) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534248-itemtitleatindex?language=objc +func (p_ PopUpButtonCell) ItemTitleAtIndex(index int) string { + rv := objc.Call[string](p_, objc.Sel("itemTitleAtIndex:"), index) return rv } -// Adds multiple items to the end of the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1530154-additemswithtitles?language=objc -func (p_ PopUpButtonCell) AddItemsWithTitles(itemTitles []string) { - objc.Call[objc.Void](p_, objc.Sel("addItemsWithTitles:"), itemTitles) -} - // Selects the specified menu item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1525225-selectitem?language=objc @@ -240,6 +241,14 @@ func (p_ PopUpButtonCell) SelectItem(item IMenuItem) { objc.Call[objc.Void](p_, objc.Sel("selectItem:"), item) } +// Returns the index of the specified menu item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1532397-indexofitem?language=objc +func (p_ PopUpButtonCell) IndexOfItem(item IMenuItem) int { + rv := objc.Call[int](p_, objc.Sel("indexOfItem:"), item) + return rv +} + // Displays the receiver’s menu and track mouse events in it. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1530205-performclickwithframe?language=objc @@ -247,34 +256,25 @@ func (p_ PopUpButtonCell) PerformClickWithFrameInView(frame foundation.Rect, con objc.Call[objc.Void](p_, objc.Sel("performClickWithFrame:inView:"), frame, controlView) } -// Removes the item at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1528201-removeitematindex?language=objc -func (p_ PopUpButtonCell) RemoveItemAtIndex(index int) { - objc.Call[objc.Void](p_, objc.Sel("removeItemAtIndex:"), index) -} - -// Selects the item with the specified title. [Full Topic] +// Adds multiple items to the end of the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534289-selectitemwithtitle?language=objc -func (p_ PopUpButtonCell) SelectItemWithTitle(title string) { - objc.Call[objc.Void](p_, objc.Sel("selectItemWithTitle:"), title) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1530154-additemswithtitles?language=objc +func (p_ PopUpButtonCell) AddItemsWithTitles(itemTitles []string) { + objc.Call[objc.Void](p_, objc.Sel("addItemsWithTitles:"), itemTitles) } -// Returns the title of the item at the specified index. [Full Topic] +// Selects the item in the menu at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534248-itemtitleatindex?language=objc -func (p_ PopUpButtonCell) ItemTitleAtIndex(index int) string { - rv := objc.Call[string](p_, objc.Sel("itemTitleAtIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534855-selectitematindex?language=objc +func (p_ PopUpButtonCell) SelectItemAtIndex(index int) { + objc.Call[objc.Void](p_, objc.Sel("selectItemAtIndex:"), index) } -// Returns the menu item at the specified index. [Full Topic] +// Synchronizes the pop-up button’s displayed item with the currently selected menu item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1525784-itematindex?language=objc -func (p_ PopUpButtonCell) ItemAtIndex(index int) MenuItem { - rv := objc.Call[MenuItem](p_, objc.Sel("itemAtIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1535190-synchronizetitleandselecteditem?language=objc +func (p_ PopUpButtonCell) SynchronizeTitleAndSelectedItem() { + objc.Call[objc.Void](p_, objc.Sel("synchronizeTitleAndSelectedItem")) } // Returns the index of the menu item with the specified target and action. [Full Topic] @@ -285,13 +285,6 @@ func (p_ PopUpButtonCell) IndexOfItemWithTargetAndAction(target objc.IObject, ac return rv } -// Dismisses the pop-up button’s menu by ordering its window out. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1535041-dismisspopup?language=objc -func (p_ PopUpButtonCell) DismissPopUp() { - objc.Call[objc.Void](p_, objc.Sel("dismissPopUp")) -} - // Returns the index of the item with the specified title. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1532244-indexofitemwithtitle?language=objc @@ -300,19 +293,34 @@ func (p_ PopUpButtonCell) IndexOfItemWithTitle(title string) int { return rv } -// A Boolean value that indicates if the button automatically enables and disables its items every time a user event occurs. [Full Topic] +// Sets up the receiver to display a menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1530889-autoenablesitems?language=objc -func (p_ PopUpButtonCell) AutoenablesItems() bool { - rv := objc.Call[bool](p_, objc.Sel("autoenablesItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1531648-attachpopupwithframe?language=objc +func (p_ PopUpButtonCell) AttachPopUpWithFrameInView(cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](p_, objc.Sel("attachPopUpWithFrame:inView:"), cellFrame, controlView) +} + +// A Boolean value that indicates if the pop-up button links the state of the selected menu item to the current selection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1528446-altersstateofselecteditem?language=objc +func (p_ PopUpButtonCell) AltersStateOfSelectedItem() bool { + rv := objc.Call[bool](p_, objc.Sel("altersStateOfSelectedItem")) return rv } -// A Boolean value that indicates if the button automatically enables and disables its items every time a user event occurs. [Full Topic] +// A Boolean value that indicates if the pop-up button links the state of the selected menu item to the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1530889-autoenablesitems?language=objc -func (p_ PopUpButtonCell) SetAutoenablesItems(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAutoenablesItems:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1528446-altersstateofselecteditem?language=objc +func (p_ PopUpButtonCell) SetAltersStateOfSelectedItem(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAltersStateOfSelectedItem:"), value) +} + +// The index of the item last selected by the user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534937-indexofselecteditem?language=objc +func (p_ PopUpButtonCell) IndexOfSelectedItem() int { + rv := objc.Call[int](p_, objc.Sel("indexOfSelectedItem")) + return rv } // The menu item last selected by the user. [Full Topic] @@ -323,72 +331,72 @@ func (p_ PopUpButtonCell) SelectedItem() MenuItem { return rv } -// A Boolean value that indicates if the control uses an item from the menu for its own title. [Full Topic] +// The position of the arrow displayed on the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534951-usesitemfrommenu?language=objc -func (p_ PopUpButtonCell) UsesItemFromMenu() bool { - rv := objc.Call[bool](p_, objc.Sel("usesItemFromMenu")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534598-arrowposition?language=objc +func (p_ PopUpButtonCell) ArrowPosition() PopUpArrowPosition { + rv := objc.Call[PopUpArrowPosition](p_, objc.Sel("arrowPosition")) return rv } -// A Boolean value that indicates if the control uses an item from the menu for its own title. [Full Topic] +// The position of the arrow displayed on the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534951-usesitemfrommenu?language=objc -func (p_ PopUpButtonCell) SetUsesItemFromMenu(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setUsesItemFromMenu:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534598-arrowposition?language=objc +func (p_ PopUpButtonCell) SetArrowPosition(value PopUpArrowPosition) { + objc.Call[objc.Void](p_, objc.Sel("setArrowPosition:"), value) } -// A Boolean value that indicates the behavior of the button’s menu. [Full Topic] +// An array of NSMenuItem objects that represent the items in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1529949-pullsdown?language=objc -func (p_ PopUpButtonCell) PullsDown() bool { - rv := objc.Call[bool](p_, objc.Sel("pullsDown")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1533757-itemarray?language=objc +func (p_ PopUpButtonCell) ItemArray() []MenuItem { + rv := objc.Call[[]MenuItem](p_, objc.Sel("itemArray")) return rv } -// A Boolean value that indicates the behavior of the button’s menu. [Full Topic] +// A Boolean value that indicates if the button automatically enables and disables its items every time a user event occurs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1529949-pullsdown?language=objc -func (p_ PopUpButtonCell) SetPullsDown(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setPullsDown:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1530889-autoenablesitems?language=objc +func (p_ PopUpButtonCell) AutoenablesItems() bool { + rv := objc.Call[bool](p_, objc.Sel("autoenablesItems")) + return rv } -// The number of items in the menu. [Full Topic] +// A Boolean value that indicates if the button automatically enables and disables its items every time a user event occurs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1533633-numberofitems?language=objc -func (p_ PopUpButtonCell) NumberOfItems() int { - rv := objc.Call[int](p_, objc.Sel("numberOfItems")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1530889-autoenablesitems?language=objc +func (p_ PopUpButtonCell) SetAutoenablesItems(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAutoenablesItems:"), value) } -// An array of NSString objects containing the titles of every item in the menu. [Full Topic] +// A Boolean value that indicates the behavior of the button’s menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1532067-itemtitles?language=objc -func (p_ PopUpButtonCell) ItemTitles() []string { - rv := objc.Call[[]string](p_, objc.Sel("itemTitles")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1529949-pullsdown?language=objc +func (p_ PopUpButtonCell) PullsDown() bool { + rv := objc.Call[bool](p_, objc.Sel("pullsDown")) return rv } -// A Boolean value that indicates if the pop-up button links the state of the selected menu item to the current selection. [Full Topic] +// A Boolean value that indicates the behavior of the button’s menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1528446-altersstateofselecteditem?language=objc -func (p_ PopUpButtonCell) AltersStateOfSelectedItem() bool { - rv := objc.Call[bool](p_, objc.Sel("altersStateOfSelectedItem")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1529949-pullsdown?language=objc +func (p_ PopUpButtonCell) SetPullsDown(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setPullsDown:"), value) } -// A Boolean value that indicates if the pop-up button links the state of the selected menu item to the current selection. [Full Topic] +// The last item in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1528446-altersstateofselecteditem?language=objc -func (p_ PopUpButtonCell) SetAltersStateOfSelectedItem(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAltersStateOfSelectedItem:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1535415-lastitem?language=objc +func (p_ PopUpButtonCell) LastItem() MenuItem { + rv := objc.Call[MenuItem](p_, objc.Sel("lastItem")) + return rv } -// An array of NSMenuItem objects that represent the items in the menu. [Full Topic] +// The number of items in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1533757-itemarray?language=objc -func (p_ PopUpButtonCell) ItemArray() []MenuItem { - rv := objc.Call[[]MenuItem](p_, objc.Sel("itemArray")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1533633-numberofitems?language=objc +func (p_ PopUpButtonCell) NumberOfItems() int { + rv := objc.Call[int](p_, objc.Sel("numberOfItems")) return rv } @@ -400,11 +408,11 @@ func (p_ PopUpButtonCell) TitleOfSelectedItem() string { return rv } -// The index of the item last selected by the user. [Full Topic] +// An array of NSString objects containing the titles of every item in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534937-indexofselecteditem?language=objc -func (p_ PopUpButtonCell) IndexOfSelectedItem() int { - rv := objc.Call[int](p_, objc.Sel("indexOfSelectedItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1532067-itemtitles?language=objc +func (p_ PopUpButtonCell) ItemTitles() []string { + rv := objc.Call[[]string](p_, objc.Sel("itemTitles")) return rv } @@ -423,25 +431,17 @@ func (p_ PopUpButtonCell) SetPreferredEdge(value foundation.RectEdge) { objc.Call[objc.Void](p_, objc.Sel("setPreferredEdge:"), value) } -// The position of the arrow displayed on the button. [Full Topic] +// A Boolean value that indicates if the control uses an item from the menu for its own title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534598-arrowposition?language=objc -func (p_ PopUpButtonCell) ArrowPosition() PopUpArrowPosition { - rv := objc.Call[PopUpArrowPosition](p_, objc.Sel("arrowPosition")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534951-usesitemfrommenu?language=objc +func (p_ PopUpButtonCell) UsesItemFromMenu() bool { + rv := objc.Call[bool](p_, objc.Sel("usesItemFromMenu")) return rv } -// The position of the arrow displayed on the button. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534598-arrowposition?language=objc -func (p_ PopUpButtonCell) SetArrowPosition(value PopUpArrowPosition) { - objc.Call[objc.Void](p_, objc.Sel("setArrowPosition:"), value) -} - -// The last item in the menu. [Full Topic] +// A Boolean value that indicates if the control uses an item from the menu for its own title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1535415-lastitem?language=objc -func (p_ PopUpButtonCell) LastItem() MenuItem { - rv := objc.Call[MenuItem](p_, objc.Sel("lastItem")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1534951-usesitemfrommenu?language=objc +func (p_ PopUpButtonCell) SetUsesItemFromMenu(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setUsesItemFromMenu:"), value) } diff --git a/macos/appkit/popover.gen.go b/macos/appkit/popover.gen.go index f9ab2105..8f9a1390 100644 --- a/macos/appkit/popover.gen.go +++ b/macos/appkit/popover.gen.go @@ -22,24 +22,24 @@ type IPopover interface { Close() ShowRelativeToRectOfViewPreferredEdge(positioningRect foundation.Rect, positioningView IView, preferredEdge foundation.RectEdge) PerformClose(sender objc.IObject) objc.Object + Behavior() PopoverBehavior + SetBehavior(value PopoverBehavior) + IsShown() bool + EffectiveAppearance() Appearance + IsDetached() bool Delegate() PopoverDelegateObject SetDelegate(value PPopoverDelegate) SetDelegateObject(valueObject objc.IObject) - PositioningRect() foundation.Rect - SetPositioningRect(value foundation.Rect) - Appearance() Appearance - SetAppearance(value IAppearance) - IsShown() bool - IsDetached() bool - Behavior() PopoverBehavior - SetBehavior(value PopoverBehavior) - Animates() bool - SetAnimates(value bool) ContentSize() foundation.Size SetContentSize(value foundation.Size) ContentViewController() ViewController SetContentViewController(value IViewController) - EffectiveAppearance() Appearance + PositioningRect() foundation.Rect + SetPositioningRect(value foundation.Rect) + Animates() bool + SetAnimates(value bool) + Appearance() Appearance + SetAppearance(value IAppearance) } // A means to display additional content related to existing content on the screen. [Full Topic] @@ -97,58 +97,19 @@ func (p_ Popover) PerformClose(sender objc.IObject) objc.Object { return rv } -// The delegate of the popover. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526708-delegate?language=objc -func (p_ Popover) Delegate() PopoverDelegateObject { - rv := objc.Call[PopoverDelegateObject](p_, objc.Sel("delegate")) - return rv -} - -// The delegate of the popover. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526708-delegate?language=objc -func (p_ Popover) SetDelegate(value PPopoverDelegate) { - po0 := objc.WrapAsProtocol("NSPopoverDelegate", value) - objc.SetAssociatedObject(p_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), po0) -} - -// The delegate of the popover. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526708-delegate?language=objc -func (p_ Popover) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), valueObject) -} - -// The rectangle within the positioning view relative to which the popover should be positioned. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526090-positioningrect?language=objc -func (p_ Popover) PositioningRect() foundation.Rect { - rv := objc.Call[foundation.Rect](p_, objc.Sel("positioningRect")) - return rv -} - -// The rectangle within the positioning view relative to which the popover should be positioned. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526090-positioningrect?language=objc -func (p_ Popover) SetPositioningRect(value foundation.Rect) { - objc.Call[objc.Void](p_, objc.Sel("setPositioningRect:"), value) -} - -// The appearance of the popover. [Full Topic] +// Specifies the behavior of the popover. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1529859-appearance?language=objc -func (p_ Popover) Appearance() Appearance { - rv := objc.Call[Appearance](p_, objc.Sel("appearance")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1533539-behavior?language=objc +func (p_ Popover) Behavior() PopoverBehavior { + rv := objc.Call[PopoverBehavior](p_, objc.Sel("behavior")) return rv } -// The appearance of the popover. [Full Topic] +// Specifies the behavior of the popover. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1529859-appearance?language=objc -func (p_ Popover) SetAppearance(value IAppearance) { - objc.Call[objc.Void](p_, objc.Sel("setAppearance:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1533539-behavior?language=objc +func (p_ Popover) SetBehavior(value PopoverBehavior) { + objc.Call[objc.Void](p_, objc.Sel("setBehavior:"), value) } // The display state of the popover. [Full Topic] @@ -159,6 +120,14 @@ func (p_ Popover) IsShown() bool { return rv } +// The appearance that will be used when the popover is displayed onscreen. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526863-effectiveappearance?language=objc +func (p_ Popover) EffectiveAppearance() Appearance { + rv := objc.Call[Appearance](p_, objc.Sel("effectiveAppearance")) + return rv +} + // A Boolean value that indicates whether the window created by a popover's detachment is automatically created. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1534278-detached?language=objc @@ -167,34 +136,28 @@ func (p_ Popover) IsDetached() bool { return rv } -// Specifies the behavior of the popover. [Full Topic] +// The delegate of the popover. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1533539-behavior?language=objc -func (p_ Popover) Behavior() PopoverBehavior { - rv := objc.Call[PopoverBehavior](p_, objc.Sel("behavior")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526708-delegate?language=objc +func (p_ Popover) Delegate() PopoverDelegateObject { + rv := objc.Call[PopoverDelegateObject](p_, objc.Sel("delegate")) return rv } -// Specifies the behavior of the popover. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1533539-behavior?language=objc -func (p_ Popover) SetBehavior(value PopoverBehavior) { - objc.Call[objc.Void](p_, objc.Sel("setBehavior:"), value) -} - -// Specifies if the popover is to be animated. [Full Topic] +// The delegate of the popover. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526527-animates?language=objc -func (p_ Popover) Animates() bool { - rv := objc.Call[bool](p_, objc.Sel("animates")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526708-delegate?language=objc +func (p_ Popover) SetDelegate(value PPopoverDelegate) { + po0 := objc.WrapAsProtocol("NSPopoverDelegate", value) + objc.SetAssociatedObject(p_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), po0) } -// Specifies if the popover is to be animated. [Full Topic] +// The delegate of the popover. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526527-animates?language=objc -func (p_ Popover) SetAnimates(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAnimates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526708-delegate?language=objc +func (p_ Popover) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), valueObject) } // The content size of the popover. [Full Topic] @@ -227,10 +190,47 @@ func (p_ Popover) SetContentViewController(value IViewController) { objc.Call[objc.Void](p_, objc.Sel("setContentViewController:"), value) } -// The appearance that will be used when the popover is displayed onscreen. [Full Topic] +// The rectangle within the positioning view relative to which the popover should be positioned. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526863-effectiveappearance?language=objc -func (p_ Popover) EffectiveAppearance() Appearance { - rv := objc.Call[Appearance](p_, objc.Sel("effectiveAppearance")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526090-positioningrect?language=objc +func (p_ Popover) PositioningRect() foundation.Rect { + rv := objc.Call[foundation.Rect](p_, objc.Sel("positioningRect")) return rv } + +// The rectangle within the positioning view relative to which the popover should be positioned. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526090-positioningrect?language=objc +func (p_ Popover) SetPositioningRect(value foundation.Rect) { + objc.Call[objc.Void](p_, objc.Sel("setPositioningRect:"), value) +} + +// Specifies if the popover is to be animated. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526527-animates?language=objc +func (p_ Popover) Animates() bool { + rv := objc.Call[bool](p_, objc.Sel("animates")) + return rv +} + +// Specifies if the popover is to be animated. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526527-animates?language=objc +func (p_ Popover) SetAnimates(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAnimates:"), value) +} + +// The appearance of the popover. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1529859-appearance?language=objc +func (p_ Popover) Appearance() Appearance { + rv := objc.Call[Appearance](p_, objc.Sel("appearance")) + return rv +} + +// The appearance of the popover. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1529859-appearance?language=objc +func (p_ Popover) SetAppearance(value IAppearance) { + objc.Call[objc.Void](p_, objc.Sel("setAppearance:"), value) +} diff --git a/macos/appkit/popover_delegate.gen.go b/macos/appkit/popover_delegate.gen.go index 61942976..79851444 100644 --- a/macos/appkit/popover_delegate.gen.go +++ b/macos/appkit/popover_delegate.gen.go @@ -11,85 +11,51 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate?language=objc type PPopoverDelegate interface { - // optional - PopoverDidDetach(popover Popover) - HasPopoverDidDetach() bool - - // optional - PopoverShouldClose(popover Popover) bool - HasPopoverShouldClose() bool - // optional PopoverWillShow(notification foundation.Notification) HasPopoverWillShow() bool + // optional + PopoverWillClose(notification foundation.Notification) + HasPopoverWillClose() bool + // optional PopoverDidShow(notification foundation.Notification) HasPopoverDidShow() bool // optional - PopoverShouldDetach(popover Popover) bool - HasPopoverShouldDetach() bool + PopoverDidDetach(popover Popover) + HasPopoverDidDetach() bool + + // optional + DetachableWindowForPopover(popover Popover) Window + HasDetachableWindowForPopover() bool // optional PopoverDidClose(notification foundation.Notification) HasPopoverDidClose() bool // optional - DetachableWindowForPopover(popover Popover) Window - HasDetachableWindowForPopover() bool + PopoverShouldClose(popover Popover) bool + HasPopoverShouldClose() bool // optional - PopoverWillClose(notification foundation.Notification) - HasPopoverWillClose() bool + PopoverShouldDetach(popover Popover) bool + HasPopoverShouldDetach() bool } // A delegate implementation builder for the [PPopoverDelegate] protocol. type PopoverDelegate struct { - _PopoverDidDetach func(popover Popover) - _PopoverShouldClose func(popover Popover) bool _PopoverWillShow func(notification foundation.Notification) + _PopoverWillClose func(notification foundation.Notification) _PopoverDidShow func(notification foundation.Notification) - _PopoverShouldDetach func(popover Popover) bool - _PopoverDidClose func(notification foundation.Notification) + _PopoverDidDetach func(popover Popover) _DetachableWindowForPopover func(popover Popover) Window - _PopoverWillClose func(notification foundation.Notification) -} - -func (di *PopoverDelegate) HasPopoverDidDetach() bool { - return di._PopoverDidDetach != nil -} - -// Indicates that a popover has been released while it's in an implicitly detached state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1524674-popoverdiddetach?language=objc -func (di *PopoverDelegate) SetPopoverDidDetach(f func(popover Popover)) { - di._PopoverDidDetach = f -} - -// Indicates that a popover has been released while it's in an implicitly detached state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1524674-popoverdiddetach?language=objc -func (di *PopoverDelegate) PopoverDidDetach(popover Popover) { - di._PopoverDidDetach(popover) -} -func (di *PopoverDelegate) HasPopoverShouldClose() bool { - return di._PopoverShouldClose != nil -} - -// Allows a delegate to override a close request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1532593-popovershouldclose?language=objc -func (di *PopoverDelegate) SetPopoverShouldClose(f func(popover Popover) bool) { - di._PopoverShouldClose = f + _PopoverDidClose func(notification foundation.Notification) + _PopoverShouldClose func(popover Popover) bool + _PopoverShouldDetach func(popover Popover) bool } -// Allows a delegate to override a close request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1532593-popovershouldclose?language=objc -func (di *PopoverDelegate) PopoverShouldClose(popover Popover) bool { - return di._PopoverShouldClose(popover) -} func (di *PopoverDelegate) HasPopoverWillShow() bool { return di._PopoverWillShow != nil } @@ -107,6 +73,23 @@ func (di *PopoverDelegate) SetPopoverWillShow(f func(notification foundation.Not func (di *PopoverDelegate) PopoverWillShow(notification foundation.Notification) { di._PopoverWillShow(notification) } +func (di *PopoverDelegate) HasPopoverWillClose() bool { + return di._PopoverWillClose != nil +} + +// Invoked when the popover is about to close. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1535119-popoverwillclose?language=objc +func (di *PopoverDelegate) SetPopoverWillClose(f func(notification foundation.Notification)) { + di._PopoverWillClose = f +} + +// Invoked when the popover is about to close. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1535119-popoverwillclose?language=objc +func (di *PopoverDelegate) PopoverWillClose(notification foundation.Notification) { + di._PopoverWillClose(notification) +} func (di *PopoverDelegate) HasPopoverDidShow() bool { return di._PopoverDidShow != nil } @@ -124,22 +107,39 @@ func (di *PopoverDelegate) SetPopoverDidShow(f func(notification foundation.Noti func (di *PopoverDelegate) PopoverDidShow(notification foundation.Notification) { di._PopoverDidShow(notification) } -func (di *PopoverDelegate) HasPopoverShouldDetach() bool { - return di._PopoverShouldDetach != nil +func (di *PopoverDelegate) HasPopoverDidDetach() bool { + return di._PopoverDidDetach != nil } -// Returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window. [Full Topic] +// Indicates that a popover has been released while it's in an implicitly detached state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1529911-popovershoulddetach?language=objc -func (di *PopoverDelegate) SetPopoverShouldDetach(f func(popover Popover) bool) { - di._PopoverShouldDetach = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1524674-popoverdiddetach?language=objc +func (di *PopoverDelegate) SetPopoverDidDetach(f func(popover Popover)) { + di._PopoverDidDetach = f } -// Returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window. [Full Topic] +// Indicates that a popover has been released while it's in an implicitly detached state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1529911-popovershoulddetach?language=objc -func (di *PopoverDelegate) PopoverShouldDetach(popover Popover) bool { - return di._PopoverShouldDetach(popover) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1524674-popoverdiddetach?language=objc +func (di *PopoverDelegate) PopoverDidDetach(popover Popover) { + di._PopoverDidDetach(popover) +} +func (di *PopoverDelegate) HasDetachableWindowForPopover() bool { + return di._DetachableWindowForPopover != nil +} + +// Detaches the popover creating a window containing the content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1534822-detachablewindowforpopover?language=objc +func (di *PopoverDelegate) SetDetachableWindowForPopover(f func(popover Popover) Window) { + di._DetachableWindowForPopover = f +} + +// Detaches the popover creating a window containing the content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1534822-detachablewindowforpopover?language=objc +func (di *PopoverDelegate) DetachableWindowForPopover(popover Popover) Window { + return di._DetachableWindowForPopover(popover) } func (di *PopoverDelegate) HasPopoverDidClose() bool { return di._PopoverDidClose != nil @@ -158,39 +158,39 @@ func (di *PopoverDelegate) SetPopoverDidClose(f func(notification foundation.Not func (di *PopoverDelegate) PopoverDidClose(notification foundation.Notification) { di._PopoverDidClose(notification) } -func (di *PopoverDelegate) HasDetachableWindowForPopover() bool { - return di._DetachableWindowForPopover != nil +func (di *PopoverDelegate) HasPopoverShouldClose() bool { + return di._PopoverShouldClose != nil } -// Detaches the popover creating a window containing the content. [Full Topic] +// Allows a delegate to override a close request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1534822-detachablewindowforpopover?language=objc -func (di *PopoverDelegate) SetDetachableWindowForPopover(f func(popover Popover) Window) { - di._DetachableWindowForPopover = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1532593-popovershouldclose?language=objc +func (di *PopoverDelegate) SetPopoverShouldClose(f func(popover Popover) bool) { + di._PopoverShouldClose = f } -// Detaches the popover creating a window containing the content. [Full Topic] +// Allows a delegate to override a close request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1534822-detachablewindowforpopover?language=objc -func (di *PopoverDelegate) DetachableWindowForPopover(popover Popover) Window { - return di._DetachableWindowForPopover(popover) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1532593-popovershouldclose?language=objc +func (di *PopoverDelegate) PopoverShouldClose(popover Popover) bool { + return di._PopoverShouldClose(popover) } -func (di *PopoverDelegate) HasPopoverWillClose() bool { - return di._PopoverWillClose != nil +func (di *PopoverDelegate) HasPopoverShouldDetach() bool { + return di._PopoverShouldDetach != nil } -// Invoked when the popover is about to close. [Full Topic] +// Returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1535119-popoverwillclose?language=objc -func (di *PopoverDelegate) SetPopoverWillClose(f func(notification foundation.Notification)) { - di._PopoverWillClose = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1529911-popovershoulddetach?language=objc +func (di *PopoverDelegate) SetPopoverShouldDetach(f func(popover Popover) bool) { + di._PopoverShouldDetach = f } -// Invoked when the popover is about to close. [Full Topic] +// Returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1535119-popoverwillclose?language=objc -func (di *PopoverDelegate) PopoverWillClose(notification foundation.Notification) { - di._PopoverWillClose(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1529911-popovershoulddetach?language=objc +func (di *PopoverDelegate) PopoverShouldDetach(popover Popover) bool { + return di._PopoverShouldDetach(popover) } // ensure impl type implements protocol interface @@ -201,29 +201,6 @@ type PopoverDelegateObject struct { objc.Object } -func (p_ PopoverDelegateObject) HasPopoverDidDetach() bool { - return p_.RespondsToSelector(objc.Sel("popoverDidDetach:")) -} - -// Indicates that a popover has been released while it's in an implicitly detached state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1524674-popoverdiddetach?language=objc -func (p_ PopoverDelegateObject) PopoverDidDetach(popover Popover) { - objc.Call[objc.Void](p_, objc.Sel("popoverDidDetach:"), popover) -} - -func (p_ PopoverDelegateObject) HasPopoverShouldClose() bool { - return p_.RespondsToSelector(objc.Sel("popoverShouldClose:")) -} - -// Allows a delegate to override a close request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1532593-popovershouldclose?language=objc -func (p_ PopoverDelegateObject) PopoverShouldClose(popover Popover) bool { - rv := objc.Call[bool](p_, objc.Sel("popoverShouldClose:"), popover) - return rv -} - func (p_ PopoverDelegateObject) HasPopoverWillShow() bool { return p_.RespondsToSelector(objc.Sel("popoverWillShow:")) } @@ -235,6 +212,17 @@ func (p_ PopoverDelegateObject) PopoverWillShow(notification foundation.Notifica objc.Call[objc.Void](p_, objc.Sel("popoverWillShow:"), notification) } +func (p_ PopoverDelegateObject) HasPopoverWillClose() bool { + return p_.RespondsToSelector(objc.Sel("popoverWillClose:")) +} + +// Invoked when the popover is about to close. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1535119-popoverwillclose?language=objc +func (p_ PopoverDelegateObject) PopoverWillClose(notification foundation.Notification) { + objc.Call[objc.Void](p_, objc.Sel("popoverWillClose:"), notification) +} + func (p_ PopoverDelegateObject) HasPopoverDidShow() bool { return p_.RespondsToSelector(objc.Sel("popoverDidShow:")) } @@ -246,15 +234,26 @@ func (p_ PopoverDelegateObject) PopoverDidShow(notification foundation.Notificat objc.Call[objc.Void](p_, objc.Sel("popoverDidShow:"), notification) } -func (p_ PopoverDelegateObject) HasPopoverShouldDetach() bool { - return p_.RespondsToSelector(objc.Sel("popoverShouldDetach:")) +func (p_ PopoverDelegateObject) HasPopoverDidDetach() bool { + return p_.RespondsToSelector(objc.Sel("popoverDidDetach:")) } -// Returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window. [Full Topic] +// Indicates that a popover has been released while it's in an implicitly detached state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1529911-popovershoulddetach?language=objc -func (p_ PopoverDelegateObject) PopoverShouldDetach(popover Popover) bool { - rv := objc.Call[bool](p_, objc.Sel("popoverShouldDetach:"), popover) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1524674-popoverdiddetach?language=objc +func (p_ PopoverDelegateObject) PopoverDidDetach(popover Popover) { + objc.Call[objc.Void](p_, objc.Sel("popoverDidDetach:"), popover) +} + +func (p_ PopoverDelegateObject) HasDetachableWindowForPopover() bool { + return p_.RespondsToSelector(objc.Sel("detachableWindowForPopover:")) +} + +// Detaches the popover creating a window containing the content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1534822-detachablewindowforpopover?language=objc +func (p_ PopoverDelegateObject) DetachableWindowForPopover(popover Popover) Window { + rv := objc.Call[Window](p_, objc.Sel("detachableWindowForPopover:"), popover) return rv } @@ -269,25 +268,26 @@ func (p_ PopoverDelegateObject) PopoverDidClose(notification foundation.Notifica objc.Call[objc.Void](p_, objc.Sel("popoverDidClose:"), notification) } -func (p_ PopoverDelegateObject) HasDetachableWindowForPopover() bool { - return p_.RespondsToSelector(objc.Sel("detachableWindowForPopover:")) +func (p_ PopoverDelegateObject) HasPopoverShouldClose() bool { + return p_.RespondsToSelector(objc.Sel("popoverShouldClose:")) } -// Detaches the popover creating a window containing the content. [Full Topic] +// Allows a delegate to override a close request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1534822-detachablewindowforpopover?language=objc -func (p_ PopoverDelegateObject) DetachableWindowForPopover(popover Popover) Window { - rv := objc.Call[Window](p_, objc.Sel("detachableWindowForPopover:"), popover) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1532593-popovershouldclose?language=objc +func (p_ PopoverDelegateObject) PopoverShouldClose(popover Popover) bool { + rv := objc.Call[bool](p_, objc.Sel("popoverShouldClose:"), popover) return rv } -func (p_ PopoverDelegateObject) HasPopoverWillClose() bool { - return p_.RespondsToSelector(objc.Sel("popoverWillClose:")) +func (p_ PopoverDelegateObject) HasPopoverShouldDetach() bool { + return p_.RespondsToSelector(objc.Sel("popoverShouldDetach:")) } -// Invoked when the popover is about to close. [Full Topic] +// Returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1535119-popoverwillclose?language=objc -func (p_ PopoverDelegateObject) PopoverWillClose(notification foundation.Notification) { - objc.Call[objc.Void](p_, objc.Sel("popoverWillClose:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1529911-popovershoulddetach?language=objc +func (p_ PopoverDelegateObject) PopoverShouldDetach(popover Popover) bool { + rv := objc.Call[bool](p_, objc.Sel("popoverShouldDetach:"), popover) + return rv } diff --git a/macos/appkit/popover_touch_bar_item.gen.go b/macos/appkit/popover_touch_bar_item.gen.go index 3960d418..2d933d43 100644 --- a/macos/appkit/popover_touch_bar_item.gen.go +++ b/macos/appkit/popover_touch_bar_item.gen.go @@ -18,22 +18,22 @@ type _PopoverTouchBarItemClass struct { // An interface definition for the [PopoverTouchBarItem] class. type IPopoverTouchBarItem interface { ITouchBarItem + ShowPopover(sender objc.IObject) DismissPopover(sender objc.IObject) MakeStandardActivatePopoverGestureRecognizer() GestureRecognizer - ShowPopover(sender objc.IObject) - PopoverTouchBar() TouchBar - SetPopoverTouchBar(value ITouchBar) - ShowsCloseButton() bool - SetShowsCloseButton(value bool) - SetCustomizationLabel(value string) - CollapsedRepresentation() View - SetCollapsedRepresentation(value IView) CollapsedRepresentationImage() Image SetCollapsedRepresentationImage(value IImage) - CollapsedRepresentationLabel() string - SetCollapsedRepresentationLabel(value string) PressAndHoldTouchBar() TouchBar SetPressAndHoldTouchBar(value ITouchBar) + SetCustomizationLabel(value string) + CollapsedRepresentationLabel() string + SetCollapsedRepresentationLabel(value string) + ShowsCloseButton() bool + SetShowsCloseButton(value bool) + PopoverTouchBar() TouchBar + SetPopoverTouchBar(value ITouchBar) + CollapsedRepresentation() View + SetCollapsedRepresentation(value IView) } // A bar item that provides a two-state control that can expand into its second state, showing the contents of a bar that it owns. [Full Topic] @@ -83,6 +83,13 @@ func NewPopoverTouchBarItemWithIdentifier(identifier TouchBarItemIdentifier) Pop return instance } +// Replaces the main bar with this item's popover bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544797-showpopover?language=objc +func (p_ PopoverTouchBarItem) ShowPopover(sender objc.IObject) { + objc.Call[objc.Void](p_, objc.Sel("showPopover:"), sender) +} + // Restores the previously visible main bar. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544697-dismisspopover?language=objc @@ -90,7 +97,7 @@ func (p_ PopoverTouchBarItem) DismissPopover(sender objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("dismissPopover:"), sender) } -// Returns a gesture recognizer, configured to invoke the [appkit/nspopovertouchbaritem/showpopover] method. [Full Topic] +// Returns a gesture recognizer, configured to invoke the showPopover: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544842-makestandardactivatepopovergestu?language=objc func (p_ PopoverTouchBarItem) MakeStandardActivatePopoverGestureRecognizer() GestureRecognizer { @@ -98,41 +105,34 @@ func (p_ PopoverTouchBarItem) MakeStandardActivatePopoverGestureRecognizer() Ges return rv } -// Replaces the main bar with this item's popover bar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544797-showpopover?language=objc -func (p_ PopoverTouchBarItem) ShowPopover(sender objc.IObject) { - objc.Call[objc.Void](p_, objc.Sel("showPopover:"), sender) -} - -// The bar displayed when this item is "popped." [Full Topic] +// The image displayed by the button for the default collapsed representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544856-popovertouchbar?language=objc -func (p_ PopoverTouchBarItem) PopoverTouchBar() TouchBar { - rv := objc.Call[TouchBar](p_, objc.Sel("popoverTouchBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544725-collapsedrepresentationimage?language=objc +func (p_ PopoverTouchBarItem) CollapsedRepresentationImage() Image { + rv := objc.Call[Image](p_, objc.Sel("collapsedRepresentationImage")) return rv } -// The bar displayed when this item is "popped." [Full Topic] +// The image displayed by the button for the default collapsed representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544856-popovertouchbar?language=objc -func (p_ PopoverTouchBarItem) SetPopoverTouchBar(value ITouchBar) { - objc.Call[objc.Void](p_, objc.Sel("setPopoverTouchBar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544725-collapsedrepresentationimage?language=objc +func (p_ PopoverTouchBarItem) SetCollapsedRepresentationImage(value IImage) { + objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentationImage:"), value) } -// A Boolean value that determines whether a close button should be shown on the popover bar. [Full Topic] +// The bar that is displayed when a user press-and-holds on the popover item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544711-showsclosebutton?language=objc -func (p_ PopoverTouchBarItem) ShowsCloseButton() bool { - rv := objc.Call[bool](p_, objc.Sel("showsCloseButton")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2646955-pressandholdtouchbar?language=objc +func (p_ PopoverTouchBarItem) PressAndHoldTouchBar() TouchBar { + rv := objc.Call[TouchBar](p_, objc.Sel("pressAndHoldTouchBar")) return rv } -// A Boolean value that determines whether a close button should be shown on the popover bar. [Full Topic] +// The bar that is displayed when a user press-and-holds on the popover item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544711-showsclosebutton?language=objc -func (p_ PopoverTouchBarItem) SetShowsCloseButton(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setShowsCloseButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2646955-pressandholdtouchbar?language=objc +func (p_ PopoverTouchBarItem) SetPressAndHoldTouchBar(value ITouchBar) { + objc.Call[objc.Void](p_, objc.Sel("setPressAndHoldTouchBar:"), value) } // The user-visible string identifying this item during bar customization. [Full Topic] @@ -142,62 +142,62 @@ func (p_ PopoverTouchBarItem) SetCustomizationLabel(value string) { objc.Call[objc.Void](p_, objc.Sel("setCustomizationLabel:"), value) } -// The view displayed when this item is displayed in its parent bar. [Full Topic] +// The localized string displayed by the button for the default collapsed representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544699-collapsedrepresentation?language=objc -func (p_ PopoverTouchBarItem) CollapsedRepresentation() View { - rv := objc.Call[View](p_, objc.Sel("collapsedRepresentation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544772-collapsedrepresentationlabel?language=objc +func (p_ PopoverTouchBarItem) CollapsedRepresentationLabel() string { + rv := objc.Call[string](p_, objc.Sel("collapsedRepresentationLabel")) return rv } -// The view displayed when this item is displayed in its parent bar. [Full Topic] +// The localized string displayed by the button for the default collapsed representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544699-collapsedrepresentation?language=objc -func (p_ PopoverTouchBarItem) SetCollapsedRepresentation(value IView) { - objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544772-collapsedrepresentationlabel?language=objc +func (p_ PopoverTouchBarItem) SetCollapsedRepresentationLabel(value string) { + objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentationLabel:"), value) } -// The image displayed by the button for the default collapsed representation. [Full Topic] +// A Boolean value that determines whether a close button should be shown on the popover bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544725-collapsedrepresentationimage?language=objc -func (p_ PopoverTouchBarItem) CollapsedRepresentationImage() Image { - rv := objc.Call[Image](p_, objc.Sel("collapsedRepresentationImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544711-showsclosebutton?language=objc +func (p_ PopoverTouchBarItem) ShowsCloseButton() bool { + rv := objc.Call[bool](p_, objc.Sel("showsCloseButton")) return rv } -// The image displayed by the button for the default collapsed representation. [Full Topic] +// A Boolean value that determines whether a close button should be shown on the popover bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544725-collapsedrepresentationimage?language=objc -func (p_ PopoverTouchBarItem) SetCollapsedRepresentationImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentationImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544711-showsclosebutton?language=objc +func (p_ PopoverTouchBarItem) SetShowsCloseButton(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setShowsCloseButton:"), value) } -// The localized string displayed by the button for the default collapsed representation. [Full Topic] +// The bar displayed when this item is "popped." [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544772-collapsedrepresentationlabel?language=objc -func (p_ PopoverTouchBarItem) CollapsedRepresentationLabel() string { - rv := objc.Call[string](p_, objc.Sel("collapsedRepresentationLabel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544856-popovertouchbar?language=objc +func (p_ PopoverTouchBarItem) PopoverTouchBar() TouchBar { + rv := objc.Call[TouchBar](p_, objc.Sel("popoverTouchBar")) return rv } -// The localized string displayed by the button for the default collapsed representation. [Full Topic] +// The bar displayed when this item is "popped." [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544772-collapsedrepresentationlabel?language=objc -func (p_ PopoverTouchBarItem) SetCollapsedRepresentationLabel(value string) { - objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentationLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544856-popovertouchbar?language=objc +func (p_ PopoverTouchBarItem) SetPopoverTouchBar(value ITouchBar) { + objc.Call[objc.Void](p_, objc.Sel("setPopoverTouchBar:"), value) } -// The bar that is displayed when a user press-and-holds on the popover item. [Full Topic] +// The view displayed when this item is displayed in its parent bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2646955-pressandholdtouchbar?language=objc -func (p_ PopoverTouchBarItem) PressAndHoldTouchBar() TouchBar { - rv := objc.Call[TouchBar](p_, objc.Sel("pressAndHoldTouchBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544699-collapsedrepresentation?language=objc +func (p_ PopoverTouchBarItem) CollapsedRepresentation() View { + rv := objc.Call[View](p_, objc.Sel("collapsedRepresentation")) return rv } -// The bar that is displayed when a user press-and-holds on the popover item. [Full Topic] +// The view displayed when this item is displayed in its parent bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2646955-pressandholdtouchbar?language=objc -func (p_ PopoverTouchBarItem) SetPressAndHoldTouchBar(value ITouchBar) { - objc.Call[objc.Void](p_, objc.Sel("setPressAndHoldTouchBar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544699-collapsedrepresentation?language=objc +func (p_ PopoverTouchBarItem) SetCollapsedRepresentation(value IView) { + objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentation:"), value) } diff --git a/macos/appkit/predicate_editor_row_template.gen.go b/macos/appkit/predicate_editor_row_template.gen.go index a0927d7f..69d4d51e 100644 --- a/macos/appkit/predicate_editor_row_template.gen.go +++ b/macos/appkit/predicate_editor_row_template.gen.go @@ -20,18 +20,18 @@ type _PredicateEditorRowTemplateClass struct { // An interface definition for the [PredicateEditorRowTemplate] class. type IPredicateEditorRowTemplate interface { objc.IObject - DisplayableSubpredicatesOfPredicate(predicate foundation.IPredicate) []foundation.Predicate SetPredicate(predicate foundation.IPredicate) + DisplayableSubpredicatesOfPredicate(predicate foundation.IPredicate) []foundation.Predicate MatchForPredicate(predicate foundation.IPredicate) float64 PredicateWithSubpredicates(subpredicates []foundation.IPredicate) foundation.Predicate + TemplateViews() []View + Options() uint + Operators() []foundation.Number RightExpressions() []foundation.Expression + RightExpressionAttributeType() coredata.AttributeType CompoundTypes() []foundation.Number - LeftExpressions() []foundation.Expression Modifier() foundation.ComparisonPredicateModifier - RightExpressionAttributeType() coredata.AttributeType - Operators() []foundation.Number - TemplateViews() []View - Options() uint + LeftExpressions() []foundation.Expression } // A template that describes available predicates and how to display them. [Full Topic] @@ -47,44 +47,30 @@ func PredicateEditorRowTemplateFrom(ptr unsafe.Pointer) PredicateEditorRowTempla } } -func (p_ PredicateEditorRowTemplate) InitWithCompoundTypes(compoundTypes []foundation.INumber) PredicateEditorRowTemplate { - rv := objc.Call[PredicateEditorRowTemplate](p_, objc.Sel("initWithCompoundTypes:"), compoundTypes) - return rv -} - -// Initializes and returns a row template suitable for displaying compound predicates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401177-initwithcompoundtypes?language=objc -func NewPredicateEditorRowTemplateWithCompoundTypes(compoundTypes []foundation.INumber) PredicateEditorRowTemplate { - instance := PredicateEditorRowTemplateClass.Alloc().InitWithCompoundTypes(compoundTypes) - instance.Autorelease() - return instance -} - -func (p_ PredicateEditorRowTemplate) InitWithLeftExpressionsRightExpressionAttributeTypeModifierOperatorsOptions(leftExpressions []foundation.IExpression, attributeType coredata.AttributeType, modifier foundation.ComparisonPredicateModifier, operators []foundation.INumber, options uint) PredicateEditorRowTemplate { - rv := objc.Call[PredicateEditorRowTemplate](p_, objc.Sel("initWithLeftExpressions:rightExpressionAttributeType:modifier:operators:options:"), leftExpressions, attributeType, modifier, operators, options) +func (p_ PredicateEditorRowTemplate) InitWithLeftExpressionsRightExpressionsModifierOperatorsOptions(leftExpressions []foundation.IExpression, rightExpressions []foundation.IExpression, modifier foundation.ComparisonPredicateModifier, operators []foundation.INumber, options uint) PredicateEditorRowTemplate { + rv := objc.Call[PredicateEditorRowTemplate](p_, objc.Sel("initWithLeftExpressions:rightExpressions:modifier:operators:options:"), leftExpressions, rightExpressions, modifier, operators, options) return rv } -// Initializes and returns a “pop-up-pop-up-view”–style row template. [Full Topic] +// Initializes and returns a “pop-up-pop-up-pop-up”–style row template. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401181-initwithleftexpressions?language=objc -func NewPredicateEditorRowTemplateWithLeftExpressionsRightExpressionAttributeTypeModifierOperatorsOptions(leftExpressions []foundation.IExpression, attributeType coredata.AttributeType, modifier foundation.ComparisonPredicateModifier, operators []foundation.INumber, options uint) PredicateEditorRowTemplate { - instance := PredicateEditorRowTemplateClass.Alloc().InitWithLeftExpressionsRightExpressionAttributeTypeModifierOperatorsOptions(leftExpressions, attributeType, modifier, operators, options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401175-initwithleftexpressions?language=objc +func NewPredicateEditorRowTemplateWithLeftExpressionsRightExpressionsModifierOperatorsOptions(leftExpressions []foundation.IExpression, rightExpressions []foundation.IExpression, modifier foundation.ComparisonPredicateModifier, operators []foundation.INumber, options uint) PredicateEditorRowTemplate { + instance := PredicateEditorRowTemplateClass.Alloc().InitWithLeftExpressionsRightExpressionsModifierOperatorsOptions(leftExpressions, rightExpressions, modifier, operators, options) instance.Autorelease() return instance } -func (p_ PredicateEditorRowTemplate) InitWithLeftExpressionsRightExpressionsModifierOperatorsOptions(leftExpressions []foundation.IExpression, rightExpressions []foundation.IExpression, modifier foundation.ComparisonPredicateModifier, operators []foundation.INumber, options uint) PredicateEditorRowTemplate { - rv := objc.Call[PredicateEditorRowTemplate](p_, objc.Sel("initWithLeftExpressions:rightExpressions:modifier:operators:options:"), leftExpressions, rightExpressions, modifier, operators, options) +func (p_ PredicateEditorRowTemplate) InitWithCompoundTypes(compoundTypes []foundation.INumber) PredicateEditorRowTemplate { + rv := objc.Call[PredicateEditorRowTemplate](p_, objc.Sel("initWithCompoundTypes:"), compoundTypes) return rv } -// Initializes and returns a “pop-up-pop-up-pop-up”–style row template. [Full Topic] +// Initializes and returns a row template suitable for displaying compound predicates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401175-initwithleftexpressions?language=objc -func NewPredicateEditorRowTemplateWithLeftExpressionsRightExpressionsModifierOperatorsOptions(leftExpressions []foundation.IExpression, rightExpressions []foundation.IExpression, modifier foundation.ComparisonPredicateModifier, operators []foundation.INumber, options uint) PredicateEditorRowTemplate { - instance := PredicateEditorRowTemplateClass.Alloc().InitWithLeftExpressionsRightExpressionsModifierOperatorsOptions(leftExpressions, rightExpressions, modifier, operators, options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401177-initwithcompoundtypes?language=objc +func NewPredicateEditorRowTemplateWithCompoundTypes(compoundTypes []foundation.INumber) PredicateEditorRowTemplate { + instance := PredicateEditorRowTemplateClass.Alloc().InitWithCompoundTypes(compoundTypes) instance.Autorelease() return instance } @@ -109,14 +95,21 @@ func (p_ PredicateEditorRowTemplate) Init() PredicateEditorRowTemplate { return rv } -// Returns the subpredicates that should be made sub-rows of a given predicate. [Full Topic] +// Returns an array of predicate templates for the given attribute key paths for a given entity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401183-displayablesubpredicatesofpredic?language=objc -func (p_ PredicateEditorRowTemplate) DisplayableSubpredicatesOfPredicate(predicate foundation.IPredicate) []foundation.Predicate { - rv := objc.Call[[]foundation.Predicate](p_, objc.Sel("displayableSubpredicatesOfPredicate:"), predicate) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401187-templateswithattributekeypaths?language=objc +func (pc _PredicateEditorRowTemplateClass) TemplatesWithAttributeKeyPathsInEntityDescription(keyPaths []string, entityDescription coredata.IEntityDescription) []PredicateEditorRowTemplate { + rv := objc.Call[[]PredicateEditorRowTemplate](pc, objc.Sel("templatesWithAttributeKeyPaths:inEntityDescription:"), keyPaths, entityDescription) return rv } +// Returns an array of predicate templates for the given attribute key paths for a given entity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401187-templateswithattributekeypaths?language=objc +func PredicateEditorRowTemplate_TemplatesWithAttributeKeyPathsInEntityDescription(keyPaths []string, entityDescription coredata.IEntityDescription) []PredicateEditorRowTemplate { + return PredicateEditorRowTemplateClass.TemplatesWithAttributeKeyPathsInEntityDescription(keyPaths, entityDescription) +} + // Sets the value of the views according to the given predicate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401189-setpredicate?language=objc @@ -124,6 +117,14 @@ func (p_ PredicateEditorRowTemplate) SetPredicate(predicate foundation.IPredicat objc.Call[objc.Void](p_, objc.Sel("setPredicate:"), predicate) } +// Returns the subpredicates that should be made sub-rows of a given predicate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401183-displayablesubpredicatesofpredic?language=objc +func (p_ PredicateEditorRowTemplate) DisplayableSubpredicatesOfPredicate(predicate foundation.IPredicate) []foundation.Predicate { + rv := objc.Call[[]foundation.Predicate](p_, objc.Sel("displayableSubpredicatesOfPredicate:"), predicate) + return rv +} + // Returns a positive number if the receiver can represent a given predicate, and 0 if it cannot. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401185-matchforpredicate?language=objc @@ -140,50 +141,35 @@ func (p_ PredicateEditorRowTemplate) PredicateWithSubpredicates(subpredicates [] return rv } -// Returns an array of predicate templates for the given attribute key paths for a given entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401187-templateswithattributekeypaths?language=objc -func (pc _PredicateEditorRowTemplateClass) TemplatesWithAttributeKeyPathsInEntityDescription(keyPaths []string, entityDescription coredata.IEntityDescription) []PredicateEditorRowTemplate { - rv := objc.Call[[]PredicateEditorRowTemplate](pc, objc.Sel("templatesWithAttributeKeyPaths:inEntityDescription:"), keyPaths, entityDescription) - return rv -} - -// Returns an array of predicate templates for the given attribute key paths for a given entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401187-templateswithattributekeypaths?language=objc -func PredicateEditorRowTemplate_TemplatesWithAttributeKeyPathsInEntityDescription(keyPaths []string, entityDescription coredata.IEntityDescription) []PredicateEditorRowTemplate { - return PredicateEditorRowTemplateClass.TemplatesWithAttributeKeyPathsInEntityDescription(keyPaths, entityDescription) -} - -// Returns the right hand expressions for the receiver. [Full Topic] +// Returns the views that display this template’s predicate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401173-rightexpressions?language=objc -func (p_ PredicateEditorRowTemplate) RightExpressions() []foundation.Expression { - rv := objc.Call[[]foundation.Expression](p_, objc.Sel("rightExpressions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401193-templateviews?language=objc +func (p_ PredicateEditorRowTemplate) TemplateViews() []View { + rv := objc.Call[[]View](p_, objc.Sel("templateViews")) return rv } -// Returns the compound predicate types. [Full Topic] +// Returns the comparison predicate options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401202-compoundtypes?language=objc -func (p_ PredicateEditorRowTemplate) CompoundTypes() []foundation.Number { - rv := objc.Call[[]foundation.Number](p_, objc.Sel("compoundTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401197-options?language=objc +func (p_ PredicateEditorRowTemplate) Options() uint { + rv := objc.Call[uint](p_, objc.Sel("options")) return rv } -// Returns the left hand expressions for the receiver. [Full Topic] +// Returns the array of comparison predicate operators. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401191-leftexpressions?language=objc -func (p_ PredicateEditorRowTemplate) LeftExpressions() []foundation.Expression { - rv := objc.Call[[]foundation.Expression](p_, objc.Sel("leftExpressions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401195-operators?language=objc +func (p_ PredicateEditorRowTemplate) Operators() []foundation.Number { + rv := objc.Call[[]foundation.Number](p_, objc.Sel("operators")) return rv } -// Returns the comparison predicate modifier for the receiver. [Full Topic] +// Returns the right hand expressions for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401204-modifier?language=objc -func (p_ PredicateEditorRowTemplate) Modifier() foundation.ComparisonPredicateModifier { - rv := objc.Call[foundation.ComparisonPredicateModifier](p_, objc.Sel("modifier")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401173-rightexpressions?language=objc +func (p_ PredicateEditorRowTemplate) RightExpressions() []foundation.Expression { + rv := objc.Call[[]foundation.Expression](p_, objc.Sel("rightExpressions")) return rv } @@ -195,26 +181,26 @@ func (p_ PredicateEditorRowTemplate) RightExpressionAttributeType() coredata.Att return rv } -// Returns the array of comparison predicate operators. [Full Topic] +// Returns the compound predicate types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401195-operators?language=objc -func (p_ PredicateEditorRowTemplate) Operators() []foundation.Number { - rv := objc.Call[[]foundation.Number](p_, objc.Sel("operators")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401202-compoundtypes?language=objc +func (p_ PredicateEditorRowTemplate) CompoundTypes() []foundation.Number { + rv := objc.Call[[]foundation.Number](p_, objc.Sel("compoundTypes")) return rv } -// Returns the views that display this template’s predicate. [Full Topic] +// Returns the comparison predicate modifier for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401193-templateviews?language=objc -func (p_ PredicateEditorRowTemplate) TemplateViews() []View { - rv := objc.Call[[]View](p_, objc.Sel("templateViews")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401204-modifier?language=objc +func (p_ PredicateEditorRowTemplate) Modifier() foundation.ComparisonPredicateModifier { + rv := objc.Call[foundation.ComparisonPredicateModifier](p_, objc.Sel("modifier")) return rv } -// Returns the comparison predicate options. [Full Topic] +// Returns the left hand expressions for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401197-options?language=objc -func (p_ PredicateEditorRowTemplate) Options() uint { - rv := objc.Call[uint](p_, objc.Sel("options")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspredicateeditorrowtemplate/1401191-leftexpressions?language=objc +func (p_ PredicateEditorRowTemplate) LeftExpressions() []foundation.Expression { + rv := objc.Call[[]foundation.Expression](p_, objc.Sel("leftExpressions")) return rv } diff --git a/macos/appkit/press_gesture_recognizer.gen.go b/macos/appkit/press_gesture_recognizer.gen.go index cfc8df78..96502a22 100644 --- a/macos/appkit/press_gesture_recognizer.gen.go +++ b/macos/appkit/press_gesture_recognizer.gen.go @@ -19,12 +19,12 @@ type _PressGestureRecognizerClass struct { // An interface definition for the [PressGestureRecognizer] class. type IPressGestureRecognizer interface { IGestureRecognizer - NumberOfTouchesRequired() int - SetNumberOfTouchesRequired(value int) - ButtonMask() uint - SetButtonMask(value uint) MinimumPressDuration() foundation.TimeInterval SetMinimumPressDuration(value foundation.TimeInterval) + ButtonMask() uint + SetButtonMask(value uint) + NumberOfTouchesRequired() int + SetNumberOfTouchesRequired(value int) AllowableMovement() float64 SetAllowableMovement(value float64) } @@ -76,19 +76,19 @@ func NewPressGestureRecognizerWithTargetAction(target objc.IObject, action objc. return instance } -// The number of necessary touches on a Touch Bar for the gesture recognizer to match. [Full Topic] +// The minimum time (in seconds) that the user must hold the mouse button in the view for a valid gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspressgesturerecognizer/2544818-numberoftouchesrequired?language=objc -func (p_ PressGestureRecognizer) NumberOfTouchesRequired() int { - rv := objc.Call[int](p_, objc.Sel("numberOfTouchesRequired")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspressgesturerecognizer/1531726-minimumpressduration?language=objc +func (p_ PressGestureRecognizer) MinimumPressDuration() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("minimumPressDuration")) return rv } -// The number of necessary touches on a Touch Bar for the gesture recognizer to match. [Full Topic] +// The minimum time (in seconds) that the user must hold the mouse button in the view for a valid gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspressgesturerecognizer/2544818-numberoftouchesrequired?language=objc -func (p_ PressGestureRecognizer) SetNumberOfTouchesRequired(value int) { - objc.Call[objc.Void](p_, objc.Sel("setNumberOfTouchesRequired:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspressgesturerecognizer/1531726-minimumpressduration?language=objc +func (p_ PressGestureRecognizer) SetMinimumPressDuration(value foundation.TimeInterval) { + objc.Call[objc.Void](p_, objc.Sel("setMinimumPressDuration:"), value) } // A bit mask of the buttons required to recognize this press. [Full Topic] @@ -106,19 +106,19 @@ func (p_ PressGestureRecognizer) SetButtonMask(value uint) { objc.Call[objc.Void](p_, objc.Sel("setButtonMask:"), value) } -// The minimum time (in seconds) that the user must hold the mouse button in the view for a valid gesture. [Full Topic] +// The number of necessary touches on a Touch Bar for the gesture recognizer to match. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspressgesturerecognizer/1531726-minimumpressduration?language=objc -func (p_ PressGestureRecognizer) MinimumPressDuration() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("minimumPressDuration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspressgesturerecognizer/2544818-numberoftouchesrequired?language=objc +func (p_ PressGestureRecognizer) NumberOfTouchesRequired() int { + rv := objc.Call[int](p_, objc.Sel("numberOfTouchesRequired")) return rv } -// The minimum time (in seconds) that the user must hold the mouse button in the view for a valid gesture. [Full Topic] +// The number of necessary touches on a Touch Bar for the gesture recognizer to match. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspressgesturerecognizer/1531726-minimumpressduration?language=objc -func (p_ PressGestureRecognizer) SetMinimumPressDuration(value foundation.TimeInterval) { - objc.Call[objc.Void](p_, objc.Sel("setMinimumPressDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspressgesturerecognizer/2544818-numberoftouchesrequired?language=objc +func (p_ PressGestureRecognizer) SetNumberOfTouchesRequired(value int) { + objc.Call[objc.Void](p_, objc.Sel("setNumberOfTouchesRequired:"), value) } // The maximum movement of the mouse in the view before the gesture fails. [Full Topic] diff --git a/macos/appkit/print_info.gen.go b/macos/appkit/print_info.gen.go index fced091f..672dd9f8 100644 --- a/macos/appkit/print_info.gen.go +++ b/macos/appkit/print_info.gen.go @@ -19,47 +19,47 @@ type _PrintInfoClass struct { // An interface definition for the [PrintInfo] class. type IPrintInfo interface { objc.IObject + UpdateFromPMPageFormat() + PMPageFormat() unsafe.Pointer Dictionary() foundation.MutableDictionary + PMPrintSession() unsafe.Pointer TakeSettingsFromPDFInfo(inPDFInfo IPDFInfo) + SetUpPrintOperationDefaultValues() PMPrintSettings() unsafe.Pointer - PMPageFormat() unsafe.Pointer - UpdateFromPMPageFormat() UpdateFromPMPrintSettings() - PMPrintSession() unsafe.Pointer - SetUpPrintOperationDefaultValues() - Printer() Printer - SetPrinter(value IPrinter) - LeftMargin() float64 - SetLeftMargin(value float64) - ScalingFactor() float64 - SetScalingFactor(value float64) + RightMargin() float64 + SetRightMargin(value float64) + BottomMargin() float64 + SetBottomMargin(value float64) JobDisposition() PrintJobDispositionValue SetJobDisposition(value PrintJobDispositionValue) - VerticalPagination() PrintingPaginationMode - SetVerticalPagination(value PrintingPaginationMode) + Printer() Printer + SetPrinter(value IPrinter) + IsHorizontallyCentered() bool + SetHorizontallyCentered(value bool) PaperSize() foundation.Size SetPaperSize(value foundation.Size) + VerticalPagination() PrintingPaginationMode + SetVerticalPagination(value PrintingPaginationMode) + LeftMargin() float64 + SetLeftMargin(value float64) TopMargin() float64 SetTopMargin(value float64) - Orientation() PaperOrientation - SetOrientation(value PaperOrientation) + ImageablePageBounds() foundation.Rect + ScalingFactor() float64 + SetScalingFactor(value float64) + LocalizedPaperName() string HorizontalPagination() PrintingPaginationMode SetHorizontalPagination(value PrintingPaginationMode) - LocalizedPaperName() string - IsVerticallyCentered() bool - SetVerticallyCentered(value bool) - ImageablePageBounds() foundation.Rect + PrintSettings() foundation.MutableDictionary IsSelectionOnly() bool SetSelectionOnly(value bool) - RightMargin() float64 - SetRightMargin(value float64) - IsHorizontallyCentered() bool - SetHorizontallyCentered(value bool) - BottomMargin() float64 - SetBottomMargin(value float64) + IsVerticallyCentered() bool + SetVerticallyCentered(value bool) + Orientation() PaperOrientation + SetOrientation(value PaperOrientation) PaperName() PrinterPaperName SetPaperName(value PrinterPaperName) - PrintSettings() foundation.MutableDictionary } // An object that stores information that’s used to generate printed output. [Full Topic] @@ -109,6 +109,21 @@ func NewPrintInfo() PrintInfo { return PrintInfoClass.New() } +// Synchronizes the print info’s page format information with information from its associated page format object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534429-updatefrompmpageformat?language=objc +func (p_ PrintInfo) UpdateFromPMPageFormat() { + objc.Call[objc.Void](p_, objc.Sel("updateFromPMPageFormat")) +} + +// Returns a Core Printing object configured with the print info’s page format information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1528578-pmpageformat?language=objc +func (p_ PrintInfo) PMPageFormat() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](p_, objc.Sel("PMPageFormat")) + return rv +} + // Returns the print info’s dictionary that contains the printing attributes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1524990-dictionary?language=objc @@ -117,6 +132,14 @@ func (p_ PrintInfo) Dictionary() foundation.MutableDictionary { return rv } +// Returns a Core Printing object configured with the print info’s session information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534414-pmprintsession?language=objc +func (p_ PrintInfo) PMPrintSession() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](p_, objc.Sel("PMPrintSession")) + return rv +} + // Updates the print info with all the settings and attributes in the specified PDF info object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530099-takesettingsfrompdfinfo?language=objc @@ -124,6 +147,13 @@ func (p_ PrintInfo) TakeSettingsFromPDFInfo(inPDFInfo IPDFInfo) { objc.Call[objc.Void](p_, objc.Sel("takeSettingsFromPDFInfo:"), inPDFInfo) } +// Validates the attributes encapsulated by the print info. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1529453-setupprintoperationdefaultvalues?language=objc +func (p_ PrintInfo) SetUpPrintOperationDefaultValues() { + objc.Call[objc.Void](p_, objc.Sel("setUpPrintOperationDefaultValues")) +} + // Returns a Core Printing object configured with the print info’s print settings information [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1533537-pmprintsettings?language=objc @@ -132,116 +162,116 @@ func (p_ PrintInfo) PMPrintSettings() unsafe.Pointer { return rv } -// Returns a Core Printing object configured with the print info’s page format information. [Full Topic] +// Synchronizes the print info’s print settings information with information from its associated print settings object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1528578-pmpageformat?language=objc -func (p_ PrintInfo) PMPageFormat() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](p_, objc.Sel("PMPageFormat")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1525003-updatefrompmprintsettings?language=objc +func (p_ PrintInfo) UpdateFromPMPrintSettings() { + objc.Call[objc.Void](p_, objc.Sel("updateFromPMPrintSettings")) } -// Synchronizes the print info’s page format information with information from its associated page format object. [Full Topic] +// The width of the right margin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534429-updatefrompmpageformat?language=objc -func (p_ PrintInfo) UpdateFromPMPageFormat() { - objc.Call[objc.Void](p_, objc.Sel("updateFromPMPageFormat")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530882-rightmargin?language=objc +func (p_ PrintInfo) RightMargin() float64 { + rv := objc.Call[float64](p_, objc.Sel("rightMargin")) + return rv } -// Synchronizes the print info’s print settings information with information from its associated print settings object. [Full Topic] +// The width of the right margin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1525003-updatefrompmprintsettings?language=objc -func (p_ PrintInfo) UpdateFromPMPrintSettings() { - objc.Call[objc.Void](p_, objc.Sel("updateFromPMPrintSettings")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530882-rightmargin?language=objc +func (p_ PrintInfo) SetRightMargin(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setRightMargin:"), value) } -// Returns a Core Printing object configured with the print info’s session information. [Full Topic] +// The height of the bottom margin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534414-pmprintsession?language=objc -func (p_ PrintInfo) PMPrintSession() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](p_, objc.Sel("PMPrintSession")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1528397-bottommargin?language=objc +func (p_ PrintInfo) BottomMargin() float64 { + rv := objc.Call[float64](p_, objc.Sel("bottomMargin")) return rv } -// Validates the attributes encapsulated by the print info. [Full Topic] +// The height of the bottom margin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1529453-setupprintoperationdefaultvalues?language=objc -func (p_ PrintInfo) SetUpPrintOperationDefaultValues() { - objc.Call[objc.Void](p_, objc.Sel("setUpPrintOperationDefaultValues")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1528397-bottommargin?language=objc +func (p_ PrintInfo) SetBottomMargin(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setBottomMargin:"), value) } -// The printer object to be used for printing. [Full Topic] +// Deprecated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1524495-printer?language=objc -func (p_ PrintInfo) Printer() Printer { - rv := objc.Call[Printer](p_, objc.Sel("printer")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530521-defaultprinter?language=objc +func (pc _PrintInfoClass) DefaultPrinter() Printer { + rv := objc.Call[Printer](pc, objc.Sel("defaultPrinter")) return rv } -// The printer object to be used for printing. [Full Topic] +// Deprecated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1524495-printer?language=objc -func (p_ PrintInfo) SetPrinter(value IPrinter) { - objc.Call[objc.Void](p_, objc.Sel("setPrinter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530521-defaultprinter?language=objc +func PrintInfo_DefaultPrinter() Printer { + return PrintInfoClass.DefaultPrinter() } -// The width of the left margin. [Full Topic] +// The action specified for the job. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1533430-leftmargin?language=objc -func (p_ PrintInfo) LeftMargin() float64 { - rv := objc.Call[float64](p_, objc.Sel("leftMargin")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1528717-jobdisposition?language=objc +func (p_ PrintInfo) JobDisposition() PrintJobDispositionValue { + rv := objc.Call[PrintJobDispositionValue](p_, objc.Sel("jobDisposition")) return rv } -// The width of the left margin. [Full Topic] +// The action specified for the job. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1533430-leftmargin?language=objc -func (p_ PrintInfo) SetLeftMargin(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setLeftMargin:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1528717-jobdisposition?language=objc +func (p_ PrintInfo) SetJobDisposition(value PrintJobDispositionValue) { + objc.Call[objc.Void](p_, objc.Sel("setJobDisposition:"), value) } -// The current scaling factor. [Full Topic] +// The printer object to be used for printing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1529753-scalingfactor?language=objc -func (p_ PrintInfo) ScalingFactor() float64 { - rv := objc.Call[float64](p_, objc.Sel("scalingFactor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1524495-printer?language=objc +func (p_ PrintInfo) Printer() Printer { + rv := objc.Call[Printer](p_, objc.Sel("printer")) return rv } -// The current scaling factor. [Full Topic] +// The printer object to be used for printing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1529753-scalingfactor?language=objc -func (p_ PrintInfo) SetScalingFactor(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setScalingFactor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1524495-printer?language=objc +func (p_ PrintInfo) SetPrinter(value IPrinter) { + objc.Call[objc.Void](p_, objc.Sel("setPrinter:"), value) } -// The action specified for the job. [Full Topic] +// A Boolean value that indicates whether the image is centered horizontally. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1528717-jobdisposition?language=objc -func (p_ PrintInfo) JobDisposition() PrintJobDispositionValue { - rv := objc.Call[PrintJobDispositionValue](p_, objc.Sel("jobDisposition")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534703-horizontallycentered?language=objc +func (p_ PrintInfo) IsHorizontallyCentered() bool { + rv := objc.Call[bool](p_, objc.Sel("isHorizontallyCentered")) return rv } -// The action specified for the job. [Full Topic] +// A Boolean value that indicates whether the image is centered horizontally. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1528717-jobdisposition?language=objc -func (p_ PrintInfo) SetJobDisposition(value PrintJobDispositionValue) { - objc.Call[objc.Void](p_, objc.Sel("setJobDisposition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534703-horizontallycentered?language=objc +func (p_ PrintInfo) SetHorizontallyCentered(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setHorizontallyCentered:"), value) } -// Deprecated. [Full Topic] +// The size of the paper. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530521-defaultprinter?language=objc -func (pc _PrintInfoClass) DefaultPrinter() Printer { - rv := objc.Call[Printer](pc, objc.Sel("defaultPrinter")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534030-papersize?language=objc +func (p_ PrintInfo) PaperSize() foundation.Size { + rv := objc.Call[foundation.Size](p_, objc.Sel("paperSize")) return rv } -// Deprecated. [Full Topic] +// The size of the paper. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530521-defaultprinter?language=objc -func PrintInfo_DefaultPrinter() Printer { - return PrintInfoClass.DefaultPrinter() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534030-papersize?language=objc +func (p_ PrintInfo) SetPaperSize(value foundation.Size) { + objc.Call[objc.Void](p_, objc.Sel("setPaperSize:"), value) } // The vertical pagination to the specified mode. [Full Topic] @@ -259,19 +289,19 @@ func (p_ PrintInfo) SetVerticalPagination(value PrintingPaginationMode) { objc.Call[objc.Void](p_, objc.Sel("setVerticalPagination:"), value) } -// The size of the paper. [Full Topic] +// The width of the left margin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534030-papersize?language=objc -func (p_ PrintInfo) PaperSize() foundation.Size { - rv := objc.Call[foundation.Size](p_, objc.Sel("paperSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1533430-leftmargin?language=objc +func (p_ PrintInfo) LeftMargin() float64 { + rv := objc.Call[float64](p_, objc.Sel("leftMargin")) return rv } -// The size of the paper. [Full Topic] +// The width of the left margin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534030-papersize?language=objc -func (p_ PrintInfo) SetPaperSize(value foundation.Size) { - objc.Call[objc.Void](p_, objc.Sel("setPaperSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1533430-leftmargin?language=objc +func (p_ PrintInfo) SetLeftMargin(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setLeftMargin:"), value) } // The top margin to the specified size. [Full Topic] @@ -289,34 +319,56 @@ func (p_ PrintInfo) SetTopMargin(value float64) { objc.Call[objc.Void](p_, objc.Sel("setTopMargin:"), value) } -// The orientation attribute. [Full Topic] +// The imageable area of a sheet of paper specified by the print info. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1533755-orientation?language=objc -func (p_ PrintInfo) Orientation() PaperOrientation { - rv := objc.Call[PaperOrientation](p_, objc.Sel("orientation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1526570-imageablepagebounds?language=objc +func (p_ PrintInfo) ImageablePageBounds() foundation.Rect { + rv := objc.Call[foundation.Rect](p_, objc.Sel("imageablePageBounds")) return rv } -// The orientation attribute. [Full Topic] +// The shared printing information object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1533755-orientation?language=objc -func (p_ PrintInfo) SetOrientation(value PaperOrientation) { - objc.Call[objc.Void](p_, objc.Sel("setOrientation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1535610-sharedprintinfo?language=objc +func (pc _PrintInfoClass) SharedPrintInfo() PrintInfo { + rv := objc.Call[PrintInfo](pc, objc.Sel("sharedPrintInfo")) + return rv } -// The horizontal pagination mode. [Full Topic] +// The shared printing information object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1532693-horizontalpagination?language=objc -func (p_ PrintInfo) HorizontalPagination() PrintingPaginationMode { - rv := objc.Call[PrintingPaginationMode](p_, objc.Sel("horizontalPagination")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1535610-sharedprintinfo?language=objc +func PrintInfo_SharedPrintInfo() PrintInfo { + return PrintInfoClass.SharedPrintInfo() +} + +// The shared printing information object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1535610-sharedprintinfo?language=objc +func (pc _PrintInfoClass) SetSharedPrintInfo(value IPrintInfo) { + objc.Call[objc.Void](pc, objc.Sel("setSharedPrintInfo:"), value) +} + +// The shared printing information object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1535610-sharedprintinfo?language=objc +func PrintInfo_SetSharedPrintInfo(value IPrintInfo) { + PrintInfoClass.SetSharedPrintInfo(value) +} + +// The current scaling factor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1529753-scalingfactor?language=objc +func (p_ PrintInfo) ScalingFactor() float64 { + rv := objc.Call[float64](p_, objc.Sel("scalingFactor")) return rv } -// The horizontal pagination mode. [Full Topic] +// The current scaling factor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1532693-horizontalpagination?language=objc -func (p_ PrintInfo) SetHorizontalPagination(value PrintingPaginationMode) { - objc.Call[objc.Void](p_, objc.Sel("setHorizontalPagination:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1529753-scalingfactor?language=objc +func (p_ PrintInfo) SetScalingFactor(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setScalingFactor:"), value) } // The human-readable name of the currently selected paper size, suitable for presentation in user interfaces. [Full Topic] @@ -327,26 +379,26 @@ func (p_ PrintInfo) LocalizedPaperName() string { return rv } -// A Boolean value that indicates whether the image is centered vertically. [Full Topic] +// The horizontal pagination mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530330-verticallycentered?language=objc -func (p_ PrintInfo) IsVerticallyCentered() bool { - rv := objc.Call[bool](p_, objc.Sel("isVerticallyCentered")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1532693-horizontalpagination?language=objc +func (p_ PrintInfo) HorizontalPagination() PrintingPaginationMode { + rv := objc.Call[PrintingPaginationMode](p_, objc.Sel("horizontalPagination")) return rv } -// A Boolean value that indicates whether the image is centered vertically. [Full Topic] +// The horizontal pagination mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530330-verticallycentered?language=objc -func (p_ PrintInfo) SetVerticallyCentered(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setVerticallyCentered:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1532693-horizontalpagination?language=objc +func (p_ PrintInfo) SetHorizontalPagination(value PrintingPaginationMode) { + objc.Call[objc.Void](p_, objc.Sel("setHorizontalPagination:"), value) } -// The imageable area of a sheet of paper specified by the print info. [Full Topic] +// A mutable dictionary containing the print settings from Core Printing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1526570-imageablepagebounds?language=objc -func (p_ PrintInfo) ImageablePageBounds() foundation.Rect { - rv := objc.Call[foundation.Rect](p_, objc.Sel("imageablePageBounds")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1529413-printsettings?language=objc +func (p_ PrintInfo) PrintSettings() foundation.MutableDictionary { + rv := objc.Call[foundation.MutableDictionary](p_, objc.Sel("printSettings")) return rv } @@ -365,78 +417,34 @@ func (p_ PrintInfo) SetSelectionOnly(value bool) { objc.Call[objc.Void](p_, objc.Sel("setSelectionOnly:"), value) } -// The width of the right margin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530882-rightmargin?language=objc -func (p_ PrintInfo) RightMargin() float64 { - rv := objc.Call[float64](p_, objc.Sel("rightMargin")) - return rv -} - -// The width of the right margin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530882-rightmargin?language=objc -func (p_ PrintInfo) SetRightMargin(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setRightMargin:"), value) -} - -// The shared printing information object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1535610-sharedprintinfo?language=objc -func (pc _PrintInfoClass) SharedPrintInfo() PrintInfo { - rv := objc.Call[PrintInfo](pc, objc.Sel("sharedPrintInfo")) - return rv -} - -// The shared printing information object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1535610-sharedprintinfo?language=objc -func PrintInfo_SharedPrintInfo() PrintInfo { - return PrintInfoClass.SharedPrintInfo() -} - -// The shared printing information object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1535610-sharedprintinfo?language=objc -func (pc _PrintInfoClass) SetSharedPrintInfo(value IPrintInfo) { - objc.Call[objc.Void](pc, objc.Sel("setSharedPrintInfo:"), value) -} - -// The shared printing information object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1535610-sharedprintinfo?language=objc -func PrintInfo_SetSharedPrintInfo(value IPrintInfo) { - PrintInfoClass.SetSharedPrintInfo(value) -} - -// A Boolean value that indicates whether the image is centered horizontally. [Full Topic] +// A Boolean value that indicates whether the image is centered vertically. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534703-horizontallycentered?language=objc -func (p_ PrintInfo) IsHorizontallyCentered() bool { - rv := objc.Call[bool](p_, objc.Sel("isHorizontallyCentered")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530330-verticallycentered?language=objc +func (p_ PrintInfo) IsVerticallyCentered() bool { + rv := objc.Call[bool](p_, objc.Sel("isVerticallyCentered")) return rv } -// A Boolean value that indicates whether the image is centered horizontally. [Full Topic] +// A Boolean value that indicates whether the image is centered vertically. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1534703-horizontallycentered?language=objc -func (p_ PrintInfo) SetHorizontallyCentered(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setHorizontallyCentered:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1530330-verticallycentered?language=objc +func (p_ PrintInfo) SetVerticallyCentered(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setVerticallyCentered:"), value) } -// The height of the bottom margin. [Full Topic] +// The orientation attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1528397-bottommargin?language=objc -func (p_ PrintInfo) BottomMargin() float64 { - rv := objc.Call[float64](p_, objc.Sel("bottomMargin")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1533755-orientation?language=objc +func (p_ PrintInfo) Orientation() PaperOrientation { + rv := objc.Call[PaperOrientation](p_, objc.Sel("orientation")) return rv } -// The height of the bottom margin. [Full Topic] +// The orientation attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1528397-bottommargin?language=objc -func (p_ PrintInfo) SetBottomMargin(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setBottomMargin:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1533755-orientation?language=objc +func (p_ PrintInfo) SetOrientation(value PaperOrientation) { + objc.Call[objc.Void](p_, objc.Sel("setOrientation:"), value) } // The name of the currently selected paper size. [Full Topic] @@ -453,11 +461,3 @@ func (p_ PrintInfo) PaperName() PrinterPaperName { func (p_ PrintInfo) SetPaperName(value PrinterPaperName) { objc.Call[objc.Void](p_, objc.Sel("setPaperName:"), value) } - -// A mutable dictionary containing the print settings from Core Printing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1529413-printsettings?language=objc -func (p_ PrintInfo) PrintSettings() foundation.MutableDictionary { - rv := objc.Call[foundation.MutableDictionary](p_, objc.Sel("printSettings")) - return rv -} diff --git a/macos/appkit/print_operation.gen.go b/macos/appkit/print_operation.gen.go index 2fc7311b..812e8035 100644 --- a/macos/appkit/print_operation.gen.go +++ b/macos/appkit/print_operation.gen.go @@ -21,32 +21,32 @@ type IPrintOperation interface { objc.IObject DestroyContext() DeliverResult() bool + RunOperation() bool + CleanUpOperation() CreateContext() GraphicsContext RunOperationModalForWindowDelegateDidRunSelectorContextInfo(docWindow IWindow, delegate objc.IObject, didRunSelector objc.Selector, contextInfo unsafe.Pointer) - CleanUpOperation() - RunOperation() bool - Context() GraphicsContext - PDFPanel() PDFPanel - SetPDFPanel(value IPDFPanel) + PrintInfo() PrintInfo + SetPrintInfo(value IPrintInfo) + PreferredRenderingQuality() PrintRenderingQuality PageOrder() PrintingPageOrder SetPageOrder(value PrintingPageOrder) - PrintPanel() PrintPanel - SetPrintPanel(value IPrintPanel) - PreferredRenderingQuality() PrintRenderingQuality - View() View + PDFPanel() PDFPanel + SetPDFPanel(value IPDFPanel) ShowsPrintPanel() bool SetShowsPrintPanel(value bool) - PageRange() foundation.Range - IsCopyingOperation() bool + View() View + CurrentPage() int JobTitle() string SetJobTitle(value string) ShowsProgressPanel() bool SetShowsProgressPanel(value bool) + Context() GraphicsContext + PrintPanel() PrintPanel + SetPrintPanel(value IPrintPanel) + PageRange() foundation.Range + IsCopyingOperation() bool CanSpawnSeparateThread() bool SetCanSpawnSeparateThread(value bool) - CurrentPage() int - PrintInfo() PrintInfo - SetPrintInfo(value IPrintInfo) } // An object that controls operations that generate Encapsulated PostScript (EPS) code, Portable Document Format (PDF) code, or print jobs. [Full Topic] @@ -89,67 +89,6 @@ func (p_ PrintOperation) DestroyContext() { objc.Call[objc.Void](p_, objc.Sel("destroyContext")) } -// Creates and returns a new print operation object ready to control the copying of EPS graphics from the specified view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1525273-epsoperationwithview?language=objc -func (pc _PrintOperationClass) EPSOperationWithViewInsideRectToData(view IView, rect foundation.Rect, data foundation.IMutableData) PrintOperation { - rv := objc.Call[PrintOperation](pc, objc.Sel("EPSOperationWithView:insideRect:toData:"), view, rect, data) - return rv -} - -// Creates and returns a new print operation object ready to control the copying of EPS graphics from the specified view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1525273-epsoperationwithview?language=objc -func PrintOperation_EPSOperationWithViewInsideRectToData(view IView, rect foundation.Rect, data foundation.IMutableData) PrintOperation { - return PrintOperationClass.EPSOperationWithViewInsideRectToData(view, rect, data) -} - -// Delivers the results of the print operation to the intended destination. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1530693-deliverresult?language=objc -func (p_ PrintOperation) DeliverResult() bool { - rv := objc.Call[bool](p_, objc.Sel("deliverResult")) - return rv -} - -// Creates and returns a new print operation object ready to control the copying of PDF graphics from the specified view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1529269-pdfoperationwithview?language=objc -func (pc _PrintOperationClass) PDFOperationWithViewInsideRectToData(view IView, rect foundation.Rect, data foundation.IMutableData) PrintOperation { - rv := objc.Call[PrintOperation](pc, objc.Sel("PDFOperationWithView:insideRect:toData:"), view, rect, data) - return rv -} - -// Creates and returns a new print operation object ready to control the copying of PDF graphics from the specified view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1529269-pdfoperationwithview?language=objc -func PrintOperation_PDFOperationWithViewInsideRectToData(view IView, rect foundation.Rect, data foundation.IMutableData) PrintOperation { - return PrintOperationClass.PDFOperationWithViewInsideRectToData(view, rect, data) -} - -// Creates and returns a new print operation object ready to control the copying of PDF graphics from the specified view using the specified print settings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1531298-pdfoperationwithview?language=objc -func (pc _PrintOperationClass) PDFOperationWithViewInsideRectToDataPrintInfo(view IView, rect foundation.Rect, data foundation.IMutableData, printInfo IPrintInfo) PrintOperation { - rv := objc.Call[PrintOperation](pc, objc.Sel("PDFOperationWithView:insideRect:toData:printInfo:"), view, rect, data, printInfo) - return rv -} - -// Creates and returns a new print operation object ready to control the copying of PDF graphics from the specified view using the specified print settings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1531298-pdfoperationwithview?language=objc -func PrintOperation_PDFOperationWithViewInsideRectToDataPrintInfo(view IView, rect foundation.Rect, data foundation.IMutableData, printInfo IPrintInfo) PrintOperation { - return PrintOperationClass.PDFOperationWithViewInsideRectToDataPrintInfo(view, rect, data, printInfo) -} - -// Creates the graphics context object used for drawing during the operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1526832-createcontext?language=objc -func (p_ PrintOperation) CreateContext() GraphicsContext { - rv := objc.Call[GraphicsContext](p_, objc.Sel("createContext")) - return rv -} - // Creates and returns an print operation object ready to control the printing of the specified view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1535893-printoperationwithview?language=objc @@ -165,11 +104,12 @@ func PrintOperation_PrintOperationWithView(view IView) PrintOperation { return PrintOperationClass.PrintOperationWithView(view) } -// Runs the print operation, calling your custom delegate method upon completion. [Full Topic] +// Delivers the results of the print operation to the intended destination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1532065-runoperationmodalforwindow?language=objc -func (p_ PrintOperation) RunOperationModalForWindowDelegateDidRunSelectorContextInfo(docWindow IWindow, delegate objc.IObject, didRunSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](p_, objc.Sel("runOperationModalForWindow:delegate:didRunSelector:contextInfo:"), docWindow, delegate, didRunSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1530693-deliverresult?language=objc +func (p_ PrintOperation) DeliverResult() bool { + rv := objc.Call[bool](p_, objc.Sel("deliverResult")) + return rv } // Creates and returns a new print operation object ready to control the copying of EPS graphics from the specified view and write the resulting data to the specified file. [Full Topic] @@ -187,49 +127,27 @@ func PrintOperation_EPSOperationWithViewInsideRectToPathPrintInfo(view IView, re return PrintOperationClass.EPSOperationWithViewInsideRectToPathPrintInfo(view, rect, path, printInfo) } -// Creates and returns a new print operation object ready to control the copying of PDF graphics from the specified view and write the resulting data to the specified file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1534130-pdfoperationwithview?language=objc -func (pc _PrintOperationClass) PDFOperationWithViewInsideRectToPathPrintInfo(view IView, rect foundation.Rect, path string, printInfo IPrintInfo) PrintOperation { - rv := objc.Call[PrintOperation](pc, objc.Sel("PDFOperationWithView:insideRect:toPath:printInfo:"), view, rect, path, printInfo) - return rv -} - -// Creates and returns a new print operation object ready to control the copying of PDF graphics from the specified view and write the resulting data to the specified file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1534130-pdfoperationwithview?language=objc -func PrintOperation_PDFOperationWithViewInsideRectToPathPrintInfo(view IView, rect foundation.Rect, path string, printInfo IPrintInfo) PrintOperation { - return PrintOperationClass.PDFOperationWithViewInsideRectToPathPrintInfo(view, rect, path, printInfo) -} - -// Creates and returns a new print operation object ready to control the copying of EPS graphics from the specified view using the specified print settings. [Full Topic] +// Runs the print operation on the current thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1524819-epsoperationwithview?language=objc -func (pc _PrintOperationClass) EPSOperationWithViewInsideRectToDataPrintInfo(view IView, rect foundation.Rect, data foundation.IMutableData, printInfo IPrintInfo) PrintOperation { - rv := objc.Call[PrintOperation](pc, objc.Sel("EPSOperationWithView:insideRect:toData:printInfo:"), view, rect, data, printInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1532039-runoperation?language=objc +func (p_ PrintOperation) RunOperation() bool { + rv := objc.Call[bool](p_, objc.Sel("runOperation")) return rv } -// Creates and returns a new print operation object ready to control the copying of EPS graphics from the specified view using the specified print settings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1524819-epsoperationwithview?language=objc -func PrintOperation_EPSOperationWithViewInsideRectToDataPrintInfo(view IView, rect foundation.Rect, data foundation.IMutableData, printInfo IPrintInfo) PrintOperation { - return PrintOperationClass.EPSOperationWithViewInsideRectToDataPrintInfo(view, rect, data, printInfo) -} - -// Creates and returns an print operation object ready to control the printing of the specified view using custom print settings. [Full Topic] +// Creates and returns a new print operation object ready to control the copying of PDF graphics from the specified view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1528557-printoperationwithview?language=objc -func (pc _PrintOperationClass) PrintOperationWithViewPrintInfo(view IView, printInfo IPrintInfo) PrintOperation { - rv := objc.Call[PrintOperation](pc, objc.Sel("printOperationWithView:printInfo:"), view, printInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1529269-pdfoperationwithview?language=objc +func (pc _PrintOperationClass) PDFOperationWithViewInsideRectToData(view IView, rect foundation.Rect, data foundation.IMutableData) PrintOperation { + rv := objc.Call[PrintOperation](pc, objc.Sel("PDFOperationWithView:insideRect:toData:"), view, rect, data) return rv } -// Creates and returns an print operation object ready to control the printing of the specified view using custom print settings. [Full Topic] +// Creates and returns a new print operation object ready to control the copying of PDF graphics from the specified view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1528557-printoperationwithview?language=objc -func PrintOperation_PrintOperationWithViewPrintInfo(view IView, printInfo IPrintInfo) PrintOperation { - return PrintOperationClass.PrintOperationWithViewPrintInfo(view, printInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1529269-pdfoperationwithview?language=objc +func PrintOperation_PDFOperationWithViewInsideRectToData(view IView, rect foundation.Rect, data foundation.IMutableData) PrintOperation { + return PrintOperationClass.PDFOperationWithViewInsideRectToData(view, rect, data) } // Called at the end of a print operation to remove the print operation as the current operation. [Full Topic] @@ -239,35 +157,42 @@ func (p_ PrintOperation) CleanUpOperation() { objc.Call[objc.Void](p_, objc.Sel("cleanUpOperation")) } -// Runs the print operation on the current thread. [Full Topic] +// Creates the graphics context object used for drawing during the operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1532039-runoperation?language=objc -func (p_ PrintOperation) RunOperation() bool { - rv := objc.Call[bool](p_, objc.Sel("runOperation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1526832-createcontext?language=objc +func (p_ PrintOperation) CreateContext() GraphicsContext { + rv := objc.Call[GraphicsContext](p_, objc.Sel("createContext")) return rv } -// The graphics context object used for generating output. [Full Topic] +// Runs the print operation, calling your custom delegate method upon completion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1534162-context?language=objc -func (p_ PrintOperation) Context() GraphicsContext { - rv := objc.Call[GraphicsContext](p_, objc.Sel("context")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1532065-runoperationmodalforwindow?language=objc +func (p_ PrintOperation) RunOperationModalForWindowDelegateDidRunSelectorContextInfo(docWindow IWindow, delegate objc.IObject, didRunSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](p_, objc.Sel("runOperationModalForWindow:delegate:didRunSelector:contextInfo:"), docWindow, delegate, didRunSelector, contextInfo) } -// The PDF panel object to use during the operation. [Full Topic] +// The printing information associated with the print operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1526838-pdfpanel?language=objc -func (p_ PrintOperation) PDFPanel() PDFPanel { - rv := objc.Call[PDFPanel](p_, objc.Sel("PDFPanel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1535187-printinfo?language=objc +func (p_ PrintOperation) PrintInfo() PrintInfo { + rv := objc.Call[PrintInfo](p_, objc.Sel("printInfo")) return rv } -// The PDF panel object to use during the operation. [Full Topic] +// The printing information associated with the print operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1526838-pdfpanel?language=objc -func (p_ PrintOperation) SetPDFPanel(value IPDFPanel) { - objc.Call[objc.Void](p_, objc.Sel("setPDFPanel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1535187-printinfo?language=objc +func (p_ PrintOperation) SetPrintInfo(value IPrintInfo) { + objc.Call[objc.Void](p_, objc.Sel("setPrintInfo:"), value) +} + +// The printing quality. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1529716-preferredrenderingquality?language=objc +func (p_ PrintOperation) PreferredRenderingQuality() PrintRenderingQuality { + rv := objc.Call[PrintRenderingQuality](p_, objc.Sel("preferredRenderingQuality")) + return rv } // The print order for the pages of the operation. [Full Topic] @@ -285,35 +210,19 @@ func (p_ PrintOperation) SetPageOrder(value PrintingPageOrder) { objc.Call[objc.Void](p_, objc.Sel("setPageOrder:"), value) } -// The print panel object to use during the operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1529626-printpanel?language=objc -func (p_ PrintOperation) PrintPanel() PrintPanel { - rv := objc.Call[PrintPanel](p_, objc.Sel("printPanel")) - return rv -} - -// The print panel object to use during the operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1529626-printpanel?language=objc -func (p_ PrintOperation) SetPrintPanel(value IPrintPanel) { - objc.Call[objc.Void](p_, objc.Sel("setPrintPanel:"), value) -} - -// The printing quality. [Full Topic] +// The PDF panel object to use during the operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1529716-preferredrenderingquality?language=objc -func (p_ PrintOperation) PreferredRenderingQuality() PrintRenderingQuality { - rv := objc.Call[PrintRenderingQuality](p_, objc.Sel("preferredRenderingQuality")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1526838-pdfpanel?language=objc +func (p_ PrintOperation) PDFPanel() PDFPanel { + rv := objc.Call[PDFPanel](p_, objc.Sel("PDFPanel")) return rv } -// The view object that generates the actual data for the print operation. [Full Topic] +// The PDF panel object to use during the operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1530311-view?language=objc -func (p_ PrintOperation) View() View { - rv := objc.Call[View](p_, objc.Sel("view")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1526838-pdfpanel?language=objc +func (p_ PrintOperation) SetPDFPanel(value IPDFPanel) { + objc.Call[objc.Void](p_, objc.Sel("setPDFPanel:"), value) } // A Boolean value that determines whether the print operation displays a print panel. [Full Topic] @@ -331,19 +240,19 @@ func (p_ PrintOperation) SetShowsPrintPanel(value bool) { objc.Call[objc.Void](p_, objc.Sel("setShowsPrintPanel:"), value) } -// The range of pages associated with the print operation. [Full Topic] +// The view object that generates the actual data for the print operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1524601-pagerange?language=objc -func (p_ PrintOperation) PageRange() foundation.Range { - rv := objc.Call[foundation.Range](p_, objc.Sel("pageRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1530311-view?language=objc +func (p_ PrintOperation) View() View { + rv := objc.Call[View](p_, objc.Sel("view")) return rv } -// A Boolean value that indicates whether the print operation is an EPS or PDF copy operation. [Full Topic] +// The current page number being printed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1534206-copyingoperation?language=objc -func (p_ PrintOperation) IsCopyingOperation() bool { - rv := objc.Call[bool](p_, objc.Sel("isCopyingOperation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1534881-currentpage?language=objc +func (p_ PrintOperation) CurrentPage() int { + rv := objc.Call[int](p_, objc.Sel("currentPage")) return rv } @@ -377,19 +286,43 @@ func (p_ PrintOperation) SetShowsProgressPanel(value bool) { objc.Call[objc.Void](p_, objc.Sel("setShowsProgressPanel:"), value) } -// A Boolean value that determines whether the print operation is allowed to spawn a separate printing thread. [Full Topic] +// The graphics context object used for generating output. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1532487-canspawnseparatethread?language=objc -func (p_ PrintOperation) CanSpawnSeparateThread() bool { - rv := objc.Call[bool](p_, objc.Sel("canSpawnSeparateThread")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1534162-context?language=objc +func (p_ PrintOperation) Context() GraphicsContext { + rv := objc.Call[GraphicsContext](p_, objc.Sel("context")) return rv } -// A Boolean value that determines whether the print operation is allowed to spawn a separate printing thread. [Full Topic] +// The print panel object to use during the operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1532487-canspawnseparatethread?language=objc -func (p_ PrintOperation) SetCanSpawnSeparateThread(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setCanSpawnSeparateThread:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1529626-printpanel?language=objc +func (p_ PrintOperation) PrintPanel() PrintPanel { + rv := objc.Call[PrintPanel](p_, objc.Sel("printPanel")) + return rv +} + +// The print panel object to use during the operation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1529626-printpanel?language=objc +func (p_ PrintOperation) SetPrintPanel(value IPrintPanel) { + objc.Call[objc.Void](p_, objc.Sel("setPrintPanel:"), value) +} + +// The range of pages associated with the print operation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1524601-pagerange?language=objc +func (p_ PrintOperation) PageRange() foundation.Range { + rv := objc.Call[foundation.Range](p_, objc.Sel("pageRange")) + return rv +} + +// A Boolean value that indicates whether the print operation is an EPS or PDF copy operation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1534206-copyingoperation?language=objc +func (p_ PrintOperation) IsCopyingOperation() bool { + rv := objc.Call[bool](p_, objc.Sel("isCopyingOperation")) + return rv } // The current print operation for this thread. [Full Topic] @@ -421,25 +354,17 @@ func PrintOperation_SetCurrentOperation(value IPrintOperation) { PrintOperationClass.SetCurrentOperation(value) } -// The current page number being printed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1534881-currentpage?language=objc -func (p_ PrintOperation) CurrentPage() int { - rv := objc.Call[int](p_, objc.Sel("currentPage")) - return rv -} - -// The printing information associated with the print operation. [Full Topic] +// A Boolean value that determines whether the print operation is allowed to spawn a separate printing thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1535187-printinfo?language=objc -func (p_ PrintOperation) PrintInfo() PrintInfo { - rv := objc.Call[PrintInfo](p_, objc.Sel("printInfo")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1532487-canspawnseparatethread?language=objc +func (p_ PrintOperation) CanSpawnSeparateThread() bool { + rv := objc.Call[bool](p_, objc.Sel("canSpawnSeparateThread")) return rv } -// The printing information associated with the print operation. [Full Topic] +// A Boolean value that determines whether the print operation is allowed to spawn a separate printing thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1535187-printinfo?language=objc -func (p_ PrintOperation) SetPrintInfo(value IPrintInfo) { - objc.Call[objc.Void](p_, objc.Sel("setPrintInfo:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintoperation/1532487-canspawnseparatethread?language=objc +func (p_ PrintOperation) SetCanSpawnSeparateThread(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setCanSpawnSeparateThread:"), value) } diff --git a/macos/appkit/print_panel.gen.go b/macos/appkit/print_panel.gen.go index 1d1f10f2..84f00013 100644 --- a/macos/appkit/print_panel.gen.go +++ b/macos/appkit/print_panel.gen.go @@ -18,20 +18,20 @@ type _PrintPanelClass struct { // An interface definition for the [PrintPanel] class. type IPrintPanel interface { objc.IObject - DefaultButtonTitle() string + RemoveAccessoryController(accessoryController IViewController) RunModal() int - RunModalWithPrintInfo(printInfo IPrintInfo) int AddAccessoryController(accessoryController IViewController) - RemoveAccessoryController(accessoryController IViewController) + RunModalWithPrintInfo(printInfo IPrintInfo) int + DefaultButtonTitle() string SetDefaultButtonTitle(defaultButtonTitle string) - JobStyleHint() PrintPanelJobStyleHint - SetJobStyleHint(value PrintPanelJobStyleHint) PrintInfo() PrintInfo AccessoryControllers() []ViewController - HelpAnchor() HelpAnchorName - SetHelpAnchor(value HelpAnchorName) Options() PrintPanelOptions SetOptions(value PrintPanelOptions) + JobStyleHint() PrintPanelJobStyleHint + SetJobStyleHint(value PrintPanelJobStyleHint) + HelpAnchor() HelpAnchorName + SetHelpAnchor(value HelpAnchorName) } // The Print panel that queries the user for information about a print job. [Full Topic] @@ -67,12 +67,11 @@ func (p_ PrintPanel) Init() PrintPanel { return rv } -// Returns the title of the Print panel’s default button. [Full Topic] +// Removes the specified controller and accessory view from the Print panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490548-defaultbuttontitle?language=objc -func (p_ PrintPanel) DefaultButtonTitle() string { - rv := objc.Call[string](p_, objc.Sel("defaultButtonTitle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490527-removeaccessorycontroller?language=objc +func (p_ PrintPanel) RemoveAccessoryController(accessoryController IViewController) { + objc.Call[objc.Void](p_, objc.Sel("removeAccessoryController:"), accessoryController) } // Displays the Print panel and begins the modal loop. [Full Topic] @@ -83,6 +82,21 @@ func (p_ PrintPanel) RunModal() int { return rv } +// Adds a custom controller to the Print panel to manage an accessory view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490510-addaccessorycontroller?language=objc +func (p_ PrintPanel) AddAccessoryController(accessoryController IViewController) { + objc.Call[objc.Void](p_, objc.Sel("addAccessoryController:"), accessoryController) +} + +// Displays the Print panel and runs the modal loop using the specified printing information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490539-runmodalwithprintinfo?language=objc +func (p_ PrintPanel) RunModalWithPrintInfo(printInfo IPrintInfo) int { + rv := objc.Call[int](p_, objc.Sel("runModalWithPrintInfo:"), printInfo) + return rv +} + // Returns a new print panel object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490531-printpanel?language=objc @@ -98,33 +112,50 @@ func PrintPanel_PrintPanel() PrintPanel { return PrintPanelClass.PrintPanel() } -// Displays the Print panel and runs the modal loop using the specified printing information. [Full Topic] +// Returns the title of the Print panel’s default button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490539-runmodalwithprintinfo?language=objc -func (p_ PrintPanel) RunModalWithPrintInfo(printInfo IPrintInfo) int { - rv := objc.Call[int](p_, objc.Sel("runModalWithPrintInfo:"), printInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490548-defaultbuttontitle?language=objc +func (p_ PrintPanel) DefaultButtonTitle() string { + rv := objc.Call[string](p_, objc.Sel("defaultButtonTitle")) return rv } -// Adds a custom controller to the Print panel to manage an accessory view. [Full Topic] +// Sets the title of the Print panel’s default button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490510-addaccessorycontroller?language=objc -func (p_ PrintPanel) AddAccessoryController(accessoryController IViewController) { - objc.Call[objc.Void](p_, objc.Sel("addAccessoryController:"), accessoryController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490525-setdefaultbuttontitle?language=objc +func (p_ PrintPanel) SetDefaultButtonTitle(defaultButtonTitle string) { + objc.Call[objc.Void](p_, objc.Sel("setDefaultButtonTitle:"), defaultButtonTitle) } -// Removes the specified controller and accessory view from the Print panel. [Full Topic] +// The information associated with the running Print panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490527-removeaccessorycontroller?language=objc -func (p_ PrintPanel) RemoveAccessoryController(accessoryController IViewController) { - objc.Call[objc.Void](p_, objc.Sel("removeAccessoryController:"), accessoryController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490513-printinfo?language=objc +func (p_ PrintPanel) PrintInfo() PrintInfo { + rv := objc.Call[PrintInfo](p_, objc.Sel("printInfo")) + return rv } -// Sets the title of the Print panel’s default button. [Full Topic] +// The array of controller objects that manage the Print panel’s accessory views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490525-setdefaultbuttontitle?language=objc -func (p_ PrintPanel) SetDefaultButtonTitle(defaultButtonTitle string) { - objc.Call[objc.Void](p_, objc.Sel("setDefaultButtonTitle:"), defaultButtonTitle) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490543-accessorycontrollers?language=objc +func (p_ PrintPanel) AccessoryControllers() []ViewController { + rv := objc.Call[[]ViewController](p_, objc.Sel("accessoryControllers")) + return rv +} + +// The current configuration options for the Print panel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490542-options?language=objc +func (p_ PrintPanel) Options() PrintPanelOptions { + rv := objc.Call[PrintPanelOptions](p_, objc.Sel("options")) + return rv +} + +// The current configuration options for the Print panel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490542-options?language=objc +func (p_ PrintPanel) SetOptions(value PrintPanelOptions) { + objc.Call[objc.Void](p_, objc.Sel("setOptions:"), value) } // The type of settings that the print panel displays. [Full Topic] @@ -142,22 +173,6 @@ func (p_ PrintPanel) SetJobStyleHint(value PrintPanelJobStyleHint) { objc.Call[objc.Void](p_, objc.Sel("setJobStyleHint:"), value) } -// The information associated with the running Print panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490513-printinfo?language=objc -func (p_ PrintPanel) PrintInfo() PrintInfo { - rv := objc.Call[PrintInfo](p_, objc.Sel("printInfo")) - return rv -} - -// The array of controller objects that manage the Print panel’s accessory views. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490543-accessorycontrollers?language=objc -func (p_ PrintPanel) AccessoryControllers() []ViewController { - rv := objc.Call[[]ViewController](p_, objc.Sel("accessoryControllers")) - return rv -} - // The HTML help anchor associated with the Print panel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490537-helpanchor?language=objc @@ -172,18 +187,3 @@ func (p_ PrintPanel) HelpAnchor() HelpAnchorName { func (p_ PrintPanel) SetHelpAnchor(value HelpAnchorName) { objc.Call[objc.Void](p_, objc.Sel("setHelpAnchor:"), value) } - -// The current configuration options for the Print panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490542-options?language=objc -func (p_ PrintPanel) Options() PrintPanelOptions { - rv := objc.Call[PrintPanelOptions](p_, objc.Sel("options")) - return rv -} - -// The current configuration options for the Print panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490542-options?language=objc -func (p_ PrintPanel) SetOptions(value PrintPanelOptions) { - objc.Call[objc.Void](p_, objc.Sel("setOptions:"), value) -} diff --git a/macos/appkit/print_panel_accessorizing_protocol.gen.go b/macos/appkit/print_panel_accessorizing_protocol.gen.go index 2a9a28d2..f488ca54 100644 --- a/macos/appkit/print_panel_accessorizing_protocol.gen.go +++ b/macos/appkit/print_panel_accessorizing_protocol.gen.go @@ -11,13 +11,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanelaccessorizing?language=objc type PPrintPanelAccessorizing interface { - // optional - LocalizedSummaryItems() []map[PrintPanelAccessorySummaryKey]string - HasLocalizedSummaryItems() bool - // optional KeyPathsForValuesAffectingPreview() foundation.Set HasKeyPathsForValuesAffectingPreview() bool + + // optional + LocalizedSummaryItems() []map[PrintPanelAccessorySummaryKey]string + HasLocalizedSummaryItems() bool } // ensure impl type implements protocol interface @@ -28,18 +28,6 @@ type PrintPanelAccessorizingObject struct { objc.Object } -func (p_ PrintPanelAccessorizingObject) HasLocalizedSummaryItems() bool { - return p_.RespondsToSelector(objc.Sel("localizedSummaryItems")) -} - -// Returns an array of dictionaries containing the localized user setting summary strings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanelaccessorizing/1490521-localizedsummaryitems?language=objc -func (p_ PrintPanelAccessorizingObject) LocalizedSummaryItems() []map[PrintPanelAccessorySummaryKey]string { - rv := objc.Call[[]map[PrintPanelAccessorySummaryKey]string](p_, objc.Sel("localizedSummaryItems")) - return rv -} - func (p_ PrintPanelAccessorizingObject) HasKeyPathsForValuesAffectingPreview() bool { return p_.RespondsToSelector(objc.Sel("keyPathsForValuesAffectingPreview")) } @@ -51,3 +39,15 @@ func (p_ PrintPanelAccessorizingObject) KeyPathsForValuesAffectingPreview() foun rv := objc.Call[foundation.Set](p_, objc.Sel("keyPathsForValuesAffectingPreview")) return rv } + +func (p_ PrintPanelAccessorizingObject) HasLocalizedSummaryItems() bool { + return p_.RespondsToSelector(objc.Sel("localizedSummaryItems")) +} + +// Returns an array of dictionaries containing the localized user setting summary strings. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanelaccessorizing/1490521-localizedsummaryitems?language=objc +func (p_ PrintPanelAccessorizingObject) LocalizedSummaryItems() []map[PrintPanelAccessorySummaryKey]string { + rv := objc.Call[[]map[PrintPanelAccessorySummaryKey]string](p_, objc.Sel("localizedSummaryItems")) + return rv +} diff --git a/macos/appkit/printer.gen.go b/macos/appkit/printer.gen.go index c3305e40..da911944 100644 --- a/macos/appkit/printer.gen.go +++ b/macos/appkit/printer.gen.go @@ -20,9 +20,9 @@ type _PrinterClass struct { type IPrinter interface { objc.IObject PageSizeForPaper(paperName PrinterPaperName) foundation.Size - LanguageLevel() int - DeviceDescription() map[DeviceDescriptionKey]objc.Object Name() string + DeviceDescription() map[DeviceDescriptionKey]objc.Object + LanguageLevel() int Type() PrinterTypeName } @@ -74,21 +74,6 @@ func Printer_PrinterWithType(type_ PrinterTypeName) Printer { return PrinterClass.PrinterWithType(type_) } -// Creates and returns a printer object initialized with the specified printer name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1525202-printerwithname?language=objc -func (pc _PrinterClass) PrinterWithName(name string) Printer { - rv := objc.Call[Printer](pc, objc.Sel("printerWithName:"), name) - return rv -} - -// Creates and returns a printer object initialized with the specified printer name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1525202-printerwithname?language=objc -func Printer_PrinterWithName(name string) Printer { - return PrinterClass.PrinterWithName(name) -} - // Returns the size of the page for the specified paper type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1525222-pagesizeforpaper?language=objc @@ -97,14 +82,6 @@ func (p_ Printer) PageSizeForPaper(paperName PrinterPaperName) foundation.Size { return rv } -// The PostScript language level recognized by the printer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1525215-languagelevel?language=objc -func (p_ Printer) LanguageLevel() int { - rv := objc.Call[int](p_, objc.Sel("languageLevel")) - return rv -} - // Returns the names of all available printers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1525209-printernames?language=objc @@ -120,6 +97,14 @@ func Printer_PrinterNames() []string { return PrinterClass.PrinterNames() } +// The printer’s name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1525189-name?language=objc +func (p_ Printer) Name() string { + rv := objc.Call[string](p_, objc.Sel("name")) + return rv +} + // A dictionary of keys and values that describe the device. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1525201-devicedescription?language=objc @@ -128,11 +113,19 @@ func (p_ Printer) DeviceDescription() map[DeviceDescriptionKey]objc.Object { return rv } -// The printer’s name. [Full Topic] +// The PostScript language level recognized by the printer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1525189-name?language=objc -func (p_ Printer) Name() string { - rv := objc.Call[string](p_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1525215-languagelevel?language=objc +func (p_ Printer) LanguageLevel() int { + rv := objc.Call[int](p_, objc.Sel("languageLevel")) + return rv +} + +// A description of the printer’s make and model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1524450-type?language=objc +func (p_ Printer) Type() PrinterTypeName { + rv := objc.Call[PrinterTypeName](p_, objc.Sel("type")) return rv } @@ -150,11 +143,3 @@ func (pc _PrinterClass) PrinterTypes() []PrinterTypeName { func Printer_PrinterTypes() []PrinterTypeName { return PrinterClass.PrinterTypes() } - -// A description of the printer’s make and model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprinter/1524450-type?language=objc -func (p_ Printer) Type() PrinterTypeName { - rv := objc.Call[PrinterTypeName](p_, objc.Sel("type")) - return rv -} diff --git a/macos/appkit/progress_indicator.gen.go b/macos/appkit/progress_indicator.gen.go index 24ab1936..fd58fbdf 100644 --- a/macos/appkit/progress_indicator.gen.go +++ b/macos/appkit/progress_indicator.gen.go @@ -19,26 +19,26 @@ type _ProgressIndicatorClass struct { // An interface definition for the [ProgressIndicator] class. type IProgressIndicator interface { IView - StartAnimation(sender objc.IObject) + IncrementBy(delta float64) StopAnimation(sender objc.IObject) + StartAnimation(sender objc.IObject) SizeToFit() - IncrementBy(delta float64) - MinValue() float64 - SetMinValue(value float64) - UsesThreadedAnimation() bool - SetUsesThreadedAnimation(value bool) ControlSize() ControlSize SetControlSize(value ControlSize) - IsDisplayedWhenStopped() bool - SetDisplayedWhenStopped(value bool) + Style() ProgressIndicatorStyle + SetStyle(value ProgressIndicatorStyle) + UsesThreadedAnimation() bool + SetUsesThreadedAnimation(value bool) + MinValue() float64 + SetMinValue(value float64) + DoubleValue() float64 + SetDoubleValue(value float64) MaxValue() float64 SetMaxValue(value float64) + IsDisplayedWhenStopped() bool + SetDisplayedWhenStopped(value bool) IsIndeterminate() bool SetIndeterminate(value bool) - DoubleValue() float64 - SetDoubleValue(value float64) - Style() ProgressIndicatorStyle - SetStyle(value ProgressIndicatorStyle) } // An interface that provides visual feedback to the user about the status of an ongoing task. [Full Topic] @@ -88,11 +88,11 @@ func NewProgressIndicatorWithFrame(frameRect foundation.Rect) ProgressIndicator return instance } -// Starts the animation of an indeterminate progress indicator. [Full Topic] +// Advances the progress bar of a determinate progress indicator by the specified amount. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501167-startanimation?language=objc -func (p_ ProgressIndicator) StartAnimation(sender objc.IObject) { - objc.Call[objc.Void](p_, objc.Sel("startAnimation:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501155-incrementby?language=objc +func (p_ ProgressIndicator) IncrementBy(delta float64) { + objc.Call[objc.Void](p_, objc.Sel("incrementBy:"), delta) } // Stops the animation of an indeterminate progress indicator. [Full Topic] @@ -102,33 +102,48 @@ func (p_ ProgressIndicator) StopAnimation(sender objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("stopAnimation:"), sender) } -// This action method resizes the progress indicator to an appropriate size depending on the value of [appkit/nsprogressindicator/style]. [Full Topic] +// Starts the animation of an indeterminate progress indicator. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501167-startanimation?language=objc +func (p_ ProgressIndicator) StartAnimation(sender objc.IObject) { + objc.Call[objc.Void](p_, objc.Sel("startAnimation:"), sender) +} + +// This action method resizes the progress indicator to an appropriate size depending on the value of style. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501144-sizetofit?language=objc func (p_ ProgressIndicator) SizeToFit() { objc.Call[objc.Void](p_, objc.Sel("sizeToFit")) } -// Advances the progress bar of a determinate progress indicator by the specified amount. [Full Topic] +// The size of the progress indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501155-incrementby?language=objc -func (p_ ProgressIndicator) IncrementBy(delta float64) { - objc.Call[objc.Void](p_, objc.Sel("incrementBy:"), delta) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501157-controlsize?language=objc +func (p_ ProgressIndicator) ControlSize() ControlSize { + rv := objc.Call[ControlSize](p_, objc.Sel("controlSize")) + return rv } -// The minimum value for the progress indicator. [Full Topic] +// The size of the progress indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501169-minvalue?language=objc -func (p_ ProgressIndicator) MinValue() float64 { - rv := objc.Call[float64](p_, objc.Sel("minValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501157-controlsize?language=objc +func (p_ ProgressIndicator) SetControlSize(value ControlSize) { + objc.Call[objc.Void](p_, objc.Sel("setControlSize:"), value) +} + +// The style of the progress indicator (bar or spinning). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501158-style?language=objc +func (p_ ProgressIndicator) Style() ProgressIndicatorStyle { + rv := objc.Call[ProgressIndicatorStyle](p_, objc.Sel("style")) return rv } -// The minimum value for the progress indicator. [Full Topic] +// The style of the progress indicator (bar or spinning). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501169-minvalue?language=objc -func (p_ ProgressIndicator) SetMinValue(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setMinValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501158-style?language=objc +func (p_ ProgressIndicator) SetStyle(value ProgressIndicatorStyle) { + objc.Call[objc.Void](p_, objc.Sel("setStyle:"), value) } // A Boolean that indicates whether the progress indicator implements animation in a separate thread. [Full Topic] @@ -146,34 +161,34 @@ func (p_ ProgressIndicator) SetUsesThreadedAnimation(value bool) { objc.Call[objc.Void](p_, objc.Sel("setUsesThreadedAnimation:"), value) } -// The size of the progress indicator. [Full Topic] +// The minimum value for the progress indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501157-controlsize?language=objc -func (p_ ProgressIndicator) ControlSize() ControlSize { - rv := objc.Call[ControlSize](p_, objc.Sel("controlSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501169-minvalue?language=objc +func (p_ ProgressIndicator) MinValue() float64 { + rv := objc.Call[float64](p_, objc.Sel("minValue")) return rv } -// The size of the progress indicator. [Full Topic] +// The minimum value for the progress indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501157-controlsize?language=objc -func (p_ ProgressIndicator) SetControlSize(value ControlSize) { - objc.Call[objc.Void](p_, objc.Sel("setControlSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501169-minvalue?language=objc +func (p_ ProgressIndicator) SetMinValue(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setMinValue:"), value) } -// A Boolean that indicates whether the progress indicator hides itself when it isn’t animating. [Full Topic] +// The value that indicates the current extent of the progress indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501171-displayedwhenstopped?language=objc -func (p_ ProgressIndicator) IsDisplayedWhenStopped() bool { - rv := objc.Call[bool](p_, objc.Sel("isDisplayedWhenStopped")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501173-doublevalue?language=objc +func (p_ ProgressIndicator) DoubleValue() float64 { + rv := objc.Call[float64](p_, objc.Sel("doubleValue")) return rv } -// A Boolean that indicates whether the progress indicator hides itself when it isn’t animating. [Full Topic] +// The value that indicates the current extent of the progress indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501171-displayedwhenstopped?language=objc -func (p_ ProgressIndicator) SetDisplayedWhenStopped(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setDisplayedWhenStopped:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501173-doublevalue?language=objc +func (p_ ProgressIndicator) SetDoubleValue(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setDoubleValue:"), value) } // The maximum value for the progress indicator. [Full Topic] @@ -191,6 +206,21 @@ func (p_ ProgressIndicator) SetMaxValue(value float64) { objc.Call[objc.Void](p_, objc.Sel("setMaxValue:"), value) } +// A Boolean that indicates whether the progress indicator hides itself when it isn’t animating. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501171-displayedwhenstopped?language=objc +func (p_ ProgressIndicator) IsDisplayedWhenStopped() bool { + rv := objc.Call[bool](p_, objc.Sel("isDisplayedWhenStopped")) + return rv +} + +// A Boolean that indicates whether the progress indicator hides itself when it isn’t animating. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501171-displayedwhenstopped?language=objc +func (p_ ProgressIndicator) SetDisplayedWhenStopped(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setDisplayedWhenStopped:"), value) +} + // A Boolean that indicates whether the progress indicator is indeterminate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501146-indeterminate?language=objc @@ -205,33 +235,3 @@ func (p_ ProgressIndicator) IsIndeterminate() bool { func (p_ ProgressIndicator) SetIndeterminate(value bool) { objc.Call[objc.Void](p_, objc.Sel("setIndeterminate:"), value) } - -// The value that indicates the current extent of the progress indicator. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501173-doublevalue?language=objc -func (p_ ProgressIndicator) DoubleValue() float64 { - rv := objc.Call[float64](p_, objc.Sel("doubleValue")) - return rv -} - -// The value that indicates the current extent of the progress indicator. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501173-doublevalue?language=objc -func (p_ ProgressIndicator) SetDoubleValue(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setDoubleValue:"), value) -} - -// The style of the progress indicator (bar or spinning). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501158-style?language=objc -func (p_ ProgressIndicator) Style() ProgressIndicatorStyle { - rv := objc.Call[ProgressIndicatorStyle](p_, objc.Sel("style")) - return rv -} - -// The style of the progress indicator (bar or spinning). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprogressindicator/1501158-style?language=objc -func (p_ ProgressIndicator) SetStyle(value ProgressIndicatorStyle) { - objc.Call[objc.Void](p_, objc.Sel("setStyle:"), value) -} diff --git a/macos/appkit/protocols.gen.m b/macos/appkit/protocols.gen.m index fd1201bc..1dc3b103 100644 --- a/macos/appkit/protocols.gen.m +++ b/macos/appkit/protocols.gen.m @@ -9,7 +9,6 @@ void importAppKitProtocols() { o = @protocol(NSAccessibilityCheckBox); o = @protocol(NSAccessibilityContainsTransientUI); o = @protocol(NSAccessibilityCustomRotorItemSearchDelegate); - o = @protocol(NSAccessibilityElement); o = @protocol(NSAccessibilityElementLoading); o = @protocol(NSAccessibilityGroup); o = @protocol(NSAccessibilityImage); @@ -107,7 +106,6 @@ void importAppKitProtocols() { o = @protocol(NSTabViewDelegate); o = @protocol(NSTableViewDataSource); o = @protocol(NSTableViewDelegate); - o = @protocol(NSTextAttachmentCell); o = @protocol(NSTextAttachmentContainer); o = @protocol(NSTextAttachmentLayout); o = @protocol(NSTextCheckingClient); diff --git a/macos/appkit/responder.gen.go b/macos/appkit/responder.gen.go index 83e355cc..8d0d2855 100644 --- a/macos/appkit/responder.gen.go +++ b/macos/appkit/responder.gen.go @@ -19,74 +19,72 @@ type _ResponderClass struct { // An interface definition for the [Responder] class. type IResponder interface { objc.IObject - MouseDragged(event IEvent) - InterpretKeyEvents(eventArray []IEvent) - RightMouseDragged(event IEvent) - EndGestureWithEvent(event IEvent) + TouchesMovedWithEvent(event IEvent) MouseEntered(event IEvent) - MouseExited(event IEvent) MouseUp(event IEvent) - PerformKeyEquivalent(event IEvent) bool - PresentError(error foundation.IError) bool - InvalidateRestorableState() - WantsForwardedScrollEventsForAxis(axis EventGestureAxis) bool - OtherMouseUp(event IEvent) - EncodeRestorableStateWithCoder(coder foundation.ICoder) + NewWindowForTab(sender objc.IObject) objc.Object + WillPresentError(error foundation.IError) foundation.Error PressureChangeWithEvent(event IEvent) - EncodeRestorableStateWithCoderBackgroundQueue(coder foundation.ICoder, queue foundation.IOperationQueue) - WantsScrollEventsForSwipeTrackingOnAxis(axis EventGestureAxis) bool - FlushBufferedKeyEvents() - MouseMoved(event IEvent) - RightMouseDown(event IEvent) - PerformTextFinderAction(sender objc.IObject) - UpdateUserActivityState(userActivity foundation.IUserActivity) + WantsForwardedScrollEventsForAxis(axis EventGestureAxis) bool + QuickLookWithEvent(event IEvent) + OtherMouseDragged(event IEvent) + InvalidateRestorableState() + RightMouseDragged(event IEvent) + ShouldBeTreatedAsInkEvent(event IEvent) bool + ShowContextHelp(sender objc.IObject) NoResponderFor(eventSelector objc.Selector) - NewWindowForTab(sender objc.IObject) objc.Object - TouchesMovedWithEvent(event IEvent) - TouchesCancelledWithEvent(event IEvent) - ResignFirstResponder() bool - TouchesEndedWithEvent(event IEvent) - ValidRequestorForSendTypeReturnType(sendType PasteboardType, returnType PasteboardType) objc.Object + MouseMoved(event IEvent) + TabletProximity(event IEvent) BecomeFirstResponder() bool - RightMouseUp(event IEvent) - SupplementalTargetForActionSender(action objc.Selector, sender objc.IObject) objc.Object + BeginGestureWithEvent(event IEvent) + FlagsChanged(event IEvent) TouchesBeganWithEvent(event IEvent) - SmartMagnifyWithEvent(event IEvent) ScrollWheel(event IEvent) - OtherMouseDragged(event IEvent) - PresentErrorModalForWindowDelegateDidPresentSelectorContextInfo(error foundation.IError, window IWindow, delegate objc.IObject, didPresentSelector objc.Selector, contextInfo unsafe.Pointer) - TabletProximity(event IEvent) - KeyUp(event IEvent) - QuickLookWithEvent(event IEvent) - FlagsChanged(event IEvent) + CursorUpdate(event IEvent) ValidateProposedFirstResponderForEvent(responder IResponder, event IEvent) bool + RestoreStateWithCoder(coder foundation.ICoder) + EndGestureWithEvent(event IEvent) + TouchesCancelledWithEvent(event IEvent) + MouseExited(event IEvent) + UpdateUserActivityState(userActivity foundation.IUserActivity) + SmartMagnifyWithEvent(event IEvent) RotateWithEvent(event IEvent) + PerformKeyEquivalent(event IEvent) bool + FlushBufferedKeyEvents() + KeyDown(event IEvent) + SupplementalTargetForActionSender(action objc.Selector, sender objc.IObject) objc.Object + TabletPoint(event IEvent) + ValidRequestorForSendTypeReturnType(sendType PasteboardType, returnType PasteboardType) objc.Object + SwipeWithEvent(event IEvent) + TouchesEndedWithEvent(event IEvent) + OtherMouseDown(event IEvent) + OtherMouseUp(event IEvent) + MagnifyWithEvent(event IEvent) + ResignFirstResponder() bool + MakeTouchBar() TouchBar TryToPerformWith(action objc.Selector, object objc.IObject) bool - WillPresentError(error foundation.IError) foundation.Error - ChangeModeWithEvent(event IEvent) + MouseDragged(event IEvent) HelpRequested(eventPtr IEvent) - MagnifyWithEvent(event IEvent) + WantsScrollEventsForSwipeTrackingOnAxis(axis EventGestureAxis) bool + InterpretKeyEvents(eventArray []IEvent) + PerformTextFinderAction(sender objc.IObject) MouseDown(event IEvent) - SwipeWithEvent(event IEvent) - MakeTouchBar() TouchBar - ShowContextHelp(sender objc.IObject) - OtherMouseDown(event IEvent) - KeyDown(event IEvent) - TabletPoint(event IEvent) - ShouldBeTreatedAsInkEvent(event IEvent) bool - BeginGestureWithEvent(event IEvent) - RestoreStateWithCoder(coder foundation.ICoder) - CursorUpdate(event IEvent) - AcceptsFirstResponder() bool + KeyUp(event IEvent) + ChangeModeWithEvent(event IEvent) + RightMouseDown(event IEvent) + PresentErrorModalForWindowDelegateDidPresentSelectorContextInfo(error foundation.IError, window IWindow, delegate objc.IObject, didPresentSelector objc.Selector, contextInfo unsafe.Pointer) + RightMouseUp(event IEvent) + EncodeRestorableStateWithCoderBackgroundQueue(coder foundation.ICoder, queue foundation.IOperationQueue) UndoManager() foundation.UndoManager - UserActivity() foundation.UserActivity - SetUserActivity(value foundation.IUserActivity) TouchBar() TouchBar SetTouchBar(value ITouchBar) - Menu() Menu - SetMenu(value IMenu) NextResponder() Responder SetNextResponder(value IResponder) + Menu() Menu + SetMenu(value IMenu) + AcceptsFirstResponder() bool + UserActivity() foundation.UserActivity + SetUserActivity(value foundation.IUserActivity) } // An abstract class that forms the basis of event and command processing in AppKit. [Full Topic] @@ -122,32 +120,11 @@ func NewResponder() Responder { return ResponderClass.New() } -// Informs the receiver that the user has moved the mouse with the left button pressed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527420-mousedragged?language=objc -func (r_ Responder) MouseDragged(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("mouseDragged:"), event) -} - -// Handles a series of key events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1531599-interpretkeyevents?language=objc -func (r_ Responder) InterpretKeyEvents(eventArray []IEvent) { - objc.Call[objc.Void](r_, objc.Sel("interpretKeyEvents:"), eventArray) -} - -// Informs the receiver that the user has moved the mouse with the right button pressed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1529135-rightmousedragged?language=objc -func (r_ Responder) RightMouseDragged(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("rightMouseDragged:"), event) -} - -// Informs the receiver that the user has ended a touch gesture. [Full Topic] +// Informs the receiver that one or more touches has moved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1531251-endgesturewithevent?language=objc -func (r_ Responder) EndGestureWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("endGestureWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1524501-touchesmovedwithevent?language=objc +func (r_ Responder) TouchesMovedWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("touchesMovedWithEvent:"), event) } // Informs the receiver that the cursor has entered a tracking rectangle. [Full Topic] @@ -157,11 +134,19 @@ func (r_ Responder) MouseEntered(event IEvent) { objc.Call[objc.Void](r_, objc.Sel("mouseEntered:"), event) } -// Informs the receiver that the cursor has exited a tracking rectangle. [Full Topic] +// Returns the classes that support secure coding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527561-mouseexited?language=objc -func (r_ Responder) MouseExited(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("mouseExited:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/3762523-allowedclassesforrestorablestate?language=objc +func (rc _ResponderClass) AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { + rv := objc.Call[[]objc.Class](rc, objc.Sel("allowedClassesForRestorableStateKeyPath:"), keyPath) + return rv +} + +// Returns the classes that support secure coding. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/3762523-allowedclassesforrestorablestate?language=objc +func Responder_AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { + return ResponderClass.AllowedClassesForRestorableStateKeyPath(keyPath) } // Informs the receiver that the user has released the left mouse button. [Full Topic] @@ -171,27 +156,27 @@ func (r_ Responder) MouseUp(event IEvent) { objc.Call[objc.Void](r_, objc.Sel("mouseUp:"), event) } -// Handle a key equivalent. [Full Topic] +// Creates a new window to show as a tab in a tabbed window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1524690-performkeyequivalent?language=objc -func (r_ Responder) PerformKeyEquivalent(event IEvent) bool { - rv := objc.Call[bool](r_, objc.Sel("performKeyEquivalent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1644675-newwindowfortab?language=objc +func (r_ Responder) NewWindowForTab(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](r_, objc.Sel("newWindowForTab:"), sender) return rv } -// Presents an error alert to the user as an application-modal dialog. [Full Topic] +// Returns a custom version of the supplied error object that’s more suitable for presentation in alert sheets and dialogs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1531294-presenterror?language=objc -func (r_ Responder) PresentError(error foundation.IError) bool { - rv := objc.Call[bool](r_, objc.Sel("presentError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525188-willpresenterror?language=objc +func (r_ Responder) WillPresentError(error foundation.IError) foundation.Error { + rv := objc.Call[foundation.Error](r_, objc.Sel("willPresentError:"), error) return rv } -// Marks the responder’s interface-related state as dirty. [Full Topic] +// Indicates a pressure change as the result of a user input event on a system that supports pressure sensitivity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526243-invalidaterestorablestate?language=objc -func (r_ Responder) InvalidateRestorableState() { - objc.Call[objc.Void](r_, objc.Sel("invalidateRestorableState")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534071-pressurechangewithevent?language=objc +func (r_ Responder) PressureChangeWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("pressureChangeWithEvent:"), event) } // Returns whether to forward elastic scrolling gesture events up the responder. [Full Topic] @@ -202,47 +187,54 @@ func (r_ Responder) WantsForwardedScrollEventsForAxis(axis EventGestureAxis) boo return rv } -// Informs the receiver that the user has released a mouse button other than the left or right button. [Full Topic] +// Performs a Quick Look on the content at the location specified by the supplied event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1531343-othermouseup?language=objc -func (r_ Responder) OtherMouseUp(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("otherMouseUp:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1535080-quicklookwithevent?language=objc +func (r_ Responder) QuickLookWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("quickLookWithEvent:"), event) } -// Saves the interface-related state of the responder. [Full Topic] +// Informs the receiver that the user has moved the mouse with a button other than the left or right button pressed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526236-encoderestorablestatewithcoder?language=objc -func (r_ Responder) EncodeRestorableStateWithCoder(coder foundation.ICoder) { - objc.Call[objc.Void](r_, objc.Sel("encodeRestorableStateWithCoder:"), coder) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1529804-othermousedragged?language=objc +func (r_ Responder) OtherMouseDragged(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("otherMouseDragged:"), event) } -// Indicates a pressure change as the result of a user input event on a system that supports pressure sensitivity. [Full Topic] +// Marks the responder’s interface-related state as dirty. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534071-pressurechangewithevent?language=objc -func (r_ Responder) PressureChangeWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("pressureChangeWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526243-invalidaterestorablestate?language=objc +func (r_ Responder) InvalidateRestorableState() { + objc.Call[objc.Void](r_, objc.Sel("invalidateRestorableState")) } -// Saves the interface-related state of the responder to a keyed archiver either synchronously or asynchronously on the given operation queue. [Full Topic] +// Informs the receiver that the user has moved the mouse with the right button pressed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/2876293-encoderestorablestatewithcoder?language=objc -func (r_ Responder) EncodeRestorableStateWithCoderBackgroundQueue(coder foundation.ICoder, queue foundation.IOperationQueue) { - objc.Call[objc.Void](r_, objc.Sel("encodeRestorableStateWithCoder:backgroundQueue:"), coder, queue) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1529135-rightmousedragged?language=objc +func (r_ Responder) RightMouseDragged(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("rightMouseDragged:"), event) } -// Implement this method to track gesture scroll events such as a swipe. [Full Topic] +// Indicates whether a pen-down event should be treated as an ink event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527456-wantsscrolleventsforswipetrackin?language=objc -func (r_ Responder) WantsScrollEventsForSwipeTrackingOnAxis(axis EventGestureAxis) bool { - rv := objc.Call[bool](r_, objc.Sel("wantsScrollEventsForSwipeTrackingOnAxis:"), axis) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534105-shouldbetreatedasinkevent?language=objc +func (r_ Responder) ShouldBeTreatedAsInkEvent(event IEvent) bool { + rv := objc.Call[bool](r_, objc.Sel("shouldBeTreatedAsInkEvent:"), event) return rv } -// Clears any unprocessed key events when overridden by subclasses. [Full Topic] +// Implemented by subclasses to invoke the help system, displaying information relevant to the receiver and its current state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527264-flushbufferedkeyevents?language=objc -func (r_ Responder) FlushBufferedKeyEvents() { - objc.Call[objc.Void](r_, objc.Sel("flushBufferedKeyEvents")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1529686-showcontexthelp?language=objc +func (r_ Responder) ShowContextHelp(sender objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("showContextHelp:"), sender) +} + +// Handles the case where an event or action message falls off the end of the responder chain. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534197-noresponderfor?language=objc +func (r_ Responder) NoResponderFor(eventSelector objc.Selector) { + objc.Call[objc.Void](r_, objc.Sel("noResponderFor:"), eventSelector) } // Informs the receiver that the mouse has moved. [Full Topic] @@ -252,107 +244,97 @@ func (r_ Responder) MouseMoved(event IEvent) { objc.Call[objc.Void](r_, objc.Sel("mouseMoved:"), event) } -// Informs the receiver that the user has pressed the right mouse button. [Full Topic] +// Informs the receiver that a tablet-proximity event has occurred. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1524727-rightmousedown?language=objc -func (r_ Responder) RightMouseDown(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("rightMouseDown:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527018-tabletproximity?language=objc +func (r_ Responder) TabletProximity(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("tabletProximity:"), event) } -// Performs all find oriented actions. [Full Topic] +// Notifies the receiver that it’s about to become first responder in its NSWindow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525967-performtextfinderaction?language=objc -func (r_ Responder) PerformTextFinderAction(sender objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("performTextFinderAction:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526750-becomefirstresponder?language=objc +func (r_ Responder) BecomeFirstResponder() bool { + rv := objc.Call[bool](r_, objc.Sel("becomeFirstResponder")) + return rv } -// Updates the state of the given user activity. [Full Topic] +// Informs the receiver that the user has begun a touch gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534884-updateuseractivitystate?language=objc -func (r_ Responder) UpdateUserActivityState(userActivity foundation.IUserActivity) { - objc.Call[objc.Void](r_, objc.Sel("updateUserActivityState:"), userActivity) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526368-begingesturewithevent?language=objc +func (r_ Responder) BeginGestureWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("beginGestureWithEvent:"), event) } -// Handles the case where an event or action message falls off the end of the responder chain. [Full Topic] +// Informs the receiver that the user has pressed or released a modifier key (Shift, Control, and so on). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534197-noresponderfor?language=objc -func (r_ Responder) NoResponderFor(eventSelector objc.Selector) { - objc.Call[objc.Void](r_, objc.Sel("noResponderFor:"), eventSelector) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527647-flagschanged?language=objc +func (r_ Responder) FlagsChanged(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("flagsChanged:"), event) } -// Creates a new window to show as a tab in a tabbed window. [Full Topic] +// Informs the receiver that new set of touches has been recognized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1644675-newwindowfortab?language=objc -func (r_ Responder) NewWindowForTab(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](r_, objc.Sel("newWindowForTab:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1531151-touchesbeganwithevent?language=objc +func (r_ Responder) TouchesBeganWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("touchesBeganWithEvent:"), event) } -// Informs the receiver that one or more touches has moved. [Full Topic] +// Informs the receiver that the mouse’s scroll wheel has moved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1524501-touchesmovedwithevent?language=objc -func (r_ Responder) TouchesMovedWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("touchesMovedWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534192-scrollwheel?language=objc +func (r_ Responder) ScrollWheel(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("scrollWheel:"), event) } -// Informs the receiver that tracking of touches has been cancelled for any reason. [Full Topic] +// Informs the receiver that the mouse cursor has moved into a cursor rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1530614-touchescancelledwithevent?language=objc -func (r_ Responder) TouchesCancelledWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("touchesCancelledWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525066-cursorupdate?language=objc +func (r_ Responder) CursorUpdate(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("cursorUpdate:"), event) } -// Notifies the receiver that it’s been asked to relinquish its status as first responder in its window. [Full Topic] +// Allows controls to determine when they should become first responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1532115-resignfirstresponder?language=objc -func (r_ Responder) ResignFirstResponder() bool { - rv := objc.Call[bool](r_, objc.Sel("resignFirstResponder")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527066-validateproposedfirstresponder?language=objc +func (r_ Responder) ValidateProposedFirstResponderForEvent(responder IResponder, event IEvent) bool { + rv := objc.Call[bool](r_, objc.Sel("validateProposedFirstResponder:forEvent:"), responder, event) return rv } -// Returns that a set of touches have been removed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525779-touchesendedwithevent?language=objc -func (r_ Responder) TouchesEndedWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("touchesEndedWithEvent:"), event) -} - -// Overridden by subclasses to determine what services are available. [Full Topic] +// Restores the interface-related state of the responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1524638-validrequestorforsendtype?language=objc -func (r_ Responder) ValidRequestorForSendTypeReturnType(sendType PasteboardType, returnType PasteboardType) objc.Object { - rv := objc.Call[objc.Object](r_, objc.Sel("validRequestorForSendType:returnType:"), sendType, returnType) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526253-restorestatewithcoder?language=objc +func (r_ Responder) RestoreStateWithCoder(coder foundation.ICoder) { + objc.Call[objc.Void](r_, objc.Sel("restoreStateWithCoder:"), coder) } -// Notifies the receiver that it’s about to become first responder in its NSWindow. [Full Topic] +// Informs the receiver that the user has ended a touch gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526750-becomefirstresponder?language=objc -func (r_ Responder) BecomeFirstResponder() bool { - rv := objc.Call[bool](r_, objc.Sel("becomeFirstResponder")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1531251-endgesturewithevent?language=objc +func (r_ Responder) EndGestureWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("endGestureWithEvent:"), event) } -// Informs the receiver that the user has released the right mouse button. [Full Topic] +// Informs the receiver that tracking of touches has been cancelled for any reason. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526309-rightmouseup?language=objc -func (r_ Responder) RightMouseUp(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("rightMouseUp:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1530614-touchescancelledwithevent?language=objc +func (r_ Responder) TouchesCancelledWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("touchesCancelledWithEvent:"), event) } -// Finds a target for an action method. [Full Topic] +// Informs the receiver that the cursor has exited a tracking rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1535269-supplementaltargetforaction?language=objc -func (r_ Responder) SupplementalTargetForActionSender(action objc.Selector, sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](r_, objc.Sel("supplementalTargetForAction:sender:"), action, sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527561-mouseexited?language=objc +func (r_ Responder) MouseExited(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("mouseExited:"), event) } -// Informs the receiver that new set of touches has been recognized. [Full Topic] +// Updates the state of the given user activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1531151-touchesbeganwithevent?language=objc -func (r_ Responder) TouchesBeganWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("touchesBeganWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534884-updateuseractivitystate?language=objc +func (r_ Responder) UpdateUserActivityState(userActivity foundation.IUserActivity) { + objc.Call[objc.Void](r_, objc.Sel("updateUserActivityState:"), userActivity) } // Informs the receiver that the user performed a smart zoom gesture. [Full Topic] @@ -362,83 +344,107 @@ func (r_ Responder) SmartMagnifyWithEvent(event IEvent) { objc.Call[objc.Void](r_, objc.Sel("smartMagnifyWithEvent:"), event) } -// Informs the receiver that the mouse’s scroll wheel has moved. [Full Topic] +// Informs the receiver that the user has begun a rotation gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534192-scrollwheel?language=objc -func (r_ Responder) ScrollWheel(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("scrollWheel:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525572-rotatewithevent?language=objc +func (r_ Responder) RotateWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("rotateWithEvent:"), event) } -// Informs the receiver that the user has moved the mouse with a button other than the left or right button pressed. [Full Topic] +// Handle a key equivalent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1529804-othermousedragged?language=objc -func (r_ Responder) OtherMouseDragged(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("otherMouseDragged:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1524690-performkeyequivalent?language=objc +func (r_ Responder) PerformKeyEquivalent(event IEvent) bool { + rv := objc.Call[bool](r_, objc.Sel("performKeyEquivalent:"), event) + return rv } -// Presents an error alert to the user as a document-modal sheet attached to document window. [Full Topic] +// Clears any unprocessed key events when overridden by subclasses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534705-presenterror?language=objc -func (r_ Responder) PresentErrorModalForWindowDelegateDidPresentSelectorContextInfo(error foundation.IError, window IWindow, delegate objc.IObject, didPresentSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](r_, objc.Sel("presentError:modalForWindow:delegate:didPresentSelector:contextInfo:"), error, window, delegate, didPresentSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527264-flushbufferedkeyevents?language=objc +func (r_ Responder) FlushBufferedKeyEvents() { + objc.Call[objc.Void](r_, objc.Sel("flushBufferedKeyEvents")) } -// Informs the receiver that a tablet-proximity event has occurred. [Full Topic] +// Informs the receiver that the user has pressed a key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527018-tabletproximity?language=objc -func (r_ Responder) TabletProximity(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("tabletProximity:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525805-keydown?language=objc +func (r_ Responder) KeyDown(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("keyDown:"), event) } -// Informs the receiver that the user has released a key. [Full Topic] +// Finds a target for an action method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527436-keyup?language=objc -func (r_ Responder) KeyUp(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("keyUp:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1535269-supplementaltargetforaction?language=objc +func (r_ Responder) SupplementalTargetForActionSender(action objc.Selector, sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](r_, objc.Sel("supplementalTargetForAction:sender:"), action, sender) + return rv } -// Performs a Quick Look on the content at the location specified by the supplied event. [Full Topic] +// Informs the receiver that a tablet-point event has occurred. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1535080-quicklookwithevent?language=objc -func (r_ Responder) QuickLookWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("quickLookWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1530905-tabletpoint?language=objc +func (r_ Responder) TabletPoint(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("tabletPoint:"), event) } -// Informs the receiver that the user has pressed or released a modifier key (Shift, Control, and so on). [Full Topic] +// Overridden by subclasses to determine what services are available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527647-flagschanged?language=objc -func (r_ Responder) FlagsChanged(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("flagsChanged:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1524638-validrequestorforsendtype?language=objc +func (r_ Responder) ValidRequestorForSendTypeReturnType(sendType PasteboardType, returnType PasteboardType) objc.Object { + rv := objc.Call[objc.Object](r_, objc.Sel("validRequestorForSendType:returnType:"), sendType, returnType) + return rv } -// Allows controls to determine when they should become first responder. [Full Topic] +// Informs the receiver that the user has begun a swipe gesture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527066-validateproposedfirstresponder?language=objc -func (r_ Responder) ValidateProposedFirstResponderForEvent(responder IResponder, event IEvent) bool { - rv := objc.Call[bool](r_, objc.Sel("validateProposedFirstResponder:forEvent:"), responder, event) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1524275-swipewithevent?language=objc +func (r_ Responder) SwipeWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("swipeWithEvent:"), event) } -// Informs the receiver that the user has begun a rotation gesture. [Full Topic] +// Returns that a set of touches have been removed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525572-rotatewithevent?language=objc -func (r_ Responder) RotateWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("rotateWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525779-touchesendedwithevent?language=objc +func (r_ Responder) TouchesEndedWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("touchesEndedWithEvent:"), event) } -// Returns the classes that support secure coding. [Full Topic] +// Informs the receiver that the user has pressed a mouse button other than the left or right one. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/3762523-allowedclassesforrestorablestate?language=objc -func (rc _ResponderClass) AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { - rv := objc.Call[[]objc.Class](rc, objc.Sel("allowedClassesForRestorableStateKeyPath:"), keyPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525719-othermousedown?language=objc +func (r_ Responder) OtherMouseDown(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("otherMouseDown:"), event) +} + +// Informs the receiver that the user has released a mouse button other than the left or right button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1531343-othermouseup?language=objc +func (r_ Responder) OtherMouseUp(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("otherMouseUp:"), event) +} + +// Informs the receiver that the user has begun a pinch gesture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525862-magnifywithevent?language=objc +func (r_ Responder) MagnifyWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("magnifyWithEvent:"), event) +} + +// Notifies the receiver that it’s been asked to relinquish its status as first responder in its window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1532115-resignfirstresponder?language=objc +func (r_ Responder) ResignFirstResponder() bool { + rv := objc.Call[bool](r_, objc.Sel("resignFirstResponder")) return rv } -// Returns the classes that support secure coding. [Full Topic] +// Your custom subclass of the NSResponder class should override this method to create and configure your subclass’s default NSTouchBar object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/3762523-allowedclassesforrestorablestate?language=objc -func Responder_AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { - return ResponderClass.AllowedClassesForRestorableStateKeyPath(keyPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/2544690-maketouchbar?language=objc +func (r_ Responder) MakeTouchBar() TouchBar { + rv := objc.Call[TouchBar](r_, objc.Sel("makeTouchBar")) + return rv } // Attempts to perform the method indicated by an action with a specified argument. [Full Topic] @@ -449,19 +455,11 @@ func (r_ Responder) TryToPerformWith(action objc.Selector, object objc.IObject) return rv } -// Returns a custom version of the supplied error object that’s more suitable for presentation in alert sheets and dialogs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525188-willpresenterror?language=objc -func (r_ Responder) WillPresentError(error foundation.IError) foundation.Error { - rv := objc.Call[foundation.Error](r_, objc.Sel("willPresentError:"), error) - return rv -} - -// Informs the responder that performed a double-tap on the side of an Apple Pencil. [Full Topic] +// Informs the receiver that the user has moved the mouse with the left button pressed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/3237219-changemodewithevent?language=objc -func (r_ Responder) ChangeModeWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("changeModeWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527420-mousedragged?language=objc +func (r_ Responder) MouseDragged(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("mouseDragged:"), event) } // Displays context-sensitive help for the receiver if help has been registered. [Full Topic] @@ -471,11 +469,26 @@ func (r_ Responder) HelpRequested(eventPtr IEvent) { objc.Call[objc.Void](r_, objc.Sel("helpRequested:"), eventPtr) } -// Informs the receiver that the user has begun a pinch gesture. [Full Topic] +// Implement this method to track gesture scroll events such as a swipe. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525862-magnifywithevent?language=objc -func (r_ Responder) MagnifyWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("magnifyWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527456-wantsscrolleventsforswipetrackin?language=objc +func (r_ Responder) WantsScrollEventsForSwipeTrackingOnAxis(axis EventGestureAxis) bool { + rv := objc.Call[bool](r_, objc.Sel("wantsScrollEventsForSwipeTrackingOnAxis:"), axis) + return rv +} + +// Handles a series of key events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1531599-interpretkeyevents?language=objc +func (r_ Responder) InterpretKeyEvents(eventArray []IEvent) { + objc.Call[objc.Void](r_, objc.Sel("interpretKeyEvents:"), eventArray) +} + +// Performs all find oriented actions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525967-performtextfinderaction?language=objc +func (r_ Responder) PerformTextFinderAction(sender objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("performTextFinderAction:"), sender) } // Informs the receiver that the user has pressed the left mouse button. [Full Topic] @@ -485,76 +498,69 @@ func (r_ Responder) MouseDown(event IEvent) { objc.Call[objc.Void](r_, objc.Sel("mouseDown:"), event) } -// Informs the receiver that the user has begun a swipe gesture. [Full Topic] +// Informs the receiver that the user has released a key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1524275-swipewithevent?language=objc -func (r_ Responder) SwipeWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("swipeWithEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1527436-keyup?language=objc +func (r_ Responder) KeyUp(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("keyUp:"), event) } -// Your custom subclass of the NSResponder class should override this method to create and configure your subclass’s default NSTouchBar object. [Full Topic] +// Informs the responder that performed a double-tap on the side of an Apple Pencil. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/2544690-maketouchbar?language=objc -func (r_ Responder) MakeTouchBar() TouchBar { - rv := objc.Call[TouchBar](r_, objc.Sel("makeTouchBar")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/3237219-changemodewithevent?language=objc +func (r_ Responder) ChangeModeWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("changeModeWithEvent:"), event) } -// Implemented by subclasses to invoke the help system, displaying information relevant to the receiver and its current state. [Full Topic] +// Informs the receiver that the user has pressed the right mouse button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1529686-showcontexthelp?language=objc -func (r_ Responder) ShowContextHelp(sender objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("showContextHelp:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1524727-rightmousedown?language=objc +func (r_ Responder) RightMouseDown(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("rightMouseDown:"), event) } -// Informs the receiver that the user has pressed a mouse button other than the left or right one. [Full Topic] +// Presents an error alert to the user as a document-modal sheet attached to document window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525719-othermousedown?language=objc -func (r_ Responder) OtherMouseDown(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("otherMouseDown:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534705-presenterror?language=objc +func (r_ Responder) PresentErrorModalForWindowDelegateDidPresentSelectorContextInfo(error foundation.IError, window IWindow, delegate objc.IObject, didPresentSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](r_, objc.Sel("presentError:modalForWindow:delegate:didPresentSelector:contextInfo:"), error, window, delegate, didPresentSelector, contextInfo) } -// Informs the receiver that the user has pressed a key. [Full Topic] +// Informs the receiver that the user has released the right mouse button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525805-keydown?language=objc -func (r_ Responder) KeyDown(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("keyDown:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526309-rightmouseup?language=objc +func (r_ Responder) RightMouseUp(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("rightMouseUp:"), event) } -// Informs the receiver that a tablet-point event has occurred. [Full Topic] +// Saves the interface-related state of the responder to a keyed archiver either synchronously or asynchronously on the given operation queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1530905-tabletpoint?language=objc -func (r_ Responder) TabletPoint(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("tabletPoint:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/2876293-encoderestorablestatewithcoder?language=objc +func (r_ Responder) EncodeRestorableStateWithCoderBackgroundQueue(coder foundation.ICoder, queue foundation.IOperationQueue) { + objc.Call[objc.Void](r_, objc.Sel("encodeRestorableStateWithCoder:backgroundQueue:"), coder, queue) } -// Indicates whether a pen-down event should be treated as an ink event. [Full Topic] +// The undo manager for this responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534105-shouldbetreatedasinkevent?language=objc -func (r_ Responder) ShouldBeTreatedAsInkEvent(event IEvent) bool { - rv := objc.Call[bool](r_, objc.Sel("shouldBeTreatedAsInkEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1535376-undomanager?language=objc +func (r_ Responder) UndoManager() foundation.UndoManager { + rv := objc.Call[foundation.UndoManager](r_, objc.Sel("undoManager")) return rv } -// Informs the receiver that the user has begun a touch gesture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526368-begingesturewithevent?language=objc -func (r_ Responder) BeginGestureWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("beginGestureWithEvent:"), event) -} - -// Restores the interface-related state of the responder. [Full Topic] +// The NSTouchBar object associated with the responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1526253-restorestatewithcoder?language=objc -func (r_ Responder) RestoreStateWithCoder(coder foundation.ICoder) { - objc.Call[objc.Void](r_, objc.Sel("restoreStateWithCoder:"), coder) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/2544731-touchbar?language=objc +func (r_ Responder) TouchBar() TouchBar { + rv := objc.Call[TouchBar](r_, objc.Sel("touchBar")) + return rv } -// Informs the receiver that the mouse cursor has moved into a cursor rectangle. [Full Topic] +// The NSTouchBar object associated with the responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1525066-cursorupdate?language=objc -func (r_ Responder) CursorUpdate(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("cursorUpdate:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/2544731-touchbar?language=objc +func (r_ Responder) SetTouchBar(value ITouchBar) { + objc.Call[objc.Void](r_, objc.Sel("setTouchBar:"), value) } // Returns an array of key paths representing the restorable attributes of the responder. [Full Topic] @@ -572,50 +578,19 @@ func Responder_RestorableStateKeyPaths() []string { return ResponderClass.RestorableStateKeyPaths() } -// A Boolean value that indicates whether the responder accepts first responder status. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1528708-acceptsfirstresponder?language=objc -func (r_ Responder) AcceptsFirstResponder() bool { - rv := objc.Call[bool](r_, objc.Sel("acceptsFirstResponder")) - return rv -} - -// The undo manager for this responder. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1535376-undomanager?language=objc -func (r_ Responder) UndoManager() foundation.UndoManager { - rv := objc.Call[foundation.UndoManager](r_, objc.Sel("undoManager")) - return rv -} - -// An object encapsulating a user activity supported by this responder. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534108-useractivity?language=objc -func (r_ Responder) UserActivity() foundation.UserActivity { - rv := objc.Call[foundation.UserActivity](r_, objc.Sel("userActivity")) - return rv -} - -// An object encapsulating a user activity supported by this responder. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534108-useractivity?language=objc -func (r_ Responder) SetUserActivity(value foundation.IUserActivity) { - objc.Call[objc.Void](r_, objc.Sel("setUserActivity:"), value) -} - -// The NSTouchBar object associated with the responder. [Full Topic] +// The next responder after this one, or nil if it has none. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/2544731-touchbar?language=objc -func (r_ Responder) TouchBar() TouchBar { - rv := objc.Call[TouchBar](r_, objc.Sel("touchBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1528245-nextresponder?language=objc +func (r_ Responder) NextResponder() Responder { + rv := objc.Call[Responder](r_, objc.Sel("nextResponder")) return rv } -// The NSTouchBar object associated with the responder. [Full Topic] +// The next responder after this one, or nil if it has none. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/2544731-touchbar?language=objc -func (r_ Responder) SetTouchBar(value ITouchBar) { - objc.Call[objc.Void](r_, objc.Sel("setTouchBar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1528245-nextresponder?language=objc +func (r_ Responder) SetNextResponder(value IResponder) { + objc.Call[objc.Void](r_, objc.Sel("setNextResponder:"), value) } // Returns the responder’s menu. [Full Topic] @@ -633,17 +608,25 @@ func (r_ Responder) SetMenu(value IMenu) { objc.Call[objc.Void](r_, objc.Sel("setMenu:"), value) } -// The next responder after this one, or nil if it has none. [Full Topic] +// A Boolean value that indicates whether the responder accepts first responder status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1528245-nextresponder?language=objc -func (r_ Responder) NextResponder() Responder { - rv := objc.Call[Responder](r_, objc.Sel("nextResponder")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1528708-acceptsfirstresponder?language=objc +func (r_ Responder) AcceptsFirstResponder() bool { + rv := objc.Call[bool](r_, objc.Sel("acceptsFirstResponder")) return rv } -// The next responder after this one, or nil if it has none. [Full Topic] +// An object encapsulating a user activity supported by this responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1528245-nextresponder?language=objc -func (r_ Responder) SetNextResponder(value IResponder) { - objc.Call[objc.Void](r_, objc.Sel("setNextResponder:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534108-useractivity?language=objc +func (r_ Responder) UserActivity() foundation.UserActivity { + rv := objc.Call[foundation.UserActivity](r_, objc.Sel("userActivity")) + return rv +} + +// An object encapsulating a user activity supported by this responder. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsresponder/1534108-useractivity?language=objc +func (r_ Responder) SetUserActivity(value foundation.IUserActivity) { + objc.Call[objc.Void](r_, objc.Sel("setUserActivity:"), value) } diff --git a/macos/appkit/rotation_gesture_recognizer.gen.go b/macos/appkit/rotation_gesture_recognizer.gen.go index 46aeb041..2be0d23d 100644 --- a/macos/appkit/rotation_gesture_recognizer.gen.go +++ b/macos/appkit/rotation_gesture_recognizer.gen.go @@ -18,10 +18,10 @@ type _RotationGestureRecognizerClass struct { // An interface definition for the [RotationGestureRecognizer] class. type IRotationGestureRecognizer interface { IGestureRecognizer - RotationInDegrees() float64 - SetRotationInDegrees(value float64) Rotation() float64 SetRotation(value float64) + RotationInDegrees() float64 + SetRotationInDegrees(value float64) } // A continuous gesture recognizer that tracks two trackpad touches moving opposite each other in a circular motion. [Full Topic] @@ -71,21 +71,6 @@ func NewRotationGestureRecognizerWithTargetAction(target objc.IObject, action ob return instance } -// The rotation of the gesture in degrees. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrotationgesturerecognizer/1535523-rotationindegrees?language=objc -func (r_ RotationGestureRecognizer) RotationInDegrees() float64 { - rv := objc.Call[float64](r_, objc.Sel("rotationInDegrees")) - return rv -} - -// The rotation of the gesture in degrees. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrotationgesturerecognizer/1535523-rotationindegrees?language=objc -func (r_ RotationGestureRecognizer) SetRotationInDegrees(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setRotationInDegrees:"), value) -} - // The rotation of the gesture in radians. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrotationgesturerecognizer/1527087-rotation?language=objc @@ -100,3 +85,18 @@ func (r_ RotationGestureRecognizer) Rotation() float64 { func (r_ RotationGestureRecognizer) SetRotation(value float64) { objc.Call[objc.Void](r_, objc.Sel("setRotation:"), value) } + +// The rotation of the gesture in degrees. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrotationgesturerecognizer/1535523-rotationindegrees?language=objc +func (r_ RotationGestureRecognizer) RotationInDegrees() float64 { + rv := objc.Call[float64](r_, objc.Sel("rotationInDegrees")) + return rv +} + +// The rotation of the gesture in degrees. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrotationgesturerecognizer/1535523-rotationindegrees?language=objc +func (r_ RotationGestureRecognizer) SetRotationInDegrees(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setRotationInDegrees:"), value) +} diff --git a/macos/appkit/rule_editor.gen.go b/macos/appkit/rule_editor.gen.go index 7031218b..72b9345f 100644 --- a/macos/appkit/rule_editor.gen.go +++ b/macos/appkit/rule_editor.gen.go @@ -19,49 +19,49 @@ type _RuleEditorClass struct { // An interface definition for the [RuleEditor] class. type IRuleEditor interface { IControl - RemoveRowAtIndex(rowIndex int) - SelectRowIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) + CriteriaForRow(row int) []objc.Object AddRow(sender objc.IObject) + RowTypeForRow(rowIndex int) RuleEditorRowType + RowForDisplayValue(displayValue objc.IObject) int SetCriteriaAndDisplayValuesForRowAtIndex(criteria []objc.IObject, values []objc.IObject, rowIndex int) - DisplayValuesForRow(row int) []objc.Object ParentRowForRow(rowIndex int) int - RowTypeForRow(rowIndex int) RuleEditorRowType - ReloadPredicate() - CriteriaForRow(row int) []objc.Object ReloadCriteria() RemoveRowsAtIndexesIncludeSubrows(rowIndexes foundation.IIndexSet, includeSubrows bool) SubrowIndexesForRow(rowIndex int) foundation.IndexSet - RowForDisplayValue(displayValue objc.IObject) int InsertRowAtIndexWithTypeAsSubrowOfRowAnimate(rowIndex int, rowType RuleEditorRowType, parentRow int, shouldAnimate bool) PredicateForRow(row int) foundation.Predicate + SelectRowIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) + DisplayValuesForRow(row int) []objc.Object + ReloadPredicate() + RemoveRowAtIndex(rowIndex int) FormattingStringsFilename() string SetFormattingStringsFilename(value string) + CanRemoveAllRows() bool + SetCanRemoveAllRows(value bool) + RowHeight() float64 + SetRowHeight(value float64) IsEditable() bool SetEditable(value bool) - CriteriaKeyPath() string - SetCriteriaKeyPath(value string) + RowClass() objc.Class + SetRowClass(value objc.IClass) + Delegate() RuleEditorDelegateObject + SetDelegate(value PRuleEditorDelegate) + SetDelegateObject(valueObject objc.IObject) + Predicate() foundation.Predicate + SubrowsKeyPath() string + SetSubrowsKeyPath(value string) + FormattingDictionary() map[string]string + SetFormattingDictionary(value map[string]string) RowTypeKeyPath() string SetRowTypeKeyPath(value string) - SelectedRowIndexes() foundation.IndexSet - RowHeight() float64 - SetRowHeight(value float64) - NumberOfRows() int - CanRemoveAllRows() bool - SetCanRemoveAllRows(value bool) DisplayValuesKeyPath() string SetDisplayValuesKeyPath(value string) + CriteriaKeyPath() string + SetCriteriaKeyPath(value string) + NumberOfRows() int + SelectedRowIndexes() foundation.IndexSet NestingMode() RuleEditorNestingMode SetNestingMode(value RuleEditorNestingMode) - Predicate() foundation.Predicate - SubrowsKeyPath() string - SetSubrowsKeyPath(value string) - RowClass() objc.Class - SetRowClass(value objc.IClass) - FormattingDictionary() map[string]string - SetFormattingDictionary(value map[string]string) - Delegate() RuleEditorDelegateObject - SetDelegate(value PRuleEditorDelegate) - SetDelegateObject(valueObject objc.IObject) } // An interface for configuring a rule-based list of options. [Full Topic] @@ -111,18 +111,12 @@ func NewRuleEditorWithFrame(frameRect foundation.Rect) RuleEditor { return instance } -// Removes the row at a given index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1534953-removerowatindex?language=objc -func (r_ RuleEditor) RemoveRowAtIndex(rowIndex int) { - objc.Call[objc.Void](r_, objc.Sel("removeRowAtIndex:"), rowIndex) -} - -// Sets in the receiver the indexes of rows that are selected. [Full Topic] +// Returns the currently chosen items for a given row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1534559-selectrowindexes?language=objc -func (r_ RuleEditor) SelectRowIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) { - objc.Call[objc.Void](r_, objc.Sel("selectRowIndexes:byExtendingSelection:"), indexes, extend) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1524906-criteriaforrow?language=objc +func (r_ RuleEditor) CriteriaForRow(row int) []objc.Object { + rv := objc.Call[[]objc.Object](r_, objc.Sel("criteriaForRow:"), row) + return rv } // Adds a row to the receiver. [Full Topic] @@ -132,29 +126,6 @@ func (r_ RuleEditor) AddRow(sender objc.IObject) { objc.Call[objc.Void](r_, objc.Sel("addRow:"), sender) } -// Modifies the row at a given index to contain the given items and values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1534317-setcriteria?language=objc -func (r_ RuleEditor) SetCriteriaAndDisplayValuesForRowAtIndex(criteria []objc.IObject, values []objc.IObject, rowIndex int) { - objc.Call[objc.Void](r_, objc.Sel("setCriteria:andDisplayValues:forRowAtIndex:"), criteria, values, rowIndex) -} - -// Returns the chosen values for a given row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1529645-displayvaluesforrow?language=objc -func (r_ RuleEditor) DisplayValuesForRow(row int) []objc.Object { - rv := objc.Call[[]objc.Object](r_, objc.Sel("displayValuesForRow:"), row) - return rv -} - -// Returns the index of the parent of a given row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1534763-parentrowforrow?language=objc -func (r_ RuleEditor) ParentRowForRow(rowIndex int) int { - rv := objc.Call[int](r_, objc.Sel("parentRowForRow:"), rowIndex) - return rv -} - // Returns the type of a given row. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1530356-rowtypeforrow?language=objc @@ -163,18 +134,26 @@ func (r_ RuleEditor) RowTypeForRow(rowIndex int) RuleEditorRowType { return rv } -// Instructs the receiver to regenerate its predicate by invoking the corresponding delegate method. [Full Topic] +// Returns the index of the row containing a given value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1529215-reloadpredicate?language=objc -func (r_ RuleEditor) ReloadPredicate() { - objc.Call[objc.Void](r_, objc.Sel("reloadPredicate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1524590-rowfordisplayvalue?language=objc +func (r_ RuleEditor) RowForDisplayValue(displayValue objc.IObject) int { + rv := objc.Call[int](r_, objc.Sel("rowForDisplayValue:"), displayValue) + return rv } -// Returns the currently chosen items for a given row. [Full Topic] +// Modifies the row at a given index to contain the given items and values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1524906-criteriaforrow?language=objc -func (r_ RuleEditor) CriteriaForRow(row int) []objc.Object { - rv := objc.Call[[]objc.Object](r_, objc.Sel("criteriaForRow:"), row) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1534317-setcriteria?language=objc +func (r_ RuleEditor) SetCriteriaAndDisplayValuesForRowAtIndex(criteria []objc.IObject, values []objc.IObject, rowIndex int) { + objc.Call[objc.Void](r_, objc.Sel("setCriteria:andDisplayValues:forRowAtIndex:"), criteria, values, rowIndex) +} + +// Returns the index of the parent of a given row. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1534763-parentrowforrow?language=objc +func (r_ RuleEditor) ParentRowForRow(rowIndex int) int { + rv := objc.Call[int](r_, objc.Sel("parentRowForRow:"), rowIndex) return rv } @@ -200,14 +179,6 @@ func (r_ RuleEditor) SubrowIndexesForRow(rowIndex int) foundation.IndexSet { return rv } -// Returns the index of the row containing a given value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1524590-rowfordisplayvalue?language=objc -func (r_ RuleEditor) RowForDisplayValue(displayValue objc.IObject) int { - rv := objc.Call[int](r_, objc.Sel("rowForDisplayValue:"), displayValue) - return rv -} - // Adds a new row of a given type at a given location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1528842-insertrowatindex?language=objc @@ -223,72 +194,63 @@ func (r_ RuleEditor) PredicateForRow(row int) foundation.Predicate { return rv } -// The name of the rule editor’s strings file. [Full Topic] +// Sets in the receiver the indexes of rows that are selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1533323-formattingstringsfilename?language=objc -func (r_ RuleEditor) FormattingStringsFilename() string { - rv := objc.Call[string](r_, objc.Sel("formattingStringsFilename")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1534559-selectrowindexes?language=objc +func (r_ RuleEditor) SelectRowIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) { + objc.Call[objc.Void](r_, objc.Sel("selectRowIndexes:byExtendingSelection:"), indexes, extend) } -// The name of the rule editor’s strings file. [Full Topic] +// Returns the chosen values for a given row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1533323-formattingstringsfilename?language=objc -func (r_ RuleEditor) SetFormattingStringsFilename(value string) { - objc.Call[objc.Void](r_, objc.Sel("setFormattingStringsFilename:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1529645-displayvaluesforrow?language=objc +func (r_ RuleEditor) DisplayValuesForRow(row int) []objc.Object { + rv := objc.Call[[]objc.Object](r_, objc.Sel("displayValuesForRow:"), row) + return rv } -// A Boolean value that determines whether the rule editor is editable. [Full Topic] +// Instructs the receiver to regenerate its predicate by invoking the corresponding delegate method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1530425-editable?language=objc -func (r_ RuleEditor) IsEditable() bool { - rv := objc.Call[bool](r_, objc.Sel("isEditable")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1529215-reloadpredicate?language=objc +func (r_ RuleEditor) ReloadPredicate() { + objc.Call[objc.Void](r_, objc.Sel("reloadPredicate")) } -// A Boolean value that determines whether the rule editor is editable. [Full Topic] +// Removes the row at a given index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1530425-editable?language=objc -func (r_ RuleEditor) SetEditable(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setEditable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1534953-removerowatindex?language=objc +func (r_ RuleEditor) RemoveRowAtIndex(rowIndex int) { + objc.Call[objc.Void](r_, objc.Sel("removeRowAtIndex:"), rowIndex) } -// The criteria key path. [Full Topic] +// The name of the rule editor’s strings file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1524761-criteriakeypath?language=objc -func (r_ RuleEditor) CriteriaKeyPath() string { - rv := objc.Call[string](r_, objc.Sel("criteriaKeyPath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1533323-formattingstringsfilename?language=objc +func (r_ RuleEditor) FormattingStringsFilename() string { + rv := objc.Call[string](r_, objc.Sel("formattingStringsFilename")) return rv } -// The criteria key path. [Full Topic] +// The name of the rule editor’s strings file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1524761-criteriakeypath?language=objc -func (r_ RuleEditor) SetCriteriaKeyPath(value string) { - objc.Call[objc.Void](r_, objc.Sel("setCriteriaKeyPath:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1533323-formattingstringsfilename?language=objc +func (r_ RuleEditor) SetFormattingStringsFilename(value string) { + objc.Call[objc.Void](r_, objc.Sel("setFormattingStringsFilename:"), value) } -// The key path for the row type. [Full Topic] +// A Boolean value that indicates whether all the rows can be removed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1527020-rowtypekeypath?language=objc -func (r_ RuleEditor) RowTypeKeyPath() string { - rv := objc.Call[string](r_, objc.Sel("rowTypeKeyPath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535531-canremoveallrows?language=objc +func (r_ RuleEditor) CanRemoveAllRows() bool { + rv := objc.Call[bool](r_, objc.Sel("canRemoveAllRows")) return rv } -// The key path for the row type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1527020-rowtypekeypath?language=objc -func (r_ RuleEditor) SetRowTypeKeyPath(value string) { - objc.Call[objc.Void](r_, objc.Sel("setRowTypeKeyPath:"), value) -} - -// The indexes of the rule editor’s selected rows. [Full Topic] +// A Boolean value that indicates whether all the rows can be removed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1529841-selectedrowindexes?language=objc -func (r_ RuleEditor) SelectedRowIndexes() foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](r_, objc.Sel("selectedRowIndexes")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535531-canremoveallrows?language=objc +func (r_ RuleEditor) SetCanRemoveAllRows(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setCanRemoveAllRows:"), value) } // The rule editor’s row height. [Full Topic] @@ -306,57 +268,58 @@ func (r_ RuleEditor) SetRowHeight(value float64) { objc.Call[objc.Void](r_, objc.Sel("setRowHeight:"), value) } -// The number of rows in the rule editor. [Full Topic] +// A Boolean value that determines whether the rule editor is editable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1529330-numberofrows?language=objc -func (r_ RuleEditor) NumberOfRows() int { - rv := objc.Call[int](r_, objc.Sel("numberOfRows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1530425-editable?language=objc +func (r_ RuleEditor) IsEditable() bool { + rv := objc.Call[bool](r_, objc.Sel("isEditable")) return rv } -// A Boolean value that indicates whether all the rows can be removed. [Full Topic] +// A Boolean value that determines whether the rule editor is editable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535531-canremoveallrows?language=objc -func (r_ RuleEditor) CanRemoveAllRows() bool { - rv := objc.Call[bool](r_, objc.Sel("canRemoveAllRows")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1530425-editable?language=objc +func (r_ RuleEditor) SetEditable(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setEditable:"), value) } -// A Boolean value that indicates whether all the rows can be removed. [Full Topic] +// The class used to create a new row in the “rows” binding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535531-canremoveallrows?language=objc -func (r_ RuleEditor) SetCanRemoveAllRows(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setCanRemoveAllRows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535414-rowclass?language=objc +func (r_ RuleEditor) RowClass() objc.Class { + rv := objc.Call[objc.Class](r_, objc.Sel("rowClass")) + return rv } -// The display values key path. [Full Topic] +// The class used to create a new row in the “rows” binding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535572-displayvalueskeypath?language=objc -func (r_ RuleEditor) DisplayValuesKeyPath() string { - rv := objc.Call[string](r_, objc.Sel("displayValuesKeyPath")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535414-rowclass?language=objc +func (r_ RuleEditor) SetRowClass(value objc.IClass) { + objc.Call[objc.Void](r_, objc.Sel("setRowClass:"), value) } -// The display values key path. [Full Topic] +// The rule editor’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535572-displayvalueskeypath?language=objc -func (r_ RuleEditor) SetDisplayValuesKeyPath(value string) { - objc.Call[objc.Void](r_, objc.Sel("setDisplayValuesKeyPath:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1528017-delegate?language=objc +func (r_ RuleEditor) Delegate() RuleEditorDelegateObject { + rv := objc.Call[RuleEditorDelegateObject](r_, objc.Sel("delegate")) + return rv } -// The rule editor’s nesting mode. [Full Topic] +// The rule editor’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1533955-nestingmode?language=objc -func (r_ RuleEditor) NestingMode() RuleEditorNestingMode { - rv := objc.Call[RuleEditorNestingMode](r_, objc.Sel("nestingMode")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1528017-delegate?language=objc +func (r_ RuleEditor) SetDelegate(value PRuleEditorDelegate) { + po0 := objc.WrapAsProtocol("NSRuleEditorDelegate", value) + objc.SetAssociatedObject(r_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](r_, objc.Sel("setDelegate:"), po0) } -// The rule editor’s nesting mode. [Full Topic] +// The rule editor’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1533955-nestingmode?language=objc -func (r_ RuleEditor) SetNestingMode(value RuleEditorNestingMode) { - objc.Call[objc.Void](r_, objc.Sel("setNestingMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1528017-delegate?language=objc +func (r_ RuleEditor) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("setDelegate:"), valueObject) } // The rule editor’s predicate. [Full Topic] @@ -382,21 +345,6 @@ func (r_ RuleEditor) SetSubrowsKeyPath(value string) { objc.Call[objc.Void](r_, objc.Sel("setSubrowsKeyPath:"), value) } -// The class used to create a new row in the “rows” binding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535414-rowclass?language=objc -func (r_ RuleEditor) RowClass() objc.Class { - rv := objc.Call[objc.Class](r_, objc.Sel("rowClass")) - return rv -} - -// The class used to create a new row in the “rows” binding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535414-rowclass?language=objc -func (r_ RuleEditor) SetRowClass(value objc.IClass) { - objc.Call[objc.Void](r_, objc.Sel("setRowClass:"), value) -} - // The formatting dictionary for the rule editor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1526737-formattingdictionary?language=objc @@ -412,26 +360,78 @@ func (r_ RuleEditor) SetFormattingDictionary(value map[string]string) { objc.Call[objc.Void](r_, objc.Sel("setFormattingDictionary:"), value) } -// The rule editor’s delegate. [Full Topic] +// The key path for the row type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1528017-delegate?language=objc -func (r_ RuleEditor) Delegate() RuleEditorDelegateObject { - rv := objc.Call[RuleEditorDelegateObject](r_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1527020-rowtypekeypath?language=objc +func (r_ RuleEditor) RowTypeKeyPath() string { + rv := objc.Call[string](r_, objc.Sel("rowTypeKeyPath")) return rv } -// The rule editor’s delegate. [Full Topic] +// The key path for the row type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1528017-delegate?language=objc -func (r_ RuleEditor) SetDelegate(value PRuleEditorDelegate) { - po0 := objc.WrapAsProtocol("NSRuleEditorDelegate", value) - objc.SetAssociatedObject(r_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](r_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1527020-rowtypekeypath?language=objc +func (r_ RuleEditor) SetRowTypeKeyPath(value string) { + objc.Call[objc.Void](r_, objc.Sel("setRowTypeKeyPath:"), value) } -// The rule editor’s delegate. [Full Topic] +// The display values key path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1528017-delegate?language=objc -func (r_ RuleEditor) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535572-displayvalueskeypath?language=objc +func (r_ RuleEditor) DisplayValuesKeyPath() string { + rv := objc.Call[string](r_, objc.Sel("displayValuesKeyPath")) + return rv +} + +// The display values key path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1535572-displayvalueskeypath?language=objc +func (r_ RuleEditor) SetDisplayValuesKeyPath(value string) { + objc.Call[objc.Void](r_, objc.Sel("setDisplayValuesKeyPath:"), value) +} + +// The criteria key path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1524761-criteriakeypath?language=objc +func (r_ RuleEditor) CriteriaKeyPath() string { + rv := objc.Call[string](r_, objc.Sel("criteriaKeyPath")) + return rv +} + +// The criteria key path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1524761-criteriakeypath?language=objc +func (r_ RuleEditor) SetCriteriaKeyPath(value string) { + objc.Call[objc.Void](r_, objc.Sel("setCriteriaKeyPath:"), value) +} + +// The number of rows in the rule editor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1529330-numberofrows?language=objc +func (r_ RuleEditor) NumberOfRows() int { + rv := objc.Call[int](r_, objc.Sel("numberOfRows")) + return rv +} + +// The indexes of the rule editor’s selected rows. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1529841-selectedrowindexes?language=objc +func (r_ RuleEditor) SelectedRowIndexes() foundation.IndexSet { + rv := objc.Call[foundation.IndexSet](r_, objc.Sel("selectedRowIndexes")) + return rv +} + +// The rule editor’s nesting mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1533955-nestingmode?language=objc +func (r_ RuleEditor) NestingMode() RuleEditorNestingMode { + rv := objc.Call[RuleEditorNestingMode](r_, objc.Sel("nestingMode")) + return rv +} + +// The rule editor’s nesting mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1533955-nestingmode?language=objc +func (r_ RuleEditor) SetNestingMode(value RuleEditorNestingMode) { + objc.Call[objc.Void](r_, objc.Sel("setNestingMode:"), value) } diff --git a/macos/appkit/rule_editor_delegate.gen.go b/macos/appkit/rule_editor_delegate.gen.go index f540e1a2..577cba3b 100644 --- a/macos/appkit/rule_editor_delegate.gen.go +++ b/macos/appkit/rule_editor_delegate.gen.go @@ -11,22 +11,10 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate?language=objc type PRuleEditorDelegate interface { - // optional - RuleEditorDisplayValueForCriterionInRow(editor RuleEditor, criterion objc.Object, row int) objc.Object - HasRuleEditorDisplayValueForCriterionInRow() bool - - // optional - RuleEditorPredicatePartsForCriterionWithDisplayValueInRow(editor RuleEditor, criterion objc.Object, value objc.Object, row int) map[RuleEditorPredicatePartKey]objc.Object - HasRuleEditorPredicatePartsForCriterionWithDisplayValueInRow() bool - // optional RuleEditorNumberOfChildrenForCriterionWithRowType(editor RuleEditor, criterion objc.Object, rowType RuleEditorRowType) int HasRuleEditorNumberOfChildrenForCriterionWithRowType() bool - // optional - RuleEditorChildForCriterionWithRowType(editor RuleEditor, index int, criterion objc.Object, rowType RuleEditorRowType) objc.Object - HasRuleEditorChildForCriterionWithRowType() bool - // optional RuleEditorRowsDidChange(notification foundation.Notification) HasRuleEditorRowsDidChange() bool @@ -34,47 +22,10 @@ type PRuleEditorDelegate interface { // A delegate implementation builder for the [PRuleEditorDelegate] protocol. type RuleEditorDelegate struct { - _RuleEditorDisplayValueForCriterionInRow func(editor RuleEditor, criterion objc.Object, row int) objc.Object - _RuleEditorPredicatePartsForCriterionWithDisplayValueInRow func(editor RuleEditor, criterion objc.Object, value objc.Object, row int) map[RuleEditorPredicatePartKey]objc.Object - _RuleEditorNumberOfChildrenForCriterionWithRowType func(editor RuleEditor, criterion objc.Object, rowType RuleEditorRowType) int - _RuleEditorChildForCriterionWithRowType func(editor RuleEditor, index int, criterion objc.Object, rowType RuleEditorRowType) objc.Object - _RuleEditorRowsDidChange func(notification foundation.Notification) + _RuleEditorNumberOfChildrenForCriterionWithRowType func(editor RuleEditor, criterion objc.Object, rowType RuleEditorRowType) int + _RuleEditorRowsDidChange func(notification foundation.Notification) } -func (di *RuleEditorDelegate) HasRuleEditorDisplayValueForCriterionInRow() bool { - return di._RuleEditorDisplayValueForCriterionInRow != nil -} - -// Returns the value for a given criterion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1534788-ruleeditor?language=objc -func (di *RuleEditorDelegate) SetRuleEditorDisplayValueForCriterionInRow(f func(editor RuleEditor, criterion objc.Object, row int) objc.Object) { - di._RuleEditorDisplayValueForCriterionInRow = f -} - -// Returns the value for a given criterion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1534788-ruleeditor?language=objc -func (di *RuleEditorDelegate) RuleEditorDisplayValueForCriterionInRow(editor RuleEditor, criterion objc.Object, row int) objc.Object { - return di._RuleEditorDisplayValueForCriterionInRow(editor, criterion, row) -} -func (di *RuleEditorDelegate) HasRuleEditorPredicatePartsForCriterionWithDisplayValueInRow() bool { - return di._RuleEditorPredicatePartsForCriterionWithDisplayValueInRow != nil -} - -// Returns a dictionary representing the parts of the predicate determined by the given criterion and value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1526667-ruleeditor?language=objc -func (di *RuleEditorDelegate) SetRuleEditorPredicatePartsForCriterionWithDisplayValueInRow(f func(editor RuleEditor, criterion objc.Object, value objc.Object, row int) map[RuleEditorPredicatePartKey]objc.Object) { - di._RuleEditorPredicatePartsForCriterionWithDisplayValueInRow = f -} - -// Returns a dictionary representing the parts of the predicate determined by the given criterion and value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1526667-ruleeditor?language=objc -func (di *RuleEditorDelegate) RuleEditorPredicatePartsForCriterionWithDisplayValueInRow(editor RuleEditor, criterion objc.Object, value objc.Object, row int) map[RuleEditorPredicatePartKey]objc.Object { - return di._RuleEditorPredicatePartsForCriterionWithDisplayValueInRow(editor, criterion, value, row) -} func (di *RuleEditorDelegate) HasRuleEditorNumberOfChildrenForCriterionWithRowType() bool { return di._RuleEditorNumberOfChildrenForCriterionWithRowType != nil } @@ -92,23 +43,6 @@ func (di *RuleEditorDelegate) SetRuleEditorNumberOfChildrenForCriterionWithRowTy func (di *RuleEditorDelegate) RuleEditorNumberOfChildrenForCriterionWithRowType(editor RuleEditor, criterion objc.Object, rowType RuleEditorRowType) int { return di._RuleEditorNumberOfChildrenForCriterionWithRowType(editor, criterion, rowType) } -func (di *RuleEditorDelegate) HasRuleEditorChildForCriterionWithRowType() bool { - return di._RuleEditorChildForCriterionWithRowType != nil -} - -// Returns the child of a given item at a given index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1527259-ruleeditor?language=objc -func (di *RuleEditorDelegate) SetRuleEditorChildForCriterionWithRowType(f func(editor RuleEditor, index int, criterion objc.Object, rowType RuleEditorRowType) objc.Object) { - di._RuleEditorChildForCriterionWithRowType = f -} - -// Returns the child of a given item at a given index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1527259-ruleeditor?language=objc -func (di *RuleEditorDelegate) RuleEditorChildForCriterionWithRowType(editor RuleEditor, index int, criterion objc.Object, rowType RuleEditorRowType) objc.Object { - return di._RuleEditorChildForCriterionWithRowType(editor, index, criterion, rowType) -} func (di *RuleEditorDelegate) HasRuleEditorRowsDidChange() bool { return di._RuleEditorRowsDidChange != nil } @@ -135,30 +69,6 @@ type RuleEditorDelegateObject struct { objc.Object } -func (r_ RuleEditorDelegateObject) HasRuleEditorDisplayValueForCriterionInRow() bool { - return r_.RespondsToSelector(objc.Sel("ruleEditor:displayValueForCriterion:inRow:")) -} - -// Returns the value for a given criterion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1534788-ruleeditor?language=objc -func (r_ RuleEditorDelegateObject) RuleEditorDisplayValueForCriterionInRow(editor RuleEditor, criterion objc.Object, row int) objc.Object { - rv := objc.Call[objc.Object](r_, objc.Sel("ruleEditor:displayValueForCriterion:inRow:"), editor, criterion, row) - return rv -} - -func (r_ RuleEditorDelegateObject) HasRuleEditorPredicatePartsForCriterionWithDisplayValueInRow() bool { - return r_.RespondsToSelector(objc.Sel("ruleEditor:predicatePartsForCriterion:withDisplayValue:inRow:")) -} - -// Returns a dictionary representing the parts of the predicate determined by the given criterion and value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1526667-ruleeditor?language=objc -func (r_ RuleEditorDelegateObject) RuleEditorPredicatePartsForCriterionWithDisplayValueInRow(editor RuleEditor, criterion objc.Object, value objc.Object, row int) map[RuleEditorPredicatePartKey]objc.Object { - rv := objc.Call[map[RuleEditorPredicatePartKey]objc.Object](r_, objc.Sel("ruleEditor:predicatePartsForCriterion:withDisplayValue:inRow:"), editor, criterion, value, row) - return rv -} - func (r_ RuleEditorDelegateObject) HasRuleEditorNumberOfChildrenForCriterionWithRowType() bool { return r_.RespondsToSelector(objc.Sel("ruleEditor:numberOfChildrenForCriterion:withRowType:")) } @@ -171,18 +81,6 @@ func (r_ RuleEditorDelegateObject) RuleEditorNumberOfChildrenForCriterionWithRow return rv } -func (r_ RuleEditorDelegateObject) HasRuleEditorChildForCriterionWithRowType() bool { - return r_.RespondsToSelector(objc.Sel("ruleEditor:child:forCriterion:withRowType:")) -} - -// Returns the child of a given item at a given index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1527259-ruleeditor?language=objc -func (r_ RuleEditorDelegateObject) RuleEditorChildForCriterionWithRowType(editor RuleEditor, index int, criterion objc.Object, rowType RuleEditorRowType) objc.Object { - rv := objc.Call[objc.Object](r_, objc.Sel("ruleEditor:child:forCriterion:withRowType:"), editor, index, criterion, rowType) - return rv -} - func (r_ RuleEditorDelegateObject) HasRuleEditorRowsDidChange() bool { return r_.RespondsToSelector(objc.Sel("ruleEditorRowsDidChange:")) } diff --git a/macos/appkit/ruler_marker.gen.go b/macos/appkit/ruler_marker.gen.go index 6cd0c6b2..0093fd09 100644 --- a/macos/appkit/ruler_marker.gen.go +++ b/macos/appkit/ruler_marker.gen.go @@ -19,25 +19,25 @@ type _RulerMarkerClass struct { // An interface definition for the [RulerMarker] class. type IRulerMarker interface { objc.IObject - TrackMouseAdding(mouseDownEvent IEvent, isAdding bool) bool DrawRect(rect foundation.Rect) + TrackMouseAdding(mouseDownEvent IEvent, isAdding bool) bool + ImageRectInRuler() foundation.Rect ThicknessRequiredInRuler() float64 + MarkerLocation() float64 + SetMarkerLocation(value float64) + ImageOrigin() foundation.Point + SetImageOrigin(value foundation.Point) Ruler() RulerView - ImageRectInRuler() foundation.Rect + IsRemovable() bool + SetRemovable(value bool) + IsDragging() bool RepresentedObject() foundation.CopyingObject SetRepresentedObject(value foundation.PCopying) SetRepresentedObjectObject(valueObject objc.IObject) Image() Image SetImage(value IImage) - IsDragging() bool IsMovable() bool SetMovable(value bool) - ImageOrigin() foundation.Point - SetImageOrigin(value foundation.Point) - MarkerLocation() float64 - SetMarkerLocation(value float64) - IsRemovable() bool - SetRemovable(value bool) } // A symbol on a ruler view, indicating a location for the graphics element it represents in the client of the ruler view. [Full Topic] @@ -87,6 +87,13 @@ func (r_ RulerMarker) Init() RulerMarker { return rv } +// Draws the receiver’s image that appears in the supplied rectangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496234-drawrect?language=objc +func (r_ RulerMarker) DrawRect(rect foundation.Rect) { + objc.Call[objc.Void](r_, objc.Sel("drawRect:"), rect) +} + // Handles user manipulation of the receiver in its ruler view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496248-trackmouse?language=objc @@ -95,11 +102,12 @@ func (r_ RulerMarker) TrackMouseAdding(mouseDownEvent IEvent, isAdding bool) boo return rv } -// Draws the receiver’s image that appears in the supplied rectangle. [Full Topic] +// The rectangle occupied by the receiver’s image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496234-drawrect?language=objc -func (r_ RulerMarker) DrawRect(rect foundation.Rect) { - objc.Call[objc.Void](r_, objc.Sel("drawRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496249-imagerectinruler?language=objc +func (r_ RulerMarker) ImageRectInRuler() foundation.Rect { + rv := objc.Call[foundation.Rect](r_, objc.Sel("imageRectInRuler")) + return rv } // The amount of the receiver’s image that’s displayed above or to the left of the ruler view's baseline. [Full Topic] @@ -110,6 +118,36 @@ func (r_ RulerMarker) ThicknessRequiredInRuler() float64 { return rv } +// The location of the receiver in the coordinate system of the ruler view's client view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496255-markerlocation?language=objc +func (r_ RulerMarker) MarkerLocation() float64 { + rv := objc.Call[float64](r_, objc.Sel("markerLocation")) + return rv +} + +// The location of the receiver in the coordinate system of the ruler view's client view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496255-markerlocation?language=objc +func (r_ RulerMarker) SetMarkerLocation(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setMarkerLocation:"), value) +} + +// The point in the receiver’s image that is positioned at the receiver’s location on the ruler view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496236-imageorigin?language=objc +func (r_ RulerMarker) ImageOrigin() foundation.Point { + rv := objc.Call[foundation.Point](r_, objc.Sel("imageOrigin")) + return rv +} + +// The point in the receiver’s image that is positioned at the receiver’s location on the ruler view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496236-imageorigin?language=objc +func (r_ RulerMarker) SetImageOrigin(value foundation.Point) { + objc.Call[objc.Void](r_, objc.Sel("setImageOrigin:"), value) +} + // The receiver's ruler view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496239-ruler?language=objc @@ -118,11 +156,26 @@ func (r_ RulerMarker) Ruler() RulerView { return rv } -// The rectangle occupied by the receiver’s image. [Full Topic] +// A Boolean that indicates whether the user can remove the receiver from its ruler view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496249-imagerectinruler?language=objc -func (r_ RulerMarker) ImageRectInRuler() foundation.Rect { - rv := objc.Call[foundation.Rect](r_, objc.Sel("imageRectInRuler")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496238-removable?language=objc +func (r_ RulerMarker) IsRemovable() bool { + rv := objc.Call[bool](r_, objc.Sel("isRemovable")) + return rv +} + +// A Boolean that indicates whether the user can remove the receiver from its ruler view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496238-removable?language=objc +func (r_ RulerMarker) SetRemovable(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setRemovable:"), value) +} + +// A Boolean that indicates whether the receiver is being dragged. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496253-dragging?language=objc +func (r_ RulerMarker) IsDragging() bool { + rv := objc.Call[bool](r_, objc.Sel("isDragging")) return rv } @@ -164,14 +217,6 @@ func (r_ RulerMarker) SetImage(value IImage) { objc.Call[objc.Void](r_, objc.Sel("setImage:"), value) } -// A Boolean that indicates whether the receiver is being dragged. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496253-dragging?language=objc -func (r_ RulerMarker) IsDragging() bool { - rv := objc.Call[bool](r_, objc.Sel("isDragging")) - return rv -} - // A Boolean that indicates whether the user can move the receiver in its ruler view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496247-movable?language=objc @@ -186,48 +231,3 @@ func (r_ RulerMarker) IsMovable() bool { func (r_ RulerMarker) SetMovable(value bool) { objc.Call[objc.Void](r_, objc.Sel("setMovable:"), value) } - -// The point in the receiver’s image that is positioned at the receiver’s location on the ruler view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496236-imageorigin?language=objc -func (r_ RulerMarker) ImageOrigin() foundation.Point { - rv := objc.Call[foundation.Point](r_, objc.Sel("imageOrigin")) - return rv -} - -// The point in the receiver’s image that is positioned at the receiver’s location on the ruler view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496236-imageorigin?language=objc -func (r_ RulerMarker) SetImageOrigin(value foundation.Point) { - objc.Call[objc.Void](r_, objc.Sel("setImageOrigin:"), value) -} - -// The location of the receiver in the coordinate system of the ruler view's client view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496255-markerlocation?language=objc -func (r_ RulerMarker) MarkerLocation() float64 { - rv := objc.Call[float64](r_, objc.Sel("markerLocation")) - return rv -} - -// The location of the receiver in the coordinate system of the ruler view's client view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496255-markerlocation?language=objc -func (r_ RulerMarker) SetMarkerLocation(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setMarkerLocation:"), value) -} - -// A Boolean that indicates whether the user can remove the receiver from its ruler view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496238-removable?language=objc -func (r_ RulerMarker) IsRemovable() bool { - rv := objc.Call[bool](r_, objc.Sel("isRemovable")) - return rv -} - -// A Boolean that indicates whether the user can remove the receiver from its ruler view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496238-removable?language=objc -func (r_ RulerMarker) SetRemovable(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setRemovable:"), value) -} diff --git a/macos/appkit/ruler_view.gen.go b/macos/appkit/ruler_view.gen.go index 925fc1be..a3711770 100644 --- a/macos/appkit/ruler_view.gen.go +++ b/macos/appkit/ruler_view.gen.go @@ -20,34 +20,34 @@ type _RulerViewClass struct { type IRulerView interface { IView InvalidateHashMarks() - AddMarker(marker IRulerMarker) + TrackMarkerWithMouseEvent(marker IRulerMarker, event IEvent) bool + MoveRulerlineFromLocationToLocation(oldLocation float64, newLocation float64) DrawHashMarksAndLabelsInRect(rect foundation.Rect) DrawMarkersInRect(rect foundation.Rect) - MoveRulerlineFromLocationToLocation(oldLocation float64, newLocation float64) - TrackMarkerWithMouseEvent(marker IRulerMarker, event IEvent) bool RemoveMarker(marker IRulerMarker) - Orientation() RulerOrientation - SetOrientation(value RulerOrientation) - ScrollView() ScrollView - SetScrollView(value IScrollView) - Markers() []RulerMarker - SetMarkers(value []IRulerMarker) - ReservedThicknessForAccessoryView() float64 - SetReservedThicknessForAccessoryView(value float64) - ClientView() View - SetClientView(value IView) - AccessoryView() View - SetAccessoryView(value IView) + AddMarker(marker IRulerMarker) + BaselineLocation() float64 + ReservedThicknessForMarkers() float64 + SetReservedThicknessForMarkers(value float64) RuleThickness() float64 SetRuleThickness(value float64) + AccessoryView() View + SetAccessoryView(value IView) + OriginOffset() float64 + SetOriginOffset(value float64) RequiredThickness() float64 - ReservedThicknessForMarkers() float64 - SetReservedThicknessForMarkers(value float64) - BaselineLocation() float64 + ClientView() View + SetClientView(value IView) + ScrollView() ScrollView + SetScrollView(value IScrollView) MeasurementUnits() RulerViewUnitName SetMeasurementUnits(value RulerViewUnitName) - OriginOffset() float64 - SetOriginOffset(value float64) + ReservedThicknessForAccessoryView() float64 + SetReservedThicknessForAccessoryView(value float64) + Markers() []RulerMarker + SetMarkers(value []IRulerMarker) + Orientation() RulerOrientation + SetOrientation(value RulerOrientation) } // A ruler and the markers above or to the side of a scroll view’s document view. [Full Topic] @@ -111,20 +111,6 @@ func NewRulerViewWithFrame(frameRect foundation.Rect) RulerView { return instance } -// Forces recalculation of the hash mark spacing for the next time the receiver is displayed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1530838-invalidatehashmarks?language=objc -func (r_ RulerView) InvalidateHashMarks() { - objc.Call[objc.Void](r_, objc.Sel("invalidateHashMarks")) -} - -// Adds aMarker to the receiver, without consulting the client view for approval. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1524916-addmarker?language=objc -func (r_ RulerView) AddMarker(marker IRulerMarker) { - objc.Call[objc.Void](r_, objc.Sel("addMarker:"), marker) -} - // Registers a new unit of measurement with the NSRulerView class, making it available to all instances of NSRulerView. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1534137-registerunitwithname?language=objc @@ -139,25 +125,11 @@ func RulerView_RegisterUnitWithNameAbbreviationUnitToPointsConversionFactorStepU RulerViewClass.RegisterUnitWithNameAbbreviationUnitToPointsConversionFactorStepUpCycleStepDownCycle(unitName, abbreviation, conversionFactor, stepUpCycle, stepDownCycle) } -// Draws the receiver’s hash marks and labels in aRect, which is expressed in the receiver’s coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1529177-drawhashmarksandlabelsinrect?language=objc -func (r_ RulerView) DrawHashMarksAndLabelsInRect(rect foundation.Rect) { - objc.Call[objc.Void](r_, objc.Sel("drawHashMarksAndLabelsInRect:"), rect) -} - -// Draws the receiver’s markers in aRect, which is expressed in the receiver’s coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1525997-drawmarkersinrect?language=objc -func (r_ RulerView) DrawMarkersInRect(rect foundation.Rect) { - objc.Call[objc.Void](r_, objc.Sel("drawMarkersInRect:"), rect) -} - -// Draws temporary lines in the ruler area. [Full Topic] +// Forces recalculation of the hash mark spacing for the next time the receiver is displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1527414-moverulerlinefromlocation?language=objc -func (r_ RulerView) MoveRulerlineFromLocationToLocation(oldLocation float64, newLocation float64) { - objc.Call[objc.Void](r_, objc.Sel("moveRulerlineFromLocation:toLocation:"), oldLocation, newLocation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1530838-invalidatehashmarks?language=objc +func (r_ RulerView) InvalidateHashMarks() { + objc.Call[objc.Void](r_, objc.Sel("invalidateHashMarks")) } // Tracks the mouse to add aMarker based on the initial mouse-down or mouse-dragged event theEvent. [Full Topic] @@ -168,86 +140,77 @@ func (r_ RulerView) TrackMarkerWithMouseEvent(marker IRulerMarker, event IEvent) return rv } -// Removes aMarker from the receiver, without consulting the client view for approval. [Full Topic] +// Draws temporary lines in the ruler area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1528230-removemarker?language=objc -func (r_ RulerView) RemoveMarker(marker IRulerMarker) { - objc.Call[objc.Void](r_, objc.Sel("removeMarker:"), marker) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1527414-moverulerlinefromlocation?language=objc +func (r_ RulerView) MoveRulerlineFromLocationToLocation(oldLocation float64, newLocation float64) { + objc.Call[objc.Void](r_, objc.Sel("moveRulerlineFromLocation:toLocation:"), oldLocation, newLocation) } -// The orientation of the receiver to orientation. [Full Topic] +// Draws the receiver’s hash marks and labels in aRect, which is expressed in the receiver’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1530596-orientation?language=objc -func (r_ RulerView) Orientation() RulerOrientation { - rv := objc.Call[RulerOrientation](r_, objc.Sel("orientation")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1529177-drawhashmarksandlabelsinrect?language=objc +func (r_ RulerView) DrawHashMarksAndLabelsInRect(rect foundation.Rect) { + objc.Call[objc.Void](r_, objc.Sel("drawHashMarksAndLabelsInRect:"), rect) } -// The orientation of the receiver to orientation. [Full Topic] +// Draws the receiver’s markers in aRect, which is expressed in the receiver’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1530596-orientation?language=objc -func (r_ RulerView) SetOrientation(value RulerOrientation) { - objc.Call[objc.Void](r_, objc.Sel("setOrientation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1525997-drawmarkersinrect?language=objc +func (r_ RulerView) DrawMarkersInRect(rect foundation.Rect) { + objc.Call[objc.Void](r_, objc.Sel("drawMarkersInRect:"), rect) } -// The NSScrollView that owns the receiver to scrollView, without retaining it. [Full Topic] +// Removes aMarker from the receiver, without consulting the client view for approval. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1533741-scrollview?language=objc -func (r_ RulerView) ScrollView() ScrollView { - rv := objc.Call[ScrollView](r_, objc.Sel("scrollView")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1528230-removemarker?language=objc +func (r_ RulerView) RemoveMarker(marker IRulerMarker) { + objc.Call[objc.Void](r_, objc.Sel("removeMarker:"), marker) } -// The NSScrollView that owns the receiver to scrollView, without retaining it. [Full Topic] +// Adds aMarker to the receiver, without consulting the client view for approval. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1533741-scrollview?language=objc -func (r_ RulerView) SetScrollView(value IScrollView) { - objc.Call[objc.Void](r_, objc.Sel("setScrollView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1524916-addmarker?language=objc +func (r_ RulerView) AddMarker(marker IRulerMarker) { + objc.Call[objc.Void](r_, objc.Sel("addMarker:"), marker) } -// The receiver’s ruler markers to markers, removing any existing ruler markers and not consulting with the client view about the new markers. [Full Topic] +// The location of the receiver’s baseline, in its own coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535213-markers?language=objc -func (r_ RulerView) Markers() []RulerMarker { - rv := objc.Call[[]RulerMarker](r_, objc.Sel("markers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1534886-baselinelocation?language=objc +func (r_ RulerView) BaselineLocation() float64 { + rv := objc.Call[float64](r_, objc.Sel("baselineLocation")) return rv } -// The receiver’s ruler markers to markers, removing any existing ruler markers and not consulting with the client view about the new markers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535213-markers?language=objc -func (r_ RulerView) SetMarkers(value []IRulerMarker) { - objc.Call[objc.Void](r_, objc.Sel("setMarkers:"), value) -} - -// The room available for the receiver’s accessory view to thickness. [Full Topic] +// The room available for ruler markers to thickness. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1530160-reservedthicknessforaccessoryvie?language=objc -func (r_ RulerView) ReservedThicknessForAccessoryView() float64 { - rv := objc.Call[float64](r_, objc.Sel("reservedThicknessForAccessoryView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535112-reservedthicknessformarkers?language=objc +func (r_ RulerView) ReservedThicknessForMarkers() float64 { + rv := objc.Call[float64](r_, objc.Sel("reservedThicknessForMarkers")) return rv } -// The room available for the receiver’s accessory view to thickness. [Full Topic] +// The room available for ruler markers to thickness. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1530160-reservedthicknessforaccessoryvie?language=objc -func (r_ RulerView) SetReservedThicknessForAccessoryView(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setReservedThicknessForAccessoryView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535112-reservedthicknessformarkers?language=objc +func (r_ RulerView) SetReservedThicknessForMarkers(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setReservedThicknessForMarkers:"), value) } -// The receiver’s client view, if it has one. [Full Topic] +// The thickness of the area where ruler hash marks and labels are drawn. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1533483-clientview?language=objc -func (r_ RulerView) ClientView() View { - rv := objc.Call[View](r_, objc.Sel("clientView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1527872-rulethickness?language=objc +func (r_ RulerView) RuleThickness() float64 { + rv := objc.Call[float64](r_, objc.Sel("ruleThickness")) return rv } -// The receiver’s client view, if it has one. [Full Topic] +// The thickness of the area where ruler hash marks and labels are drawn. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1533483-clientview?language=objc -func (r_ RulerView) SetClientView(value IView) { - objc.Call[objc.Void](r_, objc.Sel("setClientView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1527872-rulethickness?language=objc +func (r_ RulerView) SetRuleThickness(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setRuleThickness:"), value) } // The receiver’s accessory view to aView. [Full Topic] @@ -265,19 +228,19 @@ func (r_ RulerView) SetAccessoryView(value IView) { objc.Call[objc.Void](r_, objc.Sel("setAccessoryView:"), value) } -// The thickness of the area where ruler hash marks and labels are drawn. [Full Topic] +// The distance to the zero hash mark from the bounds origin of the NSScrollView’s document view (not of the receiver’s client view), in the document view’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1527872-rulethickness?language=objc -func (r_ RulerView) RuleThickness() float64 { - rv := objc.Call[float64](r_, objc.Sel("ruleThickness")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535432-originoffset?language=objc +func (r_ RulerView) OriginOffset() float64 { + rv := objc.Call[float64](r_, objc.Sel("originOffset")) return rv } -// The thickness of the area where ruler hash marks and labels are drawn. [Full Topic] +// The distance to the zero hash mark from the bounds origin of the NSScrollView’s document view (not of the receiver’s client view), in the document view’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1527872-rulethickness?language=objc -func (r_ RulerView) SetRuleThickness(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setRuleThickness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535432-originoffset?language=objc +func (r_ RulerView) SetOriginOffset(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setOriginOffset:"), value) } // The thickness needed for proper tiling of the receiver within an NSScrollView. [Full Topic] @@ -288,29 +251,36 @@ func (r_ RulerView) RequiredThickness() float64 { return rv } -// The room available for ruler markers to thickness. [Full Topic] +// The receiver’s client view, if it has one. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535112-reservedthicknessformarkers?language=objc -func (r_ RulerView) ReservedThicknessForMarkers() float64 { - rv := objc.Call[float64](r_, objc.Sel("reservedThicknessForMarkers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1533483-clientview?language=objc +func (r_ RulerView) ClientView() View { + rv := objc.Call[View](r_, objc.Sel("clientView")) return rv } -// The room available for ruler markers to thickness. [Full Topic] +// The receiver’s client view, if it has one. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535112-reservedthicknessformarkers?language=objc -func (r_ RulerView) SetReservedThicknessForMarkers(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setReservedThicknessForMarkers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1533483-clientview?language=objc +func (r_ RulerView) SetClientView(value IView) { + objc.Call[objc.Void](r_, objc.Sel("setClientView:"), value) } -// The location of the receiver’s baseline, in its own coordinate system. [Full Topic] +// The NSScrollView that owns the receiver to scrollView, without retaining it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1534886-baselinelocation?language=objc -func (r_ RulerView) BaselineLocation() float64 { - rv := objc.Call[float64](r_, objc.Sel("baselineLocation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1533741-scrollview?language=objc +func (r_ RulerView) ScrollView() ScrollView { + rv := objc.Call[ScrollView](r_, objc.Sel("scrollView")) return rv } +// The NSScrollView that owns the receiver to scrollView, without retaining it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1533741-scrollview?language=objc +func (r_ RulerView) SetScrollView(value IScrollView) { + objc.Call[objc.Void](r_, objc.Sel("setScrollView:"), value) +} + // The measurement units used by the ruler to unitName. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1531493-measurementunits?language=objc @@ -326,17 +296,47 @@ func (r_ RulerView) SetMeasurementUnits(value RulerViewUnitName) { objc.Call[objc.Void](r_, objc.Sel("setMeasurementUnits:"), value) } -// The distance to the zero hash mark from the bounds origin of the NSScrollView’s document view (not of the receiver’s client view), in the document view’s coordinate system. [Full Topic] +// The room available for the receiver’s accessory view to thickness. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535432-originoffset?language=objc -func (r_ RulerView) OriginOffset() float64 { - rv := objc.Call[float64](r_, objc.Sel("originOffset")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1530160-reservedthicknessforaccessoryvie?language=objc +func (r_ RulerView) ReservedThicknessForAccessoryView() float64 { + rv := objc.Call[float64](r_, objc.Sel("reservedThicknessForAccessoryView")) return rv } -// The distance to the zero hash mark from the bounds origin of the NSScrollView’s document view (not of the receiver’s client view), in the document view’s coordinate system. [Full Topic] +// The room available for the receiver’s accessory view to thickness. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535432-originoffset?language=objc -func (r_ RulerView) SetOriginOffset(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setOriginOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1530160-reservedthicknessforaccessoryvie?language=objc +func (r_ RulerView) SetReservedThicknessForAccessoryView(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setReservedThicknessForAccessoryView:"), value) +} + +// The receiver’s ruler markers to markers, removing any existing ruler markers and not consulting with the client view about the new markers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535213-markers?language=objc +func (r_ RulerView) Markers() []RulerMarker { + rv := objc.Call[[]RulerMarker](r_, objc.Sel("markers")) + return rv +} + +// The receiver’s ruler markers to markers, removing any existing ruler markers and not consulting with the client view about the new markers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535213-markers?language=objc +func (r_ RulerView) SetMarkers(value []IRulerMarker) { + objc.Call[objc.Void](r_, objc.Sel("setMarkers:"), value) +} + +// The orientation of the receiver to orientation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1530596-orientation?language=objc +func (r_ RulerView) Orientation() RulerOrientation { + rv := objc.Call[RulerOrientation](r_, objc.Sel("orientation")) + return rv +} + +// The orientation of the receiver to orientation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1530596-orientation?language=objc +func (r_ RulerView) SetOrientation(value RulerOrientation) { + objc.Call[objc.Void](r_, objc.Sel("setOrientation:"), value) } diff --git a/macos/appkit/running_application.gen.go b/macos/appkit/running_application.gen.go index bd82a724..48c2479d 100644 --- a/macos/appkit/running_application.gen.go +++ b/macos/appkit/running_application.gen.go @@ -20,25 +20,25 @@ type _RunningApplicationClass struct { // An interface definition for the [RunningApplication] class. type IRunningApplication interface { objc.IObject - Terminate() bool - ActivateWithOptions(options ApplicationActivationOptions) bool - Unhide() bool Hide() bool ForceTerminate() bool - ActivationPolicy() ApplicationActivationPolicy + ActivateWithOptions(options ApplicationActivationOptions) bool + Unhide() bool + Terminate() bool + BundleIdentifier() string + ExecutableURL() foundation.URL + IsHidden() bool OwnsMenuBar() bool - Icon() Image - BundleURL() foundation.URL - IsFinishedLaunching() bool + IsTerminated() bool LaunchDate() foundation.Date IsActive() bool - IsHidden() bool - ProcessIdentifier() kernel.Pid - ExecutableURL() foundation.URL - IsTerminated() bool ExecutableArchitecture() int + ActivationPolicy() ApplicationActivationPolicy LocalizedName() string - BundleIdentifier() string + Icon() Image + BundleURL() foundation.URL + IsFinishedLaunching() bool + ProcessIdentifier() kernel.Pid } // An object that can manipulate and provide information for a single instance of an app. [Full Topic] @@ -86,6 +86,14 @@ func (r_ RunningApplication) Init() RunningApplication { return rv } +// Attempts to hide or the application. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1526608-hide?language=objc +func (r_ RunningApplication) Hide() bool { + rv := objc.Call[bool](r_, objc.Sel("hide")) + return rv +} + // Returns an array of currently running applications with the specified bundle identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1530798-runningapplicationswithbundleide?language=objc @@ -115,11 +123,11 @@ func RunningApplication_TerminateAutomaticallyTerminableApplications() { RunningApplicationClass.TerminateAutomaticallyTerminableApplications() } -// Attempts to quit the receiver normally. [Full Topic] +// Attempts to force the receiver to quit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1528922-terminate?language=objc -func (r_ RunningApplication) Terminate() bool { - rv := objc.Call[bool](r_, objc.Sel("terminate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1530370-forceterminate?language=objc +func (r_ RunningApplication) ForceTerminate() bool { + rv := objc.Call[bool](r_, objc.Sel("forceTerminate")) return rv } @@ -139,59 +147,51 @@ func (r_ RunningApplication) Unhide() bool { return rv } -// Attempts to hide or the application. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1526608-hide?language=objc -func (r_ RunningApplication) Hide() bool { - rv := objc.Call[bool](r_, objc.Sel("hide")) - return rv -} - -// Attempts to force the receiver to quit. [Full Topic] +// Attempts to quit the receiver normally. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1530370-forceterminate?language=objc -func (r_ RunningApplication) ForceTerminate() bool { - rv := objc.Call[bool](r_, objc.Sel("forceTerminate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1528922-terminate?language=objc +func (r_ RunningApplication) Terminate() bool { + rv := objc.Call[bool](r_, objc.Sel("terminate")) return rv } -// Indicates the activation policy of the application. [Full Topic] +// Indicates the CFBundleIdentifier of the application. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1533103-activationpolicy?language=objc -func (r_ RunningApplication) ActivationPolicy() ApplicationActivationPolicy { - rv := objc.Call[ApplicationActivationPolicy](r_, objc.Sel("activationPolicy")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1529140-bundleidentifier?language=objc +func (r_ RunningApplication) BundleIdentifier() string { + rv := objc.Call[string](r_, objc.Sel("bundleIdentifier")) return rv } -// Returns whether the application owns the current menu bar. [Full Topic] +// Indicates the URL to the application's executable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1525915-ownsmenubar?language=objc -func (r_ RunningApplication) OwnsMenuBar() bool { - rv := objc.Call[bool](r_, objc.Sel("ownsMenuBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1531062-executableurl?language=objc +func (r_ RunningApplication) ExecutableURL() foundation.URL { + rv := objc.Call[foundation.URL](r_, objc.Sel("executableURL")) return rv } -// Returns the icon for the receiver’s application. [Full Topic] +// Indicates whether the application is currently hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1529885-icon?language=objc -func (r_ RunningApplication) Icon() Image { - rv := objc.Call[Image](r_, objc.Sel("icon")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1525949-hidden?language=objc +func (r_ RunningApplication) IsHidden() bool { + rv := objc.Call[bool](r_, objc.Sel("isHidden")) return rv } -// Indicates the URL to the application's bundle. [Full Topic] +// Returns whether the application owns the current menu bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1535500-bundleurl?language=objc -func (r_ RunningApplication) BundleURL() foundation.URL { - rv := objc.Call[foundation.URL](r_, objc.Sel("bundleURL")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1525915-ownsmenubar?language=objc +func (r_ RunningApplication) OwnsMenuBar() bool { + rv := objc.Call[bool](r_, objc.Sel("ownsMenuBar")) return rv } -// Indicates whether the receiver’s process has finished launching, [Full Topic] +// Indicates that the receiver’s application has terminated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1532002-finishedlaunching?language=objc -func (r_ RunningApplication) IsFinishedLaunching() bool { - rv := objc.Call[bool](r_, objc.Sel("isFinishedLaunching")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1532239-terminated?language=objc +func (r_ RunningApplication) IsTerminated() bool { + rv := objc.Call[bool](r_, objc.Sel("isTerminated")) return rv } @@ -203,22 +203,6 @@ func (r_ RunningApplication) LaunchDate() foundation.Date { return rv } -// Indicates whether the application is currently frontmost. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1528778-active?language=objc -func (r_ RunningApplication) IsActive() bool { - rv := objc.Call[bool](r_, objc.Sel("isActive")) - return rv -} - -// Indicates whether the application is currently hidden. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1525949-hidden?language=objc -func (r_ RunningApplication) IsHidden() bool { - rv := objc.Call[bool](r_, objc.Sel("isHidden")) - return rv -} - // Returns an NSRunningApplication representing this application. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1533604-currentapplication?language=objc @@ -234,27 +218,11 @@ func RunningApplication_CurrentApplication() RunningApplication { return RunningApplicationClass.CurrentApplication() } -// Indicates the process identifier (pid) of the application. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1526998-processidentifier?language=objc -func (r_ RunningApplication) ProcessIdentifier() kernel.Pid { - rv := objc.Call[kernel.Pid](r_, objc.Sel("processIdentifier")) - return rv -} - -// Indicates the URL to the application's executable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1531062-executableurl?language=objc -func (r_ RunningApplication) ExecutableURL() foundation.URL { - rv := objc.Call[foundation.URL](r_, objc.Sel("executableURL")) - return rv -} - -// Indicates that the receiver’s application has terminated. [Full Topic] +// Indicates whether the application is currently frontmost. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1532239-terminated?language=objc -func (r_ RunningApplication) IsTerminated() bool { - rv := objc.Call[bool](r_, objc.Sel("isTerminated")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1528778-active?language=objc +func (r_ RunningApplication) IsActive() bool { + rv := objc.Call[bool](r_, objc.Sel("isActive")) return rv } @@ -266,6 +234,14 @@ func (r_ RunningApplication) ExecutableArchitecture() int { return rv } +// Indicates the activation policy of the application. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1533103-activationpolicy?language=objc +func (r_ RunningApplication) ActivationPolicy() ApplicationActivationPolicy { + rv := objc.Call[ApplicationActivationPolicy](r_, objc.Sel("activationPolicy")) + return rv +} + // Indicates the localized name of the application. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1526751-localizedname?language=objc @@ -274,10 +250,34 @@ func (r_ RunningApplication) LocalizedName() string { return rv } -// Indicates the CFBundleIdentifier of the application. [Full Topic] +// Returns the icon for the receiver’s application. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1529140-bundleidentifier?language=objc -func (r_ RunningApplication) BundleIdentifier() string { - rv := objc.Call[string](r_, objc.Sel("bundleIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1529885-icon?language=objc +func (r_ RunningApplication) Icon() Image { + rv := objc.Call[Image](r_, objc.Sel("icon")) + return rv +} + +// Indicates the URL to the application's bundle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1535500-bundleurl?language=objc +func (r_ RunningApplication) BundleURL() foundation.URL { + rv := objc.Call[foundation.URL](r_, objc.Sel("bundleURL")) + return rv +} + +// Indicates whether the receiver’s process has finished launching, [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1532002-finishedlaunching?language=objc +func (r_ RunningApplication) IsFinishedLaunching() bool { + rv := objc.Call[bool](r_, objc.Sel("isFinishedLaunching")) + return rv +} + +// Indicates the process identifier (pid) of the application. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1526998-processidentifier?language=objc +func (r_ RunningApplication) ProcessIdentifier() kernel.Pid { + rv := objc.Call[kernel.Pid](r_, objc.Sel("processIdentifier")) return rv } diff --git a/macos/appkit/save_panel.gen.go b/macos/appkit/save_panel.gen.go index 3448abfc..cdf6bbbe 100644 --- a/macos/appkit/save_panel.gen.go +++ b/macos/appkit/save_panel.gen.go @@ -21,43 +21,43 @@ type _SavePanelClass struct { type ISavePanel interface { IPanel Ok(sender objc.IObject) objc.Object - Cancel(sender objc.IObject) objc.Object + RunModal() ModalResponse ValidateVisibleColumns() - BeginSheetModalForWindowCompletionHandler(window IWindow, handler func(result ModalResponse)) BeginWithCompletionHandler(handler func(result ModalResponse)) - RunModal() ModalResponse - CanCreateDirectories() bool - SetCanCreateDirectories(value bool) + BeginSheetModalForWindowCompletionHandler(window IWindow, handler func(result ModalResponse)) + Cancel(sender objc.IObject) objc.Object NameFieldLabel() string SetNameFieldLabel(value string) - IsExtensionHidden() bool - SetExtensionHidden(value bool) + AllowsOtherFileTypes() bool + SetAllowsOtherFileTypes(value bool) + TagNames() []string + SetTagNames(value []string) + CanSelectHiddenExtension() bool + SetCanSelectHiddenExtension(value bool) IsExpanded() bool + Prompt() string + SetPrompt(value string) DirectoryURL() foundation.URL SetDirectoryURL(value foundation.IURL) - Message() string - SetMessage(value string) + CanCreateDirectories() bool + SetCanCreateDirectories(value bool) + ShowsTagField() bool + SetShowsTagField(value bool) AccessoryView() View SetAccessoryView(value IView) - Prompt() string - SetPrompt(value string) - CanSelectHiddenExtension() bool - SetCanSelectHiddenExtension(value bool) URL() foundation.URL - TagNames() []string - SetTagNames(value []string) + ShowsHiddenFiles() bool + SetShowsHiddenFiles(value bool) AllowedContentTypes() []uti.Type SetAllowedContentTypes(value []uti.IType) TreatsFilePackagesAsDirectories() bool SetTreatsFilePackagesAsDirectories(value bool) + IsExtensionHidden() bool + SetExtensionHidden(value bool) NameFieldStringValue() string SetNameFieldStringValue(value string) - ShowsHiddenFiles() bool - SetShowsHiddenFiles(value bool) - AllowsOtherFileTypes() bool - SetAllowsOtherFileTypes(value bool) - ShowsTagField() bool - SetShowsTagField(value bool) + Message() string + SetMessage(value string) } // A panel that prompts the user for information about where to save a file. [Full Topic] @@ -119,18 +119,20 @@ func NewSavePanelWithContentRectStyleMaskBackingDeferScreen(contentRect foundati return instance } -func (s_ SavePanel) InitWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) SavePanel { - rv := objc.Call[SavePanel](s_, objc.Sel("initWithContentRect:styleMask:backing:defer:"), contentRect, style, backingStoreType, flag) +// The action method that the panel calls when the user clicks the OK button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535364-ok?language=objc +func (s_ SavePanel) Ok(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("ok:"), sender) return rv } -// Initializes the window with the specified values. [Full Topic] +// Displays the panel and begins its event loop with the current working (or last-selected) directory as the default starting point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc -func NewSavePanelWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) SavePanel { - instance := SavePanelClass.Alloc().InitWithContentRectStyleMaskBackingDefer(contentRect, style, backingStoreType, flag) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1525357-runmodal?language=objc +func (s_ SavePanel) RunModal() ModalResponse { + rv := objc.Call[ModalResponse](s_, objc.Sel("runModal")) + return rv } // Creates a new Save panel and initializes it with default information. [Full Topic] @@ -148,22 +150,6 @@ func SavePanel_SavePanel() SavePanel { return SavePanelClass.SavePanel() } -// The action method that the panel calls when the user clicks the OK button. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535364-ok?language=objc -func (s_ SavePanel) Ok(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("ok:"), sender) - return rv -} - -// The action method that the panel calls when the user clicks the Cancel button. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1534357-cancel?language=objc -func (s_ SavePanel) Cancel(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("cancel:"), sender) - return rv -} - // Validates and reloads the browser columns visible in the panel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1526381-validatevisiblecolumns?language=objc @@ -171,13 +157,6 @@ func (s_ SavePanel) ValidateVisibleColumns() { objc.Call[objc.Void](s_, objc.Sel("validateVisibleColumns")) } -// Presents the panel as a sheet modal to the specified window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535870-beginsheetmodalforwindow?language=objc -func (s_ SavePanel) BeginSheetModalForWindowCompletionHandler(window IWindow, handler func(result ModalResponse)) { - objc.Call[objc.Void](s_, objc.Sel("beginSheetModalForWindow:completionHandler:"), window, handler) -} - // Presents the panel as a modeless window. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1527007-beginwithcompletionhandler?language=objc @@ -185,29 +164,21 @@ func (s_ SavePanel) BeginWithCompletionHandler(handler func(result ModalResponse objc.Call[objc.Void](s_, objc.Sel("beginWithCompletionHandler:"), handler) } -// Displays the panel and begins its event loop with the current working (or last-selected) directory as the default starting point. [Full Topic] +// Presents the panel as a sheet modal to the specified window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1525357-runmodal?language=objc -func (s_ SavePanel) RunModal() ModalResponse { - rv := objc.Call[ModalResponse](s_, objc.Sel("runModal")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535870-beginsheetmodalforwindow?language=objc +func (s_ SavePanel) BeginSheetModalForWindowCompletionHandler(window IWindow, handler func(result ModalResponse)) { + objc.Call[objc.Void](s_, objc.Sel("beginSheetModalForWindow:completionHandler:"), window, handler) } -// A Boolean value that indicates whether the panel displays UI for creating directories. [Full Topic] +// The action method that the panel calls when the user clicks the Cancel button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1532626-cancreatedirectories?language=objc -func (s_ SavePanel) CanCreateDirectories() bool { - rv := objc.Call[bool](s_, objc.Sel("canCreateDirectories")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1534357-cancel?language=objc +func (s_ SavePanel) Cancel(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("cancel:"), sender) return rv } -// A Boolean value that indicates whether the panel displays UI for creating directories. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1532626-cancreatedirectories?language=objc -func (s_ SavePanel) SetCanCreateDirectories(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setCanCreateDirectories:"), value) -} - // The label text displayed in front of the filename text field. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535411-namefieldlabel?language=objc @@ -223,19 +194,49 @@ func (s_ SavePanel) SetNameFieldLabel(value string) { objc.Call[objc.Void](s_, objc.Sel("setNameFieldLabel:"), value) } -// A Boolean value that indicates whether to display filename extensions. [Full Topic] +// A Boolean value that indicates whether the panel allows the user to save files with a filename extension that’s not in the list of allowed types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1529267-extensionhidden?language=objc -func (s_ SavePanel) IsExtensionHidden() bool { - rv := objc.Call[bool](s_, objc.Sel("isExtensionHidden")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1526960-allowsotherfiletypes?language=objc +func (s_ SavePanel) AllowsOtherFileTypes() bool { + rv := objc.Call[bool](s_, objc.Sel("allowsOtherFileTypes")) return rv } -// A Boolean value that indicates whether to display filename extensions. [Full Topic] +// A Boolean value that indicates whether the panel allows the user to save files with a filename extension that’s not in the list of allowed types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1529267-extensionhidden?language=objc -func (s_ SavePanel) SetExtensionHidden(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setExtensionHidden:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1526960-allowsotherfiletypes?language=objc +func (s_ SavePanel) SetAllowsOtherFileTypes(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setAllowsOtherFileTypes:"), value) +} + +// The tag names that you want to include on a saved file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535928-tagnames?language=objc +func (s_ SavePanel) TagNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("tagNames")) + return rv +} + +// The tag names that you want to include on a saved file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535928-tagnames?language=objc +func (s_ SavePanel) SetTagNames(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setTagNames:"), value) +} + +// A Boolean value that indicates whether the panel displays UI for hiding or showing filename extensions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535360-canselecthiddenextension?language=objc +func (s_ SavePanel) CanSelectHiddenExtension() bool { + rv := objc.Call[bool](s_, objc.Sel("canSelectHiddenExtension")) + return rv +} + +// A Boolean value that indicates whether the panel displays UI for hiding or showing filename extensions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535360-canselecthiddenextension?language=objc +func (s_ SavePanel) SetCanSelectHiddenExtension(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setCanSelectHiddenExtension:"), value) } // A Boolean value that indicates whether whether the panel is expanded. [Full Topic] @@ -246,6 +247,21 @@ func (s_ SavePanel) IsExpanded() bool { return rv } +// The text to display in the default button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1525227-prompt?language=objc +func (s_ SavePanel) Prompt() string { + rv := objc.Call[string](s_, objc.Sel("prompt")) + return rv +} + +// The text to display in the default button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1525227-prompt?language=objc +func (s_ SavePanel) SetPrompt(value string) { + objc.Call[objc.Void](s_, objc.Sel("setPrompt:"), value) +} + // The current directory shown in the panel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1531279-directoryurl?language=objc @@ -261,19 +277,34 @@ func (s_ SavePanel) SetDirectoryURL(value foundation.IURL) { objc.Call[objc.Void](s_, objc.Sel("setDirectoryURL:"), value) } -// The message text displayed in the panel. [Full Topic] +// A Boolean value that indicates whether the panel displays UI for creating directories. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1528581-message?language=objc -func (s_ SavePanel) Message() string { - rv := objc.Call[string](s_, objc.Sel("message")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1532626-cancreatedirectories?language=objc +func (s_ SavePanel) CanCreateDirectories() bool { + rv := objc.Call[bool](s_, objc.Sel("canCreateDirectories")) return rv } -// The message text displayed in the panel. [Full Topic] +// A Boolean value that indicates whether the panel displays UI for creating directories. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1528581-message?language=objc -func (s_ SavePanel) SetMessage(value string) { - objc.Call[objc.Void](s_, objc.Sel("setMessage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1532626-cancreatedirectories?language=objc +func (s_ SavePanel) SetCanCreateDirectories(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setCanCreateDirectories:"), value) +} + +// A Boolean value that indicates whether the panel displays the Tags field. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1525589-showstagfield?language=objc +func (s_ SavePanel) ShowsTagField() bool { + rv := objc.Call[bool](s_, objc.Sel("showsTagField")) + return rv +} + +// A Boolean value that indicates whether the panel displays the Tags field. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1525589-showstagfield?language=objc +func (s_ SavePanel) SetShowsTagField(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setShowsTagField:"), value) } // The custom accessory view for the current app. [Full Topic] @@ -291,36 +322,6 @@ func (s_ SavePanel) SetAccessoryView(value IView) { objc.Call[objc.Void](s_, objc.Sel("setAccessoryView:"), value) } -// The text to display in the default button. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1525227-prompt?language=objc -func (s_ SavePanel) Prompt() string { - rv := objc.Call[string](s_, objc.Sel("prompt")) - return rv -} - -// The text to display in the default button. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1525227-prompt?language=objc -func (s_ SavePanel) SetPrompt(value string) { - objc.Call[objc.Void](s_, objc.Sel("setPrompt:"), value) -} - -// A Boolean value that indicates whether the panel displays UI for hiding or showing filename extensions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535360-canselecthiddenextension?language=objc -func (s_ SavePanel) CanSelectHiddenExtension() bool { - rv := objc.Call[bool](s_, objc.Sel("canSelectHiddenExtension")) - return rv -} - -// A Boolean value that indicates whether the panel displays UI for hiding or showing filename extensions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535360-canselecthiddenextension?language=objc -func (s_ SavePanel) SetCanSelectHiddenExtension(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setCanSelectHiddenExtension:"), value) -} - // A URL that contains the fully specified location of the targeted file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1534384-url?language=objc @@ -329,19 +330,19 @@ func (s_ SavePanel) URL() foundation.URL { return rv } -// The tag names that you want to include on a saved file. [Full Topic] +// A Boolean value that indicates whether the panel displays files that are normally hidden from the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535928-tagnames?language=objc -func (s_ SavePanel) TagNames() []string { - rv := objc.Call[[]string](s_, objc.Sel("tagNames")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1524285-showshiddenfiles?language=objc +func (s_ SavePanel) ShowsHiddenFiles() bool { + rv := objc.Call[bool](s_, objc.Sel("showsHiddenFiles")) return rv } -// The tag names that you want to include on a saved file. [Full Topic] +// A Boolean value that indicates whether the panel displays files that are normally hidden from the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1535928-tagnames?language=objc -func (s_ SavePanel) SetTagNames(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setTagNames:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1524285-showshiddenfiles?language=objc +func (s_ SavePanel) SetShowsHiddenFiles(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setShowsHiddenFiles:"), value) } // An array of types that specify the files types to which you can save. [Full Topic] @@ -374,6 +375,21 @@ func (s_ SavePanel) SetTreatsFilePackagesAsDirectories(value bool) { objc.Call[objc.Void](s_, objc.Sel("setTreatsFilePackagesAsDirectories:"), value) } +// A Boolean value that indicates whether to display filename extensions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1529267-extensionhidden?language=objc +func (s_ SavePanel) IsExtensionHidden() bool { + rv := objc.Call[bool](s_, objc.Sel("isExtensionHidden")) + return rv +} + +// A Boolean value that indicates whether to display filename extensions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1529267-extensionhidden?language=objc +func (s_ SavePanel) SetExtensionHidden(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setExtensionHidden:"), value) +} + // The user-editable filename currently shown in the name field. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1529299-namefieldstringvalue?language=objc @@ -389,47 +405,17 @@ func (s_ SavePanel) SetNameFieldStringValue(value string) { objc.Call[objc.Void](s_, objc.Sel("setNameFieldStringValue:"), value) } -// A Boolean value that indicates whether the panel displays files that are normally hidden from the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1524285-showshiddenfiles?language=objc -func (s_ SavePanel) ShowsHiddenFiles() bool { - rv := objc.Call[bool](s_, objc.Sel("showsHiddenFiles")) - return rv -} - -// A Boolean value that indicates whether the panel displays files that are normally hidden from the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1524285-showshiddenfiles?language=objc -func (s_ SavePanel) SetShowsHiddenFiles(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setShowsHiddenFiles:"), value) -} - -// A Boolean value that indicates whether the panel allows the user to save files with a filename extension that’s not in the list of allowed types. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1526960-allowsotherfiletypes?language=objc -func (s_ SavePanel) AllowsOtherFileTypes() bool { - rv := objc.Call[bool](s_, objc.Sel("allowsOtherFileTypes")) - return rv -} - -// A Boolean value that indicates whether the panel allows the user to save files with a filename extension that’s not in the list of allowed types. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1526960-allowsotherfiletypes?language=objc -func (s_ SavePanel) SetAllowsOtherFileTypes(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setAllowsOtherFileTypes:"), value) -} - -// A Boolean value that indicates whether the panel displays the Tags field. [Full Topic] +// The message text displayed in the panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1525589-showstagfield?language=objc -func (s_ SavePanel) ShowsTagField() bool { - rv := objc.Call[bool](s_, objc.Sel("showsTagField")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1528581-message?language=objc +func (s_ SavePanel) Message() string { + rv := objc.Call[string](s_, objc.Sel("message")) return rv } -// A Boolean value that indicates whether the panel displays the Tags field. [Full Topic] +// The message text displayed in the panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1525589-showstagfield?language=objc -func (s_ SavePanel) SetShowsTagField(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setShowsTagField:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1528581-message?language=objc +func (s_ SavePanel) SetMessage(value string) { + objc.Call[objc.Void](s_, objc.Sel("setMessage:"), value) } diff --git a/macos/appkit/screen.gen.go b/macos/appkit/screen.gen.go index ddd729a9..371bf7c3 100644 --- a/macos/appkit/screen.gen.go +++ b/macos/appkit/screen.gen.go @@ -21,25 +21,25 @@ type IScreen interface { objc.IObject ConvertRectFromBacking(rect foundation.Rect) foundation.Rect ConvertRectToBacking(rect foundation.Rect) foundation.Rect - BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect CanRepresentDisplayGamut(displayGamut DisplayGamut) bool - MaximumRefreshInterval() foundation.TimeInterval + BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect MinimumRefreshInterval() foundation.TimeInterval - Frame() foundation.Rect - ColorSpace() ColorSpace - MaximumReferenceExtendedDynamicRangeColorComponentValue() float64 - MaximumFramesPerSecond() int - BackingScaleFactor() float64 - LocalizedName() string - LastDisplayUpdateTimestamp() foundation.TimeInterval - SupportedWindowDepths() *WindowDepth - MaximumPotentialExtendedDynamicRangeColorComponentValue() float64 MaximumExtendedDynamicRangeColorComponentValue() float64 VisibleFrame() foundation.Rect - Depth() WindowDepth - SafeAreaInsets() foundation.EdgeInsets DisplayUpdateGranularity() foundation.TimeInterval + MaximumRefreshInterval() foundation.TimeInterval + LocalizedName() string + MaximumPotentialExtendedDynamicRangeColorComponentValue() float64 + ColorSpace() ColorSpace + SafeAreaInsets() foundation.EdgeInsets + MaximumReferenceExtendedDynamicRangeColorComponentValue() float64 + LastDisplayUpdateTimestamp() foundation.TimeInterval DeviceDescription() map[DeviceDescriptionKey]objc.Object + Depth() WindowDepth + BackingScaleFactor() float64 + Frame() foundation.Rect + SupportedWindowDepths() *WindowDepth + MaximumFramesPerSecond() int } // An object that describes the attributes of a computer’s monitor or screen. [Full Topic] @@ -91,14 +91,6 @@ func (s_ Screen) ConvertRectToBacking(rect foundation.Rect) foundation.Rect { return rv } -// Converts a rectangle in global screen coordinates to a pixel aligned rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388381-backingalignedrect?language=objc -func (s_ Screen) BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("backingAlignedRect:options:"), rect, options) - return rv -} - // A Boolean value indicating whether the color space of the screen is capable of representing the specified display gamut. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/2138325-canrepresentdisplaygamut?language=objc @@ -107,11 +99,11 @@ func (s_ Screen) CanRepresentDisplayGamut(displayGamut DisplayGamut) bool { return rv } -// The largest refresh interval that the screen supports. [Full Topic] +// Converts a rectangle in global screen coordinates to a pixel aligned rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3824746-maximumrefreshinterval?language=objc -func (s_ Screen) MaximumRefreshInterval() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](s_, objc.Sel("maximumRefreshInterval")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388381-backingalignedrect?language=objc +func (s_ Screen) BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("backingAlignedRect:options:"), rect, options) return rv } @@ -123,50 +115,43 @@ func (s_ Screen) MinimumRefreshInterval() foundation.TimeInterval { return rv } -// The dimensions and location of the screen. [Full Topic] +// The current maximum color component value for the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388387-frame?language=objc -func (s_ Screen) Frame() foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("frame")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388362-maximumextendeddynamicrangecolor?language=objc +func (s_ Screen) MaximumExtendedDynamicRangeColorComponentValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("maximumExtendedDynamicRangeColorComponentValue")) return rv } -// Returns an array of screen objects representing all of the screens available on the system. [Full Topic] +// The current location and dimensions of the visible screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388393-screens?language=objc -func (sc _ScreenClass) Screens() []Screen { - rv := objc.Call[[]Screen](sc, objc.Sel("screens")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388369-visibleframe?language=objc +func (s_ Screen) VisibleFrame() foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("visibleFrame")) return rv } -// Returns an array of screen objects representing all of the screens available on the system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388393-screens?language=objc -func Screen_Screens() []Screen { - return ScreenClass.Screens() -} - -// The color space of the screen. [Full Topic] +// The number of seconds between the screen’s supported update rates, for screens that support fixed update rates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388383-colorspace?language=objc -func (s_ Screen) ColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](s_, objc.Sel("colorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3824743-displayupdategranularity?language=objc +func (s_ Screen) DisplayUpdateGranularity() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](s_, objc.Sel("displayUpdateGranularity")) return rv } -// The current maximum color component value for reference rendering to the screen. [Full Topic] +// The largest refresh interval that the screen supports. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3180382-maximumreferenceextendeddynamicr?language=objc -func (s_ Screen) MaximumReferenceExtendedDynamicRangeColorComponentValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("maximumReferenceExtendedDynamicRangeColorComponentValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3824746-maximumrefreshinterval?language=objc +func (s_ Screen) MaximumRefreshInterval() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](s_, objc.Sel("maximumRefreshInterval")) return rv } -// The maximum number of frames per second that the screen supports. [Full Topic] +// The localized name of the display. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3824745-maximumframespersecond?language=objc -func (s_ Screen) MaximumFramesPerSecond() int { - rv := objc.Call[int](s_, objc.Sel("maximumFramesPerSecond")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3228043-localizedname?language=objc +func (s_ Screen) LocalizedName() string { + rv := objc.Call[string](s_, objc.Sel("localizedName")) return rv } @@ -185,77 +170,84 @@ func Screen_DeepestScreen() Screen { return ScreenClass.DeepestScreen() } -// The backing store pixel scale factor for the screen. [Full Topic] +// The maximum possible color component value for the screen when it's in extended dynamic range (EDR) mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388385-backingscalefactor?language=objc -func (s_ Screen) BackingScaleFactor() float64 { - rv := objc.Call[float64](s_, objc.Sel("backingScaleFactor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3180381-maximumpotentialextendeddynamicr?language=objc +func (s_ Screen) MaximumPotentialExtendedDynamicRangeColorComponentValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("maximumPotentialExtendedDynamicRangeColorComponentValue")) return rv } -// The localized name of the display. [Full Topic] +// The color space of the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3228043-localizedname?language=objc -func (s_ Screen) LocalizedName() string { - rv := objc.Call[string](s_, objc.Sel("localizedName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388383-colorspace?language=objc +func (s_ Screen) ColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](s_, objc.Sel("colorSpace")) return rv } -// Returns the screen object containing the window with the keyboard focus. [Full Topic] +// The distances from the screen’s edges at which content isn’t obscured. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388371-mainscreen?language=objc -func (sc _ScreenClass) MainScreen() Screen { - rv := objc.Call[Screen](sc, objc.Sel("mainScreen")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3882821-safeareainsets?language=objc +func (s_ Screen) SafeAreaInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](s_, objc.Sel("safeAreaInsets")) return rv } -// Returns the screen object containing the window with the keyboard focus. [Full Topic] +// The current maximum color component value for reference rendering to the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388371-mainscreen?language=objc -func Screen_MainScreen() Screen { - return ScreenClass.MainScreen() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3180382-maximumreferenceextendeddynamicr?language=objc +func (s_ Screen) MaximumReferenceExtendedDynamicRangeColorComponentValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("maximumReferenceExtendedDynamicRangeColorComponentValue")) + return rv } -// The time of the last framebuffer update, expressed as the number of seconds since system startup. [Full Topic] +// Returns an array of screen objects representing all of the screens available on the system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3824744-lastdisplayupdatetimestamp?language=objc -func (s_ Screen) LastDisplayUpdateTimestamp() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](s_, objc.Sel("lastDisplayUpdateTimestamp")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388393-screens?language=objc +func (sc _ScreenClass) Screens() []Screen { + rv := objc.Call[[]Screen](sc, objc.Sel("screens")) return rv } -// A zero-terminated array of the window depths supported by the screen. [Full Topic] +// Returns an array of screen objects representing all of the screens available on the system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388391-supportedwindowdepths?language=objc -func (s_ Screen) SupportedWindowDepths() *WindowDepth { - rv := objc.Call[*WindowDepth](s_, objc.Sel("supportedWindowDepths")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388393-screens?language=objc +func Screen_Screens() []Screen { + return ScreenClass.Screens() } -// The maximum possible color component value for the screen when it's in extended dynamic range (EDR) mode. [Full Topic] +// The time of the last framebuffer update, expressed as the number of seconds since system startup. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3180381-maximumpotentialextendeddynamicr?language=objc -func (s_ Screen) MaximumPotentialExtendedDynamicRangeColorComponentValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("maximumPotentialExtendedDynamicRangeColorComponentValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3824744-lastdisplayupdatetimestamp?language=objc +func (s_ Screen) LastDisplayUpdateTimestamp() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](s_, objc.Sel("lastDisplayUpdateTimestamp")) return rv } -// The current maximum color component value for the screen. [Full Topic] +// The device dictionary for the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388362-maximumextendeddynamicrangecolor?language=objc -func (s_ Screen) MaximumExtendedDynamicRangeColorComponentValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("maximumExtendedDynamicRangeColorComponentValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388360-devicedescription?language=objc +func (s_ Screen) DeviceDescription() map[DeviceDescriptionKey]objc.Object { + rv := objc.Call[map[DeviceDescriptionKey]objc.Object](s_, objc.Sel("deviceDescription")) return rv } -// The current location and dimensions of the visible screen. [Full Topic] +// Returns a Boolean value indicating whether each screen can have its own set of spaces. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388369-visibleframe?language=objc -func (s_ Screen) VisibleFrame() foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("visibleFrame")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388365-screenshaveseparatespaces?language=objc +func (sc _ScreenClass) ScreensHaveSeparateSpaces() bool { + rv := objc.Call[bool](sc, objc.Sel("screensHaveSeparateSpaces")) return rv } +// Returns a Boolean value indicating whether each screen can have its own set of spaces. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388365-screenshaveseparatespaces?language=objc +func Screen_ScreensHaveSeparateSpaces() bool { + return ScreenClass.ScreensHaveSeparateSpaces() +} + // The current bit depth and colorspace information of the screen. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388373-depth?language=objc @@ -264,41 +256,49 @@ func (s_ Screen) Depth() WindowDepth { return rv } -// The distances from the screen’s edges at which content isn’t obscured. [Full Topic] +// The backing store pixel scale factor for the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3882821-safeareainsets?language=objc -func (s_ Screen) SafeAreaInsets() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](s_, objc.Sel("safeAreaInsets")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388385-backingscalefactor?language=objc +func (s_ Screen) BackingScaleFactor() float64 { + rv := objc.Call[float64](s_, objc.Sel("backingScaleFactor")) return rv } -// The number of seconds between the screen’s supported update rates, for screens that support fixed update rates. [Full Topic] +// The dimensions and location of the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3824743-displayupdategranularity?language=objc -func (s_ Screen) DisplayUpdateGranularity() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](s_, objc.Sel("displayUpdateGranularity")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388387-frame?language=objc +func (s_ Screen) Frame() foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("frame")) return rv } -// Returns a Boolean value indicating whether each screen can have its own set of spaces. [Full Topic] +// Returns the screen object containing the window with the keyboard focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388365-screenshaveseparatespaces?language=objc -func (sc _ScreenClass) ScreensHaveSeparateSpaces() bool { - rv := objc.Call[bool](sc, objc.Sel("screensHaveSeparateSpaces")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388371-mainscreen?language=objc +func (sc _ScreenClass) MainScreen() Screen { + rv := objc.Call[Screen](sc, objc.Sel("mainScreen")) return rv } -// Returns a Boolean value indicating whether each screen can have its own set of spaces. [Full Topic] +// Returns the screen object containing the window with the keyboard focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388365-screenshaveseparatespaces?language=objc -func Screen_ScreensHaveSeparateSpaces() bool { - return ScreenClass.ScreensHaveSeparateSpaces() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388371-mainscreen?language=objc +func Screen_MainScreen() Screen { + return ScreenClass.MainScreen() } -// The device dictionary for the screen. [Full Topic] +// A zero-terminated array of the window depths supported by the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388360-devicedescription?language=objc -func (s_ Screen) DeviceDescription() map[DeviceDescriptionKey]objc.Object { - rv := objc.Call[map[DeviceDescriptionKey]objc.Object](s_, objc.Sel("deviceDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388391-supportedwindowdepths?language=objc +func (s_ Screen) SupportedWindowDepths() *WindowDepth { + rv := objc.Call[*WindowDepth](s_, objc.Sel("supportedWindowDepths")) + return rv +} + +// The maximum number of frames per second that the screen supports. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/3824745-maximumframespersecond?language=objc +func (s_ Screen) MaximumFramesPerSecond() int { + rv := objc.Call[int](s_, objc.Sel("maximumFramesPerSecond")) return rv } diff --git a/macos/appkit/scroll_view.gen.go b/macos/appkit/scroll_view.gen.go index 335ce4be..0fe42a55 100644 --- a/macos/appkit/scroll_view.gen.go +++ b/macos/appkit/scroll_view.gen.go @@ -19,85 +19,85 @@ type _ScrollViewClass struct { // An interface definition for the [ScrollView] class. type IScrollView interface { IView - Tile() - AddFloatingSubviewForAxis(view IView, axis EventGestureAxis) - MagnifyToFitRect(rect foundation.Rect) SetMagnificationCenteredAtPoint(magnification float64, point foundation.Point) FlashScrollers() - HorizontalRulerView() RulerView - SetHorizontalRulerView(value IRulerView) - VerticalRulerView() RulerView - SetVerticalRulerView(value IRulerView) + AddFloatingSubviewForAxis(view IView, axis EventGestureAxis) + MagnifyToFitRect(rect foundation.Rect) + Tile() VerticalLineScroll() float64 SetVerticalLineScroll(value float64) - BorderType() BorderType - SetBorderType(value BorderType) - ContentInsets() foundation.EdgeInsets - SetContentInsets(value foundation.EdgeInsets) - Magnification() float64 - SetMagnification(value float64) - ScrollsDynamically() bool - SetScrollsDynamically(value bool) - ContentSize() foundation.Size - MaxMagnification() float64 - SetMaxMagnification(value float64) - ScrollerKnobStyle() ScrollerKnobStyle - SetScrollerKnobStyle(value ScrollerKnobStyle) - AutohidesScrollers() bool - SetAutohidesScrollers(value bool) - HorizontalLineScroll() float64 - SetHorizontalLineScroll(value float64) - HorizontalScroller() Scroller - SetHorizontalScroller(value IScroller) HorizontalScrollElasticity() ScrollElasticity SetHorizontalScrollElasticity(value ScrollElasticity) - HasHorizontalScroller() bool - SetHasHorizontalScroller(value bool) + AllowsMagnification() bool + SetAllowsMagnification(value bool) + HorizontalPageScroll() float64 + SetHorizontalPageScroll(value float64) + RulersVisible() bool + SetRulersVisible(value bool) DocumentCursor() Cursor SetDocumentCursor(value ICursor) + HasVerticalRuler() bool + SetHasVerticalRuler(value bool) + MaxMagnification() float64 + SetMaxMagnification(value float64) + ScrollsDynamically() bool + SetScrollsDynamically(value bool) ContentView() ClipView SetContentView(value IClipView) - DocumentVisibleRect() foundation.Rect - LineScroll() float64 - SetLineScroll(value float64) - VerticalScrollElasticity() ScrollElasticity - SetVerticalScrollElasticity(value ScrollElasticity) - AutomaticallyAdjustsContentInsets() bool - SetAutomaticallyAdjustsContentInsets(value bool) - BackgroundColor() Color - SetBackgroundColor(value IColor) - ScrollerStyle() ScrollerStyle - SetScrollerStyle(value ScrollerStyle) - HorizontalPageScroll() float64 - SetHorizontalPageScroll(value float64) - MinMagnification() float64 - SetMinMagnification(value float64) HasVerticalScroller() bool SetHasVerticalScroller(value bool) - AllowsMagnification() bool - SetAllowsMagnification(value bool) - ScrollerInsets() foundation.EdgeInsets - SetScrollerInsets(value foundation.EdgeInsets) - HasVerticalRuler() bool - SetHasVerticalRuler(value bool) FindBarPosition() ScrollViewFindBarPosition SetFindBarPosition(value ScrollViewFindBarPosition) + HorizontalScroller() Scroller + SetHorizontalScroller(value IScroller) + ScrollerStyle() ScrollerStyle + SetScrollerStyle(value ScrollerStyle) + VerticalScrollElasticity() ScrollElasticity + SetVerticalScrollElasticity(value ScrollElasticity) PageScroll() float64 SetPageScroll(value float64) + BorderType() BorderType + SetBorderType(value BorderType) + ContentInsets() foundation.EdgeInsets + SetContentInsets(value foundation.EdgeInsets) + Magnification() float64 + SetMagnification(value float64) + BackgroundColor() Color + SetBackgroundColor(value IColor) + ScrollerKnobStyle() ScrollerKnobStyle + SetScrollerKnobStyle(value ScrollerKnobStyle) + LineScroll() float64 + SetLineScroll(value float64) + ContentSize() foundation.Size + DrawsBackground() bool + SetDrawsBackground(value bool) + AutohidesScrollers() bool + SetAutohidesScrollers(value bool) UsesPredominantAxisScrolling() bool SetUsesPredominantAxisScrolling(value bool) - VerticalScroller() Scroller - SetVerticalScroller(value IScroller) - RulersVisible() bool - SetRulersVisible(value bool) + DocumentVisibleRect() foundation.Rect + ScrollerInsets() foundation.EdgeInsets + SetScrollerInsets(value foundation.EdgeInsets) + MinMagnification() float64 + SetMinMagnification(value float64) HasHorizontalRuler() bool SetHasHorizontalRuler(value bool) DocumentView() View SetDocumentView(value IView) - DrawsBackground() bool - SetDrawsBackground(value bool) + HorizontalLineScroll() float64 + SetHorizontalLineScroll(value float64) + VerticalScroller() Scroller + SetVerticalScroller(value IScroller) VerticalPageScroll() float64 SetVerticalPageScroll(value float64) + AutomaticallyAdjustsContentInsets() bool + SetAutomaticallyAdjustsContentInsets(value bool) + VerticalRulerView() RulerView + SetVerticalRulerView(value IRulerView) + HasHorizontalScroller() bool + SetHasHorizontalScroller(value bool) + HorizontalRulerView() RulerView + SetHorizontalRulerView(value IRulerView) } // A view that displays a portion of a document view and provides scroll bars that allow the user to move the document view within the scroll view. [Full Topic] @@ -147,11 +147,18 @@ func (s_ ScrollView) Init() ScrollView { return rv } -// Lays out the components of the receiver: the content view, the scrollers, and the ruler views. [Full Topic] +// Magnify the content by the given amount and center the result on the given point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403509-tile?language=objc -func (s_ ScrollView) Tile() { - objc.Call[objc.Void](s_, objc.Sel("tile")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403459-setmagnification?language=objc +func (s_ ScrollView) SetMagnificationCenteredAtPoint(magnification float64, point foundation.Point) { + objc.Call[objc.Void](s_, objc.Sel("setMagnification:centeredAtPoint:"), magnification, point) +} + +// Flash the overlay scroll bars. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403460-flashscrollers?language=objc +func (s_ ScrollView) FlashScrollers() { + objc.Call[objc.Void](s_, objc.Sel("flashScrollers")) } // Adds a floating subview to the document view. [Full Topic] @@ -168,18 +175,11 @@ func (s_ ScrollView) MagnifyToFitRect(rect foundation.Rect) { objc.Call[objc.Void](s_, objc.Sel("magnifyToFitRect:"), rect) } -// Magnify the content by the given amount and center the result on the given point. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403459-setmagnification?language=objc -func (s_ ScrollView) SetMagnificationCenteredAtPoint(magnification float64, point foundation.Point) { - objc.Call[objc.Void](s_, objc.Sel("setMagnification:centeredAtPoint:"), magnification, point) -} - -// Flash the overlay scroll bars. [Full Topic] +// Lays out the components of the receiver: the content view, the scrollers, and the ruler views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403460-flashscrollers?language=objc -func (s_ ScrollView) FlashScrollers() { - objc.Call[objc.Void](s_, objc.Sel("flashScrollers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403509-tile?language=objc +func (s_ ScrollView) Tile() { + objc.Call[objc.Void](s_, objc.Sel("tile")) } // Returns the frame size of a scroll view that contains a content view with the specified size. [Full Topic] @@ -197,134 +197,140 @@ func ScrollView_FrameSizeForContentSizeHorizontalScrollerClassVerticalScrollerCl return ScrollViewClass.FrameSizeForContentSizeHorizontalScrollerClassVerticalScrollerClassBorderTypeControlSizeScrollerStyle(cSize, horizontalScrollerClass, verticalScrollerClass, type_, controlSize, scrollerStyle) } -// Returns the content size calculated from the frame size and the specified specifications. [Full Topic] +// The scroll view’s vertical line by line scroll amount. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403471-contentsizeforframesize?language=objc -func (sc _ScrollViewClass) ContentSizeForFrameSizeHorizontalScrollerClassVerticalScrollerClassBorderTypeControlSizeScrollerStyle(fSize foundation.Size, horizontalScrollerClass objc.IClass, verticalScrollerClass objc.IClass, type_ BorderType, controlSize ControlSize, scrollerStyle ScrollerStyle) foundation.Size { - rv := objc.Call[foundation.Size](sc, objc.Sel("contentSizeForFrameSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle:"), fSize, horizontalScrollerClass, verticalScrollerClass, type_, controlSize, scrollerStyle) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403490-verticallinescroll?language=objc +func (s_ ScrollView) VerticalLineScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("verticalLineScroll")) return rv } -// Returns the content size calculated from the frame size and the specified specifications. [Full Topic] +// The scroll view’s vertical line by line scroll amount. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403471-contentsizeforframesize?language=objc -func ScrollView_ContentSizeForFrameSizeHorizontalScrollerClassVerticalScrollerClassBorderTypeControlSizeScrollerStyle(fSize foundation.Size, horizontalScrollerClass objc.IClass, verticalScrollerClass objc.IClass, type_ BorderType, controlSize ControlSize, scrollerStyle ScrollerStyle) foundation.Size { - return ScrollViewClass.ContentSizeForFrameSizeHorizontalScrollerClassVerticalScrollerClassBorderTypeControlSizeScrollerStyle(fSize, horizontalScrollerClass, verticalScrollerClass, type_, controlSize, scrollerStyle) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403490-verticallinescroll?language=objc +func (s_ ScrollView) SetVerticalLineScroll(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setVerticalLineScroll:"), value) } -// The scroll view’s horizontal ruler view. [Full Topic] +// The scroll view’s horizontal scrolling elasticity mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403498-horizontalrulerview?language=objc -func (s_ ScrollView) HorizontalRulerView() RulerView { - rv := objc.Call[RulerView](s_, objc.Sel("horizontalRulerView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403540-horizontalscrollelasticity?language=objc +func (s_ ScrollView) HorizontalScrollElasticity() ScrollElasticity { + rv := objc.Call[ScrollElasticity](s_, objc.Sel("horizontalScrollElasticity")) return rv } -// The scroll view’s horizontal ruler view. [Full Topic] +// The scroll view’s horizontal scrolling elasticity mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403498-horizontalrulerview?language=objc -func (s_ ScrollView) SetHorizontalRulerView(value IRulerView) { - objc.Call[objc.Void](s_, objc.Sel("setHorizontalRulerView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403540-horizontalscrollelasticity?language=objc +func (s_ ScrollView) SetHorizontalScrollElasticity(value ScrollElasticity) { + objc.Call[objc.Void](s_, objc.Sel("setHorizontalScrollElasticity:"), value) } -// The scroll view’s vertical ruler view. [Full Topic] +// Allows the user to magnify the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403507-verticalrulerview?language=objc -func (s_ ScrollView) VerticalRulerView() RulerView { - rv := objc.Call[RulerView](s_, objc.Sel("verticalRulerView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403531-allowsmagnification?language=objc +func (s_ ScrollView) AllowsMagnification() bool { + rv := objc.Call[bool](s_, objc.Sel("allowsMagnification")) return rv } -// The scroll view’s vertical ruler view. [Full Topic] +// Allows the user to magnify the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403507-verticalrulerview?language=objc -func (s_ ScrollView) SetVerticalRulerView(value IRulerView) { - objc.Call[objc.Void](s_, objc.Sel("setVerticalRulerView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403531-allowsmagnification?language=objc +func (s_ ScrollView) SetAllowsMagnification(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setAllowsMagnification:"), value) } -// The scroll view’s vertical line by line scroll amount. [Full Topic] +// The amount of the document view kept visible when scrolling horizontally page by page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403490-verticallinescroll?language=objc -func (s_ ScrollView) VerticalLineScroll() float64 { - rv := objc.Call[float64](s_, objc.Sel("verticalLineScroll")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403478-horizontalpagescroll?language=objc +func (s_ ScrollView) HorizontalPageScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("horizontalPageScroll")) return rv } -// The scroll view’s vertical line by line scroll amount. [Full Topic] +// The amount of the document view kept visible when scrolling horizontally page by page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403490-verticallinescroll?language=objc -func (s_ ScrollView) SetVerticalLineScroll(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setVerticalLineScroll:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403478-horizontalpagescroll?language=objc +func (s_ ScrollView) SetHorizontalPageScroll(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setHorizontalPageScroll:"), value) } -// A value that specifies the appearance of the scroll view’s border. [Full Topic] +// Returns the default class to be used for ruler objects in NSScrollViews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403528-bordertype?language=objc -func (s_ ScrollView) BorderType() BorderType { - rv := objc.Call[BorderType](s_, objc.Sel("borderType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403492-rulerviewclass?language=objc +func (sc _ScrollViewClass) RulerViewClass() objc.Class { + rv := objc.Call[objc.Class](sc, objc.Sel("rulerViewClass")) return rv } -// A value that specifies the appearance of the scroll view’s border. [Full Topic] +// Returns the default class to be used for ruler objects in NSScrollViews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403528-bordertype?language=objc -func (s_ ScrollView) SetBorderType(value BorderType) { - objc.Call[objc.Void](s_, objc.Sel("setBorderType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403492-rulerviewclass?language=objc +func ScrollView_RulerViewClass() objc.Class { + return ScrollViewClass.RulerViewClass() } -// The distance that the scroll view’s subviews are inset from the enclosing scroll view during tiling. [Full Topic] +// Returns the default class to be used for ruler objects in NSScrollViews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403461-contentinsets?language=objc -func (s_ ScrollView) ContentInsets() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](s_, objc.Sel("contentInsets")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403492-rulerviewclass?language=objc +func (sc _ScrollViewClass) SetRulerViewClass(value objc.IClass) { + objc.Call[objc.Void](sc, objc.Sel("setRulerViewClass:"), value) } -// The distance that the scroll view’s subviews are inset from the enclosing scroll view during tiling. [Full Topic] +// Returns the default class to be used for ruler objects in NSScrollViews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403461-contentinsets?language=objc -func (s_ ScrollView) SetContentInsets(value foundation.EdgeInsets) { - objc.Call[objc.Void](s_, objc.Sel("setContentInsets:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403492-rulerviewclass?language=objc +func ScrollView_SetRulerViewClass(value objc.IClass) { + ScrollViewClass.SetRulerViewClass(value) } -// The amount by which the content is currently scaled. [Full Topic] +// A Boolean that indicates whether the scroll view displays its rulers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403497-magnification?language=objc -func (s_ ScrollView) Magnification() float64 { - rv := objc.Call[float64](s_, objc.Sel("magnification")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403445-rulersvisible?language=objc +func (s_ ScrollView) RulersVisible() bool { + rv := objc.Call[bool](s_, objc.Sel("rulersVisible")) return rv } -// The amount by which the content is currently scaled. [Full Topic] +// A Boolean that indicates whether the scroll view displays its rulers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403497-magnification?language=objc -func (s_ ScrollView) SetMagnification(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMagnification:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403445-rulersvisible?language=objc +func (s_ ScrollView) SetRulersVisible(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setRulersVisible:"), value) } -// A Boolean that indicates whether the scroll view redraws its document view while scrolling continuously. [Full Topic] +// The content view’s document cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403519-scrollsdynamically?language=objc -func (s_ ScrollView) ScrollsDynamically() bool { - rv := objc.Call[bool](s_, objc.Sel("scrollsDynamically")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403446-documentcursor?language=objc +func (s_ ScrollView) DocumentCursor() Cursor { + rv := objc.Call[Cursor](s_, objc.Sel("documentCursor")) return rv } -// A Boolean that indicates whether the scroll view redraws its document view while scrolling continuously. [Full Topic] +// The content view’s document cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403519-scrollsdynamically?language=objc -func (s_ ScrollView) SetScrollsDynamically(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setScrollsDynamically:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403446-documentcursor?language=objc +func (s_ ScrollView) SetDocumentCursor(value ICursor) { + objc.Call[objc.Void](s_, objc.Sel("setDocumentCursor:"), value) } -// The size of the scroll view’s content view. [Full Topic] +// A Boolean that indicates whether the scroll view keeps a vertical ruler object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403458-contentsize?language=objc -func (s_ ScrollView) ContentSize() foundation.Size { - rv := objc.Call[foundation.Size](s_, objc.Sel("contentSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403496-hasverticalruler?language=objc +func (s_ ScrollView) HasVerticalRuler() bool { + rv := objc.Call[bool](s_, objc.Sel("hasVerticalRuler")) return rv } +// A Boolean that indicates whether the scroll view keeps a vertical ruler object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403496-hasverticalruler?language=objc +func (s_ ScrollView) SetHasVerticalRuler(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setHasVerticalRuler:"), value) +} + // The maximum value to which the content can be magnified. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403510-maxmagnification?language=objc @@ -340,49 +346,64 @@ func (s_ ScrollView) SetMaxMagnification(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMaxMagnification:"), value) } -// The knob style of scroll views that use the overlay scroller style. [Full Topic] +// A Boolean that indicates whether the scroll view redraws its document view while scrolling continuously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403544-scrollerknobstyle?language=objc -func (s_ ScrollView) ScrollerKnobStyle() ScrollerKnobStyle { - rv := objc.Call[ScrollerKnobStyle](s_, objc.Sel("scrollerKnobStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403519-scrollsdynamically?language=objc +func (s_ ScrollView) ScrollsDynamically() bool { + rv := objc.Call[bool](s_, objc.Sel("scrollsDynamically")) return rv } -// The knob style of scroll views that use the overlay scroller style. [Full Topic] +// A Boolean that indicates whether the scroll view redraws its document view while scrolling continuously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403544-scrollerknobstyle?language=objc -func (s_ ScrollView) SetScrollerKnobStyle(value ScrollerKnobStyle) { - objc.Call[objc.Void](s_, objc.Sel("setScrollerKnobStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403519-scrollsdynamically?language=objc +func (s_ ScrollView) SetScrollsDynamically(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setScrollsDynamically:"), value) } -// A Boolean that indicates whether the scroll view automatically hides its scroll bars when they are not needed. [Full Topic] +// The scroll view’s content view, the view that clips the document view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403536-autohidesscrollers?language=objc -func (s_ ScrollView) AutohidesScrollers() bool { - rv := objc.Call[bool](s_, objc.Sel("autohidesScrollers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403547-contentview?language=objc +func (s_ ScrollView) ContentView() ClipView { + rv := objc.Call[ClipView](s_, objc.Sel("contentView")) return rv } -// A Boolean that indicates whether the scroll view automatically hides its scroll bars when they are not needed. [Full Topic] +// The scroll view’s content view, the view that clips the document view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403536-autohidesscrollers?language=objc -func (s_ ScrollView) SetAutohidesScrollers(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setAutohidesScrollers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403547-contentview?language=objc +func (s_ ScrollView) SetContentView(value IClipView) { + objc.Call[objc.Void](s_, objc.Sel("setContentView:"), value) } -// The scroll view’s horizontal line by line scroll amount. [Full Topic] +// A Boolean that indicates whether the scroll view has a vertical scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403539-horizontallinescroll?language=objc -func (s_ ScrollView) HorizontalLineScroll() float64 { - rv := objc.Call[float64](s_, objc.Sel("horizontalLineScroll")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403491-hasverticalscroller?language=objc +func (s_ ScrollView) HasVerticalScroller() bool { + rv := objc.Call[bool](s_, objc.Sel("hasVerticalScroller")) return rv } -// The scroll view’s horizontal line by line scroll amount. [Full Topic] +// A Boolean that indicates whether the scroll view has a vertical scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403539-horizontallinescroll?language=objc -func (s_ ScrollView) SetHorizontalLineScroll(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setHorizontalLineScroll:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403491-hasverticalscroller?language=objc +func (s_ ScrollView) SetHasVerticalScroller(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setHasVerticalScroller:"), value) +} + +// The position of the find bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403501-findbarposition?language=objc +func (s_ ScrollView) FindBarPosition() ScrollViewFindBarPosition { + rv := objc.Call[ScrollViewFindBarPosition](s_, objc.Sel("findBarPosition")) + return rv +} + +// The position of the find bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403501-findbarposition?language=objc +func (s_ ScrollView) SetFindBarPosition(value ScrollViewFindBarPosition) { + objc.Call[objc.Void](s_, objc.Sel("setFindBarPosition:"), value) } // The scroll view’s horizontal scroller. [Full Topic] @@ -400,117 +421,94 @@ func (s_ ScrollView) SetHorizontalScroller(value IScroller) { objc.Call[objc.Void](s_, objc.Sel("setHorizontalScroller:"), value) } -// The scroll view’s horizontal scrolling elasticity mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403540-horizontalscrollelasticity?language=objc -func (s_ ScrollView) HorizontalScrollElasticity() ScrollElasticity { - rv := objc.Call[ScrollElasticity](s_, objc.Sel("horizontalScrollElasticity")) - return rv -} - -// The scroll view’s horizontal scrolling elasticity mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403540-horizontalscrollelasticity?language=objc -func (s_ ScrollView) SetHorizontalScrollElasticity(value ScrollElasticity) { - objc.Call[objc.Void](s_, objc.Sel("setHorizontalScrollElasticity:"), value) -} - -// A Boolean that indicates whether the scroll view has a horizontal scroller. [Full Topic] +// The scroller style used by the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403530-hashorizontalscroller?language=objc -func (s_ ScrollView) HasHorizontalScroller() bool { - rv := objc.Call[bool](s_, objc.Sel("hasHorizontalScroller")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403520-scrollerstyle?language=objc +func (s_ ScrollView) ScrollerStyle() ScrollerStyle { + rv := objc.Call[ScrollerStyle](s_, objc.Sel("scrollerStyle")) return rv } -// A Boolean that indicates whether the scroll view has a horizontal scroller. [Full Topic] +// The scroller style used by the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403530-hashorizontalscroller?language=objc -func (s_ ScrollView) SetHasHorizontalScroller(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setHasHorizontalScroller:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403520-scrollerstyle?language=objc +func (s_ ScrollView) SetScrollerStyle(value ScrollerStyle) { + objc.Call[objc.Void](s_, objc.Sel("setScrollerStyle:"), value) } -// The content view’s document cursor. [Full Topic] +// The scroll view’s vertical scrolling elasticity mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403446-documentcursor?language=objc -func (s_ ScrollView) DocumentCursor() Cursor { - rv := objc.Call[Cursor](s_, objc.Sel("documentCursor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403475-verticalscrollelasticity?language=objc +func (s_ ScrollView) VerticalScrollElasticity() ScrollElasticity { + rv := objc.Call[ScrollElasticity](s_, objc.Sel("verticalScrollElasticity")) return rv } -// The content view’s document cursor. [Full Topic] +// The scroll view’s vertical scrolling elasticity mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403446-documentcursor?language=objc -func (s_ ScrollView) SetDocumentCursor(value ICursor) { - objc.Call[objc.Void](s_, objc.Sel("setDocumentCursor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403475-verticalscrollelasticity?language=objc +func (s_ ScrollView) SetVerticalScrollElasticity(value ScrollElasticity) { + objc.Call[objc.Void](s_, objc.Sel("setVerticalScrollElasticity:"), value) } -// The scroll view’s content view, the view that clips the document view. [Full Topic] +// The amount of the document view kept visible when scrolling page by page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403547-contentview?language=objc -func (s_ ScrollView) ContentView() ClipView { - rv := objc.Call[ClipView](s_, objc.Sel("contentView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403449-pagescroll?language=objc +func (s_ ScrollView) PageScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("pageScroll")) return rv } -// The scroll view’s content view, the view that clips the document view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403547-contentview?language=objc -func (s_ ScrollView) SetContentView(value IClipView) { - objc.Call[objc.Void](s_, objc.Sel("setContentView:"), value) -} - -// The portion of the document view, in its own coordinate system, visible through the scroll view’s content view. [Full Topic] +// The amount of the document view kept visible when scrolling page by page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403466-documentvisiblerect?language=objc -func (s_ ScrollView) DocumentVisibleRect() foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("documentVisibleRect")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403449-pagescroll?language=objc +func (s_ ScrollView) SetPageScroll(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setPageScroll:"), value) } -// The scroll view’s line by line scroll amount. [Full Topic] +// A value that specifies the appearance of the scroll view’s border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403454-linescroll?language=objc -func (s_ ScrollView) LineScroll() float64 { - rv := objc.Call[float64](s_, objc.Sel("lineScroll")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403528-bordertype?language=objc +func (s_ ScrollView) BorderType() BorderType { + rv := objc.Call[BorderType](s_, objc.Sel("borderType")) return rv } -// The scroll view’s line by line scroll amount. [Full Topic] +// A value that specifies the appearance of the scroll view’s border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403454-linescroll?language=objc -func (s_ ScrollView) SetLineScroll(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setLineScroll:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403528-bordertype?language=objc +func (s_ ScrollView) SetBorderType(value BorderType) { + objc.Call[objc.Void](s_, objc.Sel("setBorderType:"), value) } -// The scroll view’s vertical scrolling elasticity mode. [Full Topic] +// The distance that the scroll view’s subviews are inset from the enclosing scroll view during tiling. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403475-verticalscrollelasticity?language=objc -func (s_ ScrollView) VerticalScrollElasticity() ScrollElasticity { - rv := objc.Call[ScrollElasticity](s_, objc.Sel("verticalScrollElasticity")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403461-contentinsets?language=objc +func (s_ ScrollView) ContentInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](s_, objc.Sel("contentInsets")) return rv } -// The scroll view’s vertical scrolling elasticity mode. [Full Topic] +// The distance that the scroll view’s subviews are inset from the enclosing scroll view during tiling. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403475-verticalscrollelasticity?language=objc -func (s_ ScrollView) SetVerticalScrollElasticity(value ScrollElasticity) { - objc.Call[objc.Void](s_, objc.Sel("setVerticalScrollElasticity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403461-contentinsets?language=objc +func (s_ ScrollView) SetContentInsets(value foundation.EdgeInsets) { + objc.Call[objc.Void](s_, objc.Sel("setContentInsets:"), value) } -// A Boolean that indicates whether the scroll view automatically adjusts its content insets. [Full Topic] +// The amount by which the content is currently scaled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403502-automaticallyadjustscontentinset?language=objc -func (s_ ScrollView) AutomaticallyAdjustsContentInsets() bool { - rv := objc.Call[bool](s_, objc.Sel("automaticallyAdjustsContentInsets")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403497-magnification?language=objc +func (s_ ScrollView) Magnification() float64 { + rv := objc.Call[float64](s_, objc.Sel("magnification")) return rv } -// A Boolean that indicates whether the scroll view automatically adjusts its content insets. [Full Topic] +// The amount by which the content is currently scaled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403502-automaticallyadjustscontentinset?language=objc -func (s_ ScrollView) SetAutomaticallyAdjustsContentInsets(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setAutomaticallyAdjustsContentInsets:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403497-magnification?language=objc +func (s_ ScrollView) SetMagnification(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMagnification:"), value) } // The color of the content view’s background. [Full Topic] @@ -528,79 +526,95 @@ func (s_ ScrollView) SetBackgroundColor(value IColor) { objc.Call[objc.Void](s_, objc.Sel("setBackgroundColor:"), value) } -// The scroller style used by the scroll view. [Full Topic] +// The knob style of scroll views that use the overlay scroller style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403520-scrollerstyle?language=objc -func (s_ ScrollView) ScrollerStyle() ScrollerStyle { - rv := objc.Call[ScrollerStyle](s_, objc.Sel("scrollerStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403544-scrollerknobstyle?language=objc +func (s_ ScrollView) ScrollerKnobStyle() ScrollerKnobStyle { + rv := objc.Call[ScrollerKnobStyle](s_, objc.Sel("scrollerKnobStyle")) return rv } -// The scroller style used by the scroll view. [Full Topic] +// The knob style of scroll views that use the overlay scroller style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403520-scrollerstyle?language=objc -func (s_ ScrollView) SetScrollerStyle(value ScrollerStyle) { - objc.Call[objc.Void](s_, objc.Sel("setScrollerStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403544-scrollerknobstyle?language=objc +func (s_ ScrollView) SetScrollerKnobStyle(value ScrollerKnobStyle) { + objc.Call[objc.Void](s_, objc.Sel("setScrollerKnobStyle:"), value) } -// The amount of the document view kept visible when scrolling horizontally page by page. [Full Topic] +// The scroll view’s line by line scroll amount. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403478-horizontalpagescroll?language=objc -func (s_ ScrollView) HorizontalPageScroll() float64 { - rv := objc.Call[float64](s_, objc.Sel("horizontalPageScroll")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403454-linescroll?language=objc +func (s_ ScrollView) LineScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("lineScroll")) return rv } -// The amount of the document view kept visible when scrolling horizontally page by page. [Full Topic] +// The scroll view’s line by line scroll amount. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403478-horizontalpagescroll?language=objc -func (s_ ScrollView) SetHorizontalPageScroll(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setHorizontalPageScroll:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403454-linescroll?language=objc +func (s_ ScrollView) SetLineScroll(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setLineScroll:"), value) } -// The minimum value to which the content can be magnified. [Full Topic] +// The size of the scroll view’s content view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403524-minmagnification?language=objc -func (s_ ScrollView) MinMagnification() float64 { - rv := objc.Call[float64](s_, objc.Sel("minMagnification")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403458-contentsize?language=objc +func (s_ ScrollView) ContentSize() foundation.Size { + rv := objc.Call[foundation.Size](s_, objc.Sel("contentSize")) return rv } -// The minimum value to which the content can be magnified. [Full Topic] +// A Boolean that indicates whether the scroll view draws its background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403524-minmagnification?language=objc -func (s_ ScrollView) SetMinMagnification(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMinMagnification:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403474-drawsbackground?language=objc +func (s_ ScrollView) DrawsBackground() bool { + rv := objc.Call[bool](s_, objc.Sel("drawsBackground")) + return rv } -// A Boolean that indicates whether the scroll view has a vertical scroller. [Full Topic] +// A Boolean that indicates whether the scroll view draws its background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403491-hasverticalscroller?language=objc -func (s_ ScrollView) HasVerticalScroller() bool { - rv := objc.Call[bool](s_, objc.Sel("hasVerticalScroller")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403474-drawsbackground?language=objc +func (s_ ScrollView) SetDrawsBackground(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setDrawsBackground:"), value) +} + +// A Boolean that indicates whether the scroll view automatically hides its scroll bars when they are not needed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403536-autohidesscrollers?language=objc +func (s_ ScrollView) AutohidesScrollers() bool { + rv := objc.Call[bool](s_, objc.Sel("autohidesScrollers")) return rv } -// A Boolean that indicates whether the scroll view has a vertical scroller. [Full Topic] +// A Boolean that indicates whether the scroll view automatically hides its scroll bars when they are not needed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403491-hasverticalscroller?language=objc -func (s_ ScrollView) SetHasVerticalScroller(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setHasVerticalScroller:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403536-autohidesscrollers?language=objc +func (s_ ScrollView) SetAutohidesScrollers(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setAutohidesScrollers:"), value) } -// Allows the user to magnify the scroll view. [Full Topic] +// A Boolean that indicates whether the scroll view uses a predominant scrolling axis for content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403531-allowsmagnification?language=objc -func (s_ ScrollView) AllowsMagnification() bool { - rv := objc.Call[bool](s_, objc.Sel("allowsMagnification")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403489-usespredominantaxisscrolling?language=objc +func (s_ ScrollView) UsesPredominantAxisScrolling() bool { + rv := objc.Call[bool](s_, objc.Sel("usesPredominantAxisScrolling")) return rv } -// Allows the user to magnify the scroll view. [Full Topic] +// A Boolean that indicates whether the scroll view uses a predominant scrolling axis for content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403531-allowsmagnification?language=objc -func (s_ ScrollView) SetAllowsMagnification(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setAllowsMagnification:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403489-usespredominantaxisscrolling?language=objc +func (s_ ScrollView) SetUsesPredominantAxisScrolling(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setUsesPredominantAxisScrolling:"), value) +} + +// The portion of the document view, in its own coordinate system, visible through the scroll view’s content view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403466-documentvisiblerect?language=objc +func (s_ ScrollView) DocumentVisibleRect() foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("documentVisibleRect")) + return rv } // The distance the scrollers are inset from the edge of the scroll view. [Full Topic] @@ -618,93 +632,64 @@ func (s_ ScrollView) SetScrollerInsets(value foundation.EdgeInsets) { objc.Call[objc.Void](s_, objc.Sel("setScrollerInsets:"), value) } -// A Boolean that indicates whether the scroll view keeps a vertical ruler object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403496-hasverticalruler?language=objc -func (s_ ScrollView) HasVerticalRuler() bool { - rv := objc.Call[bool](s_, objc.Sel("hasVerticalRuler")) - return rv -} - -// A Boolean that indicates whether the scroll view keeps a vertical ruler object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403496-hasverticalruler?language=objc -func (s_ ScrollView) SetHasVerticalRuler(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setHasVerticalRuler:"), value) -} - -// The position of the find bar. [Full Topic] +// The minimum value to which the content can be magnified. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403501-findbarposition?language=objc -func (s_ ScrollView) FindBarPosition() ScrollViewFindBarPosition { - rv := objc.Call[ScrollViewFindBarPosition](s_, objc.Sel("findBarPosition")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403524-minmagnification?language=objc +func (s_ ScrollView) MinMagnification() float64 { + rv := objc.Call[float64](s_, objc.Sel("minMagnification")) return rv } -// The position of the find bar. [Full Topic] +// The minimum value to which the content can be magnified. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403501-findbarposition?language=objc -func (s_ ScrollView) SetFindBarPosition(value ScrollViewFindBarPosition) { - objc.Call[objc.Void](s_, objc.Sel("setFindBarPosition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403524-minmagnification?language=objc +func (s_ ScrollView) SetMinMagnification(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMinMagnification:"), value) } -// The amount of the document view kept visible when scrolling page by page. [Full Topic] +// A Boolean that indicates whether the scroll view keeps a horizontal ruler object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403449-pagescroll?language=objc -func (s_ ScrollView) PageScroll() float64 { - rv := objc.Call[float64](s_, objc.Sel("pageScroll")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403457-hashorizontalruler?language=objc +func (s_ ScrollView) HasHorizontalRuler() bool { + rv := objc.Call[bool](s_, objc.Sel("hasHorizontalRuler")) return rv } -// The amount of the document view kept visible when scrolling page by page. [Full Topic] +// A Boolean that indicates whether the scroll view keeps a horizontal ruler object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403449-pagescroll?language=objc -func (s_ ScrollView) SetPageScroll(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setPageScroll:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403457-hashorizontalruler?language=objc +func (s_ ScrollView) SetHasHorizontalRuler(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setHasHorizontalRuler:"), value) } -// A Boolean that indicates whether the scroll view uses a predominant scrolling axis for content. [Full Topic] +// The view the scroll view scrolls within its content view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403489-usespredominantaxisscrolling?language=objc -func (s_ ScrollView) UsesPredominantAxisScrolling() bool { - rv := objc.Call[bool](s_, objc.Sel("usesPredominantAxisScrolling")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403485-documentview?language=objc +func (s_ ScrollView) DocumentView() View { + rv := objc.Call[View](s_, objc.Sel("documentView")) return rv } -// A Boolean that indicates whether the scroll view uses a predominant scrolling axis for content. [Full Topic] +// The view the scroll view scrolls within its content view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403489-usespredominantaxisscrolling?language=objc -func (s_ ScrollView) SetUsesPredominantAxisScrolling(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setUsesPredominantAxisScrolling:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403485-documentview?language=objc +func (s_ ScrollView) SetDocumentView(value IView) { + objc.Call[objc.Void](s_, objc.Sel("setDocumentView:"), value) } -// Returns the default class to be used for ruler objects in NSScrollViews. [Full Topic] +// The scroll view’s horizontal line by line scroll amount. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403492-rulerviewclass?language=objc -func (sc _ScrollViewClass) RulerViewClass() objc.Class { - rv := objc.Call[objc.Class](sc, objc.Sel("rulerViewClass")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403539-horizontallinescroll?language=objc +func (s_ ScrollView) HorizontalLineScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("horizontalLineScroll")) return rv } -// Returns the default class to be used for ruler objects in NSScrollViews. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403492-rulerviewclass?language=objc -func ScrollView_RulerViewClass() objc.Class { - return ScrollViewClass.RulerViewClass() -} - -// Returns the default class to be used for ruler objects in NSScrollViews. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403492-rulerviewclass?language=objc -func (sc _ScrollViewClass) SetRulerViewClass(value objc.IClass) { - objc.Call[objc.Void](sc, objc.Sel("setRulerViewClass:"), value) -} - -// Returns the default class to be used for ruler objects in NSScrollViews. [Full Topic] +// The scroll view’s horizontal line by line scroll amount. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403492-rulerviewclass?language=objc -func ScrollView_SetRulerViewClass(value objc.IClass) { - ScrollViewClass.SetRulerViewClass(value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403539-horizontallinescroll?language=objc +func (s_ ScrollView) SetHorizontalLineScroll(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setHorizontalLineScroll:"), value) } // The scroll view’s vertical scroller. [Full Topic] @@ -722,77 +707,77 @@ func (s_ ScrollView) SetVerticalScroller(value IScroller) { objc.Call[objc.Void](s_, objc.Sel("setVerticalScroller:"), value) } -// A Boolean that indicates whether the scroll view displays its rulers. [Full Topic] +// The amount of the document view kept visible when scrolling vertically page by page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403445-rulersvisible?language=objc -func (s_ ScrollView) RulersVisible() bool { - rv := objc.Call[bool](s_, objc.Sel("rulersVisible")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403512-verticalpagescroll?language=objc +func (s_ ScrollView) VerticalPageScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("verticalPageScroll")) return rv } -// A Boolean that indicates whether the scroll view displays its rulers. [Full Topic] +// The amount of the document view kept visible when scrolling vertically page by page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403445-rulersvisible?language=objc -func (s_ ScrollView) SetRulersVisible(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setRulersVisible:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403512-verticalpagescroll?language=objc +func (s_ ScrollView) SetVerticalPageScroll(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setVerticalPageScroll:"), value) } -// A Boolean that indicates whether the scroll view keeps a horizontal ruler object. [Full Topic] +// A Boolean that indicates whether the scroll view automatically adjusts its content insets. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403457-hashorizontalruler?language=objc -func (s_ ScrollView) HasHorizontalRuler() bool { - rv := objc.Call[bool](s_, objc.Sel("hasHorizontalRuler")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403502-automaticallyadjustscontentinset?language=objc +func (s_ ScrollView) AutomaticallyAdjustsContentInsets() bool { + rv := objc.Call[bool](s_, objc.Sel("automaticallyAdjustsContentInsets")) return rv } -// A Boolean that indicates whether the scroll view keeps a horizontal ruler object. [Full Topic] +// A Boolean that indicates whether the scroll view automatically adjusts its content insets. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403457-hashorizontalruler?language=objc -func (s_ ScrollView) SetHasHorizontalRuler(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setHasHorizontalRuler:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403502-automaticallyadjustscontentinset?language=objc +func (s_ ScrollView) SetAutomaticallyAdjustsContentInsets(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setAutomaticallyAdjustsContentInsets:"), value) } -// The view the scroll view scrolls within its content view. [Full Topic] +// The scroll view’s vertical ruler view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403485-documentview?language=objc -func (s_ ScrollView) DocumentView() View { - rv := objc.Call[View](s_, objc.Sel("documentView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403507-verticalrulerview?language=objc +func (s_ ScrollView) VerticalRulerView() RulerView { + rv := objc.Call[RulerView](s_, objc.Sel("verticalRulerView")) return rv } -// The view the scroll view scrolls within its content view. [Full Topic] +// The scroll view’s vertical ruler view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403485-documentview?language=objc -func (s_ ScrollView) SetDocumentView(value IView) { - objc.Call[objc.Void](s_, objc.Sel("setDocumentView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403507-verticalrulerview?language=objc +func (s_ ScrollView) SetVerticalRulerView(value IRulerView) { + objc.Call[objc.Void](s_, objc.Sel("setVerticalRulerView:"), value) } -// A Boolean that indicates whether the scroll view draws its background. [Full Topic] +// A Boolean that indicates whether the scroll view has a horizontal scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403474-drawsbackground?language=objc -func (s_ ScrollView) DrawsBackground() bool { - rv := objc.Call[bool](s_, objc.Sel("drawsBackground")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403530-hashorizontalscroller?language=objc +func (s_ ScrollView) HasHorizontalScroller() bool { + rv := objc.Call[bool](s_, objc.Sel("hasHorizontalScroller")) return rv } -// A Boolean that indicates whether the scroll view draws its background. [Full Topic] +// A Boolean that indicates whether the scroll view has a horizontal scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403474-drawsbackground?language=objc -func (s_ ScrollView) SetDrawsBackground(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setDrawsBackground:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403530-hashorizontalscroller?language=objc +func (s_ ScrollView) SetHasHorizontalScroller(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setHasHorizontalScroller:"), value) } -// The amount of the document view kept visible when scrolling vertically page by page. [Full Topic] +// The scroll view’s horizontal ruler view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403512-verticalpagescroll?language=objc -func (s_ ScrollView) VerticalPageScroll() float64 { - rv := objc.Call[float64](s_, objc.Sel("verticalPageScroll")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403498-horizontalrulerview?language=objc +func (s_ ScrollView) HorizontalRulerView() RulerView { + rv := objc.Call[RulerView](s_, objc.Sel("horizontalRulerView")) return rv } -// The amount of the document view kept visible when scrolling vertically page by page. [Full Topic] +// The scroll view’s horizontal ruler view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403512-verticalpagescroll?language=objc -func (s_ ScrollView) SetVerticalPageScroll(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setVerticalPageScroll:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollview/1403498-horizontalrulerview?language=objc +func (s_ ScrollView) SetHorizontalRulerView(value IRulerView) { + objc.Call[objc.Void](s_, objc.Sel("setHorizontalRulerView:"), value) } diff --git a/macos/appkit/scroller.gen.go b/macos/appkit/scroller.gen.go index 7bdbf65d..a7f5828b 100644 --- a/macos/appkit/scroller.gen.go +++ b/macos/appkit/scroller.gen.go @@ -19,20 +19,20 @@ type _ScrollerClass struct { // An interface definition for the [Scroller] class. type IScroller interface { IControl - TestPart(point foundation.Point) ScrollerPart - SetKnobProportion(proportion float64) CheckSpaceForParts() - DrawKnob() TrackKnob(event IEvent) + SetKnobProportion(proportion float64) + TestPart(point foundation.Point) ScrollerPart + DrawKnob() DrawKnobSlotInRectHighlight(slotRect foundation.Rect, flag bool) RectForPart(partCode ScrollerPart) foundation.Rect - HitPart() ScrollerPart - KnobProportion() float64 + ScrollerStyle() ScrollerStyle + SetScrollerStyle(value ScrollerStyle) KnobStyle() ScrollerKnobStyle SetKnobStyle(value ScrollerKnobStyle) UsableParts() UsableScrollerParts - ScrollerStyle() ScrollerStyle - SetScrollerStyle(value ScrollerStyle) + HitPart() ScrollerPart + KnobProportion() float64 } // An object that controls scrolling of a document view within a scroll view or other type of container view. [Full Topic] @@ -82,27 +82,18 @@ func NewScrollerWithFrame(frameRect foundation.Rect) Scroller { return instance } -// Returns the part that would be hit by a mouse-down event at aPoint (expressed in the window’s coordinate system). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523645-testpart?language=objc -func (s_ Scroller) TestPart(point foundation.Point) ScrollerPart { - rv := objc.Call[ScrollerPart](s_, objc.Sel("testPart:"), point) - return rv -} - -// Returns the width for scrollers of the receiving class for a given control size and scroller style. [Full Topic] +// Checks to see if there is enough room in the receiver to display the knob and buttons. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523603-scrollerwidthforcontrolsize?language=objc -func (sc _ScrollerClass) ScrollerWidthForControlSizeScrollerStyle(controlSize ControlSize, scrollerStyle ScrollerStyle) float64 { - rv := objc.Call[float64](sc, objc.Sel("scrollerWidthForControlSize:scrollerStyle:"), controlSize, scrollerStyle) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523625-checkspaceforparts?language=objc +func (s_ Scroller) CheckSpaceForParts() { + objc.Call[objc.Void](s_, objc.Sel("checkSpaceForParts")) } -// Returns the width for scrollers of the receiving class for a given control size and scroller style. [Full Topic] +// Tracks the knob and sends action messages to the receiver’s target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523603-scrollerwidthforcontrolsize?language=objc -func Scroller_ScrollerWidthForControlSizeScrollerStyle(controlSize ControlSize, scrollerStyle ScrollerStyle) float64 { - return ScrollerClass.ScrollerWidthForControlSizeScrollerStyle(controlSize, scrollerStyle) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523594-trackknob?language=objc +func (s_ Scroller) TrackKnob(event IEvent) { + objc.Call[objc.Void](s_, objc.Sel("trackKnob:"), event) } // The proportion of the knob slot that the knob should fill. [Full Topic] @@ -112,11 +103,12 @@ func (s_ Scroller) SetKnobProportion(proportion float64) { objc.Call[objc.Void](s_, objc.Sel("setKnobProportion:"), proportion) } -// Checks to see if there is enough room in the receiver to display the knob and buttons. [Full Topic] +// Returns the part that would be hit by a mouse-down event at aPoint (expressed in the window’s coordinate system). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523625-checkspaceforparts?language=objc -func (s_ Scroller) CheckSpaceForParts() { - objc.Call[objc.Void](s_, objc.Sel("checkSpaceForParts")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523645-testpart?language=objc +func (s_ Scroller) TestPart(point foundation.Point) ScrollerPart { + rv := objc.Call[ScrollerPart](s_, objc.Sel("testPart:"), point) + return rv } // Draws the knob. [Full Topic] @@ -126,13 +118,6 @@ func (s_ Scroller) DrawKnob() { objc.Call[objc.Void](s_, objc.Sel("drawKnob")) } -// Tracks the knob and sends action messages to the receiver’s target. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523594-trackknob?language=objc -func (s_ Scroller) TrackKnob(event IEvent) { - objc.Call[objc.Void](s_, objc.Sel("trackKnob:"), event) -} - // Draws the portion of the scroller’s track, possibly including the line increment and decrement arrow buttons, that falls in the given rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523622-drawknobslotinrect?language=objc @@ -148,22 +133,36 @@ func (s_ Scroller) RectForPart(partCode ScrollerPart) foundation.Rect { return rv } -// A part code indicating the manner in which the scrolling should be performed. [Full Topic] +// The scroller style for this scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523596-hitpart?language=objc -func (s_ Scroller) HitPart() ScrollerPart { - rv := objc.Call[ScrollerPart](s_, objc.Sel("hitPart")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523591-scrollerstyle?language=objc +func (s_ Scroller) ScrollerStyle() ScrollerStyle { + rv := objc.Call[ScrollerStyle](s_, objc.Sel("scrollerStyle")) return rv } -// The proportion of the knob slot that the knob should fill. [Full Topic] +// The scroller style for this scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523593-knobproportion?language=objc -func (s_ Scroller) KnobProportion() float64 { - rv := objc.Call[float64](s_, objc.Sel("knobProportion")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523591-scrollerstyle?language=objc +func (s_ Scroller) SetScrollerStyle(value ScrollerStyle) { + objc.Call[objc.Void](s_, objc.Sel("setScrollerStyle:"), value) +} + +// The scroller’s knob style. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523666-knobstyle?language=objc +func (s_ Scroller) KnobStyle() ScrollerKnobStyle { + rv := objc.Call[ScrollerKnobStyle](s_, objc.Sel("knobStyle")) return rv } +// The scroller’s knob style. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523666-knobstyle?language=objc +func (s_ Scroller) SetKnobStyle(value ScrollerKnobStyle) { + objc.Call[objc.Void](s_, objc.Sel("setKnobStyle:"), value) +} + // Returns the style of scrollers that applications should use wherever possible. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523620-preferredscrollerstyle?language=objc @@ -179,6 +178,14 @@ func Scroller_PreferredScrollerStyle() ScrollerStyle { return ScrollerClass.PreferredScrollerStyle() } +// A value that indicates which parts of the receiver are displayed and usable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523648-usableparts?language=objc +func (s_ Scroller) UsableParts() UsableScrollerParts { + rv := objc.Call[UsableScrollerParts](s_, objc.Sel("usableParts")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/2870071-compatiblewithoverlayscrollers?language=objc @@ -194,40 +201,18 @@ func Scroller_CompatibleWithOverlayScrollers() bool { return ScrollerClass.CompatibleWithOverlayScrollers() } -// The scroller’s knob style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523666-knobstyle?language=objc -func (s_ Scroller) KnobStyle() ScrollerKnobStyle { - rv := objc.Call[ScrollerKnobStyle](s_, objc.Sel("knobStyle")) - return rv -} - -// The scroller’s knob style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523666-knobstyle?language=objc -func (s_ Scroller) SetKnobStyle(value ScrollerKnobStyle) { - objc.Call[objc.Void](s_, objc.Sel("setKnobStyle:"), value) -} - -// A value that indicates which parts of the receiver are displayed and usable. [Full Topic] +// A part code indicating the manner in which the scrolling should be performed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523648-usableparts?language=objc -func (s_ Scroller) UsableParts() UsableScrollerParts { - rv := objc.Call[UsableScrollerParts](s_, objc.Sel("usableParts")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523596-hitpart?language=objc +func (s_ Scroller) HitPart() ScrollerPart { + rv := objc.Call[ScrollerPart](s_, objc.Sel("hitPart")) return rv } -// The scroller style for this scroller. [Full Topic] +// The proportion of the knob slot that the knob should fill. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523591-scrollerstyle?language=objc -func (s_ Scroller) ScrollerStyle() ScrollerStyle { - rv := objc.Call[ScrollerStyle](s_, objc.Sel("scrollerStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523593-knobproportion?language=objc +func (s_ Scroller) KnobProportion() float64 { + rv := objc.Call[float64](s_, objc.Sel("knobProportion")) return rv } - -// The scroller style for this scroller. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscroller/1523591-scrollerstyle?language=objc -func (s_ Scroller) SetScrollerStyle(value ScrollerStyle) { - objc.Call[objc.Void](s_, objc.Sel("setScrollerStyle:"), value) -} diff --git a/macos/appkit/scrubber.gen.go b/macos/appkit/scrubber.gen.go index 76250b87..7cac65f7 100644 --- a/macos/appkit/scrubber.gen.go +++ b/macos/appkit/scrubber.gen.go @@ -19,49 +19,49 @@ type _ScrubberClass struct { // An interface definition for the [Scrubber] class. type IScrubber interface { IView + RegisterNibForItemIdentifier(nib INib, itemIdentifier UserInterfaceItemIdentifier) + MakeItemWithIdentifierOwner(itemIdentifier UserInterfaceItemIdentifier, owner objc.IObject) ScrubberItemView + MoveItemAtIndexToIndex(oldIndex int, newIndex int) + RegisterClassForItemIdentifier(itemViewClass objc.IClass, itemIdentifier UserInterfaceItemIdentifier) + ScrollItemAtIndexToAlignment(index int, alignment ScrubberAlignment) ItemViewForItemAtIndex(index int) ScrubberItemView RemoveItemsAtIndexes(indexes foundation.IIndexSet) + InsertItemsAtIndexes(indexes foundation.IIndexSet) ReloadItemsAtIndexes(indexes foundation.IIndexSet) - ScrollItemAtIndexToAlignment(index int, alignment ScrubberAlignment) PerformSequentialBatchUpdates(updateBlock func()) - InsertItemsAtIndexes(indexes foundation.IIndexSet) - MoveItemAtIndexToIndex(oldIndex int, newIndex int) ReloadData() - RegisterClassForItemIdentifier(itemViewClass objc.IClass, itemIdentifier UserInterfaceItemIdentifier) - RegisterNibForItemIdentifier(nib INib, itemIdentifier UserInterfaceItemIdentifier) - MakeItemWithIdentifierOwner(itemIdentifier UserInterfaceItemIdentifier, owner objc.IObject) ScrubberItemView + DataSource() ScrubberDataSourceObject + SetDataSource(value PScrubberDataSource) + SetDataSourceObject(valueObject objc.IObject) + BackgroundView() View + SetBackgroundView(value IView) + IsContinuous() bool + SetContinuous(value bool) + HighlightedIndex() int + Delegate() ScrubberDelegateObject + SetDelegate(value PScrubberDelegate) + SetDelegateObject(valueObject objc.IObject) + BackgroundColor() Color + SetBackgroundColor(value IColor) + ShowsAdditionalContentIndicators() bool + SetShowsAdditionalContentIndicators(value bool) SelectionBackgroundStyle() ScrubberSelectionStyle SetSelectionBackgroundStyle(value IScrubberSelectionStyle) - FloatsSelectionViews() bool - SetFloatsSelectionViews(value bool) ScrubberLayout() ScrubberLayout SetScrubberLayout(value IScrubberLayout) - ShowsArrowButtons() bool - SetShowsArrowButtons(value bool) - Mode() ScrubberMode - SetMode(value ScrubberMode) - BackgroundColor() Color - SetBackgroundColor(value IColor) - HighlightedIndex() int - SelectedIndex() int - SetSelectedIndex(value int) NumberOfItems() int SelectionOverlayStyle() ScrubberSelectionStyle SetSelectionOverlayStyle(value IScrubberSelectionStyle) - Delegate() ScrubberDelegateObject - SetDelegate(value PScrubberDelegate) - SetDelegateObject(valueObject objc.IObject) - IsContinuous() bool - SetContinuous(value bool) - BackgroundView() View - SetBackgroundView(value IView) - ShowsAdditionalContentIndicators() bool - SetShowsAdditionalContentIndicators(value bool) + Mode() ScrubberMode + SetMode(value ScrubberMode) ItemAlignment() ScrubberAlignment SetItemAlignment(value ScrubberAlignment) - DataSource() ScrubberDataSourceObject - SetDataSource(value PScrubberDataSource) - SetDataSourceObject(valueObject objc.IObject) + FloatsSelectionViews() bool + SetFloatsSelectionViews(value bool) + SelectedIndex() int + SetSelectedIndex(value int) + ShowsArrowButtons() bool + SetShowsArrowButtons(value bool) } // A customizable item picker control for the Touch Bar. [Full Topic] @@ -111,26 +111,33 @@ func (s_ Scrubber) Init() Scrubber { return rv } -// Returns the view for the item at the specified index. [Full Topic] +// Registers a nib file for the scrubber to use when it creates new items in the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544862-itemviewforitematindex?language=objc -func (s_ Scrubber) ItemViewForItemAtIndex(index int) ScrubberItemView { - rv := objc.Call[ScrubberItemView](s_, objc.Sel("itemViewForItemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2646903-registernib?language=objc +func (s_ Scrubber) RegisterNibForItemIdentifier(nib INib, itemIdentifier UserInterfaceItemIdentifier) { + objc.Call[objc.Void](s_, objc.Sel("registerNib:forItemIdentifier:"), nib, itemIdentifier) +} + +// Creates or returns a reusable item object with the specified identifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544776-makeitemwithidentifier?language=objc +func (s_ Scrubber) MakeItemWithIdentifierOwner(itemIdentifier UserInterfaceItemIdentifier, owner objc.IObject) ScrubberItemView { + rv := objc.Call[ScrubberItemView](s_, objc.Sel("makeItemWithIdentifier:owner:"), itemIdentifier, owner) return rv } -// Removes the items at the specified indexes from the scrubber. [Full Topic] +// Moves an item from one index to another in the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544679-removeitemsatindexes?language=objc -func (s_ Scrubber) RemoveItemsAtIndexes(indexes foundation.IIndexSet) { - objc.Call[objc.Void](s_, objc.Sel("removeItemsAtIndexes:"), indexes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544864-moveitematindex?language=objc +func (s_ Scrubber) MoveItemAtIndexToIndex(oldIndex int, newIndex int) { + objc.Call[objc.Void](s_, objc.Sel("moveItemAtIndex:toIndex:"), oldIndex, newIndex) } -// Reloads the items at the specified indexes. [Full Topic] +// Registers a class for the scrubber to use when it creates new items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544874-reloaditemsatindexes?language=objc -func (s_ Scrubber) ReloadItemsAtIndexes(indexes foundation.IIndexSet) { - objc.Call[objc.Void](s_, objc.Sel("reloadItemsAtIndexes:"), indexes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544773-registerclass?language=objc +func (s_ Scrubber) RegisterClassForItemIdentifier(itemViewClass objc.IClass, itemIdentifier UserInterfaceItemIdentifier) { + objc.Call[objc.Void](s_, objc.Sel("registerClass:forItemIdentifier:"), itemViewClass, itemIdentifier) } // Scrolls an item to a specified alignment within the scrubber. [Full Topic] @@ -140,11 +147,19 @@ func (s_ Scrubber) ScrollItemAtIndexToAlignment(index int, alignment ScrubberAli objc.Call[objc.Void](s_, objc.Sel("scrollItemAtIndex:toAlignment:"), index, alignment) } -// Combines multiple scrubber content updates into a single action. [Full Topic] +// Returns the view for the item at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2646906-performsequentialbatchupdates?language=objc -func (s_ Scrubber) PerformSequentialBatchUpdates(updateBlock func()) { - objc.Call[objc.Void](s_, objc.Sel("performSequentialBatchUpdates:"), updateBlock) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544862-itemviewforitematindex?language=objc +func (s_ Scrubber) ItemViewForItemAtIndex(index int) ScrubberItemView { + rv := objc.Call[ScrubberItemView](s_, objc.Sel("itemViewForItemAtIndex:"), index) + return rv +} + +// Removes the items at the specified indexes from the scrubber. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544679-removeitemsatindexes?language=objc +func (s_ Scrubber) RemoveItemsAtIndexes(indexes foundation.IIndexSet) { + objc.Call[objc.Void](s_, objc.Sel("removeItemsAtIndexes:"), indexes) } // Inserts new items at the specified indexes into the scrubber. [Full Topic] @@ -154,11 +169,18 @@ func (s_ Scrubber) InsertItemsAtIndexes(indexes foundation.IIndexSet) { objc.Call[objc.Void](s_, objc.Sel("insertItemsAtIndexes:"), indexes) } -// Moves an item from one index to another in the scrubber. [Full Topic] +// Reloads the items at the specified indexes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544864-moveitematindex?language=objc -func (s_ Scrubber) MoveItemAtIndexToIndex(oldIndex int, newIndex int) { - objc.Call[objc.Void](s_, objc.Sel("moveItemAtIndex:toIndex:"), oldIndex, newIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544874-reloaditemsatindexes?language=objc +func (s_ Scrubber) ReloadItemsAtIndexes(indexes foundation.IIndexSet) { + objc.Call[objc.Void](s_, objc.Sel("reloadItemsAtIndexes:"), indexes) +} + +// Combines multiple scrubber content updates into a single action. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2646906-performsequentialbatchupdates?language=objc +func (s_ Scrubber) PerformSequentialBatchUpdates(updateBlock func()) { + objc.Call[objc.Void](s_, objc.Sel("performSequentialBatchUpdates:"), updateBlock) } // Reloads the content of the entire scrubber, and deselects the currently selected item. [Full Topic] @@ -168,101 +190,90 @@ func (s_ Scrubber) ReloadData() { objc.Call[objc.Void](s_, objc.Sel("reloadData")) } -// Registers a class for the scrubber to use when it creates new items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544773-registerclass?language=objc -func (s_ Scrubber) RegisterClassForItemIdentifier(itemViewClass objc.IClass, itemIdentifier UserInterfaceItemIdentifier) { - objc.Call[objc.Void](s_, objc.Sel("registerClass:forItemIdentifier:"), itemViewClass, itemIdentifier) -} - -// Registers a nib file for the scrubber to use when it creates new items in the scrubber. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2646903-registernib?language=objc -func (s_ Scrubber) RegisterNibForItemIdentifier(nib INib, itemIdentifier UserInterfaceItemIdentifier) { - objc.Call[objc.Void](s_, objc.Sel("registerNib:forItemIdentifier:"), nib, itemIdentifier) -} - -// Creates or returns a reusable item object with the specified identifier. [Full Topic] +// The object that provides the data for the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544776-makeitemwithidentifier?language=objc -func (s_ Scrubber) MakeItemWithIdentifierOwner(itemIdentifier UserInterfaceItemIdentifier, owner objc.IObject) ScrubberItemView { - rv := objc.Call[ScrubberItemView](s_, objc.Sel("makeItemWithIdentifier:owner:"), itemIdentifier, owner) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544804-datasource?language=objc +func (s_ Scrubber) DataSource() ScrubberDataSourceObject { + rv := objc.Call[ScrubberDataSourceObject](s_, objc.Sel("dataSource")) return rv } -// The style applied to the background of selected items. [Full Topic] +// The object that provides the data for the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2588270-selectionbackgroundstyle?language=objc -func (s_ Scrubber) SelectionBackgroundStyle() ScrubberSelectionStyle { - rv := objc.Call[ScrubberSelectionStyle](s_, objc.Sel("selectionBackgroundStyle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544804-datasource?language=objc +func (s_ Scrubber) SetDataSource(value PScrubberDataSource) { + po0 := objc.WrapAsProtocol("NSScrubberDataSource", value) + objc.SetAssociatedObject(s_, objc.AssociationKey("setDataSource"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](s_, objc.Sel("setDataSource:"), po0) } -// The style applied to the background of selected items. [Full Topic] +// The object that provides the data for the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2588270-selectionbackgroundstyle?language=objc -func (s_ Scrubber) SetSelectionBackgroundStyle(value IScrubberSelectionStyle) { - objc.Call[objc.Void](s_, objc.Sel("setSelectionBackgroundStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544804-datasource?language=objc +func (s_ Scrubber) SetDataSourceObject(valueObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("setDataSource:"), valueObject) } -// A Boolean value that determines the behavior of the item selection decorations as the scrubber's selection changes. [Full Topic] +// A view that is displayed behind the scrubber content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2646904-floatsselectionviews?language=objc -func (s_ Scrubber) FloatsSelectionViews() bool { - rv := objc.Call[bool](s_, objc.Sel("floatsSelectionViews")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544847-backgroundview?language=objc +func (s_ Scrubber) BackgroundView() View { + rv := objc.Call[View](s_, objc.Sel("backgroundView")) return rv } -// A Boolean value that determines the behavior of the item selection decorations as the scrubber's selection changes. [Full Topic] +// A view that is displayed behind the scrubber content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2646904-floatsselectionviews?language=objc -func (s_ Scrubber) SetFloatsSelectionViews(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setFloatsSelectionViews:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544847-backgroundview?language=objc +func (s_ Scrubber) SetBackgroundView(value IView) { + objc.Call[objc.Void](s_, objc.Sel("setBackgroundView:"), value) } -// An object used to describe the layout of items within the scrubber. [Full Topic] +// A Boolean value that, together with the mode property, determines scrubber interaction style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544850-scrubberlayout?language=objc -func (s_ Scrubber) ScrubberLayout() ScrubberLayout { - rv := objc.Call[ScrubberLayout](s_, objc.Sel("scrubberLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544694-continuous?language=objc +func (s_ Scrubber) IsContinuous() bool { + rv := objc.Call[bool](s_, objc.Sel("isContinuous")) return rv } -// An object used to describe the layout of items within the scrubber. [Full Topic] +// A Boolean value that, together with the mode property, determines scrubber interaction style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544850-scrubberlayout?language=objc -func (s_ Scrubber) SetScrubberLayout(value IScrubberLayout) { - objc.Call[objc.Void](s_, objc.Sel("setScrubberLayout:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544694-continuous?language=objc +func (s_ Scrubber) SetContinuous(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setContinuous:"), value) } -// A Boolean value that specifies whether arrow buttons should be displayed at the leading and trailing edges of the scrubber. [Full Topic] +// The index of the highlighted item in the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544865-showsarrowbuttons?language=objc -func (s_ Scrubber) ShowsArrowButtons() bool { - rv := objc.Call[bool](s_, objc.Sel("showsArrowButtons")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2588262-highlightedindex?language=objc +func (s_ Scrubber) HighlightedIndex() int { + rv := objc.Call[int](s_, objc.Sel("highlightedIndex")) return rv } -// A Boolean value that specifies whether arrow buttons should be displayed at the leading and trailing edges of the scrubber. [Full Topic] +// The object that acts as the delegate of the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544865-showsarrowbuttons?language=objc -func (s_ Scrubber) SetShowsArrowButtons(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setShowsArrowButtons:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544738-delegate?language=objc +func (s_ Scrubber) Delegate() ScrubberDelegateObject { + rv := objc.Call[ScrubberDelegateObject](s_, objc.Sel("delegate")) + return rv } -// A setting that determines whether interaction with the scrubber is fixed or free. [Full Topic] +// The object that acts as the delegate of the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544687-mode?language=objc -func (s_ Scrubber) Mode() ScrubberMode { - rv := objc.Call[ScrubberMode](s_, objc.Sel("mode")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544738-delegate?language=objc +func (s_ Scrubber) SetDelegate(value PScrubberDelegate) { + po0 := objc.WrapAsProtocol("NSScrubberDelegate", value) + objc.SetAssociatedObject(s_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), po0) } -// A setting that determines whether interaction with the scrubber is fixed or free. [Full Topic] +// The object that acts as the delegate of the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544687-mode?language=objc -func (s_ Scrubber) SetMode(value ScrubberMode) { - objc.Call[objc.Void](s_, objc.Sel("setMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544738-delegate?language=objc +func (s_ Scrubber) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), valueObject) } // The color displayed behind the scrubber content. [Full Topic] @@ -280,27 +291,49 @@ func (s_ Scrubber) SetBackgroundColor(value IColor) { objc.Call[objc.Void](s_, objc.Sel("setBackgroundColor:"), value) } -// The index of the highlighted item in the scrubber. [Full Topic] +// A Boolean value that specifies whether the scrubber should display the existence of additional items beyond the leading and trailing edges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2588262-highlightedindex?language=objc -func (s_ Scrubber) HighlightedIndex() int { - rv := objc.Call[int](s_, objc.Sel("highlightedIndex")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544827-showsadditionalcontentindicators?language=objc +func (s_ Scrubber) ShowsAdditionalContentIndicators() bool { + rv := objc.Call[bool](s_, objc.Sel("showsAdditionalContentIndicators")) return rv } -// The index of the selected item in the scrubber. [Full Topic] +// A Boolean value that specifies whether the scrubber should display the existence of additional items beyond the leading and trailing edges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2588260-selectedindex?language=objc -func (s_ Scrubber) SelectedIndex() int { - rv := objc.Call[int](s_, objc.Sel("selectedIndex")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544827-showsadditionalcontentindicators?language=objc +func (s_ Scrubber) SetShowsAdditionalContentIndicators(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setShowsAdditionalContentIndicators:"), value) +} + +// The style applied to the background of selected items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2588270-selectionbackgroundstyle?language=objc +func (s_ Scrubber) SelectionBackgroundStyle() ScrubberSelectionStyle { + rv := objc.Call[ScrubberSelectionStyle](s_, objc.Sel("selectionBackgroundStyle")) return rv } -// The index of the selected item in the scrubber. [Full Topic] +// The style applied to the background of selected items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2588260-selectedindex?language=objc -func (s_ Scrubber) SetSelectedIndex(value int) { - objc.Call[objc.Void](s_, objc.Sel("setSelectedIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2588270-selectionbackgroundstyle?language=objc +func (s_ Scrubber) SetSelectionBackgroundStyle(value IScrubberSelectionStyle) { + objc.Call[objc.Void](s_, objc.Sel("setSelectionBackgroundStyle:"), value) +} + +// An object used to describe the layout of items within the scrubber. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544850-scrubberlayout?language=objc +func (s_ Scrubber) ScrubberLayout() ScrubberLayout { + rv := objc.Call[ScrubberLayout](s_, objc.Sel("scrubberLayout")) + return rv +} + +// An object used to describe the layout of items within the scrubber. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544850-scrubberlayout?language=objc +func (s_ Scrubber) SetScrubberLayout(value IScrubberLayout) { + objc.Call[objc.Void](s_, objc.Sel("setScrubberLayout:"), value) } // The number of items represented by the scrubber. [Full Topic] @@ -326,110 +359,77 @@ func (s_ Scrubber) SetSelectionOverlayStyle(value IScrubberSelectionStyle) { objc.Call[objc.Void](s_, objc.Sel("setSelectionOverlayStyle:"), value) } -// The object that acts as the delegate of the scrubber. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544738-delegate?language=objc -func (s_ Scrubber) Delegate() ScrubberDelegateObject { - rv := objc.Call[ScrubberDelegateObject](s_, objc.Sel("delegate")) - return rv -} - -// The object that acts as the delegate of the scrubber. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544738-delegate?language=objc -func (s_ Scrubber) SetDelegate(value PScrubberDelegate) { - po0 := objc.WrapAsProtocol("NSScrubberDelegate", value) - objc.SetAssociatedObject(s_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), po0) -} - -// The object that acts as the delegate of the scrubber. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544738-delegate?language=objc -func (s_ Scrubber) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), valueObject) -} - -// A Boolean value that, together with the [appkit/nsscrubber/mode] property, determines scrubber interaction style. [Full Topic] +// A setting that determines whether interaction with the scrubber is fixed or free. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544694-continuous?language=objc -func (s_ Scrubber) IsContinuous() bool { - rv := objc.Call[bool](s_, objc.Sel("isContinuous")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544687-mode?language=objc +func (s_ Scrubber) Mode() ScrubberMode { + rv := objc.Call[ScrubberMode](s_, objc.Sel("mode")) return rv } -// A Boolean value that, together with the [appkit/nsscrubber/mode] property, determines scrubber interaction style. [Full Topic] +// A setting that determines whether interaction with the scrubber is fixed or free. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544694-continuous?language=objc -func (s_ Scrubber) SetContinuous(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setContinuous:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544687-mode?language=objc +func (s_ Scrubber) SetMode(value ScrubberMode) { + objc.Call[objc.Void](s_, objc.Sel("setMode:"), value) } -// A view that is displayed behind the scrubber content. [Full Topic] +// A setting that specifies the snapping behavior of items in the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544847-backgroundview?language=objc -func (s_ Scrubber) BackgroundView() View { - rv := objc.Call[View](s_, objc.Sel("backgroundView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544782-itemalignment?language=objc +func (s_ Scrubber) ItemAlignment() ScrubberAlignment { + rv := objc.Call[ScrubberAlignment](s_, objc.Sel("itemAlignment")) return rv } -// A view that is displayed behind the scrubber content. [Full Topic] +// A setting that specifies the snapping behavior of items in the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544847-backgroundview?language=objc -func (s_ Scrubber) SetBackgroundView(value IView) { - objc.Call[objc.Void](s_, objc.Sel("setBackgroundView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544782-itemalignment?language=objc +func (s_ Scrubber) SetItemAlignment(value ScrubberAlignment) { + objc.Call[objc.Void](s_, objc.Sel("setItemAlignment:"), value) } -// A Boolean value that specifies whether the scrubber should display the existence of additional items beyond the leading and trailing edges. [Full Topic] +// A Boolean value that determines the behavior of the item selection decorations as the scrubber's selection changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544827-showsadditionalcontentindicators?language=objc -func (s_ Scrubber) ShowsAdditionalContentIndicators() bool { - rv := objc.Call[bool](s_, objc.Sel("showsAdditionalContentIndicators")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2646904-floatsselectionviews?language=objc +func (s_ Scrubber) FloatsSelectionViews() bool { + rv := objc.Call[bool](s_, objc.Sel("floatsSelectionViews")) return rv } -// A Boolean value that specifies whether the scrubber should display the existence of additional items beyond the leading and trailing edges. [Full Topic] +// A Boolean value that determines the behavior of the item selection decorations as the scrubber's selection changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544827-showsadditionalcontentindicators?language=objc -func (s_ Scrubber) SetShowsAdditionalContentIndicators(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setShowsAdditionalContentIndicators:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2646904-floatsselectionviews?language=objc +func (s_ Scrubber) SetFloatsSelectionViews(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setFloatsSelectionViews:"), value) } -// A setting that specifies the snapping behavior of items in the scrubber. [Full Topic] +// The index of the selected item in the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544782-itemalignment?language=objc -func (s_ Scrubber) ItemAlignment() ScrubberAlignment { - rv := objc.Call[ScrubberAlignment](s_, objc.Sel("itemAlignment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2588260-selectedindex?language=objc +func (s_ Scrubber) SelectedIndex() int { + rv := objc.Call[int](s_, objc.Sel("selectedIndex")) return rv } -// A setting that specifies the snapping behavior of items in the scrubber. [Full Topic] +// The index of the selected item in the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544782-itemalignment?language=objc -func (s_ Scrubber) SetItemAlignment(value ScrubberAlignment) { - objc.Call[objc.Void](s_, objc.Sel("setItemAlignment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2588260-selectedindex?language=objc +func (s_ Scrubber) SetSelectedIndex(value int) { + objc.Call[objc.Void](s_, objc.Sel("setSelectedIndex:"), value) } -// The object that provides the data for the scrubber. [Full Topic] +// A Boolean value that specifies whether arrow buttons should be displayed at the leading and trailing edges of the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544804-datasource?language=objc -func (s_ Scrubber) DataSource() ScrubberDataSourceObject { - rv := objc.Call[ScrubberDataSourceObject](s_, objc.Sel("dataSource")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544865-showsarrowbuttons?language=objc +func (s_ Scrubber) ShowsArrowButtons() bool { + rv := objc.Call[bool](s_, objc.Sel("showsArrowButtons")) return rv } -// The object that provides the data for the scrubber. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544804-datasource?language=objc -func (s_ Scrubber) SetDataSource(value PScrubberDataSource) { - po0 := objc.WrapAsProtocol("NSScrubberDataSource", value) - objc.SetAssociatedObject(s_, objc.AssociationKey("setDataSource"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](s_, objc.Sel("setDataSource:"), po0) -} - -// The object that provides the data for the scrubber. [Full Topic] +// A Boolean value that specifies whether arrow buttons should be displayed at the leading and trailing edges of the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544804-datasource?language=objc -func (s_ Scrubber) SetDataSourceObject(valueObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setDataSource:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544865-showsarrowbuttons?language=objc +func (s_ Scrubber) SetShowsArrowButtons(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setShowsArrowButtons:"), value) } diff --git a/macos/appkit/scrubber_arranged_view.gen.go b/macos/appkit/scrubber_arranged_view.gen.go index 2ff6c084..8abf4cff 100644 --- a/macos/appkit/scrubber_arranged_view.gen.go +++ b/macos/appkit/scrubber_arranged_view.gen.go @@ -20,10 +20,10 @@ type _ScrubberArrangedViewClass struct { type IScrubberArrangedView interface { IView ApplyLayoutAttributes(layoutAttributes IScrubberLayoutAttributes) - IsSelected() bool - SetSelected(value bool) IsHighlighted() bool SetHighlighted(value bool) + IsSelected() bool + SetSelected(value bool) } // An abstract base class for the views whose layout is managed by a scrubber. [Full Topic] @@ -80,21 +80,6 @@ func (s_ ScrubberArrangedView) ApplyLayoutAttributes(layoutAttributes IScrubberL objc.Call[objc.Void](s_, objc.Sel("applyLayoutAttributes:"), layoutAttributes) } -// A Boolean value that specifies whether the current view is selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberarrangedview/2588256-selected?language=objc -func (s_ ScrubberArrangedView) IsSelected() bool { - rv := objc.Call[bool](s_, objc.Sel("isSelected")) - return rv -} - -// A Boolean value that specifies whether the current view is selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberarrangedview/2588256-selected?language=objc -func (s_ ScrubberArrangedView) SetSelected(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setSelected:"), value) -} - // A Boolean value that specifies whether the view is currently highlighted. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberarrangedview/2588255-highlighted?language=objc @@ -109,3 +94,18 @@ func (s_ ScrubberArrangedView) IsHighlighted() bool { func (s_ ScrubberArrangedView) SetHighlighted(value bool) { objc.Call[objc.Void](s_, objc.Sel("setHighlighted:"), value) } + +// A Boolean value that specifies whether the current view is selected. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberarrangedview/2588256-selected?language=objc +func (s_ ScrubberArrangedView) IsSelected() bool { + rv := objc.Call[bool](s_, objc.Sel("isSelected")) + return rv +} + +// A Boolean value that specifies whether the current view is selected. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberarrangedview/2588256-selected?language=objc +func (s_ ScrubberArrangedView) SetSelected(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setSelected:"), value) +} diff --git a/macos/appkit/scrubber_data_source_protocol.gen.go b/macos/appkit/scrubber_data_source_protocol.gen.go index 57ad4486..3aaf3a6a 100644 --- a/macos/appkit/scrubber_data_source_protocol.gen.go +++ b/macos/appkit/scrubber_data_source_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdatasource?language=objc type PScrubberDataSource interface { - // optional - NumberOfItemsForScrubber(scrubber Scrubber) int - HasNumberOfItemsForScrubber() bool - // optional ScrubberViewForItemAtIndex(scrubber Scrubber, index int) ScrubberItemView HasScrubberViewForItemAtIndex() bool + + // optional + NumberOfItemsForScrubber(scrubber Scrubber) int + HasNumberOfItemsForScrubber() bool } // ensure impl type implements protocol interface @@ -27,18 +27,6 @@ type ScrubberDataSourceObject struct { objc.Object } -func (s_ ScrubberDataSourceObject) HasNumberOfItemsForScrubber() bool { - return s_.RespondsToSelector(objc.Sel("numberOfItemsForScrubber:")) -} - -// Asks the data source for the number of items in the scrubber. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdatasource/2544845-numberofitemsforscrubber?language=objc -func (s_ ScrubberDataSourceObject) NumberOfItemsForScrubber(scrubber Scrubber) int { - rv := objc.Call[int](s_, objc.Sel("numberOfItemsForScrubber:"), scrubber) - return rv -} - func (s_ ScrubberDataSourceObject) HasScrubberViewForItemAtIndex() bool { return s_.RespondsToSelector(objc.Sel("scrubber:viewForItemAtIndex:")) } @@ -50,3 +38,15 @@ func (s_ ScrubberDataSourceObject) ScrubberViewForItemAtIndex(scrubber Scrubber, rv := objc.Call[ScrubberItemView](s_, objc.Sel("scrubber:viewForItemAtIndex:"), scrubber, index) return rv } + +func (s_ ScrubberDataSourceObject) HasNumberOfItemsForScrubber() bool { + return s_.RespondsToSelector(objc.Sel("numberOfItemsForScrubber:")) +} + +// Asks the data source for the number of items in the scrubber. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdatasource/2544845-numberofitemsforscrubber?language=objc +func (s_ ScrubberDataSourceObject) NumberOfItemsForScrubber(scrubber Scrubber) int { + rv := objc.Call[int](s_, objc.Sel("numberOfItemsForScrubber:"), scrubber) + return rv +} diff --git a/macos/appkit/scrubber_delegate.gen.go b/macos/appkit/scrubber_delegate.gen.go index a838446a..07837c4a 100644 --- a/macos/appkit/scrubber_delegate.gen.go +++ b/macos/appkit/scrubber_delegate.gen.go @@ -3,7 +3,6 @@ package appkit import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -12,73 +11,46 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate?language=objc type PScrubberDelegate interface { // optional - ScrubberDidHighlightItemAtIndex(scrubber Scrubber, highlightedIndex int) - HasScrubberDidHighlightItemAtIndex() bool - - // optional - DidBeginInteractingWithScrubber(scrubber Scrubber) - HasDidBeginInteractingWithScrubber() bool + DidFinishInteractingWithScrubber(scrubber Scrubber) + HasDidFinishInteractingWithScrubber() bool // optional ScrubberDidSelectItemAtIndex(scrubber Scrubber, selectedIndex int) HasScrubberDidSelectItemAtIndex() bool // optional - DidCancelInteractingWithScrubber(scrubber Scrubber) - HasDidCancelInteractingWithScrubber() bool - - // optional - ScrubberDidChangeVisibleRange(scrubber Scrubber, visibleRange foundation.Range) - HasScrubberDidChangeVisibleRange() bool + DidBeginInteractingWithScrubber(scrubber Scrubber) + HasDidBeginInteractingWithScrubber() bool // optional - DidFinishInteractingWithScrubber(scrubber Scrubber) - HasDidFinishInteractingWithScrubber() bool + DidCancelInteractingWithScrubber(scrubber Scrubber) + HasDidCancelInteractingWithScrubber() bool } // A delegate implementation builder for the [PScrubberDelegate] protocol. type ScrubberDelegate struct { - _ScrubberDidHighlightItemAtIndex func(scrubber Scrubber, highlightedIndex int) - _DidBeginInteractingWithScrubber func(scrubber Scrubber) + _DidFinishInteractingWithScrubber func(scrubber Scrubber) _ScrubberDidSelectItemAtIndex func(scrubber Scrubber, selectedIndex int) + _DidBeginInteractingWithScrubber func(scrubber Scrubber) _DidCancelInteractingWithScrubber func(scrubber Scrubber) - _ScrubberDidChangeVisibleRange func(scrubber Scrubber, visibleRange foundation.Range) - _DidFinishInteractingWithScrubber func(scrubber Scrubber) -} - -func (di *ScrubberDelegate) HasScrubberDidHighlightItemAtIndex() bool { - return di._ScrubberDidHighlightItemAtIndex != nil -} - -// Tells the delegate that the item at the specified index was highlighted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544788-scrubber?language=objc -func (di *ScrubberDelegate) SetScrubberDidHighlightItemAtIndex(f func(scrubber Scrubber, highlightedIndex int)) { - di._ScrubberDidHighlightItemAtIndex = f } -// Tells the delegate that the item at the specified index was highlighted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544788-scrubber?language=objc -func (di *ScrubberDelegate) ScrubberDidHighlightItemAtIndex(scrubber Scrubber, highlightedIndex int) { - di._ScrubberDidHighlightItemAtIndex(scrubber, highlightedIndex) -} -func (di *ScrubberDelegate) HasDidBeginInteractingWithScrubber() bool { - return di._DidBeginInteractingWithScrubber != nil +func (di *ScrubberDelegate) HasDidFinishInteractingWithScrubber() bool { + return di._DidFinishInteractingWithScrubber != nil } -// Tells the delegate that the user is panning or scrolling the scrubber. [Full Topic] +// Tells the delegate that a pan or scroll interaction with the scrubber has ended. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544657-didbegininteractingwithscrubber?language=objc -func (di *ScrubberDelegate) SetDidBeginInteractingWithScrubber(f func(scrubber Scrubber)) { - di._DidBeginInteractingWithScrubber = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544653-didfinishinteractingwithscrubber?language=objc +func (di *ScrubberDelegate) SetDidFinishInteractingWithScrubber(f func(scrubber Scrubber)) { + di._DidFinishInteractingWithScrubber = f } -// Tells the delegate that the user is panning or scrolling the scrubber. [Full Topic] +// Tells the delegate that a pan or scroll interaction with the scrubber has ended. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544657-didbegininteractingwithscrubber?language=objc -func (di *ScrubberDelegate) DidBeginInteractingWithScrubber(scrubber Scrubber) { - di._DidBeginInteractingWithScrubber(scrubber) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544653-didfinishinteractingwithscrubber?language=objc +func (di *ScrubberDelegate) DidFinishInteractingWithScrubber(scrubber Scrubber) { + di._DidFinishInteractingWithScrubber(scrubber) } func (di *ScrubberDelegate) HasScrubberDidSelectItemAtIndex() bool { return di._ScrubberDidSelectItemAtIndex != nil @@ -97,6 +69,23 @@ func (di *ScrubberDelegate) SetScrubberDidSelectItemAtIndex(f func(scrubber Scru func (di *ScrubberDelegate) ScrubberDidSelectItemAtIndex(scrubber Scrubber, selectedIndex int) { di._ScrubberDidSelectItemAtIndex(scrubber, selectedIndex) } +func (di *ScrubberDelegate) HasDidBeginInteractingWithScrubber() bool { + return di._DidBeginInteractingWithScrubber != nil +} + +// Tells the delegate that the user is panning or scrolling the scrubber. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544657-didbegininteractingwithscrubber?language=objc +func (di *ScrubberDelegate) SetDidBeginInteractingWithScrubber(f func(scrubber Scrubber)) { + di._DidBeginInteractingWithScrubber = f +} + +// Tells the delegate that the user is panning or scrolling the scrubber. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544657-didbegininteractingwithscrubber?language=objc +func (di *ScrubberDelegate) DidBeginInteractingWithScrubber(scrubber Scrubber) { + di._DidBeginInteractingWithScrubber(scrubber) +} func (di *ScrubberDelegate) HasDidCancelInteractingWithScrubber() bool { return di._DidCancelInteractingWithScrubber != nil } @@ -114,58 +103,35 @@ func (di *ScrubberDelegate) SetDidCancelInteractingWithScrubber(f func(scrubber func (di *ScrubberDelegate) DidCancelInteractingWithScrubber(scrubber Scrubber) { di._DidCancelInteractingWithScrubber(scrubber) } -func (di *ScrubberDelegate) HasScrubberDidChangeVisibleRange() bool { - return di._ScrubberDidChangeVisibleRange != nil -} -// Tells the delegate that the range of items currently visible in the scrubber has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544817-scrubber?language=objc -func (di *ScrubberDelegate) SetScrubberDidChangeVisibleRange(f func(scrubber Scrubber, visibleRange foundation.Range)) { - di._ScrubberDidChangeVisibleRange = f -} +// ensure impl type implements protocol interface +var _ PScrubberDelegate = (*ScrubberDelegateObject)(nil) -// Tells the delegate that the range of items currently visible in the scrubber has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544817-scrubber?language=objc -func (di *ScrubberDelegate) ScrubberDidChangeVisibleRange(scrubber Scrubber, visibleRange foundation.Range) { - di._ScrubberDidChangeVisibleRange(scrubber, visibleRange) -} -func (di *ScrubberDelegate) HasDidFinishInteractingWithScrubber() bool { - return di._DidFinishInteractingWithScrubber != nil +// A concrete type for the [PScrubberDelegate] protocol. +type ScrubberDelegateObject struct { + objc.Object } -// Tells the delegate that a pan or scroll interaction with the scrubber has ended. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544653-didfinishinteractingwithscrubber?language=objc -func (di *ScrubberDelegate) SetDidFinishInteractingWithScrubber(f func(scrubber Scrubber)) { - di._DidFinishInteractingWithScrubber = f +func (s_ ScrubberDelegateObject) HasDidFinishInteractingWithScrubber() bool { + return s_.RespondsToSelector(objc.Sel("didFinishInteractingWithScrubber:")) } // Tells the delegate that a pan or scroll interaction with the scrubber has ended. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544653-didfinishinteractingwithscrubber?language=objc -func (di *ScrubberDelegate) DidFinishInteractingWithScrubber(scrubber Scrubber) { - di._DidFinishInteractingWithScrubber(scrubber) -} - -// ensure impl type implements protocol interface -var _ PScrubberDelegate = (*ScrubberDelegateObject)(nil) - -// A concrete type for the [PScrubberDelegate] protocol. -type ScrubberDelegateObject struct { - objc.Object +func (s_ ScrubberDelegateObject) DidFinishInteractingWithScrubber(scrubber Scrubber) { + objc.Call[objc.Void](s_, objc.Sel("didFinishInteractingWithScrubber:"), scrubber) } -func (s_ ScrubberDelegateObject) HasScrubberDidHighlightItemAtIndex() bool { - return s_.RespondsToSelector(objc.Sel("scrubber:didHighlightItemAtIndex:")) +func (s_ ScrubberDelegateObject) HasScrubberDidSelectItemAtIndex() bool { + return s_.RespondsToSelector(objc.Sel("scrubber:didSelectItemAtIndex:")) } -// Tells the delegate that the item at the specified index was highlighted. [Full Topic] +// Tells the delegate that the item at the specified index was selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544788-scrubber?language=objc -func (s_ ScrubberDelegateObject) ScrubberDidHighlightItemAtIndex(scrubber Scrubber, highlightedIndex int) { - objc.Call[objc.Void](s_, objc.Sel("scrubber:didHighlightItemAtIndex:"), scrubber, highlightedIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544714-scrubber?language=objc +func (s_ ScrubberDelegateObject) ScrubberDidSelectItemAtIndex(scrubber Scrubber, selectedIndex int) { + objc.Call[objc.Void](s_, objc.Sel("scrubber:didSelectItemAtIndex:"), scrubber, selectedIndex) } func (s_ ScrubberDelegateObject) HasDidBeginInteractingWithScrubber() bool { @@ -179,17 +145,6 @@ func (s_ ScrubberDelegateObject) DidBeginInteractingWithScrubber(scrubber Scrubb objc.Call[objc.Void](s_, objc.Sel("didBeginInteractingWithScrubber:"), scrubber) } -func (s_ ScrubberDelegateObject) HasScrubberDidSelectItemAtIndex() bool { - return s_.RespondsToSelector(objc.Sel("scrubber:didSelectItemAtIndex:")) -} - -// Tells the delegate that the item at the specified index was selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544714-scrubber?language=objc -func (s_ ScrubberDelegateObject) ScrubberDidSelectItemAtIndex(scrubber Scrubber, selectedIndex int) { - objc.Call[objc.Void](s_, objc.Sel("scrubber:didSelectItemAtIndex:"), scrubber, selectedIndex) -} - func (s_ ScrubberDelegateObject) HasDidCancelInteractingWithScrubber() bool { return s_.RespondsToSelector(objc.Sel("didCancelInteractingWithScrubber:")) } @@ -200,25 +155,3 @@ func (s_ ScrubberDelegateObject) HasDidCancelInteractingWithScrubber() bool { func (s_ ScrubberDelegateObject) DidCancelInteractingWithScrubber(scrubber Scrubber) { objc.Call[objc.Void](s_, objc.Sel("didCancelInteractingWithScrubber:"), scrubber) } - -func (s_ ScrubberDelegateObject) HasScrubberDidChangeVisibleRange() bool { - return s_.RespondsToSelector(objc.Sel("scrubber:didChangeVisibleRange:")) -} - -// Tells the delegate that the range of items currently visible in the scrubber has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544817-scrubber?language=objc -func (s_ ScrubberDelegateObject) ScrubberDidChangeVisibleRange(scrubber Scrubber, visibleRange foundation.Range) { - objc.Call[objc.Void](s_, objc.Sel("scrubber:didChangeVisibleRange:"), scrubber, visibleRange) -} - -func (s_ ScrubberDelegateObject) HasDidFinishInteractingWithScrubber() bool { - return s_.RespondsToSelector(objc.Sel("didFinishInteractingWithScrubber:")) -} - -// Tells the delegate that a pan or scroll interaction with the scrubber has ended. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544653-didfinishinteractingwithscrubber?language=objc -func (s_ ScrubberDelegateObject) DidFinishInteractingWithScrubber(scrubber Scrubber) { - objc.Call[objc.Void](s_, objc.Sel("didFinishInteractingWithScrubber:"), scrubber) -} diff --git a/macos/appkit/scrubber_layout.gen.go b/macos/appkit/scrubber_layout.gen.go index a193d2cc..4ce42b56 100644 --- a/macos/appkit/scrubber_layout.gen.go +++ b/macos/appkit/scrubber_layout.gen.go @@ -19,17 +19,17 @@ type _ScrubberLayoutClass struct { // An interface definition for the [ScrubberLayout] class. type IScrubberLayout interface { objc.IObject - ShouldInvalidateLayoutForChangeFromVisibleRectToVisibleRect(fromVisibleRect foundation.Rect, toVisibleRect foundation.Rect) bool + LayoutAttributesForItemsInRect(rect foundation.Rect) foundation.Set PrepareLayout() - LayoutAttributesForItemAtIndex(index int) ScrubberLayoutAttributes InvalidateLayout() - LayoutAttributesForItemsInRect(rect foundation.Rect) foundation.Set - AutomaticallyMirrorsInRightToLeftLayout() bool - Scrubber() Scrubber - ShouldInvalidateLayoutForSelectionChange() bool - ShouldInvalidateLayoutForHighlightChange() bool + LayoutAttributesForItemAtIndex(index int) ScrubberLayoutAttributes + ShouldInvalidateLayoutForChangeFromVisibleRectToVisibleRect(fromVisibleRect foundation.Rect, toVisibleRect foundation.Rect) bool VisibleRect() foundation.Rect + ShouldInvalidateLayoutForSelectionChange() bool ScrubberContentSize() foundation.Size + Scrubber() Scrubber + AutomaticallyMirrorsInRightToLeftLayout() bool + ShouldInvalidateLayoutForHighlightChange() bool } // An abstract class that describes the layout of items within a scrubber control. [Full Topic] @@ -65,11 +65,11 @@ func NewScrubberLayout() ScrubberLayout { return ScrubberLayoutClass.New() } -// Determines whether the scrubber should refresh its layout in response to a change of its visible region. [Full Topic] +// The set of layout attributes for all items within the provided rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544633-shouldinvalidatelayoutforchangef?language=objc -func (s_ ScrubberLayout) ShouldInvalidateLayoutForChangeFromVisibleRectToVisibleRect(fromVisibleRect foundation.Rect, toVisibleRect foundation.Rect) bool { - rv := objc.Call[bool](s_, objc.Sel("shouldInvalidateLayoutForChangeFromVisibleRect:toVisibleRect:"), fromVisibleRect, toVisibleRect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544636-layoutattributesforitemsinrect?language=objc +func (s_ ScrubberLayout) LayoutAttributesForItemsInRect(rect foundation.Rect) foundation.Set { + rv := objc.Call[foundation.Set](s_, objc.Sel("layoutAttributesForItemsInRect:"), rect) return rv } @@ -80,14 +80,6 @@ func (s_ ScrubberLayout) PrepareLayout() { objc.Call[objc.Void](s_, objc.Sel("prepareLayout")) } -// The layout attributes for the item with the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544650-layoutattributesforitematindex?language=objc -func (s_ ScrubberLayout) LayoutAttributesForItemAtIndex(index int) ScrubberLayoutAttributes { - rv := objc.Call[ScrubberLayoutAttributes](s_, objc.Sel("layoutAttributesForItemAtIndex:"), index) - return rv -} - // Signals that the layout has been invalidated, and that the scrubber control should perform a new layout pass. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544626-invalidatelayout?language=objc @@ -95,27 +87,19 @@ func (s_ ScrubberLayout) InvalidateLayout() { objc.Call[objc.Void](s_, objc.Sel("invalidateLayout")) } -// The set of layout attributes for all items within the provided rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544636-layoutattributesforitemsinrect?language=objc -func (s_ ScrubberLayout) LayoutAttributesForItemsInRect(rect foundation.Rect) foundation.Set { - rv := objc.Call[foundation.Set](s_, objc.Sel("layoutAttributesForItemsInRect:"), rect) - return rv -} - -// Determines whether the scrubber mirrors its layout for right-to-left layouts. [Full Topic] +// The layout attributes for the item with the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2646926-automaticallymirrorsinrighttolef?language=objc -func (s_ ScrubberLayout) AutomaticallyMirrorsInRightToLeftLayout() bool { - rv := objc.Call[bool](s_, objc.Sel("automaticallyMirrorsInRightToLeftLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544650-layoutattributesforitematindex?language=objc +func (s_ ScrubberLayout) LayoutAttributesForItemAtIndex(index int) ScrubberLayoutAttributes { + rv := objc.Call[ScrubberLayoutAttributes](s_, objc.Sel("layoutAttributesForItemAtIndex:"), index) return rv } -// The scrubber control that this layout is assigned to. [Full Topic] +// Determines whether the scrubber should refresh its layout in response to a change of its visible region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544638-scrubber?language=objc -func (s_ ScrubberLayout) Scrubber() Scrubber { - rv := objc.Call[Scrubber](s_, objc.Sel("scrubber")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544633-shouldinvalidatelayoutforchangef?language=objc +func (s_ ScrubberLayout) ShouldInvalidateLayoutForChangeFromVisibleRectToVisibleRect(fromVisibleRect foundation.Rect, toVisibleRect foundation.Rect) bool { + rv := objc.Call[bool](s_, objc.Sel("shouldInvalidateLayoutForChangeFromVisibleRect:toVisibleRect:"), fromVisibleRect, toVisibleRect) return rv } @@ -134,6 +118,14 @@ func ScrubberLayout_LayoutAttributesClass() objc.Class { return ScrubberLayoutClass.LayoutAttributesClass() } +// The currently visible rectangle, in the coordinate space of the scrubber content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544637-visiblerect?language=objc +func (s_ ScrubberLayout) VisibleRect() foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("visibleRect")) + return rv +} + // Determines whether the scrubber should refresh its layout when the selection changes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544631-shouldinvalidatelayoutforselecti?language=objc @@ -142,26 +134,34 @@ func (s_ ScrubberLayout) ShouldInvalidateLayoutForSelectionChange() bool { return rv } -// Determines whether the scrubber should refresh its layout when an item is highlighted. [Full Topic] +// The size required to contain all elements within the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544639-shouldinvalidatelayoutforhighlig?language=objc -func (s_ ScrubberLayout) ShouldInvalidateLayoutForHighlightChange() bool { - rv := objc.Call[bool](s_, objc.Sel("shouldInvalidateLayoutForHighlightChange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544644-scrubbercontentsize?language=objc +func (s_ ScrubberLayout) ScrubberContentSize() foundation.Size { + rv := objc.Call[foundation.Size](s_, objc.Sel("scrubberContentSize")) return rv } -// The currently visible rectangle, in the coordinate space of the scrubber content. [Full Topic] +// The scrubber control that this layout is assigned to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544637-visiblerect?language=objc -func (s_ ScrubberLayout) VisibleRect() foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("visibleRect")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544638-scrubber?language=objc +func (s_ ScrubberLayout) Scrubber() Scrubber { + rv := objc.Call[Scrubber](s_, objc.Sel("scrubber")) return rv } -// The size required to contain all elements within the scrubber. [Full Topic] +// Determines whether the scrubber mirrors its layout for right-to-left layouts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544644-scrubbercontentsize?language=objc -func (s_ ScrubberLayout) ScrubberContentSize() foundation.Size { - rv := objc.Call[foundation.Size](s_, objc.Sel("scrubberContentSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2646926-automaticallymirrorsinrighttolef?language=objc +func (s_ ScrubberLayout) AutomaticallyMirrorsInRightToLeftLayout() bool { + rv := objc.Call[bool](s_, objc.Sel("automaticallyMirrorsInRightToLeftLayout")) + return rv +} + +// Determines whether the scrubber should refresh its layout when an item is highlighted. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayout/2544639-shouldinvalidatelayoutforhighlig?language=objc +func (s_ ScrubberLayout) ShouldInvalidateLayoutForHighlightChange() bool { + rv := objc.Call[bool](s_, objc.Sel("shouldInvalidateLayoutForHighlightChange")) return rv } diff --git a/macos/appkit/scrubber_layout_attributes.gen.go b/macos/appkit/scrubber_layout_attributes.gen.go index 54790c79..2840915a 100644 --- a/macos/appkit/scrubber_layout_attributes.gen.go +++ b/macos/appkit/scrubber_layout_attributes.gen.go @@ -19,12 +19,12 @@ type _ScrubberLayoutAttributesClass struct { // An interface definition for the [ScrubberLayoutAttributes] class. type IScrubberLayoutAttributes interface { objc.IObject + Alpha() float64 + SetAlpha(value float64) Frame() foundation.Rect SetFrame(value foundation.Rect) ItemIndex() int SetItemIndex(value int) - Alpha() float64 - SetAlpha(value float64) } // The layout of a scrubber item. [Full Topic] @@ -72,6 +72,21 @@ func (s_ ScrubberLayoutAttributes) Init() ScrubberLayoutAttributes { return rv } +// The item's alpha value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayoutattributes/2544648-alpha?language=objc +func (s_ ScrubberLayoutAttributes) Alpha() float64 { + rv := objc.Call[float64](s_, objc.Sel("alpha")) + return rv +} + +// The item's alpha value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayoutattributes/2544648-alpha?language=objc +func (s_ ScrubberLayoutAttributes) SetAlpha(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setAlpha:"), value) +} + // The frame of the scrubber item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayoutattributes/2544623-frame?language=objc @@ -101,18 +116,3 @@ func (s_ ScrubberLayoutAttributes) ItemIndex() int { func (s_ ScrubberLayoutAttributes) SetItemIndex(value int) { objc.Call[objc.Void](s_, objc.Sel("setItemIndex:"), value) } - -// The item's alpha value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayoutattributes/2544648-alpha?language=objc -func (s_ ScrubberLayoutAttributes) Alpha() float64 { - rv := objc.Call[float64](s_, objc.Sel("alpha")) - return rv -} - -// The item's alpha value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberlayoutattributes/2544648-alpha?language=objc -func (s_ ScrubberLayoutAttributes) SetAlpha(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setAlpha:"), value) -} diff --git a/macos/appkit/scrubber_selection_style.gen.go b/macos/appkit/scrubber_selection_style.gen.go index ea8cb7be..c79b1431 100644 --- a/macos/appkit/scrubber_selection_style.gen.go +++ b/macos/appkit/scrubber_selection_style.gen.go @@ -62,21 +62,6 @@ func (s_ ScrubberSelectionStyle) MakeSelectionView() ScrubberSelectionView { return rv } -// A built-in selection style that draws the outline of the scrubber item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberselectionstyle/2588266-outlineoverlaystyle?language=objc -func (sc _ScrubberSelectionStyleClass) OutlineOverlayStyle() ScrubberSelectionStyle { - rv := objc.Call[ScrubberSelectionStyle](sc, objc.Sel("outlineOverlayStyle")) - return rv -} - -// A built-in selection style that draws the outline of the scrubber item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberselectionstyle/2588266-outlineoverlaystyle?language=objc -func ScrubberSelectionStyle_OutlineOverlayStyle() ScrubberSelectionStyle { - return ScrubberSelectionStyleClass.OutlineOverlayStyle() -} - // A built-in selection style that draws a rounded rectangle as the background of the scrubber item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberselectionstyle/2588261-roundedbackgroundstyle?language=objc @@ -91,3 +76,18 @@ func (sc _ScrubberSelectionStyleClass) RoundedBackgroundStyle() ScrubberSelectio func ScrubberSelectionStyle_RoundedBackgroundStyle() ScrubberSelectionStyle { return ScrubberSelectionStyleClass.RoundedBackgroundStyle() } + +// A built-in selection style that draws the outline of the scrubber item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberselectionstyle/2588266-outlineoverlaystyle?language=objc +func (sc _ScrubberSelectionStyleClass) OutlineOverlayStyle() ScrubberSelectionStyle { + rv := objc.Call[ScrubberSelectionStyle](sc, objc.Sel("outlineOverlayStyle")) + return rv +} + +// A built-in selection style that draws the outline of the scrubber item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberselectionstyle/2588266-outlineoverlaystyle?language=objc +func ScrubberSelectionStyle_OutlineOverlayStyle() ScrubberSelectionStyle { + return ScrubberSelectionStyleClass.OutlineOverlayStyle() +} diff --git a/macos/appkit/search_field.gen.go b/macos/appkit/search_field.gen.go index 2ddad334..a7a0496b 100644 --- a/macos/appkit/search_field.gen.go +++ b/macos/appkit/search_field.gen.go @@ -19,21 +19,21 @@ type _SearchFieldClass struct { // An interface definition for the [SearchField] class. type ISearchField interface { ITextField - SendsWholeSearchString() bool - SetSendsWholeSearchString(value bool) - CancelButtonBounds() foundation.Rect - RecentSearches() []string - SetRecentSearches(value []string) + RecentsAutosaveName() SearchFieldRecentsAutosaveName + SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) MaximumRecents() int SetMaximumRecents(value int) - SearchButtonBounds() foundation.Rect - SearchTextBounds() foundation.Rect + CancelButtonBounds() foundation.Rect + SendsWholeSearchString() bool + SetSendsWholeSearchString(value bool) SearchMenuTemplate() Menu SetSearchMenuTemplate(value IMenu) - RecentsAutosaveName() SearchFieldRecentsAutosaveName - SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) SendsSearchStringImmediately() bool SetSendsSearchStringImmediately(value bool) + RecentSearches() []string + SetRecentSearches(value []string) + SearchTextBounds() foundation.Rect + SearchButtonBounds() foundation.Rect } // A text field optimized for performing text-based searches. [Full Topic] @@ -69,18 +69,6 @@ func (s_ SearchField) Init() SearchField { return rv } -func (sc _SearchFieldClass) LabelWithString(stringValue string) SearchField { - rv := objc.Call[SearchField](sc, objc.Sel("labelWithString:"), stringValue) - return rv -} - -// Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc -func SearchField_LabelWithString(stringValue string) SearchField { - return SearchFieldClass.LabelWithString(stringValue) -} - func (sc _SearchFieldClass) LabelWithAttributedString(attributedStringValue foundation.IAttributedString) SearchField { rv := objc.Call[SearchField](sc, objc.Sel("labelWithAttributedString:"), attributedStringValue) return rv @@ -93,6 +81,18 @@ func SearchField_LabelWithAttributedString(attributedStringValue foundation.IAtt return SearchFieldClass.LabelWithAttributedString(attributedStringValue) } +func (sc _SearchFieldClass) LabelWithString(stringValue string) SearchField { + rv := objc.Call[SearchField](sc, objc.Sel("labelWithString:"), stringValue) + return rv +} + +// Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc +func SearchField_LabelWithString(stringValue string) SearchField { + return SearchFieldClass.LabelWithString(stringValue) +} + func (sc _SearchFieldClass) WrappingLabelWithString(stringValue string) SearchField { rv := objc.Call[SearchField](sc, objc.Sel("wrappingLabelWithString:"), stringValue) return rv @@ -131,42 +131,19 @@ func NewSearchFieldWithFrame(frameRect foundation.Rect) SearchField { return instance } -// A Boolean value indicating whether the cell calls its search action method when the user clicks the search button or presses Return, or after each keystroke. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1533976-sendswholesearchstring?language=objc -func (s_ SearchField) SendsWholeSearchString() bool { - rv := objc.Call[bool](s_, objc.Sel("sendsWholeSearchString")) - return rv -} - -// A Boolean value indicating whether the cell calls its search action method when the user clicks the search button or presses Return, or after each keystroke. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1533976-sendswholesearchstring?language=objc -func (s_ SearchField) SetSendsWholeSearchString(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setSendsWholeSearchString:"), value) -} - -// The rectangle for the cancel button within the bounds of the search field. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/3634323-cancelbuttonbounds?language=objc -func (s_ SearchField) CancelButtonBounds() foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("cancelButtonBounds")) - return rv -} - -// The list of recent search strings for the control. [Full Topic] +// The name under which the search field automatically archives the list of recent search strings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1531413-recentsearches?language=objc -func (s_ SearchField) RecentSearches() []string { - rv := objc.Call[[]string](s_, objc.Sel("recentSearches")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1530035-recentsautosavename?language=objc +func (s_ SearchField) RecentsAutosaveName() SearchFieldRecentsAutosaveName { + rv := objc.Call[SearchFieldRecentsAutosaveName](s_, objc.Sel("recentsAutosaveName")) return rv } -// The list of recent search strings for the control. [Full Topic] +// The name under which the search field automatically archives the list of recent search strings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1531413-recentsearches?language=objc -func (s_ SearchField) SetRecentSearches(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setRecentSearches:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1530035-recentsautosavename?language=objc +func (s_ SearchField) SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) { + objc.Call[objc.Void](s_, objc.Sel("setRecentsAutosaveName:"), value) } // The maximum number of search strings that can appear in the search menu. [Full Topic] @@ -184,22 +161,29 @@ func (s_ SearchField) SetMaximumRecents(value int) { objc.Call[objc.Void](s_, objc.Sel("setMaximumRecents:"), value) } -// The rectangle for the search button within the bounds of the search field. [Full Topic] +// The rectangle for the cancel button within the bounds of the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/3634324-searchbuttonbounds?language=objc -func (s_ SearchField) SearchButtonBounds() foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("searchButtonBounds")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/3634323-cancelbuttonbounds?language=objc +func (s_ SearchField) CancelButtonBounds() foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("cancelButtonBounds")) return rv } -// The rectangle for the search text within the bounds of the search field. [Full Topic] +// A Boolean value indicating whether the cell calls its search action method when the user clicks the search button or presses Return, or after each keystroke. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/3634325-searchtextbounds?language=objc -func (s_ SearchField) SearchTextBounds() foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("searchTextBounds")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1533976-sendswholesearchstring?language=objc +func (s_ SearchField) SendsWholeSearchString() bool { + rv := objc.Call[bool](s_, objc.Sel("sendsWholeSearchString")) return rv } +// A Boolean value indicating whether the cell calls its search action method when the user clicks the search button or presses Return, or after each keystroke. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1533976-sendswholesearchstring?language=objc +func (s_ SearchField) SetSendsWholeSearchString(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setSendsWholeSearchString:"), value) +} + // The menu object used to dynamically construct the search field’s pop-up icon menu. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1529467-searchmenutemplate?language=objc @@ -215,21 +199,6 @@ func (s_ SearchField) SetSearchMenuTemplate(value IMenu) { objc.Call[objc.Void](s_, objc.Sel("setSearchMenuTemplate:"), value) } -// The name under which the search field automatically archives the list of recent search strings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1530035-recentsautosavename?language=objc -func (s_ SearchField) RecentsAutosaveName() SearchFieldRecentsAutosaveName { - rv := objc.Call[SearchFieldRecentsAutosaveName](s_, objc.Sel("recentsAutosaveName")) - return rv -} - -// The name under which the search field automatically archives the list of recent search strings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1530035-recentsautosavename?language=objc -func (s_ SearchField) SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) { - objc.Call[objc.Void](s_, objc.Sel("setRecentsAutosaveName:"), value) -} - // A Boolean value indicating whether the cell calls its action method immediately when an appropriate action occurs. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1529081-sendssearchstringimmediately?language=objc @@ -244,3 +213,34 @@ func (s_ SearchField) SendsSearchStringImmediately() bool { func (s_ SearchField) SetSendsSearchStringImmediately(value bool) { objc.Call[objc.Void](s_, objc.Sel("setSendsSearchStringImmediately:"), value) } + +// The list of recent search strings for the control. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1531413-recentsearches?language=objc +func (s_ SearchField) RecentSearches() []string { + rv := objc.Call[[]string](s_, objc.Sel("recentSearches")) + return rv +} + +// The list of recent search strings for the control. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/1531413-recentsearches?language=objc +func (s_ SearchField) SetRecentSearches(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setRecentSearches:"), value) +} + +// The rectangle for the search text within the bounds of the search field. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/3634325-searchtextbounds?language=objc +func (s_ SearchField) SearchTextBounds() foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("searchTextBounds")) + return rv +} + +// The rectangle for the search button within the bounds of the search field. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfield/3634324-searchbuttonbounds?language=objc +func (s_ SearchField) SearchButtonBounds() foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("searchButtonBounds")) + return rv +} diff --git a/macos/appkit/search_field_cell.gen.go b/macos/appkit/search_field_cell.gen.go index 64f0c4ee..5b2d60fd 100644 --- a/macos/appkit/search_field_cell.gen.go +++ b/macos/appkit/search_field_cell.gen.go @@ -19,27 +19,27 @@ type _SearchFieldCellClass struct { // An interface definition for the [SearchFieldCell] class. type ISearchFieldCell interface { ITextFieldCell - ResetCancelButtonCell() + SearchTextRectForBounds(rect foundation.Rect) foundation.Rect + SearchButtonRectForBounds(rect foundation.Rect) foundation.Rect ResetSearchButtonCell() CancelButtonRectForBounds(rect foundation.Rect) foundation.Rect - SearchButtonRectForBounds(rect foundation.Rect) foundation.Rect - SearchTextRectForBounds(rect foundation.Rect) foundation.Rect - SendsWholeSearchString() bool - SetSendsWholeSearchString(value bool) + ResetCancelButtonCell() + RecentsAutosaveName() SearchFieldRecentsAutosaveName + SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) + MaximumRecents() int + SetMaximumRecents(value int) SearchButtonCell() ButtonCell SetSearchButtonCell(value IButtonCell) - SendsSearchStringImmediately() bool - SetSendsSearchStringImmediately(value bool) - RecentSearches() []string - SetRecentSearches(value []string) + SendsWholeSearchString() bool + SetSendsWholeSearchString(value bool) SearchMenuTemplate() Menu SetSearchMenuTemplate(value IMenu) - MaximumRecents() int - SetMaximumRecents(value int) CancelButtonCell() ButtonCell SetCancelButtonCell(value IButtonCell) - RecentsAutosaveName() SearchFieldRecentsAutosaveName - SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) + SendsSearchStringImmediately() bool + SetSendsSearchStringImmediately(value bool) + RecentSearches() []string + SetRecentSearches(value []string) } // The programmatic interface for text fields that are used for text-based searches. [Full Topic] @@ -103,11 +103,20 @@ func NewSearchFieldCellImageCell(image IImage) SearchFieldCell { return instance } -// Resets the cancel button cell to its default attributes. [Full Topic] +// Modifies the bounding rectangle for the search-text field cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399442-resetcancelbuttoncell?language=objc -func (s_ SearchFieldCell) ResetCancelButtonCell() { - objc.Call[objc.Void](s_, objc.Sel("resetCancelButtonCell")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399455-searchtextrectforbounds?language=objc +func (s_ SearchFieldCell) SearchTextRectForBounds(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("searchTextRectForBounds:"), rect) + return rv +} + +// Modifies the bounding rectangle for the search button cell. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399450-searchbuttonrectforbounds?language=objc +func (s_ SearchFieldCell) SearchButtonRectForBounds(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("searchButtonRectForBounds:"), rect) + return rv } // Resets the search button cell to its default attributes. [Full Topic] @@ -125,35 +134,41 @@ func (s_ SearchFieldCell) CancelButtonRectForBounds(rect foundation.Rect) founda return rv } -// Modifies the bounding rectangle for the search button cell. [Full Topic] +// Resets the cancel button cell to its default attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399450-searchbuttonrectforbounds?language=objc -func (s_ SearchFieldCell) SearchButtonRectForBounds(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("searchButtonRectForBounds:"), rect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399442-resetcancelbuttoncell?language=objc +func (s_ SearchFieldCell) ResetCancelButtonCell() { + objc.Call[objc.Void](s_, objc.Sel("resetCancelButtonCell")) } -// Modifies the bounding rectangle for the search-text field cell. [Full Topic] +// The autosave name under which the search field automatically saves the list of recent search strings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399455-searchtextrectforbounds?language=objc -func (s_ SearchFieldCell) SearchTextRectForBounds(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("searchTextRectForBounds:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399463-recentsautosavename?language=objc +func (s_ SearchFieldCell) RecentsAutosaveName() SearchFieldRecentsAutosaveName { + rv := objc.Call[SearchFieldRecentsAutosaveName](s_, objc.Sel("recentsAutosaveName")) return rv } -// A Boolean value indicating whether the cell calls its search action method when the user clicks the search button (or presses Return) or after each keystroke. [Full Topic] +// The autosave name under which the search field automatically saves the list of recent search strings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399453-sendswholesearchstring?language=objc -func (s_ SearchFieldCell) SendsWholeSearchString() bool { - rv := objc.Call[bool](s_, objc.Sel("sendsWholeSearchString")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399463-recentsautosavename?language=objc +func (s_ SearchFieldCell) SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) { + objc.Call[objc.Void](s_, objc.Sel("setRecentsAutosaveName:"), value) +} + +// The maximum number of search strings that can appear in the search menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399468-maximumrecents?language=objc +func (s_ SearchFieldCell) MaximumRecents() int { + rv := objc.Call[int](s_, objc.Sel("maximumRecents")) return rv } -// A Boolean value indicating whether the cell calls its search action method when the user clicks the search button (or presses Return) or after each keystroke. [Full Topic] +// The maximum number of search strings that can appear in the search menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399453-sendswholesearchstring?language=objc -func (s_ SearchFieldCell) SetSendsWholeSearchString(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setSendsWholeSearchString:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399468-maximumrecents?language=objc +func (s_ SearchFieldCell) SetMaximumRecents(value int) { + objc.Call[objc.Void](s_, objc.Sel("setMaximumRecents:"), value) } // The button cell used to display the search-button image. [Full Topic] @@ -171,34 +186,19 @@ func (s_ SearchFieldCell) SetSearchButtonCell(value IButtonCell) { objc.Call[objc.Void](s_, objc.Sel("setSearchButtonCell:"), value) } -// A Boolean value indicating whether the cell calls its action method immediately when an appropriate action occurs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399444-sendssearchstringimmediately?language=objc -func (s_ SearchFieldCell) SendsSearchStringImmediately() bool { - rv := objc.Call[bool](s_, objc.Sel("sendsSearchStringImmediately")) - return rv -} - -// A Boolean value indicating whether the cell calls its action method immediately when an appropriate action occurs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399444-sendssearchstringimmediately?language=objc -func (s_ SearchFieldCell) SetSendsSearchStringImmediately(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setSendsSearchStringImmediately:"), value) -} - -// An array of the recent search strings to display in the pop-up icon menu of the search field. [Full Topic] +// A Boolean value indicating whether the cell calls its search action method when the user clicks the search button (or presses Return) or after each keystroke. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399446-recentsearches?language=objc -func (s_ SearchFieldCell) RecentSearches() []string { - rv := objc.Call[[]string](s_, objc.Sel("recentSearches")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399453-sendswholesearchstring?language=objc +func (s_ SearchFieldCell) SendsWholeSearchString() bool { + rv := objc.Call[bool](s_, objc.Sel("sendsWholeSearchString")) return rv } -// An array of the recent search strings to display in the pop-up icon menu of the search field. [Full Topic] +// A Boolean value indicating whether the cell calls its search action method when the user clicks the search button (or presses Return) or after each keystroke. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399446-recentsearches?language=objc -func (s_ SearchFieldCell) SetRecentSearches(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setRecentSearches:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399453-sendswholesearchstring?language=objc +func (s_ SearchFieldCell) SetSendsWholeSearchString(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setSendsWholeSearchString:"), value) } // The menu object used to dynamically construct the search field’s pop-up icon menu. [Full Topic] @@ -216,21 +216,6 @@ func (s_ SearchFieldCell) SetSearchMenuTemplate(value IMenu) { objc.Call[objc.Void](s_, objc.Sel("setSearchMenuTemplate:"), value) } -// The maximum number of search strings that can appear in the search menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399468-maximumrecents?language=objc -func (s_ SearchFieldCell) MaximumRecents() int { - rv := objc.Call[int](s_, objc.Sel("maximumRecents")) - return rv -} - -// The maximum number of search strings that can appear in the search menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399468-maximumrecents?language=objc -func (s_ SearchFieldCell) SetMaximumRecents(value int) { - objc.Call[objc.Void](s_, objc.Sel("setMaximumRecents:"), value) -} - // The button cell used to display the cancel-button image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399440-cancelbuttoncell?language=objc @@ -246,17 +231,32 @@ func (s_ SearchFieldCell) SetCancelButtonCell(value IButtonCell) { objc.Call[objc.Void](s_, objc.Sel("setCancelButtonCell:"), value) } -// The autosave name under which the search field automatically saves the list of recent search strings. [Full Topic] +// A Boolean value indicating whether the cell calls its action method immediately when an appropriate action occurs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399463-recentsautosavename?language=objc -func (s_ SearchFieldCell) RecentsAutosaveName() SearchFieldRecentsAutosaveName { - rv := objc.Call[SearchFieldRecentsAutosaveName](s_, objc.Sel("recentsAutosaveName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399444-sendssearchstringimmediately?language=objc +func (s_ SearchFieldCell) SendsSearchStringImmediately() bool { + rv := objc.Call[bool](s_, objc.Sel("sendsSearchStringImmediately")) return rv } -// The autosave name under which the search field automatically saves the list of recent search strings. [Full Topic] +// A Boolean value indicating whether the cell calls its action method immediately when an appropriate action occurs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399463-recentsautosavename?language=objc -func (s_ SearchFieldCell) SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) { - objc.Call[objc.Void](s_, objc.Sel("setRecentsAutosaveName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399444-sendssearchstringimmediately?language=objc +func (s_ SearchFieldCell) SetSendsSearchStringImmediately(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setSendsSearchStringImmediately:"), value) +} + +// An array of the recent search strings to display in the pop-up icon menu of the search field. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399446-recentsearches?language=objc +func (s_ SearchFieldCell) RecentSearches() []string { + rv := objc.Call[[]string](s_, objc.Sel("recentSearches")) + return rv +} + +// An array of the recent search strings to display in the pop-up icon menu of the search field. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfieldcell/1399446-recentsearches?language=objc +func (s_ SearchFieldCell) SetRecentSearches(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setRecentSearches:"), value) } diff --git a/macos/appkit/secure_text_field.gen.go b/macos/appkit/secure_text_field.gen.go index 8dee7f7b..143dcaae 100644 --- a/macos/appkit/secure_text_field.gen.go +++ b/macos/appkit/secure_text_field.gen.go @@ -54,18 +54,6 @@ func (s_ SecureTextField) Init() SecureTextField { return rv } -func (sc _SecureTextFieldClass) LabelWithString(stringValue string) SecureTextField { - rv := objc.Call[SecureTextField](sc, objc.Sel("labelWithString:"), stringValue) - return rv -} - -// Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc -func SecureTextField_LabelWithString(stringValue string) SecureTextField { - return SecureTextFieldClass.LabelWithString(stringValue) -} - func (sc _SecureTextFieldClass) LabelWithAttributedString(attributedStringValue foundation.IAttributedString) SecureTextField { rv := objc.Call[SecureTextField](sc, objc.Sel("labelWithAttributedString:"), attributedStringValue) return rv @@ -78,6 +66,18 @@ func SecureTextField_LabelWithAttributedString(attributedStringValue foundation. return SecureTextFieldClass.LabelWithAttributedString(attributedStringValue) } +func (sc _SecureTextFieldClass) LabelWithString(stringValue string) SecureTextField { + rv := objc.Call[SecureTextField](sc, objc.Sel("labelWithString:"), stringValue) + return rv +} + +// Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc +func SecureTextField_LabelWithString(stringValue string) SecureTextField { + return SecureTextFieldClass.LabelWithString(stringValue) +} + func (sc _SecureTextFieldClass) WrappingLabelWithString(stringValue string) SecureTextField { rv := objc.Call[SecureTextField](sc, objc.Sel("wrappingLabelWithString:"), stringValue) return rv diff --git a/macos/appkit/segmented_cell.gen.go b/macos/appkit/segmented_cell.gen.go index b987b796..e81a35c3 100644 --- a/macos/appkit/segmented_cell.gen.go +++ b/macos/appkit/segmented_cell.gen.go @@ -19,37 +19,37 @@ type _SegmentedCellClass struct { // An interface definition for the [SegmentedCell] class. type ISegmentedCell interface { IActionCell - SetToolTipForSegment(toolTip string, segment int) - SetTagForSegment(tag int, segment int) - ImageForSegment(segment int) Image - SetImageForSegment(image IImage, segment int) - SetImageScalingForSegment(scaling ImageScaling, segment int) - SelectSegmentWithTag(tag int) bool + SetLabelForSegment(label string, segment int) ImageScalingForSegment(segment int) ImageScaling - WidthForSegment(segment int) float64 - LabelForSegment(segment int) string + SetToolTipForSegment(toolTip string, segment int) + TagForSegment(segment int) int ToolTipForSegment(segment int) string - SetEnabledForSegment(enabled bool, segment int) + SetSelectedForSegment(selected bool, segment int) + IsSelectedForSegment(segment int) bool + SetImageForSegment(image IImage, segment int) MakeNextSegmentKey() + ImageForSegment(segment int) Image InteriorBackgroundStyleForSegment(segment int) BackgroundStyle + SetEnabledForSegment(enabled bool, segment int) + WidthForSegment(segment int) float64 + MakePreviousSegmentKey() + SelectSegmentWithTag(tag int) bool + SetImageScalingForSegment(scaling ImageScaling, segment int) + SetTagForSegment(tag int, segment int) MenuForSegment(segment int) Menu - SetSelectedForSegment(selected bool, segment int) - IsEnabledForSegment(segment int) bool - SetLabelForSegment(label string, segment int) - SetWidthForSegment(width float64, segment int) - IsSelectedForSegment(segment int) bool - TagForSegment(segment int) int - DrawSegmentInFrameWithView(segment int, frame foundation.Rect, controlView IView) SetMenuForSegment(menu IMenu, segment int) - MakePreviousSegmentKey() - TrackingMode() SegmentSwitchTracking - SetTrackingMode(value SegmentSwitchTracking) + DrawSegmentInFrameWithView(segment int, frame foundation.Rect, controlView IView) + LabelForSegment(segment int) string + SetWidthForSegment(width float64, segment int) + IsEnabledForSegment(segment int) bool SegmentStyle() SegmentStyle SetSegmentStyle(value SegmentStyle) SegmentCount() int SetSegmentCount(value int) SelectedSegment() int SetSelectedSegment(value int) + TrackingMode() SegmentSwitchTracking + SetTrackingMode(value SegmentSwitchTracking) } // An NSSegmentedCell object implements the appearance and behavior of a horizontal button divided into multiple segments. This class is used in conjunction with the NSSegmentedControl class to implement a segmented control. [Full Topic] @@ -113,48 +113,11 @@ func NewSegmentedCellTextCell(string_ string) SegmentedCell { return instance } -// Sets the tooltip for the specified segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500186-settooltip?language=objc -func (s_ SegmentedCell) SetToolTipForSegment(toolTip string, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setToolTip:forSegment:"), toolTip, segment) -} - -// Sets the tag for the specified segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500181-settag?language=objc -func (s_ SegmentedCell) SetTagForSegment(tag int, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setTag:forSegment:"), tag, segment) -} - -// Returns the image associated with the specified segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500204-imageforsegment?language=objc -func (s_ SegmentedCell) ImageForSegment(segment int) Image { - rv := objc.Call[Image](s_, objc.Sel("imageForSegment:"), segment) - return rv -} - -// Sets the image for the specified segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500174-setimage?language=objc -func (s_ SegmentedCell) SetImageForSegment(image IImage, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setImage:forSegment:"), image, segment) -} - -// Sets the image scaling mode for the specified segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500209-setimagescaling?language=objc -func (s_ SegmentedCell) SetImageScalingForSegment(scaling ImageScaling, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setImageScaling:forSegment:"), scaling, segment) -} - -// Selects the segment with the specified tag. [Full Topic] +// Sets the label for the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500196-selectsegmentwithtag?language=objc -func (s_ SegmentedCell) SelectSegmentWithTag(tag int) bool { - rv := objc.Call[bool](s_, objc.Sel("selectSegmentWithTag:"), tag) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500213-setlabel?language=objc +func (s_ SegmentedCell) SetLabelForSegment(label string, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setLabel:forSegment:"), label, segment) } // Returns the image scaling mode associated with the specified segment. [Full Topic] @@ -165,19 +128,18 @@ func (s_ SegmentedCell) ImageScalingForSegment(segment int) ImageScaling { return rv } -// Returns the width of the specified segment. [Full Topic] +// Sets the tooltip for the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500211-widthforsegment?language=objc -func (s_ SegmentedCell) WidthForSegment(segment int) float64 { - rv := objc.Call[float64](s_, objc.Sel("widthForSegment:"), segment) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500186-settooltip?language=objc +func (s_ SegmentedCell) SetToolTipForSegment(toolTip string, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setToolTip:forSegment:"), toolTip, segment) } -// Returns the label of the specified segment. [Full Topic] +// Returns the tag of the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500215-labelforsegment?language=objc -func (s_ SegmentedCell) LabelForSegment(segment int) string { - rv := objc.Call[string](s_, objc.Sel("labelForSegment:"), segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500207-tagforsegment?language=objc +func (s_ SegmentedCell) TagForSegment(segment int) int { + rv := objc.Call[int](s_, objc.Sel("tagForSegment:"), segment) return rv } @@ -189,11 +151,26 @@ func (s_ SegmentedCell) ToolTipForSegment(segment int) string { return rv } -// Sets the enabled state of the specified segment [Full Topic] +// Sets the selection state of the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500219-setenabled?language=objc -func (s_ SegmentedCell) SetEnabledForSegment(enabled bool, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setEnabled:forSegment:"), enabled, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500188-setselected?language=objc +func (s_ SegmentedCell) SetSelectedForSegment(selected bool, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setSelected:forSegment:"), selected, segment) +} + +// Returns a Boolean value indicating whether the specified segment is selected, [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500177-isselectedforsegment?language=objc +func (s_ SegmentedCell) IsSelectedForSegment(segment int) bool { + rv := objc.Call[bool](s_, objc.Sel("isSelectedForSegment:"), segment) + return rv +} + +// Sets the image for the specified segment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500174-setimage?language=objc +func (s_ SegmentedCell) SetImageForSegment(image IImage, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setImage:forSegment:"), image, segment) } // Selects the next segment. [Full Topic] @@ -203,6 +180,14 @@ func (s_ SegmentedCell) MakeNextSegmentKey() { objc.Call[objc.Void](s_, objc.Sel("makeNextSegmentKey")) } +// Returns the image associated with the specified segment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500204-imageforsegment?language=objc +func (s_ SegmentedCell) ImageForSegment(segment int) Image { + rv := objc.Call[Image](s_, objc.Sel("imageForSegment:"), segment) + return rv +} + // Returns the interior background style for the specified segment. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500198-interiorbackgroundstyleforsegmen?language=objc @@ -211,57 +196,63 @@ func (s_ SegmentedCell) InteriorBackgroundStyleForSegment(segment int) Backgroun return rv } -// Returns the menu for the specified segment. [Full Topic] +// Sets the enabled state of the specified segment [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500175-menuforsegment?language=objc -func (s_ SegmentedCell) MenuForSegment(segment int) Menu { - rv := objc.Call[Menu](s_, objc.Sel("menuForSegment:"), segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500219-setenabled?language=objc +func (s_ SegmentedCell) SetEnabledForSegment(enabled bool, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setEnabled:forSegment:"), enabled, segment) +} + +// Returns the width of the specified segment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500211-widthforsegment?language=objc +func (s_ SegmentedCell) WidthForSegment(segment int) float64 { + rv := objc.Call[float64](s_, objc.Sel("widthForSegment:"), segment) return rv } -// Sets the selection state of the specified segment. [Full Topic] +// Selects the previous segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500188-setselected?language=objc -func (s_ SegmentedCell) SetSelectedForSegment(selected bool, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setSelected:forSegment:"), selected, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500170-makeprevioussegmentkey?language=objc +func (s_ SegmentedCell) MakePreviousSegmentKey() { + objc.Call[objc.Void](s_, objc.Sel("makePreviousSegmentKey")) } -// Returns a Boolean value indicating whether the specified segment is enabled. [Full Topic] +// Selects the segment with the specified tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500206-isenabledforsegment?language=objc -func (s_ SegmentedCell) IsEnabledForSegment(segment int) bool { - rv := objc.Call[bool](s_, objc.Sel("isEnabledForSegment:"), segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500196-selectsegmentwithtag?language=objc +func (s_ SegmentedCell) SelectSegmentWithTag(tag int) bool { + rv := objc.Call[bool](s_, objc.Sel("selectSegmentWithTag:"), tag) return rv } -// Sets the label for the specified segment. [Full Topic] +// Sets the image scaling mode for the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500213-setlabel?language=objc -func (s_ SegmentedCell) SetLabelForSegment(label string, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setLabel:forSegment:"), label, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500209-setimagescaling?language=objc +func (s_ SegmentedCell) SetImageScalingForSegment(scaling ImageScaling, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setImageScaling:forSegment:"), scaling, segment) } -// Sets the width of the specified segment. [Full Topic] +// Sets the tag for the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500202-setwidth?language=objc -func (s_ SegmentedCell) SetWidthForSegment(width float64, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setWidth:forSegment:"), width, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500181-settag?language=objc +func (s_ SegmentedCell) SetTagForSegment(tag int, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setTag:forSegment:"), tag, segment) } -// Returns a Boolean value indicating whether the specified segment is selected, [Full Topic] +// Returns the menu for the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500177-isselectedforsegment?language=objc -func (s_ SegmentedCell) IsSelectedForSegment(segment int) bool { - rv := objc.Call[bool](s_, objc.Sel("isSelectedForSegment:"), segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500175-menuforsegment?language=objc +func (s_ SegmentedCell) MenuForSegment(segment int) Menu { + rv := objc.Call[Menu](s_, objc.Sel("menuForSegment:"), segment) return rv } -// Returns the tag of the specified segment. [Full Topic] +// Sets the menu for the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500207-tagforsegment?language=objc -func (s_ SegmentedCell) TagForSegment(segment int) int { - rv := objc.Call[int](s_, objc.Sel("tagForSegment:"), segment) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500194-setmenu?language=objc +func (s_ SegmentedCell) SetMenuForSegment(menu IMenu, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setMenu:forSegment:"), menu, segment) } // Draws the image and label of the segment in the specified view. [Full Topic] @@ -271,35 +262,29 @@ func (s_ SegmentedCell) DrawSegmentInFrameWithView(segment int, frame foundation objc.Call[objc.Void](s_, objc.Sel("drawSegment:inFrame:withView:"), segment, frame, controlView) } -// Sets the menu for the specified segment. [Full Topic] +// Returns the label of the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500194-setmenu?language=objc -func (s_ SegmentedCell) SetMenuForSegment(menu IMenu, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setMenu:forSegment:"), menu, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500215-labelforsegment?language=objc +func (s_ SegmentedCell) LabelForSegment(segment int) string { + rv := objc.Call[string](s_, objc.Sel("labelForSegment:"), segment) + return rv } -// Selects the previous segment. [Full Topic] +// Sets the width of the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500170-makeprevioussegmentkey?language=objc -func (s_ SegmentedCell) MakePreviousSegmentKey() { - objc.Call[objc.Void](s_, objc.Sel("makePreviousSegmentKey")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500202-setwidth?language=objc +func (s_ SegmentedCell) SetWidthForSegment(width float64, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setWidth:forSegment:"), width, segment) } -// The tracking mode used for the segments of the control. [Full Topic] +// Returns a Boolean value indicating whether the specified segment is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500200-trackingmode?language=objc -func (s_ SegmentedCell) TrackingMode() SegmentSwitchTracking { - rv := objc.Call[SegmentSwitchTracking](s_, objc.Sel("trackingMode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500206-isenabledforsegment?language=objc +func (s_ SegmentedCell) IsEnabledForSegment(segment int) bool { + rv := objc.Call[bool](s_, objc.Sel("isEnabledForSegment:"), segment) return rv } -// The tracking mode used for the segments of the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500200-trackingmode?language=objc -func (s_ SegmentedCell) SetTrackingMode(value SegmentSwitchTracking) { - objc.Call[objc.Void](s_, objc.Sel("setTrackingMode:"), value) -} - // The visual style used to display the segmented control. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500172-segmentstyle?language=objc @@ -344,3 +329,18 @@ func (s_ SegmentedCell) SelectedSegment() int { func (s_ SegmentedCell) SetSelectedSegment(value int) { objc.Call[objc.Void](s_, objc.Sel("setSelectedSegment:"), value) } + +// The tracking mode used for the segments of the control. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500200-trackingmode?language=objc +func (s_ SegmentedCell) TrackingMode() SegmentSwitchTracking { + rv := objc.Call[SegmentSwitchTracking](s_, objc.Sel("trackingMode")) + return rv +} + +// The tracking mode used for the segments of the control. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500200-trackingmode?language=objc +func (s_ SegmentedCell) SetTrackingMode(value SegmentSwitchTracking) { + objc.Call[objc.Void](s_, objc.Sel("setTrackingMode:"), value) +} diff --git a/macos/appkit/segmented_control.gen.go b/macos/appkit/segmented_control.gen.go index 783b1133..b41490f1 100644 --- a/macos/appkit/segmented_control.gen.go +++ b/macos/appkit/segmented_control.gen.go @@ -19,48 +19,48 @@ type _SegmentedControlClass struct { // An interface definition for the [SegmentedControl] class. type ISegmentedControl interface { IControl - SetEnabledForSegment(enabled bool, segment int) - ImageForSegment(segment int) Image - SetAlignmentForSegment(alignment TextAlignment, segment int) - SetWidthForSegment(width float64, segment int) + SetLabelForSegment(label string, segment int) + ImageScalingForSegment(segment int) ImageScaling SetToolTipForSegment(toolTip string, segment int) - ToolTipForSegment(segment int) string - SetTagForSegment(tag int, segment int) TagForSegment(segment int) int + ToolTipForSegment(segment int) string + SetAlignmentForSegment(alignment TextAlignment, segment int) + SetSelectedForSegment(selected bool, segment int) IsSelectedForSegment(segment int) bool - SetImageScalingForSegment(scaling ImageScaling, segment int) - MinimumSizeWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) foundation.Size - AlignmentForSegment(segment int) TextAlignment - ImageScalingForSegment(segment int) ImageScaling - SetLabelForSegment(label string, segment int) - MenuForSegment(segment int) Menu SetImageForSegment(image IImage, segment int) - CompressWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) SetShowsMenuIndicatorForSegment(showsMenuIndicator bool, segment int) + MinimumSizeWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) foundation.Size + ImageForSegment(segment int) Image + CompressWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) + SetEnabledForSegment(enabled bool, segment int) + WidthForSegment(segment int) float64 SelectSegmentWithTag(tag int) bool + AlignmentForSegment(segment int) TextAlignment + SetImageScalingForSegment(scaling ImageScaling, segment int) + SetTagForSegment(tag int, segment int) + MenuForSegment(segment int) Menu SetMenuForSegment(menu IMenu, segment int) - WidthForSegment(segment int) float64 - IsEnabledForSegment(segment int) bool ShowsMenuIndicatorForSegment(segment int) bool LabelForSegment(segment int) string - SetSelectedForSegment(selected bool, segment int) + SetWidthForSegment(width float64, segment int) + IsEnabledForSegment(segment int) bool + ActiveCompressionOptions() UserInterfaceCompressionOptions + IndexOfSelectedItem() int SegmentStyle() SegmentStyle SetSegmentStyle(value SegmentStyle) - IsSpringLoaded() bool - SetSpringLoaded(value bool) + SegmentCount() int + SetSegmentCount(value int) + SelectedSegment() int + SetSelectedSegment(value int) SegmentDistribution() SegmentDistribution SetSegmentDistribution(value SegmentDistribution) - SelectedSegmentBezelColor() Color - SetSelectedSegmentBezelColor(value IColor) - ActiveCompressionOptions() UserInterfaceCompressionOptions - DoubleValueForSelectedSegment() float64 TrackingMode() SegmentSwitchTracking SetTrackingMode(value SegmentSwitchTracking) - IndexOfSelectedItem() int - SelectedSegment() int - SetSelectedSegment(value int) - SegmentCount() int - SetSegmentCount(value int) + DoubleValueForSelectedSegment() float64 + SelectedSegmentBezelColor() Color + SetSelectedSegmentBezelColor(value IColor) + IsSpringLoaded() bool + SetSpringLoaded(value bool) } // Display one or more buttons in a single horizontal group. [Full Topic] @@ -134,40 +134,34 @@ func NewSegmentedControlWithFrame(frameRect foundation.Rect) SegmentedControl { return instance } -// Sets the enabled state of the specified segment [Full Topic] +// Sets the label for the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1526417-setenabled?language=objc -func (s_ SegmentedControl) SetEnabledForSegment(enabled bool, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setEnabled:forSegment:"), enabled, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1533073-setlabel?language=objc +func (s_ SegmentedControl) SetLabelForSegment(label string, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setLabel:forSegment:"), label, segment) } -// Returns the image associated with the specified segment. [Full Topic] +// Returns the scaling mode used to display the specified segment’s image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1527623-imageforsegment?language=objc -func (s_ SegmentedControl) ImageForSegment(segment int) Image { - rv := objc.Call[Image](s_, objc.Sel("imageForSegment:"), segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1532175-imagescalingforsegment?language=objc +func (s_ SegmentedControl) ImageScalingForSegment(segment int) ImageScaling { + rv := objc.Call[ImageScaling](s_, objc.Sel("imageScalingForSegment:"), segment) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887107-setalignment?language=objc -func (s_ SegmentedControl) SetAlignmentForSegment(alignment TextAlignment, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setAlignment:forSegment:"), alignment, segment) -} - -// Sets the width of the specified segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534487-setwidth?language=objc -func (s_ SegmentedControl) SetWidthForSegment(width float64, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setWidth:forSegment:"), width, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887101-settooltip?language=objc +func (s_ SegmentedControl) SetToolTipForSegment(toolTip string, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setToolTip:forSegment:"), toolTip, segment) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887101-settooltip?language=objc -func (s_ SegmentedControl) SetToolTipForSegment(toolTip string, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setToolTip:forSegment:"), toolTip, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887113-tagforsegment?language=objc +func (s_ SegmentedControl) TagForSegment(segment int) int { + rv := objc.Call[int](s_, objc.Sel("tagForSegment:"), segment) + return rv } // [Full Topic] @@ -180,17 +174,16 @@ func (s_ SegmentedControl) ToolTipForSegment(segment int) string { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887104-settag?language=objc -func (s_ SegmentedControl) SetTagForSegment(tag int, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setTag:forSegment:"), tag, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887107-setalignment?language=objc +func (s_ SegmentedControl) SetAlignmentForSegment(alignment TextAlignment, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setAlignment:forSegment:"), alignment, segment) } -// [Full Topic] +// Sets the selection state of the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887113-tagforsegment?language=objc -func (s_ SegmentedControl) TagForSegment(segment int) int { - rv := objc.Call[int](s_, objc.Sel("tagForSegment:"), segment) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1528334-setselected?language=objc +func (s_ SegmentedControl) SetSelectedForSegment(selected bool, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setSelected:forSegment:"), selected, segment) } // Returns a Boolean value indicating whether the specified segment is selected. [Full Topic] @@ -201,11 +194,18 @@ func (s_ SegmentedControl) IsSelectedForSegment(segment int) bool { return rv } -// Sets the scaling mode used to display the specified segment’s image. [Full Topic] +// Sets the image for the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1532914-setimagescaling?language=objc -func (s_ SegmentedControl) SetImageScalingForSegment(scaling ImageScaling, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setImageScaling:forSegment:"), scaling, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1525540-setimage?language=objc +func (s_ SegmentedControl) SetImageForSegment(image IImage, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setImage:forSegment:"), image, segment) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887112-setshowsmenuindicator?language=objc +func (s_ SegmentedControl) SetShowsMenuIndicatorForSegment(showsMenuIndicator bool, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setShowsMenuIndicator:forSegment:"), showsMenuIndicator, segment) } // [Full Topic] @@ -216,63 +216,71 @@ func (s_ SegmentedControl) MinimumSizeWithPrioritizedCompressionOptions(prioriti return rv } -// [Full Topic] +// Returns the image associated with the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887114-alignmentforsegment?language=objc -func (s_ SegmentedControl) AlignmentForSegment(segment int) TextAlignment { - rv := objc.Call[TextAlignment](s_, objc.Sel("alignmentForSegment:"), segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1527623-imageforsegment?language=objc +func (s_ SegmentedControl) ImageForSegment(segment int) Image { + rv := objc.Call[Image](s_, objc.Sel("imageForSegment:"), segment) return rv } -// Returns the scaling mode used to display the specified segment’s image. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1532175-imagescalingforsegment?language=objc -func (s_ SegmentedControl) ImageScalingForSegment(segment int) ImageScaling { - rv := objc.Call[ImageScaling](s_, objc.Sel("imageScalingForSegment:"), segment) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2952064-compresswithprioritizedcompressi?language=objc +func (s_ SegmentedControl) CompressWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) { + objc.Call[objc.Void](s_, objc.Sel("compressWithPrioritizedCompressionOptions:"), prioritizedOptions) } -// Sets the label for the specified segment. [Full Topic] +// Sets the enabled state of the specified segment [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1533073-setlabel?language=objc -func (s_ SegmentedControl) SetLabelForSegment(label string, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setLabel:forSegment:"), label, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1526417-setenabled?language=objc +func (s_ SegmentedControl) SetEnabledForSegment(enabled bool, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setEnabled:forSegment:"), enabled, segment) } -// Returns the menu for the specified segment. [Full Topic] +// Returns the width of the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1525880-menuforsegment?language=objc -func (s_ SegmentedControl) MenuForSegment(segment int) Menu { - rv := objc.Call[Menu](s_, objc.Sel("menuForSegment:"), segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1533866-widthforsegment?language=objc +func (s_ SegmentedControl) WidthForSegment(segment int) float64 { + rv := objc.Call[float64](s_, objc.Sel("widthForSegment:"), segment) return rv } -// Sets the image for the specified segment. [Full Topic] +// Selects the segment with the specified tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1525540-setimage?language=objc -func (s_ SegmentedControl) SetImageForSegment(image IImage, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setImage:forSegment:"), image, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534016-selectsegmentwithtag?language=objc +func (s_ SegmentedControl) SelectSegmentWithTag(tag int) bool { + rv := objc.Call[bool](s_, objc.Sel("selectSegmentWithTag:"), tag) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2952064-compresswithprioritizedcompressi?language=objc -func (s_ SegmentedControl) CompressWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) { - objc.Call[objc.Void](s_, objc.Sel("compressWithPrioritizedCompressionOptions:"), prioritizedOptions) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887114-alignmentforsegment?language=objc +func (s_ SegmentedControl) AlignmentForSegment(segment int) TextAlignment { + rv := objc.Call[TextAlignment](s_, objc.Sel("alignmentForSegment:"), segment) + return rv +} + +// Sets the scaling mode used to display the specified segment’s image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1532914-setimagescaling?language=objc +func (s_ SegmentedControl) SetImageScalingForSegment(scaling ImageScaling, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setImageScaling:forSegment:"), scaling, segment) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887112-setshowsmenuindicator?language=objc -func (s_ SegmentedControl) SetShowsMenuIndicatorForSegment(showsMenuIndicator bool, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setShowsMenuIndicator:forSegment:"), showsMenuIndicator, segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887104-settag?language=objc +func (s_ SegmentedControl) SetTagForSegment(tag int, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setTag:forSegment:"), tag, segment) } -// Selects the segment with the specified tag. [Full Topic] +// Returns the menu for the specified segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534016-selectsegmentwithtag?language=objc -func (s_ SegmentedControl) SelectSegmentWithTag(tag int) bool { - rv := objc.Call[bool](s_, objc.Sel("selectSegmentWithTag:"), tag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1525880-menuforsegment?language=objc +func (s_ SegmentedControl) MenuForSegment(segment int) Menu { + rv := objc.Call[Menu](s_, objc.Sel("menuForSegment:"), segment) return rv } @@ -283,14 +291,29 @@ func (s_ SegmentedControl) SetMenuForSegment(menu IMenu, segment int) { objc.Call[objc.Void](s_, objc.Sel("setMenu:forSegment:"), menu, segment) } -// Returns the width of the specified segment. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1533866-widthforsegment?language=objc -func (s_ SegmentedControl) WidthForSegment(segment int) float64 { - rv := objc.Call[float64](s_, objc.Sel("widthForSegment:"), segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887111-showsmenuindicatorforsegment?language=objc +func (s_ SegmentedControl) ShowsMenuIndicatorForSegment(segment int) bool { + rv := objc.Call[bool](s_, objc.Sel("showsMenuIndicatorForSegment:"), segment) return rv } +// Returns the label of the specified segment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1524322-labelforsegment?language=objc +func (s_ SegmentedControl) LabelForSegment(segment int) string { + rv := objc.Call[string](s_, objc.Sel("labelForSegment:"), segment) + return rv +} + +// Sets the width of the specified segment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534487-setwidth?language=objc +func (s_ SegmentedControl) SetWidthForSegment(width float64, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setWidth:forSegment:"), width, segment) +} + // Returns a Boolean value indicating whether the specified segment is enabled. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1524542-isenabledforsegment?language=objc @@ -301,27 +324,20 @@ func (s_ SegmentedControl) IsEnabledForSegment(segment int) bool { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887111-showsmenuindicatorforsegment?language=objc -func (s_ SegmentedControl) ShowsMenuIndicatorForSegment(segment int) bool { - rv := objc.Call[bool](s_, objc.Sel("showsMenuIndicatorForSegment:"), segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2952062-activecompressionoptions?language=objc +func (s_ SegmentedControl) ActiveCompressionOptions() UserInterfaceCompressionOptions { + rv := objc.Call[UserInterfaceCompressionOptions](s_, objc.Sel("activeCompressionOptions")) return rv } -// Returns the label of the specified segment. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1524322-labelforsegment?language=objc -func (s_ SegmentedControl) LabelForSegment(segment int) string { - rv := objc.Call[string](s_, objc.Sel("labelForSegment:"), segment) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887105-indexofselecteditem?language=objc +func (s_ SegmentedControl) IndexOfSelectedItem() int { + rv := objc.Call[int](s_, objc.Sel("indexOfSelectedItem")) return rv } -// Sets the selection state of the specified segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1528334-setselected?language=objc -func (s_ SegmentedControl) SetSelectedForSegment(selected bool, segment int) { - objc.Call[objc.Void](s_, objc.Sel("setSelected:forSegment:"), selected, segment) -} - // The visual style used to display the control. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1528507-segmentstyle?language=objc @@ -337,65 +353,49 @@ func (s_ SegmentedControl) SetSegmentStyle(value SegmentStyle) { objc.Call[objc.Void](s_, objc.Sel("setSegmentStyle:"), value) } -// A Boolean value that indicates whether spring loading is enabled for the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534122-springloaded?language=objc -func (s_ SegmentedControl) IsSpringLoaded() bool { - rv := objc.Call[bool](s_, objc.Sel("isSpringLoaded")) - return rv -} - -// A Boolean value that indicates whether spring loading is enabled for the control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534122-springloaded?language=objc -func (s_ SegmentedControl) SetSpringLoaded(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setSpringLoaded:"), value) -} - -// [Full Topic] +// The number of segments in the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887109-segmentdistribution?language=objc -func (s_ SegmentedControl) SegmentDistribution() SegmentDistribution { - rv := objc.Call[SegmentDistribution](s_, objc.Sel("segmentDistribution")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1527451-segmentcount?language=objc +func (s_ SegmentedControl) SegmentCount() int { + rv := objc.Call[int](s_, objc.Sel("segmentCount")) return rv } -// [Full Topic] +// The number of segments in the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887109-segmentdistribution?language=objc -func (s_ SegmentedControl) SetSegmentDistribution(value SegmentDistribution) { - objc.Call[objc.Void](s_, objc.Sel("setSegmentDistribution:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1527451-segmentcount?language=objc +func (s_ SegmentedControl) SetSegmentCount(value int) { + objc.Call[objc.Void](s_, objc.Sel("setSegmentCount:"), value) } -// The color of the selected segment's bezel, in appearances that support it. [Full Topic] +// The index of the selected segment of the control, or -1 if no segment is selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2561002-selectedsegmentbezelcolor?language=objc -func (s_ SegmentedControl) SelectedSegmentBezelColor() Color { - rv := objc.Call[Color](s_, objc.Sel("selectedSegmentBezelColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534490-selectedsegment?language=objc +func (s_ SegmentedControl) SelectedSegment() int { + rv := objc.Call[int](s_, objc.Sel("selectedSegment")) return rv } -// The color of the selected segment's bezel, in appearances that support it. [Full Topic] +// The index of the selected segment of the control, or -1 if no segment is selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2561002-selectedsegmentbezelcolor?language=objc -func (s_ SegmentedControl) SetSelectedSegmentBezelColor(value IColor) { - objc.Call[objc.Void](s_, objc.Sel("setSelectedSegmentBezelColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534490-selectedsegment?language=objc +func (s_ SegmentedControl) SetSelectedSegment(value int) { + objc.Call[objc.Void](s_, objc.Sel("setSelectedSegment:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2952062-activecompressionoptions?language=objc -func (s_ SegmentedControl) ActiveCompressionOptions() UserInterfaceCompressionOptions { - rv := objc.Call[UserInterfaceCompressionOptions](s_, objc.Sel("activeCompressionOptions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887109-segmentdistribution?language=objc +func (s_ SegmentedControl) SegmentDistribution() SegmentDistribution { + rv := objc.Call[SegmentDistribution](s_, objc.Sel("segmentDistribution")) return rv } -// When the tracking mode for the control is set to use a momentary accelerator, returns a value for the selected segment. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1529727-doublevalueforselectedsegment?language=objc -func (s_ SegmentedControl) DoubleValueForSelectedSegment() float64 { - rv := objc.Call[float64](s_, objc.Sel("doubleValueForSelectedSegment")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887109-segmentdistribution?language=objc +func (s_ SegmentedControl) SetSegmentDistribution(value SegmentDistribution) { + objc.Call[objc.Void](s_, objc.Sel("setSegmentDistribution:"), value) } // The type of tracking behavior the control exhibits. [Full Topic] @@ -413,40 +413,40 @@ func (s_ SegmentedControl) SetTrackingMode(value SegmentSwitchTracking) { objc.Call[objc.Void](s_, objc.Sel("setTrackingMode:"), value) } -// [Full Topic] +// When the tracking mode for the control is set to use a momentary accelerator, returns a value for the selected segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2887105-indexofselecteditem?language=objc -func (s_ SegmentedControl) IndexOfSelectedItem() int { - rv := objc.Call[int](s_, objc.Sel("indexOfSelectedItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1529727-doublevalueforselectedsegment?language=objc +func (s_ SegmentedControl) DoubleValueForSelectedSegment() float64 { + rv := objc.Call[float64](s_, objc.Sel("doubleValueForSelectedSegment")) return rv } -// The index of the selected segment of the control, or -1 if no segment is selected. [Full Topic] +// The color of the selected segment's bezel, in appearances that support it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534490-selectedsegment?language=objc -func (s_ SegmentedControl) SelectedSegment() int { - rv := objc.Call[int](s_, objc.Sel("selectedSegment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2561002-selectedsegmentbezelcolor?language=objc +func (s_ SegmentedControl) SelectedSegmentBezelColor() Color { + rv := objc.Call[Color](s_, objc.Sel("selectedSegmentBezelColor")) return rv } -// The index of the selected segment of the control, or -1 if no segment is selected. [Full Topic] +// The color of the selected segment's bezel, in appearances that support it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534490-selectedsegment?language=objc -func (s_ SegmentedControl) SetSelectedSegment(value int) { - objc.Call[objc.Void](s_, objc.Sel("setSelectedSegment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/2561002-selectedsegmentbezelcolor?language=objc +func (s_ SegmentedControl) SetSelectedSegmentBezelColor(value IColor) { + objc.Call[objc.Void](s_, objc.Sel("setSelectedSegmentBezelColor:"), value) } -// The number of segments in the control. [Full Topic] +// A Boolean value that indicates whether spring loading is enabled for the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1527451-segmentcount?language=objc -func (s_ SegmentedControl) SegmentCount() int { - rv := objc.Call[int](s_, objc.Sel("segmentCount")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534122-springloaded?language=objc +func (s_ SegmentedControl) IsSpringLoaded() bool { + rv := objc.Call[bool](s_, objc.Sel("isSpringLoaded")) return rv } -// The number of segments in the control. [Full Topic] +// A Boolean value that indicates whether spring loading is enabled for the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1527451-segmentcount?language=objc -func (s_ SegmentedControl) SetSegmentCount(value int) { - objc.Call[objc.Void](s_, objc.Sel("setSegmentCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1534122-springloaded?language=objc +func (s_ SegmentedControl) SetSpringLoaded(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setSpringLoaded:"), value) } diff --git a/macos/appkit/segue_performing_protocol.gen.go b/macos/appkit/segue_performing_protocol.gen.go index a16a4617..67b9536c 100644 --- a/macos/appkit/segue_performing_protocol.gen.go +++ b/macos/appkit/segue_performing_protocol.gen.go @@ -14,13 +14,13 @@ type PSeguePerforming interface { PerformSegueWithIdentifierSender(identifier StoryboardSegueIdentifier, sender objc.Object) HasPerformSegueWithIdentifierSender() bool - // optional - PrepareForSegueSender(segue StoryboardSegue, sender objc.Object) - HasPrepareForSegueSender() bool - // optional ShouldPerformSegueWithIdentifierSender(identifier StoryboardSegueIdentifier, sender objc.Object) bool HasShouldPerformSegueWithIdentifierSender() bool + + // optional + PrepareForSegueSender(segue StoryboardSegue, sender objc.Object) + HasPrepareForSegueSender() bool } // ensure impl type implements protocol interface @@ -42,17 +42,6 @@ func (s_ SeguePerformingObject) PerformSegueWithIdentifierSender(identifier Stor objc.Call[objc.Void](s_, objc.Sel("performSegueWithIdentifier:sender:"), identifier, sender) } -func (s_ SeguePerformingObject) HasPrepareForSegueSender() bool { - return s_.RespondsToSelector(objc.Sel("prepareForSegue:sender:")) -} - -// Called when a segue is about to be performed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegueperforming/1409580-prepareforsegue?language=objc -func (s_ SeguePerformingObject) PrepareForSegueSender(segue StoryboardSegue, sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("prepareForSegue:sender:"), segue, sender) -} - func (s_ SeguePerformingObject) HasShouldPerformSegueWithIdentifierSender() bool { return s_.RespondsToSelector(objc.Sel("shouldPerformSegueWithIdentifier:sender:")) } @@ -64,3 +53,14 @@ func (s_ SeguePerformingObject) ShouldPerformSegueWithIdentifierSender(identifie rv := objc.Call[bool](s_, objc.Sel("shouldPerformSegueWithIdentifier:sender:"), identifier, sender) return rv } + +func (s_ SeguePerformingObject) HasPrepareForSegueSender() bool { + return s_.RespondsToSelector(objc.Sel("prepareForSegue:sender:")) +} + +// Called when a segue is about to be performed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegueperforming/1409580-prepareforsegue?language=objc +func (s_ SeguePerformingObject) PrepareForSegueSender(segue StoryboardSegue, sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("prepareForSegue:sender:"), segue, sender) +} diff --git a/macos/appkit/shadow.gen.go b/macos/appkit/shadow.gen.go index 9b7cdcb1..5d8c64c5 100644 --- a/macos/appkit/shadow.gen.go +++ b/macos/appkit/shadow.gen.go @@ -5,7 +5,7 @@ package appkit import ( "unsafe" - "github.com/progrium/darwinkit/macos/foundation" + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/objc" ) @@ -22,10 +22,10 @@ type IShadow interface { Set() ShadowBlurRadius() float64 SetShadowBlurRadius(value float64) - ShadowOffset() foundation.Size - SetShadowOffset(value foundation.Size) - ShadowColor() Color - SetShadowColor(value IColor) + ShadowOffset() coregraphics.Size + SetShadowOffset(value coregraphics.Size) + ShadowColor() objc.Object + SetShadowColor(value objc.IObject) } // An object you use to specify attributes to create and style a drop shadow during drawing operations. [Full Topic] @@ -86,29 +86,29 @@ func (s_ Shadow) SetShadowBlurRadius(value float64) { // The shadow’s relative position, which you specify with horizontal and vertical offset values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nsshadow/1429851-shadowoffset?language=objc -func (s_ Shadow) ShadowOffset() foundation.Size { - rv := objc.Call[foundation.Size](s_, objc.Sel("shadowOffset")) +func (s_ Shadow) ShadowOffset() coregraphics.Size { + rv := objc.Call[coregraphics.Size](s_, objc.Sel("shadowOffset")) return rv } // The shadow’s relative position, which you specify with horizontal and vertical offset values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nsshadow/1429851-shadowoffset?language=objc -func (s_ Shadow) SetShadowOffset(value foundation.Size) { +func (s_ Shadow) SetShadowOffset(value coregraphics.Size) { objc.Call[objc.Void](s_, objc.Sel("setShadowOffset:"), value) } // The color of the shadow. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nsshadow/1429855-shadowcolor?language=objc -func (s_ Shadow) ShadowColor() Color { - rv := objc.Call[Color](s_, objc.Sel("shadowColor")) +func (s_ Shadow) ShadowColor() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("shadowColor")) return rv } // The color of the shadow. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nsshadow/1429855-shadowcolor?language=objc -func (s_ Shadow) SetShadowColor(value IColor) { +func (s_ Shadow) SetShadowColor(value objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setShadowColor:"), value) } diff --git a/macos/appkit/sharing_service.gen.go b/macos/appkit/sharing_service.gen.go index 729e871f..65769ec0 100644 --- a/macos/appkit/sharing_service.gen.go +++ b/macos/appkit/sharing_service.gen.go @@ -19,24 +19,24 @@ type _SharingServiceClass struct { // An interface definition for the [SharingService] class. type ISharingService interface { objc.IObject - PerformWithItems(items []objc.IObject) CanPerformWithItems(items []objc.IObject) bool - Subject() string - SetSubject(value string) - AlternateImage() Image - AttachmentFileURLs() []foundation.URL - AccountName() string - Title() string - MenuItemTitle() string - SetMenuItemTitle(value string) + PerformWithItems(items []objc.IObject) PermanentLink() foundation.URL - Image() Image + MessageBody() string + AlternateImage() Image Recipients() []string SetRecipients(value []string) Delegate() SharingServiceDelegateObject SetDelegate(value PSharingServiceDelegate) SetDelegateObject(valueObject objc.IObject) - MessageBody() string + MenuItemTitle() string + SetMenuItemTitle(value string) + AttachmentFileURLs() []foundation.URL + Title() string + Subject() string + SetSubject(value string) + Image() Image + AccountName() string } // An object that facilitates the sharing of content with social media services, or with apps like Mail or Safari. [Full Topic] @@ -86,13 +86,6 @@ func (s_ SharingService) Init() SharingService { return rv } -// Manually performs the service on the provided items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402669-performwithitems?language=objc -func (s_ SharingService) PerformWithItems(items []objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("performWithItems:"), items) -} - // Returns whether the service can share all the specified items. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402662-canperformwithitems?language=objc @@ -101,6 +94,13 @@ func (s_ SharingService) CanPerformWithItems(items []objc.IObject) bool { return rv } +// Manually performs the service on the provided items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402669-performwithitems?language=objc +func (s_ SharingService) PerformWithItems(items []objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("performWithItems:"), items) +} + // Returns a sharing service instance representing the specified service name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402673-sharingservicenamed?language=objc @@ -116,19 +116,20 @@ func SharingService_SharingServiceNamed(serviceName SharingServiceName) SharingS return SharingServiceClass.SharingServiceNamed(serviceName) } -// The subject of the post. [Full Topic] +// A permanent URL (permalink) that your app can use to access the post. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402626-subject?language=objc -func (s_ SharingService) Subject() string { - rv := objc.Call[string](s_, objc.Sel("subject")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402685-permanentlink?language=objc +func (s_ SharingService) PermanentLink() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("permanentLink")) return rv } -// The subject of the post. [Full Topic] +// The message body as a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402626-subject?language=objc -func (s_ SharingService) SetSubject(value string) { - objc.Call[objc.Void](s_, objc.Sel("setSubject:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402644-messagebody?language=objc +func (s_ SharingService) MessageBody() string { + rv := objc.Call[string](s_, objc.Sel("messageBody")) + return rv } // The alternate image representing the sharing service. [Full Topic] @@ -139,30 +140,45 @@ func (s_ SharingService) AlternateImage() Image { return rv } -// An array of NSURL objects representing the files that were shared. [Full Topic] +// An array containing the user handles of the desired recipients. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402707-attachmentfileurls?language=objc -func (s_ SharingService) AttachmentFileURLs() []foundation.URL { - rv := objc.Call[[]foundation.URL](s_, objc.Sel("attachmentFileURLs")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402652-recipients?language=objc +func (s_ SharingService) Recipients() []string { + rv := objc.Call[[]string](s_, objc.Sel("recipients")) return rv } -// The account name used for posting on Twitter or Sina Weibo. [Full Topic] +// An array containing the user handles of the desired recipients. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402683-accountname?language=objc -func (s_ SharingService) AccountName() string { - rv := objc.Call[string](s_, objc.Sel("accountName")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402652-recipients?language=objc +func (s_ SharingService) SetRecipients(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setRecipients:"), value) } -// The title of the sharing service. [Full Topic] +// Specifies the delegate of the sharing service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402637-title?language=objc -func (s_ SharingService) Title() string { - rv := objc.Call[string](s_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402681-delegate?language=objc +func (s_ SharingService) Delegate() SharingServiceDelegateObject { + rv := objc.Call[SharingServiceDelegateObject](s_, objc.Sel("delegate")) return rv } +// Specifies the delegate of the sharing service. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402681-delegate?language=objc +func (s_ SharingService) SetDelegate(value PSharingServiceDelegate) { + po0 := objc.WrapAsProtocol("NSSharingServiceDelegate", value) + objc.SetAssociatedObject(s_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), po0) +} + +// Specifies the delegate of the sharing service. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402681-delegate?language=objc +func (s_ SharingService) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), valueObject) +} + // The title of the service in the Share menu. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402693-menuitemtitle?language=objc @@ -178,65 +194,49 @@ func (s_ SharingService) SetMenuItemTitle(value string) { objc.Call[objc.Void](s_, objc.Sel("setMenuItemTitle:"), value) } -// A permanent URL (permalink) that your app can use to access the post. [Full Topic] +// An array of NSURL objects representing the files that were shared. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402685-permanentlink?language=objc -func (s_ SharingService) PermanentLink() foundation.URL { - rv := objc.Call[foundation.URL](s_, objc.Sel("permanentLink")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402707-attachmentfileurls?language=objc +func (s_ SharingService) AttachmentFileURLs() []foundation.URL { + rv := objc.Call[[]foundation.URL](s_, objc.Sel("attachmentFileURLs")) return rv } -// The primary image representing the sharing service. [Full Topic] +// The title of the sharing service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402654-image?language=objc -func (s_ SharingService) Image() Image { - rv := objc.Call[Image](s_, objc.Sel("image")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402637-title?language=objc +func (s_ SharingService) Title() string { + rv := objc.Call[string](s_, objc.Sel("title")) return rv } -// An array containing the user handles of the desired recipients. [Full Topic] +// The subject of the post. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402652-recipients?language=objc -func (s_ SharingService) Recipients() []string { - rv := objc.Call[[]string](s_, objc.Sel("recipients")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402626-subject?language=objc +func (s_ SharingService) Subject() string { + rv := objc.Call[string](s_, objc.Sel("subject")) return rv } -// An array containing the user handles of the desired recipients. [Full Topic] +// The subject of the post. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402652-recipients?language=objc -func (s_ SharingService) SetRecipients(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setRecipients:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402626-subject?language=objc +func (s_ SharingService) SetSubject(value string) { + objc.Call[objc.Void](s_, objc.Sel("setSubject:"), value) } -// Specifies the delegate of the sharing service. [Full Topic] +// The primary image representing the sharing service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402681-delegate?language=objc -func (s_ SharingService) Delegate() SharingServiceDelegateObject { - rv := objc.Call[SharingServiceDelegateObject](s_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402654-image?language=objc +func (s_ SharingService) Image() Image { + rv := objc.Call[Image](s_, objc.Sel("image")) return rv } -// Specifies the delegate of the sharing service. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402681-delegate?language=objc -func (s_ SharingService) SetDelegate(value PSharingServiceDelegate) { - po0 := objc.WrapAsProtocol("NSSharingServiceDelegate", value) - objc.SetAssociatedObject(s_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), po0) -} - -// Specifies the delegate of the sharing service. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402681-delegate?language=objc -func (s_ SharingService) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), valueObject) -} - -// The message body as a string. [Full Topic] +// The account name used for posting on Twitter or Sina Weibo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402644-messagebody?language=objc -func (s_ SharingService) MessageBody() string { - rv := objc.Call[string](s_, objc.Sel("messageBody")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402683-accountname?language=objc +func (s_ SharingService) AccountName() string { + rv := objc.Call[string](s_, objc.Sel("accountName")) return rv } diff --git a/macos/appkit/sharing_service_delegate.gen.go b/macos/appkit/sharing_service_delegate.gen.go index af2b9177..f4357979 100644 --- a/macos/appkit/sharing_service_delegate.gen.go +++ b/macos/appkit/sharing_service_delegate.gen.go @@ -11,97 +11,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate?language=objc type PSharingServiceDelegate interface { - // optional - SharingServiceWillShareItems(sharingService SharingService, items []objc.Object) - HasSharingServiceWillShareItems() bool - - // optional - SharingServiceTransitionImageForShareItemContentRect(sharingService SharingService, item objc.Object, contentRect *foundation.Rect) Image - HasSharingServiceTransitionImageForShareItemContentRect() bool - - // optional - AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View - HasAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge() bool - // optional SharingServiceDidShareItems(sharingService SharingService, items []objc.Object) HasSharingServiceDidShareItems() bool // optional - SharingServiceSourceWindowForShareItemsSharingContentScope(sharingService SharingService, items []objc.Object, sharingContentScope *SharingContentScope) Window - HasSharingServiceSourceWindowForShareItemsSharingContentScope() bool - - // optional - SharingServiceSourceFrameOnScreenForShareItem(sharingService SharingService, item objc.Object) foundation.Rect - HasSharingServiceSourceFrameOnScreenForShareItem() bool - - // optional - SharingServiceDidFailToShareItemsError(sharingService SharingService, items []objc.Object, error foundation.Error) - HasSharingServiceDidFailToShareItemsError() bool + AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View + HasAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge() bool } // A delegate implementation builder for the [PSharingServiceDelegate] protocol. type SharingServiceDelegate struct { - _SharingServiceWillShareItems func(sharingService SharingService, items []objc.Object) - _SharingServiceTransitionImageForShareItemContentRect func(sharingService SharingService, item objc.Object, contentRect *foundation.Rect) Image - _AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge func(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View _SharingServiceDidShareItems func(sharingService SharingService, items []objc.Object) - _SharingServiceSourceWindowForShareItemsSharingContentScope func(sharingService SharingService, items []objc.Object, sharingContentScope *SharingContentScope) Window - _SharingServiceSourceFrameOnScreenForShareItem func(sharingService SharingService, item objc.Object) foundation.Rect - _SharingServiceDidFailToShareItemsError func(sharingService SharingService, items []objc.Object, error foundation.Error) -} - -func (di *SharingServiceDelegate) HasSharingServiceWillShareItems() bool { - return di._SharingServiceWillShareItems != nil -} - -// Invoked when the sharing service will share the specified items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402642-sharingservice?language=objc -func (di *SharingServiceDelegate) SetSharingServiceWillShareItems(f func(sharingService SharingService, items []objc.Object)) { - di._SharingServiceWillShareItems = f -} - -// Invoked when the sharing service will share the specified items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402642-sharingservice?language=objc -func (di *SharingServiceDelegate) SharingServiceWillShareItems(sharingService SharingService, items []objc.Object) { - di._SharingServiceWillShareItems(sharingService, items) -} -func (di *SharingServiceDelegate) HasSharingServiceTransitionImageForShareItemContentRect() bool { - return di._SharingServiceTransitionImageForShareItemContentRect != nil -} - -// Invoked to allow returning a custom transition image when sharing an item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402622-sharingservice?language=objc -func (di *SharingServiceDelegate) SetSharingServiceTransitionImageForShareItemContentRect(f func(sharingService SharingService, item objc.Object, contentRect *foundation.Rect) Image) { - di._SharingServiceTransitionImageForShareItemContentRect = f -} - -// Invoked to allow returning a custom transition image when sharing an item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402622-sharingservice?language=objc -func (di *SharingServiceDelegate) SharingServiceTransitionImageForShareItemContentRect(sharingService SharingService, item objc.Object, contentRect *foundation.Rect) Image { - return di._SharingServiceTransitionImageForShareItemContentRect(sharingService, item, contentRect) -} -func (di *SharingServiceDelegate) HasAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge() bool { - return di._AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge != nil -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1644711-anchoringviewforsharingservice?language=objc -func (di *SharingServiceDelegate) SetAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(f func(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View) { - di._AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge = f + _AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge func(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1644711-anchoringviewforsharingservice?language=objc -func (di *SharingServiceDelegate) AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View { - return di._AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService, positioningRect, preferredEdge) -} func (di *SharingServiceDelegate) HasSharingServiceDidShareItems() bool { return di._SharingServiceDidShareItems != nil } @@ -119,56 +43,22 @@ func (di *SharingServiceDelegate) SetSharingServiceDidShareItems(f func(sharingS func (di *SharingServiceDelegate) SharingServiceDidShareItems(sharingService SharingService, items []objc.Object) { di._SharingServiceDidShareItems(sharingService, items) } -func (di *SharingServiceDelegate) HasSharingServiceSourceWindowForShareItemsSharingContentScope() bool { - return di._SharingServiceSourceWindowForShareItemsSharingContentScope != nil -} - -// Returns the window that contained the share items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402679-sharingservice?language=objc -func (di *SharingServiceDelegate) SetSharingServiceSourceWindowForShareItemsSharingContentScope(f func(sharingService SharingService, items []objc.Object, sharingContentScope *SharingContentScope) Window) { - di._SharingServiceSourceWindowForShareItemsSharingContentScope = f -} - -// Returns the window that contained the share items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402679-sharingservice?language=objc -func (di *SharingServiceDelegate) SharingServiceSourceWindowForShareItemsSharingContentScope(sharingService SharingService, items []objc.Object, sharingContentScope *SharingContentScope) Window { - return di._SharingServiceSourceWindowForShareItemsSharingContentScope(sharingService, items, sharingContentScope) -} -func (di *SharingServiceDelegate) HasSharingServiceSourceFrameOnScreenForShareItem() bool { - return di._SharingServiceSourceFrameOnScreenForShareItem != nil -} - -// Invoked when the sharing service is performed and the sharing window is displayed, to present a transition between the original items and the sharing window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402695-sharingservice?language=objc -func (di *SharingServiceDelegate) SetSharingServiceSourceFrameOnScreenForShareItem(f func(sharingService SharingService, item objc.Object) foundation.Rect) { - di._SharingServiceSourceFrameOnScreenForShareItem = f -} - -// Invoked when the sharing service is performed and the sharing window is displayed, to present a transition between the original items and the sharing window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402695-sharingservice?language=objc -func (di *SharingServiceDelegate) SharingServiceSourceFrameOnScreenForShareItem(sharingService SharingService, item objc.Object) foundation.Rect { - return di._SharingServiceSourceFrameOnScreenForShareItem(sharingService, item) -} -func (di *SharingServiceDelegate) HasSharingServiceDidFailToShareItemsError() bool { - return di._SharingServiceDidFailToShareItemsError != nil +func (di *SharingServiceDelegate) HasAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge() bool { + return di._AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge != nil } -// Invoked when the sharing service encountered an error when sharing items. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402710-sharingservice?language=objc -func (di *SharingServiceDelegate) SetSharingServiceDidFailToShareItemsError(f func(sharingService SharingService, items []objc.Object, error foundation.Error)) { - di._SharingServiceDidFailToShareItemsError = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1644711-anchoringviewforsharingservice?language=objc +func (di *SharingServiceDelegate) SetAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(f func(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View) { + di._AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge = f } -// Invoked when the sharing service encountered an error when sharing items. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402710-sharingservice?language=objc -func (di *SharingServiceDelegate) SharingServiceDidFailToShareItemsError(sharingService SharingService, items []objc.Object, error foundation.Error) { - di._SharingServiceDidFailToShareItemsError(sharingService, items, error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1644711-anchoringviewforsharingservice?language=objc +func (di *SharingServiceDelegate) AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View { + return di._AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService, positioningRect, preferredEdge) } // ensure impl type implements protocol interface @@ -179,41 +69,6 @@ type SharingServiceDelegateObject struct { objc.Object } -func (s_ SharingServiceDelegateObject) HasSharingServiceWillShareItems() bool { - return s_.RespondsToSelector(objc.Sel("sharingService:willShareItems:")) -} - -// Invoked when the sharing service will share the specified items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402642-sharingservice?language=objc -func (s_ SharingServiceDelegateObject) SharingServiceWillShareItems(sharingService SharingService, items []objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("sharingService:willShareItems:"), sharingService, items) -} - -func (s_ SharingServiceDelegateObject) HasSharingServiceTransitionImageForShareItemContentRect() bool { - return s_.RespondsToSelector(objc.Sel("sharingService:transitionImageForShareItem:contentRect:")) -} - -// Invoked to allow returning a custom transition image when sharing an item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402622-sharingservice?language=objc -func (s_ SharingServiceDelegateObject) SharingServiceTransitionImageForShareItemContentRect(sharingService SharingService, item objc.Object, contentRect *foundation.Rect) Image { - rv := objc.Call[Image](s_, objc.Sel("sharingService:transitionImageForShareItem:contentRect:"), sharingService, item, contentRect) - return rv -} - -func (s_ SharingServiceDelegateObject) HasAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge() bool { - return s_.RespondsToSelector(objc.Sel("anchoringViewForSharingService:showRelativeToRect:preferredEdge:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1644711-anchoringviewforsharingservice?language=objc -func (s_ SharingServiceDelegateObject) AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View { - rv := objc.Call[View](s_, objc.Sel("anchoringViewForSharingService:showRelativeToRect:preferredEdge:"), sharingService, positioningRect, preferredEdge) - return rv -} - func (s_ SharingServiceDelegateObject) HasSharingServiceDidShareItems() bool { return s_.RespondsToSelector(objc.Sel("sharingService:didShareItems:")) } @@ -225,37 +80,14 @@ func (s_ SharingServiceDelegateObject) SharingServiceDidShareItems(sharingServic objc.Call[objc.Void](s_, objc.Sel("sharingService:didShareItems:"), sharingService, items) } -func (s_ SharingServiceDelegateObject) HasSharingServiceSourceWindowForShareItemsSharingContentScope() bool { - return s_.RespondsToSelector(objc.Sel("sharingService:sourceWindowForShareItems:sharingContentScope:")) -} - -// Returns the window that contained the share items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402679-sharingservice?language=objc -func (s_ SharingServiceDelegateObject) SharingServiceSourceWindowForShareItemsSharingContentScope(sharingService SharingService, items []objc.Object, sharingContentScope *SharingContentScope) Window { - rv := objc.Call[Window](s_, objc.Sel("sharingService:sourceWindowForShareItems:sharingContentScope:"), sharingService, items, sharingContentScope) - return rv -} - -func (s_ SharingServiceDelegateObject) HasSharingServiceSourceFrameOnScreenForShareItem() bool { - return s_.RespondsToSelector(objc.Sel("sharingService:sourceFrameOnScreenForShareItem:")) +func (s_ SharingServiceDelegateObject) HasAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge() bool { + return s_.RespondsToSelector(objc.Sel("anchoringViewForSharingService:showRelativeToRect:preferredEdge:")) } -// Invoked when the sharing service is performed and the sharing window is displayed, to present a transition between the original items and the sharing window. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402695-sharingservice?language=objc -func (s_ SharingServiceDelegateObject) SharingServiceSourceFrameOnScreenForShareItem(sharingService SharingService, item objc.Object) foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("sharingService:sourceFrameOnScreenForShareItem:"), sharingService, item) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1644711-anchoringviewforsharingservice?language=objc +func (s_ SharingServiceDelegateObject) AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View { + rv := objc.Call[View](s_, objc.Sel("anchoringViewForSharingService:showRelativeToRect:preferredEdge:"), sharingService, positioningRect, preferredEdge) return rv } - -func (s_ SharingServiceDelegateObject) HasSharingServiceDidFailToShareItemsError() bool { - return s_.RespondsToSelector(objc.Sel("sharingService:didFailToShareItems:error:")) -} - -// Invoked when the sharing service encountered an error when sharing items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402710-sharingservice?language=objc -func (s_ SharingServiceDelegateObject) SharingServiceDidFailToShareItemsError(sharingService SharingService, items []objc.Object, error foundation.Error) { - objc.Call[objc.Void](s_, objc.Sel("sharingService:didFailToShareItems:error:"), sharingService, items, error) -} diff --git a/macos/appkit/sharing_service_picker_delegate.gen.go b/macos/appkit/sharing_service_picker_delegate.gen.go index 37c14882..ff447743 100644 --- a/macos/appkit/sharing_service_picker_delegate.gen.go +++ b/macos/appkit/sharing_service_picker_delegate.gen.go @@ -10,43 +10,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickerdelegate?language=objc type PSharingServicePickerDelegate interface { - // optional - SharingServicePickerSharingServicesForItemsProposedSharingServices(sharingServicePicker SharingServicePicker, items []objc.Object, proposedServices []SharingService) []SharingService - HasSharingServicePickerSharingServicesForItemsProposedSharingServices() bool - // optional SharingServicePickerDidChooseSharingService(sharingServicePicker SharingServicePicker, service SharingService) HasSharingServicePickerDidChooseSharingService() bool - - // optional - SharingServicePickerDelegateForSharingService(sharingServicePicker SharingServicePicker, sharingService SharingService) SharingServiceDelegateObject - HasSharingServicePickerDelegateForSharingService() bool } // A delegate implementation builder for the [PSharingServicePickerDelegate] protocol. type SharingServicePickerDelegate struct { - _SharingServicePickerSharingServicesForItemsProposedSharingServices func(sharingServicePicker SharingServicePicker, items []objc.Object, proposedServices []SharingService) []SharingService - _SharingServicePickerDidChooseSharingService func(sharingServicePicker SharingServicePicker, service SharingService) - _SharingServicePickerDelegateForSharingService func(sharingServicePicker SharingServicePicker, sharingService SharingService) SharingServiceDelegateObject -} - -func (di *SharingServicePickerDelegate) HasSharingServicePickerSharingServicesForItemsProposedSharingServices() bool { - return di._SharingServicePickerSharingServicesForItemsProposedSharingServices != nil -} - -// Asks the delegate to specify which services to make available from the sharing service picker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickerdelegate/1402664-sharingservicepicker?language=objc -func (di *SharingServicePickerDelegate) SetSharingServicePickerSharingServicesForItemsProposedSharingServices(f func(sharingServicePicker SharingServicePicker, items []objc.Object, proposedServices []SharingService) []SharingService) { - di._SharingServicePickerSharingServicesForItemsProposedSharingServices = f + _SharingServicePickerDidChooseSharingService func(sharingServicePicker SharingServicePicker, service SharingService) } -// Asks the delegate to specify which services to make available from the sharing service picker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickerdelegate/1402664-sharingservicepicker?language=objc -func (di *SharingServicePickerDelegate) SharingServicePickerSharingServicesForItemsProposedSharingServices(sharingServicePicker SharingServicePicker, items []objc.Object, proposedServices []SharingService) []SharingService { - return di._SharingServicePickerSharingServicesForItemsProposedSharingServices(sharingServicePicker, items, proposedServices) -} func (di *SharingServicePickerDelegate) HasSharingServicePickerDidChooseSharingService() bool { return di._SharingServicePickerDidChooseSharingService != nil } @@ -64,23 +37,6 @@ func (di *SharingServicePickerDelegate) SetSharingServicePickerDidChooseSharingS func (di *SharingServicePickerDelegate) SharingServicePickerDidChooseSharingService(sharingServicePicker SharingServicePicker, service SharingService) { di._SharingServicePickerDidChooseSharingService(sharingServicePicker, service) } -func (di *SharingServicePickerDelegate) HasSharingServicePickerDelegateForSharingService() bool { - return di._SharingServicePickerDelegateForSharingService != nil -} - -// Asks your delegate to provide an object that the selected sharing service can use as its delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickerdelegate/1402608-sharingservicepicker?language=objc -func (di *SharingServicePickerDelegate) SetSharingServicePickerDelegateForSharingService(f func(sharingServicePicker SharingServicePicker, sharingService SharingService) SharingServiceDelegateObject) { - di._SharingServicePickerDelegateForSharingService = f -} - -// Asks your delegate to provide an object that the selected sharing service can use as its delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickerdelegate/1402608-sharingservicepicker?language=objc -func (di *SharingServicePickerDelegate) SharingServicePickerDelegateForSharingService(sharingServicePicker SharingServicePicker, sharingService SharingService) SharingServiceDelegateObject { - return di._SharingServicePickerDelegateForSharingService(sharingServicePicker, sharingService) -} // ensure impl type implements protocol interface var _ PSharingServicePickerDelegate = (*SharingServicePickerDelegateObject)(nil) @@ -90,18 +46,6 @@ type SharingServicePickerDelegateObject struct { objc.Object } -func (s_ SharingServicePickerDelegateObject) HasSharingServicePickerSharingServicesForItemsProposedSharingServices() bool { - return s_.RespondsToSelector(objc.Sel("sharingServicePicker:sharingServicesForItems:proposedSharingServices:")) -} - -// Asks the delegate to specify which services to make available from the sharing service picker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickerdelegate/1402664-sharingservicepicker?language=objc -func (s_ SharingServicePickerDelegateObject) SharingServicePickerSharingServicesForItemsProposedSharingServices(sharingServicePicker SharingServicePicker, items []objc.Object, proposedServices []SharingService) []SharingService { - rv := objc.Call[[]SharingService](s_, objc.Sel("sharingServicePicker:sharingServicesForItems:proposedSharingServices:"), sharingServicePicker, items, proposedServices) - return rv -} - func (s_ SharingServicePickerDelegateObject) HasSharingServicePickerDidChooseSharingService() bool { return s_.RespondsToSelector(objc.Sel("sharingServicePicker:didChooseSharingService:")) } @@ -112,15 +56,3 @@ func (s_ SharingServicePickerDelegateObject) HasSharingServicePickerDidChooseSha func (s_ SharingServicePickerDelegateObject) SharingServicePickerDidChooseSharingService(sharingServicePicker SharingServicePicker, service SharingService) { objc.Call[objc.Void](s_, objc.Sel("sharingServicePicker:didChooseSharingService:"), sharingServicePicker, service) } - -func (s_ SharingServicePickerDelegateObject) HasSharingServicePickerDelegateForSharingService() bool { - return s_.RespondsToSelector(objc.Sel("sharingServicePicker:delegateForSharingService:")) -} - -// Asks your delegate to provide an object that the selected sharing service can use as its delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickerdelegate/1402608-sharingservicepicker?language=objc -func (s_ SharingServicePickerDelegateObject) SharingServicePickerDelegateForSharingService(sharingServicePicker SharingServicePicker, sharingService SharingService) SharingServiceDelegateObject { - rv := objc.Call[SharingServiceDelegateObject](s_, objc.Sel("sharingServicePicker:delegateForSharingService:"), sharingServicePicker, sharingService) - return rv -} diff --git a/macos/appkit/slider.gen.go b/macos/appkit/slider.gen.go index b22ac7c0..f275650d 100644 --- a/macos/appkit/slider.gen.go +++ b/macos/appkit/slider.gen.go @@ -19,29 +19,29 @@ type _SliderClass struct { // An interface definition for the [Slider] class. type ISlider interface { IControl - TickMarkValueAtIndex(index int) float64 + RectOfTickMarkAtIndex(index int) foundation.Rect ClosestTickMarkValueToValue(value float64) float64 + TickMarkValueAtIndex(index int) float64 IndexOfTickMarkAtPoint(point foundation.Point) int - RectOfTickMarkAtIndex(index int) foundation.Rect + AltIncrementValue() float64 + SetAltIncrementValue(value float64) TickMarkPosition() TickMarkPosition SetTickMarkPosition(value TickMarkPosition) - AllowsTickMarkValuesOnly() bool - SetAllowsTickMarkValuesOnly(value bool) - MaxValue() float64 - SetMaxValue(value float64) KnobThickness() float64 - MinValue() float64 - SetMinValue(value float64) - NumberOfTickMarks() int - SetNumberOfTickMarks(value int) SliderType() SliderType SetSliderType(value SliderType) - AltIncrementValue() float64 - SetAltIncrementValue(value float64) + MinValue() float64 + SetMinValue(value float64) + MaxValue() float64 + SetMaxValue(value float64) TrackFillColor() Color SetTrackFillColor(value IColor) IsVertical() bool SetVertical(value bool) + AllowsTickMarkValuesOnly() bool + SetAllowsTickMarkValuesOnly(value bool) + NumberOfTickMarks() int + SetNumberOfTickMarks(value int) } // A display of a bar representing a continuous range of numerical values and a knob representing the currently selected value. [Full Topic] @@ -115,11 +115,11 @@ func NewSliderWithFrame(frameRect foundation.Rect) Slider { return instance } -// Returns the slider’s value represented by the tick mark at the specified index. [Full Topic] +// Returns the bounding rectangle of the tick mark at the given index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1527230-tickmarkvalueatindex?language=objc -func (s_ Slider) TickMarkValueAtIndex(index int) float64 { - rv := objc.Call[float64](s_, objc.Sel("tickMarkValueAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532922-rectoftickmarkatindex?language=objc +func (s_ Slider) RectOfTickMarkAtIndex(index int) foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("rectOfTickMarkAtIndex:"), index) return rv } @@ -131,6 +131,14 @@ func (s_ Slider) ClosestTickMarkValueToValue(value float64) float64 { return rv } +// Returns the slider’s value represented by the tick mark at the specified index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1527230-tickmarkvalueatindex?language=objc +func (s_ Slider) TickMarkValueAtIndex(index int) float64 { + rv := objc.Call[float64](s_, objc.Sel("tickMarkValueAtIndex:"), index) + return rv +} + // Returns the index of the tick mark closest to the location of the slider represented by the given point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1526763-indexoftickmarkatpoint?language=objc @@ -139,14 +147,21 @@ func (s_ Slider) IndexOfTickMarkAtPoint(point foundation.Point) int { return rv } -// Returns the bounding rectangle of the tick mark at the given index. [Full Topic] +// The amount by which the slider changes its value when the user Option-drags the slider knob. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532922-rectoftickmarkatindex?language=objc -func (s_ Slider) RectOfTickMarkAtIndex(index int) foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("rectOfTickMarkAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532901-altincrementvalue?language=objc +func (s_ Slider) AltIncrementValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("altIncrementValue")) return rv } +// The amount by which the slider changes its value when the user Option-drags the slider knob. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532901-altincrementvalue?language=objc +func (s_ Slider) SetAltIncrementValue(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setAltIncrementValue:"), value) +} + // Determines where the slider’s tick marks are displayed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1529657-tickmarkposition?language=objc @@ -162,42 +177,27 @@ func (s_ Slider) SetTickMarkPosition(value TickMarkPosition) { objc.Call[objc.Void](s_, objc.Sel("setTickMarkPosition:"), value) } -// A Boolean value that indicates whether the slider fixes its values to those values represented by its tick marks. [Full Topic] +// The knob’s thickness, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1526898-allowstickmarkvaluesonly?language=objc -func (s_ Slider) AllowsTickMarkValuesOnly() bool { - rv := objc.Call[bool](s_, objc.Sel("allowsTickMarkValuesOnly")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532909-knobthickness?language=objc +func (s_ Slider) KnobThickness() float64 { + rv := objc.Call[float64](s_, objc.Sel("knobThickness")) return rv } -// A Boolean value that indicates whether the slider fixes its values to those values represented by its tick marks. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1526898-allowstickmarkvaluesonly?language=objc -func (s_ Slider) SetAllowsTickMarkValuesOnly(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setAllowsTickMarkValuesOnly:"), value) -} - -// The maximum value the slider can send to its target. [Full Topic] +// The type of the slider, such as vertical or circular. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532919-maxvalue?language=objc -func (s_ Slider) MaxValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("maxValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532924-slidertype?language=objc +func (s_ Slider) SliderType() SliderType { + rv := objc.Call[SliderType](s_, objc.Sel("sliderType")) return rv } -// The maximum value the slider can send to its target. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532919-maxvalue?language=objc -func (s_ Slider) SetMaxValue(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMaxValue:"), value) -} - -// The knob’s thickness, in pixels. [Full Topic] +// The type of the slider, such as vertical or circular. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532909-knobthickness?language=objc -func (s_ Slider) KnobThickness() float64 { - rv := objc.Call[float64](s_, objc.Sel("knobThickness")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532924-slidertype?language=objc +func (s_ Slider) SetSliderType(value SliderType) { + objc.Call[objc.Void](s_, objc.Sel("setSliderType:"), value) } // The minimum value the slider can send to its target. [Full Topic] @@ -215,49 +215,19 @@ func (s_ Slider) SetMinValue(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMinValue:"), value) } -// The number of tick marks associated with the slider. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1524268-numberoftickmarks?language=objc -func (s_ Slider) NumberOfTickMarks() int { - rv := objc.Call[int](s_, objc.Sel("numberOfTickMarks")) - return rv -} - -// The number of tick marks associated with the slider. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1524268-numberoftickmarks?language=objc -func (s_ Slider) SetNumberOfTickMarks(value int) { - objc.Call[objc.Void](s_, objc.Sel("setNumberOfTickMarks:"), value) -} - -// The type of the slider, such as vertical or circular. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532924-slidertype?language=objc -func (s_ Slider) SliderType() SliderType { - rv := objc.Call[SliderType](s_, objc.Sel("sliderType")) - return rv -} - -// The type of the slider, such as vertical or circular. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532924-slidertype?language=objc -func (s_ Slider) SetSliderType(value SliderType) { - objc.Call[objc.Void](s_, objc.Sel("setSliderType:"), value) -} - -// The amount by which the slider changes its value when the user Option-drags the slider knob. [Full Topic] +// The maximum value the slider can send to its target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532901-altincrementvalue?language=objc -func (s_ Slider) AltIncrementValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("altIncrementValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532919-maxvalue?language=objc +func (s_ Slider) MaxValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("maxValue")) return rv } -// The amount by which the slider changes its value when the user Option-drags the slider knob. [Full Topic] +// The maximum value the slider can send to its target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532901-altincrementvalue?language=objc -func (s_ Slider) SetAltIncrementValue(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setAltIncrementValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1532919-maxvalue?language=objc +func (s_ Slider) SetMaxValue(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMaxValue:"), value) } // The color of the filled portion of the slider track, in appearances that support it. [Full Topic] @@ -289,3 +259,33 @@ func (s_ Slider) IsVertical() bool { func (s_ Slider) SetVertical(value bool) { objc.Call[objc.Void](s_, objc.Sel("setVertical:"), value) } + +// A Boolean value that indicates whether the slider fixes its values to those values represented by its tick marks. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1526898-allowstickmarkvaluesonly?language=objc +func (s_ Slider) AllowsTickMarkValuesOnly() bool { + rv := objc.Call[bool](s_, objc.Sel("allowsTickMarkValuesOnly")) + return rv +} + +// A Boolean value that indicates whether the slider fixes its values to those values represented by its tick marks. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1526898-allowstickmarkvaluesonly?language=objc +func (s_ Slider) SetAllowsTickMarkValuesOnly(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setAllowsTickMarkValuesOnly:"), value) +} + +// The number of tick marks associated with the slider. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1524268-numberoftickmarks?language=objc +func (s_ Slider) NumberOfTickMarks() int { + rv := objc.Call[int](s_, objc.Sel("numberOfTickMarks")) + return rv +} + +// The number of tick marks associated with the slider. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslider/1524268-numberoftickmarks?language=objc +func (s_ Slider) SetNumberOfTickMarks(value int) { + objc.Call[objc.Void](s_, objc.Sel("setNumberOfTickMarks:"), value) +} diff --git a/macos/appkit/slider_accessory.gen.go b/macos/appkit/slider_accessory.gen.go index 982bf5ce..18ba58ac 100644 --- a/macos/appkit/slider_accessory.gen.go +++ b/macos/appkit/slider_accessory.gen.go @@ -18,10 +18,10 @@ type _SliderAccessoryClass struct { // An interface definition for the [SliderAccessory] class. type ISliderAccessory interface { objc.IObject - IsEnabled() bool - SetEnabled(value bool) Behavior() SliderAccessoryBehavior SetBehavior(value ISliderAccessoryBehavior) + IsEnabled() bool + SetEnabled(value bool) } // [Full Topic] @@ -74,30 +74,30 @@ func SliderAccessory_AccessoryWithImage(image IImage) SliderAccessory { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessory/2544779-enabled?language=objc -func (s_ SliderAccessory) IsEnabled() bool { - rv := objc.Call[bool](s_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessory/2544656-behavior?language=objc +func (s_ SliderAccessory) Behavior() SliderAccessoryBehavior { + rv := objc.Call[SliderAccessoryBehavior](s_, objc.Sel("behavior")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessory/2544779-enabled?language=objc -func (s_ SliderAccessory) SetEnabled(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessory/2544656-behavior?language=objc +func (s_ SliderAccessory) SetBehavior(value ISliderAccessoryBehavior) { + objc.Call[objc.Void](s_, objc.Sel("setBehavior:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessory/2544656-behavior?language=objc -func (s_ SliderAccessory) Behavior() SliderAccessoryBehavior { - rv := objc.Call[SliderAccessoryBehavior](s_, objc.Sel("behavior")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessory/2544779-enabled?language=objc +func (s_ SliderAccessory) IsEnabled() bool { + rv := objc.Call[bool](s_, objc.Sel("isEnabled")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessory/2544656-behavior?language=objc -func (s_ SliderAccessory) SetBehavior(value ISliderAccessoryBehavior) { - objc.Call[objc.Void](s_, objc.Sel("setBehavior:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessory/2544779-enabled?language=objc +func (s_ SliderAccessory) SetEnabled(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setEnabled:"), value) } diff --git a/macos/appkit/slider_accessory_behavior.gen.go b/macos/appkit/slider_accessory_behavior.gen.go index 4ffdf025..cc2349b4 100644 --- a/macos/appkit/slider_accessory_behavior.gen.go +++ b/macos/appkit/slider_accessory_behavior.gen.go @@ -54,13 +54,6 @@ func (s_ SliderAccessoryBehavior) Init() SliderAccessoryBehavior { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessorybehavior/2544759-handleaction?language=objc -func (s_ SliderAccessoryBehavior) HandleAction(sender ISliderAccessory) { - objc.Call[objc.Void](s_, objc.Sel("handleAction:"), sender) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessorybehavior/2544778-behaviorwithhandler?language=objc @@ -93,17 +86,9 @@ func SliderAccessoryBehavior_BehaviorWithTargetAction(target objc.IObject, actio // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessorybehavior/2544780-automaticbehavior?language=objc -func (sc _SliderAccessoryBehaviorClass) AutomaticBehavior() SliderAccessoryBehavior { - rv := objc.Call[SliderAccessoryBehavior](sc, objc.Sel("automaticBehavior")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessorybehavior/2544780-automaticbehavior?language=objc -func SliderAccessoryBehavior_AutomaticBehavior() SliderAccessoryBehavior { - return SliderAccessoryBehaviorClass.AutomaticBehavior() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessorybehavior/2544759-handleaction?language=objc +func (s_ SliderAccessoryBehavior) HandleAction(sender ISliderAccessory) { + objc.Call[objc.Void](s_, objc.Sel("handleAction:"), sender) } // [Full Topic] @@ -121,6 +106,21 @@ func SliderAccessoryBehavior_ValueStepBehavior() SliderAccessoryBehavior { return SliderAccessoryBehaviorClass.ValueStepBehavior() } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessorybehavior/2544780-automaticbehavior?language=objc +func (sc _SliderAccessoryBehaviorClass) AutomaticBehavior() SliderAccessoryBehavior { + rv := objc.Call[SliderAccessoryBehavior](sc, objc.Sel("automaticBehavior")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessorybehavior/2544780-automaticbehavior?language=objc +func SliderAccessoryBehavior_AutomaticBehavior() SliderAccessoryBehavior { + return SliderAccessoryBehaviorClass.AutomaticBehavior() +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessorybehavior/2544659-valueresetbehavior?language=objc diff --git a/macos/appkit/slider_cell.gen.go b/macos/appkit/slider_cell.gen.go index 4cc9becc..f83620b4 100644 --- a/macos/appkit/slider_cell.gen.go +++ b/macos/appkit/slider_cell.gen.go @@ -19,34 +19,33 @@ type _SliderCellClass struct { // An interface definition for the [SliderCell] class. type ISliderCell interface { IActionCell - TickMarkValueAtIndex(index int) float64 - DrawKnob_(knobRect foundation.Rect) RectOfTickMarkAtIndex(index int) foundation.Rect - ClosestTickMarkValueToValue(value float64) float64 - IndexOfTickMarkAtPoint(point foundation.Point) int - DrawBarInsideFlipped(rect foundation.Rect, flipped bool) - DrawTickMarks() BarRectFlipped(flipped bool) foundation.Rect - DrawKnob() + DrawTickMarks() + DrawBarInsideFlipped(rect foundation.Rect, flipped bool) + DrawKnob(knobRect foundation.Rect) + ClosestTickMarkValueToValue(value float64) float64 + TickMarkValueAtIndex(index int) float64 KnobRectFlipped(flipped bool) foundation.Rect - TrackRect() foundation.Rect - AllowsTickMarkValuesOnly() bool - SetAllowsTickMarkValuesOnly(value bool) - MinValue() float64 - SetMinValue(value float64) + IndexOfTickMarkAtPoint(point foundation.Point) int + AltIncrementValue() float64 + SetAltIncrementValue(value float64) TickMarkPosition() TickMarkPosition SetTickMarkPosition(value TickMarkPosition) KnobThickness() float64 - NumberOfTickMarks() int - SetNumberOfTickMarks(value int) - IsVertical() bool - SetVertical(value bool) - MaxValue() float64 - SetMaxValue(value float64) - AltIncrementValue() float64 - SetAltIncrementValue(value float64) + TrackRect() foundation.Rect SliderType() SliderType SetSliderType(value SliderType) + MinValue() float64 + SetMinValue(value float64) + MaxValue() float64 + SetMaxValue(value float64) + IsVertical() bool + SetVertical(value bool) + AllowsTickMarkValuesOnly() bool + SetAllowsTickMarkValuesOnly(value bool) + NumberOfTickMarks() int + SetNumberOfTickMarks(value int) } // The appearance and behavior of an NSSlider object. [Full Topic] @@ -110,21 +109,6 @@ func NewSliderCellTextCell(string_ string) SliderCell { return instance } -// Returns the receiver’s value represented by the tick mark at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444635-tickmarkvalueatindex?language=objc -func (s_ SliderCell) TickMarkValueAtIndex(index int) float64 { - rv := objc.Call[float64](s_, objc.Sel("tickMarkValueAtIndex:"), index) - return rv -} - -// Draws the slider knob in the given rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444600-drawknob?language=objc -func (s_ SliderCell) DrawKnob_(knobRect foundation.Rect) { - objc.Call[objc.Void](s_, objc.Sel("drawKnob:"), knobRect) -} - // Returns the bounding rectangle of the tick mark at the specified index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444645-rectoftickmarkatindex?language=objc @@ -133,20 +117,19 @@ func (s_ SliderCell) RectOfTickMarkAtIndex(index int) foundation.Rect { return rv } -// Returns the value of the tick mark closest to the specified value. [Full Topic] +// Returns the rectangle in which the bar is drawn. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444627-closesttickmarkvaluetovalue?language=objc -func (s_ SliderCell) ClosestTickMarkValueToValue(value float64) float64 { - rv := objc.Call[float64](s_, objc.Sel("closestTickMarkValueToValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444629-barrectflipped?language=objc +func (s_ SliderCell) BarRectFlipped(flipped bool) foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("barRectFlipped:"), flipped) return rv } -// Returns the index of the tick mark closest to the location of the slider represented by the specified point. [Full Topic] +// Draws the slider’s tick marks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444614-indexoftickmarkatpoint?language=objc -func (s_ SliderCell) IndexOfTickMarkAtPoint(point foundation.Point) int { - rv := objc.Call[int](s_, objc.Sel("indexOfTickMarkAtPoint:"), point) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444633-drawtickmarks?language=objc +func (s_ SliderCell) DrawTickMarks() { + objc.Call[objc.Void](s_, objc.Sel("drawTickMarks")) } // Draws the slider’s bar—but not its bezel or knob—inside the specified rectangle. [Full Topic] @@ -156,26 +139,27 @@ func (s_ SliderCell) DrawBarInsideFlipped(rect foundation.Rect, flipped bool) { objc.Call[objc.Void](s_, objc.Sel("drawBarInside:flipped:"), rect, flipped) } -// Draws the slider’s tick marks. [Full Topic] +// Draws the slider knob in the given rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444633-drawtickmarks?language=objc -func (s_ SliderCell) DrawTickMarks() { - objc.Call[objc.Void](s_, objc.Sel("drawTickMarks")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444600-drawknob?language=objc +func (s_ SliderCell) DrawKnob(knobRect foundation.Rect) { + objc.Call[objc.Void](s_, objc.Sel("drawKnob:"), knobRect) } -// Returns the rectangle in which the bar is drawn. [Full Topic] +// Returns the value of the tick mark closest to the specified value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444629-barrectflipped?language=objc -func (s_ SliderCell) BarRectFlipped(flipped bool) foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("barRectFlipped:"), flipped) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444627-closesttickmarkvaluetovalue?language=objc +func (s_ SliderCell) ClosestTickMarkValueToValue(value float64) float64 { + rv := objc.Call[float64](s_, objc.Sel("closestTickMarkValueToValue:"), value) return rv } -// Calculates the rectangle in which the knob should be drawn, then calls [appkit/nsslidercell/drawknob] to actually draw the knob. [Full Topic] +// Returns the receiver’s value represented by the tick mark at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444606-drawknob?language=objc -func (s_ SliderCell) DrawKnob() { - objc.Call[objc.Void](s_, objc.Sel("drawKnob")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444635-tickmarkvalueatindex?language=objc +func (s_ SliderCell) TickMarkValueAtIndex(index int) float64 { + rv := objc.Call[float64](s_, objc.Sel("tickMarkValueAtIndex:"), index) + return rv } // Returns the rectangle in which the slider knob is drawn. [Full Topic] @@ -186,42 +170,27 @@ func (s_ SliderCell) KnobRectFlipped(flipped bool) foundation.Rect { return rv } -// The rectangle within which the cell tracks the pointer while the mouse button is down. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444583-trackrect?language=objc -func (s_ SliderCell) TrackRect() foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("trackRect")) - return rv -} - -// A Boolean value indicating whether the receiver fixes its values to those values represented by its tick marks. [Full Topic] +// Returns the index of the tick mark closest to the location of the slider represented by the specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444604-allowstickmarkvaluesonly?language=objc -func (s_ SliderCell) AllowsTickMarkValuesOnly() bool { - rv := objc.Call[bool](s_, objc.Sel("allowsTickMarkValuesOnly")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444614-indexoftickmarkatpoint?language=objc +func (s_ SliderCell) IndexOfTickMarkAtPoint(point foundation.Point) int { + rv := objc.Call[int](s_, objc.Sel("indexOfTickMarkAtPoint:"), point) return rv } -// A Boolean value indicating whether the receiver fixes its values to those values represented by its tick marks. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444604-allowstickmarkvaluesonly?language=objc -func (s_ SliderCell) SetAllowsTickMarkValuesOnly(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setAllowsTickMarkValuesOnly:"), value) -} - -// The minimum value the slider can send to its target. [Full Topic] +// The amount by which the slider changes its value when the user Option-drags the knob. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444641-minvalue?language=objc -func (s_ SliderCell) MinValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("minValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444596-altincrementvalue?language=objc +func (s_ SliderCell) AltIncrementValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("altIncrementValue")) return rv } -// The minimum value the slider can send to its target. [Full Topic] +// The amount by which the slider changes its value when the user Option-drags the knob. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444641-minvalue?language=objc -func (s_ SliderCell) SetMinValue(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMinValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444596-altincrementvalue?language=objc +func (s_ SliderCell) SetAltIncrementValue(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setAltIncrementValue:"), value) } // The position of the tick marks relative to the receiver. [Full Topic] @@ -247,34 +216,42 @@ func (s_ SliderCell) KnobThickness() float64 { return rv } -// The number of tick marks associated with the slider, including the tick marks assigned to the minimum and maximum values. [Full Topic] +// The rectangle within which the cell tracks the pointer while the mouse button is down. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444621-numberoftickmarks?language=objc -func (s_ SliderCell) NumberOfTickMarks() int { - rv := objc.Call[int](s_, objc.Sel("numberOfTickMarks")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444583-trackrect?language=objc +func (s_ SliderCell) TrackRect() foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("trackRect")) return rv } -// The number of tick marks associated with the slider, including the tick marks assigned to the minimum and maximum values. [Full Topic] +// The slider type, either linear or circular. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444621-numberoftickmarks?language=objc -func (s_ SliderCell) SetNumberOfTickMarks(value int) { - objc.Call[objc.Void](s_, objc.Sel("setNumberOfTickMarks:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444598-slidertype?language=objc +func (s_ SliderCell) SliderType() SliderType { + rv := objc.Call[SliderType](s_, objc.Sel("sliderType")) + return rv } -// An integer indicating the orientation (vertical or horizontal) of the slider. [Full Topic] +// The slider type, either linear or circular. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444602-vertical?language=objc -func (s_ SliderCell) IsVertical() bool { - rv := objc.Call[bool](s_, objc.Sel("isVertical")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444598-slidertype?language=objc +func (s_ SliderCell) SetSliderType(value SliderType) { + objc.Call[objc.Void](s_, objc.Sel("setSliderType:"), value) +} + +// The minimum value the slider can send to its target. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444641-minvalue?language=objc +func (s_ SliderCell) MinValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("minValue")) return rv } -// An integer indicating the orientation (vertical or horizontal) of the slider. [Full Topic] +// The minimum value the slider can send to its target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444602-vertical?language=objc -func (s_ SliderCell) SetVertical(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setVertical:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444641-minvalue?language=objc +func (s_ SliderCell) SetMinValue(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMinValue:"), value) } // The maximum value the slider can send to its target. [Full Topic] @@ -292,32 +269,47 @@ func (s_ SliderCell) SetMaxValue(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMaxValue:"), value) } -// The amount by which the slider changes its value when the user Option-drags the knob. [Full Topic] +// An integer indicating the orientation (vertical or horizontal) of the slider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444596-altincrementvalue?language=objc -func (s_ SliderCell) AltIncrementValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("altIncrementValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444602-vertical?language=objc +func (s_ SliderCell) IsVertical() bool { + rv := objc.Call[bool](s_, objc.Sel("isVertical")) return rv } -// The amount by which the slider changes its value when the user Option-drags the knob. [Full Topic] +// An integer indicating the orientation (vertical or horizontal) of the slider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444596-altincrementvalue?language=objc -func (s_ SliderCell) SetAltIncrementValue(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setAltIncrementValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444602-vertical?language=objc +func (s_ SliderCell) SetVertical(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setVertical:"), value) } -// The slider type, either linear or circular. [Full Topic] +// A Boolean value indicating whether the receiver fixes its values to those values represented by its tick marks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444598-slidertype?language=objc -func (s_ SliderCell) SliderType() SliderType { - rv := objc.Call[SliderType](s_, objc.Sel("sliderType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444604-allowstickmarkvaluesonly?language=objc +func (s_ SliderCell) AllowsTickMarkValuesOnly() bool { + rv := objc.Call[bool](s_, objc.Sel("allowsTickMarkValuesOnly")) return rv } -// The slider type, either linear or circular. [Full Topic] +// A Boolean value indicating whether the receiver fixes its values to those values represented by its tick marks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444598-slidertype?language=objc -func (s_ SliderCell) SetSliderType(value SliderType) { - objc.Call[objc.Void](s_, objc.Sel("setSliderType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444604-allowstickmarkvaluesonly?language=objc +func (s_ SliderCell) SetAllowsTickMarkValuesOnly(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setAllowsTickMarkValuesOnly:"), value) +} + +// The number of tick marks associated with the slider, including the tick marks assigned to the minimum and maximum values. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444621-numberoftickmarks?language=objc +func (s_ SliderCell) NumberOfTickMarks() int { + rv := objc.Call[int](s_, objc.Sel("numberOfTickMarks")) + return rv +} + +// The number of tick marks associated with the slider, including the tick marks assigned to the minimum and maximum values. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidercell/1444621-numberoftickmarks?language=objc +func (s_ SliderCell) SetNumberOfTickMarks(value int) { + objc.Call[objc.Void](s_, objc.Sel("setNumberOfTickMarks:"), value) } diff --git a/macos/appkit/slider_touch_bar_item.gen.go b/macos/appkit/slider_touch_bar_item.gen.go index ad3e52cb..4c07fa71 100644 --- a/macos/appkit/slider_touch_bar_item.gen.go +++ b/macos/appkit/slider_touch_bar_item.gen.go @@ -20,25 +20,25 @@ type ISliderTouchBarItem interface { ITouchBarItem MinimumSliderWidth() float64 SetMinimumSliderWidth(value float64) + Target() objc.Object + SetTarget(value objc.IObject) + SetCustomizationLabel(value string) + Action() objc.Selector + SetAction(value objc.Selector) Slider() Slider SetSlider(value ISlider) - DoubleValue() float64 - SetDoubleValue(value float64) - Label() string - SetLabel(value string) MaximumValueAccessory() SliderAccessory SetMaximumValueAccessory(value ISliderAccessory) - MinimumValueAccessory() SliderAccessory - SetMinimumValueAccessory(value ISliderAccessory) - SetCustomizationLabel(value string) - Target() objc.Object - SetTarget(value objc.IObject) MaximumSliderWidth() float64 SetMaximumSliderWidth(value float64) + DoubleValue() float64 + SetDoubleValue(value float64) + MinimumValueAccessory() SliderAccessory + SetMinimumValueAccessory(value ISliderAccessory) + Label() string + SetLabel(value string) ValueAccessoryWidth() SliderAccessoryWidth SetValueAccessoryWidth(value SliderAccessoryWidth) - Action() objc.Selector - SetAction(value objc.Selector) } // A bar item that provides a slider control for choosing a value in a range. [Full Topic] @@ -103,49 +103,56 @@ func (s_ SliderTouchBarItem) SetMinimumSliderWidth(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMinimumSliderWidth:"), value) } -// The slider displayed by the bar item. [Full Topic] +// An object that is notified when a user interacts with the slider or either of the accessories. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544809-slider?language=objc -func (s_ SliderTouchBarItem) Slider() Slider { - rv := objc.Call[Slider](s_, objc.Sel("slider")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544814-target?language=objc +func (s_ SliderTouchBarItem) Target() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("target")) return rv } -// The slider displayed by the bar item. [Full Topic] +// An object that is notified when a user interacts with the slider or either of the accessories. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544809-slider?language=objc -func (s_ SliderTouchBarItem) SetSlider(value ISlider) { - objc.Call[objc.Void](s_, objc.Sel("setSlider:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544814-target?language=objc +func (s_ SliderTouchBarItem) SetTarget(value objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("setTarget:"), value) } -// The double value of the slider. [Full Topic] +// The user-visible string identifying this item during bar customization. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/3237220-doublevalue?language=objc -func (s_ SliderTouchBarItem) DoubleValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("doubleValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544793-customizationlabel?language=objc +func (s_ SliderTouchBarItem) SetCustomizationLabel(value string) { + objc.Call[objc.Void](s_, objc.Sel("setCustomizationLabel:"), value) +} + +// The selector on the target object that is invoked when a user interacts with the slider or either of the accessories. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544765-action?language=objc +func (s_ SliderTouchBarItem) Action() objc.Selector { + rv := objc.Call[objc.Selector](s_, objc.Sel("action")) return rv } -// The double value of the slider. [Full Topic] +// The selector on the target object that is invoked when a user interacts with the slider or either of the accessories. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/3237220-doublevalue?language=objc -func (s_ SliderTouchBarItem) SetDoubleValue(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setDoubleValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544765-action?language=objc +func (s_ SliderTouchBarItem) SetAction(value objc.Selector) { + objc.Call[objc.Void](s_, objc.Sel("setAction:"), value) } -// The text displayed alongside the slider. [Full Topic] +// The slider displayed by the bar item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544741-label?language=objc -func (s_ SliderTouchBarItem) Label() string { - rv := objc.Call[string](s_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544809-slider?language=objc +func (s_ SliderTouchBarItem) Slider() Slider { + rv := objc.Call[Slider](s_, objc.Sel("slider")) return rv } -// The text displayed alongside the slider. [Full Topic] +// The slider displayed by the bar item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544741-label?language=objc -func (s_ SliderTouchBarItem) SetLabel(value string) { - objc.Call[objc.Void](s_, objc.Sel("setLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544809-slider?language=objc +func (s_ SliderTouchBarItem) SetSlider(value ISlider) { + objc.Call[objc.Void](s_, objc.Sel("setSlider:"), value) } // The accessory that appears at the end of the slider with the maximum value. [Full Topic] @@ -163,56 +170,64 @@ func (s_ SliderTouchBarItem) SetMaximumValueAccessory(value ISliderAccessory) { objc.Call[objc.Void](s_, objc.Sel("setMaximumValueAccessory:"), value) } -// The accessory that appears at the end of the slider with the minimum value. [Full Topic] +// The maximum width of the slider’s track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544846-minimumvalueaccessory?language=objc -func (s_ SliderTouchBarItem) MinimumValueAccessory() SliderAccessory { - rv := objc.Call[SliderAccessory](s_, objc.Sel("minimumValueAccessory")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/3237221-maximumsliderwidth?language=objc +func (s_ SliderTouchBarItem) MaximumSliderWidth() float64 { + rv := objc.Call[float64](s_, objc.Sel("maximumSliderWidth")) return rv } -// The accessory that appears at the end of the slider with the minimum value. [Full Topic] +// The maximum width of the slider’s track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544846-minimumvalueaccessory?language=objc -func (s_ SliderTouchBarItem) SetMinimumValueAccessory(value ISliderAccessory) { - objc.Call[objc.Void](s_, objc.Sel("setMinimumValueAccessory:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/3237221-maximumsliderwidth?language=objc +func (s_ SliderTouchBarItem) SetMaximumSliderWidth(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMaximumSliderWidth:"), value) } -// The user-visible string identifying this item during bar customization. [Full Topic] +// The double value of the slider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544793-customizationlabel?language=objc -func (s_ SliderTouchBarItem) SetCustomizationLabel(value string) { - objc.Call[objc.Void](s_, objc.Sel("setCustomizationLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/3237220-doublevalue?language=objc +func (s_ SliderTouchBarItem) DoubleValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("doubleValue")) + return rv } -// An object that is notified when a user interacts with the slider or either of the accessories. [Full Topic] +// The double value of the slider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544814-target?language=objc -func (s_ SliderTouchBarItem) Target() objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("target")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/3237220-doublevalue?language=objc +func (s_ SliderTouchBarItem) SetDoubleValue(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setDoubleValue:"), value) +} + +// The accessory that appears at the end of the slider with the minimum value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544846-minimumvalueaccessory?language=objc +func (s_ SliderTouchBarItem) MinimumValueAccessory() SliderAccessory { + rv := objc.Call[SliderAccessory](s_, objc.Sel("minimumValueAccessory")) return rv } -// An object that is notified when a user interacts with the slider or either of the accessories. [Full Topic] +// The accessory that appears at the end of the slider with the minimum value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544814-target?language=objc -func (s_ SliderTouchBarItem) SetTarget(value objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setTarget:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544846-minimumvalueaccessory?language=objc +func (s_ SliderTouchBarItem) SetMinimumValueAccessory(value ISliderAccessory) { + objc.Call[objc.Void](s_, objc.Sel("setMinimumValueAccessory:"), value) } -// The maximum width of the slider’s track. [Full Topic] +// The text displayed alongside the slider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/3237221-maximumsliderwidth?language=objc -func (s_ SliderTouchBarItem) MaximumSliderWidth() float64 { - rv := objc.Call[float64](s_, objc.Sel("maximumSliderWidth")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544741-label?language=objc +func (s_ SliderTouchBarItem) Label() string { + rv := objc.Call[string](s_, objc.Sel("label")) return rv } -// The maximum width of the slider’s track. [Full Topic] +// The text displayed alongside the slider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/3237221-maximumsliderwidth?language=objc -func (s_ SliderTouchBarItem) SetMaximumSliderWidth(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMaximumSliderWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544741-label?language=objc +func (s_ SliderTouchBarItem) SetLabel(value string) { + objc.Call[objc.Void](s_, objc.Sel("setLabel:"), value) } // The width of the value accessories that appear at either end of the slider. [Full Topic] @@ -229,18 +244,3 @@ func (s_ SliderTouchBarItem) ValueAccessoryWidth() SliderAccessoryWidth { func (s_ SliderTouchBarItem) SetValueAccessoryWidth(value SliderAccessoryWidth) { objc.Call[objc.Void](s_, objc.Sel("setValueAccessoryWidth:"), value) } - -// The selector on the target object that is invoked when a user interacts with the slider or either of the accessories. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544765-action?language=objc -func (s_ SliderTouchBarItem) Action() objc.Selector { - rv := objc.Call[objc.Selector](s_, objc.Sel("action")) - return rv -} - -// The selector on the target object that is invoked when a user interacts with the slider or either of the accessories. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertouchbaritem/2544765-action?language=objc -func (s_ SliderTouchBarItem) SetAction(value objc.Selector) { - objc.Call[objc.Void](s_, objc.Sel("setAction:"), value) -} diff --git a/macos/appkit/sound.gen.go b/macos/appkit/sound.gen.go index 0814909a..88e6abf3 100644 --- a/macos/appkit/sound.gen.go +++ b/macos/appkit/sound.gen.go @@ -19,24 +19,24 @@ type _SoundClass struct { // An interface definition for the [Sound] class. type ISound interface { objc.IObject - Stop() bool - Pause() bool - Resume() bool WriteToPasteboard(pasteboard IPasteboard) SetName(string_ SoundName) bool + Stop() bool + Pause() bool Play() bool + Resume() bool Volume() float32 SetVolume(value float32) - Duration() foundation.TimeInterval - IsPlaying() bool - Delegate() SoundDelegateObject - SetDelegate(value PSoundDelegate) - SetDelegateObject(valueObject objc.IObject) + PlaybackDeviceIdentifier() SoundPlaybackDeviceIdentifier + SetPlaybackDeviceIdentifier(value SoundPlaybackDeviceIdentifier) Name() SoundName Loops() bool SetLoops(value bool) - PlaybackDeviceIdentifier() SoundPlaybackDeviceIdentifier - SetPlaybackDeviceIdentifier(value SoundPlaybackDeviceIdentifier) + Delegate() SoundDelegateObject + SetDelegate(value PSoundDelegate) + SetDelegateObject(valueObject objc.IObject) + IsPlaying() bool + Duration() foundation.TimeInterval CurrentTime() foundation.TimeInterval SetCurrentTime(value foundation.TimeInterval) } @@ -54,16 +54,16 @@ func SoundFrom(ptr unsafe.Pointer) Sound { } } -func (s_ Sound) InitWithData(data []byte) Sound { - rv := objc.Call[Sound](s_, objc.Sel("initWithData:"), data) +func (s_ Sound) InitWithPasteboard(pasteboard IPasteboard) Sound { + rv := objc.Call[Sound](s_, objc.Sel("initWithPasteboard:"), pasteboard) return rv } -// Initializes the receiver with a given audio data. [Full Topic] +// Initializes the receiver with data from a pasteboard. The pasteboard should contain a type returned by NSSound. NSSound expects the data to have a proper magic number, sound header, and data for the formats it supports. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477292-initwithdata?language=objc -func NewSoundWithData(data []byte) Sound { - instance := SoundClass.Alloc().InitWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477294-initwithpasteboard?language=objc +func NewSoundWithPasteboard(pasteboard IPasteboard) Sound { + instance := SoundClass.Alloc().InitWithPasteboard(pasteboard) instance.Autorelease() return instance } @@ -82,16 +82,16 @@ func NewSoundWithContentsOfFileByReference(path string, byRef bool) Sound { return instance } -func (s_ Sound) InitWithPasteboard(pasteboard IPasteboard) Sound { - rv := objc.Call[Sound](s_, objc.Sel("initWithPasteboard:"), pasteboard) +func (s_ Sound) InitWithData(data []byte) Sound { + rv := objc.Call[Sound](s_, objc.Sel("initWithData:"), data) return rv } -// Initializes the receiver with data from a pasteboard. The pasteboard should contain a type returned by NSSound. NSSound expects the data to have a proper magic number, sound header, and data for the formats it supports. [Full Topic] +// Initializes the receiver with a given audio data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477294-initwithpasteboard?language=objc -func NewSoundWithPasteboard(pasteboard IPasteboard) Sound { - instance := SoundClass.Alloc().InitWithPasteboard(pasteboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477292-initwithdata?language=objc +func NewSoundWithData(data []byte) Sound { + instance := SoundClass.Alloc().InitWithData(data) instance.Autorelease() return instance } @@ -130,6 +130,21 @@ func (s_ Sound) Init() Sound { return rv } +// Writes the receiver’s data to a pasteboard. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477338-writetopasteboard?language=objc +func (s_ Sound) WriteToPasteboard(pasteboard IPasteboard) { + objc.Call[objc.Void](s_, objc.Sel("writeToPasteboard:"), pasteboard) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477286-setname?language=objc +func (s_ Sound) SetName(string_ SoundName) bool { + rv := objc.Call[bool](s_, objc.Sel("setName:"), string_) + return rv +} + // Indicates whether the receiver can create an instance of itself from the data in a pasteboard. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477276-caninitwithpasteboard?language=objc @@ -161,26 +176,19 @@ func (s_ Sound) Pause() bool { return rv } -// Resumes audio playback. [Full Topic] +// Initiates audio playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477336-resume?language=objc -func (s_ Sound) Resume() bool { - rv := objc.Call[bool](s_, objc.Sel("resume")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477322-play?language=objc +func (s_ Sound) Play() bool { + rv := objc.Call[bool](s_, objc.Sel("play")) return rv } -// Writes the receiver’s data to a pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477338-writetopasteboard?language=objc -func (s_ Sound) WriteToPasteboard(pasteboard IPasteboard) { - objc.Call[objc.Void](s_, objc.Sel("writeToPasteboard:"), pasteboard) -} - -// [Full Topic] +// Resumes audio playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477286-setname?language=objc -func (s_ Sound) SetName(string_ SoundName) bool { - rv := objc.Call[bool](s_, objc.Sel("setName:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477336-resume?language=objc +func (s_ Sound) Resume() bool { + rv := objc.Call[bool](s_, objc.Sel("resume")) return rv } @@ -199,14 +207,6 @@ func Sound_SoundNamed(name SoundName) Sound { return SoundClass.SoundNamed(name) } -// Initiates audio playback. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477322-play?language=objc -func (s_ Sound) Play() bool { - rv := objc.Call[bool](s_, objc.Sel("play")) - return rv -} - // The volume of the sound. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477315-volume?language=objc @@ -222,22 +222,44 @@ func (s_ Sound) SetVolume(value float32) { objc.Call[objc.Void](s_, objc.Sel("setVolume:"), value) } -// The duration of the sound, in seconds. [Full Topic] +// Identifies the sound’s output device [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477313-duration?language=objc -func (s_ Sound) Duration() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](s_, objc.Sel("duration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477284-playbackdeviceidentifier?language=objc +func (s_ Sound) PlaybackDeviceIdentifier() SoundPlaybackDeviceIdentifier { + rv := objc.Call[SoundPlaybackDeviceIdentifier](s_, objc.Sel("playbackDeviceIdentifier")) return rv } -// A Boolean that indicates whether the sound is playing its audio data. [Full Topic] +// Identifies the sound’s output device [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477302-playing?language=objc -func (s_ Sound) IsPlaying() bool { - rv := objc.Call[bool](s_, objc.Sel("isPlaying")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477284-playbackdeviceidentifier?language=objc +func (s_ Sound) SetPlaybackDeviceIdentifier(value SoundPlaybackDeviceIdentifier) { + objc.Call[objc.Void](s_, objc.Sel("setPlaybackDeviceIdentifier:"), value) +} + +// The name assigned to the sound. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477296-name?language=objc +func (s_ Sound) Name() SoundName { + rv := objc.Call[SoundName](s_, objc.Sel("name")) + return rv +} + +// A Boolean that indicates whether the sound restarts playback when it reaches the end of its content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477311-loops?language=objc +func (s_ Sound) Loops() bool { + rv := objc.Call[bool](s_, objc.Sel("loops")) return rv } +// A Boolean that indicates whether the sound restarts playback when it reaches the end of its content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477311-loops?language=objc +func (s_ Sound) SetLoops(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setLoops:"), value) +} + // The sound’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477300-delegate?language=objc @@ -262,42 +284,35 @@ func (s_ Sound) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), valueObject) } -// The name assigned to the sound. [Full Topic] +// A Boolean that indicates whether the sound is playing its audio data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477296-name?language=objc -func (s_ Sound) Name() SoundName { - rv := objc.Call[SoundName](s_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477302-playing?language=objc +func (s_ Sound) IsPlaying() bool { + rv := objc.Call[bool](s_, objc.Sel("isPlaying")) return rv } -// A Boolean that indicates whether the sound restarts playback when it reaches the end of its content. [Full Topic] +// The duration of the sound, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477311-loops?language=objc -func (s_ Sound) Loops() bool { - rv := objc.Call[bool](s_, objc.Sel("loops")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477313-duration?language=objc +func (s_ Sound) Duration() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](s_, objc.Sel("duration")) return rv } -// A Boolean that indicates whether the sound restarts playback when it reaches the end of its content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477311-loops?language=objc -func (s_ Sound) SetLoops(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setLoops:"), value) -} - -// Identifies the sound’s output device [Full Topic] +// Provides the file types the NSSound class understands. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477284-playbackdeviceidentifier?language=objc -func (s_ Sound) PlaybackDeviceIdentifier() SoundPlaybackDeviceIdentifier { - rv := objc.Call[SoundPlaybackDeviceIdentifier](s_, objc.Sel("playbackDeviceIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477290-soundunfilteredtypes?language=objc +func (sc _SoundClass) SoundUnfilteredTypes() []string { + rv := objc.Call[[]string](sc, objc.Sel("soundUnfilteredTypes")) return rv } -// Identifies the sound’s output device [Full Topic] +// Provides the file types the NSSound class understands. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477284-playbackdeviceidentifier?language=objc -func (s_ Sound) SetPlaybackDeviceIdentifier(value SoundPlaybackDeviceIdentifier) { - objc.Call[objc.Void](s_, objc.Sel("setPlaybackDeviceIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477290-soundunfilteredtypes?language=objc +func Sound_SoundUnfilteredTypes() []string { + return SoundClass.SoundUnfilteredTypes() } // The sound’s playback progress, in seconds. [Full Topic] @@ -314,18 +329,3 @@ func (s_ Sound) CurrentTime() foundation.TimeInterval { func (s_ Sound) SetCurrentTime(value foundation.TimeInterval) { objc.Call[objc.Void](s_, objc.Sel("setCurrentTime:"), value) } - -// Provides the file types the NSSound class understands. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477290-soundunfilteredtypes?language=objc -func (sc _SoundClass) SoundUnfilteredTypes() []string { - rv := objc.Call[[]string](sc, objc.Sel("soundUnfilteredTypes")) - return rv -} - -// Provides the file types the NSSound class understands. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477290-soundunfilteredtypes?language=objc -func Sound_SoundUnfilteredTypes() []string { - return SoundClass.SoundUnfilteredTypes() -} diff --git a/macos/appkit/speech_recognizer.gen.go b/macos/appkit/speech_recognizer.gen.go index 02121e58..f7fb7f57 100644 --- a/macos/appkit/speech_recognizer.gen.go +++ b/macos/appkit/speech_recognizer.gen.go @@ -18,19 +18,19 @@ type _SpeechRecognizerClass struct { // An interface definition for the [SpeechRecognizer] class. type ISpeechRecognizer interface { objc.IObject - StartListening() StopListening() + StartListening() + ListensInForegroundOnly() bool + SetListensInForegroundOnly(value bool) + DisplayedCommandsTitle() string + SetDisplayedCommandsTitle(value string) Delegate() SpeechRecognizerDelegateObject SetDelegate(value PSpeechRecognizerDelegate) SetDelegateObject(valueObject objc.IObject) - DisplayedCommandsTitle() string - SetDisplayedCommandsTitle(value string) Commands() []string SetCommands(value []string) BlocksOtherRecognizers() bool SetBlocksOtherRecognizers(value bool) - ListensInForegroundOnly() bool - SetListensInForegroundOnly(value bool) } // The Cocoa interface to speech recognition in macOS. [Full Topic] @@ -66,6 +66,13 @@ func NewSpeechRecognizer() SpeechRecognizer { return SpeechRecognizerClass.New() } +// Tells the speech recognition engine to suspend listening for commands. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1529583-stoplistening?language=objc +func (s_ SpeechRecognizer) StopListening() { + objc.Call[objc.Void](s_, objc.Sel("stopListening")) +} + // Tells the speech recognition engine to begin listening for commands. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1528154-startlistening?language=objc @@ -73,11 +80,34 @@ func (s_ SpeechRecognizer) StartListening() { objc.Call[objc.Void](s_, objc.Sel("startListening")) } -// Tells the speech recognition engine to suspend listening for commands. [Full Topic] +// A Boolean value that indicates whether the speech recognizer object should only enable its commands when its application is the frontmost one. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1529583-stoplistening?language=objc -func (s_ SpeechRecognizer) StopListening() { - objc.Call[objc.Void](s_, objc.Sel("stopListening")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1533405-listensinforegroundonly?language=objc +func (s_ SpeechRecognizer) ListensInForegroundOnly() bool { + rv := objc.Call[bool](s_, objc.Sel("listensInForegroundOnly")) + return rv +} + +// A Boolean value that indicates whether the speech recognizer object should only enable its commands when its application is the frontmost one. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1533405-listensinforegroundonly?language=objc +func (s_ SpeechRecognizer) SetListensInForegroundOnly(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setListensInForegroundOnly:"), value) +} + +// The title of the commands section in the Speech Commands window or nil if there is no title. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1530622-displayedcommandstitle?language=objc +func (s_ SpeechRecognizer) DisplayedCommandsTitle() string { + rv := objc.Call[string](s_, objc.Sel("displayedCommandsTitle")) + return rv +} + +// The title of the commands section in the Speech Commands window or nil if there is no title. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1530622-displayedcommandstitle?language=objc +func (s_ SpeechRecognizer) SetDisplayedCommandsTitle(value string) { + objc.Call[objc.Void](s_, objc.Sel("setDisplayedCommandsTitle:"), value) } // The delegate for the speech recognizer object. [Full Topic] @@ -104,21 +134,6 @@ func (s_ SpeechRecognizer) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), valueObject) } -// The title of the commands section in the Speech Commands window or nil if there is no title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1530622-displayedcommandstitle?language=objc -func (s_ SpeechRecognizer) DisplayedCommandsTitle() string { - rv := objc.Call[string](s_, objc.Sel("displayedCommandsTitle")) - return rv -} - -// The title of the commands section in the Speech Commands window or nil if there is no title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1530622-displayedcommandstitle?language=objc -func (s_ SpeechRecognizer) SetDisplayedCommandsTitle(value string) { - objc.Call[objc.Void](s_, objc.Sel("setDisplayedCommandsTitle:"), value) -} - // An array of strings defining the commands for which the speech recognizer object should listen. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1529757-commands?language=objc @@ -148,18 +163,3 @@ func (s_ SpeechRecognizer) BlocksOtherRecognizers() bool { func (s_ SpeechRecognizer) SetBlocksOtherRecognizers(value bool) { objc.Call[objc.Void](s_, objc.Sel("setBlocksOtherRecognizers:"), value) } - -// A Boolean value that indicates whether the speech recognizer object should only enable its commands when its application is the frontmost one. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1533405-listensinforegroundonly?language=objc -func (s_ SpeechRecognizer) ListensInForegroundOnly() bool { - rv := objc.Call[bool](s_, objc.Sel("listensInForegroundOnly")) - return rv -} - -// A Boolean value that indicates whether the speech recognizer object should only enable its commands when its application is the frontmost one. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1533405-listensinforegroundonly?language=objc -func (s_ SpeechRecognizer) SetListensInForegroundOnly(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setListensInForegroundOnly:"), value) -} diff --git a/macos/appkit/spell_checker.gen.go b/macos/appkit/spell_checker.gen.go index 530b3874..2cfa4a16 100644 --- a/macos/appkit/spell_checker.gen.go +++ b/macos/appkit/spell_checker.gen.go @@ -19,48 +19,47 @@ type _SpellCheckerClass struct { // An interface definition for the [SpellChecker] class. type ISpellChecker interface { objc.IObject - IgnoreWordInSpellDocumentWithTag(wordToIgnore string, tag int) LanguageForWordRangeInStringOrthography(range_ foundation.Range, string_ string, orthography foundation.IOrthography) string - CheckSpellingOfStringStartingAtLanguageWrapInSpellDocumentWithTagWordCount(stringToCheck string, startingOffset int, language string, wrapFlag bool, tag int, wordCount *int) foundation.Range - SetWordFieldStringValue(string_ string) - RecordResponseToCorrectionForWordLanguageInSpellDocumentWithTag(response CorrectionResponse, correction string, word string, language string, tag int) - CloseSpellDocumentWithTag(tag int) - RequestCandidatesForSelectedRangeInStringTypesOptionsInSpellDocumentWithTagCompletionHandler(selectedRange foundation.Range, stringToCheck string, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, tag int, completionHandler func(sequenceNumber int, candidates []foundation.TextCheckingResult)) int + CheckStringRangeTypesOptionsInSpellDocumentWithTagOrthographyWordCount(stringToCheck string, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, tag int, orthography unsafe.Pointer, wordCount *int) []foundation.TextCheckingResult + DismissCorrectionIndicatorForView(view IView) + CountWordsInStringLanguage(stringToCount string, language string) int + MenuForResultStringOptionsAtLocationInView(result foundation.ITextCheckingResult, checkedString string, options map[TextCheckingOptionKey]objc.IObject, location foundation.Point, view IView) Menu + Language() string + LearnWord(word string) + CompletionsForPartialWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) []string CheckGrammarOfStringStartingAtLanguageWrapInSpellDocumentWithTagDetails(stringToCheck string, startingOffset int, language string, wrapFlag bool, tag int, details unsafe.Pointer) foundation.Range - SetLanguage(language string) bool - HasLearnedWord(word string) bool - SetIgnoredWordsInSpellDocumentWithTag(words []string, tag int) + RequestCandidatesForSelectedRangeInStringTypesOptionsInSpellDocumentWithTagCompletionHandler(selectedRange foundation.Range, stringToCheck string, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, tag int, completionHandler func(sequenceNumber int, candidates []foundation.TextCheckingResult)) int + ShowCorrectionIndicatorOfTypePrimaryStringAlternativeStringsForStringInRectViewCompletionHandler(type_ CorrectionIndicatorType, primaryString string, alternativeStrings []string, rectOfTypedString foundation.Rect, view IView, completionBlock func(acceptedString string)) + UnlearnWord(word string) + RecordResponseToCorrectionForWordLanguageInSpellDocumentWithTag(response CorrectionResponse, correction string, word string, language string, tag int) RequestCheckingOfStringRangeTypesOptionsInSpellDocumentWithTagCompletionHandler(stringToCheck string, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, tag int, completionHandler func(sequenceNumber int, results []foundation.TextCheckingResult, orthography foundation.Orthography, wordCount int)) int - UpdatePanels() - DismissCorrectionIndicatorForView(view IView) UpdateSpellingPanelWithMisspelledWord(word string) - Language() string - DeletesAutospaceBetweenStringAndStringLanguage(precedingString string, followingString string, language string) bool - IgnoredWordsInSpellDocumentWithTag(tag int) []string CheckSpellingOfStringStartingAt(stringToCheck string, startingOffset int) foundation.Range + UpdatePanels() + SetLanguage(language string) bool + SetIgnoredWordsInSpellDocumentWithTag(words []string, tag int) + IgnoreWordInSpellDocumentWithTag(wordToIgnore string, tag int) UpdateSpellingPanelWithGrammarStringDetail(string_ string, detail map[string]objc.IObject) - ShowCorrectionIndicatorOfTypePrimaryStringAlternativeStringsForStringInRectViewCompletionHandler(type_ CorrectionIndicatorType, primaryString string, alternativeStrings []string, rectOfTypedString foundation.Rect, view IView, completionBlock func(acceptedString string)) - GuessesForWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) []string - MenuForResultStringOptionsAtLocationInView(result foundation.ITextCheckingResult, checkedString string, options map[TextCheckingOptionKey]objc.IObject, location foundation.Point, view IView) Menu - UnlearnWord(word string) - CheckStringRangeTypesOptionsInSpellDocumentWithTagOrthographyWordCount(stringToCheck string, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, tag int, orthography unsafe.Pointer, wordCount *int) []foundation.TextCheckingResult - LearnWord(word string) - CountWordsInStringLanguage(stringToCount string, language string) int - CorrectionForWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) string + CloseSpellDocumentWithTag(tag int) UserQuotesArrayForLanguage(language string) []string - CompletionsForPartialWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) []string + SetWordFieldStringValue(string_ string) PreventsAutocorrectionBeforeStringLanguage(string_ string, language string) bool - SubstitutionsPanelAccessoryViewController() ViewController - SetSubstitutionsPanelAccessoryViewController(value IViewController) + HasLearnedWord(word string) bool + IgnoredWordsInSpellDocumentWithTag(tag int) []string + CorrectionForWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) string + DeletesAutospaceBetweenStringAndStringLanguage(precedingString string, followingString string, language string) bool + GuessesForWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) []string UserReplacementsDictionary() map[string]string + UserPreferredLanguages() []string SubstitutionsPanel() Panel - AutomaticallyIdentifiesLanguages() bool - SetAutomaticallyIdentifiesLanguages(value bool) + SpellingPanel() Panel + SubstitutionsPanelAccessoryViewController() ViewController + SetSubstitutionsPanelAccessoryViewController(value IViewController) AccessoryView() View SetAccessoryView(value IView) - SpellingPanel() Panel - UserPreferredLanguages() []string AvailableLanguages() []string + AutomaticallyIdentifiesLanguages() bool + SetAutomaticallyIdentifiesLanguages(value bool) } // An interface to the Cocoa spell-checking service. [Full Topic] @@ -96,13 +95,6 @@ func (s_ SpellChecker) Init() SpellChecker { return rv } -// Instructs the spell checker to ignore all future occurrences of wordToIgnore in the document identified by tag. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531220-ignoreword?language=objc -func (s_ SpellChecker) IgnoreWordInSpellDocumentWithTag(wordToIgnore string, tag int) { - objc.Call[objc.Void](s_, objc.Sel("ignoreWord:inSpellDocumentWithTag:"), wordToIgnore, tag) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1530303-languageforwordrange?language=objc @@ -111,40 +103,57 @@ func (s_ SpellChecker) LanguageForWordRangeInStringOrthography(range_ foundation return rv } -// Starts the search for a misspelled word in a string starting at specified offset within the string. [Full Topic] +// Requests unified text checking for the given range of the given string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1533574-checkspellingofstring?language=objc -func (s_ SpellChecker) CheckSpellingOfStringStartingAtLanguageWrapInSpellDocumentWithTagWordCount(stringToCheck string, startingOffset int, language string, wrapFlag bool, tag int, wordCount *int) foundation.Range { - rv := objc.Call[foundation.Range](s_, objc.Sel("checkSpellingOfString:startingAt:language:wrap:inSpellDocumentWithTag:wordCount:"), stringToCheck, startingOffset, language, wrapFlag, tag, wordCount) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535739-checkstring?language=objc +func (s_ SpellChecker) CheckStringRangeTypesOptionsInSpellDocumentWithTagOrthographyWordCount(stringToCheck string, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, tag int, orthography unsafe.Pointer, wordCount *int) []foundation.TextCheckingResult { + rv := objc.Call[[]foundation.TextCheckingResult](s_, objc.Sel("checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:"), stringToCheck, range_, checkingTypes, options, tag, orthography, wordCount) return rv } -// Sets the string that appears in the misspelled word field, using the string object aString. [Full Topic] +// Dismisses the correction indicator for the specified view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1526688-setwordfieldstringvalue?language=objc -func (s_ SpellChecker) SetWordFieldStringValue(string_ string) { - objc.Call[objc.Void](s_, objc.Sel("setWordFieldStringValue:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535527-dismisscorrectionindicatorforvie?language=objc +func (s_ SpellChecker) DismissCorrectionIndicatorForView(view IView) { + objc.Call[objc.Void](s_, objc.Sel("dismissCorrectionIndicatorForView:"), view) } -// Records the user response to the correction indicator being displayed. [Full Topic] +// Returns the number of words in the specified string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535568-recordresponse?language=objc -func (s_ SpellChecker) RecordResponseToCorrectionForWordLanguageInSpellDocumentWithTag(response CorrectionResponse, correction string, word string, language string, tag int) { - objc.Call[objc.Void](s_, objc.Sel("recordResponse:toCorrection:forWord:language:inSpellDocumentWithTag:"), response, correction, word, language, tag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1528008-countwordsinstring?language=objc +func (s_ SpellChecker) CountWordsInStringLanguage(stringToCount string, language string) int { + rv := objc.Call[int](s_, objc.Sel("countWordsInString:language:"), stringToCount, language) + return rv } -// Notifies the receiver that the user has finished with the tagged document. [Full Topic] +// Provides a menu containing contextual menu items suitable for certain kinds of detected results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1534066-closespelldocumentwithtag?language=objc -func (s_ SpellChecker) CloseSpellDocumentWithTag(tag int) { - objc.Call[objc.Void](s_, objc.Sel("closeSpellDocumentWithTag:"), tag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531603-menuforresult?language=objc +func (s_ SpellChecker) MenuForResultStringOptionsAtLocationInView(result foundation.ITextCheckingResult, checkedString string, options map[TextCheckingOptionKey]objc.IObject, location foundation.Point, view IView) Menu { + rv := objc.Call[Menu](s_, objc.Sel("menuForResult:string:options:atLocation:inView:"), result, checkedString, options, location, view) + return rv } -// [Full Topic] +// Returns the current language used in spell checking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2560997-requestcandidatesforselectedrang?language=objc -func (s_ SpellChecker) RequestCandidatesForSelectedRangeInStringTypesOptionsInSpellDocumentWithTagCompletionHandler(selectedRange foundation.Range, stringToCheck string, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, tag int, completionHandler func(sequenceNumber int, candidates []foundation.TextCheckingResult)) int { - rv := objc.Call[int](s_, objc.Sel("requestCandidatesForSelectedRange:inString:types:options:inSpellDocumentWithTag:completionHandler:"), selectedRange, stringToCheck, checkingTypes, options, tag, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535648-language?language=objc +func (s_ SpellChecker) Language() string { + rv := objc.Call[string](s_, objc.Sel("language")) + return rv +} + +// Adds the word to the spell checker dictionary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1534837-learnword?language=objc +func (s_ SpellChecker) LearnWord(word string) { + objc.Call[objc.Void](s_, objc.Sel("learnWord:"), word) +} + +// Provides a list of complete words that the user might be trying to type based on a partial word in a given string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531406-completionsforpartialwordrange?language=objc +func (s_ SpellChecker) CompletionsForPartialWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) []string { + rv := objc.Call[[]string](s_, objc.Sel("completionsForPartialWordRange:inString:language:inSpellDocumentWithTag:"), range_, string_, language, tag) return rv } @@ -156,27 +165,33 @@ func (s_ SpellChecker) CheckGrammarOfStringStartingAtLanguageWrapInSpellDocument return rv } -// Returns whether the specified language is in the Spelling pop-up list. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1532988-setlanguage?language=objc -func (s_ SpellChecker) SetLanguage(language string) bool { - rv := objc.Call[bool](s_, objc.Sel("setLanguage:"), language) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2560997-requestcandidatesforselectedrang?language=objc +func (s_ SpellChecker) RequestCandidatesForSelectedRangeInStringTypesOptionsInSpellDocumentWithTagCompletionHandler(selectedRange foundation.Range, stringToCheck string, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, tag int, completionHandler func(sequenceNumber int, candidates []foundation.TextCheckingResult)) int { + rv := objc.Call[int](s_, objc.Sel("requestCandidatesForSelectedRange:inString:types:options:inSpellDocumentWithTag:completionHandler:"), selectedRange, stringToCheck, checkingTypes, options, tag, completionHandler) return rv } -// Indicates whether the spell checker has learned a given word. [Full Topic] +// Display a suitable user interface to indicate a correction may need to be made. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1527525-haslearnedword?language=objc -func (s_ SpellChecker) HasLearnedWord(word string) bool { - rv := objc.Call[bool](s_, objc.Sel("hasLearnedWord:"), word) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1524316-showcorrectionindicatoroftype?language=objc +func (s_ SpellChecker) ShowCorrectionIndicatorOfTypePrimaryStringAlternativeStringsForStringInRectViewCompletionHandler(type_ CorrectionIndicatorType, primaryString string, alternativeStrings []string, rectOfTypedString foundation.Rect, view IView, completionBlock func(acceptedString string)) { + objc.Call[objc.Void](s_, objc.Sel("showCorrectionIndicatorOfType:primaryString:alternativeStrings:forStringInRect:view:completionHandler:"), type_, primaryString, alternativeStrings, rectOfTypedString, view, completionBlock) } -// Initializes the ignored-words document (a dictionary identified by tag with someWords), an array of words to ignore. [Full Topic] +// Tells the spell checker to unlearn a given word. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535879-setignoredwords?language=objc -func (s_ SpellChecker) SetIgnoredWordsInSpellDocumentWithTag(words []string, tag int) { - objc.Call[objc.Void](s_, objc.Sel("setIgnoredWords:inSpellDocumentWithTag:"), words, tag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1525147-unlearnword?language=objc +func (s_ SpellChecker) UnlearnWord(word string) { + objc.Call[objc.Void](s_, objc.Sel("unlearnWord:"), word) +} + +// Records the user response to the correction indicator being displayed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535568-recordresponse?language=objc +func (s_ SpellChecker) RecordResponseToCorrectionForWordLanguageInSpellDocumentWithTag(response CorrectionResponse, correction string, word string, language string, tag int) { + objc.Call[objc.Void](s_, objc.Sel("recordResponse:toCorrection:forWord:language:inSpellDocumentWithTag:"), response, correction, word, language, tag) } // Requests that the string be checked in the background. [Full Topic] @@ -187,20 +202,6 @@ func (s_ SpellChecker) RequestCheckingOfStringRangeTypesOptionsInSpellDocumentWi return rv } -// Updates the available panels to account for user changes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531045-updatepanels?language=objc -func (s_ SpellChecker) UpdatePanels() { - objc.Call[objc.Void](s_, objc.Sel("updatePanels")) -} - -// Dismisses the correction indicator for the specified view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535527-dismisscorrectionindicatorforvie?language=objc -func (s_ SpellChecker) DismissCorrectionIndicatorForView(view IView) { - objc.Call[objc.Void](s_, objc.Sel("dismissCorrectionIndicatorForView:"), view) -} - // Causes the spell checker to update the Spelling panel’s misspelled-word field to reflect word. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1524852-updatespellingpanelwithmisspelle?language=objc @@ -208,51 +209,41 @@ func (s_ SpellChecker) UpdateSpellingPanelWithMisspelledWord(word string) { objc.Call[objc.Void](s_, objc.Sel("updateSpellingPanelWithMisspelledWord:"), word) } -// Returns the current language used in spell checking. [Full Topic] +// Starts the search for a misspelled word in stringToCheck starting at startingOffset within the string object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535648-language?language=objc -func (s_ SpellChecker) Language() string { - rv := objc.Call[string](s_, objc.Sel("language")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1532957-checkspellingofstring?language=objc +func (s_ SpellChecker) CheckSpellingOfStringStartingAt(stringToCheck string, startingOffset int) foundation.Range { + rv := objc.Call[foundation.Range](s_, objc.Sel("checkSpellingOfString:startingAt:"), stringToCheck, startingOffset) return rv } -// [Full Topic] +// Updates the available panels to account for user changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2561001-deletesautospacebetweenstring?language=objc -func (s_ SpellChecker) DeletesAutospaceBetweenStringAndStringLanguage(precedingString string, followingString string, language string) bool { - rv := objc.Call[bool](s_, objc.Sel("deletesAutospaceBetweenString:andString:language:"), precedingString, followingString, language) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531045-updatepanels?language=objc +func (s_ SpellChecker) UpdatePanels() { + objc.Call[objc.Void](s_, objc.Sel("updatePanels")) } -// Returns a guaranteed unique tag to use as the spell-document tag for a document. [Full Topic] +// Returns whether the specified language is in the Spelling pop-up list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1526192-uniquespelldocumenttag?language=objc -func (sc _SpellCheckerClass) UniqueSpellDocumentTag() int { - rv := objc.Call[int](sc, objc.Sel("uniqueSpellDocumentTag")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1532988-setlanguage?language=objc +func (s_ SpellChecker) SetLanguage(language string) bool { + rv := objc.Call[bool](s_, objc.Sel("setLanguage:"), language) return rv } -// Returns a guaranteed unique tag to use as the spell-document tag for a document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1526192-uniquespelldocumenttag?language=objc -func SpellChecker_UniqueSpellDocumentTag() int { - return SpellCheckerClass.UniqueSpellDocumentTag() -} - -// Returns the array of ignored words for a document identified by tag. [Full Topic] +// Initializes the ignored-words document (a dictionary identified by tag with someWords), an array of words to ignore. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531488-ignoredwordsinspelldocumentwitht?language=objc -func (s_ SpellChecker) IgnoredWordsInSpellDocumentWithTag(tag int) []string { - rv := objc.Call[[]string](s_, objc.Sel("ignoredWordsInSpellDocumentWithTag:"), tag) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535879-setignoredwords?language=objc +func (s_ SpellChecker) SetIgnoredWordsInSpellDocumentWithTag(words []string, tag int) { + objc.Call[objc.Void](s_, objc.Sel("setIgnoredWords:inSpellDocumentWithTag:"), words, tag) } -// Starts the search for a misspelled word in stringToCheck starting at startingOffset within the string object. [Full Topic] +// Instructs the spell checker to ignore all future occurrences of wordToIgnore in the document identified by tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1532957-checkspellingofstring?language=objc -func (s_ SpellChecker) CheckSpellingOfStringStartingAt(stringToCheck string, startingOffset int) foundation.Range { - rv := objc.Call[foundation.Range](s_, objc.Sel("checkSpellingOfString:startingAt:"), stringToCheck, startingOffset) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531220-ignoreword?language=objc +func (s_ SpellChecker) IgnoreWordInSpellDocumentWithTag(wordToIgnore string, tag int) { + objc.Call[objc.Void](s_, objc.Sel("ignoreWord:inSpellDocumentWithTag:"), wordToIgnore, tag) } // Specifies a grammar-analysis detail to highlight in the Spelling panel. [Full Topic] @@ -262,56 +253,49 @@ func (s_ SpellChecker) UpdateSpellingPanelWithGrammarStringDetail(string_ string objc.Call[objc.Void](s_, objc.Sel("updateSpellingPanelWithGrammarString:detail:"), string_, detail) } -// Display a suitable user interface to indicate a correction may need to be made. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1524316-showcorrectionindicatoroftype?language=objc -func (s_ SpellChecker) ShowCorrectionIndicatorOfTypePrimaryStringAlternativeStringsForStringInRectViewCompletionHandler(type_ CorrectionIndicatorType, primaryString string, alternativeStrings []string, rectOfTypedString foundation.Rect, view IView, completionBlock func(acceptedString string)) { - objc.Call[objc.Void](s_, objc.Sel("showCorrectionIndicatorOfType:primaryString:alternativeStrings:forStringInRect:view:completionHandler:"), type_, primaryString, alternativeStrings, rectOfTypedString, view, completionBlock) -} - -// Returns an array of possible substitutions for the specified string. [Full Topic] +// Notifies the receiver that the user has finished with the tagged document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1527419-guessesforwordrange?language=objc -func (s_ SpellChecker) GuessesForWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) []string { - rv := objc.Call[[]string](s_, objc.Sel("guessesForWordRange:inString:language:inSpellDocumentWithTag:"), range_, string_, language, tag) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1534066-closespelldocumentwithtag?language=objc +func (s_ SpellChecker) CloseSpellDocumentWithTag(tag int) { + objc.Call[objc.Void](s_, objc.Sel("closeSpellDocumentWithTag:"), tag) } -// Provides a menu containing contextual menu items suitable for certain kinds of detected results. [Full Topic] +// Returns the default values for quote replacement. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531603-menuforresult?language=objc -func (s_ SpellChecker) MenuForResultStringOptionsAtLocationInView(result foundation.ITextCheckingResult, checkedString string, options map[TextCheckingOptionKey]objc.IObject, location foundation.Point, view IView) Menu { - rv := objc.Call[Menu](s_, objc.Sel("menuForResult:string:options:atLocation:inView:"), result, checkedString, options, location, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1532171-userquotesarrayforlanguage?language=objc +func (s_ SpellChecker) UserQuotesArrayForLanguage(language string) []string { + rv := objc.Call[[]string](s_, objc.Sel("userQuotesArrayForLanguage:"), language) return rv } -// Tells the spell checker to unlearn a given word. [Full Topic] +// Sets the string that appears in the misspelled word field, using the string object aString. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1525147-unlearnword?language=objc -func (s_ SpellChecker) UnlearnWord(word string) { - objc.Call[objc.Void](s_, objc.Sel("unlearnWord:"), word) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1526688-setwordfieldstringvalue?language=objc +func (s_ SpellChecker) SetWordFieldStringValue(string_ string) { + objc.Call[objc.Void](s_, objc.Sel("setWordFieldStringValue:"), string_) } -// Requests unified text checking for the given range of the given string. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535739-checkstring?language=objc -func (s_ SpellChecker) CheckStringRangeTypesOptionsInSpellDocumentWithTagOrthographyWordCount(stringToCheck string, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, tag int, orthography unsafe.Pointer, wordCount *int) []foundation.TextCheckingResult { - rv := objc.Call[[]foundation.TextCheckingResult](s_, objc.Sel("checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:"), stringToCheck, range_, checkingTypes, options, tag, orthography, wordCount) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1792008-preventsautocorrectionbeforestri?language=objc +func (s_ SpellChecker) PreventsAutocorrectionBeforeStringLanguage(string_ string, language string) bool { + rv := objc.Call[bool](s_, objc.Sel("preventsAutocorrectionBeforeString:language:"), string_, language) return rv } -// Adds the word to the spell checker dictionary. [Full Topic] +// Indicates whether the spell checker has learned a given word. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1534837-learnword?language=objc -func (s_ SpellChecker) LearnWord(word string) { - objc.Call[objc.Void](s_, objc.Sel("learnWord:"), word) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1527525-haslearnedword?language=objc +func (s_ SpellChecker) HasLearnedWord(word string) bool { + rv := objc.Call[bool](s_, objc.Sel("hasLearnedWord:"), word) + return rv } -// Returns the number of words in the specified string. [Full Topic] +// Returns the array of ignored words for a document identified by tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1528008-countwordsinstring?language=objc -func (s_ SpellChecker) CountWordsInStringLanguage(stringToCount string, language string) int { - rv := objc.Call[int](s_, objc.Sel("countWordsInString:language:"), stringToCount, language) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531488-ignoredwordsinspelldocumentwitht?language=objc +func (s_ SpellChecker) IgnoredWordsInSpellDocumentWithTag(tag int) []string { + rv := objc.Call[[]string](s_, objc.Sel("ignoredWordsInSpellDocumentWithTag:"), tag) return rv } @@ -323,43 +307,43 @@ func (s_ SpellChecker) CorrectionForWordRangeInStringLanguageInSpellDocumentWith return rv } -// Returns the default values for quote replacement. [Full Topic] +// Returns a guaranteed unique tag to use as the spell-document tag for a document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1532171-userquotesarrayforlanguage?language=objc -func (s_ SpellChecker) UserQuotesArrayForLanguage(language string) []string { - rv := objc.Call[[]string](s_, objc.Sel("userQuotesArrayForLanguage:"), language) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1526192-uniquespelldocumenttag?language=objc +func (sc _SpellCheckerClass) UniqueSpellDocumentTag() int { + rv := objc.Call[int](sc, objc.Sel("uniqueSpellDocumentTag")) return rv } -// Provides a list of complete words that the user might be trying to type based on a partial word in a given string. [Full Topic] +// Returns a guaranteed unique tag to use as the spell-document tag for a document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531406-completionsforpartialwordrange?language=objc -func (s_ SpellChecker) CompletionsForPartialWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) []string { - rv := objc.Call[[]string](s_, objc.Sel("completionsForPartialWordRange:inString:language:inSpellDocumentWithTag:"), range_, string_, language, tag) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1526192-uniquespelldocumenttag?language=objc +func SpellChecker_UniqueSpellDocumentTag() int { + return SpellCheckerClass.UniqueSpellDocumentTag() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1792008-preventsautocorrectionbeforestri?language=objc -func (s_ SpellChecker) PreventsAutocorrectionBeforeStringLanguage(string_ string, language string) bool { - rv := objc.Call[bool](s_, objc.Sel("preventsAutocorrectionBeforeString:language:"), string_, language) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2561001-deletesautospacebetweenstring?language=objc +func (s_ SpellChecker) DeletesAutospaceBetweenStringAndStringLanguage(precedingString string, followingString string, language string) bool { + rv := objc.Call[bool](s_, objc.Sel("deletesAutospaceBetweenString:andString:language:"), precedingString, followingString, language) return rv } -// Sets the substitutions panel’s accessory view. [Full Topic] +// Returns an array of possible substitutions for the specified string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531645-substitutionspanelaccessoryviewc?language=objc -func (s_ SpellChecker) SubstitutionsPanelAccessoryViewController() ViewController { - rv := objc.Call[ViewController](s_, objc.Sel("substitutionsPanelAccessoryViewController")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1527419-guessesforwordrange?language=objc +func (s_ SpellChecker) GuessesForWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) []string { + rv := objc.Call[[]string](s_, objc.Sel("guessesForWordRange:inString:language:inSpellDocumentWithTag:"), range_, string_, language, tag) return rv } -// Sets the substitutions panel’s accessory view. [Full Topic] +// Returns the dictionary used when replacing words. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531645-substitutionspanelaccessoryviewc?language=objc -func (s_ SpellChecker) SetSubstitutionsPanelAccessoryViewController(value IViewController) { - objc.Call[objc.Void](s_, objc.Sel("setSubstitutionsPanelAccessoryViewController:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1524925-userreplacementsdictionary?language=objc +func (s_ SpellChecker) UserReplacementsDictionary() map[string]string { + rv := objc.Call[map[string]string](s_, objc.Sel("userReplacementsDictionary")) + return rv } // [Full Topic] @@ -377,11 +361,26 @@ func SpellChecker_AutomaticTextReplacementEnabled() bool { return SpellCheckerClass.AutomaticTextReplacementEnabled() } -// Returns the dictionary used when replacing words. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1524925-userreplacementsdictionary?language=objc -func (s_ SpellChecker) UserReplacementsDictionary() map[string]string { - rv := objc.Call[map[string]string](s_, objc.Sel("userReplacementsDictionary")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869581-automaticquotesubstitutionenable?language=objc +func (sc _SpellCheckerClass) AutomaticQuoteSubstitutionEnabled() bool { + rv := objc.Call[bool](sc, objc.Sel("automaticQuoteSubstitutionEnabled")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869581-automaticquotesubstitutionenable?language=objc +func SpellChecker_AutomaticQuoteSubstitutionEnabled() bool { + return SpellCheckerClass.AutomaticQuoteSubstitutionEnabled() +} + +// Provides a subset of the available languages to be used for spell checking. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1525173-userpreferredlanguages?language=objc +func (s_ SpellChecker) UserPreferredLanguages() []string { + rv := objc.Call[[]string](s_, objc.Sel("userPreferredLanguages")) return rv } @@ -393,34 +392,42 @@ func (s_ SpellChecker) SubstitutionsPanel() Panel { return rv } -// Sets whether the spell checker will automatically identify languages. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1534335-automaticallyidentifieslanguages?language=objc -func (s_ SpellChecker) AutomaticallyIdentifiesLanguages() bool { - rv := objc.Call[bool](s_, objc.Sel("automaticallyIdentifiesLanguages")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869584-automaticperiodsubstitutionenabl?language=objc +func (sc _SpellCheckerClass) AutomaticPeriodSubstitutionEnabled() bool { + rv := objc.Call[bool](sc, objc.Sel("automaticPeriodSubstitutionEnabled")) return rv } -// Sets whether the spell checker will automatically identify languages. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1534335-automaticallyidentifieslanguages?language=objc -func (s_ SpellChecker) SetAutomaticallyIdentifiesLanguages(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setAutomaticallyIdentifiesLanguages:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869584-automaticperiodsubstitutionenabl?language=objc +func SpellChecker_AutomaticPeriodSubstitutionEnabled() bool { + return SpellCheckerClass.AutomaticPeriodSubstitutionEnabled() +} + +// Returns the spell checker’s panel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1532806-spellingpanel?language=objc +func (s_ SpellChecker) SpellingPanel() Panel { + rv := objc.Call[Panel](s_, objc.Sel("spellingPanel")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869583-automaticcapitalizationenabled?language=objc -func (sc _SpellCheckerClass) AutomaticCapitalizationEnabled() bool { - rv := objc.Call[bool](sc, objc.Sel("automaticCapitalizationEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869580-automatictextcompletionenabled?language=objc +func (sc _SpellCheckerClass) AutomaticTextCompletionEnabled() bool { + rv := objc.Call[bool](sc, objc.Sel("automaticTextCompletionEnabled")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869583-automaticcapitalizationenabled?language=objc -func SpellChecker_AutomaticCapitalizationEnabled() bool { - return SpellCheckerClass.AutomaticCapitalizationEnabled() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869580-automatictextcompletionenabled?language=objc +func SpellChecker_AutomaticTextCompletionEnabled() bool { + return SpellCheckerClass.AutomaticTextCompletionEnabled() } // [Full Topic] @@ -438,29 +445,6 @@ func SpellChecker_AutomaticDashSubstitutionEnabled() bool { return SpellCheckerClass.AutomaticDashSubstitutionEnabled() } -// Makes a view an accessory of the Spelling panel by making it a subview of the panel’s content view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1528160-accessoryview?language=objc -func (s_ SpellChecker) AccessoryView() View { - rv := objc.Call[View](s_, objc.Sel("accessoryView")) - return rv -} - -// Makes a view an accessory of the Spelling panel by making it a subview of the panel’s content view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1528160-accessoryview?language=objc -func (s_ SpellChecker) SetAccessoryView(value IView) { - objc.Call[objc.Void](s_, objc.Sel("setAccessoryView:"), value) -} - -// Returns the spell checker’s panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1532806-spellingpanel?language=objc -func (s_ SpellChecker) SpellingPanel() Panel { - rv := objc.Call[Panel](s_, objc.Sel("spellingPanel")) - return rv -} - // Returns whether the application’s NSSpellChecker has already been created. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1535301-sharedspellcheckerexists?language=objc @@ -476,93 +460,100 @@ func SpellChecker_SharedSpellCheckerExists() bool { return SpellCheckerClass.SharedSpellCheckerExists() } -// [Full Topic] +// Sets the substitutions panel’s accessory view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869581-automaticquotesubstitutionenable?language=objc -func (sc _SpellCheckerClass) AutomaticQuoteSubstitutionEnabled() bool { - rv := objc.Call[bool](sc, objc.Sel("automaticQuoteSubstitutionEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531645-substitutionspanelaccessoryviewc?language=objc +func (s_ SpellChecker) SubstitutionsPanelAccessoryViewController() ViewController { + rv := objc.Call[ViewController](s_, objc.Sel("substitutionsPanelAccessoryViewController")) return rv } -// [Full Topic] +// Sets the substitutions panel’s accessory view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869581-automaticquotesubstitutionenable?language=objc -func SpellChecker_AutomaticQuoteSubstitutionEnabled() bool { - return SpellCheckerClass.AutomaticQuoteSubstitutionEnabled() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1531645-substitutionspanelaccessoryviewc?language=objc +func (s_ SpellChecker) SetSubstitutionsPanelAccessoryViewController(value IViewController) { + objc.Call[objc.Void](s_, objc.Sel("setSubstitutionsPanelAccessoryViewController:"), value) } -// [Full Topic] +// Returns the NSSpellChecker (one per application). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869578-automaticspellingcorrectionenabl?language=objc -func (sc _SpellCheckerClass) AutomaticSpellingCorrectionEnabled() bool { - rv := objc.Call[bool](sc, objc.Sel("automaticSpellingCorrectionEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1529639-sharedspellchecker?language=objc +func (sc _SpellCheckerClass) SharedSpellChecker() SpellChecker { + rv := objc.Call[SpellChecker](sc, objc.Sel("sharedSpellChecker")) return rv } -// [Full Topic] +// Returns the NSSpellChecker (one per application). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869578-automaticspellingcorrectionenabl?language=objc -func SpellChecker_AutomaticSpellingCorrectionEnabled() bool { - return SpellCheckerClass.AutomaticSpellingCorrectionEnabled() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1529639-sharedspellchecker?language=objc +func SpellChecker_SharedSpellChecker() SpellChecker { + return SpellCheckerClass.SharedSpellChecker() } -// [Full Topic] +// Makes a view an accessory of the Spelling panel by making it a subview of the panel’s content view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869580-automatictextcompletionenabled?language=objc -func (sc _SpellCheckerClass) AutomaticTextCompletionEnabled() bool { - rv := objc.Call[bool](sc, objc.Sel("automaticTextCompletionEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1528160-accessoryview?language=objc +func (s_ SpellChecker) AccessoryView() View { + rv := objc.Call[View](s_, objc.Sel("accessoryView")) return rv } -// [Full Topic] +// Makes a view an accessory of the Spelling panel by making it a subview of the panel’s content view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869580-automatictextcompletionenabled?language=objc -func SpellChecker_AutomaticTextCompletionEnabled() bool { - return SpellCheckerClass.AutomaticTextCompletionEnabled() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1528160-accessoryview?language=objc +func (s_ SpellChecker) SetAccessoryView(value IView) { + objc.Call[objc.Void](s_, objc.Sel("setAccessoryView:"), value) } -// Provides a subset of the available languages to be used for spell checking. [Full Topic] +// Provides a list of all available languages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1525173-userpreferredlanguages?language=objc -func (s_ SpellChecker) UserPreferredLanguages() []string { - rv := objc.Call[[]string](s_, objc.Sel("userPreferredLanguages")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1530496-availablelanguages?language=objc +func (s_ SpellChecker) AvailableLanguages() []string { + rv := objc.Call[[]string](s_, objc.Sel("availableLanguages")) return rv } -// [Full Topic] +// Sets whether the spell checker will automatically identify languages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869584-automaticperiodsubstitutionenabl?language=objc -func (sc _SpellCheckerClass) AutomaticPeriodSubstitutionEnabled() bool { - rv := objc.Call[bool](sc, objc.Sel("automaticPeriodSubstitutionEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1534335-automaticallyidentifieslanguages?language=objc +func (s_ SpellChecker) AutomaticallyIdentifiesLanguages() bool { + rv := objc.Call[bool](s_, objc.Sel("automaticallyIdentifiesLanguages")) return rv } -// [Full Topic] +// Sets whether the spell checker will automatically identify languages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869584-automaticperiodsubstitutionenabl?language=objc -func SpellChecker_AutomaticPeriodSubstitutionEnabled() bool { - return SpellCheckerClass.AutomaticPeriodSubstitutionEnabled() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1534335-automaticallyidentifieslanguages?language=objc +func (s_ SpellChecker) SetAutomaticallyIdentifiesLanguages(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setAutomaticallyIdentifiesLanguages:"), value) } -// Returns the NSSpellChecker (one per application). [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1529639-sharedspellchecker?language=objc -func (sc _SpellCheckerClass) SharedSpellChecker() SpellChecker { - rv := objc.Call[SpellChecker](sc, objc.Sel("sharedSpellChecker")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869578-automaticspellingcorrectionenabl?language=objc +func (sc _SpellCheckerClass) AutomaticSpellingCorrectionEnabled() bool { + rv := objc.Call[bool](sc, objc.Sel("automaticSpellingCorrectionEnabled")) return rv } -// Returns the NSSpellChecker (one per application). [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1529639-sharedspellchecker?language=objc -func SpellChecker_SharedSpellChecker() SpellChecker { - return SpellCheckerClass.SharedSpellChecker() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869578-automaticspellingcorrectionenabl?language=objc +func SpellChecker_AutomaticSpellingCorrectionEnabled() bool { + return SpellCheckerClass.AutomaticSpellingCorrectionEnabled() } -// Provides a list of all available languages. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/1530496-availablelanguages?language=objc -func (s_ SpellChecker) AvailableLanguages() []string { - rv := objc.Call[[]string](s_, objc.Sel("availableLanguages")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869583-automaticcapitalizationenabled?language=objc +func (sc _SpellCheckerClass) AutomaticCapitalizationEnabled() bool { + rv := objc.Call[bool](sc, objc.Sel("automaticCapitalizationEnabled")) return rv } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869583-automaticcapitalizationenabled?language=objc +func SpellChecker_AutomaticCapitalizationEnabled() bool { + return SpellCheckerClass.AutomaticCapitalizationEnabled() +} diff --git a/macos/appkit/split_view.gen.go b/macos/appkit/split_view.gen.go index c0e111b7..451731a2 100644 --- a/macos/appkit/split_view.gen.go +++ b/macos/appkit/split_view.gen.go @@ -19,31 +19,31 @@ type _SplitViewClass struct { // An interface definition for the [SplitView] class. type ISplitView interface { IView - MaxPossiblePositionOfDividerAtIndex(dividerIndex int) float64 - HoldingPriorityForSubviewAtIndex(subviewIndex int) LayoutPriority AdjustSubviews() - SetHoldingPriorityForSubviewAtIndex(priority LayoutPriority, subviewIndex int) - RemoveArrangedSubview(view IView) - MinPossiblePositionOfDividerAtIndex(dividerIndex int) float64 - DrawDividerInRect(rect foundation.Rect) + IsSubviewCollapsed(subview IView) bool SetPositionOfDividerAtIndex(position float64, dividerIndex int) + MaxPossiblePositionOfDividerAtIndex(dividerIndex int) float64 + MinPossiblePositionOfDividerAtIndex(dividerIndex int) float64 AddArrangedSubview(view IView) - IsSubviewCollapsed(subview IView) bool InsertArrangedSubviewAtIndex(view IView, index int) + HoldingPriorityForSubviewAtIndex(subviewIndex int) LayoutPriority + DrawDividerInRect(rect foundation.Rect) + RemoveArrangedSubview(view IView) + SetHoldingPriorityForSubviewAtIndex(priority LayoutPriority, subviewIndex int) DividerColor() Color DividerThickness() float64 - ArrangedSubviews() []View - IsVertical() bool - SetVertical(value bool) - AutosaveName() SplitViewAutosaveName - SetAutosaveName(value SplitViewAutosaveName) + DividerStyle() SplitViewDividerStyle + SetDividerStyle(value SplitViewDividerStyle) Delegate() SplitViewDelegateObject SetDelegate(value PSplitViewDelegate) SetDelegateObject(valueObject objc.IObject) + ArrangedSubviews() []View + AutosaveName() SplitViewAutosaveName + SetAutosaveName(value SplitViewAutosaveName) + IsVertical() bool + SetVertical(value bool) ArrangesAllSubviews() bool SetArrangesAllSubviews(value bool) - DividerStyle() SplitViewDividerStyle - SetDividerStyle(value SplitViewDividerStyle) } // A view that arranges two or more views in a linear stack running horizontally or vertically. [Full Topic] @@ -93,22 +93,6 @@ func NewSplitViewWithFrame(frameRect foundation.Rect) SplitView { return instance } -// Returns the maximum possible position of the divider at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455261-maxpossiblepositionofdivideratin?language=objc -func (s_ SplitView) MaxPossiblePositionOfDividerAtIndex(dividerIndex int) float64 { - rv := objc.Call[float64](s_, objc.Sel("maxPossiblePositionOfDividerAtIndex:"), dividerIndex) - return rv -} - -// Returns the priority of the subview’s width or height when resizing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455287-holdingpriorityforsubviewatindex?language=objc -func (s_ SplitView) HoldingPriorityForSubviewAtIndex(subviewIndex int) LayoutPriority { - rv := objc.Call[LayoutPriority](s_, objc.Sel("holdingPriorityForSubviewAtIndex:"), subviewIndex) - return rv -} - // Adjusts the sizes of the split view’s subviews so they (plus the dividers) fill the split view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455285-adjustsubviews?language=objc @@ -116,18 +100,27 @@ func (s_ SplitView) AdjustSubviews() { objc.Call[objc.Void](s_, objc.Sel("adjustSubviews")) } -// Sets the priority for split view subviews to maintain their width or height. [Full Topic] +// Returns whether the specified view is in a collapsed state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455320-setholdingpriority?language=objc -func (s_ SplitView) SetHoldingPriorityForSubviewAtIndex(priority LayoutPriority, subviewIndex int) { - objc.Call[objc.Void](s_, objc.Sel("setHoldingPriority:forSubviewAtIndex:"), priority, subviewIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455311-issubviewcollapsed?language=objc +func (s_ SplitView) IsSubviewCollapsed(subview IView) bool { + rv := objc.Call[bool](s_, objc.Sel("isSubviewCollapsed:"), subview) + return rv } -// Removes a view as an arranged split pane. [Full Topic] +// Updates the location of a divider you specify by index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455271-removearrangedsubview?language=objc -func (s_ SplitView) RemoveArrangedSubview(view IView) { - objc.Call[objc.Void](s_, objc.Sel("removeArrangedSubview:"), view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455316-setposition?language=objc +func (s_ SplitView) SetPositionOfDividerAtIndex(position float64, dividerIndex int) { + objc.Call[objc.Void](s_, objc.Sel("setPosition:ofDividerAtIndex:"), position, dividerIndex) +} + +// Returns the maximum possible position of the divider at the specified index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455261-maxpossiblepositionofdivideratin?language=objc +func (s_ SplitView) MaxPossiblePositionOfDividerAtIndex(dividerIndex int) float64 { + rv := objc.Call[float64](s_, objc.Sel("maxPossiblePositionOfDividerAtIndex:"), dividerIndex) + return rv } // Returns the minimum possible position of the divider at the specified index. [Full Topic] @@ -138,40 +131,47 @@ func (s_ SplitView) MinPossiblePositionOfDividerAtIndex(dividerIndex int) float6 return rv } -// Draws a divider between two of the split view’s subviews. [Full Topic] +// Adds a view as an arranged split pane. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455297-drawdividerinrect?language=objc -func (s_ SplitView) DrawDividerInRect(rect foundation.Rect) { - objc.Call[objc.Void](s_, objc.Sel("drawDividerInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455295-addarrangedsubview?language=objc +func (s_ SplitView) AddArrangedSubview(view IView) { + objc.Call[objc.Void](s_, objc.Sel("addArrangedSubview:"), view) } -// Updates the location of a divider you specify by index. [Full Topic] +// Adds a view as an arranged split pane at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455316-setposition?language=objc -func (s_ SplitView) SetPositionOfDividerAtIndex(position float64, dividerIndex int) { - objc.Call[objc.Void](s_, objc.Sel("setPosition:ofDividerAtIndex:"), position, dividerIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455321-insertarrangedsubview?language=objc +func (s_ SplitView) InsertArrangedSubviewAtIndex(view IView, index int) { + objc.Call[objc.Void](s_, objc.Sel("insertArrangedSubview:atIndex:"), view, index) } -// Adds a view as an arranged split pane. [Full Topic] +// Returns the priority of the subview’s width or height when resizing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455295-addarrangedsubview?language=objc -func (s_ SplitView) AddArrangedSubview(view IView) { - objc.Call[objc.Void](s_, objc.Sel("addArrangedSubview:"), view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455287-holdingpriorityforsubviewatindex?language=objc +func (s_ SplitView) HoldingPriorityForSubviewAtIndex(subviewIndex int) LayoutPriority { + rv := objc.Call[LayoutPriority](s_, objc.Sel("holdingPriorityForSubviewAtIndex:"), subviewIndex) + return rv } -// Returns whether the specified view is in a collapsed state. [Full Topic] +// Draws a divider between two of the split view’s subviews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455311-issubviewcollapsed?language=objc -func (s_ SplitView) IsSubviewCollapsed(subview IView) bool { - rv := objc.Call[bool](s_, objc.Sel("isSubviewCollapsed:"), subview) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455297-drawdividerinrect?language=objc +func (s_ SplitView) DrawDividerInRect(rect foundation.Rect) { + objc.Call[objc.Void](s_, objc.Sel("drawDividerInRect:"), rect) } -// Adds a view as an arranged split pane at the specified index. [Full Topic] +// Removes a view as an arranged split pane. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455321-insertarrangedsubview?language=objc -func (s_ SplitView) InsertArrangedSubviewAtIndex(view IView, index int) { - objc.Call[objc.Void](s_, objc.Sel("insertArrangedSubview:atIndex:"), view, index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455271-removearrangedsubview?language=objc +func (s_ SplitView) RemoveArrangedSubview(view IView) { + objc.Call[objc.Void](s_, objc.Sel("removeArrangedSubview:"), view) +} + +// Sets the priority for split view subviews to maintain their width or height. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455320-setholdingpriority?language=objc +func (s_ SplitView) SetHoldingPriorityForSubviewAtIndex(priority LayoutPriority, subviewIndex int) { + objc.Call[objc.Void](s_, objc.Sel("setHoldingPriority:forSubviewAtIndex:"), priority, subviewIndex) } // The color of the dividers that the split view draws between subviews. [Full Topic] @@ -190,27 +190,51 @@ func (s_ SplitView) DividerThickness() float64 { return rv } -// The array of views that the split view arranges as its split panes. [Full Topic] +// The style of divider between views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455253-arrangedsubviews?language=objc -func (s_ SplitView) ArrangedSubviews() []View { - rv := objc.Call[[]View](s_, objc.Sel("arrangedSubviews")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455291-dividerstyle?language=objc +func (s_ SplitView) DividerStyle() SplitViewDividerStyle { + rv := objc.Call[SplitViewDividerStyle](s_, objc.Sel("dividerStyle")) return rv } -// A Boolean value that determines the geometric orientation of the split view's dividers. [Full Topic] +// The style of divider between views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455318-vertical?language=objc -func (s_ SplitView) IsVertical() bool { - rv := objc.Call[bool](s_, objc.Sel("isVertical")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455291-dividerstyle?language=objc +func (s_ SplitView) SetDividerStyle(value SplitViewDividerStyle) { + objc.Call[objc.Void](s_, objc.Sel("setDividerStyle:"), value) +} + +// The split view’s delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455306-delegate?language=objc +func (s_ SplitView) Delegate() SplitViewDelegateObject { + rv := objc.Call[SplitViewDelegateObject](s_, objc.Sel("delegate")) return rv } -// A Boolean value that determines the geometric orientation of the split view's dividers. [Full Topic] +// The split view’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455318-vertical?language=objc -func (s_ SplitView) SetVertical(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setVertical:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455306-delegate?language=objc +func (s_ SplitView) SetDelegate(value PSplitViewDelegate) { + po0 := objc.WrapAsProtocol("NSSplitViewDelegate", value) + objc.SetAssociatedObject(s_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), po0) +} + +// The split view’s delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455306-delegate?language=objc +func (s_ SplitView) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), valueObject) +} + +// The array of views that the split view arranges as its split panes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455253-arrangedsubviews?language=objc +func (s_ SplitView) ArrangedSubviews() []View { + rv := objc.Call[[]View](s_, objc.Sel("arrangedSubviews")) + return rv } // The name to use when the system automatically saves the split view’s divider configuration. [Full Topic] @@ -228,28 +252,19 @@ func (s_ SplitView) SetAutosaveName(value SplitViewAutosaveName) { objc.Call[objc.Void](s_, objc.Sel("setAutosaveName:"), value) } -// The split view’s delegate. [Full Topic] +// A Boolean value that determines the geometric orientation of the split view's dividers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455306-delegate?language=objc -func (s_ SplitView) Delegate() SplitViewDelegateObject { - rv := objc.Call[SplitViewDelegateObject](s_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455318-vertical?language=objc +func (s_ SplitView) IsVertical() bool { + rv := objc.Call[bool](s_, objc.Sel("isVertical")) return rv } -// The split view’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455306-delegate?language=objc -func (s_ SplitView) SetDelegate(value PSplitViewDelegate) { - po0 := objc.WrapAsProtocol("NSSplitViewDelegate", value) - objc.SetAssociatedObject(s_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), po0) -} - -// The split view’s delegate. [Full Topic] +// A Boolean value that determines the geometric orientation of the split view's dividers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455306-delegate?language=objc -func (s_ SplitView) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455318-vertical?language=objc +func (s_ SplitView) SetVertical(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setVertical:"), value) } // A Boolean value that determines whether the split view arranges all of its subviews as split panes. [Full Topic] @@ -266,18 +281,3 @@ func (s_ SplitView) ArrangesAllSubviews() bool { func (s_ SplitView) SetArrangesAllSubviews(value bool) { objc.Call[objc.Void](s_, objc.Sel("setArrangesAllSubviews:"), value) } - -// The style of divider between views. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455291-dividerstyle?language=objc -func (s_ SplitView) DividerStyle() SplitViewDividerStyle { - rv := objc.Call[SplitViewDividerStyle](s_, objc.Sel("dividerStyle")) - return rv -} - -// The style of divider between views. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455291-dividerstyle?language=objc -func (s_ SplitView) SetDividerStyle(value SplitViewDividerStyle) { - objc.Call[objc.Void](s_, objc.Sel("setDividerStyle:"), value) -} diff --git a/macos/appkit/split_view_controller.gen.go b/macos/appkit/split_view_controller.gen.go index 197c26b0..4c51584d 100644 --- a/macos/appkit/split_view_controller.gen.go +++ b/macos/appkit/split_view_controller.gen.go @@ -19,23 +19,19 @@ type _SplitViewControllerClass struct { // An interface definition for the [SplitViewController] class. type ISplitViewController interface { IViewController - SplitViewCanCollapseSubview(splitView ISplitView, subview IView) bool + RemoveSplitViewItem(splitViewItem ISplitViewItem) + ToggleSidebar(sender objc.IObject) objc.Object + AddSplitViewItem(splitViewItem ISplitViewItem) + InsertSplitViewItemAtIndex(splitViewItem ISplitViewItem, index int) ValidateUserInterfaceItem(item PValidatedUserInterfaceItem) bool ValidateUserInterfaceItemObject(itemObject objc.IObject) bool - SplitViewShouldHideDividerAtIndex(splitView ISplitView, dividerIndex int) bool - SplitViewEffectiveRectForDrawnRectOfDividerAtIndex(splitView ISplitView, proposedEffectiveRect foundation.Rect, drawnRect foundation.Rect, dividerIndex int) foundation.Rect SplitViewItemForViewController(viewController IViewController) SplitViewItem - SplitViewAdditionalEffectiveRectOfDividerAtIndex(splitView ISplitView, dividerIndex int) foundation.Rect - AddSplitViewItem(splitViewItem ISplitViewItem) - InsertSplitViewItemAtIndex(splitViewItem ISplitViewItem, index int) - ToggleSidebar(sender objc.IObject) objc.Object - RemoveSplitViewItem(splitViewItem ISplitViewItem) + SplitViewItems() []SplitViewItem + SetSplitViewItems(value []ISplitViewItem) SplitView() SplitView SetSplitView(value ISplitView) MinimumThicknessForInlineSidebars() float64 SetMinimumThicknessForInlineSidebars(value float64) - SplitViewItems() []SplitViewItem - SetSplitViewItems(value []ISplitViewItem) } // An object that manages an array of adjacent child views, and has a split view object for managing dividers between those views. [Full Topic] @@ -85,14 +81,35 @@ func NewSplitViewControllerWithNibNameBundle(nibNameOrNil NibName, nibBundleOrNi return instance } -// Allows the split view controller to determine whether the user can collapse and expand the specified subview. [Full Topic] +// Removes a specified split view item from the split view controller. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388903-removesplitviewitem?language=objc +func (s_ SplitViewController) RemoveSplitViewItem(splitViewItem ISplitViewItem) { + objc.Call[objc.Void](s_, objc.Sel("removeSplitViewItem:"), splitViewItem) +} + +// Collapses or expands the first sidebar in the split view controller using an animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388861-splitview?language=objc -func (s_ SplitViewController) SplitViewCanCollapseSubview(splitView ISplitView, subview IView) bool { - rv := objc.Call[bool](s_, objc.Sel("splitView:canCollapseSubview:"), splitView, subview) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388905-togglesidebar?language=objc +func (s_ SplitViewController) ToggleSidebar(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("toggleSidebar:"), sender) return rv } +// Adds a split view item to the end of the array of split view items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388928-addsplitviewitem?language=objc +func (s_ SplitViewController) AddSplitViewItem(splitViewItem ISplitViewItem) { + objc.Call[objc.Void](s_, objc.Sel("addSplitViewItem:"), splitViewItem) +} + +// Adds a split view item to the array of split view items at the specified index position. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388886-insertsplitviewitem?language=objc +func (s_ SplitViewController) InsertSplitViewItemAtIndex(splitViewItem ISplitViewItem, index int) { + objc.Call[objc.Void](s_, objc.Sel("insertSplitViewItem:atIndex:"), splitViewItem, index) +} + // Returns a Boolean value that indicates whether to enable the specified item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/2881936-validateuserinterfaceitem?language=objc @@ -110,22 +127,6 @@ func (s_ SplitViewController) ValidateUserInterfaceItemObject(itemObject objc.IO return rv } -// Allows the split view controller to determine whether the user can drag a divider or adjust it off the edge of the split view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388882-splitview?language=objc -func (s_ SplitViewController) SplitViewShouldHideDividerAtIndex(splitView ISplitView, dividerIndex int) bool { - rv := objc.Call[bool](s_, objc.Sel("splitView:shouldHideDividerAtIndex:"), splitView, dividerIndex) - return rv -} - -// Allows the split view controller to modify the rectangle where mouse clicks initiate divider dragging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388897-splitview?language=objc -func (s_ SplitViewController) SplitViewEffectiveRectForDrawnRectOfDividerAtIndex(splitView ISplitView, proposedEffectiveRect foundation.Rect, drawnRect foundation.Rect, dividerIndex int) foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("splitView:effectiveRect:forDrawnRect:ofDividerAtIndex:"), splitView, proposedEffectiveRect, drawnRect, dividerIndex) - return rv -} - // Returns the corresponding split view item for the specified child view controller of the split view controller. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388857-splitviewitemforviewcontroller?language=objc @@ -134,41 +135,19 @@ func (s_ SplitViewController) SplitViewItemForViewController(viewController IVie return rv } -// Allows the split view controller to return an additional rectangle where mouse clicks can initiate divider dragging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388922-splitview?language=objc -func (s_ SplitViewController) SplitViewAdditionalEffectiveRectOfDividerAtIndex(splitView ISplitView, dividerIndex int) foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("splitView:additionalEffectiveRectOfDividerAtIndex:"), splitView, dividerIndex) - return rv -} - -// Adds a split view item to the end of the array of split view items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388928-addsplitviewitem?language=objc -func (s_ SplitViewController) AddSplitViewItem(splitViewItem ISplitViewItem) { - objc.Call[objc.Void](s_, objc.Sel("addSplitViewItem:"), splitViewItem) -} - -// Adds a split view item to the array of split view items at the specified index position. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388886-insertsplitviewitem?language=objc -func (s_ SplitViewController) InsertSplitViewItemAtIndex(splitViewItem ISplitViewItem, index int) { - objc.Call[objc.Void](s_, objc.Sel("insertSplitViewItem:atIndex:"), splitViewItem, index) -} - -// Collapses or expands the first sidebar in the split view controller using an animation. [Full Topic] +// The array of split view items that correspond to the split view controller’s child view controllers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388905-togglesidebar?language=objc -func (s_ SplitViewController) ToggleSidebar(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("toggleSidebar:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388876-splitviewitems?language=objc +func (s_ SplitViewController) SplitViewItems() []SplitViewItem { + rv := objc.Call[[]SplitViewItem](s_, objc.Sel("splitViewItems")) return rv } -// Removes a specified split view item from the split view controller. [Full Topic] +// The array of split view items that correspond to the split view controller’s child view controllers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388903-removesplitviewitem?language=objc -func (s_ SplitViewController) RemoveSplitViewItem(splitViewItem ISplitViewItem) { - objc.Call[objc.Void](s_, objc.Sel("removeSplitViewItem:"), splitViewItem) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388876-splitviewitems?language=objc +func (s_ SplitViewController) SetSplitViewItems(value []ISplitViewItem) { + objc.Call[objc.Void](s_, objc.Sel("setSplitViewItems:"), value) } // The split view that the split view controller manages. [Full Topic] @@ -200,18 +179,3 @@ func (s_ SplitViewController) MinimumThicknessForInlineSidebars() float64 { func (s_ SplitViewController) SetMinimumThicknessForInlineSidebars(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMinimumThicknessForInlineSidebars:"), value) } - -// The array of split view items that correspond to the split view controller’s child view controllers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388876-splitviewitems?language=objc -func (s_ SplitViewController) SplitViewItems() []SplitViewItem { - rv := objc.Call[[]SplitViewItem](s_, objc.Sel("splitViewItems")) - return rv -} - -// The array of split view items that correspond to the split view controller’s child view controllers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewcontroller/1388876-splitviewitems?language=objc -func (s_ SplitViewController) SetSplitViewItems(value []ISplitViewItem) { - objc.Call[objc.Void](s_, objc.Sel("setSplitViewItems:"), value) -} diff --git a/macos/appkit/split_view_delegate.gen.go b/macos/appkit/split_view_delegate.gen.go index 9f8ee7e4..dbe6129c 100644 --- a/macos/appkit/split_view_delegate.gen.go +++ b/macos/appkit/split_view_delegate.gen.go @@ -11,100 +11,26 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate?language=objc type PSplitViewDelegate interface { - // optional - SplitViewDidResizeSubviews(notification foundation.Notification) - HasSplitViewDidResizeSubviews() bool - - // optional - SplitViewConstrainMaxCoordinateOfSubviewAt(splitView SplitView, proposedMaximumPosition float64, dividerIndex int) float64 - HasSplitViewConstrainMaxCoordinateOfSubviewAt() bool - // optional SplitViewWillResizeSubviews(notification foundation.Notification) HasSplitViewWillResizeSubviews() bool // optional - SplitViewConstrainSplitPositionOfSubviewAt(splitView SplitView, proposedPosition float64, dividerIndex int) float64 - HasSplitViewConstrainSplitPositionOfSubviewAt() bool - - // optional - SplitViewShouldAdjustSizeOfSubview(splitView SplitView, view View) bool - HasSplitViewShouldAdjustSizeOfSubview() bool - - // optional - SplitViewResizeSubviewsWithOldSize(splitView SplitView, oldSize foundation.Size) - HasSplitViewResizeSubviewsWithOldSize() bool - - // optional - SplitViewCanCollapseSubview(splitView SplitView, subview View) bool - HasSplitViewCanCollapseSubview() bool + SplitViewDidResizeSubviews(notification foundation.Notification) + HasSplitViewDidResizeSubviews() bool // optional SplitViewShouldHideDividerAtIndex(splitView SplitView, dividerIndex int) bool HasSplitViewShouldHideDividerAtIndex() bool - - // optional - SplitViewEffectiveRectForDrawnRectOfDividerAtIndex(splitView SplitView, proposedEffectiveRect foundation.Rect, drawnRect foundation.Rect, dividerIndex int) foundation.Rect - HasSplitViewEffectiveRectForDrawnRectOfDividerAtIndex() bool - - // optional - SplitViewAdditionalEffectiveRectOfDividerAtIndex(splitView SplitView, dividerIndex int) foundation.Rect - HasSplitViewAdditionalEffectiveRectOfDividerAtIndex() bool - - // optional - SplitViewConstrainMinCoordinateOfSubviewAt(splitView SplitView, proposedMinimumPosition float64, dividerIndex int) float64 - HasSplitViewConstrainMinCoordinateOfSubviewAt() bool } // A delegate implementation builder for the [PSplitViewDelegate] protocol. type SplitViewDelegate struct { - _SplitViewDidResizeSubviews func(notification foundation.Notification) - _SplitViewConstrainMaxCoordinateOfSubviewAt func(splitView SplitView, proposedMaximumPosition float64, dividerIndex int) float64 - _SplitViewWillResizeSubviews func(notification foundation.Notification) - _SplitViewConstrainSplitPositionOfSubviewAt func(splitView SplitView, proposedPosition float64, dividerIndex int) float64 - _SplitViewShouldAdjustSizeOfSubview func(splitView SplitView, view View) bool - _SplitViewResizeSubviewsWithOldSize func(splitView SplitView, oldSize foundation.Size) - _SplitViewCanCollapseSubview func(splitView SplitView, subview View) bool - _SplitViewShouldHideDividerAtIndex func(splitView SplitView, dividerIndex int) bool - _SplitViewEffectiveRectForDrawnRectOfDividerAtIndex func(splitView SplitView, proposedEffectiveRect foundation.Rect, drawnRect foundation.Rect, dividerIndex int) foundation.Rect - _SplitViewAdditionalEffectiveRectOfDividerAtIndex func(splitView SplitView, dividerIndex int) foundation.Rect - _SplitViewConstrainMinCoordinateOfSubviewAt func(splitView SplitView, proposedMinimumPosition float64, dividerIndex int) float64 -} - -func (di *SplitViewDelegate) HasSplitViewDidResizeSubviews() bool { - return di._SplitViewDidResizeSubviews != nil -} - -// Notifies the delegate when the split view resizes its subviews. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455314-splitviewdidresizesubviews?language=objc -func (di *SplitViewDelegate) SetSplitViewDidResizeSubviews(f func(notification foundation.Notification)) { - di._SplitViewDidResizeSubviews = f -} - -// Notifies the delegate when the split view resizes its subviews. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455314-splitviewdidresizesubviews?language=objc -func (di *SplitViewDelegate) SplitViewDidResizeSubviews(notification foundation.Notification) { - di._SplitViewDidResizeSubviews(notification) -} -func (di *SplitViewDelegate) HasSplitViewConstrainMaxCoordinateOfSubviewAt() bool { - return di._SplitViewConstrainMaxCoordinateOfSubviewAt != nil + _SplitViewWillResizeSubviews func(notification foundation.Notification) + _SplitViewDidResizeSubviews func(notification foundation.Notification) + _SplitViewShouldHideDividerAtIndex func(splitView SplitView, dividerIndex int) bool } -// Allows the delegate to constrain the maximum coordinate limit of a divider when the user drags it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455300-splitview?language=objc -func (di *SplitViewDelegate) SetSplitViewConstrainMaxCoordinateOfSubviewAt(f func(splitView SplitView, proposedMaximumPosition float64, dividerIndex int) float64) { - di._SplitViewConstrainMaxCoordinateOfSubviewAt = f -} - -// Allows the delegate to constrain the maximum coordinate limit of a divider when the user drags it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455300-splitview?language=objc -func (di *SplitViewDelegate) SplitViewConstrainMaxCoordinateOfSubviewAt(splitView SplitView, proposedMaximumPosition float64, dividerIndex int) float64 { - return di._SplitViewConstrainMaxCoordinateOfSubviewAt(splitView, proposedMaximumPosition, dividerIndex) -} func (di *SplitViewDelegate) HasSplitViewWillResizeSubviews() bool { return di._SplitViewWillResizeSubviews != nil } @@ -122,73 +48,22 @@ func (di *SplitViewDelegate) SetSplitViewWillResizeSubviews(f func(notification func (di *SplitViewDelegate) SplitViewWillResizeSubviews(notification foundation.Notification) { di._SplitViewWillResizeSubviews(notification) } -func (di *SplitViewDelegate) HasSplitViewConstrainSplitPositionOfSubviewAt() bool { - return di._SplitViewConstrainSplitPositionOfSubviewAt != nil -} - -// Allows the delegate to constrain the divider to certain positions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455312-splitview?language=objc -func (di *SplitViewDelegate) SetSplitViewConstrainSplitPositionOfSubviewAt(f func(splitView SplitView, proposedPosition float64, dividerIndex int) float64) { - di._SplitViewConstrainSplitPositionOfSubviewAt = f -} - -// Allows the delegate to constrain the divider to certain positions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455312-splitview?language=objc -func (di *SplitViewDelegate) SplitViewConstrainSplitPositionOfSubviewAt(splitView SplitView, proposedPosition float64, dividerIndex int) float64 { - return di._SplitViewConstrainSplitPositionOfSubviewAt(splitView, proposedPosition, dividerIndex) -} -func (di *SplitViewDelegate) HasSplitViewShouldAdjustSizeOfSubview() bool { - return di._SplitViewShouldAdjustSizeOfSubview != nil -} - -// Allows the delegate to specify whether to resize the subview. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455269-splitview?language=objc -func (di *SplitViewDelegate) SetSplitViewShouldAdjustSizeOfSubview(f func(splitView SplitView, view View) bool) { - di._SplitViewShouldAdjustSizeOfSubview = f -} - -// Allows the delegate to specify whether to resize the subview. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455269-splitview?language=objc -func (di *SplitViewDelegate) SplitViewShouldAdjustSizeOfSubview(splitView SplitView, view View) bool { - return di._SplitViewShouldAdjustSizeOfSubview(splitView, view) -} -func (di *SplitViewDelegate) HasSplitViewResizeSubviewsWithOldSize() bool { - return di._SplitViewResizeSubviewsWithOldSize != nil -} - -// Allows the delegate to specify custom sizing behavior for the subviews of the split view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455273-splitview?language=objc -func (di *SplitViewDelegate) SetSplitViewResizeSubviewsWithOldSize(f func(splitView SplitView, oldSize foundation.Size)) { - di._SplitViewResizeSubviewsWithOldSize = f -} - -// Allows the delegate to specify custom sizing behavior for the subviews of the split view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455273-splitview?language=objc -func (di *SplitViewDelegate) SplitViewResizeSubviewsWithOldSize(splitView SplitView, oldSize foundation.Size) { - di._SplitViewResizeSubviewsWithOldSize(splitView, oldSize) -} -func (di *SplitViewDelegate) HasSplitViewCanCollapseSubview() bool { - return di._SplitViewCanCollapseSubview != nil +func (di *SplitViewDelegate) HasSplitViewDidResizeSubviews() bool { + return di._SplitViewDidResizeSubviews != nil } -// Allows the delegate to determine whether the user can collapse and expand the specified subview. [Full Topic] +// Notifies the delegate when the split view resizes its subviews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455304-splitview?language=objc -func (di *SplitViewDelegate) SetSplitViewCanCollapseSubview(f func(splitView SplitView, subview View) bool) { - di._SplitViewCanCollapseSubview = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455314-splitviewdidresizesubviews?language=objc +func (di *SplitViewDelegate) SetSplitViewDidResizeSubviews(f func(notification foundation.Notification)) { + di._SplitViewDidResizeSubviews = f } -// Allows the delegate to determine whether the user can collapse and expand the specified subview. [Full Topic] +// Notifies the delegate when the split view resizes its subviews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455304-splitview?language=objc -func (di *SplitViewDelegate) SplitViewCanCollapseSubview(splitView SplitView, subview View) bool { - return di._SplitViewCanCollapseSubview(splitView, subview) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455314-splitviewdidresizesubviews?language=objc +func (di *SplitViewDelegate) SplitViewDidResizeSubviews(notification foundation.Notification) { + di._SplitViewDidResizeSubviews(notification) } func (di *SplitViewDelegate) HasSplitViewShouldHideDividerAtIndex() bool { return di._SplitViewShouldHideDividerAtIndex != nil @@ -207,57 +82,6 @@ func (di *SplitViewDelegate) SetSplitViewShouldHideDividerAtIndex(f func(splitVi func (di *SplitViewDelegate) SplitViewShouldHideDividerAtIndex(splitView SplitView, dividerIndex int) bool { return di._SplitViewShouldHideDividerAtIndex(splitView, dividerIndex) } -func (di *SplitViewDelegate) HasSplitViewEffectiveRectForDrawnRectOfDividerAtIndex() bool { - return di._SplitViewEffectiveRectForDrawnRectOfDividerAtIndex != nil -} - -// Allows the delegate to modify the rectangle where mouse clicks initiate divider dragging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455288-splitview?language=objc -func (di *SplitViewDelegate) SetSplitViewEffectiveRectForDrawnRectOfDividerAtIndex(f func(splitView SplitView, proposedEffectiveRect foundation.Rect, drawnRect foundation.Rect, dividerIndex int) foundation.Rect) { - di._SplitViewEffectiveRectForDrawnRectOfDividerAtIndex = f -} - -// Allows the delegate to modify the rectangle where mouse clicks initiate divider dragging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455288-splitview?language=objc -func (di *SplitViewDelegate) SplitViewEffectiveRectForDrawnRectOfDividerAtIndex(splitView SplitView, proposedEffectiveRect foundation.Rect, drawnRect foundation.Rect, dividerIndex int) foundation.Rect { - return di._SplitViewEffectiveRectForDrawnRectOfDividerAtIndex(splitView, proposedEffectiveRect, drawnRect, dividerIndex) -} -func (di *SplitViewDelegate) HasSplitViewAdditionalEffectiveRectOfDividerAtIndex() bool { - return di._SplitViewAdditionalEffectiveRectOfDividerAtIndex != nil -} - -// Allows the delegate to return an additional rectangle where mouse clicks can initiate divider dragging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455292-splitview?language=objc -func (di *SplitViewDelegate) SetSplitViewAdditionalEffectiveRectOfDividerAtIndex(f func(splitView SplitView, dividerIndex int) foundation.Rect) { - di._SplitViewAdditionalEffectiveRectOfDividerAtIndex = f -} - -// Allows the delegate to return an additional rectangle where mouse clicks can initiate divider dragging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455292-splitview?language=objc -func (di *SplitViewDelegate) SplitViewAdditionalEffectiveRectOfDividerAtIndex(splitView SplitView, dividerIndex int) foundation.Rect { - return di._SplitViewAdditionalEffectiveRectOfDividerAtIndex(splitView, dividerIndex) -} -func (di *SplitViewDelegate) HasSplitViewConstrainMinCoordinateOfSubviewAt() bool { - return di._SplitViewConstrainMinCoordinateOfSubviewAt != nil -} - -// Allows the delegate to constrain the minimum coordinate limit of a divider when the user drags it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455302-splitview?language=objc -func (di *SplitViewDelegate) SetSplitViewConstrainMinCoordinateOfSubviewAt(f func(splitView SplitView, proposedMinimumPosition float64, dividerIndex int) float64) { - di._SplitViewConstrainMinCoordinateOfSubviewAt = f -} - -// Allows the delegate to constrain the minimum coordinate limit of a divider when the user drags it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455302-splitview?language=objc -func (di *SplitViewDelegate) SplitViewConstrainMinCoordinateOfSubviewAt(splitView SplitView, proposedMinimumPosition float64, dividerIndex int) float64 { - return di._SplitViewConstrainMinCoordinateOfSubviewAt(splitView, proposedMinimumPosition, dividerIndex) -} // ensure impl type implements protocol interface var _ PSplitViewDelegate = (*SplitViewDelegateObject)(nil) @@ -267,29 +91,6 @@ type SplitViewDelegateObject struct { objc.Object } -func (s_ SplitViewDelegateObject) HasSplitViewDidResizeSubviews() bool { - return s_.RespondsToSelector(objc.Sel("splitViewDidResizeSubviews:")) -} - -// Notifies the delegate when the split view resizes its subviews. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455314-splitviewdidresizesubviews?language=objc -func (s_ SplitViewDelegateObject) SplitViewDidResizeSubviews(notification foundation.Notification) { - objc.Call[objc.Void](s_, objc.Sel("splitViewDidResizeSubviews:"), notification) -} - -func (s_ SplitViewDelegateObject) HasSplitViewConstrainMaxCoordinateOfSubviewAt() bool { - return s_.RespondsToSelector(objc.Sel("splitView:constrainMaxCoordinate:ofSubviewAt:")) -} - -// Allows the delegate to constrain the maximum coordinate limit of a divider when the user drags it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455300-splitview?language=objc -func (s_ SplitViewDelegateObject) SplitViewConstrainMaxCoordinateOfSubviewAt(splitView SplitView, proposedMaximumPosition float64, dividerIndex int) float64 { - rv := objc.Call[float64](s_, objc.Sel("splitView:constrainMaxCoordinate:ofSubviewAt:"), splitView, proposedMaximumPosition, dividerIndex) - return rv -} - func (s_ SplitViewDelegateObject) HasSplitViewWillResizeSubviews() bool { return s_.RespondsToSelector(objc.Sel("splitViewWillResizeSubviews:")) } @@ -301,51 +102,15 @@ func (s_ SplitViewDelegateObject) SplitViewWillResizeSubviews(notification found objc.Call[objc.Void](s_, objc.Sel("splitViewWillResizeSubviews:"), notification) } -func (s_ SplitViewDelegateObject) HasSplitViewConstrainSplitPositionOfSubviewAt() bool { - return s_.RespondsToSelector(objc.Sel("splitView:constrainSplitPosition:ofSubviewAt:")) -} - -// Allows the delegate to constrain the divider to certain positions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455312-splitview?language=objc -func (s_ SplitViewDelegateObject) SplitViewConstrainSplitPositionOfSubviewAt(splitView SplitView, proposedPosition float64, dividerIndex int) float64 { - rv := objc.Call[float64](s_, objc.Sel("splitView:constrainSplitPosition:ofSubviewAt:"), splitView, proposedPosition, dividerIndex) - return rv -} - -func (s_ SplitViewDelegateObject) HasSplitViewShouldAdjustSizeOfSubview() bool { - return s_.RespondsToSelector(objc.Sel("splitView:shouldAdjustSizeOfSubview:")) -} - -// Allows the delegate to specify whether to resize the subview. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455269-splitview?language=objc -func (s_ SplitViewDelegateObject) SplitViewShouldAdjustSizeOfSubview(splitView SplitView, view View) bool { - rv := objc.Call[bool](s_, objc.Sel("splitView:shouldAdjustSizeOfSubview:"), splitView, view) - return rv -} - -func (s_ SplitViewDelegateObject) HasSplitViewResizeSubviewsWithOldSize() bool { - return s_.RespondsToSelector(objc.Sel("splitView:resizeSubviewsWithOldSize:")) -} - -// Allows the delegate to specify custom sizing behavior for the subviews of the split view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455273-splitview?language=objc -func (s_ SplitViewDelegateObject) SplitViewResizeSubviewsWithOldSize(splitView SplitView, oldSize foundation.Size) { - objc.Call[objc.Void](s_, objc.Sel("splitView:resizeSubviewsWithOldSize:"), splitView, oldSize) -} - -func (s_ SplitViewDelegateObject) HasSplitViewCanCollapseSubview() bool { - return s_.RespondsToSelector(objc.Sel("splitView:canCollapseSubview:")) +func (s_ SplitViewDelegateObject) HasSplitViewDidResizeSubviews() bool { + return s_.RespondsToSelector(objc.Sel("splitViewDidResizeSubviews:")) } -// Allows the delegate to determine whether the user can collapse and expand the specified subview. [Full Topic] +// Notifies the delegate when the split view resizes its subviews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455304-splitview?language=objc -func (s_ SplitViewDelegateObject) SplitViewCanCollapseSubview(splitView SplitView, subview View) bool { - rv := objc.Call[bool](s_, objc.Sel("splitView:canCollapseSubview:"), splitView, subview) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455314-splitviewdidresizesubviews?language=objc +func (s_ SplitViewDelegateObject) SplitViewDidResizeSubviews(notification foundation.Notification) { + objc.Call[objc.Void](s_, objc.Sel("splitViewDidResizeSubviews:"), notification) } func (s_ SplitViewDelegateObject) HasSplitViewShouldHideDividerAtIndex() bool { @@ -359,39 +124,3 @@ func (s_ SplitViewDelegateObject) SplitViewShouldHideDividerAtIndex(splitView Sp rv := objc.Call[bool](s_, objc.Sel("splitView:shouldHideDividerAtIndex:"), splitView, dividerIndex) return rv } - -func (s_ SplitViewDelegateObject) HasSplitViewEffectiveRectForDrawnRectOfDividerAtIndex() bool { - return s_.RespondsToSelector(objc.Sel("splitView:effectiveRect:forDrawnRect:ofDividerAtIndex:")) -} - -// Allows the delegate to modify the rectangle where mouse clicks initiate divider dragging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455288-splitview?language=objc -func (s_ SplitViewDelegateObject) SplitViewEffectiveRectForDrawnRectOfDividerAtIndex(splitView SplitView, proposedEffectiveRect foundation.Rect, drawnRect foundation.Rect, dividerIndex int) foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("splitView:effectiveRect:forDrawnRect:ofDividerAtIndex:"), splitView, proposedEffectiveRect, drawnRect, dividerIndex) - return rv -} - -func (s_ SplitViewDelegateObject) HasSplitViewAdditionalEffectiveRectOfDividerAtIndex() bool { - return s_.RespondsToSelector(objc.Sel("splitView:additionalEffectiveRectOfDividerAtIndex:")) -} - -// Allows the delegate to return an additional rectangle where mouse clicks can initiate divider dragging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455292-splitview?language=objc -func (s_ SplitViewDelegateObject) SplitViewAdditionalEffectiveRectOfDividerAtIndex(splitView SplitView, dividerIndex int) foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("splitView:additionalEffectiveRectOfDividerAtIndex:"), splitView, dividerIndex) - return rv -} - -func (s_ SplitViewDelegateObject) HasSplitViewConstrainMinCoordinateOfSubviewAt() bool { - return s_.RespondsToSelector(objc.Sel("splitView:constrainMinCoordinate:ofSubviewAt:")) -} - -// Allows the delegate to constrain the minimum coordinate limit of a divider when the user drags it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455302-splitview?language=objc -func (s_ SplitViewDelegateObject) SplitViewConstrainMinCoordinateOfSubviewAt(splitView SplitView, proposedMinimumPosition float64, dividerIndex int) float64 { - rv := objc.Call[float64](s_, objc.Sel("splitView:constrainMinCoordinate:ofSubviewAt:"), splitView, proposedMinimumPosition, dividerIndex) - return rv -} diff --git a/macos/appkit/split_view_item.gen.go b/macos/appkit/split_view_item.gen.go index a29d7f1f..49968d8e 100644 --- a/macos/appkit/split_view_item.gen.go +++ b/macos/appkit/split_view_item.gen.go @@ -18,31 +18,31 @@ type _SplitViewItemClass struct { // An interface definition for the [SplitViewItem] class. type ISplitViewItem interface { objc.IObject - Behavior() SplitViewItemBehavior - MinimumThickness() float64 - SetMinimumThickness(value float64) - HoldingPriority() LayoutPriority - SetHoldingPriority(value LayoutPriority) - ViewController() ViewController - SetViewController(value IViewController) AutomaticMaximumThickness() float64 SetAutomaticMaximumThickness(value float64) - IsSpringLoaded() bool - SetSpringLoaded(value bool) PreferredThicknessFraction() float64 SetPreferredThicknessFraction(value float64) - IsCollapsed() bool - SetCollapsed(value bool) - CollapseBehavior() SplitViewItemCollapseBehavior - SetCollapseBehavior(value SplitViewItemCollapseBehavior) MaximumThickness() float64 SetMaximumThickness(value float64) + HoldingPriority() LayoutPriority + SetHoldingPriority(value LayoutPriority) + CollapseBehavior() SplitViewItemCollapseBehavior + SetCollapseBehavior(value SplitViewItemCollapseBehavior) + Behavior() SplitViewItemBehavior + IsCollapsed() bool + SetCollapsed(value bool) + ViewController() ViewController + SetViewController(value IViewController) CanCollapse() bool SetCanCollapse(value bool) - AllowsFullHeightLayout() bool - SetAllowsFullHeightLayout(value bool) + MinimumThickness() float64 + SetMinimumThickness(value float64) TitlebarSeparatorStyle() TitlebarSeparatorStyle SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) + AllowsFullHeightLayout() bool + SetAllowsFullHeightLayout(value bool) + IsSpringLoaded() bool + SetSpringLoaded(value bool) } // An item in a split view controller. [Full Topic] @@ -58,16 +58,16 @@ func SplitViewItemFrom(ptr unsafe.Pointer) SplitViewItem { } } -func (sc _SplitViewItemClass) ContentListWithViewController(viewController IViewController) SplitViewItem { - rv := objc.Call[SplitViewItem](sc, objc.Sel("contentListWithViewController:"), viewController) +func (sc _SplitViewItemClass) SidebarWithViewController(viewController IViewController) SplitViewItem { + rv := objc.Call[SplitViewItem](sc, objc.Sel("sidebarWithViewController:"), viewController) return rv } -// Creates a split view item that represents a content list for the specified view controller. [Full Topic] +// Creates a split view item that represents a sidebar for the specified view controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388878-contentlistwithviewcontroller?language=objc -func SplitViewItem_ContentListWithViewController(viewController IViewController) SplitViewItem { - return SplitViewItemClass.ContentListWithViewController(viewController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388920-sidebarwithviewcontroller?language=objc +func SplitViewItem_SidebarWithViewController(viewController IViewController) SplitViewItem { + return SplitViewItemClass.SidebarWithViewController(viewController) } func (sc _SplitViewItemClass) SplitViewItemWithViewController(viewController IViewController) SplitViewItem { @@ -82,16 +82,16 @@ func SplitViewItem_SplitViewItemWithViewController(viewController IViewControlle return SplitViewItemClass.SplitViewItemWithViewController(viewController) } -func (sc _SplitViewItemClass) SidebarWithViewController(viewController IViewController) SplitViewItem { - rv := objc.Call[SplitViewItem](sc, objc.Sel("sidebarWithViewController:"), viewController) +func (sc _SplitViewItemClass) ContentListWithViewController(viewController IViewController) SplitViewItem { + rv := objc.Call[SplitViewItem](sc, objc.Sel("contentListWithViewController:"), viewController) return rv } -// Creates a split view item that represents a sidebar for the specified view controller. [Full Topic] +// Creates a split view item that represents a content list for the specified view controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388920-sidebarwithviewcontroller?language=objc -func SplitViewItem_SidebarWithViewController(viewController IViewController) SplitViewItem { - return SplitViewItemClass.SidebarWithViewController(viewController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388878-contentlistwithviewcontroller?language=objc +func SplitViewItem_ContentListWithViewController(viewController IViewController) SplitViewItem { + return SplitViewItemClass.ContentListWithViewController(viewController) } func (sc _SplitViewItemClass) Alloc() SplitViewItem { @@ -114,104 +114,89 @@ func (s_ SplitViewItem) Init() SplitViewItem { return rv } -// The standard behavior type of the split view item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388899-behavior?language=objc -func (s_ SplitViewItem) Behavior() SplitViewItemBehavior { - rv := objc.Call[SplitViewItemBehavior](s_, objc.Sel("behavior")) - return rv -} - -// The minimum thickness of the split view item. [Full Topic] +// The maximum thickness of the split view item when it resizes due to automatic sizing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388853-minimumthickness?language=objc -func (s_ SplitViewItem) MinimumThickness() float64 { - rv := objc.Call[float64](s_, objc.Sel("minimumThickness")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388889-automaticmaximumthickness?language=objc +func (s_ SplitViewItem) AutomaticMaximumThickness() float64 { + rv := objc.Call[float64](s_, objc.Sel("automaticMaximumThickness")) return rv } -// The minimum thickness of the split view item. [Full Topic] +// The maximum thickness of the split view item when it resizes due to automatic sizing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388853-minimumthickness?language=objc -func (s_ SplitViewItem) SetMinimumThickness(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMinimumThickness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388889-automaticmaximumthickness?language=objc +func (s_ SplitViewItem) SetAutomaticMaximumThickness(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setAutomaticMaximumThickness:"), value) } -// The priority for a split view item to hold its size. [Full Topic] +// The preferred thickness of the split view item relative to the split view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388887-holdingpriority?language=objc -func (s_ SplitViewItem) HoldingPriority() LayoutPriority { - rv := objc.Call[LayoutPriority](s_, objc.Sel("holdingPriority")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388885-preferredthicknessfraction?language=objc +func (s_ SplitViewItem) PreferredThicknessFraction() float64 { + rv := objc.Call[float64](s_, objc.Sel("preferredThicknessFraction")) return rv } -// The priority for a split view item to hold its size. [Full Topic] +// The preferred thickness of the split view item relative to the split view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388887-holdingpriority?language=objc -func (s_ SplitViewItem) SetHoldingPriority(value LayoutPriority) { - objc.Call[objc.Void](s_, objc.Sel("setHoldingPriority:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388885-preferredthicknessfraction?language=objc +func (s_ SplitViewItem) SetPreferredThicknessFraction(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setPreferredThicknessFraction:"), value) } -// The view controller that the split view item represents. [Full Topic] +// The maximum thickness of the split view item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388911-viewcontroller?language=objc -func (s_ SplitViewItem) ViewController() ViewController { - rv := objc.Call[ViewController](s_, objc.Sel("viewController")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388930-maximumthickness?language=objc +func (s_ SplitViewItem) MaximumThickness() float64 { + rv := objc.Call[float64](s_, objc.Sel("maximumThickness")) return rv } -// The view controller that the split view item represents. [Full Topic] +// The maximum thickness of the split view item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388911-viewcontroller?language=objc -func (s_ SplitViewItem) SetViewController(value IViewController) { - objc.Call[objc.Void](s_, objc.Sel("setViewController:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388930-maximumthickness?language=objc +func (s_ SplitViewItem) SetMaximumThickness(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMaximumThickness:"), value) } -// The maximum thickness of the split view item when it resizes due to automatic sizing. [Full Topic] +// The priority for a split view item to hold its size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388889-automaticmaximumthickness?language=objc -func (s_ SplitViewItem) AutomaticMaximumThickness() float64 { - rv := objc.Call[float64](s_, objc.Sel("automaticMaximumThickness")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388887-holdingpriority?language=objc +func (s_ SplitViewItem) HoldingPriority() LayoutPriority { + rv := objc.Call[LayoutPriority](s_, objc.Sel("holdingPriority")) return rv } -// The maximum thickness of the split view item when it resizes due to automatic sizing. [Full Topic] +// The priority for a split view item to hold its size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388889-automaticmaximumthickness?language=objc -func (s_ SplitViewItem) SetAutomaticMaximumThickness(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setAutomaticMaximumThickness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388887-holdingpriority?language=objc +func (s_ SplitViewItem) SetHoldingPriority(value LayoutPriority) { + objc.Call[objc.Void](s_, objc.Sel("setHoldingPriority:"), value) } -// A Boolean value that determines whether the split view item can temporarily expand during a drag. [Full Topic] +// The resizing behavior when the split view item toggles its collapsed state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388895-springloaded?language=objc -func (s_ SplitViewItem) IsSpringLoaded() bool { - rv := objc.Call[bool](s_, objc.Sel("isSpringLoaded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388851-collapsebehavior?language=objc +func (s_ SplitViewItem) CollapseBehavior() SplitViewItemCollapseBehavior { + rv := objc.Call[SplitViewItemCollapseBehavior](s_, objc.Sel("collapseBehavior")) return rv } -// A Boolean value that determines whether the split view item can temporarily expand during a drag. [Full Topic] +// The resizing behavior when the split view item toggles its collapsed state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388895-springloaded?language=objc -func (s_ SplitViewItem) SetSpringLoaded(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setSpringLoaded:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388851-collapsebehavior?language=objc +func (s_ SplitViewItem) SetCollapseBehavior(value SplitViewItemCollapseBehavior) { + objc.Call[objc.Void](s_, objc.Sel("setCollapseBehavior:"), value) } -// The preferred thickness of the split view item relative to the split view. [Full Topic] +// The standard behavior type of the split view item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388885-preferredthicknessfraction?language=objc -func (s_ SplitViewItem) PreferredThicknessFraction() float64 { - rv := objc.Call[float64](s_, objc.Sel("preferredThicknessFraction")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388899-behavior?language=objc +func (s_ SplitViewItem) Behavior() SplitViewItemBehavior { + rv := objc.Call[SplitViewItemBehavior](s_, objc.Sel("behavior")) return rv } -// The preferred thickness of the split view item relative to the split view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388885-preferredthicknessfraction?language=objc -func (s_ SplitViewItem) SetPreferredThicknessFraction(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setPreferredThicknessFraction:"), value) -} - // A Boolean value that determines whether the child view controller that corresponds to the split view item is in a collapsed state in the split view controller. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388891-collapsed?language=objc @@ -227,34 +212,19 @@ func (s_ SplitViewItem) SetCollapsed(value bool) { objc.Call[objc.Void](s_, objc.Sel("setCollapsed:"), value) } -// The resizing behavior when the split view item toggles its collapsed state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388851-collapsebehavior?language=objc -func (s_ SplitViewItem) CollapseBehavior() SplitViewItemCollapseBehavior { - rv := objc.Call[SplitViewItemCollapseBehavior](s_, objc.Sel("collapseBehavior")) - return rv -} - -// The resizing behavior when the split view item toggles its collapsed state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388851-collapsebehavior?language=objc -func (s_ SplitViewItem) SetCollapseBehavior(value SplitViewItemCollapseBehavior) { - objc.Call[objc.Void](s_, objc.Sel("setCollapseBehavior:"), value) -} - -// The maximum thickness of the split view item. [Full Topic] +// The view controller that the split view item represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388930-maximumthickness?language=objc -func (s_ SplitViewItem) MaximumThickness() float64 { - rv := objc.Call[float64](s_, objc.Sel("maximumThickness")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388911-viewcontroller?language=objc +func (s_ SplitViewItem) ViewController() ViewController { + rv := objc.Call[ViewController](s_, objc.Sel("viewController")) return rv } -// The maximum thickness of the split view item. [Full Topic] +// The view controller that the split view item represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388930-maximumthickness?language=objc -func (s_ SplitViewItem) SetMaximumThickness(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMaximumThickness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388911-viewcontroller?language=objc +func (s_ SplitViewItem) SetViewController(value IViewController) { + objc.Call[objc.Void](s_, objc.Sel("setViewController:"), value) } // A Boolean value that determines whether a user interaction can collapse the child view controller that corresponds to the split view item. [Full Topic] @@ -272,19 +242,19 @@ func (s_ SplitViewItem) SetCanCollapse(value bool) { objc.Call[objc.Void](s_, objc.Sel("setCanCollapse:"), value) } -// A Boolean value that indicates whether full-height sidebars appear in the window after you set a style mask. [Full Topic] +// The minimum thickness of the split view item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/3608197-allowsfullheightlayout?language=objc -func (s_ SplitViewItem) AllowsFullHeightLayout() bool { - rv := objc.Call[bool](s_, objc.Sel("allowsFullHeightLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388853-minimumthickness?language=objc +func (s_ SplitViewItem) MinimumThickness() float64 { + rv := objc.Call[float64](s_, objc.Sel("minimumThickness")) return rv } -// A Boolean value that indicates whether full-height sidebars appear in the window after you set a style mask. [Full Topic] +// The minimum thickness of the split view item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/3608197-allowsfullheightlayout?language=objc -func (s_ SplitViewItem) SetAllowsFullHeightLayout(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setAllowsFullHeightLayout:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388853-minimumthickness?language=objc +func (s_ SplitViewItem) SetMinimumThickness(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMinimumThickness:"), value) } // The type of separator that the app displays between the title bar and content of a window. [Full Topic] @@ -301,3 +271,33 @@ func (s_ SplitViewItem) TitlebarSeparatorStyle() TitlebarSeparatorStyle { func (s_ SplitViewItem) SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) { objc.Call[objc.Void](s_, objc.Sel("setTitlebarSeparatorStyle:"), value) } + +// A Boolean value that indicates whether full-height sidebars appear in the window after you set a style mask. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/3608197-allowsfullheightlayout?language=objc +func (s_ SplitViewItem) AllowsFullHeightLayout() bool { + rv := objc.Call[bool](s_, objc.Sel("allowsFullHeightLayout")) + return rv +} + +// A Boolean value that indicates whether full-height sidebars appear in the window after you set a style mask. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/3608197-allowsfullheightlayout?language=objc +func (s_ SplitViewItem) SetAllowsFullHeightLayout(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setAllowsFullHeightLayout:"), value) +} + +// A Boolean value that determines whether the split view item can temporarily expand during a drag. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388895-springloaded?language=objc +func (s_ SplitViewItem) IsSpringLoaded() bool { + rv := objc.Call[bool](s_, objc.Sel("isSpringLoaded")) + return rv +} + +// A Boolean value that determines whether the split view item can temporarily expand during a drag. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewitem/1388895-springloaded?language=objc +func (s_ SplitViewItem) SetSpringLoaded(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setSpringLoaded:"), value) +} diff --git a/macos/appkit/spring_loading_destination_protocol.gen.go b/macos/appkit/spring_loading_destination_protocol.gen.go index 59b7337f..ee0a0acf 100644 --- a/macos/appkit/spring_loading_destination_protocol.gen.go +++ b/macos/appkit/spring_loading_destination_protocol.gen.go @@ -11,28 +11,28 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination?language=objc type PSpringLoadingDestination interface { // optional - SpringLoadingExited(draggingInfo DraggingInfoObject) - HasSpringLoadingExited() bool - - // optional - DraggingEnded(draggingInfo DraggingInfoObject) - HasDraggingEnded() bool + SpringLoadingUpdated(draggingInfo DraggingInfoObject) SpringLoadingOptions + HasSpringLoadingUpdated() bool // optional SpringLoadingEntered(draggingInfo DraggingInfoObject) SpringLoadingOptions HasSpringLoadingEntered() bool // optional - SpringLoadingActivatedDraggingInfo(activated bool, draggingInfo DraggingInfoObject) - HasSpringLoadingActivatedDraggingInfo() bool + DraggingEnded(draggingInfo DraggingInfoObject) + HasDraggingEnded() bool // optional SpringLoadingHighlightChanged(draggingInfo DraggingInfoObject) HasSpringLoadingHighlightChanged() bool // optional - SpringLoadingUpdated(draggingInfo DraggingInfoObject) SpringLoadingOptions - HasSpringLoadingUpdated() bool + SpringLoadingActivatedDraggingInfo(activated bool, draggingInfo DraggingInfoObject) + HasSpringLoadingActivatedDraggingInfo() bool + + // optional + SpringLoadingExited(draggingInfo DraggingInfoObject) + HasSpringLoadingExited() bool } // ensure impl type implements protocol interface @@ -43,28 +43,17 @@ type SpringLoadingDestinationObject struct { objc.Object } -func (s_ SpringLoadingDestinationObject) HasSpringLoadingExited() bool { - return s_.RespondsToSelector(objc.Sel("springLoadingExited:")) -} - -// Responds when a drag exits the bounds of the spring-loading destination. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1415972-springloadingexited?language=objc -func (s_ SpringLoadingDestinationObject) SpringLoadingExited(draggingInfo DraggingInfoObject) { - po0 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - objc.Call[objc.Void](s_, objc.Sel("springLoadingExited:"), po0) -} - -func (s_ SpringLoadingDestinationObject) HasDraggingEnded() bool { - return s_.RespondsToSelector(objc.Sel("draggingEnded:")) +func (s_ SpringLoadingDestinationObject) HasSpringLoadingUpdated() bool { + return s_.RespondsToSelector(objc.Sel("springLoadingUpdated:")) } -// Responds to the end of a drag operation. [Full Topic] +// Returns whether to enable or disable spring-loading as a drag moves within the bounds of the spring-loading destination or draggingInfo changes during the drag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1416047-draggingended?language=objc -func (s_ SpringLoadingDestinationObject) DraggingEnded(draggingInfo DraggingInfoObject) { +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1415976-springloadingupdated?language=objc +func (s_ SpringLoadingDestinationObject) SpringLoadingUpdated(draggingInfo DraggingInfoObject) SpringLoadingOptions { po0 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - objc.Call[objc.Void](s_, objc.Sel("draggingEnded:"), po0) + rv := objc.Call[SpringLoadingOptions](s_, objc.Sel("springLoadingUpdated:"), po0) + return rv } func (s_ SpringLoadingDestinationObject) HasSpringLoadingEntered() bool { @@ -80,16 +69,16 @@ func (s_ SpringLoadingDestinationObject) SpringLoadingEntered(draggingInfo Dragg return rv } -func (s_ SpringLoadingDestinationObject) HasSpringLoadingActivatedDraggingInfo() bool { - return s_.RespondsToSelector(objc.Sel("springLoadingActivated:draggingInfo:")) +func (s_ SpringLoadingDestinationObject) HasDraggingEnded() bool { + return s_.RespondsToSelector(objc.Sel("draggingEnded:")) } -// Responds to the activation or deactivation of spring-loading on a destination. [Full Topic] +// Responds to the end of a drag operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1416106-springloadingactivated?language=objc -func (s_ SpringLoadingDestinationObject) SpringLoadingActivatedDraggingInfo(activated bool, draggingInfo DraggingInfoObject) { - po1 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - objc.Call[objc.Void](s_, objc.Sel("springLoadingActivated:draggingInfo:"), activated, po1) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1416047-draggingended?language=objc +func (s_ SpringLoadingDestinationObject) DraggingEnded(draggingInfo DraggingInfoObject) { + po0 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) + objc.Call[objc.Void](s_, objc.Sel("draggingEnded:"), po0) } func (s_ SpringLoadingDestinationObject) HasSpringLoadingHighlightChanged() bool { @@ -104,15 +93,26 @@ func (s_ SpringLoadingDestinationObject) SpringLoadingHighlightChanged(draggingI objc.Call[objc.Void](s_, objc.Sel("springLoadingHighlightChanged:"), po0) } -func (s_ SpringLoadingDestinationObject) HasSpringLoadingUpdated() bool { - return s_.RespondsToSelector(objc.Sel("springLoadingUpdated:")) +func (s_ SpringLoadingDestinationObject) HasSpringLoadingActivatedDraggingInfo() bool { + return s_.RespondsToSelector(objc.Sel("springLoadingActivated:draggingInfo:")) } -// Returns whether to enable or disable spring-loading as a drag moves within the bounds of the spring-loading destination or draggingInfo changes during the drag. [Full Topic] +// Responds to the activation or deactivation of spring-loading on a destination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1415976-springloadingupdated?language=objc -func (s_ SpringLoadingDestinationObject) SpringLoadingUpdated(draggingInfo DraggingInfoObject) SpringLoadingOptions { +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1416106-springloadingactivated?language=objc +func (s_ SpringLoadingDestinationObject) SpringLoadingActivatedDraggingInfo(activated bool, draggingInfo DraggingInfoObject) { + po1 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) + objc.Call[objc.Void](s_, objc.Sel("springLoadingActivated:draggingInfo:"), activated, po1) +} + +func (s_ SpringLoadingDestinationObject) HasSpringLoadingExited() bool { + return s_.RespondsToSelector(objc.Sel("springLoadingExited:")) +} + +// Responds when a drag exits the bounds of the spring-loading destination. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1415972-springloadingexited?language=objc +func (s_ SpringLoadingDestinationObject) SpringLoadingExited(draggingInfo DraggingInfoObject) { po0 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - rv := objc.Call[SpringLoadingOptions](s_, objc.Sel("springLoadingUpdated:"), po0) - return rv + objc.Call[objc.Void](s_, objc.Sel("springLoadingExited:"), po0) } diff --git a/macos/appkit/stack_view.gen.go b/macos/appkit/stack_view.gen.go index 18be929b..b99ada6e 100644 --- a/macos/appkit/stack_view.gen.go +++ b/macos/appkit/stack_view.gen.go @@ -19,40 +19,40 @@ type _StackViewClass struct { // An interface definition for the [StackView] class. type IStackView interface { IView - CustomSpacingAfterView(view IView) float64 RemoveView(view IView) - AddViewInGravity(view IView, gravity StackViewGravity) - InsertArrangedSubviewAtIndex(view IView, index int) - SetViewsInGravity(views []IView, gravity StackViewGravity) SetClippingResistancePriorityForOrientation(clippingResistancePriority LayoutPriority, orientation LayoutConstraintOrientation) - HuggingPriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority + SetVisibilityPriorityForView(priority StackViewVisibilityPriority, view IView) + SetHuggingPriorityForOrientation(huggingPriority LayoutPriority, orientation LayoutConstraintOrientation) + VisibilityPriorityForView(view IView) StackViewVisibilityPriority + CustomSpacingAfterView(view IView) float64 + AddViewInGravity(view IView, gravity StackViewGravity) ViewsInGravity(gravity StackViewGravity) []View - RemoveArrangedSubview(view IView) AddArrangedSubview(view IView) - VisibilityPriorityForView(view IView) StackViewVisibilityPriority - SetCustomSpacingAfterView(spacing float64, view IView) InsertViewAtIndexInGravity(view IView, index uint, gravity StackViewGravity) + InsertArrangedSubviewAtIndex(view IView, index int) + HuggingPriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority ClippingResistancePriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority - SetVisibilityPriorityForView(priority StackViewVisibilityPriority, view IView) - SetHuggingPriorityForOrientation(huggingPriority LayoutPriority, orientation LayoutConstraintOrientation) - DetachesHiddenViews() bool - SetDetachesHiddenViews(value bool) - Views() []View - DetachedViews() []View + SetCustomSpacingAfterView(spacing float64, view IView) + RemoveArrangedSubview(view IView) + SetViewsInGravity(views []IView, gravity StackViewGravity) Distribution() StackViewDistribution SetDistribution(value StackViewDistribution) + Views() []View + DetachedViews() []View + EdgeInsets() foundation.EdgeInsets + SetEdgeInsets(value foundation.EdgeInsets) + Alignment() LayoutAttribute + SetAlignment(value LayoutAttribute) Delegate() StackViewDelegateObject SetDelegate(value PStackViewDelegate) SetDelegateObject(valueObject objc.IObject) ArrangedSubviews() []View - Orientation() UserInterfaceLayoutOrientation - SetOrientation(value UserInterfaceLayoutOrientation) - EdgeInsets() foundation.EdgeInsets - SetEdgeInsets(value foundation.EdgeInsets) Spacing() float64 SetSpacing(value float64) - Alignment() LayoutAttribute - SetAlignment(value LayoutAttribute) + DetachesHiddenViews() bool + SetDetachesHiddenViews(value bool) + Orientation() UserInterfaceLayoutOrientation + SetOrientation(value UserInterfaceLayoutOrientation) } // A view that arranges an array of views horizontally or vertically and updates their placement and sizing when the window size changes. [Full Topic] @@ -114,14 +114,6 @@ func NewStackViewWithFrame(frameRect foundation.Rect) StackView { return instance } -// Returns the custom spacing, in points, between a specified view in the stack view and the view that follows it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488888-customspacingafterview?language=objc -func (s_ StackView) CustomSpacingAfterView(view IView) float64 { - rv := objc.Call[float64](s_, objc.Sel("customSpacingAfterView:"), view) - return rv -} - // Removes a specified view from the stack view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488916-removeview?language=objc @@ -129,42 +121,50 @@ func (s_ StackView) RemoveView(view IView) { objc.Call[objc.Void](s_, objc.Sel("removeView:"), view) } -// Adds a view to the end of the stack view gravity area. [Full Topic] +// Sets the Auto Layout priority for resisting clipping of views in the stack view when Auto Layout attempts to reduce the stack view’s size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488897-addview?language=objc -func (s_ StackView) AddViewInGravity(view IView, gravity StackViewGravity) { - objc.Call[objc.Void](s_, objc.Sel("addView:inGravity:"), view, gravity) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488880-setclippingresistancepriority?language=objc +func (s_ StackView) SetClippingResistancePriorityForOrientation(clippingResistancePriority LayoutPriority, orientation LayoutConstraintOrientation) { + objc.Call[objc.Void](s_, objc.Sel("setClippingResistancePriority:forOrientation:"), clippingResistancePriority, orientation) } -// Adds the provided view to the array of arranged subviews at the specified index. [Full Topic] +// Sets the Auto Layout priority for a view to remain attached to the stack view when Auto Layout reduces the stack view’s size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488896-insertarrangedsubview?language=objc -func (s_ StackView) InsertArrangedSubviewAtIndex(view IView, index int) { - objc.Call[objc.Void](s_, objc.Sel("insertArrangedSubview:atIndex:"), view, index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488890-setvisibilitypriority?language=objc +func (s_ StackView) SetVisibilityPriorityForView(priority StackViewVisibilityPriority, view IView) { + objc.Call[objc.Void](s_, objc.Sel("setVisibilityPriority:forView:"), priority, view) } -// Specifies an array of views for a specified gravity area in the stack view, replacing any previous views in that area. [Full Topic] +// Sets the Auto Layout priority for the stack view to minimize its size, for a specified user interface axis. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488883-setviews?language=objc -func (s_ StackView) SetViewsInGravity(views []IView, gravity StackViewGravity) { - objc.Call[objc.Void](s_, objc.Sel("setViews:inGravity:"), views, gravity) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488904-sethuggingpriority?language=objc +func (s_ StackView) SetHuggingPriorityForOrientation(huggingPriority LayoutPriority, orientation LayoutConstraintOrientation) { + objc.Call[objc.Void](s_, objc.Sel("setHuggingPriority:forOrientation:"), huggingPriority, orientation) } -// Sets the Auto Layout priority for resisting clipping of views in the stack view when Auto Layout attempts to reduce the stack view’s size. [Full Topic] +// Returns the visibility priority for a specified view in the stack view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488880-setclippingresistancepriority?language=objc -func (s_ StackView) SetClippingResistancePriorityForOrientation(clippingResistancePriority LayoutPriority, orientation LayoutConstraintOrientation) { - objc.Call[objc.Void](s_, objc.Sel("setClippingResistancePriority:forOrientation:"), clippingResistancePriority, orientation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488934-visibilitypriorityforview?language=objc +func (s_ StackView) VisibilityPriorityForView(view IView) StackViewVisibilityPriority { + rv := objc.Call[StackViewVisibilityPriority](s_, objc.Sel("visibilityPriorityForView:"), view) + return rv } -// Returns the Auto Layout priority for the stack view to minimize its size to fit its contained views as closely as possible, for a specified user interface axis. [Full Topic] +// Returns the custom spacing, in points, between a specified view in the stack view and the view that follows it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488912-huggingpriorityfororientation?language=objc -func (s_ StackView) HuggingPriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority { - rv := objc.Call[LayoutPriority](s_, objc.Sel("huggingPriorityForOrientation:"), orientation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488888-customspacingafterview?language=objc +func (s_ StackView) CustomSpacingAfterView(view IView) float64 { + rv := objc.Call[float64](s_, objc.Sel("customSpacingAfterView:"), view) return rv } +// Adds a view to the end of the stack view gravity area. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488897-addview?language=objc +func (s_ StackView) AddViewInGravity(view IView, gravity StackViewGravity) { + objc.Call[objc.Void](s_, objc.Sel("addView:inGravity:"), view, gravity) +} + // Returns the array of views in the specified gravity area in the stack view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488876-viewsingravity?language=objc @@ -173,13 +173,6 @@ func (s_ StackView) ViewsInGravity(gravity StackViewGravity) []View { return rv } -// Removes the provided view from the stack’s array of arranged subviews. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488925-removearrangedsubview?language=objc -func (s_ StackView) RemoveArrangedSubview(view IView) { - objc.Call[objc.Void](s_, objc.Sel("removeArrangedSubview:"), view) -} - // Adds the specified view to the end of the arranged subviews list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488899-addarrangedsubview?language=objc @@ -187,26 +180,26 @@ func (s_ StackView) AddArrangedSubview(view IView) { objc.Call[objc.Void](s_, objc.Sel("addArrangedSubview:"), view) } -// Returns the visibility priority for a specified view in the stack view. [Full Topic] +// Adds a view to a stack view gravity area at a specified index position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488934-visibilitypriorityforview?language=objc -func (s_ StackView) VisibilityPriorityForView(view IView) StackViewVisibilityPriority { - rv := objc.Call[StackViewVisibilityPriority](s_, objc.Sel("visibilityPriorityForView:"), view) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488933-insertview?language=objc +func (s_ StackView) InsertViewAtIndexInGravity(view IView, index uint, gravity StackViewGravity) { + objc.Call[objc.Void](s_, objc.Sel("insertView:atIndex:inGravity:"), view, index, gravity) } -// Specifies the custom spacing, in points, between a specified view and the view that follows it in the stack view. [Full Topic] +// Adds the provided view to the array of arranged subviews at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488874-setcustomspacing?language=objc -func (s_ StackView) SetCustomSpacingAfterView(spacing float64, view IView) { - objc.Call[objc.Void](s_, objc.Sel("setCustomSpacing:afterView:"), spacing, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488896-insertarrangedsubview?language=objc +func (s_ StackView) InsertArrangedSubviewAtIndex(view IView, index int) { + objc.Call[objc.Void](s_, objc.Sel("insertArrangedSubview:atIndex:"), view, index) } -// Adds a view to a stack view gravity area at a specified index position. [Full Topic] +// Returns the Auto Layout priority for the stack view to minimize its size to fit its contained views as closely as possible, for a specified user interface axis. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488933-insertview?language=objc -func (s_ StackView) InsertViewAtIndexInGravity(view IView, index uint, gravity StackViewGravity) { - objc.Call[objc.Void](s_, objc.Sel("insertView:atIndex:inGravity:"), view, index, gravity) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488912-huggingpriorityfororientation?language=objc +func (s_ StackView) HuggingPriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority { + rv := objc.Call[LayoutPriority](s_, objc.Sel("huggingPriorityForOrientation:"), orientation) + return rv } // Returns the Auto Layout priority for resisting clipping of views in the stack view when Auto Layout attempts to reduce the stack view’s size. [Full Topic] @@ -217,33 +210,40 @@ func (s_ StackView) ClippingResistancePriorityForOrientation(orientation LayoutC return rv } -// Sets the Auto Layout priority for a view to remain attached to the stack view when Auto Layout reduces the stack view’s size. [Full Topic] +// Specifies the custom spacing, in points, between a specified view and the view that follows it in the stack view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488890-setvisibilitypriority?language=objc -func (s_ StackView) SetVisibilityPriorityForView(priority StackViewVisibilityPriority, view IView) { - objc.Call[objc.Void](s_, objc.Sel("setVisibilityPriority:forView:"), priority, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488874-setcustomspacing?language=objc +func (s_ StackView) SetCustomSpacingAfterView(spacing float64, view IView) { + objc.Call[objc.Void](s_, objc.Sel("setCustomSpacing:afterView:"), spacing, view) } -// Sets the Auto Layout priority for the stack view to minimize its size, for a specified user interface axis. [Full Topic] +// Removes the provided view from the stack’s array of arranged subviews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488904-sethuggingpriority?language=objc -func (s_ StackView) SetHuggingPriorityForOrientation(huggingPriority LayoutPriority, orientation LayoutConstraintOrientation) { - objc.Call[objc.Void](s_, objc.Sel("setHuggingPriority:forOrientation:"), huggingPriority, orientation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488925-removearrangedsubview?language=objc +func (s_ StackView) RemoveArrangedSubview(view IView) { + objc.Call[objc.Void](s_, objc.Sel("removeArrangedSubview:"), view) } -// A Boolean value that indicates whether the stack view removes hidden views from its view hierarchy. [Full Topic] +// Specifies an array of views for a specified gravity area in the stack view, replacing any previous views in that area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488940-detacheshiddenviews?language=objc -func (s_ StackView) DetachesHiddenViews() bool { - rv := objc.Call[bool](s_, objc.Sel("detachesHiddenViews")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488883-setviews?language=objc +func (s_ StackView) SetViewsInGravity(views []IView, gravity StackViewGravity) { + objc.Call[objc.Void](s_, objc.Sel("setViews:inGravity:"), views, gravity) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488882-distribution?language=objc +func (s_ StackView) Distribution() StackViewDistribution { + rv := objc.Call[StackViewDistribution](s_, objc.Sel("distribution")) return rv } -// A Boolean value that indicates whether the stack view removes hidden views from its view hierarchy. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488940-detacheshiddenviews?language=objc -func (s_ StackView) SetDetachesHiddenViews(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setDetachesHiddenViews:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488882-distribution?language=objc +func (s_ StackView) SetDistribution(value StackViewDistribution) { + objc.Call[objc.Void](s_, objc.Sel("setDistribution:"), value) } // The array of views owned by the stack view. [Full Topic] @@ -262,19 +262,34 @@ func (s_ StackView) DetachedViews() []View { return rv } -// [Full Topic] +// The geometric padding, in points, inside the stack view, surrounding its views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488882-distribution?language=objc -func (s_ StackView) Distribution() StackViewDistribution { - rv := objc.Call[StackViewDistribution](s_, objc.Sel("distribution")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488931-edgeinsets?language=objc +func (s_ StackView) EdgeInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](s_, objc.Sel("edgeInsets")) return rv } -// [Full Topic] +// The geometric padding, in points, inside the stack view, surrounding its views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488882-distribution?language=objc -func (s_ StackView) SetDistribution(value StackViewDistribution) { - objc.Call[objc.Void](s_, objc.Sel("setDistribution:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488931-edgeinsets?language=objc +func (s_ StackView) SetEdgeInsets(value foundation.EdgeInsets) { + objc.Call[objc.Void](s_, objc.Sel("setEdgeInsets:"), value) +} + +// The view alignment within the stack view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488906-alignment?language=objc +func (s_ StackView) Alignment() LayoutAttribute { + rv := objc.Call[LayoutAttribute](s_, objc.Sel("alignment")) + return rv +} + +// The view alignment within the stack view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488906-alignment?language=objc +func (s_ StackView) SetAlignment(value LayoutAttribute) { + objc.Call[objc.Void](s_, objc.Sel("setAlignment:"), value) } // The delegate object for the stack view. [Full Topic] @@ -309,36 +324,6 @@ func (s_ StackView) ArrangedSubviews() []View { return rv } -// The horizontal or vertical layout direction of the stack view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488950-orientation?language=objc -func (s_ StackView) Orientation() UserInterfaceLayoutOrientation { - rv := objc.Call[UserInterfaceLayoutOrientation](s_, objc.Sel("orientation")) - return rv -} - -// The horizontal or vertical layout direction of the stack view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488950-orientation?language=objc -func (s_ StackView) SetOrientation(value UserInterfaceLayoutOrientation) { - objc.Call[objc.Void](s_, objc.Sel("setOrientation:"), value) -} - -// The geometric padding, in points, inside the stack view, surrounding its views. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488931-edgeinsets?language=objc -func (s_ StackView) EdgeInsets() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](s_, objc.Sel("edgeInsets")) - return rv -} - -// The geometric padding, in points, inside the stack view, surrounding its views. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488931-edgeinsets?language=objc -func (s_ StackView) SetEdgeInsets(value foundation.EdgeInsets) { - objc.Call[objc.Void](s_, objc.Sel("setEdgeInsets:"), value) -} - // The minimum spacing, in points, between adjacent views in the stack view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488945-spacing?language=objc @@ -354,17 +339,32 @@ func (s_ StackView) SetSpacing(value float64) { objc.Call[objc.Void](s_, objc.Sel("setSpacing:"), value) } -// The view alignment within the stack view. [Full Topic] +// A Boolean value that indicates whether the stack view removes hidden views from its view hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488906-alignment?language=objc -func (s_ StackView) Alignment() LayoutAttribute { - rv := objc.Call[LayoutAttribute](s_, objc.Sel("alignment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488940-detacheshiddenviews?language=objc +func (s_ StackView) DetachesHiddenViews() bool { + rv := objc.Call[bool](s_, objc.Sel("detachesHiddenViews")) return rv } -// The view alignment within the stack view. [Full Topic] +// A Boolean value that indicates whether the stack view removes hidden views from its view hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488906-alignment?language=objc -func (s_ StackView) SetAlignment(value LayoutAttribute) { - objc.Call[objc.Void](s_, objc.Sel("setAlignment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488940-detacheshiddenviews?language=objc +func (s_ StackView) SetDetachesHiddenViews(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setDetachesHiddenViews:"), value) +} + +// The horizontal or vertical layout direction of the stack view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488950-orientation?language=objc +func (s_ StackView) Orientation() UserInterfaceLayoutOrientation { + rv := objc.Call[UserInterfaceLayoutOrientation](s_, objc.Sel("orientation")) + return rv +} + +// The horizontal or vertical layout direction of the stack view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488950-orientation?language=objc +func (s_ StackView) SetOrientation(value UserInterfaceLayoutOrientation) { + objc.Call[objc.Void](s_, objc.Sel("setOrientation:"), value) } diff --git a/macos/appkit/stack_view_delegate.gen.go b/macos/appkit/stack_view_delegate.gen.go index c5a9d6e9..41d51ec0 100644 --- a/macos/appkit/stack_view_delegate.gen.go +++ b/macos/appkit/stack_view_delegate.gen.go @@ -13,16 +13,11 @@ type PStackViewDelegate interface { // optional StackViewDidReattachViews(stackView StackView, views []View) HasStackViewDidReattachViews() bool - - // optional - StackViewWillDetachViews(stackView StackView, views []View) - HasStackViewWillDetachViews() bool } // A delegate implementation builder for the [PStackViewDelegate] protocol. type StackViewDelegate struct { _StackViewDidReattachViews func(stackView StackView, views []View) - _StackViewWillDetachViews func(stackView StackView, views []View) } func (di *StackViewDelegate) HasStackViewDidReattachViews() bool { @@ -42,23 +37,6 @@ func (di *StackViewDelegate) SetStackViewDidReattachViews(f func(stackView Stack func (di *StackViewDelegate) StackViewDidReattachViews(stackView StackView, views []View) { di._StackViewDidReattachViews(stackView, views) } -func (di *StackViewDelegate) HasStackViewWillDetachViews() bool { - return di._StackViewWillDetachViews != nil -} - -// Called when the stack view is about to automatically detach one or more of its views. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackviewdelegate/1488953-stackview?language=objc -func (di *StackViewDelegate) SetStackViewWillDetachViews(f func(stackView StackView, views []View)) { - di._StackViewWillDetachViews = f -} - -// Called when the stack view is about to automatically detach one or more of its views. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackviewdelegate/1488953-stackview?language=objc -func (di *StackViewDelegate) StackViewWillDetachViews(stackView StackView, views []View) { - di._StackViewWillDetachViews(stackView, views) -} // ensure impl type implements protocol interface var _ PStackViewDelegate = (*StackViewDelegateObject)(nil) @@ -78,14 +56,3 @@ func (s_ StackViewDelegateObject) HasStackViewDidReattachViews() bool { func (s_ StackViewDelegateObject) StackViewDidReattachViews(stackView StackView, views []View) { objc.Call[objc.Void](s_, objc.Sel("stackView:didReattachViews:"), stackView, views) } - -func (s_ StackViewDelegateObject) HasStackViewWillDetachViews() bool { - return s_.RespondsToSelector(objc.Sel("stackView:willDetachViews:")) -} - -// Called when the stack view is about to automatically detach one or more of its views. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackviewdelegate/1488953-stackview?language=objc -func (s_ StackViewDelegateObject) StackViewWillDetachViews(stackView StackView, views []View) { - objc.Call[objc.Void](s_, objc.Sel("stackView:willDetachViews:"), stackView, views) -} diff --git a/macos/appkit/standard_key_binding_responding_protocol.gen.go b/macos/appkit/standard_key_binding_responding_protocol.gen.go index f925af76..17db5829 100644 --- a/macos/appkit/standard_key_binding_responding_protocol.gen.go +++ b/macos/appkit/standard_key_binding_responding_protocol.gen.go @@ -11,384 +11,384 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding?language=objc type PStandardKeyBindingResponding interface { // optional - MoveWordBackwardAndModifySelection(sender objc.Object) - HasMoveWordBackwardAndModifySelection() bool + InsertParagraphSeparator(sender objc.Object) + HasInsertParagraphSeparator() bool // optional - InsertNewline(sender objc.Object) - HasInsertNewline() bool + MoveLeftAndModifySelection(sender objc.Object) + HasMoveLeftAndModifySelection() bool // optional - ChangeCaseOfLetter(sender objc.Object) - HasChangeCaseOfLetter() bool + InsertContainerBreak(sender objc.Object) + HasInsertContainerBreak() bool // optional CapitalizeWord(sender objc.Object) HasCapitalizeWord() bool // optional - MoveRightAndModifySelection(sender objc.Object) - HasMoveRightAndModifySelection() bool - - // optional - MoveToBeginningOfDocumentAndModifySelection(sender objc.Object) - HasMoveToBeginningOfDocumentAndModifySelection() bool + InsertLineBreak(sender objc.Object) + HasInsertLineBreak() bool // optional - MoveToLeftEndOfLineAndModifySelection(sender objc.Object) - HasMoveToLeftEndOfLineAndModifySelection() bool + MoveToRightEndOfLine(sender objc.Object) + HasMoveToRightEndOfLine() bool // optional - MoveToEndOfDocument(sender objc.Object) - HasMoveToEndOfDocument() bool + MoveRight(sender objc.Object) + HasMoveRight() bool // optional - MoveToBeginningOfParagraph(sender objc.Object) - HasMoveToBeginningOfParagraph() bool + InsertText(insertString objc.Object) + HasInsertText() bool // optional InsertSingleQuoteIgnoringSubstitution(sender objc.Object) HasInsertSingleQuoteIgnoringSubstitution() bool // optional - MoveRight(sender objc.Object) - HasMoveRight() bool - - // optional - MoveLeft(sender objc.Object) - HasMoveLeft() bool - - // optional - MoveForwardAndModifySelection(sender objc.Object) - HasMoveForwardAndModifySelection() bool + MoveWordBackward(sender objc.Object) + HasMoveWordBackward() bool // optional - TransposeWords(sender objc.Object) - HasTransposeWords() bool + MoveToEndOfDocument(sender objc.Object) + HasMoveToEndOfDocument() bool // optional - Yank(sender objc.Object) - HasYank() bool + SelectWord(sender objc.Object) + HasSelectWord() bool // optional - MoveWordLeft(sender objc.Object) - HasMoveWordLeft() bool + MoveToEndOfParagraph(sender objc.Object) + HasMoveToEndOfParagraph() bool // optional - ScrollPageDown(sender objc.Object) - HasScrollPageDown() bool + ScrollToEndOfDocument(sender objc.Object) + HasScrollToEndOfDocument() bool // optional - MoveToEndOfParagraphAndModifySelection(sender objc.Object) - HasMoveToEndOfParagraphAndModifySelection() bool + DeleteForward(sender objc.Object) + HasDeleteForward() bool // optional - InsertBacktab(sender objc.Object) - HasInsertBacktab() bool + MoveForwardAndModifySelection(sender objc.Object) + HasMoveForwardAndModifySelection() bool // optional - MoveWordForwardAndModifySelection(sender objc.Object) - HasMoveWordForwardAndModifySelection() bool + DeleteToEndOfLine(sender objc.Object) + HasDeleteToEndOfLine() bool // optional - MoveToEndOfDocumentAndModifySelection(sender objc.Object) - HasMoveToEndOfDocumentAndModifySelection() bool + MoveToEndOfLine(sender objc.Object) + HasMoveToEndOfLine() bool // optional - ScrollPageUp(sender objc.Object) - HasScrollPageUp() bool + QuickLookPreviewItems(sender objc.Object) + HasQuickLookPreviewItems() bool // optional - InsertTabIgnoringFieldEditor(sender objc.Object) - HasInsertTabIgnoringFieldEditor() bool + MakeTextWritingDirectionRightToLeft(sender objc.Object) + HasMakeTextWritingDirectionRightToLeft() bool // optional - InsertNewlineIgnoringFieldEditor(sender objc.Object) - HasInsertNewlineIgnoringFieldEditor() bool + SelectParagraph(sender objc.Object) + HasSelectParagraph() bool // optional - SetMark(sender objc.Object) - HasSetMark() bool + MoveToBeginningOfDocumentAndModifySelection(sender objc.Object) + HasMoveToBeginningOfDocumentAndModifySelection() bool // optional - MoveToBeginningOfParagraphAndModifySelection(sender objc.Object) - HasMoveToBeginningOfParagraphAndModifySelection() bool + ScrollLineDown(sender objc.Object) + HasScrollLineDown() bool // optional - MoveToLeftEndOfLine(sender objc.Object) - HasMoveToLeftEndOfLine() bool + DeleteToBeginningOfLine(sender objc.Object) + HasDeleteToBeginningOfLine() bool // optional - MoveToEndOfLineAndModifySelection(sender objc.Object) - HasMoveToEndOfLineAndModifySelection() bool + MoveUpAndModifySelection(sender objc.Object) + HasMoveUpAndModifySelection() bool // optional - MakeTextWritingDirectionLeftToRight(sender objc.Object) - HasMakeTextWritingDirectionLeftToRight() bool + DeleteWordForward(sender objc.Object) + HasDeleteWordForward() bool // optional - MoveWordBackward(sender objc.Object) - HasMoveWordBackward() bool + DeleteToMark(sender objc.Object) + HasDeleteToMark() bool // optional - ScrollToBeginningOfDocument(sender objc.Object) - HasScrollToBeginningOfDocument() bool + MoveWordForward(sender objc.Object) + HasMoveWordForward() bool // optional - MoveBackward(sender objc.Object) - HasMoveBackward() bool + InsertNewline(sender objc.Object) + HasInsertNewline() bool // optional - CenterSelectionInVisibleArea(sender objc.Object) - HasCenterSelectionInVisibleArea() bool + DeleteBackwardByDecomposingPreviousCharacter(sender objc.Object) + HasDeleteBackwardByDecomposingPreviousCharacter() bool // optional - MoveDown(sender objc.Object) - HasMoveDown() bool + MoveDownAndModifySelection(sender objc.Object) + HasMoveDownAndModifySelection() bool // optional - MakeBaseWritingDirectionNatural(sender objc.Object) - HasMakeBaseWritingDirectionNatural() bool + MoveBackwardAndModifySelection(sender objc.Object) + HasMoveBackwardAndModifySelection() bool // optional - InsertLineBreak(sender objc.Object) - HasInsertLineBreak() bool + MoveWordLeftAndModifySelection(sender objc.Object) + HasMoveWordLeftAndModifySelection() bool // optional MoveUp(sender objc.Object) HasMoveUp() bool // optional - SelectToMark(sender objc.Object) - HasSelectToMark() bool + MoveToBeginningOfLine(sender objc.Object) + HasMoveToBeginningOfLine() bool // optional - DeleteToEndOfLine(sender objc.Object) - HasDeleteToEndOfLine() bool + PageDown(sender objc.Object) + HasPageDown() bool // optional - MakeBaseWritingDirectionRightToLeft(sender objc.Object) - HasMakeBaseWritingDirectionRightToLeft() bool + InsertTabIgnoringFieldEditor(sender objc.Object) + HasInsertTabIgnoringFieldEditor() bool // optional - MoveToEndOfParagraph(sender objc.Object) - HasMoveToEndOfParagraph() bool + SelectAll(sender objc.Object) + HasSelectAll() bool // optional - MoveBackwardAndModifySelection(sender objc.Object) - HasMoveBackwardAndModifySelection() bool + Transpose(sender objc.Object) + HasTranspose() bool // optional - MoveToBeginningOfLine(sender objc.Object) - HasMoveToBeginningOfLine() bool + DeleteToEndOfParagraph(sender objc.Object) + HasDeleteToEndOfParagraph() bool // optional - MoveLeftAndModifySelection(sender objc.Object) - HasMoveLeftAndModifySelection() bool + MoveBackward(sender objc.Object) + HasMoveBackward() bool // optional - Complete(sender objc.Object) - HasComplete() bool + MakeBaseWritingDirectionRightToLeft(sender objc.Object) + HasMakeBaseWritingDirectionRightToLeft() bool // optional - ScrollLineUp(sender objc.Object) - HasScrollLineUp() bool + ScrollToBeginningOfDocument(sender objc.Object) + HasScrollToBeginningOfDocument() bool // optional - DeleteToBeginningOfLine(sender objc.Object) - HasDeleteToBeginningOfLine() bool + MoveWordLeft(sender objc.Object) + HasMoveWordLeft() bool // optional - MoveWordLeftAndModifySelection(sender objc.Object) - HasMoveWordLeftAndModifySelection() bool + SelectToMark(sender objc.Object) + HasSelectToMark() bool // optional - PageDownAndModifySelection(sender objc.Object) - HasPageDownAndModifySelection() bool + DeleteToBeginningOfParagraph(sender objc.Object) + HasDeleteToBeginningOfParagraph() bool // optional - UppercaseWord(sender objc.Object) - HasUppercaseWord() bool + MoveLeft(sender objc.Object) + HasMoveLeft() bool // optional - MakeBaseWritingDirectionLeftToRight(sender objc.Object) - HasMakeBaseWritingDirectionLeftToRight() bool + SelectLine(sender objc.Object) + HasSelectLine() bool // optional - InsertTab(sender objc.Object) - HasInsertTab() bool + MakeTextWritingDirectionNatural(sender objc.Object) + HasMakeTextWritingDirectionNatural() bool // optional - MoveToBeginningOfDocument(sender objc.Object) - HasMoveToBeginningOfDocument() bool + MoveToBeginningOfParagraph(sender objc.Object) + HasMoveToBeginningOfParagraph() bool // optional - LowercaseWord(sender objc.Object) - HasLowercaseWord() bool + MoveToBeginningOfParagraphAndModifySelection(sender objc.Object) + HasMoveToBeginningOfParagraphAndModifySelection() bool // optional - SelectParagraph(sender objc.Object) - HasSelectParagraph() bool + TransposeWords(sender objc.Object) + HasTransposeWords() bool // optional - InsertParagraphSeparator(sender objc.Object) - HasInsertParagraphSeparator() bool + MakeBaseWritingDirectionLeftToRight(sender objc.Object) + HasMakeBaseWritingDirectionLeftToRight() bool // optional - DeleteToEndOfParagraph(sender objc.Object) - HasDeleteToEndOfParagraph() bool + Complete(sender objc.Object) + HasComplete() bool // optional - QuickLookPreviewItems(sender objc.Object) - HasQuickLookPreviewItems() bool + MoveParagraphBackwardAndModifySelection(sender objc.Object) + HasMoveParagraphBackwardAndModifySelection() bool // optional - InsertDoubleQuoteIgnoringSubstitution(sender objc.Object) - HasInsertDoubleQuoteIgnoringSubstitution() bool + PageUp(sender objc.Object) + HasPageUp() bool // optional MoveWordRightAndModifySelection(sender objc.Object) HasMoveWordRightAndModifySelection() bool // optional - SelectLine(sender objc.Object) - HasSelectLine() bool - - // optional - DeleteToMark(sender objc.Object) - HasDeleteToMark() bool + InsertDoubleQuoteIgnoringSubstitution(sender objc.Object) + HasInsertDoubleQuoteIgnoringSubstitution() bool // optional DeleteWordBackward(sender objc.Object) HasDeleteWordBackward() bool // optional - InsertText(insertString objc.Object) - HasInsertText() bool + UppercaseWord(sender objc.Object) + HasUppercaseWord() bool // optional - PageUpAndModifySelection(sender objc.Object) - HasPageUpAndModifySelection() bool + CenterSelectionInVisibleArea(sender objc.Object) + HasCenterSelectionInVisibleArea() bool // optional - DeleteBackwardByDecomposingPreviousCharacter(sender objc.Object) - HasDeleteBackwardByDecomposingPreviousCharacter() bool + Yank(sender objc.Object) + HasYank() bool // optional - DoCommandBySelector(selector objc.Selector) - HasDoCommandBySelector() bool + MoveToRightEndOfLineAndModifySelection(sender objc.Object) + HasMoveToRightEndOfLineAndModifySelection() bool // optional - MakeTextWritingDirectionNatural(sender objc.Object) - HasMakeTextWritingDirectionNatural() bool + CancelOperation(sender objc.Object) + HasCancelOperation() bool // optional - DeleteBackward(sender objc.Object) - HasDeleteBackward() bool + MoveRightAndModifySelection(sender objc.Object) + HasMoveRightAndModifySelection() bool // optional - MoveToEndOfLine(sender objc.Object) - HasMoveToEndOfLine() bool + InsertNewlineIgnoringFieldEditor(sender objc.Object) + HasInsertNewlineIgnoringFieldEditor() bool // optional - MoveToBeginningOfLineAndModifySelection(sender objc.Object) - HasMoveToBeginningOfLineAndModifySelection() bool + MoveWordRight(sender objc.Object) + HasMoveWordRight() bool // optional - MakeTextWritingDirectionRightToLeft(sender objc.Object) - HasMakeTextWritingDirectionRightToLeft() bool + MoveForward(sender objc.Object) + HasMoveForward() bool // optional - SelectWord(sender objc.Object) - HasSelectWord() bool + ChangeCaseOfLetter(sender objc.Object) + HasChangeCaseOfLetter() bool // optional - SelectAll(sender objc.Object) - HasSelectAll() bool + ScrollPageUp(sender objc.Object) + HasScrollPageUp() bool // optional - DeleteForward(sender objc.Object) - HasDeleteForward() bool + InsertBacktab(sender objc.Object) + HasInsertBacktab() bool // optional - MoveParagraphBackwardAndModifySelection(sender objc.Object) - HasMoveParagraphBackwardAndModifySelection() bool + InsertTab(sender objc.Object) + HasInsertTab() bool // optional - MoveParagraphForwardAndModifySelection(sender objc.Object) - HasMoveParagraphForwardAndModifySelection() bool + MoveDown(sender objc.Object) + HasMoveDown() bool // optional - MoveWordForward(sender objc.Object) - HasMoveWordForward() bool + PageDownAndModifySelection(sender objc.Object) + HasPageDownAndModifySelection() bool // optional - MoveWordRight(sender objc.Object) - HasMoveWordRight() bool + MoveToLeftEndOfLineAndModifySelection(sender objc.Object) + HasMoveToLeftEndOfLineAndModifySelection() bool // optional - PageUp(sender objc.Object) - HasPageUp() bool + ScrollLineUp(sender objc.Object) + HasScrollLineUp() bool + + // optional + DoCommandBySelector(selector objc.Selector) + HasDoCommandBySelector() bool // optional SwapWithMark(sender objc.Object) HasSwapWithMark() bool // optional - DeleteToBeginningOfParagraph(sender objc.Object) - HasDeleteToBeginningOfParagraph() bool + MoveToLeftEndOfLine(sender objc.Object) + HasMoveToLeftEndOfLine() bool // optional - Indent(sender objc.Object) - HasIndent() bool + DeleteBackward(sender objc.Object) + HasDeleteBackward() bool // optional - MoveDownAndModifySelection(sender objc.Object) - HasMoveDownAndModifySelection() bool + MakeTextWritingDirectionLeftToRight(sender objc.Object) + HasMakeTextWritingDirectionLeftToRight() bool // optional - ScrollLineDown(sender objc.Object) - HasScrollLineDown() bool + MoveWordBackwardAndModifySelection(sender objc.Object) + HasMoveWordBackwardAndModifySelection() bool // optional - Transpose(sender objc.Object) - HasTranspose() bool + ScrollPageDown(sender objc.Object) + HasScrollPageDown() bool // optional - InsertContainerBreak(sender objc.Object) - HasInsertContainerBreak() bool + SetMark(sender objc.Object) + HasSetMark() bool // optional - DeleteWordForward(sender objc.Object) - HasDeleteWordForward() bool + MoveWordForwardAndModifySelection(sender objc.Object) + HasMoveWordForwardAndModifySelection() bool // optional - PageDown(sender objc.Object) - HasPageDown() bool + PageUpAndModifySelection(sender objc.Object) + HasPageUpAndModifySelection() bool // optional - MoveToRightEndOfLineAndModifySelection(sender objc.Object) - HasMoveToRightEndOfLineAndModifySelection() bool + MoveToBeginningOfDocument(sender objc.Object) + HasMoveToBeginningOfDocument() bool // optional - MoveForward(sender objc.Object) - HasMoveForward() bool + MoveToBeginningOfLineAndModifySelection(sender objc.Object) + HasMoveToBeginningOfLineAndModifySelection() bool // optional - ScrollToEndOfDocument(sender objc.Object) - HasScrollToEndOfDocument() bool + LowercaseWord(sender objc.Object) + HasLowercaseWord() bool // optional - CancelOperation(sender objc.Object) - HasCancelOperation() bool + MoveToEndOfDocumentAndModifySelection(sender objc.Object) + HasMoveToEndOfDocumentAndModifySelection() bool // optional - MoveToRightEndOfLine(sender objc.Object) - HasMoveToRightEndOfLine() bool + MoveToEndOfLineAndModifySelection(sender objc.Object) + HasMoveToEndOfLineAndModifySelection() bool // optional - MoveUpAndModifySelection(sender objc.Object) - HasMoveUpAndModifySelection() bool + Indent(sender objc.Object) + HasIndent() bool + + // optional + MakeBaseWritingDirectionNatural(sender objc.Object) + HasMakeBaseWritingDirectionNatural() bool + + // optional + MoveParagraphForwardAndModifySelection(sender objc.Object) + HasMoveParagraphForwardAndModifySelection() bool + + // optional + MoveToEndOfParagraphAndModifySelection(sender objc.Object) + HasMoveToEndOfParagraphAndModifySelection() bool } // ensure impl type implements protocol interface @@ -399,37 +399,37 @@ type StandardKeyBindingRespondingObject struct { objc.Object } -func (s_ StandardKeyBindingRespondingObject) HasMoveWordBackwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveWordBackwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertParagraphSeparator() bool { + return s_.RespondsToSelector(objc.Sel("insertParagraphSeparator:")) } -// [Full Topic] +// Inserts a paragraph separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005262-movewordbackwardandmodifyselecti?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveWordBackwardAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveWordBackwardAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005219-insertparagraphseparator?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertParagraphSeparator(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertParagraphSeparator:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasInsertNewline() bool { - return s_.RespondsToSelector(objc.Sel("insertNewline:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveLeftAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveLeftAndModifySelection:")) } -// Inserts a newline character. [Full Topic] +// Extends the selection to include the content to the left of the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005217-insertnewline?language=objc -func (s_ StandardKeyBindingRespondingObject) InsertNewline(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("insertNewline:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005238-moveleftandmodifyselection?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveLeftAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveLeftAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasChangeCaseOfLetter() bool { - return s_.RespondsToSelector(objc.Sel("changeCaseOfLetter:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertContainerBreak() bool { + return s_.RespondsToSelector(objc.Sel("insertContainerBreak:")) } -// [Full Topic] +// Inserts a container break, such as a new page break. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005199-changecaseofletter?language=objc -func (s_ StandardKeyBindingRespondingObject) ChangeCaseOfLetter(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("changeCaseOfLetter:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005214-insertcontainerbreak?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertContainerBreak(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertContainerBreak:"), sender) } func (s_ StandardKeyBindingRespondingObject) HasCapitalizeWord() bool { @@ -443,59 +443,48 @@ func (s_ StandardKeyBindingRespondingObject) CapitalizeWord(sender objc.Object) objc.Call[objc.Void](s_, objc.Sel("capitalizeWord:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveRightAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveRightAndModifySelection:")) -} - -// Extends the selection to include the content to the right of the current selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005242-moverightandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveRightAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveRightAndModifySelection:"), sender) -} - -func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfDocumentAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfDocumentAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertLineBreak() bool { + return s_.RespondsToSelector(objc.Sel("insertLineBreak:")) } -// [Full Topic] +// Inserts a line break character. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005244-movetobeginningofdocumentandmodi?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfDocumentAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfDocumentAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005216-insertlinebreak?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertLineBreak(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertLineBreak:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToLeftEndOfLineAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToLeftEndOfLineAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToRightEndOfLine() bool { + return s_.RespondsToSelector(objc.Sel("moveToRightEndOfLine:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005256-movetoleftendoflineandmodifysele?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToLeftEndOfLineAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToLeftEndOfLineAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005257-movetorightendofline?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToRightEndOfLine(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToRightEndOfLine:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfDocument() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfDocument:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveRight() bool { + return s_.RespondsToSelector(objc.Sel("moveRight:")) } -// [Full Topic] +// Moves the insertion pointer right in the current content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005249-movetoendofdocument?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToEndOfDocument(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005241-moveright?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveRight(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveRight:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfParagraph() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfParagraph:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertText() bool { + return s_.RespondsToSelector(objc.Sel("insertText:")) } -// [Full Topic] +// Inserts the text you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005247-movetobeginningofparagraph?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfParagraph(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfParagraph:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005223-inserttext?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertText(insertString objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertText:"), insertString) } func (s_ StandardKeyBindingRespondingObject) HasInsertSingleQuoteIgnoringSubstitution() bool { @@ -509,290 +498,268 @@ func (s_ StandardKeyBindingRespondingObject) InsertSingleQuoteIgnoringSubstituti objc.Call[objc.Void](s_, objc.Sel("insertSingleQuoteIgnoringSubstitution:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveRight() bool { - return s_.RespondsToSelector(objc.Sel("moveRight:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordBackward() bool { + return s_.RespondsToSelector(objc.Sel("moveWordBackward:")) } -// Moves the insertion pointer right in the current content. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005241-moveright?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveRight(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveRight:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005261-movewordbackward?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveWordBackward(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveWordBackward:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveLeft() bool { - return s_.RespondsToSelector(objc.Sel("moveLeft:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfDocument() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfDocument:")) } -// Moves the insertion pointer left in the current content. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005237-moveleft?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveLeft(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveLeft:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005249-movetoendofdocument?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToEndOfDocument(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToEndOfDocument:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveForwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveForwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasSelectWord() bool { + return s_.RespondsToSelector(objc.Sel("selectWord:")) } -// Extends the selection to include the content after the current selection. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005236-moveforwardandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveForwardAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveForwardAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005284-selectword?language=objc +func (s_ StandardKeyBindingRespondingObject) SelectWord(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("selectWord:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasTransposeWords() bool { - return s_.RespondsToSelector(objc.Sel("transposeWords:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfParagraph() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfParagraph:")) } -// Transposes the words around the current selection. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005288-transposewords?language=objc -func (s_ StandardKeyBindingRespondingObject) TransposeWords(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("transposeWords:"), sender) -} - -func (s_ StandardKeyBindingRespondingObject) HasYank() bool { - return s_.RespondsToSelector(objc.Sel("yank:")) -} - -// Deletes the current selection, placing it in a temporary buffer, such as the Clipboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005290-yank?language=objc -func (s_ StandardKeyBindingRespondingObject) Yank(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("yank:"), sender) -} - -func (s_ StandardKeyBindingRespondingObject) HasMoveWordLeft() bool { - return s_.RespondsToSelector(objc.Sel("moveWordLeft:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005265-movewordleft?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveWordLeft(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveWordLeft:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005253-movetoendofparagraph?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToEndOfParagraph(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToEndOfParagraph:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasScrollPageDown() bool { - return s_.RespondsToSelector(objc.Sel("scrollPageDown:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollToEndOfDocument() bool { + return s_.RespondsToSelector(objc.Sel("scrollToEndOfDocument:")) } -// Scrolls the content down by a page. [Full Topic] +// Scrolls the content to the end of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005276-scrollpagedown?language=objc -func (s_ StandardKeyBindingRespondingObject) ScrollPageDown(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("scrollPageDown:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005279-scrolltoendofdocument?language=objc +func (s_ StandardKeyBindingRespondingObject) ScrollToEndOfDocument(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("scrollToEndOfDocument:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfParagraphAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfParagraphAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteForward() bool { + return s_.RespondsToSelector(objc.Sel("deleteForward:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005254-movetoendofparagraphandmodifysel?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToEndOfParagraphAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfParagraphAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005203-deleteforward?language=objc +func (s_ StandardKeyBindingRespondingObject) DeleteForward(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("deleteForward:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasInsertBacktab() bool { - return s_.RespondsToSelector(objc.Sel("insertBacktab:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveForwardAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveForwardAndModifySelection:")) } -// Inserts a backtab character. [Full Topic] +// Extends the selection to include the content after the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005213-insertbacktab?language=objc -func (s_ StandardKeyBindingRespondingObject) InsertBacktab(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("insertBacktab:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005236-moveforwardandmodifyselection?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveForwardAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveForwardAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveWordForwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveWordForwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteToEndOfLine() bool { + return s_.RespondsToSelector(objc.Sel("deleteToEndOfLine:")) } -// [Full Topic] +// Deletes content from the insertion point to the end of the current line. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005264-movewordforwardandmodifyselectio?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveWordForwardAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveWordForwardAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005206-deletetoendofline?language=objc +func (s_ StandardKeyBindingRespondingObject) DeleteToEndOfLine(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("deleteToEndOfLine:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfDocumentAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfDocumentAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfLine() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfLine:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005250-movetoendofdocumentandmodifysele?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToEndOfDocumentAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfDocumentAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005251-movetoendofline?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToEndOfLine(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToEndOfLine:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasScrollPageUp() bool { - return s_.RespondsToSelector(objc.Sel("scrollPageUp:")) +func (s_ StandardKeyBindingRespondingObject) HasQuickLookPreviewItems() bool { + return s_.RespondsToSelector(objc.Sel("quickLookPreviewItems:")) } -// Scrolls the content up by a page. [Full Topic] +// Invokes QuickLook to preview the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005277-scrollpageup?language=objc -func (s_ StandardKeyBindingRespondingObject) ScrollPageUp(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("scrollPageUp:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005273-quicklookpreviewitems?language=objc +func (s_ StandardKeyBindingRespondingObject) QuickLookPreviewItems(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("quickLookPreviewItems:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasInsertTabIgnoringFieldEditor() bool { - return s_.RespondsToSelector(objc.Sel("insertTabIgnoringFieldEditor:")) +func (s_ StandardKeyBindingRespondingObject) HasMakeTextWritingDirectionRightToLeft() bool { + return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionRightToLeft:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005222-inserttabignoringfieldeditor?language=objc -func (s_ StandardKeyBindingRespondingObject) InsertTabIgnoringFieldEditor(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("insertTabIgnoringFieldEditor:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005230-maketextwritingdirectionrighttol?language=objc +func (s_ StandardKeyBindingRespondingObject) MakeTextWritingDirectionRightToLeft(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("makeTextWritingDirectionRightToLeft:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasInsertNewlineIgnoringFieldEditor() bool { - return s_.RespondsToSelector(objc.Sel("insertNewlineIgnoringFieldEditor:")) +func (s_ StandardKeyBindingRespondingObject) HasSelectParagraph() bool { + return s_.RespondsToSelector(objc.Sel("selectParagraph:")) } -// Inserts a newline character without invoking the field editor’s normal handling to end editing. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005218-insertnewlineignoringfieldeditor?language=objc -func (s_ StandardKeyBindingRespondingObject) InsertNewlineIgnoringFieldEditor(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("insertNewlineIgnoringFieldEditor:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005282-selectparagraph?language=objc +func (s_ StandardKeyBindingRespondingObject) SelectParagraph(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("selectParagraph:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasSetMark() bool { - return s_.RespondsToSelector(objc.Sel("setMark:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfDocumentAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfDocumentAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005285-setmark?language=objc -func (s_ StandardKeyBindingRespondingObject) SetMark(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("setMark:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005244-movetobeginningofdocumentandmodi?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfDocumentAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfDocumentAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfParagraphAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfParagraphAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollLineDown() bool { + return s_.RespondsToSelector(objc.Sel("scrollLineDown:")) } -// [Full Topic] +// Scrolls the content down by a line. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005248-movetobeginningofparagraphandmod?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfParagraphAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfParagraphAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005274-scrolllinedown?language=objc +func (s_ StandardKeyBindingRespondingObject) ScrollLineDown(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("scrollLineDown:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToLeftEndOfLine() bool { - return s_.RespondsToSelector(objc.Sel("moveToLeftEndOfLine:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteToBeginningOfLine() bool { + return s_.RespondsToSelector(objc.Sel("deleteToBeginningOfLine:")) } -// [Full Topic] +// Deletes content from the insertion point to the beginning of the current line. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005255-movetoleftendofline?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToLeftEndOfLine(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToLeftEndOfLine:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005204-deletetobeginningofline?language=objc +func (s_ StandardKeyBindingRespondingObject) DeleteToBeginningOfLine(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("deleteToBeginningOfLine:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfLineAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfLineAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveUpAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveUpAndModifySelection:")) } -// [Full Topic] +// Extends the selection to include the content above the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005252-movetoendoflineandmodifyselectio?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToEndOfLineAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfLineAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005260-moveupandmodifyselection?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveUpAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveUpAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMakeTextWritingDirectionLeftToRight() bool { - return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionLeftToRight:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteWordForward() bool { + return s_.RespondsToSelector(objc.Sel("deleteWordForward:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005228-maketextwritingdirectionlefttori?language=objc -func (s_ StandardKeyBindingRespondingObject) MakeTextWritingDirectionLeftToRight(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("makeTextWritingDirectionLeftToRight:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005210-deletewordforward?language=objc +func (s_ StandardKeyBindingRespondingObject) DeleteWordForward(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("deleteWordForward:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveWordBackward() bool { - return s_.RespondsToSelector(objc.Sel("moveWordBackward:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteToMark() bool { + return s_.RespondsToSelector(objc.Sel("deleteToMark:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005261-movewordbackward?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveWordBackward(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveWordBackward:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005208-deletetomark?language=objc +func (s_ StandardKeyBindingRespondingObject) DeleteToMark(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("deleteToMark:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasScrollToBeginningOfDocument() bool { - return s_.RespondsToSelector(objc.Sel("scrollToBeginningOfDocument:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordForward() bool { + return s_.RespondsToSelector(objc.Sel("moveWordForward:")) } -// Scrolls the content to the beginning of the document. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005278-scrolltobeginningofdocument?language=objc -func (s_ StandardKeyBindingRespondingObject) ScrollToBeginningOfDocument(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("scrollToBeginningOfDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005263-movewordforward?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveWordForward(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveWordForward:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveBackward() bool { - return s_.RespondsToSelector(objc.Sel("moveBackward:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertNewline() bool { + return s_.RespondsToSelector(objc.Sel("insertNewline:")) } -// Moves the insertion pointer backward in the current content. [Full Topic] +// Inserts a newline character. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005231-movebackward?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveBackward(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveBackward:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005217-insertnewline?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertNewline(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertNewline:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasCenterSelectionInVisibleArea() bool { - return s_.RespondsToSelector(objc.Sel("centerSelectionInVisibleArea:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteBackwardByDecomposingPreviousCharacter() bool { + return s_.RespondsToSelector(objc.Sel("deleteBackwardByDecomposingPreviousCharacter:")) } -// Moves the visible content region so the current selection is visually centered. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005198-centerselectioninvisiblearea?language=objc -func (s_ StandardKeyBindingRespondingObject) CenterSelectionInVisibleArea(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("centerSelectionInVisibleArea:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005202-deletebackwardbydecomposingprevi?language=objc +func (s_ StandardKeyBindingRespondingObject) DeleteBackwardByDecomposingPreviousCharacter(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("deleteBackwardByDecomposingPreviousCharacter:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveDown() bool { - return s_.RespondsToSelector(objc.Sel("moveDown:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveDownAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveDownAndModifySelection:")) } -// Moves the insertion pointer down in the current content. [Full Topic] +// Extends the selection to include the content below the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005233-movedown?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveDown(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveDown:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005234-movedownandmodifyselection?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveDownAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveDownAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMakeBaseWritingDirectionNatural() bool { - return s_.RespondsToSelector(objc.Sel("makeBaseWritingDirectionNatural:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveBackwardAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveBackwardAndModifySelection:")) } -// [Full Topic] +// Extends the selection to include the content before the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005226-makebasewritingdirectionnatural?language=objc -func (s_ StandardKeyBindingRespondingObject) MakeBaseWritingDirectionNatural(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("makeBaseWritingDirectionNatural:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005232-movebackwardandmodifyselection?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveBackwardAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveBackwardAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasInsertLineBreak() bool { - return s_.RespondsToSelector(objc.Sel("insertLineBreak:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordLeftAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveWordLeftAndModifySelection:")) } -// Inserts a line break character. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005216-insertlinebreak?language=objc -func (s_ StandardKeyBindingRespondingObject) InsertLineBreak(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("insertLineBreak:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005266-movewordleftandmodifyselection?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveWordLeftAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveWordLeftAndModifySelection:"), sender) } func (s_ StandardKeyBindingRespondingObject) HasMoveUp() bool { @@ -806,246 +773,246 @@ func (s_ StandardKeyBindingRespondingObject) MoveUp(sender objc.Object) { objc.Call[objc.Void](s_, objc.Sel("moveUp:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasSelectToMark() bool { - return s_.RespondsToSelector(objc.Sel("selectToMark:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfLine() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfLine:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005283-selecttomark?language=objc -func (s_ StandardKeyBindingRespondingObject) SelectToMark(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("selectToMark:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005245-movetobeginningofline?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfLine(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfLine:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasDeleteToEndOfLine() bool { - return s_.RespondsToSelector(objc.Sel("deleteToEndOfLine:")) +func (s_ StandardKeyBindingRespondingObject) HasPageDown() bool { + return s_.RespondsToSelector(objc.Sel("pageDown:")) } -// Deletes content from the insertion point to the end of the current line. [Full Topic] +// Moves the visible content region down by a page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005206-deletetoendofline?language=objc -func (s_ StandardKeyBindingRespondingObject) DeleteToEndOfLine(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("deleteToEndOfLine:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005269-pagedown?language=objc +func (s_ StandardKeyBindingRespondingObject) PageDown(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("pageDown:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMakeBaseWritingDirectionRightToLeft() bool { - return s_.RespondsToSelector(objc.Sel("makeBaseWritingDirectionRightToLeft:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertTabIgnoringFieldEditor() bool { + return s_.RespondsToSelector(objc.Sel("insertTabIgnoringFieldEditor:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005227-makebasewritingdirectionrighttol?language=objc -func (s_ StandardKeyBindingRespondingObject) MakeBaseWritingDirectionRightToLeft(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("makeBaseWritingDirectionRightToLeft:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005222-inserttabignoringfieldeditor?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertTabIgnoringFieldEditor(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertTabIgnoringFieldEditor:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfParagraph() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfParagraph:")) +func (s_ StandardKeyBindingRespondingObject) HasSelectAll() bool { + return s_.RespondsToSelector(objc.Sel("selectAll:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005253-movetoendofparagraph?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToEndOfParagraph(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfParagraph:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005280-selectall?language=objc +func (s_ StandardKeyBindingRespondingObject) SelectAll(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("selectAll:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveBackwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveBackwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasTranspose() bool { + return s_.RespondsToSelector(objc.Sel("transpose:")) } -// Extends the selection to include the content before the current selection. [Full Topic] +// Transposes the content around the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005232-movebackwardandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveBackwardAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveBackwardAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005287-transpose?language=objc +func (s_ StandardKeyBindingRespondingObject) Transpose(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("transpose:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfLine() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfLine:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteToEndOfParagraph() bool { + return s_.RespondsToSelector(objc.Sel("deleteToEndOfParagraph:")) } -// [Full Topic] +// Deletes content from the insertion point to the end of the current paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005245-movetobeginningofline?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfLine(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfLine:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005207-deletetoendofparagraph?language=objc +func (s_ StandardKeyBindingRespondingObject) DeleteToEndOfParagraph(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("deleteToEndOfParagraph:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveLeftAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveLeftAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveBackward() bool { + return s_.RespondsToSelector(objc.Sel("moveBackward:")) } -// Extends the selection to include the content to the left of the current selection. [Full Topic] +// Moves the insertion pointer backward in the current content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005238-moveleftandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveLeftAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveLeftAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005231-movebackward?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveBackward(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveBackward:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasComplete() bool { - return s_.RespondsToSelector(objc.Sel("complete:")) +func (s_ StandardKeyBindingRespondingObject) HasMakeBaseWritingDirectionRightToLeft() bool { + return s_.RespondsToSelector(objc.Sel("makeBaseWritingDirectionRightToLeft:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005200-complete?language=objc -func (s_ StandardKeyBindingRespondingObject) Complete(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("complete:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005227-makebasewritingdirectionrighttol?language=objc +func (s_ StandardKeyBindingRespondingObject) MakeBaseWritingDirectionRightToLeft(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("makeBaseWritingDirectionRightToLeft:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasScrollLineUp() bool { - return s_.RespondsToSelector(objc.Sel("scrollLineUp:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollToBeginningOfDocument() bool { + return s_.RespondsToSelector(objc.Sel("scrollToBeginningOfDocument:")) } -// Scrolls the content up by a line. [Full Topic] +// Scrolls the content to the beginning of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005275-scrolllineup?language=objc -func (s_ StandardKeyBindingRespondingObject) ScrollLineUp(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("scrollLineUp:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005278-scrolltobeginningofdocument?language=objc +func (s_ StandardKeyBindingRespondingObject) ScrollToBeginningOfDocument(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("scrollToBeginningOfDocument:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasDeleteToBeginningOfLine() bool { - return s_.RespondsToSelector(objc.Sel("deleteToBeginningOfLine:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordLeft() bool { + return s_.RespondsToSelector(objc.Sel("moveWordLeft:")) } -// Deletes content from the insertion point to the beginning of the current line. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005204-deletetobeginningofline?language=objc -func (s_ StandardKeyBindingRespondingObject) DeleteToBeginningOfLine(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("deleteToBeginningOfLine:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005265-movewordleft?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveWordLeft(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveWordLeft:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveWordLeftAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveWordLeftAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasSelectToMark() bool { + return s_.RespondsToSelector(objc.Sel("selectToMark:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005266-movewordleftandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveWordLeftAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveWordLeftAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005283-selecttomark?language=objc +func (s_ StandardKeyBindingRespondingObject) SelectToMark(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("selectToMark:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasPageDownAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("pageDownAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteToBeginningOfParagraph() bool { + return s_.RespondsToSelector(objc.Sel("deleteToBeginningOfParagraph:")) } -// Moves the visible content region down by a page, and extends the current selection. [Full Topic] +// Deletes content from the insertion point to the beginning of the current paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005270-pagedownandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingObject) PageDownAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("pageDownAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005205-deletetobeginningofparagraph?language=objc +func (s_ StandardKeyBindingRespondingObject) DeleteToBeginningOfParagraph(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("deleteToBeginningOfParagraph:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasUppercaseWord() bool { - return s_.RespondsToSelector(objc.Sel("uppercaseWord:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveLeft() bool { + return s_.RespondsToSelector(objc.Sel("moveLeft:")) } -// [Full Topic] +// Moves the insertion pointer left in the current content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005289-uppercaseword?language=objc -func (s_ StandardKeyBindingRespondingObject) UppercaseWord(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("uppercaseWord:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005237-moveleft?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveLeft(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveLeft:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMakeBaseWritingDirectionLeftToRight() bool { - return s_.RespondsToSelector(objc.Sel("makeBaseWritingDirectionLeftToRight:")) +func (s_ StandardKeyBindingRespondingObject) HasSelectLine() bool { + return s_.RespondsToSelector(objc.Sel("selectLine:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005225-makebasewritingdirectionlefttori?language=objc -func (s_ StandardKeyBindingRespondingObject) MakeBaseWritingDirectionLeftToRight(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("makeBaseWritingDirectionLeftToRight:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005281-selectline?language=objc +func (s_ StandardKeyBindingRespondingObject) SelectLine(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("selectLine:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasInsertTab() bool { - return s_.RespondsToSelector(objc.Sel("insertTab:")) +func (s_ StandardKeyBindingRespondingObject) HasMakeTextWritingDirectionNatural() bool { + return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionNatural:")) } -// Inserts a tab character. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005221-inserttab?language=objc -func (s_ StandardKeyBindingRespondingObject) InsertTab(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("insertTab:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005229-maketextwritingdirectionnatural?language=objc +func (s_ StandardKeyBindingRespondingObject) MakeTextWritingDirectionNatural(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("makeTextWritingDirectionNatural:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfDocument() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfDocument:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfParagraph() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfParagraph:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005243-movetobeginningofdocument?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfDocument(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005247-movetobeginningofparagraph?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfParagraph(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfParagraph:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasLowercaseWord() bool { - return s_.RespondsToSelector(objc.Sel("lowercaseWord:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfParagraphAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfParagraphAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005224-lowercaseword?language=objc -func (s_ StandardKeyBindingRespondingObject) LowercaseWord(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("lowercaseWord:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005248-movetobeginningofparagraphandmod?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfParagraphAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfParagraphAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasSelectParagraph() bool { - return s_.RespondsToSelector(objc.Sel("selectParagraph:")) +func (s_ StandardKeyBindingRespondingObject) HasTransposeWords() bool { + return s_.RespondsToSelector(objc.Sel("transposeWords:")) } -// [Full Topic] +// Transposes the words around the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005282-selectparagraph?language=objc -func (s_ StandardKeyBindingRespondingObject) SelectParagraph(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("selectParagraph:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005288-transposewords?language=objc +func (s_ StandardKeyBindingRespondingObject) TransposeWords(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("transposeWords:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasInsertParagraphSeparator() bool { - return s_.RespondsToSelector(objc.Sel("insertParagraphSeparator:")) +func (s_ StandardKeyBindingRespondingObject) HasMakeBaseWritingDirectionLeftToRight() bool { + return s_.RespondsToSelector(objc.Sel("makeBaseWritingDirectionLeftToRight:")) } -// Inserts a paragraph separator. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005219-insertparagraphseparator?language=objc -func (s_ StandardKeyBindingRespondingObject) InsertParagraphSeparator(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("insertParagraphSeparator:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005225-makebasewritingdirectionlefttori?language=objc +func (s_ StandardKeyBindingRespondingObject) MakeBaseWritingDirectionLeftToRight(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("makeBaseWritingDirectionLeftToRight:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasDeleteToEndOfParagraph() bool { - return s_.RespondsToSelector(objc.Sel("deleteToEndOfParagraph:")) +func (s_ StandardKeyBindingRespondingObject) HasComplete() bool { + return s_.RespondsToSelector(objc.Sel("complete:")) } -// Deletes content from the insertion point to the end of the current paragraph. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005207-deletetoendofparagraph?language=objc -func (s_ StandardKeyBindingRespondingObject) DeleteToEndOfParagraph(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("deleteToEndOfParagraph:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005200-complete?language=objc +func (s_ StandardKeyBindingRespondingObject) Complete(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("complete:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasQuickLookPreviewItems() bool { - return s_.RespondsToSelector(objc.Sel("quickLookPreviewItems:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveParagraphBackwardAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveParagraphBackwardAndModifySelection:")) } -// Invokes QuickLook to preview the current selection. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005273-quicklookpreviewitems?language=objc -func (s_ StandardKeyBindingRespondingObject) QuickLookPreviewItems(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("quickLookPreviewItems:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005239-moveparagraphbackwardandmodifyse?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveParagraphBackwardAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveParagraphBackwardAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasInsertDoubleQuoteIgnoringSubstitution() bool { - return s_.RespondsToSelector(objc.Sel("insertDoubleQuoteIgnoringSubstitution:")) +func (s_ StandardKeyBindingRespondingObject) HasPageUp() bool { + return s_.RespondsToSelector(objc.Sel("pageUp:")) } -// Inserts a double quotation mark without substituting a curly quotation mark. [Full Topic] +// Moves the visible content region up by a page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005215-insertdoublequoteignoringsubstit?language=objc -func (s_ StandardKeyBindingRespondingObject) InsertDoubleQuoteIgnoringSubstitution(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("insertDoubleQuoteIgnoringSubstitution:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005271-pageup?language=objc +func (s_ StandardKeyBindingRespondingObject) PageUp(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("pageUp:"), sender) } func (s_ StandardKeyBindingRespondingObject) HasMoveWordRightAndModifySelection() bool { @@ -1059,26 +1026,15 @@ func (s_ StandardKeyBindingRespondingObject) MoveWordRightAndModifySelection(sen objc.Call[objc.Void](s_, objc.Sel("moveWordRightAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasSelectLine() bool { - return s_.RespondsToSelector(objc.Sel("selectLine:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertDoubleQuoteIgnoringSubstitution() bool { + return s_.RespondsToSelector(objc.Sel("insertDoubleQuoteIgnoringSubstitution:")) } -// [Full Topic] +// Inserts a double quotation mark without substituting a curly quotation mark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005281-selectline?language=objc -func (s_ StandardKeyBindingRespondingObject) SelectLine(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("selectLine:"), sender) -} - -func (s_ StandardKeyBindingRespondingObject) HasDeleteToMark() bool { - return s_.RespondsToSelector(objc.Sel("deleteToMark:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005208-deletetomark?language=objc -func (s_ StandardKeyBindingRespondingObject) DeleteToMark(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("deleteToMark:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005215-insertdoublequoteignoringsubstit?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertDoubleQuoteIgnoringSubstitution(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertDoubleQuoteIgnoringSubstitution:"), sender) } func (s_ StandardKeyBindingRespondingObject) HasDeleteWordBackward() bool { @@ -1092,191 +1048,202 @@ func (s_ StandardKeyBindingRespondingObject) DeleteWordBackward(sender objc.Obje objc.Call[objc.Void](s_, objc.Sel("deleteWordBackward:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasInsertText() bool { - return s_.RespondsToSelector(objc.Sel("insertText:")) +func (s_ StandardKeyBindingRespondingObject) HasUppercaseWord() bool { + return s_.RespondsToSelector(objc.Sel("uppercaseWord:")) } -// Inserts the text you specify. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005223-inserttext?language=objc -func (s_ StandardKeyBindingRespondingObject) InsertText(insertString objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("insertText:"), insertString) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005289-uppercaseword?language=objc +func (s_ StandardKeyBindingRespondingObject) UppercaseWord(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("uppercaseWord:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasPageUpAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("pageUpAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasCenterSelectionInVisibleArea() bool { + return s_.RespondsToSelector(objc.Sel("centerSelectionInVisibleArea:")) } -// Moves the visible content region up by a page, and extends the current selection. [Full Topic] +// Moves the visible content region so the current selection is visually centered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005272-pageupandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingObject) PageUpAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("pageUpAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005198-centerselectioninvisiblearea?language=objc +func (s_ StandardKeyBindingRespondingObject) CenterSelectionInVisibleArea(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("centerSelectionInVisibleArea:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasDeleteBackwardByDecomposingPreviousCharacter() bool { - return s_.RespondsToSelector(objc.Sel("deleteBackwardByDecomposingPreviousCharacter:")) +func (s_ StandardKeyBindingRespondingObject) HasYank() bool { + return s_.RespondsToSelector(objc.Sel("yank:")) +} + +// Deletes the current selection, placing it in a temporary buffer, such as the Clipboard. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005290-yank?language=objc +func (s_ StandardKeyBindingRespondingObject) Yank(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("yank:"), sender) +} + +func (s_ StandardKeyBindingRespondingObject) HasMoveToRightEndOfLineAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToRightEndOfLineAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005202-deletebackwardbydecomposingprevi?language=objc -func (s_ StandardKeyBindingRespondingObject) DeleteBackwardByDecomposingPreviousCharacter(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("deleteBackwardByDecomposingPreviousCharacter:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005258-movetorightendoflineandmodifysel?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToRightEndOfLineAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToRightEndOfLineAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasDoCommandBySelector() bool { - return s_.RespondsToSelector(objc.Sel("doCommandBySelector:")) +func (s_ StandardKeyBindingRespondingObject) HasCancelOperation() bool { + return s_.RespondsToSelector(objc.Sel("cancelOperation:")) } -// Performs the given selector if possible. [Full Topic] +// Cancels the current operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005211-docommandbyselector?language=objc -func (s_ StandardKeyBindingRespondingObject) DoCommandBySelector(selector objc.Selector) { - objc.Call[objc.Void](s_, objc.Sel("doCommandBySelector:"), selector) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005196-canceloperation?language=objc +func (s_ StandardKeyBindingRespondingObject) CancelOperation(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("cancelOperation:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMakeTextWritingDirectionNatural() bool { - return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionNatural:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveRightAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveRightAndModifySelection:")) } -// [Full Topic] +// Extends the selection to include the content to the right of the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005229-maketextwritingdirectionnatural?language=objc -func (s_ StandardKeyBindingRespondingObject) MakeTextWritingDirectionNatural(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("makeTextWritingDirectionNatural:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005242-moverightandmodifyselection?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveRightAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveRightAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasDeleteBackward() bool { - return s_.RespondsToSelector(objc.Sel("deleteBackward:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertNewlineIgnoringFieldEditor() bool { + return s_.RespondsToSelector(objc.Sel("insertNewlineIgnoringFieldEditor:")) } -// Deletes content moving backward from the current insertion point. [Full Topic] +// Inserts a newline character without invoking the field editor’s normal handling to end editing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005201-deletebackward?language=objc -func (s_ StandardKeyBindingRespondingObject) DeleteBackward(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("deleteBackward:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005218-insertnewlineignoringfieldeditor?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertNewlineIgnoringFieldEditor(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertNewlineIgnoringFieldEditor:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfLine() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfLine:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordRight() bool { + return s_.RespondsToSelector(objc.Sel("moveWordRight:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005251-movetoendofline?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToEndOfLine(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfLine:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005267-movewordright?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveWordRight(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveWordRight:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfLineAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfLineAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveForward() bool { + return s_.RespondsToSelector(objc.Sel("moveForward:")) } -// [Full Topic] +// Moves the insertion pointer forward in the current content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005246-movetobeginningoflineandmodifyse?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfLineAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfLineAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005235-moveforward?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveForward(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveForward:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMakeTextWritingDirectionRightToLeft() bool { - return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionRightToLeft:")) +func (s_ StandardKeyBindingRespondingObject) HasChangeCaseOfLetter() bool { + return s_.RespondsToSelector(objc.Sel("changeCaseOfLetter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005230-maketextwritingdirectionrighttol?language=objc -func (s_ StandardKeyBindingRespondingObject) MakeTextWritingDirectionRightToLeft(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("makeTextWritingDirectionRightToLeft:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005199-changecaseofletter?language=objc +func (s_ StandardKeyBindingRespondingObject) ChangeCaseOfLetter(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("changeCaseOfLetter:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasSelectWord() bool { - return s_.RespondsToSelector(objc.Sel("selectWord:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollPageUp() bool { + return s_.RespondsToSelector(objc.Sel("scrollPageUp:")) } -// [Full Topic] +// Scrolls the content up by a page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005284-selectword?language=objc -func (s_ StandardKeyBindingRespondingObject) SelectWord(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("selectWord:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005277-scrollpageup?language=objc +func (s_ StandardKeyBindingRespondingObject) ScrollPageUp(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("scrollPageUp:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasSelectAll() bool { - return s_.RespondsToSelector(objc.Sel("selectAll:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertBacktab() bool { + return s_.RespondsToSelector(objc.Sel("insertBacktab:")) } -// [Full Topic] +// Inserts a backtab character. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005280-selectall?language=objc -func (s_ StandardKeyBindingRespondingObject) SelectAll(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("selectAll:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005213-insertbacktab?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertBacktab(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertBacktab:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasDeleteForward() bool { - return s_.RespondsToSelector(objc.Sel("deleteForward:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertTab() bool { + return s_.RespondsToSelector(objc.Sel("insertTab:")) } -// [Full Topic] +// Inserts a tab character. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005203-deleteforward?language=objc -func (s_ StandardKeyBindingRespondingObject) DeleteForward(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("deleteForward:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005221-inserttab?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertTab(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertTab:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveParagraphBackwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveParagraphBackwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveDown() bool { + return s_.RespondsToSelector(objc.Sel("moveDown:")) } -// [Full Topic] +// Moves the insertion pointer down in the current content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005239-moveparagraphbackwardandmodifyse?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveParagraphBackwardAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveParagraphBackwardAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005233-movedown?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveDown(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveDown:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveParagraphForwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveParagraphForwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasPageDownAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("pageDownAndModifySelection:")) } -// [Full Topic] +// Moves the visible content region down by a page, and extends the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005240-moveparagraphforwardandmodifysel?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveParagraphForwardAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveParagraphForwardAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005270-pagedownandmodifyselection?language=objc +func (s_ StandardKeyBindingRespondingObject) PageDownAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("pageDownAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveWordForward() bool { - return s_.RespondsToSelector(objc.Sel("moveWordForward:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToLeftEndOfLineAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToLeftEndOfLineAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005263-movewordforward?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveWordForward(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveWordForward:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005256-movetoleftendoflineandmodifysele?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToLeftEndOfLineAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToLeftEndOfLineAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveWordRight() bool { - return s_.RespondsToSelector(objc.Sel("moveWordRight:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollLineUp() bool { + return s_.RespondsToSelector(objc.Sel("scrollLineUp:")) } -// [Full Topic] +// Scrolls the content up by a line. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005267-movewordright?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveWordRight(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveWordRight:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005275-scrolllineup?language=objc +func (s_ StandardKeyBindingRespondingObject) ScrollLineUp(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("scrollLineUp:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasPageUp() bool { - return s_.RespondsToSelector(objc.Sel("pageUp:")) +func (s_ StandardKeyBindingRespondingObject) HasDoCommandBySelector() bool { + return s_.RespondsToSelector(objc.Sel("doCommandBySelector:")) } -// Moves the visible content region up by a page. [Full Topic] +// Performs the given selector if possible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005271-pageup?language=objc -func (s_ StandardKeyBindingRespondingObject) PageUp(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("pageUp:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005211-docommandbyselector?language=objc +func (s_ StandardKeyBindingRespondingObject) DoCommandBySelector(selector objc.Selector) { + objc.Call[objc.Void](s_, objc.Sel("doCommandBySelector:"), selector) } func (s_ StandardKeyBindingRespondingObject) HasSwapWithMark() bool { @@ -1290,156 +1257,189 @@ func (s_ StandardKeyBindingRespondingObject) SwapWithMark(sender objc.Object) { objc.Call[objc.Void](s_, objc.Sel("swapWithMark:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasDeleteToBeginningOfParagraph() bool { - return s_.RespondsToSelector(objc.Sel("deleteToBeginningOfParagraph:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToLeftEndOfLine() bool { + return s_.RespondsToSelector(objc.Sel("moveToLeftEndOfLine:")) } -// Deletes content from the insertion point to the beginning of the current paragraph. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005205-deletetobeginningofparagraph?language=objc -func (s_ StandardKeyBindingRespondingObject) DeleteToBeginningOfParagraph(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("deleteToBeginningOfParagraph:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005255-movetoleftendofline?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToLeftEndOfLine(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToLeftEndOfLine:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasIndent() bool { - return s_.RespondsToSelector(objc.Sel("indent:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteBackward() bool { + return s_.RespondsToSelector(objc.Sel("deleteBackward:")) } -// Indents the content at the current selection. [Full Topic] +// Deletes content moving backward from the current insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005212-indent?language=objc -func (s_ StandardKeyBindingRespondingObject) Indent(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("indent:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005201-deletebackward?language=objc +func (s_ StandardKeyBindingRespondingObject) DeleteBackward(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("deleteBackward:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveDownAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveDownAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMakeTextWritingDirectionLeftToRight() bool { + return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionLeftToRight:")) } -// Extends the selection to include the content below the current selection. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005234-movedownandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveDownAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveDownAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005228-maketextwritingdirectionlefttori?language=objc +func (s_ StandardKeyBindingRespondingObject) MakeTextWritingDirectionLeftToRight(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("makeTextWritingDirectionLeftToRight:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasScrollLineDown() bool { - return s_.RespondsToSelector(objc.Sel("scrollLineDown:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordBackwardAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveWordBackwardAndModifySelection:")) } -// Scrolls the content down by a line. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005274-scrolllinedown?language=objc -func (s_ StandardKeyBindingRespondingObject) ScrollLineDown(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("scrollLineDown:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005262-movewordbackwardandmodifyselecti?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveWordBackwardAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveWordBackwardAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasTranspose() bool { - return s_.RespondsToSelector(objc.Sel("transpose:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollPageDown() bool { + return s_.RespondsToSelector(objc.Sel("scrollPageDown:")) } -// Transposes the content around the current selection. [Full Topic] +// Scrolls the content down by a page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005287-transpose?language=objc -func (s_ StandardKeyBindingRespondingObject) Transpose(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("transpose:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005276-scrollpagedown?language=objc +func (s_ StandardKeyBindingRespondingObject) ScrollPageDown(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("scrollPageDown:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasInsertContainerBreak() bool { - return s_.RespondsToSelector(objc.Sel("insertContainerBreak:")) +func (s_ StandardKeyBindingRespondingObject) HasSetMark() bool { + return s_.RespondsToSelector(objc.Sel("setMark:")) } -// Inserts a container break, such as a new page break. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005214-insertcontainerbreak?language=objc -func (s_ StandardKeyBindingRespondingObject) InsertContainerBreak(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("insertContainerBreak:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005285-setmark?language=objc +func (s_ StandardKeyBindingRespondingObject) SetMark(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("setMark:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasDeleteWordForward() bool { - return s_.RespondsToSelector(objc.Sel("deleteWordForward:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordForwardAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveWordForwardAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005210-deletewordforward?language=objc -func (s_ StandardKeyBindingRespondingObject) DeleteWordForward(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("deleteWordForward:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005264-movewordforwardandmodifyselectio?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveWordForwardAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveWordForwardAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasPageDown() bool { - return s_.RespondsToSelector(objc.Sel("pageDown:")) +func (s_ StandardKeyBindingRespondingObject) HasPageUpAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("pageUpAndModifySelection:")) } -// Moves the visible content region down by a page. [Full Topic] +// Moves the visible content region up by a page, and extends the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005269-pagedown?language=objc -func (s_ StandardKeyBindingRespondingObject) PageDown(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("pageDown:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005272-pageupandmodifyselection?language=objc +func (s_ StandardKeyBindingRespondingObject) PageUpAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("pageUpAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToRightEndOfLineAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToRightEndOfLineAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfDocument() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfDocument:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005258-movetorightendoflineandmodifysel?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToRightEndOfLineAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToRightEndOfLineAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005243-movetobeginningofdocument?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfDocument(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfDocument:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveForward() bool { - return s_.RespondsToSelector(objc.Sel("moveForward:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfLineAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfLineAndModifySelection:")) } -// Moves the insertion pointer forward in the current content. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005235-moveforward?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveForward(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveForward:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005246-movetobeginningoflineandmodifyse?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToBeginningOfLineAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfLineAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasScrollToEndOfDocument() bool { - return s_.RespondsToSelector(objc.Sel("scrollToEndOfDocument:")) +func (s_ StandardKeyBindingRespondingObject) HasLowercaseWord() bool { + return s_.RespondsToSelector(objc.Sel("lowercaseWord:")) } -// Scrolls the content to the end of the document. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005279-scrolltoendofdocument?language=objc -func (s_ StandardKeyBindingRespondingObject) ScrollToEndOfDocument(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("scrollToEndOfDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005224-lowercaseword?language=objc +func (s_ StandardKeyBindingRespondingObject) LowercaseWord(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("lowercaseWord:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasCancelOperation() bool { - return s_.RespondsToSelector(objc.Sel("cancelOperation:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfDocumentAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfDocumentAndModifySelection:")) } -// Cancels the current operation. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005196-canceloperation?language=objc -func (s_ StandardKeyBindingRespondingObject) CancelOperation(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("cancelOperation:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005250-movetoendofdocumentandmodifysele?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToEndOfDocumentAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToEndOfDocumentAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveToRightEndOfLine() bool { - return s_.RespondsToSelector(objc.Sel("moveToRightEndOfLine:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfLineAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfLineAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005257-movetorightendofline?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveToRightEndOfLine(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveToRightEndOfLine:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005252-movetoendoflineandmodifyselectio?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToEndOfLineAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToEndOfLineAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingObject) HasMoveUpAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveUpAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasIndent() bool { + return s_.RespondsToSelector(objc.Sel("indent:")) } -// Extends the selection to include the content above the current selection. [Full Topic] +// Indents the content at the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005260-moveupandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingObject) MoveUpAndModifySelection(sender objc.Object) { - objc.Call[objc.Void](s_, objc.Sel("moveUpAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005212-indent?language=objc +func (s_ StandardKeyBindingRespondingObject) Indent(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("indent:"), sender) +} + +func (s_ StandardKeyBindingRespondingObject) HasMakeBaseWritingDirectionNatural() bool { + return s_.RespondsToSelector(objc.Sel("makeBaseWritingDirectionNatural:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005226-makebasewritingdirectionnatural?language=objc +func (s_ StandardKeyBindingRespondingObject) MakeBaseWritingDirectionNatural(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("makeBaseWritingDirectionNatural:"), sender) +} + +func (s_ StandardKeyBindingRespondingObject) HasMoveParagraphForwardAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveParagraphForwardAndModifySelection:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005240-moveparagraphforwardandmodifysel?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveParagraphForwardAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveParagraphForwardAndModifySelection:"), sender) +} + +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfParagraphAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfParagraphAndModifySelection:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005254-movetoendofparagraphandmodifysel?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveToEndOfParagraphAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveToEndOfParagraphAndModifySelection:"), sender) } diff --git a/macos/appkit/status_bar.gen.go b/macos/appkit/status_bar.gen.go index 7f12729a..331825a2 100644 --- a/macos/appkit/status_bar.gen.go +++ b/macos/appkit/status_bar.gen.go @@ -18,8 +18,8 @@ type _StatusBarClass struct { // An interface definition for the [StatusBar] class. type IStatusBar interface { objc.IObject - RemoveStatusItem(item IStatusItem) StatusItemWithLength(length float64) StatusItem + RemoveStatusItem(item IStatusItem) IsVertical() bool Thickness() float64 } @@ -57,6 +57,14 @@ func (s_ StatusBar) Init() StatusBar { return rv } +// Returns a newly created status item that has been allotted a specified space within the status bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusbar/1532895-statusitemwithlength?language=objc +func (s_ StatusBar) StatusItemWithLength(length float64) StatusItem { + rv := objc.Call[StatusItem](s_, objc.Sel("statusItemWithLength:"), length) + return rv +} + // Removes the specified status item from the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusbar/1530377-removestatusitem?language=objc @@ -64,14 +72,21 @@ func (s_ StatusBar) RemoveStatusItem(item IStatusItem) { objc.Call[objc.Void](s_, objc.Sel("removeStatusItem:"), item) } -// Returns a newly created status item that has been allotted a specified space within the status bar. [Full Topic] +// Returns the system-wide status bar located in the menu bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusbar/1532895-statusitemwithlength?language=objc -func (s_ StatusBar) StatusItemWithLength(length float64) StatusItem { - rv := objc.Call[StatusItem](s_, objc.Sel("statusItemWithLength:"), length) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusbar/1530619-systemstatusbar?language=objc +func (sc _StatusBarClass) SystemStatusBar() StatusBar { + rv := objc.Call[StatusBar](sc, objc.Sel("systemStatusBar")) return rv } +// Returns the system-wide status bar located in the menu bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusbar/1530619-systemstatusbar?language=objc +func StatusBar_SystemStatusBar() StatusBar { + return StatusBarClass.SystemStatusBar() +} + // A Boolean value indicating whether the status bar has a vertical orientation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusbar/1530580-vertical?language=objc @@ -87,18 +102,3 @@ func (s_ StatusBar) Thickness() float64 { rv := objc.Call[float64](s_, objc.Sel("thickness")) return rv } - -// Returns the system-wide status bar located in the menu bar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusbar/1530619-systemstatusbar?language=objc -func (sc _StatusBarClass) SystemStatusBar() StatusBar { - rv := objc.Call[StatusBar](sc, objc.Sel("systemStatusBar")) - return rv -} - -// Returns the system-wide status bar located in the menu bar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusbar/1530619-systemstatusbar?language=objc -func StatusBar_SystemStatusBar() StatusBar { - return StatusBarClass.SystemStatusBar() -} diff --git a/macos/appkit/status_bar_button.gen.go b/macos/appkit/status_bar_button.gen.go index 52dc7103..359b2823 100644 --- a/macos/appkit/status_bar_button.gen.go +++ b/macos/appkit/status_bar_button.gen.go @@ -56,16 +56,16 @@ func (s_ StatusBarButton) Init() StatusBarButton { return rv } -func (sc _StatusBarButtonClass) ButtonWithTitleImageTargetAction(title string, image IImage, target objc.IObject, action objc.Selector) StatusBarButton { - rv := objc.Call[StatusBarButton](sc, objc.Sel("buttonWithTitle:image:target:action:"), title, image, target, action) +func (sc _StatusBarButtonClass) CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) StatusBarButton { + rv := objc.Call[StatusBarButton](sc, objc.Sel("checkboxWithTitle:target:action:"), title, target, action) return rv } -// Creates a standard push button with a title and image. [Full Topic] +// Creates a standard checkbox with the title you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1644719-buttonwithtitle?language=objc -func StatusBarButton_ButtonWithTitleImageTargetAction(title string, image IImage, target objc.IObject, action objc.Selector) StatusBarButton { - return StatusBarButtonClass.ButtonWithTitleImageTargetAction(title, image, target, action) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1644525-checkboxwithtitle?language=objc +func StatusBarButton_CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) StatusBarButton { + return StatusBarButtonClass.CheckboxWithTitleTargetAction(title, target, action) } func (sc _StatusBarButtonClass) ButtonWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) StatusBarButton { @@ -80,18 +80,6 @@ func StatusBarButton_ButtonWithTitleTargetAction(title string, target objc.IObje return StatusBarButtonClass.ButtonWithTitleTargetAction(title, target, action) } -func (sc _StatusBarButtonClass) CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) StatusBarButton { - rv := objc.Call[StatusBarButton](sc, objc.Sel("checkboxWithTitle:target:action:"), title, target, action) - return rv -} - -// Creates a standard checkbox with the title you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1644525-checkboxwithtitle?language=objc -func StatusBarButton_CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) StatusBarButton { - return StatusBarButtonClass.CheckboxWithTitleTargetAction(title, target, action) -} - func (sc _StatusBarButtonClass) ButtonWithImageTargetAction(image IImage, target objc.IObject, action objc.Selector) StatusBarButton { rv := objc.Call[StatusBarButton](sc, objc.Sel("buttonWithImage:target:action:"), image, target, action) return rv diff --git a/macos/appkit/status_item.gen.go b/macos/appkit/status_item.gen.go index 517ae5cd..87b4c42b 100644 --- a/macos/appkit/status_item.gen.go +++ b/macos/appkit/status_item.gen.go @@ -20,16 +20,16 @@ type IStatusItem interface { objc.IObject IsVisible() bool SetVisible(value bool) + Behavior() StatusItemBehavior + SetBehavior(value StatusItemBehavior) StatusBar() StatusBar AutosaveName() StatusItemAutosaveName SetAutosaveName(value StatusItemAutosaveName) - Behavior() StatusItemBehavior - SetBehavior(value StatusItemBehavior) + Length() float64 + SetLength(value float64) Menu() Menu SetMenu(value IMenu) Button() StatusBarButton - Length() float64 - SetLength(value float64) } // An individual element displayed in the system menu bar. [Full Topic] @@ -80,6 +80,21 @@ func (s_ StatusItem) SetVisible(value bool) { objc.Call[objc.Void](s_, objc.Sel("setVisible:"), value) } +// The set of allowed behaviors for the status item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusitem/1644024-behavior?language=objc +func (s_ StatusItem) Behavior() StatusItemBehavior { + rv := objc.Call[StatusItemBehavior](s_, objc.Sel("behavior")) + return rv +} + +// The set of allowed behaviors for the status item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusitem/1644024-behavior?language=objc +func (s_ StatusItem) SetBehavior(value StatusItemBehavior) { + objc.Call[objc.Void](s_, objc.Sel("setBehavior:"), value) +} + // The status bar that displays the status item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusitem/1525951-statusbar?language=objc @@ -103,19 +118,19 @@ func (s_ StatusItem) SetAutosaveName(value StatusItemAutosaveName) { objc.Call[objc.Void](s_, objc.Sel("setAutosaveName:"), value) } -// The set of allowed behaviors for the status item. [Full Topic] +// The amount of space in the status bar that should be allocated to the status item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusitem/1644024-behavior?language=objc -func (s_ StatusItem) Behavior() StatusItemBehavior { - rv := objc.Call[StatusItemBehavior](s_, objc.Sel("behavior")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusitem/1529402-length?language=objc +func (s_ StatusItem) Length() float64 { + rv := objc.Call[float64](s_, objc.Sel("length")) return rv } -// The set of allowed behaviors for the status item. [Full Topic] +// The amount of space in the status bar that should be allocated to the status item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusitem/1644024-behavior?language=objc -func (s_ StatusItem) SetBehavior(value StatusItemBehavior) { - objc.Call[objc.Void](s_, objc.Sel("setBehavior:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusitem/1529402-length?language=objc +func (s_ StatusItem) SetLength(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setLength:"), value) } // The pull-down menu displayed when the user clicks the status item. [Full Topic] @@ -140,18 +155,3 @@ func (s_ StatusItem) Button() StatusBarButton { rv := objc.Call[StatusBarButton](s_, objc.Sel("button")) return rv } - -// The amount of space in the status bar that should be allocated to the status item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusitem/1529402-length?language=objc -func (s_ StatusItem) Length() float64 { - rv := objc.Call[float64](s_, objc.Sel("length")) - return rv -} - -// The amount of space in the status bar that should be allocated to the status item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstatusitem/1529402-length?language=objc -func (s_ StatusItem) SetLength(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setLength:"), value) -} diff --git a/macos/appkit/stepper.gen.go b/macos/appkit/stepper.gen.go index 96171277..6eec297a 100644 --- a/macos/appkit/stepper.gen.go +++ b/macos/appkit/stepper.gen.go @@ -21,12 +21,12 @@ type IStepper interface { IControl ValueWraps() bool SetValueWraps(value bool) - MaxValue() float64 - SetMaxValue(value float64) MinValue() float64 SetMinValue(value float64) Increment() float64 SetIncrement(value float64) + MaxValue() float64 + SetMaxValue(value float64) Autorepeat() bool SetAutorepeat(value bool) } @@ -93,21 +93,6 @@ func (s_ Stepper) SetValueWraps(value bool) { objc.Call[objc.Void](s_, objc.Sel("setValueWraps:"), value) } -// The stepper’s maximum value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstepper/1523578-maxvalue?language=objc -func (s_ Stepper) MaxValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("maxValue")) - return rv -} - -// The stepper’s maximum value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstepper/1523578-maxvalue?language=objc -func (s_ Stepper) SetMaxValue(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMaxValue:"), value) -} - // The stepper’s minimum value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstepper/1523569-minvalue?language=objc @@ -138,6 +123,21 @@ func (s_ Stepper) SetIncrement(value float64) { objc.Call[objc.Void](s_, objc.Sel("setIncrement:"), value) } +// The stepper’s maximum value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstepper/1523578-maxvalue?language=objc +func (s_ Stepper) MaxValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("maxValue")) + return rv +} + +// The stepper’s maximum value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstepper/1523578-maxvalue?language=objc +func (s_ Stepper) SetMaxValue(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMaxValue:"), value) +} + // A Boolean value that indicates how the stepper responds to mouse events. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstepper/1523571-autorepeat?language=objc diff --git a/macos/appkit/stepper_cell.gen.go b/macos/appkit/stepper_cell.gen.go index 3b5d9468..d801641c 100644 --- a/macos/appkit/stepper_cell.gen.go +++ b/macos/appkit/stepper_cell.gen.go @@ -18,16 +18,16 @@ type _StepperCellClass struct { // An interface definition for the [StepperCell] class. type IStepperCell interface { IActionCell - Increment() float64 - SetIncrement(value float64) - Autorepeat() bool - SetAutorepeat(value bool) - MinValue() float64 - SetMinValue(value float64) ValueWraps() bool SetValueWraps(value bool) + MinValue() float64 + SetMinValue(value float64) + Increment() float64 + SetIncrement(value float64) MaxValue() float64 SetMaxValue(value float64) + Autorepeat() bool + SetAutorepeat(value bool) } // An NSStepperCell object controls the appearance and behavior of an NSStepper object. [Full Topic] @@ -91,34 +91,19 @@ func NewStepperCellTextCell(string_ string) StepperCell { return instance } -// The amount by which the receiver will change per increment or decrement. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392331-increment?language=objc -func (s_ StepperCell) Increment() float64 { - rv := objc.Call[float64](s_, objc.Sel("increment")) - return rv -} - -// The amount by which the receiver will change per increment or decrement. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392331-increment?language=objc -func (s_ StepperCell) SetIncrement(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setIncrement:"), value) -} - -// A Boolean value indicating how the receiver responds to mouse events. [Full Topic] +// A Boolean value indicating whether the receiver wraps around the minimum and maximum values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392323-autorepeat?language=objc -func (s_ StepperCell) Autorepeat() bool { - rv := objc.Call[bool](s_, objc.Sel("autorepeat")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392325-valuewraps?language=objc +func (s_ StepperCell) ValueWraps() bool { + rv := objc.Call[bool](s_, objc.Sel("valueWraps")) return rv } -// A Boolean value indicating how the receiver responds to mouse events. [Full Topic] +// A Boolean value indicating whether the receiver wraps around the minimum and maximum values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392323-autorepeat?language=objc -func (s_ StepperCell) SetAutorepeat(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setAutorepeat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392325-valuewraps?language=objc +func (s_ StepperCell) SetValueWraps(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setValueWraps:"), value) } // The minimum value for the receiver. [Full Topic] @@ -136,19 +121,19 @@ func (s_ StepperCell) SetMinValue(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMinValue:"), value) } -// A Boolean value indicating whether the receiver wraps around the minimum and maximum values. [Full Topic] +// The amount by which the receiver will change per increment or decrement. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392325-valuewraps?language=objc -func (s_ StepperCell) ValueWraps() bool { - rv := objc.Call[bool](s_, objc.Sel("valueWraps")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392331-increment?language=objc +func (s_ StepperCell) Increment() float64 { + rv := objc.Call[float64](s_, objc.Sel("increment")) return rv } -// A Boolean value indicating whether the receiver wraps around the minimum and maximum values. [Full Topic] +// The amount by which the receiver will change per increment or decrement. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392325-valuewraps?language=objc -func (s_ StepperCell) SetValueWraps(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setValueWraps:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392331-increment?language=objc +func (s_ StepperCell) SetIncrement(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setIncrement:"), value) } // The maximum value for the receiver. [Full Topic] @@ -165,3 +150,18 @@ func (s_ StepperCell) MaxValue() float64 { func (s_ StepperCell) SetMaxValue(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMaxValue:"), value) } + +// A Boolean value indicating how the receiver responds to mouse events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392323-autorepeat?language=objc +func (s_ StepperCell) Autorepeat() bool { + rv := objc.Call[bool](s_, objc.Sel("autorepeat")) + return rv +} + +// A Boolean value indicating how the receiver responds to mouse events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppercell/1392323-autorepeat?language=objc +func (s_ StepperCell) SetAutorepeat(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setAutorepeat:"), value) +} diff --git a/macos/appkit/stepper_touch_bar_item.gen.go b/macos/appkit/stepper_touch_bar_item.gen.go index 7c1d464c..8b794db7 100644 --- a/macos/appkit/stepper_touch_bar_item.gen.go +++ b/macos/appkit/stepper_touch_bar_item.gen.go @@ -21,17 +21,17 @@ type IStepperTouchBarItem interface { ITouchBarItem Target() objc.Object SetTarget(value objc.IObject) - Increment() float64 - SetIncrement(value float64) + SetCustomizationLabel(value string) + Action() objc.Selector + SetAction(value objc.Selector) Value() float64 SetValue(value float64) MinValue() float64 SetMinValue(value float64) + Increment() float64 + SetIncrement(value float64) MaxValue() float64 SetMaxValue(value float64) - SetCustomizationLabel(value string) - Action() objc.Selector - SetAction(value objc.Selector) } // A bar item that provides a stepper control for incrementing or decrementing a value. [Full Topic] @@ -59,18 +59,6 @@ func StepperTouchBarItem_StepperTouchBarItemWithIdentifierFormatter(identifier T return StepperTouchBarItemClass.StepperTouchBarItemWithIdentifierFormatter(identifier, formatter) } -func (sc _StepperTouchBarItemClass) StepperTouchBarItemWithIdentifierDrawingHandler(identifier TouchBarItemIdentifier, drawingHandler func(rect foundation.Rect, value float64)) StepperTouchBarItem { - rv := objc.Call[StepperTouchBarItem](sc, objc.Sel("stepperTouchBarItemWithIdentifier:drawingHandler:"), identifier, drawingHandler) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334935-steppertouchbaritemwithidentifie?language=objc -func StepperTouchBarItem_StepperTouchBarItemWithIdentifierDrawingHandler(identifier TouchBarItemIdentifier, drawingHandler func(rect foundation.Rect, value float64)) StepperTouchBarItem { - return StepperTouchBarItemClass.StepperTouchBarItemWithIdentifierDrawingHandler(identifier, drawingHandler) -} - func (sc _StepperTouchBarItemClass) Alloc() StepperTouchBarItem { rv := objc.Call[StepperTouchBarItem](sc, objc.Sel("alloc")) return rv @@ -122,17 +110,24 @@ func (s_ StepperTouchBarItem) SetTarget(value objc.IObject) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334932-increment?language=objc -func (s_ StepperTouchBarItem) Increment() float64 { - rv := objc.Call[float64](s_, objc.Sel("increment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334931-customizationlabel?language=objc +func (s_ StepperTouchBarItem) SetCustomizationLabel(value string) { + objc.Call[objc.Void](s_, objc.Sel("setCustomizationLabel:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334930-action?language=objc +func (s_ StepperTouchBarItem) Action() objc.Selector { + rv := objc.Call[objc.Selector](s_, objc.Sel("action")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334932-increment?language=objc -func (s_ StepperTouchBarItem) SetIncrement(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setIncrement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334930-action?language=objc +func (s_ StepperTouchBarItem) SetAction(value objc.Selector) { + objc.Call[objc.Void](s_, objc.Sel("setAction:"), value) } // [Full Topic] @@ -167,37 +162,30 @@ func (s_ StepperTouchBarItem) SetMinValue(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334933-maxvalue?language=objc -func (s_ StepperTouchBarItem) MaxValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("maxValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334932-increment?language=objc +func (s_ StepperTouchBarItem) Increment() float64 { + rv := objc.Call[float64](s_, objc.Sel("increment")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334933-maxvalue?language=objc -func (s_ StepperTouchBarItem) SetMaxValue(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMaxValue:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334931-customizationlabel?language=objc -func (s_ StepperTouchBarItem) SetCustomizationLabel(value string) { - objc.Call[objc.Void](s_, objc.Sel("setCustomizationLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334932-increment?language=objc +func (s_ StepperTouchBarItem) SetIncrement(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setIncrement:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334930-action?language=objc -func (s_ StepperTouchBarItem) Action() objc.Selector { - rv := objc.Call[objc.Selector](s_, objc.Sel("action")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334933-maxvalue?language=objc +func (s_ StepperTouchBarItem) MaxValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("maxValue")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334930-action?language=objc -func (s_ StepperTouchBarItem) SetAction(value objc.Selector) { - objc.Call[objc.Void](s_, objc.Sel("setAction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssteppertouchbaritem/3334933-maxvalue?language=objc +func (s_ StepperTouchBarItem) SetMaxValue(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMaxValue:"), value) } diff --git a/macos/appkit/storyboard.gen.go b/macos/appkit/storyboard.gen.go index 111c8f31..57e8c2c5 100644 --- a/macos/appkit/storyboard.gen.go +++ b/macos/appkit/storyboard.gen.go @@ -19,10 +19,9 @@ type _StoryboardClass struct { // An interface definition for the [Storyboard] class. type IStoryboard interface { objc.IObject - InstantiateControllerWithIdentifier(identifier StoryboardSceneIdentifier) objc.Object - InstantiateInitialControllerWithCreator(block StoryboardControllerCreator) objc.Object InstantiateControllerWithIdentifierCreator(identifier StoryboardSceneIdentifier, block StoryboardControllerCreator) objc.Object InstantiateInitialController() objc.Object + InstantiateInitialControllerWithCreator(block StoryboardControllerCreator) objc.Object } // An encapsulation of the design-time view controller and window controller graph represented in an Interface Builder storyboard resource file. [Full Topic] @@ -70,22 +69,6 @@ func (s_ Storyboard) Init() Storyboard { return rv } -// Instantiates a specified view controller or window controller from a storyboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstoryboard/1426549-instantiatecontrollerwithidentif?language=objc -func (s_ Storyboard) InstantiateControllerWithIdentifier(identifier StoryboardSceneIdentifier) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("instantiateControllerWithIdentifier:"), identifier) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstoryboard/3174923-instantiateinitialcontrollerwith?language=objc -func (s_ Storyboard) InstantiateInitialControllerWithCreator(block StoryboardControllerCreator) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("instantiateInitialControllerWithCreator:"), block) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstoryboard/3174922-instantiatecontrollerwithidentif?language=objc @@ -102,6 +85,14 @@ func (s_ Storyboard) InstantiateInitialController() objc.Object { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstoryboard/3174923-instantiateinitialcontrollerwith?language=objc +func (s_ Storyboard) InstantiateInitialControllerWithCreator(block StoryboardControllerCreator) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("instantiateInitialControllerWithCreator:"), block) + return rv +} + // The app's main storyboard. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstoryboard/2881236-mainstoryboard?language=objc diff --git a/macos/appkit/storyboard_segue.gen.go b/macos/appkit/storyboard_segue.gen.go index 8af216d0..a857376d 100644 --- a/macos/appkit/storyboard_segue.gen.go +++ b/macos/appkit/storyboard_segue.gen.go @@ -19,9 +19,9 @@ type _StoryboardSegueClass struct { type IStoryboardSegue interface { objc.IObject Perform() + SourceController() objc.Object DestinationController() objc.Object Identifier() StoryboardSegueIdentifier - SourceController() objc.Object } // A transition or containment relationship between two scenes in a storyboard. [Full Topic] @@ -37,18 +37,6 @@ func StoryboardSegueFrom(ptr unsafe.Pointer) StoryboardSegue { } } -func (sc _StoryboardSegueClass) SegueWithIdentifierSourceDestinationPerformHandler(identifier StoryboardSegueIdentifier, sourceController objc.IObject, destinationController objc.IObject, performHandler func()) StoryboardSegue { - rv := objc.Call[StoryboardSegue](sc, objc.Sel("segueWithIdentifier:source:destination:performHandler:"), identifier, sourceController, destinationController, performHandler) - return rv -} - -// Creates a storyboard segue and a block used when the segue is performed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstoryboardsegue/1409576-seguewithidentifier?language=objc -func StoryboardSegue_SegueWithIdentifierSourceDestinationPerformHandler(identifier StoryboardSegueIdentifier, sourceController objc.IObject, destinationController objc.IObject, performHandler func()) StoryboardSegue { - return StoryboardSegueClass.SegueWithIdentifierSourceDestinationPerformHandler(identifier, sourceController, destinationController, performHandler) -} - func (s_ StoryboardSegue) InitWithIdentifierSourceDestination(identifier StoryboardSegueIdentifier, sourceController objc.IObject, destinationController objc.IObject) StoryboardSegue { rv := objc.Call[StoryboardSegue](s_, objc.Sel("initWithIdentifier:source:destination:"), identifier, sourceController, destinationController) return rv @@ -63,6 +51,18 @@ func NewStoryboardSegueWithIdentifierSourceDestination(identifier StoryboardSegu return instance } +func (sc _StoryboardSegueClass) SegueWithIdentifierSourceDestinationPerformHandler(identifier StoryboardSegueIdentifier, sourceController objc.IObject, destinationController objc.IObject, performHandler func()) StoryboardSegue { + rv := objc.Call[StoryboardSegue](sc, objc.Sel("segueWithIdentifier:source:destination:performHandler:"), identifier, sourceController, destinationController, performHandler) + return rv +} + +// Creates a storyboard segue and a block used when the segue is performed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstoryboardsegue/1409576-seguewithidentifier?language=objc +func StoryboardSegue_SegueWithIdentifierSourceDestinationPerformHandler(identifier StoryboardSegueIdentifier, sourceController objc.IObject, destinationController objc.IObject, performHandler func()) StoryboardSegue { + return StoryboardSegueClass.SegueWithIdentifierSourceDestinationPerformHandler(identifier, sourceController, destinationController, performHandler) +} + func (sc _StoryboardSegueClass) Alloc() StoryboardSegue { rv := objc.Call[StoryboardSegue](sc, objc.Sel("alloc")) return rv @@ -90,6 +90,14 @@ func (s_ StoryboardSegue) Perform() { objc.Call[objc.Void](s_, objc.Sel("perform")) } +// The starting/containing view controller or window controller for the storyboard segue. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstoryboardsegue/1409582-sourcecontroller?language=objc +func (s_ StoryboardSegue) SourceController() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("sourceController")) + return rv +} + // The ending/contained view controller or window controller for the storyboard segue. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstoryboardsegue/1409586-destinationcontroller?language=objc @@ -105,11 +113,3 @@ func (s_ StoryboardSegue) Identifier() StoryboardSegueIdentifier { rv := objc.Call[StoryboardSegueIdentifier](s_, objc.Sel("identifier")) return rv } - -// The starting/containing view controller or window controller for the storyboard segue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstoryboardsegue/1409582-sourcecontroller?language=objc -func (s_ StoryboardSegue) SourceController() objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("sourceController")) - return rv -} diff --git a/macos/appkit/string_drawing_context.gen.go b/macos/appkit/string_drawing_context.gen.go index 4f1d2de0..1609ad77 100644 --- a/macos/appkit/string_drawing_context.gen.go +++ b/macos/appkit/string_drawing_context.gen.go @@ -5,7 +5,7 @@ package appkit import ( "unsafe" - "github.com/progrium/darwinkit/macos/foundation" + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/objc" ) @@ -19,10 +19,10 @@ type _StringDrawingContextClass struct { // An interface definition for the [StringDrawingContext] class. type IStringDrawingContext interface { objc.IObject - TotalBounds() foundation.Rect + TotalBounds() coregraphics.Rect + ActualScaleFactor() float64 MinimumScaleFactor() float64 SetMinimumScaleFactor(value float64) - ActualScaleFactor() float64 } // An object that manages metrics for drawing attributed strings. [Full Topic] @@ -61,8 +61,16 @@ func (s_ StringDrawingContext) Init() StringDrawingContext { // The most recent bounding rectangle that the system used to draw the string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nsstringdrawingcontext/1530525-totalbounds?language=objc -func (s_ StringDrawingContext) TotalBounds() foundation.Rect { - rv := objc.Call[foundation.Rect](s_, objc.Sel("totalBounds")) +func (s_ StringDrawingContext) TotalBounds() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](s_, objc.Sel("totalBounds")) + return rv +} + +// The actual scale factor that the system applied to the font during drawing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nsstringdrawingcontext/1531498-actualscalefactor?language=objc +func (s_ StringDrawingContext) ActualScaleFactor() float64 { + rv := objc.Call[float64](s_, objc.Sel("actualScaleFactor")) return rv } @@ -80,11 +88,3 @@ func (s_ StringDrawingContext) MinimumScaleFactor() float64 { func (s_ StringDrawingContext) SetMinimumScaleFactor(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMinimumScaleFactor:"), value) } - -// The actual scale factor that the system applied to the font during drawing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsstringdrawingcontext/1531498-actualscalefactor?language=objc -func (s_ StringDrawingContext) ActualScaleFactor() float64 { - rv := objc.Call[float64](s_, objc.Sel("actualScaleFactor")) - return rv -} diff --git a/macos/appkit/tab_view.gen.go b/macos/appkit/tab_view.gen.go index 7e1dde73..ad73082d 100644 --- a/macos/appkit/tab_view.gen.go +++ b/macos/appkit/tab_view.gen.go @@ -19,38 +19,38 @@ type _TabViewClass struct { // An interface definition for the [TabView] class. type ITabView interface { IView - TabViewItemAtPoint(point foundation.Point) TabViewItem - InsertTabViewItemAtIndex(tabViewItem ITabViewItem, index int) - SelectLastTabViewItem(sender objc.IObject) - TakeSelectedTabViewItemFromSender(sender objc.IObject) - IndexOfTabViewItem(tabViewItem ITabViewItem) int - SelectTabViewItemWithIdentifier(identifier objc.IObject) TabViewItemAtIndex(index int) TabViewItem + TabViewItemAtPoint(point foundation.Point) TabViewItem RemoveTabViewItem(tabViewItem ITabViewItem) + TakeSelectedTabViewItemFromSender(sender objc.IObject) SelectFirstTabViewItem(sender objc.IObject) SelectPreviousTabViewItem(sender objc.IObject) IndexOfTabViewItemWithIdentifier(identifier objc.IObject) int - SelectTabViewItem(tabViewItem ITabViewItem) SelectNextTabViewItem(sender objc.IObject) - AddTabViewItem(tabViewItem ITabViewItem) SelectTabViewItemAtIndex(index int) - ContentRect() foundation.Rect + SelectLastTabViewItem(sender objc.IObject) + SelectTabViewItem(tabViewItem ITabViewItem) + InsertTabViewItemAtIndex(tabViewItem ITabViewItem, index int) + IndexOfTabViewItem(tabViewItem ITabViewItem) int + AddTabViewItem(tabViewItem ITabViewItem) + SelectTabViewItemWithIdentifier(identifier objc.IObject) + MinimumSize() foundation.Size ControlSize() ControlSize SetControlSize(value ControlSize) - DrawsBackground() bool - SetDrawsBackground(value bool) - Delegate() TabViewDelegateObject - SetDelegate(value PTabViewDelegate) - SetDelegateObject(valueObject objc.IObject) + TabViewItems() []TabViewItem + SetTabViewItems(value []ITabViewItem) + ContentRect() foundation.Rect NumberOfTabViewItems() int AllowsTruncatedLabels() bool SetAllowsTruncatedLabels(value bool) + SelectedTabViewItem() TabViewItem + Delegate() TabViewDelegateObject + SetDelegate(value PTabViewDelegate) + SetDelegateObject(valueObject objc.IObject) TabPosition() TabPosition SetTabPosition(value TabPosition) - SelectedTabViewItem() TabViewItem - TabViewItems() []TabViewItem - SetTabViewItems(value []ITabViewItem) - MinimumSize() foundation.Size + DrawsBackground() bool + SetDrawsBackground(value bool) TabViewBorderType() TabViewBorderType SetTabViewBorderType(value TabViewBorderType) Font() Font @@ -106,6 +106,14 @@ func NewTabViewWithFrame(frameRect foundation.Rect) TabView { return instance } +// Returns the tab view item at index in the tab view’s array of items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391637-tabviewitematindex?language=objc +func (t_ TabView) TabViewItemAtIndex(index int) TabViewItem { + rv := objc.Call[TabViewItem](t_, objc.Sel("tabViewItemAtIndex:"), index) + return rv +} + // Returns the tab view item at the specified point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391606-tabviewitematpoint?language=objc @@ -114,18 +122,11 @@ func (t_ TabView) TabViewItemAtPoint(point foundation.Point) TabViewItem { return rv } -// Inserts the specified item into the tab view’s array of tab view items at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391584-inserttabviewitem?language=objc -func (t_ TabView) InsertTabViewItemAtIndex(tabViewItem ITabViewItem, index int) { - objc.Call[objc.Void](t_, objc.Sel("insertTabViewItem:atIndex:"), tabViewItem, index) -} - -// This action method selects the last tab view item. [Full Topic] +// Removes the specified item from the tab view’s array of tab view items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391635-selectlasttabviewitem?language=objc -func (t_ TabView) SelectLastTabViewItem(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("selectLastTabViewItem:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391641-removetabviewitem?language=objc +func (t_ TabView) RemoveTabViewItem(tabViewItem ITabViewItem) { + objc.Call[objc.Void](t_, objc.Sel("removeTabViewItem:"), tabViewItem) } // Sets the selected tab view item to the selected item obtained from the sender. [Full Topic] @@ -135,36 +136,6 @@ func (t_ TabView) TakeSelectedTabViewItemFromSender(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("takeSelectedTabViewItemFromSender:"), sender) } -// Returns the index of the specified item in the tab view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391604-indexoftabviewitem?language=objc -func (t_ TabView) IndexOfTabViewItem(tabViewItem ITabViewItem) int { - rv := objc.Call[int](t_, objc.Sel("indexOfTabViewItem:"), tabViewItem) - return rv -} - -// Selects the tab view item specified by identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391629-selecttabviewitemwithidentifier?language=objc -func (t_ TabView) SelectTabViewItemWithIdentifier(identifier objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("selectTabViewItemWithIdentifier:"), identifier) -} - -// Returns the tab view item at index in the tab view’s array of items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391637-tabviewitematindex?language=objc -func (t_ TabView) TabViewItemAtIndex(index int) TabViewItem { - rv := objc.Call[TabViewItem](t_, objc.Sel("tabViewItemAtIndex:"), index) - return rv -} - -// Removes the specified item from the tab view’s array of tab view items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391641-removetabviewitem?language=objc -func (t_ TabView) RemoveTabViewItem(tabViewItem ITabViewItem) { - objc.Call[objc.Void](t_, objc.Sel("removeTabViewItem:"), tabViewItem) -} - // This action method selects the first tab view item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391627-selectfirsttabviewitem?language=objc @@ -187,6 +158,27 @@ func (t_ TabView) IndexOfTabViewItemWithIdentifier(identifier objc.IObject) int return rv } +// This action method selects the next tab view item in the sequence. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391639-selectnexttabviewitem?language=objc +func (t_ TabView) SelectNextTabViewItem(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("selectNextTabViewItem:"), sender) +} + +// Selects the tab view item specified by index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391590-selecttabviewitematindex?language=objc +func (t_ TabView) SelectTabViewItemAtIndex(index int) { + objc.Call[objc.Void](t_, objc.Sel("selectTabViewItemAtIndex:"), index) +} + +// This action method selects the last tab view item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391635-selectlasttabviewitem?language=objc +func (t_ TabView) SelectLastTabViewItem(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("selectLastTabViewItem:"), sender) +} + // Selects the specified tab view item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391649-selecttabviewitem?language=objc @@ -194,11 +186,19 @@ func (t_ TabView) SelectTabViewItem(tabViewItem ITabViewItem) { objc.Call[objc.Void](t_, objc.Sel("selectTabViewItem:"), tabViewItem) } -// This action method selects the next tab view item in the sequence. [Full Topic] +// Inserts the specified item into the tab view’s array of tab view items at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391639-selectnexttabviewitem?language=objc -func (t_ TabView) SelectNextTabViewItem(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("selectNextTabViewItem:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391584-inserttabviewitem?language=objc +func (t_ TabView) InsertTabViewItemAtIndex(tabViewItem ITabViewItem, index int) { + objc.Call[objc.Void](t_, objc.Sel("insertTabViewItem:atIndex:"), tabViewItem, index) +} + +// Returns the index of the specified item in the tab view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391604-indexoftabviewitem?language=objc +func (t_ TabView) IndexOfTabViewItem(tabViewItem ITabViewItem) int { + rv := objc.Call[int](t_, objc.Sel("indexOfTabViewItem:"), tabViewItem) + return rv } // Adds the specified tab item. [Full Topic] @@ -208,18 +208,18 @@ func (t_ TabView) AddTabViewItem(tabViewItem ITabViewItem) { objc.Call[objc.Void](t_, objc.Sel("addTabViewItem:"), tabViewItem) } -// Selects the tab view item specified by index. [Full Topic] +// Selects the tab view item specified by identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391590-selecttabviewitematindex?language=objc -func (t_ TabView) SelectTabViewItemAtIndex(index int) { - objc.Call[objc.Void](t_, objc.Sel("selectTabViewItemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391629-selecttabviewitemwithidentifier?language=objc +func (t_ TabView) SelectTabViewItemWithIdentifier(identifier objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("selectTabViewItemWithIdentifier:"), identifier) } -// The rectangle describing the content area of the tab view. [Full Topic] +// The minimum size necessary for the tab view to display tabs in a useful way. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391659-contentrect?language=objc -func (t_ TabView) ContentRect() foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("contentRect")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391598-minimumsize?language=objc +func (t_ TabView) MinimumSize() foundation.Size { + rv := objc.Call[foundation.Size](t_, objc.Sel("minimumSize")) return rv } @@ -238,45 +238,29 @@ func (t_ TabView) SetControlSize(value ControlSize) { objc.Call[objc.Void](t_, objc.Sel("setControlSize:"), value) } -// A Boolean value that indicates if the tab view draws a background color when its type is NSNoTabsNoBorder. [Full Topic] +// The tab view’s array of tab view items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391588-drawsbackground?language=objc -func (t_ TabView) DrawsBackground() bool { - rv := objc.Call[bool](t_, objc.Sel("drawsBackground")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391613-tabviewitems?language=objc +func (t_ TabView) TabViewItems() []TabViewItem { + rv := objc.Call[[]TabViewItem](t_, objc.Sel("tabViewItems")) return rv } -// A Boolean value that indicates if the tab view draws a background color when its type is NSNoTabsNoBorder. [Full Topic] +// The tab view’s array of tab view items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391588-drawsbackground?language=objc -func (t_ TabView) SetDrawsBackground(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setDrawsBackground:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391613-tabviewitems?language=objc +func (t_ TabView) SetTabViewItems(value []ITabViewItem) { + objc.Call[objc.Void](t_, objc.Sel("setTabViewItems:"), value) } -// The tab view’s delegate. [Full Topic] +// The rectangle describing the content area of the tab view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391615-delegate?language=objc -func (t_ TabView) Delegate() TabViewDelegateObject { - rv := objc.Call[TabViewDelegateObject](t_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391659-contentrect?language=objc +func (t_ TabView) ContentRect() foundation.Rect { + rv := objc.Call[foundation.Rect](t_, objc.Sel("contentRect")) return rv } -// The tab view’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391615-delegate?language=objc -func (t_ TabView) SetDelegate(value PTabViewDelegate) { - po0 := objc.WrapAsProtocol("NSTabViewDelegate", value) - objc.SetAssociatedObject(t_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) -} - -// The tab view’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391615-delegate?language=objc -func (t_ TabView) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) -} - // The number of items in the tab view’s array of tab view items. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391596-numberoftabviewitems?language=objc @@ -300,6 +284,38 @@ func (t_ TabView) SetAllowsTruncatedLabels(value bool) { objc.Call[objc.Void](t_, objc.Sel("setAllowsTruncatedLabels:"), value) } +// The tab view item for the currently selected tab. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391625-selectedtabviewitem?language=objc +func (t_ TabView) SelectedTabViewItem() TabViewItem { + rv := objc.Call[TabViewItem](t_, objc.Sel("selectedTabViewItem")) + return rv +} + +// The tab view’s delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391615-delegate?language=objc +func (t_ TabView) Delegate() TabViewDelegateObject { + rv := objc.Call[TabViewDelegateObject](t_, objc.Sel("delegate")) + return rv +} + +// The tab view’s delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391615-delegate?language=objc +func (t_ TabView) SetDelegate(value PTabViewDelegate) { + po0 := objc.WrapAsProtocol("NSTabViewDelegate", value) + objc.SetAssociatedObject(t_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) +} + +// The tab view’s delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391615-delegate?language=objc +func (t_ TabView) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/2097105-tabposition?language=objc @@ -315,35 +331,19 @@ func (t_ TabView) SetTabPosition(value TabPosition) { objc.Call[objc.Void](t_, objc.Sel("setTabPosition:"), value) } -// The tab view item for the currently selected tab. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391625-selectedtabviewitem?language=objc -func (t_ TabView) SelectedTabViewItem() TabViewItem { - rv := objc.Call[TabViewItem](t_, objc.Sel("selectedTabViewItem")) - return rv -} - -// The tab view’s array of tab view items. [Full Topic] +// A Boolean value that indicates if the tab view draws a background color when its type is NSNoTabsNoBorder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391613-tabviewitems?language=objc -func (t_ TabView) TabViewItems() []TabViewItem { - rv := objc.Call[[]TabViewItem](t_, objc.Sel("tabViewItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391588-drawsbackground?language=objc +func (t_ TabView) DrawsBackground() bool { + rv := objc.Call[bool](t_, objc.Sel("drawsBackground")) return rv } -// The tab view’s array of tab view items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391613-tabviewitems?language=objc -func (t_ TabView) SetTabViewItems(value []ITabViewItem) { - objc.Call[objc.Void](t_, objc.Sel("setTabViewItems:"), value) -} - -// The minimum size necessary for the tab view to display tabs in a useful way. [Full Topic] +// A Boolean value that indicates if the tab view draws a background color when its type is NSNoTabsNoBorder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391598-minimumsize?language=objc -func (t_ TabView) MinimumSize() foundation.Size { - rv := objc.Call[foundation.Size](t_, objc.Sel("minimumSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/1391588-drawsbackground?language=objc +func (t_ TabView) SetDrawsBackground(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setDrawsBackground:"), value) } // [Full Topic] diff --git a/macos/appkit/tab_view_controller.gen.go b/macos/appkit/tab_view_controller.gen.go index b84932d3..d6fed548 100644 --- a/macos/appkit/tab_view_controller.gen.go +++ b/macos/appkit/tab_view_controller.gen.go @@ -19,29 +19,26 @@ type _TabViewControllerClass struct { // An interface definition for the [TabViewController] class. type ITabViewController interface { IViewController - TabViewShouldSelectTabViewItem(tabView ITabView, tabViewItem ITabViewItem) bool + TabViewItemForViewController(viewController IViewController) TabViewItem + ToolbarAllowedItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier + RemoveTabViewItem(tabViewItem ITabViewItem) ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar IToolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem - TabViewWillSelectTabViewItem(tabView ITabView, tabViewItem ITabViewItem) - AddTabViewItem(tabViewItem ITabViewItem) + ToolbarDefaultItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier ToolbarSelectableItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier InsertTabViewItemAtIndex(tabViewItem ITabViewItem, index int) - RemoveTabViewItem(tabViewItem ITabViewItem) - ToolbarDefaultItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier - ToolbarAllowedItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier - TabViewDidSelectTabViewItem(tabView ITabView, tabViewItem ITabViewItem) - TabViewItemForViewController(viewController IViewController) TabViewItem - TransitionOptions() ViewControllerTransitionOptions - SetTransitionOptions(value ViewControllerTransitionOptions) - TabView() TabView - SetTabView(value ITabView) - SelectedTabViewItemIndex() int - SetSelectedTabViewItemIndex(value int) + AddTabViewItem(tabViewItem ITabViewItem) CanPropagateSelectedChildViewControllerTitle() bool SetCanPropagateSelectedChildViewControllerTitle(value bool) TabStyle() TabViewControllerTabStyle SetTabStyle(value TabViewControllerTabStyle) TabViewItems() []TabViewItem SetTabViewItems(value []ITabViewItem) + TabView() TabView + SetTabView(value ITabView) + TransitionOptions() ViewControllerTransitionOptions + SetTransitionOptions(value ViewControllerTransitionOptions) + SelectedTabViewItemIndex() int + SetSelectedTabViewItemIndex(value int) } // A container view controller that manages a tab view interface, which organizes multiple pages of content but displays only one page at a time. [Full Topic] @@ -91,14 +88,29 @@ func NewTabViewControllerWithNibNameBundle(nibNameOrNil NibName, nibBundleOrNil return instance } -// Asks the tab view controller if the specified tab should be selected. [Full Topic] +// Returns the tab view item for the specified child view controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428237-tabview?language=objc -func (t_ TabViewController) TabViewShouldSelectTabViewItem(tabView ITabView, tabViewItem ITabViewItem) bool { - rv := objc.Call[bool](t_, objc.Sel("tabView:shouldSelectTabViewItem:"), tabView, tabViewItem) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428233-tabviewitemforviewcontroller?language=objc +func (t_ TabViewController) TabViewItemForViewController(viewController IViewController) TabViewItem { + rv := objc.Call[TabViewItem](t_, objc.Sel("tabViewItemForViewController:"), viewController) return rv } +// Returns the array of identifier strings for the allowed toolbar items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428229-toolbaralloweditemidentifiers?language=objc +func (t_ TabViewController) ToolbarAllowedItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier { + rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarAllowedItemIdentifiers:"), toolbar) + return rv +} + +// Removes the specified tab view item from the tab view controller. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428235-removetabviewitem?language=objc +func (t_ TabViewController) RemoveTabViewItem(tabViewItem ITabViewItem) { + objc.Call[objc.Void](t_, objc.Sel("removeTabViewItem:"), tabViewItem) +} + // Returns the toolbar item for the specified identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428218-toolbar?language=objc @@ -107,18 +119,12 @@ func (t_ TabViewController) ToolbarItemForItemIdentifierWillBeInsertedIntoToolba return rv } -// Informs the tab view controller that the specified tab is about to be selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428231-tabview?language=objc -func (t_ TabViewController) TabViewWillSelectTabViewItem(tabView ITabView, tabViewItem ITabViewItem) { - objc.Call[objc.Void](t_, objc.Sel("tabView:willSelectTabViewItem:"), tabView, tabViewItem) -} - -// Adds the specified tab to the end of the tab view controller’s list of tabs. [Full Topic] +// Returns the array of identifier strings for the default toolbar items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428214-addtabviewitem?language=objc -func (t_ TabViewController) AddTabViewItem(tabViewItem ITabViewItem) { - objc.Call[objc.Void](t_, objc.Sel("addTabViewItem:"), tabViewItem) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428251-toolbardefaultitemidentifiers?language=objc +func (t_ TabViewController) ToolbarDefaultItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier { + rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarDefaultItemIdentifiers:"), toolbar) + return rv } // Returns the array of identifier strings for the selectable toolbar items [Full Topic] @@ -136,57 +142,56 @@ func (t_ TabViewController) InsertTabViewItemAtIndex(tabViewItem ITabViewItem, i objc.Call[objc.Void](t_, objc.Sel("insertTabViewItem:atIndex:"), tabViewItem, index) } -// Removes the specified tab view item from the tab view controller. [Full Topic] +// Adds the specified tab to the end of the tab view controller’s list of tabs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428235-removetabviewitem?language=objc -func (t_ TabViewController) RemoveTabViewItem(tabViewItem ITabViewItem) { - objc.Call[objc.Void](t_, objc.Sel("removeTabViewItem:"), tabViewItem) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428214-addtabviewitem?language=objc +func (t_ TabViewController) AddTabViewItem(tabViewItem ITabViewItem) { + objc.Call[objc.Void](t_, objc.Sel("addTabViewItem:"), tabViewItem) } -// Returns the array of identifier strings for the default toolbar items. [Full Topic] +// A Boolean value indicating whether the tab view controller gets its title from the selected child view controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428251-toolbardefaultitemidentifiers?language=objc -func (t_ TabViewController) ToolbarDefaultItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier { - rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarDefaultItemIdentifiers:"), toolbar) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428239-canpropagateselectedchildviewcon?language=objc +func (t_ TabViewController) CanPropagateSelectedChildViewControllerTitle() bool { + rv := objc.Call[bool](t_, objc.Sel("canPropagateSelectedChildViewControllerTitle")) return rv } -// Returns the array of identifier strings for the allowed toolbar items. [Full Topic] +// A Boolean value indicating whether the tab view controller gets its title from the selected child view controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428229-toolbaralloweditemidentifiers?language=objc -func (t_ TabViewController) ToolbarAllowedItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier { - rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarAllowedItemIdentifiers:"), toolbar) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428239-canpropagateselectedchildviewcon?language=objc +func (t_ TabViewController) SetCanPropagateSelectedChildViewControllerTitle(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setCanPropagateSelectedChildViewControllerTitle:"), value) } -// Informs the tab view controller that the specified tab was selected. [Full Topic] +// The style used to display the tabs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428243-tabview?language=objc -func (t_ TabViewController) TabViewDidSelectTabViewItem(tabView ITabView, tabViewItem ITabViewItem) { - objc.Call[objc.Void](t_, objc.Sel("tabView:didSelectTabViewItem:"), tabView, tabViewItem) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428259-tabstyle?language=objc +func (t_ TabViewController) TabStyle() TabViewControllerTabStyle { + rv := objc.Call[TabViewControllerTabStyle](t_, objc.Sel("tabStyle")) + return rv } -// Returns the tab view item for the specified child view controller. [Full Topic] +// The style used to display the tabs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428233-tabviewitemforviewcontroller?language=objc -func (t_ TabViewController) TabViewItemForViewController(viewController IViewController) TabViewItem { - rv := objc.Call[TabViewItem](t_, objc.Sel("tabViewItemForViewController:"), viewController) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428259-tabstyle?language=objc +func (t_ TabViewController) SetTabStyle(value TabViewControllerTabStyle) { + objc.Call[objc.Void](t_, objc.Sel("setTabStyle:"), value) } -// The animation options to use when switching between tabs. [Full Topic] +// The array of tab view items used to manage each of the child view controllers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428257-transitionoptions?language=objc -func (t_ TabViewController) TransitionOptions() ViewControllerTransitionOptions { - rv := objc.Call[ViewControllerTransitionOptions](t_, objc.Sel("transitionOptions")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428222-tabviewitems?language=objc +func (t_ TabViewController) TabViewItems() []TabViewItem { + rv := objc.Call[[]TabViewItem](t_, objc.Sel("tabViewItems")) return rv } -// The animation options to use when switching between tabs. [Full Topic] +// The array of tab view items used to manage each of the child view controllers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428257-transitionoptions?language=objc -func (t_ TabViewController) SetTransitionOptions(value ViewControllerTransitionOptions) { - objc.Call[objc.Void](t_, objc.Sel("setTransitionOptions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428222-tabviewitems?language=objc +func (t_ TabViewController) SetTabViewItems(value []ITabViewItem) { + objc.Call[objc.Void](t_, objc.Sel("setTabViewItems:"), value) } // The tab view that manages the views of the interface. [Full Topic] @@ -204,6 +209,21 @@ func (t_ TabViewController) SetTabView(value ITabView) { objc.Call[objc.Void](t_, objc.Sel("setTabView:"), value) } +// The animation options to use when switching between tabs. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428257-transitionoptions?language=objc +func (t_ TabViewController) TransitionOptions() ViewControllerTransitionOptions { + rv := objc.Call[ViewControllerTransitionOptions](t_, objc.Sel("transitionOptions")) + return rv +} + +// The animation options to use when switching between tabs. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428257-transitionoptions?language=objc +func (t_ TabViewController) SetTransitionOptions(value ViewControllerTransitionOptions) { + objc.Call[objc.Void](t_, objc.Sel("setTransitionOptions:"), value) +} + // The index of the selected tab. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428220-selectedtabviewitemindex?language=objc @@ -218,48 +238,3 @@ func (t_ TabViewController) SelectedTabViewItemIndex() int { func (t_ TabViewController) SetSelectedTabViewItemIndex(value int) { objc.Call[objc.Void](t_, objc.Sel("setSelectedTabViewItemIndex:"), value) } - -// A Boolean value indicating whether the tab view controller gets its title from the selected child view controller. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428239-canpropagateselectedchildviewcon?language=objc -func (t_ TabViewController) CanPropagateSelectedChildViewControllerTitle() bool { - rv := objc.Call[bool](t_, objc.Sel("canPropagateSelectedChildViewControllerTitle")) - return rv -} - -// A Boolean value indicating whether the tab view controller gets its title from the selected child view controller. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428239-canpropagateselectedchildviewcon?language=objc -func (t_ TabViewController) SetCanPropagateSelectedChildViewControllerTitle(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setCanPropagateSelectedChildViewControllerTitle:"), value) -} - -// The style used to display the tabs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428259-tabstyle?language=objc -func (t_ TabViewController) TabStyle() TabViewControllerTabStyle { - rv := objc.Call[TabViewControllerTabStyle](t_, objc.Sel("tabStyle")) - return rv -} - -// The style used to display the tabs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428259-tabstyle?language=objc -func (t_ TabViewController) SetTabStyle(value TabViewControllerTabStyle) { - objc.Call[objc.Void](t_, objc.Sel("setTabStyle:"), value) -} - -// The array of tab view items used to manage each of the child view controllers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428222-tabviewitems?language=objc -func (t_ TabViewController) TabViewItems() []TabViewItem { - rv := objc.Call[[]TabViewItem](t_, objc.Sel("tabViewItems")) - return rv -} - -// The array of tab view items used to manage each of the child view controllers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428222-tabviewitems?language=objc -func (t_ TabViewController) SetTabViewItems(value []ITabViewItem) { - objc.Call[objc.Void](t_, objc.Sel("setTabViewItems:"), value) -} diff --git a/macos/appkit/tab_view_delegate.gen.go b/macos/appkit/tab_view_delegate.gen.go index 32d7cc92..c38aae96 100644 --- a/macos/appkit/tab_view_delegate.gen.go +++ b/macos/appkit/tab_view_delegate.gen.go @@ -17,22 +17,12 @@ type PTabViewDelegate interface { // optional TabViewDidSelectTabViewItem(tabView TabView, tabViewItem TabViewItem) HasTabViewDidSelectTabViewItem() bool - - // optional - TabViewShouldSelectTabViewItem(tabView TabView, tabViewItem TabViewItem) bool - HasTabViewShouldSelectTabViewItem() bool - - // optional - TabViewWillSelectTabViewItem(tabView TabView, tabViewItem TabViewItem) - HasTabViewWillSelectTabViewItem() bool } // A delegate implementation builder for the [PTabViewDelegate] protocol. type TabViewDelegate struct { _TabViewDidChangeNumberOfTabViewItems func(tabView TabView) _TabViewDidSelectTabViewItem func(tabView TabView, tabViewItem TabViewItem) - _TabViewShouldSelectTabViewItem func(tabView TabView, tabViewItem TabViewItem) bool - _TabViewWillSelectTabViewItem func(tabView TabView, tabViewItem TabViewItem) } func (di *TabViewDelegate) HasTabViewDidChangeNumberOfTabViewItems() bool { @@ -69,40 +59,6 @@ func (di *TabViewDelegate) SetTabViewDidSelectTabViewItem(f func(tabView TabView func (di *TabViewDelegate) TabViewDidSelectTabViewItem(tabView TabView, tabViewItem TabViewItem) { di._TabViewDidSelectTabViewItem(tabView, tabViewItem) } -func (di *TabViewDelegate) HasTabViewShouldSelectTabViewItem() bool { - return di._TabViewShouldSelectTabViewItem != nil -} - -// Invoked just before tabViewItem in tabView is selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewdelegate/1391651-tabview?language=objc -func (di *TabViewDelegate) SetTabViewShouldSelectTabViewItem(f func(tabView TabView, tabViewItem TabViewItem) bool) { - di._TabViewShouldSelectTabViewItem = f -} - -// Invoked just before tabViewItem in tabView is selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewdelegate/1391651-tabview?language=objc -func (di *TabViewDelegate) TabViewShouldSelectTabViewItem(tabView TabView, tabViewItem TabViewItem) bool { - return di._TabViewShouldSelectTabViewItem(tabView, tabViewItem) -} -func (di *TabViewDelegate) HasTabViewWillSelectTabViewItem() bool { - return di._TabViewWillSelectTabViewItem != nil -} - -// Informs the delegate that tabView is about to select tabViewItem. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewdelegate/1391611-tabview?language=objc -func (di *TabViewDelegate) SetTabViewWillSelectTabViewItem(f func(tabView TabView, tabViewItem TabViewItem)) { - di._TabViewWillSelectTabViewItem = f -} - -// Informs the delegate that tabView is about to select tabViewItem. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewdelegate/1391611-tabview?language=objc -func (di *TabViewDelegate) TabViewWillSelectTabViewItem(tabView TabView, tabViewItem TabViewItem) { - di._TabViewWillSelectTabViewItem(tabView, tabViewItem) -} // ensure impl type implements protocol interface var _ PTabViewDelegate = (*TabViewDelegateObject)(nil) @@ -133,26 +89,3 @@ func (t_ TabViewDelegateObject) HasTabViewDidSelectTabViewItem() bool { func (t_ TabViewDelegateObject) TabViewDidSelectTabViewItem(tabView TabView, tabViewItem TabViewItem) { objc.Call[objc.Void](t_, objc.Sel("tabView:didSelectTabViewItem:"), tabView, tabViewItem) } - -func (t_ TabViewDelegateObject) HasTabViewShouldSelectTabViewItem() bool { - return t_.RespondsToSelector(objc.Sel("tabView:shouldSelectTabViewItem:")) -} - -// Invoked just before tabViewItem in tabView is selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewdelegate/1391651-tabview?language=objc -func (t_ TabViewDelegateObject) TabViewShouldSelectTabViewItem(tabView TabView, tabViewItem TabViewItem) bool { - rv := objc.Call[bool](t_, objc.Sel("tabView:shouldSelectTabViewItem:"), tabView, tabViewItem) - return rv -} - -func (t_ TabViewDelegateObject) HasTabViewWillSelectTabViewItem() bool { - return t_.RespondsToSelector(objc.Sel("tabView:willSelectTabViewItem:")) -} - -// Informs the delegate that tabView is about to select tabViewItem. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewdelegate/1391611-tabview?language=objc -func (t_ TabViewDelegateObject) TabViewWillSelectTabViewItem(tabView TabView, tabViewItem TabViewItem) { - objc.Call[objc.Void](t_, objc.Sel("tabView:willSelectTabViewItem:"), tabView, tabViewItem) -} diff --git a/macos/appkit/tab_view_item.gen.go b/macos/appkit/tab_view_item.gen.go index d13c2488..c959b8e1 100644 --- a/macos/appkit/tab_view_item.gen.go +++ b/macos/appkit/tab_view_item.gen.go @@ -19,26 +19,26 @@ type _TabViewItemClass struct { // An interface definition for the [TabViewItem] class. type ITabViewItem interface { objc.IObject - DrawLabelInRect(shouldTruncateLabel bool, labelRect foundation.Rect) SizeOfLabel(computeMin bool) foundation.Size - ViewController() ViewController - SetViewController(value IViewController) + DrawLabelInRect(shouldTruncateLabel bool, labelRect foundation.Rect) Color() Color SetColor(value IColor) + TabView() TabView ToolTip() string SetToolTip(value string) - InitialFirstResponder() View - SetInitialFirstResponder(value IView) - Identifier() objc.Object - SetIdentifier(value objc.IObject) View() View SetView(value IView) - TabView() TabView - Image() Image - SetImage(value IImage) TabState() TabState + ViewController() ViewController + SetViewController(value IViewController) + InitialFirstResponder() View + SetInitialFirstResponder(value IView) Label() string SetLabel(value string) + Image() Image + SetImage(value IImage) + Identifier() objc.Object + SetIdentifier(value objc.IObject) } // An item in a tab view. [Full Topic] @@ -54,18 +54,6 @@ func TabViewItemFrom(ptr unsafe.Pointer) TabViewItem { } } -func (tc _TabViewItemClass) TabViewItemWithViewController(viewController IViewController) TabViewItem { - rv := objc.Call[TabViewItem](tc, objc.Sel("tabViewItemWithViewController:"), viewController) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477509-tabviewitemwithviewcontroller?language=objc -func TabViewItem_TabViewItemWithViewController(viewController IViewController) TabViewItem { - return TabViewItemClass.TabViewItemWithViewController(viewController) -} - func (t_ TabViewItem) InitWithIdentifier(identifier objc.IObject) TabViewItem { rv := objc.Call[TabViewItem](t_, objc.Sel("initWithIdentifier:"), identifier) return rv @@ -80,6 +68,18 @@ func NewTabViewItemWithIdentifier(identifier objc.IObject) TabViewItem { return instance } +func (tc _TabViewItemClass) TabViewItemWithViewController(viewController IViewController) TabViewItem { + rv := objc.Call[TabViewItem](tc, objc.Sel("tabViewItemWithViewController:"), viewController) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477509-tabviewitemwithviewcontroller?language=objc +func TabViewItem_TabViewItemWithViewController(viewController IViewController) TabViewItem { + return TabViewItemClass.TabViewItemWithViewController(viewController) +} + func (tc _TabViewItemClass) Alloc() TabViewItem { rv := objc.Call[TabViewItem](tc, objc.Sel("alloc")) return rv @@ -100,13 +100,6 @@ func (t_ TabViewItem) Init() TabViewItem { return rv } -// Draws the receiver’s label in tabRect, which is the area between the curved end caps. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477523-drawlabel?language=objc -func (t_ TabViewItem) DrawLabelInRect(shouldTruncateLabel bool, labelRect foundation.Rect) { - objc.Call[objc.Void](t_, objc.Sel("drawLabel:inRect:"), shouldTruncateLabel, labelRect) -} - // Calculates the size of the receiver’s label. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477513-sizeoflabel?language=objc @@ -115,19 +108,11 @@ func (t_ TabViewItem) SizeOfLabel(computeMin bool) foundation.Size { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477521-viewcontroller?language=objc -func (t_ TabViewItem) ViewController() ViewController { - rv := objc.Call[ViewController](t_, objc.Sel("viewController")) - return rv -} - -// [Full Topic] +// Draws the receiver’s label in tabRect, which is the area between the curved end caps. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477521-viewcontroller?language=objc -func (t_ TabViewItem) SetViewController(value IViewController) { - objc.Call[objc.Void](t_, objc.Sel("setViewController:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477523-drawlabel?language=objc +func (t_ TabViewItem) DrawLabelInRect(shouldTruncateLabel bool, labelRect foundation.Rect) { + objc.Call[objc.Void](t_, objc.Sel("drawLabel:inRect:"), shouldTruncateLabel, labelRect) } // Sets the background color for content in the view. [Full Topic] @@ -145,6 +130,14 @@ func (t_ TabViewItem) SetColor(value IColor) { objc.Call[objc.Void](t_, objc.Sel("setColor:"), value) } +// Returns the parent tab view for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477535-tabview?language=objc +func (t_ TabViewItem) TabView() TabView { + rv := objc.Call[TabView](t_, objc.Sel("tabView")) + return rv +} + // Sets the tooltip displayed for the tab view item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477515-tooltip?language=objc @@ -160,36 +153,6 @@ func (t_ TabViewItem) SetToolTip(value string) { objc.Call[objc.Void](t_, objc.Sel("setToolTip:"), value) } -// Sets the initial first responder for the view associated with the receiver (the view that is displayed when a user clicks on the tab) to view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477541-initialfirstresponder?language=objc -func (t_ TabViewItem) InitialFirstResponder() View { - rv := objc.Call[View](t_, objc.Sel("initialFirstResponder")) - return rv -} - -// Sets the initial first responder for the view associated with the receiver (the view that is displayed when a user clicks on the tab) to view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477541-initialfirstresponder?language=objc -func (t_ TabViewItem) SetInitialFirstResponder(value IView) { - objc.Call[objc.Void](t_, objc.Sel("setInitialFirstResponder:"), value) -} - -// Sets the receiver’s optional identifier object to identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477529-identifier?language=objc -func (t_ TabViewItem) Identifier() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("identifier")) - return rv -} - -// Sets the receiver’s optional identifier object to identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477529-identifier?language=objc -func (t_ TabViewItem) SetIdentifier(value objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setIdentifier:"), value) -} - // Sets the view associated with the receiver to view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477537-view?language=objc @@ -205,37 +168,44 @@ func (t_ TabViewItem) SetView(value IView) { objc.Call[objc.Void](t_, objc.Sel("setView:"), value) } -// Returns the parent tab view for the receiver. [Full Topic] +// Returns the current display state of the tab associated with the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477535-tabview?language=objc -func (t_ TabViewItem) TabView() TabView { - rv := objc.Call[TabView](t_, objc.Sel("tabView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477539-tabstate?language=objc +func (t_ TabViewItem) TabState() TabState { + rv := objc.Call[TabState](t_, objc.Sel("tabState")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477527-image?language=objc -func (t_ TabViewItem) Image() Image { - rv := objc.Call[Image](t_, objc.Sel("image")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477521-viewcontroller?language=objc +func (t_ TabViewItem) ViewController() ViewController { + rv := objc.Call[ViewController](t_, objc.Sel("viewController")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477527-image?language=objc -func (t_ TabViewItem) SetImage(value IImage) { - objc.Call[objc.Void](t_, objc.Sel("setImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477521-viewcontroller?language=objc +func (t_ TabViewItem) SetViewController(value IViewController) { + objc.Call[objc.Void](t_, objc.Sel("setViewController:"), value) } -// Returns the current display state of the tab associated with the receiver. [Full Topic] +// Sets the initial first responder for the view associated with the receiver (the view that is displayed when a user clicks on the tab) to view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477539-tabstate?language=objc -func (t_ TabViewItem) TabState() TabState { - rv := objc.Call[TabState](t_, objc.Sel("tabState")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477541-initialfirstresponder?language=objc +func (t_ TabViewItem) InitialFirstResponder() View { + rv := objc.Call[View](t_, objc.Sel("initialFirstResponder")) return rv } +// Sets the initial first responder for the view associated with the receiver (the view that is displayed when a user clicks on the tab) to view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477541-initialfirstresponder?language=objc +func (t_ TabViewItem) SetInitialFirstResponder(value IView) { + objc.Call[objc.Void](t_, objc.Sel("setInitialFirstResponder:"), value) +} + // Sets the label text for the receiver to label. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477542-label?language=objc @@ -250,3 +220,33 @@ func (t_ TabViewItem) Label() string { func (t_ TabViewItem) SetLabel(value string) { objc.Call[objc.Void](t_, objc.Sel("setLabel:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477527-image?language=objc +func (t_ TabViewItem) Image() Image { + rv := objc.Call[Image](t_, objc.Sel("image")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477527-image?language=objc +func (t_ TabViewItem) SetImage(value IImage) { + objc.Call[objc.Void](t_, objc.Sel("setImage:"), value) +} + +// Sets the receiver’s optional identifier object to identifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477529-identifier?language=objc +func (t_ TabViewItem) Identifier() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("identifier")) + return rv +} + +// Sets the receiver’s optional identifier object to identifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477529-identifier?language=objc +func (t_ TabViewItem) SetIdentifier(value objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setIdentifier:"), value) +} diff --git a/macos/appkit/table_cell_view.gen.go b/macos/appkit/table_cell_view.gen.go index 1562f679..348a1b6b 100644 --- a/macos/appkit/table_cell_view.gen.go +++ b/macos/appkit/table_cell_view.gen.go @@ -19,17 +19,17 @@ type _TableCellViewClass struct { // An interface definition for the [TableCellView] class. type ITableCellView interface { IView - ObjectValue() objc.Object - SetObjectValue(value objc.IObject) BackgroundStyle() BackgroundStyle SetBackgroundStyle(value BackgroundStyle) - DraggingImageComponents() []DraggingImageComponent - ImageView() ImageView - SetImageView(value IImageView) RowSizeStyle() TableViewRowSizeStyle SetRowSizeStyle(value TableViewRowSizeStyle) TextField() TextField SetTextField(value ITextField) + ObjectValue() objc.Object + SetObjectValue(value objc.IObject) + DraggingImageComponents() []DraggingImageComponent + ImageView() ImageView + SetImageView(value IImageView) } // A reusable container view shown for a particular cell in a table view that uses rows for content. [Full Topic] @@ -79,21 +79,6 @@ func NewTableCellViewWithFrame(frameRect foundation.Rect) TableCellView { return instance } -// The object that represents the cell data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483204-objectvalue?language=objc -func (t_ TableCellView) ObjectValue() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("objectValue")) - return rv -} - -// The object that represents the cell data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483204-objectvalue?language=objc -func (t_ TableCellView) SetObjectValue(value objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setObjectValue:"), value) -} - // This property is automatically set by the enclosing row view to let this view know what its background looks like. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483206-backgroundstyle?language=objc @@ -109,29 +94,6 @@ func (t_ TableCellView) SetBackgroundStyle(value BackgroundStyle) { objc.Call[objc.Void](t_, objc.Sel("setBackgroundStyle:"), value) } -// Returns dragging images for the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483199-draggingimagecomponents?language=objc -func (t_ TableCellView) DraggingImageComponents() []DraggingImageComponent { - rv := objc.Call[[]DraggingImageComponent](t_, objc.Sel("draggingImageComponents")) - return rv -} - -// Image displayed by the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483213-imageview?language=objc -func (t_ TableCellView) ImageView() ImageView { - rv := objc.Call[ImageView](t_, objc.Sel("imageView")) - return rv -} - -// Image displayed by the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483213-imageview?language=objc -func (t_ TableCellView) SetImageView(value IImageView) { - objc.Call[objc.Void](t_, objc.Sel("setImageView:"), value) -} - // Returns the row size style. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483211-rowsizestyle?language=objc @@ -161,3 +123,41 @@ func (t_ TableCellView) TextField() TextField { func (t_ TableCellView) SetTextField(value ITextField) { objc.Call[objc.Void](t_, objc.Sel("setTextField:"), value) } + +// The object that represents the cell data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483204-objectvalue?language=objc +func (t_ TableCellView) ObjectValue() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("objectValue")) + return rv +} + +// The object that represents the cell data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483204-objectvalue?language=objc +func (t_ TableCellView) SetObjectValue(value objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setObjectValue:"), value) +} + +// Returns dragging images for the cell. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483199-draggingimagecomponents?language=objc +func (t_ TableCellView) DraggingImageComponents() []DraggingImageComponent { + rv := objc.Call[[]DraggingImageComponent](t_, objc.Sel("draggingImageComponents")) + return rv +} + +// Image displayed by the cell. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483213-imageview?language=objc +func (t_ TableCellView) ImageView() ImageView { + rv := objc.Call[ImageView](t_, objc.Sel("imageView")) + return rv +} + +// Image displayed by the cell. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483213-imageview?language=objc +func (t_ TableCellView) SetImageView(value IImageView) { + objc.Call[objc.Void](t_, objc.Sel("setImageView:"), value) +} diff --git a/macos/appkit/table_column.gen.go b/macos/appkit/table_column.gen.go index 5db6c396..92d4fe26 100644 --- a/macos/appkit/table_column.gen.go +++ b/macos/appkit/table_column.gen.go @@ -20,30 +20,30 @@ type _TableColumnClass struct { type ITableColumn interface { objc.IObject SizeToFit() - Title() string - SetTitle(value string) + Width() float64 + SetWidth(value float64) IsHidden() bool SetHidden(value bool) - ResizingMask() TableColumnResizingOptions - SetResizingMask(value TableColumnResizingOptions) + IsEditable() bool + SetEditable(value bool) + MinWidth() float64 + SetMinWidth(value float64) HeaderToolTip() string SetHeaderToolTip(value string) - SortDescriptorPrototype() foundation.SortDescriptor - SetSortDescriptorPrototype(value foundation.ISortDescriptor) + HeaderCell() TableHeaderCell + SetHeaderCell(value ITableHeaderCell) MaxWidth() float64 SetMaxWidth(value float64) - Identifier() UserInterfaceItemIdentifier - SetIdentifier(value UserInterfaceItemIdentifier) TableView() TableView SetTableView(value ITableView) - HeaderCell() TableHeaderCell - SetHeaderCell(value ITableHeaderCell) - MinWidth() float64 - SetMinWidth(value float64) - IsEditable() bool - SetEditable(value bool) - Width() float64 - SetWidth(value float64) + Title() string + SetTitle(value string) + ResizingMask() TableColumnResizingOptions + SetResizingMask(value TableColumnResizingOptions) + Identifier() UserInterfaceItemIdentifier + SetIdentifier(value UserInterfaceItemIdentifier) + SortDescriptorPrototype() foundation.SortDescriptor + SetSortDescriptorPrototype(value foundation.ISortDescriptor) } // The display characteristics and identifier for a column in a table view. [Full Topic] @@ -100,19 +100,19 @@ func (t_ TableColumn) SizeToFit() { objc.Call[objc.Void](t_, objc.Sel("sizeToFit")) } -// The title of the table column’s header. [Full Topic] +// The table column’s width, in points. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1526875-title?language=objc -func (t_ TableColumn) Title() string { - rv := objc.Call[string](t_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1528774-width?language=objc +func (t_ TableColumn) Width() float64 { + rv := objc.Call[float64](t_, objc.Sel("width")) return rv } -// The title of the table column’s header. [Full Topic] +// The table column’s width, in points. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1526875-title?language=objc -func (t_ TableColumn) SetTitle(value string) { - objc.Call[objc.Void](t_, objc.Sel("setTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1528774-width?language=objc +func (t_ TableColumn) SetWidth(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) } // A Boolean that indicates whether the table column is hidden. [Full Topic] @@ -130,19 +130,34 @@ func (t_ TableColumn) SetHidden(value bool) { objc.Call[objc.Void](t_, objc.Sel("setHidden:"), value) } -// The table column’s resizing mask. [Full Topic] +// A Boolean that indicates whether a cell-based table’s column cells are user editable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1529591-resizingmask?language=objc -func (t_ TableColumn) ResizingMask() TableColumnResizingOptions { - rv := objc.Call[TableColumnResizingOptions](t_, objc.Sel("resizingMask")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1528412-editable?language=objc +func (t_ TableColumn) IsEditable() bool { + rv := objc.Call[bool](t_, objc.Sel("isEditable")) return rv } -// The table column’s resizing mask. [Full Topic] +// A Boolean that indicates whether a cell-based table’s column cells are user editable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1529591-resizingmask?language=objc -func (t_ TableColumn) SetResizingMask(value TableColumnResizingOptions) { - objc.Call[objc.Void](t_, objc.Sel("setResizingMask:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1528412-editable?language=objc +func (t_ TableColumn) SetEditable(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setEditable:"), value) +} + +// The table column’s minimum width, in points. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1525126-minwidth?language=objc +func (t_ TableColumn) MinWidth() float64 { + rv := objc.Call[float64](t_, objc.Sel("minWidth")) + return rv +} + +// The table column’s minimum width, in points. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1525126-minwidth?language=objc +func (t_ TableColumn) SetMinWidth(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setMinWidth:"), value) } // The string that’s displayed in a help tag over the table column header. [Full Topic] @@ -160,19 +175,19 @@ func (t_ TableColumn) SetHeaderToolTip(value string) { objc.Call[objc.Void](t_, objc.Sel("setHeaderToolTip:"), value) } -// The table column’s sort descriptor prototype. [Full Topic] +// The cell used to draw the table column’s header. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1534663-sortdescriptorprototype?language=objc -func (t_ TableColumn) SortDescriptorPrototype() foundation.SortDescriptor { - rv := objc.Call[foundation.SortDescriptor](t_, objc.Sel("sortDescriptorPrototype")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1525137-headercell?language=objc +func (t_ TableColumn) HeaderCell() TableHeaderCell { + rv := objc.Call[TableHeaderCell](t_, objc.Sel("headerCell")) return rv } -// The table column’s sort descriptor prototype. [Full Topic] +// The cell used to draw the table column’s header. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1534663-sortdescriptorprototype?language=objc -func (t_ TableColumn) SetSortDescriptorPrototype(value foundation.ISortDescriptor) { - objc.Call[objc.Void](t_, objc.Sel("setSortDescriptorPrototype:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1525137-headercell?language=objc +func (t_ TableColumn) SetHeaderCell(value ITableHeaderCell) { + objc.Call[objc.Void](t_, objc.Sel("setHeaderCell:"), value) } // The table column’s maximum width, in points. [Full Topic] @@ -190,21 +205,6 @@ func (t_ TableColumn) SetMaxWidth(value float64) { objc.Call[objc.Void](t_, objc.Sel("setMaxWidth:"), value) } -// The identifier string for the table column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1531113-identifier?language=objc -func (t_ TableColumn) Identifier() UserInterfaceItemIdentifier { - rv := objc.Call[UserInterfaceItemIdentifier](t_, objc.Sel("identifier")) - return rv -} - -// The identifier string for the table column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1531113-identifier?language=objc -func (t_ TableColumn) SetIdentifier(value UserInterfaceItemIdentifier) { - objc.Call[objc.Void](t_, objc.Sel("setIdentifier:"), value) -} - // The table view that contains the table column. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1535908-tableview?language=objc @@ -220,62 +220,62 @@ func (t_ TableColumn) SetTableView(value ITableView) { objc.Call[objc.Void](t_, objc.Sel("setTableView:"), value) } -// The cell used to draw the table column’s header. [Full Topic] +// The title of the table column’s header. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1525137-headercell?language=objc -func (t_ TableColumn) HeaderCell() TableHeaderCell { - rv := objc.Call[TableHeaderCell](t_, objc.Sel("headerCell")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1526875-title?language=objc +func (t_ TableColumn) Title() string { + rv := objc.Call[string](t_, objc.Sel("title")) return rv } -// The cell used to draw the table column’s header. [Full Topic] +// The title of the table column’s header. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1525137-headercell?language=objc -func (t_ TableColumn) SetHeaderCell(value ITableHeaderCell) { - objc.Call[objc.Void](t_, objc.Sel("setHeaderCell:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1526875-title?language=objc +func (t_ TableColumn) SetTitle(value string) { + objc.Call[objc.Void](t_, objc.Sel("setTitle:"), value) } -// The table column’s minimum width, in points. [Full Topic] +// The table column’s resizing mask. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1525126-minwidth?language=objc -func (t_ TableColumn) MinWidth() float64 { - rv := objc.Call[float64](t_, objc.Sel("minWidth")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1529591-resizingmask?language=objc +func (t_ TableColumn) ResizingMask() TableColumnResizingOptions { + rv := objc.Call[TableColumnResizingOptions](t_, objc.Sel("resizingMask")) return rv } -// The table column’s minimum width, in points. [Full Topic] +// The table column’s resizing mask. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1525126-minwidth?language=objc -func (t_ TableColumn) SetMinWidth(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setMinWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1529591-resizingmask?language=objc +func (t_ TableColumn) SetResizingMask(value TableColumnResizingOptions) { + objc.Call[objc.Void](t_, objc.Sel("setResizingMask:"), value) } -// A Boolean that indicates whether a cell-based table’s column cells are user editable. [Full Topic] +// The identifier string for the table column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1528412-editable?language=objc -func (t_ TableColumn) IsEditable() bool { - rv := objc.Call[bool](t_, objc.Sel("isEditable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1531113-identifier?language=objc +func (t_ TableColumn) Identifier() UserInterfaceItemIdentifier { + rv := objc.Call[UserInterfaceItemIdentifier](t_, objc.Sel("identifier")) return rv } -// A Boolean that indicates whether a cell-based table’s column cells are user editable. [Full Topic] +// The identifier string for the table column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1528412-editable?language=objc -func (t_ TableColumn) SetEditable(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setEditable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1531113-identifier?language=objc +func (t_ TableColumn) SetIdentifier(value UserInterfaceItemIdentifier) { + objc.Call[objc.Void](t_, objc.Sel("setIdentifier:"), value) } -// The table column’s width, in points. [Full Topic] +// The table column’s sort descriptor prototype. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1528774-width?language=objc -func (t_ TableColumn) Width() float64 { - rv := objc.Call[float64](t_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1534663-sortdescriptorprototype?language=objc +func (t_ TableColumn) SortDescriptorPrototype() foundation.SortDescriptor { + rv := objc.Call[foundation.SortDescriptor](t_, objc.Sel("sortDescriptorPrototype")) return rv } -// The table column’s width, in points. [Full Topic] +// The table column’s sort descriptor prototype. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1528774-width?language=objc -func (t_ TableColumn) SetWidth(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecolumn/1534663-sortdescriptorprototype?language=objc +func (t_ TableColumn) SetSortDescriptorPrototype(value foundation.ISortDescriptor) { + objc.Call[objc.Void](t_, objc.Sel("setSortDescriptorPrototype:"), value) } diff --git a/macos/appkit/table_header_view.gen.go b/macos/appkit/table_header_view.gen.go index 34495db2..639b874f 100644 --- a/macos/appkit/table_header_view.gen.go +++ b/macos/appkit/table_header_view.gen.go @@ -21,11 +21,11 @@ type ITableHeaderView interface { IView ColumnAtPoint(point foundation.Point) int HeaderRectOfColumn(column int) foundation.Rect - TableView() TableView - SetTableView(value ITableView) DraggedDistance() float64 - ResizedColumn() int DraggedColumn() int + ResizedColumn() int + TableView() TableView + SetTableView(value ITableView) } // An object that draws headers over a table view's columns and handles mouse events in those headers. [Full Topic] @@ -91,21 +91,6 @@ func (t_ TableHeaderView) HeaderRectOfColumn(column int) foundation.Rect { return rv } -// The NSTableView instance that this table header view belongs to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableheaderview/1535730-tableview?language=objc -func (t_ TableHeaderView) TableView() TableView { - rv := objc.Call[TableView](t_, objc.Sel("tableView")) - return rv -} - -// The NSTableView instance that this table header view belongs to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableheaderview/1535730-tableview?language=objc -func (t_ TableHeaderView) SetTableView(value ITableView) { - objc.Call[objc.Void](t_, objc.Sel("setTableView:"), value) -} - // The horizontal distance that the user has dragged a column. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableheaderview/1527836-draggeddistance?language=objc @@ -114,6 +99,14 @@ func (t_ TableHeaderView) DraggedDistance() float64 { return rv } +// The index of the column that the user is dragging. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableheaderview/1534458-draggedcolumn?language=objc +func (t_ TableHeaderView) DraggedColumn() int { + rv := objc.Call[int](t_, objc.Sel("draggedColumn")) + return rv +} + // The index of the column that the user is resizing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableheaderview/1528247-resizedcolumn?language=objc @@ -122,10 +115,17 @@ func (t_ TableHeaderView) ResizedColumn() int { return rv } -// The index of the column that the user is dragging. [Full Topic] +// The NSTableView instance that this table header view belongs to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableheaderview/1534458-draggedcolumn?language=objc -func (t_ TableHeaderView) DraggedColumn() int { - rv := objc.Call[int](t_, objc.Sel("draggedColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableheaderview/1535730-tableview?language=objc +func (t_ TableHeaderView) TableView() TableView { + rv := objc.Call[TableView](t_, objc.Sel("tableView")) return rv } + +// The NSTableView instance that this table header view belongs to. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableheaderview/1535730-tableview?language=objc +func (t_ TableHeaderView) SetTableView(value ITableView) { + objc.Call[objc.Void](t_, objc.Sel("setTableView:"), value) +} diff --git a/macos/appkit/table_row_view.gen.go b/macos/appkit/table_row_view.gen.go index e6ade0c7..f38181f7 100644 --- a/macos/appkit/table_row_view.gen.go +++ b/macos/appkit/table_row_view.gen.go @@ -19,35 +19,35 @@ type _TableRowViewClass struct { // An interface definition for the [TableRowView] class. type ITableRowView interface { IView - DrawDraggingDestinationFeedbackInRect(dirtyRect foundation.Rect) - DrawBackgroundInRect(dirtyRect foundation.Rect) ViewAtColumn(column int) objc.Object + DrawBackgroundInRect(dirtyRect foundation.Rect) DrawSeparatorInRect(dirtyRect foundation.Rect) DrawSelectionInRect(dirtyRect foundation.Rect) - NumberOfColumns() int + DrawDraggingDestinationFeedbackInRect(dirtyRect foundation.Rect) + IsPreviousRowSelected() bool + SetPreviousRowSelected(value bool) + IsTargetForDropOperation() bool + SetTargetForDropOperation(value bool) + IsEmphasized() bool + SetEmphasized(value bool) + IsSelected() bool + SetSelected(value bool) + IsFloating() bool + SetFloating(value bool) + BackgroundColor() Color + SetBackgroundColor(value IColor) IsGroupRowStyle() bool SetGroupRowStyle(value bool) - DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle - SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) InteriorBackgroundStyle() BackgroundStyle - IsFloating() bool - SetFloating(value bool) - IsNextRowSelected() bool - SetNextRowSelected(value bool) SelectionHighlightStyle() TableViewSelectionHighlightStyle SetSelectionHighlightStyle(value TableViewSelectionHighlightStyle) IndentationForDropOperation() float64 SetIndentationForDropOperation(value float64) - IsTargetForDropOperation() bool - SetTargetForDropOperation(value bool) - IsEmphasized() bool - SetEmphasized(value bool) - BackgroundColor() Color - SetBackgroundColor(value IColor) - IsPreviousRowSelected() bool - SetPreviousRowSelected(value bool) - IsSelected() bool - SetSelected(value bool) + NumberOfColumns() int + IsNextRowSelected() bool + SetNextRowSelected(value bool) + DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle + SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) } // The view shown for a row in a table view. [Full Topic] @@ -97,11 +97,12 @@ func NewTableRowViewWithFrame(frameRect foundation.Rect) TableRowView { return instance } -// Draws the row’s dragging destination feedback when the entire row is a drop target. [Full Topic] +// Provides access to the given view at a particular column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1528434-drawdraggingdestinationfeedbacki?language=objc -func (t_ TableRowView) DrawDraggingDestinationFeedbackInRect(dirtyRect foundation.Rect) { - objc.Call[objc.Void](t_, objc.Sel("drawDraggingDestinationFeedbackInRect:"), dirtyRect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1534440-viewatcolumn?language=objc +func (t_ TableRowView) ViewAtColumn(column int) objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("viewAtColumn:"), column) + return rv } // Draws the background of the row in the rectangle. [Full Topic] @@ -111,14 +112,6 @@ func (t_ TableRowView) DrawBackgroundInRect(dirtyRect foundation.Rect) { objc.Call[objc.Void](t_, objc.Sel("drawBackgroundInRect:"), dirtyRect) } -// Provides access to the given view at a particular column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1534440-viewatcolumn?language=objc -func (t_ TableRowView) ViewAtColumn(column int) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("viewAtColumn:"), column) - return rv -} - // Draws the horizontal separator between table rows. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1525167-drawseparatorinrect?language=objc @@ -133,52 +126,73 @@ func (t_ TableRowView) DrawSelectionInRect(dirtyRect foundation.Rect) { objc.Call[objc.Void](t_, objc.Sel("drawSelectionInRect:"), dirtyRect) } -// Returns the number of columns represented by views in the table row view. [Full Topic] +// Draws the row’s dragging destination feedback when the entire row is a drop target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1525610-numberofcolumns?language=objc -func (t_ TableRowView) NumberOfColumns() int { - rv := objc.Call[int](t_, objc.Sel("numberOfColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1528434-drawdraggingdestinationfeedbacki?language=objc +func (t_ TableRowView) DrawDraggingDestinationFeedbackInRect(dirtyRect foundation.Rect) { + objc.Call[objc.Void](t_, objc.Sel("drawDraggingDestinationFeedbackInRect:"), dirtyRect) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1535313-previousrowselected?language=objc +func (t_ TableRowView) IsPreviousRowSelected() bool { + rv := objc.Call[bool](t_, objc.Sel("isPreviousRowSelected")) return rv } -// Specifies whether this row view is a group row. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1530499-grouprowstyle?language=objc -func (t_ TableRowView) IsGroupRowStyle() bool { - rv := objc.Call[bool](t_, objc.Sel("isGroupRowStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1535313-previousrowselected?language=objc +func (t_ TableRowView) SetPreviousRowSelected(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setPreviousRowSelected:"), value) +} + +// Specifies whether this row will draw a drop indicator based on the current dragging feedback style. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1533914-targetfordropoperation?language=objc +func (t_ TableRowView) IsTargetForDropOperation() bool { + rv := objc.Call[bool](t_, objc.Sel("isTargetForDropOperation")) return rv } -// Specifies whether this row view is a group row. [Full Topic] +// Specifies whether this row will draw a drop indicator based on the current dragging feedback style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1530499-grouprowstyle?language=objc -func (t_ TableRowView) SetGroupRowStyle(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setGroupRowStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1533914-targetfordropoperation?language=objc +func (t_ TableRowView) SetTargetForDropOperation(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setTargetForDropOperation:"), value) } -// Specifies the dragging destination feedback style. [Full Topic] +// Determines whether the row will draw with the alternate or secondary color (unless overridden). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1525012-draggingdestinationfeedbackstyle?language=objc -func (t_ TableRowView) DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle { - rv := objc.Call[TableViewDraggingDestinationFeedbackStyle](t_, objc.Sel("draggingDestinationFeedbackStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1526258-emphasized?language=objc +func (t_ TableRowView) IsEmphasized() bool { + rv := objc.Call[bool](t_, objc.Sel("isEmphasized")) return rv } -// Specifies the dragging destination feedback style. [Full Topic] +// Determines whether the row will draw with the alternate or secondary color (unless overridden). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1525012-draggingdestinationfeedbackstyle?language=objc -func (t_ TableRowView) SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) { - objc.Call[objc.Void](t_, objc.Sel("setDraggingDestinationFeedbackStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1526258-emphasized?language=objc +func (t_ TableRowView) SetEmphasized(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setEmphasized:"), value) } -// Specifies how the subviews should draw. [Full Topic] +// Determines whether the row is selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1535905-interiorbackgroundstyle?language=objc -func (t_ TableRowView) InteriorBackgroundStyle() BackgroundStyle { - rv := objc.Call[BackgroundStyle](t_, objc.Sel("interiorBackgroundStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1529508-selected?language=objc +func (t_ TableRowView) IsSelected() bool { + rv := objc.Call[bool](t_, objc.Sel("isSelected")) return rv } +// Determines whether the row is selected. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1529508-selected?language=objc +func (t_ TableRowView) SetSelected(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setSelected:"), value) +} + // Specifies whether the row is drawn using the floating style. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1534291-floating?language=objc @@ -194,19 +208,42 @@ func (t_ TableRowView) SetFloating(value bool) { objc.Call[objc.Void](t_, objc.Sel("setFloating:"), value) } -// [Full Topic] +// The background color of the row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1529083-nextrowselected?language=objc -func (t_ TableRowView) IsNextRowSelected() bool { - rv := objc.Call[bool](t_, objc.Sel("isNextRowSelected")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1534057-backgroundcolor?language=objc +func (t_ TableRowView) BackgroundColor() Color { + rv := objc.Call[Color](t_, objc.Sel("backgroundColor")) return rv } -// [Full Topic] +// The background color of the row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1529083-nextrowselected?language=objc -func (t_ TableRowView) SetNextRowSelected(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setNextRowSelected:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1534057-backgroundcolor?language=objc +func (t_ TableRowView) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), value) +} + +// Specifies whether this row view is a group row. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1530499-grouprowstyle?language=objc +func (t_ TableRowView) IsGroupRowStyle() bool { + rv := objc.Call[bool](t_, objc.Sel("isGroupRowStyle")) + return rv +} + +// Specifies whether this row view is a group row. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1530499-grouprowstyle?language=objc +func (t_ TableRowView) SetGroupRowStyle(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setGroupRowStyle:"), value) +} + +// Specifies how the subviews should draw. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1535905-interiorbackgroundstyle?language=objc +func (t_ TableRowView) InteriorBackgroundStyle() BackgroundStyle { + rv := objc.Call[BackgroundStyle](t_, objc.Sel("interiorBackgroundStyle")) + return rv } // Specifies the selection highlight style. [Full Topic] @@ -239,77 +276,40 @@ func (t_ TableRowView) SetIndentationForDropOperation(value float64) { objc.Call[objc.Void](t_, objc.Sel("setIndentationForDropOperation:"), value) } -// Specifies whether this row will draw a drop indicator based on the current dragging feedback style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1533914-targetfordropoperation?language=objc -func (t_ TableRowView) IsTargetForDropOperation() bool { - rv := objc.Call[bool](t_, objc.Sel("isTargetForDropOperation")) - return rv -} - -// Specifies whether this row will draw a drop indicator based on the current dragging feedback style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1533914-targetfordropoperation?language=objc -func (t_ TableRowView) SetTargetForDropOperation(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setTargetForDropOperation:"), value) -} - -// Determines whether the row will draw with the alternate or secondary color (unless overridden). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1526258-emphasized?language=objc -func (t_ TableRowView) IsEmphasized() bool { - rv := objc.Call[bool](t_, objc.Sel("isEmphasized")) - return rv -} - -// Determines whether the row will draw with the alternate or secondary color (unless overridden). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1526258-emphasized?language=objc -func (t_ TableRowView) SetEmphasized(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setEmphasized:"), value) -} - -// The background color of the row. [Full Topic] +// Returns the number of columns represented by views in the table row view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1534057-backgroundcolor?language=objc -func (t_ TableRowView) BackgroundColor() Color { - rv := objc.Call[Color](t_, objc.Sel("backgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1525610-numberofcolumns?language=objc +func (t_ TableRowView) NumberOfColumns() int { + rv := objc.Call[int](t_, objc.Sel("numberOfColumns")) return rv } -// The background color of the row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1534057-backgroundcolor?language=objc -func (t_ TableRowView) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), value) -} - // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1535313-previousrowselected?language=objc -func (t_ TableRowView) IsPreviousRowSelected() bool { - rv := objc.Call[bool](t_, objc.Sel("isPreviousRowSelected")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1529083-nextrowselected?language=objc +func (t_ TableRowView) IsNextRowSelected() bool { + rv := objc.Call[bool](t_, objc.Sel("isNextRowSelected")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1535313-previousrowselected?language=objc -func (t_ TableRowView) SetPreviousRowSelected(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setPreviousRowSelected:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1529083-nextrowselected?language=objc +func (t_ TableRowView) SetNextRowSelected(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setNextRowSelected:"), value) } -// Determines whether the row is selected. [Full Topic] +// Specifies the dragging destination feedback style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1529508-selected?language=objc -func (t_ TableRowView) IsSelected() bool { - rv := objc.Call[bool](t_, objc.Sel("isSelected")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1525012-draggingdestinationfeedbackstyle?language=objc +func (t_ TableRowView) DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle { + rv := objc.Call[TableViewDraggingDestinationFeedbackStyle](t_, objc.Sel("draggingDestinationFeedbackStyle")) return rv } -// Determines whether the row is selected. [Full Topic] +// Specifies the dragging destination feedback style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1529508-selected?language=objc -func (t_ TableRowView) SetSelected(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setSelected:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstablerowview/1525012-draggingdestinationfeedbackstyle?language=objc +func (t_ TableRowView) SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) { + objc.Call[objc.Void](t_, objc.Sel("setDraggingDestinationFeedbackStyle:"), value) } diff --git a/macos/appkit/table_view.gen.go b/macos/appkit/table_view.gen.go index 90054f16..e4a415b0 100644 --- a/macos/appkit/table_view.gen.go +++ b/macos/appkit/table_view.gen.go @@ -19,142 +19,142 @@ type _TableViewClass struct { // An interface definition for the [TableView] class. type ITableView interface { IControl - NoteNumberOfRowsChanged() - Tile() + DrawBackgroundInClipRect(clipRect foundation.Rect) + ScrollRowToVisible(row int) + ReloadDataForRowIndexesColumnIndexes(rowIndexes foundation.IIndexSet, columnIndexes foundation.IIndexSet) RegisterNibForIdentifier(nib INib, identifier UserInterfaceItemIdentifier) - DragImageForRowsWithIndexesTableColumnsEventOffset(dragRows foundation.IIndexSet, tableColumns []ITableColumn, dragEvent IEvent, dragImageOffset foundation.PointPointer) Image - MoveRowAtIndexToIndex(oldIndex int, newIndex int) - MoveColumnToColumn(oldIndex int, newIndex int) - IndicatorImageInTableColumn(tableColumn ITableColumn) Image - ColumnIndexesInRect(rect foundation.Rect) foundation.IndexSet - DidRemoveRowViewForRow(rowView ITableRowView, row int) - DidAddRowViewForRow(rowView ITableRowView, row int) - DeselectAll(sender objc.IObject) - RectOfColumn(column int) foundation.Rect - NoteHeightOfRowsWithIndexesChanged(indexSet foundation.IIndexSet) - EndUpdates() - ColumnWithIdentifier(identifier UserInterfaceItemIdentifier) int - EnumerateAvailableRowViewsUsingBlock(handler func(rowView TableRowView, row int)) + BeginUpdates() DrawRowClipRect(row int, clipRect foundation.Rect) - RowsInRect(rect foundation.Rect) foundation.Range - ReloadDataForRowIndexesColumnIndexes(rowIndexes foundation.IIndexSet, columnIndexes foundation.IIndexSet) - InsertRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) - HighlightSelectionInClipRect(clipRect foundation.Rect) - ReloadData() - RowViewAtRowMakeIfNecessary(row int, makeIfNecessary bool) TableRowView - SelectRowIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) + ViewAtColumnRowMakeIfNecessary(column int, row int, makeIfNecessary bool) View TableColumnWithIdentifier(identifier UserInterfaceItemIdentifier) TableColumn - RemoveRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) + RowForView(view IView) int + SetDropRowDropOperation(row int, dropOperation TableViewDropOperation) + EndUpdates() HideRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, rowAnimation TableViewAnimationOptions) - ViewAtColumnRowMakeIfNecessary(column int, row int, makeIfNecessary bool) View - IsColumnSelected(column int) bool - MakeViewWithIdentifierOwner(identifier UserInterfaceItemIdentifier, owner objc.IObject) View - DeselectRow(row int) + DeselectAll(sender objc.IObject) + DeselectColumn(column int) + RectOfRow(row int) foundation.Rect + ColumnAtPoint(point foundation.Point) int + UnhideRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, rowAnimation TableViewAnimationOptions) + HighlightSelectionInClipRect(clipRect foundation.Rect) + ScrollColumnToVisible(column int) + EnumerateAvailableRowViewsUsingBlock(handler func(rowView TableRowView, row int)) + DidRemoveRowViewForRow(rowView ITableRowView, row int) + EditColumnRowWithEventSelect(column int, row int, event IEvent, select_ bool) DrawGridInClipRect(clipRect foundation.Rect) SelectAll(sender objc.IObject) - SelectColumnIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) - RowForView(view IView) int + IndicatorImageInTableColumn(tableColumn ITableColumn) Image + IsColumnSelected(column int) bool + DeselectRow(row int) + RowsInRect(rect foundation.Rect) foundation.Range SetIndicatorImageInTableColumn(image IImage, tableColumn ITableColumn) + ColumnIndexesInRect(rect foundation.Rect) foundation.IndexSet AddTableColumn(tableColumn ITableColumn) - DrawBackgroundInClipRect(clipRect foundation.Rect) + RemoveRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) + MakeViewWithIdentifierOwner(identifier UserInterfaceItemIdentifier, owner objc.IObject) View + InsertRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) RowAtPoint(point foundation.Point) int - UnhideRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, rowAnimation TableViewAnimationOptions) - EditColumnRowWithEventSelect(column int, row int, event IEvent, select_ bool) - BeginUpdates() - FrameOfCellAtColumnRow(column int, row int) foundation.Rect - IsRowSelected(row int) bool - ColumnAtPoint(point foundation.Point) int + SelectColumnIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) + DragImageForRowsWithIndexesTableColumnsEventOffset(dragRows foundation.IIndexSet, tableColumns []ITableColumn, dragEvent IEvent, dragImageOffset foundation.PointPointer) Image + RectOfColumn(column int) foundation.Rect SizeLastColumnToFit() - ScrollRowToVisible(row int) - RectOfRow(row int) foundation.Rect - ColumnForView(view IView) int - ScrollColumnToVisible(column int) + ColumnWithIdentifier(identifier UserInterfaceItemIdentifier) int + SelectRowIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) + NoteHeightOfRowsWithIndexesChanged(indexSet foundation.IIndexSet) CanDragRowsWithIndexesAtPoint(rowIndexes foundation.IIndexSet, mouseDownPoint foundation.Point) bool - SetDropRowDropOperation(row int, dropOperation TableViewDropOperation) - RemoveTableColumn(tableColumn ITableColumn) - DeselectColumn(column int) SetDraggingSourceOperationMaskForLocal(mask DragOperation, isLocal bool) - SelectionHighlightStyle() TableViewSelectionHighlightStyle - SetSelectionHighlightStyle(value TableViewSelectionHighlightStyle) - GridStyleMask() TableViewGridLineStyle - SetGridStyleMask(value TableViewGridLineStyle) - SelectedRowIndexes() foundation.IndexSet - EffectiveStyle() TableViewStyle - SelectedRow() int - Delegate() TableViewDelegateObject - SetDelegate(value PTableViewDelegate) - SetDelegateObject(valueObject objc.IObject) - SelectedColumnIndexes() foundation.IndexSet - HeaderView() TableHeaderView - SetHeaderView(value ITableHeaderView) + FrameOfCellAtColumnRow(column int, row int) foundation.Rect + RowViewAtRowMakeIfNecessary(row int, makeIfNecessary bool) TableRowView + Tile() + MoveRowAtIndexToIndex(oldIndex int, newIndex int) + ColumnForView(view IView) int + NoteNumberOfRowsChanged() + DidAddRowViewForRow(rowView ITableRowView, row int) + MoveColumnToColumn(oldIndex int, newIndex int) + ReloadData() + IsRowSelected(row int) bool + RemoveTableColumn(tableColumn ITableColumn) + DataSource() TableViewDataSourceObject + SetDataSource(value PTableViewDataSource) + SetDataSourceObject(valueObject objc.IObject) VerticalMotionCanBeginDrag() bool SetVerticalMotionCanBeginDrag(value bool) - NumberOfRows() int + HighlightedTableColumn() TableColumn + SetHighlightedTableColumn(value ITableColumn) + DoubleAction() objc.Selector + SetDoubleAction(value objc.Selector) + EditedRow() int + HiddenRowIndexes() foundation.IndexSet UsesStaticContents() bool SetUsesStaticContents(value bool) - RowActionsVisible() bool - SetRowActionsVisible(value bool) - FloatsGroupRows() bool - SetFloatsGroupRows(value bool) - BackgroundColor() Color - SetBackgroundColor(value IColor) - UsesAlternatingRowBackgroundColors() bool - SetUsesAlternatingRowBackgroundColors(value bool) - HiddenRowIndexes() foundation.IndexSet - AllowsColumnResizing() bool - SetAllowsColumnResizing(value bool) - ColumnAutoresizingStyle() TableViewColumnAutoresizingStyle - SetColumnAutoresizingStyle(value TableViewColumnAutoresizingStyle) AutosaveTableColumns() bool SetAutosaveTableColumns(value bool) - IntercellSpacing() foundation.Size - SetIntercellSpacing(value foundation.Size) - AllowsMultipleSelection() bool - SetAllowsMultipleSelection(value bool) - EditedRow() int - RowHeight() float64 - SetRowHeight(value float64) - DataSource() TableViewDataSourceObject - SetDataSource(value PTableViewDataSource) - SetDataSourceObject(valueObject objc.IObject) - AllowsTypeSelect() bool - SetAllowsTypeSelect(value bool) - HighlightedTableColumn() TableColumn - SetHighlightedTableColumn(value ITableColumn) - ClickedRow() int - ClickedColumn() int - DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle - SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) AllowsEmptySelection() bool SetAllowsEmptySelection(value bool) - NumberOfSelectedRows() int - NumberOfColumns() int - SelectedColumn() int - Style() TableViewStyle - SetStyle(value TableViewStyle) - TableColumns() []TableColumn - UsesAutomaticRowHeights() bool - SetUsesAutomaticRowHeights(value bool) - NumberOfSelectedColumns() int - RegisteredNibsByIdentifier() map[UserInterfaceItemIdentifier]Nib + AllowsColumnResizing() bool + SetAllowsColumnResizing(value bool) + RowHeight() float64 + SetRowHeight(value float64) EditedColumn() int - RowSizeStyle() TableViewRowSizeStyle - SetRowSizeStyle(value TableViewRowSizeStyle) - EffectiveRowSizeStyle() TableViewRowSizeStyle - DoubleAction() objc.Selector - SetDoubleAction(value objc.Selector) - GridColor() Color - SetGridColor(value IColor) AllowsColumnReordering() bool SetAllowsColumnReordering(value bool) + ClickedColumn() int + RowSizeStyle() TableViewRowSizeStyle + SetRowSizeStyle(value TableViewRowSizeStyle) + AllowsTypeSelect() bool + SetAllowsTypeSelect(value bool) SortDescriptors() []foundation.SortDescriptor SetSortDescriptors(value []foundation.ISortDescriptor) - AutosaveName() TableViewAutosaveName - SetAutosaveName(value TableViewAutosaveName) + Style() TableViewStyle + SetStyle(value TableViewStyle) CornerView() View SetCornerView(value IView) + EffectiveRowSizeStyle() TableViewRowSizeStyle + Delegate() TableViewDelegateObject + SetDelegate(value PTableViewDelegate) + SetDelegateObject(valueObject objc.IObject) + BackgroundColor() Color + SetBackgroundColor(value IColor) + AutosaveName() TableViewAutosaveName + SetAutosaveName(value TableViewAutosaveName) + EffectiveStyle() TableViewStyle + UsesAutomaticRowHeights() bool + SetUsesAutomaticRowHeights(value bool) + UsesAlternatingRowBackgroundColors() bool + SetUsesAlternatingRowBackgroundColors(value bool) + NumberOfSelectedRows() int + ClickedRow() int + AllowsMultipleSelection() bool + SetAllowsMultipleSelection(value bool) + SelectedColumn() int + GridStyleMask() TableViewGridLineStyle + SetGridStyleMask(value TableViewGridLineStyle) + SelectedRow() int + SelectionHighlightStyle() TableViewSelectionHighlightStyle + SetSelectionHighlightStyle(value TableViewSelectionHighlightStyle) + RowActionsVisible() bool + SetRowActionsVisible(value bool) + RegisteredNibsByIdentifier() map[UserInterfaceItemIdentifier]Nib + SelectedColumnIndexes() foundation.IndexSet AllowsColumnSelection() bool SetAllowsColumnSelection(value bool) + HeaderView() TableHeaderView + SetHeaderView(value ITableHeaderView) + NumberOfRows() int + FloatsGroupRows() bool + SetFloatsGroupRows(value bool) + SelectedRowIndexes() foundation.IndexSet + IntercellSpacing() foundation.Size + SetIntercellSpacing(value foundation.Size) + NumberOfColumns() int + ColumnAutoresizingStyle() TableViewColumnAutoresizingStyle + SetColumnAutoresizingStyle(value TableViewColumnAutoresizingStyle) + GridColor() Color + SetGridColor(value IColor) + TableColumns() []TableColumn + DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle + SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) + NumberOfSelectedColumns() int } // A set of related records, displayed in rows that represent individual records and columns that represent the attributes of those records. [Full Topic] @@ -204,18 +204,25 @@ func (t_ TableView) Init() TableView { return rv } -// Informs the table view that the number of records in its data source has changed. [Full Topic] +// Draws the background of the table view in the clip rect specified by the rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534147-notenumberofrowschanged?language=objc -func (t_ TableView) NoteNumberOfRowsChanged() { - objc.Call[objc.Void](t_, objc.Sel("noteNumberOfRowsChanged")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528866-drawbackgroundincliprect?language=objc +func (t_ TableView) DrawBackgroundInClipRect(clipRect foundation.Rect) { + objc.Call[objc.Void](t_, objc.Sel("drawBackgroundInClipRect:"), clipRect) } -// Properly sizes the table view and its header view and marks it as needing display. [Full Topic] +// Scrolls the view so the specified row is visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528077-tile?language=objc -func (t_ TableView) Tile() { - objc.Call[objc.Void](t_, objc.Sel("tile")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1529902-scrollrowtovisible?language=objc +func (t_ TableView) ScrollRowToVisible(row int) { + objc.Call[objc.Void](t_, objc.Sel("scrollRowToVisible:"), row) +} + +// Reloads the data for only the specified rows and columns. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527621-reloaddataforrowindexes?language=objc +func (t_ TableView) ReloadDataForRowIndexesColumnIndexes(rowIndexes foundation.IIndexSet, columnIndexes foundation.IIndexSet) { + objc.Call[objc.Void](t_, objc.Sel("reloadDataForRowIndexes:columnIndexes:"), rowIndexes, columnIndexes) } // Registers a NIB for the specified identifier, so that view-based table views can use it to instantiate views. [Full Topic] @@ -225,78 +232,49 @@ func (t_ TableView) RegisterNibForIdentifier(nib INib, identifier UserInterfaceI objc.Call[objc.Void](t_, objc.Sel("registerNib:forIdentifier:"), nib, identifier) } -// Computes and returns an image to use for dragging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526541-dragimageforrowswithindexes?language=objc -func (t_ TableView) DragImageForRowsWithIndexesTableColumnsEventOffset(dragRows foundation.IIndexSet, tableColumns []ITableColumn, dragEvent IEvent, dragImageOffset foundation.PointPointer) Image { - rv := objc.Call[Image](t_, objc.Sel("dragImageForRowsWithIndexes:tableColumns:event:offset:"), dragRows, tableColumns, dragEvent, dragImageOffset) - return rv -} - -// Moves the specified row to the new row location using animation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535835-moverowatindex?language=objc -func (t_ TableView) MoveRowAtIndexToIndex(oldIndex int, newIndex int) { - objc.Call[objc.Void](t_, objc.Sel("moveRowAtIndex:toIndex:"), oldIndex, newIndex) -} - -// Moves the column and heading at the specified index to the new specified index. [Full Topic] +// Begins a group of updates for the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530719-movecolumn?language=objc -func (t_ TableView) MoveColumnToColumn(oldIndex int, newIndex int) { - objc.Call[objc.Void](t_, objc.Sel("moveColumn:toColumn:"), oldIndex, newIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527288-beginupdates?language=objc +func (t_ TableView) BeginUpdates() { + objc.Call[objc.Void](t_, objc.Sel("beginUpdates")) } -// Returns the indicator image of the specified table column. [Full Topic] +// Draws the cells for the row at rowIndex in the columns that intersect clipRect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524846-indicatorimageintablecolumn?language=objc -func (t_ TableView) IndicatorImageInTableColumn(tableColumn ITableColumn) Image { - rv := objc.Call[Image](t_, objc.Sel("indicatorImageInTableColumn:"), tableColumn) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533711-drawrow?language=objc +func (t_ TableView) DrawRowClipRect(row int, clipRect foundation.Rect) { + objc.Call[objc.Void](t_, objc.Sel("drawRow:clipRect:"), row, clipRect) } -// Returns the indexes of the table view’s columns that intersect the specified rectangle. [Full Topic] +// Returns a view at the specified row and column indexes, creating one if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526013-columnindexesinrect?language=objc -func (t_ TableView) ColumnIndexesInRect(rect foundation.Rect) foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](t_, objc.Sel("columnIndexesInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528831-viewatcolumn?language=objc +func (t_ TableView) ViewAtColumnRowMakeIfNecessary(column int, row int, makeIfNecessary bool) View { + rv := objc.Call[View](t_, objc.Sel("viewAtColumn:row:makeIfNecessary:"), column, row, makeIfNecessary) return rv } -// Invoked when a row view is removed from the table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532903-didremoverowview?language=objc -func (t_ TableView) DidRemoveRowViewForRow(rowView ITableRowView, row int) { - objc.Call[objc.Void](t_, objc.Sel("didRemoveRowView:forRow:"), rowView, row) -} - -// Invoked when a row view is added to the table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534008-didaddrowview?language=objc -func (t_ TableView) DidAddRowViewForRow(rowView ITableRowView, row int) { - objc.Call[objc.Void](t_, objc.Sel("didAddRowView:forRow:"), rowView, row) -} - -// Deselects all selected rows or columns if empty selection is allowed; otherwise does nothing. [Full Topic] +// Returns the NSTableColumn object for the first column whose identifier is equal to the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533302-deselectall?language=objc -func (t_ TableView) DeselectAll(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("deselectAll:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531134-tablecolumnwithidentifier?language=objc +func (t_ TableView) TableColumnWithIdentifier(identifier UserInterfaceItemIdentifier) TableColumn { + rv := objc.Call[TableColumn](t_, objc.Sel("tableColumnWithIdentifier:"), identifier) + return rv } -// Returns the rectangle containing the column at the specified index. [Full Topic] +// Returns the index of the row for the specified view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531546-rectofcolumn?language=objc -func (t_ TableView) RectOfColumn(column int) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("rectOfColumn:"), column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526732-rowforview?language=objc +func (t_ TableView) RowForView(view IView) int { + rv := objc.Call[int](t_, objc.Sel("rowForView:"), view) return rv } -// Informs the table view that the rows specified in indexSet have changed height. [Full Topic] +// Retargets the proposed drop operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532126-noteheightofrowswithindexeschang?language=objc -func (t_ TableView) NoteHeightOfRowsWithIndexesChanged(indexSet foundation.IIndexSet) { - objc.Call[objc.Void](t_, objc.Sel("noteHeightOfRowsWithIndexesChanged:"), indexSet) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535123-setdroprow?language=objc +func (t_ TableView) SetDropRowDropOperation(row int, dropOperation TableViewDropOperation) { + objc.Call[objc.Void](t_, objc.Sel("setDropRow:dropOperation:"), row, dropOperation) } // Ends the group of updates for the table view. [Full Topic] @@ -306,48 +284,48 @@ func (t_ TableView) EndUpdates() { objc.Call[objc.Void](t_, objc.Sel("endUpdates")) } -// Returns the index of the first column in the table view whose identifier is equal to the specified identifier. [Full Topic] +// Hides the specified table rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526734-columnwithidentifier?language=objc -func (t_ TableView) ColumnWithIdentifier(identifier UserInterfaceItemIdentifier) int { - rv := objc.Call[int](t_, objc.Sel("columnWithIdentifier:"), identifier) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534141-hiderowsatindexes?language=objc +func (t_ TableView) HideRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, rowAnimation TableViewAnimationOptions) { + objc.Call[objc.Void](t_, objc.Sel("hideRowsAtIndexes:withAnimation:"), indexes, rowAnimation) } -// Allows the enumeration of all the table rows that are known to the table view. [Full Topic] +// Deselects all selected rows or columns if empty selection is allowed; otherwise does nothing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532750-enumerateavailablerowviewsusingb?language=objc -func (t_ TableView) EnumerateAvailableRowViewsUsingBlock(handler func(rowView TableRowView, row int)) { - objc.Call[objc.Void](t_, objc.Sel("enumerateAvailableRowViewsUsingBlock:"), handler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533302-deselectall?language=objc +func (t_ TableView) DeselectAll(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("deselectAll:"), sender) } -// Draws the cells for the row at rowIndex in the columns that intersect clipRect. [Full Topic] +// Deselects the column at the specified index if it’s selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533711-drawrow?language=objc -func (t_ TableView) DrawRowClipRect(row int, clipRect foundation.Rect) { - objc.Call[objc.Void](t_, objc.Sel("drawRow:clipRect:"), row, clipRect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525334-deselectcolumn?language=objc +func (t_ TableView) DeselectColumn(column int) { + objc.Call[objc.Void](t_, objc.Sel("deselectColumn:"), column) } -// Returns a range of indexes for the rows that lie wholly or partially within the vertical boundaries of the specified rectangle. [Full Topic] +// Returns the rectangle containing the row at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525344-rowsinrect?language=objc -func (t_ TableView) RowsInRect(rect foundation.Rect) foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("rowsInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532948-rectofrow?language=objc +func (t_ TableView) RectOfRow(row int) foundation.Rect { + rv := objc.Call[foundation.Rect](t_, objc.Sel("rectOfRow:"), row) return rv } -// Reloads the data for only the specified rows and columns. [Full Topic] +// Returns the index of the column the specified point lies in. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527621-reloaddataforrowindexes?language=objc -func (t_ TableView) ReloadDataForRowIndexesColumnIndexes(rowIndexes foundation.IIndexSet, columnIndexes foundation.IIndexSet) { - objc.Call[objc.Void](t_, objc.Sel("reloadDataForRowIndexes:columnIndexes:"), rowIndexes, columnIndexes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527504-columnatpoint?language=objc +func (t_ TableView) ColumnAtPoint(point foundation.Point) int { + rv := objc.Call[int](t_, objc.Sel("columnAtPoint:"), point) + return rv } -// Inserts the rows using the specified animation. [Full Topic] +// Unhides the specified table rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532406-insertrowsatindexes?language=objc -func (t_ TableView) InsertRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) { - objc.Call[objc.Void](t_, objc.Sel("insertRowsAtIndexes:withAnimation:"), indexes, animationOptions) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527447-unhiderowsatindexes?language=objc +func (t_ TableView) UnhideRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, rowAnimation TableViewAnimationOptions) { + objc.Call[objc.Void](t_, objc.Sel("unhideRowsAtIndexes:withAnimation:"), indexes, rowAnimation) } // Highlights the region of the table view in the specified rectangle. [Full Topic] @@ -357,55 +335,53 @@ func (t_ TableView) HighlightSelectionInClipRect(clipRect foundation.Rect) { objc.Call[objc.Void](t_, objc.Sel("highlightSelectionInClipRect:"), clipRect) } -// Marks the table view as needing redisplay, so it will reload the data for visible cells and draw the new values. [Full Topic] +// Scrolls the view so the specified column is visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528382-reloaddata?language=objc -func (t_ TableView) ReloadData() { - objc.Call[objc.Void](t_, objc.Sel("reloadData")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535570-scrollcolumntovisible?language=objc +func (t_ TableView) ScrollColumnToVisible(column int) { + objc.Call[objc.Void](t_, objc.Sel("scrollColumnToVisible:"), column) } -// Returns a row view at the specified index, creating one if necessary. [Full Topic] +// Allows the enumeration of all the table rows that are known to the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525162-rowviewatrow?language=objc -func (t_ TableView) RowViewAtRowMakeIfNecessary(row int, makeIfNecessary bool) TableRowView { - rv := objc.Call[TableRowView](t_, objc.Sel("rowViewAtRow:makeIfNecessary:"), row, makeIfNecessary) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532750-enumerateavailablerowviewsusingb?language=objc +func (t_ TableView) EnumerateAvailableRowViewsUsingBlock(handler func(rowView TableRowView, row int)) { + objc.Call[objc.Void](t_, objc.Sel("enumerateAvailableRowViewsUsingBlock:"), handler) } -// Sets the row selection using indexes extending the selection if specified. [Full Topic] +// Invoked when a row view is removed from the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1529688-selectrowindexes?language=objc -func (t_ TableView) SelectRowIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) { - objc.Call[objc.Void](t_, objc.Sel("selectRowIndexes:byExtendingSelection:"), indexes, extend) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532903-didremoverowview?language=objc +func (t_ TableView) DidRemoveRowViewForRow(rowView ITableRowView, row int) { + objc.Call[objc.Void](t_, objc.Sel("didRemoveRowView:forRow:"), rowView, row) } -// Returns the NSTableColumn object for the first column whose identifier is equal to the specified object. [Full Topic] +// Edits the cell at the specified column and row using the specified event and selection behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531134-tablecolumnwithidentifier?language=objc -func (t_ TableView) TableColumnWithIdentifier(identifier UserInterfaceItemIdentifier) TableColumn { - rv := objc.Call[TableColumn](t_, objc.Sel("tableColumnWithIdentifier:"), identifier) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526295-editcolumn?language=objc +func (t_ TableView) EditColumnRowWithEventSelect(column int, row int, event IEvent, select_ bool) { + objc.Call[objc.Void](t_, objc.Sel("editColumn:row:withEvent:select:"), column, row, event, select_) } -// Removes the rows using the specified animation. [Full Topic] +// Draws the grid lines within the supplied rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524655-removerowsatindexes?language=objc -func (t_ TableView) RemoveRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) { - objc.Call[objc.Void](t_, objc.Sel("removeRowsAtIndexes:withAnimation:"), indexes, animationOptions) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527006-drawgridincliprect?language=objc +func (t_ TableView) DrawGridInClipRect(clipRect foundation.Rect) { + objc.Call[objc.Void](t_, objc.Sel("drawGridInClipRect:"), clipRect) } -// Hides the specified table rows. [Full Topic] +// Selects all rows or all columns, according to whether rows or columns were most recently selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534141-hiderowsatindexes?language=objc -func (t_ TableView) HideRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, rowAnimation TableViewAnimationOptions) { - objc.Call[objc.Void](t_, objc.Sel("hideRowsAtIndexes:withAnimation:"), indexes, rowAnimation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534002-selectall?language=objc +func (t_ TableView) SelectAll(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("selectAll:"), sender) } -// Returns a view at the specified row and column indexes, creating one if necessary. [Full Topic] +// Returns the indicator image of the specified table column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528831-viewatcolumn?language=objc -func (t_ TableView) ViewAtColumnRowMakeIfNecessary(column int, row int, makeIfNecessary bool) View { - rv := objc.Call[View](t_, objc.Sel("viewAtColumn:row:makeIfNecessary:"), column, row, makeIfNecessary) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524846-indicatorimageintablecolumn?language=objc +func (t_ TableView) IndicatorImageInTableColumn(tableColumn ITableColumn) Image { + rv := objc.Call[Image](t_, objc.Sel("indicatorImageInTableColumn:"), tableColumn) return rv } @@ -417,14 +393,6 @@ func (t_ TableView) IsColumnSelected(column int) bool { return rv } -// Returns a new or existing view with the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535482-makeviewwithidentifier?language=objc -func (t_ TableView) MakeViewWithIdentifierOwner(identifier UserInterfaceItemIdentifier, owner objc.IObject) View { - rv := objc.Call[View](t_, objc.Sel("makeViewWithIdentifier:owner:"), identifier, owner) - return rv -} - // Deselects the row at the specified index if it’s selected. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532722-deselectrow?language=objc @@ -432,32 +400,11 @@ func (t_ TableView) DeselectRow(row int) { objc.Call[objc.Void](t_, objc.Sel("deselectRow:"), row) } -// Draws the grid lines within the supplied rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527006-drawgridincliprect?language=objc -func (t_ TableView) DrawGridInClipRect(clipRect foundation.Rect) { - objc.Call[objc.Void](t_, objc.Sel("drawGridInClipRect:"), clipRect) -} - -// Selects all rows or all columns, according to whether rows or columns were most recently selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534002-selectall?language=objc -func (t_ TableView) SelectAll(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("selectAll:"), sender) -} - -// Sets the column selection using indexes possibly extending the selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524416-selectcolumnindexes?language=objc -func (t_ TableView) SelectColumnIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) { - objc.Call[objc.Void](t_, objc.Sel("selectColumnIndexes:byExtendingSelection:"), indexes, extend) -} - -// Returns the index of the row for the specified view. [Full Topic] +// Returns a range of indexes for the rows that lie wholly or partially within the vertical boundaries of the specified rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526732-rowforview?language=objc -func (t_ TableView) RowForView(view IView) int { - rv := objc.Call[int](t_, objc.Sel("rowForView:"), view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525344-rowsinrect?language=objc +func (t_ TableView) RowsInRect(rect foundation.Rect) foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("rowsInRect:"), rect) return rv } @@ -468,137 +415,109 @@ func (t_ TableView) SetIndicatorImageInTableColumn(image IImage, tableColumn ITa objc.Call[objc.Void](t_, objc.Sel("setIndicatorImage:inTableColumn:"), image, tableColumn) } -// Adds the specified column as the last column of the table view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534098-addtablecolumn?language=objc -func (t_ TableView) AddTableColumn(tableColumn ITableColumn) { - objc.Call[objc.Void](t_, objc.Sel("addTableColumn:"), tableColumn) -} - -// Draws the background of the table view in the clip rect specified by the rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528866-drawbackgroundincliprect?language=objc -func (t_ TableView) DrawBackgroundInClipRect(clipRect foundation.Rect) { - objc.Call[objc.Void](t_, objc.Sel("drawBackgroundInClipRect:"), clipRect) -} - -// Returns the index of the row the specified point lies in. [Full Topic] +// Returns the indexes of the table view’s columns that intersect the specified rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530884-rowatpoint?language=objc -func (t_ TableView) RowAtPoint(point foundation.Point) int { - rv := objc.Call[int](t_, objc.Sel("rowAtPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526013-columnindexesinrect?language=objc +func (t_ TableView) ColumnIndexesInRect(rect foundation.Rect) foundation.IndexSet { + rv := objc.Call[foundation.IndexSet](t_, objc.Sel("columnIndexesInRect:"), rect) return rv } -// Unhides the specified table rows. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527447-unhiderowsatindexes?language=objc -func (t_ TableView) UnhideRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, rowAnimation TableViewAnimationOptions) { - objc.Call[objc.Void](t_, objc.Sel("unhideRowsAtIndexes:withAnimation:"), indexes, rowAnimation) -} - -// Edits the cell at the specified column and row using the specified event and selection behavior. [Full Topic] +// Adds the specified column as the last column of the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526295-editcolumn?language=objc -func (t_ TableView) EditColumnRowWithEventSelect(column int, row int, event IEvent, select_ bool) { - objc.Call[objc.Void](t_, objc.Sel("editColumn:row:withEvent:select:"), column, row, event, select_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534098-addtablecolumn?language=objc +func (t_ TableView) AddTableColumn(tableColumn ITableColumn) { + objc.Call[objc.Void](t_, objc.Sel("addTableColumn:"), tableColumn) } -// Begins a group of updates for the table view. [Full Topic] +// Removes the rows using the specified animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527288-beginupdates?language=objc -func (t_ TableView) BeginUpdates() { - objc.Call[objc.Void](t_, objc.Sel("beginUpdates")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524655-removerowsatindexes?language=objc +func (t_ TableView) RemoveRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) { + objc.Call[objc.Void](t_, objc.Sel("removeRowsAtIndexes:withAnimation:"), indexes, animationOptions) } -// Returns a rectangle locating the cell that lies at the intersection of the specified column and row. [Full Topic] +// Returns a new or existing view with the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524517-frameofcellatcolumn?language=objc -func (t_ TableView) FrameOfCellAtColumnRow(column int, row int) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("frameOfCellAtColumn:row:"), column, row) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535482-makeviewwithidentifier?language=objc +func (t_ TableView) MakeViewWithIdentifierOwner(identifier UserInterfaceItemIdentifier, owner objc.IObject) View { + rv := objc.Call[View](t_, objc.Sel("makeViewWithIdentifier:owner:"), identifier, owner) return rv } -// Returns a Boolean value that indicates whether the row at the specified index is selected. [Full Topic] +// Inserts the rows using the specified animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525882-isrowselected?language=objc -func (t_ TableView) IsRowSelected(row int) bool { - rv := objc.Call[bool](t_, objc.Sel("isRowSelected:"), row) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532406-insertrowsatindexes?language=objc +func (t_ TableView) InsertRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) { + objc.Call[objc.Void](t_, objc.Sel("insertRowsAtIndexes:withAnimation:"), indexes, animationOptions) } -// Returns the index of the column the specified point lies in. [Full Topic] +// Returns the index of the row the specified point lies in. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527504-columnatpoint?language=objc -func (t_ TableView) ColumnAtPoint(point foundation.Point) int { - rv := objc.Call[int](t_, objc.Sel("columnAtPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530884-rowatpoint?language=objc +func (t_ TableView) RowAtPoint(point foundation.Point) int { + rv := objc.Call[int](t_, objc.Sel("rowAtPoint:"), point) return rv } -// Resizes the last column so the table view fits exactly within its enclosing clip view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525859-sizelastcolumntofit?language=objc -func (t_ TableView) SizeLastColumnToFit() { - objc.Call[objc.Void](t_, objc.Sel("sizeLastColumnToFit")) -} - -// Scrolls the view so the specified row is visible. [Full Topic] +// Sets the column selection using indexes possibly extending the selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1529902-scrollrowtovisible?language=objc -func (t_ TableView) ScrollRowToVisible(row int) { - objc.Call[objc.Void](t_, objc.Sel("scrollRowToVisible:"), row) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524416-selectcolumnindexes?language=objc +func (t_ TableView) SelectColumnIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) { + objc.Call[objc.Void](t_, objc.Sel("selectColumnIndexes:byExtendingSelection:"), indexes, extend) } -// Returns the rectangle containing the row at the specified index. [Full Topic] +// Computes and returns an image to use for dragging. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532948-rectofrow?language=objc -func (t_ TableView) RectOfRow(row int) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("rectOfRow:"), row) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526541-dragimageforrowswithindexes?language=objc +func (t_ TableView) DragImageForRowsWithIndexesTableColumnsEventOffset(dragRows foundation.IIndexSet, tableColumns []ITableColumn, dragEvent IEvent, dragImageOffset foundation.PointPointer) Image { + rv := objc.Call[Image](t_, objc.Sel("dragImageForRowsWithIndexes:tableColumns:event:offset:"), dragRows, tableColumns, dragEvent, dragImageOffset) return rv } -// Returns the column index for the specified view. [Full Topic] +// Returns the rectangle containing the column at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1529415-columnforview?language=objc -func (t_ TableView) ColumnForView(view IView) int { - rv := objc.Call[int](t_, objc.Sel("columnForView:"), view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531546-rectofcolumn?language=objc +func (t_ TableView) RectOfColumn(column int) foundation.Rect { + rv := objc.Call[foundation.Rect](t_, objc.Sel("rectOfColumn:"), column) return rv } -// Scrolls the view so the specified column is visible. [Full Topic] +// Resizes the last column so the table view fits exactly within its enclosing clip view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535570-scrollcolumntovisible?language=objc -func (t_ TableView) ScrollColumnToVisible(column int) { - objc.Call[objc.Void](t_, objc.Sel("scrollColumnToVisible:"), column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525859-sizelastcolumntofit?language=objc +func (t_ TableView) SizeLastColumnToFit() { + objc.Call[objc.Void](t_, objc.Sel("sizeLastColumnToFit")) } -// Returns a Boolean value indicating whether the table view allows dragging the rows with the drag initiated at the specified point. [Full Topic] +// Returns the index of the first column in the table view whose identifier is equal to the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524273-candragrowswithindexes?language=objc -func (t_ TableView) CanDragRowsWithIndexesAtPoint(rowIndexes foundation.IIndexSet, mouseDownPoint foundation.Point) bool { - rv := objc.Call[bool](t_, objc.Sel("canDragRowsWithIndexes:atPoint:"), rowIndexes, mouseDownPoint) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526734-columnwithidentifier?language=objc +func (t_ TableView) ColumnWithIdentifier(identifier UserInterfaceItemIdentifier) int { + rv := objc.Call[int](t_, objc.Sel("columnWithIdentifier:"), identifier) return rv } -// Retargets the proposed drop operation. [Full Topic] +// Sets the row selection using indexes extending the selection if specified. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535123-setdroprow?language=objc -func (t_ TableView) SetDropRowDropOperation(row int, dropOperation TableViewDropOperation) { - objc.Call[objc.Void](t_, objc.Sel("setDropRow:dropOperation:"), row, dropOperation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1529688-selectrowindexes?language=objc +func (t_ TableView) SelectRowIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) { + objc.Call[objc.Void](t_, objc.Sel("selectRowIndexes:byExtendingSelection:"), indexes, extend) } -// Removes the specified column from the table view. [Full Topic] +// Informs the table view that the rows specified in indexSet have changed height. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535381-removetablecolumn?language=objc -func (t_ TableView) RemoveTableColumn(tableColumn ITableColumn) { - objc.Call[objc.Void](t_, objc.Sel("removeTableColumn:"), tableColumn) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532126-noteheightofrowswithindexeschang?language=objc +func (t_ TableView) NoteHeightOfRowsWithIndexesChanged(indexSet foundation.IIndexSet) { + objc.Call[objc.Void](t_, objc.Sel("noteHeightOfRowsWithIndexesChanged:"), indexSet) } -// Deselects the column at the specified index if it’s selected. [Full Topic] +// Returns a Boolean value indicating whether the table view allows dragging the rows with the drag initiated at the specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525334-deselectcolumn?language=objc -func (t_ TableView) DeselectColumn(column int) { - objc.Call[objc.Void](t_, objc.Sel("deselectColumn:"), column) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524273-candragrowswithindexes?language=objc +func (t_ TableView) CanDragRowsWithIndexesAtPoint(rowIndexes foundation.IIndexSet, mouseDownPoint foundation.Point) bool { + rv := objc.Call[bool](t_, objc.Sel("canDragRowsWithIndexes:atPoint:"), rowIndexes, mouseDownPoint) + return rv } // Sets the default operation mask returned by draggingSourceOperationMaskForLocal: to mask. [Full Topic] @@ -608,105 +527,109 @@ func (t_ TableView) SetDraggingSourceOperationMaskForLocal(mask DragOperation, i objc.Call[objc.Void](t_, objc.Sel("setDraggingSourceOperationMask:forLocal:"), mask, isLocal) } -// The selection highlight style used by the table view to indicate row and column selection. [Full Topic] +// Returns a rectangle locating the cell that lies at the intersection of the specified column and row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526311-selectionhighlightstyle?language=objc -func (t_ TableView) SelectionHighlightStyle() TableViewSelectionHighlightStyle { - rv := objc.Call[TableViewSelectionHighlightStyle](t_, objc.Sel("selectionHighlightStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524517-frameofcellatcolumn?language=objc +func (t_ TableView) FrameOfCellAtColumnRow(column int, row int) foundation.Rect { + rv := objc.Call[foundation.Rect](t_, objc.Sel("frameOfCellAtColumn:row:"), column, row) return rv } -// The selection highlight style used by the table view to indicate row and column selection. [Full Topic] +// Returns a row view at the specified index, creating one if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526311-selectionhighlightstyle?language=objc -func (t_ TableView) SetSelectionHighlightStyle(value TableViewSelectionHighlightStyle) { - objc.Call[objc.Void](t_, objc.Sel("setSelectionHighlightStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525162-rowviewatrow?language=objc +func (t_ TableView) RowViewAtRowMakeIfNecessary(row int, makeIfNecessary bool) TableRowView { + rv := objc.Call[TableRowView](t_, objc.Sel("rowViewAtRow:makeIfNecessary:"), row, makeIfNecessary) + return rv } -// The grid lines drawn by the table view. [Full Topic] +// Properly sizes the table view and its header view and marks it as needing display. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528689-gridstylemask?language=objc -func (t_ TableView) GridStyleMask() TableViewGridLineStyle { - rv := objc.Call[TableViewGridLineStyle](t_, objc.Sel("gridStyleMask")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528077-tile?language=objc +func (t_ TableView) Tile() { + objc.Call[objc.Void](t_, objc.Sel("tile")) } -// The grid lines drawn by the table view. [Full Topic] +// Moves the specified row to the new row location using animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528689-gridstylemask?language=objc -func (t_ TableView) SetGridStyleMask(value TableViewGridLineStyle) { - objc.Call[objc.Void](t_, objc.Sel("setGridStyleMask:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535835-moverowatindex?language=objc +func (t_ TableView) MoveRowAtIndexToIndex(oldIndex int, newIndex int) { + objc.Call[objc.Void](t_, objc.Sel("moveRowAtIndex:toIndex:"), oldIndex, newIndex) } -// An index set containing the indexes of the selected rows. [Full Topic] +// Returns the column index for the specified view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533844-selectedrowindexes?language=objc -func (t_ TableView) SelectedRowIndexes() foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](t_, objc.Sel("selectedRowIndexes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1529415-columnforview?language=objc +func (t_ TableView) ColumnForView(view IView) int { + rv := objc.Call[int](t_, objc.Sel("columnForView:"), view) return rv } -// The effective style that the table uses. [Full Topic] +// Informs the table view that the number of records in its data source has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/3622474-effectivestyle?language=objc -func (t_ TableView) EffectiveStyle() TableViewStyle { - rv := objc.Call[TableViewStyle](t_, objc.Sel("effectiveStyle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534147-notenumberofrowschanged?language=objc +func (t_ TableView) NoteNumberOfRowsChanged() { + objc.Call[objc.Void](t_, objc.Sel("noteNumberOfRowsChanged")) } -// The index of the last selected row (or the last row added to the selection). [Full Topic] +// Invoked when a row view is added to the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535010-selectedrow?language=objc -func (t_ TableView) SelectedRow() int { - rv := objc.Call[int](t_, objc.Sel("selectedRow")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534008-didaddrowview?language=objc +func (t_ TableView) DidAddRowViewForRow(rowView ITableRowView, row int) { + objc.Call[objc.Void](t_, objc.Sel("didAddRowView:forRow:"), rowView, row) } -// The table view’s delegate. [Full Topic] +// Moves the column and heading at the specified index to the new specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534325-delegate?language=objc -func (t_ TableView) Delegate() TableViewDelegateObject { - rv := objc.Call[TableViewDelegateObject](t_, objc.Sel("delegate")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530719-movecolumn?language=objc +func (t_ TableView) MoveColumnToColumn(oldIndex int, newIndex int) { + objc.Call[objc.Void](t_, objc.Sel("moveColumn:toColumn:"), oldIndex, newIndex) } -// The table view’s delegate. [Full Topic] +// Marks the table view as needing redisplay, so it will reload the data for visible cells and draw the new values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534325-delegate?language=objc -func (t_ TableView) SetDelegate(value PTableViewDelegate) { - po0 := objc.WrapAsProtocol("NSTableViewDelegate", value) - objc.SetAssociatedObject(t_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528382-reloaddata?language=objc +func (t_ TableView) ReloadData() { + objc.Call[objc.Void](t_, objc.Sel("reloadData")) } -// The table view’s delegate. [Full Topic] +// Returns a Boolean value that indicates whether the row at the specified index is selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534325-delegate?language=objc -func (t_ TableView) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525882-isrowselected?language=objc +func (t_ TableView) IsRowSelected(row int) bool { + rv := objc.Call[bool](t_, objc.Sel("isRowSelected:"), row) + return rv } -// An index set containing the indexes of the selected columns. [Full Topic] +// Removes the specified column from the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524283-selectedcolumnindexes?language=objc -func (t_ TableView) SelectedColumnIndexes() foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](t_, objc.Sel("selectedColumnIndexes")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535381-removetablecolumn?language=objc +func (t_ TableView) RemoveTableColumn(tableColumn ITableColumn) { + objc.Call[objc.Void](t_, objc.Sel("removeTableColumn:"), tableColumn) } -// The view object used to draw headers over columns. [Full Topic] +// The object that provides the data displayed by the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535880-headerview?language=objc -func (t_ TableView) HeaderView() TableHeaderView { - rv := objc.Call[TableHeaderView](t_, objc.Sel("headerView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531866-datasource?language=objc +func (t_ TableView) DataSource() TableViewDataSourceObject { + rv := objc.Call[TableViewDataSourceObject](t_, objc.Sel("dataSource")) return rv } -// The view object used to draw headers over columns. [Full Topic] +// The object that provides the data displayed by the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535880-headerview?language=objc -func (t_ TableView) SetHeaderView(value ITableHeaderView) { - objc.Call[objc.Void](t_, objc.Sel("setHeaderView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531866-datasource?language=objc +func (t_ TableView) SetDataSource(value PTableViewDataSource) { + po0 := objc.WrapAsProtocol("NSTableViewDataSource", value) + objc.SetAssociatedObject(t_, objc.AssociationKey("setDataSource"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](t_, objc.Sel("setDataSource:"), po0) +} + +// The object that provides the data displayed by the table view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531866-datasource?language=objc +func (t_ TableView) SetDataSourceObject(valueObject objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setDataSource:"), valueObject) } // A Boolean value indicating whether vertical motion is treated as a drag or selection change. [Full Topic] @@ -724,89 +647,44 @@ func (t_ TableView) SetVerticalMotionCanBeginDrag(value bool) { objc.Call[objc.Void](t_, objc.Sel("setVerticalMotionCanBeginDrag:"), value) } -// The number of rows in the table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527941-numberofrows?language=objc -func (t_ TableView) NumberOfRows() int { - rv := objc.Call[int](t_, objc.Sel("numberOfRows")) - return rv -} - -// A Boolean value indicating whether the table uses static data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533450-usesstaticcontents?language=objc -func (t_ TableView) UsesStaticContents() bool { - rv := objc.Call[bool](t_, objc.Sel("usesStaticContents")) - return rv -} - -// A Boolean value indicating whether the table uses static data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533450-usesstaticcontents?language=objc -func (t_ TableView) SetUsesStaticContents(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesStaticContents:"), value) -} - -// A Boolean value indicating whether a table row’s actions are visible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533198-rowactionsvisible?language=objc -func (t_ TableView) RowActionsVisible() bool { - rv := objc.Call[bool](t_, objc.Sel("rowActionsVisible")) - return rv -} - -// A Boolean value indicating whether a table row’s actions are visible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533198-rowactionsvisible?language=objc -func (t_ TableView) SetRowActionsVisible(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setRowActionsVisible:"), value) -} - -// A Boolean value indicating whether the table view draws grouped rows as if they are floating. [Full Topic] +// The column highlighted in the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528624-floatsgrouprows?language=objc -func (t_ TableView) FloatsGroupRows() bool { - rv := objc.Call[bool](t_, objc.Sel("floatsGroupRows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524980-highlightedtablecolumn?language=objc +func (t_ TableView) HighlightedTableColumn() TableColumn { + rv := objc.Call[TableColumn](t_, objc.Sel("highlightedTableColumn")) return rv } -// A Boolean value indicating whether the table view draws grouped rows as if they are floating. [Full Topic] +// The column highlighted in the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528624-floatsgrouprows?language=objc -func (t_ TableView) SetFloatsGroupRows(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setFloatsGroupRows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524980-highlightedtablecolumn?language=objc +func (t_ TableView) SetHighlightedTableColumn(value ITableColumn) { + objc.Call[objc.Void](t_, objc.Sel("setHighlightedTableColumn:"), value) } -// The color used to draw the background of the table. [Full Topic] +// The message sent to the table view’s target when the user double-clicks a cell or column header. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527806-backgroundcolor?language=objc -func (t_ TableView) BackgroundColor() Color { - rv := objc.Call[Color](t_, objc.Sel("backgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526992-doubleaction?language=objc +func (t_ TableView) DoubleAction() objc.Selector { + rv := objc.Call[objc.Selector](t_, objc.Sel("doubleAction")) return rv } -// The color used to draw the background of the table. [Full Topic] +// The message sent to the table view’s target when the user double-clicks a cell or column header. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527806-backgroundcolor?language=objc -func (t_ TableView) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526992-doubleaction?language=objc +func (t_ TableView) SetDoubleAction(value objc.Selector) { + objc.Call[objc.Void](t_, objc.Sel("setDoubleAction:"), value) } -// A Boolean value indicating whether the table view uses alternating row colors for its background. [Full Topic] +// The index of the row being edited. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533967-usesalternatingrowbackgroundcolo?language=objc -func (t_ TableView) UsesAlternatingRowBackgroundColors() bool { - rv := objc.Call[bool](t_, objc.Sel("usesAlternatingRowBackgroundColors")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534282-editedrow?language=objc +func (t_ TableView) EditedRow() int { + rv := objc.Call[int](t_, objc.Sel("editedRow")) return rv } -// A Boolean value indicating whether the table view uses alternating row colors for its background. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533967-usesalternatingrowbackgroundcolo?language=objc -func (t_ TableView) SetUsesAlternatingRowBackgroundColors(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesAlternatingRowBackgroundColors:"), value) -} - // The indexes of all hidden table rows. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534914-hiddenrowindexes?language=objc @@ -815,34 +693,19 @@ func (t_ TableView) HiddenRowIndexes() foundation.IndexSet { return rv } -// A Boolean value indicating whether the table view allows the user to resize columns by dragging between their headers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527826-allowscolumnresizing?language=objc -func (t_ TableView) AllowsColumnResizing() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsColumnResizing")) - return rv -} - -// A Boolean value indicating whether the table view allows the user to resize columns by dragging between their headers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527826-allowscolumnresizing?language=objc -func (t_ TableView) SetAllowsColumnResizing(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsColumnResizing:"), value) -} - -// The table view’s column autoresizing style. [Full Topic] +// A Boolean value indicating whether the table uses static data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530784-columnautoresizingstyle?language=objc -func (t_ TableView) ColumnAutoresizingStyle() TableViewColumnAutoresizingStyle { - rv := objc.Call[TableViewColumnAutoresizingStyle](t_, objc.Sel("columnAutoresizingStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533450-usesstaticcontents?language=objc +func (t_ TableView) UsesStaticContents() bool { + rv := objc.Call[bool](t_, objc.Sel("usesStaticContents")) return rv } -// The table view’s column autoresizing style. [Full Topic] +// A Boolean value indicating whether the table uses static data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530784-columnautoresizingstyle?language=objc -func (t_ TableView) SetColumnAutoresizingStyle(value TableViewColumnAutoresizingStyle) { - objc.Call[objc.Void](t_, objc.Sel("setColumnAutoresizingStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533450-usesstaticcontents?language=objc +func (t_ TableView) SetUsesStaticContents(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesStaticContents:"), value) } // A Boolean value indicating whether the order and width of the table view’s columns are automatically saved. [Full Topic] @@ -860,42 +723,34 @@ func (t_ TableView) SetAutosaveTableColumns(value bool) { objc.Call[objc.Void](t_, objc.Sel("setAutosaveTableColumns:"), value) } -// The horizontal and vertical spacing between cells. [Full Topic] +// A Boolean value indicating whether the table view allows the user to select zero columns or rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524258-intercellspacing?language=objc -func (t_ TableView) IntercellSpacing() foundation.Size { - rv := objc.Call[foundation.Size](t_, objc.Sel("intercellSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535902-allowsemptyselection?language=objc +func (t_ TableView) AllowsEmptySelection() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsEmptySelection")) return rv } -// The horizontal and vertical spacing between cells. [Full Topic] +// A Boolean value indicating whether the table view allows the user to select zero columns or rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524258-intercellspacing?language=objc -func (t_ TableView) SetIntercellSpacing(value foundation.Size) { - objc.Call[objc.Void](t_, objc.Sel("setIntercellSpacing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535902-allowsemptyselection?language=objc +func (t_ TableView) SetAllowsEmptySelection(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsEmptySelection:"), value) } -// A Boolean value indicating whether the table view allows the user to select more than one column or row at a time. [Full Topic] +// A Boolean value indicating whether the table view allows the user to resize columns by dragging between their headers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532523-allowsmultipleselection?language=objc -func (t_ TableView) AllowsMultipleSelection() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsMultipleSelection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527826-allowscolumnresizing?language=objc +func (t_ TableView) AllowsColumnResizing() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsColumnResizing")) return rv } -// A Boolean value indicating whether the table view allows the user to select more than one column or row at a time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532523-allowsmultipleselection?language=objc -func (t_ TableView) SetAllowsMultipleSelection(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsMultipleSelection:"), value) -} - -// The index of the row being edited. [Full Topic] +// A Boolean value indicating whether the table view allows the user to resize columns by dragging between their headers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534282-editedrow?language=objc -func (t_ TableView) EditedRow() int { - rv := objc.Call[int](t_, objc.Sel("editedRow")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527826-allowscolumnresizing?language=objc +func (t_ TableView) SetAllowsColumnResizing(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsColumnResizing:"), value) } // The height of each row in the table. [Full Topic] @@ -913,28 +768,50 @@ func (t_ TableView) SetRowHeight(value float64) { objc.Call[objc.Void](t_, objc.Sel("setRowHeight:"), value) } -// The object that provides the data displayed by the table view. [Full Topic] +// The index of the column being edited. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531866-datasource?language=objc -func (t_ TableView) DataSource() TableViewDataSourceObject { - rv := objc.Call[TableViewDataSourceObject](t_, objc.Sel("dataSource")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532307-editedcolumn?language=objc +func (t_ TableView) EditedColumn() int { + rv := objc.Call[int](t_, objc.Sel("editedColumn")) return rv } -// The object that provides the data displayed by the table view. [Full Topic] +// A Boolean value indicating whether the table view allows the user to rearrange columns by dragging their headers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531866-datasource?language=objc -func (t_ TableView) SetDataSource(value PTableViewDataSource) { - po0 := objc.WrapAsProtocol("NSTableViewDataSource", value) - objc.SetAssociatedObject(t_, objc.AssociationKey("setDataSource"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](t_, objc.Sel("setDataSource:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530207-allowscolumnreordering?language=objc +func (t_ TableView) AllowsColumnReordering() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsColumnReordering")) + return rv } -// The object that provides the data displayed by the table view. [Full Topic] +// A Boolean value indicating whether the table view allows the user to rearrange columns by dragging their headers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531866-datasource?language=objc -func (t_ TableView) SetDataSourceObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setDataSource:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530207-allowscolumnreordering?language=objc +func (t_ TableView) SetAllowsColumnReordering(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsColumnReordering:"), value) +} + +// The index of the column the user clicked. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1529205-clickedcolumn?language=objc +func (t_ TableView) ClickedColumn() int { + rv := objc.Call[int](t_, objc.Sel("clickedColumn")) + return rv +} + +// The row size style (small, medium, large, or custom) used by the table view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534438-rowsizestyle?language=objc +func (t_ TableView) RowSizeStyle() TableViewRowSizeStyle { + rv := objc.Call[TableViewRowSizeStyle](t_, objc.Sel("rowSizeStyle")) + return rv +} + +// The row size style (small, medium, large, or custom) used by the table view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534438-rowsizestyle?language=objc +func (t_ TableView) SetRowSizeStyle(value TableViewRowSizeStyle) { + objc.Call[objc.Void](t_, objc.Sel("setRowSizeStyle:"), value) } // A Boolean value indicating whether the table view allows the user to type characters to select rows. [Full Topic] @@ -952,65 +829,149 @@ func (t_ TableView) SetAllowsTypeSelect(value bool) { objc.Call[objc.Void](t_, objc.Sel("setAllowsTypeSelect:"), value) } -// The column highlighted in the table. [Full Topic] +// The table view’s sort descriptors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524980-highlightedtablecolumn?language=objc -func (t_ TableView) HighlightedTableColumn() TableColumn { - rv := objc.Call[TableColumn](t_, objc.Sel("highlightedTableColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534198-sortdescriptors?language=objc +func (t_ TableView) SortDescriptors() []foundation.SortDescriptor { + rv := objc.Call[[]foundation.SortDescriptor](t_, objc.Sel("sortDescriptors")) return rv } -// The column highlighted in the table. [Full Topic] +// The table view’s sort descriptors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524980-highlightedtablecolumn?language=objc -func (t_ TableView) SetHighlightedTableColumn(value ITableColumn) { - objc.Call[objc.Void](t_, objc.Sel("setHighlightedTableColumn:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534198-sortdescriptors?language=objc +func (t_ TableView) SetSortDescriptors(value []foundation.ISortDescriptor) { + objc.Call[objc.Void](t_, objc.Sel("setSortDescriptors:"), value) } -// The index of the row the user clicked. [Full Topic] +// The style that the table view uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527357-clickedrow?language=objc -func (t_ TableView) ClickedRow() int { - rv := objc.Call[int](t_, objc.Sel("clickedRow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/3622475-style?language=objc +func (t_ TableView) Style() TableViewStyle { + rv := objc.Call[TableViewStyle](t_, objc.Sel("style")) return rv } -// The index of the column the user clicked. [Full Topic] +// The style that the table view uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1529205-clickedcolumn?language=objc -func (t_ TableView) ClickedColumn() int { - rv := objc.Call[int](t_, objc.Sel("clickedColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/3622475-style?language=objc +func (t_ TableView) SetStyle(value TableViewStyle) { + objc.Call[objc.Void](t_, objc.Sel("setStyle:"), value) +} + +// The view used to draw the area to the right of the column headers and above the vertical scroller of the enclosing scroll view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535831-cornerview?language=objc +func (t_ TableView) CornerView() View { + rv := objc.Call[View](t_, objc.Sel("cornerView")) return rv } -// The feedback style displayed when the user drags over the table view. [Full Topic] +// The view used to draw the area to the right of the column headers and above the vertical scroller of the enclosing scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527570-draggingdestinationfeedbackstyle?language=objc -func (t_ TableView) DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle { - rv := objc.Call[TableViewDraggingDestinationFeedbackStyle](t_, objc.Sel("draggingDestinationFeedbackStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535831-cornerview?language=objc +func (t_ TableView) SetCornerView(value IView) { + objc.Call[objc.Void](t_, objc.Sel("setCornerView:"), value) +} + +// The effective row size style for the table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531825-effectiverowsizestyle?language=objc +func (t_ TableView) EffectiveRowSizeStyle() TableViewRowSizeStyle { + rv := objc.Call[TableViewRowSizeStyle](t_, objc.Sel("effectiveRowSizeStyle")) return rv } -// The feedback style displayed when the user drags over the table view. [Full Topic] +// The table view’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527570-draggingdestinationfeedbackstyle?language=objc -func (t_ TableView) SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) { - objc.Call[objc.Void](t_, objc.Sel("setDraggingDestinationFeedbackStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534325-delegate?language=objc +func (t_ TableView) Delegate() TableViewDelegateObject { + rv := objc.Call[TableViewDelegateObject](t_, objc.Sel("delegate")) + return rv } -// A Boolean value indicating whether the table view allows the user to select zero columns or rows. [Full Topic] +// The table view’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535902-allowsemptyselection?language=objc -func (t_ TableView) AllowsEmptySelection() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsEmptySelection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534325-delegate?language=objc +func (t_ TableView) SetDelegate(value PTableViewDelegate) { + po0 := objc.WrapAsProtocol("NSTableViewDelegate", value) + objc.SetAssociatedObject(t_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) +} + +// The table view’s delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534325-delegate?language=objc +func (t_ TableView) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) +} + +// The color used to draw the background of the table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527806-backgroundcolor?language=objc +func (t_ TableView) BackgroundColor() Color { + rv := objc.Call[Color](t_, objc.Sel("backgroundColor")) + return rv +} + +// The color used to draw the background of the table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527806-backgroundcolor?language=objc +func (t_ TableView) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), value) +} + +// The name under which table information is automatically saved. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534409-autosavename?language=objc +func (t_ TableView) AutosaveName() TableViewAutosaveName { + rv := objc.Call[TableViewAutosaveName](t_, objc.Sel("autosaveName")) + return rv +} + +// The name under which table information is automatically saved. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534409-autosavename?language=objc +func (t_ TableView) SetAutosaveName(value TableViewAutosaveName) { + objc.Call[objc.Void](t_, objc.Sel("setAutosaveName:"), value) +} + +// The effective style that the table uses. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/3622474-effectivestyle?language=objc +func (t_ TableView) EffectiveStyle() TableViewStyle { + rv := objc.Call[TableViewStyle](t_, objc.Sel("effectiveStyle")) + return rv +} + +// A Boolean value that indicates whether the table view uses autolayout to calculate the height of rows. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/2870126-usesautomaticrowheights?language=objc +func (t_ TableView) UsesAutomaticRowHeights() bool { + rv := objc.Call[bool](t_, objc.Sel("usesAutomaticRowHeights")) + return rv +} + +// A Boolean value that indicates whether the table view uses autolayout to calculate the height of rows. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/2870126-usesautomaticrowheights?language=objc +func (t_ TableView) SetUsesAutomaticRowHeights(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesAutomaticRowHeights:"), value) +} + +// A Boolean value indicating whether the table view uses alternating row colors for its background. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533967-usesalternatingrowbackgroundcolo?language=objc +func (t_ TableView) UsesAlternatingRowBackgroundColors() bool { + rv := objc.Call[bool](t_, objc.Sel("usesAlternatingRowBackgroundColors")) return rv } -// A Boolean value indicating whether the table view allows the user to select zero columns or rows. [Full Topic] +// A Boolean value indicating whether the table view uses alternating row colors for its background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535902-allowsemptyselection?language=objc -func (t_ TableView) SetAllowsEmptySelection(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsEmptySelection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533967-usesalternatingrowbackgroundcolo?language=objc +func (t_ TableView) SetUsesAlternatingRowBackgroundColors(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesAlternatingRowBackgroundColors:"), value) } // The number of selected rows. [Full Topic] @@ -1021,14 +982,29 @@ func (t_ TableView) NumberOfSelectedRows() int { return rv } -// The number of columns in the table. [Full Topic] +// The index of the row the user clicked. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528902-numberofcolumns?language=objc -func (t_ TableView) NumberOfColumns() int { - rv := objc.Call[int](t_, objc.Sel("numberOfColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527357-clickedrow?language=objc +func (t_ TableView) ClickedRow() int { + rv := objc.Call[int](t_, objc.Sel("clickedRow")) + return rv +} + +// A Boolean value indicating whether the table view allows the user to select more than one column or row at a time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532523-allowsmultipleselection?language=objc +func (t_ TableView) AllowsMultipleSelection() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsMultipleSelection")) return rv } +// A Boolean value indicating whether the table view allows the user to select more than one column or row at a time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532523-allowsmultipleselection?language=objc +func (t_ TableView) SetAllowsMultipleSelection(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsMultipleSelection:"), value) +} + // The index of the last selected column (or the last column added to the selection). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532974-selectedcolumn?language=objc @@ -1037,52 +1013,59 @@ func (t_ TableView) SelectedColumn() int { return rv } -// The style that the table view uses. [Full Topic] +// The grid lines drawn by the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/3622475-style?language=objc -func (t_ TableView) Style() TableViewStyle { - rv := objc.Call[TableViewStyle](t_, objc.Sel("style")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528689-gridstylemask?language=objc +func (t_ TableView) GridStyleMask() TableViewGridLineStyle { + rv := objc.Call[TableViewGridLineStyle](t_, objc.Sel("gridStyleMask")) return rv } -// The style that the table view uses. [Full Topic] +// The grid lines drawn by the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/3622475-style?language=objc -func (t_ TableView) SetStyle(value TableViewStyle) { - objc.Call[objc.Void](t_, objc.Sel("setStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528689-gridstylemask?language=objc +func (t_ TableView) SetGridStyleMask(value TableViewGridLineStyle) { + objc.Call[objc.Void](t_, objc.Sel("setGridStyleMask:"), value) } -// An array containing the current table column objects. [Full Topic] +// The index of the last selected row (or the last row added to the selection). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528735-tablecolumns?language=objc -func (t_ TableView) TableColumns() []TableColumn { - rv := objc.Call[[]TableColumn](t_, objc.Sel("tableColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535010-selectedrow?language=objc +func (t_ TableView) SelectedRow() int { + rv := objc.Call[int](t_, objc.Sel("selectedRow")) return rv } -// A Boolean value that indicates whether the table view uses autolayout to calculate the height of rows. [Full Topic] +// The selection highlight style used by the table view to indicate row and column selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/2870126-usesautomaticrowheights?language=objc -func (t_ TableView) UsesAutomaticRowHeights() bool { - rv := objc.Call[bool](t_, objc.Sel("usesAutomaticRowHeights")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526311-selectionhighlightstyle?language=objc +func (t_ TableView) SelectionHighlightStyle() TableViewSelectionHighlightStyle { + rv := objc.Call[TableViewSelectionHighlightStyle](t_, objc.Sel("selectionHighlightStyle")) return rv } -// A Boolean value that indicates whether the table view uses autolayout to calculate the height of rows. [Full Topic] +// The selection highlight style used by the table view to indicate row and column selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/2870126-usesautomaticrowheights?language=objc -func (t_ TableView) SetUsesAutomaticRowHeights(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesAutomaticRowHeights:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526311-selectionhighlightstyle?language=objc +func (t_ TableView) SetSelectionHighlightStyle(value TableViewSelectionHighlightStyle) { + objc.Call[objc.Void](t_, objc.Sel("setSelectionHighlightStyle:"), value) } -// The number of selected columns. [Full Topic] +// A Boolean value indicating whether a table row’s actions are visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524361-numberofselectedcolumns?language=objc -func (t_ TableView) NumberOfSelectedColumns() int { - rv := objc.Call[int](t_, objc.Sel("numberOfSelectedColumns")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533198-rowactionsvisible?language=objc +func (t_ TableView) RowActionsVisible() bool { + rv := objc.Call[bool](t_, objc.Sel("rowActionsVisible")) return rv } +// A Boolean value indicating whether a table row’s actions are visible. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533198-rowactionsvisible?language=objc +func (t_ TableView) SetRowActionsVisible(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setRowActionsVisible:"), value) +} + // The dictionary of all registered nib files for view-based table view identifiers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530663-registerednibsbyidentifier?language=objc @@ -1091,138 +1074,155 @@ func (t_ TableView) RegisteredNibsByIdentifier() map[UserInterfaceItemIdentifier return rv } -// The index of the column being edited. [Full Topic] +// An index set containing the indexes of the selected columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1532307-editedcolumn?language=objc -func (t_ TableView) EditedColumn() int { - rv := objc.Call[int](t_, objc.Sel("editedColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524283-selectedcolumnindexes?language=objc +func (t_ TableView) SelectedColumnIndexes() foundation.IndexSet { + rv := objc.Call[foundation.IndexSet](t_, objc.Sel("selectedColumnIndexes")) return rv } -// The row size style (small, medium, large, or custom) used by the table view. [Full Topic] +// A Boolean value indicating whether the table view allows the user to select columns by clicking their headers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534438-rowsizestyle?language=objc -func (t_ TableView) RowSizeStyle() TableViewRowSizeStyle { - rv := objc.Call[TableViewRowSizeStyle](t_, objc.Sel("rowSizeStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525276-allowscolumnselection?language=objc +func (t_ TableView) AllowsColumnSelection() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsColumnSelection")) return rv } -// The row size style (small, medium, large, or custom) used by the table view. [Full Topic] +// A Boolean value indicating whether the table view allows the user to select columns by clicking their headers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534438-rowsizestyle?language=objc -func (t_ TableView) SetRowSizeStyle(value TableViewRowSizeStyle) { - objc.Call[objc.Void](t_, objc.Sel("setRowSizeStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525276-allowscolumnselection?language=objc +func (t_ TableView) SetAllowsColumnSelection(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsColumnSelection:"), value) } -// The effective row size style for the table. [Full Topic] +// The view object used to draw headers over columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531825-effectiverowsizestyle?language=objc -func (t_ TableView) EffectiveRowSizeStyle() TableViewRowSizeStyle { - rv := objc.Call[TableViewRowSizeStyle](t_, objc.Sel("effectiveRowSizeStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535880-headerview?language=objc +func (t_ TableView) HeaderView() TableHeaderView { + rv := objc.Call[TableHeaderView](t_, objc.Sel("headerView")) return rv } -// The message sent to the table view’s target when the user double-clicks a cell or column header. [Full Topic] +// The view object used to draw headers over columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526992-doubleaction?language=objc -func (t_ TableView) DoubleAction() objc.Selector { - rv := objc.Call[objc.Selector](t_, objc.Sel("doubleAction")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535880-headerview?language=objc +func (t_ TableView) SetHeaderView(value ITableHeaderView) { + objc.Call[objc.Void](t_, objc.Sel("setHeaderView:"), value) } -// The message sent to the table view’s target when the user double-clicks a cell or column header. [Full Topic] +// The number of rows in the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1526992-doubleaction?language=objc -func (t_ TableView) SetDoubleAction(value objc.Selector) { - objc.Call[objc.Void](t_, objc.Sel("setDoubleAction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527941-numberofrows?language=objc +func (t_ TableView) NumberOfRows() int { + rv := objc.Call[int](t_, objc.Sel("numberOfRows")) + return rv } -// The color used to draw grid lines. [Full Topic] +// A Boolean value indicating whether the table view draws grouped rows as if they are floating. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524620-gridcolor?language=objc -func (t_ TableView) GridColor() Color { - rv := objc.Call[Color](t_, objc.Sel("gridColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528624-floatsgrouprows?language=objc +func (t_ TableView) FloatsGroupRows() bool { + rv := objc.Call[bool](t_, objc.Sel("floatsGroupRows")) return rv } -// The color used to draw grid lines. [Full Topic] +// A Boolean value indicating whether the table view draws grouped rows as if they are floating. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524620-gridcolor?language=objc -func (t_ TableView) SetGridColor(value IColor) { - objc.Call[objc.Void](t_, objc.Sel("setGridColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528624-floatsgrouprows?language=objc +func (t_ TableView) SetFloatsGroupRows(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setFloatsGroupRows:"), value) } -// A Boolean value indicating whether the table view allows the user to rearrange columns by dragging their headers. [Full Topic] +// An index set containing the indexes of the selected rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530207-allowscolumnreordering?language=objc -func (t_ TableView) AllowsColumnReordering() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsColumnReordering")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1533844-selectedrowindexes?language=objc +func (t_ TableView) SelectedRowIndexes() foundation.IndexSet { + rv := objc.Call[foundation.IndexSet](t_, objc.Sel("selectedRowIndexes")) return rv } -// A Boolean value indicating whether the table view allows the user to rearrange columns by dragging their headers. [Full Topic] +// The horizontal and vertical spacing between cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530207-allowscolumnreordering?language=objc -func (t_ TableView) SetAllowsColumnReordering(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsColumnReordering:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524258-intercellspacing?language=objc +func (t_ TableView) IntercellSpacing() foundation.Size { + rv := objc.Call[foundation.Size](t_, objc.Sel("intercellSpacing")) + return rv } -// The table view’s sort descriptors. [Full Topic] +// The horizontal and vertical spacing between cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534198-sortdescriptors?language=objc -func (t_ TableView) SortDescriptors() []foundation.SortDescriptor { - rv := objc.Call[[]foundation.SortDescriptor](t_, objc.Sel("sortDescriptors")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524258-intercellspacing?language=objc +func (t_ TableView) SetIntercellSpacing(value foundation.Size) { + objc.Call[objc.Void](t_, objc.Sel("setIntercellSpacing:"), value) } -// The table view’s sort descriptors. [Full Topic] +// The number of columns in the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534198-sortdescriptors?language=objc -func (t_ TableView) SetSortDescriptors(value []foundation.ISortDescriptor) { - objc.Call[objc.Void](t_, objc.Sel("setSortDescriptors:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528902-numberofcolumns?language=objc +func (t_ TableView) NumberOfColumns() int { + rv := objc.Call[int](t_, objc.Sel("numberOfColumns")) + return rv } -// The name under which table information is automatically saved. [Full Topic] +// The table view’s column autoresizing style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534409-autosavename?language=objc -func (t_ TableView) AutosaveName() TableViewAutosaveName { - rv := objc.Call[TableViewAutosaveName](t_, objc.Sel("autosaveName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530784-columnautoresizingstyle?language=objc +func (t_ TableView) ColumnAutoresizingStyle() TableViewColumnAutoresizingStyle { + rv := objc.Call[TableViewColumnAutoresizingStyle](t_, objc.Sel("columnAutoresizingStyle")) return rv } -// The name under which table information is automatically saved. [Full Topic] +// The table view’s column autoresizing style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534409-autosavename?language=objc -func (t_ TableView) SetAutosaveName(value TableViewAutosaveName) { - objc.Call[objc.Void](t_, objc.Sel("setAutosaveName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1530784-columnautoresizingstyle?language=objc +func (t_ TableView) SetColumnAutoresizingStyle(value TableViewColumnAutoresizingStyle) { + objc.Call[objc.Void](t_, objc.Sel("setColumnAutoresizingStyle:"), value) } -// The view used to draw the area to the right of the column headers and above the vertical scroller of the enclosing scroll view. [Full Topic] +// The color used to draw grid lines. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535831-cornerview?language=objc -func (t_ TableView) CornerView() View { - rv := objc.Call[View](t_, objc.Sel("cornerView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524620-gridcolor?language=objc +func (t_ TableView) GridColor() Color { + rv := objc.Call[Color](t_, objc.Sel("gridColor")) return rv } -// The view used to draw the area to the right of the column headers and above the vertical scroller of the enclosing scroll view. [Full Topic] +// The color used to draw grid lines. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1535831-cornerview?language=objc -func (t_ TableView) SetCornerView(value IView) { - objc.Call[objc.Void](t_, objc.Sel("setCornerView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524620-gridcolor?language=objc +func (t_ TableView) SetGridColor(value IColor) { + objc.Call[objc.Void](t_, objc.Sel("setGridColor:"), value) } -// A Boolean value indicating whether the table view allows the user to select columns by clicking their headers. [Full Topic] +// An array containing the current table column objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525276-allowscolumnselection?language=objc -func (t_ TableView) AllowsColumnSelection() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsColumnSelection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1528735-tablecolumns?language=objc +func (t_ TableView) TableColumns() []TableColumn { + rv := objc.Call[[]TableColumn](t_, objc.Sel("tableColumns")) return rv } -// A Boolean value indicating whether the table view allows the user to select columns by clicking their headers. [Full Topic] +// The feedback style displayed when the user drags over the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1525276-allowscolumnselection?language=objc -func (t_ TableView) SetAllowsColumnSelection(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsColumnSelection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527570-draggingdestinationfeedbackstyle?language=objc +func (t_ TableView) DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle { + rv := objc.Call[TableViewDraggingDestinationFeedbackStyle](t_, objc.Sel("draggingDestinationFeedbackStyle")) + return rv +} + +// The feedback style displayed when the user drags over the table view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527570-draggingdestinationfeedbackstyle?language=objc +func (t_ TableView) SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) { + objc.Call[objc.Void](t_, objc.Sel("setDraggingDestinationFeedbackStyle:"), value) +} + +// The number of selected columns. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1524361-numberofselectedcolumns?language=objc +func (t_ TableView) NumberOfSelectedColumns() int { + rv := objc.Call[int](t_, objc.Sel("numberOfSelectedColumns")) + return rv } diff --git a/macos/appkit/table_view_data_source_protocol.gen.go b/macos/appkit/table_view_data_source_protocol.gen.go index d5d8bb27..a6e355d4 100644 --- a/macos/appkit/table_view_data_source_protocol.gen.go +++ b/macos/appkit/table_view_data_source_protocol.gen.go @@ -11,10 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource?language=objc type PTableViewDataSource interface { - // optional - TableViewSetObjectValueForTableColumnRow(tableView TableView, object objc.Object, tableColumn TableColumn, row int) - HasTableViewSetObjectValueForTableColumnRow() bool - // optional NumberOfRowsInTableView(tableView TableView) int HasNumberOfRowsInTableView() bool @@ -22,34 +18,6 @@ type PTableViewDataSource interface { // optional TableViewSortDescriptorsDidChange(tableView TableView, oldDescriptors []foundation.SortDescriptor) HasTableViewSortDescriptorsDidChange() bool - - // optional - TableViewDraggingSessionEndedAtPointOperation(tableView TableView, session DraggingSession, screenPoint foundation.Point, operation DragOperation) - HasTableViewDraggingSessionEndedAtPointOperation() bool - - // optional - TableViewDraggingSessionWillBeginAtPointForRowIndexes(tableView TableView, session DraggingSession, screenPoint foundation.Point, rowIndexes foundation.IndexSet) - HasTableViewDraggingSessionWillBeginAtPointForRowIndexes() bool - - // optional - TableViewAcceptDropRowDropOperation(tableView TableView, info DraggingInfoObject, row int, dropOperation TableViewDropOperation) bool - HasTableViewAcceptDropRowDropOperation() bool - - // optional - TableViewObjectValueForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) objc.Object - HasTableViewObjectValueForTableColumnRow() bool - - // optional - TableViewPasteboardWriterForRow(tableView TableView, row int) PasteboardWritingObject - HasTableViewPasteboardWriterForRow() bool - - // optional - TableViewUpdateDraggingItemsForDrag(tableView TableView, draggingInfo DraggingInfoObject) - HasTableViewUpdateDraggingItemsForDrag() bool - - // optional - TableViewValidateDropProposedRowProposedDropOperation(tableView TableView, info DraggingInfoObject, row int, dropOperation TableViewDropOperation) DragOperation - HasTableViewValidateDropProposedRowProposedDropOperation() bool } // ensure impl type implements protocol interface @@ -60,17 +28,6 @@ type TableViewDataSourceObject struct { objc.Object } -func (t_ TableViewDataSourceObject) HasTableViewSetObjectValueForTableColumnRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:setObjectValue:forTableColumn:row:")) -} - -// Sets the data object for an item in the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1526317-tableview?language=objc -func (t_ TableViewDataSourceObject) TableViewSetObjectValueForTableColumnRow(tableView TableView, object objc.Object, tableColumn TableColumn, row int) { - objc.Call[objc.Void](t_, objc.Sel("tableView:setObjectValue:forTableColumn:row:"), tableView, object, tableColumn, row) -} - func (t_ TableViewDataSourceObject) HasNumberOfRowsInTableView() bool { return t_.RespondsToSelector(objc.Sel("numberOfRowsInTableView:")) } @@ -93,87 +50,3 @@ func (t_ TableViewDataSourceObject) HasTableViewSortDescriptorsDidChange() bool func (t_ TableViewDataSourceObject) TableViewSortDescriptorsDidChange(tableView TableView, oldDescriptors []foundation.SortDescriptor) { objc.Call[objc.Void](t_, objc.Sel("tableView:sortDescriptorsDidChange:"), tableView, oldDescriptors) } - -func (t_ TableViewDataSourceObject) HasTableViewDraggingSessionEndedAtPointOperation() bool { - return t_.RespondsToSelector(objc.Sel("tableView:draggingSession:endedAtPoint:operation:")) -} - -// Implement this method to determine when a dragging session has ended. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1534355-tableview?language=objc -func (t_ TableViewDataSourceObject) TableViewDraggingSessionEndedAtPointOperation(tableView TableView, session DraggingSession, screenPoint foundation.Point, operation DragOperation) { - objc.Call[objc.Void](t_, objc.Sel("tableView:draggingSession:endedAtPoint:operation:"), tableView, session, screenPoint, operation) -} - -func (t_ TableViewDataSourceObject) HasTableViewDraggingSessionWillBeginAtPointForRowIndexes() bool { - return t_.RespondsToSelector(objc.Sel("tableView:draggingSession:willBeginAtPoint:forRowIndexes:")) -} - -// Implement this method to determine when a dragging session will begin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1528890-tableview?language=objc -func (t_ TableViewDataSourceObject) TableViewDraggingSessionWillBeginAtPointForRowIndexes(tableView TableView, session DraggingSession, screenPoint foundation.Point, rowIndexes foundation.IndexSet) { - objc.Call[objc.Void](t_, objc.Sel("tableView:draggingSession:willBeginAtPoint:forRowIndexes:"), tableView, session, screenPoint, rowIndexes) -} - -func (t_ TableViewDataSourceObject) HasTableViewAcceptDropRowDropOperation() bool { - return t_.RespondsToSelector(objc.Sel("tableView:acceptDrop:row:dropOperation:")) -} - -// Called by aTableView when the mouse button is released over a table view that previously decided to allow a drop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1527733-tableview?language=objc -func (t_ TableViewDataSourceObject) TableViewAcceptDropRowDropOperation(tableView TableView, info DraggingInfoObject, row int, dropOperation TableViewDropOperation) bool { - po1 := objc.WrapAsProtocol("NSDraggingInfo", info) - rv := objc.Call[bool](t_, objc.Sel("tableView:acceptDrop:row:dropOperation:"), tableView, po1, row, dropOperation) - return rv -} - -func (t_ TableViewDataSourceObject) HasTableViewObjectValueForTableColumnRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:objectValueForTableColumn:row:")) -} - -// Called by the table view to return the data object associated with the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1533674-tableview?language=objc -func (t_ TableViewDataSourceObject) TableViewObjectValueForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("tableView:objectValueForTableColumn:row:"), tableView, tableColumn, row) - return rv -} - -func (t_ TableViewDataSourceObject) HasTableViewPasteboardWriterForRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:pasteboardWriterForRow:")) -} - -// Called to allow the table to support multiple item dragging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1535294-tableview?language=objc -func (t_ TableViewDataSourceObject) TableViewPasteboardWriterForRow(tableView TableView, row int) PasteboardWritingObject { - rv := objc.Call[PasteboardWritingObject](t_, objc.Sel("tableView:pasteboardWriterForRow:"), tableView, row) - return rv -} - -func (t_ TableViewDataSourceObject) HasTableViewUpdateDraggingItemsForDrag() bool { - return t_.RespondsToSelector(objc.Sel("tableView:updateDraggingItemsForDrag:")) -} - -// Implement this method to allow the table to update dragging items as they are dragged over a view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1535273-tableview?language=objc -func (t_ TableViewDataSourceObject) TableViewUpdateDraggingItemsForDrag(tableView TableView, draggingInfo DraggingInfoObject) { - po1 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - objc.Call[objc.Void](t_, objc.Sel("tableView:updateDraggingItemsForDrag:"), tableView, po1) -} - -func (t_ TableViewDataSourceObject) HasTableViewValidateDropProposedRowProposedDropOperation() bool { - return t_.RespondsToSelector(objc.Sel("tableView:validateDrop:proposedRow:proposedDropOperation:")) -} - -// Used by aTableView to determine a valid drop target. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1532052-tableview?language=objc -func (t_ TableViewDataSourceObject) TableViewValidateDropProposedRowProposedDropOperation(tableView TableView, info DraggingInfoObject, row int, dropOperation TableViewDropOperation) DragOperation { - po1 := objc.WrapAsProtocol("NSDraggingInfo", info) - rv := objc.Call[DragOperation](t_, objc.Sel("tableView:validateDrop:proposedRow:proposedDropOperation:"), tableView, po1, row, dropOperation) - return rv -} diff --git a/macos/appkit/table_view_delegate.gen.go b/macos/appkit/table_view_delegate.gen.go index c670350d..c1087870 100644 --- a/macos/appkit/table_view_delegate.gen.go +++ b/macos/appkit/table_view_delegate.gen.go @@ -13,410 +13,91 @@ import ( type PTableViewDelegate interface { PControlTextEditingDelegate // optional - TableViewTypeSelectStringForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) string - HasTableViewTypeSelectStringForTableColumnRow() bool - - // optional - TableViewDataCellForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) Cell - HasTableViewDataCellForTableColumnRow() bool - - // optional - TableViewNextTypeSelectMatchFromRowToRowForString(tableView TableView, startRow int, endRow int, searchString string) int - HasTableViewNextTypeSelectMatchFromRowToRowForString() bool - - // optional - TableViewIsGroupRow(tableView TableView, row int) bool - HasTableViewIsGroupRow() bool - - // optional - TableViewShouldShowCellExpansionForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) bool - HasTableViewShouldShowCellExpansionForTableColumnRow() bool - - // optional - TableViewDidDragTableColumn(tableView TableView, tableColumn TableColumn) - HasTableViewDidDragTableColumn() bool - - // optional - SelectionShouldChangeInTableView(tableView TableView) bool - HasSelectionShouldChangeInTableView() bool - - // optional - TableViewViewForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) View - HasTableViewViewForTableColumnRow() bool - - // optional - TableViewRowActionsForRowEdge(tableView TableView, row int, edge TableRowActionEdge) []TableViewRowAction - HasTableViewRowActionsForRowEdge() bool - - // optional - TableViewShouldTrackCellForTableColumnRow(tableView TableView, cell Cell, tableColumn TableColumn, row int) bool - HasTableViewShouldTrackCellForTableColumnRow() bool - - // optional - TableViewRowViewForRow(tableView TableView, row int) TableRowView - HasTableViewRowViewForRow() bool - - // optional - TableViewShouldEditTableColumnRow(tableView TableView, tableColumn TableColumn, row int) bool - HasTableViewShouldEditTableColumnRow() bool - - // optional - TableViewShouldSelectTableColumn(tableView TableView, tableColumn TableColumn) bool - HasTableViewShouldSelectTableColumn() bool + TableViewSelectionDidChange(notification foundation.Notification) + HasTableViewSelectionDidChange() bool // optional - TableViewSelectionIndexesForProposedSelection(tableView TableView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet - HasTableViewSelectionIndexesForProposedSelection() bool + TableViewColumnDidResize(notification foundation.Notification) + HasTableViewColumnDidResize() bool // optional - TableViewDidAddRowViewForRow(tableView TableView, rowView TableRowView, row int) - HasTableViewDidAddRowViewForRow() bool + TableViewSelectionIsChanging(notification foundation.Notification) + HasTableViewSelectionIsChanging() bool // optional TableViewDidClickTableColumn(tableView TableView, tableColumn TableColumn) HasTableViewDidClickTableColumn() bool // optional - TableViewWillDisplayCellForTableColumnRow(tableView TableView, cell objc.Object, tableColumn TableColumn, row int) - HasTableViewWillDisplayCellForTableColumnRow() bool - - // optional - TableViewSizeToFitWidthOfColumn(tableView TableView, column int) float64 - HasTableViewSizeToFitWidthOfColumn() bool - - // optional - TableViewShouldSelectRow(tableView TableView, row int) bool - HasTableViewShouldSelectRow() bool + SelectionShouldChangeInTableView(tableView TableView) bool + HasSelectionShouldChangeInTableView() bool // optional TableViewColumnDidMove(notification foundation.Notification) HasTableViewColumnDidMove() bool - - // optional - TableViewSelectionIsChanging(notification foundation.Notification) - HasTableViewSelectionIsChanging() bool - - // optional - TableViewMouseDownInHeaderOfTableColumn(tableView TableView, tableColumn TableColumn) - HasTableViewMouseDownInHeaderOfTableColumn() bool - - // optional - TableViewDidRemoveRowViewForRow(tableView TableView, rowView TableRowView, row int) - HasTableViewDidRemoveRowViewForRow() bool - - // optional - TableViewShouldReorderColumnToColumn(tableView TableView, columnIndex int, newColumnIndex int) bool - HasTableViewShouldReorderColumnToColumn() bool - - // optional - TableViewSelectionDidChange(notification foundation.Notification) - HasTableViewSelectionDidChange() bool - - // optional - TableViewShouldTypeSelectForEventWithCurrentSearchString(tableView TableView, event Event, searchString string) bool - HasTableViewShouldTypeSelectForEventWithCurrentSearchString() bool - - // optional - TableViewToolTipForCellRectTableColumnRowMouseLocation(tableView TableView, cell Cell, rect foundation.RectPointer, tableColumn TableColumn, row int, mouseLocation foundation.Point) string - HasTableViewToolTipForCellRectTableColumnRowMouseLocation() bool - - // optional - TableViewColumnDidResize(notification foundation.Notification) - HasTableViewColumnDidResize() bool - - // optional - TableViewHeightOfRow(tableView TableView, row int) float64 - HasTableViewHeightOfRow() bool } // A delegate implementation builder for the [PTableViewDelegate] protocol. type TableViewDelegate struct { ControlTextEditingDelegate - _TableViewTypeSelectStringForTableColumnRow func(tableView TableView, tableColumn TableColumn, row int) string - _TableViewDataCellForTableColumnRow func(tableView TableView, tableColumn TableColumn, row int) Cell - _TableViewNextTypeSelectMatchFromRowToRowForString func(tableView TableView, startRow int, endRow int, searchString string) int - _TableViewIsGroupRow func(tableView TableView, row int) bool - _TableViewShouldShowCellExpansionForTableColumnRow func(tableView TableView, tableColumn TableColumn, row int) bool - _TableViewDidDragTableColumn func(tableView TableView, tableColumn TableColumn) - _SelectionShouldChangeInTableView func(tableView TableView) bool - _TableViewViewForTableColumnRow func(tableView TableView, tableColumn TableColumn, row int) View - _TableViewRowActionsForRowEdge func(tableView TableView, row int, edge TableRowActionEdge) []TableViewRowAction - _TableViewShouldTrackCellForTableColumnRow func(tableView TableView, cell Cell, tableColumn TableColumn, row int) bool - _TableViewRowViewForRow func(tableView TableView, row int) TableRowView - _TableViewShouldEditTableColumnRow func(tableView TableView, tableColumn TableColumn, row int) bool - _TableViewShouldSelectTableColumn func(tableView TableView, tableColumn TableColumn) bool - _TableViewSelectionIndexesForProposedSelection func(tableView TableView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet - _TableViewDidAddRowViewForRow func(tableView TableView, rowView TableRowView, row int) - _TableViewDidClickTableColumn func(tableView TableView, tableColumn TableColumn) - _TableViewWillDisplayCellForTableColumnRow func(tableView TableView, cell objc.Object, tableColumn TableColumn, row int) - _TableViewSizeToFitWidthOfColumn func(tableView TableView, column int) float64 - _TableViewShouldSelectRow func(tableView TableView, row int) bool - _TableViewColumnDidMove func(notification foundation.Notification) - _TableViewSelectionIsChanging func(notification foundation.Notification) - _TableViewMouseDownInHeaderOfTableColumn func(tableView TableView, tableColumn TableColumn) - _TableViewDidRemoveRowViewForRow func(tableView TableView, rowView TableRowView, row int) - _TableViewShouldReorderColumnToColumn func(tableView TableView, columnIndex int, newColumnIndex int) bool - _TableViewSelectionDidChange func(notification foundation.Notification) - _TableViewShouldTypeSelectForEventWithCurrentSearchString func(tableView TableView, event Event, searchString string) bool - _TableViewToolTipForCellRectTableColumnRowMouseLocation func(tableView TableView, cell Cell, rect foundation.RectPointer, tableColumn TableColumn, row int, mouseLocation foundation.Point) string - _TableViewColumnDidResize func(notification foundation.Notification) - _TableViewHeightOfRow func(tableView TableView, row int) float64 -} - -func (di *TableViewDelegate) HasTableViewTypeSelectStringForTableColumnRow() bool { - return di._TableViewTypeSelectStringForTableColumnRow != nil -} - -// Asks the delegate to provide an alternative text value used for type selection for the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1530001-tableview?language=objc -func (di *TableViewDelegate) SetTableViewTypeSelectStringForTableColumnRow(f func(tableView TableView, tableColumn TableColumn, row int) string) { - di._TableViewTypeSelectStringForTableColumnRow = f -} - -// Asks the delegate to provide an alternative text value used for type selection for the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1530001-tableview?language=objc -func (di *TableViewDelegate) TableViewTypeSelectStringForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) string { - return di._TableViewTypeSelectStringForTableColumnRow(tableView, tableColumn, row) -} -func (di *TableViewDelegate) HasTableViewDataCellForTableColumnRow() bool { - return di._TableViewDataCellForTableColumnRow != nil -} - -// Asks the delegate for a custom data cell for the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1529321-tableview?language=objc -func (di *TableViewDelegate) SetTableViewDataCellForTableColumnRow(f func(tableView TableView, tableColumn TableColumn, row int) Cell) { - di._TableViewDataCellForTableColumnRow = f -} - -// Asks the delegate for a custom data cell for the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1529321-tableview?language=objc -func (di *TableViewDelegate) TableViewDataCellForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) Cell { - return di._TableViewDataCellForTableColumnRow(tableView, tableColumn, row) -} -func (di *TableViewDelegate) HasTableViewNextTypeSelectMatchFromRowToRowForString() bool { - return di._TableViewNextTypeSelectMatchFromRowToRowForString != nil -} - -// Asks the delegate for the row within the specified search range that matches the specified string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1534757-tableview?language=objc -func (di *TableViewDelegate) SetTableViewNextTypeSelectMatchFromRowToRowForString(f func(tableView TableView, startRow int, endRow int, searchString string) int) { - di._TableViewNextTypeSelectMatchFromRowToRowForString = f -} - -// Asks the delegate for the row within the specified search range that matches the specified string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1534757-tableview?language=objc -func (di *TableViewDelegate) TableViewNextTypeSelectMatchFromRowToRowForString(tableView TableView, startRow int, endRow int, searchString string) int { - return di._TableViewNextTypeSelectMatchFromRowToRowForString(tableView, startRow, endRow, searchString) -} -func (di *TableViewDelegate) HasTableViewIsGroupRow() bool { - return di._TableViewIsGroupRow != nil -} - -// Returns whether the specified row is a group row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526676-tableview?language=objc -func (di *TableViewDelegate) SetTableViewIsGroupRow(f func(tableView TableView, row int) bool) { - di._TableViewIsGroupRow = f -} - -// Returns whether the specified row is a group row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526676-tableview?language=objc -func (di *TableViewDelegate) TableViewIsGroupRow(tableView TableView, row int) bool { - return di._TableViewIsGroupRow(tableView, row) -} -func (di *TableViewDelegate) HasTableViewShouldShowCellExpansionForTableColumnRow() bool { - return di._TableViewShouldShowCellExpansionForTableColumnRow != nil -} - -// Asks the delegate if an expansion tooltip should be displayed for a specific row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535567-tableview?language=objc -func (di *TableViewDelegate) SetTableViewShouldShowCellExpansionForTableColumnRow(f func(tableView TableView, tableColumn TableColumn, row int) bool) { - di._TableViewShouldShowCellExpansionForTableColumnRow = f -} - -// Asks the delegate if an expansion tooltip should be displayed for a specific row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535567-tableview?language=objc -func (di *TableViewDelegate) TableViewShouldShowCellExpansionForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) bool { - return di._TableViewShouldShowCellExpansionForTableColumnRow(tableView, tableColumn, row) -} -func (di *TableViewDelegate) HasTableViewDidDragTableColumn() bool { - return di._TableViewDidDragTableColumn != nil -} - -// Tells the delegate that the specified table column was dragged. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535732-tableview?language=objc -func (di *TableViewDelegate) SetTableViewDidDragTableColumn(f func(tableView TableView, tableColumn TableColumn)) { - di._TableViewDidDragTableColumn = f -} - -// Tells the delegate that the specified table column was dragged. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535732-tableview?language=objc -func (di *TableViewDelegate) TableViewDidDragTableColumn(tableView TableView, tableColumn TableColumn) { - di._TableViewDidDragTableColumn(tableView, tableColumn) -} -func (di *TableViewDelegate) HasSelectionShouldChangeInTableView() bool { - return di._SelectionShouldChangeInTableView != nil -} - -// Asks the delegate if the user is allowed to change the selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533949-selectionshouldchangeintableview?language=objc -func (di *TableViewDelegate) SetSelectionShouldChangeInTableView(f func(tableView TableView) bool) { - di._SelectionShouldChangeInTableView = f -} - -// Asks the delegate if the user is allowed to change the selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533949-selectionshouldchangeintableview?language=objc -func (di *TableViewDelegate) SelectionShouldChangeInTableView(tableView TableView) bool { - return di._SelectionShouldChangeInTableView(tableView) -} -func (di *TableViewDelegate) HasTableViewViewForTableColumnRow() bool { - return di._TableViewViewForTableColumnRow != nil -} - -// Asks the delegate for a view to display the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527449-tableview?language=objc -func (di *TableViewDelegate) SetTableViewViewForTableColumnRow(f func(tableView TableView, tableColumn TableColumn, row int) View) { - di._TableViewViewForTableColumnRow = f -} - -// Asks the delegate for a view to display the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527449-tableview?language=objc -func (di *TableViewDelegate) TableViewViewForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) View { - return di._TableViewViewForTableColumnRow(tableView, tableColumn, row) -} -func (di *TableViewDelegate) HasTableViewRowActionsForRowEdge() bool { - return di._TableViewRowActionsForRowEdge != nil -} - -// Asks the delegate to provide an array of row actions to be attached to the specified edge of a table row and displayed when the user swipes horizontally across the row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1532060-tableview?language=objc -func (di *TableViewDelegate) SetTableViewRowActionsForRowEdge(f func(tableView TableView, row int, edge TableRowActionEdge) []TableViewRowAction) { - di._TableViewRowActionsForRowEdge = f -} - -// Asks the delegate to provide an array of row actions to be attached to the specified edge of a table row and displayed when the user swipes horizontally across the row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1532060-tableview?language=objc -func (di *TableViewDelegate) TableViewRowActionsForRowEdge(tableView TableView, row int, edge TableRowActionEdge) []TableViewRowAction { - return di._TableViewRowActionsForRowEdge(tableView, row, edge) -} -func (di *TableViewDelegate) HasTableViewShouldTrackCellForTableColumnRow() bool { - return di._TableViewShouldTrackCellForTableColumnRow != nil -} - -// Asks the delegate whether the specified cell should be tracked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533564-tableview?language=objc -func (di *TableViewDelegate) SetTableViewShouldTrackCellForTableColumnRow(f func(tableView TableView, cell Cell, tableColumn TableColumn, row int) bool) { - di._TableViewShouldTrackCellForTableColumnRow = f -} - -// Asks the delegate whether the specified cell should be tracked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533564-tableview?language=objc -func (di *TableViewDelegate) TableViewShouldTrackCellForTableColumnRow(tableView TableView, cell Cell, tableColumn TableColumn, row int) bool { - return di._TableViewShouldTrackCellForTableColumnRow(tableView, cell, tableColumn, row) -} -func (di *TableViewDelegate) HasTableViewRowViewForRow() bool { - return di._TableViewRowViewForRow != nil -} - -// Asks the delegate for a view to display the specified row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1532417-tableview?language=objc -func (di *TableViewDelegate) SetTableViewRowViewForRow(f func(tableView TableView, row int) TableRowView) { - di._TableViewRowViewForRow = f -} - -// Asks the delegate for a view to display the specified row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1532417-tableview?language=objc -func (di *TableViewDelegate) TableViewRowViewForRow(tableView TableView, row int) TableRowView { - return di._TableViewRowViewForRow(tableView, row) -} -func (di *TableViewDelegate) HasTableViewShouldEditTableColumnRow() bool { - return di._TableViewShouldEditTableColumnRow != nil -} - -// Asks the delegate if the cell at the specified row and column can be edited. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527305-tableview?language=objc -func (di *TableViewDelegate) SetTableViewShouldEditTableColumnRow(f func(tableView TableView, tableColumn TableColumn, row int) bool) { - di._TableViewShouldEditTableColumnRow = f + _TableViewSelectionDidChange func(notification foundation.Notification) + _TableViewColumnDidResize func(notification foundation.Notification) + _TableViewSelectionIsChanging func(notification foundation.Notification) + _TableViewDidClickTableColumn func(tableView TableView, tableColumn TableColumn) + _SelectionShouldChangeInTableView func(tableView TableView) bool + _TableViewColumnDidMove func(notification foundation.Notification) } -// Asks the delegate if the cell at the specified row and column can be edited. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527305-tableview?language=objc -func (di *TableViewDelegate) TableViewShouldEditTableColumnRow(tableView TableView, tableColumn TableColumn, row int) bool { - return di._TableViewShouldEditTableColumnRow(tableView, tableColumn, row) -} -func (di *TableViewDelegate) HasTableViewShouldSelectTableColumn() bool { - return di._TableViewShouldSelectTableColumn != nil +func (di *TableViewDelegate) HasTableViewSelectionDidChange() bool { + return di._TableViewSelectionDidChange != nil } -// Asks the delegate whether the specified table column can be selected. [Full Topic] +// Tells the delegate that the table view’s selection has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527204-tableview?language=objc -func (di *TableViewDelegate) SetTableViewShouldSelectTableColumn(f func(tableView TableView, tableColumn TableColumn) bool) { - di._TableViewShouldSelectTableColumn = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1528567-tableviewselectiondidchange?language=objc +func (di *TableViewDelegate) SetTableViewSelectionDidChange(f func(notification foundation.Notification)) { + di._TableViewSelectionDidChange = f } -// Asks the delegate whether the specified table column can be selected. [Full Topic] +// Tells the delegate that the table view’s selection has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527204-tableview?language=objc -func (di *TableViewDelegate) TableViewShouldSelectTableColumn(tableView TableView, tableColumn TableColumn) bool { - return di._TableViewShouldSelectTableColumn(tableView, tableColumn) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1528567-tableviewselectiondidchange?language=objc +func (di *TableViewDelegate) TableViewSelectionDidChange(notification foundation.Notification) { + di._TableViewSelectionDidChange(notification) } -func (di *TableViewDelegate) HasTableViewSelectionIndexesForProposedSelection() bool { - return di._TableViewSelectionIndexesForProposedSelection != nil +func (di *TableViewDelegate) HasTableViewColumnDidResize() bool { + return di._TableViewColumnDidResize != nil } -// Asks the delegate to accept or reject the proposed selection. [Full Topic] +// Tells the delegate that a table column was resized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1532829-tableview?language=objc -func (di *TableViewDelegate) SetTableViewSelectionIndexesForProposedSelection(f func(tableView TableView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet) { - di._TableViewSelectionIndexesForProposedSelection = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535901-tableviewcolumndidresize?language=objc +func (di *TableViewDelegate) SetTableViewColumnDidResize(f func(notification foundation.Notification)) { + di._TableViewColumnDidResize = f } -// Asks the delegate to accept or reject the proposed selection. [Full Topic] +// Tells the delegate that a table column was resized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1532829-tableview?language=objc -func (di *TableViewDelegate) TableViewSelectionIndexesForProposedSelection(tableView TableView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet { - return di._TableViewSelectionIndexesForProposedSelection(tableView, proposedSelectionIndexes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535901-tableviewcolumndidresize?language=objc +func (di *TableViewDelegate) TableViewColumnDidResize(notification foundation.Notification) { + di._TableViewColumnDidResize(notification) } -func (di *TableViewDelegate) HasTableViewDidAddRowViewForRow() bool { - return di._TableViewDidAddRowViewForRow != nil +func (di *TableViewDelegate) HasTableViewSelectionIsChanging() bool { + return di._TableViewSelectionIsChanging != nil } -// Tells the delegate that a row view was added at the specified row. [Full Topic] +// Tells the delegate that the table view’s selection is in the process of changing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527434-tableview?language=objc -func (di *TableViewDelegate) SetTableViewDidAddRowViewForRow(f func(tableView TableView, rowView TableRowView, row int)) { - di._TableViewDidAddRowViewForRow = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1530812-tableviewselectionischanging?language=objc +func (di *TableViewDelegate) SetTableViewSelectionIsChanging(f func(notification foundation.Notification)) { + di._TableViewSelectionIsChanging = f } -// Tells the delegate that a row view was added at the specified row. [Full Topic] +// Tells the delegate that the table view’s selection is in the process of changing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527434-tableview?language=objc -func (di *TableViewDelegate) TableViewDidAddRowViewForRow(tableView TableView, rowView TableRowView, row int) { - di._TableViewDidAddRowViewForRow(tableView, rowView, row) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1530812-tableviewselectionischanging?language=objc +func (di *TableViewDelegate) TableViewSelectionIsChanging(notification foundation.Notification) { + di._TableViewSelectionIsChanging(notification) } func (di *TableViewDelegate) HasTableViewDidClickTableColumn() bool { return di._TableViewDidClickTableColumn != nil @@ -435,56 +116,22 @@ func (di *TableViewDelegate) SetTableViewDidClickTableColumn(f func(tableView Ta func (di *TableViewDelegate) TableViewDidClickTableColumn(tableView TableView, tableColumn TableColumn) { di._TableViewDidClickTableColumn(tableView, tableColumn) } -func (di *TableViewDelegate) HasTableViewWillDisplayCellForTableColumnRow() bool { - return di._TableViewWillDisplayCellForTableColumnRow != nil -} - -// Tells the delegate that the table view will display the specified cell at the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533829-tableview?language=objc -func (di *TableViewDelegate) SetTableViewWillDisplayCellForTableColumnRow(f func(tableView TableView, cell objc.Object, tableColumn TableColumn, row int)) { - di._TableViewWillDisplayCellForTableColumnRow = f -} - -// Tells the delegate that the table view will display the specified cell at the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533829-tableview?language=objc -func (di *TableViewDelegate) TableViewWillDisplayCellForTableColumnRow(tableView TableView, cell objc.Object, tableColumn TableColumn, row int) { - di._TableViewWillDisplayCellForTableColumnRow(tableView, cell, tableColumn, row) -} -func (di *TableViewDelegate) HasTableViewSizeToFitWidthOfColumn() bool { - return di._TableViewSizeToFitWidthOfColumn != nil -} - -// Asks the delegate to provide custom sizing behavior when a column’s resize divider is double clicked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526429-tableview?language=objc -func (di *TableViewDelegate) SetTableViewSizeToFitWidthOfColumn(f func(tableView TableView, column int) float64) { - di._TableViewSizeToFitWidthOfColumn = f -} - -// Asks the delegate to provide custom sizing behavior when a column’s resize divider is double clicked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526429-tableview?language=objc -func (di *TableViewDelegate) TableViewSizeToFitWidthOfColumn(tableView TableView, column int) float64 { - return di._TableViewSizeToFitWidthOfColumn(tableView, column) -} -func (di *TableViewDelegate) HasTableViewShouldSelectRow() bool { - return di._TableViewShouldSelectRow != nil +func (di *TableViewDelegate) HasSelectionShouldChangeInTableView() bool { + return di._SelectionShouldChangeInTableView != nil } -// Asks the delegate if the table view should allow selection of the specified row. [Full Topic] +// Asks the delegate if the user is allowed to change the selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526916-tableview?language=objc -func (di *TableViewDelegate) SetTableViewShouldSelectRow(f func(tableView TableView, row int) bool) { - di._TableViewShouldSelectRow = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533949-selectionshouldchangeintableview?language=objc +func (di *TableViewDelegate) SetSelectionShouldChangeInTableView(f func(tableView TableView) bool) { + di._SelectionShouldChangeInTableView = f } -// Asks the delegate if the table view should allow selection of the specified row. [Full Topic] +// Asks the delegate if the user is allowed to change the selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526916-tableview?language=objc -func (di *TableViewDelegate) TableViewShouldSelectRow(tableView TableView, row int) bool { - return di._TableViewShouldSelectRow(tableView, row) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533949-selectionshouldchangeintableview?language=objc +func (di *TableViewDelegate) SelectionShouldChangeInTableView(tableView TableView) bool { + return di._SelectionShouldChangeInTableView(tableView) } func (di *TableViewDelegate) HasTableViewColumnDidMove() bool { return di._TableViewColumnDidMove != nil @@ -503,159 +150,6 @@ func (di *TableViewDelegate) SetTableViewColumnDidMove(f func(notification found func (di *TableViewDelegate) TableViewColumnDidMove(notification foundation.Notification) { di._TableViewColumnDidMove(notification) } -func (di *TableViewDelegate) HasTableViewSelectionIsChanging() bool { - return di._TableViewSelectionIsChanging != nil -} - -// Tells the delegate that the table view’s selection is in the process of changing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1530812-tableviewselectionischanging?language=objc -func (di *TableViewDelegate) SetTableViewSelectionIsChanging(f func(notification foundation.Notification)) { - di._TableViewSelectionIsChanging = f -} - -// Tells the delegate that the table view’s selection is in the process of changing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1530812-tableviewselectionischanging?language=objc -func (di *TableViewDelegate) TableViewSelectionIsChanging(notification foundation.Notification) { - di._TableViewSelectionIsChanging(notification) -} -func (di *TableViewDelegate) HasTableViewMouseDownInHeaderOfTableColumn() bool { - return di._TableViewMouseDownInHeaderOfTableColumn != nil -} - -// Tells the delegate that the mouse button was clicked in the specified table column’s header. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1531711-tableview?language=objc -func (di *TableViewDelegate) SetTableViewMouseDownInHeaderOfTableColumn(f func(tableView TableView, tableColumn TableColumn)) { - di._TableViewMouseDownInHeaderOfTableColumn = f -} - -// Tells the delegate that the mouse button was clicked in the specified table column’s header. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1531711-tableview?language=objc -func (di *TableViewDelegate) TableViewMouseDownInHeaderOfTableColumn(tableView TableView, tableColumn TableColumn) { - di._TableViewMouseDownInHeaderOfTableColumn(tableView, tableColumn) -} -func (di *TableViewDelegate) HasTableViewDidRemoveRowViewForRow() bool { - return di._TableViewDidRemoveRowViewForRow != nil -} - -// Tells the delegate that a row view was removed from the table at the specified row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1528674-tableview?language=objc -func (di *TableViewDelegate) SetTableViewDidRemoveRowViewForRow(f func(tableView TableView, rowView TableRowView, row int)) { - di._TableViewDidRemoveRowViewForRow = f -} - -// Tells the delegate that a row view was removed from the table at the specified row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1528674-tableview?language=objc -func (di *TableViewDelegate) TableViewDidRemoveRowViewForRow(tableView TableView, rowView TableRowView, row int) { - di._TableViewDidRemoveRowViewForRow(tableView, rowView, row) -} -func (di *TableViewDelegate) HasTableViewShouldReorderColumnToColumn() bool { - return di._TableViewShouldReorderColumnToColumn != nil -} - -// Asks the delegate to allow or prohibit the specified column to be dragged to a new location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1534434-tableview?language=objc -func (di *TableViewDelegate) SetTableViewShouldReorderColumnToColumn(f func(tableView TableView, columnIndex int, newColumnIndex int) bool) { - di._TableViewShouldReorderColumnToColumn = f -} - -// Asks the delegate to allow or prohibit the specified column to be dragged to a new location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1534434-tableview?language=objc -func (di *TableViewDelegate) TableViewShouldReorderColumnToColumn(tableView TableView, columnIndex int, newColumnIndex int) bool { - return di._TableViewShouldReorderColumnToColumn(tableView, columnIndex, newColumnIndex) -} -func (di *TableViewDelegate) HasTableViewSelectionDidChange() bool { - return di._TableViewSelectionDidChange != nil -} - -// Tells the delegate that the table view’s selection has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1528567-tableviewselectiondidchange?language=objc -func (di *TableViewDelegate) SetTableViewSelectionDidChange(f func(notification foundation.Notification)) { - di._TableViewSelectionDidChange = f -} - -// Tells the delegate that the table view’s selection has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1528567-tableviewselectiondidchange?language=objc -func (di *TableViewDelegate) TableViewSelectionDidChange(notification foundation.Notification) { - di._TableViewSelectionDidChange(notification) -} -func (di *TableViewDelegate) HasTableViewShouldTypeSelectForEventWithCurrentSearchString() bool { - return di._TableViewShouldTypeSelectForEventWithCurrentSearchString != nil -} - -// Asks the delegate to allow or deny type select for the specified event and current search string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526347-tableview?language=objc -func (di *TableViewDelegate) SetTableViewShouldTypeSelectForEventWithCurrentSearchString(f func(tableView TableView, event Event, searchString string) bool) { - di._TableViewShouldTypeSelectForEventWithCurrentSearchString = f -} - -// Asks the delegate to allow or deny type select for the specified event and current search string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526347-tableview?language=objc -func (di *TableViewDelegate) TableViewShouldTypeSelectForEventWithCurrentSearchString(tableView TableView, event Event, searchString string) bool { - return di._TableViewShouldTypeSelectForEventWithCurrentSearchString(tableView, event, searchString) -} -func (di *TableViewDelegate) HasTableViewToolTipForCellRectTableColumnRowMouseLocation() bool { - return di._TableViewToolTipForCellRectTableColumnRowMouseLocation != nil -} - -// Asks the delegate for a string to display in a tooltip for the specified cell in the column and row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526097-tableview?language=objc -func (di *TableViewDelegate) SetTableViewToolTipForCellRectTableColumnRowMouseLocation(f func(tableView TableView, cell Cell, rect foundation.RectPointer, tableColumn TableColumn, row int, mouseLocation foundation.Point) string) { - di._TableViewToolTipForCellRectTableColumnRowMouseLocation = f -} - -// Asks the delegate for a string to display in a tooltip for the specified cell in the column and row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526097-tableview?language=objc -func (di *TableViewDelegate) TableViewToolTipForCellRectTableColumnRowMouseLocation(tableView TableView, cell Cell, rect foundation.RectPointer, tableColumn TableColumn, row int, mouseLocation foundation.Point) string { - return di._TableViewToolTipForCellRectTableColumnRowMouseLocation(tableView, cell, rect, tableColumn, row, mouseLocation) -} -func (di *TableViewDelegate) HasTableViewColumnDidResize() bool { - return di._TableViewColumnDidResize != nil -} - -// Tells the delegate that a table column was resized. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535901-tableviewcolumndidresize?language=objc -func (di *TableViewDelegate) SetTableViewColumnDidResize(f func(notification foundation.Notification)) { - di._TableViewColumnDidResize = f -} - -// Tells the delegate that a table column was resized. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535901-tableviewcolumndidresize?language=objc -func (di *TableViewDelegate) TableViewColumnDidResize(notification foundation.Notification) { - di._TableViewColumnDidResize(notification) -} -func (di *TableViewDelegate) HasTableViewHeightOfRow() bool { - return di._TableViewHeightOfRow != nil -} - -// Asks the delegate for the height of the specified row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1529684-tableview?language=objc -func (di *TableViewDelegate) SetTableViewHeightOfRow(f func(tableView TableView, row int) float64) { - di._TableViewHeightOfRow = f -} - -// Asks the delegate for the height of the specified row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1529684-tableview?language=objc -func (di *TableViewDelegate) TableViewHeightOfRow(tableView TableView, row int) float64 { - return di._TableViewHeightOfRow(tableView, row) -} // ensure impl type implements protocol interface var _ PTableViewDelegate = (*TableViewDelegateObject)(nil) @@ -665,182 +159,37 @@ type TableViewDelegateObject struct { ControlTextEditingDelegateObject } -func (t_ TableViewDelegateObject) HasTableViewTypeSelectStringForTableColumnRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:typeSelectStringForTableColumn:row:")) -} - -// Asks the delegate to provide an alternative text value used for type selection for the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1530001-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewTypeSelectStringForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) string { - rv := objc.Call[string](t_, objc.Sel("tableView:typeSelectStringForTableColumn:row:"), tableView, tableColumn, row) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewDataCellForTableColumnRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:dataCellForTableColumn:row:")) -} - -// Asks the delegate for a custom data cell for the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1529321-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewDataCellForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) Cell { - rv := objc.Call[Cell](t_, objc.Sel("tableView:dataCellForTableColumn:row:"), tableView, tableColumn, row) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewNextTypeSelectMatchFromRowToRowForString() bool { - return t_.RespondsToSelector(objc.Sel("tableView:nextTypeSelectMatchFromRow:toRow:forString:")) -} - -// Asks the delegate for the row within the specified search range that matches the specified string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1534757-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewNextTypeSelectMatchFromRowToRowForString(tableView TableView, startRow int, endRow int, searchString string) int { - rv := objc.Call[int](t_, objc.Sel("tableView:nextTypeSelectMatchFromRow:toRow:forString:"), tableView, startRow, endRow, searchString) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewIsGroupRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:isGroupRow:")) -} - -// Returns whether the specified row is a group row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526676-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewIsGroupRow(tableView TableView, row int) bool { - rv := objc.Call[bool](t_, objc.Sel("tableView:isGroupRow:"), tableView, row) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewShouldShowCellExpansionForTableColumnRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:shouldShowCellExpansionForTableColumn:row:")) -} - -// Asks the delegate if an expansion tooltip should be displayed for a specific row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535567-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewShouldShowCellExpansionForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) bool { - rv := objc.Call[bool](t_, objc.Sel("tableView:shouldShowCellExpansionForTableColumn:row:"), tableView, tableColumn, row) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewDidDragTableColumn() bool { - return t_.RespondsToSelector(objc.Sel("tableView:didDragTableColumn:")) -} - -// Tells the delegate that the specified table column was dragged. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535732-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewDidDragTableColumn(tableView TableView, tableColumn TableColumn) { - objc.Call[objc.Void](t_, objc.Sel("tableView:didDragTableColumn:"), tableView, tableColumn) -} - -func (t_ TableViewDelegateObject) HasSelectionShouldChangeInTableView() bool { - return t_.RespondsToSelector(objc.Sel("selectionShouldChangeInTableView:")) -} - -// Asks the delegate if the user is allowed to change the selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533949-selectionshouldchangeintableview?language=objc -func (t_ TableViewDelegateObject) SelectionShouldChangeInTableView(tableView TableView) bool { - rv := objc.Call[bool](t_, objc.Sel("selectionShouldChangeInTableView:"), tableView) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewViewForTableColumnRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:viewForTableColumn:row:")) -} - -// Asks the delegate for a view to display the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527449-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewViewForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) View { - rv := objc.Call[View](t_, objc.Sel("tableView:viewForTableColumn:row:"), tableView, tableColumn, row) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewRowActionsForRowEdge() bool { - return t_.RespondsToSelector(objc.Sel("tableView:rowActionsForRow:edge:")) -} - -// Asks the delegate to provide an array of row actions to be attached to the specified edge of a table row and displayed when the user swipes horizontally across the row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1532060-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewRowActionsForRowEdge(tableView TableView, row int, edge TableRowActionEdge) []TableViewRowAction { - rv := objc.Call[[]TableViewRowAction](t_, objc.Sel("tableView:rowActionsForRow:edge:"), tableView, row, edge) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewShouldTrackCellForTableColumnRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:shouldTrackCell:forTableColumn:row:")) -} - -// Asks the delegate whether the specified cell should be tracked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533564-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewShouldTrackCellForTableColumnRow(tableView TableView, cell Cell, tableColumn TableColumn, row int) bool { - rv := objc.Call[bool](t_, objc.Sel("tableView:shouldTrackCell:forTableColumn:row:"), tableView, cell, tableColumn, row) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewRowViewForRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:rowViewForRow:")) -} - -// Asks the delegate for a view to display the specified row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1532417-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewRowViewForRow(tableView TableView, row int) TableRowView { - rv := objc.Call[TableRowView](t_, objc.Sel("tableView:rowViewForRow:"), tableView, row) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewShouldEditTableColumnRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:shouldEditTableColumn:row:")) -} - -// Asks the delegate if the cell at the specified row and column can be edited. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527305-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewShouldEditTableColumnRow(tableView TableView, tableColumn TableColumn, row int) bool { - rv := objc.Call[bool](t_, objc.Sel("tableView:shouldEditTableColumn:row:"), tableView, tableColumn, row) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewShouldSelectTableColumn() bool { - return t_.RespondsToSelector(objc.Sel("tableView:shouldSelectTableColumn:")) +func (t_ TableViewDelegateObject) HasTableViewSelectionDidChange() bool { + return t_.RespondsToSelector(objc.Sel("tableViewSelectionDidChange:")) } -// Asks the delegate whether the specified table column can be selected. [Full Topic] +// Tells the delegate that the table view’s selection has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527204-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewShouldSelectTableColumn(tableView TableView, tableColumn TableColumn) bool { - rv := objc.Call[bool](t_, objc.Sel("tableView:shouldSelectTableColumn:"), tableView, tableColumn) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1528567-tableviewselectiondidchange?language=objc +func (t_ TableViewDelegateObject) TableViewSelectionDidChange(notification foundation.Notification) { + objc.Call[objc.Void](t_, objc.Sel("tableViewSelectionDidChange:"), notification) } -func (t_ TableViewDelegateObject) HasTableViewSelectionIndexesForProposedSelection() bool { - return t_.RespondsToSelector(objc.Sel("tableView:selectionIndexesForProposedSelection:")) +func (t_ TableViewDelegateObject) HasTableViewColumnDidResize() bool { + return t_.RespondsToSelector(objc.Sel("tableViewColumnDidResize:")) } -// Asks the delegate to accept or reject the proposed selection. [Full Topic] +// Tells the delegate that a table column was resized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1532829-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewSelectionIndexesForProposedSelection(tableView TableView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](t_, objc.Sel("tableView:selectionIndexesForProposedSelection:"), tableView, proposedSelectionIndexes) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535901-tableviewcolumndidresize?language=objc +func (t_ TableViewDelegateObject) TableViewColumnDidResize(notification foundation.Notification) { + objc.Call[objc.Void](t_, objc.Sel("tableViewColumnDidResize:"), notification) } -func (t_ TableViewDelegateObject) HasTableViewDidAddRowViewForRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:didAddRowView:forRow:")) +func (t_ TableViewDelegateObject) HasTableViewSelectionIsChanging() bool { + return t_.RespondsToSelector(objc.Sel("tableViewSelectionIsChanging:")) } -// Tells the delegate that a row view was added at the specified row. [Full Topic] +// Tells the delegate that the table view’s selection is in the process of changing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1527434-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewDidAddRowViewForRow(tableView TableView, rowView TableRowView, row int) { - objc.Call[objc.Void](t_, objc.Sel("tableView:didAddRowView:forRow:"), tableView, rowView, row) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1530812-tableviewselectionischanging?language=objc +func (t_ TableViewDelegateObject) TableViewSelectionIsChanging(notification foundation.Notification) { + objc.Call[objc.Void](t_, objc.Sel("tableViewSelectionIsChanging:"), notification) } func (t_ TableViewDelegateObject) HasTableViewDidClickTableColumn() bool { @@ -854,38 +203,15 @@ func (t_ TableViewDelegateObject) TableViewDidClickTableColumn(tableView TableVi objc.Call[objc.Void](t_, objc.Sel("tableView:didClickTableColumn:"), tableView, tableColumn) } -func (t_ TableViewDelegateObject) HasTableViewWillDisplayCellForTableColumnRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:willDisplayCell:forTableColumn:row:")) -} - -// Tells the delegate that the table view will display the specified cell at the specified row and column. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533829-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewWillDisplayCellForTableColumnRow(tableView TableView, cell objc.Object, tableColumn TableColumn, row int) { - objc.Call[objc.Void](t_, objc.Sel("tableView:willDisplayCell:forTableColumn:row:"), tableView, cell, tableColumn, row) -} - -func (t_ TableViewDelegateObject) HasTableViewSizeToFitWidthOfColumn() bool { - return t_.RespondsToSelector(objc.Sel("tableView:sizeToFitWidthOfColumn:")) -} - -// Asks the delegate to provide custom sizing behavior when a column’s resize divider is double clicked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526429-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewSizeToFitWidthOfColumn(tableView TableView, column int) float64 { - rv := objc.Call[float64](t_, objc.Sel("tableView:sizeToFitWidthOfColumn:"), tableView, column) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewShouldSelectRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:shouldSelectRow:")) +func (t_ TableViewDelegateObject) HasSelectionShouldChangeInTableView() bool { + return t_.RespondsToSelector(objc.Sel("selectionShouldChangeInTableView:")) } -// Asks the delegate if the table view should allow selection of the specified row. [Full Topic] +// Asks the delegate if the user is allowed to change the selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526916-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewShouldSelectRow(tableView TableView, row int) bool { - rv := objc.Call[bool](t_, objc.Sel("tableView:shouldSelectRow:"), tableView, row) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533949-selectionshouldchangeintableview?language=objc +func (t_ TableViewDelegateObject) SelectionShouldChangeInTableView(tableView TableView) bool { + rv := objc.Call[bool](t_, objc.Sel("selectionShouldChangeInTableView:"), tableView) return rv } @@ -899,106 +225,3 @@ func (t_ TableViewDelegateObject) HasTableViewColumnDidMove() bool { func (t_ TableViewDelegateObject) TableViewColumnDidMove(notification foundation.Notification) { objc.Call[objc.Void](t_, objc.Sel("tableViewColumnDidMove:"), notification) } - -func (t_ TableViewDelegateObject) HasTableViewSelectionIsChanging() bool { - return t_.RespondsToSelector(objc.Sel("tableViewSelectionIsChanging:")) -} - -// Tells the delegate that the table view’s selection is in the process of changing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1530812-tableviewselectionischanging?language=objc -func (t_ TableViewDelegateObject) TableViewSelectionIsChanging(notification foundation.Notification) { - objc.Call[objc.Void](t_, objc.Sel("tableViewSelectionIsChanging:"), notification) -} - -func (t_ TableViewDelegateObject) HasTableViewMouseDownInHeaderOfTableColumn() bool { - return t_.RespondsToSelector(objc.Sel("tableView:mouseDownInHeaderOfTableColumn:")) -} - -// Tells the delegate that the mouse button was clicked in the specified table column’s header. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1531711-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewMouseDownInHeaderOfTableColumn(tableView TableView, tableColumn TableColumn) { - objc.Call[objc.Void](t_, objc.Sel("tableView:mouseDownInHeaderOfTableColumn:"), tableView, tableColumn) -} - -func (t_ TableViewDelegateObject) HasTableViewDidRemoveRowViewForRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:didRemoveRowView:forRow:")) -} - -// Tells the delegate that a row view was removed from the table at the specified row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1528674-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewDidRemoveRowViewForRow(tableView TableView, rowView TableRowView, row int) { - objc.Call[objc.Void](t_, objc.Sel("tableView:didRemoveRowView:forRow:"), tableView, rowView, row) -} - -func (t_ TableViewDelegateObject) HasTableViewShouldReorderColumnToColumn() bool { - return t_.RespondsToSelector(objc.Sel("tableView:shouldReorderColumn:toColumn:")) -} - -// Asks the delegate to allow or prohibit the specified column to be dragged to a new location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1534434-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewShouldReorderColumnToColumn(tableView TableView, columnIndex int, newColumnIndex int) bool { - rv := objc.Call[bool](t_, objc.Sel("tableView:shouldReorderColumn:toColumn:"), tableView, columnIndex, newColumnIndex) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewSelectionDidChange() bool { - return t_.RespondsToSelector(objc.Sel("tableViewSelectionDidChange:")) -} - -// Tells the delegate that the table view’s selection has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1528567-tableviewselectiondidchange?language=objc -func (t_ TableViewDelegateObject) TableViewSelectionDidChange(notification foundation.Notification) { - objc.Call[objc.Void](t_, objc.Sel("tableViewSelectionDidChange:"), notification) -} - -func (t_ TableViewDelegateObject) HasTableViewShouldTypeSelectForEventWithCurrentSearchString() bool { - return t_.RespondsToSelector(objc.Sel("tableView:shouldTypeSelectForEvent:withCurrentSearchString:")) -} - -// Asks the delegate to allow or deny type select for the specified event and current search string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526347-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewShouldTypeSelectForEventWithCurrentSearchString(tableView TableView, event Event, searchString string) bool { - rv := objc.Call[bool](t_, objc.Sel("tableView:shouldTypeSelectForEvent:withCurrentSearchString:"), tableView, event, searchString) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewToolTipForCellRectTableColumnRowMouseLocation() bool { - return t_.RespondsToSelector(objc.Sel("tableView:toolTipForCell:rect:tableColumn:row:mouseLocation:")) -} - -// Asks the delegate for a string to display in a tooltip for the specified cell in the column and row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1526097-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewToolTipForCellRectTableColumnRowMouseLocation(tableView TableView, cell Cell, rect foundation.RectPointer, tableColumn TableColumn, row int, mouseLocation foundation.Point) string { - rv := objc.Call[string](t_, objc.Sel("tableView:toolTipForCell:rect:tableColumn:row:mouseLocation:"), tableView, cell, rect, tableColumn, row, mouseLocation) - return rv -} - -func (t_ TableViewDelegateObject) HasTableViewColumnDidResize() bool { - return t_.RespondsToSelector(objc.Sel("tableViewColumnDidResize:")) -} - -// Tells the delegate that a table column was resized. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1535901-tableviewcolumndidresize?language=objc -func (t_ TableViewDelegateObject) TableViewColumnDidResize(notification foundation.Notification) { - objc.Call[objc.Void](t_, objc.Sel("tableViewColumnDidResize:"), notification) -} - -func (t_ TableViewDelegateObject) HasTableViewHeightOfRow() bool { - return t_.RespondsToSelector(objc.Sel("tableView:heightOfRow:")) -} - -// Asks the delegate for the height of the specified row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1529684-tableview?language=objc -func (t_ TableViewDelegateObject) TableViewHeightOfRow(tableView TableView, row int) float64 { - rv := objc.Call[float64](t_, objc.Sel("tableView:heightOfRow:"), tableView, row) - return rv -} diff --git a/macos/appkit/table_view_diffable_data_source.gen.go b/macos/appkit/table_view_diffable_data_source.gen.go index 3605ebc0..f0ea2151 100644 --- a/macos/appkit/table_view_diffable_data_source.gen.go +++ b/macos/appkit/table_view_diffable_data_source.gen.go @@ -18,14 +18,14 @@ type _TableViewDiffableDataSourceClass struct { // An interface definition for the [TableViewDiffableDataSource] class. type ITableViewDiffableDataSource interface { objc.IObject - SectionIdentifierForRow(row int) objc.Object - RowForSectionIdentifier(identifier objc.IObject) int RowForItemIdentifier(identifier objc.IObject) int ItemIdentifierForRow(row int) objc.Object - SectionHeaderViewProvider() TableViewDiffableDataSourceSectionHeaderViewProvider - SetSectionHeaderViewProvider(value TableViewDiffableDataSourceSectionHeaderViewProvider) + RowForSectionIdentifier(identifier objc.IObject) int + SectionIdentifierForRow(row int) objc.Object RowViewProvider() TableViewDiffableDataSourceRowProvider SetRowViewProvider(value TableViewDiffableDataSourceRowProvider) + SectionHeaderViewProvider() TableViewDiffableDataSourceSectionHeaderViewProvider + SetSectionHeaderViewProvider(value TableViewDiffableDataSourceSectionHeaderViewProvider) DefaultRowAnimation() TableViewAnimationOptions SetDefaultRowAnimation(value TableViewAnimationOptions) } @@ -77,22 +77,6 @@ func (t_ TableViewDiffableDataSource) Init() TableViewDiffableDataSource { return rv } -// Returns the identifier of the section containing the specified row in the snapshot. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdiffabledatasource/3553221-sectionidentifierforrow?language=objc -func (t_ TableViewDiffableDataSource) SectionIdentifierForRow(row int) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("sectionIdentifierForRow:"), row) - return rv -} - -// Returns a row for the section with the specified identifier in the table view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdiffabledatasource/3553218-rowforsectionidentifier?language=objc -func (t_ TableViewDiffableDataSource) RowForSectionIdentifier(identifier objc.IObject) int { - rv := objc.Call[int](t_, objc.Sel("rowForSectionIdentifier:"), identifier) - return rv -} - // Returns a row for the item with the specified identifier in the table view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdiffabledatasource/3553217-rowforitemidentifier?language=objc @@ -109,19 +93,20 @@ func (t_ TableViewDiffableDataSource) ItemIdentifierForRow(row int) objc.Object return rv } -// The closure that configures and returns the table view’s section header views from the diffable data source. [Full Topic] +// Returns a row for the section with the specified identifier in the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdiffabledatasource/3553220-sectionheaderviewprovider?language=objc -func (t_ TableViewDiffableDataSource) SectionHeaderViewProvider() TableViewDiffableDataSourceSectionHeaderViewProvider { - rv := objc.Call[TableViewDiffableDataSourceSectionHeaderViewProvider](t_, objc.Sel("sectionHeaderViewProvider")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdiffabledatasource/3553218-rowforsectionidentifier?language=objc +func (t_ TableViewDiffableDataSource) RowForSectionIdentifier(identifier objc.IObject) int { + rv := objc.Call[int](t_, objc.Sel("rowForSectionIdentifier:"), identifier) return rv } -// The closure that configures and returns the table view’s section header views from the diffable data source. [Full Topic] +// Returns the identifier of the section containing the specified row in the snapshot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdiffabledatasource/3553220-sectionheaderviewprovider?language=objc -func (t_ TableViewDiffableDataSource) SetSectionHeaderViewProvider(value TableViewDiffableDataSourceSectionHeaderViewProvider) { - objc.Call[objc.Void](t_, objc.Sel("setSectionHeaderViewProvider:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdiffabledatasource/3553221-sectionidentifierforrow?language=objc +func (t_ TableViewDiffableDataSource) SectionIdentifierForRow(row int) objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("sectionIdentifierForRow:"), row) + return rv } // The closure that configures and returns the table view’s row views from the diffable data source. [Full Topic] @@ -139,6 +124,21 @@ func (t_ TableViewDiffableDataSource) SetRowViewProvider(value TableViewDiffable objc.Call[objc.Void](t_, objc.Sel("setRowViewProvider:"), value) } +// The closure that configures and returns the table view’s section header views from the diffable data source. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdiffabledatasource/3553220-sectionheaderviewprovider?language=objc +func (t_ TableViewDiffableDataSource) SectionHeaderViewProvider() TableViewDiffableDataSourceSectionHeaderViewProvider { + rv := objc.Call[TableViewDiffableDataSourceSectionHeaderViewProvider](t_, objc.Sel("sectionHeaderViewProvider")) + return rv +} + +// The closure that configures and returns the table view’s section header views from the diffable data source. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdiffabledatasource/3553220-sectionheaderviewprovider?language=objc +func (t_ TableViewDiffableDataSource) SetSectionHeaderViewProvider(value TableViewDiffableDataSourceSectionHeaderViewProvider) { + objc.Call[objc.Void](t_, objc.Sel("setSectionHeaderViewProvider:"), value) +} + // The default animation the UI uses to show differences between rows. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdiffabledatasource/3553214-defaultrowanimation?language=objc diff --git a/macos/appkit/table_view_row_action.gen.go b/macos/appkit/table_view_row_action.gen.go index 4d5e4578..3317b2d1 100644 --- a/macos/appkit/table_view_row_action.gen.go +++ b/macos/appkit/table_view_row_action.gen.go @@ -18,13 +18,13 @@ type _TableViewRowActionClass struct { // An interface definition for the [TableViewRowAction] class. type ITableViewRowAction interface { objc.IObject - Image() Image - SetImage(value IImage) + Style() TableViewRowActionStyle BackgroundColor() Color SetBackgroundColor(value IColor) Title() string SetTitle(value string) - Style() TableViewRowActionStyle + Image() Image + SetImage(value IImage) } // A single action to present when the user swipes horizontally on a table row. [Full Topic] @@ -72,21 +72,14 @@ func (t_ TableViewRowAction) Init() TableViewRowAction { return rv } -// [Full Topic] +// The style applied to the action button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewrowaction/2177311-image?language=objc -func (t_ TableViewRowAction) Image() Image { - rv := objc.Call[Image](t_, objc.Sel("image")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewrowaction/1401982-style?language=objc +func (t_ TableViewRowAction) Style() TableViewRowActionStyle { + rv := objc.Call[TableViewRowActionStyle](t_, objc.Sel("style")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewrowaction/2177311-image?language=objc -func (t_ TableViewRowAction) SetImage(value IImage) { - objc.Call[objc.Void](t_, objc.Sel("setImage:"), value) -} - // The background color of the action button. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewrowaction/1401984-backgroundcolor?language=objc @@ -117,10 +110,17 @@ func (t_ TableViewRowAction) SetTitle(value string) { objc.Call[objc.Void](t_, objc.Sel("setTitle:"), value) } -// The style applied to the action button. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewrowaction/1401982-style?language=objc -func (t_ TableViewRowAction) Style() TableViewRowActionStyle { - rv := objc.Call[TableViewRowActionStyle](t_, objc.Sel("style")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewrowaction/2177311-image?language=objc +func (t_ TableViewRowAction) Image() Image { + rv := objc.Call[Image](t_, objc.Sel("image")) return rv } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewrowaction/2177311-image?language=objc +func (t_ TableViewRowAction) SetImage(value IImage) { + objc.Call[objc.Void](t_, objc.Sel("setImage:"), value) +} diff --git a/macos/appkit/text.gen.go b/macos/appkit/text.gen.go index 9feae066..a6763898 100644 --- a/macos/appkit/text.gen.go +++ b/macos/appkit/text.gen.go @@ -19,77 +19,75 @@ type _TextClass struct { // An interface definition for the [Text] class. type IText interface { IView - ReplaceCharactersInRangeWithRTFD(range_ foundation.Range, rtfdData []byte) - Underline(sender objc.IObject) - SetTextColorRange(color IColor, range_ foundation.Range) - PasteRuler(sender objc.IObject) - SelectAll(sender objc.IObject) - PasteFont(sender objc.IObject) - WriteRTFDToFileAtomically(path string, flag bool) bool Delete(sender objc.IObject) + CopyFont(sender objc.IObject) + Copy(sender objc.IObject) + PasteRuler(sender objc.IObject) RTFFromRange(range_ foundation.Range) []byte + RTFDFromRange(range_ foundation.Range) []byte + ScrollRangeToVisible(range_ foundation.Range) + SelectAll(sender objc.IObject) AlignRight(sender objc.IObject) - Superscript(sender objc.IObject) - ToggleRuler(sender objc.IObject) + Underline(sender objc.IObject) + ShowGuessPanel(sender objc.IObject) + ChangeFont(sender objc.IObject) Unscript(sender objc.IObject) + SetFontRange(font IFont, range_ foundation.Range) + AlignLeft(sender objc.IObject) ReplaceCharactersInRangeWithRTF(range_ foundation.Range, rtfData []byte) - ScrollRangeToVisible(range_ foundation.Range) - Cut(sender objc.IObject) - ReadRTFDFromFile(path string) bool - CopyFont(sender objc.IObject) - ShowGuessPanel(sender objc.IObject) - CopyRuler(sender objc.IObject) Subscript(sender objc.IObject) - SetFontRange(font IFont, range_ foundation.Range) Paste(sender objc.IObject) - AlignLeft(sender objc.IObject) - AlignCenter(sender objc.IObject) + WriteRTFDToFileAtomically(path string, flag bool) bool SizeToFit() - ChangeFont(sender objc.IObject) - ReplaceCharactersInRangeWithString(range_ foundation.Range, string_ string) + SetTextColorRange(color IColor, range_ foundation.Range) + ToggleRuler(sender objc.IObject) + AlignCenter(sender objc.IObject) + Superscript(sender objc.IObject) + ReadRTFDFromFile(path string) bool + PasteFont(sender objc.IObject) + Cut(sender objc.IObject) + CopyRuler(sender objc.IObject) CheckSpelling(sender objc.IObject) - Copy(sender objc.IObject) - RTFDFromRange(range_ foundation.Range) []byte - MinSize() foundation.Size - SetMinSize(value foundation.Size) - IsRulerVisible() bool + MaxSize() foundation.Size + SetMaxSize(value foundation.Size) + UsesFontPanel() bool + SetUsesFontPanel(value bool) IsEditable() bool SetEditable(value bool) - Font() Font - SetFont(value IFont) - ImportsGraphics() bool - SetImportsGraphics(value bool) + Alignment() TextAlignment + SetAlignment(value TextAlignment) IsHorizontallyResizable() bool SetHorizontallyResizable(value bool) + SelectedRange() foundation.Range + SetSelectedRange(value foundation.Range) + MinSize() foundation.Size + SetMinSize(value foundation.Size) Delegate() TextDelegateObject SetDelegate(value PTextDelegate) SetDelegateObject(valueObject objc.IObject) - IsVerticallyResizable() bool - SetVerticallyResizable(value bool) - String() string - SetString(value string) BackgroundColor() Color SetBackgroundColor(value IColor) - SelectedRange() foundation.Range - SetSelectedRange(value foundation.Range) - IsRichText() bool - SetRichText(value bool) - TextColor() Color - SetTextColor(value IColor) IsSelectable() bool SetSelectable(value bool) + ImportsGraphics() bool + SetImportsGraphics(value bool) + String() string + SetString(value string) DrawsBackground() bool SetDrawsBackground(value bool) - Alignment() TextAlignment - SetAlignment(value TextAlignment) - BaseWritingDirection() WritingDirection - SetBaseWritingDirection(value WritingDirection) - UsesFontPanel() bool - SetUsesFontPanel(value bool) + Font() Font + SetFont(value IFont) IsFieldEditor() bool SetFieldEditor(value bool) - MaxSize() foundation.Size - SetMaxSize(value foundation.Size) + IsVerticallyResizable() bool + SetVerticallyResizable(value bool) + IsRichText() bool + SetRichText(value bool) + IsRulerVisible() bool + TextColor() Color + SetTextColor(value IColor) + BaseWritingDirection() WritingDirection + SetBaseWritingDirection(value WritingDirection) } // The most general programmatic interface for objects that manage text. [Full Topic] @@ -139,25 +137,25 @@ func (t_ Text) Init() Text { return rv } -// Replaces the characters in the given range with RTFD text interpreted from the given RTFD data. [Full Topic] +// This action method deletes the selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1525846-replacecharactersinrange?language=objc -func (t_ Text) ReplaceCharactersInRangeWithRTFD(range_ foundation.Range, rtfdData []byte) { - objc.Call[objc.Void](t_, objc.Sel("replaceCharactersInRange:withRTFD:"), range_, rtfdData) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1524660-delete?language=objc +func (t_ Text) Delete(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("delete:"), sender) } -// Adds the underline attribute to the selected text attributes if absent; removes the attribute if present. [Full Topic] +// This action method copies the font information for the first character of the selection (or for the insertion point) onto the font pasteboard, as NSFontPboardType. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534203-underline?language=objc -func (t_ Text) Underline(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("underline:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531255-copyfont?language=objc +func (t_ Text) CopyFont(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("copyFont:"), sender) } -// Sets the text color of characters within the specified range to the specified color. [Full Topic] +// This action method copies the selected text onto the general pasteboard, in as many formats as the receiver supports. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1530110-settextcolor?language=objc -func (t_ Text) SetTextColorRange(color IColor, range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setTextColor:range:"), color, range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1525497-copy?language=objc +func (t_ Text) Copy(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("copy:"), sender) } // This action method pastes paragraph style information from the ruler pasteboard onto the selected paragraphs of a rich text object. [Full Topic] @@ -167,35 +165,6 @@ func (t_ Text) PasteRuler(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("pasteRuler:"), sender) } -// This action method selects all of the receiver’s text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527642-selectall?language=objc -func (t_ Text) SelectAll(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("selectAll:"), sender) -} - -// This action method pastes font information from the font pasteboard onto the selected text or insertion point of a rich text object, or over all text of a plain text object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531099-pastefont?language=objc -func (t_ Text) PasteFont(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("pasteFont:"), sender) -} - -// Writes the receiver’s text as RTF with attachments to a file or directory at path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527085-writertfdtofile?language=objc -func (t_ Text) WriteRTFDToFileAtomically(path string, flag bool) bool { - rv := objc.Call[bool](t_, objc.Sel("writeRTFDToFile:atomically:"), path, flag) - return rv -} - -// This action method deletes the selected text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1524660-delete?language=objc -func (t_ Text) Delete(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("delete:"), sender) -} - // Returns an NSData object that contains an RTF stream corresponding to the characters and attributes within aRange, omitting any attachment characters and attributes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527004-rtffromrange?language=objc @@ -204,39 +173,12 @@ func (t_ Text) RTFFromRange(range_ foundation.Range) []byte { return rv } -// This action method applies right alignment to selected paragraphs (or all text if the receiver is a plain text object). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526477-alignright?language=objc -func (t_ Text) AlignRight(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("alignRight:"), sender) -} - -// This action method applies a superscript attribute to selected text (or all text if the receiver is a plain text object), raising its baseline offset by a predefined amount. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1525743-superscript?language=objc -func (t_ Text) Superscript(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("superscript:"), sender) -} - -// This action method shows or hides the ruler, if the receiver is enclosed in a scroll view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535773-toggleruler?language=objc -func (t_ Text) ToggleRuler(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleRuler:"), sender) -} - -// This action method removes any superscripting or subscripting from selected text (or all text if the receiver is a plain text object). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527542-unscript?language=objc -func (t_ Text) Unscript(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("unscript:"), sender) -} - -// Replaces the characters in the given range with RTF text interpreted from the given RTF data. [Full Topic] +// Returns an NSData object that contains an RTFD stream corresponding to the characters and attributes within aRange. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527249-replacecharactersinrange?language=objc -func (t_ Text) ReplaceCharactersInRangeWithRTF(range_ foundation.Range, rtfData []byte) { - objc.Call[objc.Void](t_, objc.Sel("replaceCharactersInRange:withRTF:"), range_, rtfData) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1528394-rtfdfromrange?language=objc +func (t_ Text) RTFDFromRange(range_ foundation.Range) []byte { + rv := objc.Call[[]byte](t_, objc.Sel("RTFDFromRange:"), range_) + return rv } // Scrolls the receiver in its enclosing scroll view so the first characters of aRange are visible. [Full Topic] @@ -246,26 +188,25 @@ func (t_ Text) ScrollRangeToVisible(range_ foundation.Range) { objc.Call[objc.Void](t_, objc.Sel("scrollRangeToVisible:"), range_) } -// This action method deletes the selected text and places it onto the general pasteboard, in as many formats as the receiver supports. [Full Topic] +// This action method selects all of the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1524858-cut?language=objc -func (t_ Text) Cut(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("cut:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527642-selectall?language=objc +func (t_ Text) SelectAll(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("selectAll:"), sender) } -// Attempts to read the RTFD file at path, returning YES if successful and NO if not. [Full Topic] +// This action method applies right alignment to selected paragraphs (or all text if the receiver is a plain text object). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1532564-readrtfdfromfile?language=objc -func (t_ Text) ReadRTFDFromFile(path string) bool { - rv := objc.Call[bool](t_, objc.Sel("readRTFDFromFile:"), path) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526477-alignright?language=objc +func (t_ Text) AlignRight(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("alignRight:"), sender) } -// This action method copies the font information for the first character of the selection (or for the insertion point) onto the font pasteboard, as NSFontPboardType. [Full Topic] +// Adds the underline attribute to the selected text attributes if absent; removes the attribute if present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531255-copyfont?language=objc -func (t_ Text) CopyFont(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("copyFont:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534203-underline?language=objc +func (t_ Text) Underline(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("underline:"), sender) } // This action method opens the Spelling panel, allowing the user to make a correction during spell checking. [Full Topic] @@ -275,18 +216,18 @@ func (t_ Text) ShowGuessPanel(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("showGuessPanel:"), sender) } -// This action method copies the paragraph style information for first selected paragraph onto the ruler pasteboard, as NSRulerPboardType, and expands the selection to paragraph boundaries. [Full Topic] +// This action method changes the font of the selection for a rich text object, or of all text for a plain text object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533303-copyruler?language=objc -func (t_ Text) CopyRuler(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("copyRuler:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531459-changefont?language=objc +func (t_ Text) ChangeFont(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("changeFont:"), sender) } -// This action method applies a subscript attribute to selected text (or all text if the receiver is a plain text object), lowering its baseline offset by a predefined amount. [Full Topic] +// This action method removes any superscripting or subscripting from selected text (or all text if the receiver is a plain text object). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535373-subscript?language=objc -func (t_ Text) Subscript(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("subscript:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527542-unscript?language=objc +func (t_ Text) Unscript(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("unscript:"), sender) } // Sets the font of characters within aRange to aFont. [Full Topic] @@ -296,13 +237,6 @@ func (t_ Text) SetFontRange(font IFont, range_ foundation.Range) { objc.Call[objc.Void](t_, objc.Sel("setFont:range:"), font, range_) } -// This action method pastes text from the general pasteboard at the insertion point or over the selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527209-paste?language=objc -func (t_ Text) Paste(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("paste:"), sender) -} - // This action method applies left alignment to selected paragraphs (or all text if the receiver is a plain text object). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535705-alignleft?language=objc @@ -310,79 +244,136 @@ func (t_ Text) AlignLeft(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("alignLeft:"), sender) } -// This action method applies center alignment to selected paragraphs (or all text if the receiver is a plain text object). [Full Topic] +// Replaces the characters in the given range with RTF text interpreted from the given RTF data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535569-aligncenter?language=objc -func (t_ Text) AlignCenter(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("alignCenter:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527249-replacecharactersinrange?language=objc +func (t_ Text) ReplaceCharactersInRangeWithRTF(range_ foundation.Range, rtfData []byte) { + objc.Call[objc.Void](t_, objc.Sel("replaceCharactersInRange:withRTF:"), range_, rtfData) } -// Resizes the receiver to fit its text. [Full Topic] +// This action method applies a subscript attribute to selected text (or all text if the receiver is a plain text object), lowering its baseline offset by a predefined amount. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533991-sizetofit?language=objc -func (t_ Text) SizeToFit() { - objc.Call[objc.Void](t_, objc.Sel("sizeToFit")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535373-subscript?language=objc +func (t_ Text) Subscript(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("subscript:"), sender) } -// This action method changes the font of the selection for a rich text object, or of all text for a plain text object. [Full Topic] +// This action method pastes text from the general pasteboard at the insertion point or over the selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531459-changefont?language=objc -func (t_ Text) ChangeFont(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("changeFont:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527209-paste?language=objc +func (t_ Text) Paste(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("paste:"), sender) } -// Replaces the characters in the given range with those in the given string. [Full Topic] +// Writes the receiver’s text as RTF with attachments to a file or directory at path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1530589-replacecharactersinrange?language=objc -func (t_ Text) ReplaceCharactersInRangeWithString(range_ foundation.Range, string_ string) { - objc.Call[objc.Void](t_, objc.Sel("replaceCharactersInRange:withString:"), range_, string_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527085-writertfdtofile?language=objc +func (t_ Text) WriteRTFDToFileAtomically(path string, flag bool) bool { + rv := objc.Call[bool](t_, objc.Sel("writeRTFDToFile:atomically:"), path, flag) + return rv } -// This action method searches for a misspelled word in the receiver’s text. [Full Topic] +// Resizes the receiver to fit its text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534926-checkspelling?language=objc -func (t_ Text) CheckSpelling(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("checkSpelling:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533991-sizetofit?language=objc +func (t_ Text) SizeToFit() { + objc.Call[objc.Void](t_, objc.Sel("sizeToFit")) } -// This action method copies the selected text onto the general pasteboard, in as many formats as the receiver supports. [Full Topic] +// Sets the text color of characters within the specified range to the specified color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1525497-copy?language=objc -func (t_ Text) Copy(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("copy:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1530110-settextcolor?language=objc +func (t_ Text) SetTextColorRange(color IColor, range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setTextColor:range:"), color, range_) } -// Returns an NSData object that contains an RTFD stream corresponding to the characters and attributes within aRange. [Full Topic] +// This action method shows or hides the ruler, if the receiver is enclosed in a scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1528394-rtfdfromrange?language=objc -func (t_ Text) RTFDFromRange(range_ foundation.Range) []byte { - rv := objc.Call[[]byte](t_, objc.Sel("RTFDFromRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535773-toggleruler?language=objc +func (t_ Text) ToggleRuler(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleRuler:"), sender) +} + +// This action method applies center alignment to selected paragraphs (or all text if the receiver is a plain text object). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535569-aligncenter?language=objc +func (t_ Text) AlignCenter(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("alignCenter:"), sender) +} + +// This action method applies a superscript attribute to selected text (or all text if the receiver is a plain text object), raising its baseline offset by a predefined amount. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1525743-superscript?language=objc +func (t_ Text) Superscript(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("superscript:"), sender) +} + +// Attempts to read the RTFD file at path, returning YES if successful and NO if not. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1532564-readrtfdfromfile?language=objc +func (t_ Text) ReadRTFDFromFile(path string) bool { + rv := objc.Call[bool](t_, objc.Sel("readRTFDFromFile:"), path) return rv } -// The receiver’s minimum size. [Full Topic] +// This action method pastes font information from the font pasteboard onto the selected text or insertion point of a rich text object, or over all text of a plain text object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526222-minsize?language=objc -func (t_ Text) MinSize() foundation.Size { - rv := objc.Call[foundation.Size](t_, objc.Sel("minSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531099-pastefont?language=objc +func (t_ Text) PasteFont(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("pasteFont:"), sender) +} + +// This action method deletes the selected text and places it onto the general pasteboard, in as many formats as the receiver supports. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1524858-cut?language=objc +func (t_ Text) Cut(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("cut:"), sender) +} + +// This action method copies the paragraph style information for first selected paragraph onto the ruler pasteboard, as NSRulerPboardType, and expands the selection to paragraph boundaries. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533303-copyruler?language=objc +func (t_ Text) CopyRuler(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("copyRuler:"), sender) +} + +// This action method searches for a misspelled word in the receiver’s text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534926-checkspelling?language=objc +func (t_ Text) CheckSpelling(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkSpelling:"), sender) +} + +// The receiver’s maximum size. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535900-maxsize?language=objc +func (t_ Text) MaxSize() foundation.Size { + rv := objc.Call[foundation.Size](t_, objc.Sel("maxSize")) return rv } -// The receiver’s minimum size. [Full Topic] +// The receiver’s maximum size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526222-minsize?language=objc -func (t_ Text) SetMinSize(value foundation.Size) { - objc.Call[objc.Void](t_, objc.Sel("setMinSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535900-maxsize?language=objc +func (t_ Text) SetMaxSize(value foundation.Size) { + objc.Call[objc.Void](t_, objc.Sel("setMaxSize:"), value) } -// A Boolean value that indicates whether the receiver’s enclosing scroll view shows its ruler. [Full Topic] +// A Boolean that controls whether the receiver uses the Font panel and Font menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533732-rulervisible?language=objc -func (t_ Text) IsRulerVisible() bool { - rv := objc.Call[bool](t_, objc.Sel("isRulerVisible")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527431-usesfontpanel?language=objc +func (t_ Text) UsesFontPanel() bool { + rv := objc.Call[bool](t_, objc.Sel("usesFontPanel")) return rv } +// A Boolean that controls whether the receiver uses the Font panel and Font menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527431-usesfontpanel?language=objc +func (t_ Text) SetUsesFontPanel(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesFontPanel:"), value) +} + // A Boolean that controls whether the receiver allows the user to edit its text. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1529876-editable?language=objc @@ -398,34 +389,19 @@ func (t_ Text) SetEditable(value bool) { objc.Call[objc.Void](t_, objc.Sel("setEditable:"), value) } -// The font of all the receiver’s text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534646-font?language=objc -func (t_ Text) Font() Font { - rv := objc.Call[Font](t_, objc.Sel("font")) - return rv -} - -// The font of all the receiver’s text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534646-font?language=objc -func (t_ Text) SetFont(value IFont) { - objc.Call[objc.Void](t_, objc.Sel("setFont:"), value) -} - -// A Boolean that controls whether the receiver allows the user to import files by dragging. [Full Topic] +// The alignment of all the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531887-importsgraphics?language=objc -func (t_ Text) ImportsGraphics() bool { - rv := objc.Call[bool](t_, objc.Sel("importsGraphics")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534102-alignment?language=objc +func (t_ Text) Alignment() TextAlignment { + rv := objc.Call[TextAlignment](t_, objc.Sel("alignment")) return rv } -// A Boolean that controls whether the receiver allows the user to import files by dragging. [Full Topic] +// The alignment of all the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531887-importsgraphics?language=objc -func (t_ Text) SetImportsGraphics(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setImportsGraphics:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534102-alignment?language=objc +func (t_ Text) SetAlignment(value TextAlignment) { + objc.Call[objc.Void](t_, objc.Sel("setAlignment:"), value) } // A Boolean that controls whether the receiver changes its width to fit the width of its text. [Full Topic] @@ -443,6 +419,36 @@ func (t_ Text) SetHorizontallyResizable(value bool) { objc.Call[objc.Void](t_, objc.Sel("setHorizontallyResizable:"), value) } +// The receiver’s characters within aRange. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526227-selectedrange?language=objc +func (t_ Text) SelectedRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("selectedRange")) + return rv +} + +// The receiver’s characters within aRange. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526227-selectedrange?language=objc +func (t_ Text) SetSelectedRange(value foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setSelectedRange:"), value) +} + +// The receiver’s minimum size. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526222-minsize?language=objc +func (t_ Text) MinSize() foundation.Size { + rv := objc.Call[foundation.Size](t_, objc.Sel("minSize")) + return rv +} + +// The receiver’s minimum size. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526222-minsize?language=objc +func (t_ Text) SetMinSize(value foundation.Size) { + objc.Call[objc.Void](t_, objc.Sel("setMinSize:"), value) +} + // The receiver’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1529480-delegate?language=objc @@ -466,36 +472,6 @@ func (t_ Text) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) } -// A Boolean that controls whether the receiver changes its height to fit the height of its text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535082-verticallyresizable?language=objc -func (t_ Text) IsVerticallyResizable() bool { - rv := objc.Call[bool](t_, objc.Sel("isVerticallyResizable")) - return rv -} - -// A Boolean that controls whether the receiver changes its height to fit the height of its text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535082-verticallyresizable?language=objc -func (t_ Text) SetVerticallyResizable(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setVerticallyResizable:"), value) -} - -// The characters of the receiver’s text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1528601-string?language=objc -func (t_ Text) String() string { - rv := objc.Call[string](t_, objc.Sel("string")) - return rv -} - -// The characters of the receiver’s text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1528601-string?language=objc -func (t_ Text) SetString(value string) { - objc.Call[objc.Void](t_, objc.Sel("setString:"), value) -} - // The receiver’s background color to a given color. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535324-backgroundcolor?language=objc @@ -511,64 +487,49 @@ func (t_ Text) SetBackgroundColor(value IColor) { objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), value) } -// The receiver’s characters within aRange. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526227-selectedrange?language=objc -func (t_ Text) SelectedRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("selectedRange")) - return rv -} - -// The receiver’s characters within aRange. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526227-selectedrange?language=objc -func (t_ Text) SetSelectedRange(value foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setSelectedRange:"), value) -} - -// A Boolean that controls whether the receiver allows the user to apply attributes to specific ranges of the text. [Full Topic] +// A Boolean that controls whether the receiver allows the user to select its text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531003-richtext?language=objc -func (t_ Text) IsRichText() bool { - rv := objc.Call[bool](t_, objc.Sel("isRichText")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535368-selectable?language=objc +func (t_ Text) IsSelectable() bool { + rv := objc.Call[bool](t_, objc.Sel("isSelectable")) return rv } -// A Boolean that controls whether the receiver allows the user to apply attributes to specific ranges of the text. [Full Topic] +// A Boolean that controls whether the receiver allows the user to select its text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531003-richtext?language=objc -func (t_ Text) SetRichText(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setRichText:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535368-selectable?language=objc +func (t_ Text) SetSelectable(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setSelectable:"), value) } -// The text color of all characters in the receiver. [Full Topic] +// A Boolean that controls whether the receiver allows the user to import files by dragging. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534875-textcolor?language=objc -func (t_ Text) TextColor() Color { - rv := objc.Call[Color](t_, objc.Sel("textColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531887-importsgraphics?language=objc +func (t_ Text) ImportsGraphics() bool { + rv := objc.Call[bool](t_, objc.Sel("importsGraphics")) return rv } -// The text color of all characters in the receiver. [Full Topic] +// A Boolean that controls whether the receiver allows the user to import files by dragging. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534875-textcolor?language=objc -func (t_ Text) SetTextColor(value IColor) { - objc.Call[objc.Void](t_, objc.Sel("setTextColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531887-importsgraphics?language=objc +func (t_ Text) SetImportsGraphics(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setImportsGraphics:"), value) } -// A Boolean that controls whether the receiver allows the user to select its text. [Full Topic] +// The characters of the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535368-selectable?language=objc -func (t_ Text) IsSelectable() bool { - rv := objc.Call[bool](t_, objc.Sel("isSelectable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1528601-string?language=objc +func (t_ Text) String() string { + rv := objc.Call[string](t_, objc.Sel("string")) return rv } -// A Boolean that controls whether the receiver allows the user to select its text. [Full Topic] +// The characters of the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535368-selectable?language=objc -func (t_ Text) SetSelectable(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setSelectable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1528601-string?language=objc +func (t_ Text) SetString(value string) { + objc.Call[objc.Void](t_, objc.Sel("setString:"), value) } // A Boolean that controls whether the receiver draws its background. [Full Topic] @@ -586,77 +547,100 @@ func (t_ Text) SetDrawsBackground(value bool) { objc.Call[objc.Void](t_, objc.Sel("setDrawsBackground:"), value) } -// The alignment of all the receiver’s text. [Full Topic] +// The font of all the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534102-alignment?language=objc -func (t_ Text) Alignment() TextAlignment { - rv := objc.Call[TextAlignment](t_, objc.Sel("alignment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534646-font?language=objc +func (t_ Text) Font() Font { + rv := objc.Call[Font](t_, objc.Sel("font")) return rv } -// The alignment of all the receiver’s text. [Full Topic] +// The font of all the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534102-alignment?language=objc -func (t_ Text) SetAlignment(value TextAlignment) { - objc.Call[objc.Void](t_, objc.Sel("setAlignment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534646-font?language=objc +func (t_ Text) SetFont(value IFont) { + objc.Call[objc.Void](t_, objc.Sel("setFont:"), value) } -// The initial writing direction used to determine the actual writing direction for text. [Full Topic] +// A Boolean that controls whether the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526206-basewritingdirection?language=objc -func (t_ Text) BaseWritingDirection() WritingDirection { - rv := objc.Call[WritingDirection](t_, objc.Sel("baseWritingDirection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533080-fieldeditor?language=objc +func (t_ Text) IsFieldEditor() bool { + rv := objc.Call[bool](t_, objc.Sel("isFieldEditor")) return rv } -// The initial writing direction used to determine the actual writing direction for text. [Full Topic] +// A Boolean that controls whether the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526206-basewritingdirection?language=objc -func (t_ Text) SetBaseWritingDirection(value WritingDirection) { - objc.Call[objc.Void](t_, objc.Sel("setBaseWritingDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533080-fieldeditor?language=objc +func (t_ Text) SetFieldEditor(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setFieldEditor:"), value) } -// A Boolean that controls whether the receiver uses the Font panel and Font menu. [Full Topic] +// A Boolean that controls whether the receiver changes its height to fit the height of its text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527431-usesfontpanel?language=objc -func (t_ Text) UsesFontPanel() bool { - rv := objc.Call[bool](t_, objc.Sel("usesFontPanel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535082-verticallyresizable?language=objc +func (t_ Text) IsVerticallyResizable() bool { + rv := objc.Call[bool](t_, objc.Sel("isVerticallyResizable")) return rv } -// A Boolean that controls whether the receiver uses the Font panel and Font menu. [Full Topic] +// A Boolean that controls whether the receiver changes its height to fit the height of its text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527431-usesfontpanel?language=objc -func (t_ Text) SetUsesFontPanel(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesFontPanel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535082-verticallyresizable?language=objc +func (t_ Text) SetVerticallyResizable(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setVerticallyResizable:"), value) } -// A Boolean that controls whether the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder. [Full Topic] +// A Boolean that controls whether the receiver allows the user to apply attributes to specific ranges of the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533080-fieldeditor?language=objc -func (t_ Text) IsFieldEditor() bool { - rv := objc.Call[bool](t_, objc.Sel("isFieldEditor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531003-richtext?language=objc +func (t_ Text) IsRichText() bool { + rv := objc.Call[bool](t_, objc.Sel("isRichText")) return rv } -// A Boolean that controls whether the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder. [Full Topic] +// A Boolean that controls whether the receiver allows the user to apply attributes to specific ranges of the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533080-fieldeditor?language=objc -func (t_ Text) SetFieldEditor(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setFieldEditor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1531003-richtext?language=objc +func (t_ Text) SetRichText(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setRichText:"), value) } -// The receiver’s maximum size. [Full Topic] +// A Boolean value that indicates whether the receiver’s enclosing scroll view shows its ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535900-maxsize?language=objc -func (t_ Text) MaxSize() foundation.Size { - rv := objc.Call[foundation.Size](t_, objc.Sel("maxSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533732-rulervisible?language=objc +func (t_ Text) IsRulerVisible() bool { + rv := objc.Call[bool](t_, objc.Sel("isRulerVisible")) return rv } -// The receiver’s maximum size. [Full Topic] +// The text color of all characters in the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535900-maxsize?language=objc -func (t_ Text) SetMaxSize(value foundation.Size) { - objc.Call[objc.Void](t_, objc.Sel("setMaxSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534875-textcolor?language=objc +func (t_ Text) TextColor() Color { + rv := objc.Call[Color](t_, objc.Sel("textColor")) + return rv +} + +// The text color of all characters in the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1534875-textcolor?language=objc +func (t_ Text) SetTextColor(value IColor) { + objc.Call[objc.Void](t_, objc.Sel("setTextColor:"), value) +} + +// The initial writing direction used to determine the actual writing direction for text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526206-basewritingdirection?language=objc +func (t_ Text) BaseWritingDirection() WritingDirection { + rv := objc.Call[WritingDirection](t_, objc.Sel("baseWritingDirection")) + return rv +} + +// The initial writing direction used to determine the actual writing direction for text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526206-basewritingdirection?language=objc +func (t_ Text) SetBaseWritingDirection(value WritingDirection) { + objc.Call[objc.Void](t_, objc.Sel("setBaseWritingDirection:"), value) } diff --git a/macos/appkit/text_alternatives.gen.go b/macos/appkit/text_alternatives.gen.go index 0cde27ac..be029e43 100644 --- a/macos/appkit/text_alternatives.gen.go +++ b/macos/appkit/text_alternatives.gen.go @@ -19,8 +19,8 @@ type _TextAlternativesClass struct { type ITextAlternatives interface { objc.IObject NoteSelectedAlternativeString(alternativeString string) - AlternativeStrings() []string PrimaryString() string + AlternativeStrings() []string } // A list of alternative strings for a piece of text. [Full Topic] @@ -77,14 +77,6 @@ func (t_ TextAlternatives) NoteSelectedAlternativeString(alternativeString strin objc.Call[objc.Void](t_, objc.Sel("noteSelectedAlternativeString:"), alternativeString) } -// An array of alternative possible interpretations that the user might select. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextalternatives/1527585-alternativestrings?language=objc -func (t_ TextAlternatives) AlternativeStrings() []string { - rv := objc.Call[[]string](t_, objc.Sel("alternativeStrings")) - return rv -} - // The text that was initially chosen as the input string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextalternatives/1526166-primarystring?language=objc @@ -92,3 +84,11 @@ func (t_ TextAlternatives) PrimaryString() string { rv := objc.Call[string](t_, objc.Sel("primaryString")) return rv } + +// An array of alternative possible interpretations that the user might select. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextalternatives/1527585-alternativestrings?language=objc +func (t_ TextAlternatives) AlternativeStrings() []string { + rv := objc.Call[[]string](t_, objc.Sel("alternativeStrings")) + return rv +} diff --git a/macos/appkit/text_attachment.gen.go b/macos/appkit/text_attachment.gen.go index 30c0abad..031aa844 100644 --- a/macos/appkit/text_attachment.gen.go +++ b/macos/appkit/text_attachment.gen.go @@ -20,24 +20,23 @@ type _TextAttachmentClass struct { // An interface definition for the [TextAttachment] class. type ITextAttachment interface { objc.IObject - AttachmentCell() TextAttachmentCellObject - SetAttachmentCell(value PTextAttachmentCell) - SetAttachmentCellObject(valueObject objc.IObject) - Image() Image - SetImage(value IImage) - Contents() []byte - SetContents(value []byte) - FileType() string - SetFileType(value string) - Bounds() coregraphics.Rect - SetBounds(value coregraphics.Rect) FileWrapper() foundation.FileWrapper SetFileWrapper(value foundation.IFileWrapper) - UsesTextAttachmentView() bool - AllowsTextAttachmentView() bool - SetAllowsTextAttachmentView(value bool) LineLayoutPadding() float64 SetLineLayoutPadding(value float64) + Bounds() coregraphics.Rect + SetBounds(value coregraphics.Rect) + AllowsTextAttachmentView() bool + SetAllowsTextAttachmentView(value bool) + UsesTextAttachmentView() bool + FileType() string + SetFileType(value string) + Contents() []byte + SetContents(value []byte) + AttachmentCell() objc.Object + SetAttachmentCell(value objc.IObject) + Image() Image + SetImage(value IImage) } // The values for the attachment characteristics of attributed strings and related objects. [Full Topic] @@ -53,30 +52,30 @@ func TextAttachmentFrom(ptr unsafe.Pointer) TextAttachment { } } -func (t_ TextAttachment) InitWithFileWrapper(fileWrapper foundation.IFileWrapper) TextAttachment { - rv := objc.Call[TextAttachment](t_, objc.Sel("initWithFileWrapper:"), fileWrapper) +func (t_ TextAttachment) InitWithDataOfType(contentData []byte, uti string) TextAttachment { + rv := objc.Call[TextAttachment](t_, objc.Sel("initWithData:ofType:"), contentData, uti) return rv } -// Creates a text attachment object to contain the specified file wrapper. [Full Topic] +// Creates a text attachment object with the specified data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextattachment/1508373-initwithfilewrapper?language=objc -func NewTextAttachmentWithFileWrapper(fileWrapper foundation.IFileWrapper) TextAttachment { - instance := TextAttachmentClass.Alloc().InitWithFileWrapper(fileWrapper) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508374-initwithdata?language=objc +func NewTextAttachmentWithDataOfType(contentData []byte, uti string) TextAttachment { + instance := TextAttachmentClass.Alloc().InitWithDataOfType(contentData, uti) instance.Autorelease() return instance } -func (t_ TextAttachment) InitWithDataOfType(contentData []byte, uti string) TextAttachment { - rv := objc.Call[TextAttachment](t_, objc.Sel("initWithData:ofType:"), contentData, uti) +func (t_ TextAttachment) InitWithFileWrapper(fileWrapper foundation.IFileWrapper) TextAttachment { + rv := objc.Call[TextAttachment](t_, objc.Sel("initWithFileWrapper:"), fileWrapper) return rv } -// Creates a text attachment object with the specified data. [Full Topic] +// Creates a text attachment object to contain the specified file wrapper. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508374-initwithdata?language=objc -func NewTextAttachmentWithDataOfType(contentData []byte, uti string) TextAttachment { - instance := TextAttachmentClass.Alloc().InitWithDataOfType(contentData, uti) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextattachment/1508373-initwithfilewrapper?language=objc +func NewTextAttachmentWithFileWrapper(fileWrapper foundation.IFileWrapper) TextAttachment { + instance := TextAttachmentClass.Alloc().InitWithFileWrapper(fileWrapper) instance.Autorelease() return instance } @@ -101,20 +100,6 @@ func (t_ TextAttachment) Init() TextAttachment { return rv } -// Registers a specific file type with the attachment view provider. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857586-registertextattachmentviewprovid?language=objc -func (tc _TextAttachmentClass) RegisterTextAttachmentViewProviderClassForFileType(textAttachmentViewProviderClass objc.IClass, fileType string) { - objc.Call[objc.Void](tc, objc.Sel("registerTextAttachmentViewProviderClass:forFileType:"), textAttachmentViewProviderClass, fileType) -} - -// Registers a specific file type with the attachment view provider. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857586-registertextattachmentviewprovid?language=objc -func TextAttachment_RegisterTextAttachmentViewProviderClassForFileType(textAttachmentViewProviderClass objc.IClass, fileType string) { - TextAttachmentClass.RegisterTextAttachmentViewProviderClassForFileType(textAttachmentViewProviderClass, fileType) -} - // Returns the text attachment view provider class, if any, for the file type you specify. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857587-textattachmentviewproviderclassf?language=objc @@ -130,72 +115,48 @@ func TextAttachment_TextAttachmentViewProviderClassForFileType(fileType string) return TextAttachmentClass.TextAttachmentViewProviderClassForFileType(fileType) } -// The object that draws the icon for the text attachment and handles mouse events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextattachment/1508413-attachmentcell?language=objc -func (t_ TextAttachment) AttachmentCell() TextAttachmentCellObject { - rv := objc.Call[TextAttachmentCellObject](t_, objc.Sel("attachmentCell")) - return rv -} - -// The object that draws the icon for the text attachment and handles mouse events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextattachment/1508413-attachmentcell?language=objc -func (t_ TextAttachment) SetAttachmentCell(value PTextAttachmentCell) { - po0 := objc.WrapAsProtocol("NSTextAttachmentCell", value) - objc.Call[objc.Void](t_, objc.Sel("setAttachmentCell:"), po0) -} - -// The object that draws the icon for the text attachment and handles mouse events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextattachment/1508413-attachmentcell?language=objc -func (t_ TextAttachment) SetAttachmentCellObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setAttachmentCell:"), valueObject) -} - -// An instance of the relevant image class that represents the contents of the text attachment object. [Full Topic] +// Registers a specific file type with the attachment view provider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508378-image?language=objc -func (t_ TextAttachment) Image() Image { - rv := objc.Call[Image](t_, objc.Sel("image")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857586-registertextattachmentviewprovid?language=objc +func (tc _TextAttachmentClass) RegisterTextAttachmentViewProviderClassForFileType(textAttachmentViewProviderClass objc.IClass, fileType string) { + objc.Call[objc.Void](tc, objc.Sel("registerTextAttachmentViewProviderClass:forFileType:"), textAttachmentViewProviderClass, fileType) } -// An instance of the relevant image class that represents the contents of the text attachment object. [Full Topic] +// Registers a specific file type with the attachment view provider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508378-image?language=objc -func (t_ TextAttachment) SetImage(value IImage) { - objc.Call[objc.Void](t_, objc.Sel("setImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857586-registertextattachmentviewprovid?language=objc +func TextAttachment_RegisterTextAttachmentViewProviderClassForFileType(textAttachmentViewProviderClass objc.IClass, fileType string) { + TextAttachmentClass.RegisterTextAttachmentViewProviderClassForFileType(textAttachmentViewProviderClass, fileType) } -// The contents for the text attachment. [Full Topic] +// The text attachment’s file wrapper. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508401-contents?language=objc -func (t_ TextAttachment) Contents() []byte { - rv := objc.Call[[]byte](t_, objc.Sel("contents")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508398-filewrapper?language=objc +func (t_ TextAttachment) FileWrapper() foundation.FileWrapper { + rv := objc.Call[foundation.FileWrapper](t_, objc.Sel("fileWrapper")) return rv } -// The contents for the text attachment. [Full Topic] +// The text attachment’s file wrapper. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508401-contents?language=objc -func (t_ TextAttachment) SetContents(value []byte) { - objc.Call[objc.Void](t_, objc.Sel("setContents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508398-filewrapper?language=objc +func (t_ TextAttachment) SetFileWrapper(value foundation.IFileWrapper) { + objc.Call[objc.Void](t_, objc.Sel("setFileWrapper:"), value) } -// The file type of the contents for the text attachment. [Full Topic] +// The layout padding before and after the text attachment bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508416-filetype?language=objc -func (t_ TextAttachment) FileType() string { - rv := objc.Call[string](t_, objc.Sel("fileType")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857585-linelayoutpadding?language=objc +func (t_ TextAttachment) LineLayoutPadding() float64 { + rv := objc.Call[float64](t_, objc.Sel("lineLayoutPadding")) return rv } -// The file type of the contents for the text attachment. [Full Topic] +// The layout padding before and after the text attachment bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508416-filetype?language=objc -func (t_ TextAttachment) SetFileType(value string) { - objc.Call[objc.Void](t_, objc.Sel("setFileType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857585-linelayoutpadding?language=objc +func (t_ TextAttachment) SetLineLayoutPadding(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setLineLayoutPadding:"), value) } // The layout bounds of the text attachment’s graphical representation in the text coordinate system. [Full Topic] @@ -213,19 +174,19 @@ func (t_ TextAttachment) SetBounds(value coregraphics.Rect) { objc.Call[objc.Void](t_, objc.Sel("setBounds:"), value) } -// The text attachment’s file wrapper. [Full Topic] +// A Boolean value that determines whether the text attachment uses text attachment views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508398-filewrapper?language=objc -func (t_ TextAttachment) FileWrapper() foundation.FileWrapper { - rv := objc.Call[foundation.FileWrapper](t_, objc.Sel("fileWrapper")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857584-allowstextattachmentview?language=objc +func (t_ TextAttachment) AllowsTextAttachmentView() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsTextAttachmentView")) return rv } -// The text attachment’s file wrapper. [Full Topic] +// A Boolean value that determines whether the text attachment uses text attachment views. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508398-filewrapper?language=objc -func (t_ TextAttachment) SetFileWrapper(value foundation.IFileWrapper) { - objc.Call[objc.Void](t_, objc.Sel("setFileWrapper:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857584-allowstextattachmentview?language=objc +func (t_ TextAttachment) SetAllowsTextAttachmentView(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsTextAttachmentView:"), value) } // A Boolean value that indicates whether the text attachment uses text attachment views. [Full Topic] @@ -236,32 +197,62 @@ func (t_ TextAttachment) UsesTextAttachmentView() bool { return rv } -// A Boolean value that determines whether the text attachment uses text attachment views. [Full Topic] +// The file type of the contents for the text attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857584-allowstextattachmentview?language=objc -func (t_ TextAttachment) AllowsTextAttachmentView() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsTextAttachmentView")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508416-filetype?language=objc +func (t_ TextAttachment) FileType() string { + rv := objc.Call[string](t_, objc.Sel("fileType")) return rv } -// A Boolean value that determines whether the text attachment uses text attachment views. [Full Topic] +// The file type of the contents for the text attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857584-allowstextattachmentview?language=objc -func (t_ TextAttachment) SetAllowsTextAttachmentView(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsTextAttachmentView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508416-filetype?language=objc +func (t_ TextAttachment) SetFileType(value string) { + objc.Call[objc.Void](t_, objc.Sel("setFileType:"), value) } -// The layout padding before and after the text attachment bounds. [Full Topic] +// The contents for the text attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857585-linelayoutpadding?language=objc -func (t_ TextAttachment) LineLayoutPadding() float64 { - rv := objc.Call[float64](t_, objc.Sel("lineLayoutPadding")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508401-contents?language=objc +func (t_ TextAttachment) Contents() []byte { + rv := objc.Call[[]byte](t_, objc.Sel("contents")) return rv } -// The layout padding before and after the text attachment bounds. [Full Topic] +// The contents for the text attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857585-linelayoutpadding?language=objc -func (t_ TextAttachment) SetLineLayoutPadding(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setLineLayoutPadding:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508401-contents?language=objc +func (t_ TextAttachment) SetContents(value []byte) { + objc.Call[objc.Void](t_, objc.Sel("setContents:"), value) +} + +// The object that draws the icon for the text attachment and handles mouse events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextattachment/1508413-attachmentcell?language=objc +func (t_ TextAttachment) AttachmentCell() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("attachmentCell")) + return rv +} + +// The object that draws the icon for the text attachment and handles mouse events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextattachment/1508413-attachmentcell?language=objc +func (t_ TextAttachment) SetAttachmentCell(value objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setAttachmentCell:"), value) +} + +// An instance of the relevant image class that represents the contents of the text attachment object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508378-image?language=objc +func (t_ TextAttachment) Image() Image { + rv := objc.Call[Image](t_, objc.Sel("image")) + return rv +} + +// An instance of the relevant image class that represents the contents of the text attachment object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508378-image?language=objc +func (t_ TextAttachment) SetImage(value IImage) { + objc.Call[objc.Void](t_, objc.Sel("setImage:"), value) } diff --git a/macos/appkit/text_attachment_cell.gen.go b/macos/appkit/text_attachment_cell.gen.go index 0945e0b8..913ecc87 100644 --- a/macos/appkit/text_attachment_cell.gen.go +++ b/macos/appkit/text_attachment_cell.gen.go @@ -19,12 +19,11 @@ type _TextAttachmentCellClass struct { // An interface definition for the [TextAttachmentCell] class. type ITextAttachmentCell interface { ICell - CellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer ITextContainer, lineFrag foundation.Rect, position foundation.Point, charIndex uint) foundation.Rect - DrawWithFrameInViewCharacterIndex(cellFrame foundation.Rect, controlView IView, charIndex uint) - CellBaselineOffset() foundation.Point - DrawWithFrameInViewCharacterIndexLayoutManager(cellFrame foundation.Rect, controlView IView, charIndex uint, layoutManager ILayoutManager) WantsToTrackMouseForEventInRectOfViewAtCharacterIndex(theEvent IEvent, cellFrame foundation.Rect, controlView IView, charIndex uint) bool WantsToTrackMouse() bool + DrawWithFrameInViewCharacterIndex(cellFrame foundation.Rect, controlView IView, charIndex uint) + CellBaselineOffset() foundation.Point + CellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer ITextContainer, lineFrag foundation.Rect, position foundation.Point, charIndex uint) foundation.Rect TrackMouseInRectOfViewAtCharacterIndexUntilMouseUp(theEvent IEvent, cellFrame foundation.Rect, controlView IView, charIndex uint, flag bool) bool Attachment() TextAttachment SetAttachment(value ITextAttachment) @@ -91,11 +90,19 @@ func NewTextAttachmentCellTextCell(string_ string) TextAttachmentCell { return instance } -// Returns the frame of the cell to draw at the specified position in a text container. [Full Topic] +// Allows an attachment to specify the events for which it tracks the mouse. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508402-cellframefortextcontainer?language=objc -func (t_ TextAttachmentCell) CellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer ITextContainer, lineFrag foundation.Rect, position foundation.Point, charIndex uint) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:"), textContainer, lineFrag, position, charIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508399-wantstotrackmouseforevent?language=objc +func (t_ TextAttachmentCell) WantsToTrackMouseForEventInRectOfViewAtCharacterIndex(theEvent IEvent, cellFrame foundation.Rect, controlView IView, charIndex uint) bool { + rv := objc.Call[bool](t_, objc.Sel("wantsToTrackMouseForEvent:inRect:ofView:atCharacterIndex:"), theEvent, cellFrame, controlView, charIndex) + return rv +} + +// Returns a Boolean value that indicates whether the attachment handles mouse events occurring over its image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508415-wantstotrackmouse?language=objc +func (t_ TextAttachmentCell) WantsToTrackMouse() bool { + rv := objc.Call[bool](t_, objc.Sel("wantsToTrackMouse")) return rv } @@ -114,26 +121,11 @@ func (t_ TextAttachmentCell) CellBaselineOffset() foundation.Point { return rv } -// Draws the cell's image using the specified layout manager. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508385-drawwithframe?language=objc -func (t_ TextAttachmentCell) DrawWithFrameInViewCharacterIndexLayoutManager(cellFrame foundation.Rect, controlView IView, charIndex uint, layoutManager ILayoutManager) { - objc.Call[objc.Void](t_, objc.Sel("drawWithFrame:inView:characterIndex:layoutManager:"), cellFrame, controlView, charIndex, layoutManager) -} - -// Allows an attachment to specify the events for which it tracks the mouse. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508399-wantstotrackmouseforevent?language=objc -func (t_ TextAttachmentCell) WantsToTrackMouseForEventInRectOfViewAtCharacterIndex(theEvent IEvent, cellFrame foundation.Rect, controlView IView, charIndex uint) bool { - rv := objc.Call[bool](t_, objc.Sel("wantsToTrackMouseForEvent:inRect:ofView:atCharacterIndex:"), theEvent, cellFrame, controlView, charIndex) - return rv -} - -// Returns a Boolean value that indicates whether the attachment handles mouse events occurring over its image. [Full Topic] +// Returns the frame of the cell to draw at the specified position in a text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508415-wantstotrackmouse?language=objc -func (t_ TextAttachmentCell) WantsToTrackMouse() bool { - rv := objc.Call[bool](t_, objc.Sel("wantsToTrackMouse")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508402-cellframefortextcontainer?language=objc +func (t_ TextAttachmentCell) CellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer ITextContainer, lineFrag foundation.Rect, position foundation.Point, charIndex uint) foundation.Rect { + rv := objc.Call[foundation.Rect](t_, objc.Sel("cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:"), textContainer, lineFrag, position, charIndex) return rv } diff --git a/macos/appkit/text_attachment_cell_protocol.gen.go b/macos/appkit/text_attachment_cell_protocol.gen.go deleted file mode 100644 index 524eae79..00000000 --- a/macos/appkit/text_attachment_cell_protocol.gen.go +++ /dev/null @@ -1,224 +0,0 @@ -// Code generated by DarwinKit. DO NOT EDIT. - -package appkit - -import ( - "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/objc" -) - -// A set of methods that declares the interface for objects that draw text attachment icons and handle mouse events on their icons. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell?language=objc -type PTextAttachmentCell interface { - // optional - HighlightWithFrameInView(flag bool, cellFrame foundation.Rect, controlView View) - HasHighlightWithFrameInView() bool - - // optional - CellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer TextContainer, lineFrag foundation.Rect, position foundation.Point, charIndex uint) foundation.Rect - HasCellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex() bool - - // optional - DrawWithFrameInViewCharacterIndex(cellFrame foundation.Rect, controlView View, charIndex uint) - HasDrawWithFrameInViewCharacterIndex() bool - - // optional - CellSize() foundation.Size - HasCellSize() bool - - // optional - CellBaselineOffset() foundation.Point - HasCellBaselineOffset() bool - - // optional - DrawWithFrameInViewCharacterIndexLayoutManager(cellFrame foundation.Rect, controlView View, charIndex uint, layoutManager LayoutManager) - HasDrawWithFrameInViewCharacterIndexLayoutManager() bool - - // optional - TrackMouseInRectOfViewUntilMouseUp(theEvent Event, cellFrame foundation.Rect, controlView View, flag bool) bool - HasTrackMouseInRectOfViewUntilMouseUp() bool - - // optional - WantsToTrackMouseForEventInRectOfViewAtCharacterIndex(theEvent Event, cellFrame foundation.Rect, controlView View, charIndex uint) bool - HasWantsToTrackMouseForEventInRectOfViewAtCharacterIndex() bool - - // optional - WantsToTrackMouse() bool - HasWantsToTrackMouse() bool - - // optional - TrackMouseInRectOfViewAtCharacterIndexUntilMouseUp(theEvent Event, cellFrame foundation.Rect, controlView View, charIndex uint, flag bool) bool - HasTrackMouseInRectOfViewAtCharacterIndexUntilMouseUp() bool - - // optional - DrawWithFrameInView(cellFrame foundation.Rect, controlView View) - HasDrawWithFrameInView() bool - - // optional - SetAttachment(value TextAttachment) - HasSetAttachment() bool - - // optional - Attachment() TextAttachment - HasAttachment() bool -} - -// ensure impl type implements protocol interface -var _ PTextAttachmentCell = (*TextAttachmentCellObject)(nil) - -// A concrete type for the [PTextAttachmentCell] protocol. -type TextAttachmentCellObject struct { - objc.Object -} - -func (t_ TextAttachmentCellObject) HasHighlightWithFrameInView() bool { - return t_.RespondsToSelector(objc.Sel("highlight:withFrame:inView:")) -} - -// Draws the receiver’s image with optional highlighting. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508384-highlight?language=objc -func (t_ TextAttachmentCellObject) HighlightWithFrameInView(flag bool, cellFrame foundation.Rect, controlView View) { - objc.Call[objc.Void](t_, objc.Sel("highlight:withFrame:inView:"), flag, cellFrame, controlView) -} - -func (t_ TextAttachmentCellObject) HasCellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex() bool { - return t_.RespondsToSelector(objc.Sel("cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:")) -} - -// Returns the frame of the cell to draw at the specified position in a text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508402-cellframefortextcontainer?language=objc -func (t_ TextAttachmentCellObject) CellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer TextContainer, lineFrag foundation.Rect, position foundation.Point, charIndex uint) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:"), textContainer, lineFrag, position, charIndex) - return rv -} - -func (t_ TextAttachmentCellObject) HasDrawWithFrameInViewCharacterIndex() bool { - return t_.RespondsToSelector(objc.Sel("drawWithFrame:inView:characterIndex:")) -} - -// Draws the cell's image at the specified index point in the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508412-drawwithframe?language=objc -func (t_ TextAttachmentCellObject) DrawWithFrameInViewCharacterIndex(cellFrame foundation.Rect, controlView View, charIndex uint) { - objc.Call[objc.Void](t_, objc.Sel("drawWithFrame:inView:characterIndex:"), cellFrame, controlView, charIndex) -} - -func (t_ TextAttachmentCellObject) HasCellSize() bool { - return t_.RespondsToSelector(objc.Sel("cellSize")) -} - -// Returns the size of the attachment’s icon. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508405-cellsize?language=objc -func (t_ TextAttachmentCellObject) CellSize() foundation.Size { - rv := objc.Call[foundation.Size](t_, objc.Sel("cellSize")) - return rv -} - -func (t_ TextAttachmentCellObject) HasCellBaselineOffset() bool { - return t_.RespondsToSelector(objc.Sel("cellBaselineOffset")) -} - -// Returns the text position where you draw the attachment cell’s image, relative to the current point established in the glyph layout. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508420-cellbaselineoffset?language=objc -func (t_ TextAttachmentCellObject) CellBaselineOffset() foundation.Point { - rv := objc.Call[foundation.Point](t_, objc.Sel("cellBaselineOffset")) - return rv -} - -func (t_ TextAttachmentCellObject) HasDrawWithFrameInViewCharacterIndexLayoutManager() bool { - return t_.RespondsToSelector(objc.Sel("drawWithFrame:inView:characterIndex:layoutManager:")) -} - -// Draws the cell's image using the specified layout manager. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508385-drawwithframe?language=objc -func (t_ TextAttachmentCellObject) DrawWithFrameInViewCharacterIndexLayoutManager(cellFrame foundation.Rect, controlView View, charIndex uint, layoutManager LayoutManager) { - objc.Call[objc.Void](t_, objc.Sel("drawWithFrame:inView:characterIndex:layoutManager:"), cellFrame, controlView, charIndex, layoutManager) -} - -func (t_ TextAttachmentCellObject) HasTrackMouseInRectOfViewUntilMouseUp() bool { - return t_.RespondsToSelector(objc.Sel("trackMouse:inRect:ofView:untilMouseUp:")) -} - -// Handles a mouse-down event on the cell's image, and optionally waits until a mouse-up event [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508418-trackmouse?language=objc -func (t_ TextAttachmentCellObject) TrackMouseInRectOfViewUntilMouseUp(theEvent Event, cellFrame foundation.Rect, controlView View, flag bool) bool { - rv := objc.Call[bool](t_, objc.Sel("trackMouse:inRect:ofView:untilMouseUp:"), theEvent, cellFrame, controlView, flag) - return rv -} - -func (t_ TextAttachmentCellObject) HasWantsToTrackMouseForEventInRectOfViewAtCharacterIndex() bool { - return t_.RespondsToSelector(objc.Sel("wantsToTrackMouseForEvent:inRect:ofView:atCharacterIndex:")) -} - -// Allows an attachment to specify the events for which it tracks the mouse. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508399-wantstotrackmouseforevent?language=objc -func (t_ TextAttachmentCellObject) WantsToTrackMouseForEventInRectOfViewAtCharacterIndex(theEvent Event, cellFrame foundation.Rect, controlView View, charIndex uint) bool { - rv := objc.Call[bool](t_, objc.Sel("wantsToTrackMouseForEvent:inRect:ofView:atCharacterIndex:"), theEvent, cellFrame, controlView, charIndex) - return rv -} - -func (t_ TextAttachmentCellObject) HasWantsToTrackMouse() bool { - return t_.RespondsToSelector(objc.Sel("wantsToTrackMouse")) -} - -// Returns a Boolean value that indicates whether the attachment handles mouse events occurring over its image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508415-wantstotrackmouse?language=objc -func (t_ TextAttachmentCellObject) WantsToTrackMouse() bool { - rv := objc.Call[bool](t_, objc.Sel("wantsToTrackMouse")) - return rv -} - -func (t_ TextAttachmentCellObject) HasTrackMouseInRectOfViewAtCharacterIndexUntilMouseUp() bool { - return t_.RespondsToSelector(objc.Sel("trackMouse:inRect:ofView:atCharacterIndex:untilMouseUp:")) -} - -// Handles a mouse-down event on the image at the specified character position. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508380-trackmouse?language=objc -func (t_ TextAttachmentCellObject) TrackMouseInRectOfViewAtCharacterIndexUntilMouseUp(theEvent Event, cellFrame foundation.Rect, controlView View, charIndex uint, flag bool) bool { - rv := objc.Call[bool](t_, objc.Sel("trackMouse:inRect:ofView:atCharacterIndex:untilMouseUp:"), theEvent, cellFrame, controlView, charIndex, flag) - return rv -} - -func (t_ TextAttachmentCellObject) HasDrawWithFrameInView() bool { - return t_.RespondsToSelector(objc.Sel("drawWithFrame:inView:")) -} - -// Draws the cell's image in the specified rectangle of the currently focused view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508392-drawwithframe?language=objc -func (t_ TextAttachmentCellObject) DrawWithFrameInView(cellFrame foundation.Rect, controlView View) { - objc.Call[objc.Void](t_, objc.Sel("drawWithFrame:inView:"), cellFrame, controlView) -} - -func (t_ TextAttachmentCellObject) HasSetAttachment() bool { - return t_.RespondsToSelector(objc.Sel("setAttachment:")) -} - -// Returns the text attachment object that owns the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508396-attachment?language=objc -func (t_ TextAttachmentCellObject) SetAttachment(value TextAttachment) { - objc.Call[objc.Void](t_, objc.Sel("setAttachment:"), value) -} - -func (t_ TextAttachmentCellObject) HasAttachment() bool { - return t_.RespondsToSelector(objc.Sel("attachment")) -} - -// Returns the text attachment object that owns the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/1508388-nstextattachmentcell/1508396-attachment?language=objc -func (t_ TextAttachmentCellObject) Attachment() TextAttachment { - rv := objc.Call[TextAttachment](t_, objc.Sel("attachment")) - return rv -} diff --git a/macos/appkit/text_attachment_layout_protocol.gen.go b/macos/appkit/text_attachment_layout_protocol.gen.go index 19cce04f..7b99aa85 100644 --- a/macos/appkit/text_attachment_layout_protocol.gen.go +++ b/macos/appkit/text_attachment_layout_protocol.gen.go @@ -12,14 +12,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentlayout?language=objc type PTextAttachmentLayout interface { - // optional - AttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition(attributes map[foundation.AttributedStringKey]objc.Object, location TextLocationObject, textContainer TextContainer, proposedLineFragment coregraphics.Rect, position coregraphics.Point) coregraphics.Rect - HasAttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition() bool - // optional ImageForBoundsAttributesLocationTextContainer(bounds coregraphics.Rect, attributes map[foundation.AttributedStringKey]objc.Object, location TextLocationObject, textContainer TextContainer) Image HasImageForBoundsAttributesLocationTextContainer() bool + // optional + AttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition(attributes map[foundation.AttributedStringKey]objc.Object, location TextLocationObject, textContainer TextContainer, proposedLineFragment coregraphics.Rect, position coregraphics.Point) coregraphics.Rect + HasAttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition() bool + // optional ViewProviderForParentViewLocationTextContainer(parentView View, location TextLocationObject, textContainer TextContainer) TextAttachmentViewProvider HasViewProviderForParentViewLocationTextContainer() bool @@ -33,19 +33,6 @@ type TextAttachmentLayoutObject struct { objc.Object } -func (t_ TextAttachmentLayoutObject) HasAttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition() bool { - return t_.RespondsToSelector(objc.Sel("attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:")) -} - -// Returns the layout bounds of the attachment you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentlayout/3857590-attachmentboundsforattributes?language=objc -func (t_ TextAttachmentLayoutObject) AttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition(attributes map[foundation.AttributedStringKey]objc.Object, location TextLocationObject, textContainer TextContainer, proposedLineFragment coregraphics.Rect, position coregraphics.Point) coregraphics.Rect { - po1 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[coregraphics.Rect](t_, objc.Sel("attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:"), attributes, po1, textContainer, proposedLineFragment, position) - return rv -} - func (t_ TextAttachmentLayoutObject) HasImageForBoundsAttributesLocationTextContainer() bool { return t_.RespondsToSelector(objc.Sel("imageForBounds:attributes:location:textContainer:")) } @@ -59,6 +46,19 @@ func (t_ TextAttachmentLayoutObject) ImageForBoundsAttributesLocationTextContain return rv } +func (t_ TextAttachmentLayoutObject) HasAttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition() bool { + return t_.RespondsToSelector(objc.Sel("attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:")) +} + +// Returns the layout bounds of the attachment you specify. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentlayout/3857590-attachmentboundsforattributes?language=objc +func (t_ TextAttachmentLayoutObject) AttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition(attributes map[foundation.AttributedStringKey]objc.Object, location TextLocationObject, textContainer TextContainer, proposedLineFragment coregraphics.Rect, position coregraphics.Point) coregraphics.Rect { + po1 := objc.WrapAsProtocol("NSTextLocation", location) + rv := objc.Call[coregraphics.Rect](t_, objc.Sel("attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:"), attributes, po1, textContainer, proposedLineFragment, position) + return rv +} + func (t_ TextAttachmentLayoutObject) HasViewProviderForParentViewLocationTextContainer() bool { return t_.RespondsToSelector(objc.Sel("viewProviderForParentView:location:textContainer:")) } diff --git a/macos/appkit/text_attachment_view_provider.gen.go b/macos/appkit/text_attachment_view_provider.gen.go index 62a15549..cff047cb 100644 --- a/macos/appkit/text_attachment_view_provider.gen.go +++ b/macos/appkit/text_attachment_view_provider.gen.go @@ -20,16 +20,16 @@ type _TextAttachmentViewProviderClass struct { // An interface definition for the [TextAttachmentViewProvider] class. type ITextAttachmentViewProvider interface { objc.IObject - LoadView() AttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition(attributes map[foundation.AttributedStringKey]objc.IObject, location PTextLocation, textContainer ITextContainer, proposedLineFragment coregraphics.Rect, position coregraphics.Point) coregraphics.Rect AttachmentBoundsForAttributesLocationObjectTextContainerProposedLineFragmentPosition(attributes map[foundation.AttributedStringKey]objc.IObject, locationObject objc.IObject, textContainer ITextContainer, proposedLineFragment coregraphics.Rect, position coregraphics.Point) coregraphics.Rect - Location() TextLocationObject - TextAttachment() TextAttachment + LoadView() TextLayoutManager() TextLayoutManager + Location() TextLocationObject View() View SetView(value IView) TracksTextAttachmentViewBounds() bool SetTracksTextAttachmentViewBounds(value bool) + TextAttachment() TextAttachment } // A container object that associates a text attachment at a particular document location with a view object. [Full Topic] @@ -80,13 +80,6 @@ func (t_ TextAttachmentViewProvider) Init() TextAttachmentViewProvider { return rv } -// Draws the custom view hierarchy that text attachment view subclasses implement. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857596-loadview?language=objc -func (t_ TextAttachmentViewProvider) LoadView() { - objc.Call[objc.Void](t_, objc.Sel("loadView")) -} - // Returns the layout bounds for an attachment at a specific text location that contains the text attributes you specify. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857594-attachmentboundsforattributes?language=objc @@ -104,20 +97,11 @@ func (t_ TextAttachmentViewProvider) AttachmentBoundsForAttributesLocationObject return rv } -// The location that indicates the start of the text attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857597-location?language=objc -func (t_ TextAttachmentViewProvider) Location() TextLocationObject { - rv := objc.Call[TextLocationObject](t_, objc.Sel("location")) - return rv -} - -// The text attachment for this view. [Full Topic] +// Draws the custom view hierarchy that text attachment view subclasses implement. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857598-textattachment?language=objc -func (t_ TextAttachmentViewProvider) TextAttachment() TextAttachment { - rv := objc.Call[TextAttachment](t_, objc.Sel("textAttachment")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857596-loadview?language=objc +func (t_ TextAttachmentViewProvider) LoadView() { + objc.Call[objc.Void](t_, objc.Sel("loadView")) } // The text layout manager for this view. [Full Topic] @@ -128,6 +112,14 @@ func (t_ TextAttachmentViewProvider) TextLayoutManager() TextLayoutManager { return rv } +// The location that indicates the start of the text attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857597-location?language=objc +func (t_ TextAttachmentViewProvider) Location() TextLocationObject { + rv := objc.Call[TextLocationObject](t_, objc.Sel("location")) + return rv +} + // The text attachment’s view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857601-view?language=objc @@ -157,3 +149,11 @@ func (t_ TextAttachmentViewProvider) TracksTextAttachmentViewBounds() bool { func (t_ TextAttachmentViewProvider) SetTracksTextAttachmentViewBounds(value bool) { objc.Call[objc.Void](t_, objc.Sel("setTracksTextAttachmentViewBounds:"), value) } + +// The text attachment for this view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857598-textattachment?language=objc +func (t_ TextAttachmentViewProvider) TextAttachment() TextAttachment { + rv := objc.Call[TextAttachment](t_, objc.Sel("textAttachment")) + return rv +} diff --git a/macos/appkit/text_block.gen.go b/macos/appkit/text_block.gen.go index 706275bd..f33c1365 100644 --- a/macos/appkit/text_block.gen.go +++ b/macos/appkit/text_block.gen.go @@ -19,26 +19,24 @@ type _TextBlockClass struct { // An interface definition for the [TextBlock] class. type ITextBlock interface { objc.IObject + ValueForDimension(dimension TextBlockDimension) float64 + RectForLayoutAtPointInRectTextContainerCharacterRange(startingPoint foundation.Point, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect BorderColorForEdge(edge foundation.RectEdge) Color DrawBackgroundWithFrameInViewCharacterRangeLayoutManager(frameRect foundation.Rect, controlView IView, charRange foundation.Range, layoutManager ILayoutManager) - ValueForDimension(dimension TextBlockDimension) float64 - SetBorderColorForEdge(color IColor, edge foundation.RectEdge) - WidthValueTypeForLayerEdge(layer TextBlockLayer, edge foundation.RectEdge) TextBlockValueType - SetValueTypeForDimension(val float64, type_ TextBlockValueType, dimension TextBlockDimension) - WidthForLayerEdge(layer TextBlockLayer, edge foundation.RectEdge) float64 SetBorderColor(color IColor) - RectForLayoutAtPointInRectTextContainerCharacterRange(startingPoint foundation.Point, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect - SetContentWidthType(val float64, type_ TextBlockValueType) - SetWidthTypeForLayerEdge(val float64, type_ TextBlockValueType, layer TextBlockLayer, edge foundation.RectEdge) - ValueTypeForDimension(dimension TextBlockDimension) TextBlockValueType BoundsRectForContentRectInRectTextContainerCharacterRange(contentRect foundation.Rect, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect + WidthValueTypeForLayerEdge(layer TextBlockLayer, edge foundation.RectEdge) TextBlockValueType SetWidthTypeForLayer(val float64, type_ TextBlockValueType, layer TextBlockLayer) - ContentWidth() float64 - ContentWidthValueType() TextBlockValueType - BackgroundColor() Color - SetBackgroundColor(value IColor) + WidthForLayerEdge(layer TextBlockLayer, edge foundation.RectEdge) float64 + SetValueTypeForDimension(val float64, type_ TextBlockValueType, dimension TextBlockDimension) + ValueTypeForDimension(dimension TextBlockDimension) TextBlockValueType + SetContentWidthType(val float64, type_ TextBlockValueType) VerticalAlignment() TextBlockVerticalAlignment SetVerticalAlignment(value TextBlockVerticalAlignment) + BackgroundColor() Color + SetBackgroundColor(value IColor) + ContentWidthValueType() TextBlockValueType + ContentWidth() float64 } // A block of text laid out in a subregion of the text container. [Full Topic] @@ -74,6 +72,22 @@ func NewTextBlock() TextBlock { return TextBlockClass.New() } +// Returns the value of the specified text block dimension. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1526445-valuefordimension?language=objc +func (t_ TextBlock) ValueForDimension(dimension TextBlockDimension) float64 { + rv := objc.Call[float64](t_, objc.Sel("valueForDimension:"), dimension) + return rv +} + +// Returns the rectangle within which glyphs should be laid out for the specified arguments. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1527965-rectforlayoutatpoint?language=objc +func (t_ TextBlock) RectForLayoutAtPointInRectTextContainerCharacterRange(startingPoint foundation.Point, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect { + rv := objc.Call[foundation.Rect](t_, objc.Sel("rectForLayoutAtPoint:inRect:textContainer:characterRange:"), startingPoint, rect, textContainer, charRange) + return rv +} + // Returns the border color of the specified text block edge. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1534711-bordercolorforedge?language=objc @@ -89,19 +103,19 @@ func (t_ TextBlock) DrawBackgroundWithFrameInViewCharacterRangeLayoutManager(fra objc.Call[objc.Void](t_, objc.Sel("drawBackgroundWithFrame:inView:characterRange:layoutManager:"), frameRect, controlView, charRange, layoutManager) } -// Returns the value of the specified text block dimension. [Full Topic] +// Sets the color of all borders of the text block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1526445-valuefordimension?language=objc -func (t_ TextBlock) ValueForDimension(dimension TextBlockDimension) float64 { - rv := objc.Call[float64](t_, objc.Sel("valueForDimension:"), dimension) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1531850-setbordercolor?language=objc +func (t_ TextBlock) SetBorderColor(color IColor) { + objc.Call[objc.Void](t_, objc.Sel("setBorderColor:"), color) } -// Sets the border color of the specified edge of the text block. [Full Topic] +// Returns the rectangle the text in the block actually occupies, including padding, borders, and margins. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1529881-setbordercolor?language=objc -func (t_ TextBlock) SetBorderColorForEdge(color IColor, edge foundation.RectEdge) { - objc.Call[objc.Void](t_, objc.Sel("setBorderColor:forEdge:"), color, edge) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1532041-boundsrectforcontentrect?language=objc +func (t_ TextBlock) BoundsRectForContentRectInRectTextContainerCharacterRange(contentRect foundation.Rect, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect { + rv := objc.Call[foundation.Rect](t_, objc.Sel("boundsRectForContentRect:inRect:textContainer:characterRange:"), contentRect, rect, textContainer, charRange) + return rv } // Returns the value type of an edge of a specified layer of the text block. [Full Topic] @@ -112,11 +126,11 @@ func (t_ TextBlock) WidthValueTypeForLayerEdge(layer TextBlockLayer, edge founda return rv } -// Sets a dimension of the text block. [Full Topic] +// Sets the width of all edges of a specified layer of the text block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1533000-setvalue?language=objc -func (t_ TextBlock) SetValueTypeForDimension(val float64, type_ TextBlockValueType, dimension TextBlockDimension) { - objc.Call[objc.Void](t_, objc.Sel("setValue:type:forDimension:"), val, type_, dimension) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1535325-setwidth?language=objc +func (t_ TextBlock) SetWidthTypeForLayer(val float64, type_ TextBlockValueType, layer TextBlockLayer) { + objc.Call[objc.Void](t_, objc.Sel("setWidth:type:forLayer:"), val, type_, layer) } // Returns the width of an edge of a specified layer of the text block. [Full Topic] @@ -127,33 +141,11 @@ func (t_ TextBlock) WidthForLayerEdge(layer TextBlockLayer, edge foundation.Rect return rv } -// Sets the color of all borders of the text block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1531850-setbordercolor?language=objc -func (t_ TextBlock) SetBorderColor(color IColor) { - objc.Call[objc.Void](t_, objc.Sel("setBorderColor:"), color) -} - -// Returns the rectangle within which glyphs should be laid out for the specified arguments. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1527965-rectforlayoutatpoint?language=objc -func (t_ TextBlock) RectForLayoutAtPointInRectTextContainerCharacterRange(startingPoint foundation.Point, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("rectForLayoutAtPoint:inRect:textContainer:characterRange:"), startingPoint, rect, textContainer, charRange) - return rv -} - -// Sets the width of the text block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1528308-setcontentwidth?language=objc -func (t_ TextBlock) SetContentWidthType(val float64, type_ TextBlockValueType) { - objc.Call[objc.Void](t_, objc.Sel("setContentWidth:type:"), val, type_) -} - -// Sets the width of a specified edge of a specified layer of the text block. [Full Topic] +// Sets a dimension of the text block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1533792-setwidth?language=objc -func (t_ TextBlock) SetWidthTypeForLayerEdge(val float64, type_ TextBlockValueType, layer TextBlockLayer, edge foundation.RectEdge) { - objc.Call[objc.Void](t_, objc.Sel("setWidth:type:forLayer:edge:"), val, type_, layer, edge) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1533000-setvalue?language=objc +func (t_ TextBlock) SetValueTypeForDimension(val float64, type_ TextBlockValueType, dimension TextBlockDimension) { + objc.Call[objc.Void](t_, objc.Sel("setValue:type:forDimension:"), val, type_, dimension) } // Returns the value type of the specified text block dimension. [Full Topic] @@ -164,35 +156,26 @@ func (t_ TextBlock) ValueTypeForDimension(dimension TextBlockDimension) TextBloc return rv } -// Returns the rectangle the text in the block actually occupies, including padding, borders, and margins. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1532041-boundsrectforcontentrect?language=objc -func (t_ TextBlock) BoundsRectForContentRectInRectTextContainerCharacterRange(contentRect foundation.Rect, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("boundsRectForContentRect:inRect:textContainer:characterRange:"), contentRect, rect, textContainer, charRange) - return rv -} - -// Sets the width of all edges of a specified layer of the text block. [Full Topic] +// Sets the width of the text block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1535325-setwidth?language=objc -func (t_ TextBlock) SetWidthTypeForLayer(val float64, type_ TextBlockValueType, layer TextBlockLayer) { - objc.Call[objc.Void](t_, objc.Sel("setWidth:type:forLayer:"), val, type_, layer) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1528308-setcontentwidth?language=objc +func (t_ TextBlock) SetContentWidthType(val float64, type_ TextBlockValueType) { + objc.Call[objc.Void](t_, objc.Sel("setContentWidth:type:"), val, type_) } -// The width of the text block. [Full Topic] +// The vertical alignment of the text block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1532506-contentwidth?language=objc -func (t_ TextBlock) ContentWidth() float64 { - rv := objc.Call[float64](t_, objc.Sel("contentWidth")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1533097-verticalalignment?language=objc +func (t_ TextBlock) VerticalAlignment() TextBlockVerticalAlignment { + rv := objc.Call[TextBlockVerticalAlignment](t_, objc.Sel("verticalAlignment")) return rv } -// The type of value stored for the text block width. [Full Topic] +// The vertical alignment of the text block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1525975-contentwidthvaluetype?language=objc -func (t_ TextBlock) ContentWidthValueType() TextBlockValueType { - rv := objc.Call[TextBlockValueType](t_, objc.Sel("contentWidthValueType")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1533097-verticalalignment?language=objc +func (t_ TextBlock) SetVerticalAlignment(value TextBlockVerticalAlignment) { + objc.Call[objc.Void](t_, objc.Sel("setVerticalAlignment:"), value) } // The background color of the text block. [Full Topic] @@ -210,17 +193,18 @@ func (t_ TextBlock) SetBackgroundColor(value IColor) { objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), value) } -// The vertical alignment of the text block. [Full Topic] +// The type of value stored for the text block width. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1533097-verticalalignment?language=objc -func (t_ TextBlock) VerticalAlignment() TextBlockVerticalAlignment { - rv := objc.Call[TextBlockVerticalAlignment](t_, objc.Sel("verticalAlignment")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1525975-contentwidthvaluetype?language=objc +func (t_ TextBlock) ContentWidthValueType() TextBlockValueType { + rv := objc.Call[TextBlockValueType](t_, objc.Sel("contentWidthValueType")) return rv } -// The vertical alignment of the text block. [Full Topic] +// The width of the text block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1533097-verticalalignment?language=objc -func (t_ TextBlock) SetVerticalAlignment(value TextBlockVerticalAlignment) { - objc.Call[objc.Void](t_, objc.Sel("setVerticalAlignment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1532506-contentwidth?language=objc +func (t_ TextBlock) ContentWidth() float64 { + rv := objc.Call[float64](t_, objc.Sel("contentWidth")) + return rv } diff --git a/macos/appkit/text_checking_client_protocol.gen.go b/macos/appkit/text_checking_client_protocol.gen.go index e76bbc83..2b725ba9 100644 --- a/macos/appkit/text_checking_client_protocol.gen.go +++ b/macos/appkit/text_checking_client_protocol.gen.go @@ -12,21 +12,13 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient?language=objc type PTextCheckingClient interface { // optional - SelectAndShowRange(range_ foundation.Range) - HasSelectAndShowRange() bool + RemoveAnnotationRange(annotationName foundation.AttributedStringKey, range_ foundation.Range) + HasRemoveAnnotationRange() bool // optional ViewForRangeFirstRectActualRange(range_ foundation.Range, firstRect foundation.RectPointer, actualRange foundation.RangePointer) View HasViewForRangeFirstRectActualRange() bool - // optional - AnnotatedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.AttributedString - HasAnnotatedSubstringForProposedRangeActualRange() bool - - // optional - ReplaceCharactersInRangeWithAnnotatedString(range_ foundation.Range, annotatedString foundation.AttributedString) - HasReplaceCharactersInRangeWithAnnotatedString() bool - // optional AddAnnotationsRange(annotations map[foundation.AttributedStringKey]string, range_ foundation.Range) HasAddAnnotationsRange() bool @@ -35,13 +27,21 @@ type PTextCheckingClient interface { SetAnnotationsRange(annotations map[foundation.AttributedStringKey]string, range_ foundation.Range) HasSetAnnotationsRange() bool - // optional - RemoveAnnotationRange(annotationName foundation.AttributedStringKey, range_ foundation.Range) - HasRemoveAnnotationRange() bool - // optional CandidateListTouchBarItem() CandidateListTouchBarItem HasCandidateListTouchBarItem() bool + + // optional + ReplaceCharactersInRangeWithAnnotatedString(range_ foundation.Range, annotatedString foundation.AttributedString) + HasReplaceCharactersInRangeWithAnnotatedString() bool + + // optional + AnnotatedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.AttributedString + HasAnnotatedSubstringForProposedRangeActualRange() bool + + // optional + SelectAndShowRange(range_ foundation.Range) + HasSelectAndShowRange() bool } // ensure impl type implements protocol interface @@ -52,15 +52,15 @@ type TextCheckingClientObject struct { objc.Object } -func (t_ TextCheckingClientObject) HasSelectAndShowRange() bool { - return t_.RespondsToSelector(objc.Sel("selectAndShowRange:")) +func (t_ TextCheckingClientObject) HasRemoveAnnotationRange() bool { + return t_.RespondsToSelector(objc.Sel("removeAnnotation:range:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242724-selectandshowrange?language=objc -func (t_ TextCheckingClientObject) SelectAndShowRange(range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("selectAndShowRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242722-removeannotation?language=objc +func (t_ TextCheckingClientObject) RemoveAnnotationRange(annotationName foundation.AttributedStringKey, range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("removeAnnotation:range:"), annotationName, range_) } func (t_ TextCheckingClientObject) HasViewForRangeFirstRectActualRange() bool { @@ -75,70 +75,70 @@ func (t_ TextCheckingClientObject) ViewForRangeFirstRectActualRange(range_ found return rv } -func (t_ TextCheckingClientObject) HasAnnotatedSubstringForProposedRangeActualRange() bool { - return t_.RespondsToSelector(objc.Sel("annotatedSubstringForProposedRange:actualRange:")) +func (t_ TextCheckingClientObject) HasAddAnnotationsRange() bool { + return t_.RespondsToSelector(objc.Sel("addAnnotations:range:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242720-annotatedsubstringforproposedran?language=objc -func (t_ TextCheckingClientObject) AnnotatedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](t_, objc.Sel("annotatedSubstringForProposedRange:actualRange:"), range_, actualRange) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242719-addannotations?language=objc +func (t_ TextCheckingClientObject) AddAnnotationsRange(annotations map[foundation.AttributedStringKey]string, range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("addAnnotations:range:"), annotations, range_) } -func (t_ TextCheckingClientObject) HasReplaceCharactersInRangeWithAnnotatedString() bool { - return t_.RespondsToSelector(objc.Sel("replaceCharactersInRange:withAnnotatedString:")) +func (t_ TextCheckingClientObject) HasSetAnnotationsRange() bool { + return t_.RespondsToSelector(objc.Sel("setAnnotations:range:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242723-replacecharactersinrange?language=objc -func (t_ TextCheckingClientObject) ReplaceCharactersInRangeWithAnnotatedString(range_ foundation.Range, annotatedString foundation.AttributedString) { - objc.Call[objc.Void](t_, objc.Sel("replaceCharactersInRange:withAnnotatedString:"), range_, annotatedString) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242725-setannotations?language=objc +func (t_ TextCheckingClientObject) SetAnnotationsRange(annotations map[foundation.AttributedStringKey]string, range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setAnnotations:range:"), annotations, range_) } -func (t_ TextCheckingClientObject) HasAddAnnotationsRange() bool { - return t_.RespondsToSelector(objc.Sel("addAnnotations:range:")) +func (t_ TextCheckingClientObject) HasCandidateListTouchBarItem() bool { + return t_.RespondsToSelector(objc.Sel("candidateListTouchBarItem")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242719-addannotations?language=objc -func (t_ TextCheckingClientObject) AddAnnotationsRange(annotations map[foundation.AttributedStringKey]string, range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("addAnnotations:range:"), annotations, range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242721-candidatelisttouchbaritem?language=objc +func (t_ TextCheckingClientObject) CandidateListTouchBarItem() CandidateListTouchBarItem { + rv := objc.Call[CandidateListTouchBarItem](t_, objc.Sel("candidateListTouchBarItem")) + return rv } -func (t_ TextCheckingClientObject) HasSetAnnotationsRange() bool { - return t_.RespondsToSelector(objc.Sel("setAnnotations:range:")) +func (t_ TextCheckingClientObject) HasReplaceCharactersInRangeWithAnnotatedString() bool { + return t_.RespondsToSelector(objc.Sel("replaceCharactersInRange:withAnnotatedString:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242725-setannotations?language=objc -func (t_ TextCheckingClientObject) SetAnnotationsRange(annotations map[foundation.AttributedStringKey]string, range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setAnnotations:range:"), annotations, range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242723-replacecharactersinrange?language=objc +func (t_ TextCheckingClientObject) ReplaceCharactersInRangeWithAnnotatedString(range_ foundation.Range, annotatedString foundation.AttributedString) { + objc.Call[objc.Void](t_, objc.Sel("replaceCharactersInRange:withAnnotatedString:"), range_, annotatedString) } -func (t_ TextCheckingClientObject) HasRemoveAnnotationRange() bool { - return t_.RespondsToSelector(objc.Sel("removeAnnotation:range:")) +func (t_ TextCheckingClientObject) HasAnnotatedSubstringForProposedRangeActualRange() bool { + return t_.RespondsToSelector(objc.Sel("annotatedSubstringForProposedRange:actualRange:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242722-removeannotation?language=objc -func (t_ TextCheckingClientObject) RemoveAnnotationRange(annotationName foundation.AttributedStringKey, range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("removeAnnotation:range:"), annotationName, range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242720-annotatedsubstringforproposedran?language=objc +func (t_ TextCheckingClientObject) AnnotatedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](t_, objc.Sel("annotatedSubstringForProposedRange:actualRange:"), range_, actualRange) + return rv } -func (t_ TextCheckingClientObject) HasCandidateListTouchBarItem() bool { - return t_.RespondsToSelector(objc.Sel("candidateListTouchBarItem")) +func (t_ TextCheckingClientObject) HasSelectAndShowRange() bool { + return t_.RespondsToSelector(objc.Sel("selectAndShowRange:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242721-candidatelisttouchbaritem?language=objc -func (t_ TextCheckingClientObject) CandidateListTouchBarItem() CandidateListTouchBarItem { - rv := objc.Call[CandidateListTouchBarItem](t_, objc.Sel("candidateListTouchBarItem")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242724-selectandshowrange?language=objc +func (t_ TextCheckingClientObject) SelectAndShowRange(range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("selectAndShowRange:"), range_) } diff --git a/macos/appkit/text_checking_controller.gen.go b/macos/appkit/text_checking_controller.gen.go index cb2a167c..5dec9571 100644 --- a/macos/appkit/text_checking_controller.gen.go +++ b/macos/appkit/text_checking_controller.gen.go @@ -19,22 +19,22 @@ type _TextCheckingControllerClass struct { // An interface definition for the [TextCheckingController] class. type ITextCheckingController interface { objc.IObject - UpdateCandidates() - DidChangeSelectedRange() - IgnoreSpelling(sender objc.IObject) - CheckTextInDocument(sender objc.IObject) + InsertedTextInRange(range_ foundation.Range) OrderFrontSubstitutionsPanel(sender objc.IObject) - DidChangeTextInRange(range_ foundation.Range) - MenuAtIndexClickedOnSelectionEffectiveRange(location uint, clickedOnSelection bool, effectiveRange foundation.RangePointer) Menu + CheckTextInRangeTypesOptions(range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject) ShowGuessPanel(sender objc.IObject) - ConsiderTextCheckingForRange(range_ foundation.Range) - CheckSpelling(sender objc.IObject) + CheckTextInDocument(sender objc.IObject) + IgnoreSpelling(sender objc.IObject) CheckTextInSelection(sender objc.IObject) - InsertedTextInRange(range_ foundation.Range) + UpdateCandidates() + ConsiderTextCheckingForRange(range_ foundation.Range) + DidChangeTextInRange(range_ foundation.Range) + DidChangeSelectedRange() + MenuAtIndexClickedOnSelectionEffectiveRange(location uint, clickedOnSelection bool, effectiveRange foundation.RangePointer) Menu ValidAnnotations() []foundation.AttributedStringKey - ChangeSpelling(sender objc.IObject) Invalidate() - CheckTextInRangeTypesOptions(range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject) + ChangeSpelling(sender objc.IObject) + CheckSpelling(sender objc.IObject) SpellCheckerDocumentTag() int SetSpellCheckerDocumentTag(value int) Client() TextCheckingClientObject @@ -90,59 +90,58 @@ func (t_ TextCheckingController) Init() TextCheckingController { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242760-updatecandidates?language=objc -func (t_ TextCheckingController) UpdateCandidates() { - objc.Call[objc.Void](t_, objc.Sel("updateCandidates")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242754-insertedtextinrange?language=objc +func (t_ TextCheckingController) InsertedTextInRange(range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("insertedTextInRange:"), range_) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242750-didchangeselectedrange?language=objc -func (t_ TextCheckingController) DidChangeSelectedRange() { - objc.Call[objc.Void](t_, objc.Sel("didChangeSelectedRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242757-orderfrontsubstitutionspanel?language=objc +func (t_ TextCheckingController) OrderFrontSubstitutionsPanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("orderFrontSubstitutionsPanel:"), sender) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242752-ignorespelling?language=objc -func (t_ TextCheckingController) IgnoreSpelling(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("ignoreSpelling:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242746-checktextinrange?language=objc +func (t_ TextCheckingController) CheckTextInRangeTypesOptions(range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkTextInRange:types:options:"), range_, checkingTypes, options) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242745-checktextindocument?language=objc -func (t_ TextCheckingController) CheckTextInDocument(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("checkTextInDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242758-showguesspanel?language=objc +func (t_ TextCheckingController) ShowGuessPanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("showGuessPanel:"), sender) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242757-orderfrontsubstitutionspanel?language=objc -func (t_ TextCheckingController) OrderFrontSubstitutionsPanel(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("orderFrontSubstitutionsPanel:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242745-checktextindocument?language=objc +func (t_ TextCheckingController) CheckTextInDocument(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkTextInDocument:"), sender) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242751-didchangetextinrange?language=objc -func (t_ TextCheckingController) DidChangeTextInRange(range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("didChangeTextInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242752-ignorespelling?language=objc +func (t_ TextCheckingController) IgnoreSpelling(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("ignoreSpelling:"), sender) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242756-menuatindex?language=objc -func (t_ TextCheckingController) MenuAtIndexClickedOnSelectionEffectiveRange(location uint, clickedOnSelection bool, effectiveRange foundation.RangePointer) Menu { - rv := objc.Call[Menu](t_, objc.Sel("menuAtIndex:clickedOnSelection:effectiveRange:"), location, clickedOnSelection, effectiveRange) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242747-checktextinselection?language=objc +func (t_ TextCheckingController) CheckTextInSelection(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkTextInSelection:"), sender) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242758-showguesspanel?language=objc -func (t_ TextCheckingController) ShowGuessPanel(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("showGuessPanel:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242760-updatecandidates?language=objc +func (t_ TextCheckingController) UpdateCandidates() { + objc.Call[objc.Void](t_, objc.Sel("updateCandidates")) } // [Full Topic] @@ -154,23 +153,24 @@ func (t_ TextCheckingController) ConsiderTextCheckingForRange(range_ foundation. // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242744-checkspelling?language=objc -func (t_ TextCheckingController) CheckSpelling(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("checkSpelling:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242751-didchangetextinrange?language=objc +func (t_ TextCheckingController) DidChangeTextInRange(range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("didChangeTextInRange:"), range_) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242747-checktextinselection?language=objc -func (t_ TextCheckingController) CheckTextInSelection(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("checkTextInSelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242750-didchangeselectedrange?language=objc +func (t_ TextCheckingController) DidChangeSelectedRange() { + objc.Call[objc.Void](t_, objc.Sel("didChangeSelectedRange")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242754-insertedtextinrange?language=objc -func (t_ TextCheckingController) InsertedTextInRange(range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("insertedTextInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242756-menuatindex?language=objc +func (t_ TextCheckingController) MenuAtIndexClickedOnSelectionEffectiveRange(location uint, clickedOnSelection bool, effectiveRange foundation.RangePointer) Menu { + rv := objc.Call[Menu](t_, objc.Sel("menuAtIndex:clickedOnSelection:effectiveRange:"), location, clickedOnSelection, effectiveRange) + return rv } // [Full Topic] @@ -183,23 +183,23 @@ func (t_ TextCheckingController) ValidAnnotations() []foundation.AttributedStrin // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242743-changespelling?language=objc -func (t_ TextCheckingController) ChangeSpelling(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("changeSpelling:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242755-invalidate?language=objc +func (t_ TextCheckingController) Invalidate() { + objc.Call[objc.Void](t_, objc.Sel("invalidate")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242755-invalidate?language=objc -func (t_ TextCheckingController) Invalidate() { - objc.Call[objc.Void](t_, objc.Sel("invalidate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242743-changespelling?language=objc +func (t_ TextCheckingController) ChangeSpelling(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("changeSpelling:"), sender) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242746-checktextinrange?language=objc -func (t_ TextCheckingController) CheckTextInRangeTypesOptions(range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("checkTextInRange:types:options:"), range_, checkingTypes, options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242744-checkspelling?language=objc +func (t_ TextCheckingController) CheckSpelling(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkSpelling:"), sender) } // [Full Topic] diff --git a/macos/appkit/text_container.gen.go b/macos/appkit/text_container.gen.go index 34ced708..3cdac42e 100644 --- a/macos/appkit/text_container.gen.go +++ b/macos/appkit/text_container.gen.go @@ -5,7 +5,7 @@ package appkit import ( "unsafe" - "github.com/progrium/darwinkit/macos/foundation" + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/objc" ) @@ -19,26 +19,25 @@ type _TextContainerClass struct { // An interface definition for the [TextContainer] class. type ITextContainer interface { objc.IObject - LineFragmentRectForProposedRectAtIndexWritingDirectionRemainingRect(proposedRect foundation.Rect, characterIndex uint, baseWritingDirection WritingDirection, remainingRect *foundation.Rect) foundation.Rect ReplaceLayoutManager(newLayoutManager ILayoutManager) + TextLayoutManager() TextLayoutManager + MaximumNumberOfLines() uint + SetMaximumNumberOfLines(value uint) + HeightTracksTextView() bool + SetHeightTracksTextView(value bool) TextView() TextView SetTextView(value ITextView) - TextLayoutManager() TextLayoutManager - LineFragmentPadding() float64 - SetLineFragmentPadding(value float64) + IsSimpleRectangularTextContainer() bool LayoutManager() LayoutManager SetLayoutManager(value ILayoutManager) - IsSimpleRectangularTextContainer() bool - Size() foundation.Size - SetSize(value foundation.Size) + LineFragmentPadding() float64 + SetLineFragmentPadding(value float64) ExclusionPaths() []BezierPath SetExclusionPaths(value []IBezierPath) - MaximumNumberOfLines() uint - SetMaximumNumberOfLines(value uint) - HeightTracksTextView() bool - SetHeightTracksTextView(value bool) WidthTracksTextView() bool SetWidthTracksTextView(value bool) + Size() coregraphics.Size + SetSize(value coregraphics.Size) } // A region where text layout occurs. [Full Topic] @@ -54,7 +53,7 @@ func TextContainerFrom(ptr unsafe.Pointer) TextContainer { } } -func (t_ TextContainer) InitWithSize(size foundation.Size) TextContainer { +func (t_ TextContainer) InitWithSize(size coregraphics.Size) TextContainer { rv := objc.Call[TextContainer](t_, objc.Sel("initWithSize:"), size) return rv } @@ -62,7 +61,7 @@ func (t_ TextContainer) InitWithSize(size foundation.Size) TextContainer { // Initializes a text container with a specified bounding rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444529-initwithsize?language=objc -func NewTextContainerWithSize(size foundation.Size) TextContainer { +func NewTextContainerWithSize(size coregraphics.Size) TextContainer { instance := TextContainerClass.Alloc().InitWithSize(size) instance.Autorelease() return instance @@ -88,14 +87,6 @@ func (t_ TextContainer) Init() TextContainer { return rv } -// Returns the bounds of a line fragment rectangle inside the text container for the proposed rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444555-linefragmentrectforproposedrect?language=objc -func (t_ TextContainer) LineFragmentRectForProposedRectAtIndexWritingDirectionRemainingRect(proposedRect foundation.Rect, characterIndex uint, baseWritingDirection WritingDirection, remainingRect *foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("lineFragmentRectForProposedRect:atIndex:writingDirection:remainingRect:"), proposedRect, characterIndex, baseWritingDirection, remainingRect) - return rv -} - // Replaces the layout manager for the group of text system objects that contains the text container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444545-replacelayoutmanager?language=objc @@ -103,6 +94,44 @@ func (t_ TextContainer) ReplaceLayoutManager(newLayoutManager ILayoutManager) { objc.Call[objc.Void](t_, objc.Sel("replaceLayoutManager:"), newLayoutManager) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/3809914-textlayoutmanager?language=objc +func (t_ TextContainer) TextLayoutManager() TextLayoutManager { + rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) + return rv +} + +// The maximum number of lines that the text container can store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444531-maximumnumberoflines?language=objc +func (t_ TextContainer) MaximumNumberOfLines() uint { + rv := objc.Call[uint](t_, objc.Sel("maximumNumberOfLines")) + return rv +} + +// The maximum number of lines that the text container can store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444531-maximumnumberoflines?language=objc +func (t_ TextContainer) SetMaximumNumberOfLines(value uint) { + objc.Call[objc.Void](t_, objc.Sel("setMaximumNumberOfLines:"), value) +} + +// A Boolean that controls whether the text container adjusts the height of its bounding rectangle when its text view resizes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444559-heighttrackstextview?language=objc +func (t_ TextContainer) HeightTracksTextView() bool { + rv := objc.Call[bool](t_, objc.Sel("heightTracksTextView")) + return rv +} + +// A Boolean that controls whether the text container adjusts the height of its bounding rectangle when its text view resizes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444559-heighttrackstextview?language=objc +func (t_ TextContainer) SetHeightTracksTextView(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setHeightTracksTextView:"), value) +} + // The text container’s text view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcontainer/1444537-textview?language=objc @@ -118,29 +147,14 @@ func (t_ TextContainer) SetTextView(value ITextView) { objc.Call[objc.Void](t_, objc.Sel("setTextView:"), value) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/3809914-textlayoutmanager?language=objc -func (t_ TextContainer) TextLayoutManager() TextLayoutManager { - rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) - return rv -} - -// The value for the text inset within line fragment rectangles. [Full Topic] +// A Boolean that indicates whether the text container’s region is a rectangle with no holes or gaps, and whose edges are parallel to the text view's coordinate system axes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444527-linefragmentpadding?language=objc -func (t_ TextContainer) LineFragmentPadding() float64 { - rv := objc.Call[float64](t_, objc.Sel("lineFragmentPadding")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444525-simplerectangulartextcontainer?language=objc +func (t_ TextContainer) IsSimpleRectangularTextContainer() bool { + rv := objc.Call[bool](t_, objc.Sel("isSimpleRectangularTextContainer")) return rv } -// The value for the text inset within line fragment rectangles. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444527-linefragmentpadding?language=objc -func (t_ TextContainer) SetLineFragmentPadding(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setLineFragmentPadding:"), value) -} - // The text container’s layout manager. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444517-layoutmanager?language=objc @@ -156,27 +170,19 @@ func (t_ TextContainer) SetLayoutManager(value ILayoutManager) { objc.Call[objc.Void](t_, objc.Sel("setLayoutManager:"), value) } -// A Boolean that indicates whether the text container’s region is a rectangle with no holes or gaps, and whose edges are parallel to the text view's coordinate system axes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444525-simplerectangulartextcontainer?language=objc -func (t_ TextContainer) IsSimpleRectangularTextContainer() bool { - rv := objc.Call[bool](t_, objc.Sel("isSimpleRectangularTextContainer")) - return rv -} - -// The size of the text container’s bounding rectangle. [Full Topic] +// The value for the text inset within line fragment rectangles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444553-size?language=objc -func (t_ TextContainer) Size() foundation.Size { - rv := objc.Call[foundation.Size](t_, objc.Sel("size")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444527-linefragmentpadding?language=objc +func (t_ TextContainer) LineFragmentPadding() float64 { + rv := objc.Call[float64](t_, objc.Sel("lineFragmentPadding")) return rv } -// The size of the text container’s bounding rectangle. [Full Topic] +// The value for the text inset within line fragment rectangles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444553-size?language=objc -func (t_ TextContainer) SetSize(value foundation.Size) { - objc.Call[objc.Void](t_, objc.Sel("setSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444527-linefragmentpadding?language=objc +func (t_ TextContainer) SetLineFragmentPadding(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setLineFragmentPadding:"), value) } // An array of path objects that represents the regions where text doesn’t display in the text container. [Full Topic] @@ -194,36 +200,6 @@ func (t_ TextContainer) SetExclusionPaths(value []IBezierPath) { objc.Call[objc.Void](t_, objc.Sel("setExclusionPaths:"), value) } -// The maximum number of lines that the text container can store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444531-maximumnumberoflines?language=objc -func (t_ TextContainer) MaximumNumberOfLines() uint { - rv := objc.Call[uint](t_, objc.Sel("maximumNumberOfLines")) - return rv -} - -// The maximum number of lines that the text container can store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444531-maximumnumberoflines?language=objc -func (t_ TextContainer) SetMaximumNumberOfLines(value uint) { - objc.Call[objc.Void](t_, objc.Sel("setMaximumNumberOfLines:"), value) -} - -// A Boolean that controls whether the text container adjusts the height of its bounding rectangle when its text view resizes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444559-heighttrackstextview?language=objc -func (t_ TextContainer) HeightTracksTextView() bool { - rv := objc.Call[bool](t_, objc.Sel("heightTracksTextView")) - return rv -} - -// A Boolean that controls whether the text container adjusts the height of its bounding rectangle when its text view resizes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444559-heighttrackstextview?language=objc -func (t_ TextContainer) SetHeightTracksTextView(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setHeightTracksTextView:"), value) -} - // A Boolean that controls whether the text container adjusts the width of its bounding rectangle when its text view resizes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444563-widthtrackstextview?language=objc @@ -238,3 +214,18 @@ func (t_ TextContainer) WidthTracksTextView() bool { func (t_ TextContainer) SetWidthTracksTextView(value bool) { objc.Call[objc.Void](t_, objc.Sel("setWidthTracksTextView:"), value) } + +// The size of the text container’s bounding rectangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444553-size?language=objc +func (t_ TextContainer) Size() coregraphics.Size { + rv := objc.Call[coregraphics.Size](t_, objc.Sel("size")) + return rv +} + +// The size of the text container’s bounding rectangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444553-size?language=objc +func (t_ TextContainer) SetSize(value coregraphics.Size) { + objc.Call[objc.Void](t_, objc.Sel("setSize:"), value) +} diff --git a/macos/appkit/text_content_manager.gen.go b/macos/appkit/text_content_manager.gen.go index ca1b8120..9587653b 100644 --- a/macos/appkit/text_content_manager.gen.go +++ b/macos/appkit/text_content_manager.gen.go @@ -19,23 +19,23 @@ type _TextContentManagerClass struct { // An interface definition for the [TextContentManager] class. type ITextContentManager interface { objc.IObject + RemoveTextLayoutManager(textLayoutManager ITextLayoutManager) PerformEditingTransactionUsingBlock(transaction func()) - TextElementsForRange(range_ ITextRange) []TextElement - AddTextLayoutManager(textLayoutManager ITextLayoutManager) SynchronizeTextLayoutManagers(completionHandler func(error foundation.Error)) RecordEditActionInRangeNewTextRange(originalTextRange ITextRange, newTextRange ITextRange) - RemoveTextLayoutManager(textLayoutManager ITextLayoutManager) - HasEditingTransaction() bool - AutomaticallySynchronizesTextLayoutManagers() bool - SetAutomaticallySynchronizesTextLayoutManagers(value bool) + TextElementsForRange(range_ ITextRange) []TextElement + AddTextLayoutManager(textLayoutManager ITextLayoutManager) AutomaticallySynchronizesToBackingStore() bool SetAutomaticallySynchronizesToBackingStore(value bool) + AutomaticallySynchronizesTextLayoutManagers() bool + SetAutomaticallySynchronizesTextLayoutManagers(value bool) Delegate() TextContentManagerDelegateObject SetDelegate(value PTextContentManagerDelegate) SetDelegateObject(valueObject objc.IObject) - TextLayoutManagers() []TextLayoutManager PrimaryTextLayoutManager() TextLayoutManager SetPrimaryTextLayoutManager(value ITextLayoutManager) + TextLayoutManagers() []TextLayoutManager + HasEditingTransaction() bool } // An abstract class that defines the interface and a default implementation for managing the text document contents. [Full Topic] @@ -71,6 +71,13 @@ func NewTextContentManager() TextContentManager { return TextContentManagerClass.New() } +// Removes the layout manager you specifiy from the list of layout managers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809924-removetextlayoutmanager?language=objc +func (t_ TextContentManager) RemoveTextLayoutManager(textLayoutManager ITextLayoutManager) { + objc.Call[objc.Void](t_, objc.Sel("removeTextLayoutManager:"), textLayoutManager) +} + // Performs an editing transaction and invokes a block upon completion. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809921-performeditingtransactionusingbl?language=objc @@ -78,21 +85,6 @@ func (t_ TextContentManager) PerformEditingTransactionUsingBlock(transaction fun objc.Call[objc.Void](t_, objc.Sel("performEditingTransactionUsingBlock:"), transaction) } -// Returns an array of text elements that intersect with the range you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809928-textelementsforrange?language=objc -func (t_ TextContentManager) TextElementsForRange(range_ ITextRange) []TextElement { - rv := objc.Call[[]TextElement](t_, objc.Sel("textElementsForRange:"), range_) - return rv -} - -// Adds the layout manager you provide to the list of layout managers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809916-addtextlayoutmanager?language=objc -func (t_ TextContentManager) AddTextLayoutManager(textLayoutManager ITextLayoutManager) { - objc.Call[objc.Void](t_, objc.Sel("addTextLayoutManager:"), textLayoutManager) -} - // Synchronizes changes to all nonprimary text layout managers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809925-synchronizetextlayoutmanagers?language=objc @@ -107,34 +99,19 @@ func (t_ TextContentManager) RecordEditActionInRangeNewTextRange(originalTextRan objc.Call[objc.Void](t_, objc.Sel("recordEditActionInRange:newTextRange:"), originalTextRange, newTextRange) } -// Removes the layout manager you specifiy from the list of layout managers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809924-removetextlayoutmanager?language=objc -func (t_ TextContentManager) RemoveTextLayoutManager(textLayoutManager ITextLayoutManager) { - objc.Call[objc.Void](t_, objc.Sel("removeTextLayoutManager:"), textLayoutManager) -} - -// Indicates there’s an active editing transaction from the primary text layout manager. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809918-haseditingtransaction?language=objc -func (t_ TextContentManager) HasEditingTransaction() bool { - rv := objc.Call[bool](t_, objc.Sel("hasEditingTransaction")) - return rv -} - -// Determines if the framework should automatically synchronize all text layout managers when exiting an editing transaction. [Full Topic] +// Returns an array of text elements that intersect with the range you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3852564-automaticallysynchronizestextlay?language=objc -func (t_ TextContentManager) AutomaticallySynchronizesTextLayoutManagers() bool { - rv := objc.Call[bool](t_, objc.Sel("automaticallySynchronizesTextLayoutManagers")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809928-textelementsforrange?language=objc +func (t_ TextContentManager) TextElementsForRange(range_ ITextRange) []TextElement { + rv := objc.Call[[]TextElement](t_, objc.Sel("textElementsForRange:"), range_) return rv } -// Determines if the framework should automatically synchronize all text layout managers when exiting an editing transaction. [Full Topic] +// Adds the layout manager you provide to the list of layout managers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3852564-automaticallysynchronizestextlay?language=objc -func (t_ TextContentManager) SetAutomaticallySynchronizesTextLayoutManagers(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticallySynchronizesTextLayoutManagers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809916-addtextlayoutmanager?language=objc +func (t_ TextContentManager) AddTextLayoutManager(textLayoutManager ITextLayoutManager) { + objc.Call[objc.Void](t_, objc.Sel("addTextLayoutManager:"), textLayoutManager) } // Determines whether to automatically synchronize with the backing store when an editing transaction finishes. [Full Topic] @@ -152,6 +129,21 @@ func (t_ TextContentManager) SetAutomaticallySynchronizesToBackingStore(value bo objc.Call[objc.Void](t_, objc.Sel("setAutomaticallySynchronizesToBackingStore:"), value) } +// Determines if the framework should automatically synchronize all text layout managers when exiting an editing transaction. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3852564-automaticallysynchronizestextlay?language=objc +func (t_ TextContentManager) AutomaticallySynchronizesTextLayoutManagers() bool { + rv := objc.Call[bool](t_, objc.Sel("automaticallySynchronizesTextLayoutManagers")) + return rv +} + +// Determines if the framework should automatically synchronize all text layout managers when exiting an editing transaction. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3852564-automaticallysynchronizestextlay?language=objc +func (t_ TextContentManager) SetAutomaticallySynchronizesTextLayoutManagers(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticallySynchronizesTextLayoutManagers:"), value) +} + // The delegate for the content manager object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809917-delegate?language=objc @@ -176,14 +168,6 @@ func (t_ TextContentManager) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) } -// The array of text layout managers associated with this text content manager. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809929-textlayoutmanagers?language=objc -func (t_ TextContentManager) TextLayoutManagers() []TextLayoutManager { - rv := objc.Call[[]TextLayoutManager](t_, objc.Sel("textLayoutManagers")) - return rv -} - // The primary text layout manager for this content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809922-primarytextlayoutmanager?language=objc @@ -198,3 +182,19 @@ func (t_ TextContentManager) PrimaryTextLayoutManager() TextLayoutManager { func (t_ TextContentManager) SetPrimaryTextLayoutManager(value ITextLayoutManager) { objc.Call[objc.Void](t_, objc.Sel("setPrimaryTextLayoutManager:"), value) } + +// The array of text layout managers associated with this text content manager. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809929-textlayoutmanagers?language=objc +func (t_ TextContentManager) TextLayoutManagers() []TextLayoutManager { + rv := objc.Call[[]TextLayoutManager](t_, objc.Sel("textLayoutManagers")) + return rv +} + +// Indicates there’s an active editing transaction from the primary text layout manager. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809918-haseditingtransaction?language=objc +func (t_ TextContentManager) HasEditingTransaction() bool { + rv := objc.Call[bool](t_, objc.Sel("hasEditingTransaction")) + return rv +} diff --git a/macos/appkit/text_content_manager_delegate.gen.go b/macos/appkit/text_content_manager_delegate.gen.go index fc90468f..811cbf94 100644 --- a/macos/appkit/text_content_manager_delegate.gen.go +++ b/macos/appkit/text_content_manager_delegate.gen.go @@ -10,10 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanagerdelegate?language=objc type PTextContentManagerDelegate interface { - // optional - TextContentManagerShouldEnumerateTextElementOptions(textContentManager TextContentManager, textElement TextElement, options TextContentManagerEnumerationOptions) bool - HasTextContentManagerShouldEnumerateTextElementOptions() bool - // optional TextContentManagerTextElementAtLocation(textContentManager TextContentManager, location TextLocationObject) TextElement HasTextContentManagerTextElementAtLocation() bool @@ -21,27 +17,9 @@ type PTextContentManagerDelegate interface { // A delegate implementation builder for the [PTextContentManagerDelegate] protocol. type TextContentManagerDelegate struct { - _TextContentManagerShouldEnumerateTextElementOptions func(textContentManager TextContentManager, textElement TextElement, options TextContentManagerEnumerationOptions) bool - _TextContentManagerTextElementAtLocation func(textContentManager TextContentManager, location TextLocationObject) TextElement -} - -func (di *TextContentManagerDelegate) HasTextContentManagerShouldEnumerateTextElementOptions() bool { - return di._TextContentManagerShouldEnumerateTextElementOptions != nil + _TextContentManagerTextElementAtLocation func(textContentManager TextContentManager, location TextLocationObject) TextElement } -// Returns a Boolean value that indicates whether the framework should skip this text element in the enumeration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanagerdelegate/3852566-textcontentmanager?language=objc -func (di *TextContentManagerDelegate) SetTextContentManagerShouldEnumerateTextElementOptions(f func(textContentManager TextContentManager, textElement TextElement, options TextContentManagerEnumerationOptions) bool) { - di._TextContentManagerShouldEnumerateTextElementOptions = f -} - -// Returns a Boolean value that indicates whether the framework should skip this text element in the enumeration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanagerdelegate/3852566-textcontentmanager?language=objc -func (di *TextContentManagerDelegate) TextContentManagerShouldEnumerateTextElementOptions(textContentManager TextContentManager, textElement TextElement, options TextContentManagerEnumerationOptions) bool { - return di._TextContentManagerShouldEnumerateTextElementOptions(textContentManager, textElement, options) -} func (di *TextContentManagerDelegate) HasTextContentManagerTextElementAtLocation() bool { return di._TextContentManagerTextElementAtLocation != nil } @@ -68,18 +46,6 @@ type TextContentManagerDelegateObject struct { objc.Object } -func (t_ TextContentManagerDelegateObject) HasTextContentManagerShouldEnumerateTextElementOptions() bool { - return t_.RespondsToSelector(objc.Sel("textContentManager:shouldEnumerateTextElement:options:")) -} - -// Returns a Boolean value that indicates whether the framework should skip this text element in the enumeration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanagerdelegate/3852566-textcontentmanager?language=objc -func (t_ TextContentManagerDelegateObject) TextContentManagerShouldEnumerateTextElementOptions(textContentManager TextContentManager, textElement TextElement, options TextContentManagerEnumerationOptions) bool { - rv := objc.Call[bool](t_, objc.Sel("textContentManager:shouldEnumerateTextElement:options:"), textContentManager, textElement, options) - return rv -} - func (t_ TextContentManagerDelegateObject) HasTextContentManagerTextElementAtLocation() bool { return t_.RespondsToSelector(objc.Sel("textContentManager:textElementAtLocation:")) } diff --git a/macos/appkit/text_content_storage.gen.go b/macos/appkit/text_content_storage.gen.go index e5041a94..d4be7219 100644 --- a/macos/appkit/text_content_storage.gen.go +++ b/macos/appkit/text_content_storage.gen.go @@ -19,13 +19,13 @@ type _TextContentStorageClass struct { // An interface definition for the [TextContentStorage] class. type ITextContentStorage interface { ITextContentManager - LocationFromLocationWithOffset(location PTextLocation, offset int) TextLocationObject - LocationFromLocationObjectWithOffset(locationObject objc.IObject, offset int) TextLocationObject - TextElementForAttributedString(attributedString foundation.IAttributedString) TextElement + AdjustedRangeFromRangeForEditingTextSelection(textRange ITextRange, forEditingTextSelection bool) TextRange OffsetFromLocationToLocation(from PTextLocation, to PTextLocation) int OffsetFromLocationObjectToLocationObject(fromObject objc.IObject, toObject objc.IObject) int AttributedStringForTextElement(textElement ITextElement) foundation.AttributedString - AdjustedRangeFromRangeForEditingTextSelection(textRange ITextRange, forEditingTextSelection bool) TextRange + TextElementForAttributedString(attributedString foundation.IAttributedString) TextElement + LocationFromLocationWithOffset(location PTextLocation, offset int) TextLocationObject + LocationFromLocationObjectWithOffset(locationObject objc.IObject, offset int) TextLocationObject AttributedString() foundation.AttributedString SetAttributedString(value foundation.IAttributedString) } @@ -63,28 +63,11 @@ func (t_ TextContentStorage) Init() TextContentStorage { return rv } -// Returns a new text location from an existing location and offset you provide. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstorage/3852571-locationfromlocation?language=objc -func (t_ TextContentStorage) LocationFromLocationWithOffset(location PTextLocation, offset int) TextLocationObject { - po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextLocationObject](t_, objc.Sel("locationFromLocation:withOffset:"), po0, offset) - return rv -} - -// Returns a new text location from an existing location and offset you provide. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstorage/3852571-locationfromlocation?language=objc -func (t_ TextContentStorage) LocationFromLocationObjectWithOffset(locationObject objc.IObject, offset int) TextLocationObject { - rv := objc.Call[TextLocationObject](t_, objc.Sel("locationFromLocation:withOffset:"), locationObject, offset) - return rv -} - -// Returns the text element corresponding to object’s attributed string. [Full Topic] +// Returns the text range, if any, in the backing store that required manual adjustment after editing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstorage/3809937-textelementforattributedstring?language=objc -func (t_ TextContentStorage) TextElementForAttributedString(attributedString foundation.IAttributedString) TextElement { - rv := objc.Call[TextElement](t_, objc.Sel("textElementForAttributedString:"), attributedString) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstorage/3852570-adjustedrangefromrange?language=objc +func (t_ TextContentStorage) AdjustedRangeFromRangeForEditingTextSelection(textRange ITextRange, forEditingTextSelection bool) TextRange { + rv := objc.Call[TextRange](t_, objc.Sel("adjustedRangeFromRange:forEditingTextSelection:"), textRange, forEditingTextSelection) return rv } @@ -114,11 +97,28 @@ func (t_ TextContentStorage) AttributedStringForTextElement(textElement ITextEle return rv } -// Returns the text range, if any, in the backing store that required manual adjustment after editing. [Full Topic] +// Returns the text element corresponding to object’s attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstorage/3852570-adjustedrangefromrange?language=objc -func (t_ TextContentStorage) AdjustedRangeFromRangeForEditingTextSelection(textRange ITextRange, forEditingTextSelection bool) TextRange { - rv := objc.Call[TextRange](t_, objc.Sel("adjustedRangeFromRange:forEditingTextSelection:"), textRange, forEditingTextSelection) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstorage/3809937-textelementforattributedstring?language=objc +func (t_ TextContentStorage) TextElementForAttributedString(attributedString foundation.IAttributedString) TextElement { + rv := objc.Call[TextElement](t_, objc.Sel("textElementForAttributedString:"), attributedString) + return rv +} + +// Returns a new text location from an existing location and offset you provide. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstorage/3852571-locationfromlocation?language=objc +func (t_ TextContentStorage) LocationFromLocationWithOffset(location PTextLocation, offset int) TextLocationObject { + po0 := objc.WrapAsProtocol("NSTextLocation", location) + rv := objc.Call[TextLocationObject](t_, objc.Sel("locationFromLocation:withOffset:"), po0, offset) + return rv +} + +// Returns a new text location from an existing location and offset you provide. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstorage/3852571-locationfromlocation?language=objc +func (t_ TextContentStorage) LocationFromLocationObjectWithOffset(locationObject objc.IObject, offset int) TextLocationObject { + rv := objc.Call[TextLocationObject](t_, objc.Sel("locationFromLocation:withOffset:"), locationObject, offset) return rv } diff --git a/macos/appkit/text_delegate.gen.go b/macos/appkit/text_delegate.gen.go index 50237828..246a84d2 100644 --- a/macos/appkit/text_delegate.gen.go +++ b/macos/appkit/text_delegate.gen.go @@ -12,51 +12,51 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate?language=objc type PTextDelegate interface { // optional - TextDidBeginEditing(notification foundation.Notification) - HasTextDidBeginEditing() bool + TextShouldBeginEditing(textObject Text) bool + HasTextShouldBeginEditing() bool // optional TextDidChange(notification foundation.Notification) HasTextDidChange() bool // optional - TextDidEndEditing(notification foundation.Notification) - HasTextDidEndEditing() bool + TextDidBeginEditing(notification foundation.Notification) + HasTextDidBeginEditing() bool // optional TextShouldEndEditing(textObject Text) bool HasTextShouldEndEditing() bool // optional - TextShouldBeginEditing(textObject Text) bool - HasTextShouldBeginEditing() bool + TextDidEndEditing(notification foundation.Notification) + HasTextDidEndEditing() bool } // A delegate implementation builder for the [PTextDelegate] protocol. type TextDelegate struct { - _TextDidBeginEditing func(notification foundation.Notification) + _TextShouldBeginEditing func(textObject Text) bool _TextDidChange func(notification foundation.Notification) - _TextDidEndEditing func(notification foundation.Notification) + _TextDidBeginEditing func(notification foundation.Notification) _TextShouldEndEditing func(textObject Text) bool - _TextShouldBeginEditing func(textObject Text) bool + _TextDidEndEditing func(notification foundation.Notification) } -func (di *TextDelegate) HasTextDidBeginEditing() bool { - return di._TextDidBeginEditing != nil +func (di *TextDelegate) HasTextShouldBeginEditing() bool { + return di._TextShouldBeginEditing != nil } -// Informs the delegate that the text object has begun editing (that the user has begun changing it). [Full Topic] +// Invoked when a text object begins to change its text, this method requests permission for aTextObject to begin editing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1535575-textdidbeginediting?language=objc -func (di *TextDelegate) SetTextDidBeginEditing(f func(notification foundation.Notification)) { - di._TextDidBeginEditing = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1533298-textshouldbeginediting?language=objc +func (di *TextDelegate) SetTextShouldBeginEditing(f func(textObject Text) bool) { + di._TextShouldBeginEditing = f } -// Informs the delegate that the text object has begun editing (that the user has begun changing it). [Full Topic] +// Invoked when a text object begins to change its text, this method requests permission for aTextObject to begin editing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1535575-textdidbeginediting?language=objc -func (di *TextDelegate) TextDidBeginEditing(notification foundation.Notification) { - di._TextDidBeginEditing(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1533298-textshouldbeginediting?language=objc +func (di *TextDelegate) TextShouldBeginEditing(textObject Text) bool { + return di._TextShouldBeginEditing(textObject) } func (di *TextDelegate) HasTextDidChange() bool { return di._TextDidChange != nil @@ -75,56 +75,56 @@ func (di *TextDelegate) SetTextDidChange(f func(notification foundation.Notifica func (di *TextDelegate) TextDidChange(notification foundation.Notification) { di._TextDidChange(notification) } -func (di *TextDelegate) HasTextDidEndEditing() bool { - return di._TextDidEndEditing != nil +func (di *TextDelegate) HasTextDidBeginEditing() bool { + return di._TextDidBeginEditing != nil } -// Informs the delegate that the text object has finished editing (that it has resigned first responder status). [Full Topic] +// Informs the delegate that the text object has begun editing (that the user has begun changing it). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1529016-textdidendediting?language=objc -func (di *TextDelegate) SetTextDidEndEditing(f func(notification foundation.Notification)) { - di._TextDidEndEditing = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1535575-textdidbeginediting?language=objc +func (di *TextDelegate) SetTextDidBeginEditing(f func(notification foundation.Notification)) { + di._TextDidBeginEditing = f } -// Informs the delegate that the text object has finished editing (that it has resigned first responder status). [Full Topic] +// Informs the delegate that the text object has begun editing (that the user has begun changing it). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1529016-textdidendediting?language=objc -func (di *TextDelegate) TextDidEndEditing(notification foundation.Notification) { - di._TextDidEndEditing(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1535575-textdidbeginediting?language=objc +func (di *TextDelegate) TextDidBeginEditing(notification foundation.Notification) { + di._TextDidBeginEditing(notification) } func (di *TextDelegate) HasTextShouldEndEditing() bool { return di._TextShouldEndEditing != nil } -// Invoked from a text object’s implementation of [appkit/nsresponder/resignfirstresponder], this method requests permission for aTextObject to end editing. [Full Topic] +// Invoked from a text object’s implementation of resignFirstResponder, this method requests permission for aTextObject to end editing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1525992-textshouldendediting?language=objc func (di *TextDelegate) SetTextShouldEndEditing(f func(textObject Text) bool) { di._TextShouldEndEditing = f } -// Invoked from a text object’s implementation of [appkit/nsresponder/resignfirstresponder], this method requests permission for aTextObject to end editing. [Full Topic] +// Invoked from a text object’s implementation of resignFirstResponder, this method requests permission for aTextObject to end editing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1525992-textshouldendediting?language=objc func (di *TextDelegate) TextShouldEndEditing(textObject Text) bool { return di._TextShouldEndEditing(textObject) } -func (di *TextDelegate) HasTextShouldBeginEditing() bool { - return di._TextShouldBeginEditing != nil +func (di *TextDelegate) HasTextDidEndEditing() bool { + return di._TextDidEndEditing != nil } -// Invoked when a text object begins to change its text, this method requests permission for aTextObject to begin editing. [Full Topic] +// Informs the delegate that the text object has finished editing (that it has resigned first responder status). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1533298-textshouldbeginediting?language=objc -func (di *TextDelegate) SetTextShouldBeginEditing(f func(textObject Text) bool) { - di._TextShouldBeginEditing = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1529016-textdidendediting?language=objc +func (di *TextDelegate) SetTextDidEndEditing(f func(notification foundation.Notification)) { + di._TextDidEndEditing = f } -// Invoked when a text object begins to change its text, this method requests permission for aTextObject to begin editing. [Full Topic] +// Informs the delegate that the text object has finished editing (that it has resigned first responder status). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1533298-textshouldbeginediting?language=objc -func (di *TextDelegate) TextShouldBeginEditing(textObject Text) bool { - return di._TextShouldBeginEditing(textObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1529016-textdidendediting?language=objc +func (di *TextDelegate) TextDidEndEditing(notification foundation.Notification) { + di._TextDidEndEditing(notification) } // ensure impl type implements protocol interface @@ -135,15 +135,16 @@ type TextDelegateObject struct { objc.Object } -func (t_ TextDelegateObject) HasTextDidBeginEditing() bool { - return t_.RespondsToSelector(objc.Sel("textDidBeginEditing:")) +func (t_ TextDelegateObject) HasTextShouldBeginEditing() bool { + return t_.RespondsToSelector(objc.Sel("textShouldBeginEditing:")) } -// Informs the delegate that the text object has begun editing (that the user has begun changing it). [Full Topic] +// Invoked when a text object begins to change its text, this method requests permission for aTextObject to begin editing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1535575-textdidbeginediting?language=objc -func (t_ TextDelegateObject) TextDidBeginEditing(notification foundation.Notification) { - objc.Call[objc.Void](t_, objc.Sel("textDidBeginEditing:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1533298-textshouldbeginediting?language=objc +func (t_ TextDelegateObject) TextShouldBeginEditing(textObject Text) bool { + rv := objc.Call[bool](t_, objc.Sel("textShouldBeginEditing:"), textObject) + return rv } func (t_ TextDelegateObject) HasTextDidChange() bool { @@ -157,22 +158,22 @@ func (t_ TextDelegateObject) TextDidChange(notification foundation.Notification) objc.Call[objc.Void](t_, objc.Sel("textDidChange:"), notification) } -func (t_ TextDelegateObject) HasTextDidEndEditing() bool { - return t_.RespondsToSelector(objc.Sel("textDidEndEditing:")) +func (t_ TextDelegateObject) HasTextDidBeginEditing() bool { + return t_.RespondsToSelector(objc.Sel("textDidBeginEditing:")) } -// Informs the delegate that the text object has finished editing (that it has resigned first responder status). [Full Topic] +// Informs the delegate that the text object has begun editing (that the user has begun changing it). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1529016-textdidendediting?language=objc -func (t_ TextDelegateObject) TextDidEndEditing(notification foundation.Notification) { - objc.Call[objc.Void](t_, objc.Sel("textDidEndEditing:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1535575-textdidbeginediting?language=objc +func (t_ TextDelegateObject) TextDidBeginEditing(notification foundation.Notification) { + objc.Call[objc.Void](t_, objc.Sel("textDidBeginEditing:"), notification) } func (t_ TextDelegateObject) HasTextShouldEndEditing() bool { return t_.RespondsToSelector(objc.Sel("textShouldEndEditing:")) } -// Invoked from a text object’s implementation of [appkit/nsresponder/resignfirstresponder], this method requests permission for aTextObject to end editing. [Full Topic] +// Invoked from a text object’s implementation of resignFirstResponder, this method requests permission for aTextObject to end editing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1525992-textshouldendediting?language=objc func (t_ TextDelegateObject) TextShouldEndEditing(textObject Text) bool { @@ -180,14 +181,13 @@ func (t_ TextDelegateObject) TextShouldEndEditing(textObject Text) bool { return rv } -func (t_ TextDelegateObject) HasTextShouldBeginEditing() bool { - return t_.RespondsToSelector(objc.Sel("textShouldBeginEditing:")) +func (t_ TextDelegateObject) HasTextDidEndEditing() bool { + return t_.RespondsToSelector(objc.Sel("textDidEndEditing:")) } -// Invoked when a text object begins to change its text, this method requests permission for aTextObject to begin editing. [Full Topic] +// Informs the delegate that the text object has finished editing (that it has resigned first responder status). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1533298-textshouldbeginediting?language=objc -func (t_ TextDelegateObject) TextShouldBeginEditing(textObject Text) bool { - rv := objc.Call[bool](t_, objc.Sel("textShouldBeginEditing:"), textObject) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1529016-textdidendediting?language=objc +func (t_ TextDelegateObject) TextDidEndEditing(notification foundation.Notification) { + objc.Call[objc.Void](t_, objc.Sel("textDidEndEditing:"), notification) } diff --git a/macos/appkit/text_element.gen.go b/macos/appkit/text_element.gen.go index 11d5a3e1..699e3284 100644 --- a/macos/appkit/text_element.gen.go +++ b/macos/appkit/text_element.gen.go @@ -18,10 +18,10 @@ type _TextElementClass struct { // An interface definition for the [TextElement] class. type ITextElement interface { objc.IObject - TextContentManager() TextContentManager - SetTextContentManager(value ITextContentManager) ElementRange() TextRange SetElementRange(value ITextRange) + TextContentManager() TextContentManager + SetTextContentManager(value ITextContentManager) } // An abstract base class that represents the smallest units of text layout such as paragraphs or attachments. [Full Topic] @@ -71,21 +71,6 @@ func (t_ TextElement) Init() TextElement { return rv } -// The value that represents the current content manager. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelement/3809956-textcontentmanager?language=objc -func (t_ TextElement) TextContentManager() TextContentManager { - rv := objc.Call[TextContentManager](t_, objc.Sel("textContentManager")) - return rv -} - -// The value that represents the current content manager. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelement/3809956-textcontentmanager?language=objc -func (t_ TextElement) SetTextContentManager(value ITextContentManager) { - objc.Call[objc.Void](t_, objc.Sel("setTextContentManager:"), value) -} - // A range value that represents the range of the element inside the document. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelement/3809954-elementrange?language=objc @@ -100,3 +85,18 @@ func (t_ TextElement) ElementRange() TextRange { func (t_ TextElement) SetElementRange(value ITextRange) { objc.Call[objc.Void](t_, objc.Sel("setElementRange:"), value) } + +// The value that represents the current content manager. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelement/3809956-textcontentmanager?language=objc +func (t_ TextElement) TextContentManager() TextContentManager { + rv := objc.Call[TextContentManager](t_, objc.Sel("textContentManager")) + return rv +} + +// The value that represents the current content manager. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelement/3809956-textcontentmanager?language=objc +func (t_ TextElement) SetTextContentManager(value ITextContentManager) { + objc.Call[objc.Void](t_, objc.Sel("setTextContentManager:"), value) +} diff --git a/macos/appkit/text_element_provider_protocol.gen.go b/macos/appkit/text_element_provider_protocol.gen.go index d427050d..6660eada 100644 --- a/macos/appkit/text_element_provider_protocol.gen.go +++ b/macos/appkit/text_element_provider_protocol.gen.go @@ -12,28 +12,28 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider?language=objc type PTextElementProvider interface { // optional - SynchronizeToBackingStore(completionHandler func(error foundation.Error)) - HasSynchronizeToBackingStore() bool + ReplaceContentsInRangeWithTextElements(range_ TextRange, textElements []TextElement) + HasReplaceContentsInRangeWithTextElements() bool // optional AdjustedRangeFromRangeForEditingTextSelection(textRange TextRange, forEditingTextSelection bool) TextRange HasAdjustedRangeFromRangeForEditingTextSelection() bool // optional - LocationFromLocationWithOffset(location TextLocationObject, offset int) TextLocationObject - HasLocationFromLocationWithOffset() bool - - // optional - ReplaceContentsInRangeWithTextElements(range_ TextRange, textElements []TextElement) - HasReplaceContentsInRangeWithTextElements() bool + EnumerateTextElementsFromLocationOptionsUsingBlock(textLocation TextLocationObject, options TextContentManagerEnumerationOptions, block func(element TextElement) bool) TextLocationObject + HasEnumerateTextElementsFromLocationOptionsUsingBlock() bool // optional OffsetFromLocationToLocation(from TextLocationObject, to TextLocationObject) int HasOffsetFromLocationToLocation() bool // optional - EnumerateTextElementsFromLocationOptionsUsingBlock(textLocation TextLocationObject, options TextContentManagerEnumerationOptions, block func(element TextElement) bool) TextLocationObject - HasEnumerateTextElementsFromLocationOptionsUsingBlock() bool + SynchronizeToBackingStore(completionHandler func(error foundation.Error)) + HasSynchronizeToBackingStore() bool + + // optional + LocationFromLocationWithOffset(location TextLocationObject, offset int) TextLocationObject + HasLocationFromLocationWithOffset() bool // optional DocumentRange() TextRange @@ -48,15 +48,15 @@ type TextElementProviderObject struct { objc.Object } -func (t_ TextElementProviderObject) HasSynchronizeToBackingStore() bool { - return t_.RespondsToSelector(objc.Sel("synchronizeToBackingStore:")) +func (t_ TextElementProviderObject) HasReplaceContentsInRangeWithTextElements() bool { + return t_.RespondsToSelector(objc.Sel("replaceContentsInRange:withTextElements:")) } -// Synchronizes changes to the backing store. [Full Topic] +// Replaces the characters specified by range with the text elements you provide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809949-synchronizetobackingstore?language=objc -func (t_ TextElementProviderObject) SynchronizeToBackingStore(completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](t_, objc.Sel("synchronizeToBackingStore:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809948-replacecontentsinrange?language=objc +func (t_ TextElementProviderObject) ReplaceContentsInRangeWithTextElements(range_ TextRange, textElements []TextElement) { + objc.Call[objc.Void](t_, objc.Sel("replaceContentsInRange:withTextElements:"), range_, textElements) } func (t_ TextElementProviderObject) HasAdjustedRangeFromRangeForEditingTextSelection() bool { @@ -71,30 +71,19 @@ func (t_ TextElementProviderObject) AdjustedRangeFromRangeForEditingTextSelectio return rv } -func (t_ TextElementProviderObject) HasLocationFromLocationWithOffset() bool { - return t_.RespondsToSelector(objc.Sel("locationFromLocation:withOffset:")) +func (t_ TextElementProviderObject) HasEnumerateTextElementsFromLocationOptionsUsingBlock() bool { + return t_.RespondsToSelector(objc.Sel("enumerateTextElementsFromLocation:options:usingBlock:")) } -// Returns a new location from location with offset you provide. [Full Topic] +// Enumerates text elements starting at the text location you provide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809946-locationfromlocation?language=objc -func (t_ TextElementProviderObject) LocationFromLocationWithOffset(location TextLocationObject, offset int) TextLocationObject { - po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextLocationObject](t_, objc.Sel("locationFromLocation:withOffset:"), po0, offset) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809945-enumeratetextelementsfromlocatio?language=objc +func (t_ TextElementProviderObject) EnumerateTextElementsFromLocationOptionsUsingBlock(textLocation TextLocationObject, options TextContentManagerEnumerationOptions, block func(element TextElement) bool) TextLocationObject { + po0 := objc.WrapAsProtocol("NSTextLocation", textLocation) + rv := objc.Call[TextLocationObject](t_, objc.Sel("enumerateTextElementsFromLocation:options:usingBlock:"), po0, options, block) return rv } -func (t_ TextElementProviderObject) HasReplaceContentsInRangeWithTextElements() bool { - return t_.RespondsToSelector(objc.Sel("replaceContentsInRange:withTextElements:")) -} - -// Replaces the characters specified by range with the text elements you provide. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809948-replacecontentsinrange?language=objc -func (t_ TextElementProviderObject) ReplaceContentsInRangeWithTextElements(range_ TextRange, textElements []TextElement) { - objc.Call[objc.Void](t_, objc.Sel("replaceContentsInRange:withTextElements:"), range_, textElements) -} - func (t_ TextElementProviderObject) HasOffsetFromLocationToLocation() bool { return t_.RespondsToSelector(objc.Sel("offsetFromLocation:toLocation:")) } @@ -109,16 +98,27 @@ func (t_ TextElementProviderObject) OffsetFromLocationToLocation(from TextLocati return rv } -func (t_ TextElementProviderObject) HasEnumerateTextElementsFromLocationOptionsUsingBlock() bool { - return t_.RespondsToSelector(objc.Sel("enumerateTextElementsFromLocation:options:usingBlock:")) +func (t_ TextElementProviderObject) HasSynchronizeToBackingStore() bool { + return t_.RespondsToSelector(objc.Sel("synchronizeToBackingStore:")) } -// Enumerates text elements starting at the text location you provide. [Full Topic] +// Synchronizes changes to the backing store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809945-enumeratetextelementsfromlocatio?language=objc -func (t_ TextElementProviderObject) EnumerateTextElementsFromLocationOptionsUsingBlock(textLocation TextLocationObject, options TextContentManagerEnumerationOptions, block func(element TextElement) bool) TextLocationObject { - po0 := objc.WrapAsProtocol("NSTextLocation", textLocation) - rv := objc.Call[TextLocationObject](t_, objc.Sel("enumerateTextElementsFromLocation:options:usingBlock:"), po0, options, block) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809949-synchronizetobackingstore?language=objc +func (t_ TextElementProviderObject) SynchronizeToBackingStore(completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](t_, objc.Sel("synchronizeToBackingStore:"), completionHandler) +} + +func (t_ TextElementProviderObject) HasLocationFromLocationWithOffset() bool { + return t_.RespondsToSelector(objc.Sel("locationFromLocation:withOffset:")) +} + +// Returns a new location from location with offset you provide. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809946-locationfromlocation?language=objc +func (t_ TextElementProviderObject) LocationFromLocationWithOffset(location TextLocationObject, offset int) TextLocationObject { + po0 := objc.WrapAsProtocol("NSTextLocation", location) + rv := objc.Call[TextLocationObject](t_, objc.Sel("locationFromLocation:withOffset:"), po0, offset) return rv } diff --git a/macos/appkit/text_field.gen.go b/macos/appkit/text_field.gen.go index 776003ed..ce6d801f 100644 --- a/macos/appkit/text_field.gen.go +++ b/macos/appkit/text_field.gen.go @@ -19,51 +19,51 @@ type _TextFieldClass struct { // An interface definition for the [TextField] class. type ITextField interface { IControl - TextDidChange(notification foundation.INotification) SelectText(sender objc.IObject) - TextDidBeginEditing(notification foundation.INotification) TextShouldBeginEditing(textObject IText) bool + TextDidChange(notification foundation.INotification) + TextDidBeginEditing(notification foundation.INotification) TextShouldEndEditing(textObject IText) bool TextDidEndEditing(notification foundation.INotification) - ImportsGraphics() bool - SetImportsGraphics(value bool) - PlaceholderAttributedString() foundation.AttributedString - SetPlaceholderAttributedString(value foundation.IAttributedString) - BezelStyle() TextFieldBezelStyle - SetBezelStyle(value TextFieldBezelStyle) - IsBezeled() bool - SetBezeled(value bool) - AllowsEditingTextAttributes() bool - SetAllowsEditingTextAttributes(value bool) - PlaceholderString() string - SetPlaceholderString(value string) - IsSelectable() bool - SetSelectable(value bool) MaximumNumberOfLines() int SetMaximumNumberOfLines(value int) AllowsDefaultTighteningForTruncation() bool SetAllowsDefaultTighteningForTruncation(value bool) - TextColor() Color - SetTextColor(value IColor) - AllowsCharacterPickerTouchBarItem() bool - SetAllowsCharacterPickerTouchBarItem(value bool) - BackgroundColor() Color - SetBackgroundColor(value IColor) IsBordered() bool SetBordered(value bool) - Delegate() TextFieldDelegateObject - SetDelegate(value PTextFieldDelegate) - SetDelegateObject(valueObject objc.IObject) IsEditable() bool SetEditable(value bool) - LineBreakStrategy() LineBreakStrategy - SetLineBreakStrategy(value LineBreakStrategy) IsAutomaticTextCompletionEnabled() bool SetAutomaticTextCompletionEnabled(value bool) - PreferredMaxLayoutWidth() float64 - SetPreferredMaxLayoutWidth(value float64) + LineBreakStrategy() LineBreakStrategy + SetLineBreakStrategy(value LineBreakStrategy) + Delegate() TextFieldDelegateObject + SetDelegate(value PTextFieldDelegate) + SetDelegateObject(valueObject objc.IObject) + PlaceholderAttributedString() foundation.AttributedString + SetPlaceholderAttributedString(value foundation.IAttributedString) + AllowsCharacterPickerTouchBarItem() bool + SetAllowsCharacterPickerTouchBarItem(value bool) + AllowsEditingTextAttributes() bool + SetAllowsEditingTextAttributes(value bool) + BackgroundColor() Color + SetBackgroundColor(value IColor) + IsSelectable() bool + SetSelectable(value bool) + ImportsGraphics() bool + SetImportsGraphics(value bool) DrawsBackground() bool SetDrawsBackground(value bool) + TextColor() Color + SetTextColor(value IColor) + PlaceholderString() string + SetPlaceholderString(value string) + BezelStyle() TextFieldBezelStyle + SetBezelStyle(value TextFieldBezelStyle) + IsBezeled() bool + SetBezeled(value bool) + PreferredMaxLayoutWidth() float64 + SetPreferredMaxLayoutWidth(value float64) } // Text the user can select or edit to send an action message to a target when the user presses the Return key. [Full Topic] @@ -79,18 +79,6 @@ func TextFieldFrom(ptr unsafe.Pointer) TextField { } } -func (tc _TextFieldClass) LabelWithString(stringValue string) TextField { - rv := objc.Call[TextField](tc, objc.Sel("labelWithString:"), stringValue) - return rv -} - -// Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc -func TextField_LabelWithString(stringValue string) TextField { - return TextFieldClass.LabelWithString(stringValue) -} - func (tc _TextFieldClass) LabelWithAttributedString(attributedStringValue foundation.IAttributedString) TextField { rv := objc.Call[TextField](tc, objc.Sel("labelWithAttributedString:"), attributedStringValue) return rv @@ -103,6 +91,18 @@ func TextField_LabelWithAttributedString(attributedStringValue foundation.IAttri return TextFieldClass.LabelWithAttributedString(attributedStringValue) } +func (tc _TextFieldClass) LabelWithString(stringValue string) TextField { + rv := objc.Call[TextField](tc, objc.Sel("labelWithString:"), stringValue) + return rv +} + +// Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc +func TextField_LabelWithString(stringValue string) TextField { + return TextFieldClass.LabelWithString(stringValue) +} + func (tc _TextFieldClass) WrappingLabelWithString(stringValue string) TextField { rv := objc.Call[TextField](tc, objc.Sel("wrappingLabelWithString:"), stringValue) return rv @@ -161,13 +161,6 @@ func NewTextFieldWithFrame(frameRect foundation.Rect) TextField { return instance } -// Posts a notification when the text changes, and forwards the message to the text field’s cell if it responds. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399397-textdidchange?language=objc -func (t_ TextField) TextDidChange(notification foundation.INotification) { - objc.Call[objc.Void](t_, objc.Sel("textDidChange:"), notification) -} - // Ends editing in the text field and, if it’s selectable, selects the entire text content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399430-selecttext?language=objc @@ -175,13 +168,6 @@ func (t_ TextField) SelectText(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("selectText:"), sender) } -// Posts a notification to the default notification center that the text is about to go into edit mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399426-textdidbeginediting?language=objc -func (t_ TextField) TextDidBeginEditing(notification foundation.INotification) { - objc.Call[objc.Void](t_, objc.Sel("textDidBeginEditing:"), notification) -} - // Requests permission to begin editing a text object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399399-textshouldbeginediting?language=objc @@ -190,6 +176,20 @@ func (t_ TextField) TextShouldBeginEditing(textObject IText) bool { return rv } +// Posts a notification when the text changes, and forwards the message to the text field’s cell if it responds. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399397-textdidchange?language=objc +func (t_ TextField) TextDidChange(notification foundation.INotification) { + objc.Call[objc.Void](t_, objc.Sel("textDidChange:"), notification) +} + +// Posts a notification to the default notification center that the text is about to go into edit mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399426-textdidbeginediting?language=objc +func (t_ TextField) TextDidBeginEditing(notification foundation.INotification) { + objc.Call[objc.Void](t_, objc.Sel("textDidBeginEditing:"), notification) +} + // Performs validation on the text field’s new value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399434-textshouldendediting?language=objc @@ -205,154 +205,133 @@ func (t_ TextField) TextDidEndEditing(notification foundation.INotification) { objc.Call[objc.Void](t_, objc.Sel("textDidEndEditing:"), notification) } -// A Boolean value that controls whether the user can drag image files into the text field. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399428-importsgraphics?language=objc -func (t_ TextField) ImportsGraphics() bool { - rv := objc.Call[bool](t_, objc.Sel("importsGraphics")) - return rv -} - -// A Boolean value that controls whether the user can drag image files into the text field. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399428-importsgraphics?language=objc -func (t_ TextField) SetImportsGraphics(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setImportsGraphics:"), value) -} - -// The attributed string the text field displays when empty to help the user understand the text field’s purpose. [Full Topic] +// The maximum number of lines a wrapping text field displays before clipping or truncating the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399387-placeholderattributedstring?language=objc -func (t_ TextField) PlaceholderAttributedString() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](t_, objc.Sel("placeholderAttributedString")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399424-maximumnumberoflines?language=objc +func (t_ TextField) MaximumNumberOfLines() int { + rv := objc.Call[int](t_, objc.Sel("maximumNumberOfLines")) return rv } -// The attributed string the text field displays when empty to help the user understand the text field’s purpose. [Full Topic] +// The maximum number of lines a wrapping text field displays before clipping or truncating the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399387-placeholderattributedstring?language=objc -func (t_ TextField) SetPlaceholderAttributedString(value foundation.IAttributedString) { - objc.Call[objc.Void](t_, objc.Sel("setPlaceholderAttributedString:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399424-maximumnumberoflines?language=objc +func (t_ TextField) SetMaximumNumberOfLines(value int) { + objc.Call[objc.Void](t_, objc.Sel("setMaximumNumberOfLines:"), value) } -// The text field’s bezel style, square or rounded. [Full Topic] +// A Boolean value that controls whether single-line text fields tighten intercharacter spacing before truncating the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399418-bezelstyle?language=objc -func (t_ TextField) BezelStyle() TextFieldBezelStyle { - rv := objc.Call[TextFieldBezelStyle](t_, objc.Sel("bezelStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399405-allowsdefaulttighteningfortrunca?language=objc +func (t_ TextField) AllowsDefaultTighteningForTruncation() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsDefaultTighteningForTruncation")) return rv } -// The text field’s bezel style, square or rounded. [Full Topic] +// A Boolean value that controls whether single-line text fields tighten intercharacter spacing before truncating the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399418-bezelstyle?language=objc -func (t_ TextField) SetBezelStyle(value TextFieldBezelStyle) { - objc.Call[objc.Void](t_, objc.Sel("setBezelStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399405-allowsdefaulttighteningfortrunca?language=objc +func (t_ TextField) SetAllowsDefaultTighteningForTruncation(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsDefaultTighteningForTruncation:"), value) } -// A Boolean value that controls whether the text field draws a bezeled background around its contents. [Full Topic] +// A Boolean value that controls whether the text field draws a solid black border around its contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399435-bezeled?language=objc -func (t_ TextField) IsBezeled() bool { - rv := objc.Call[bool](t_, objc.Sel("isBezeled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399403-bordered?language=objc +func (t_ TextField) IsBordered() bool { + rv := objc.Call[bool](t_, objc.Sel("isBordered")) return rv } -// A Boolean value that controls whether the text field draws a bezeled background around its contents. [Full Topic] +// A Boolean value that controls whether the text field draws a solid black border around its contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399435-bezeled?language=objc -func (t_ TextField) SetBezeled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setBezeled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399403-bordered?language=objc +func (t_ TextField) SetBordered(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setBordered:"), value) } -// A Boolean value that controls whether the user can change font attributes of the text field’s string. [Full Topic] +// A Boolean value that controls whether the user can edit the value in the text field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399401-allowseditingtextattributes?language=objc -func (t_ TextField) AllowsEditingTextAttributes() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsEditingTextAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399407-editable?language=objc +func (t_ TextField) IsEditable() bool { + rv := objc.Call[bool](t_, objc.Sel("isEditable")) return rv } -// A Boolean value that controls whether the user can change font attributes of the text field’s string. [Full Topic] +// A Boolean value that controls whether the user can edit the value in the text field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399401-allowseditingtextattributes?language=objc -func (t_ TextField) SetAllowsEditingTextAttributes(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsEditingTextAttributes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399407-editable?language=objc +func (t_ TextField) SetEditable(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setEditable:"), value) } -// The string the text field displays when empty to help the user understand the text field’s purpose. [Full Topic] +// A Boolean value that indicates whether the text field automatically completes text as the user types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399391-placeholderstring?language=objc -func (t_ TextField) PlaceholderString() string { - rv := objc.Call[string](t_, objc.Sel("placeholderString")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/2539554-automatictextcompletionenabled?language=objc +func (t_ TextField) IsAutomaticTextCompletionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticTextCompletionEnabled")) return rv } -// The string the text field displays when empty to help the user understand the text field’s purpose. [Full Topic] +// A Boolean value that indicates whether the text field automatically completes text as the user types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399391-placeholderstring?language=objc -func (t_ TextField) SetPlaceholderString(value string) { - objc.Call[objc.Void](t_, objc.Sel("setPlaceholderString:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/2539554-automatictextcompletionenabled?language=objc +func (t_ TextField) SetAutomaticTextCompletionEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticTextCompletionEnabled:"), value) } -// A Boolean value that determines whether the user can select the content of the text field. [Full Topic] +// The strategy that the system uses to break lines when laying out multiple lines of text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399422-selectable?language=objc -func (t_ TextField) IsSelectable() bool { - rv := objc.Call[bool](t_, objc.Sel("isSelectable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/3667464-linebreakstrategy?language=objc +func (t_ TextField) LineBreakStrategy() LineBreakStrategy { + rv := objc.Call[LineBreakStrategy](t_, objc.Sel("lineBreakStrategy")) return rv } -// A Boolean value that determines whether the user can select the content of the text field. [Full Topic] +// The strategy that the system uses to break lines when laying out multiple lines of text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399422-selectable?language=objc -func (t_ TextField) SetSelectable(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setSelectable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/3667464-linebreakstrategy?language=objc +func (t_ TextField) SetLineBreakStrategy(value LineBreakStrategy) { + objc.Call[objc.Void](t_, objc.Sel("setLineBreakStrategy:"), value) } -// The maximum number of lines a wrapping text field displays before clipping or truncating the text. [Full Topic] +// The text field’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399424-maximumnumberoflines?language=objc -func (t_ TextField) MaximumNumberOfLines() int { - rv := objc.Call[int](t_, objc.Sel("maximumNumberOfLines")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399437-delegate?language=objc +func (t_ TextField) Delegate() TextFieldDelegateObject { + rv := objc.Call[TextFieldDelegateObject](t_, objc.Sel("delegate")) return rv } -// The maximum number of lines a wrapping text field displays before clipping or truncating the text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399424-maximumnumberoflines?language=objc -func (t_ TextField) SetMaximumNumberOfLines(value int) { - objc.Call[objc.Void](t_, objc.Sel("setMaximumNumberOfLines:"), value) -} - -// A Boolean value that controls whether single-line text fields tighten intercharacter spacing before truncating the text. [Full Topic] +// The text field’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399405-allowsdefaulttighteningfortrunca?language=objc -func (t_ TextField) AllowsDefaultTighteningForTruncation() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsDefaultTighteningForTruncation")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399437-delegate?language=objc +func (t_ TextField) SetDelegate(value PTextFieldDelegate) { + po0 := objc.WrapAsProtocol("NSTextFieldDelegate", value) + objc.SetAssociatedObject(t_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) } -// A Boolean value that controls whether single-line text fields tighten intercharacter spacing before truncating the text. [Full Topic] +// The text field’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399405-allowsdefaulttighteningfortrunca?language=objc -func (t_ TextField) SetAllowsDefaultTighteningForTruncation(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsDefaultTighteningForTruncation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399437-delegate?language=objc +func (t_ TextField) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) } -// The color of the text field’s content. [Full Topic] +// The attributed string the text field displays when empty to help the user understand the text field’s purpose. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399409-textcolor?language=objc -func (t_ TextField) TextColor() Color { - rv := objc.Call[Color](t_, objc.Sel("textColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399387-placeholderattributedstring?language=objc +func (t_ TextField) PlaceholderAttributedString() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](t_, objc.Sel("placeholderAttributedString")) return rv } -// The color of the text field’s content. [Full Topic] +// The attributed string the text field displays when empty to help the user understand the text field’s purpose. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399409-textcolor?language=objc -func (t_ TextField) SetTextColor(value IColor) { - objc.Call[objc.Void](t_, objc.Sel("setTextColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399387-placeholderattributedstring?language=objc +func (t_ TextField) SetPlaceholderAttributedString(value foundation.IAttributedString) { + objc.Call[objc.Void](t_, objc.Sel("setPlaceholderAttributedString:"), value) } // A Boolean value that controls whether the Touch Bar displays the character picker item for rich text fields. [Full Topic] @@ -370,6 +349,21 @@ func (t_ TextField) SetAllowsCharacterPickerTouchBarItem(value bool) { objc.Call[objc.Void](t_, objc.Sel("setAllowsCharacterPickerTouchBarItem:"), value) } +// A Boolean value that controls whether the user can change font attributes of the text field’s string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399401-allowseditingtextattributes?language=objc +func (t_ TextField) AllowsEditingTextAttributes() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsEditingTextAttributes")) + return rv +} + +// A Boolean value that controls whether the user can change font attributes of the text field’s string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399401-allowseditingtextattributes?language=objc +func (t_ TextField) SetAllowsEditingTextAttributes(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsEditingTextAttributes:"), value) +} + // The color of the background the text field’s cell draws behind the text. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399389-backgroundcolor?language=objc @@ -385,88 +379,109 @@ func (t_ TextField) SetBackgroundColor(value IColor) { objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), value) } -// A Boolean value that controls whether the text field draws a solid black border around its contents. [Full Topic] +// A Boolean value that determines whether the user can select the content of the text field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399403-bordered?language=objc -func (t_ TextField) IsBordered() bool { - rv := objc.Call[bool](t_, objc.Sel("isBordered")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399422-selectable?language=objc +func (t_ TextField) IsSelectable() bool { + rv := objc.Call[bool](t_, objc.Sel("isSelectable")) return rv } -// A Boolean value that controls whether the text field draws a solid black border around its contents. [Full Topic] +// A Boolean value that determines whether the user can select the content of the text field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399403-bordered?language=objc -func (t_ TextField) SetBordered(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setBordered:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399422-selectable?language=objc +func (t_ TextField) SetSelectable(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setSelectable:"), value) } -// The text field’s delegate. [Full Topic] +// A Boolean value that controls whether the user can drag image files into the text field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399437-delegate?language=objc -func (t_ TextField) Delegate() TextFieldDelegateObject { - rv := objc.Call[TextFieldDelegateObject](t_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399428-importsgraphics?language=objc +func (t_ TextField) ImportsGraphics() bool { + rv := objc.Call[bool](t_, objc.Sel("importsGraphics")) return rv } -// The text field’s delegate. [Full Topic] +// A Boolean value that controls whether the user can drag image files into the text field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399437-delegate?language=objc -func (t_ TextField) SetDelegate(value PTextFieldDelegate) { - po0 := objc.WrapAsProtocol("NSTextFieldDelegate", value) - objc.SetAssociatedObject(t_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399428-importsgraphics?language=objc +func (t_ TextField) SetImportsGraphics(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setImportsGraphics:"), value) } -// The text field’s delegate. [Full Topic] +// A Boolean value that controls whether the text field’s cell draws a background color behind the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399437-delegate?language=objc -func (t_ TextField) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399416-drawsbackground?language=objc +func (t_ TextField) DrawsBackground() bool { + rv := objc.Call[bool](t_, objc.Sel("drawsBackground")) + return rv } -// A Boolean value that controls whether the user can edit the value in the text field. [Full Topic] +// A Boolean value that controls whether the text field’s cell draws a background color behind the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399407-editable?language=objc -func (t_ TextField) IsEditable() bool { - rv := objc.Call[bool](t_, objc.Sel("isEditable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399416-drawsbackground?language=objc +func (t_ TextField) SetDrawsBackground(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setDrawsBackground:"), value) +} + +// The color of the text field’s content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399409-textcolor?language=objc +func (t_ TextField) TextColor() Color { + rv := objc.Call[Color](t_, objc.Sel("textColor")) return rv } -// A Boolean value that controls whether the user can edit the value in the text field. [Full Topic] +// The color of the text field’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399407-editable?language=objc -func (t_ TextField) SetEditable(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setEditable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399409-textcolor?language=objc +func (t_ TextField) SetTextColor(value IColor) { + objc.Call[objc.Void](t_, objc.Sel("setTextColor:"), value) } -// The strategy that the system uses to break lines when laying out multiple lines of text. [Full Topic] +// The string the text field displays when empty to help the user understand the text field’s purpose. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/3667464-linebreakstrategy?language=objc -func (t_ TextField) LineBreakStrategy() LineBreakStrategy { - rv := objc.Call[LineBreakStrategy](t_, objc.Sel("lineBreakStrategy")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399391-placeholderstring?language=objc +func (t_ TextField) PlaceholderString() string { + rv := objc.Call[string](t_, objc.Sel("placeholderString")) return rv } -// The strategy that the system uses to break lines when laying out multiple lines of text. [Full Topic] +// The string the text field displays when empty to help the user understand the text field’s purpose. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/3667464-linebreakstrategy?language=objc -func (t_ TextField) SetLineBreakStrategy(value LineBreakStrategy) { - objc.Call[objc.Void](t_, objc.Sel("setLineBreakStrategy:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399391-placeholderstring?language=objc +func (t_ TextField) SetPlaceholderString(value string) { + objc.Call[objc.Void](t_, objc.Sel("setPlaceholderString:"), value) } -// A Boolean value that indicates whether the text field automatically completes text as the user types. [Full Topic] +// The text field’s bezel style, square or rounded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/2539554-automatictextcompletionenabled?language=objc -func (t_ TextField) IsAutomaticTextCompletionEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isAutomaticTextCompletionEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399418-bezelstyle?language=objc +func (t_ TextField) BezelStyle() TextFieldBezelStyle { + rv := objc.Call[TextFieldBezelStyle](t_, objc.Sel("bezelStyle")) return rv } -// A Boolean value that indicates whether the text field automatically completes text as the user types. [Full Topic] +// The text field’s bezel style, square or rounded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/2539554-automatictextcompletionenabled?language=objc -func (t_ TextField) SetAutomaticTextCompletionEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticTextCompletionEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399418-bezelstyle?language=objc +func (t_ TextField) SetBezelStyle(value TextFieldBezelStyle) { + objc.Call[objc.Void](t_, objc.Sel("setBezelStyle:"), value) +} + +// A Boolean value that controls whether the text field draws a bezeled background around its contents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399435-bezeled?language=objc +func (t_ TextField) IsBezeled() bool { + rv := objc.Call[bool](t_, objc.Sel("isBezeled")) + return rv +} + +// A Boolean value that controls whether the text field draws a bezeled background around its contents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399435-bezeled?language=objc +func (t_ TextField) SetBezeled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setBezeled:"), value) } // The maximum width of the text field’s intrinsic content size. [Full Topic] @@ -483,18 +498,3 @@ func (t_ TextField) PreferredMaxLayoutWidth() float64 { func (t_ TextField) SetPreferredMaxLayoutWidth(value float64) { objc.Call[objc.Void](t_, objc.Sel("setPreferredMaxLayoutWidth:"), value) } - -// A Boolean value that controls whether the text field’s cell draws a background color behind the text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399416-drawsbackground?language=objc -func (t_ TextField) DrawsBackground() bool { - rv := objc.Call[bool](t_, objc.Sel("drawsBackground")) - return rv -} - -// A Boolean value that controls whether the text field’s cell draws a background color behind the text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399416-drawsbackground?language=objc -func (t_ TextField) SetDrawsBackground(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setDrawsBackground:"), value) -} diff --git a/macos/appkit/text_field_cell.gen.go b/macos/appkit/text_field_cell.gen.go index 3cc80c29..114ce97a 100644 --- a/macos/appkit/text_field_cell.gen.go +++ b/macos/appkit/text_field_cell.gen.go @@ -24,16 +24,16 @@ type ITextFieldCell interface { SetAllowedInputSourceLocales(value []string) PlaceholderAttributedString() foundation.AttributedString SetPlaceholderAttributedString(value foundation.IAttributedString) - TextColor() Color - SetTextColor(value IColor) - BezelStyle() TextFieldBezelStyle - SetBezelStyle(value TextFieldBezelStyle) - PlaceholderString() string - SetPlaceholderString(value string) BackgroundColor() Color SetBackgroundColor(value IColor) DrawsBackground() bool SetDrawsBackground(value bool) + TextColor() Color + SetTextColor(value IColor) + PlaceholderString() string + SetPlaceholderString(value string) + BezelStyle() TextFieldBezelStyle + SetBezelStyle(value TextFieldBezelStyle) } // An object that enhances the text display capabilities of a cell. [Full Topic] @@ -134,6 +134,36 @@ func (t_ TextFieldCell) SetPlaceholderAttributedString(value foundation.IAttribu objc.Call[objc.Void](t_, objc.Sel("setPlaceholderAttributedString:"), value) } +// The color of the cell’s background. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447159-backgroundcolor?language=objc +func (t_ TextFieldCell) BackgroundColor() Color { + rv := objc.Call[Color](t_, objc.Sel("backgroundColor")) + return rv +} + +// The color of the cell’s background. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447159-backgroundcolor?language=objc +func (t_ TextFieldCell) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), value) +} + +// A Boolean value that indicates whether the cell draws its background color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447155-drawsbackground?language=objc +func (t_ TextFieldCell) DrawsBackground() bool { + rv := objc.Call[bool](t_, objc.Sel("drawsBackground")) + return rv +} + +// A Boolean value that indicates whether the cell draws its background color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447155-drawsbackground?language=objc +func (t_ TextFieldCell) SetDrawsBackground(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setDrawsBackground:"), value) +} + // The color to use to draw the cell’s text. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447151-textcolor?language=objc @@ -149,21 +179,6 @@ func (t_ TextFieldCell) SetTextColor(value IColor) { objc.Call[objc.Void](t_, objc.Sel("setTextColor:"), value) } -// The bezel style to use when drawing the text field. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447161-bezelstyle?language=objc -func (t_ TextFieldCell) BezelStyle() TextFieldBezelStyle { - rv := objc.Call[TextFieldBezelStyle](t_, objc.Sel("bezelStyle")) - return rv -} - -// The bezel style to use when drawing the text field. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447161-bezelstyle?language=objc -func (t_ TextFieldCell) SetBezelStyle(value TextFieldBezelStyle) { - objc.Call[objc.Void](t_, objc.Sel("setBezelStyle:"), value) -} - // The placeholder text for the cell, specified as a plain text string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447165-placeholderstring?language=objc @@ -179,32 +194,17 @@ func (t_ TextFieldCell) SetPlaceholderString(value string) { objc.Call[objc.Void](t_, objc.Sel("setPlaceholderString:"), value) } -// The color of the cell’s background. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447159-backgroundcolor?language=objc -func (t_ TextFieldCell) BackgroundColor() Color { - rv := objc.Call[Color](t_, objc.Sel("backgroundColor")) - return rv -} - -// The color of the cell’s background. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447159-backgroundcolor?language=objc -func (t_ TextFieldCell) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), value) -} - -// A Boolean value that indicates whether the cell draws its background color. [Full Topic] +// The bezel style to use when drawing the text field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447155-drawsbackground?language=objc -func (t_ TextFieldCell) DrawsBackground() bool { - rv := objc.Call[bool](t_, objc.Sel("drawsBackground")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447161-bezelstyle?language=objc +func (t_ TextFieldCell) BezelStyle() TextFieldBezelStyle { + rv := objc.Call[TextFieldBezelStyle](t_, objc.Sel("bezelStyle")) return rv } -// A Boolean value that indicates whether the cell draws its background color. [Full Topic] +// The bezel style to use when drawing the text field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447155-drawsbackground?language=objc -func (t_ TextFieldCell) SetDrawsBackground(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setDrawsBackground:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfieldcell/1447161-bezelstyle?language=objc +func (t_ TextFieldCell) SetBezelStyle(value TextFieldBezelStyle) { + objc.Call[objc.Void](t_, objc.Sel("setBezelStyle:"), value) } diff --git a/macos/appkit/text_field_delegate.gen.go b/macos/appkit/text_field_delegate.gen.go index dae54b97..05d90534 100644 --- a/macos/appkit/text_field_delegate.gen.go +++ b/macos/appkit/text_field_delegate.gen.go @@ -3,7 +3,6 @@ package appkit import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -15,22 +14,12 @@ type PTextFieldDelegate interface { // optional TextFieldTextViewShouldSelectCandidateAtIndex(textField TextField, textView TextView, index uint) bool HasTextFieldTextViewShouldSelectCandidateAtIndex() bool - - // optional - TextFieldTextViewCandidatesForSelectedRange_(textField TextField, textView TextView, candidates []foundation.TextCheckingResult, selectedRange foundation.Range) []foundation.TextCheckingResult - HasTextFieldTextViewCandidatesForSelectedRange_() bool - - // optional - TextFieldTextViewCandidatesForSelectedRange(textField TextField, textView TextView, selectedRange foundation.Range) []objc.Object - HasTextFieldTextViewCandidatesForSelectedRange() bool } // A delegate implementation builder for the [PTextFieldDelegate] protocol. type TextFieldDelegate struct { ControlTextEditingDelegate _TextFieldTextViewShouldSelectCandidateAtIndex func(textField TextField, textView TextView, index uint) bool - _TextFieldTextViewCandidatesForSelectedRange_ func(textField TextField, textView TextView, candidates []foundation.TextCheckingResult, selectedRange foundation.Range) []foundation.TextCheckingResult - _TextFieldTextViewCandidatesForSelectedRange func(textField TextField, textView TextView, selectedRange foundation.Range) []objc.Object } func (di *TextFieldDelegate) HasTextFieldTextViewShouldSelectCandidateAtIndex() bool { @@ -50,40 +39,6 @@ func (di *TextFieldDelegate) SetTextFieldTextViewShouldSelectCandidateAtIndex(f func (di *TextFieldDelegate) TextFieldTextViewShouldSelectCandidateAtIndex(textField TextField, textView TextView, index uint) bool { return di._TextFieldTextViewShouldSelectCandidateAtIndex(textField, textView, index) } -func (di *TextFieldDelegate) HasTextFieldTextViewCandidatesForSelectedRange_() bool { - return di._TextFieldTextViewCandidatesForSelectedRange_ != nil -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfielddelegate/2539556-textfield?language=objc -func (di *TextFieldDelegate) SetTextFieldTextViewCandidatesForSelectedRange_(f func(textField TextField, textView TextView, candidates []foundation.TextCheckingResult, selectedRange foundation.Range) []foundation.TextCheckingResult) { - di._TextFieldTextViewCandidatesForSelectedRange_ = f -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfielddelegate/2539556-textfield?language=objc -func (di *TextFieldDelegate) TextFieldTextViewCandidatesForSelectedRange_(textField TextField, textView TextView, candidates []foundation.TextCheckingResult, selectedRange foundation.Range) []foundation.TextCheckingResult { - return di._TextFieldTextViewCandidatesForSelectedRange_(textField, textView, candidates, selectedRange) -} -func (di *TextFieldDelegate) HasTextFieldTextViewCandidatesForSelectedRange() bool { - return di._TextFieldTextViewCandidatesForSelectedRange != nil -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfielddelegate/2539552-textfield?language=objc -func (di *TextFieldDelegate) SetTextFieldTextViewCandidatesForSelectedRange(f func(textField TextField, textView TextView, selectedRange foundation.Range) []objc.Object) { - di._TextFieldTextViewCandidatesForSelectedRange = f -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfielddelegate/2539552-textfield?language=objc -func (di *TextFieldDelegate) TextFieldTextViewCandidatesForSelectedRange(textField TextField, textView TextView, selectedRange foundation.Range) []objc.Object { - return di._TextFieldTextViewCandidatesForSelectedRange(textField, textView, selectedRange) -} // ensure impl type implements protocol interface var _ PTextFieldDelegate = (*TextFieldDelegateObject)(nil) @@ -104,27 +59,3 @@ func (t_ TextFieldDelegateObject) TextFieldTextViewShouldSelectCandidateAtIndex( rv := objc.Call[bool](t_, objc.Sel("textField:textView:shouldSelectCandidateAtIndex:"), textField, textView, index) return rv } - -func (t_ TextFieldDelegateObject) HasTextFieldTextViewCandidatesForSelectedRange_() bool { - return t_.RespondsToSelector(objc.Sel("textField:textView:candidates:forSelectedRange:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfielddelegate/2539556-textfield?language=objc -func (t_ TextFieldDelegateObject) TextFieldTextViewCandidatesForSelectedRange_(textField TextField, textView TextView, candidates []foundation.TextCheckingResult, selectedRange foundation.Range) []foundation.TextCheckingResult { - rv := objc.Call[[]foundation.TextCheckingResult](t_, objc.Sel("textField:textView:candidates:forSelectedRange:"), textField, textView, candidates, selectedRange) - return rv -} - -func (t_ TextFieldDelegateObject) HasTextFieldTextViewCandidatesForSelectedRange() bool { - return t_.RespondsToSelector(objc.Sel("textField:textView:candidatesForSelectedRange:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfielddelegate/2539552-textfield?language=objc -func (t_ TextFieldDelegateObject) TextFieldTextViewCandidatesForSelectedRange(textField TextField, textView TextView, selectedRange foundation.Range) []objc.Object { - rv := objc.Call[[]objc.Object](t_, objc.Sel("textField:textView:candidatesForSelectedRange:"), textField, textView, selectedRange) - return rv -} diff --git a/macos/appkit/text_finder.gen.go b/macos/appkit/text_finder.gen.go index 5e2c4027..b73f6d12 100644 --- a/macos/appkit/text_finder.gen.go +++ b/macos/appkit/text_finder.gen.go @@ -19,20 +19,20 @@ type _TextFinderClass struct { // An interface definition for the [TextFinder] class. type ITextFinder interface { objc.IObject - NoteClientStringWillChange() - ValidateAction(op TextFinderAction) bool PerformAction(op TextFinderAction) CancelFindIndicator() + NoteClientStringWillChange() + ValidateAction(op TextFinderAction) bool + IncrementalMatchRanges() []foundation.Value IsIncrementalSearchingEnabled() bool SetIncrementalSearchingEnabled(value bool) - IncrementalSearchingShouldDimContentView() bool - SetIncrementalSearchingShouldDimContentView(value bool) - IncrementalMatchRanges() []foundation.Value + FindIndicatorNeedsUpdate() bool + SetFindIndicatorNeedsUpdate(value bool) FindBarContainer() TextFinderBarContainerObject SetFindBarContainer(value PTextFinderBarContainer) SetFindBarContainerObject(valueObject objc.IObject) - FindIndicatorNeedsUpdate() bool - SetFindIndicatorNeedsUpdate(value bool) + IncrementalSearchingShouldDimContentView() bool + SetIncrementalSearchingShouldDimContentView(value bool) Client() TextFinderClientObject SetClient(value PTextFinderClient) SetClientObject(valueObject objc.IObject) @@ -71,18 +71,18 @@ func NewTextFinder() TextFinder { return TextFinderClass.New() } -// Override this method to draw custom highlighting. [Full Topic] +// Performs the specified text finding action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1526120-drawincrementalmatchhighlightinr?language=objc -func (tc _TextFinderClass) DrawIncrementalMatchHighlightInRect(rect foundation.Rect) { - objc.Call[objc.Void](tc, objc.Sel("drawIncrementalMatchHighlightInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1526414-performaction?language=objc +func (t_ TextFinder) PerformAction(op TextFinderAction) { + objc.Call[objc.Void](t_, objc.Sel("performAction:"), op) } -// Override this method to draw custom highlighting. [Full Topic] +// Cancels the find indicator immediately. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1526120-drawincrementalmatchhighlightinr?language=objc -func TextFinder_DrawIncrementalMatchHighlightInRect(rect foundation.Rect) { - TextFinderClass.DrawIncrementalMatchHighlightInRect(rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1525467-cancelfindindicator?language=objc +func (t_ TextFinder) CancelFindIndicator() { + objc.Call[objc.Void](t_, objc.Sel("cancelFindIndicator")) } // Invoke this method when the searched content will change. [Full Topic] @@ -100,18 +100,26 @@ func (t_ TextFinder) ValidateAction(op TextFinderAction) bool { return rv } -// Performs the specified text finding action. [Full Topic] +// Override this method to draw custom highlighting. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1526414-performaction?language=objc -func (t_ TextFinder) PerformAction(op TextFinderAction) { - objc.Call[objc.Void](t_, objc.Sel("performAction:"), op) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1526120-drawincrementalmatchhighlightinr?language=objc +func (tc _TextFinderClass) DrawIncrementalMatchHighlightInRect(rect foundation.Rect) { + objc.Call[objc.Void](tc, objc.Sel("drawIncrementalMatchHighlightInRect:"), rect) } -// Cancels the find indicator immediately. [Full Topic] +// Override this method to draw custom highlighting. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1525467-cancelfindindicator?language=objc -func (t_ TextFinder) CancelFindIndicator() { - objc.Call[objc.Void](t_, objc.Sel("cancelFindIndicator")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1526120-drawincrementalmatchhighlightinr?language=objc +func TextFinder_DrawIncrementalMatchHighlightInRect(rect foundation.Rect) { + TextFinderClass.DrawIncrementalMatchHighlightInRect(rect) +} + +// Array of incremental search matches posted on the main queue, which have been found during a background search. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1528304-incrementalmatchranges?language=objc +func (t_ TextFinder) IncrementalMatchRanges() []foundation.Value { + rv := objc.Call[[]foundation.Value](t_, objc.Sel("incrementalMatchRanges")) + return rv } // Determines if incremental searching is enabled. [Full Topic] @@ -129,27 +137,19 @@ func (t_ TextFinder) SetIncrementalSearchingEnabled(value bool) { objc.Call[objc.Void](t_, objc.Sel("setIncrementalSearchingEnabled:"), value) } -// Determines the type of incremental search feedback to be presented [Full Topic] +// Invoke to specify that the find indicator needs updating when not contained within a scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1528196-incrementalsearchingshoulddimcon?language=objc -func (t_ TextFinder) IncrementalSearchingShouldDimContentView() bool { - rv := objc.Call[bool](t_, objc.Sel("incrementalSearchingShouldDimContentView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1534431-findindicatorneedsupdate?language=objc +func (t_ TextFinder) FindIndicatorNeedsUpdate() bool { + rv := objc.Call[bool](t_, objc.Sel("findIndicatorNeedsUpdate")) return rv } -// Determines the type of incremental search feedback to be presented [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1528196-incrementalsearchingshoulddimcon?language=objc -func (t_ TextFinder) SetIncrementalSearchingShouldDimContentView(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setIncrementalSearchingShouldDimContentView:"), value) -} - -// Array of incremental search matches posted on the main queue, which have been found during a background search. [Full Topic] +// Invoke to specify that the find indicator needs updating when not contained within a scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1528304-incrementalmatchranges?language=objc -func (t_ TextFinder) IncrementalMatchRanges() []foundation.Value { - rv := objc.Call[[]foundation.Value](t_, objc.Sel("incrementalMatchRanges")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1534431-findindicatorneedsupdate?language=objc +func (t_ TextFinder) SetFindIndicatorNeedsUpdate(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setFindIndicatorNeedsUpdate:"), value) } // Specifies the find bar container. [Full Topic] @@ -175,19 +175,19 @@ func (t_ TextFinder) SetFindBarContainerObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setFindBarContainer:"), valueObject) } -// Invoke to specify that the find indicator needs updating when not contained within a scroll view. [Full Topic] +// Determines the type of incremental search feedback to be presented [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1534431-findindicatorneedsupdate?language=objc -func (t_ TextFinder) FindIndicatorNeedsUpdate() bool { - rv := objc.Call[bool](t_, objc.Sel("findIndicatorNeedsUpdate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1528196-incrementalsearchingshoulddimcon?language=objc +func (t_ TextFinder) IncrementalSearchingShouldDimContentView() bool { + rv := objc.Call[bool](t_, objc.Sel("incrementalSearchingShouldDimContentView")) return rv } -// Invoke to specify that the find indicator needs updating when not contained within a scroll view. [Full Topic] +// Determines the type of incremental search feedback to be presented [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1534431-findindicatorneedsupdate?language=objc -func (t_ TextFinder) SetFindIndicatorNeedsUpdate(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setFindIndicatorNeedsUpdate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1528196-incrementalsearchingshoulddimcon?language=objc +func (t_ TextFinder) SetIncrementalSearchingShouldDimContentView(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setIncrementalSearchingShouldDimContentView:"), value) } // The object that provides the target search string, find bar location, and feedback methods. [Full Topic] diff --git a/macos/appkit/text_finder_bar_container_protocol.gen.go b/macos/appkit/text_finder_bar_container_protocol.gen.go index fec53184..772a25d6 100644 --- a/macos/appkit/text_finder_bar_container_protocol.gen.go +++ b/macos/appkit/text_finder_bar_container_protocol.gen.go @@ -10,21 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer?language=objc type PTextFinderBarContainer interface { - // optional - FindBarViewDidChangeHeight() - HasFindBarViewDidChangeHeight() bool - // optional ContentView() View HasContentView() bool // optional - SetFindBarView(value View) - HasSetFindBarView() bool - - // optional - FindBarView() View - HasFindBarView() bool + FindBarViewDidChangeHeight() + HasFindBarViewDidChangeHeight() bool // optional SetFindBarVisible(value bool) @@ -33,6 +25,14 @@ type PTextFinderBarContainer interface { // optional IsFindBarVisible() bool HasIsFindBarVisible() bool + + // optional + SetFindBarView(value View) + HasSetFindBarView() bool + + // optional + FindBarView() View + HasFindBarView() bool } // ensure impl type implements protocol interface @@ -43,17 +43,6 @@ type TextFinderBarContainerObject struct { objc.Object } -func (t_ TextFinderBarContainerObject) HasFindBarViewDidChangeHeight() bool { - return t_.RespondsToSelector(objc.Sel("findBarViewDidChangeHeight")) -} - -// Notifies the find bar container that the find bar has changed its height. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1529109-findbarviewdidchangeheight?language=objc -func (t_ TextFinderBarContainerObject) FindBarViewDidChangeHeight() { - objc.Call[objc.Void](t_, objc.Sel("findBarViewDidChangeHeight")) -} - func (t_ TextFinderBarContainerObject) HasContentView() bool { return t_.RespondsToSelector(objc.Sel("contentView")) } @@ -66,27 +55,15 @@ func (t_ TextFinderBarContainerObject) ContentView() View { return rv } -func (t_ TextFinderBarContainerObject) HasSetFindBarView() bool { - return t_.RespondsToSelector(objc.Sel("setFindBarView:")) -} - -// The view assigned by the text bar as the find bar view for the container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1531692-findbarview?language=objc -func (t_ TextFinderBarContainerObject) SetFindBarView(value View) { - objc.Call[objc.Void](t_, objc.Sel("setFindBarView:"), value) -} - -func (t_ TextFinderBarContainerObject) HasFindBarView() bool { - return t_.RespondsToSelector(objc.Sel("findBarView")) +func (t_ TextFinderBarContainerObject) HasFindBarViewDidChangeHeight() bool { + return t_.RespondsToSelector(objc.Sel("findBarViewDidChangeHeight")) } -// The view assigned by the text bar as the find bar view for the container. [Full Topic] +// Notifies the find bar container that the find bar has changed its height. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1531692-findbarview?language=objc -func (t_ TextFinderBarContainerObject) FindBarView() View { - rv := objc.Call[View](t_, objc.Sel("findBarView")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1529109-findbarviewdidchangeheight?language=objc +func (t_ TextFinderBarContainerObject) FindBarViewDidChangeHeight() { + objc.Call[objc.Void](t_, objc.Sel("findBarViewDidChangeHeight")) } func (t_ TextFinderBarContainerObject) HasSetFindBarVisible() bool { @@ -111,3 +88,26 @@ func (t_ TextFinderBarContainerObject) IsFindBarVisible() bool { rv := objc.Call[bool](t_, objc.Sel("isFindBarVisible")) return rv } + +func (t_ TextFinderBarContainerObject) HasSetFindBarView() bool { + return t_.RespondsToSelector(objc.Sel("setFindBarView:")) +} + +// The view assigned by the text bar as the find bar view for the container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1531692-findbarview?language=objc +func (t_ TextFinderBarContainerObject) SetFindBarView(value View) { + objc.Call[objc.Void](t_, objc.Sel("setFindBarView:"), value) +} + +func (t_ TextFinderBarContainerObject) HasFindBarView() bool { + return t_.RespondsToSelector(objc.Sel("findBarView")) +} + +// The view assigned by the text bar as the find bar view for the container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1531692-findbarview?language=objc +func (t_ TextFinderBarContainerObject) FindBarView() View { + rv := objc.Call[View](t_, objc.Sel("findBarView")) + return rv +} diff --git a/macos/appkit/text_finder_client_protocol.gen.go b/macos/appkit/text_finder_client_protocol.gen.go index 075ab5c5..b71b18c8 100644 --- a/macos/appkit/text_finder_client_protocol.gen.go +++ b/macos/appkit/text_finder_client_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient?language=objc type PTextFinderClient interface { // optional - ReplaceCharactersInRangeWithString(range_ foundation.Range, string_ string) - HasReplaceCharactersInRangeWithString() bool + DidReplaceCharacters() + HasDidReplaceCharacters() bool // optional - ShouldReplaceCharactersInRangesWithStrings(ranges []foundation.Value, strings []string) bool - HasShouldReplaceCharactersInRangesWithStrings() bool + ScrollRangeToVisible(range_ foundation.Range) + HasScrollRangeToVisible() bool // optional DrawCharactersInRangeForContentView(range_ foundation.Range, view View) @@ -32,29 +32,29 @@ type PTextFinderClient interface { HasStringLength() bool // optional - RectsForCharacterRange(range_ foundation.Range) []foundation.Value - HasRectsForCharacterRange() bool - - // optional - ScrollRangeToVisible(range_ foundation.Range) - HasScrollRangeToVisible() bool + ShouldReplaceCharactersInRangesWithStrings(ranges []foundation.Value, strings []string) bool + HasShouldReplaceCharactersInRangesWithStrings() bool // optional - ContentViewAtIndexEffectiveCharacterRange(index uint, outRange foundation.RangePointer) View - HasContentViewAtIndexEffectiveCharacterRange() bool + ReplaceCharactersInRangeWithString(range_ foundation.Range, string_ string) + HasReplaceCharactersInRangeWithString() bool // optional - DidReplaceCharacters() - HasDidReplaceCharacters() bool + RectsForCharacterRange(range_ foundation.Range) []foundation.Value + HasRectsForCharacterRange() bool // optional - AllowsMultipleSelection() bool - HasAllowsMultipleSelection() bool + ContentViewAtIndexEffectiveCharacterRange(index uint, outRange foundation.RangePointer) View + HasContentViewAtIndexEffectiveCharacterRange() bool // optional IsEditable() bool HasIsEditable() bool + // optional + FirstSelectedRange() foundation.Range + HasFirstSelectedRange() bool + // optional VisibleCharacterRanges() []foundation.Value HasVisibleCharacterRanges() bool @@ -64,8 +64,12 @@ type PTextFinderClient interface { HasIsSelectable() bool // optional - FirstSelectedRange() foundation.Range - HasFirstSelectedRange() bool + String() string + HasString() bool + + // optional + AllowsMultipleSelection() bool + HasAllowsMultipleSelection() bool // optional SetSelectedRanges(value []foundation.Value) @@ -74,10 +78,6 @@ type PTextFinderClient interface { // optional SelectedRanges() []foundation.Value HasSelectedRanges() bool - - // optional - String() string - HasString() bool } // ensure impl type implements protocol interface @@ -88,27 +88,26 @@ type TextFinderClientObject struct { objc.Object } -func (t_ TextFinderClientObject) HasReplaceCharactersInRangeWithString() bool { - return t_.RespondsToSelector(objc.Sel("replaceCharactersInRange:withString:")) +func (t_ TextFinderClientObject) HasDidReplaceCharacters() bool { + return t_.RespondsToSelector(objc.Sel("didReplaceCharacters")) } -// Replaces the text in the specified range with the new string. [Full Topic] +// Specifies whether text characters were replaced. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1527702-replacecharactersinrange?language=objc -func (t_ TextFinderClientObject) ReplaceCharactersInRangeWithString(range_ foundation.Range, string_ string) { - objc.Call[objc.Void](t_, objc.Sel("replaceCharactersInRange:withString:"), range_, string_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1534301-didreplacecharacters?language=objc +func (t_ TextFinderClientObject) DidReplaceCharacters() { + objc.Call[objc.Void](t_, objc.Sel("didReplaceCharacters")) } -func (t_ TextFinderClientObject) HasShouldReplaceCharactersInRangesWithStrings() bool { - return t_.RespondsToSelector(objc.Sel("shouldReplaceCharactersInRanges:withStrings:")) +func (t_ TextFinderClientObject) HasScrollRangeToVisible() bool { + return t_.RespondsToSelector(objc.Sel("scrollRangeToVisible:")) } -// Returns whether the specified strings should be replaced. [Full Topic] +// Scrolls the specified range such that it is visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1529811-shouldreplacecharactersinranges?language=objc -func (t_ TextFinderClientObject) ShouldReplaceCharactersInRangesWithStrings(ranges []foundation.Value, strings []string) bool { - rv := objc.Call[bool](t_, objc.Sel("shouldReplaceCharactersInRanges:withStrings:"), ranges, strings) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1526989-scrollrangetovisible?language=objc +func (t_ TextFinderClientObject) ScrollRangeToVisible(range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("scrollRangeToVisible:"), range_) } func (t_ TextFinderClientObject) HasDrawCharactersInRangeForContentView() bool { @@ -146,6 +145,29 @@ func (t_ TextFinderClientObject) StringLength() uint { return rv } +func (t_ TextFinderClientObject) HasShouldReplaceCharactersInRangesWithStrings() bool { + return t_.RespondsToSelector(objc.Sel("shouldReplaceCharactersInRanges:withStrings:")) +} + +// Returns whether the specified strings should be replaced. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1529811-shouldreplacecharactersinranges?language=objc +func (t_ TextFinderClientObject) ShouldReplaceCharactersInRangesWithStrings(ranges []foundation.Value, strings []string) bool { + rv := objc.Call[bool](t_, objc.Sel("shouldReplaceCharactersInRanges:withStrings:"), ranges, strings) + return rv +} + +func (t_ TextFinderClientObject) HasReplaceCharactersInRangeWithString() bool { + return t_.RespondsToSelector(objc.Sel("replaceCharactersInRange:withString:")) +} + +// Replaces the text in the specified range with the new string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1527702-replacecharactersinrange?language=objc +func (t_ TextFinderClientObject) ReplaceCharactersInRangeWithString(range_ foundation.Range, string_ string) { + objc.Call[objc.Void](t_, objc.Sel("replaceCharactersInRange:withString:"), range_, string_) +} + func (t_ TextFinderClientObject) HasRectsForCharacterRange() bool { return t_.RespondsToSelector(objc.Sel("rectsForCharacterRange:")) } @@ -158,17 +180,6 @@ func (t_ TextFinderClientObject) RectsForCharacterRange(range_ foundation.Range) return rv } -func (t_ TextFinderClientObject) HasScrollRangeToVisible() bool { - return t_.RespondsToSelector(objc.Sel("scrollRangeToVisible:")) -} - -// Scrolls the specified range such that it is visible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1526989-scrollrangetovisible?language=objc -func (t_ TextFinderClientObject) ScrollRangeToVisible(range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("scrollRangeToVisible:"), range_) -} - func (t_ TextFinderClientObject) HasContentViewAtIndexEffectiveCharacterRange() bool { return t_.RespondsToSelector(objc.Sel("contentViewAtIndex:effectiveCharacterRange:")) } @@ -181,29 +192,6 @@ func (t_ TextFinderClientObject) ContentViewAtIndexEffectiveCharacterRange(index return rv } -func (t_ TextFinderClientObject) HasDidReplaceCharacters() bool { - return t_.RespondsToSelector(objc.Sel("didReplaceCharacters")) -} - -// Specifies whether text characters were replaced. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1534301-didreplacecharacters?language=objc -func (t_ TextFinderClientObject) DidReplaceCharacters() { - objc.Call[objc.Void](t_, objc.Sel("didReplaceCharacters")) -} - -func (t_ TextFinderClientObject) HasAllowsMultipleSelection() bool { - return t_.RespondsToSelector(objc.Sel("allowsMultipleSelection")) -} - -// Returns whether multiple items can be selected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1530815-allowsmultipleselection?language=objc -func (t_ TextFinderClientObject) AllowsMultipleSelection() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsMultipleSelection")) - return rv -} - func (t_ TextFinderClientObject) HasIsEditable() bool { return t_.RespondsToSelector(objc.Sel("isEditable")) } @@ -216,6 +204,18 @@ func (t_ TextFinderClientObject) IsEditable() bool { return rv } +func (t_ TextFinderClientObject) HasFirstSelectedRange() bool { + return t_.RespondsToSelector(objc.Sel("firstSelectedRange")) +} + +// Returns the currently selected range. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1526936-firstselectedrange?language=objc +func (t_ TextFinderClientObject) FirstSelectedRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("firstSelectedRange")) + return rv +} + func (t_ TextFinderClientObject) HasVisibleCharacterRanges() bool { return t_.RespondsToSelector(objc.Sel("visibleCharacterRanges")) } @@ -240,15 +240,27 @@ func (t_ TextFinderClientObject) IsSelectable() bool { return rv } -func (t_ TextFinderClientObject) HasFirstSelectedRange() bool { - return t_.RespondsToSelector(objc.Sel("firstSelectedRange")) +func (t_ TextFinderClientObject) HasString() bool { + return t_.RespondsToSelector(objc.Sel("string")) } -// Returns the currently selected range. [Full Topic] +// Allows the client to specify a single string for searching. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1526936-firstselectedrange?language=objc -func (t_ TextFinderClientObject) FirstSelectedRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("firstSelectedRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1529462-string?language=objc +func (t_ TextFinderClientObject) String() string { + rv := objc.Call[string](t_, objc.Sel("string")) + return rv +} + +func (t_ TextFinderClientObject) HasAllowsMultipleSelection() bool { + return t_.RespondsToSelector(objc.Sel("allowsMultipleSelection")) +} + +// Returns whether multiple items can be selected. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1530815-allowsmultipleselection?language=objc +func (t_ TextFinderClientObject) AllowsMultipleSelection() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsMultipleSelection")) return rv } @@ -274,15 +286,3 @@ func (t_ TextFinderClientObject) SelectedRanges() []foundation.Value { rv := objc.Call[[]foundation.Value](t_, objc.Sel("selectedRanges")) return rv } - -func (t_ TextFinderClientObject) HasString() bool { - return t_.RespondsToSelector(objc.Sel("string")) -} - -// Allows the client to specify a single string for searching. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1529462-string?language=objc -func (t_ TextFinderClientObject) String() string { - rv := objc.Call[string](t_, objc.Sel("string")) - return rv -} diff --git a/macos/appkit/text_input_client_protocol.gen.go b/macos/appkit/text_input_client_protocol.gen.go index 209552b3..61dca2ba 100644 --- a/macos/appkit/text_input_client_protocol.gen.go +++ b/macos/appkit/text_input_client_protocol.gen.go @@ -12,68 +12,68 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient?language=objc type PTextInputClient interface { // optional - AttributedString() foundation.AttributedString - HasAttributedString() bool + InsertTextReplacementRange(string_ objc.Object, replacementRange foundation.Range) + HasInsertTextReplacementRange() bool // optional - FractionOfDistanceThroughGlyphForPoint(point foundation.Point) float64 - HasFractionOfDistanceThroughGlyphForPoint() bool + HasMarkedText() bool + HasHasMarkedText() bool // optional - SetMarkedTextSelectedRangeReplacementRange(string_ objc.Object, selectedRange foundation.Range, replacementRange foundation.Range) - HasSetMarkedTextSelectedRangeReplacementRange() bool + DrawsVerticallyForCharacterAtIndex(charIndex uint) bool + HasDrawsVerticallyForCharacterAtIndex() bool // optional - FirstRectForCharacterRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.Rect - HasFirstRectForCharacterRangeActualRange() bool + AttributedString() foundation.AttributedString + HasAttributedString() bool // optional - UnmarkText() - HasUnmarkText() bool + CharacterIndexForPoint(point foundation.Point) uint + HasCharacterIndexForPoint() bool // optional - HasMarkedText() bool - HasHasMarkedText() bool + UnmarkText() + HasUnmarkText() bool // optional SelectedRange() foundation.Range HasSelectedRange() bool // optional - BaselineDeltaForCharacterAtIndex(anIndex uint) float64 - HasBaselineDeltaForCharacterAtIndex() bool + MarkedRange() foundation.Range + HasMarkedRange() bool // optional - DoCommandBySelector(selector objc.Selector) - HasDoCommandBySelector() bool + SetMarkedTextSelectedRangeReplacementRange(string_ objc.Object, selectedRange foundation.Range, replacementRange foundation.Range) + HasSetMarkedTextSelectedRangeReplacementRange() bool // optional - DrawsVerticallyForCharacterAtIndex(charIndex uint) bool - HasDrawsVerticallyForCharacterAtIndex() bool + WindowLevel() int + HasWindowLevel() bool // optional - AttributedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.AttributedString - HasAttributedSubstringForProposedRangeActualRange() bool + BaselineDeltaForCharacterAtIndex(anIndex uint) float64 + HasBaselineDeltaForCharacterAtIndex() bool // optional - ValidAttributesForMarkedText() []foundation.AttributedStringKey - HasValidAttributesForMarkedText() bool + AttributedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.AttributedString + HasAttributedSubstringForProposedRangeActualRange() bool // optional - InsertTextReplacementRange(string_ objc.Object, replacementRange foundation.Range) - HasInsertTextReplacementRange() bool + FirstRectForCharacterRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.Rect + HasFirstRectForCharacterRangeActualRange() bool // optional - WindowLevel() int - HasWindowLevel() bool + DoCommandBySelector(selector objc.Selector) + HasDoCommandBySelector() bool // optional - MarkedRange() foundation.Range - HasMarkedRange() bool + FractionOfDistanceThroughGlyphForPoint(point foundation.Point) float64 + HasFractionOfDistanceThroughGlyphForPoint() bool // optional - CharacterIndexForPoint(point foundation.Point) uint - HasCharacterIndexForPoint() bool + ValidAttributesForMarkedText() []foundation.AttributedStringKey + HasValidAttributesForMarkedText() bool } // ensure impl type implements protocol interface @@ -84,50 +84,62 @@ type TextInputClientObject struct { objc.Object } -func (t_ TextInputClientObject) HasAttributedString() bool { - return t_.RespondsToSelector(objc.Sel("attributedString")) +func (t_ TextInputClientObject) HasInsertTextReplacementRange() bool { + return t_.RespondsToSelector(objc.Sel("insertText:replacementRange:")) } -// Returns an attributed string representing the receiver's text storage. [Full Topic] +// Inserts the given string into the receiver, replacing the specified content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438232-attributedstring?language=objc -func (t_ TextInputClientObject) AttributedString() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](t_, objc.Sel("attributedString")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438258-inserttext?language=objc +func (t_ TextInputClientObject) InsertTextReplacementRange(string_ objc.Object, replacementRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("insertText:replacementRange:"), string_, replacementRange) +} + +func (t_ TextInputClientObject) HasHasMarkedText() bool { + return t_.RespondsToSelector(objc.Sel("hasMarkedText")) +} + +// Returns a Boolean value indicating whether the receiver has marked text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438234-hasmarkedtext?language=objc +func (t_ TextInputClientObject) HasMarkedText() bool { + rv := objc.Call[bool](t_, objc.Sel("hasMarkedText")) return rv } -func (t_ TextInputClientObject) HasFractionOfDistanceThroughGlyphForPoint() bool { - return t_.RespondsToSelector(objc.Sel("fractionOfDistanceThroughGlyphForPoint:")) +func (t_ TextInputClientObject) HasDrawsVerticallyForCharacterAtIndex() bool { + return t_.RespondsToSelector(objc.Sel("drawsVerticallyForCharacterAtIndex:")) } -// Returns the fraction of the distance from the left side of the character to the right side that a given point lies. [Full Topic] +// Informs the text input management system whether the protocol-conforming client renders the character at the given index vertically. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438236-fractionofdistancethroughglyphfo?language=objc -func (t_ TextInputClientObject) FractionOfDistanceThroughGlyphForPoint(point foundation.Point) float64 { - rv := objc.Call[float64](t_, objc.Sel("fractionOfDistanceThroughGlyphForPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438252-drawsverticallyforcharacteratind?language=objc +func (t_ TextInputClientObject) DrawsVerticallyForCharacterAtIndex(charIndex uint) bool { + rv := objc.Call[bool](t_, objc.Sel("drawsVerticallyForCharacterAtIndex:"), charIndex) return rv } -func (t_ TextInputClientObject) HasSetMarkedTextSelectedRangeReplacementRange() bool { - return t_.RespondsToSelector(objc.Sel("setMarkedText:selectedRange:replacementRange:")) +func (t_ TextInputClientObject) HasAttributedString() bool { + return t_.RespondsToSelector(objc.Sel("attributedString")) } -// Replaces a specified range in the receiver’s text storage with the given string and sets the selection. [Full Topic] +// Returns an attributed string representing the receiver's text storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438246-setmarkedtext?language=objc -func (t_ TextInputClientObject) SetMarkedTextSelectedRangeReplacementRange(string_ objc.Object, selectedRange foundation.Range, replacementRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setMarkedText:selectedRange:replacementRange:"), string_, selectedRange, replacementRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438232-attributedstring?language=objc +func (t_ TextInputClientObject) AttributedString() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](t_, objc.Sel("attributedString")) + return rv } -func (t_ TextInputClientObject) HasFirstRectForCharacterRangeActualRange() bool { - return t_.RespondsToSelector(objc.Sel("firstRectForCharacterRange:actualRange:")) +func (t_ TextInputClientObject) HasCharacterIndexForPoint() bool { + return t_.RespondsToSelector(objc.Sel("characterIndexForPoint:")) } -// Returns the first logical boundary rectangle for characters in the given range. [Full Topic] +// Returns the index of the character whose bounding rectangle includes the given point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438240-firstrectforcharacterrange?language=objc -func (t_ TextInputClientObject) FirstRectForCharacterRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("firstRectForCharacterRange:actualRange:"), range_, actualRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438244-characterindexforpoint?language=objc +func (t_ TextInputClientObject) CharacterIndexForPoint(point foundation.Point) uint { + rv := objc.Call[uint](t_, objc.Sel("characterIndexForPoint:"), point) return rv } @@ -142,18 +154,6 @@ func (t_ TextInputClientObject) UnmarkText() { objc.Call[objc.Void](t_, objc.Sel("unmarkText")) } -func (t_ TextInputClientObject) HasHasMarkedText() bool { - return t_.RespondsToSelector(objc.Sel("hasMarkedText")) -} - -// Returns a Boolean value indicating whether the receiver has marked text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438234-hasmarkedtext?language=objc -func (t_ TextInputClientObject) HasMarkedText() bool { - rv := objc.Call[bool](t_, objc.Sel("hasMarkedText")) - return rv -} - func (t_ TextInputClientObject) HasSelectedRange() bool { return t_.RespondsToSelector(objc.Sel("selectedRange")) } @@ -166,38 +166,50 @@ func (t_ TextInputClientObject) SelectedRange() foundation.Range { return rv } -func (t_ TextInputClientObject) HasBaselineDeltaForCharacterAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("baselineDeltaForCharacterAtIndex:")) +func (t_ TextInputClientObject) HasMarkedRange() bool { + return t_.RespondsToSelector(objc.Sel("markedRange")) } -// Returns the baseline position of a given character relative to the origin of rectangle returned by [appkit/nstextinputclient/firstrectforcharacterrange]. [Full Topic] +// Returns the range of the marked text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438254-baselinedeltaforcharacteratindex?language=objc -func (t_ TextInputClientObject) BaselineDeltaForCharacterAtIndex(anIndex uint) float64 { - rv := objc.Call[float64](t_, objc.Sel("baselineDeltaForCharacterAtIndex:"), anIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438250-markedrange?language=objc +func (t_ TextInputClientObject) MarkedRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("markedRange")) return rv } -func (t_ TextInputClientObject) HasDoCommandBySelector() bool { - return t_.RespondsToSelector(objc.Sel("doCommandBySelector:")) +func (t_ TextInputClientObject) HasSetMarkedTextSelectedRangeReplacementRange() bool { + return t_.RespondsToSelector(objc.Sel("setMarkedText:selectedRange:replacementRange:")) } -// Invokes the action specified by the given selector. [Full Topic] +// Replaces a specified range in the receiver’s text storage with the given string and sets the selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438256-docommandbyselector?language=objc -func (t_ TextInputClientObject) DoCommandBySelector(selector objc.Selector) { - objc.Call[objc.Void](t_, objc.Sel("doCommandBySelector:"), selector) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438246-setmarkedtext?language=objc +func (t_ TextInputClientObject) SetMarkedTextSelectedRangeReplacementRange(string_ objc.Object, selectedRange foundation.Range, replacementRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setMarkedText:selectedRange:replacementRange:"), string_, selectedRange, replacementRange) } -func (t_ TextInputClientObject) HasDrawsVerticallyForCharacterAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("drawsVerticallyForCharacterAtIndex:")) +func (t_ TextInputClientObject) HasWindowLevel() bool { + return t_.RespondsToSelector(objc.Sel("windowLevel")) } -// Informs the text input management system whether the protocol-conforming client renders the character at the given index vertically. [Full Topic] +// Returns the window level of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438252-drawsverticallyforcharacteratind?language=objc -func (t_ TextInputClientObject) DrawsVerticallyForCharacterAtIndex(charIndex uint) bool { - rv := objc.Call[bool](t_, objc.Sel("drawsVerticallyForCharacterAtIndex:"), charIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438248-windowlevel?language=objc +func (t_ TextInputClientObject) WindowLevel() int { + rv := objc.Call[int](t_, objc.Sel("windowLevel")) + return rv +} + +func (t_ TextInputClientObject) HasBaselineDeltaForCharacterAtIndex() bool { + return t_.RespondsToSelector(objc.Sel("baselineDeltaForCharacterAtIndex:")) +} + +// Returns the baseline position of a given character relative to the origin of rectangle returned by firstRectForCharacterRange:actualRange:. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438254-baselinedeltaforcharacteratindex?language=objc +func (t_ TextInputClientObject) BaselineDeltaForCharacterAtIndex(anIndex uint) float64 { + rv := objc.Call[float64](t_, objc.Sel("baselineDeltaForCharacterAtIndex:"), anIndex) return rv } @@ -213,61 +225,49 @@ func (t_ TextInputClientObject) AttributedSubstringForProposedRangeActualRange(r return rv } -func (t_ TextInputClientObject) HasValidAttributesForMarkedText() bool { - return t_.RespondsToSelector(objc.Sel("validAttributesForMarkedText")) +func (t_ TextInputClientObject) HasFirstRectForCharacterRangeActualRange() bool { + return t_.RespondsToSelector(objc.Sel("firstRectForCharacterRange:actualRange:")) } -// Returns an array of attribute names recognized by the receiver. [Full Topic] +// Returns the first logical boundary rectangle for characters in the given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438228-validattributesformarkedtext?language=objc -func (t_ TextInputClientObject) ValidAttributesForMarkedText() []foundation.AttributedStringKey { - rv := objc.Call[[]foundation.AttributedStringKey](t_, objc.Sel("validAttributesForMarkedText")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438240-firstrectforcharacterrange?language=objc +func (t_ TextInputClientObject) FirstRectForCharacterRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.Rect { + rv := objc.Call[foundation.Rect](t_, objc.Sel("firstRectForCharacterRange:actualRange:"), range_, actualRange) return rv } -func (t_ TextInputClientObject) HasInsertTextReplacementRange() bool { - return t_.RespondsToSelector(objc.Sel("insertText:replacementRange:")) -} - -// Inserts the given string into the receiver, replacing the specified content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438258-inserttext?language=objc -func (t_ TextInputClientObject) InsertTextReplacementRange(string_ objc.Object, replacementRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("insertText:replacementRange:"), string_, replacementRange) -} - -func (t_ TextInputClientObject) HasWindowLevel() bool { - return t_.RespondsToSelector(objc.Sel("windowLevel")) +func (t_ TextInputClientObject) HasDoCommandBySelector() bool { + return t_.RespondsToSelector(objc.Sel("doCommandBySelector:")) } -// Returns the window level of the receiver. [Full Topic] +// Invokes the action specified by the given selector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438248-windowlevel?language=objc -func (t_ TextInputClientObject) WindowLevel() int { - rv := objc.Call[int](t_, objc.Sel("windowLevel")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438256-docommandbyselector?language=objc +func (t_ TextInputClientObject) DoCommandBySelector(selector objc.Selector) { + objc.Call[objc.Void](t_, objc.Sel("doCommandBySelector:"), selector) } -func (t_ TextInputClientObject) HasMarkedRange() bool { - return t_.RespondsToSelector(objc.Sel("markedRange")) +func (t_ TextInputClientObject) HasFractionOfDistanceThroughGlyphForPoint() bool { + return t_.RespondsToSelector(objc.Sel("fractionOfDistanceThroughGlyphForPoint:")) } -// Returns the range of the marked text. [Full Topic] +// Returns the fraction of the distance from the left side of the character to the right side that a given point lies. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438250-markedrange?language=objc -func (t_ TextInputClientObject) MarkedRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("markedRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438236-fractionofdistancethroughglyphfo?language=objc +func (t_ TextInputClientObject) FractionOfDistanceThroughGlyphForPoint(point foundation.Point) float64 { + rv := objc.Call[float64](t_, objc.Sel("fractionOfDistanceThroughGlyphForPoint:"), point) return rv } -func (t_ TextInputClientObject) HasCharacterIndexForPoint() bool { - return t_.RespondsToSelector(objc.Sel("characterIndexForPoint:")) +func (t_ TextInputClientObject) HasValidAttributesForMarkedText() bool { + return t_.RespondsToSelector(objc.Sel("validAttributesForMarkedText")) } -// Returns the index of the character whose bounding rectangle includes the given point. [Full Topic] +// Returns an array of attribute names recognized by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438244-characterindexforpoint?language=objc -func (t_ TextInputClientObject) CharacterIndexForPoint(point foundation.Point) uint { - rv := objc.Call[uint](t_, objc.Sel("characterIndexForPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438228-validattributesformarkedtext?language=objc +func (t_ TextInputClientObject) ValidAttributesForMarkedText() []foundation.AttributedStringKey { + rv := objc.Call[[]foundation.AttributedStringKey](t_, objc.Sel("validAttributesForMarkedText")) return rv } diff --git a/macos/appkit/text_input_context.gen.go b/macos/appkit/text_input_context.gen.go index da4bb627..ae53bce8 100644 --- a/macos/appkit/text_input_context.gen.go +++ b/macos/appkit/text_input_context.gen.go @@ -18,19 +18,19 @@ type _TextInputContextClass struct { // An interface definition for the [TextInputContext] class. type ITextInputContext interface { objc.IObject - HandleEvent(event IEvent) bool Activate() + DiscardMarkedText() + HandleEvent(event IEvent) bool Deactivate() InvalidateCharacterCoordinates() - DiscardMarkedText() - Client() TextInputClientObject + KeyboardInputSources() []TextInputSourceIdentifier AllowedInputSourceLocales() []string SetAllowedInputSourceLocales(value []string) - SelectedKeyboardInputSource() TextInputSourceIdentifier - SetSelectedKeyboardInputSource(value TextInputSourceIdentifier) AcceptsGlyphInfo() bool SetAcceptsGlyphInfo(value bool) - KeyboardInputSources() []TextInputSourceIdentifier + SelectedKeyboardInputSource() TextInputSourceIdentifier + SetSelectedKeyboardInputSource(value TextInputSourceIdentifier) + Client() TextInputClientObject } // An object that represents the Cocoa text input system. [Full Topic] @@ -81,6 +81,20 @@ func (t_ TextInputContext) Init() TextInputContext { return rv } +// Activates the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1534378-activate?language=objc +func (t_ TextInputContext) Activate() { + objc.Call[objc.Void](t_, objc.Sel("activate")) +} + +// Tells the Cocoa text input system to discard the current conversion session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1528752-discardmarkedtext?language=objc +func (t_ TextInputContext) DiscardMarkedText() { + objc.Call[objc.Void](t_, objc.Sel("discardMarkedText")) +} + // Tells the Cocoa text input system to handle mouse or key events. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1528602-handleevent?language=objc @@ -89,13 +103,6 @@ func (t_ TextInputContext) HandleEvent(event IEvent) bool { return rv } -// Activates the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1534378-activate?language=objc -func (t_ TextInputContext) Activate() { - objc.Call[objc.Void](t_, objc.Sel("activate")) -} - // Returns the display name for the given text input source identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1526644-localizednameforinputsource?language=objc @@ -125,33 +132,11 @@ func (t_ TextInputContext) InvalidateCharacterCoordinates() { objc.Call[objc.Void](t_, objc.Sel("invalidateCharacterCoordinates")) } -// Tells the Cocoa text input system to discard the current conversion session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1528752-discardmarkedtext?language=objc -func (t_ TextInputContext) DiscardMarkedText() { - objc.Call[objc.Void](t_, objc.Sel("discardMarkedText")) -} - -// Returns the current, activated, text input context object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1527409-currentinputcontext?language=objc -func (tc _TextInputContextClass) CurrentInputContext() TextInputContext { - rv := objc.Call[TextInputContext](tc, objc.Sel("currentInputContext")) - return rv -} - -// Returns the current, activated, text input context object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1527409-currentinputcontext?language=objc -func TextInputContext_CurrentInputContext() TextInputContext { - return TextInputContextClass.CurrentInputContext() -} - -// The owner of this input context. (read-only) [Full Topic] +// The array of keyboard text input source identifier strings available to the receiver. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1533583-client?language=objc -func (t_ TextInputContext) Client() TextInputClientObject { - rv := objc.Call[TextInputClientObject](t_, objc.Sel("client")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1529156-keyboardinputsources?language=objc +func (t_ TextInputContext) KeyboardInputSources() []TextInputSourceIdentifier { + rv := objc.Call[[]TextInputSourceIdentifier](t_, objc.Sel("keyboardInputSources")) return rv } @@ -170,6 +155,21 @@ func (t_ TextInputContext) SetAllowedInputSourceLocales(value []string) { objc.Call[objc.Void](t_, objc.Sel("setAllowedInputSourceLocales:"), value) } +// A Boolean value that indicates whether the client handles NSGlyphInfoAttributeName or not. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1534420-acceptsglyphinfo?language=objc +func (t_ TextInputContext) AcceptsGlyphInfo() bool { + rv := objc.Call[bool](t_, objc.Sel("acceptsGlyphInfo")) + return rv +} + +// A Boolean value that indicates whether the client handles NSGlyphInfoAttributeName or not. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1534420-acceptsglyphinfo?language=objc +func (t_ TextInputContext) SetAcceptsGlyphInfo(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAcceptsGlyphInfo:"), value) +} + // The identifier string for the selected keyboard text input source. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1533970-selectedkeyboardinputsource?language=objc @@ -185,25 +185,25 @@ func (t_ TextInputContext) SetSelectedKeyboardInputSource(value TextInputSourceI objc.Call[objc.Void](t_, objc.Sel("setSelectedKeyboardInputSource:"), value) } -// A Boolean value that indicates whether the client handles NSGlyphInfoAttributeName or not. [Full Topic] +// Returns the current, activated, text input context object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1534420-acceptsglyphinfo?language=objc -func (t_ TextInputContext) AcceptsGlyphInfo() bool { - rv := objc.Call[bool](t_, objc.Sel("acceptsGlyphInfo")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1527409-currentinputcontext?language=objc +func (tc _TextInputContextClass) CurrentInputContext() TextInputContext { + rv := objc.Call[TextInputContext](tc, objc.Sel("currentInputContext")) return rv } -// A Boolean value that indicates whether the client handles NSGlyphInfoAttributeName or not. [Full Topic] +// Returns the current, activated, text input context object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1534420-acceptsglyphinfo?language=objc -func (t_ TextInputContext) SetAcceptsGlyphInfo(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAcceptsGlyphInfo:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1527409-currentinputcontext?language=objc +func TextInputContext_CurrentInputContext() TextInputContext { + return TextInputContextClass.CurrentInputContext() } -// The array of keyboard text input source identifier strings available to the receiver. (read-only) [Full Topic] +// The owner of this input context. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1529156-keyboardinputsources?language=objc -func (t_ TextInputContext) KeyboardInputSources() []TextInputSourceIdentifier { - rv := objc.Call[[]TextInputSourceIdentifier](t_, objc.Sel("keyboardInputSources")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1533583-client?language=objc +func (t_ TextInputContext) Client() TextInputClientObject { + rv := objc.Call[TextInputClientObject](t_, objc.Sel("client")) return rv } diff --git a/macos/appkit/text_input_traits_protocol.gen.go b/macos/appkit/text_input_traits_protocol.gen.go index 44116fb7..5d66da49 100644 --- a/macos/appkit/text_input_traits_protocol.gen.go +++ b/macos/appkit/text_input_traits_protocol.gen.go @@ -11,12 +11,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits?language=objc type PTextInputTraits interface { // optional - SetAutocorrectionType(value TextInputTraitType) - HasSetAutocorrectionType() bool + SetTextCompletionType(value TextInputTraitType) + HasSetTextCompletionType() bool // optional - AutocorrectionType() TextInputTraitType - HasAutocorrectionType() bool + TextCompletionType() TextInputTraitType + HasTextCompletionType() bool + + // optional + SetSmartQuotesType(value TextInputTraitType) + HasSetSmartQuotesType() bool + + // optional + SmartQuotesType() TextInputTraitType + HasSmartQuotesType() bool // optional SetGrammarCheckingType(value TextInputTraitType) @@ -35,20 +43,12 @@ type PTextInputTraits interface { HasSpellCheckingType() bool // optional - SetTextCompletionType(value TextInputTraitType) - HasSetTextCompletionType() bool - - // optional - TextCompletionType() TextInputTraitType - HasTextCompletionType() bool - - // optional - SetSmartQuotesType(value TextInputTraitType) - HasSetSmartQuotesType() bool + SetAutocorrectionType(value TextInputTraitType) + HasSetAutocorrectionType() bool // optional - SmartQuotesType() TextInputTraitType - HasSmartQuotesType() bool + AutocorrectionType() TextInputTraitType + HasAutocorrectionType() bool // optional SetSmartDashesType(value TextInputTraitType) @@ -74,14 +74,6 @@ type PTextInputTraits interface { LinkDetectionType() TextInputTraitType HasLinkDetectionType() bool - // optional - SetDataDetectionType(value TextInputTraitType) - HasSetDataDetectionType() bool - - // optional - DataDetectionType() TextInputTraitType - HasDataDetectionType() bool - // optional SetTextReplacementType(value TextInputTraitType) HasSetTextReplacementType() bool @@ -89,6 +81,14 @@ type PTextInputTraits interface { // optional TextReplacementType() TextInputTraitType HasTextReplacementType() bool + + // optional + SetDataDetectionType(value TextInputTraitType) + HasSetDataDetectionType() bool + + // optional + DataDetectionType() TextInputTraitType + HasDataDetectionType() bool } // ensure impl type implements protocol interface @@ -99,26 +99,49 @@ type TextInputTraitsObject struct { objc.Object } -func (t_ TextInputTraitsObject) HasSetAutocorrectionType() bool { - return t_.RespondsToSelector(objc.Sel("setAutocorrectionType:")) +func (t_ TextInputTraitsObject) HasSetTextCompletionType() bool { + return t_.RespondsToSelector(objc.Sel("setTextCompletionType:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242732-autocorrectiontype?language=objc -func (t_ TextInputTraitsObject) SetAutocorrectionType(value TextInputTraitType) { - objc.Call[objc.Void](t_, objc.Sel("setAutocorrectionType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242740-textcompletiontype?language=objc +func (t_ TextInputTraitsObject) SetTextCompletionType(value TextInputTraitType) { + objc.Call[objc.Void](t_, objc.Sel("setTextCompletionType:"), value) } -func (t_ TextInputTraitsObject) HasAutocorrectionType() bool { - return t_.RespondsToSelector(objc.Sel("autocorrectionType")) +func (t_ TextInputTraitsObject) HasTextCompletionType() bool { + return t_.RespondsToSelector(objc.Sel("textCompletionType")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242732-autocorrectiontype?language=objc -func (t_ TextInputTraitsObject) AutocorrectionType() TextInputTraitType { - rv := objc.Call[TextInputTraitType](t_, objc.Sel("autocorrectionType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242740-textcompletiontype?language=objc +func (t_ TextInputTraitsObject) TextCompletionType() TextInputTraitType { + rv := objc.Call[TextInputTraitType](t_, objc.Sel("textCompletionType")) + return rv +} + +func (t_ TextInputTraitsObject) HasSetSmartQuotesType() bool { + return t_.RespondsToSelector(objc.Sel("setSmartQuotesType:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242738-smartquotestype?language=objc +func (t_ TextInputTraitsObject) SetSmartQuotesType(value TextInputTraitType) { + objc.Call[objc.Void](t_, objc.Sel("setSmartQuotesType:"), value) +} + +func (t_ TextInputTraitsObject) HasSmartQuotesType() bool { + return t_.RespondsToSelector(objc.Sel("smartQuotesType")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242738-smartquotestype?language=objc +func (t_ TextInputTraitsObject) SmartQuotesType() TextInputTraitType { + rv := objc.Call[TextInputTraitType](t_, objc.Sel("smartQuotesType")) return rv } @@ -168,49 +191,26 @@ func (t_ TextInputTraitsObject) SpellCheckingType() TextInputTraitType { return rv } -func (t_ TextInputTraitsObject) HasSetTextCompletionType() bool { - return t_.RespondsToSelector(objc.Sel("setTextCompletionType:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242740-textcompletiontype?language=objc -func (t_ TextInputTraitsObject) SetTextCompletionType(value TextInputTraitType) { - objc.Call[objc.Void](t_, objc.Sel("setTextCompletionType:"), value) -} - -func (t_ TextInputTraitsObject) HasTextCompletionType() bool { - return t_.RespondsToSelector(objc.Sel("textCompletionType")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242740-textcompletiontype?language=objc -func (t_ TextInputTraitsObject) TextCompletionType() TextInputTraitType { - rv := objc.Call[TextInputTraitType](t_, objc.Sel("textCompletionType")) - return rv -} - -func (t_ TextInputTraitsObject) HasSetSmartQuotesType() bool { - return t_.RespondsToSelector(objc.Sel("setSmartQuotesType:")) +func (t_ TextInputTraitsObject) HasSetAutocorrectionType() bool { + return t_.RespondsToSelector(objc.Sel("setAutocorrectionType:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242738-smartquotestype?language=objc -func (t_ TextInputTraitsObject) SetSmartQuotesType(value TextInputTraitType) { - objc.Call[objc.Void](t_, objc.Sel("setSmartQuotesType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242732-autocorrectiontype?language=objc +func (t_ TextInputTraitsObject) SetAutocorrectionType(value TextInputTraitType) { + objc.Call[objc.Void](t_, objc.Sel("setAutocorrectionType:"), value) } -func (t_ TextInputTraitsObject) HasSmartQuotesType() bool { - return t_.RespondsToSelector(objc.Sel("smartQuotesType")) +func (t_ TextInputTraitsObject) HasAutocorrectionType() bool { + return t_.RespondsToSelector(objc.Sel("autocorrectionType")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242738-smartquotestype?language=objc -func (t_ TextInputTraitsObject) SmartQuotesType() TextInputTraitType { - rv := objc.Call[TextInputTraitType](t_, objc.Sel("smartQuotesType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242732-autocorrectiontype?language=objc +func (t_ TextInputTraitsObject) AutocorrectionType() TextInputTraitType { + rv := objc.Call[TextInputTraitType](t_, objc.Sel("autocorrectionType")) return rv } @@ -283,48 +283,48 @@ func (t_ TextInputTraitsObject) LinkDetectionType() TextInputTraitType { return rv } -func (t_ TextInputTraitsObject) HasSetDataDetectionType() bool { - return t_.RespondsToSelector(objc.Sel("setDataDetectionType:")) +func (t_ TextInputTraitsObject) HasSetTextReplacementType() bool { + return t_.RespondsToSelector(objc.Sel("setTextReplacementType:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242733-datadetectiontype?language=objc -func (t_ TextInputTraitsObject) SetDataDetectionType(value TextInputTraitType) { - objc.Call[objc.Void](t_, objc.Sel("setDataDetectionType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242741-textreplacementtype?language=objc +func (t_ TextInputTraitsObject) SetTextReplacementType(value TextInputTraitType) { + objc.Call[objc.Void](t_, objc.Sel("setTextReplacementType:"), value) } -func (t_ TextInputTraitsObject) HasDataDetectionType() bool { - return t_.RespondsToSelector(objc.Sel("dataDetectionType")) +func (t_ TextInputTraitsObject) HasTextReplacementType() bool { + return t_.RespondsToSelector(objc.Sel("textReplacementType")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242733-datadetectiontype?language=objc -func (t_ TextInputTraitsObject) DataDetectionType() TextInputTraitType { - rv := objc.Call[TextInputTraitType](t_, objc.Sel("dataDetectionType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242741-textreplacementtype?language=objc +func (t_ TextInputTraitsObject) TextReplacementType() TextInputTraitType { + rv := objc.Call[TextInputTraitType](t_, objc.Sel("textReplacementType")) return rv } -func (t_ TextInputTraitsObject) HasSetTextReplacementType() bool { - return t_.RespondsToSelector(objc.Sel("setTextReplacementType:")) +func (t_ TextInputTraitsObject) HasSetDataDetectionType() bool { + return t_.RespondsToSelector(objc.Sel("setDataDetectionType:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242741-textreplacementtype?language=objc -func (t_ TextInputTraitsObject) SetTextReplacementType(value TextInputTraitType) { - objc.Call[objc.Void](t_, objc.Sel("setTextReplacementType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242733-datadetectiontype?language=objc +func (t_ TextInputTraitsObject) SetDataDetectionType(value TextInputTraitType) { + objc.Call[objc.Void](t_, objc.Sel("setDataDetectionType:"), value) } -func (t_ TextInputTraitsObject) HasTextReplacementType() bool { - return t_.RespondsToSelector(objc.Sel("textReplacementType")) +func (t_ TextInputTraitsObject) HasDataDetectionType() bool { + return t_.RespondsToSelector(objc.Sel("dataDetectionType")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242741-textreplacementtype?language=objc -func (t_ TextInputTraitsObject) TextReplacementType() TextInputTraitType { - rv := objc.Call[TextInputTraitType](t_, objc.Sel("textReplacementType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242733-datadetectiontype?language=objc +func (t_ TextInputTraitsObject) DataDetectionType() TextInputTraitType { + rv := objc.Call[TextInputTraitType](t_, objc.Sel("dataDetectionType")) return rv } diff --git a/macos/appkit/text_layout_fragment.gen.go b/macos/appkit/text_layout_fragment.gen.go index 8586051a..aa5e1ca3 100644 --- a/macos/appkit/text_layout_fragment.gen.go +++ b/macos/appkit/text_layout_fragment.gen.go @@ -20,24 +20,24 @@ type _TextLayoutFragmentClass struct { // An interface definition for the [TextLayoutFragment] class. type ITextLayoutFragment interface { objc.IObject - DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) + InvalidateLayout() FrameForTextAttachmentAtLocation(location PTextLocation) coregraphics.Rect FrameForTextAttachmentAtLocationObject(locationObject objc.IObject) coregraphics.Rect - InvalidateLayout() - RangeInElement() TextRange - TextAttachmentViewProviders() []TextAttachmentViewProvider - LayoutFragmentFrame() coregraphics.Rect - State() TextLayoutFragmentState - TopMargin() float64 - TextElement() TextElement + DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) TextLayoutManager() TextLayoutManager - LayoutQueue() foundation.OperationQueue - SetLayoutQueue(value foundation.IOperationQueue) BottomMargin() float64 - TrailingPadding() float64 TextLineFragments() []TextLineFragment - RenderingSurfaceBounds() coregraphics.Rect + State() TextLayoutFragmentState + RangeInElement() TextRange + LayoutQueue() foundation.OperationQueue + SetLayoutQueue(value foundation.IOperationQueue) + TopMargin() float64 LeadingPadding() float64 + LayoutFragmentFrame() coregraphics.Rect + RenderingSurfaceBounds() coregraphics.Rect + TextAttachmentViewProviders() []TextAttachmentViewProvider + TrailingPadding() float64 + TextElement() TextElement } // A class that represents the layout fragment typically corresponding to a rendering surface such as layer or view subclass. [Full Topic] @@ -87,11 +87,11 @@ func (t_ TextLayoutFragment) Init() TextLayoutFragment { return rv } -// Renders the visual representation of this element in the specified graphics context. [Full Topic] +// Invalidates any layout information associated with the text layout fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3824748-drawatpoint?language=objc -func (t_ TextLayoutFragment) DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) { - objc.Call[objc.Void](t_, objc.Sel("drawAtPoint:inContext:"), point, context) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809967-invalidatelayout?language=objc +func (t_ TextLayoutFragment) InvalidateLayout() { + objc.Call[objc.Void](t_, objc.Sel("invalidateLayout")) } // Returns the frame in the text layout fragment coordinate system for the attachment at the location you specify. [Full Topic] @@ -111,34 +111,34 @@ func (t_ TextLayoutFragment) FrameForTextAttachmentAtLocationObject(locationObje return rv } -// Invalidates any layout information associated with the text layout fragment. [Full Topic] +// Renders the visual representation of this element in the specified graphics context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809967-invalidatelayout?language=objc -func (t_ TextLayoutFragment) InvalidateLayout() { - objc.Call[objc.Void](t_, objc.Sel("invalidateLayout")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3824748-drawatpoint?language=objc +func (t_ TextLayoutFragment) DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) { + objc.Call[objc.Void](t_, objc.Sel("drawAtPoint:inContext:"), point, context) } -// Returns the range inside the text element relative to the document origin. [Full Topic] +// Returns the layout manager for this text layout fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809970-rangeinelement?language=objc -func (t_ TextLayoutFragment) RangeInElement() TextRange { - rv := objc.Call[TextRange](t_, objc.Sel("rangeInElement")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809975-textlayoutmanager?language=objc +func (t_ TextLayoutFragment) TextLayoutManager() TextLayoutManager { + rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) return rv } -// Returns the attachment view provider associated with the text layout fragment. [Full Topic] +// Returns the amount of space reserved during paragraph layout between the bottom of the last line in the paragraph and the bottom of the text layout fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809973-textattachmentviewproviders?language=objc -func (t_ TextLayoutFragment) TextAttachmentViewProviders() []TextAttachmentViewProvider { - rv := objc.Call[[]TextAttachmentViewProvider](t_, objc.Sel("textAttachmentViewProviders")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3852574-bottommargin?language=objc +func (t_ TextLayoutFragment) BottomMargin() float64 { + rv := objc.Call[float64](t_, objc.Sel("bottomMargin")) return rv } -// Returns the rectangle the framework uses for tiling the layout fragment inside the target layout coordinate system. [Full Topic] +// Returns an array of text line fragments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809968-layoutfragmentframe?language=objc -func (t_ TextLayoutFragment) LayoutFragmentFrame() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](t_, objc.Sel("layoutFragmentFrame")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809976-textlinefragments?language=objc +func (t_ TextLayoutFragment) TextLineFragments() []TextLineFragment { + rv := objc.Call[[]TextLineFragment](t_, objc.Sel("textLineFragments")) return rv } @@ -150,27 +150,11 @@ func (t_ TextLayoutFragment) State() TextLayoutFragmentState { return rv } -// Returns the amount of space reserved during paragraph layout between the top of the text layout fragment and the top of the first line in the paragraph. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3852576-topmargin?language=objc -func (t_ TextLayoutFragment) TopMargin() float64 { - rv := objc.Call[float64](t_, objc.Sel("topMargin")) - return rv -} - -// Returns the parent text element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809974-textelement?language=objc -func (t_ TextLayoutFragment) TextElement() TextElement { - rv := objc.Call[TextElement](t_, objc.Sel("textElement")) - return rv -} - -// Returns the layout manager for this text layout fragment. [Full Topic] +// Returns the range inside the text element relative to the document origin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809975-textlayoutmanager?language=objc -func (t_ TextLayoutFragment) TextLayoutManager() TextLayoutManager { - rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809970-rangeinelement?language=objc +func (t_ TextLayoutFragment) RangeInElement() TextRange { + rv := objc.Call[TextRange](t_, objc.Sel("rangeInElement")) return rv } @@ -189,27 +173,27 @@ func (t_ TextLayoutFragment) SetLayoutQueue(value foundation.IOperationQueue) { objc.Call[objc.Void](t_, objc.Sel("setLayoutQueue:"), value) } -// Returns the amount of space reserved during paragraph layout between the bottom of the last line in the paragraph and the bottom of the text layout fragment. [Full Topic] +// Returns the amount of space reserved during paragraph layout between the top of the text layout fragment and the top of the first line in the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3852574-bottommargin?language=objc -func (t_ TextLayoutFragment) BottomMargin() float64 { - rv := objc.Call[float64](t_, objc.Sel("bottomMargin")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3852576-topmargin?language=objc +func (t_ TextLayoutFragment) TopMargin() float64 { + rv := objc.Call[float64](t_, objc.Sel("topMargin")) return rv } -// Returns the amount of margin space reserved during paragraph layout between the end of the lines in the paragraph and the trailing edge of the text layout fragment. [Full Topic] +// Returns the amount of margin space reserved during paragraph layout between the leading edge of the text layout fragment and the start of the lines in the paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3852577-trailingpadding?language=objc -func (t_ TextLayoutFragment) TrailingPadding() float64 { - rv := objc.Call[float64](t_, objc.Sel("trailingPadding")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3852575-leadingpadding?language=objc +func (t_ TextLayoutFragment) LeadingPadding() float64 { + rv := objc.Call[float64](t_, objc.Sel("leadingPadding")) return rv } -// Returns an array of text line fragments. [Full Topic] +// Returns the rectangle the framework uses for tiling the layout fragment inside the target layout coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809976-textlinefragments?language=objc -func (t_ TextLayoutFragment) TextLineFragments() []TextLineFragment { - rv := objc.Call[[]TextLineFragment](t_, objc.Sel("textLineFragments")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809968-layoutfragmentframe?language=objc +func (t_ TextLayoutFragment) LayoutFragmentFrame() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](t_, objc.Sel("layoutFragmentFrame")) return rv } @@ -221,10 +205,26 @@ func (t_ TextLayoutFragment) RenderingSurfaceBounds() coregraphics.Rect { return rv } -// Returns the amount of margin space reserved during paragraph layout between the leading edge of the text layout fragment and the start of the lines in the paragraph. [Full Topic] +// Returns the attachment view provider associated with the text layout fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3852575-leadingpadding?language=objc -func (t_ TextLayoutFragment) LeadingPadding() float64 { - rv := objc.Call[float64](t_, objc.Sel("leadingPadding")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809973-textattachmentviewproviders?language=objc +func (t_ TextLayoutFragment) TextAttachmentViewProviders() []TextAttachmentViewProvider { + rv := objc.Call[[]TextAttachmentViewProvider](t_, objc.Sel("textAttachmentViewProviders")) + return rv +} + +// Returns the amount of margin space reserved during paragraph layout between the end of the lines in the paragraph and the trailing edge of the text layout fragment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3852577-trailingpadding?language=objc +func (t_ TextLayoutFragment) TrailingPadding() float64 { + rv := objc.Call[float64](t_, objc.Sel("trailingPadding")) + return rv +} + +// Returns the parent text element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutfragment/3809974-textelement?language=objc +func (t_ TextLayoutFragment) TextElement() TextElement { + rv := objc.Call[TextElement](t_, objc.Sel("textElement")) return rv } diff --git a/macos/appkit/text_layout_manager.gen.go b/macos/appkit/text_layout_manager.gen.go index d306e51b..c0caba09 100644 --- a/macos/appkit/text_layout_manager.gen.go +++ b/macos/appkit/text_layout_manager.gen.go @@ -20,48 +20,47 @@ type _TextLayoutManagerClass struct { // An interface definition for the [TextLayoutManager] class. type ITextLayoutManager interface { objc.IObject - ReplaceContentsInRangeWithAttributedString(range_ ITextRange, attributedString foundation.IAttributedString) - SetRenderingAttributesForTextRange(renderingAttributes map[foundation.AttributedStringKey]objc.IObject, textRange ITextRange) - EnsureLayoutForBounds(bounds coregraphics.Rect) - InvalidateLayoutForRange(range_ ITextRange) TextLayoutFragmentForPosition(position coregraphics.Point) TextLayoutFragment + EnsureLayoutForRange(range_ ITextRange) RenderingAttributesForLinkAtLocation(link objc.IObject, location PTextLocation) map[foundation.AttributedStringKey]objc.Object RenderingAttributesForLinkAtLocationObject(link objc.IObject, locationObject objc.IObject) map[foundation.AttributedStringKey]objc.Object + SetRenderingAttributesForTextRange(renderingAttributes map[foundation.AttributedStringKey]objc.IObject, textRange ITextRange) + ReplaceContentsInRangeWithAttributedString(range_ ITextRange, attributedString foundation.IAttributedString) TextLayoutFragmentForLocation(location PTextLocation) TextLayoutFragment TextLayoutFragmentForLocationObject(locationObject objc.IObject) TextLayoutFragment - ReplaceContentsInRangeWithTextElements(range_ ITextRange, textElements []ITextElement) - EnumerateRenderingAttributesFromLocationReverseUsingBlock(location PTextLocation, reverse bool, block func(textLayoutManager TextLayoutManager, attributes map[foundation.AttributedStringKey]objc.Object, textRange TextRange) bool) - EnumerateRenderingAttributesFromLocationObjectReverseUsingBlock(locationObject objc.IObject, reverse bool, block func(textLayoutManager TextLayoutManager, attributes map[foundation.AttributedStringKey]objc.Object, textRange TextRange) bool) - EnumerateTextLayoutFragmentsFromLocationOptionsUsingBlock(location PTextLocation, options TextLayoutFragmentEnumerationOptions, block func(layoutFragment TextLayoutFragment) bool) TextLocationObject - EnumerateTextLayoutFragmentsFromLocationObjectOptionsUsingBlock(locationObject objc.IObject, options TextLayoutFragmentEnumerationOptions, block func(layoutFragment TextLayoutFragment) bool) TextLocationObject - InvalidateRenderingAttributesForTextRange(textRange ITextRange) EnumerateTextSegmentsInRangeTypeOptionsUsingBlock(textRange ITextRange, type_ TextLayoutManagerSegmentType, options TextLayoutManagerSegmentOptions, block func(textSegmentRange TextRange, textSegmentFrame coregraphics.Rect, baselinePosition float64, textContainer TextContainer) bool) RemoveRenderingAttributeForTextRange(renderingAttribute foundation.AttributedStringKey, textRange ITextRange) - EnsureLayoutForRange(range_ ITextRange) + EnumerateTextLayoutFragmentsFromLocationOptionsUsingBlock(location PTextLocation, options TextLayoutFragmentEnumerationOptions, block func(layoutFragment TextLayoutFragment) bool) TextLocationObject + EnumerateTextLayoutFragmentsFromLocationObjectOptionsUsingBlock(locationObject objc.IObject, options TextLayoutFragmentEnumerationOptions, block func(layoutFragment TextLayoutFragment) bool) TextLocationObject + EnumerateRenderingAttributesFromLocationReverseUsingBlock(location PTextLocation, reverse bool, block func(textLayoutManager TextLayoutManager, attributes map[foundation.AttributedStringKey]objc.Object, textRange TextRange) bool) + EnumerateRenderingAttributesFromLocationObjectReverseUsingBlock(locationObject objc.IObject, reverse bool, block func(textLayoutManager TextLayoutManager, attributes map[foundation.AttributedStringKey]objc.Object, textRange TextRange) bool) AddRenderingAttributeValueForTextRange(renderingAttribute foundation.AttributedStringKey, value objc.IObject, textRange ITextRange) + EnsureLayoutForBounds(bounds coregraphics.Rect) ReplaceTextContentManager(textContentManager ITextContentManager) - UsesFontLeading() bool - SetUsesFontLeading(value bool) - LimitsLayoutForSuspiciousContents() bool - SetLimitsLayoutForSuspiciousContents(value bool) - TextContentManager() TextContentManager + InvalidateLayoutForRange(range_ ITextRange) + InvalidateRenderingAttributesForTextRange(textRange ITextRange) + TextSelections() []TextSelection + SetTextSelections(value []ITextSelection) + TextSelectionNavigation() TextSelectionNavigation + SetTextSelectionNavigation(value ITextSelectionNavigation) RenderingAttributesValidator() func(textLayoutManager TextLayoutManager, textLayoutFragment TextLayoutFragment) SetRenderingAttributesValidator(value func(textLayoutManager TextLayoutManager, textLayoutFragment TextLayoutFragment)) + TextViewportLayoutController() TextViewportLayoutController + LayoutQueue() foundation.OperationQueue + SetLayoutQueue(value foundation.IOperationQueue) + UsageBoundsForTextContainer() coregraphics.Rect Delegate() TextLayoutManagerDelegateObject SetDelegate(value PTextLayoutManagerDelegate) SetDelegateObject(valueObject objc.IObject) - TextViewportLayoutController() TextViewportLayoutController - UsageBoundsForTextContainer() coregraphics.Rect - TextSelectionNavigation() TextSelectionNavigation - SetTextSelectionNavigation(value ITextSelectionNavigation) + LimitsLayoutForSuspiciousContents() bool + SetLimitsLayoutForSuspiciousContents(value bool) UsesHyphenation() bool SetUsesHyphenation(value bool) - TextSelections() []TextSelection - SetTextSelections(value []ITextSelection) - LayoutQueue() foundation.OperationQueue - SetLayoutQueue(value foundation.IOperationQueue) TextContainer() TextContainer SetTextContainer(value ITextContainer) + UsesFontLeading() bool + SetUsesFontLeading(value bool) + TextContentManager() TextContentManager } // The primary class that you use to manage text layout and presentation for custom text displays. [Full Topic] @@ -97,34 +96,6 @@ func NewTextLayoutManager() TextLayoutManager { return TextLayoutManagerClass.New() } -// Replaces content at the location you specify with an attributed string you provide. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810006-replacecontentsinrange?language=objc -func (t_ TextLayoutManager) ReplaceContentsInRangeWithAttributedString(range_ ITextRange, attributedString foundation.IAttributedString) { - objc.Call[objc.Void](t_, objc.Sel("replaceContentsInRange:withAttributedString:"), range_, attributedString) -} - -// Sets the rendering attributes for the range you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810009-setrenderingattributes?language=objc -func (t_ TextLayoutManager) SetRenderingAttributesForTextRange(renderingAttributes map[foundation.AttributedStringKey]objc.IObject, textRange ITextRange) { - objc.Call[objc.Void](t_, objc.Sel("setRenderingAttributes:forTextRange:"), renderingAttributes, textRange) -} - -// Performs the layout for filling the bounds you specify inside the last text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809991-ensurelayoutforbounds?language=objc -func (t_ TextLayoutManager) EnsureLayoutForBounds(bounds coregraphics.Rect) { - objc.Call[objc.Void](t_, objc.Sel("ensureLayoutForBounds:"), bounds) -} - -// Invalidates the layout information for specified text range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809998-invalidatelayoutforrange?language=objc -func (t_ TextLayoutManager) InvalidateLayoutForRange(range_ ITextRange) { - objc.Call[objc.Void](t_, objc.Sel("invalidateLayoutForRange:"), range_) -} - // Returns the text layout fragment at the position you specify in the text container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810013-textlayoutfragmentforposition?language=objc @@ -133,6 +104,13 @@ func (t_ TextLayoutManager) TextLayoutFragmentForPosition(position coregraphics. return rv } +// Performs the layout for specified text range. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809992-ensurelayoutforrange?language=objc +func (t_ TextLayoutManager) EnsureLayoutForRange(range_ ITextRange) { + objc.Call[objc.Void](t_, objc.Sel("ensureLayoutForRange:"), range_) +} + // Returns a dictionary of rendering attributes for rendering a link. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810004-renderingattributesforlink?language=objc @@ -150,6 +128,20 @@ func (t_ TextLayoutManager) RenderingAttributesForLinkAtLocationObject(link objc return rv } +// Sets the rendering attributes for the range you specify. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810009-setrenderingattributes?language=objc +func (t_ TextLayoutManager) SetRenderingAttributesForTextRange(renderingAttributes map[foundation.AttributedStringKey]objc.IObject, textRange ITextRange) { + objc.Call[objc.Void](t_, objc.Sel("setRenderingAttributes:forTextRange:"), renderingAttributes, textRange) +} + +// Replaces content at the location you specify with an attributed string you provide. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810006-replacecontentsinrange?language=objc +func (t_ TextLayoutManager) ReplaceContentsInRangeWithAttributedString(range_ ITextRange, attributedString foundation.IAttributedString) { + objc.Call[objc.Void](t_, objc.Sel("replaceContentsInRange:withAttributedString:"), range_, attributedString) +} + // Returns the text layout fragment from the document at the specified location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810012-textlayoutfragmentforlocation?language=objc @@ -167,26 +159,18 @@ func (t_ TextLayoutManager) TextLayoutFragmentForLocationObject(locationObject o return rv } -// Replaces content at the location you specify with the text elements string you provide. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810007-replacecontentsinrange?language=objc -func (t_ TextLayoutManager) ReplaceContentsInRangeWithTextElements(range_ ITextRange, textElements []ITextElement) { - objc.Call[objc.Void](t_, objc.Sel("replaceContentsInRange:withTextElements:"), range_, textElements) -} - -// Enumerates the rendering attributes from a location you specify. [Full Topic] +// Enumerates text segments of a specific type and in the text range you provide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809993-enumeraterenderingattributesfrom?language=objc -func (t_ TextLayoutManager) EnumerateRenderingAttributesFromLocationReverseUsingBlock(location PTextLocation, reverse bool, block func(textLayoutManager TextLayoutManager, attributes map[foundation.AttributedStringKey]objc.Object, textRange TextRange) bool) { - po0 := objc.WrapAsProtocol("NSTextLocation", location) - objc.Call[objc.Void](t_, objc.Sel("enumerateRenderingAttributesFromLocation:reverse:usingBlock:"), po0, reverse, block) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809995-enumeratetextsegmentsinrange?language=objc +func (t_ TextLayoutManager) EnumerateTextSegmentsInRangeTypeOptionsUsingBlock(textRange ITextRange, type_ TextLayoutManagerSegmentType, options TextLayoutManagerSegmentOptions, block func(textSegmentRange TextRange, textSegmentFrame coregraphics.Rect, baselinePosition float64, textContainer TextContainer) bool) { + objc.Call[objc.Void](t_, objc.Sel("enumerateTextSegmentsInRange:type:options:usingBlock:"), textRange, type_, options, block) } -// Enumerates the rendering attributes from a location you specify. [Full Topic] +// Removes the rendering attribute from the specified text range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809993-enumeraterenderingattributesfrom?language=objc -func (t_ TextLayoutManager) EnumerateRenderingAttributesFromLocationObjectReverseUsingBlock(locationObject objc.IObject, reverse bool, block func(textLayoutManager TextLayoutManager, attributes map[foundation.AttributedStringKey]objc.Object, textRange TextRange) bool) { - objc.Call[objc.Void](t_, objc.Sel("enumerateRenderingAttributesFromLocation:reverse:usingBlock:"), locationObject, reverse, block) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810003-removerenderingattribute?language=objc +func (t_ TextLayoutManager) RemoveRenderingAttributeForTextRange(renderingAttribute foundation.AttributedStringKey, textRange ITextRange) { + objc.Call[objc.Void](t_, objc.Sel("removeRenderingAttribute:forTextRange:"), renderingAttribute, textRange) } // Enumerates the text layout fragments starting at the specified location. [Full Topic] @@ -206,32 +190,19 @@ func (t_ TextLayoutManager) EnumerateTextLayoutFragmentsFromLocationObjectOption return rv } -// Invalidates the rendering attributes of the specified text range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809999-invalidaterenderingattributesfor?language=objc -func (t_ TextLayoutManager) InvalidateRenderingAttributesForTextRange(textRange ITextRange) { - objc.Call[objc.Void](t_, objc.Sel("invalidateRenderingAttributesForTextRange:"), textRange) -} - -// Enumerates text segments of a specific type and in the text range you provide. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809995-enumeratetextsegmentsinrange?language=objc -func (t_ TextLayoutManager) EnumerateTextSegmentsInRangeTypeOptionsUsingBlock(textRange ITextRange, type_ TextLayoutManagerSegmentType, options TextLayoutManagerSegmentOptions, block func(textSegmentRange TextRange, textSegmentFrame coregraphics.Rect, baselinePosition float64, textContainer TextContainer) bool) { - objc.Call[objc.Void](t_, objc.Sel("enumerateTextSegmentsInRange:type:options:usingBlock:"), textRange, type_, options, block) -} - -// Removes the rendering attribute from the specified text range. [Full Topic] +// Enumerates the rendering attributes from a location you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810003-removerenderingattribute?language=objc -func (t_ TextLayoutManager) RemoveRenderingAttributeForTextRange(renderingAttribute foundation.AttributedStringKey, textRange ITextRange) { - objc.Call[objc.Void](t_, objc.Sel("removeRenderingAttribute:forTextRange:"), renderingAttribute, textRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809993-enumeraterenderingattributesfrom?language=objc +func (t_ TextLayoutManager) EnumerateRenderingAttributesFromLocationReverseUsingBlock(location PTextLocation, reverse bool, block func(textLayoutManager TextLayoutManager, attributes map[foundation.AttributedStringKey]objc.Object, textRange TextRange) bool) { + po0 := objc.WrapAsProtocol("NSTextLocation", location) + objc.Call[objc.Void](t_, objc.Sel("enumerateRenderingAttributesFromLocation:reverse:usingBlock:"), po0, reverse, block) } -// Performs the layout for specified text range. [Full Topic] +// Enumerates the rendering attributes from a location you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809992-ensurelayoutforrange?language=objc -func (t_ TextLayoutManager) EnsureLayoutForRange(range_ ITextRange) { - objc.Call[objc.Void](t_, objc.Sel("ensureLayoutForRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809993-enumeraterenderingattributesfrom?language=objc +func (t_ TextLayoutManager) EnumerateRenderingAttributesFromLocationObjectReverseUsingBlock(locationObject objc.IObject, reverse bool, block func(textLayoutManager TextLayoutManager, attributes map[foundation.AttributedStringKey]objc.Object, textRange TextRange) bool) { + objc.Call[objc.Void](t_, objc.Sel("enumerateRenderingAttributesFromLocation:reverse:usingBlock:"), locationObject, reverse, block) } // Sets the rendering attribute for the value and range you specify. [Full Topic] @@ -241,6 +212,13 @@ func (t_ TextLayoutManager) AddRenderingAttributeValueForTextRange(renderingAttr objc.Call[objc.Void](t_, objc.Sel("addRenderingAttribute:value:forTextRange:"), renderingAttribute, value, textRange) } +// Performs the layout for filling the bounds you specify inside the last text container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809991-ensurelayoutforbounds?language=objc +func (t_ TextLayoutManager) EnsureLayoutForBounds(bounds coregraphics.Rect) { + objc.Call[objc.Void](t_, objc.Sel("ensureLayoutForBounds:"), bounds) +} + // Replaces the current text content manager with a new one you provide. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810008-replacetextcontentmanager?language=objc @@ -248,44 +226,65 @@ func (t_ TextLayoutManager) ReplaceTextContentManager(textContentManager ITextCo objc.Call[objc.Void](t_, objc.Sel("replaceTextContentManager:"), textContentManager) } -// A Boolean value that controls whether the framework uses the leading information specified by the font when laying out text. [Full Topic] +// Invalidates the layout information for specified text range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810018-usesfontleading?language=objc -func (t_ TextLayoutManager) UsesFontLeading() bool { - rv := objc.Call[bool](t_, objc.Sel("usesFontLeading")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809998-invalidatelayoutforrange?language=objc +func (t_ TextLayoutManager) InvalidateLayoutForRange(range_ ITextRange) { + objc.Call[objc.Void](t_, objc.Sel("invalidateLayoutForRange:"), range_) +} + +// Invalidates the rendering attributes of the specified text range. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809999-invalidaterenderingattributesfor?language=objc +func (t_ TextLayoutManager) InvalidateRenderingAttributesForTextRange(textRange ITextRange) { + objc.Call[objc.Void](t_, objc.Sel("invalidateRenderingAttributesForTextRange:"), textRange) +} + +// Returns the default set of attributes for rendering a link. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810002-linkrenderingattributes?language=objc +func (tc _TextLayoutManagerClass) LinkRenderingAttributes() map[foundation.AttributedStringKey]objc.Object { + rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](tc, objc.Sel("linkRenderingAttributes")) return rv } -// A Boolean value that controls whether the framework uses the leading information specified by the font when laying out text. [Full Topic] +// Returns the default set of attributes for rendering a link. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810018-usesfontleading?language=objc -func (t_ TextLayoutManager) SetUsesFontLeading(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesFontLeading:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810002-linkrenderingattributes?language=objc +func TextLayoutManager_LinkRenderingAttributes() map[foundation.AttributedStringKey]objc.Object { + return TextLayoutManagerClass.LinkRenderingAttributes() } -// A Boolean value that controls internal security analysis for malicious inputs and activates defensive behaviors. [Full Topic] +// An array of text selections associated by the text layout manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810001-limitslayoutforsuspiciouscontent?language=objc -func (t_ TextLayoutManager) LimitsLayoutForSuspiciousContents() bool { - rv := objc.Call[bool](t_, objc.Sel("limitsLayoutForSuspiciousContents")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810015-textselections?language=objc +func (t_ TextLayoutManager) TextSelections() []TextSelection { + rv := objc.Call[[]TextSelection](t_, objc.Sel("textSelections")) return rv } -// A Boolean value that controls internal security analysis for malicious inputs and activates defensive behaviors. [Full Topic] +// An array of text selections associated by the text layout manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810001-limitslayoutforsuspiciouscontent?language=objc -func (t_ TextLayoutManager) SetLimitsLayoutForSuspiciousContents(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setLimitsLayoutForSuspiciousContents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810015-textselections?language=objc +func (t_ TextLayoutManager) SetTextSelections(value []ITextSelection) { + objc.Call[objc.Void](t_, objc.Sel("setTextSelections:"), value) } -// Returns the text content manager associated with this text layout manager. [Full Topic] +// Returns a text selection manager configured to have the text layout manager as its data source. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810011-textcontentmanager?language=objc -func (t_ TextLayoutManager) TextContentManager() TextContentManager { - rv := objc.Call[TextContentManager](t_, objc.Sel("textContentManager")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810014-textselectionnavigation?language=objc +func (t_ TextLayoutManager) TextSelectionNavigation() TextSelectionNavigation { + rv := objc.Call[TextSelectionNavigation](t_, objc.Sel("textSelectionNavigation")) return rv } +// Returns a text selection manager configured to have the text layout manager as its data source. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810014-textselectionnavigation?language=objc +func (t_ TextLayoutManager) SetTextSelectionNavigation(value ITextSelectionNavigation) { + objc.Call[objc.Void](t_, objc.Sel("setTextSelectionNavigation:"), value) +} + // A callback block that the framework invokes whenever the text layout manager needs to validate the rendering attributes for the range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810005-renderingattributesvalidator?language=objc @@ -301,19 +300,35 @@ func (t_ TextLayoutManager) SetRenderingAttributesValidator(value func(textLayou objc.Call[objc.Void](t_, objc.Sel("setRenderingAttributesValidator:"), value) } -// Returns the default set of attributes for rendering a link. [Full Topic] +// Returns text viewport layout controller associated with the layout manager’s text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810002-linkrenderingattributes?language=objc -func (tc _TextLayoutManagerClass) LinkRenderingAttributes() map[foundation.AttributedStringKey]objc.Object { - rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](tc, objc.Sel("linkRenderingAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810016-textviewportlayoutcontroller?language=objc +func (t_ TextLayoutManager) TextViewportLayoutController() TextViewportLayoutController { + rv := objc.Call[TextViewportLayoutController](t_, objc.Sel("textViewportLayoutController")) return rv } -// Returns the default set of attributes for rendering a link. [Full Topic] +// The queue that the framework dispatches layout operations on. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810002-linkrenderingattributes?language=objc -func TextLayoutManager_LinkRenderingAttributes() map[foundation.AttributedStringKey]objc.Object { - return TextLayoutManagerClass.LinkRenderingAttributes() +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810000-layoutqueue?language=objc +func (t_ TextLayoutManager) LayoutQueue() foundation.OperationQueue { + rv := objc.Call[foundation.OperationQueue](t_, objc.Sel("layoutQueue")) + return rv +} + +// The queue that the framework dispatches layout operations on. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810000-layoutqueue?language=objc +func (t_ TextLayoutManager) SetLayoutQueue(value foundation.IOperationQueue) { + objc.Call[objc.Void](t_, objc.Sel("setLayoutQueue:"), value) +} + +// Returns the usage bounds for the text container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810017-usageboundsfortextcontainer?language=objc +func (t_ TextLayoutManager) UsageBoundsForTextContainer() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](t_, objc.Sel("usageBoundsForTextContainer")) + return rv } // The delegate for the text layout manager object. [Full Topic] @@ -340,35 +355,19 @@ func (t_ TextLayoutManager) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) } -// Returns text viewport layout controller associated with the layout manager’s text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810016-textviewportlayoutcontroller?language=objc -func (t_ TextLayoutManager) TextViewportLayoutController() TextViewportLayoutController { - rv := objc.Call[TextViewportLayoutController](t_, objc.Sel("textViewportLayoutController")) - return rv -} - -// Returns the usage bounds for the text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810017-usageboundsfortextcontainer?language=objc -func (t_ TextLayoutManager) UsageBoundsForTextContainer() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](t_, objc.Sel("usageBoundsForTextContainer")) - return rv -} - -// Returns a text selection manager configured to have the text layout manager as its data source. [Full Topic] +// A Boolean value that controls internal security analysis for malicious inputs and activates defensive behaviors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810014-textselectionnavigation?language=objc -func (t_ TextLayoutManager) TextSelectionNavigation() TextSelectionNavigation { - rv := objc.Call[TextSelectionNavigation](t_, objc.Sel("textSelectionNavigation")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810001-limitslayoutforsuspiciouscontent?language=objc +func (t_ TextLayoutManager) LimitsLayoutForSuspiciousContents() bool { + rv := objc.Call[bool](t_, objc.Sel("limitsLayoutForSuspiciousContents")) return rv } -// Returns a text selection manager configured to have the text layout manager as its data source. [Full Topic] +// A Boolean value that controls internal security analysis for malicious inputs and activates defensive behaviors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810014-textselectionnavigation?language=objc -func (t_ TextLayoutManager) SetTextSelectionNavigation(value ITextSelectionNavigation) { - objc.Call[objc.Void](t_, objc.Sel("setTextSelectionNavigation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810001-limitslayoutforsuspiciouscontent?language=objc +func (t_ TextLayoutManager) SetLimitsLayoutForSuspiciousContents(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setLimitsLayoutForSuspiciousContents:"), value) } // A Boolean values that controls whether the text layout manager attempts to hyphenate when wrapping lines. [Full Topic] @@ -386,47 +385,40 @@ func (t_ TextLayoutManager) SetUsesHyphenation(value bool) { objc.Call[objc.Void](t_, objc.Sel("setUsesHyphenation:"), value) } -// An array of text selections associated by the text layout manager. [Full Topic] +// The text container object that provides geometric information for the layout destination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810015-textselections?language=objc -func (t_ TextLayoutManager) TextSelections() []TextSelection { - rv := objc.Call[[]TextSelection](t_, objc.Sel("textSelections")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810010-textcontainer?language=objc +func (t_ TextLayoutManager) TextContainer() TextContainer { + rv := objc.Call[TextContainer](t_, objc.Sel("textContainer")) return rv } -// An array of text selections associated by the text layout manager. [Full Topic] +// The text container object that provides geometric information for the layout destination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810015-textselections?language=objc -func (t_ TextLayoutManager) SetTextSelections(value []ITextSelection) { - objc.Call[objc.Void](t_, objc.Sel("setTextSelections:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810010-textcontainer?language=objc +func (t_ TextLayoutManager) SetTextContainer(value ITextContainer) { + objc.Call[objc.Void](t_, objc.Sel("setTextContainer:"), value) } -// The queue that the framework dispatches layout operations on. [Full Topic] +// A Boolean value that controls whether the framework uses the leading information specified by the font when laying out text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810000-layoutqueue?language=objc -func (t_ TextLayoutManager) LayoutQueue() foundation.OperationQueue { - rv := objc.Call[foundation.OperationQueue](t_, objc.Sel("layoutQueue")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810018-usesfontleading?language=objc +func (t_ TextLayoutManager) UsesFontLeading() bool { + rv := objc.Call[bool](t_, objc.Sel("usesFontLeading")) return rv } -// The queue that the framework dispatches layout operations on. [Full Topic] +// A Boolean value that controls whether the framework uses the leading information specified by the font when laying out text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810000-layoutqueue?language=objc -func (t_ TextLayoutManager) SetLayoutQueue(value foundation.IOperationQueue) { - objc.Call[objc.Void](t_, objc.Sel("setLayoutQueue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810018-usesfontleading?language=objc +func (t_ TextLayoutManager) SetUsesFontLeading(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesFontLeading:"), value) } -// The text container object that provides geometric information for the layout destination. [Full Topic] +// Returns the text content manager associated with this text layout manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810010-textcontainer?language=objc -func (t_ TextLayoutManager) TextContainer() TextContainer { - rv := objc.Call[TextContainer](t_, objc.Sel("textContainer")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810011-textcontentmanager?language=objc +func (t_ TextLayoutManager) TextContentManager() TextContentManager { + rv := objc.Call[TextContentManager](t_, objc.Sel("textContentManager")) return rv } - -// The text container object that provides geometric information for the layout destination. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810010-textcontainer?language=objc -func (t_ TextLayoutManager) SetTextContainer(value ITextContainer) { - objc.Call[objc.Void](t_, objc.Sel("setTextContainer:"), value) -} diff --git a/macos/appkit/text_layout_manager_delegate.gen.go b/macos/appkit/text_layout_manager_delegate.gen.go index d23d067f..cb77a3a2 100644 --- a/macos/appkit/text_layout_manager_delegate.gen.go +++ b/macos/appkit/text_layout_manager_delegate.gen.go @@ -3,7 +3,6 @@ package appkit import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -11,43 +10,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate?language=objc type PTextLayoutManagerDelegate interface { - // optional - TextLayoutManagerTextLayoutFragmentForLocationInTextElement(textLayoutManager TextLayoutManager, location TextLocationObject, textElement TextElement) TextLayoutFragment - HasTextLayoutManagerTextLayoutFragmentForLocationInTextElement() bool - // optional TextLayoutManagerShouldBreakLineBeforeLocationHyphenating(textLayoutManager TextLayoutManager, location TextLocationObject, hyphenating bool) bool HasTextLayoutManagerShouldBreakLineBeforeLocationHyphenating() bool - - // optional - TextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes(textLayoutManager TextLayoutManager, link objc.Object, location TextLocationObject, renderingAttributes map[foundation.AttributedStringKey]objc.Object) map[foundation.AttributedStringKey]objc.Object - HasTextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes() bool } // A delegate implementation builder for the [PTextLayoutManagerDelegate] protocol. type TextLayoutManagerDelegate struct { - _TextLayoutManagerTextLayoutFragmentForLocationInTextElement func(textLayoutManager TextLayoutManager, location TextLocationObject, textElement TextElement) TextLayoutFragment - _TextLayoutManagerShouldBreakLineBeforeLocationHyphenating func(textLayoutManager TextLayoutManager, location TextLocationObject, hyphenating bool) bool - _TextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes func(textLayoutManager TextLayoutManager, link objc.Object, location TextLocationObject, renderingAttributes map[foundation.AttributedStringKey]objc.Object) map[foundation.AttributedStringKey]objc.Object -} - -func (di *TextLayoutManagerDelegate) HasTextLayoutManagerTextLayoutFragmentForLocationInTextElement() bool { - return di._TextLayoutManagerTextLayoutFragmentForLocationInTextElement != nil -} - -// The method the framework calls to give the delegate an opportunity to return a custom text layout fragment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate/3810024-textlayoutmanager?language=objc -func (di *TextLayoutManagerDelegate) SetTextLayoutManagerTextLayoutFragmentForLocationInTextElement(f func(textLayoutManager TextLayoutManager, location TextLocationObject, textElement TextElement) TextLayoutFragment) { - di._TextLayoutManagerTextLayoutFragmentForLocationInTextElement = f + _TextLayoutManagerShouldBreakLineBeforeLocationHyphenating func(textLayoutManager TextLayoutManager, location TextLocationObject, hyphenating bool) bool } -// The method the framework calls to give the delegate an opportunity to return a custom text layout fragment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate/3810024-textlayoutmanager?language=objc -func (di *TextLayoutManagerDelegate) TextLayoutManagerTextLayoutFragmentForLocationInTextElement(textLayoutManager TextLayoutManager, location TextLocationObject, textElement TextElement) TextLayoutFragment { - return di._TextLayoutManagerTextLayoutFragmentForLocationInTextElement(textLayoutManager, location, textElement) -} func (di *TextLayoutManagerDelegate) HasTextLayoutManagerShouldBreakLineBeforeLocationHyphenating() bool { return di._TextLayoutManagerShouldBreakLineBeforeLocationHyphenating != nil } @@ -65,23 +37,6 @@ func (di *TextLayoutManagerDelegate) SetTextLayoutManagerShouldBreakLineBeforeLo func (di *TextLayoutManagerDelegate) TextLayoutManagerShouldBreakLineBeforeLocationHyphenating(textLayoutManager TextLayoutManager, location TextLocationObject, hyphenating bool) bool { return di._TextLayoutManagerShouldBreakLineBeforeLocationHyphenating(textLayoutManager, location, hyphenating) } -func (di *TextLayoutManagerDelegate) HasTextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes() bool { - return di._TextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes != nil -} - -// The method the framework calls to return a dictionary of attributes for rendering a link attribute name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate/3824749-textlayoutmanager?language=objc -func (di *TextLayoutManagerDelegate) SetTextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes(f func(textLayoutManager TextLayoutManager, link objc.Object, location TextLocationObject, renderingAttributes map[foundation.AttributedStringKey]objc.Object) map[foundation.AttributedStringKey]objc.Object) { - di._TextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes = f -} - -// The method the framework calls to return a dictionary of attributes for rendering a link attribute name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate/3824749-textlayoutmanager?language=objc -func (di *TextLayoutManagerDelegate) TextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes(textLayoutManager TextLayoutManager, link objc.Object, location TextLocationObject, renderingAttributes map[foundation.AttributedStringKey]objc.Object) map[foundation.AttributedStringKey]objc.Object { - return di._TextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes(textLayoutManager, link, location, renderingAttributes) -} // ensure impl type implements protocol interface var _ PTextLayoutManagerDelegate = (*TextLayoutManagerDelegateObject)(nil) @@ -91,19 +46,6 @@ type TextLayoutManagerDelegateObject struct { objc.Object } -func (t_ TextLayoutManagerDelegateObject) HasTextLayoutManagerTextLayoutFragmentForLocationInTextElement() bool { - return t_.RespondsToSelector(objc.Sel("textLayoutManager:textLayoutFragmentForLocation:inTextElement:")) -} - -// The method the framework calls to give the delegate an opportunity to return a custom text layout fragment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate/3810024-textlayoutmanager?language=objc -func (t_ TextLayoutManagerDelegateObject) TextLayoutManagerTextLayoutFragmentForLocationInTextElement(textLayoutManager TextLayoutManager, location TextLocationObject, textElement TextElement) TextLayoutFragment { - po1 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextLayoutFragment](t_, objc.Sel("textLayoutManager:textLayoutFragmentForLocation:inTextElement:"), textLayoutManager, po1, textElement) - return rv -} - func (t_ TextLayoutManagerDelegateObject) HasTextLayoutManagerShouldBreakLineBeforeLocationHyphenating() bool { return t_.RespondsToSelector(objc.Sel("textLayoutManager:shouldBreakLineBeforeLocation:hyphenating:")) } @@ -116,16 +58,3 @@ func (t_ TextLayoutManagerDelegateObject) TextLayoutManagerShouldBreakLineBefore rv := objc.Call[bool](t_, objc.Sel("textLayoutManager:shouldBreakLineBeforeLocation:hyphenating:"), textLayoutManager, po1, hyphenating) return rv } - -func (t_ TextLayoutManagerDelegateObject) HasTextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes() bool { - return t_.RespondsToSelector(objc.Sel("textLayoutManager:renderingAttributesForLink:atLocation:defaultAttributes:")) -} - -// The method the framework calls to return a dictionary of attributes for rendering a link attribute name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate/3824749-textlayoutmanager?language=objc -func (t_ TextLayoutManagerDelegateObject) TextLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes(textLayoutManager TextLayoutManager, link objc.Object, location TextLocationObject, renderingAttributes map[foundation.AttributedStringKey]objc.Object) map[foundation.AttributedStringKey]objc.Object { - po2 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("textLayoutManager:renderingAttributesForLink:atLocation:defaultAttributes:"), textLayoutManager, link, po2, renderingAttributes) - return rv -} diff --git a/macos/appkit/text_line_fragment.gen.go b/macos/appkit/text_line_fragment.gen.go index 2c12898c..9177c9ed 100644 --- a/macos/appkit/text_line_fragment.gen.go +++ b/macos/appkit/text_line_fragment.gen.go @@ -20,14 +20,14 @@ type _TextLineFragmentClass struct { // An interface definition for the [TextLineFragment] class. type ITextLineFragment interface { objc.IObject + DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) CharacterIndexForPoint(point coregraphics.Point) int - FractionOfDistanceThroughGlyphForPoint(point coregraphics.Point) float64 LocationForCharacterAtIndex(index int) coregraphics.Point - DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) - GlyphOrigin() coregraphics.Point + FractionOfDistanceThroughGlyphForPoint(point coregraphics.Point) float64 TypographicBounds() coregraphics.Rect CharacterRange() foundation.Range AttributedString() foundation.AttributedString + GlyphOrigin() coregraphics.Point } // A class that represents a line fragment as a single textual layout and rendering unit inside a text layout fragment. [Full Topic] @@ -91,19 +91,18 @@ func (t_ TextLineFragment) Init() TextLineFragment { return rv } -// Returns character index for a point inside the line fragment coordinate system. [Full Topic] +// Renders the line fragment contents at the rendering origin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlinefragment/3852578-characterindexforpoint?language=objc -func (t_ TextLineFragment) CharacterIndexForPoint(point coregraphics.Point) int { - rv := objc.Call[int](t_, objc.Sel("characterIndexForPoint:"), point) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlinefragment/3824754-drawatpoint?language=objc +func (t_ TextLineFragment) DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) { + objc.Call[objc.Void](t_, objc.Sel("drawAtPoint:inContext:"), point, context) } // Returns character index for a point inside the line fragment coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlinefragment/3852579-fractionofdistancethroughglyphfo?language=objc -func (t_ TextLineFragment) FractionOfDistanceThroughGlyphForPoint(point coregraphics.Point) float64 { - rv := objc.Call[float64](t_, objc.Sel("fractionOfDistanceThroughGlyphForPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlinefragment/3852578-characterindexforpoint?language=objc +func (t_ TextLineFragment) CharacterIndexForPoint(point coregraphics.Point) int { + rv := objc.Call[int](t_, objc.Sel("characterIndexForPoint:"), point) return rv } @@ -115,18 +114,11 @@ func (t_ TextLineFragment) LocationForCharacterAtIndex(index int) coregraphics.P return rv } -// Renders the line fragment contents at the rendering origin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlinefragment/3824754-drawatpoint?language=objc -func (t_ TextLineFragment) DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) { - objc.Call[objc.Void](t_, objc.Sel("drawAtPoint:inContext:"), point, context) -} - -// Rendering origin for the left-most glyph in the line fragment coordinate system. [Full Topic] +// Returns character index for a point inside the line fragment coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlinefragment/3810041-glyphorigin?language=objc -func (t_ TextLineFragment) GlyphOrigin() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("glyphOrigin")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlinefragment/3852579-fractionofdistancethroughglyphfo?language=objc +func (t_ TextLineFragment) FractionOfDistanceThroughGlyphForPoint(point coregraphics.Point) float64 { + rv := objc.Call[float64](t_, objc.Sel("fractionOfDistanceThroughGlyphForPoint:"), point) return rv } @@ -153,3 +145,11 @@ func (t_ TextLineFragment) AttributedString() foundation.AttributedString { rv := objc.Call[foundation.AttributedString](t_, objc.Sel("attributedString")) return rv } + +// Rendering origin for the left-most glyph in the line fragment coordinate system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlinefragment/3810041-glyphorigin?language=objc +func (t_ TextLineFragment) GlyphOrigin() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("glyphOrigin")) + return rv +} diff --git a/macos/appkit/text_list.gen.go b/macos/appkit/text_list.gen.go index 89a73dcb..a16e4649 100644 --- a/macos/appkit/text_list.gen.go +++ b/macos/appkit/text_list.gen.go @@ -20,9 +20,9 @@ type ITextList interface { objc.IObject MarkerForItemNumber(itemNumber int) string ListOptions() TextListOptions - MarkerFormat() TextListMarkerFormat StartingItemNumber() int SetStartingItemNumber(value int) + MarkerFormat() TextListMarkerFormat } // A section of text that forms a single list. [Full Topic] @@ -88,14 +88,6 @@ func (t_ TextList) ListOptions() TextListOptions { return rv } -// Returns the marker format string used by the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextlist/1533865-markerformat?language=objc -func (t_ TextList) MarkerFormat() TextListMarkerFormat { - rv := objc.Call[TextListMarkerFormat](t_, objc.Sel("markerFormat")) - return rv -} - // Sets the starting item number for the text list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextlist/1528597-startingitemnumber?language=objc @@ -110,3 +102,11 @@ func (t_ TextList) StartingItemNumber() int { func (t_ TextList) SetStartingItemNumber(value int) { objc.Call[objc.Void](t_, objc.Sel("setStartingItemNumber:"), value) } + +// Returns the marker format string used by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextlist/1533865-markerformat?language=objc +func (t_ TextList) MarkerFormat() TextListMarkerFormat { + rv := objc.Call[TextListMarkerFormat](t_, objc.Sel("markerFormat")) + return rv +} diff --git a/macos/appkit/text_range.gen.go b/macos/appkit/text_range.gen.go index f25fd7a0..37f5dcfb 100644 --- a/macos/appkit/text_range.gen.go +++ b/macos/appkit/text_range.gen.go @@ -18,11 +18,11 @@ type _TextRangeClass struct { // An interface definition for the [TextRange] class. type ITextRange interface { objc.IObject - IntersectsWithTextRange(textRange ITextRange) bool - ContainsRange(textRange ITextRange) bool + IsEqualToTextRange(textRange ITextRange) bool ContainsLocation(location PTextLocation) bool ContainsLocationObject(locationObject objc.IObject) bool - IsEqualToTextRange(textRange ITextRange) bool + ContainsRange(textRange ITextRange) bool + IntersectsWithTextRange(textRange ITextRange) bool IsEmpty() bool Location() TextLocationObject EndLocation() TextLocationObject @@ -41,20 +41,6 @@ func TextRangeFrom(ptr unsafe.Pointer) TextRange { } } -func (t_ TextRange) TextRangeByIntersectingWithTextRange(textRange ITextRange) TextRange { - rv := objc.Call[TextRange](t_, objc.Sel("textRangeByIntersectingWithTextRange:"), textRange) - return rv -} - -// Returns the range, if any, where two text ranges intersect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801814-textrangebyintersectingwithtextr?language=objc -func TextRange_TextRangeByIntersectingWithTextRange(textRange ITextRange) TextRange { - instance := TextRangeClass.Alloc().TextRangeByIntersectingWithTextRange(textRange) - instance.Autorelease() - return instance -} - func (t_ TextRange) TextRangeByFormingUnionWithTextRange(textRange ITextRange) TextRange { rv := objc.Call[TextRange](t_, objc.Sel("textRangeByFormingUnionWithTextRange:"), textRange) return rv @@ -69,33 +55,31 @@ func TextRange_TextRangeByFormingUnionWithTextRange(textRange ITextRange) TextRa return instance } -func (t_ TextRange) InitWithLocationEndLocation(location PTextLocation, endLocation PTextLocation) TextRange { +func (t_ TextRange) InitWithLocation(location PTextLocation) TextRange { po0 := objc.WrapAsProtocol("NSTextLocation", location) - po1 := objc.WrapAsProtocol("NSTextLocation", endLocation) - rv := objc.Call[TextRange](t_, objc.Sel("initWithLocation:endLocation:"), po0, po1) + rv := objc.Call[TextRange](t_, objc.Sel("initWithLocation:"), po0) return rv } -// Creates a new text range with the starting and ending locations you specify. [Full Topic] +// Creates a new text range at the location you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801809-initwithlocation?language=objc -func NewTextRangeWithLocationEndLocation(location PTextLocation, endLocation PTextLocation) TextRange { - instance := TextRangeClass.Alloc().InitWithLocationEndLocation(location, endLocation) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801808-initwithlocation?language=objc +func NewTextRangeWithLocation(location PTextLocation) TextRange { + instance := TextRangeClass.Alloc().InitWithLocation(location) instance.Autorelease() return instance } -func (t_ TextRange) InitWithLocation(location PTextLocation) TextRange { - po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextRange](t_, objc.Sel("initWithLocation:"), po0) +func (t_ TextRange) TextRangeByIntersectingWithTextRange(textRange ITextRange) TextRange { + rv := objc.Call[TextRange](t_, objc.Sel("textRangeByIntersectingWithTextRange:"), textRange) return rv } -// Creates a new text range at the location you specify. [Full Topic] +// Returns the range, if any, where two text ranges intersect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801808-initwithlocation?language=objc -func NewTextRangeWithLocation(location PTextLocation) TextRange { - instance := TextRangeClass.Alloc().InitWithLocation(location) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801814-textrangebyintersectingwithtextr?language=objc +func TextRange_TextRangeByIntersectingWithTextRange(textRange ITextRange) TextRange { + instance := TextRangeClass.Alloc().TextRangeByIntersectingWithTextRange(textRange) instance.Autorelease() return instance } @@ -120,19 +104,11 @@ func (t_ TextRange) Init() TextRange { return rv } -// Determines if two ranges intersect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801810-intersectswithtextrange?language=objc -func (t_ TextRange) IntersectsWithTextRange(textRange ITextRange) bool { - rv := objc.Call[bool](t_, objc.Sel("intersectsWithTextRange:"), textRange) - return rv -} - -// Determines if the text range you specify is in the current text range. [Full Topic] +// Compares two text ranges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801805-containsrange?language=objc -func (t_ TextRange) ContainsRange(textRange ITextRange) bool { - rv := objc.Call[bool](t_, objc.Sel("containsRange:"), textRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801811-isequaltotextrange?language=objc +func (t_ TextRange) IsEqualToTextRange(textRange ITextRange) bool { + rv := objc.Call[bool](t_, objc.Sel("isEqualToTextRange:"), textRange) return rv } @@ -153,11 +129,19 @@ func (t_ TextRange) ContainsLocationObject(locationObject objc.IObject) bool { return rv } -// Compares two text ranges. [Full Topic] +// Determines if the text range you specify is in the current text range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801811-isequaltotextrange?language=objc -func (t_ TextRange) IsEqualToTextRange(textRange ITextRange) bool { - rv := objc.Call[bool](t_, objc.Sel("isEqualToTextRange:"), textRange) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801805-containsrange?language=objc +func (t_ TextRange) ContainsRange(textRange ITextRange) bool { + rv := objc.Call[bool](t_, objc.Sel("containsRange:"), textRange) + return rv +} + +// Determines if two ranges intersect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801810-intersectswithtextrange?language=objc +func (t_ TextRange) IntersectsWithTextRange(textRange ITextRange) bool { + rv := objc.Call[bool](t_, objc.Sel("intersectsWithTextRange:"), textRange) return rv } diff --git a/macos/appkit/text_selection.gen.go b/macos/appkit/text_selection.gen.go index a9f7722c..34da1f5c 100644 --- a/macos/appkit/text_selection.gen.go +++ b/macos/appkit/text_selection.gen.go @@ -20,19 +20,19 @@ type _TextSelectionClass struct { type ITextSelection interface { objc.IObject TextSelectionWithTextRanges(textRanges []ITextRange) TextSelection + IsLogical() bool + SetLogical(value bool) IsTransient() bool + Affinity() TextSelectionAffinity AnchorPositionOffset() float64 SetAnchorPositionOffset(value float64) SecondarySelectionLocation() TextLocationObject SetSecondarySelectionLocation(value PTextLocation) SetSecondarySelectionLocationObject(valueObject objc.IObject) + TextRanges() []TextRange TypingAttributes() map[foundation.AttributedStringKey]objc.Object SetTypingAttributes(value map[foundation.AttributedStringKey]objc.IObject) Granularity() TextSelectionGranularity - IsLogical() bool - SetLogical(value bool) - TextRanges() []TextRange - Affinity() TextSelectionAffinity } // A class that represents a single logical selection context that corresponds to an insertion point. [Full Topic] @@ -62,31 +62,31 @@ func NewTextSelectionWithRangeAffinityGranularity(range_ ITextRange, affinity Te return instance } -func (t_ TextSelection) InitWithRangesAffinityGranularity(textRanges []ITextRange, affinity TextSelectionAffinity, granularity TextSelectionGranularity) TextSelection { - rv := objc.Call[TextSelection](t_, objc.Sel("initWithRanges:affinity:granularity:"), textRanges, affinity, granularity) +func (t_ TextSelection) InitWithLocationAffinity(location PTextLocation, affinity TextSelectionAffinity) TextSelection { + po0 := objc.WrapAsProtocol("NSTextLocation", location) + rv := objc.Call[TextSelection](t_, objc.Sel("initWithLocation:affinity:"), po0, affinity) return rv } -// Creates a new text selection with the ranges, selection affinity, and granularity you provide. [Full Topic] +// Creates a new text selection with the location and selection affinity you provide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801822-initwithranges?language=objc -func NewTextSelectionWithRangesAffinityGranularity(textRanges []ITextRange, affinity TextSelectionAffinity, granularity TextSelectionGranularity) TextSelection { - instance := TextSelectionClass.Alloc().InitWithRangesAffinityGranularity(textRanges, affinity, granularity) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801820-initwithlocation?language=objc +func NewTextSelectionWithLocationAffinity(location PTextLocation, affinity TextSelectionAffinity) TextSelection { + instance := TextSelectionClass.Alloc().InitWithLocationAffinity(location, affinity) instance.Autorelease() return instance } -func (t_ TextSelection) InitWithLocationAffinity(location PTextLocation, affinity TextSelectionAffinity) TextSelection { - po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextSelection](t_, objc.Sel("initWithLocation:affinity:"), po0, affinity) +func (t_ TextSelection) InitWithRangesAffinityGranularity(textRanges []ITextRange, affinity TextSelectionAffinity, granularity TextSelectionGranularity) TextSelection { + rv := objc.Call[TextSelection](t_, objc.Sel("initWithRanges:affinity:granularity:"), textRanges, affinity, granularity) return rv } -// Creates a new text selection with the location and selection affinity you provide. [Full Topic] +// Creates a new text selection with the ranges, selection affinity, and granularity you provide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801820-initwithlocation?language=objc -func NewTextSelectionWithLocationAffinity(location PTextLocation, affinity TextSelectionAffinity) TextSelection { - instance := TextSelectionClass.Alloc().InitWithLocationAffinity(location, affinity) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801822-initwithranges?language=objc +func NewTextSelectionWithRangesAffinityGranularity(textRanges []ITextRange, affinity TextSelectionAffinity, granularity TextSelectionGranularity) TextSelection { + instance := TextSelectionClass.Alloc().InitWithRangesAffinityGranularity(textRanges, affinity, granularity) instance.Autorelease() return instance } @@ -119,6 +119,21 @@ func (t_ TextSelection) TextSelectionWithTextRanges(textRanges []ITextRange) Tex return rv } +// A Boolean value that indicates whether the framework interprets the selection as logical or visual. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801823-logical?language=objc +func (t_ TextSelection) IsLogical() bool { + rv := objc.Call[bool](t_, objc.Sel("isLogical")) + return rv +} + +// A Boolean value that indicates whether the framework interprets the selection as logical or visual. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801823-logical?language=objc +func (t_ TextSelection) SetLogical(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setLogical:"), value) +} + // A Boolean value that indicates transient text selection during drag handling. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801827-transient?language=objc @@ -127,6 +142,14 @@ func (t_ TextSelection) IsTransient() bool { return rv } +// Returns the selection affinity of the text selection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801816-affinity?language=objc +func (t_ TextSelection) Affinity() TextSelectionAffinity { + rv := objc.Call[TextSelectionAffinity](t_, objc.Sel("affinity")) + return rv +} + // Represents the anchor position offset from the beginning of a line fragment in the visual order for the initial tap or click location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801817-anchorpositionoffset?language=objc @@ -165,6 +188,14 @@ func (t_ TextSelection) SetSecondarySelectionLocationObject(valueObject objc.IOb objc.Call[objc.Void](t_, objc.Sel("setSecondarySelectionLocation:"), valueObject) } +// Represents an array of noncontiguous logical ranges in the selection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801825-textranges?language=objc +func (t_ TextSelection) TextRanges() []TextRange { + rv := objc.Call[[]TextRange](t_, objc.Sel("textRanges")) + return rv +} + // The template attributes the framework uses for characters that replace the contents of this selection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801828-typingattributes?language=objc @@ -187,34 +218,3 @@ func (t_ TextSelection) Granularity() TextSelectionGranularity { rv := objc.Call[TextSelectionGranularity](t_, objc.Sel("granularity")) return rv } - -// A Boolean value that indicates whether the framework interprets the selection as logical or visual. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801823-logical?language=objc -func (t_ TextSelection) IsLogical() bool { - rv := objc.Call[bool](t_, objc.Sel("isLogical")) - return rv -} - -// A Boolean value that indicates whether the framework interprets the selection as logical or visual. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801823-logical?language=objc -func (t_ TextSelection) SetLogical(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setLogical:"), value) -} - -// Represents an array of noncontiguous logical ranges in the selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801825-textranges?language=objc -func (t_ TextSelection) TextRanges() []TextRange { - rv := objc.Call[[]TextRange](t_, objc.Sel("textRanges")) - return rv -} - -// Returns the selection affinity of the text selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801816-affinity?language=objc -func (t_ TextSelection) Affinity() TextSelectionAffinity { - rv := objc.Call[TextSelectionAffinity](t_, objc.Sel("affinity")) - return rv -} diff --git a/macos/appkit/text_selection_data_source_protocol.gen.go b/macos/appkit/text_selection_data_source_protocol.gen.go index 6efebd47..2afdb9fd 100644 --- a/macos/appkit/text_selection_data_source_protocol.gen.go +++ b/macos/appkit/text_selection_data_source_protocol.gen.go @@ -13,40 +13,40 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource?language=objc type PTextSelectionDataSource interface { // optional - EnumerateContainerBoundariesFromLocationReverseUsingBlock(location TextLocationObject, reverse bool, block func(boundaryLocation TextLocationObject, stop *bool)) - HasEnumerateContainerBoundariesFromLocationReverseUsingBlock() bool + BaseWritingDirectionAtLocation(location TextLocationObject) TextSelectionNavigationWritingDirection + HasBaseWritingDirectionAtLocation() bool // optional - TextRangeForSelectionGranularityEnclosingLocation(selectionGranularity TextSelectionGranularity, location TextLocationObject) TextRange - HasTextRangeForSelectionGranularityEnclosingLocation() bool + LineFragmentRangeForPointInContainerAtLocation(point coregraphics.Point, location TextLocationObject) TextRange + HasLineFragmentRangeForPointInContainerAtLocation() bool + + // optional + EnumerateContainerBoundariesFromLocationReverseUsingBlock(location TextLocationObject, reverse bool, block func(boundaryLocation TextLocationObject, stop *bool)) + HasEnumerateContainerBoundariesFromLocationReverseUsingBlock() bool // optional EnumerateSubstringsFromLocationOptionsUsingBlock(location TextLocationObject, options foundation.StringEnumerationOptions, block func(substring string, substringRange TextRange, enclosingRange TextRange, stop *bool)) HasEnumerateSubstringsFromLocationOptionsUsingBlock() bool // optional - TextLayoutOrientationAtLocation(location TextLocationObject) TextSelectionNavigationLayoutOrientation - HasTextLayoutOrientationAtLocation() bool + EnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(location TextLocationObject, block func(caretOffset float64, location TextLocationObject, leadingEdge bool, stop *bool)) + HasEnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock() bool // optional - BaseWritingDirectionAtLocation(location TextLocationObject) TextSelectionNavigationWritingDirection - HasBaseWritingDirectionAtLocation() bool + TextRangeForSelectionGranularityEnclosingLocation(selectionGranularity TextSelectionGranularity, location TextLocationObject) TextRange + HasTextRangeForSelectionGranularityEnclosingLocation() bool // optional OffsetFromLocationToLocation(from TextLocationObject, to TextLocationObject) int HasOffsetFromLocationToLocation() bool - // optional - LineFragmentRangeForPointInContainerAtLocation(point coregraphics.Point, location TextLocationObject) TextRange - HasLineFragmentRangeForPointInContainerAtLocation() bool - // optional LocationFromLocationWithOffset(location TextLocationObject, offset int) TextLocationObject HasLocationFromLocationWithOffset() bool // optional - EnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(location TextLocationObject, block func(caretOffset float64, location TextLocationObject, leadingEdge bool, stop *bool)) - HasEnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock() bool + TextLayoutOrientationAtLocation(location TextLocationObject) TextSelectionNavigationLayoutOrientation + HasTextLayoutOrientationAtLocation() bool // optional DocumentRange() TextRange @@ -61,31 +61,44 @@ type TextSelectionDataSourceObject struct { objc.Object } -func (t_ TextSelectionDataSourceObject) HasEnumerateContainerBoundariesFromLocationReverseUsingBlock() bool { - return t_.RespondsToSelector(objc.Sel("enumerateContainerBoundariesFromLocation:reverse:usingBlock:")) +func (t_ TextSelectionDataSourceObject) HasBaseWritingDirectionAtLocation() bool { + return t_.RespondsToSelector(objc.Sel("baseWritingDirectionAtLocation:")) } -// Enumerates all the container boundaries starting from the location you specify. [Full Topic] +// Returns the base writing direction at the location you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801842-enumeratecontainerboundariesfrom?language=objc -func (t_ TextSelectionDataSourceObject) EnumerateContainerBoundariesFromLocationReverseUsingBlock(location TextLocationObject, reverse bool, block func(boundaryLocation TextLocationObject, stop *bool)) { +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801839-basewritingdirectionatlocation?language=objc +func (t_ TextSelectionDataSourceObject) BaseWritingDirectionAtLocation(location TextLocationObject) TextSelectionNavigationWritingDirection { po0 := objc.WrapAsProtocol("NSTextLocation", location) - objc.Call[objc.Void](t_, objc.Sel("enumerateContainerBoundariesFromLocation:reverse:usingBlock:"), po0, reverse, block) + rv := objc.Call[TextSelectionNavigationWritingDirection](t_, objc.Sel("baseWritingDirectionAtLocation:"), po0) + return rv } -func (t_ TextSelectionDataSourceObject) HasTextRangeForSelectionGranularityEnclosingLocation() bool { - return t_.RespondsToSelector(objc.Sel("textRangeForSelectionGranularity:enclosingLocation:")) +func (t_ TextSelectionDataSourceObject) HasLineFragmentRangeForPointInContainerAtLocation() bool { + return t_.RespondsToSelector(objc.Sel("lineFragmentRangeForPoint:inContainerAtLocation:")) } -// Returns a text range that corresponds to selection granularity of the enclosing location. [Full Topic] +// Returns the range of the line fragment that contains the point you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801848-textrangeforselectiongranularity?language=objc -func (t_ TextSelectionDataSourceObject) TextRangeForSelectionGranularityEnclosingLocation(selectionGranularity TextSelectionGranularity, location TextLocationObject) TextRange { +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801845-linefragmentrangeforpoint?language=objc +func (t_ TextSelectionDataSourceObject) LineFragmentRangeForPointInContainerAtLocation(point coregraphics.Point, location TextLocationObject) TextRange { po1 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextRange](t_, objc.Sel("textRangeForSelectionGranularity:enclosingLocation:"), selectionGranularity, po1) + rv := objc.Call[TextRange](t_, objc.Sel("lineFragmentRangeForPoint:inContainerAtLocation:"), point, po1) return rv } +func (t_ TextSelectionDataSourceObject) HasEnumerateContainerBoundariesFromLocationReverseUsingBlock() bool { + return t_.RespondsToSelector(objc.Sel("enumerateContainerBoundariesFromLocation:reverse:usingBlock:")) +} + +// Enumerates all the container boundaries starting from the location you specify. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801842-enumeratecontainerboundariesfrom?language=objc +func (t_ TextSelectionDataSourceObject) EnumerateContainerBoundariesFromLocationReverseUsingBlock(location TextLocationObject, reverse bool, block func(boundaryLocation TextLocationObject, stop *bool)) { + po0 := objc.WrapAsProtocol("NSTextLocation", location) + objc.Call[objc.Void](t_, objc.Sel("enumerateContainerBoundariesFromLocation:reverse:usingBlock:"), po0, reverse, block) +} + func (t_ TextSelectionDataSourceObject) HasEnumerateSubstringsFromLocationOptionsUsingBlock() bool { return t_.RespondsToSelector(objc.Sel("enumerateSubstringsFromLocation:options:usingBlock:")) } @@ -98,29 +111,28 @@ func (t_ TextSelectionDataSourceObject) EnumerateSubstringsFromLocationOptionsUs objc.Call[objc.Void](t_, objc.Sel("enumerateSubstringsFromLocation:options:usingBlock:"), po0, options, block) } -func (t_ TextSelectionDataSourceObject) HasTextLayoutOrientationAtLocation() bool { - return t_.RespondsToSelector(objc.Sel("textLayoutOrientationAtLocation:")) +func (t_ TextSelectionDataSourceObject) HasEnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock() bool { + return t_.RespondsToSelector(objc.Sel("enumerateCaretOffsetsInLineFragmentAtLocation:usingBlock:")) } -// Returns the layout orientation at the location you specify. [Full Topic] +// Enumerates all the insertion point caret offsets from left to right in visual order. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3852580-textlayoutorientationatlocation?language=objc -func (t_ TextSelectionDataSourceObject) TextLayoutOrientationAtLocation(location TextLocationObject) TextSelectionNavigationLayoutOrientation { +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801841-enumeratecaretoffsetsinlinefragm?language=objc +func (t_ TextSelectionDataSourceObject) EnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(location TextLocationObject, block func(caretOffset float64, location TextLocationObject, leadingEdge bool, stop *bool)) { po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextSelectionNavigationLayoutOrientation](t_, objc.Sel("textLayoutOrientationAtLocation:"), po0) - return rv + objc.Call[objc.Void](t_, objc.Sel("enumerateCaretOffsetsInLineFragmentAtLocation:usingBlock:"), po0, block) } -func (t_ TextSelectionDataSourceObject) HasBaseWritingDirectionAtLocation() bool { - return t_.RespondsToSelector(objc.Sel("baseWritingDirectionAtLocation:")) +func (t_ TextSelectionDataSourceObject) HasTextRangeForSelectionGranularityEnclosingLocation() bool { + return t_.RespondsToSelector(objc.Sel("textRangeForSelectionGranularity:enclosingLocation:")) } -// Returns the base writing direction at the location you specify. [Full Topic] +// Returns a text range that corresponds to selection granularity of the enclosing location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801839-basewritingdirectionatlocation?language=objc -func (t_ TextSelectionDataSourceObject) BaseWritingDirectionAtLocation(location TextLocationObject) TextSelectionNavigationWritingDirection { - po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextSelectionNavigationWritingDirection](t_, objc.Sel("baseWritingDirectionAtLocation:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801848-textrangeforselectiongranularity?language=objc +func (t_ TextSelectionDataSourceObject) TextRangeForSelectionGranularityEnclosingLocation(selectionGranularity TextSelectionGranularity, location TextLocationObject) TextRange { + po1 := objc.WrapAsProtocol("NSTextLocation", location) + rv := objc.Call[TextRange](t_, objc.Sel("textRangeForSelectionGranularity:enclosingLocation:"), selectionGranularity, po1) return rv } @@ -138,19 +150,6 @@ func (t_ TextSelectionDataSourceObject) OffsetFromLocationToLocation(from TextLo return rv } -func (t_ TextSelectionDataSourceObject) HasLineFragmentRangeForPointInContainerAtLocation() bool { - return t_.RespondsToSelector(objc.Sel("lineFragmentRangeForPoint:inContainerAtLocation:")) -} - -// Returns the range of the line fragment that contains the point you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801845-linefragmentrangeforpoint?language=objc -func (t_ TextSelectionDataSourceObject) LineFragmentRangeForPointInContainerAtLocation(point coregraphics.Point, location TextLocationObject) TextRange { - po1 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextRange](t_, objc.Sel("lineFragmentRangeForPoint:inContainerAtLocation:"), point, po1) - return rv -} - func (t_ TextSelectionDataSourceObject) HasLocationFromLocationWithOffset() bool { return t_.RespondsToSelector(objc.Sel("locationFromLocation:withOffset:")) } @@ -164,16 +163,17 @@ func (t_ TextSelectionDataSourceObject) LocationFromLocationWithOffset(location return rv } -func (t_ TextSelectionDataSourceObject) HasEnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock() bool { - return t_.RespondsToSelector(objc.Sel("enumerateCaretOffsetsInLineFragmentAtLocation:usingBlock:")) +func (t_ TextSelectionDataSourceObject) HasTextLayoutOrientationAtLocation() bool { + return t_.RespondsToSelector(objc.Sel("textLayoutOrientationAtLocation:")) } -// Enumerates all the insertion point caret offsets from left to right in visual order. [Full Topic] +// Returns the layout orientation at the location you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801841-enumeratecaretoffsetsinlinefragm?language=objc -func (t_ TextSelectionDataSourceObject) EnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(location TextLocationObject, block func(caretOffset float64, location TextLocationObject, leadingEdge bool, stop *bool)) { +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3852580-textlayoutorientationatlocation?language=objc +func (t_ TextSelectionDataSourceObject) TextLayoutOrientationAtLocation(location TextLocationObject) TextSelectionNavigationLayoutOrientation { po0 := objc.WrapAsProtocol("NSTextLocation", location) - objc.Call[objc.Void](t_, objc.Sel("enumerateCaretOffsetsInLineFragmentAtLocation:usingBlock:"), po0, block) + rv := objc.Call[TextSelectionNavigationLayoutOrientation](t_, objc.Sel("textLayoutOrientationAtLocation:"), po0) + return rv } func (t_ TextSelectionDataSourceObject) HasDocumentRange() bool { diff --git a/macos/appkit/text_selection_navigation.gen.go b/macos/appkit/text_selection_navigation.gen.go index 07dd5ce2..059c1285 100644 --- a/macos/appkit/text_selection_navigation.gen.go +++ b/macos/appkit/text_selection_navigation.gen.go @@ -19,20 +19,18 @@ type _TextSelectionNavigationClass struct { // An interface definition for the [TextSelectionNavigation] class. type ITextSelectionNavigation interface { objc.IObject - DestinationSelectionForTextSelectionDirectionDestinationExtendingConfined(textSelection ITextSelection, direction TextSelectionNavigationDirection, destination TextSelectionNavigationDestination, extending bool, confined bool) TextSelection TextSelectionsInteractingAtPointInContainerAtLocationAnchorsModifiersSelectingBounds(point coregraphics.Point, containerLocation PTextLocation, anchors []ITextSelection, modifiers TextSelectionNavigationModifier, selecting bool, bounds coregraphics.Rect) []TextSelection TextSelectionsInteractingAtPointInContainerAtLocationObjectAnchorsModifiersSelectingBounds(point coregraphics.Point, containerLocationObject objc.IObject, anchors []ITextSelection, modifiers TextSelectionNavigationModifier, selecting bool, bounds coregraphics.Rect) []TextSelection - TextSelectionForSelectionGranularityEnclosingPointInContainerAtLocation(selectionGranularity TextSelectionGranularity, point coregraphics.Point, location PTextLocation) TextSelection - TextSelectionForSelectionGranularityEnclosingPointInContainerAtLocationObject(selectionGranularity TextSelectionGranularity, point coregraphics.Point, locationObject objc.IObject) TextSelection + ResolvedInsertionLocationForTextSelectionWritingDirection(textSelection ITextSelection, writingDirection TextSelectionNavigationWritingDirection) TextLocationObject TextSelectionForSelectionGranularityEnclosingTextSelection(selectionGranularity TextSelectionGranularity, textSelection ITextSelection) TextSelection - FlushLayoutCache() + DestinationSelectionForTextSelectionDirectionDestinationExtendingConfined(textSelection ITextSelection, direction TextSelectionNavigationDirection, destination TextSelectionNavigationDestination, extending bool, confined bool) TextSelection DeletionRangesForTextSelectionDirectionDestinationAllowsDecomposition(textSelection ITextSelection, direction TextSelectionNavigationDirection, destination TextSelectionNavigationDestination, allowsDecomposition bool) []TextRange - ResolvedInsertionLocationForTextSelectionWritingDirection(textSelection ITextSelection, writingDirection TextSelectionNavigationWritingDirection) TextLocationObject - AllowsNonContiguousRanges() bool - SetAllowsNonContiguousRanges(value bool) + FlushLayoutCache() + TextSelectionDataSource() TextSelectionDataSourceObject RotatesCoordinateSystemForLayoutOrientation() bool SetRotatesCoordinateSystemForLayoutOrientation(value bool) - TextSelectionDataSource() TextSelectionDataSourceObject + AllowsNonContiguousRanges() bool + SetAllowsNonContiguousRanges(value bool) } // An interface used to expose methods for obtaining results from actions performed on text selections. [Full Topic] @@ -83,14 +81,6 @@ func (t_ TextSelectionNavigation) Init() TextSelectionNavigation { return rv } -// Returns a new selection that results from applying the navigation operations you specify to the text selection you provide. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801852-destinationselectionfortextselec?language=objc -func (t_ TextSelectionNavigation) DestinationSelectionForTextSelectionDirectionDestinationExtendingConfined(textSelection ITextSelection, direction TextSelectionNavigationDirection, destination TextSelectionNavigationDestination, extending bool, confined bool) TextSelection { - rv := objc.Call[TextSelection](t_, objc.Sel("destinationSelectionForTextSelection:direction:destination:extending:confined:"), textSelection, direction, destination, extending, confined) - return rv -} - // Returns an array of text selections produced by a tap or click at the point you specify. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801869-textselectionsinteractingatpoint?language=objc @@ -108,20 +98,11 @@ func (t_ TextSelectionNavigation) TextSelectionsInteractingAtPointInContainerAtL return rv } -// Returns a text selection that expands to the nearest boundaries for selection granularity and an enclosing point you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801858-textselectionforselectiongranula?language=objc -func (t_ TextSelectionNavigation) TextSelectionForSelectionGranularityEnclosingPointInContainerAtLocation(selectionGranularity TextSelectionGranularity, point coregraphics.Point, location PTextLocation) TextSelection { - po2 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextSelection](t_, objc.Sel("textSelectionForSelectionGranularity:enclosingPoint:inContainerAtLocation:"), selectionGranularity, point, po2) - return rv -} - -// Returns a text selection that expands to the nearest boundaries for selection granularity and an enclosing point you specify. [Full Topic] +// Returns the location for inserting the next input depending on the state of the current and secondary selections. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801858-textselectionforselectiongranula?language=objc -func (t_ TextSelectionNavigation) TextSelectionForSelectionGranularityEnclosingPointInContainerAtLocationObject(selectionGranularity TextSelectionGranularity, point coregraphics.Point, locationObject objc.IObject) TextSelection { - rv := objc.Call[TextSelection](t_, objc.Sel("textSelectionForSelectionGranularity:enclosingPoint:inContainerAtLocation:"), selectionGranularity, point, locationObject) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3852581-resolvedinsertionlocationfortext?language=objc +func (t_ TextSelectionNavigation) ResolvedInsertionLocationForTextSelectionWritingDirection(textSelection ITextSelection, writingDirection TextSelectionNavigationWritingDirection) TextLocationObject { + rv := objc.Call[TextLocationObject](t_, objc.Sel("resolvedInsertionLocationForTextSelection:writingDirection:"), textSelection, writingDirection) return rv } @@ -133,11 +114,12 @@ func (t_ TextSelectionNavigation) TextSelectionForSelectionGranularityEnclosingT return rv } -// Flushes cached layout information. [Full Topic] +// Returns a new selection that results from applying the navigation operations you specify to the text selection you provide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801853-flushlayoutcache?language=objc -func (t_ TextSelectionNavigation) FlushLayoutCache() { - objc.Call[objc.Void](t_, objc.Sel("flushLayoutCache")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801852-destinationselectionfortextselec?language=objc +func (t_ TextSelectionNavigation) DestinationSelectionForTextSelectionDirectionDestinationExtendingConfined(textSelection ITextSelection, direction TextSelectionNavigationDirection, destination TextSelectionNavigationDestination, extending bool, confined bool) TextSelection { + rv := objc.Call[TextSelection](t_, objc.Sel("destinationSelectionForTextSelection:direction:destination:extending:confined:"), textSelection, direction, destination, extending, confined) + return rv } // Returns the ranges for deleting the text based on the current selection and movement arguments. [Full Topic] @@ -148,29 +130,21 @@ func (t_ TextSelectionNavigation) DeletionRangesForTextSelectionDirectionDestina return rv } -// Returns the location for inserting the next input depending on the state of the current and secondary selections. [Full Topic] +// Flushes cached layout information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3852581-resolvedinsertionlocationfortext?language=objc -func (t_ TextSelectionNavigation) ResolvedInsertionLocationForTextSelectionWritingDirection(textSelection ITextSelection, writingDirection TextSelectionNavigationWritingDirection) TextLocationObject { - rv := objc.Call[TextLocationObject](t_, objc.Sel("resolvedInsertionLocationForTextSelection:writingDirection:"), textSelection, writingDirection) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801853-flushlayoutcache?language=objc +func (t_ TextSelectionNavigation) FlushLayoutCache() { + objc.Call[objc.Void](t_, objc.Sel("flushLayoutCache")) } -// Determines if the instance could produce selections with multiple noncontiguous selections. [Full Topic] +// The data source associated with this selection navigation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801850-allowsnoncontiguousranges?language=objc -func (t_ TextSelectionNavigation) AllowsNonContiguousRanges() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsNonContiguousRanges")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801857-textselectiondatasource?language=objc +func (t_ TextSelectionNavigation) TextSelectionDataSource() TextSelectionDataSourceObject { + rv := objc.Call[TextSelectionDataSourceObject](t_, objc.Sel("textSelectionDataSource")) return rv } -// Determines if the instance could produce selections with multiple noncontiguous selections. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801850-allowsnoncontiguousranges?language=objc -func (t_ TextSelectionNavigation) SetAllowsNonContiguousRanges(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsNonContiguousRanges:"), value) -} - // Determines if the framework rotates the coordinate system to match the layout orientation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801856-rotatescoordinatesystemforlayout?language=objc @@ -186,10 +160,17 @@ func (t_ TextSelectionNavigation) SetRotatesCoordinateSystemForLayoutOrientation objc.Call[objc.Void](t_, objc.Sel("setRotatesCoordinateSystemForLayoutOrientation:"), value) } -// The data source associated with this selection navigation. [Full Topic] +// Determines if the instance could produce selections with multiple noncontiguous selections. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801857-textselectiondatasource?language=objc -func (t_ TextSelectionNavigation) TextSelectionDataSource() TextSelectionDataSourceObject { - rv := objc.Call[TextSelectionDataSourceObject](t_, objc.Sel("textSelectionDataSource")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801850-allowsnoncontiguousranges?language=objc +func (t_ TextSelectionNavigation) AllowsNonContiguousRanges() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsNonContiguousRanges")) return rv } + +// Determines if the instance could produce selections with multiple noncontiguous selections. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectionnavigation/3801850-allowsnoncontiguousranges?language=objc +func (t_ TextSelectionNavigation) SetAllowsNonContiguousRanges(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsNonContiguousRanges:"), value) +} diff --git a/macos/appkit/text_storage.gen.go b/macos/appkit/text_storage.gen.go index 9db9da42..6e97cb5e 100644 --- a/macos/appkit/text_storage.gen.go +++ b/macos/appkit/text_storage.gen.go @@ -19,35 +19,35 @@ type _TextStorageClass struct { // An interface definition for the [TextStorage] class. type ITextStorage interface { foundation.IMutableAttributedString - AddLayoutManager(aLayoutManager ILayoutManager) - ProcessEditing() - InvalidateAttributesInRange(range_ foundation.Range) EnsureAttributesAreFixedInRange(range_ foundation.Range) - RemoveLayoutManager(aLayoutManager ILayoutManager) + InvalidateAttributesInRange(range_ foundation.Range) EditedRangeChangeInLength(editedMask TextStorageEditActions, editedRange foundation.Range, delta int) - ForegroundColor() Color - SetForegroundColor(value IColor) - Characters() []TextStorage - SetCharacters(value []ITextStorage) - AttributeRuns() []TextStorage - SetAttributeRuns(value []ITextStorage) - Words() []TextStorage - SetWords(value []ITextStorage) - Font() Font - SetFont(value IFont) + ProcessEditing() + RemoveLayoutManager(aLayoutManager ILayoutManager) + AddLayoutManager(aLayoutManager ILayoutManager) Paragraphs() []TextStorage SetParagraphs(value []ITextStorage) - EditedMask() TextStorageEditActions + LayoutManagers() []LayoutManager + ChangeInLength() int + Characters() []TextStorage + SetCharacters(value []ITextStorage) EditedRange() foundation.Range - FixesAttributesLazily() bool Delegate() TextStorageDelegateObject SetDelegate(value PTextStorageDelegate) SetDelegateObject(valueObject objc.IObject) + ForegroundColor() Color + SetForegroundColor(value IColor) + Font() Font + SetFont(value IFont) + EditedMask() TextStorageEditActions + AttributeRuns() []TextStorage + SetAttributeRuns(value []ITextStorage) + Words() []TextStorage + SetWords(value []ITextStorage) TextStorageObserver() TextStorageObservingObject SetTextStorageObserver(value PTextStorageObserving) SetTextStorageObserverObject(valueObject objc.IObject) - LayoutManagers() []LayoutManager - ChangeInLength() int + FixesAttributesLazily() bool } // The fundamental storage mechanism of TextKit that contains the text managed by the system. [Full Topic] @@ -83,44 +83,16 @@ func (t_ TextStorage) Init() TextStorage { return rv } -func (t_ TextStorage) InitWithHTMLBaseURLDocumentAttributes(data []byte, base foundation.IURL, dict unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithHTML:baseURL:documentAttributes:"), data, base, dict) - return rv -} - -// Creates an attributed string from the HTML in the specified data object and base URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524624-initwithhtml?language=objc -func NewTextStorageWithHTMLBaseURLDocumentAttributes(data []byte, base foundation.IURL, dict unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithHTMLBaseURLDocumentAttributes(data, base, dict) - instance.Autorelease() - return instance -} - -func (t_ TextStorage) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile foundation.IURL, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), markdownFile, options, baseURL, error) - return rv -} - -// Creates an attributed string from the contents of a specified URL that contains Markdown-formatted data using the provided options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746872-initwithcontentsofmarkdownfileat?language=objc -func NewTextStorageWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile foundation.IURL, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile, options, baseURL, error) - instance.Autorelease() - return instance -} - -func (t_ TextStorage) InitWithStringAttributes(str string, attrs map[foundation.AttributedStringKey]objc.IObject) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithString:attributes:"), str, attrs) +func (t_ TextStorage) InitWithHTMLOptionsDocumentAttributes(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict unsafe.Pointer) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) return rv } -// Creates an attributed string with the specified string and attributes. [Full Topic] +// Creates an attributed string from the HTML in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1408136-initwithstring?language=objc -func NewTextStorageWithStringAttributes(str string, attrs map[foundation.AttributedStringKey]objc.IObject) TextStorage { - instance := TextStorageClass.Alloc().InitWithStringAttributes(str, attrs) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535412-initwithhtml?language=objc +func NewTextStorageWithHTMLOptionsDocumentAttributes(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict unsafe.Pointer) TextStorage { + instance := TextStorageClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) instance.Autorelease() return instance } @@ -151,30 +123,16 @@ func NewTextStorageWithAttributedString(attrStr foundation.IAttributedString) Te return instance } -func (t_ TextStorage) InitWithDataOptionsDocumentAttributesError(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict unsafe.Pointer, error unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, error) - return rv -} - -// Creates an attributed string from the data in the specified data object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata?language=objc -func NewTextStorageWithDataOptionsDocumentAttributesError(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict unsafe.Pointer, error unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) - instance.Autorelease() - return instance -} - -func (t_ TextStorage) InitWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) +func (t_ TextStorage) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile foundation.IURL, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), markdownFile, options, baseURL, error) return rv } -// Creates an attributed string by decoding the stream of RTF commands and data in the specified data object. [Full Topic] +// Creates an attributed string from the contents of a specified URL that contains Markdown-formatted data using the provided options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1532912-initwithrtf?language=objc -func NewTextStorageWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithRTFDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746872-initwithcontentsofmarkdownfileat?language=objc +func NewTextStorageWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile foundation.IURL, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { + instance := TextStorageClass.Alloc().InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile, options, baseURL, error) instance.Autorelease() return instance } @@ -193,58 +151,60 @@ func NewTextStorageWithFormatOptionsLocale(format foundation.IAttributedString, return instance } -func (t_ TextStorage) InitWithRTFDFileWrapperDocumentAttributes(wrapper foundation.IFileWrapper, dict unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), wrapper, dict) +func (t_ TextStorage) InitWithDataOptionsDocumentAttributesError(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict unsafe.Pointer, error unsafe.Pointer) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, error) return rv } -// Creates an attributed string from the specified file wrapper that contains an RTFD document. [Full Topic] +// Creates an attributed string from the data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1533594-initwithrtfdfilewrapper?language=objc -func NewTextStorageWithRTFDFileWrapperDocumentAttributes(wrapper foundation.IFileWrapper, dict unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata?language=objc +func NewTextStorageWithDataOptionsDocumentAttributesError(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict unsafe.Pointer, error unsafe.Pointer) TextStorage { + instance := TextStorageClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) instance.Autorelease() return instance } -func (t_ TextStorage) InitWithMarkdownOptionsBaseURLError(markdown []byte, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, options, baseURL, error) +func (t_ TextStorage) InitWithString(str string) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithString:"), str) return rv } -// Creates an attributed string from Markdown-formatted data using the provided options. [Full Topic] +// Creates an attributed string with the characters of the specified string and no attribute information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc -func NewTextStorageWithMarkdownOptionsBaseURLError(markdown []byte, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1407481-initwithstring?language=objc +func NewTextStorageWithString(str string) TextStorage { + instance := TextStorageClass.Alloc().InitWithString(str) instance.Autorelease() return instance } -func (t_ TextStorage) InitWithHTMLOptionsDocumentAttributes(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) +func (t_ TextStorage) InitWithMarkdownStringOptionsBaseURLError(markdownString string, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithMarkdownString:options:baseURL:error:"), markdownString, options, baseURL, error) return rv } -// Creates an attributed string from the HTML in the specified data object. [Full Topic] +// Creates an attributed string from a Markdown-formatted string using the provided options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535412-initwithhtml?language=objc -func NewTextStorageWithHTMLOptionsDocumentAttributes(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746876-initwithmarkdownstring?language=objc +func NewTextStorageWithMarkdownStringOptionsBaseURLError(markdownString string, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { + instance := TextStorageClass.Alloc().InitWithMarkdownStringOptionsBaseURLError(markdownString, options, baseURL, error) instance.Autorelease() return instance } -func (tc _TextStorageClass) LocalizedAttributedStringWithFormatOptions(format foundation.IAttributedString, options foundation.AttributedStringFormattingOptions, args ...any) TextStorage { - rv := objc.Call[TextStorage](tc, objc.Sel("localizedAttributedStringWithFormat:options:"), append([]any{format, options}, args...)...) +func (t_ TextStorage) InitWithMarkdownOptionsBaseURLError(markdown []byte, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, options, baseURL, error) return rv } -// [Full Topic] +// Creates an attributed string from Markdown-formatted data using the provided options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746878-localizedattributedstringwithfor?language=objc -func TextStorage_LocalizedAttributedStringWithFormatOptions(format foundation.IAttributedString, options foundation.AttributedStringFormattingOptions, args ...any) TextStorage { - return TextStorageClass.LocalizedAttributedStringWithFormatOptions(format, options, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc +func NewTextStorageWithMarkdownOptionsBaseURLError(markdown []byte, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { + instance := TextStorageClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) + instance.Autorelease() + return instance } func (t_ TextStorage) InitWithDocFormatDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { @@ -261,81 +221,67 @@ func NewTextStorageWithDocFormatDocumentAttributes(data []byte, dict unsafe.Poin return instance } -func (t_ TextStorage) InitWithMarkdownStringOptionsBaseURLError(markdownString string, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithMarkdownString:options:baseURL:error:"), markdownString, options, baseURL, error) +func (t_ TextStorage) InitWithRTFDDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTFD:documentAttributes:"), data, dict) return rv } -// Creates an attributed string from a Markdown-formatted string using the provided options. [Full Topic] +// Creates an attributed string by decoding the stream of RTFD commands and data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746876-initwithmarkdownstring?language=objc -func NewTextStorageWithMarkdownStringOptionsBaseURLError(markdownString string, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithMarkdownStringOptionsBaseURLError(markdownString, options, baseURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530987-initwithrtfd?language=objc +func NewTextStorageWithRTFDDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { + instance := TextStorageClass.Alloc().InitWithRTFDDocumentAttributes(data, dict) instance.Autorelease() return instance } -func (t_ TextStorage) InitWithURLOptionsDocumentAttributesError(url foundation.IURL, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict unsafe.Pointer, error unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithURL:options:documentAttributes:error:"), url, options, dict, error) +func (t_ TextStorage) InitWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) return rv } -// Creates an attributed string from the contents of the specified URL. [Full Topic] +// Creates an attributed string by decoding the stream of RTF commands and data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530490-initwithurl?language=objc -func NewTextStorageWithURLOptionsDocumentAttributesError(url foundation.IURL, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict unsafe.Pointer, error unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithURLOptionsDocumentAttributesError(url, options, dict, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1532912-initwithrtf?language=objc +func NewTextStorageWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { + instance := TextStorageClass.Alloc().InitWithRTFDocumentAttributes(data, dict) instance.Autorelease() return instance } -func (t_ TextStorage) InitWithHTMLDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithHTML:documentAttributes:"), data, dict) +func (t_ TextStorage) InitWithRTFDFileWrapperDocumentAttributes(wrapper foundation.IFileWrapper, dict unsafe.Pointer) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), wrapper, dict) return rv } -// Creates an attributed string from the HTML in the specified data object. [Full Topic] +// Creates an attributed string from the specified file wrapper that contains an RTFD document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1525953-initwithhtml?language=objc -func NewTextStorageWithHTMLDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithHTMLDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1533594-initwithrtfdfilewrapper?language=objc +func NewTextStorageWithRTFDFileWrapperDocumentAttributes(wrapper foundation.IFileWrapper, dict unsafe.Pointer) TextStorage { + instance := TextStorageClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) instance.Autorelease() return instance } -func (t_ TextStorage) InitWithRTFDDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTFD:documentAttributes:"), data, dict) - return rv -} - -// Creates an attributed string by decoding the stream of RTFD commands and data in the specified data object. [Full Topic] +// Ensures that attribute fixing occurs in the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530987-initwithrtfd?language=objc -func NewTextStorageWithRTFDDocumentAttributes(data []byte, dict unsafe.Pointer) TextStorage { - instance := TextStorageClass.Alloc().InitWithRTFDDocumentAttributes(data, dict) - instance.Autorelease() - return instance -} - -func (t_ TextStorage) InitWithString(str string) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithString:"), str) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1533947-ensureattributesarefixedinrange?language=objc +func (t_ TextStorage) EnsureAttributesAreFixedInRange(range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("ensureAttributesAreFixedInRange:"), range_) } -// Creates an attributed string with the characters of the specified string and no attribute information. [Full Topic] +// Invalidates attributes in the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1407481-initwithstring?language=objc -func NewTextStorageWithString(str string) TextStorage { - instance := TextStorageClass.Alloc().InitWithString(str) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1534025-invalidateattributesinrange?language=objc +func (t_ TextStorage) InvalidateAttributesInRange(range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("invalidateAttributesInRange:"), range_) } -// Adds a layout manager to the text storage object’s set of layout managers. [Full Topic] +// Tracks changes made to the text storage object, allowing the text storage to record the full extent of changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1533459-addlayoutmanager?language=objc -func (t_ TextStorage) AddLayoutManager(aLayoutManager ILayoutManager) { - objc.Call[objc.Void](t_, objc.Sel("addLayoutManager:"), aLayoutManager) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1529793-edited?language=objc +func (t_ TextStorage) EditedRangeChangeInLength(editedMask TextStorageEditActions, editedRange foundation.Range, delta int) { + objc.Call[objc.Void](t_, objc.Sel("edited:range:changeInLength:"), editedMask, editedRange, delta) } // Cleans up changes to the text storage object and notifies its delegate and layout managers of changes. [Full Topic] @@ -345,47 +291,49 @@ func (t_ TextStorage) ProcessEditing() { objc.Call[objc.Void](t_, objc.Sel("processEditing")) } -// Invalidates attributes in the specified range. [Full Topic] +// Removes a layout manager from the text storage object’s set of layout managers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1534025-invalidateattributesinrange?language=objc -func (t_ TextStorage) InvalidateAttributesInRange(range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("invalidateAttributesInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1528755-removelayoutmanager?language=objc +func (t_ TextStorage) RemoveLayoutManager(aLayoutManager ILayoutManager) { + objc.Call[objc.Void](t_, objc.Sel("removeLayoutManager:"), aLayoutManager) } -// Ensures that attribute fixing occurs in the specified range. [Full Topic] +// Adds a layout manager to the text storage object’s set of layout managers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1533947-ensureattributesarefixedinrange?language=objc -func (t_ TextStorage) EnsureAttributesAreFixedInRange(range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("ensureAttributesAreFixedInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1533459-addlayoutmanager?language=objc +func (t_ TextStorage) AddLayoutManager(aLayoutManager ILayoutManager) { + objc.Call[objc.Void](t_, objc.Sel("addLayoutManager:"), aLayoutManager) } -// Removes a layout manager from the text storage object’s set of layout managers. [Full Topic] +// The text storage contents as an array of paragraphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1528755-removelayoutmanager?language=objc -func (t_ TextStorage) RemoveLayoutManager(aLayoutManager ILayoutManager) { - objc.Call[objc.Void](t_, objc.Sel("removeLayoutManager:"), aLayoutManager) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1525943-paragraphs?language=objc +func (t_ TextStorage) Paragraphs() []TextStorage { + rv := objc.Call[[]TextStorage](t_, objc.Sel("paragraphs")) + return rv } -// Tracks changes made to the text storage object, allowing the text storage to record the full extent of changes. [Full Topic] +// The text storage contents as an array of paragraphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1529793-edited?language=objc -func (t_ TextStorage) EditedRangeChangeInLength(editedMask TextStorageEditActions, editedRange foundation.Range, delta int) { - objc.Call[objc.Void](t_, objc.Sel("edited:range:changeInLength:"), editedMask, editedRange, delta) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1525943-paragraphs?language=objc +func (t_ TextStorage) SetParagraphs(value []ITextStorage) { + objc.Call[objc.Void](t_, objc.Sel("setParagraphs:"), value) } -// The color for the text. [Full Topic] +// The layout managers for the text storage object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1527175-foregroundcolor?language=objc -func (t_ TextStorage) ForegroundColor() Color { - rv := objc.Call[Color](t_, objc.Sel("foregroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1527938-layoutmanagers?language=objc +func (t_ TextStorage) LayoutManagers() []LayoutManager { + rv := objc.Call[[]LayoutManager](t_, objc.Sel("layoutManagers")) return rv } -// The color for the text. [Full Topic] +// The difference between the current length of the edited range and its length before editing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1527175-foregroundcolor?language=objc -func (t_ TextStorage) SetForegroundColor(value IColor) { - objc.Call[objc.Void](t_, objc.Sel("setForegroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1528400-changeinlength?language=objc +func (t_ TextStorage) ChangeInLength() int { + rv := objc.Call[int](t_, objc.Sel("changeInLength")) + return rv } // The text storage contents as an array of characters. [Full Topic] @@ -403,34 +351,51 @@ func (t_ TextStorage) SetCharacters(value []ITextStorage) { objc.Call[objc.Void](t_, objc.Sel("setCharacters:"), value) } -// The text storage contents as an array of attribute runs. [Full Topic] +// The range of text that contains changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1532095-attributeruns?language=objc -func (t_ TextStorage) AttributeRuns() []TextStorage { - rv := objc.Call[[]TextStorage](t_, objc.Sel("attributeRuns")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1524379-editedrange?language=objc +func (t_ TextStorage) EditedRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("editedRange")) return rv } -// The text storage contents as an array of attribute runs. [Full Topic] +// The delegate for the text storage object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1532095-attributeruns?language=objc -func (t_ TextStorage) SetAttributeRuns(value []ITextStorage) { - objc.Call[objc.Void](t_, objc.Sel("setAttributeRuns:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1532704-delegate?language=objc +func (t_ TextStorage) Delegate() TextStorageDelegateObject { + rv := objc.Call[TextStorageDelegateObject](t_, objc.Sel("delegate")) + return rv } -// The text storage contents as an array of words. [Full Topic] +// The delegate for the text storage object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1524565-words?language=objc -func (t_ TextStorage) Words() []TextStorage { - rv := objc.Call[[]TextStorage](t_, objc.Sel("words")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1532704-delegate?language=objc +func (t_ TextStorage) SetDelegate(value PTextStorageDelegate) { + po0 := objc.WrapAsProtocol("NSTextStorageDelegate", value) + objc.SetAssociatedObject(t_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) +} + +// The delegate for the text storage object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1532704-delegate?language=objc +func (t_ TextStorage) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) +} + +// The color for the text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1527175-foregroundcolor?language=objc +func (t_ TextStorage) ForegroundColor() Color { + rv := objc.Call[Color](t_, objc.Sel("foregroundColor")) return rv } -// The text storage contents as an array of words. [Full Topic] +// The color for the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1524565-words?language=objc -func (t_ TextStorage) SetWords(value []ITextStorage) { - objc.Call[objc.Void](t_, objc.Sel("setWords:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1527175-foregroundcolor?language=objc +func (t_ TextStorage) SetForegroundColor(value IColor) { + objc.Call[objc.Void](t_, objc.Sel("setForegroundColor:"), value) } // The font for the text storage. [Full Topic] @@ -448,21 +413,6 @@ func (t_ TextStorage) SetFont(value IFont) { objc.Call[objc.Void](t_, objc.Sel("setFont:"), value) } -// The text storage contents as an array of paragraphs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1525943-paragraphs?language=objc -func (t_ TextStorage) Paragraphs() []TextStorage { - rv := objc.Call[[]TextStorage](t_, objc.Sel("paragraphs")) - return rv -} - -// The text storage contents as an array of paragraphs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1525943-paragraphs?language=objc -func (t_ TextStorage) SetParagraphs(value []ITextStorage) { - objc.Call[objc.Void](t_, objc.Sel("setParagraphs:"), value) -} - // A mask that describes the kinds of edits pending for the text storage object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1525323-editedmask?language=objc @@ -471,44 +421,34 @@ func (t_ TextStorage) EditedMask() TextStorageEditActions { return rv } -// The range of text that contains changes. [Full Topic] +// The text storage contents as an array of attribute runs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1524379-editedrange?language=objc -func (t_ TextStorage) EditedRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("editedRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1532095-attributeruns?language=objc +func (t_ TextStorage) AttributeRuns() []TextStorage { + rv := objc.Call[[]TextStorage](t_, objc.Sel("attributeRuns")) return rv } -// A Boolean value that indicates whether the text storage object fixes attributes lazily. [Full Topic] +// The text storage contents as an array of attribute runs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1532043-fixesattributeslazily?language=objc -func (t_ TextStorage) FixesAttributesLazily() bool { - rv := objc.Call[bool](t_, objc.Sel("fixesAttributesLazily")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1532095-attributeruns?language=objc +func (t_ TextStorage) SetAttributeRuns(value []ITextStorage) { + objc.Call[objc.Void](t_, objc.Sel("setAttributeRuns:"), value) } -// The delegate for the text storage object. [Full Topic] +// The text storage contents as an array of words. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1532704-delegate?language=objc -func (t_ TextStorage) Delegate() TextStorageDelegateObject { - rv := objc.Call[TextStorageDelegateObject](t_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1524565-words?language=objc +func (t_ TextStorage) Words() []TextStorage { + rv := objc.Call[[]TextStorage](t_, objc.Sel("words")) return rv } -// The delegate for the text storage object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1532704-delegate?language=objc -func (t_ TextStorage) SetDelegate(value PTextStorageDelegate) { - po0 := objc.WrapAsProtocol("NSTextStorageDelegate", value) - objc.SetAssociatedObject(t_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) -} - -// The delegate for the text storage object. [Full Topic] +// The text storage contents as an array of words. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1532704-delegate?language=objc -func (t_ TextStorage) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextstorage/1524565-words?language=objc +func (t_ TextStorage) SetWords(value []ITextStorage) { + objc.Call[objc.Void](t_, objc.Sel("setWords:"), value) } // The observer for the text storage object. [Full Topic] @@ -535,18 +475,10 @@ func (t_ TextStorage) SetTextStorageObserverObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setTextStorageObserver:"), valueObject) } -// The layout managers for the text storage object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1527938-layoutmanagers?language=objc -func (t_ TextStorage) LayoutManagers() []LayoutManager { - rv := objc.Call[[]LayoutManager](t_, objc.Sel("layoutManagers")) - return rv -} - -// The difference between the current length of the edited range and its length before editing. [Full Topic] +// A Boolean value that indicates whether the text storage object fixes attributes lazily. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1528400-changeinlength?language=objc -func (t_ TextStorage) ChangeInLength() int { - rv := objc.Call[int](t_, objc.Sel("changeInLength")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1532043-fixesattributeslazily?language=objc +func (t_ TextStorage) FixesAttributesLazily() bool { + rv := objc.Call[bool](t_, objc.Sel("fixesAttributesLazily")) return rv } diff --git a/macos/appkit/text_storage_delegate.gen.go b/macos/appkit/text_storage_delegate.gen.go index 53b6128e..504e0ac3 100644 --- a/macos/appkit/text_storage_delegate.gen.go +++ b/macos/appkit/text_storage_delegate.gen.go @@ -14,16 +14,11 @@ type PTextStorageDelegate interface { // optional TextStorageDidProcessEditingRangeChangeInLength(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) HasTextStorageDidProcessEditingRangeChangeInLength() bool - - // optional - TextStorageWillProcessEditingRangeChangeInLength(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) - HasTextStorageWillProcessEditingRangeChangeInLength() bool } // A delegate implementation builder for the [PTextStorageDelegate] protocol. type TextStorageDelegate struct { - _TextStorageDidProcessEditingRangeChangeInLength func(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) - _TextStorageWillProcessEditingRangeChangeInLength func(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) + _TextStorageDidProcessEditingRangeChangeInLength func(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) } func (di *TextStorageDelegate) HasTextStorageDidProcessEditingRangeChangeInLength() bool { @@ -43,23 +38,6 @@ func (di *TextStorageDelegate) SetTextStorageDidProcessEditingRangeChangeInLengt func (di *TextStorageDelegate) TextStorageDidProcessEditingRangeChangeInLength(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) { di._TextStorageDidProcessEditingRangeChangeInLength(textStorage, editedMask, editedRange, delta) } -func (di *TextStorageDelegate) HasTextStorageWillProcessEditingRangeChangeInLength() bool { - return di._TextStorageWillProcessEditingRangeChangeInLength != nil -} - -// The method the framework calls when a text storage object is about to process edits. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstoragedelegate/1534795-textstorage?language=objc -func (di *TextStorageDelegate) SetTextStorageWillProcessEditingRangeChangeInLength(f func(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int)) { - di._TextStorageWillProcessEditingRangeChangeInLength = f -} - -// The method the framework calls when a text storage object is about to process edits. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstoragedelegate/1534795-textstorage?language=objc -func (di *TextStorageDelegate) TextStorageWillProcessEditingRangeChangeInLength(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) { - di._TextStorageWillProcessEditingRangeChangeInLength(textStorage, editedMask, editedRange, delta) -} // ensure impl type implements protocol interface var _ PTextStorageDelegate = (*TextStorageDelegateObject)(nil) @@ -79,14 +57,3 @@ func (t_ TextStorageDelegateObject) HasTextStorageDidProcessEditingRangeChangeIn func (t_ TextStorageDelegateObject) TextStorageDidProcessEditingRangeChangeInLength(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) { objc.Call[objc.Void](t_, objc.Sel("textStorage:didProcessEditing:range:changeInLength:"), textStorage, editedMask, editedRange, delta) } - -func (t_ TextStorageDelegateObject) HasTextStorageWillProcessEditingRangeChangeInLength() bool { - return t_.RespondsToSelector(objc.Sel("textStorage:willProcessEditing:range:changeInLength:")) -} - -// The method the framework calls when a text storage object is about to process edits. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstoragedelegate/1534795-textstorage?language=objc -func (t_ TextStorageDelegateObject) TextStorageWillProcessEditingRangeChangeInLength(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) { - objc.Call[objc.Void](t_, objc.Sel("textStorage:willProcessEditing:range:changeInLength:"), textStorage, editedMask, editedRange, delta) -} diff --git a/macos/appkit/text_tab.gen.go b/macos/appkit/text_tab.gen.go index 7f624ddc..93ada242 100644 --- a/macos/appkit/text_tab.gen.go +++ b/macos/appkit/text_tab.gen.go @@ -19,8 +19,8 @@ type _TextTabClass struct { // An interface definition for the [TextTab] class. type ITextTab interface { objc.IObject - Location() float64 Options() map[TextTabOptionKey]objc.Object + Location() float64 Alignment() TextAlignment } @@ -86,14 +86,6 @@ func TextTab_ColumnTerminatorsForLocale(aLocale foundation.ILocale) foundation.C return TextTabClass.ColumnTerminatorsForLocale(aLocale) } -// The text tab’s ruler location relative to the back margin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstexttab/1527968-location?language=objc -func (t_ TextTab) Location() float64 { - rv := objc.Call[float64](t_, objc.Sel("location")) - return rv -} - // The dictionary of attributes for the text tab. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstexttab/1534965-options?language=objc @@ -102,6 +94,14 @@ func (t_ TextTab) Options() map[TextTabOptionKey]objc.Object { return rv } +// The text tab’s ruler location relative to the back margin. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstexttab/1527968-location?language=objc +func (t_ TextTab) Location() float64 { + rv := objc.Call[float64](t_, objc.Sel("location")) + return rv +} + // The text alignment of the text tab. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstexttab/1527212-alignment?language=objc diff --git a/macos/appkit/text_table.gen.go b/macos/appkit/text_table.gen.go index 7ed76b38..2c145b51 100644 --- a/macos/appkit/text_table.gen.go +++ b/macos/appkit/text_table.gen.go @@ -19,17 +19,17 @@ type _TextTableClass struct { // An interface definition for the [TextTable] class. type ITextTable interface { ITextBlock - RectForBlockLayoutAtPointInRectTextContainerCharacterRange(block ITextTableBlock, startingPoint foundation.Point, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect BoundsRectForBlockContentRectInRectTextContainerCharacterRange(block ITextTableBlock, contentRect foundation.Rect, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect DrawBackgroundForBlockWithFrameInViewCharacterRangeLayoutManager(block ITextTableBlock, frameRect foundation.Rect, controlView IView, charRange foundation.Range, layoutManager ILayoutManager) - LayoutAlgorithm() TextTableLayoutAlgorithm - SetLayoutAlgorithm(value TextTableLayoutAlgorithm) + RectForBlockLayoutAtPointInRectTextContainerCharacterRange(block ITextTableBlock, startingPoint foundation.Point, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect CollapsesBorders() bool SetCollapsesBorders(value bool) - NumberOfColumns() uint - SetNumberOfColumns(value uint) HidesEmptyCells() bool SetHidesEmptyCells(value bool) + LayoutAlgorithm() TextTableLayoutAlgorithm + SetLayoutAlgorithm(value TextTableLayoutAlgorithm) + NumberOfColumns() uint + SetNumberOfColumns(value uint) } // An object that represents a text table as a whole. [Full Topic] @@ -65,14 +65,6 @@ func (t_ TextTable) Init() TextTable { return rv } -// Returns the rectangle within which glyphs should be laid out for a text table block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1534161-rectforblock?language=objc -func (t_ TextTable) RectForBlockLayoutAtPointInRectTextContainerCharacterRange(block ITextTableBlock, startingPoint foundation.Point, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("rectForBlock:layoutAtPoint:inRect:textContainer:characterRange:"), block, startingPoint, rect, textContainer, charRange) - return rv -} - // Returns the rectangle the text table block actually occupies, including padding, borders, and margins. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1525956-boundsrectforblock?language=objc @@ -88,21 +80,14 @@ func (t_ TextTable) DrawBackgroundForBlockWithFrameInViewCharacterRangeLayoutMan objc.Call[objc.Void](t_, objc.Sel("drawBackgroundForBlock:withFrame:inView:characterRange:layoutManager:"), block, frameRect, controlView, charRange, layoutManager) } -// The text table layout algorithm. [Full Topic] +// Returns the rectangle within which glyphs should be laid out for a text table block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1531734-layoutalgorithm?language=objc -func (t_ TextTable) LayoutAlgorithm() TextTableLayoutAlgorithm { - rv := objc.Call[TextTableLayoutAlgorithm](t_, objc.Sel("layoutAlgorithm")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1534161-rectforblock?language=objc +func (t_ TextTable) RectForBlockLayoutAtPointInRectTextContainerCharacterRange(block ITextTableBlock, startingPoint foundation.Point, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect { + rv := objc.Call[foundation.Rect](t_, objc.Sel("rectForBlock:layoutAtPoint:inRect:textContainer:characterRange:"), block, startingPoint, rect, textContainer, charRange) return rv } -// The text table layout algorithm. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1531734-layoutalgorithm?language=objc -func (t_ TextTable) SetLayoutAlgorithm(value TextTableLayoutAlgorithm) { - objc.Call[objc.Void](t_, objc.Sel("setLayoutAlgorithm:"), value) -} - // A Boolean value indicating whether the text table borders are collapsible. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1534170-collapsesborders?language=objc @@ -118,21 +103,6 @@ func (t_ TextTable) SetCollapsesBorders(value bool) { objc.Call[objc.Void](t_, objc.Sel("setCollapsesBorders:"), value) } -// The number of columns in the text table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1532413-numberofcolumns?language=objc -func (t_ TextTable) NumberOfColumns() uint { - rv := objc.Call[uint](t_, objc.Sel("numberOfColumns")) - return rv -} - -// The number of columns in the text table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1532413-numberofcolumns?language=objc -func (t_ TextTable) SetNumberOfColumns(value uint) { - objc.Call[objc.Void](t_, objc.Sel("setNumberOfColumns:"), value) -} - // A Boolean value indicating whether the text table hides empty cells. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1526288-hidesemptycells?language=objc @@ -147,3 +117,33 @@ func (t_ TextTable) HidesEmptyCells() bool { func (t_ TextTable) SetHidesEmptyCells(value bool) { objc.Call[objc.Void](t_, objc.Sel("setHidesEmptyCells:"), value) } + +// The text table layout algorithm. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1531734-layoutalgorithm?language=objc +func (t_ TextTable) LayoutAlgorithm() TextTableLayoutAlgorithm { + rv := objc.Call[TextTableLayoutAlgorithm](t_, objc.Sel("layoutAlgorithm")) + return rv +} + +// The text table layout algorithm. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1531734-layoutalgorithm?language=objc +func (t_ TextTable) SetLayoutAlgorithm(value TextTableLayoutAlgorithm) { + objc.Call[objc.Void](t_, objc.Sel("setLayoutAlgorithm:"), value) +} + +// The number of columns in the text table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1532413-numberofcolumns?language=objc +func (t_ TextTable) NumberOfColumns() uint { + rv := objc.Call[uint](t_, objc.Sel("numberOfColumns")) + return rv +} + +// The number of columns in the text table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttable/1532413-numberofcolumns?language=objc +func (t_ TextTable) SetNumberOfColumns(value uint) { + objc.Call[objc.Void](t_, objc.Sel("setNumberOfColumns:"), value) +} diff --git a/macos/appkit/text_table_block.gen.go b/macos/appkit/text_table_block.gen.go index b20f5c25..dfaae6f3 100644 --- a/macos/appkit/text_table_block.gen.go +++ b/macos/appkit/text_table_block.gen.go @@ -18,11 +18,11 @@ type _TextTableBlockClass struct { // An interface definition for the [TextTableBlock] class. type ITextTableBlock interface { ITextBlock - StartingColumn() int + RowSpan() int StartingRow() int Table() TextTable + StartingColumn() int ColumnSpan() int - RowSpan() int } // A text block that appears as a cell in a text table. [Full Topic] @@ -72,11 +72,11 @@ func (t_ TextTableBlock) Init() TextTableBlock { return rv } -// Returns the table column at which this text table block starts. [Full Topic] +// Returns the number of table rows spanned by this text table block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttableblock/1525383-startingcolumn?language=objc -func (t_ TextTableBlock) StartingColumn() int { - rv := objc.Call[int](t_, objc.Sel("startingColumn")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttableblock/1528586-rowspan?language=objc +func (t_ TextTableBlock) RowSpan() int { + rv := objc.Call[int](t_, objc.Sel("rowSpan")) return rv } @@ -96,18 +96,18 @@ func (t_ TextTableBlock) Table() TextTable { return rv } -// Returns the number of table columns spanned by this text table block. [Full Topic] +// Returns the table column at which this text table block starts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttableblock/1528568-columnspan?language=objc -func (t_ TextTableBlock) ColumnSpan() int { - rv := objc.Call[int](t_, objc.Sel("columnSpan")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttableblock/1525383-startingcolumn?language=objc +func (t_ TextTableBlock) StartingColumn() int { + rv := objc.Call[int](t_, objc.Sel("startingColumn")) return rv } -// Returns the number of table rows spanned by this text table block. [Full Topic] +// Returns the number of table columns spanned by this text table block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttableblock/1528586-rowspan?language=objc -func (t_ TextTableBlock) RowSpan() int { - rv := objc.Call[int](t_, objc.Sel("rowSpan")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttableblock/1528568-columnspan?language=objc +func (t_ TextTableBlock) ColumnSpan() int { + rv := objc.Call[int](t_, objc.Sel("columnSpan")) return rv } diff --git a/macos/appkit/text_view.gen.go b/macos/appkit/text_view.gen.go index cd9f078b..33689cec 100644 --- a/macos/appkit/text_view.gen.go +++ b/macos/appkit/text_view.gen.go @@ -19,184 +19,183 @@ type _TextViewClass struct { // An interface definition for the [TextView] class. type ITextView interface { IText - UseAllLigatures(sender objc.IObject) - ShowFindIndicatorForRange(charRange foundation.Range) - SmartInsertForStringReplacingRangeBeforeStringAfterString(pasteString string, charRangeToReplace foundation.Range, beforeString unsafe.Pointer, afterString unsafe.Pointer) - CheckTextInSelection(sender objc.IObject) - OrderFrontSpacingPanel(sender objc.IObject) - StopSpeaking(sender objc.IObject) - WriteSelectionToPasteboardTypes(pboard IPasteboard, types []PasteboardType) bool - WriteSelectionToPasteboardType(pboard IPasteboard, type_ PasteboardType) bool + DragSelectionWithEventOffsetSlideBack(event IEvent, mouseOffset foundation.Size, slideBack bool) bool + OrderFrontLinkPanel(sender objc.IObject) + PreferredPasteboardTypeFromArrayRestrictedToTypesFromArray(availableTypes []PasteboardType, allowedTypes []PasteboardType) PasteboardType + ToggleAutomaticLinkDetection(sender objc.IObject) + UseStandardLigatures(sender objc.IObject) ShouldChangeTextInRangeReplacementString(affectedCharRange foundation.Range, replacementString string) bool - UpdateInsertionPointStateAndRestartTimer(restartFlag bool) + DidChangeText() + SetSelectedRangeAffinityStillSelecting(charRange foundation.Range, affinity SelectionAffinity, stillSelectingFlag bool) + SetAlignmentRange(alignment TextAlignment, range_ foundation.Range) + QuickLookPreviewableItemsInRanges(ranges []foundation.IValue) []objc.Object + ToggleAutomaticTextCompletion(sender objc.IObject) objc.Object + ToggleSmartInsertDelete(sender objc.IObject) + ShowFindIndicatorForRange(charRange foundation.Range) + SetSelectedRangesAffinityStillSelecting(ranges []foundation.IValue, affinity SelectionAffinity, stillSelectingFlag bool) + CompletionsForPartialWordRangeIndexOfSelectedItem(charRange foundation.Range, index *int) []string + BreakUndoCoalescing() + ChangeColor(sender objc.IObject) + OrderFrontSubstitutionsPanel(sender objc.IObject) DragImageForSelectionWithEventOrigin(event IEvent, origin foundation.PointPointer) Image - ToggleContinuousSpellChecking(sender objc.IObject) + StartSpeaking(sender objc.IObject) + SmartInsertAfterStringForStringReplacingRange(pasteString string, charRangeToReplace foundation.Range) string + SmartInsertBeforeStringForStringReplacingRange(pasteString string, charRangeToReplace foundation.Range) string + UpdateQuickLookPreviewPanel() + UpdateDragTypeRegistration() SetSpellingStateRange(value int, charRange foundation.Range) + HandleTextCheckingResultsForRangeTypesOptionsOrthographyWordCount(results []foundation.ITextCheckingResult, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, orthography foundation.IOrthography, wordCount int) DrawViewBackgroundInRect(rect foundation.Rect) - ToggleAutomaticDataDetection(sender objc.IObject) - SmartInsertAfterStringForStringReplacingRange(pasteString string, charRangeToReplace foundation.Range) string - SetAlignmentRange(alignment TextAlignment, range_ foundation.Range) - ToggleAutomaticQuoteSubstitution(sender objc.IObject) - SetLayoutOrientation(orientation TextLayoutOrientation) - Complete(sender objc.IObject) - InsertCompletionForPartialWordRangeMovementIsFinal(word string, charRange foundation.Range, movement int, flag bool) - OrderFrontTablePanel(sender objc.IObject) + UseAllLigatures(sender objc.IObject) + ToggleAutomaticSpellingCorrection(sender objc.IObject) TightenKerning(sender objc.IObject) - PreferredPasteboardTypeFromArrayRestrictedToTypesFromArray(availableTypes []PasteboardType, allowedTypes []PasteboardType) PasteboardType + ToggleContinuousSpellChecking(sender objc.IObject) + ToggleAutomaticDataDetection(sender objc.IObject) + SelectionRangeForProposedRangeGranularity(proposedCharRange foundation.Range, granularity SelectionGranularity) foundation.Range CheckTextInRangeTypesOptions(range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject) - UpdateCandidates() + OrderFrontSpacingPanel(sender objc.IObject) + UseStandardKerning(sender objc.IObject) + ShouldChangeTextInRangesReplacementStrings(affectedRanges []foundation.IValue, replacementStrings []string) bool + SetConstrainedFrameSize(desiredSize foundation.Size) + OrderFrontTablePanel(sender objc.IObject) + InvalidateTextContainerOrigin() + LoosenKerning(sender objc.IObject) + CheckTextInDocument(sender objc.IObject) + ReadSelectionFromPasteboard(pboard IPasteboard) bool + ToggleAutomaticTextReplacement(sender objc.IObject) + OrderFrontSharingServicePicker(sender objc.IObject) objc.Object + ToggleAutomaticDashSubstitution(sender objc.IObject) + Outline(sender objc.IObject) + PasteAsPlainText(sender objc.IObject) + PerformValidatedReplacementInRangeWithAttributedString(range_ foundation.Range, attributedString foundation.IAttributedString) bool + SetLayoutOrientation(orientation TextLayoutOrientation) DragOperationForDraggingInfoType(dragInfo PDraggingInfo, type_ PasteboardType) DragOperation DragOperationForDraggingInfoObjectType(dragInfoObject objc.IObject, type_ PasteboardType) DragOperation - UpdateQuickLookPreviewPanel() - ToggleAutomaticSpellingCorrection(sender objc.IObject) + CheckTextInSelection(sender objc.IObject) UpdateTouchBarItemIdentifiers() - SetNeedsDisplayInRectAvoidAdditionalLayout(rect foundation.Rect, flag bool) + OrderFrontListPanel(sender objc.IObject) + RulerViewDidAddMarker(ruler IRulerView, marker IRulerMarker) + InsertCompletionForPartialWordRangeMovementIsFinal(word string, charRange foundation.Range, movement int, flag bool) + Complete(sender objc.IObject) + ClickedOnLinkAtIndex(link objc.IObject, charIndex uint) AlignJustified(sender objc.IObject) - TurnOffLigatures(sender objc.IObject) PasteAsRichText(sender objc.IObject) - RaiseBaseline(sender objc.IObject) - ToggleAutomaticLinkDetection(sender objc.IObject) - ChangeDocumentBackgroundColor(sender objc.IObject) - OrderFrontLinkPanel(sender objc.IObject) - ToggleSmartInsertDelete(sender objc.IObject) + UpdateCandidates() + ChangeLayoutOrientation(sender objc.IObject) + ToggleQuickLookPreviewPanel(sender objc.IObject) objc.Object + SmartInsertForStringReplacingRangeBeforeStringAfterString(pasteString string, charRangeToReplace foundation.Range, beforeString unsafe.Pointer, afterString unsafe.Pointer) + WriteSelectionToPasteboardTypes(pboard IPasteboard, types []PasteboardType) bool TurnOffKerning(sender objc.IObject) - CheckTextInDocument(sender objc.IObject) - InvalidateTextContainerOrigin() - StartSpeaking(sender objc.IObject) - LowerBaseline(sender objc.IObject) - HandleTextCheckingResultsForRangeTypesOptionsOrthographyWordCount(results []foundation.ITextCheckingResult, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, orthography foundation.IOrthography, wordCount int) - ChangeColor(sender objc.IObject) - DidChangeText() - CompletionsForPartialWordRangeIndexOfSelectedItem(charRange foundation.Range, index *int) []string - BreakUndoCoalescing() + ChangeDocumentBackgroundColor(sender objc.IObject) DrawInsertionPointInRectColorTurnedOn(rect foundation.Rect, color IColor, flag bool) - ToggleGrammarChecking(sender objc.IObject) - ReadSelectionFromPasteboard(pboard IPasteboard) bool - OrderFrontSharingServicePicker(sender objc.IObject) objc.Object - SmartDeleteRangeForProposedRange(proposedCharRange foundation.Range) foundation.Range + StopSpeaking(sender objc.IObject) + RaiseBaseline(sender objc.IObject) + TurnOffLigatures(sender objc.IObject) + UpdateTextTouchBarItems() + ToggleAutomaticQuoteSubstitution(sender objc.IObject) + LowerBaseline(sender objc.IObject) UpdateRuler() - LoosenKerning(sender objc.IObject) - SetSelectedRangeAffinityStillSelecting(charRange foundation.Range, affinity SelectionAffinity, stillSelectingFlag bool) - UpdateDragTypeRegistration() - ToggleAutomaticTextReplacement(sender objc.IObject) - PerformFindPanelAction(sender objc.IObject) - ChangeLayoutOrientation(sender objc.IObject) - ToggleAutomaticDashSubstitution(sender objc.IObject) - SetConstrainedFrameSize(desiredSize foundation.Size) - UseStandardKerning(sender objc.IObject) - CharacterIndexForInsertionAtPoint(point foundation.Point) uint - ReadSelectionFromPasteboardType(pboard IPasteboard, type_ PasteboardType) bool - OrderFrontListPanel(sender objc.IObject) - ToggleAutomaticTextCompletion(sender objc.IObject) objc.Object - DragSelectionWithEventOffsetSlideBack(event IEvent, mouseOffset foundation.Size, slideBack bool) bool + ReplaceTextContainer(newContainer ITextContainer) ChangeAttributes(sender objc.IObject) - SetSelectedRangesAffinityStillSelecting(ranges []foundation.IValue, affinity SelectionAffinity, stillSelectingFlag bool) - PasteAsPlainText(sender objc.IObject) - SelectionRangeForProposedRangeGranularity(proposedCharRange foundation.Range, granularity SelectionGranularity) foundation.Range - ToggleQuickLookPreviewPanel(sender objc.IObject) objc.Object - ClickedOnLinkAtIndex(link objc.IObject, charIndex uint) - PerformValidatedReplacementInRangeWithAttributedString(range_ foundation.Range, attributedString foundation.IAttributedString) bool - SmartInsertBeforeStringForStringReplacingRange(pasteString string, charRangeToReplace foundation.Range) string - QuickLookPreviewableItemsInRanges(ranges []foundation.IValue) []objc.Object SetBaseWritingDirectionRange(writingDirection WritingDirection, range_ foundation.Range) - UpdateTextTouchBarItems() - ShouldChangeTextInRangesReplacementStrings(affectedRanges []foundation.IValue, replacementStrings []string) bool + SetNeedsDisplayInRectAvoidAdditionalLayout(rect foundation.Rect, flag bool) + PerformFindPanelAction(sender objc.IObject) UpdateFontPanel() - UseStandardLigatures(sender objc.IObject) - ReplaceTextContainer(newContainer ITextContainer) + SmartDeleteRangeForProposedRange(proposedCharRange foundation.Range) foundation.Range + ToggleGrammarChecking(sender objc.IObject) CleanUpAfterDragOperation() - OrderFrontSubstitutionsPanel(sender objc.IObject) - Outline(sender objc.IObject) - IsGrammarCheckingEnabled() bool - SetGrammarCheckingEnabled(value bool) - IsAutomaticTextReplacementEnabled() bool - SetAutomaticTextReplacementEnabled(value bool) - RangeForUserParagraphAttributeChange() foundation.Range - LinkTextAttributes() map[foundation.AttributedStringKey]objc.Object - SetLinkTextAttributes(value map[foundation.AttributedStringKey]objc.IObject) - RangesForUserParagraphAttributeChange() []foundation.Value - SelectionGranularity() SelectionGranularity - SetSelectionGranularity(value SelectionGranularity) + CharacterIndexForInsertionAtPoint(point foundation.Point) uint + UpdateInsertionPointStateAndRestartTimer(restartFlag bool) TextLayoutManager() TextLayoutManager DefaultParagraphStyle() ParagraphStyle SetDefaultParagraphStyle(value IParagraphStyle) - DisplaysLinkToolTips() bool - SetDisplaysLinkToolTips(value bool) - ReadablePasteboardTypes() []PasteboardType - IsCoalescingUndo() bool + IsAutomaticLinkDetectionEnabled() bool + SetAutomaticLinkDetectionEnabled(value bool) AllowsImageEditing() bool SetAllowsImageEditing(value bool) - UsesFindBar() bool - SetUsesFindBar(value bool) - WritablePasteboardTypes() []PasteboardType - RangeForUserTextChange() foundation.Range - LayoutManager() LayoutManager - EnabledTextCheckingTypes() foundation.TextCheckingTypes - SetEnabledTextCheckingTypes(value foundation.TextCheckingTypes) UsesAdaptiveColorMappingForDarkAppearance() bool SetUsesAdaptiveColorMappingForDarkAppearance(value bool) + IsAutomaticTextReplacementEnabled() bool + SetAutomaticTextReplacementEnabled(value bool) + UsesRolloverButtonForSelection() bool + SetUsesRolloverButtonForSelection(value bool) + ShouldDrawInsertionPoint() bool + IsAutomaticQuoteSubstitutionEnabled() bool + SetAutomaticQuoteSubstitutionEnabled(value bool) SpellCheckerDocumentTag() int - RangeForUserCompletion() foundation.Range - IsAutomaticDataDetectionEnabled() bool - SetAutomaticDataDetectionEnabled(value bool) + RangeForUserParagraphAttributeChange() foundation.Range + InsertionPointColor() Color + SetInsertionPointColor(value IColor) + EnabledTextCheckingTypes() foundation.TextCheckingTypes + SetEnabledTextCheckingTypes(value foundation.TextCheckingTypes) + RangeForUserTextChange() foundation.Range SelectedTextAttributes() map[foundation.AttributedStringKey]objc.Object SetSelectedTextAttributes(value map[foundation.AttributedStringKey]objc.IObject) - ShouldDrawInsertionPoint() bool - SmartInsertDeleteEnabled() bool - SetSmartInsertDeleteEnabled(value bool) + IsAutomaticTextCompletionEnabled() bool + SetAutomaticTextCompletionEnabled(value bool) + WritablePasteboardTypes() []PasteboardType + TextContainerInset() foundation.Size + SetTextContainerInset(value foundation.Size) + IsCoalescingUndo() bool + AllowedInputSourceLocales() []string + SetAllowedInputSourceLocales(value []string) + RangesForUserParagraphAttributeChange() []foundation.Value AllowsCharacterPickerTouchBarItem() bool SetAllowsCharacterPickerTouchBarItem(value bool) - TypingAttributes() map[foundation.AttributedStringKey]objc.Object - SetTypingAttributes(value map[foundation.AttributedStringKey]objc.IObject) - RangesForUserCharacterAttributeChange() []foundation.Value - AcceptableDragTypes() []PasteboardType + TextContainer() TextContainer + SetTextContainer(value ITextContainer) + AcceptsGlyphInfo() bool + SetAcceptsGlyphInfo(value bool) + UsesFindPanel() bool + SetUsesFindPanel(value bool) + IsAutomaticDashSubstitutionEnabled() bool + SetAutomaticDashSubstitutionEnabled(value bool) + RangeForUserCompletion() foundation.Range + LayoutManager() LayoutManager + SmartInsertDeleteEnabled() bool + SetSmartInsertDeleteEnabled(value bool) + IsIncrementalSearchingEnabled() bool + SetIncrementalSearchingEnabled(value bool) UsesRuler() bool SetUsesRuler(value bool) + IsAutomaticDataDetectionEnabled() bool + SetAutomaticDataDetectionEnabled(value bool) + RangesForUserCharacterAttributeChange() []foundation.Value RangeForUserCharacterAttributeChange() foundation.Range - InsertionPointColor() Color - SetInsertionPointColor(value IColor) - IsAutomaticTextCompletionEnabled() bool - SetAutomaticTextCompletionEnabled(value bool) - IsAutomaticSpellingCorrectionEnabled() bool - SetAutomaticSpellingCorrectionEnabled(value bool) + DisplaysLinkToolTips() bool + SetDisplaysLinkToolTips(value bool) SetRulerVisible(value bool) - SelectedRanges() []foundation.Value - SetSelectedRanges(value []foundation.IValue) - TextStorage() TextStorage IsContinuousSpellCheckingEnabled() bool SetContinuousSpellCheckingEnabled(value bool) - UsesFindPanel() bool - SetUsesFindPanel(value bool) RangesForUserTextChange() []foundation.Value - IsAutomaticDashSubstitutionEnabled() bool - SetAutomaticDashSubstitutionEnabled(value bool) - IsIncrementalSearchingEnabled() bool - SetIncrementalSearchingEnabled(value bool) - UsesRolloverButtonForSelection() bool - SetUsesRolloverButtonForSelection(value bool) + ReadablePasteboardTypes() []PasteboardType + SelectedRanges() []foundation.Value + SetSelectedRanges(value []foundation.IValue) + TextStorage() TextStorage + AllowsDocumentBackgroundColorChange() bool + SetAllowsDocumentBackgroundColorChange(value bool) + TypingAttributes() map[foundation.AttributedStringKey]objc.Object + SetTypingAttributes(value map[foundation.AttributedStringKey]objc.IObject) + SelectionAffinity() SelectionAffinity + LinkTextAttributes() map[foundation.AttributedStringKey]objc.Object + SetLinkTextAttributes(value map[foundation.AttributedStringKey]objc.IObject) + IsAutomaticSpellingCorrectionEnabled() bool + SetAutomaticSpellingCorrectionEnabled(value bool) + IsGrammarCheckingEnabled() bool + SetGrammarCheckingEnabled(value bool) AllowsUndo() bool SetAllowsUndo(value bool) MarkedTextAttributes() map[foundation.AttributedStringKey]objc.Object SetMarkedTextAttributes(value map[foundation.AttributedStringKey]objc.IObject) - AcceptsGlyphInfo() bool - SetAcceptsGlyphInfo(value bool) - IsAutomaticLinkDetectionEnabled() bool - SetAutomaticLinkDetectionEnabled(value bool) - TextContentStorage() TextContentStorage + AcceptableDragTypes() []PasteboardType TextContainerOrigin() foundation.Point - TextContainer() TextContainer - SetTextContainer(value ITextContainer) - SelectionAffinity() SelectionAffinity + UsesFindBar() bool + SetUsesFindBar(value bool) + TextContentStorage() TextContentStorage + SelectionGranularity() SelectionGranularity + SetSelectionGranularity(value SelectionGranularity) UsesInspectorBar() bool SetUsesInspectorBar(value bool) - AllowsDocumentBackgroundColorChange() bool - SetAllowsDocumentBackgroundColorChange(value bool) - IsAutomaticQuoteSubstitutionEnabled() bool - SetAutomaticQuoteSubstitutionEnabled(value bool) - AllowedInputSourceLocales() []string - SetAllowedInputSourceLocales(value []string) - TextContainerInset() foundation.Size - SetTextContainerInset(value foundation.Size) } // A view that draws text and handles user interactions with that text. [Full Topic] @@ -226,159 +225,200 @@ func NewTextViewWithFrameTextContainer(frameRect foundation.Rect, container ITex return instance } +func (tc _TextViewClass) Alloc() TextView { + rv := objc.Call[TextView](tc, objc.Sel("alloc")) + return rv +} + +func (tc _TextViewClass) New() TextView { + rv := objc.Call[TextView](tc, objc.Sel("new")) + rv.Autorelease() + return rv +} + +func NewTextView() TextView { + return TextViewClass.New() +} + +func (t_ TextView) Init() TextView { + rv := objc.Call[TextView](t_, objc.Sel("init")) + return rv +} + func (t_ TextView) InitWithFrame(frameRect foundation.Rect) TextView { rv := objc.Call[TextView](t_, objc.Sel("initWithFrame:"), frameRect) return rv } -// Initializes a text view. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449262-initwithframe?language=objc +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1525191-initwithframe?language=objc func NewTextViewWithFrame(frameRect foundation.Rect) TextView { instance := TextViewClass.Alloc().InitWithFrame(frameRect) instance.Autorelease() return instance } -func (tc _TextViewClass) FieldEditor() TextView { - rv := objc.Call[TextView](tc, objc.Sel("fieldEditor")) +// Begins dragging the current selected text range. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449413-dragselectionwithevent?language=objc +func (t_ TextView) DragSelectionWithEventOffsetSlideBack(event IEvent, mouseOffset foundation.Size, slideBack bool) bool { + rv := objc.Call[bool](t_, objc.Sel("dragSelectionWithEvent:offset:slideBack:"), event, mouseOffset, slideBack) return rv } -// [Full Topic] +// Brings forward a panel allowing the user to manipulate links in the text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990525-fieldeditor?language=objc -func TextView_FieldEditor() TextView { - return TextViewClass.FieldEditor() -} - -func (tc _TextViewClass) Alloc() TextView { - rv := objc.Call[TextView](tc, objc.Sel("alloc")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449238-orderfrontlinkpanel?language=objc +func (t_ TextView) OrderFrontLinkPanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("orderFrontLinkPanel:"), sender) } -func (tc _TextViewClass) New() TextView { - rv := objc.Call[TextView](tc, objc.Sel("new")) - rv.Autorelease() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990527-scrollabledocumentcontenttextvie?language=objc +func (tc _TextViewClass) ScrollableDocumentContentTextView() ScrollView { + rv := objc.Call[ScrollView](tc, objc.Sel("scrollableDocumentContentTextView")) return rv } -func NewTextView() TextView { - return TextViewClass.New() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990527-scrollabledocumentcontenttextvie?language=objc +func TextView_ScrollableDocumentContentTextView() ScrollView { + return TextViewClass.ScrollableDocumentContentTextView() } -func (t_ TextView) Init() TextView { - rv := objc.Call[TextView](t_, objc.Sel("init")) +// Returns whatever type on the pasteboard would be most preferred for copying data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449131-preferredpasteboardtypefromarray?language=objc +func (t_ TextView) PreferredPasteboardTypeFromArrayRestrictedToTypesFromArray(availableTypes []PasteboardType, allowedTypes []PasteboardType) PasteboardType { + rv := objc.Call[PasteboardType](t_, objc.Sel("preferredPasteboardTypeFromArray:restrictedToTypesFromArray:"), availableTypes, allowedTypes) return rv } -// Sets the receiver to use all ligatures available for the fonts and languages used when setting text, for the glyphs in the selection if the receiver is a rich text view, or for all glyphs if it’s a plain text view. [Full Topic] +// Changes the state of automatic link detection from enabled to disabled and vice versa. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449213-useallligatures?language=objc -func (t_ TextView) UseAllLigatures(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("useAllLigatures:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449353-toggleautomaticlinkdetection?language=objc +func (t_ TextView) ToggleAutomaticLinkDetection(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticLinkDetection:"), sender) } -// Causes a temporary highlighting effect to appear around the visible portion (or portions) of the specified range. [Full Topic] +// Sets the receiver to use the standard ligatures available for the fonts and languages used when setting text, for the glyphs in the selection if the receiver is a rich text view, or for all glyphs if it’s a plain text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449540-showfindindicatorforrange?language=objc -func (t_ TextView) ShowFindIndicatorForRange(charRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("showFindIndicatorForRange:"), charRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449144-usestandardligatures?language=objc +func (t_ TextView) UseStandardLigatures(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("useStandardLigatures:"), sender) } -// Determines whether whitespace needs to be added around the string to preserve proper spacing and punctuation when it replaces the characters in the specified range. [Full Topic] +// Initiates a series of delegate messages (and general notifications) to determine whether modifications can be made to the characters and attributes of the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449544-smartinsertforstring?language=objc -func (t_ TextView) SmartInsertForStringReplacingRangeBeforeStringAfterString(pasteString string, charRangeToReplace foundation.Range, beforeString unsafe.Pointer, afterString unsafe.Pointer) { - objc.Call[objc.Void](t_, objc.Sel("smartInsertForString:replacingRange:beforeString:afterString:"), pasteString, charRangeToReplace, beforeString, afterString) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449532-shouldchangetextinrange?language=objc +func (t_ TextView) ShouldChangeTextInRangeReplacementString(affectedCharRange foundation.Range, replacementString string) bool { + rv := objc.Call[bool](t_, objc.Sel("shouldChangeTextInRange:replacementString:"), affectedCharRange, replacementString) + return rv } -// Performs the default text checking on the current selection. [Full Topic] +// Sends out necessary notifications when a text change completes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449382-checktextinselection?language=objc -func (t_ TextView) CheckTextInSelection(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("checkTextInSelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449296-didchangetext?language=objc +func (t_ TextView) DidChangeText() { + objc.Call[objc.Void](t_, objc.Sel("didChangeText")) } -// Brings forward a panel allowing the user to manipulate text line heights, interline spacing, and paragraph spacing, in the text view. [Full Topic] +// Sets the selection to a range of characters in response to user action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449438-orderfrontspacingpanel?language=objc -func (t_ TextView) OrderFrontSpacingPanel(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("orderFrontSpacingPanel:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449462-setselectedrange?language=objc +func (t_ TextView) SetSelectedRangeAffinityStillSelecting(charRange foundation.Range, affinity SelectionAffinity, stillSelectingFlag bool) { + objc.Call[objc.Void](t_, objc.Sel("setSelectedRange:affinity:stillSelecting:"), charRange, affinity, stillSelectingFlag) } -// Stops the speaking of text. [Full Topic] +// Sets the alignment of the paragraphs containing characters in the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449172-stopspeaking?language=objc -func (t_ TextView) StopSpeaking(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("stopSpeaking:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449536-setalignment?language=objc +func (t_ TextView) SetAlignmentRange(alignment TextAlignment, range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setAlignment:range:"), alignment, range_) } -// Writes the current selection to the specified pasteboard under each given type. [Full Topic] +// Returns an array of URLs for items that can be displayed by QuickLook in the specified ranges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449277-writeselectiontopasteboard?language=objc -func (t_ TextView) WriteSelectionToPasteboardTypes(pboard IPasteboard, types []PasteboardType) bool { - rv := objc.Call[bool](t_, objc.Sel("writeSelectionToPasteboard:types:"), pboard, types) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449426-quicklookpreviewableitemsinrange?language=objc +func (t_ TextView) QuickLookPreviewableItemsInRanges(ranges []foundation.IValue) []objc.Object { + rv := objc.Call[[]objc.Object](t_, objc.Sel("quickLookPreviewableItemsInRanges:"), ranges) return rv } -// Writes the current selection to the specified pasteboard using the given type. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449187-writeselectiontopasteboard?language=objc -func (t_ TextView) WriteSelectionToPasteboardType(pboard IPasteboard, type_ PasteboardType) bool { - rv := objc.Call[bool](t_, objc.Sel("writeSelectionToPasteboard:type:"), pboard, type_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544841-toggleautomatictextcompletion?language=objc +func (t_ TextView) ToggleAutomaticTextCompletion(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("toggleAutomaticTextCompletion:"), sender) return rv } -// Initiates a series of delegate messages (and general notifications) to determine whether modifications can be made to the characters and attributes of the receiver’s text. [Full Topic] +// Changes the state of smart insert and delete from enabled to disabled and vice versa. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449532-shouldchangetextinrange?language=objc -func (t_ TextView) ShouldChangeTextInRangeReplacementString(affectedCharRange foundation.Range, replacementString string) bool { - rv := objc.Call[bool](t_, objc.Sel("shouldChangeTextInRange:replacementString:"), affectedCharRange, replacementString) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449273-togglesmartinsertdelete?language=objc +func (t_ TextView) ToggleSmartInsertDelete(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleSmartInsertDelete:"), sender) } -// Updates the insertion point’s location and optionally restarts the blinking cursor timer. [Full Topic] +// Causes a temporary highlighting effect to appear around the visible portion (or portions) of the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449268-updateinsertionpointstateandrest?language=objc -func (t_ TextView) UpdateInsertionPointStateAndRestartTimer(restartFlag bool) { - objc.Call[objc.Void](t_, objc.Sel("updateInsertionPointStateAndRestartTimer:"), restartFlag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449540-showfindindicatorforrange?language=objc +func (t_ TextView) ShowFindIndicatorForRange(charRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("showFindIndicatorForRange:"), charRange) } -// Returns an appropriate drag image for the drag initiated by the specified event. [Full Topic] +// Sets the selection to the characters in an array of ranges in response to user action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449423-dragimageforselectionwithevent?language=objc -func (t_ TextView) DragImageForSelectionWithEventOrigin(event IEvent, origin foundation.PointPointer) Image { - rv := objc.Call[Image](t_, objc.Sel("dragImageForSelectionWithEvent:origin:"), event, origin) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449208-setselectedranges?language=objc +func (t_ TextView) SetSelectedRangesAffinityStillSelecting(ranges []foundation.IValue, affinity SelectionAffinity, stillSelectingFlag bool) { + objc.Call[objc.Void](t_, objc.Sel("setSelectedRanges:affinity:stillSelecting:"), ranges, affinity, stillSelectingFlag) +} + +// Returns an array of potential completions, in the order to be presented, representing possible word completions available from a partial word. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449405-completionsforpartialwordrange?language=objc +func (t_ TextView) CompletionsForPartialWordRangeIndexOfSelectedItem(charRange foundation.Range, index *int) []string { + rv := objc.Call[[]string](t_, objc.Sel("completionsForPartialWordRange:indexOfSelectedItem:"), charRange, index) return rv } -// Toggles whether continuous spell checking is enabled for the receiver. [Full Topic] +// Informs the receiver that it should begin coalescing successive typing operations in a new undo grouping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449471-togglecontinuousspellchecking?language=objc -func (t_ TextView) ToggleContinuousSpellChecking(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleContinuousSpellChecking:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449384-breakundocoalescing?language=objc +func (t_ TextView) BreakUndoCoalescing() { + objc.Call[objc.Void](t_, objc.Sel("breakUndoCoalescing")) } -// Sets the spelling state, which controls the display of the spelling and grammar indicators on the given text range. [Full Topic] +// Sets the color of the selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449493-setspellingstate?language=objc -func (t_ TextView) SetSpellingStateRange(value int, charRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setSpellingState:range:"), value, charRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449282-changecolor?language=objc +func (t_ TextView) ChangeColor(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("changeColor:"), sender) } -// Draws the background of the text view. [Full Topic] +// Brings forward a panel allowing the user to specify string substitutions in the text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449135-drawviewbackgroundinrect?language=objc -func (t_ TextView) DrawViewBackgroundInRect(rect foundation.Rect) { - objc.Call[objc.Void](t_, objc.Sel("drawViewBackgroundInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449327-orderfrontsubstitutionspanel?language=objc +func (t_ TextView) OrderFrontSubstitutionsPanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("orderFrontSubstitutionsPanel:"), sender) } -// Toggles the state of the automatic data detection. [Full Topic] +// Returns an appropriate drag image for the drag initiated by the specified event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449499-toggleautomaticdatadetection?language=objc -func (t_ TextView) ToggleAutomaticDataDetection(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticDataDetection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449423-dragimageforselectionwithevent?language=objc +func (t_ TextView) DragImageForSelectionWithEventOrigin(event IEvent, origin foundation.PointPointer) Image { + rv := objc.Call[Image](t_, objc.Sel("dragImageForSelectionWithEvent:origin:"), event, origin) + return rv +} + +// Speaks the selected text, or all text if no selection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449519-startspeaking?language=objc +func (t_ TextView) StartSpeaking(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("startSpeaking:"), sender) } // Returns any whitespace that needs to be added after the string to preserve proper spacing and punctuation when the string replaces the characters in the specified range. [Full Topic] @@ -389,61 +429,61 @@ func (t_ TextView) SmartInsertAfterStringForStringReplacingRange(pasteString str return rv } -// Sets the alignment of the paragraphs containing characters in the specified range. [Full Topic] +// Returns any whitespace that needs to be added before the string to preserve proper spacing and punctuation when the string replaces the characters in the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449536-setalignment?language=objc -func (t_ TextView) SetAlignmentRange(alignment TextAlignment, range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setAlignment:range:"), alignment, range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449242-smartinsertbeforestringforstring?language=objc +func (t_ TextView) SmartInsertBeforeStringForStringReplacingRange(pasteString string, charRangeToReplace foundation.Range) string { + rv := objc.Call[string](t_, objc.Sel("smartInsertBeforeStringForString:replacingRange:"), pasteString, charRangeToReplace) + return rv } -// Changes the state of automatic quotation mark substitution from enabled to disabled and vice versa. [Full Topic] +// Notifies the QuickLook panel that an update may be required. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449444-toggleautomaticquotesubstitution?language=objc -func (t_ TextView) ToggleAutomaticQuoteSubstitution(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticQuoteSubstitution:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449409-updatequicklookpreviewpanel?language=objc +func (t_ TextView) UpdateQuickLookPreviewPanel() { + objc.Call[objc.Void](t_, objc.Sel("updateQuickLookPreviewPanel")) } -// Changes the receiver's layout orientation and invalidates the contents. [Full Topic] +// Updates the acceptable drag types of all text views associated with the receiver's layout manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449483-setlayoutorientation?language=objc -func (t_ TextView) SetLayoutOrientation(orientation TextLayoutOrientation) { - objc.Call[objc.Void](t_, objc.Sel("setLayoutOrientation:"), orientation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449181-updatedragtyperegistration?language=objc +func (t_ TextView) UpdateDragTypeRegistration() { + objc.Call[objc.Void](t_, objc.Sel("updateDragTypeRegistration")) } -// Invokes completion in a text view. [Full Topic] +// Sets the spelling state, which controls the display of the spelling and grammar indicators on the given text range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449359-complete?language=objc -func (t_ TextView) Complete(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("complete:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449493-setspellingstate?language=objc +func (t_ TextView) SetSpellingStateRange(value int, charRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setSpellingState:range:"), value, charRange) } -// [Full Topic] +// Handles the text checking results returned by the text view [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990528-scrollableplaindocumentcontentte?language=objc -func (tc _TextViewClass) ScrollablePlainDocumentContentTextView() ScrollView { - rv := objc.Call[ScrollView](tc, objc.Sel("scrollablePlainDocumentContentTextView")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449473-handletextcheckingresults?language=objc +func (t_ TextView) HandleTextCheckingResultsForRangeTypesOptionsOrthographyWordCount(results []foundation.ITextCheckingResult, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, orthography foundation.IOrthography, wordCount int) { + objc.Call[objc.Void](t_, objc.Sel("handleTextCheckingResults:forRange:types:options:orthography:wordCount:"), results, range_, checkingTypes, options, orthography, wordCount) } -// [Full Topic] +// Draws the background of the text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990528-scrollableplaindocumentcontentte?language=objc -func TextView_ScrollablePlainDocumentContentTextView() ScrollView { - return TextViewClass.ScrollablePlainDocumentContentTextView() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449135-drawviewbackgroundinrect?language=objc +func (t_ TextView) DrawViewBackgroundInRect(rect foundation.Rect) { + objc.Call[objc.Void](t_, objc.Sel("drawViewBackgroundInRect:"), rect) } -// Inserts the selected completion into the text at the appropriate location. [Full Topic] +// Sets the receiver to use all ligatures available for the fonts and languages used when setting text, for the glyphs in the selection if the receiver is a rich text view, or for all glyphs if it’s a plain text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449448-insertcompletion?language=objc -func (t_ TextView) InsertCompletionForPartialWordRangeMovementIsFinal(word string, charRange foundation.Range, movement int, flag bool) { - objc.Call[objc.Void](t_, objc.Sel("insertCompletion:forPartialWordRange:movement:isFinal:"), word, charRange, movement, flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449213-useallligatures?language=objc +func (t_ TextView) UseAllLigatures(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("useAllLigatures:"), sender) } -// Brings forward a panel allowing the user to manipulate text tables in the text view. [Full Topic] +// Toggles the state of the automatic spelling correction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449442-orderfronttablepanel?language=objc -func (t_ TextView) OrderFrontTablePanel(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("orderFrontTablePanel:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449178-toggleautomaticspellingcorrectio?language=objc +func (t_ TextView) ToggleAutomaticSpellingCorrection(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticSpellingCorrection:"), sender) } // Decreases the space between glyphs in the receiver’s selection, or for all glyphs if the receiver is a plain text view. [Full Topic] @@ -453,11 +493,25 @@ func (t_ TextView) TightenKerning(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("tightenKerning:"), sender) } -// Returns whatever type on the pasteboard would be most preferred for copying data. [Full Topic] +// Toggles whether continuous spell checking is enabled for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449131-preferredpasteboardtypefromarray?language=objc -func (t_ TextView) PreferredPasteboardTypeFromArrayRestrictedToTypesFromArray(availableTypes []PasteboardType, allowedTypes []PasteboardType) PasteboardType { - rv := objc.Call[PasteboardType](t_, objc.Sel("preferredPasteboardTypeFromArray:restrictedToTypesFromArray:"), availableTypes, allowedTypes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449471-togglecontinuousspellchecking?language=objc +func (t_ TextView) ToggleContinuousSpellChecking(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleContinuousSpellChecking:"), sender) +} + +// Toggles the state of the automatic data detection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449499-toggleautomaticdatadetection?language=objc +func (t_ TextView) ToggleAutomaticDataDetection(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticDataDetection:"), sender) +} + +// Returns an adjusted selected range based on the selection granularity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449188-selectionrangeforproposedrange?language=objc +func (t_ TextView) SelectionRangeForProposedRangeGranularity(proposedCharRange foundation.Range, granularity SelectionGranularity) foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("selectionRangeForProposedRange:granularity:"), proposedCharRange, granularity) return rv } @@ -468,536 +522,574 @@ func (t_ TextView) CheckTextInRangeTypesOptions(range_ foundation.Range, checkin objc.Call[objc.Void](t_, objc.Sel("checkTextInRange:types:options:"), range_, checkingTypes, options) } -// [Full Topic] +// Brings forward a panel allowing the user to manipulate text line heights, interline spacing, and paragraph spacing, in the text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544833-updatecandidates?language=objc -func (t_ TextView) UpdateCandidates() { - objc.Call[objc.Void](t_, objc.Sel("updateCandidates")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449438-orderfrontspacingpanel?language=objc +func (t_ TextView) OrderFrontSpacingPanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("orderFrontSpacingPanel:"), sender) } -// Returns the type of drag operation that should be performed if the image were released now. [Full Topic] +// Set the receiver to use pair kerning data for the glyphs in its selection, or for all glyphs if the receiver is a plain text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449176-dragoperationfordragginginfo?language=objc -func (t_ TextView) DragOperationForDraggingInfoType(dragInfo PDraggingInfo, type_ PasteboardType) DragOperation { - po0 := objc.WrapAsProtocol("NSDraggingInfo", dragInfo) - rv := objc.Call[DragOperation](t_, objc.Sel("dragOperationForDraggingInfo:type:"), po0, type_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449491-usestandardkerning?language=objc +func (t_ TextView) UseStandardKerning(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("useStandardKerning:"), sender) } -// Returns the type of drag operation that should be performed if the image were released now. [Full Topic] +// Initiates a series of delegate messages (and general notifications) to determine whether modifications can be made to the characters and attributes of the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449176-dragoperationfordragginginfo?language=objc -func (t_ TextView) DragOperationForDraggingInfoObjectType(dragInfoObject objc.IObject, type_ PasteboardType) DragOperation { - rv := objc.Call[DragOperation](t_, objc.Sel("dragOperationForDraggingInfo:type:"), dragInfoObject, type_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449311-shouldchangetextinranges?language=objc +func (t_ TextView) ShouldChangeTextInRangesReplacementStrings(affectedRanges []foundation.IValue, replacementStrings []string) bool { + rv := objc.Call[bool](t_, objc.Sel("shouldChangeTextInRanges:replacementStrings:"), affectedRanges, replacementStrings) return rv } -// Notifies the QuickLook panel that an update may be required. [Full Topic] +// Attempts to set the frame size as if by user action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449409-updatequicklookpreviewpanel?language=objc -func (t_ TextView) UpdateQuickLookPreviewPanel() { - objc.Call[objc.Void](t_, objc.Sel("updateQuickLookPreviewPanel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449230-setconstrainedframesize?language=objc +func (t_ TextView) SetConstrainedFrameSize(desiredSize foundation.Size) { + objc.Call[objc.Void](t_, objc.Sel("setConstrainedFrameSize:"), desiredSize) } -// Toggles the state of the automatic spelling correction. [Full Topic] +// Brings forward a panel allowing the user to manipulate text tables in the text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449178-toggleautomaticspellingcorrectio?language=objc -func (t_ TextView) ToggleAutomaticSpellingCorrection(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticSpellingCorrection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449442-orderfronttablepanel?language=objc +func (t_ TextView) OrderFrontTablePanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("orderFrontTablePanel:"), sender) } -// [Full Topic] +// Invalidates the calculated origin of the text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544834-updatetouchbaritemidentifiers?language=objc -func (t_ TextView) UpdateTouchBarItemIdentifiers() { - objc.Call[objc.Void](t_, objc.Sel("updateTouchBarItemIdentifiers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449546-invalidatetextcontainerorigin?language=objc +func (t_ TextView) InvalidateTextContainerOrigin() { + objc.Call[objc.Void](t_, objc.Sel("invalidateTextContainerOrigin")) } -// Marks the receiver as requiring display. [Full Topic] +// Increases the space between glyphs in the receiver’s selection, or in all text if the receiver is a plain text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449279-setneedsdisplayinrect?language=objc -func (t_ TextView) SetNeedsDisplayInRectAvoidAdditionalLayout(rect foundation.Rect, flag bool) { - objc.Call[objc.Void](t_, objc.Sel("setNeedsDisplayInRect:avoidAdditionalLayout:"), rect, flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449183-loosenkerning?language=objc +func (t_ TextView) LoosenKerning(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("loosenKerning:"), sender) } -// Applies full justification to selected paragraphs (or all text, if the receiver is a plain text object). [Full Topic] +// Performs the default text checking on the entire document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449515-alignjustified?language=objc -func (t_ TextView) AlignJustified(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("alignJustified:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449440-checktextindocument?language=objc +func (t_ TextView) CheckTextInDocument(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkTextInDocument:"), sender) } -// Sets the receiver to use only required ligatures when setting text, for the glyphs in the selection if the receiver is a rich text view, or for all glyphs if it’s a plain text view. [Full Topic] +// Reads the text view’s preferred type of data from the specified pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449436-turnoffligatures?language=objc -func (t_ TextView) TurnOffLigatures(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("turnOffLigatures:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449469-readselectionfrompasteboard?language=objc +func (t_ TextView) ReadSelectionFromPasteboard(pboard IPasteboard) bool { + rv := objc.Call[bool](t_, objc.Sel("readSelectionFromPasteboard:"), pboard) + return rv } -// This action method inserts the contents of the pasteboard into the receiver’s text as rich text, maintaining its attributes. [Full Topic] +// Toggles the state of the automatic text replacement. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449395-pasteasrichtext?language=objc -func (t_ TextView) PasteAsRichText(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("pasteAsRichText:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449200-toggleautomatictextreplacement?language=objc +func (t_ TextView) ToggleAutomaticTextReplacement(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticTextReplacement:"), sender) } -// Raises the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view. [Full Topic] +// Creates and displays a new instance of the sharing service picker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449198-raisebaseline?language=objc -func (t_ TextView) RaiseBaseline(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("raiseBaseline:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449150-orderfrontsharingservicepicker?language=objc +func (t_ TextView) OrderFrontSharingServicePicker(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("orderFrontSharingServicePicker:"), sender) + return rv } -// [Full Topic] +// Toggles the state of the automatic dash substitution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990527-scrollabledocumentcontenttextvie?language=objc -func (tc _TextViewClass) ScrollableDocumentContentTextView() ScrollView { - rv := objc.Call[ScrollView](tc, objc.Sel("scrollableDocumentContentTextView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449305-toggleautomaticdashsubstitution?language=objc +func (t_ TextView) ToggleAutomaticDashSubstitution(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticDashSubstitution:"), sender) +} + +// Adds the outline attribute to the selected text attributes if absent; removes the attribute if present. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449386-outline?language=objc +func (t_ TextView) Outline(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("outline:"), sender) +} + +// Inserts the contents of the pasteboard into the receiver’s text as plain text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449250-pasteasplaintext?language=objc +func (t_ TextView) PasteAsPlainText(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("pasteAsPlainText:"), sender) +} + +// Replaces text in the range you specify with the attributed string you provide. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990526-performvalidatedreplacementinran?language=objc +func (t_ TextView) PerformValidatedReplacementInRangeWithAttributedString(range_ foundation.Range, attributedString foundation.IAttributedString) bool { + rv := objc.Call[bool](t_, objc.Sel("performValidatedReplacementInRange:withAttributedString:"), range_, attributedString) return rv } -// [Full Topic] +// Changes the receiver's layout orientation and invalidates the contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990527-scrollabledocumentcontenttextvie?language=objc -func TextView_ScrollableDocumentContentTextView() ScrollView { - return TextViewClass.ScrollableDocumentContentTextView() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449483-setlayoutorientation?language=objc +func (t_ TextView) SetLayoutOrientation(orientation TextLayoutOrientation) { + objc.Call[objc.Void](t_, objc.Sel("setLayoutOrientation:"), orientation) } -// Changes the state of automatic link detection from enabled to disabled and vice versa. [Full Topic] +// Returns the type of drag operation that should be performed if the image were released now. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449353-toggleautomaticlinkdetection?language=objc -func (t_ TextView) ToggleAutomaticLinkDetection(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticLinkDetection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449176-dragoperationfordragginginfo?language=objc +func (t_ TextView) DragOperationForDraggingInfoType(dragInfo PDraggingInfo, type_ PasteboardType) DragOperation { + po0 := objc.WrapAsProtocol("NSDraggingInfo", dragInfo) + rv := objc.Call[DragOperation](t_, objc.Sel("dragOperationForDraggingInfo:type:"), po0, type_) + return rv } -// An action method used to set the background color. [Full Topic] +// Returns the type of drag operation that should be performed if the image were released now. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449475-changedocumentbackgroundcolor?language=objc -func (t_ TextView) ChangeDocumentBackgroundColor(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("changeDocumentBackgroundColor:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449176-dragoperationfordragginginfo?language=objc +func (t_ TextView) DragOperationForDraggingInfoObjectType(dragInfoObject objc.IObject, type_ PasteboardType) DragOperation { + rv := objc.Call[DragOperation](t_, objc.Sel("dragOperationForDraggingInfo:type:"), dragInfoObject, type_) + return rv } -// Brings forward a panel allowing the user to manipulate links in the text view. [Full Topic] +// Performs the default text checking on the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449238-orderfrontlinkpanel?language=objc -func (t_ TextView) OrderFrontLinkPanel(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("orderFrontLinkPanel:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449382-checktextinselection?language=objc +func (t_ TextView) CheckTextInSelection(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkTextInSelection:"), sender) } -// Changes the state of smart insert and delete from enabled to disabled and vice versa. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449273-togglesmartinsertdelete?language=objc -func (t_ TextView) ToggleSmartInsertDelete(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleSmartInsertDelete:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544834-updatetouchbaritemidentifiers?language=objc +func (t_ TextView) UpdateTouchBarItemIdentifiers() { + objc.Call[objc.Void](t_, objc.Sel("updateTouchBarItemIdentifiers")) } -// Sets the receiver to use nominal glyph spacing for the glyphs in its selection, or for all glyphs if the receiver is a plain text view. [Full Topic] +// Brings forward a panel allowing the user to manipulate text lists in the text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449464-turnoffkerning?language=objc -func (t_ TextView) TurnOffKerning(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("turnOffKerning:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449349-orderfrontlistpanel?language=objc +func (t_ TextView) OrderFrontListPanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("orderFrontListPanel:"), sender) } -// Performs the default text checking on the entire document. [Full Topic] +// Modifies the paragraph style of the paragraphs containing the selection to accommodate a new marker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449440-checktextindocument?language=objc -func (t_ TextView) CheckTextInDocument(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("checkTextInDocument:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449523-rulerview?language=objc +func (t_ TextView) RulerViewDidAddMarker(ruler IRulerView, marker IRulerMarker) { + objc.Call[objc.Void](t_, objc.Sel("rulerView:didAddMarker:"), ruler, marker) } -// Invalidates the calculated origin of the text container. [Full Topic] +// Inserts the selected completion into the text at the appropriate location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449546-invalidatetextcontainerorigin?language=objc -func (t_ TextView) InvalidateTextContainerOrigin() { - objc.Call[objc.Void](t_, objc.Sel("invalidateTextContainerOrigin")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449448-insertcompletion?language=objc +func (t_ TextView) InsertCompletionForPartialWordRangeMovementIsFinal(word string, charRange foundation.Range, movement int, flag bool) { + objc.Call[objc.Void](t_, objc.Sel("insertCompletion:forPartialWordRange:movement:isFinal:"), word, charRange, movement, flag) } -// Speaks the selected text, or all text if no selection. [Full Topic] +// Invokes completion in a text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449519-startspeaking?language=objc -func (t_ TextView) StartSpeaking(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("startSpeaking:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449359-complete?language=objc +func (t_ TextView) Complete(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("complete:"), sender) } -// Lowers the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view. [Full Topic] +// Causes the text view to act as if the user clicked on some text with the given link as the value of a link attribute associated with the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449289-lowerbaseline?language=objc -func (t_ TextView) LowerBaseline(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("lowerBaseline:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449497-clickedonlink?language=objc +func (t_ TextView) ClickedOnLinkAtIndex(link objc.IObject, charIndex uint) { + objc.Call[objc.Void](t_, objc.Sel("clickedOnLink:atIndex:"), link, charIndex) } -// Handles the text checking results returned by the text view [Full Topic] +// Applies full justification to selected paragraphs (or all text, if the receiver is a plain text object). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449473-handletextcheckingresults?language=objc -func (t_ TextView) HandleTextCheckingResultsForRangeTypesOptionsOrthographyWordCount(results []foundation.ITextCheckingResult, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, orthography foundation.IOrthography, wordCount int) { - objc.Call[objc.Void](t_, objc.Sel("handleTextCheckingResults:forRange:types:options:orthography:wordCount:"), results, range_, checkingTypes, options, orthography, wordCount) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449515-alignjustified?language=objc +func (t_ TextView) AlignJustified(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("alignJustified:"), sender) +} + +// This action method inserts the contents of the pasteboard into the receiver’s text as rich text, maintaining its attributes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449395-pasteasrichtext?language=objc +func (t_ TextView) PasteAsRichText(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("pasteAsRichText:"), sender) } -// Sets the color of the selected text. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449282-changecolor?language=objc -func (t_ TextView) ChangeColor(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("changeColor:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544833-updatecandidates?language=objc +func (t_ TextView) UpdateCandidates() { + objc.Call[objc.Void](t_, objc.Sel("updateCandidates")) } -// Sends out necessary notifications when a text change completes. [Full Topic] +// An action method that sets the layout orientation of the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449296-didchangetext?language=objc -func (t_ TextView) DidChangeText() { - objc.Call[objc.Void](t_, objc.Sel("didChangeText")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449286-changelayoutorientation?language=objc +func (t_ TextView) ChangeLayoutOrientation(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("changeLayoutOrientation:"), sender) } -// Returns an array of potential completions, in the order to be presented, representing possible word completions available from a partial word. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449405-completionsforpartialwordrange?language=objc -func (t_ TextView) CompletionsForPartialWordRangeIndexOfSelectedItem(charRange foundation.Range, index *int) []string { - rv := objc.Call[[]string](t_, objc.Sel("completionsForPartialWordRange:indexOfSelectedItem:"), charRange, index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990528-scrollableplaindocumentcontentte?language=objc +func (tc _TextViewClass) ScrollablePlainDocumentContentTextView() ScrollView { + rv := objc.Call[ScrollView](tc, objc.Sel("scrollablePlainDocumentContentTextView")) return rv } -// Informs the receiver that it should begin coalescing successive typing operations in a new undo grouping. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449384-breakundocoalescing?language=objc -func (t_ TextView) BreakUndoCoalescing() { - objc.Call[objc.Void](t_, objc.Sel("breakUndoCoalescing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990528-scrollableplaindocumentcontentte?language=objc +func TextView_ScrollablePlainDocumentContentTextView() ScrollView { + return TextViewClass.ScrollablePlainDocumentContentTextView() } -// Draws or erases the insertion point. [Full Topic] +// An action message that toggles the visibility state of the Quick Look preview panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449232-drawinsertionpointinrect?language=objc -func (t_ TextView) DrawInsertionPointInRectColorTurnedOn(rect foundation.Rect, color IColor, flag bool) { - objc.Call[objc.Void](t_, objc.Sel("drawInsertionPointInRect:color:turnedOn:"), rect, color, flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449415-togglequicklookpreviewpanel?language=objc +func (t_ TextView) ToggleQuickLookPreviewPanel(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("toggleQuickLookPreviewPanel:"), sender) + return rv } -// Changes the state of grammar checking from enabled to disabled and vice versa. [Full Topic] +// Determines whether whitespace needs to be added around the string to preserve proper spacing and punctuation when it replaces the characters in the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449393-togglegrammarchecking?language=objc -func (t_ TextView) ToggleGrammarChecking(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleGrammarChecking:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449544-smartinsertforstring?language=objc +func (t_ TextView) SmartInsertForStringReplacingRangeBeforeStringAfterString(pasteString string, charRangeToReplace foundation.Range, beforeString unsafe.Pointer, afterString unsafe.Pointer) { + objc.Call[objc.Void](t_, objc.Sel("smartInsertForString:replacingRange:beforeString:afterString:"), pasteString, charRangeToReplace, beforeString, afterString) } -// Reads the text view’s preferred type of data from the specified pasteboard. [Full Topic] +// Writes the current selection to the specified pasteboard under each given type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449469-readselectionfrompasteboard?language=objc -func (t_ TextView) ReadSelectionFromPasteboard(pboard IPasteboard) bool { - rv := objc.Call[bool](t_, objc.Sel("readSelectionFromPasteboard:"), pboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449277-writeselectiontopasteboard?language=objc +func (t_ TextView) WriteSelectionToPasteboardTypes(pboard IPasteboard, types []PasteboardType) bool { + rv := objc.Call[bool](t_, objc.Sel("writeSelectionToPasteboard:types:"), pboard, types) return rv } -// Creates and displays a new instance of the sharing service picker. [Full Topic] +// Sets the receiver to use nominal glyph spacing for the glyphs in its selection, or for all glyphs if the receiver is a plain text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449150-orderfrontsharingservicepicker?language=objc -func (t_ TextView) OrderFrontSharingServicePicker(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("orderFrontSharingServicePicker:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449464-turnoffkerning?language=objc +func (t_ TextView) TurnOffKerning(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("turnOffKerning:"), sender) } -// Returns an extended range that includes adjacent whitespace that should be deleted along with the proposed range in order to preserve proper spacing and punctuation. [Full Topic] +// An action method used to set the background color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449428-smartdeleterangeforproposedrange?language=objc -func (t_ TextView) SmartDeleteRangeForProposedRange(proposedCharRange foundation.Range) foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("smartDeleteRangeForProposedRange:"), proposedCharRange) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449475-changedocumentbackgroundcolor?language=objc +func (t_ TextView) ChangeDocumentBackgroundColor(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("changeDocumentBackgroundColor:"), sender) } -// Updates the ruler view in the receiver’s enclosing scroll view to reflect the selection’s paragraph and marker attributes. [Full Topic] +// Draws or erases the insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449323-updateruler?language=objc -func (t_ TextView) UpdateRuler() { - objc.Call[objc.Void](t_, objc.Sel("updateRuler")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449232-drawinsertionpointinrect?language=objc +func (t_ TextView) DrawInsertionPointInRectColorTurnedOn(rect foundation.Rect, color IColor, flag bool) { + objc.Call[objc.Void](t_, objc.Sel("drawInsertionPointInRect:color:turnedOn:"), rect, color, flag) } -// Increases the space between glyphs in the receiver’s selection, or in all text if the receiver is a plain text view. [Full Topic] +// Stops the speaking of text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449183-loosenkerning?language=objc -func (t_ TextView) LoosenKerning(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("loosenKerning:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449172-stopspeaking?language=objc +func (t_ TextView) StopSpeaking(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("stopSpeaking:"), sender) } -// Sets the selection to a range of characters in response to user action. [Full Topic] +// Raises the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449462-setselectedrange?language=objc -func (t_ TextView) SetSelectedRangeAffinityStillSelecting(charRange foundation.Range, affinity SelectionAffinity, stillSelectingFlag bool) { - objc.Call[objc.Void](t_, objc.Sel("setSelectedRange:affinity:stillSelecting:"), charRange, affinity, stillSelectingFlag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449198-raisebaseline?language=objc +func (t_ TextView) RaiseBaseline(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("raiseBaseline:"), sender) } -// Updates the acceptable drag types of all text views associated with the receiver's layout manager. [Full Topic] +// Sets the receiver to use only required ligatures when setting text, for the glyphs in the selection if the receiver is a rich text view, or for all glyphs if it’s a plain text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449181-updatedragtyperegistration?language=objc -func (t_ TextView) UpdateDragTypeRegistration() { - objc.Call[objc.Void](t_, objc.Sel("updateDragTypeRegistration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449436-turnoffligatures?language=objc +func (t_ TextView) TurnOffLigatures(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("turnOffLigatures:"), sender) } -// Toggles the state of the automatic text replacement. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449200-toggleautomatictextreplacement?language=objc -func (t_ TextView) ToggleAutomaticTextReplacement(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticTextReplacement:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544676-updatetexttouchbaritems?language=objc +func (t_ TextView) UpdateTextTouchBarItems() { + objc.Call[objc.Void](t_, objc.Sel("updateTextTouchBarItems")) } -// Registers send and return types for the Services facility. [Full Topic] +// Changes the state of automatic quotation mark substitution from enabled to disabled and vice versa. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449507-registerforservices?language=objc -func (tc _TextViewClass) RegisterForServices() { - objc.Call[objc.Void](tc, objc.Sel("registerForServices")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449444-toggleautomaticquotesubstitution?language=objc +func (t_ TextView) ToggleAutomaticQuoteSubstitution(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticQuoteSubstitution:"), sender) } -// Registers send and return types for the Services facility. [Full Topic] +// Lowers the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449507-registerforservices?language=objc -func TextView_RegisterForServices() { - TextViewClass.RegisterForServices() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449289-lowerbaseline?language=objc +func (t_ TextView) LowerBaseline(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("lowerBaseline:"), sender) } -// Performs a find panel action specified by the sender's tag. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449525-performfindpanelaction?language=objc -func (t_ TextView) PerformFindPanelAction(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("performFindPanelAction:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990529-scrollabletextview?language=objc +func (tc _TextViewClass) ScrollableTextView() ScrollView { + rv := objc.Call[ScrollView](tc, objc.Sel("scrollableTextView")) + return rv } -// An action method that sets the layout orientation of the text. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449286-changelayoutorientation?language=objc -func (t_ TextView) ChangeLayoutOrientation(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("changeLayoutOrientation:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990529-scrollabletextview?language=objc +func TextView_ScrollableTextView() ScrollView { + return TextViewClass.ScrollableTextView() } -// Toggles the state of the automatic dash substitution. [Full Topic] +// Updates the ruler view in the receiver’s enclosing scroll view to reflect the selection’s paragraph and marker attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449305-toggleautomaticdashsubstitution?language=objc -func (t_ TextView) ToggleAutomaticDashSubstitution(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticDashSubstitution:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449323-updateruler?language=objc +func (t_ TextView) UpdateRuler() { + objc.Call[objc.Void](t_, objc.Sel("updateRuler")) } -// Attempts to set the frame size as if by user action. [Full Topic] +// Replaces the text container for the group of text system objects containing the receiver, keeping the association between the receiver and its layout manager intact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449230-setconstrainedframesize?language=objc -func (t_ TextView) SetConstrainedFrameSize(desiredSize foundation.Size) { - objc.Call[objc.Void](t_, objc.Sel("setConstrainedFrameSize:"), desiredSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449479-replacetextcontainer?language=objc +func (t_ TextView) ReplaceTextContainer(newContainer ITextContainer) { + objc.Call[objc.Void](t_, objc.Sel("replaceTextContainer:"), newContainer) } -// Set the receiver to use pair kerning data for the glyphs in its selection, or for all glyphs if the receiver is a plain text view. [Full Topic] +// Changes the attributes of the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449491-usestandardkerning?language=objc -func (t_ TextView) UseStandardKerning(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("useStandardKerning:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449216-changeattributes?language=objc +func (t_ TextView) ChangeAttributes(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("changeAttributes:"), sender) } -// Returns a character index appropriate for placing a zero-length selection for an insertion point associated with the mouse at the given point. [Full Topic] +// Sets the base writing direction of a range of text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449505-characterindexforinsertionatpoin?language=objc -func (t_ TextView) CharacterIndexForInsertionAtPoint(point foundation.Point) uint { - rv := objc.Call[uint](t_, objc.Sel("characterIndexForInsertionAtPoint:"), point) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449146-setbasewritingdirection?language=objc +func (t_ TextView) SetBaseWritingDirectionRange(writingDirection WritingDirection, range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setBaseWritingDirection:range:"), writingDirection, range_) } -// Reads data of the given type from the specified pasteboard. [Full Topic] +// Marks the receiver as requiring display. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449190-readselectionfrompasteboard?language=objc -func (t_ TextView) ReadSelectionFromPasteboardType(pboard IPasteboard, type_ PasteboardType) bool { - rv := objc.Call[bool](t_, objc.Sel("readSelectionFromPasteboard:type:"), pboard, type_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449279-setneedsdisplayinrect?language=objc +func (t_ TextView) SetNeedsDisplayInRectAvoidAdditionalLayout(rect foundation.Rect, flag bool) { + objc.Call[objc.Void](t_, objc.Sel("setNeedsDisplayInRect:avoidAdditionalLayout:"), rect, flag) } -// [Full Topic] +// Performs a find panel action specified by the sender's tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990529-scrollabletextview?language=objc -func (tc _TextViewClass) ScrollableTextView() ScrollView { - rv := objc.Call[ScrollView](tc, objc.Sel("scrollableTextView")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449525-performfindpanelaction?language=objc +func (t_ TextView) PerformFindPanelAction(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("performFindPanelAction:"), sender) } -// [Full Topic] +// Updates the Font panel to contain the font attributes of the selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990529-scrollabletextview?language=objc -func TextView_ScrollableTextView() ScrollView { - return TextViewClass.ScrollableTextView() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449401-updatefontpanel?language=objc +func (t_ TextView) UpdateFontPanel() { + objc.Call[objc.Void](t_, objc.Sel("updateFontPanel")) } -// Brings forward a panel allowing the user to manipulate text lists in the text view. [Full Topic] +// Returns an extended range that includes adjacent whitespace that should be deleted along with the proposed range in order to preserve proper spacing and punctuation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449349-orderfrontlistpanel?language=objc -func (t_ TextView) OrderFrontListPanel(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("orderFrontListPanel:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449428-smartdeleterangeforproposedrange?language=objc +func (t_ TextView) SmartDeleteRangeForProposedRange(proposedCharRange foundation.Range) foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("smartDeleteRangeForProposedRange:"), proposedCharRange) + return rv } -// [Full Topic] +// Registers send and return types for the Services facility. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544841-toggleautomatictextcompletion?language=objc -func (t_ TextView) ToggleAutomaticTextCompletion(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("toggleAutomaticTextCompletion:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449507-registerforservices?language=objc +func (tc _TextViewClass) RegisterForServices() { + objc.Call[objc.Void](tc, objc.Sel("registerForServices")) } -// Begins dragging the current selected text range. [Full Topic] +// Registers send and return types for the Services facility. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449413-dragselectionwithevent?language=objc -func (t_ TextView) DragSelectionWithEventOffsetSlideBack(event IEvent, mouseOffset foundation.Size, slideBack bool) bool { - rv := objc.Call[bool](t_, objc.Sel("dragSelectionWithEvent:offset:slideBack:"), event, mouseOffset, slideBack) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449507-registerforservices?language=objc +func TextView_RegisterForServices() { + TextViewClass.RegisterForServices() } -// Changes the attributes of the current selection. [Full Topic] +// Changes the state of grammar checking from enabled to disabled and vice versa. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449216-changeattributes?language=objc -func (t_ TextView) ChangeAttributes(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("changeAttributes:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449393-togglegrammarchecking?language=objc +func (t_ TextView) ToggleGrammarChecking(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleGrammarChecking:"), sender) } -// Sets the selection to the characters in an array of ranges in response to user action. [Full Topic] +// Releases the drag information still existing after the dragging session has completed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449208-setselectedranges?language=objc -func (t_ TextView) SetSelectedRangesAffinityStillSelecting(ranges []foundation.IValue, affinity SelectionAffinity, stillSelectingFlag bool) { - objc.Call[objc.Void](t_, objc.Sel("setSelectedRanges:affinity:stillSelecting:"), ranges, affinity, stillSelectingFlag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449202-cleanupafterdragoperation?language=objc +func (t_ TextView) CleanUpAfterDragOperation() { + objc.Call[objc.Void](t_, objc.Sel("cleanUpAfterDragOperation")) } -// Inserts the contents of the pasteboard into the receiver’s text as plain text. [Full Topic] +// Returns a character index appropriate for placing a zero-length selection for an insertion point associated with the mouse at the given point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449250-pasteasplaintext?language=objc -func (t_ TextView) PasteAsPlainText(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("pasteAsPlainText:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449505-characterindexforinsertionatpoin?language=objc +func (t_ TextView) CharacterIndexForInsertionAtPoint(point foundation.Point) uint { + rv := objc.Call[uint](t_, objc.Sel("characterIndexForInsertionAtPoint:"), point) + return rv } -// Returns an adjusted selected range based on the selection granularity. [Full Topic] +// Updates the insertion point’s location and optionally restarts the blinking cursor timer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449188-selectionrangeforproposedrange?language=objc -func (t_ TextView) SelectionRangeForProposedRangeGranularity(proposedCharRange foundation.Range, granularity SelectionGranularity) foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("selectionRangeForProposedRange:granularity:"), proposedCharRange, granularity) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449268-updateinsertionpointstateandrest?language=objc +func (t_ TextView) UpdateInsertionPointStateAndRestartTimer(restartFlag bool) { + objc.Call[objc.Void](t_, objc.Sel("updateInsertionPointStateAndRestartTimer:"), restartFlag) } -// An action message that toggles the visibility state of the Quick Look preview panel. [Full Topic] +// The manager that lays out text for the receiver’s text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449415-togglequicklookpreviewpanel?language=objc -func (t_ TextView) ToggleQuickLookPreviewPanel(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("toggleQuickLookPreviewPanel:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/3824763-textlayoutmanager?language=objc +func (t_ TextView) TextLayoutManager() TextLayoutManager { + rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) return rv } -// Causes the text view to act as if the user clicked on some text with the given link as the value of a link attribute associated with the text. [Full Topic] +// The receiver’s default paragraph style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449497-clickedonlink?language=objc -func (t_ TextView) ClickedOnLinkAtIndex(link objc.IObject, charIndex uint) { - objc.Call[objc.Void](t_, objc.Sel("clickedOnLink:atIndex:"), link, charIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449271-defaultparagraphstyle?language=objc +func (t_ TextView) DefaultParagraphStyle() ParagraphStyle { + rv := objc.Call[ParagraphStyle](t_, objc.Sel("defaultParagraphStyle")) + return rv } -// Replaces text in the range you specify with the attributed string you provide. [Full Topic] +// The receiver’s default paragraph style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990526-performvalidatedreplacementinran?language=objc -func (t_ TextView) PerformValidatedReplacementInRangeWithAttributedString(range_ foundation.Range, attributedString foundation.IAttributedString) bool { - rv := objc.Call[bool](t_, objc.Sel("performValidatedReplacementInRange:withAttributedString:"), range_, attributedString) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449271-defaultparagraphstyle?language=objc +func (t_ TextView) SetDefaultParagraphStyle(value IParagraphStyle) { + objc.Call[objc.Void](t_, objc.Sel("setDefaultParagraphStyle:"), value) } -// Returns any whitespace that needs to be added before the string to preserve proper spacing and punctuation when the string replaces the characters in the specified range. [Full Topic] +// A Boolean value that enables or disables automatic link detection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449242-smartinsertbeforestringforstring?language=objc -func (t_ TextView) SmartInsertBeforeStringForStringReplacingRange(pasteString string, charRangeToReplace foundation.Range) string { - rv := objc.Call[string](t_, objc.Sel("smartInsertBeforeStringForString:replacingRange:"), pasteString, charRangeToReplace) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449170-automaticlinkdetectionenabled?language=objc +func (t_ TextView) IsAutomaticLinkDetectionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticLinkDetectionEnabled")) return rv } -// Returns an array of URLs for items that can be displayed by QuickLook in the specified ranges. [Full Topic] +// A Boolean value that enables or disables automatic link detection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449426-quicklookpreviewableitemsinrange?language=objc -func (t_ TextView) QuickLookPreviewableItemsInRanges(ranges []foundation.IValue) []objc.Object { - rv := objc.Call[[]objc.Object](t_, objc.Sel("quickLookPreviewableItemsInRanges:"), ranges) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449170-automaticlinkdetectionenabled?language=objc +func (t_ TextView) SetAutomaticLinkDetectionEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticLinkDetectionEnabled:"), value) } -// Sets the base writing direction of a range of text. [Full Topic] +// Indicates whether image attachments should permit editing of their images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449146-setbasewritingdirection?language=objc -func (t_ TextView) SetBaseWritingDirectionRange(writingDirection WritingDirection, range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setBaseWritingDirection:range:"), writingDirection, range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449425-allowsimageediting?language=objc +func (t_ TextView) AllowsImageEditing() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsImageEditing")) + return rv } -// [Full Topic] +// Indicates whether image attachments should permit editing of their images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544676-updatetexttouchbaritems?language=objc -func (t_ TextView) UpdateTextTouchBarItems() { - objc.Call[objc.Void](t_, objc.Sel("updateTextTouchBarItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449425-allowsimageediting?language=objc +func (t_ TextView) SetAllowsImageEditing(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsImageEditing:"), value) } -// Initiates a series of delegate messages (and general notifications) to determine whether modifications can be made to the characters and attributes of the receiver’s text. [Full Topic] +// A Boolean value that indicates whether the framework should use adaptive color mapping for dark appearance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449311-shouldchangetextinranges?language=objc -func (t_ TextView) ShouldChangeTextInRangesReplacementStrings(affectedRanges []foundation.IValue, replacementStrings []string) bool { - rv := objc.Call[bool](t_, objc.Sel("shouldChangeTextInRanges:replacementStrings:"), affectedRanges, replacementStrings) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/3237223-usesadaptivecolormappingfordarka?language=objc +func (t_ TextView) UsesAdaptiveColorMappingForDarkAppearance() bool { + rv := objc.Call[bool](t_, objc.Sel("usesAdaptiveColorMappingForDarkAppearance")) return rv } -// Updates the Font panel to contain the font attributes of the selection. [Full Topic] +// A Boolean value that indicates whether the framework should use adaptive color mapping for dark appearance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449401-updatefontpanel?language=objc -func (t_ TextView) UpdateFontPanel() { - objc.Call[objc.Void](t_, objc.Sel("updateFontPanel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/3237223-usesadaptivecolormappingfordarka?language=objc +func (t_ TextView) SetUsesAdaptiveColorMappingForDarkAppearance(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesAdaptiveColorMappingForDarkAppearance:"), value) } -// Sets the receiver to use the standard ligatures available for the fonts and languages used when setting text, for the glyphs in the selection if the receiver is a rich text view, or for all glyphs if it’s a plain text view. [Full Topic] +// A Boolean value that indicates whether automatic text replacement is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449144-usestandardligatures?language=objc -func (t_ TextView) UseStandardLigatures(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("useStandardLigatures:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449210-automatictextreplacementenabled?language=objc +func (t_ TextView) IsAutomaticTextReplacementEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticTextReplacementEnabled")) + return rv } -// Replaces the text container for the group of text system objects containing the receiver, keeping the association between the receiver and its layout manager intact. [Full Topic] +// A Boolean value that indicates whether automatic text replacement is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449479-replacetextcontainer?language=objc -func (t_ TextView) ReplaceTextContainer(newContainer ITextContainer) { - objc.Call[objc.Void](t_, objc.Sel("replaceTextContainer:"), newContainer) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449210-automatictextreplacementenabled?language=objc +func (t_ TextView) SetAutomaticTextReplacementEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticTextReplacementEnabled:"), value) } -// Releases the drag information still existing after the dragging session has completed. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449202-cleanupafterdragoperation?language=objc -func (t_ TextView) CleanUpAfterDragOperation() { - objc.Call[objc.Void](t_, objc.Sel("cleanUpAfterDragOperation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449357-usesrolloverbuttonforselection?language=objc +func (t_ TextView) UsesRolloverButtonForSelection() bool { + rv := objc.Call[bool](t_, objc.Sel("usesRolloverButtonForSelection")) + return rv } -// Brings forward a panel allowing the user to specify string substitutions in the text view. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449327-orderfrontsubstitutionspanel?language=objc -func (t_ TextView) OrderFrontSubstitutionsPanel(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("orderFrontSubstitutionsPanel:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449357-usesrolloverbuttonforselection?language=objc +func (t_ TextView) SetUsesRolloverButtonForSelection(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesRolloverButtonForSelection:"), value) } -// Adds the outline attribute to the selected text attributes if absent; removes the attribute if present. [Full Topic] +// A Boolean value that determines whether the receiver should draw its insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449386-outline?language=objc -func (t_ TextView) Outline(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("outline:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449152-shoulddrawinsertionpoint?language=objc +func (t_ TextView) ShouldDrawInsertionPoint() bool { + rv := objc.Call[bool](t_, objc.Sel("shouldDrawInsertionPoint")) + return rv } -// Enables and disables grammar checking. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449166-grammarcheckingenabled?language=objc -func (t_ TextView) IsGrammarCheckingEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isGrammarCheckingEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2269433-stronglyreferencestextstorage?language=objc +func (tc _TextViewClass) StronglyReferencesTextStorage() bool { + rv := objc.Call[bool](tc, objc.Sel("stronglyReferencesTextStorage")) return rv } -// Enables and disables grammar checking. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449166-grammarcheckingenabled?language=objc -func (t_ TextView) SetGrammarCheckingEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setGrammarCheckingEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2269433-stronglyreferencestextstorage?language=objc +func TextView_StronglyReferencesTextStorage() bool { + return TextViewClass.StronglyReferencesTextStorage() } -// A Boolean value that indicates whether automatic text replacement is enabled. [Full Topic] +// A Boolean value that enables and disables automatic quotation mark substitution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449210-automatictextreplacementenabled?language=objc -func (t_ TextView) IsAutomaticTextReplacementEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isAutomaticTextReplacementEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449258-automaticquotesubstitutionenable?language=objc +func (t_ TextView) IsAutomaticQuoteSubstitutionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticQuoteSubstitutionEnabled")) return rv } -// A Boolean value that indicates whether automatic text replacement is enabled. [Full Topic] +// A Boolean value that enables and disables automatic quotation mark substitution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449210-automatictextreplacementenabled?language=objc -func (t_ TextView) SetAutomaticTextReplacementEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticTextReplacementEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449258-automaticquotesubstitutionenable?language=objc +func (t_ TextView) SetAutomaticQuoteSubstitutionEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticQuoteSubstitutionEnabled:"), value) +} + +// A tag identifying the text view's text as a document for the spell checker server. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449513-spellcheckerdocumenttag?language=objc +func (t_ TextView) SpellCheckerDocumentTag() int { + rv := objc.Call[int](t_, objc.Sel("spellCheckerDocumentTag")) + return rv } // The range of characters affected by an action method that changes paragraph (not character) attributes. [Full Topic] @@ -1008,90 +1100,97 @@ func (t_ TextView) RangeForUserParagraphAttributeChange() foundation.Range { return rv } -// The attributes used to draw the onscreen presentation of link text. [Full Topic] +// The color of the insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449452-linktextattributes?language=objc -func (t_ TextView) LinkTextAttributes() map[foundation.AttributedStringKey]objc.Object { - rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("linkTextAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449309-insertionpointcolor?language=objc +func (t_ TextView) InsertionPointColor() Color { + rv := objc.Call[Color](t_, objc.Sel("insertionPointColor")) return rv } -// The attributes used to draw the onscreen presentation of link text. [Full Topic] +// The color of the insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449452-linktextattributes?language=objc -func (t_ TextView) SetLinkTextAttributes(value map[foundation.AttributedStringKey]objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setLinkTextAttributes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449309-insertionpointcolor?language=objc +func (t_ TextView) SetInsertionPointColor(value IColor) { + objc.Call[objc.Void](t_, objc.Sel("setInsertionPointColor:"), value) } -// An array containing the ranges of characters affected by a method that changes paragraph (not character) attributes. [Full Topic] +// The default text checking types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449161-rangesforuserparagraphattributec?language=objc -func (t_ TextView) RangesForUserParagraphAttributeChange() []foundation.Value { - rv := objc.Call[[]foundation.Value](t_, objc.Sel("rangesForUserParagraphAttributeChange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449529-enabledtextcheckingtypes?language=objc +func (t_ TextView) EnabledTextCheckingTypes() foundation.TextCheckingTypes { + rv := objc.Call[foundation.TextCheckingTypes](t_, objc.Sel("enabledTextCheckingTypes")) return rv } -// The selection granularity for subsequent extension of a selection. [Full Topic] +// The default text checking types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449165-selectiongranularity?language=objc -func (t_ TextView) SelectionGranularity() SelectionGranularity { - rv := objc.Call[SelectionGranularity](t_, objc.Sel("selectionGranularity")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449529-enabledtextcheckingtypes?language=objc +func (t_ TextView) SetEnabledTextCheckingTypes(value foundation.TextCheckingTypes) { + objc.Call[objc.Void](t_, objc.Sel("setEnabledTextCheckingTypes:"), value) } -// The selection granularity for subsequent extension of a selection. [Full Topic] +// The range of characters affected by a method that changes characters (as opposed to attributes). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449165-selectiongranularity?language=objc -func (t_ TextView) SetSelectionGranularity(value SelectionGranularity) { - objc.Call[objc.Void](t_, objc.Sel("setSelectionGranularity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449315-rangeforusertextchange?language=objc +func (t_ TextView) RangeForUserTextChange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("rangeForUserTextChange")) + return rv } -// The manager that lays out text for the receiver’s text container. [Full Topic] +// The attributes used to indicate the selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/3824763-textlayoutmanager?language=objc -func (t_ TextView) TextLayoutManager() TextLayoutManager { - rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449270-selectedtextattributes?language=objc +func (t_ TextView) SelectedTextAttributes() map[foundation.AttributedStringKey]objc.Object { + rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("selectedTextAttributes")) return rv } -// The receiver’s default paragraph style. [Full Topic] +// The attributes used to indicate the selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449271-defaultparagraphstyle?language=objc -func (t_ TextView) DefaultParagraphStyle() ParagraphStyle { - rv := objc.Call[ParagraphStyle](t_, objc.Sel("defaultParagraphStyle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449270-selectedtextattributes?language=objc +func (t_ TextView) SetSelectedTextAttributes(value map[foundation.AttributedStringKey]objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setSelectedTextAttributes:"), value) } -// The receiver’s default paragraph style. [Full Topic] +// A Boolean value that indicates whether the text view supplies autocompletion suggestions as the user types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449271-defaultparagraphstyle?language=objc -func (t_ TextView) SetDefaultParagraphStyle(value IParagraphStyle) { - objc.Call[objc.Void](t_, objc.Sel("setDefaultParagraphStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544655-automatictextcompletionenabled?language=objc +func (t_ TextView) IsAutomaticTextCompletionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticTextCompletionEnabled")) + return rv } -// A Boolean value that indicates whether the text view automatically supplies the destination of a link as a tooltip for text that has a link attribute. [Full Topic] +// A Boolean value that indicates whether the text view supplies autocompletion suggestions as the user types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449204-displayslinktooltips?language=objc -func (t_ TextView) DisplaysLinkToolTips() bool { - rv := objc.Call[bool](t_, objc.Sel("displaysLinkToolTips")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544655-automatictextcompletionenabled?language=objc +func (t_ TextView) SetAutomaticTextCompletionEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticTextCompletionEnabled:"), value) } -// A Boolean value that indicates whether the text view automatically supplies the destination of a link as a tooltip for text that has a link attribute. [Full Topic] +// The pasteboard types that can be provided from the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449204-displayslinktooltips?language=objc -func (t_ TextView) SetDisplaysLinkToolTips(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setDisplaysLinkToolTips:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449222-writablepasteboardtypes?language=objc +func (t_ TextView) WritablePasteboardTypes() []PasteboardType { + rv := objc.Call[[]PasteboardType](t_, objc.Sel("writablePasteboardTypes")) + return rv } -// The types this text view can read immediately from the pasteboard. [Full Topic] +// The empty space the receiver leaves around its associated text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449361-readablepasteboardtypes?language=objc -func (t_ TextView) ReadablePasteboardTypes() []PasteboardType { - rv := objc.Call[[]PasteboardType](t_, objc.Sel("readablePasteboardTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449168-textcontainerinset?language=objc +func (t_ TextView) TextContainerInset() foundation.Size { + rv := objc.Call[foundation.Size](t_, objc.Sel("textContainerInset")) return rv } +// The empty space the receiver leaves around its associated text container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449168-textcontainerinset?language=objc +func (t_ TextView) SetTextContainerInset(value foundation.Size) { + objc.Call[objc.Void](t_, objc.Sel("setTextContainerInset:"), value) +} + // A Boolean value that indicates whether undo coalescing is in progress. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449368-coalescingundo?language=objc @@ -1100,141 +1199,117 @@ func (t_ TextView) IsCoalescingUndo() bool { return rv } -// Indicates whether image attachments should permit editing of their images. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449425-allowsimageediting?language=objc -func (t_ TextView) AllowsImageEditing() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsImageEditing")) - return rv -} - -// Indicates whether image attachments should permit editing of their images. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449425-allowsimageediting?language=objc -func (t_ TextView) SetAllowsImageEditing(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsImageEditing:"), value) -} - -// A Boolean value that indicates whether to use the find bar for this text view. [Full Topic] +// An array of locale identifiers representing input sources that are allowed to be enabled when the receiver has the keyboard focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449456-usesfindbar?language=objc -func (t_ TextView) UsesFindBar() bool { - rv := objc.Call[bool](t_, objc.Sel("usesFindBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449370-allowedinputsourcelocales?language=objc +func (t_ TextView) AllowedInputSourceLocales() []string { + rv := objc.Call[[]string](t_, objc.Sel("allowedInputSourceLocales")) return rv } -// A Boolean value that indicates whether to use the find bar for this text view. [Full Topic] +// An array of locale identifiers representing input sources that are allowed to be enabled when the receiver has the keyboard focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449456-usesfindbar?language=objc -func (t_ TextView) SetUsesFindBar(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesFindBar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449370-allowedinputsourcelocales?language=objc +func (t_ TextView) SetAllowedInputSourceLocales(value []string) { + objc.Call[objc.Void](t_, objc.Sel("setAllowedInputSourceLocales:"), value) } -// The pasteboard types that can be provided from the current selection. [Full Topic] +// An array containing the ranges of characters affected by a method that changes paragraph (not character) attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449222-writablepasteboardtypes?language=objc -func (t_ TextView) WritablePasteboardTypes() []PasteboardType { - rv := objc.Call[[]PasteboardType](t_, objc.Sel("writablePasteboardTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449161-rangesforuserparagraphattributec?language=objc +func (t_ TextView) RangesForUserParagraphAttributeChange() []foundation.Value { + rv := objc.Call[[]foundation.Value](t_, objc.Sel("rangesForUserParagraphAttributeChange")) return rv } -// The range of characters affected by a method that changes characters (as opposed to attributes). [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449315-rangeforusertextchange?language=objc -func (t_ TextView) RangeForUserTextChange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("rangeForUserTextChange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544680-allowscharacterpickertouchbarite?language=objc +func (t_ TextView) AllowsCharacterPickerTouchBarItem() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsCharacterPickerTouchBarItem")) return rv } -// The layout manager that lays out text for the receiver’s text container. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449148-layoutmanager?language=objc -func (t_ TextView) LayoutManager() LayoutManager { - rv := objc.Call[LayoutManager](t_, objc.Sel("layoutManager")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544680-allowscharacterpickertouchbarite?language=objc +func (t_ TextView) SetAllowsCharacterPickerTouchBarItem(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsCharacterPickerTouchBarItem:"), value) } -// The default text checking types. [Full Topic] +// The receiver’s text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449529-enabledtextcheckingtypes?language=objc -func (t_ TextView) EnabledTextCheckingTypes() foundation.TextCheckingTypes { - rv := objc.Call[foundation.TextCheckingTypes](t_, objc.Sel("enabledTextCheckingTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449364-textcontainer?language=objc +func (t_ TextView) TextContainer() TextContainer { + rv := objc.Call[TextContainer](t_, objc.Sel("textContainer")) return rv } -// The default text checking types. [Full Topic] +// The receiver’s text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449529-enabledtextcheckingtypes?language=objc -func (t_ TextView) SetEnabledTextCheckingTypes(value foundation.TextCheckingTypes) { - objc.Call[objc.Void](t_, objc.Sel("setEnabledTextCheckingTypes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449364-textcontainer?language=objc +func (t_ TextView) SetTextContainer(value ITextContainer) { + objc.Call[objc.Void](t_, objc.Sel("setTextContainer:"), value) } -// A Boolean value that indicates whether the framework should use adaptive color mapping for dark appearance. [Full Topic] +// A Boolean value that indicates whether the receiver accepts the glyph info attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/3237223-usesadaptivecolormappingfordarka?language=objc -func (t_ TextView) UsesAdaptiveColorMappingForDarkAppearance() bool { - rv := objc.Call[bool](t_, objc.Sel("usesAdaptiveColorMappingForDarkAppearance")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449163-acceptsglyphinfo?language=objc +func (t_ TextView) AcceptsGlyphInfo() bool { + rv := objc.Call[bool](t_, objc.Sel("acceptsGlyphInfo")) return rv } -// A Boolean value that indicates whether the framework should use adaptive color mapping for dark appearance. [Full Topic] +// A Boolean value that indicates whether the receiver accepts the glyph info attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/3237223-usesadaptivecolormappingfordarka?language=objc -func (t_ TextView) SetUsesAdaptiveColorMappingForDarkAppearance(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesAdaptiveColorMappingForDarkAppearance:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449163-acceptsglyphinfo?language=objc +func (t_ TextView) SetAcceptsGlyphInfo(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAcceptsGlyphInfo:"), value) } -// A tag identifying the text view's text as a document for the spell checker server. [Full Topic] +// A Boolean value that indicates whether the receiver allows for a find panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449513-spellcheckerdocumenttag?language=objc -func (t_ TextView) SpellCheckerDocumentTag() int { - rv := objc.Call[int](t_, objc.Sel("spellCheckerDocumentTag")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449293-usesfindpanel?language=objc +func (t_ TextView) UsesFindPanel() bool { + rv := objc.Call[bool](t_, objc.Sel("usesFindPanel")) return rv } -// The partial range from the most recent beginning of a word up to the insertion point. [Full Topic] +// A Boolean value that indicates whether the receiver allows for a find panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449329-rangeforusercompletion?language=objc -func (t_ TextView) RangeForUserCompletion() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("rangeForUserCompletion")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449293-usesfindpanel?language=objc +func (t_ TextView) SetUsesFindPanel(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesFindPanel:"), value) } -// A Boolean value that indicates whether automatic data detection is enabled. [Full Topic] +// A Boolean value that indicates whether automatic dash substitution is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449192-automaticdatadetectionenabled?language=objc -func (t_ TextView) IsAutomaticDataDetectionEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isAutomaticDataDetectionEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449403-automaticdashsubstitutionenabled?language=objc +func (t_ TextView) IsAutomaticDashSubstitutionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticDashSubstitutionEnabled")) return rv } -// A Boolean value that indicates whether automatic data detection is enabled. [Full Topic] +// A Boolean value that indicates whether automatic dash substitution is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449192-automaticdatadetectionenabled?language=objc -func (t_ TextView) SetAutomaticDataDetectionEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticDataDetectionEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449403-automaticdashsubstitutionenabled?language=objc +func (t_ TextView) SetAutomaticDashSubstitutionEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticDashSubstitutionEnabled:"), value) } -// The attributes used to indicate the selection. [Full Topic] +// The partial range from the most recent beginning of a word up to the insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449270-selectedtextattributes?language=objc -func (t_ TextView) SelectedTextAttributes() map[foundation.AttributedStringKey]objc.Object { - rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("selectedTextAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449329-rangeforusercompletion?language=objc +func (t_ TextView) RangeForUserCompletion() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("rangeForUserCompletion")) return rv } -// The attributes used to indicate the selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449270-selectedtextattributes?language=objc -func (t_ TextView) SetSelectedTextAttributes(value map[foundation.AttributedStringKey]objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setSelectedTextAttributes:"), value) -} - -// A Boolean value that determines whether the receiver should draw its insertion point. [Full Topic] +// The layout manager that lays out text for the receiver’s text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449152-shoulddrawinsertionpoint?language=objc -func (t_ TextView) ShouldDrawInsertionPoint() bool { - rv := objc.Call[bool](t_, objc.Sel("shouldDrawInsertionPoint")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449148-layoutmanager?language=objc +func (t_ TextView) LayoutManager() LayoutManager { + rv := objc.Call[LayoutManager](t_, objc.Sel("layoutManager")) return rv } @@ -1253,67 +1328,59 @@ func (t_ TextView) SetSmartInsertDeleteEnabled(value bool) { objc.Call[objc.Void](t_, objc.Sel("setSmartInsertDeleteEnabled:"), value) } -// [Full Topic] +// A Boolean value that indicates whether incremental searching is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544680-allowscharacterpickertouchbarite?language=objc -func (t_ TextView) AllowsCharacterPickerTouchBarItem() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsCharacterPickerTouchBarItem")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449458-incrementalsearchingenabled?language=objc +func (t_ TextView) IsIncrementalSearchingEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isIncrementalSearchingEnabled")) return rv } -// [Full Topic] +// A Boolean value that indicates whether incremental searching is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544680-allowscharacterpickertouchbarite?language=objc -func (t_ TextView) SetAllowsCharacterPickerTouchBarItem(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsCharacterPickerTouchBarItem:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449458-incrementalsearchingenabled?language=objc +func (t_ TextView) SetIncrementalSearchingEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setIncrementalSearchingEnabled:"), value) } -// The receiver’s typing attributes. [Full Topic] +// A Boolean value that controls whether the text views sharing the receiver’s layout manager use a ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449487-typingattributes?language=objc -func (t_ TextView) TypingAttributes() map[foundation.AttributedStringKey]objc.Object { - rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("typingAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449218-usesruler?language=objc +func (t_ TextView) UsesRuler() bool { + rv := objc.Call[bool](t_, objc.Sel("usesRuler")) return rv } -// The receiver’s typing attributes. [Full Topic] +// A Boolean value that controls whether the text views sharing the receiver’s layout manager use a ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449487-typingattributes?language=objc -func (t_ TextView) SetTypingAttributes(value map[foundation.AttributedStringKey]objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setTypingAttributes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449218-usesruler?language=objc +func (t_ TextView) SetUsesRuler(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesRuler:"), value) } -// An array containing the ranges of characters affected by an action method that changes character (not paragraph) attributes. [Full Topic] +// A Boolean value that indicates whether automatic data detection is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449503-rangesforusercharacterattributec?language=objc -func (t_ TextView) RangesForUserCharacterAttributeChange() []foundation.Value { - rv := objc.Call[[]foundation.Value](t_, objc.Sel("rangesForUserCharacterAttributeChange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449192-automaticdatadetectionenabled?language=objc +func (t_ TextView) IsAutomaticDataDetectionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticDataDetectionEnabled")) return rv } -// The data types that the receiver accepts as the destination view of a dragging operation. [Full Topic] +// A Boolean value that indicates whether automatic data detection is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449234-acceptabledragtypes?language=objc -func (t_ TextView) AcceptableDragTypes() []PasteboardType { - rv := objc.Call[[]PasteboardType](t_, objc.Sel("acceptableDragTypes")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449192-automaticdatadetectionenabled?language=objc +func (t_ TextView) SetAutomaticDataDetectionEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticDataDetectionEnabled:"), value) } -// A Boolean value that controls whether the text views sharing the receiver’s layout manager use a ruler. [Full Topic] +// An array containing the ranges of characters affected by an action method that changes character (not paragraph) attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449218-usesruler?language=objc -func (t_ TextView) UsesRuler() bool { - rv := objc.Call[bool](t_, objc.Sel("usesRuler")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449503-rangesforusercharacterattributec?language=objc +func (t_ TextView) RangesForUserCharacterAttributeChange() []foundation.Value { + rv := objc.Call[[]foundation.Value](t_, objc.Sel("rangesForUserCharacterAttributeChange")) return rv } -// A Boolean value that controls whether the text views sharing the receiver’s layout manager use a ruler. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449218-usesruler?language=objc -func (t_ TextView) SetUsesRuler(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesRuler:"), value) -} - // The range of characters affected by an action method that changes character (not paragraph) attributes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449392-rangeforusercharacterattributech?language=objc @@ -1322,56 +1389,57 @@ func (t_ TextView) RangeForUserCharacterAttributeChange() foundation.Range { return rv } -// The color of the insertion point. [Full Topic] +// A Boolean value that indicates whether the text view automatically supplies the destination of a link as a tooltip for text that has a link attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449309-insertionpointcolor?language=objc -func (t_ TextView) InsertionPointColor() Color { - rv := objc.Call[Color](t_, objc.Sel("insertionPointColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449204-displayslinktooltips?language=objc +func (t_ TextView) DisplaysLinkToolTips() bool { + rv := objc.Call[bool](t_, objc.Sel("displaysLinkToolTips")) return rv } -// The color of the insertion point. [Full Topic] +// A Boolean value that indicates whether the text view automatically supplies the destination of a link as a tooltip for text that has a link attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449309-insertionpointcolor?language=objc -func (t_ TextView) SetInsertionPointColor(value IColor) { - objc.Call[objc.Void](t_, objc.Sel("setInsertionPointColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449204-displayslinktooltips?language=objc +func (t_ TextView) SetDisplaysLinkToolTips(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setDisplaysLinkToolTips:"), value) } -// A Boolean value that indicates whether the text view supplies autocompletion suggestions as the user types. [Full Topic] +// A Boolean value that controls whether the scroll view enclosing text views sharing the receiver’s layout manager displays the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544655-automatictextcompletionenabled?language=objc -func (t_ TextView) IsAutomaticTextCompletionEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isAutomaticTextCompletionEnabled")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449406-rulervisible?language=objc +func (t_ TextView) SetRulerVisible(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setRulerVisible:"), value) } -// A Boolean value that indicates whether the text view supplies autocompletion suggestions as the user types. [Full Topic] +// A Boolean value that indicates whether the receiver has continuous spell checking enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2544655-automatictextcompletionenabled?language=objc -func (t_ TextView) SetAutomaticTextCompletionEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticTextCompletionEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449430-continuousspellcheckingenabled?language=objc +func (t_ TextView) IsContinuousSpellCheckingEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isContinuousSpellCheckingEnabled")) + return rv } -// A Boolean value that indicates whether automatic spelling correction is enabled. [Full Topic] +// A Boolean value that indicates whether the receiver has continuous spell checking enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449254-automaticspellingcorrectionenabl?language=objc -func (t_ TextView) IsAutomaticSpellingCorrectionEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isAutomaticSpellingCorrectionEnabled")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449430-continuousspellcheckingenabled?language=objc +func (t_ TextView) SetContinuousSpellCheckingEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setContinuousSpellCheckingEnabled:"), value) } -// A Boolean value that indicates whether automatic spelling correction is enabled. [Full Topic] +// An array containing the ranges of characters affected by a method that changes characters (as opposed to attributes). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449254-automaticspellingcorrectionenabl?language=objc -func (t_ TextView) SetAutomaticSpellingCorrectionEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticSpellingCorrectionEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449434-rangesforusertextchange?language=objc +func (t_ TextView) RangesForUserTextChange() []foundation.Value { + rv := objc.Call[[]foundation.Value](t_, objc.Sel("rangesForUserTextChange")) + return rv } -// A Boolean value that controls whether the scroll view enclosing text views sharing the receiver’s layout manager displays the ruler. [Full Topic] +// The types this text view can read immediately from the pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449406-rulervisible?language=objc -func (t_ TextView) SetRulerVisible(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setRulerVisible:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449361-readablepasteboardtypes?language=objc +func (t_ TextView) ReadablePasteboardTypes() []PasteboardType { + rv := objc.Call[[]PasteboardType](t_, objc.Sel("readablePasteboardTypes")) + return rv } // An array containing the ranges of characters selected in the receiver’s layout manager. [Full Topic] @@ -1397,87 +1465,87 @@ func (t_ TextView) TextStorage() TextStorage { return rv } -// A Boolean value that indicates whether the receiver has continuous spell checking enabled. [Full Topic] +// A Boolean value that indicates whether the receiver allows its background color to change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449430-continuousspellcheckingenabled?language=objc -func (t_ TextView) IsContinuousSpellCheckingEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isContinuousSpellCheckingEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449397-allowsdocumentbackgroundcolorcha?language=objc +func (t_ TextView) AllowsDocumentBackgroundColorChange() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsDocumentBackgroundColorChange")) return rv } -// A Boolean value that indicates whether the receiver has continuous spell checking enabled. [Full Topic] +// A Boolean value that indicates whether the receiver allows its background color to change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449430-continuousspellcheckingenabled?language=objc -func (t_ TextView) SetContinuousSpellCheckingEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setContinuousSpellCheckingEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449397-allowsdocumentbackgroundcolorcha?language=objc +func (t_ TextView) SetAllowsDocumentBackgroundColorChange(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsDocumentBackgroundColorChange:"), value) } -// A Boolean value that indicates whether the receiver allows for a find panel. [Full Topic] +// The receiver’s typing attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449293-usesfindpanel?language=objc -func (t_ TextView) UsesFindPanel() bool { - rv := objc.Call[bool](t_, objc.Sel("usesFindPanel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449487-typingattributes?language=objc +func (t_ TextView) TypingAttributes() map[foundation.AttributedStringKey]objc.Object { + rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("typingAttributes")) return rv } -// A Boolean value that indicates whether the receiver allows for a find panel. [Full Topic] +// The receiver’s typing attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449293-usesfindpanel?language=objc -func (t_ TextView) SetUsesFindPanel(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesFindPanel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449487-typingattributes?language=objc +func (t_ TextView) SetTypingAttributes(value map[foundation.AttributedStringKey]objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setTypingAttributes:"), value) } -// An array containing the ranges of characters affected by a method that changes characters (as opposed to attributes). [Full Topic] +// The preferred direction of selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449434-rangesforusertextchange?language=objc -func (t_ TextView) RangesForUserTextChange() []foundation.Value { - rv := objc.Call[[]foundation.Value](t_, objc.Sel("rangesForUserTextChange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449291-selectionaffinity?language=objc +func (t_ TextView) SelectionAffinity() SelectionAffinity { + rv := objc.Call[SelectionAffinity](t_, objc.Sel("selectionAffinity")) return rv } -// A Boolean value that indicates whether automatic dash substitution is enabled. [Full Topic] +// The attributes used to draw the onscreen presentation of link text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449403-automaticdashsubstitutionenabled?language=objc -func (t_ TextView) IsAutomaticDashSubstitutionEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isAutomaticDashSubstitutionEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449452-linktextattributes?language=objc +func (t_ TextView) LinkTextAttributes() map[foundation.AttributedStringKey]objc.Object { + rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("linkTextAttributes")) return rv } -// A Boolean value that indicates whether automatic dash substitution is enabled. [Full Topic] +// The attributes used to draw the onscreen presentation of link text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449403-automaticdashsubstitutionenabled?language=objc -func (t_ TextView) SetAutomaticDashSubstitutionEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticDashSubstitutionEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449452-linktextattributes?language=objc +func (t_ TextView) SetLinkTextAttributes(value map[foundation.AttributedStringKey]objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setLinkTextAttributes:"), value) } -// A Boolean value that indicates whether incremental searching is enabled. [Full Topic] +// A Boolean value that indicates whether automatic spelling correction is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449458-incrementalsearchingenabled?language=objc -func (t_ TextView) IsIncrementalSearchingEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isIncrementalSearchingEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449254-automaticspellingcorrectionenabl?language=objc +func (t_ TextView) IsAutomaticSpellingCorrectionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticSpellingCorrectionEnabled")) return rv } -// A Boolean value that indicates whether incremental searching is enabled. [Full Topic] +// A Boolean value that indicates whether automatic spelling correction is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449458-incrementalsearchingenabled?language=objc -func (t_ TextView) SetIncrementalSearchingEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setIncrementalSearchingEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449254-automaticspellingcorrectionenabl?language=objc +func (t_ TextView) SetAutomaticSpellingCorrectionEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticSpellingCorrectionEnabled:"), value) } -// [Full Topic] +// Enables and disables grammar checking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449357-usesrolloverbuttonforselection?language=objc -func (t_ TextView) UsesRolloverButtonForSelection() bool { - rv := objc.Call[bool](t_, objc.Sel("usesRolloverButtonForSelection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449166-grammarcheckingenabled?language=objc +func (t_ TextView) IsGrammarCheckingEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isGrammarCheckingEnabled")) return rv } -// [Full Topic] +// Enables and disables grammar checking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449357-usesrolloverbuttonforselection?language=objc -func (t_ TextView) SetUsesRolloverButtonForSelection(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesRolloverButtonForSelection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449166-grammarcheckingenabled?language=objc +func (t_ TextView) SetGrammarCheckingEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setGrammarCheckingEnabled:"), value) } // A Boolean value that indicates whether the receiver allows undo. [Full Topic] @@ -1510,34 +1578,35 @@ func (t_ TextView) SetMarkedTextAttributes(value map[foundation.AttributedString objc.Call[objc.Void](t_, objc.Sel("setMarkedTextAttributes:"), value) } -// A Boolean value that indicates whether the receiver accepts the glyph info attribute. [Full Topic] +// The data types that the receiver accepts as the destination view of a dragging operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449163-acceptsglyphinfo?language=objc -func (t_ TextView) AcceptsGlyphInfo() bool { - rv := objc.Call[bool](t_, objc.Sel("acceptsGlyphInfo")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449234-acceptabledragtypes?language=objc +func (t_ TextView) AcceptableDragTypes() []PasteboardType { + rv := objc.Call[[]PasteboardType](t_, objc.Sel("acceptableDragTypes")) return rv } -// A Boolean value that indicates whether the receiver accepts the glyph info attribute. [Full Topic] +// The origin of the receiver’s text container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449163-acceptsglyphinfo?language=objc -func (t_ TextView) SetAcceptsGlyphInfo(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAcceptsGlyphInfo:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449477-textcontainerorigin?language=objc +func (t_ TextView) TextContainerOrigin() foundation.Point { + rv := objc.Call[foundation.Point](t_, objc.Sel("textContainerOrigin")) + return rv } -// A Boolean value that enables or disables automatic link detection. [Full Topic] +// A Boolean value that indicates whether to use the find bar for this text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449170-automaticlinkdetectionenabled?language=objc -func (t_ TextView) IsAutomaticLinkDetectionEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isAutomaticLinkDetectionEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449456-usesfindbar?language=objc +func (t_ TextView) UsesFindBar() bool { + rv := objc.Call[bool](t_, objc.Sel("usesFindBar")) return rv } -// A Boolean value that enables or disables automatic link detection. [Full Topic] +// A Boolean value that indicates whether to use the find bar for this text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449170-automaticlinkdetectionenabled?language=objc -func (t_ TextView) SetAutomaticLinkDetectionEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticLinkDetectionEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449456-usesfindbar?language=objc +func (t_ TextView) SetUsesFindBar(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesFindBar:"), value) } // The receiver’s text storage object. [Full Topic] @@ -1548,35 +1617,19 @@ func (t_ TextView) TextContentStorage() TextContentStorage { return rv } -// The origin of the receiver’s text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449477-textcontainerorigin?language=objc -func (t_ TextView) TextContainerOrigin() foundation.Point { - rv := objc.Call[foundation.Point](t_, objc.Sel("textContainerOrigin")) - return rv -} - -// The receiver’s text container. [Full Topic] +// The selection granularity for subsequent extension of a selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449364-textcontainer?language=objc -func (t_ TextView) TextContainer() TextContainer { - rv := objc.Call[TextContainer](t_, objc.Sel("textContainer")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449165-selectiongranularity?language=objc +func (t_ TextView) SelectionGranularity() SelectionGranularity { + rv := objc.Call[SelectionGranularity](t_, objc.Sel("selectionGranularity")) return rv } -// The receiver’s text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449364-textcontainer?language=objc -func (t_ TextView) SetTextContainer(value ITextContainer) { - objc.Call[objc.Void](t_, objc.Sel("setTextContainer:"), value) -} - -// The preferred direction of selection. [Full Topic] +// The selection granularity for subsequent extension of a selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449291-selectionaffinity?language=objc -func (t_ TextView) SelectionAffinity() SelectionAffinity { - rv := objc.Call[SelectionAffinity](t_, objc.Sel("selectionAffinity")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449165-selectiongranularity?language=objc +func (t_ TextView) SetSelectionGranularity(value SelectionGranularity) { + objc.Call[objc.Void](t_, objc.Sel("setSelectionGranularity:"), value) } // A Boolean value that indicates whether this text view uses the inspector bar. [Full Topic] @@ -1593,78 +1646,3 @@ func (t_ TextView) UsesInspectorBar() bool { func (t_ TextView) SetUsesInspectorBar(value bool) { objc.Call[objc.Void](t_, objc.Sel("setUsesInspectorBar:"), value) } - -// A Boolean value that indicates whether the receiver allows its background color to change. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449397-allowsdocumentbackgroundcolorcha?language=objc -func (t_ TextView) AllowsDocumentBackgroundColorChange() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsDocumentBackgroundColorChange")) - return rv -} - -// A Boolean value that indicates whether the receiver allows its background color to change. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449397-allowsdocumentbackgroundcolorcha?language=objc -func (t_ TextView) SetAllowsDocumentBackgroundColorChange(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsDocumentBackgroundColorChange:"), value) -} - -// A Boolean value that enables and disables automatic quotation mark substitution. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449258-automaticquotesubstitutionenable?language=objc -func (t_ TextView) IsAutomaticQuoteSubstitutionEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isAutomaticQuoteSubstitutionEnabled")) - return rv -} - -// A Boolean value that enables and disables automatic quotation mark substitution. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449258-automaticquotesubstitutionenable?language=objc -func (t_ TextView) SetAutomaticQuoteSubstitutionEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticQuoteSubstitutionEnabled:"), value) -} - -// An array of locale identifiers representing input sources that are allowed to be enabled when the receiver has the keyboard focus. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449370-allowedinputsourcelocales?language=objc -func (t_ TextView) AllowedInputSourceLocales() []string { - rv := objc.Call[[]string](t_, objc.Sel("allowedInputSourceLocales")) - return rv -} - -// An array of locale identifiers representing input sources that are allowed to be enabled when the receiver has the keyboard focus. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449370-allowedinputsourcelocales?language=objc -func (t_ TextView) SetAllowedInputSourceLocales(value []string) { - objc.Call[objc.Void](t_, objc.Sel("setAllowedInputSourceLocales:"), value) -} - -// The empty space the receiver leaves around its associated text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449168-textcontainerinset?language=objc -func (t_ TextView) TextContainerInset() foundation.Size { - rv := objc.Call[foundation.Size](t_, objc.Sel("textContainerInset")) - return rv -} - -// The empty space the receiver leaves around its associated text container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449168-textcontainerinset?language=objc -func (t_ TextView) SetTextContainerInset(value foundation.Size) { - objc.Call[objc.Void](t_, objc.Sel("setTextContainerInset:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2269433-stronglyreferencestextstorage?language=objc -func (tc _TextViewClass) StronglyReferencesTextStorage() bool { - rv := objc.Call[bool](tc, objc.Sel("stronglyReferencesTextStorage")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2269433-stronglyreferencestextstorage?language=objc -func TextView_StronglyReferencesTextStorage() bool { - return TextViewClass.StronglyReferencesTextStorage() -} diff --git a/macos/appkit/text_view_delegate.gen.go b/macos/appkit/text_view_delegate.gen.go index 91eccbfe..436a9f6c 100644 --- a/macos/appkit/text_view_delegate.gen.go +++ b/macos/appkit/text_view_delegate.gen.go @@ -12,249 +12,32 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate?language=objc type PTextViewDelegate interface { PTextDelegate - // optional - TextViewDoubleClickedOnCellInRectAtIndex(textView TextView, cell TextAttachmentCellObject, cellFrame foundation.Rect, charIndex uint) - HasTextViewDoubleClickedOnCellInRectAtIndex() bool - - // optional - TextViewShouldSetSpellingStateRange(textView TextView, value int, affectedCharRange foundation.Range) int - HasTextViewShouldSetSpellingStateRange() bool - - // optional - TextViewShouldSelectCandidateAtIndex(textView TextView, index uint) bool - HasTextViewShouldSelectCandidateAtIndex() bool - - // optional - UndoManagerForTextView(view TextView) foundation.UndoManager - HasUndoManagerForTextView() bool - - // optional - TextViewCandidatesForSelectedRange_(textView TextView, candidates []foundation.TextCheckingResult, selectedRange foundation.Range) []foundation.TextCheckingResult - HasTextViewCandidatesForSelectedRange_() bool - - // optional - TextViewWriteCellAtIndexToPasteboardType(view TextView, cell TextAttachmentCellObject, charIndex uint, pboard Pasteboard, type_ PasteboardType) bool - HasTextViewWriteCellAtIndexToPasteboardType() bool - // optional TextViewDidChangeTypingAttributes(notification foundation.Notification) HasTextViewDidChangeTypingAttributes() bool // optional - TextViewDoCommandBySelector(textView TextView, commandSelector objc.Selector) bool - HasTextViewDoCommandBySelector() bool + UndoManagerForTextView(view TextView) foundation.UndoManager + HasUndoManagerForTextView() bool // optional - TextViewCompletionsForPartialWordRangeIndexOfSelectedItem(textView TextView, words []string, charRange foundation.Range, index *int) []string - HasTextViewCompletionsForPartialWordRangeIndexOfSelectedItem() bool + TextViewCandidatesForSelectedRange(textView TextView, selectedRange foundation.Range) []objc.Object + HasTextViewCandidatesForSelectedRange() bool // optional TextViewDidChangeSelection(notification foundation.Notification) HasTextViewDidChangeSelection() bool - - // optional - TextViewWillChangeSelectionFromCharacterRangesToCharacterRanges(textView TextView, oldSelectedCharRanges []foundation.Value, newSelectedCharRanges []foundation.Value) []foundation.Value - HasTextViewWillChangeSelectionFromCharacterRangesToCharacterRanges() bool - - // optional - TextViewWillCheckTextInRangeOptionsTypes(view TextView, range_ foundation.Range, options map[TextCheckingOptionKey]objc.Object, checkingTypes *foundation.TextCheckingTypes) map[TextCheckingOptionKey]objc.Object - HasTextViewWillCheckTextInRangeOptionsTypes() bool - - // optional - TextViewWillChangeSelectionFromCharacterRangeToCharacterRange(textView TextView, oldSelectedCharRange foundation.Range, newSelectedCharRange foundation.Range) foundation.Range - HasTextViewWillChangeSelectionFromCharacterRangeToCharacterRange() bool - - // optional - TextViewClickedOnLinkAtIndex(textView TextView, link objc.Object, charIndex uint) bool - HasTextViewClickedOnLinkAtIndex() bool - - // optional - TextViewWillShowSharingServicePickerForItems(textView TextView, servicePicker SharingServicePicker, items []objc.Object) SharingServicePicker - HasTextViewWillShowSharingServicePickerForItems() bool - - // optional - TextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount(view TextView, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.Object, results []foundation.TextCheckingResult, orthography foundation.Orthography, wordCount int) []foundation.TextCheckingResult - HasTextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount() bool - - // optional - TextViewURLForContentsOfTextAttachmentAtIndex(textView TextView, textAttachment TextAttachment, charIndex uint) foundation.URL - HasTextViewURLForContentsOfTextAttachmentAtIndex() bool - - // optional - TextViewWillDisplayToolTipForCharacterAtIndex(textView TextView, tooltip string, characterIndex uint) string - HasTextViewWillDisplayToolTipForCharacterAtIndex() bool - - // optional - TextViewWritablePasteboardTypesForCellAtIndex(view TextView, cell TextAttachmentCellObject, charIndex uint) []PasteboardType - HasTextViewWritablePasteboardTypesForCellAtIndex() bool - - // optional - TextViewShouldChangeTypingAttributesToAttributes(textView TextView, oldTypingAttributes map[string]objc.Object, newTypingAttributes map[foundation.AttributedStringKey]objc.Object) map[foundation.AttributedStringKey]objc.Object - HasTextViewShouldChangeTypingAttributesToAttributes() bool - - // optional - TextViewMenuForEventAtIndex(view TextView, menu Menu, event Event, charIndex uint) Menu - HasTextViewMenuForEventAtIndex() bool - - // optional - TextViewShouldChangeTextInRangesReplacementStrings(textView TextView, affectedRanges []foundation.Value, replacementStrings []string) bool - HasTextViewShouldChangeTextInRangesReplacementStrings() bool - - // optional - TextViewShouldUpdateTouchBarItemIdentifiers(textView TextView, identifiers []TouchBarItemIdentifier) []TouchBarItemIdentifier - HasTextViewShouldUpdateTouchBarItemIdentifiers() bool - - // optional - TextViewClickedOnCellInRectAtIndex(textView TextView, cell TextAttachmentCellObject, cellFrame foundation.Rect, charIndex uint) - HasTextViewClickedOnCellInRectAtIndex() bool - - // optional - TextViewDraggedCellInRectEventAtIndex(view TextView, cell TextAttachmentCellObject, rect foundation.Rect, event Event, charIndex uint) - HasTextViewDraggedCellInRectEventAtIndex() bool - - // optional - TextViewShouldChangeTextInRangeReplacementString(textView TextView, affectedCharRange foundation.Range, replacementString string) bool - HasTextViewShouldChangeTextInRangeReplacementString() bool - - // optional - TextViewCandidatesForSelectedRange(textView TextView, selectedRange foundation.Range) []objc.Object - HasTextViewCandidatesForSelectedRange() bool } // A delegate implementation builder for the [PTextViewDelegate] protocol. type TextViewDelegate struct { TextDelegate - _TextViewDoubleClickedOnCellInRectAtIndex func(textView TextView, cell TextAttachmentCellObject, cellFrame foundation.Rect, charIndex uint) - _TextViewShouldSetSpellingStateRange func(textView TextView, value int, affectedCharRange foundation.Range) int - _TextViewShouldSelectCandidateAtIndex func(textView TextView, index uint) bool - _UndoManagerForTextView func(view TextView) foundation.UndoManager - _TextViewCandidatesForSelectedRange_ func(textView TextView, candidates []foundation.TextCheckingResult, selectedRange foundation.Range) []foundation.TextCheckingResult - _TextViewWriteCellAtIndexToPasteboardType func(view TextView, cell TextAttachmentCellObject, charIndex uint, pboard Pasteboard, type_ PasteboardType) bool - _TextViewDidChangeTypingAttributes func(notification foundation.Notification) - _TextViewDoCommandBySelector func(textView TextView, commandSelector objc.Selector) bool - _TextViewCompletionsForPartialWordRangeIndexOfSelectedItem func(textView TextView, words []string, charRange foundation.Range, index *int) []string - _TextViewDidChangeSelection func(notification foundation.Notification) - _TextViewWillChangeSelectionFromCharacterRangesToCharacterRanges func(textView TextView, oldSelectedCharRanges []foundation.Value, newSelectedCharRanges []foundation.Value) []foundation.Value - _TextViewWillCheckTextInRangeOptionsTypes func(view TextView, range_ foundation.Range, options map[TextCheckingOptionKey]objc.Object, checkingTypes *foundation.TextCheckingTypes) map[TextCheckingOptionKey]objc.Object - _TextViewWillChangeSelectionFromCharacterRangeToCharacterRange func(textView TextView, oldSelectedCharRange foundation.Range, newSelectedCharRange foundation.Range) foundation.Range - _TextViewClickedOnLinkAtIndex func(textView TextView, link objc.Object, charIndex uint) bool - _TextViewWillShowSharingServicePickerForItems func(textView TextView, servicePicker SharingServicePicker, items []objc.Object) SharingServicePicker - _TextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount func(view TextView, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.Object, results []foundation.TextCheckingResult, orthography foundation.Orthography, wordCount int) []foundation.TextCheckingResult - _TextViewURLForContentsOfTextAttachmentAtIndex func(textView TextView, textAttachment TextAttachment, charIndex uint) foundation.URL - _TextViewWillDisplayToolTipForCharacterAtIndex func(textView TextView, tooltip string, characterIndex uint) string - _TextViewWritablePasteboardTypesForCellAtIndex func(view TextView, cell TextAttachmentCellObject, charIndex uint) []PasteboardType - _TextViewShouldChangeTypingAttributesToAttributes func(textView TextView, oldTypingAttributes map[string]objc.Object, newTypingAttributes map[foundation.AttributedStringKey]objc.Object) map[foundation.AttributedStringKey]objc.Object - _TextViewMenuForEventAtIndex func(view TextView, menu Menu, event Event, charIndex uint) Menu - _TextViewShouldChangeTextInRangesReplacementStrings func(textView TextView, affectedRanges []foundation.Value, replacementStrings []string) bool - _TextViewShouldUpdateTouchBarItemIdentifiers func(textView TextView, identifiers []TouchBarItemIdentifier) []TouchBarItemIdentifier - _TextViewClickedOnCellInRectAtIndex func(textView TextView, cell TextAttachmentCellObject, cellFrame foundation.Rect, charIndex uint) - _TextViewDraggedCellInRectEventAtIndex func(view TextView, cell TextAttachmentCellObject, rect foundation.Rect, event Event, charIndex uint) - _TextViewShouldChangeTextInRangeReplacementString func(textView TextView, affectedCharRange foundation.Range, replacementString string) bool - _TextViewCandidatesForSelectedRange func(textView TextView, selectedRange foundation.Range) []objc.Object -} - -func (di *TextViewDelegate) HasTextViewDoubleClickedOnCellInRectAtIndex() bool { - return di._TextViewDoubleClickedOnCellInRectAtIndex != nil -} - -// Sent when the user double-clicks a cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449333-textview?language=objc -func (di *TextViewDelegate) SetTextViewDoubleClickedOnCellInRectAtIndex(f func(textView TextView, cell TextAttachmentCellObject, cellFrame foundation.Rect, charIndex uint)) { - di._TextViewDoubleClickedOnCellInRectAtIndex = f -} - -// Sent when the user double-clicks a cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449333-textview?language=objc -func (di *TextViewDelegate) TextViewDoubleClickedOnCellInRectAtIndex(textView TextView, cell TextAttachmentCellObject, cellFrame foundation.Rect, charIndex uint) { - di._TextViewDoubleClickedOnCellInRectAtIndex(textView, cell, cellFrame, charIndex) -} -func (di *TextViewDelegate) HasTextViewShouldSetSpellingStateRange() bool { - return di._TextViewShouldSetSpellingStateRange != nil -} - -// Sent when the spelling state is changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449284-textview?language=objc -func (di *TextViewDelegate) SetTextViewShouldSetSpellingStateRange(f func(textView TextView, value int, affectedCharRange foundation.Range) int) { - di._TextViewShouldSetSpellingStateRange = f -} - -// Sent when the spelling state is changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449284-textview?language=objc -func (di *TextViewDelegate) TextViewShouldSetSpellingStateRange(textView TextView, value int, affectedCharRange foundation.Range) int { - return di._TextViewShouldSetSpellingStateRange(textView, value, affectedCharRange) -} -func (di *TextViewDelegate) HasTextViewShouldSelectCandidateAtIndex() bool { - return di._TextViewShouldSelectCandidateAtIndex != nil -} - -// Returns a Boolean value that indicates whether to select the text object at the index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544682-textview?language=objc -func (di *TextViewDelegate) SetTextViewShouldSelectCandidateAtIndex(f func(textView TextView, index uint) bool) { - di._TextViewShouldSelectCandidateAtIndex = f -} - -// Returns a Boolean value that indicates whether to select the text object at the index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544682-textview?language=objc -func (di *TextViewDelegate) TextViewShouldSelectCandidateAtIndex(textView TextView, index uint) bool { - return di._TextViewShouldSelectCandidateAtIndex(textView, index) -} -func (di *TextViewDelegate) HasUndoManagerForTextView() bool { - return di._UndoManagerForTextView != nil -} - -// Returns the undo manager for the specified text view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449225-undomanagerfortextview?language=objc -func (di *TextViewDelegate) SetUndoManagerForTextView(f func(view TextView) foundation.UndoManager) { - di._UndoManagerForTextView = f -} - -// Returns the undo manager for the specified text view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449225-undomanagerfortextview?language=objc -func (di *TextViewDelegate) UndoManagerForTextView(view TextView) foundation.UndoManager { - return di._UndoManagerForTextView(view) -} -func (di *TextViewDelegate) HasTextViewCandidatesForSelectedRange_() bool { - return di._TextViewCandidatesForSelectedRange_ != nil -} - -// Returns an array of text objects to include in a text selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544692-textview?language=objc -func (di *TextViewDelegate) SetTextViewCandidatesForSelectedRange_(f func(textView TextView, candidates []foundation.TextCheckingResult, selectedRange foundation.Range) []foundation.TextCheckingResult) { - di._TextViewCandidatesForSelectedRange_ = f -} - -// Returns an array of text objects to include in a text selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544692-textview?language=objc -func (di *TextViewDelegate) TextViewCandidatesForSelectedRange_(textView TextView, candidates []foundation.TextCheckingResult, selectedRange foundation.Range) []foundation.TextCheckingResult { - return di._TextViewCandidatesForSelectedRange_(textView, candidates, selectedRange) -} -func (di *TextViewDelegate) HasTextViewWriteCellAtIndexToPasteboardType() bool { - return di._TextViewWriteCellAtIndexToPasteboardType != nil -} - -// Returns whether data of the specified type for the given cell could be written to the specified pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449294-textview?language=objc -func (di *TextViewDelegate) SetTextViewWriteCellAtIndexToPasteboardType(f func(view TextView, cell TextAttachmentCellObject, charIndex uint, pboard Pasteboard, type_ PasteboardType) bool) { - di._TextViewWriteCellAtIndexToPasteboardType = f + _TextViewDidChangeTypingAttributes func(notification foundation.Notification) + _UndoManagerForTextView func(view TextView) foundation.UndoManager + _TextViewCandidatesForSelectedRange func(textView TextView, selectedRange foundation.Range) []objc.Object + _TextViewDidChangeSelection func(notification foundation.Notification) } -// Returns whether data of the specified type for the given cell could be written to the specified pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449294-textview?language=objc -func (di *TextViewDelegate) TextViewWriteCellAtIndexToPasteboardType(view TextView, cell TextAttachmentCellObject, charIndex uint, pboard Pasteboard, type_ PasteboardType) bool { - return di._TextViewWriteCellAtIndexToPasteboardType(view, cell, charIndex, pboard, type_) -} func (di *TextViewDelegate) HasTextViewDidChangeTypingAttributes() bool { return di._TextViewDidChangeTypingAttributes != nil } @@ -272,39 +55,39 @@ func (di *TextViewDelegate) SetTextViewDidChangeTypingAttributes(f func(notifica func (di *TextViewDelegate) TextViewDidChangeTypingAttributes(notification foundation.Notification) { di._TextViewDidChangeTypingAttributes(notification) } -func (di *TextViewDelegate) HasTextViewDoCommandBySelector() bool { - return di._TextViewDoCommandBySelector != nil +func (di *TextViewDelegate) HasUndoManagerForTextView() bool { + return di._UndoManagerForTextView != nil } -// Sent to allow the delegate to perform the command for the text view. [Full Topic] +// Returns the undo manager for the specified text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449419-textview?language=objc -func (di *TextViewDelegate) SetTextViewDoCommandBySelector(f func(textView TextView, commandSelector objc.Selector) bool) { - di._TextViewDoCommandBySelector = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449225-undomanagerfortextview?language=objc +func (di *TextViewDelegate) SetUndoManagerForTextView(f func(view TextView) foundation.UndoManager) { + di._UndoManagerForTextView = f } -// Sent to allow the delegate to perform the command for the text view. [Full Topic] +// Returns the undo manager for the specified text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449419-textview?language=objc -func (di *TextViewDelegate) TextViewDoCommandBySelector(textView TextView, commandSelector objc.Selector) bool { - return di._TextViewDoCommandBySelector(textView, commandSelector) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449225-undomanagerfortextview?language=objc +func (di *TextViewDelegate) UndoManagerForTextView(view TextView) foundation.UndoManager { + return di._UndoManagerForTextView(view) } -func (di *TextViewDelegate) HasTextViewCompletionsForPartialWordRangeIndexOfSelectedItem() bool { - return di._TextViewCompletionsForPartialWordRangeIndexOfSelectedItem != nil +func (di *TextViewDelegate) HasTextViewCandidatesForSelectedRange() bool { + return di._TextViewCandidatesForSelectedRange != nil } -// Returns the actual completions for a partial word. [Full Topic] +// Returns an array of objects that represent the elements of a selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449260-textview?language=objc -func (di *TextViewDelegate) SetTextViewCompletionsForPartialWordRangeIndexOfSelectedItem(f func(textView TextView, words []string, charRange foundation.Range, index *int) []string) { - di._TextViewCompletionsForPartialWordRangeIndexOfSelectedItem = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544744-textview?language=objc +func (di *TextViewDelegate) SetTextViewCandidatesForSelectedRange(f func(textView TextView, selectedRange foundation.Range) []objc.Object) { + di._TextViewCandidatesForSelectedRange = f } -// Returns the actual completions for a partial word. [Full Topic] +// Returns an array of objects that represent the elements of a selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449260-textview?language=objc -func (di *TextViewDelegate) TextViewCompletionsForPartialWordRangeIndexOfSelectedItem(textView TextView, words []string, charRange foundation.Range, index *int) []string { - return di._TextViewCompletionsForPartialWordRangeIndexOfSelectedItem(textView, words, charRange, index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544744-textview?language=objc +func (di *TextViewDelegate) TextViewCandidatesForSelectedRange(textView TextView, selectedRange foundation.Range) []objc.Object { + return di._TextViewCandidatesForSelectedRange(textView, selectedRange) } func (di *TextViewDelegate) HasTextViewDidChangeSelection() bool { return di._TextViewDidChangeSelection != nil @@ -323,295 +106,6 @@ func (di *TextViewDelegate) SetTextViewDidChangeSelection(f func(notification fo func (di *TextViewDelegate) TextViewDidChangeSelection(notification foundation.Notification) { di._TextViewDidChangeSelection(notification) } -func (di *TextViewDelegate) HasTextViewWillChangeSelectionFromCharacterRangesToCharacterRanges() bool { - return di._TextViewWillChangeSelectionFromCharacterRangesToCharacterRanges != nil -} - -// Returns the actual character ranges to select. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449264-textview?language=objc -func (di *TextViewDelegate) SetTextViewWillChangeSelectionFromCharacterRangesToCharacterRanges(f func(textView TextView, oldSelectedCharRanges []foundation.Value, newSelectedCharRanges []foundation.Value) []foundation.Value) { - di._TextViewWillChangeSelectionFromCharacterRangesToCharacterRanges = f -} - -// Returns the actual character ranges to select. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449264-textview?language=objc -func (di *TextViewDelegate) TextViewWillChangeSelectionFromCharacterRangesToCharacterRanges(textView TextView, oldSelectedCharRanges []foundation.Value, newSelectedCharRanges []foundation.Value) []foundation.Value { - return di._TextViewWillChangeSelectionFromCharacterRangesToCharacterRanges(textView, oldSelectedCharRanges, newSelectedCharRanges) -} -func (di *TextViewDelegate) HasTextViewWillCheckTextInRangeOptionsTypes() bool { - return di._TextViewWillCheckTextInRangeOptionsTypes != nil -} - -// Invoked to allow the delegate to modify the text checking process before it occurs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449307-textview?language=objc -func (di *TextViewDelegate) SetTextViewWillCheckTextInRangeOptionsTypes(f func(view TextView, range_ foundation.Range, options map[TextCheckingOptionKey]objc.Object, checkingTypes *foundation.TextCheckingTypes) map[TextCheckingOptionKey]objc.Object) { - di._TextViewWillCheckTextInRangeOptionsTypes = f -} - -// Invoked to allow the delegate to modify the text checking process before it occurs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449307-textview?language=objc -func (di *TextViewDelegate) TextViewWillCheckTextInRangeOptionsTypes(view TextView, range_ foundation.Range, options map[TextCheckingOptionKey]objc.Object, checkingTypes *foundation.TextCheckingTypes) map[TextCheckingOptionKey]objc.Object { - return di._TextViewWillCheckTextInRangeOptionsTypes(view, range_, options, checkingTypes) -} -func (di *TextViewDelegate) HasTextViewWillChangeSelectionFromCharacterRangeToCharacterRange() bool { - return di._TextViewWillChangeSelectionFromCharacterRangeToCharacterRange != nil -} - -// Returns the actual range to select. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449227-textview?language=objc -func (di *TextViewDelegate) SetTextViewWillChangeSelectionFromCharacterRangeToCharacterRange(f func(textView TextView, oldSelectedCharRange foundation.Range, newSelectedCharRange foundation.Range) foundation.Range) { - di._TextViewWillChangeSelectionFromCharacterRangeToCharacterRange = f -} - -// Returns the actual range to select. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449227-textview?language=objc -func (di *TextViewDelegate) TextViewWillChangeSelectionFromCharacterRangeToCharacterRange(textView TextView, oldSelectedCharRange foundation.Range, newSelectedCharRange foundation.Range) foundation.Range { - return di._TextViewWillChangeSelectionFromCharacterRangeToCharacterRange(textView, oldSelectedCharRange, newSelectedCharRange) -} -func (di *TextViewDelegate) HasTextViewClickedOnLinkAtIndex() bool { - return di._TextViewClickedOnLinkAtIndex != nil -} - -// Sent after the user clicks a link. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449527-textview?language=objc -func (di *TextViewDelegate) SetTextViewClickedOnLinkAtIndex(f func(textView TextView, link objc.Object, charIndex uint) bool) { - di._TextViewClickedOnLinkAtIndex = f -} - -// Sent after the user clicks a link. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449527-textview?language=objc -func (di *TextViewDelegate) TextViewClickedOnLinkAtIndex(textView TextView, link objc.Object, charIndex uint) bool { - return di._TextViewClickedOnLinkAtIndex(textView, link, charIndex) -} -func (di *TextViewDelegate) HasTextViewWillShowSharingServicePickerForItems() bool { - return di._TextViewWillShowSharingServicePickerForItems != nil -} - -// Returns a sharing service picker for the current selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449339-textview?language=objc -func (di *TextViewDelegate) SetTextViewWillShowSharingServicePickerForItems(f func(textView TextView, servicePicker SharingServicePicker, items []objc.Object) SharingServicePicker) { - di._TextViewWillShowSharingServicePickerForItems = f -} - -// Returns a sharing service picker for the current selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449339-textview?language=objc -func (di *TextViewDelegate) TextViewWillShowSharingServicePickerForItems(textView TextView, servicePicker SharingServicePicker, items []objc.Object) SharingServicePicker { - return di._TextViewWillShowSharingServicePickerForItems(textView, servicePicker, items) -} -func (di *TextViewDelegate) HasTextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount() bool { - return di._TextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount != nil -} - -// Invoked to allow the delegate to modify the text checking results after checking has occurred. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449317-textview?language=objc -func (di *TextViewDelegate) SetTextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount(f func(view TextView, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.Object, results []foundation.TextCheckingResult, orthography foundation.Orthography, wordCount int) []foundation.TextCheckingResult) { - di._TextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount = f -} - -// Invoked to allow the delegate to modify the text checking results after checking has occurred. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449317-textview?language=objc -func (di *TextViewDelegate) TextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount(view TextView, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.Object, results []foundation.TextCheckingResult, orthography foundation.Orthography, wordCount int) []foundation.TextCheckingResult { - return di._TextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount(view, range_, checkingTypes, options, results, orthography, wordCount) -} -func (di *TextViewDelegate) HasTextViewURLForContentsOfTextAttachmentAtIndex() bool { - return di._TextViewURLForContentsOfTextAttachmentAtIndex != nil -} - -// Returns a URL representing the document contents for a text attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449194-textview?language=objc -func (di *TextViewDelegate) SetTextViewURLForContentsOfTextAttachmentAtIndex(f func(textView TextView, textAttachment TextAttachment, charIndex uint) foundation.URL) { - di._TextViewURLForContentsOfTextAttachmentAtIndex = f -} - -// Returns a URL representing the document contents for a text attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449194-textview?language=objc -func (di *TextViewDelegate) TextViewURLForContentsOfTextAttachmentAtIndex(textView TextView, textAttachment TextAttachment, charIndex uint) foundation.URL { - return di._TextViewURLForContentsOfTextAttachmentAtIndex(textView, textAttachment, charIndex) -} -func (di *TextViewDelegate) HasTextViewWillDisplayToolTipForCharacterAtIndex() bool { - return di._TextViewWillDisplayToolTipForCharacterAtIndex != nil -} - -// Returns the actual tooltip to display. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449411-textview?language=objc -func (di *TextViewDelegate) SetTextViewWillDisplayToolTipForCharacterAtIndex(f func(textView TextView, tooltip string, characterIndex uint) string) { - di._TextViewWillDisplayToolTipForCharacterAtIndex = f -} - -// Returns the actual tooltip to display. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449411-textview?language=objc -func (di *TextViewDelegate) TextViewWillDisplayToolTipForCharacterAtIndex(textView TextView, tooltip string, characterIndex uint) string { - return di._TextViewWillDisplayToolTipForCharacterAtIndex(textView, tooltip, characterIndex) -} -func (di *TextViewDelegate) HasTextViewWritablePasteboardTypesForCellAtIndex() bool { - return di._TextViewWritablePasteboardTypesForCellAtIndex != nil -} - -// Returns the writable pasteboard types for a given cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449485-textview?language=objc -func (di *TextViewDelegate) SetTextViewWritablePasteboardTypesForCellAtIndex(f func(view TextView, cell TextAttachmentCellObject, charIndex uint) []PasteboardType) { - di._TextViewWritablePasteboardTypesForCellAtIndex = f -} - -// Returns the writable pasteboard types for a given cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449485-textview?language=objc -func (di *TextViewDelegate) TextViewWritablePasteboardTypesForCellAtIndex(view TextView, cell TextAttachmentCellObject, charIndex uint) []PasteboardType { - return di._TextViewWritablePasteboardTypesForCellAtIndex(view, cell, charIndex) -} -func (di *TextViewDelegate) HasTextViewShouldChangeTypingAttributesToAttributes() bool { - return di._TextViewShouldChangeTypingAttributesToAttributes != nil -} - -// Sent when the typing attributes are changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449376-textview?language=objc -func (di *TextViewDelegate) SetTextViewShouldChangeTypingAttributesToAttributes(f func(textView TextView, oldTypingAttributes map[string]objc.Object, newTypingAttributes map[foundation.AttributedStringKey]objc.Object) map[foundation.AttributedStringKey]objc.Object) { - di._TextViewShouldChangeTypingAttributesToAttributes = f -} - -// Sent when the typing attributes are changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449376-textview?language=objc -func (di *TextViewDelegate) TextViewShouldChangeTypingAttributesToAttributes(textView TextView, oldTypingAttributes map[string]objc.Object, newTypingAttributes map[foundation.AttributedStringKey]objc.Object) map[foundation.AttributedStringKey]objc.Object { - return di._TextViewShouldChangeTypingAttributesToAttributes(textView, oldTypingAttributes, newTypingAttributes) -} -func (di *TextViewDelegate) HasTextViewMenuForEventAtIndex() bool { - return di._TextViewMenuForEventAtIndex != nil -} - -// Allows delegate to control the context menu returned by the text view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449341-textview?language=objc -func (di *TextViewDelegate) SetTextViewMenuForEventAtIndex(f func(view TextView, menu Menu, event Event, charIndex uint) Menu) { - di._TextViewMenuForEventAtIndex = f -} - -// Allows delegate to control the context menu returned by the text view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449341-textview?language=objc -func (di *TextViewDelegate) TextViewMenuForEventAtIndex(view TextView, menu Menu, event Event, charIndex uint) Menu { - return di._TextViewMenuForEventAtIndex(view, menu, event, charIndex) -} -func (di *TextViewDelegate) HasTextViewShouldChangeTextInRangesReplacementStrings() bool { - return di._TextViewShouldChangeTextInRangesReplacementStrings != nil -} - -// Sent when a text view needs to determine if text in an array of specified ranges should be changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449206-textview?language=objc -func (di *TextViewDelegate) SetTextViewShouldChangeTextInRangesReplacementStrings(f func(textView TextView, affectedRanges []foundation.Value, replacementStrings []string) bool) { - di._TextViewShouldChangeTextInRangesReplacementStrings = f -} - -// Sent when a text view needs to determine if text in an array of specified ranges should be changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449206-textview?language=objc -func (di *TextViewDelegate) TextViewShouldChangeTextInRangesReplacementStrings(textView TextView, affectedRanges []foundation.Value, replacementStrings []string) bool { - return di._TextViewShouldChangeTextInRangesReplacementStrings(textView, affectedRanges, replacementStrings) -} -func (di *TextViewDelegate) HasTextViewShouldUpdateTouchBarItemIdentifiers() bool { - return di._TextViewShouldUpdateTouchBarItemIdentifiers != nil -} - -// Returns and array of touch bar elements for the framework to update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544799-textview?language=objc -func (di *TextViewDelegate) SetTextViewShouldUpdateTouchBarItemIdentifiers(f func(textView TextView, identifiers []TouchBarItemIdentifier) []TouchBarItemIdentifier) { - di._TextViewShouldUpdateTouchBarItemIdentifiers = f -} - -// Returns and array of touch bar elements for the framework to update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544799-textview?language=objc -func (di *TextViewDelegate) TextViewShouldUpdateTouchBarItemIdentifiers(textView TextView, identifiers []TouchBarItemIdentifier) []TouchBarItemIdentifier { - return di._TextViewShouldUpdateTouchBarItemIdentifiers(textView, identifiers) -} -func (di *TextViewDelegate) HasTextViewClickedOnCellInRectAtIndex() bool { - return di._TextViewClickedOnCellInRectAtIndex != nil -} - -// Sent when the user clicks a cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449335-textview?language=objc -func (di *TextViewDelegate) SetTextViewClickedOnCellInRectAtIndex(f func(textView TextView, cell TextAttachmentCellObject, cellFrame foundation.Rect, charIndex uint)) { - di._TextViewClickedOnCellInRectAtIndex = f -} - -// Sent when the user clicks a cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449335-textview?language=objc -func (di *TextViewDelegate) TextViewClickedOnCellInRectAtIndex(textView TextView, cell TextAttachmentCellObject, cellFrame foundation.Rect, charIndex uint) { - di._TextViewClickedOnCellInRectAtIndex(textView, cell, cellFrame, charIndex) -} -func (di *TextViewDelegate) HasTextViewDraggedCellInRectEventAtIndex() bool { - return di._TextViewDraggedCellInRectEventAtIndex != nil -} - -// Sent when the user attempts to drag a cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449154-textview?language=objc -func (di *TextViewDelegate) SetTextViewDraggedCellInRectEventAtIndex(f func(view TextView, cell TextAttachmentCellObject, rect foundation.Rect, event Event, charIndex uint)) { - di._TextViewDraggedCellInRectEventAtIndex = f -} - -// Sent when the user attempts to drag a cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449154-textview?language=objc -func (di *TextViewDelegate) TextViewDraggedCellInRectEventAtIndex(view TextView, cell TextAttachmentCellObject, rect foundation.Rect, event Event, charIndex uint) { - di._TextViewDraggedCellInRectEventAtIndex(view, cell, rect, event, charIndex) -} -func (di *TextViewDelegate) HasTextViewShouldChangeTextInRangeReplacementString() bool { - return di._TextViewShouldChangeTextInRangeReplacementString != nil -} - -// Sent when a text view needs to determine if text in a specified range should be changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449325-textview?language=objc -func (di *TextViewDelegate) SetTextViewShouldChangeTextInRangeReplacementString(f func(textView TextView, affectedCharRange foundation.Range, replacementString string) bool) { - di._TextViewShouldChangeTextInRangeReplacementString = f -} - -// Sent when a text view needs to determine if text in a specified range should be changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449325-textview?language=objc -func (di *TextViewDelegate) TextViewShouldChangeTextInRangeReplacementString(textView TextView, affectedCharRange foundation.Range, replacementString string) bool { - return di._TextViewShouldChangeTextInRangeReplacementString(textView, affectedCharRange, replacementString) -} -func (di *TextViewDelegate) HasTextViewCandidatesForSelectedRange() bool { - return di._TextViewCandidatesForSelectedRange != nil -} - -// Returns an array of objects that represent the elements of a selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544744-textview?language=objc -func (di *TextViewDelegate) SetTextViewCandidatesForSelectedRange(f func(textView TextView, selectedRange foundation.Range) []objc.Object) { - di._TextViewCandidatesForSelectedRange = f -} - -// Returns an array of objects that represent the elements of a selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544744-textview?language=objc -func (di *TextViewDelegate) TextViewCandidatesForSelectedRange(textView TextView, selectedRange foundation.Range) []objc.Object { - return di._TextViewCandidatesForSelectedRange(textView, selectedRange) -} // ensure impl type implements protocol interface var _ PTextViewDelegate = (*TextViewDelegateObject)(nil) @@ -621,79 +115,6 @@ type TextViewDelegateObject struct { TextDelegateObject } -func (t_ TextViewDelegateObject) HasTextViewDoubleClickedOnCellInRectAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("textView:doubleClickedOnCell:inRect:atIndex:")) -} - -// Sent when the user double-clicks a cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449333-textview?language=objc -func (t_ TextViewDelegateObject) TextViewDoubleClickedOnCellInRectAtIndex(textView TextView, cell TextAttachmentCellObject, cellFrame foundation.Rect, charIndex uint) { - po1 := objc.WrapAsProtocol("NSTextAttachmentCell", cell) - objc.Call[objc.Void](t_, objc.Sel("textView:doubleClickedOnCell:inRect:atIndex:"), textView, po1, cellFrame, charIndex) -} - -func (t_ TextViewDelegateObject) HasTextViewShouldSetSpellingStateRange() bool { - return t_.RespondsToSelector(objc.Sel("textView:shouldSetSpellingState:range:")) -} - -// Sent when the spelling state is changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449284-textview?language=objc -func (t_ TextViewDelegateObject) TextViewShouldSetSpellingStateRange(textView TextView, value int, affectedCharRange foundation.Range) int { - rv := objc.Call[int](t_, objc.Sel("textView:shouldSetSpellingState:range:"), textView, value, affectedCharRange) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewShouldSelectCandidateAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("textView:shouldSelectCandidateAtIndex:")) -} - -// Returns a Boolean value that indicates whether to select the text object at the index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544682-textview?language=objc -func (t_ TextViewDelegateObject) TextViewShouldSelectCandidateAtIndex(textView TextView, index uint) bool { - rv := objc.Call[bool](t_, objc.Sel("textView:shouldSelectCandidateAtIndex:"), textView, index) - return rv -} - -func (t_ TextViewDelegateObject) HasUndoManagerForTextView() bool { - return t_.RespondsToSelector(objc.Sel("undoManagerForTextView:")) -} - -// Returns the undo manager for the specified text view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449225-undomanagerfortextview?language=objc -func (t_ TextViewDelegateObject) UndoManagerForTextView(view TextView) foundation.UndoManager { - rv := objc.Call[foundation.UndoManager](t_, objc.Sel("undoManagerForTextView:"), view) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewCandidatesForSelectedRange_() bool { - return t_.RespondsToSelector(objc.Sel("textView:candidates:forSelectedRange:")) -} - -// Returns an array of text objects to include in a text selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544692-textview?language=objc -func (t_ TextViewDelegateObject) TextViewCandidatesForSelectedRange_(textView TextView, candidates []foundation.TextCheckingResult, selectedRange foundation.Range) []foundation.TextCheckingResult { - rv := objc.Call[[]foundation.TextCheckingResult](t_, objc.Sel("textView:candidates:forSelectedRange:"), textView, candidates, selectedRange) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewWriteCellAtIndexToPasteboardType() bool { - return t_.RespondsToSelector(objc.Sel("textView:writeCell:atIndex:toPasteboard:type:")) -} - -// Returns whether data of the specified type for the given cell could be written to the specified pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449294-textview?language=objc -func (t_ TextViewDelegateObject) TextViewWriteCellAtIndexToPasteboardType(view TextView, cell TextAttachmentCellObject, charIndex uint, pboard Pasteboard, type_ PasteboardType) bool { - po1 := objc.WrapAsProtocol("NSTextAttachmentCell", cell) - rv := objc.Call[bool](t_, objc.Sel("textView:writeCell:atIndex:toPasteboard:type:"), view, po1, charIndex, pboard, type_) - return rv -} - func (t_ TextViewDelegateObject) HasTextViewDidChangeTypingAttributes() bool { return t_.RespondsToSelector(objc.Sel("textViewDidChangeTypingAttributes:")) } @@ -705,27 +126,27 @@ func (t_ TextViewDelegateObject) TextViewDidChangeTypingAttributes(notification objc.Call[objc.Void](t_, objc.Sel("textViewDidChangeTypingAttributes:"), notification) } -func (t_ TextViewDelegateObject) HasTextViewDoCommandBySelector() bool { - return t_.RespondsToSelector(objc.Sel("textView:doCommandBySelector:")) +func (t_ TextViewDelegateObject) HasUndoManagerForTextView() bool { + return t_.RespondsToSelector(objc.Sel("undoManagerForTextView:")) } -// Sent to allow the delegate to perform the command for the text view. [Full Topic] +// Returns the undo manager for the specified text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449419-textview?language=objc -func (t_ TextViewDelegateObject) TextViewDoCommandBySelector(textView TextView, commandSelector objc.Selector) bool { - rv := objc.Call[bool](t_, objc.Sel("textView:doCommandBySelector:"), textView, commandSelector) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449225-undomanagerfortextview?language=objc +func (t_ TextViewDelegateObject) UndoManagerForTextView(view TextView) foundation.UndoManager { + rv := objc.Call[foundation.UndoManager](t_, objc.Sel("undoManagerForTextView:"), view) return rv } -func (t_ TextViewDelegateObject) HasTextViewCompletionsForPartialWordRangeIndexOfSelectedItem() bool { - return t_.RespondsToSelector(objc.Sel("textView:completions:forPartialWordRange:indexOfSelectedItem:")) +func (t_ TextViewDelegateObject) HasTextViewCandidatesForSelectedRange() bool { + return t_.RespondsToSelector(objc.Sel("textView:candidatesForSelectedRange:")) } -// Returns the actual completions for a partial word. [Full Topic] +// Returns an array of objects that represent the elements of a selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449260-textview?language=objc -func (t_ TextViewDelegateObject) TextViewCompletionsForPartialWordRangeIndexOfSelectedItem(textView TextView, words []string, charRange foundation.Range, index *int) []string { - rv := objc.Call[[]string](t_, objc.Sel("textView:completions:forPartialWordRange:indexOfSelectedItem:"), textView, words, charRange, index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544744-textview?language=objc +func (t_ TextViewDelegateObject) TextViewCandidatesForSelectedRange(textView TextView, selectedRange foundation.Range) []objc.Object { + rv := objc.Call[[]objc.Object](t_, objc.Sel("textView:candidatesForSelectedRange:"), textView, selectedRange) return rv } @@ -739,208 +160,3 @@ func (t_ TextViewDelegateObject) HasTextViewDidChangeSelection() bool { func (t_ TextViewDelegateObject) TextViewDidChangeSelection(notification foundation.Notification) { objc.Call[objc.Void](t_, objc.Sel("textViewDidChangeSelection:"), notification) } - -func (t_ TextViewDelegateObject) HasTextViewWillChangeSelectionFromCharacterRangesToCharacterRanges() bool { - return t_.RespondsToSelector(objc.Sel("textView:willChangeSelectionFromCharacterRanges:toCharacterRanges:")) -} - -// Returns the actual character ranges to select. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449264-textview?language=objc -func (t_ TextViewDelegateObject) TextViewWillChangeSelectionFromCharacterRangesToCharacterRanges(textView TextView, oldSelectedCharRanges []foundation.Value, newSelectedCharRanges []foundation.Value) []foundation.Value { - rv := objc.Call[[]foundation.Value](t_, objc.Sel("textView:willChangeSelectionFromCharacterRanges:toCharacterRanges:"), textView, oldSelectedCharRanges, newSelectedCharRanges) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewWillCheckTextInRangeOptionsTypes() bool { - return t_.RespondsToSelector(objc.Sel("textView:willCheckTextInRange:options:types:")) -} - -// Invoked to allow the delegate to modify the text checking process before it occurs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449307-textview?language=objc -func (t_ TextViewDelegateObject) TextViewWillCheckTextInRangeOptionsTypes(view TextView, range_ foundation.Range, options map[TextCheckingOptionKey]objc.Object, checkingTypes *foundation.TextCheckingTypes) map[TextCheckingOptionKey]objc.Object { - rv := objc.Call[map[TextCheckingOptionKey]objc.Object](t_, objc.Sel("textView:willCheckTextInRange:options:types:"), view, range_, options, checkingTypes) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewWillChangeSelectionFromCharacterRangeToCharacterRange() bool { - return t_.RespondsToSelector(objc.Sel("textView:willChangeSelectionFromCharacterRange:toCharacterRange:")) -} - -// Returns the actual range to select. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449227-textview?language=objc -func (t_ TextViewDelegateObject) TextViewWillChangeSelectionFromCharacterRangeToCharacterRange(textView TextView, oldSelectedCharRange foundation.Range, newSelectedCharRange foundation.Range) foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("textView:willChangeSelectionFromCharacterRange:toCharacterRange:"), textView, oldSelectedCharRange, newSelectedCharRange) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewClickedOnLinkAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("textView:clickedOnLink:atIndex:")) -} - -// Sent after the user clicks a link. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449527-textview?language=objc -func (t_ TextViewDelegateObject) TextViewClickedOnLinkAtIndex(textView TextView, link objc.Object, charIndex uint) bool { - rv := objc.Call[bool](t_, objc.Sel("textView:clickedOnLink:atIndex:"), textView, link, charIndex) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewWillShowSharingServicePickerForItems() bool { - return t_.RespondsToSelector(objc.Sel("textView:willShowSharingServicePicker:forItems:")) -} - -// Returns a sharing service picker for the current selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449339-textview?language=objc -func (t_ TextViewDelegateObject) TextViewWillShowSharingServicePickerForItems(textView TextView, servicePicker SharingServicePicker, items []objc.Object) SharingServicePicker { - rv := objc.Call[SharingServicePicker](t_, objc.Sel("textView:willShowSharingServicePicker:forItems:"), textView, servicePicker, items) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount() bool { - return t_.RespondsToSelector(objc.Sel("textView:didCheckTextInRange:types:options:results:orthography:wordCount:")) -} - -// Invoked to allow the delegate to modify the text checking results after checking has occurred. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449317-textview?language=objc -func (t_ TextViewDelegateObject) TextViewDidCheckTextInRangeTypesOptionsResultsOrthographyWordCount(view TextView, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.Object, results []foundation.TextCheckingResult, orthography foundation.Orthography, wordCount int) []foundation.TextCheckingResult { - rv := objc.Call[[]foundation.TextCheckingResult](t_, objc.Sel("textView:didCheckTextInRange:types:options:results:orthography:wordCount:"), view, range_, checkingTypes, options, results, orthography, wordCount) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewURLForContentsOfTextAttachmentAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("textView:URLForContentsOfTextAttachment:atIndex:")) -} - -// Returns a URL representing the document contents for a text attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449194-textview?language=objc -func (t_ TextViewDelegateObject) TextViewURLForContentsOfTextAttachmentAtIndex(textView TextView, textAttachment TextAttachment, charIndex uint) foundation.URL { - rv := objc.Call[foundation.URL](t_, objc.Sel("textView:URLForContentsOfTextAttachment:atIndex:"), textView, textAttachment, charIndex) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewWillDisplayToolTipForCharacterAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("textView:willDisplayToolTip:forCharacterAtIndex:")) -} - -// Returns the actual tooltip to display. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449411-textview?language=objc -func (t_ TextViewDelegateObject) TextViewWillDisplayToolTipForCharacterAtIndex(textView TextView, tooltip string, characterIndex uint) string { - rv := objc.Call[string](t_, objc.Sel("textView:willDisplayToolTip:forCharacterAtIndex:"), textView, tooltip, characterIndex) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewWritablePasteboardTypesForCellAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("textView:writablePasteboardTypesForCell:atIndex:")) -} - -// Returns the writable pasteboard types for a given cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449485-textview?language=objc -func (t_ TextViewDelegateObject) TextViewWritablePasteboardTypesForCellAtIndex(view TextView, cell TextAttachmentCellObject, charIndex uint) []PasteboardType { - po1 := objc.WrapAsProtocol("NSTextAttachmentCell", cell) - rv := objc.Call[[]PasteboardType](t_, objc.Sel("textView:writablePasteboardTypesForCell:atIndex:"), view, po1, charIndex) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewShouldChangeTypingAttributesToAttributes() bool { - return t_.RespondsToSelector(objc.Sel("textView:shouldChangeTypingAttributes:toAttributes:")) -} - -// Sent when the typing attributes are changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449376-textview?language=objc -func (t_ TextViewDelegateObject) TextViewShouldChangeTypingAttributesToAttributes(textView TextView, oldTypingAttributes map[string]objc.Object, newTypingAttributes map[foundation.AttributedStringKey]objc.Object) map[foundation.AttributedStringKey]objc.Object { - rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("textView:shouldChangeTypingAttributes:toAttributes:"), textView, oldTypingAttributes, newTypingAttributes) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewMenuForEventAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("textView:menu:forEvent:atIndex:")) -} - -// Allows delegate to control the context menu returned by the text view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449341-textview?language=objc -func (t_ TextViewDelegateObject) TextViewMenuForEventAtIndex(view TextView, menu Menu, event Event, charIndex uint) Menu { - rv := objc.Call[Menu](t_, objc.Sel("textView:menu:forEvent:atIndex:"), view, menu, event, charIndex) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewShouldChangeTextInRangesReplacementStrings() bool { - return t_.RespondsToSelector(objc.Sel("textView:shouldChangeTextInRanges:replacementStrings:")) -} - -// Sent when a text view needs to determine if text in an array of specified ranges should be changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449206-textview?language=objc -func (t_ TextViewDelegateObject) TextViewShouldChangeTextInRangesReplacementStrings(textView TextView, affectedRanges []foundation.Value, replacementStrings []string) bool { - rv := objc.Call[bool](t_, objc.Sel("textView:shouldChangeTextInRanges:replacementStrings:"), textView, affectedRanges, replacementStrings) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewShouldUpdateTouchBarItemIdentifiers() bool { - return t_.RespondsToSelector(objc.Sel("textView:shouldUpdateTouchBarItemIdentifiers:")) -} - -// Returns and array of touch bar elements for the framework to update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544799-textview?language=objc -func (t_ TextViewDelegateObject) TextViewShouldUpdateTouchBarItemIdentifiers(textView TextView, identifiers []TouchBarItemIdentifier) []TouchBarItemIdentifier { - rv := objc.Call[[]TouchBarItemIdentifier](t_, objc.Sel("textView:shouldUpdateTouchBarItemIdentifiers:"), textView, identifiers) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewClickedOnCellInRectAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("textView:clickedOnCell:inRect:atIndex:")) -} - -// Sent when the user clicks a cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449335-textview?language=objc -func (t_ TextViewDelegateObject) TextViewClickedOnCellInRectAtIndex(textView TextView, cell TextAttachmentCellObject, cellFrame foundation.Rect, charIndex uint) { - po1 := objc.WrapAsProtocol("NSTextAttachmentCell", cell) - objc.Call[objc.Void](t_, objc.Sel("textView:clickedOnCell:inRect:atIndex:"), textView, po1, cellFrame, charIndex) -} - -func (t_ TextViewDelegateObject) HasTextViewDraggedCellInRectEventAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("textView:draggedCell:inRect:event:atIndex:")) -} - -// Sent when the user attempts to drag a cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449154-textview?language=objc -func (t_ TextViewDelegateObject) TextViewDraggedCellInRectEventAtIndex(view TextView, cell TextAttachmentCellObject, rect foundation.Rect, event Event, charIndex uint) { - po1 := objc.WrapAsProtocol("NSTextAttachmentCell", cell) - objc.Call[objc.Void](t_, objc.Sel("textView:draggedCell:inRect:event:atIndex:"), view, po1, rect, event, charIndex) -} - -func (t_ TextViewDelegateObject) HasTextViewShouldChangeTextInRangeReplacementString() bool { - return t_.RespondsToSelector(objc.Sel("textView:shouldChangeTextInRange:replacementString:")) -} - -// Sent when a text view needs to determine if text in a specified range should be changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449325-textview?language=objc -func (t_ TextViewDelegateObject) TextViewShouldChangeTextInRangeReplacementString(textView TextView, affectedCharRange foundation.Range, replacementString string) bool { - rv := objc.Call[bool](t_, objc.Sel("textView:shouldChangeTextInRange:replacementString:"), textView, affectedCharRange, replacementString) - return rv -} - -func (t_ TextViewDelegateObject) HasTextViewCandidatesForSelectedRange() bool { - return t_.RespondsToSelector(objc.Sel("textView:candidatesForSelectedRange:")) -} - -// Returns an array of objects that represent the elements of a selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544744-textview?language=objc -func (t_ TextViewDelegateObject) TextViewCandidatesForSelectedRange(textView TextView, selectedRange foundation.Range) []objc.Object { - rv := objc.Call[[]objc.Object](t_, objc.Sel("textView:candidatesForSelectedRange:"), textView, selectedRange) - return rv -} diff --git a/macos/appkit/text_viewport_layout_controller.gen.go b/macos/appkit/text_viewport_layout_controller.gen.go index 1d7526ec..0b144b14 100644 --- a/macos/appkit/text_viewport_layout_controller.gen.go +++ b/macos/appkit/text_viewport_layout_controller.gen.go @@ -20,15 +20,15 @@ type _TextViewportLayoutControllerClass struct { type ITextViewportLayoutController interface { objc.IObject AdjustViewportByVerticalOffset(verticalOffset float64) + LayoutViewport() RelocateViewportToTextLocation(textLocation PTextLocation) float64 RelocateViewportToTextLocationObject(textLocationObject objc.IObject) float64 - LayoutViewport() - ViewportBounds() coregraphics.Rect + TextLayoutManager() TextLayoutManager + ViewportRange() TextRange Delegate() TextViewportLayoutControllerDelegateObject SetDelegate(value PTextViewportLayoutControllerDelegate) SetDelegateObject(valueObject objc.IObject) - ViewportRange() TextRange - TextLayoutManager() TextLayoutManager + ViewportBounds() coregraphics.Rect } // Manages the layout process inside the viewport interacting with its delegate. [Full Topic] @@ -85,6 +85,13 @@ func (t_ TextViewportLayoutController) AdjustViewportByVerticalOffset(verticalOf objc.Call[objc.Void](t_, objc.Sel("adjustViewportByVerticalOffset:"), verticalOffset) } +// Performs layout in the viewport. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontroller/3824770-layoutviewport?language=objc +func (t_ TextViewportLayoutController) LayoutViewport() { + objc.Call[objc.Void](t_, objc.Sel("layoutViewport")) +} + // Relocates the viewport to the location you specify. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontroller/3852590-relocateviewporttotextlocation?language=objc @@ -102,18 +109,19 @@ func (t_ TextViewportLayoutController) RelocateViewportToTextLocationObject(text return rv } -// Performs layout in the viewport. [Full Topic] +// Returns the text layout manager for this viewport layout controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontroller/3824770-layoutviewport?language=objc -func (t_ TextViewportLayoutController) LayoutViewport() { - objc.Call[objc.Void](t_, objc.Sel("layoutViewport")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontroller/3824772-textlayoutmanager?language=objc +func (t_ TextViewportLayoutController) TextLayoutManager() TextLayoutManager { + rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) + return rv } -// Returns the visible bounds of the view, plus the overdraw area. [Full Topic] +// Returns the text range of the current viewport layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontroller/3824773-viewportbounds?language=objc -func (t_ TextViewportLayoutController) ViewportBounds() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](t_, objc.Sel("viewportBounds")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontroller/3824774-viewportrange?language=objc +func (t_ TextViewportLayoutController) ViewportRange() TextRange { + rv := objc.Call[TextRange](t_, objc.Sel("viewportRange")) return rv } @@ -141,18 +149,10 @@ func (t_ TextViewportLayoutController) SetDelegateObject(valueObject objc.IObjec objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) } -// Returns the text range of the current viewport layout. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontroller/3824774-viewportrange?language=objc -func (t_ TextViewportLayoutController) ViewportRange() TextRange { - rv := objc.Call[TextRange](t_, objc.Sel("viewportRange")) - return rv -} - -// Returns the text layout manager for this viewport layout controller. [Full Topic] +// Returns the visible bounds of the view, plus the overdraw area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontroller/3824772-textlayoutmanager?language=objc -func (t_ TextViewportLayoutController) TextLayoutManager() TextLayoutManager { - rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontroller/3824773-viewportbounds?language=objc +func (t_ TextViewportLayoutController) ViewportBounds() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](t_, objc.Sel("viewportBounds")) return rv } diff --git a/macos/appkit/text_viewport_layout_controller_delegate.gen.go b/macos/appkit/text_viewport_layout_controller_delegate.gen.go index 9e0beb6c..684c81a1 100644 --- a/macos/appkit/text_viewport_layout_controller_delegate.gen.go +++ b/macos/appkit/text_viewport_layout_controller_delegate.gen.go @@ -12,46 +12,46 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate?language=objc type PTextViewportLayoutControllerDelegate interface { // optional - TextViewportLayoutControllerDidLayout(textViewportLayoutController TextViewportLayoutController) - HasTextViewportLayoutControllerDidLayout() bool + ViewportBoundsForTextViewportLayoutController(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect + HasViewportBoundsForTextViewportLayoutController() bool // optional TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment(textViewportLayoutController TextViewportLayoutController, textLayoutFragment TextLayoutFragment) HasTextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment() bool // optional - TextViewportLayoutControllerWillLayout(textViewportLayoutController TextViewportLayoutController) - HasTextViewportLayoutControllerWillLayout() bool + TextViewportLayoutControllerDidLayout(textViewportLayoutController TextViewportLayoutController) + HasTextViewportLayoutControllerDidLayout() bool // optional - ViewportBoundsForTextViewportLayoutController(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect - HasViewportBoundsForTextViewportLayoutController() bool + TextViewportLayoutControllerWillLayout(textViewportLayoutController TextViewportLayoutController) + HasTextViewportLayoutControllerWillLayout() bool } // A delegate implementation builder for the [PTextViewportLayoutControllerDelegate] protocol. type TextViewportLayoutControllerDelegate struct { - _TextViewportLayoutControllerDidLayout func(textViewportLayoutController TextViewportLayoutController) + _ViewportBoundsForTextViewportLayoutController func(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect _TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment func(textViewportLayoutController TextViewportLayoutController, textLayoutFragment TextLayoutFragment) + _TextViewportLayoutControllerDidLayout func(textViewportLayoutController TextViewportLayoutController) _TextViewportLayoutControllerWillLayout func(textViewportLayoutController TextViewportLayoutController) - _ViewportBoundsForTextViewportLayoutController func(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect } -func (di *TextViewportLayoutControllerDelegate) HasTextViewportLayoutControllerDidLayout() bool { - return di._TextViewportLayoutControllerDidLayout != nil +func (di *TextViewportLayoutControllerDelegate) HasViewportBoundsForTextViewportLayoutController() bool { + return di._ViewportBoundsForTextViewportLayoutController != nil } -// The method the framework calls when the text viewport layout controller finishes its layout process. [Full Topic] +// Returns the current viewport, which is the view visible bounds plus the overdraw area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824777-textviewportlayoutcontrollerdidl?language=objc -func (di *TextViewportLayoutControllerDelegate) SetTextViewportLayoutControllerDidLayout(f func(textViewportLayoutController TextViewportLayoutController)) { - di._TextViewportLayoutControllerDidLayout = f +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824779-viewportboundsfortextviewportlay?language=objc +func (di *TextViewportLayoutControllerDelegate) SetViewportBoundsForTextViewportLayoutController(f func(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect) { + di._ViewportBoundsForTextViewportLayoutController = f } -// The method the framework calls when the text viewport layout controller finishes its layout process. [Full Topic] +// Returns the current viewport, which is the view visible bounds plus the overdraw area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824777-textviewportlayoutcontrollerdidl?language=objc -func (di *TextViewportLayoutControllerDelegate) TextViewportLayoutControllerDidLayout(textViewportLayoutController TextViewportLayoutController) { - di._TextViewportLayoutControllerDidLayout(textViewportLayoutController) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824779-viewportboundsfortextviewportlay?language=objc +func (di *TextViewportLayoutControllerDelegate) ViewportBoundsForTextViewportLayoutController(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect { + return di._ViewportBoundsForTextViewportLayoutController(textViewportLayoutController) } func (di *TextViewportLayoutControllerDelegate) HasTextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment() bool { return di._TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment != nil @@ -70,6 +70,23 @@ func (di *TextViewportLayoutControllerDelegate) SetTextViewportLayoutControllerC func (di *TextViewportLayoutControllerDelegate) TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment(textViewportLayoutController TextViewportLayoutController, textLayoutFragment TextLayoutFragment) { di._TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment(textViewportLayoutController, textLayoutFragment) } +func (di *TextViewportLayoutControllerDelegate) HasTextViewportLayoutControllerDidLayout() bool { + return di._TextViewportLayoutControllerDidLayout != nil +} + +// The method the framework calls when the text viewport layout controller finishes its layout process. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824777-textviewportlayoutcontrollerdidl?language=objc +func (di *TextViewportLayoutControllerDelegate) SetTextViewportLayoutControllerDidLayout(f func(textViewportLayoutController TextViewportLayoutController)) { + di._TextViewportLayoutControllerDidLayout = f +} + +// The method the framework calls when the text viewport layout controller finishes its layout process. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824777-textviewportlayoutcontrollerdidl?language=objc +func (di *TextViewportLayoutControllerDelegate) TextViewportLayoutControllerDidLayout(textViewportLayoutController TextViewportLayoutController) { + di._TextViewportLayoutControllerDidLayout(textViewportLayoutController) +} func (di *TextViewportLayoutControllerDelegate) HasTextViewportLayoutControllerWillLayout() bool { return di._TextViewportLayoutControllerWillLayout != nil } @@ -87,23 +104,6 @@ func (di *TextViewportLayoutControllerDelegate) SetTextViewportLayoutControllerW func (di *TextViewportLayoutControllerDelegate) TextViewportLayoutControllerWillLayout(textViewportLayoutController TextViewportLayoutController) { di._TextViewportLayoutControllerWillLayout(textViewportLayoutController) } -func (di *TextViewportLayoutControllerDelegate) HasViewportBoundsForTextViewportLayoutController() bool { - return di._ViewportBoundsForTextViewportLayoutController != nil -} - -// Returns the current viewport, which is the view visible bounds plus the overdraw area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824779-viewportboundsfortextviewportlay?language=objc -func (di *TextViewportLayoutControllerDelegate) SetViewportBoundsForTextViewportLayoutController(f func(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect) { - di._ViewportBoundsForTextViewportLayoutController = f -} - -// Returns the current viewport, which is the view visible bounds plus the overdraw area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824779-viewportboundsfortextviewportlay?language=objc -func (di *TextViewportLayoutControllerDelegate) ViewportBoundsForTextViewportLayoutController(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect { - return di._ViewportBoundsForTextViewportLayoutController(textViewportLayoutController) -} // ensure impl type implements protocol interface var _ PTextViewportLayoutControllerDelegate = (*TextViewportLayoutControllerDelegateObject)(nil) @@ -113,15 +113,16 @@ type TextViewportLayoutControllerDelegateObject struct { objc.Object } -func (t_ TextViewportLayoutControllerDelegateObject) HasTextViewportLayoutControllerDidLayout() bool { - return t_.RespondsToSelector(objc.Sel("textViewportLayoutControllerDidLayout:")) +func (t_ TextViewportLayoutControllerDelegateObject) HasViewportBoundsForTextViewportLayoutController() bool { + return t_.RespondsToSelector(objc.Sel("viewportBoundsForTextViewportLayoutController:")) } -// The method the framework calls when the text viewport layout controller finishes its layout process. [Full Topic] +// Returns the current viewport, which is the view visible bounds plus the overdraw area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824777-textviewportlayoutcontrollerdidl?language=objc -func (t_ TextViewportLayoutControllerDelegateObject) TextViewportLayoutControllerDidLayout(textViewportLayoutController TextViewportLayoutController) { - objc.Call[objc.Void](t_, objc.Sel("textViewportLayoutControllerDidLayout:"), textViewportLayoutController) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824779-viewportboundsfortextviewportlay?language=objc +func (t_ TextViewportLayoutControllerDelegateObject) ViewportBoundsForTextViewportLayoutController(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](t_, objc.Sel("viewportBoundsForTextViewportLayoutController:"), textViewportLayoutController) + return rv } func (t_ TextViewportLayoutControllerDelegateObject) HasTextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment() bool { @@ -135,6 +136,17 @@ func (t_ TextViewportLayoutControllerDelegateObject) TextViewportLayoutControlle objc.Call[objc.Void](t_, objc.Sel("textViewportLayoutController:configureRenderingSurfaceForTextLayoutFragment:"), textViewportLayoutController, textLayoutFragment) } +func (t_ TextViewportLayoutControllerDelegateObject) HasTextViewportLayoutControllerDidLayout() bool { + return t_.RespondsToSelector(objc.Sel("textViewportLayoutControllerDidLayout:")) +} + +// The method the framework calls when the text viewport layout controller finishes its layout process. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824777-textviewportlayoutcontrollerdidl?language=objc +func (t_ TextViewportLayoutControllerDelegateObject) TextViewportLayoutControllerDidLayout(textViewportLayoutController TextViewportLayoutController) { + objc.Call[objc.Void](t_, objc.Sel("textViewportLayoutControllerDidLayout:"), textViewportLayoutController) +} + func (t_ TextViewportLayoutControllerDelegateObject) HasTextViewportLayoutControllerWillLayout() bool { return t_.RespondsToSelector(objc.Sel("textViewportLayoutControllerWillLayout:")) } @@ -145,15 +157,3 @@ func (t_ TextViewportLayoutControllerDelegateObject) HasTextViewportLayoutContro func (t_ TextViewportLayoutControllerDelegateObject) TextViewportLayoutControllerWillLayout(textViewportLayoutController TextViewportLayoutController) { objc.Call[objc.Void](t_, objc.Sel("textViewportLayoutControllerWillLayout:"), textViewportLayoutController) } - -func (t_ TextViewportLayoutControllerDelegateObject) HasViewportBoundsForTextViewportLayoutController() bool { - return t_.RespondsToSelector(objc.Sel("viewportBoundsForTextViewportLayoutController:")) -} - -// Returns the current viewport, which is the view visible bounds plus the overdraw area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824779-viewportboundsfortextviewportlay?language=objc -func (t_ TextViewportLayoutControllerDelegateObject) ViewportBoundsForTextViewportLayoutController(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](t_, objc.Sel("viewportBoundsForTextViewportLayoutController:"), textViewportLayoutController) - return rv -} diff --git a/macos/appkit/tint_configuration.gen.go b/macos/appkit/tint_configuration.gen.go index 616f3fbd..3cf60eb3 100644 --- a/macos/appkit/tint_configuration.gen.go +++ b/macos/appkit/tint_configuration.gen.go @@ -19,8 +19,8 @@ type _TintConfigurationClass struct { type ITintConfiguration interface { objc.IObject BaseTintColor() Color - AdaptsToUserAccentColor() bool EquivalentContentTintColor() Color + AdaptsToUserAccentColor() bool } // An object that gives you the ability to choose from system-provided tinting behaviors. [Full Topic] @@ -36,18 +36,6 @@ func TintConfigurationFrom(ptr unsafe.Pointer) TintConfiguration { } } -func (tc _TintConfigurationClass) TintConfigurationWithFixedColor(color IColor) TintConfiguration { - rv := objc.Call[TintConfiguration](tc, objc.Sel("tintConfigurationWithFixedColor:"), color) - return rv -} - -// Creates a new tint configuration using a specific color value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626823-tintconfigurationwithfixedcolor?language=objc -func TintConfiguration_TintConfigurationWithFixedColor(color IColor) TintConfiguration { - return TintConfigurationClass.TintConfigurationWithFixedColor(color) -} - func (tc _TintConfigurationClass) TintConfigurationWithPreferredColor(color IColor) TintConfiguration { rv := objc.Call[TintConfiguration](tc, objc.Sel("tintConfigurationWithPreferredColor:"), color) return rv @@ -60,6 +48,18 @@ func TintConfiguration_TintConfigurationWithPreferredColor(color IColor) TintCon return TintConfigurationClass.TintConfigurationWithPreferredColor(color) } +func (tc _TintConfigurationClass) TintConfigurationWithFixedColor(color IColor) TintConfiguration { + rv := objc.Call[TintConfiguration](tc, objc.Sel("tintConfigurationWithFixedColor:"), color) + return rv +} + +// Creates a new tint configuration using a specific color value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626823-tintconfigurationwithfixedcolor?language=objc +func TintConfiguration_TintConfigurationWithFixedColor(color IColor) TintConfiguration { + return TintConfigurationClass.TintConfigurationWithFixedColor(color) +} + func (tc _TintConfigurationClass) Alloc() TintConfiguration { rv := objc.Call[TintConfiguration](tc, objc.Sel("alloc")) return rv @@ -80,21 +80,6 @@ func (t_ TintConfiguration) Init() TintConfiguration { return rv } -// The content always displays in monochrome. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626822-monochrometintconfiguration?language=objc -func (tc _TintConfigurationClass) MonochromeTintConfiguration() TintConfiguration { - rv := objc.Call[TintConfiguration](tc, objc.Sel("monochromeTintConfiguration")) - return rv -} - -// The content always displays in monochrome. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626822-monochrometintconfiguration?language=objc -func TintConfiguration_MonochromeTintConfiguration() TintConfiguration { - return TintConfigurationClass.MonochromeTintConfiguration() -} - // The color the system supplies when you create a tint configuration. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626819-basetintcolor?language=objc @@ -103,11 +88,11 @@ func (t_ TintConfiguration) BaseTintColor() Color { return rv } -// A Boolean value that indicates whether the tint configuration alters its effect based on the user’s preferred accent color choice. [Full Topic] +// A color object that matches the effective content tint. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626818-adaptstouseraccentcolor?language=objc -func (t_ TintConfiguration) AdaptsToUserAccentColor() bool { - rv := objc.Call[bool](t_, objc.Sel("adaptsToUserAccentColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626821-equivalentcontenttintcolor?language=objc +func (t_ TintConfiguration) EquivalentContentTintColor() Color { + rv := objc.Call[Color](t_, objc.Sel("equivalentContentTintColor")) return rv } @@ -126,10 +111,25 @@ func TintConfiguration_DefaultTintConfiguration() TintConfiguration { return TintConfigurationClass.DefaultTintConfiguration() } -// A color object that matches the effective content tint. [Full Topic] +// The content always displays in monochrome. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626821-equivalentcontenttintcolor?language=objc -func (t_ TintConfiguration) EquivalentContentTintColor() Color { - rv := objc.Call[Color](t_, objc.Sel("equivalentContentTintColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626822-monochrometintconfiguration?language=objc +func (tc _TintConfigurationClass) MonochromeTintConfiguration() TintConfiguration { + rv := objc.Call[TintConfiguration](tc, objc.Sel("monochromeTintConfiguration")) + return rv +} + +// The content always displays in monochrome. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626822-monochrometintconfiguration?language=objc +func TintConfiguration_MonochromeTintConfiguration() TintConfiguration { + return TintConfigurationClass.MonochromeTintConfiguration() +} + +// A Boolean value that indicates whether the tint configuration alters its effect based on the user’s preferred accent color choice. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626818-adaptstouseraccentcolor?language=objc +func (t_ TintConfiguration) AdaptsToUserAccentColor() bool { + rv := objc.Call[bool](t_, objc.Sel("adaptsToUserAccentColor")) return rv } diff --git a/macos/appkit/titlebar_accessory_view_controller.gen.go b/macos/appkit/titlebar_accessory_view_controller.gen.go index 9c05adc2..684ee77e 100644 --- a/macos/appkit/titlebar_accessory_view_controller.gen.go +++ b/macos/appkit/titlebar_accessory_view_controller.gen.go @@ -19,10 +19,10 @@ type _TitlebarAccessoryViewControllerClass struct { // An interface definition for the [TitlebarAccessoryViewController] class. type ITitlebarAccessoryViewController interface { IViewController - IsHidden() bool - SetHidden(value bool) AutomaticallyAdjustsSize() bool SetAutomaticallyAdjustsSize(value bool) + IsHidden() bool + SetHidden(value bool) LayoutAttribute() LayoutAttribute SetLayoutAttribute(value LayoutAttribute) FullScreenMinHeight() float64 @@ -78,32 +78,32 @@ func NewTitlebarAccessoryViewControllerWithNibNameBundle(nibNameOrNil NibName, n // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstitlebaraccessoryviewcontroller/2097084-hidden?language=objc -func (t_ TitlebarAccessoryViewController) IsHidden() bool { - rv := objc.Call[bool](t_, objc.Sel("isHidden")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstitlebaraccessoryviewcontroller/3656518-automaticallyadjustssize?language=objc +func (t_ TitlebarAccessoryViewController) AutomaticallyAdjustsSize() bool { + rv := objc.Call[bool](t_, objc.Sel("automaticallyAdjustsSize")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstitlebaraccessoryviewcontroller/2097084-hidden?language=objc -func (t_ TitlebarAccessoryViewController) SetHidden(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setHidden:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstitlebaraccessoryviewcontroller/3656518-automaticallyadjustssize?language=objc +func (t_ TitlebarAccessoryViewController) SetAutomaticallyAdjustsSize(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticallyAdjustsSize:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstitlebaraccessoryviewcontroller/3656518-automaticallyadjustssize?language=objc -func (t_ TitlebarAccessoryViewController) AutomaticallyAdjustsSize() bool { - rv := objc.Call[bool](t_, objc.Sel("automaticallyAdjustsSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstitlebaraccessoryviewcontroller/2097084-hidden?language=objc +func (t_ TitlebarAccessoryViewController) IsHidden() bool { + rv := objc.Call[bool](t_, objc.Sel("isHidden")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstitlebaraccessoryviewcontroller/3656518-automaticallyadjustssize?language=objc -func (t_ TitlebarAccessoryViewController) SetAutomaticallyAdjustsSize(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticallyAdjustsSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstitlebaraccessoryviewcontroller/2097084-hidden?language=objc +func (t_ TitlebarAccessoryViewController) SetHidden(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setHidden:"), value) } // The location of the accessory view, in relation to the window’s title bar. [Full Topic] diff --git a/macos/appkit/token_field.gen.go b/macos/appkit/token_field.gen.go index 6ea9032a..26b176eb 100644 --- a/macos/appkit/token_field.gen.go +++ b/macos/appkit/token_field.gen.go @@ -19,12 +19,12 @@ type _TokenFieldClass struct { // An interface definition for the [TokenField] class. type ITokenField interface { ITextField - TokenStyle() TokenStyle - SetTokenStyle(value TokenStyle) - CompletionDelay() foundation.TimeInterval - SetCompletionDelay(value foundation.TimeInterval) TokenizingCharacterSet() foundation.CharacterSet SetTokenizingCharacterSet(value foundation.ICharacterSet) + CompletionDelay() foundation.TimeInterval + SetCompletionDelay(value foundation.TimeInterval) + TokenStyle() TokenStyle + SetTokenStyle(value TokenStyle) } // A text field that converts text into visually distinct tokens. [Full Topic] @@ -60,18 +60,6 @@ func (t_ TokenField) Init() TokenField { return rv } -func (tc _TokenFieldClass) LabelWithString(stringValue string) TokenField { - rv := objc.Call[TokenField](tc, objc.Sel("labelWithString:"), stringValue) - return rv -} - -// Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc -func TokenField_LabelWithString(stringValue string) TokenField { - return TokenFieldClass.LabelWithString(stringValue) -} - func (tc _TokenFieldClass) LabelWithAttributedString(attributedStringValue foundation.IAttributedString) TokenField { rv := objc.Call[TokenField](tc, objc.Sel("labelWithAttributedString:"), attributedStringValue) return rv @@ -84,6 +72,18 @@ func TokenField_LabelWithAttributedString(attributedStringValue foundation.IAttr return TokenFieldClass.LabelWithAttributedString(attributedStringValue) } +func (tc _TokenFieldClass) LabelWithString(stringValue string) TokenField { + rv := objc.Call[TokenField](tc, objc.Sel("labelWithString:"), stringValue) + return rv +} + +// Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc +func TokenField_LabelWithString(stringValue string) TokenField { + return TokenFieldClass.LabelWithString(stringValue) +} + func (tc _TokenFieldClass) WrappingLabelWithString(stringValue string) TokenField { rv := objc.Call[TokenField](tc, objc.Sel("wrappingLabelWithString:"), stringValue) return rv @@ -122,6 +122,21 @@ func NewTokenFieldWithFrame(frameRect foundation.Rect) TokenField { return instance } +// The recevier’s tokenizing character set to characterSet. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1534230-tokenizingcharacterset?language=objc +func (t_ TokenField) TokenizingCharacterSet() foundation.CharacterSet { + rv := objc.Call[foundation.CharacterSet](t_, objc.Sel("tokenizingCharacterSet")) + return rv +} + +// The recevier’s tokenizing character set to characterSet. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1534230-tokenizingcharacterset?language=objc +func (t_ TokenField) SetTokenizingCharacterSet(value foundation.ICharacterSet) { + objc.Call[objc.Void](t_, objc.Sel("setTokenizingCharacterSet:"), value) +} + // Returns the default completion delay. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1529243-defaultcompletiondelay?language=objc @@ -137,19 +152,19 @@ func TokenField_DefaultCompletionDelay() foundation.TimeInterval { return TokenFieldClass.DefaultCompletionDelay() } -// The token style of the receiver. [Full Topic] +// The receiver’s completion delay. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1534077-tokenstyle?language=objc -func (t_ TokenField) TokenStyle() TokenStyle { - rv := objc.Call[TokenStyle](t_, objc.Sel("tokenStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1535823-completiondelay?language=objc +func (t_ TokenField) CompletionDelay() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](t_, objc.Sel("completionDelay")) return rv } -// The token style of the receiver. [Full Topic] +// The receiver’s completion delay. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1534077-tokenstyle?language=objc -func (t_ TokenField) SetTokenStyle(value TokenStyle) { - objc.Call[objc.Void](t_, objc.Sel("setTokenStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1535823-completiondelay?language=objc +func (t_ TokenField) SetCompletionDelay(value foundation.TimeInterval) { + objc.Call[objc.Void](t_, objc.Sel("setCompletionDelay:"), value) } // Returns the default tokenizing character set. [Full Topic] @@ -167,32 +182,17 @@ func TokenField_DefaultTokenizingCharacterSet() foundation.CharacterSet { return TokenFieldClass.DefaultTokenizingCharacterSet() } -// The receiver’s completion delay. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1535823-completiondelay?language=objc -func (t_ TokenField) CompletionDelay() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](t_, objc.Sel("completionDelay")) - return rv -} - -// The receiver’s completion delay. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1535823-completiondelay?language=objc -func (t_ TokenField) SetCompletionDelay(value foundation.TimeInterval) { - objc.Call[objc.Void](t_, objc.Sel("setCompletionDelay:"), value) -} - -// The recevier’s tokenizing character set to characterSet. [Full Topic] +// The token style of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1534230-tokenizingcharacterset?language=objc -func (t_ TokenField) TokenizingCharacterSet() foundation.CharacterSet { - rv := objc.Call[foundation.CharacterSet](t_, objc.Sel("tokenizingCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1534077-tokenstyle?language=objc +func (t_ TokenField) TokenStyle() TokenStyle { + rv := objc.Call[TokenStyle](t_, objc.Sel("tokenStyle")) return rv } -// The recevier’s tokenizing character set to characterSet. [Full Topic] +// The token style of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1534230-tokenizingcharacterset?language=objc -func (t_ TokenField) SetTokenizingCharacterSet(value foundation.ICharacterSet) { - objc.Call[objc.Void](t_, objc.Sel("setTokenizingCharacterSet:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1534077-tokenstyle?language=objc +func (t_ TokenField) SetTokenStyle(value TokenStyle) { + objc.Call[objc.Void](t_, objc.Sel("setTokenStyle:"), value) } diff --git a/macos/appkit/token_field_cell.gen.go b/macos/appkit/token_field_cell.gen.go index 00da86c2..b7fc7978 100644 --- a/macos/appkit/token_field_cell.gen.go +++ b/macos/appkit/token_field_cell.gen.go @@ -19,15 +19,15 @@ type _TokenFieldCellClass struct { // An interface definition for the [TokenFieldCell] class. type ITokenFieldCell interface { ITextFieldCell - TokenStyle() TokenStyle - SetTokenStyle(value TokenStyle) - CompletionDelay() foundation.TimeInterval - SetCompletionDelay(value foundation.TimeInterval) TokenizingCharacterSet() foundation.CharacterSet SetTokenizingCharacterSet(value foundation.ICharacterSet) + CompletionDelay() foundation.TimeInterval + SetCompletionDelay(value foundation.TimeInterval) Delegate() TokenFieldCellDelegateObject SetDelegate(value PTokenFieldCellDelegate) SetDelegateObject(valueObject objc.IObject) + TokenStyle() TokenStyle + SetTokenStyle(value TokenStyle) } // A text field cell subclass that enables tokenized editing of an array of objects. [Full Topic] @@ -91,49 +91,19 @@ func NewTokenFieldCellImageCell(image IImage) TokenFieldCell { return instance } -// The token style of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523827-tokenstyle?language=objc -func (t_ TokenFieldCell) TokenStyle() TokenStyle { - rv := objc.Call[TokenStyle](t_, objc.Sel("tokenStyle")) - return rv -} - -// The token style of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523827-tokenstyle?language=objc -func (t_ TokenFieldCell) SetTokenStyle(value TokenStyle) { - objc.Call[objc.Void](t_, objc.Sel("setTokenStyle:"), value) -} - -// The receiver’s completion delay to a given delay. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523806-completiondelay?language=objc -func (t_ TokenFieldCell) CompletionDelay() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](t_, objc.Sel("completionDelay")) - return rv -} - -// The receiver’s completion delay to a given delay. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523806-completiondelay?language=objc -func (t_ TokenFieldCell) SetCompletionDelay(value foundation.TimeInterval) { - objc.Call[objc.Void](t_, objc.Sel("setCompletionDelay:"), value) -} - -// Returns the default tokenizing character set. [Full Topic] +// The receiver’s tokenizing character set to a given character set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523808-defaulttokenizingcharacterset?language=objc -func (tc _TokenFieldCellClass) DefaultTokenizingCharacterSet() foundation.CharacterSet { - rv := objc.Call[foundation.CharacterSet](tc, objc.Sel("defaultTokenizingCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523822-tokenizingcharacterset?language=objc +func (t_ TokenFieldCell) TokenizingCharacterSet() foundation.CharacterSet { + rv := objc.Call[foundation.CharacterSet](t_, objc.Sel("tokenizingCharacterSet")) return rv } -// Returns the default tokenizing character set. [Full Topic] +// The receiver’s tokenizing character set to a given character set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523808-defaulttokenizingcharacterset?language=objc -func TokenFieldCell_DefaultTokenizingCharacterSet() foundation.CharacterSet { - return TokenFieldCellClass.DefaultTokenizingCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523822-tokenizingcharacterset?language=objc +func (t_ TokenFieldCell) SetTokenizingCharacterSet(value foundation.ICharacterSet) { + objc.Call[objc.Void](t_, objc.Sel("setTokenizingCharacterSet:"), value) } // Returns the default completion delay. [Full Topic] @@ -151,19 +121,19 @@ func TokenFieldCell_DefaultCompletionDelay() foundation.TimeInterval { return TokenFieldCellClass.DefaultCompletionDelay() } -// The receiver’s tokenizing character set to a given character set. [Full Topic] +// The receiver’s completion delay to a given delay. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523822-tokenizingcharacterset?language=objc -func (t_ TokenFieldCell) TokenizingCharacterSet() foundation.CharacterSet { - rv := objc.Call[foundation.CharacterSet](t_, objc.Sel("tokenizingCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523806-completiondelay?language=objc +func (t_ TokenFieldCell) CompletionDelay() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](t_, objc.Sel("completionDelay")) return rv } -// The receiver’s tokenizing character set to a given character set. [Full Topic] +// The receiver’s completion delay to a given delay. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523822-tokenizingcharacterset?language=objc -func (t_ TokenFieldCell) SetTokenizingCharacterSet(value foundation.ICharacterSet) { - objc.Call[objc.Void](t_, objc.Sel("setTokenizingCharacterSet:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523806-completiondelay?language=objc +func (t_ TokenFieldCell) SetCompletionDelay(value foundation.TimeInterval) { + objc.Call[objc.Void](t_, objc.Sel("setCompletionDelay:"), value) } // The receiver’s delegate. [Full Topic] @@ -189,3 +159,33 @@ func (t_ TokenFieldCell) SetDelegate(value PTokenFieldCellDelegate) { func (t_ TokenFieldCell) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) } + +// Returns the default tokenizing character set. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523808-defaulttokenizingcharacterset?language=objc +func (tc _TokenFieldCellClass) DefaultTokenizingCharacterSet() foundation.CharacterSet { + rv := objc.Call[foundation.CharacterSet](tc, objc.Sel("defaultTokenizingCharacterSet")) + return rv +} + +// Returns the default tokenizing character set. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523808-defaulttokenizingcharacterset?language=objc +func TokenFieldCell_DefaultTokenizingCharacterSet() foundation.CharacterSet { + return TokenFieldCellClass.DefaultTokenizingCharacterSet() +} + +// The token style of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523827-tokenstyle?language=objc +func (t_ TokenFieldCell) TokenStyle() TokenStyle { + rv := objc.Call[TokenStyle](t_, objc.Sel("tokenStyle")) + return rv +} + +// The token style of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523827-tokenstyle?language=objc +func (t_ TokenFieldCell) SetTokenStyle(value TokenStyle) { + objc.Call[objc.Void](t_, objc.Sel("setTokenStyle:"), value) +} diff --git a/macos/appkit/token_field_cell_delegate.gen.go b/macos/appkit/token_field_cell_delegate.gen.go index da637fba..8b1ad495 100644 --- a/macos/appkit/token_field_cell_delegate.gen.go +++ b/macos/appkit/token_field_cell_delegate.gen.go @@ -10,180 +10,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate?language=objc type PTokenFieldCellDelegate interface { - // optional - TokenFieldCellMenuForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) Menu - HasTokenFieldCellMenuForRepresentedObject() bool - - // optional - TokenFieldCellDisplayStringForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) string - HasTokenFieldCellDisplayStringForRepresentedObject() bool - - // optional - TokenFieldCellReadFromPasteboard(tokenFieldCell TokenFieldCell, pboard Pasteboard) []objc.Object - HasTokenFieldCellReadFromPasteboard() bool - - // optional - TokenFieldCellRepresentedObjectForEditingString(tokenFieldCell TokenFieldCell, editingString string) objc.Object - HasTokenFieldCellRepresentedObjectForEditingString() bool - - // optional - TokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem(tokenFieldCell TokenFieldCell, substring string, tokenIndex int, selectedIndex *int) []objc.Object - HasTokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem() bool - - // optional - TokenFieldCellWriteRepresentedObjectsToPasteboard(tokenFieldCell TokenFieldCell, objects []objc.Object, pboard Pasteboard) bool - HasTokenFieldCellWriteRepresentedObjectsToPasteboard() bool - - // optional - TokenFieldCellShouldAddObjectsAtIndex(tokenFieldCell TokenFieldCell, tokens []objc.Object, index uint) []objc.Object - HasTokenFieldCellShouldAddObjectsAtIndex() bool - // optional TokenFieldCellEditingStringForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) string HasTokenFieldCellEditingStringForRepresentedObject() bool - - // optional - TokenFieldCellHasMenuForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) bool - HasTokenFieldCellHasMenuForRepresentedObject() bool - - // optional - TokenFieldCellStyleForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) TokenStyle - HasTokenFieldCellStyleForRepresentedObject() bool } // A delegate implementation builder for the [PTokenFieldCellDelegate] protocol. type TokenFieldCellDelegate struct { - _TokenFieldCellMenuForRepresentedObject func(tokenFieldCell TokenFieldCell, representedObject objc.Object) Menu - _TokenFieldCellDisplayStringForRepresentedObject func(tokenFieldCell TokenFieldCell, representedObject objc.Object) string - _TokenFieldCellReadFromPasteboard func(tokenFieldCell TokenFieldCell, pboard Pasteboard) []objc.Object - _TokenFieldCellRepresentedObjectForEditingString func(tokenFieldCell TokenFieldCell, editingString string) objc.Object - _TokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem func(tokenFieldCell TokenFieldCell, substring string, tokenIndex int, selectedIndex *int) []objc.Object - _TokenFieldCellWriteRepresentedObjectsToPasteboard func(tokenFieldCell TokenFieldCell, objects []objc.Object, pboard Pasteboard) bool - _TokenFieldCellShouldAddObjectsAtIndex func(tokenFieldCell TokenFieldCell, tokens []objc.Object, index uint) []objc.Object - _TokenFieldCellEditingStringForRepresentedObject func(tokenFieldCell TokenFieldCell, representedObject objc.Object) string - _TokenFieldCellHasMenuForRepresentedObject func(tokenFieldCell TokenFieldCell, representedObject objc.Object) bool - _TokenFieldCellStyleForRepresentedObject func(tokenFieldCell TokenFieldCell, representedObject objc.Object) TokenStyle -} - -func (di *TokenFieldCellDelegate) HasTokenFieldCellMenuForRepresentedObject() bool { - return di._TokenFieldCellMenuForRepresentedObject != nil -} - -// Allows the delegate to provide a menu for the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523796-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) SetTokenFieldCellMenuForRepresentedObject(f func(tokenFieldCell TokenFieldCell, representedObject objc.Object) Menu) { - di._TokenFieldCellMenuForRepresentedObject = f -} - -// Allows the delegate to provide a menu for the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523796-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) TokenFieldCellMenuForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) Menu { - return di._TokenFieldCellMenuForRepresentedObject(tokenFieldCell, representedObject) -} -func (di *TokenFieldCellDelegate) HasTokenFieldCellDisplayStringForRepresentedObject() bool { - return di._TokenFieldCellDisplayStringForRepresentedObject != nil -} - -// Allows the delegate to provide a string to be displayed as a proxy for the represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523804-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) SetTokenFieldCellDisplayStringForRepresentedObject(f func(tokenFieldCell TokenFieldCell, representedObject objc.Object) string) { - di._TokenFieldCellDisplayStringForRepresentedObject = f -} - -// Allows the delegate to provide a string to be displayed as a proxy for the represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523804-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) TokenFieldCellDisplayStringForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) string { - return di._TokenFieldCellDisplayStringForRepresentedObject(tokenFieldCell, representedObject) -} -func (di *TokenFieldCellDelegate) HasTokenFieldCellReadFromPasteboard() bool { - return di._TokenFieldCellReadFromPasteboard != nil + _TokenFieldCellEditingStringForRepresentedObject func(tokenFieldCell TokenFieldCell, representedObject objc.Object) string } -// Allows the delegate to return an array of objects representing the data read from pboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523807-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) SetTokenFieldCellReadFromPasteboard(f func(tokenFieldCell TokenFieldCell, pboard Pasteboard) []objc.Object) { - di._TokenFieldCellReadFromPasteboard = f -} - -// Allows the delegate to return an array of objects representing the data read from pboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523807-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) TokenFieldCellReadFromPasteboard(tokenFieldCell TokenFieldCell, pboard Pasteboard) []objc.Object { - return di._TokenFieldCellReadFromPasteboard(tokenFieldCell, pboard) -} -func (di *TokenFieldCellDelegate) HasTokenFieldCellRepresentedObjectForEditingString() bool { - return di._TokenFieldCellRepresentedObjectForEditingString != nil -} - -// Allows the delegate to provide a represented object for the string being edited. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523795-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) SetTokenFieldCellRepresentedObjectForEditingString(f func(tokenFieldCell TokenFieldCell, editingString string) objc.Object) { - di._TokenFieldCellRepresentedObjectForEditingString = f -} - -// Allows the delegate to provide a represented object for the string being edited. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523795-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) TokenFieldCellRepresentedObjectForEditingString(tokenFieldCell TokenFieldCell, editingString string) objc.Object { - return di._TokenFieldCellRepresentedObjectForEditingString(tokenFieldCell, editingString) -} -func (di *TokenFieldCellDelegate) HasTokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem() bool { - return di._TokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem != nil -} - -// Allows the delegate to provide an array of appropriate completions for the contents of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523818-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) SetTokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem(f func(tokenFieldCell TokenFieldCell, substring string, tokenIndex int, selectedIndex *int) []objc.Object) { - di._TokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem = f -} - -// Allows the delegate to provide an array of appropriate completions for the contents of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523818-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) TokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem(tokenFieldCell TokenFieldCell, substring string, tokenIndex int, selectedIndex *int) []objc.Object { - return di._TokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem(tokenFieldCell, substring, tokenIndex, selectedIndex) -} -func (di *TokenFieldCellDelegate) HasTokenFieldCellWriteRepresentedObjectsToPasteboard() bool { - return di._TokenFieldCellWriteRepresentedObjectsToPasteboard != nil -} - -// Allows the delegate the opportunity to write custom pasteboard types to the pasteboard for the represented objects in objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523803-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) SetTokenFieldCellWriteRepresentedObjectsToPasteboard(f func(tokenFieldCell TokenFieldCell, objects []objc.Object, pboard Pasteboard) bool) { - di._TokenFieldCellWriteRepresentedObjectsToPasteboard = f -} - -// Allows the delegate the opportunity to write custom pasteboard types to the pasteboard for the represented objects in objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523803-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) TokenFieldCellWriteRepresentedObjectsToPasteboard(tokenFieldCell TokenFieldCell, objects []objc.Object, pboard Pasteboard) bool { - return di._TokenFieldCellWriteRepresentedObjectsToPasteboard(tokenFieldCell, objects, pboard) -} -func (di *TokenFieldCellDelegate) HasTokenFieldCellShouldAddObjectsAtIndex() bool { - return di._TokenFieldCellShouldAddObjectsAtIndex != nil -} - -// Allows the delegate to validate the tokens to be added to the receiver at a given index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523823-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) SetTokenFieldCellShouldAddObjectsAtIndex(f func(tokenFieldCell TokenFieldCell, tokens []objc.Object, index uint) []objc.Object) { - di._TokenFieldCellShouldAddObjectsAtIndex = f -} - -// Allows the delegate to validate the tokens to be added to the receiver at a given index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523823-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) TokenFieldCellShouldAddObjectsAtIndex(tokenFieldCell TokenFieldCell, tokens []objc.Object, index uint) []objc.Object { - return di._TokenFieldCellShouldAddObjectsAtIndex(tokenFieldCell, tokens, index) -} func (di *TokenFieldCellDelegate) HasTokenFieldCellEditingStringForRepresentedObject() bool { return di._TokenFieldCellEditingStringForRepresentedObject != nil } @@ -201,40 +37,6 @@ func (di *TokenFieldCellDelegate) SetTokenFieldCellEditingStringForRepresentedOb func (di *TokenFieldCellDelegate) TokenFieldCellEditingStringForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) string { return di._TokenFieldCellEditingStringForRepresentedObject(tokenFieldCell, representedObject) } -func (di *TokenFieldCellDelegate) HasTokenFieldCellHasMenuForRepresentedObject() bool { - return di._TokenFieldCellHasMenuForRepresentedObject != nil -} - -// Allows the delegate to specify whether the represented object provides a menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523826-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) SetTokenFieldCellHasMenuForRepresentedObject(f func(tokenFieldCell TokenFieldCell, representedObject objc.Object) bool) { - di._TokenFieldCellHasMenuForRepresentedObject = f -} - -// Allows the delegate to specify whether the represented object provides a menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523826-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) TokenFieldCellHasMenuForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) bool { - return di._TokenFieldCellHasMenuForRepresentedObject(tokenFieldCell, representedObject) -} -func (di *TokenFieldCellDelegate) HasTokenFieldCellStyleForRepresentedObject() bool { - return di._TokenFieldCellStyleForRepresentedObject != nil -} - -// Allows the delegate to return the token style for editing the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523829-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) SetTokenFieldCellStyleForRepresentedObject(f func(tokenFieldCell TokenFieldCell, representedObject objc.Object) TokenStyle) { - di._TokenFieldCellStyleForRepresentedObject = f -} - -// Allows the delegate to return the token style for editing the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523829-tokenfieldcell?language=objc -func (di *TokenFieldCellDelegate) TokenFieldCellStyleForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) TokenStyle { - return di._TokenFieldCellStyleForRepresentedObject(tokenFieldCell, representedObject) -} // ensure impl type implements protocol interface var _ PTokenFieldCellDelegate = (*TokenFieldCellDelegateObject)(nil) @@ -244,90 +46,6 @@ type TokenFieldCellDelegateObject struct { objc.Object } -func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellMenuForRepresentedObject() bool { - return t_.RespondsToSelector(objc.Sel("tokenFieldCell:menuForRepresentedObject:")) -} - -// Allows the delegate to provide a menu for the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523796-tokenfieldcell?language=objc -func (t_ TokenFieldCellDelegateObject) TokenFieldCellMenuForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) Menu { - rv := objc.Call[Menu](t_, objc.Sel("tokenFieldCell:menuForRepresentedObject:"), tokenFieldCell, representedObject) - return rv -} - -func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellDisplayStringForRepresentedObject() bool { - return t_.RespondsToSelector(objc.Sel("tokenFieldCell:displayStringForRepresentedObject:")) -} - -// Allows the delegate to provide a string to be displayed as a proxy for the represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523804-tokenfieldcell?language=objc -func (t_ TokenFieldCellDelegateObject) TokenFieldCellDisplayStringForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) string { - rv := objc.Call[string](t_, objc.Sel("tokenFieldCell:displayStringForRepresentedObject:"), tokenFieldCell, representedObject) - return rv -} - -func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellReadFromPasteboard() bool { - return t_.RespondsToSelector(objc.Sel("tokenFieldCell:readFromPasteboard:")) -} - -// Allows the delegate to return an array of objects representing the data read from pboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523807-tokenfieldcell?language=objc -func (t_ TokenFieldCellDelegateObject) TokenFieldCellReadFromPasteboard(tokenFieldCell TokenFieldCell, pboard Pasteboard) []objc.Object { - rv := objc.Call[[]objc.Object](t_, objc.Sel("tokenFieldCell:readFromPasteboard:"), tokenFieldCell, pboard) - return rv -} - -func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellRepresentedObjectForEditingString() bool { - return t_.RespondsToSelector(objc.Sel("tokenFieldCell:representedObjectForEditingString:")) -} - -// Allows the delegate to provide a represented object for the string being edited. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523795-tokenfieldcell?language=objc -func (t_ TokenFieldCellDelegateObject) TokenFieldCellRepresentedObjectForEditingString(tokenFieldCell TokenFieldCell, editingString string) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("tokenFieldCell:representedObjectForEditingString:"), tokenFieldCell, editingString) - return rv -} - -func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem() bool { - return t_.RespondsToSelector(objc.Sel("tokenFieldCell:completionsForSubstring:indexOfToken:indexOfSelectedItem:")) -} - -// Allows the delegate to provide an array of appropriate completions for the contents of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523818-tokenfieldcell?language=objc -func (t_ TokenFieldCellDelegateObject) TokenFieldCellCompletionsForSubstringIndexOfTokenIndexOfSelectedItem(tokenFieldCell TokenFieldCell, substring string, tokenIndex int, selectedIndex *int) []objc.Object { - rv := objc.Call[[]objc.Object](t_, objc.Sel("tokenFieldCell:completionsForSubstring:indexOfToken:indexOfSelectedItem:"), tokenFieldCell, substring, tokenIndex, selectedIndex) - return rv -} - -func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellWriteRepresentedObjectsToPasteboard() bool { - return t_.RespondsToSelector(objc.Sel("tokenFieldCell:writeRepresentedObjects:toPasteboard:")) -} - -// Allows the delegate the opportunity to write custom pasteboard types to the pasteboard for the represented objects in objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523803-tokenfieldcell?language=objc -func (t_ TokenFieldCellDelegateObject) TokenFieldCellWriteRepresentedObjectsToPasteboard(tokenFieldCell TokenFieldCell, objects []objc.Object, pboard Pasteboard) bool { - rv := objc.Call[bool](t_, objc.Sel("tokenFieldCell:writeRepresentedObjects:toPasteboard:"), tokenFieldCell, objects, pboard) - return rv -} - -func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellShouldAddObjectsAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("tokenFieldCell:shouldAddObjects:atIndex:")) -} - -// Allows the delegate to validate the tokens to be added to the receiver at a given index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523823-tokenfieldcell?language=objc -func (t_ TokenFieldCellDelegateObject) TokenFieldCellShouldAddObjectsAtIndex(tokenFieldCell TokenFieldCell, tokens []objc.Object, index uint) []objc.Object { - rv := objc.Call[[]objc.Object](t_, objc.Sel("tokenFieldCell:shouldAddObjects:atIndex:"), tokenFieldCell, tokens, index) - return rv -} - func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellEditingStringForRepresentedObject() bool { return t_.RespondsToSelector(objc.Sel("tokenFieldCell:editingStringForRepresentedObject:")) } @@ -339,27 +57,3 @@ func (t_ TokenFieldCellDelegateObject) TokenFieldCellEditingStringForRepresented rv := objc.Call[string](t_, objc.Sel("tokenFieldCell:editingStringForRepresentedObject:"), tokenFieldCell, representedObject) return rv } - -func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellHasMenuForRepresentedObject() bool { - return t_.RespondsToSelector(objc.Sel("tokenFieldCell:hasMenuForRepresentedObject:")) -} - -// Allows the delegate to specify whether the represented object provides a menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523826-tokenfieldcell?language=objc -func (t_ TokenFieldCellDelegateObject) TokenFieldCellHasMenuForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) bool { - rv := objc.Call[bool](t_, objc.Sel("tokenFieldCell:hasMenuForRepresentedObject:"), tokenFieldCell, representedObject) - return rv -} - -func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellStyleForRepresentedObject() bool { - return t_.RespondsToSelector(objc.Sel("tokenFieldCell:styleForRepresentedObject:")) -} - -// Allows the delegate to return the token style for editing the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523829-tokenfieldcell?language=objc -func (t_ TokenFieldCellDelegateObject) TokenFieldCellStyleForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) TokenStyle { - rv := objc.Call[TokenStyle](t_, objc.Sel("tokenFieldCell:styleForRepresentedObject:"), tokenFieldCell, representedObject) - return rv -} diff --git a/macos/appkit/token_field_delegate.gen.go b/macos/appkit/token_field_delegate.gen.go index b20df122..91dc8dbe 100644 --- a/macos/appkit/token_field_delegate.gen.go +++ b/macos/appkit/token_field_delegate.gen.go @@ -11,130 +11,17 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate?language=objc type PTokenFieldDelegate interface { PTextFieldDelegate - // optional - TokenFieldHasMenuForRepresentedObject(tokenField TokenField, representedObject objc.Object) bool - HasTokenFieldHasMenuForRepresentedObject() bool - - // optional - TokenFieldRepresentedObjectForEditingString(tokenField TokenField, editingString string) objc.Object - HasTokenFieldRepresentedObjectForEditingString() bool - - // optional - TokenFieldMenuForRepresentedObject(tokenField TokenField, representedObject objc.Object) Menu - HasTokenFieldMenuForRepresentedObject() bool - - // optional - TokenFieldShouldAddObjectsAtIndex(tokenField TokenField, tokens []objc.Object, index uint) []objc.Object - HasTokenFieldShouldAddObjectsAtIndex() bool - // optional TokenFieldEditingStringForRepresentedObject(tokenField TokenField, representedObject objc.Object) string HasTokenFieldEditingStringForRepresentedObject() bool - - // optional - TokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem(tokenField TokenField, substring string, tokenIndex int, selectedIndex *int) []objc.Object - HasTokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem() bool - - // optional - TokenFieldDisplayStringForRepresentedObject(tokenField TokenField, representedObject objc.Object) string - HasTokenFieldDisplayStringForRepresentedObject() bool - - // optional - TokenFieldStyleForRepresentedObject(tokenField TokenField, representedObject objc.Object) TokenStyle - HasTokenFieldStyleForRepresentedObject() bool - - // optional - TokenFieldWriteRepresentedObjectsToPasteboard(tokenField TokenField, objects []objc.Object, pboard Pasteboard) bool - HasTokenFieldWriteRepresentedObjectsToPasteboard() bool - - // optional - TokenFieldReadFromPasteboard(tokenField TokenField, pboard Pasteboard) []objc.Object - HasTokenFieldReadFromPasteboard() bool } // A delegate implementation builder for the [PTokenFieldDelegate] protocol. type TokenFieldDelegate struct { TextFieldDelegate - _TokenFieldHasMenuForRepresentedObject func(tokenField TokenField, representedObject objc.Object) bool - _TokenFieldRepresentedObjectForEditingString func(tokenField TokenField, editingString string) objc.Object - _TokenFieldMenuForRepresentedObject func(tokenField TokenField, representedObject objc.Object) Menu - _TokenFieldShouldAddObjectsAtIndex func(tokenField TokenField, tokens []objc.Object, index uint) []objc.Object - _TokenFieldEditingStringForRepresentedObject func(tokenField TokenField, representedObject objc.Object) string - _TokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem func(tokenField TokenField, substring string, tokenIndex int, selectedIndex *int) []objc.Object - _TokenFieldDisplayStringForRepresentedObject func(tokenField TokenField, representedObject objc.Object) string - _TokenFieldStyleForRepresentedObject func(tokenField TokenField, representedObject objc.Object) TokenStyle - _TokenFieldWriteRepresentedObjectsToPasteboard func(tokenField TokenField, objects []objc.Object, pboard Pasteboard) bool - _TokenFieldReadFromPasteboard func(tokenField TokenField, pboard Pasteboard) []objc.Object -} - -func (di *TokenFieldDelegate) HasTokenFieldHasMenuForRepresentedObject() bool { - return di._TokenFieldHasMenuForRepresentedObject != nil -} - -// Allows the delegate to specify whether the given represented object provides a menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1533494-tokenfield?language=objc -func (di *TokenFieldDelegate) SetTokenFieldHasMenuForRepresentedObject(f func(tokenField TokenField, representedObject objc.Object) bool) { - di._TokenFieldHasMenuForRepresentedObject = f -} - -// Allows the delegate to specify whether the given represented object provides a menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1533494-tokenfield?language=objc -func (di *TokenFieldDelegate) TokenFieldHasMenuForRepresentedObject(tokenField TokenField, representedObject objc.Object) bool { - return di._TokenFieldHasMenuForRepresentedObject(tokenField, representedObject) -} -func (di *TokenFieldDelegate) HasTokenFieldRepresentedObjectForEditingString() bool { - return di._TokenFieldRepresentedObjectForEditingString != nil -} - -// Allows the delegate to provide a represented object for the given editing string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1527909-tokenfield?language=objc -func (di *TokenFieldDelegate) SetTokenFieldRepresentedObjectForEditingString(f func(tokenField TokenField, editingString string) objc.Object) { - di._TokenFieldRepresentedObjectForEditingString = f -} - -// Allows the delegate to provide a represented object for the given editing string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1527909-tokenfield?language=objc -func (di *TokenFieldDelegate) TokenFieldRepresentedObjectForEditingString(tokenField TokenField, editingString string) objc.Object { - return di._TokenFieldRepresentedObjectForEditingString(tokenField, editingString) -} -func (di *TokenFieldDelegate) HasTokenFieldMenuForRepresentedObject() bool { - return di._TokenFieldMenuForRepresentedObject != nil + _TokenFieldEditingStringForRepresentedObject func(tokenField TokenField, representedObject objc.Object) string } -// Allows the delegate to provide a menu for the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1528750-tokenfield?language=objc -func (di *TokenFieldDelegate) SetTokenFieldMenuForRepresentedObject(f func(tokenField TokenField, representedObject objc.Object) Menu) { - di._TokenFieldMenuForRepresentedObject = f -} - -// Allows the delegate to provide a menu for the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1528750-tokenfield?language=objc -func (di *TokenFieldDelegate) TokenFieldMenuForRepresentedObject(tokenField TokenField, representedObject objc.Object) Menu { - return di._TokenFieldMenuForRepresentedObject(tokenField, representedObject) -} -func (di *TokenFieldDelegate) HasTokenFieldShouldAddObjectsAtIndex() bool { - return di._TokenFieldShouldAddObjectsAtIndex != nil -} - -// Allows the delegate to validate the tokens to be added to the receiver at a particular location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1524376-tokenfield?language=objc -func (di *TokenFieldDelegate) SetTokenFieldShouldAddObjectsAtIndex(f func(tokenField TokenField, tokens []objc.Object, index uint) []objc.Object) { - di._TokenFieldShouldAddObjectsAtIndex = f -} - -// Allows the delegate to validate the tokens to be added to the receiver at a particular location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1524376-tokenfield?language=objc -func (di *TokenFieldDelegate) TokenFieldShouldAddObjectsAtIndex(tokenField TokenField, tokens []objc.Object, index uint) []objc.Object { - return di._TokenFieldShouldAddObjectsAtIndex(tokenField, tokens, index) -} func (di *TokenFieldDelegate) HasTokenFieldEditingStringForRepresentedObject() bool { return di._TokenFieldEditingStringForRepresentedObject != nil } @@ -152,91 +39,6 @@ func (di *TokenFieldDelegate) SetTokenFieldEditingStringForRepresentedObject(f f func (di *TokenFieldDelegate) TokenFieldEditingStringForRepresentedObject(tokenField TokenField, representedObject objc.Object) string { return di._TokenFieldEditingStringForRepresentedObject(tokenField, representedObject) } -func (di *TokenFieldDelegate) HasTokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem() bool { - return di._TokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem != nil -} - -// Allows the delegate to provide an array of appropriate completions for the contents of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1532474-tokenfield?language=objc -func (di *TokenFieldDelegate) SetTokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem(f func(tokenField TokenField, substring string, tokenIndex int, selectedIndex *int) []objc.Object) { - di._TokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem = f -} - -// Allows the delegate to provide an array of appropriate completions for the contents of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1532474-tokenfield?language=objc -func (di *TokenFieldDelegate) TokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem(tokenField TokenField, substring string, tokenIndex int, selectedIndex *int) []objc.Object { - return di._TokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem(tokenField, substring, tokenIndex, selectedIndex) -} -func (di *TokenFieldDelegate) HasTokenFieldDisplayStringForRepresentedObject() bool { - return di._TokenFieldDisplayStringForRepresentedObject != nil -} - -// Allows the delegate to provide a string to be displayed as a proxy for the given represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1526020-tokenfield?language=objc -func (di *TokenFieldDelegate) SetTokenFieldDisplayStringForRepresentedObject(f func(tokenField TokenField, representedObject objc.Object) string) { - di._TokenFieldDisplayStringForRepresentedObject = f -} - -// Allows the delegate to provide a string to be displayed as a proxy for the given represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1526020-tokenfield?language=objc -func (di *TokenFieldDelegate) TokenFieldDisplayStringForRepresentedObject(tokenField TokenField, representedObject objc.Object) string { - return di._TokenFieldDisplayStringForRepresentedObject(tokenField, representedObject) -} -func (di *TokenFieldDelegate) HasTokenFieldStyleForRepresentedObject() bool { - return di._TokenFieldStyleForRepresentedObject != nil -} - -// Allows the delegate to return the token style for editing the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1530203-tokenfield?language=objc -func (di *TokenFieldDelegate) SetTokenFieldStyleForRepresentedObject(f func(tokenField TokenField, representedObject objc.Object) TokenStyle) { - di._TokenFieldStyleForRepresentedObject = f -} - -// Allows the delegate to return the token style for editing the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1530203-tokenfield?language=objc -func (di *TokenFieldDelegate) TokenFieldStyleForRepresentedObject(tokenField TokenField, representedObject objc.Object) TokenStyle { - return di._TokenFieldStyleForRepresentedObject(tokenField, representedObject) -} -func (di *TokenFieldDelegate) HasTokenFieldWriteRepresentedObjectsToPasteboard() bool { - return di._TokenFieldWriteRepresentedObjectsToPasteboard != nil -} - -// Sent so the delegate can write represented objects to the pasteboard corresponding to a given array of display strings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1528190-tokenfield?language=objc -func (di *TokenFieldDelegate) SetTokenFieldWriteRepresentedObjectsToPasteboard(f func(tokenField TokenField, objects []objc.Object, pboard Pasteboard) bool) { - di._TokenFieldWriteRepresentedObjectsToPasteboard = f -} - -// Sent so the delegate can write represented objects to the pasteboard corresponding to a given array of display strings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1528190-tokenfield?language=objc -func (di *TokenFieldDelegate) TokenFieldWriteRepresentedObjectsToPasteboard(tokenField TokenField, objects []objc.Object, pboard Pasteboard) bool { - return di._TokenFieldWriteRepresentedObjectsToPasteboard(tokenField, objects, pboard) -} -func (di *TokenFieldDelegate) HasTokenFieldReadFromPasteboard() bool { - return di._TokenFieldReadFromPasteboard != nil -} - -// Allows the delegate to return an array of objects representing the data read from the specified pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1529534-tokenfield?language=objc -func (di *TokenFieldDelegate) SetTokenFieldReadFromPasteboard(f func(tokenField TokenField, pboard Pasteboard) []objc.Object) { - di._TokenFieldReadFromPasteboard = f -} - -// Allows the delegate to return an array of objects representing the data read from the specified pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1529534-tokenfield?language=objc -func (di *TokenFieldDelegate) TokenFieldReadFromPasteboard(tokenField TokenField, pboard Pasteboard) []objc.Object { - return di._TokenFieldReadFromPasteboard(tokenField, pboard) -} // ensure impl type implements protocol interface var _ PTokenFieldDelegate = (*TokenFieldDelegateObject)(nil) @@ -246,54 +48,6 @@ type TokenFieldDelegateObject struct { TextFieldDelegateObject } -func (t_ TokenFieldDelegateObject) HasTokenFieldHasMenuForRepresentedObject() bool { - return t_.RespondsToSelector(objc.Sel("tokenField:hasMenuForRepresentedObject:")) -} - -// Allows the delegate to specify whether the given represented object provides a menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1533494-tokenfield?language=objc -func (t_ TokenFieldDelegateObject) TokenFieldHasMenuForRepresentedObject(tokenField TokenField, representedObject objc.Object) bool { - rv := objc.Call[bool](t_, objc.Sel("tokenField:hasMenuForRepresentedObject:"), tokenField, representedObject) - return rv -} - -func (t_ TokenFieldDelegateObject) HasTokenFieldRepresentedObjectForEditingString() bool { - return t_.RespondsToSelector(objc.Sel("tokenField:representedObjectForEditingString:")) -} - -// Allows the delegate to provide a represented object for the given editing string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1527909-tokenfield?language=objc -func (t_ TokenFieldDelegateObject) TokenFieldRepresentedObjectForEditingString(tokenField TokenField, editingString string) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("tokenField:representedObjectForEditingString:"), tokenField, editingString) - return rv -} - -func (t_ TokenFieldDelegateObject) HasTokenFieldMenuForRepresentedObject() bool { - return t_.RespondsToSelector(objc.Sel("tokenField:menuForRepresentedObject:")) -} - -// Allows the delegate to provide a menu for the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1528750-tokenfield?language=objc -func (t_ TokenFieldDelegateObject) TokenFieldMenuForRepresentedObject(tokenField TokenField, representedObject objc.Object) Menu { - rv := objc.Call[Menu](t_, objc.Sel("tokenField:menuForRepresentedObject:"), tokenField, representedObject) - return rv -} - -func (t_ TokenFieldDelegateObject) HasTokenFieldShouldAddObjectsAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("tokenField:shouldAddObjects:atIndex:")) -} - -// Allows the delegate to validate the tokens to be added to the receiver at a particular location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1524376-tokenfield?language=objc -func (t_ TokenFieldDelegateObject) TokenFieldShouldAddObjectsAtIndex(tokenField TokenField, tokens []objc.Object, index uint) []objc.Object { - rv := objc.Call[[]objc.Object](t_, objc.Sel("tokenField:shouldAddObjects:atIndex:"), tokenField, tokens, index) - return rv -} - func (t_ TokenFieldDelegateObject) HasTokenFieldEditingStringForRepresentedObject() bool { return t_.RespondsToSelector(objc.Sel("tokenField:editingStringForRepresentedObject:")) } @@ -305,63 +59,3 @@ func (t_ TokenFieldDelegateObject) TokenFieldEditingStringForRepresentedObject(t rv := objc.Call[string](t_, objc.Sel("tokenField:editingStringForRepresentedObject:"), tokenField, representedObject) return rv } - -func (t_ TokenFieldDelegateObject) HasTokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem() bool { - return t_.RespondsToSelector(objc.Sel("tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem:")) -} - -// Allows the delegate to provide an array of appropriate completions for the contents of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1532474-tokenfield?language=objc -func (t_ TokenFieldDelegateObject) TokenFieldCompletionsForSubstringIndexOfTokenIndexOfSelectedItem(tokenField TokenField, substring string, tokenIndex int, selectedIndex *int) []objc.Object { - rv := objc.Call[[]objc.Object](t_, objc.Sel("tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem:"), tokenField, substring, tokenIndex, selectedIndex) - return rv -} - -func (t_ TokenFieldDelegateObject) HasTokenFieldDisplayStringForRepresentedObject() bool { - return t_.RespondsToSelector(objc.Sel("tokenField:displayStringForRepresentedObject:")) -} - -// Allows the delegate to provide a string to be displayed as a proxy for the given represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1526020-tokenfield?language=objc -func (t_ TokenFieldDelegateObject) TokenFieldDisplayStringForRepresentedObject(tokenField TokenField, representedObject objc.Object) string { - rv := objc.Call[string](t_, objc.Sel("tokenField:displayStringForRepresentedObject:"), tokenField, representedObject) - return rv -} - -func (t_ TokenFieldDelegateObject) HasTokenFieldStyleForRepresentedObject() bool { - return t_.RespondsToSelector(objc.Sel("tokenField:styleForRepresentedObject:")) -} - -// Allows the delegate to return the token style for editing the specified represented object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1530203-tokenfield?language=objc -func (t_ TokenFieldDelegateObject) TokenFieldStyleForRepresentedObject(tokenField TokenField, representedObject objc.Object) TokenStyle { - rv := objc.Call[TokenStyle](t_, objc.Sel("tokenField:styleForRepresentedObject:"), tokenField, representedObject) - return rv -} - -func (t_ TokenFieldDelegateObject) HasTokenFieldWriteRepresentedObjectsToPasteboard() bool { - return t_.RespondsToSelector(objc.Sel("tokenField:writeRepresentedObjects:toPasteboard:")) -} - -// Sent so the delegate can write represented objects to the pasteboard corresponding to a given array of display strings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1528190-tokenfield?language=objc -func (t_ TokenFieldDelegateObject) TokenFieldWriteRepresentedObjectsToPasteboard(tokenField TokenField, objects []objc.Object, pboard Pasteboard) bool { - rv := objc.Call[bool](t_, objc.Sel("tokenField:writeRepresentedObjects:toPasteboard:"), tokenField, objects, pboard) - return rv -} - -func (t_ TokenFieldDelegateObject) HasTokenFieldReadFromPasteboard() bool { - return t_.RespondsToSelector(objc.Sel("tokenField:readFromPasteboard:")) -} - -// Allows the delegate to return an array of objects representing the data read from the specified pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1529534-tokenfield?language=objc -func (t_ TokenFieldDelegateObject) TokenFieldReadFromPasteboard(tokenField TokenField, pboard Pasteboard) []objc.Object { - rv := objc.Call[[]objc.Object](t_, objc.Sel("tokenField:readFromPasteboard:"), tokenField, pboard) - return rv -} diff --git a/macos/appkit/toolbar.gen.go b/macos/appkit/toolbar.gen.go index e237e6ab..eb9d9834 100644 --- a/macos/appkit/toolbar.gen.go +++ b/macos/appkit/toolbar.gen.go @@ -18,33 +18,33 @@ type _ToolbarClass struct { // An interface definition for the [Toolbar] class. type IToolbar interface { objc.IObject - RunCustomizationPalette(sender objc.IObject) + SetConfigurationFromDictionary(configDict map[string]objc.IObject) InsertItemWithItemIdentifierAtIndex(itemIdentifier ToolbarItemIdentifier, index int) RemoveItemAtIndex(index int) ValidateVisibleItems() - SetConfigurationFromDictionary(configDict map[string]objc.IObject) - Items() []ToolbarItem - Identifier() ToolbarIdentifier - DisplayMode() ToolbarDisplayMode - SetDisplayMode(value ToolbarDisplayMode) + RunCustomizationPalette(sender objc.IObject) IsVisible() bool SetVisible(value bool) - CustomizationPaletteIsRunning() bool - VisibleItems() []ToolbarItem + DisplayMode() ToolbarDisplayMode + SetDisplayMode(value ToolbarDisplayMode) + AllowsUserCustomization() bool + SetAllowsUserCustomization(value bool) + Items() []ToolbarItem + ConfigurationDictionary() map[string]objc.Object + Delegate() ToolbarDelegateObject + SetDelegate(value PToolbarDelegate) + SetDelegateObject(valueObject objc.IObject) ShowsBaselineSeparator() bool SetShowsBaselineSeparator(value bool) + VisibleItems() []ToolbarItem + AllowsExtensionItems() bool + SetAllowsExtensionItems(value bool) + CustomizationPaletteIsRunning() bool + Identifier() ToolbarIdentifier SelectedItemIdentifier() ToolbarItemIdentifier SetSelectedItemIdentifier(value ToolbarItemIdentifier) - Delegate() ToolbarDelegateObject - SetDelegate(value PToolbarDelegate) - SetDelegateObject(valueObject objc.IObject) AutosavesConfiguration() bool SetAutosavesConfiguration(value bool) - AllowsExtensionItems() bool - SetAllowsExtensionItems(value bool) - ConfigurationDictionary() map[string]objc.Object - AllowsUserCustomization() bool - SetAllowsUserCustomization(value bool) } // An object that manages the space above your app’s custom content and either below or integrated with the window’s title bar. [Full Topic] @@ -60,11 +60,6 @@ func ToolbarFrom(ptr unsafe.Pointer) Toolbar { } } -func (t_ Toolbar) Init() Toolbar { - rv := objc.Call[Toolbar](t_, objc.Sel("init")) - return rv -} - func (t_ Toolbar) InitWithIdentifier(identifier ToolbarIdentifier) Toolbar { rv := objc.Call[Toolbar](t_, objc.Sel("initWithIdentifier:"), identifier) return rv @@ -79,6 +74,11 @@ func NewToolbarWithIdentifier(identifier ToolbarIdentifier) Toolbar { return instance } +func (t_ Toolbar) Init() Toolbar { + rv := objc.Call[Toolbar](t_, objc.Sel("init")) + return rv +} + func (tc _ToolbarClass) Alloc() Toolbar { rv := objc.Call[Toolbar](tc, objc.Sel("alloc")) return rv @@ -94,11 +94,11 @@ func NewToolbar() Toolbar { return ToolbarClass.New() } -// Displays the toolbar’s customization palette and handles any user-initiated customizations. [Full Topic] +// Specifies the new configuration details for the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516979-runcustomizationpalette?language=objc -func (t_ Toolbar) RunCustomizationPalette(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("runCustomizationPalette:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516951-setconfigurationfromdictionary?language=objc +func (t_ Toolbar) SetConfigurationFromDictionary(configDict map[string]objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setConfigurationFromDictionary:"), configDict) } // Inserts an item into the toolbar at the specified index. [Full Topic] @@ -122,27 +122,26 @@ func (t_ Toolbar) ValidateVisibleItems() { objc.Call[objc.Void](t_, objc.Sel("validateVisibleItems")) } -// Specifies the new configuration details for the toolbar. [Full Topic] +// Displays the toolbar’s customization palette and handles any user-initiated customizations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516951-setconfigurationfromdictionary?language=objc -func (t_ Toolbar) SetConfigurationFromDictionary(configDict map[string]objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setConfigurationFromDictionary:"), configDict) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516979-runcustomizationpalette?language=objc +func (t_ Toolbar) RunCustomizationPalette(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("runCustomizationPalette:"), sender) } -// An array containing the toolbar’s current items, in order. [Full Topic] +// A Boolean value that indicates whether the toolbar is visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516946-items?language=objc -func (t_ Toolbar) Items() []ToolbarItem { - rv := objc.Call[[]ToolbarItem](t_, objc.Sel("items")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516935-visible?language=objc +func (t_ Toolbar) IsVisible() bool { + rv := objc.Call[bool](t_, objc.Sel("isVisible")) return rv } -// The value you use to identify the toolbar in your app. [Full Topic] +// A Boolean value that indicates whether the toolbar is visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516953-identifier?language=objc -func (t_ Toolbar) Identifier() ToolbarIdentifier { - rv := objc.Call[ToolbarIdentifier](t_, objc.Sel("identifier")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516935-visible?language=objc +func (t_ Toolbar) SetVisible(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setVisible:"), value) } // A value that indicates whether the toolbar displays items using a name, icon, or combination of elements. [Full Topic] @@ -160,67 +159,37 @@ func (t_ Toolbar) SetDisplayMode(value ToolbarDisplayMode) { objc.Call[objc.Void](t_, objc.Sel("setDisplayMode:"), value) } -// A Boolean value that indicates whether the toolbar is visible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516935-visible?language=objc -func (t_ Toolbar) IsVisible() bool { - rv := objc.Call[bool](t_, objc.Sel("isVisible")) - return rv -} - -// A Boolean value that indicates whether the toolbar is visible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516935-visible?language=objc -func (t_ Toolbar) SetVisible(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setVisible:"), value) -} - -// A Boolean value that indicates whether the toolbar’s customization palette is in use. [Full Topic] +// A Boolean value that indicates whether users can modify the contents of the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516987-customizationpaletteisrunning?language=objc -func (t_ Toolbar) CustomizationPaletteIsRunning() bool { - rv := objc.Call[bool](t_, objc.Sel("customizationPaletteIsRunning")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516962-allowsusercustomization?language=objc +func (t_ Toolbar) AllowsUserCustomization() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsUserCustomization")) return rv } -// An array containing the toolbar’s currently visible items. [Full Topic] +// A Boolean value that indicates whether users can modify the contents of the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516993-visibleitems?language=objc -func (t_ Toolbar) VisibleItems() []ToolbarItem { - rv := objc.Call[[]ToolbarItem](t_, objc.Sel("visibleItems")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516962-allowsusercustomization?language=objc +func (t_ Toolbar) SetAllowsUserCustomization(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsUserCustomization:"), value) } -// A Boolean value that indicates whether the toolbar shows the separator between the toolbar and the main window contents. [Full Topic] +// An array containing the toolbar’s current items, in order. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516954-showsbaselineseparator?language=objc -func (t_ Toolbar) ShowsBaselineSeparator() bool { - rv := objc.Call[bool](t_, objc.Sel("showsBaselineSeparator")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516946-items?language=objc +func (t_ Toolbar) Items() []ToolbarItem { + rv := objc.Call[[]ToolbarItem](t_, objc.Sel("items")) return rv } -// A Boolean value that indicates whether the toolbar shows the separator between the toolbar and the main window contents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516954-showsbaselineseparator?language=objc -func (t_ Toolbar) SetShowsBaselineSeparator(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setShowsBaselineSeparator:"), value) -} - -// The identifier of the toolbar’s currently selected item. [Full Topic] +// A dictionary containing the current configuration details for the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516999-selecteditemidentifier?language=objc -func (t_ Toolbar) SelectedItemIdentifier() ToolbarItemIdentifier { - rv := objc.Call[ToolbarItemIdentifier](t_, objc.Sel("selectedItemIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516956-configurationdictionary?language=objc +func (t_ Toolbar) ConfigurationDictionary() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](t_, objc.Sel("configurationDictionary")) return rv } -// The identifier of the toolbar’s currently selected item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516999-selecteditemidentifier?language=objc -func (t_ Toolbar) SetSelectedItemIdentifier(value ToolbarItemIdentifier) { - objc.Call[objc.Void](t_, objc.Sel("setSelectedItemIdentifier:"), value) -} - // The object you use to customize the toolbar contents and configuration. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516939-delegate?language=objc @@ -245,19 +214,27 @@ func (t_ Toolbar) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) } -// A Boolean value that indicates whether the toolbar autosaves its configuration. [Full Topic] +// A Boolean value that indicates whether the toolbar shows the separator between the toolbar and the main window contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516992-autosavesconfiguration?language=objc -func (t_ Toolbar) AutosavesConfiguration() bool { - rv := objc.Call[bool](t_, objc.Sel("autosavesConfiguration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516954-showsbaselineseparator?language=objc +func (t_ Toolbar) ShowsBaselineSeparator() bool { + rv := objc.Call[bool](t_, objc.Sel("showsBaselineSeparator")) return rv } -// A Boolean value that indicates whether the toolbar autosaves its configuration. [Full Topic] +// A Boolean value that indicates whether the toolbar shows the separator between the toolbar and the main window contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516992-autosavesconfiguration?language=objc -func (t_ Toolbar) SetAutosavesConfiguration(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutosavesConfiguration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516954-showsbaselineseparator?language=objc +func (t_ Toolbar) SetShowsBaselineSeparator(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setShowsBaselineSeparator:"), value) +} + +// An array containing the toolbar’s currently visible items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516993-visibleitems?language=objc +func (t_ Toolbar) VisibleItems() []ToolbarItem { + rv := objc.Call[[]ToolbarItem](t_, objc.Sel("visibleItems")) + return rv } // A Boolean value that indicates whether the toolbar can add items for Action extensions. [Full Topic] @@ -275,25 +252,48 @@ func (t_ Toolbar) SetAllowsExtensionItems(value bool) { objc.Call[objc.Void](t_, objc.Sel("setAllowsExtensionItems:"), value) } -// A dictionary containing the current configuration details for the toolbar. [Full Topic] +// A Boolean value that indicates whether the toolbar’s customization palette is in use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516956-configurationdictionary?language=objc -func (t_ Toolbar) ConfigurationDictionary() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](t_, objc.Sel("configurationDictionary")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516987-customizationpaletteisrunning?language=objc +func (t_ Toolbar) CustomizationPaletteIsRunning() bool { + rv := objc.Call[bool](t_, objc.Sel("customizationPaletteIsRunning")) return rv } -// A Boolean value that indicates whether users can modify the contents of the toolbar. [Full Topic] +// The value you use to identify the toolbar in your app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516962-allowsusercustomization?language=objc -func (t_ Toolbar) AllowsUserCustomization() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsUserCustomization")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516953-identifier?language=objc +func (t_ Toolbar) Identifier() ToolbarIdentifier { + rv := objc.Call[ToolbarIdentifier](t_, objc.Sel("identifier")) return rv } -// A Boolean value that indicates whether users can modify the contents of the toolbar. [Full Topic] +// The identifier of the toolbar’s currently selected item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516962-allowsusercustomization?language=objc -func (t_ Toolbar) SetAllowsUserCustomization(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsUserCustomization:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516999-selecteditemidentifier?language=objc +func (t_ Toolbar) SelectedItemIdentifier() ToolbarItemIdentifier { + rv := objc.Call[ToolbarItemIdentifier](t_, objc.Sel("selectedItemIdentifier")) + return rv +} + +// The identifier of the toolbar’s currently selected item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516999-selecteditemidentifier?language=objc +func (t_ Toolbar) SetSelectedItemIdentifier(value ToolbarItemIdentifier) { + objc.Call[objc.Void](t_, objc.Sel("setSelectedItemIdentifier:"), value) +} + +// A Boolean value that indicates whether the toolbar autosaves its configuration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516992-autosavesconfiguration?language=objc +func (t_ Toolbar) AutosavesConfiguration() bool { + rv := objc.Call[bool](t_, objc.Sel("autosavesConfiguration")) + return rv +} + +// A Boolean value that indicates whether the toolbar autosaves its configuration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbar/1516992-autosavesconfiguration?language=objc +func (t_ Toolbar) SetAutosavesConfiguration(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutosavesConfiguration:"), value) } diff --git a/macos/appkit/toolbar_delegate.gen.go b/macos/appkit/toolbar_delegate.gen.go index fa8d1554..a00a499e 100644 --- a/macos/appkit/toolbar_delegate.gen.go +++ b/macos/appkit/toolbar_delegate.gen.go @@ -12,16 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate?language=objc type PToolbarDelegate interface { // optional - ToolbarDefaultItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier - HasToolbarDefaultItemIdentifiers() bool + ToolbarAllowedItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier + HasToolbarAllowedItemIdentifiers() bool // optional ToolbarWillAddItem(notification foundation.Notification) HasToolbarWillAddItem() bool // optional - ToolbarAllowedItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier - HasToolbarAllowedItemIdentifiers() bool + ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem + HasToolbarItemForItemIdentifierWillBeInsertedIntoToolbar() bool + + // optional + ToolbarDefaultItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier + HasToolbarDefaultItemIdentifiers() bool // optional ToolbarSelectableItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier @@ -30,38 +34,34 @@ type PToolbarDelegate interface { // optional ToolbarDidRemoveItem(notification foundation.Notification) HasToolbarDidRemoveItem() bool - - // optional - ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem - HasToolbarItemForItemIdentifierWillBeInsertedIntoToolbar() bool } // A delegate implementation builder for the [PToolbarDelegate] protocol. type ToolbarDelegate struct { - _ToolbarDefaultItemIdentifiers func(toolbar Toolbar) []ToolbarItemIdentifier - _ToolbarWillAddItem func(notification foundation.Notification) _ToolbarAllowedItemIdentifiers func(toolbar Toolbar) []ToolbarItemIdentifier + _ToolbarWillAddItem func(notification foundation.Notification) + _ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar func(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem + _ToolbarDefaultItemIdentifiers func(toolbar Toolbar) []ToolbarItemIdentifier _ToolbarSelectableItemIdentifiers func(toolbar Toolbar) []ToolbarItemIdentifier _ToolbarDidRemoveItem func(notification foundation.Notification) - _ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar func(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem } -func (di *ToolbarDelegate) HasToolbarDefaultItemIdentifiers() bool { - return di._ToolbarDefaultItemIdentifiers != nil +func (di *ToolbarDelegate) HasToolbarAllowedItemIdentifiers() bool { + return di._ToolbarAllowedItemIdentifiers != nil } -// Asks the delegate to provide the default items to display on the toolbar. [Full Topic] +// Asks the delegate to provide the items allowed on the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516944-toolbardefaultitemidentifiers?language=objc -func (di *ToolbarDelegate) SetToolbarDefaultItemIdentifiers(f func(toolbar Toolbar) []ToolbarItemIdentifier) { - di._ToolbarDefaultItemIdentifiers = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516995-toolbaralloweditemidentifiers?language=objc +func (di *ToolbarDelegate) SetToolbarAllowedItemIdentifiers(f func(toolbar Toolbar) []ToolbarItemIdentifier) { + di._ToolbarAllowedItemIdentifiers = f } -// Asks the delegate to provide the default items to display on the toolbar. [Full Topic] +// Asks the delegate to provide the items allowed on the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516944-toolbardefaultitemidentifiers?language=objc -func (di *ToolbarDelegate) ToolbarDefaultItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier { - return di._ToolbarDefaultItemIdentifiers(toolbar) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516995-toolbaralloweditemidentifiers?language=objc +func (di *ToolbarDelegate) ToolbarAllowedItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier { + return di._ToolbarAllowedItemIdentifiers(toolbar) } func (di *ToolbarDelegate) HasToolbarWillAddItem() bool { return di._ToolbarWillAddItem != nil @@ -80,22 +80,39 @@ func (di *ToolbarDelegate) SetToolbarWillAddItem(f func(notification foundation. func (di *ToolbarDelegate) ToolbarWillAddItem(notification foundation.Notification) { di._ToolbarWillAddItem(notification) } -func (di *ToolbarDelegate) HasToolbarAllowedItemIdentifiers() bool { - return di._ToolbarAllowedItemIdentifiers != nil +func (di *ToolbarDelegate) HasToolbarItemForItemIdentifierWillBeInsertedIntoToolbar() bool { + return di._ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar != nil } -// Asks the delegate to provide the items allowed on the toolbar. [Full Topic] +// Asks the delegate for the toolbar item associated with the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516995-toolbaralloweditemidentifiers?language=objc -func (di *ToolbarDelegate) SetToolbarAllowedItemIdentifiers(f func(toolbar Toolbar) []ToolbarItemIdentifier) { - di._ToolbarAllowedItemIdentifiers = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516985-toolbar?language=objc +func (di *ToolbarDelegate) SetToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(f func(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem) { + di._ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar = f } -// Asks the delegate to provide the items allowed on the toolbar. [Full Topic] +// Asks the delegate for the toolbar item associated with the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516995-toolbaralloweditemidentifiers?language=objc -func (di *ToolbarDelegate) ToolbarAllowedItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier { - return di._ToolbarAllowedItemIdentifiers(toolbar) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516985-toolbar?language=objc +func (di *ToolbarDelegate) ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem { + return di._ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar, itemIdentifier, flag) +} +func (di *ToolbarDelegate) HasToolbarDefaultItemIdentifiers() bool { + return di._ToolbarDefaultItemIdentifiers != nil +} + +// Asks the delegate to provide the default items to display on the toolbar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516944-toolbardefaultitemidentifiers?language=objc +func (di *ToolbarDelegate) SetToolbarDefaultItemIdentifiers(f func(toolbar Toolbar) []ToolbarItemIdentifier) { + di._ToolbarDefaultItemIdentifiers = f +} + +// Asks the delegate to provide the default items to display on the toolbar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516944-toolbardefaultitemidentifiers?language=objc +func (di *ToolbarDelegate) ToolbarDefaultItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier { + return di._ToolbarDefaultItemIdentifiers(toolbar) } func (di *ToolbarDelegate) HasToolbarSelectableItemIdentifiers() bool { return di._ToolbarSelectableItemIdentifiers != nil @@ -131,23 +148,6 @@ func (di *ToolbarDelegate) SetToolbarDidRemoveItem(f func(notification foundatio func (di *ToolbarDelegate) ToolbarDidRemoveItem(notification foundation.Notification) { di._ToolbarDidRemoveItem(notification) } -func (di *ToolbarDelegate) HasToolbarItemForItemIdentifierWillBeInsertedIntoToolbar() bool { - return di._ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar != nil -} - -// Asks the delegate for the toolbar item associated with the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516985-toolbar?language=objc -func (di *ToolbarDelegate) SetToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(f func(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem) { - di._ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar = f -} - -// Asks the delegate for the toolbar item associated with the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516985-toolbar?language=objc -func (di *ToolbarDelegate) ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem { - return di._ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar, itemIdentifier, flag) -} // ensure impl type implements protocol interface var _ PToolbarDelegate = (*ToolbarDelegateObject)(nil) @@ -157,15 +157,15 @@ type ToolbarDelegateObject struct { objc.Object } -func (t_ ToolbarDelegateObject) HasToolbarDefaultItemIdentifiers() bool { - return t_.RespondsToSelector(objc.Sel("toolbarDefaultItemIdentifiers:")) +func (t_ ToolbarDelegateObject) HasToolbarAllowedItemIdentifiers() bool { + return t_.RespondsToSelector(objc.Sel("toolbarAllowedItemIdentifiers:")) } -// Asks the delegate to provide the default items to display on the toolbar. [Full Topic] +// Asks the delegate to provide the items allowed on the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516944-toolbardefaultitemidentifiers?language=objc -func (t_ ToolbarDelegateObject) ToolbarDefaultItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier { - rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarDefaultItemIdentifiers:"), toolbar) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516995-toolbaralloweditemidentifiers?language=objc +func (t_ ToolbarDelegateObject) ToolbarAllowedItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier { + rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarAllowedItemIdentifiers:"), toolbar) return rv } @@ -180,15 +180,27 @@ func (t_ ToolbarDelegateObject) ToolbarWillAddItem(notification foundation.Notif objc.Call[objc.Void](t_, objc.Sel("toolbarWillAddItem:"), notification) } -func (t_ ToolbarDelegateObject) HasToolbarAllowedItemIdentifiers() bool { - return t_.RespondsToSelector(objc.Sel("toolbarAllowedItemIdentifiers:")) +func (t_ ToolbarDelegateObject) HasToolbarItemForItemIdentifierWillBeInsertedIntoToolbar() bool { + return t_.RespondsToSelector(objc.Sel("toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:")) } -// Asks the delegate to provide the items allowed on the toolbar. [Full Topic] +// Asks the delegate for the toolbar item associated with the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516995-toolbaralloweditemidentifiers?language=objc -func (t_ ToolbarDelegateObject) ToolbarAllowedItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier { - rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarAllowedItemIdentifiers:"), toolbar) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516985-toolbar?language=objc +func (t_ ToolbarDelegateObject) ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem { + rv := objc.Call[ToolbarItem](t_, objc.Sel("toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:"), toolbar, itemIdentifier, flag) + return rv +} + +func (t_ ToolbarDelegateObject) HasToolbarDefaultItemIdentifiers() bool { + return t_.RespondsToSelector(objc.Sel("toolbarDefaultItemIdentifiers:")) +} + +// Asks the delegate to provide the default items to display on the toolbar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516944-toolbardefaultitemidentifiers?language=objc +func (t_ ToolbarDelegateObject) ToolbarDefaultItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier { + rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarDefaultItemIdentifiers:"), toolbar) return rv } @@ -214,15 +226,3 @@ func (t_ ToolbarDelegateObject) HasToolbarDidRemoveItem() bool { func (t_ ToolbarDelegateObject) ToolbarDidRemoveItem(notification foundation.Notification) { objc.Call[objc.Void](t_, objc.Sel("toolbarDidRemoveItem:"), notification) } - -func (t_ ToolbarDelegateObject) HasToolbarItemForItemIdentifierWillBeInsertedIntoToolbar() bool { - return t_.RespondsToSelector(objc.Sel("toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:")) -} - -// Asks the delegate for the toolbar item associated with the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516985-toolbar?language=objc -func (t_ ToolbarDelegateObject) ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem { - rv := objc.Call[ToolbarItem](t_, objc.Sel("toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:"), toolbar, itemIdentifier, flag) - return rv -} diff --git a/macos/appkit/toolbar_item.gen.go b/macos/appkit/toolbar_item.gen.go index 97b14910..23c71abe 100644 --- a/macos/appkit/toolbar_item.gen.go +++ b/macos/appkit/toolbar_item.gen.go @@ -21,37 +21,37 @@ type IToolbarItem interface { Validate() MenuFormRepresentation() MenuItem SetMenuFormRepresentation(value IMenuItem) - IsNavigational() bool - SetNavigational(value bool) - ItemIdentifier() ToolbarItemIdentifier - Title() string - SetTitle(value string) - AllowsDuplicatesInToolbar() bool + Target() objc.Object + SetTarget(value objc.IObject) + IsBordered() bool + SetBordered(value bool) + VisibilityPriority() ToolbarItemVisibilityPriority + SetVisibilityPriority(value ToolbarItemVisibilityPriority) + Action() objc.Selector + SetAction(value objc.Selector) + Autovalidates() bool + SetAutovalidates(value bool) ToolTip() string SetToolTip(value string) View() View SetView(value IView) + AllowsDuplicatesInToolbar() bool + Toolbar() Toolbar + ItemIdentifier() ToolbarItemIdentifier + IsNavigational() bool + SetNavigational(value bool) Tag() int SetTag(value int) - Action() objc.Selector - SetAction(value objc.Selector) + Title() string + SetTitle(value string) IsEnabled() bool SetEnabled(value bool) - Autovalidates() bool - SetAutovalidates(value bool) - IsBordered() bool - SetBordered(value bool) - PaletteLabel() string - SetPaletteLabel(value string) - Toolbar() Toolbar Label() string SetLabel(value string) - VisibilityPriority() ToolbarItemVisibilityPriority - SetVisibilityPriority(value ToolbarItemVisibilityPriority) - Target() objc.Object - SetTarget(value objc.IObject) Image() Image SetImage(value IImage) + PaletteLabel() string + SetPaletteLabel(value string) } // A single item that appears in a window’s toolbar. [Full Topic] @@ -123,52 +123,81 @@ func (t_ ToolbarItem) SetMenuFormRepresentation(value IMenuItem) { objc.Call[objc.Void](t_, objc.Sel("setMenuFormRepresentation:"), value) } -// A Boolean value that indicates whether the item behaves as a navigation item in the toolbar. [Full Topic] +// The object that defines the action method the toolbar item calls when clicked. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3622481-navigational?language=objc -func (t_ ToolbarItem) IsNavigational() bool { - rv := objc.Call[bool](t_, objc.Sel("isNavigational")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525982-target?language=objc +func (t_ ToolbarItem) Target() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("target")) return rv } -// A Boolean value that indicates whether the item behaves as a navigation item in the toolbar. [Full Topic] +// The object that defines the action method the toolbar item calls when clicked. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3622481-navigational?language=objc -func (t_ ToolbarItem) SetNavigational(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setNavigational:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525982-target?language=objc +func (t_ ToolbarItem) SetTarget(value objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setTarget:"), value) } -// The value you use to identify the toolbar item. [Full Topic] +// A Boolean value that indicates whether the toolbar item has a bordered style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524394-itemidentifier?language=objc -func (t_ ToolbarItem) ItemIdentifier() ToolbarItemIdentifier { - rv := objc.Call[ToolbarItemIdentifier](t_, objc.Sel("itemIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3237224-bordered?language=objc +func (t_ ToolbarItem) IsBordered() bool { + rv := objc.Call[bool](t_, objc.Sel("isBordered")) return rv } -// The title of the toolbar item. [Full Topic] +// A Boolean value that indicates whether the toolbar item has a bordered style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3237225-title?language=objc -func (t_ ToolbarItem) Title() string { - rv := objc.Call[string](t_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3237224-bordered?language=objc +func (t_ ToolbarItem) SetBordered(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setBordered:"), value) +} + +// The display priority associated with the toolbar item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1527947-visibilitypriority?language=objc +func (t_ ToolbarItem) VisibilityPriority() ToolbarItemVisibilityPriority { + rv := objc.Call[ToolbarItemVisibilityPriority](t_, objc.Sel("visibilityPriority")) return rv } -// The title of the toolbar item. [Full Topic] +// The display priority associated with the toolbar item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3237225-title?language=objc -func (t_ ToolbarItem) SetTitle(value string) { - objc.Call[objc.Void](t_, objc.Sel("setTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1527947-visibilitypriority?language=objc +func (t_ ToolbarItem) SetVisibilityPriority(value ToolbarItemVisibilityPriority) { + objc.Call[objc.Void](t_, objc.Sel("setVisibilityPriority:"), value) } -// A Boolean value that indicates whether the toolbar item can appear more than once in a toolbar. [Full Topic] +// The action method to call when someone clicks on the toolbar item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1530116-allowsduplicatesintoolbar?language=objc -func (t_ ToolbarItem) AllowsDuplicatesInToolbar() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsDuplicatesInToolbar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525723-action?language=objc +func (t_ ToolbarItem) Action() objc.Selector { + rv := objc.Call[objc.Selector](t_, objc.Sel("action")) + return rv +} + +// The action method to call when someone clicks on the toolbar item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525723-action?language=objc +func (t_ ToolbarItem) SetAction(value objc.Selector) { + objc.Call[objc.Void](t_, objc.Sel("setAction:"), value) +} + +// A Boolean value that indicates whether the toolbar automatically validates the item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524463-autovalidates?language=objc +func (t_ ToolbarItem) Autovalidates() bool { + rv := objc.Call[bool](t_, objc.Sel("autovalidates")) return rv } +// A Boolean value that indicates whether the toolbar automatically validates the item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524463-autovalidates?language=objc +func (t_ ToolbarItem) SetAutovalidates(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutovalidates:"), value) +} + // The tooltip to display when someone hovers over the item in the toolbar. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524627-tooltip?language=objc @@ -199,102 +228,88 @@ func (t_ ToolbarItem) SetView(value IView) { objc.Call[objc.Void](t_, objc.Sel("setView:"), value) } -// An integer tag you can use to identify the toolbar item. [Full Topic] +// A Boolean value that indicates whether the toolbar item can appear more than once in a toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524618-tag?language=objc -func (t_ ToolbarItem) Tag() int { - rv := objc.Call[int](t_, objc.Sel("tag")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1530116-allowsduplicatesintoolbar?language=objc +func (t_ ToolbarItem) AllowsDuplicatesInToolbar() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsDuplicatesInToolbar")) return rv } -// An integer tag you can use to identify the toolbar item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524618-tag?language=objc -func (t_ ToolbarItem) SetTag(value int) { - objc.Call[objc.Void](t_, objc.Sel("setTag:"), value) -} - -// The action method to call when someone clicks on the toolbar item. [Full Topic] +// The toolbar that currently includes the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525723-action?language=objc -func (t_ ToolbarItem) Action() objc.Selector { - rv := objc.Call[objc.Selector](t_, objc.Sel("action")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1532976-toolbar?language=objc +func (t_ ToolbarItem) Toolbar() Toolbar { + rv := objc.Call[Toolbar](t_, objc.Sel("toolbar")) return rv } -// The action method to call when someone clicks on the toolbar item. [Full Topic] +// The value you use to identify the toolbar item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525723-action?language=objc -func (t_ ToolbarItem) SetAction(value objc.Selector) { - objc.Call[objc.Void](t_, objc.Sel("setAction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524394-itemidentifier?language=objc +func (t_ ToolbarItem) ItemIdentifier() ToolbarItemIdentifier { + rv := objc.Call[ToolbarItemIdentifier](t_, objc.Sel("itemIdentifier")) + return rv } -// A Boolean value that indicates whether the item is enabled. [Full Topic] +// A Boolean value that indicates whether the item behaves as a navigation item in the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524277-enabled?language=objc -func (t_ ToolbarItem) IsEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3622481-navigational?language=objc +func (t_ ToolbarItem) IsNavigational() bool { + rv := objc.Call[bool](t_, objc.Sel("isNavigational")) return rv } -// A Boolean value that indicates whether the item is enabled. [Full Topic] +// A Boolean value that indicates whether the item behaves as a navigation item in the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524277-enabled?language=objc -func (t_ ToolbarItem) SetEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3622481-navigational?language=objc +func (t_ ToolbarItem) SetNavigational(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setNavigational:"), value) } -// A Boolean value that indicates whether the toolbar automatically validates the item. [Full Topic] +// An integer tag you can use to identify the toolbar item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524463-autovalidates?language=objc -func (t_ ToolbarItem) Autovalidates() bool { - rv := objc.Call[bool](t_, objc.Sel("autovalidates")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524618-tag?language=objc +func (t_ ToolbarItem) Tag() int { + rv := objc.Call[int](t_, objc.Sel("tag")) return rv } -// A Boolean value that indicates whether the toolbar automatically validates the item. [Full Topic] +// An integer tag you can use to identify the toolbar item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524463-autovalidates?language=objc -func (t_ ToolbarItem) SetAutovalidates(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutovalidates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524618-tag?language=objc +func (t_ ToolbarItem) SetTag(value int) { + objc.Call[objc.Void](t_, objc.Sel("setTag:"), value) } -// A Boolean value that indicates whether the toolbar item has a bordered style. [Full Topic] +// The title of the toolbar item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3237224-bordered?language=objc -func (t_ ToolbarItem) IsBordered() bool { - rv := objc.Call[bool](t_, objc.Sel("isBordered")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3237225-title?language=objc +func (t_ ToolbarItem) Title() string { + rv := objc.Call[string](t_, objc.Sel("title")) return rv } -// A Boolean value that indicates whether the toolbar item has a bordered style. [Full Topic] +// The title of the toolbar item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3237224-bordered?language=objc -func (t_ ToolbarItem) SetBordered(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setBordered:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/3237225-title?language=objc +func (t_ ToolbarItem) SetTitle(value string) { + objc.Call[objc.Void](t_, objc.Sel("setTitle:"), value) } -// The label that appears when the toolbar item is in the customization palette. [Full Topic] +// A Boolean value that indicates whether the item is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525421-palettelabel?language=objc -func (t_ ToolbarItem) PaletteLabel() string { - rv := objc.Call[string](t_, objc.Sel("paletteLabel")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524277-enabled?language=objc +func (t_ ToolbarItem) IsEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isEnabled")) return rv } -// The label that appears when the toolbar item is in the customization palette. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525421-palettelabel?language=objc -func (t_ ToolbarItem) SetPaletteLabel(value string) { - objc.Call[objc.Void](t_, objc.Sel("setPaletteLabel:"), value) -} - -// The toolbar that currently includes the item. [Full Topic] +// A Boolean value that indicates whether the item is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1532976-toolbar?language=objc -func (t_ ToolbarItem) Toolbar() Toolbar { - rv := objc.Call[Toolbar](t_, objc.Sel("toolbar")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1524277-enabled?language=objc +func (t_ ToolbarItem) SetEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setEnabled:"), value) } // The label that appears for this item in the toolbar. [Full Topic] @@ -312,36 +327,6 @@ func (t_ ToolbarItem) SetLabel(value string) { objc.Call[objc.Void](t_, objc.Sel("setLabel:"), value) } -// The display priority associated with the toolbar item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1527947-visibilitypriority?language=objc -func (t_ ToolbarItem) VisibilityPriority() ToolbarItemVisibilityPriority { - rv := objc.Call[ToolbarItemVisibilityPriority](t_, objc.Sel("visibilityPriority")) - return rv -} - -// The display priority associated with the toolbar item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1527947-visibilitypriority?language=objc -func (t_ ToolbarItem) SetVisibilityPriority(value ToolbarItemVisibilityPriority) { - objc.Call[objc.Void](t_, objc.Sel("setVisibilityPriority:"), value) -} - -// The object that defines the action method the toolbar item calls when clicked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525982-target?language=objc -func (t_ ToolbarItem) Target() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("target")) - return rv -} - -// The object that defines the action method the toolbar item calls when clicked. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525982-target?language=objc -func (t_ ToolbarItem) SetTarget(value objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setTarget:"), value) -} - // The image to display for the toolbar item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1527749-image?language=objc @@ -356,3 +341,18 @@ func (t_ ToolbarItem) Image() Image { func (t_ ToolbarItem) SetImage(value IImage) { objc.Call[objc.Void](t_, objc.Sel("setImage:"), value) } + +// The label that appears when the toolbar item is in the customization palette. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525421-palettelabel?language=objc +func (t_ ToolbarItem) PaletteLabel() string { + rv := objc.Call[string](t_, objc.Sel("paletteLabel")) + return rv +} + +// The label that appears when the toolbar item is in the customization palette. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritem/1525421-palettelabel?language=objc +func (t_ ToolbarItem) SetPaletteLabel(value string) { + objc.Call[objc.Void](t_, objc.Sel("setPaletteLabel:"), value) +} diff --git a/macos/appkit/toolbar_item_group.gen.go b/macos/appkit/toolbar_item_group.gen.go index 112f0036..15822ccd 100644 --- a/macos/appkit/toolbar_item_group.gen.go +++ b/macos/appkit/toolbar_item_group.gen.go @@ -18,16 +18,16 @@ type _ToolbarItemGroupClass struct { // An interface definition for the [ToolbarItemGroup] class. type IToolbarItemGroup interface { IToolbarItem - IsSelectedAtIndex(index int) bool SetSelectedAtIndex(selected bool, index int) + IsSelectedAtIndex(index int) bool SelectionMode() ToolbarItemGroupSelectionMode SetSelectionMode(value ToolbarItemGroupSelectionMode) + Subitems() []ToolbarItem + SetSubitems(value []IToolbarItem) ControlRepresentation() ToolbarItemGroupControlRepresentation SetControlRepresentation(value ToolbarItemGroupControlRepresentation) SelectedIndex() int SetSelectedIndex(value int) - Subitems() []ToolbarItem - SetSubitems(value []IToolbarItem) } // A group of subitems in a toolbar item. [Full Topic] @@ -55,18 +55,6 @@ func ToolbarItemGroup_GroupWithItemIdentifierTitlesSelectionModeLabelsTargetActi return ToolbarItemGroupClass.GroupWithItemIdentifierTitlesSelectionModeLabelsTargetAction(itemIdentifier, titles, selectionMode, labels, target, action) } -func (tc _ToolbarItemGroupClass) GroupWithItemIdentifierImagesSelectionModeLabelsTargetAction(itemIdentifier ToolbarItemIdentifier, images []IImage, selectionMode ToolbarItemGroupSelectionMode, labels []string, target objc.IObject, action objc.Selector) ToolbarItemGroup { - rv := objc.Call[ToolbarItemGroup](tc, objc.Sel("groupWithItemIdentifier:images:selectionMode:labels:target:action:"), itemIdentifier, images, selectionMode, labels, target, action) - return rv -} - -// Creates a grouped toolbar item with images. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemgroup/3242763-groupwithitemidentifier?language=objc -func ToolbarItemGroup_GroupWithItemIdentifierImagesSelectionModeLabelsTargetAction(itemIdentifier ToolbarItemIdentifier, images []IImage, selectionMode ToolbarItemGroupSelectionMode, labels []string, target objc.IObject, action objc.Selector) ToolbarItemGroup { - return ToolbarItemGroupClass.GroupWithItemIdentifierImagesSelectionModeLabelsTargetAction(itemIdentifier, images, selectionMode, labels, target, action) -} - func (tc _ToolbarItemGroupClass) Alloc() ToolbarItemGroup { rv := objc.Call[ToolbarItemGroup](tc, objc.Sel("alloc")) return rv @@ -101,6 +89,13 @@ func NewToolbarItemGroupWithItemIdentifier(itemIdentifier ToolbarItemIdentifier) return instance } +// Sets the selected state of a subitem in a grouped toolbar item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemgroup/3242768-setselected?language=objc +func (t_ ToolbarItemGroup) SetSelectedAtIndex(selected bool, index int) { + objc.Call[objc.Void](t_, objc.Sel("setSelected:atIndex:"), selected, index) +} + // Indicates whether a specified index is currently selected. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemgroup/3242765-isselectedatindex?language=objc @@ -109,13 +104,6 @@ func (t_ ToolbarItemGroup) IsSelectedAtIndex(index int) bool { return rv } -// Sets the selected state of a subitem in a grouped toolbar item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemgroup/3242768-setselected?language=objc -func (t_ ToolbarItemGroup) SetSelectedAtIndex(selected bool, index int) { - objc.Call[objc.Void](t_, objc.Sel("setSelected:atIndex:"), selected, index) -} - // The selection mode of the grouped toolbar item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemgroup/3242767-selectionmode?language=objc @@ -131,6 +119,21 @@ func (t_ ToolbarItemGroup) SetSelectionMode(value ToolbarItemGroupSelectionMode) objc.Call[objc.Void](t_, objc.Sel("setSelectionMode:"), value) } +// The subitems of the grouped toolbar item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemgroup/1529923-subitems?language=objc +func (t_ ToolbarItemGroup) Subitems() []ToolbarItem { + rv := objc.Call[[]ToolbarItem](t_, objc.Sel("subitems")) + return rv +} + +// The subitems of the grouped toolbar item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemgroup/1529923-subitems?language=objc +func (t_ ToolbarItemGroup) SetSubitems(value []IToolbarItem) { + objc.Call[objc.Void](t_, objc.Sel("setSubitems:"), value) +} + // A value that represents how a toolbar displays a grouped toolbar item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemgroup/3242762-controlrepresentation?language=objc @@ -160,18 +163,3 @@ func (t_ ToolbarItemGroup) SelectedIndex() int { func (t_ ToolbarItemGroup) SetSelectedIndex(value int) { objc.Call[objc.Void](t_, objc.Sel("setSelectedIndex:"), value) } - -// The subitems of the grouped toolbar item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemgroup/1529923-subitems?language=objc -func (t_ ToolbarItemGroup) Subitems() []ToolbarItem { - rv := objc.Call[[]ToolbarItem](t_, objc.Sel("subitems")) - return rv -} - -// The subitems of the grouped toolbar item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemgroup/1529923-subitems?language=objc -func (t_ ToolbarItemGroup) SetSubitems(value []IToolbarItem) { - objc.Call[objc.Void](t_, objc.Sel("setSubitems:"), value) -} diff --git a/macos/appkit/touch.gen.go b/macos/appkit/touch.gen.go index 03495b9b..68bbd534 100644 --- a/macos/appkit/touch.gen.go +++ b/macos/appkit/touch.gen.go @@ -21,13 +21,13 @@ type ITouch interface { objc.IObject PreviousLocationInView(view IView) foundation.Point LocationInView(view IView) foundation.Point + Device() objc.Object + NormalizedPosition() foundation.Point + Identity() objc.Object + DeviceSize() foundation.Size Type() TouchType Phase() TouchPhase IsResting() bool - Identity() objc.Object - NormalizedPosition() foundation.Point - DeviceSize() foundation.Size - Device() objc.Object } // A snapshot of a particular touch at an instant in time. [Full Topic] @@ -79,27 +79,19 @@ func (t_ Touch) LocationInView(view IView) foundation.Point { return rv } -// A type of touch from a Touch Bar interaction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/2544708-type?language=objc -func (t_ Touch) Type() TouchType { - rv := objc.Call[TouchType](t_, objc.Sel("type")) - return rv -} - -// The current phase of the touch. [Full Topic] +// The digitizer that generates the touch. Useful to distinguish touches emanating from multiple-device scenarios. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1531520-phase?language=objc -func (t_ Touch) Phase() TouchPhase { - rv := objc.Call[TouchPhase](t_, objc.Sel("phase")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1533562-device?language=objc +func (t_ Touch) Device() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("device")) return rv } -// The indicator for a resting touch. [Full Topic] +// The normalized position of the touch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1525663-resting?language=objc -func (t_ Touch) IsResting() bool { - rv := objc.Call[bool](t_, objc.Sel("isResting")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1534031-normalizedposition?language=objc +func (t_ Touch) NormalizedPosition() foundation.Point { + rv := objc.Call[foundation.Point](t_, objc.Sel("normalizedPosition")) return rv } @@ -111,14 +103,6 @@ func (t_ Touch) Identity() objc.Object { return rv } -// The normalized position of the touch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1534031-normalizedposition?language=objc -func (t_ Touch) NormalizedPosition() foundation.Point { - rv := objc.Call[foundation.Point](t_, objc.Sel("normalizedPosition")) - return rv -} - // The range of the touch device in points, such as 72 ppi. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1528476-devicesize?language=objc @@ -127,10 +111,26 @@ func (t_ Touch) DeviceSize() foundation.Size { return rv } -// The digitizer that generates the touch. Useful to distinguish touches emanating from multiple-device scenarios. [Full Topic] +// A type of touch from a Touch Bar interaction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1533562-device?language=objc -func (t_ Touch) Device() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("device")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/2544708-type?language=objc +func (t_ Touch) Type() TouchType { + rv := objc.Call[TouchType](t_, objc.Sel("type")) + return rv +} + +// The current phase of the touch. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1531520-phase?language=objc +func (t_ Touch) Phase() TouchPhase { + rv := objc.Call[TouchPhase](t_, objc.Sel("phase")) + return rv +} + +// The indicator for a resting touch. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1525663-resting?language=objc +func (t_ Touch) IsResting() bool { + rv := objc.Call[bool](t_, objc.Sel("isResting")) return rv } diff --git a/macos/appkit/touch_bar.gen.go b/macos/appkit/touch_bar.gen.go index fb4ff5c4..d9fd11b6 100644 --- a/macos/appkit/touch_bar.gen.go +++ b/macos/appkit/touch_bar.gen.go @@ -20,25 +20,25 @@ type _TouchBarClass struct { type ITouchBar interface { objc.IObject ItemForIdentifier(identifier TouchBarItemIdentifier) TouchBarItem + IsVisible() bool TemplateItems() foundation.Set SetTemplateItems(value foundation.ISet) CustomizationRequiredItemIdentifiers() []TouchBarItemIdentifier SetCustomizationRequiredItemIdentifiers(value []TouchBarItemIdentifier) PrincipalItemIdentifier() TouchBarItemIdentifier SetPrincipalItemIdentifier(value TouchBarItemIdentifier) + Delegate() TouchBarDelegateObject + SetDelegate(value PTouchBarDelegate) + SetDelegateObject(valueObject objc.IObject) + EscapeKeyReplacementItemIdentifier() TouchBarItemIdentifier + SetEscapeKeyReplacementItemIdentifier(value TouchBarItemIdentifier) + ItemIdentifiers() []TouchBarItemIdentifier CustomizationAllowedItemIdentifiers() []TouchBarItemIdentifier SetCustomizationAllowedItemIdentifiers(value []TouchBarItemIdentifier) CustomizationIdentifier() TouchBarCustomizationIdentifier SetCustomizationIdentifier(value TouchBarCustomizationIdentifier) DefaultItemIdentifiers() []TouchBarItemIdentifier SetDefaultItemIdentifiers(value []TouchBarItemIdentifier) - ItemIdentifiers() []TouchBarItemIdentifier - IsVisible() bool - EscapeKeyReplacementItemIdentifier() TouchBarItemIdentifier - SetEscapeKeyReplacementItemIdentifier(value TouchBarItemIdentifier) - Delegate() TouchBarDelegateObject - SetDelegate(value PTouchBarDelegate) - SetDelegateObject(valueObject objc.IObject) } // An object that provides dynamic contextual controls in the Touch Bar of supported models of MacBook Pro. [Full Topic] @@ -82,6 +82,14 @@ func (t_ TouchBar) ItemForIdentifier(identifier TouchBarItemIdentifier) TouchBar return rv } +// A Boolean value that Indicates whether the Touch Bar is eligible for display. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544756-visible?language=objc +func (t_ TouchBar) IsVisible() bool { + rv := objc.Call[bool](t_, objc.Sel("isVisible")) + return rv +} + // The primary source of items that the Touch Bar uses to fill its private items array, unless you provide items using a delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2646922-templateitems?language=objc @@ -127,49 +135,43 @@ func (t_ TouchBar) SetPrincipalItemIdentifier(value TouchBarItemIdentifier) { objc.Call[objc.Void](t_, objc.Sel("setPrincipalItemIdentifier:"), value) } -// A list of identifiers for items to show in the Touch Bar’s customization UI. [Full Topic] +// The delegate that provides items to the Touch Bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544796-customizationalloweditemidentifi?language=objc -func (t_ TouchBar) CustomizationAllowedItemIdentifiers() []TouchBarItemIdentifier { - rv := objc.Call[[]TouchBarItemIdentifier](t_, objc.Sel("customizationAllowedItemIdentifiers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544666-delegate?language=objc +func (t_ TouchBar) Delegate() TouchBarDelegateObject { + rv := objc.Call[TouchBarDelegateObject](t_, objc.Sel("delegate")) return rv } -// A list of identifiers for items to show in the Touch Bar’s customization UI. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544796-customizationalloweditemidentifi?language=objc -func (t_ TouchBar) SetCustomizationAllowedItemIdentifiers(value []TouchBarItemIdentifier) { - objc.Call[objc.Void](t_, objc.Sel("setCustomizationAllowedItemIdentifiers:"), value) -} - -// A globally unique string that makes the Touch Bar eligible for user customization. [Full Topic] +// The delegate that provides items to the Touch Bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544730-customizationidentifier?language=objc -func (t_ TouchBar) CustomizationIdentifier() TouchBarCustomizationIdentifier { - rv := objc.Call[TouchBarCustomizationIdentifier](t_, objc.Sel("customizationIdentifier")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544666-delegate?language=objc +func (t_ TouchBar) SetDelegate(value PTouchBarDelegate) { + po0 := objc.WrapAsProtocol("NSTouchBarDelegate", value) + objc.SetAssociatedObject(t_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) } -// A globally unique string that makes the Touch Bar eligible for user customization. [Full Topic] +// The delegate that provides items to the Touch Bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544730-customizationidentifier?language=objc -func (t_ TouchBar) SetCustomizationIdentifier(value TouchBarCustomizationIdentifier) { - objc.Call[objc.Void](t_, objc.Sel("setCustomizationIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544666-delegate?language=objc +func (t_ TouchBar) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) } -// A required list of identifiers for items that you want to appear in the Touch Bar after instantiating it. [Full Topic] +// The identifier of an item that replaces the system-provided button in the Touch Bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2646921-defaultitemidentifiers?language=objc -func (t_ TouchBar) DefaultItemIdentifiers() []TouchBarItemIdentifier { - rv := objc.Call[[]TouchBarItemIdentifier](t_, objc.Sel("defaultItemIdentifiers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2787731-escapekeyreplacementitemidentifi?language=objc +func (t_ TouchBar) EscapeKeyReplacementItemIdentifier() TouchBarItemIdentifier { + rv := objc.Call[TouchBarItemIdentifier](t_, objc.Sel("escapeKeyReplacementItemIdentifier")) return rv } -// A required list of identifiers for items that you want to appear in the Touch Bar after instantiating it. [Full Topic] +// The identifier of an item that replaces the system-provided button in the Touch Bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2646921-defaultitemidentifiers?language=objc -func (t_ TouchBar) SetDefaultItemIdentifiers(value []TouchBarItemIdentifier) { - objc.Call[objc.Void](t_, objc.Sel("setDefaultItemIdentifiers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2787731-escapekeyreplacementitemidentifi?language=objc +func (t_ TouchBar) SetEscapeKeyReplacementItemIdentifier(value TouchBarItemIdentifier) { + objc.Call[objc.Void](t_, objc.Sel("setEscapeKeyReplacementItemIdentifier:"), value) } // The list of identifiers for the current items in the Touch Bar. [Full Topic] @@ -180,51 +182,34 @@ func (t_ TouchBar) ItemIdentifiers() []TouchBarItemIdentifier { return rv } -// A Boolean value that Indicates whether the Touch Bar is eligible for display. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544756-visible?language=objc -func (t_ TouchBar) IsVisible() bool { - rv := objc.Call[bool](t_, objc.Sel("isVisible")) - return rv -} - -// The identifier of an item that replaces the system-provided button in the Touch Bar. [Full Topic] +// A list of identifiers for items to show in the Touch Bar’s customization UI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2787731-escapekeyreplacementitemidentifi?language=objc -func (t_ TouchBar) EscapeKeyReplacementItemIdentifier() TouchBarItemIdentifier { - rv := objc.Call[TouchBarItemIdentifier](t_, objc.Sel("escapeKeyReplacementItemIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544796-customizationalloweditemidentifi?language=objc +func (t_ TouchBar) CustomizationAllowedItemIdentifiers() []TouchBarItemIdentifier { + rv := objc.Call[[]TouchBarItemIdentifier](t_, objc.Sel("customizationAllowedItemIdentifiers")) return rv } -// The identifier of an item that replaces the system-provided button in the Touch Bar. [Full Topic] +// A list of identifiers for items to show in the Touch Bar’s customization UI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2787731-escapekeyreplacementitemidentifi?language=objc -func (t_ TouchBar) SetEscapeKeyReplacementItemIdentifier(value TouchBarItemIdentifier) { - objc.Call[objc.Void](t_, objc.Sel("setEscapeKeyReplacementItemIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544796-customizationalloweditemidentifi?language=objc +func (t_ TouchBar) SetCustomizationAllowedItemIdentifiers(value []TouchBarItemIdentifier) { + objc.Call[objc.Void](t_, objc.Sel("setCustomizationAllowedItemIdentifiers:"), value) } -// The delegate that provides items to the Touch Bar. [Full Topic] +// A globally unique string that makes the Touch Bar eligible for user customization. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544666-delegate?language=objc -func (t_ TouchBar) Delegate() TouchBarDelegateObject { - rv := objc.Call[TouchBarDelegateObject](t_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544730-customizationidentifier?language=objc +func (t_ TouchBar) CustomizationIdentifier() TouchBarCustomizationIdentifier { + rv := objc.Call[TouchBarCustomizationIdentifier](t_, objc.Sel("customizationIdentifier")) return rv } -// The delegate that provides items to the Touch Bar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544666-delegate?language=objc -func (t_ TouchBar) SetDelegate(value PTouchBarDelegate) { - po0 := objc.WrapAsProtocol("NSTouchBarDelegate", value) - objc.SetAssociatedObject(t_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) -} - -// The delegate that provides items to the Touch Bar. [Full Topic] +// A globally unique string that makes the Touch Bar eligible for user customization. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544666-delegate?language=objc -func (t_ TouchBar) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2544730-customizationidentifier?language=objc +func (t_ TouchBar) SetCustomizationIdentifier(value TouchBarCustomizationIdentifier) { + objc.Call[objc.Void](t_, objc.Sel("setCustomizationIdentifier:"), value) } // A Boolean value indicating whether the main menu contains an item for customizing the contents of the Touch Bar. [Full Topic] @@ -255,3 +240,18 @@ func (tc _TouchBarClass) SetAutomaticCustomizeTouchBarMenuItemEnabled(value bool func TouchBar_SetAutomaticCustomizeTouchBarMenuItemEnabled(value bool) { TouchBarClass.SetAutomaticCustomizeTouchBarMenuItemEnabled(value) } + +// A required list of identifiers for items that you want to appear in the Touch Bar after instantiating it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2646921-defaultitemidentifiers?language=objc +func (t_ TouchBar) DefaultItemIdentifiers() []TouchBarItemIdentifier { + rv := objc.Call[[]TouchBarItemIdentifier](t_, objc.Sel("defaultItemIdentifiers")) + return rv +} + +// A required list of identifiers for items that you want to appear in the Touch Bar after instantiating it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbar/2646921-defaultitemidentifiers?language=objc +func (t_ TouchBar) SetDefaultItemIdentifiers(value []TouchBarItemIdentifier) { + objc.Call[objc.Void](t_, objc.Sel("setDefaultItemIdentifiers:"), value) +} diff --git a/macos/appkit/touch_bar_item.gen.go b/macos/appkit/touch_bar_item.gen.go index c394d7ef..742c417f 100644 --- a/macos/appkit/touch_bar_item.gen.go +++ b/macos/appkit/touch_bar_item.gen.go @@ -19,12 +19,12 @@ type _TouchBarItemClass struct { type ITouchBarItem interface { objc.IObject IsVisible() bool - Identifier() TouchBarItemIdentifier - View() View CustomizationLabel() string VisibilityPriority() TouchBarItemPriority SetVisibilityPriority(value TouchBarItemPriority) + View() View ViewController() ViewController + Identifier() TouchBarItemIdentifier } // A UI control shown in the Touch Bar on supported models of MacBook Pro. [Full Topic] @@ -82,22 +82,6 @@ func (t_ TouchBarItem) IsVisible() bool { return rv } -// The identifier for this item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbaritem/2544812-identifier?language=objc -func (t_ TouchBarItem) Identifier() TouchBarItemIdentifier { - rv := objc.Call[TouchBarItemIdentifier](t_, objc.Sel("identifier")) - return rv -} - -// The view associated with this item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbaritem/2544719-view?language=objc -func (t_ TouchBarItem) View() View { - rv := objc.Call[View](t_, objc.Sel("view")) - return rv -} - // The user-visible string identifying this item during bar customization. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbaritem/2544693-customizationlabel?language=objc @@ -121,6 +105,14 @@ func (t_ TouchBarItem) SetVisibilityPriority(value TouchBarItemPriority) { objc.Call[objc.Void](t_, objc.Sel("setVisibilityPriority:"), value) } +// The view associated with this item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbaritem/2544719-view?language=objc +func (t_ TouchBarItem) View() View { + rv := objc.Call[View](t_, objc.Sel("view")) + return rv +} + // The view controller associated with this item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbaritem/2544843-viewcontroller?language=objc @@ -128,3 +120,11 @@ func (t_ TouchBarItem) ViewController() ViewController { rv := objc.Call[ViewController](t_, objc.Sel("viewController")) return rv } + +// The identifier for this item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbaritem/2544812-identifier?language=objc +func (t_ TouchBarItem) Identifier() TouchBarItemIdentifier { + rv := objc.Call[TouchBarItemIdentifier](t_, objc.Sel("identifier")) + return rv +} diff --git a/macos/appkit/tracking_area.gen.go b/macos/appkit/tracking_area.gen.go index 0c303df5..c5098cd2 100644 --- a/macos/appkit/tracking_area.gen.go +++ b/macos/appkit/tracking_area.gen.go @@ -19,8 +19,8 @@ type _TrackingAreaClass struct { // An interface definition for the [TrackingArea] class. type ITrackingArea interface { objc.IObject - Owner() objc.Object Options() TrackingAreaOptions + Owner() objc.Object Rect() foundation.Rect UserInfo() foundation.Dictionary } @@ -72,14 +72,6 @@ func (t_ TrackingArea) Init() TrackingArea { return rv } -// The object owning the receiver, which is the recipient of mouse-tracking, mouse-movement, and cursor-update messages. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstrackingarea/1525965-owner?language=objc -func (t_ TrackingArea) Owner() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("owner")) - return rv -} - // The options specified for the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstrackingarea/1533013-options?language=objc @@ -88,6 +80,14 @@ func (t_ TrackingArea) Options() TrackingAreaOptions { return rv } +// The object owning the receiver, which is the recipient of mouse-tracking, mouse-movement, and cursor-update messages. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstrackingarea/1525965-owner?language=objc +func (t_ TrackingArea) Owner() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("owner")) + return rv +} + // The rectangle defining the area encompassed by the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstrackingarea/1525874-rect?language=objc diff --git a/macos/appkit/tree_controller.gen.go b/macos/appkit/tree_controller.gen.go index 93d56a0e..011b60e1 100644 --- a/macos/appkit/tree_controller.gen.go +++ b/macos/appkit/tree_controller.gen.go @@ -19,46 +19,46 @@ type _TreeControllerClass struct { // An interface definition for the [TreeController] class. type ITreeController interface { IObjectController - CountKeyPathForNode(node ITreeNode) string - RemoveSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool - Insert(sender objc.IObject) objc.Object - InsertObjectAtArrangedObjectIndexPath(object objc.IObject, indexPath foundation.IIndexPath) LeafKeyPathForNode(node ITreeNode) string - MoveNodesToIndexPath(nodes []ITreeNode, startingIndexPath foundation.IIndexPath) - ChildrenKeyPathForNode(node ITreeNode) string - AddSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool - InsertObjectsAtArrangedObjectIndexPaths(objects []objc.IObject, indexPaths []foundation.IIndexPath) + RemoveObjectAtArrangedObjectIndexPath(indexPath foundation.IIndexPath) + RemoveSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool + SetSelectionIndexPath(indexPath foundation.IIndexPath) bool MoveNodeToIndexPath(node ITreeNode, indexPath foundation.IIndexPath) + AddSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool + MoveNodesToIndexPath(nodes []ITreeNode, startingIndexPath foundation.IIndexPath) + CountKeyPathForNode(node ITreeNode) string + SetSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool + InsertObjectAtArrangedObjectIndexPath(object objc.IObject, indexPath foundation.IIndexPath) RemoveObjectsAtArrangedObjectIndexPaths(indexPaths []foundation.IIndexPath) RearrangeObjects() - SetSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool - AddChild(sender objc.IObject) objc.Object InsertChild(sender objc.IObject) objc.Object - RemoveObjectAtArrangedObjectIndexPath(indexPath foundation.IIndexPath) - SetSelectionIndexPath(indexPath foundation.IIndexPath) bool + AddChild(sender objc.IObject) objc.Object + Insert(sender objc.IObject) objc.Object + InsertObjectsAtArrangedObjectIndexPaths(objects []objc.IObject, indexPaths []foundation.IIndexPath) + ChildrenKeyPathForNode(node ITreeNode) string + PreservesSelection() bool + SetPreservesSelection(value bool) + ChildrenKeyPath() string + SetChildrenKeyPath(value string) + SelectionIndexPath() foundation.IndexPath + AlwaysUsesMultipleValuesMarker() bool + SetAlwaysUsesMultipleValuesMarker(value bool) + SortDescriptors() []foundation.SortDescriptor + SetSortDescriptors(value []foundation.ISortDescriptor) + ArrangedObjects() TreeNode SelectionIndexPaths() []foundation.IndexPath - SelectsInsertedObjects() bool - SetSelectsInsertedObjects(value bool) - CountKeyPath() string - SetCountKeyPath(value string) CanInsertChild() bool - AvoidsEmptySelection() bool - SetAvoidsEmptySelection(value bool) CanInsert() bool - CanAddChild() bool - ChildrenKeyPath() string - SetChildrenKeyPath(value string) LeafKeyPath() string SetLeafKeyPath(value string) - SortDescriptors() []foundation.SortDescriptor - SetSortDescriptors(value []foundation.ISortDescriptor) - PreservesSelection() bool - SetPreservesSelection(value bool) + CanAddChild() bool + CountKeyPath() string + SetCountKeyPath(value string) + SelectsInsertedObjects() bool + SetSelectsInsertedObjects(value bool) SelectedNodes() []TreeNode - AlwaysUsesMultipleValuesMarker() bool - SetAlwaysUsesMultipleValuesMarker(value bool) - SelectionIndexPath() foundation.IndexPath - ArrangedObjects() TreeNode + AvoidsEmptySelection() bool + SetAvoidsEmptySelection(value bool) } // A bindings-compatible controller that manages a tree of objects. [Full Topic] @@ -108,14 +108,21 @@ func NewTreeControllerWithContent(content objc.IObject) TreeController { return instance } -// Returns the key path that provides the number of children for a specified node. [Full Topic] +// Returns the key path that specifies whether the node is a leaf node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1528109-countkeypathfornode?language=objc -func (t_ TreeController) CountKeyPathForNode(node ITreeNode) string { - rv := objc.Call[string](t_, objc.Sel("countKeyPathForNode:"), node) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1526740-leafkeypathfornode?language=objc +func (t_ TreeController) LeafKeyPathForNode(node ITreeNode) string { + rv := objc.Call[string](t_, objc.Sel("leafKeyPathForNode:"), node) return rv } +// Removes the object at the specified indexPath in the tree controller’s arranged objects from the tree controller’s content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1530806-removeobjectatarrangedobjectinde?language=objc +func (t_ TreeController) RemoveObjectAtArrangedObjectIndexPath(indexPath foundation.IIndexPath) { + objc.Call[objc.Void](t_, objc.Sel("removeObjectAtArrangedObjectIndexPath:"), indexPath) +} + // Removes the objects at the specified indexPaths from the tree controller’s current selection, returning YES if the selection was changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1532401-removeselectionindexpaths?language=objc @@ -124,26 +131,26 @@ func (t_ TreeController) RemoveSelectionIndexPaths(indexPaths []foundation.IInde return rv } -// Creates a new object of the class specified by objectClass and inserts it into the tree controller’s content. [Full Topic] +// Sets the tree controller’s current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1533671-insert?language=objc -func (t_ TreeController) Insert(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("insert:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1527490-setselectionindexpath?language=objc +func (t_ TreeController) SetSelectionIndexPath(indexPath foundation.IIndexPath) bool { + rv := objc.Call[bool](t_, objc.Sel("setSelectionIndexPath:"), indexPath) return rv } -// Inserts object into the tree controller’s arranged objects array at the location specified by indexPath, and adds it to the tree controller’s content. [Full Topic] +// Moves the specified tree node to the new index path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1530156-insertobject?language=objc -func (t_ TreeController) InsertObjectAtArrangedObjectIndexPath(object objc.IObject, indexPath foundation.IIndexPath) { - objc.Call[objc.Void](t_, objc.Sel("insertObject:atArrangedObjectIndexPath:"), object, indexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1532133-movenode?language=objc +func (t_ TreeController) MoveNodeToIndexPath(node ITreeNode, indexPath foundation.IIndexPath) { + objc.Call[objc.Void](t_, objc.Sel("moveNode:toIndexPath:"), node, indexPath) } -// Returns the key path that specifies whether the node is a leaf node. [Full Topic] +// Adds the objects at the specified indexPaths in the tree controller’s content to the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1526740-leafkeypathfornode?language=objc -func (t_ TreeController) LeafKeyPathForNode(node ITreeNode) string { - rv := objc.Call[string](t_, objc.Sel("leafKeyPathForNode:"), node) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1535862-addselectionindexpaths?language=objc +func (t_ TreeController) AddSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool { + rv := objc.Call[bool](t_, objc.Sel("addSelectionIndexPaths:"), indexPaths) return rv } @@ -154,34 +161,27 @@ func (t_ TreeController) MoveNodesToIndexPath(nodes []ITreeNode, startingIndexPa objc.Call[objc.Void](t_, objc.Sel("moveNodes:toIndexPath:"), nodes, startingIndexPath) } -// Returns the key path used to find the children in the specified tree node. [Full Topic] +// Returns the key path that provides the number of children for a specified node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1525412-childrenkeypathfornode?language=objc -func (t_ TreeController) ChildrenKeyPathForNode(node ITreeNode) string { - rv := objc.Call[string](t_, objc.Sel("childrenKeyPathForNode:"), node) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1528109-countkeypathfornode?language=objc +func (t_ TreeController) CountKeyPathForNode(node ITreeNode) string { + rv := objc.Call[string](t_, objc.Sel("countKeyPathForNode:"), node) return rv } -// Adds the objects at the specified indexPaths in the tree controller’s content to the current selection. [Full Topic] +// Sets the tree controller’s current selection to the specified index paths. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1535862-addselectionindexpaths?language=objc -func (t_ TreeController) AddSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool { - rv := objc.Call[bool](t_, objc.Sel("addSelectionIndexPaths:"), indexPaths) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1528494-setselectionindexpaths?language=objc +func (t_ TreeController) SetSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool { + rv := objc.Call[bool](t_, objc.Sel("setSelectionIndexPaths:"), indexPaths) return rv } -// Inserts objects into the tree controller’s arranged objects array at the locations specified in indexPaths, and adds them to the tree controller’s content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1530531-insertobjects?language=objc -func (t_ TreeController) InsertObjectsAtArrangedObjectIndexPaths(objects []objc.IObject, indexPaths []foundation.IIndexPath) { - objc.Call[objc.Void](t_, objc.Sel("insertObjects:atArrangedObjectIndexPaths:"), objects, indexPaths) -} - -// Moves the specified tree node to the new index path. [Full Topic] +// Inserts object into the tree controller’s arranged objects array at the location specified by indexPath, and adds it to the tree controller’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1532133-movenode?language=objc -func (t_ TreeController) MoveNodeToIndexPath(node ITreeNode, indexPath foundation.IIndexPath) { - objc.Call[objc.Void](t_, objc.Sel("moveNode:toIndexPath:"), node, indexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1530156-insertobject?language=objc +func (t_ TreeController) InsertObjectAtArrangedObjectIndexPath(object objc.IObject, indexPath foundation.IIndexPath) { + objc.Call[objc.Void](t_, objc.Sel("insertObject:atArrangedObjectIndexPath:"), object, indexPath) } // Removes the objects at the specified indexPaths in the tree controller’s arranged objects from the tree controller’s content. [Full Topic] @@ -198,11 +198,11 @@ func (t_ TreeController) RearrangeObjects() { objc.Call[objc.Void](t_, objc.Sel("rearrangeObjects")) } -// Sets the tree controller’s current selection to the specified index paths. [Full Topic] +// Creates a new object of the class specified by objectClass and inserts it into the tree controller’s content as a child of the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1528494-setselectionindexpaths?language=objc -func (t_ TreeController) SetSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool { - rv := objc.Call[bool](t_, objc.Sel("setSelectionIndexPaths:"), indexPaths) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1524323-insertchild?language=objc +func (t_ TreeController) InsertChild(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("insertChild:"), sender) return rv } @@ -214,119 +214,127 @@ func (t_ TreeController) AddChild(sender objc.IObject) objc.Object { return rv } -// Creates a new object of the class specified by objectClass and inserts it into the tree controller’s content as a child of the current selection. [Full Topic] +// Creates a new object of the class specified by objectClass and inserts it into the tree controller’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1524323-insertchild?language=objc -func (t_ TreeController) InsertChild(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("insertChild:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1533671-insert?language=objc +func (t_ TreeController) Insert(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("insert:"), sender) return rv } -// Removes the object at the specified indexPath in the tree controller’s arranged objects from the tree controller’s content. [Full Topic] +// Inserts objects into the tree controller’s arranged objects array at the locations specified in indexPaths, and adds them to the tree controller’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1530806-removeobjectatarrangedobjectinde?language=objc -func (t_ TreeController) RemoveObjectAtArrangedObjectIndexPath(indexPath foundation.IIndexPath) { - objc.Call[objc.Void](t_, objc.Sel("removeObjectAtArrangedObjectIndexPath:"), indexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1530531-insertobjects?language=objc +func (t_ TreeController) InsertObjectsAtArrangedObjectIndexPaths(objects []objc.IObject, indexPaths []foundation.IIndexPath) { + objc.Call[objc.Void](t_, objc.Sel("insertObjects:atArrangedObjectIndexPaths:"), objects, indexPaths) } -// Sets the tree controller’s current selection. [Full Topic] +// Returns the key path used to find the children in the specified tree node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1527490-setselectionindexpath?language=objc -func (t_ TreeController) SetSelectionIndexPath(indexPath foundation.IIndexPath) bool { - rv := objc.Call[bool](t_, objc.Sel("setSelectionIndexPath:"), indexPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1525412-childrenkeypathfornode?language=objc +func (t_ TreeController) ChildrenKeyPathForNode(node ITreeNode) string { + rv := objc.Call[string](t_, objc.Sel("childrenKeyPathForNode:"), node) return rv } -// An array containing the index paths of the currently selected objects. [Full Topic] +// A Boolean value that indicates whether the tree controller will attempt to preserve the current selection when the content changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1534861-selectionindexpaths?language=objc -func (t_ TreeController) SelectionIndexPaths() []foundation.IndexPath { - rv := objc.Call[[]foundation.IndexPath](t_, objc.Sel("selectionIndexPaths")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1524473-preservesselection?language=objc +func (t_ TreeController) PreservesSelection() bool { + rv := objc.Call[bool](t_, objc.Sel("preservesSelection")) return rv } -// A Boolean value that indicates whether the tree controller automatically selects objects as they are inserted. [Full Topic] +// A Boolean value that indicates whether the tree controller will attempt to preserve the current selection when the content changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1534200-selectsinsertedobjects?language=objc -func (t_ TreeController) SelectsInsertedObjects() bool { - rv := objc.Call[bool](t_, objc.Sel("selectsInsertedObjects")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1524473-preservesselection?language=objc +func (t_ TreeController) SetPreservesSelection(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setPreservesSelection:"), value) +} + +// The key path used to find the children in the tree controller’s objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1528721-childrenkeypath?language=objc +func (t_ TreeController) ChildrenKeyPath() string { + rv := objc.Call[string](t_, objc.Sel("childrenKeyPath")) return rv } -// A Boolean value that indicates whether the tree controller automatically selects objects as they are inserted. [Full Topic] +// The key path used to find the children in the tree controller’s objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1534200-selectsinsertedobjects?language=objc -func (t_ TreeController) SetSelectsInsertedObjects(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setSelectsInsertedObjects:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1528721-childrenkeypath?language=objc +func (t_ TreeController) SetChildrenKeyPath(value string) { + objc.Call[objc.Void](t_, objc.Sel("setChildrenKeyPath:"), value) } -// The key path used to find the number of children for a node. [Full Topic] +// The index path of the first selected object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1529127-countkeypath?language=objc -func (t_ TreeController) CountKeyPath() string { - rv := objc.Call[string](t_, objc.Sel("countKeyPath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1533951-selectionindexpath?language=objc +func (t_ TreeController) SelectionIndexPath() foundation.IndexPath { + rv := objc.Call[foundation.IndexPath](t_, objc.Sel("selectionIndexPath")) return rv } -// The key path used to find the number of children for a node. [Full Topic] +// A Boolean value that indicates whether the tree controller always returns the multiple values marker when multiple objects are selected, even if the selected items have the same value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1529127-countkeypath?language=objc -func (t_ TreeController) SetCountKeyPath(value string) { - objc.Call[objc.Void](t_, objc.Sel("setCountKeyPath:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1529530-alwaysusesmultiplevaluesmarker?language=objc +func (t_ TreeController) AlwaysUsesMultipleValuesMarker() bool { + rv := objc.Call[bool](t_, objc.Sel("alwaysUsesMultipleValuesMarker")) + return rv } -// A Boolean value that indicates if a child object can be inserted into the tree controller’s content. [Full Topic] +// A Boolean value that indicates whether the tree controller always returns the multiple values marker when multiple objects are selected, even if the selected items have the same value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1524647-caninsertchild?language=objc -func (t_ TreeController) CanInsertChild() bool { - rv := objc.Call[bool](t_, objc.Sel("canInsertChild")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1529530-alwaysusesmultiplevaluesmarker?language=objc +func (t_ TreeController) SetAlwaysUsesMultipleValuesMarker(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAlwaysUsesMultipleValuesMarker:"), value) } -// A Boolean value that indicates whether the tree controller requires the content array to attempt to maintain a selection at all times, avoiding an empty selection. [Full Topic] +// An array containing the sort descriptors used to arrange the tree controller’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1526188-avoidsemptyselection?language=objc -func (t_ TreeController) AvoidsEmptySelection() bool { - rv := objc.Call[bool](t_, objc.Sel("avoidsEmptySelection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1526827-sortdescriptors?language=objc +func (t_ TreeController) SortDescriptors() []foundation.SortDescriptor { + rv := objc.Call[[]foundation.SortDescriptor](t_, objc.Sel("sortDescriptors")) return rv } -// A Boolean value that indicates whether the tree controller requires the content array to attempt to maintain a selection at all times, avoiding an empty selection. [Full Topic] +// An array containing the sort descriptors used to arrange the tree controller’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1526188-avoidsemptyselection?language=objc -func (t_ TreeController) SetAvoidsEmptySelection(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAvoidsEmptySelection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1526827-sortdescriptors?language=objc +func (t_ TreeController) SetSortDescriptors(value []foundation.ISortDescriptor) { + objc.Call[objc.Void](t_, objc.Sel("setSortDescriptors:"), value) } -// A Boolean value that indicates if an object can be inserted into the tree controller’s content. [Full Topic] +// The tree controller’s sorted content objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1534180-caninsert?language=objc -func (t_ TreeController) CanInsert() bool { - rv := objc.Call[bool](t_, objc.Sel("canInsert")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1527465-arrangedobjects?language=objc +func (t_ TreeController) ArrangedObjects() TreeNode { + rv := objc.Call[TreeNode](t_, objc.Sel("arrangedObjects")) return rv } -// A Boolean value that indicates if a child object can be added to the tree controller’s content. [Full Topic] +// An array containing the index paths of the currently selected objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1525790-canaddchild?language=objc -func (t_ TreeController) CanAddChild() bool { - rv := objc.Call[bool](t_, objc.Sel("canAddChild")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1534861-selectionindexpaths?language=objc +func (t_ TreeController) SelectionIndexPaths() []foundation.IndexPath { + rv := objc.Call[[]foundation.IndexPath](t_, objc.Sel("selectionIndexPaths")) return rv } -// The key path used to find the children in the tree controller’s objects. [Full Topic] +// A Boolean value that indicates if a child object can be inserted into the tree controller’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1528721-childrenkeypath?language=objc -func (t_ TreeController) ChildrenKeyPath() string { - rv := objc.Call[string](t_, objc.Sel("childrenKeyPath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1524647-caninsertchild?language=objc +func (t_ TreeController) CanInsertChild() bool { + rv := objc.Call[bool](t_, objc.Sel("canInsertChild")) return rv } -// The key path used to find the children in the tree controller’s objects. [Full Topic] +// A Boolean value that indicates if an object can be inserted into the tree controller’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1528721-childrenkeypath?language=objc -func (t_ TreeController) SetChildrenKeyPath(value string) { - objc.Call[objc.Void](t_, objc.Sel("setChildrenKeyPath:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1534180-caninsert?language=objc +func (t_ TreeController) CanInsert() bool { + rv := objc.Call[bool](t_, objc.Sel("canInsert")) + return rv } // The key path used by the tree controller to determine if a node is a leaf key. [Full Topic] @@ -344,34 +352,42 @@ func (t_ TreeController) SetLeafKeyPath(value string) { objc.Call[objc.Void](t_, objc.Sel("setLeafKeyPath:"), value) } -// An array containing the sort descriptors used to arrange the tree controller’s content. [Full Topic] +// A Boolean value that indicates if a child object can be added to the tree controller’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1526827-sortdescriptors?language=objc -func (t_ TreeController) SortDescriptors() []foundation.SortDescriptor { - rv := objc.Call[[]foundation.SortDescriptor](t_, objc.Sel("sortDescriptors")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1525790-canaddchild?language=objc +func (t_ TreeController) CanAddChild() bool { + rv := objc.Call[bool](t_, objc.Sel("canAddChild")) return rv } -// An array containing the sort descriptors used to arrange the tree controller’s content. [Full Topic] +// The key path used to find the number of children for a node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1526827-sortdescriptors?language=objc -func (t_ TreeController) SetSortDescriptors(value []foundation.ISortDescriptor) { - objc.Call[objc.Void](t_, objc.Sel("setSortDescriptors:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1529127-countkeypath?language=objc +func (t_ TreeController) CountKeyPath() string { + rv := objc.Call[string](t_, objc.Sel("countKeyPath")) + return rv } -// A Boolean value that indicates whether the tree controller will attempt to preserve the current selection when the content changes. [Full Topic] +// The key path used to find the number of children for a node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1524473-preservesselection?language=objc -func (t_ TreeController) PreservesSelection() bool { - rv := objc.Call[bool](t_, objc.Sel("preservesSelection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1529127-countkeypath?language=objc +func (t_ TreeController) SetCountKeyPath(value string) { + objc.Call[objc.Void](t_, objc.Sel("setCountKeyPath:"), value) +} + +// A Boolean value that indicates whether the tree controller automatically selects objects as they are inserted. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1534200-selectsinsertedobjects?language=objc +func (t_ TreeController) SelectsInsertedObjects() bool { + rv := objc.Call[bool](t_, objc.Sel("selectsInsertedObjects")) return rv } -// A Boolean value that indicates whether the tree controller will attempt to preserve the current selection when the content changes. [Full Topic] +// A Boolean value that indicates whether the tree controller automatically selects objects as they are inserted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1524473-preservesselection?language=objc -func (t_ TreeController) SetPreservesSelection(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setPreservesSelection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1534200-selectsinsertedobjects?language=objc +func (t_ TreeController) SetSelectsInsertedObjects(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setSelectsInsertedObjects:"), value) } // An array containing the tree controller’s selected tree nodes. [Full Topic] @@ -382,33 +398,17 @@ func (t_ TreeController) SelectedNodes() []TreeNode { return rv } -// A Boolean value that indicates whether the tree controller always returns the multiple values marker when multiple objects are selected, even if the selected items have the same value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1529530-alwaysusesmultiplevaluesmarker?language=objc -func (t_ TreeController) AlwaysUsesMultipleValuesMarker() bool { - rv := objc.Call[bool](t_, objc.Sel("alwaysUsesMultipleValuesMarker")) - return rv -} - -// A Boolean value that indicates whether the tree controller always returns the multiple values marker when multiple objects are selected, even if the selected items have the same value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1529530-alwaysusesmultiplevaluesmarker?language=objc -func (t_ TreeController) SetAlwaysUsesMultipleValuesMarker(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAlwaysUsesMultipleValuesMarker:"), value) -} - -// The index path of the first selected object. [Full Topic] +// A Boolean value that indicates whether the tree controller requires the content array to attempt to maintain a selection at all times, avoiding an empty selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1533951-selectionindexpath?language=objc -func (t_ TreeController) SelectionIndexPath() foundation.IndexPath { - rv := objc.Call[foundation.IndexPath](t_, objc.Sel("selectionIndexPath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1526188-avoidsemptyselection?language=objc +func (t_ TreeController) AvoidsEmptySelection() bool { + rv := objc.Call[bool](t_, objc.Sel("avoidsEmptySelection")) return rv } -// The tree controller’s sorted content objects. [Full Topic] +// A Boolean value that indicates whether the tree controller requires the content array to attempt to maintain a selection at all times, avoiding an empty selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1527465-arrangedobjects?language=objc -func (t_ TreeController) ArrangedObjects() TreeNode { - rv := objc.Call[TreeNode](t_, objc.Sel("arrangedObjects")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreecontroller/1526188-avoidsemptyselection?language=objc +func (t_ TreeController) SetAvoidsEmptySelection(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAvoidsEmptySelection:"), value) } diff --git a/macos/appkit/tree_node.gen.go b/macos/appkit/tree_node.gen.go index 9f02a43a..b9fa5770 100644 --- a/macos/appkit/tree_node.gen.go +++ b/macos/appkit/tree_node.gen.go @@ -21,12 +21,12 @@ type ITreeNode interface { objc.IObject SortWithSortDescriptorsRecursively(sortDescriptors []foundation.ISortDescriptor, recursively bool) DescendantNodeAtIndexPath(indexPath foundation.IIndexPath) TreeNode + ParentNode() TreeNode IsLeaf() bool - ChildNodes() []TreeNode MutableChildNodes() foundation.MutableArray - RepresentedObject() objc.Object - ParentNode() TreeNode + ChildNodes() []TreeNode IndexPath() foundation.IndexPath + RepresentedObject() objc.Object } // A node in a tree of nodes. [Full Topic] @@ -103,19 +103,19 @@ func (t_ TreeNode) DescendantNodeAtIndexPath(indexPath foundation.IIndexPath) Tr return rv } -// A Boolean that indicates whether the receiver is a leaf node. [Full Topic] +// The receiver’s parent node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1532729-leaf?language=objc -func (t_ TreeNode) IsLeaf() bool { - rv := objc.Call[bool](t_, objc.Sel("isLeaf")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1530728-parentnode?language=objc +func (t_ TreeNode) ParentNode() TreeNode { + rv := objc.Call[TreeNode](t_, objc.Sel("parentNode")) return rv } -// An array containing receiver’s child nodes. [Full Topic] +// A Boolean that indicates whether the receiver is a leaf node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1525285-childnodes?language=objc -func (t_ TreeNode) ChildNodes() []TreeNode { - rv := objc.Call[[]TreeNode](t_, objc.Sel("childNodes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1532729-leaf?language=objc +func (t_ TreeNode) IsLeaf() bool { + rv := objc.Call[bool](t_, objc.Sel("isLeaf")) return rv } @@ -127,19 +127,11 @@ func (t_ TreeNode) MutableChildNodes() foundation.MutableArray { return rv } -// The object the tree node represents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1531596-representedobject?language=objc -func (t_ TreeNode) RepresentedObject() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("representedObject")) - return rv -} - -// The receiver’s parent node. [Full Topic] +// An array containing receiver’s child nodes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1530728-parentnode?language=objc -func (t_ TreeNode) ParentNode() TreeNode { - rv := objc.Call[TreeNode](t_, objc.Sel("parentNode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1525285-childnodes?language=objc +func (t_ TreeNode) ChildNodes() []TreeNode { + rv := objc.Call[[]TreeNode](t_, objc.Sel("childNodes")) return rv } @@ -150,3 +142,11 @@ func (t_ TreeNode) IndexPath() foundation.IndexPath { rv := objc.Call[foundation.IndexPath](t_, objc.Sel("indexPath")) return rv } + +// The object the tree node represents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1531596-representedobject?language=objc +func (t_ TreeNode) RepresentedObject() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("representedObject")) + return rv +} diff --git a/macos/appkit/typesetter.gen.go b/macos/appkit/typesetter.gen.go index 881b7419..da94e45d 100644 --- a/macos/appkit/typesetter.gen.go +++ b/macos/appkit/typesetter.gen.go @@ -19,57 +19,56 @@ type _TypesetterClass struct { // An interface definition for the [Typesetter] class. type ITypesetter interface { objc.IObject - ParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(glyphIndex uint, rect foundation.Rect) float64 + SetLocationWithAdvancementsForStartOfGlyphRange(location foundation.Point, advancements *float64, glyphRange foundation.Range) + ShouldBreakLineByWordBeforeCharacterAtIndex(charIndex uint) bool + GetLineFragmentRectUsedRectRemainingRectForStartingGlyphAtIndexProposedRectLineSpacingParagraphSpacingBeforeParagraphSpacingAfter(lineFragmentRect foundation.RectPointer, lineFragmentUsedRect foundation.RectPointer, remainingRect foundation.RectPointer, startingGlyphIndex uint, proposedRect foundation.Rect, lineSpacing float64, paragraphSpacingBefore float64, paragraphSpacingAfter float64) + SubstituteFontForFont(originalFont IFont) Font SetNotShownAttributeForGlyphRange(flag bool, glyphRange foundation.Range) + SetHardInvalidationForGlyphRange(flag bool, glyphRange foundation.Range) + HyphenCharacterForGlyphAtIndex(glyphIndex uint) objc.Object + EndLineWithGlyphRange(lineGlyphRange foundation.Range) + WillSetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(lineRect foundation.RectPointer, glyphRange foundation.Range, usedRect foundation.RectPointer, baselineOffset *float64) ShouldBreakLineByHyphenatingBeforeCharacterAtIndex(charIndex uint) bool LayoutParagraphAtPoint(lineFragmentOrigin foundation.PointPointer) uint - ShouldBreakLineByWordBeforeCharacterAtIndex(charIndex uint) bool - WillSetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(lineRect foundation.RectPointer, glyphRange foundation.Range, usedRect foundation.RectPointer, baselineOffset *float64) - SetDrawsOutsideLineFragmentForGlyphRange(flag bool, glyphRange foundation.Range) - SetParagraphGlyphRangeSeparatorGlyphRange(paragraphRange foundation.Range, paragraphSeparatorRange foundation.Range) EndParagraph() - SetHardInvalidationForGlyphRange(flag bool, glyphRange foundation.Range) - LineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(glyphIndex uint, rect foundation.Rect) float64 - SetLocationWithAdvancementsForStartOfGlyphRange(location foundation.Point, advancements *float64, glyphRange foundation.Range) - BeginParagraph() - LayoutCharactersInRangeForLayoutManagerMaximumNumberOfLineFragments(characterRange foundation.Range, layoutManager ILayoutManager, maxNumLines uint) foundation.Range - TextTabForGlyphLocationWritingDirectionMaxLocation(glyphLocation float64, direction WritingDirection, maxLocation float64) TextTab - SetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(fragmentRect foundation.Rect, glyphRange foundation.Range, usedRect foundation.Rect, baselineOffset float64) HyphenationFactorForGlyphAtIndex(glyphIndex uint) float32 - GlyphRangeForCharacterRangeActualCharacterRange(charRange foundation.Range, actualCharRange foundation.RangePointer) foundation.Range BoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(glyphIndex uint, textContainer ITextContainer, proposedRect foundation.Rect, glyphPosition foundation.Point, charIndex uint) foundation.Rect + GlyphRangeForCharacterRangeActualCharacterRange(charRange foundation.Range, actualCharRange foundation.RangePointer) foundation.Range + LineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(glyphIndex uint, rect foundation.Rect) float64 + SetDrawsOutsideLineFragmentForGlyphRange(flag bool, glyphRange foundation.Range) + SetParagraphGlyphRangeSeparatorGlyphRange(paragraphRange foundation.Range, paragraphSeparatorRange foundation.Range) BeginLineWithGlyphAtIndex(glyphIndex uint) - SetBidiLevelsForGlyphRange(levels *uint8, glyphRange foundation.Range) - GetLineFragmentRectUsedRectForParagraphSeparatorGlyphRangeAtProposedOrigin(lineFragmentRect foundation.RectPointer, lineFragmentUsedRect foundation.RectPointer, paragraphSeparatorGlyphRange foundation.Range, lineOrigin foundation.Point) ParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect(glyphIndex uint, rect foundation.Rect) float64 - CharacterRangeForGlyphRangeActualGlyphRange(glyphRange foundation.Range, actualGlyphRange foundation.RangePointer) foundation.Range - HyphenCharacterForGlyphAtIndex(glyphIndex uint) objc.Object - SetAttachmentSizeForGlyphRange(attachmentSize foundation.Size, glyphRange foundation.Range) + TextTabForGlyphLocationWritingDirectionMaxLocation(glyphLocation float64, direction WritingDirection, maxLocation float64) TextTab BaselineOffsetInLayoutManagerGlyphIndex(layoutMgr ILayoutManager, glyphIndex uint) float64 - GetLineFragmentRectUsedRectRemainingRectForStartingGlyphAtIndexProposedRectLineSpacingParagraphSpacingBeforeParagraphSpacingAfter(lineFragmentRect foundation.RectPointer, lineFragmentUsedRect foundation.RectPointer, remainingRect foundation.RectPointer, startingGlyphIndex uint, proposedRect foundation.Rect, lineSpacing float64, paragraphSpacingBefore float64, paragraphSpacingAfter float64) - EndLineWithGlyphRange(lineGlyphRange foundation.Range) - SubstituteFontForFont(originalFont IFont) Font - ParagraphSeparatorCharacterRange() foundation.Range - HyphenationFactor() float32 - SetHyphenationFactor(value float32) + SetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(fragmentRect foundation.Rect, glyphRange foundation.Range, usedRect foundation.Rect, baselineOffset float64) + LayoutCharactersInRangeForLayoutManagerMaximumNumberOfLineFragments(characterRange foundation.Range, layoutManager ILayoutManager, maxNumLines uint) foundation.Range + SetAttachmentSizeForGlyphRange(attachmentSize foundation.Size, glyphRange foundation.Range) + ParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(glyphIndex uint, rect foundation.Rect) float64 + CharacterRangeForGlyphRangeActualGlyphRange(glyphRange foundation.Range, actualGlyphRange foundation.RangePointer) foundation.Range + SetBidiLevelsForGlyphRange(levels *uint8, glyphRange foundation.Range) + BeginParagraph() + BidiProcessingEnabled() bool + SetBidiProcessingEnabled(value bool) AttributedString() foundation.AttributedString SetAttributedString(value foundation.IAttributedString) - CurrentParagraphStyle() ParagraphStyle - ParagraphCharacterRange() foundation.Range + ParagraphGlyphRange() foundation.Range + ParagraphSeparatorCharacterRange() foundation.Range LayoutManager() LayoutManager - BidiProcessingEnabled() bool - SetBidiProcessingEnabled(value bool) - TypesetterBehavior() TypesetterBehavior - SetTypesetterBehavior(value TypesetterBehavior) LineFragmentPadding() float64 SetLineFragmentPadding(value float64) - ParagraphSeparatorGlyphRange() foundation.Range - AttributesForExtraLineFragment() map[foundation.AttributedStringKey]objc.Object UsesFontLeading() bool SetUsesFontLeading(value bool) + TypesetterBehavior() TypesetterBehavior + SetTypesetterBehavior(value TypesetterBehavior) TextContainers() []TextContainer - ParagraphGlyphRange() foundation.Range + HyphenationFactor() float32 + SetHyphenationFactor(value float32) + ParagraphCharacterRange() foundation.Range + CurrentParagraphStyle() ParagraphStyle CurrentTextContainer() TextContainer + ParagraphSeparatorGlyphRange() foundation.Range + AttributesForExtraLineFragment() map[foundation.AttributedStringKey]objc.Object } // An abstract class that performs various type layout tasks. [Full Topic] @@ -105,35 +104,11 @@ func (t_ Typesetter) Init() Typesetter { return rv } -// Returns the paragraph spacing that is in effect after the specified glyph. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534661-paragraphspacingafterglyphatinde?language=objc -func (t_ Typesetter) ParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(glyphIndex uint, rect foundation.Rect) float64 { - rv := objc.Call[float64](t_, objc.Sel("paragraphSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:"), glyphIndex, rect) - return rv -} - -// Sets whether the specified glyphs are not shown. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530373-setnotshownattribute?language=objc -func (t_ Typesetter) SetNotShownAttributeForGlyphRange(flag bool, glyphRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setNotShownAttribute:forGlyphRange:"), flag, glyphRange) -} - -// Returns whether the line being laid out should be broken by hyphenating at the specified character. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534525-shouldbreaklinebyhyphenatingbefo?language=objc -func (t_ Typesetter) ShouldBreakLineByHyphenatingBeforeCharacterAtIndex(charIndex uint) bool { - rv := objc.Call[bool](t_, objc.Sel("shouldBreakLineByHyphenatingBeforeCharacterAtIndex:"), charIndex) - return rv -} - -// Lays out glyphs in the current glyph range until the next paragraph separator is reached. [Full Topic] +// Sets the location where the specified glyphs are laid out. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1528231-layoutparagraphatpoint?language=objc -func (t_ Typesetter) LayoutParagraphAtPoint(lineFragmentOrigin foundation.PointPointer) uint { - rv := objc.Call[uint](t_, objc.Sel("layoutParagraphAtPoint:"), lineFragmentOrigin) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1533806-setlocation?language=objc +func (t_ Typesetter) SetLocationWithAdvancementsForStartOfGlyphRange(location foundation.Point, advancements *float64, glyphRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setLocation:withAdvancements:forStartOfGlyphRange:"), location, advancements, glyphRange) } // Returns whether the line being laid out should be broken by a word break at the specified character. [Full Topic] @@ -144,47 +119,26 @@ func (t_ Typesetter) ShouldBreakLineByWordBeforeCharacterAtIndex(charIndex uint) return rv } -// Called by the typesetter just prior to storing the actual line fragment rectangle location in the layout manager. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530261-willsetlinefragmentrect?language=objc -func (t_ Typesetter) WillSetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(lineRect foundation.RectPointer, glyphRange foundation.Range, usedRect foundation.RectPointer, baselineOffset *float64) { - objc.Call[objc.Void](t_, objc.Sel("willSetLineFragmentRect:forGlyphRange:usedRect:baselineOffset:"), lineRect, glyphRange, usedRect, baselineOffset) -} - -// Sets whether the specified glyphs exceed the bounds of the line fragment in which they are laid out. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526312-setdrawsoutsidelinefragment?language=objc -func (t_ Typesetter) SetDrawsOutsideLineFragmentForGlyphRange(flag bool, glyphRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setDrawsOutsideLineFragment:forGlyphRange:"), flag, glyphRange) -} - -// Sets the current glyph range being processed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530393-setparagraphglyphrange?language=objc -func (t_ Typesetter) SetParagraphGlyphRangeSeparatorGlyphRange(paragraphRange foundation.Range, paragraphSeparatorRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setParagraphGlyphRange:separatorGlyphRange:"), paragraphRange, paragraphSeparatorRange) -} - -// Sets up layout parameters at the end of a paragraph. [Full Topic] +// Calculates line fragment rectangle, line fragment used rectangle, and remaining rectangle for a line fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526802-endparagraph?language=objc -func (t_ Typesetter) EndParagraph() { - objc.Call[objc.Void](t_, objc.Sel("endParagraph")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535809-getlinefragmentrect?language=objc +func (t_ Typesetter) GetLineFragmentRectUsedRectRemainingRectForStartingGlyphAtIndexProposedRectLineSpacingParagraphSpacingBeforeParagraphSpacingAfter(lineFragmentRect foundation.RectPointer, lineFragmentUsedRect foundation.RectPointer, remainingRect foundation.RectPointer, startingGlyphIndex uint, proposedRect foundation.Rect, lineSpacing float64, paragraphSpacingBefore float64, paragraphSpacingAfter float64) { + objc.Call[objc.Void](t_, objc.Sel("getLineFragmentRect:usedRect:remainingRect:forStartingGlyphAtIndex:proposedRect:lineSpacing:paragraphSpacingBefore:paragraphSpacingAfter:"), lineFragmentRect, lineFragmentUsedRect, remainingRect, startingGlyphIndex, proposedRect, lineSpacing, paragraphSpacingBefore, paragraphSpacingAfter) } -// Returns the interglyph spacing in the specified range when sent to a printer. [Full Topic] +// Returns a screen font suitable for use in place of a given font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530764-printingadjustmentinlayoutmanage?language=objc -func (tc _TypesetterClass) PrintingAdjustmentInLayoutManagerForNominallySpacedGlyphRangePackedGlyphsCount(layoutMgr ILayoutManager, nominallySpacedGlyphsRange foundation.Range, packedGlyphs *uint8, packedGlyphsCount uint) foundation.Size { - rv := objc.Call[foundation.Size](tc, objc.Sel("printingAdjustmentInLayoutManager:forNominallySpacedGlyphRange:packedGlyphs:count:"), layoutMgr, nominallySpacedGlyphsRange, packedGlyphs, packedGlyphsCount) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526766-substitutefontforfont?language=objc +func (t_ Typesetter) SubstituteFontForFont(originalFont IFont) Font { + rv := objc.Call[Font](t_, objc.Sel("substituteFontForFont:"), originalFont) return rv } -// Returns the interglyph spacing in the specified range when sent to a printer. [Full Topic] +// Sets whether the specified glyphs are not shown. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530764-printingadjustmentinlayoutmanage?language=objc -func Typesetter_PrintingAdjustmentInLayoutManagerForNominallySpacedGlyphRangePackedGlyphsCount(layoutMgr ILayoutManager, nominallySpacedGlyphsRange foundation.Range, packedGlyphs *uint8, packedGlyphsCount uint) foundation.Size { - return TypesetterClass.PrintingAdjustmentInLayoutManagerForNominallySpacedGlyphRangePackedGlyphsCount(layoutMgr, nominallySpacedGlyphsRange, packedGlyphs, packedGlyphsCount) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530373-setnotshownattribute?language=objc +func (t_ Typesetter) SetNotShownAttributeForGlyphRange(flag bool, glyphRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setNotShownAttribute:forGlyphRange:"), flag, glyphRange) } // Sets whether to force the layout manager to invalidate the specified portion of the glyph cache when invalidating layout. [Full Topic] @@ -194,49 +148,49 @@ func (t_ Typesetter) SetHardInvalidationForGlyphRange(flag bool, glyphRange foun objc.Call[objc.Void](t_, objc.Sel("setHardInvalidation:forGlyphRange:"), flag, glyphRange) } -// Returns the line spacing in effect following the specified glyph. [Full Topic] +// Returns the hyphen character to be inserted after the specified glyph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1532355-linespacingafterglyphatindex?language=objc -func (t_ Typesetter) LineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(glyphIndex uint, rect foundation.Rect) float64 { - rv := objc.Call[float64](t_, objc.Sel("lineSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:"), glyphIndex, rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1531874-hyphencharacterforglyphatindex?language=objc +func (t_ Typesetter) HyphenCharacterForGlyphAtIndex(glyphIndex uint) objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("hyphenCharacterForGlyphAtIndex:"), glyphIndex) return rv } -// Sets the location where the specified glyphs are laid out. [Full Topic] +// Sets up layout parameters at the end of a line during typesetting. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1533806-setlocation?language=objc -func (t_ Typesetter) SetLocationWithAdvancementsForStartOfGlyphRange(location foundation.Point, advancements *float64, glyphRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setLocation:withAdvancements:forStartOfGlyphRange:"), location, advancements, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1525531-endlinewithglyphrange?language=objc +func (t_ Typesetter) EndLineWithGlyphRange(lineGlyphRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("endLineWithGlyphRange:"), lineGlyphRange) } -// Sets up layout parameters at the beginning of a paragraph. [Full Topic] +// Called by the typesetter just prior to storing the actual line fragment rectangle location in the layout manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526595-beginparagraph?language=objc -func (t_ Typesetter) BeginParagraph() { - objc.Call[objc.Void](t_, objc.Sel("beginParagraph")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530261-willsetlinefragmentrect?language=objc +func (t_ Typesetter) WillSetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(lineRect foundation.RectPointer, glyphRange foundation.Range, usedRect foundation.RectPointer, baselineOffset *float64) { + objc.Call[objc.Void](t_, objc.Sel("willSetLineFragmentRect:forGlyphRange:usedRect:baselineOffset:"), lineRect, glyphRange, usedRect, baselineOffset) } -// Lays out characters in the given character range for the specified layout manager. [Full Topic] +// Returns whether the line being laid out should be broken by hyphenating at the specified character. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535876-layoutcharactersinrange?language=objc -func (t_ Typesetter) LayoutCharactersInRangeForLayoutManagerMaximumNumberOfLineFragments(characterRange foundation.Range, layoutManager ILayoutManager, maxNumLines uint) foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:"), characterRange, layoutManager, maxNumLines) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534525-shouldbreaklinebyhyphenatingbefo?language=objc +func (t_ Typesetter) ShouldBreakLineByHyphenatingBeforeCharacterAtIndex(charIndex uint) bool { + rv := objc.Call[bool](t_, objc.Sel("shouldBreakLineByHyphenatingBeforeCharacterAtIndex:"), charIndex) return rv } -// Returns the text tab next closest to a given glyph location within the given parameters. [Full Topic] +// Lays out glyphs in the current glyph range until the next paragraph separator is reached. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1524483-texttabforglyphlocation?language=objc -func (t_ Typesetter) TextTabForGlyphLocationWritingDirectionMaxLocation(glyphLocation float64, direction WritingDirection, maxLocation float64) TextTab { - rv := objc.Call[TextTab](t_, objc.Sel("textTabForGlyphLocation:writingDirection:maxLocation:"), glyphLocation, direction, maxLocation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1528231-layoutparagraphatpoint?language=objc +func (t_ Typesetter) LayoutParagraphAtPoint(lineFragmentOrigin foundation.PointPointer) uint { + rv := objc.Call[uint](t_, objc.Sel("layoutParagraphAtPoint:"), lineFragmentOrigin) return rv } -// Sets the line fragment rectangle where the specified glyphs are laid out. [Full Topic] +// Sets up layout parameters at the end of a paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534015-setlinefragmentrect?language=objc -func (t_ Typesetter) SetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(fragmentRect foundation.Rect, glyphRange foundation.Range, usedRect foundation.Rect, baselineOffset float64) { - objc.Call[objc.Void](t_, objc.Sel("setLineFragmentRect:forGlyphRange:usedRect:baselineOffset:"), fragmentRect, glyphRange, usedRect, baselineOffset) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526802-endparagraph?language=objc +func (t_ Typesetter) EndParagraph() { + objc.Call[objc.Void](t_, objc.Sel("endParagraph")) } // Returns the hyphenation factor in effect at a specified location. [Full Topic] @@ -247,6 +201,14 @@ func (t_ Typesetter) HyphenationFactorForGlyphAtIndex(glyphIndex uint) float32 { return rv } +// Returns the bounding rectangle for the specified control glyph with the specified parameters. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535355-boundingboxforcontrolglyphatinde?language=objc +func (t_ Typesetter) BoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(glyphIndex uint, textContainer ITextContainer, proposedRect foundation.Rect, glyphPosition foundation.Point, charIndex uint) foundation.Rect { + rv := objc.Call[foundation.Rect](t_, objc.Sel("boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:"), glyphIndex, textContainer, proposedRect, glyphPosition, charIndex) + return rv +} + // Returns the range for the glyphs mapped to the characters of the text store in the specified range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1531461-glyphrangeforcharacterrange?language=objc @@ -255,33 +217,33 @@ func (t_ Typesetter) GlyphRangeForCharacterRangeActualCharacterRange(charRange f return rv } -// Returns the bounding rectangle for the specified control glyph with the specified parameters. [Full Topic] +// Returns the line spacing in effect following the specified glyph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535355-boundingboxforcontrolglyphatinde?language=objc -func (t_ Typesetter) BoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(glyphIndex uint, textContainer ITextContainer, proposedRect foundation.Rect, glyphPosition foundation.Point, charIndex uint) foundation.Rect { - rv := objc.Call[foundation.Rect](t_, objc.Sel("boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:"), glyphIndex, textContainer, proposedRect, glyphPosition, charIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1532355-linespacingafterglyphatindex?language=objc +func (t_ Typesetter) LineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(glyphIndex uint, rect foundation.Rect) float64 { + rv := objc.Call[float64](t_, objc.Sel("lineSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:"), glyphIndex, rect) return rv } -// Sets up layout parameters at the beginning of a line during typesetting. [Full Topic] +// Sets whether the specified glyphs exceed the bounds of the line fragment in which they are laid out. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534305-beginlinewithglyphatindex?language=objc -func (t_ Typesetter) BeginLineWithGlyphAtIndex(glyphIndex uint) { - objc.Call[objc.Void](t_, objc.Sel("beginLineWithGlyphAtIndex:"), glyphIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526312-setdrawsoutsidelinefragment?language=objc +func (t_ Typesetter) SetDrawsOutsideLineFragmentForGlyphRange(flag bool, glyphRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setDrawsOutsideLineFragment:forGlyphRange:"), flag, glyphRange) } -// Sets the direction of the specified glyphs for bidirectional text. [Full Topic] +// Sets the current glyph range being processed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1532079-setbidilevels?language=objc -func (t_ Typesetter) SetBidiLevelsForGlyphRange(levels *uint8, glyphRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setBidiLevels:forGlyphRange:"), levels, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530393-setparagraphglyphrange?language=objc +func (t_ Typesetter) SetParagraphGlyphRangeSeparatorGlyphRange(paragraphRange foundation.Range, paragraphSeparatorRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setParagraphGlyphRange:separatorGlyphRange:"), paragraphRange, paragraphSeparatorRange) } -// Calculates the line fragment rectangle and line fragment used rectangle for blank lines. [Full Topic] +// Sets up layout parameters at the beginning of a line during typesetting. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1533394-getlinefragmentrect?language=objc -func (t_ Typesetter) GetLineFragmentRectUsedRectForParagraphSeparatorGlyphRangeAtProposedOrigin(lineFragmentRect foundation.RectPointer, lineFragmentUsedRect foundation.RectPointer, paragraphSeparatorGlyphRange foundation.Range, lineOrigin foundation.Point) { - objc.Call[objc.Void](t_, objc.Sel("getLineFragmentRect:usedRect:forParagraphSeparatorGlyphRange:atProposedOrigin:"), lineFragmentRect, lineFragmentUsedRect, paragraphSeparatorGlyphRange, lineOrigin) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534305-beginlinewithglyphatindex?language=objc +func (t_ Typesetter) BeginLineWithGlyphAtIndex(glyphIndex uint) { + objc.Call[objc.Void](t_, objc.Sel("beginLineWithGlyphAtIndex:"), glyphIndex) } // Returns the number of points of space—added before a paragraph—that is in effect before the specified glyph. [Full Topic] @@ -292,27 +254,27 @@ func (t_ Typesetter) ParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentR return rv } -// Returns the range for the characters in the receiver’s text store that are mapped to the specified glyphs. [Full Topic] +// Returns the text tab next closest to a given glyph location within the given parameters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1524391-characterrangeforglyphrange?language=objc -func (t_ Typesetter) CharacterRangeForGlyphRangeActualGlyphRange(glyphRange foundation.Range, actualGlyphRange foundation.RangePointer) foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("characterRangeForGlyphRange:actualGlyphRange:"), glyphRange, actualGlyphRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1524483-texttabforglyphlocation?language=objc +func (t_ Typesetter) TextTabForGlyphLocationWritingDirectionMaxLocation(glyphLocation float64, direction WritingDirection, maxLocation float64) TextTab { + rv := objc.Call[TextTab](t_, objc.Sel("textTabForGlyphLocation:writingDirection:maxLocation:"), glyphLocation, direction, maxLocation) return rv } -// Returns the hyphen character to be inserted after the specified glyph. [Full Topic] +// Returns the interglyph spacing in the specified range when sent to a printer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1531874-hyphencharacterforglyphatindex?language=objc -func (t_ Typesetter) HyphenCharacterForGlyphAtIndex(glyphIndex uint) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("hyphenCharacterForGlyphAtIndex:"), glyphIndex) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530764-printingadjustmentinlayoutmanage?language=objc +func (tc _TypesetterClass) PrintingAdjustmentInLayoutManagerForNominallySpacedGlyphRangePackedGlyphsCount(layoutMgr ILayoutManager, nominallySpacedGlyphsRange foundation.Range, packedGlyphs *uint8, packedGlyphsCount uint) foundation.Size { + rv := objc.Call[foundation.Size](tc, objc.Sel("printingAdjustmentInLayoutManager:forNominallySpacedGlyphRange:packedGlyphs:count:"), layoutMgr, nominallySpacedGlyphsRange, packedGlyphs, packedGlyphsCount) return rv } -// Sets the size the specified glyphs (assumed to be attachments) will be asked to draw themselves at. [Full Topic] +// Returns the interglyph spacing in the specified range when sent to a printer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1532282-setattachmentsize?language=objc -func (t_ Typesetter) SetAttachmentSizeForGlyphRange(attachmentSize foundation.Size, glyphRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setAttachmentSize:forGlyphRange:"), attachmentSize, glyphRange) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530764-printingadjustmentinlayoutmanage?language=objc +func Typesetter_PrintingAdjustmentInLayoutManagerForNominallySpacedGlyphRangePackedGlyphsCount(layoutMgr ILayoutManager, nominallySpacedGlyphsRange foundation.Range, packedGlyphs *uint8, packedGlyphsCount uint) foundation.Size { + return TypesetterClass.PrintingAdjustmentInLayoutManagerForNominallySpacedGlyphRangePackedGlyphsCount(layoutMgr, nominallySpacedGlyphsRange, packedGlyphs, packedGlyphsCount) } // Returns the distance from the bottom of the line fragment rectangle in which the glyph resides to the glyph baseline. [Full Topic] @@ -323,6 +285,21 @@ func (t_ Typesetter) BaselineOffsetInLayoutManagerGlyphIndex(layoutMgr ILayoutMa return rv } +// Sets the line fragment rectangle where the specified glyphs are laid out. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534015-setlinefragmentrect?language=objc +func (t_ Typesetter) SetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(fragmentRect foundation.Rect, glyphRange foundation.Range, usedRect foundation.Rect, baselineOffset float64) { + objc.Call[objc.Void](t_, objc.Sel("setLineFragmentRect:forGlyphRange:usedRect:baselineOffset:"), fragmentRect, glyphRange, usedRect, baselineOffset) +} + +// Lays out characters in the given character range for the specified layout manager. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535876-layoutcharactersinrange?language=objc +func (t_ Typesetter) LayoutCharactersInRangeForLayoutManagerMaximumNumberOfLineFragments(characterRange foundation.Range, layoutManager ILayoutManager, maxNumLines uint) foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:"), characterRange, layoutManager, maxNumLines) + return rv +} + // Returns a shared instance of a reentrant typesetter that implements typesetting with the specified behavior. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1530659-sharedsystemtypesetterforbehavio?language=objc @@ -338,79 +315,56 @@ func Typesetter_SharedSystemTypesetterForBehavior(behavior TypesetterBehavior) o return TypesetterClass.SharedSystemTypesetterForBehavior(behavior) } -// Calculates line fragment rectangle, line fragment used rectangle, and remaining rectangle for a line fragment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535809-getlinefragmentrect?language=objc -func (t_ Typesetter) GetLineFragmentRectUsedRectRemainingRectForStartingGlyphAtIndexProposedRectLineSpacingParagraphSpacingBeforeParagraphSpacingAfter(lineFragmentRect foundation.RectPointer, lineFragmentUsedRect foundation.RectPointer, remainingRect foundation.RectPointer, startingGlyphIndex uint, proposedRect foundation.Rect, lineSpacing float64, paragraphSpacingBefore float64, paragraphSpacingAfter float64) { - objc.Call[objc.Void](t_, objc.Sel("getLineFragmentRect:usedRect:remainingRect:forStartingGlyphAtIndex:proposedRect:lineSpacing:paragraphSpacingBefore:paragraphSpacingAfter:"), lineFragmentRect, lineFragmentUsedRect, remainingRect, startingGlyphIndex, proposedRect, lineSpacing, paragraphSpacingBefore, paragraphSpacingAfter) -} - -// Sets up layout parameters at the end of a line during typesetting. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1525531-endlinewithglyphrange?language=objc -func (t_ Typesetter) EndLineWithGlyphRange(lineGlyphRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("endLineWithGlyphRange:"), lineGlyphRange) -} - -// Returns a screen font suitable for use in place of a given font. [Full Topic] +// Sets the size the specified glyphs (assumed to be attachments) will be asked to draw themselves at. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526766-substitutefontforfont?language=objc -func (t_ Typesetter) SubstituteFontForFont(originalFont IFont) Font { - rv := objc.Call[Font](t_, objc.Sel("substituteFontForFont:"), originalFont) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1532282-setattachmentsize?language=objc +func (t_ Typesetter) SetAttachmentSizeForGlyphRange(attachmentSize foundation.Size, glyphRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setAttachmentSize:forGlyphRange:"), attachmentSize, glyphRange) } -// Returns the current paragraph separator character range. [Full Topic] +// Returns the paragraph spacing that is in effect after the specified glyph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1531746-paragraphseparatorcharacterrange?language=objc -func (t_ Typesetter) ParagraphSeparatorCharacterRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphSeparatorCharacterRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534661-paragraphspacingafterglyphatinde?language=objc +func (t_ Typesetter) ParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(glyphIndex uint, rect foundation.Rect) float64 { + rv := objc.Call[float64](t_, objc.Sel("paragraphSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:"), glyphIndex, rect) return rv } -// Returns a shared instance of a reentrant typesetter. [Full Topic] +// Returns the range for the characters in the receiver’s text store that are mapped to the specified glyphs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534814-sharedsystemtypesetter?language=objc -func (tc _TypesetterClass) SharedSystemTypesetter() Typesetter { - rv := objc.Call[Typesetter](tc, objc.Sel("sharedSystemTypesetter")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1524391-characterrangeforglyphrange?language=objc +func (t_ Typesetter) CharacterRangeForGlyphRangeActualGlyphRange(glyphRange foundation.Range, actualGlyphRange foundation.RangePointer) foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("characterRangeForGlyphRange:actualGlyphRange:"), glyphRange, actualGlyphRange) return rv } -// Returns a shared instance of a reentrant typesetter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534814-sharedsystemtypesetter?language=objc -func Typesetter_SharedSystemTypesetter() Typesetter { - return TypesetterClass.SharedSystemTypesetter() -} - -// Returns the current hyphenation factor. [Full Topic] +// Sets the direction of the specified glyphs for bidirectional text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535877-hyphenationfactor?language=objc -func (t_ Typesetter) HyphenationFactor() float32 { - rv := objc.Call[float32](t_, objc.Sel("hyphenationFactor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1532079-setbidilevels?language=objc +func (t_ Typesetter) SetBidiLevelsForGlyphRange(levels *uint8, glyphRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setBidiLevels:forGlyphRange:"), levels, glyphRange) } -// Returns the current hyphenation factor. [Full Topic] +// Sets up layout parameters at the beginning of a paragraph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535877-hyphenationfactor?language=objc -func (t_ Typesetter) SetHyphenationFactor(value float32) { - objc.Call[objc.Void](t_, objc.Sel("setHyphenationFactor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526595-beginparagraph?language=objc +func (t_ Typesetter) BeginParagraph() { + objc.Call[objc.Void](t_, objc.Sel("beginParagraph")) } -// Returns the default typesetter behavior. [Full Topic] +// Returns whether bidirectional text processing is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534626-defaulttypesetterbehavior?language=objc -func (tc _TypesetterClass) DefaultTypesetterBehavior() TypesetterBehavior { - rv := objc.Call[TypesetterBehavior](tc, objc.Sel("defaultTypesetterBehavior")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1533588-bidiprocessingenabled?language=objc +func (t_ Typesetter) BidiProcessingEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("bidiProcessingEnabled")) return rv } -// Returns the default typesetter behavior. [Full Topic] +// Returns whether bidirectional text processing is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534626-defaulttypesetterbehavior?language=objc -func Typesetter_DefaultTypesetterBehavior() TypesetterBehavior { - return TypesetterClass.DefaultTypesetterBehavior() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1533588-bidiprocessingenabled?language=objc +func (t_ Typesetter) SetBidiProcessingEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setBidiProcessingEnabled:"), value) } // Returns the text backing store, usually an instance of NSTextStorage. [Full Topic] @@ -428,19 +382,19 @@ func (t_ Typesetter) SetAttributedString(value foundation.IAttributedString) { objc.Call[objc.Void](t_, objc.Sel("setAttributedString:"), value) } -// Returns the paragraph style object for the text being typeset. [Full Topic] +// Returns the glyph range currently being processed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1528893-currentparagraphstyle?language=objc -func (t_ Typesetter) CurrentParagraphStyle() ParagraphStyle { - rv := objc.Call[ParagraphStyle](t_, objc.Sel("currentParagraphStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1528301-paragraphglyphrange?language=objc +func (t_ Typesetter) ParagraphGlyphRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphGlyphRange")) return rv } -// Returns the character range currently being processed. [Full Topic] +// Returns the current paragraph separator character range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1533422-paragraphcharacterrange?language=objc -func (t_ Typesetter) ParagraphCharacterRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphCharacterRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1531746-paragraphseparatorcharacterrange?language=objc +func (t_ Typesetter) ParagraphSeparatorCharacterRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphSeparatorCharacterRange")) return rv } @@ -452,19 +406,34 @@ func (t_ Typesetter) LayoutManager() LayoutManager { return rv } -// Returns whether bidirectional text processing is enabled. [Full Topic] +// Returns the current line fragment padding, in points. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1533588-bidiprocessingenabled?language=objc -func (t_ Typesetter) BidiProcessingEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("bidiProcessingEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1531129-linefragmentpadding?language=objc +func (t_ Typesetter) LineFragmentPadding() float64 { + rv := objc.Call[float64](t_, objc.Sel("lineFragmentPadding")) return rv } -// Returns whether bidirectional text processing is enabled. [Full Topic] +// Returns the current line fragment padding, in points. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1533588-bidiprocessingenabled?language=objc -func (t_ Typesetter) SetBidiProcessingEnabled(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setBidiProcessingEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1531129-linefragmentpadding?language=objc +func (t_ Typesetter) SetLineFragmentPadding(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setLineFragmentPadding:"), value) +} + +// Returns whether the typesetter uses the leading (or line gap) value specified in the font metric information of the current font. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526716-usesfontleading?language=objc +func (t_ Typesetter) UsesFontLeading() bool { + rv := objc.Call[bool](t_, objc.Sel("usesFontLeading")) + return rv +} + +// Returns whether the typesetter uses the leading (or line gap) value specified in the font metric information of the current font. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526716-usesfontleading?language=objc +func (t_ Typesetter) SetUsesFontLeading(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesFontLeading:"), value) } // Returns the current typesetter behavior. [Full Topic] @@ -482,65 +451,57 @@ func (t_ Typesetter) SetTypesetterBehavior(value TypesetterBehavior) { objc.Call[objc.Void](t_, objc.Sel("setTypesetterBehavior:"), value) } -// Returns the current line fragment padding, in points. [Full Topic] +// Returns an array containing the text containers belonging to the current layout manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1531129-linefragmentpadding?language=objc -func (t_ Typesetter) LineFragmentPadding() float64 { - rv := objc.Call[float64](t_, objc.Sel("lineFragmentPadding")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526310-textcontainers?language=objc +func (t_ Typesetter) TextContainers() []TextContainer { + rv := objc.Call[[]TextContainer](t_, objc.Sel("textContainers")) return rv } -// Returns the current line fragment padding, in points. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1531129-linefragmentpadding?language=objc -func (t_ Typesetter) SetLineFragmentPadding(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setLineFragmentPadding:"), value) -} - -// Returns the current paragraph separator range. [Full Topic] +// Returns a shared instance of a reentrant typesetter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534165-paragraphseparatorglyphrange?language=objc -func (t_ Typesetter) ParagraphSeparatorGlyphRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphSeparatorGlyphRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534814-sharedsystemtypesetter?language=objc +func (tc _TypesetterClass) SharedSystemTypesetter() Typesetter { + rv := objc.Call[Typesetter](tc, objc.Sel("sharedSystemTypesetter")) return rv } -// Returns the attributes used to lay out the extra line fragment. [Full Topic] +// Returns a shared instance of a reentrant typesetter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534922-attributesforextralinefragment?language=objc -func (t_ Typesetter) AttributesForExtraLineFragment() map[foundation.AttributedStringKey]objc.Object { - rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("attributesForExtraLineFragment")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534814-sharedsystemtypesetter?language=objc +func Typesetter_SharedSystemTypesetter() Typesetter { + return TypesetterClass.SharedSystemTypesetter() } -// Returns whether the typesetter uses the leading (or line gap) value specified in the font metric information of the current font. [Full Topic] +// Returns the current hyphenation factor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526716-usesfontleading?language=objc -func (t_ Typesetter) UsesFontLeading() bool { - rv := objc.Call[bool](t_, objc.Sel("usesFontLeading")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535877-hyphenationfactor?language=objc +func (t_ Typesetter) HyphenationFactor() float32 { + rv := objc.Call[float32](t_, objc.Sel("hyphenationFactor")) return rv } -// Returns whether the typesetter uses the leading (or line gap) value specified in the font metric information of the current font. [Full Topic] +// Returns the current hyphenation factor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526716-usesfontleading?language=objc -func (t_ Typesetter) SetUsesFontLeading(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesFontLeading:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535877-hyphenationfactor?language=objc +func (t_ Typesetter) SetHyphenationFactor(value float32) { + objc.Call[objc.Void](t_, objc.Sel("setHyphenationFactor:"), value) } -// Returns an array containing the text containers belonging to the current layout manager. [Full Topic] +// Returns the character range currently being processed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1526310-textcontainers?language=objc -func (t_ Typesetter) TextContainers() []TextContainer { - rv := objc.Call[[]TextContainer](t_, objc.Sel("textContainers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1533422-paragraphcharacterrange?language=objc +func (t_ Typesetter) ParagraphCharacterRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphCharacterRange")) return rv } -// Returns the glyph range currently being processed. [Full Topic] +// Returns the paragraph style object for the text being typeset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1528301-paragraphglyphrange?language=objc -func (t_ Typesetter) ParagraphGlyphRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphGlyphRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1528893-currentparagraphstyle?language=objc +func (t_ Typesetter) CurrentParagraphStyle() ParagraphStyle { + rv := objc.Call[ParagraphStyle](t_, objc.Sel("currentParagraphStyle")) return rv } @@ -551,3 +512,34 @@ func (t_ Typesetter) CurrentTextContainer() TextContainer { rv := objc.Call[TextContainer](t_, objc.Sel("currentTextContainer")) return rv } + +// Returns the default typesetter behavior. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534626-defaulttypesetterbehavior?language=objc +func (tc _TypesetterClass) DefaultTypesetterBehavior() TypesetterBehavior { + rv := objc.Call[TypesetterBehavior](tc, objc.Sel("defaultTypesetterBehavior")) + return rv +} + +// Returns the default typesetter behavior. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534626-defaulttypesetterbehavior?language=objc +func Typesetter_DefaultTypesetterBehavior() TypesetterBehavior { + return TypesetterClass.DefaultTypesetterBehavior() +} + +// Returns the current paragraph separator range. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534165-paragraphseparatorglyphrange?language=objc +func (t_ Typesetter) ParagraphSeparatorGlyphRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphSeparatorGlyphRange")) + return rv +} + +// Returns the attributes used to lay out the extra line fragment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534922-attributesforextralinefragment?language=objc +func (t_ Typesetter) AttributesForExtraLineFragment() map[foundation.AttributedStringKey]objc.Object { + rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("attributesForExtraLineFragment")) + return rv +} diff --git a/macos/appkit/user_defaults_controller.gen.go b/macos/appkit/user_defaults_controller.gen.go index 936f1a8a..ed369a98 100644 --- a/macos/appkit/user_defaults_controller.gen.go +++ b/macos/appkit/user_defaults_controller.gen.go @@ -19,16 +19,16 @@ type _UserDefaultsControllerClass struct { // An interface definition for the [UserDefaultsController] class. type IUserDefaultsController interface { IController + Save(sender objc.IObject) objc.Object Revert(sender objc.IObject) objc.Object RevertToInitialValues(sender objc.IObject) objc.Object - Save(sender objc.IObject) objc.Object + Defaults() foundation.UserDefaults + HasUnappliedChanges() bool AppliesImmediately() bool SetAppliesImmediately(value bool) - HasUnappliedChanges() bool - Values() objc.Object InitialValues() map[string]objc.Object SetInitialValues(value map[string]objc.IObject) - Defaults() foundation.UserDefaults + Values() objc.Object } // A controller that accesses user preference information for your app from the user’s defaults database. [Full Topic] @@ -78,6 +78,14 @@ func (u_ UserDefaultsController) Init() UserDefaultsController { return rv } +// Saves the values of the receiver’s user default properties. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388180-save?language=objc +func (u_ UserDefaultsController) Save(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](u_, objc.Sel("save:"), sender) + return rv +} + // Causes the receiver to discard any unsaved changes to bound user default properties, restoring their previous values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388178-revert?language=objc @@ -86,7 +94,7 @@ func (u_ UserDefaultsController) Revert(sender objc.IObject) objc.Object { return rv } -// Causes the receiver to discard all edits and replace the values of all the user default properties with any corresponding values in the [appkit/nsuserdefaultscontroller/initialvalues] dictionary. [Full Topic] +// Causes the receiver to discard all edits and replace the values of all the user default properties with any corresponding values in the initialValues dictionary. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388170-reverttoinitialvalues?language=objc func (u_ UserDefaultsController) RevertToInitialValues(sender objc.IObject) objc.Object { @@ -94,11 +102,19 @@ func (u_ UserDefaultsController) RevertToInitialValues(sender objc.IObject) objc return rv } -// Saves the values of the receiver’s user default properties. [Full Topic] +// Returns the instance of NSUserDefaults in use by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388180-save?language=objc -func (u_ UserDefaultsController) Save(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](u_, objc.Sel("save:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388182-defaults?language=objc +func (u_ UserDefaultsController) Defaults() foundation.UserDefaults { + rv := objc.Call[foundation.UserDefaults](u_, objc.Sel("defaults")) + return rv +} + +// Returns whether the receiver has user default values that have not been saved to NSUserDefaults. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388186-hasunappliedchanges?language=objc +func (u_ UserDefaultsController) HasUnappliedChanges() bool { + rv := objc.Call[bool](u_, objc.Sel("hasUnappliedChanges")) return rv } @@ -117,27 +133,19 @@ func (u_ UserDefaultsController) SetAppliesImmediately(value bool) { objc.Call[objc.Void](u_, objc.Sel("setAppliesImmediately:"), value) } -// Returns the shared instance of NSUserDefaultsController, creating it if necessary. [Full Topic] +// Returns a dictionary containing the receiver’s initial default values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388190-shareduserdefaultscontroller?language=objc -func (uc _UserDefaultsControllerClass) SharedUserDefaultsController() UserDefaultsController { - rv := objc.Call[UserDefaultsController](uc, objc.Sel("sharedUserDefaultsController")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388188-initialvalues?language=objc +func (u_ UserDefaultsController) InitialValues() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](u_, objc.Sel("initialValues")) return rv } -// Returns the shared instance of NSUserDefaultsController, creating it if necessary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388190-shareduserdefaultscontroller?language=objc -func UserDefaultsController_SharedUserDefaultsController() UserDefaultsController { - return UserDefaultsControllerClass.SharedUserDefaultsController() -} - -// Returns whether the receiver has user default values that have not been saved to NSUserDefaults. [Full Topic] +// Returns a dictionary containing the receiver’s initial default values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388186-hasunappliedchanges?language=objc -func (u_ UserDefaultsController) HasUnappliedChanges() bool { - rv := objc.Call[bool](u_, objc.Sel("hasUnappliedChanges")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388188-initialvalues?language=objc +func (u_ UserDefaultsController) SetInitialValues(value map[string]objc.IObject) { + objc.Call[objc.Void](u_, objc.Sel("setInitialValues:"), value) } // Returns a key value coding compliant object that is used to access the user default properties. [Full Topic] @@ -148,25 +156,17 @@ func (u_ UserDefaultsController) Values() objc.Object { return rv } -// Returns a dictionary containing the receiver’s initial default values. [Full Topic] +// Returns the shared instance of NSUserDefaultsController, creating it if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388188-initialvalues?language=objc -func (u_ UserDefaultsController) InitialValues() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](u_, objc.Sel("initialValues")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388190-shareduserdefaultscontroller?language=objc +func (uc _UserDefaultsControllerClass) SharedUserDefaultsController() UserDefaultsController { + rv := objc.Call[UserDefaultsController](uc, objc.Sel("sharedUserDefaultsController")) return rv } -// Returns a dictionary containing the receiver’s initial default values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388188-initialvalues?language=objc -func (u_ UserDefaultsController) SetInitialValues(value map[string]objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("setInitialValues:"), value) -} - -// Returns the instance of NSUserDefaults in use by the receiver. [Full Topic] +// Returns the shared instance of NSUserDefaultsController, creating it if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388182-defaults?language=objc -func (u_ UserDefaultsController) Defaults() foundation.UserDefaults { - rv := objc.Call[foundation.UserDefaults](u_, objc.Sel("defaults")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserdefaultscontroller/1388190-shareduserdefaultscontroller?language=objc +func UserDefaultsController_SharedUserDefaultsController() UserDefaultsController { + return UserDefaultsControllerClass.SharedUserDefaultsController() } diff --git a/macos/appkit/user_interface_compression_options.gen.go b/macos/appkit/user_interface_compression_options.gen.go index 474ff428..65190f68 100644 --- a/macos/appkit/user_interface_compression_options.gen.go +++ b/macos/appkit/user_interface_compression_options.gen.go @@ -19,10 +19,10 @@ type _UserInterfaceCompressionOptionsClass struct { // An interface definition for the [UserInterfaceCompressionOptions] class. type IUserInterfaceCompressionOptions interface { objc.IObject + OptionsByRemovingOptions(options IUserInterfaceCompressionOptions) UserInterfaceCompressionOptions ContainsOptions(options IUserInterfaceCompressionOptions) bool - IntersectsOptions(options IUserInterfaceCompressionOptions) bool OptionsByAddingOptions(options IUserInterfaceCompressionOptions) UserInterfaceCompressionOptions - OptionsByRemovingOptions(options IUserInterfaceCompressionOptions) UserInterfaceCompressionOptions + IntersectsOptions(options IUserInterfaceCompressionOptions) bool IsEmpty() bool } @@ -53,11 +53,6 @@ func NewUserInterfaceCompressionOptionsWithCompressionOptions(options foundation return instance } -func (u_ UserInterfaceCompressionOptions) Init() UserInterfaceCompressionOptions { - rv := objc.Call[UserInterfaceCompressionOptions](u_, objc.Sel("init")) - return rv -} - func (u_ UserInterfaceCompressionOptions) InitWithIdentifier(identifier string) UserInterfaceCompressionOptions { rv := objc.Call[UserInterfaceCompressionOptions](u_, objc.Sel("initWithIdentifier:"), identifier) return rv @@ -72,6 +67,11 @@ func NewUserInterfaceCompressionOptionsWithIdentifier(identifier string) UserInt return instance } +func (u_ UserInterfaceCompressionOptions) Init() UserInterfaceCompressionOptions { + rv := objc.Call[UserInterfaceCompressionOptions](u_, objc.Sel("init")) + return rv +} + func (uc _UserInterfaceCompressionOptionsClass) Alloc() UserInterfaceCompressionOptions { rv := objc.Call[UserInterfaceCompressionOptions](uc, objc.Sel("alloc")) return rv @@ -87,6 +87,14 @@ func NewUserInterfaceCompressionOptions() UserInterfaceCompressionOptions { return UserInterfaceCompressionOptionsClass.New() } +// Creates a new compression options object with the supplied options removed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909969-optionsbyremovingoptions?language=objc +func (u_ UserInterfaceCompressionOptions) OptionsByRemovingOptions(options IUserInterfaceCompressionOptions) UserInterfaceCompressionOptions { + rv := objc.Call[UserInterfaceCompressionOptions](u_, objc.Sel("optionsByRemovingOptions:"), options) + return rv +} + // Determines whether the supplied compression options are all present in the current instance. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909983-containsoptions?language=objc @@ -95,6 +103,14 @@ func (u_ UserInterfaceCompressionOptions) ContainsOptions(options IUserInterface return rv } +// Creates a new compression options object representing the union with the provided options. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909965-optionsbyaddingoptions?language=objc +func (u_ UserInterfaceCompressionOptions) OptionsByAddingOptions(options IUserInterfaceCompressionOptions) UserInterfaceCompressionOptions { + rv := objc.Call[UserInterfaceCompressionOptions](u_, objc.Sel("optionsByAddingOptions:"), options) + return rv +} + // Determines whether the supplied compression options intersect with the current instance's options. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909977-intersectsoptions?language=objc @@ -103,35 +119,42 @@ func (u_ UserInterfaceCompressionOptions) IntersectsOptions(options IUserInterfa return rv } -// Creates a new compression options object representing the union with the provided options. [Full Topic] +// An option specifying that views should reduce their internal metrics. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909965-optionsbyaddingoptions?language=objc -func (u_ UserInterfaceCompressionOptions) OptionsByAddingOptions(options IUserInterfaceCompressionOptions) UserInterfaceCompressionOptions { - rv := objc.Call[UserInterfaceCompressionOptions](u_, objc.Sel("optionsByAddingOptions:"), options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909976-reducemetricsoption?language=objc +func (uc _UserInterfaceCompressionOptionsClass) ReduceMetricsOption() UserInterfaceCompressionOptions { + rv := objc.Call[UserInterfaceCompressionOptions](uc, objc.Sel("reduceMetricsOption")) return rv } -// Creates a new compression options object with the supplied options removed. [Full Topic] +// An option specifying that views should reduce their internal metrics. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909969-optionsbyremovingoptions?language=objc -func (u_ UserInterfaceCompressionOptions) OptionsByRemovingOptions(options IUserInterfaceCompressionOptions) UserInterfaceCompressionOptions { - rv := objc.Call[UserInterfaceCompressionOptions](u_, objc.Sel("optionsByRemovingOptions:"), options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909976-reducemetricsoption?language=objc +func UserInterfaceCompressionOptions_ReduceMetricsOption() UserInterfaceCompressionOptions { + return UserInterfaceCompressionOptionsClass.ReduceMetricsOption() +} + +// A Boolean value that denotes whether the option is empty. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909986-empty?language=objc +func (u_ UserInterfaceCompressionOptions) IsEmpty() bool { + rv := objc.Call[bool](u_, objc.Sel("isEmpty")) return rv } -// An option specifying that views should hide their text. [Full Topic] +// An option specifying that views should no longer maintain equal width constraints. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909971-hidetextoption?language=objc -func (uc _UserInterfaceCompressionOptionsClass) HideTextOption() UserInterfaceCompressionOptions { - rv := objc.Call[UserInterfaceCompressionOptions](uc, objc.Sel("hideTextOption")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909966-breakequalwidthsoption?language=objc +func (uc _UserInterfaceCompressionOptionsClass) BreakEqualWidthsOption() UserInterfaceCompressionOptions { + rv := objc.Call[UserInterfaceCompressionOptions](uc, objc.Sel("breakEqualWidthsOption")) return rv } -// An option specifying that views should hide their text. [Full Topic] +// An option specifying that views should no longer maintain equal width constraints. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909971-hidetextoption?language=objc -func UserInterfaceCompressionOptions_HideTextOption() UserInterfaceCompressionOptions { - return UserInterfaceCompressionOptionsClass.HideTextOption() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909966-breakequalwidthsoption?language=objc +func UserInterfaceCompressionOptions_BreakEqualWidthsOption() UserInterfaceCompressionOptions { + return UserInterfaceCompressionOptionsClass.BreakEqualWidthsOption() } // An option that represents the union of all standard compression options. [Full Topic] @@ -149,6 +172,21 @@ func UserInterfaceCompressionOptions_StandardOptions() UserInterfaceCompressionO return UserInterfaceCompressionOptionsClass.StandardOptions() } +// An option specifying that views should hide their text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909971-hidetextoption?language=objc +func (uc _UserInterfaceCompressionOptionsClass) HideTextOption() UserInterfaceCompressionOptions { + rv := objc.Call[UserInterfaceCompressionOptions](uc, objc.Sel("hideTextOption")) + return rv +} + +// An option specifying that views should hide their text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909971-hidetextoption?language=objc +func UserInterfaceCompressionOptions_HideTextOption() UserInterfaceCompressionOptions { + return UserInterfaceCompressionOptionsClass.HideTextOption() +} + // An option specifying that views should hide their images. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909980-hideimagesoption?language=objc @@ -163,41 +201,3 @@ func (uc _UserInterfaceCompressionOptionsClass) HideImagesOption() UserInterface func UserInterfaceCompressionOptions_HideImagesOption() UserInterfaceCompressionOptions { return UserInterfaceCompressionOptionsClass.HideImagesOption() } - -// A Boolean value that denotes whether the option is empty. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909986-empty?language=objc -func (u_ UserInterfaceCompressionOptions) IsEmpty() bool { - rv := objc.Call[bool](u_, objc.Sel("isEmpty")) - return rv -} - -// An option specifying that views should reduce their internal metrics. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909976-reducemetricsoption?language=objc -func (uc _UserInterfaceCompressionOptionsClass) ReduceMetricsOption() UserInterfaceCompressionOptions { - rv := objc.Call[UserInterfaceCompressionOptions](uc, objc.Sel("reduceMetricsOption")) - return rv -} - -// An option specifying that views should reduce their internal metrics. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909976-reducemetricsoption?language=objc -func UserInterfaceCompressionOptions_ReduceMetricsOption() UserInterfaceCompressionOptions { - return UserInterfaceCompressionOptionsClass.ReduceMetricsOption() -} - -// An option specifying that views should no longer maintain equal width constraints. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909966-breakequalwidthsoption?language=objc -func (uc _UserInterfaceCompressionOptionsClass) BreakEqualWidthsOption() UserInterfaceCompressionOptions { - rv := objc.Call[UserInterfaceCompressionOptions](uc, objc.Sel("breakEqualWidthsOption")) - return rv -} - -// An option specifying that views should no longer maintain equal width constraints. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909966-breakequalwidthsoption?language=objc -func UserInterfaceCompressionOptions_BreakEqualWidthsOption() UserInterfaceCompressionOptions { - return UserInterfaceCompressionOptionsClass.BreakEqualWidthsOption() -} diff --git a/macos/appkit/user_interface_compression_protocol.gen.go b/macos/appkit/user_interface_compression_protocol.gen.go index fab428a3..cb77fddc 100644 --- a/macos/appkit/user_interface_compression_protocol.gen.go +++ b/macos/appkit/user_interface_compression_protocol.gen.go @@ -11,14 +11,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompression?language=objc type PUserInterfaceCompression interface { - // optional - CompressWithPrioritizedCompressionOptions(prioritizedOptions []UserInterfaceCompressionOptions) - HasCompressWithPrioritizedCompressionOptions() bool - // optional MinimumSizeWithPrioritizedCompressionOptions(prioritizedOptions []UserInterfaceCompressionOptions) foundation.Size HasMinimumSizeWithPrioritizedCompressionOptions() bool + // optional + CompressWithPrioritizedCompressionOptions(prioritizedOptions []UserInterfaceCompressionOptions) + HasCompressWithPrioritizedCompressionOptions() bool + // optional ActiveCompressionOptions() UserInterfaceCompressionOptions HasActiveCompressionOptions() bool @@ -32,17 +32,6 @@ type UserInterfaceCompressionObject struct { objc.Object } -func (u_ UserInterfaceCompressionObject) HasCompressWithPrioritizedCompressionOptions() bool { - return u_.RespondsToSelector(objc.Sel("compressWithPrioritizedCompressionOptions:")) -} - -// Compress the view by applying the specified compression options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompression/2909978-compresswithprioritizedcompressi?language=objc -func (u_ UserInterfaceCompressionObject) CompressWithPrioritizedCompressionOptions(prioritizedOptions []UserInterfaceCompressionOptions) { - objc.Call[objc.Void](u_, objc.Sel("compressWithPrioritizedCompressionOptions:"), prioritizedOptions) -} - func (u_ UserInterfaceCompressionObject) HasMinimumSizeWithPrioritizedCompressionOptions() bool { return u_.RespondsToSelector(objc.Sel("minimumSizeWithPrioritizedCompressionOptions:")) } @@ -55,6 +44,17 @@ func (u_ UserInterfaceCompressionObject) MinimumSizeWithPrioritizedCompressionOp return rv } +func (u_ UserInterfaceCompressionObject) HasCompressWithPrioritizedCompressionOptions() bool { + return u_.RespondsToSelector(objc.Sel("compressWithPrioritizedCompressionOptions:")) +} + +// Compress the view by applying the specified compression options. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompression/2909978-compresswithprioritizedcompressi?language=objc +func (u_ UserInterfaceCompressionObject) CompressWithPrioritizedCompressionOptions(prioritizedOptions []UserInterfaceCompressionOptions) { + objc.Call[objc.Void](u_, objc.Sel("compressWithPrioritizedCompressionOptions:"), prioritizedOptions) +} + func (u_ UserInterfaceCompressionObject) HasActiveCompressionOptions() bool { return u_.RespondsToSelector(objc.Sel("activeCompressionOptions")) } diff --git a/macos/appkit/user_interface_item_searching_protocol.gen.go b/macos/appkit/user_interface_item_searching_protocol.gen.go index 95964dc9..6bf20d07 100644 --- a/macos/appkit/user_interface_item_searching_protocol.gen.go +++ b/macos/appkit/user_interface_item_searching_protocol.gen.go @@ -14,10 +14,6 @@ type PUserInterfaceItemSearching interface { LocalizedTitlesForItem(item objc.Object) []string HasLocalizedTitlesForItem() bool - // optional - ShowAllHelpTopicsForSearchString(searchString string) - HasShowAllHelpTopicsForSearchString() bool - // optional PerformActionForItem(item objc.Object) HasPerformActionForItem() bool @@ -25,6 +21,10 @@ type PUserInterfaceItemSearching interface { // optional SearchForItemsWithSearchStringResultLimitMatchedItemHandler(searchString string, resultLimit int, handleMatchedItems func(items []objc.Object)) HasSearchForItemsWithSearchStringResultLimitMatchedItemHandler() bool + + // optional + ShowAllHelpTopicsForSearchString(searchString string) + HasShowAllHelpTopicsForSearchString() bool } // ensure impl type implements protocol interface @@ -47,17 +47,6 @@ func (u_ UserInterfaceItemSearchingObject) LocalizedTitlesForItem(item objc.Obje return rv } -func (u_ UserInterfaceItemSearchingObject) HasShowAllHelpTopicsForSearchString() bool { - return u_.RespondsToSelector(objc.Sel("showAllHelpTopicsForSearchString:")) -} - -// If this method is implemented, a "Show All Help Topics" item will appear in the menu and this method is called when the user selects it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfaceitemsearching/1420806-showallhelptopicsforsearchstring?language=objc -func (u_ UserInterfaceItemSearchingObject) ShowAllHelpTopicsForSearchString(searchString string) { - objc.Call[objc.Void](u_, objc.Sel("showAllHelpTopicsForSearchString:"), searchString) -} - func (u_ UserInterfaceItemSearchingObject) HasPerformActionForItem() bool { return u_.RespondsToSelector(objc.Sel("performActionForItem:")) } @@ -79,3 +68,14 @@ func (u_ UserInterfaceItemSearchingObject) HasSearchForItemsWithSearchStringResu func (u_ UserInterfaceItemSearchingObject) SearchForItemsWithSearchStringResultLimitMatchedItemHandler(searchString string, resultLimit int, handleMatchedItems func(items []objc.Object)) { objc.Call[objc.Void](u_, objc.Sel("searchForItemsWithSearchString:resultLimit:matchedItemHandler:"), searchString, resultLimit, handleMatchedItems) } + +func (u_ UserInterfaceItemSearchingObject) HasShowAllHelpTopicsForSearchString() bool { + return u_.RespondsToSelector(objc.Sel("showAllHelpTopicsForSearchString:")) +} + +// If this method is implemented, a "Show All Help Topics" item will appear in the menu and this method is called when the user selects it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfaceitemsearching/1420806-showallhelptopicsforsearchstring?language=objc +func (u_ UserInterfaceItemSearchingObject) ShowAllHelpTopicsForSearchString(searchString string) { + objc.Call[objc.Void](u_, objc.Sel("showAllHelpTopicsForSearchString:"), searchString) +} diff --git a/macos/appkit/view.gen.go b/macos/appkit/view.gen.go index 1097f95b..e732bc0d 100644 --- a/macos/appkit/view.gen.go +++ b/macos/appkit/view.gen.go @@ -21,553 +21,338 @@ type _ViewClass struct { // An interface definition for the [View] class. type IView interface { IResponder - ConvertRectFromView(rect foundation.Rect, view IView) foundation.Rect - ViewDidHide() - SetContentHuggingPriorityForOrientation(priority LayoutPriority, orientation LayoutConstraintOrientation) - DrawFocusRingMask() - ViewDidUnhide() + RotateByAngle(angle float64) + AdjustPageHeightNewTopBottomLimit(newBottom *float64, oldTop float64, oldBottom float64, bottomLimit float64) RemoveCursorRectCursor(rect foundation.Rect, object ICursor) - CenterScanRect(rect foundation.Rect) foundation.Rect - ConvertSizeToView(size foundation.Size, view IView) foundation.Size + GetRectsExposedDuringLiveResizeCount(exposedRects *foundation.Rect, count *int) + RemoveToolTip(tag ToolTipTag) + AddSubview(view IView) + EnterFullScreenModeWithOptions(screen IScreen, options map[ViewFullScreenModeOptionKey]objc.IObject) bool + ViewDidChangeEffectiveAppearance() + DiscardCursorRects() + ConvertPointToBacking(point foundation.Point) foundation.Point + SetFrameOrigin(newOrigin foundation.Point) + ExitFullScreenModeWithOptions(options map[ViewFullScreenModeOptionKey]objc.IObject) + DidCloseMenuWithEvent(menu IMenu, event IEvent) + AddConstraint(constraint ILayoutConstraint) + AddConstraints(constraints []ILayoutConstraint) + AddTrackingRectOwnerUserDataAssumeInside(rect foundation.Rect, owner objc.IObject, data unsafe.Pointer, flag bool) TrackingRectTag + ConvertSizeToBacking(size foundation.Size) foundation.Size WillRemoveSubview(subview IView) - SetBoundsSize(newSize foundation.Size) - ConvertSizeFromBacking(size foundation.Size) foundation.Size - SetBoundsOrigin(newOrigin foundation.Point) - ConvertSizeToLayer(size foundation.Size) foundation.Size - ViewWillStartLiveResize() - MouseInRect(point foundation.Point, rect foundation.Rect) bool - ScrollClipViewToPoint(clipView IClipView, point foundation.Point) - AddTrackingArea(trackingArea ITrackingArea) - ConvertRectToView(rect foundation.Rect, view IView) foundation.Rect + AdjustScroll(newVisible foundation.Rect) foundation.Rect AddGestureRecognizer(gestureRecognizer IGestureRecognizer) - Display() - ReplaceSubviewWith(oldView IView, newView IView) - UpdateTrackingAreas() - RulerViewWillAddMarkerAtLocation(ruler IRulerView, marker IRulerMarker, location float64) float64 - RulerViewWillSetClientView(ruler IRulerView, newClient IView) - DisplayRect(rect foundation.Rect) - MakeBackingLayer() quartzcore.Layer - TranslateOriginToPoint(translation foundation.Point) - ResizeSubviewsWithOldSize(oldSize foundation.Size) - AdjustPageHeightNewTopBottomLimit(newBottom *float64, oldTop float64, oldBottom float64, bottomLimit float64) - UpdateConstraints() - ConvertPointFromView(point foundation.Point, view IView) foundation.Point - AddTrackingRectOwnerUserDataAssumeInside(rect foundation.Rect, owner objc.IObject, data unsafe.Pointer, flag bool) TrackingRectTag - BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect - RulerViewWillMoveMarkerToLocation(ruler IRulerView, marker IRulerMarker, location float64) float64 - BeginDocument() - AlignmentRectForFrame(frame foundation.Rect) foundation.Rect - LocationOfPrintRect(rect foundation.Rect) foundation.Point - WillOpenMenuWithEvent(menu IMenu, event IEvent) - RemoveGestureRecognizer(gestureRecognizer IGestureRecognizer) + ConvertRectFromBacking(rect foundation.Rect) foundation.Rect + BitmapImageRepForCachingDisplayInRect(rect foundation.Rect) BitmapImageRep + ShowDefinitionForAttributedStringAtPoint(attrString foundation.IAttributedString, textBaselineOrigin foundation.Point) + NeedsToDrawRect(rect foundation.Rect) bool + EndPage() + HitTest(point foundation.Point) View DrawPageBorderWithSize(borderSize foundation.Size) - GetRectsExposedDuringLiveResizeCount(exposedRects *foundation.Rect, count *int) + AddTrackingArea(trackingArea ITrackingArea) + ScrollRectToVisible(rect foundation.Rect) bool + ResetCursorRects() + ShouldDelayWindowOrderingForEvent(event IEvent) bool + ConvertSizeFromBacking(size foundation.Size) foundation.Size WritePDFInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) - ConvertSizeFromView(size foundation.Size, view IView) foundation.Size - ScaleUnitSquareToSize(newUnitSize foundation.Size) - EndPage() - DisplayIfNeededInRectIgnoringOpacity(rect foundation.Rect) - Layout() - DisplayIfNeededInRect(rect foundation.Rect) - NeedsToDrawRect(rect foundation.Rect) bool - ViewDidEndLiveResize() - AdjustPageWidthNewLeftRightLimit(newRight *float64, oldLeft float64, oldRight float64, rightLimit float64) - Autoscroll(event IEvent) bool - RulerViewPointForLocation(ruler IRulerView, point float64) foundation.Point - RotateByAngle(angle float64) - EndDocument() - MenuForEvent(event IEvent) Menu - ConvertPointToBacking(point foundation.Point) foundation.Point - ExerciseAmbiguityInLayout() - BeginPageInRectAtPlacement(rect foundation.Rect, location foundation.Point) - DataWithPDFInsideRect(rect foundation.Rect) []byte - RulerViewHandleMouseDown(ruler IRulerView, event IEvent) - RemoveToolTip(tag ToolTipTag) - TranslateRectsNeedingDisplayInRectBy(clipRect foundation.Rect, delta foundation.Size) + UpdateConstraintsForSubtreeIfNeeded() + ConvertPointToLayer(point foundation.Point) foundation.Point RectForSmartMagnificationAtPointInRect(location foundation.Point, visibleRect foundation.Rect) foundation.Rect - ViewWillMoveToWindow(newWindow IWindow) - ExitFullScreenModeWithOptions(options map[ViewFullScreenModeOptionKey]objc.IObject) + ScrollPoint(point foundation.Point) + ViewDidMoveToSuperview() + MenuForEvent(event IEvent) Menu DataWithEPSInsideRect(rect foundation.Rect) []byte - ConvertPointToView(point foundation.Point, view IView) foundation.Point - LayoutSubtreeIfNeeded() - ViewWillMoveToSuperview(newSuperview IView) - RemoveTrackingArea(trackingArea ITrackingArea) - RemoveFromSuperviewWithoutNeedingDisplay() - DiscardCursorRects() - ResizeWithOldSuperviewSize(oldSize foundation.Size) + AncestorSharedWithView(view IView) View + UpdateLayer() + AddCursorRectCursor(rect foundation.Rect, object ICursor) + RemoveFromSuperview() + EndDocument() + TranslateRectsNeedingDisplayInRectBy(clipRect foundation.Rect, delta foundation.Size) + RemoveLayoutGuide(guide ILayoutGuide) + DisplayIfNeededInRect(rect foundation.Rect) + Autoscroll(event IEvent) bool + ConvertRectFromView(rect foundation.Rect, view IView) foundation.Rect + AcceptsFirstMouse(event IEvent) bool + ConstraintsAffectingLayoutForOrientation(orientation LayoutConstraintOrientation) []LayoutConstraint + RemoveConstraint(constraint ILayoutConstraint) + CenterScanRect(rect foundation.Rect) foundation.Rect + ScrollClipViewToPoint(clipView IClipView, point foundation.Point) + TranslateOriginToPoint(translation foundation.Point) + DisplayRectIgnoringOpacity(rect foundation.Rect) + ConvertRectToBacking(rect foundation.Rect) foundation.Rect + ViewDidUnhide() + UpdateTrackingAreas() + ViewDidChangeBackingProperties() RegisterForDraggedTypes(newTypes []PasteboardType) - AdjustScroll(newVisible foundation.Rect) foundation.Rect - SetContentCompressionResistancePriorityForOrientation(priority LayoutPriority, orientation LayoutConstraintOrientation) - RulerViewShouldAddMarker(ruler IRulerView, marker IRulerMarker) bool - DidAddSubview(subview IView) - UpdateConstraintsForSubtreeIfNeeded() - RemoveConstraints(constraints []ILayoutConstraint) - AddToolTipRectOwnerUserData(rect foundation.Rect, owner objc.IObject, data unsafe.Pointer) ToolTipTag - RulerViewShouldRemoveMarker(ruler IRulerView, marker IRulerMarker) bool - DidCloseMenuWithEvent(menu IMenu, event IEvent) - ConvertPointFromBacking(point foundation.Point) foundation.Point - ViewWillDraw() - ConvertSizeToBacking(size foundation.Size) foundation.Size - AddSubview(view IView) - ShowDefinitionForAttributedStringRangeOptionsBaselineOriginProvider(attrString foundation.IAttributedString, targetRange foundation.Range, options map[DefinitionOptionKey]objc.IObject, originProvider func(adjustedRange foundation.Range) foundation.Point) - ViewDidMoveToWindow() - DisplayRectIgnoringOpacityInContext(rect foundation.Rect, context IGraphicsContext) - AddConstraint(constraint ILayoutConstraint) + ViewDidHide() + CacheDisplayInRectToBitmapImageRep(rect foundation.Rect, bitmapImageRep IBitmapImageRep) + RemoveFromSuperviewWithoutNeedingDisplay() BeginDraggingSessionWithItemsEventSource(items []IDraggingItem, event IEvent, source PDraggingSource) DraggingSession BeginDraggingSessionWithItemsEventSourceObject(items []IDraggingItem, event IEvent, sourceObject objc.IObject) DraggingSession + WillOpenMenuWithEvent(menu IMenu, event IEvent) + Display() + ResizeWithOldSuperviewSize(oldSize foundation.Size) + AddToolTipRectOwnerUserData(rect foundation.Rect, owner objc.IObject, data unsafe.Pointer) ToolTipTag + SetContentHuggingPriorityForOrientation(priority LayoutPriority, orientation LayoutConstraintOrientation) + ReflectScrolledClipView(clipView IClipView) SetKeyboardFocusRingNeedsDisplayInRect(rect foundation.Rect) - ResetCursorRects() - InvalidateIntrinsicContentSize() - SetNeedsDisplayInRect(invalidRect foundation.Rect) - UpdateLayer() - ViewDidChangeBackingProperties() + UpdateConstraints() + RemoveTrackingRect(tag TrackingRectTag) SetFrameSize(newSize foundation.Size) - SetFrameOrigin(newOrigin foundation.Point) + SetBoundsOrigin(newOrigin foundation.Point) + LocationOfPrintRect(rect foundation.Rect) foundation.Point + ConvertPointFromLayer(point foundation.Point) foundation.Point + ConvertSizeFromLayer(size foundation.Size) foundation.Size + ReplaceSubviewWith(oldView IView, newView IView) + ConvertPointFromBacking(point foundation.Point) foundation.Point + KnowsPageRange(range_ foundation.RangePointer) bool + RulerViewLocationForPoint(ruler IRulerView, point foundation.Point) float64 Print(sender objc.IObject) - RulerViewDidRemoveMarker(ruler IRulerView, marker IRulerMarker) - FrameForAlignmentRect(alignmentRect foundation.Rect) foundation.Rect - ConvertRectToLayer(rect foundation.Rect) foundation.Rect - ScrollPoint(point foundation.Point) - ConstraintsAffectingLayoutForOrientation(orientation LayoutConstraintOrientation) []LayoutConstraint - RulerViewDidAddMarker(ruler IRulerView, marker IRulerMarker) - RemoveConstraint(constraint ILayoutConstraint) - ViewWithTag(tag int) View - ShouldDelayWindowOrderingForEvent(event IEvent) bool + ContentCompressionResistancePriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority PrepareContentInRect(rect foundation.Rect) + RemoveConstraints(constraints []ILayoutConstraint) + BeginDocument() + ResizeSubviewsWithOldSize(oldSize foundation.Size) + SetBoundsSize(newSize foundation.Size) DrawRect(dirtyRect foundation.Rect) - RemoveLayoutGuide(guide ILayoutGuide) - CacheDisplayInRectToBitmapImageRep(rect foundation.Rect, bitmapImageRep IBitmapImageRep) - KnowsPageRange(range_ foundation.RangePointer) bool + DrawFocusRingMask() + ConvertRectToLayer(rect foundation.Rect) foundation.Rect + ScaleUnitSquareToSize(newUnitSize foundation.Size) + BeginPageInRectAtPlacement(rect foundation.Rect, location foundation.Point) + ViewWillMoveToSuperview(newSuperview IView) + ContentHuggingPriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority + Layout() + PrepareForReuse() + RemoveTrackingArea(trackingArea ITrackingArea) + RemoveAllToolTips() + DataWithPDFInsideRect(rect foundation.Rect) []byte + InvalidateIntrinsicContentSize() + SetContentCompressionResistancePriorityForOrientation(priority LayoutPriority, orientation LayoutConstraintOrientation) SortSubviewsUsingFunctionContext(compare func(arg0 View, arg1 View, arg2 unsafe.Pointer) foundation.ComparisonResult, context unsafe.Pointer) - ViewDidMoveToSuperview() - ConvertRectFromLayer(rect foundation.Rect) foundation.Rect - AcceptsFirstMouse(event IEvent) bool - NoteFocusRingMaskChanged() - RemoveFromSuperview() - WriteEPSInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) - BitmapImageRepForCachingDisplayInRect(rect foundation.Rect) BitmapImageRep - AddSubviewPositionedRelativeTo(view IView, place WindowOrderingMode, otherView IView) + ViewDidEndLiveResize() + ViewWillMoveToWindow(newWindow IWindow) DisplayIfNeededIgnoringOpacity() - HitTest(point foundation.Point) View - EnterFullScreenModeWithOptions(screen IScreen, options map[ViewFullScreenModeOptionKey]objc.IObject) bool - ContentHuggingPriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority - ScrollRectToVisible(rect foundation.Rect) bool - DisplayIfNeeded() - AddCursorRectCursor(rect foundation.Rect, object ICursor) + AlignmentRectForFrame(frame foundation.Rect) foundation.Rect UnregisterDraggedTypes() - RulerViewDidMoveMarker(ruler IRulerView, marker IRulerMarker) + RemoveGestureRecognizer(gestureRecognizer IGestureRecognizer) + AdjustPageWidthNewLeftRightLimit(newRight *float64, oldLeft float64, oldRight float64, rightLimit float64) + ViewWillStartLiveResize() RectForPage(page int) foundation.Rect - IsDescendantOf(view IView) bool - ConvertRectFromBacking(rect foundation.Rect) foundation.Rect - ConvertPointToLayer(point foundation.Point) foundation.Point - GetRectsBeingDrawnCount(rects unsafe.Pointer, count *int) + ViewWillDraw() AddLayoutGuide(guide ILayoutGuide) - PrepareForReuse() - RulerViewShouldMoveMarker(ruler IRulerView, marker IRulerMarker) bool - ConvertPointFromLayer(point foundation.Point) foundation.Point - ViewDidChangeEffectiveAppearance() - ContentCompressionResistancePriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority - AncestorSharedWithView(view IView) View - ReflectScrolledClipView(clipView IClipView) - RulerViewLocationForPoint(ruler IRulerView, point foundation.Point) float64 - ShowDefinitionForAttributedStringAtPoint(attrString foundation.IAttributedString, textBaselineOrigin foundation.Point) - ConvertRectToBacking(rect foundation.Rect) foundation.Rect - RemoveAllToolTips() - AddConstraints(constraints []ILayoutConstraint) - RemoveTrackingRect(tag TrackingRectTag) - DisplayRectIgnoringOpacity(rect foundation.Rect) - ConvertSizeFromLayer(size foundation.Size) foundation.Size - WantsLayer() bool - SetWantsLayer(value bool) - CanDrawSubviewsIntoLayer() bool - SetCanDrawSubviewsIntoLayer(value bool) - WantsUpdateLayer() bool - IsHorizontalContentSizeConstraintActive() bool - SetHorizontalContentSizeConstraintActive(value bool) - IntrinsicContentSize() foundation.Size - LayerContentsPlacement() ViewLayerContentsPlacement - SetLayerContentsPlacement(value ViewLayerContentsPlacement) - PrintJobTitle() string + NoteFocusRingMaskChanged() + ViewWithTag(tag int) View + WriteEPSInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) + ExerciseAmbiguityInLayout() + ViewDidMoveToWindow() + LayoutSubtreeIfNeeded() + GetRectsBeingDrawnCount(rects unsafe.Pointer, count *int) + ConvertSizeToLayer(size foundation.Size) foundation.Size + ConvertRectFromLayer(rect foundation.Rect) foundation.Rect + DisplayRect(rect foundation.Rect) + DisplayIfNeededInRectIgnoringOpacity(rect foundation.Rect) + SetNeedsDisplayInRect(invalidRect foundation.Rect) + MouseInRect(point foundation.Point, rect foundation.Rect) bool + BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect + DidAddSubview(subview IView) + FrameForAlignmentRect(alignmentRect foundation.Rect) foundation.Rect + ConvertSizeToView(size foundation.Size, view IView) foundation.Size + IsDescendantOf(view IView) bool + DisplayIfNeeded() + MakeBackingLayer() quartzcore.Layer + ConvertPointToView(point foundation.Point, view IView) foundation.Point + LayerUsesCoreImageFilters() bool + SetLayerUsesCoreImageFilters(value bool) TopAnchor() LayoutYAxisAnchor - WantsRestingTouches() bool - SetWantsRestingTouches(value bool) - SafeAreaInsets() foundation.EdgeInsets - NeedsUpdateConstraints() bool - SetNeedsUpdateConstraints(value bool) - TrailingAnchor() LayoutXAxisAnchor + LayerContentsRedrawPolicy() ViewLayerContentsRedrawPolicy + SetLayerContentsRedrawPolicy(value ViewLayerContentsRedrawPolicy) + Layer() quartzcore.Layer + SetLayer(value quartzcore.ILayer) + PrintJobTitle() string LeftAnchor() LayoutXAxisAnchor - IsVerticalContentSizeConstraintActive() bool - SetVerticalContentSizeConstraintActive(value bool) - FocusRingMaskBounds() foundation.Rect - WidthAdjustLimit() float64 - IsHiddenOrHasHiddenAncestor() bool - Shadow() Shadow - SetShadow(value IShadow) - AdditionalSafeAreaInsets() foundation.EdgeInsets - SetAdditionalSafeAreaInsets(value foundation.EdgeInsets) - CenterYAnchor() LayoutYAxisAnchor - PreservesContentDuringLiveResize() bool - Window() Window - IsDrawingFindIndicator() bool - PageFooter() foundation.AttributedString - HasAmbiguousLayout() bool - TrackingAreas() []TrackingArea - Superview() View - NeedsPanelToBecomeKey() bool + VisibleRect() foundation.Rect + InputContext() TextInputContext + IsRotatedOrScaledFromBase() bool IsHidden() bool SetHidden(value bool) - CompositingFilter() coreimage.Filter - SetCompositingFilter(value coreimage.IFilter) - IsOpaque() bool - AutoresizingMask() AutoresizingMaskOptions - SetAutoresizingMask(value AutoresizingMaskOptions) - AlphaValue() float64 - SetAlphaValue(value float64) - HeightAnchor() LayoutDimension - BackgroundFilters() []coreimage.Filter - SetBackgroundFilters(value []coreimage.IFilter) - PreviousValidKeyView() View - TranslatesAutoresizingMaskIntoConstraints() bool - SetTranslatesAutoresizingMaskIntoConstraints(value bool) - VisibleRect() foundation.Rect - CandidateListTouchBarItem() CandidateListTouchBarItem - Tag() int - Constraints() []LayoutConstraint - InLiveResize() bool - IsRotatedFromBase() bool - Bounds() foundation.Rect - SetBounds(value foundation.Rect) - LayoutGuides() []LayoutGuide - NextValidKeyView() View - FrameCenterRotation() float64 - SetFrameCenterRotation(value float64) - LeadingAnchor() LayoutXAxisAnchor - LayerContentsRedrawPolicy() ViewLayerContentsRedrawPolicy - SetLayerContentsRedrawPolicy(value ViewLayerContentsRedrawPolicy) - CenterXAnchor() LayoutXAxisAnchor + NeedsLayout() bool + SetNeedsLayout(value bool) + NextKeyView() View + SetNextKeyView(value IView) + FirstBaselineOffsetFromTop() float64 FittingSize() foundation.Size - BaselineOffsetFromBottom() float64 - ContentFilters() []coreimage.Filter - SetContentFilters(value []coreimage.IFilter) - AllowedTouchTypes() TouchTypeMask - SetAllowedTouchTypes(value TouchTypeMask) - EnclosingMenuItem() MenuItem BoundsRotation() float64 SetBoundsRotation(value float64) AlignmentRectInsets() foundation.EdgeInsets - PreviousKeyView() View - InputContext() TextInputContext - IsInFullScreenMode() bool - LayerUsesCoreImageFilters() bool - SetLayerUsesCoreImageFilters(value bool) - PostsBoundsChangedNotifications() bool - SetPostsBoundsChangedNotifications(value bool) - RegisteredDraggedTypes() []PasteboardType - HeightAdjustLimit() float64 - FocusRingType() FocusRingType - SetFocusRingType(value FocusRingType) - WantsDefaultClipping() bool - FirstBaselineAnchor() LayoutYAxisAnchor - RectPreservedDuringLiveResize() foundation.Rect - OpaqueAncestor() View - EnclosingScrollView() ScrollView + PageFooter() foundation.AttributedString + PostsFrameChangedNotifications() bool + SetPostsFrameChangedNotifications(value bool) + NeedsPanelToBecomeKey() bool + ContentFilters() []coreimage.Filter + SetContentFilters(value []coreimage.IFilter) + NextValidKeyView() View ToolTip() string SetToolTip(value string) - NeedsDisplay() bool - SetNeedsDisplay(value bool) - AutoresizesSubviews() bool - SetAutoresizesSubviews(value bool) - CanBecomeKeyView() bool - LastBaselineAnchor() LayoutYAxisAnchor - FirstBaselineOffsetFromTop() float64 - UserInterfaceLayoutDirection() UserInterfaceLayoutDirection - SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) - FrameRotation() float64 - SetFrameRotation(value float64) - Layer() quartzcore.Layer - SetLayer(value quartzcore.ILayer) - AllowsVibrancy() bool - LayoutMarginsGuide() LayoutGuide - IsRotatedOrScaledFromBase() bool + FrameCenterRotation() float64 + SetFrameCenterRotation(value float64) + CenterYAnchor() LayoutYAxisAnchor + PreservesContentDuringLiveResize() bool + TranslatesAutoresizingMaskIntoConstraints() bool + SetTranslatesAutoresizingMaskIntoConstraints(value bool) + FirstBaselineAnchor() LayoutYAxisAnchor + LastBaselineOffsetFromBottom() float64 + PressureConfiguration() PressureConfiguration + SetPressureConfiguration(value IPressureConfiguration) + WantsUpdateLayer() bool + FocusRingType() FocusRingType + SetFocusRingType(value FocusRingType) + TrackingAreas() []TrackingArea + PostsBoundsChangedNotifications() bool + SetPostsBoundsChangedNotifications(value bool) GestureRecognizers() []GestureRecognizer SetGestureRecognizers(value []IGestureRecognizer) + EnclosingScrollView() ScrollView + AlphaValue() float64 + SetAlphaValue(value float64) + PageHeader() foundation.AttributedString + SafeAreaLayoutGuide() LayoutGuide RightAnchor() LayoutXAxisAnchor + IsRotatedFromBase() bool PreparedContentRect() foundation.Rect SetPreparedContentRect(value foundation.Rect) - PressureConfiguration() PressureConfiguration - SetPressureConfiguration(value IPressureConfiguration) - LastBaselineOffsetFromBottom() float64 - NeedsLayout() bool - SetNeedsLayout(value bool) - SafeAreaLayoutGuide() LayoutGuide - SafeAreaRect() foundation.Rect - MouseDownCanMoveWindow() bool - CanDrawConcurrently() bool - SetCanDrawConcurrently(value bool) + Bounds() foundation.Rect + SetBounds(value foundation.Rect) + BaselineOffsetFromBottom() float64 + SafeAreaInsets() foundation.EdgeInsets + InLiveResize() bool + IsDrawingFindIndicator() bool + CandidateListTouchBarItem() CandidateListTouchBarItem + LayoutMarginsGuide() LayoutGuide + UserInterfaceLayoutDirection() UserInterfaceLayoutDirection + SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) BottomAnchor() LayoutYAxisAnchor - WidthAnchor() LayoutDimension - Subviews() []View - SetSubviews(value []IView) - PageHeader() foundation.AttributedString - IsFlipped() bool - PostsFrameChangedNotifications() bool - SetPostsFrameChangedNotifications(value bool) - NextKeyView() View - SetNextKeyView(value IView) + OpaqueAncestor() View + LayerContentsPlacement() ViewLayerContentsPlacement + SetLayerContentsPlacement(value ViewLayerContentsPlacement) + IsOpaque() bool + PreviousValidKeyView() View + EnclosingMenuItem() MenuItem + NeedsUpdateConstraints() bool + SetNeedsUpdateConstraints(value bool) + HeightAnchor() LayoutDimension + LayoutGuides() []LayoutGuide + WantsDefaultClipping() bool + SafeAreaRect() foundation.Rect + WantsLayer() bool + SetWantsLayer(value bool) + IntrinsicContentSize() foundation.Size + AutoresizesSubviews() bool + SetAutoresizesSubviews(value bool) + TrailingAnchor() LayoutXAxisAnchor + CanDrawSubviewsIntoLayer() bool + SetCanDrawSubviewsIntoLayer(value bool) + PreviousKeyView() View + LeadingAnchor() LayoutXAxisAnchor + AllowedTouchTypes() TouchTypeMask + SetAllowedTouchTypes(value TouchTypeMask) + FocusRingMaskBounds() foundation.Rect Frame() foundation.Rect SetFrame(value foundation.Rect) + CanBecomeKeyView() bool + IsInFullScreenMode() bool + CanDrawConcurrently() bool + SetCanDrawConcurrently(value bool) + Tag() int + Shadow() Shadow + SetShadow(value IShadow) + WidthAdjustLimit() float64 + AdditionalSafeAreaInsets() foundation.EdgeInsets + SetAdditionalSafeAreaInsets(value foundation.EdgeInsets) + CompositingFilter() coreimage.Filter + SetCompositingFilter(value coreimage.IFilter) + RegisteredDraggedTypes() []PasteboardType + IsHiddenOrHasHiddenAncestor() bool + Window() Window + IsVerticalContentSizeConstraintActive() bool + SetVerticalContentSizeConstraintActive(value bool) + AutoresizingMask() AutoresizingMaskOptions + SetAutoresizingMask(value AutoresizingMaskOptions) + BackgroundFilters() []coreimage.Filter + SetBackgroundFilters(value []coreimage.IFilter) + HasAmbiguousLayout() bool + Constraints() []LayoutConstraint + HeightAdjustLimit() float64 + IsHorizontalContentSizeConstraintActive() bool + SetHorizontalContentSizeConstraintActive(value bool) + AllowsVibrancy() bool + Subviews() []View + SetSubviews(value []IView) + IsFlipped() bool + RectPreservedDuringLiveResize() foundation.Rect + MouseDownCanMoveWindow() bool + CenterXAnchor() LayoutXAxisAnchor + WantsRestingTouches() bool + SetWantsRestingTouches(value bool) + LastBaselineAnchor() LayoutYAxisAnchor + WidthAnchor() LayoutDimension + FrameRotation() float64 + SetFrameRotation(value float64) + Superview() View + NeedsDisplay() bool + SetNeedsDisplay(value bool) } -// The infrastructure for drawing, printing, and handling events in an app. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview?language=objc -type View struct { - Responder -} - -func ViewFrom(ptr unsafe.Pointer) View { - return View{ - Responder: ResponderFrom(ptr), - } -} - -func (v_ View) InitWithFrame(frameRect foundation.Rect) View { - rv := objc.Call[View](v_, objc.Sel("initWithFrame:"), frameRect) - return rv -} - -// Initializes and returns a newly allocated NSView object with a specified frame rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483458-initwithframe?language=objc -func NewViewWithFrame(frameRect foundation.Rect) View { - instance := ViewClass.Alloc().InitWithFrame(frameRect) - instance.Autorelease() - return instance -} - -func (vc _ViewClass) Alloc() View { - rv := objc.Call[View](vc, objc.Sel("alloc")) - return rv -} - -func (vc _ViewClass) New() View { - rv := objc.Call[View](vc, objc.Sel("new")) - rv.Autorelease() - return rv -} - -func NewView() View { - return ViewClass.New() -} - -func (v_ View) Init() View { - rv := objc.Call[View](v_, objc.Sel("init")) - return rv -} - -// Converts a rectangle from the coordinate system of another view to that of the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483785-convertrect?language=objc -func (v_ View) ConvertRectFromView(rect foundation.Rect, view IView) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRect:fromView:"), rect, view) - return rv -} - -// Invoked when the view is hidden, either directly, or in response to an ancestor being hidden. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483596-viewdidhide?language=objc -func (v_ View) ViewDidHide() { - objc.Call[objc.Void](v_, objc.Sel("viewDidHide")) -} - -// Sets the priority with which a view resists being made larger than its intrinsic size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526937-setcontenthuggingpriority?language=objc -func (v_ View) SetContentHuggingPriorityForOrientation(priority LayoutPriority, orientation LayoutConstraintOrientation) { - objc.Call[objc.Void](v_, objc.Sel("setContentHuggingPriority:forOrientation:"), priority, orientation) -} - -// Draws the focus ring mask for the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483335-drawfocusringmask?language=objc -func (v_ View) DrawFocusRingMask() { - objc.Call[objc.Void](v_, objc.Sel("drawFocusRingMask")) -} - -// Invoked when the view is unhidden, either directly, or in response to an ancestor being unhidden [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483275-viewdidunhide?language=objc -func (v_ View) ViewDidUnhide() { - objc.Call[objc.Void](v_, objc.Sel("viewDidUnhide")) -} - -// Completely removes a cursor rectangle from the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483676-removecursorrect?language=objc -func (v_ View) RemoveCursorRectCursor(rect foundation.Rect, object ICursor) { - objc.Call[objc.Void](v_, objc.Sel("removeCursorRect:cursor:"), rect, object) -} - -// Converts the corners of a specified rectangle to lie on the center of device pixels, which is useful in compensating for rendering overscanning when the coordinate system has been scaled. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483725-centerscanrect?language=objc -func (v_ View) CenterScanRect(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("centerScanRect:"), rect) - return rv -} - -// Converts a size from the view’s coordinate system to that of another view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483744-convertsize?language=objc -func (v_ View) ConvertSizeToView(size foundation.Size, view IView) foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("convertSize:toView:"), size, view) - return rv -} - -// Overridden by subclasses to perform additional actions before subviews are removed from the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483624-willremovesubview?language=objc -func (v_ View) WillRemoveSubview(subview IView) { - objc.Call[objc.Void](v_, objc.Sel("willRemoveSubview:"), subview) -} - -// Sets the size of the view’s bounds rectangle to specified dimensions, inversely scaling its coordinate system relative to its frame rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483399-setboundssize?language=objc -func (v_ View) SetBoundsSize(newSize foundation.Size) { - objc.Call[objc.Void](v_, objc.Sel("setBoundsSize:"), newSize) -} - -// Converts a size from its pixel aligned backing store coordinate system to the view’s interior coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483319-convertsizefrombacking?language=objc -func (v_ View) ConvertSizeFromBacking(size foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("convertSizeFromBacking:"), size) - return rv -} - -// Sets the origin of the view’s bounds rectangle to a specified point. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483345-setboundsorigin?language=objc -func (v_ View) SetBoundsOrigin(newOrigin foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("setBoundsOrigin:"), newOrigin) -} - -// Convert the size from the view’s interior coordinate system to the layer’s interior coordinate system. [Full Topic] +// The infrastructure for drawing, printing, and handling events in an app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483701-convertsizetolayer?language=objc -func (v_ View) ConvertSizeToLayer(size foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("convertSizeToLayer:"), size) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview?language=objc +type View struct { + Responder } -// Informs the view of the start of a live resize—the user has started resizing the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483620-viewwillstartliveresize?language=objc -func (v_ View) ViewWillStartLiveResize() { - objc.Call[objc.Void](v_, objc.Sel("viewWillStartLiveResize")) +func ViewFrom(ptr unsafe.Pointer) View { + return View{ + Responder: ResponderFrom(ptr), + } } -// Returns whether a region of the view contains a specified point, accounting for whether the view is flipped or not. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483237-mouse?language=objc -func (v_ View) MouseInRect(point foundation.Point, rect foundation.Rect) bool { - rv := objc.Call[bool](v_, objc.Sel("mouse:inRect:"), point, rect) +func (v_ View) InitWithFrame(frameRect foundation.Rect) View { + rv := objc.Call[View](v_, objc.Sel("initWithFrame:"), frameRect) return rv } -// Notifies the superview of a clip view that the clip view needs to reset the origin of its bounds rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1531337-scrollclipview?language=objc -func (v_ View) ScrollClipViewToPoint(clipView IClipView, point foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("scrollClipView:toPoint:"), clipView, point) -} - -// Adds a given tracking area to the view. [Full Topic] +// Initializes and returns a newly allocated NSView object with a specified frame rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483489-addtrackingarea?language=objc -func (v_ View) AddTrackingArea(trackingArea ITrackingArea) { - objc.Call[objc.Void](v_, objc.Sel("addTrackingArea:"), trackingArea) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483458-initwithframe?language=objc +func NewViewWithFrame(frameRect foundation.Rect) View { + instance := ViewClass.Alloc().InitWithFrame(frameRect) + instance.Autorelease() + return instance } -// Converts a rectangle from the view’s coordinate system to that of another view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483217-convertrect?language=objc -func (v_ View) ConvertRectToView(rect foundation.Rect, view IView) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRect:toView:"), rect, view) +func (vc _ViewClass) Alloc() View { + rv := objc.Call[View](vc, objc.Sel("alloc")) return rv } -// Attaches a gesture recognizer to the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483749-addgesturerecognizer?language=objc -func (v_ View) AddGestureRecognizer(gestureRecognizer IGestureRecognizer) { - objc.Call[objc.Void](v_, objc.Sel("addGestureRecognizer:"), gestureRecognizer) -} - -// Displays the view and all its subviews if possible, invoking each of the NSView methods [appkit/nsview/lockfocus], [appkit/nsview/drawrect], and [appkit/nsview/unlockfocus] as necessary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483487-display?language=objc -func (v_ View) Display() { - objc.Call[objc.Void](v_, objc.Sel("display")) -} - -// Replaces one of the view’s subviews with another view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483632-replacesubview?language=objc -func (v_ View) ReplaceSubviewWith(oldView IView, newView IView) { - objc.Call[objc.Void](v_, objc.Sel("replaceSubview:with:"), oldView, newView) -} - -// Invoked automatically when the view’s geometry changes such that its tracking areas need to be recalculated. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483719-updatetrackingareas?language=objc -func (v_ View) UpdateTrackingAreas() { - objc.Call[objc.Void](v_, objc.Sel("updateTrackingAreas")) -} - -// Informs the client that aRulerView will add the new NSRulerMarker, aMarker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1533016-rulerview?language=objc -func (v_ View) RulerViewWillAddMarkerAtLocation(ruler IRulerView, marker IRulerMarker, location float64) float64 { - rv := objc.Call[float64](v_, objc.Sel("rulerView:willAddMarker:atLocation:"), ruler, marker, location) +func (vc _ViewClass) New() View { + rv := objc.Call[View](vc, objc.Sel("new")) + rv.Autorelease() return rv } -// Informs the client view that aRulerView is about to be appropriated by newClient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1529850-rulerview?language=objc -func (v_ View) RulerViewWillSetClientView(ruler IRulerView, newClient IView) { - objc.Call[objc.Void](v_, objc.Sel("rulerView:willSetClientView:"), ruler, newClient) -} - -// Acts as [appkit/nsview/display], but confining drawing to a rectangular region of the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483518-displayrect?language=objc -func (v_ View) DisplayRect(rect foundation.Rect) { - objc.Call[objc.Void](v_, objc.Sel("displayRect:"), rect) +func NewView() View { + return ViewClass.New() } -// Creates the view’s backing layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483687-makebackinglayer?language=objc -func (v_ View) MakeBackingLayer() quartzcore.Layer { - rv := objc.Call[quartzcore.Layer](v_, objc.Sel("makeBackingLayer")) +func (v_ View) Init() View { + rv := objc.Call[View](v_, objc.Sel("init")) return rv } -// Translates the view’s coordinate system so that its origin moves to a new location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483385-translateorigintopoint?language=objc -func (v_ View) TranslateOriginToPoint(translation foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("translateOriginToPoint:"), translation) -} - -// Informs the view’s subviews that the view’s bounds rectangle size has changed. [Full Topic] +// Rotates the view’s bounds rectangle by a specified degree value around the origin of the coordinate system, (0.0, 0.0). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483495-resizesubviewswitholdsize?language=objc -func (v_ View) ResizeSubviewsWithOldSize(oldSize foundation.Size) { - objc.Call[objc.Void](v_, objc.Sel("resizeSubviewsWithOldSize:"), oldSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483444-rotatebyangle?language=objc +func (v_ View) RotateByAngle(angle float64) { + objc.Call[objc.Void](v_, objc.Sel("rotateByAngle:"), angle) } // Overridden by subclasses to adjust page height during automatic pagination. [Full Topic] @@ -577,255 +362,248 @@ func (v_ View) AdjustPageHeightNewTopBottomLimit(newBottom *float64, oldTop floa objc.Call[objc.Void](v_, objc.Sel("adjustPageHeightNew:top:bottom:limit:"), newBottom, oldTop, oldBottom, bottomLimit) } -// Update constraints for the view. [Full Topic] +// Completely removes a cursor rectangle from the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526891-updateconstraints?language=objc -func (v_ View) UpdateConstraints() { - objc.Call[objc.Void](v_, objc.Sel("updateConstraints")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483676-removecursorrect?language=objc +func (v_ View) RemoveCursorRectCursor(rect foundation.Rect, object ICursor) { + objc.Call[objc.Void](v_, objc.Sel("removeCursorRect:cursor:"), rect, object) } -// Converts a point from the coordinate system of a given view to that of the view. [Full Topic] +// Returns a list of rectangles indicating the newly exposed areas of the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483269-convertpoint?language=objc -func (v_ View) ConvertPointFromView(point foundation.Point, view IView) foundation.Point { - rv := objc.Call[foundation.Point](v_, objc.Sel("convertPoint:fromView:"), point, view) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483221-getrectsexposedduringliveresize?language=objc +func (v_ View) GetRectsExposedDuringLiveResizeCount(exposedRects *foundation.Rect, count *int) { + objc.Call[objc.Void](v_, objc.Sel("getRectsExposedDuringLiveResize:count:"), exposedRects, count) } -// Establishes an area for tracking mouse-entered and mouse-exited events within the view and returns a tag that identifies the tracking rectangle. [Full Topic] +// Removes the tooltip identified by specified tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483668-addtrackingrect?language=objc -func (v_ View) AddTrackingRectOwnerUserDataAssumeInside(rect foundation.Rect, owner objc.IObject, data unsafe.Pointer, flag bool) TrackingRectTag { - rv := objc.Call[TrackingRectTag](v_, objc.Sel("addTrackingRect:owner:userData:assumeInside:"), rect, owner, data, flag) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483522-removetooltip?language=objc +func (v_ View) RemoveToolTip(tag ToolTipTag) { + objc.Call[objc.Void](v_, objc.Sel("removeToolTip:"), tag) } -// Returns a backing store pixel-aligned rectangle in local view coordinates. [Full Topic] +// Adds a view to the view’s subviews so it’s displayed above its siblings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483321-backingalignedrect?language=objc -func (v_ View) BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("backingAlignedRect:options:"), rect, options) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483783-addsubview?language=objc +func (v_ View) AddSubview(view IView) { + objc.Call[objc.Void](v_, objc.Sel("addSubview:"), view) } -// Informs the client that aRulerView will move aMarker, an NSRulerMarker already on the ruler view. [Full Topic] +// Sets the view to full screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1530840-rulerview?language=objc -func (v_ View) RulerViewWillMoveMarkerToLocation(ruler IRulerView, marker IRulerMarker, location float64) float64 { - rv := objc.Call[float64](v_, objc.Sel("rulerView:willMoveMarker:toLocation:"), ruler, marker, location) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483780-enterfullscreenmode?language=objc +func (v_ View) EnterFullScreenModeWithOptions(screen IScreen, options map[ViewFullScreenModeOptionKey]objc.IObject) bool { + rv := objc.Call[bool](v_, objc.Sel("enterFullScreenMode:withOptions:"), screen, options) return rv } -// Invoked at the beginning of the printing session, this method sets up the current graphics context. [Full Topic] +// Informs the view that its effective appearance changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483423-begindocument?language=objc -func (v_ View) BeginDocument() { - objc.Call[objc.Void](v_, objc.Sel("beginDocument")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2977088-viewdidchangeeffectiveappearance?language=objc +func (v_ View) ViewDidChangeEffectiveAppearance() { + objc.Call[objc.Void](v_, objc.Sel("viewDidChangeEffectiveAppearance")) } -// Returns the view’s alignment rectangle for a given frame. [Full Topic] +// Invalidates all cursor rectangles set up using addCursorRect:cursor:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526905-alignmentrectforframe?language=objc -func (v_ View) AlignmentRectForFrame(frame foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("alignmentRectForFrame:"), frame) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483733-discardcursorrects?language=objc +func (v_ View) DiscardCursorRects() { + objc.Call[objc.Void](v_, objc.Sel("discardCursorRects")) } -// Invoked by [appkit/nsview/print] to determine the location of the region of the view being printed on the physical page. [Full Topic] +// Converts a point from the view’s interior coordinate system to its pixel aligned backing store coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483223-locationofprintrect?language=objc -func (v_ View) LocationOfPrintRect(rect foundation.Rect) foundation.Point { - rv := objc.Call[foundation.Point](v_, objc.Sel("locationOfPrintRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483803-convertpointtobacking?language=objc +func (v_ View) ConvertPointToBacking(point foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](v_, objc.Sel("convertPointToBacking:"), point) return rv } -// Called just before a contextual menu for a view is opened on screen. [Full Topic] +// Sets the origin of the view’s frame rectangle to the specified point, effectively repositioning it within its superview. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483429-willopenmenu?language=objc -func (v_ View) WillOpenMenuWithEvent(menu IMenu, event IEvent) { - objc.Call[objc.Void](v_, objc.Sel("willOpenMenu:withEvent:"), menu, event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483283-setframeorigin?language=objc +func (v_ View) SetFrameOrigin(newOrigin foundation.Point) { + objc.Call[objc.Void](v_, objc.Sel("setFrameOrigin:"), newOrigin) } -// Detaches a gesture recognizer from the view. [Full Topic] +// Instructs the view to exit full screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483789-removegesturerecognizer?language=objc -func (v_ View) RemoveGestureRecognizer(gestureRecognizer IGestureRecognizer) { - objc.Call[objc.Void](v_, objc.Sel("removeGestureRecognizer:"), gestureRecognizer) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483256-exitfullscreenmodewithoptions?language=objc +func (v_ View) ExitFullScreenModeWithOptions(options map[ViewFullScreenModeOptionKey]objc.IObject) { + objc.Call[objc.Void](v_, objc.Sel("exitFullScreenModeWithOptions:"), options) } -// Allows applications that use the AppKit pagination facility to draw additional marks on each logical page. [Full Topic] +// Called after a contextual menu that was displayed from the receiving view has been closed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483292-drawpageborderwithsize?language=objc -func (v_ View) DrawPageBorderWithSize(borderSize foundation.Size) { - objc.Call[objc.Void](v_, objc.Sel("drawPageBorderWithSize:"), borderSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483770-didclosemenu?language=objc +func (v_ View) DidCloseMenuWithEvent(menu IMenu, event IEvent) { + objc.Call[objc.Void](v_, objc.Sel("didCloseMenu:withEvent:"), menu, event) } -// Returns a list of rectangles indicating the newly exposed areas of the view. [Full Topic] +// Adds a constraint on the layout of the receiving view or its subviews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483221-getrectsexposedduringliveresize?language=objc -func (v_ View) GetRectsExposedDuringLiveResizeCount(exposedRects *foundation.Rect, count *int) { - objc.Call[objc.Void](v_, objc.Sel("getRectsExposedDuringLiveResize:count:"), exposedRects, count) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526969-addconstraint?language=objc +func (v_ View) AddConstraint(constraint ILayoutConstraint) { + objc.Call[objc.Void](v_, objc.Sel("addConstraint:"), constraint) } -// Writes PDF data that draws the region of the view within a specified rectangle onto a pasteboard. [Full Topic] +// Adds multiple constraints on the layout of the receiving view or its subviews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483499-writepdfinsiderect?language=objc -func (v_ View) WritePDFInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) { - objc.Call[objc.Void](v_, objc.Sel("writePDFInsideRect:toPasteboard:"), rect, pasteboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526931-addconstraints?language=objc +func (v_ View) AddConstraints(constraints []ILayoutConstraint) { + objc.Call[objc.Void](v_, objc.Sel("addConstraints:"), constraints) } -// Converts a size from another view’s coordinate system to that of the view. [Full Topic] +// Establishes an area for tracking mouse-entered and mouse-exited events within the view and returns a tag that identifies the tracking rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483307-convertsize?language=objc -func (v_ View) ConvertSizeFromView(size foundation.Size, view IView) foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("convertSize:fromView:"), size, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483668-addtrackingrect?language=objc +func (v_ View) AddTrackingRectOwnerUserDataAssumeInside(rect foundation.Rect, owner objc.IObject, data unsafe.Pointer, flag bool) TrackingRectTag { + rv := objc.Call[TrackingRectTag](v_, objc.Sel("addTrackingRect:owner:userData:assumeInside:"), rect, owner, data, flag) return rv } -// Scales the view’s coordinate system so that the unit square scales to the specified dimensions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483721-scaleunitsquaretosize?language=objc -func (v_ View) ScaleUnitSquareToSize(newUnitSize foundation.Size) { - objc.Call[objc.Void](v_, objc.Sel("scaleUnitSquareToSize:"), newUnitSize) -} - -// Writes the end of a conforming page. [Full Topic] +// Converts a size from the view’s interior coordinate system to its pixel aligned backing store coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483549-endpage?language=objc -func (v_ View) EndPage() { - objc.Call[objc.Void](v_, objc.Sel("endPage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483227-convertsizetobacking?language=objc +func (v_ View) ConvertSizeToBacking(size foundation.Size) foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("convertSizeToBacking:"), size) + return rv } -// Acts as [appkit/nsview/displayifneeded], but confining drawing to aRect and not backing up to the first opaque ancestor—it simply causes the view and its descendants to execute their drawing code. [Full Topic] +// Overridden by subclasses to perform additional actions before subviews are removed from the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483481-displayifneededinrectignoringopa?language=objc -func (v_ View) DisplayIfNeededInRectIgnoringOpacity(rect foundation.Rect) { - objc.Call[objc.Void](v_, objc.Sel("displayIfNeededInRectIgnoringOpacity:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483624-willremovesubview?language=objc +func (v_ View) WillRemoveSubview(subview IView) { + objc.Call[objc.Void](v_, objc.Sel("willRemoveSubview:"), subview) } -// Perform layout in concert with the constraint-based layout system. [Full Topic] +// Overridden by subclasses to modify a given rectangle, returning the altered rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526146-layout?language=objc -func (v_ View) Layout() { - objc.Call[objc.Void](v_, objc.Sel("layout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483616-adjustscroll?language=objc +func (v_ View) AdjustScroll(newVisible foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("adjustScroll:"), newVisible) + return rv } -// Acts as [appkit/nsview/displayifneeded], confining drawing to a specified region of the view. [Full Topic] +// Attaches a gesture recognizer to the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483813-displayifneededinrect?language=objc -func (v_ View) DisplayIfNeededInRect(rect foundation.Rect) { - objc.Call[objc.Void](v_, objc.Sel("displayIfNeededInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483749-addgesturerecognizer?language=objc +func (v_ View) AddGestureRecognizer(gestureRecognizer IGestureRecognizer) { + objc.Call[objc.Void](v_, objc.Sel("addGestureRecognizer:"), gestureRecognizer) } -// Returns a Boolean value indicating whether the specified rectangle intersects any part of the area that the view is being asked to draw. [Full Topic] +// Converts a rectangle from its pixel aligned backing store coordinate system to the view’s interior coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483570-needstodrawrect?language=objc -func (v_ View) NeedsToDrawRect(rect foundation.Rect) bool { - rv := objc.Call[bool](v_, objc.Sel("needsToDrawRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483819-convertrectfrombacking?language=objc +func (v_ View) ConvertRectFromBacking(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRectFromBacking:"), rect) return rv } -// Informs the view of the end of a live resize—the user has finished resizing the view. [Full Topic] +// Returns a bitmap-representation object suitable for caching the specified portion of the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483543-viewdidendliveresize?language=objc -func (v_ View) ViewDidEndLiveResize() { - objc.Call[objc.Void](v_, objc.Sel("viewDidEndLiveResize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483440-bitmapimagerepforcachingdisplayi?language=objc +func (v_ View) BitmapImageRepForCachingDisplayInRect(rect foundation.Rect) BitmapImageRep { + rv := objc.Call[BitmapImageRep](v_, objc.Sel("bitmapImageRepForCachingDisplayInRect:"), rect) + return rv } -// Overridden by subclasses to adjust page width during automatic pagination. [Full Topic] +// Shows a window displaying the definition of the attributed string at the specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483622-adjustpagewidthnew?language=objc -func (v_ View) AdjustPageWidthNewLeftRightLimit(newRight *float64, oldLeft float64, oldRight float64, rightLimit float64) { - objc.Call[objc.Void](v_, objc.Sel("adjustPageWidthNew:left:right:limit:"), newRight, oldLeft, oldRight, rightLimit) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483747-showdefinitionforattributedstrin?language=objc +func (v_ View) ShowDefinitionForAttributedStringAtPoint(attrString foundation.IAttributedString, textBaselineOrigin foundation.Point) { + objc.Call[objc.Void](v_, objc.Sel("showDefinitionForAttributedString:atPoint:"), attrString, textBaselineOrigin) } -// Scrolls the view’s closest ancestor NSClipView object proportionally to the distance of an event that occurs outside of it. [Full Topic] +// Returns a Boolean value indicating whether the specified rectangle intersects any part of the area that the view is being asked to draw. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483471-autoscroll?language=objc -func (v_ View) Autoscroll(event IEvent) bool { - rv := objc.Call[bool](v_, objc.Sel("autoscroll:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483570-needstodrawrect?language=objc +func (v_ View) NeedsToDrawRect(rect foundation.Rect) bool { + rv := objc.Call[bool](v_, objc.Sel("needsToDrawRect:"), rect) return rv } -// [Full Topic] +// Writes the end of a conforming page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524292-rulerview?language=objc -func (v_ View) RulerViewPointForLocation(ruler IRulerView, point float64) foundation.Point { - rv := objc.Call[foundation.Point](v_, objc.Sel("rulerView:pointForLocation:"), ruler, point) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483549-endpage?language=objc +func (v_ View) EndPage() { + objc.Call[objc.Void](v_, objc.Sel("endPage")) } -// Rotates the view’s bounds rectangle by a specified degree value around the origin of the coordinate system, (0.0, 0.0). [Full Topic] +// Returns the farthest descendant of the view in the view hierarchy (including itself) that contains a specified point, or nil if that point lies completely outside the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483444-rotatebyangle?language=objc -func (v_ View) RotateByAngle(angle float64) { - objc.Call[objc.Void](v_, objc.Sel("rotateByAngle:"), angle) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483364-hittest?language=objc +func (v_ View) HitTest(point foundation.Point) View { + rv := objc.Call[View](v_, objc.Sel("hitTest:"), point) + return rv } -// This method is invoked at the end of the printing session. [Full Topic] +// Allows applications that use the AppKit pagination facility to draw additional marks on each logical page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483610-enddocument?language=objc -func (v_ View) EndDocument() { - objc.Call[objc.Void](v_, objc.Sel("endDocument")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483292-drawpageborderwithsize?language=objc +func (v_ View) DrawPageBorderWithSize(borderSize foundation.Size) { + objc.Call[objc.Void](v_, objc.Sel("drawPageBorderWithSize:"), borderSize) } -// Overridden by subclasses to return a context-sensitive pop-up menu for a given mouse-down event. [Full Topic] +// Adds a given tracking area to the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483231-menuforevent?language=objc -func (v_ View) MenuForEvent(event IEvent) Menu { - rv := objc.Call[Menu](v_, objc.Sel("menuForEvent:"), event) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483489-addtrackingarea?language=objc +func (v_ View) AddTrackingArea(trackingArea ITrackingArea) { + objc.Call[objc.Void](v_, objc.Sel("addTrackingArea:"), trackingArea) } -// Converts a point from the view’s interior coordinate system to its pixel aligned backing store coordinate system. [Full Topic] +// Scrolls the view’s closest ancestor NSClipView object the minimum distance needed so a specified region of the view becomes visible in the clip view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483803-convertpointtobacking?language=objc -func (v_ View) ConvertPointToBacking(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](v_, objc.Sel("convertPointToBacking:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483811-scrollrecttovisible?language=objc +func (v_ View) ScrollRectToVisible(rect foundation.Rect) bool { + rv := objc.Call[bool](v_, objc.Sel("scrollRectToVisible:"), rect) return rv } -// Randomly changes the frame of a view with an ambiguous layout between the different valid values. [Full Topic] +// Overridden by subclasses to define their default cursor rectangles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526934-exerciseambiguityinlayout?language=objc -func (v_ View) ExerciseAmbiguityInLayout() { - objc.Call[objc.Void](v_, objc.Sel("exerciseAmbiguityInLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483448-resetcursorrects?language=objc +func (v_ View) ResetCursorRects() { + objc.Call[objc.Void](v_, objc.Sel("resetCursorRects")) } -// Called at the beginning of each page, this method sets up the coordinate system so that a region inside the view’s bounds is translated to a specified location. [Full Topic] +// Allows the user to drag objects from the view without activating the app or moving the window of the view forward, possibly obscuring the destination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483438-beginpageinrect?language=objc -func (v_ View) BeginPageInRectAtPlacement(rect foundation.Rect, location foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("beginPageInRect:atPlacement:"), rect, location) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483244-shoulddelaywindoworderingforeven?language=objc +func (v_ View) ShouldDelayWindowOrderingForEvent(event IEvent) bool { + rv := objc.Call[bool](v_, objc.Sel("shouldDelayWindowOrderingForEvent:"), event) + return rv } -// Returns PDF data that draws the region of the view within a specified rectangle. [Full Topic] +// Converts a size from its pixel aligned backing store coordinate system to the view’s interior coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483797-datawithpdfinsiderect?language=objc -func (v_ View) DataWithPDFInsideRect(rect foundation.Rect) []byte { - rv := objc.Call[[]byte](v_, objc.Sel("dataWithPDFInsideRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483319-convertsizefrombacking?language=objc +func (v_ View) ConvertSizeFromBacking(size foundation.Size) foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("convertSizeFromBacking:"), size) return rv } -// Informs the client that the user has pressed the mouse button while the cursor is in the ruler area of aRulerView. [Full Topic] +// Writes PDF data that draws the region of the view within a specified rectangle onto a pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524873-rulerview?language=objc -func (v_ View) RulerViewHandleMouseDown(ruler IRulerView, event IEvent) { - objc.Call[objc.Void](v_, objc.Sel("rulerView:handleMouseDown:"), ruler, event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483499-writepdfinsiderect?language=objc +func (v_ View) WritePDFInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) { + objc.Call[objc.Void](v_, objc.Sel("writePDFInsideRect:toPasteboard:"), rect, pasteboard) } -// Removes the tooltip identified by specified tag. [Full Topic] +// Updates the constraints for the receiving view and its subviews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483522-removetooltip?language=objc -func (v_ View) RemoveToolTip(tag ToolTipTag) { - objc.Call[objc.Void](v_, objc.Sel("removeToolTip:"), tag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526939-updateconstraintsforsubtreeifnee?language=objc +func (v_ View) UpdateConstraintsForSubtreeIfNeeded() { + objc.Call[objc.Void](v_, objc.Sel("updateConstraintsForSubtreeIfNeeded")) } -// Translates the display rectangles by the specified delta. [Full Topic] +// Convert the size from the view’s interior coordinate system to the layer's interior coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483731-translaterectsneedingdisplayinre?language=objc -func (v_ View) TranslateRectsNeedingDisplayInRectBy(clipRect foundation.Rect, delta foundation.Size) { - objc.Call[objc.Void](v_, objc.Sel("translateRectsNeedingDisplayInRect:by:"), clipRect, delta) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483315-convertpointtolayer?language=objc +func (v_ View) ConvertPointToLayer(point foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](v_, objc.Sel("convertPointToLayer:"), point) + return rv } // Returns the appropriate rectangle to use when magnifying around the specified point. [Full Topic] @@ -836,18 +614,26 @@ func (v_ View) RectForSmartMagnificationAtPointInRect(location foundation.Point, return rv } -// Informs the view that it’s being added to the view hierarchy of the specified window object (which may be nil). [Full Topic] +// Scrolls the view’s closest ancestor NSClipView object so a point in the view lies at the origin of the clip view's bounds rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483415-viewwillmovetowindow?language=objc -func (v_ View) ViewWillMoveToWindow(newWindow IWindow) { - objc.Call[objc.Void](v_, objc.Sel("viewWillMoveToWindow:"), newWindow) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483394-scrollpoint?language=objc +func (v_ View) ScrollPoint(point foundation.Point) { + objc.Call[objc.Void](v_, objc.Sel("scrollPoint:"), point) } -// Instructs the view to exit full screen mode. [Full Topic] +// Informs the view that its superview has changed (possibly to nil). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483256-exitfullscreenmodewithoptions?language=objc -func (v_ View) ExitFullScreenModeWithOptions(options map[ViewFullScreenModeOptionKey]objc.IObject) { - objc.Call[objc.Void](v_, objc.Sel("exitFullScreenModeWithOptions:"), options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483568-viewdidmovetosuperview?language=objc +func (v_ View) ViewDidMoveToSuperview() { + objc.Call[objc.Void](v_, objc.Sel("viewDidMoveToSuperview")) +} + +// Overridden by subclasses to return a context-sensitive pop-up menu for a given mouse-down event. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483231-menuforevent?language=objc +func (v_ View) MenuForEvent(event IEvent) Menu { + rv := objc.Call[Menu](v_, objc.Sel("menuForEvent:"), event) + return rv } // Returns EPS data that draws the region of the view within a specified rectangle. [Full Topic] @@ -858,186 +644,186 @@ func (v_ View) DataWithEPSInsideRect(rect foundation.Rect) []byte { return rv } -// Converts a point from the view’s coordinate system to that of a given view. [Full Topic] +// Returns the closest ancestor shared by the view and another specified view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483406-convertpoint?language=objc -func (v_ View) ConvertPointToView(point foundation.Point, view IView) foundation.Point { - rv := objc.Call[foundation.Point](v_, objc.Sel("convertPoint:toView:"), point, view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483353-ancestorsharedwithview?language=objc +func (v_ View) AncestorSharedWithView(view IView) View { + rv := objc.Call[View](v_, objc.Sel("ancestorSharedWithView:"), view) return rv } -// Updates the layout of the receiving view and its subviews based on the current views and constraints. [Full Topic] +// Updates the view’s content by modifying its underlying layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526871-layoutsubtreeifneeded?language=objc -func (v_ View) LayoutSubtreeIfNeeded() { - objc.Call[objc.Void](v_, objc.Sel("layoutSubtreeIfNeeded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483580-updatelayer?language=objc +func (v_ View) UpdateLayer() { + objc.Call[objc.Void](v_, objc.Sel("updateLayer")) } -// Informs the view that its superview is about to change to the specified superview (which may be nil). [Full Topic] +// Establishes the cursor to be used when the mouse pointer lies within a specified region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483545-viewwillmovetosuperview?language=objc -func (v_ View) ViewWillMoveToSuperview(newSuperview IView) { - objc.Call[objc.Void](v_, objc.Sel("viewWillMoveToSuperview:"), newSuperview) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483540-addcursorrect?language=objc +func (v_ View) AddCursorRectCursor(rect foundation.Rect, object ICursor) { + objc.Call[objc.Void](v_, objc.Sel("addCursorRect:cursor:"), rect, object) } -// Removes a given tracking area from the view. [Full Topic] +// Unlinks the view from its superview and its window, removes it from the responder chain, and invalidates its cursor rectangles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483634-removetrackingarea?language=objc -func (v_ View) RemoveTrackingArea(trackingArea ITrackingArea) { - objc.Call[objc.Void](v_, objc.Sel("removeTrackingArea:"), trackingArea) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483265-removefromsuperview?language=objc +func (v_ View) RemoveFromSuperview() { + objc.Call[objc.Void](v_, objc.Sel("removeFromSuperview")) } -// Unlinks the view from its superview and its window and removes it from the responder chain, but does not invalidate its cursor rectangles to cause redrawing. [Full Topic] +// This method is invoked at the end of the printing session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483644-removefromsuperviewwithoutneedin?language=objc -func (v_ View) RemoveFromSuperviewWithoutNeedingDisplay() { - objc.Call[objc.Void](v_, objc.Sel("removeFromSuperviewWithoutNeedingDisplay")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483610-enddocument?language=objc +func (v_ View) EndDocument() { + objc.Call[objc.Void](v_, objc.Sel("endDocument")) } -// Invalidates all cursor rectangles set up using [appkit/nsview/addcursorrect]. [Full Topic] +// Translates the display rectangles by the specified delta. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483733-discardcursorrects?language=objc -func (v_ View) DiscardCursorRects() { - objc.Call[objc.Void](v_, objc.Sel("discardCursorRects")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483731-translaterectsneedingdisplayinre?language=objc +func (v_ View) TranslateRectsNeedingDisplayInRectBy(clipRect foundation.Rect, delta foundation.Size) { + objc.Call[objc.Void](v_, objc.Sel("translateRectsNeedingDisplayInRect:by:"), clipRect, delta) } -// Informs the view that the bounds size of its superview has changed. [Full Topic] +// Removes the provided layout guide from the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483697-resizewitholdsuperviewsize?language=objc -func (v_ View) ResizeWithOldSuperviewSize(oldSize foundation.Size) { - objc.Call[objc.Void](v_, objc.Sel("resizeWithOldSuperviewSize:"), oldSize) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1527086-removelayoutguide?language=objc +func (v_ View) RemoveLayoutGuide(guide ILayoutGuide) { + objc.Call[objc.Void](v_, objc.Sel("removeLayoutGuide:"), guide) } -// Registers the pasteboard types that the view will accept as the destination of an image-dragging session. [Full Topic] +// Acts as displayIfNeeded, confining drawing to a specified region of the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483578-registerfordraggedtypes?language=objc -func (v_ View) RegisterForDraggedTypes(newTypes []PasteboardType) { - objc.Call[objc.Void](v_, objc.Sel("registerForDraggedTypes:"), newTypes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483813-displayifneededinrect?language=objc +func (v_ View) DisplayIfNeededInRect(rect foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("displayIfNeededInRect:"), rect) } -// Overridden by subclasses to modify a given rectangle, returning the altered rectangle. [Full Topic] +// Scrolls the view’s closest ancestor NSClipView object proportionally to the distance of an event that occurs outside of it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483616-adjustscroll?language=objc -func (v_ View) AdjustScroll(newVisible foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("adjustScroll:"), newVisible) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483471-autoscroll?language=objc +func (v_ View) Autoscroll(event IEvent) bool { + rv := objc.Call[bool](v_, objc.Sel("autoscroll:"), event) return rv } -// Sets the priority with which a view resists being made smaller than its intrinsic size. [Full Topic] +// Converts a rectangle from the coordinate system of another view to that of the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524974-setcontentcompressionresistancep?language=objc -func (v_ View) SetContentCompressionResistancePriorityForOrientation(priority LayoutPriority, orientation LayoutConstraintOrientation) { - objc.Call[objc.Void](v_, objc.Sel("setContentCompressionResistancePriority:forOrientation:"), priority, orientation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483785-convertrect?language=objc +func (v_ View) ConvertRectFromView(rect foundation.Rect, view IView) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRect:fromView:"), rect, view) + return rv } -// Requests permission for aRulerView to add aMarker, an NSRulerMarker being dragged onto the ruler by the user. [Full Topic] +// Overridden by subclasses to return YES if the view should be sent a mouseDown: message for an initial mouse-down event, NO if not. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526729-rulerview?language=objc -func (v_ View) RulerViewShouldAddMarker(ruler IRulerView, marker IRulerMarker) bool { - rv := objc.Call[bool](v_, objc.Sel("rulerView:shouldAddMarker:"), ruler, marker) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483410-acceptsfirstmouse?language=objc +func (v_ View) AcceptsFirstMouse(event IEvent) bool { + rv := objc.Call[bool](v_, objc.Sel("acceptsFirstMouse:"), event) return rv } -// Overridden by subclasses to perform additional actions when subviews are added to the view. [Full Topic] +// Returns the constraints impacting the layout of the view for a given orientation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483454-didaddsubview?language=objc -func (v_ View) DidAddSubview(subview IView) { - objc.Call[objc.Void](v_, objc.Sel("didAddSubview:"), subview) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1525968-constraintsaffectinglayoutforori?language=objc +func (v_ View) ConstraintsAffectingLayoutForOrientation(orientation LayoutConstraintOrientation) []LayoutConstraint { + rv := objc.Call[[]LayoutConstraint](v_, objc.Sel("constraintsAffectingLayoutForOrientation:"), orientation) + return rv } -// Updates the constraints for the receiving view and its subviews. [Full Topic] +// Removes the specified constraint from the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526939-updateconstraintsforsubtreeifnee?language=objc -func (v_ View) UpdateConstraintsForSubtreeIfNeeded() { - objc.Call[objc.Void](v_, objc.Sel("updateConstraintsForSubtreeIfNeeded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524333-removeconstraint?language=objc +func (v_ View) RemoveConstraint(constraint ILayoutConstraint) { + objc.Call[objc.Void](v_, objc.Sel("removeConstraint:"), constraint) } -// Removes the specified constraints from the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526932-removeconstraints?language=objc -func (v_ View) RemoveConstraints(constraints []ILayoutConstraint) { - objc.Call[objc.Void](v_, objc.Sel("removeConstraints:"), constraints) +// Converts the corners of a specified rectangle to lie on the center of device pixels, which is useful in compensating for rendering overscanning when the coordinate system has been scaled. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483725-centerscanrect?language=objc +func (v_ View) CenterScanRect(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("centerScanRect:"), rect) + return rv } -// Creates a tooltip for a defined area in the view and returns a tag that identifies the tooltip rectangle. [Full Topic] +// Notifies the superview of a clip view that the clip view needs to reset the origin of its bounds rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483229-addtooltiprect?language=objc -func (v_ View) AddToolTipRectOwnerUserData(rect foundation.Rect, owner objc.IObject, data unsafe.Pointer) ToolTipTag { - rv := objc.Call[ToolTipTag](v_, objc.Sel("addToolTipRect:owner:userData:"), rect, owner, data) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1531337-scrollclipview?language=objc +func (v_ View) ScrollClipViewToPoint(clipView IClipView, point foundation.Point) { + objc.Call[objc.Void](v_, objc.Sel("scrollClipView:toPoint:"), clipView, point) } -// Requests permission for aRulerView to remove aMarker. [Full Topic] +// Translates the view’s coordinate system so that its origin moves to a new location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1527001-rulerview?language=objc -func (v_ View) RulerViewShouldRemoveMarker(ruler IRulerView, marker IRulerMarker) bool { - rv := objc.Call[bool](v_, objc.Sel("rulerView:shouldRemoveMarker:"), ruler, marker) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483385-translateorigintopoint?language=objc +func (v_ View) TranslateOriginToPoint(translation foundation.Point) { + objc.Call[objc.Void](v_, objc.Sel("translateOriginToPoint:"), translation) } -// Called after a contextual menu that was displayed from the receiving view has been closed. [Full Topic] +// Displays the view but confines drawing to a specified region and does not back up to the first opaque ancestor—it simply causes the view and its descendants to execute their drawing code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483770-didclosemenu?language=objc -func (v_ View) DidCloseMenuWithEvent(menu IMenu, event IEvent) { - objc.Call[objc.Void](v_, objc.Sel("didCloseMenu:withEvent:"), menu, event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483699-displayrectignoringopacity?language=objc +func (v_ View) DisplayRectIgnoringOpacity(rect foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("displayRectIgnoringOpacity:"), rect) } -// Converts a point from its pixel aligned backing store coordinate system to the view’s interior coordinate system. [Full Topic] +// Converts a rectangle from the view’s interior coordinate system to its pixel aligned backing store coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483456-convertpointfrombacking?language=objc -func (v_ View) ConvertPointFromBacking(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](v_, objc.Sel("convertPointFromBacking:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483648-convertrecttobacking?language=objc +func (v_ View) ConvertRectToBacking(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRectToBacking:"), rect) return rv } -// Informs the view that it’s required to draw content. [Full Topic] +// Invoked when the view is unhidden, either directly, or in response to an ancestor being unhidden [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483351-viewwilldraw?language=objc -func (v_ View) ViewWillDraw() { - objc.Call[objc.Void](v_, objc.Sel("viewWillDraw")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483275-viewdidunhide?language=objc +func (v_ View) ViewDidUnhide() { + objc.Call[objc.Void](v_, objc.Sel("viewDidUnhide")) } -// Converts a size from the view’s interior coordinate system to its pixel aligned backing store coordinate system. [Full Topic] +// Invoked automatically when the view’s geometry changes such that its tracking areas need to be recalculated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483227-convertsizetobacking?language=objc -func (v_ View) ConvertSizeToBacking(size foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("convertSizeToBacking:"), size) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483719-updatetrackingareas?language=objc +func (v_ View) UpdateTrackingAreas() { + objc.Call[objc.Void](v_, objc.Sel("updateTrackingAreas")) } -// Adds a view to the view’s subviews so it’s displayed above its siblings. [Full Topic] +// Responds when the view’s backing store properties change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483783-addsubview?language=objc -func (v_ View) AddSubview(view IView) { - objc.Call[objc.Void](v_, objc.Sel("addSubview:"), view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483742-viewdidchangebackingproperties?language=objc +func (v_ View) ViewDidChangeBackingProperties() { + objc.Call[objc.Void](v_, objc.Sel("viewDidChangeBackingProperties")) } -// Shows a window displaying the definition of the specified range of the attributed string. [Full Topic] +// Registers the pasteboard types that the view will accept as the destination of an image-dragging session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483587-showdefinitionforattributedstrin?language=objc -func (v_ View) ShowDefinitionForAttributedStringRangeOptionsBaselineOriginProvider(attrString foundation.IAttributedString, targetRange foundation.Range, options map[DefinitionOptionKey]objc.IObject, originProvider func(adjustedRange foundation.Range) foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("showDefinitionForAttributedString:range:options:baselineOriginProvider:"), attrString, targetRange, options, originProvider) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483578-registerfordraggedtypes?language=objc +func (v_ View) RegisterForDraggedTypes(newTypes []PasteboardType) { + objc.Call[objc.Void](v_, objc.Sel("registerForDraggedTypes:"), newTypes) } -// Informs the view that it has been added to a new view hierarchy. [Full Topic] +// Invoked when the view is hidden, either directly, or in response to an ancestor being hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483329-viewdidmovetowindow?language=objc -func (v_ View) ViewDidMoveToWindow() { - objc.Call[objc.Void](v_, objc.Sel("viewDidMoveToWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483596-viewdidhide?language=objc +func (v_ View) ViewDidHide() { + objc.Call[objc.Void](v_, objc.Sel("viewDidHide")) } -// Causes the view and its descendants to be redrawn to the specified graphics context. [Full Topic] +// Draws the specified area of the view, and its descendants, into a provided bitmap-representation object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483436-displayrectignoringopacity?language=objc -func (v_ View) DisplayRectIgnoringOpacityInContext(rect foundation.Rect, context IGraphicsContext) { - objc.Call[objc.Void](v_, objc.Sel("displayRectIgnoringOpacity:inContext:"), rect, context) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483552-cachedisplayinrect?language=objc +func (v_ View) CacheDisplayInRectToBitmapImageRep(rect foundation.Rect, bitmapImageRep IBitmapImageRep) { + objc.Call[objc.Void](v_, objc.Sel("cacheDisplayInRect:toBitmapImageRep:"), rect, bitmapImageRep) } -// Adds a constraint on the layout of the receiving view or its subviews. [Full Topic] +// Unlinks the view from its superview and its window and removes it from the responder chain, but does not invalidate its cursor rectangles to cause redrawing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526969-addconstraint?language=objc -func (v_ View) AddConstraint(constraint ILayoutConstraint) { - objc.Call[objc.Void](v_, objc.Sel("addConstraint:"), constraint) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483644-removefromsuperviewwithoutneedin?language=objc +func (v_ View) RemoveFromSuperviewWithoutNeedingDisplay() { + objc.Call[objc.Void](v_, objc.Sel("removeFromSuperviewWithoutNeedingDisplay")) } // Initiates a dragging session with a group of dragging items. [Full Topic] @@ -1057,46 +843,68 @@ func (v_ View) BeginDraggingSessionWithItemsEventSourceObject(items []IDraggingI return rv } -// Invalidates the area around the focus ring. [Full Topic] +// Called just before a contextual menu for a view is opened on screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483556-setkeyboardfocusringneedsdisplay?language=objc -func (v_ View) SetKeyboardFocusRingNeedsDisplayInRect(rect foundation.Rect) { - objc.Call[objc.Void](v_, objc.Sel("setKeyboardFocusRingNeedsDisplayInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483429-willopenmenu?language=objc +func (v_ View) WillOpenMenuWithEvent(menu IMenu, event IEvent) { + objc.Call[objc.Void](v_, objc.Sel("willOpenMenu:withEvent:"), menu, event) } -// Overridden by subclasses to define their default cursor rectangles. [Full Topic] +// Displays the view and all its subviews if possible, invoking each of the NSView methods lockFocus, drawRect:, and unlockFocus as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483448-resetcursorrects?language=objc -func (v_ View) ResetCursorRects() { - objc.Call[objc.Void](v_, objc.Sel("resetCursorRects")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483487-display?language=objc +func (v_ View) Display() { + objc.Call[objc.Void](v_, objc.Sel("display")) } -// Invalidates the view’s intrinsic content size. [Full Topic] +// Informs the view that the bounds size of its superview has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526864-invalidateintrinsiccontentsize?language=objc -func (v_ View) InvalidateIntrinsicContentSize() { - objc.Call[objc.Void](v_, objc.Sel("invalidateIntrinsicContentSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483697-resizewitholdsuperviewsize?language=objc +func (v_ View) ResizeWithOldSuperviewSize(oldSize foundation.Size) { + objc.Call[objc.Void](v_, objc.Sel("resizeWithOldSuperviewSize:"), oldSize) } -// Marks the region of the view within the specified rectangle as needing display, increasing the view’s existing invalid region to include it. [Full Topic] +// Creates a tooltip for a defined area in the view and returns a tag that identifies the tooltip rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483475-setneedsdisplayinrect?language=objc -func (v_ View) SetNeedsDisplayInRect(invalidRect foundation.Rect) { - objc.Call[objc.Void](v_, objc.Sel("setNeedsDisplayInRect:"), invalidRect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483229-addtooltiprect?language=objc +func (v_ View) AddToolTipRectOwnerUserData(rect foundation.Rect, owner objc.IObject, data unsafe.Pointer) ToolTipTag { + rv := objc.Call[ToolTipTag](v_, objc.Sel("addToolTipRect:owner:userData:"), rect, owner, data) + return rv } -// Updates the view’s content by modifying its underlying layer. [Full Topic] +// Sets the priority with which a view resists being made larger than its intrinsic size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483580-updatelayer?language=objc -func (v_ View) UpdateLayer() { - objc.Call[objc.Void](v_, objc.Sel("updateLayer")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526937-setcontenthuggingpriority?language=objc +func (v_ View) SetContentHuggingPriorityForOrientation(priority LayoutPriority, orientation LayoutConstraintOrientation) { + objc.Call[objc.Void](v_, objc.Sel("setContentHuggingPriority:forOrientation:"), priority, orientation) } -// Responds when the view’s backing store properties change. [Full Topic] +// Notifies a clip view’s superview that either the clip view’s bounds rectangle or the document view’s frame rectangle has changed, and that any indicators of the scroll position need to be adjusted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483742-viewdidchangebackingproperties?language=objc -func (v_ View) ViewDidChangeBackingProperties() { - objc.Call[objc.Void](v_, objc.Sel("viewDidChangeBackingProperties")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1534216-reflectscrolledclipview?language=objc +func (v_ View) ReflectScrolledClipView(clipView IClipView) { + objc.Call[objc.Void](v_, objc.Sel("reflectScrolledClipView:"), clipView) +} + +// Invalidates the area around the focus ring. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483556-setkeyboardfocusringneedsdisplay?language=objc +func (v_ View) SetKeyboardFocusRingNeedsDisplayInRect(rect foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("setKeyboardFocusRingNeedsDisplayInRect:"), rect) +} + +// Update constraints for the view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526891-updateconstraints?language=objc +func (v_ View) UpdateConstraints() { + objc.Call[objc.Void](v_, objc.Sel("updateConstraints")) +} + +// Removes the tracking rectangle identified by a tag. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483729-removetrackingrect?language=objc +func (v_ View) RemoveTrackingRect(tag TrackingRectTag) { + objc.Call[objc.Void](v_, objc.Sel("removeTrackingRect:"), tag) } // Sets the size of the view’s frame rectangle to the specified dimensions, resizing it within its superview without affecting its coordinate system. [Full Topic] @@ -1106,85 +914,80 @@ func (v_ View) SetFrameSize(newSize foundation.Size) { objc.Call[objc.Void](v_, objc.Sel("setFrameSize:"), newSize) } -// Sets the origin of the view’s frame rectangle to the specified point, effectively repositioning it within its superview. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483283-setframeorigin?language=objc -func (v_ View) SetFrameOrigin(newOrigin foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("setFrameOrigin:"), newOrigin) -} - -// This action method opens the Print panel, and if the user chooses an option other than canceling, prints the view and all its subviews to the device specified in the Print panel. [Full Topic] +// Sets the origin of the view’s bounds rectangle to a specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483705-print?language=objc -func (v_ View) Print(sender objc.IObject) { - objc.Call[objc.Void](v_, objc.Sel("print:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483345-setboundsorigin?language=objc +func (v_ View) SetBoundsOrigin(newOrigin foundation.Point) { + objc.Call[objc.Void](v_, objc.Sel("setBoundsOrigin:"), newOrigin) } -// Informs the client that aRulerView allowed the user to remove aMarker. [Full Topic] +// Invoked by print: to determine the location of the region of the view being printed on the physical page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524467-rulerview?language=objc -func (v_ View) RulerViewDidRemoveMarker(ruler IRulerView, marker IRulerMarker) { - objc.Call[objc.Void](v_, objc.Sel("rulerView:didRemoveMarker:"), ruler, marker) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483223-locationofprintrect?language=objc +func (v_ View) LocationOfPrintRect(rect foundation.Rect) foundation.Point { + rv := objc.Call[foundation.Point](v_, objc.Sel("locationOfPrintRect:"), rect) + return rv } -// Returns the view’s frame for a given alignment rectangle. [Full Topic] +// Convert the point from the layer's interior coordinate system to the view’s interior coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1525584-frameforalignmentrect?language=objc -func (v_ View) FrameForAlignmentRect(alignmentRect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("frameForAlignmentRect:"), alignmentRect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483554-convertpointfromlayer?language=objc +func (v_ View) ConvertPointFromLayer(point foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](v_, objc.Sel("convertPointFromLayer:"), point) return rv } -// Convert the size from the view’s interior coordinate system to the layer’s interior coordinate system. [Full Topic] +// Convert the size from the layer's interior coordinate system to the view’s interior coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483776-convertrecttolayer?language=objc -func (v_ View) ConvertRectToLayer(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRectToLayer:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483479-convertsizefromlayer?language=objc +func (v_ View) ConvertSizeFromLayer(size foundation.Size) foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("convertSizeFromLayer:"), size) return rv } -// Scrolls the view’s closest ancestor NSClipView object so a point in the view lies at the origin of the clip view's bounds rectangle. [Full Topic] +// Replaces one of the view’s subviews with another view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483394-scrollpoint?language=objc -func (v_ View) ScrollPoint(point foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("scrollPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483632-replacesubview?language=objc +func (v_ View) ReplaceSubviewWith(oldView IView, newView IView) { + objc.Call[objc.Void](v_, objc.Sel("replaceSubview:with:"), oldView, newView) } -// Returns the constraints impacting the layout of the view for a given orientation. [Full Topic] +// Converts a point from its pixel aligned backing store coordinate system to the view’s interior coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1525968-constraintsaffectinglayoutforori?language=objc -func (v_ View) ConstraintsAffectingLayoutForOrientation(orientation LayoutConstraintOrientation) []LayoutConstraint { - rv := objc.Call[[]LayoutConstraint](v_, objc.Sel("constraintsAffectingLayoutForOrientation:"), orientation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483456-convertpointfrombacking?language=objc +func (v_ View) ConvertPointFromBacking(point foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](v_, objc.Sel("convertPointFromBacking:"), point) return rv } -// Informs the client that aRulerView allowed the user to add aMarker. [Full Topic] +// Returns YES if the view handles page boundaries, NO otherwise. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1532033-rulerview?language=objc -func (v_ View) RulerViewDidAddMarker(ruler IRulerView, marker IRulerMarker) { - objc.Call[objc.Void](v_, objc.Sel("rulerView:didAddMarker:"), ruler, marker) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483774-knowspagerange?language=objc +func (v_ View) KnowsPageRange(range_ foundation.RangePointer) bool { + rv := objc.Call[bool](v_, objc.Sel("knowsPageRange:"), range_) + return rv } -// Removes the specified constraint from the view. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524333-removeconstraint?language=objc -func (v_ View) RemoveConstraint(constraint ILayoutConstraint) { - objc.Call[objc.Void](v_, objc.Sel("removeConstraint:"), constraint) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1535261-rulerview?language=objc +func (v_ View) RulerViewLocationForPoint(ruler IRulerView, point foundation.Point) float64 { + rv := objc.Call[float64](v_, objc.Sel("rulerView:locationForPoint:"), ruler, point) + return rv } -// Returns the view’s nearest descendant (including itself) with a specific tag, or nil if no subview has that tag. [Full Topic] +// This action method opens the Print panel, and if the user chooses an option other than canceling, prints the view and all its subviews to the device specified in the Print panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483294-viewwithtag?language=objc -func (v_ View) ViewWithTag(tag int) View { - rv := objc.Call[View](v_, objc.Sel("viewWithTag:"), tag) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483705-print?language=objc +func (v_ View) Print(sender objc.IObject) { + objc.Call[objc.Void](v_, objc.Sel("print:"), sender) } -// Allows the user to drag objects from the view without activating the app or moving the window of the view forward, possibly obscuring the destination. [Full Topic] +// Returns the priority with which a view resists being made smaller than its intrinsic size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483244-shoulddelaywindoworderingforeven?language=objc -func (v_ View) ShouldDelayWindowOrderingForEvent(event IEvent) bool { - rv := objc.Call[bool](v_, objc.Sel("shouldDelayWindowOrderingForEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526991-contentcompressionresistanceprio?language=objc +func (v_ View) ContentCompressionResistancePriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority { + rv := objc.Call[LayoutPriority](v_, objc.Sel("contentCompressionResistancePriorityForOrientation:"), orientation) return rv } @@ -1195,6 +998,34 @@ func (v_ View) PrepareContentInRect(rect foundation.Rect) { objc.Call[objc.Void](v_, objc.Sel("prepareContentInRect:"), rect) } +// Removes the specified constraints from the view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526932-removeconstraints?language=objc +func (v_ View) RemoveConstraints(constraints []ILayoutConstraint) { + objc.Call[objc.Void](v_, objc.Sel("removeConstraints:"), constraints) +} + +// Invoked at the beginning of the printing session, this method sets up the current graphics context. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483423-begindocument?language=objc +func (v_ View) BeginDocument() { + objc.Call[objc.Void](v_, objc.Sel("beginDocument")) +} + +// Informs the view’s subviews that the view’s bounds rectangle size has changed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483495-resizesubviewswitholdsize?language=objc +func (v_ View) ResizeSubviewsWithOldSize(oldSize foundation.Size) { + objc.Call[objc.Void](v_, objc.Sel("resizeSubviewsWithOldSize:"), oldSize) +} + +// Sets the size of the view’s bounds rectangle to specified dimensions, inversely scaling its coordinate system relative to its frame rectangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483399-setboundssize?language=objc +func (v_ View) SetBoundsSize(newSize foundation.Size) { + objc.Call[objc.Void](v_, objc.Sel("setBoundsSize:"), newSize) +} + // Overridden by subclasses to draw the view’s image within the specified rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483686-drawrect?language=objc @@ -1202,145 +1033,134 @@ func (v_ View) DrawRect(dirtyRect foundation.Rect) { objc.Call[objc.Void](v_, objc.Sel("drawRect:"), dirtyRect) } -// Removes the provided layout guide from the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1527086-removelayoutguide?language=objc -func (v_ View) RemoveLayoutGuide(guide ILayoutGuide) { - objc.Call[objc.Void](v_, objc.Sel("removeLayoutGuide:"), guide) -} - -// Draws the specified area of the view, and its descendants, into a provided bitmap-representation object. [Full Topic] +// Draws the focus ring mask for the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483552-cachedisplayinrect?language=objc -func (v_ View) CacheDisplayInRectToBitmapImageRep(rect foundation.Rect, bitmapImageRep IBitmapImageRep) { - objc.Call[objc.Void](v_, objc.Sel("cacheDisplayInRect:toBitmapImageRep:"), rect, bitmapImageRep) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483335-drawfocusringmask?language=objc +func (v_ View) DrawFocusRingMask() { + objc.Call[objc.Void](v_, objc.Sel("drawFocusRingMask")) } -// Returns YES if the view handles page boundaries, NO otherwise. [Full Topic] +// Convert the size from the view’s interior coordinate system to the layer's interior coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483774-knowspagerange?language=objc -func (v_ View) KnowsPageRange(range_ foundation.RangePointer) bool { - rv := objc.Call[bool](v_, objc.Sel("knowsPageRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483776-convertrecttolayer?language=objc +func (v_ View) ConvertRectToLayer(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRectToLayer:"), rect) return rv } -// Orders the view's immediate subviews using the specified comparator function. [Full Topic] +// Scales the view’s coordinate system so that the unit square scales to the specified dimensions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483805-sortsubviewsusingfunction?language=objc -func (v_ View) SortSubviewsUsingFunctionContext(compare func(arg0 View, arg1 View, arg2 unsafe.Pointer) foundation.ComparisonResult, context unsafe.Pointer) { - objc.Call[objc.Void](v_, objc.Sel("sortSubviewsUsingFunction:context:"), compare, context) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483721-scaleunitsquaretosize?language=objc +func (v_ View) ScaleUnitSquareToSize(newUnitSize foundation.Size) { + objc.Call[objc.Void](v_, objc.Sel("scaleUnitSquareToSize:"), newUnitSize) } -// Informs the view that its superview has changed (possibly to nil). [Full Topic] +// Called at the beginning of each page, this method sets up the coordinate system so that a region inside the view’s bounds is translated to a specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483568-viewdidmovetosuperview?language=objc -func (v_ View) ViewDidMoveToSuperview() { - objc.Call[objc.Void](v_, objc.Sel("viewDidMoveToSuperview")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483438-beginpageinrect?language=objc +func (v_ View) BeginPageInRectAtPlacement(rect foundation.Rect, location foundation.Point) { + objc.Call[objc.Void](v_, objc.Sel("beginPageInRect:atPlacement:"), rect, location) } -// Convert the rectangle from the layer’s interior coordinate system to the view’s interior coordinate system. [Full Topic] +// Informs the view that its superview is about to change to the specified superview (which may be nil). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483404-convertrectfromlayer?language=objc -func (v_ View) ConvertRectFromLayer(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRectFromLayer:"), rect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483545-viewwillmovetosuperview?language=objc +func (v_ View) ViewWillMoveToSuperview(newSuperview IView) { + objc.Call[objc.Void](v_, objc.Sel("viewWillMoveToSuperview:"), newSuperview) } -// Overridden by subclasses to return YES if the view should be sent a [appkit/nsresponder/mousedown] message for an initial mouse-down event, NO if not. [Full Topic] +// Returns the priority with which a view resists being made larger than its intrinsic size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483410-acceptsfirstmouse?language=objc -func (v_ View) AcceptsFirstMouse(event IEvent) bool { - rv := objc.Call[bool](v_, objc.Sel("acceptsFirstMouse:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526979-contenthuggingpriorityfororienta?language=objc +func (v_ View) ContentHuggingPriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority { + rv := objc.Call[LayoutPriority](v_, objc.Sel("contentHuggingPriorityForOrientation:"), orientation) return rv } -// Invoked to notify the view that the focus ring mask requires updating. [Full Topic] +// Perform layout in concert with the constraint-based layout system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483809-notefocusringmaskchanged?language=objc -func (v_ View) NoteFocusRingMaskChanged() { - objc.Call[objc.Void](v_, objc.Sel("noteFocusRingMaskChanged")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526146-layout?language=objc +func (v_ View) Layout() { + objc.Call[objc.Void](v_, objc.Sel("layout")) } -// Unlinks the view from its superview and its window, removes it from the responder chain, and invalidates its cursor rectangles. [Full Topic] +// Restores the view to an initial state so that it can be reused. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483265-removefromsuperview?language=objc -func (v_ View) RemoveFromSuperview() { - objc.Call[objc.Void](v_, objc.Sel("removeFromSuperview")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483626-prepareforreuse?language=objc +func (v_ View) PrepareForReuse() { + objc.Call[objc.Void](v_, objc.Sel("prepareForReuse")) } -// Writes EPS data that draws the region of the view within a specified rectangle onto a pasteboard. [Full Topic] +// Removes a given tracking area from the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483235-writeepsinsiderect?language=objc -func (v_ View) WriteEPSInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) { - objc.Call[objc.Void](v_, objc.Sel("writeEPSInsideRect:toPasteboard:"), rect, pasteboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483634-removetrackingarea?language=objc +func (v_ View) RemoveTrackingArea(trackingArea ITrackingArea) { + objc.Call[objc.Void](v_, objc.Sel("removeTrackingArea:"), trackingArea) } -// Returns a bitmap-representation object suitable for caching the specified portion of the view. [Full Topic] +// Removes all tooltips assigned to the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483440-bitmapimagerepforcachingdisplayi?language=objc -func (v_ View) BitmapImageRepForCachingDisplayInRect(rect foundation.Rect) BitmapImageRep { - rv := objc.Call[BitmapImageRep](v_, objc.Sel("bitmapImageRepForCachingDisplayInRect:"), rect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483801-removealltooltips?language=objc +func (v_ View) RemoveAllToolTips() { + objc.Call[objc.Void](v_, objc.Sel("removeAllToolTips")) } -// Inserts a view among the view’s subviews so it’s displayed immediately above or below another view. [Full Topic] +// Returns PDF data that draws the region of the view within a specified rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483640-addsubview?language=objc -func (v_ View) AddSubviewPositionedRelativeTo(view IView, place WindowOrderingMode, otherView IView) { - objc.Call[objc.Void](v_, objc.Sel("addSubview:positioned:relativeTo:"), view, place, otherView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483797-datawithpdfinsiderect?language=objc +func (v_ View) DataWithPDFInsideRect(rect foundation.Rect) []byte { + rv := objc.Call[[]byte](v_, objc.Sel("dataWithPDFInsideRect:"), rect) + return rv } -// Acts as [appkit/nsview/displayifneeded], except that this method doesn’t back up to the first opaque ancestor—it simply causes the view and its descendants to execute their drawing code. [Full Topic] +// Invalidates the view’s intrinsic content size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483526-displayifneededignoringopacity?language=objc -func (v_ View) DisplayIfNeededIgnoringOpacity() { - objc.Call[objc.Void](v_, objc.Sel("displayIfNeededIgnoringOpacity")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526864-invalidateintrinsiccontentsize?language=objc +func (v_ View) InvalidateIntrinsicContentSize() { + objc.Call[objc.Void](v_, objc.Sel("invalidateIntrinsicContentSize")) } -// Returns the farthest descendant of the view in the view hierarchy (including itself) that contains a specified point, or nil if that point lies completely outside the view. [Full Topic] +// Sets the priority with which a view resists being made smaller than its intrinsic size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483364-hittest?language=objc -func (v_ View) HitTest(point foundation.Point) View { - rv := objc.Call[View](v_, objc.Sel("hitTest:"), point) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524974-setcontentcompressionresistancep?language=objc +func (v_ View) SetContentCompressionResistancePriorityForOrientation(priority LayoutPriority, orientation LayoutConstraintOrientation) { + objc.Call[objc.Void](v_, objc.Sel("setContentCompressionResistancePriority:forOrientation:"), priority, orientation) } -// Sets the view to full screen mode. [Full Topic] +// Orders the view's immediate subviews using the specified comparator function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483780-enterfullscreenmode?language=objc -func (v_ View) EnterFullScreenModeWithOptions(screen IScreen, options map[ViewFullScreenModeOptionKey]objc.IObject) bool { - rv := objc.Call[bool](v_, objc.Sel("enterFullScreenMode:withOptions:"), screen, options) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483805-sortsubviewsusingfunction?language=objc +func (v_ View) SortSubviewsUsingFunctionContext(compare func(arg0 View, arg1 View, arg2 unsafe.Pointer) foundation.ComparisonResult, context unsafe.Pointer) { + objc.Call[objc.Void](v_, objc.Sel("sortSubviewsUsingFunction:context:"), compare, context) } -// Returns the priority with which a view resists being made larger than its intrinsic size. [Full Topic] +// Informs the view of the end of a live resize—the user has finished resizing the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526979-contenthuggingpriorityfororienta?language=objc -func (v_ View) ContentHuggingPriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority { - rv := objc.Call[LayoutPriority](v_, objc.Sel("contentHuggingPriorityForOrientation:"), orientation) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483543-viewdidendliveresize?language=objc +func (v_ View) ViewDidEndLiveResize() { + objc.Call[objc.Void](v_, objc.Sel("viewDidEndLiveResize")) } -// Scrolls the view’s closest ancestor NSClipView object the minimum distance needed so a specified region of the view becomes visible in the clip view. [Full Topic] +// Informs the view that it’s being added to the view hierarchy of the specified window object (which may be nil). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483811-scrollrecttovisible?language=objc -func (v_ View) ScrollRectToVisible(rect foundation.Rect) bool { - rv := objc.Call[bool](v_, objc.Sel("scrollRectToVisible:"), rect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483415-viewwillmovetowindow?language=objc +func (v_ View) ViewWillMoveToWindow(newWindow IWindow) { + objc.Call[objc.Void](v_, objc.Sel("viewWillMoveToWindow:"), newWindow) } -// Displays the view and all its subviews if any part of the view has been marked as needing display. [Full Topic] +// Acts as displayIfNeeded, except that this method doesn’t back up to the first opaque ancestor—it simply causes the view and its descendants to execute their drawing code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483566-displayifneeded?language=objc -func (v_ View) DisplayIfNeeded() { - objc.Call[objc.Void](v_, objc.Sel("displayIfNeeded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483526-displayifneededignoringopacity?language=objc +func (v_ View) DisplayIfNeededIgnoringOpacity() { + objc.Call[objc.Void](v_, objc.Sel("displayIfNeededIgnoringOpacity")) } -// Establishes the cursor to be used when the mouse pointer lies within a specified region. [Full Topic] +// Returns the view’s alignment rectangle for a given frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483540-addcursorrect?language=objc -func (v_ View) AddCursorRectCursor(rect foundation.Rect, object ICursor) { - objc.Call[objc.Void](v_, objc.Sel("addCursorRect:cursor:"), rect, object) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526905-alignmentrectforframe?language=objc +func (v_ View) AlignmentRectForFrame(frame foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("alignmentRectForFrame:"), frame) + return rv } // Unregisters the view as a possible destination in a dragging session. [Full Topic] @@ -1350,50 +1170,40 @@ func (v_ View) UnregisterDraggedTypes() { objc.Call[objc.Void](v_, objc.Sel("unregisterDraggedTypes")) } -// Informs the client that aRulerView allowed the user to move aMarker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1534537-rulerview?language=objc -func (v_ View) RulerViewDidMoveMarker(ruler IRulerView, marker IRulerMarker) { - objc.Call[objc.Void](v_, objc.Sel("rulerView:didMoveMarker:"), ruler, marker) -} - -// Implemented by subclasses to determine the portion of the view to be printed for the specified page number. [Full Topic] +// Detaches a gesture recognizer from the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483252-rectforpage?language=objc -func (v_ View) RectForPage(page int) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("rectForPage:"), page) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483789-removegesturerecognizer?language=objc +func (v_ View) RemoveGestureRecognizer(gestureRecognizer IGestureRecognizer) { + objc.Call[objc.Void](v_, objc.Sel("removeGestureRecognizer:"), gestureRecognizer) } -// Returns a Boolean value that indicates whether the view is a subview of the specified view. [Full Topic] +// Overridden by subclasses to adjust page width during automatic pagination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483219-isdescendantof?language=objc -func (v_ View) IsDescendantOf(view IView) bool { - rv := objc.Call[bool](v_, objc.Sel("isDescendantOf:"), view) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483622-adjustpagewidthnew?language=objc +func (v_ View) AdjustPageWidthNewLeftRightLimit(newRight *float64, oldLeft float64, oldRight float64, rightLimit float64) { + objc.Call[objc.Void](v_, objc.Sel("adjustPageWidthNew:left:right:limit:"), newRight, oldLeft, oldRight, rightLimit) } -// Converts a rectangle from its pixel aligned backing store coordinate system to the view’s interior coordinate system. [Full Topic] +// Informs the view of the start of a live resize—the user has started resizing the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483819-convertrectfrombacking?language=objc -func (v_ View) ConvertRectFromBacking(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRectFromBacking:"), rect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483620-viewwillstartliveresize?language=objc +func (v_ View) ViewWillStartLiveResize() { + objc.Call[objc.Void](v_, objc.Sel("viewWillStartLiveResize")) } -// Convert the size from the view’s interior coordinate system to the layer’s interior coordinate system. [Full Topic] +// Implemented by subclasses to determine the portion of the view to be printed for the specified page number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483315-convertpointtolayer?language=objc -func (v_ View) ConvertPointToLayer(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](v_, objc.Sel("convertPointToLayer:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483252-rectforpage?language=objc +func (v_ View) RectForPage(page int) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("rectForPage:"), page) return rv } -// Returns by indirection a list of nonoverlapping rectangles that define the area the view is being asked to draw in [appkit/nsview/drawrect]. [Full Topic] +// Informs the view that it’s required to draw content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483772-getrectsbeingdrawn?language=objc -func (v_ View) GetRectsBeingDrawnCount(rects unsafe.Pointer, count *int) { - objc.Call[objc.Void](v_, objc.Sel("getRectsBeingDrawn:count:"), rects, count) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483351-viewwilldraw?language=objc +func (v_ View) ViewWillDraw() { + objc.Call[objc.Void](v_, objc.Sel("viewWillDraw")) } // Adds the provided layout guide to the view. [Full Topic] @@ -1403,207 +1213,214 @@ func (v_ View) AddLayoutGuide(guide ILayoutGuide) { objc.Call[objc.Void](v_, objc.Sel("addLayoutGuide:"), guide) } -// Restores the view to an initial state so that it can be reused. [Full Topic] +// Invoked to notify the view that the focus ring mask requires updating. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483626-prepareforreuse?language=objc -func (v_ View) PrepareForReuse() { - objc.Call[objc.Void](v_, objc.Sel("prepareForReuse")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483809-notefocusringmaskchanged?language=objc +func (v_ View) NoteFocusRingMaskChanged() { + objc.Call[objc.Void](v_, objc.Sel("noteFocusRingMaskChanged")) } -// Requests permission for aRulerView to move aMarker. [Full Topic] +// Returns the view’s nearest descendant (including itself) with a specific tag, or nil if no subview has that tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1532310-rulerview?language=objc -func (v_ View) RulerViewShouldMoveMarker(ruler IRulerView, marker IRulerMarker) bool { - rv := objc.Call[bool](v_, objc.Sel("rulerView:shouldMoveMarker:"), ruler, marker) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483294-viewwithtag?language=objc +func (v_ View) ViewWithTag(tag int) View { + rv := objc.Call[View](v_, objc.Sel("viewWithTag:"), tag) return rv } -// Convert the point from the layer’s interior coordinate system to the view’s interior coordinate system. [Full Topic] +// Writes EPS data that draws the region of the view within a specified rectangle onto a pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483554-convertpointfromlayer?language=objc -func (v_ View) ConvertPointFromLayer(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](v_, objc.Sel("convertPointFromLayer:"), point) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483235-writeepsinsiderect?language=objc +func (v_ View) WriteEPSInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) { + objc.Call[objc.Void](v_, objc.Sel("writeEPSInsideRect:toPasteboard:"), rect, pasteboard) } -// Informs the view that its effective appearance changed. [Full Topic] +// Randomly changes the frame of a view with an ambiguous layout between the different valid values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2977088-viewdidchangeeffectiveappearance?language=objc -func (v_ View) ViewDidChangeEffectiveAppearance() { - objc.Call[objc.Void](v_, objc.Sel("viewDidChangeEffectiveAppearance")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526934-exerciseambiguityinlayout?language=objc +func (v_ View) ExerciseAmbiguityInLayout() { + objc.Call[objc.Void](v_, objc.Sel("exerciseAmbiguityInLayout")) } -// Returns the priority with which a view resists being made smaller than its intrinsic size. [Full Topic] +// Informs the view that it has been added to a new view hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526991-contentcompressionresistanceprio?language=objc -func (v_ View) ContentCompressionResistancePriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority { - rv := objc.Call[LayoutPriority](v_, objc.Sel("contentCompressionResistancePriorityForOrientation:"), orientation) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483329-viewdidmovetowindow?language=objc +func (v_ View) ViewDidMoveToWindow() { + objc.Call[objc.Void](v_, objc.Sel("viewDidMoveToWindow")) } -// Returns the closest ancestor shared by the view and another specified view. [Full Topic] +// Updates the layout of the receiving view and its subviews based on the current views and constraints. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483353-ancestorsharedwithview?language=objc -func (v_ View) AncestorSharedWithView(view IView) View { - rv := objc.Call[View](v_, objc.Sel("ancestorSharedWithView:"), view) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526871-layoutsubtreeifneeded?language=objc +func (v_ View) LayoutSubtreeIfNeeded() { + objc.Call[objc.Void](v_, objc.Sel("layoutSubtreeIfNeeded")) } -// Notifies a clip view’s superview that either the clip view’s bounds rectangle or the document view’s frame rectangle has changed, and that any indicators of the scroll position need to be adjusted. [Full Topic] +// Returns by indirection a list of nonoverlapping rectangles that define the area the view is being asked to draw in drawRect:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1534216-reflectscrolledclipview?language=objc -func (v_ View) ReflectScrolledClipView(clipView IClipView) { - objc.Call[objc.Void](v_, objc.Sel("reflectScrolledClipView:"), clipView) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483772-getrectsbeingdrawn?language=objc +func (v_ View) GetRectsBeingDrawnCount(rects unsafe.Pointer, count *int) { + objc.Call[objc.Void](v_, objc.Sel("getRectsBeingDrawn:count:"), rects, count) +} + +// Convert the size from the view’s interior coordinate system to the layer's interior coordinate system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483701-convertsizetolayer?language=objc +func (v_ View) ConvertSizeToLayer(size foundation.Size) foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("convertSizeToLayer:"), size) + return rv } -// [Full Topic] +// Convert the rectangle from the layer's interior coordinate system to the view’s interior coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1535261-rulerview?language=objc -func (v_ View) RulerViewLocationForPoint(ruler IRulerView, point foundation.Point) float64 { - rv := objc.Call[float64](v_, objc.Sel("rulerView:locationForPoint:"), ruler, point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483404-convertrectfromlayer?language=objc +func (v_ View) ConvertRectFromLayer(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRectFromLayer:"), rect) return rv } -// Shows a window displaying the definition of the attributed string at the specified point. [Full Topic] +// Acts as display, but confining drawing to a rectangular region of the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483747-showdefinitionforattributedstrin?language=objc -func (v_ View) ShowDefinitionForAttributedStringAtPoint(attrString foundation.IAttributedString, textBaselineOrigin foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("showDefinitionForAttributedString:atPoint:"), attrString, textBaselineOrigin) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483518-displayrect?language=objc +func (v_ View) DisplayRect(rect foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("displayRect:"), rect) } -// Converts a rectangle from the view’s interior coordinate system to its pixel aligned backing store coordinate system. [Full Topic] +// Acts as displayIfNeeded, but confining drawing to aRect and not backing up to the first opaque ancestor—it simply causes the view and its descendants to execute their drawing code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483648-convertrecttobacking?language=objc -func (v_ View) ConvertRectToBacking(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRectToBacking:"), rect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483481-displayifneededinrectignoringopa?language=objc +func (v_ View) DisplayIfNeededInRectIgnoringOpacity(rect foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("displayIfNeededInRectIgnoringOpacity:"), rect) } -// Removes all tooltips assigned to the view. [Full Topic] +// Marks the region of the view within the specified rectangle as needing display, increasing the view’s existing invalid region to include it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483801-removealltooltips?language=objc -func (v_ View) RemoveAllToolTips() { - objc.Call[objc.Void](v_, objc.Sel("removeAllToolTips")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483475-setneedsdisplayinrect?language=objc +func (v_ View) SetNeedsDisplayInRect(invalidRect foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("setNeedsDisplayInRect:"), invalidRect) } -// Adds multiple constraints on the layout of the receiving view or its subviews. [Full Topic] +// Returns whether a region of the view contains a specified point, accounting for whether the view is flipped or not. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526931-addconstraints?language=objc -func (v_ View) AddConstraints(constraints []ILayoutConstraint) { - objc.Call[objc.Void](v_, objc.Sel("addConstraints:"), constraints) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483237-mouse?language=objc +func (v_ View) MouseInRect(point foundation.Point, rect foundation.Rect) bool { + rv := objc.Call[bool](v_, objc.Sel("mouse:inRect:"), point, rect) + return rv } -// Removes the tracking rectangle identified by a tag. [Full Topic] +// Returns a backing store pixel-aligned rectangle in local view coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483729-removetrackingrect?language=objc -func (v_ View) RemoveTrackingRect(tag TrackingRectTag) { - objc.Call[objc.Void](v_, objc.Sel("removeTrackingRect:"), tag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483321-backingalignedrect?language=objc +func (v_ View) BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("backingAlignedRect:options:"), rect, options) + return rv } -// Displays the view but confines drawing to a specified region and does not back up to the first opaque ancestor—it simply causes the view and its descendants to execute their drawing code. [Full Topic] +// Overridden by subclasses to perform additional actions when subviews are added to the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483699-displayrectignoringopacity?language=objc -func (v_ View) DisplayRectIgnoringOpacity(rect foundation.Rect) { - objc.Call[objc.Void](v_, objc.Sel("displayRectIgnoringOpacity:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483454-didaddsubview?language=objc +func (v_ View) DidAddSubview(subview IView) { + objc.Call[objc.Void](v_, objc.Sel("didAddSubview:"), subview) } -// Convert the size from the layer’s interior coordinate system to the view’s interior coordinate system. [Full Topic] +// Returns the view’s frame for a given alignment rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483479-convertsizefromlayer?language=objc -func (v_ View) ConvertSizeFromLayer(size foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("convertSizeFromLayer:"), size) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1525584-frameforalignmentrect?language=objc +func (v_ View) FrameForAlignmentRect(alignmentRect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("frameForAlignmentRect:"), alignmentRect) return rv } -// A Boolean value indicating whether the view uses a layer as its backing store. [Full Topic] +// Converts a size from the view’s coordinate system to that of another view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483695-wantslayer?language=objc -func (v_ View) WantsLayer() bool { - rv := objc.Call[bool](v_, objc.Sel("wantsLayer")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483744-convertsize?language=objc +func (v_ View) ConvertSizeToView(size foundation.Size, view IView) foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("convertSize:toView:"), size, view) return rv } -// A Boolean value indicating whether the view uses a layer as its backing store. [Full Topic] +// Returns a Boolean value that indicates whether the view is a subview of the specified view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483695-wantslayer?language=objc -func (v_ View) SetWantsLayer(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setWantsLayer:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483219-isdescendantof?language=objc +func (v_ View) IsDescendantOf(view IView) bool { + rv := objc.Call[bool](v_, objc.Sel("isDescendantOf:"), view) + return rv } -// A Boolean value indicating whether the view incorporates content from its subviews into its own layer. [Full Topic] +// Displays the view and all its subviews if any part of the view has been marked as needing display. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483347-candrawsubviewsintolayer?language=objc -func (v_ View) CanDrawSubviewsIntoLayer() bool { - rv := objc.Call[bool](v_, objc.Sel("canDrawSubviewsIntoLayer")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483566-displayifneeded?language=objc +func (v_ View) DisplayIfNeeded() { + objc.Call[objc.Void](v_, objc.Sel("displayIfNeeded")) } -// A Boolean value indicating whether the view incorporates content from its subviews into its own layer. [Full Topic] +// Creates the view’s backing layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483347-candrawsubviewsintolayer?language=objc -func (v_ View) SetCanDrawSubviewsIntoLayer(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setCanDrawSubviewsIntoLayer:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483687-makebackinglayer?language=objc +func (v_ View) MakeBackingLayer() quartzcore.Layer { + rv := objc.Call[quartzcore.Layer](v_, objc.Sel("makeBackingLayer")) + return rv } -// A Boolean value indicating which drawing path the view takes when updating its contents. [Full Topic] +// Converts a point from the view’s coordinate system to that of a given view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483461-wantsupdatelayer?language=objc -func (v_ View) WantsUpdateLayer() bool { - rv := objc.Call[bool](v_, objc.Sel("wantsUpdateLayer")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483406-convertpoint?language=objc +func (v_ View) ConvertPointToView(point foundation.Point, view IView) foundation.Point { + rv := objc.Call[foundation.Point](v_, objc.Sel("convertPoint:toView:"), point, view) return rv } -// A Boolean value that indicates whether the view’s horizontal size constraints are active. [Full Topic] +// A Boolean value indicating whether the view’s layer uses Core Image filters and needs in-process rendering. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3353053-horizontalcontentsizeconstrainta?language=objc -func (v_ View) IsHorizontalContentSizeConstraintActive() bool { - rv := objc.Call[bool](v_, objc.Sel("isHorizontalContentSizeConstraintActive")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483576-layerusescoreimagefilters?language=objc +func (v_ View) LayerUsesCoreImageFilters() bool { + rv := objc.Call[bool](v_, objc.Sel("layerUsesCoreImageFilters")) return rv } -// A Boolean value that indicates whether the view’s horizontal size constraints are active. [Full Topic] +// A Boolean value indicating whether the view’s layer uses Core Image filters and needs in-process rendering. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3353053-horizontalcontentsizeconstrainta?language=objc -func (v_ View) SetHorizontalContentSizeConstraintActive(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setHorizontalContentSizeConstraintActive:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483576-layerusescoreimagefilters?language=objc +func (v_ View) SetLayerUsesCoreImageFilters(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setLayerUsesCoreImageFilters:"), value) } -// Returns the default focus ring type. [Full Topic] +// A layout anchor representing the top edge of the view’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483589-defaultfocusringtype?language=objc -func (vc _ViewClass) DefaultFocusRingType() FocusRingType { - rv := objc.Call[FocusRingType](vc, objc.Sel("defaultFocusRingType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526859-topanchor?language=objc +func (v_ View) TopAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("topAnchor")) return rv } -// Returns the default focus ring type. [Full Topic] +// The contents redraw policy for the view’s layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483589-defaultfocusringtype?language=objc -func View_DefaultFocusRingType() FocusRingType { - return ViewClass.DefaultFocusRingType() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483514-layercontentsredrawpolicy?language=objc +func (v_ View) LayerContentsRedrawPolicy() ViewLayerContentsRedrawPolicy { + rv := objc.Call[ViewLayerContentsRedrawPolicy](v_, objc.Sel("layerContentsRedrawPolicy")) + return rv } -// The natural size for the receiving view, considering only properties of the view itself. [Full Topic] +// The contents redraw policy for the view’s layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526996-intrinsiccontentsize?language=objc -func (v_ View) IntrinsicContentSize() foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("intrinsicContentSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483514-layercontentsredrawpolicy?language=objc +func (v_ View) SetLayerContentsRedrawPolicy(value ViewLayerContentsRedrawPolicy) { + objc.Call[objc.Void](v_, objc.Sel("setLayerContentsRedrawPolicy:"), value) } -// The current layer contents placement policy. [Full Topic] +// The Core Animation layer that the view uses as its backing store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483375-layercontentsplacement?language=objc -func (v_ View) LayerContentsPlacement() ViewLayerContentsPlacement { - rv := objc.Call[ViewLayerContentsPlacement](v_, objc.Sel("layerContentsPlacement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483298-layer?language=objc +func (v_ View) Layer() quartzcore.Layer { + rv := objc.Call[quartzcore.Layer](v_, objc.Sel("layer")) return rv } -// The current layer contents placement policy. [Full Topic] +// The Core Animation layer that the view uses as its backing store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483375-layercontentsplacement?language=objc -func (v_ View) SetLayerContentsPlacement(value ViewLayerContentsPlacement) { - objc.Call[objc.Void](v_, objc.Sel("setLayerContentsPlacement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483298-layer?language=objc +func (v_ View) SetLayer(value quartzcore.ILayer) { + objc.Call[objc.Void](v_, objc.Sel("setLayer:"), value) } // The view’s print job title. [Full Topic] @@ -1629,390 +1446,403 @@ func View_DefaultMenu() Menu { return ViewClass.DefaultMenu() } -// A layout anchor representing the top edge of the view’s frame. [Full Topic] +// A layout anchor representing the left edge of the view’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526859-topanchor?language=objc -func (v_ View) TopAnchor() LayoutYAxisAnchor { - rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("topAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526951-leftanchor?language=objc +func (v_ View) LeftAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("leftAnchor")) return rv } -// A Boolean value indicating whether the view wants resting touches. [Full Topic] +// The portion of the view that is not clipped by its superviews. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483594-wantsrestingtouches?language=objc -func (v_ View) WantsRestingTouches() bool { - rv := objc.Call[bool](v_, objc.Sel("wantsRestingTouches")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483446-visiblerect?language=objc +func (v_ View) VisibleRect() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("visibleRect")) return rv } -// A Boolean value indicating whether the view wants resting touches. [Full Topic] +// The text input context object for the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483594-wantsrestingtouches?language=objc -func (v_ View) SetWantsRestingTouches(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setWantsRestingTouches:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483323-inputcontext?language=objc +func (v_ View) InputContext() TextInputContext { + rv := objc.Call[TextInputContext](v_, objc.Sel("inputContext")) + return rv } -// The distances from the edges of your view that define the safe area. [Full Topic] +// A Boolean value indicating whether the view or any of its ancestors has ever had a rotation factor applied to its frame or bounds, or has been scaled from the window’s base coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3553227-safeareainsets?language=objc -func (v_ View) SafeAreaInsets() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](v_, objc.Sel("safeAreaInsets")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483390-rotatedorscaledfrombase?language=objc +func (v_ View) IsRotatedOrScaledFromBase() bool { + rv := objc.Call[bool](v_, objc.Sel("isRotatedOrScaledFromBase")) return rv } -// A Boolean value indicating whether the view’s constraints need to be updated. [Full Topic] +// A Boolean value indicating whether the view is hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526856-needsupdateconstraints?language=objc -func (v_ View) NeedsUpdateConstraints() bool { - rv := objc.Call[bool](v_, objc.Sel("needsUpdateConstraints")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483369-hidden?language=objc +func (v_ View) IsHidden() bool { + rv := objc.Call[bool](v_, objc.Sel("isHidden")) return rv } -// A Boolean value indicating whether the view’s constraints need to be updated. [Full Topic] +// A Boolean value indicating whether the view is hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526856-needsupdateconstraints?language=objc -func (v_ View) SetNeedsUpdateConstraints(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setNeedsUpdateConstraints:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483369-hidden?language=objc +func (v_ View) SetHidden(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setHidden:"), value) } -// A layout anchor representing the trailing edge of the view’s frame. [Full Topic] +// A Boolean value indicating whether the view needs a layout pass before it can be drawn. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526983-trailinganchor?language=objc -func (v_ View) TrailingAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("trailingAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526912-needslayout?language=objc +func (v_ View) NeedsLayout() bool { + rv := objc.Call[bool](v_, objc.Sel("needsLayout")) return rv } -// A layout anchor representing the left edge of the view’s frame. [Full Topic] +// A Boolean value indicating whether the view needs a layout pass before it can be drawn. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526951-leftanchor?language=objc -func (v_ View) LeftAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("leftAnchor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526912-needslayout?language=objc +func (v_ View) SetNeedsLayout(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setNeedsLayout:"), value) } -// A Boolean value that indicates whether the view’s vertical size constraints are active. [Full Topic] +// The view object that follows the current view in the key view loop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3353054-verticalcontentsizeconstraintact?language=objc -func (v_ View) IsVerticalContentSizeConstraintActive() bool { - rv := objc.Call[bool](v_, objc.Sel("isVerticalContentSizeConstraintActive")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483465-nextkeyview?language=objc +func (v_ View) NextKeyView() View { + rv := objc.Call[View](v_, objc.Sel("nextKeyView")) return rv } -// A Boolean value that indicates whether the view’s vertical size constraints are active. [Full Topic] +// The view object that follows the current view in the key view loop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3353054-verticalcontentsizeconstraintact?language=objc -func (v_ View) SetVerticalContentSizeConstraintActive(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setVerticalContentSizeConstraintActive:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483465-nextkeyview?language=objc +func (v_ View) SetNextKeyView(value IView) { + objc.Call[objc.Void](v_, objc.Sel("setNextKeyView:"), value) +} + +// The distance (in points) between the top of the view’s alignment rectangle and its topmost baseline. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526963-firstbaselineoffsetfromtop?language=objc +func (v_ View) FirstBaselineOffsetFromTop() float64 { + rv := objc.Call[float64](v_, objc.Sel("firstBaselineOffsetFromTop")) + return rv } -// The focus ring mask bounds, specified in the view’s coordinate space. [Full Topic] +// The minimum size of the view that satisfies the constraints it holds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483287-focusringmaskbounds?language=objc -func (v_ View) FocusRingMaskBounds() foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("focusRingMaskBounds")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526904-fittingsize?language=objc +func (v_ View) FittingSize() foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("fittingSize")) return rv } -// The fraction of the page that can be pushed onto the next page during automatic pagination to prevent items such as small images or text columns from being divided across pages. [Full Topic] +// The angle of rotation, measured in degrees, applied to the view’s bounds rectangle relative to its frame rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483392-widthadjustlimit?language=objc -func (v_ View) WidthAdjustLimit() float64 { - rv := objc.Call[float64](v_, objc.Sel("widthAdjustLimit")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483746-boundsrotation?language=objc +func (v_ View) BoundsRotation() float64 { + rv := objc.Call[float64](v_, objc.Sel("boundsRotation")) return rv } -// A Boolean value indicating whether the view is hidden from sight because it, or one of its ancestors, is marked as hidden. [Full Topic] +// The angle of rotation, measured in degrees, applied to the view’s bounds rectangle relative to its frame rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483473-hiddenorhashiddenancestor?language=objc -func (v_ View) IsHiddenOrHasHiddenAncestor() bool { - rv := objc.Call[bool](v_, objc.Sel("isHiddenOrHasHiddenAncestor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483746-boundsrotation?language=objc +func (v_ View) SetBoundsRotation(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setBoundsRotation:"), value) } -// The shadow displayed underneath the view. [Full Topic] +// The insets (in points) from the view’s frame that define its content rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483263-shadow?language=objc -func (v_ View) Shadow() Shadow { - rv := objc.Call[Shadow](v_, objc.Sel("shadow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526870-alignmentrectinsets?language=objc +func (v_ View) AlignmentRectInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](v_, objc.Sel("alignmentRectInsets")) return rv } -// The shadow displayed underneath the view. [Full Topic] +// A default footer string that includes the current page number and page count. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483263-shadow?language=objc -func (v_ View) SetShadow(value IShadow) { - objc.Call[objc.Void](v_, objc.Sel("setShadow:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483355-pagefooter?language=objc +func (v_ View) PageFooter() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](v_, objc.Sel("pageFooter")) + return rv } -// Custom insets that you specify to modify your view’s safe area [Full Topic] +// A Boolean value indicating whether the view posts notifications when its frame rectangle changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3553226-additionalsafeareainsets?language=objc -func (v_ View) AdditionalSafeAreaInsets() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](v_, objc.Sel("additionalSafeAreaInsets")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483524-postsframechangednotifications?language=objc +func (v_ View) PostsFrameChangedNotifications() bool { + rv := objc.Call[bool](v_, objc.Sel("postsFrameChangedNotifications")) return rv } -// Custom insets that you specify to modify your view’s safe area [Full Topic] +// A Boolean value indicating whether the view posts notifications when its frame rectangle changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3553226-additionalsafeareainsets?language=objc -func (v_ View) SetAdditionalSafeAreaInsets(value foundation.EdgeInsets) { - objc.Call[objc.Void](v_, objc.Sel("setAdditionalSafeAreaInsets:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483524-postsframechangednotifications?language=objc +func (v_ View) SetPostsFrameChangedNotifications(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setPostsFrameChangedNotifications:"), value) } -// A layout anchor representing the vertical center of the view’s frame. [Full Topic] +// A Boolean value indicating whether the view needs its panel to become the key window before it can handle keyboard input and navigation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526935-centeryanchor?language=objc -func (v_ View) CenterYAnchor() LayoutYAxisAnchor { - rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("centerYAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483512-needspaneltobecomekey?language=objc +func (v_ View) NeedsPanelToBecomeKey() bool { + rv := objc.Call[bool](v_, objc.Sel("needsPanelToBecomeKey")) return rv } -// A Boolean value indicating whether the view optimizes live-resize operations by preserving content that has not moved. [Full Topic] +// An array of Core Image filters to apply to the contents of the view and its sublayers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483795-preservescontentduringliveresize?language=objc -func (v_ View) PreservesContentDuringLiveResize() bool { - rv := objc.Call[bool](v_, objc.Sel("preservesContentDuringLiveResize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483703-contentfilters?language=objc +func (v_ View) ContentFilters() []coreimage.Filter { + rv := objc.Call[[]coreimage.Filter](v_, objc.Sel("contentFilters")) return rv } -// The view’s window object, if it is installed in a window. [Full Topic] +// An array of Core Image filters to apply to the contents of the view and its sublayers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483301-window?language=objc -func (v_ View) Window() Window { - rv := objc.Call[Window](v_, objc.Sel("window")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483703-contentfilters?language=objc +func (v_ View) SetContentFilters(value []coreimage.IFilter) { + objc.Call[objc.Void](v_, objc.Sel("setContentFilters:"), value) } -// A Boolean value indicating whether the view or one of its ancestors is being drawn for a find indicator. [Full Topic] +// The closest view object in the key view loop that follows the current view in the key view loop and accepts first responder status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483317-drawingfindindicator?language=objc -func (v_ View) IsDrawingFindIndicator() bool { - rv := objc.Call[bool](v_, objc.Sel("isDrawingFindIndicator")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483572-nextvalidkeyview?language=objc +func (v_ View) NextValidKeyView() View { + rv := objc.Call[View](v_, objc.Sel("nextValidKeyView")) return rv } -// A default footer string that includes the current page number and page count. [Full Topic] +// The text for the view’s tooltip. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483355-pagefooter?language=objc -func (v_ View) PageFooter() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](v_, objc.Sel("pageFooter")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483541-tooltip?language=objc +func (v_ View) ToolTip() string { + rv := objc.Call[string](v_, objc.Sel("toolTip")) return rv } -// A Boolean value indicating whether the constraints impacting the layout of the view incompletely specify the location of the view. [Full Topic] +// The text for the view’s tooltip. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526907-hasambiguouslayout?language=objc -func (v_ View) HasAmbiguousLayout() bool { - rv := objc.Call[bool](v_, objc.Sel("hasAmbiguousLayout")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483541-tooltip?language=objc +func (v_ View) SetToolTip(value string) { + objc.Call[objc.Void](v_, objc.Sel("setToolTip:"), value) } -// An array of the view’s tracking areas. [Full Topic] +// The rotation angle of the view around the center of its layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483333-trackingareas?language=objc -func (v_ View) TrackingAreas() []TrackingArea { - rv := objc.Call[[]TrackingArea](v_, objc.Sel("trackingAreas")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483367-framecenterrotation?language=objc +func (v_ View) FrameCenterRotation() float64 { + rv := objc.Call[float64](v_, objc.Sel("frameCenterRotation")) return rv } -// The view that is the parent of the current view. [Full Topic] +// The rotation angle of the view around the center of its layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483737-superview?language=objc -func (v_ View) Superview() View { - rv := objc.Call[View](v_, objc.Sel("superview")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483367-framecenterrotation?language=objc +func (v_ View) SetFrameCenterRotation(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setFrameCenterRotation:"), value) +} + +// A layout anchor representing the vertical center of the view’s frame. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526935-centeryanchor?language=objc +func (v_ View) CenterYAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("centerYAnchor")) return rv } -// A Boolean value indicating whether the view needs its panel to become the key window before it can handle keyboard input and navigation. [Full Topic] +// A Boolean value indicating whether the view optimizes live-resize operations by preserving content that has not moved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483512-needspaneltobecomekey?language=objc -func (v_ View) NeedsPanelToBecomeKey() bool { - rv := objc.Call[bool](v_, objc.Sel("needsPanelToBecomeKey")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483795-preservescontentduringliveresize?language=objc +func (v_ View) PreservesContentDuringLiveResize() bool { + rv := objc.Call[bool](v_, objc.Sel("preservesContentDuringLiveResize")) return rv } -// A Boolean value indicating whether the view is hidden. [Full Topic] +// A Boolean value indicating whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483369-hidden?language=objc -func (v_ View) IsHidden() bool { - rv := objc.Call[bool](v_, objc.Sel("isHidden")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526961-translatesautoresizingmaskintoco?language=objc +func (v_ View) TranslatesAutoresizingMaskIntoConstraints() bool { + rv := objc.Call[bool](v_, objc.Sel("translatesAutoresizingMaskIntoConstraints")) return rv } -// A Boolean value indicating whether the view is hidden. [Full Topic] +// A Boolean value indicating whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483369-hidden?language=objc -func (v_ View) SetHidden(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setHidden:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526961-translatesautoresizingmaskintoco?language=objc +func (v_ View) SetTranslatesAutoresizingMaskIntoConstraints(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setTranslatesAutoresizingMaskIntoConstraints:"), value) } -// The currently focused view object. [Full Topic] +// A layout anchor representing the baseline for the topmost line of text in the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483662-focusview?language=objc -func (vc _ViewClass) FocusView() View { - rv := objc.Call[View](vc, objc.Sel("focusView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526900-firstbaselineanchor?language=objc +func (v_ View) FirstBaselineAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("firstBaselineAnchor")) return rv } -// The currently focused view object. [Full Topic] +// The distance (in points) between the bottom of the view’s alignment rectangle and its bottommost baseline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483662-focusview?language=objc -func View_FocusView() View { - return ViewClass.FocusView() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1525942-lastbaselineoffsetfrombottom?language=objc +func (v_ View) LastBaselineOffsetFromBottom() float64 { + rv := objc.Call[float64](v_, objc.Sel("lastBaselineOffsetFromBottom")) + return rv } -// The Core Image filter used to composite the view’s contents with its background. [Full Topic] +// A Boolean value that indicates whether views support responsive scrolling. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483516-compositingfilter?language=objc -func (v_ View) CompositingFilter() coreimage.Filter { - rv := objc.Call[coreimage.Filter](v_, objc.Sel("compositingFilter")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2870005-compatiblewithresponsivescrollin?language=objc +func (vc _ViewClass) CompatibleWithResponsiveScrolling() bool { + rv := objc.Call[bool](vc, objc.Sel("compatibleWithResponsiveScrolling")) return rv } -// The Core Image filter used to composite the view’s contents with its background. [Full Topic] +// A Boolean value that indicates whether views support responsive scrolling. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483516-compositingfilter?language=objc -func (v_ View) SetCompositingFilter(value coreimage.IFilter) { - objc.Call[objc.Void](v_, objc.Sel("setCompositingFilter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2870005-compatiblewithresponsivescrollin?language=objc +func View_CompatibleWithResponsiveScrolling() bool { + return ViewClass.CompatibleWithResponsiveScrolling() } -// Returns a Boolean value indicating whether the view depends on the constraint-based layout system. [Full Topic] +// Configures the behavior and progression of the Force Touch trackpad when responding to touch input produced by the user when the cursor is over the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526926-requiresconstraintbasedlayout?language=objc -func (vc _ViewClass) RequiresConstraintBasedLayout() bool { - rv := objc.Call[bool](vc, objc.Sel("requiresConstraintBasedLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1426890-pressureconfiguration?language=objc +func (v_ View) PressureConfiguration() PressureConfiguration { + rv := objc.Call[PressureConfiguration](v_, objc.Sel("pressureConfiguration")) return rv } -// Returns a Boolean value indicating whether the view depends on the constraint-based layout system. [Full Topic] +// Configures the behavior and progression of the Force Touch trackpad when responding to touch input produced by the user when the cursor is over the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526926-requiresconstraintbasedlayout?language=objc -func View_RequiresConstraintBasedLayout() bool { - return ViewClass.RequiresConstraintBasedLayout() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1426890-pressureconfiguration?language=objc +func (v_ View) SetPressureConfiguration(value IPressureConfiguration) { + objc.Call[objc.Void](v_, objc.Sel("setPressureConfiguration:"), value) } -// A Boolean value indicating whether the view fills its frame rectangle with opaque content. [Full Topic] +// A Boolean value indicating which drawing path the view takes when updating its contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483558-opaque?language=objc -func (v_ View) IsOpaque() bool { - rv := objc.Call[bool](v_, objc.Sel("isOpaque")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483461-wantsupdatelayer?language=objc +func (v_ View) WantsUpdateLayer() bool { + rv := objc.Call[bool](v_, objc.Sel("wantsUpdateLayer")) return rv } -// The options that determine how the view is resized relative to its superview. [Full Topic] +// The type of focus ring drawn around the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483281-autoresizingmask?language=objc -func (v_ View) AutoresizingMask() AutoresizingMaskOptions { - rv := objc.Call[AutoresizingMaskOptions](v_, objc.Sel("autoresizingMask")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483261-focusringtype?language=objc +func (v_ View) FocusRingType() FocusRingType { + rv := objc.Call[FocusRingType](v_, objc.Sel("focusRingType")) return rv } -// The options that determine how the view is resized relative to its superview. [Full Topic] +// The type of focus ring drawn around the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483281-autoresizingmask?language=objc -func (v_ View) SetAutoresizingMask(value AutoresizingMaskOptions) { - objc.Call[objc.Void](v_, objc.Sel("setAutoresizingMask:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483261-focusringtype?language=objc +func (v_ View) SetFocusRingType(value FocusRingType) { + objc.Call[objc.Void](v_, objc.Sel("setFocusRingType:"), value) } -// The opacity of the view. [Full Topic] +// An array of the view’s tracking areas. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483560-alphavalue?language=objc -func (v_ View) AlphaValue() float64 { - rv := objc.Call[float64](v_, objc.Sel("alphaValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483333-trackingareas?language=objc +func (v_ View) TrackingAreas() []TrackingArea { + rv := objc.Call[[]TrackingArea](v_, objc.Sel("trackingAreas")) return rv } -// The opacity of the view. [Full Topic] +// A Boolean value indicating whether the view posts notifications when its bounds rectangle changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483560-alphavalue?language=objc -func (v_ View) SetAlphaValue(value float64) { - objc.Call[objc.Void](v_, objc.Sel("setAlphaValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483239-postsboundschangednotifications?language=objc +func (v_ View) PostsBoundsChangedNotifications() bool { + rv := objc.Call[bool](v_, objc.Sel("postsBoundsChangedNotifications")) + return rv } -// A layout anchor representing the height of the view’s frame. [Full Topic] +// A Boolean value indicating whether the view posts notifications when its bounds rectangle changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526942-heightanchor?language=objc -func (v_ View) HeightAnchor() LayoutDimension { - rv := objc.Call[LayoutDimension](v_, objc.Sel("heightAnchor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483239-postsboundschangednotifications?language=objc +func (v_ View) SetPostsBoundsChangedNotifications(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setPostsBoundsChangedNotifications:"), value) } -// An array of Core Image filters to apply to the view’s background. [Full Topic] +// The gesture recognize objects currently attached to the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483689-backgroundfilters?language=objc -func (v_ View) BackgroundFilters() []coreimage.Filter { - rv := objc.Call[[]coreimage.Filter](v_, objc.Sel("backgroundFilters")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483658-gesturerecognizers?language=objc +func (v_ View) GestureRecognizers() []GestureRecognizer { + rv := objc.Call[[]GestureRecognizer](v_, objc.Sel("gestureRecognizers")) return rv } -// An array of Core Image filters to apply to the view’s background. [Full Topic] +// The gesture recognize objects currently attached to the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483689-backgroundfilters?language=objc -func (v_ View) SetBackgroundFilters(value []coreimage.IFilter) { - objc.Call[objc.Void](v_, objc.Sel("setBackgroundFilters:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483658-gesturerecognizers?language=objc +func (v_ View) SetGestureRecognizers(value []IGestureRecognizer) { + objc.Call[objc.Void](v_, objc.Sel("setGestureRecognizers:"), value) } -// The closest view object in the key view loop that precedes the current view and accepts first responder status. [Full Topic] +// The currently focused view object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483371-previousvalidkeyview?language=objc -func (v_ View) PreviousValidKeyView() View { - rv := objc.Call[View](v_, objc.Sel("previousValidKeyView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483662-focusview?language=objc +func (vc _ViewClass) FocusView() View { + rv := objc.Call[View](vc, objc.Sel("focusView")) return rv } -// A Boolean value indicating whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. [Full Topic] +// The currently focused view object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526961-translatesautoresizingmaskintoco?language=objc -func (v_ View) TranslatesAutoresizingMaskIntoConstraints() bool { - rv := objc.Call[bool](v_, objc.Sel("translatesAutoresizingMaskIntoConstraints")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483662-focusview?language=objc +func View_FocusView() View { + return ViewClass.FocusView() } -// A Boolean value indicating whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. [Full Topic] +// The nearest ancestor scroll view that contains the current view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526961-translatesautoresizingmaskintoco?language=objc -func (v_ View) SetTranslatesAutoresizingMaskIntoConstraints(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setTranslatesAutoresizingMaskIntoConstraints:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483654-enclosingscrollview?language=objc +func (v_ View) EnclosingScrollView() ScrollView { + rv := objc.Call[ScrollView](v_, objc.Sel("enclosingScrollView")) + return rv } -// The portion of the view that is not clipped by its superviews. [Full Topic] +// The opacity of the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483446-visiblerect?language=objc -func (v_ View) VisibleRect() foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("visibleRect")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483560-alphavalue?language=objc +func (v_ View) AlphaValue() float64 { + rv := objc.Call[float64](v_, objc.Sel("alphaValue")) return rv } -// [Full Topic] +// The opacity of the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2544729-candidatelisttouchbaritem?language=objc -func (v_ View) CandidateListTouchBarItem() CandidateListTouchBarItem { - rv := objc.Call[CandidateListTouchBarItem](v_, objc.Sel("candidateListTouchBarItem")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483560-alphavalue?language=objc +func (v_ View) SetAlphaValue(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setAlphaValue:"), value) } -// The view’s tag, which is an integer that you use to identify the view within your app. [Full Topic] +// A default header string that includes the print job title and date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483248-tag?language=objc -func (v_ View) Tag() int { - rv := objc.Call[int](v_, objc.Sel("tag")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483674-pageheader?language=objc +func (v_ View) PageHeader() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](v_, objc.Sel("pageHeader")) return rv } -// Returns the constraints held by the view. [Full Topic] +// The layout guide you use to position content inside your view’s safe area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526917-constraints?language=objc -func (v_ View) Constraints() []LayoutConstraint { - rv := objc.Call[[]LayoutConstraint](v_, objc.Sel("constraints")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3553228-safearealayoutguide?language=objc +func (v_ View) SafeAreaLayoutGuide() LayoutGuide { + rv := objc.Call[LayoutGuide](v_, objc.Sel("safeAreaLayoutGuide")) return rv } -// A Boolean value indicating whether the view is being rendered as part of a live resizing operation. [Full Topic] +// A layout anchor representing the right edge of the view’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483267-inliveresize?language=objc -func (v_ View) InLiveResize() bool { - rv := objc.Call[bool](v_, objc.Sel("inLiveResize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524466-rightanchor?language=objc +func (v_ View) RightAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("rightAnchor")) return rv } @@ -2024,6 +1854,21 @@ func (v_ View) IsRotatedFromBase() bool { return rv } +// The portion of the view that has been rendered and is available for responsive scrolling. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483215-preparedcontentrect?language=objc +func (v_ View) PreparedContentRect() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("preparedContentRect")) + return rv +} + +// The portion of the view that has been rendered and is available for responsive scrolling. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483215-preparedcontentrect?language=objc +func (v_ View) SetPreparedContentRect(value foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("setPreparedContentRect:"), value) +} + // The view’s bounds rectangle, which expresses its location and size in its own coordinate system. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483817-bounds?language=objc @@ -2039,112 +1884,114 @@ func (v_ View) SetBounds(value foundation.Rect) { objc.Call[objc.Void](v_, objc.Sel("setBounds:"), value) } -// The array of layout guide objects owned by this view. [Full Topic] +// The distance (in points) between the bottom of the view’s alignment rectangle and its baseline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1534395-layoutguides?language=objc -func (v_ View) LayoutGuides() []LayoutGuide { - rv := objc.Call[[]LayoutGuide](v_, objc.Sel("layoutGuides")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526949-baselineoffsetfrombottom?language=objc +func (v_ View) BaselineOffsetFromBottom() float64 { + rv := objc.Call[float64](v_, objc.Sel("baselineOffsetFromBottom")) return rv } -// The closest view object in the key view loop that follows the current view in the key view loop and accepts first responder status. [Full Topic] +// The distances from the edges of your view that define the safe area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483572-nextvalidkeyview?language=objc -func (v_ View) NextValidKeyView() View { - rv := objc.Call[View](v_, objc.Sel("nextValidKeyView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3553227-safeareainsets?language=objc +func (v_ View) SafeAreaInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](v_, objc.Sel("safeAreaInsets")) return rv } -// The rotation angle of the view around the center of its layer. [Full Topic] +// A Boolean value indicating whether the view is being rendered as part of a live resizing operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483367-framecenterrotation?language=objc -func (v_ View) FrameCenterRotation() float64 { - rv := objc.Call[float64](v_, objc.Sel("frameCenterRotation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483267-inliveresize?language=objc +func (v_ View) InLiveResize() bool { + rv := objc.Call[bool](v_, objc.Sel("inLiveResize")) return rv } -// The rotation angle of the view around the center of its layer. [Full Topic] +// A Boolean value indicating whether the view or one of its ancestors is being drawn for a find indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483367-framecenterrotation?language=objc -func (v_ View) SetFrameCenterRotation(value float64) { - objc.Call[objc.Void](v_, objc.Sel("setFrameCenterRotation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483317-drawingfindindicator?language=objc +func (v_ View) IsDrawingFindIndicator() bool { + rv := objc.Call[bool](v_, objc.Sel("isDrawingFindIndicator")) + return rv } -// A layout anchor representing the leading edge of the view’s frame. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524264-leadinganchor?language=objc -func (v_ View) LeadingAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("leadingAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2544729-candidatelisttouchbaritem?language=objc +func (v_ View) CandidateListTouchBarItem() CandidateListTouchBarItem { + rv := objc.Call[CandidateListTouchBarItem](v_, objc.Sel("candidateListTouchBarItem")) return rv } -// The contents redraw policy for the view’s layer. [Full Topic] +// A layout guide that provides the recommended amount of padding for content inside of a view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483514-layercontentsredrawpolicy?language=objc -func (v_ View) LayerContentsRedrawPolicy() ViewLayerContentsRedrawPolicy { - rv := objc.Call[ViewLayerContentsRedrawPolicy](v_, objc.Sel("layerContentsRedrawPolicy")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3622483-layoutmarginsguide?language=objc +func (v_ View) LayoutMarginsGuide() LayoutGuide { + rv := objc.Call[LayoutGuide](v_, objc.Sel("layoutMarginsGuide")) return rv } -// The contents redraw policy for the view’s layer. [Full Topic] +// The layout direction for content in the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483514-layercontentsredrawpolicy?language=objc -func (v_ View) SetLayerContentsRedrawPolicy(value ViewLayerContentsRedrawPolicy) { - objc.Call[objc.Void](v_, objc.Sel("setLayerContentsRedrawPolicy:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483254-userinterfacelayoutdirection?language=objc +func (v_ View) UserInterfaceLayoutDirection() UserInterfaceLayoutDirection { + rv := objc.Call[UserInterfaceLayoutDirection](v_, objc.Sel("userInterfaceLayoutDirection")) + return rv } -// A layout anchor representing the horizontal center of the view’s frame. [Full Topic] +// The layout direction for content in the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526924-centerxanchor?language=objc -func (v_ View) CenterXAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("centerXAnchor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483254-userinterfacelayoutdirection?language=objc +func (v_ View) SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) { + objc.Call[objc.Void](v_, objc.Sel("setUserInterfaceLayoutDirection:"), value) } -// The minimum size of the view that satisfies the constraints it holds. [Full Topic] +// A layout anchor representing the bottom edge of the view’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526904-fittingsize?language=objc -func (v_ View) FittingSize() foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("fittingSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526974-bottomanchor?language=objc +func (v_ View) BottomAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("bottomAnchor")) return rv } -// The distance (in points) between the bottom of the view’s alignment rectangle and its baseline. [Full Topic] +// The view’s closest opaque ancestor, which might be the view itself. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526949-baselineoffsetfrombottom?language=objc -func (v_ View) BaselineOffsetFromBottom() float64 { - rv := objc.Call[float64](v_, objc.Sel("baselineOffsetFromBottom")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483383-opaqueancestor?language=objc +func (v_ View) OpaqueAncestor() View { + rv := objc.Call[View](v_, objc.Sel("opaqueAncestor")) return rv } -// An array of Core Image filters to apply to the contents of the view and its sublayers. [Full Topic] +// The current layer contents placement policy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483703-contentfilters?language=objc -func (v_ View) ContentFilters() []coreimage.Filter { - rv := objc.Call[[]coreimage.Filter](v_, objc.Sel("contentFilters")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483375-layercontentsplacement?language=objc +func (v_ View) LayerContentsPlacement() ViewLayerContentsPlacement { + rv := objc.Call[ViewLayerContentsPlacement](v_, objc.Sel("layerContentsPlacement")) return rv } -// An array of Core Image filters to apply to the contents of the view and its sublayers. [Full Topic] +// The current layer contents placement policy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483703-contentfilters?language=objc -func (v_ View) SetContentFilters(value []coreimage.IFilter) { - objc.Call[objc.Void](v_, objc.Sel("setContentFilters:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483375-layercontentsplacement?language=objc +func (v_ View) SetLayerContentsPlacement(value ViewLayerContentsPlacement) { + objc.Call[objc.Void](v_, objc.Sel("setLayerContentsPlacement:"), value) } -// The types of touch interactions the view allows. [Full Topic] +// A Boolean value indicating whether the view fills its frame rectangle with opaque content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2544839-allowedtouchtypes?language=objc -func (v_ View) AllowedTouchTypes() TouchTypeMask { - rv := objc.Call[TouchTypeMask](v_, objc.Sel("allowedTouchTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483558-opaque?language=objc +func (v_ View) IsOpaque() bool { + rv := objc.Call[bool](v_, objc.Sel("isOpaque")) return rv } -// The types of touch interactions the view allows. [Full Topic] +// The closest view object in the key view loop that precedes the current view and accepts first responder status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2544839-allowedtouchtypes?language=objc -func (v_ View) SetAllowedTouchTypes(value TouchTypeMask) { - objc.Call[objc.Void](v_, objc.Sel("setAllowedTouchTypes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483371-previousvalidkeyview?language=objc +func (v_ View) PreviousValidKeyView() View { + rv := objc.Call[View](v_, objc.Sel("previousValidKeyView")) + return rv } // The menu item containing the view or any of its superviews in the view hierarchy. [Full Topic] @@ -2155,396 +2002,419 @@ func (v_ View) EnclosingMenuItem() MenuItem { return rv } -// The angle of rotation, measured in degrees, applied to the view’s bounds rectangle relative to its frame rectangle. [Full Topic] +// A Boolean value indicating whether the view’s constraints need to be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483746-boundsrotation?language=objc -func (v_ View) BoundsRotation() float64 { - rv := objc.Call[float64](v_, objc.Sel("boundsRotation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526856-needsupdateconstraints?language=objc +func (v_ View) NeedsUpdateConstraints() bool { + rv := objc.Call[bool](v_, objc.Sel("needsUpdateConstraints")) return rv } -// The angle of rotation, measured in degrees, applied to the view’s bounds rectangle relative to its frame rectangle. [Full Topic] +// A Boolean value indicating whether the view’s constraints need to be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483746-boundsrotation?language=objc -func (v_ View) SetBoundsRotation(value float64) { - objc.Call[objc.Void](v_, objc.Sel("setBoundsRotation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526856-needsupdateconstraints?language=objc +func (v_ View) SetNeedsUpdateConstraints(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setNeedsUpdateConstraints:"), value) } -// The insets (in points) from the view’s frame that define its content rectangle. [Full Topic] +// A layout anchor representing the height of the view’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526870-alignmentrectinsets?language=objc -func (v_ View) AlignmentRectInsets() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](v_, objc.Sel("alignmentRectInsets")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526942-heightanchor?language=objc +func (v_ View) HeightAnchor() LayoutDimension { + rv := objc.Call[LayoutDimension](v_, objc.Sel("heightAnchor")) return rv } -// The view object preceding the current view in the key view loop. [Full Topic] +// The array of layout guide objects owned by this view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483646-previouskeyview?language=objc -func (v_ View) PreviousKeyView() View { - rv := objc.Call[View](v_, objc.Sel("previousKeyView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1534395-layoutguides?language=objc +func (v_ View) LayoutGuides() []LayoutGuide { + rv := objc.Call[[]LayoutGuide](v_, objc.Sel("layoutGuides")) + return rv +} + +// A Boolean value indicating whether AppKit’s default clipping behavior is in effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483365-wantsdefaultclipping?language=objc +func (v_ View) WantsDefaultClipping() bool { + rv := objc.Call[bool](v_, objc.Sel("wantsDefaultClipping")) + return rv +} + +// A rectangle in the view’s coordinate system that contains the unobscured portion of the view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3553229-safearearect?language=objc +func (v_ View) SafeAreaRect() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("safeAreaRect")) return rv } -// The text input context object for the view. [Full Topic] +// Returns the default focus ring type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483323-inputcontext?language=objc -func (v_ View) InputContext() TextInputContext { - rv := objc.Call[TextInputContext](v_, objc.Sel("inputContext")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483589-defaultfocusringtype?language=objc +func (vc _ViewClass) DefaultFocusRingType() FocusRingType { + rv := objc.Call[FocusRingType](vc, objc.Sel("defaultFocusRingType")) return rv } -// A Boolean value indicating whether the view is in full screen mode. [Full Topic] +// Returns the default focus ring type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483337-infullscreenmode?language=objc -func (v_ View) IsInFullScreenMode() bool { - rv := objc.Call[bool](v_, objc.Sel("isInFullScreenMode")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483589-defaultfocusringtype?language=objc +func View_DefaultFocusRingType() FocusRingType { + return ViewClass.DefaultFocusRingType() } -// A Boolean value indicating whether the view’s layer uses Core Image filters and needs in-process rendering. [Full Topic] +// A Boolean value indicating whether the view uses a layer as its backing store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483576-layerusescoreimagefilters?language=objc -func (v_ View) LayerUsesCoreImageFilters() bool { - rv := objc.Call[bool](v_, objc.Sel("layerUsesCoreImageFilters")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483695-wantslayer?language=objc +func (v_ View) WantsLayer() bool { + rv := objc.Call[bool](v_, objc.Sel("wantsLayer")) return rv } -// A Boolean value indicating whether the view’s layer uses Core Image filters and needs in-process rendering. [Full Topic] +// A Boolean value indicating whether the view uses a layer as its backing store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483576-layerusescoreimagefilters?language=objc -func (v_ View) SetLayerUsesCoreImageFilters(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setLayerUsesCoreImageFilters:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483695-wantslayer?language=objc +func (v_ View) SetWantsLayer(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setWantsLayer:"), value) } -// A Boolean value indicating whether the view posts notifications when its bounds rectangle changes. [Full Topic] +// The natural size for the receiving view, considering only properties of the view itself. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483239-postsboundschangednotifications?language=objc -func (v_ View) PostsBoundsChangedNotifications() bool { - rv := objc.Call[bool](v_, objc.Sel("postsBoundsChangedNotifications")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526996-intrinsiccontentsize?language=objc +func (v_ View) IntrinsicContentSize() foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("intrinsicContentSize")) return rv } -// A Boolean value indicating whether the view posts notifications when its bounds rectangle changes. [Full Topic] +// A Boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483239-postsboundschangednotifications?language=objc -func (v_ View) SetPostsBoundsChangedNotifications(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setPostsBoundsChangedNotifications:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483358-autoresizessubviews?language=objc +func (v_ View) AutoresizesSubviews() bool { + rv := objc.Call[bool](v_, objc.Sel("autoresizesSubviews")) + return rv } -// The array of pasteboard drag types that the view can accept. [Full Topic] +// A Boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483564-registereddraggedtypes?language=objc -func (v_ View) RegisteredDraggedTypes() []PasteboardType { - rv := objc.Call[[]PasteboardType](v_, objc.Sel("registeredDraggedTypes")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483358-autoresizessubviews?language=objc +func (v_ View) SetAutoresizesSubviews(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setAutoresizesSubviews:"), value) } -// The fraction of the page that can be pushed onto the next page during automatic pagination to prevent items such as lines of text from being divided across pages. [Full Topic] +// A layout anchor representing the trailing edge of the view’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483691-heightadjustlimit?language=objc -func (v_ View) HeightAdjustLimit() float64 { - rv := objc.Call[float64](v_, objc.Sel("heightAdjustLimit")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526983-trailinganchor?language=objc +func (v_ View) TrailingAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("trailingAnchor")) return rv } -// The type of focus ring drawn around the view. [Full Topic] +// A Boolean value indicating whether the view incorporates content from its subviews into its own layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483261-focusringtype?language=objc -func (v_ View) FocusRingType() FocusRingType { - rv := objc.Call[FocusRingType](v_, objc.Sel("focusRingType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483347-candrawsubviewsintolayer?language=objc +func (v_ View) CanDrawSubviewsIntoLayer() bool { + rv := objc.Call[bool](v_, objc.Sel("canDrawSubviewsIntoLayer")) return rv } -// The type of focus ring drawn around the view. [Full Topic] +// A Boolean value indicating whether the view incorporates content from its subviews into its own layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483261-focusringtype?language=objc -func (v_ View) SetFocusRingType(value FocusRingType) { - objc.Call[objc.Void](v_, objc.Sel("setFocusRingType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483347-candrawsubviewsintolayer?language=objc +func (v_ View) SetCanDrawSubviewsIntoLayer(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setCanDrawSubviewsIntoLayer:"), value) } -// A Boolean value indicating whether AppKit’s default clipping behavior is in effect. [Full Topic] +// The view object preceding the current view in the key view loop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483365-wantsdefaultclipping?language=objc -func (v_ View) WantsDefaultClipping() bool { - rv := objc.Call[bool](v_, objc.Sel("wantsDefaultClipping")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483646-previouskeyview?language=objc +func (v_ View) PreviousKeyView() View { + rv := objc.Call[View](v_, objc.Sel("previousKeyView")) return rv } -// A layout anchor representing the baseline for the topmost line of text in the view. [Full Topic] +// A layout anchor representing the leading edge of the view’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526900-firstbaselineanchor?language=objc -func (v_ View) FirstBaselineAnchor() LayoutYAxisAnchor { - rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("firstBaselineAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524264-leadinganchor?language=objc +func (v_ View) LeadingAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("leadingAnchor")) return rv } -// The rectangle identifying the portion of your view that did not change during a live resize operation. [Full Topic] +// The types of touch interactions the view allows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483528-rectpreservedduringliveresize?language=objc -func (v_ View) RectPreservedDuringLiveResize() foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("rectPreservedDuringLiveResize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2544839-allowedtouchtypes?language=objc +func (v_ View) AllowedTouchTypes() TouchTypeMask { + rv := objc.Call[TouchTypeMask](v_, objc.Sel("allowedTouchTypes")) return rv } -// The view’s closest opaque ancestor, which might be the view itself. [Full Topic] +// The types of touch interactions the view allows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483383-opaqueancestor?language=objc -func (v_ View) OpaqueAncestor() View { - rv := objc.Call[View](v_, objc.Sel("opaqueAncestor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2544839-allowedtouchtypes?language=objc +func (v_ View) SetAllowedTouchTypes(value TouchTypeMask) { + objc.Call[objc.Void](v_, objc.Sel("setAllowedTouchTypes:"), value) } -// The nearest ancestor scroll view that contains the current view. [Full Topic] +// The focus ring mask bounds, specified in the view’s coordinate space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483654-enclosingscrollview?language=objc -func (v_ View) EnclosingScrollView() ScrollView { - rv := objc.Call[ScrollView](v_, objc.Sel("enclosingScrollView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483287-focusringmaskbounds?language=objc +func (v_ View) FocusRingMaskBounds() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("focusRingMaskBounds")) return rv } -// The text for the view’s tooltip. [Full Topic] +// The view’s frame rectangle, which defines its position and size in its superview’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483541-tooltip?language=objc -func (v_ View) ToolTip() string { - rv := objc.Call[string](v_, objc.Sel("toolTip")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483713-frame?language=objc +func (v_ View) Frame() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("frame")) return rv } -// The text for the view’s tooltip. [Full Topic] +// The view’s frame rectangle, which defines its position and size in its superview’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483541-tooltip?language=objc -func (v_ View) SetToolTip(value string) { - objc.Call[objc.Void](v_, objc.Sel("setToolTip:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483713-frame?language=objc +func (v_ View) SetFrame(value foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("setFrame:"), value) } -// A Boolean value that indicates whether views support responsive scrolling. [Full Topic] +// A Boolean value indicating whether the view can become key view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2870005-compatiblewithresponsivescrollin?language=objc -func (vc _ViewClass) CompatibleWithResponsiveScrolling() bool { - rv := objc.Call[bool](vc, objc.Sel("compatibleWithResponsiveScrolling")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483759-canbecomekeyview?language=objc +func (v_ View) CanBecomeKeyView() bool { + rv := objc.Call[bool](v_, objc.Sel("canBecomeKeyView")) return rv } -// A Boolean value that indicates whether views support responsive scrolling. [Full Topic] +// A Boolean value indicating whether the view is in full screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/2870005-compatiblewithresponsivescrollin?language=objc -func View_CompatibleWithResponsiveScrolling() bool { - return ViewClass.CompatibleWithResponsiveScrolling() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483337-infullscreenmode?language=objc +func (v_ View) IsInFullScreenMode() bool { + rv := objc.Call[bool](v_, objc.Sel("isInFullScreenMode")) + return rv } -// A Boolean value that determines whether the view needs to be redrawn before being displayed. [Full Topic] +// A Boolean value indicating whether the view can draw its contents on a background thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483360-needsdisplay?language=objc -func (v_ View) NeedsDisplay() bool { - rv := objc.Call[bool](v_, objc.Sel("needsDisplay")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483425-candrawconcurrently?language=objc +func (v_ View) CanDrawConcurrently() bool { + rv := objc.Call[bool](v_, objc.Sel("canDrawConcurrently")) return rv } -// A Boolean value that determines whether the view needs to be redrawn before being displayed. [Full Topic] +// A Boolean value indicating whether the view can draw its contents on a background thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483360-needsdisplay?language=objc -func (v_ View) SetNeedsDisplay(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setNeedsDisplay:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483425-candrawconcurrently?language=objc +func (v_ View) SetCanDrawConcurrently(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setCanDrawConcurrently:"), value) } -// A Boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes. [Full Topic] +// The view’s tag, which is an integer that you use to identify the view within your app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483358-autoresizessubviews?language=objc -func (v_ View) AutoresizesSubviews() bool { - rv := objc.Call[bool](v_, objc.Sel("autoresizesSubviews")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483248-tag?language=objc +func (v_ View) Tag() int { + rv := objc.Call[int](v_, objc.Sel("tag")) return rv } -// A Boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes. [Full Topic] +// The shadow displayed underneath the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483358-autoresizessubviews?language=objc -func (v_ View) SetAutoresizesSubviews(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setAutoresizesSubviews:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483263-shadow?language=objc +func (v_ View) Shadow() Shadow { + rv := objc.Call[Shadow](v_, objc.Sel("shadow")) + return rv } -// A Boolean value indicating whether the view can become key view. [Full Topic] +// The shadow displayed underneath the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483759-canbecomekeyview?language=objc -func (v_ View) CanBecomeKeyView() bool { - rv := objc.Call[bool](v_, objc.Sel("canBecomeKeyView")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483263-shadow?language=objc +func (v_ View) SetShadow(value IShadow) { + objc.Call[objc.Void](v_, objc.Sel("setShadow:"), value) } -// A layout anchor representing the baseline for the bottommost line of text in the view. [Full Topic] +// The fraction of the page that can be pushed onto the next page during automatic pagination to prevent items such as small images or text columns from being divided across pages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526959-lastbaselineanchor?language=objc -func (v_ View) LastBaselineAnchor() LayoutYAxisAnchor { - rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("lastBaselineAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483392-widthadjustlimit?language=objc +func (v_ View) WidthAdjustLimit() float64 { + rv := objc.Call[float64](v_, objc.Sel("widthAdjustLimit")) return rv } -// The distance (in points) between the top of the view’s alignment rectangle and its topmost baseline. [Full Topic] +// Custom insets that you specify to modify your view’s safe area [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526963-firstbaselineoffsetfromtop?language=objc -func (v_ View) FirstBaselineOffsetFromTop() float64 { - rv := objc.Call[float64](v_, objc.Sel("firstBaselineOffsetFromTop")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3553226-additionalsafeareainsets?language=objc +func (v_ View) AdditionalSafeAreaInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](v_, objc.Sel("additionalSafeAreaInsets")) return rv } -// The layout direction for content in the view. [Full Topic] +// Custom insets that you specify to modify your view’s safe area [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483254-userinterfacelayoutdirection?language=objc -func (v_ View) UserInterfaceLayoutDirection() UserInterfaceLayoutDirection { - rv := objc.Call[UserInterfaceLayoutDirection](v_, objc.Sel("userInterfaceLayoutDirection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3553226-additionalsafeareainsets?language=objc +func (v_ View) SetAdditionalSafeAreaInsets(value foundation.EdgeInsets) { + objc.Call[objc.Void](v_, objc.Sel("setAdditionalSafeAreaInsets:"), value) +} + +// The Core Image filter used to composite the view’s contents with its background. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483516-compositingfilter?language=objc +func (v_ View) CompositingFilter() coreimage.Filter { + rv := objc.Call[coreimage.Filter](v_, objc.Sel("compositingFilter")) return rv } -// The layout direction for content in the view. [Full Topic] +// The Core Image filter used to composite the view’s contents with its background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483254-userinterfacelayoutdirection?language=objc -func (v_ View) SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) { - objc.Call[objc.Void](v_, objc.Sel("setUserInterfaceLayoutDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483516-compositingfilter?language=objc +func (v_ View) SetCompositingFilter(value coreimage.IFilter) { + objc.Call[objc.Void](v_, objc.Sel("setCompositingFilter:"), value) } -// The angle of rotation, measured in degrees, applied to the view’s frame rectangle relative to its superview’s coordinate system. [Full Topic] +// The array of pasteboard drag types that the view can accept. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483412-framerotation?language=objc -func (v_ View) FrameRotation() float64 { - rv := objc.Call[float64](v_, objc.Sel("frameRotation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483564-registereddraggedtypes?language=objc +func (v_ View) RegisteredDraggedTypes() []PasteboardType { + rv := objc.Call[[]PasteboardType](v_, objc.Sel("registeredDraggedTypes")) return rv } -// The angle of rotation, measured in degrees, applied to the view’s frame rectangle relative to its superview’s coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483412-framerotation?language=objc -func (v_ View) SetFrameRotation(value float64) { - objc.Call[objc.Void](v_, objc.Sel("setFrameRotation:"), value) +// A Boolean value indicating whether the view is hidden from sight because it, or one of its ancestors, is marked as hidden. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483473-hiddenorhashiddenancestor?language=objc +func (v_ View) IsHiddenOrHasHiddenAncestor() bool { + rv := objc.Call[bool](v_, objc.Sel("isHiddenOrHasHiddenAncestor")) + return rv } -// The Core Animation layer that the view uses as its backing store. [Full Topic] +// The view’s window object, if it is installed in a window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483298-layer?language=objc -func (v_ View) Layer() quartzcore.Layer { - rv := objc.Call[quartzcore.Layer](v_, objc.Sel("layer")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483301-window?language=objc +func (v_ View) Window() Window { + rv := objc.Call[Window](v_, objc.Sel("window")) return rv } -// The Core Animation layer that the view uses as its backing store. [Full Topic] +// A Boolean value that indicates whether the view’s vertical size constraints are active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483298-layer?language=objc -func (v_ View) SetLayer(value quartzcore.ILayer) { - objc.Call[objc.Void](v_, objc.Sel("setLayer:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3353054-verticalcontentsizeconstraintact?language=objc +func (v_ View) IsVerticalContentSizeConstraintActive() bool { + rv := objc.Call[bool](v_, objc.Sel("isVerticalContentSizeConstraintActive")) + return rv } -// A Boolean value indicating whether the view ensures it is vibrant on top of other content. [Full Topic] +// A Boolean value that indicates whether the view’s vertical size constraints are active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483793-allowsvibrancy?language=objc -func (v_ View) AllowsVibrancy() bool { - rv := objc.Call[bool](v_, objc.Sel("allowsVibrancy")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3353054-verticalcontentsizeconstraintact?language=objc +func (v_ View) SetVerticalContentSizeConstraintActive(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setVerticalContentSizeConstraintActive:"), value) } -// A layout guide that provides the recommended amount of padding for content inside of a view. [Full Topic] +// The options that determine how the view is resized relative to its superview. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3622483-layoutmarginsguide?language=objc -func (v_ View) LayoutMarginsGuide() LayoutGuide { - rv := objc.Call[LayoutGuide](v_, objc.Sel("layoutMarginsGuide")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483281-autoresizingmask?language=objc +func (v_ View) AutoresizingMask() AutoresizingMaskOptions { + rv := objc.Call[AutoresizingMaskOptions](v_, objc.Sel("autoresizingMask")) return rv } -// A Boolean value indicating whether the view or any of its ancestors has ever had a rotation factor applied to its frame or bounds, or has been scaled from the window’s base coordinate system. [Full Topic] +// The options that determine how the view is resized relative to its superview. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483390-rotatedorscaledfrombase?language=objc -func (v_ View) IsRotatedOrScaledFromBase() bool { - rv := objc.Call[bool](v_, objc.Sel("isRotatedOrScaledFromBase")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483281-autoresizingmask?language=objc +func (v_ View) SetAutoresizingMask(value AutoresizingMaskOptions) { + objc.Call[objc.Void](v_, objc.Sel("setAutoresizingMask:"), value) } -// The gesture recognize objects currently attached to the view. [Full Topic] +// An array of Core Image filters to apply to the view’s background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483658-gesturerecognizers?language=objc -func (v_ View) GestureRecognizers() []GestureRecognizer { - rv := objc.Call[[]GestureRecognizer](v_, objc.Sel("gestureRecognizers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483689-backgroundfilters?language=objc +func (v_ View) BackgroundFilters() []coreimage.Filter { + rv := objc.Call[[]coreimage.Filter](v_, objc.Sel("backgroundFilters")) return rv } -// The gesture recognize objects currently attached to the view. [Full Topic] +// An array of Core Image filters to apply to the view’s background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483658-gesturerecognizers?language=objc -func (v_ View) SetGestureRecognizers(value []IGestureRecognizer) { - objc.Call[objc.Void](v_, objc.Sel("setGestureRecognizers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483689-backgroundfilters?language=objc +func (v_ View) SetBackgroundFilters(value []coreimage.IFilter) { + objc.Call[objc.Void](v_, objc.Sel("setBackgroundFilters:"), value) } -// A layout anchor representing the right edge of the view’s frame. [Full Topic] +// A Boolean value indicating whether the constraints impacting the layout of the view incompletely specify the location of the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1524466-rightanchor?language=objc -func (v_ View) RightAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("rightAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526907-hasambiguouslayout?language=objc +func (v_ View) HasAmbiguousLayout() bool { + rv := objc.Call[bool](v_, objc.Sel("hasAmbiguousLayout")) return rv } -// The portion of the view that has been rendered and is available for responsive scrolling. [Full Topic] +// Returns the constraints held by the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483215-preparedcontentrect?language=objc -func (v_ View) PreparedContentRect() foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("preparedContentRect")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526917-constraints?language=objc +func (v_ View) Constraints() []LayoutConstraint { + rv := objc.Call[[]LayoutConstraint](v_, objc.Sel("constraints")) return rv } -// The portion of the view that has been rendered and is available for responsive scrolling. [Full Topic] +// The fraction of the page that can be pushed onto the next page during automatic pagination to prevent items such as lines of text from being divided across pages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483215-preparedcontentrect?language=objc -func (v_ View) SetPreparedContentRect(value foundation.Rect) { - objc.Call[objc.Void](v_, objc.Sel("setPreparedContentRect:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483691-heightadjustlimit?language=objc +func (v_ View) HeightAdjustLimit() float64 { + rv := objc.Call[float64](v_, objc.Sel("heightAdjustLimit")) + return rv } -// Configures the behavior and progression of the Force Touch trackpad when responding to touch input produced by the user when the cursor is over the view. [Full Topic] +// A Boolean value that indicates whether the view’s horizontal size constraints are active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1426890-pressureconfiguration?language=objc -func (v_ View) PressureConfiguration() PressureConfiguration { - rv := objc.Call[PressureConfiguration](v_, objc.Sel("pressureConfiguration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3353053-horizontalcontentsizeconstrainta?language=objc +func (v_ View) IsHorizontalContentSizeConstraintActive() bool { + rv := objc.Call[bool](v_, objc.Sel("isHorizontalContentSizeConstraintActive")) return rv } -// Configures the behavior and progression of the Force Touch trackpad when responding to touch input produced by the user when the cursor is over the view. [Full Topic] +// A Boolean value that indicates whether the view’s horizontal size constraints are active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1426890-pressureconfiguration?language=objc -func (v_ View) SetPressureConfiguration(value IPressureConfiguration) { - objc.Call[objc.Void](v_, objc.Sel("setPressureConfiguration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3353053-horizontalcontentsizeconstrainta?language=objc +func (v_ View) SetHorizontalContentSizeConstraintActive(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setHorizontalContentSizeConstraintActive:"), value) } -// The distance (in points) between the bottom of the view’s alignment rectangle and its bottommost baseline. [Full Topic] +// A Boolean value indicating whether the view ensures it is vibrant on top of other content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1525942-lastbaselineoffsetfrombottom?language=objc -func (v_ View) LastBaselineOffsetFromBottom() float64 { - rv := objc.Call[float64](v_, objc.Sel("lastBaselineOffsetFromBottom")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483793-allowsvibrancy?language=objc +func (v_ View) AllowsVibrancy() bool { + rv := objc.Call[bool](v_, objc.Sel("allowsVibrancy")) return rv } -// A Boolean value indicating whether the view needs a layout pass before it can be drawn. [Full Topic] +// The array of views embedded in the current view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526912-needslayout?language=objc -func (v_ View) NeedsLayout() bool { - rv := objc.Call[bool](v_, objc.Sel("needsLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483539-subviews?language=objc +func (v_ View) Subviews() []View { + rv := objc.Call[[]View](v_, objc.Sel("subviews")) return rv } -// A Boolean value indicating whether the view needs a layout pass before it can be drawn. [Full Topic] +// The array of views embedded in the current view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526912-needslayout?language=objc -func (v_ View) SetNeedsLayout(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setNeedsLayout:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483539-subviews?language=objc +func (v_ View) SetSubviews(value []IView) { + objc.Call[objc.Void](v_, objc.Sel("setSubviews:"), value) } -// The layout guide you use to position content inside your view’s safe area. [Full Topic] +// A Boolean value indicating whether the view uses a flipped coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3553228-safearealayoutguide?language=objc -func (v_ View) SafeAreaLayoutGuide() LayoutGuide { - rv := objc.Call[LayoutGuide](v_, objc.Sel("safeAreaLayoutGuide")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483532-flipped?language=objc +func (v_ View) IsFlipped() bool { + rv := objc.Call[bool](v_, objc.Sel("isFlipped")) return rv } -// A rectangle in the view’s coordinate system that contains the unobscured portion of the view. [Full Topic] +// The rectangle identifying the portion of your view that did not change during a live resize operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/3553229-safearearect?language=objc -func (v_ View) SafeAreaRect() foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("safeAreaRect")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483528-rectpreservedduringliveresize?language=objc +func (v_ View) RectPreservedDuringLiveResize() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("rectPreservedDuringLiveResize")) return rv } @@ -2556,26 +2426,34 @@ func (v_ View) MouseDownCanMoveWindow() bool { return rv } -// A Boolean value indicating whether the view can draw its contents on a background thread. [Full Topic] +// A layout anchor representing the horizontal center of the view’s frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483425-candrawconcurrently?language=objc -func (v_ View) CanDrawConcurrently() bool { - rv := objc.Call[bool](v_, objc.Sel("canDrawConcurrently")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526924-centerxanchor?language=objc +func (v_ View) CenterXAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("centerXAnchor")) return rv } -// A Boolean value indicating whether the view can draw its contents on a background thread. [Full Topic] +// A Boolean value indicating whether the view wants resting touches. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483425-candrawconcurrently?language=objc -func (v_ View) SetCanDrawConcurrently(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setCanDrawConcurrently:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483594-wantsrestingtouches?language=objc +func (v_ View) WantsRestingTouches() bool { + rv := objc.Call[bool](v_, objc.Sel("wantsRestingTouches")) + return rv } -// A layout anchor representing the bottom edge of the view’s frame. [Full Topic] +// A Boolean value indicating whether the view wants resting touches. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526974-bottomanchor?language=objc -func (v_ View) BottomAnchor() LayoutYAxisAnchor { - rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("bottomAnchor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483594-wantsrestingtouches?language=objc +func (v_ View) SetWantsRestingTouches(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setWantsRestingTouches:"), value) +} + +// A layout anchor representing the baseline for the bottommost line of text in the view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526959-lastbaselineanchor?language=objc +func (v_ View) LastBaselineAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("lastBaselineAnchor")) return rv } @@ -2587,78 +2465,55 @@ func (v_ View) WidthAnchor() LayoutDimension { return rv } -// The array of views embedded in the current view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483539-subviews?language=objc -func (v_ View) Subviews() []View { - rv := objc.Call[[]View](v_, objc.Sel("subviews")) - return rv -} - -// The array of views embedded in the current view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483539-subviews?language=objc -func (v_ View) SetSubviews(value []IView) { - objc.Call[objc.Void](v_, objc.Sel("setSubviews:"), value) -} - -// A default header string that includes the print job title and date. [Full Topic] +// The angle of rotation, measured in degrees, applied to the view’s frame rectangle relative to its superview’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483674-pageheader?language=objc -func (v_ View) PageHeader() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](v_, objc.Sel("pageHeader")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483412-framerotation?language=objc +func (v_ View) FrameRotation() float64 { + rv := objc.Call[float64](v_, objc.Sel("frameRotation")) return rv } -// A Boolean value indicating whether the view uses a flipped coordinate system. [Full Topic] +// The angle of rotation, measured in degrees, applied to the view’s frame rectangle relative to its superview’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483532-flipped?language=objc -func (v_ View) IsFlipped() bool { - rv := objc.Call[bool](v_, objc.Sel("isFlipped")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483412-framerotation?language=objc +func (v_ View) SetFrameRotation(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setFrameRotation:"), value) } -// A Boolean value indicating whether the view posts notifications when its frame rectangle changes. [Full Topic] +// The view that is the parent of the current view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483524-postsframechangednotifications?language=objc -func (v_ View) PostsFrameChangedNotifications() bool { - rv := objc.Call[bool](v_, objc.Sel("postsFrameChangedNotifications")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483737-superview?language=objc +func (v_ View) Superview() View { + rv := objc.Call[View](v_, objc.Sel("superview")) return rv } -// A Boolean value indicating whether the view posts notifications when its frame rectangle changes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483524-postsframechangednotifications?language=objc -func (v_ View) SetPostsFrameChangedNotifications(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setPostsFrameChangedNotifications:"), value) -} - -// The view object that follows the current view in the key view loop. [Full Topic] +// Returns a Boolean value indicating whether the view depends on the constraint-based layout system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483465-nextkeyview?language=objc -func (v_ View) NextKeyView() View { - rv := objc.Call[View](v_, objc.Sel("nextKeyView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526926-requiresconstraintbasedlayout?language=objc +func (vc _ViewClass) RequiresConstraintBasedLayout() bool { + rv := objc.Call[bool](vc, objc.Sel("requiresConstraintBasedLayout")) return rv } -// The view object that follows the current view in the key view loop. [Full Topic] +// Returns a Boolean value indicating whether the view depends on the constraint-based layout system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483465-nextkeyview?language=objc -func (v_ View) SetNextKeyView(value IView) { - objc.Call[objc.Void](v_, objc.Sel("setNextKeyView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1526926-requiresconstraintbasedlayout?language=objc +func View_RequiresConstraintBasedLayout() bool { + return ViewClass.RequiresConstraintBasedLayout() } -// The view’s frame rectangle, which defines its position and size in its superview’s coordinate system. [Full Topic] +// A Boolean value that determines whether the view needs to be redrawn before being displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483713-frame?language=objc -func (v_ View) Frame() foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("frame")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483360-needsdisplay?language=objc +func (v_ View) NeedsDisplay() bool { + rv := objc.Call[bool](v_, objc.Sel("needsDisplay")) return rv } -// The view’s frame rectangle, which defines its position and size in its superview’s coordinate system. [Full Topic] +// A Boolean value that determines whether the view needs to be redrawn before being displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483713-frame?language=objc -func (v_ View) SetFrame(value foundation.Rect) { - objc.Call[objc.Void](v_, objc.Sel("setFrame:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483360-needsdisplay?language=objc +func (v_ View) SetNeedsDisplay(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setNeedsDisplay:"), value) } diff --git a/macos/appkit/view_controller.gen.go b/macos/appkit/view_controller.gen.go index 9791f18e..f51e1236 100644 --- a/macos/appkit/view_controller.gen.go +++ b/macos/appkit/view_controller.gen.go @@ -19,52 +19,51 @@ type _ViewControllerClass struct { // An interface definition for the [ViewController] class. type IViewController interface { IResponder - CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.IObject, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) - DiscardEditing() - ViewWillDisappear() - PresentViewControllerAnimator(viewController IViewController, animator PViewControllerPresentationAnimator) - PresentViewControllerAnimatorObject(viewController IViewController, animatorObject objc.IObject) + ViewDidLayout() + ViewWillLayout() + CommitEditing() bool DismissController(sender objc.IObject) objc.Object - RemoveChildViewControllerAtIndex(index int) + ViewWillDisappear() + DismissViewController(viewController IViewController) + ViewDidAppear() ViewWillAppear() - PreferredContentSizeDidChangeForViewController(viewController IViewController) - CommitEditing() bool - PresentViewControllerAsModalWindow(viewController IViewController) - ViewDidDisappear() - LoadView() + UpdateViewConstraints() + AddChildViewController(childViewController IViewController) + PresentViewControllerAsSheet(viewController IViewController) TransitionFromViewControllerToViewControllerOptionsCompletionHandler(fromViewController IViewController, toViewController IViewController, options ViewControllerTransitionOptions, completion func()) - ViewDidAppear() - ViewDidLayout() + RemoveChildViewControllerAtIndex(index int) + ViewDidLoad() + LoadView() InsertChildViewControllerAtIndex(childViewController IViewController, index int) - AddChildViewController(childViewController IViewController) ViewWillTransitionToSize(newSize foundation.Size) - ViewWillLayout() + CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.IObject, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) + PreferredContentSizeDidChangeForViewController(viewController IViewController) RemoveFromParentViewController() - DismissViewController(viewController IViewController) - PresentViewControllerAsSheet(viewController IViewController) - PresentViewControllerAsPopoverRelativeToRectOfViewPreferredEdgeBehavior(viewController IViewController, positioningRect foundation.Rect, positioningView IView, preferredEdge foundation.RectEdge, behavior PopoverBehavior) - UpdateViewConstraints() - ViewDidLoad() - Title() string - SetTitle(value string) - Storyboard() Storyboard - NibBundle() foundation.Bundle - RepresentedObject() objc.Object - SetRepresentedObject(value objc.IObject) - PreferredMaximumSize() foundation.Size - NibName() NibName - IsViewLoaded() bool - PresentingViewController() ViewController - PreferredScreenOrigin() foundation.Point - SetPreferredScreenOrigin(value foundation.Point) - ParentViewController() ViewController + DiscardEditing() + ViewDidDisappear() + PresentViewControllerAsModalWindow(viewController IViewController) + PresentViewControllerAnimator(viewController IViewController, animator PViewControllerPresentationAnimator) + PresentViewControllerAnimatorObject(viewController IViewController, animatorObject objc.IObject) SourceItemView() View SetSourceItemView(value IView) + PresentedViewControllers() []ViewController + IsViewLoaded() bool + NibName() NibName + ParentViewController() ViewController View() View SetView(value IView) - ExtensionContext() foundation.ExtensionContext + NibBundle() foundation.Bundle + PreferredMaximumSize() foundation.Size PreferredMinimumSize() foundation.Size - PresentedViewControllers() []ViewController + PreferredScreenOrigin() foundation.Point + SetPreferredScreenOrigin(value foundation.Point) + Storyboard() Storyboard + RepresentedObject() objc.Object + SetRepresentedObject(value objc.IObject) + Title() string + SetTitle(value string) + PresentingViewController() ViewController + ExtensionContext() foundation.ExtensionContext PreferredContentSize() foundation.Size SetPreferredContentSize(value foundation.Size) ChildViewControllers() []ViewController @@ -118,40 +117,26 @@ func (v_ ViewController) Init() ViewController { return rv } -// Attempt to commit any currently edited results of the receiver. [Full Topic] +// Called immediately after the layout method of the view controller's view is called. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434464-commiteditingwithdelegate?language=objc -func (v_ ViewController) CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.IObject, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](v_, objc.Sel("commitEditingWithDelegate:didCommitSelector:contextInfo:"), delegate, didCommitSelector, contextInfo) -} - -// Causes the receiver to discard any changes, restoring the previous values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434487-discardediting?language=objc -func (v_ ViewController) DiscardEditing() { - objc.Call[objc.Void](v_, objc.Sel("discardEditing")) -} - -// Called when the view controller’s view is about to be removed from the view hierarchy in the window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434483-viewwilldisappear?language=objc -func (v_ ViewController) ViewWillDisappear() { - objc.Call[objc.Void](v_, objc.Sel("viewWillDisappear")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434451-viewdidlayout?language=objc +func (v_ ViewController) ViewDidLayout() { + objc.Call[objc.Void](v_, objc.Sel("viewDidLayout")) } -// Presents another view controller using a specified, custom animator for presentation and dismissal. [Full Topic] +// Called just before the layout method of the view controller's view is called. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434431-presentviewcontroller?language=objc -func (v_ ViewController) PresentViewControllerAnimator(viewController IViewController, animator PViewControllerPresentationAnimator) { - po1 := objc.WrapAsProtocol("NSViewControllerPresentationAnimator", animator) - objc.Call[objc.Void](v_, objc.Sel("presentViewController:animator:"), viewController, po1) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434495-viewwilllayout?language=objc +func (v_ ViewController) ViewWillLayout() { + objc.Call[objc.Void](v_, objc.Sel("viewWillLayout")) } -// Presents another view controller using a specified, custom animator for presentation and dismissal. [Full Topic] +// Returns whether the receiver was able to commit any pending edits. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434431-presentviewcontroller?language=objc -func (v_ ViewController) PresentViewControllerAnimatorObject(viewController IViewController, animatorObject objc.IObject) { - objc.Call[objc.Void](v_, objc.Sel("presentViewController:animator:"), viewController, animatorObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434485-commitediting?language=objc +func (v_ ViewController) CommitEditing() bool { + rv := objc.Call[bool](v_, objc.Sel("commitEditing")) + return rv } // [Full Topic] @@ -162,54 +147,53 @@ func (v_ ViewController) DismissController(sender objc.IObject) objc.Object { return rv } -// Removes a specified child controller from the view controller. [Full Topic] +// Called when the view controller’s view is about to be removed from the view hierarchy in the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434404-removechildviewcontrolleratindex?language=objc -func (v_ ViewController) RemoveChildViewControllerAtIndex(index int) { - objc.Call[objc.Void](v_, objc.Sel("removeChildViewControllerAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434483-viewwilldisappear?language=objc +func (v_ ViewController) ViewWillDisappear() { + objc.Call[objc.Void](v_, objc.Sel("viewWillDisappear")) } -// Called after the view controller’s view has been loaded into memory is about to be added to the view hierarchy in the window. [Full Topic] +// Dismisses a presented view controller, using the same animator that presented it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434415-viewwillappear?language=objc -func (v_ ViewController) ViewWillAppear() { - objc.Call[objc.Void](v_, objc.Sel("viewWillAppear")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434413-dismissviewcontroller?language=objc +func (v_ ViewController) DismissViewController(viewController IViewController) { + objc.Call[objc.Void](v_, objc.Sel("dismissViewController:"), viewController) } -// Called when there is a change in value of the [appkit/nsviewcontroller/preferredcontentsize] property of a child view controller or a presented view controller. [Full Topic] +// Called when the view controller’s view is fully transitioned onto the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434434-preferredcontentsizedidchangefor?language=objc -func (v_ ViewController) PreferredContentSizeDidChangeForViewController(viewController IViewController) { - objc.Call[objc.Void](v_, objc.Sel("preferredContentSizeDidChangeForViewController:"), viewController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434455-viewdidappear?language=objc +func (v_ ViewController) ViewDidAppear() { + objc.Call[objc.Void](v_, objc.Sel("viewDidAppear")) } -// Returns whether the receiver was able to commit any pending edits. [Full Topic] +// Called after the view controller’s view has been loaded into memory is about to be added to the view hierarchy in the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434485-commitediting?language=objc -func (v_ ViewController) CommitEditing() bool { - rv := objc.Call[bool](v_, objc.Sel("commitEditing")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434415-viewwillappear?language=objc +func (v_ ViewController) ViewWillAppear() { + objc.Call[objc.Void](v_, objc.Sel("viewWillAppear")) } -// Presents another view controller as a modal window, also known as an alert. [Full Topic] +// Called during Auto Layout constraint updating to enable the view controller to mediate the process. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434462-presentviewcontrollerasmodalwind?language=objc -func (v_ ViewController) PresentViewControllerAsModalWindow(viewController IViewController) { - objc.Call[objc.Void](v_, objc.Sel("presentViewControllerAsModalWindow:"), viewController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434400-updateviewconstraints?language=objc +func (v_ ViewController) UpdateViewConstraints() { + objc.Call[objc.Void](v_, objc.Sel("updateViewConstraints")) } -// Called after the view controller’s view is removed from the view hierarchy in a window. [Full Topic] +// A convenience method for adding a child view controller at the end of the childViewControllers array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434416-viewdiddisappear?language=objc -func (v_ ViewController) ViewDidDisappear() { - objc.Call[objc.Void](v_, objc.Sel("viewDidDisappear")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434501-addchildviewcontroller?language=objc +func (v_ ViewController) AddChildViewController(childViewController IViewController) { + objc.Call[objc.Void](v_, objc.Sel("addChildViewController:"), childViewController) } -// Instantiates a view from a nib file and sets the value of the [appkit/nsviewcontroller/view] property. [Full Topic] +// Presents another view controller as a sheet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434405-loadview?language=objc -func (v_ ViewController) LoadView() { - objc.Call[objc.Void](v_, objc.Sel("loadView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434489-presentviewcontrollerassheet?language=objc +func (v_ ViewController) PresentViewControllerAsSheet(viewController IViewController) { + objc.Call[objc.Void](v_, objc.Sel("presentViewControllerAsSheet:"), viewController) } // Performs a transition between two sibling child view controllers of the view controller. [Full Topic] @@ -219,32 +203,32 @@ func (v_ ViewController) TransitionFromViewControllerToViewControllerOptionsComp objc.Call[objc.Void](v_, objc.Sel("transitionFromViewController:toViewController:options:completionHandler:"), fromViewController, toViewController, options, completion) } -// Called when the view controller’s view is fully transitioned onto the screen. [Full Topic] +// Removes a specified child controller from the view controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434455-viewdidappear?language=objc -func (v_ ViewController) ViewDidAppear() { - objc.Call[objc.Void](v_, objc.Sel("viewDidAppear")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434404-removechildviewcontrolleratindex?language=objc +func (v_ ViewController) RemoveChildViewControllerAtIndex(index int) { + objc.Call[objc.Void](v_, objc.Sel("removeChildViewControllerAtIndex:"), index) } -// Called immediately after the [appkit/nsview/layout] method of the view controller's view is called. [Full Topic] +// Called after the view controller’s view has been loaded into memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434451-viewdidlayout?language=objc -func (v_ ViewController) ViewDidLayout() { - objc.Call[objc.Void](v_, objc.Sel("viewDidLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434476-viewdidload?language=objc +func (v_ ViewController) ViewDidLoad() { + objc.Call[objc.Void](v_, objc.Sel("viewDidLoad")) } -// Inserts a specified child view controller into the [appkit/nsviewcontroller/childviewcontrollers] array at a specified position. [Full Topic] +// Instantiates a view from a nib file and sets the value of the view property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434437-insertchildviewcontroller?language=objc -func (v_ ViewController) InsertChildViewControllerAtIndex(childViewController IViewController, index int) { - objc.Call[objc.Void](v_, objc.Sel("insertChildViewController:atIndex:"), childViewController, index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434405-loadview?language=objc +func (v_ ViewController) LoadView() { + objc.Call[objc.Void](v_, objc.Sel("loadView")) } -// A convenience method for adding a child view controller at the end of the [appkit/nsviewcontroller/childviewcontrollers] array. [Full Topic] +// Inserts a specified child view controller into the childViewControllers array at a specified position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434501-addchildviewcontroller?language=objc -func (v_ ViewController) AddChildViewController(childViewController IViewController) { - objc.Call[objc.Void](v_, objc.Sel("addChildViewController:"), childViewController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434437-insertchildviewcontroller?language=objc +func (v_ ViewController) InsertChildViewControllerAtIndex(childViewController IViewController, index int) { + objc.Call[objc.Void](v_, objc.Sel("insertChildViewController:atIndex:"), childViewController, index) } // For a view controller that is part of an app extension, called when its view is about to be resized. [Full Topic] @@ -254,11 +238,18 @@ func (v_ ViewController) ViewWillTransitionToSize(newSize foundation.Size) { objc.Call[objc.Void](v_, objc.Sel("viewWillTransitionToSize:"), newSize) } -// Called just before the [appkit/nsview/layout] method of the view controller's view is called. [Full Topic] +// Attempt to commit any currently edited results of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434495-viewwilllayout?language=objc -func (v_ ViewController) ViewWillLayout() { - objc.Call[objc.Void](v_, objc.Sel("viewWillLayout")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434464-commiteditingwithdelegate?language=objc +func (v_ ViewController) CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.IObject, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](v_, objc.Sel("commitEditingWithDelegate:didCommitSelector:contextInfo:"), delegate, didCommitSelector, contextInfo) +} + +// Called when there is a change in value of the preferredContentSize property of a child view controller or a presented view controller. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434434-preferredcontentsizedidchangefor?language=objc +func (v_ ViewController) PreferredContentSizeDidChangeForViewController(viewController IViewController) { + objc.Call[objc.Void](v_, objc.Sel("preferredContentSizeDidChangeForViewController:"), viewController) } // Removes the called view controller from its parent view controller. [Full Topic] @@ -268,116 +259,125 @@ func (v_ ViewController) RemoveFromParentViewController() { objc.Call[objc.Void](v_, objc.Sel("removeFromParentViewController")) } -// Dismisses a presented view controller, using the same animator that presented it. [Full Topic] +// Causes the receiver to discard any changes, restoring the previous values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434413-dismissviewcontroller?language=objc -func (v_ ViewController) DismissViewController(viewController IViewController) { - objc.Call[objc.Void](v_, objc.Sel("dismissViewController:"), viewController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434487-discardediting?language=objc +func (v_ ViewController) DiscardEditing() { + objc.Call[objc.Void](v_, objc.Sel("discardEditing")) } -// Presents another view controller as a sheet. [Full Topic] +// Called after the view controller’s view is removed from the view hierarchy in a window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434489-presentviewcontrollerassheet?language=objc -func (v_ ViewController) PresentViewControllerAsSheet(viewController IViewController) { - objc.Call[objc.Void](v_, objc.Sel("presentViewControllerAsSheet:"), viewController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434416-viewdiddisappear?language=objc +func (v_ ViewController) ViewDidDisappear() { + objc.Call[objc.Void](v_, objc.Sel("viewDidDisappear")) } -// Presents another view controller as a popover. [Full Topic] +// Presents another view controller as a modal window, also known as an alert. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434422-presentviewcontroller?language=objc -func (v_ ViewController) PresentViewControllerAsPopoverRelativeToRectOfViewPreferredEdgeBehavior(viewController IViewController, positioningRect foundation.Rect, positioningView IView, preferredEdge foundation.RectEdge, behavior PopoverBehavior) { - objc.Call[objc.Void](v_, objc.Sel("presentViewController:asPopoverRelativeToRect:ofView:preferredEdge:behavior:"), viewController, positioningRect, positioningView, preferredEdge, behavior) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434462-presentviewcontrollerasmodalwind?language=objc +func (v_ ViewController) PresentViewControllerAsModalWindow(viewController IViewController) { + objc.Call[objc.Void](v_, objc.Sel("presentViewControllerAsModalWindow:"), viewController) } -// Called during Auto Layout constraint updating to enable the view controller to mediate the process. [Full Topic] +// Presents another view controller using a specified, custom animator for presentation and dismissal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434400-updateviewconstraints?language=objc -func (v_ ViewController) UpdateViewConstraints() { - objc.Call[objc.Void](v_, objc.Sel("updateViewConstraints")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434431-presentviewcontroller?language=objc +func (v_ ViewController) PresentViewControllerAnimator(viewController IViewController, animator PViewControllerPresentationAnimator) { + po1 := objc.WrapAsProtocol("NSViewControllerPresentationAnimator", animator) + objc.Call[objc.Void](v_, objc.Sel("presentViewController:animator:"), viewController, po1) } -// Called after the view controller’s view has been loaded into memory. [Full Topic] +// Presents another view controller using a specified, custom animator for presentation and dismissal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434476-viewdidload?language=objc -func (v_ ViewController) ViewDidLoad() { - objc.Call[objc.Void](v_, objc.Sel("viewDidLoad")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434431-presentviewcontroller?language=objc +func (v_ ViewController) PresentViewControllerAnimatorObject(viewController IViewController, animatorObject objc.IObject) { + objc.Call[objc.Void](v_, objc.Sel("presentViewController:animator:"), viewController, animatorObject) } -// The localized title of the receiver’s primary view. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434426-title?language=objc -func (v_ ViewController) Title() string { - rv := objc.Call[string](v_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434479-sourceitemview?language=objc +func (v_ ViewController) SourceItemView() View { + rv := objc.Call[View](v_, objc.Sel("sourceItemView")) return rv } -// The localized title of the receiver’s primary view. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434426-title?language=objc -func (v_ ViewController) SetTitle(value string) { - objc.Call[objc.Void](v_, objc.Sel("setTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434479-sourceitemview?language=objc +func (v_ ViewController) SetSourceItemView(value IView) { + objc.Call[objc.Void](v_, objc.Sel("setSourceItemView:"), value) } -// The storyboard from which the view controller was loaded. [Full Topic] +// The view controllers, if any, that are currently presented by the view controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434499-storyboard?language=objc -func (v_ ViewController) Storyboard() Storyboard { - rv := objc.Call[Storyboard](v_, objc.Sel("storyboard")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434497-presentedviewcontrollers?language=objc +func (v_ ViewController) PresentedViewControllers() []ViewController { + rv := objc.Call[[]ViewController](v_, objc.Sel("presentedViewControllers")) return rv } -// The nib bundle to be loaded to instantiate the receiver’s primary view. [Full Topic] +// A Boolean value indicating whether the view controller’s view is loaded into memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434433-nibbundle?language=objc -func (v_ ViewController) NibBundle() foundation.Bundle { - rv := objc.Call[foundation.Bundle](v_, objc.Sel("nibBundle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434435-viewloaded?language=objc +func (v_ ViewController) IsViewLoaded() bool { + rv := objc.Call[bool](v_, objc.Sel("isViewLoaded")) return rv } -// The object whose value is presented in the receiver’s primary view. [Full Topic] +// The name of the nib file to be loaded to instantiate the receiver’s primary view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434453-representedobject?language=objc -func (v_ ViewController) RepresentedObject() objc.Object { - rv := objc.Call[objc.Object](v_, objc.Sel("representedObject")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434472-nibname?language=objc +func (v_ ViewController) NibName() NibName { + rv := objc.Call[NibName](v_, objc.Sel("nibName")) return rv } -// The object whose value is presented in the receiver’s primary view. [Full Topic] +// The immediate ancestor view controller of the view controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434453-representedobject?language=objc -func (v_ ViewController) SetRepresentedObject(value objc.IObject) { - objc.Call[objc.Void](v_, objc.Sel("setRepresentedObject:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434491-parentviewcontroller?language=objc +func (v_ ViewController) ParentViewController() ViewController { + rv := objc.Call[ViewController](v_, objc.Sel("parentViewController")) + return rv } -// For a view controller that is part of an app extension, the largest allowable size for the app extension’s primary view, in screen units. [Full Topic] +// The view controller’s primary view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434403-preferredmaximumsize?language=objc -func (v_ ViewController) PreferredMaximumSize() foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("preferredMaximumSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434401-view?language=objc +func (v_ ViewController) View() View { + rv := objc.Call[View](v_, objc.Sel("view")) return rv } -// The name of the nib file to be loaded to instantiate the receiver’s primary view. [Full Topic] +// The view controller’s primary view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434472-nibname?language=objc -func (v_ ViewController) NibName() NibName { - rv := objc.Call[NibName](v_, objc.Sel("nibName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434401-view?language=objc +func (v_ ViewController) SetView(value IView) { + objc.Call[objc.Void](v_, objc.Sel("setView:"), value) +} + +// The nib bundle to be loaded to instantiate the receiver’s primary view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434433-nibbundle?language=objc +func (v_ ViewController) NibBundle() foundation.Bundle { + rv := objc.Call[foundation.Bundle](v_, objc.Sel("nibBundle")) return rv } -// A Boolean value indicating whether the view controller’s view is loaded into memory. [Full Topic] +// For a view controller that is part of an app extension, the largest allowable size for the app extension’s primary view, in screen units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434435-viewloaded?language=objc -func (v_ ViewController) IsViewLoaded() bool { - rv := objc.Call[bool](v_, objc.Sel("isViewLoaded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434403-preferredmaximumsize?language=objc +func (v_ ViewController) PreferredMaximumSize() foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("preferredMaximumSize")) return rv } -// The view controller that presented the view controller or that presented its farthest ancestor view controller. [Full Topic] +// For a view controller that is part of an app extension, the smallest allowable size for the app extension’s primary view, in screen units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434439-presentingviewcontroller?language=objc -func (v_ ViewController) PresentingViewController() ViewController { - rv := objc.Call[ViewController](v_, objc.Sel("presentingViewController")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434418-preferredminimumsize?language=objc +func (v_ ViewController) PreferredMinimumSize() foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("preferredMinimumSize")) return rv } @@ -396,65 +396,57 @@ func (v_ ViewController) SetPreferredScreenOrigin(value foundation.Point) { objc.Call[objc.Void](v_, objc.Sel("setPreferredScreenOrigin:"), value) } -// The immediate ancestor view controller of the view controller. [Full Topic] +// The storyboard from which the view controller was loaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434491-parentviewcontroller?language=objc -func (v_ ViewController) ParentViewController() ViewController { - rv := objc.Call[ViewController](v_, objc.Sel("parentViewController")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434499-storyboard?language=objc +func (v_ ViewController) Storyboard() Storyboard { + rv := objc.Call[Storyboard](v_, objc.Sel("storyboard")) return rv } -// [Full Topic] +// The object whose value is presented in the receiver’s primary view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434479-sourceitemview?language=objc -func (v_ ViewController) SourceItemView() View { - rv := objc.Call[View](v_, objc.Sel("sourceItemView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434453-representedobject?language=objc +func (v_ ViewController) RepresentedObject() objc.Object { + rv := objc.Call[objc.Object](v_, objc.Sel("representedObject")) return rv } -// [Full Topic] +// The object whose value is presented in the receiver’s primary view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434479-sourceitemview?language=objc -func (v_ ViewController) SetSourceItemView(value IView) { - objc.Call[objc.Void](v_, objc.Sel("setSourceItemView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434453-representedobject?language=objc +func (v_ ViewController) SetRepresentedObject(value objc.IObject) { + objc.Call[objc.Void](v_, objc.Sel("setRepresentedObject:"), value) } -// The view controller’s primary view. [Full Topic] +// The localized title of the receiver’s primary view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434401-view?language=objc -func (v_ ViewController) View() View { - rv := objc.Call[View](v_, objc.Sel("view")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434426-title?language=objc +func (v_ ViewController) Title() string { + rv := objc.Call[string](v_, objc.Sel("title")) return rv } -// The view controller’s primary view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434401-view?language=objc -func (v_ ViewController) SetView(value IView) { - objc.Call[objc.Void](v_, objc.Sel("setView:"), value) -} - -// For a view controller that is part of an app extension, the app extension context. [Full Topic] +// The localized title of the receiver’s primary view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434457-extensioncontext?language=objc -func (v_ ViewController) ExtensionContext() foundation.ExtensionContext { - rv := objc.Call[foundation.ExtensionContext](v_, objc.Sel("extensionContext")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434426-title?language=objc +func (v_ ViewController) SetTitle(value string) { + objc.Call[objc.Void](v_, objc.Sel("setTitle:"), value) } -// For a view controller that is part of an app extension, the smallest allowable size for the app extension’s primary view, in screen units. [Full Topic] +// The view controller that presented the view controller or that presented its farthest ancestor view controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434418-preferredminimumsize?language=objc -func (v_ ViewController) PreferredMinimumSize() foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("preferredMinimumSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434439-presentingviewcontroller?language=objc +func (v_ ViewController) PresentingViewController() ViewController { + rv := objc.Call[ViewController](v_, objc.Sel("presentingViewController")) return rv } -// The view controllers, if any, that are currently presented by the view controller. [Full Topic] +// For a view controller that is part of an app extension, the app extension context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434497-presentedviewcontrollers?language=objc -func (v_ ViewController) PresentedViewControllers() []ViewController { - rv := objc.Call[[]ViewController](v_, objc.Sel("presentedViewControllers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434457-extensioncontext?language=objc +func (v_ ViewController) ExtensionContext() foundation.ExtensionContext { + rv := objc.Call[foundation.ExtensionContext](v_, objc.Sel("extensionContext")) return rv } diff --git a/macos/appkit/view_controller_presentation_animator_protocol.gen.go b/macos/appkit/view_controller_presentation_animator_protocol.gen.go index 40f87724..0b2032f4 100644 --- a/macos/appkit/view_controller_presentation_animator_protocol.gen.go +++ b/macos/appkit/view_controller_presentation_animator_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontrollerpresentationanimator?language=objc type PViewControllerPresentationAnimator interface { - // optional - AnimateDismissalOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) - HasAnimateDismissalOfViewControllerFromViewController() bool - // optional AnimatePresentationOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) HasAnimatePresentationOfViewControllerFromViewController() bool + + // optional + AnimateDismissalOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) + HasAnimateDismissalOfViewControllerFromViewController() bool } // ensure impl type implements protocol interface @@ -27,17 +27,6 @@ type ViewControllerPresentationAnimatorObject struct { objc.Object } -func (v_ ViewControllerPresentationAnimatorObject) HasAnimateDismissalOfViewControllerFromViewController() bool { - return v_.RespondsToSelector(objc.Sel("animateDismissalOfViewController:fromViewController:")) -} - -// Called when a previously-presented view controller is about to be dismissed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontrollerpresentationanimator/1434458-animatedismissalofviewcontroller?language=objc -func (v_ ViewControllerPresentationAnimatorObject) AnimateDismissalOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) { - objc.Call[objc.Void](v_, objc.Sel("animateDismissalOfViewController:fromViewController:"), viewController, fromViewController) -} - func (v_ ViewControllerPresentationAnimatorObject) HasAnimatePresentationOfViewControllerFromViewController() bool { return v_.RespondsToSelector(objc.Sel("animatePresentationOfViewController:fromViewController:")) } @@ -48,3 +37,14 @@ func (v_ ViewControllerPresentationAnimatorObject) HasAnimatePresentationOfViewC func (v_ ViewControllerPresentationAnimatorObject) AnimatePresentationOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) { objc.Call[objc.Void](v_, objc.Sel("animatePresentationOfViewController:fromViewController:"), viewController, fromViewController) } + +func (v_ ViewControllerPresentationAnimatorObject) HasAnimateDismissalOfViewControllerFromViewController() bool { + return v_.RespondsToSelector(objc.Sel("animateDismissalOfViewController:fromViewController:")) +} + +// Called when a previously-presented view controller is about to be dismissed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontrollerpresentationanimator/1434458-animatedismissalofviewcontroller?language=objc +func (v_ ViewControllerPresentationAnimatorObject) AnimateDismissalOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) { + objc.Call[objc.Void](v_, objc.Sel("animateDismissalOfViewController:fromViewController:"), viewController, fromViewController) +} diff --git a/macos/appkit/visual_effect_view.gen.go b/macos/appkit/visual_effect_view.gen.go index 42b241fb..b161890e 100644 --- a/macos/appkit/visual_effect_view.gen.go +++ b/macos/appkit/visual_effect_view.gen.go @@ -19,17 +19,17 @@ type _VisualEffectViewClass struct { // An interface definition for the [VisualEffectView] class. type IVisualEffectView interface { IView - InteriorBackgroundStyle() BackgroundStyle - Material() VisualEffectMaterial - SetMaterial(value VisualEffectMaterial) - BlendingMode() VisualEffectBlendingMode - SetBlendingMode(value VisualEffectBlendingMode) + State() VisualEffectState + SetState(value VisualEffectState) IsEmphasized() bool SetEmphasized(value bool) MaskImage() Image SetMaskImage(value IImage) - State() VisualEffectState - SetState(value VisualEffectState) + InteriorBackgroundStyle() BackgroundStyle + BlendingMode() VisualEffectBlendingMode + SetBlendingMode(value VisualEffectBlendingMode) + Material() VisualEffectMaterial + SetMaterial(value VisualEffectMaterial) } // A view that adds translucency and vibrancy effects to the views in your interface. [Full Topic] @@ -79,42 +79,19 @@ func NewVisualEffectViewWithFrame(frameRect foundation.Rect) VisualEffectView { return instance } -// The view’s interior background style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1529998-interiorbackgroundstyle?language=objc -func (v_ VisualEffectView) InteriorBackgroundStyle() BackgroundStyle { - rv := objc.Call[BackgroundStyle](v_, objc.Sel("interiorBackgroundStyle")) - return rv -} - -// The material shown by the visual effect view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1526623-material?language=objc -func (v_ VisualEffectView) Material() VisualEffectMaterial { - rv := objc.Call[VisualEffectMaterial](v_, objc.Sel("material")) - return rv -} - -// The material shown by the visual effect view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1526623-material?language=objc -func (v_ VisualEffectView) SetMaterial(value VisualEffectMaterial) { - objc.Call[objc.Void](v_, objc.Sel("setMaterial:"), value) -} - -// A value indicating how the view’s contents blend with the surrounding content. [Full Topic] +// A value that indicates whether a view has a visual effect applied. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1535468-blendingmode?language=objc -func (v_ VisualEffectView) BlendingMode() VisualEffectBlendingMode { - rv := objc.Call[VisualEffectBlendingMode](v_, objc.Sel("blendingMode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1532403-state?language=objc +func (v_ VisualEffectView) State() VisualEffectState { + rv := objc.Call[VisualEffectState](v_, objc.Sel("state")) return rv } -// A value indicating how the view’s contents blend with the surrounding content. [Full Topic] +// A value that indicates whether a view has a visual effect applied. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1535468-blendingmode?language=objc -func (v_ VisualEffectView) SetBlendingMode(value VisualEffectBlendingMode) { - objc.Call[objc.Void](v_, objc.Sel("setBlendingMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1532403-state?language=objc +func (v_ VisualEffectView) SetState(value VisualEffectState) { + objc.Call[objc.Void](v_, objc.Sel("setState:"), value) } // A Boolean value indicating whether to emphasize the look of the material. [Full Topic] @@ -147,17 +124,40 @@ func (v_ VisualEffectView) SetMaskImage(value IImage) { objc.Call[objc.Void](v_, objc.Sel("setMaskImage:"), value) } -// A value that indicates whether a view has a visual effect applied. [Full Topic] +// The view’s interior background style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1532403-state?language=objc -func (v_ VisualEffectView) State() VisualEffectState { - rv := objc.Call[VisualEffectState](v_, objc.Sel("state")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1529998-interiorbackgroundstyle?language=objc +func (v_ VisualEffectView) InteriorBackgroundStyle() BackgroundStyle { + rv := objc.Call[BackgroundStyle](v_, objc.Sel("interiorBackgroundStyle")) return rv } -// A value that indicates whether a view has a visual effect applied. [Full Topic] +// A value indicating how the view’s contents blend with the surrounding content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1532403-state?language=objc -func (v_ VisualEffectView) SetState(value VisualEffectState) { - objc.Call[objc.Void](v_, objc.Sel("setState:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1535468-blendingmode?language=objc +func (v_ VisualEffectView) BlendingMode() VisualEffectBlendingMode { + rv := objc.Call[VisualEffectBlendingMode](v_, objc.Sel("blendingMode")) + return rv +} + +// A value indicating how the view’s contents blend with the surrounding content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1535468-blendingmode?language=objc +func (v_ VisualEffectView) SetBlendingMode(value VisualEffectBlendingMode) { + objc.Call[objc.Void](v_, objc.Sel("setBlendingMode:"), value) +} + +// The material shown by the visual effect view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1526623-material?language=objc +func (v_ VisualEffectView) Material() VisualEffectMaterial { + rv := objc.Call[VisualEffectMaterial](v_, objc.Sel("material")) + return rv +} + +// The material shown by the visual effect view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsvisualeffectview/1526623-material?language=objc +func (v_ VisualEffectView) SetMaterial(value VisualEffectMaterial) { + objc.Call[objc.Void](v_, objc.Sel("setMaterial:"), value) } diff --git a/macos/appkit/window.gen.go b/macos/appkit/window.gen.go index f44ef89b..8e636eb0 100644 --- a/macos/appkit/window.gen.go +++ b/macos/appkit/window.gen.go @@ -19,299 +19,293 @@ type _WindowClass struct { // An interface definition for the [Window] class. type IWindow interface { IResponder - DisableKeyEquivalentForDefaultButtonCell() - EnableCursorRects() - AnchorAttributeForOrientation(orientation LayoutConstraintOrientation) LayoutAttribute - InvalidateCursorRectsForView(view IView) - SetIsVisible(flag bool) - MakeKeyAndOrderFront(sender objc.IObject) - SetFrameUsingName(name WindowFrameAutosaveName) bool - ConvertPointFromScreen(point foundation.Point) foundation.Point - OrderBack(sender objc.IObject) - ToggleTabOverview(sender objc.IObject) objc.Object - OrderOut(sender objc.IObject) - Center() - MakeMainWindow() - Miniaturize(sender objc.IObject) - ToggleFullScreen(sender objc.IObject) - MergeAllWindows(sender objc.IObject) objc.Object - RemoveChildWindow(childWin IWindow) - EndSheetReturnCode(sheetWindow IWindow, returnCode ModalResponse) - ToggleToolbarShown(sender objc.IObject) - SetAutorecalculatesContentBorderThicknessForEdge(flag bool, edge foundation.RectEdge) - BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect AddTabbedWindowOrdered(window IWindow, ordered WindowOrderingMode) - DataWithPDFInsideRect(rect foundation.Rect) []byte - Deminiaturize(sender objc.IObject) - SetFrameUsingNameForce(name WindowFrameAutosaveName, force bool) bool - Close() + SaveFrameUsingName(name WindowFrameAutosaveName) MakeKeyWindow() - SelectNextKeyView(sender objc.IObject) + SendEvent(event IEvent) + DisableKeyEquivalentForDefaultButtonCell() + DiscardCursorRects() + ConvertPointToBacking(point foundation.Point) foundation.Point SetFrameOrigin(point foundation.Point) - SetFrameDisplay(frameRect foundation.Rect, flag bool) - ResignKeyWindow() - CascadeTopLeftFromPoint(topLeftPoint foundation.Point) foundation.Point + EnableCursorRects() + OrderFrontRegardless() + ConvertRectFromBacking(rect foundation.Rect) foundation.Rect SetContentSize(size foundation.Size) - BecomeMainWindow() - SetAnchorAttributeForOrientation(attr LayoutAttribute, orientation LayoutConstraintOrientation) - SetIsZoomed(flag bool) - ContentBorderThicknessForEdge(edge foundation.RectEdge) float64 + AutorecalculatesContentBorderThicknessForEdge(edge foundation.RectEdge) bool + SetFrameFromString(string_ WindowPersistableFrameDescriptor) + SelectKeyViewPrecedingView(view IView) + DragImageAtOffsetEventPasteboardSourceSlideBack(image IImage, baseLocation foundation.Point, initialOffset foundation.Size, event IEvent, pboard IPasteboard, sourceObj objc.IObject, slideFlag bool) + MoveTabToNewWindow(sender objc.IObject) objc.Object + OrderOut(sender objc.IObject) + RecalculateKeyViewLoop() VisualizeConstraints(constraints []ILayoutConstraint) - CanRepresentDisplayGamut(displayGamut DisplayGamut) bool - ToggleTabBar(sender objc.IObject) objc.Object - DisableScreenUpdatesUntilFlush() - UpdateConstraintsIfNeeded() + SetContentBorderThicknessForEdge(thickness float64, edge foundation.RectEdge) ConvertRectToScreen(rect foundation.Rect) foundation.Rect + ResetCursorRects() + AnchorAttributeForOrientation(orientation LayoutConstraintOrientation) LayoutAttribute + UpdateConstraintsIfNeeded() + HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object + Close() DataWithEPSInsideRect(rect foundation.Rect) []byte - SetFrameFromString(string_ WindowPersistableFrameDescriptor) - EnableSnapshotRestoration() - AnimationResizeTime(newFrame foundation.Rect) foundation.TimeInterval - ConvertPointToScreen(point foundation.Point) foundation.Point - FrameRectForContentRect(contentRect foundation.Rect) foundation.Rect - ResignMainWindow() - Zoom(sender objc.IObject) - SetIsMiniaturized(flag bool) - NextEventMatchingMaskUntilDateInModeDequeue(mask EventMask, expiration foundation.IDate, mode foundation.RunLoopMode, deqFlag bool) Event - OrderFrontRegardless() + ToggleTabBar(sender objc.IObject) objc.Object HandleCloseScriptCommand(command foundation.ICloseCommand) objc.Object - TrackEventsMatchingMaskTimeoutModeHandler(mask EventMask, timeout foundation.TimeInterval, mode foundation.RunLoopMode, trackingHandler func(event Event, stop *bool)) - SetTitleWithRepresentedFilename(filename string) - SetFrameAutosaveName(name WindowFrameAutosaveName) bool - ConstrainFrameRectToScreen(frameRect foundation.Rect, screen IScreen) foundation.Rect - SetDynamicDepthLimit(flag bool) - DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) - DragImageAtOffsetEventPasteboardSourceSlideBack(image IImage, baseLocation foundation.Point, initialOffset foundation.Size, event IEvent, pboard IPasteboard, sourceObj objc.IObject, slideFlag bool) - Display() + RemoveChildWindow(childWin IWindow) + MakeMainWindow() RunToolbarCustomizationPalette(sender objc.IObject) - RecalculateKeyViewLoop() - DiscardCursorRects() - HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object - EndSheet(sheetWindow IWindow) - PerformZoom(sender objc.IObject) - MoveTabToNewWindow(sender objc.IObject) objc.Object - RegisterForDraggedTypes(newTypes []PasteboardType) - NextEventMatchingMask(mask EventMask) Event - Update() - ResetCursorRects() - AddChildWindowOrdered(childWin IWindow, place WindowOrderingMode) - InvalidateShadow() - DisplayIfNeeded() - SelectPreviousTab(sender objc.IObject) objc.Object - BecomeKeyWindow() - ConvertPointToBacking(point foundation.Point) foundation.Point - UnregisterDraggedTypes() - PerformMiniaturize(sender objc.IObject) + ResignMainWindow() + BeginSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) + CascadeTopLeftFromPoint(topLeftPoint foundation.Point) foundation.Point + DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) + DisableScreenUpdatesUntilFlush() ConvertRectToBacking(rect foundation.Rect) foundation.Rect - LayoutIfNeeded() + SetFrameDisplay(frameRect foundation.Rect, flag bool) + AnimationResizeTime(newFrame foundation.Rect) foundation.TimeInterval SelectKeyViewFollowingView(view IView) - SetContentBorderThicknessForEdge(thickness float64, edge foundation.RectEdge) - StandardWindowButton(b WindowButton) Button - SetFrameDisplayAnimate(frameRect foundation.Rect, displayFlag bool, animateFlag bool) - BeginSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) - SelectKeyViewPrecedingView(view IView) - OrderFront(sender objc.IObject) + RegisterForDraggedTypes(newTypes []PasteboardType) + SetAnchorAttributeForOrientation(attr LayoutAttribute, orientation LayoutConstraintOrientation) + ContentBorderThicknessForEdge(edge foundation.RectEdge) float64 + OrderBack(sender objc.IObject) + TrackEventsMatchingMaskTimeoutModeHandler(mask EventMask, timeout foundation.TimeInterval, mode foundation.RunLoopMode, trackingHandler func(event Event, stop *bool)) InitWithWindowRef(windowRef unsafe.Pointer) Window - HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object - BeginCriticalSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) - SaveFrameUsingName(name WindowFrameAutosaveName) - ConvertRectFromBacking(rect foundation.Rect) foundation.Rect - EndEditingFor(object objc.IObject) - PostEventAtStart(event IEvent, flag bool) - ContentRectForFrameRect(frameRect foundation.Rect) foundation.Rect - PerformWindowDragWithEvent(event IEvent) - SetFrameTopLeftPoint(point foundation.Point) - EnableKeyEquivalentForDefaultButtonCell() + InvalidateShadow() + HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object + Display() + PerformMiniaturize(sender objc.IObject) DisableCursorRects() - RemoveTitlebarAccessoryViewControllerAtIndex(index int) + SetDynamicDepthLimit(flag bool) + Miniaturize(sender objc.IObject) SelectNextTab(sender objc.IObject) objc.Object + AddTitlebarAccessoryViewController(childViewController ITitlebarAccessoryViewController) + MakeFirstResponder(responder IResponder) bool + SetIsZoomed(flag bool) + BeginCriticalSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) + ToggleFullScreen(sender objc.IObject) + ConvertPointFromBacking(point foundation.Point) foundation.Point + OrderWindowRelativeTo(place WindowOrderingMode, otherWin int) + Print(sender objc.IObject) FieldEditorForObject(createFlag bool, object objc.IObject) Text + RemoveTitlebarAccessoryViewControllerAtIndex(index int) + SetAutorecalculatesContentBorderThicknessForEdge(flag bool, edge foundation.RectEdge) + SelectPreviousTab(sender objc.IObject) objc.Object + SelectNextKeyView(sender objc.IObject) + SetTitleWithRepresentedFilename(filename string) + MakeKeyAndOrderFront(sender objc.IObject) + SetFrameAutosaveName(name WindowFrameAutosaveName) bool SelectPreviousKeyView(sender objc.IObject) - AutorecalculatesContentBorderThicknessForEdge(edge foundation.RectEdge) bool + PostEventAtStart(event IEvent, flag bool) + ToggleTabOverview(sender objc.IObject) objc.Object + OrderFront(sender objc.IObject) + ResignKeyWindow() + DataWithPDFInsideRect(rect foundation.Rect) []byte + EndEditingFor(object objc.IObject) + CanRepresentDisplayGamut(displayGamut DisplayGamut) bool + BecomeKeyWindow() + EnableSnapshotRestoration() DisableSnapshotRestoration() - AddTitlebarAccessoryViewController(childViewController ITitlebarAccessoryViewController) + NextEventMatchingMaskUntilDateInModeDequeue(mask EventMask, expiration foundation.IDate, mode foundation.RunLoopMode, deqFlag bool) Event + Deminiaturize(sender objc.IObject) + UnregisterDraggedTypes() + SetFrameUsingName(name WindowFrameAutosaveName) bool + InvalidateCursorRectsForView(view IView) + ConvertPointToScreen(point foundation.Point) foundation.Point + AddChildWindowOrdered(childWin IWindow, place WindowOrderingMode) PerformClose(sender objc.IObject) - ConvertPointFromBacking(point foundation.Point) foundation.Point ConvertRectFromScreen(rect foundation.Rect) foundation.Rect - Print(sender objc.IObject) + SetIsVisible(flag bool) + PerformWindowDragWithEvent(event IEvent) + StandardWindowButton(b WindowButton) Button + Zoom(sender objc.IObject) + MergeAllWindows(sender objc.IObject) objc.Object + Update() + ConvertPointFromScreen(point foundation.Point) foundation.Point + EnableKeyEquivalentForDefaultButtonCell() + ToggleToolbarShown(sender objc.IObject) + SetIsMiniaturized(flag bool) + BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect + ConstrainFrameRectToScreen(frameRect foundation.Rect, screen IScreen) foundation.Rect + LayoutIfNeeded() + EndSheetReturnCode(sheetWindow IWindow, returnCode ModalResponse) + BecomeMainWindow() InsertTitlebarAccessoryViewControllerAtIndex(childViewController ITitlebarAccessoryViewController, index int) - SendEvent(event IEvent) - MakeFirstResponder(responder IResponder) bool - OrderWindowRelativeTo(place WindowOrderingMode, otherWin int) - WorksWhenModal() bool - MaxSize() foundation.Size - SetMaxSize(value foundation.Size) - ResizeFlags() EventModifierFlags - IsFloatingPanel() bool - WindowController() WindowController - SetWindowController(value IWindowController) - ContentAspectRatio() foundation.Size - SetContentAspectRatio(value foundation.Size) - WindowTitlebarLayoutDirection() UserInterfaceLayoutDirection - IsOpaque() bool - SetOpaque(value bool) + PerformZoom(sender objc.IObject) + SetFrameTopLeftPoint(point foundation.Point) + DisplayIfNeeded() + Center() IsRestorable() bool SetRestorable(value bool) - CanBecomeKeyWindow() bool - IsZoomable() bool - Delegate() WindowDelegateObject - SetDelegate(value PWindowDelegate) - SetDelegateObject(valueObject objc.IObject) - IsResizable() bool - MiniwindowImage() Image - SetMiniwindowImage(value IImage) - TitlebarSeparatorStyle() TitlebarSeparatorStyle - SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) - DockTile() DockTile + MaxSize() foundation.Size + SetMaxSize(value foundation.Size) + HidesOnDeactivate() bool + SetHidesOnDeactivate(value bool) IsVisible() bool ParentWindow() Window SetParentWindow(value IWindow) - AcceptsMouseMovedEvents() bool - SetAcceptsMouseMovedEvents(value bool) - HasCloseBox() bool - MouseLocationOutsideOfEventStream() foundation.Point - IsMiniaturizable() bool - Subtitle() string - SetSubtitle(value string) - HasTitleBar() bool - OcclusionState() WindowOcclusionState + MinFullScreenContentSize() foundation.Size + SetMinFullScreenContentSize(value foundation.Size) + Sheets() []Window IsExcludedFromWindowsMenu() bool SetExcludedFromWindowsMenu(value bool) - ContentLayoutGuide() objc.Object - AppearanceSource() objc.Object - SetAppearanceSource(value objc.IObject) - WindowRef() unsafe.Pointer IsSheet() bool - TabGroup() WindowTabGroup - BackingScaleFactor() float64 - IsOnActiveSpace() bool - ContentView() View - SetContentView(value IView) - FrameAutosaveName() WindowFrameAutosaveName - TitlebarAppearsTransparent() bool - SetTitlebarAppearsTransparent(value bool) - ContentLayoutRect() foundation.Rect - CanHide() bool - SetCanHide(value bool) - TabbingMode() WindowTabbingMode - SetTabbingMode(value WindowTabbingMode) - IsMovableByWindowBackground() bool - SetMovableByWindowBackground(value bool) - HidesOnDeactivate() bool - SetHidesOnDeactivate(value bool) - RepresentedFilename() string - SetRepresentedFilename(value string) - Sheets() []Window - AreCursorRectsEnabled() bool - CanBecomeVisibleWithoutLogin() bool - SetCanBecomeVisibleWithoutLogin(value bool) - KeyViewSelectionDirection() SelectionDirection - ResizeIncrements() foundation.Size - SetResizeIncrements(value foundation.Size) - AllowsToolTipsWhenApplicationIsInactive() bool - SetAllowsToolTipsWhenApplicationIsInactive(value bool) - IsMiniaturized() bool + IsReleasedWhenClosed() bool + SetReleasedWhenClosed(value bool) + SharingType() WindowSharingType + SetSharingType(value WindowSharingType) + HasShadow() bool + SetHasShadow(value bool) + StyleMask() WindowStyleMask + SetStyleMask(value WindowStyleMask) + Tab() WindowTab OrderedIndex() int SetOrderedIndex(value int) + ViewsNeedDisplay() bool + SetViewsNeedDisplay(value bool) + Level() WindowLevel + SetLevel(value WindowLevel) + AnimationBehavior() WindowAnimationBehavior + SetAnimationBehavior(value WindowAnimationBehavior) + Screen() Screen + IsModalPanel() bool + MouseLocationOutsideOfEventStream() foundation.Point + IsKeyWindow() bool + ContentView() View + SetContentView(value IView) + TitleVisibility() WindowTitleVisibility + SetTitleVisibility(value WindowTitleVisibility) + ToolbarStyle() WindowToolbarStyle + SetToolbarStyle(value WindowToolbarStyle) + CurrentEvent() Event + MiniwindowTitle() string + SetMiniwindowTitle(value string) + IsMainWindow() bool + ChildWindows() []Window DefaultButtonCell() ButtonCell SetDefaultButtonCell(value IButtonCell) - CanBecomeMainWindow() bool + FirstResponder() Responder + TabbedWindows() []Window + PreservesContentDuringLiveResize() bool + SetPreservesContentDuringLiveResize(value bool) + ContentAspectRatio() foundation.Size + SetContentAspectRatio(value foundation.Size) + DisplaysWhenScreenProfileChanges() bool + SetDisplaysWhenScreenProfileChanges(value bool) + RestorationClass() objc.Class + SetRestorationClass(value objc.IClass) + AcceptsMouseMovedEvents() bool + SetAcceptsMouseMovedEvents(value bool) + Subtitle() string + SetSubtitle(value string) + WorksWhenModal() bool + IsMiniaturized() bool AlphaValue() float64 SetAlphaValue(value float64) - StyleMask() WindowStyleMask - SetStyleMask(value WindowStyleMask) - InitialFirstResponder() View - SetInitialFirstResponder(value IView) DeepestScreen() Screen + ContentLayoutRect() foundation.Rect + HasTitleBar() bool + IsMiniaturizable() bool + MinSize() foundation.Size + SetMinSize(value foundation.Size) BackingType() BackingStoreType SetBackingType(value BackingStoreType) - AttachedSheet() Window - SharingType() WindowSharingType - SetSharingType(value WindowSharingType) - FirstResponder() Responder - IsMainWindow() bool + MiniwindowImage() Image + SetMiniwindowImage(value IImage) + Toolbar() Toolbar + SetToolbar(value IToolbar) + ColorSpace() ColorSpace + SetColorSpace(value IColorSpace) + DepthLimit() WindowDepth + SetDepthLimit(value WindowDepth) + Delegate() WindowDelegateObject + SetDelegate(value PWindowDelegate) + SetDelegateObject(valueObject objc.IObject) + ResizeFlags() EventModifierFlags + IsFloatingPanel() bool + InLiveResize() bool + BackgroundColor() Color + SetBackgroundColor(value IColor) + TitlebarAppearsTransparent() bool + SetTitlebarAppearsTransparent(value bool) + TitlebarAccessoryViewControllers() []TitlebarAccessoryViewController + SetTitlebarAccessoryViewControllers(value []ITitlebarAccessoryViewController) + ResizeIncrements() foundation.Size + SetResizeIncrements(value foundation.Size) + WindowRef() unsafe.Pointer + CanHide() bool + SetCanHide(value bool) + IsOpaque() bool + SetOpaque(value bool) + RepresentedURL() foundation.URL + SetRepresentedURL(value foundation.IURL) + InitialFirstResponder() View + SetInitialFirstResponder(value IView) + IsZoomable() bool + OcclusionState() WindowOcclusionState AllowsConcurrentViewDrawing() bool SetAllowsConcurrentViewDrawing(value bool) - InLiveResize() bool - ContentMaxSize() foundation.Size - SetContentMaxSize(value foundation.Size) - ToolbarStyle() WindowToolbarStyle - SetToolbarStyle(value WindowToolbarStyle) - IsZoomed() bool + CanBecomeVisibleWithoutLogin() bool + SetCanBecomeVisibleWithoutLogin(value bool) + AreCursorRectsEnabled() bool + ContentViewController() ViewController + SetContentViewController(value IViewController) + DeviceDescription() map[DeviceDescriptionKey]objc.Object ContentMinSize() foundation.Size SetContentMinSize(value foundation.Size) - RepresentedURL() foundation.URL - SetRepresentedURL(value foundation.IURL) - TabbingIdentifier() WindowTabbingIdentifier - SetTabbingIdentifier(value WindowTabbingIdentifier) - Tab() WindowTab + TitlebarSeparatorStyle() TitlebarSeparatorStyle + SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) IsDocumentEdited() bool SetDocumentEdited(value bool) - HasDynamicDepthLimit() bool - MaxFullScreenContentSize() foundation.Size - SetMaxFullScreenContentSize(value foundation.Size) - Frame() foundation.Rect + CollectionBehavior() WindowCollectionBehavior + SetCollectionBehavior(value WindowCollectionBehavior) + TabbingIdentifier() WindowTabbingIdentifier + SetTabbingIdentifier(value WindowTabbingIdentifier) + WindowController() WindowController + SetWindowController(value IWindowController) + PreventsApplicationTerminationWhenModal() bool + SetPreventsApplicationTerminationWhenModal(value bool) + BackingScaleFactor() float64 + TabGroup() WindowTabGroup + WindowTitlebarLayoutDirection() UserInterfaceLayoutDirection + TabbingMode() WindowTabbingMode + SetTabbingMode(value WindowTabbingMode) + RepresentedFilename() string + SetRepresentedFilename(value string) + AspectRatio() foundation.Size + SetAspectRatio(value foundation.Size) WindowNumber() int - SheetParent() Window - ContentViewController() ViewController - SetContentViewController(value IViewController) - Screen() Screen - IsKeyWindow() bool - MinFullScreenContentSize() foundation.Size - SetMinFullScreenContentSize(value foundation.Size) - Toolbar() Toolbar - SetToolbar(value IToolbar) - DepthLimit() WindowDepth - SetDepthLimit(value WindowDepth) - Level() WindowLevel - SetLevel(value WindowLevel) + Frame() foundation.Rect + CanBecomeMainWindow() bool Title() string SetTitle(value string) - MiniwindowTitle() string - SetMiniwindowTitle(value string) - ViewsNeedDisplay() bool - SetViewsNeedDisplay(value bool) - AspectRatio() foundation.Size - SetAspectRatio(value foundation.Size) - PreventsApplicationTerminationWhenModal() bool - SetPreventsApplicationTerminationWhenModal(value bool) - TitlebarAccessoryViewControllers() []TitlebarAccessoryViewController - SetTitlebarAccessoryViewControllers(value []ITitlebarAccessoryViewController) + HasCloseBox() bool + HasDynamicDepthLimit() bool + StringWithSavedFrame() WindowPersistableFrameDescriptor + IsResizable() bool + DockTile() DockTile + IsOnActiveSpace() bool AutorecalculatesKeyViewLoop() bool SetAutorecalculatesKeyViewLoop(value bool) + AppearanceSource() objc.Object + SetAppearanceSource(value objc.IObject) + AttachedSheet() Window + IgnoresMouseEvents() bool + SetIgnoresMouseEvents(value bool) + ContentLayoutGuide() objc.Object + KeyViewSelectionDirection() SelectionDirection + IsMovableByWindowBackground() bool + SetMovableByWindowBackground(value bool) IsMovable() bool SetMovable(value bool) + IsZoomed() bool + ContentMaxSize() foundation.Size + SetContentMaxSize(value foundation.Size) + CanBecomeKeyWindow() bool ContentResizeIncrements() foundation.Size SetContentResizeIncrements(value foundation.Size) - ColorSpace() ColorSpace - SetColorSpace(value IColorSpace) - DisplaysWhenScreenProfileChanges() bool - SetDisplaysWhenScreenProfileChanges(value bool) - HasShadow() bool - SetHasShadow(value bool) - IgnoresMouseEvents() bool - SetIgnoresMouseEvents(value bool) - ChildWindows() []Window - CollectionBehavior() WindowCollectionBehavior - SetCollectionBehavior(value WindowCollectionBehavior) - TitleVisibility() WindowTitleVisibility - SetTitleVisibility(value WindowTitleVisibility) - CurrentEvent() Event - PreservesContentDuringLiveResize() bool - SetPreservesContentDuringLiveResize(value bool) - TabbedWindows() []Window - RestorationClass() objc.Class - SetRestorationClass(value objc.IClass) - BackgroundColor() Color - SetBackgroundColor(value IColor) - IsReleasedWhenClosed() bool - SetReleasedWhenClosed(value bool) - IsModalPanel() bool - StringWithSavedFrame() WindowPersistableFrameDescriptor - AnimationBehavior() WindowAnimationBehavior - SetAnimationBehavior(value WindowAnimationBehavior) - DeviceDescription() map[DeviceDescriptionKey]objc.Object - MinSize() foundation.Size - SetMinSize(value foundation.Size) + FrameAutosaveName() WindowFrameAutosaveName + MaxFullScreenContentSize() foundation.Size + SetMaxFullScreenContentSize(value foundation.Size) + AllowsToolTipsWhenApplicationIsInactive() bool + SetAllowsToolTipsWhenApplicationIsInactive(value bool) + SheetParent() Window } // A window that an app displays on the screen. [Full Topic] @@ -353,20 +347,6 @@ func NewWindowWithContentRectStyleMaskBackingDeferScreen(contentRect foundation. return instance } -func (w_ Window) InitWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) Window { - rv := objc.Call[Window](w_, objc.Sel("initWithContentRect:styleMask:backing:defer:"), contentRect, style, backingStoreType, flag) - return rv -} - -// Initializes the window with the specified values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc -func NewWindowWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style WindowStyleMask, backingStoreType BackingStoreType, flag bool) Window { - instance := WindowClass.Alloc().InitWithContentRectStyleMaskBackingDefer(contentRect, style, backingStoreType, flag) - instance.Autorelease() - return instance -} - func (wc _WindowClass) Alloc() Window { rv := objc.Call[Window](wc, objc.Sel("alloc")) return rv @@ -387,223 +367,84 @@ func (w_ Window) Init() Window { return rv } -// Disables the default button cell’s key equivalent, so it doesn’t perform a click when the user presses Return (or Enter). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419242-disablekeyequivalentfordefaultbu?language=objc -func (w_ Window) DisableKeyEquivalentForDefaultButtonCell() { - objc.Call[objc.Void](w_, objc.Sel("disableKeyEquivalentForDefaultButtonCell")) -} - -// Reenables cursor rectangle management within the window after a [appkit/nswindow/disablecursorrects] message. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419202-enablecursorrects?language=objc -func (w_ Window) EnableCursorRects() { - objc.Call[objc.Void](w_, objc.Sel("enableCursorRects")) -} - -// Returns the part of the window that stays stationary during constraint-based layout. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526957-anchorattributefororientation?language=objc -func (w_ Window) AnchorAttributeForOrientation(orientation LayoutConstraintOrientation) LayoutAttribute { - rv := objc.Call[LayoutAttribute](w_, objc.Sel("anchorAttributeForOrientation:"), orientation) - return rv -} - -// Marks as invalid the cursor rectangles of a given view object in the window, so they’ll be set up again when the window becomes key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419601-invalidatecursorrectsforview?language=objc -func (w_ Window) InvalidateCursorRectsForView(view IView) { - objc.Call[objc.Void](w_, objc.Sel("invalidateCursorRectsForView:"), view) -} - -// Sets the window’s visible state to the value you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449570-setisvisible?language=objc -func (w_ Window) SetIsVisible(flag bool) { - objc.Call[objc.Void](w_, objc.Sel("setIsVisible:"), flag) -} - -// Moves the window to the front of the screen list, within its level, and makes it the key window; that is, it shows the window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419208-makekeyandorderfront?language=objc -func (w_ Window) MakeKeyAndOrderFront(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("makeKeyAndOrderFront:"), sender) -} - -// Sets the window’s frame rectangle by reading the rectangle data stored under a given name from the defaults system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419723-setframeusingname?language=objc -func (w_ Window) SetFrameUsingName(name WindowFrameAutosaveName) bool { - rv := objc.Call[bool](w_, objc.Sel("setFrameUsingName:"), name) - return rv -} - -// Converts a point from the screen coordinate system to the window’s coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2967180-convertpointfromscreen?language=objc -func (w_ Window) ConvertPointFromScreen(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](w_, objc.Sel("convertPointFromScreen:"), point) - return rv -} - -// Moves the window to the back of its level in the screen list, without changing either the key window or the main window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419204-orderback?language=objc -func (w_ Window) OrderBack(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("orderBack:"), sender) -} - -// Shows or hides the tab overview. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2870175-toggletaboverview?language=objc -func (w_ Window) ToggleTabOverview(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("toggleTabOverview:"), sender) - return rv -} - -// Removes the window from the screen list, which hides the window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419660-orderout?language=objc -func (w_ Window) OrderOut(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("orderOut:"), sender) -} - -// Sets the window’s location to the center of the screen. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419090-center?language=objc -func (w_ Window) Center() { - objc.Call[objc.Void](w_, objc.Sel("center")) -} - -// Makes the window the main window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419271-makemainwindow?language=objc -func (w_ Window) MakeMainWindow() { - objc.Call[objc.Void](w_, objc.Sel("makeMainWindow")) -} - -// Removes the window from the screen list and displays the minimized window in the Dock. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419426-miniaturize?language=objc -func (w_ Window) Miniaturize(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("miniaturize:"), sender) -} - -// Takes the window into or out of fullscreen mode, [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419527-togglefullscreen?language=objc -func (w_ Window) ToggleFullScreen(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("toggleFullScreen:"), sender) -} - -// Merges all open windows into a single tabbed window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644639-mergeallwindows?language=objc -func (w_ Window) MergeAllWindows(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("mergeAllWindows:"), sender) - return rv -} - -// Detaches a given child window from the window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419063-removechildwindow?language=objc -func (w_ Window) RemoveChildWindow(childWin IWindow) { - objc.Call[objc.Void](w_, objc.Sel("removeChildWindow:"), childWin) -} - -// Ends a document-modal session and dismisses the specified sheet. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419497-endsheet?language=objc -func (w_ Window) EndSheetReturnCode(sheetWindow IWindow, returnCode ModalResponse) { - objc.Call[objc.Void](w_, objc.Sel("endSheet:returnCode:"), sheetWindow, returnCode) -} - -// Toggles the visibility of the window’s toolbar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419554-toggletoolbarshown?language=objc -func (w_ Window) ToggleToolbarShown(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("toggleToolbarShown:"), sender) -} - -// Specifies whether the window calculates the thickness of a given border automatically. [Full Topic] +// Adds the provided window as a new tab in a tabbed window using the specified ordering instruction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419218-setautorecalculatescontentborder?language=objc -func (w_ Window) SetAutorecalculatesContentBorderThicknessForEdge(flag bool, edge foundation.RectEdge) { - objc.Call[objc.Void](w_, objc.Sel("setAutorecalculatesContentBorderThickness:forEdge:"), flag, edge) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1855947-addtabbedwindow?language=objc +func (w_ Window) AddTabbedWindowOrdered(window IWindow, ordered WindowOrderingMode) { + objc.Call[objc.Void](w_, objc.Sel("addTabbedWindow:ordered:"), window, ordered) } -// Returns a backing store pixel-aligned rectangle in window coordinates. [Full Topic] +// Returns the frame rectangle used by a window with a given content rectangle and window style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419319-backingalignedrect?language=objc -func (w_ Window) BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("backingAlignedRect:options:"), rect, options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419372-framerectforcontentrect?language=objc +func (wc _WindowClass) FrameRectForContentRectStyleMask(cRect foundation.Rect, style WindowStyleMask) foundation.Rect { + rv := objc.Call[foundation.Rect](wc, objc.Sel("frameRectForContentRect:styleMask:"), cRect, style) return rv } -// Adds the provided window as a new tab in a tabbed window using the specified ordering instruction. [Full Topic] +// Returns the frame rectangle used by a window with a given content rectangle and window style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1855947-addtabbedwindow?language=objc -func (w_ Window) AddTabbedWindowOrdered(window IWindow, ordered WindowOrderingMode) { - objc.Call[objc.Void](w_, objc.Sel("addTabbedWindow:ordered:"), window, ordered) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419372-framerectforcontentrect?language=objc +func Window_FrameRectForContentRectStyleMask(cRect foundation.Rect, style WindowStyleMask) foundation.Rect { + return WindowClass.FrameRectForContentRectStyleMask(cRect, style) } -// Returns PDF data that draws the region of the window within a given rectangle. [Full Topic] +// Saves the window’s frame rectangle in the user defaults system under a given name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419418-datawithpdfinsiderect?language=objc -func (w_ Window) DataWithPDFInsideRect(rect foundation.Rect) []byte { - rv := objc.Call[[]byte](w_, objc.Sel("dataWithPDFInsideRect:"), rect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419290-saveframeusingname?language=objc +func (w_ Window) SaveFrameUsingName(name WindowFrameAutosaveName) { + objc.Call[objc.Void](w_, objc.Sel("saveFrameUsingName:"), name) } -// De-minimizes the window. [Full Topic] +// Makes the window the key window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419334-deminiaturize?language=objc -func (w_ Window) Deminiaturize(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("deminiaturize:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419368-makekeywindow?language=objc +func (w_ Window) MakeKeyWindow() { + objc.Call[objc.Void](w_, objc.Sel("makeKeyWindow")) } -// Sets the window’s frame rectangle by reading the rectangle data stored under a given name from the defaults system. Can operate on non-resizable windows. [Full Topic] +// This action method dispatches mouse and keyboard events the global application object sends to the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419226-setframeusingname?language=objc -func (w_ Window) SetFrameUsingNameForce(name WindowFrameAutosaveName, force bool) bool { - rv := objc.Call[bool](w_, objc.Sel("setFrameUsingName:force:"), name, force) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419228-sendevent?language=objc +func (w_ Window) SendEvent(event IEvent) { + objc.Call[objc.Void](w_, objc.Sel("sendEvent:"), event) } -// Removes the window from the screen. [Full Topic] +// Disables the default button cell’s key equivalent, so it doesn’t perform a click when the user presses Return (or Enter). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419662-close?language=objc -func (w_ Window) Close() { - objc.Call[objc.Void](w_, objc.Sel("close")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419242-disablekeyequivalentfordefaultbu?language=objc +func (w_ Window) DisableKeyEquivalentForDefaultButtonCell() { + objc.Call[objc.Void](w_, objc.Sel("disableKeyEquivalentForDefaultButtonCell")) } -// Returns a new instance of a given standard window button, sized appropriately for a given window style. [Full Topic] +// Returns the window numbers for all visible windows satisfying the specified options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419173-standardwindowbutton?language=objc -func (wc _WindowClass) StandardWindowButtonForStyleMask(b WindowButton, styleMask WindowStyleMask) Button { - rv := objc.Call[Button](wc, objc.Sel("standardWindowButton:forStyleMask:"), b, styleMask) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419678-windownumberswithoptions?language=objc +func (wc _WindowClass) WindowNumbersWithOptions(options WindowNumberListOptions) []foundation.Number { + rv := objc.Call[[]foundation.Number](wc, objc.Sel("windowNumbersWithOptions:"), options) return rv } -// Returns a new instance of a given standard window button, sized appropriately for a given window style. [Full Topic] +// Returns the window numbers for all visible windows satisfying the specified options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419173-standardwindowbutton?language=objc -func Window_StandardWindowButtonForStyleMask(b WindowButton, styleMask WindowStyleMask) Button { - return WindowClass.StandardWindowButtonForStyleMask(b, styleMask) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419678-windownumberswithoptions?language=objc +func Window_WindowNumbersWithOptions(options WindowNumberListOptions) []foundation.Number { + return WindowClass.WindowNumbersWithOptions(options) } -// Makes the window the key window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419368-makekeywindow?language=objc -func (w_ Window) MakeKeyWindow() { - objc.Call[objc.Void](w_, objc.Sel("makeKeyWindow")) +// Invalidates all cursor rectangles in the window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419269-discardcursorrects?language=objc +func (w_ Window) DiscardCursorRects() { + objc.Call[objc.Void](w_, objc.Sel("discardCursorRects")) } -// Searches for a candidate next key view and, if it finds one, tries to make it the first responder. [Full Topic] +// Converts a point from the window’s coordinate system to its pixel-aligned backing store coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419715-selectnextkeyview?language=objc -func (w_ Window) SelectNextKeyView(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("selectNextKeyView:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2967181-convertpointtobacking?language=objc +func (w_ Window) ConvertPointToBacking(point foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](w_, objc.Sel("convertPointToBacking:"), point) + return rv } // Positions the bottom-left corner of the window’s frame rectangle at a given point in screen coordinates. [Full Topic] @@ -613,25 +454,25 @@ func (w_ Window) SetFrameOrigin(point foundation.Point) { objc.Call[objc.Void](w_, objc.Sel("setFrameOrigin:"), point) } -// Sets the origin and size of the window’s frame rectangle according to a given frame rectangle, thereby setting its position and size onscreen. [Full Topic] +// Reenables cursor rectangle management within the window after a disableCursorRects message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419753-setframe?language=objc -func (w_ Window) SetFrameDisplay(frameRect foundation.Rect, flag bool) { - objc.Call[objc.Void](w_, objc.Sel("setFrame:display:"), frameRect, flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419202-enablecursorrects?language=objc +func (w_ Window) EnableCursorRects() { + objc.Call[objc.Void](w_, objc.Sel("enableCursorRects")) } -// Resigns the window’s key window status. [Full Topic] +// Moves the window to the front of its level, even if its application isn’t active, without changing either the key window or the main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419047-resignkeywindow?language=objc -func (w_ Window) ResignKeyWindow() { - objc.Call[objc.Void](w_, objc.Sel("resignKeyWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419444-orderfrontregardless?language=objc +func (w_ Window) OrderFrontRegardless() { + objc.Call[objc.Void](w_, objc.Sel("orderFrontRegardless")) } -// Positions the window’s top-left to a given point. [Full Topic] +// Converts a rectangle from its pixel-aligned backing store coordinate system to the window’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419392-cascadetopleftfrompoint?language=objc -func (w_ Window) CascadeTopLeftFromPoint(topLeftPoint foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](w_, objc.Sel("cascadeTopLeftFromPoint:"), topLeftPoint) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419273-convertrectfrombacking?language=objc +func (w_ Window) ConvertRectFromBacking(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](w_, objc.Sel("convertRectFromBacking:"), rect) return rv } @@ -642,48 +483,55 @@ func (w_ Window) SetContentSize(size foundation.Size) { objc.Call[objc.Void](w_, objc.Sel("setContentSize:"), size) } -// Informs the window that it has become the main window. [Full Topic] +// Indicates whether the window calculates the thickness of a given border automatically. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419084-becomemainwindow?language=objc -func (w_ Window) BecomeMainWindow() { - objc.Call[objc.Void](w_, objc.Sel("becomeMainWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419356-autorecalculatescontentborderthi?language=objc +func (w_ Window) AutorecalculatesContentBorderThicknessForEdge(edge foundation.RectEdge) bool { + rv := objc.Call[bool](w_, objc.Sel("autorecalculatesContentBorderThicknessForEdge:"), edge) + return rv } -// Returns the frame rectangle used by a window with a given content rectangle and window style. [Full Topic] +// Sets the window’s frame rectangle from a given string representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419372-framerectforcontentrect?language=objc -func (wc _WindowClass) FrameRectForContentRectStyleMask(cRect foundation.Rect, style WindowStyleMask) foundation.Rect { - rv := objc.Call[foundation.Rect](wc, objc.Sel("frameRectForContentRect:styleMask:"), cRect, style) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419759-setframefromstring?language=objc +func (w_ Window) SetFrameFromString(string_ WindowPersistableFrameDescriptor) { + objc.Call[objc.Void](w_, objc.Sel("setFrameFromString:"), string_) } -// Returns the frame rectangle used by a window with a given content rectangle and window style. [Full Topic] +// Gives key view status to the view that precedes the given view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419372-framerectforcontentrect?language=objc -func Window_FrameRectForContentRectStyleMask(cRect foundation.Rect, style WindowStyleMask) foundation.Rect { - return WindowClass.FrameRectForContentRectStyleMask(cRect, style) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419757-selectkeyviewprecedingview?language=objc +func (w_ Window) SelectKeyViewPrecedingView(view IView) { + objc.Call[objc.Void](w_, objc.Sel("selectKeyViewPrecedingView:"), view) } -// Sets the part of the window that stays stationary during constraint-based layout. [Full Topic] +// Begins a dragging session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526985-setanchorattribute?language=objc -func (w_ Window) SetAnchorAttributeForOrientation(attr LayoutAttribute, orientation LayoutConstraintOrientation) { - objc.Call[objc.Void](w_, objc.Sel("setAnchorAttribute:forOrientation:"), attr, orientation) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419224-dragimage?language=objc +func (w_ Window) DragImageAtOffsetEventPasteboardSourceSlideBack(image IImage, baseLocation foundation.Point, initialOffset foundation.Size, event IEvent, pboard IPasteboard, sourceObj objc.IObject, slideFlag bool) { + objc.Call[objc.Void](w_, objc.Sel("dragImage:at:offset:event:pasteboard:source:slideBack:"), image, baseLocation, initialOffset, event, pboard, sourceObj, slideFlag) } -// Sets the window’s zoomed state to the value you specify. [Full Topic] +// Moves the tab to a new containing window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449589-setiszoomed?language=objc -func (w_ Window) SetIsZoomed(flag bool) { - objc.Call[objc.Void](w_, objc.Sel("setIsZoomed:"), flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644410-movetabtonewwindow?language=objc +func (w_ Window) MoveTabToNewWindow(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("moveTabToNewWindow:"), sender) + return rv } -// Indicates the thickness of a given border of the window. [Full Topic] +// Removes the window from the screen list, which hides the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419775-contentborderthicknessforedge?language=objc -func (w_ Window) ContentBorderThicknessForEdge(edge foundation.RectEdge) float64 { - rv := objc.Call[float64](w_, objc.Sel("contentBorderThicknessForEdge:"), edge) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419660-orderout?language=objc +func (w_ Window) OrderOut(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("orderOut:"), sender) +} + +// Marks the key view loop as “dirty” and in need of recalculation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419350-recalculatekeyviewloop?language=objc +func (w_ Window) RecalculateKeyViewLoop() { + objc.Call[objc.Void](w_, objc.Sel("recalculateKeyViewLoop")) } // Displays a visual representation of the supplied constraints in the window. [Full Topic] @@ -693,27 +541,34 @@ func (w_ Window) VisualizeConstraints(constraints []ILayoutConstraint) { objc.Call[objc.Void](w_, objc.Sel("visualizeConstraints:"), constraints) } -// A Boolean value that indicates if the window and its screen use a color space that can represent the specified display gamut. [Full Topic] +// Specifies the thickness of a given border of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2138278-canrepresentdisplaygamut?language=objc -func (w_ Window) CanRepresentDisplayGamut(displayGamut DisplayGamut) bool { - rv := objc.Call[bool](w_, objc.Sel("canRepresentDisplayGamut:"), displayGamut) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419541-setcontentborderthickness?language=objc +func (w_ Window) SetContentBorderThicknessForEdge(thickness float64, edge foundation.RectEdge) { + objc.Call[objc.Void](w_, objc.Sel("setContentBorderThickness:forEdge:"), thickness, edge) } -// Shows or hides the tab bar. [Full Topic] +// Converts a rectangle to the screen coordinate system from the window’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644517-toggletabbar?language=objc -func (w_ Window) ToggleTabBar(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("toggleTabBar:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419286-convertrecttoscreen?language=objc +func (w_ Window) ConvertRectToScreen(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](w_, objc.Sel("convertRectToScreen:"), rect) return rv } -// Disables the window’s screen updates until the window is flushed. [Full Topic] +// Clears the window’s cursor rectangles and the cursor rectangles of the NSView objects in its view hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419483-disablescreenupdatesuntilflush?language=objc -func (w_ Window) DisableScreenUpdatesUntilFlush() { - objc.Call[objc.Void](w_, objc.Sel("disableScreenUpdatesUntilFlush")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419464-resetcursorrects?language=objc +func (w_ Window) ResetCursorRects() { + objc.Call[objc.Void](w_, objc.Sel("resetCursorRects")) +} + +// Returns the part of the window that stays stationary during constraint-based layout. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526957-anchorattributefororientation?language=objc +func (w_ Window) AnchorAttributeForOrientation(orientation LayoutConstraintOrientation) LayoutAttribute { + rv := objc.Call[LayoutAttribute](w_, objc.Sel("anchorAttributeForOrientation:"), orientation) + return rv } // Updates the constraints based on changes to views in the window since the last layout. [Full Topic] @@ -723,14 +578,21 @@ func (w_ Window) UpdateConstraintsIfNeeded() { objc.Call[objc.Void](w_, objc.Sel("updateConstraintsIfNeeded")) } -// Converts a rectangle to the screen coordinate system from the window’s coordinate system. [Full Topic] +// Handles the AppleScript command to save the window (and its associated document, if any). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419286-convertrecttoscreen?language=objc -func (w_ Window) ConvertRectToScreen(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("convertRectToScreen:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449591-handlesavescriptcommand?language=objc +func (w_ Window) HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("handleSaveScriptCommand:"), command) return rv } +// Removes the window from the screen. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419662-close?language=objc +func (w_ Window) Close() { + objc.Call[objc.Void](w_, objc.Sel("close")) +} + // Returns EPS data that draws the region of the window within a given rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419128-datawithepsinsiderect?language=objc @@ -739,42 +601,41 @@ func (w_ Window) DataWithEPSInsideRect(rect foundation.Rect) []byte { return rv } -// Sets the window’s frame rectangle from a given string representation. [Full Topic] +// Shows or hides the tab bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419759-setframefromstring?language=objc -func (w_ Window) SetFrameFromString(string_ WindowPersistableFrameDescriptor) { - objc.Call[objc.Void](w_, objc.Sel("setFrameFromString:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644517-toggletabbar?language=objc +func (w_ Window) ToggleTabBar(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("toggleTabBar:"), sender) + return rv } -// Enables snapshot restoration. [Full Topic] +// Handles the AppleScript command to close the window (and its associated document, if any). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1525288-enablesnapshotrestoration?language=objc -func (w_ Window) EnableSnapshotRestoration() { - objc.Call[objc.Void](w_, objc.Sel("enableSnapshotRestoration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449581-handleclosescriptcommand?language=objc +func (w_ Window) HandleCloseScriptCommand(command foundation.ICloseCommand) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("handleCloseScriptCommand:"), command) + return rv } -// Specifies the duration of a smooth frame-size change. [Full Topic] +// Detaches a given child window from the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419655-animationresizetime?language=objc -func (w_ Window) AnimationResizeTime(newFrame foundation.Rect) foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](w_, objc.Sel("animationResizeTime:"), newFrame) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419063-removechildwindow?language=objc +func (w_ Window) RemoveChildWindow(childWin IWindow) { + objc.Call[objc.Void](w_, objc.Sel("removeChildWindow:"), childWin) } -// Converts a point to the screen coordinate system from the window’s coordinate system. [Full Topic] +// Makes the window the main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2967182-convertpointtoscreen?language=objc -func (w_ Window) ConvertPointToScreen(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](w_, objc.Sel("convertPointToScreen:"), point) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419271-makemainwindow?language=objc +func (w_ Window) MakeMainWindow() { + objc.Call[objc.Void](w_, objc.Sel("makeMainWindow")) } -// Returns the window’s frame rectangle with a given content rectangle. [Full Topic] +// Presents the toolbar customization user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419134-framerectforcontentrect?language=objc -func (w_ Window) FrameRectForContentRect(contentRect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("frameRectForContentRect:"), contentRect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419284-runtoolbarcustomizationpalette?language=objc +func (w_ Window) RunToolbarCustomizationPalette(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("runToolbarCustomizationPalette:"), sender) } // Resigns the window’s main window status. [Full Topic] @@ -784,122 +645,122 @@ func (w_ Window) ResignMainWindow() { objc.Call[objc.Void](w_, objc.Sel("resignMainWindow")) } -// Toggles the size and location of the window between its standard state (which the application provides as the best size to display the window’s data) and its user state (a new size and location the user may have set by moving or resizing the window). [Full Topic] +// Starts a document-modal session and presents—or queues for presentation—a sheet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419513-zoom?language=objc -func (w_ Window) Zoom(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("zoom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419653-beginsheet?language=objc +func (w_ Window) BeginSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) { + objc.Call[objc.Void](w_, objc.Sel("beginSheet:completionHandler:"), sheetWindow, handler) } -// Returns the window numbers for all visible windows satisfying the specified options. [Full Topic] +// Positions the window’s top-left to a given point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419678-windownumberswithoptions?language=objc -func (wc _WindowClass) WindowNumbersWithOptions(options WindowNumberListOptions) []foundation.Number { - rv := objc.Call[[]foundation.Number](wc, objc.Sel("windowNumbersWithOptions:"), options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419392-cascadetopleftfrompoint?language=objc +func (w_ Window) CascadeTopLeftFromPoint(topLeftPoint foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](w_, objc.Sel("cascadeTopLeftFromPoint:"), topLeftPoint) return rv } -// Returns the window numbers for all visible windows satisfying the specified options. [Full Topic] +// Forwards the message to the global application object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419678-windownumberswithoptions?language=objc -func Window_WindowNumbersWithOptions(options WindowNumberListOptions) []foundation.Number { - return WindowClass.WindowNumbersWithOptions(options) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419676-discardeventsmatchingmask?language=objc +func (w_ Window) DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) { + objc.Call[objc.Void](w_, objc.Sel("discardEventsMatchingMask:beforeEvent:"), mask, lastEvent) } -// Sets the window’s miniaturized state to the value you specify. [Full Topic] +// Disables the window’s screen updates until the window is flushed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449566-setisminiaturized?language=objc -func (w_ Window) SetIsMiniaturized(flag bool) { - objc.Call[objc.Void](w_, objc.Sel("setIsMiniaturized:"), flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419483-disablescreenupdatesuntilflush?language=objc +func (w_ Window) DisableScreenUpdatesUntilFlush() { + objc.Call[objc.Void](w_, objc.Sel("disableScreenUpdatesUntilFlush")) } -// Forwards the message to the global application object. [Full Topic] +// Converts a rectangle from the window’s coordinate system to its pixel-aligned backing store coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419721-nexteventmatchingmask?language=objc -func (w_ Window) NextEventMatchingMaskUntilDateInModeDequeue(mask EventMask, expiration foundation.IDate, mode foundation.RunLoopMode, deqFlag bool) Event { - rv := objc.Call[Event](w_, objc.Sel("nextEventMatchingMask:untilDate:inMode:dequeue:"), mask, expiration, mode, deqFlag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419260-convertrecttobacking?language=objc +func (w_ Window) ConvertRectToBacking(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](w_, objc.Sel("convertRectToBacking:"), rect) return rv } -// Moves the window to the front of its level, even if its application isn’t active, without changing either the key window or the main window. [Full Topic] +// Sets the origin and size of the window’s frame rectangle according to a given frame rectangle, thereby setting its position and size onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419444-orderfrontregardless?language=objc -func (w_ Window) OrderFrontRegardless() { - objc.Call[objc.Void](w_, objc.Sel("orderFrontRegardless")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419753-setframe?language=objc +func (w_ Window) SetFrameDisplay(frameRect foundation.Rect, flag bool) { + objc.Call[objc.Void](w_, objc.Sel("setFrame:display:"), frameRect, flag) } -// Handles the AppleScript command to close the window (and its associated document, if any). [Full Topic] +// Specifies the duration of a smooth frame-size change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449581-handleclosescriptcommand?language=objc -func (w_ Window) HandleCloseScriptCommand(command foundation.ICloseCommand) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("handleCloseScriptCommand:"), command) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419655-animationresizetime?language=objc +func (w_ Window) AnimationResizeTime(newFrame foundation.Rect) foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](w_, objc.Sel("animationResizeTime:"), newFrame) return rv } -// Tracks events that match the specified mask using the specified tracking handler until the tracking handler explicitly terminates tracking. [Full Topic] +// Gives key view status to the view that follows the given view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419727-trackeventsmatchingmask?language=objc -func (w_ Window) TrackEventsMatchingMaskTimeoutModeHandler(mask EventMask, timeout foundation.TimeInterval, mode foundation.RunLoopMode, trackingHandler func(event Event, stop *bool)) { - objc.Call[objc.Void](w_, objc.Sel("trackEventsMatchingMask:timeout:mode:handler:"), mask, timeout, mode, trackingHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419633-selectkeyviewfollowingview?language=objc +func (w_ Window) SelectKeyViewFollowingView(view IView) { + objc.Call[objc.Void](w_, objc.Sel("selectKeyViewFollowingView:"), view) } -// Sets a given path as the window’s title, formatting it as a file-system path, and records this path as the window’s associated file. [Full Topic] +// Registers a set of pasteboard types that the window accepts as the destination of an image-dragging session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419192-settitlewithrepresentedfilename?language=objc -func (w_ Window) SetTitleWithRepresentedFilename(filename string) { - objc.Call[objc.Void](w_, objc.Sel("setTitleWithRepresentedFilename:"), filename) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419140-registerfordraggedtypes?language=objc +func (w_ Window) RegisterForDraggedTypes(newTypes []PasteboardType) { + objc.Call[objc.Void](w_, objc.Sel("registerForDraggedTypes:"), newTypes) } -// Sets the name AppKit uses to automatically save the window’s frame rectangle data in the defaults system. [Full Topic] +// Sets the part of the window that stays stationary during constraint-based layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419509-setframeautosavename?language=objc -func (w_ Window) SetFrameAutosaveName(name WindowFrameAutosaveName) bool { - rv := objc.Call[bool](w_, objc.Sel("setFrameAutosaveName:"), name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526985-setanchorattribute?language=objc +func (w_ Window) SetAnchorAttributeForOrientation(attr LayoutAttribute, orientation LayoutConstraintOrientation) { + objc.Call[objc.Void](w_, objc.Sel("setAnchorAttribute:forOrientation:"), attr, orientation) } -// Returns the content rectangle used by a window with a given frame rectangle and window style. [Full Topic] +// Indicates the thickness of a given border of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419586-contentrectforframerect?language=objc -func (wc _WindowClass) ContentRectForFrameRectStyleMask(fRect foundation.Rect, style WindowStyleMask) foundation.Rect { - rv := objc.Call[foundation.Rect](wc, objc.Sel("contentRectForFrameRect:styleMask:"), fRect, style) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419775-contentborderthicknessforedge?language=objc +func (w_ Window) ContentBorderThicknessForEdge(edge foundation.RectEdge) float64 { + rv := objc.Call[float64](w_, objc.Sel("contentBorderThicknessForEdge:"), edge) return rv } -// Returns the content rectangle used by a window with a given frame rectangle and window style. [Full Topic] +// Moves the window to the back of its level in the screen list, without changing either the key window or the main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419586-contentrectforframerect?language=objc -func Window_ContentRectForFrameRectStyleMask(fRect foundation.Rect, style WindowStyleMask) foundation.Rect { - return WindowClass.ContentRectForFrameRectStyleMask(fRect, style) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419204-orderback?language=objc +func (w_ Window) OrderBack(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("orderBack:"), sender) } -// Modifies and returns a frame rectangle so that its top edge lies on a specific screen. [Full Topic] +// Tracks events that match the specified mask using the specified tracking handler until the tracking handler explicitly terminates tracking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419779-constrainframerect?language=objc -func (w_ Window) ConstrainFrameRectToScreen(frameRect foundation.Rect, screen IScreen) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("constrainFrameRect:toScreen:"), frameRect, screen) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419727-trackeventsmatchingmask?language=objc +func (w_ Window) TrackEventsMatchingMaskTimeoutModeHandler(mask EventMask, timeout foundation.TimeInterval, mode foundation.RunLoopMode, trackingHandler func(event Event, stop *bool)) { + objc.Call[objc.Void](w_, objc.Sel("trackEventsMatchingMask:timeout:mode:handler:"), mask, timeout, mode, trackingHandler) } -// Sets a Boolean value that indicates whether the window’s depth limit can change to match the depth of the screen it’s on. [Full Topic] +// Returns a Cocoa window created from a Carbon window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419473-setdynamicdepthlimit?language=objc -func (w_ Window) SetDynamicDepthLimit(flag bool) { - objc.Call[objc.Void](w_, objc.Sel("setDynamicDepthLimit:"), flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419446-initwithwindowref?language=objc +func (w_ Window) InitWithWindowRef(windowRef unsafe.Pointer) Window { + rv := objc.Call[Window](w_, objc.Sel("initWithWindowRef:"), windowRef) + return rv } -// Forwards the message to the global application object. [Full Topic] +// Invalidates the window shadow so that it is recomputed based on the current window shape. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419676-discardeventsmatchingmask?language=objc -func (w_ Window) DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) { - objc.Call[objc.Void](w_, objc.Sel("discardEventsMatchingMask:beforeEvent:"), mask, lastEvent) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419529-invalidateshadow?language=objc +func (w_ Window) InvalidateShadow() { + objc.Call[objc.Void](w_, objc.Sel("invalidateShadow")) } -// Begins a dragging session. [Full Topic] +// Handles the AppleScript command to print the contents of the window (or its associated document, if any). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419224-dragimage?language=objc -func (w_ Window) DragImageAtOffsetEventPasteboardSourceSlideBack(image IImage, baseLocation foundation.Point, initialOffset foundation.Size, event IEvent, pboard IPasteboard, sourceObj objc.IObject, slideFlag bool) { - objc.Call[objc.Void](w_, objc.Sel("dragImage:at:offset:event:pasteboard:source:slideBack:"), image, baseLocation, initialOffset, event, pboard, sourceObj, slideFlag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449585-handleprintscriptcommand?language=objc +func (w_ Window) HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("handlePrintScriptCommand:"), command) + return rv } // Passes a display message down the window’s view hierarchy, thus redrawing all views within the window. [Full Topic] @@ -909,120 +770,135 @@ func (w_ Window) Display() { objc.Call[objc.Void](w_, objc.Sel("display")) } -// Presents the toolbar customization user interface. [Full Topic] +// Simulates the user clicking the minimize button by momentarily highlighting the button, then minimizing the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419284-runtoolbarcustomizationpalette?language=objc -func (w_ Window) RunToolbarCustomizationPalette(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("runToolbarCustomizationPalette:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419749-performminiaturize?language=objc +func (w_ Window) PerformMiniaturize(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("performMiniaturize:"), sender) } -// Marks the key view loop as “dirty” and in need of recalculation. [Full Topic] +// Disables all cursor rectangle management within the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419350-recalculatekeyviewloop?language=objc -func (w_ Window) RecalculateKeyViewLoop() { - objc.Call[objc.Void](w_, objc.Sel("recalculateKeyViewLoop")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419639-disablecursorrects?language=objc +func (w_ Window) DisableCursorRects() { + objc.Call[objc.Void](w_, objc.Sel("disableCursorRects")) } -// Invalidates all cursor rectangles in the window. [Full Topic] +// Sets a Boolean value that indicates whether the window’s depth limit can change to match the depth of the screen it’s on. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419269-discardcursorrects?language=objc -func (w_ Window) DiscardCursorRects() { - objc.Call[objc.Void](w_, objc.Sel("discardCursorRects")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419473-setdynamicdepthlimit?language=objc +func (w_ Window) SetDynamicDepthLimit(flag bool) { + objc.Call[objc.Void](w_, objc.Sel("setDynamicDepthLimit:"), flag) } -// Handles the AppleScript command to print the contents of the window (or its associated document, if any). [Full Topic] +// Returns the content rectangle used by a window with a given frame rectangle and window style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449585-handleprintscriptcommand?language=objc -func (w_ Window) HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("handlePrintScriptCommand:"), command) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419586-contentrectforframerect?language=objc +func (wc _WindowClass) ContentRectForFrameRectStyleMask(fRect foundation.Rect, style WindowStyleMask) foundation.Rect { + rv := objc.Call[foundation.Rect](wc, objc.Sel("contentRectForFrameRect:styleMask:"), fRect, style) return rv } -// Ends a document-modal session and dismisses the specified sheet. [Full Topic] +// Returns the content rectangle used by a window with a given frame rectangle and window style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419318-endsheet?language=objc -func (w_ Window) EndSheet(sheetWindow IWindow) { - objc.Call[objc.Void](w_, objc.Sel("endSheet:"), sheetWindow) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419586-contentrectforframerect?language=objc +func Window_ContentRectForFrameRectStyleMask(fRect foundation.Rect, style WindowStyleMask) foundation.Rect { + return WindowClass.ContentRectForFrameRectStyleMask(fRect, style) } -// This action method simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window. [Full Topic] +// Removes the window from the screen list and displays the minimized window in the Dock. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419450-performzoom?language=objc -func (w_ Window) PerformZoom(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("performZoom:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419426-miniaturize?language=objc +func (w_ Window) Miniaturize(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("miniaturize:"), sender) } -// Moves the tab to a new containing window. [Full Topic] +// Selects the next tab in the tab group in the trailing direction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644410-movetabtonewwindow?language=objc -func (w_ Window) MoveTabToNewWindow(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("moveTabToNewWindow:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644693-selectnexttab?language=objc +func (w_ Window) SelectNextTab(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("selectNextTab:"), sender) return rv } -// Returns the minimum width a window’s frame rectangle must have for it to display a title, with a given window style. [Full Topic] +// Adds the specified title bar accessory view controller to the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419294-minframewidthwithtitle?language=objc -func (wc _WindowClass) MinFrameWidthWithTitleStyleMask(title string, style WindowStyleMask) float64 { - rv := objc.Call[float64](wc, objc.Sel("minFrameWidthWithTitle:styleMask:"), title, style) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419382-addtitlebaraccessoryviewcontroll?language=objc +func (w_ Window) AddTitlebarAccessoryViewController(childViewController ITitlebarAccessoryViewController) { + objc.Call[objc.Void](w_, objc.Sel("addTitlebarAccessoryViewController:"), childViewController) +} + +// Attempts to make a given responder the first responder for the window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419366-makefirstresponder?language=objc +func (w_ Window) MakeFirstResponder(responder IResponder) bool { + rv := objc.Call[bool](w_, objc.Sel("makeFirstResponder:"), responder) return rv } -// Returns the minimum width a window’s frame rectangle must have for it to display a title, with a given window style. [Full Topic] +// Sets the window’s zoomed state to the value you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419294-minframewidthwithtitle?language=objc -func Window_MinFrameWidthWithTitleStyleMask(title string, style WindowStyleMask) float64 { - return WindowClass.MinFrameWidthWithTitleStyleMask(title, style) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449589-setiszoomed?language=objc +func (w_ Window) SetIsZoomed(flag bool) { + objc.Call[objc.Void](w_, objc.Sel("setIsZoomed:"), flag) } -// Registers a set of pasteboard types that the window accepts as the destination of an image-dragging session. [Full Topic] +// Starts a document-modal session and presents the specified critical sheet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419140-registerfordraggedtypes?language=objc -func (w_ Window) RegisterForDraggedTypes(newTypes []PasteboardType) { - objc.Call[objc.Void](w_, objc.Sel("registerForDraggedTypes:"), newTypes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419198-begincriticalsheet?language=objc +func (w_ Window) BeginCriticalSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) { + objc.Call[objc.Void](w_, objc.Sel("beginCriticalSheet:completionHandler:"), sheetWindow, handler) +} + +// Takes the window into or out of fullscreen mode, [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419527-togglefullscreen?language=objc +func (w_ Window) ToggleFullScreen(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("toggleFullScreen:"), sender) } -// Returns the next event matching a given mask. [Full Topic] +// Converts a point from its pixel-aligned backing store coordinate system to the window’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419304-nexteventmatchingmask?language=objc -func (w_ Window) NextEventMatchingMask(mask EventMask) Event { - rv := objc.Call[Event](w_, objc.Sel("nextEventMatchingMask:"), mask) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2967179-convertpointfrombacking?language=objc +func (w_ Window) ConvertPointFromBacking(point foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](w_, objc.Sel("convertPointFromBacking:"), point) return rv } -// Updates the window. [Full Topic] +// Repositions the window’s window device in the window server’s screen list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419577-update?language=objc -func (w_ Window) Update() { - objc.Call[objc.Void](w_, objc.Sel("update")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419672-orderwindow?language=objc +func (w_ Window) OrderWindowRelativeTo(place WindowOrderingMode, otherWin int) { + objc.Call[objc.Void](w_, objc.Sel("orderWindow:relativeTo:"), place, otherWin) } -// Clears the window’s cursor rectangles and the cursor rectangles of the NSView objects in its view hierarchy. [Full Topic] +// Runs the Print panel, and if the user chooses an option other than canceling, prints the window (its frame view and all subviews). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419464-resetcursorrects?language=objc -func (w_ Window) ResetCursorRects() { - objc.Call[objc.Void](w_, objc.Sel("resetCursorRects")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419767-print?language=objc +func (w_ Window) Print(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("print:"), sender) } -// Adds a given window as a child window of the window. [Full Topic] +// Returns the window’s field editor, creating it if requested. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419152-addchildwindow?language=objc -func (w_ Window) AddChildWindowOrdered(childWin IWindow, place WindowOrderingMode) { - objc.Call[objc.Void](w_, objc.Sel("addChildWindow:ordered:"), childWin, place) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419647-fieldeditor?language=objc +func (w_ Window) FieldEditorForObject(createFlag bool, object objc.IObject) Text { + rv := objc.Call[Text](w_, objc.Sel("fieldEditor:forObject:"), createFlag, object) + return rv } -// Invalidates the window shadow so that it is recomputed based on the current window shape. [Full Topic] +// Removes the view controller at the specified index from the window’s array of title bar accessory view controllers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419529-invalidateshadow?language=objc -func (w_ Window) InvalidateShadow() { - objc.Call[objc.Void](w_, objc.Sel("invalidateShadow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419643-removetitlebaraccessoryviewcontr?language=objc +func (w_ Window) RemoveTitlebarAccessoryViewControllerAtIndex(index int) { + objc.Call[objc.Void](w_, objc.Sel("removeTitlebarAccessoryViewControllerAtIndex:"), index) } -// Passes a display message down the window’s view hierarchy, thus redrawing all views that need displaying. [Full Topic] +// Specifies whether the window calculates the thickness of a given border automatically. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419096-displayifneeded?language=objc -func (w_ Window) DisplayIfNeeded() { - objc.Call[objc.Void](w_, objc.Sel("displayIfNeeded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419218-setautorecalculatescontentborder?language=objc +func (w_ Window) SetAutorecalculatesContentBorderThicknessForEdge(flag bool, edge foundation.RectEdge) { + objc.Call[objc.Void](w_, objc.Sel("setAutorecalculatesContentBorderThickness:forEdge:"), flag, edge) } // Selects the previous tab in the tab group in the leading direction. [Full Topic] @@ -1033,91 +909,70 @@ func (w_ Window) SelectPreviousTab(sender objc.IObject) objc.Object { return rv } -// Informs the window that it has become the key window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419338-becomekeywindow?language=objc -func (w_ Window) BecomeKeyWindow() { - objc.Call[objc.Void](w_, objc.Sel("becomeKeyWindow")) -} - -// Converts a point from the window’s coordinate system to its pixel-aligned backing store coordinate system. [Full Topic] +// Searches for a candidate next key view and, if it finds one, tries to make it the first responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2967181-convertpointtobacking?language=objc -func (w_ Window) ConvertPointToBacking(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](w_, objc.Sel("convertPointToBacking:"), point) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419715-selectnextkeyview?language=objc +func (w_ Window) SelectNextKeyView(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("selectNextKeyView:"), sender) } -// Unregisters the window as a possible destination for dragging operations. [Full Topic] +// Sets a given path as the window’s title, formatting it as a file-system path, and records this path as the window’s associated file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419456-unregisterdraggedtypes?language=objc -func (w_ Window) UnregisterDraggedTypes() { - objc.Call[objc.Void](w_, objc.Sel("unregisterDraggedTypes")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419192-settitlewithrepresentedfilename?language=objc +func (w_ Window) SetTitleWithRepresentedFilename(filename string) { + objc.Call[objc.Void](w_, objc.Sel("setTitleWithRepresentedFilename:"), filename) } -// Simulates the user clicking the minimize button by momentarily highlighting the button, then minimizing the window. [Full Topic] +// Moves the window to the front of the screen list, within its level, and makes it the key window; that is, it shows the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419749-performminiaturize?language=objc -func (w_ Window) PerformMiniaturize(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("performMiniaturize:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419208-makekeyandorderfront?language=objc +func (w_ Window) MakeKeyAndOrderFront(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("makeKeyAndOrderFront:"), sender) } -// Converts a rectangle from the window’s coordinate system to its pixel-aligned backing store coordinate system. [Full Topic] +// Returns the number of the frontmost window that would be hit by a mouse-down at the specified screen location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419260-convertrecttobacking?language=objc -func (w_ Window) ConvertRectToBacking(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("convertRectToBacking:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419210-windownumberatpoint?language=objc +func (wc _WindowClass) WindowNumberAtPointBelowWindowWithWindowNumber(point foundation.Point, windowNumber int) int { + rv := objc.Call[int](wc, objc.Sel("windowNumberAtPoint:belowWindowWithWindowNumber:"), point, windowNumber) return rv } -// Updates the layout of views in the window based on the current views and constraints. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526910-layoutifneeded?language=objc -func (w_ Window) LayoutIfNeeded() { - objc.Call[objc.Void](w_, objc.Sel("layoutIfNeeded")) -} - -// Gives key view status to the view that follows the given view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419633-selectkeyviewfollowingview?language=objc -func (w_ Window) SelectKeyViewFollowingView(view IView) { - objc.Call[objc.Void](w_, objc.Sel("selectKeyViewFollowingView:"), view) -} - -// Specifies the thickness of a given border of the window. [Full Topic] +// Returns the number of the frontmost window that would be hit by a mouse-down at the specified screen location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419541-setcontentborderthickness?language=objc -func (w_ Window) SetContentBorderThicknessForEdge(thickness float64, edge foundation.RectEdge) { - objc.Call[objc.Void](w_, objc.Sel("setContentBorderThickness:forEdge:"), thickness, edge) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419210-windownumberatpoint?language=objc +func Window_WindowNumberAtPointBelowWindowWithWindowNumber(point foundation.Point, windowNumber int) int { + return WindowClass.WindowNumberAtPointBelowWindowWithWindowNumber(point, windowNumber) } -// Returns the window button of a given window button kind in the window’s view hierarchy. [Full Topic] +// Sets the name AppKit uses to automatically save the window’s frame rectangle data in the defaults system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419491-standardwindowbutton?language=objc -func (w_ Window) StandardWindowButton(b WindowButton) Button { - rv := objc.Call[Button](w_, objc.Sel("standardWindowButton:"), b) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419509-setframeautosavename?language=objc +func (w_ Window) SetFrameAutosaveName(name WindowFrameAutosaveName) bool { + rv := objc.Call[bool](w_, objc.Sel("setFrameAutosaveName:"), name) return rv } -// Sets the origin and size of the window’s frame rectangle, with optional animation, according to a given frame rectangle, thereby setting its position and size onscreen. [Full Topic] +// Searches for a candidate previous key view and, if it finds one, tries to make it the first responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419519-setframe?language=objc -func (w_ Window) SetFrameDisplayAnimate(frameRect foundation.Rect, displayFlag bool, animateFlag bool) { - objc.Call[objc.Void](w_, objc.Sel("setFrame:display:animate:"), frameRect, displayFlag, animateFlag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419110-selectpreviouskeyview?language=objc +func (w_ Window) SelectPreviousKeyView(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("selectPreviousKeyView:"), sender) } -// Starts a document-modal session and presents—or queues for presentation—a sheet. [Full Topic] +// Forwards the message to the global application object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419653-beginsheet?language=objc -func (w_ Window) BeginSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) { - objc.Call[objc.Void](w_, objc.Sel("beginSheet:completionHandler:"), sheetWindow, handler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419376-postevent?language=objc +func (w_ Window) PostEventAtStart(event IEvent, flag bool) { + objc.Call[objc.Void](w_, objc.Sel("postEvent:atStart:"), event, flag) } -// Gives key view status to the view that precedes the given view. [Full Topic] +// Shows or hides the tab overview. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419757-selectkeyviewprecedingview?language=objc -func (w_ Window) SelectKeyViewPrecedingView(view IView) { - objc.Call[objc.Void](w_, objc.Sel("selectKeyViewPrecedingView:"), view) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2870175-toggletaboverview?language=objc +func (w_ Window) ToggleTabOverview(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("toggleTabOverview:"), sender) + return rv } // Moves the window to the front of its level in the screen list, without changing either the key window or the main window. [Full Topic] @@ -1127,63 +982,84 @@ func (w_ Window) OrderFront(sender objc.IObject) { objc.Call[objc.Void](w_, objc.Sel("orderFront:"), sender) } -// Returns a Cocoa window created from a Carbon window. [Full Topic] +// Resigns the window’s key window status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419446-initwithwindowref?language=objc -func (w_ Window) InitWithWindowRef(windowRef unsafe.Pointer) Window { - rv := objc.Call[Window](w_, objc.Sel("initWithWindowRef:"), windowRef) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419047-resignkeywindow?language=objc +func (w_ Window) ResignKeyWindow() { + objc.Call[objc.Void](w_, objc.Sel("resignKeyWindow")) +} + +// Returns PDF data that draws the region of the window within a given rectangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419418-datawithpdfinsiderect?language=objc +func (w_ Window) DataWithPDFInsideRect(rect foundation.Rect) []byte { + rv := objc.Call[[]byte](w_, objc.Sel("dataWithPDFInsideRect:"), rect) return rv } -// Handles the AppleScript command to save the window (and its associated document, if any). [Full Topic] +// Forces the field editor to give up its first responder status and prepares it for its next assignment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449591-handlesavescriptcommand?language=objc -func (w_ Window) HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("handleSaveScriptCommand:"), command) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419469-endeditingfor?language=objc +func (w_ Window) EndEditingFor(object objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("endEditingFor:"), object) +} + +// A Boolean value that indicates if the window and its screen use a color space that can represent the specified display gamut. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2138278-canrepresentdisplaygamut?language=objc +func (w_ Window) CanRepresentDisplayGamut(displayGamut DisplayGamut) bool { + rv := objc.Call[bool](w_, objc.Sel("canRepresentDisplayGamut:"), displayGamut) return rv } -// Starts a document-modal session and presents the specified critical sheet. [Full Topic] +// Informs the window that it has become the key window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419198-begincriticalsheet?language=objc -func (w_ Window) BeginCriticalSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) { - objc.Call[objc.Void](w_, objc.Sel("beginCriticalSheet:completionHandler:"), sheetWindow, handler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419338-becomekeywindow?language=objc +func (w_ Window) BecomeKeyWindow() { + objc.Call[objc.Void](w_, objc.Sel("becomeKeyWindow")) } -// Saves the window’s frame rectangle in the user defaults system under a given name. [Full Topic] +// Enables snapshot restoration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419290-saveframeusingname?language=objc -func (w_ Window) SaveFrameUsingName(name WindowFrameAutosaveName) { - objc.Call[objc.Void](w_, objc.Sel("saveFrameUsingName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1525288-enablesnapshotrestoration?language=objc +func (w_ Window) EnableSnapshotRestoration() { + objc.Call[objc.Void](w_, objc.Sel("enableSnapshotRestoration")) } -// Converts a rectangle from its pixel-aligned backing store coordinate system to the window’s coordinate system. [Full Topic] +// Disables snapshot restoration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419273-convertrectfrombacking?language=objc -func (w_ Window) ConvertRectFromBacking(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("convertRectFromBacking:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526239-disablesnapshotrestoration?language=objc +func (w_ Window) DisableSnapshotRestoration() { + objc.Call[objc.Void](w_, objc.Sel("disableSnapshotRestoration")) +} + +// Forwards the message to the global application object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419721-nexteventmatchingmask?language=objc +func (w_ Window) NextEventMatchingMaskUntilDateInModeDequeue(mask EventMask, expiration foundation.IDate, mode foundation.RunLoopMode, deqFlag bool) Event { + rv := objc.Call[Event](w_, objc.Sel("nextEventMatchingMask:untilDate:inMode:dequeue:"), mask, expiration, mode, deqFlag) return rv } -// Forces the field editor to give up its first responder status and prepares it for its next assignment. [Full Topic] +// De-minimizes the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419469-endeditingfor?language=objc -func (w_ Window) EndEditingFor(object objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("endEditingFor:"), object) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419334-deminiaturize?language=objc +func (w_ Window) Deminiaturize(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("deminiaturize:"), sender) } -// Forwards the message to the global application object. [Full Topic] +// Unregisters the window as a possible destination for dragging operations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419376-postevent?language=objc -func (w_ Window) PostEventAtStart(event IEvent, flag bool) { - objc.Call[objc.Void](w_, objc.Sel("postEvent:atStart:"), event, flag) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419456-unregisterdraggedtypes?language=objc +func (w_ Window) UnregisterDraggedTypes() { + objc.Call[objc.Void](w_, objc.Sel("unregisterDraggedTypes")) } -// Returns the window’s content rectangle with a given frame rectangle. [Full Topic] +// Sets the window’s frame rectangle by reading the rectangle data stored under a given name from the defaults system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419108-contentrectforframerect?language=objc -func (w_ Window) ContentRectForFrameRect(frameRect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("contentRectForFrameRect:"), frameRect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419723-setframeusingname?language=objc +func (w_ Window) SetFrameUsingName(name WindowFrameAutosaveName) bool { + rv := objc.Call[bool](w_, objc.Sel("setFrameUsingName:"), name) return rv } @@ -1201,19 +1077,48 @@ func Window_RemoveFrameUsingName(name WindowFrameAutosaveName) { WindowClass.RemoveFrameUsingName(name) } -// Returns the number of the frontmost window that would be hit by a mouse-down at the specified screen location. [Full Topic] +// Marks as invalid the cursor rectangles of a given view object in the window, so they’ll be set up again when the window becomes key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419210-windownumberatpoint?language=objc -func (wc _WindowClass) WindowNumberAtPointBelowWindowWithWindowNumber(point foundation.Point, windowNumber int) int { - rv := objc.Call[int](wc, objc.Sel("windowNumberAtPoint:belowWindowWithWindowNumber:"), point, windowNumber) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419601-invalidatecursorrectsforview?language=objc +func (w_ Window) InvalidateCursorRectsForView(view IView) { + objc.Call[objc.Void](w_, objc.Sel("invalidateCursorRectsForView:"), view) +} + +// Converts a point to the screen coordinate system from the window’s coordinate system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2967182-convertpointtoscreen?language=objc +func (w_ Window) ConvertPointToScreen(point foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](w_, objc.Sel("convertPointToScreen:"), point) return rv } -// Returns the number of the frontmost window that would be hit by a mouse-down at the specified screen location. [Full Topic] +// Adds a given window as a child window of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419210-windownumberatpoint?language=objc -func Window_WindowNumberAtPointBelowWindowWithWindowNumber(point foundation.Point, windowNumber int) int { - return WindowClass.WindowNumberAtPointBelowWindowWithWindowNumber(point, windowNumber) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419152-addchildwindow?language=objc +func (w_ Window) AddChildWindowOrdered(childWin IWindow, place WindowOrderingMode) { + objc.Call[objc.Void](w_, objc.Sel("addChildWindow:ordered:"), childWin, place) +} + +// Simulates the user clicking the close button by momentarily highlighting the button and then closing the window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419288-performclose?language=objc +func (w_ Window) PerformClose(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("performClose:"), sender) +} + +// Converts a rectangle from the screen coordinate system to the window’s coordinate system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419603-convertrectfromscreen?language=objc +func (w_ Window) ConvertRectFromScreen(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](w_, objc.Sel("convertRectFromScreen:"), rect) + return rv +} + +// Sets the window’s visible state to the value you specify. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449570-setisvisible?language=objc +func (w_ Window) SetIsVisible(flag bool) { + objc.Call[objc.Void](w_, objc.Sel("setIsVisible:"), flag) } // Starts a window drag based on the specified mouse-down event. [Full Topic] @@ -1223,107 +1128,115 @@ func (w_ Window) PerformWindowDragWithEvent(event IEvent) { objc.Call[objc.Void](w_, objc.Sel("performWindowDragWithEvent:"), event) } -// Positions the top-left corner of the window’s frame rectangle at a given point in screen coordinates. [Full Topic] +// Returns the window button of a given window button kind in the window’s view hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419658-setframetopleftpoint?language=objc -func (w_ Window) SetFrameTopLeftPoint(point foundation.Point) { - objc.Call[objc.Void](w_, objc.Sel("setFrameTopLeftPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419491-standardwindowbutton?language=objc +func (w_ Window) StandardWindowButton(b WindowButton) Button { + rv := objc.Call[Button](w_, objc.Sel("standardWindowButton:"), b) + return rv } -// Reenables the default button cell’s key equivalent, so it performs a click when the user presses Return (or Enter). [Full Topic] +// Toggles the size and location of the window between its standard state (which the application provides as the best size to display the window’s data) and its user state (a new size and location the user may have set by moving or resizing the window). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419276-enablekeyequivalentfordefaultbut?language=objc -func (w_ Window) EnableKeyEquivalentForDefaultButtonCell() { - objc.Call[objc.Void](w_, objc.Sel("enableKeyEquivalentForDefaultButtonCell")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419513-zoom?language=objc +func (w_ Window) Zoom(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("zoom:"), sender) } -// Disables all cursor rectangle management within the window. [Full Topic] +// Merges all open windows into a single tabbed window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419639-disablecursorrects?language=objc -func (w_ Window) DisableCursorRects() { - objc.Call[objc.Void](w_, objc.Sel("disableCursorRects")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644639-mergeallwindows?language=objc +func (w_ Window) MergeAllWindows(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("mergeAllWindows:"), sender) + return rv } -// Removes the view controller at the specified index from the window’s array of title bar accessory view controllers. [Full Topic] +// Updates the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419643-removetitlebaraccessoryviewcontr?language=objc -func (w_ Window) RemoveTitlebarAccessoryViewControllerAtIndex(index int) { - objc.Call[objc.Void](w_, objc.Sel("removeTitlebarAccessoryViewControllerAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419577-update?language=objc +func (w_ Window) Update() { + objc.Call[objc.Void](w_, objc.Sel("update")) } -// Selects the next tab in the tab group in the trailing direction. [Full Topic] +// Converts a point from the screen coordinate system to the window’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644693-selectnexttab?language=objc -func (w_ Window) SelectNextTab(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("selectNextTab:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2967180-convertpointfromscreen?language=objc +func (w_ Window) ConvertPointFromScreen(point foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](w_, objc.Sel("convertPointFromScreen:"), point) return rv } -// Returns the window’s field editor, creating it if requested. [Full Topic] +// Reenables the default button cell’s key equivalent, so it performs a click when the user presses Return (or Enter). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419647-fieldeditor?language=objc -func (w_ Window) FieldEditorForObject(createFlag bool, object objc.IObject) Text { - rv := objc.Call[Text](w_, objc.Sel("fieldEditor:forObject:"), createFlag, object) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419276-enablekeyequivalentfordefaultbut?language=objc +func (w_ Window) EnableKeyEquivalentForDefaultButtonCell() { + objc.Call[objc.Void](w_, objc.Sel("enableKeyEquivalentForDefaultButtonCell")) } -// Searches for a candidate previous key view and, if it finds one, tries to make it the first responder. [Full Topic] +// Toggles the visibility of the window’s toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419110-selectpreviouskeyview?language=objc -func (w_ Window) SelectPreviousKeyView(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("selectPreviousKeyView:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419554-toggletoolbarshown?language=objc +func (w_ Window) ToggleToolbarShown(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("toggleToolbarShown:"), sender) } -// Indicates whether the window calculates the thickness of a given border automatically. [Full Topic] +// Sets the window’s miniaturized state to the value you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419356-autorecalculatescontentborderthi?language=objc -func (w_ Window) AutorecalculatesContentBorderThicknessForEdge(edge foundation.RectEdge) bool { - rv := objc.Call[bool](w_, objc.Sel("autorecalculatesContentBorderThicknessForEdge:"), edge) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449566-setisminiaturized?language=objc +func (w_ Window) SetIsMiniaturized(flag bool) { + objc.Call[objc.Void](w_, objc.Sel("setIsMiniaturized:"), flag) +} + +// Returns a backing store pixel-aligned rectangle in window coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419319-backingalignedrect?language=objc +func (w_ Window) BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect { + rv := objc.Call[foundation.Rect](w_, objc.Sel("backingAlignedRect:options:"), rect, options) return rv } -// Disables snapshot restoration. [Full Topic] +// Modifies and returns a frame rectangle so that its top edge lies on a specific screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526239-disablesnapshotrestoration?language=objc -func (w_ Window) DisableSnapshotRestoration() { - objc.Call[objc.Void](w_, objc.Sel("disableSnapshotRestoration")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419779-constrainframerect?language=objc +func (w_ Window) ConstrainFrameRectToScreen(frameRect foundation.Rect, screen IScreen) foundation.Rect { + rv := objc.Call[foundation.Rect](w_, objc.Sel("constrainFrameRect:toScreen:"), frameRect, screen) + return rv } -// Adds the specified title bar accessory view controller to the window. [Full Topic] +// Updates the layout of views in the window based on the current views and constraints. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419382-addtitlebaraccessoryviewcontroll?language=objc -func (w_ Window) AddTitlebarAccessoryViewController(childViewController ITitlebarAccessoryViewController) { - objc.Call[objc.Void](w_, objc.Sel("addTitlebarAccessoryViewController:"), childViewController) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526910-layoutifneeded?language=objc +func (w_ Window) LayoutIfNeeded() { + objc.Call[objc.Void](w_, objc.Sel("layoutIfNeeded")) } -// Simulates the user clicking the close button by momentarily highlighting the button and then closing the window. [Full Topic] +// Returns the minimum width a window’s frame rectangle must have for it to display a title, with a given window style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419288-performclose?language=objc -func (w_ Window) PerformClose(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("performClose:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419294-minframewidthwithtitle?language=objc +func (wc _WindowClass) MinFrameWidthWithTitleStyleMask(title string, style WindowStyleMask) float64 { + rv := objc.Call[float64](wc, objc.Sel("minFrameWidthWithTitle:styleMask:"), title, style) + return rv } -// Converts a point from its pixel-aligned backing store coordinate system to the window’s coordinate system. [Full Topic] +// Returns the minimum width a window’s frame rectangle must have for it to display a title, with a given window style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2967179-convertpointfrombacking?language=objc -func (w_ Window) ConvertPointFromBacking(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](w_, objc.Sel("convertPointFromBacking:"), point) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419294-minframewidthwithtitle?language=objc +func Window_MinFrameWidthWithTitleStyleMask(title string, style WindowStyleMask) float64 { + return WindowClass.MinFrameWidthWithTitleStyleMask(title, style) } -// Converts a rectangle from the screen coordinate system to the window’s coordinate system. [Full Topic] +// Ends a document-modal session and dismisses the specified sheet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419603-convertrectfromscreen?language=objc -func (w_ Window) ConvertRectFromScreen(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("convertRectFromScreen:"), rect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419497-endsheet?language=objc +func (w_ Window) EndSheetReturnCode(sheetWindow IWindow, returnCode ModalResponse) { + objc.Call[objc.Void](w_, objc.Sel("endSheet:returnCode:"), sheetWindow, returnCode) } -// Runs the Print panel, and if the user chooses an option other than canceling, prints the window (its frame view and all subviews). [Full Topic] +// Informs the window that it has become the main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419767-print?language=objc -func (w_ Window) Print(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("print:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419084-becomemainwindow?language=objc +func (w_ Window) BecomeMainWindow() { + objc.Call[objc.Void](w_, objc.Sel("becomeMainWindow")) } // Inserts the view controller into the window’s array of title bar accessory view controllers at the specified index. [Full Topic] @@ -1333,36 +1246,49 @@ func (w_ Window) InsertTitlebarAccessoryViewControllerAtIndex(childViewControlle objc.Call[objc.Void](w_, objc.Sel("insertTitlebarAccessoryViewController:atIndex:"), childViewController, index) } -// This action method dispatches mouse and keyboard events the global application object sends to the window. [Full Topic] +// This action method simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419228-sendevent?language=objc -func (w_ Window) SendEvent(event IEvent) { - objc.Call[objc.Void](w_, objc.Sel("sendEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419450-performzoom?language=objc +func (w_ Window) PerformZoom(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("performZoom:"), sender) } -// Attempts to make a given responder the first responder for the window. [Full Topic] +// Positions the top-left corner of the window’s frame rectangle at a given point in screen coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419366-makefirstresponder?language=objc -func (w_ Window) MakeFirstResponder(responder IResponder) bool { - rv := objc.Call[bool](w_, objc.Sel("makeFirstResponder:"), responder) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419658-setframetopleftpoint?language=objc +func (w_ Window) SetFrameTopLeftPoint(point foundation.Point) { + objc.Call[objc.Void](w_, objc.Sel("setFrameTopLeftPoint:"), point) } -// Repositions the window’s window device in the window server’s screen list. [Full Topic] +// Passes a display message down the window’s view hierarchy, thus redrawing all views that need displaying. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419672-orderwindow?language=objc -func (w_ Window) OrderWindowRelativeTo(place WindowOrderingMode, otherWin int) { - objc.Call[objc.Void](w_, objc.Sel("orderWindow:relativeTo:"), place, otherWin) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419096-displayifneeded?language=objc +func (w_ Window) DisplayIfNeeded() { + objc.Call[objc.Void](w_, objc.Sel("displayIfNeeded")) } -// A Boolean value that indicates whether the window is able to receive keyboard and mouse events even when some other window is being run modally. [Full Topic] +// Sets the window’s location to the center of the screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419220-workswhenmodal?language=objc -func (w_ Window) WorksWhenModal() bool { - rv := objc.Call[bool](w_, objc.Sel("worksWhenModal")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419090-center?language=objc +func (w_ Window) Center() { + objc.Call[objc.Void](w_, objc.Sel("center")) +} + +// A Boolean value indicating whether the window configuration is preserved between application launches. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526255-restorable?language=objc +func (w_ Window) IsRestorable() bool { + rv := objc.Call[bool](w_, objc.Sel("isRestorable")) return rv } +// A Boolean value indicating whether the window configuration is preserved between application launches. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526255-restorable?language=objc +func (w_ Window) SetRestorable(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setRestorable:"), value) +} + // The maximum size to which the window’s frame (including its title bar) can be sized. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419595-maxsize?language=objc @@ -1378,374 +1304,347 @@ func (w_ Window) SetMaxSize(value foundation.Size) { objc.Call[objc.Void](w_, objc.Sel("setMaxSize:"), value) } -// The flags field of the event record for the mouse-down event that initiated the resizing session. [Full Topic] +// A Boolean value that indicates whether the window is removed from the screen when its application becomes inactive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419302-resizeflags?language=objc -func (w_ Window) ResizeFlags() EventModifierFlags { - rv := objc.Call[EventModifierFlags](w_, objc.Sel("resizeFlags")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419777-hidesondeactivate?language=objc +func (w_ Window) HidesOnDeactivate() bool { + rv := objc.Call[bool](w_, objc.Sel("hidesOnDeactivate")) return rv } -// A Boolean value that indicates whether the window is a floating panel. [Full Topic] +// A Boolean value that indicates whether the window is removed from the screen when its application becomes inactive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449579-floatingpanel?language=objc -func (w_ Window) IsFloatingPanel() bool { - rv := objc.Call[bool](w_, objc.Sel("isFloatingPanel")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419777-hidesondeactivate?language=objc +func (w_ Window) SetHidesOnDeactivate(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setHidesOnDeactivate:"), value) } -// The window’s window controller. [Full Topic] +// A Boolean value that indicates whether the window is visible onscreen (even when it’s obscured by other windows). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419092-windowcontroller?language=objc -func (w_ Window) WindowController() WindowController { - rv := objc.Call[WindowController](w_, objc.Sel("windowController")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419132-visible?language=objc +func (w_ Window) IsVisible() bool { + rv := objc.Call[bool](w_, objc.Sel("isVisible")) return rv } -// The window’s window controller. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419092-windowcontroller?language=objc -func (w_ Window) SetWindowController(value IWindowController) { - objc.Call[objc.Void](w_, objc.Sel("setWindowController:"), value) -} - -// The window’s content aspect ratio. [Full Topic] +// The parent window to which the window is attached as a child. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419148-contentaspectratio?language=objc -func (w_ Window) ContentAspectRatio() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("contentAspectRatio")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419695-parentwindow?language=objc +func (w_ Window) ParentWindow() Window { + rv := objc.Call[Window](w_, objc.Sel("parentWindow")) return rv } -// The window’s content aspect ratio. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419148-contentaspectratio?language=objc -func (w_ Window) SetContentAspectRatio(value foundation.Size) { - objc.Call[objc.Void](w_, objc.Sel("setContentAspectRatio:"), value) -} - -// The direction the window’s title bar lays text out, either left to right or right to left. [Full Topic] +// The parent window to which the window is attached as a child. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644535-windowtitlebarlayoutdirection?language=objc -func (w_ Window) WindowTitlebarLayoutDirection() UserInterfaceLayoutDirection { - rv := objc.Call[UserInterfaceLayoutDirection](w_, objc.Sel("windowTitlebarLayoutDirection")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419695-parentwindow?language=objc +func (w_ Window) SetParentWindow(value IWindow) { + objc.Call[objc.Void](w_, objc.Sel("setParentWindow:"), value) } -// A Boolean value that indicates whether the window is opaque. [Full Topic] +// A minimum size that is used to determine if a window can fit when it is in full screen in a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419086-opaque?language=objc -func (w_ Window) IsOpaque() bool { - rv := objc.Call[bool](w_, objc.Sel("isOpaque")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419627-minfullscreencontentsize?language=objc +func (w_ Window) MinFullScreenContentSize() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("minFullScreenContentSize")) return rv } -// A Boolean value that indicates whether the window is opaque. [Full Topic] +// A minimum size that is used to determine if a window can fit when it is in full screen in a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419086-opaque?language=objc -func (w_ Window) SetOpaque(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setOpaque:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419627-minfullscreencontentsize?language=objc +func (w_ Window) SetMinFullScreenContentSize(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setMinFullScreenContentSize:"), value) } -// A Boolean value indicating whether the window configuration is preserved between application launches. [Full Topic] +// An array of the sheets currently attached to the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526255-restorable?language=objc -func (w_ Window) IsRestorable() bool { - rv := objc.Call[bool](w_, objc.Sel("isRestorable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419765-sheets?language=objc +func (w_ Window) Sheets() []Window { + rv := objc.Call[[]Window](w_, objc.Sel("sheets")) return rv } -// A Boolean value indicating whether the window configuration is preserved between application launches. [Full Topic] +// A Boolean value that indicates whether the window is excluded from the application’s Windows menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526255-restorable?language=objc -func (w_ Window) SetRestorable(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setRestorable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419175-excludedfromwindowsmenu?language=objc +func (w_ Window) IsExcludedFromWindowsMenu() bool { + rv := objc.Call[bool](w_, objc.Sel("isExcludedFromWindowsMenu")) + return rv } -// A Boolean value that indicates whether the window can become the key window. [Full Topic] +// A Boolean value that indicates whether the window is excluded from the application’s Windows menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419543-canbecomekeywindow?language=objc -func (w_ Window) CanBecomeKeyWindow() bool { - rv := objc.Call[bool](w_, objc.Sel("canBecomeKeyWindow")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419175-excludedfromwindowsmenu?language=objc +func (w_ Window) SetExcludedFromWindowsMenu(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setExcludedFromWindowsMenu:"), value) } -// A Boolean value that indicates whether the window allows zooming. [Full Topic] +// A Boolean value that indicates whether the window has ever run as a modal sheet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449587-zoomable?language=objc -func (w_ Window) IsZoomable() bool { - rv := objc.Call[bool](w_, objc.Sel("isZoomable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419364-sheet?language=objc +func (w_ Window) IsSheet() bool { + rv := objc.Call[bool](w_, objc.Sel("isSheet")) return rv } -// The window’s delegate. [Full Topic] +// A Boolean value that indicates whether the window is released when it receives the close message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419060-delegate?language=objc -func (w_ Window) Delegate() WindowDelegateObject { - rv := objc.Call[WindowDelegateObject](w_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419062-releasedwhenclosed?language=objc +func (w_ Window) IsReleasedWhenClosed() bool { + rv := objc.Call[bool](w_, objc.Sel("isReleasedWhenClosed")) return rv } -// The window’s delegate. [Full Topic] +// A Boolean value that indicates whether the window is released when it receives the close message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419060-delegate?language=objc -func (w_ Window) SetDelegate(value PWindowDelegate) { - po0 := objc.WrapAsProtocol("NSWindowDelegate", value) - objc.SetAssociatedObject(w_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](w_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419062-releasedwhenclosed?language=objc +func (w_ Window) SetReleasedWhenClosed(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setReleasedWhenClosed:"), value) } -// The window’s delegate. [Full Topic] +// A Boolean value that indicates the level of access other processes have to the window’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419060-delegate?language=objc -func (w_ Window) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419729-sharingtype?language=objc +func (w_ Window) SharingType() WindowSharingType { + rv := objc.Call[WindowSharingType](w_, objc.Sel("sharingType")) + return rv } -// A Boolean value that indicates if the user can resize the window. [Full Topic] +// A Boolean value that indicates the level of access other processes have to the window’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449572-resizable?language=objc -func (w_ Window) IsResizable() bool { - rv := objc.Call[bool](w_, objc.Sel("isResizable")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419729-sharingtype?language=objc +func (w_ Window) SetSharingType(value WindowSharingType) { + objc.Call[objc.Void](w_, objc.Sel("setSharingType:"), value) } -// The custom miniaturized window image of the window. [Full Topic] +// A Boolean value that indicates whether the window has a shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419185-miniwindowimage?language=objc -func (w_ Window) MiniwindowImage() Image { - rv := objc.Call[Image](w_, objc.Sel("miniwindowImage")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419234-hasshadow?language=objc +func (w_ Window) HasShadow() bool { + rv := objc.Call[bool](w_, objc.Sel("hasShadow")) return rv } -// The custom miniaturized window image of the window. [Full Topic] +// A Boolean value that indicates whether the window has a shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419185-miniwindowimage?language=objc -func (w_ Window) SetMiniwindowImage(value IImage) { - objc.Call[objc.Void](w_, objc.Sel("setMiniwindowImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419234-hasshadow?language=objc +func (w_ Window) SetHasShadow(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setHasShadow:"), value) } -// The type of separator that the app displays between the title bar and content of a window. [Full Topic] +// Flags that describe the window’s current style, such as if it’s resizable or in full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3622489-titlebarseparatorstyle?language=objc -func (w_ Window) TitlebarSeparatorStyle() TitlebarSeparatorStyle { - rv := objc.Call[TitlebarSeparatorStyle](w_, objc.Sel("titlebarSeparatorStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419078-stylemask?language=objc +func (w_ Window) StyleMask() WindowStyleMask { + rv := objc.Call[WindowStyleMask](w_, objc.Sel("styleMask")) return rv } -// The type of separator that the app displays between the title bar and content of a window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3622489-titlebarseparatorstyle?language=objc -func (w_ Window) SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) { - objc.Call[objc.Void](w_, objc.Sel("setTitlebarSeparatorStyle:"), value) -} - -// The application’s Dock tile. [Full Topic] +// Flags that describe the window’s current style, such as if it’s resizable or in full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419088-docktile?language=objc -func (w_ Window) DockTile() DockTile { - rv := objc.Call[DockTile](w_, objc.Sel("dockTile")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419078-stylemask?language=objc +func (w_ Window) SetStyleMask(value WindowStyleMask) { + objc.Call[objc.Void](w_, objc.Sel("setStyleMask:"), value) } -// A Boolean value that indicates whether the window is visible onscreen (even when it’s obscured by other windows). [Full Topic] +// An object that represents information about a window when it displays as a tab. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419132-visible?language=objc -func (w_ Window) IsVisible() bool { - rv := objc.Call[bool](w_, objc.Sel("isVisible")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2870102-tab?language=objc +func (w_ Window) Tab() WindowTab { + rv := objc.Call[WindowTab](w_, objc.Sel("tab")) return rv } -// The parent window to which the window is attached as a child. [Full Topic] +// The zero-based position of the window, based on its order from front to back among all visible application windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419695-parentwindow?language=objc -func (w_ Window) ParentWindow() Window { - rv := objc.Call[Window](w_, objc.Sel("parentWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449577-orderedindex?language=objc +func (w_ Window) OrderedIndex() int { + rv := objc.Call[int](w_, objc.Sel("orderedIndex")) return rv } -// The parent window to which the window is attached as a child. [Full Topic] +// The zero-based position of the window, based on its order from front to back among all visible application windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419695-parentwindow?language=objc -func (w_ Window) SetParentWindow(value IWindow) { - objc.Call[objc.Void](w_, objc.Sel("setParentWindow:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449577-orderedindex?language=objc +func (w_ Window) SetOrderedIndex(value int) { + objc.Call[objc.Void](w_, objc.Sel("setOrderedIndex:"), value) } -// A Boolean value that indicates whether the window accepts mouse-moved events. [Full Topic] +// A Boolean value that indicates whether any of the window’s views need to be displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419340-acceptsmousemovedevents?language=objc -func (w_ Window) AcceptsMouseMovedEvents() bool { - rv := objc.Call[bool](w_, objc.Sel("acceptsMouseMovedEvents")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419609-viewsneeddisplay?language=objc +func (w_ Window) ViewsNeedDisplay() bool { + rv := objc.Call[bool](w_, objc.Sel("viewsNeedDisplay")) return rv } -// A Boolean value that indicates whether the window accepts mouse-moved events. [Full Topic] +// A Boolean value that indicates whether any of the window’s views need to be displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419340-acceptsmousemovedevents?language=objc -func (w_ Window) SetAcceptsMouseMovedEvents(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setAcceptsMouseMovedEvents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419609-viewsneeddisplay?language=objc +func (w_ Window) SetViewsNeedDisplay(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setViewsNeedDisplay:"), value) } -// A Boolean value that indicates if the window has a close box. [Full Topic] +// The window level of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449574-hasclosebox?language=objc -func (w_ Window) HasCloseBox() bool { - rv := objc.Call[bool](w_, objc.Sel("hasCloseBox")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419511-level?language=objc +func (w_ Window) Level() WindowLevel { + rv := objc.Call[WindowLevel](w_, objc.Sel("level")) return rv } -// The current location of the pointer reckoned in the window’s base coordinate system, regardless of the current event being handled or of any events pending. [Full Topic] +// The window level of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419280-mouselocationoutsideofeventstrea?language=objc -func (w_ Window) MouseLocationOutsideOfEventStream() foundation.Point { - rv := objc.Call[foundation.Point](w_, objc.Sel("mouseLocationOutsideOfEventStream")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419511-level?language=objc +func (w_ Window) SetLevel(value WindowLevel) { + objc.Call[objc.Void](w_, objc.Sel("setLevel:"), value) } -// A Boolean value that indicates whether the window can minimize. [Full Topic] +// The window’s automatic animation behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449583-miniaturizable?language=objc -func (w_ Window) IsMiniaturizable() bool { - rv := objc.Call[bool](w_, objc.Sel("isMiniaturizable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419763-animationbehavior?language=objc +func (w_ Window) AnimationBehavior() WindowAnimationBehavior { + rv := objc.Call[WindowAnimationBehavior](w_, objc.Sel("animationBehavior")) return rv } -// A secondary line of text that appears in the title bar of the window. [Full Topic] +// The window’s automatic animation behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3608198-subtitle?language=objc -func (w_ Window) Subtitle() string { - rv := objc.Call[string](w_, objc.Sel("subtitle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419763-animationbehavior?language=objc +func (w_ Window) SetAnimationBehavior(value WindowAnimationBehavior) { + objc.Call[objc.Void](w_, objc.Sel("setAnimationBehavior:"), value) } -// A secondary line of text that appears in the title bar of the window. [Full Topic] +// The screen the window is on. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3608198-subtitle?language=objc -func (w_ Window) SetSubtitle(value string) { - objc.Call[objc.Void](w_, objc.Sel("setSubtitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419232-screen?language=objc +func (w_ Window) Screen() Screen { + rv := objc.Call[Screen](w_, objc.Sel("screen")) + return rv } -// A Boolean value that indicates if the window has a title bar. [Full Topic] +// A Boolean value that indicates whether the window is a modal panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449568-hastitlebar?language=objc -func (w_ Window) HasTitleBar() bool { - rv := objc.Call[bool](w_, objc.Sel("hasTitleBar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449576-modalpanel?language=objc +func (w_ Window) IsModalPanel() bool { + rv := objc.Call[bool](w_, objc.Sel("isModalPanel")) return rv } -// The occlusion state of the window. [Full Topic] +// The current location of the pointer reckoned in the window’s base coordinate system, regardless of the current event being handled or of any events pending. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419321-occlusionstate?language=objc -func (w_ Window) OcclusionState() WindowOcclusionState { - rv := objc.Call[WindowOcclusionState](w_, objc.Sel("occlusionState")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419280-mouselocationoutsideofeventstrea?language=objc +func (w_ Window) MouseLocationOutsideOfEventStream() foundation.Point { + rv := objc.Call[foundation.Point](w_, objc.Sel("mouseLocationOutsideOfEventStream")) return rv } -// A Boolean value that indicates whether the window is excluded from the application’s Windows menu. [Full Topic] +// A Boolean value that indicates whether the window is the key window for the application. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419175-excludedfromwindowsmenu?language=objc -func (w_ Window) IsExcludedFromWindowsMenu() bool { - rv := objc.Call[bool](w_, objc.Sel("isExcludedFromWindowsMenu")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419735-keywindow?language=objc +func (w_ Window) IsKeyWindow() bool { + rv := objc.Call[bool](w_, objc.Sel("isKeyWindow")) return rv } -// A Boolean value that indicates whether the window is excluded from the application’s Windows menu. [Full Topic] +// The window’s content view, the highest accessible view object in the window’s view hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419175-excludedfromwindowsmenu?language=objc -func (w_ Window) SetExcludedFromWindowsMenu(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setExcludedFromWindowsMenu:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419160-contentview?language=objc +func (w_ Window) ContentView() View { + rv := objc.Call[View](w_, objc.Sel("contentView")) + return rv } -// A value used by Auto Layout constraints to automatically bind to the value of [appkit/nswindow/contentlayoutrect]. [Full Topic] +// The window’s content view, the highest accessible view object in the window’s view hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419094-contentlayoutguide?language=objc -func (w_ Window) ContentLayoutGuide() objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("contentLayoutGuide")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419160-contentview?language=objc +func (w_ Window) SetContentView(value IView) { + objc.Call[objc.Void](w_, objc.Sel("setContentView:"), value) } -// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] +// A value that indicates the visibility of the window’s title and title bar buttons. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc -func (wc _WindowClass) AllowsAutomaticWindowTabbing() bool { - rv := objc.Call[bool](wc, objc.Sel("allowsAutomaticWindowTabbing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419635-titlevisibility?language=objc +func (w_ Window) TitleVisibility() WindowTitleVisibility { + rv := objc.Call[WindowTitleVisibility](w_, objc.Sel("titleVisibility")) return rv } -// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] +// A value that indicates the visibility of the window’s title and title bar buttons. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc -func Window_AllowsAutomaticWindowTabbing() bool { - return WindowClass.AllowsAutomaticWindowTabbing() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419635-titlevisibility?language=objc +func (w_ Window) SetTitleVisibility(value WindowTitleVisibility) { + objc.Call[objc.Void](w_, objc.Sel("setTitleVisibility:"), value) } -// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] +// The style that determines the appearance and location of the toolbar in relation to the title bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc -func (wc _WindowClass) SetAllowsAutomaticWindowTabbing(value bool) { - objc.Call[objc.Void](wc, objc.Sel("setAllowsAutomaticWindowTabbing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3608199-toolbarstyle?language=objc +func (w_ Window) ToolbarStyle() WindowToolbarStyle { + rv := objc.Call[WindowToolbarStyle](w_, objc.Sel("toolbarStyle")) + return rv } -// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] +// The style that determines the appearance and location of the toolbar in relation to the title bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc -func Window_SetAllowsAutomaticWindowTabbing(value bool) { - WindowClass.SetAllowsAutomaticWindowTabbing(value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3608199-toolbarstyle?language=objc +func (w_ Window) SetToolbarStyle(value WindowToolbarStyle) { + objc.Call[objc.Void](w_, objc.Sel("setToolbarStyle:"), value) } -// An object that the window inherits its appearance from. [Full Topic] +// The event currently being processed by the application. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2998855-appearancesource?language=objc -func (w_ Window) AppearanceSource() objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("appearanceSource")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419298-currentevent?language=objc +func (w_ Window) CurrentEvent() Event { + rv := objc.Call[Event](w_, objc.Sel("currentEvent")) return rv } -// An object that the window inherits its appearance from. [Full Topic] +// The title displayed in the window’s minimized window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2998855-appearancesource?language=objc -func (w_ Window) SetAppearanceSource(value objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("setAppearanceSource:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419571-miniwindowtitle?language=objc +func (w_ Window) MiniwindowTitle() string { + rv := objc.Call[string](w_, objc.Sel("miniwindowTitle")) + return rv } -// The Carbon window reference associated with the window, creating one if necessary. [Full Topic] +// The title displayed in the window’s minimized window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419485-windowref?language=objc -func (w_ Window) WindowRef() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](w_, objc.Sel("windowRef")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419571-miniwindowtitle?language=objc +func (w_ Window) SetMiniwindowTitle(value string) { + objc.Call[objc.Void](w_, objc.Sel("setMiniwindowTitle:"), value) } -// A Boolean value that indicates whether the window has ever run as a modal sheet. [Full Topic] +// A Boolean value that indicates whether the window is the application’s main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419364-sheet?language=objc -func (w_ Window) IsSheet() bool { - rv := objc.Call[bool](w_, objc.Sel("isSheet")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419130-mainwindow?language=objc +func (w_ Window) IsMainWindow() bool { + rv := objc.Call[bool](w_, objc.Sel("isMainWindow")) return rv } -// A group of windows that display together as a tab group. [Full Topic] +// An array of the window’s attached child windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2879189-tabgroup?language=objc -func (w_ Window) TabGroup() WindowTabGroup { - rv := objc.Call[WindowTabGroup](w_, objc.Sel("tabGroup")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419236-childwindows?language=objc +func (w_ Window) ChildWindows() []Window { + rv := objc.Call[[]Window](w_, objc.Sel("childWindows")) return rv } -// The backing scale factor. [Full Topic] +// The button cell that performs as if clicked when the window receives a Return (or Enter) key event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419459-backingscalefactor?language=objc -func (w_ Window) BackingScaleFactor() float64 { - rv := objc.Call[float64](w_, objc.Sel("backingScaleFactor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419328-defaultbuttoncell?language=objc +func (w_ Window) DefaultButtonCell() ButtonCell { + rv := objc.Call[ButtonCell](w_, objc.Sel("defaultButtonCell")) return rv } -// A Boolean value that indicates whether the window is on the currently active space. [Full Topic] +// The button cell that performs as if clicked when the window receives a Return (or Enter) key event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419707-onactivespace?language=objc -func (w_ Window) IsOnActiveSpace() bool { - rv := objc.Call[bool](w_, objc.Sel("isOnActiveSpace")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419328-defaultbuttoncell?language=objc +func (w_ Window) SetDefaultButtonCell(value IButtonCell) { + objc.Call[objc.Void](w_, objc.Sel("setDefaultButtonCell:"), value) } // A value that indicates the user’s preference for window tabbing. [Full Topic] @@ -1763,423 +1662,424 @@ func Window_UserTabbingPreference() WindowUserTabbingPreference { return WindowClass.UserTabbingPreference() } -// The window’s content view, the highest accessible view object in the window’s view hierarchy. [Full Topic] +// The window’s first responder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419160-contentview?language=objc -func (w_ Window) ContentView() View { - rv := objc.Call[View](w_, objc.Sel("contentView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419440-firstresponder?language=objc +func (w_ Window) FirstResponder() Responder { + rv := objc.Call[Responder](w_, objc.Sel("firstResponder")) return rv } -// The window’s content view, the highest accessible view object in the window’s view hierarchy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419160-contentview?language=objc -func (w_ Window) SetContentView(value IView) { - objc.Call[objc.Void](w_, objc.Sel("setContentView:"), value) -} - -// The name used to automatically save the window’s frame rectangle data in the defaults system. [Full Topic] +// An array of windows that display as tabs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419362-frameautosavename?language=objc -func (w_ Window) FrameAutosaveName() WindowFrameAutosaveName { - rv := objc.Call[WindowFrameAutosaveName](w_, objc.Sel("frameAutosaveName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1792044-tabbedwindows?language=objc +func (w_ Window) TabbedWindows() []Window { + rv := objc.Call[[]Window](w_, objc.Sel("tabbedWindows")) return rv } -// A Boolean value that indicates whether the title bar draws its background. [Full Topic] +// A Boolean value that indicates whether the window tries to optimize user-initiated resize operations by preserving the content of views that have not changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419167-titlebarappearstransparent?language=objc -func (w_ Window) TitlebarAppearsTransparent() bool { - rv := objc.Call[bool](w_, objc.Sel("titlebarAppearsTransparent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419588-preservescontentduringliveresize?language=objc +func (w_ Window) PreservesContentDuringLiveResize() bool { + rv := objc.Call[bool](w_, objc.Sel("preservesContentDuringLiveResize")) return rv } -// A Boolean value that indicates whether the title bar draws its background. [Full Topic] +// A Boolean value that indicates whether the window tries to optimize user-initiated resize operations by preserving the content of views that have not changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419167-titlebarappearstransparent?language=objc -func (w_ Window) SetTitlebarAppearsTransparent(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setTitlebarAppearsTransparent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419588-preservescontentduringliveresize?language=objc +func (w_ Window) SetPreservesContentDuringLiveResize(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setPreservesContentDuringLiveResize:"), value) } -// The area inside the window that is for non-obscured content, in window coordinates. [Full Topic] +// Returns the default depth limit for instances of NSWindow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419124-contentlayoutrect?language=objc -func (w_ Window) ContentLayoutRect() foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("contentLayoutRect")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419049-defaultdepthlimit?language=objc +func (wc _WindowClass) DefaultDepthLimit() WindowDepth { + rv := objc.Call[WindowDepth](wc, objc.Sel("defaultDepthLimit")) return rv } -// A Boolean value that indicates whether the window can hide when its application becomes hidden. [Full Topic] +// Returns the default depth limit for instances of NSWindow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419725-canhide?language=objc -func (w_ Window) CanHide() bool { - rv := objc.Call[bool](w_, objc.Sel("canHide")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419049-defaultdepthlimit?language=objc +func Window_DefaultDepthLimit() WindowDepth { + return WindowClass.DefaultDepthLimit() +} + +// The window’s content aspect ratio. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419148-contentaspectratio?language=objc +func (w_ Window) ContentAspectRatio() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("contentAspectRatio")) return rv } -// A Boolean value that indicates whether the window can hide when its application becomes hidden. [Full Topic] +// The window’s content aspect ratio. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419725-canhide?language=objc -func (w_ Window) SetCanHide(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setCanHide:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419148-contentaspectratio?language=objc +func (w_ Window) SetContentAspectRatio(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setContentAspectRatio:"), value) } -// A value that indicates when a window displays tabs. [Full Topic] +// A Boolean value that indicates whether the window context should be updated when the screen profile changes or when the window moves to a different screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644729-tabbingmode?language=objc -func (w_ Window) TabbingMode() WindowTabbingMode { - rv := objc.Call[WindowTabbingMode](w_, objc.Sel("tabbingMode")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419430-displayswhenscreenprofilechanges?language=objc +func (w_ Window) DisplaysWhenScreenProfileChanges() bool { + rv := objc.Call[bool](w_, objc.Sel("displaysWhenScreenProfileChanges")) return rv } -// A value that indicates when a window displays tabs. [Full Topic] +// A Boolean value that indicates whether the window context should be updated when the screen profile changes or when the window moves to a different screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644729-tabbingmode?language=objc -func (w_ Window) SetTabbingMode(value WindowTabbingMode) { - objc.Call[objc.Void](w_, objc.Sel("setTabbingMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419430-displayswhenscreenprofilechanges?language=objc +func (w_ Window) SetDisplaysWhenScreenProfileChanges(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setDisplaysWhenScreenProfileChanges:"), value) } -// A Boolean value that indicates whether the window is movable by clicking and dragging anywhere in its background. [Full Topic] +// The restoration class associated with the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419072-movablebywindowbackground?language=objc -func (w_ Window) IsMovableByWindowBackground() bool { - rv := objc.Call[bool](w_, objc.Sel("isMovableByWindowBackground")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526241-restorationclass?language=objc +func (w_ Window) RestorationClass() objc.Class { + rv := objc.Call[objc.Class](w_, objc.Sel("restorationClass")) return rv } -// A Boolean value that indicates whether the window is movable by clicking and dragging anywhere in its background. [Full Topic] +// The restoration class associated with the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419072-movablebywindowbackground?language=objc -func (w_ Window) SetMovableByWindowBackground(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setMovableByWindowBackground:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526241-restorationclass?language=objc +func (w_ Window) SetRestorationClass(value objc.IClass) { + objc.Call[objc.Void](w_, objc.Sel("setRestorationClass:"), value) } -// A Boolean value that indicates whether the window is removed from the screen when its application becomes inactive. [Full Topic] +// A Boolean value that indicates whether the window accepts mouse-moved events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419777-hidesondeactivate?language=objc -func (w_ Window) HidesOnDeactivate() bool { - rv := objc.Call[bool](w_, objc.Sel("hidesOnDeactivate")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419340-acceptsmousemovedevents?language=objc +func (w_ Window) AcceptsMouseMovedEvents() bool { + rv := objc.Call[bool](w_, objc.Sel("acceptsMouseMovedEvents")) return rv } -// A Boolean value that indicates whether the window is removed from the screen when its application becomes inactive. [Full Topic] +// A Boolean value that indicates whether the window accepts mouse-moved events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419777-hidesondeactivate?language=objc -func (w_ Window) SetHidesOnDeactivate(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setHidesOnDeactivate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419340-acceptsmousemovedevents?language=objc +func (w_ Window) SetAcceptsMouseMovedEvents(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAcceptsMouseMovedEvents:"), value) } -// The path to the file of the window’s represented file. [Full Topic] +// A secondary line of text that appears in the title bar of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419631-representedfilename?language=objc -func (w_ Window) RepresentedFilename() string { - rv := objc.Call[string](w_, objc.Sel("representedFilename")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3608198-subtitle?language=objc +func (w_ Window) Subtitle() string { + rv := objc.Call[string](w_, objc.Sel("subtitle")) return rv } -// The path to the file of the window’s represented file. [Full Topic] +// A secondary line of text that appears in the title bar of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419631-representedfilename?language=objc -func (w_ Window) SetRepresentedFilename(value string) { - objc.Call[objc.Void](w_, objc.Sel("setRepresentedFilename:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3608198-subtitle?language=objc +func (w_ Window) SetSubtitle(value string) { + objc.Call[objc.Void](w_, objc.Sel("setSubtitle:"), value) } -// An array of the sheets currently attached to the window. [Full Topic] +// A Boolean value that indicates whether the window is able to receive keyboard and mouse events even when some other window is being run modally. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419765-sheets?language=objc -func (w_ Window) Sheets() []Window { - rv := objc.Call[[]Window](w_, objc.Sel("sheets")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419220-workswhenmodal?language=objc +func (w_ Window) WorksWhenModal() bool { + rv := objc.Call[bool](w_, objc.Sel("worksWhenModal")) return rv } -// A Boolean value that indicates whether the window’s cursor rectangles are enabled. [Full Topic] +// A Boolean value that indicates whether the window is minimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419668-arecursorrectsenabled?language=objc -func (w_ Window) AreCursorRectsEnabled() bool { - rv := objc.Call[bool](w_, objc.Sel("areCursorRectsEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419699-miniaturized?language=objc +func (w_ Window) IsMiniaturized() bool { + rv := objc.Call[bool](w_, objc.Sel("isMiniaturized")) return rv } -// A Boolean value that indicates whether the window can be displayed at the login window. [Full Topic] +// The window’s alpha value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419179-canbecomevisiblewithoutlogin?language=objc -func (w_ Window) CanBecomeVisibleWithoutLogin() bool { - rv := objc.Call[bool](w_, objc.Sel("canBecomeVisibleWithoutLogin")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419186-alphavalue?language=objc +func (w_ Window) AlphaValue() float64 { + rv := objc.Call[float64](w_, objc.Sel("alphaValue")) return rv } -// A Boolean value that indicates whether the window can be displayed at the login window. [Full Topic] +// The window’s alpha value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419179-canbecomevisiblewithoutlogin?language=objc -func (w_ Window) SetCanBecomeVisibleWithoutLogin(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setCanBecomeVisibleWithoutLogin:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419186-alphavalue?language=objc +func (w_ Window) SetAlphaValue(value float64) { + objc.Call[objc.Void](w_, objc.Sel("setAlphaValue:"), value) } -// The direction the window is currently using to change the key view. [Full Topic] +// The deepest screen the window is on (it may be split over several screens). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419158-keyviewselectiondirection?language=objc -func (w_ Window) KeyViewSelectionDirection() SelectionDirection { - rv := objc.Call[SelectionDirection](w_, objc.Sel("keyViewSelectionDirection")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419080-deepestscreen?language=objc +func (w_ Window) DeepestScreen() Screen { + rv := objc.Call[Screen](w_, objc.Sel("deepestScreen")) return rv } -// The window’s resizing increments. [Full Topic] +// The area inside the window that is for non-obscured content, in window coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419390-resizeincrements?language=objc -func (w_ Window) ResizeIncrements() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("resizeIncrements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419124-contentlayoutrect?language=objc +func (w_ Window) ContentLayoutRect() foundation.Rect { + rv := objc.Call[foundation.Rect](w_, objc.Sel("contentLayoutRect")) return rv } -// The window’s resizing increments. [Full Topic] +// A Boolean value that indicates if the window has a title bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419390-resizeincrements?language=objc -func (w_ Window) SetResizeIncrements(value foundation.Size) { - objc.Call[objc.Void](w_, objc.Sel("setResizeIncrements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449568-hastitlebar?language=objc +func (w_ Window) HasTitleBar() bool { + rv := objc.Call[bool](w_, objc.Sel("hasTitleBar")) + return rv } -// A Boolean value that indicates whether the window can display tooltips even when the application is in the background. [Full Topic] +// A Boolean value that indicates whether the window can minimize. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419138-allowstooltipswhenapplicationisi?language=objc -func (w_ Window) AllowsToolTipsWhenApplicationIsInactive() bool { - rv := objc.Call[bool](w_, objc.Sel("allowsToolTipsWhenApplicationIsInactive")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449583-miniaturizable?language=objc +func (w_ Window) IsMiniaturizable() bool { + rv := objc.Call[bool](w_, objc.Sel("isMiniaturizable")) return rv } -// A Boolean value that indicates whether the window can display tooltips even when the application is in the background. [Full Topic] +// The minimum size to which the window’s frame (including its title bar) can be sized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419138-allowstooltipswhenapplicationisi?language=objc -func (w_ Window) SetAllowsToolTipsWhenApplicationIsInactive(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setAllowsToolTipsWhenApplicationIsInactive:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419206-minsize?language=objc +func (w_ Window) MinSize() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("minSize")) + return rv } -// A Boolean value that indicates whether the window is minimized. [Full Topic] +// The minimum size to which the window’s frame (including its title bar) can be sized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419699-miniaturized?language=objc -func (w_ Window) IsMiniaturized() bool { - rv := objc.Call[bool](w_, objc.Sel("isMiniaturized")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419206-minsize?language=objc +func (w_ Window) SetMinSize(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setMinSize:"), value) } -// The zero-based position of the window, based on its order from front to back among all visible application windows. [Full Topic] +// The window’s backing store type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449577-orderedindex?language=objc -func (w_ Window) OrderedIndex() int { - rv := objc.Call[int](w_, objc.Sel("orderedIndex")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419599-backingtype?language=objc +func (w_ Window) BackingType() BackingStoreType { + rv := objc.Call[BackingStoreType](w_, objc.Sel("backingType")) return rv } -// The zero-based position of the window, based on its order from front to back among all visible application windows. [Full Topic] +// The window’s backing store type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449577-orderedindex?language=objc -func (w_ Window) SetOrderedIndex(value int) { - objc.Call[objc.Void](w_, objc.Sel("setOrderedIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419599-backingtype?language=objc +func (w_ Window) SetBackingType(value BackingStoreType) { + objc.Call[objc.Void](w_, objc.Sel("setBackingType:"), value) } -// The button cell that performs as if clicked when the window receives a Return (or Enter) key event. [Full Topic] +// The custom miniaturized window image of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419328-defaultbuttoncell?language=objc -func (w_ Window) DefaultButtonCell() ButtonCell { - rv := objc.Call[ButtonCell](w_, objc.Sel("defaultButtonCell")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419185-miniwindowimage?language=objc +func (w_ Window) MiniwindowImage() Image { + rv := objc.Call[Image](w_, objc.Sel("miniwindowImage")) return rv } -// The button cell that performs as if clicked when the window receives a Return (or Enter) key event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419328-defaultbuttoncell?language=objc -func (w_ Window) SetDefaultButtonCell(value IButtonCell) { - objc.Call[objc.Void](w_, objc.Sel("setDefaultButtonCell:"), value) -} - -// A Boolean value that indicates whether the window can become the application’s main window. [Full Topic] +// The custom miniaturized window image of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419162-canbecomemainwindow?language=objc -func (w_ Window) CanBecomeMainWindow() bool { - rv := objc.Call[bool](w_, objc.Sel("canBecomeMainWindow")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419185-miniwindowimage?language=objc +func (w_ Window) SetMiniwindowImage(value IImage) { + objc.Call[objc.Void](w_, objc.Sel("setMiniwindowImage:"), value) } -// The window’s alpha value. [Full Topic] +// The window’s toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419186-alphavalue?language=objc -func (w_ Window) AlphaValue() float64 { - rv := objc.Call[float64](w_, objc.Sel("alphaValue")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419731-toolbar?language=objc +func (w_ Window) Toolbar() Toolbar { + rv := objc.Call[Toolbar](w_, objc.Sel("toolbar")) return rv } -// The window’s alpha value. [Full Topic] +// The window’s toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419186-alphavalue?language=objc -func (w_ Window) SetAlphaValue(value float64) { - objc.Call[objc.Void](w_, objc.Sel("setAlphaValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419731-toolbar?language=objc +func (w_ Window) SetToolbar(value IToolbar) { + objc.Call[objc.Void](w_, objc.Sel("setToolbar:"), value) } -// Flags that describe the window’s current style, such as if it’s resizable or in full-screen mode. [Full Topic] +// The window’s color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419078-stylemask?language=objc -func (w_ Window) StyleMask() WindowStyleMask { - rv := objc.Call[WindowStyleMask](w_, objc.Sel("styleMask")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419569-colorspace?language=objc +func (w_ Window) ColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](w_, objc.Sel("colorSpace")) return rv } -// Flags that describe the window’s current style, such as if it’s resizable or in full-screen mode. [Full Topic] +// The window’s color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419078-stylemask?language=objc -func (w_ Window) SetStyleMask(value WindowStyleMask) { - objc.Call[objc.Void](w_, objc.Sel("setStyleMask:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419569-colorspace?language=objc +func (w_ Window) SetColorSpace(value IColorSpace) { + objc.Call[objc.Void](w_, objc.Sel("setColorSpace:"), value) } -// The view that’s made first responder (also called the key view) the first time the window is placed onscreen. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419479-initialfirstresponder?language=objc -func (w_ Window) InitialFirstResponder() View { - rv := objc.Call[View](w_, objc.Sel("initialFirstResponder")) +// The depth limit of the window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419613-depthlimit?language=objc +func (w_ Window) DepthLimit() WindowDepth { + rv := objc.Call[WindowDepth](w_, objc.Sel("depthLimit")) return rv } -// The view that’s made first responder (also called the key view) the first time the window is placed onscreen. [Full Topic] +// The depth limit of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419479-initialfirstresponder?language=objc -func (w_ Window) SetInitialFirstResponder(value IView) { - objc.Call[objc.Void](w_, objc.Sel("setInitialFirstResponder:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419613-depthlimit?language=objc +func (w_ Window) SetDepthLimit(value WindowDepth) { + objc.Call[objc.Void](w_, objc.Sel("setDepthLimit:"), value) } -// The deepest screen the window is on (it may be split over several screens). [Full Topic] +// The window’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419080-deepestscreen?language=objc -func (w_ Window) DeepestScreen() Screen { - rv := objc.Call[Screen](w_, objc.Sel("deepestScreen")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419060-delegate?language=objc +func (w_ Window) Delegate() WindowDelegateObject { + rv := objc.Call[WindowDelegateObject](w_, objc.Sel("delegate")) return rv } -// The window’s backing store type. [Full Topic] +// The window’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419599-backingtype?language=objc -func (w_ Window) BackingType() BackingStoreType { - rv := objc.Call[BackingStoreType](w_, objc.Sel("backingType")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419060-delegate?language=objc +func (w_ Window) SetDelegate(value PWindowDelegate) { + po0 := objc.WrapAsProtocol("NSWindowDelegate", value) + objc.SetAssociatedObject(w_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](w_, objc.Sel("setDelegate:"), po0) } -// The window’s backing store type. [Full Topic] +// The window’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419599-backingtype?language=objc -func (w_ Window) SetBackingType(value BackingStoreType) { - objc.Call[objc.Void](w_, objc.Sel("setBackingType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419060-delegate?language=objc +func (w_ Window) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("setDelegate:"), valueObject) } -// The sheet attached to the window. [Full Topic] +// The flags field of the event record for the mouse-down event that initiated the resizing session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419467-attachedsheet?language=objc -func (w_ Window) AttachedSheet() Window { - rv := objc.Call[Window](w_, objc.Sel("attachedSheet")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419302-resizeflags?language=objc +func (w_ Window) ResizeFlags() EventModifierFlags { + rv := objc.Call[EventModifierFlags](w_, objc.Sel("resizeFlags")) return rv } -// A Boolean value that indicates the level of access other processes have to the window’s content. [Full Topic] +// A Boolean value that indicates whether the window is a floating panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419729-sharingtype?language=objc -func (w_ Window) SharingType() WindowSharingType { - rv := objc.Call[WindowSharingType](w_, objc.Sel("sharingType")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449579-floatingpanel?language=objc +func (w_ Window) IsFloatingPanel() bool { + rv := objc.Call[bool](w_, objc.Sel("isFloatingPanel")) return rv } -// A Boolean value that indicates the level of access other processes have to the window’s content. [Full Topic] +// A Boolean value that indicates whether the window is being resized by the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419729-sharingtype?language=objc -func (w_ Window) SetSharingType(value WindowSharingType) { - objc.Call[objc.Void](w_, objc.Sel("setSharingType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419378-inliveresize?language=objc +func (w_ Window) InLiveResize() bool { + rv := objc.Call[bool](w_, objc.Sel("inLiveResize")) + return rv } -// The window’s first responder. [Full Topic] +// The color of the window’s background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419440-firstresponder?language=objc -func (w_ Window) FirstResponder() Responder { - rv := objc.Call[Responder](w_, objc.Sel("firstResponder")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419751-backgroundcolor?language=objc +func (w_ Window) BackgroundColor() Color { + rv := objc.Call[Color](w_, objc.Sel("backgroundColor")) return rv } -// A Boolean value that indicates whether the window is the application’s main window. [Full Topic] +// The color of the window’s background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419130-mainwindow?language=objc -func (w_ Window) IsMainWindow() bool { - rv := objc.Call[bool](w_, objc.Sel("isMainWindow")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419751-backgroundcolor?language=objc +func (w_ Window) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](w_, objc.Sel("setBackgroundColor:"), value) } -// A Boolean value that indicates whether the window allows multithreaded view drawing. [Full Topic] +// A Boolean value that indicates whether the title bar draws its background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419300-allowsconcurrentviewdrawing?language=objc -func (w_ Window) AllowsConcurrentViewDrawing() bool { - rv := objc.Call[bool](w_, objc.Sel("allowsConcurrentViewDrawing")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419167-titlebarappearstransparent?language=objc +func (w_ Window) TitlebarAppearsTransparent() bool { + rv := objc.Call[bool](w_, objc.Sel("titlebarAppearsTransparent")) return rv } -// A Boolean value that indicates whether the window allows multithreaded view drawing. [Full Topic] +// A Boolean value that indicates whether the title bar draws its background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419300-allowsconcurrentviewdrawing?language=objc -func (w_ Window) SetAllowsConcurrentViewDrawing(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setAllowsConcurrentViewDrawing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419167-titlebarappearstransparent?language=objc +func (w_ Window) SetTitlebarAppearsTransparent(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setTitlebarAppearsTransparent:"), value) } -// A Boolean value that indicates whether the window is being resized by the user. [Full Topic] +// An array of title bar accessory view controllers that are currently added to the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419378-inliveresize?language=objc -func (w_ Window) InLiveResize() bool { - rv := objc.Call[bool](w_, objc.Sel("inLiveResize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419547-titlebaraccessoryviewcontrollers?language=objc +func (w_ Window) TitlebarAccessoryViewControllers() []TitlebarAccessoryViewController { + rv := objc.Call[[]TitlebarAccessoryViewController](w_, objc.Sel("titlebarAccessoryViewControllers")) return rv } -// The maximum size of the window’s content view in the window’s base coordinate system. [Full Topic] +// An array of title bar accessory view controllers that are currently added to the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419154-contentmaxsize?language=objc -func (w_ Window) ContentMaxSize() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("contentMaxSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419547-titlebaraccessoryviewcontrollers?language=objc +func (w_ Window) SetTitlebarAccessoryViewControllers(value []ITitlebarAccessoryViewController) { + objc.Call[objc.Void](w_, objc.Sel("setTitlebarAccessoryViewControllers:"), value) +} + +// The window’s resizing increments. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419390-resizeincrements?language=objc +func (w_ Window) ResizeIncrements() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("resizeIncrements")) return rv } -// The maximum size of the window’s content view in the window’s base coordinate system. [Full Topic] +// The window’s resizing increments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419154-contentmaxsize?language=objc -func (w_ Window) SetContentMaxSize(value foundation.Size) { - objc.Call[objc.Void](w_, objc.Sel("setContentMaxSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419390-resizeincrements?language=objc +func (w_ Window) SetResizeIncrements(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setResizeIncrements:"), value) } -// The style that determines the appearance and location of the toolbar in relation to the title bar. [Full Topic] +// The Carbon window reference associated with the window, creating one if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3608199-toolbarstyle?language=objc -func (w_ Window) ToolbarStyle() WindowToolbarStyle { - rv := objc.Call[WindowToolbarStyle](w_, objc.Sel("toolbarStyle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419485-windowref?language=objc +func (w_ Window) WindowRef() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](w_, objc.Sel("windowRef")) return rv } -// The style that determines the appearance and location of the toolbar in relation to the title bar. [Full Topic] +// A Boolean value that indicates whether the window can hide when its application becomes hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3608199-toolbarstyle?language=objc -func (w_ Window) SetToolbarStyle(value WindowToolbarStyle) { - objc.Call[objc.Void](w_, objc.Sel("setToolbarStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419725-canhide?language=objc +func (w_ Window) CanHide() bool { + rv := objc.Call[bool](w_, objc.Sel("canHide")) + return rv } -// A Boolean value that indicates whether the window is in a zoomed state. [Full Topic] +// A Boolean value that indicates whether the window can hide when its application becomes hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419398-zoomed?language=objc -func (w_ Window) IsZoomed() bool { - rv := objc.Call[bool](w_, objc.Sel("isZoomed")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419725-canhide?language=objc +func (w_ Window) SetCanHide(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setCanHide:"), value) } -// The minimum size of the window’s content view in the window’s base coordinate system. [Full Topic] +// A Boolean value that indicates whether the window is opaque. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419670-contentminsize?language=objc -func (w_ Window) ContentMinSize() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("contentMinSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419086-opaque?language=objc +func (w_ Window) IsOpaque() bool { + rv := objc.Call[bool](w_, objc.Sel("isOpaque")) return rv } -// The minimum size of the window’s content view in the window’s base coordinate system. [Full Topic] +// A Boolean value that indicates whether the window is opaque. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419670-contentminsize?language=objc -func (w_ Window) SetContentMinSize(value foundation.Size) { - objc.Call[objc.Void](w_, objc.Sel("setContentMinSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419086-opaque?language=objc +func (w_ Window) SetOpaque(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setOpaque:"), value) } // The URL of the file the window represents. [Full Topic] @@ -2197,88 +2097,72 @@ func (w_ Window) SetRepresentedURL(value foundation.IURL) { objc.Call[objc.Void](w_, objc.Sel("setRepresentedURL:"), value) } -// A value that allows a group of related windows. [Full Topic] +// The view that’s made first responder (also called the key view) the first time the window is placed onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier?language=objc -func (w_ Window) TabbingIdentifier() WindowTabbingIdentifier { - rv := objc.Call[WindowTabbingIdentifier](w_, objc.Sel("tabbingIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419479-initialfirstresponder?language=objc +func (w_ Window) InitialFirstResponder() View { + rv := objc.Call[View](w_, objc.Sel("initialFirstResponder")) return rv } -// A value that allows a group of related windows. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier?language=objc -func (w_ Window) SetTabbingIdentifier(value WindowTabbingIdentifier) { - objc.Call[objc.Void](w_, objc.Sel("setTabbingIdentifier:"), value) -} - -// An object that represents information about a window when it displays as a tab. [Full Topic] +// The view that’s made first responder (also called the key view) the first time the window is placed onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2870102-tab?language=objc -func (w_ Window) Tab() WindowTab { - rv := objc.Call[WindowTab](w_, objc.Sel("tab")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419479-initialfirstresponder?language=objc +func (w_ Window) SetInitialFirstResponder(value IView) { + objc.Call[objc.Void](w_, objc.Sel("setInitialFirstResponder:"), value) } -// A Boolean value that indicates whether the window’s document has been edited. [Full Topic] +// A Boolean value that indicates whether the window allows zooming. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419311-documentedited?language=objc -func (w_ Window) IsDocumentEdited() bool { - rv := objc.Call[bool](w_, objc.Sel("isDocumentEdited")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449587-zoomable?language=objc +func (w_ Window) IsZoomable() bool { + rv := objc.Call[bool](w_, objc.Sel("isZoomable")) return rv } -// A Boolean value that indicates whether the window’s document has been edited. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419311-documentedited?language=objc -func (w_ Window) SetDocumentEdited(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setDocumentEdited:"), value) -} - -// A Boolean value that indicates whether the window’s depth limit can change to match the depth of the screen it’s on. [Full Topic] +// The occlusion state of the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419330-hasdynamicdepthlimit?language=objc -func (w_ Window) HasDynamicDepthLimit() bool { - rv := objc.Call[bool](w_, objc.Sel("hasDynamicDepthLimit")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419321-occlusionstate?language=objc +func (w_ Window) OcclusionState() WindowOcclusionState { + rv := objc.Call[WindowOcclusionState](w_, objc.Sel("occlusionState")) return rv } -// A maximum size that is used to determine if a window can fit when it is in full screen in a tile. [Full Topic] +// A Boolean value that indicates whether the window allows multithreaded view drawing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419438-maxfullscreencontentsize?language=objc -func (w_ Window) MaxFullScreenContentSize() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("maxFullScreenContentSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419300-allowsconcurrentviewdrawing?language=objc +func (w_ Window) AllowsConcurrentViewDrawing() bool { + rv := objc.Call[bool](w_, objc.Sel("allowsConcurrentViewDrawing")) return rv } -// A maximum size that is used to determine if a window can fit when it is in full screen in a tile. [Full Topic] +// A Boolean value that indicates whether the window allows multithreaded view drawing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419438-maxfullscreencontentsize?language=objc -func (w_ Window) SetMaxFullScreenContentSize(value foundation.Size) { - objc.Call[objc.Void](w_, objc.Sel("setMaxFullScreenContentSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419300-allowsconcurrentviewdrawing?language=objc +func (w_ Window) SetAllowsConcurrentViewDrawing(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAllowsConcurrentViewDrawing:"), value) } -// The window’s frame rectangle in screen coordinates, including the title bar. [Full Topic] +// A Boolean value that indicates whether the window can be displayed at the login window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419697-frame?language=objc -func (w_ Window) Frame() foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("frame")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419179-canbecomevisiblewithoutlogin?language=objc +func (w_ Window) CanBecomeVisibleWithoutLogin() bool { + rv := objc.Call[bool](w_, objc.Sel("canBecomeVisibleWithoutLogin")) return rv } -// The window number of the window’s window device. [Full Topic] +// A Boolean value that indicates whether the window can be displayed at the login window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419068-windownumber?language=objc -func (w_ Window) WindowNumber() int { - rv := objc.Call[int](w_, objc.Sel("windowNumber")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419179-canbecomevisiblewithoutlogin?language=objc +func (w_ Window) SetCanBecomeVisibleWithoutLogin(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setCanBecomeVisibleWithoutLogin:"), value) } -// The window to which the sheet is attached. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419052-sheetparent?language=objc -func (w_ Window) SheetParent() Window { - rv := objc.Call[Window](w_, objc.Sel("sheetParent")) +// A Boolean value that indicates whether the window’s cursor rectangles are enabled. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419668-arecursorrectsenabled?language=objc +func (w_ Window) AreCursorRectsEnabled() bool { + rv := objc.Call[bool](w_, objc.Sel("areCursorRectsEnabled")) return rv } @@ -2297,275 +2181,311 @@ func (w_ Window) SetContentViewController(value IViewController) { objc.Call[objc.Void](w_, objc.Sel("setContentViewController:"), value) } -// The screen the window is on. [Full Topic] +// A dictionary containing information about the window’s resolution, such as color, depth, and so on. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419232-screen?language=objc -func (w_ Window) Screen() Screen { - rv := objc.Call[Screen](w_, objc.Sel("screen")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419741-devicedescription?language=objc +func (w_ Window) DeviceDescription() map[DeviceDescriptionKey]objc.Object { + rv := objc.Call[map[DeviceDescriptionKey]objc.Object](w_, objc.Sel("deviceDescription")) return rv } -// A Boolean value that indicates whether the window is the key window for the application. [Full Topic] +// The minimum size of the window’s content view in the window’s base coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419735-keywindow?language=objc -func (w_ Window) IsKeyWindow() bool { - rv := objc.Call[bool](w_, objc.Sel("isKeyWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419670-contentminsize?language=objc +func (w_ Window) ContentMinSize() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("contentMinSize")) return rv } -// A minimum size that is used to determine if a window can fit when it is in full screen in a tile. [Full Topic] +// The minimum size of the window’s content view in the window’s base coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419627-minfullscreencontentsize?language=objc -func (w_ Window) MinFullScreenContentSize() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("minFullScreenContentSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419670-contentminsize?language=objc +func (w_ Window) SetContentMinSize(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setContentMinSize:"), value) +} + +// The type of separator that the app displays between the title bar and content of a window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3622489-titlebarseparatorstyle?language=objc +func (w_ Window) TitlebarSeparatorStyle() TitlebarSeparatorStyle { + rv := objc.Call[TitlebarSeparatorStyle](w_, objc.Sel("titlebarSeparatorStyle")) return rv } -// A minimum size that is used to determine if a window can fit when it is in full screen in a tile. [Full Topic] +// The type of separator that the app displays between the title bar and content of a window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419627-minfullscreencontentsize?language=objc -func (w_ Window) SetMinFullScreenContentSize(value foundation.Size) { - objc.Call[objc.Void](w_, objc.Sel("setMinFullScreenContentSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/3622489-titlebarseparatorstyle?language=objc +func (w_ Window) SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) { + objc.Call[objc.Void](w_, objc.Sel("setTitlebarSeparatorStyle:"), value) } -// The window’s toolbar. [Full Topic] +// A Boolean value that indicates whether the window’s document has been edited. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419731-toolbar?language=objc -func (w_ Window) Toolbar() Toolbar { - rv := objc.Call[Toolbar](w_, objc.Sel("toolbar")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419311-documentedited?language=objc +func (w_ Window) IsDocumentEdited() bool { + rv := objc.Call[bool](w_, objc.Sel("isDocumentEdited")) return rv } -// The window’s toolbar. [Full Topic] +// A Boolean value that indicates whether the window’s document has been edited. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419731-toolbar?language=objc -func (w_ Window) SetToolbar(value IToolbar) { - objc.Call[objc.Void](w_, objc.Sel("setToolbar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419311-documentedited?language=objc +func (w_ Window) SetDocumentEdited(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setDocumentEdited:"), value) } -// The depth limit of the window. [Full Topic] +// A value that identifies the window’s behavior in window collections. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419613-depthlimit?language=objc -func (w_ Window) DepthLimit() WindowDepth { - rv := objc.Call[WindowDepth](w_, objc.Sel("depthLimit")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419471-collectionbehavior?language=objc +func (w_ Window) CollectionBehavior() WindowCollectionBehavior { + rv := objc.Call[WindowCollectionBehavior](w_, objc.Sel("collectionBehavior")) return rv } -// The depth limit of the window. [Full Topic] +// A value that identifies the window’s behavior in window collections. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419613-depthlimit?language=objc -func (w_ Window) SetDepthLimit(value WindowDepth) { - objc.Call[objc.Void](w_, objc.Sel("setDepthLimit:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419471-collectionbehavior?language=objc +func (w_ Window) SetCollectionBehavior(value WindowCollectionBehavior) { + objc.Call[objc.Void](w_, objc.Sel("setCollectionBehavior:"), value) } -// The window level of the window. [Full Topic] +// A value that allows a group of related windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419511-level?language=objc -func (w_ Window) Level() WindowLevel { - rv := objc.Call[WindowLevel](w_, objc.Sel("level")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier?language=objc +func (w_ Window) TabbingIdentifier() WindowTabbingIdentifier { + rv := objc.Call[WindowTabbingIdentifier](w_, objc.Sel("tabbingIdentifier")) return rv } -// The window level of the window. [Full Topic] +// A value that allows a group of related windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419511-level?language=objc -func (w_ Window) SetLevel(value WindowLevel) { - objc.Call[objc.Void](w_, objc.Sel("setLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier?language=objc +func (w_ Window) SetTabbingIdentifier(value WindowTabbingIdentifier) { + objc.Call[objc.Void](w_, objc.Sel("setTabbingIdentifier:"), value) } -// The string that appears in the title bar of the window or the path to the represented file. [Full Topic] +// The window’s window controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419404-title?language=objc -func (w_ Window) Title() string { - rv := objc.Call[string](w_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419092-windowcontroller?language=objc +func (w_ Window) WindowController() WindowController { + rv := objc.Call[WindowController](w_, objc.Sel("windowController")) return rv } -// The string that appears in the title bar of the window or the path to the represented file. [Full Topic] +// The window’s window controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419404-title?language=objc -func (w_ Window) SetTitle(value string) { - objc.Call[objc.Void](w_, objc.Sel("setTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419092-windowcontroller?language=objc +func (w_ Window) SetWindowController(value IWindowController) { + objc.Call[objc.Void](w_, objc.Sel("setWindowController:"), value) } -// The title displayed in the window’s minimized window. [Full Topic] +// A Boolean value that indicates whether the window prevents application termination when modal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419571-miniwindowtitle?language=objc -func (w_ Window) MiniwindowTitle() string { - rv := objc.Call[string](w_, objc.Sel("miniwindowTitle")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419743-preventsapplicationterminationwh?language=objc +func (w_ Window) PreventsApplicationTerminationWhenModal() bool { + rv := objc.Call[bool](w_, objc.Sel("preventsApplicationTerminationWhenModal")) return rv } -// The title displayed in the window’s minimized window. [Full Topic] +// A Boolean value that indicates whether the window prevents application termination when modal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419571-miniwindowtitle?language=objc -func (w_ Window) SetMiniwindowTitle(value string) { - objc.Call[objc.Void](w_, objc.Sel("setMiniwindowTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419743-preventsapplicationterminationwh?language=objc +func (w_ Window) SetPreventsApplicationTerminationWhenModal(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setPreventsApplicationTerminationWhenModal:"), value) } -// A Boolean value that indicates whether any of the window’s views need to be displayed. [Full Topic] +// The backing scale factor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419609-viewsneeddisplay?language=objc -func (w_ Window) ViewsNeedDisplay() bool { - rv := objc.Call[bool](w_, objc.Sel("viewsNeedDisplay")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419459-backingscalefactor?language=objc +func (w_ Window) BackingScaleFactor() float64 { + rv := objc.Call[float64](w_, objc.Sel("backingScaleFactor")) return rv } -// A Boolean value that indicates whether any of the window’s views need to be displayed. [Full Topic] +// A group of windows that display together as a tab group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419609-viewsneeddisplay?language=objc -func (w_ Window) SetViewsNeedDisplay(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setViewsNeedDisplay:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2879189-tabgroup?language=objc +func (w_ Window) TabGroup() WindowTabGroup { + rv := objc.Call[WindowTabGroup](w_, objc.Sel("tabGroup")) + return rv } -// The window’s aspect ratio, which constrains the size of its frame rectangle to integral multiples of this ratio when the user resizes it. [Full Topic] +// The direction the window’s title bar lays text out, either left to right or right to left. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419507-aspectratio?language=objc -func (w_ Window) AspectRatio() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("aspectRatio")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644535-windowtitlebarlayoutdirection?language=objc +func (w_ Window) WindowTitlebarLayoutDirection() UserInterfaceLayoutDirection { + rv := objc.Call[UserInterfaceLayoutDirection](w_, objc.Sel("windowTitlebarLayoutDirection")) return rv } -// The window’s aspect ratio, which constrains the size of its frame rectangle to integral multiples of this ratio when the user resizes it. [Full Topic] +// A value that indicates when a window displays tabs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419507-aspectratio?language=objc -func (w_ Window) SetAspectRatio(value foundation.Size) { - objc.Call[objc.Void](w_, objc.Sel("setAspectRatio:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644729-tabbingmode?language=objc +func (w_ Window) TabbingMode() WindowTabbingMode { + rv := objc.Call[WindowTabbingMode](w_, objc.Sel("tabbingMode")) + return rv } -// A Boolean value that indicates whether the window prevents application termination when modal. [Full Topic] +// A value that indicates when a window displays tabs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419743-preventsapplicationterminationwh?language=objc -func (w_ Window) PreventsApplicationTerminationWhenModal() bool { - rv := objc.Call[bool](w_, objc.Sel("preventsApplicationTerminationWhenModal")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1644729-tabbingmode?language=objc +func (w_ Window) SetTabbingMode(value WindowTabbingMode) { + objc.Call[objc.Void](w_, objc.Sel("setTabbingMode:"), value) +} + +// The path to the file of the window’s represented file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419631-representedfilename?language=objc +func (w_ Window) RepresentedFilename() string { + rv := objc.Call[string](w_, objc.Sel("representedFilename")) return rv } -// A Boolean value that indicates whether the window prevents application termination when modal. [Full Topic] +// The path to the file of the window’s represented file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419743-preventsapplicationterminationwh?language=objc -func (w_ Window) SetPreventsApplicationTerminationWhenModal(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setPreventsApplicationTerminationWhenModal:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419631-representedfilename?language=objc +func (w_ Window) SetRepresentedFilename(value string) { + objc.Call[objc.Void](w_, objc.Sel("setRepresentedFilename:"), value) } -// An array of title bar accessory view controllers that are currently added to the window. [Full Topic] +// The window’s aspect ratio, which constrains the size of its frame rectangle to integral multiples of this ratio when the user resizes it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419547-titlebaraccessoryviewcontrollers?language=objc -func (w_ Window) TitlebarAccessoryViewControllers() []TitlebarAccessoryViewController { - rv := objc.Call[[]TitlebarAccessoryViewController](w_, objc.Sel("titlebarAccessoryViewControllers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419507-aspectratio?language=objc +func (w_ Window) AspectRatio() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("aspectRatio")) return rv } -// An array of title bar accessory view controllers that are currently added to the window. [Full Topic] +// The window’s aspect ratio, which constrains the size of its frame rectangle to integral multiples of this ratio when the user resizes it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419547-titlebaraccessoryviewcontrollers?language=objc -func (w_ Window) SetTitlebarAccessoryViewControllers(value []ITitlebarAccessoryViewController) { - objc.Call[objc.Void](w_, objc.Sel("setTitlebarAccessoryViewControllers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419507-aspectratio?language=objc +func (w_ Window) SetAspectRatio(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setAspectRatio:"), value) } -// A Boolean value that indicates whether the window automatically recalculates the key view loop when views are added. [Full Topic] +// The window number of the window’s window device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419214-autorecalculateskeyviewloop?language=objc -func (w_ Window) AutorecalculatesKeyViewLoop() bool { - rv := objc.Call[bool](w_, objc.Sel("autorecalculatesKeyViewLoop")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419068-windownumber?language=objc +func (w_ Window) WindowNumber() int { + rv := objc.Call[int](w_, objc.Sel("windowNumber")) return rv } -// A Boolean value that indicates whether the window automatically recalculates the key view loop when views are added. [Full Topic] +// The window’s frame rectangle in screen coordinates, including the title bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419214-autorecalculateskeyviewloop?language=objc -func (w_ Window) SetAutorecalculatesKeyViewLoop(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setAutorecalculatesKeyViewLoop:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419697-frame?language=objc +func (w_ Window) Frame() foundation.Rect { + rv := objc.Call[foundation.Rect](w_, objc.Sel("frame")) + return rv } -// Returns the default depth limit for instances of NSWindow. [Full Topic] +// A Boolean value that indicates whether the window can become the application’s main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419049-defaultdepthlimit?language=objc -func (wc _WindowClass) DefaultDepthLimit() WindowDepth { - rv := objc.Call[WindowDepth](wc, objc.Sel("defaultDepthLimit")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419162-canbecomemainwindow?language=objc +func (w_ Window) CanBecomeMainWindow() bool { + rv := objc.Call[bool](w_, objc.Sel("canBecomeMainWindow")) return rv } -// Returns the default depth limit for instances of NSWindow. [Full Topic] +// The string that appears in the title bar of the window or the path to the represented file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419049-defaultdepthlimit?language=objc -func Window_DefaultDepthLimit() WindowDepth { - return WindowClass.DefaultDepthLimit() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419404-title?language=objc +func (w_ Window) Title() string { + rv := objc.Call[string](w_, objc.Sel("title")) + return rv } -// A Boolean value that indicates whether the window can be dragged by clicking in its title bar or background. [Full Topic] +// The string that appears in the title bar of the window or the path to the represented file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419579-movable?language=objc -func (w_ Window) IsMovable() bool { - rv := objc.Call[bool](w_, objc.Sel("isMovable")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419404-title?language=objc +func (w_ Window) SetTitle(value string) { + objc.Call[objc.Void](w_, objc.Sel("setTitle:"), value) +} + +// A Boolean value that indicates if the window has a close box. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449574-hasclosebox?language=objc +func (w_ Window) HasCloseBox() bool { + rv := objc.Call[bool](w_, objc.Sel("hasCloseBox")) return rv } -// A Boolean value that indicates whether the window can be dragged by clicking in its title bar or background. [Full Topic] +// A Boolean value that indicates whether the window’s depth limit can change to match the depth of the screen it’s on. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419579-movable?language=objc -func (w_ Window) SetMovable(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setMovable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419330-hasdynamicdepthlimit?language=objc +func (w_ Window) HasDynamicDepthLimit() bool { + rv := objc.Call[bool](w_, objc.Sel("hasDynamicDepthLimit")) + return rv } -// The window’s content-view resizing increments. [Full Topic] +// A string representation of the window’s frame rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419649-contentresizeincrements?language=objc -func (w_ Window) ContentResizeIncrements() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("contentResizeIncrements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419515-stringwithsavedframe?language=objc +func (w_ Window) StringWithSavedFrame() WindowPersistableFrameDescriptor { + rv := objc.Call[WindowPersistableFrameDescriptor](w_, objc.Sel("stringWithSavedFrame")) return rv } -// The window’s content-view resizing increments. [Full Topic] +// A Boolean value that indicates if the user can resize the window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419649-contentresizeincrements?language=objc -func (w_ Window) SetContentResizeIncrements(value foundation.Size) { - objc.Call[objc.Void](w_, objc.Sel("setContentResizeIncrements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449572-resizable?language=objc +func (w_ Window) IsResizable() bool { + rv := objc.Call[bool](w_, objc.Sel("isResizable")) + return rv } -// The window’s color space. [Full Topic] +// The application’s Dock tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419569-colorspace?language=objc -func (w_ Window) ColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](w_, objc.Sel("colorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419088-docktile?language=objc +func (w_ Window) DockTile() DockTile { + rv := objc.Call[DockTile](w_, objc.Sel("dockTile")) return rv } -// The window’s color space. [Full Topic] +// A Boolean value that indicates whether the window is on the currently active space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419569-colorspace?language=objc -func (w_ Window) SetColorSpace(value IColorSpace) { - objc.Call[objc.Void](w_, objc.Sel("setColorSpace:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419707-onactivespace?language=objc +func (w_ Window) IsOnActiveSpace() bool { + rv := objc.Call[bool](w_, objc.Sel("isOnActiveSpace")) + return rv } -// A Boolean value that indicates whether the window context should be updated when the screen profile changes or when the window moves to a different screen. [Full Topic] +// A Boolean value that indicates whether the window automatically recalculates the key view loop when views are added. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419430-displayswhenscreenprofilechanges?language=objc -func (w_ Window) DisplaysWhenScreenProfileChanges() bool { - rv := objc.Call[bool](w_, objc.Sel("displaysWhenScreenProfileChanges")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419214-autorecalculateskeyviewloop?language=objc +func (w_ Window) AutorecalculatesKeyViewLoop() bool { + rv := objc.Call[bool](w_, objc.Sel("autorecalculatesKeyViewLoop")) return rv } -// A Boolean value that indicates whether the window context should be updated when the screen profile changes or when the window moves to a different screen. [Full Topic] +// A Boolean value that indicates whether the window automatically recalculates the key view loop when views are added. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419430-displayswhenscreenprofilechanges?language=objc -func (w_ Window) SetDisplaysWhenScreenProfileChanges(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setDisplaysWhenScreenProfileChanges:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419214-autorecalculateskeyviewloop?language=objc +func (w_ Window) SetAutorecalculatesKeyViewLoop(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAutorecalculatesKeyViewLoop:"), value) } -// A Boolean value that indicates whether the window has a shadow. [Full Topic] +// An object that the window inherits its appearance from. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419234-hasshadow?language=objc -func (w_ Window) HasShadow() bool { - rv := objc.Call[bool](w_, objc.Sel("hasShadow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2998855-appearancesource?language=objc +func (w_ Window) AppearanceSource() objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("appearanceSource")) return rv } -// A Boolean value that indicates whether the window has a shadow. [Full Topic] +// An object that the window inherits its appearance from. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419234-hasshadow?language=objc -func (w_ Window) SetHasShadow(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setHasShadow:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/2998855-appearancesource?language=objc +func (w_ Window) SetAppearanceSource(value objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("setAppearanceSource:"), value) +} + +// The sheet attached to the window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419467-attachedsheet?language=objc +func (w_ Window) AttachedSheet() Window { + rv := objc.Call[Window](w_, objc.Sel("attachedSheet")) + return rv } // A Boolean value that indicates whether the window is transparent to mouse events. [Full Topic] @@ -2583,170 +2503,169 @@ func (w_ Window) SetIgnoresMouseEvents(value bool) { objc.Call[objc.Void](w_, objc.Sel("setIgnoresMouseEvents:"), value) } -// An array of the window’s attached child windows. [Full Topic] +// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419236-childwindows?language=objc -func (w_ Window) ChildWindows() []Window { - rv := objc.Call[[]Window](w_, objc.Sel("childWindows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc +func (wc _WindowClass) AllowsAutomaticWindowTabbing() bool { + rv := objc.Call[bool](wc, objc.Sel("allowsAutomaticWindowTabbing")) return rv } -// A value that identifies the window’s behavior in window collections. [Full Topic] +// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419471-collectionbehavior?language=objc -func (w_ Window) CollectionBehavior() WindowCollectionBehavior { - rv := objc.Call[WindowCollectionBehavior](w_, objc.Sel("collectionBehavior")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc +func Window_AllowsAutomaticWindowTabbing() bool { + return WindowClass.AllowsAutomaticWindowTabbing() } -// A value that identifies the window’s behavior in window collections. [Full Topic] +// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419471-collectionbehavior?language=objc -func (w_ Window) SetCollectionBehavior(value WindowCollectionBehavior) { - objc.Call[objc.Void](w_, objc.Sel("setCollectionBehavior:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc +func (wc _WindowClass) SetAllowsAutomaticWindowTabbing(value bool) { + objc.Call[objc.Void](wc, objc.Sel("setAllowsAutomaticWindowTabbing:"), value) } -// A value that indicates the visibility of the window’s title and title bar buttons. [Full Topic] +// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419635-titlevisibility?language=objc -func (w_ Window) TitleVisibility() WindowTitleVisibility { - rv := objc.Call[WindowTitleVisibility](w_, objc.Sel("titleVisibility")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc +func Window_SetAllowsAutomaticWindowTabbing(value bool) { + WindowClass.SetAllowsAutomaticWindowTabbing(value) } -// A value that indicates the visibility of the window’s title and title bar buttons. [Full Topic] +// A value used by Auto Layout constraints to automatically bind to the value of contentLayoutRect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419635-titlevisibility?language=objc -func (w_ Window) SetTitleVisibility(value WindowTitleVisibility) { - objc.Call[objc.Void](w_, objc.Sel("setTitleVisibility:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419094-contentlayoutguide?language=objc +func (w_ Window) ContentLayoutGuide() objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("contentLayoutGuide")) + return rv } -// The event currently being processed by the application. [Full Topic] +// The direction the window is currently using to change the key view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419298-currentevent?language=objc -func (w_ Window) CurrentEvent() Event { - rv := objc.Call[Event](w_, objc.Sel("currentEvent")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419158-keyviewselectiondirection?language=objc +func (w_ Window) KeyViewSelectionDirection() SelectionDirection { + rv := objc.Call[SelectionDirection](w_, objc.Sel("keyViewSelectionDirection")) return rv } -// A Boolean value that indicates whether the window tries to optimize user-initiated resize operations by preserving the content of views that have not changed. [Full Topic] +// A Boolean value that indicates whether the window is movable by clicking and dragging anywhere in its background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419588-preservescontentduringliveresize?language=objc -func (w_ Window) PreservesContentDuringLiveResize() bool { - rv := objc.Call[bool](w_, objc.Sel("preservesContentDuringLiveResize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419072-movablebywindowbackground?language=objc +func (w_ Window) IsMovableByWindowBackground() bool { + rv := objc.Call[bool](w_, objc.Sel("isMovableByWindowBackground")) return rv } -// A Boolean value that indicates whether the window tries to optimize user-initiated resize operations by preserving the content of views that have not changed. [Full Topic] +// A Boolean value that indicates whether the window is movable by clicking and dragging anywhere in its background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419588-preservescontentduringliveresize?language=objc -func (w_ Window) SetPreservesContentDuringLiveResize(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setPreservesContentDuringLiveResize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419072-movablebywindowbackground?language=objc +func (w_ Window) SetMovableByWindowBackground(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setMovableByWindowBackground:"), value) } -// An array of windows that display as tabs. [Full Topic] +// A Boolean value that indicates whether the window can be dragged by clicking in its title bar or background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1792044-tabbedwindows?language=objc -func (w_ Window) TabbedWindows() []Window { - rv := objc.Call[[]Window](w_, objc.Sel("tabbedWindows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419579-movable?language=objc +func (w_ Window) IsMovable() bool { + rv := objc.Call[bool](w_, objc.Sel("isMovable")) return rv } -// The restoration class associated with the window. [Full Topic] +// A Boolean value that indicates whether the window can be dragged by clicking in its title bar or background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526241-restorationclass?language=objc -func (w_ Window) RestorationClass() objc.Class { - rv := objc.Call[objc.Class](w_, objc.Sel("restorationClass")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419579-movable?language=objc +func (w_ Window) SetMovable(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setMovable:"), value) } -// The restoration class associated with the window. [Full Topic] +// A Boolean value that indicates whether the window is in a zoomed state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1526241-restorationclass?language=objc -func (w_ Window) SetRestorationClass(value objc.IClass) { - objc.Call[objc.Void](w_, objc.Sel("setRestorationClass:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419398-zoomed?language=objc +func (w_ Window) IsZoomed() bool { + rv := objc.Call[bool](w_, objc.Sel("isZoomed")) + return rv } -// The color of the window’s background. [Full Topic] +// The maximum size of the window’s content view in the window’s base coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419751-backgroundcolor?language=objc -func (w_ Window) BackgroundColor() Color { - rv := objc.Call[Color](w_, objc.Sel("backgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419154-contentmaxsize?language=objc +func (w_ Window) ContentMaxSize() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("contentMaxSize")) return rv } -// The color of the window’s background. [Full Topic] +// The maximum size of the window’s content view in the window’s base coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419751-backgroundcolor?language=objc -func (w_ Window) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](w_, objc.Sel("setBackgroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419154-contentmaxsize?language=objc +func (w_ Window) SetContentMaxSize(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setContentMaxSize:"), value) } -// A Boolean value that indicates whether the window is released when it receives the close message. [Full Topic] +// A Boolean value that indicates whether the window can become the key window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419062-releasedwhenclosed?language=objc -func (w_ Window) IsReleasedWhenClosed() bool { - rv := objc.Call[bool](w_, objc.Sel("isReleasedWhenClosed")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419543-canbecomekeywindow?language=objc +func (w_ Window) CanBecomeKeyWindow() bool { + rv := objc.Call[bool](w_, objc.Sel("canBecomeKeyWindow")) return rv } -// A Boolean value that indicates whether the window is released when it receives the close message. [Full Topic] +// The window’s content-view resizing increments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419062-releasedwhenclosed?language=objc -func (w_ Window) SetReleasedWhenClosed(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setReleasedWhenClosed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419649-contentresizeincrements?language=objc +func (w_ Window) ContentResizeIncrements() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("contentResizeIncrements")) + return rv } -// A Boolean value that indicates whether the window is a modal panel. [Full Topic] +// The window’s content-view resizing increments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1449576-modalpanel?language=objc -func (w_ Window) IsModalPanel() bool { - rv := objc.Call[bool](w_, objc.Sel("isModalPanel")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419649-contentresizeincrements?language=objc +func (w_ Window) SetContentResizeIncrements(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setContentResizeIncrements:"), value) } -// A string representation of the window’s frame rectangle. [Full Topic] +// The name used to automatically save the window’s frame rectangle data in the defaults system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419515-stringwithsavedframe?language=objc -func (w_ Window) StringWithSavedFrame() WindowPersistableFrameDescriptor { - rv := objc.Call[WindowPersistableFrameDescriptor](w_, objc.Sel("stringWithSavedFrame")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419362-frameautosavename?language=objc +func (w_ Window) FrameAutosaveName() WindowFrameAutosaveName { + rv := objc.Call[WindowFrameAutosaveName](w_, objc.Sel("frameAutosaveName")) return rv } -// The window’s automatic animation behavior. [Full Topic] +// A maximum size that is used to determine if a window can fit when it is in full screen in a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419763-animationbehavior?language=objc -func (w_ Window) AnimationBehavior() WindowAnimationBehavior { - rv := objc.Call[WindowAnimationBehavior](w_, objc.Sel("animationBehavior")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419438-maxfullscreencontentsize?language=objc +func (w_ Window) MaxFullScreenContentSize() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("maxFullScreenContentSize")) return rv } -// The window’s automatic animation behavior. [Full Topic] +// A maximum size that is used to determine if a window can fit when it is in full screen in a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419763-animationbehavior?language=objc -func (w_ Window) SetAnimationBehavior(value WindowAnimationBehavior) { - objc.Call[objc.Void](w_, objc.Sel("setAnimationBehavior:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419438-maxfullscreencontentsize?language=objc +func (w_ Window) SetMaxFullScreenContentSize(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setMaxFullScreenContentSize:"), value) } -// A dictionary containing information about the window’s resolution, such as color, depth, and so on. [Full Topic] +// A Boolean value that indicates whether the window can display tooltips even when the application is in the background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419741-devicedescription?language=objc -func (w_ Window) DeviceDescription() map[DeviceDescriptionKey]objc.Object { - rv := objc.Call[map[DeviceDescriptionKey]objc.Object](w_, objc.Sel("deviceDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419138-allowstooltipswhenapplicationisi?language=objc +func (w_ Window) AllowsToolTipsWhenApplicationIsInactive() bool { + rv := objc.Call[bool](w_, objc.Sel("allowsToolTipsWhenApplicationIsInactive")) return rv } -// The minimum size to which the window’s frame (including its title bar) can be sized. [Full Topic] +// A Boolean value that indicates whether the window can display tooltips even when the application is in the background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419206-minsize?language=objc -func (w_ Window) MinSize() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("minSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419138-allowstooltipswhenapplicationisi?language=objc +func (w_ Window) SetAllowsToolTipsWhenApplicationIsInactive(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAllowsToolTipsWhenApplicationIsInactive:"), value) } -// The minimum size to which the window’s frame (including its title bar) can be sized. [Full Topic] +// The window to which the sheet is attached. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419206-minsize?language=objc -func (w_ Window) SetMinSize(value foundation.Size) { - objc.Call[objc.Void](w_, objc.Sel("setMinSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419052-sheetparent?language=objc +func (w_ Window) SheetParent() Window { + rv := objc.Call[Window](w_, objc.Sel("sheetParent")) + return rv } diff --git a/macos/appkit/window_controller.gen.go b/macos/appkit/window_controller.gen.go index e7e6ad8c..8d831b02 100644 --- a/macos/appkit/window_controller.gen.go +++ b/macos/appkit/window_controller.gen.go @@ -20,30 +20,30 @@ type IWindowController interface { IResponder SetDocumentEdited(dirtyFlag bool) WindowDidLoad() - SynchronizeWindowTitleWithDocumentName() - Close() - DismissController(sender objc.IObject) objc.Object - LoadWindow() ShowWindow(sender objc.IObject) objc.Object + DismissController(sender objc.IObject) objc.Object + Close() WindowTitleForDocumentDisplayName(displayName string) string + SynchronizeWindowTitleWithDocumentName() + LoadWindow() WindowWillLoad() - WindowNibPath() string - WindowNibName() NibName - Storyboard() Storyboard - IsWindowLoaded() bool - ContentViewController() ViewController - SetContentViewController(value IViewController) - Document() objc.Object - SetDocument(value objc.IObject) - Window() Window - SetWindow(value IWindow) WindowFrameAutosaveName() WindowFrameAutosaveName SetWindowFrameAutosaveName(value WindowFrameAutosaveName) ShouldCloseDocument() bool SetShouldCloseDocument(value bool) + Owner() objc.Object + Document() objc.Object + SetDocument(value objc.IObject) + ContentViewController() ViewController + SetContentViewController(value IViewController) + IsWindowLoaded() bool + Storyboard() Storyboard + WindowNibName() NibName ShouldCascadeWindows() bool SetShouldCascadeWindows(value bool) - Owner() objc.Object + Window() Window + SetWindow(value IWindow) + WindowNibPath() string } // A controller that manages a window, usually a window stored in a nib file. [Full Topic] @@ -59,34 +59,6 @@ func WindowControllerFrom(ptr unsafe.Pointer) WindowController { } } -func (w_ WindowController) InitWithWindowNibNameOwner(windowNibName NibName, owner objc.IObject) WindowController { - rv := objc.Call[WindowController](w_, objc.Sel("initWithWindowNibName:owner:"), windowNibName, owner) - return rv -} - -// Returns a window controller initialized with a nib file and a specified owner for that nib file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1535239-initwithwindownibname?language=objc -func NewWindowControllerWithWindowNibNameOwner(windowNibName NibName, owner objc.IObject) WindowController { - instance := WindowControllerClass.Alloc().InitWithWindowNibNameOwner(windowNibName, owner) - instance.Autorelease() - return instance -} - -func (w_ WindowController) InitWithWindowNibName(windowNibName NibName) WindowController { - rv := objc.Call[WindowController](w_, objc.Sel("initWithWindowNibName:"), windowNibName) - return rv -} - -// Returns a window controller initialized with a nib file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1527041-initwithwindownibname?language=objc -func NewWindowControllerWithWindowNibName(windowNibName NibName) WindowController { - instance := WindowControllerClass.Alloc().InitWithWindowNibName(windowNibName) - instance.Autorelease() - return instance -} - func (w_ WindowController) InitWithWindow(window IWindow) WindowController { rv := objc.Call[WindowController](w_, objc.Sel("initWithWindow:"), window) return rv @@ -115,6 +87,20 @@ func NewWindowControllerWithWindowNibPathOwner(windowNibPath string, owner objc. return instance } +func (w_ WindowController) InitWithWindowNibNameOwner(windowNibName NibName, owner objc.IObject) WindowController { + rv := objc.Call[WindowController](w_, objc.Sel("initWithWindowNibName:owner:"), windowNibName, owner) + return rv +} + +// Returns a window controller initialized with a nib file and a specified owner for that nib file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1535239-initwithwindownibname?language=objc +func NewWindowControllerWithWindowNibNameOwner(windowNibName NibName, owner objc.IObject) WindowController { + instance := WindowControllerClass.Alloc().InitWithWindowNibNameOwner(windowNibName, owner) + instance.Autorelease() + return instance +} + func (wc _WindowControllerClass) Alloc() WindowController { rv := objc.Call[WindowController](wc, objc.Sel("alloc")) return rv @@ -149,18 +135,12 @@ func (w_ WindowController) WindowDidLoad() { objc.Call[objc.Void](w_, objc.Sel("windowDidLoad")) } -// Synchronizes the displayed window title and the represented filename with the information in the associated document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1524667-synchronizewindowtitlewithdocume?language=objc -func (w_ WindowController) SynchronizeWindowTitleWithDocumentName() { - objc.Call[objc.Void](w_, objc.Sel("synchronizeWindowTitleWithDocumentName")) -} - -// Closes the window if it was loaded. [Full Topic] +// Displays the window associated with the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1535390-close?language=objc -func (w_ WindowController) Close() { - objc.Call[objc.Void](w_, objc.Sel("close")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1534037-showwindow?language=objc +func (w_ WindowController) ShowWindow(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("showWindow:"), sender) + return rv } // Dismisses the window controller. [Full Topic] @@ -171,19 +151,11 @@ func (w_ WindowController) DismissController(sender objc.IObject) objc.Object { return rv } -// Loads the receiver’s window from the nib file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1535137-loadwindow?language=objc -func (w_ WindowController) LoadWindow() { - objc.Call[objc.Void](w_, objc.Sel("loadWindow")) -} - -// Displays the window associated with the receiver. [Full Topic] +// Closes the window if it was loaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1534037-showwindow?language=objc -func (w_ WindowController) ShowWindow(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("showWindow:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1535390-close?language=objc +func (w_ WindowController) Close() { + objc.Call[objc.Void](w_, objc.Sel("close")) } // Returns the window title to be used for a given document display name. [Full Topic] @@ -194,6 +166,20 @@ func (w_ WindowController) WindowTitleForDocumentDisplayName(displayName string) return rv } +// Synchronizes the displayed window title and the represented filename with the information in the associated document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1524667-synchronizewindowtitlewithdocume?language=objc +func (w_ WindowController) SynchronizeWindowTitleWithDocumentName() { + objc.Call[objc.Void](w_, objc.Sel("synchronizeWindowTitleWithDocumentName")) +} + +// Loads the receiver’s window from the nib file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1535137-loadwindow?language=objc +func (w_ WindowController) LoadWindow() { + objc.Call[objc.Void](w_, objc.Sel("loadWindow")) +} + // Sent before the window owned by the receiver is loaded. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1524557-windowwillload?language=objc @@ -201,53 +187,44 @@ func (w_ WindowController) WindowWillLoad() { objc.Call[objc.Void](w_, objc.Sel("windowWillLoad")) } -// The full path of the nib file that stores the window associated with the receiver. [Full Topic] +// The name under which the frame rectangle of the window owned by the receiver is stored in the defaults database. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1524719-windownibpath?language=objc -func (w_ WindowController) WindowNibPath() string { - rv := objc.Call[string](w_, objc.Sel("windowNibPath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1528616-windowframeautosavename?language=objc +func (w_ WindowController) WindowFrameAutosaveName() WindowFrameAutosaveName { + rv := objc.Call[WindowFrameAutosaveName](w_, objc.Sel("windowFrameAutosaveName")) return rv } -// The name of the nib file that stores the window associated with the receiver. [Full Topic] +// The name under which the frame rectangle of the window owned by the receiver is stored in the defaults database. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1527084-windownibname?language=objc -func (w_ WindowController) WindowNibName() NibName { - rv := objc.Call[NibName](w_, objc.Sel("windowNibName")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1528616-windowframeautosavename?language=objc +func (w_ WindowController) SetWindowFrameAutosaveName(value WindowFrameAutosaveName) { + objc.Call[objc.Void](w_, objc.Sel("setWindowFrameAutosaveName:"), value) } -// The storyboard file from which the window controller was loaded. [Full Topic] +// A Boolean value that indicates whether the receiver necessarily closes the associated document when the window it manages is closed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1527268-storyboard?language=objc -func (w_ WindowController) Storyboard() Storyboard { - rv := objc.Call[Storyboard](w_, objc.Sel("storyboard")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1526933-shouldclosedocument?language=objc +func (w_ WindowController) ShouldCloseDocument() bool { + rv := objc.Call[bool](w_, objc.Sel("shouldCloseDocument")) return rv } -// A Boolean value that indicates whether the nib file containing the receiver’s window has been loaded. [Full Topic] +// A Boolean value that indicates whether the receiver necessarily closes the associated document when the window it manages is closed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1527496-windowloaded?language=objc -func (w_ WindowController) IsWindowLoaded() bool { - rv := objc.Call[bool](w_, objc.Sel("isWindowLoaded")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1526933-shouldclosedocument?language=objc +func (w_ WindowController) SetShouldCloseDocument(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setShouldCloseDocument:"), value) } -// The view controller for the window’s content view. [Full Topic] +// The owner of the nib file containing the window managed by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1532552-contentviewcontroller?language=objc -func (w_ WindowController) ContentViewController() ViewController { - rv := objc.Call[ViewController](w_, objc.Sel("contentViewController")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1532707-owner?language=objc +func (w_ WindowController) Owner() objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("owner")) return rv } -// The view controller for the window’s content view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1532552-contentviewcontroller?language=objc -func (w_ WindowController) SetContentViewController(value IViewController) { - objc.Call[objc.Void](w_, objc.Sel("setContentViewController:"), value) -} - // The document associated with the window controller. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1534220-document?language=objc @@ -263,49 +240,43 @@ func (w_ WindowController) SetDocument(value objc.IObject) { objc.Call[objc.Void](w_, objc.Sel("setDocument:"), value) } -// The window owned by the receiver. [Full Topic] +// The view controller for the window’s content view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1535593-window?language=objc -func (w_ WindowController) Window() Window { - rv := objc.Call[Window](w_, objc.Sel("window")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1532552-contentviewcontroller?language=objc +func (w_ WindowController) ContentViewController() ViewController { + rv := objc.Call[ViewController](w_, objc.Sel("contentViewController")) return rv } -// The window owned by the receiver. [Full Topic] +// The view controller for the window’s content view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1535593-window?language=objc -func (w_ WindowController) SetWindow(value IWindow) { - objc.Call[objc.Void](w_, objc.Sel("setWindow:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1532552-contentviewcontroller?language=objc +func (w_ WindowController) SetContentViewController(value IViewController) { + objc.Call[objc.Void](w_, objc.Sel("setContentViewController:"), value) } -// The name under which the frame rectangle of the window owned by the receiver is stored in the defaults database. [Full Topic] +// A Boolean value that indicates whether the nib file containing the receiver’s window has been loaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1528616-windowframeautosavename?language=objc -func (w_ WindowController) WindowFrameAutosaveName() WindowFrameAutosaveName { - rv := objc.Call[WindowFrameAutosaveName](w_, objc.Sel("windowFrameAutosaveName")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1527496-windowloaded?language=objc +func (w_ WindowController) IsWindowLoaded() bool { + rv := objc.Call[bool](w_, objc.Sel("isWindowLoaded")) return rv } -// The name under which the frame rectangle of the window owned by the receiver is stored in the defaults database. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1528616-windowframeautosavename?language=objc -func (w_ WindowController) SetWindowFrameAutosaveName(value WindowFrameAutosaveName) { - objc.Call[objc.Void](w_, objc.Sel("setWindowFrameAutosaveName:"), value) -} - -// A Boolean value that indicates whether the receiver necessarily closes the associated document when the window it manages is closed. [Full Topic] +// The storyboard file from which the window controller was loaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1526933-shouldclosedocument?language=objc -func (w_ WindowController) ShouldCloseDocument() bool { - rv := objc.Call[bool](w_, objc.Sel("shouldCloseDocument")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1527268-storyboard?language=objc +func (w_ WindowController) Storyboard() Storyboard { + rv := objc.Call[Storyboard](w_, objc.Sel("storyboard")) return rv } -// A Boolean value that indicates whether the receiver necessarily closes the associated document when the window it manages is closed. [Full Topic] +// The name of the nib file that stores the window associated with the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1526933-shouldclosedocument?language=objc -func (w_ WindowController) SetShouldCloseDocument(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setShouldCloseDocument:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1527084-windownibname?language=objc +func (w_ WindowController) WindowNibName() NibName { + rv := objc.Call[NibName](w_, objc.Sel("windowNibName")) + return rv } // A Boolean value that indicates whether the window will cascade in relation to other document windows when it is displayed. [Full Topic] @@ -323,10 +294,25 @@ func (w_ WindowController) SetShouldCascadeWindows(value bool) { objc.Call[objc.Void](w_, objc.Sel("setShouldCascadeWindows:"), value) } -// The owner of the nib file containing the window managed by the receiver. [Full Topic] +// The window owned by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1532707-owner?language=objc -func (w_ WindowController) Owner() objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("owner")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1535593-window?language=objc +func (w_ WindowController) Window() Window { + rv := objc.Call[Window](w_, objc.Sel("window")) + return rv +} + +// The window owned by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1535593-window?language=objc +func (w_ WindowController) SetWindow(value IWindow) { + objc.Call[objc.Void](w_, objc.Sel("setWindow:"), value) +} + +// The full path of the nib file that stores the window associated with the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1524719-windownibpath?language=objc +func (w_ WindowController) WindowNibPath() string { + rv := objc.Call[string](w_, objc.Sel("windowNibPath")) return rv } diff --git a/macos/appkit/window_delegate.gen.go b/macos/appkit/window_delegate.gen.go index e8641743..1dfaf86a 100644 --- a/macos/appkit/window_delegate.gen.go +++ b/macos/appkit/window_delegate.gen.go @@ -12,672 +12,396 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate?language=objc type PWindowDelegate interface { // optional - WindowWillUseFullScreenContentSize(window Window, proposedSize foundation.Size) foundation.Size - HasWindowWillUseFullScreenContentSize() bool - - // optional - WindowDidMove(notification foundation.Notification) - HasWindowDidMove() bool - - // optional - WindowDidDeminiaturize(notification foundation.Notification) - HasWindowDidDeminiaturize() bool - - // optional - WindowDidChangeScreenProfile(notification foundation.Notification) - HasWindowDidChangeScreenProfile() bool - - // optional - CustomWindowsToEnterFullScreenForWindowOnScreen(window Window, screen Screen) []Window - HasCustomWindowsToEnterFullScreenForWindowOnScreen() bool - - // optional - WindowDidChangeScreen(notification foundation.Notification) - HasWindowDidChangeScreen() bool - - // optional - WindowWillUseFullScreenPresentationOptions(window Window, proposedOptions ApplicationPresentationOptions) ApplicationPresentationOptions - HasWindowWillUseFullScreenPresentationOptions() bool - - // optional - WindowWillBeginSheet(notification foundation.Notification) - HasWindowWillBeginSheet() bool - - // optional - WindowWillReturnFieldEditorToObject(sender Window, client objc.Object) objc.Object - HasWindowWillReturnFieldEditorToObject() bool - - // optional - WindowShouldClose(sender Window) bool - HasWindowShouldClose() bool + WindowDidFailToExitFullScreen(window Window) + HasWindowDidFailToExitFullScreen() bool // optional - WindowDidResignKey(notification foundation.Notification) - HasWindowDidResignKey() bool + WindowShouldZoomToFrame(window Window, newFrame foundation.Rect) bool + HasWindowShouldZoomToFrame() bool // optional WindowDidEndSheet(notification foundation.Notification) HasWindowDidEndSheet() bool - // optional - WindowDidBecomeKey(notification foundation.Notification) - HasWindowDidBecomeKey() bool - - // optional - WindowWillResizeToSize(sender Window, frameSize foundation.Size) foundation.Size - HasWindowWillResizeToSize() bool - - // optional - WindowWillMiniaturize(notification foundation.Notification) - HasWindowWillMiniaturize() bool - - // optional - WindowWillEncodeRestorableState(window Window, state foundation.Coder) - HasWindowWillEncodeRestorableState() bool - - // optional - WindowWillExitVersionBrowser(notification foundation.Notification) - HasWindowWillExitVersionBrowser() bool - - // optional - WindowDidEnterFullScreen(notification foundation.Notification) - HasWindowDidEnterFullScreen() bool - // optional WindowDidResize(notification foundation.Notification) HasWindowDidResize() bool + // optional + WindowWillEnterFullScreen(notification foundation.Notification) + HasWindowWillEnterFullScreen() bool + // optional WindowWillMove(notification foundation.Notification) HasWindowWillMove() bool // optional - WindowStartCustomAnimationToExitFullScreenWithDuration(window Window, duration foundation.TimeInterval) - HasWindowStartCustomAnimationToExitFullScreenWithDuration() bool + WindowWillStartLiveResize(notification foundation.Notification) + HasWindowWillStartLiveResize() bool // optional - WindowWillExitFullScreen(notification foundation.Notification) - HasWindowWillExitFullScreen() bool + WindowDidFailToEnterFullScreen(window Window) + HasWindowDidFailToEnterFullScreen() bool + + // optional + WindowWillResizeToSize(sender Window, frameSize foundation.Size) foundation.Size + HasWindowWillResizeToSize() bool // optional - WindowShouldPopUpDocumentPathMenu(window Window, menu Menu) bool - HasWindowShouldPopUpDocumentPathMenu() bool + WindowDidChangeOcclusionState(notification foundation.Notification) + HasWindowDidChangeOcclusionState() bool // optional - WindowDidMiniaturize(notification foundation.Notification) - HasWindowDidMiniaturize() bool + WindowDidChangeScreenProfile(notification foundation.Notification) + HasWindowDidChangeScreenProfile() bool // optional WindowWillReturnUndoManager(window Window) foundation.UndoManager HasWindowWillReturnUndoManager() bool // optional - WindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize(window Window, maxPreferredFrameSize foundation.Size, maxAllowedFrameSize foundation.Size) foundation.Size - HasWindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize() bool + WindowWillBeginSheet(notification foundation.Notification) + HasWindowWillBeginSheet() bool // optional - WindowWillEnterFullScreen(notification foundation.Notification) - HasWindowWillEnterFullScreen() bool + WindowDidResignKey(notification foundation.Notification) + HasWindowDidResignKey() bool // optional - WindowDidFailToEnterFullScreen(window Window) - HasWindowDidFailToEnterFullScreen() bool + WindowShouldClose(sender Window) bool + HasWindowShouldClose() bool // optional - WindowDidExpose(notification foundation.Notification) - HasWindowDidExpose() bool + WindowDidExitVersionBrowser(notification foundation.Notification) + HasWindowDidExitVersionBrowser() bool // optional - WindowDidEndLiveResize(notification foundation.Notification) - HasWindowDidEndLiveResize() bool + WindowDidBecomeKey(notification foundation.Notification) + HasWindowDidBecomeKey() bool // optional - WindowShouldZoomToFrame(window Window, newFrame foundation.Rect) bool - HasWindowShouldZoomToFrame() bool + WindowDidResignMain(notification foundation.Notification) + HasWindowDidResignMain() bool // optional - WindowDidBecomeMain(notification foundation.Notification) - HasWindowDidBecomeMain() bool + WindowDidExitFullScreen(notification foundation.Notification) + HasWindowDidExitFullScreen() bool // optional - WindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration(window Window, screen Screen, duration foundation.TimeInterval) - HasWindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration() bool + WindowDidBecomeMain(notification foundation.Notification) + HasWindowDidBecomeMain() bool // optional - WindowShouldDragDocumentWithEventFromWithPasteboard(window Window, event Event, dragImageLocation foundation.Point, pasteboard Pasteboard) bool - HasWindowShouldDragDocumentWithEventFromWithPasteboard() bool + WindowDidMiniaturize(notification foundation.Notification) + HasWindowDidMiniaturize() bool // optional - WindowDidDecodeRestorableState(window Window, state foundation.Coder) - HasWindowDidDecodeRestorableState() bool + WindowDidExpose(notification foundation.Notification) + HasWindowDidExpose() bool // optional - WindowWillPositionSheetUsingRect(window Window, sheet Window, rect foundation.Rect) foundation.Rect - HasWindowWillPositionSheetUsingRect() bool + WindowWillMiniaturize(notification foundation.Notification) + HasWindowWillMiniaturize() bool // optional WindowDidChangeBackingProperties(notification foundation.Notification) HasWindowDidChangeBackingProperties() bool + // optional + WindowWillClose(notification foundation.Notification) + HasWindowWillClose() bool + // optional CustomWindowsToEnterFullScreenForWindow(window Window) []Window HasCustomWindowsToEnterFullScreenForWindow() bool // optional - WindowWillUseStandardFrameDefaultFrame(window Window, newFrame foundation.Rect) foundation.Rect - HasWindowWillUseStandardFrameDefaultFrame() bool + WindowWillEnterVersionBrowser(notification foundation.Notification) + HasWindowWillEnterVersionBrowser() bool // optional - WindowDidEnterVersionBrowser(notification foundation.Notification) - HasWindowDidEnterVersionBrowser() bool + WindowDidEndLiveResize(notification foundation.Notification) + HasWindowDidEndLiveResize() bool // optional - WindowStartCustomAnimationToEnterFullScreenWithDuration(window Window, duration foundation.TimeInterval) - HasWindowStartCustomAnimationToEnterFullScreenWithDuration() bool + WindowDidUpdate(notification foundation.Notification) + HasWindowDidUpdate() bool // optional - WindowDidResignMain(notification foundation.Notification) - HasWindowDidResignMain() bool + WindowWillExitVersionBrowser(notification foundation.Notification) + HasWindowWillExitVersionBrowser() bool // optional - WindowDidExitVersionBrowser(notification foundation.Notification) - HasWindowDidExitVersionBrowser() bool + WindowWillReturnFieldEditorToObject(sender Window, client objc.Object) objc.Object + HasWindowWillReturnFieldEditorToObject() bool // optional - WindowWillClose(notification foundation.Notification) - HasWindowWillClose() bool + WindowDidDeminiaturize(notification foundation.Notification) + HasWindowDidDeminiaturize() bool // optional CustomWindowsToExitFullScreenForWindow(window Window) []Window HasCustomWindowsToExitFullScreenForWindow() bool // optional - WindowDidUpdate(notification foundation.Notification) - HasWindowDidUpdate() bool + WindowDidDecodeRestorableState(window Window, state foundation.Coder) + HasWindowDidDecodeRestorableState() bool // optional - WindowWillStartLiveResize(notification foundation.Notification) - HasWindowWillStartLiveResize() bool + WindowDidMove(notification foundation.Notification) + HasWindowDidMove() bool // optional - WindowDidChangeOcclusionState(notification foundation.Notification) - HasWindowDidChangeOcclusionState() bool + WindowDidChangeScreen(notification foundation.Notification) + HasWindowDidChangeScreen() bool // optional - WindowDidFailToExitFullScreen(window Window) - HasWindowDidFailToExitFullScreen() bool + WindowDidEnterFullScreen(notification foundation.Notification) + HasWindowDidEnterFullScreen() bool // optional - WindowDidExitFullScreen(notification foundation.Notification) - HasWindowDidExitFullScreen() bool + WindowWillExitFullScreen(notification foundation.Notification) + HasWindowWillExitFullScreen() bool // optional - WindowWillEnterVersionBrowser(notification foundation.Notification) - HasWindowWillEnterVersionBrowser() bool + WindowWillUseStandardFrameDefaultFrame(window Window, newFrame foundation.Rect) foundation.Rect + HasWindowWillUseStandardFrameDefaultFrame() bool + + // optional + WindowDidEnterVersionBrowser(notification foundation.Notification) + HasWindowDidEnterVersionBrowser() bool } // A delegate implementation builder for the [PWindowDelegate] protocol. type WindowDelegate struct { - _WindowWillUseFullScreenContentSize func(window Window, proposedSize foundation.Size) foundation.Size - _WindowDidMove func(notification foundation.Notification) - _WindowDidDeminiaturize func(notification foundation.Notification) - _WindowDidChangeScreenProfile func(notification foundation.Notification) - _CustomWindowsToEnterFullScreenForWindowOnScreen func(window Window, screen Screen) []Window - _WindowDidChangeScreen func(notification foundation.Notification) - _WindowWillUseFullScreenPresentationOptions func(window Window, proposedOptions ApplicationPresentationOptions) ApplicationPresentationOptions - _WindowWillBeginSheet func(notification foundation.Notification) - _WindowWillReturnFieldEditorToObject func(sender Window, client objc.Object) objc.Object - _WindowShouldClose func(sender Window) bool - _WindowDidResignKey func(notification foundation.Notification) - _WindowDidEndSheet func(notification foundation.Notification) - _WindowDidBecomeKey func(notification foundation.Notification) - _WindowWillResizeToSize func(sender Window, frameSize foundation.Size) foundation.Size - _WindowWillMiniaturize func(notification foundation.Notification) - _WindowWillEncodeRestorableState func(window Window, state foundation.Coder) - _WindowWillExitVersionBrowser func(notification foundation.Notification) - _WindowDidEnterFullScreen func(notification foundation.Notification) - _WindowDidResize func(notification foundation.Notification) - _WindowWillMove func(notification foundation.Notification) - _WindowStartCustomAnimationToExitFullScreenWithDuration func(window Window, duration foundation.TimeInterval) - _WindowWillExitFullScreen func(notification foundation.Notification) - _WindowShouldPopUpDocumentPathMenu func(window Window, menu Menu) bool - _WindowDidMiniaturize func(notification foundation.Notification) - _WindowWillReturnUndoManager func(window Window) foundation.UndoManager - _WindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize func(window Window, maxPreferredFrameSize foundation.Size, maxAllowedFrameSize foundation.Size) foundation.Size - _WindowWillEnterFullScreen func(notification foundation.Notification) - _WindowDidFailToEnterFullScreen func(window Window) - _WindowDidExpose func(notification foundation.Notification) - _WindowDidEndLiveResize func(notification foundation.Notification) - _WindowShouldZoomToFrame func(window Window, newFrame foundation.Rect) bool - _WindowDidBecomeMain func(notification foundation.Notification) - _WindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration func(window Window, screen Screen, duration foundation.TimeInterval) - _WindowShouldDragDocumentWithEventFromWithPasteboard func(window Window, event Event, dragImageLocation foundation.Point, pasteboard Pasteboard) bool - _WindowDidDecodeRestorableState func(window Window, state foundation.Coder) - _WindowWillPositionSheetUsingRect func(window Window, sheet Window, rect foundation.Rect) foundation.Rect - _WindowDidChangeBackingProperties func(notification foundation.Notification) - _CustomWindowsToEnterFullScreenForWindow func(window Window) []Window - _WindowWillUseStandardFrameDefaultFrame func(window Window, newFrame foundation.Rect) foundation.Rect - _WindowDidEnterVersionBrowser func(notification foundation.Notification) - _WindowStartCustomAnimationToEnterFullScreenWithDuration func(window Window, duration foundation.TimeInterval) - _WindowDidResignMain func(notification foundation.Notification) - _WindowDidExitVersionBrowser func(notification foundation.Notification) - _WindowWillClose func(notification foundation.Notification) - _CustomWindowsToExitFullScreenForWindow func(window Window) []Window - _WindowDidUpdate func(notification foundation.Notification) - _WindowWillStartLiveResize func(notification foundation.Notification) - _WindowDidChangeOcclusionState func(notification foundation.Notification) - _WindowDidFailToExitFullScreen func(window Window) - _WindowDidExitFullScreen func(notification foundation.Notification) - _WindowWillEnterVersionBrowser func(notification foundation.Notification) -} - -func (di *WindowDelegate) HasWindowWillUseFullScreenContentSize() bool { - return di._WindowWillUseFullScreenContentSize != nil -} - -// Called to allow the delegate to modify the full-screen content size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419282-window?language=objc -func (di *WindowDelegate) SetWindowWillUseFullScreenContentSize(f func(window Window, proposedSize foundation.Size) foundation.Size) { - di._WindowWillUseFullScreenContentSize = f -} - -// Called to allow the delegate to modify the full-screen content size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419282-window?language=objc -func (di *WindowDelegate) WindowWillUseFullScreenContentSize(window Window, proposedSize foundation.Size) foundation.Size { - return di._WindowWillUseFullScreenContentSize(window, proposedSize) + _WindowDidFailToExitFullScreen func(window Window) + _WindowShouldZoomToFrame func(window Window, newFrame foundation.Rect) bool + _WindowDidEndSheet func(notification foundation.Notification) + _WindowDidResize func(notification foundation.Notification) + _WindowWillEnterFullScreen func(notification foundation.Notification) + _WindowWillMove func(notification foundation.Notification) + _WindowWillStartLiveResize func(notification foundation.Notification) + _WindowDidFailToEnterFullScreen func(window Window) + _WindowWillResizeToSize func(sender Window, frameSize foundation.Size) foundation.Size + _WindowDidChangeOcclusionState func(notification foundation.Notification) + _WindowDidChangeScreenProfile func(notification foundation.Notification) + _WindowWillReturnUndoManager func(window Window) foundation.UndoManager + _WindowWillBeginSheet func(notification foundation.Notification) + _WindowDidResignKey func(notification foundation.Notification) + _WindowShouldClose func(sender Window) bool + _WindowDidExitVersionBrowser func(notification foundation.Notification) + _WindowDidBecomeKey func(notification foundation.Notification) + _WindowDidResignMain func(notification foundation.Notification) + _WindowDidExitFullScreen func(notification foundation.Notification) + _WindowDidBecomeMain func(notification foundation.Notification) + _WindowDidMiniaturize func(notification foundation.Notification) + _WindowDidExpose func(notification foundation.Notification) + _WindowWillMiniaturize func(notification foundation.Notification) + _WindowDidChangeBackingProperties func(notification foundation.Notification) + _WindowWillClose func(notification foundation.Notification) + _CustomWindowsToEnterFullScreenForWindow func(window Window) []Window + _WindowWillEnterVersionBrowser func(notification foundation.Notification) + _WindowDidEndLiveResize func(notification foundation.Notification) + _WindowDidUpdate func(notification foundation.Notification) + _WindowWillExitVersionBrowser func(notification foundation.Notification) + _WindowWillReturnFieldEditorToObject func(sender Window, client objc.Object) objc.Object + _WindowDidDeminiaturize func(notification foundation.Notification) + _CustomWindowsToExitFullScreenForWindow func(window Window) []Window + _WindowDidDecodeRestorableState func(window Window, state foundation.Coder) + _WindowDidMove func(notification foundation.Notification) + _WindowDidChangeScreen func(notification foundation.Notification) + _WindowDidEnterFullScreen func(notification foundation.Notification) + _WindowWillExitFullScreen func(notification foundation.Notification) + _WindowWillUseStandardFrameDefaultFrame func(window Window, newFrame foundation.Rect) foundation.Rect + _WindowDidEnterVersionBrowser func(notification foundation.Notification) } -func (di *WindowDelegate) HasWindowDidMove() bool { - return di._WindowDidMove != nil + +func (di *WindowDelegate) HasWindowDidFailToExitFullScreen() bool { + return di._WindowDidFailToExitFullScreen != nil } -// Tells the delegate that the window has moved. [Full Topic] +// Called if the window failed to exit full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419674-windowdidmove?language=objc -func (di *WindowDelegate) SetWindowDidMove(f func(notification foundation.Notification)) { - di._WindowDidMove = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419573-windowdidfailtoexitfullscreen?language=objc +func (di *WindowDelegate) SetWindowDidFailToExitFullScreen(f func(window Window)) { + di._WindowDidFailToExitFullScreen = f } -// Tells the delegate that the window has moved. [Full Topic] +// Called if the window failed to exit full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419674-windowdidmove?language=objc -func (di *WindowDelegate) WindowDidMove(notification foundation.Notification) { - di._WindowDidMove(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419573-windowdidfailtoexitfullscreen?language=objc +func (di *WindowDelegate) WindowDidFailToExitFullScreen(window Window) { + di._WindowDidFailToExitFullScreen(window) } -func (di *WindowDelegate) HasWindowDidDeminiaturize() bool { - return di._WindowDidDeminiaturize != nil +func (di *WindowDelegate) HasWindowShouldZoomToFrame() bool { + return di._WindowShouldZoomToFrame != nil } -// Tells the delegate that the window has been deminimized. [Full Topic] +// Asks the delegate whether the specified window should zoom to the specified frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419296-windowdiddeminiaturize?language=objc -func (di *WindowDelegate) SetWindowDidDeminiaturize(f func(notification foundation.Notification)) { - di._WindowDidDeminiaturize = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419533-windowshouldzoom?language=objc +func (di *WindowDelegate) SetWindowShouldZoomToFrame(f func(window Window, newFrame foundation.Rect) bool) { + di._WindowShouldZoomToFrame = f } -// Tells the delegate that the window has been deminimized. [Full Topic] +// Asks the delegate whether the specified window should zoom to the specified frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419296-windowdiddeminiaturize?language=objc -func (di *WindowDelegate) WindowDidDeminiaturize(notification foundation.Notification) { - di._WindowDidDeminiaturize(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419533-windowshouldzoom?language=objc +func (di *WindowDelegate) WindowShouldZoomToFrame(window Window, newFrame foundation.Rect) bool { + return di._WindowShouldZoomToFrame(window, newFrame) } -func (di *WindowDelegate) HasWindowDidChangeScreenProfile() bool { - return di._WindowDidChangeScreenProfile != nil +func (di *WindowDelegate) HasWindowDidEndSheet() bool { + return di._WindowDidEndSheet != nil } -// Tells the delegate that the window has changed screen display profiles. [Full Topic] +// Tells the delegate that the window has closed a sheet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419581-windowdidchangescreenprofile?language=objc -func (di *WindowDelegate) SetWindowDidChangeScreenProfile(f func(notification foundation.Notification)) { - di._WindowDidChangeScreenProfile = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419773-windowdidendsheet?language=objc +func (di *WindowDelegate) SetWindowDidEndSheet(f func(notification foundation.Notification)) { + di._WindowDidEndSheet = f } -// Tells the delegate that the window has changed screen display profiles. [Full Topic] +// Tells the delegate that the window has closed a sheet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419581-windowdidchangescreenprofile?language=objc -func (di *WindowDelegate) WindowDidChangeScreenProfile(notification foundation.Notification) { - di._WindowDidChangeScreenProfile(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419773-windowdidendsheet?language=objc +func (di *WindowDelegate) WindowDidEndSheet(notification foundation.Notification) { + di._WindowDidEndSheet(notification) } -func (di *WindowDelegate) HasCustomWindowsToEnterFullScreenForWindowOnScreen() bool { - return di._CustomWindowsToEnterFullScreenForWindowOnScreen != nil +func (di *WindowDelegate) HasWindowDidResize() bool { + return di._WindowDidResize != nil } -// Called when the window is about to enter full-screen mode. [Full Topic] +// Tells the delegate that the window has been resized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419557-customwindowstoenterfullscreenfo?language=objc -func (di *WindowDelegate) SetCustomWindowsToEnterFullScreenForWindowOnScreen(f func(window Window, screen Screen) []Window) { - di._CustomWindowsToEnterFullScreenForWindowOnScreen = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419567-windowdidresize?language=objc +func (di *WindowDelegate) SetWindowDidResize(f func(notification foundation.Notification)) { + di._WindowDidResize = f } -// Called when the window is about to enter full-screen mode. [Full Topic] +// Tells the delegate that the window has been resized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419557-customwindowstoenterfullscreenfo?language=objc -func (di *WindowDelegate) CustomWindowsToEnterFullScreenForWindowOnScreen(window Window, screen Screen) []Window { - return di._CustomWindowsToEnterFullScreenForWindowOnScreen(window, screen) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419567-windowdidresize?language=objc +func (di *WindowDelegate) WindowDidResize(notification foundation.Notification) { + di._WindowDidResize(notification) } -func (di *WindowDelegate) HasWindowDidChangeScreen() bool { - return di._WindowDidChangeScreen != nil +func (di *WindowDelegate) HasWindowWillEnterFullScreen() bool { + return di._WindowWillEnterFullScreen != nil } -// Tells the delegate that the window has changed screens. [Full Topic] +// The window is about to enter full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419267-windowdidchangescreen?language=objc -func (di *WindowDelegate) SetWindowDidChangeScreen(f func(notification foundation.Notification)) { - di._WindowDidChangeScreen = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419563-windowwillenterfullscreen?language=objc +func (di *WindowDelegate) SetWindowWillEnterFullScreen(f func(notification foundation.Notification)) { + di._WindowWillEnterFullScreen = f } -// Tells the delegate that the window has changed screens. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419267-windowdidchangescreen?language=objc -func (di *WindowDelegate) WindowDidChangeScreen(notification foundation.Notification) { - di._WindowDidChangeScreen(notification) -} -func (di *WindowDelegate) HasWindowWillUseFullScreenPresentationOptions() bool { - return di._WindowWillUseFullScreenPresentationOptions != nil -} - -// Returns the presentation options the window uses when transitioning to full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419144-window?language=objc -func (di *WindowDelegate) SetWindowWillUseFullScreenPresentationOptions(f func(window Window, proposedOptions ApplicationPresentationOptions) ApplicationPresentationOptions) { - di._WindowWillUseFullScreenPresentationOptions = f -} - -// Returns the presentation options the window uses when transitioning to full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419144-window?language=objc -func (di *WindowDelegate) WindowWillUseFullScreenPresentationOptions(window Window, proposedOptions ApplicationPresentationOptions) ApplicationPresentationOptions { - return di._WindowWillUseFullScreenPresentationOptions(window, proposedOptions) -} -func (di *WindowDelegate) HasWindowWillBeginSheet() bool { - return di._WindowWillBeginSheet != nil -} - -// Notifies the delegate that the window is about to open a sheet. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419408-windowwillbeginsheet?language=objc -func (di *WindowDelegate) SetWindowWillBeginSheet(f func(notification foundation.Notification)) { - di._WindowWillBeginSheet = f -} - -// Notifies the delegate that the window is about to open a sheet. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419408-windowwillbeginsheet?language=objc -func (di *WindowDelegate) WindowWillBeginSheet(notification foundation.Notification) { - di._WindowWillBeginSheet(notification) -} -func (di *WindowDelegate) HasWindowWillReturnFieldEditorToObject() bool { - return di._WindowWillReturnFieldEditorToObject != nil -} - -// Tells the delegate that the field editor for a text-displaying object has been requested. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419416-windowwillreturnfieldeditor?language=objc -func (di *WindowDelegate) SetWindowWillReturnFieldEditorToObject(f func(sender Window, client objc.Object) objc.Object) { - di._WindowWillReturnFieldEditorToObject = f -} - -// Tells the delegate that the field editor for a text-displaying object has been requested. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419416-windowwillreturnfieldeditor?language=objc -func (di *WindowDelegate) WindowWillReturnFieldEditorToObject(sender Window, client objc.Object) objc.Object { - return di._WindowWillReturnFieldEditorToObject(sender, client) -} -func (di *WindowDelegate) HasWindowShouldClose() bool { - return di._WindowShouldClose != nil -} - -// Tells the delegate that the user has attempted to close a window or the window has received a [appkit/nswindow/performclose] message. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419380-windowshouldclose?language=objc -func (di *WindowDelegate) SetWindowShouldClose(f func(sender Window) bool) { - di._WindowShouldClose = f -} - -// Tells the delegate that the user has attempted to close a window or the window has received a [appkit/nswindow/performclose] message. [Full Topic] +// The window is about to enter full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419380-windowshouldclose?language=objc -func (di *WindowDelegate) WindowShouldClose(sender Window) bool { - return di._WindowShouldClose(sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419563-windowwillenterfullscreen?language=objc +func (di *WindowDelegate) WindowWillEnterFullScreen(notification foundation.Notification) { + di._WindowWillEnterFullScreen(notification) } -func (di *WindowDelegate) HasWindowDidResignKey() bool { - return di._WindowDidResignKey != nil +func (di *WindowDelegate) HasWindowWillMove() bool { + return di._WindowWillMove != nil } -// Tells the delegate that the window has resigned key window status. [Full Topic] +// Tells the delegate that the window is about to move. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419711-windowdidresignkey?language=objc -func (di *WindowDelegate) SetWindowDidResignKey(f func(notification foundation.Notification)) { - di._WindowDidResignKey = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419336-windowwillmove?language=objc +func (di *WindowDelegate) SetWindowWillMove(f func(notification foundation.Notification)) { + di._WindowWillMove = f } -// Tells the delegate that the window has resigned key window status. [Full Topic] +// Tells the delegate that the window is about to move. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419711-windowdidresignkey?language=objc -func (di *WindowDelegate) WindowDidResignKey(notification foundation.Notification) { - di._WindowDidResignKey(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419336-windowwillmove?language=objc +func (di *WindowDelegate) WindowWillMove(notification foundation.Notification) { + di._WindowWillMove(notification) } -func (di *WindowDelegate) HasWindowDidEndSheet() bool { - return di._WindowDidEndSheet != nil +func (di *WindowDelegate) HasWindowWillStartLiveResize() bool { + return di._WindowWillStartLiveResize != nil } -// Tells the delegate that the window has closed a sheet. [Full Topic] +// Tells the delegate that the window is about to be live resized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419773-windowdidendsheet?language=objc -func (di *WindowDelegate) SetWindowDidEndSheet(f func(notification foundation.Notification)) { - di._WindowDidEndSheet = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419555-windowwillstartliveresize?language=objc +func (di *WindowDelegate) SetWindowWillStartLiveResize(f func(notification foundation.Notification)) { + di._WindowWillStartLiveResize = f } -// Tells the delegate that the window has closed a sheet. [Full Topic] +// Tells the delegate that the window is about to be live resized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419773-windowdidendsheet?language=objc -func (di *WindowDelegate) WindowDidEndSheet(notification foundation.Notification) { - di._WindowDidEndSheet(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419555-windowwillstartliveresize?language=objc +func (di *WindowDelegate) WindowWillStartLiveResize(notification foundation.Notification) { + di._WindowWillStartLiveResize(notification) } -func (di *WindowDelegate) HasWindowDidBecomeKey() bool { - return di._WindowDidBecomeKey != nil +func (di *WindowDelegate) HasWindowDidFailToEnterFullScreen() bool { + return di._WindowDidFailToEnterFullScreen != nil } -// Tells the delegate that the window has become the key window. [Full Topic] +// Called if the window failed to enter full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419737-windowdidbecomekey?language=objc -func (di *WindowDelegate) SetWindowDidBecomeKey(f func(notification foundation.Notification)) { - di._WindowDidBecomeKey = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419591-windowdidfailtoenterfullscreen?language=objc +func (di *WindowDelegate) SetWindowDidFailToEnterFullScreen(f func(window Window)) { + di._WindowDidFailToEnterFullScreen = f } -// Tells the delegate that the window has become the key window. [Full Topic] +// Called if the window failed to enter full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419737-windowdidbecomekey?language=objc -func (di *WindowDelegate) WindowDidBecomeKey(notification foundation.Notification) { - di._WindowDidBecomeKey(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419591-windowdidfailtoenterfullscreen?language=objc +func (di *WindowDelegate) WindowDidFailToEnterFullScreen(window Window) { + di._WindowDidFailToEnterFullScreen(window) } func (di *WindowDelegate) HasWindowWillResizeToSize() bool { return di._WindowWillResizeToSize != nil } -// Tells the delegate that the window is being resized (whether by the user or through one of the setFrame... methods other than [appkit/nswindow/setframe]). [Full Topic] +// Tells the delegate that the window is being resized (whether by the user or through one of the setFrame... methods other than setFrame:display:). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419292-windowwillresize?language=objc func (di *WindowDelegate) SetWindowWillResizeToSize(f func(sender Window, frameSize foundation.Size) foundation.Size) { di._WindowWillResizeToSize = f } -// Tells the delegate that the window is being resized (whether by the user or through one of the setFrame... methods other than [appkit/nswindow/setframe]). [Full Topic] +// Tells the delegate that the window is being resized (whether by the user or through one of the setFrame... methods other than setFrame:display:). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419292-windowwillresize?language=objc func (di *WindowDelegate) WindowWillResizeToSize(sender Window, frameSize foundation.Size) foundation.Size { return di._WindowWillResizeToSize(sender, frameSize) } -func (di *WindowDelegate) HasWindowWillMiniaturize() bool { - return di._WindowWillMiniaturize != nil -} - -// Tells the delegate that the window is about to be minimized. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419461-windowwillminiaturize?language=objc -func (di *WindowDelegate) SetWindowWillMiniaturize(f func(notification foundation.Notification)) { - di._WindowWillMiniaturize = f -} - -// Tells the delegate that the window is about to be minimized. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419461-windowwillminiaturize?language=objc -func (di *WindowDelegate) WindowWillMiniaturize(notification foundation.Notification) { - di._WindowWillMiniaturize(notification) -} -func (di *WindowDelegate) HasWindowWillEncodeRestorableState() bool { - return di._WindowWillEncodeRestorableState != nil -} - -// Tells the delegate the window is about to add its restorable state to a given archiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419619-window?language=objc -func (di *WindowDelegate) SetWindowWillEncodeRestorableState(f func(window Window, state foundation.Coder)) { - di._WindowWillEncodeRestorableState = f -} - -// Tells the delegate the window is about to add its restorable state to a given archiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419619-window?language=objc -func (di *WindowDelegate) WindowWillEncodeRestorableState(window Window, state foundation.Coder) { - di._WindowWillEncodeRestorableState(window, state) -} -func (di *WindowDelegate) HasWindowWillExitVersionBrowser() bool { - return di._WindowWillExitVersionBrowser != nil -} - -// Tells the delegate that the window is about to leave version browsing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419252-windowwillexitversionbrowser?language=objc -func (di *WindowDelegate) SetWindowWillExitVersionBrowser(f func(notification foundation.Notification)) { - di._WindowWillExitVersionBrowser = f -} - -// Tells the delegate that the window is about to leave version browsing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419252-windowwillexitversionbrowser?language=objc -func (di *WindowDelegate) WindowWillExitVersionBrowser(notification foundation.Notification) { - di._WindowWillExitVersionBrowser(notification) -} -func (di *WindowDelegate) HasWindowDidEnterFullScreen() bool { - return di._WindowDidEnterFullScreen != nil -} - -// The window has entered full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419116-windowdidenterfullscreen?language=objc -func (di *WindowDelegate) SetWindowDidEnterFullScreen(f func(notification foundation.Notification)) { - di._WindowDidEnterFullScreen = f -} - -// The window has entered full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419116-windowdidenterfullscreen?language=objc -func (di *WindowDelegate) WindowDidEnterFullScreen(notification foundation.Notification) { - di._WindowDidEnterFullScreen(notification) -} -func (di *WindowDelegate) HasWindowDidResize() bool { - return di._WindowDidResize != nil -} - -// Tells the delegate that the window has been resized. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419567-windowdidresize?language=objc -func (di *WindowDelegate) SetWindowDidResize(f func(notification foundation.Notification)) { - di._WindowDidResize = f -} - -// Tells the delegate that the window has been resized. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419567-windowdidresize?language=objc -func (di *WindowDelegate) WindowDidResize(notification foundation.Notification) { - di._WindowDidResize(notification) -} -func (di *WindowDelegate) HasWindowWillMove() bool { - return di._WindowWillMove != nil -} - -// Tells the delegate that the window is about to move. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419336-windowwillmove?language=objc -func (di *WindowDelegate) SetWindowWillMove(f func(notification foundation.Notification)) { - di._WindowWillMove = f -} - -// Tells the delegate that the window is about to move. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419336-windowwillmove?language=objc -func (di *WindowDelegate) WindowWillMove(notification foundation.Notification) { - di._WindowWillMove(notification) -} -func (di *WindowDelegate) HasWindowStartCustomAnimationToExitFullScreenWithDuration() bool { - return di._WindowStartCustomAnimationToExitFullScreenWithDuration != nil -} - -// This method is called to start the window animation out of full-screen mode, including transitioning back to the desktop space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419705-window?language=objc -func (di *WindowDelegate) SetWindowStartCustomAnimationToExitFullScreenWithDuration(f func(window Window, duration foundation.TimeInterval)) { - di._WindowStartCustomAnimationToExitFullScreenWithDuration = f -} - -// This method is called to start the window animation out of full-screen mode, including transitioning back to the desktop space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419705-window?language=objc -func (di *WindowDelegate) WindowStartCustomAnimationToExitFullScreenWithDuration(window Window, duration foundation.TimeInterval) { - di._WindowStartCustomAnimationToExitFullScreenWithDuration(window, duration) -} -func (di *WindowDelegate) HasWindowWillExitFullScreen() bool { - return di._WindowWillExitFullScreen != nil -} - -// The window is about to exit full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419332-windowwillexitfullscreen?language=objc -func (di *WindowDelegate) SetWindowWillExitFullScreen(f func(notification foundation.Notification)) { - di._WindowWillExitFullScreen = f -} - -// The window is about to exit full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419332-windowwillexitfullscreen?language=objc -func (di *WindowDelegate) WindowWillExitFullScreen(notification foundation.Notification) { - di._WindowWillExitFullScreen(notification) -} -func (di *WindowDelegate) HasWindowShouldPopUpDocumentPathMenu() bool { - return di._WindowShouldPopUpDocumentPathMenu != nil +func (di *WindowDelegate) HasWindowDidChangeOcclusionState() bool { + return di._WindowDidChangeOcclusionState != nil } -// Asks the delegate whether the window displays the title pop-up menu in response to a Command-click or Control-click on its title. [Full Topic] +// Tells the delegate that the window changed its occlusion state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419465-window?language=objc -func (di *WindowDelegate) SetWindowShouldPopUpDocumentPathMenu(f func(window Window, menu Menu) bool) { - di._WindowShouldPopUpDocumentPathMenu = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419424-windowdidchangeocclusionstate?language=objc +func (di *WindowDelegate) SetWindowDidChangeOcclusionState(f func(notification foundation.Notification)) { + di._WindowDidChangeOcclusionState = f } -// Asks the delegate whether the window displays the title pop-up menu in response to a Command-click or Control-click on its title. [Full Topic] +// Tells the delegate that the window changed its occlusion state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419465-window?language=objc -func (di *WindowDelegate) WindowShouldPopUpDocumentPathMenu(window Window, menu Menu) bool { - return di._WindowShouldPopUpDocumentPathMenu(window, menu) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419424-windowdidchangeocclusionstate?language=objc +func (di *WindowDelegate) WindowDidChangeOcclusionState(notification foundation.Notification) { + di._WindowDidChangeOcclusionState(notification) } -func (di *WindowDelegate) HasWindowDidMiniaturize() bool { - return di._WindowDidMiniaturize != nil +func (di *WindowDelegate) HasWindowDidChangeScreenProfile() bool { + return di._WindowDidChangeScreenProfile != nil } -// Tells the delegate that the window has been minimized. [Full Topic] +// Tells the delegate that the window has changed screen display profiles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419621-windowdidminiaturize?language=objc -func (di *WindowDelegate) SetWindowDidMiniaturize(f func(notification foundation.Notification)) { - di._WindowDidMiniaturize = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419581-windowdidchangescreenprofile?language=objc +func (di *WindowDelegate) SetWindowDidChangeScreenProfile(f func(notification foundation.Notification)) { + di._WindowDidChangeScreenProfile = f } -// Tells the delegate that the window has been minimized. [Full Topic] +// Tells the delegate that the window has changed screen display profiles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419621-windowdidminiaturize?language=objc -func (di *WindowDelegate) WindowDidMiniaturize(notification foundation.Notification) { - di._WindowDidMiniaturize(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419581-windowdidchangescreenprofile?language=objc +func (di *WindowDelegate) WindowDidChangeScreenProfile(notification foundation.Notification) { + di._WindowDidChangeScreenProfile(notification) } func (di *WindowDelegate) HasWindowWillReturnUndoManager() bool { return di._WindowWillReturnUndoManager != nil @@ -696,311 +420,209 @@ func (di *WindowDelegate) SetWindowWillReturnUndoManager(f func(window Window) f func (di *WindowDelegate) WindowWillReturnUndoManager(window Window) foundation.UndoManager { return di._WindowWillReturnUndoManager(window) } -func (di *WindowDelegate) HasWindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize() bool { - return di._WindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize != nil -} - -// Tells the delegate the window will resize for presentation during version browsing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419360-window?language=objc -func (di *WindowDelegate) SetWindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize(f func(window Window, maxPreferredFrameSize foundation.Size, maxAllowedFrameSize foundation.Size) foundation.Size) { - di._WindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize = f -} - -// Tells the delegate the window will resize for presentation during version browsing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419360-window?language=objc -func (di *WindowDelegate) WindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize(window Window, maxPreferredFrameSize foundation.Size, maxAllowedFrameSize foundation.Size) foundation.Size { - return di._WindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize(window, maxPreferredFrameSize, maxAllowedFrameSize) -} -func (di *WindowDelegate) HasWindowWillEnterFullScreen() bool { - return di._WindowWillEnterFullScreen != nil -} - -// The window is about to enter full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419563-windowwillenterfullscreen?language=objc -func (di *WindowDelegate) SetWindowWillEnterFullScreen(f func(notification foundation.Notification)) { - di._WindowWillEnterFullScreen = f -} - -// The window is about to enter full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419563-windowwillenterfullscreen?language=objc -func (di *WindowDelegate) WindowWillEnterFullScreen(notification foundation.Notification) { - di._WindowWillEnterFullScreen(notification) -} -func (di *WindowDelegate) HasWindowDidFailToEnterFullScreen() bool { - return di._WindowDidFailToEnterFullScreen != nil -} - -// Called if the window failed to enter full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419591-windowdidfailtoenterfullscreen?language=objc -func (di *WindowDelegate) SetWindowDidFailToEnterFullScreen(f func(window Window)) { - di._WindowDidFailToEnterFullScreen = f -} - -// Called if the window failed to enter full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419591-windowdidfailtoenterfullscreen?language=objc -func (di *WindowDelegate) WindowDidFailToEnterFullScreen(window Window) { - di._WindowDidFailToEnterFullScreen(window) -} -func (di *WindowDelegate) HasWindowDidExpose() bool { - return di._WindowDidExpose != nil -} - -// Tells the delegate that the window has been exposed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419258-windowdidexpose?language=objc -func (di *WindowDelegate) SetWindowDidExpose(f func(notification foundation.Notification)) { - di._WindowDidExpose = f -} - -// Tells the delegate that the window has been exposed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419258-windowdidexpose?language=objc -func (di *WindowDelegate) WindowDidExpose(notification foundation.Notification) { - di._WindowDidExpose(notification) -} -func (di *WindowDelegate) HasWindowDidEndLiveResize() bool { - return di._WindowDidEndLiveResize != nil -} - -// Tells the delegate that a live resize operation on the window has ended. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419150-windowdidendliveresize?language=objc -func (di *WindowDelegate) SetWindowDidEndLiveResize(f func(notification foundation.Notification)) { - di._WindowDidEndLiveResize = f -} - -// Tells the delegate that a live resize operation on the window has ended. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419150-windowdidendliveresize?language=objc -func (di *WindowDelegate) WindowDidEndLiveResize(notification foundation.Notification) { - di._WindowDidEndLiveResize(notification) -} -func (di *WindowDelegate) HasWindowShouldZoomToFrame() bool { - return di._WindowShouldZoomToFrame != nil -} - -// Asks the delegate whether the specified window should zoom to the specified frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419533-windowshouldzoom?language=objc -func (di *WindowDelegate) SetWindowShouldZoomToFrame(f func(window Window, newFrame foundation.Rect) bool) { - di._WindowShouldZoomToFrame = f -} - -// Asks the delegate whether the specified window should zoom to the specified frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419533-windowshouldzoom?language=objc -func (di *WindowDelegate) WindowShouldZoomToFrame(window Window, newFrame foundation.Rect) bool { - return di._WindowShouldZoomToFrame(window, newFrame) -} -func (di *WindowDelegate) HasWindowDidBecomeMain() bool { - return di._WindowDidBecomeMain != nil +func (di *WindowDelegate) HasWindowWillBeginSheet() bool { + return di._WindowWillBeginSheet != nil } -// Tells the delegate that the window has become main. [Full Topic] +// Notifies the delegate that the window is about to open a sheet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419190-windowdidbecomemain?language=objc -func (di *WindowDelegate) SetWindowDidBecomeMain(f func(notification foundation.Notification)) { - di._WindowDidBecomeMain = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419408-windowwillbeginsheet?language=objc +func (di *WindowDelegate) SetWindowWillBeginSheet(f func(notification foundation.Notification)) { + di._WindowWillBeginSheet = f } -// Tells the delegate that the window has become main. [Full Topic] +// Notifies the delegate that the window is about to open a sheet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419190-windowdidbecomemain?language=objc -func (di *WindowDelegate) WindowDidBecomeMain(notification foundation.Notification) { - di._WindowDidBecomeMain(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419408-windowwillbeginsheet?language=objc +func (di *WindowDelegate) WindowWillBeginSheet(notification foundation.Notification) { + di._WindowWillBeginSheet(notification) } -func (di *WindowDelegate) HasWindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration() bool { - return di._WindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration != nil +func (di *WindowDelegate) HasWindowDidResignKey() bool { + return di._WindowDidResignKey != nil } -// This method is called to start the window animation into full-screen mode, including transitioning to a new space. [Full Topic] +// Tells the delegate that the window has resigned key window status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419709-window?language=objc -func (di *WindowDelegate) SetWindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration(f func(window Window, screen Screen, duration foundation.TimeInterval)) { - di._WindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419711-windowdidresignkey?language=objc +func (di *WindowDelegate) SetWindowDidResignKey(f func(notification foundation.Notification)) { + di._WindowDidResignKey = f } -// This method is called to start the window animation into full-screen mode, including transitioning to a new space. [Full Topic] +// Tells the delegate that the window has resigned key window status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419709-window?language=objc -func (di *WindowDelegate) WindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration(window Window, screen Screen, duration foundation.TimeInterval) { - di._WindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration(window, screen, duration) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419711-windowdidresignkey?language=objc +func (di *WindowDelegate) WindowDidResignKey(notification foundation.Notification) { + di._WindowDidResignKey(notification) } -func (di *WindowDelegate) HasWindowShouldDragDocumentWithEventFromWithPasteboard() bool { - return di._WindowShouldDragDocumentWithEventFromWithPasteboard != nil +func (di *WindowDelegate) HasWindowShouldClose() bool { + return di._WindowShouldClose != nil } -// Asks the delegate whether a user can drag the document icon from the window’s title bar. [Full Topic] +// Tells the delegate that the user has attempted to close a window or the window has received a performClose: message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419452-window?language=objc -func (di *WindowDelegate) SetWindowShouldDragDocumentWithEventFromWithPasteboard(f func(window Window, event Event, dragImageLocation foundation.Point, pasteboard Pasteboard) bool) { - di._WindowShouldDragDocumentWithEventFromWithPasteboard = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419380-windowshouldclose?language=objc +func (di *WindowDelegate) SetWindowShouldClose(f func(sender Window) bool) { + di._WindowShouldClose = f } -// Asks the delegate whether a user can drag the document icon from the window’s title bar. [Full Topic] +// Tells the delegate that the user has attempted to close a window or the window has received a performClose: message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419452-window?language=objc -func (di *WindowDelegate) WindowShouldDragDocumentWithEventFromWithPasteboard(window Window, event Event, dragImageLocation foundation.Point, pasteboard Pasteboard) bool { - return di._WindowShouldDragDocumentWithEventFromWithPasteboard(window, event, dragImageLocation, pasteboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419380-windowshouldclose?language=objc +func (di *WindowDelegate) WindowShouldClose(sender Window) bool { + return di._WindowShouldClose(sender) } -func (di *WindowDelegate) HasWindowDidDecodeRestorableState() bool { - return di._WindowDidDecodeRestorableState != nil +func (di *WindowDelegate) HasWindowDidExitVersionBrowser() bool { + return di._WindowDidExitVersionBrowser != nil } -// Tells the delegate the window is has extracted its restorable state from a given archiver. [Full Topic] +// Tells the delegate that the window has left version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419475-window?language=objc -func (di *WindowDelegate) SetWindowDidDecodeRestorableState(f func(window Window, state foundation.Coder)) { - di._WindowDidDecodeRestorableState = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419501-windowdidexitversionbrowser?language=objc +func (di *WindowDelegate) SetWindowDidExitVersionBrowser(f func(notification foundation.Notification)) { + di._WindowDidExitVersionBrowser = f } -// Tells the delegate the window is has extracted its restorable state from a given archiver. [Full Topic] +// Tells the delegate that the window has left version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419475-window?language=objc -func (di *WindowDelegate) WindowDidDecodeRestorableState(window Window, state foundation.Coder) { - di._WindowDidDecodeRestorableState(window, state) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419501-windowdidexitversionbrowser?language=objc +func (di *WindowDelegate) WindowDidExitVersionBrowser(notification foundation.Notification) { + di._WindowDidExitVersionBrowser(notification) } -func (di *WindowDelegate) HasWindowWillPositionSheetUsingRect() bool { - return di._WindowWillPositionSheetUsingRect != nil +func (di *WindowDelegate) HasWindowDidBecomeKey() bool { + return di._WindowDidBecomeKey != nil } -// Tells the delegate that the window is about to show a sheet at the specified location, giving it the opportunity to return a custom location for the attachment of the sheet to the window. [Full Topic] +// Tells the delegate that the window has become the key window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419611-window?language=objc -func (di *WindowDelegate) SetWindowWillPositionSheetUsingRect(f func(window Window, sheet Window, rect foundation.Rect) foundation.Rect) { - di._WindowWillPositionSheetUsingRect = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419737-windowdidbecomekey?language=objc +func (di *WindowDelegate) SetWindowDidBecomeKey(f func(notification foundation.Notification)) { + di._WindowDidBecomeKey = f } -// Tells the delegate that the window is about to show a sheet at the specified location, giving it the opportunity to return a custom location for the attachment of the sheet to the window. [Full Topic] +// Tells the delegate that the window has become the key window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419611-window?language=objc -func (di *WindowDelegate) WindowWillPositionSheetUsingRect(window Window, sheet Window, rect foundation.Rect) foundation.Rect { - return di._WindowWillPositionSheetUsingRect(window, sheet, rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419737-windowdidbecomekey?language=objc +func (di *WindowDelegate) WindowDidBecomeKey(notification foundation.Notification) { + di._WindowDidBecomeKey(notification) } -func (di *WindowDelegate) HasWindowDidChangeBackingProperties() bool { - return di._WindowDidChangeBackingProperties != nil +func (di *WindowDelegate) HasWindowDidResignMain() bool { + return di._WindowDidResignMain != nil } -// Tells the delegate that the window backing properties changed. [Full Topic] +// Tells the delegate that the window has resigned main window status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419517-windowdidchangebackingproperties?language=objc -func (di *WindowDelegate) SetWindowDidChangeBackingProperties(f func(notification foundation.Notification)) { - di._WindowDidChangeBackingProperties = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419584-windowdidresignmain?language=objc +func (di *WindowDelegate) SetWindowDidResignMain(f func(notification foundation.Notification)) { + di._WindowDidResignMain = f } -// Tells the delegate that the window backing properties changed. [Full Topic] +// Tells the delegate that the window has resigned main window status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419517-windowdidchangebackingproperties?language=objc -func (di *WindowDelegate) WindowDidChangeBackingProperties(notification foundation.Notification) { - di._WindowDidChangeBackingProperties(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419584-windowdidresignmain?language=objc +func (di *WindowDelegate) WindowDidResignMain(notification foundation.Notification) { + di._WindowDidResignMain(notification) } -func (di *WindowDelegate) HasCustomWindowsToEnterFullScreenForWindow() bool { - return di._CustomWindowsToEnterFullScreenForWindow != nil +func (di *WindowDelegate) HasWindowDidExitFullScreen() bool { + return di._WindowDidExitFullScreen != nil } -// Called when the window is about to enter full-screen mode. [Full Topic] +// The window has left full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419521-customwindowstoenterfullscreenfo?language=objc -func (di *WindowDelegate) SetCustomWindowsToEnterFullScreenForWindow(f func(window Window) []Window) { - di._CustomWindowsToEnterFullScreenForWindow = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419146-windowdidexitfullscreen?language=objc +func (di *WindowDelegate) SetWindowDidExitFullScreen(f func(notification foundation.Notification)) { + di._WindowDidExitFullScreen = f } -// Called when the window is about to enter full-screen mode. [Full Topic] +// The window has left full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419521-customwindowstoenterfullscreenfo?language=objc -func (di *WindowDelegate) CustomWindowsToEnterFullScreenForWindow(window Window) []Window { - return di._CustomWindowsToEnterFullScreenForWindow(window) -} -func (di *WindowDelegate) HasWindowWillUseStandardFrameDefaultFrame() bool { - return di._WindowWillUseStandardFrameDefaultFrame != nil +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419146-windowdidexitfullscreen?language=objc +func (di *WindowDelegate) WindowDidExitFullScreen(notification foundation.Notification) { + di._WindowDidExitFullScreen(notification) +} +func (di *WindowDelegate) HasWindowDidBecomeMain() bool { + return di._WindowDidBecomeMain != nil } -// Called by NSWindow’s [appkit/nswindow/zoom] method while determining the frame a window may be zoomed to. [Full Topic] +// Tells the delegate that the window has become main. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419684-windowwillusestandardframe?language=objc -func (di *WindowDelegate) SetWindowWillUseStandardFrameDefaultFrame(f func(window Window, newFrame foundation.Rect) foundation.Rect) { - di._WindowWillUseStandardFrameDefaultFrame = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419190-windowdidbecomemain?language=objc +func (di *WindowDelegate) SetWindowDidBecomeMain(f func(notification foundation.Notification)) { + di._WindowDidBecomeMain = f } -// Called by NSWindow’s [appkit/nswindow/zoom] method while determining the frame a window may be zoomed to. [Full Topic] +// Tells the delegate that the window has become main. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419684-windowwillusestandardframe?language=objc -func (di *WindowDelegate) WindowWillUseStandardFrameDefaultFrame(window Window, newFrame foundation.Rect) foundation.Rect { - return di._WindowWillUseStandardFrameDefaultFrame(window, newFrame) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419190-windowdidbecomemain?language=objc +func (di *WindowDelegate) WindowDidBecomeMain(notification foundation.Notification) { + di._WindowDidBecomeMain(notification) } -func (di *WindowDelegate) HasWindowDidEnterVersionBrowser() bool { - return di._WindowDidEnterVersionBrowser != nil +func (di *WindowDelegate) HasWindowDidMiniaturize() bool { + return di._WindowDidMiniaturize != nil } -// Tells the delegate that the window has entered version browsing. [Full Topic] +// Tells the delegate that the window has been minimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419064-windowdidenterversionbrowser?language=objc -func (di *WindowDelegate) SetWindowDidEnterVersionBrowser(f func(notification foundation.Notification)) { - di._WindowDidEnterVersionBrowser = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419621-windowdidminiaturize?language=objc +func (di *WindowDelegate) SetWindowDidMiniaturize(f func(notification foundation.Notification)) { + di._WindowDidMiniaturize = f } -// Tells the delegate that the window has entered version browsing. [Full Topic] +// Tells the delegate that the window has been minimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419064-windowdidenterversionbrowser?language=objc -func (di *WindowDelegate) WindowDidEnterVersionBrowser(notification foundation.Notification) { - di._WindowDidEnterVersionBrowser(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419621-windowdidminiaturize?language=objc +func (di *WindowDelegate) WindowDidMiniaturize(notification foundation.Notification) { + di._WindowDidMiniaturize(notification) } -func (di *WindowDelegate) HasWindowStartCustomAnimationToEnterFullScreenWithDuration() bool { - return di._WindowStartCustomAnimationToEnterFullScreenWithDuration != nil +func (di *WindowDelegate) HasWindowDidExpose() bool { + return di._WindowDidExpose != nil } -// This method is called to start the window animation into full-screen mode, including transitioning to a new space. [Full Topic] +// Tells the delegate that the window has been exposed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419406-window?language=objc -func (di *WindowDelegate) SetWindowStartCustomAnimationToEnterFullScreenWithDuration(f func(window Window, duration foundation.TimeInterval)) { - di._WindowStartCustomAnimationToEnterFullScreenWithDuration = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419258-windowdidexpose?language=objc +func (di *WindowDelegate) SetWindowDidExpose(f func(notification foundation.Notification)) { + di._WindowDidExpose = f } -// This method is called to start the window animation into full-screen mode, including transitioning to a new space. [Full Topic] +// Tells the delegate that the window has been exposed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419406-window?language=objc -func (di *WindowDelegate) WindowStartCustomAnimationToEnterFullScreenWithDuration(window Window, duration foundation.TimeInterval) { - di._WindowStartCustomAnimationToEnterFullScreenWithDuration(window, duration) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419258-windowdidexpose?language=objc +func (di *WindowDelegate) WindowDidExpose(notification foundation.Notification) { + di._WindowDidExpose(notification) } -func (di *WindowDelegate) HasWindowDidResignMain() bool { - return di._WindowDidResignMain != nil +func (di *WindowDelegate) HasWindowWillMiniaturize() bool { + return di._WindowWillMiniaturize != nil } -// Tells the delegate that the window has resigned main window status. [Full Topic] +// Tells the delegate that the window is about to be minimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419584-windowdidresignmain?language=objc -func (di *WindowDelegate) SetWindowDidResignMain(f func(notification foundation.Notification)) { - di._WindowDidResignMain = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419461-windowwillminiaturize?language=objc +func (di *WindowDelegate) SetWindowWillMiniaturize(f func(notification foundation.Notification)) { + di._WindowWillMiniaturize = f } -// Tells the delegate that the window has resigned main window status. [Full Topic] +// Tells the delegate that the window is about to be minimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419584-windowdidresignmain?language=objc -func (di *WindowDelegate) WindowDidResignMain(notification foundation.Notification) { - di._WindowDidResignMain(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419461-windowwillminiaturize?language=objc +func (di *WindowDelegate) WindowWillMiniaturize(notification foundation.Notification) { + di._WindowWillMiniaturize(notification) } -func (di *WindowDelegate) HasWindowDidExitVersionBrowser() bool { - return di._WindowDidExitVersionBrowser != nil +func (di *WindowDelegate) HasWindowDidChangeBackingProperties() bool { + return di._WindowDidChangeBackingProperties != nil } -// Tells the delegate that the window has left version browsing. [Full Topic] +// Tells the delegate that the window backing properties changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419501-windowdidexitversionbrowser?language=objc -func (di *WindowDelegate) SetWindowDidExitVersionBrowser(f func(notification foundation.Notification)) { - di._WindowDidExitVersionBrowser = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419517-windowdidchangebackingproperties?language=objc +func (di *WindowDelegate) SetWindowDidChangeBackingProperties(f func(notification foundation.Notification)) { + di._WindowDidChangeBackingProperties = f } -// Tells the delegate that the window has left version browsing. [Full Topic] +// Tells the delegate that the window backing properties changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419501-windowdidexitversionbrowser?language=objc -func (di *WindowDelegate) WindowDidExitVersionBrowser(notification foundation.Notification) { - di._WindowDidExitVersionBrowser(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419517-windowdidchangebackingproperties?language=objc +func (di *WindowDelegate) WindowDidChangeBackingProperties(notification foundation.Notification) { + di._WindowDidChangeBackingProperties(notification) } func (di *WindowDelegate) HasWindowWillClose() bool { return di._WindowWillClose != nil @@ -1019,336 +641,302 @@ func (di *WindowDelegate) SetWindowWillClose(f func(notification foundation.Noti func (di *WindowDelegate) WindowWillClose(notification foundation.Notification) { di._WindowWillClose(notification) } -func (di *WindowDelegate) HasCustomWindowsToExitFullScreenForWindow() bool { - return di._CustomWindowsToExitFullScreenForWindow != nil +func (di *WindowDelegate) HasCustomWindowsToEnterFullScreenForWindow() bool { + return di._CustomWindowsToEnterFullScreenForWindow != nil } -// Called when the window is about to exit full-screen mode. [Full Topic] +// Called when the window is about to enter full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419070-customwindowstoexitfullscreenfor?language=objc -func (di *WindowDelegate) SetCustomWindowsToExitFullScreenForWindow(f func(window Window) []Window) { - di._CustomWindowsToExitFullScreenForWindow = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419521-customwindowstoenterfullscreenfo?language=objc +func (di *WindowDelegate) SetCustomWindowsToEnterFullScreenForWindow(f func(window Window) []Window) { + di._CustomWindowsToEnterFullScreenForWindow = f } -// Called when the window is about to exit full-screen mode. [Full Topic] +// Called when the window is about to enter full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419070-customwindowstoexitfullscreenfor?language=objc -func (di *WindowDelegate) CustomWindowsToExitFullScreenForWindow(window Window) []Window { - return di._CustomWindowsToExitFullScreenForWindow(window) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419521-customwindowstoenterfullscreenfo?language=objc +func (di *WindowDelegate) CustomWindowsToEnterFullScreenForWindow(window Window) []Window { + return di._CustomWindowsToEnterFullScreenForWindow(window) } -func (di *WindowDelegate) HasWindowDidUpdate() bool { - return di._WindowDidUpdate != nil +func (di *WindowDelegate) HasWindowWillEnterVersionBrowser() bool { + return di._WindowWillEnterVersionBrowser != nil } -// Tells the delegate that the window received an [appkit/nswindow/update] message. [Full Topic] +// Tells the delegate the window is about to enter version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419493-windowdidupdate?language=objc -func (di *WindowDelegate) SetWindowDidUpdate(f func(notification foundation.Notification)) { - di._WindowDidUpdate = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419463-windowwillenterversionbrowser?language=objc +func (di *WindowDelegate) SetWindowWillEnterVersionBrowser(f func(notification foundation.Notification)) { + di._WindowWillEnterVersionBrowser = f } -// Tells the delegate that the window received an [appkit/nswindow/update] message. [Full Topic] +// Tells the delegate the window is about to enter version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419493-windowdidupdate?language=objc -func (di *WindowDelegate) WindowDidUpdate(notification foundation.Notification) { - di._WindowDidUpdate(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419463-windowwillenterversionbrowser?language=objc +func (di *WindowDelegate) WindowWillEnterVersionBrowser(notification foundation.Notification) { + di._WindowWillEnterVersionBrowser(notification) } -func (di *WindowDelegate) HasWindowWillStartLiveResize() bool { - return di._WindowWillStartLiveResize != nil +func (di *WindowDelegate) HasWindowDidEndLiveResize() bool { + return di._WindowDidEndLiveResize != nil } -// Tells the delegate that the window is about to be live resized. [Full Topic] +// Tells the delegate that a live resize operation on the window has ended. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419555-windowwillstartliveresize?language=objc -func (di *WindowDelegate) SetWindowWillStartLiveResize(f func(notification foundation.Notification)) { - di._WindowWillStartLiveResize = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419150-windowdidendliveresize?language=objc +func (di *WindowDelegate) SetWindowDidEndLiveResize(f func(notification foundation.Notification)) { + di._WindowDidEndLiveResize = f } -// Tells the delegate that the window is about to be live resized. [Full Topic] +// Tells the delegate that a live resize operation on the window has ended. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419555-windowwillstartliveresize?language=objc -func (di *WindowDelegate) WindowWillStartLiveResize(notification foundation.Notification) { - di._WindowWillStartLiveResize(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419150-windowdidendliveresize?language=objc +func (di *WindowDelegate) WindowDidEndLiveResize(notification foundation.Notification) { + di._WindowDidEndLiveResize(notification) } -func (di *WindowDelegate) HasWindowDidChangeOcclusionState() bool { - return di._WindowDidChangeOcclusionState != nil +func (di *WindowDelegate) HasWindowDidUpdate() bool { + return di._WindowDidUpdate != nil } -// Tells the delegate that the window changed its occlusion state. [Full Topic] +// Tells the delegate that the window received an update message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419424-windowdidchangeocclusionstate?language=objc -func (di *WindowDelegate) SetWindowDidChangeOcclusionState(f func(notification foundation.Notification)) { - di._WindowDidChangeOcclusionState = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419493-windowdidupdate?language=objc +func (di *WindowDelegate) SetWindowDidUpdate(f func(notification foundation.Notification)) { + di._WindowDidUpdate = f } -// Tells the delegate that the window changed its occlusion state. [Full Topic] +// Tells the delegate that the window received an update message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419424-windowdidchangeocclusionstate?language=objc -func (di *WindowDelegate) WindowDidChangeOcclusionState(notification foundation.Notification) { - di._WindowDidChangeOcclusionState(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419493-windowdidupdate?language=objc +func (di *WindowDelegate) WindowDidUpdate(notification foundation.Notification) { + di._WindowDidUpdate(notification) } -func (di *WindowDelegate) HasWindowDidFailToExitFullScreen() bool { - return di._WindowDidFailToExitFullScreen != nil +func (di *WindowDelegate) HasWindowWillExitVersionBrowser() bool { + return di._WindowWillExitVersionBrowser != nil } -// Called if the window failed to exit full-screen mode. [Full Topic] +// Tells the delegate that the window is about to leave version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419573-windowdidfailtoexitfullscreen?language=objc -func (di *WindowDelegate) SetWindowDidFailToExitFullScreen(f func(window Window)) { - di._WindowDidFailToExitFullScreen = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419252-windowwillexitversionbrowser?language=objc +func (di *WindowDelegate) SetWindowWillExitVersionBrowser(f func(notification foundation.Notification)) { + di._WindowWillExitVersionBrowser = f } -// Called if the window failed to exit full-screen mode. [Full Topic] +// Tells the delegate that the window is about to leave version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419573-windowdidfailtoexitfullscreen?language=objc -func (di *WindowDelegate) WindowDidFailToExitFullScreen(window Window) { - di._WindowDidFailToExitFullScreen(window) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419252-windowwillexitversionbrowser?language=objc +func (di *WindowDelegate) WindowWillExitVersionBrowser(notification foundation.Notification) { + di._WindowWillExitVersionBrowser(notification) } -func (di *WindowDelegate) HasWindowDidExitFullScreen() bool { - return di._WindowDidExitFullScreen != nil +func (di *WindowDelegate) HasWindowWillReturnFieldEditorToObject() bool { + return di._WindowWillReturnFieldEditorToObject != nil } -// The window has left full-screen mode. [Full Topic] +// Tells the delegate that the field editor for a text-displaying object has been requested. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419146-windowdidexitfullscreen?language=objc -func (di *WindowDelegate) SetWindowDidExitFullScreen(f func(notification foundation.Notification)) { - di._WindowDidExitFullScreen = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419416-windowwillreturnfieldeditor?language=objc +func (di *WindowDelegate) SetWindowWillReturnFieldEditorToObject(f func(sender Window, client objc.Object) objc.Object) { + di._WindowWillReturnFieldEditorToObject = f } -// The window has left full-screen mode. [Full Topic] +// Tells the delegate that the field editor for a text-displaying object has been requested. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419146-windowdidexitfullscreen?language=objc -func (di *WindowDelegate) WindowDidExitFullScreen(notification foundation.Notification) { - di._WindowDidExitFullScreen(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419416-windowwillreturnfieldeditor?language=objc +func (di *WindowDelegate) WindowWillReturnFieldEditorToObject(sender Window, client objc.Object) objc.Object { + return di._WindowWillReturnFieldEditorToObject(sender, client) } -func (di *WindowDelegate) HasWindowWillEnterVersionBrowser() bool { - return di._WindowWillEnterVersionBrowser != nil +func (di *WindowDelegate) HasWindowDidDeminiaturize() bool { + return di._WindowDidDeminiaturize != nil } -// Tells the delegate the window is about to enter version browsing. [Full Topic] +// Tells the delegate that the window has been deminimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419463-windowwillenterversionbrowser?language=objc -func (di *WindowDelegate) SetWindowWillEnterVersionBrowser(f func(notification foundation.Notification)) { - di._WindowWillEnterVersionBrowser = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419296-windowdiddeminiaturize?language=objc +func (di *WindowDelegate) SetWindowDidDeminiaturize(f func(notification foundation.Notification)) { + di._WindowDidDeminiaturize = f } -// Tells the delegate the window is about to enter version browsing. [Full Topic] +// Tells the delegate that the window has been deminimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419463-windowwillenterversionbrowser?language=objc -func (di *WindowDelegate) WindowWillEnterVersionBrowser(notification foundation.Notification) { - di._WindowWillEnterVersionBrowser(notification) -} - -// ensure impl type implements protocol interface -var _ PWindowDelegate = (*WindowDelegateObject)(nil) - -// A concrete type for the [PWindowDelegate] protocol. -type WindowDelegateObject struct { - objc.Object +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419296-windowdiddeminiaturize?language=objc +func (di *WindowDelegate) WindowDidDeminiaturize(notification foundation.Notification) { + di._WindowDidDeminiaturize(notification) } - -func (w_ WindowDelegateObject) HasWindowWillUseFullScreenContentSize() bool { - return w_.RespondsToSelector(objc.Sel("window:willUseFullScreenContentSize:")) +func (di *WindowDelegate) HasCustomWindowsToExitFullScreenForWindow() bool { + return di._CustomWindowsToExitFullScreenForWindow != nil } -// Called to allow the delegate to modify the full-screen content size. [Full Topic] +// Called when the window is about to exit full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419282-window?language=objc -func (w_ WindowDelegateObject) WindowWillUseFullScreenContentSize(window Window, proposedSize foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("window:willUseFullScreenContentSize:"), window, proposedSize) - return rv -} - -func (w_ WindowDelegateObject) HasWindowDidMove() bool { - return w_.RespondsToSelector(objc.Sel("windowDidMove:")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419070-customwindowstoexitfullscreenfor?language=objc +func (di *WindowDelegate) SetCustomWindowsToExitFullScreenForWindow(f func(window Window) []Window) { + di._CustomWindowsToExitFullScreenForWindow = f } -// Tells the delegate that the window has moved. [Full Topic] +// Called when the window is about to exit full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419674-windowdidmove?language=objc -func (w_ WindowDelegateObject) WindowDidMove(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidMove:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419070-customwindowstoexitfullscreenfor?language=objc +func (di *WindowDelegate) CustomWindowsToExitFullScreenForWindow(window Window) []Window { + return di._CustomWindowsToExitFullScreenForWindow(window) } - -func (w_ WindowDelegateObject) HasWindowDidDeminiaturize() bool { - return w_.RespondsToSelector(objc.Sel("windowDidDeminiaturize:")) +func (di *WindowDelegate) HasWindowDidDecodeRestorableState() bool { + return di._WindowDidDecodeRestorableState != nil } -// Tells the delegate that the window has been deminimized. [Full Topic] +// Tells the delegate the window is has extracted its restorable state from a given archiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419296-windowdiddeminiaturize?language=objc -func (w_ WindowDelegateObject) WindowDidDeminiaturize(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidDeminiaturize:"), notification) -} - -func (w_ WindowDelegateObject) HasWindowDidChangeScreenProfile() bool { - return w_.RespondsToSelector(objc.Sel("windowDidChangeScreenProfile:")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419475-window?language=objc +func (di *WindowDelegate) SetWindowDidDecodeRestorableState(f func(window Window, state foundation.Coder)) { + di._WindowDidDecodeRestorableState = f } -// Tells the delegate that the window has changed screen display profiles. [Full Topic] +// Tells the delegate the window is has extracted its restorable state from a given archiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419581-windowdidchangescreenprofile?language=objc -func (w_ WindowDelegateObject) WindowDidChangeScreenProfile(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidChangeScreenProfile:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419475-window?language=objc +func (di *WindowDelegate) WindowDidDecodeRestorableState(window Window, state foundation.Coder) { + di._WindowDidDecodeRestorableState(window, state) } - -func (w_ WindowDelegateObject) HasCustomWindowsToEnterFullScreenForWindowOnScreen() bool { - return w_.RespondsToSelector(objc.Sel("customWindowsToEnterFullScreenForWindow:onScreen:")) +func (di *WindowDelegate) HasWindowDidMove() bool { + return di._WindowDidMove != nil } -// Called when the window is about to enter full-screen mode. [Full Topic] +// Tells the delegate that the window has moved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419557-customwindowstoenterfullscreenfo?language=objc -func (w_ WindowDelegateObject) CustomWindowsToEnterFullScreenForWindowOnScreen(window Window, screen Screen) []Window { - rv := objc.Call[[]Window](w_, objc.Sel("customWindowsToEnterFullScreenForWindow:onScreen:"), window, screen) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419674-windowdidmove?language=objc +func (di *WindowDelegate) SetWindowDidMove(f func(notification foundation.Notification)) { + di._WindowDidMove = f } -func (w_ WindowDelegateObject) HasWindowDidChangeScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowDidChangeScreen:")) +// Tells the delegate that the window has moved. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419674-windowdidmove?language=objc +func (di *WindowDelegate) WindowDidMove(notification foundation.Notification) { + di._WindowDidMove(notification) +} +func (di *WindowDelegate) HasWindowDidChangeScreen() bool { + return di._WindowDidChangeScreen != nil } // Tells the delegate that the window has changed screens. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419267-windowdidchangescreen?language=objc -func (w_ WindowDelegateObject) WindowDidChangeScreen(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidChangeScreen:"), notification) -} - -func (w_ WindowDelegateObject) HasWindowWillUseFullScreenPresentationOptions() bool { - return w_.RespondsToSelector(objc.Sel("window:willUseFullScreenPresentationOptions:")) +func (di *WindowDelegate) SetWindowDidChangeScreen(f func(notification foundation.Notification)) { + di._WindowDidChangeScreen = f } -// Returns the presentation options the window uses when transitioning to full-screen mode. [Full Topic] +// Tells the delegate that the window has changed screens. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419144-window?language=objc -func (w_ WindowDelegateObject) WindowWillUseFullScreenPresentationOptions(window Window, proposedOptions ApplicationPresentationOptions) ApplicationPresentationOptions { - rv := objc.Call[ApplicationPresentationOptions](w_, objc.Sel("window:willUseFullScreenPresentationOptions:"), window, proposedOptions) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419267-windowdidchangescreen?language=objc +func (di *WindowDelegate) WindowDidChangeScreen(notification foundation.Notification) { + di._WindowDidChangeScreen(notification) } - -func (w_ WindowDelegateObject) HasWindowWillBeginSheet() bool { - return w_.RespondsToSelector(objc.Sel("windowWillBeginSheet:")) +func (di *WindowDelegate) HasWindowDidEnterFullScreen() bool { + return di._WindowDidEnterFullScreen != nil } -// Notifies the delegate that the window is about to open a sheet. [Full Topic] +// The window has entered full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419408-windowwillbeginsheet?language=objc -func (w_ WindowDelegateObject) WindowWillBeginSheet(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillBeginSheet:"), notification) -} - -func (w_ WindowDelegateObject) HasWindowWillReturnFieldEditorToObject() bool { - return w_.RespondsToSelector(objc.Sel("windowWillReturnFieldEditor:toObject:")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419116-windowdidenterfullscreen?language=objc +func (di *WindowDelegate) SetWindowDidEnterFullScreen(f func(notification foundation.Notification)) { + di._WindowDidEnterFullScreen = f } -// Tells the delegate that the field editor for a text-displaying object has been requested. [Full Topic] +// The window has entered full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419416-windowwillreturnfieldeditor?language=objc -func (w_ WindowDelegateObject) WindowWillReturnFieldEditorToObject(sender Window, client objc.Object) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("windowWillReturnFieldEditor:toObject:"), sender, client) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419116-windowdidenterfullscreen?language=objc +func (di *WindowDelegate) WindowDidEnterFullScreen(notification foundation.Notification) { + di._WindowDidEnterFullScreen(notification) } - -func (w_ WindowDelegateObject) HasWindowShouldClose() bool { - return w_.RespondsToSelector(objc.Sel("windowShouldClose:")) +func (di *WindowDelegate) HasWindowWillExitFullScreen() bool { + return di._WindowWillExitFullScreen != nil } -// Tells the delegate that the user has attempted to close a window or the window has received a [appkit/nswindow/performclose] message. [Full Topic] +// The window is about to exit full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419380-windowshouldclose?language=objc -func (w_ WindowDelegateObject) WindowShouldClose(sender Window) bool { - rv := objc.Call[bool](w_, objc.Sel("windowShouldClose:"), sender) - return rv -} - -func (w_ WindowDelegateObject) HasWindowDidResignKey() bool { - return w_.RespondsToSelector(objc.Sel("windowDidResignKey:")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419332-windowwillexitfullscreen?language=objc +func (di *WindowDelegate) SetWindowWillExitFullScreen(f func(notification foundation.Notification)) { + di._WindowWillExitFullScreen = f } -// Tells the delegate that the window has resigned key window status. [Full Topic] +// The window is about to exit full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419711-windowdidresignkey?language=objc -func (w_ WindowDelegateObject) WindowDidResignKey(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidResignKey:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419332-windowwillexitfullscreen?language=objc +func (di *WindowDelegate) WindowWillExitFullScreen(notification foundation.Notification) { + di._WindowWillExitFullScreen(notification) } - -func (w_ WindowDelegateObject) HasWindowDidEndSheet() bool { - return w_.RespondsToSelector(objc.Sel("windowDidEndSheet:")) +func (di *WindowDelegate) HasWindowWillUseStandardFrameDefaultFrame() bool { + return di._WindowWillUseStandardFrameDefaultFrame != nil } -// Tells the delegate that the window has closed a sheet. [Full Topic] +// Called by NSWindow’s zoom: method while determining the frame a window may be zoomed to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419773-windowdidendsheet?language=objc -func (w_ WindowDelegateObject) WindowDidEndSheet(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidEndSheet:"), notification) -} - -func (w_ WindowDelegateObject) HasWindowDidBecomeKey() bool { - return w_.RespondsToSelector(objc.Sel("windowDidBecomeKey:")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419684-windowwillusestandardframe?language=objc +func (di *WindowDelegate) SetWindowWillUseStandardFrameDefaultFrame(f func(window Window, newFrame foundation.Rect) foundation.Rect) { + di._WindowWillUseStandardFrameDefaultFrame = f } -// Tells the delegate that the window has become the key window. [Full Topic] +// Called by NSWindow’s zoom: method while determining the frame a window may be zoomed to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419737-windowdidbecomekey?language=objc -func (w_ WindowDelegateObject) WindowDidBecomeKey(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidBecomeKey:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419684-windowwillusestandardframe?language=objc +func (di *WindowDelegate) WindowWillUseStandardFrameDefaultFrame(window Window, newFrame foundation.Rect) foundation.Rect { + return di._WindowWillUseStandardFrameDefaultFrame(window, newFrame) } - -func (w_ WindowDelegateObject) HasWindowWillResizeToSize() bool { - return w_.RespondsToSelector(objc.Sel("windowWillResize:toSize:")) +func (di *WindowDelegate) HasWindowDidEnterVersionBrowser() bool { + return di._WindowDidEnterVersionBrowser != nil } -// Tells the delegate that the window is being resized (whether by the user or through one of the setFrame... methods other than [appkit/nswindow/setframe]). [Full Topic] +// Tells the delegate that the window has entered version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419292-windowwillresize?language=objc -func (w_ WindowDelegateObject) WindowWillResizeToSize(sender Window, frameSize foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("windowWillResize:toSize:"), sender, frameSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419064-windowdidenterversionbrowser?language=objc +func (di *WindowDelegate) SetWindowDidEnterVersionBrowser(f func(notification foundation.Notification)) { + di._WindowDidEnterVersionBrowser = f } -func (w_ WindowDelegateObject) HasWindowWillMiniaturize() bool { - return w_.RespondsToSelector(objc.Sel("windowWillMiniaturize:")) +// Tells the delegate that the window has entered version browsing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419064-windowdidenterversionbrowser?language=objc +func (di *WindowDelegate) WindowDidEnterVersionBrowser(notification foundation.Notification) { + di._WindowDidEnterVersionBrowser(notification) } -// Tells the delegate that the window is about to be minimized. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419461-windowwillminiaturize?language=objc -func (w_ WindowDelegateObject) WindowWillMiniaturize(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillMiniaturize:"), notification) +// ensure impl type implements protocol interface +var _ PWindowDelegate = (*WindowDelegateObject)(nil) + +// A concrete type for the [PWindowDelegate] protocol. +type WindowDelegateObject struct { + objc.Object } -func (w_ WindowDelegateObject) HasWindowWillEncodeRestorableState() bool { - return w_.RespondsToSelector(objc.Sel("window:willEncodeRestorableState:")) +func (w_ WindowDelegateObject) HasWindowDidFailToExitFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowDidFailToExitFullScreen:")) } -// Tells the delegate the window is about to add its restorable state to a given archiver. [Full Topic] +// Called if the window failed to exit full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419619-window?language=objc -func (w_ WindowDelegateObject) WindowWillEncodeRestorableState(window Window, state foundation.Coder) { - objc.Call[objc.Void](w_, objc.Sel("window:willEncodeRestorableState:"), window, state) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419573-windowdidfailtoexitfullscreen?language=objc +func (w_ WindowDelegateObject) WindowDidFailToExitFullScreen(window Window) { + objc.Call[objc.Void](w_, objc.Sel("windowDidFailToExitFullScreen:"), window) } -func (w_ WindowDelegateObject) HasWindowWillExitVersionBrowser() bool { - return w_.RespondsToSelector(objc.Sel("windowWillExitVersionBrowser:")) +func (w_ WindowDelegateObject) HasWindowShouldZoomToFrame() bool { + return w_.RespondsToSelector(objc.Sel("windowShouldZoom:toFrame:")) } -// Tells the delegate that the window is about to leave version browsing. [Full Topic] +// Asks the delegate whether the specified window should zoom to the specified frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419252-windowwillexitversionbrowser?language=objc -func (w_ WindowDelegateObject) WindowWillExitVersionBrowser(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillExitVersionBrowser:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419533-windowshouldzoom?language=objc +func (w_ WindowDelegateObject) WindowShouldZoomToFrame(window Window, newFrame foundation.Rect) bool { + rv := objc.Call[bool](w_, objc.Sel("windowShouldZoom:toFrame:"), window, newFrame) + return rv } -func (w_ WindowDelegateObject) HasWindowDidEnterFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowDidEnterFullScreen:")) +func (w_ WindowDelegateObject) HasWindowDidEndSheet() bool { + return w_.RespondsToSelector(objc.Sel("windowDidEndSheet:")) } -// The window has entered full-screen mode. [Full Topic] +// Tells the delegate that the window has closed a sheet. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419116-windowdidenterfullscreen?language=objc -func (w_ WindowDelegateObject) WindowDidEnterFullScreen(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidEnterFullScreen:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419773-windowdidendsheet?language=objc +func (w_ WindowDelegateObject) WindowDidEndSheet(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidEndSheet:"), notification) } func (w_ WindowDelegateObject) HasWindowDidResize() bool { @@ -1362,6 +950,17 @@ func (w_ WindowDelegateObject) WindowDidResize(notification foundation.Notificat objc.Call[objc.Void](w_, objc.Sel("windowDidResize:"), notification) } +func (w_ WindowDelegateObject) HasWindowWillEnterFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowWillEnterFullScreen:")) +} + +// The window is about to enter full-screen mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419563-windowwillenterfullscreen?language=objc +func (w_ WindowDelegateObject) WindowWillEnterFullScreen(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowWillEnterFullScreen:"), notification) +} + func (w_ WindowDelegateObject) HasWindowWillMove() bool { return w_.RespondsToSelector(objc.Sel("windowWillMove:")) } @@ -1373,49 +972,60 @@ func (w_ WindowDelegateObject) WindowWillMove(notification foundation.Notificati objc.Call[objc.Void](w_, objc.Sel("windowWillMove:"), notification) } -func (w_ WindowDelegateObject) HasWindowStartCustomAnimationToExitFullScreenWithDuration() bool { - return w_.RespondsToSelector(objc.Sel("window:startCustomAnimationToExitFullScreenWithDuration:")) +func (w_ WindowDelegateObject) HasWindowWillStartLiveResize() bool { + return w_.RespondsToSelector(objc.Sel("windowWillStartLiveResize:")) } -// This method is called to start the window animation out of full-screen mode, including transitioning back to the desktop space. [Full Topic] +// Tells the delegate that the window is about to be live resized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419705-window?language=objc -func (w_ WindowDelegateObject) WindowStartCustomAnimationToExitFullScreenWithDuration(window Window, duration foundation.TimeInterval) { - objc.Call[objc.Void](w_, objc.Sel("window:startCustomAnimationToExitFullScreenWithDuration:"), window, duration) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419555-windowwillstartliveresize?language=objc +func (w_ WindowDelegateObject) WindowWillStartLiveResize(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowWillStartLiveResize:"), notification) } -func (w_ WindowDelegateObject) HasWindowWillExitFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowWillExitFullScreen:")) +func (w_ WindowDelegateObject) HasWindowDidFailToEnterFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowDidFailToEnterFullScreen:")) } -// The window is about to exit full-screen mode. [Full Topic] +// Called if the window failed to enter full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419332-windowwillexitfullscreen?language=objc -func (w_ WindowDelegateObject) WindowWillExitFullScreen(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillExitFullScreen:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419591-windowdidfailtoenterfullscreen?language=objc +func (w_ WindowDelegateObject) WindowDidFailToEnterFullScreen(window Window) { + objc.Call[objc.Void](w_, objc.Sel("windowDidFailToEnterFullScreen:"), window) } -func (w_ WindowDelegateObject) HasWindowShouldPopUpDocumentPathMenu() bool { - return w_.RespondsToSelector(objc.Sel("window:shouldPopUpDocumentPathMenu:")) +func (w_ WindowDelegateObject) HasWindowWillResizeToSize() bool { + return w_.RespondsToSelector(objc.Sel("windowWillResize:toSize:")) } -// Asks the delegate whether the window displays the title pop-up menu in response to a Command-click or Control-click on its title. [Full Topic] +// Tells the delegate that the window is being resized (whether by the user or through one of the setFrame... methods other than setFrame:display:). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419465-window?language=objc -func (w_ WindowDelegateObject) WindowShouldPopUpDocumentPathMenu(window Window, menu Menu) bool { - rv := objc.Call[bool](w_, objc.Sel("window:shouldPopUpDocumentPathMenu:"), window, menu) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419292-windowwillresize?language=objc +func (w_ WindowDelegateObject) WindowWillResizeToSize(sender Window, frameSize foundation.Size) foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("windowWillResize:toSize:"), sender, frameSize) return rv } -func (w_ WindowDelegateObject) HasWindowDidMiniaturize() bool { - return w_.RespondsToSelector(objc.Sel("windowDidMiniaturize:")) +func (w_ WindowDelegateObject) HasWindowDidChangeOcclusionState() bool { + return w_.RespondsToSelector(objc.Sel("windowDidChangeOcclusionState:")) } -// Tells the delegate that the window has been minimized. [Full Topic] +// Tells the delegate that the window changed its occlusion state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419621-windowdidminiaturize?language=objc -func (w_ WindowDelegateObject) WindowDidMiniaturize(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidMiniaturize:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419424-windowdidchangeocclusionstate?language=objc +func (w_ WindowDelegateObject) WindowDidChangeOcclusionState(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidChangeOcclusionState:"), notification) +} + +func (w_ WindowDelegateObject) HasWindowDidChangeScreenProfile() bool { + return w_.RespondsToSelector(objc.Sel("windowDidChangeScreenProfile:")) +} + +// Tells the delegate that the window has changed screen display profiles. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419581-windowdidchangescreenprofile?language=objc +func (w_ WindowDelegateObject) WindowDidChangeScreenProfile(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidChangeScreenProfile:"), notification) } func (w_ WindowDelegateObject) HasWindowWillReturnUndoManager() bool { @@ -1430,72 +1040,82 @@ func (w_ WindowDelegateObject) WindowWillReturnUndoManager(window Window) founda return rv } -func (w_ WindowDelegateObject) HasWindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize() bool { - return w_.RespondsToSelector(objc.Sel("window:willResizeForVersionBrowserWithMaxPreferredSize:maxAllowedSize:")) +func (w_ WindowDelegateObject) HasWindowWillBeginSheet() bool { + return w_.RespondsToSelector(objc.Sel("windowWillBeginSheet:")) +} + +// Notifies the delegate that the window is about to open a sheet. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419408-windowwillbeginsheet?language=objc +func (w_ WindowDelegateObject) WindowWillBeginSheet(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowWillBeginSheet:"), notification) +} + +func (w_ WindowDelegateObject) HasWindowDidResignKey() bool { + return w_.RespondsToSelector(objc.Sel("windowDidResignKey:")) } -// Tells the delegate the window will resize for presentation during version browsing. [Full Topic] +// Tells the delegate that the window has resigned key window status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419360-window?language=objc -func (w_ WindowDelegateObject) WindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize(window Window, maxPreferredFrameSize foundation.Size, maxAllowedFrameSize foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("window:willResizeForVersionBrowserWithMaxPreferredSize:maxAllowedSize:"), window, maxPreferredFrameSize, maxAllowedFrameSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419711-windowdidresignkey?language=objc +func (w_ WindowDelegateObject) WindowDidResignKey(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidResignKey:"), notification) } -func (w_ WindowDelegateObject) HasWindowWillEnterFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowWillEnterFullScreen:")) +func (w_ WindowDelegateObject) HasWindowShouldClose() bool { + return w_.RespondsToSelector(objc.Sel("windowShouldClose:")) } -// The window is about to enter full-screen mode. [Full Topic] +// Tells the delegate that the user has attempted to close a window or the window has received a performClose: message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419563-windowwillenterfullscreen?language=objc -func (w_ WindowDelegateObject) WindowWillEnterFullScreen(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillEnterFullScreen:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419380-windowshouldclose?language=objc +func (w_ WindowDelegateObject) WindowShouldClose(sender Window) bool { + rv := objc.Call[bool](w_, objc.Sel("windowShouldClose:"), sender) + return rv } -func (w_ WindowDelegateObject) HasWindowDidFailToEnterFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowDidFailToEnterFullScreen:")) +func (w_ WindowDelegateObject) HasWindowDidExitVersionBrowser() bool { + return w_.RespondsToSelector(objc.Sel("windowDidExitVersionBrowser:")) } -// Called if the window failed to enter full-screen mode. [Full Topic] +// Tells the delegate that the window has left version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419591-windowdidfailtoenterfullscreen?language=objc -func (w_ WindowDelegateObject) WindowDidFailToEnterFullScreen(window Window) { - objc.Call[objc.Void](w_, objc.Sel("windowDidFailToEnterFullScreen:"), window) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419501-windowdidexitversionbrowser?language=objc +func (w_ WindowDelegateObject) WindowDidExitVersionBrowser(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidExitVersionBrowser:"), notification) } -func (w_ WindowDelegateObject) HasWindowDidExpose() bool { - return w_.RespondsToSelector(objc.Sel("windowDidExpose:")) +func (w_ WindowDelegateObject) HasWindowDidBecomeKey() bool { + return w_.RespondsToSelector(objc.Sel("windowDidBecomeKey:")) } -// Tells the delegate that the window has been exposed. [Full Topic] +// Tells the delegate that the window has become the key window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419258-windowdidexpose?language=objc -func (w_ WindowDelegateObject) WindowDidExpose(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidExpose:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419737-windowdidbecomekey?language=objc +func (w_ WindowDelegateObject) WindowDidBecomeKey(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidBecomeKey:"), notification) } -func (w_ WindowDelegateObject) HasWindowDidEndLiveResize() bool { - return w_.RespondsToSelector(objc.Sel("windowDidEndLiveResize:")) +func (w_ WindowDelegateObject) HasWindowDidResignMain() bool { + return w_.RespondsToSelector(objc.Sel("windowDidResignMain:")) } -// Tells the delegate that a live resize operation on the window has ended. [Full Topic] +// Tells the delegate that the window has resigned main window status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419150-windowdidendliveresize?language=objc -func (w_ WindowDelegateObject) WindowDidEndLiveResize(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidEndLiveResize:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419584-windowdidresignmain?language=objc +func (w_ WindowDelegateObject) WindowDidResignMain(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidResignMain:"), notification) } -func (w_ WindowDelegateObject) HasWindowShouldZoomToFrame() bool { - return w_.RespondsToSelector(objc.Sel("windowShouldZoom:toFrame:")) +func (w_ WindowDelegateObject) HasWindowDidExitFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowDidExitFullScreen:")) } -// Asks the delegate whether the specified window should zoom to the specified frame. [Full Topic] +// The window has left full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419533-windowshouldzoom?language=objc -func (w_ WindowDelegateObject) WindowShouldZoomToFrame(window Window, newFrame foundation.Rect) bool { - rv := objc.Call[bool](w_, objc.Sel("windowShouldZoom:toFrame:"), window, newFrame) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419146-windowdidexitfullscreen?language=objc +func (w_ WindowDelegateObject) WindowDidExitFullScreen(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidExitFullScreen:"), notification) } func (w_ WindowDelegateObject) HasWindowDidBecomeMain() bool { @@ -1509,50 +1129,37 @@ func (w_ WindowDelegateObject) WindowDidBecomeMain(notification foundation.Notif objc.Call[objc.Void](w_, objc.Sel("windowDidBecomeMain:"), notification) } -func (w_ WindowDelegateObject) HasWindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration() bool { - return w_.RespondsToSelector(objc.Sel("window:startCustomAnimationToEnterFullScreenOnScreen:withDuration:")) -} - -// This method is called to start the window animation into full-screen mode, including transitioning to a new space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419709-window?language=objc -func (w_ WindowDelegateObject) WindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration(window Window, screen Screen, duration foundation.TimeInterval) { - objc.Call[objc.Void](w_, objc.Sel("window:startCustomAnimationToEnterFullScreenOnScreen:withDuration:"), window, screen, duration) -} - -func (w_ WindowDelegateObject) HasWindowShouldDragDocumentWithEventFromWithPasteboard() bool { - return w_.RespondsToSelector(objc.Sel("window:shouldDragDocumentWithEvent:from:withPasteboard:")) +func (w_ WindowDelegateObject) HasWindowDidMiniaturize() bool { + return w_.RespondsToSelector(objc.Sel("windowDidMiniaturize:")) } -// Asks the delegate whether a user can drag the document icon from the window’s title bar. [Full Topic] +// Tells the delegate that the window has been minimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419452-window?language=objc -func (w_ WindowDelegateObject) WindowShouldDragDocumentWithEventFromWithPasteboard(window Window, event Event, dragImageLocation foundation.Point, pasteboard Pasteboard) bool { - rv := objc.Call[bool](w_, objc.Sel("window:shouldDragDocumentWithEvent:from:withPasteboard:"), window, event, dragImageLocation, pasteboard) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419621-windowdidminiaturize?language=objc +func (w_ WindowDelegateObject) WindowDidMiniaturize(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidMiniaturize:"), notification) } -func (w_ WindowDelegateObject) HasWindowDidDecodeRestorableState() bool { - return w_.RespondsToSelector(objc.Sel("window:didDecodeRestorableState:")) +func (w_ WindowDelegateObject) HasWindowDidExpose() bool { + return w_.RespondsToSelector(objc.Sel("windowDidExpose:")) } -// Tells the delegate the window is has extracted its restorable state from a given archiver. [Full Topic] +// Tells the delegate that the window has been exposed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419475-window?language=objc -func (w_ WindowDelegateObject) WindowDidDecodeRestorableState(window Window, state foundation.Coder) { - objc.Call[objc.Void](w_, objc.Sel("window:didDecodeRestorableState:"), window, state) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419258-windowdidexpose?language=objc +func (w_ WindowDelegateObject) WindowDidExpose(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidExpose:"), notification) } -func (w_ WindowDelegateObject) HasWindowWillPositionSheetUsingRect() bool { - return w_.RespondsToSelector(objc.Sel("window:willPositionSheet:usingRect:")) +func (w_ WindowDelegateObject) HasWindowWillMiniaturize() bool { + return w_.RespondsToSelector(objc.Sel("windowWillMiniaturize:")) } -// Tells the delegate that the window is about to show a sheet at the specified location, giving it the opportunity to return a custom location for the attachment of the sheet to the window. [Full Topic] +// Tells the delegate that the window is about to be minimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419611-window?language=objc -func (w_ WindowDelegateObject) WindowWillPositionSheetUsingRect(window Window, sheet Window, rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("window:willPositionSheet:usingRect:"), window, sheet, rect) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419461-windowwillminiaturize?language=objc +func (w_ WindowDelegateObject) WindowWillMiniaturize(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowWillMiniaturize:"), notification) } func (w_ WindowDelegateObject) HasWindowDidChangeBackingProperties() bool { @@ -1566,6 +1173,17 @@ func (w_ WindowDelegateObject) WindowDidChangeBackingProperties(notification fou objc.Call[objc.Void](w_, objc.Sel("windowDidChangeBackingProperties:"), notification) } +func (w_ WindowDelegateObject) HasWindowWillClose() bool { + return w_.RespondsToSelector(objc.Sel("windowWillClose:")) +} + +// Tells the delegate that the window is about to close. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419605-windowwillclose?language=objc +func (w_ WindowDelegateObject) WindowWillClose(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowWillClose:"), notification) +} + func (w_ WindowDelegateObject) HasCustomWindowsToEnterFullScreenForWindow() bool { return w_.RespondsToSelector(objc.Sel("customWindowsToEnterFullScreenForWindow:")) } @@ -1578,71 +1196,71 @@ func (w_ WindowDelegateObject) CustomWindowsToEnterFullScreenForWindow(window Wi return rv } -func (w_ WindowDelegateObject) HasWindowWillUseStandardFrameDefaultFrame() bool { - return w_.RespondsToSelector(objc.Sel("windowWillUseStandardFrame:defaultFrame:")) +func (w_ WindowDelegateObject) HasWindowWillEnterVersionBrowser() bool { + return w_.RespondsToSelector(objc.Sel("windowWillEnterVersionBrowser:")) } -// Called by NSWindow’s [appkit/nswindow/zoom] method while determining the frame a window may be zoomed to. [Full Topic] +// Tells the delegate the window is about to enter version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419684-windowwillusestandardframe?language=objc -func (w_ WindowDelegateObject) WindowWillUseStandardFrameDefaultFrame(window Window, newFrame foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("windowWillUseStandardFrame:defaultFrame:"), window, newFrame) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419463-windowwillenterversionbrowser?language=objc +func (w_ WindowDelegateObject) WindowWillEnterVersionBrowser(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowWillEnterVersionBrowser:"), notification) } -func (w_ WindowDelegateObject) HasWindowDidEnterVersionBrowser() bool { - return w_.RespondsToSelector(objc.Sel("windowDidEnterVersionBrowser:")) +func (w_ WindowDelegateObject) HasWindowDidEndLiveResize() bool { + return w_.RespondsToSelector(objc.Sel("windowDidEndLiveResize:")) } -// Tells the delegate that the window has entered version browsing. [Full Topic] +// Tells the delegate that a live resize operation on the window has ended. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419064-windowdidenterversionbrowser?language=objc -func (w_ WindowDelegateObject) WindowDidEnterVersionBrowser(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidEnterVersionBrowser:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419150-windowdidendliveresize?language=objc +func (w_ WindowDelegateObject) WindowDidEndLiveResize(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidEndLiveResize:"), notification) } -func (w_ WindowDelegateObject) HasWindowStartCustomAnimationToEnterFullScreenWithDuration() bool { - return w_.RespondsToSelector(objc.Sel("window:startCustomAnimationToEnterFullScreenWithDuration:")) +func (w_ WindowDelegateObject) HasWindowDidUpdate() bool { + return w_.RespondsToSelector(objc.Sel("windowDidUpdate:")) } -// This method is called to start the window animation into full-screen mode, including transitioning to a new space. [Full Topic] +// Tells the delegate that the window received an update message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419406-window?language=objc -func (w_ WindowDelegateObject) WindowStartCustomAnimationToEnterFullScreenWithDuration(window Window, duration foundation.TimeInterval) { - objc.Call[objc.Void](w_, objc.Sel("window:startCustomAnimationToEnterFullScreenWithDuration:"), window, duration) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419493-windowdidupdate?language=objc +func (w_ WindowDelegateObject) WindowDidUpdate(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidUpdate:"), notification) } -func (w_ WindowDelegateObject) HasWindowDidResignMain() bool { - return w_.RespondsToSelector(objc.Sel("windowDidResignMain:")) +func (w_ WindowDelegateObject) HasWindowWillExitVersionBrowser() bool { + return w_.RespondsToSelector(objc.Sel("windowWillExitVersionBrowser:")) } -// Tells the delegate that the window has resigned main window status. [Full Topic] +// Tells the delegate that the window is about to leave version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419584-windowdidresignmain?language=objc -func (w_ WindowDelegateObject) WindowDidResignMain(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidResignMain:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419252-windowwillexitversionbrowser?language=objc +func (w_ WindowDelegateObject) WindowWillExitVersionBrowser(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowWillExitVersionBrowser:"), notification) } -func (w_ WindowDelegateObject) HasWindowDidExitVersionBrowser() bool { - return w_.RespondsToSelector(objc.Sel("windowDidExitVersionBrowser:")) +func (w_ WindowDelegateObject) HasWindowWillReturnFieldEditorToObject() bool { + return w_.RespondsToSelector(objc.Sel("windowWillReturnFieldEditor:toObject:")) } -// Tells the delegate that the window has left version browsing. [Full Topic] +// Tells the delegate that the field editor for a text-displaying object has been requested. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419501-windowdidexitversionbrowser?language=objc -func (w_ WindowDelegateObject) WindowDidExitVersionBrowser(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidExitVersionBrowser:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419416-windowwillreturnfieldeditor?language=objc +func (w_ WindowDelegateObject) WindowWillReturnFieldEditorToObject(sender Window, client objc.Object) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("windowWillReturnFieldEditor:toObject:"), sender, client) + return rv } -func (w_ WindowDelegateObject) HasWindowWillClose() bool { - return w_.RespondsToSelector(objc.Sel("windowWillClose:")) +func (w_ WindowDelegateObject) HasWindowDidDeminiaturize() bool { + return w_.RespondsToSelector(objc.Sel("windowDidDeminiaturize:")) } -// Tells the delegate that the window is about to close. [Full Topic] +// Tells the delegate that the window has been deminimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419605-windowwillclose?language=objc -func (w_ WindowDelegateObject) WindowWillClose(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillClose:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419296-windowdiddeminiaturize?language=objc +func (w_ WindowDelegateObject) WindowDidDeminiaturize(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidDeminiaturize:"), notification) } func (w_ WindowDelegateObject) HasCustomWindowsToExitFullScreenForWindow() bool { @@ -1657,68 +1275,80 @@ func (w_ WindowDelegateObject) CustomWindowsToExitFullScreenForWindow(window Win return rv } -func (w_ WindowDelegateObject) HasWindowDidUpdate() bool { - return w_.RespondsToSelector(objc.Sel("windowDidUpdate:")) +func (w_ WindowDelegateObject) HasWindowDidDecodeRestorableState() bool { + return w_.RespondsToSelector(objc.Sel("window:didDecodeRestorableState:")) } -// Tells the delegate that the window received an [appkit/nswindow/update] message. [Full Topic] +// Tells the delegate the window is has extracted its restorable state from a given archiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419493-windowdidupdate?language=objc -func (w_ WindowDelegateObject) WindowDidUpdate(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidUpdate:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419475-window?language=objc +func (w_ WindowDelegateObject) WindowDidDecodeRestorableState(window Window, state foundation.Coder) { + objc.Call[objc.Void](w_, objc.Sel("window:didDecodeRestorableState:"), window, state) } -func (w_ WindowDelegateObject) HasWindowWillStartLiveResize() bool { - return w_.RespondsToSelector(objc.Sel("windowWillStartLiveResize:")) +func (w_ WindowDelegateObject) HasWindowDidMove() bool { + return w_.RespondsToSelector(objc.Sel("windowDidMove:")) } -// Tells the delegate that the window is about to be live resized. [Full Topic] +// Tells the delegate that the window has moved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419555-windowwillstartliveresize?language=objc -func (w_ WindowDelegateObject) WindowWillStartLiveResize(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillStartLiveResize:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419674-windowdidmove?language=objc +func (w_ WindowDelegateObject) WindowDidMove(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidMove:"), notification) } -func (w_ WindowDelegateObject) HasWindowDidChangeOcclusionState() bool { - return w_.RespondsToSelector(objc.Sel("windowDidChangeOcclusionState:")) +func (w_ WindowDelegateObject) HasWindowDidChangeScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowDidChangeScreen:")) } -// Tells the delegate that the window changed its occlusion state. [Full Topic] +// Tells the delegate that the window has changed screens. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419424-windowdidchangeocclusionstate?language=objc -func (w_ WindowDelegateObject) WindowDidChangeOcclusionState(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidChangeOcclusionState:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419267-windowdidchangescreen?language=objc +func (w_ WindowDelegateObject) WindowDidChangeScreen(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidChangeScreen:"), notification) } -func (w_ WindowDelegateObject) HasWindowDidFailToExitFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowDidFailToExitFullScreen:")) +func (w_ WindowDelegateObject) HasWindowDidEnterFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowDidEnterFullScreen:")) } -// Called if the window failed to exit full-screen mode. [Full Topic] +// The window has entered full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419573-windowdidfailtoexitfullscreen?language=objc -func (w_ WindowDelegateObject) WindowDidFailToExitFullScreen(window Window) { - objc.Call[objc.Void](w_, objc.Sel("windowDidFailToExitFullScreen:"), window) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419116-windowdidenterfullscreen?language=objc +func (w_ WindowDelegateObject) WindowDidEnterFullScreen(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidEnterFullScreen:"), notification) } -func (w_ WindowDelegateObject) HasWindowDidExitFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowDidExitFullScreen:")) +func (w_ WindowDelegateObject) HasWindowWillExitFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowWillExitFullScreen:")) } -// The window has left full-screen mode. [Full Topic] +// The window is about to exit full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419146-windowdidexitfullscreen?language=objc -func (w_ WindowDelegateObject) WindowDidExitFullScreen(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidExitFullScreen:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419332-windowwillexitfullscreen?language=objc +func (w_ WindowDelegateObject) WindowWillExitFullScreen(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowWillExitFullScreen:"), notification) } -func (w_ WindowDelegateObject) HasWindowWillEnterVersionBrowser() bool { - return w_.RespondsToSelector(objc.Sel("windowWillEnterVersionBrowser:")) +func (w_ WindowDelegateObject) HasWindowWillUseStandardFrameDefaultFrame() bool { + return w_.RespondsToSelector(objc.Sel("windowWillUseStandardFrame:defaultFrame:")) } -// Tells the delegate the window is about to enter version browsing. [Full Topic] +// Called by NSWindow’s zoom: method while determining the frame a window may be zoomed to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419463-windowwillenterversionbrowser?language=objc -func (w_ WindowDelegateObject) WindowWillEnterVersionBrowser(notification foundation.Notification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillEnterVersionBrowser:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419684-windowwillusestandardframe?language=objc +func (w_ WindowDelegateObject) WindowWillUseStandardFrameDefaultFrame(window Window, newFrame foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](w_, objc.Sel("windowWillUseStandardFrame:defaultFrame:"), window, newFrame) + return rv +} + +func (w_ WindowDelegateObject) HasWindowDidEnterVersionBrowser() bool { + return w_.RespondsToSelector(objc.Sel("windowDidEnterVersionBrowser:")) +} + +// Tells the delegate that the window has entered version browsing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419064-windowdidenterversionbrowser?language=objc +func (w_ WindowDelegateObject) WindowDidEnterVersionBrowser(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidEnterVersionBrowser:"), notification) } diff --git a/macos/appkit/window_tab.gen.go b/macos/appkit/window_tab.gen.go index 3978379c..09f2558c 100644 --- a/macos/appkit/window_tab.gen.go +++ b/macos/appkit/window_tab.gen.go @@ -19,12 +19,12 @@ type _WindowTabClass struct { // An interface definition for the [WindowTab] class. type IWindowTab interface { objc.IObject - AccessoryView() View - SetAccessoryView(value IView) - AttributedTitle() foundation.AttributedString - SetAttributedTitle(value foundation.IAttributedString) ToolTip() string SetToolTip(value string) + AttributedTitle() foundation.AttributedString + SetAttributedTitle(value foundation.IAttributedString) + AccessoryView() View + SetAccessoryView(value IView) Title() string SetTitle(value string) } @@ -62,19 +62,19 @@ func (w_ WindowTab) Init() WindowTab { return rv } -// An optional accessory view for the tab. [Full Topic] +// The tooltip for this window tab. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtab/2869745-accessoryview?language=objc -func (w_ WindowTab) AccessoryView() View { - rv := objc.Call[View](w_, objc.Sel("accessoryView")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtab/2869744-tooltip?language=objc +func (w_ WindowTab) ToolTip() string { + rv := objc.Call[string](w_, objc.Sel("toolTip")) return rv } -// An optional accessory view for the tab. [Full Topic] +// The tooltip for this window tab. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtab/2869745-accessoryview?language=objc -func (w_ WindowTab) SetAccessoryView(value IView) { - objc.Call[objc.Void](w_, objc.Sel("setAccessoryView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtab/2869744-tooltip?language=objc +func (w_ WindowTab) SetToolTip(value string) { + objc.Call[objc.Void](w_, objc.Sel("setToolTip:"), value) } // The title for the window tab, specified as an attributed string. [Full Topic] @@ -92,19 +92,19 @@ func (w_ WindowTab) SetAttributedTitle(value foundation.IAttributedString) { objc.Call[objc.Void](w_, objc.Sel("setAttributedTitle:"), value) } -// The tooltip for this window tab. [Full Topic] +// An optional accessory view for the tab. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtab/2869744-tooltip?language=objc -func (w_ WindowTab) ToolTip() string { - rv := objc.Call[string](w_, objc.Sel("toolTip")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtab/2869745-accessoryview?language=objc +func (w_ WindowTab) AccessoryView() View { + rv := objc.Call[View](w_, objc.Sel("accessoryView")) return rv } -// The tooltip for this window tab. [Full Topic] +// An optional accessory view for the tab. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtab/2869744-tooltip?language=objc -func (w_ WindowTab) SetToolTip(value string) { - objc.Call[objc.Void](w_, objc.Sel("setToolTip:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtab/2869745-accessoryview?language=objc +func (w_ WindowTab) SetAccessoryView(value IView) { + objc.Call[objc.Void](w_, objc.Sel("setAccessoryView:"), value) } // The title for the window tab. [Full Topic] diff --git a/macos/appkit/window_tab_group.gen.go b/macos/appkit/window_tab_group.gen.go index 458b9ef4..2b823339 100644 --- a/macos/appkit/window_tab_group.gen.go +++ b/macos/appkit/window_tab_group.gen.go @@ -18,16 +18,16 @@ type _WindowTabGroupClass struct { // An interface definition for the [WindowTabGroup] class. type IWindowTabGroup interface { objc.IObject + AddWindow(window IWindow) RemoveWindow(window IWindow) InsertWindowAtIndex(window IWindow, index int) - AddWindow(window IWindow) - Windows() []Window - Identifier() WindowTabbingIdentifier IsTabBarVisible() bool - IsOverviewVisible() bool - SetOverviewVisible(value bool) SelectedWindow() Window SetSelectedWindow(value IWindow) + Windows() []Window + IsOverviewVisible() bool + SetOverviewVisible(value bool) + Identifier() WindowTabbingIdentifier } // A group of windows that display together as a single tabbed window. [Full Topic] @@ -63,6 +63,13 @@ func (w_ WindowTabGroup) Init() WindowTabGroup { return rv } +// Adds a window to the tab group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879450-addwindow?language=objc +func (w_ WindowTabGroup) AddWindow(window IWindow) { + objc.Call[objc.Void](w_, objc.Sel("addWindow:"), window) +} + // Removes a window from the tab group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879459-removewindow?language=objc @@ -77,34 +84,34 @@ func (w_ WindowTabGroup) InsertWindowAtIndex(window IWindow, index int) { objc.Call[objc.Void](w_, objc.Sel("insertWindow:atIndex:"), window, index) } -// Adds a window to the tab group. [Full Topic] +// A Boolean value indicating whether the tabbed window group currently displays a tab bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879450-addwindow?language=objc -func (w_ WindowTabGroup) AddWindow(window IWindow) { - objc.Call[objc.Void](w_, objc.Sel("addWindow:"), window) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879451-tabbarvisible?language=objc +func (w_ WindowTabGroup) IsTabBarVisible() bool { + rv := objc.Call[bool](w_, objc.Sel("isTabBarVisible")) + return rv } -// A collection of the windows that are currently grouped together by this window tab group. [Full Topic] +// The selected, or frontmost, window in the tab group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879458-windows?language=objc -func (w_ WindowTabGroup) Windows() []Window { - rv := objc.Call[[]Window](w_, objc.Sel("windows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879457-selectedwindow?language=objc +func (w_ WindowTabGroup) SelectedWindow() Window { + rv := objc.Call[Window](w_, objc.Sel("selectedWindow")) return rv } -// The unique identifier for a tabbed window group. [Full Topic] +// The selected, or frontmost, window in the tab group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879445-identifier?language=objc -func (w_ WindowTabGroup) Identifier() WindowTabbingIdentifier { - rv := objc.Call[WindowTabbingIdentifier](w_, objc.Sel("identifier")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879457-selectedwindow?language=objc +func (w_ WindowTabGroup) SetSelectedWindow(value IWindow) { + objc.Call[objc.Void](w_, objc.Sel("setSelectedWindow:"), value) } -// A Boolean value indicating whether the tabbed window group currently displays a tab bar. [Full Topic] +// A collection of the windows that are currently grouped together by this window tab group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879451-tabbarvisible?language=objc -func (w_ WindowTabGroup) IsTabBarVisible() bool { - rv := objc.Call[bool](w_, objc.Sel("isTabBarVisible")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879458-windows?language=objc +func (w_ WindowTabGroup) Windows() []Window { + rv := objc.Call[[]Window](w_, objc.Sel("windows")) return rv } @@ -123,17 +130,10 @@ func (w_ WindowTabGroup) SetOverviewVisible(value bool) { objc.Call[objc.Void](w_, objc.Sel("setOverviewVisible:"), value) } -// The selected, or frontmost, window in the tab group. [Full Topic] +// The unique identifier for a tabbed window group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879457-selectedwindow?language=objc -func (w_ WindowTabGroup) SelectedWindow() Window { - rv := objc.Call[Window](w_, objc.Sel("selectedWindow")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879445-identifier?language=objc +func (w_ WindowTabGroup) Identifier() WindowTabbingIdentifier { + rv := objc.Call[WindowTabbingIdentifier](w_, objc.Sel("identifier")) return rv } - -// The selected, or frontmost, window in the tab group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879457-selectedwindow?language=objc -func (w_ WindowTabGroup) SetSelectedWindow(value IWindow) { - objc.Call[objc.Void](w_, objc.Sel("setSelectedWindow:"), value) -} diff --git a/macos/appkit/workspace.gen.go b/macos/appkit/workspace.gen.go index 46a80e3c..84e52086 100644 --- a/macos/appkit/workspace.gen.go +++ b/macos/appkit/workspace.gen.go @@ -20,53 +20,47 @@ type _WorkspaceClass struct { // An interface definition for the [Workspace] class. type IWorkspace interface { objc.IObject - SetDefaultApplicationAtURLToOpenFileAtURLCompletionHandler(applicationURL foundation.IURL, url foundation.IURL, completionHandler func(error foundation.Error)) - DuplicateURLsCompletionHandler(URLs []foundation.IURL, handler func(newURLs foundation.Dictionary, error foundation.Error)) + URLForApplicationWithBundleIdentifier(bundleIdentifier string) foundation.URL + OpenURLsWithApplicationAtURLConfigurationCompletionHandler(urls []foundation.IURL, applicationURL foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) + URLForApplicationToOpenURL(url foundation.IURL) foundation.URL + IconForFiles(fullPaths []string) Image + IconForFile(fullPath string) Image URLForApplicationToOpenContentType(contentType uti.IType) foundation.URL - OpenApplicationAtURLConfigurationCompletionHandler(applicationURL foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) - UnmountAndEjectDeviceAtPath(path string) bool - DesktopImageURLForScreen(screen IScreen) foundation.URL OpenURLConfigurationCompletionHandler(url foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) - URLsForApplicationsToOpenURL(url foundation.IURL) []foundation.URL - NoteFileSystemChanged(path string) - SetDesktopImageURLForScreenOptionsError(url foundation.IURL, screen IScreen, options map[WorkspaceDesktopImageOptionKey]objc.IObject, error unsafe.Pointer) bool - URLsForApplicationsToOpenContentType(contentType uti.IType) []foundation.URL - ActivateFileViewerSelectingURLs(fileURLs []foundation.IURL) - ExtendPowerOffBy(requested int) int - RequestAuthorizationOfTypeCompletionHandler(type_ WorkspaceAuthorizationType, completionHandler func(authorization WorkspaceAuthorization, error foundation.Error)) RecycleURLsCompletionHandler(URLs []foundation.IURL, handler func(newURLs foundation.Dictionary, error foundation.Error)) - SelectFileInFileViewerRootedAtPath(fullPath string, rootFullPath string) bool - SetDefaultApplicationAtURLToOpenContentTypeCompletionHandler(applicationURL foundation.IURL, contentType uti.IType, completionHandler func(error foundation.Error)) - OpenURL(url foundation.IURL) bool - IconForFiles(fullPaths []string) Image - URLForApplicationWithBundleIdentifier(bundleIdentifier string) foundation.URL - IsFilePackageAtPath(fullPath string) bool - IconForFile(fullPath string) Image - IconForContentType(contentType uti.IType) Image - SetDefaultApplicationAtURLToOpenContentTypeOfFileAtURLCompletionHandler(applicationURL foundation.IURL, url foundation.IURL, completionHandler func(error foundation.Error)) - DesktopImageOptionsForScreen(screen IScreen) map[WorkspaceDesktopImageOptionKey]objc.Object - OpenURLsWithApplicationAtURLConfigurationCompletionHandler(urls []foundation.IURL, applicationURL foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) + URLsForApplicationsToOpenContentType(contentType uti.IType) []foundation.URL UnmountAndEjectDeviceAtURLError(url foundation.IURL, error unsafe.Pointer) bool - HideOtherApplications() - ShowSearchResultsForQueryString(queryString string) bool - URLsForApplicationsWithBundleIdentifier(bundleIdentifier string) []foundation.URL + DesktopImageOptionsForScreen(screen IScreen) map[WorkspaceDesktopImageOptionKey]objc.Object + DesktopImageURLForScreen(screen IScreen) foundation.URL + SetDefaultApplicationAtURLToOpenFileAtURLCompletionHandler(applicationURL foundation.IURL, url foundation.IURL, completionHandler func(error foundation.Error)) SetIconForFileOptions(image IImage, fullPath string, options WorkspaceIconCreationOptions) bool - SetDefaultApplicationAtURLToOpenURLsWithSchemeCompletionHandler(applicationURL foundation.IURL, urlScheme string, completionHandler func(error foundation.Error)) - URLForApplicationToOpenURL(url foundation.IURL) foundation.URL + SetDesktopImageURLForScreenOptionsError(url foundation.IURL, screen IScreen, options map[WorkspaceDesktopImageOptionKey]objc.IObject, error unsafe.Pointer) bool GetFileSystemInfoForPathIsRemovableIsWritableIsUnmountableDescriptionType(fullPath string, removableFlag *bool, writableFlag *bool, unmountableFlag *bool, description unsafe.Pointer, fileSystemType unsafe.Pointer) bool + UnmountAndEjectDeviceAtPath(path string) bool + HideOtherApplications() + RequestAuthorizationOfTypeCompletionHandler(type_ WorkspaceAuthorizationType, completionHandler func(authorization WorkspaceAuthorization, error foundation.Error)) + URLsForApplicationsToOpenURL(url foundation.IURL) []foundation.URL + URLsForApplicationsWithBundleIdentifier(bundleIdentifier string) []foundation.URL + IsFilePackageAtPath(fullPath string) bool + SelectFileInFileViewerRootedAtPath(fullPath string, rootFullPath string) bool + ActivateFileViewerSelectingURLs(fileURLs []foundation.IURL) + ShowSearchResultsForQueryString(queryString string) bool + OpenApplicationAtURLConfigurationCompletionHandler(applicationURL foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) + DuplicateURLsCompletionHandler(URLs []foundation.IURL, handler func(newURLs foundation.Dictionary, error foundation.Error)) + IconForContentType(contentType uti.IType) Image + ExtendPowerOffBy(requested int) int AccessibilityDisplayShouldIncreaseContrast() bool - AccessibilityDisplayShouldDifferentiateWithoutColor() bool + FileLabels() []string + AccessibilityDisplayShouldReduceMotion() bool + FrontmostApplication() RunningApplication + FileLabelColors() []Color AccessibilityDisplayShouldInvertColors() bool + IsVoiceOverEnabled() bool RunningApplications() []RunningApplication IsSwitchControlEnabled() bool MenuBarOwningApplication() RunningApplication - IsVoiceOverEnabled() bool NotificationCenter() foundation.NotificationCenter - AccessibilityDisplayShouldReduceMotion() bool - FrontmostApplication() RunningApplication - FileLabels() []string - FileLabelColors() []Color - AccessibilityDisplayShouldReduceTransparency() bool + AccessibilityDisplayShouldDifferentiateWithoutColor() bool } // A workspace that can launch other apps and perform a variety of file-handling services. [Full Topic] @@ -102,48 +96,50 @@ func (w_ Workspace) Init() Workspace { return rv } -// [Full Topic] +// Returns the URL for the app with the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3753004-setdefaultapplicationaturl?language=objc -func (w_ Workspace) SetDefaultApplicationAtURLToOpenFileAtURLCompletionHandler(applicationURL foundation.IURL, url foundation.IURL, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("setDefaultApplicationAtURL:toOpenFileAtURL:completionHandler:"), applicationURL, url, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1534053-urlforapplicationwithbundleident?language=objc +func (w_ Workspace) URLForApplicationWithBundleIdentifier(bundleIdentifier string) foundation.URL { + rv := objc.Call[foundation.URL](w_, objc.Sel("URLForApplicationWithBundleIdentifier:"), bundleIdentifier) + return rv } -// Duplicates the specified URLS asynchronously in the same manner as the Finder. [Full Topic] +// Opens one or more URLs asynchronously in the specified app using the provided options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1524490-duplicateurls?language=objc -func (w_ Workspace) DuplicateURLsCompletionHandler(URLs []foundation.IURL, handler func(newURLs foundation.Dictionary, error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("duplicateURLs:completionHandler:"), URLs, handler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3172702-openurls?language=objc +func (w_ Workspace) OpenURLsWithApplicationAtURLConfigurationCompletionHandler(urls []foundation.IURL, applicationURL foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("openURLs:withApplicationAtURL:configuration:completionHandler:"), urls, applicationURL, configuration, completionHandler) } -// [Full Topic] +// Returns the URL to the default app that would be opened. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3752998-urlforapplicationtoopencontentty?language=objc -func (w_ Workspace) URLForApplicationToOpenContentType(contentType uti.IType) foundation.URL { - rv := objc.Call[foundation.URL](w_, objc.Sel("URLForApplicationToOpenContentType:"), contentType) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1533391-urlforapplicationtoopenurl?language=objc +func (w_ Workspace) URLForApplicationToOpenURL(url foundation.IURL) foundation.URL { + rv := objc.Call[foundation.URL](w_, objc.Sel("URLForApplicationToOpenURL:"), url) return rv } -// Launches the app at the specified URL and asynchronously reports back on the app's status. [Full Topic] +// Returns an image containing the icon for the specified files. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3172700-openapplicationaturl?language=objc -func (w_ Workspace) OpenApplicationAtURLConfigurationCompletionHandler(applicationURL foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("openApplicationAtURL:configuration:completionHandler:"), applicationURL, configuration, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1525487-iconforfiles?language=objc +func (w_ Workspace) IconForFiles(fullPaths []string) Image { + rv := objc.Call[Image](w_, objc.Sel("iconForFiles:"), fullPaths) + return rv } -// Unmounts and ejects the device at the specified path. [Full Topic] +// Returns an image containing the icon for the specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1527741-unmountandejectdeviceatpath?language=objc -func (w_ Workspace) UnmountAndEjectDeviceAtPath(path string) bool { - rv := objc.Call[bool](w_, objc.Sel("unmountAndEjectDeviceAtPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1528158-iconforfile?language=objc +func (w_ Workspace) IconForFile(fullPath string) Image { + rv := objc.Call[Image](w_, objc.Sel("iconForFile:"), fullPath) return rv } -// Returns the URL for the desktop image for the given screen. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530635-desktopimageurlforscreen?language=objc -func (w_ Workspace) DesktopImageURLForScreen(screen IScreen) foundation.URL { - rv := objc.Call[foundation.URL](w_, objc.Sel("desktopImageURLForScreen:"), screen) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3752998-urlforapplicationtoopencontentty?language=objc +func (w_ Workspace) URLForApplicationToOpenContentType(contentType uti.IType) foundation.URL { + rv := objc.Call[foundation.URL](w_, objc.Sel("URLForApplicationToOpenContentType:"), contentType) return rv } @@ -154,27 +150,11 @@ func (w_ Workspace) OpenURLConfigurationCompletionHandler(url foundation.IURL, c objc.Call[objc.Void](w_, objc.Sel("openURL:configuration:completionHandler:"), url, configuration, completionHandler) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3753000-urlsforapplicationstoopenurl?language=objc -func (w_ Workspace) URLsForApplicationsToOpenURL(url foundation.IURL) []foundation.URL { - rv := objc.Call[[]foundation.URL](w_, objc.Sel("URLsForApplicationsToOpenURL:"), url) - return rv -} - -// Informs the workspace object that the file system changed at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1525376-notefilesystemchanged?language=objc -func (w_ Workspace) NoteFileSystemChanged(path string) { - objc.Call[objc.Void](w_, objc.Sel("noteFileSystemChanged:"), path) -} - -// Sets the desktop image for the given screen to the image at the specified URL. [Full Topic] +// Moves the specified URLs to the trash in the same manner as the Finder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1527228-setdesktopimageurl?language=objc -func (w_ Workspace) SetDesktopImageURLForScreenOptionsError(url foundation.IURL, screen IScreen, options map[WorkspaceDesktopImageOptionKey]objc.IObject, error unsafe.Pointer) bool { - rv := objc.Call[bool](w_, objc.Sel("setDesktopImageURL:forScreen:options:error:"), url, screen, options, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530465-recycleurls?language=objc +func (w_ Workspace) RecycleURLsCompletionHandler(URLs []foundation.IURL, handler func(newURLs foundation.Dictionary, error foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("recycleURLs:completionHandler:"), URLs, handler) } // [Full Topic] @@ -185,133 +165,120 @@ func (w_ Workspace) URLsForApplicationsToOpenContentType(contentType uti.IType) return rv } -// Activates the Finder, and opens one or more windows selecting the specified files. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1524549-activatefileviewerselectingurls?language=objc -func (w_ Workspace) ActivateFileViewerSelectingURLs(fileURLs []foundation.IURL) { - objc.Call[objc.Void](w_, objc.Sel("activateFileViewerSelectingURLs:"), fileURLs) -} - -// Requests the system wait for the specified amount of time before turning off the power or logging out the user. [Full Topic] +// Attempts to eject the volume mounted at the given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1533106-extendpoweroffby?language=objc -func (w_ Workspace) ExtendPowerOffBy(requested int) int { - rv := objc.Call[int](w_, objc.Sel("extendPowerOffBy:"), requested) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530469-unmountandejectdeviceaturl?language=objc +func (w_ Workspace) UnmountAndEjectDeviceAtURLError(url foundation.IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](w_, objc.Sel("unmountAndEjectDeviceAtURL:error:"), url, error) return rv } -// Requests authorization to perform a privileged file operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3025774-requestauthorizationoftype?language=objc -func (w_ Workspace) RequestAuthorizationOfTypeCompletionHandler(type_ WorkspaceAuthorizationType, completionHandler func(authorization WorkspaceAuthorization, error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("requestAuthorizationOfType:completionHandler:"), type_, completionHandler) -} - -// Moves the specified URLs to the trash in the same manner as the Finder. [Full Topic] +// Returns the desktop image options for the given screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530465-recycleurls?language=objc -func (w_ Workspace) RecycleURLsCompletionHandler(URLs []foundation.IURL, handler func(newURLs foundation.Dictionary, error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("recycleURLs:completionHandler:"), URLs, handler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530855-desktopimageoptionsforscreen?language=objc +func (w_ Workspace) DesktopImageOptionsForScreen(screen IScreen) map[WorkspaceDesktopImageOptionKey]objc.Object { + rv := objc.Call[map[WorkspaceDesktopImageOptionKey]objc.Object](w_, objc.Sel("desktopImageOptionsForScreen:"), screen) + return rv } -// Selects the file at the specified path. [Full Topic] +// Returns the URL for the desktop image for the given screen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1524399-selectfile?language=objc -func (w_ Workspace) SelectFileInFileViewerRootedAtPath(fullPath string, rootFullPath string) bool { - rv := objc.Call[bool](w_, objc.Sel("selectFile:inFileViewerRootedAtPath:"), fullPath, rootFullPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530635-desktopimageurlforscreen?language=objc +func (w_ Workspace) DesktopImageURLForScreen(screen IScreen) foundation.URL { + rv := objc.Call[foundation.URL](w_, objc.Sel("desktopImageURLForScreen:"), screen) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3753002-setdefaultapplicationaturl?language=objc -func (w_ Workspace) SetDefaultApplicationAtURLToOpenContentTypeCompletionHandler(applicationURL foundation.IURL, contentType uti.IType, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("setDefaultApplicationAtURL:toOpenContentType:completionHandler:"), applicationURL, contentType, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3753004-setdefaultapplicationaturl?language=objc +func (w_ Workspace) SetDefaultApplicationAtURLToOpenFileAtURLCompletionHandler(applicationURL foundation.IURL, url foundation.IURL, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("setDefaultApplicationAtURL:toOpenFileAtURL:completionHandler:"), applicationURL, url, completionHandler) } -// Opens the location at the specified URL. [Full Topic] +// Sets the icon for the file or directory at the specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1533463-openurl?language=objc -func (w_ Workspace) OpenURL(url foundation.IURL) bool { - rv := objc.Call[bool](w_, objc.Sel("openURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1529882-seticon?language=objc +func (w_ Workspace) SetIconForFileOptions(image IImage, fullPath string, options WorkspaceIconCreationOptions) bool { + rv := objc.Call[bool](w_, objc.Sel("setIcon:forFile:options:"), image, fullPath, options) return rv } -// Returns an image containing the icon for the specified files. [Full Topic] +// Sets the desktop image for the given screen to the image at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1525487-iconforfiles?language=objc -func (w_ Workspace) IconForFiles(fullPaths []string) Image { - rv := objc.Call[Image](w_, objc.Sel("iconForFiles:"), fullPaths) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1527228-setdesktopimageurl?language=objc +func (w_ Workspace) SetDesktopImageURLForScreenOptionsError(url foundation.IURL, screen IScreen, options map[WorkspaceDesktopImageOptionKey]objc.IObject, error unsafe.Pointer) bool { + rv := objc.Call[bool](w_, objc.Sel("setDesktopImageURL:forScreen:options:error:"), url, screen, options, error) return rv } -// Returns the URL for the app with the specified identifier. [Full Topic] +// Returns information about the file system at the specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1534053-urlforapplicationwithbundleident?language=objc -func (w_ Workspace) URLForApplicationWithBundleIdentifier(bundleIdentifier string) foundation.URL { - rv := objc.Call[foundation.URL](w_, objc.Sel("URLForApplicationWithBundleIdentifier:"), bundleIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1526987-getfilesysteminfoforpath?language=objc +func (w_ Workspace) GetFileSystemInfoForPathIsRemovableIsWritableIsUnmountableDescriptionType(fullPath string, removableFlag *bool, writableFlag *bool, unmountableFlag *bool, description unsafe.Pointer, fileSystemType unsafe.Pointer) bool { + rv := objc.Call[bool](w_, objc.Sel("getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:"), fullPath, removableFlag, writableFlag, unmountableFlag, description, fileSystemType) return rv } -// Determines whether the specified path is a file package. [Full Topic] +// Unmounts and ejects the device at the specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1529991-isfilepackageatpath?language=objc -func (w_ Workspace) IsFilePackageAtPath(fullPath string) bool { - rv := objc.Call[bool](w_, objc.Sel("isFilePackageAtPath:"), fullPath) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1527741-unmountandejectdeviceatpath?language=objc +func (w_ Workspace) UnmountAndEjectDeviceAtPath(path string) bool { + rv := objc.Call[bool](w_, objc.Sel("unmountAndEjectDeviceAtPath:"), path) return rv } -// Returns an image containing the icon for the specified file. [Full Topic] +// Hides all applications other than the sender. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1528158-iconforfile?language=objc -func (w_ Workspace) IconForFile(fullPath string) Image { - rv := objc.Call[Image](w_, objc.Sel("iconForFile:"), fullPath) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530417-hideotherapplications?language=objc +func (w_ Workspace) HideOtherApplications() { + objc.Call[objc.Void](w_, objc.Sel("hideOtherApplications")) } -// Returns an image containing the icon for the specified content type. [Full Topic] +// Requests authorization to perform a privileged file operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3553230-iconforcontenttype?language=objc -func (w_ Workspace) IconForContentType(contentType uti.IType) Image { - rv := objc.Call[Image](w_, objc.Sel("iconForContentType:"), contentType) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3025774-requestauthorizationoftype?language=objc +func (w_ Workspace) RequestAuthorizationOfTypeCompletionHandler(type_ WorkspaceAuthorizationType, completionHandler func(authorization WorkspaceAuthorization, error foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("requestAuthorizationOfType:completionHandler:"), type_, completionHandler) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3753003-setdefaultapplicationaturl?language=objc -func (w_ Workspace) SetDefaultApplicationAtURLToOpenContentTypeOfFileAtURLCompletionHandler(applicationURL foundation.IURL, url foundation.IURL, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("setDefaultApplicationAtURL:toOpenContentTypeOfFileAtURL:completionHandler:"), applicationURL, url, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3753000-urlsforapplicationstoopenurl?language=objc +func (w_ Workspace) URLsForApplicationsToOpenURL(url foundation.IURL) []foundation.URL { + rv := objc.Call[[]foundation.URL](w_, objc.Sel("URLsForApplicationsToOpenURL:"), url) + return rv } -// Returns the desktop image options for the given screen. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530855-desktopimageoptionsforscreen?language=objc -func (w_ Workspace) DesktopImageOptionsForScreen(screen IScreen) map[WorkspaceDesktopImageOptionKey]objc.Object { - rv := objc.Call[map[WorkspaceDesktopImageOptionKey]objc.Object](w_, objc.Sel("desktopImageOptionsForScreen:"), screen) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3753001-urlsforapplicationswithbundleide?language=objc +func (w_ Workspace) URLsForApplicationsWithBundleIdentifier(bundleIdentifier string) []foundation.URL { + rv := objc.Call[[]foundation.URL](w_, objc.Sel("URLsForApplicationsWithBundleIdentifier:"), bundleIdentifier) return rv } -// Opens one or more URLs asynchronously in the specified app using the provided options. [Full Topic] +// Determines whether the specified path is a file package. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3172702-openurls?language=objc -func (w_ Workspace) OpenURLsWithApplicationAtURLConfigurationCompletionHandler(urls []foundation.IURL, applicationURL foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("openURLs:withApplicationAtURL:configuration:completionHandler:"), urls, applicationURL, configuration, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1529991-isfilepackageatpath?language=objc +func (w_ Workspace) IsFilePackageAtPath(fullPath string) bool { + rv := objc.Call[bool](w_, objc.Sel("isFilePackageAtPath:"), fullPath) + return rv } -// Attempts to eject the volume mounted at the given path. [Full Topic] +// Selects the file at the specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530469-unmountandejectdeviceaturl?language=objc -func (w_ Workspace) UnmountAndEjectDeviceAtURLError(url foundation.IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](w_, objc.Sel("unmountAndEjectDeviceAtURL:error:"), url, error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1524399-selectfile?language=objc +func (w_ Workspace) SelectFileInFileViewerRootedAtPath(fullPath string, rootFullPath string) bool { + rv := objc.Call[bool](w_, objc.Sel("selectFile:inFileViewerRootedAtPath:"), fullPath, rootFullPath) return rv } -// Hides all applications other than the sender. [Full Topic] +// Activates the Finder, and opens one or more windows selecting the specified files. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530417-hideotherapplications?language=objc -func (w_ Workspace) HideOtherApplications() { - objc.Call[objc.Void](w_, objc.Sel("hideOtherApplications")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1524549-activatefileviewerselectingurls?language=objc +func (w_ Workspace) ActivateFileViewerSelectingURLs(fileURLs []foundation.IURL) { + objc.Call[objc.Void](w_, objc.Sel("activateFileViewerSelectingURLs:"), fileURLs) } // Displays a Spotlight search results window in Finder for the specified query string. [Full Topic] @@ -322,42 +289,33 @@ func (w_ Workspace) ShowSearchResultsForQueryString(queryString string) bool { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3753001-urlsforapplicationswithbundleide?language=objc -func (w_ Workspace) URLsForApplicationsWithBundleIdentifier(bundleIdentifier string) []foundation.URL { - rv := objc.Call[[]foundation.URL](w_, objc.Sel("URLsForApplicationsWithBundleIdentifier:"), bundleIdentifier) - return rv -} - -// Sets the icon for the file or directory at the specified path. [Full Topic] +// Launches the app at the specified URL and asynchronously reports back on the app's status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1529882-seticon?language=objc -func (w_ Workspace) SetIconForFileOptions(image IImage, fullPath string, options WorkspaceIconCreationOptions) bool { - rv := objc.Call[bool](w_, objc.Sel("setIcon:forFile:options:"), image, fullPath, options) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3172700-openapplicationaturl?language=objc +func (w_ Workspace) OpenApplicationAtURLConfigurationCompletionHandler(applicationURL foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("openApplicationAtURL:configuration:completionHandler:"), applicationURL, configuration, completionHandler) } -// [Full Topic] +// Duplicates the specified URLS asynchronously in the same manner as the Finder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3753005-setdefaultapplicationaturl?language=objc -func (w_ Workspace) SetDefaultApplicationAtURLToOpenURLsWithSchemeCompletionHandler(applicationURL foundation.IURL, urlScheme string, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("setDefaultApplicationAtURL:toOpenURLsWithScheme:completionHandler:"), applicationURL, urlScheme, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1524490-duplicateurls?language=objc +func (w_ Workspace) DuplicateURLsCompletionHandler(URLs []foundation.IURL, handler func(newURLs foundation.Dictionary, error foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("duplicateURLs:completionHandler:"), URLs, handler) } -// Returns the URL to the default app that would be opened. [Full Topic] +// Returns an image containing the icon for the specified content type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1533391-urlforapplicationtoopenurl?language=objc -func (w_ Workspace) URLForApplicationToOpenURL(url foundation.IURL) foundation.URL { - rv := objc.Call[foundation.URL](w_, objc.Sel("URLForApplicationToOpenURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/3553230-iconforcontenttype?language=objc +func (w_ Workspace) IconForContentType(contentType uti.IType) Image { + rv := objc.Call[Image](w_, objc.Sel("iconForContentType:"), contentType) return rv } -// Returns information about the file system at the specified path. [Full Topic] +// Requests the system wait for the specified amount of time before turning off the power or logging out the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1526987-getfilesysteminfoforpath?language=objc -func (w_ Workspace) GetFileSystemInfoForPathIsRemovableIsWritableIsUnmountableDescriptionType(fullPath string, removableFlag *bool, writableFlag *bool, unmountableFlag *bool, description unsafe.Pointer, fileSystemType unsafe.Pointer) bool { - rv := objc.Call[bool](w_, objc.Sel("getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:"), fullPath, removableFlag, writableFlag, unmountableFlag, description, fileSystemType) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1533106-extendpoweroffby?language=objc +func (w_ Workspace) ExtendPowerOffBy(requested int) int { + rv := objc.Call[int](w_, objc.Sel("extendPowerOffBy:"), requested) return rv } @@ -369,43 +327,43 @@ func (w_ Workspace) AccessibilityDisplayShouldIncreaseContrast() bool { return rv } -// A Boolean value that indicates whether the app avoids conveying information through color alone. [Full Topic] +// The array of file labels, returned as strings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1524656-accessibilitydisplayshoulddiffer?language=objc -func (w_ Workspace) AccessibilityDisplayShouldDifferentiateWithoutColor() bool { - rv := objc.Call[bool](w_, objc.Sel("accessibilityDisplayShouldDifferentiateWithoutColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1533953-filelabels?language=objc +func (w_ Workspace) FileLabels() []string { + rv := objc.Call[[]string](w_, objc.Sel("fileLabels")) return rv } -// A Boolean value that indicates whether the accessibility option to invert colors is in an enabled state. [Full Topic] +// A Boolean value that indicates whether the accessibility option to reduce motion is in an enabled state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1644068-accessibilitydisplayshouldinvert?language=objc -func (w_ Workspace) AccessibilityDisplayShouldInvertColors() bool { - rv := objc.Call[bool](w_, objc.Sel("accessibilityDisplayShouldInvertColors")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1644069-accessibilitydisplayshouldreduce?language=objc +func (w_ Workspace) AccessibilityDisplayShouldReduceMotion() bool { + rv := objc.Call[bool](w_, objc.Sel("accessibilityDisplayShouldReduceMotion")) return rv } -// Returns an array of running apps. [Full Topic] +// Returns the frontmost app, which is the app that receives key events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1534059-runningapplications?language=objc -func (w_ Workspace) RunningApplications() []RunningApplication { - rv := objc.Call[[]RunningApplication](w_, objc.Sel("runningApplications")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1532097-frontmostapplication?language=objc +func (w_ Workspace) FrontmostApplication() RunningApplication { + rv := objc.Call[RunningApplication](w_, objc.Sel("frontmostApplication")) return rv } -// A Boolean value that indicates whether Switch Control is currently running. [Full Topic] +// The array of colors for the file labels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/2880322-switchcontrolenabled?language=objc -func (w_ Workspace) IsSwitchControlEnabled() bool { - rv := objc.Call[bool](w_, objc.Sel("isSwitchControlEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1527553-filelabelcolors?language=objc +func (w_ Workspace) FileLabelColors() []Color { + rv := objc.Call[[]Color](w_, objc.Sel("fileLabelColors")) return rv } -// Returns the app that owns the currently displayed menu bar. [Full Topic] +// A Boolean value that indicates whether the accessibility option to invert colors is in an enabled state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1525848-menubarowningapplication?language=objc -func (w_ Workspace) MenuBarOwningApplication() RunningApplication { - rv := objc.Call[RunningApplication](w_, objc.Sel("menuBarOwningApplication")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1644068-accessibilitydisplayshouldinvert?language=objc +func (w_ Workspace) AccessibilityDisplayShouldInvertColors() bool { + rv := objc.Call[bool](w_, objc.Sel("accessibilityDisplayShouldInvertColors")) return rv } @@ -417,30 +375,6 @@ func (w_ Workspace) IsVoiceOverEnabled() bool { return rv } -// The notification center for workspace notifications. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1525071-notificationcenter?language=objc -func (w_ Workspace) NotificationCenter() foundation.NotificationCenter { - rv := objc.Call[foundation.NotificationCenter](w_, objc.Sel("notificationCenter")) - return rv -} - -// A Boolean value that indicates whether the accessibility option to reduce motion is in an enabled state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1644069-accessibilitydisplayshouldreduce?language=objc -func (w_ Workspace) AccessibilityDisplayShouldReduceMotion() bool { - rv := objc.Call[bool](w_, objc.Sel("accessibilityDisplayShouldReduceMotion")) - return rv -} - -// Returns the frontmost app, which is the app that receives key events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1532097-frontmostapplication?language=objc -func (w_ Workspace) FrontmostApplication() RunningApplication { - rv := objc.Call[RunningApplication](w_, objc.Sel("frontmostApplication")) - return rv -} - // The shared workspace object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530344-sharedworkspace?language=objc @@ -456,26 +390,42 @@ func Workspace_SharedWorkspace() Workspace { return WorkspaceClass.SharedWorkspace() } -// The array of file labels, returned as strings. [Full Topic] +// Returns an array of running apps. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1533953-filelabels?language=objc -func (w_ Workspace) FileLabels() []string { - rv := objc.Call[[]string](w_, objc.Sel("fileLabels")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1534059-runningapplications?language=objc +func (w_ Workspace) RunningApplications() []RunningApplication { + rv := objc.Call[[]RunningApplication](w_, objc.Sel("runningApplications")) return rv } -// The array of colors for the file labels. [Full Topic] +// A Boolean value that indicates whether Switch Control is currently running. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1527553-filelabelcolors?language=objc -func (w_ Workspace) FileLabelColors() []Color { - rv := objc.Call[[]Color](w_, objc.Sel("fileLabelColors")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/2880322-switchcontrolenabled?language=objc +func (w_ Workspace) IsSwitchControlEnabled() bool { + rv := objc.Call[bool](w_, objc.Sel("isSwitchControlEnabled")) + return rv +} + +// Returns the app that owns the currently displayed menu bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1525848-menubarowningapplication?language=objc +func (w_ Workspace) MenuBarOwningApplication() RunningApplication { + rv := objc.Call[RunningApplication](w_, objc.Sel("menuBarOwningApplication")) return rv } -// A Boolean value that indicates whether the app avoids using semitransparent backgrounds. [Full Topic] +// The notification center for workspace notifications. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1525071-notificationcenter?language=objc +func (w_ Workspace) NotificationCenter() foundation.NotificationCenter { + rv := objc.Call[foundation.NotificationCenter](w_, objc.Sel("notificationCenter")) + return rv +} + +// A Boolean value that indicates whether the app avoids conveying information through color alone. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1533006-accessibilitydisplayshouldreduce?language=objc -func (w_ Workspace) AccessibilityDisplayShouldReduceTransparency() bool { - rv := objc.Call[bool](w_, objc.Sel("accessibilityDisplayShouldReduceTransparency")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1524656-accessibilitydisplayshoulddiffer?language=objc +func (w_ Workspace) AccessibilityDisplayShouldDifferentiateWithoutColor() bool { + rv := objc.Call[bool](w_, objc.Sel("accessibilityDisplayShouldDifferentiateWithoutColor")) return rv } diff --git a/macos/appkit/workspace_open_configuration.gen.go b/macos/appkit/workspace_open_configuration.gen.go index 00c75306..2183deeb 100644 --- a/macos/appkit/workspace_open_configuration.gen.go +++ b/macos/appkit/workspace_open_configuration.gen.go @@ -21,28 +21,28 @@ type IWorkspaceOpenConfiguration interface { objc.IObject Arguments() []string SetArguments(value []string) - CreatesNewApplicationInstance() bool - SetCreatesNewApplicationInstance(value bool) - HidesOthers() bool - SetHidesOthers(value bool) - PromptsUserIfNeeded() bool - SetPromptsUserIfNeeded(value bool) - IsForPrinting() bool - SetForPrinting(value bool) - AddsToRecentItems() bool - SetAddsToRecentItems(value bool) - Activates() bool - SetActivates(value bool) Hides() bool SetHides(value bool) - RequiresUniversalLinks() bool - SetRequiresUniversalLinks(value bool) AllowsRunningApplicationSubstitution() bool SetAllowsRunningApplicationSubstitution(value bool) + IsForPrinting() bool + SetForPrinting(value bool) + HidesOthers() bool + SetHidesOthers(value bool) + RequiresUniversalLinks() bool + SetRequiresUniversalLinks(value bool) + Activates() bool + SetActivates(value bool) + PromptsUserIfNeeded() bool + SetPromptsUserIfNeeded(value bool) + CreatesNewApplicationInstance() bool + SetCreatesNewApplicationInstance(value bool) AppleEvent() foundation.AppleEventDescriptor SetAppleEvent(value foundation.IAppleEventDescriptor) Environment() map[string]string SetEnvironment(value map[string]string) + AddsToRecentItems() bool + SetAddsToRecentItems(value bool) } // The configuration options for opening URLs or launching apps. [Full Topic] @@ -105,49 +105,34 @@ func (w_ WorkspaceOpenConfiguration) SetArguments(value []string) { objc.Call[objc.Void](w_, objc.Sel("setArguments:"), value) } -// A Boolean value indicating whether you want the system to launch a new instance of the app. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172710-createsnewapplicationinstance?language=objc -func (w_ WorkspaceOpenConfiguration) CreatesNewApplicationInstance() bool { - rv := objc.Call[bool](w_, objc.Sel("createsNewApplicationInstance")) - return rv -} - -// A Boolean value indicating whether you want the system to launch a new instance of the app. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172710-createsnewapplicationinstance?language=objc -func (w_ WorkspaceOpenConfiguration) SetCreatesNewApplicationInstance(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setCreatesNewApplicationInstance:"), value) -} - -// A Boolean value indicating whether you want to hide all apps except the one that launched. [Full Topic] +// A Boolean value indicating whether you want the app to hide itself after it launches. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172714-hidesothers?language=objc -func (w_ WorkspaceOpenConfiguration) HidesOthers() bool { - rv := objc.Call[bool](w_, objc.Sel("hidesOthers")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172713-hides?language=objc +func (w_ WorkspaceOpenConfiguration) Hides() bool { + rv := objc.Call[bool](w_, objc.Sel("hides")) return rv } -// A Boolean value indicating whether you want to hide all apps except the one that launched. [Full Topic] +// A Boolean value indicating whether you want the app to hide itself after it launches. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172714-hidesothers?language=objc -func (w_ WorkspaceOpenConfiguration) SetHidesOthers(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setHidesOthers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172713-hides?language=objc +func (w_ WorkspaceOpenConfiguration) SetHides(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setHides:"), value) } -// A Boolean value indicating whether to display errors, authentication requests, or other UI elements to the user. [Full Topic] +// A Boolean value that indicates whether to use a running instance of an application even if it’s at a different URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172715-promptsuserifneeded?language=objc -func (w_ WorkspaceOpenConfiguration) PromptsUserIfNeeded() bool { - rv := objc.Call[bool](w_, objc.Sel("promptsUserIfNeeded")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3375728-allowsrunningapplicationsubstitu?language=objc +func (w_ WorkspaceOpenConfiguration) AllowsRunningApplicationSubstitution() bool { + rv := objc.Call[bool](w_, objc.Sel("allowsRunningApplicationSubstitution")) return rv } -// A Boolean value indicating whether to display errors, authentication requests, or other UI elements to the user. [Full Topic] +// A Boolean value that indicates whether to use a running instance of an application even if it’s at a different URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172715-promptsuserifneeded?language=objc -func (w_ WorkspaceOpenConfiguration) SetPromptsUserIfNeeded(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setPromptsUserIfNeeded:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3375728-allowsrunningapplicationsubstitu?language=objc +func (w_ WorkspaceOpenConfiguration) SetAllowsRunningApplicationSubstitution(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAllowsRunningApplicationSubstitution:"), value) } // A Boolean value indicating whether you want to print the contents of documents and URLs instead of opening them. [Full Topic] @@ -165,19 +150,34 @@ func (w_ WorkspaceOpenConfiguration) SetForPrinting(value bool) { objc.Call[objc.Void](w_, objc.Sel("setForPrinting:"), value) } -// A Boolean value indicating whether to add the app or documents to the Recent Items menu. [Full Topic] +// A Boolean value indicating whether you want to hide all apps except the one that launched. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172705-addstorecentitems?language=objc -func (w_ WorkspaceOpenConfiguration) AddsToRecentItems() bool { - rv := objc.Call[bool](w_, objc.Sel("addsToRecentItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172714-hidesothers?language=objc +func (w_ WorkspaceOpenConfiguration) HidesOthers() bool { + rv := objc.Call[bool](w_, objc.Sel("hidesOthers")) return rv } -// A Boolean value indicating whether to add the app or documents to the Recent Items menu. [Full Topic] +// A Boolean value indicating whether you want to hide all apps except the one that launched. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172705-addstorecentitems?language=objc -func (w_ WorkspaceOpenConfiguration) SetAddsToRecentItems(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setAddsToRecentItems:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172714-hidesothers?language=objc +func (w_ WorkspaceOpenConfiguration) SetHidesOthers(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setHidesOthers:"), value) +} + +// A Boolean value indicating whether you require the URL to have an associated universal link. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172716-requiresuniversallinks?language=objc +func (w_ WorkspaceOpenConfiguration) RequiresUniversalLinks() bool { + rv := objc.Call[bool](w_, objc.Sel("requiresUniversalLinks")) + return rv +} + +// A Boolean value indicating whether you require the URL to have an associated universal link. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172716-requiresuniversallinks?language=objc +func (w_ WorkspaceOpenConfiguration) SetRequiresUniversalLinks(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setRequiresUniversalLinks:"), value) } // A Boolean value indicating whether the system activates the app and brings it to the foreground. [Full Topic] @@ -195,49 +195,34 @@ func (w_ WorkspaceOpenConfiguration) SetActivates(value bool) { objc.Call[objc.Void](w_, objc.Sel("setActivates:"), value) } -// A Boolean value indicating whether you want the app to hide itself after it launches. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172713-hides?language=objc -func (w_ WorkspaceOpenConfiguration) Hides() bool { - rv := objc.Call[bool](w_, objc.Sel("hides")) - return rv -} - -// A Boolean value indicating whether you want the app to hide itself after it launches. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172713-hides?language=objc -func (w_ WorkspaceOpenConfiguration) SetHides(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setHides:"), value) -} - -// A Boolean value indicating whether you require the URL to have an associated universal link. [Full Topic] +// A Boolean value indicating whether to display errors, authentication requests, or other UI elements to the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172716-requiresuniversallinks?language=objc -func (w_ WorkspaceOpenConfiguration) RequiresUniversalLinks() bool { - rv := objc.Call[bool](w_, objc.Sel("requiresUniversalLinks")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172715-promptsuserifneeded?language=objc +func (w_ WorkspaceOpenConfiguration) PromptsUserIfNeeded() bool { + rv := objc.Call[bool](w_, objc.Sel("promptsUserIfNeeded")) return rv } -// A Boolean value indicating whether you require the URL to have an associated universal link. [Full Topic] +// A Boolean value indicating whether to display errors, authentication requests, or other UI elements to the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172716-requiresuniversallinks?language=objc -func (w_ WorkspaceOpenConfiguration) SetRequiresUniversalLinks(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setRequiresUniversalLinks:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172715-promptsuserifneeded?language=objc +func (w_ WorkspaceOpenConfiguration) SetPromptsUserIfNeeded(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setPromptsUserIfNeeded:"), value) } -// A Boolean value that indicates whether to use a running instance of an application even if it’s at a different URL. [Full Topic] +// A Boolean value indicating whether you want the system to launch a new instance of the app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3375728-allowsrunningapplicationsubstitu?language=objc -func (w_ WorkspaceOpenConfiguration) AllowsRunningApplicationSubstitution() bool { - rv := objc.Call[bool](w_, objc.Sel("allowsRunningApplicationSubstitution")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172710-createsnewapplicationinstance?language=objc +func (w_ WorkspaceOpenConfiguration) CreatesNewApplicationInstance() bool { + rv := objc.Call[bool](w_, objc.Sel("createsNewApplicationInstance")) return rv } -// A Boolean value that indicates whether to use a running instance of an application even if it’s at a different URL. [Full Topic] +// A Boolean value indicating whether you want the system to launch a new instance of the app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3375728-allowsrunningapplicationsubstitu?language=objc -func (w_ WorkspaceOpenConfiguration) SetAllowsRunningApplicationSubstitution(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setAllowsRunningApplicationSubstitution:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172710-createsnewapplicationinstance?language=objc +func (w_ WorkspaceOpenConfiguration) SetCreatesNewApplicationInstance(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setCreatesNewApplicationInstance:"), value) } // The first Apple event to send to the new app. [Full Topic] @@ -269,3 +254,18 @@ func (w_ WorkspaceOpenConfiguration) Environment() map[string]string { func (w_ WorkspaceOpenConfiguration) SetEnvironment(value map[string]string) { objc.Call[objc.Void](w_, objc.Sel("setEnvironment:"), value) } + +// A Boolean value indicating whether to add the app or documents to the Recent Items menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172705-addstorecentitems?language=objc +func (w_ WorkspaceOpenConfiguration) AddsToRecentItems() bool { + rv := objc.Call[bool](w_, objc.Sel("addsToRecentItems")) + return rv +} + +// A Boolean value indicating whether to add the app or documents to the Recent Items menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspaceopenconfiguration/3172705-addstorecentitems?language=objc +func (w_ WorkspaceOpenConfiguration) SetAddsToRecentItems(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAddsToRecentItems:"), value) +} diff --git a/macos/avfoundation/asset.gen.go b/macos/avfoundation/asset.gen.go index cce018d7..574e5aa2 100644 --- a/macos/avfoundation/asset.gen.go +++ b/macos/avfoundation/asset.gen.go @@ -21,42 +21,42 @@ type _AssetClass struct { // An interface definition for the [Asset] class. type IAsset interface { objc.IObject + FindUnusedTrackIDWithCompletionHandler(completionHandler func(arg0 objc.Object, arg1 foundation.Error)) CancelLoading() + LoadTracksWithMediaCharacteristicCompletionHandler(mediaCharacteristic MediaCharacteristic, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) + LoadMetadataForFormatCompletionHandler(format MetadataFormat, completionHandler func(arg0 []MetadataItem, arg1 foundation.Error)) + LoadTrackWithTrackIDCompletionHandler(trackID objc.IObject, completionHandler func(arg0 AssetTrack, arg1 foundation.Error)) LoadTracksWithMediaTypeCompletionHandler(mediaType MediaType, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) LoadChapterMetadataGroupsBestMatchingPreferredLanguagesCompletionHandler(preferredLanguages []string, completionHandler func(arg0 []TimedMetadataGroup, arg1 foundation.Error)) - LoadTrackWithTrackIDCompletionHandler(trackID objc.IObject, completionHandler func(arg0 AssetTrack, arg1 foundation.Error)) - LoadTracksWithMediaCharacteristicCompletionHandler(mediaCharacteristic MediaCharacteristic, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) LoadMediaSelectionGroupForMediaCharacteristicCompletionHandler(mediaCharacteristic MediaCharacteristic, completionHandler func(arg0 MediaSelectionGroup, arg1 foundation.Error)) - FindUnusedTrackIDWithCompletionHandler(completionHandler func(arg0 objc.Object, arg1 foundation.Error)) - LoadMetadataForFormatCompletionHandler(format MetadataFormat, completionHandler func(arg0 []MetadataItem, arg1 foundation.Error)) LoadChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeysCompletionHandler(locale foundation.ILocale, commonKeys []MetadataKey, completionHandler func(arg0 []TimedMetadataGroup, arg1 foundation.Error)) - AvailableMetadataFormats() []MetadataFormat - CreationDate() MetadataItem - PreferredMediaSelection() MediaSelection - HasProtectedContent() bool - CommonMetadata() []MetadataItem - CanContainFragments() bool + MinimumTimeOffsetFromLive() coremedia.Time + Lyrics() string Tracks() []AssetTrack - Metadata() []MetadataItem - PreferredTransform() coregraphics.AffineTransform - OverallDurationHint() coremedia.Time + IsReadable() bool AvailableMediaCharacteristicsWithMediaSelectionOptions() []MediaCharacteristic + PreferredVolume() float32 + CanContainFragments() bool + AvailableChapterLocales() []foundation.Locale + IsComposable() bool + ProvidesPreciseDurationAndTiming() bool + Metadata() []MetadataItem PreferredRate() float32 - Duration() coremedia.Time + AvailableMetadataFormats() []MetadataFormat + OverallDurationHint() coremedia.Time + CreationDate() MetadataItem TrackGroups() []AssetTrackGroup - IsPlayable() bool - ProvidesPreciseDurationAndTiming() bool - AvailableChapterLocales() []foundation.Locale ReferenceRestrictions() AssetReferenceRestrictions - PreferredVolume() float32 - Lyrics() string - ContainsFragments() bool - IsExportable() bool - IsComposable() bool AllMediaSelections() []MediaSelection - MinimumTimeOffsetFromLive() coremedia.Time - IsReadable() bool + HasProtectedContent() bool + Duration() coremedia.Time + PreferredMediaSelection() MediaSelection IsCompatibleWithAirPlayVideo() bool + IsExportable() bool + ContainsFragments() bool + PreferredTransform() coregraphics.AffineTransform + IsPlayable() bool + CommonMetadata() []MetadataItem } // An object that models timed audiovisual media. [Full Topic] @@ -104,6 +104,13 @@ func (a_ Asset) Init() Asset { return rv } +// Loads an identifier that no other track in the asset uses. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746590-findunusedtrackidwithcompletionh?language=objc +func (a_ Asset) FindUnusedTrackIDWithCompletionHandler(completionHandler func(arg0 objc.Object, arg1 foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("findUnusedTrackIDWithCompletionHandler:"), completionHandler) +} + // Cancels all pending requests to asynchronously load property values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1388722-cancelloading?language=objc @@ -111,18 +118,18 @@ func (a_ Asset) CancelLoading() { objc.Call[objc.Void](a_, objc.Sel("cancelLoading")) } -// Loads tracks that contain media of a specified type. [Full Topic] +// Loads tracks that contain media of a specified characteristic. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746531-loadtrackswithmediatype?language=objc -func (a_ Asset) LoadTracksWithMediaTypeCompletionHandler(mediaType MediaType, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("loadTracksWithMediaType:completionHandler:"), mediaType, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746530-loadtrackswithmediacharacteristi?language=objc +func (a_ Asset) LoadTracksWithMediaCharacteristicCompletionHandler(mediaCharacteristic MediaCharacteristic, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("loadTracksWithMediaCharacteristic:completionHandler:"), mediaCharacteristic, completionHandler) } -// Loads chapter metadata with a locale that best matches the list of preferred languages. [Full Topic] +// Loads an array of metadata items that the asset contains for the specified format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746525-loadchaptermetadatagroupsbestmat?language=objc -func (a_ Asset) LoadChapterMetadataGroupsBestMatchingPreferredLanguagesCompletionHandler(preferredLanguages []string, completionHandler func(arg0 []TimedMetadataGroup, arg1 foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("loadChapterMetadataGroupsBestMatchingPreferredLanguages:completionHandler:"), preferredLanguages, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746528-loadmetadataforformat?language=objc +func (a_ Asset) LoadMetadataForFormatCompletionHandler(format MetadataFormat, completionHandler func(arg0 []MetadataItem, arg1 foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("loadMetadataForFormat:completionHandler:"), format, completionHandler) } // Loads a track that contains the specified identifier. [Full Topic] @@ -132,11 +139,18 @@ func (a_ Asset) LoadTrackWithTrackIDCompletionHandler(trackID objc.IObject, comp objc.Call[objc.Void](a_, objc.Sel("loadTrackWithTrackID:completionHandler:"), trackID, completionHandler) } -// Loads tracks that contain media of a specified characteristic. [Full Topic] +// Loads tracks that contain media of a specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746530-loadtrackswithmediacharacteristi?language=objc -func (a_ Asset) LoadTracksWithMediaCharacteristicCompletionHandler(mediaCharacteristic MediaCharacteristic, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("loadTracksWithMediaCharacteristic:completionHandler:"), mediaCharacteristic, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746531-loadtrackswithmediatype?language=objc +func (a_ Asset) LoadTracksWithMediaTypeCompletionHandler(mediaType MediaType, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("loadTracksWithMediaType:completionHandler:"), mediaType, completionHandler) +} + +// Loads chapter metadata with a locale that best matches the list of preferred languages. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746525-loadchaptermetadatagroupsbestmat?language=objc +func (a_ Asset) LoadChapterMetadataGroupsBestMatchingPreferredLanguagesCompletionHandler(preferredLanguages []string, completionHandler func(arg0 []TimedMetadataGroup, arg1 foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("loadChapterMetadataGroupsBestMatchingPreferredLanguages:completionHandler:"), preferredLanguages, completionHandler) } // Loads a media selection group that contains one or more options with the specified media characteristic. [Full Topic] @@ -146,20 +160,6 @@ func (a_ Asset) LoadMediaSelectionGroupForMediaCharacteristicCompletionHandler(m objc.Call[objc.Void](a_, objc.Sel("loadMediaSelectionGroupForMediaCharacteristic:completionHandler:"), mediaCharacteristic, completionHandler) } -// Loads an identifier that no other track in the asset uses. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746590-findunusedtrackidwithcompletionh?language=objc -func (a_ Asset) FindUnusedTrackIDWithCompletionHandler(completionHandler func(arg0 objc.Object, arg1 foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("findUnusedTrackIDWithCompletionHandler:"), completionHandler) -} - -// Loads an array of metadata items that the asset contains for the specified format. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746528-loadmetadataforformat?language=objc -func (a_ Asset) LoadMetadataForFormatCompletionHandler(format MetadataFormat, completionHandler func(arg0 []MetadataItem, arg1 foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("loadMetadataForFormat:completionHandler:"), format, completionHandler) -} - // Loads chapter metadata that contains the specified title locale and common keys. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3746526-loadchaptermetadatagroupswithtit?language=objc @@ -167,91 +167,91 @@ func (a_ Asset) LoadChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommo objc.Call[objc.Void](a_, objc.Sel("loadChapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:completionHandler:"), locale, commonKeys, completionHandler) } -// The metadata formats this asset contains. [Full Topic] +// A time value that indicates how closely playback follows the latest live stream content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1385823-availablemetadataformats?language=objc -func (a_ Asset) AvailableMetadataFormats() []MetadataFormat { - rv := objc.Call[[]MetadataFormat](a_, objc.Sel("availableMetadataFormats")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3197641-minimumtimeoffsetfromlive?language=objc +func (a_ Asset) MinimumTimeOffsetFromLive() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("minimumTimeOffsetFromLive")) return rv } -// A metadata item that indicates the asset’s creation date. [Full Topic] +// The lyrics of the asset in a language suitable for the current locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1386342-creationdate?language=objc -func (a_ Asset) CreationDate() MetadataItem { - rv := objc.Call[MetadataItem](a_, objc.Sel("creationDate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1388104-lyrics?language=objc +func (a_ Asset) Lyrics() string { + rv := objc.Call[string](a_, objc.Sel("lyrics")) return rv } -// The default media selections for this asset’s media selection groups. [Full Topic] +// The tracks an asset contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1386122-preferredmediaselection?language=objc -func (a_ Asset) PreferredMediaSelection() MediaSelection { - rv := objc.Call[MediaSelection](a_, objc.Sel("preferredMediaSelection")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1387953-tracks?language=objc +func (a_ Asset) Tracks() []AssetTrack { + rv := objc.Call[[]AssetTrack](a_, objc.Sel("tracks")) return rv } -// A Boolean value that indicates whether the asset contains protected content. [Full Topic] +// A Boolean value that indicates whether you can extract the asset’s media data using an asset reader. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389223-hasprotectedcontent?language=objc -func (a_ Asset) HasProtectedContent() bool { - rv := objc.Call[bool](a_, objc.Sel("hasProtectedContent")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390475-readable?language=objc +func (a_ Asset) IsReadable() bool { + rv := objc.Call[bool](a_, objc.Sel("isReadable")) return rv } -// The metadata items an asset contains for common metadata identifiers that provide a value. [Full Topic] +// An array of media characteristics for which a media selection option is available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390498-commonmetadata?language=objc -func (a_ Asset) CommonMetadata() []MetadataItem { - rv := objc.Call[[]MetadataItem](a_, objc.Sel("commonMetadata")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389433-availablemediacharacteristicswit?language=objc +func (a_ Asset) AvailableMediaCharacteristicsWithMediaSelectionOptions() []MediaCharacteristic { + rv := objc.Call[[]MediaCharacteristic](a_, objc.Sel("availableMediaCharacteristicsWithMediaSelectionOptions")) return rv } -// A Boolean value that indicates whether you can extend the asset by fragments. [Full Topic] +// The asset’s volume preference for playing its audible media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389520-cancontainfragments?language=objc -func (a_ Asset) CanContainFragments() bool { - rv := objc.Call[bool](a_, objc.Sel("canContainFragments")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390457-preferredvolume?language=objc +func (a_ Asset) PreferredVolume() float32 { + rv := objc.Call[float32](a_, objc.Sel("preferredVolume")) return rv } -// The tracks an asset contains. [Full Topic] +// A Boolean value that indicates whether you can extend the asset by fragments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1387953-tracks?language=objc -func (a_ Asset) Tracks() []AssetTrack { - rv := objc.Call[[]AssetTrack](a_, objc.Sel("tracks")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389520-cancontainfragments?language=objc +func (a_ Asset) CanContainFragments() bool { + rv := objc.Call[bool](a_, objc.Sel("canContainFragments")) return rv } -// An array of metadata items for all metadata identifiers for which a value is available. [Full Topic] +// The locales of the asset’s chapter metadata. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1386884-metadata?language=objc -func (a_ Asset) Metadata() []MetadataItem { - rv := objc.Call[[]MetadataItem](a_, objc.Sel("metadata")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1388228-availablechapterlocales?language=objc +func (a_ Asset) AvailableChapterLocales() []foundation.Locale { + rv := objc.Call[[]foundation.Locale](a_, objc.Sel("availableChapterLocales")) return rv } -// The asset’s transform preference to apply to its visual content during presentation or processing. [Full Topic] +// A Boolean value that indicates whether you can use the asset as a segment of a composition track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1385906-preferredtransform?language=objc -func (a_ Asset) PreferredTransform() coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("preferredTransform")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1386129-composable?language=objc +func (a_ Asset) IsComposable() bool { + rv := objc.Call[bool](a_, objc.Sel("isComposable")) return rv } -// The total duration of fragments that currently exist, or may exist in the future. [Full Topic] +// A Boolean value that indicates whether the asset provides precise duration and timing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/2715834-overalldurationhint?language=objc -func (a_ Asset) OverallDurationHint() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("overallDurationHint")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390850-providesprecisedurationandtiming?language=objc +func (a_ Asset) ProvidesPreciseDurationAndTiming() bool { + rv := objc.Call[bool](a_, objc.Sel("providesPreciseDurationAndTiming")) return rv } -// An array of media characteristics for which a media selection option is available. [Full Topic] +// An array of metadata items for all metadata identifiers for which a value is available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389433-availablemediacharacteristicswit?language=objc -func (a_ Asset) AvailableMediaCharacteristicsWithMediaSelectionOptions() []MediaCharacteristic { - rv := objc.Call[[]MediaCharacteristic](a_, objc.Sel("availableMediaCharacteristicsWithMediaSelectionOptions")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1386884-metadata?language=objc +func (a_ Asset) Metadata() []MetadataItem { + rv := objc.Call[[]MetadataItem](a_, objc.Sel("metadata")) return rv } @@ -263,43 +263,35 @@ func (a_ Asset) PreferredRate() float32 { return rv } -// A time value that indicates the asset’s duration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389400-duration?language=objc -func (a_ Asset) Duration() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("duration")) - return rv -} - -// The track groups an asset contains. [Full Topic] +// The metadata formats this asset contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390697-trackgroups?language=objc -func (a_ Asset) TrackGroups() []AssetTrackGroup { - rv := objc.Call[[]AssetTrackGroup](a_, objc.Sel("trackGroups")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1385823-availablemetadataformats?language=objc +func (a_ Asset) AvailableMetadataFormats() []MetadataFormat { + rv := objc.Call[[]MetadataFormat](a_, objc.Sel("availableMetadataFormats")) return rv } -// A Boolean value that indicates whether the asset has playable content. [Full Topic] +// The total duration of fragments that currently exist, or may exist in the future. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1385974-playable?language=objc -func (a_ Asset) IsPlayable() bool { - rv := objc.Call[bool](a_, objc.Sel("isPlayable")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/2715834-overalldurationhint?language=objc +func (a_ Asset) OverallDurationHint() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("overallDurationHint")) return rv } -// A Boolean value that indicates whether the asset provides precise duration and timing. [Full Topic] +// A metadata item that indicates the asset’s creation date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390850-providesprecisedurationandtiming?language=objc -func (a_ Asset) ProvidesPreciseDurationAndTiming() bool { - rv := objc.Call[bool](a_, objc.Sel("providesPreciseDurationAndTiming")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1386342-creationdate?language=objc +func (a_ Asset) CreationDate() MetadataItem { + rv := objc.Call[MetadataItem](a_, objc.Sel("creationDate")) return rv } -// The locales of the asset’s chapter metadata. [Full Topic] +// The track groups an asset contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1388228-availablechapterlocales?language=objc -func (a_ Asset) AvailableChapterLocales() []foundation.Locale { - rv := objc.Call[[]foundation.Locale](a_, objc.Sel("availableChapterLocales")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390697-trackgroups?language=objc +func (a_ Asset) TrackGroups() []AssetTrackGroup { + rv := objc.Call[[]AssetTrackGroup](a_, objc.Sel("trackGroups")) return rv } @@ -311,74 +303,82 @@ func (a_ Asset) ReferenceRestrictions() AssetReferenceRestrictions { return rv } -// The asset’s volume preference for playing its audible media. [Full Topic] +// The array of available media selections for this asset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390457-preferredvolume?language=objc -func (a_ Asset) PreferredVolume() float32 { - rv := objc.Call[float32](a_, objc.Sel("preferredVolume")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/2890796-allmediaselections?language=objc +func (a_ Asset) AllMediaSelections() []MediaSelection { + rv := objc.Call[[]MediaSelection](a_, objc.Sel("allMediaSelections")) return rv } -// The lyrics of the asset in a language suitable for the current locale. [Full Topic] +// A Boolean value that indicates whether the asset contains protected content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1388104-lyrics?language=objc -func (a_ Asset) Lyrics() string { - rv := objc.Call[string](a_, objc.Sel("lyrics")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389223-hasprotectedcontent?language=objc +func (a_ Asset) HasProtectedContent() bool { + rv := objc.Call[bool](a_, objc.Sel("hasProtectedContent")) return rv } -// A Boolean value that indicates whether at least one movie fragment extends the asset. [Full Topic] +// A time value that indicates the asset’s duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1385589-containsfragments?language=objc -func (a_ Asset) ContainsFragments() bool { - rv := objc.Call[bool](a_, objc.Sel("containsFragments")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389400-duration?language=objc +func (a_ Asset) Duration() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("duration")) return rv } -// A Boolean value that indicates whether you can export this asset using an export session. [Full Topic] +// The default media selections for this asset’s media selection groups. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389245-exportable?language=objc -func (a_ Asset) IsExportable() bool { - rv := objc.Call[bool](a_, objc.Sel("isExportable")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1386122-preferredmediaselection?language=objc +func (a_ Asset) PreferredMediaSelection() MediaSelection { + rv := objc.Call[MediaSelection](a_, objc.Sel("preferredMediaSelection")) return rv } -// A Boolean value that indicates whether you can use the asset as a segment of a composition track. [Full Topic] +// A Boolean value that indicates whether the asset is compatible with AirPlay Video. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1386129-composable?language=objc -func (a_ Asset) IsComposable() bool { - rv := objc.Call[bool](a_, objc.Sel("isComposable")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390333-compatiblewithairplayvideo?language=objc +func (a_ Asset) IsCompatibleWithAirPlayVideo() bool { + rv := objc.Call[bool](a_, objc.Sel("isCompatibleWithAirPlayVideo")) return rv } -// The array of available media selections for this asset. [Full Topic] +// A Boolean value that indicates whether you can export this asset using an export session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/2890796-allmediaselections?language=objc -func (a_ Asset) AllMediaSelections() []MediaSelection { - rv := objc.Call[[]MediaSelection](a_, objc.Sel("allMediaSelections")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389245-exportable?language=objc +func (a_ Asset) IsExportable() bool { + rv := objc.Call[bool](a_, objc.Sel("isExportable")) return rv } -// A time value that indicates how closely playback follows the latest live stream content. [Full Topic] +// A Boolean value that indicates whether at least one movie fragment extends the asset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/3197641-minimumtimeoffsetfromlive?language=objc -func (a_ Asset) MinimumTimeOffsetFromLive() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("minimumTimeOffsetFromLive")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1385589-containsfragments?language=objc +func (a_ Asset) ContainsFragments() bool { + rv := objc.Call[bool](a_, objc.Sel("containsFragments")) return rv } -// A Boolean value that indicates whether you can extract the asset’s media data using an asset reader. [Full Topic] +// The asset’s transform preference to apply to its visual content during presentation or processing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390475-readable?language=objc -func (a_ Asset) IsReadable() bool { - rv := objc.Call[bool](a_, objc.Sel("isReadable")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1385906-preferredtransform?language=objc +func (a_ Asset) PreferredTransform() coregraphics.AffineTransform { + rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("preferredTransform")) return rv } -// A Boolean value that indicates whether the asset is compatible with AirPlay Video. [Full Topic] +// A Boolean value that indicates whether the asset has playable content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390333-compatiblewithairplayvideo?language=objc -func (a_ Asset) IsCompatibleWithAirPlayVideo() bool { - rv := objc.Call[bool](a_, objc.Sel("isCompatibleWithAirPlayVideo")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1385974-playable?language=objc +func (a_ Asset) IsPlayable() bool { + rv := objc.Call[bool](a_, objc.Sel("isPlayable")) + return rv +} + +// The metadata items an asset contains for common metadata identifiers that provide a value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390498-commonmetadata?language=objc +func (a_ Asset) CommonMetadata() []MetadataItem { + rv := objc.Call[[]MetadataItem](a_, objc.Sel("commonMetadata")) return rv } diff --git a/macos/avfoundation/asset_download_configuration.gen.go b/macos/avfoundation/asset_download_configuration.gen.go index 1cb1943e..48b815ae 100644 --- a/macos/avfoundation/asset_download_configuration.gen.go +++ b/macos/avfoundation/asset_download_configuration.gen.go @@ -18,13 +18,13 @@ type _AssetDownloadConfigurationClass struct { // An interface definition for the [AssetDownloadConfiguration] class. type IAssetDownloadConfiguration interface { objc.IObject + OptimizesAuxiliaryContentConfigurations() bool + SetOptimizesAuxiliaryContentConfigurations(value bool) AuxiliaryContentConfigurations() []AssetDownloadContentConfiguration SetAuxiliaryContentConfigurations(value []IAssetDownloadContentConfiguration) - PrimaryContentConfiguration() AssetDownloadContentConfiguration ArtworkData() []byte SetArtworkData(value []byte) - OptimizesAuxiliaryContentConfigurations() bool - SetOptimizesAuxiliaryContentConfigurations(value bool) + PrimaryContentConfiguration() AssetDownloadContentConfiguration } // An object that provides the configuration for a download task. [Full Topic] @@ -72,6 +72,21 @@ func (a_ AssetDownloadConfiguration) Init() AssetDownloadConfiguration { return rv } +// A Boolean value that indicates whether the task optimizes auxiliary content selection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadconfiguration/3750221-optimizesauxiliarycontentconfigu?language=objc +func (a_ AssetDownloadConfiguration) OptimizesAuxiliaryContentConfigurations() bool { + rv := objc.Call[bool](a_, objc.Sel("optimizesAuxiliaryContentConfigurations")) + return rv +} + +// A Boolean value that indicates whether the task optimizes auxiliary content selection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadconfiguration/3750221-optimizesauxiliarycontentconfigu?language=objc +func (a_ AssetDownloadConfiguration) SetOptimizesAuxiliaryContentConfigurations(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setOptimizesAuxiliaryContentConfigurations:"), value) +} + // The configuration for the auxiliary content that the task downloads. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadconfiguration/3750219-auxiliarycontentconfigurations?language=objc @@ -87,14 +102,6 @@ func (a_ AssetDownloadConfiguration) SetAuxiliaryContentConfigurations(value []I objc.Call[objc.Void](a_, objc.Sel("setAuxiliaryContentConfigurations:"), value) } -// The configuration for the primary content that the task downloads. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadconfiguration/3750222-primarycontentconfiguration?language=objc -func (a_ AssetDownloadConfiguration) PrimaryContentConfiguration() AssetDownloadContentConfiguration { - rv := objc.Call[AssetDownloadContentConfiguration](a_, objc.Sel("primaryContentConfiguration")) - return rv -} - // A data value that represents the asset’s artwork. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadconfiguration/3750218-artworkdata?language=objc @@ -110,17 +117,10 @@ func (a_ AssetDownloadConfiguration) SetArtworkData(value []byte) { objc.Call[objc.Void](a_, objc.Sel("setArtworkData:"), value) } -// A Boolean value that indicates whether the task optimizes auxiliary content selection. [Full Topic] +// The configuration for the primary content that the task downloads. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadconfiguration/3750221-optimizesauxiliarycontentconfigu?language=objc -func (a_ AssetDownloadConfiguration) OptimizesAuxiliaryContentConfigurations() bool { - rv := objc.Call[bool](a_, objc.Sel("optimizesAuxiliaryContentConfigurations")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadconfiguration/3750222-primarycontentconfiguration?language=objc +func (a_ AssetDownloadConfiguration) PrimaryContentConfiguration() AssetDownloadContentConfiguration { + rv := objc.Call[AssetDownloadContentConfiguration](a_, objc.Sel("primaryContentConfiguration")) return rv } - -// A Boolean value that indicates whether the task optimizes auxiliary content selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadconfiguration/3750221-optimizesauxiliarycontentconfigu?language=objc -func (a_ AssetDownloadConfiguration) SetOptimizesAuxiliaryContentConfigurations(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setOptimizesAuxiliaryContentConfigurations:"), value) -} diff --git a/macos/avfoundation/asset_download_delegate.gen.go b/macos/avfoundation/asset_download_delegate.gen.go index a3f1fd0a..0c1bdb64 100644 --- a/macos/avfoundation/asset_download_delegate.gen.go +++ b/macos/avfoundation/asset_download_delegate.gen.go @@ -3,7 +3,6 @@ package avfoundation import ( - "github.com/progrium/darwinkit/macos/coremedia" "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -12,97 +11,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate?language=objc type PAssetDownloadDelegate interface { - // optional - URLSessionAssetDownloadTaskDidResolveMediaSelection(session foundation.URLSession, assetDownloadTask AssetDownloadTask, resolvedMediaSelection MediaSelection) - HasURLSessionAssetDownloadTaskDidResolveMediaSelection() bool - - // optional - URLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad(session foundation.URLSession, assetDownloadTask AssetDownloadTask, timeRange coremedia.TimeRange, loadedTimeRanges []foundation.Value, timeRangeExpectedToLoad coremedia.TimeRange) - HasURLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad() bool - - // optional - URLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, timeRange coremedia.TimeRange, loadedTimeRanges []foundation.Value, timeRangeExpectedToLoad coremedia.TimeRange, mediaSelection MediaSelection) - HasURLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection() bool - // optional URLSessionAggregateAssetDownloadTaskWillDownloadToURL(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, location foundation.URL) HasURLSessionAggregateAssetDownloadTaskWillDownloadToURL() bool - - // optional - URLSessionAssetDownloadTaskWillDownloadVariants(session foundation.URLSession, assetDownloadTask AssetDownloadTask, variants []AssetVariant) - HasURLSessionAssetDownloadTaskWillDownloadVariants() bool - - // optional - URLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, mediaSelection MediaSelection) - HasURLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection() bool - - // optional - URLSessionAssetDownloadTaskDidFinishDownloadingToURL(session foundation.URLSession, assetDownloadTask AssetDownloadTask, location foundation.URL) - HasURLSessionAssetDownloadTaskDidFinishDownloadingToURL() bool } // A delegate implementation builder for the [PAssetDownloadDelegate] protocol. type AssetDownloadDelegate struct { - _URLSessionAssetDownloadTaskDidResolveMediaSelection func(session foundation.URLSession, assetDownloadTask AssetDownloadTask, resolvedMediaSelection MediaSelection) - _URLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad func(session foundation.URLSession, assetDownloadTask AssetDownloadTask, timeRange coremedia.TimeRange, loadedTimeRanges []foundation.Value, timeRangeExpectedToLoad coremedia.TimeRange) - _URLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection func(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, timeRange coremedia.TimeRange, loadedTimeRanges []foundation.Value, timeRangeExpectedToLoad coremedia.TimeRange, mediaSelection MediaSelection) - _URLSessionAggregateAssetDownloadTaskWillDownloadToURL func(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, location foundation.URL) - _URLSessionAssetDownloadTaskWillDownloadVariants func(session foundation.URLSession, assetDownloadTask AssetDownloadTask, variants []AssetVariant) - _URLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection func(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, mediaSelection MediaSelection) - _URLSessionAssetDownloadTaskDidFinishDownloadingToURL func(session foundation.URLSession, assetDownloadTask AssetDownloadTask, location foundation.URL) -} - -func (di *AssetDownloadDelegate) HasURLSessionAssetDownloadTaskDidResolveMediaSelection() bool { - return di._URLSessionAssetDownloadTaskDidResolveMediaSelection != nil -} - -// Tells the delegate that a download task resolved the media selection to download, including any automatic selections. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/1621023-urlsession?language=objc -func (di *AssetDownloadDelegate) SetURLSessionAssetDownloadTaskDidResolveMediaSelection(f func(session foundation.URLSession, assetDownloadTask AssetDownloadTask, resolvedMediaSelection MediaSelection)) { - di._URLSessionAssetDownloadTaskDidResolveMediaSelection = f -} - -// Tells the delegate that a download task resolved the media selection to download, including any automatic selections. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/1621023-urlsession?language=objc -func (di *AssetDownloadDelegate) URLSessionAssetDownloadTaskDidResolveMediaSelection(session foundation.URLSession, assetDownloadTask AssetDownloadTask, resolvedMediaSelection MediaSelection) { - di._URLSessionAssetDownloadTaskDidResolveMediaSelection(session, assetDownloadTask, resolvedMediaSelection) -} -func (di *AssetDownloadDelegate) HasURLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad() bool { - return di._URLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad != nil + _URLSessionAggregateAssetDownloadTaskWillDownloadToURL func(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, location foundation.URL) } -// Tells the delegate that a download task loaded a new time range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/1621019-urlsession?language=objc -func (di *AssetDownloadDelegate) SetURLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad(f func(session foundation.URLSession, assetDownloadTask AssetDownloadTask, timeRange coremedia.TimeRange, loadedTimeRanges []foundation.Value, timeRangeExpectedToLoad coremedia.TimeRange)) { - di._URLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad = f -} - -// Tells the delegate that a download task loaded a new time range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/1621019-urlsession?language=objc -func (di *AssetDownloadDelegate) URLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad(session foundation.URLSession, assetDownloadTask AssetDownloadTask, timeRange coremedia.TimeRange, loadedTimeRanges []foundation.Value, timeRangeExpectedToLoad coremedia.TimeRange) { - di._URLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad(session, assetDownloadTask, timeRange, loadedTimeRanges, timeRangeExpectedToLoad) -} -func (di *AssetDownloadDelegate) HasURLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection() bool { - return di._URLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection != nil -} - -// Tells the delegate that the aggregate download task loaded a new time range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/2919988-urlsession?language=objc -func (di *AssetDownloadDelegate) SetURLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection(f func(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, timeRange coremedia.TimeRange, loadedTimeRanges []foundation.Value, timeRangeExpectedToLoad coremedia.TimeRange, mediaSelection MediaSelection)) { - di._URLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection = f -} - -// Tells the delegate that the aggregate download task loaded a new time range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/2919988-urlsession?language=objc -func (di *AssetDownloadDelegate) URLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, timeRange coremedia.TimeRange, loadedTimeRanges []foundation.Value, timeRangeExpectedToLoad coremedia.TimeRange, mediaSelection MediaSelection) { - di._URLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection(session, aggregateAssetDownloadTask, timeRange, loadedTimeRanges, timeRangeExpectedToLoad, mediaSelection) -} func (di *AssetDownloadDelegate) HasURLSessionAggregateAssetDownloadTaskWillDownloadToURL() bool { return di._URLSessionAggregateAssetDownloadTaskWillDownloadToURL != nil } @@ -120,57 +38,6 @@ func (di *AssetDownloadDelegate) SetURLSessionAggregateAssetDownloadTaskWillDown func (di *AssetDownloadDelegate) URLSessionAggregateAssetDownloadTaskWillDownloadToURL(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, location foundation.URL) { di._URLSessionAggregateAssetDownloadTaskWillDownloadToURL(session, aggregateAssetDownloadTask, location) } -func (di *AssetDownloadDelegate) HasURLSessionAssetDownloadTaskWillDownloadVariants() bool { - return di._URLSessionAssetDownloadTaskWillDownloadVariants != nil -} - -// Tells the delegate that a download task completed variant selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/3751760-urlsession?language=objc -func (di *AssetDownloadDelegate) SetURLSessionAssetDownloadTaskWillDownloadVariants(f func(session foundation.URLSession, assetDownloadTask AssetDownloadTask, variants []AssetVariant)) { - di._URLSessionAssetDownloadTaskWillDownloadVariants = f -} - -// Tells the delegate that a download task completed variant selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/3751760-urlsession?language=objc -func (di *AssetDownloadDelegate) URLSessionAssetDownloadTaskWillDownloadVariants(session foundation.URLSession, assetDownloadTask AssetDownloadTask, variants []AssetVariant) { - di._URLSessionAssetDownloadTaskWillDownloadVariants(session, assetDownloadTask, variants) -} -func (di *AssetDownloadDelegate) HasURLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection() bool { - return di._URLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection != nil -} - -// Tells the delegate that a child task finished downloading a media selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/2897211-urlsession?language=objc -func (di *AssetDownloadDelegate) SetURLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection(f func(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, mediaSelection MediaSelection)) { - di._URLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection = f -} - -// Tells the delegate that a child task finished downloading a media selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/2897211-urlsession?language=objc -func (di *AssetDownloadDelegate) URLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, mediaSelection MediaSelection) { - di._URLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection(session, aggregateAssetDownloadTask, mediaSelection) -} -func (di *AssetDownloadDelegate) HasURLSessionAssetDownloadTaskDidFinishDownloadingToURL() bool { - return di._URLSessionAssetDownloadTaskDidFinishDownloadingToURL != nil -} - -// Tells the delegate that a download task finished downloading the requested asset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/1845200-urlsession?language=objc -func (di *AssetDownloadDelegate) SetURLSessionAssetDownloadTaskDidFinishDownloadingToURL(f func(session foundation.URLSession, assetDownloadTask AssetDownloadTask, location foundation.URL)) { - di._URLSessionAssetDownloadTaskDidFinishDownloadingToURL = f -} - -// Tells the delegate that a download task finished downloading the requested asset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/1845200-urlsession?language=objc -func (di *AssetDownloadDelegate) URLSessionAssetDownloadTaskDidFinishDownloadingToURL(session foundation.URLSession, assetDownloadTask AssetDownloadTask, location foundation.URL) { - di._URLSessionAssetDownloadTaskDidFinishDownloadingToURL(session, assetDownloadTask, location) -} // ensure impl type implements protocol interface var _ PAssetDownloadDelegate = (*AssetDownloadDelegateObject)(nil) @@ -180,39 +47,6 @@ type AssetDownloadDelegateObject struct { objc.Object } -func (a_ AssetDownloadDelegateObject) HasURLSessionAssetDownloadTaskDidResolveMediaSelection() bool { - return a_.RespondsToSelector(objc.Sel("URLSession:assetDownloadTask:didResolveMediaSelection:")) -} - -// Tells the delegate that a download task resolved the media selection to download, including any automatic selections. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/1621023-urlsession?language=objc -func (a_ AssetDownloadDelegateObject) URLSessionAssetDownloadTaskDidResolveMediaSelection(session foundation.URLSession, assetDownloadTask AssetDownloadTask, resolvedMediaSelection MediaSelection) { - objc.Call[objc.Void](a_, objc.Sel("URLSession:assetDownloadTask:didResolveMediaSelection:"), session, assetDownloadTask, resolvedMediaSelection) -} - -func (a_ AssetDownloadDelegateObject) HasURLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad() bool { - return a_.RespondsToSelector(objc.Sel("URLSession:assetDownloadTask:didLoadTimeRange:totalTimeRangesLoaded:timeRangeExpectedToLoad:")) -} - -// Tells the delegate that a download task loaded a new time range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/1621019-urlsession?language=objc -func (a_ AssetDownloadDelegateObject) URLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad(session foundation.URLSession, assetDownloadTask AssetDownloadTask, timeRange coremedia.TimeRange, loadedTimeRanges []foundation.Value, timeRangeExpectedToLoad coremedia.TimeRange) { - objc.Call[objc.Void](a_, objc.Sel("URLSession:assetDownloadTask:didLoadTimeRange:totalTimeRangesLoaded:timeRangeExpectedToLoad:"), session, assetDownloadTask, timeRange, loadedTimeRanges, timeRangeExpectedToLoad) -} - -func (a_ AssetDownloadDelegateObject) HasURLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection() bool { - return a_.RespondsToSelector(objc.Sel("URLSession:aggregateAssetDownloadTask:didLoadTimeRange:totalTimeRangesLoaded:timeRangeExpectedToLoad:forMediaSelection:")) -} - -// Tells the delegate that the aggregate download task loaded a new time range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/2919988-urlsession?language=objc -func (a_ AssetDownloadDelegateObject) URLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, timeRange coremedia.TimeRange, loadedTimeRanges []foundation.Value, timeRangeExpectedToLoad coremedia.TimeRange, mediaSelection MediaSelection) { - objc.Call[objc.Void](a_, objc.Sel("URLSession:aggregateAssetDownloadTask:didLoadTimeRange:totalTimeRangesLoaded:timeRangeExpectedToLoad:forMediaSelection:"), session, aggregateAssetDownloadTask, timeRange, loadedTimeRanges, timeRangeExpectedToLoad, mediaSelection) -} - func (a_ AssetDownloadDelegateObject) HasURLSessionAggregateAssetDownloadTaskWillDownloadToURL() bool { return a_.RespondsToSelector(objc.Sel("URLSession:aggregateAssetDownloadTask:willDownloadToURL:")) } @@ -223,36 +57,3 @@ func (a_ AssetDownloadDelegateObject) HasURLSessionAggregateAssetDownloadTaskWil func (a_ AssetDownloadDelegateObject) URLSessionAggregateAssetDownloadTaskWillDownloadToURL(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, location foundation.URL) { objc.Call[objc.Void](a_, objc.Sel("URLSession:aggregateAssetDownloadTask:willDownloadToURL:"), session, aggregateAssetDownloadTask, location) } - -func (a_ AssetDownloadDelegateObject) HasURLSessionAssetDownloadTaskWillDownloadVariants() bool { - return a_.RespondsToSelector(objc.Sel("URLSession:assetDownloadTask:willDownloadVariants:")) -} - -// Tells the delegate that a download task completed variant selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/3751760-urlsession?language=objc -func (a_ AssetDownloadDelegateObject) URLSessionAssetDownloadTaskWillDownloadVariants(session foundation.URLSession, assetDownloadTask AssetDownloadTask, variants []AssetVariant) { - objc.Call[objc.Void](a_, objc.Sel("URLSession:assetDownloadTask:willDownloadVariants:"), session, assetDownloadTask, variants) -} - -func (a_ AssetDownloadDelegateObject) HasURLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection() bool { - return a_.RespondsToSelector(objc.Sel("URLSession:aggregateAssetDownloadTask:didCompleteForMediaSelection:")) -} - -// Tells the delegate that a child task finished downloading a media selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/2897211-urlsession?language=objc -func (a_ AssetDownloadDelegateObject) URLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, mediaSelection MediaSelection) { - objc.Call[objc.Void](a_, objc.Sel("URLSession:aggregateAssetDownloadTask:didCompleteForMediaSelection:"), session, aggregateAssetDownloadTask, mediaSelection) -} - -func (a_ AssetDownloadDelegateObject) HasURLSessionAssetDownloadTaskDidFinishDownloadingToURL() bool { - return a_.RespondsToSelector(objc.Sel("URLSession:assetDownloadTask:didFinishDownloadingToURL:")) -} - -// Tells the delegate that a download task finished downloading the requested asset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/1845200-urlsession?language=objc -func (a_ AssetDownloadDelegateObject) URLSessionAssetDownloadTaskDidFinishDownloadingToURL(session foundation.URLSession, assetDownloadTask AssetDownloadTask, location foundation.URL) { - objc.Call[objc.Void](a_, objc.Sel("URLSession:assetDownloadTask:didFinishDownloadingToURL:"), session, assetDownloadTask, location) -} diff --git a/macos/avfoundation/asset_download_url_session.gen.go b/macos/avfoundation/asset_download_url_session.gen.go index b699f9b7..45c6a977 100644 --- a/macos/avfoundation/asset_download_url_session.gen.go +++ b/macos/avfoundation/asset_download_url_session.gen.go @@ -19,9 +19,8 @@ type _AssetDownloadURLSessionClass struct { // An interface definition for the [AssetDownloadURLSession] class. type IAssetDownloadURLSession interface { foundation.IURLSession - AssetDownloadTaskWithConfiguration(downloadConfiguration IAssetDownloadConfiguration) AssetDownloadTask - AssetDownloadTaskWithURLAssetAssetTitleAssetArtworkDataOptions(URLAsset IURLAsset, title string, artworkData []byte, options map[string]objc.IObject) AssetDownloadTask AggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions(URLAsset IURLAsset, mediaSelections []IMediaSelection, title string, artworkData []byte, options map[string]objc.IObject) AggregateAssetDownloadTask + AssetDownloadTaskWithConfiguration(downloadConfiguration IAssetDownloadConfiguration) AssetDownloadTask } // A URL session that creates and executes asset download tasks. [Full Topic] @@ -57,30 +56,6 @@ func (a_ AssetDownloadURLSession) Init() AssetDownloadURLSession { return rv } -// Creates a download task that uses the specified configuration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadurlsession/3751761-assetdownloadtaskwithconfigurati?language=objc -func (a_ AssetDownloadURLSession) AssetDownloadTaskWithConfiguration(downloadConfiguration IAssetDownloadConfiguration) AssetDownloadTask { - rv := objc.Call[AssetDownloadTask](a_, objc.Sel("assetDownloadTaskWithConfiguration:"), downloadConfiguration) - return rv -} - -// Creates a download task to download the asset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadurlsession/1650938-assetdownloadtaskwithurlasset?language=objc -func (a_ AssetDownloadURLSession) AssetDownloadTaskWithURLAssetAssetTitleAssetArtworkDataOptions(URLAsset IURLAsset, title string, artworkData []byte, options map[string]objc.IObject) AssetDownloadTask { - rv := objc.Call[AssetDownloadTask](a_, objc.Sel("assetDownloadTaskWithURLAsset:assetTitle:assetArtworkData:options:"), URLAsset, title, artworkData, options) - return rv -} - -// Creates a download task to download the asset and media selections. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadurlsession/2897242-aggregateassetdownloadtaskwithur?language=objc -func (a_ AssetDownloadURLSession) AggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions(URLAsset IURLAsset, mediaSelections []IMediaSelection, title string, artworkData []byte, options map[string]objc.IObject) AggregateAssetDownloadTask { - rv := objc.Call[AggregateAssetDownloadTask](a_, objc.Sel("aggregateAssetDownloadTaskWithURLAsset:mediaSelections:assetTitle:assetArtworkData:options:"), URLAsset, mediaSelections, title, artworkData, options) - return rv -} - // Creates a URL session to download assets. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadurlsession/1621015-sessionwithconfiguration?language=objc @@ -111,3 +86,19 @@ func (ac _AssetDownloadURLSessionClass) SessionWithConfigurationAssetDownloadDel func AssetDownloadURLSession_SessionWithConfigurationAssetDownloadDelegateObjectDelegateQueue(configuration foundation.IURLSessionConfiguration, delegateObject objc.IObject, delegateQueue foundation.IOperationQueue) AssetDownloadURLSession { return AssetDownloadURLSessionClass.SessionWithConfigurationAssetDownloadDelegateObjectDelegateQueue(configuration, delegateObject, delegateQueue) } + +// Creates a download task to download the asset and media selections. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadurlsession/2897242-aggregateassetdownloadtaskwithur?language=objc +func (a_ AssetDownloadURLSession) AggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions(URLAsset IURLAsset, mediaSelections []IMediaSelection, title string, artworkData []byte, options map[string]objc.IObject) AggregateAssetDownloadTask { + rv := objc.Call[AggregateAssetDownloadTask](a_, objc.Sel("aggregateAssetDownloadTaskWithURLAsset:mediaSelections:assetTitle:assetArtworkData:options:"), URLAsset, mediaSelections, title, artworkData, options) + return rv +} + +// Creates a download task that uses the specified configuration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloadurlsession/3751761-assetdownloadtaskwithconfigurati?language=objc +func (a_ AssetDownloadURLSession) AssetDownloadTaskWithConfiguration(downloadConfiguration IAssetDownloadConfiguration) AssetDownloadTask { + rv := objc.Call[AssetDownloadTask](a_, objc.Sel("assetDownloadTaskWithConfiguration:"), downloadConfiguration) + return rv +} diff --git a/macos/avfoundation/asset_export_session.gen.go b/macos/avfoundation/asset_export_session.gen.go index 24f079c6..8c635df3 100644 --- a/macos/avfoundation/asset_export_session.gen.go +++ b/macos/avfoundation/asset_export_session.gen.go @@ -20,42 +20,42 @@ type _AssetExportSessionClass struct { // An interface definition for the [AssetExportSession] class. type IAssetExportSession interface { objc.IObject - CancelExport() - EstimateMaximumDurationWithCompletionHandler(handler func(estimatedMaximumDuration coremedia.Time, error foundation.Error)) ExportAsynchronouslyWithCompletionHandler(handler func()) DetermineCompatibleFileTypesWithCompletionHandler(handler func(compatibleFileTypes []FileType)) EstimateOutputFileLengthWithCompletionHandler(handler func(estimatedOutputFileLength int64, error foundation.Error)) - DirectoryForTemporaryFiles() foundation.URL - SetDirectoryForTemporaryFiles(value foundation.IURL) - Metadata() []MetadataItem - SetMetadata(value []IMetadataItem) - Asset() Asset - AudioMix() AudioMix - SetAudioMix(value IAudioMix) - Progress() float32 + CancelExport() + EstimateMaximumDurationWithCompletionHandler(handler func(estimatedMaximumDuration coremedia.Time, error foundation.Error)) + Error() foundation.Error MetadataItemFilter() MetadataItemFilter SetMetadataItemFilter(value IMetadataItemFilter) - OutputURL() foundation.URL - SetOutputURL(value foundation.IURL) - CustomVideoCompositor() VideoCompositingObject VideoComposition() VideoComposition SetVideoComposition(value IVideoComposition) - TimeRange() coremedia.TimeRange - SetTimeRange(value coremedia.TimeRange) FileLengthLimit() int64 SetFileLengthLimit(value int64) - SupportedFileTypes() []FileType AudioTimePitchAlgorithm() AudioTimePitchAlgorithm SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) + SupportedFileTypes() []FileType + Metadata() []MetadataItem + SetMetadata(value []IMetadataItem) PresetName() string - OutputFileType() FileType - SetOutputFileType(value FileType) CanPerformMultiplePassesOverSourceMediaData() bool SetCanPerformMultiplePassesOverSourceMediaData(value bool) - Status() AssetExportSessionStatus - Error() foundation.Error + CustomVideoCompositor() VideoCompositingObject + OutputFileType() FileType + SetOutputFileType(value FileType) ShouldOptimizeForNetworkUse() bool SetShouldOptimizeForNetworkUse(value bool) + DirectoryForTemporaryFiles() foundation.URL + SetDirectoryForTemporaryFiles(value foundation.IURL) + TimeRange() coremedia.TimeRange + SetTimeRange(value coremedia.TimeRange) + AudioMix() AudioMix + SetAudioMix(value IAudioMix) + Progress() float32 + Status() AssetExportSessionStatus + Asset() Asset + OutputURL() foundation.URL + SetOutputURL(value foundation.IURL) } // An object that exports assets in a format that you specify using an export preset. [Full Topic] @@ -71,6 +71,18 @@ func AssetExportSessionFrom(ptr unsafe.Pointer) AssetExportSession { } } +func (ac _AssetExportSessionClass) ExportSessionWithAssetPresetName(asset IAsset, presetName string) AssetExportSession { + rv := objc.Call[AssetExportSession](ac, objc.Sel("exportSessionWithAsset:presetName:"), asset, presetName) + return rv +} + +// Returns a new asset export session that uses the specified preset. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1564246-exportsessionwithasset?language=objc +func AssetExportSession_ExportSessionWithAssetPresetName(asset IAsset, presetName string) AssetExportSession { + return AssetExportSessionClass.ExportSessionWithAssetPresetName(asset, presetName) +} + func (a_ AssetExportSession) InitWithAssetPresetName(asset IAsset, presetName string) AssetExportSession { rv := objc.Call[AssetExportSession](a_, objc.Sel("initWithAsset:presetName:"), asset, presetName) return rv @@ -85,18 +97,6 @@ func NewAssetExportSessionWithAssetPresetName(asset IAsset, presetName string) A return instance } -func (ac _AssetExportSessionClass) ExportSessionWithAssetPresetName(asset IAsset, presetName string) AssetExportSession { - rv := objc.Call[AssetExportSession](ac, objc.Sel("exportSessionWithAsset:presetName:"), asset, presetName) - return rv -} - -// Returns a new asset export session that uses the specified preset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1564246-exportsessionwithasset?language=objc -func AssetExportSession_ExportSessionWithAssetPresetName(asset IAsset, presetName string) AssetExportSession { - return AssetExportSessionClass.ExportSessionWithAssetPresetName(asset, presetName) -} - func (ac _AssetExportSessionClass) Alloc() AssetExportSession { rv := objc.Call[AssetExportSession](ac, objc.Sel("alloc")) return rv @@ -117,20 +117,6 @@ func (a_ AssetExportSession) Init() AssetExportSession { return rv } -// Cancels the execution of an export session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1387794-cancelexport?language=objc -func (a_ AssetExportSession) CancelExport() { - objc.Call[objc.Void](a_, objc.Sel("cancelExport")) -} - -// Starts estimating the maximum duration of the export while considering the asset, preset, and time range configuration of the export session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/3042920-estimatemaximumdurationwithcompl?language=objc -func (a_ AssetExportSession) EstimateMaximumDurationWithCompletionHandler(handler func(estimatedMaximumDuration coremedia.Time, error foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("estimateMaximumDurationWithCompletionHandler:"), handler) -} - // Starts the asynchronous execution of an export session. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388005-exportasynchronouslywithcompleti?language=objc @@ -145,6 +131,13 @@ func (a_ AssetExportSession) DetermineCompatibleFileTypesWithCompletionHandler(h objc.Call[objc.Void](a_, objc.Sel("determineCompatibleFileTypesWithCompletionHandler:"), handler) } +// Starts estimating the output file length of the export while considering the asset, preset, and time range configuration of the export session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/3042921-estimateoutputfilelengthwithcomp?language=objc +func (a_ AssetExportSession) EstimateOutputFileLengthWithCompletionHandler(handler func(estimatedOutputFileLength int64, error foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("estimateOutputFileLengthWithCompletionHandler:"), handler) +} + // Determines an export preset’s compatibility to export the asset in a container of the output file type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1385821-determinecompatibilityofexportpr?language=objc @@ -159,13 +152,6 @@ func AssetExportSession_DetermineCompatibilityOfExportPresetWithAssetOutputFileT AssetExportSessionClass.DetermineCompatibilityOfExportPresetWithAssetOutputFileTypeCompletionHandler(presetName, asset, outputFileType, handler) } -// Starts estimating the output file length of the export while considering the asset, preset, and time range configuration of the export session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/3042921-estimateoutputfilelengthwithcomp?language=objc -func (a_ AssetExportSession) EstimateOutputFileLengthWithCompletionHandler(handler func(estimatedOutputFileLength int64, error foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("estimateOutputFileLengthWithCompletionHandler:"), handler) -} - // Returns all available export preset names. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1387150-allexportpresets?language=objc @@ -181,64 +167,25 @@ func AssetExportSession_AllExportPresets() []string { return AssetExportSessionClass.AllExportPresets() } -// A directory suitable to store temporary files that the export process generates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388699-directoryfortemporaryfiles?language=objc -func (a_ AssetExportSession) DirectoryForTemporaryFiles() foundation.URL { - rv := objc.Call[foundation.URL](a_, objc.Sel("directoryForTemporaryFiles")) - return rv -} - -// A directory suitable to store temporary files that the export process generates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388699-directoryfortemporaryfiles?language=objc -func (a_ AssetExportSession) SetDirectoryForTemporaryFiles(value foundation.IURL) { - objc.Call[objc.Void](a_, objc.Sel("setDirectoryForTemporaryFiles:"), value) -} - -// The metadata an export session writes to the output container file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390453-metadata?language=objc -func (a_ AssetExportSession) Metadata() []MetadataItem { - rv := objc.Call[[]MetadataItem](a_, objc.Sel("metadata")) - return rv -} - -// The metadata an export session writes to the output container file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390453-metadata?language=objc -func (a_ AssetExportSession) SetMetadata(value []IMetadataItem) { - objc.Call[objc.Void](a_, objc.Sel("setMetadata:"), value) -} - -// An asset that a session exports. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1385690-asset?language=objc -func (a_ AssetExportSession) Asset() Asset { - rv := objc.Call[Asset](a_, objc.Sel("asset")) - return rv -} - -// The parameters for audio mixing and an indication of whether to enable nondefault audio mixing for export. [Full Topic] +// Cancels the execution of an export session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388155-audiomix?language=objc -func (a_ AssetExportSession) AudioMix() AudioMix { - rv := objc.Call[AudioMix](a_, objc.Sel("audioMix")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1387794-cancelexport?language=objc +func (a_ AssetExportSession) CancelExport() { + objc.Call[objc.Void](a_, objc.Sel("cancelExport")) } -// The parameters for audio mixing and an indication of whether to enable nondefault audio mixing for export. [Full Topic] +// Starts estimating the maximum duration of the export while considering the asset, preset, and time range configuration of the export session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388155-audiomix?language=objc -func (a_ AssetExportSession) SetAudioMix(value IAudioMix) { - objc.Call[objc.Void](a_, objc.Sel("setAudioMix:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/3042920-estimatemaximumdurationwithcompl?language=objc +func (a_ AssetExportSession) EstimateMaximumDurationWithCompletionHandler(handler func(estimatedMaximumDuration coremedia.Time, error foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("estimateMaximumDurationWithCompletionHandler:"), handler) } -// A value that indicates the progress of the export. [Full Topic] +// An optional error object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1387530-progress?language=objc -func (a_ AssetExportSession) Progress() float32 { - rv := objc.Call[float32](a_, objc.Sel("progress")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1385936-error?language=objc +func (a_ AssetExportSession) Error() foundation.Error { + rv := objc.Call[foundation.Error](a_, objc.Sel("error")) return rv } @@ -257,29 +204,6 @@ func (a_ AssetExportSession) SetMetadataItemFilter(value IMetadataItemFilter) { objc.Call[objc.Void](a_, objc.Sel("setMetadataItemFilter:"), value) } -// A URL where an asset export session writes its output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1389970-outputurl?language=objc -func (a_ AssetExportSession) OutputURL() foundation.URL { - rv := objc.Call[foundation.URL](a_, objc.Sel("outputURL")) - return rv -} - -// A URL where an asset export session writes its output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1389970-outputurl?language=objc -func (a_ AssetExportSession) SetOutputURL(value foundation.IURL) { - objc.Call[objc.Void](a_, objc.Sel("setOutputURL:"), value) -} - -// An optional custom object to use when compositing video frames. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388288-customvideocompositor?language=objc -func (a_ AssetExportSession) CustomVideoCompositor() VideoCompositingObject { - rv := objc.Call[VideoCompositingObject](a_, objc.Sel("customVideoCompositor")) - return rv -} - // An optional object that provides instructions for how to composite frames of video. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1389477-videocomposition?language=objc @@ -295,21 +219,6 @@ func (a_ AssetExportSession) SetVideoComposition(value IVideoComposition) { objc.Call[objc.Void](a_, objc.Sel("setVideoComposition:"), value) } -// The time range of the source asset to export. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388728-timerange?language=objc -func (a_ AssetExportSession) TimeRange() coremedia.TimeRange { - rv := objc.Call[coremedia.TimeRange](a_, objc.Sel("timeRange")) - return rv -} - -// The time range of the source asset to export. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388728-timerange?language=objc -func (a_ AssetExportSession) SetTimeRange(value coremedia.TimeRange) { - objc.Call[objc.Void](a_, objc.Sel("setTimeRange:"), value) -} - // The file length that the output of the session must not exceed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1622333-filelengthlimit?language=objc @@ -325,14 +234,6 @@ func (a_ AssetExportSession) SetFileLengthLimit(value int64) { objc.Call[objc.Void](a_, objc.Sel("setFileLengthLimit:"), value) } -// An array containing the types of files the session can write. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388762-supportedfiletypes?language=objc -func (a_ AssetExportSession) SupportedFileTypes() []FileType { - rv := objc.Call[[]FileType](a_, objc.Sel("supportedFileTypes")) - return rv -} - // A processing algorithm for managing audio pitch for scaled audio edits. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1385835-audiotimepitchalgorithm?language=objc @@ -348,27 +249,35 @@ func (a_ AssetExportSession) SetAudioTimePitchAlgorithm(value AudioTimePitchAlgo objc.Call[objc.Void](a_, objc.Sel("setAudioTimePitchAlgorithm:"), value) } -// The name of the preset that the asset export session uses. [Full Topic] +// An array containing the types of files the session can write. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390467-presetname?language=objc -func (a_ AssetExportSession) PresetName() string { - rv := objc.Call[string](a_, objc.Sel("presetName")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388762-supportedfiletypes?language=objc +func (a_ AssetExportSession) SupportedFileTypes() []FileType { + rv := objc.Call[[]FileType](a_, objc.Sel("supportedFileTypes")) return rv } -// The file type of the output an asset export session writes. [Full Topic] +// The metadata an export session writes to the output container file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1387110-outputfiletype?language=objc -func (a_ AssetExportSession) OutputFileType() FileType { - rv := objc.Call[FileType](a_, objc.Sel("outputFileType")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390453-metadata?language=objc +func (a_ AssetExportSession) Metadata() []MetadataItem { + rv := objc.Call[[]MetadataItem](a_, objc.Sel("metadata")) return rv } -// The file type of the output an asset export session writes. [Full Topic] +// The metadata an export session writes to the output container file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1387110-outputfiletype?language=objc -func (a_ AssetExportSession) SetOutputFileType(value FileType) { - objc.Call[objc.Void](a_, objc.Sel("setOutputFileType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390453-metadata?language=objc +func (a_ AssetExportSession) SetMetadata(value []IMetadataItem) { + objc.Call[objc.Void](a_, objc.Sel("setMetadata:"), value) +} + +// The name of the preset that the asset export session uses. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390467-presetname?language=objc +func (a_ AssetExportSession) PresetName() string { + rv := objc.Call[string](a_, objc.Sel("presetName")) + return rv } // A Boolean value that indicates whether the export session can perform multiple passes over the source media to achieve better results. [Full Topic] @@ -386,22 +295,29 @@ func (a_ AssetExportSession) SetCanPerformMultiplePassesOverSourceMediaData(valu objc.Call[objc.Void](a_, objc.Sel("setCanPerformMultiplePassesOverSourceMediaData:"), value) } -// The status of the export session. [Full Topic] +// An optional custom object to use when compositing video frames. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390528-status?language=objc -func (a_ AssetExportSession) Status() AssetExportSessionStatus { - rv := objc.Call[AssetExportSessionStatus](a_, objc.Sel("status")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388288-customvideocompositor?language=objc +func (a_ AssetExportSession) CustomVideoCompositor() VideoCompositingObject { + rv := objc.Call[VideoCompositingObject](a_, objc.Sel("customVideoCompositor")) return rv } -// An optional error object. [Full Topic] +// The file type of the output an asset export session writes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1385936-error?language=objc -func (a_ AssetExportSession) Error() foundation.Error { - rv := objc.Call[foundation.Error](a_, objc.Sel("error")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1387110-outputfiletype?language=objc +func (a_ AssetExportSession) OutputFileType() FileType { + rv := objc.Call[FileType](a_, objc.Sel("outputFileType")) return rv } +// The file type of the output an asset export session writes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1387110-outputfiletype?language=objc +func (a_ AssetExportSession) SetOutputFileType(value FileType) { + objc.Call[objc.Void](a_, objc.Sel("setOutputFileType:"), value) +} + // A Boolean value that indicates whether to optimize the movie for network use. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390593-shouldoptimizefornetworkuse?language=objc @@ -416,3 +332,87 @@ func (a_ AssetExportSession) ShouldOptimizeForNetworkUse() bool { func (a_ AssetExportSession) SetShouldOptimizeForNetworkUse(value bool) { objc.Call[objc.Void](a_, objc.Sel("setShouldOptimizeForNetworkUse:"), value) } + +// A directory suitable to store temporary files that the export process generates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388699-directoryfortemporaryfiles?language=objc +func (a_ AssetExportSession) DirectoryForTemporaryFiles() foundation.URL { + rv := objc.Call[foundation.URL](a_, objc.Sel("directoryForTemporaryFiles")) + return rv +} + +// A directory suitable to store temporary files that the export process generates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388699-directoryfortemporaryfiles?language=objc +func (a_ AssetExportSession) SetDirectoryForTemporaryFiles(value foundation.IURL) { + objc.Call[objc.Void](a_, objc.Sel("setDirectoryForTemporaryFiles:"), value) +} + +// The time range of the source asset to export. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388728-timerange?language=objc +func (a_ AssetExportSession) TimeRange() coremedia.TimeRange { + rv := objc.Call[coremedia.TimeRange](a_, objc.Sel("timeRange")) + return rv +} + +// The time range of the source asset to export. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388728-timerange?language=objc +func (a_ AssetExportSession) SetTimeRange(value coremedia.TimeRange) { + objc.Call[objc.Void](a_, objc.Sel("setTimeRange:"), value) +} + +// The parameters for audio mixing and an indication of whether to enable nondefault audio mixing for export. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388155-audiomix?language=objc +func (a_ AssetExportSession) AudioMix() AudioMix { + rv := objc.Call[AudioMix](a_, objc.Sel("audioMix")) + return rv +} + +// The parameters for audio mixing and an indication of whether to enable nondefault audio mixing for export. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388155-audiomix?language=objc +func (a_ AssetExportSession) SetAudioMix(value IAudioMix) { + objc.Call[objc.Void](a_, objc.Sel("setAudioMix:"), value) +} + +// A value that indicates the progress of the export. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1387530-progress?language=objc +func (a_ AssetExportSession) Progress() float32 { + rv := objc.Call[float32](a_, objc.Sel("progress")) + return rv +} + +// The status of the export session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390528-status?language=objc +func (a_ AssetExportSession) Status() AssetExportSessionStatus { + rv := objc.Call[AssetExportSessionStatus](a_, objc.Sel("status")) + return rv +} + +// An asset that a session exports. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1385690-asset?language=objc +func (a_ AssetExportSession) Asset() Asset { + rv := objc.Call[Asset](a_, objc.Sel("asset")) + return rv +} + +// A URL where an asset export session writes its output. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1389970-outputurl?language=objc +func (a_ AssetExportSession) OutputURL() foundation.URL { + rv := objc.Call[foundation.URL](a_, objc.Sel("outputURL")) + return rv +} + +// A URL where an asset export session writes its output. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1389970-outputurl?language=objc +func (a_ AssetExportSession) SetOutputURL(value foundation.IURL) { + objc.Call[objc.Void](a_, objc.Sel("setOutputURL:"), value) +} diff --git a/macos/avfoundation/asset_image_generator.gen.go b/macos/avfoundation/asset_image_generator.gen.go index 5deae06d..dbb44185 100644 --- a/macos/avfoundation/asset_image_generator.gen.go +++ b/macos/avfoundation/asset_image_generator.gen.go @@ -23,20 +23,20 @@ type IAssetImageGenerator interface { objc.IObject GenerateCGImagesAsynchronouslyForTimesCompletionHandler(requestedTimes []foundation.IValue, handler AssetImageGeneratorCompletionHandler) CancelAllCGImageGeneration() - CustomVideoCompositor() VideoCompositingObject MaximumSize() coregraphics.Size SetMaximumSize(value coregraphics.Size) VideoComposition() VideoComposition SetVideoComposition(value IVideoComposition) - RequestedTimeToleranceBefore() coremedia.Time - SetRequestedTimeToleranceBefore(value coremedia.Time) - Asset() Asset - RequestedTimeToleranceAfter() coremedia.Time - SetRequestedTimeToleranceAfter(value coremedia.Time) ApertureMode() AssetImageGeneratorApertureMode SetApertureMode(value AssetImageGeneratorApertureMode) AppliesPreferredTrackTransform() bool SetAppliesPreferredTrackTransform(value bool) + RequestedTimeToleranceAfter() coremedia.Time + SetRequestedTimeToleranceAfter(value coremedia.Time) + CustomVideoCompositor() VideoCompositingObject + RequestedTimeToleranceBefore() coremedia.Time + SetRequestedTimeToleranceBefore(value coremedia.Time) + Asset() Asset } // An object that generates images from a video asset. [Full Topic] @@ -52,6 +52,18 @@ func AssetImageGeneratorFrom(ptr unsafe.Pointer) AssetImageGenerator { } } +func (ac _AssetImageGeneratorClass) AssetImageGeneratorWithAsset(asset IAsset) AssetImageGenerator { + rv := objc.Call[AssetImageGenerator](ac, objc.Sel("assetImageGeneratorWithAsset:"), asset) + return rv +} + +// Returns a new object that generates images for times within a video asset. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1426634-assetimagegeneratorwithasset?language=objc +func AssetImageGenerator_AssetImageGeneratorWithAsset(asset IAsset) AssetImageGenerator { + return AssetImageGeneratorClass.AssetImageGeneratorWithAsset(asset) +} + func (a_ AssetImageGenerator) InitWithAsset(asset IAsset) AssetImageGenerator { rv := objc.Call[AssetImageGenerator](a_, objc.Sel("initWithAsset:"), asset) return rv @@ -66,18 +78,6 @@ func NewAssetImageGeneratorWithAsset(asset IAsset) AssetImageGenerator { return instance } -func (ac _AssetImageGeneratorClass) AssetImageGeneratorWithAsset(asset IAsset) AssetImageGenerator { - rv := objc.Call[AssetImageGenerator](ac, objc.Sel("assetImageGeneratorWithAsset:"), asset) - return rv -} - -// Returns a new object that generates images for times within a video asset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1426634-assetimagegeneratorwithasset?language=objc -func AssetImageGenerator_AssetImageGeneratorWithAsset(asset IAsset) AssetImageGenerator { - return AssetImageGeneratorClass.AssetImageGeneratorWithAsset(asset) -} - func (ac _AssetImageGeneratorClass) Alloc() AssetImageGenerator { rv := objc.Call[AssetImageGenerator](ac, objc.Sel("alloc")) return rv @@ -112,14 +112,6 @@ func (a_ AssetImageGenerator) CancelAllCGImageGeneration() { objc.Call[objc.Void](a_, objc.Sel("cancelAllCGImageGeneration")) } -// A custom video compositor to use when extracting images from assets with multiple video tracks. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1386469-customvideocompositor?language=objc -func (a_ AssetImageGenerator) CustomVideoCompositor() VideoCompositingObject { - rv := objc.Call[VideoCompositingObject](a_, objc.Sel("customVideoCompositor")) - return rv -} - // The maximum size of images to generate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1387560-maximumsize?language=objc @@ -150,29 +142,36 @@ func (a_ AssetImageGenerator) SetVideoComposition(value IVideoComposition) { objc.Call[objc.Void](a_, objc.Sel("setVideoComposition:"), value) } -// A maximum length of time before the requested time to allow image generation to occur. [Full Topic] +// Specifies the aperture mode for the generated image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1390571-requestedtimetolerancebefore?language=objc -func (a_ AssetImageGenerator) RequestedTimeToleranceBefore() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("requestedTimeToleranceBefore")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1389314-aperturemode?language=objc +func (a_ AssetImageGenerator) ApertureMode() AssetImageGeneratorApertureMode { + rv := objc.Call[AssetImageGeneratorApertureMode](a_, objc.Sel("apertureMode")) return rv } -// A maximum length of time before the requested time to allow image generation to occur. [Full Topic] +// Specifies the aperture mode for the generated image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1390571-requestedtimetolerancebefore?language=objc -func (a_ AssetImageGenerator) SetRequestedTimeToleranceBefore(value coremedia.Time) { - objc.Call[objc.Void](a_, objc.Sel("setRequestedTimeToleranceBefore:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1389314-aperturemode?language=objc +func (a_ AssetImageGenerator) SetApertureMode(value AssetImageGeneratorApertureMode) { + objc.Call[objc.Void](a_, objc.Sel("setApertureMode:"), value) } -// The asset that initialized the image generator. [Full Topic] +// A Boolean value that specifies whether to apply the track matrix or matrices when generating an image from the asset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1390689-asset?language=objc -func (a_ AssetImageGenerator) Asset() Asset { - rv := objc.Call[Asset](a_, objc.Sel("asset")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1390616-appliespreferredtracktransform?language=objc +func (a_ AssetImageGenerator) AppliesPreferredTrackTransform() bool { + rv := objc.Call[bool](a_, objc.Sel("appliesPreferredTrackTransform")) return rv } +// A Boolean value that specifies whether to apply the track matrix or matrices when generating an image from the asset. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1390616-appliespreferredtracktransform?language=objc +func (a_ AssetImageGenerator) SetAppliesPreferredTrackTransform(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAppliesPreferredTrackTransform:"), value) +} + // A maximum length of time after the requested time to allow image generation to occur. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1387751-requestedtimetoleranceafter?language=objc @@ -188,32 +187,33 @@ func (a_ AssetImageGenerator) SetRequestedTimeToleranceAfter(value coremedia.Tim objc.Call[objc.Void](a_, objc.Sel("setRequestedTimeToleranceAfter:"), value) } -// Specifies the aperture mode for the generated image. [Full Topic] +// A custom video compositor to use when extracting images from assets with multiple video tracks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1389314-aperturemode?language=objc -func (a_ AssetImageGenerator) ApertureMode() AssetImageGeneratorApertureMode { - rv := objc.Call[AssetImageGeneratorApertureMode](a_, objc.Sel("apertureMode")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1386469-customvideocompositor?language=objc +func (a_ AssetImageGenerator) CustomVideoCompositor() VideoCompositingObject { + rv := objc.Call[VideoCompositingObject](a_, objc.Sel("customVideoCompositor")) return rv } -// Specifies the aperture mode for the generated image. [Full Topic] +// A maximum length of time before the requested time to allow image generation to occur. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1389314-aperturemode?language=objc -func (a_ AssetImageGenerator) SetApertureMode(value AssetImageGeneratorApertureMode) { - objc.Call[objc.Void](a_, objc.Sel("setApertureMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1390571-requestedtimetolerancebefore?language=objc +func (a_ AssetImageGenerator) RequestedTimeToleranceBefore() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("requestedTimeToleranceBefore")) + return rv } -// A Boolean value that specifies whether to apply the track matrix or matrices when generating an image from the asset. [Full Topic] +// A maximum length of time before the requested time to allow image generation to occur. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1390616-appliespreferredtracktransform?language=objc -func (a_ AssetImageGenerator) AppliesPreferredTrackTransform() bool { - rv := objc.Call[bool](a_, objc.Sel("appliesPreferredTrackTransform")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1390571-requestedtimetolerancebefore?language=objc +func (a_ AssetImageGenerator) SetRequestedTimeToleranceBefore(value coremedia.Time) { + objc.Call[objc.Void](a_, objc.Sel("setRequestedTimeToleranceBefore:"), value) } -// A Boolean value that specifies whether to apply the track matrix or matrices when generating an image from the asset. [Full Topic] +// The asset that initialized the image generator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1390616-appliespreferredtracktransform?language=objc -func (a_ AssetImageGenerator) SetAppliesPreferredTrackTransform(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAppliesPreferredTrackTransform:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1390689-asset?language=objc +func (a_ AssetImageGenerator) Asset() Asset { + rv := objc.Call[Asset](a_, objc.Sel("asset")) + return rv } diff --git a/macos/avfoundation/asset_reader.gen.go b/macos/avfoundation/asset_reader.gen.go index dd70c550..3376cb4d 100644 --- a/macos/avfoundation/asset_reader.gen.go +++ b/macos/avfoundation/asset_reader.gen.go @@ -21,15 +21,15 @@ type _AssetReaderClass struct { type IAssetReader interface { objc.IObject StartReading() bool - AddOutput(output IAssetReaderOutput) CancelReading() + AddOutput(output IAssetReaderOutput) CanAddOutput(output IAssetReaderOutput) bool - Status() AssetReaderStatus + Error() foundation.Error + Outputs() []AssetReaderOutput TimeRange() coremedia.TimeRange SetTimeRange(value coremedia.TimeRange) + Status() AssetReaderStatus Asset() Asset - Error() foundation.Error - Outputs() []AssetReaderOutput } // An object that reads media data from an asset. [Full Topic] @@ -99,13 +99,6 @@ func (a_ AssetReader) StartReading() bool { return rv } -// Adds an output to the reader. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1390110-addoutput?language=objc -func (a_ AssetReader) AddOutput(output IAssetReaderOutput) { - objc.Call[objc.Void](a_, objc.Sel("addOutput:"), output) -} - // Cancels any background work and stops the reader’s outputs from reading more samples. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1390258-cancelreading?language=objc @@ -113,6 +106,13 @@ func (a_ AssetReader) CancelReading() { objc.Call[objc.Void](a_, objc.Sel("cancelReading")) } +// Adds an output to the reader. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1390110-addoutput?language=objc +func (a_ AssetReader) AddOutput(output IAssetReaderOutput) { + objc.Call[objc.Void](a_, objc.Sel("addOutput:"), output) +} + // Determines whether you can add the output to the asset reader. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1387485-canaddoutput?language=objc @@ -121,11 +121,19 @@ func (a_ AssetReader) CanAddOutput(output IAssetReaderOutput) bool { return rv } -// The status of reading sample buffers from the asset. [Full Topic] +// An error that describes the reason for a failure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1390211-status?language=objc -func (a_ AssetReader) Status() AssetReaderStatus { - rv := objc.Call[AssetReaderStatus](a_, objc.Sel("status")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1388114-error?language=objc +func (a_ AssetReader) Error() foundation.Error { + rv := objc.Call[foundation.Error](a_, objc.Sel("error")) + return rv +} + +// The outputs from which you read media data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1387132-outputs?language=objc +func (a_ AssetReader) Outputs() []AssetReaderOutput { + rv := objc.Call[[]AssetReaderOutput](a_, objc.Sel("outputs")) return rv } @@ -144,26 +152,18 @@ func (a_ AssetReader) SetTimeRange(value coremedia.TimeRange) { objc.Call[objc.Void](a_, objc.Sel("setTimeRange:"), value) } -// The asset from which to read media data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1389128-asset?language=objc -func (a_ AssetReader) Asset() Asset { - rv := objc.Call[Asset](a_, objc.Sel("asset")) - return rv -} - -// An error that describes the reason for a failure. [Full Topic] +// The status of reading sample buffers from the asset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1388114-error?language=objc -func (a_ AssetReader) Error() foundation.Error { - rv := objc.Call[foundation.Error](a_, objc.Sel("error")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1390211-status?language=objc +func (a_ AssetReader) Status() AssetReaderStatus { + rv := objc.Call[AssetReaderStatus](a_, objc.Sel("status")) return rv } -// The outputs from which you read media data. [Full Topic] +// The asset from which to read media data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1387132-outputs?language=objc -func (a_ AssetReader) Outputs() []AssetReaderOutput { - rv := objc.Call[[]AssetReaderOutput](a_, objc.Sel("outputs")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1389128-asset?language=objc +func (a_ AssetReader) Asset() Asset { + rv := objc.Call[Asset](a_, objc.Sel("asset")) return rv } diff --git a/macos/avfoundation/asset_reader_audio_mix_output.gen.go b/macos/avfoundation/asset_reader_audio_mix_output.gen.go index c0b62935..299ef352 100644 --- a/macos/avfoundation/asset_reader_audio_mix_output.gen.go +++ b/macos/avfoundation/asset_reader_audio_mix_output.gen.go @@ -18,12 +18,12 @@ type _AssetReaderAudioMixOutputClass struct { // An interface definition for the [AssetReaderAudioMixOutput] class. type IAssetReaderAudioMixOutput interface { IAssetReaderOutput - AudioTracks() []AssetTrack AudioTimePitchAlgorithm() AudioTimePitchAlgorithm SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) AudioSettings() map[string]objc.Object AudioMix() AudioMix SetAudioMix(value IAudioMix) + AudioTracks() []AssetTrack } // An object that reads audio samples that result from mixing audio from one or more tracks. [Full Topic] @@ -85,14 +85,6 @@ func (a_ AssetReaderAudioMixOutput) Init() AssetReaderAudioMixOutput { return rv } -// The tracks from which the output reads audio. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderaudiomixoutput/1385635-audiotracks?language=objc -func (a_ AssetReaderAudioMixOutput) AudioTracks() []AssetTrack { - rv := objc.Call[[]AssetTrack](a_, objc.Sel("audioTracks")) - return rv -} - // The processing algorithm to use for scaled audio edits. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderaudiomixoutput/1388713-audiotimepitchalgorithm?language=objc @@ -130,3 +122,11 @@ func (a_ AssetReaderAudioMixOutput) AudioMix() AudioMix { func (a_ AssetReaderAudioMixOutput) SetAudioMix(value IAudioMix) { objc.Call[objc.Void](a_, objc.Sel("setAudioMix:"), value) } + +// The tracks from which the output reads audio. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderaudiomixoutput/1385635-audiotracks?language=objc +func (a_ AssetReaderAudioMixOutput) AudioTracks() []AssetTrack { + rv := objc.Call[[]AssetTrack](a_, objc.Sel("audioTracks")) + return rv +} diff --git a/macos/avfoundation/asset_reader_output.gen.go b/macos/avfoundation/asset_reader_output.gen.go index e99f6bb9..8da89182 100644 --- a/macos/avfoundation/asset_reader_output.gen.go +++ b/macos/avfoundation/asset_reader_output.gen.go @@ -20,14 +20,14 @@ type _AssetReaderOutputClass struct { // An interface definition for the [AssetReaderOutput] class. type IAssetReaderOutput interface { objc.IObject - CopyNextSampleBuffer() coremedia.SampleBufferRef ResetForReadingTimeRanges(timeRanges []foundation.IValue) + CopyNextSampleBuffer() coremedia.SampleBufferRef MarkConfigurationAsFinal() - AlwaysCopiesSampleData() bool - SetAlwaysCopiesSampleData(value bool) MediaType() MediaType SupportsRandomAccess() bool SetSupportsRandomAccess(value bool) + AlwaysCopiesSampleData() bool + SetAlwaysCopiesSampleData(value bool) } // An abstract class that defines the interface to read media samples from an asset reader. [Full Topic] @@ -63,6 +63,13 @@ func (a_ AssetReaderOutput) Init() AssetReaderOutput { return rv } +// Restarts reading with a new set of time ranges. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutput/1388890-resetforreadingtimeranges?language=objc +func (a_ AssetReaderOutput) ResetForReadingTimeRanges(timeRanges []foundation.IValue) { + objc.Call[objc.Void](a_, objc.Sel("resetForReadingTimeRanges:"), timeRanges) +} + // Copies the next sample buffer from the output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutput/1385732-copynextsamplebuffer?language=objc @@ -71,13 +78,6 @@ func (a_ AssetReaderOutput) CopyNextSampleBuffer() coremedia.SampleBufferRef { return rv } -// Restarts reading with a new set of time ranges. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutput/1388890-resetforreadingtimeranges?language=objc -func (a_ AssetReaderOutput) ResetForReadingTimeRanges(timeRanges []foundation.IValue) { - objc.Call[objc.Void](a_, objc.Sel("resetForReadingTimeRanges:"), timeRanges) -} - // Tells the output that it’s finished reconfiguring time ranges, and allows the asset reader to advance to a completed state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutput/1386974-markconfigurationasfinal?language=objc @@ -85,21 +85,6 @@ func (a_ AssetReaderOutput) MarkConfigurationAsFinal() { objc.Call[objc.Void](a_, objc.Sel("markConfigurationAsFinal")) } -// A Boolean value that indicates whether the output vends copied sample data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutput/1389189-alwayscopiessampledata?language=objc -func (a_ AssetReaderOutput) AlwaysCopiesSampleData() bool { - rv := objc.Call[bool](a_, objc.Sel("alwaysCopiesSampleData")) - return rv -} - -// A Boolean value that indicates whether the output vends copied sample data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutput/1389189-alwayscopiessampledata?language=objc -func (a_ AssetReaderOutput) SetAlwaysCopiesSampleData(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAlwaysCopiesSampleData:"), value) -} - // The media type of samples that the output reads. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutput/1390880-mediatype?language=objc @@ -122,3 +107,18 @@ func (a_ AssetReaderOutput) SupportsRandomAccess() bool { func (a_ AssetReaderOutput) SetSupportsRandomAccess(value bool) { objc.Call[objc.Void](a_, objc.Sel("setSupportsRandomAccess:"), value) } + +// A Boolean value that indicates whether the output vends copied sample data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutput/1389189-alwayscopiessampledata?language=objc +func (a_ AssetReaderOutput) AlwaysCopiesSampleData() bool { + rv := objc.Call[bool](a_, objc.Sel("alwaysCopiesSampleData")) + return rv +} + +// A Boolean value that indicates whether the output vends copied sample data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutput/1389189-alwayscopiessampledata?language=objc +func (a_ AssetReaderOutput) SetAlwaysCopiesSampleData(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAlwaysCopiesSampleData:"), value) +} diff --git a/macos/avfoundation/asset_reader_output_caption_adaptor.gen.go b/macos/avfoundation/asset_reader_output_caption_adaptor.gen.go index 87b4f32c..ceea7cb3 100644 --- a/macos/avfoundation/asset_reader_output_caption_adaptor.gen.go +++ b/macos/avfoundation/asset_reader_output_caption_adaptor.gen.go @@ -18,8 +18,8 @@ type _AssetReaderOutputCaptionAdaptorClass struct { // An interface definition for the [AssetReaderOutputCaptionAdaptor] class. type IAssetReaderOutputCaptionAdaptor interface { objc.IObject - NextCaptionGroup() CaptionGroup CaptionsNotPresentInPreviousGroupsInCaptionGroup(captionGroup ICaptionGroup) []Caption + NextCaptionGroup() CaptionGroup AssetReaderTrackOutput() AssetReaderTrackOutput ValidationDelegate() AssetReaderCaptionValidationHandlingObject SetValidationDelegate(value PAssetReaderCaptionValidationHandling) @@ -39,18 +39,6 @@ func AssetReaderOutputCaptionAdaptorFrom(ptr unsafe.Pointer) AssetReaderOutputCa } } -func (ac _AssetReaderOutputCaptionAdaptorClass) AssetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput IAssetReaderTrackOutput) AssetReaderOutputCaptionAdaptor { - rv := objc.Call[AssetReaderOutputCaptionAdaptor](ac, objc.Sel("assetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput:"), trackOutput) - return rv -} - -// A class method that creates a caption adaptor that reads from a track output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutputcaptionadaptor/3752794-assetreaderoutputcaptionadaptorw?language=objc -func AssetReaderOutputCaptionAdaptor_AssetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput IAssetReaderTrackOutput) AssetReaderOutputCaptionAdaptor { - return AssetReaderOutputCaptionAdaptorClass.AssetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput) -} - func (a_ AssetReaderOutputCaptionAdaptor) InitWithAssetReaderTrackOutput(trackOutput IAssetReaderTrackOutput) AssetReaderOutputCaptionAdaptor { rv := objc.Call[AssetReaderOutputCaptionAdaptor](a_, objc.Sel("initWithAssetReaderTrackOutput:"), trackOutput) return rv @@ -65,6 +53,18 @@ func NewAssetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput IA return instance } +func (ac _AssetReaderOutputCaptionAdaptorClass) AssetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput IAssetReaderTrackOutput) AssetReaderOutputCaptionAdaptor { + rv := objc.Call[AssetReaderOutputCaptionAdaptor](ac, objc.Sel("assetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput:"), trackOutput) + return rv +} + +// A class method that creates a caption adaptor that reads from a track output. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutputcaptionadaptor/3752794-assetreaderoutputcaptionadaptorw?language=objc +func AssetReaderOutputCaptionAdaptor_AssetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput IAssetReaderTrackOutput) AssetReaderOutputCaptionAdaptor { + return AssetReaderOutputCaptionAdaptorClass.AssetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput) +} + func (ac _AssetReaderOutputCaptionAdaptorClass) Alloc() AssetReaderOutputCaptionAdaptor { rv := objc.Call[AssetReaderOutputCaptionAdaptor](ac, objc.Sel("alloc")) return rv @@ -85,14 +85,6 @@ func (a_ AssetReaderOutputCaptionAdaptor) Init() AssetReaderOutputCaptionAdaptor return rv } -// Returns the next caption group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutputcaptionadaptor/3752798-nextcaptiongroup?language=objc -func (a_ AssetReaderOutputCaptionAdaptor) NextCaptionGroup() CaptionGroup { - rv := objc.Call[CaptionGroup](a_, objc.Sel("nextCaptionGroup")) - return rv -} - // Returns the set of captions in the caption group that weren’t vended by the adaptor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutputcaptionadaptor/3752796-captionsnotpresentinpreviousgrou?language=objc @@ -101,6 +93,14 @@ func (a_ AssetReaderOutputCaptionAdaptor) CaptionsNotPresentInPreviousGroupsInCa return rv } +// Returns the next caption group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutputcaptionadaptor/3752798-nextcaptiongroup?language=objc +func (a_ AssetReaderOutputCaptionAdaptor) NextCaptionGroup() CaptionGroup { + rv := objc.Call[CaptionGroup](a_, objc.Sel("nextCaptionGroup")) + return rv +} + // The associated asset reader track output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutputcaptionadaptor/3752795-assetreadertrackoutput?language=objc diff --git a/macos/avfoundation/asset_reader_sample_reference_output.gen.go b/macos/avfoundation/asset_reader_sample_reference_output.gen.go index 2c1cd615..bb127fe8 100644 --- a/macos/avfoundation/asset_reader_sample_reference_output.gen.go +++ b/macos/avfoundation/asset_reader_sample_reference_output.gen.go @@ -34,6 +34,18 @@ func AssetReaderSampleReferenceOutputFrom(ptr unsafe.Pointer) AssetReaderSampleR } } +func (ac _AssetReaderSampleReferenceOutputClass) AssetReaderSampleReferenceOutputWithTrack(track IAssetTrack) AssetReaderSampleReferenceOutput { + rv := objc.Call[AssetReaderSampleReferenceOutput](ac, objc.Sel("assetReaderSampleReferenceOutputWithTrack:"), track) + return rv +} + +// Returns a new object that supplies sample references. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadersamplereferenceoutput/1490320-assetreadersamplereferenceoutput?language=objc +func AssetReaderSampleReferenceOutput_AssetReaderSampleReferenceOutputWithTrack(track IAssetTrack) AssetReaderSampleReferenceOutput { + return AssetReaderSampleReferenceOutputClass.AssetReaderSampleReferenceOutputWithTrack(track) +} + func (a_ AssetReaderSampleReferenceOutput) InitWithTrack(track IAssetTrack) AssetReaderSampleReferenceOutput { rv := objc.Call[AssetReaderSampleReferenceOutput](a_, objc.Sel("initWithTrack:"), track) return rv @@ -48,18 +60,6 @@ func NewAssetReaderSampleReferenceOutputWithTrack(track IAssetTrack) AssetReader return instance } -func (ac _AssetReaderSampleReferenceOutputClass) AssetReaderSampleReferenceOutputWithTrack(track IAssetTrack) AssetReaderSampleReferenceOutput { - rv := objc.Call[AssetReaderSampleReferenceOutput](ac, objc.Sel("assetReaderSampleReferenceOutputWithTrack:"), track) - return rv -} - -// Returns a new object that supplies sample references. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadersamplereferenceoutput/1490320-assetreadersamplereferenceoutput?language=objc -func AssetReaderSampleReferenceOutput_AssetReaderSampleReferenceOutputWithTrack(track IAssetTrack) AssetReaderSampleReferenceOutput { - return AssetReaderSampleReferenceOutputClass.AssetReaderSampleReferenceOutputWithTrack(track) -} - func (ac _AssetReaderSampleReferenceOutputClass) Alloc() AssetReaderSampleReferenceOutput { rv := objc.Call[AssetReaderSampleReferenceOutput](ac, objc.Sel("alloc")) return rv diff --git a/macos/avfoundation/asset_reader_track_output.gen.go b/macos/avfoundation/asset_reader_track_output.gen.go index 442b2e3a..b979b769 100644 --- a/macos/avfoundation/asset_reader_track_output.gen.go +++ b/macos/avfoundation/asset_reader_track_output.gen.go @@ -18,10 +18,10 @@ type _AssetReaderTrackOutputClass struct { // An interface definition for the [AssetReaderTrackOutput] class. type IAssetReaderTrackOutput interface { IAssetReaderOutput - Track() AssetTrack AudioTimePitchAlgorithm() AudioTimePitchAlgorithm SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) OutputSettings() map[string]objc.Object + Track() AssetTrack } // An object that reads media data from a single track of an asset. [Full Topic] @@ -83,14 +83,6 @@ func (a_ AssetReaderTrackOutput) Init() AssetReaderTrackOutput { return rv } -// The track from which the output reads sample buffers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadertrackoutput/1386921-track?language=objc -func (a_ AssetReaderTrackOutput) Track() AssetTrack { - rv := objc.Call[AssetTrack](a_, objc.Sel("track")) - return rv -} - // The processing algorithm to use for scaled audio edits. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadertrackoutput/1387851-audiotimepitchalgorithm?language=objc @@ -113,3 +105,11 @@ func (a_ AssetReaderTrackOutput) OutputSettings() map[string]objc.Object { rv := objc.Call[map[string]objc.Object](a_, objc.Sel("outputSettings")) return rv } + +// The track from which the output reads sample buffers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadertrackoutput/1386921-track?language=objc +func (a_ AssetReaderTrackOutput) Track() AssetTrack { + rv := objc.Call[AssetTrack](a_, objc.Sel("track")) + return rv +} diff --git a/macos/avfoundation/asset_reader_video_composition_output.gen.go b/macos/avfoundation/asset_reader_video_composition_output.gen.go index 3859a868..1f1efe28 100644 --- a/macos/avfoundation/asset_reader_video_composition_output.gen.go +++ b/macos/avfoundation/asset_reader_video_composition_output.gen.go @@ -21,8 +21,8 @@ type IAssetReaderVideoCompositionOutput interface { VideoComposition() VideoComposition SetVideoComposition(value IVideoComposition) VideoSettings() map[string]objc.Object - VideoTracks() []AssetTrack CustomVideoCompositor() VideoCompositingObject + VideoTracks() []AssetTrack } // An object that reads composited video frames from one or more tracks of an asset. [Full Topic] @@ -38,18 +38,6 @@ func AssetReaderVideoCompositionOutputFrom(ptr unsafe.Pointer) AssetReaderVideoC } } -func (ac _AssetReaderVideoCompositionOutputClass) AssetReaderVideoCompositionOutputWithVideoTracksVideoSettings(videoTracks []IAssetTrack, videoSettings map[string]objc.IObject) AssetReaderVideoCompositionOutput { - rv := objc.Call[AssetReaderVideoCompositionOutput](ac, objc.Sel("assetReaderVideoCompositionOutputWithVideoTracks:videoSettings:"), videoTracks, videoSettings) - return rv -} - -// Returns a new object that reads composited video from the specified video tracks. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadervideocompositionoutput/1490331-assetreadervideocompositionoutpu?language=objc -func AssetReaderVideoCompositionOutput_AssetReaderVideoCompositionOutputWithVideoTracksVideoSettings(videoTracks []IAssetTrack, videoSettings map[string]objc.IObject) AssetReaderVideoCompositionOutput { - return AssetReaderVideoCompositionOutputClass.AssetReaderVideoCompositionOutputWithVideoTracksVideoSettings(videoTracks, videoSettings) -} - func (a_ AssetReaderVideoCompositionOutput) InitWithVideoTracksVideoSettings(videoTracks []IAssetTrack, videoSettings map[string]objc.IObject) AssetReaderVideoCompositionOutput { rv := objc.Call[AssetReaderVideoCompositionOutput](a_, objc.Sel("initWithVideoTracks:videoSettings:"), videoTracks, videoSettings) return rv @@ -64,6 +52,18 @@ func NewAssetReaderVideoCompositionOutputWithVideoTracksVideoSettings(videoTrack return instance } +func (ac _AssetReaderVideoCompositionOutputClass) AssetReaderVideoCompositionOutputWithVideoTracksVideoSettings(videoTracks []IAssetTrack, videoSettings map[string]objc.IObject) AssetReaderVideoCompositionOutput { + rv := objc.Call[AssetReaderVideoCompositionOutput](ac, objc.Sel("assetReaderVideoCompositionOutputWithVideoTracks:videoSettings:"), videoTracks, videoSettings) + return rv +} + +// Returns a new object that reads composited video from the specified video tracks. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadervideocompositionoutput/1490331-assetreadervideocompositionoutpu?language=objc +func AssetReaderVideoCompositionOutput_AssetReaderVideoCompositionOutputWithVideoTracksVideoSettings(videoTracks []IAssetTrack, videoSettings map[string]objc.IObject) AssetReaderVideoCompositionOutput { + return AssetReaderVideoCompositionOutputClass.AssetReaderVideoCompositionOutputWithVideoTracksVideoSettings(videoTracks, videoSettings) +} + func (ac _AssetReaderVideoCompositionOutputClass) Alloc() AssetReaderVideoCompositionOutput { rv := objc.Call[AssetReaderVideoCompositionOutput](ac, objc.Sel("alloc")) return rv @@ -107,14 +107,6 @@ func (a_ AssetReaderVideoCompositionOutput) VideoSettings() map[string]objc.Obje return rv } -// The tracks from which the output reads the composited video. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadervideocompositionoutput/1389000-videotracks?language=objc -func (a_ AssetReaderVideoCompositionOutput) VideoTracks() []AssetTrack { - rv := objc.Call[[]AssetTrack](a_, objc.Sel("videoTracks")) - return rv -} - // A custom video compositor for the output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadervideocompositionoutput/1388310-customvideocompositor?language=objc @@ -122,3 +114,11 @@ func (a_ AssetReaderVideoCompositionOutput) CustomVideoCompositor() VideoComposi rv := objc.Call[VideoCompositingObject](a_, objc.Sel("customVideoCompositor")) return rv } + +// The tracks from which the output reads the composited video. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadervideocompositionoutput/1389000-videotracks?language=objc +func (a_ AssetReaderVideoCompositionOutput) VideoTracks() []AssetTrack { + rv := objc.Call[[]AssetTrack](a_, objc.Sel("videoTracks")) + return rv +} diff --git a/macos/avfoundation/asset_resource_loader_delegate.gen.go b/macos/avfoundation/asset_resource_loader_delegate.gen.go index 47d846b6..f1fd4750 100644 --- a/macos/avfoundation/asset_resource_loader_delegate.gen.go +++ b/macos/avfoundation/asset_resource_loader_delegate.gen.go @@ -11,70 +11,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate?language=objc type PAssetResourceLoaderDelegate interface { - // optional - ResourceLoaderShouldWaitForRenewalOfRequestedResource(resourceLoader AssetResourceLoader, renewalRequest AssetResourceRenewalRequest) bool - HasResourceLoaderShouldWaitForRenewalOfRequestedResource() bool - - // optional - ResourceLoaderDidCancelLoadingRequest(resourceLoader AssetResourceLoader, loadingRequest AssetResourceLoadingRequest) - HasResourceLoaderDidCancelLoadingRequest() bool - // optional ResourceLoaderDidCancelAuthenticationChallenge(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) HasResourceLoaderDidCancelAuthenticationChallenge() bool - - // optional - ResourceLoaderShouldWaitForResponseToAuthenticationChallenge(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) bool - HasResourceLoaderShouldWaitForResponseToAuthenticationChallenge() bool - - // optional - ResourceLoaderShouldWaitForLoadingOfRequestedResource(resourceLoader AssetResourceLoader, loadingRequest AssetResourceLoadingRequest) bool - HasResourceLoaderShouldWaitForLoadingOfRequestedResource() bool } // A delegate implementation builder for the [PAssetResourceLoaderDelegate] protocol. type AssetResourceLoaderDelegate struct { - _ResourceLoaderShouldWaitForRenewalOfRequestedResource func(resourceLoader AssetResourceLoader, renewalRequest AssetResourceRenewalRequest) bool - _ResourceLoaderDidCancelLoadingRequest func(resourceLoader AssetResourceLoader, loadingRequest AssetResourceLoadingRequest) - _ResourceLoaderDidCancelAuthenticationChallenge func(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) - _ResourceLoaderShouldWaitForResponseToAuthenticationChallenge func(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) bool - _ResourceLoaderShouldWaitForLoadingOfRequestedResource func(resourceLoader AssetResourceLoader, loadingRequest AssetResourceLoadingRequest) bool -} - -func (di *AssetResourceLoaderDelegate) HasResourceLoaderShouldWaitForRenewalOfRequestedResource() bool { - return di._ResourceLoaderShouldWaitForRenewalOfRequestedResource != nil -} - -// Tells the delegate when assistance is required of the application to renew a resource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1387058-resourceloader?language=objc -func (di *AssetResourceLoaderDelegate) SetResourceLoaderShouldWaitForRenewalOfRequestedResource(f func(resourceLoader AssetResourceLoader, renewalRequest AssetResourceRenewalRequest) bool) { - di._ResourceLoaderShouldWaitForRenewalOfRequestedResource = f -} - -// Tells the delegate when assistance is required of the application to renew a resource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1387058-resourceloader?language=objc -func (di *AssetResourceLoaderDelegate) ResourceLoaderShouldWaitForRenewalOfRequestedResource(resourceLoader AssetResourceLoader, renewalRequest AssetResourceRenewalRequest) bool { - return di._ResourceLoaderShouldWaitForRenewalOfRequestedResource(resourceLoader, renewalRequest) -} -func (di *AssetResourceLoaderDelegate) HasResourceLoaderDidCancelLoadingRequest() bool { - return di._ResourceLoaderDidCancelLoadingRequest != nil + _ResourceLoaderDidCancelAuthenticationChallenge func(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) } -// Informs the delegate that a prior loading request has been cancelled. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1387722-resourceloader?language=objc -func (di *AssetResourceLoaderDelegate) SetResourceLoaderDidCancelLoadingRequest(f func(resourceLoader AssetResourceLoader, loadingRequest AssetResourceLoadingRequest)) { - di._ResourceLoaderDidCancelLoadingRequest = f -} - -// Informs the delegate that a prior loading request has been cancelled. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1387722-resourceloader?language=objc -func (di *AssetResourceLoaderDelegate) ResourceLoaderDidCancelLoadingRequest(resourceLoader AssetResourceLoader, loadingRequest AssetResourceLoadingRequest) { - di._ResourceLoaderDidCancelLoadingRequest(resourceLoader, loadingRequest) -} func (di *AssetResourceLoaderDelegate) HasResourceLoaderDidCancelAuthenticationChallenge() bool { return di._ResourceLoaderDidCancelAuthenticationChallenge != nil } @@ -92,40 +38,6 @@ func (di *AssetResourceLoaderDelegate) SetResourceLoaderDidCancelAuthenticationC func (di *AssetResourceLoaderDelegate) ResourceLoaderDidCancelAuthenticationChallenge(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) { di._ResourceLoaderDidCancelAuthenticationChallenge(resourceLoader, authenticationChallenge) } -func (di *AssetResourceLoaderDelegate) HasResourceLoaderShouldWaitForResponseToAuthenticationChallenge() bool { - return di._ResourceLoaderShouldWaitForResponseToAuthenticationChallenge != nil -} - -// Tells the delegate that assistance is required of the application to respond to an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1388736-resourceloader?language=objc -func (di *AssetResourceLoaderDelegate) SetResourceLoaderShouldWaitForResponseToAuthenticationChallenge(f func(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) bool) { - di._ResourceLoaderShouldWaitForResponseToAuthenticationChallenge = f -} - -// Tells the delegate that assistance is required of the application to respond to an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1388736-resourceloader?language=objc -func (di *AssetResourceLoaderDelegate) ResourceLoaderShouldWaitForResponseToAuthenticationChallenge(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) bool { - return di._ResourceLoaderShouldWaitForResponseToAuthenticationChallenge(resourceLoader, authenticationChallenge) -} -func (di *AssetResourceLoaderDelegate) HasResourceLoaderShouldWaitForLoadingOfRequestedResource() bool { - return di._ResourceLoaderShouldWaitForLoadingOfRequestedResource != nil -} - -// Asks the delegate if it wants to load the requested resource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1388121-resourceloader?language=objc -func (di *AssetResourceLoaderDelegate) SetResourceLoaderShouldWaitForLoadingOfRequestedResource(f func(resourceLoader AssetResourceLoader, loadingRequest AssetResourceLoadingRequest) bool) { - di._ResourceLoaderShouldWaitForLoadingOfRequestedResource = f -} - -// Asks the delegate if it wants to load the requested resource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1388121-resourceloader?language=objc -func (di *AssetResourceLoaderDelegate) ResourceLoaderShouldWaitForLoadingOfRequestedResource(resourceLoader AssetResourceLoader, loadingRequest AssetResourceLoadingRequest) bool { - return di._ResourceLoaderShouldWaitForLoadingOfRequestedResource(resourceLoader, loadingRequest) -} // ensure impl type implements protocol interface var _ PAssetResourceLoaderDelegate = (*AssetResourceLoaderDelegateObject)(nil) @@ -135,29 +47,6 @@ type AssetResourceLoaderDelegateObject struct { objc.Object } -func (a_ AssetResourceLoaderDelegateObject) HasResourceLoaderShouldWaitForRenewalOfRequestedResource() bool { - return a_.RespondsToSelector(objc.Sel("resourceLoader:shouldWaitForRenewalOfRequestedResource:")) -} - -// Tells the delegate when assistance is required of the application to renew a resource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1387058-resourceloader?language=objc -func (a_ AssetResourceLoaderDelegateObject) ResourceLoaderShouldWaitForRenewalOfRequestedResource(resourceLoader AssetResourceLoader, renewalRequest AssetResourceRenewalRequest) bool { - rv := objc.Call[bool](a_, objc.Sel("resourceLoader:shouldWaitForRenewalOfRequestedResource:"), resourceLoader, renewalRequest) - return rv -} - -func (a_ AssetResourceLoaderDelegateObject) HasResourceLoaderDidCancelLoadingRequest() bool { - return a_.RespondsToSelector(objc.Sel("resourceLoader:didCancelLoadingRequest:")) -} - -// Informs the delegate that a prior loading request has been cancelled. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1387722-resourceloader?language=objc -func (a_ AssetResourceLoaderDelegateObject) ResourceLoaderDidCancelLoadingRequest(resourceLoader AssetResourceLoader, loadingRequest AssetResourceLoadingRequest) { - objc.Call[objc.Void](a_, objc.Sel("resourceLoader:didCancelLoadingRequest:"), resourceLoader, loadingRequest) -} - func (a_ AssetResourceLoaderDelegateObject) HasResourceLoaderDidCancelAuthenticationChallenge() bool { return a_.RespondsToSelector(objc.Sel("resourceLoader:didCancelAuthenticationChallenge:")) } @@ -168,27 +57,3 @@ func (a_ AssetResourceLoaderDelegateObject) HasResourceLoaderDidCancelAuthentica func (a_ AssetResourceLoaderDelegateObject) ResourceLoaderDidCancelAuthenticationChallenge(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) { objc.Call[objc.Void](a_, objc.Sel("resourceLoader:didCancelAuthenticationChallenge:"), resourceLoader, authenticationChallenge) } - -func (a_ AssetResourceLoaderDelegateObject) HasResourceLoaderShouldWaitForResponseToAuthenticationChallenge() bool { - return a_.RespondsToSelector(objc.Sel("resourceLoader:shouldWaitForResponseToAuthenticationChallenge:")) -} - -// Tells the delegate that assistance is required of the application to respond to an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1388736-resourceloader?language=objc -func (a_ AssetResourceLoaderDelegateObject) ResourceLoaderShouldWaitForResponseToAuthenticationChallenge(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) bool { - rv := objc.Call[bool](a_, objc.Sel("resourceLoader:shouldWaitForResponseToAuthenticationChallenge:"), resourceLoader, authenticationChallenge) - return rv -} - -func (a_ AssetResourceLoaderDelegateObject) HasResourceLoaderShouldWaitForLoadingOfRequestedResource() bool { - return a_.RespondsToSelector(objc.Sel("resourceLoader:shouldWaitForLoadingOfRequestedResource:")) -} - -// Asks the delegate if it wants to load the requested resource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1388121-resourceloader?language=objc -func (a_ AssetResourceLoaderDelegateObject) ResourceLoaderShouldWaitForLoadingOfRequestedResource(resourceLoader AssetResourceLoader, loadingRequest AssetResourceLoadingRequest) bool { - rv := objc.Call[bool](a_, objc.Sel("resourceLoader:shouldWaitForLoadingOfRequestedResource:"), resourceLoader, loadingRequest) - return rv -} diff --git a/macos/avfoundation/asset_resource_loading_content_information_request.gen.go b/macos/avfoundation/asset_resource_loading_content_information_request.gen.go index 241d49b4..266969d5 100644 --- a/macos/avfoundation/asset_resource_loading_content_information_request.gen.go +++ b/macos/avfoundation/asset_resource_loading_content_information_request.gen.go @@ -19,15 +19,15 @@ type _AssetResourceLoadingContentInformationRequestClass struct { // An interface definition for the [AssetResourceLoadingContentInformationRequest] class. type IAssetResourceLoadingContentInformationRequest interface { objc.IObject - IsByteRangeAccessSupported() bool - SetByteRangeAccessSupported(value bool) - ContentLength() int64 - SetContentLength(value int64) - AllowedContentTypes() []string RenewalDate() foundation.Date SetRenewalDate(value foundation.IDate) + ContentLength() int64 + SetContentLength(value int64) + IsByteRangeAccessSupported() bool + SetByteRangeAccessSupported(value bool) ContentType() string SetContentType(value string) + AllowedContentTypes() []string } // A query for retrieving essential information about a resource that an asset resource-loading request references. [Full Topic] @@ -63,19 +63,19 @@ func (a_ AssetResourceLoadingContentInformationRequest) Init() AssetResourceLoad return rv } -// A Boolean value that indicates whether random access to arbitrary ranges of bytes of the resource is supported. [Full Topic] +// The date at which a new resource loading request will be issued for resources that expire, if the media system still requires it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingcontentinformationrequest/1386054-byterangeaccesssupported?language=objc -func (a_ AssetResourceLoadingContentInformationRequest) IsByteRangeAccessSupported() bool { - rv := objc.Call[bool](a_, objc.Sel("isByteRangeAccessSupported")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingcontentinformationrequest/1390683-renewaldate?language=objc +func (a_ AssetResourceLoadingContentInformationRequest) RenewalDate() foundation.Date { + rv := objc.Call[foundation.Date](a_, objc.Sel("renewalDate")) return rv } -// A Boolean value that indicates whether random access to arbitrary ranges of bytes of the resource is supported. [Full Topic] +// The date at which a new resource loading request will be issued for resources that expire, if the media system still requires it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingcontentinformationrequest/1386054-byterangeaccesssupported?language=objc -func (a_ AssetResourceLoadingContentInformationRequest) SetByteRangeAccessSupported(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setByteRangeAccessSupported:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingcontentinformationrequest/1390683-renewaldate?language=objc +func (a_ AssetResourceLoadingContentInformationRequest) SetRenewalDate(value foundation.IDate) { + objc.Call[objc.Void](a_, objc.Sel("setRenewalDate:"), value) } // The length, in bytes, of the requested resource. [Full Topic] @@ -93,27 +93,19 @@ func (a_ AssetResourceLoadingContentInformationRequest) SetContentLength(value i objc.Call[objc.Void](a_, objc.Sel("setContentLength:"), value) } -// The types of data that are accepted as a valid response for the requested resource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingcontentinformationrequest/2936886-allowedcontenttypes?language=objc -func (a_ AssetResourceLoadingContentInformationRequest) AllowedContentTypes() []string { - rv := objc.Call[[]string](a_, objc.Sel("allowedContentTypes")) - return rv -} - -// The date at which a new resource loading request will be issued for resources that expire, if the media system still requires it. [Full Topic] +// A Boolean value that indicates whether random access to arbitrary ranges of bytes of the resource is supported. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingcontentinformationrequest/1390683-renewaldate?language=objc -func (a_ AssetResourceLoadingContentInformationRequest) RenewalDate() foundation.Date { - rv := objc.Call[foundation.Date](a_, objc.Sel("renewalDate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingcontentinformationrequest/1386054-byterangeaccesssupported?language=objc +func (a_ AssetResourceLoadingContentInformationRequest) IsByteRangeAccessSupported() bool { + rv := objc.Call[bool](a_, objc.Sel("isByteRangeAccessSupported")) return rv } -// The date at which a new resource loading request will be issued for resources that expire, if the media system still requires it. [Full Topic] +// A Boolean value that indicates whether random access to arbitrary ranges of bytes of the resource is supported. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingcontentinformationrequest/1390683-renewaldate?language=objc -func (a_ AssetResourceLoadingContentInformationRequest) SetRenewalDate(value foundation.IDate) { - objc.Call[objc.Void](a_, objc.Sel("setRenewalDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingcontentinformationrequest/1386054-byterangeaccesssupported?language=objc +func (a_ AssetResourceLoadingContentInformationRequest) SetByteRangeAccessSupported(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setByteRangeAccessSupported:"), value) } // The UTI that specifies the type of data contained by the requested resource. [Full Topic] @@ -130,3 +122,11 @@ func (a_ AssetResourceLoadingContentInformationRequest) ContentType() string { func (a_ AssetResourceLoadingContentInformationRequest) SetContentType(value string) { objc.Call[objc.Void](a_, objc.Sel("setContentType:"), value) } + +// The types of data that are accepted as a valid response for the requested resource. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingcontentinformationrequest/2936886-allowedcontenttypes?language=objc +func (a_ AssetResourceLoadingContentInformationRequest) AllowedContentTypes() []string { + rv := objc.Call[[]string](a_, objc.Sel("allowedContentTypes")) + return rv +} diff --git a/macos/avfoundation/asset_resource_loading_data_request.gen.go b/macos/avfoundation/asset_resource_loading_data_request.gen.go index eb936b3b..4d23f52c 100644 --- a/macos/avfoundation/asset_resource_loading_data_request.gen.go +++ b/macos/avfoundation/asset_resource_loading_data_request.gen.go @@ -19,10 +19,10 @@ type _AssetResourceLoadingDataRequestClass struct { type IAssetResourceLoadingDataRequest interface { objc.IObject RespondWithData(data []byte) - CurrentOffset() int64 - RequestedOffset() int64 - RequestsAllDataToEndOfResource() bool RequestedLength() int + RequestsAllDataToEndOfResource() bool + RequestedOffset() int64 + CurrentOffset() int64 } // An object for requesting data from a resource that an asset resource-loading request references. [Full Topic] @@ -65,19 +65,11 @@ func (a_ AssetResourceLoadingDataRequest) RespondWithData(data []byte) { objc.Call[objc.Void](a_, objc.Sel("respondWithData:"), data) } -// The position within the resource of the next byte. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingdatarequest/1385945-currentoffset?language=objc -func (a_ AssetResourceLoadingDataRequest) CurrentOffset() int64 { - rv := objc.Call[int64](a_, objc.Sel("currentOffset")) - return rv -} - -// The position within the resource of the first byte requested. [Full Topic] +// The length, in bytes, of the data requested. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingdatarequest/1388428-requestedoffset?language=objc -func (a_ AssetResourceLoadingDataRequest) RequestedOffset() int64 { - rv := objc.Call[int64](a_, objc.Sel("requestedOffset")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingdatarequest/1387720-requestedlength?language=objc +func (a_ AssetResourceLoadingDataRequest) RequestedLength() int { + rv := objc.Call[int](a_, objc.Sel("requestedLength")) return rv } @@ -89,10 +81,18 @@ func (a_ AssetResourceLoadingDataRequest) RequestsAllDataToEndOfResource() bool return rv } -// The length, in bytes, of the data requested. [Full Topic] +// The position within the resource of the first byte requested. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingdatarequest/1387720-requestedlength?language=objc -func (a_ AssetResourceLoadingDataRequest) RequestedLength() int { - rv := objc.Call[int](a_, objc.Sel("requestedLength")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingdatarequest/1388428-requestedoffset?language=objc +func (a_ AssetResourceLoadingDataRequest) RequestedOffset() int64 { + rv := objc.Call[int64](a_, objc.Sel("requestedOffset")) + return rv +} + +// The position within the resource of the next byte. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingdatarequest/1385945-currentoffset?language=objc +func (a_ AssetResourceLoadingDataRequest) CurrentOffset() int64 { + rv := objc.Call[int64](a_, objc.Sel("currentOffset")) return rv } diff --git a/macos/avfoundation/asset_resource_loading_request.gen.go b/macos/avfoundation/asset_resource_loading_request.gen.go index be01dbb1..b50b159f 100644 --- a/macos/avfoundation/asset_resource_loading_request.gen.go +++ b/macos/avfoundation/asset_resource_loading_request.gen.go @@ -21,16 +21,16 @@ type IAssetResourceLoadingRequest interface { objc.IObject FinishLoading() FinishLoadingWithError(error foundation.IError) - IsFinished() bool - Redirect() foundation.URLRequest - SetRedirect(value foundation.IURLRequest) IsCancelled() bool - DataRequest() AssetResourceLoadingDataRequest + Request() foundation.URLRequest Requestor() AssetResourceLoadingRequestor ContentInformationRequest() AssetResourceLoadingContentInformationRequest - Request() foundation.URLRequest + DataRequest() AssetResourceLoadingDataRequest Response() foundation.URLResponse SetResponse(value foundation.IURLResponse) + IsFinished() bool + Redirect() foundation.URLRequest + SetRedirect(value foundation.IURLRequest) } // An object that encapsulates information about a resource request from a resource loader object. [Full Topic] @@ -80,29 +80,6 @@ func (a_ AssetResourceLoadingRequest) FinishLoadingWithError(error foundation.IE objc.Call[objc.Void](a_, objc.Sel("finishLoadingWithError:"), error) } -// A Boolean value that indicates whether loading of the resource has finished. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1389270-finished?language=objc -func (a_ AssetResourceLoadingRequest) IsFinished() bool { - rv := objc.Call[bool](a_, objc.Sel("isFinished")) - return rv -} - -// An URL request instance if the loading request was redirected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1390854-redirect?language=objc -func (a_ AssetResourceLoadingRequest) Redirect() foundation.URLRequest { - rv := objc.Call[foundation.URLRequest](a_, objc.Sel("redirect")) - return rv -} - -// An URL request instance if the loading request was redirected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1390854-redirect?language=objc -func (a_ AssetResourceLoadingRequest) SetRedirect(value foundation.IURLRequest) { - objc.Call[objc.Void](a_, objc.Sel("setRedirect:"), value) -} - // A Boolean value that indicates whether the request has been cancelled. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1389518-cancelled?language=objc @@ -111,11 +88,11 @@ func (a_ AssetResourceLoadingRequest) IsCancelled() bool { return rv } -// The range of requested resource data. [Full Topic] +// The URL request object for the resource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1388779-datarequest?language=objc -func (a_ AssetResourceLoadingRequest) DataRequest() AssetResourceLoadingDataRequest { - rv := objc.Call[AssetResourceLoadingDataRequest](a_, objc.Sel("dataRequest")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1386220-request?language=objc +func (a_ AssetResourceLoadingRequest) Request() foundation.URLRequest { + rv := objc.Call[foundation.URLRequest](a_, objc.Sel("request")) return rv } @@ -135,11 +112,11 @@ func (a_ AssetResourceLoadingRequest) ContentInformationRequest() AssetResourceL return rv } -// The URL request object for the resource. [Full Topic] +// The range of requested resource data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1386220-request?language=objc -func (a_ AssetResourceLoadingRequest) Request() foundation.URLRequest { - rv := objc.Call[foundation.URLRequest](a_, objc.Sel("request")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1388779-datarequest?language=objc +func (a_ AssetResourceLoadingRequest) DataRequest() AssetResourceLoadingDataRequest { + rv := objc.Call[AssetResourceLoadingDataRequest](a_, objc.Sel("dataRequest")) return rv } @@ -157,3 +134,26 @@ func (a_ AssetResourceLoadingRequest) Response() foundation.URLResponse { func (a_ AssetResourceLoadingRequest) SetResponse(value foundation.IURLResponse) { objc.Call[objc.Void](a_, objc.Sel("setResponse:"), value) } + +// A Boolean value that indicates whether loading of the resource has finished. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1389270-finished?language=objc +func (a_ AssetResourceLoadingRequest) IsFinished() bool { + rv := objc.Call[bool](a_, objc.Sel("isFinished")) + return rv +} + +// An URL request instance if the loading request was redirected. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1390854-redirect?language=objc +func (a_ AssetResourceLoadingRequest) Redirect() foundation.URLRequest { + rv := objc.Call[foundation.URLRequest](a_, objc.Sel("redirect")) + return rv +} + +// An URL request instance if the loading request was redirected. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingrequest/1390854-redirect?language=objc +func (a_ AssetResourceLoadingRequest) SetRedirect(value foundation.IURLRequest) { + objc.Call[objc.Void](a_, objc.Sel("setRedirect:"), value) +} diff --git a/macos/avfoundation/asset_segment_report.gen.go b/macos/avfoundation/asset_segment_report.gen.go index 25524b31..0054b02a 100644 --- a/macos/avfoundation/asset_segment_report.gen.go +++ b/macos/avfoundation/asset_segment_report.gen.go @@ -18,8 +18,8 @@ type _AssetSegmentReportClass struct { // An interface definition for the [AssetSegmentReport] class. type IAssetSegmentReport interface { objc.IObject - TrackReports() []AssetSegmentTrackReport SegmentType() AssetSegmentType + TrackReports() []AssetSegmentTrackReport } // An object that provides information about segment data. [Full Topic] @@ -55,14 +55,6 @@ func (a_ AssetSegmentReport) Init() AssetSegmentReport { return rv } -// The reports for the segment’s track data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmentreport/3546571-trackreports?language=objc -func (a_ AssetSegmentReport) TrackReports() []AssetSegmentTrackReport { - rv := objc.Call[[]AssetSegmentTrackReport](a_, objc.Sel("trackReports")) - return rv -} - // The type of segment data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmentreport/3546570-segmenttype?language=objc @@ -70,3 +62,11 @@ func (a_ AssetSegmentReport) SegmentType() AssetSegmentType { rv := objc.Call[AssetSegmentType](a_, objc.Sel("segmentType")) return rv } + +// The reports for the segment’s track data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmentreport/3546571-trackreports?language=objc +func (a_ AssetSegmentReport) TrackReports() []AssetSegmentTrackReport { + rv := objc.Call[[]AssetSegmentTrackReport](a_, objc.Sel("trackReports")) + return rv +} diff --git a/macos/avfoundation/asset_segment_report_sample_information.gen.go b/macos/avfoundation/asset_segment_report_sample_information.gen.go index fb875a20..19a676fb 100644 --- a/macos/avfoundation/asset_segment_report_sample_information.gen.go +++ b/macos/avfoundation/asset_segment_report_sample_information.gen.go @@ -19,9 +19,9 @@ type _AssetSegmentReportSampleInformationClass struct { // An interface definition for the [AssetSegmentReportSampleInformation] class. type IAssetSegmentReportSampleInformation interface { objc.IObject + Length() int IsSyncSample() bool Offset() int - Length() int PresentationTimeStamp() coremedia.Time } @@ -58,6 +58,14 @@ func (a_ AssetSegmentReportSampleInformation) Init() AssetSegmentReportSampleInf return rv } +// The length of the sample data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmentreportsampleinformation/3546573-length?language=objc +func (a_ AssetSegmentReportSampleInformation) Length() int { + rv := objc.Call[int](a_, objc.Sel("length")) + return rv +} + // A Boolean value that indicates whether the sample is a key frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmentreportsampleinformation/3563932-issyncsample?language=objc @@ -74,14 +82,6 @@ func (a_ AssetSegmentReportSampleInformation) Offset() int { return rv } -// The length of the sample data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmentreportsampleinformation/3546573-length?language=objc -func (a_ AssetSegmentReportSampleInformation) Length() int { - rv := objc.Call[int](a_, objc.Sel("length")) - return rv -} - // The presentation timestamp (PTS) of a sample. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmentreportsampleinformation/3546575-presentationtimestamp?language=objc diff --git a/macos/avfoundation/asset_segment_track_report.gen.go b/macos/avfoundation/asset_segment_track_report.gen.go index 96d617f8..a1cc54fe 100644 --- a/macos/avfoundation/asset_segment_track_report.gen.go +++ b/macos/avfoundation/asset_segment_track_report.gen.go @@ -19,11 +19,11 @@ type _AssetSegmentTrackReportClass struct { // An interface definition for the [AssetSegmentTrackReport] class. type IAssetSegmentTrackReport interface { objc.IObject - Duration() coremedia.Time EarliestPresentationTimeStamp() coremedia.Time TrackID() objc.Object - FirstVideoSampleInformation() AssetSegmentReportSampleInformation MediaType() MediaType + FirstVideoSampleInformation() AssetSegmentReportSampleInformation + Duration() coremedia.Time } // An object that provides information on a track in segment data. [Full Topic] @@ -59,14 +59,6 @@ func (a_ AssetSegmentTrackReport) Init() AssetSegmentTrackReport { return rv } -// The duration of a track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmenttrackreport/3546578-duration?language=objc -func (a_ AssetSegmentTrackReport) Duration() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("duration")) - return rv -} - // The earliest presentation timestamp (PTS) for this track. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmenttrackreport/3600083-earliestpresentationtimestamp?language=objc @@ -83,6 +75,14 @@ func (a_ AssetSegmentTrackReport) TrackID() objc.Object { return rv } +// The type of media a track contains. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmenttrackreport/3546580-mediatype?language=objc +func (a_ AssetSegmentTrackReport) MediaType() MediaType { + rv := objc.Call[MediaType](a_, objc.Sel("mediaType")) + return rv +} + // Information about the first video sample in a track. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmenttrackreport/3546579-firstvideosampleinformation?language=objc @@ -91,10 +91,10 @@ func (a_ AssetSegmentTrackReport) FirstVideoSampleInformation() AssetSegmentRepo return rv } -// The type of media a track contains. [Full Topic] +// The duration of a track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmenttrackreport/3546580-mediatype?language=objc -func (a_ AssetSegmentTrackReport) MediaType() MediaType { - rv := objc.Call[MediaType](a_, objc.Sel("mediaType")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmenttrackreport/3546578-duration?language=objc +func (a_ AssetSegmentTrackReport) Duration() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("duration")) return rv } diff --git a/macos/avfoundation/asset_track.gen.go b/macos/avfoundation/asset_track.gen.go index b0641553..5bed7a3b 100644 --- a/macos/avfoundation/asset_track.gen.go +++ b/macos/avfoundation/asset_track.gen.go @@ -21,41 +21,41 @@ type _AssetTrackClass struct { // An interface definition for the [AssetTrack] class. type IAssetTrack interface { objc.IObject + MakeSampleCursorWithPresentationTimeStamp(presentationTimeStamp coremedia.Time) SampleCursor LoadSamplePresentationTimeForTrackTimeCompletionHandler(trackTime coremedia.Time, completionHandler func(arg0 coremedia.Time, arg1 foundation.Error)) - LoadAssociatedTracksOfTypeCompletionHandler(trackAssociationType TrackAssociationType, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) - MakeSampleCursorAtLastSampleInDecodeOrder() SampleCursor LoadMetadataForFormatCompletionHandler(format MetadataFormat, completionHandler func(arg0 []MetadataItem, arg1 foundation.Error)) + HasMediaCharacteristic(mediaCharacteristic MediaCharacteristic) bool MakeSampleCursorAtFirstSampleInDecodeOrder() SampleCursor + LoadAssociatedTracksOfTypeCompletionHandler(trackAssociationType TrackAssociationType, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) + MakeSampleCursorAtLastSampleInDecodeOrder() SampleCursor LoadSegmentForTrackTimeCompletionHandler(trackTime coremedia.Time, completionHandler func(arg0 AssetTrackSegment, arg1 foundation.Error)) - HasMediaCharacteristic(mediaCharacteristic MediaCharacteristic) bool - MakeSampleCursorWithPresentationTimeStamp(presentationTimeStamp coremedia.Time) SampleCursor - IsDecodable() bool - CommonMetadata() []MetadataItem - EstimatedDataRate() float32 - LanguageCode() string + ExtendedLanguageTag() string + FormatDescriptions() []objc.Object + TrackID() objc.Object + PreferredVolume() float32 HasAudioSampleDependencies() bool - Asset() Asset Metadata() []MetadataItem + MediaType() MediaType + RequiresFrameReordering() bool TotalSampleDataLength() int64 Segments() []AssetTrackSegment - TrackID() objc.Object - AvailableMetadataFormats() []MetadataFormat + IsDecodable() bool MinFrameDuration() coremedia.Time - PreferredVolume() float32 - RequiresFrameReordering() bool - IsPlayable() bool - FormatDescriptions() []objc.Object - PreferredTransform() coregraphics.AffineTransform - NominalFrameRate() float32 + NaturalSize() coregraphics.Size + AvailableMetadataFormats() []MetadataFormat + EstimatedDataRate() float32 TimeRange() coremedia.TimeRange + NominalFrameRate() float32 CanProvideSampleCursors() bool - NaturalSize() coregraphics.Size - ExtendedLanguageTag() string - AvailableTrackAssociationTypes() []TrackAssociationType - NaturalTimeScale() coremedia.TimeScale IsSelfContained() bool + LanguageCode() string IsEnabled() bool - MediaType() MediaType + NaturalTimeScale() coremedia.TimeScale + AvailableTrackAssociationTypes() []TrackAssociationType + Asset() Asset + PreferredTransform() coregraphics.AffineTransform + IsPlayable() bool + CommonMetadata() []MetadataItem } // An object that models a track of media that an asset contains. [Full Topic] @@ -91,6 +91,14 @@ func (a_ AssetTrack) Init() AssetTrack { return rv } +// Creates a sample cursor and positions it at or near the specified presentation timestamp. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1390248-makesamplecursorwithpresentation?language=objc +func (a_ AssetTrack) MakeSampleCursorWithPresentationTimeStamp(presentationTimeStamp coremedia.Time) SampleCursor { + rv := objc.Call[SampleCursor](a_, objc.Sel("makeSampleCursorWithPresentationTimeStamp:"), presentationTimeStamp) + return rv +} + // Loads a sample presentation time that maps to the specified track time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/3746540-loadsamplepresentationtimefortra?language=objc @@ -98,21 +106,6 @@ func (a_ AssetTrack) LoadSamplePresentationTimeForTrackTimeCompletionHandler(tra objc.Call[objc.Void](a_, objc.Sel("loadSamplePresentationTimeForTrackTime:completionHandler:"), trackTime, completionHandler) } -// Loads associated tracks that have the specified association type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/3746538-loadassociatedtracksoftype?language=objc -func (a_ AssetTrack) LoadAssociatedTracksOfTypeCompletionHandler(trackAssociationType TrackAssociationType, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("loadAssociatedTracksOfType:completionHandler:"), trackAssociationType, completionHandler) -} - -// Creates a sample cursor and positions it at the track’s last media sample in decode order. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1386014-makesamplecursoratlastsampleinde?language=objc -func (a_ AssetTrack) MakeSampleCursorAtLastSampleInDecodeOrder() SampleCursor { - rv := objc.Call[SampleCursor](a_, objc.Sel("makeSampleCursorAtLastSampleInDecodeOrder")) - return rv -} - // Loads metadata items that a track contains for the specified format. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/3746539-loadmetadataforformat?language=objc @@ -120,6 +113,14 @@ func (a_ AssetTrack) LoadMetadataForFormatCompletionHandler(format MetadataForma objc.Call[objc.Void](a_, objc.Sel("loadMetadataForFormat:completionHandler:"), format, completionHandler) } +// Returns a Boolean value that indicates whether the track references media with the specified media characteristic. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1385847-hasmediacharacteristic?language=objc +func (a_ AssetTrack) HasMediaCharacteristic(mediaCharacteristic MediaCharacteristic) bool { + rv := objc.Call[bool](a_, objc.Sel("hasMediaCharacteristic:"), mediaCharacteristic) + return rv +} + // Creates a sample cursor and positions it at the track’s first media sample in decode order. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1387226-makesamplecursoratfirstsampleind?language=objc @@ -128,58 +129,57 @@ func (a_ AssetTrack) MakeSampleCursorAtFirstSampleInDecodeOrder() SampleCursor { return rv } -// Loads a segment with a target time range that contains, or is closest to, the specified track time. [Full Topic] +// Loads associated tracks that have the specified association type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/3746541-loadsegmentfortracktime?language=objc -func (a_ AssetTrack) LoadSegmentForTrackTimeCompletionHandler(trackTime coremedia.Time, completionHandler func(arg0 AssetTrackSegment, arg1 foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("loadSegmentForTrackTime:completionHandler:"), trackTime, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/3746538-loadassociatedtracksoftype?language=objc +func (a_ AssetTrack) LoadAssociatedTracksOfTypeCompletionHandler(trackAssociationType TrackAssociationType, completionHandler func(arg0 []AssetTrack, arg1 foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("loadAssociatedTracksOfType:completionHandler:"), trackAssociationType, completionHandler) } -// Returns a Boolean value that indicates whether the track references media with the specified media characteristic. [Full Topic] +// Creates a sample cursor and positions it at the track’s last media sample in decode order. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1385847-hasmediacharacteristic?language=objc -func (a_ AssetTrack) HasMediaCharacteristic(mediaCharacteristic MediaCharacteristic) bool { - rv := objc.Call[bool](a_, objc.Sel("hasMediaCharacteristic:"), mediaCharacteristic) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1386014-makesamplecursoratlastsampleinde?language=objc +func (a_ AssetTrack) MakeSampleCursorAtLastSampleInDecodeOrder() SampleCursor { + rv := objc.Call[SampleCursor](a_, objc.Sel("makeSampleCursorAtLastSampleInDecodeOrder")) return rv } -// Creates a sample cursor and positions it at or near the specified presentation timestamp. [Full Topic] +// Loads a segment with a target time range that contains, or is closest to, the specified track time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1390248-makesamplecursorwithpresentation?language=objc -func (a_ AssetTrack) MakeSampleCursorWithPresentationTimeStamp(presentationTimeStamp coremedia.Time) SampleCursor { - rv := objc.Call[SampleCursor](a_, objc.Sel("makeSampleCursorWithPresentationTimeStamp:"), presentationTimeStamp) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/3746541-loadsegmentfortracktime?language=objc +func (a_ AssetTrack) LoadSegmentForTrackTimeCompletionHandler(trackTime coremedia.Time, completionHandler func(arg0 AssetTrackSegment, arg1 foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("loadSegmentForTrackTime:completionHandler:"), trackTime, completionHandler) } -// A Boolean value that indicates whether the track is decodable in the current environment. [Full Topic] +// The language tag of the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/2887366-decodable?language=objc -func (a_ AssetTrack) IsDecodable() bool { - rv := objc.Call[bool](a_, objc.Sel("isDecodable")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1389105-extendedlanguagetag?language=objc +func (a_ AssetTrack) ExtendedLanguageTag() string { + rv := objc.Call[string](a_, objc.Sel("extendedLanguageTag")) return rv } -// An array of metadata items for all common metadata keys that have a value. [Full Topic] +// The format descriptions of the media samples that a track references. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1390832-commonmetadata?language=objc -func (a_ AssetTrack) CommonMetadata() []MetadataItem { - rv := objc.Call[[]MetadataItem](a_, objc.Sel("commonMetadata")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1386694-formatdescriptions?language=objc +func (a_ AssetTrack) FormatDescriptions() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("formatDescriptions")) return rv } -// The estimated data rate, in bits per second, of the media that the track references. [Full Topic] +// The persistent unique identifier for this track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1389758-estimateddatarate?language=objc -func (a_ AssetTrack) EstimatedDataRate() float32 { - rv := objc.Call[float32](a_, objc.Sel("estimatedDataRate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1385799-trackid?language=objc +func (a_ AssetTrack) TrackID() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("trackID")) return rv } -// The language code of the track. [Full Topic] +// The track’s volume preference for playing its audible media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388627-languagecode?language=objc -func (a_ AssetTrack) LanguageCode() string { - rv := objc.Call[string](a_, objc.Sel("languageCode")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388832-preferredvolume?language=objc +func (a_ AssetTrack) PreferredVolume() float32 { + rv := objc.Call[float32](a_, objc.Sel("preferredVolume")) return rv } @@ -191,14 +191,6 @@ func (a_ AssetTrack) HasAudioSampleDependencies() bool { return rv } -// The asset object that contains this track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1385611-asset?language=objc -func (a_ AssetTrack) Asset() Asset { - rv := objc.Call[Asset](a_, objc.Sel("asset")) - return rv -} - // An array of metadata items for all metadata identifiers that have a value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1389054-metadata?language=objc @@ -207,6 +199,22 @@ func (a_ AssetTrack) Metadata() []MetadataItem { return rv } +// The type of media that a track presents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1385741-mediatype?language=objc +func (a_ AssetTrack) MediaType() MediaType { + rv := objc.Call[MediaType](a_, objc.Sel("mediaType")) + return rv +} + +// A Boolean value that indicates whether samples in the track may have different presentation and decode timestamps. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1390844-requiresframereordering?language=objc +func (a_ AssetTrack) RequiresFrameReordering() bool { + rv := objc.Call[bool](a_, objc.Sel("requiresFrameReordering")) + return rv +} + // The total number of bytes of sample data the track requires. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388900-totalsampledatalength?language=objc @@ -223,19 +231,11 @@ func (a_ AssetTrack) Segments() []AssetTrackSegment { return rv } -// The persistent unique identifier for this track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1385799-trackid?language=objc -func (a_ AssetTrack) TrackID() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("trackID")) - return rv -} - -// An array of metadata formats available for the track. [Full Topic] +// A Boolean value that indicates whether the track is decodable in the current environment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1385751-availablemetadataformats?language=objc -func (a_ AssetTrack) AvailableMetadataFormats() []MetadataFormat { - rv := objc.Call[[]MetadataFormat](a_, objc.Sel("availableMetadataFormats")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/2887366-decodable?language=objc +func (a_ AssetTrack) IsDecodable() bool { + rv := objc.Call[bool](a_, objc.Sel("isDecodable")) return rv } @@ -247,43 +247,35 @@ func (a_ AssetTrack) MinFrameDuration() coremedia.Time { return rv } -// The track’s volume preference for playing its audible media. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388832-preferredvolume?language=objc -func (a_ AssetTrack) PreferredVolume() float32 { - rv := objc.Call[float32](a_, objc.Sel("preferredVolume")) - return rv -} - -// A Boolean value that indicates whether samples in the track may have different presentation and decode timestamps. [Full Topic] +// The natural dimensions of the media data that the track references. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1390844-requiresframereordering?language=objc -func (a_ AssetTrack) RequiresFrameReordering() bool { - rv := objc.Call[bool](a_, objc.Sel("requiresFrameReordering")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1387724-naturalsize?language=objc +func (a_ AssetTrack) NaturalSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](a_, objc.Sel("naturalSize")) return rv } -// A Boolean value that indicates whether the track is playable in the current environment. [Full Topic] +// An array of metadata formats available for the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388276-playable?language=objc -func (a_ AssetTrack) IsPlayable() bool { - rv := objc.Call[bool](a_, objc.Sel("isPlayable")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1385751-availablemetadataformats?language=objc +func (a_ AssetTrack) AvailableMetadataFormats() []MetadataFormat { + rv := objc.Call[[]MetadataFormat](a_, objc.Sel("availableMetadataFormats")) return rv } -// The format descriptions of the media samples that a track references. [Full Topic] +// The estimated data rate, in bits per second, of the media that the track references. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1386694-formatdescriptions?language=objc -func (a_ AssetTrack) FormatDescriptions() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("formatDescriptions")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1389758-estimateddatarate?language=objc +func (a_ AssetTrack) EstimatedDataRate() float32 { + rv := objc.Call[float32](a_, objc.Sel("estimatedDataRate")) return rv } -// The track’s transform preference to apply to its visual content during presentation or processing. [Full Topic] +// The time range of the track within the overall timeline of the asset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1389837-preferredtransform?language=objc -func (a_ AssetTrack) PreferredTransform() coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("preferredTransform")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388335-timerange?language=objc +func (a_ AssetTrack) TimeRange() coremedia.TimeRange { + rv := objc.Call[coremedia.TimeRange](a_, objc.Sel("timeRange")) return rv } @@ -295,14 +287,6 @@ func (a_ AssetTrack) NominalFrameRate() float32 { return rv } -// The time range of the track within the overall timeline of the asset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388335-timerange?language=objc -func (a_ AssetTrack) TimeRange() coremedia.TimeRange { - rv := objc.Call[coremedia.TimeRange](a_, objc.Sel("timeRange")) - return rv -} - // A Boolean value that indicates whether the track can provide instances of sample cursors to traverse its media samples and discover information. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1386692-canprovidesamplecursors?language=objc @@ -311,27 +295,27 @@ func (a_ AssetTrack) CanProvideSampleCursors() bool { return rv } -// The natural dimensions of the media data that the track references. [Full Topic] +// A Boolean value that indicates whether this track references sample data only within its container file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1387724-naturalsize?language=objc -func (a_ AssetTrack) NaturalSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](a_, objc.Sel("naturalSize")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1387643-selfcontained?language=objc +func (a_ AssetTrack) IsSelfContained() bool { + rv := objc.Call[bool](a_, objc.Sel("isSelfContained")) return rv } -// The language tag of the track. [Full Topic] +// The language code of the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1389105-extendedlanguagetag?language=objc -func (a_ AssetTrack) ExtendedLanguageTag() string { - rv := objc.Call[string](a_, objc.Sel("extendedLanguageTag")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388627-languagecode?language=objc +func (a_ AssetTrack) LanguageCode() string { + rv := objc.Call[string](a_, objc.Sel("languageCode")) return rv } -// An array of association types that the track uses to associate with other tracks. [Full Topic] +// A Boolean value that indicates whether the track’s container enables it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388065-availabletrackassociationtypes?language=objc -func (a_ AssetTrack) AvailableTrackAssociationTypes() []TrackAssociationType { - rv := objc.Call[[]TrackAssociationType](a_, objc.Sel("availableTrackAssociationTypes")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1387546-enabled?language=objc +func (a_ AssetTrack) IsEnabled() bool { + rv := objc.Call[bool](a_, objc.Sel("isEnabled")) return rv } @@ -343,26 +327,42 @@ func (a_ AssetTrack) NaturalTimeScale() coremedia.TimeScale { return rv } -// A Boolean value that indicates whether this track references sample data only within its container file. [Full Topic] +// An array of association types that the track uses to associate with other tracks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1387643-selfcontained?language=objc -func (a_ AssetTrack) IsSelfContained() bool { - rv := objc.Call[bool](a_, objc.Sel("isSelfContained")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388065-availabletrackassociationtypes?language=objc +func (a_ AssetTrack) AvailableTrackAssociationTypes() []TrackAssociationType { + rv := objc.Call[[]TrackAssociationType](a_, objc.Sel("availableTrackAssociationTypes")) return rv } -// A Boolean value that indicates whether the track’s container enables it. [Full Topic] +// The asset object that contains this track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1387546-enabled?language=objc -func (a_ AssetTrack) IsEnabled() bool { - rv := objc.Call[bool](a_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1385611-asset?language=objc +func (a_ AssetTrack) Asset() Asset { + rv := objc.Call[Asset](a_, objc.Sel("asset")) return rv } -// The type of media that a track presents. [Full Topic] +// The track’s transform preference to apply to its visual content during presentation or processing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1385741-mediatype?language=objc -func (a_ AssetTrack) MediaType() MediaType { - rv := objc.Call[MediaType](a_, objc.Sel("mediaType")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1389837-preferredtransform?language=objc +func (a_ AssetTrack) PreferredTransform() coregraphics.AffineTransform { + rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("preferredTransform")) + return rv +} + +// A Boolean value that indicates whether the track is playable in the current environment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388276-playable?language=objc +func (a_ AssetTrack) IsPlayable() bool { + rv := objc.Call[bool](a_, objc.Sel("isPlayable")) + return rv +} + +// An array of metadata items for all common metadata keys that have a value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1390832-commonmetadata?language=objc +func (a_ AssetTrack) CommonMetadata() []MetadataItem { + rv := objc.Call[[]MetadataItem](a_, objc.Sel("commonMetadata")) return rv } diff --git a/macos/avfoundation/asset_variant.gen.go b/macos/avfoundation/asset_variant.gen.go index 4ef12ed0..fff98934 100644 --- a/macos/avfoundation/asset_variant.gen.go +++ b/macos/avfoundation/asset_variant.gen.go @@ -18,10 +18,10 @@ type _AssetVariantClass struct { // An interface definition for the [AssetVariant] class. type IAssetVariant interface { objc.IObject - VideoAttributes() AssetVariantVideoAttributes PeakBitRate() float64 AudioAttributes() AssetVariantAudioAttributes AverageBitRate() float64 + VideoAttributes() AssetVariantVideoAttributes } // An object that represents a bit rate variant. [Full Topic] @@ -57,14 +57,6 @@ func (a_ AssetVariant) Init() AssetVariant { return rv } -// The audio rendition attributes for the variant. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariant/3746546-videoattributes?language=objc -func (a_ AssetVariant) VideoAttributes() AssetVariantVideoAttributes { - rv := objc.Call[AssetVariantVideoAttributes](a_, objc.Sel("videoAttributes")) - return rv -} - // The peak bit rate for the variant. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariant/3746545-peakbitrate?language=objc @@ -88,3 +80,11 @@ func (a_ AssetVariant) AverageBitRate() float64 { rv := objc.Call[float64](a_, objc.Sel("averageBitRate")) return rv } + +// The audio rendition attributes for the variant. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariant/3746546-videoattributes?language=objc +func (a_ AssetVariant) VideoAttributes() AssetVariantVideoAttributes { + rv := objc.Call[AssetVariantVideoAttributes](a_, objc.Sel("videoAttributes")) + return rv +} diff --git a/macos/avfoundation/asset_variant_qualifier.gen.go b/macos/avfoundation/asset_variant_qualifier.gen.go index 58056de1..0e43a149 100644 --- a/macos/avfoundation/asset_variant_qualifier.gen.go +++ b/macos/avfoundation/asset_variant_qualifier.gen.go @@ -34,18 +34,6 @@ func AssetVariantQualifierFrom(ptr unsafe.Pointer) AssetVariantQualifier { } } -func (ac _AssetVariantQualifierClass) AssetVariantQualifierWithPredicate(predicate foundation.IPredicate) AssetVariantQualifier { - rv := objc.Call[AssetVariantQualifier](ac, objc.Sel("assetVariantQualifierWithPredicate:"), predicate) - return rv -} - -// Creates a variant qualifier with a predicate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3750227-assetvariantqualifierwithpredica?language=objc -func AssetVariantQualifier_AssetVariantQualifierWithPredicate(predicate foundation.IPredicate) AssetVariantQualifier { - return AssetVariantQualifierClass.AssetVariantQualifierWithPredicate(predicate) -} - func (ac _AssetVariantQualifierClass) AssetVariantQualifierWithVariant(variant IAssetVariant) AssetVariantQualifier { rv := objc.Call[AssetVariantQualifier](ac, objc.Sel("assetVariantQualifierWithVariant:"), variant) return rv @@ -58,6 +46,18 @@ func AssetVariantQualifier_AssetVariantQualifierWithVariant(variant IAssetVarian return AssetVariantQualifierClass.AssetVariantQualifierWithVariant(variant) } +func (ac _AssetVariantQualifierClass) AssetVariantQualifierWithPredicate(predicate foundation.IPredicate) AssetVariantQualifier { + rv := objc.Call[AssetVariantQualifier](ac, objc.Sel("assetVariantQualifierWithPredicate:"), predicate) + return rv +} + +// Creates a variant qualifier with a predicate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3750227-assetvariantqualifierwithpredica?language=objc +func AssetVariantQualifier_AssetVariantQualifierWithPredicate(predicate foundation.IPredicate) AssetVariantQualifier { + return AssetVariantQualifierClass.AssetVariantQualifierWithPredicate(predicate) +} + func (ac _AssetVariantQualifierClass) Alloc() AssetVariantQualifier { rv := objc.Call[AssetVariantQualifier](ac, objc.Sel("alloc")) return rv @@ -78,21 +78,6 @@ func (a_ AssetVariantQualifier) Init() AssetVariantQualifier { return rv } -// Creates a predicate with a channel count, media selection option, and operator type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3750230-predicateforchannelcount?language=objc -func (ac _AssetVariantQualifierClass) PredicateForChannelCountMediaSelectionOptionOperatorType(channelCount int, mediaSelectionOption IMediaSelectionOption, operatorType foundation.PredicateOperatorType) foundation.Predicate { - rv := objc.Call[foundation.Predicate](ac, objc.Sel("predicateForChannelCount:mediaSelectionOption:operatorType:"), channelCount, mediaSelectionOption, operatorType) - return rv -} - -// Creates a predicate with a channel count, media selection option, and operator type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3750230-predicateforchannelcount?language=objc -func AssetVariantQualifier_PredicateForChannelCountMediaSelectionOptionOperatorType(channelCount int, mediaSelectionOption IMediaSelectionOption, operatorType foundation.PredicateOperatorType) foundation.Predicate { - return AssetVariantQualifierClass.PredicateForChannelCountMediaSelectionOptionOperatorType(channelCount, mediaSelectionOption, operatorType) -} - // Creates a predicate with a width and operator type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3857562-predicateforpresentationwidth?language=objc @@ -108,6 +93,21 @@ func AssetVariantQualifier_PredicateForPresentationWidthOperatorType(width float return AssetVariantQualifierClass.PredicateForPresentationWidthOperatorType(width, operatorType) } +// Creates a predicate with a channel count, media selection option, and operator type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3750230-predicateforchannelcount?language=objc +func (ac _AssetVariantQualifierClass) PredicateForChannelCountMediaSelectionOptionOperatorType(channelCount int, mediaSelectionOption IMediaSelectionOption, operatorType foundation.PredicateOperatorType) foundation.Predicate { + rv := objc.Call[foundation.Predicate](ac, objc.Sel("predicateForChannelCount:mediaSelectionOption:operatorType:"), channelCount, mediaSelectionOption, operatorType) + return rv +} + +// Creates a predicate with a channel count, media selection option, and operator type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3750230-predicateforchannelcount?language=objc +func AssetVariantQualifier_PredicateForChannelCountMediaSelectionOptionOperatorType(channelCount int, mediaSelectionOption IMediaSelectionOption, operatorType foundation.PredicateOperatorType) foundation.Predicate { + return AssetVariantQualifierClass.PredicateForChannelCountMediaSelectionOptionOperatorType(channelCount, mediaSelectionOption, operatorType) +} + // Creates a predicate with a height and operator type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3857561-predicateforpresentationheight?language=objc diff --git a/macos/avfoundation/asset_variant_video_attributes.gen.go b/macos/avfoundation/asset_variant_video_attributes.gen.go index 70b3cc92..b7235302 100644 --- a/macos/avfoundation/asset_variant_video_attributes.gen.go +++ b/macos/avfoundation/asset_variant_video_attributes.gen.go @@ -20,10 +20,10 @@ type _AssetVariantVideoAttributesClass struct { // An interface definition for the [AssetVariantVideoAttributes] class. type IAssetVariantVideoAttributes interface { objc.IObject - PresentationSize() coregraphics.Size - NominalFrameRate() float64 VideoRange() VideoRange CodecTypes() []foundation.Number + PresentationSize() coregraphics.Size + NominalFrameRate() float64 } // An object that defines the video attributes for an asset variant. [Full Topic] @@ -59,22 +59,6 @@ func (a_ AssetVariantVideoAttributes) Init() AssetVariantVideoAttributes { return rv } -// The presentation size of the variant’s renditions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantvideoattributes/3746555-presentationsize?language=objc -func (a_ AssetVariantVideoAttributes) PresentationSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](a_, objc.Sel("presentationSize")) - return rv -} - -// The nominal frame rate of the variant’s renditions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantvideoattributes/3746554-nominalframerate?language=objc -func (a_ AssetVariantVideoAttributes) NominalFrameRate() float64 { - rv := objc.Call[float64](a_, objc.Sel("nominalFrameRate")) - return rv -} - // The video range of the variant. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantvideoattributes/3746556-videorange?language=objc @@ -90,3 +74,19 @@ func (a_ AssetVariantVideoAttributes) CodecTypes() []foundation.Number { rv := objc.Call[[]foundation.Number](a_, objc.Sel("codecTypes")) return rv } + +// The presentation size of the variant’s renditions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantvideoattributes/3746555-presentationsize?language=objc +func (a_ AssetVariantVideoAttributes) PresentationSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](a_, objc.Sel("presentationSize")) + return rv +} + +// The nominal frame rate of the variant’s renditions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantvideoattributes/3746554-nominalframerate?language=objc +func (a_ AssetVariantVideoAttributes) NominalFrameRate() float64 { + rv := objc.Call[float64](a_, objc.Sel("nominalFrameRate")) + return rv +} diff --git a/macos/avfoundation/asset_writer.gen.go b/macos/avfoundation/asset_writer.gen.go index a132e0f0..aeceed38 100644 --- a/macos/avfoundation/asset_writer.gen.go +++ b/macos/avfoundation/asset_writer.gen.go @@ -21,49 +21,49 @@ type _AssetWriterClass struct { // An interface definition for the [AssetWriter] class. type IAssetWriter interface { objc.IObject - CanAddInput(input IAssetWriterInput) bool - CancelWriting() - AddInputGroup(inputGroup IAssetWriterInputGroup) AddInput(input IAssetWriterInput) - StartWriting() bool - FinishWritingWithCompletionHandler(handler func()) - CanApplyOutputSettingsForMediaType(outputSettings map[string]objc.IObject, mediaType MediaType) bool - FlushSegment() + CanAddInput(input IAssetWriterInput) bool StartSessionAtSourceTime(startTime coremedia.Time) + AddInputGroup(inputGroup IAssetWriterInputGroup) CanAddInputGroup(inputGroup IAssetWriterInputGroup) bool + FlushSegment() + CancelWriting() + CanApplyOutputSettingsForMediaType(outputSettings map[string]objc.IObject, mediaType MediaType) bool EndSessionAtSourceTime(endTime coremedia.Time) - OutputURL() foundation.URL - MovieTimeScale() coremedia.TimeScale - SetMovieTimeScale(value coremedia.TimeScale) - Inputs() []AssetWriterInput + StartWriting() bool + FinishWritingWithCompletionHandler(handler func()) + Error() foundation.Error + InitialMovieFragmentSequenceNumber() int + SetInitialMovieFragmentSequenceNumber(value int) OutputFileTypeProfile() FileTypeProfile SetOutputFileTypeProfile(value FileTypeProfile) MovieFragmentInterval() coremedia.Time SetMovieFragmentInterval(value coremedia.Time) - InitialSegmentStartTime() coremedia.Time - SetInitialSegmentStartTime(value coremedia.Time) + InputGroups() []AssetWriterInputGroup Metadata() []MetadataItem SetMetadata(value []IMetadataItem) - PreferredOutputSegmentInterval() coremedia.Time - SetPreferredOutputSegmentInterval(value coremedia.Time) - OutputFileType() FileType - AvailableMediaTypes() []MediaType - ProducesCombinableFragments() bool - SetProducesCombinableFragments(value bool) - Error() foundation.Error - InputGroups() []AssetWriterInputGroup - Status() AssetWriterStatus Delegate() AssetWriterDelegateObject SetDelegate(value PAssetWriterDelegate) SetDelegateObject(valueObject objc.IObject) - InitialMovieFragmentSequenceNumber() int - SetInitialMovieFragmentSequenceNumber(value int) + InitialSegmentStartTime() coremedia.Time + SetInitialSegmentStartTime(value coremedia.Time) + OutputFileType() FileType + Inputs() []AssetWriterInput + PreferredOutputSegmentInterval() coremedia.Time + SetPreferredOutputSegmentInterval(value coremedia.Time) ShouldOptimizeForNetworkUse() bool SetShouldOptimizeForNetworkUse(value bool) - OverallDurationHint() coremedia.Time - SetOverallDurationHint(value coremedia.Time) + AvailableMediaTypes() []MediaType DirectoryForTemporaryFiles() foundation.URL SetDirectoryForTemporaryFiles(value foundation.IURL) + OverallDurationHint() coremedia.Time + SetOverallDurationHint(value coremedia.Time) + ProducesCombinableFragments() bool + SetProducesCombinableFragments(value bool) + Status() AssetWriterStatus + OutputURL() foundation.URL + MovieTimeScale() coremedia.TimeScale + SetMovieTimeScale(value coremedia.TimeScale) } // An object that writes media data to a container file. [Full Topic] @@ -93,18 +93,6 @@ func NewAssetWriterWithURLFileTypeError(outputURL foundation.IURL, outputFileTyp return instance } -func (ac _AssetWriterClass) AssetWriterWithURLFileTypeError(outputURL foundation.IURL, outputFileType FileType, outError unsafe.Pointer) AssetWriter { - rv := objc.Call[AssetWriter](ac, objc.Sel("assetWriterWithURL:fileType:error:"), outputURL, outputFileType, outError) - return rv -} - -// Returns a new object that writes media data to a container file at the output URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1426663-assetwriterwithurl?language=objc -func AssetWriter_AssetWriterWithURLFileTypeError(outputURL foundation.IURL, outputFileType FileType, outError unsafe.Pointer) AssetWriter { - return AssetWriterClass.AssetWriterWithURLFileTypeError(outputURL, outputFileType, outError) -} - func (a_ AssetWriter) InitWithContentType(outputContentType uti.IType) AssetWriter { rv := objc.Call[AssetWriter](a_, objc.Sel("initWithContentType:"), outputContentType) return rv @@ -119,6 +107,18 @@ func NewAssetWriterWithContentType(outputContentType uti.IType) AssetWriter { return instance } +func (ac _AssetWriterClass) AssetWriterWithURLFileTypeError(outputURL foundation.IURL, outputFileType FileType, outError unsafe.Pointer) AssetWriter { + rv := objc.Call[AssetWriter](ac, objc.Sel("assetWriterWithURL:fileType:error:"), outputURL, outputFileType, outError) + return rv +} + +// Returns a new object that writes media data to a container file at the output URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1426663-assetwriterwithurl?language=objc +func AssetWriter_AssetWriterWithURLFileTypeError(outputURL foundation.IURL, outputFileType FileType, outError unsafe.Pointer) AssetWriter { + return AssetWriterClass.AssetWriterWithURLFileTypeError(outputURL, outputFileType, outError) +} + func (ac _AssetWriterClass) Alloc() AssetWriter { rv := objc.Call[AssetWriter](ac, objc.Sel("alloc")) return rv @@ -139,6 +139,13 @@ func (a_ AssetWriter) Init() AssetWriter { return rv } +// Adds an input to an asset writer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1390389-addinput?language=objc +func (a_ AssetWriter) AddInput(input IAssetWriterInput) { + objc.Call[objc.Void](a_, objc.Sel("addInput:"), input) +} + // Determines whether the asset writer supports adding the input. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1387863-canaddinput?language=objc @@ -147,11 +154,11 @@ func (a_ AssetWriter) CanAddInput(input IAssetWriterInput) bool { return rv } -// Cancels the creation of the output file. [Full Topic] +// Starts an asset-writing session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1387234-cancelwriting?language=objc -func (a_ AssetWriter) CancelWriting() { - objc.Call[objc.Void](a_, objc.Sel("cancelWriting")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1389908-startsessionatsourcetime?language=objc +func (a_ AssetWriter) StartSessionAtSourceTime(startTime coremedia.Time) { + objc.Call[objc.Void](a_, objc.Sel("startSessionAtSourceTime:"), startTime) } // Adds an input group to an asset writer. [Full Topic] @@ -161,33 +168,11 @@ func (a_ AssetWriter) AddInputGroup(inputGroup IAssetWriterInputGroup) { objc.Call[objc.Void](a_, objc.Sel("addInputGroup:"), inputGroup) } -// Adds an input to an asset writer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1390389-addinput?language=objc -func (a_ AssetWriter) AddInput(input IAssetWriterInput) { - objc.Call[objc.Void](a_, objc.Sel("addInput:"), input) -} - -// Tells the writer to start writing its output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1386724-startwriting?language=objc -func (a_ AssetWriter) StartWriting() bool { - rv := objc.Call[bool](a_, objc.Sel("startWriting")) - return rv -} - -// Marks all unfinished inputs as finished and completes the writing of the output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1390432-finishwritingwithcompletionhandl?language=objc -func (a_ AssetWriter) FinishWritingWithCompletionHandler(handler func()) { - objc.Call[objc.Void](a_, objc.Sel("finishWritingWithCompletionHandler:"), handler) -} - -// Determines whether the output file format supports the output settings for a specific media type. [Full Topic] +// Determines whether the asset writer supports adding the input group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388842-canapplyoutputsettings?language=objc -func (a_ AssetWriter) CanApplyOutputSettingsForMediaType(outputSettings map[string]objc.IObject, mediaType MediaType) bool { - rv := objc.Call[bool](a_, objc.Sel("canApplyOutputSettings:forMediaType:"), outputSettings, mediaType) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1386698-canaddinputgroup?language=objc +func (a_ AssetWriter) CanAddInputGroup(inputGroup IAssetWriterInputGroup) bool { + rv := objc.Call[bool](a_, objc.Sel("canAddInputGroup:"), inputGroup) return rv } @@ -198,18 +183,18 @@ func (a_ AssetWriter) FlushSegment() { objc.Call[objc.Void](a_, objc.Sel("flushSegment")) } -// Starts an asset-writing session. [Full Topic] +// Cancels the creation of the output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1389908-startsessionatsourcetime?language=objc -func (a_ AssetWriter) StartSessionAtSourceTime(startTime coremedia.Time) { - objc.Call[objc.Void](a_, objc.Sel("startSessionAtSourceTime:"), startTime) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1387234-cancelwriting?language=objc +func (a_ AssetWriter) CancelWriting() { + objc.Call[objc.Void](a_, objc.Sel("cancelWriting")) } -// Determines whether the asset writer supports adding the input group. [Full Topic] +// Determines whether the output file format supports the output settings for a specific media type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1386698-canaddinputgroup?language=objc -func (a_ AssetWriter) CanAddInputGroup(inputGroup IAssetWriterInputGroup) bool { - rv := objc.Call[bool](a_, objc.Sel("canAddInputGroup:"), inputGroup) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388842-canapplyoutputsettings?language=objc +func (a_ AssetWriter) CanApplyOutputSettingsForMediaType(outputSettings map[string]objc.IObject, mediaType MediaType) bool { + rv := objc.Call[bool](a_, objc.Sel("canApplyOutputSettings:forMediaType:"), outputSettings, mediaType) return rv } @@ -220,37 +205,44 @@ func (a_ AssetWriter) EndSessionAtSourceTime(endTime coremedia.Time) { objc.Call[objc.Void](a_, objc.Sel("endSessionAtSourceTime:"), endTime) } -// The location of the container file that the writer outputs. [Full Topic] +// Tells the writer to start writing its output. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1387731-outputurl?language=objc -func (a_ AssetWriter) OutputURL() foundation.URL { - rv := objc.Call[foundation.URL](a_, objc.Sel("outputURL")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1386724-startwriting?language=objc +func (a_ AssetWriter) StartWriting() bool { + rv := objc.Call[bool](a_, objc.Sel("startWriting")) return rv } -// The time scale of the movie. [Full Topic] +// Marks all unfinished inputs as finished and completes the writing of the output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1386762-movietimescale?language=objc -func (a_ AssetWriter) MovieTimeScale() coremedia.TimeScale { - rv := objc.Call[coremedia.TimeScale](a_, objc.Sel("movieTimeScale")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1390432-finishwritingwithcompletionhandl?language=objc +func (a_ AssetWriter) FinishWritingWithCompletionHandler(handler func()) { + objc.Call[objc.Void](a_, objc.Sel("finishWritingWithCompletionHandler:"), handler) } -// The time scale of the movie. [Full Topic] +// An error object that describes an asset-writing failure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1386762-movietimescale?language=objc -func (a_ AssetWriter) SetMovieTimeScale(value coremedia.TimeScale) { - objc.Call[objc.Void](a_, objc.Sel("setMovieTimeScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1390725-error?language=objc +func (a_ AssetWriter) Error() foundation.Error { + rv := objc.Call[foundation.Error](a_, objc.Sel("error")) + return rv } -// The inputs an asset writer contains. [Full Topic] +// The sequence number of the initial movie fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388264-inputs?language=objc -func (a_ AssetWriter) Inputs() []AssetWriterInput { - rv := objc.Call[[]AssetWriterInput](a_, objc.Sel("inputs")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3577532-initialmoviefragmentsequencenumb?language=objc +func (a_ AssetWriter) InitialMovieFragmentSequenceNumber() int { + rv := objc.Call[int](a_, objc.Sel("initialMovieFragmentSequenceNumber")) return rv } +// The sequence number of the initial movie fragment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3577532-initialmoviefragmentsequencenumb?language=objc +func (a_ AssetWriter) SetInitialMovieFragmentSequenceNumber(value int) { + objc.Call[objc.Void](a_, objc.Sel("setInitialMovieFragmentSequenceNumber:"), value) +} + // A profile for the output file type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546589-outputfiletypeprofile?language=objc @@ -281,21 +273,14 @@ func (a_ AssetWriter) SetMovieFragmentInterval(value coremedia.Time) { objc.Call[objc.Void](a_, objc.Sel("setMovieFragmentInterval:"), value) } -// The start time of the initial segment. [Full Topic] +// The input groups an asset writer contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546588-initialsegmentstarttime?language=objc -func (a_ AssetWriter) InitialSegmentStartTime() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("initialSegmentStartTime")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388432-inputgroups?language=objc +func (a_ AssetWriter) InputGroups() []AssetWriterInputGroup { + rv := objc.Call[[]AssetWriterInputGroup](a_, objc.Sel("inputGroups")) return rv } -// The start time of the initial segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546588-initialsegmentstarttime?language=objc -func (a_ AssetWriter) SetInitialSegmentStartTime(value coremedia.Time) { - objc.Call[objc.Void](a_, objc.Sel("setInitialSegmentStartTime:"), value) -} - // An array of metadata items to write to the output file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1387974-metadata?language=objc @@ -311,19 +296,43 @@ func (a_ AssetWriter) SetMetadata(value []IMetadataItem) { objc.Call[objc.Void](a_, objc.Sel("setMetadata:"), value) } -// The interval of output segments that you prefer. [Full Topic] +// A delegate object that responds to asset-writing events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546590-preferredoutputsegmentinterval?language=objc -func (a_ AssetWriter) PreferredOutputSegmentInterval() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("preferredOutputSegmentInterval")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546585-delegate?language=objc +func (a_ AssetWriter) Delegate() AssetWriterDelegateObject { + rv := objc.Call[AssetWriterDelegateObject](a_, objc.Sel("delegate")) return rv } -// The interval of output segments that you prefer. [Full Topic] +// A delegate object that responds to asset-writing events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546590-preferredoutputsegmentinterval?language=objc -func (a_ AssetWriter) SetPreferredOutputSegmentInterval(value coremedia.Time) { - objc.Call[objc.Void](a_, objc.Sel("setPreferredOutputSegmentInterval:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546585-delegate?language=objc +func (a_ AssetWriter) SetDelegate(value PAssetWriterDelegate) { + po0 := objc.WrapAsProtocol("AVAssetWriterDelegate", value) + objc.SetAssociatedObject(a_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), po0) +} + +// A delegate object that responds to asset-writing events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546585-delegate?language=objc +func (a_ AssetWriter) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), valueObject) +} + +// The start time of the initial segment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546588-initialsegmentstarttime?language=objc +func (a_ AssetWriter) InitialSegmentStartTime() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("initialSegmentStartTime")) + return rv +} + +// The start time of the initial segment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546588-initialsegmentstarttime?language=objc +func (a_ AssetWriter) SetInitialSegmentStartTime(value coremedia.Time) { + objc.Call[objc.Void](a_, objc.Sel("setInitialSegmentStartTime:"), value) } // The type of container file that the writer outputs. [Full Topic] @@ -334,133 +343,124 @@ func (a_ AssetWriter) OutputFileType() FileType { return rv } -// The media types the asset writer supports adding as inputs. [Full Topic] +// The inputs an asset writer contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388730-availablemediatypes?language=objc -func (a_ AssetWriter) AvailableMediaTypes() []MediaType { - rv := objc.Call[[]MediaType](a_, objc.Sel("availableMediaTypes")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388264-inputs?language=objc +func (a_ AssetWriter) Inputs() []AssetWriterInput { + rv := objc.Call[[]AssetWriterInput](a_, objc.Sel("inputs")) return rv } -// A Boolean value that indicates whether the asset writer outputs movie fragments suitable for combining with others. [Full Topic] +// The interval of output segments that you prefer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3626025-producescombinablefragments?language=objc -func (a_ AssetWriter) ProducesCombinableFragments() bool { - rv := objc.Call[bool](a_, objc.Sel("producesCombinableFragments")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546590-preferredoutputsegmentinterval?language=objc +func (a_ AssetWriter) PreferredOutputSegmentInterval() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("preferredOutputSegmentInterval")) return rv } -// A Boolean value that indicates whether the asset writer outputs movie fragments suitable for combining with others. [Full Topic] +// The interval of output segments that you prefer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3626025-producescombinablefragments?language=objc -func (a_ AssetWriter) SetProducesCombinableFragments(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setProducesCombinableFragments:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546590-preferredoutputsegmentinterval?language=objc +func (a_ AssetWriter) SetPreferredOutputSegmentInterval(value coremedia.Time) { + objc.Call[objc.Void](a_, objc.Sel("setPreferredOutputSegmentInterval:"), value) } -// An error object that describes an asset-writing failure. [Full Topic] +// A Boolean value that indicates whether to write the output file to make it more suitable for playback over a network. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1390725-error?language=objc -func (a_ AssetWriter) Error() foundation.Error { - rv := objc.Call[foundation.Error](a_, objc.Sel("error")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1389811-shouldoptimizefornetworkuse?language=objc +func (a_ AssetWriter) ShouldOptimizeForNetworkUse() bool { + rv := objc.Call[bool](a_, objc.Sel("shouldOptimizeForNetworkUse")) return rv } -// The input groups an asset writer contains. [Full Topic] +// A Boolean value that indicates whether to write the output file to make it more suitable for playback over a network. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388432-inputgroups?language=objc -func (a_ AssetWriter) InputGroups() []AssetWriterInputGroup { - rv := objc.Call[[]AssetWriterInputGroup](a_, objc.Sel("inputGroups")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1389811-shouldoptimizefornetworkuse?language=objc +func (a_ AssetWriter) SetShouldOptimizeForNetworkUse(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setShouldOptimizeForNetworkUse:"), value) } -// The status of writing samples to the output file. [Full Topic] +// The media types the asset writer supports adding as inputs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1389335-status?language=objc -func (a_ AssetWriter) Status() AssetWriterStatus { - rv := objc.Call[AssetWriterStatus](a_, objc.Sel("status")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388730-availablemediatypes?language=objc +func (a_ AssetWriter) AvailableMediaTypes() []MediaType { + rv := objc.Call[[]MediaType](a_, objc.Sel("availableMediaTypes")) return rv } -// A delegate object that responds to asset-writing events. [Full Topic] +// A directory to contain temporary files that the export process generates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546585-delegate?language=objc -func (a_ AssetWriter) Delegate() AssetWriterDelegateObject { - rv := objc.Call[AssetWriterDelegateObject](a_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1387445-directoryfortemporaryfiles?language=objc +func (a_ AssetWriter) DirectoryForTemporaryFiles() foundation.URL { + rv := objc.Call[foundation.URL](a_, objc.Sel("directoryForTemporaryFiles")) return rv } -// A delegate object that responds to asset-writing events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546585-delegate?language=objc -func (a_ AssetWriter) SetDelegate(value PAssetWriterDelegate) { - po0 := objc.WrapAsProtocol("AVAssetWriterDelegate", value) - objc.SetAssociatedObject(a_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), po0) -} - -// A delegate object that responds to asset-writing events. [Full Topic] +// A directory to contain temporary files that the export process generates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3546585-delegate?language=objc -func (a_ AssetWriter) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1387445-directoryfortemporaryfiles?language=objc +func (a_ AssetWriter) SetDirectoryForTemporaryFiles(value foundation.IURL) { + objc.Call[objc.Void](a_, objc.Sel("setDirectoryForTemporaryFiles:"), value) } -// The sequence number of the initial movie fragment. [Full Topic] +// A hint of the final duration of the output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3577532-initialmoviefragmentsequencenumb?language=objc -func (a_ AssetWriter) InitialMovieFragmentSequenceNumber() int { - rv := objc.Call[int](a_, objc.Sel("initialMovieFragmentSequenceNumber")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388408-overalldurationhint?language=objc +func (a_ AssetWriter) OverallDurationHint() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("overallDurationHint")) return rv } -// The sequence number of the initial movie fragment. [Full Topic] +// A hint of the final duration of the output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3577532-initialmoviefragmentsequencenumb?language=objc -func (a_ AssetWriter) SetInitialMovieFragmentSequenceNumber(value int) { - objc.Call[objc.Void](a_, objc.Sel("setInitialMovieFragmentSequenceNumber:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388408-overalldurationhint?language=objc +func (a_ AssetWriter) SetOverallDurationHint(value coremedia.Time) { + objc.Call[objc.Void](a_, objc.Sel("setOverallDurationHint:"), value) } -// A Boolean value that indicates whether to write the output file to make it more suitable for playback over a network. [Full Topic] +// A Boolean value that indicates whether the asset writer outputs movie fragments suitable for combining with others. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1389811-shouldoptimizefornetworkuse?language=objc -func (a_ AssetWriter) ShouldOptimizeForNetworkUse() bool { - rv := objc.Call[bool](a_, objc.Sel("shouldOptimizeForNetworkUse")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3626025-producescombinablefragments?language=objc +func (a_ AssetWriter) ProducesCombinableFragments() bool { + rv := objc.Call[bool](a_, objc.Sel("producesCombinableFragments")) return rv } -// A Boolean value that indicates whether to write the output file to make it more suitable for playback over a network. [Full Topic] +// A Boolean value that indicates whether the asset writer outputs movie fragments suitable for combining with others. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1389811-shouldoptimizefornetworkuse?language=objc -func (a_ AssetWriter) SetShouldOptimizeForNetworkUse(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setShouldOptimizeForNetworkUse:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/3626025-producescombinablefragments?language=objc +func (a_ AssetWriter) SetProducesCombinableFragments(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setProducesCombinableFragments:"), value) } -// A hint of the final duration of the output file. [Full Topic] +// The status of writing samples to the output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388408-overalldurationhint?language=objc -func (a_ AssetWriter) OverallDurationHint() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("overallDurationHint")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1389335-status?language=objc +func (a_ AssetWriter) Status() AssetWriterStatus { + rv := objc.Call[AssetWriterStatus](a_, objc.Sel("status")) return rv } -// A hint of the final duration of the output file. [Full Topic] +// The location of the container file that the writer outputs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1388408-overalldurationhint?language=objc -func (a_ AssetWriter) SetOverallDurationHint(value coremedia.Time) { - objc.Call[objc.Void](a_, objc.Sel("setOverallDurationHint:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1387731-outputurl?language=objc +func (a_ AssetWriter) OutputURL() foundation.URL { + rv := objc.Call[foundation.URL](a_, objc.Sel("outputURL")) + return rv } -// A directory to contain temporary files that the export process generates. [Full Topic] +// The time scale of the movie. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1387445-directoryfortemporaryfiles?language=objc -func (a_ AssetWriter) DirectoryForTemporaryFiles() foundation.URL { - rv := objc.Call[foundation.URL](a_, objc.Sel("directoryForTemporaryFiles")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1386762-movietimescale?language=objc +func (a_ AssetWriter) MovieTimeScale() coremedia.TimeScale { + rv := objc.Call[coremedia.TimeScale](a_, objc.Sel("movieTimeScale")) return rv } -// A directory to contain temporary files that the export process generates. [Full Topic] +// The time scale of the movie. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1387445-directoryfortemporaryfiles?language=objc -func (a_ AssetWriter) SetDirectoryForTemporaryFiles(value foundation.IURL) { - objc.Call[objc.Void](a_, objc.Sel("setDirectoryForTemporaryFiles:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriter/1386762-movietimescale?language=objc +func (a_ AssetWriter) SetMovieTimeScale(value coremedia.TimeScale) { + objc.Call[objc.Void](a_, objc.Sel("setMovieTimeScale:"), value) } diff --git a/macos/avfoundation/asset_writer_delegate.gen.go b/macos/avfoundation/asset_writer_delegate.gen.go index f5279b7b..623754c8 100644 --- a/macos/avfoundation/asset_writer_delegate.gen.go +++ b/macos/avfoundation/asset_writer_delegate.gen.go @@ -13,16 +13,11 @@ type PAssetWriterDelegate interface { // optional AssetWriterDidOutputSegmentDataSegmentType(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType) HasAssetWriterDidOutputSegmentDataSegmentType() bool - - // optional - AssetWriterDidOutputSegmentDataSegmentTypeSegmentReport(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType, segmentReport AssetSegmentReport) - HasAssetWriterDidOutputSegmentDataSegmentTypeSegmentReport() bool } // A delegate implementation builder for the [PAssetWriterDelegate] protocol. type AssetWriterDelegate struct { - _AssetWriterDidOutputSegmentDataSegmentType func(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType) - _AssetWriterDidOutputSegmentDataSegmentTypeSegmentReport func(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType, segmentReport AssetSegmentReport) + _AssetWriterDidOutputSegmentDataSegmentType func(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType) } func (di *AssetWriterDelegate) HasAssetWriterDidOutputSegmentDataSegmentType() bool { @@ -42,23 +37,6 @@ func (di *AssetWriterDelegate) SetAssetWriterDidOutputSegmentDataSegmentType(f f func (di *AssetWriterDelegate) AssetWriterDidOutputSegmentDataSegmentType(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType) { di._AssetWriterDidOutputSegmentDataSegmentType(writer, segmentData, segmentType) } -func (di *AssetWriterDelegate) HasAssetWriterDidOutputSegmentDataSegmentTypeSegmentReport() bool { - return di._AssetWriterDidOutputSegmentDataSegmentTypeSegmentReport != nil -} - -// Tells the delegate that the asset writer output segment data and a report. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterdelegate/3546593-assetwriter?language=objc -func (di *AssetWriterDelegate) SetAssetWriterDidOutputSegmentDataSegmentTypeSegmentReport(f func(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType, segmentReport AssetSegmentReport)) { - di._AssetWriterDidOutputSegmentDataSegmentTypeSegmentReport = f -} - -// Tells the delegate that the asset writer output segment data and a report. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterdelegate/3546593-assetwriter?language=objc -func (di *AssetWriterDelegate) AssetWriterDidOutputSegmentDataSegmentTypeSegmentReport(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType, segmentReport AssetSegmentReport) { - di._AssetWriterDidOutputSegmentDataSegmentTypeSegmentReport(writer, segmentData, segmentType, segmentReport) -} // ensure impl type implements protocol interface var _ PAssetWriterDelegate = (*AssetWriterDelegateObject)(nil) @@ -78,14 +56,3 @@ func (a_ AssetWriterDelegateObject) HasAssetWriterDidOutputSegmentDataSegmentTyp func (a_ AssetWriterDelegateObject) AssetWriterDidOutputSegmentDataSegmentType(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType) { objc.Call[objc.Void](a_, objc.Sel("assetWriter:didOutputSegmentData:segmentType:"), writer, segmentData, segmentType) } - -func (a_ AssetWriterDelegateObject) HasAssetWriterDidOutputSegmentDataSegmentTypeSegmentReport() bool { - return a_.RespondsToSelector(objc.Sel("assetWriter:didOutputSegmentData:segmentType:segmentReport:")) -} - -// Tells the delegate that the asset writer output segment data and a report. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterdelegate/3546593-assetwriter?language=objc -func (a_ AssetWriterDelegateObject) AssetWriterDidOutputSegmentDataSegmentTypeSegmentReport(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType, segmentReport AssetSegmentReport) { - objc.Call[objc.Void](a_, objc.Sel("assetWriter:didOutputSegmentData:segmentType:segmentReport:"), writer, segmentData, segmentType, segmentReport) -} diff --git a/macos/avfoundation/asset_writer_input.gen.go b/macos/avfoundation/asset_writer_input.gen.go index e9565efe..f12eae7c 100644 --- a/macos/avfoundation/asset_writer_input.gen.go +++ b/macos/avfoundation/asset_writer_input.gen.go @@ -22,47 +22,47 @@ type _AssetWriterInputClass struct { // An interface definition for the [AssetWriterInput] class. type IAssetWriterInput interface { objc.IObject - RequestMediaDataWhenReadyOnQueueUsingBlock(queue dispatch.Queue, block func()) - CanAddTrackAssociationWithTrackOfInputType(input IAssetWriterInput, trackAssociationType string) bool AddTrackAssociationWithTrackOfInputType(input IAssetWriterInput, trackAssociationType string) - AppendSampleBuffer(sampleBuffer coremedia.SampleBufferRef) bool + MarkCurrentPassAsFinished() RespondToEachPassDescriptionOnQueueUsingBlock(queue dispatch.Queue, block func()) + RequestMediaDataWhenReadyOnQueueUsingBlock(queue dispatch.Queue, block func()) + AppendSampleBuffer(sampleBuffer coremedia.SampleBufferRef) bool + CanAddTrackAssociationWithTrackOfInputType(input IAssetWriterInput, trackAssociationType string) bool MarkAsFinished() - MarkCurrentPassAsFinished() - CanPerformMultiplePasses() bool - NaturalSize() coregraphics.Size - SetNaturalSize(value coregraphics.Size) - ExpectsMediaDataInRealTime() bool - SetExpectsMediaDataInRealTime(value bool) - Metadata() []MetadataItem - SetMetadata(value []IMetadataItem) + CurrentPassDescription() AssetWriterInputPassDescription + IsReadyForMoreMediaData() bool ExtendedLanguageTag() string SetExtendedLanguageTag(value string) - SourceFormatHint() coremedia.FormatDescriptionRef + PerformsMultiPassEncodingIfSupported() bool + SetPerformsMultiPassEncodingIfSupported(value bool) + OutputSettings() map[string]objc.Object PreferredMediaChunkAlignment() int SetPreferredMediaChunkAlignment(value int) - CurrentPassDescription() AssetWriterInputPassDescription - IsReadyForMoreMediaData() bool - OutputSettings() map[string]objc.Object - MarksOutputTrackAsEnabled() bool - SetMarksOutputTrackAsEnabled(value bool) + PreferredVolume() float32 + SetPreferredVolume(value float32) + Metadata() []MetadataItem + SetMetadata(value []IMetadataItem) + ExpectsMediaDataInRealTime() bool + SetExpectsMediaDataInRealTime(value bool) + MediaType() MediaType SampleReferenceBaseURL() foundation.URL SetSampleReferenceBaseURL(value foundation.IURL) + MarksOutputTrackAsEnabled() bool + SetMarksOutputTrackAsEnabled(value bool) + NaturalSize() coregraphics.Size + SetNaturalSize(value coregraphics.Size) + CanPerformMultiplePasses() bool MediaTimeScale() coremedia.TimeScale SetMediaTimeScale(value coremedia.TimeScale) + PreferredMediaChunkDuration() coremedia.Time + SetPreferredMediaChunkDuration(value coremedia.Time) Transform() coregraphics.AffineTransform SetTransform(value coregraphics.AffineTransform) LanguageCode() string SetLanguageCode(value string) - PreferredVolume() float32 - SetPreferredVolume(value float32) - MediaType() MediaType - PerformsMultiPassEncodingIfSupported() bool - SetPerformsMultiPassEncodingIfSupported(value bool) + SourceFormatHint() coremedia.FormatDescriptionRef MediaDataLocation() AssetWriterInputMediaDataLocation SetMediaDataLocation(value AssetWriterInputMediaDataLocation) - PreferredMediaChunkDuration() coremedia.Time - SetPreferredMediaChunkDuration(value coremedia.Time) } // An object that appends media samples to a track in an asset writer’s output file. [Full Topic] @@ -90,32 +90,6 @@ func AssetWriterInput_AssetWriterInputWithMediaTypeOutputSettingsSourceFormatHin return AssetWriterInputClass.AssetWriterInputWithMediaTypeOutputSettingsSourceFormatHint(mediaType, outputSettings, sourceFormatHint) } -func (a_ AssetWriterInput) InitWithMediaTypeOutputSettings(mediaType MediaType, outputSettings map[string]objc.IObject) AssetWriterInput { - rv := objc.Call[AssetWriterInput](a_, objc.Sel("initWithMediaType:outputSettings:"), mediaType, outputSettings) - return rv -} - -// Creates an input to append sample buffers of the specified type to the output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1385912-initwithmediatype?language=objc -func NewAssetWriterInputWithMediaTypeOutputSettings(mediaType MediaType, outputSettings map[string]objc.IObject) AssetWriterInput { - instance := AssetWriterInputClass.Alloc().InitWithMediaTypeOutputSettings(mediaType, outputSettings) - instance.Autorelease() - return instance -} - -func (ac _AssetWriterInputClass) AssetWriterInputWithMediaTypeOutputSettings(mediaType MediaType, outputSettings map[string]objc.IObject) AssetWriterInput { - rv := objc.Call[AssetWriterInput](ac, objc.Sel("assetWriterInputWithMediaType:outputSettings:"), mediaType, outputSettings) - return rv -} - -// Returns a new input to append sample buffers of the specified type to the output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1449070-assetwriterinputwithmediatype?language=objc -func AssetWriterInput_AssetWriterInputWithMediaTypeOutputSettings(mediaType MediaType, outputSettings map[string]objc.IObject) AssetWriterInput { - return AssetWriterInputClass.AssetWriterInputWithMediaTypeOutputSettings(mediaType, outputSettings) -} - func (a_ AssetWriterInput) InitWithMediaTypeOutputSettingsSourceFormatHint(mediaType MediaType, outputSettings map[string]objc.IObject, sourceFormatHint coremedia.FormatDescriptionRef) AssetWriterInput { rv := objc.Call[AssetWriterInput](a_, objc.Sel("initWithMediaType:outputSettings:sourceFormatHint:"), mediaType, outputSettings, sourceFormatHint) return rv @@ -150,21 +124,6 @@ func (a_ AssetWriterInput) Init() AssetWriterInput { return rv } -// Tells the input to request media data, at its convenience, to write to the output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387508-requestmediadatawhenreadyonqueue?language=objc -func (a_ AssetWriterInput) RequestMediaDataWhenReadyOnQueueUsingBlock(queue dispatch.Queue, block func()) { - objc.Call[objc.Void](a_, objc.Sel("requestMediaDataWhenReadyOnQueue:usingBlock:"), queue, block) -} - -// Determines whether it’s valid to associate another input’s track with this input’s track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1388292-canaddtrackassociationwithtracko?language=objc -func (a_ AssetWriterInput) CanAddTrackAssociationWithTrackOfInputType(input IAssetWriterInput, trackAssociationType string) bool { - rv := objc.Call[bool](a_, objc.Sel("canAddTrackAssociationWithTrackOfInput:type:"), input, trackAssociationType) - return rv -} - // Adds an association between input tracks. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1388347-addtrackassociationwithtrackofin?language=objc @@ -172,12 +131,11 @@ func (a_ AssetWriterInput) AddTrackAssociationWithTrackOfInputType(input IAssetW objc.Call[objc.Void](a_, objc.Sel("addTrackAssociationWithTrackOfInput:type:"), input, trackAssociationType) } -// Appends a sample buffer to an input to write to the output file. [Full Topic] +// Tells the input to analyze the appended media to determine whether it can improve the results by reencoding certain segments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1389566-appendsamplebuffer?language=objc -func (a_ AssetWriterInput) AppendSampleBuffer(sampleBuffer coremedia.SampleBufferRef) bool { - rv := objc.Call[bool](a_, objc.Sel("appendSampleBuffer:"), sampleBuffer) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1389652-markcurrentpassasfinished?language=objc +func (a_ AssetWriterInput) MarkCurrentPassAsFinished() { + objc.Call[objc.Void](a_, objc.Sel("markCurrentPassAsFinished")) } // Tells the input to invoke a callback whenever it begins a new pass. [Full Topic] @@ -187,73 +145,52 @@ func (a_ AssetWriterInput) RespondToEachPassDescriptionOnQueueUsingBlock(queue d objc.Call[objc.Void](a_, objc.Sel("respondToEachPassDescriptionOnQueue:usingBlock:"), queue, block) } -// Marks the input as finished to indicate that you’re done appending samples to it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1390122-markasfinished?language=objc -func (a_ AssetWriterInput) MarkAsFinished() { - objc.Call[objc.Void](a_, objc.Sel("markAsFinished")) -} - -// Tells the input to analyze the appended media to determine whether it can improve the results by reencoding certain segments. [Full Topic] +// Tells the input to request media data, at its convenience, to write to the output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1389652-markcurrentpassasfinished?language=objc -func (a_ AssetWriterInput) MarkCurrentPassAsFinished() { - objc.Call[objc.Void](a_, objc.Sel("markCurrentPassAsFinished")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387508-requestmediadatawhenreadyonqueue?language=objc +func (a_ AssetWriterInput) RequestMediaDataWhenReadyOnQueueUsingBlock(queue dispatch.Queue, block func()) { + objc.Call[objc.Void](a_, objc.Sel("requestMediaDataWhenReadyOnQueue:usingBlock:"), queue, block) } -// A Boolean value that indicates whether the input may perform multiple passes over appended media data. [Full Topic] +// Appends a sample buffer to an input to write to the output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1388284-canperformmultiplepasses?language=objc -func (a_ AssetWriterInput) CanPerformMultiplePasses() bool { - rv := objc.Call[bool](a_, objc.Sel("canPerformMultiplePasses")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1389566-appendsamplebuffer?language=objc +func (a_ AssetWriterInput) AppendSampleBuffer(sampleBuffer coremedia.SampleBufferRef) bool { + rv := objc.Call[bool](a_, objc.Sel("appendSampleBuffer:"), sampleBuffer) return rv } -// The natural display dimensions of the output’s visual media. [Full Topic] +// Determines whether it’s valid to associate another input’s track with this input’s track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387437-naturalsize?language=objc -func (a_ AssetWriterInput) NaturalSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](a_, objc.Sel("naturalSize")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1388292-canaddtrackassociationwithtracko?language=objc +func (a_ AssetWriterInput) CanAddTrackAssociationWithTrackOfInputType(input IAssetWriterInput, trackAssociationType string) bool { + rv := objc.Call[bool](a_, objc.Sel("canAddTrackAssociationWithTrackOfInput:type:"), input, trackAssociationType) return rv } -// The natural display dimensions of the output’s visual media. [Full Topic] +// Marks the input as finished to indicate that you’re done appending samples to it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387437-naturalsize?language=objc -func (a_ AssetWriterInput) SetNaturalSize(value coregraphics.Size) { - objc.Call[objc.Void](a_, objc.Sel("setNaturalSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1390122-markasfinished?language=objc +func (a_ AssetWriterInput) MarkAsFinished() { + objc.Call[objc.Void](a_, objc.Sel("markAsFinished")) } -// A Boolean value that indicates whether the input tailors its processing for real-time sources. [Full Topic] +// An object that describes the requirements for the current pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387827-expectsmediadatainrealtime?language=objc -func (a_ AssetWriterInput) ExpectsMediaDataInRealTime() bool { - rv := objc.Call[bool](a_, objc.Sel("expectsMediaDataInRealTime")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1390627-currentpassdescription?language=objc +func (a_ AssetWriterInput) CurrentPassDescription() AssetWriterInputPassDescription { + rv := objc.Call[AssetWriterInputPassDescription](a_, objc.Sel("currentPassDescription")) return rv } -// A Boolean value that indicates whether the input tailors its processing for real-time sources. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387827-expectsmediadatainrealtime?language=objc -func (a_ AssetWriterInput) SetExpectsMediaDataInRealTime(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setExpectsMediaDataInRealTime:"), value) -} - -// The track-level metadata to write to the output. [Full Topic] +// A Boolean value that indicates whether the input is ready to accept media data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386328-metadata?language=objc -func (a_ AssetWriterInput) Metadata() []MetadataItem { - rv := objc.Call[[]MetadataItem](a_, objc.Sel("metadata")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1389084-readyformoremediadata?language=objc +func (a_ AssetWriterInput) IsReadyForMoreMediaData() bool { + rv := objc.Call[bool](a_, objc.Sel("isReadyForMoreMediaData")) return rv } -// The track-level metadata to write to the output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386328-metadata?language=objc -func (a_ AssetWriterInput) SetMetadata(value []IMetadataItem) { - objc.Call[objc.Void](a_, objc.Sel("setMetadata:"), value) -} - // The extended language for the input’s track. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1390768-extendedlanguagetag?language=objc @@ -269,11 +206,26 @@ func (a_ AssetWriterInput) SetExtendedLanguageTag(value string) { objc.Call[objc.Void](a_, objc.Sel("setExtendedLanguageTag:"), value) } -// A hint about the format of the sample buffers to append to the input. [Full Topic] +// A Boolean value that indicates whether the input attempts to encode the source media data using multiple passes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387647-sourceformathint?language=objc -func (a_ AssetWriterInput) SourceFormatHint() coremedia.FormatDescriptionRef { - rv := objc.Call[coremedia.FormatDescriptionRef](a_, objc.Sel("sourceFormatHint")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386570-performsmultipassencodingifsuppo?language=objc +func (a_ AssetWriterInput) PerformsMultiPassEncodingIfSupported() bool { + rv := objc.Call[bool](a_, objc.Sel("performsMultiPassEncodingIfSupported")) + return rv +} + +// A Boolean value that indicates whether the input attempts to encode the source media data using multiple passes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386570-performsmultipassencodingifsuppo?language=objc +func (a_ AssetWriterInput) SetPerformsMultiPassEncodingIfSupported(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setPerformsMultiPassEncodingIfSupported:"), value) +} + +// The settings to use for encoding media data you append to the output. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1388406-outputsettings?language=objc +func (a_ AssetWriterInput) OutputSettings() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](a_, objc.Sel("outputSettings")) return rv } @@ -292,30 +244,74 @@ func (a_ AssetWriterInput) SetPreferredMediaChunkAlignment(value int) { objc.Call[objc.Void](a_, objc.Sel("setPreferredMediaChunkAlignment:"), value) } -// An object that describes the requirements for the current pass. [Full Topic] +// The volume to prefer for playback of the output’s audio data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1390627-currentpassdescription?language=objc -func (a_ AssetWriterInput) CurrentPassDescription() AssetWriterInputPassDescription { - rv := objc.Call[AssetWriterInputPassDescription](a_, objc.Sel("currentPassDescription")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1389949-preferredvolume?language=objc +func (a_ AssetWriterInput) PreferredVolume() float32 { + rv := objc.Call[float32](a_, objc.Sel("preferredVolume")) return rv } -// A Boolean value that indicates whether the input is ready to accept media data. [Full Topic] +// The volume to prefer for playback of the output’s audio data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1389084-readyformoremediadata?language=objc -func (a_ AssetWriterInput) IsReadyForMoreMediaData() bool { - rv := objc.Call[bool](a_, objc.Sel("isReadyForMoreMediaData")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1389949-preferredvolume?language=objc +func (a_ AssetWriterInput) SetPreferredVolume(value float32) { + objc.Call[objc.Void](a_, objc.Sel("setPreferredVolume:"), value) +} + +// The track-level metadata to write to the output. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386328-metadata?language=objc +func (a_ AssetWriterInput) Metadata() []MetadataItem { + rv := objc.Call[[]MetadataItem](a_, objc.Sel("metadata")) return rv } -// The settings to use for encoding media data you append to the output. [Full Topic] +// The track-level metadata to write to the output. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1388406-outputsettings?language=objc -func (a_ AssetWriterInput) OutputSettings() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](a_, objc.Sel("outputSettings")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386328-metadata?language=objc +func (a_ AssetWriterInput) SetMetadata(value []IMetadataItem) { + objc.Call[objc.Void](a_, objc.Sel("setMetadata:"), value) +} + +// A Boolean value that indicates whether the input tailors its processing for real-time sources. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387827-expectsmediadatainrealtime?language=objc +func (a_ AssetWriterInput) ExpectsMediaDataInRealTime() bool { + rv := objc.Call[bool](a_, objc.Sel("expectsMediaDataInRealTime")) + return rv +} + +// A Boolean value that indicates whether the input tailors its processing for real-time sources. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387827-expectsmediadatainrealtime?language=objc +func (a_ AssetWriterInput) SetExpectsMediaDataInRealTime(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setExpectsMediaDataInRealTime:"), value) +} + +// The media type of the samples that the input accepts. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1385565-mediatype?language=objc +func (a_ AssetWriterInput) MediaType() MediaType { + rv := objc.Call[MediaType](a_, objc.Sel("mediaType")) + return rv +} + +// The base URL sample references are relative to. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386316-samplereferencebaseurl?language=objc +func (a_ AssetWriterInput) SampleReferenceBaseURL() foundation.URL { + rv := objc.Call[foundation.URL](a_, objc.Sel("sampleReferenceBaseURL")) return rv } +// The base URL sample references are relative to. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386316-samplereferencebaseurl?language=objc +func (a_ AssetWriterInput) SetSampleReferenceBaseURL(value foundation.IURL) { + objc.Call[objc.Void](a_, objc.Sel("setSampleReferenceBaseURL:"), value) +} + // A Boolean value that indicates whether to enable a track in the output for playback and processing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386764-marksoutputtrackasenabled?language=objc @@ -331,19 +327,27 @@ func (a_ AssetWriterInput) SetMarksOutputTrackAsEnabled(value bool) { objc.Call[objc.Void](a_, objc.Sel("setMarksOutputTrackAsEnabled:"), value) } -// The base URL sample references are relative to. [Full Topic] +// The natural display dimensions of the output’s visual media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386316-samplereferencebaseurl?language=objc -func (a_ AssetWriterInput) SampleReferenceBaseURL() foundation.URL { - rv := objc.Call[foundation.URL](a_, objc.Sel("sampleReferenceBaseURL")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387437-naturalsize?language=objc +func (a_ AssetWriterInput) NaturalSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](a_, objc.Sel("naturalSize")) return rv } -// The base URL sample references are relative to. [Full Topic] +// The natural display dimensions of the output’s visual media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386316-samplereferencebaseurl?language=objc -func (a_ AssetWriterInput) SetSampleReferenceBaseURL(value foundation.IURL) { - objc.Call[objc.Void](a_, objc.Sel("setSampleReferenceBaseURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387437-naturalsize?language=objc +func (a_ AssetWriterInput) SetNaturalSize(value coregraphics.Size) { + objc.Call[objc.Void](a_, objc.Sel("setNaturalSize:"), value) +} + +// A Boolean value that indicates whether the input may perform multiple passes over appended media data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1388284-canperformmultiplepasses?language=objc +func (a_ AssetWriterInput) CanPerformMultiplePasses() bool { + rv := objc.Call[bool](a_, objc.Sel("canPerformMultiplePasses")) + return rv } // The time scale of the track in the output file. [Full Topic] @@ -361,6 +365,21 @@ func (a_ AssetWriterInput) SetMediaTimeScale(value coremedia.TimeScale) { objc.Call[objc.Void](a_, objc.Sel("setMediaTimeScale:"), value) } +// The duration to use for each chunk of sample data in the output file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1390463-preferredmediachunkduration?language=objc +func (a_ AssetWriterInput) PreferredMediaChunkDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("preferredMediaChunkDuration")) + return rv +} + +// The duration to use for each chunk of sample data in the output file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1390463-preferredmediachunkduration?language=objc +func (a_ AssetWriterInput) SetPreferredMediaChunkDuration(value coremedia.Time) { + objc.Call[objc.Void](a_, objc.Sel("setPreferredMediaChunkDuration:"), value) +} + // The transform to use for display of the output’s visual media. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1390183-transform?language=objc @@ -391,44 +410,14 @@ func (a_ AssetWriterInput) SetLanguageCode(value string) { objc.Call[objc.Void](a_, objc.Sel("setLanguageCode:"), value) } -// The volume to prefer for playback of the output’s audio data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1389949-preferredvolume?language=objc -func (a_ AssetWriterInput) PreferredVolume() float32 { - rv := objc.Call[float32](a_, objc.Sel("preferredVolume")) - return rv -} - -// The volume to prefer for playback of the output’s audio data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1389949-preferredvolume?language=objc -func (a_ AssetWriterInput) SetPreferredVolume(value float32) { - objc.Call[objc.Void](a_, objc.Sel("setPreferredVolume:"), value) -} - -// The media type of the samples that the input accepts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1385565-mediatype?language=objc -func (a_ AssetWriterInput) MediaType() MediaType { - rv := objc.Call[MediaType](a_, objc.Sel("mediaType")) - return rv -} - -// A Boolean value that indicates whether the input attempts to encode the source media data using multiple passes. [Full Topic] +// A hint about the format of the sample buffers to append to the input. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386570-performsmultipassencodingifsuppo?language=objc -func (a_ AssetWriterInput) PerformsMultiPassEncodingIfSupported() bool { - rv := objc.Call[bool](a_, objc.Sel("performsMultiPassEncodingIfSupported")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387647-sourceformathint?language=objc +func (a_ AssetWriterInput) SourceFormatHint() coremedia.FormatDescriptionRef { + rv := objc.Call[coremedia.FormatDescriptionRef](a_, objc.Sel("sourceFormatHint")) return rv } -// A Boolean value that indicates whether the input attempts to encode the source media data using multiple passes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1386570-performsmultipassencodingifsuppo?language=objc -func (a_ AssetWriterInput) SetPerformsMultiPassEncodingIfSupported(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setPerformsMultiPassEncodingIfSupported:"), value) -} - // Specifies how the input lays out and interleaves media data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/2867633-mediadatalocation?language=objc @@ -443,18 +432,3 @@ func (a_ AssetWriterInput) MediaDataLocation() AssetWriterInputMediaDataLocation func (a_ AssetWriterInput) SetMediaDataLocation(value AssetWriterInputMediaDataLocation) { objc.Call[objc.Void](a_, objc.Sel("setMediaDataLocation:"), value) } - -// The duration to use for each chunk of sample data in the output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1390463-preferredmediachunkduration?language=objc -func (a_ AssetWriterInput) PreferredMediaChunkDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("preferredMediaChunkDuration")) - return rv -} - -// The duration to use for each chunk of sample data in the output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1390463-preferredmediachunkduration?language=objc -func (a_ AssetWriterInput) SetPreferredMediaChunkDuration(value coremedia.Time) { - objc.Call[objc.Void](a_, objc.Sel("setPreferredMediaChunkDuration:"), value) -} diff --git a/macos/avfoundation/asset_writer_input_caption_adaptor.gen.go b/macos/avfoundation/asset_writer_input_caption_adaptor.gen.go index e026233e..de20c8d6 100644 --- a/macos/avfoundation/asset_writer_input_caption_adaptor.gen.go +++ b/macos/avfoundation/asset_writer_input_caption_adaptor.gen.go @@ -36,18 +36,6 @@ func AssetWriterInputCaptionAdaptorFrom(ptr unsafe.Pointer) AssetWriterInputCapt } } -func (ac _AssetWriterInputCaptionAdaptorClass) AssetWriterInputCaptionAdaptorWithAssetWriterInput(input IAssetWriterInput) AssetWriterInputCaptionAdaptor { - rv := objc.Call[AssetWriterInputCaptionAdaptor](ac, objc.Sel("assetWriterInputCaptionAdaptorWithAssetWriterInput:"), input) - return rv -} - -// A class method that creates a new caption adaptor that writes to the specified asset writer input. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinputcaptionadaptor/3752804-assetwriterinputcaptionadaptorwi?language=objc -func AssetWriterInputCaptionAdaptor_AssetWriterInputCaptionAdaptorWithAssetWriterInput(input IAssetWriterInput) AssetWriterInputCaptionAdaptor { - return AssetWriterInputCaptionAdaptorClass.AssetWriterInputCaptionAdaptorWithAssetWriterInput(input) -} - func (a_ AssetWriterInputCaptionAdaptor) InitWithAssetWriterInput(input IAssetWriterInput) AssetWriterInputCaptionAdaptor { rv := objc.Call[AssetWriterInputCaptionAdaptor](a_, objc.Sel("initWithAssetWriterInput:"), input) return rv @@ -62,6 +50,18 @@ func NewAssetWriterInputCaptionAdaptorWithAssetWriterInput(input IAssetWriterInp return instance } +func (ac _AssetWriterInputCaptionAdaptorClass) AssetWriterInputCaptionAdaptorWithAssetWriterInput(input IAssetWriterInput) AssetWriterInputCaptionAdaptor { + rv := objc.Call[AssetWriterInputCaptionAdaptor](ac, objc.Sel("assetWriterInputCaptionAdaptorWithAssetWriterInput:"), input) + return rv +} + +// A class method that creates a new caption adaptor that writes to the specified asset writer input. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinputcaptionadaptor/3752804-assetwriterinputcaptionadaptorwi?language=objc +func AssetWriterInputCaptionAdaptor_AssetWriterInputCaptionAdaptorWithAssetWriterInput(input IAssetWriterInput) AssetWriterInputCaptionAdaptor { + return AssetWriterInputCaptionAdaptorClass.AssetWriterInputCaptionAdaptorWithAssetWriterInput(input) +} + func (ac _AssetWriterInputCaptionAdaptorClass) Alloc() AssetWriterInputCaptionAdaptor { rv := objc.Call[AssetWriterInputCaptionAdaptor](ac, objc.Sel("alloc")) return rv diff --git a/macos/avfoundation/asset_writer_input_group.gen.go b/macos/avfoundation/asset_writer_input_group.gen.go index 8bc04b40..247474b1 100644 --- a/macos/avfoundation/asset_writer_input_group.gen.go +++ b/macos/avfoundation/asset_writer_input_group.gen.go @@ -18,8 +18,8 @@ type _AssetWriterInputGroupClass struct { // An interface definition for the [AssetWriterInputGroup] class. type IAssetWriterInputGroup interface { IMediaSelectionGroup - Inputs() []AssetWriterInput DefaultInput() AssetWriterInput + Inputs() []AssetWriterInput } // A group of inputs with tracks that are mutually exclusive to each other for playback or processing. [Full Topic] @@ -81,14 +81,6 @@ func (a_ AssetWriterInputGroup) Init() AssetWriterInputGroup { return rv } -// The inputs with tracks that are mutually exclusive to each other for playback or processing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinputgroup/1388226-inputs?language=objc -func (a_ AssetWriterInputGroup) Inputs() []AssetWriterInput { - rv := objc.Call[[]AssetWriterInput](a_, objc.Sel("inputs")) - return rv -} - // The default input for the group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinputgroup/1389698-defaultinput?language=objc @@ -96,3 +88,11 @@ func (a_ AssetWriterInputGroup) DefaultInput() AssetWriterInput { rv := objc.Call[AssetWriterInput](a_, objc.Sel("defaultInput")) return rv } + +// The inputs with tracks that are mutually exclusive to each other for playback or processing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinputgroup/1388226-inputs?language=objc +func (a_ AssetWriterInputGroup) Inputs() []AssetWriterInput { + rv := objc.Call[[]AssetWriterInput](a_, objc.Sel("inputs")) + return rv +} diff --git a/macos/avfoundation/asset_writer_input_pixel_buffer_adaptor.gen.go b/macos/avfoundation/asset_writer_input_pixel_buffer_adaptor.gen.go index b858b7c9..d11eb2c0 100644 --- a/macos/avfoundation/asset_writer_input_pixel_buffer_adaptor.gen.go +++ b/macos/avfoundation/asset_writer_input_pixel_buffer_adaptor.gen.go @@ -21,9 +21,9 @@ type _AssetWriterInputPixelBufferAdaptorClass struct { type IAssetWriterInputPixelBufferAdaptor interface { objc.IObject AppendPixelBufferWithPresentationTime(pixelBuffer corevideo.PixelBufferRef, presentationTime coremedia.Time) bool - PixelBufferPool() corevideo.PixelBufferPoolRef - SourcePixelBufferAttributes() map[string]objc.Object AssetWriterInput() AssetWriterInput + SourcePixelBufferAttributes() map[string]objc.Object + PixelBufferPool() corevideo.PixelBufferPoolRef } // An object that appends video samples to an asset writer input. [Full Topic] @@ -93,11 +93,11 @@ func (a_ AssetWriterInputPixelBufferAdaptor) AppendPixelBufferWithPresentationTi return rv } -// A pool of pixel buffers to append to the adaptor’s input. [Full Topic] +// The asset writer input to which the adaptor appends pixel buffers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinputpixelbufferadaptor/1389662-pixelbufferpool?language=objc -func (a_ AssetWriterInputPixelBufferAdaptor) PixelBufferPool() corevideo.PixelBufferPoolRef { - rv := objc.Call[corevideo.PixelBufferPoolRef](a_, objc.Sel("pixelBufferPool")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinputpixelbufferadaptor/1387565-assetwriterinput?language=objc +func (a_ AssetWriterInputPixelBufferAdaptor) AssetWriterInput() AssetWriterInput { + rv := objc.Call[AssetWriterInput](a_, objc.Sel("assetWriterInput")) return rv } @@ -109,10 +109,10 @@ func (a_ AssetWriterInputPixelBufferAdaptor) SourcePixelBufferAttributes() map[s return rv } -// The asset writer input to which the adaptor appends pixel buffers. [Full Topic] +// A pool of pixel buffers to append to the adaptor’s input. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinputpixelbufferadaptor/1387565-assetwriterinput?language=objc -func (a_ AssetWriterInputPixelBufferAdaptor) AssetWriterInput() AssetWriterInput { - rv := objc.Call[AssetWriterInput](a_, objc.Sel("assetWriterInput")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinputpixelbufferadaptor/1389662-pixelbufferpool?language=objc +func (a_ AssetWriterInputPixelBufferAdaptor) PixelBufferPool() corevideo.PixelBufferPoolRef { + rv := objc.Call[corevideo.PixelBufferPoolRef](a_, objc.Sel("pixelBufferPool")) return rv } diff --git a/macos/avfoundation/asynchronous_ci_image_filtering_request.gen.go b/macos/avfoundation/asynchronous_ci_image_filtering_request.gen.go index 60ea67fd..d3e24095 100644 --- a/macos/avfoundation/asynchronous_ci_image_filtering_request.gen.go +++ b/macos/avfoundation/asynchronous_ci_image_filtering_request.gen.go @@ -24,9 +24,9 @@ type IAsynchronousCIImageFilteringRequest interface { objc.IObject FinishWithImageContext(filteredImage coreimage.IImage, context coreimage.IContext) FinishWithError(error foundation.IError) + RenderSize() coregraphics.Size CompositionTime() coremedia.Time SourceImage() coreimage.Image - RenderSize() coregraphics.Size } // An object that supprts using Core Image filters to process an individual video frame in a video composition. [Full Topic] @@ -76,6 +76,14 @@ func (a_ AsynchronousCIImageFilteringRequest) FinishWithError(error foundation.I objc.Call[objc.Void](a_, objc.Sel("finishWithError:"), error) } +// The width and height, in pixels, of the frame being processed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousciimagefilteringrequest/1387933-rendersize?language=objc +func (a_ AsynchronousCIImageFilteringRequest) RenderSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](a_, objc.Sel("renderSize")) + return rv +} + // The time in the video composition corresponding to the frame being processed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousciimagefilteringrequest/1388240-compositiontime?language=objc @@ -91,11 +99,3 @@ func (a_ AsynchronousCIImageFilteringRequest) SourceImage() coreimage.Image { rv := objc.Call[coreimage.Image](a_, objc.Sel("sourceImage")) return rv } - -// The width and height, in pixels, of the frame being processed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousciimagefilteringrequest/1387933-rendersize?language=objc -func (a_ AsynchronousCIImageFilteringRequest) RenderSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](a_, objc.Sel("renderSize")) - return rv -} diff --git a/macos/avfoundation/asynchronous_key_value_loading_protocol.gen.go b/macos/avfoundation/asynchronous_key_value_loading_protocol.gen.go index d0f0a8da..6d417662 100644 --- a/macos/avfoundation/asynchronous_key_value_loading_protocol.gen.go +++ b/macos/avfoundation/asynchronous_key_value_loading_protocol.gen.go @@ -12,13 +12,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronouskeyvalueloading?language=objc type PAsynchronousKeyValueLoading interface { - // optional - LoadValuesAsynchronouslyForKeysCompletionHandler(keys []string, handler func()) - HasLoadValuesAsynchronouslyForKeysCompletionHandler() bool - // optional StatusOfValueForKeyError(key string, outError unsafe.Pointer) KeyValueStatus HasStatusOfValueForKeyError() bool + + // optional + LoadValuesAsynchronouslyForKeysCompletionHandler(keys []string, handler func()) + HasLoadValuesAsynchronouslyForKeysCompletionHandler() bool } // ensure impl type implements protocol interface @@ -29,17 +29,6 @@ type AsynchronousKeyValueLoadingObject struct { objc.Object } -func (a_ AsynchronousKeyValueLoadingObject) HasLoadValuesAsynchronouslyForKeysCompletionHandler() bool { - return a_.RespondsToSelector(objc.Sel("loadValuesAsynchronouslyForKeys:completionHandler:")) -} - -// Tells the asset to load the values of all of the specified keys that aren’t already loaded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronouskeyvalueloading/1387321-loadvaluesasynchronouslyforkeys?language=objc -func (a_ AsynchronousKeyValueLoadingObject) LoadValuesAsynchronouslyForKeysCompletionHandler(keys []string, handler func()) { - objc.Call[objc.Void](a_, objc.Sel("loadValuesAsynchronouslyForKeys:completionHandler:"), keys, handler) -} - func (a_ AsynchronousKeyValueLoadingObject) HasStatusOfValueForKeyError() bool { return a_.RespondsToSelector(objc.Sel("statusOfValueForKey:error:")) } @@ -51,3 +40,14 @@ func (a_ AsynchronousKeyValueLoadingObject) StatusOfValueForKeyError(key string, rv := objc.Call[KeyValueStatus](a_, objc.Sel("statusOfValueForKey:error:"), key, outError) return rv } + +func (a_ AsynchronousKeyValueLoadingObject) HasLoadValuesAsynchronouslyForKeysCompletionHandler() bool { + return a_.RespondsToSelector(objc.Sel("loadValuesAsynchronouslyForKeys:completionHandler:")) +} + +// Tells the asset to load the values of all of the specified keys that aren’t already loaded. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronouskeyvalueloading/1387321-loadvaluesasynchronouslyforkeys?language=objc +func (a_ AsynchronousKeyValueLoadingObject) LoadValuesAsynchronouslyForKeysCompletionHandler(keys []string, handler func()) { + objc.Call[objc.Void](a_, objc.Sel("loadValuesAsynchronouslyForKeys:completionHandler:"), keys, handler) +} diff --git a/macos/avfoundation/asynchronous_video_composition_request.gen.go b/macos/avfoundation/asynchronous_video_composition_request.gen.go index 5a029a88..d617370d 100644 --- a/macos/avfoundation/asynchronous_video_composition_request.gen.go +++ b/macos/avfoundation/asynchronous_video_composition_request.gen.go @@ -21,17 +21,17 @@ type _AsynchronousVideoCompositionRequestClass struct { // An interface definition for the [AsynchronousVideoCompositionRequest] class. type IAsynchronousVideoCompositionRequest interface { objc.IObject - FinishCancelledRequest() + SourceFrameByTrackID(trackID objc.IObject) corevideo.PixelBufferRef + FinishWithComposedVideoFrame(composedVideoFrame corevideo.PixelBufferRef) SourceTimedMetadataByTrackID(trackID objc.IObject) TimedMetadataGroup SourceSampleBufferByTrackID(trackID objc.IObject) coremedia.SampleBufferRef - FinishWithComposedVideoFrame(composedVideoFrame corevideo.PixelBufferRef) FinishWithError(error foundation.IError) - SourceFrameByTrackID(trackID objc.IObject) corevideo.PixelBufferRef - SourceSampleDataTrackIDs() []foundation.Number + FinishCancelledRequest() VideoCompositionInstruction() objc.Object + SourceSampleDataTrackIDs() []foundation.Number + SourceTrackIDs() []foundation.Number CompositionTime() coremedia.Time RenderContext() VideoCompositionRenderContext - SourceTrackIDs() []foundation.Number } // An object that contains information a video compositor needs to render an output pixel buffer. [Full Topic] @@ -67,11 +67,19 @@ func (a_ AsynchronousVideoCompositionRequest) Init() AsynchronousVideoCompositio return rv } -// Cancels the request to compose a video frame. [Full Topic] +// Returns a source pixel buffer for the track that contains the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1386261-finishcancelledrequest?language=objc -func (a_ AsynchronousVideoCompositionRequest) FinishCancelledRequest() { - objc.Call[objc.Void](a_, objc.Sel("finishCancelledRequest")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1390379-sourceframebytrackid?language=objc +func (a_ AsynchronousVideoCompositionRequest) SourceFrameByTrackID(trackID objc.IObject) corevideo.PixelBufferRef { + rv := objc.Call[corevideo.PixelBufferRef](a_, objc.Sel("sourceFrameByTrackID:"), trackID) + return rv +} + +// Finishes the request to compose the frame. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1387450-finishwithcomposedvideoframe?language=objc +func (a_ AsynchronousVideoCompositionRequest) FinishWithComposedVideoFrame(composedVideoFrame corevideo.PixelBufferRef) { + objc.Call[objc.Void](a_, objc.Sel("finishWithComposedVideoFrame:"), composedVideoFrame) } // Returns a source timed metadata group for the track that contains the specified identifier. [Full Topic] @@ -90,13 +98,6 @@ func (a_ AsynchronousVideoCompositionRequest) SourceSampleBufferByTrackID(trackI return rv } -// Finishes the request to compose the frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1387450-finishwithcomposedvideoframe?language=objc -func (a_ AsynchronousVideoCompositionRequest) FinishWithComposedVideoFrame(composedVideoFrame corevideo.PixelBufferRef) { - objc.Call[objc.Void](a_, objc.Sel("finishWithComposedVideoFrame:"), composedVideoFrame) -} - // Finishes the request with an error. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1390797-finishwitherror?language=objc @@ -104,11 +105,18 @@ func (a_ AsynchronousVideoCompositionRequest) FinishWithError(error foundation.I objc.Call[objc.Void](a_, objc.Sel("finishWithError:"), error) } -// Returns a source pixel buffer for the track that contains the specified identifier. [Full Topic] +// Cancels the request to compose a video frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1390379-sourceframebytrackid?language=objc -func (a_ AsynchronousVideoCompositionRequest) SourceFrameByTrackID(trackID objc.IObject) corevideo.PixelBufferRef { - rv := objc.Call[corevideo.PixelBufferRef](a_, objc.Sel("sourceFrameByTrackID:"), trackID) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1386261-finishcancelledrequest?language=objc +func (a_ AsynchronousVideoCompositionRequest) FinishCancelledRequest() { + objc.Call[objc.Void](a_, objc.Sel("finishCancelledRequest")) +} + +// A video composition instruction that indicates how to compose the frame. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1386672-videocompositioninstruction?language=objc +func (a_ AsynchronousVideoCompositionRequest) VideoCompositionInstruction() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("videoCompositionInstruction")) return rv } @@ -120,11 +128,11 @@ func (a_ AsynchronousVideoCompositionRequest) SourceSampleDataTrackIDs() []found return rv } -// A video composition instruction that indicates how to compose the frame. [Full Topic] +// The identifiers of tracks that contain source video. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1386672-videocompositioninstruction?language=objc -func (a_ AsynchronousVideoCompositionRequest) VideoCompositionInstruction() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("videoCompositionInstruction")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1388898-sourcetrackids?language=objc +func (a_ AsynchronousVideoCompositionRequest) SourceTrackIDs() []foundation.Number { + rv := objc.Call[[]foundation.Number](a_, objc.Sel("sourceTrackIDs")) return rv } @@ -143,11 +151,3 @@ func (a_ AsynchronousVideoCompositionRequest) RenderContext() VideoCompositionRe rv := objc.Call[VideoCompositionRenderContext](a_, objc.Sel("renderContext")) return rv } - -// The identifiers of tracks that contain source video. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronousvideocompositionrequest/1388898-sourcetrackids?language=objc -func (a_ AsynchronousVideoCompositionRequest) SourceTrackIDs() []foundation.Number { - rv := objc.Call[[]foundation.Number](a_, objc.Sel("sourceTrackIDs")) - return rv -} diff --git a/macos/avfoundation/audio_mix_input_parameters.gen.go b/macos/avfoundation/audio_mix_input_parameters.gen.go index 02f4bde2..adc85aff 100644 --- a/macos/avfoundation/audio_mix_input_parameters.gen.go +++ b/macos/avfoundation/audio_mix_input_parameters.gen.go @@ -20,9 +20,9 @@ type _AudioMixInputParametersClass struct { type IAudioMixInputParameters interface { objc.IObject GetVolumeRampForTimeStartVolumeEndVolumeTimeRange(time coremedia.Time, startVolume *float32, endVolume *float32, timeRange *coremedia.TimeRange) bool - AudioTapProcessor() objc.Object - TrackID() objc.Object AudioTimePitchAlgorithm() AudioTimePitchAlgorithm + TrackID() objc.Object + AudioTapProcessor() objc.Object } // An object that represents the parameters that you apply when adding an audio track to a mix. [Full Topic] @@ -66,11 +66,11 @@ func (a_ AudioMixInputParameters) GetVolumeRampForTimeStartVolumeEndVolumeTimeRa return rv } -// The audio processing tap associated with the track. [Full Topic] +// The processing algorithm used to manage audio pitch for scaled audio edits. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avaudiomixinputparameters/1388578-audiotapprocessor?language=objc -func (a_ AudioMixInputParameters) AudioTapProcessor() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("audioTapProcessor")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avaudiomixinputparameters/1387042-audiotimepitchalgorithm?language=objc +func (a_ AudioMixInputParameters) AudioTimePitchAlgorithm() AudioTimePitchAlgorithm { + rv := objc.Call[AudioTimePitchAlgorithm](a_, objc.Sel("audioTimePitchAlgorithm")) return rv } @@ -82,10 +82,10 @@ func (a_ AudioMixInputParameters) TrackID() objc.Object { return rv } -// The processing algorithm used to manage audio pitch for scaled audio edits. [Full Topic] +// The audio processing tap associated with the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avaudiomixinputparameters/1387042-audiotimepitchalgorithm?language=objc -func (a_ AudioMixInputParameters) AudioTimePitchAlgorithm() AudioTimePitchAlgorithm { - rv := objc.Call[AudioTimePitchAlgorithm](a_, objc.Sel("audioTimePitchAlgorithm")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avaudiomixinputparameters/1388578-audiotapprocessor?language=objc +func (a_ AudioMixInputParameters) AudioTapProcessor() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("audioTapProcessor")) return rv } diff --git a/macos/avfoundation/camera_calibration_data.gen.go b/macos/avfoundation/camera_calibration_data.gen.go index 2f9933a0..d2255be0 100644 --- a/macos/avfoundation/camera_calibration_data.gen.go +++ b/macos/avfoundation/camera_calibration_data.gen.go @@ -20,13 +20,13 @@ type _CameraCalibrationDataClass struct { // An interface definition for the [CameraCalibrationData] class. type ICameraCalibrationData interface { objc.IObject - PixelSize() float32 - IntrinsicMatrix() kernel.Matrix_float3x3 - InverseLensDistortionLookupTable() []byte LensDistortionCenter() coregraphics.Point - ExtrinsicMatrix() kernel.Matrix_float4x3 - IntrinsicMatrixReferenceDimensions() coregraphics.Size + InverseLensDistortionLookupTable() []byte LensDistortionLookupTable() []byte + IntrinsicMatrixReferenceDimensions() coregraphics.Size + IntrinsicMatrix() kernel.Matrix_float3x3 + ExtrinsicMatrix() kernel.Matrix_float4x3 + PixelSize() float32 } // Information about the camera characteristics used to capture images and depth data. [Full Topic] @@ -62,19 +62,11 @@ func (c_ CameraCalibrationData) Init() CameraCalibrationData { return rv } -// The size, in millimeters, of one image pixel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881128-pixelsize?language=objc -func (c_ CameraCalibrationData) PixelSize() float32 { - rv := objc.Call[float32](c_, objc.Sel("pixelSize")) - return rv -} - -// A matrix that relates a camera’s internal properties to an ideal pinhole-camera model. [Full Topic] +// The offset of the distortion center of the camera lens from the top-left corner of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881135-intrinsicmatrix?language=objc -func (c_ CameraCalibrationData) IntrinsicMatrix() kernel.Matrix_float3x3 { - rv := objc.Call[kernel.Matrix_float3x3](c_, objc.Sel("intrinsicMatrix")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881131-lensdistortioncenter?language=objc +func (c_ CameraCalibrationData) LensDistortionCenter() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("lensDistortionCenter")) return rv } @@ -86,19 +78,11 @@ func (c_ CameraCalibrationData) InverseLensDistortionLookupTable() []byte { return rv } -// The offset of the distortion center of the camera lens from the top-left corner of the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881131-lensdistortioncenter?language=objc -func (c_ CameraCalibrationData) LensDistortionCenter() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("lensDistortionCenter")) - return rv -} - -// A matrix relating a camera’s position and orientation to a world or scene coordinate system. [Full Topic] +// A map of floating-point values describing radial distortions imparted by the camera lens, for use in rectifying camera images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881130-extrinsicmatrix?language=objc -func (c_ CameraCalibrationData) ExtrinsicMatrix() kernel.Matrix_float4x3 { - rv := objc.Call[kernel.Matrix_float4x3](c_, objc.Sel("extrinsicMatrix")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881129-lensdistortionlookuptable?language=objc +func (c_ CameraCalibrationData) LensDistortionLookupTable() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("lensDistortionLookupTable")) return rv } @@ -110,10 +94,26 @@ func (c_ CameraCalibrationData) IntrinsicMatrixReferenceDimensions() coregraphic return rv } -// A map of floating-point values describing radial distortions imparted by the camera lens, for use in rectifying camera images. [Full Topic] +// A matrix that relates a camera’s internal properties to an ideal pinhole-camera model. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881129-lensdistortionlookuptable?language=objc -func (c_ CameraCalibrationData) LensDistortionLookupTable() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("lensDistortionLookupTable")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881135-intrinsicmatrix?language=objc +func (c_ CameraCalibrationData) IntrinsicMatrix() kernel.Matrix_float3x3 { + rv := objc.Call[kernel.Matrix_float3x3](c_, objc.Sel("intrinsicMatrix")) + return rv +} + +// A matrix relating a camera’s position and orientation to a world or scene coordinate system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881130-extrinsicmatrix?language=objc +func (c_ CameraCalibrationData) ExtrinsicMatrix() kernel.Matrix_float4x3 { + rv := objc.Call[kernel.Matrix_float4x3](c_, objc.Sel("extrinsicMatrix")) + return rv +} + +// The size, in millimeters, of one image pixel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881128-pixelsize?language=objc +func (c_ CameraCalibrationData) PixelSize() float32 { + rv := objc.Call[float32](c_, objc.Sel("pixelSize")) return rv } diff --git a/macos/avfoundation/caption.gen.go b/macos/avfoundation/caption.gen.go index 227f7943..388fe01c 100644 --- a/macos/avfoundation/caption.gen.go +++ b/macos/avfoundation/caption.gen.go @@ -21,17 +21,17 @@ type _CaptionClass struct { // An interface definition for the [Caption] class. type ICaption interface { objc.IObject + DecorationAtIndexRange(index int, outRange *foundation.Range) CaptionDecoration TextCombineAtIndexRange(index int, outRange *foundation.Range) CaptionTextCombine - BackgroundColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef + TextColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef + FontWeightAtIndexRange(index int, outRange *foundation.Range) CaptionFontWeight FontStyleAtIndexRange(index int, outRange *foundation.Range) CaptionFontStyle - DecorationAtIndexRange(index int, outRange *foundation.Range) CaptionDecoration RubyAtIndexRange(index int, outRange *foundation.Range) CaptionRuby - FontWeightAtIndexRange(index int, outRange *foundation.Range) CaptionFontWeight - TextColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef + BackgroundColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef + Animation() CaptionAnimation TextAlignment() CaptionTextAlignment - Region() CaptionRegion TimeRange() coremedia.TimeRange - Animation() CaptionAnimation + Region() CaptionRegion Text() string } @@ -82,6 +82,14 @@ func (c_ Caption) Init() Caption { return rv } +// Returns the text decoration at the index position. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752817-decorationatindex?language=objc +func (c_ Caption) DecorationAtIndexRange(index int, outRange *foundation.Range) CaptionDecoration { + rv := objc.Call[CaptionDecoration](c_, objc.Sel("decorationAtIndex:range:"), index, outRange) + return rv +} + // Returns the text combine at the index position. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752826-textcombineatindex?language=objc @@ -90,27 +98,27 @@ func (c_ Caption) TextCombineAtIndexRange(index int, outRange *foundation.Range) return rv } -// Returns the background color at the index position. [Full Topic] +// Returns the text color at the index position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752816-backgroundcoloratindex?language=objc -func (c_ Caption) BackgroundColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](c_, objc.Sel("backgroundColorAtIndex:range:"), index, outRange) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752825-textcoloratindex?language=objc +func (c_ Caption) TextColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](c_, objc.Sel("textColorAtIndex:range:"), index, outRange) return rv } -// Returns the font style and range at the index position. [Full Topic] +// Returns the font weight and range at the index position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752818-fontstyleatindex?language=objc -func (c_ Caption) FontStyleAtIndexRange(index int, outRange *foundation.Range) CaptionFontStyle { - rv := objc.Call[CaptionFontStyle](c_, objc.Sel("fontStyleAtIndex:range:"), index, outRange) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752819-fontweightatindex?language=objc +func (c_ Caption) FontWeightAtIndexRange(index int, outRange *foundation.Range) CaptionFontWeight { + rv := objc.Call[CaptionFontWeight](c_, objc.Sel("fontWeightAtIndex:range:"), index, outRange) return rv } -// Returns the text decoration at the index position. [Full Topic] +// Returns the font style and range at the index position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752817-decorationatindex?language=objc -func (c_ Caption) DecorationAtIndexRange(index int, outRange *foundation.Range) CaptionDecoration { - rv := objc.Call[CaptionDecoration](c_, objc.Sel("decorationAtIndex:range:"), index, outRange) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752818-fontstyleatindex?language=objc +func (c_ Caption) FontStyleAtIndexRange(index int, outRange *foundation.Range) CaptionFontStyle { + rv := objc.Call[CaptionFontStyle](c_, objc.Sel("fontStyleAtIndex:range:"), index, outRange) return rv } @@ -122,19 +130,19 @@ func (c_ Caption) RubyAtIndexRange(index int, outRange *foundation.Range) Captio return rv } -// Returns the font weight and range at the index position. [Full Topic] +// Returns the background color at the index position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752819-fontweightatindex?language=objc -func (c_ Caption) FontWeightAtIndexRange(index int, outRange *foundation.Range) CaptionFontWeight { - rv := objc.Call[CaptionFontWeight](c_, objc.Sel("fontWeightAtIndex:range:"), index, outRange) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752816-backgroundcoloratindex?language=objc +func (c_ Caption) BackgroundColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](c_, objc.Sel("backgroundColorAtIndex:range:"), index, outRange) return rv } -// Returns the text color at the index position. [Full Topic] +// The animation that the system applies to this caption. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752825-textcoloratindex?language=objc -func (c_ Caption) TextColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](c_, objc.Sel("textColorAtIndex:range:"), index, outRange) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752815-animation?language=objc +func (c_ Caption) Animation() CaptionAnimation { + rv := objc.Call[CaptionAnimation](c_, objc.Sel("animation")) return rv } @@ -146,14 +154,6 @@ func (c_ Caption) TextAlignment() CaptionTextAlignment { return rv } -// The region in which the caption exists. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752821-region?language=objc -func (c_ Caption) Region() CaptionRegion { - rv := objc.Call[CaptionRegion](c_, objc.Sel("region")) - return rv -} - // The time range over which the system presents the caption. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752827-timerange?language=objc @@ -162,11 +162,11 @@ func (c_ Caption) TimeRange() coremedia.TimeRange { return rv } -// The animation that the system applies to this caption. [Full Topic] +// The region in which the caption exists. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752815-animation?language=objc -func (c_ Caption) Animation() CaptionAnimation { - rv := objc.Call[CaptionAnimation](c_, objc.Sel("animation")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752821-region?language=objc +func (c_ Caption) Region() CaptionRegion { + rv := objc.Call[CaptionRegion](c_, objc.Sel("region")) return rv } diff --git a/macos/avfoundation/caption_conversion_validator.gen.go b/macos/avfoundation/caption_conversion_validator.gen.go index 46fb74fa..a2e22c02 100644 --- a/macos/avfoundation/caption_conversion_validator.gen.go +++ b/macos/avfoundation/caption_conversion_validator.gen.go @@ -21,10 +21,10 @@ type ICaptionConversionValidator interface { objc.IObject StopValidating() ValidateCaptionConversionWithWarningHandler(handler func(warning CaptionConversionWarning)) - Warnings() []CaptionConversionWarning + Captions() []Caption TimeRange() coremedia.TimeRange Status() CaptionConversionValidatorStatus - Captions() []Caption + Warnings() []CaptionConversionWarning } // An object that validates captions for a conversion operation. [Full Topic] @@ -100,11 +100,11 @@ func (c_ CaptionConversionValidator) ValidateCaptionConversionWithWarningHandler objc.Call[objc.Void](c_, objc.Sel("validateCaptionConversionWithWarningHandler:"), handler) } -// The collection of warnings the validator encountered. [Full Topic] +// The array of captions that the system validates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionconversionvalidator/3752942-warnings?language=objc -func (c_ CaptionConversionValidator) Warnings() []CaptionConversionWarning { - rv := objc.Call[[]CaptionConversionWarning](c_, objc.Sel("warnings")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionconversionvalidator/3752936-captions?language=objc +func (c_ CaptionConversionValidator) Captions() []Caption { + rv := objc.Call[[]Caption](c_, objc.Sel("captions")) return rv } @@ -124,10 +124,10 @@ func (c_ CaptionConversionValidator) Status() CaptionConversionValidatorStatus { return rv } -// The array of captions that the system validates. [Full Topic] +// The collection of warnings the validator encountered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionconversionvalidator/3752936-captions?language=objc -func (c_ CaptionConversionValidator) Captions() []Caption { - rv := objc.Call[[]Caption](c_, objc.Sel("captions")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionconversionvalidator/3752942-warnings?language=objc +func (c_ CaptionConversionValidator) Warnings() []CaptionConversionWarning { + rv := objc.Call[[]CaptionConversionWarning](c_, objc.Sel("warnings")) return rv } diff --git a/macos/avfoundation/caption_conversion_warning.gen.go b/macos/avfoundation/caption_conversion_warning.gen.go index 2e93543f..c7cd0062 100644 --- a/macos/avfoundation/caption_conversion_warning.gen.go +++ b/macos/avfoundation/caption_conversion_warning.gen.go @@ -19,9 +19,9 @@ type _CaptionConversionWarningClass struct { // An interface definition for the [CaptionConversionWarning] class. type ICaptionConversionWarning interface { objc.IObject - Adjustment() CaptionConversionAdjustment - RangeOfCaptions() foundation.Range WarningType() CaptionConversionWarningType + RangeOfCaptions() foundation.Range + Adjustment() CaptionConversionAdjustment } // An object that represents a conversion warning produced by a validator. [Full Topic] @@ -57,11 +57,11 @@ func (c_ CaptionConversionWarning) Init() CaptionConversionWarning { return rv } -// A correction the converter makes when it converts a caption to a specific format. [Full Topic] +// A type that indicates the nature of the validation warning. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionconversionwarning/3752949-adjustment?language=objc -func (c_ CaptionConversionWarning) Adjustment() CaptionConversionAdjustment { - rv := objc.Call[CaptionConversionAdjustment](c_, objc.Sel("adjustment")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionconversionwarning/3752951-warningtype?language=objc +func (c_ CaptionConversionWarning) WarningType() CaptionConversionWarningType { + rv := objc.Call[CaptionConversionWarningType](c_, objc.Sel("warningType")) return rv } @@ -73,10 +73,10 @@ func (c_ CaptionConversionWarning) RangeOfCaptions() foundation.Range { return rv } -// A type that indicates the nature of the validation warning. [Full Topic] +// A correction the converter makes when it converts a caption to a specific format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionconversionwarning/3752951-warningtype?language=objc -func (c_ CaptionConversionWarning) WarningType() CaptionConversionWarningType { - rv := objc.Call[CaptionConversionWarningType](c_, objc.Sel("warningType")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionconversionwarning/3752949-adjustment?language=objc +func (c_ CaptionConversionWarning) Adjustment() CaptionConversionAdjustment { + rv := objc.Call[CaptionConversionAdjustment](c_, objc.Sel("adjustment")) return rv } diff --git a/macos/avfoundation/caption_group.gen.go b/macos/avfoundation/caption_group.gen.go index 6db641d7..632be4bc 100644 --- a/macos/avfoundation/caption_group.gen.go +++ b/macos/avfoundation/caption_group.gen.go @@ -19,8 +19,8 @@ type _CaptionGroupClass struct { // An interface definition for the [CaptionGroup] class. type ICaptionGroup interface { objc.IObject - TimeRange() coremedia.TimeRange Captions() []Caption + TimeRange() coremedia.TimeRange } // An object that represents zero or more captions that intersect in time. [Full Topic] @@ -84,14 +84,6 @@ func (c_ CaptionGroup) Init() CaptionGroup { return rv } -// The time range of the caption group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptiongroup/3752963-timerange?language=objc -func (c_ CaptionGroup) TimeRange() coremedia.TimeRange { - rv := objc.Call[coremedia.TimeRange](c_, objc.Sel("timeRange")) - return rv -} - // The captions associated with the caption group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptiongroup/3752960-captions?language=objc @@ -99,3 +91,11 @@ func (c_ CaptionGroup) Captions() []Caption { rv := objc.Call[[]Caption](c_, objc.Sel("captions")) return rv } + +// The time range of the caption group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptiongroup/3752963-timerange?language=objc +func (c_ CaptionGroup) TimeRange() coremedia.TimeRange { + rv := objc.Call[coremedia.TimeRange](c_, objc.Sel("timeRange")) + return rv +} diff --git a/macos/avfoundation/caption_grouper.gen.go b/macos/avfoundation/caption_grouper.gen.go index 958fee24..18bc6045 100644 --- a/macos/avfoundation/caption_grouper.gen.go +++ b/macos/avfoundation/caption_grouper.gen.go @@ -19,8 +19,8 @@ type _CaptionGrouperClass struct { // An interface definition for the [CaptionGrouper] class. type ICaptionGrouper interface { objc.IObject - FlushAddedCaptionsIntoGroupsUpToTime(upToTime coremedia.Time) []CaptionGroup AddCaption(input ICaption) + FlushAddedCaptionsIntoGroupsUpToTime(upToTime coremedia.Time) []CaptionGroup } // An object that analyzes the temporal overlaps of caption objects to create caption groups for each span of concurrent captions. [Full Topic] @@ -56,6 +56,13 @@ func (c_ CaptionGrouper) Init() CaptionGrouper { return rv } +// Adds a caption to the pending group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptiongrouper/3752965-addcaption?language=objc +func (c_ CaptionGrouper) AddCaption(input ICaption) { + objc.Call[objc.Void](c_, objc.Sel("addCaption:"), input) +} + // Creates caption groups for the captions you enqueue up to the time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptiongrouper/3752966-flushaddedcaptionsintogroupsupto?language=objc @@ -63,10 +70,3 @@ func (c_ CaptionGrouper) FlushAddedCaptionsIntoGroupsUpToTime(upToTime coremedia rv := objc.Call[[]CaptionGroup](c_, objc.Sel("flushAddedCaptionsIntoGroupsUpToTime:"), upToTime) return rv } - -// Adds a caption to the pending group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptiongrouper/3752965-addcaption?language=objc -func (c_ CaptionGrouper) AddCaption(input ICaption) { - objc.Call[objc.Void](c_, objc.Sel("addCaption:"), input) -} diff --git a/macos/avfoundation/caption_region.gen.go b/macos/avfoundation/caption_region.gen.go index 37ac46bb..7523e43a 100644 --- a/macos/avfoundation/caption_region.gen.go +++ b/macos/avfoundation/caption_region.gen.go @@ -18,12 +18,12 @@ type _CaptionRegionClass struct { // An interface definition for the [CaptionRegion] class. type ICaptionRegion interface { objc.IObject - Identifier() string - Scroll() CaptionRegionScroll - DisplayAlignment() CaptionRegionDisplayAlignment Origin() CaptionPoint - Size() CaptionSize + Scroll() CaptionRegionScroll WritingMode() CaptionRegionWritingMode + Identifier() string + Size() CaptionSize + DisplayAlignment() CaptionRegionDisplayAlignment } // An object that represents the region in which the system presents a caption. [Full Topic] @@ -59,42 +59,42 @@ func (c_ CaptionRegion) Init() CaptionRegion { return rv } -// The bottom region for iTT format captions. [Full Topic] +// The bottom caption region for SubRip Text (SRT) format captions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857623-appleittbottomregion?language=objc -func (cc _CaptionRegionClass) AppleITTBottomRegion() CaptionRegion { - rv := objc.Call[CaptionRegion](cc, objc.Sel("appleITTBottomRegion")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857629-subriptextbottomregion?language=objc +func (cc _CaptionRegionClass) SubRipTextBottomRegion() CaptionRegion { + rv := objc.Call[CaptionRegion](cc, objc.Sel("subRipTextBottomRegion")) return rv } -// The bottom region for iTT format captions. [Full Topic] +// The bottom caption region for SubRip Text (SRT) format captions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857623-appleittbottomregion?language=objc -func CaptionRegion_AppleITTBottomRegion() CaptionRegion { - return CaptionRegionClass.AppleITTBottomRegion() +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857629-subriptextbottomregion?language=objc +func CaptionRegion_SubRipTextBottomRegion() CaptionRegion { + return CaptionRegionClass.SubRipTextBottomRegion() } -// A string that identifies the region. [Full Topic] +// The right region for iTT format captions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3752853-identifier?language=objc -func (c_ CaptionRegion) Identifier() string { - rv := objc.Call[string](c_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857625-appleittrightregion?language=objc +func (cc _CaptionRegionClass) AppleITTRightRegion() CaptionRegion { + rv := objc.Call[CaptionRegion](cc, objc.Sel("appleITTRightRegion")) return rv } -// The bottom caption region for SubRip Text (SRT) format captions. [Full Topic] +// The right region for iTT format captions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857629-subriptextbottomregion?language=objc -func (cc _CaptionRegionClass) SubRipTextBottomRegion() CaptionRegion { - rv := objc.Call[CaptionRegion](cc, objc.Sel("subRipTextBottomRegion")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857625-appleittrightregion?language=objc +func CaptionRegion_AppleITTRightRegion() CaptionRegion { + return CaptionRegionClass.AppleITTRightRegion() } -// The bottom caption region for SubRip Text (SRT) format captions. [Full Topic] +// The region’s top-left position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857629-subriptextbottomregion?language=objc -func CaptionRegion_SubRipTextBottomRegion() CaptionRegion { - return CaptionRegionClass.SubRipTextBottomRegion() +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857627-origin?language=objc +func (c_ CaptionRegion) Origin() CaptionPoint { + rv := objc.Call[CaptionPoint](c_, objc.Sel("origin")) + return rv } // The scroll mode of the region. [Full Topic] @@ -105,27 +105,27 @@ func (c_ CaptionRegion) Scroll() CaptionRegionScroll { return rv } -// The alignment of lines for the region. [Full Topic] +// The top region for iTT format captions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3752850-displayalignment?language=objc -func (c_ CaptionRegion) DisplayAlignment() CaptionRegionDisplayAlignment { - rv := objc.Call[CaptionRegionDisplayAlignment](c_, objc.Sel("displayAlignment")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857626-appleitttopregion?language=objc +func (cc _CaptionRegionClass) AppleITTTopRegion() CaptionRegion { + rv := objc.Call[CaptionRegion](cc, objc.Sel("appleITTTopRegion")) return rv } -// The right region for iTT format captions. [Full Topic] +// The top region for iTT format captions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857625-appleittrightregion?language=objc -func (cc _CaptionRegionClass) AppleITTRightRegion() CaptionRegion { - rv := objc.Call[CaptionRegion](cc, objc.Sel("appleITTRightRegion")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857626-appleitttopregion?language=objc +func CaptionRegion_AppleITTTopRegion() CaptionRegion { + return CaptionRegionClass.AppleITTTopRegion() } -// The right region for iTT format captions. [Full Topic] +// The block and inline progression direction of the region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857625-appleittrightregion?language=objc -func CaptionRegion_AppleITTRightRegion() CaptionRegion { - return CaptionRegionClass.AppleITTRightRegion() +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3752857-writingmode?language=objc +func (c_ CaptionRegion) WritingMode() CaptionRegionWritingMode { + rv := objc.Call[CaptionRegionWritingMode](c_, objc.Sel("writingMode")) + return rv } // The left region for iTT format captions. [Full Topic] @@ -143,41 +143,41 @@ func CaptionRegion_AppleITTLeftRegion() CaptionRegion { return CaptionRegionClass.AppleITTLeftRegion() } -// The region’s top-left position. [Full Topic] +// The bottom region for iTT format captions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857627-origin?language=objc -func (c_ CaptionRegion) Origin() CaptionPoint { - rv := objc.Call[CaptionPoint](c_, objc.Sel("origin")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857623-appleittbottomregion?language=objc +func (cc _CaptionRegionClass) AppleITTBottomRegion() CaptionRegion { + rv := objc.Call[CaptionRegion](cc, objc.Sel("appleITTBottomRegion")) return rv } -// The height and width of the region. [Full Topic] +// The bottom region for iTT format captions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857628-size?language=objc -func (c_ CaptionRegion) Size() CaptionSize { - rv := objc.Call[CaptionSize](c_, objc.Sel("size")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857623-appleittbottomregion?language=objc +func CaptionRegion_AppleITTBottomRegion() CaptionRegion { + return CaptionRegionClass.AppleITTBottomRegion() } -// The block and inline progression direction of the region. [Full Topic] +// A string that identifies the region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3752857-writingmode?language=objc -func (c_ CaptionRegion) WritingMode() CaptionRegionWritingMode { - rv := objc.Call[CaptionRegionWritingMode](c_, objc.Sel("writingMode")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3752853-identifier?language=objc +func (c_ CaptionRegion) Identifier() string { + rv := objc.Call[string](c_, objc.Sel("identifier")) return rv } -// The top region for iTT format captions. [Full Topic] +// The height and width of the region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857626-appleitttopregion?language=objc -func (cc _CaptionRegionClass) AppleITTTopRegion() CaptionRegion { - rv := objc.Call[CaptionRegion](cc, objc.Sel("appleITTTopRegion")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857628-size?language=objc +func (c_ CaptionRegion) Size() CaptionSize { + rv := objc.Call[CaptionSize](c_, objc.Sel("size")) return rv } -// The top region for iTT format captions. [Full Topic] +// The alignment of lines for the region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857626-appleitttopregion?language=objc -func CaptionRegion_AppleITTTopRegion() CaptionRegion { - return CaptionRegionClass.AppleITTTopRegion() +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3752850-displayalignment?language=objc +func (c_ CaptionRegion) DisplayAlignment() CaptionRegionDisplayAlignment { + rv := objc.Call[CaptionRegionDisplayAlignment](c_, objc.Sel("displayAlignment")) + return rv } diff --git a/macos/avfoundation/caption_renderer.gen.go b/macos/avfoundation/caption_renderer.gen.go index 6e7fa12f..273979cf 100644 --- a/macos/avfoundation/caption_renderer.gen.go +++ b/macos/avfoundation/caption_renderer.gen.go @@ -20,8 +20,8 @@ type _CaptionRendererClass struct { // An interface definition for the [CaptionRenderer] class. type ICaptionRenderer interface { objc.IObject - CaptionSceneChangesInRange(consideredTimeRange coremedia.TimeRange) []CaptionRendererScene RenderInContextForTime(ctx coregraphics.ContextRef, time coremedia.Time) + CaptionSceneChangesInRange(consideredTimeRange coremedia.TimeRange) []CaptionRendererScene Captions() []Caption SetCaptions(value []ICaption) Bounds() coregraphics.Rect @@ -61,6 +61,13 @@ func (c_ CaptionRenderer) Init() CaptionRenderer { return rv } +// Draw the captions for the time you specify. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionrenderer/3752971-renderincontext?language=objc +func (c_ CaptionRenderer) RenderInContextForTime(ctx coregraphics.ContextRef, time coremedia.Time) { + objc.Call[objc.Void](c_, objc.Sel("renderInContext:forTime:"), ctx, time) +} + // Determine render time ranges within an enclosing time range to account for visual changes among captions. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionrenderer/3752969-captionscenechangesinrange?language=objc @@ -69,13 +76,6 @@ func (c_ CaptionRenderer) CaptionSceneChangesInRange(consideredTimeRange coremed return rv } -// Draw the captions for the time you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionrenderer/3752971-renderincontext?language=objc -func (c_ CaptionRenderer) RenderInContextForTime(ctx coregraphics.ContextRef, time coremedia.Time) { - objc.Call[objc.Void](c_, objc.Sel("renderInContext:forTime:"), ctx, time) -} - // The captions to render. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionrenderer/3752970-captions?language=objc diff --git a/macos/avfoundation/caption_renderer_scene.gen.go b/macos/avfoundation/caption_renderer_scene.gen.go index 0b3fd959..5326e7fa 100644 --- a/macos/avfoundation/caption_renderer_scene.gen.go +++ b/macos/avfoundation/caption_renderer_scene.gen.go @@ -19,9 +19,9 @@ type _CaptionRendererSceneClass struct { // An interface definition for the [CaptionRendererScene] class. type ICaptionRendererScene interface { objc.IObject + HasActiveCaptions() bool TimeRange() coremedia.TimeRange NeedsPeriodicRefresh() bool - HasActiveCaptions() bool } // An object that holds a time range and an associated state which indicates when the renderer draws output. [Full Topic] @@ -57,6 +57,14 @@ func (c_ CaptionRendererScene) Init() CaptionRendererScene { return rv } +// A Boolean value that indicates whether the scene contains one or more active captions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionrendererscene/3752973-hasactivecaptions?language=objc +func (c_ CaptionRendererScene) HasActiveCaptions() bool { + rv := objc.Call[bool](c_, objc.Sel("hasActiveCaptions")) + return rv +} + // The time range during which the system doesn’t modify the scene. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionrendererscene/3752975-timerange?language=objc @@ -72,11 +80,3 @@ func (c_ CaptionRendererScene) NeedsPeriodicRefresh() bool { rv := objc.Call[bool](c_, objc.Sel("needsPeriodicRefresh")) return rv } - -// A Boolean value that indicates whether the scene contains one or more active captions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionrendererscene/3752973-hasactivecaptions?language=objc -func (c_ CaptionRendererScene) HasActiveCaptions() bool { - rv := objc.Call[bool](c_, objc.Sel("hasActiveCaptions")) - return rv -} diff --git a/macos/avfoundation/caption_ruby.gen.go b/macos/avfoundation/caption_ruby.gen.go index 84e9f0e7..3706b345 100644 --- a/macos/avfoundation/caption_ruby.gen.go +++ b/macos/avfoundation/caption_ruby.gen.go @@ -18,9 +18,9 @@ type _CaptionRubyClass struct { // An interface definition for the [CaptionRuby] class. type ICaptionRuby interface { objc.IObject + Alignment() CaptionRubyAlignment Position() CaptionRubyPosition Text() string - Alignment() CaptionRubyAlignment } // An object that presents ruby characters. [Full Topic] @@ -36,20 +36,6 @@ func CaptionRubyFrom(ptr unsafe.Pointer) CaptionRuby { } } -func (c_ CaptionRuby) InitWithTextPositionAlignment(text string, position CaptionRubyPosition, alignment CaptionRubyAlignment) CaptionRuby { - rv := objc.Call[CaptionRuby](c_, objc.Sel("initWithText:position:alignment:"), text, position, alignment) - return rv -} - -// Creates ruby text with position and alignment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionruby/3752871-initwithtext?language=objc -func NewCaptionRubyWithTextPositionAlignment(text string, position CaptionRubyPosition, alignment CaptionRubyAlignment) CaptionRuby { - instance := CaptionRubyClass.Alloc().InitWithTextPositionAlignment(text, position, alignment) - instance.Autorelease() - return instance -} - func (c_ CaptionRuby) InitWithText(text string) CaptionRuby { rv := objc.Call[CaptionRuby](c_, objc.Sel("initWithText:"), text) return rv @@ -84,6 +70,14 @@ func (c_ CaptionRuby) Init() CaptionRuby { return rv } +// The ruby text alignment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionruby/3752869-alignment?language=objc +func (c_ CaptionRuby) Alignment() CaptionRubyAlignment { + rv := objc.Call[CaptionRubyAlignment](c_, objc.Sel("alignment")) + return rv +} + // The ruby text position. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionruby/3752872-position?language=objc @@ -99,11 +93,3 @@ func (c_ CaptionRuby) Text() string { rv := objc.Call[string](c_, objc.Sel("text")) return rv } - -// The ruby text alignment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionruby/3752869-alignment?language=objc -func (c_ CaptionRuby) Alignment() CaptionRubyAlignment { - rv := objc.Call[CaptionRubyAlignment](c_, objc.Sel("alignment")) - return rv -} diff --git a/macos/avfoundation/capture_audio_channel.gen.go b/macos/avfoundation/capture_audio_channel.gen.go index 3e94e597..4b707597 100644 --- a/macos/avfoundation/capture_audio_channel.gen.go +++ b/macos/avfoundation/capture_audio_channel.gen.go @@ -20,10 +20,10 @@ type ICaptureAudioChannel interface { objc.IObject Volume() float32 SetVolume(value float32) - IsEnabled() bool - SetEnabled(value bool) AveragePowerLevel() float32 PeakHoldLevel() float32 + IsEnabled() bool + SetEnabled(value bool) } // An object that monitors average and peak power levels for an audio channel in a capture connection. [Full Topic] @@ -74,21 +74,6 @@ func (c_ CaptureAudioChannel) SetVolume(value float32) { objc.Call[objc.Void](c_, objc.Sel("setVolume:"), value) } -// A Boolean value that indicates whether the channel is in an enabled state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiochannel/1388574-enabled?language=objc -func (c_ CaptureAudioChannel) IsEnabled() bool { - rv := objc.Call[bool](c_, objc.Sel("isEnabled")) - return rv -} - -// A Boolean value that indicates whether the channel is in an enabled state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiochannel/1388574-enabled?language=objc -func (c_ CaptureAudioChannel) SetEnabled(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) -} - // The instantaneous average power level in decibels. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiochannel/1387368-averagepowerlevel?language=objc @@ -104,3 +89,18 @@ func (c_ CaptureAudioChannel) PeakHoldLevel() float32 { rv := objc.Call[float32](c_, objc.Sel("peakHoldLevel")) return rv } + +// A Boolean value that indicates whether the channel is in an enabled state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiochannel/1388574-enabled?language=objc +func (c_ CaptureAudioChannel) IsEnabled() bool { + rv := objc.Call[bool](c_, objc.Sel("isEnabled")) + return rv +} + +// A Boolean value that indicates whether the channel is in an enabled state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiochannel/1388574-enabled?language=objc +func (c_ CaptureAudioChannel) SetEnabled(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) +} diff --git a/macos/avfoundation/capture_audio_data_output.gen.go b/macos/avfoundation/capture_audio_data_output.gen.go index 819c654b..37469e28 100644 --- a/macos/avfoundation/capture_audio_data_output.gen.go +++ b/macos/avfoundation/capture_audio_data_output.gen.go @@ -19,9 +19,9 @@ type _CaptureAudioDataOutputClass struct { // An interface definition for the [CaptureAudioDataOutput] class. type ICaptureAudioDataOutput interface { ICaptureOutput + RecommendedAudioSettingsForAssetWriterWithOutputFileType(outputFileType FileType) map[string]objc.Object SetSampleBufferDelegateQueue(sampleBufferDelegate PCaptureAudioDataOutputSampleBufferDelegate, sampleBufferCallbackQueue dispatch.Queue) SetSampleBufferDelegateObjectQueue(sampleBufferDelegateObject objc.IObject, sampleBufferCallbackQueue dispatch.Queue) - RecommendedAudioSettingsForAssetWriterWithOutputFileType(outputFileType FileType) map[string]objc.Object AudioSettings() map[string]objc.Object SetAudioSettings(value map[string]objc.IObject) SampleBufferCallbackQueue() dispatch.Queue @@ -41,11 +41,6 @@ func CaptureAudioDataOutputFrom(ptr unsafe.Pointer) CaptureAudioDataOutput { } } -func (c_ CaptureAudioDataOutput) Init() CaptureAudioDataOutput { - rv := objc.Call[CaptureAudioDataOutput](c_, objc.Sel("init")) - return rv -} - func (cc _CaptureAudioDataOutputClass) New() CaptureAudioDataOutput { rv := objc.Call[CaptureAudioDataOutput](cc, objc.Sel("new")) rv.Autorelease() @@ -56,11 +51,24 @@ func NewCaptureAudioDataOutput() CaptureAudioDataOutput { return CaptureAudioDataOutputClass.New() } +func (c_ CaptureAudioDataOutput) Init() CaptureAudioDataOutput { + rv := objc.Call[CaptureAudioDataOutput](c_, objc.Sel("init")) + return rv +} + func (cc _CaptureAudioDataOutputClass) Alloc() CaptureAudioDataOutput { rv := objc.Call[CaptureAudioDataOutput](cc, objc.Sel("alloc")) return rv } +// Specifies the recommended settings for use with an AVAssetWriterInput. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiodataoutput/1616308-recommendedaudiosettingsforasset?language=objc +func (c_ CaptureAudioDataOutput) RecommendedAudioSettingsForAssetWriterWithOutputFileType(outputFileType FileType) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](c_, objc.Sel("recommendedAudioSettingsForAssetWriterWithOutputFileType:"), outputFileType) + return rv +} + // Sets the delegate that will accept captured buffers and the dispatch queue on which the delegate will be called. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiodataoutput/1390651-setsamplebufferdelegate?language=objc @@ -76,14 +84,6 @@ func (c_ CaptureAudioDataOutput) SetSampleBufferDelegateObjectQueue(sampleBuffer objc.Call[objc.Void](c_, objc.Sel("setSampleBufferDelegate:queue:"), sampleBufferDelegateObject, sampleBufferCallbackQueue) } -// Specifies the recommended settings for use with an AVAssetWriterInput. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiodataoutput/1616308-recommendedaudiosettingsforasset?language=objc -func (c_ CaptureAudioDataOutput) RecommendedAudioSettingsForAssetWriterWithOutputFileType(outputFileType FileType) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](c_, objc.Sel("recommendedAudioSettingsForAssetWriterWithOutputFileType:"), outputFileType) - return rv -} - // The settings used to decode or re-encode audio before it’s output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiodataoutput/1388527-audiosettings?language=objc diff --git a/macos/avfoundation/capture_audio_file_output.gen.go b/macos/avfoundation/capture_audio_file_output.gen.go index 8f6a36a3..5af5ec7f 100644 --- a/macos/avfoundation/capture_audio_file_output.gen.go +++ b/macos/avfoundation/capture_audio_file_output.gen.go @@ -21,10 +21,10 @@ type ICaptureAudioFileOutput interface { ICaptureFileOutput StartRecordingToOutputFileURLOutputFileTypeRecordingDelegate(outputFileURL foundation.IURL, fileType FileType, delegate PCaptureFileOutputRecordingDelegate) StartRecordingToOutputFileURLOutputFileTypeRecordingDelegateObject(outputFileURL foundation.IURL, fileType FileType, delegateObject objc.IObject) - AudioSettings() map[string]objc.Object - SetAudioSettings(value map[string]objc.IObject) Metadata() []MetadataItem SetMetadata(value []IMetadataItem) + AudioSettings() map[string]objc.Object + SetAudioSettings(value map[string]objc.IObject) } // A capture output that records audio and saves the recorded audio to a file. [Full Topic] @@ -60,21 +60,6 @@ func (cc _CaptureAudioFileOutputClass) Alloc() CaptureAudioFileOutput { return rv } -// Returns an array containing UTIs identifying the file types AVCaptureAudioFileOutput can write. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiofileoutput/1390895-availableoutputfiletypes?language=objc -func (cc _CaptureAudioFileOutputClass) AvailableOutputFileTypes() []FileType { - rv := objc.Call[[]FileType](cc, objc.Sel("availableOutputFileTypes")) - return rv -} - -// Returns an array containing UTIs identifying the file types AVCaptureAudioFileOutput can write. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiofileoutput/1390895-availableoutputfiletypes?language=objc -func CaptureAudioFileOutput_AvailableOutputFileTypes() []FileType { - return CaptureAudioFileOutputClass.AvailableOutputFileTypes() -} - // Tells the receiver to start recording to a new file of the specified format, and specifies a delegate that will be notified when recording is finished. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiofileoutput/1387420-startrecordingtooutputfileurl?language=objc @@ -90,19 +75,19 @@ func (c_ CaptureAudioFileOutput) StartRecordingToOutputFileURLOutputFileTypeReco objc.Call[objc.Void](c_, objc.Sel("startRecordingToOutputFileURL:outputFileType:recordingDelegate:"), outputFileURL, fileType, delegateObject) } -// The settings used to decode or re-encode audio before it is output by the receiver. [Full Topic] +// Returns an array containing UTIs identifying the file types AVCaptureAudioFileOutput can write. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiofileoutput/1389958-audiosettings?language=objc -func (c_ CaptureAudioFileOutput) AudioSettings() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](c_, objc.Sel("audioSettings")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiofileoutput/1390895-availableoutputfiletypes?language=objc +func (cc _CaptureAudioFileOutputClass) AvailableOutputFileTypes() []FileType { + rv := objc.Call[[]FileType](cc, objc.Sel("availableOutputFileTypes")) return rv } -// The settings used to decode or re-encode audio before it is output by the receiver. [Full Topic] +// Returns an array containing UTIs identifying the file types AVCaptureAudioFileOutput can write. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiofileoutput/1389958-audiosettings?language=objc -func (c_ CaptureAudioFileOutput) SetAudioSettings(value map[string]objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setAudioSettings:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiofileoutput/1390895-availableoutputfiletypes?language=objc +func CaptureAudioFileOutput_AvailableOutputFileTypes() []FileType { + return CaptureAudioFileOutputClass.AvailableOutputFileTypes() } // A collection of metadata to be written to the receiver's output files. [Full Topic] @@ -119,3 +104,18 @@ func (c_ CaptureAudioFileOutput) Metadata() []MetadataItem { func (c_ CaptureAudioFileOutput) SetMetadata(value []IMetadataItem) { objc.Call[objc.Void](c_, objc.Sel("setMetadata:"), value) } + +// The settings used to decode or re-encode audio before it is output by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiofileoutput/1389958-audiosettings?language=objc +func (c_ CaptureAudioFileOutput) AudioSettings() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](c_, objc.Sel("audioSettings")) + return rv +} + +// The settings used to decode or re-encode audio before it is output by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiofileoutput/1389958-audiosettings?language=objc +func (c_ CaptureAudioFileOutput) SetAudioSettings(value map[string]objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setAudioSettings:"), value) +} diff --git a/macos/avfoundation/capture_audio_preview_output.gen.go b/macos/avfoundation/capture_audio_preview_output.gen.go index 6c033824..a1e8e71b 100644 --- a/macos/avfoundation/capture_audio_preview_output.gen.go +++ b/macos/avfoundation/capture_audio_preview_output.gen.go @@ -18,10 +18,10 @@ type _CaptureAudioPreviewOutputClass struct { // An interface definition for the [CaptureAudioPreviewOutput] class. type ICaptureAudioPreviewOutput interface { ICaptureOutput - OutputDeviceUniqueID() string - SetOutputDeviceUniqueID(value string) Volume() float32 SetVolume(value float32) + OutputDeviceUniqueID() string + SetOutputDeviceUniqueID(value string) } // A capture output that provides a preview of the captured audio. [Full Topic] @@ -57,21 +57,6 @@ func (cc _CaptureAudioPreviewOutputClass) Alloc() CaptureAudioPreviewOutput { return rv } -// The unique identifier of the Core Audio output device to use for audio preview. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiopreviewoutput/1390610-outputdeviceuniqueid?language=objc -func (c_ CaptureAudioPreviewOutput) OutputDeviceUniqueID() string { - rv := objc.Call[string](c_, objc.Sel("outputDeviceUniqueID")) - return rv -} - -// The unique identifier of the Core Audio output device to use for audio preview. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiopreviewoutput/1390610-outputdeviceuniqueid?language=objc -func (c_ CaptureAudioPreviewOutput) SetOutputDeviceUniqueID(value string) { - objc.Call[objc.Void](c_, objc.Sel("setOutputDeviceUniqueID:"), value) -} - // The output volume of the audio preview. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiopreviewoutput/1390510-volume?language=objc @@ -86,3 +71,18 @@ func (c_ CaptureAudioPreviewOutput) Volume() float32 { func (c_ CaptureAudioPreviewOutput) SetVolume(value float32) { objc.Call[objc.Void](c_, objc.Sel("setVolume:"), value) } + +// The unique identifier of the Core Audio output device to use for audio preview. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiopreviewoutput/1390610-outputdeviceuniqueid?language=objc +func (c_ CaptureAudioPreviewOutput) OutputDeviceUniqueID() string { + rv := objc.Call[string](c_, objc.Sel("outputDeviceUniqueID")) + return rv +} + +// The unique identifier of the Core Audio output device to use for audio preview. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiopreviewoutput/1390610-outputdeviceuniqueid?language=objc +func (c_ CaptureAudioPreviewOutput) SetOutputDeviceUniqueID(value string) { + objc.Call[objc.Void](c_, objc.Sel("setOutputDeviceUniqueID:"), value) +} diff --git a/macos/avfoundation/capture_connection.gen.go b/macos/avfoundation/capture_connection.gen.go index c1c48436..cebd24fc 100644 --- a/macos/avfoundation/capture_connection.gen.go +++ b/macos/avfoundation/capture_connection.gen.go @@ -19,27 +19,27 @@ type _CaptureConnectionClass struct { // An interface definition for the [CaptureConnection] class. type ICaptureConnection interface { objc.IObject + IsVideoMirrored() bool + SetVideoMirrored(value bool) AudioChannels() []CaptureAudioChannel + VideoFieldMode() VideoFieldMode + SetVideoFieldMode(value VideoFieldMode) IsVideoMirroringSupported() bool - VideoMaxFrameDuration() coremedia.Time - SetVideoMaxFrameDuration(value coremedia.Time) - VideoMinFrameDuration() coremedia.Time - SetVideoMinFrameDuration(value coremedia.Time) + IsVideoMaxFrameDurationSupported() bool VideoPreviewLayer() CaptureVideoPreviewLayer - IsVideoMirrored() bool - SetVideoMirrored(value bool) - Output() CaptureOutput - InputPorts() []CaptureInputPort IsActive() bool + Output() CaptureOutput + VideoMaxFrameDuration() coremedia.Time + SetVideoMaxFrameDuration(value coremedia.Time) + IsVideoFieldModeSupported() bool AutomaticallyAdjustsVideoMirroring() bool SetAutomaticallyAdjustsVideoMirroring(value bool) - IsVideoFieldModeSupported() bool - IsVideoMaxFrameDurationSupported() bool - VideoFieldMode() VideoFieldMode - SetVideoFieldMode(value VideoFieldMode) + IsVideoMinFrameDurationSupported() bool IsEnabled() bool SetEnabled(value bool) - IsVideoMinFrameDurationSupported() bool + InputPorts() []CaptureInputPort + VideoMinFrameDuration() coremedia.Time + SetVideoMinFrameDuration(value coremedia.Time) } // An object that represents a connection from a capture input to a capture output. [Full Topic] @@ -55,16 +55,18 @@ func CaptureConnectionFrom(ptr unsafe.Pointer) CaptureConnection { } } -func (cc _CaptureConnectionClass) ConnectionWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { - rv := objc.Call[CaptureConnection](cc, objc.Sel("connectionWithInputPort:videoPreviewLayer:"), port, layer) +func (c_ CaptureConnection) InitWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { + rv := objc.Call[CaptureConnection](c_, objc.Sel("initWithInputPort:videoPreviewLayer:"), port, layer) return rv } -// Returns a capture connection that represents a connection between an input port and a video preview layer. [Full Topic] +// Creates a capture connection that represents a connection between an input port and a video preview layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1444495-connectionwithinputport?language=objc -func CaptureConnection_ConnectionWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { - return CaptureConnectionClass.ConnectionWithInputPortVideoPreviewLayer(port, layer) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1385882-initwithinputport?language=objc +func NewCaptureConnectionWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { + instance := CaptureConnectionClass.Alloc().InitWithInputPortVideoPreviewLayer(port, layer) + instance.Autorelease() + return instance } func (cc _CaptureConnectionClass) ConnectionWithInputPortsOutput(ports []ICaptureInputPort, output ICaptureOutput) CaptureConnection { @@ -79,20 +81,6 @@ func CaptureConnection_ConnectionWithInputPortsOutput(ports []ICaptureInputPort, return CaptureConnectionClass.ConnectionWithInputPortsOutput(ports, output) } -func (c_ CaptureConnection) InitWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { - rv := objc.Call[CaptureConnection](c_, objc.Sel("initWithInputPort:videoPreviewLayer:"), port, layer) - return rv -} - -// Creates a capture connection that represents a connection between an input port and a video preview layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1385882-initwithinputport?language=objc -func NewCaptureConnectionWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { - instance := CaptureConnectionClass.Alloc().InitWithInputPortVideoPreviewLayer(port, layer) - instance.Autorelease() - return instance -} - func (c_ CaptureConnection) InitWithInputPortsOutput(ports []ICaptureInputPort, output ICaptureOutput) CaptureConnection { rv := objc.Call[CaptureConnection](c_, objc.Sel("initWithInputPorts:output:"), ports, output) return rv @@ -107,6 +95,18 @@ func NewCaptureConnectionWithInputPortsOutput(ports []ICaptureInputPort, output return instance } +func (cc _CaptureConnectionClass) ConnectionWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { + rv := objc.Call[CaptureConnection](cc, objc.Sel("connectionWithInputPort:videoPreviewLayer:"), port, layer) + return rv +} + +// Returns a capture connection that represents a connection between an input port and a video preview layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1444495-connectionwithinputport?language=objc +func CaptureConnection_ConnectionWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { + return CaptureConnectionClass.ConnectionWithInputPortVideoPreviewLayer(port, layer) +} + func (cc _CaptureConnectionClass) Alloc() CaptureConnection { rv := objc.Call[CaptureConnection](cc, objc.Sel("alloc")) return rv @@ -127,50 +127,58 @@ func (c_ CaptureConnection) Init() CaptureConnection { return rv } -// An array of audio channels that the connection provides. [Full Topic] +// A Boolean value that indicates whether the connection horizontally flips the video flowing through it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1387519-audiochannels?language=objc -func (c_ CaptureConnection) AudioChannels() []CaptureAudioChannel { - rv := objc.Call[[]CaptureAudioChannel](c_, objc.Sel("audioChannels")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1389172-videomirrored?language=objc +func (c_ CaptureConnection) IsVideoMirrored() bool { + rv := objc.Call[bool](c_, objc.Sel("isVideoMirrored")) return rv } -// A Boolean value that indicates whether the connection supports video mirroring. [Full Topic] +// A Boolean value that indicates whether the connection horizontally flips the video flowing through it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1387424-supportsvideomirroring?language=objc -func (c_ CaptureConnection) IsVideoMirroringSupported() bool { - rv := objc.Call[bool](c_, objc.Sel("isVideoMirroringSupported")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1389172-videomirrored?language=objc +func (c_ CaptureConnection) SetVideoMirrored(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setVideoMirrored:"), value) +} + +// An array of audio channels that the connection provides. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1387519-audiochannels?language=objc +func (c_ CaptureConnection) AudioChannels() []CaptureAudioChannel { + rv := objc.Call[[]CaptureAudioChannel](c_, objc.Sel("audioChannels")) return rv } -// The largest time interval the connection can apply between consecutive video frames. [Full Topic] +// A setting that tells the connection how to interlace video flowing through it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390246-videomaxframeduration?language=objc -func (c_ CaptureConnection) VideoMaxFrameDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](c_, objc.Sel("videoMaxFrameDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390559-videofieldmode?language=objc +func (c_ CaptureConnection) VideoFieldMode() VideoFieldMode { + rv := objc.Call[VideoFieldMode](c_, objc.Sel("videoFieldMode")) return rv } -// The largest time interval the connection can apply between consecutive video frames. [Full Topic] +// A setting that tells the connection how to interlace video flowing through it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390246-videomaxframeduration?language=objc -func (c_ CaptureConnection) SetVideoMaxFrameDuration(value coremedia.Time) { - objc.Call[objc.Void](c_, objc.Sel("setVideoMaxFrameDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390559-videofieldmode?language=objc +func (c_ CaptureConnection) SetVideoFieldMode(value VideoFieldMode) { + objc.Call[objc.Void](c_, objc.Sel("setVideoFieldMode:"), value) } -// The smallest time interval the connection can apply between consecutive video frames. [Full Topic] +// A Boolean value that indicates whether the connection supports video mirroring. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1388931-videominframeduration?language=objc -func (c_ CaptureConnection) VideoMinFrameDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](c_, objc.Sel("videoMinFrameDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1387424-supportsvideomirroring?language=objc +func (c_ CaptureConnection) IsVideoMirroringSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isVideoMirroringSupported")) return rv } -// The smallest time interval the connection can apply between consecutive video frames. [Full Topic] +// A Boolean value that indicates whether the connection supports a maximum frame duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1388931-videominframeduration?language=objc -func (c_ CaptureConnection) SetVideoMinFrameDuration(value coremedia.Time) { - objc.Call[objc.Void](c_, objc.Sel("setVideoMinFrameDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1389158-supportsvideomaxframeduration?language=objc +func (c_ CaptureConnection) IsVideoMaxFrameDurationSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isVideoMaxFrameDurationSupported")) + return rv } // The video preview layer associated with the connection. [Full Topic] @@ -181,21 +189,14 @@ func (c_ CaptureConnection) VideoPreviewLayer() CaptureVideoPreviewLayer { return rv } -// A Boolean value that indicates whether the connection horizontally flips the video flowing through it. [Full Topic] +// Indicates whether the connection is active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1389172-videomirrored?language=objc -func (c_ CaptureConnection) IsVideoMirrored() bool { - rv := objc.Call[bool](c_, objc.Sel("isVideoMirrored")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1387696-active?language=objc +func (c_ CaptureConnection) IsActive() bool { + rv := objc.Call[bool](c_, objc.Sel("isActive")) return rv } -// A Boolean value that indicates whether the connection horizontally flips the video flowing through it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1389172-videomirrored?language=objc -func (c_ CaptureConnection) SetVideoMirrored(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setVideoMirrored:"), value) -} - // The connection’s output port, if applicable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1385571-output?language=objc @@ -204,19 +205,26 @@ func (c_ CaptureConnection) Output() CaptureOutput { return rv } -// An array of the connection’s input ports. [Full Topic] +// The largest time interval the connection can apply between consecutive video frames. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1388322-inputports?language=objc -func (c_ CaptureConnection) InputPorts() []CaptureInputPort { - rv := objc.Call[[]CaptureInputPort](c_, objc.Sel("inputPorts")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390246-videomaxframeduration?language=objc +func (c_ CaptureConnection) VideoMaxFrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](c_, objc.Sel("videoMaxFrameDuration")) return rv } -// Indicates whether the connection is active. [Full Topic] +// The largest time interval the connection can apply between consecutive video frames. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1387696-active?language=objc -func (c_ CaptureConnection) IsActive() bool { - rv := objc.Call[bool](c_, objc.Sel("isActive")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390246-videomaxframeduration?language=objc +func (c_ CaptureConnection) SetVideoMaxFrameDuration(value coremedia.Time) { + objc.Call[objc.Void](c_, objc.Sel("setVideoMaxFrameDuration:"), value) +} + +// A Boolean value that indicates whether the connection supports setting a video field mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390836-supportsvideofieldmode?language=objc +func (c_ CaptureConnection) IsVideoFieldModeSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isVideoFieldModeSupported")) return rv } @@ -235,37 +243,14 @@ func (c_ CaptureConnection) SetAutomaticallyAdjustsVideoMirroring(value bool) { objc.Call[objc.Void](c_, objc.Sel("setAutomaticallyAdjustsVideoMirroring:"), value) } -// A Boolean value that indicates whether the connection supports setting a video field mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390836-supportsvideofieldmode?language=objc -func (c_ CaptureConnection) IsVideoFieldModeSupported() bool { - rv := objc.Call[bool](c_, objc.Sel("isVideoFieldModeSupported")) - return rv -} - -// A Boolean value that indicates whether the connection supports a maximum frame duration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1389158-supportsvideomaxframeduration?language=objc -func (c_ CaptureConnection) IsVideoMaxFrameDurationSupported() bool { - rv := objc.Call[bool](c_, objc.Sel("isVideoMaxFrameDurationSupported")) - return rv -} - -// A setting that tells the connection how to interlace video flowing through it. [Full Topic] +// A Boolean value that indicates whether the connection supports a minimum frame duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390559-videofieldmode?language=objc -func (c_ CaptureConnection) VideoFieldMode() VideoFieldMode { - rv := objc.Call[VideoFieldMode](c_, objc.Sel("videoFieldMode")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1386978-supportsvideominframeduration?language=objc +func (c_ CaptureConnection) IsVideoMinFrameDurationSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isVideoMinFrameDurationSupported")) return rv } -// A setting that tells the connection how to interlace video flowing through it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390559-videofieldmode?language=objc -func (c_ CaptureConnection) SetVideoFieldMode(value VideoFieldMode) { - objc.Call[objc.Void](c_, objc.Sel("setVideoFieldMode:"), value) -} - // Turns the connection on and off. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390131-enabled?language=objc @@ -281,10 +266,25 @@ func (c_ CaptureConnection) SetEnabled(value bool) { objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) } -// A Boolean value that indicates whether the connection supports a minimum frame duration. [Full Topic] +// An array of the connection’s input ports. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1386978-supportsvideominframeduration?language=objc -func (c_ CaptureConnection) IsVideoMinFrameDurationSupported() bool { - rv := objc.Call[bool](c_, objc.Sel("isVideoMinFrameDurationSupported")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1388322-inputports?language=objc +func (c_ CaptureConnection) InputPorts() []CaptureInputPort { + rv := objc.Call[[]CaptureInputPort](c_, objc.Sel("inputPorts")) + return rv +} + +// The smallest time interval the connection can apply between consecutive video frames. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1388931-videominframeduration?language=objc +func (c_ CaptureConnection) VideoMinFrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](c_, objc.Sel("videoMinFrameDuration")) return rv } + +// The smallest time interval the connection can apply between consecutive video frames. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1388931-videominframeduration?language=objc +func (c_ CaptureConnection) SetVideoMinFrameDuration(value coremedia.Time) { + objc.Call[objc.Void](c_, objc.Sel("setVideoMinFrameDuration:"), value) +} diff --git a/macos/avfoundation/capture_device.gen.go b/macos/avfoundation/capture_device.gen.go index ab1ba58a..0c46e68b 100644 --- a/macos/avfoundation/capture_device.gen.go +++ b/macos/avfoundation/capture_device.gen.go @@ -20,79 +20,79 @@ type _CaptureDeviceClass struct { // An interface definition for the [CaptureDevice] class. type ICaptureDevice interface { objc.IObject - SetTransportControlsPlaybackModeSpeed(mode CaptureDeviceTransportControlsPlaybackMode, speed CaptureDeviceTransportControlsSpeed) - IsTorchModeSupported(torchMode CaptureTorchMode) bool - SupportsAVCaptureSessionPreset(preset CaptureSessionPreset) bool HasMediaType(mediaType MediaType) bool - LockForConfiguration(outError unsafe.Pointer) bool - IsExposureModeSupported(exposureMode CaptureExposureMode) bool SetTorchModeOnWithLevelError(torchLevel float32, outError unsafe.Pointer) bool IsWhiteBalanceModeSupported(whiteBalanceMode CaptureWhiteBalanceMode) bool + SetTransportControlsPlaybackModeSpeed(mode CaptureDeviceTransportControlsPlaybackMode, speed CaptureDeviceTransportControlsSpeed) UnlockForConfiguration() IsFocusModeSupported(focusMode CaptureFocusMode) bool + IsExposureModeSupported(exposureMode CaptureExposureMode) bool + LockForConfiguration(outError unsafe.Pointer) bool + IsTorchModeSupported(torchMode CaptureTorchMode) bool SetPrimaryConstituentDeviceSwitchingBehaviorRestrictedSwitchingBehaviorConditions(switchingBehavior CapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions) - ActivePrimaryConstituentDevice() CaptureDevice - ActiveColorSpace() CaptureColorSpace - SetActiveColorSpace(value CaptureColorSpace) - Manufacturer() string - PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions - ExposureMode() CaptureExposureMode - SetExposureMode(value CaptureExposureMode) + SupportsAVCaptureSessionPreset(preset CaptureSessionPreset) bool + Formats() []CaptureDeviceFormat IsInUseByAnotherApplication() bool - MinimumFocusDistance() int - ActiveInputSource() CaptureDeviceInputSource - SetActiveInputSource(value ICaptureDeviceInputSource) - IsPortraitEffectActive() bool - WhiteBalanceMode() CaptureWhiteBalanceMode - SetWhiteBalanceMode(value CaptureWhiteBalanceMode) - LinkedDevices() []CaptureDevice - ActiveFormat() CaptureDeviceFormat - SetActiveFormat(value ICaptureDeviceFormat) - IsFlashAvailable() bool + ModelID() string + TransportControlsPlaybackMode() CaptureDeviceTransportControlsPlaybackMode + TransportType() int32 + TorchLevel() float32 + ActiveVideoMaxFrameDuration() coremedia.Time + SetActiveVideoMaxFrameDuration(value coremedia.Time) + HasFlash() bool + IsExposurePointOfInterestSupported() bool FocusPointOfInterest() coregraphics.Point SetFocusPointOfInterest(value coregraphics.Point) - FallbackPrimaryConstituentDevices() []CaptureDevice - SetFallbackPrimaryConstituentDevices(value []ICaptureDevice) - TransportControlsSpeed() CaptureDeviceTransportControlsSpeed - LocalizedName() string - UniqueID() string - TorchLevel() float32 + IsTorchActive() bool + PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions + ActivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions + IsConnected() bool FlashMode() CaptureFlashMode SetFlashMode(value CaptureFlashMode) - TransportControlsPlaybackMode() CaptureDeviceTransportControlsPlaybackMode + MinimumFocusDistance() int + IsAdjustingExposure() bool + LocalizedName() string + WhiteBalanceMode() CaptureWhiteBalanceMode + SetWhiteBalanceMode(value CaptureWhiteBalanceMode) + UniqueID() string + ActivePrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior HasTorch() bool - IsFocusPointOfInterestSupported() bool Position() CaptureDevicePosition - IsConnected() bool - ModelID() string + ActiveInputSource() CaptureDeviceInputSource + SetActiveInputSource(value ICaptureDeviceInputSource) + IsTorchAvailable() bool + TransportControlsSpeed() CaptureDeviceTransportControlsSpeed + SupportedFallbackPrimaryConstituentDevices() []CaptureDevice IsSuspended() bool - ActivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions + Manufacturer() string + TorchMode() CaptureTorchMode + SetTorchMode(value CaptureTorchMode) + PrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior ActiveVideoMinFrameDuration() coremedia.Time SetActiveVideoMinFrameDuration(value coremedia.Time) - TransportType() int32 - ActiveVideoMaxFrameDuration() coremedia.Time - SetActiveVideoMaxFrameDuration(value coremedia.Time) - IsTorchActive() bool - ExposurePointOfInterest() coregraphics.Point - SetExposurePointOfInterest(value coregraphics.Point) - TransportControlsSupported() bool - HasFlash() bool - SupportedFallbackPrimaryConstituentDevices() []CaptureDevice - IsAdjustingFocus() bool - ActivePrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior + IsFlashAvailable() bool + IsPortraitEffectActive() bool FocusMode() CaptureFocusMode SetFocusMode(value CaptureFocusMode) - IsCenterStageActive() bool - Formats() []CaptureDeviceFormat InputSources() []CaptureDeviceInputSource - TorchMode() CaptureTorchMode - SetTorchMode(value CaptureTorchMode) - IsAdjustingExposure() bool + ExposureMode() CaptureExposureMode + SetExposureMode(value CaptureExposureMode) + IsFocusPointOfInterestSupported() bool + TransportControlsSupported() bool + ActivePrimaryConstituentDevice() CaptureDevice + LinkedDevices() []CaptureDevice IsAdjustingWhiteBalance() bool - IsExposurePointOfInterestSupported() bool - IsTorchAvailable() bool - PrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior DeviceType() CaptureDeviceType + IsAdjustingFocus() bool + ExposurePointOfInterest() coregraphics.Point + SetExposurePointOfInterest(value coregraphics.Point) + ActiveColorSpace() CaptureColorSpace + SetActiveColorSpace(value CaptureColorSpace) + FallbackPrimaryConstituentDevices() []CaptureDevice + SetFallbackPrimaryConstituentDevices(value []ICaptureDevice) + ActiveFormat() CaptureDeviceFormat + SetActiveFormat(value ICaptureDeviceFormat) + IsCenterStageActive() bool } // An object that represents a hardware or virtual capture device like a camera or microphone. [Full Topic] @@ -128,50 +128,50 @@ func (c_ CaptureDevice) Init() CaptureDevice { return rv } -// Sets the transport control’s playback mode and speed. [Full Topic] +// Returns an authorization status that indicates whether the user grants the app permission to capture media of a particular type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388481-settransportcontrolsplaybackmode?language=objc -func (c_ CaptureDevice) SetTransportControlsPlaybackModeSpeed(mode CaptureDeviceTransportControlsPlaybackMode, speed CaptureDeviceTransportControlsSpeed) { - objc.Call[objc.Void](c_, objc.Sel("setTransportControlsPlaybackMode:speed:"), mode, speed) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624613-authorizationstatusformediatype?language=objc +func (cc _CaptureDeviceClass) AuthorizationStatusForMediaType(mediaType MediaType) AuthorizationStatus { + rv := objc.Call[AuthorizationStatus](cc, objc.Sel("authorizationStatusForMediaType:"), mediaType) + return rv } -// Returns a Boolean value that indicates whether the device supports the specified torch mode. [Full Topic] +// Returns an authorization status that indicates whether the user grants the app permission to capture media of a particular type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388822-istorchmodesupported?language=objc -func (c_ CaptureDevice) IsTorchModeSupported(torchMode CaptureTorchMode) bool { - rv := objc.Call[bool](c_, objc.Sel("isTorchModeSupported:"), torchMode) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624613-authorizationstatusformediatype?language=objc +func CaptureDevice_AuthorizationStatusForMediaType(mediaType MediaType) AuthorizationStatus { + return CaptureDeviceClass.AuthorizationStatusForMediaType(mediaType) } -// Returns a Boolean value that indicates whether you can use the device with capture session configured with the specified preset. [Full Topic] +// Returns a Boolean value that indicates whether the device captures media of a particular type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386263-supportsavcapturesessionpreset?language=objc -func (c_ CaptureDevice) SupportsAVCaptureSessionPreset(preset CaptureSessionPreset) bool { - rv := objc.Call[bool](c_, objc.Sel("supportsAVCaptureSessionPreset:"), preset) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389487-hasmediatype?language=objc +func (c_ CaptureDevice) HasMediaType(mediaType MediaType) bool { + rv := objc.Call[bool](c_, objc.Sel("hasMediaType:"), mediaType) return rv } -// Returns the default device that captures the specified media type. [Full Topic] +// Sets the illumination level when in torch mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386589-defaultdevicewithmediatype?language=objc -func (cc _CaptureDeviceClass) DefaultDeviceWithMediaType(mediaType MediaType) CaptureDevice { - rv := objc.Call[CaptureDevice](cc, objc.Sel("defaultDeviceWithMediaType:"), mediaType) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624609-settorchmodeonwithlevel?language=objc +func (c_ CaptureDevice) SetTorchModeOnWithLevelError(torchLevel float32, outError unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("setTorchModeOnWithLevel:error:"), torchLevel, outError) return rv } -// Returns the default device that captures the specified media type. [Full Topic] +// Returns the default device for the specified device type, media type, and position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386589-defaultdevicewithmediatype?language=objc -func CaptureDevice_DefaultDeviceWithMediaType(mediaType MediaType) CaptureDevice { - return CaptureDeviceClass.DefaultDeviceWithMediaType(mediaType) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/2361508-defaultdevicewithdevicetype?language=objc +func (cc _CaptureDeviceClass) DefaultDeviceWithDeviceTypeMediaTypePosition(deviceType CaptureDeviceType, mediaType MediaType, position CaptureDevicePosition) CaptureDevice { + rv := objc.Call[CaptureDevice](cc, objc.Sel("defaultDeviceWithDeviceType:mediaType:position:"), deviceType, mediaType, position) + return rv } -// Returns a Boolean value that indicates whether the device captures media of a particular type. [Full Topic] +// Returns the default device for the specified device type, media type, and position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389487-hasmediatype?language=objc -func (c_ CaptureDevice) HasMediaType(mediaType MediaType) bool { - rv := objc.Call[bool](c_, objc.Sel("hasMediaType:"), mediaType) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/2361508-defaultdevicewithdevicetype?language=objc +func CaptureDevice_DefaultDeviceWithDeviceTypeMediaTypePosition(deviceType CaptureDeviceType, mediaType MediaType, position CaptureDevicePosition) CaptureDevice { + return CaptureDeviceClass.DefaultDeviceWithDeviceTypeMediaTypePosition(deviceType, mediaType, position) } // Creates an object that represents a device with the specified identifier. [Full Topic] @@ -189,49 +189,55 @@ func CaptureDevice_DeviceWithUniqueID(deviceUniqueID string) CaptureDevice { return CaptureDeviceClass.DeviceWithUniqueID(deviceUniqueID) } -// Displays the system’s user interface to configure video effects or microphone modes. [Full Topic] +// Returns a Boolean value that indicates whether the device supports the specified white balance mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850459-showsystemuserinterface?language=objc -func (cc _CaptureDeviceClass) ShowSystemUserInterface(systemUserInterface CaptureSystemUserInterface) { - objc.Call[objc.Void](cc, objc.Sel("showSystemUserInterface:"), systemUserInterface) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388587-iswhitebalancemodesupported?language=objc +func (c_ CaptureDevice) IsWhiteBalanceModeSupported(whiteBalanceMode CaptureWhiteBalanceMode) bool { + rv := objc.Call[bool](c_, objc.Sel("isWhiteBalanceModeSupported:"), whiteBalanceMode) + return rv } -// Displays the system’s user interface to configure video effects or microphone modes. [Full Topic] +// Sets the transport control’s playback mode and speed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850459-showsystemuserinterface?language=objc -func CaptureDevice_ShowSystemUserInterface(systemUserInterface CaptureSystemUserInterface) { - CaptureDeviceClass.ShowSystemUserInterface(systemUserInterface) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388481-settransportcontrolsplaybackmode?language=objc +func (c_ CaptureDevice) SetTransportControlsPlaybackModeSpeed(mode CaptureDeviceTransportControlsPlaybackMode, speed CaptureDeviceTransportControlsSpeed) { + objc.Call[objc.Void](c_, objc.Sel("setTransportControlsPlaybackMode:speed:"), mode, speed) } -// Requests exclusive access to configure device hardware properties. [Full Topic] +// Returns the default device that captures the specified media type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387810-lockforconfiguration?language=objc -func (c_ CaptureDevice) LockForConfiguration(outError unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("lockForConfiguration:"), outError) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386589-defaultdevicewithmediatype?language=objc +func (cc _CaptureDeviceClass) DefaultDeviceWithMediaType(mediaType MediaType) CaptureDevice { + rv := objc.Call[CaptureDevice](cc, objc.Sel("defaultDeviceWithMediaType:"), mediaType) return rv } -// Returns an authorization status that indicates whether the user grants the app permission to capture media of a particular type. [Full Topic] +// Returns the default device that captures the specified media type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624613-authorizationstatusformediatype?language=objc -func (cc _CaptureDeviceClass) AuthorizationStatusForMediaType(mediaType MediaType) AuthorizationStatus { - rv := objc.Call[AuthorizationStatus](cc, objc.Sel("authorizationStatusForMediaType:"), mediaType) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386589-defaultdevicewithmediatype?language=objc +func CaptureDevice_DefaultDeviceWithMediaType(mediaType MediaType) CaptureDevice { + return CaptureDeviceClass.DefaultDeviceWithMediaType(mediaType) } -// Returns an authorization status that indicates whether the user grants the app permission to capture media of a particular type. [Full Topic] +// Displays the system’s user interface to configure video effects or microphone modes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624613-authorizationstatusformediatype?language=objc -func CaptureDevice_AuthorizationStatusForMediaType(mediaType MediaType) AuthorizationStatus { - return CaptureDeviceClass.AuthorizationStatusForMediaType(mediaType) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850459-showsystemuserinterface?language=objc +func (cc _CaptureDeviceClass) ShowSystemUserInterface(systemUserInterface CaptureSystemUserInterface) { + objc.Call[objc.Void](cc, objc.Sel("showSystemUserInterface:"), systemUserInterface) } -// Returns a Boolean value that indicates whether a device supports the specified exposure mode. [Full Topic] +// Displays the system’s user interface to configure video effects or microphone modes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389048-isexposuremodesupported?language=objc -func (c_ CaptureDevice) IsExposureModeSupported(exposureMode CaptureExposureMode) bool { - rv := objc.Call[bool](c_, objc.Sel("isExposureModeSupported:"), exposureMode) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850459-showsystemuserinterface?language=objc +func CaptureDevice_ShowSystemUserInterface(systemUserInterface CaptureSystemUserInterface) { + CaptureDeviceClass.ShowSystemUserInterface(systemUserInterface) +} + +// Releases exclusive control over device hardware properties. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387917-unlockforconfiguration?language=objc +func (c_ CaptureDevice) UnlockForConfiguration() { + objc.Call[objc.Void](c_, objc.Sel("unlockForConfiguration")) } // Requests the user’s permission to allow the app to capture media of a particular type. [Full Topic] @@ -248,34 +254,35 @@ func CaptureDevice_RequestAccessForMediaTypeCompletionHandler(mediaType MediaTyp CaptureDeviceClass.RequestAccessForMediaTypeCompletionHandler(mediaType, handler) } -// Sets the illumination level when in torch mode. [Full Topic] +// Returns a Boolean value that indicates whether the device supports the specified focus mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624609-settorchmodeonwithlevel?language=objc -func (c_ CaptureDevice) SetTorchModeOnWithLevelError(torchLevel float32, outError unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("setTorchModeOnWithLevel:error:"), torchLevel, outError) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390215-isfocusmodesupported?language=objc +func (c_ CaptureDevice) IsFocusModeSupported(focusMode CaptureFocusMode) bool { + rv := objc.Call[bool](c_, objc.Sel("isFocusModeSupported:"), focusMode) return rv } -// Returns a Boolean value that indicates whether the device supports the specified white balance mode. [Full Topic] +// Returns a Boolean value that indicates whether a device supports the specified exposure mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388587-iswhitebalancemodesupported?language=objc -func (c_ CaptureDevice) IsWhiteBalanceModeSupported(whiteBalanceMode CaptureWhiteBalanceMode) bool { - rv := objc.Call[bool](c_, objc.Sel("isWhiteBalanceModeSupported:"), whiteBalanceMode) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389048-isexposuremodesupported?language=objc +func (c_ CaptureDevice) IsExposureModeSupported(exposureMode CaptureExposureMode) bool { + rv := objc.Call[bool](c_, objc.Sel("isExposureModeSupported:"), exposureMode) return rv } -// Releases exclusive control over device hardware properties. [Full Topic] +// Requests exclusive access to configure device hardware properties. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387917-unlockforconfiguration?language=objc -func (c_ CaptureDevice) UnlockForConfiguration() { - objc.Call[objc.Void](c_, objc.Sel("unlockForConfiguration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387810-lockforconfiguration?language=objc +func (c_ CaptureDevice) LockForConfiguration(outError unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("lockForConfiguration:"), outError) + return rv } -// Returns a Boolean value that indicates whether the device supports the specified focus mode. [Full Topic] +// Returns a Boolean value that indicates whether the device supports the specified torch mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390215-isfocusmodesupported?language=objc -func (c_ CaptureDevice) IsFocusModeSupported(focusMode CaptureFocusMode) bool { - rv := objc.Call[bool](c_, objc.Sel("isFocusModeSupported:"), focusMode) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388822-istorchmodesupported?language=objc +func (c_ CaptureDevice) IsTorchModeSupported(torchMode CaptureTorchMode) bool { + rv := objc.Call[bool](c_, objc.Sel("isTorchModeSupported:"), torchMode) return rv } @@ -286,172 +293,134 @@ func (c_ CaptureDevice) SetPrimaryConstituentDeviceSwitchingBehaviorRestrictedSw objc.Call[objc.Void](c_, objc.Sel("setPrimaryConstituentDeviceSwitchingBehavior:restrictedSwitchingBehaviorConditions:"), switchingBehavior, restrictedSwitchingBehaviorConditions) } -// Returns the default device for the specified device type, media type, and position. [Full Topic] +// Returns a Boolean value that indicates whether you can use the device with capture session configured with the specified preset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/2361508-defaultdevicewithdevicetype?language=objc -func (cc _CaptureDeviceClass) DefaultDeviceWithDeviceTypeMediaTypePosition(deviceType CaptureDeviceType, mediaType MediaType, position CaptureDevicePosition) CaptureDevice { - rv := objc.Call[CaptureDevice](cc, objc.Sel("defaultDeviceWithDeviceType:mediaType:position:"), deviceType, mediaType, position) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386263-supportsavcapturesessionpreset?language=objc +func (c_ CaptureDevice) SupportsAVCaptureSessionPreset(preset CaptureSessionPreset) bool { + rv := objc.Call[bool](c_, objc.Sel("supportsAVCaptureSessionPreset:"), preset) return rv } -// Returns the default device for the specified device type, media type, and position. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/2361508-defaultdevicewithdevicetype?language=objc -func CaptureDevice_DefaultDeviceWithDeviceTypeMediaTypePosition(deviceType CaptureDeviceType, mediaType MediaType, position CaptureDevicePosition) CaptureDevice { - return CaptureDeviceClass.DefaultDeviceWithDeviceTypeMediaTypePosition(deviceType, mediaType, position) -} - -// A virtual device’s active primary constituent device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875304-activeprimaryconstituentdevice?language=objc -func (c_ CaptureDevice) ActivePrimaryConstituentDevice() CaptureDevice { - rv := objc.Call[CaptureDevice](c_, objc.Sel("activePrimaryConstituentDevice")) - return rv -} - -// The currently active color space for capture. [Full Topic] +// The capture formats a device supports. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1648668-activecolorspace?language=objc -func (c_ CaptureDevice) ActiveColorSpace() CaptureColorSpace { - rv := objc.Call[CaptureColorSpace](c_, objc.Sel("activeColorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388738-formats?language=objc +func (c_ CaptureDevice) Formats() []CaptureDeviceFormat { + rv := objc.Call[[]CaptureDeviceFormat](c_, objc.Sel("formats")) return rv } -// The currently active color space for capture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1648668-activecolorspace?language=objc -func (c_ CaptureDevice) SetActiveColorSpace(value CaptureColorSpace) { - objc.Call[objc.Void](c_, objc.Sel("setActiveColorSpace:"), value) -} - -// A human-readable string for the manufacturer of the device. [Full Topic] +// A Boolean value that indicates whether another app is using the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390193-manufacturer?language=objc -func (c_ CaptureDevice) Manufacturer() string { - rv := objc.Call[string](c_, objc.Sel("manufacturer")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389512-inusebyanotherapplication?language=objc +func (c_ CaptureDevice) IsInUseByAnotherApplication() bool { + rv := objc.Call[bool](c_, objc.Sel("isInUseByAnotherApplication")) return rv } -// The conditions that restrict the primary constituent device’s switching behavior. [Full Topic] +// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875308-primaryconstituentdevicerestrict?language=objc -func (c_ CaptureDevice) PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { - rv := objc.Call[CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions](c_, objc.Sel("primaryConstituentDeviceRestrictedSwitchingBehaviorConditions")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738419-centerstageenabled?language=objc +func (cc _CaptureDeviceClass) CenterStageEnabled() bool { + rv := objc.Call[bool](cc, objc.Sel("centerStageEnabled")) return rv } -// The exposure mode for the device. [Full Topic] +// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388858-exposuremode?language=objc -func (c_ CaptureDevice) ExposureMode() CaptureExposureMode { - rv := objc.Call[CaptureExposureMode](c_, objc.Sel("exposureMode")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738419-centerstageenabled?language=objc +func CaptureDevice_CenterStageEnabled() bool { + return CaptureDeviceClass.CenterStageEnabled() } -// The exposure mode for the device. [Full Topic] +// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388858-exposuremode?language=objc -func (c_ CaptureDevice) SetExposureMode(value CaptureExposureMode) { - objc.Call[objc.Void](c_, objc.Sel("setExposureMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738419-centerstageenabled?language=objc +func (cc _CaptureDeviceClass) SetCenterStageEnabled(value bool) { + objc.Call[objc.Void](cc, objc.Sel("setCenterStageEnabled:"), value) } -// A Boolean value that indicates whether another app is using the device. [Full Topic] +// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389512-inusebyanotherapplication?language=objc -func (c_ CaptureDevice) IsInUseByAnotherApplication() bool { - rv := objc.Call[bool](c_, objc.Sel("isInUseByAnotherApplication")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738419-centerstageenabled?language=objc +func CaptureDevice_SetCenterStageEnabled(value bool) { + CaptureDeviceClass.SetCenterStageEnabled(value) } -// The capture device’s minimum focus distance in millimeters. [Full Topic] +// A model identifier for the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3751762-minimumfocusdistance?language=objc -func (c_ CaptureDevice) MinimumFocusDistance() int { - rv := objc.Call[int](c_, objc.Sel("minimumFocusDistance")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389500-modelid?language=objc +func (c_ CaptureDevice) ModelID() string { + rv := objc.Call[string](c_, objc.Sel("modelID")) return rv } -// The currently active input source of the device. [Full Topic] +// The microphone mode that the user selects in Control Center. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390141-activeinputsource?language=objc -func (c_ CaptureDevice) ActiveInputSource() CaptureDeviceInputSource { - rv := objc.Call[CaptureDeviceInputSource](c_, objc.Sel("activeInputSource")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850458-preferredmicrophonemode?language=objc +func (cc _CaptureDeviceClass) PreferredMicrophoneMode() CaptureMicrophoneMode { + rv := objc.Call[CaptureMicrophoneMode](cc, objc.Sel("preferredMicrophoneMode")) return rv } -// The currently active input source of the device. [Full Topic] +// The microphone mode that the user selects in Control Center. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390141-activeinputsource?language=objc -func (c_ CaptureDevice) SetActiveInputSource(value ICaptureDeviceInputSource) { - objc.Call[objc.Void](c_, objc.Sel("setActiveInputSource:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850458-preferredmicrophonemode?language=objc +func CaptureDevice_PreferredMicrophoneMode() CaptureMicrophoneMode { + return CaptureDeviceClass.PreferredMicrophoneMode() } -// A Boolean value that indicates whether the Portrait video effect is active on a device. [Full Topic] +// The current playback mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850456-portraiteffectactive?language=objc -func (c_ CaptureDevice) IsPortraitEffectActive() bool { - rv := objc.Call[bool](c_, objc.Sel("isPortraitEffectActive")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386373-transportcontrolsplaybackmode?language=objc +func (c_ CaptureDevice) TransportControlsPlaybackMode() CaptureDeviceTransportControlsPlaybackMode { + rv := objc.Call[CaptureDeviceTransportControlsPlaybackMode](c_, objc.Sel("transportControlsPlaybackMode")) return rv } -// A Boolean value that indicates whether the user enabled the Portrait video effect in Control Center. [Full Topic] +// The transport type of the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850457-portraiteffectenabled?language=objc -func (cc _CaptureDeviceClass) PortraitEffectEnabled() bool { - rv := objc.Call[bool](cc, objc.Sel("portraitEffectEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387804-transporttype?language=objc +func (c_ CaptureDevice) TransportType() int32 { + rv := objc.Call[int32](c_, objc.Sel("transportType")) return rv } -// A Boolean value that indicates whether the user enabled the Portrait video effect in Control Center. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850457-portraiteffectenabled?language=objc -func CaptureDevice_PortraitEffectEnabled() bool { - return CaptureDeviceClass.PortraitEffectEnabled() -} - -// The current white balance mode. [Full Topic] +// The current torch brightness level. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386369-whitebalancemode?language=objc -func (c_ CaptureDevice) WhiteBalanceMode() CaptureWhiteBalanceMode { - rv := objc.Call[CaptureWhiteBalanceMode](c_, objc.Sel("whiteBalanceMode")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624605-torchlevel?language=objc +func (c_ CaptureDevice) TorchLevel() float32 { + rv := objc.Call[float32](c_, objc.Sel("torchLevel")) return rv } -// The current white balance mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386369-whitebalancemode?language=objc -func (c_ CaptureDevice) SetWhiteBalanceMode(value CaptureWhiteBalanceMode) { - objc.Call[objc.Void](c_, objc.Sel("setWhiteBalanceMode:"), value) -} - -// An array of capture devices that are physically linked to a device. [Full Topic] +// The currently active maximum frame duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388720-linkeddevices?language=objc -func (c_ CaptureDevice) LinkedDevices() []CaptureDevice { - rv := objc.Call[[]CaptureDevice](c_, objc.Sel("linkedDevices")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387816-activevideomaxframeduration?language=objc +func (c_ CaptureDevice) ActiveVideoMaxFrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](c_, objc.Sel("activeVideoMaxFrameDuration")) return rv } -// The capture format in use by the device. [Full Topic] +// The currently active maximum frame duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389221-activeformat?language=objc -func (c_ CaptureDevice) ActiveFormat() CaptureDeviceFormat { - rv := objc.Call[CaptureDeviceFormat](c_, objc.Sel("activeFormat")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387816-activevideomaxframeduration?language=objc +func (c_ CaptureDevice) SetActiveVideoMaxFrameDuration(value coremedia.Time) { + objc.Call[objc.Void](c_, objc.Sel("setActiveVideoMaxFrameDuration:"), value) } -// The capture format in use by the device. [Full Topic] +// A Boolean value that indicates whether the capture device has a flash. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389221-activeformat?language=objc -func (c_ CaptureDevice) SetActiveFormat(value ICaptureDeviceFormat) { - objc.Call[objc.Void](c_, objc.Sel("setActiveFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388988-hasflash?language=objc +func (c_ CaptureDevice) HasFlash() bool { + rv := objc.Call[bool](c_, objc.Sel("hasFlash")) + return rv } -// A Boolean value that indicates whether the flash is currently available for use. [Full Topic] +// A Boolean value that indicates whether the device supports a point of interest for exposure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624627-flashavailable?language=objc -func (c_ CaptureDevice) IsFlashAvailable() bool { - rv := objc.Call[bool](c_, objc.Sel("isFlashAvailable")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387263-exposurepointofinterestsupported?language=objc +func (c_ CaptureDevice) IsExposurePointOfInterestSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isExposurePointOfInterestSupported")) return rv } @@ -470,65 +439,35 @@ func (c_ CaptureDevice) SetFocusPointOfInterest(value coregraphics.Point) { objc.Call[objc.Void](c_, objc.Sel("setFocusPointOfInterest:"), value) } -// The fallback devices to use when a constituent device with a longer focal length becomes limited by its light sensitivity or minimum focus distance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875307-fallbackprimaryconstituentdevice?language=objc -func (c_ CaptureDevice) FallbackPrimaryConstituentDevices() []CaptureDevice { - rv := objc.Call[[]CaptureDevice](c_, objc.Sel("fallbackPrimaryConstituentDevices")) - return rv -} - -// The fallback devices to use when a constituent device with a longer focal length becomes limited by its light sensitivity or minimum focus distance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875307-fallbackprimaryconstituentdevice?language=objc -func (c_ CaptureDevice) SetFallbackPrimaryConstituentDevices(value []ICaptureDevice) { - objc.Call[objc.Void](c_, objc.Sel("setFallbackPrimaryConstituentDevices:"), value) -} - -// The microphone mode that the user selects in Control Center. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850458-preferredmicrophonemode?language=objc -func (cc _CaptureDeviceClass) PreferredMicrophoneMode() CaptureMicrophoneMode { - rv := objc.Call[CaptureMicrophoneMode](cc, objc.Sel("preferredMicrophoneMode")) - return rv -} - -// The microphone mode that the user selects in Control Center. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850458-preferredmicrophonemode?language=objc -func CaptureDevice_PreferredMicrophoneMode() CaptureMicrophoneMode { - return CaptureDeviceClass.PreferredMicrophoneMode() -} - -// The current playback speed. [Full Topic] +// A Boolean value that indicates whether the device’s torch is currently active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386639-transportcontrolsspeed?language=objc -func (c_ CaptureDevice) TransportControlsSpeed() CaptureDeviceTransportControlsSpeed { - rv := objc.Call[CaptureDeviceTransportControlsSpeed](c_, objc.Sel("transportControlsSpeed")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624578-torchactive?language=objc +func (c_ CaptureDevice) IsTorchActive() bool { + rv := objc.Call[bool](c_, objc.Sel("isTorchActive")) return rv } -// A localized device name for display in the user interface. [Full Topic] +// The conditions that restrict the primary constituent device’s switching behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388222-localizedname?language=objc -func (c_ CaptureDevice) LocalizedName() string { - rv := objc.Call[string](c_, objc.Sel("localizedName")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875308-primaryconstituentdevicerestrict?language=objc +func (c_ CaptureDevice) PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { + rv := objc.Call[CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions](c_, objc.Sel("primaryConstituentDeviceRestrictedSwitchingBehaviorConditions")) return rv } -// An identifier that uniquely identifies the device. [Full Topic] +// The conditions that restrict camera switching behavior for the active primary constituent device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390477-uniqueid?language=objc -func (c_ CaptureDevice) UniqueID() string { - rv := objc.Call[string](c_, objc.Sel("uniqueID")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875305-activeprimaryconstituentdevicere?language=objc +func (c_ CaptureDevice) ActivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { + rv := objc.Call[CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions](c_, objc.Sel("activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions")) return rv } -// The current torch brightness level. [Full Topic] +// A Boolean value that indicates whether a device is currently connected to the system and available for use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624605-torchlevel?language=objc -func (c_ CaptureDevice) TorchLevel() float32 { - rv := objc.Call[float32](c_, objc.Sel("torchLevel")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389343-connected?language=objc +func (c_ CaptureDevice) IsConnected() bool { + rv := objc.Call[bool](c_, objc.Sel("isConnected")) return rv } @@ -547,197 +486,183 @@ func (c_ CaptureDevice) SetFlashMode(value CaptureFlashMode) { objc.Call[objc.Void](c_, objc.Sel("setFlashMode:"), value) } -// The current playback mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386373-transportcontrolsplaybackmode?language=objc -func (c_ CaptureDevice) TransportControlsPlaybackMode() CaptureDeviceTransportControlsPlaybackMode { - rv := objc.Call[CaptureDeviceTransportControlsPlaybackMode](c_, objc.Sel("transportControlsPlaybackMode")) - return rv -} - -// A Boolean value that specifies whether the capture device has a torch. [Full Topic] +// The capture device’s minimum focus distance in millimeters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387674-hastorch?language=objc -func (c_ CaptureDevice) HasTorch() bool { - rv := objc.Call[bool](c_, objc.Sel("hasTorch")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3751762-minimumfocusdistance?language=objc +func (c_ CaptureDevice) MinimumFocusDistance() int { + rv := objc.Call[int](c_, objc.Sel("minimumFocusDistance")) return rv } -// A Boolean value that indicates whether the device supports a point of interest for focus. [Full Topic] +// A Boolean value that indicates whether the device is currently adjusting its exposure setting. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390436-focuspointofinterestsupported?language=objc -func (c_ CaptureDevice) IsFocusPointOfInterestSupported() bool { - rv := objc.Call[bool](c_, objc.Sel("isFocusPointOfInterestSupported")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386253-adjustingexposure?language=objc +func (c_ CaptureDevice) IsAdjustingExposure() bool { + rv := objc.Call[bool](c_, objc.Sel("isAdjustingExposure")) return rv } -// The physical position of the capture device hardware. [Full Topic] +// A localized device name for display in the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386909-position?language=objc -func (c_ CaptureDevice) Position() CaptureDevicePosition { - rv := objc.Call[CaptureDevicePosition](c_, objc.Sel("position")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388222-localizedname?language=objc +func (c_ CaptureDevice) LocalizedName() string { + rv := objc.Call[string](c_, objc.Sel("localizedName")) return rv } -// A Boolean value that indicates whether a device is currently connected to the system and available for use. [Full Topic] +// The current white balance mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389343-connected?language=objc -func (c_ CaptureDevice) IsConnected() bool { - rv := objc.Call[bool](c_, objc.Sel("isConnected")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386369-whitebalancemode?language=objc +func (c_ CaptureDevice) WhiteBalanceMode() CaptureWhiteBalanceMode { + rv := objc.Call[CaptureWhiteBalanceMode](c_, objc.Sel("whiteBalanceMode")) return rv } -// A model identifier for the device. [Full Topic] +// The current white balance mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389500-modelid?language=objc -func (c_ CaptureDevice) ModelID() string { - rv := objc.Call[string](c_, objc.Sel("modelID")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386369-whitebalancemode?language=objc +func (c_ CaptureDevice) SetWhiteBalanceMode(value CaptureWhiteBalanceMode) { + objc.Call[objc.Void](c_, objc.Sel("setWhiteBalanceMode:"), value) } -// A Boolean value that indicates whether the device is in a suspended state. [Full Topic] +// An identifier that uniquely identifies the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387761-suspended?language=objc -func (c_ CaptureDevice) IsSuspended() bool { - rv := objc.Call[bool](c_, objc.Sel("isSuspended")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390477-uniqueid?language=objc +func (c_ CaptureDevice) UniqueID() string { + rv := objc.Call[string](c_, objc.Sel("uniqueID")) return rv } -// The conditions that restrict camera switching behavior for the active primary constituent device. [Full Topic] +// The switching behavior of the active constituent device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875305-activeprimaryconstituentdevicere?language=objc -func (c_ CaptureDevice) ActivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { - rv := objc.Call[CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions](c_, objc.Sel("activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875306-activeprimaryconstituentdevicesw?language=objc +func (c_ CaptureDevice) ActivePrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior { + rv := objc.Call[CapturePrimaryConstituentDeviceSwitchingBehavior](c_, objc.Sel("activePrimaryConstituentDeviceSwitchingBehavior")) return rv } -// The currently active minimum frame duration. [Full Topic] +// A Boolean value that specifies whether the capture device has a torch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389290-activevideominframeduration?language=objc -func (c_ CaptureDevice) ActiveVideoMinFrameDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](c_, objc.Sel("activeVideoMinFrameDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387674-hastorch?language=objc +func (c_ CaptureDevice) HasTorch() bool { + rv := objc.Call[bool](c_, objc.Sel("hasTorch")) return rv } -// The currently active minimum frame duration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389290-activevideominframeduration?language=objc -func (c_ CaptureDevice) SetActiveVideoMinFrameDuration(value coremedia.Time) { - objc.Call[objc.Void](c_, objc.Sel("setActiveVideoMinFrameDuration:"), value) -} - -// The transport type of the device. [Full Topic] +// The physical position of the capture device hardware. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387804-transporttype?language=objc -func (c_ CaptureDevice) TransportType() int32 { - rv := objc.Call[int32](c_, objc.Sel("transportType")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386909-position?language=objc +func (c_ CaptureDevice) Position() CaptureDevicePosition { + rv := objc.Call[CaptureDevicePosition](c_, objc.Sel("position")) return rv } -// The currently active maximum frame duration. [Full Topic] +// The currently active input source of the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387816-activevideomaxframeduration?language=objc -func (c_ CaptureDevice) ActiveVideoMaxFrameDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](c_, objc.Sel("activeVideoMaxFrameDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390141-activeinputsource?language=objc +func (c_ CaptureDevice) ActiveInputSource() CaptureDeviceInputSource { + rv := objc.Call[CaptureDeviceInputSource](c_, objc.Sel("activeInputSource")) return rv } -// The currently active maximum frame duration. [Full Topic] +// The currently active input source of the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387816-activevideomaxframeduration?language=objc -func (c_ CaptureDevice) SetActiveVideoMaxFrameDuration(value coremedia.Time) { - objc.Call[objc.Void](c_, objc.Sel("setActiveVideoMaxFrameDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390141-activeinputsource?language=objc +func (c_ CaptureDevice) SetActiveInputSource(value ICaptureDeviceInputSource) { + objc.Call[objc.Void](c_, objc.Sel("setActiveInputSource:"), value) } -// A Boolean value that indicates whether the device’s torch is currently active. [Full Topic] +// A Boolean value that indicates whether the torch is currently available for use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624578-torchactive?language=objc -func (c_ CaptureDevice) IsTorchActive() bool { - rv := objc.Call[bool](c_, objc.Sel("isTorchActive")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624626-torchavailable?language=objc +func (c_ CaptureDevice) IsTorchAvailable() bool { + rv := objc.Call[bool](c_, objc.Sel("isTorchAvailable")) return rv } -// The point of interest for exposure. [Full Topic] +// The current playback speed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388777-exposurepointofinterest?language=objc -func (c_ CaptureDevice) ExposurePointOfInterest() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("exposurePointOfInterest")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386639-transportcontrolsspeed?language=objc +func (c_ CaptureDevice) TransportControlsSpeed() CaptureDeviceTransportControlsSpeed { + rv := objc.Call[CaptureDeviceTransportControlsSpeed](c_, objc.Sel("transportControlsSpeed")) return rv } -// The point of interest for exposure. [Full Topic] +// The constituent devices available to select as a fallback for a longer focal length primary constituent device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388777-exposurepointofinterest?language=objc -func (c_ CaptureDevice) SetExposurePointOfInterest(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setExposurePointOfInterest:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875311-supportedfallbackprimaryconstitu?language=objc +func (c_ CaptureDevice) SupportedFallbackPrimaryConstituentDevices() []CaptureDevice { + rv := objc.Call[[]CaptureDevice](c_, objc.Sel("supportedFallbackPrimaryConstituentDevices")) + return rv } -// A Boolean value that indicates whether the device supports transport control commands. [Full Topic] +// A Boolean value that indicates whether the device is in a suspended state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388479-transportcontrolssupported?language=objc -func (c_ CaptureDevice) TransportControlsSupported() bool { - rv := objc.Call[bool](c_, objc.Sel("transportControlsSupported")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387761-suspended?language=objc +func (c_ CaptureDevice) IsSuspended() bool { + rv := objc.Call[bool](c_, objc.Sel("isSuspended")) return rv } -// A Boolean value that indicates whether the capture device has a flash. [Full Topic] +// A human-readable string for the manufacturer of the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388988-hasflash?language=objc -func (c_ CaptureDevice) HasFlash() bool { - rv := objc.Call[bool](c_, objc.Sel("hasFlash")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390193-manufacturer?language=objc +func (c_ CaptureDevice) Manufacturer() string { + rv := objc.Call[string](c_, objc.Sel("manufacturer")) return rv } -// The constituent devices available to select as a fallback for a longer focal length primary constituent device. [Full Topic] +// The current torch mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875311-supportedfallbackprimaryconstitu?language=objc -func (c_ CaptureDevice) SupportedFallbackPrimaryConstituentDevices() []CaptureDevice { - rv := objc.Call[[]CaptureDevice](c_, objc.Sel("supportedFallbackPrimaryConstituentDevices")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386035-torchmode?language=objc +func (c_ CaptureDevice) TorchMode() CaptureTorchMode { + rv := objc.Call[CaptureTorchMode](c_, objc.Sel("torchMode")) return rv } -// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] +// The current torch mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738419-centerstageenabled?language=objc -func (cc _CaptureDeviceClass) CenterStageEnabled() bool { - rv := objc.Call[bool](cc, objc.Sel("centerStageEnabled")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386035-torchmode?language=objc +func (c_ CaptureDevice) SetTorchMode(value CaptureTorchMode) { + objc.Call[objc.Void](c_, objc.Sel("setTorchMode:"), value) } -// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] +// The switching behavior for the primary constituent device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738419-centerstageenabled?language=objc -func CaptureDevice_CenterStageEnabled() bool { - return CaptureDeviceClass.CenterStageEnabled() +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875309-primaryconstituentdeviceswitchin?language=objc +func (c_ CaptureDevice) PrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior { + rv := objc.Call[CapturePrimaryConstituentDeviceSwitchingBehavior](c_, objc.Sel("primaryConstituentDeviceSwitchingBehavior")) + return rv } -// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] +// The currently active minimum frame duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738419-centerstageenabled?language=objc -func (cc _CaptureDeviceClass) SetCenterStageEnabled(value bool) { - objc.Call[objc.Void](cc, objc.Sel("setCenterStageEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389290-activevideominframeduration?language=objc +func (c_ CaptureDevice) ActiveVideoMinFrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](c_, objc.Sel("activeVideoMinFrameDuration")) + return rv } -// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] +// The currently active minimum frame duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738419-centerstageenabled?language=objc -func CaptureDevice_SetCenterStageEnabled(value bool) { - CaptureDeviceClass.SetCenterStageEnabled(value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389290-activevideominframeduration?language=objc +func (c_ CaptureDevice) SetActiveVideoMinFrameDuration(value coremedia.Time) { + objc.Call[objc.Void](c_, objc.Sel("setActiveVideoMinFrameDuration:"), value) } -// A Boolean value that indicates whether the device is currently adjusting its focus setting. [Full Topic] +// A Boolean value that indicates whether the flash is currently available for use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390577-adjustingfocus?language=objc -func (c_ CaptureDevice) IsAdjustingFocus() bool { - rv := objc.Call[bool](c_, objc.Sel("isAdjustingFocus")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624627-flashavailable?language=objc +func (c_ CaptureDevice) IsFlashAvailable() bool { + rv := objc.Call[bool](c_, objc.Sel("isFlashAvailable")) return rv } -// The switching behavior of the active constituent device. [Full Topic] +// A Boolean value that indicates whether the Portrait video effect is active on a device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875306-activeprimaryconstituentdevicesw?language=objc -func (c_ CaptureDevice) ActivePrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior { - rv := objc.Call[CapturePrimaryConstituentDeviceSwitchingBehavior](c_, objc.Sel("activePrimaryConstituentDeviceSwitchingBehavior")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850456-portraiteffectactive?language=objc +func (c_ CaptureDevice) IsPortraitEffectActive() bool { + rv := objc.Call[bool](c_, objc.Sel("isPortraitEffectActive")) return rv } @@ -756,50 +681,73 @@ func (c_ CaptureDevice) SetFocusMode(value CaptureFocusMode) { objc.Call[objc.Void](c_, objc.Sel("setFocusMode:"), value) } -// A Boolean value that indicates whether Center Stage is active on a device. [Full Topic] +// An array of input sources that the device supports. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738417-centerstageactive?language=objc -func (c_ CaptureDevice) IsCenterStageActive() bool { - rv := objc.Call[bool](c_, objc.Sel("isCenterStageActive")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388404-inputsources?language=objc +func (c_ CaptureDevice) InputSources() []CaptureDeviceInputSource { + rv := objc.Call[[]CaptureDeviceInputSource](c_, objc.Sel("inputSources")) return rv } -// The capture formats a device supports. [Full Topic] +// The exposure mode for the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388738-formats?language=objc -func (c_ CaptureDevice) Formats() []CaptureDeviceFormat { - rv := objc.Call[[]CaptureDeviceFormat](c_, objc.Sel("formats")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388858-exposuremode?language=objc +func (c_ CaptureDevice) ExposureMode() CaptureExposureMode { + rv := objc.Call[CaptureExposureMode](c_, objc.Sel("exposureMode")) return rv } -// An array of input sources that the device supports. [Full Topic] +// The exposure mode for the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388404-inputsources?language=objc -func (c_ CaptureDevice) InputSources() []CaptureDeviceInputSource { - rv := objc.Call[[]CaptureDeviceInputSource](c_, objc.Sel("inputSources")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388858-exposuremode?language=objc +func (c_ CaptureDevice) SetExposureMode(value CaptureExposureMode) { + objc.Call[objc.Void](c_, objc.Sel("setExposureMode:"), value) +} + +// A Boolean value that indicates whether the user enabled the Portrait video effect in Control Center. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850457-portraiteffectenabled?language=objc +func (cc _CaptureDeviceClass) PortraitEffectEnabled() bool { + rv := objc.Call[bool](cc, objc.Sel("portraitEffectEnabled")) return rv } -// The current torch mode. [Full Topic] +// A Boolean value that indicates whether the user enabled the Portrait video effect in Control Center. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386035-torchmode?language=objc -func (c_ CaptureDevice) TorchMode() CaptureTorchMode { - rv := objc.Call[CaptureTorchMode](c_, objc.Sel("torchMode")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850457-portraiteffectenabled?language=objc +func CaptureDevice_PortraitEffectEnabled() bool { + return CaptureDeviceClass.PortraitEffectEnabled() +} + +// A Boolean value that indicates whether the device supports a point of interest for focus. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390436-focuspointofinterestsupported?language=objc +func (c_ CaptureDevice) IsFocusPointOfInterestSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isFocusPointOfInterestSupported")) return rv } -// The current torch mode. [Full Topic] +// A Boolean value that indicates whether the device supports transport control commands. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386035-torchmode?language=objc -func (c_ CaptureDevice) SetTorchMode(value CaptureTorchMode) { - objc.Call[objc.Void](c_, objc.Sel("setTorchMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388479-transportcontrolssupported?language=objc +func (c_ CaptureDevice) TransportControlsSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("transportControlsSupported")) + return rv } -// A Boolean value that indicates whether the device is currently adjusting its exposure setting. [Full Topic] +// A virtual device’s active primary constituent device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1386253-adjustingexposure?language=objc -func (c_ CaptureDevice) IsAdjustingExposure() bool { - rv := objc.Call[bool](c_, objc.Sel("isAdjustingExposure")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875304-activeprimaryconstituentdevice?language=objc +func (c_ CaptureDevice) ActivePrimaryConstituentDevice() CaptureDevice { + rv := objc.Call[CaptureDevice](c_, objc.Sel("activePrimaryConstituentDevice")) + return rv +} + +// An array of capture devices that are physically linked to a device. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388720-linkeddevices?language=objc +func (c_ CaptureDevice) LinkedDevices() []CaptureDevice { + rv := objc.Call[[]CaptureDevice](c_, objc.Sel("linkedDevices")) return rv } @@ -811,6 +759,37 @@ func (c_ CaptureDevice) IsAdjustingWhiteBalance() bool { return rv } +// The type of device, such as a built-in microphone or wide-angle camera. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/2361119-devicetype?language=objc +func (c_ CaptureDevice) DeviceType() CaptureDeviceType { + rv := objc.Call[CaptureDeviceType](c_, objc.Sel("deviceType")) + return rv +} + +// A Boolean value that indicates whether the device is currently adjusting its focus setting. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1390577-adjustingfocus?language=objc +func (c_ CaptureDevice) IsAdjustingFocus() bool { + rv := objc.Call[bool](c_, objc.Sel("isAdjustingFocus")) + return rv +} + +// The point of interest for exposure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388777-exposurepointofinterest?language=objc +func (c_ CaptureDevice) ExposurePointOfInterest() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("exposurePointOfInterest")) + return rv +} + +// The point of interest for exposure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1388777-exposurepointofinterest?language=objc +func (c_ CaptureDevice) SetExposurePointOfInterest(value coregraphics.Point) { + objc.Call[objc.Void](c_, objc.Sel("setExposurePointOfInterest:"), value) +} + // A value that indicates the current mode of Center Stage control. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738418-centerstagecontrolmode?language=objc @@ -840,49 +819,70 @@ func CaptureDevice_SetCenterStageControlMode(value CaptureCenterStageControlMode CaptureDeviceClass.SetCenterStageControlMode(value) } -// A Boolean value that indicates whether the device supports a point of interest for exposure. [Full Topic] +// The currently active color space for capture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387263-exposurepointofinterestsupported?language=objc -func (c_ CaptureDevice) IsExposurePointOfInterestSupported() bool { - rv := objc.Call[bool](c_, objc.Sel("isExposurePointOfInterestSupported")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1648668-activecolorspace?language=objc +func (c_ CaptureDevice) ActiveColorSpace() CaptureColorSpace { + rv := objc.Call[CaptureColorSpace](c_, objc.Sel("activeColorSpace")) return rv } -// The device’s active microphone mode. [Full Topic] +// The currently active color space for capture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850455-activemicrophonemode?language=objc -func (cc _CaptureDeviceClass) ActiveMicrophoneMode() CaptureMicrophoneMode { - rv := objc.Call[CaptureMicrophoneMode](cc, objc.Sel("activeMicrophoneMode")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1648668-activecolorspace?language=objc +func (c_ CaptureDevice) SetActiveColorSpace(value CaptureColorSpace) { + objc.Call[objc.Void](c_, objc.Sel("setActiveColorSpace:"), value) +} + +// The fallback devices to use when a constituent device with a longer focal length becomes limited by its light sensitivity or minimum focus distance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875307-fallbackprimaryconstituentdevice?language=objc +func (c_ CaptureDevice) FallbackPrimaryConstituentDevices() []CaptureDevice { + rv := objc.Call[[]CaptureDevice](c_, objc.Sel("fallbackPrimaryConstituentDevices")) return rv } -// The device’s active microphone mode. [Full Topic] +// The fallback devices to use when a constituent device with a longer focal length becomes limited by its light sensitivity or minimum focus distance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850455-activemicrophonemode?language=objc -func CaptureDevice_ActiveMicrophoneMode() CaptureMicrophoneMode { - return CaptureDeviceClass.ActiveMicrophoneMode() +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875307-fallbackprimaryconstituentdevice?language=objc +func (c_ CaptureDevice) SetFallbackPrimaryConstituentDevices(value []ICaptureDevice) { + objc.Call[objc.Void](c_, objc.Sel("setFallbackPrimaryConstituentDevices:"), value) } -// A Boolean value that indicates whether the torch is currently available for use. [Full Topic] +// The capture format in use by the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624626-torchavailable?language=objc -func (c_ CaptureDevice) IsTorchAvailable() bool { - rv := objc.Call[bool](c_, objc.Sel("isTorchAvailable")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389221-activeformat?language=objc +func (c_ CaptureDevice) ActiveFormat() CaptureDeviceFormat { + rv := objc.Call[CaptureDeviceFormat](c_, objc.Sel("activeFormat")) return rv } -// The switching behavior for the primary constituent device. [Full Topic] +// The capture format in use by the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3875309-primaryconstituentdeviceswitchin?language=objc -func (c_ CaptureDevice) PrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior { - rv := objc.Call[CapturePrimaryConstituentDeviceSwitchingBehavior](c_, objc.Sel("primaryConstituentDeviceSwitchingBehavior")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389221-activeformat?language=objc +func (c_ CaptureDevice) SetActiveFormat(value ICaptureDeviceFormat) { + objc.Call[objc.Void](c_, objc.Sel("setActiveFormat:"), value) +} + +// The device’s active microphone mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850455-activemicrophonemode?language=objc +func (cc _CaptureDeviceClass) ActiveMicrophoneMode() CaptureMicrophoneMode { + rv := objc.Call[CaptureMicrophoneMode](cc, objc.Sel("activeMicrophoneMode")) return rv } -// The type of device, such as a built-in microphone or wide-angle camera. [Full Topic] +// The device’s active microphone mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/2361119-devicetype?language=objc -func (c_ CaptureDevice) DeviceType() CaptureDeviceType { - rv := objc.Call[CaptureDeviceType](c_, objc.Sel("deviceType")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850455-activemicrophonemode?language=objc +func CaptureDevice_ActiveMicrophoneMode() CaptureMicrophoneMode { + return CaptureDeviceClass.ActiveMicrophoneMode() +} + +// A Boolean value that indicates whether Center Stage is active on a device. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738417-centerstageactive?language=objc +func (c_ CaptureDevice) IsCenterStageActive() bool { + rv := objc.Call[bool](c_, objc.Sel("isCenterStageActive")) return rv } diff --git a/macos/avfoundation/capture_device_format.gen.go b/macos/avfoundation/capture_device_format.gen.go index 37da14e3..46b65c8c 100644 --- a/macos/avfoundation/capture_device_format.gen.go +++ b/macos/avfoundation/capture_device_format.gen.go @@ -20,18 +20,18 @@ type _CaptureDeviceFormatClass struct { // An interface definition for the [CaptureDeviceFormat] class. type ICaptureDeviceFormat interface { objc.IObject + VideoSupportedFrameRateRanges() []FrameRateRange AutoFocusSystem() CaptureAutoFocusSystem + IsHighPhotoQualitySupported() bool + VideoMaxZoomFactorForCenterStage() float64 + VideoFrameRateRangeForPortraitEffect() FrameRateRange + MediaType() MediaType + IsPortraitEffectSupported() bool SupportedColorSpaces() []foundation.Number + IsCenterStageSupported() bool VideoFrameRateRangeForCenterStage() FrameRateRange VideoMinZoomFactorForCenterStage() float64 - MediaType() MediaType - VideoFrameRateRangeForPortraitEffect() FrameRateRange FormatDescription() coremedia.FormatDescriptionRef - IsCenterStageSupported() bool - VideoSupportedFrameRateRanges() []FrameRateRange - IsPortraitEffectSupported() bool - VideoMaxZoomFactorForCenterStage() float64 - IsHighPhotoQualitySupported() bool } // A class that defines media formats and capture settings that capture devices support. [Full Topic] @@ -67,6 +67,14 @@ func (c_ CaptureDeviceFormat) Init() CaptureDeviceFormat { return rv } +// A list of frame rate ranges that a format supports. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/1387592-videosupportedframerateranges?language=objc +func (c_ CaptureDeviceFormat) VideoSupportedFrameRateRanges() []FrameRateRange { + rv := objc.Call[[]FrameRateRange](c_, objc.Sel("videoSupportedFrameRateRanges")) + return rv +} + // The auto focus system the format uses. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/1624600-autofocussystem?language=objc @@ -75,27 +83,27 @@ func (c_ CaptureDeviceFormat) AutoFocusSystem() CaptureAutoFocusSystem { return rv } -// The list of color spaces the format supports for image and video capture. [Full Topic] +// A Boolean value that indicates whether this format supports high-quality capture with the current quality prioritization setting. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/1648611-supportedcolorspaces?language=objc -func (c_ CaptureDeviceFormat) SupportedColorSpaces() []foundation.Number { - rv := objc.Call[[]foundation.Number](c_, objc.Sel("supportedColorSpaces")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3751763-highphotoqualitysupported?language=objc +func (c_ CaptureDeviceFormat) IsHighPhotoQualitySupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isHighPhotoQualitySupported")) return rv } -// The range of frame rates available when Center Stage is active. [Full Topic] +// The maximum zoom factor available when Center Stage is active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3738421-videoframeraterangeforcenterstag?language=objc -func (c_ CaptureDeviceFormat) VideoFrameRateRangeForCenterStage() FrameRateRange { - rv := objc.Call[FrameRateRange](c_, objc.Sel("videoFrameRateRangeForCenterStage")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3738422-videomaxzoomfactorforcenterstage?language=objc +func (c_ CaptureDeviceFormat) VideoMaxZoomFactorForCenterStage() float64 { + rv := objc.Call[float64](c_, objc.Sel("videoMaxZoomFactorForCenterStage")) return rv } -// The minimum zoom factor available when Center Stage is active. [Full Topic] +// The range of frame rates available when Portrait Effect is active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3738423-videominzoomfactorforcenterstage?language=objc -func (c_ CaptureDeviceFormat) VideoMinZoomFactorForCenterStage() float64 { - rv := objc.Call[float64](c_, objc.Sel("videoMinZoomFactorForCenterStage")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3875313-videoframeraterangeforportraitef?language=objc +func (c_ CaptureDeviceFormat) VideoFrameRateRangeForPortraitEffect() FrameRateRange { + rv := objc.Call[FrameRateRange](c_, objc.Sel("videoFrameRateRangeForPortraitEffect")) return rv } @@ -107,19 +115,19 @@ func (c_ CaptureDeviceFormat) MediaType() MediaType { return rv } -// The range of frame rates available when Portrait Effect is active. [Full Topic] +// A Boolean value that indicates whether the format supports the Portrait Effect feature. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3875313-videoframeraterangeforportraitef?language=objc -func (c_ CaptureDeviceFormat) VideoFrameRateRangeForPortraitEffect() FrameRateRange { - rv := objc.Call[FrameRateRange](c_, objc.Sel("videoFrameRateRangeForPortraitEffect")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3875312-portraiteffectsupported?language=objc +func (c_ CaptureDeviceFormat) IsPortraitEffectSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isPortraitEffectSupported")) return rv } -// An object describing the capture format. [Full Topic] +// The list of color spaces the format supports for image and video capture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/1389445-formatdescription?language=objc -func (c_ CaptureDeviceFormat) FormatDescription() coremedia.FormatDescriptionRef { - rv := objc.Call[coremedia.FormatDescriptionRef](c_, objc.Sel("formatDescription")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/1648611-supportedcolorspaces?language=objc +func (c_ CaptureDeviceFormat) SupportedColorSpaces() []foundation.Number { + rv := objc.Call[[]foundation.Number](c_, objc.Sel("supportedColorSpaces")) return rv } @@ -131,34 +139,26 @@ func (c_ CaptureDeviceFormat) IsCenterStageSupported() bool { return rv } -// A list of frame rate ranges that a format supports. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/1387592-videosupportedframerateranges?language=objc -func (c_ CaptureDeviceFormat) VideoSupportedFrameRateRanges() []FrameRateRange { - rv := objc.Call[[]FrameRateRange](c_, objc.Sel("videoSupportedFrameRateRanges")) - return rv -} - -// A Boolean value that indicates whether the format supports the Portrait Effect feature. [Full Topic] +// The range of frame rates available when Center Stage is active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3875312-portraiteffectsupported?language=objc -func (c_ CaptureDeviceFormat) IsPortraitEffectSupported() bool { - rv := objc.Call[bool](c_, objc.Sel("isPortraitEffectSupported")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3738421-videoframeraterangeforcenterstag?language=objc +func (c_ CaptureDeviceFormat) VideoFrameRateRangeForCenterStage() FrameRateRange { + rv := objc.Call[FrameRateRange](c_, objc.Sel("videoFrameRateRangeForCenterStage")) return rv } -// The maximum zoom factor available when Center Stage is active. [Full Topic] +// The minimum zoom factor available when Center Stage is active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3738422-videomaxzoomfactorforcenterstage?language=objc -func (c_ CaptureDeviceFormat) VideoMaxZoomFactorForCenterStage() float64 { - rv := objc.Call[float64](c_, objc.Sel("videoMaxZoomFactorForCenterStage")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3738423-videominzoomfactorforcenterstage?language=objc +func (c_ CaptureDeviceFormat) VideoMinZoomFactorForCenterStage() float64 { + rv := objc.Call[float64](c_, objc.Sel("videoMinZoomFactorForCenterStage")) return rv } -// A Boolean value that indicates whether this format supports high-quality capture with the current quality prioritization setting. [Full Topic] +// An object describing the capture format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/3751763-highphotoqualitysupported?language=objc -func (c_ CaptureDeviceFormat) IsHighPhotoQualitySupported() bool { - rv := objc.Call[bool](c_, objc.Sel("isHighPhotoQualitySupported")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedeviceformat/1389445-formatdescription?language=objc +func (c_ CaptureDeviceFormat) FormatDescription() coremedia.FormatDescriptionRef { + rv := objc.Call[coremedia.FormatDescriptionRef](c_, objc.Sel("formatDescription")) return rv } diff --git a/macos/avfoundation/capture_file_output.gen.go b/macos/avfoundation/capture_file_output.gen.go index d1f1aefe..0191b1bb 100644 --- a/macos/avfoundation/capture_file_output.gen.go +++ b/macos/avfoundation/capture_file_output.gen.go @@ -20,25 +20,25 @@ type _CaptureFileOutputClass struct { // An interface definition for the [CaptureFileOutput] class. type ICaptureFileOutput interface { ICaptureOutput + PauseRecording() StartRecordingToOutputFileURLRecordingDelegate(outputFileURL foundation.IURL, delegate PCaptureFileOutputRecordingDelegate) StartRecordingToOutputFileURLRecordingDelegateObject(outputFileURL foundation.IURL, delegateObject objc.IObject) - ResumeRecording() - PauseRecording() StopRecording() - MinFreeDiskSpaceLimit() int64 - SetMinFreeDiskSpaceLimit(value int64) - IsRecording() bool - RecordedFileSize() int64 + ResumeRecording() IsRecordingPaused() bool + MaxRecordedFileSize() int64 + SetMaxRecordedFileSize(value int64) MaxRecordedDuration() coremedia.Time SetMaxRecordedDuration(value coremedia.Time) - RecordedDuration() coremedia.Time + IsRecording() bool Delegate() CaptureFileOutputDelegateObject SetDelegate(value PCaptureFileOutputDelegate) SetDelegateObject(valueObject objc.IObject) + MinFreeDiskSpaceLimit() int64 + SetMinFreeDiskSpaceLimit(value int64) + RecordedDuration() coremedia.Time OutputFileURL() foundation.URL - MaxRecordedFileSize() int64 - SetMaxRecordedFileSize(value int64) + RecordedFileSize() int64 } // The abstract superclass for capture outputs that can record captured data to a file. [Full Topic] @@ -74,6 +74,13 @@ func (c_ CaptureFileOutput) Init() CaptureFileOutput { return rv } +// Pauses recording to the current output file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1386806-pauserecording?language=objc +func (c_ CaptureFileOutput) PauseRecording() { + objc.Call[objc.Void](c_, objc.Sel("pauseRecording")) +} + // Starts recording media to the specified output URL. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387224-startrecordingtooutputfileurl?language=objc @@ -89,20 +96,6 @@ func (c_ CaptureFileOutput) StartRecordingToOutputFileURLRecordingDelegateObject objc.Call[objc.Void](c_, objc.Sel("startRecordingToOutputFileURL:recordingDelegate:"), outputFileURL, delegateObject) } -// Resumes recording to the current output file after it was previously paused using [avfoundation/avcapturefileoutput/pauserecording]. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1389849-resumerecording?language=objc -func (c_ CaptureFileOutput) ResumeRecording() { - objc.Call[objc.Void](c_, objc.Sel("resumeRecording")) -} - -// Pauses recording to the current output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1386806-pauserecording?language=objc -func (c_ CaptureFileOutput) PauseRecording() { - objc.Call[objc.Void](c_, objc.Sel("pauseRecording")) -} - // Tells the receiver to stop recording to the current file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1389485-stoprecording?language=objc @@ -110,43 +103,34 @@ func (c_ CaptureFileOutput) StopRecording() { objc.Call[objc.Void](c_, objc.Sel("stopRecording")) } -// The minimum amount of free space, in bytes, required for recording to continue on a given volume. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387523-minfreediskspacelimit?language=objc -func (c_ CaptureFileOutput) MinFreeDiskSpaceLimit() int64 { - rv := objc.Call[int64](c_, objc.Sel("minFreeDiskSpaceLimit")) - return rv -} - -// The minimum amount of free space, in bytes, required for recording to continue on a given volume. [Full Topic] +// Resumes recording to the current output file after it was previously paused using pauseRecording. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387523-minfreediskspacelimit?language=objc -func (c_ CaptureFileOutput) SetMinFreeDiskSpaceLimit(value int64) { - objc.Call[objc.Void](c_, objc.Sel("setMinFreeDiskSpaceLimit:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1389849-resumerecording?language=objc +func (c_ CaptureFileOutput) ResumeRecording() { + objc.Call[objc.Void](c_, objc.Sel("resumeRecording")) } -// Indicates whether recording is in progress. [Full Topic] +// Indicates whether recording to the current output file is paused. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387539-recording?language=objc -func (c_ CaptureFileOutput) IsRecording() bool { - rv := objc.Call[bool](c_, objc.Sel("isRecording")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1385716-recordingpaused?language=objc +func (c_ CaptureFileOutput) IsRecordingPaused() bool { + rv := objc.Call[bool](c_, objc.Sel("isRecordingPaused")) return rv } -// Indicates the size, in bytes, of the data recorded to the current output file. [Full Topic] +// The maximum size, in bytes, of the data that should be recorded by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1386933-recordedfilesize?language=objc -func (c_ CaptureFileOutput) RecordedFileSize() int64 { - rv := objc.Call[int64](c_, objc.Sel("recordedFileSize")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387684-maxrecordedfilesize?language=objc +func (c_ CaptureFileOutput) MaxRecordedFileSize() int64 { + rv := objc.Call[int64](c_, objc.Sel("maxRecordedFileSize")) return rv } -// Indicates whether recording to the current output file is paused. [Full Topic] +// The maximum size, in bytes, of the data that should be recorded by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1385716-recordingpaused?language=objc -func (c_ CaptureFileOutput) IsRecordingPaused() bool { - rv := objc.Call[bool](c_, objc.Sel("isRecordingPaused")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387684-maxrecordedfilesize?language=objc +func (c_ CaptureFileOutput) SetMaxRecordedFileSize(value int64) { + objc.Call[objc.Void](c_, objc.Sel("setMaxRecordedFileSize:"), value) } // The longest duration allowed for the recording. [Full Topic] @@ -164,11 +148,11 @@ func (c_ CaptureFileOutput) SetMaxRecordedDuration(value coremedia.Time) { objc.Call[objc.Void](c_, objc.Sel("setMaxRecordedDuration:"), value) } -// Indicates the duration of the media recorded to the current output file. [Full Topic] +// Indicates whether recording is in progress. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1389028-recordedduration?language=objc -func (c_ CaptureFileOutput) RecordedDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](c_, objc.Sel("recordedDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387539-recording?language=objc +func (c_ CaptureFileOutput) IsRecording() bool { + rv := objc.Call[bool](c_, objc.Sel("isRecording")) return rv } @@ -195,6 +179,29 @@ func (c_ CaptureFileOutput) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), valueObject) } +// The minimum amount of free space, in bytes, required for recording to continue on a given volume. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387523-minfreediskspacelimit?language=objc +func (c_ CaptureFileOutput) MinFreeDiskSpaceLimit() int64 { + rv := objc.Call[int64](c_, objc.Sel("minFreeDiskSpaceLimit")) + return rv +} + +// The minimum amount of free space, in bytes, required for recording to continue on a given volume. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387523-minfreediskspacelimit?language=objc +func (c_ CaptureFileOutput) SetMinFreeDiskSpaceLimit(value int64) { + objc.Call[objc.Void](c_, objc.Sel("setMinFreeDiskSpaceLimit:"), value) +} + +// Indicates the duration of the media recorded to the current output file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1389028-recordedduration?language=objc +func (c_ CaptureFileOutput) RecordedDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](c_, objc.Sel("recordedDuration")) + return rv +} + // The URL to which output is directed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1388576-outputfileurl?language=objc @@ -203,17 +210,10 @@ func (c_ CaptureFileOutput) OutputFileURL() foundation.URL { return rv } -// The maximum size, in bytes, of the data that should be recorded by the receiver. [Full Topic] +// Indicates the size, in bytes, of the data recorded to the current output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387684-maxrecordedfilesize?language=objc -func (c_ CaptureFileOutput) MaxRecordedFileSize() int64 { - rv := objc.Call[int64](c_, objc.Sel("maxRecordedFileSize")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1386933-recordedfilesize?language=objc +func (c_ CaptureFileOutput) RecordedFileSize() int64 { + rv := objc.Call[int64](c_, objc.Sel("recordedFileSize")) return rv } - -// The maximum size, in bytes, of the data that should be recorded by the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1387684-maxrecordedfilesize?language=objc -func (c_ CaptureFileOutput) SetMaxRecordedFileSize(value int64) { - objc.Call[objc.Void](c_, objc.Sel("setMaxRecordedFileSize:"), value) -} diff --git a/macos/avfoundation/capture_file_output_delegate.gen.go b/macos/avfoundation/capture_file_output_delegate.gen.go index ac5abf51..d9f334de 100644 --- a/macos/avfoundation/capture_file_output_delegate.gen.go +++ b/macos/avfoundation/capture_file_output_delegate.gen.go @@ -30,14 +30,14 @@ func (di *CaptureFileOutputDelegate) HasCaptureOutputShouldProvideSampleAccurate return di._CaptureOutputShouldProvideSampleAccurateRecordingStart != nil } -// Allows a client to opt in to frame accurate recording in [avfoundation/avcapturefileoutputdelegate/captureoutput]. [Full Topic] +// Allows a client to opt in to frame accurate recording in captureOutput:didOutputSampleBuffer:fromConnection:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputdelegate/1388760-captureoutputshouldprovidesample?language=objc func (di *CaptureFileOutputDelegate) SetCaptureOutputShouldProvideSampleAccurateRecordingStart(f func(output CaptureOutput) bool) { di._CaptureOutputShouldProvideSampleAccurateRecordingStart = f } -// Allows a client to opt in to frame accurate recording in [avfoundation/avcapturefileoutputdelegate/captureoutput]. [Full Topic] +// Allows a client to opt in to frame accurate recording in captureOutput:didOutputSampleBuffer:fromConnection:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputdelegate/1388760-captureoutputshouldprovidesample?language=objc func (di *CaptureFileOutputDelegate) CaptureOutputShouldProvideSampleAccurateRecordingStart(output CaptureOutput) bool { @@ -73,7 +73,7 @@ func (c_ CaptureFileOutputDelegateObject) HasCaptureOutputShouldProvideSampleAcc return c_.RespondsToSelector(objc.Sel("captureOutputShouldProvideSampleAccurateRecordingStart:")) } -// Allows a client to opt in to frame accurate recording in [avfoundation/avcapturefileoutputdelegate/captureoutput]. [Full Topic] +// Allows a client to opt in to frame accurate recording in captureOutput:didOutputSampleBuffer:fromConnection:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputdelegate/1388760-captureoutputshouldprovidesample?language=objc func (c_ CaptureFileOutputDelegateObject) CaptureOutputShouldProvideSampleAccurateRecordingStart(output CaptureOutput) bool { diff --git a/macos/avfoundation/capture_file_output_recording_delegate.gen.go b/macos/avfoundation/capture_file_output_recording_delegate.gen.go index 6933511a..ec1657fd 100644 --- a/macos/avfoundation/capture_file_output_recording_delegate.gen.go +++ b/macos/avfoundation/capture_file_output_recording_delegate.gen.go @@ -11,53 +11,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate?language=objc type PCaptureFileOutputRecordingDelegate interface { - // optional - CaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection, error foundation.Error) - HasCaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError() bool - // optional CaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) HasCaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections() bool - - // optional - CaptureOutputDidStartRecordingToOutputFileAtURLFromConnections(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) - HasCaptureOutputDidStartRecordingToOutputFileAtURLFromConnections() bool - - // optional - CaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) - HasCaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections() bool - - // optional - CaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError(output CaptureFileOutput, outputFileURL foundation.URL, connections []CaptureConnection, error foundation.Error) - HasCaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError() bool } // A delegate implementation builder for the [PCaptureFileOutputRecordingDelegate] protocol. type CaptureFileOutputRecordingDelegate struct { - _CaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError func(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection, error foundation.Error) - _CaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections func(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) - _CaptureOutputDidStartRecordingToOutputFileAtURLFromConnections func(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) - _CaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections func(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) - _CaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError func(output CaptureFileOutput, outputFileURL foundation.URL, connections []CaptureConnection, error foundation.Error) -} - -func (di *CaptureFileOutputRecordingDelegate) HasCaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError() bool { - return di._CaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError != nil + _CaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections func(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) } -// Informs the delegate when the output will stop writing new samples to a file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1390625-captureoutput?language=objc -func (di *CaptureFileOutputRecordingDelegate) SetCaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError(f func(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection, error foundation.Error)) { - di._CaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError = f -} - -// Informs the delegate when the output will stop writing new samples to a file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1390625-captureoutput?language=objc -func (di *CaptureFileOutputRecordingDelegate) CaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection, error foundation.Error) { - di._CaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError(output, fileURL, connections, error) -} func (di *CaptureFileOutputRecordingDelegate) HasCaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections() bool { return di._CaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections != nil } @@ -75,57 +38,6 @@ func (di *CaptureFileOutputRecordingDelegate) SetCaptureOutputDidPauseRecordingT func (di *CaptureFileOutputRecordingDelegate) CaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) { di._CaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections(output, fileURL, connections) } -func (di *CaptureFileOutputRecordingDelegate) HasCaptureOutputDidStartRecordingToOutputFileAtURLFromConnections() bool { - return di._CaptureOutputDidStartRecordingToOutputFileAtURLFromConnections != nil -} - -// Informs the delegate when the output has started writing to a file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1387301-captureoutput?language=objc -func (di *CaptureFileOutputRecordingDelegate) SetCaptureOutputDidStartRecordingToOutputFileAtURLFromConnections(f func(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection)) { - di._CaptureOutputDidStartRecordingToOutputFileAtURLFromConnections = f -} - -// Informs the delegate when the output has started writing to a file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1387301-captureoutput?language=objc -func (di *CaptureFileOutputRecordingDelegate) CaptureOutputDidStartRecordingToOutputFileAtURLFromConnections(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) { - di._CaptureOutputDidStartRecordingToOutputFileAtURLFromConnections(output, fileURL, connections) -} -func (di *CaptureFileOutputRecordingDelegate) HasCaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections() bool { - return di._CaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections != nil -} - -// Called whenever the output, at the request of the client, successfully resumes a file recording that was paused. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1387653-captureoutput?language=objc -func (di *CaptureFileOutputRecordingDelegate) SetCaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections(f func(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection)) { - di._CaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections = f -} - -// Called whenever the output, at the request of the client, successfully resumes a file recording that was paused. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1387653-captureoutput?language=objc -func (di *CaptureFileOutputRecordingDelegate) CaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) { - di._CaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections(output, fileURL, connections) -} -func (di *CaptureFileOutputRecordingDelegate) HasCaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError() bool { - return di._CaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError != nil -} - -// Informs the delegate when all pending data has been written to an output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1390612-captureoutput?language=objc -func (di *CaptureFileOutputRecordingDelegate) SetCaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError(f func(output CaptureFileOutput, outputFileURL foundation.URL, connections []CaptureConnection, error foundation.Error)) { - di._CaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError = f -} - -// Informs the delegate when all pending data has been written to an output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1390612-captureoutput?language=objc -func (di *CaptureFileOutputRecordingDelegate) CaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError(output CaptureFileOutput, outputFileURL foundation.URL, connections []CaptureConnection, error foundation.Error) { - di._CaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError(output, outputFileURL, connections, error) -} // ensure impl type implements protocol interface var _ PCaptureFileOutputRecordingDelegate = (*CaptureFileOutputRecordingDelegateObject)(nil) @@ -135,17 +47,6 @@ type CaptureFileOutputRecordingDelegateObject struct { objc.Object } -func (c_ CaptureFileOutputRecordingDelegateObject) HasCaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError() bool { - return c_.RespondsToSelector(objc.Sel("captureOutput:willFinishRecordingToOutputFileAtURL:fromConnections:error:")) -} - -// Informs the delegate when the output will stop writing new samples to a file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1390625-captureoutput?language=objc -func (c_ CaptureFileOutputRecordingDelegateObject) CaptureOutputWillFinishRecordingToOutputFileAtURLFromConnectionsError(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection, error foundation.Error) { - objc.Call[objc.Void](c_, objc.Sel("captureOutput:willFinishRecordingToOutputFileAtURL:fromConnections:error:"), output, fileURL, connections, error) -} - func (c_ CaptureFileOutputRecordingDelegateObject) HasCaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections() bool { return c_.RespondsToSelector(objc.Sel("captureOutput:didPauseRecordingToOutputFileAtURL:fromConnections:")) } @@ -156,36 +57,3 @@ func (c_ CaptureFileOutputRecordingDelegateObject) HasCaptureOutputDidPauseRecor func (c_ CaptureFileOutputRecordingDelegateObject) CaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) { objc.Call[objc.Void](c_, objc.Sel("captureOutput:didPauseRecordingToOutputFileAtURL:fromConnections:"), output, fileURL, connections) } - -func (c_ CaptureFileOutputRecordingDelegateObject) HasCaptureOutputDidStartRecordingToOutputFileAtURLFromConnections() bool { - return c_.RespondsToSelector(objc.Sel("captureOutput:didStartRecordingToOutputFileAtURL:fromConnections:")) -} - -// Informs the delegate when the output has started writing to a file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1387301-captureoutput?language=objc -func (c_ CaptureFileOutputRecordingDelegateObject) CaptureOutputDidStartRecordingToOutputFileAtURLFromConnections(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) { - objc.Call[objc.Void](c_, objc.Sel("captureOutput:didStartRecordingToOutputFileAtURL:fromConnections:"), output, fileURL, connections) -} - -func (c_ CaptureFileOutputRecordingDelegateObject) HasCaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections() bool { - return c_.RespondsToSelector(objc.Sel("captureOutput:didResumeRecordingToOutputFileAtURL:fromConnections:")) -} - -// Called whenever the output, at the request of the client, successfully resumes a file recording that was paused. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1387653-captureoutput?language=objc -func (c_ CaptureFileOutputRecordingDelegateObject) CaptureOutputDidResumeRecordingToOutputFileAtURLFromConnections(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) { - objc.Call[objc.Void](c_, objc.Sel("captureOutput:didResumeRecordingToOutputFileAtURL:fromConnections:"), output, fileURL, connections) -} - -func (c_ CaptureFileOutputRecordingDelegateObject) HasCaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError() bool { - return c_.RespondsToSelector(objc.Sel("captureOutput:didFinishRecordingToOutputFileAtURL:fromConnections:error:")) -} - -// Informs the delegate when all pending data has been written to an output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1390612-captureoutput?language=objc -func (c_ CaptureFileOutputRecordingDelegateObject) CaptureOutputDidFinishRecordingToOutputFileAtURLFromConnectionsError(output CaptureFileOutput, outputFileURL foundation.URL, connections []CaptureConnection, error foundation.Error) { - objc.Call[objc.Void](c_, objc.Sel("captureOutput:didFinishRecordingToOutputFileAtURL:fromConnections:error:"), output, outputFileURL, connections, error) -} diff --git a/macos/avfoundation/capture_input_port.gen.go b/macos/avfoundation/capture_input_port.gen.go index 0f203842..dba3ae22 100644 --- a/macos/avfoundation/capture_input_port.gen.go +++ b/macos/avfoundation/capture_input_port.gen.go @@ -19,12 +19,12 @@ type _CaptureInputPortClass struct { // An interface definition for the [CaptureInputPort] class. type ICaptureInputPort interface { objc.IObject + Clock() coremedia.ClockRef + Input() CaptureInput + MediaType() MediaType IsEnabled() bool SetEnabled(value bool) - Input() CaptureInput FormatDescription() coremedia.FormatDescriptionRef - MediaType() MediaType - Clock() coremedia.ClockRef } // An object that represents a stream of data that a capture input provides. [Full Topic] @@ -60,21 +60,14 @@ func (c_ CaptureInputPort) Init() CaptureInputPort { return rv } -// A Boolean value that indicates whether the port is in an enabled state. [Full Topic] +// An object that represents the capture device’s clock. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1386833-enabled?language=objc -func (c_ CaptureInputPort) IsEnabled() bool { - rv := objc.Call[bool](c_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1385908-clock?language=objc +func (c_ CaptureInputPort) Clock() coremedia.ClockRef { + rv := objc.Call[coremedia.ClockRef](c_, objc.Sel("clock")) return rv } -// A Boolean value that indicates whether the port is in an enabled state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1386833-enabled?language=objc -func (c_ CaptureInputPort) SetEnabled(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) -} - // The input object that owns the port. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1387702-input?language=objc @@ -83,14 +76,6 @@ func (c_ CaptureInputPort) Input() CaptureInput { return rv } -// A description of the port format. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1385890-formatdescription?language=objc -func (c_ CaptureInputPort) FormatDescription() coremedia.FormatDescriptionRef { - rv := objc.Call[coremedia.FormatDescriptionRef](c_, objc.Sel("formatDescription")) - return rv -} - // The media type of the port. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1387120-mediatype?language=objc @@ -99,10 +84,25 @@ func (c_ CaptureInputPort) MediaType() MediaType { return rv } -// An object that represents the capture device’s clock. [Full Topic] +// A Boolean value that indicates whether the port is in an enabled state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1385908-clock?language=objc -func (c_ CaptureInputPort) Clock() coremedia.ClockRef { - rv := objc.Call[coremedia.ClockRef](c_, objc.Sel("clock")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1386833-enabled?language=objc +func (c_ CaptureInputPort) IsEnabled() bool { + rv := objc.Call[bool](c_, objc.Sel("isEnabled")) + return rv +} + +// A Boolean value that indicates whether the port is in an enabled state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1386833-enabled?language=objc +func (c_ CaptureInputPort) SetEnabled(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) +} + +// A description of the port format. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1385890-formatdescription?language=objc +func (c_ CaptureInputPort) FormatDescription() coremedia.FormatDescriptionRef { + rv := objc.Call[coremedia.FormatDescriptionRef](c_, objc.Sel("formatDescription")) return rv } diff --git a/macos/avfoundation/capture_movie_file_output.gen.go b/macos/avfoundation/capture_movie_file_output.gen.go index b231719f..5c1e913d 100644 --- a/macos/avfoundation/capture_movie_file_output.gen.go +++ b/macos/avfoundation/capture_movie_file_output.gen.go @@ -20,16 +20,15 @@ type _CaptureMovieFileOutputClass struct { type ICaptureMovieFileOutput interface { ICaptureFileOutput OutputSettingsForConnection(connection ICaptureConnection) map[string]objc.Object - SetPrimaryConstituentDeviceSwitchingBehaviorForRecordingRestrictedSwitchingBehaviorConditions(switchingBehavior CapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions) SetOutputSettingsForConnection(outputSettings map[string]objc.IObject, connection ICaptureConnection) + SetPrimaryConstituentDeviceSwitchingBehaviorForRecordingRestrictedSwitchingBehaviorConditions(switchingBehavior CapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions) + PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions MovieFragmentInterval() coremedia.Time SetMovieFragmentInterval(value coremedia.Time) - PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions - IsPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled() bool - SetPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled(value bool) - PrimaryConstituentDeviceSwitchingBehaviorForRecording() CapturePrimaryConstituentDeviceSwitchingBehavior Metadata() []MetadataItem SetMetadata(value []IMetadataItem) + IsPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled() bool + SetPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled(value bool) } // A capture output that records video and audio to a QuickTime movie file. [Full Topic] @@ -45,11 +44,6 @@ func CaptureMovieFileOutputFrom(ptr unsafe.Pointer) CaptureMovieFileOutput { } } -func (c_ CaptureMovieFileOutput) Init() CaptureMovieFileOutput { - rv := objc.Call[CaptureMovieFileOutput](c_, objc.Sel("init")) - return rv -} - func (cc _CaptureMovieFileOutputClass) New() CaptureMovieFileOutput { rv := objc.Call[CaptureMovieFileOutput](cc, objc.Sel("new")) rv.Autorelease() @@ -60,6 +54,11 @@ func NewCaptureMovieFileOutput() CaptureMovieFileOutput { return CaptureMovieFileOutputClass.New() } +func (c_ CaptureMovieFileOutput) Init() CaptureMovieFileOutput { + rv := objc.Call[CaptureMovieFileOutput](c_, objc.Sel("init")) + return rv +} + func (cc _CaptureMovieFileOutputClass) Alloc() CaptureMovieFileOutput { rv := objc.Call[CaptureMovieFileOutput](cc, objc.Sel("alloc")) return rv @@ -73,6 +72,13 @@ func (c_ CaptureMovieFileOutput) OutputSettingsForConnection(connection ICapture return rv } +// Sets the options dictionary used to reencode media from the given connection as it's being recorded. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/1388448-setoutputsettings?language=objc +func (c_ CaptureMovieFileOutput) SetOutputSettingsForConnection(outputSettings map[string]objc.IObject, connection ICaptureConnection) { + objc.Call[objc.Void](c_, objc.Sel("setOutputSettings:forConnection:"), outputSettings, connection) +} + // Sets the camera switching behavior to use during recording. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/3875327-setprimaryconstituentdeviceswitc?language=objc @@ -80,11 +86,12 @@ func (c_ CaptureMovieFileOutput) SetPrimaryConstituentDeviceSwitchingBehaviorFor objc.Call[objc.Void](c_, objc.Sel("setPrimaryConstituentDeviceSwitchingBehaviorForRecording:restrictedSwitchingBehaviorConditions:"), switchingBehavior, restrictedSwitchingBehaviorConditions) } -// Sets the options dictionary used to reencode media from the given connection as it's being recorded. [Full Topic] +// The conditions during which camera switching may occur while recording. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/1388448-setoutputsettings?language=objc -func (c_ CaptureMovieFileOutput) SetOutputSettingsForConnection(outputSettings map[string]objc.IObject, connection ICaptureConnection) { - objc.Call[objc.Void](c_, objc.Sel("setOutputSettings:forConnection:"), outputSettings, connection) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/3875324-primaryconstituentdevicerestrict?language=objc +func (c_ CaptureMovieFileOutput) PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { + rv := objc.Call[CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions](c_, objc.Sel("primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording")) + return rv } // The number of seconds of output that are written per fragment. [Full Topic] @@ -102,14 +109,21 @@ func (c_ CaptureMovieFileOutput) SetMovieFragmentInterval(value coremedia.Time) objc.Call[objc.Void](c_, objc.Sel("setMovieFragmentInterval:"), value) } -// The conditions during which camera switching may occur while recording. [Full Topic] +// The metadata for the output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/3875324-primaryconstituentdevicerestrict?language=objc -func (c_ CaptureMovieFileOutput) PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { - rv := objc.Call[CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions](c_, objc.Sel("primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/1387808-metadata?language=objc +func (c_ CaptureMovieFileOutput) Metadata() []MetadataItem { + rv := objc.Call[[]MetadataItem](c_, objc.Sel("metadata")) return rv } +// The metadata for the output file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/1387808-metadata?language=objc +func (c_ CaptureMovieFileOutput) SetMetadata(value []IMetadataItem) { + objc.Call[objc.Void](c_, objc.Sel("setMetadata:"), value) +} + // A Boolean value that indicates whether to restrict constituent device switching behavior during recording. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/3875326-primaryconstituentdeviceswitchin?language=objc @@ -124,26 +138,3 @@ func (c_ CaptureMovieFileOutput) IsPrimaryConstituentDeviceSwitchingBehaviorForR func (c_ CaptureMovieFileOutput) SetPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled(value bool) { objc.Call[objc.Void](c_, objc.Sel("setPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled:"), value) } - -// The camera switching behavior to use for recording. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/3875325-primaryconstituentdeviceswitchin?language=objc -func (c_ CaptureMovieFileOutput) PrimaryConstituentDeviceSwitchingBehaviorForRecording() CapturePrimaryConstituentDeviceSwitchingBehavior { - rv := objc.Call[CapturePrimaryConstituentDeviceSwitchingBehavior](c_, objc.Sel("primaryConstituentDeviceSwitchingBehaviorForRecording")) - return rv -} - -// The metadata for the output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/1387808-metadata?language=objc -func (c_ CaptureMovieFileOutput) Metadata() []MetadataItem { - rv := objc.Call[[]MetadataItem](c_, objc.Sel("metadata")) - return rv -} - -// The metadata for the output file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/1387808-metadata?language=objc -func (c_ CaptureMovieFileOutput) SetMetadata(value []IMetadataItem) { - objc.Call[objc.Void](c_, objc.Sel("setMetadata:"), value) -} diff --git a/macos/avfoundation/capture_output.gen.go b/macos/avfoundation/capture_output.gen.go index 978a76ca..804d6d4b 100644 --- a/macos/avfoundation/capture_output.gen.go +++ b/macos/avfoundation/capture_output.gen.go @@ -20,8 +20,8 @@ type _CaptureOutputClass struct { type ICaptureOutput interface { objc.IObject TransformedMetadataObjectForMetadataObjectConnection(metadataObject IMetadataObject, connection ICaptureConnection) MetadataObject - RectForMetadataOutputRectOfInterest(rectInMetadataOutputCoordinates coregraphics.Rect) coregraphics.Rect MetadataOutputRectOfInterestForRect(rectInOutputCoordinates coregraphics.Rect) coregraphics.Rect + RectForMetadataOutputRectOfInterest(rectInMetadataOutputCoordinates coregraphics.Rect) coregraphics.Rect ConnectionWithMediaType(mediaType MediaType) CaptureConnection Connections() []CaptureConnection } @@ -67,14 +67,6 @@ func (c_ CaptureOutput) TransformedMetadataObjectForMetadataObjectConnection(met return rv } -// Converts a rectangle in the coordinate system used for metadata outputs to one in the capture output object’s coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureoutput/1616311-rectformetadataoutputrectofinter?language=objc -func (c_ CaptureOutput) RectForMetadataOutputRectOfInterest(rectInMetadataOutputCoordinates coregraphics.Rect) coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](c_, objc.Sel("rectForMetadataOutputRectOfInterest:"), rectInMetadataOutputCoordinates) - return rv -} - // Converts a rectangle in the capture output object’s coordinate system to one in the coordinate system used for metadata outputs. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureoutput/1616304-metadataoutputrectofinterestforr?language=objc @@ -83,6 +75,14 @@ func (c_ CaptureOutput) MetadataOutputRectOfInterestForRect(rectInOutputCoordina return rv } +// Converts a rectangle in the coordinate system used for metadata outputs to one in the capture output object’s coordinate system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureoutput/1616311-rectformetadataoutputrectofinter?language=objc +func (c_ CaptureOutput) RectForMetadataOutputRectOfInterest(rectInMetadataOutputCoordinates coregraphics.Rect) coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](c_, objc.Sel("rectForMetadataOutputRectOfInterest:"), rectInMetadataOutputCoordinates) + return rv +} + // Returns the first connection with an input port of a specified media type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureoutput/1389574-connectionwithmediatype?language=objc diff --git a/macos/avfoundation/capture_photo.gen.go b/macos/avfoundation/capture_photo.gen.go index 5716e5d3..f84ce37c 100644 --- a/macos/avfoundation/capture_photo.gen.go +++ b/macos/avfoundation/capture_photo.gen.go @@ -23,10 +23,10 @@ type ICapturePhoto interface { objc.IObject FileDataRepresentation() []byte CGImageRepresentation() coregraphics.ImageRef - ResolvedSettings() CaptureResolvedPhotoSettings + PixelBuffer() corevideo.PixelBufferRef PhotoCount() int + ResolvedSettings() CaptureResolvedPhotoSettings Timestamp() coremedia.Time - PixelBuffer() corevideo.PixelBufferRef } // A container for image data from a photo capture output. [Full Topic] @@ -78,11 +78,11 @@ func (c_ CapturePhoto) CGImageRepresentation() coregraphics.ImageRef { return rv } -// The settings object that was used to request this photo capture. [Full Topic] +// The uncompressed or RAW image sample buffer for the photo, if requested. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephoto/2873898-resolvedsettings?language=objc -func (c_ CapturePhoto) ResolvedSettings() CaptureResolvedPhotoSettings { - rv := objc.Call[CaptureResolvedPhotoSettings](c_, objc.Sel("resolvedSettings")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephoto/2873914-pixelbuffer?language=objc +func (c_ CapturePhoto) PixelBuffer() corevideo.PixelBufferRef { + rv := objc.Call[corevideo.PixelBufferRef](c_, objc.Sel("pixelBuffer")) return rv } @@ -94,18 +94,18 @@ func (c_ CapturePhoto) PhotoCount() int { return rv } -// The time at which the image was captured. [Full Topic] +// The settings object that was used to request this photo capture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephoto/2873981-timestamp?language=objc -func (c_ CapturePhoto) Timestamp() coremedia.Time { - rv := objc.Call[coremedia.Time](c_, objc.Sel("timestamp")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephoto/2873898-resolvedsettings?language=objc +func (c_ CapturePhoto) ResolvedSettings() CaptureResolvedPhotoSettings { + rv := objc.Call[CaptureResolvedPhotoSettings](c_, objc.Sel("resolvedSettings")) return rv } -// The uncompressed or RAW image sample buffer for the photo, if requested. [Full Topic] +// The time at which the image was captured. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephoto/2873914-pixelbuffer?language=objc -func (c_ CapturePhoto) PixelBuffer() corevideo.PixelBufferRef { - rv := objc.Call[corevideo.PixelBufferRef](c_, objc.Sel("pixelBuffer")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephoto/2873981-timestamp?language=objc +func (c_ CapturePhoto) Timestamp() coremedia.Time { + rv := objc.Call[coremedia.Time](c_, objc.Sel("timestamp")) return rv } diff --git a/macos/avfoundation/capture_photo_capture_delegate.gen.go b/macos/avfoundation/capture_photo_capture_delegate.gen.go index 480abb80..b57053bc 100644 --- a/macos/avfoundation/capture_photo_capture_delegate.gen.go +++ b/macos/avfoundation/capture_photo_capture_delegate.gen.go @@ -3,7 +3,6 @@ package avfoundation import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -11,87 +10,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate?language=objc type PCapturePhotoCaptureDelegate interface { - // optional - CaptureOutputDidFinishCaptureForResolvedSettingsError(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings, error foundation.Error) - HasCaptureOutputDidFinishCaptureForResolvedSettingsError() bool - - // optional - CaptureOutputWillCapturePhotoForResolvedSettings(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) - HasCaptureOutputWillCapturePhotoForResolvedSettings() bool - - // optional - CaptureOutputDidFinishProcessingPhotoError(output CapturePhotoOutput, photo CapturePhoto, error foundation.Error) - HasCaptureOutputDidFinishProcessingPhotoError() bool - // optional CaptureOutputDidCapturePhotoForResolvedSettings(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) HasCaptureOutputDidCapturePhotoForResolvedSettings() bool - - // optional - CaptureOutputWillBeginCaptureForResolvedSettings(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) - HasCaptureOutputWillBeginCaptureForResolvedSettings() bool } // A delegate implementation builder for the [PCapturePhotoCaptureDelegate] protocol. type CapturePhotoCaptureDelegate struct { - _CaptureOutputDidFinishCaptureForResolvedSettingsError func(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings, error foundation.Error) - _CaptureOutputWillCapturePhotoForResolvedSettings func(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) - _CaptureOutputDidFinishProcessingPhotoError func(output CapturePhotoOutput, photo CapturePhoto, error foundation.Error) - _CaptureOutputDidCapturePhotoForResolvedSettings func(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) - _CaptureOutputWillBeginCaptureForResolvedSettings func(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) -} - -func (di *CapturePhotoCaptureDelegate) HasCaptureOutputDidFinishCaptureForResolvedSettingsError() bool { - return di._CaptureOutputDidFinishCaptureForResolvedSettingsError != nil -} - -// Notifies the delegate that the capture process is complete. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778618-captureoutput?language=objc -func (di *CapturePhotoCaptureDelegate) SetCaptureOutputDidFinishCaptureForResolvedSettingsError(f func(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings, error foundation.Error)) { - di._CaptureOutputDidFinishCaptureForResolvedSettingsError = f -} - -// Notifies the delegate that the capture process is complete. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778618-captureoutput?language=objc -func (di *CapturePhotoCaptureDelegate) CaptureOutputDidFinishCaptureForResolvedSettingsError(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings, error foundation.Error) { - di._CaptureOutputDidFinishCaptureForResolvedSettingsError(output, resolvedSettings, error) -} -func (di *CapturePhotoCaptureDelegate) HasCaptureOutputWillCapturePhotoForResolvedSettings() bool { - return di._CaptureOutputWillCapturePhotoForResolvedSettings != nil -} - -// Notifies the delegate that photo capture is about to occur. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778625-captureoutput?language=objc -func (di *CapturePhotoCaptureDelegate) SetCaptureOutputWillCapturePhotoForResolvedSettings(f func(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings)) { - di._CaptureOutputWillCapturePhotoForResolvedSettings = f -} - -// Notifies the delegate that photo capture is about to occur. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778625-captureoutput?language=objc -func (di *CapturePhotoCaptureDelegate) CaptureOutputWillCapturePhotoForResolvedSettings(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) { - di._CaptureOutputWillCapturePhotoForResolvedSettings(output, resolvedSettings) -} -func (di *CapturePhotoCaptureDelegate) HasCaptureOutputDidFinishProcessingPhotoError() bool { - return di._CaptureOutputDidFinishProcessingPhotoError != nil + _CaptureOutputDidCapturePhotoForResolvedSettings func(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) } -// Provides the delegate with the captured image and associated metadata resulting from a photo capture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/2873949-captureoutput?language=objc -func (di *CapturePhotoCaptureDelegate) SetCaptureOutputDidFinishProcessingPhotoError(f func(output CapturePhotoOutput, photo CapturePhoto, error foundation.Error)) { - di._CaptureOutputDidFinishProcessingPhotoError = f -} - -// Provides the delegate with the captured image and associated metadata resulting from a photo capture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/2873949-captureoutput?language=objc -func (di *CapturePhotoCaptureDelegate) CaptureOutputDidFinishProcessingPhotoError(output CapturePhotoOutput, photo CapturePhoto, error foundation.Error) { - di._CaptureOutputDidFinishProcessingPhotoError(output, photo, error) -} func (di *CapturePhotoCaptureDelegate) HasCaptureOutputDidCapturePhotoForResolvedSettings() bool { return di._CaptureOutputDidCapturePhotoForResolvedSettings != nil } @@ -109,23 +37,6 @@ func (di *CapturePhotoCaptureDelegate) SetCaptureOutputDidCapturePhotoForResolve func (di *CapturePhotoCaptureDelegate) CaptureOutputDidCapturePhotoForResolvedSettings(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) { di._CaptureOutputDidCapturePhotoForResolvedSettings(output, resolvedSettings) } -func (di *CapturePhotoCaptureDelegate) HasCaptureOutputWillBeginCaptureForResolvedSettings() bool { - return di._CaptureOutputWillBeginCaptureForResolvedSettings != nil -} - -// Notifies the delegate that the capture output has resolved settings and will soon begin its capture process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778621-captureoutput?language=objc -func (di *CapturePhotoCaptureDelegate) SetCaptureOutputWillBeginCaptureForResolvedSettings(f func(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings)) { - di._CaptureOutputWillBeginCaptureForResolvedSettings = f -} - -// Notifies the delegate that the capture output has resolved settings and will soon begin its capture process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778621-captureoutput?language=objc -func (di *CapturePhotoCaptureDelegate) CaptureOutputWillBeginCaptureForResolvedSettings(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) { - di._CaptureOutputWillBeginCaptureForResolvedSettings(output, resolvedSettings) -} // ensure impl type implements protocol interface var _ PCapturePhotoCaptureDelegate = (*CapturePhotoCaptureDelegateObject)(nil) @@ -135,39 +46,6 @@ type CapturePhotoCaptureDelegateObject struct { objc.Object } -func (c_ CapturePhotoCaptureDelegateObject) HasCaptureOutputDidFinishCaptureForResolvedSettingsError() bool { - return c_.RespondsToSelector(objc.Sel("captureOutput:didFinishCaptureForResolvedSettings:error:")) -} - -// Notifies the delegate that the capture process is complete. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778618-captureoutput?language=objc -func (c_ CapturePhotoCaptureDelegateObject) CaptureOutputDidFinishCaptureForResolvedSettingsError(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings, error foundation.Error) { - objc.Call[objc.Void](c_, objc.Sel("captureOutput:didFinishCaptureForResolvedSettings:error:"), output, resolvedSettings, error) -} - -func (c_ CapturePhotoCaptureDelegateObject) HasCaptureOutputWillCapturePhotoForResolvedSettings() bool { - return c_.RespondsToSelector(objc.Sel("captureOutput:willCapturePhotoForResolvedSettings:")) -} - -// Notifies the delegate that photo capture is about to occur. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778625-captureoutput?language=objc -func (c_ CapturePhotoCaptureDelegateObject) CaptureOutputWillCapturePhotoForResolvedSettings(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) { - objc.Call[objc.Void](c_, objc.Sel("captureOutput:willCapturePhotoForResolvedSettings:"), output, resolvedSettings) -} - -func (c_ CapturePhotoCaptureDelegateObject) HasCaptureOutputDidFinishProcessingPhotoError() bool { - return c_.RespondsToSelector(objc.Sel("captureOutput:didFinishProcessingPhoto:error:")) -} - -// Provides the delegate with the captured image and associated metadata resulting from a photo capture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/2873949-captureoutput?language=objc -func (c_ CapturePhotoCaptureDelegateObject) CaptureOutputDidFinishProcessingPhotoError(output CapturePhotoOutput, photo CapturePhoto, error foundation.Error) { - objc.Call[objc.Void](c_, objc.Sel("captureOutput:didFinishProcessingPhoto:error:"), output, photo, error) -} - func (c_ CapturePhotoCaptureDelegateObject) HasCaptureOutputDidCapturePhotoForResolvedSettings() bool { return c_.RespondsToSelector(objc.Sel("captureOutput:didCapturePhotoForResolvedSettings:")) } @@ -178,14 +56,3 @@ func (c_ CapturePhotoCaptureDelegateObject) HasCaptureOutputDidCapturePhotoForRe func (c_ CapturePhotoCaptureDelegateObject) CaptureOutputDidCapturePhotoForResolvedSettings(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) { objc.Call[objc.Void](c_, objc.Sel("captureOutput:didCapturePhotoForResolvedSettings:"), output, resolvedSettings) } - -func (c_ CapturePhotoCaptureDelegateObject) HasCaptureOutputWillBeginCaptureForResolvedSettings() bool { - return c_.RespondsToSelector(objc.Sel("captureOutput:willBeginCaptureForResolvedSettings:")) -} - -// Notifies the delegate that the capture output has resolved settings and will soon begin its capture process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778621-captureoutput?language=objc -func (c_ CapturePhotoCaptureDelegateObject) CaptureOutputWillBeginCaptureForResolvedSettings(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) { - objc.Call[objc.Void](c_, objc.Sel("captureOutput:willBeginCaptureForResolvedSettings:"), output, resolvedSettings) -} diff --git a/macos/avfoundation/capture_photo_output.gen.go b/macos/avfoundation/capture_photo_output.gen.go index f1f7d03b..077a641b 100644 --- a/macos/avfoundation/capture_photo_output.gen.go +++ b/macos/avfoundation/capture_photo_output.gen.go @@ -19,13 +19,13 @@ type _CapturePhotoOutputClass struct { // An interface definition for the [CapturePhotoOutput] class. type ICapturePhotoOutput interface { ICaptureOutput - CapturePhotoWithSettingsDelegate(settings ICapturePhotoSettings, delegate PCapturePhotoCaptureDelegate) - CapturePhotoWithSettingsDelegateObject(settings ICapturePhotoSettings, delegateObject objc.IObject) SupportedPhotoPixelFormatTypesForFileType(fileType FileType) []foundation.Number SupportedPhotoCodecTypesForFileType(fileType FileType) []VideoCodecType + CapturePhotoWithSettingsDelegate(settings ICapturePhotoSettings, delegate PCapturePhotoCaptureDelegate) + CapturePhotoWithSettingsDelegateObject(settings ICapturePhotoSettings, delegateObject objc.IObject) + AvailablePhotoCodecTypes() []VideoCodecType AvailablePhotoPixelFormatTypes() []foundation.Number AvailablePhotoFileTypes() []FileType - AvailablePhotoCodecTypes() []VideoCodecType } // A capture output for still image, Live Photos, and other photography workflows. [Full Topic] @@ -41,11 +41,6 @@ func CapturePhotoOutputFrom(ptr unsafe.Pointer) CapturePhotoOutput { } } -func (c_ CapturePhotoOutput) Init() CapturePhotoOutput { - rv := objc.Call[CapturePhotoOutput](c_, objc.Sel("init")) - return rv -} - func (cc _CapturePhotoOutputClass) New() CapturePhotoOutput { rv := objc.Call[CapturePhotoOutput](cc, objc.Sel("new")) rv.Autorelease() @@ -56,11 +51,32 @@ func NewCapturePhotoOutput() CapturePhotoOutput { return CapturePhotoOutputClass.New() } +func (c_ CapturePhotoOutput) Init() CapturePhotoOutput { + rv := objc.Call[CapturePhotoOutput](c_, objc.Sel("init")) + return rv +} + func (cc _CapturePhotoOutputClass) Alloc() CapturePhotoOutput { rv := objc.Call[CapturePhotoOutput](cc, objc.Sel("alloc")) return rv } +// Returns the list of uncompressed pixel formats supported for photo data in the specified file type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotooutput/2873950-supportedphotopixelformattypesfo?language=objc +func (c_ CapturePhotoOutput) SupportedPhotoPixelFormatTypesForFileType(fileType FileType) []foundation.Number { + rv := objc.Call[[]foundation.Number](c_, objc.Sel("supportedPhotoPixelFormatTypesForFileType:"), fileType) + return rv +} + +// Returns the list of photo codecs (such as JPEG or HEVC) supported for photo data in the specified file type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotooutput/2873916-supportedphotocodectypesforfilet?language=objc +func (c_ CapturePhotoOutput) SupportedPhotoCodecTypesForFileType(fileType FileType) []VideoCodecType { + rv := objc.Call[[]VideoCodecType](c_, objc.Sel("supportedPhotoCodecTypesForFileType:"), fileType) + return rv +} + // Initiates a photo capture using the specified settings. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotooutput/1648765-capturephotowithsettings?language=objc @@ -76,19 +92,11 @@ func (c_ CapturePhotoOutput) CapturePhotoWithSettingsDelegateObject(settings ICa objc.Call[objc.Void](c_, objc.Sel("capturePhotoWithSettings:delegate:"), settings, delegateObject) } -// Returns the list of uncompressed pixel formats supported for photo data in the specified file type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotooutput/2873950-supportedphotopixelformattypesfo?language=objc -func (c_ CapturePhotoOutput) SupportedPhotoPixelFormatTypesForFileType(fileType FileType) []foundation.Number { - rv := objc.Call[[]foundation.Number](c_, objc.Sel("supportedPhotoPixelFormatTypesForFileType:"), fileType) - return rv -} - -// Returns the list of photo codecs (such as JPEG or HEVC) supported for photo data in the specified file type. [Full Topic] +// The compression codecs this capture output currently supports for photo capture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotooutput/2873916-supportedphotocodectypesforfilet?language=objc -func (c_ CapturePhotoOutput) SupportedPhotoCodecTypesForFileType(fileType FileType) []VideoCodecType { - rv := objc.Call[[]VideoCodecType](c_, objc.Sel("supportedPhotoCodecTypesForFileType:"), fileType) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotooutput/1648654-availablephotocodectypes?language=objc +func (c_ CapturePhotoOutput) AvailablePhotoCodecTypes() []VideoCodecType { + rv := objc.Call[[]VideoCodecType](c_, objc.Sel("availablePhotoCodecTypes")) return rv } @@ -107,11 +115,3 @@ func (c_ CapturePhotoOutput) AvailablePhotoFileTypes() []FileType { rv := objc.Call[[]FileType](c_, objc.Sel("availablePhotoFileTypes")) return rv } - -// The compression codecs this capture output currently supports for photo capture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotooutput/1648654-availablephotocodectypes?language=objc -func (c_ CapturePhotoOutput) AvailablePhotoCodecTypes() []VideoCodecType { - rv := objc.Call[[]VideoCodecType](c_, objc.Sel("availablePhotoCodecTypes")) - return rv -} diff --git a/macos/avfoundation/capture_photo_settings.gen.go b/macos/avfoundation/capture_photo_settings.gen.go index b86d976b..0e19bc40 100644 --- a/macos/avfoundation/capture_photo_settings.gen.go +++ b/macos/avfoundation/capture_photo_settings.gen.go @@ -18,8 +18,8 @@ type _CapturePhotoSettingsClass struct { // An interface definition for the [CapturePhotoSettings] class. type ICapturePhotoSettings interface { objc.IObject - Format() map[string]objc.Object UniqueID() int64 + Format() map[string]objc.Object ProcessedFileType() FileType } @@ -36,6 +36,18 @@ func CapturePhotoSettingsFrom(ptr unsafe.Pointer) CapturePhotoSettings { } } +func (cc _CapturePhotoSettingsClass) PhotoSettingsFromPhotoSettings(photoSettings ICapturePhotoSettings) CapturePhotoSettings { + rv := objc.Call[CapturePhotoSettings](cc, objc.Sel("photoSettingsFromPhotoSettings:"), photoSettings) + return rv +} + +// Creates a unique photo settings object, copying all settings values from the specified photo settings object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/1778655-photosettingsfromphotosettings?language=objc +func CapturePhotoSettings_PhotoSettingsFromPhotoSettings(photoSettings ICapturePhotoSettings) CapturePhotoSettings { + return CapturePhotoSettingsClass.PhotoSettingsFromPhotoSettings(photoSettings) +} + func (cc _CapturePhotoSettingsClass) PhotoSettings() CapturePhotoSettings { rv := objc.Call[CapturePhotoSettings](cc, objc.Sel("photoSettings")) return rv @@ -60,18 +72,6 @@ func CapturePhotoSettings_PhotoSettingsWithFormat(format map[string]objc.IObject return CapturePhotoSettingsClass.PhotoSettingsWithFormat(format) } -func (cc _CapturePhotoSettingsClass) PhotoSettingsFromPhotoSettings(photoSettings ICapturePhotoSettings) CapturePhotoSettings { - rv := objc.Call[CapturePhotoSettings](cc, objc.Sel("photoSettingsFromPhotoSettings:"), photoSettings) - return rv -} - -// Creates a unique photo settings object, copying all settings values from the specified photo settings object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/1778655-photosettingsfromphotosettings?language=objc -func CapturePhotoSettings_PhotoSettingsFromPhotoSettings(photoSettings ICapturePhotoSettings) CapturePhotoSettings { - return CapturePhotoSettingsClass.PhotoSettingsFromPhotoSettings(photoSettings) -} - func (cc _CapturePhotoSettingsClass) Alloc() CapturePhotoSettings { rv := objc.Call[CapturePhotoSettings](cc, objc.Sel("alloc")) return rv @@ -92,14 +92,6 @@ func (c_ CapturePhotoSettings) Init() CapturePhotoSettings { return rv } -// A dictionary describing the processed format (for example, JPEG) to deliver captured photos in. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/1648783-format?language=objc -func (c_ CapturePhotoSettings) Format() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](c_, objc.Sel("format")) - return rv -} - // A unique identifier for this photo settings instance. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/1648767-uniqueid?language=objc @@ -108,6 +100,14 @@ func (c_ CapturePhotoSettings) UniqueID() int64 { return rv } +// A dictionary describing the processed format (for example, JPEG) to deliver captured photos in. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/1648783-format?language=objc +func (c_ CapturePhotoSettings) Format() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](c_, objc.Sel("format")) + return rv +} + // The container file format for eventual output of the processed image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/2873970-processedfiletype?language=objc diff --git a/macos/avfoundation/capture_resolved_photo_settings.gen.go b/macos/avfoundation/capture_resolved_photo_settings.gen.go index 87fa6047..08990a57 100644 --- a/macos/avfoundation/capture_resolved_photo_settings.gen.go +++ b/macos/avfoundation/capture_resolved_photo_settings.gen.go @@ -19,8 +19,8 @@ type _CaptureResolvedPhotoSettingsClass struct { // An interface definition for the [CaptureResolvedPhotoSettings] class. type ICaptureResolvedPhotoSettings interface { objc.IObject - ExpectedPhotoCount() uint PhotoDimensions() coremedia.VideoDimensions + ExpectedPhotoCount() uint UniqueID() int64 } @@ -57,14 +57,6 @@ func (c_ CaptureResolvedPhotoSettings) Init() CaptureResolvedPhotoSettings { return rv } -// The number of photo capture results in the capture request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureresolvedphotosettings/2873973-expectedphotocount?language=objc -func (c_ CaptureResolvedPhotoSettings) ExpectedPhotoCount() uint { - rv := objc.Call[uint](c_, objc.Sel("expectedPhotoCount")) - return rv -} - // The size, in pixels, of the photo image (in a processed format, such as JPEG) that the capture delivers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureresolvedphotosettings/1648782-photodimensions?language=objc @@ -73,6 +65,14 @@ func (c_ CaptureResolvedPhotoSettings) PhotoDimensions() coremedia.VideoDimensio return rv } +// The number of photo capture results in the capture request. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureresolvedphotosettings/2873973-expectedphotocount?language=objc +func (c_ CaptureResolvedPhotoSettings) ExpectedPhotoCount() uint { + rv := objc.Call[uint](c_, objc.Sel("expectedPhotoCount")) + return rv +} + // The unique identifier for the photo capture this settings object corresponds to. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureresolvedphotosettings/1648656-uniqueid?language=objc diff --git a/macos/avfoundation/capture_screen_input.gen.go b/macos/avfoundation/capture_screen_input.gen.go index 7397fd64..c958f642 100644 --- a/macos/avfoundation/capture_screen_input.gen.go +++ b/macos/avfoundation/capture_screen_input.gen.go @@ -20,16 +20,16 @@ type _CaptureScreenInputClass struct { // An interface definition for the [CaptureScreenInput] class. type ICaptureScreenInput interface { ICaptureInput - CropRect() coregraphics.Rect - SetCropRect(value coregraphics.Rect) - ScaleFactor() float64 - SetScaleFactor(value float64) CapturesCursor() bool SetCapturesCursor(value bool) - MinFrameDuration() coremedia.Time - SetMinFrameDuration(value coremedia.Time) + ScaleFactor() float64 + SetScaleFactor(value float64) CapturesMouseClicks() bool SetCapturesMouseClicks(value bool) + MinFrameDuration() coremedia.Time + SetMinFrameDuration(value coremedia.Time) + CropRect() coregraphics.Rect + SetCropRect(value coregraphics.Rect) } // A capture input for recording from a screen in macOS. [Full Topic] @@ -79,19 +79,19 @@ func (cc _CaptureScreenInputClass) Alloc() CaptureScreenInput { return rv } -// Indicates the bounding rectangle of the screen area to be captured, in pixels. [Full Topic] +// A Boolean value that specifies whether the mouse cursor appears in the captured output. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1390518-croprect?language=objc -func (c_ CaptureScreenInput) CropRect() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](c_, objc.Sel("cropRect")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1385601-capturescursor?language=objc +func (c_ CaptureScreenInput) CapturesCursor() bool { + rv := objc.Call[bool](c_, objc.Sel("capturesCursor")) return rv } -// Indicates the bounding rectangle of the screen area to be captured, in pixels. [Full Topic] +// A Boolean value that specifies whether the mouse cursor appears in the captured output. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1390518-croprect?language=objc -func (c_ CaptureScreenInput) SetCropRect(value coregraphics.Rect) { - objc.Call[objc.Void](c_, objc.Sel("setCropRect:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1385601-capturescursor?language=objc +func (c_ CaptureScreenInput) SetCapturesCursor(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setCapturesCursor:"), value) } // Indicates the factor by which video buffers captured from the screen are to be scaled. [Full Topic] @@ -109,19 +109,19 @@ func (c_ CaptureScreenInput) SetScaleFactor(value float64) { objc.Call[objc.Void](c_, objc.Sel("setScaleFactor:"), value) } -// A Boolean value that specifies whether the mouse cursor appears in the captured output. [Full Topic] +// A Boolean value that specifies whether mouse clicks appear highlighted in the captured output. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1385601-capturescursor?language=objc -func (c_ CaptureScreenInput) CapturesCursor() bool { - rv := objc.Call[bool](c_, objc.Sel("capturesCursor")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1385722-capturesmouseclicks?language=objc +func (c_ CaptureScreenInput) CapturesMouseClicks() bool { + rv := objc.Call[bool](c_, objc.Sel("capturesMouseClicks")) return rv } -// A Boolean value that specifies whether the mouse cursor appears in the captured output. [Full Topic] +// A Boolean value that specifies whether mouse clicks appear highlighted in the captured output. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1385601-capturescursor?language=objc -func (c_ CaptureScreenInput) SetCapturesCursor(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setCapturesCursor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1385722-capturesmouseclicks?language=objc +func (c_ CaptureScreenInput) SetCapturesMouseClicks(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setCapturesMouseClicks:"), value) } // The screen input's minimum frame duration. [Full Topic] @@ -139,17 +139,17 @@ func (c_ CaptureScreenInput) SetMinFrameDuration(value coremedia.Time) { objc.Call[objc.Void](c_, objc.Sel("setMinFrameDuration:"), value) } -// A Boolean value that specifies whether mouse clicks appear highlighted in the captured output. [Full Topic] +// Indicates the bounding rectangle of the screen area to be captured, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1385722-capturesmouseclicks?language=objc -func (c_ CaptureScreenInput) CapturesMouseClicks() bool { - rv := objc.Call[bool](c_, objc.Sel("capturesMouseClicks")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1390518-croprect?language=objc +func (c_ CaptureScreenInput) CropRect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](c_, objc.Sel("cropRect")) return rv } -// A Boolean value that specifies whether mouse clicks appear highlighted in the captured output. [Full Topic] +// Indicates the bounding rectangle of the screen area to be captured, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1385722-capturesmouseclicks?language=objc -func (c_ CaptureScreenInput) SetCapturesMouseClicks(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setCapturesMouseClicks:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturescreeninput/1390518-croprect?language=objc +func (c_ CaptureScreenInput) SetCropRect(value coregraphics.Rect) { + objc.Call[objc.Void](c_, objc.Sel("setCropRect:"), value) } diff --git a/macos/avfoundation/capture_session.gen.go b/macos/avfoundation/capture_session.gen.go index d910c985..409b068a 100644 --- a/macos/avfoundation/capture_session.gen.go +++ b/macos/avfoundation/capture_session.gen.go @@ -19,29 +19,29 @@ type _CaptureSessionClass struct { // An interface definition for the [CaptureSession] class. type ICaptureSession interface { objc.IObject - RemoveConnection(connection ICaptureConnection) + StopRunning() CanSetSessionPreset(preset CaptureSessionPreset) bool RemoveInput(input ICaptureInput) - CanAddConnection(connection ICaptureConnection) bool + AddConnection(connection ICaptureConnection) + BeginConfiguration() StartRunning() - AddOutput(output ICaptureOutput) - CanAddOutput(output ICaptureOutput) bool - AddOutputWithNoConnections(output ICaptureOutput) - AddInputWithNoConnections(input ICaptureInput) AddInput(input ICaptureInput) - RemoveOutput(output ICaptureOutput) + RemoveConnection(connection ICaptureConnection) CanAddInput(input ICaptureInput) bool + AddInputWithNoConnections(input ICaptureInput) + AddOutput(output ICaptureOutput) CommitConfiguration() - StopRunning() - AddConnection(connection ICaptureConnection) - BeginConfiguration() + RemoveOutput(output ICaptureOutput) + CanAddOutput(output ICaptureOutput) bool + AddOutputWithNoConnections(output ICaptureOutput) + CanAddConnection(connection ICaptureConnection) bool Connections() []CaptureConnection + IsRunning() bool SessionPreset() CaptureSessionPreset SetSessionPreset(value CaptureSessionPreset) + Outputs() []CaptureOutput SynchronizationClock() coremedia.ClockRef Inputs() []CaptureInput - IsRunning() bool - Outputs() []CaptureOutput } // An object that configures capture behavior and coordinates the flow of data from input devices to capture outputs. [Full Topic] @@ -77,11 +77,11 @@ func (c_ CaptureSession) Init() CaptureSession { return rv } -// Removes a capture connection from the session. [Full Topic] +// Stops the flow of data through the capture pipeline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1390041-removeconnection?language=objc -func (c_ CaptureSession) RemoveConnection(connection ICaptureConnection) { - objc.Call[objc.Void](c_, objc.Sel("removeConnection:"), connection) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1385661-stoprunning?language=objc +func (c_ CaptureSession) StopRunning() { + objc.Call[objc.Void](c_, objc.Sel("stopRunning")) } // Determines whether you can configure a capture session with the specified preset. [Full Topic] @@ -99,12 +99,18 @@ func (c_ CaptureSession) RemoveInput(input ICaptureInput) { objc.Call[objc.Void](c_, objc.Sel("removeInput:"), input) } -// Determines whether a you can add a connection to a capture session. [Full Topic] +// Adds a connection to the capture session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1389596-canaddconnection?language=objc -func (c_ CaptureSession) CanAddConnection(connection ICaptureConnection) bool { - rv := objc.Call[bool](c_, objc.Sel("canAddConnection:"), connection) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1389687-addconnection?language=objc +func (c_ CaptureSession) AddConnection(connection ICaptureConnection) { + objc.Call[objc.Void](c_, objc.Sel("addConnection:"), connection) +} + +// Marks the beginning of changes to a running capture session’s configuration to perform in a single atomic update. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1389174-beginconfiguration?language=objc +func (c_ CaptureSession) BeginConfiguration() { + objc.Call[objc.Void](c_, objc.Sel("beginConfiguration")) } // Starts the flow of data through the capture pipeline. [Full Topic] @@ -114,26 +120,26 @@ func (c_ CaptureSession) StartRunning() { objc.Call[objc.Void](c_, objc.Sel("startRunning")) } -// Adds an output to the capture session. [Full Topic] +// Adds a capture input to the session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1387325-addoutput?language=objc -func (c_ CaptureSession) AddOutput(output ICaptureOutput) { - objc.Call[objc.Void](c_, objc.Sel("addOutput:"), output) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1387239-addinput?language=objc +func (c_ CaptureSession) AddInput(input ICaptureInput) { + objc.Call[objc.Void](c_, objc.Sel("addInput:"), input) } -// Determines whether you can add an output to a session. [Full Topic] +// Removes a capture connection from the session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1388944-canaddoutput?language=objc -func (c_ CaptureSession) CanAddOutput(output ICaptureOutput) bool { - rv := objc.Call[bool](c_, objc.Sel("canAddOutput:"), output) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1390041-removeconnection?language=objc +func (c_ CaptureSession) RemoveConnection(connection ICaptureConnection) { + objc.Call[objc.Void](c_, objc.Sel("removeConnection:"), connection) } -// Adds a capture output to the session without forming any connections. [Full Topic] +// Determines whether you can add an input to a session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1388709-addoutputwithnoconnections?language=objc -func (c_ CaptureSession) AddOutputWithNoConnections(output ICaptureOutput) { - objc.Call[objc.Void](c_, objc.Sel("addOutputWithNoConnections:"), output) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1387180-canaddinput?language=objc +func (c_ CaptureSession) CanAddInput(input ICaptureInput) bool { + rv := objc.Call[bool](c_, objc.Sel("canAddInput:"), input) + return rv } // Adds a capture input to a session without forming any connections. [Full Topic] @@ -143,11 +149,18 @@ func (c_ CaptureSession) AddInputWithNoConnections(input ICaptureInput) { objc.Call[objc.Void](c_, objc.Sel("addInputWithNoConnections:"), input) } -// Adds a capture input to the session. [Full Topic] +// Adds an output to the capture session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1387239-addinput?language=objc -func (c_ CaptureSession) AddInput(input ICaptureInput) { - objc.Call[objc.Void](c_, objc.Sel("addInput:"), input) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1387325-addoutput?language=objc +func (c_ CaptureSession) AddOutput(output ICaptureOutput) { + objc.Call[objc.Void](c_, objc.Sel("addOutput:"), output) +} + +// Commits one or more changes to a running capture session’s configuration in a single atomic update. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1388173-commitconfiguration?language=objc +func (c_ CaptureSession) CommitConfiguration() { + objc.Call[objc.Void](c_, objc.Sel("commitConfiguration")) } // Removes an output from a capture session. [Full Topic] @@ -157,40 +170,27 @@ func (c_ CaptureSession) RemoveOutput(output ICaptureOutput) { objc.Call[objc.Void](c_, objc.Sel("removeOutput:"), output) } -// Determines whether you can add an input to a session. [Full Topic] +// Determines whether you can add an output to a session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1387180-canaddinput?language=objc -func (c_ CaptureSession) CanAddInput(input ICaptureInput) bool { - rv := objc.Call[bool](c_, objc.Sel("canAddInput:"), input) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1388944-canaddoutput?language=objc +func (c_ CaptureSession) CanAddOutput(output ICaptureOutput) bool { + rv := objc.Call[bool](c_, objc.Sel("canAddOutput:"), output) return rv } -// Commits one or more changes to a running capture session’s configuration in a single atomic update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1388173-commitconfiguration?language=objc -func (c_ CaptureSession) CommitConfiguration() { - objc.Call[objc.Void](c_, objc.Sel("commitConfiguration")) -} - -// Stops the flow of data through the capture pipeline. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1385661-stoprunning?language=objc -func (c_ CaptureSession) StopRunning() { - objc.Call[objc.Void](c_, objc.Sel("stopRunning")) -} - -// Adds a connection to the capture session. [Full Topic] +// Adds a capture output to the session without forming any connections. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1389687-addconnection?language=objc -func (c_ CaptureSession) AddConnection(connection ICaptureConnection) { - objc.Call[objc.Void](c_, objc.Sel("addConnection:"), connection) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1388709-addoutputwithnoconnections?language=objc +func (c_ CaptureSession) AddOutputWithNoConnections(output ICaptureOutput) { + objc.Call[objc.Void](c_, objc.Sel("addOutputWithNoConnections:"), output) } -// Marks the beginning of changes to a running capture session’s configuration to perform in a single atomic update. [Full Topic] +// Determines whether a you can add a connection to a capture session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1389174-beginconfiguration?language=objc -func (c_ CaptureSession) BeginConfiguration() { - objc.Call[objc.Void](c_, objc.Sel("beginConfiguration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1389596-canaddconnection?language=objc +func (c_ CaptureSession) CanAddConnection(connection ICaptureConnection) bool { + rv := objc.Call[bool](c_, objc.Sel("canAddConnection:"), connection) + return rv } // The connections between inputs and outputs that a capture session contains. [Full Topic] @@ -201,6 +201,14 @@ func (c_ CaptureSession) Connections() []CaptureConnection { return rv } +// A Boolean value that indicates whether the capture session is in a running state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1388133-running?language=objc +func (c_ CaptureSession) IsRunning() bool { + rv := objc.Call[bool](c_, objc.Sel("isRunning")) + return rv +} + // A preset value that indicates the quality level or bit rate of the output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1389696-sessionpreset?language=objc @@ -216,6 +224,14 @@ func (c_ CaptureSession) SetSessionPreset(value CaptureSessionPreset) { objc.Call[objc.Void](c_, objc.Sel("setSessionPreset:"), value) } +// The output destinations to which a captures session sends its data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1387621-outputs?language=objc +func (c_ CaptureSession) Outputs() []CaptureOutput { + rv := objc.Call[[]CaptureOutput](c_, objc.Sel("outputs")) + return rv +} + // A clock to use for output synchronization. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/3915813-synchronizationclock?language=objc @@ -231,19 +247,3 @@ func (c_ CaptureSession) Inputs() []CaptureInput { rv := objc.Call[[]CaptureInput](c_, objc.Sel("inputs")) return rv } - -// A Boolean value that indicates whether the capture session is in a running state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1388133-running?language=objc -func (c_ CaptureSession) IsRunning() bool { - rv := objc.Call[bool](c_, objc.Sel("isRunning")) - return rv -} - -// The output destinations to which a captures session sends its data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturesession/1387621-outputs?language=objc -func (c_ CaptureSession) Outputs() []CaptureOutput { - rv := objc.Call[[]CaptureOutput](c_, objc.Sel("outputs")) - return rv -} diff --git a/macos/avfoundation/capture_video_data_output.gen.go b/macos/avfoundation/capture_video_data_output.gen.go index c7785a7b..46edab48 100644 --- a/macos/avfoundation/capture_video_data_output.gen.go +++ b/macos/avfoundation/capture_video_data_output.gen.go @@ -20,18 +20,18 @@ type _CaptureVideoDataOutputClass struct { // An interface definition for the [CaptureVideoDataOutput] class. type ICaptureVideoDataOutput interface { ICaptureOutput - RecommendedVideoSettingsForVideoCodecTypeAssetWriterOutputFileType(videoCodecType VideoCodecType, outputFileType FileType) map[string]objc.Object - RecommendedVideoSettingsForAssetWriterWithOutputFileType(outputFileType FileType) map[string]objc.Object AvailableVideoCodecTypesForAssetWriterWithOutputFileType(outputFileType FileType) []VideoCodecType + RecommendedVideoSettingsForAssetWriterWithOutputFileType(outputFileType FileType) map[string]objc.Object + RecommendedVideoSettingsForVideoCodecTypeAssetWriterOutputFileType(videoCodecType VideoCodecType, outputFileType FileType) map[string]objc.Object SetSampleBufferDelegateQueue(sampleBufferDelegate PCaptureVideoDataOutputSampleBufferDelegate, sampleBufferCallbackQueue dispatch.Queue) SetSampleBufferDelegateObjectQueue(sampleBufferDelegateObject objc.IObject, sampleBufferCallbackQueue dispatch.Queue) + AvailableVideoCVPixelFormatTypes() []foundation.Number VideoSettings() map[string]objc.Object SetVideoSettings(value map[string]objc.IObject) SampleBufferCallbackQueue() dispatch.Queue AvailableVideoCodecTypes() []VideoCodecType AlwaysDiscardsLateVideoFrames() bool SetAlwaysDiscardsLateVideoFrames(value bool) - AvailableVideoCVPixelFormatTypes() []foundation.Number SampleBufferDelegate() CaptureVideoDataOutputSampleBufferDelegateObject } @@ -68,11 +68,11 @@ func (cc _CaptureVideoDataOutputClass) Alloc() CaptureVideoDataOutput { return rv } -// Returns a video settings dictionary appropriate for capturing video to be recorded to a file with the specified codec and type. [Full Topic] +// The video codecs that the output supports for writing video to the output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutput/2867900-recommendedvideosettingsforvideo?language=objc -func (c_ CaptureVideoDataOutput) RecommendedVideoSettingsForVideoCodecTypeAssetWriterOutputFileType(videoCodecType VideoCodecType, outputFileType FileType) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](c_, objc.Sel("recommendedVideoSettingsForVideoCodecType:assetWriterOutputFileType:"), videoCodecType, outputFileType) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutput/2867901-availablevideocodectypesforasset?language=objc +func (c_ CaptureVideoDataOutput) AvailableVideoCodecTypesForAssetWriterWithOutputFileType(outputFileType FileType) []VideoCodecType { + rv := objc.Call[[]VideoCodecType](c_, objc.Sel("availableVideoCodecTypesForAssetWriterWithOutputFileType:"), outputFileType) return rv } @@ -84,11 +84,11 @@ func (c_ CaptureVideoDataOutput) RecommendedVideoSettingsForAssetWriterWithOutpu return rv } -// The video codecs that the output supports for writing video to the output file. [Full Topic] +// Returns a video settings dictionary appropriate for capturing video to be recorded to a file with the specified codec and type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutput/2867901-availablevideocodectypesforasset?language=objc -func (c_ CaptureVideoDataOutput) AvailableVideoCodecTypesForAssetWriterWithOutputFileType(outputFileType FileType) []VideoCodecType { - rv := objc.Call[[]VideoCodecType](c_, objc.Sel("availableVideoCodecTypesForAssetWriterWithOutputFileType:"), outputFileType) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutput/2867900-recommendedvideosettingsforvideo?language=objc +func (c_ CaptureVideoDataOutput) RecommendedVideoSettingsForVideoCodecTypeAssetWriterOutputFileType(videoCodecType VideoCodecType, outputFileType FileType) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](c_, objc.Sel("recommendedVideoSettingsForVideoCodecType:assetWriterOutputFileType:"), videoCodecType, outputFileType) return rv } @@ -107,6 +107,14 @@ func (c_ CaptureVideoDataOutput) SetSampleBufferDelegateObjectQueue(sampleBuffer objc.Call[objc.Void](c_, objc.Sel("setSampleBufferDelegate:queue:"), sampleBufferDelegateObject, sampleBufferCallbackQueue) } +// The video pixel formats that the output supports. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutput/1387050-availablevideocvpixelformattypes?language=objc +func (c_ CaptureVideoDataOutput) AvailableVideoCVPixelFormatTypes() []foundation.Number { + rv := objc.Call[[]foundation.Number](c_, objc.Sel("availableVideoCVPixelFormatTypes")) + return rv +} + // A dictionary that contains the compression settings for the output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutput/1389945-videosettings?language=objc @@ -153,14 +161,6 @@ func (c_ CaptureVideoDataOutput) SetAlwaysDiscardsLateVideoFrames(value bool) { objc.Call[objc.Void](c_, objc.Sel("setAlwaysDiscardsLateVideoFrames:"), value) } -// The video pixel formats that the output supports. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutput/1387050-availablevideocvpixelformattypes?language=objc -func (c_ CaptureVideoDataOutput) AvailableVideoCVPixelFormatTypes() []foundation.Number { - rv := objc.Call[[]foundation.Number](c_, objc.Sel("availableVideoCVPixelFormatTypes")) - return rv -} - // The capture object’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutput/1385886-samplebufferdelegate?language=objc diff --git a/macos/avfoundation/capture_video_data_output_sample_buffer_delegate.gen.go b/macos/avfoundation/capture_video_data_output_sample_buffer_delegate.gen.go index 512177a3..1e1e1874 100644 --- a/macos/avfoundation/capture_video_data_output_sample_buffer_delegate.gen.go +++ b/macos/avfoundation/capture_video_data_output_sample_buffer_delegate.gen.go @@ -14,16 +14,11 @@ type PCaptureVideoDataOutputSampleBufferDelegate interface { // optional CaptureOutputDidOutputSampleBufferFromConnection(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) HasCaptureOutputDidOutputSampleBufferFromConnection() bool - - // optional - CaptureOutputDidDropSampleBufferFromConnection(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) - HasCaptureOutputDidDropSampleBufferFromConnection() bool } // A delegate implementation builder for the [PCaptureVideoDataOutputSampleBufferDelegate] protocol. type CaptureVideoDataOutputSampleBufferDelegate struct { _CaptureOutputDidOutputSampleBufferFromConnection func(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) - _CaptureOutputDidDropSampleBufferFromConnection func(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) } func (di *CaptureVideoDataOutputSampleBufferDelegate) HasCaptureOutputDidOutputSampleBufferFromConnection() bool { @@ -43,23 +38,6 @@ func (di *CaptureVideoDataOutputSampleBufferDelegate) SetCaptureOutputDidOutputS func (di *CaptureVideoDataOutputSampleBufferDelegate) CaptureOutputDidOutputSampleBufferFromConnection(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) { di._CaptureOutputDidOutputSampleBufferFromConnection(output, sampleBuffer, connection) } -func (di *CaptureVideoDataOutputSampleBufferDelegate) HasCaptureOutputDidDropSampleBufferFromConnection() bool { - return di._CaptureOutputDidDropSampleBufferFromConnection != nil -} - -// Notifies the delegate that a video frame was discarded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutputsamplebufferdelegate/1388468-captureoutput?language=objc -func (di *CaptureVideoDataOutputSampleBufferDelegate) SetCaptureOutputDidDropSampleBufferFromConnection(f func(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection)) { - di._CaptureOutputDidDropSampleBufferFromConnection = f -} - -// Notifies the delegate that a video frame was discarded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutputsamplebufferdelegate/1388468-captureoutput?language=objc -func (di *CaptureVideoDataOutputSampleBufferDelegate) CaptureOutputDidDropSampleBufferFromConnection(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) { - di._CaptureOutputDidDropSampleBufferFromConnection(output, sampleBuffer, connection) -} // ensure impl type implements protocol interface var _ PCaptureVideoDataOutputSampleBufferDelegate = (*CaptureVideoDataOutputSampleBufferDelegateObject)(nil) @@ -79,14 +57,3 @@ func (c_ CaptureVideoDataOutputSampleBufferDelegateObject) HasCaptureOutputDidOu func (c_ CaptureVideoDataOutputSampleBufferDelegateObject) CaptureOutputDidOutputSampleBufferFromConnection(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) { objc.Call[objc.Void](c_, objc.Sel("captureOutput:didOutputSampleBuffer:fromConnection:"), output, sampleBuffer, connection) } - -func (c_ CaptureVideoDataOutputSampleBufferDelegateObject) HasCaptureOutputDidDropSampleBufferFromConnection() bool { - return c_.RespondsToSelector(objc.Sel("captureOutput:didDropSampleBuffer:fromConnection:")) -} - -// Notifies the delegate that a video frame was discarded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutputsamplebufferdelegate/1388468-captureoutput?language=objc -func (c_ CaptureVideoDataOutputSampleBufferDelegateObject) CaptureOutputDidDropSampleBufferFromConnection(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) { - objc.Call[objc.Void](c_, objc.Sel("captureOutput:didDropSampleBuffer:fromConnection:"), output, sampleBuffer, connection) -} diff --git a/macos/avfoundation/capture_video_preview_layer.gen.go b/macos/avfoundation/capture_video_preview_layer.gen.go index 2142cee5..58af5c44 100644 --- a/macos/avfoundation/capture_video_preview_layer.gen.go +++ b/macos/avfoundation/capture_video_preview_layer.gen.go @@ -20,17 +20,17 @@ type _CaptureVideoPreviewLayerClass struct { // An interface definition for the [CaptureVideoPreviewLayer] class. type ICaptureVideoPreviewLayer interface { quartzcore.ILayer + TransformedMetadataObjectForMetadataObject(metadataObject IMetadataObject) MetadataObject + MetadataOutputRectOfInterestForRect(rectInLayerCoordinates coregraphics.Rect) coregraphics.Rect CaptureDevicePointOfInterestForPoint(pointInLayer coregraphics.Point) coregraphics.Point - PointForCaptureDevicePointOfInterest(captureDevicePointOfInterest coregraphics.Point) coregraphics.Point SetSessionWithNoConnection(session ICaptureSession) RectForMetadataOutputRectOfInterest(rectInMetadataOutputCoordinates coregraphics.Rect) coregraphics.Rect - TransformedMetadataObjectForMetadataObject(metadataObject IMetadataObject) MetadataObject - MetadataOutputRectOfInterestForRect(rectInLayerCoordinates coregraphics.Rect) coregraphics.Rect - Connection() CaptureConnection + PointForCaptureDevicePointOfInterest(captureDevicePointOfInterest coregraphics.Point) coregraphics.Point VideoGravity() LayerVideoGravity SetVideoGravity(value LayerVideoGravity) Session() CaptureSession SetSession(value ICaptureSession) + Connection() CaptureConnection } // A Core Animation layer that displays video from a camera device. [Full Topic] @@ -46,18 +46,6 @@ func CaptureVideoPreviewLayerFrom(ptr unsafe.Pointer) CaptureVideoPreviewLayer { } } -func (cc _CaptureVideoPreviewLayerClass) LayerWithSessionWithNoConnection(session ICaptureSession) CaptureVideoPreviewLayer { - rv := objc.Call[CaptureVideoPreviewLayer](cc, objc.Sel("layerWithSessionWithNoConnection:"), session) - return rv -} - -// Returns a new layer to preview the visual output of a capture session, without making connections to eligible video inputs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1567197-layerwithsessionwithnoconnection?language=objc -func CaptureVideoPreviewLayer_LayerWithSessionWithNoConnection(session ICaptureSession) CaptureVideoPreviewLayer { - return CaptureVideoPreviewLayerClass.LayerWithSessionWithNoConnection(session) -} - func (c_ CaptureVideoPreviewLayer) InitWithSessionWithNoConnection(session ICaptureSession) CaptureVideoPreviewLayer { rv := objc.Call[CaptureVideoPreviewLayer](c_, objc.Sel("initWithSessionWithNoConnection:"), session) return rv @@ -72,18 +60,16 @@ func NewCaptureVideoPreviewLayerWithSessionWithNoConnection(session ICaptureSess return instance } -func (c_ CaptureVideoPreviewLayer) InitWithSession(session ICaptureSession) CaptureVideoPreviewLayer { - rv := objc.Call[CaptureVideoPreviewLayer](c_, objc.Sel("initWithSession:"), session) +func (cc _CaptureVideoPreviewLayerClass) LayerWithSessionWithNoConnection(session ICaptureSession) CaptureVideoPreviewLayer { + rv := objc.Call[CaptureVideoPreviewLayer](cc, objc.Sel("layerWithSessionWithNoConnection:"), session) return rv } -// Creates a layer to preview the visual output of a capture session. [Full Topic] +// Returns a new layer to preview the visual output of a capture session, without making connections to eligible video inputs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1387766-initwithsession?language=objc -func NewCaptureVideoPreviewLayerWithSession(session ICaptureSession) CaptureVideoPreviewLayer { - instance := CaptureVideoPreviewLayerClass.Alloc().InitWithSession(session) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1567197-layerwithsessionwithnoconnection?language=objc +func CaptureVideoPreviewLayer_LayerWithSessionWithNoConnection(session ICaptureSession) CaptureVideoPreviewLayer { + return CaptureVideoPreviewLayerClass.LayerWithSessionWithNoConnection(session) } func (cc _CaptureVideoPreviewLayerClass) LayerWithSession(session ICaptureSession) CaptureVideoPreviewLayer { @@ -98,6 +84,20 @@ func CaptureVideoPreviewLayer_LayerWithSession(session ICaptureSession) CaptureV return CaptureVideoPreviewLayerClass.LayerWithSession(session) } +func (c_ CaptureVideoPreviewLayer) InitWithSession(session ICaptureSession) CaptureVideoPreviewLayer { + rv := objc.Call[CaptureVideoPreviewLayer](c_, objc.Sel("initWithSession:"), session) + return rv +} + +// Creates a layer to preview the visual output of a capture session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1387766-initwithsession?language=objc +func NewCaptureVideoPreviewLayerWithSession(session ICaptureSession) CaptureVideoPreviewLayer { + instance := CaptureVideoPreviewLayerClass.Alloc().InitWithSession(session) + instance.Autorelease() + return instance +} + func (cc _CaptureVideoPreviewLayerClass) Alloc() CaptureVideoPreviewLayer { rv := objc.Call[CaptureVideoPreviewLayer](cc, objc.Sel("alloc")) return rv @@ -118,6 +118,32 @@ func (c_ CaptureVideoPreviewLayer) Init() CaptureVideoPreviewLayer { return rv } +func (cc _CaptureVideoPreviewLayerClass) Layer() CaptureVideoPreviewLayer { + rv := objc.Call[CaptureVideoPreviewLayer](cc, objc.Sel("layer")) + return rv +} + +// Creates and returns an instance of the layer object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func CaptureVideoPreviewLayer_Layer() CaptureVideoPreviewLayer { + return CaptureVideoPreviewLayerClass.Layer() +} + +func (c_ CaptureVideoPreviewLayer) InitWithLayer(layer objc.IObject) CaptureVideoPreviewLayer { + rv := objc.Call[CaptureVideoPreviewLayer](c_, objc.Sel("initWithLayer:"), layer) + return rv +} + +// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewCaptureVideoPreviewLayerWithLayer(layer objc.IObject) CaptureVideoPreviewLayer { + instance := CaptureVideoPreviewLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + func (c_ CaptureVideoPreviewLayer) ModelLayer() CaptureVideoPreviewLayer { rv := objc.Call[CaptureVideoPreviewLayer](c_, objc.Sel("modelLayer")) return rv @@ -146,30 +172,20 @@ func CaptureVideoPreviewLayer_PresentationLayer() CaptureVideoPreviewLayer { return instance } -func (c_ CaptureVideoPreviewLayer) InitWithLayer(layer objc.IObject) CaptureVideoPreviewLayer { - rv := objc.Call[CaptureVideoPreviewLayer](c_, objc.Sel("initWithLayer:"), layer) - return rv -} - -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Converts a metadata object’s visual properties to layer coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewCaptureVideoPreviewLayerWithLayer(layer objc.IObject) CaptureVideoPreviewLayer { - instance := CaptureVideoPreviewLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - -func (cc _CaptureVideoPreviewLayerClass) Layer() CaptureVideoPreviewLayer { - rv := objc.Call[CaptureVideoPreviewLayer](cc, objc.Sel("layer")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1623501-transformedmetadataobjectformeta?language=objc +func (c_ CaptureVideoPreviewLayer) TransformedMetadataObjectForMetadataObject(metadataObject IMetadataObject) MetadataObject { + rv := objc.Call[MetadataObject](c_, objc.Sel("transformedMetadataObjectForMetadataObject:"), metadataObject) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Converts a rectangle from layer coordinates to the coordinate space of the metadata output. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func CaptureVideoPreviewLayer_Layer() CaptureVideoPreviewLayer { - return CaptureVideoPreviewLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1623495-metadataoutputrectofinterestforr?language=objc +func (c_ CaptureVideoPreviewLayer) MetadataOutputRectOfInterestForRect(rectInLayerCoordinates coregraphics.Rect) coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](c_, objc.Sel("metadataOutputRectOfInterestForRect:"), rectInLayerCoordinates) + return rv } // Converts a point from layer coordinates to the coordinate space of the capture device. [Full Topic] @@ -180,14 +196,6 @@ func (c_ CaptureVideoPreviewLayer) CaptureDevicePointOfInterestForPoint(pointInL return rv } -// Converts a point from the coordinate space of the capture device to the coordinate space of the layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1623502-pointforcapturedevicepointofinte?language=objc -func (c_ CaptureVideoPreviewLayer) PointForCaptureDevicePointOfInterest(captureDevicePointOfInterest coregraphics.Point) coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("pointForCaptureDevicePointOfInterest:"), captureDevicePointOfInterest) - return rv -} - // Associates a session with the layer without automatically forming a connection to an eligible input port. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1390387-setsessionwithnoconnection?language=objc @@ -203,27 +211,11 @@ func (c_ CaptureVideoPreviewLayer) RectForMetadataOutputRectOfInterest(rectInMet return rv } -// Converts a metadata object’s visual properties to layer coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1623501-transformedmetadataobjectformeta?language=objc -func (c_ CaptureVideoPreviewLayer) TransformedMetadataObjectForMetadataObject(metadataObject IMetadataObject) MetadataObject { - rv := objc.Call[MetadataObject](c_, objc.Sel("transformedMetadataObjectForMetadataObject:"), metadataObject) - return rv -} - -// Converts a rectangle from layer coordinates to the coordinate space of the metadata output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1623495-metadataoutputrectofinterestforr?language=objc -func (c_ CaptureVideoPreviewLayer) MetadataOutputRectOfInterestForRect(rectInLayerCoordinates coregraphics.Rect) coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](c_, objc.Sel("metadataOutputRectOfInterestForRect:"), rectInLayerCoordinates) - return rv -} - -// An object that describes the connection from the layer to a particular input port. [Full Topic] +// Converts a point from the coordinate space of the capture device to the coordinate space of the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1390893-connection?language=objc -func (c_ CaptureVideoPreviewLayer) Connection() CaptureConnection { - rv := objc.Call[CaptureConnection](c_, objc.Sel("connection")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1623502-pointforcapturedevicepointofinte?language=objc +func (c_ CaptureVideoPreviewLayer) PointForCaptureDevicePointOfInterest(captureDevicePointOfInterest coregraphics.Point) coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("pointForCaptureDevicePointOfInterest:"), captureDevicePointOfInterest) return rv } @@ -256,3 +248,11 @@ func (c_ CaptureVideoPreviewLayer) Session() CaptureSession { func (c_ CaptureVideoPreviewLayer) SetSession(value ICaptureSession) { objc.Call[objc.Void](c_, objc.Sel("setSession:"), value) } + +// An object that describes the connection from the layer to a particular input port. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1390893-connection?language=objc +func (c_ CaptureVideoPreviewLayer) Connection() CaptureConnection { + rv := objc.Call[CaptureConnection](c_, objc.Sel("connection")) + return rv +} diff --git a/macos/avfoundation/composition.gen.go b/macos/avfoundation/composition.gen.go index fe40e3da..1d38002f 100644 --- a/macos/avfoundation/composition.gen.go +++ b/macos/avfoundation/composition.gen.go @@ -20,11 +20,11 @@ type _CompositionClass struct { // An interface definition for the [Composition] class. type IComposition interface { IAsset - TrackWithTrackID(trackID objc.IObject) CompositionTrack - TracksWithMediaCharacteristic(mediaCharacteristic MediaCharacteristic) []CompositionTrack TracksWithMediaType(mediaType MediaType) []CompositionTrack - NaturalSize() coregraphics.Size + TracksWithMediaCharacteristic(mediaCharacteristic MediaCharacteristic) []CompositionTrack + TrackWithTrackID(trackID objc.IObject) CompositionTrack URLAssetInitializationOptions() map[string]objc.Object + NaturalSize() coregraphics.Size } // An object that combines and arranges media from multiple assets into a single composite asset that you can play or process. [Full Topic] @@ -72,11 +72,11 @@ func Composition_AssetWithURL(URL foundation.IURL) Composition { return CompositionClass.AssetWithURL(URL) } -// Returns a track that contains the specified identifier. [Full Topic] +// Returns tracks that contain media of a specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcomposition/1388473-trackwithtrackid?language=objc -func (c_ Composition) TrackWithTrackID(trackID objc.IObject) CompositionTrack { - rv := objc.Call[CompositionTrack](c_, objc.Sel("trackWithTrackID:"), trackID) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcomposition/1386534-trackswithmediatype?language=objc +func (c_ Composition) TracksWithMediaType(mediaType MediaType) []CompositionTrack { + rv := objc.Call[[]CompositionTrack](c_, objc.Sel("tracksWithMediaType:"), mediaType) return rv } @@ -88,19 +88,11 @@ func (c_ Composition) TracksWithMediaCharacteristic(mediaCharacteristic MediaCha return rv } -// Returns tracks that contain media of a specified type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcomposition/1386534-trackswithmediatype?language=objc -func (c_ Composition) TracksWithMediaType(mediaType MediaType) []CompositionTrack { - rv := objc.Call[[]CompositionTrack](c_, objc.Sel("tracksWithMediaType:"), mediaType) - return rv -} - -// The authored size of the visual portion of the composition. [Full Topic] +// Returns a track that contains the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcomposition/1387247-naturalsize?language=objc -func (c_ Composition) NaturalSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](c_, objc.Sel("naturalSize")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcomposition/1388473-trackwithtrackid?language=objc +func (c_ Composition) TrackWithTrackID(trackID objc.IObject) CompositionTrack { + rv := objc.Call[CompositionTrack](c_, objc.Sel("trackWithTrackID:"), trackID) return rv } @@ -111,3 +103,11 @@ func (c_ Composition) URLAssetInitializationOptions() map[string]objc.Object { rv := objc.Call[map[string]objc.Object](c_, objc.Sel("URLAssetInitializationOptions")) return rv } + +// The authored size of the visual portion of the composition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcomposition/1387247-naturalsize?language=objc +func (c_ Composition) NaturalSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](c_, objc.Sel("naturalSize")) + return rv +} diff --git a/macos/avfoundation/composition_track_format_description_replacement.gen.go b/macos/avfoundation/composition_track_format_description_replacement.gen.go index 99d3d00e..6a4ddbf0 100644 --- a/macos/avfoundation/composition_track_format_description_replacement.gen.go +++ b/macos/avfoundation/composition_track_format_description_replacement.gen.go @@ -19,8 +19,8 @@ type _CompositionTrackFormatDescriptionReplacementClass struct { // An interface definition for the [CompositionTrackFormatDescriptionReplacement] class. type ICompositionTrackFormatDescriptionReplacement interface { objc.IObject - ReplacementFormatDescription() coremedia.FormatDescriptionRef OriginalFormatDescription() coremedia.FormatDescriptionRef + ReplacementFormatDescription() coremedia.FormatDescriptionRef } // An object that represents a format description and its replacement. [Full Topic] @@ -56,14 +56,6 @@ func (c_ CompositionTrackFormatDescriptionReplacement) Init() CompositionTrackFo return rv } -// The replacement format description. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontrackformatdescriptionreplacement/3180003-replacementformatdescription?language=objc -func (c_ CompositionTrackFormatDescriptionReplacement) ReplacementFormatDescription() coremedia.FormatDescriptionRef { - rv := objc.Call[coremedia.FormatDescriptionRef](c_, objc.Sel("replacementFormatDescription")) - return rv -} - // The format description to replace. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontrackformatdescriptionreplacement/3180002-originalformatdescription?language=objc @@ -71,3 +63,11 @@ func (c_ CompositionTrackFormatDescriptionReplacement) OriginalFormatDescription rv := objc.Call[coremedia.FormatDescriptionRef](c_, objc.Sel("originalFormatDescription")) return rv } + +// The replacement format description. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontrackformatdescriptionreplacement/3180003-replacementformatdescription?language=objc +func (c_ CompositionTrackFormatDescriptionReplacement) ReplacementFormatDescription() coremedia.FormatDescriptionRef { + rv := objc.Call[coremedia.FormatDescriptionRef](c_, objc.Sel("replacementFormatDescription")) + return rv +} diff --git a/macos/avfoundation/composition_track_segment.gen.go b/macos/avfoundation/composition_track_segment.gen.go index adb11ea1..7ca084dd 100644 --- a/macos/avfoundation/composition_track_segment.gen.go +++ b/macos/avfoundation/composition_track_segment.gen.go @@ -37,20 +37,6 @@ func CompositionTrackSegmentFrom(ptr unsafe.Pointer) CompositionTrackSegment { } } -func (c_ CompositionTrackSegment) InitWithURLTrackIDSourceTimeRangeTargetTimeRange(URL foundation.IURL, trackID objc.IObject, sourceTimeRange coremedia.TimeRange, targetTimeRange coremedia.TimeRange) CompositionTrackSegment { - rv := objc.Call[CompositionTrackSegment](c_, objc.Sel("initWithURL:trackID:sourceTimeRange:targetTimeRange:"), URL, trackID, sourceTimeRange, targetTimeRange) - return rv -} - -// Creates an object that presents a segment of a media file that the specified URL references. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontracksegment/1390282-initwithurl?language=objc -func NewCompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange(URL foundation.IURL, trackID objc.IObject, sourceTimeRange coremedia.TimeRange, targetTimeRange coremedia.TimeRange) CompositionTrackSegment { - instance := CompositionTrackSegmentClass.Alloc().InitWithURLTrackIDSourceTimeRangeTargetTimeRange(URL, trackID, sourceTimeRange, targetTimeRange) - instance.Autorelease() - return instance -} - func (cc _CompositionTrackSegmentClass) CompositionTrackSegmentWithTimeRange(timeRange coremedia.TimeRange) CompositionTrackSegment { rv := objc.Call[CompositionTrackSegment](cc, objc.Sel("compositionTrackSegmentWithTimeRange:"), timeRange) return rv @@ -63,18 +49,6 @@ func CompositionTrackSegment_CompositionTrackSegmentWithTimeRange(timeRange core return CompositionTrackSegmentClass.CompositionTrackSegmentWithTimeRange(timeRange) } -func (cc _CompositionTrackSegmentClass) CompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange(URL foundation.IURL, trackID objc.IObject, sourceTimeRange coremedia.TimeRange, targetTimeRange coremedia.TimeRange) CompositionTrackSegment { - rv := objc.Call[CompositionTrackSegment](cc, objc.Sel("compositionTrackSegmentWithURL:trackID:sourceTimeRange:targetTimeRange:"), URL, trackID, sourceTimeRange, targetTimeRange) - return rv -} - -// Returns a new an object that presents a segment of a media file that the specified URL references. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontracksegment/1400552-compositiontracksegmentwithurl?language=objc -func CompositionTrackSegment_CompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange(URL foundation.IURL, trackID objc.IObject, sourceTimeRange coremedia.TimeRange, targetTimeRange coremedia.TimeRange) CompositionTrackSegment { - return CompositionTrackSegmentClass.CompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange(URL, trackID, sourceTimeRange, targetTimeRange) -} - func (c_ CompositionTrackSegment) InitWithTimeRange(timeRange coremedia.TimeRange) CompositionTrackSegment { rv := objc.Call[CompositionTrackSegment](c_, objc.Sel("initWithTimeRange:"), timeRange) return rv @@ -89,6 +63,32 @@ func NewCompositionTrackSegmentWithTimeRange(timeRange coremedia.TimeRange) Comp return instance } +func (c_ CompositionTrackSegment) InitWithURLTrackIDSourceTimeRangeTargetTimeRange(URL foundation.IURL, trackID objc.IObject, sourceTimeRange coremedia.TimeRange, targetTimeRange coremedia.TimeRange) CompositionTrackSegment { + rv := objc.Call[CompositionTrackSegment](c_, objc.Sel("initWithURL:trackID:sourceTimeRange:targetTimeRange:"), URL, trackID, sourceTimeRange, targetTimeRange) + return rv +} + +// Creates an object that presents a segment of a media file that the specified URL references. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontracksegment/1390282-initwithurl?language=objc +func NewCompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange(URL foundation.IURL, trackID objc.IObject, sourceTimeRange coremedia.TimeRange, targetTimeRange coremedia.TimeRange) CompositionTrackSegment { + instance := CompositionTrackSegmentClass.Alloc().InitWithURLTrackIDSourceTimeRangeTargetTimeRange(URL, trackID, sourceTimeRange, targetTimeRange) + instance.Autorelease() + return instance +} + +func (cc _CompositionTrackSegmentClass) CompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange(URL foundation.IURL, trackID objc.IObject, sourceTimeRange coremedia.TimeRange, targetTimeRange coremedia.TimeRange) CompositionTrackSegment { + rv := objc.Call[CompositionTrackSegment](cc, objc.Sel("compositionTrackSegmentWithURL:trackID:sourceTimeRange:targetTimeRange:"), URL, trackID, sourceTimeRange, targetTimeRange) + return rv +} + +// Returns a new an object that presents a segment of a media file that the specified URL references. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontracksegment/1400552-compositiontracksegmentwithurl?language=objc +func CompositionTrackSegment_CompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange(URL foundation.IURL, trackID objc.IObject, sourceTimeRange coremedia.TimeRange, targetTimeRange coremedia.TimeRange) CompositionTrackSegment { + return CompositionTrackSegmentClass.CompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange(URL, trackID, sourceTimeRange, targetTimeRange) +} + func (cc _CompositionTrackSegmentClass) Alloc() CompositionTrackSegment { rv := objc.Call[CompositionTrackSegment](cc, objc.Sel("alloc")) return rv diff --git a/macos/avfoundation/content_key_request.gen.go b/macos/avfoundation/content_key_request.gen.go index 07293b21..fbdba9c4 100644 --- a/macos/avfoundation/content_key_request.gen.go +++ b/macos/avfoundation/content_key_request.gen.go @@ -19,19 +19,18 @@ type _ContentKeyRequestClass struct { // An interface definition for the [ContentKeyRequest] class. type IContentKeyRequest interface { objc.IObject + ProcessContentKeyResponseError(error foundation.IError) ProcessContentKeyResponse(keyResponse IContentKeyResponse) - RespondByRequestingPersistableContentKeyRequestAndReturnError(outError unsafe.Pointer) bool MakeStreamingContentKeyRequestDataForAppContentIdentifierOptionsCompletionHandler(appIdentifier []byte, contentIdentifier []byte, options map[string]objc.IObject, handler func(contentKeyRequestData []byte, error foundation.Error)) - ProcessContentKeyResponseError(error foundation.IError) - Identifier() objc.Object + RenewsExpiringResponseData() bool + Error() foundation.Error + Options() map[string]objc.Object + ContentKey() ContentKey + CanProvidePersistableContentKey() bool InitializationData() []byte ContentKeySpecifier() ContentKeySpecifier - ContentKey() ContentKey Status() ContentKeyRequestStatus - CanProvidePersistableContentKey() bool - RenewsExpiringResponseData() bool - Options() map[string]objc.Object - Error() foundation.Error + Identifier() objc.Object } // An object that encapsulates information about a content decryption key request issued from a content key session object. [Full Topic] @@ -67,6 +66,13 @@ func (c_ ContentKeyRequest) Init() ContentKeyRequest { return rv } +// Tells the receiver that the app was unable to obtain a content key response. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799159-processcontentkeyresponseerror?language=objc +func (c_ ContentKeyRequest) ProcessContentKeyResponseError(error foundation.IError) { + objc.Call[objc.Void](c_, objc.Sel("processContentKeyResponseError:"), error) +} + // Sends the specified content key response to the receiver for processing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799165-processcontentkeyresponse?language=objc @@ -74,14 +80,6 @@ func (c_ ContentKeyRequest) ProcessContentKeyResponse(keyResponse IContentKeyRes objc.Call[objc.Void](c_, objc.Sel("processContentKeyResponse:"), keyResponse) } -// Tells the receiver that the app requires a persistable content key request object for processing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2936887-respondbyrequestingpersistableco?language=objc -func (c_ ContentKeyRequest) RespondByRequestingPersistableContentKeyRequestAndReturnError(outError unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("respondByRequestingPersistableContentKeyRequestAndReturnError:"), outError) - return rv -} - // Obtains encrypted key request data for a specific combination of app and content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799198-makestreamingcontentkeyrequestda?language=objc @@ -89,34 +87,27 @@ func (c_ ContentKeyRequest) MakeStreamingContentKeyRequestDataForAppContentIdent objc.Call[objc.Void](c_, objc.Sel("makeStreamingContentKeyRequestDataForApp:contentIdentifier:options:completionHandler:"), appIdentifier, contentIdentifier, options, handler) } -// Tells the receiver that the app was unable to obtain a content key response. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799159-processcontentkeyresponseerror?language=objc -func (c_ ContentKeyRequest) ProcessContentKeyResponseError(error foundation.IError) { - objc.Call[objc.Void](c_, objc.Sel("processContentKeyResponseError:"), error) -} - -// The identifier for the content key. [Full Topic] +// A Boolean value that indicates whether the content key request renews previously provided response data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799205-identifier?language=objc -func (c_ ContentKeyRequest) Identifier() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799193-renewsexpiringresponsedata?language=objc +func (c_ ContentKeyRequest) RenewsExpiringResponseData() bool { + rv := objc.Call[bool](c_, objc.Sel("renewsExpiringResponseData")) return rv } -// The data used to obtain a key response. [Full Topic] +// The error description for a failed key request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799186-initializationdata?language=objc -func (c_ ContentKeyRequest) InitializationData() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("initializationData")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799182-error?language=objc +func (c_ ContentKeyRequest) Error() foundation.Error { + rv := objc.Call[foundation.Error](c_, objc.Sel("error")) return rv } -// The requested content key specifier. [Full Topic] +// A dictionary of options used to initialize key loading. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/3726103-contentkeyspecifier?language=objc -func (c_ ContentKeyRequest) ContentKeySpecifier() ContentKeySpecifier { - rv := objc.Call[ContentKeySpecifier](c_, objc.Sel("contentKeySpecifier")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/3112525-options?language=objc +func (c_ ContentKeyRequest) Options() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](c_, objc.Sel("options")) return rv } @@ -128,14 +119,6 @@ func (c_ ContentKeyRequest) ContentKey() ContentKey { return rv } -// The current state of the content key request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799190-status?language=objc -func (c_ ContentKeyRequest) Status() ContentKeyRequestStatus { - rv := objc.Call[ContentKeyRequestStatus](c_, objc.Sel("status")) - return rv -} - // The content key request used to create a persistable content key or respond to a previous request with a persistable content key. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799185-canprovidepersistablecontentkey?language=objc @@ -144,26 +127,34 @@ func (c_ ContentKeyRequest) CanProvidePersistableContentKey() bool { return rv } -// A Boolean value that indicates whether the content key request renews previously provided response data. [Full Topic] +// The data used to obtain a key response. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799193-renewsexpiringresponsedata?language=objc -func (c_ ContentKeyRequest) RenewsExpiringResponseData() bool { - rv := objc.Call[bool](c_, objc.Sel("renewsExpiringResponseData")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799186-initializationdata?language=objc +func (c_ ContentKeyRequest) InitializationData() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("initializationData")) return rv } -// A dictionary of options used to initialize key loading. [Full Topic] +// The requested content key specifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/3112525-options?language=objc -func (c_ ContentKeyRequest) Options() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](c_, objc.Sel("options")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/3726103-contentkeyspecifier?language=objc +func (c_ ContentKeyRequest) ContentKeySpecifier() ContentKeySpecifier { + rv := objc.Call[ContentKeySpecifier](c_, objc.Sel("contentKeySpecifier")) return rv } -// The error description for a failed key request. [Full Topic] +// The current state of the content key request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799182-error?language=objc -func (c_ ContentKeyRequest) Error() foundation.Error { - rv := objc.Call[foundation.Error](c_, objc.Sel("error")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799190-status?language=objc +func (c_ ContentKeyRequest) Status() ContentKeyRequestStatus { + rv := objc.Call[ContentKeyRequestStatus](c_, objc.Sel("status")) + return rv +} + +// The identifier for the content key. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799205-identifier?language=objc +func (c_ ContentKeyRequest) Identifier() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("identifier")) return rv } diff --git a/macos/avfoundation/content_key_response.gen.go b/macos/avfoundation/content_key_response.gen.go index 472bfb8a..f4c90f5e 100644 --- a/macos/avfoundation/content_key_response.gen.go +++ b/macos/avfoundation/content_key_response.gen.go @@ -33,18 +33,6 @@ func ContentKeyResponseFrom(ptr unsafe.Pointer) ContentKeyResponse { } } -func (cc _ContentKeyResponseClass) ContentKeyResponseWithAuthorizationTokenData(authorizationTokenData []byte) ContentKeyResponse { - rv := objc.Call[ContentKeyResponse](cc, objc.Sel("contentKeyResponseWithAuthorizationTokenData:"), authorizationTokenData) - return rv -} - -// Creates a content key response with an authorization token. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyresponse/3088798-contentkeyresponsewithauthorizat?language=objc -func ContentKeyResponse_ContentKeyResponseWithAuthorizationTokenData(authorizationTokenData []byte) ContentKeyResponse { - return ContentKeyResponseClass.ContentKeyResponseWithAuthorizationTokenData(authorizationTokenData) -} - func (cc _ContentKeyResponseClass) ContentKeyResponseWithClearKeyDataInitializationVector(keyData []byte, initializationVector []byte) ContentKeyResponse { rv := objc.Call[ContentKeyResponse](cc, objc.Sel("contentKeyResponseWithClearKeyData:initializationVector:"), keyData, initializationVector) return rv @@ -57,6 +45,18 @@ func ContentKeyResponse_ContentKeyResponseWithClearKeyDataInitializationVector(k return ContentKeyResponseClass.ContentKeyResponseWithClearKeyDataInitializationVector(keyData, initializationVector) } +func (cc _ContentKeyResponseClass) ContentKeyResponseWithAuthorizationTokenData(authorizationTokenData []byte) ContentKeyResponse { + rv := objc.Call[ContentKeyResponse](cc, objc.Sel("contentKeyResponseWithAuthorizationTokenData:"), authorizationTokenData) + return rv +} + +// Creates a content key response with an authorization token. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyresponse/3088798-contentkeyresponsewithauthorizat?language=objc +func ContentKeyResponse_ContentKeyResponseWithAuthorizationTokenData(authorizationTokenData []byte) ContentKeyResponse { + return ContentKeyResponseClass.ContentKeyResponseWithAuthorizationTokenData(authorizationTokenData) +} + func (cc _ContentKeyResponseClass) ContentKeyResponseWithFairPlayStreamingKeyResponseData(keyResponseData []byte) ContentKeyResponse { rv := objc.Call[ContentKeyResponse](cc, objc.Sel("contentKeyResponseWithFairPlayStreamingKeyResponseData:"), keyResponseData) return rv diff --git a/macos/avfoundation/content_key_session.gen.go b/macos/avfoundation/content_key_session.gen.go index b9936a90..9f5d0688 100644 --- a/macos/avfoundation/content_key_session.gen.go +++ b/macos/avfoundation/content_key_session.gen.go @@ -20,23 +20,23 @@ type _ContentKeySessionClass struct { // An interface definition for the [ContentKeySession] class. type IContentKeySession interface { objc.IObject + MakeSecureTokenForExpirationDateOfPersistableContentKeyCompletionHandler(persistableContentKeyData []byte, handler func(secureTokenData []byte, error foundation.Error)) + RenewExpiringResponseDataForContentKeyRequest(contentKeyRequest IContentKeyRequest) + AddContentKeyRecipient(recipient PContentKeyRecipient) + AddContentKeyRecipientObject(recipientObject objc.IObject) + SetDelegateQueue(delegate PContentKeySessionDelegate, delegateQueue dispatch.Queue) + SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) RemoveContentKeyRecipient(recipient PContentKeyRecipient) RemoveContentKeyRecipientObject(recipientObject objc.IObject) - RenewExpiringResponseDataForContentKeyRequest(contentKeyRequest IContentKeyRequest) InvalidatePersistableContentKeyOptionsCompletionHandler(persistableContentKeyData []byte, options map[ContentKeySessionServerPlaybackContextOption]objc.IObject, handler func(secureTokenData []byte, error foundation.Error)) InvalidateAllPersistableContentKeysForAppOptionsCompletionHandler(appIdentifier []byte, options map[ContentKeySessionServerPlaybackContextOption]objc.IObject, handler func(secureTokenData []byte, error foundation.Error)) - MakeSecureTokenForExpirationDateOfPersistableContentKeyCompletionHandler(persistableContentKeyData []byte, handler func(secureTokenData []byte, error foundation.Error)) Expire() - SetDelegateQueue(delegate PContentKeySessionDelegate, delegateQueue dispatch.Queue) - SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) - AddContentKeyRecipient(recipient PContentKeyRecipient) - AddContentKeyRecipientObject(recipientObject objc.IObject) ProcessContentKeyRequestWithIdentifierInitializationDataOptions(identifier objc.IObject, initializationData []byte, options map[string]objc.IObject) - StorageURL() foundation.URL KeySystem() ContentKeySystem + ContentProtectionSessionIdentifier() []byte Delegate() ContentKeySessionDelegateObject + StorageURL() foundation.URL ContentKeyRecipients() []ContentKeyRecipientObject - ContentProtectionSessionIdentifier() []byte DelegateQueue() dispatch.Queue } @@ -53,18 +53,6 @@ func ContentKeySessionFrom(ptr unsafe.Pointer) ContentKeySession { } } -func (cc _ContentKeySessionClass) ContentKeySessionWithKeySystemStorageDirectoryAtURL(keySystem ContentKeySystem, storageURL foundation.IURL) ContentKeySession { - rv := objc.Call[ContentKeySession](cc, objc.Sel("contentKeySessionWithKeySystem:storageDirectoryAtURL:"), keySystem, storageURL) - return rv -} - -// Creates a content key session to manage a collection of content decryption keys; points to a directory that stores abnormal session termination reports. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799206-contentkeysessionwithkeysystem?language=objc -func ContentKeySession_ContentKeySessionWithKeySystemStorageDirectoryAtURL(keySystem ContentKeySystem, storageURL foundation.IURL) ContentKeySession { - return ContentKeySessionClass.ContentKeySessionWithKeySystemStorageDirectoryAtURL(keySystem, storageURL) -} - func (cc _ContentKeySessionClass) ContentKeySessionWithKeySystem(keySystem ContentKeySystem) ContentKeySession { rv := objc.Call[ContentKeySession](cc, objc.Sel("contentKeySessionWithKeySystem:"), keySystem) return rv @@ -97,50 +85,6 @@ func (c_ ContentKeySession) Init() ContentKeySession { return rv } -// Tells the delegate to remove the specified recipient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799181-removecontentkeyrecipient?language=objc -func (c_ ContentKeySession) RemoveContentKeyRecipient(recipient PContentKeyRecipient) { - po0 := objc.WrapAsProtocol("AVContentKeyRecipient", recipient) - objc.Call[objc.Void](c_, objc.Sel("removeContentKeyRecipient:"), po0) -} - -// Tells the delegate to remove the specified recipient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799181-removecontentkeyrecipient?language=objc -func (c_ ContentKeySession) RemoveContentKeyRecipientObject(recipientObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("removeContentKeyRecipient:"), recipientObject) -} - -// Returns the expired session reports for content key sessions created with the specified app identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799161-pendingexpiredsessionreportswith?language=objc -func (cc _ContentKeySessionClass) PendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(appIdentifier []byte, storageURL foundation.IURL) [][]byte { - rv := objc.Call[[][]byte](cc, objc.Sel("pendingExpiredSessionReportsWithAppIdentifier:storageDirectoryAtURL:"), appIdentifier, storageURL) - return rv -} - -// Returns the expired session reports for content key sessions created with the specified app identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799161-pendingexpiredsessionreportswith?language=objc -func ContentKeySession_PendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(appIdentifier []byte, storageURL foundation.IURL) [][]byte { - return ContentKeySessionClass.PendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(appIdentifier, storageURL) -} - -// Tells the delegate that previously provided response data for a content key request is about to expire. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799208-renewexpiringresponsedataforcont?language=objc -func (c_ ContentKeySession) RenewExpiringResponseDataForContentKeyRequest(contentKeyRequest IContentKeyRequest) { - objc.Call[objc.Void](c_, objc.Sel("renewExpiringResponseDataForContentKeyRequest:"), contentKeyRequest) -} - -// Invalidates the persistable content key and creates a secure server playback context (SPC) to verify the outcome of an invalidation request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/3089138-invalidatepersistablecontentkey?language=objc -func (c_ ContentKeySession) InvalidatePersistableContentKeyOptionsCompletionHandler(persistableContentKeyData []byte, options map[ContentKeySessionServerPlaybackContextOption]objc.IObject, handler func(secureTokenData []byte, error foundation.Error)) { - objc.Call[objc.Void](c_, objc.Sel("invalidatePersistableContentKey:options:completionHandler:"), persistableContentKeyData, options, handler) -} - // Removes expired session reports from storage. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799170-removependingexpiredsessionrepor?language=objc @@ -155,13 +99,6 @@ func ContentKeySession_RemovePendingExpiredSessionReportsWithAppIdentifierStorag ContentKeySessionClass.RemovePendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(expiredSessionReports, appIdentifier, storageURL) } -// Invalidates all of an app’s persistable content keys and creates a secure server playback context (SPC) to verify the outcome of an invalidation request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/3089137-invalidateallpersistablecontentk?language=objc -func (c_ ContentKeySession) InvalidateAllPersistableContentKeysForAppOptionsCompletionHandler(appIdentifier []byte, options map[ContentKeySessionServerPlaybackContextOption]objc.IObject, handler func(secureTokenData []byte, error foundation.Error)) { - objc.Call[objc.Void](c_, objc.Sel("invalidateAllPersistableContentKeysForApp:options:completionHandler:"), appIdentifier, options, handler) -} - // Creates a secure server playback context that the client sends to the key server to get an expiration date for the given persistable content key data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2887476-makesecuretokenforexpirationdate?language=objc @@ -169,11 +106,26 @@ func (c_ ContentKeySession) MakeSecureTokenForExpirationDateOfPersistableContent objc.Call[objc.Void](c_, objc.Sel("makeSecureTokenForExpirationDateOfPersistableContentKey:completionHandler:"), persistableContentKeyData, handler) } -// Tells the delegate that the session expired as the result of normal, intentional processes. [Full Topic] +// Tells the delegate that previously provided response data for a content key request is about to expire. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799171-expire?language=objc -func (c_ ContentKeySession) Expire() { - objc.Call[objc.Void](c_, objc.Sel("expire")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799208-renewexpiringresponsedataforcont?language=objc +func (c_ ContentKeySession) RenewExpiringResponseDataForContentKeyRequest(contentKeyRequest IContentKeyRequest) { + objc.Call[objc.Void](c_, objc.Sel("renewExpiringResponseDataForContentKeyRequest:"), contentKeyRequest) +} + +// Tells the delegate that the specified recipient should have access to the decryption keys loaded with the session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799174-addcontentkeyrecipient?language=objc +func (c_ ContentKeySession) AddContentKeyRecipient(recipient PContentKeyRecipient) { + po0 := objc.WrapAsProtocol("AVContentKeyRecipient", recipient) + objc.Call[objc.Void](c_, objc.Sel("addContentKeyRecipient:"), po0) +} + +// Tells the delegate that the specified recipient should have access to the decryption keys loaded with the session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799174-addcontentkeyrecipient?language=objc +func (c_ ContentKeySession) AddContentKeyRecipientObject(recipientObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("addContentKeyRecipient:"), recipientObject) } // Sets the session’s delegate object and the dispatch queue on which to call the delegate’s methods. [Full Topic] @@ -191,36 +143,64 @@ func (c_ ContentKeySession) SetDelegateObjectQueue(delegateObject objc.IObject, objc.Call[objc.Void](c_, objc.Sel("setDelegate:queue:"), delegateObject, delegateQueue) } -// Tells the delegate that the specified recipient should have access to the decryption keys loaded with the session. [Full Topic] +// Tells the delegate to remove the specified recipient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799174-addcontentkeyrecipient?language=objc -func (c_ ContentKeySession) AddContentKeyRecipient(recipient PContentKeyRecipient) { +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799181-removecontentkeyrecipient?language=objc +func (c_ ContentKeySession) RemoveContentKeyRecipient(recipient PContentKeyRecipient) { po0 := objc.WrapAsProtocol("AVContentKeyRecipient", recipient) - objc.Call[objc.Void](c_, objc.Sel("addContentKeyRecipient:"), po0) + objc.Call[objc.Void](c_, objc.Sel("removeContentKeyRecipient:"), po0) } -// Tells the delegate that the specified recipient should have access to the decryption keys loaded with the session. [Full Topic] +// Tells the delegate to remove the specified recipient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799174-addcontentkeyrecipient?language=objc -func (c_ ContentKeySession) AddContentKeyRecipientObject(recipientObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("addContentKeyRecipient:"), recipientObject) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799181-removecontentkeyrecipient?language=objc +func (c_ ContentKeySession) RemoveContentKeyRecipientObject(recipientObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("removeContentKeyRecipient:"), recipientObject) } -// Tells the delegate to start loading the content decryption key with the specified identifier and initialization data. [Full Topic] +// Invalidates the persistable content key and creates a secure server playback context (SPC) to verify the outcome of an invalidation request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799180-processcontentkeyrequestwithiden?language=objc -func (c_ ContentKeySession) ProcessContentKeyRequestWithIdentifierInitializationDataOptions(identifier objc.IObject, initializationData []byte, options map[string]objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("processContentKeyRequestWithIdentifier:initializationData:options:"), identifier, initializationData, options) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/3089138-invalidatepersistablecontentkey?language=objc +func (c_ ContentKeySession) InvalidatePersistableContentKeyOptionsCompletionHandler(persistableContentKeyData []byte, options map[ContentKeySessionServerPlaybackContextOption]objc.IObject, handler func(secureTokenData []byte, error foundation.Error)) { + objc.Call[objc.Void](c_, objc.Sel("invalidatePersistableContentKey:options:completionHandler:"), persistableContentKeyData, options, handler) } -// A URL that points to a writable storage directory. [Full Topic] +// Returns the expired session reports for content key sessions created with the specified app identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799203-storageurl?language=objc -func (c_ ContentKeySession) StorageURL() foundation.URL { - rv := objc.Call[foundation.URL](c_, objc.Sel("storageURL")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799161-pendingexpiredsessionreportswith?language=objc +func (cc _ContentKeySessionClass) PendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(appIdentifier []byte, storageURL foundation.IURL) [][]byte { + rv := objc.Call[[][]byte](cc, objc.Sel("pendingExpiredSessionReportsWithAppIdentifier:storageDirectoryAtURL:"), appIdentifier, storageURL) return rv } +// Returns the expired session reports for content key sessions created with the specified app identifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799161-pendingexpiredsessionreportswith?language=objc +func ContentKeySession_PendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(appIdentifier []byte, storageURL foundation.IURL) [][]byte { + return ContentKeySessionClass.PendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(appIdentifier, storageURL) +} + +// Invalidates all of an app’s persistable content keys and creates a secure server playback context (SPC) to verify the outcome of an invalidation request. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/3089137-invalidateallpersistablecontentk?language=objc +func (c_ ContentKeySession) InvalidateAllPersistableContentKeysForAppOptionsCompletionHandler(appIdentifier []byte, options map[ContentKeySessionServerPlaybackContextOption]objc.IObject, handler func(secureTokenData []byte, error foundation.Error)) { + objc.Call[objc.Void](c_, objc.Sel("invalidateAllPersistableContentKeysForApp:options:completionHandler:"), appIdentifier, options, handler) +} + +// Tells the delegate that the session expired as the result of normal, intentional processes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799171-expire?language=objc +func (c_ ContentKeySession) Expire() { + objc.Call[objc.Void](c_, objc.Sel("expire")) +} + +// Tells the delegate to start loading the content decryption key with the specified identifier and initialization data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799180-processcontentkeyrequestwithiden?language=objc +func (c_ ContentKeySession) ProcessContentKeyRequestWithIdentifierInitializationDataOptions(identifier objc.IObject, initializationData []byte, options map[string]objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("processContentKeyRequestWithIdentifier:initializationData:options:"), identifier, initializationData, options) +} + // The type of key system used to retrieve keys. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799167-keysystem?language=objc @@ -229,6 +209,14 @@ func (c_ ContentKeySession) KeySystem() ContentKeySystem { return rv } +// The identifier for the current content protection session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799189-contentprotectionsessionidentifi?language=objc +func (c_ ContentKeySession) ContentProtectionSessionIdentifier() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("contentProtectionSessionIdentifier")) + return rv +} + // The content key session’s delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799191-delegate?language=objc @@ -237,19 +225,19 @@ func (c_ ContentKeySession) Delegate() ContentKeySessionDelegateObject { return rv } -// An array of content key recipients. [Full Topic] +// A URL that points to a writable storage directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799192-contentkeyrecipients?language=objc -func (c_ ContentKeySession) ContentKeyRecipients() []ContentKeyRecipientObject { - rv := objc.Call[[]ContentKeyRecipientObject](c_, objc.Sel("contentKeyRecipients")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799203-storageurl?language=objc +func (c_ ContentKeySession) StorageURL() foundation.URL { + rv := objc.Call[foundation.URL](c_, objc.Sel("storageURL")) return rv } -// The identifier for the current content protection session. [Full Topic] +// An array of content key recipients. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799189-contentprotectionsessionidentifi?language=objc -func (c_ ContentKeySession) ContentProtectionSessionIdentifier() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("contentProtectionSessionIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799192-contentkeyrecipients?language=objc +func (c_ ContentKeySession) ContentKeyRecipients() []ContentKeyRecipientObject { + rv := objc.Call[[]ContentKeyRecipientObject](c_, objc.Sel("contentKeyRecipients")) return rv } diff --git a/macos/avfoundation/content_key_session_delegate.gen.go b/macos/avfoundation/content_key_session_delegate.gen.go index 732e56cb..edf0820d 100644 --- a/macos/avfoundation/content_key_session_delegate.gen.go +++ b/macos/avfoundation/content_key_session_delegate.gen.go @@ -3,7 +3,6 @@ package avfoundation import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -11,26 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate?language=objc type PContentKeySessionDelegate interface { - // optional - ContentKeySessionContentKeyRequestDidFailWithError(session ContentKeySession, keyRequest ContentKeyRequest, err foundation.Error) - HasContentKeySessionContentKeyRequestDidFailWithError() bool - - // optional - ContentKeySessionDidProvideContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) - HasContentKeySessionDidProvideContentKeyRequest() bool - - // optional - ContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier(session ContentKeySession, persistableContentKey []byte, keyIdentifier objc.Object) - HasContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier() bool - - // optional - ContentKeySessionDidProvideRenewingContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) - HasContentKeySessionDidProvideRenewingContentKeyRequest() bool - - // optional - ContentKeySessionDidProvidePersistableContentKeyRequest(session ContentKeySession, keyRequest PersistableContentKeyRequest) - HasContentKeySessionDidProvidePersistableContentKeyRequest() bool - // optional ContentKeySessionDidGenerateExpiredSessionReport(session ContentKeySession) HasContentKeySessionDidGenerateExpiredSessionReport() bool @@ -40,112 +19,17 @@ type PContentKeySessionDelegate interface { HasContentKeySessionContentProtectionSessionIdentifierDidChange() bool // optional - ContentKeySessionContentKeyRequestDidSucceed(session ContentKeySession, keyRequest ContentKeyRequest) - HasContentKeySessionContentKeyRequestDidSucceed() bool - - // optional - ContentKeySessionShouldRetryContentKeyRequestReason(session ContentKeySession, keyRequest ContentKeyRequest, retryReason ContentKeyRequestRetryReason) bool - HasContentKeySessionShouldRetryContentKeyRequestReason() bool + ContentKeySessionDidProvideContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) + HasContentKeySessionDidProvideContentKeyRequest() bool } // A delegate implementation builder for the [PContentKeySessionDelegate] protocol. type ContentKeySessionDelegate struct { - _ContentKeySessionContentKeyRequestDidFailWithError func(session ContentKeySession, keyRequest ContentKeyRequest, err foundation.Error) - _ContentKeySessionDidProvideContentKeyRequest func(session ContentKeySession, keyRequest ContentKeyRequest) - _ContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier func(session ContentKeySession, persistableContentKey []byte, keyIdentifier objc.Object) - _ContentKeySessionDidProvideRenewingContentKeyRequest func(session ContentKeySession, keyRequest ContentKeyRequest) - _ContentKeySessionDidProvidePersistableContentKeyRequest func(session ContentKeySession, keyRequest PersistableContentKeyRequest) - _ContentKeySessionDidGenerateExpiredSessionReport func(session ContentKeySession) - _ContentKeySessionContentProtectionSessionIdentifierDidChange func(session ContentKeySession) - _ContentKeySessionContentKeyRequestDidSucceed func(session ContentKeySession, keyRequest ContentKeyRequest) - _ContentKeySessionShouldRetryContentKeyRequestReason func(session ContentKeySession, keyRequest ContentKeyRequest, retryReason ContentKeyRequestRetryReason) bool -} - -func (di *ContentKeySessionDelegate) HasContentKeySessionContentKeyRequestDidFailWithError() bool { - return di._ContentKeySessionContentKeyRequestDidFailWithError != nil -} - -// Tells the receiver that the content key request failed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799201-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) SetContentKeySessionContentKeyRequestDidFailWithError(f func(session ContentKeySession, keyRequest ContentKeyRequest, err foundation.Error)) { - di._ContentKeySessionContentKeyRequestDidFailWithError = f -} - -// Tells the receiver that the content key request failed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799201-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) ContentKeySessionContentKeyRequestDidFailWithError(session ContentKeySession, keyRequest ContentKeyRequest, err foundation.Error) { - di._ContentKeySessionContentKeyRequestDidFailWithError(session, keyRequest, err) -} -func (di *ContentKeySessionDelegate) HasContentKeySessionDidProvideContentKeyRequest() bool { - return di._ContentKeySessionDidProvideContentKeyRequest != nil -} - -// Provides the receiver with a new content key request object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799204-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) SetContentKeySessionDidProvideContentKeyRequest(f func(session ContentKeySession, keyRequest ContentKeyRequest)) { - di._ContentKeySessionDidProvideContentKeyRequest = f -} - -// Provides the receiver with a new content key request object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799204-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) ContentKeySessionDidProvideContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) { - di._ContentKeySessionDidProvideContentKeyRequest(session, keyRequest) -} -func (di *ContentKeySessionDelegate) HasContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier() bool { - return di._ContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier != nil -} - -// Provides the receiver with an updated persistable content key for a specific key request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2881821-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) SetContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier(f func(session ContentKeySession, persistableContentKey []byte, keyIdentifier objc.Object)) { - di._ContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier = f + _ContentKeySessionDidGenerateExpiredSessionReport func(session ContentKeySession) + _ContentKeySessionContentProtectionSessionIdentifierDidChange func(session ContentKeySession) + _ContentKeySessionDidProvideContentKeyRequest func(session ContentKeySession, keyRequest ContentKeyRequest) } -// Provides the receiver with an updated persistable content key for a specific key request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2881821-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) ContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier(session ContentKeySession, persistableContentKey []byte, keyIdentifier objc.Object) { - di._ContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier(session, persistableContentKey, keyIdentifier) -} -func (di *ContentKeySessionDelegate) HasContentKeySessionDidProvideRenewingContentKeyRequest() bool { - return di._ContentKeySessionDidProvideRenewingContentKeyRequest != nil -} - -// Provides the receiver with a new content key request object for the renewal of an existing content key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799168-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) SetContentKeySessionDidProvideRenewingContentKeyRequest(f func(session ContentKeySession, keyRequest ContentKeyRequest)) { - di._ContentKeySessionDidProvideRenewingContentKeyRequest = f -} - -// Provides the receiver with a new content key request object for the renewal of an existing content key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799168-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) ContentKeySessionDidProvideRenewingContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) { - di._ContentKeySessionDidProvideRenewingContentKeyRequest(session, keyRequest) -} -func (di *ContentKeySessionDelegate) HasContentKeySessionDidProvidePersistableContentKeyRequest() bool { - return di._ContentKeySessionDidProvidePersistableContentKeyRequest != nil -} - -// Provides the receiver with a new content key request object to process a persistable content key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799200-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) SetContentKeySessionDidProvidePersistableContentKeyRequest(f func(session ContentKeySession, keyRequest PersistableContentKeyRequest)) { - di._ContentKeySessionDidProvidePersistableContentKeyRequest = f -} - -// Provides the receiver with a new content key request object to process a persistable content key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799200-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) ContentKeySessionDidProvidePersistableContentKeyRequest(session ContentKeySession, keyRequest PersistableContentKeyRequest) { - di._ContentKeySessionDidProvidePersistableContentKeyRequest(session, keyRequest) -} func (di *ContentKeySessionDelegate) HasContentKeySessionDidGenerateExpiredSessionReport() bool { return di._ContentKeySessionDidGenerateExpiredSessionReport != nil } @@ -180,39 +64,22 @@ func (di *ContentKeySessionDelegate) SetContentKeySessionContentProtectionSessio func (di *ContentKeySessionDelegate) ContentKeySessionContentProtectionSessionIdentifierDidChange(session ContentKeySession) { di._ContentKeySessionContentProtectionSessionIdentifierDidChange(session) } -func (di *ContentKeySessionDelegate) HasContentKeySessionContentKeyRequestDidSucceed() bool { - return di._ContentKeySessionContentKeyRequestDidSucceed != nil -} - -// Tells the content key session that the response to a content key requeset was successfully processed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2966512-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) SetContentKeySessionContentKeyRequestDidSucceed(f func(session ContentKeySession, keyRequest ContentKeyRequest)) { - di._ContentKeySessionContentKeyRequestDidSucceed = f -} - -// Tells the content key session that the response to a content key requeset was successfully processed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2966512-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) ContentKeySessionContentKeyRequestDidSucceed(session ContentKeySession, keyRequest ContentKeyRequest) { - di._ContentKeySessionContentKeyRequestDidSucceed(session, keyRequest) -} -func (di *ContentKeySessionDelegate) HasContentKeySessionShouldRetryContentKeyRequestReason() bool { - return di._ContentKeySessionShouldRetryContentKeyRequestReason != nil +func (di *ContentKeySessionDelegate) HasContentKeySessionDidProvideContentKeyRequest() bool { + return di._ContentKeySessionDidProvideContentKeyRequest != nil } -// Provides the receiver with a content key request object to retry. [Full Topic] +// Provides the receiver with a new content key request object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799210-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) SetContentKeySessionShouldRetryContentKeyRequestReason(f func(session ContentKeySession, keyRequest ContentKeyRequest, retryReason ContentKeyRequestRetryReason) bool) { - di._ContentKeySessionShouldRetryContentKeyRequestReason = f +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799204-contentkeysession?language=objc +func (di *ContentKeySessionDelegate) SetContentKeySessionDidProvideContentKeyRequest(f func(session ContentKeySession, keyRequest ContentKeyRequest)) { + di._ContentKeySessionDidProvideContentKeyRequest = f } -// Provides the receiver with a content key request object to retry. [Full Topic] +// Provides the receiver with a new content key request object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799210-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) ContentKeySessionShouldRetryContentKeyRequestReason(session ContentKeySession, keyRequest ContentKeyRequest, retryReason ContentKeyRequestRetryReason) bool { - return di._ContentKeySessionShouldRetryContentKeyRequestReason(session, keyRequest, retryReason) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799204-contentkeysession?language=objc +func (di *ContentKeySessionDelegate) ContentKeySessionDidProvideContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) { + di._ContentKeySessionDidProvideContentKeyRequest(session, keyRequest) } // ensure impl type implements protocol interface @@ -223,61 +90,6 @@ type ContentKeySessionDelegateObject struct { objc.Object } -func (c_ ContentKeySessionDelegateObject) HasContentKeySessionContentKeyRequestDidFailWithError() bool { - return c_.RespondsToSelector(objc.Sel("contentKeySession:contentKeyRequest:didFailWithError:")) -} - -// Tells the receiver that the content key request failed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799201-contentkeysession?language=objc -func (c_ ContentKeySessionDelegateObject) ContentKeySessionContentKeyRequestDidFailWithError(session ContentKeySession, keyRequest ContentKeyRequest, err foundation.Error) { - objc.Call[objc.Void](c_, objc.Sel("contentKeySession:contentKeyRequest:didFailWithError:"), session, keyRequest, err) -} - -func (c_ ContentKeySessionDelegateObject) HasContentKeySessionDidProvideContentKeyRequest() bool { - return c_.RespondsToSelector(objc.Sel("contentKeySession:didProvideContentKeyRequest:")) -} - -// Provides the receiver with a new content key request object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799204-contentkeysession?language=objc -func (c_ ContentKeySessionDelegateObject) ContentKeySessionDidProvideContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) { - objc.Call[objc.Void](c_, objc.Sel("contentKeySession:didProvideContentKeyRequest:"), session, keyRequest) -} - -func (c_ ContentKeySessionDelegateObject) HasContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier() bool { - return c_.RespondsToSelector(objc.Sel("contentKeySession:didUpdatePersistableContentKey:forContentKeyIdentifier:")) -} - -// Provides the receiver with an updated persistable content key for a specific key request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2881821-contentkeysession?language=objc -func (c_ ContentKeySessionDelegateObject) ContentKeySessionDidUpdatePersistableContentKeyForContentKeyIdentifier(session ContentKeySession, persistableContentKey []byte, keyIdentifier objc.Object) { - objc.Call[objc.Void](c_, objc.Sel("contentKeySession:didUpdatePersistableContentKey:forContentKeyIdentifier:"), session, persistableContentKey, keyIdentifier) -} - -func (c_ ContentKeySessionDelegateObject) HasContentKeySessionDidProvideRenewingContentKeyRequest() bool { - return c_.RespondsToSelector(objc.Sel("contentKeySession:didProvideRenewingContentKeyRequest:")) -} - -// Provides the receiver with a new content key request object for the renewal of an existing content key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799168-contentkeysession?language=objc -func (c_ ContentKeySessionDelegateObject) ContentKeySessionDidProvideRenewingContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) { - objc.Call[objc.Void](c_, objc.Sel("contentKeySession:didProvideRenewingContentKeyRequest:"), session, keyRequest) -} - -func (c_ ContentKeySessionDelegateObject) HasContentKeySessionDidProvidePersistableContentKeyRequest() bool { - return c_.RespondsToSelector(objc.Sel("contentKeySession:didProvidePersistableContentKeyRequest:")) -} - -// Provides the receiver with a new content key request object to process a persistable content key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799200-contentkeysession?language=objc -func (c_ ContentKeySessionDelegateObject) ContentKeySessionDidProvidePersistableContentKeyRequest(session ContentKeySession, keyRequest PersistableContentKeyRequest) { - objc.Call[objc.Void](c_, objc.Sel("contentKeySession:didProvidePersistableContentKeyRequest:"), session, keyRequest) -} - func (c_ ContentKeySessionDelegateObject) HasContentKeySessionDidGenerateExpiredSessionReport() bool { return c_.RespondsToSelector(objc.Sel("contentKeySessionDidGenerateExpiredSessionReport:")) } @@ -300,25 +112,13 @@ func (c_ ContentKeySessionDelegateObject) ContentKeySessionContentProtectionSess objc.Call[objc.Void](c_, objc.Sel("contentKeySessionContentProtectionSessionIdentifierDidChange:"), session) } -func (c_ ContentKeySessionDelegateObject) HasContentKeySessionContentKeyRequestDidSucceed() bool { - return c_.RespondsToSelector(objc.Sel("contentKeySession:contentKeyRequestDidSucceed:")) -} - -// Tells the content key session that the response to a content key requeset was successfully processed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2966512-contentkeysession?language=objc -func (c_ ContentKeySessionDelegateObject) ContentKeySessionContentKeyRequestDidSucceed(session ContentKeySession, keyRequest ContentKeyRequest) { - objc.Call[objc.Void](c_, objc.Sel("contentKeySession:contentKeyRequestDidSucceed:"), session, keyRequest) -} - -func (c_ ContentKeySessionDelegateObject) HasContentKeySessionShouldRetryContentKeyRequestReason() bool { - return c_.RespondsToSelector(objc.Sel("contentKeySession:shouldRetryContentKeyRequest:reason:")) +func (c_ ContentKeySessionDelegateObject) HasContentKeySessionDidProvideContentKeyRequest() bool { + return c_.RespondsToSelector(objc.Sel("contentKeySession:didProvideContentKeyRequest:")) } -// Provides the receiver with a content key request object to retry. [Full Topic] +// Provides the receiver with a new content key request object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799210-contentkeysession?language=objc -func (c_ ContentKeySessionDelegateObject) ContentKeySessionShouldRetryContentKeyRequestReason(session ContentKeySession, keyRequest ContentKeyRequest, retryReason ContentKeyRequestRetryReason) bool { - rv := objc.Call[bool](c_, objc.Sel("contentKeySession:shouldRetryContentKeyRequest:reason:"), session, keyRequest, retryReason) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799204-contentkeysession?language=objc +func (c_ ContentKeySessionDelegateObject) ContentKeySessionDidProvideContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) { + objc.Call[objc.Void](c_, objc.Sel("contentKeySession:didProvideContentKeyRequest:"), session, keyRequest) } diff --git a/macos/avfoundation/content_key_specifier.gen.go b/macos/avfoundation/content_key_specifier.gen.go index 806a24fe..cfbdde7b 100644 --- a/macos/avfoundation/content_key_specifier.gen.go +++ b/macos/avfoundation/content_key_specifier.gen.go @@ -18,9 +18,9 @@ type _ContentKeySpecifierClass struct { // An interface definition for the [ContentKeySpecifier] class. type IContentKeySpecifier interface { objc.IObject + KeySystem() ContentKeySystem Options() map[string]objc.Object Identifier() objc.Object - KeySystem() ContentKeySystem } // An object that uniquely identifies a content key. [Full Topic] @@ -36,18 +36,6 @@ func ContentKeySpecifierFrom(ptr unsafe.Pointer) ContentKeySpecifier { } } -func (cc _ContentKeySpecifierClass) ContentKeySpecifierForKeySystemIdentifierOptions(keySystem ContentKeySystem, contentKeyIdentifier objc.IObject, options map[string]objc.IObject) ContentKeySpecifier { - rv := objc.Call[ContentKeySpecifier](cc, objc.Sel("contentKeySpecifierForKeySystem:identifier:options:"), keySystem, contentKeyIdentifier, options) - return rv -} - -// A convenience initializer to create a content key specifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyspecifier/3726105-contentkeyspecifierforkeysystem?language=objc -func ContentKeySpecifier_ContentKeySpecifierForKeySystemIdentifierOptions(keySystem ContentKeySystem, contentKeyIdentifier objc.IObject, options map[string]objc.IObject) ContentKeySpecifier { - return ContentKeySpecifierClass.ContentKeySpecifierForKeySystemIdentifierOptions(keySystem, contentKeyIdentifier, options) -} - func (c_ ContentKeySpecifier) InitForKeySystemIdentifierOptions(keySystem ContentKeySystem, contentKeyIdentifier objc.IObject, options map[string]objc.IObject) ContentKeySpecifier { rv := objc.Call[ContentKeySpecifier](c_, objc.Sel("initForKeySystem:identifier:options:"), keySystem, contentKeyIdentifier, options) return rv @@ -62,6 +50,18 @@ func NewContentKeySpecifierForKeySystemIdentifierOptions(keySystem ContentKeySys return instance } +func (cc _ContentKeySpecifierClass) ContentKeySpecifierForKeySystemIdentifierOptions(keySystem ContentKeySystem, contentKeyIdentifier objc.IObject, options map[string]objc.IObject) ContentKeySpecifier { + rv := objc.Call[ContentKeySpecifier](cc, objc.Sel("contentKeySpecifierForKeySystem:identifier:options:"), keySystem, contentKeyIdentifier, options) + return rv +} + +// A convenience initializer to create a content key specifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyspecifier/3726105-contentkeyspecifierforkeysystem?language=objc +func ContentKeySpecifier_ContentKeySpecifierForKeySystemIdentifierOptions(keySystem ContentKeySystem, contentKeyIdentifier objc.IObject, options map[string]objc.IObject) ContentKeySpecifier { + return ContentKeySpecifierClass.ContentKeySpecifierForKeySystemIdentifierOptions(keySystem, contentKeyIdentifier, options) +} + func (cc _ContentKeySpecifierClass) Alloc() ContentKeySpecifier { rv := objc.Call[ContentKeySpecifier](cc, objc.Sel("alloc")) return rv @@ -82,6 +82,14 @@ func (c_ ContentKeySpecifier) Init() ContentKeySpecifier { return rv } +// The key system that generates content keys. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyspecifier/3726108-keysystem?language=objc +func (c_ ContentKeySpecifier) KeySystem() ContentKeySystem { + rv := objc.Call[ContentKeySystem](c_, objc.Sel("keySystem")) + return rv +} + // A dictionary of options with which you initialized the specifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyspecifier/3726109-options?language=objc @@ -97,11 +105,3 @@ func (c_ ContentKeySpecifier) Identifier() objc.Object { rv := objc.Call[objc.Object](c_, objc.Sel("identifier")) return rv } - -// The key system that generates content keys. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyspecifier/3726108-keysystem?language=objc -func (c_ ContentKeySpecifier) KeySystem() ContentKeySystem { - rv := objc.Call[ContentKeySystem](c_, objc.Sel("keySystem")) - return rv -} diff --git a/macos/avfoundation/coordinated_playback_participant.gen.go b/macos/avfoundation/coordinated_playback_participant.gen.go index 98ed1ecc..c8b40b46 100644 --- a/macos/avfoundation/coordinated_playback_participant.gen.go +++ b/macos/avfoundation/coordinated_playback_participant.gen.go @@ -19,9 +19,9 @@ type _CoordinatedPlaybackParticipantClass struct { // An interface definition for the [CoordinatedPlaybackParticipant] class. type ICoordinatedPlaybackParticipant interface { objc.IObject - Identifier() foundation.UUID IsReadyToPlay() bool SuspensionReasons() []CoordinatedPlaybackSuspensionReason + Identifier() foundation.UUID } // An object that represents a participant in a coordinated playback session. [Full Topic] @@ -57,14 +57,6 @@ func (c_ CoordinatedPlaybackParticipant) Init() CoordinatedPlaybackParticipant { return rv } -// A unique identifier for the participant. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcoordinatedplaybackparticipant/3750235-identifier?language=objc -func (c_ CoordinatedPlaybackParticipant) Identifier() foundation.UUID { - rv := objc.Call[foundation.UUID](c_, objc.Sel("identifier")) - return rv -} - // A Boolean value that indicates whether the participant is ready to start coordinated playback. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcoordinatedplaybackparticipant/3750236-readytoplay?language=objc @@ -80,3 +72,11 @@ func (c_ CoordinatedPlaybackParticipant) SuspensionReasons() []CoordinatedPlayba rv := objc.Call[[]CoordinatedPlaybackSuspensionReason](c_, objc.Sel("suspensionReasons")) return rv } + +// A unique identifier for the participant. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcoordinatedplaybackparticipant/3750235-identifier?language=objc +func (c_ CoordinatedPlaybackParticipant) Identifier() foundation.UUID { + rv := objc.Call[foundation.UUID](c_, objc.Sel("identifier")) + return rv +} diff --git a/macos/avfoundation/date_range_metadata_group.gen.go b/macos/avfoundation/date_range_metadata_group.gen.go index 5197ba4f..078bd2f1 100644 --- a/macos/avfoundation/date_range_metadata_group.gen.go +++ b/macos/avfoundation/date_range_metadata_group.gen.go @@ -19,8 +19,8 @@ type _DateRangeMetadataGroupClass struct { // An interface definition for the [DateRangeMetadataGroup] class. type IDateRangeMetadataGroup interface { IMetadataGroup - EndDate() foundation.Date StartDate() foundation.Date + EndDate() foundation.Date } // A collection of metadata items that are valid for use within a specific date range. [Full Topic] @@ -70,14 +70,6 @@ func (d_ DateRangeMetadataGroup) Init() DateRangeMetadataGroup { return rv } -// The end date for the metadata date range group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdaterangemetadatagroup/1386255-enddate?language=objc -func (d_ DateRangeMetadataGroup) EndDate() foundation.Date { - rv := objc.Call[foundation.Date](d_, objc.Sel("endDate")) - return rv -} - // The start date for the metadata date range group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdaterangemetadatagroup/1386420-startdate?language=objc @@ -85,3 +77,11 @@ func (d_ DateRangeMetadataGroup) StartDate() foundation.Date { rv := objc.Call[foundation.Date](d_, objc.Sel("startDate")) return rv } + +// The end date for the metadata date range group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdaterangemetadatagroup/1386255-enddate?language=objc +func (d_ DateRangeMetadataGroup) EndDate() foundation.Date { + rv := objc.Call[foundation.Date](d_, objc.Sel("endDate")) + return rv +} diff --git a/macos/avfoundation/delegating_playback_coordinator.gen.go b/macos/avfoundation/delegating_playback_coordinator.gen.go index 6a62524c..9ec975a0 100644 --- a/macos/avfoundation/delegating_playback_coordinator.gen.go +++ b/macos/avfoundation/delegating_playback_coordinator.gen.go @@ -19,10 +19,10 @@ type _DelegatingPlaybackCoordinatorClass struct { // An interface definition for the [DelegatingPlaybackCoordinator] class. type IDelegatingPlaybackCoordinator interface { IPlaybackCoordinator - ReapplyCurrentItemStateToPlaybackControlDelegate() + CoordinateRateChangeToRateOptions(rate float32, options DelegatingPlaybackCoordinatorRateChangeOptions) TransitionToItemWithIdentifierProposingInitialTimingBasedOnTimebase(itemIdentifier string, snapshotTimebase coremedia.TimebaseRef) + ReapplyCurrentItemStateToPlaybackControlDelegate() CoordinateSeekToTimeOptions(time coremedia.Time, options DelegatingPlaybackCoordinatorSeekOptions) - CoordinateRateChangeToRateOptions(rate float32, options DelegatingPlaybackCoordinatorRateChangeOptions) PlaybackControlDelegate() PlaybackCoordinatorPlaybackControlDelegateObject CurrentItemIdentifier() string } @@ -75,11 +75,11 @@ func (d_ DelegatingPlaybackCoordinator) Init() DelegatingPlaybackCoordinator { return rv } -// Tells the coordinator to reissue current play state commands to synchronize the current item to the state of other participants. [Full Topic] +// Coordinates a rate change across all participants, waiting for others to become ready, if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinator/3750258-reapplycurrentitemstatetoplaybac?language=objc -func (d_ DelegatingPlaybackCoordinator) ReapplyCurrentItemStateToPlaybackControlDelegate() { - objc.Call[objc.Void](d_, objc.Sel("reapplyCurrentItemStateToPlaybackControlDelegate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinator/3750250-coordinateratechangetorate?language=objc +func (d_ DelegatingPlaybackCoordinator) CoordinateRateChangeToRateOptions(rate float32, options DelegatingPlaybackCoordinatorRateChangeOptions) { + objc.Call[objc.Void](d_, objc.Sel("coordinateRateChangeToRate:options:"), rate, options) } // Tells the coordinator to transition to a new item. [Full Topic] @@ -89,6 +89,13 @@ func (d_ DelegatingPlaybackCoordinator) TransitionToItemWithIdentifierProposingI objc.Call[objc.Void](d_, objc.Sel("transitionToItemWithIdentifier:proposingInitialTimingBasedOnTimebase:"), itemIdentifier, snapshotTimebase) } +// Tells the coordinator to reissue current play state commands to synchronize the current item to the state of other participants. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinator/3750258-reapplycurrentitemstatetoplaybac?language=objc +func (d_ DelegatingPlaybackCoordinator) ReapplyCurrentItemStateToPlaybackControlDelegate() { + objc.Call[objc.Void](d_, objc.Sel("reapplyCurrentItemStateToPlaybackControlDelegate")) +} + // Coordinates a seek to the specified time for all connected participants. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinator/3750251-coordinateseektotime?language=objc @@ -96,13 +103,6 @@ func (d_ DelegatingPlaybackCoordinator) CoordinateSeekToTimeOptions(time coremed objc.Call[objc.Void](d_, objc.Sel("coordinateSeekToTime:options:"), time, options) } -// Coordinates a rate change across all participants, waiting for others to become ready, if necessary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinator/3750250-coordinateratechangetorate?language=objc -func (d_ DelegatingPlaybackCoordinator) CoordinateRateChangeToRateOptions(rate float32, options DelegatingPlaybackCoordinatorRateChangeOptions) { - objc.Call[objc.Void](d_, objc.Sel("coordinateRateChangeToRate:options:"), rate, options) -} - // The delegate object for the playback coordinator. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinator/3750257-playbackcontroldelegate?language=objc diff --git a/macos/avfoundation/delegating_playback_coordinator_pause_command.gen.go b/macos/avfoundation/delegating_playback_coordinator_pause_command.gen.go index 76a42b53..6db03b72 100644 --- a/macos/avfoundation/delegating_playback_coordinator_pause_command.gen.go +++ b/macos/avfoundation/delegating_playback_coordinator_pause_command.gen.go @@ -18,8 +18,8 @@ type _DelegatingPlaybackCoordinatorPauseCommandClass struct { // An interface definition for the [DelegatingPlaybackCoordinatorPauseCommand] class. type IDelegatingPlaybackCoordinatorPauseCommand interface { IDelegatingPlaybackCoordinatorPlaybackControlCommand - AnticipatedPlaybackRate() float32 ShouldBufferInAnticipationOfPlayback() bool + AnticipatedPlaybackRate() float32 } // A command that indicates to pause playback. [Full Topic] @@ -55,14 +55,6 @@ func (d_ DelegatingPlaybackCoordinatorPauseCommand) Init() DelegatingPlaybackCoo return rv } -// The rate at which the coordinator expects the current item to play. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorpausecommand/3750263-anticipatedplaybackrate?language=objc -func (d_ DelegatingPlaybackCoordinatorPauseCommand) AnticipatedPlaybackRate() float32 { - rv := objc.Call[float32](d_, objc.Sel("anticipatedPlaybackRate")) - return rv -} - // A Boolean value that indicates whether the player starts buffering in preparation for a request to begin playback. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorpausecommand/3750264-shouldbufferinanticipationofplay?language=objc @@ -70,3 +62,11 @@ func (d_ DelegatingPlaybackCoordinatorPauseCommand) ShouldBufferInAnticipationOf rv := objc.Call[bool](d_, objc.Sel("shouldBufferInAnticipationOfPlayback")) return rv } + +// The rate at which the coordinator expects the current item to play. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorpausecommand/3750263-anticipatedplaybackrate?language=objc +func (d_ DelegatingPlaybackCoordinatorPauseCommand) AnticipatedPlaybackRate() float32 { + rv := objc.Call[float32](d_, objc.Sel("anticipatedPlaybackRate")) + return rv +} diff --git a/macos/avfoundation/delegating_playback_coordinator_playback_control_command.gen.go b/macos/avfoundation/delegating_playback_coordinator_playback_control_command.gen.go index d0daec66..4ab13713 100644 --- a/macos/avfoundation/delegating_playback_coordinator_playback_control_command.gen.go +++ b/macos/avfoundation/delegating_playback_coordinator_playback_control_command.gen.go @@ -18,8 +18,8 @@ type _DelegatingPlaybackCoordinatorPlaybackControlCommandClass struct { // An interface definition for the [DelegatingPlaybackCoordinatorPlaybackControlCommand] class. type IDelegatingPlaybackCoordinatorPlaybackControlCommand interface { objc.IObject - ExpectedCurrentItemIdentifier() string Originator() CoordinatedPlaybackParticipant + ExpectedCurrentItemIdentifier() string } // An abstract superclass for playback commands. [Full Topic] @@ -55,14 +55,6 @@ func (d_ DelegatingPlaybackCoordinatorPlaybackControlCommand) Init() DelegatingP return rv } -// An item identifier the coordinator issues the command for. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorplaybackcontrolcommand/3750270-expectedcurrentitemidentifier?language=objc -func (d_ DelegatingPlaybackCoordinatorPlaybackControlCommand) ExpectedCurrentItemIdentifier() string { - rv := objc.Call[string](d_, objc.Sel("expectedCurrentItemIdentifier")) - return rv -} - // The participant that causes the coordinator to issue the command. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorplaybackcontrolcommand/3750271-originator?language=objc @@ -70,3 +62,11 @@ func (d_ DelegatingPlaybackCoordinatorPlaybackControlCommand) Originator() Coord rv := objc.Call[CoordinatedPlaybackParticipant](d_, objc.Sel("originator")) return rv } + +// An item identifier the coordinator issues the command for. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorplaybackcontrolcommand/3750270-expectedcurrentitemidentifier?language=objc +func (d_ DelegatingPlaybackCoordinatorPlaybackControlCommand) ExpectedCurrentItemIdentifier() string { + rv := objc.Call[string](d_, objc.Sel("expectedCurrentItemIdentifier")) + return rv +} diff --git a/macos/avfoundation/delegating_playback_coordinator_seek_command.gen.go b/macos/avfoundation/delegating_playback_coordinator_seek_command.gen.go index c317d6e1..8b53fa30 100644 --- a/macos/avfoundation/delegating_playback_coordinator_seek_command.gen.go +++ b/macos/avfoundation/delegating_playback_coordinator_seek_command.gen.go @@ -20,10 +20,10 @@ type _DelegatingPlaybackCoordinatorSeekCommandClass struct { // An interface definition for the [DelegatingPlaybackCoordinatorSeekCommand] class. type IDelegatingPlaybackCoordinatorSeekCommand interface { IDelegatingPlaybackCoordinatorPlaybackControlCommand - ItemTime() coremedia.Time - CompletionDueDate() foundation.Date ShouldBufferInAnticipationOfPlayback() bool + ItemTime() coremedia.Time AnticipatedPlaybackRate() float32 + CompletionDueDate() foundation.Date } // A command that indicates to seek to a new time in the item timeline. [Full Topic] @@ -59,22 +59,6 @@ func (d_ DelegatingPlaybackCoordinatorSeekCommand) Init() DelegatingPlaybackCoor return rv } -// The time to seek to in the item timeline. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorseekcommand/3750280-itemtime?language=objc -func (d_ DelegatingPlaybackCoordinatorSeekCommand) ItemTime() coremedia.Time { - rv := objc.Call[coremedia.Time](d_, objc.Sel("itemTime")) - return rv -} - -// The deadline by which the coordinator expects the delegate to handle the command. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorseekcommand/3778531-completionduedate?language=objc -func (d_ DelegatingPlaybackCoordinatorSeekCommand) CompletionDueDate() foundation.Date { - rv := objc.Call[foundation.Date](d_, objc.Sel("completionDueDate")) - return rv -} - // A Boolean value that indicates whether the player starts buffering in anticipation of a request to begin playback. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorseekcommand/3750281-shouldbufferinanticipationofplay?language=objc @@ -83,6 +67,14 @@ func (d_ DelegatingPlaybackCoordinatorSeekCommand) ShouldBufferInAnticipationOfP return rv } +// The time to seek to in the item timeline. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorseekcommand/3750280-itemtime?language=objc +func (d_ DelegatingPlaybackCoordinatorSeekCommand) ItemTime() coremedia.Time { + rv := objc.Call[coremedia.Time](d_, objc.Sel("itemTime")) + return rv +} + // The rate at which the coordinator expects playback to resume. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorseekcommand/3750279-anticipatedplaybackrate?language=objc @@ -90,3 +82,11 @@ func (d_ DelegatingPlaybackCoordinatorSeekCommand) AnticipatedPlaybackRate() flo rv := objc.Call[float32](d_, objc.Sel("anticipatedPlaybackRate")) return rv } + +// The deadline by which the coordinator expects the delegate to handle the command. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdelegatingplaybackcoordinatorseekcommand/3778531-completionduedate?language=objc +func (d_ DelegatingPlaybackCoordinatorSeekCommand) CompletionDueDate() foundation.Date { + rv := objc.Call[foundation.Date](d_, objc.Sel("completionDueDate")) + return rv +} diff --git a/macos/avfoundation/depth_data.gen.go b/macos/avfoundation/depth_data.gen.go index 82436074..08b1d83b 100644 --- a/macos/avfoundation/depth_data.gen.go +++ b/macos/avfoundation/depth_data.gen.go @@ -22,13 +22,13 @@ type _DepthDataClass struct { type IDepthData interface { objc.IObject DictionaryRepresentationForAuxiliaryDataType(outAuxDataType unsafe.Pointer) foundation.Dictionary - DepthDataQuality() DepthDataQuality AvailableDepthDataTypes() []foundation.Number - CameraCalibrationData() CameraCalibrationData - DepthDataMap() corevideo.PixelBufferRef - DepthDataAccuracy() DepthDataAccuracy IsDepthDataFiltered() bool + DepthDataAccuracy() DepthDataAccuracy + DepthDataQuality() DepthDataQuality DepthDataType() uint + DepthDataMap() corevideo.PixelBufferRef + CameraCalibrationData() CameraCalibrationData } // A container for per-pixel distance or disparity information captured by compatible camera devices. [Full Topic] @@ -44,20 +44,32 @@ func DepthDataFrom(ptr unsafe.Pointer) DepthData { } } -func (d_ DepthData) DepthDataByReplacingDepthDataMapWithPixelBufferError(pixelBuffer corevideo.PixelBufferRef, outError unsafe.Pointer) DepthData { - rv := objc.Call[DepthData](d_, objc.Sel("depthDataByReplacingDepthDataMapWithPixelBuffer:error:"), pixelBuffer, outError) +func (d_ DepthData) DepthDataByApplyingExifOrientation(exifOrientation imageio.ImagePropertyOrientation) DepthData { + rv := objc.Call[DepthData](d_, objc.Sel("depthDataByApplyingExifOrientation:"), exifOrientation) return rv } -// Returns a derivative depth data object by replacing the depth data map. [Full Topic] +// Returns a derivative depth data object by mirroring or rotating it to the specified orientation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881231-depthdatabyreplacingdepthdatamap?language=objc -func DepthData_DepthDataByReplacingDepthDataMapWithPixelBufferError(pixelBuffer corevideo.PixelBufferRef, outError unsafe.Pointer) DepthData { - instance := DepthDataClass.Alloc().DepthDataByReplacingDepthDataMapWithPixelBufferError(pixelBuffer, outError) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881225-depthdatabyapplyingexiforientati?language=objc +func DepthData_DepthDataByApplyingExifOrientation(exifOrientation imageio.ImagePropertyOrientation) DepthData { + instance := DepthDataClass.Alloc().DepthDataByApplyingExifOrientation(exifOrientation) instance.Autorelease() return instance } +func (dc _DepthDataClass) DepthDataFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) DepthData { + rv := objc.Call[DepthData](dc, objc.Sel("depthDataFromDictionaryRepresentation:error:"), imageSourceAuxDataInfoDictionary, outError) + return rv +} + +// Creates a depth data object from depth information such as that found in an image file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881221-depthdatafromdictionaryrepresent?language=objc +func DepthData_DepthDataFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) DepthData { + return DepthDataClass.DepthDataFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary, outError) +} + func (d_ DepthData) DepthDataByConvertingToDepthDataType(depthDataType uint) DepthData { rv := objc.Call[DepthData](d_, objc.Sel("depthDataByConvertingToDepthDataType:"), depthDataType) return rv @@ -72,32 +84,20 @@ func DepthData_DepthDataByConvertingToDepthDataType(depthDataType uint) DepthDat return instance } -func (d_ DepthData) DepthDataByApplyingExifOrientation(exifOrientation imageio.ImagePropertyOrientation) DepthData { - rv := objc.Call[DepthData](d_, objc.Sel("depthDataByApplyingExifOrientation:"), exifOrientation) +func (d_ DepthData) DepthDataByReplacingDepthDataMapWithPixelBufferError(pixelBuffer corevideo.PixelBufferRef, outError unsafe.Pointer) DepthData { + rv := objc.Call[DepthData](d_, objc.Sel("depthDataByReplacingDepthDataMapWithPixelBuffer:error:"), pixelBuffer, outError) return rv } -// Returns a derivative depth data object by mirroring or rotating it to the specified orientation. [Full Topic] +// Returns a derivative depth data object by replacing the depth data map. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881225-depthdatabyapplyingexiforientati?language=objc -func DepthData_DepthDataByApplyingExifOrientation(exifOrientation imageio.ImagePropertyOrientation) DepthData { - instance := DepthDataClass.Alloc().DepthDataByApplyingExifOrientation(exifOrientation) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881231-depthdatabyreplacingdepthdatamap?language=objc +func DepthData_DepthDataByReplacingDepthDataMapWithPixelBufferError(pixelBuffer corevideo.PixelBufferRef, outError unsafe.Pointer) DepthData { + instance := DepthDataClass.Alloc().DepthDataByReplacingDepthDataMapWithPixelBufferError(pixelBuffer, outError) instance.Autorelease() return instance } -func (dc _DepthDataClass) DepthDataFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) DepthData { - rv := objc.Call[DepthData](dc, objc.Sel("depthDataFromDictionaryRepresentation:error:"), imageSourceAuxDataInfoDictionary, outError) - return rv -} - -// Creates a depth data object from depth information such as that found in an image file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881221-depthdatafromdictionaryrepresent?language=objc -func DepthData_DepthDataFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) DepthData { - return DepthDataClass.DepthDataFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary, outError) -} - func (dc _DepthDataClass) Alloc() DepthData { rv := objc.Call[DepthData](dc, objc.Sel("alloc")) return rv @@ -126,14 +126,6 @@ func (d_ DepthData) DictionaryRepresentationForAuxiliaryDataType(outAuxDataType return rv } -// The overall quality of the depth map. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2919804-depthdataquality?language=objc -func (d_ DepthData) DepthDataQuality() DepthDataQuality { - rv := objc.Call[DepthDataQuality](d_, objc.Sel("depthDataQuality")) - return rv -} - // The list of depth data formats to which this depth data can be converted. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881233-availabledepthdatatypes?language=objc @@ -142,19 +134,11 @@ func (d_ DepthData) AvailableDepthDataTypes() []foundation.Number { return rv } -// The imaging parameters with which this depth data was captured. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881230-cameracalibrationdata?language=objc -func (d_ DepthData) CameraCalibrationData() CameraCalibrationData { - rv := objc.Call[CameraCalibrationData](d_, objc.Sel("cameraCalibrationData")) - return rv -} - -// A pixel buffer containing the depth data's per-pixel depth or disparity data map. [Full Topic] +// A Boolean value indicating whether the depth map contains temporally smoothed data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881227-depthdatamap?language=objc -func (d_ DepthData) DepthDataMap() corevideo.PixelBufferRef { - rv := objc.Call[corevideo.PixelBufferRef](d_, objc.Sel("depthDataMap")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881224-depthdatafiltered?language=objc +func (d_ DepthData) IsDepthDataFiltered() bool { + rv := objc.Call[bool](d_, objc.Sel("isDepthDataFiltered")) return rv } @@ -166,11 +150,11 @@ func (d_ DepthData) DepthDataAccuracy() DepthDataAccuracy { return rv } -// A Boolean value indicating whether the depth map contains temporally smoothed data. [Full Topic] +// The overall quality of the depth map. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881224-depthdatafiltered?language=objc -func (d_ DepthData) IsDepthDataFiltered() bool { - rv := objc.Call[bool](d_, objc.Sel("isDepthDataFiltered")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2919804-depthdataquality?language=objc +func (d_ DepthData) DepthDataQuality() DepthDataQuality { + rv := objc.Call[DepthDataQuality](d_, objc.Sel("depthDataQuality")) return rv } @@ -181,3 +165,19 @@ func (d_ DepthData) DepthDataType() uint { rv := objc.Call[uint](d_, objc.Sel("depthDataType")) return rv } + +// A pixel buffer containing the depth data's per-pixel depth or disparity data map. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881227-depthdatamap?language=objc +func (d_ DepthData) DepthDataMap() corevideo.PixelBufferRef { + rv := objc.Call[corevideo.PixelBufferRef](d_, objc.Sel("depthDataMap")) + return rv +} + +// The imaging parameters with which this depth data was captured. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avdepthdata/2881230-cameracalibrationdata?language=objc +func (d_ DepthData) CameraCalibrationData() CameraCalibrationData { + rv := objc.Call[CameraCalibrationData](d_, objc.Sel("cameraCalibrationData")) + return rv +} diff --git a/macos/avfoundation/fragmented_asset_minder.gen.go b/macos/avfoundation/fragmented_asset_minder.gen.go index 6a4863d8..3533e2a7 100644 --- a/macos/avfoundation/fragmented_asset_minder.gen.go +++ b/macos/avfoundation/fragmented_asset_minder.gen.go @@ -21,9 +21,9 @@ type IFragmentedAssetMinder interface { objc.IObject AddFragmentedAsset(asset IAsset) RemoveFragmentedAsset(asset IAsset) - Assets() []Asset MindingInterval() foundation.TimeInterval SetMindingInterval(value foundation.TimeInterval) + Assets() []Asset } // An object that periodically checks whether the system adds new fragments to a fragmented asset. [Full Topic] @@ -99,14 +99,6 @@ func (f_ FragmentedAssetMinder) RemoveFragmentedAsset(asset IAsset) { objc.Call[objc.Void](f_, objc.Sel("removeFragmentedAsset:"), asset) } -// The minded array of fragmented assets. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avfragmentedassetminder/1390319-assets?language=objc -func (f_ FragmentedAssetMinder) Assets() []Asset { - rv := objc.Call[[]Asset](f_, objc.Sel("assets")) - return rv -} - // An interval that specifies when to perform a check for additional fragments. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avfragmentedassetminder/1390760-mindinginterval?language=objc @@ -121,3 +113,11 @@ func (f_ FragmentedAssetMinder) MindingInterval() foundation.TimeInterval { func (f_ FragmentedAssetMinder) SetMindingInterval(value foundation.TimeInterval) { objc.Call[objc.Void](f_, objc.Sel("setMindingInterval:"), value) } + +// The minded array of fragmented assets. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avfragmentedassetminder/1390319-assets?language=objc +func (f_ FragmentedAssetMinder) Assets() []Asset { + rv := objc.Call[[]Asset](f_, objc.Sel("assets")) + return rv +} diff --git a/macos/avfoundation/fragmented_movie.gen.go b/macos/avfoundation/fragmented_movie.gen.go index d69443e9..94170a80 100644 --- a/macos/avfoundation/fragmented_movie.gen.go +++ b/macos/avfoundation/fragmented_movie.gen.go @@ -54,30 +54,6 @@ func (f_ FragmentedMovie) Init() FragmentedMovie { return rv } -func (fc _FragmentedMovieClass) MovieWithDataOptions(data []byte, options map[string]objc.IObject) FragmentedMovie { - rv := objc.Call[FragmentedMovie](fc, objc.Sel("movieWithData:options:"), data, options) - return rv -} - -// Returns a new movie object from a movie file’s data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458261-moviewithdata?language=objc -func FragmentedMovie_MovieWithDataOptions(data []byte, options map[string]objc.IObject) FragmentedMovie { - return FragmentedMovieClass.MovieWithDataOptions(data, options) -} - -func (fc _FragmentedMovieClass) MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) FragmentedMovie { - rv := objc.Call[FragmentedMovie](fc, objc.Sel("movieWithURL:options:"), URL, options) - return rv -} - -// Returns a new movie object from a movie header stored in a QuickTime movie file of ISO base media file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458223-moviewithurl?language=objc -func FragmentedMovie_MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) FragmentedMovie { - return FragmentedMovieClass.MovieWithURLOptions(URL, options) -} - func (f_ FragmentedMovie) InitWithDataOptions(data []byte, options map[string]objc.IObject) FragmentedMovie { rv := objc.Call[FragmentedMovie](f_, objc.Sel("initWithData:options:"), data, options) return rv @@ -92,6 +68,18 @@ func NewFragmentedMovieWithDataOptions(data []byte, options map[string]objc.IObj return instance } +func (fc _FragmentedMovieClass) MovieWithDataOptions(data []byte, options map[string]objc.IObject) FragmentedMovie { + rv := objc.Call[FragmentedMovie](fc, objc.Sel("movieWithData:options:"), data, options) + return rv +} + +// Returns a new movie object from a movie file’s data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458261-moviewithdata?language=objc +func FragmentedMovie_MovieWithDataOptions(data []byte, options map[string]objc.IObject) FragmentedMovie { + return FragmentedMovieClass.MovieWithDataOptions(data, options) +} + func (f_ FragmentedMovie) InitWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) FragmentedMovie { rv := objc.Call[FragmentedMovie](f_, objc.Sel("initWithURL:options:"), URL, options) return rv @@ -106,6 +94,18 @@ func NewFragmentedMovieWithURLOptions(URL foundation.IURL, options map[string]ob return instance } +func (fc _FragmentedMovieClass) MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) FragmentedMovie { + rv := objc.Call[FragmentedMovie](fc, objc.Sel("movieWithURL:options:"), URL, options) + return rv +} + +// Returns a new movie object from a movie header stored in a QuickTime movie file of ISO base media file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458223-moviewithurl?language=objc +func FragmentedMovie_MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) FragmentedMovie { + return FragmentedMovieClass.MovieWithURLOptions(URL, options) +} + func (fc _FragmentedMovieClass) AssetWithURL(URL foundation.IURL) FragmentedMovie { rv := objc.Call[FragmentedMovie](fc, objc.Sel("assetWithURL:"), URL) return rv diff --git a/macos/avfoundation/fragmented_movie_minder.gen.go b/macos/avfoundation/fragmented_movie_minder.gen.go index b10aedea..da6719aa 100644 --- a/macos/avfoundation/fragmented_movie_minder.gen.go +++ b/macos/avfoundation/fragmented_movie_minder.gen.go @@ -19,8 +19,8 @@ type _FragmentedMovieMinderClass struct { // An interface definition for the [FragmentedMovieMinder] class. type IFragmentedMovieMinder interface { IFragmentedAssetMinder - AddFragmentedMovie(movie IFragmentedMovie) RemoveFragmentedMovie(movie IFragmentedMovie) + AddFragmentedMovie(movie IFragmentedMovie) Movies() []FragmentedMovie } @@ -109,13 +109,6 @@ func NewFragmentedMovieMinderWithAssetMindingInterval(asset IAsset, mindingInter return instance } -// Adds a fragmented movie to the array of movies being minded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avfragmentedmovieminder/1386171-addfragmentedmovie?language=objc -func (f_ FragmentedMovieMinder) AddFragmentedMovie(movie IFragmentedMovie) { - objc.Call[objc.Void](f_, objc.Sel("addFragmentedMovie:"), movie) -} - // Removes a fragmented movie from the array of movies being minded. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avfragmentedmovieminder/1389794-removefragmentedmovie?language=objc @@ -123,6 +116,13 @@ func (f_ FragmentedMovieMinder) RemoveFragmentedMovie(movie IFragmentedMovie) { objc.Call[objc.Void](f_, objc.Sel("removeFragmentedMovie:"), movie) } +// Adds a fragmented movie to the array of movies being minded. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avfragmentedmovieminder/1386171-addfragmentedmovie?language=objc +func (f_ FragmentedMovieMinder) AddFragmentedMovie(movie IFragmentedMovie) { + objc.Call[objc.Void](f_, objc.Sel("addFragmentedMovie:"), movie) +} + // An array containing the fragmented movie objects being minded. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avfragmentedmovieminder/1388707-movies?language=objc diff --git a/macos/avfoundation/frame_rate_range.gen.go b/macos/avfoundation/frame_rate_range.gen.go index d3d55fa7..8129f3c7 100644 --- a/macos/avfoundation/frame_rate_range.gen.go +++ b/macos/avfoundation/frame_rate_range.gen.go @@ -19,9 +19,9 @@ type _FrameRateRangeClass struct { // An interface definition for the [FrameRateRange] class. type IFrameRateRange interface { objc.IObject - MinFrameRate() float64 - MaxFrameRate() float64 MaxFrameDuration() coremedia.Time + MaxFrameRate() float64 + MinFrameRate() float64 MinFrameDuration() coremedia.Time } @@ -58,11 +58,11 @@ func (f_ FrameRateRange) Init() FrameRateRange { return rv } -// The minimum frame rate supported by the range. [Full Topic] +// The maximum frame duration supported by the range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avframeraterange/1389132-minframerate?language=objc -func (f_ FrameRateRange) MinFrameRate() float64 { - rv := objc.Call[float64](f_, objc.Sel("minFrameRate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avframeraterange/1386786-maxframeduration?language=objc +func (f_ FrameRateRange) MaxFrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](f_, objc.Sel("maxFrameDuration")) return rv } @@ -74,11 +74,11 @@ func (f_ FrameRateRange) MaxFrameRate() float64 { return rv } -// The maximum frame duration supported by the range. [Full Topic] +// The minimum frame rate supported by the range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avframeraterange/1386786-maxframeduration?language=objc -func (f_ FrameRateRange) MaxFrameDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](f_, objc.Sel("maxFrameDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avframeraterange/1389132-minframerate?language=objc +func (f_ FrameRateRange) MinFrameRate() float64 { + rv := objc.Call[float64](f_, objc.Sel("minFrameRate")) return rv } diff --git a/macos/avfoundation/media_selection.gen.go b/macos/avfoundation/media_selection.gen.go index 92b16918..3bb1de07 100644 --- a/macos/avfoundation/media_selection.gen.go +++ b/macos/avfoundation/media_selection.gen.go @@ -18,8 +18,8 @@ type _MediaSelectionClass struct { // An interface definition for the [MediaSelection] class. type IMediaSelection interface { objc.IObject - SelectedMediaOptionInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) MediaSelectionOption MediaSelectionCriteriaCanBeAppliedAutomaticallyToMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) bool + SelectedMediaOptionInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) MediaSelectionOption Asset() Asset } @@ -56,14 +56,6 @@ func (m_ MediaSelection) Init() MediaSelection { return rv } -// Returns the media selection option that’s currently selected in the specified group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselection/1389197-selectedmediaoptioninmediaselect?language=objc -func (m_ MediaSelection) SelectedMediaOptionInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) MediaSelectionOption { - rv := objc.Call[MediaSelectionOption](m_, objc.Sel("selectedMediaOptionInMediaSelectionGroup:"), mediaSelectionGroup) - return rv -} - // Indicates whether the specified media selection group is subject to automatic media selection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselection/1386716-mediaselectioncriteriacanbeappli?language=objc @@ -72,6 +64,14 @@ func (m_ MediaSelection) MediaSelectionCriteriaCanBeAppliedAutomaticallyToMediaS return rv } +// Returns the media selection option that’s currently selected in the specified group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselection/1389197-selectedmediaoptioninmediaselect?language=objc +func (m_ MediaSelection) SelectedMediaOptionInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) MediaSelectionOption { + rv := objc.Call[MediaSelectionOption](m_, objc.Sel("selectedMediaOptionInMediaSelectionGroup:"), mediaSelectionGroup) + return rv +} + // The asset associated with the media selection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselection/1390874-asset?language=objc diff --git a/macos/avfoundation/media_selection_group.gen.go b/macos/avfoundation/media_selection_group.gen.go index d92c353c..260dcd4a 100644 --- a/macos/avfoundation/media_selection_group.gen.go +++ b/macos/avfoundation/media_selection_group.gen.go @@ -20,9 +20,9 @@ type _MediaSelectionGroupClass struct { type IMediaSelectionGroup interface { objc.IObject MediaSelectionOptionWithPropertyList(plist objc.IObject) MediaSelectionOption - DefaultOption() MediaSelectionOption AllowsEmptySelection() bool Options() []MediaSelectionOption + DefaultOption() MediaSelectionOption } // An object that represents a collection of mutually exclusive options for the presentation of media within an asset. [Full Topic] @@ -58,59 +58,6 @@ func (m_ MediaSelectionGroup) Init() MediaSelectionGroup { return rv } -// Returns the media selection options that match the given property list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1389968-mediaselectionoptionwithproperty?language=objc -func (m_ MediaSelectionGroup) MediaSelectionOptionWithPropertyList(plist objc.IObject) MediaSelectionOption { - rv := objc.Call[MediaSelectionOption](m_, objc.Sel("mediaSelectionOptionWithPropertyList:"), plist) - return rv -} - -// Returns an array containing the media selection options from a given array that match given media characteristics. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1388258-mediaselectionoptionsfromarray?language=objc -func (mc _MediaSelectionGroupClass) MediaSelectionOptionsFromArrayWithMediaCharacteristics(mediaSelectionOptions []IMediaSelectionOption, mediaCharacteristics []MediaCharacteristic) []MediaSelectionOption { - rv := objc.Call[[]MediaSelectionOption](mc, objc.Sel("mediaSelectionOptionsFromArray:withMediaCharacteristics:"), mediaSelectionOptions, mediaCharacteristics) - return rv -} - -// Returns an array containing the media selection options from a given array that match given media characteristics. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1388258-mediaselectionoptionsfromarray?language=objc -func MediaSelectionGroup_MediaSelectionOptionsFromArrayWithMediaCharacteristics(mediaSelectionOptions []IMediaSelectionOption, mediaCharacteristics []MediaCharacteristic) []MediaSelectionOption { - return MediaSelectionGroupClass.MediaSelectionOptionsFromArrayWithMediaCharacteristics(mediaSelectionOptions, mediaCharacteristics) -} - -// Returns an array containing the media selection options from a given array that match the specified locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1387494-mediaselectionoptionsfromarray?language=objc -func (mc _MediaSelectionGroupClass) MediaSelectionOptionsFromArrayWithLocale(mediaSelectionOptions []IMediaSelectionOption, locale foundation.ILocale) []MediaSelectionOption { - rv := objc.Call[[]MediaSelectionOption](mc, objc.Sel("mediaSelectionOptionsFromArray:withLocale:"), mediaSelectionOptions, locale) - return rv -} - -// Returns an array containing the media selection options from a given array that match the specified locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1387494-mediaselectionoptionsfromarray?language=objc -func MediaSelectionGroup_MediaSelectionOptionsFromArrayWithLocale(mediaSelectionOptions []IMediaSelectionOption, locale foundation.ILocale) []MediaSelectionOption { - return MediaSelectionGroupClass.MediaSelectionOptionsFromArrayWithLocale(mediaSelectionOptions, locale) -} - -// Returns an array containing the media selection options from a given array that do not match given media characteristics. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1387631-mediaselectionoptionsfromarray?language=objc -func (mc _MediaSelectionGroupClass) MediaSelectionOptionsFromArrayWithoutMediaCharacteristics(mediaSelectionOptions []IMediaSelectionOption, mediaCharacteristics []MediaCharacteristic) []MediaSelectionOption { - rv := objc.Call[[]MediaSelectionOption](mc, objc.Sel("mediaSelectionOptionsFromArray:withoutMediaCharacteristics:"), mediaSelectionOptions, mediaCharacteristics) - return rv -} - -// Returns an array containing the media selection options from a given array that do not match given media characteristics. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1387631-mediaselectionoptionsfromarray?language=objc -func MediaSelectionGroup_MediaSelectionOptionsFromArrayWithoutMediaCharacteristics(mediaSelectionOptions []IMediaSelectionOption, mediaCharacteristics []MediaCharacteristic) []MediaSelectionOption { - return MediaSelectionGroupClass.MediaSelectionOptionsFromArrayWithoutMediaCharacteristics(mediaSelectionOptions, mediaCharacteristics) -} - // Returns an array containing the media selection options from a given array that are playable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1387351-playablemediaselectionoptionsfro?language=objc @@ -126,27 +73,27 @@ func MediaSelectionGroup_PlayableMediaSelectionOptionsFromArray(mediaSelectionOp return MediaSelectionGroupClass.PlayableMediaSelectionOptionsFromArray(mediaSelectionOptions) } -// Returns an array of media selection options, filtering them according to whether their locales match one of the specified languages. [Full Topic] +// Returns the media selection options that match the given property list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1387034-mediaselectionoptionsfromarray?language=objc -func (mc _MediaSelectionGroupClass) MediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages(mediaSelectionOptions []IMediaSelectionOption, preferredLanguages []string) []MediaSelectionOption { - rv := objc.Call[[]MediaSelectionOption](mc, objc.Sel("mediaSelectionOptionsFromArray:filteredAndSortedAccordingToPreferredLanguages:"), mediaSelectionOptions, preferredLanguages) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1389968-mediaselectionoptionwithproperty?language=objc +func (m_ MediaSelectionGroup) MediaSelectionOptionWithPropertyList(plist objc.IObject) MediaSelectionOption { + rv := objc.Call[MediaSelectionOption](m_, objc.Sel("mediaSelectionOptionWithPropertyList:"), plist) return rv } -// Returns an array of media selection options, filtering them according to whether their locales match one of the specified languages. [Full Topic] +// Returns an array containing the media selection options from a given array that match the specified locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1387034-mediaselectionoptionsfromarray?language=objc -func MediaSelectionGroup_MediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages(mediaSelectionOptions []IMediaSelectionOption, preferredLanguages []string) []MediaSelectionOption { - return MediaSelectionGroupClass.MediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages(mediaSelectionOptions, preferredLanguages) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1387494-mediaselectionoptionsfromarray?language=objc +func (mc _MediaSelectionGroupClass) MediaSelectionOptionsFromArrayWithLocale(mediaSelectionOptions []IMediaSelectionOption, locale foundation.ILocale) []MediaSelectionOption { + rv := objc.Call[[]MediaSelectionOption](mc, objc.Sel("mediaSelectionOptionsFromArray:withLocale:"), mediaSelectionOptions, locale) + return rv } -// The default option in the group. [Full Topic] +// Returns an array containing the media selection options from a given array that match the specified locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1388440-defaultoption?language=objc -func (m_ MediaSelectionGroup) DefaultOption() MediaSelectionOption { - rv := objc.Call[MediaSelectionOption](m_, objc.Sel("defaultOption")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1387494-mediaselectionoptionsfromarray?language=objc +func MediaSelectionGroup_MediaSelectionOptionsFromArrayWithLocale(mediaSelectionOptions []IMediaSelectionOption, locale foundation.ILocale) []MediaSelectionOption { + return MediaSelectionGroupClass.MediaSelectionOptionsFromArrayWithLocale(mediaSelectionOptions, locale) } // A Boolean value that indicates whether it’s possible to present none of the options in the group when an associated player item is played. [Full Topic] @@ -164,3 +111,11 @@ func (m_ MediaSelectionGroup) Options() []MediaSelectionOption { rv := objc.Call[[]MediaSelectionOption](m_, objc.Sel("options")) return rv } + +// The default option in the group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1388440-defaultoption?language=objc +func (m_ MediaSelectionGroup) DefaultOption() MediaSelectionOption { + rv := objc.Call[MediaSelectionOption](m_, objc.Sel("defaultOption")) + return rv +} diff --git a/macos/avfoundation/media_selection_option.gen.go b/macos/avfoundation/media_selection_option.gen.go index 71447302..2ea6ef16 100644 --- a/macos/avfoundation/media_selection_option.gen.go +++ b/macos/avfoundation/media_selection_option.gen.go @@ -19,19 +19,19 @@ type _MediaSelectionOptionClass struct { // An interface definition for the [MediaSelectionOption] class. type IMediaSelectionOption interface { objc.IObject - MetadataForFormat(format string) []MetadataItem DisplayNameWithLocale(locale foundation.ILocale) string + AssociatedMediaSelectionOptionInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) MediaSelectionOption HasMediaCharacteristic(mediaCharacteristic MediaCharacteristic) bool PropertyList() objc.Object - AssociatedMediaSelectionOptionInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) MediaSelectionOption + MetadataForFormat(format string) []MetadataItem + ExtendedLanguageTag() string MediaSubTypes() []foundation.Number - CommonMetadata() []MetadataItem + MediaType() MediaType Locale() foundation.Locale + AvailableMetadataFormats() []string DisplayName() string IsPlayable() bool - ExtendedLanguageTag() string - AvailableMetadataFormats() []string - MediaType() MediaType + CommonMetadata() []MetadataItem } // An object that represents a specific option for the presentation of media within a group of options. [Full Topic] @@ -67,14 +67,6 @@ func (m_ MediaSelectionOption) Init() MediaSelectionOption { return rv } -// Returns an array of metadata items—one for each metadata item in the container of a given format. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1386666-metadataforformat?language=objc -func (m_ MediaSelectionOption) MetadataForFormat(format string) []MetadataItem { - rv := objc.Call[[]MetadataItem](m_, objc.Sel("metadataForFormat:"), format) - return rv -} - // Returns a string suitable for display using the specified locale. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1388021-displaynamewithlocale?language=objc @@ -83,6 +75,14 @@ func (m_ MediaSelectionOption) DisplayNameWithLocale(locale foundation.ILocale) return rv } +// Returns a media selection option associated with the receiver in a given group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1388232-associatedmediaselectionoptionin?language=objc +func (m_ MediaSelectionOption) AssociatedMediaSelectionOptionInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) MediaSelectionOption { + rv := objc.Call[MediaSelectionOption](m_, objc.Sel("associatedMediaSelectionOptionInMediaSelectionGroup:"), mediaSelectionGroup) + return rv +} + // Returns a Boolean value that indicates whether the receiver has media with the given media characteristic. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1388531-hasmediacharacteristic?language=objc @@ -99,11 +99,19 @@ func (m_ MediaSelectionOption) PropertyList() objc.Object { return rv } -// Returns a media selection option associated with the receiver in a given group. [Full Topic] +// Returns an array of metadata items—one for each metadata item in the container of a given format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1388232-associatedmediaselectionoptionin?language=objc -func (m_ MediaSelectionOption) AssociatedMediaSelectionOptionInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) MediaSelectionOption { - rv := objc.Call[MediaSelectionOption](m_, objc.Sel("associatedMediaSelectionOptionInMediaSelectionGroup:"), mediaSelectionGroup) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1386666-metadataforformat?language=objc +func (m_ MediaSelectionOption) MetadataForFormat(format string) []MetadataItem { + rv := objc.Call[[]MetadataItem](m_, objc.Sel("metadataForFormat:"), format) + return rv +} + +// The IETF BCP 47 language tag associated with the option [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1387619-extendedlanguagetag?language=objc +func (m_ MediaSelectionOption) ExtendedLanguageTag() string { + rv := objc.Call[string](m_, objc.Sel("extendedLanguageTag")) return rv } @@ -115,11 +123,11 @@ func (m_ MediaSelectionOption) MediaSubTypes() []foundation.Number { return rv } -// An array of metadata items for each common metadata key for which a value is available. [Full Topic] +// The media type of the media data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1387859-commonmetadata?language=objc -func (m_ MediaSelectionOption) CommonMetadata() []MetadataItem { - rv := objc.Call[[]MetadataItem](m_, objc.Sel("commonMetadata")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1386322-mediatype?language=objc +func (m_ MediaSelectionOption) MediaType() MediaType { + rv := objc.Call[MediaType](m_, objc.Sel("mediaType")) return rv } @@ -131,6 +139,14 @@ func (m_ MediaSelectionOption) Locale() foundation.Locale { return rv } +// The metadata formats that contain metadata associated with the option. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1389504-availablemetadataformats?language=objc +func (m_ MediaSelectionOption) AvailableMetadataFormats() []string { + rv := objc.Call[[]string](m_, objc.Sel("availableMetadataFormats")) + return rv +} + // A string suitable for display using the current system locale. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1388485-displayname?language=objc @@ -147,26 +163,10 @@ func (m_ MediaSelectionOption) IsPlayable() bool { return rv } -// The IETF BCP 47 language tag associated with the option [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1387619-extendedlanguagetag?language=objc -func (m_ MediaSelectionOption) ExtendedLanguageTag() string { - rv := objc.Call[string](m_, objc.Sel("extendedLanguageTag")) - return rv -} - -// The metadata formats that contain metadata associated with the option. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1389504-availablemetadataformats?language=objc -func (m_ MediaSelectionOption) AvailableMetadataFormats() []string { - rv := objc.Call[[]string](m_, objc.Sel("availableMetadataFormats")) - return rv -} - -// The media type of the media data. [Full Topic] +// An array of metadata items for each common metadata key for which a value is available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1386322-mediatype?language=objc -func (m_ MediaSelectionOption) MediaType() MediaType { - rv := objc.Call[MediaType](m_, objc.Sel("mediaType")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1387859-commonmetadata?language=objc +func (m_ MediaSelectionOption) CommonMetadata() []MetadataItem { + rv := objc.Call[[]MetadataItem](m_, objc.Sel("commonMetadata")) return rv } diff --git a/macos/avfoundation/metadata_face_object.gen.go b/macos/avfoundation/metadata_face_object.gen.go index 03895a7a..fde52a1e 100644 --- a/macos/avfoundation/metadata_face_object.gen.go +++ b/macos/avfoundation/metadata_face_object.gen.go @@ -19,10 +19,10 @@ type _MetadataFaceObjectClass struct { type IMetadataFaceObject interface { IMetadataObject HasRollAngle() bool + YawAngle() float64 RollAngle() float64 HasYawAngle() bool FaceID() int - YawAngle() float64 } // Face information detected by a metadata capture output. [Full Topic] @@ -66,6 +66,14 @@ func (m_ MetadataFaceObject) HasRollAngle() bool { return rv } +// The yaw angle of the face specified in degrees. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadatafaceobject/1386517-yawangle?language=objc +func (m_ MetadataFaceObject) YawAngle() float64 { + rv := objc.Call[float64](m_, objc.Sel("yawAngle")) + return rv +} + // The roll angle of the face specified in degrees. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadatafaceobject/1389110-rollangle?language=objc @@ -89,11 +97,3 @@ func (m_ MetadataFaceObject) FaceID() int { rv := objc.Call[int](m_, objc.Sel("faceID")) return rv } - -// The yaw angle of the face specified in degrees. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadatafaceobject/1386517-yawangle?language=objc -func (m_ MetadataFaceObject) YawAngle() float64 { - rv := objc.Call[float64](m_, objc.Sel("yawAngle")) - return rv -} diff --git a/macos/avfoundation/metadata_group.gen.go b/macos/avfoundation/metadata_group.gen.go index 82e2bb8c..92f0bc0b 100644 --- a/macos/avfoundation/metadata_group.gen.go +++ b/macos/avfoundation/metadata_group.gen.go @@ -18,9 +18,9 @@ type _MetadataGroupClass struct { // An interface definition for the [MetadataGroup] class. type IMetadataGroup interface { objc.IObject + Items() []MetadataItem ClassifyingLabel() string UniqueID() string - Items() []MetadataItem } // A collection of metadata items associated with a timeline segment. [Full Topic] @@ -56,6 +56,14 @@ func (m_ MetadataGroup) Init() MetadataGroup { return rv } +// The array of metadata items associated with the metadata group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadatagroup/1389935-items?language=objc +func (m_ MetadataGroup) Items() []MetadataItem { + rv := objc.Call[[]MetadataItem](m_, objc.Sel("items")) + return rv +} + // The classifying label associated with the metadata group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadatagroup/1620087-classifyinglabel?language=objc @@ -71,11 +79,3 @@ func (m_ MetadataGroup) UniqueID() string { rv := objc.Call[string](m_, objc.Sel("uniqueID")) return rv } - -// The array of metadata items associated with the metadata group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadatagroup/1389935-items?language=objc -func (m_ MetadataGroup) Items() []MetadataItem { - rv := objc.Call[[]MetadataItem](m_, objc.Sel("items")) - return rv -} diff --git a/macos/avfoundation/metadata_item.gen.go b/macos/avfoundation/metadata_item.gen.go index 9115820f..e7198463 100644 --- a/macos/avfoundation/metadata_item.gen.go +++ b/macos/avfoundation/metadata_item.gen.go @@ -20,24 +20,24 @@ type _MetadataItemClass struct { // An interface definition for the [MetadataItem] class. type IMetadataItem interface { objc.IObject - LoadValuesAsynchronouslyForKeysCompletionHandler(keys []string, handler func()) StatusOfValueForKeyError(key string, outError unsafe.Pointer) KeyValueStatus - StartDate() foundation.Date - CommonKey() MetadataKey - DateValue() foundation.Date + LoadValuesAsynchronouslyForKeysCompletionHandler(keys []string, handler func()) + KeySpace() MetadataKeySpace + ExtendedLanguageTag() string + DataValue() []byte Key() objc.Object - DataType() string + Value() objc.Object StringValue() string + ExtraAttributes() map[MetadataExtraAttributeKey]objc.Object NumberValue() foundation.Number - ExtendedLanguageTag() string + Locale() foundation.Locale + DateValue() foundation.Date Time() coremedia.Time - KeySpace() MetadataKeySpace - DataValue() []byte + DataType() string + StartDate() foundation.Date Duration() coremedia.Time - ExtraAttributes() map[MetadataExtraAttributeKey]objc.Object - Locale() foundation.Locale + CommonKey() MetadataKey Identifier() MetadataIdentifier - Value() objc.Object } // A metadata item for an audiovisual asset or one of its tracks. [Full Topic] @@ -73,6 +73,14 @@ func (m_ MetadataItem) Init() MetadataItem { return rv } +// Reports whether the value for a given key is immediately available without blocking. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1388523-statusofvalueforkey?language=objc +func (m_ MetadataItem) StatusOfValueForKeyError(key string, outError unsafe.Pointer) KeyValueStatus { + rv := objc.Call[KeyValueStatus](m_, objc.Sel("statusOfValueForKey:error:"), key, outError) + return rv +} + // Returns a metadata key space for the specified identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1390663-keyspaceforidentifier?language=objc @@ -88,64 +96,34 @@ func MetadataItem_KeySpaceForIdentifier(identifier MetadataIdentifier) MetadataK return MetadataItemClass.KeySpaceForIdentifier(identifier) } -// Returns metadata items that match a specified key or key space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1386083-metadataitemsfromarray?language=objc -func (mc _MetadataItemClass) MetadataItemsFromArrayWithKeyKeySpace(metadataItems []IMetadataItem, key objc.IObject, keySpace MetadataKeySpace) []MetadataItem { - rv := objc.Call[[]MetadataItem](mc, objc.Sel("metadataItemsFromArray:withKey:keySpace:"), metadataItems, key, keySpace) - return rv -} - -// Returns metadata items that match a specified key or key space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1386083-metadataitemsfromarray?language=objc -func MetadataItem_MetadataItemsFromArrayWithKeyKeySpace(metadataItems []IMetadataItem, key objc.IObject, keySpace MetadataKeySpace) []MetadataItem { - return MetadataItemClass.MetadataItemsFromArrayWithKeyKeySpace(metadataItems, key, keySpace) -} - -// Returns metadata items for the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1385843-metadataitemsfromarray?language=objc -func (mc _MetadataItemClass) MetadataItemsFromArrayFilteredByIdentifier(metadataItems []IMetadataItem, identifier MetadataIdentifier) []MetadataItem { - rv := objc.Call[[]MetadataItem](mc, objc.Sel("metadataItemsFromArray:filteredByIdentifier:"), metadataItems, identifier) - return rv -} - -// Returns metadata items for the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1385843-metadataitemsfromarray?language=objc -func MetadataItem_MetadataItemsFromArrayFilteredByIdentifier(metadataItems []IMetadataItem, identifier MetadataIdentifier) []MetadataItem { - return MetadataItemClass.MetadataItemsFromArrayFilteredByIdentifier(metadataItems, identifier) -} - -// Returns filtered metadata items. [Full Topic] +// Returns a metadata identifier for the specified key and key space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1390238-metadataitemsfromarray?language=objc -func (mc _MetadataItemClass) MetadataItemsFromArrayFilteredByMetadataItemFilter(metadataItems []IMetadataItem, metadataItemFilter IMetadataItemFilter) []MetadataItem { - rv := objc.Call[[]MetadataItem](mc, objc.Sel("metadataItemsFromArray:filteredByMetadataItemFilter:"), metadataItems, metadataItemFilter) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387869-identifierforkey?language=objc +func (mc _MetadataItemClass) IdentifierForKeyKeySpace(key objc.IObject, keySpace MetadataKeySpace) MetadataIdentifier { + rv := objc.Call[MetadataIdentifier](mc, objc.Sel("identifierForKey:keySpace:"), key, keySpace) return rv } -// Returns filtered metadata items. [Full Topic] +// Returns a metadata identifier for the specified key and key space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1390238-metadataitemsfromarray?language=objc -func MetadataItem_MetadataItemsFromArrayFilteredByMetadataItemFilter(metadataItems []IMetadataItem, metadataItemFilter IMetadataItemFilter) []MetadataItem { - return MetadataItemClass.MetadataItemsFromArrayFilteredByMetadataItemFilter(metadataItems, metadataItemFilter) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387869-identifierforkey?language=objc +func MetadataItem_IdentifierForKeyKeySpace(key objc.IObject, keySpace MetadataKeySpace) MetadataIdentifier { + return MetadataItemClass.IdentifierForKeyKeySpace(key, keySpace) } -// Returns metadata items that match a specified locale. [Full Topic] +// Returns a metadata key for the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1389374-metadataitemsfromarray?language=objc -func (mc _MetadataItemClass) MetadataItemsFromArrayWithLocale(metadataItems []IMetadataItem, locale foundation.ILocale) []MetadataItem { - rv := objc.Call[[]MetadataItem](mc, objc.Sel("metadataItemsFromArray:withLocale:"), metadataItems, locale) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1385613-keyforidentifier?language=objc +func (mc _MetadataItemClass) KeyForIdentifier(identifier MetadataIdentifier) objc.Object { + rv := objc.Call[objc.Object](mc, objc.Sel("keyForIdentifier:"), identifier) return rv } -// Returns metadata items that match a specified locale. [Full Topic] +// Returns a metadata key for the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1389374-metadataitemsfromarray?language=objc -func MetadataItem_MetadataItemsFromArrayWithLocale(metadataItems []IMetadataItem, locale foundation.ILocale) []MetadataItem { - return MetadataItemClass.MetadataItemsFromArrayWithLocale(metadataItems, locale) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1385613-keyforidentifier?language=objc +func MetadataItem_KeyForIdentifier(identifier MetadataIdentifier) objc.Object { + return MetadataItemClass.KeyForIdentifier(identifier) } // Tells the object to load the values of any of the specified keys that aren’t already loaded. [Full Topic] @@ -155,29 +133,6 @@ func (m_ MetadataItem) LoadValuesAsynchronouslyForKeysCompletionHandler(keys []s objc.Call[objc.Void](m_, objc.Sel("loadValuesAsynchronouslyForKeys:completionHandler:"), keys, handler) } -// Returns a metadata identifier for the specified key and key space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387869-identifierforkey?language=objc -func (mc _MetadataItemClass) IdentifierForKeyKeySpace(key objc.IObject, keySpace MetadataKeySpace) MetadataIdentifier { - rv := objc.Call[MetadataIdentifier](mc, objc.Sel("identifierForKey:keySpace:"), key, keySpace) - return rv -} - -// Returns a metadata identifier for the specified key and key space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387869-identifierforkey?language=objc -func MetadataItem_IdentifierForKeyKeySpace(key objc.IObject, keySpace MetadataKeySpace) MetadataIdentifier { - return MetadataItemClass.IdentifierForKeyKeySpace(key, keySpace) -} - -// Reports whether the value for a given key is immediately available without blocking. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1388523-statusofvalueforkey?language=objc -func (m_ MetadataItem) StatusOfValueForKeyError(key string, outError unsafe.Pointer) KeyValueStatus { - rv := objc.Call[KeyValueStatus](m_, objc.Sel("statusOfValueForKey:error:"), key, outError) - return rv -} - // Creates a metadata item whose value loads on an on-demand basis only. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387745-metadataitemwithpropertiesofmeta?language=objc @@ -193,57 +148,42 @@ func MetadataItem_MetadataItemWithPropertiesOfMetadataItemValueLoadingHandler(me return MetadataItemClass.MetadataItemWithPropertiesOfMetadataItemValueLoadingHandler(metadataItem, handler) } -// Returns a metadata key for the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1385613-keyforidentifier?language=objc -func (mc _MetadataItemClass) KeyForIdentifier(identifier MetadataIdentifier) objc.Object { - rv := objc.Call[objc.Object](mc, objc.Sel("keyForIdentifier:"), identifier) - return rv -} - -// Returns a metadata key for the specified identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1385613-keyforidentifier?language=objc -func MetadataItem_KeyForIdentifier(identifier MetadataIdentifier) objc.Object { - return MetadataItemClass.KeyForIdentifier(identifier) -} - -// Returns metadata items whose locales match one of the specified language identifiers. [Full Topic] +// Returns metadata items that match a specified locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387901-metadataitemsfromarray?language=objc -func (mc _MetadataItemClass) MetadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages(metadataItems []IMetadataItem, preferredLanguages []string) []MetadataItem { - rv := objc.Call[[]MetadataItem](mc, objc.Sel("metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:"), metadataItems, preferredLanguages) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1389374-metadataitemsfromarray?language=objc +func (mc _MetadataItemClass) MetadataItemsFromArrayWithLocale(metadataItems []IMetadataItem, locale foundation.ILocale) []MetadataItem { + rv := objc.Call[[]MetadataItem](mc, objc.Sel("metadataItemsFromArray:withLocale:"), metadataItems, locale) return rv } -// Returns metadata items whose locales match one of the specified language identifiers. [Full Topic] +// Returns metadata items that match a specified locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387901-metadataitemsfromarray?language=objc -func MetadataItem_MetadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages(metadataItems []IMetadataItem, preferredLanguages []string) []MetadataItem { - return MetadataItemClass.MetadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages(metadataItems, preferredLanguages) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1389374-metadataitemsfromarray?language=objc +func MetadataItem_MetadataItemsFromArrayWithLocale(metadataItems []IMetadataItem, locale foundation.ILocale) []MetadataItem { + return MetadataItemClass.MetadataItemsFromArrayWithLocale(metadataItems, locale) } -// The start date of the timed metadata. [Full Topic] +// The key space for the metadata item’s key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1388535-startdate?language=objc -func (m_ MetadataItem) StartDate() foundation.Date { - rv := objc.Call[foundation.Date](m_, objc.Sel("startDate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1385757-keyspace?language=objc +func (m_ MetadataItem) KeySpace() MetadataKeySpace { + rv := objc.Call[MetadataKeySpace](m_, objc.Sel("keySpace")) return rv } -// The common key of the metadata item. [Full Topic] +// The IETF BCP 47 (RFC 4646) language identifier of the metadata item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1389864-commonkey?language=objc -func (m_ MetadataItem) CommonKey() MetadataKey { - rv := objc.Call[MetadataKey](m_, objc.Sel("commonKey")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387068-extendedlanguagetag?language=objc +func (m_ MetadataItem) ExtendedLanguageTag() string { + rv := objc.Call[string](m_, objc.Sel("extendedLanguageTag")) return rv } -// The value of the metadata item as a date. [Full Topic] +// The value of the metadata item as a data value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1385563-datevalue?language=objc -func (m_ MetadataItem) DateValue() foundation.Date { - rv := objc.Call[foundation.Date](m_, objc.Sel("dateValue")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387641-datavalue?language=objc +func (m_ MetadataItem) DataValue() []byte { + rv := objc.Call[[]byte](m_, objc.Sel("dataValue")) return rv } @@ -255,11 +195,11 @@ func (m_ MetadataItem) Key() objc.Object { return rv } -// The data type of the metadata item’s value. [Full Topic] +// The value of the metadata item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1386856-datatype?language=objc -func (m_ MetadataItem) DataType() string { - rv := objc.Call[string](m_, objc.Sel("dataType")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1390537-value?language=objc +func (m_ MetadataItem) Value() objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("value")) return rv } @@ -271,6 +211,14 @@ func (m_ MetadataItem) StringValue() string { return rv } +// A dictionary of additional attributes for a metadata item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1389570-extraattributes?language=objc +func (m_ MetadataItem) ExtraAttributes() map[MetadataExtraAttributeKey]objc.Object { + rv := objc.Call[map[MetadataExtraAttributeKey]objc.Object](m_, objc.Sel("extraAttributes")) + return rv +} + // The value of the metadata item as a number. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1390681-numbervalue?language=objc @@ -279,11 +227,19 @@ func (m_ MetadataItem) NumberValue() foundation.Number { return rv } -// The IETF BCP 47 (RFC 4646) language identifier of the metadata item. [Full Topic] +// The locale of the metadata item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387068-extendedlanguagetag?language=objc -func (m_ MetadataItem) ExtendedLanguageTag() string { - rv := objc.Call[string](m_, objc.Sel("extendedLanguageTag")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387114-locale?language=objc +func (m_ MetadataItem) Locale() foundation.Locale { + rv := objc.Call[foundation.Locale](m_, objc.Sel("locale")) + return rv +} + +// The value of the metadata item as a date. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1385563-datevalue?language=objc +func (m_ MetadataItem) DateValue() foundation.Date { + rv := objc.Call[foundation.Date](m_, objc.Sel("dateValue")) return rv } @@ -295,19 +251,19 @@ func (m_ MetadataItem) Time() coremedia.Time { return rv } -// The key space for the metadata item’s key. [Full Topic] +// The data type of the metadata item’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1385757-keyspace?language=objc -func (m_ MetadataItem) KeySpace() MetadataKeySpace { - rv := objc.Call[MetadataKeySpace](m_, objc.Sel("keySpace")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1386856-datatype?language=objc +func (m_ MetadataItem) DataType() string { + rv := objc.Call[string](m_, objc.Sel("dataType")) return rv } -// The value of the metadata item as a data value. [Full Topic] +// The start date of the timed metadata. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387641-datavalue?language=objc -func (m_ MetadataItem) DataValue() []byte { - rv := objc.Call[[]byte](m_, objc.Sel("dataValue")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1388535-startdate?language=objc +func (m_ MetadataItem) StartDate() foundation.Date { + rv := objc.Call[foundation.Date](m_, objc.Sel("startDate")) return rv } @@ -319,19 +275,11 @@ func (m_ MetadataItem) Duration() coremedia.Time { return rv } -// A dictionary of additional attributes for a metadata item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1389570-extraattributes?language=objc -func (m_ MetadataItem) ExtraAttributes() map[MetadataExtraAttributeKey]objc.Object { - rv := objc.Call[map[MetadataExtraAttributeKey]objc.Object](m_, objc.Sel("extraAttributes")) - return rv -} - -// The locale of the metadata item. [Full Topic] +// The common key of the metadata item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1387114-locale?language=objc -func (m_ MetadataItem) Locale() foundation.Locale { - rv := objc.Call[foundation.Locale](m_, objc.Sel("locale")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1389864-commonkey?language=objc +func (m_ MetadataItem) CommonKey() MetadataKey { + rv := objc.Call[MetadataKey](m_, objc.Sel("commonKey")) return rv } @@ -342,11 +290,3 @@ func (m_ MetadataItem) Identifier() MetadataIdentifier { rv := objc.Call[MetadataIdentifier](m_, objc.Sel("identifier")) return rv } - -// The value of the metadata item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitem/1390537-value?language=objc -func (m_ MetadataItem) Value() objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("value")) - return rv -} diff --git a/macos/avfoundation/metadata_item_value_request.gen.go b/macos/avfoundation/metadata_item_value_request.gen.go index 4c1f9415..5a0fe3e5 100644 --- a/macos/avfoundation/metadata_item_value_request.gen.go +++ b/macos/avfoundation/metadata_item_value_request.gen.go @@ -19,8 +19,8 @@ type _MetadataItemValueRequestClass struct { // An interface definition for the [MetadataItemValueRequest] class. type IMetadataItemValueRequest interface { objc.IObject - RespondWithError(error foundation.IError) RespondWithValue(value objc.IObject) + RespondWithError(error foundation.IError) MetadataItem() MetadataItem } @@ -57,13 +57,6 @@ func (m_ MetadataItemValueRequest) Init() MetadataItemValueRequest { return rv } -// Returns an error when the system fails to load the value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitemvaluerequest/1390783-respondwitherror?language=objc -func (m_ MetadataItemValueRequest) RespondWithError(error foundation.IError) { - objc.Call[objc.Void](m_, objc.Sel("respondWithError:"), error) -} - // Returns the metadata item’s value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitemvaluerequest/1386820-respondwithvalue?language=objc @@ -71,6 +64,13 @@ func (m_ MetadataItemValueRequest) RespondWithValue(value objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("respondWithValue:"), value) } +// Returns an error when the system fails to load the value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitemvaluerequest/1390783-respondwitherror?language=objc +func (m_ MetadataItemValueRequest) RespondWithError(error foundation.IError) { + objc.Call[objc.Void](m_, objc.Sel("respondWithError:"), error) +} + // The metadata item to request a value for. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitemvaluerequest/1388069-metadataitem?language=objc diff --git a/macos/avfoundation/metadata_machine_readable_code_object.gen.go b/macos/avfoundation/metadata_machine_readable_code_object.gen.go index 48c45ca6..418e0a85 100644 --- a/macos/avfoundation/metadata_machine_readable_code_object.gen.go +++ b/macos/avfoundation/metadata_machine_readable_code_object.gen.go @@ -20,9 +20,9 @@ type _MetadataMachineReadableCodeObjectClass struct { // An interface definition for the [MetadataMachineReadableCodeObject] class. type IMetadataMachineReadableCodeObject interface { IMetadataObject - Descriptor() coreimage.BarcodeDescriptor Corners() []foundation.Dictionary StringValue() string + Descriptor() coreimage.BarcodeDescriptor } // Barcode information detected by a metadata capture output. [Full Topic] @@ -58,14 +58,6 @@ func (m_ MetadataMachineReadableCodeObject) Init() MetadataMachineReadableCodeOb return rv } -// A barcode description for use in Core Image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadatamachinereadablecodeobject/2875944-descriptor?language=objc -func (m_ MetadataMachineReadableCodeObject) Descriptor() coreimage.BarcodeDescriptor { - rv := objc.Call[coreimage.BarcodeDescriptor](m_, objc.Sel("descriptor")) - return rv -} - // The points defining the (x, y) locations of the corners. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadatamachinereadablecodeobject/1618815-corners?language=objc @@ -81,3 +73,11 @@ func (m_ MetadataMachineReadableCodeObject) StringValue() string { rv := objc.Call[string](m_, objc.Sel("stringValue")) return rv } + +// A barcode description for use in Core Image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadatamachinereadablecodeobject/2875944-descriptor?language=objc +func (m_ MetadataMachineReadableCodeObject) Descriptor() coreimage.BarcodeDescriptor { + rv := objc.Call[coreimage.BarcodeDescriptor](m_, objc.Sel("descriptor")) + return rv +} diff --git a/macos/avfoundation/metadata_object.gen.go b/macos/avfoundation/metadata_object.gen.go index 88b429be..9696cf05 100644 --- a/macos/avfoundation/metadata_object.gen.go +++ b/macos/avfoundation/metadata_object.gen.go @@ -22,8 +22,8 @@ type IMetadataObject interface { objc.IObject Bounds() coregraphics.Rect Time() coremedia.Time - Duration() coremedia.Time Type() MetadataObjectType + Duration() coremedia.Time } // The abstract superclass for objects provided by a metadata capture output. [Full Topic] @@ -75,14 +75,6 @@ func (m_ MetadataObject) Time() coremedia.Time { return rv } -// The duration of the media associated with this metadata object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataobject/1386827-duration?language=objc -func (m_ MetadataObject) Duration() coremedia.Time { - rv := objc.Call[coremedia.Time](m_, objc.Sel("duration")) - return rv -} - // The type of metadata that this object provides. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataobject/1387841-type?language=objc @@ -90,3 +82,11 @@ func (m_ MetadataObject) Type() MetadataObjectType { rv := objc.Call[MetadataObjectType](m_, objc.Sel("type")) return rv } + +// The duration of the media associated with this metadata object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataobject/1386827-duration?language=objc +func (m_ MetadataObject) Duration() coremedia.Time { + rv := objc.Call[coremedia.Time](m_, objc.Sel("duration")) + return rv +} diff --git a/macos/avfoundation/movie.gen.go b/macos/avfoundation/movie.gen.go index d566a232..9d2acfa3 100644 --- a/macos/avfoundation/movie.gen.go +++ b/macos/avfoundation/movie.gen.go @@ -19,14 +19,14 @@ type _MovieClass struct { // An interface definition for the [Movie] class. type IMovie interface { IAsset - MovieHeaderWithFileTypeError(fileType FileType, outError unsafe.Pointer) []byte - IsCompatibleWithFileType(fileType FileType) bool WriteMovieHeaderToURLFileTypeOptionsError(URL foundation.IURL, fileType FileType, options MovieWritingOptions, outError unsafe.Pointer) bool + IsCompatibleWithFileType(fileType FileType) bool + MovieHeaderWithFileTypeError(fileType FileType, outError unsafe.Pointer) []byte DefaultMediaDataStorage() MediaDataStorage - URL() foundation.URL ContainsMovieFragments() bool - CanContainMovieFragments() bool Data() []byte + URL() foundation.URL + CanContainMovieFragments() bool } // An object that represents an audiovisual container that conforms to the QuickTime movie file format or a related format like MPEG-4. [Full Topic] @@ -42,30 +42,6 @@ func MovieFrom(ptr unsafe.Pointer) Movie { } } -func (mc _MovieClass) MovieWithDataOptions(data []byte, options map[string]objc.IObject) Movie { - rv := objc.Call[Movie](mc, objc.Sel("movieWithData:options:"), data, options) - return rv -} - -// Returns a new movie object from a movie file’s data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458261-moviewithdata?language=objc -func Movie_MovieWithDataOptions(data []byte, options map[string]objc.IObject) Movie { - return MovieClass.MovieWithDataOptions(data, options) -} - -func (mc _MovieClass) MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) Movie { - rv := objc.Call[Movie](mc, objc.Sel("movieWithURL:options:"), URL, options) - return rv -} - -// Returns a new movie object from a movie header stored in a QuickTime movie file of ISO base media file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458223-moviewithurl?language=objc -func Movie_MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) Movie { - return MovieClass.MovieWithURLOptions(URL, options) -} - func (m_ Movie) InitWithDataOptions(data []byte, options map[string]objc.IObject) Movie { rv := objc.Call[Movie](m_, objc.Sel("initWithData:options:"), data, options) return rv @@ -80,6 +56,18 @@ func NewMovieWithDataOptions(data []byte, options map[string]objc.IObject) Movie return instance } +func (mc _MovieClass) MovieWithDataOptions(data []byte, options map[string]objc.IObject) Movie { + rv := objc.Call[Movie](mc, objc.Sel("movieWithData:options:"), data, options) + return rv +} + +// Returns a new movie object from a movie file’s data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458261-moviewithdata?language=objc +func Movie_MovieWithDataOptions(data []byte, options map[string]objc.IObject) Movie { + return MovieClass.MovieWithDataOptions(data, options) +} + func (m_ Movie) InitWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) Movie { rv := objc.Call[Movie](m_, objc.Sel("initWithURL:options:"), URL, options) return rv @@ -94,6 +82,18 @@ func NewMovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject return instance } +func (mc _MovieClass) MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) Movie { + rv := objc.Call[Movie](mc, objc.Sel("movieWithURL:options:"), URL, options) + return rv +} + +// Returns a new movie object from a movie header stored in a QuickTime movie file of ISO base media file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458223-moviewithurl?language=objc +func Movie_MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) Movie { + return MovieClass.MovieWithURLOptions(URL, options) +} + func (mc _MovieClass) Alloc() Movie { rv := objc.Call[Movie](mc, objc.Sel("alloc")) return rv @@ -126,14 +126,6 @@ func Movie_AssetWithURL(URL foundation.IURL) Movie { return MovieClass.AssetWithURL(URL) } -// Creates a header for a movie for the specified file type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1386686-movieheaderwithfiletype?language=objc -func (m_ Movie) MovieHeaderWithFileTypeError(fileType FileType, outError unsafe.Pointer) []byte { - rv := objc.Call[[]byte](m_, objc.Sel("movieHeaderWithFileType:error:"), fileType, outError) - return rv -} - // Returns the file types that a movie supports. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1388690-movietypes?language=objc @@ -149,6 +141,14 @@ func Movie_MovieTypes() []FileType { return MovieClass.MovieTypes() } +// Writes the movie header to the specified URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1386682-writemovieheadertourl?language=objc +func (m_ Movie) WriteMovieHeaderToURLFileTypeOptionsError(URL foundation.IURL, fileType FileType, options MovieWritingOptions, outError unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("writeMovieHeaderToURL:fileType:options:error:"), URL, fileType, options, outError) + return rv +} + // Returns a Boolean value that indicates whether the system can create a movie header of the specified type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1385982-iscompatiblewithfiletype?language=objc @@ -157,11 +157,11 @@ func (m_ Movie) IsCompatibleWithFileType(fileType FileType) bool { return rv } -// Writes the movie header to the specified URL. [Full Topic] +// Creates a header for a movie for the specified file type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1386682-writemovieheadertourl?language=objc -func (m_ Movie) WriteMovieHeaderToURLFileTypeOptionsError(URL foundation.IURL, fileType FileType, options MovieWritingOptions, outError unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("writeMovieHeaderToURL:fileType:options:error:"), URL, fileType, options, outError) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1386686-movieheaderwithfiletype?language=objc +func (m_ Movie) MovieHeaderWithFileTypeError(fileType FileType, outError unsafe.Pointer) []byte { + rv := objc.Call[[]byte](m_, objc.Sel("movieHeaderWithFileType:error:"), fileType, outError) return rv } @@ -173,14 +173,6 @@ func (m_ Movie) DefaultMediaDataStorage() MediaDataStorage { return rv } -// A URL to a QuickTime or ISO base media file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1386990-url?language=objc -func (m_ Movie) URL() foundation.URL { - rv := objc.Call[foundation.URL](m_, objc.Sel("URL")) - return rv -} - // A Boolean value that indicates whether at least one movie fragment extends the movie file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1388597-containsmoviefragments?language=objc @@ -189,14 +181,6 @@ func (m_ Movie) ContainsMovieFragments() bool { return rv } -// A Boolean value that indicates whether fragments can extend the movie file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1387333-cancontainmoviefragments?language=objc -func (m_ Movie) CanContainMovieFragments() bool { - rv := objc.Call[bool](m_, objc.Sel("canContainMovieFragments")) - return rv -} - // A data object that contains the movie file’s data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1388017-data?language=objc @@ -204,3 +188,19 @@ func (m_ Movie) Data() []byte { rv := objc.Call[[]byte](m_, objc.Sel("data")) return rv } + +// A URL to a QuickTime or ISO base media file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1386990-url?language=objc +func (m_ Movie) URL() foundation.URL { + rv := objc.Call[foundation.URL](m_, objc.Sel("URL")) + return rv +} + +// A Boolean value that indicates whether fragments can extend the movie file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1387333-cancontainmoviefragments?language=objc +func (m_ Movie) CanContainMovieFragments() bool { + rv := objc.Call[bool](m_, objc.Sel("canContainMovieFragments")) + return rv +} diff --git a/macos/avfoundation/movie_track.gen.go b/macos/avfoundation/movie_track.gen.go index d5eb7c89..52db1a12 100644 --- a/macos/avfoundation/movie_track.gen.go +++ b/macos/avfoundation/movie_track.gen.go @@ -20,8 +20,8 @@ type _MovieTrackClass struct { type IMovieTrack interface { IAssetTrack MediaPresentationTimeRange() coremedia.TimeRange - MediaDataStorage() MediaDataStorage AlternateGroupID() int + MediaDataStorage() MediaDataStorage MediaDecodeTimeRange() coremedia.TimeRange } @@ -66,14 +66,6 @@ func (m_ MovieTrack) MediaPresentationTimeRange() coremedia.TimeRange { return rv } -// The storage container for media data added to a track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovietrack/1386868-mediadatastorage?language=objc -func (m_ MovieTrack) MediaDataStorage() MediaDataStorage { - rv := objc.Call[MediaDataStorage](m_, objc.Sel("mediaDataStorage")) - return rv -} - // A value that identifies the track as a member of a particular alternate group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovietrack/1387020-alternategroupid?language=objc @@ -82,6 +74,14 @@ func (m_ MovieTrack) AlternateGroupID() int { return rv } +// The storage container for media data added to a track. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovietrack/1386868-mediadatastorage?language=objc +func (m_ MovieTrack) MediaDataStorage() MediaDataStorage { + rv := objc.Call[MediaDataStorage](m_, objc.Sel("mediaDataStorage")) + return rv +} + // A range of decode times for the track’s media. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovietrack/1388187-mediadecodetimerange?language=objc diff --git a/macos/avfoundation/mutable_asset_download_storage_management_policy.gen.go b/macos/avfoundation/mutable_asset_download_storage_management_policy.gen.go index e243335d..0bb122c5 100644 --- a/macos/avfoundation/mutable_asset_download_storage_management_policy.gen.go +++ b/macos/avfoundation/mutable_asset_download_storage_management_policy.gen.go @@ -19,8 +19,8 @@ type _MutableAssetDownloadStorageManagementPolicyClass struct { // An interface definition for the [MutableAssetDownloadStorageManagementPolicy] class. type IMutableAssetDownloadStorageManagementPolicy interface { IAssetDownloadStorageManagementPolicy - SetExpirationDate(value foundation.IDate) SetPriority(value AssetDownloadedAssetEvictionPriority) + SetExpirationDate(value foundation.IDate) } // A mutable object that you use to create a new storage management policy. [Full Topic] @@ -56,16 +56,16 @@ func (m_ MutableAssetDownloadStorageManagementPolicy) Init() MutableAssetDownloa return rv } -// The expiration date for an asset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableassetdownloadstoragemanagementpolicy/2865564-expirationdate?language=objc -func (m_ MutableAssetDownloadStorageManagementPolicy) SetExpirationDate(value foundation.IDate) { - objc.Call[objc.Void](m_, objc.Sel("setExpirationDate:"), value) -} - // The eviction priority for a downloaded asset. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableassetdownloadstoragemanagementpolicy/2865558-priority?language=objc func (m_ MutableAssetDownloadStorageManagementPolicy) SetPriority(value AssetDownloadedAssetEvictionPriority) { objc.Call[objc.Void](m_, objc.Sel("setPriority:"), value) } + +// The expiration date for an asset. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableassetdownloadstoragemanagementpolicy/2865564-expirationdate?language=objc +func (m_ MutableAssetDownloadStorageManagementPolicy) SetExpirationDate(value foundation.IDate) { + objc.Call[objc.Void](m_, objc.Sel("setExpirationDate:"), value) +} diff --git a/macos/avfoundation/mutable_audio_mix_input_parameters.gen.go b/macos/avfoundation/mutable_audio_mix_input_parameters.gen.go index 11bfb014..319b46cc 100644 --- a/macos/avfoundation/mutable_audio_mix_input_parameters.gen.go +++ b/macos/avfoundation/mutable_audio_mix_input_parameters.gen.go @@ -19,11 +19,11 @@ type _MutableAudioMixInputParametersClass struct { // An interface definition for the [MutableAudioMixInputParameters] class. type IMutableAudioMixInputParameters interface { IAudioMixInputParameters - SetVolumeAtTime(volume float32, time coremedia.Time) SetVolumeRampFromStartVolumeToEndVolumeTimeRange(startVolume float32, endVolume float32, timeRange coremedia.TimeRange) + SetVolumeAtTime(volume float32, time coremedia.Time) SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) - SetAudioTapProcessor(value objc.IObject) SetTrackID(value objc.IObject) + SetAudioTapProcessor(value objc.IObject) } // The parameters you use when adding an audio track to a mix. [Full Topic] @@ -39,18 +39,6 @@ func MutableAudioMixInputParametersFrom(ptr unsafe.Pointer) MutableAudioMixInput } } -func (mc _MutableAudioMixInputParametersClass) AudioMixInputParametersWithTrack(track IAssetTrack) MutableAudioMixInputParameters { - rv := objc.Call[MutableAudioMixInputParameters](mc, objc.Sel("audioMixInputParametersWithTrack:"), track) - return rv -} - -// Creates a mutable input parameters object for a given track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1386858-audiomixinputparameterswithtrack?language=objc -func MutableAudioMixInputParameters_AudioMixInputParametersWithTrack(track IAssetTrack) MutableAudioMixInputParameters { - return MutableAudioMixInputParametersClass.AudioMixInputParametersWithTrack(track) -} - func (mc _MutableAudioMixInputParametersClass) AudioMixInputParameters() MutableAudioMixInputParameters { rv := objc.Call[MutableAudioMixInputParameters](mc, objc.Sel("audioMixInputParameters")) return rv @@ -63,6 +51,18 @@ func MutableAudioMixInputParameters_AudioMixInputParameters() MutableAudioMixInp return MutableAudioMixInputParametersClass.AudioMixInputParameters() } +func (mc _MutableAudioMixInputParametersClass) AudioMixInputParametersWithTrack(track IAssetTrack) MutableAudioMixInputParameters { + rv := objc.Call[MutableAudioMixInputParameters](mc, objc.Sel("audioMixInputParametersWithTrack:"), track) + return rv +} + +// Creates a mutable input parameters object for a given track. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1386858-audiomixinputparameterswithtrack?language=objc +func MutableAudioMixInputParameters_AudioMixInputParametersWithTrack(track IAssetTrack) MutableAudioMixInputParameters { + return MutableAudioMixInputParametersClass.AudioMixInputParametersWithTrack(track) +} + func (mc _MutableAudioMixInputParametersClass) Alloc() MutableAudioMixInputParameters { rv := objc.Call[MutableAudioMixInputParameters](mc, objc.Sel("alloc")) return rv @@ -83,13 +83,6 @@ func (m_ MutableAudioMixInputParameters) Init() MutableAudioMixInputParameters { return rv } -// Sets the value of the audio volume starting at the specified time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1389875-setvolume?language=objc -func (m_ MutableAudioMixInputParameters) SetVolumeAtTime(volume float32, time coremedia.Time) { - objc.Call[objc.Void](m_, objc.Sel("setVolume:atTime:"), volume, time) -} - // Sets a volume ramp to apply during a specified time range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1386056-setvolumerampfromstartvolume?language=objc @@ -97,6 +90,13 @@ func (m_ MutableAudioMixInputParameters) SetVolumeRampFromStartVolumeToEndVolume objc.Call[objc.Void](m_, objc.Sel("setVolumeRampFromStartVolume:toEndVolume:timeRange:"), startVolume, endVolume, timeRange) } +// Sets the value of the audio volume starting at the specified time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1389875-setvolume?language=objc +func (m_ MutableAudioMixInputParameters) SetVolumeAtTime(volume float32, time coremedia.Time) { + objc.Call[objc.Void](m_, objc.Sel("setVolume:atTime:"), volume, time) +} + // The processing algorithm used to manage audio pitch for scaled audio edits. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1388300-audiotimepitchalgorithm?language=objc @@ -104,16 +104,16 @@ func (m_ MutableAudioMixInputParameters) SetAudioTimePitchAlgorithm(value AudioT objc.Call[objc.Void](m_, objc.Sel("setAudioTimePitchAlgorithm:"), value) } -// The audio processing tap associated with the track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1389296-audiotapprocessor?language=objc -func (m_ MutableAudioMixInputParameters) SetAudioTapProcessor(value objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setAudioTapProcessor:"), value) -} - // The identifier of the audio track to which the parameters should be applied. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1389209-trackid?language=objc func (m_ MutableAudioMixInputParameters) SetTrackID(value objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("setTrackID:"), value) } + +// The audio processing tap associated with the track. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1389296-audiotapprocessor?language=objc +func (m_ MutableAudioMixInputParameters) SetAudioTapProcessor(value objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setAudioTapProcessor:"), value) +} diff --git a/macos/avfoundation/mutable_caption.gen.go b/macos/avfoundation/mutable_caption.gen.go index 71dd16ff..a89fb1c2 100644 --- a/macos/avfoundation/mutable_caption.gen.go +++ b/macos/avfoundation/mutable_caption.gen.go @@ -21,25 +21,25 @@ type _MutableCaptionClass struct { // An interface definition for the [MutableCaption] class. type IMutableCaption interface { ICaption - SetBackgroundColorInRange(color coregraphics.ColorRef, range_ foundation.Range) + RemoveTextCombineInRange(range_ foundation.Range) + RemoveDecorationInRange(range_ foundation.Range) + RemoveTextColorInRange(range_ foundation.Range) + RemoveFontStyleInRange(range_ foundation.Range) + SetDecorationInRange(decoration CaptionDecoration, range_ foundation.Range) + SetRubyInRange(ruby ICaptionRuby, range_ foundation.Range) SetFontWeightInRange(fontWeight CaptionFontWeight, range_ foundation.Range) - RemoveRubyInRange(range_ foundation.Range) + SetFontStyleInRange(fontStyle CaptionFontStyle, range_ foundation.Range) RemoveBackgroundColorInRange(range_ foundation.Range) RemoveFontWeightInRange(range_ foundation.Range) + RemoveRubyInRange(range_ foundation.Range) + SetBackgroundColorInRange(color coregraphics.ColorRef, range_ foundation.Range) SetTextCombineInRange(textCombine CaptionTextCombine, range_ foundation.Range) SetTextColorInRange(color coregraphics.ColorRef, range_ foundation.Range) - RemoveTextColorInRange(range_ foundation.Range) - RemoveTextCombineInRange(range_ foundation.Range) - SetFontStyleInRange(fontStyle CaptionFontStyle, range_ foundation.Range) - RemoveFontStyleInRange(range_ foundation.Range) - SetRubyInRange(ruby ICaptionRuby, range_ foundation.Range) - RemoveDecorationInRange(range_ foundation.Range) - SetDecorationInRange(decoration CaptionDecoration, range_ foundation.Range) + SetAnimation(value CaptionAnimation) + SetTextAlignment(value CaptionTextAlignment) SetTimeRange(value coremedia.TimeRange) SetRegion(value ICaptionRegion) SetText(value string) - SetTextAlignment(value CaptionTextAlignment) - SetAnimation(value CaptionAnimation) } // A mutable caption subclass that you use to create new captions. [Full Topic] @@ -89,11 +89,46 @@ func NewMutableCaptionWithTextTimeRange(text string, timeRange coremedia.TimeRan return instance } -// Sets the background color for a range of text. [Full Topic] +// Removes text combine from a range of text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752908-setbackgroundcolor?language=objc -func (m_ MutableCaption) SetBackgroundColorInRange(color coregraphics.ColorRef, range_ foundation.Range) { - objc.Call[objc.Void](m_, objc.Sel("setBackgroundColor:inRange:"), color, range_) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752907-removetextcombineinrange?language=objc +func (m_ MutableCaption) RemoveTextCombineInRange(range_ foundation.Range) { + objc.Call[objc.Void](m_, objc.Sel("removeTextCombineInRange:"), range_) +} + +// Removes a decoration from a range of text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752902-removedecorationinrange?language=objc +func (m_ MutableCaption) RemoveDecorationInRange(range_ foundation.Range) { + objc.Call[objc.Void](m_, objc.Sel("removeDecorationInRange:"), range_) +} + +// Removes the text color for a range of text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752906-removetextcolorinrange?language=objc +func (m_ MutableCaption) RemoveTextColorInRange(range_ foundation.Range) { + objc.Call[objc.Void](m_, objc.Sel("removeTextColorInRange:"), range_) +} + +// Removes a font style from a range of text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752903-removefontstyleinrange?language=objc +func (m_ MutableCaption) RemoveFontStyleInRange(range_ foundation.Range) { + objc.Call[objc.Void](m_, objc.Sel("removeFontStyleInRange:"), range_) +} + +// Sets a decoration for a range of text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752909-setdecoration?language=objc +func (m_ MutableCaption) SetDecorationInRange(decoration CaptionDecoration, range_ foundation.Range) { + objc.Call[objc.Void](m_, objc.Sel("setDecoration:inRange:"), decoration, range_) +} + +// Sets ruby text for a range. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752912-setruby?language=objc +func (m_ MutableCaption) SetRubyInRange(ruby ICaptionRuby, range_ foundation.Range) { + objc.Call[objc.Void](m_, objc.Sel("setRuby:inRange:"), ruby, range_) } // Sets the font weight for a range of text. [Full Topic] @@ -103,11 +138,11 @@ func (m_ MutableCaption) SetFontWeightInRange(fontWeight CaptionFontWeight, rang objc.Call[objc.Void](m_, objc.Sel("setFontWeight:inRange:"), fontWeight, range_) } -// Removes ruby text from a range. [Full Topic] +// Sets the font style for a range of text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752905-removerubyinrange?language=objc -func (m_ MutableCaption) RemoveRubyInRange(range_ foundation.Range) { - objc.Call[objc.Void](m_, objc.Sel("removeRubyInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752910-setfontstyle?language=objc +func (m_ MutableCaption) SetFontStyleInRange(fontStyle CaptionFontStyle, range_ foundation.Range) { + objc.Call[objc.Void](m_, objc.Sel("setFontStyle:inRange:"), fontStyle, range_) } // Removes a background color from a range of text. [Full Topic] @@ -124,6 +159,20 @@ func (m_ MutableCaption) RemoveFontWeightInRange(range_ foundation.Range) { objc.Call[objc.Void](m_, objc.Sel("removeFontWeightInRange:"), range_) } +// Removes ruby text from a range. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752905-removerubyinrange?language=objc +func (m_ MutableCaption) RemoveRubyInRange(range_ foundation.Range) { + objc.Call[objc.Void](m_, objc.Sel("removeRubyInRange:"), range_) +} + +// Sets the background color for a range of text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752908-setbackgroundcolor?language=objc +func (m_ MutableCaption) SetBackgroundColorInRange(color coregraphics.ColorRef, range_ foundation.Range) { + objc.Call[objc.Void](m_, objc.Sel("setBackgroundColor:inRange:"), color, range_) +} + // Sets text combine for a range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752914-settextcombine?language=objc @@ -138,53 +187,18 @@ func (m_ MutableCaption) SetTextColorInRange(color coregraphics.ColorRef, range_ objc.Call[objc.Void](m_, objc.Sel("setTextColor:inRange:"), color, range_) } -// Removes the text color for a range of text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752906-removetextcolorinrange?language=objc -func (m_ MutableCaption) RemoveTextColorInRange(range_ foundation.Range) { - objc.Call[objc.Void](m_, objc.Sel("removeTextColorInRange:"), range_) -} - -// Removes text combine from a range of text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752907-removetextcombineinrange?language=objc -func (m_ MutableCaption) RemoveTextCombineInRange(range_ foundation.Range) { - objc.Call[objc.Void](m_, objc.Sel("removeTextCombineInRange:"), range_) -} - -// Sets the font style for a range of text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752910-setfontstyle?language=objc -func (m_ MutableCaption) SetFontStyleInRange(fontStyle CaptionFontStyle, range_ foundation.Range) { - objc.Call[objc.Void](m_, objc.Sel("setFontStyle:inRange:"), fontStyle, range_) -} - -// Removes a font style from a range of text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752903-removefontstyleinrange?language=objc -func (m_ MutableCaption) RemoveFontStyleInRange(range_ foundation.Range) { - objc.Call[objc.Void](m_, objc.Sel("removeFontStyleInRange:"), range_) -} - -// Sets ruby text for a range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752912-setruby?language=objc -func (m_ MutableCaption) SetRubyInRange(ruby ICaptionRuby, range_ foundation.Range) { - objc.Call[objc.Void](m_, objc.Sel("setRuby:inRange:"), ruby, range_) -} - -// Removes a decoration from a range of text. [Full Topic] +// Animations to apply to the caption text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752902-removedecorationinrange?language=objc -func (m_ MutableCaption) RemoveDecorationInRange(range_ foundation.Range) { - objc.Call[objc.Void](m_, objc.Sel("removeDecorationInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752899-animation?language=objc +func (m_ MutableCaption) SetAnimation(value CaptionAnimation) { + objc.Call[objc.Void](m_, objc.Sel("setAnimation:"), value) } -// Sets a decoration for a range of text. [Full Topic] +// The alignment of the caption text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752909-setdecoration?language=objc -func (m_ MutableCaption) SetDecorationInRange(decoration CaptionDecoration, range_ foundation.Range) { - objc.Call[objc.Void](m_, objc.Sel("setDecoration:inRange:"), decoration, range_) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752916-textalignment?language=objc +func (m_ MutableCaption) SetTextAlignment(value CaptionTextAlignment) { + objc.Call[objc.Void](m_, objc.Sel("setTextAlignment:"), value) } // The time range over which the system presents the caption. [Full Topic] @@ -207,17 +221,3 @@ func (m_ MutableCaption) SetRegion(value ICaptionRegion) { func (m_ MutableCaption) SetText(value string) { objc.Call[objc.Void](m_, objc.Sel("setText:"), value) } - -// The alignment of the caption text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752916-textalignment?language=objc -func (m_ MutableCaption) SetTextAlignment(value CaptionTextAlignment) { - objc.Call[objc.Void](m_, objc.Sel("setTextAlignment:"), value) -} - -// Animations to apply to the caption text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaption/3752899-animation?language=objc -func (m_ MutableCaption) SetAnimation(value CaptionAnimation) { - objc.Call[objc.Void](m_, objc.Sel("setAnimation:"), value) -} diff --git a/macos/avfoundation/mutable_caption_region.gen.go b/macos/avfoundation/mutable_caption_region.gen.go index bd1c72a9..34a00ff2 100644 --- a/macos/avfoundation/mutable_caption_region.gen.go +++ b/macos/avfoundation/mutable_caption_region.gen.go @@ -18,11 +18,11 @@ type _MutableCaptionRegionClass struct { // An interface definition for the [MutableCaptionRegion] class. type IMutableCaptionRegion interface { ICaptionRegion + SetOrigin(value CaptionPoint) + SetScroll(value CaptionRegionScroll) SetWritingMode(value CaptionRegionWritingMode) SetSize(value CaptionSize) SetDisplayAlignment(value CaptionRegionDisplayAlignment) - SetScroll(value CaptionRegionScroll) - SetOrigin(value CaptionPoint) } // A mutable caption region subclass that you use to create new caption regions. [Full Topic] @@ -38,11 +38,6 @@ func MutableCaptionRegionFrom(ptr unsafe.Pointer) MutableCaptionRegion { } } -func (m_ MutableCaptionRegion) Init() MutableCaptionRegion { - rv := objc.Call[MutableCaptionRegion](m_, objc.Sel("init")) - return rv -} - func (m_ MutableCaptionRegion) InitWithIdentifier(identifier string) MutableCaptionRegion { rv := objc.Call[MutableCaptionRegion](m_, objc.Sel("initWithIdentifier:"), identifier) return rv @@ -57,6 +52,11 @@ func NewMutableCaptionRegionWithIdentifier(identifier string) MutableCaptionRegi return instance } +func (m_ MutableCaptionRegion) Init() MutableCaptionRegion { + rv := objc.Call[MutableCaptionRegion](m_, objc.Sel("init")) + return rv +} + func (mc _MutableCaptionRegionClass) Alloc() MutableCaptionRegion { rv := objc.Call[MutableCaptionRegion](mc, objc.Sel("alloc")) return rv @@ -72,6 +72,20 @@ func NewMutableCaptionRegion() MutableCaptionRegion { return MutableCaptionRegionClass.New() } +// The region’s top-left position. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaptionregion/3857638-origin?language=objc +func (m_ MutableCaptionRegion) SetOrigin(value CaptionPoint) { + objc.Call[objc.Void](m_, objc.Sel("setOrigin:"), value) +} + +// The scroll mode of the region. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaptionregion/3752925-scroll?language=objc +func (m_ MutableCaptionRegion) SetScroll(value CaptionRegionScroll) { + objc.Call[objc.Void](m_, objc.Sel("setScroll:"), value) +} + // The block and inline progression direction of the region. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaptionregion/3752926-writingmode?language=objc @@ -92,17 +106,3 @@ func (m_ MutableCaptionRegion) SetSize(value CaptionSize) { func (m_ MutableCaptionRegion) SetDisplayAlignment(value CaptionRegionDisplayAlignment) { objc.Call[objc.Void](m_, objc.Sel("setDisplayAlignment:"), value) } - -// The scroll mode of the region. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaptionregion/3752925-scroll?language=objc -func (m_ MutableCaptionRegion) SetScroll(value CaptionRegionScroll) { - objc.Call[objc.Void](m_, objc.Sel("setScroll:"), value) -} - -// The region’s top-left position. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecaptionregion/3857638-origin?language=objc -func (m_ MutableCaptionRegion) SetOrigin(value CaptionPoint) { - objc.Call[objc.Void](m_, objc.Sel("setOrigin:"), value) -} diff --git a/macos/avfoundation/mutable_composition.gen.go b/macos/avfoundation/mutable_composition.gen.go index 3960a984..b976df18 100644 --- a/macos/avfoundation/mutable_composition.gen.go +++ b/macos/avfoundation/mutable_composition.gen.go @@ -22,10 +22,10 @@ type _MutableCompositionClass struct { type IMutableComposition interface { IComposition RemoveTimeRange(timeRange coremedia.TimeRange) - ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) MutableTrackCompatibleWithTrack(track IAssetTrack) MutableCompositionTrack - AddMutableTrackWithMediaTypePreferredTrackID(mediaType MediaType, preferredTrackID objc.IObject) MutableCompositionTrack RemoveTrack(track ICompositionTrack) + AddMutableTrackWithMediaTypePreferredTrackID(mediaType MediaType, preferredTrackID objc.IObject) MutableCompositionTrack + ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) InsertEmptyTimeRange(timeRange coremedia.TimeRange) SetNaturalSize(value coregraphics.Size) } @@ -106,13 +106,6 @@ func (m_ MutableComposition) RemoveTimeRange(timeRange coremedia.TimeRange) { objc.Call[objc.Void](m_, objc.Sel("removeTimeRange:"), timeRange) } -// Changes the duration of all tracks in a given time range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecomposition/1390549-scaletimerange?language=objc -func (m_ MutableComposition) ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) { - objc.Call[objc.Void](m_, objc.Sel("scaleTimeRange:toDuration:"), timeRange, duration) -} - // Returns a composition track into which you can insert any time range of the specified asset track. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecomposition/1386662-mutabletrackcompatiblewithtrack?language=objc @@ -121,6 +114,13 @@ func (m_ MutableComposition) MutableTrackCompatibleWithTrack(track IAssetTrack) return rv } +// Removes a specified track from the composition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecomposition/1386818-removetrack?language=objc +func (m_ MutableComposition) RemoveTrack(track ICompositionTrack) { + objc.Call[objc.Void](m_, objc.Sel("removeTrack:"), track) +} + // Adds an empty track to a composition. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecomposition/1387601-addmutabletrackwithmediatype?language=objc @@ -129,11 +129,11 @@ func (m_ MutableComposition) AddMutableTrackWithMediaTypePreferredTrackID(mediaT return rv } -// Removes a specified track from the composition. [Full Topic] +// Changes the duration of all tracks in a given time range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecomposition/1386818-removetrack?language=objc -func (m_ MutableComposition) RemoveTrack(track ICompositionTrack) { - objc.Call[objc.Void](m_, objc.Sel("removeTrack:"), track) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecomposition/1390549-scaletimerange?language=objc +func (m_ MutableComposition) ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) { + objc.Call[objc.Void](m_, objc.Sel("scaleTimeRange:toDuration:"), timeRange, duration) } // Adds or extends an empty time range within all tracks of the composition. [Full Topic] diff --git a/macos/avfoundation/mutable_composition_track.gen.go b/macos/avfoundation/mutable_composition_track.gen.go index 7cfda29e..19eb2c7b 100644 --- a/macos/avfoundation/mutable_composition_track.gen.go +++ b/macos/avfoundation/mutable_composition_track.gen.go @@ -21,22 +21,22 @@ type _MutableCompositionTrackClass struct { // An interface definition for the [MutableCompositionTrack] class. type IMutableCompositionTrack interface { ICompositionTrack + RemoveTrackAssociationToTrackType(compositionTrack ICompositionTrack, trackAssociationType TrackAssociationType) AddTrackAssociationToTrackType(compositionTrack ICompositionTrack, trackAssociationType TrackAssociationType) + RemoveTimeRange(timeRange coremedia.TimeRange) ValidateTrackSegmentsError(trackSegments []ICompositionTrackSegment, outError unsafe.Pointer) bool + InsertTimeRangesOfTracksAtTimeError(timeRanges []foundation.IValue, tracks []IAssetTrack, startTime coremedia.Time, outError unsafe.Pointer) bool + InsertTimeRangeOfTrackAtTimeError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, outError unsafe.Pointer) bool ReplaceFormatDescriptionWithFormatDescription(originalFormatDescription coremedia.FormatDescriptionRef, replacementFormatDescription coremedia.FormatDescriptionRef) ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) InsertEmptyTimeRange(timeRange coremedia.TimeRange) - RemoveTimeRange(timeRange coremedia.TimeRange) - RemoveTrackAssociationToTrackType(compositionTrack ICompositionTrack, trackAssociationType TrackAssociationType) - InsertTimeRangesOfTracksAtTimeError(timeRanges []foundation.IValue, tracks []IAssetTrack, startTime coremedia.Time, outError unsafe.Pointer) bool - InsertTimeRangeOfTrackAtTimeError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, outError unsafe.Pointer) bool - SetPreferredVolume(value float32) - SetEnabled(value bool) SetExtendedLanguageTag(value string) + SetPreferredVolume(value float32) + SetSegments(value []ICompositionTrackSegment) SetLanguageCode(value string) + SetEnabled(value bool) SetNaturalTimeScale(value coremedia.TimeScale) SetPreferredTransform(value coregraphics.AffineTransform) - SetSegments(value []ICompositionTrackSegment) } // A mutable track in a composition that you use to insert, remove, and scale track segments without affecting their low-level representation. [Full Topic] @@ -72,6 +72,13 @@ func (m_ MutableCompositionTrack) Init() MutableCompositionTrack { return rv } +// Removes an association from a composition track. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/3013765-removetrackassociationtotrack?language=objc +func (m_ MutableCompositionTrack) RemoveTrackAssociationToTrackType(compositionTrack ICompositionTrack, trackAssociationType TrackAssociationType) { + objc.Call[objc.Void](m_, objc.Sel("removeTrackAssociationToTrack:type:"), compositionTrack, trackAssociationType) +} + // Establishes a track association of a specific type between two tracks. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/3013764-addtrackassociationtotrack?language=objc @@ -79,6 +86,13 @@ func (m_ MutableCompositionTrack) AddTrackAssociationToTrackType(compositionTrac objc.Call[objc.Void](m_, objc.Sel("addTrackAssociationToTrack:type:"), compositionTrack, trackAssociationType) } +// Removes a time range of media from a composition track. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1386048-removetimerange?language=objc +func (m_ MutableCompositionTrack) RemoveTimeRange(timeRange coremedia.TimeRange) { + objc.Call[objc.Void](m_, objc.Sel("removeTimeRange:"), timeRange) +} + // Returns a Boolean value that indicates whether a given array of track segments conform to the timing rules for a composition track. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1388746-validatetracksegments?language=objc @@ -87,6 +101,22 @@ func (m_ MutableCompositionTrack) ValidateTrackSegmentsError(trackSegments []ICo return rv } +// Inserts the time ranges of multiple source tracks into a track of a composition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1388629-inserttimeranges?language=objc +func (m_ MutableCompositionTrack) InsertTimeRangesOfTracksAtTimeError(timeRanges []foundation.IValue, tracks []IAssetTrack, startTime coremedia.Time, outError unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("insertTimeRanges:ofTracks:atTime:error:"), timeRanges, tracks, startTime, outError) + return rv +} + +// Inserts a time range of media from a source track into a composition track. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1390691-inserttimerange?language=objc +func (m_ MutableCompositionTrack) InsertTimeRangeOfTrackAtTimeError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, outError unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofTrack:atTime:error:"), timeRange, track, startTime, outError) + return rv +} + // Replaces a format description with another or cancels a previous replacement. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/3180005-replaceformatdescription?language=objc @@ -108,34 +138,11 @@ func (m_ MutableCompositionTrack) InsertEmptyTimeRange(timeRange coremedia.TimeR objc.Call[objc.Void](m_, objc.Sel("insertEmptyTimeRange:"), timeRange) } -// Removes a time range of media from a composition track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1386048-removetimerange?language=objc -func (m_ MutableCompositionTrack) RemoveTimeRange(timeRange coremedia.TimeRange) { - objc.Call[objc.Void](m_, objc.Sel("removeTimeRange:"), timeRange) -} - -// Removes an association from a composition track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/3013765-removetrackassociationtotrack?language=objc -func (m_ MutableCompositionTrack) RemoveTrackAssociationToTrackType(compositionTrack ICompositionTrack, trackAssociationType TrackAssociationType) { - objc.Call[objc.Void](m_, objc.Sel("removeTrackAssociationToTrack:type:"), compositionTrack, trackAssociationType) -} - -// Inserts the time ranges of multiple source tracks into a track of a composition. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1388629-inserttimeranges?language=objc -func (m_ MutableCompositionTrack) InsertTimeRangesOfTracksAtTimeError(timeRanges []foundation.IValue, tracks []IAssetTrack, startTime coremedia.Time, outError unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("insertTimeRanges:ofTracks:atTime:error:"), timeRanges, tracks, startTime, outError) - return rv -} - -// Inserts a time range of media from a source track into a composition track. [Full Topic] +// The language tag associated with the track, as an RFC 4646 language tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1390691-inserttimerange?language=objc -func (m_ MutableCompositionTrack) InsertTimeRangeOfTrackAtTimeError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, outError unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofTrack:atTime:error:"), timeRange, track, startTime, outError) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1388866-extendedlanguagetag?language=objc +func (m_ MutableCompositionTrack) SetExtendedLanguageTag(value string) { + objc.Call[objc.Void](m_, objc.Sel("setExtendedLanguageTag:"), value) } // The volume the track prefers for its audible media data. [Full Topic] @@ -145,18 +152,11 @@ func (m_ MutableCompositionTrack) SetPreferredVolume(value float32) { objc.Call[objc.Void](m_, objc.Sel("setPreferredVolume:"), value) } -// A Boolean value that indicates whether the tracks is in an enabled state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/3334926-enabled?language=objc -func (m_ MutableCompositionTrack) SetEnabled(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setEnabled:"), value) -} - -// The language tag associated with the track, as an RFC 4646 language tag. [Full Topic] +// The track segments that a composition track contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1388866-extendedlanguagetag?language=objc -func (m_ MutableCompositionTrack) SetExtendedLanguageTag(value string) { - objc.Call[objc.Void](m_, objc.Sel("setExtendedLanguageTag:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1390321-segments?language=objc +func (m_ MutableCompositionTrack) SetSegments(value []ICompositionTrackSegment) { + objc.Call[objc.Void](m_, objc.Sel("setSegments:"), value) } // The language associated with the track, as an ISO 639-2/T language code. [Full Topic] @@ -166,6 +166,13 @@ func (m_ MutableCompositionTrack) SetLanguageCode(value string) { objc.Call[objc.Void](m_, objc.Sel("setLanguageCode:"), value) } +// A Boolean value that indicates whether the tracks is in an enabled state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/3334926-enabled?language=objc +func (m_ MutableCompositionTrack) SetEnabled(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setEnabled:"), value) +} + // The time scale in which you can perform time-based operations without extra numerical conversion. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1389030-naturaltimescale?language=objc @@ -179,10 +186,3 @@ func (m_ MutableCompositionTrack) SetNaturalTimeScale(value coremedia.TimeScale) func (m_ MutableCompositionTrack) SetPreferredTransform(value coregraphics.AffineTransform) { objc.Call[objc.Void](m_, objc.Sel("setPreferredTransform:"), value) } - -// The track segments that a composition track contains. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecompositiontrack/1390321-segments?language=objc -func (m_ MutableCompositionTrack) SetSegments(value []ICompositionTrackSegment) { - objc.Call[objc.Void](m_, objc.Sel("setSegments:"), value) -} diff --git a/macos/avfoundation/mutable_date_range_metadata_group.gen.go b/macos/avfoundation/mutable_date_range_metadata_group.gen.go index e98bc481..7e556254 100644 --- a/macos/avfoundation/mutable_date_range_metadata_group.gen.go +++ b/macos/avfoundation/mutable_date_range_metadata_group.gen.go @@ -20,8 +20,8 @@ type _MutableDateRangeMetadataGroupClass struct { type IMutableDateRangeMetadataGroup interface { IDateRangeMetadataGroup SetItems(value []IMetadataItem) - SetEndDate(value foundation.IDate) SetStartDate(value foundation.IDate) + SetEndDate(value foundation.IDate) } // A mutable collection of metadata items that are valid for use within a specific range of dates. [Full Topic] @@ -78,16 +78,16 @@ func (m_ MutableDateRangeMetadataGroup) SetItems(value []IMetadataItem) { objc.Call[objc.Void](m_, objc.Sel("setItems:"), value) } -// The end date for the metadata date range group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutabledaterangemetadatagroup/1387651-enddate?language=objc -func (m_ MutableDateRangeMetadataGroup) SetEndDate(value foundation.IDate) { - objc.Call[objc.Void](m_, objc.Sel("setEndDate:"), value) -} - // The start date for the metadata date range group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutabledaterangemetadatagroup/1390555-startdate?language=objc func (m_ MutableDateRangeMetadataGroup) SetStartDate(value foundation.IDate) { objc.Call[objc.Void](m_, objc.Sel("setStartDate:"), value) } + +// The end date for the metadata date range group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutabledaterangemetadatagroup/1387651-enddate?language=objc +func (m_ MutableDateRangeMetadataGroup) SetEndDate(value foundation.IDate) { + objc.Call[objc.Void](m_, objc.Sel("setEndDate:"), value) +} diff --git a/macos/avfoundation/mutable_metadata_item.gen.go b/macos/avfoundation/mutable_metadata_item.gen.go index 41c4b552..188d4bf0 100644 --- a/macos/avfoundation/mutable_metadata_item.gen.go +++ b/macos/avfoundation/mutable_metadata_item.gen.go @@ -20,17 +20,17 @@ type _MutableMetadataItemClass struct { // An interface definition for the [MutableMetadataItem] class. type IMutableMetadataItem interface { IMetadataItem - SetIdentifier(value MetadataIdentifier) SetKeySpace(value MetadataKeySpace) - SetLocale(value foundation.ILocale) SetExtendedLanguageTag(value string) - SetStartDate(value foundation.IDate) + SetKey(value objc.IObject) + SetValue(value objc.IObject) SetExtraAttributes(value map[MetadataExtraAttributeKey]objc.IObject) + SetLocale(value foundation.ILocale) SetTime(value coremedia.Time) - SetValue(value objc.IObject) - SetDuration(value coremedia.Time) - SetKey(value objc.IObject) SetDataType(value string) + SetStartDate(value foundation.IDate) + SetDuration(value coremedia.Time) + SetIdentifier(value MetadataIdentifier) } // A mutable metadata item for an audiovisual asset or for one of its tracks. [Full Topic] @@ -81,13 +81,6 @@ func MutableMetadataItem_MetadataItem() MutableMetadataItem { return MutableMetadataItemClass.MetadataItem() } -// Indicates the identifier of the metadata item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1386688-identifier?language=objc -func (m_ MutableMetadataItem) SetIdentifier(value MetadataIdentifier) { - objc.Call[objc.Void](m_, objc.Sel("setIdentifier:"), value) -} - // The key space of the metadata item’s key. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1385655-keyspace?language=objc @@ -95,13 +88,6 @@ func (m_ MutableMetadataItem) SetKeySpace(value MetadataKeySpace) { objc.Call[objc.Void](m_, objc.Sel("setKeySpace:"), value) } -// The locale for a mutable metadata item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1389292-locale?language=objc -func (m_ MutableMetadataItem) SetLocale(value foundation.ILocale) { - objc.Call[objc.Void](m_, objc.Sel("setLocale:"), value) -} - // The IETF BCP 47 (RFC 4646) language identifier of the metadata item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1386664-extendedlanguagetag?language=objc @@ -109,11 +95,18 @@ func (m_ MutableMetadataItem) SetExtendedLanguageTag(value string) { objc.Call[objc.Void](m_, objc.Sel("setExtendedLanguageTag:"), value) } -// The start date of the timed metadata. [Full Topic] +// The key for a mutable metadata item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1389966-startdate?language=objc -func (m_ MutableMetadataItem) SetStartDate(value foundation.IDate) { - objc.Call[objc.Void](m_, objc.Sel("setStartDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1386776-key?language=objc +func (m_ MutableMetadataItem) SetKey(value objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setKey:"), value) +} + +// The value for the mutable metadata item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1388296-value?language=objc +func (m_ MutableMetadataItem) SetValue(value objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setValue:"), value) } // A dictionary of additional attributes for a metadata item. [Full Topic] @@ -123,6 +116,13 @@ func (m_ MutableMetadataItem) SetExtraAttributes(value map[MetadataExtraAttribut objc.Call[objc.Void](m_, objc.Sel("setExtraAttributes:"), value) } +// The locale for a mutable metadata item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1389292-locale?language=objc +func (m_ MutableMetadataItem) SetLocale(value foundation.ILocale) { + objc.Call[objc.Void](m_, objc.Sel("setLocale:"), value) +} + // The timestamp for a mutable metadata item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1389990-time?language=objc @@ -130,11 +130,18 @@ func (m_ MutableMetadataItem) SetTime(value coremedia.Time) { objc.Call[objc.Void](m_, objc.Sel("setTime:"), value) } -// The value for the mutable metadata item. [Full Topic] +// The data type of the metadata item’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1388296-value?language=objc -func (m_ MutableMetadataItem) SetValue(value objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1389471-datatype?language=objc +func (m_ MutableMetadataItem) SetDataType(value string) { + objc.Call[objc.Void](m_, objc.Sel("setDataType:"), value) +} + +// The start date of the timed metadata. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1389966-startdate?language=objc +func (m_ MutableMetadataItem) SetStartDate(value foundation.IDate) { + objc.Call[objc.Void](m_, objc.Sel("setStartDate:"), value) } // The duration of a mutable metadata item. [Full Topic] @@ -144,16 +151,9 @@ func (m_ MutableMetadataItem) SetDuration(value coremedia.Time) { objc.Call[objc.Void](m_, objc.Sel("setDuration:"), value) } -// The key for a mutable metadata item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1386776-key?language=objc -func (m_ MutableMetadataItem) SetKey(value objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setKey:"), value) -} - -// The data type of the metadata item’s value. [Full Topic] +// Indicates the identifier of the metadata item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1389471-datatype?language=objc -func (m_ MutableMetadataItem) SetDataType(value string) { - objc.Call[objc.Void](m_, objc.Sel("setDataType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1386688-identifier?language=objc +func (m_ MutableMetadataItem) SetIdentifier(value MetadataIdentifier) { + objc.Call[objc.Void](m_, objc.Sel("setIdentifier:"), value) } diff --git a/macos/avfoundation/mutable_movie.gen.go b/macos/avfoundation/mutable_movie.gen.go index d5470d22..f12489df 100644 --- a/macos/avfoundation/mutable_movie.gen.go +++ b/macos/avfoundation/mutable_movie.gen.go @@ -21,28 +21,28 @@ type _MutableMovieClass struct { // An interface definition for the [MutableMovie] class. type IMutableMovie interface { IMovie - TrackWithTrackID(trackID objc.IObject) MutableMovieTrack - TracksWithMediaCharacteristic(mediaCharacteristic MediaCharacteristic) []MutableMovieTrack - MutableTrackCompatibleWithTrack(track IAssetTrack) MutableMovieTrack TracksWithMediaType(mediaType MediaType) []MutableMovieTrack - ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) RemoveTimeRange(timeRange coremedia.TimeRange) - RemoveTrack(track IMovieTrack) + AddMutableTracksCopyingSettingsFromTracksOptions(existingTracks []IAssetTrack, options map[string]objc.IObject) []MutableMovieTrack + TracksWithMediaCharacteristic(mediaCharacteristic MediaCharacteristic) []MutableMovieTrack + MutableTrackCompatibleWithTrack(track IAssetTrack) MutableMovieTrack InsertTimeRangeOfAssetAtTimeCopySampleDataError(timeRange coremedia.TimeRange, asset IAsset, startTime coremedia.Time, copySampleData bool, outError unsafe.Pointer) bool + RemoveTrack(track IMovieTrack) AddMutableTrackWithMediaTypeCopySettingsFromTrackOptions(mediaType MediaType, track IAssetTrack, options map[string]objc.IObject) MutableMovieTrack - AddMutableTracksCopyingSettingsFromTracksOptions(existingTracks []IAssetTrack, options map[string]objc.IObject) []MutableMovieTrack + ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) + TrackWithTrackID(trackID objc.IObject) MutableMovieTrack InsertEmptyTimeRange(timeRange coremedia.TimeRange) - SetPreferredTransform(value coregraphics.AffineTransform) SetDefaultMediaDataStorage(value IMediaDataStorage) - SetPreferredVolume(value float32) IsModified() bool SetModified(value bool) + SetPreferredVolume(value float32) InterleavingPeriod() coremedia.Time SetInterleavingPeriod(value coremedia.Time) - SetPreferredRate(value float32) SetMetadata(value []IMetadataItem) + SetPreferredRate(value float32) Timescale() coremedia.TimeScale SetTimescale(value coremedia.TimeScale) + SetPreferredTransform(value coregraphics.AffineTransform) } // A mutable object that represents an audiovisual container that conforms to the QuickTime movie file format or a related format like MPEG-4. [Full Topic] @@ -58,32 +58,20 @@ func MutableMovieFrom(ptr unsafe.Pointer) MutableMovie { } } -func (m_ MutableMovie) InitWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { - rv := objc.Call[MutableMovie](m_, objc.Sel("initWithSettingsFromMovie:options:error:"), movie, options, outError) +func (m_ MutableMovie) InitWithDataOptionsError(data []byte, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { + rv := objc.Call[MutableMovie](m_, objc.Sel("initWithData:options:error:"), data, options, outError) return rv } -// Creates a mutable movie object without tracks. [Full Topic] +// Creates a mutable movie object from a movie stored in a data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1386408-initwithsettingsfrommovie?language=objc -func NewMutableMovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { - instance := MutableMovieClass.Alloc().InitWithSettingsFromMovieOptionsError(movie, options, outError) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1388442-initwithdata?language=objc +func NewMutableMovieWithDataOptionsError(data []byte, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { + instance := MutableMovieClass.Alloc().InitWithDataOptionsError(data, options, outError) instance.Autorelease() return instance } -func (mc _MutableMovieClass) MovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { - rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithSettingsFromMovie:options:error:"), movie, options, outError) - return rv -} - -// Returns a new mutable movie object without tracks. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1458238-moviewithsettingsfrommovie?language=objc -func MutableMovie_MovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { - return MutableMovieClass.MovieWithSettingsFromMovieOptionsError(movie, options, outError) -} - func (mc _MutableMovieClass) MovieWithDataOptionsError(data []byte, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithData:options:error:"), data, options, outError) return rv @@ -96,6 +84,20 @@ func MutableMovie_MovieWithDataOptionsError(data []byte, options map[string]objc return MutableMovieClass.MovieWithDataOptionsError(data, options, outError) } +func (m_ MutableMovie) InitWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { + rv := objc.Call[MutableMovie](m_, objc.Sel("initWithSettingsFromMovie:options:error:"), movie, options, outError) + return rv +} + +// Creates a mutable movie object without tracks. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1386408-initwithsettingsfrommovie?language=objc +func NewMutableMovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { + instance := MutableMovieClass.Alloc().InitWithSettingsFromMovieOptionsError(movie, options, outError) + instance.Autorelease() + return instance +} + func (m_ MutableMovie) InitWithURLOptionsError(URL foundation.IURL, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { rv := objc.Call[MutableMovie](m_, objc.Sel("initWithURL:options:error:"), URL, options, outError) return rv @@ -122,18 +124,16 @@ func MutableMovie_MovieWithURLOptionsError(URL foundation.IURL, options map[stri return MutableMovieClass.MovieWithURLOptionsError(URL, options, outError) } -func (m_ MutableMovie) InitWithDataOptionsError(data []byte, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { - rv := objc.Call[MutableMovie](m_, objc.Sel("initWithData:options:error:"), data, options, outError) +func (mc _MutableMovieClass) MovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { + rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithSettingsFromMovie:options:error:"), movie, options, outError) return rv } -// Creates a mutable movie object from a movie stored in a data object. [Full Topic] +// Returns a new mutable movie object without tracks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1388442-initwithdata?language=objc -func NewMutableMovieWithDataOptionsError(data []byte, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { - instance := MutableMovieClass.Alloc().InitWithDataOptionsError(data, options, outError) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1458238-moviewithsettingsfrommovie?language=objc +func MutableMovie_MovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError unsafe.Pointer) MutableMovie { + return MutableMovieClass.MovieWithSettingsFromMovieOptionsError(movie, options, outError) } func (mc _MutableMovieClass) Alloc() MutableMovie { @@ -156,30 +156,6 @@ func (m_ MutableMovie) Init() MutableMovie { return rv } -func (mc _MutableMovieClass) MovieWithDataOptions(data []byte, options map[string]objc.IObject) MutableMovie { - rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithData:options:"), data, options) - return rv -} - -// Returns a new movie object from a movie file’s data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458261-moviewithdata?language=objc -func MutableMovie_MovieWithDataOptions(data []byte, options map[string]objc.IObject) MutableMovie { - return MutableMovieClass.MovieWithDataOptions(data, options) -} - -func (mc _MutableMovieClass) MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) MutableMovie { - rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithURL:options:"), URL, options) - return rv -} - -// Returns a new movie object from a movie header stored in a QuickTime movie file of ISO base media file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458223-moviewithurl?language=objc -func MutableMovie_MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) MutableMovie { - return MutableMovieClass.MovieWithURLOptions(URL, options) -} - func (m_ MutableMovie) InitWithDataOptions(data []byte, options map[string]objc.IObject) MutableMovie { rv := objc.Call[MutableMovie](m_, objc.Sel("initWithData:options:"), data, options) return rv @@ -194,6 +170,18 @@ func NewMutableMovieWithDataOptions(data []byte, options map[string]objc.IObject return instance } +func (mc _MutableMovieClass) MovieWithDataOptions(data []byte, options map[string]objc.IObject) MutableMovie { + rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithData:options:"), data, options) + return rv +} + +// Returns a new movie object from a movie file’s data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458261-moviewithdata?language=objc +func MutableMovie_MovieWithDataOptions(data []byte, options map[string]objc.IObject) MutableMovie { + return MutableMovieClass.MovieWithDataOptions(data, options) +} + func (m_ MutableMovie) InitWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) MutableMovie { rv := objc.Call[MutableMovie](m_, objc.Sel("initWithURL:options:"), URL, options) return rv @@ -208,6 +196,18 @@ func NewMutableMovieWithURLOptions(URL foundation.IURL, options map[string]objc. return instance } +func (mc _MutableMovieClass) MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) MutableMovie { + rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithURL:options:"), URL, options) + return rv +} + +// Returns a new movie object from a movie header stored in a QuickTime movie file of ISO base media file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1458223-moviewithurl?language=objc +func MutableMovie_MovieWithURLOptions(URL foundation.IURL, options map[string]objc.IObject) MutableMovie { + return MutableMovieClass.MovieWithURLOptions(URL, options) +} + func (mc _MutableMovieClass) AssetWithURL(URL foundation.IURL) MutableMovie { rv := objc.Call[MutableMovie](mc, objc.Sel("assetWithURL:"), URL) return rv @@ -220,11 +220,26 @@ func MutableMovie_AssetWithURL(URL foundation.IURL) MutableMovie { return MutableMovieClass.AssetWithURL(URL) } -// Retrieves a track in the movie that contains the specified identifier. [Full Topic] +// Retrieves tracks in the movie that present media of the specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1389467-trackwithtrackid?language=objc -func (m_ MutableMovie) TrackWithTrackID(trackID objc.IObject) MutableMovieTrack { - rv := objc.Call[MutableMovieTrack](m_, objc.Sel("trackWithTrackID:"), trackID) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1390443-trackswithmediatype?language=objc +func (m_ MutableMovie) TracksWithMediaType(mediaType MediaType) []MutableMovieTrack { + rv := objc.Call[[]MutableMovieTrack](m_, objc.Sel("tracksWithMediaType:"), mediaType) + return rv +} + +// Removes the specified time range from a movie. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1385605-removetimerange?language=objc +func (m_ MutableMovie) RemoveTimeRange(timeRange coremedia.TimeRange) { + objc.Call[objc.Void](m_, objc.Sel("removeTimeRange:"), timeRange) +} + +// Adds one or more empty tracks to the target movie and copies the track settings from the source tracks. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1389215-addmutabletrackscopyingsettingsf?language=objc +func (m_ MutableMovie) AddMutableTracksCopyingSettingsFromTracksOptions(existingTracks []IAssetTrack, options map[string]objc.IObject) []MutableMovieTrack { + rv := objc.Call[[]MutableMovieTrack](m_, objc.Sel("addMutableTracksCopyingSettingsFromTracks:options:"), existingTracks, options) return rv } @@ -244,28 +259,14 @@ func (m_ MutableMovie) MutableTrackCompatibleWithTrack(track IAssetTrack) Mutabl return rv } -// Retrieves tracks in the movie that present media of the specified type. [Full Topic] +// Inserts all of the tracks in a specified time range of an asset into a movie. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1390443-trackswithmediatype?language=objc -func (m_ MutableMovie) TracksWithMediaType(mediaType MediaType) []MutableMovieTrack { - rv := objc.Call[[]MutableMovieTrack](m_, objc.Sel("tracksWithMediaType:"), mediaType) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1389598-inserttimerange?language=objc +func (m_ MutableMovie) InsertTimeRangeOfAssetAtTimeCopySampleDataError(timeRange coremedia.TimeRange, asset IAsset, startTime coremedia.Time, copySampleData bool, outError unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofAsset:atTime:copySampleData:error:"), timeRange, asset, startTime, copySampleData, outError) return rv } -// Changes the duration of a time range in a movie. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1385653-scaletimerange?language=objc -func (m_ MutableMovie) ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) { - objc.Call[objc.Void](m_, objc.Sel("scaleTimeRange:toDuration:"), timeRange, duration) -} - -// Removes the specified time range from a movie. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1385605-removetimerange?language=objc -func (m_ MutableMovie) RemoveTimeRange(timeRange coremedia.TimeRange) { - objc.Call[objc.Void](m_, objc.Sel("removeTimeRange:"), timeRange) -} - // Removes the specified track from the target movie. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1386735-removetrack?language=objc @@ -273,14 +274,6 @@ func (m_ MutableMovie) RemoveTrack(track IMovieTrack) { objc.Call[objc.Void](m_, objc.Sel("removeTrack:"), track) } -// Inserts all of the tracks in a specified time range of an asset into a movie. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1389598-inserttimerange?language=objc -func (m_ MutableMovie) InsertTimeRangeOfAssetAtTimeCopySampleDataError(timeRange coremedia.TimeRange, asset IAsset, startTime coremedia.Time, copySampleData bool, outError unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofAsset:atTime:copySampleData:error:"), timeRange, asset, startTime, copySampleData, outError) - return rv -} - // Adds an empty track to the target movie. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1390063-addmutabletrackwithmediatype?language=objc @@ -289,11 +282,18 @@ func (m_ MutableMovie) AddMutableTrackWithMediaTypeCopySettingsFromTrackOptions( return rv } -// Adds one or more empty tracks to the target movie and copies the track settings from the source tracks. [Full Topic] +// Changes the duration of a time range in a movie. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1389215-addmutabletrackscopyingsettingsf?language=objc -func (m_ MutableMovie) AddMutableTracksCopyingSettingsFromTracksOptions(existingTracks []IAssetTrack, options map[string]objc.IObject) []MutableMovieTrack { - rv := objc.Call[[]MutableMovieTrack](m_, objc.Sel("addMutableTracksCopyingSettingsFromTracks:options:"), existingTracks, options) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1385653-scaletimerange?language=objc +func (m_ MutableMovie) ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) { + objc.Call[objc.Void](m_, objc.Sel("scaleTimeRange:toDuration:"), timeRange, duration) +} + +// Retrieves a track in the movie that contains the specified identifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1389467-trackwithtrackid?language=objc +func (m_ MutableMovie) TrackWithTrackID(trackID objc.IObject) MutableMovieTrack { + rv := objc.Call[MutableMovieTrack](m_, objc.Sel("trackWithTrackID:"), trackID) return rv } @@ -304,13 +304,6 @@ func (m_ MutableMovie) InsertEmptyTimeRange(timeRange coremedia.TimeRange) { objc.Call[objc.Void](m_, objc.Sel("insertEmptyTimeRange:"), timeRange) } -// The transform performed on the visual media data of the movie for display purposes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1388771-preferredtransform?language=objc -func (m_ MutableMovie) SetPreferredTransform(value coregraphics.AffineTransform) { - objc.Call[objc.Void](m_, objc.Sel("setPreferredTransform:"), value) -} - // The default storage container for media data that you add to a movie. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1389320-defaultmediadatastorage?language=objc @@ -318,13 +311,6 @@ func (m_ MutableMovie) SetDefaultMediaDataStorage(value IMediaDataStorage) { objc.Call[objc.Void](m_, objc.Sel("setDefaultMediaDataStorage:"), value) } -// The preferred volume for the audible medata data of the movie. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1388614-preferredvolume?language=objc -func (m_ MutableMovie) SetPreferredVolume(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setPreferredVolume:"), value) -} - // A Boolean value that indicates whether the movie is in a modified state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1389960-modified?language=objc @@ -340,6 +326,13 @@ func (m_ MutableMovie) SetModified(value bool) { objc.Call[objc.Void](m_, objc.Sel("setModified:"), value) } +// The preferred volume for the audible medata data of the movie. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1388614-preferredvolume?language=objc +func (m_ MutableMovie) SetPreferredVolume(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredVolume:"), value) +} + // A time period indicating the duration for interleaving runs of samples for each track. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1386969-interleavingperiod?language=objc @@ -355,13 +348,6 @@ func (m_ MutableMovie) SetInterleavingPeriod(value coremedia.Time) { objc.Call[objc.Void](m_, objc.Sel("setInterleavingPeriod:"), value) } -// The natural rate for playing the movie. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1387335-preferredrate?language=objc -func (m_ MutableMovie) SetPreferredRate(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setPreferredRate:"), value) -} - // An array of metadata the movie stores. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1388742-metadata?language=objc @@ -369,6 +355,13 @@ func (m_ MutableMovie) SetMetadata(value []IMetadataItem) { objc.Call[objc.Void](m_, objc.Sel("setMetadata:"), value) } +// The natural rate for playing the movie. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1387335-preferredrate?language=objc +func (m_ MutableMovie) SetPreferredRate(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredRate:"), value) +} + // The time scale of the movie. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1390622-timescale?language=objc @@ -383,3 +376,10 @@ func (m_ MutableMovie) Timescale() coremedia.TimeScale { func (m_ MutableMovie) SetTimescale(value coremedia.TimeScale) { objc.Call[objc.Void](m_, objc.Sel("setTimescale:"), value) } + +// The transform performed on the visual media data of the movie for display purposes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1388771-preferredtransform?language=objc +func (m_ MutableMovie) SetPreferredTransform(value coregraphics.AffineTransform) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredTransform:"), value) +} diff --git a/macos/avfoundation/mutable_movie_track.gen.go b/macos/avfoundation/mutable_movie_track.gen.go index 61d109eb..a813cf66 100644 --- a/macos/avfoundation/mutable_movie_track.gen.go +++ b/macos/avfoundation/mutable_movie_track.gen.go @@ -21,45 +21,45 @@ type _MutableMovieTrackClass struct { // An interface definition for the [MutableMovieTrack] class. type IMutableMovieTrack interface { IMovieTrack - InsertMediaTimeRangeIntoTimeRange(mediaTimeRange coremedia.TimeRange, trackTimeRange coremedia.TimeRange) bool - InsertTimeRangeOfTrackAtTimeCopySampleDataError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, copySampleData bool, outError unsafe.Pointer) bool - ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) RemoveTrackAssociationToTrackType(movieTrack IMovieTrack, trackAssociationType TrackAssociationType) AddTrackAssociationToTrackType(movieTrack IMovieTrack, trackAssociationType TrackAssociationType) - InsertEmptyTimeRange(timeRange coremedia.TimeRange) + InsertMediaTimeRangeIntoTimeRange(mediaTimeRange coremedia.TimeRange, trackTimeRange coremedia.TimeRange) bool + RemoveTimeRange(timeRange coremedia.TimeRange) AppendSampleBufferDecodeTimePresentationTimeError(sampleBuffer coremedia.SampleBufferRef, outDecodeTime *coremedia.Time, outPresentationTime *coremedia.Time, outError unsafe.Pointer) bool + InsertTimeRangeOfTrackAtTimeCopySampleDataError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, copySampleData bool, outError unsafe.Pointer) bool ReplaceFormatDescriptionWithFormatDescription(formatDescription coremedia.FormatDescriptionRef, newFormatDescription coremedia.FormatDescriptionRef) - RemoveTimeRange(timeRange coremedia.TimeRange) + ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) + InsertEmptyTimeRange(timeRange coremedia.TimeRange) Layer() int SetLayer(value int) - SetPreferredVolume(value float32) - ProductionApertureDimensions() coregraphics.Size - SetProductionApertureDimensions(value coregraphics.Size) PreferredMediaChunkSize() int SetPreferredMediaChunkSize(value int) - PreferredMediaChunkDuration() coremedia.Time - SetPreferredMediaChunkDuration(value coremedia.Time) - SetAlternateGroupID(value int) SetExtendedLanguageTag(value string) - Timescale() coremedia.TimeScale - SetTimescale(value coremedia.TimeScale) - SetLanguageCode(value string) - SetPreferredTransform(value coregraphics.AffineTransform) - SetNaturalSize(value coregraphics.Size) - SetEnabled(value bool) - HasProtectedContent() bool + ProductionApertureDimensions() coregraphics.Size + SetProductionApertureDimensions(value coregraphics.Size) IsModified() bool SetModified(value bool) - EncodedPixelsDimensions() coregraphics.Size - SetEncodedPixelsDimensions(value coregraphics.Size) - SetMetadata(value []IMetadataItem) PreferredMediaChunkAlignment() int SetPreferredMediaChunkAlignment(value int) - SetMediaDataStorage(value IMediaDataStorage) + SetPreferredVolume(value float32) + SetAlternateGroupID(value int) + SetMetadata(value []IMetadataItem) SampleReferenceBaseURL() foundation.URL SetSampleReferenceBaseURL(value foundation.IURL) + SetMediaDataStorage(value IMediaDataStorage) CleanApertureDimensions() coregraphics.Size SetCleanApertureDimensions(value coregraphics.Size) + SetNaturalSize(value coregraphics.Size) + EncodedPixelsDimensions() coregraphics.Size + SetEncodedPixelsDimensions(value coregraphics.Size) + PreferredMediaChunkDuration() coremedia.Time + SetPreferredMediaChunkDuration(value coremedia.Time) + HasProtectedContent() bool + SetLanguageCode(value string) + SetEnabled(value bool) + Timescale() coremedia.TimeScale + SetTimescale(value coremedia.TimeScale) + SetPreferredTransform(value coregraphics.AffineTransform) } // A mutable track that conforms to the QuickTime or ISO base media file format. [Full Topic] @@ -95,29 +95,6 @@ func (m_ MutableMovieTrack) Init() MutableMovieTrack { return rv } -// Inserts a reference to a media time range into a track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1638038-insertmediatimerange?language=objc -func (m_ MutableMovieTrack) InsertMediaTimeRangeIntoTimeRange(mediaTimeRange coremedia.TimeRange, trackTimeRange coremedia.TimeRange) bool { - rv := objc.Call[bool](m_, objc.Sel("insertMediaTimeRange:intoTimeRange:"), mediaTimeRange, trackTimeRange) - return rv -} - -// Inserts a portion of an asset track into the target movie. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1387665-inserttimerange?language=objc -func (m_ MutableMovieTrack) InsertTimeRangeOfTrackAtTimeCopySampleDataError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, copySampleData bool, outError unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofTrack:atTime:copySampleData:error:"), timeRange, track, startTime, copySampleData, outError) - return rv -} - -// Changes the duration of a time range in a track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1388618-scaletimerange?language=objc -func (m_ MutableMovieTrack) ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) { - objc.Call[objc.Void](m_, objc.Sel("scaleTimeRange:toDuration:"), timeRange, duration) -} - // Removes a specific type of track association between two tracks. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1389620-removetrackassociationtotrack?language=objc @@ -132,11 +109,19 @@ func (m_ MutableMovieTrack) AddTrackAssociationToTrackType(movieTrack IMovieTrac objc.Call[objc.Void](m_, objc.Sel("addTrackAssociationToTrack:type:"), movieTrack, trackAssociationType) } -// Adds an empty time range to a track. [Full Topic] +// Inserts a reference to a media time range into a track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1389441-insertemptytimerange?language=objc -func (m_ MutableMovieTrack) InsertEmptyTimeRange(timeRange coremedia.TimeRange) { - objc.Call[objc.Void](m_, objc.Sel("insertEmptyTimeRange:"), timeRange) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1638038-insertmediatimerange?language=objc +func (m_ MutableMovieTrack) InsertMediaTimeRangeIntoTimeRange(mediaTimeRange coremedia.TimeRange, trackTimeRange coremedia.TimeRange) bool { + rv := objc.Call[bool](m_, objc.Sel("insertMediaTimeRange:intoTimeRange:"), mediaTimeRange, trackTimeRange) + return rv +} + +// Removes the specified time range from a track. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1385962-removetimerange?language=objc +func (m_ MutableMovieTrack) RemoveTimeRange(timeRange coremedia.TimeRange) { + objc.Call[objc.Void](m_, objc.Sel("removeTimeRange:"), timeRange) } // Appends sample data to a media file and adds sample references for the added data to a track’s media sample tables. [Full Topic] @@ -147,6 +132,14 @@ func (m_ MutableMovieTrack) AppendSampleBufferDecodeTimePresentationTimeError(sa return rv } +// Inserts a portion of an asset track into the target movie. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1387665-inserttimerange?language=objc +func (m_ MutableMovieTrack) InsertTimeRangeOfTrackAtTimeCopySampleDataError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, copySampleData bool, outError unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofTrack:atTime:copySampleData:error:"), timeRange, track, startTime, copySampleData, outError) + return rv +} + // Replaces the track’s format description with a new format description. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/2876160-replaceformatdescription?language=objc @@ -154,11 +147,18 @@ func (m_ MutableMovieTrack) ReplaceFormatDescriptionWithFormatDescription(format objc.Call[objc.Void](m_, objc.Sel("replaceFormatDescription:withFormatDescription:"), formatDescription, newFormatDescription) } -// Removes the specified time range from a track. [Full Topic] +// Changes the duration of a time range in a track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1385962-removetimerange?language=objc -func (m_ MutableMovieTrack) RemoveTimeRange(timeRange coremedia.TimeRange) { - objc.Call[objc.Void](m_, objc.Sel("removeTimeRange:"), timeRange) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1388618-scaletimerange?language=objc +func (m_ MutableMovieTrack) ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) { + objc.Call[objc.Void](m_, objc.Sel("scaleTimeRange:toDuration:"), timeRange, duration) +} + +// Adds an empty time range to a track. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1389441-insertemptytimerange?language=objc +func (m_ MutableMovieTrack) InsertEmptyTimeRange(timeRange coremedia.TimeRange) { + objc.Call[objc.Void](m_, objc.Sel("insertEmptyTimeRange:"), timeRange) } // The layer level for the visual media of the track. [Full Topic] @@ -176,11 +176,26 @@ func (m_ MutableMovieTrack) SetLayer(value int) { objc.Call[objc.Void](m_, objc.Sel("setLayer:"), value) } -// The preferred volume for the audible medata data of the track. [Full Topic] +// The maximum size to use for each chunk of sample data written to the file for file types that support media chunk duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390391-preferredvolume?language=objc -func (m_ MutableMovieTrack) SetPreferredVolume(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setPreferredVolume:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390149-preferredmediachunksize?language=objc +func (m_ MutableMovieTrack) PreferredMediaChunkSize() int { + rv := objc.Call[int](m_, objc.Sel("preferredMediaChunkSize")) + return rv +} + +// The maximum size to use for each chunk of sample data written to the file for file types that support media chunk duration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390149-preferredmediachunksize?language=objc +func (m_ MutableMovieTrack) SetPreferredMediaChunkSize(value int) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredMediaChunkSize:"), value) +} + +// An IETF BCP 47 language identifier that identifies the language tag associated with the track. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1389056-extendedlanguagetag?language=objc +func (m_ MutableMovieTrack) SetExtendedLanguageTag(value string) { + objc.Call[objc.Void](m_, objc.Sel("setExtendedLanguageTag:"), value) } // The production aperture dimensions of the track. [Full Topic] @@ -198,34 +213,41 @@ func (m_ MutableMovieTrack) SetProductionApertureDimensions(value coregraphics.S objc.Call[objc.Void](m_, objc.Sel("setProductionApertureDimensions:"), value) } -// The maximum size to use for each chunk of sample data written to the file for file types that support media chunk duration. [Full Topic] +// A Boolean value that indicates whether a track is in a modified state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390149-preferredmediachunksize?language=objc -func (m_ MutableMovieTrack) PreferredMediaChunkSize() int { - rv := objc.Call[int](m_, objc.Sel("preferredMediaChunkSize")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390201-modified?language=objc +func (m_ MutableMovieTrack) IsModified() bool { + rv := objc.Call[bool](m_, objc.Sel("isModified")) return rv } -// The maximum size to use for each chunk of sample data written to the file for file types that support media chunk duration. [Full Topic] +// A Boolean value that indicates whether a track is in a modified state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390149-preferredmediachunksize?language=objc -func (m_ MutableMovieTrack) SetPreferredMediaChunkSize(value int) { - objc.Call[objc.Void](m_, objc.Sel("setPreferredMediaChunkSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390201-modified?language=objc +func (m_ MutableMovieTrack) SetModified(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setModified:"), value) } -// The maximum duration to use for each chunk of sample data written to the file for file types that support media chunk duration. [Full Topic] +// The boundary for media chunk alignment for file types that support media chunk alignment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390292-preferredmediachunkduration?language=objc -func (m_ MutableMovieTrack) PreferredMediaChunkDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](m_, objc.Sel("preferredMediaChunkDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390504-preferredmediachunkalignment?language=objc +func (m_ MutableMovieTrack) PreferredMediaChunkAlignment() int { + rv := objc.Call[int](m_, objc.Sel("preferredMediaChunkAlignment")) return rv } -// The maximum duration to use for each chunk of sample data written to the file for file types that support media chunk duration. [Full Topic] +// The boundary for media chunk alignment for file types that support media chunk alignment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390292-preferredmediachunkduration?language=objc -func (m_ MutableMovieTrack) SetPreferredMediaChunkDuration(value coremedia.Time) { - objc.Call[objc.Void](m_, objc.Sel("setPreferredMediaChunkDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390504-preferredmediachunkalignment?language=objc +func (m_ MutableMovieTrack) SetPreferredMediaChunkAlignment(value int) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredMediaChunkAlignment:"), value) +} + +// The preferred volume for the audible medata data of the track. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390391-preferredvolume?language=objc +func (m_ MutableMovieTrack) SetPreferredVolume(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredVolume:"), value) } // A number that identifies the track as a member of a particular alternate group. [Full Topic] @@ -235,77 +257,55 @@ func (m_ MutableMovieTrack) SetAlternateGroupID(value int) { objc.Call[objc.Void](m_, objc.Sel("setAlternateGroupID:"), value) } -// An IETF BCP 47 language identifier that identifies the language tag associated with the track. [Full Topic] +// An array of metadata stored by the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1389056-extendedlanguagetag?language=objc -func (m_ MutableMovieTrack) SetExtendedLanguageTag(value string) { - objc.Call[objc.Void](m_, objc.Sel("setExtendedLanguageTag:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390023-metadata?language=objc +func (m_ MutableMovieTrack) SetMetadata(value []IMetadataItem) { + objc.Call[objc.Void](m_, objc.Sel("setMetadata:"), value) } -// The time scale for tracks that contain the moov atom. [Full Topic] +// The base URL for sample references. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1388055-timescale?language=objc -func (m_ MutableMovieTrack) Timescale() coremedia.TimeScale { - rv := objc.Call[coremedia.TimeScale](m_, objc.Sel("timescale")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1385583-samplereferencebaseurl?language=objc +func (m_ MutableMovieTrack) SampleReferenceBaseURL() foundation.URL { + rv := objc.Call[foundation.URL](m_, objc.Sel("sampleReferenceBaseURL")) return rv } -// The time scale for tracks that contain the moov atom. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1388055-timescale?language=objc -func (m_ MutableMovieTrack) SetTimescale(value coremedia.TimeScale) { - objc.Call[objc.Void](m_, objc.Sel("setTimescale:"), value) -} - -// A ISO 639-2/T language code that indicates the language associated with the track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1389736-languagecode?language=objc -func (m_ MutableMovieTrack) SetLanguageCode(value string) { - objc.Call[objc.Void](m_, objc.Sel("setLanguageCode:"), value) -} - -// The transform performed on the visual media data of the track for display purposes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1386593-preferredtransform?language=objc -func (m_ MutableMovieTrack) SetPreferredTransform(value coregraphics.AffineTransform) { - objc.Call[objc.Void](m_, objc.Sel("setPreferredTransform:"), value) -} - -// The dimensions used to display the visual media data for the track. [Full Topic] +// The base URL for sample references. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1385900-naturalsize?language=objc -func (m_ MutableMovieTrack) SetNaturalSize(value coregraphics.Size) { - objc.Call[objc.Void](m_, objc.Sel("setNaturalSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1385583-samplereferencebaseurl?language=objc +func (m_ MutableMovieTrack) SetSampleReferenceBaseURL(value foundation.IURL) { + objc.Call[objc.Void](m_, objc.Sel("setSampleReferenceBaseURL:"), value) } -// A Boolean value that indicates whether the track is enabled by default for presentation. [Full Topic] +// A storage container for the media data to be added to a track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1386340-enabled?language=objc -func (m_ MutableMovieTrack) SetEnabled(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1386532-mediadatastorage?language=objc +func (m_ MutableMovieTrack) SetMediaDataStorage(value IMediaDataStorage) { + objc.Call[objc.Void](m_, objc.Sel("setMediaDataStorage:"), value) } -// A Boolean value that indicates whether a track contains protected content. [Full Topic] +// The clean aperture dimension of the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1389542-hasprotectedcontent?language=objc -func (m_ MutableMovieTrack) HasProtectedContent() bool { - rv := objc.Call[bool](m_, objc.Sel("hasProtectedContent")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1386454-cleanaperturedimensions?language=objc +func (m_ MutableMovieTrack) CleanApertureDimensions() coregraphics.Size { + rv := objc.Call[coregraphics.Size](m_, objc.Sel("cleanApertureDimensions")) return rv } -// A Boolean value that indicates whether a track is in a modified state. [Full Topic] +// The clean aperture dimension of the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390201-modified?language=objc -func (m_ MutableMovieTrack) IsModified() bool { - rv := objc.Call[bool](m_, objc.Sel("isModified")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1386454-cleanaperturedimensions?language=objc +func (m_ MutableMovieTrack) SetCleanApertureDimensions(value coregraphics.Size) { + objc.Call[objc.Void](m_, objc.Sel("setCleanApertureDimensions:"), value) } -// A Boolean value that indicates whether a track is in a modified state. [Full Topic] +// The dimensions used to display the visual media data for the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390201-modified?language=objc -func (m_ MutableMovieTrack) SetModified(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setModified:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1385900-naturalsize?language=objc +func (m_ MutableMovieTrack) SetNaturalSize(value coregraphics.Size) { + objc.Call[objc.Void](m_, objc.Sel("setNaturalSize:"), value) } // The encoded pixels dimensions of the track. [Full Topic] @@ -323,61 +323,61 @@ func (m_ MutableMovieTrack) SetEncodedPixelsDimensions(value coregraphics.Size) objc.Call[objc.Void](m_, objc.Sel("setEncodedPixelsDimensions:"), value) } -// An array of metadata stored by the track. [Full Topic] +// The maximum duration to use for each chunk of sample data written to the file for file types that support media chunk duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390023-metadata?language=objc -func (m_ MutableMovieTrack) SetMetadata(value []IMetadataItem) { - objc.Call[objc.Void](m_, objc.Sel("setMetadata:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390292-preferredmediachunkduration?language=objc +func (m_ MutableMovieTrack) PreferredMediaChunkDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](m_, objc.Sel("preferredMediaChunkDuration")) + return rv } -// The boundary for media chunk alignment for file types that support media chunk alignment. [Full Topic] +// The maximum duration to use for each chunk of sample data written to the file for file types that support media chunk duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390504-preferredmediachunkalignment?language=objc -func (m_ MutableMovieTrack) PreferredMediaChunkAlignment() int { - rv := objc.Call[int](m_, objc.Sel("preferredMediaChunkAlignment")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390292-preferredmediachunkduration?language=objc +func (m_ MutableMovieTrack) SetPreferredMediaChunkDuration(value coremedia.Time) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredMediaChunkDuration:"), value) } -// The boundary for media chunk alignment for file types that support media chunk alignment. [Full Topic] +// A Boolean value that indicates whether a track contains protected content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1390504-preferredmediachunkalignment?language=objc -func (m_ MutableMovieTrack) SetPreferredMediaChunkAlignment(value int) { - objc.Call[objc.Void](m_, objc.Sel("setPreferredMediaChunkAlignment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1389542-hasprotectedcontent?language=objc +func (m_ MutableMovieTrack) HasProtectedContent() bool { + rv := objc.Call[bool](m_, objc.Sel("hasProtectedContent")) + return rv } -// A storage container for the media data to be added to a track. [Full Topic] +// A ISO 639-2/T language code that indicates the language associated with the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1386532-mediadatastorage?language=objc -func (m_ MutableMovieTrack) SetMediaDataStorage(value IMediaDataStorage) { - objc.Call[objc.Void](m_, objc.Sel("setMediaDataStorage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1389736-languagecode?language=objc +func (m_ MutableMovieTrack) SetLanguageCode(value string) { + objc.Call[objc.Void](m_, objc.Sel("setLanguageCode:"), value) } -// The base URL for sample references. [Full Topic] +// A Boolean value that indicates whether the track is enabled by default for presentation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1385583-samplereferencebaseurl?language=objc -func (m_ MutableMovieTrack) SampleReferenceBaseURL() foundation.URL { - rv := objc.Call[foundation.URL](m_, objc.Sel("sampleReferenceBaseURL")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1386340-enabled?language=objc +func (m_ MutableMovieTrack) SetEnabled(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setEnabled:"), value) } -// The base URL for sample references. [Full Topic] +// The time scale for tracks that contain the moov atom. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1385583-samplereferencebaseurl?language=objc -func (m_ MutableMovieTrack) SetSampleReferenceBaseURL(value foundation.IURL) { - objc.Call[objc.Void](m_, objc.Sel("setSampleReferenceBaseURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1388055-timescale?language=objc +func (m_ MutableMovieTrack) Timescale() coremedia.TimeScale { + rv := objc.Call[coremedia.TimeScale](m_, objc.Sel("timescale")) + return rv } -// The clean aperture dimension of the track. [Full Topic] +// The time scale for tracks that contain the moov atom. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1386454-cleanaperturedimensions?language=objc -func (m_ MutableMovieTrack) CleanApertureDimensions() coregraphics.Size { - rv := objc.Call[coregraphics.Size](m_, objc.Sel("cleanApertureDimensions")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1388055-timescale?language=objc +func (m_ MutableMovieTrack) SetTimescale(value coremedia.TimeScale) { + objc.Call[objc.Void](m_, objc.Sel("setTimescale:"), value) } -// The clean aperture dimension of the track. [Full Topic] +// The transform performed on the visual media data of the track for display purposes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1386454-cleanaperturedimensions?language=objc -func (m_ MutableMovieTrack) SetCleanApertureDimensions(value coregraphics.Size) { - objc.Call[objc.Void](m_, objc.Sel("setCleanApertureDimensions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1386593-preferredtransform?language=objc +func (m_ MutableMovieTrack) SetPreferredTransform(value coregraphics.AffineTransform) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredTransform:"), value) } diff --git a/macos/avfoundation/mutable_timed_metadata_group.gen.go b/macos/avfoundation/mutable_timed_metadata_group.gen.go index 3066ad81..3a892161 100644 --- a/macos/avfoundation/mutable_timed_metadata_group.gen.go +++ b/macos/avfoundation/mutable_timed_metadata_group.gen.go @@ -56,30 +56,30 @@ func (m_ MutableTimedMetadataGroup) Init() MutableTimedMetadataGroup { return rv } -func (m_ MutableTimedMetadataGroup) InitWithItemsTimeRange(items []IMetadataItem, timeRange coremedia.TimeRange) MutableTimedMetadataGroup { - rv := objc.Call[MutableTimedMetadataGroup](m_, objc.Sel("initWithItems:timeRange:"), items, timeRange) +func (m_ MutableTimedMetadataGroup) InitWithSampleBuffer(sampleBuffer coremedia.SampleBufferRef) MutableTimedMetadataGroup { + rv := objc.Call[MutableTimedMetadataGroup](m_, objc.Sel("initWithSampleBuffer:"), sampleBuffer) return rv } -// Creates a timed metadata group initialized with the given metadata items. [Full Topic] +// Creates a timed metadata group with a sample buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtimedmetadatagroup/1389632-initwithitems?language=objc -func NewMutableTimedMetadataGroupWithItemsTimeRange(items []IMetadataItem, timeRange coremedia.TimeRange) MutableTimedMetadataGroup { - instance := MutableTimedMetadataGroupClass.Alloc().InitWithItemsTimeRange(items, timeRange) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtimedmetadatagroup/1387128-initwithsamplebuffer?language=objc +func NewMutableTimedMetadataGroupWithSampleBuffer(sampleBuffer coremedia.SampleBufferRef) MutableTimedMetadataGroup { + instance := MutableTimedMetadataGroupClass.Alloc().InitWithSampleBuffer(sampleBuffer) instance.Autorelease() return instance } -func (m_ MutableTimedMetadataGroup) InitWithSampleBuffer(sampleBuffer coremedia.SampleBufferRef) MutableTimedMetadataGroup { - rv := objc.Call[MutableTimedMetadataGroup](m_, objc.Sel("initWithSampleBuffer:"), sampleBuffer) +func (m_ MutableTimedMetadataGroup) InitWithItemsTimeRange(items []IMetadataItem, timeRange coremedia.TimeRange) MutableTimedMetadataGroup { + rv := objc.Call[MutableTimedMetadataGroup](m_, objc.Sel("initWithItems:timeRange:"), items, timeRange) return rv } -// Creates a timed metadata group with a sample buffer. [Full Topic] +// Creates a timed metadata group initialized with the given metadata items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtimedmetadatagroup/1387128-initwithsamplebuffer?language=objc -func NewMutableTimedMetadataGroupWithSampleBuffer(sampleBuffer coremedia.SampleBufferRef) MutableTimedMetadataGroup { - instance := MutableTimedMetadataGroupClass.Alloc().InitWithSampleBuffer(sampleBuffer) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtimedmetadatagroup/1389632-initwithitems?language=objc +func NewMutableTimedMetadataGroupWithItemsTimeRange(items []IMetadataItem, timeRange coremedia.TimeRange) MutableTimedMetadataGroup { + instance := MutableTimedMetadataGroupClass.Alloc().InitWithItemsTimeRange(items, timeRange) instance.Autorelease() return instance } diff --git a/macos/avfoundation/mutable_video_composition.gen.go b/macos/avfoundation/mutable_video_composition.gen.go index 520572e3..edb083bc 100644 --- a/macos/avfoundation/mutable_video_composition.gen.go +++ b/macos/avfoundation/mutable_video_composition.gen.go @@ -21,16 +21,16 @@ type _MutableVideoCompositionClass struct { // An interface definition for the [MutableVideoComposition] class. type IMutableVideoComposition interface { IVideoComposition - SetInstructions(value []objc.IObject) - SetCustomVideoCompositorClass(value objc.IClass) - SetAnimationTool(value IVideoCompositionCoreAnimationTool) SetColorPrimaries(value string) - SetSourceTrackIDForFrameTiming(value objc.IObject) + SetColorYCbCrMatrix(value string) + SetCustomVideoCompositorClass(value objc.IClass) + SetFrameDuration(value coremedia.Time) + SetInstructions(value []objc.IObject) SetSourceSampleDataTrackIDs(value []foundation.INumber) + SetAnimationTool(value IVideoCompositionCoreAnimationTool) SetColorTransferFunction(value string) - SetColorYCbCrMatrix(value string) + SetSourceTrackIDForFrameTiming(value objc.IObject) SetRenderSize(value coregraphics.Size) - SetFrameDuration(value coremedia.Time) SetRenderScale(value float32) } @@ -82,11 +82,18 @@ func MutableVideoComposition_VideoComposition() MutableVideoComposition { return MutableVideoCompositionClass.VideoComposition() } -// The video composition instructions. [Full Topic] +// The color primaries used for video composition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1385815-instructions?language=objc -func (m_ MutableVideoComposition) SetInstructions(value []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setInstructions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1643234-colorprimaries?language=objc +func (m_ MutableVideoComposition) SetColorPrimaries(value string) { + objc.Call[objc.Void](m_, objc.Sel("setColorPrimaries:"), value) +} + +// The YCbCr matrix used for video composition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1643231-colorycbcrmatrix?language=objc +func (m_ MutableVideoComposition) SetColorYCbCrMatrix(value string) { + objc.Call[objc.Void](m_, objc.Sel("setColorYCbCrMatrix:"), value) } // The custom compositor class to use. [Full Topic] @@ -96,25 +103,18 @@ func (m_ MutableVideoComposition) SetCustomVideoCompositorClass(value objc.IClas objc.Call[objc.Void](m_, objc.Sel("setCustomVideoCompositorClass:"), value) } -// A video composition tool to use with Core Animation in offline rendering. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1390395-animationtool?language=objc -func (m_ MutableVideoComposition) SetAnimationTool(value IVideoCompositionCoreAnimationTool) { - objc.Call[objc.Void](m_, objc.Sel("setAnimationTool:"), value) -} - -// The color primaries used for video composition. [Full Topic] +// A time interval for which the video composition should render composed video frames. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1643234-colorprimaries?language=objc -func (m_ MutableVideoComposition) SetColorPrimaries(value string) { - objc.Call[objc.Void](m_, objc.Sel("setColorPrimaries:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1390059-frameduration?language=objc +func (m_ MutableVideoComposition) SetFrameDuration(value coremedia.Time) { + objc.Call[objc.Void](m_, objc.Sel("setFrameDuration:"), value) } -// An identifier of the source track from which the video composition derives frame timing. [Full Topic] +// The video composition instructions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/2873799-sourcetrackidforframetiming?language=objc -func (m_ MutableVideoComposition) SetSourceTrackIDForFrameTiming(value objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setSourceTrackIDForFrameTiming:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1385815-instructions?language=objc +func (m_ MutableVideoComposition) SetInstructions(value []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setInstructions:"), value) } // The identifiers of source sample data tracks in the composition that the compositor requires to compose frames. [Full Topic] @@ -124,6 +124,13 @@ func (m_ MutableVideoComposition) SetSourceSampleDataTrackIDs(value []foundation objc.Call[objc.Void](m_, objc.Sel("setSourceSampleDataTrackIDs:"), value) } +// A video composition tool to use with Core Animation in offline rendering. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1390395-animationtool?language=objc +func (m_ MutableVideoComposition) SetAnimationTool(value IVideoCompositionCoreAnimationTool) { + objc.Call[objc.Void](m_, objc.Sel("setAnimationTool:"), value) +} + // The transfer function used for video composition. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1643237-colortransferfunction?language=objc @@ -131,11 +138,11 @@ func (m_ MutableVideoComposition) SetColorTransferFunction(value string) { objc.Call[objc.Void](m_, objc.Sel("setColorTransferFunction:"), value) } -// The YCbCr matrix used for video composition. [Full Topic] +// An identifier of the source track from which the video composition derives frame timing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1643231-colorycbcrmatrix?language=objc -func (m_ MutableVideoComposition) SetColorYCbCrMatrix(value string) { - objc.Call[objc.Void](m_, objc.Sel("setColorYCbCrMatrix:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/2873799-sourcetrackidforframetiming?language=objc +func (m_ MutableVideoComposition) SetSourceTrackIDForFrameTiming(value objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setSourceTrackIDForFrameTiming:"), value) } // The size at which the video composition should render. [Full Topic] @@ -145,13 +152,6 @@ func (m_ MutableVideoComposition) SetRenderSize(value coregraphics.Size) { objc.Call[objc.Void](m_, objc.Sel("setRenderSize:"), value) } -// A time interval for which the video composition should render composed video frames. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1390059-frameduration?language=objc -func (m_ MutableVideoComposition) SetFrameDuration(value coremedia.Time) { - objc.Call[objc.Void](m_, objc.Sel("setFrameDuration:"), value) -} - // The scale at which the video composition should render. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1615787-renderscale?language=objc diff --git a/macos/avfoundation/mutable_video_composition_instruction.gen.go b/macos/avfoundation/mutable_video_composition_instruction.gen.go index 5e670953..c5cd9729 100644 --- a/macos/avfoundation/mutable_video_composition_instruction.gen.go +++ b/macos/avfoundation/mutable_video_composition_instruction.gen.go @@ -21,11 +21,11 @@ type _MutableVideoCompositionInstructionClass struct { // An interface definition for the [MutableVideoCompositionInstruction] class. type IMutableVideoCompositionInstruction interface { IVideoCompositionInstruction - SetEnablePostProcessing(value bool) + SetRequiredSourceSampleDataTrackIDs(value []foundation.INumber) SetLayerInstructions(value []IVideoCompositionLayerInstruction) SetBackgroundColor(value coregraphics.ColorRef) - SetRequiredSourceSampleDataTrackIDs(value []foundation.INumber) SetTimeRange(value coremedia.TimeRange) + SetEnablePostProcessing(value bool) } // A mutable video composition instruction subclass. [Full Topic] @@ -73,11 +73,11 @@ func (m_ MutableVideoCompositionInstruction) Init() MutableVideoCompositionInstr return rv } -// A Boolean value that indicates whether the instruction requires post processing. [Full Topic] +// The track identifiers of source sample data that the compositor requires to compose frames for the instruction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositioninstruction/1385876-enablepostprocessing?language=objc -func (m_ MutableVideoCompositionInstruction) SetEnablePostProcessing(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setEnablePostProcessing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositioninstruction/3750317-requiredsourcesampledatatrackids?language=objc +func (m_ MutableVideoCompositionInstruction) SetRequiredSourceSampleDataTrackIDs(value []foundation.INumber) { + objc.Call[objc.Void](m_, objc.Sel("setRequiredSourceSampleDataTrackIDs:"), value) } // Instructions that specify how to layer and compose video frames from source tracks. [Full Topic] @@ -94,16 +94,16 @@ func (m_ MutableVideoCompositionInstruction) SetBackgroundColor(value coregraphi objc.Call[objc.Void](m_, objc.Sel("setBackgroundColor:"), value) } -// The track identifiers of source sample data that the compositor requires to compose frames for the instruction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositioninstruction/3750317-requiredsourcesampledatatrackids?language=objc -func (m_ MutableVideoCompositionInstruction) SetRequiredSourceSampleDataTrackIDs(value []foundation.INumber) { - objc.Call[objc.Void](m_, objc.Sel("setRequiredSourceSampleDataTrackIDs:"), value) -} - // The time range to which the instruction applies. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositioninstruction/1390418-timerange?language=objc func (m_ MutableVideoCompositionInstruction) SetTimeRange(value coremedia.TimeRange) { objc.Call[objc.Void](m_, objc.Sel("setTimeRange:"), value) } + +// A Boolean value that indicates whether the instruction requires post processing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositioninstruction/1385876-enablepostprocessing?language=objc +func (m_ MutableVideoCompositionInstruction) SetEnablePostProcessing(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setEnablePostProcessing:"), value) +} diff --git a/macos/avfoundation/mutable_video_composition_layer_instruction.gen.go b/macos/avfoundation/mutable_video_composition_layer_instruction.gen.go index 075f2663..87362071 100644 --- a/macos/avfoundation/mutable_video_composition_layer_instruction.gen.go +++ b/macos/avfoundation/mutable_video_composition_layer_instruction.gen.go @@ -20,12 +20,12 @@ type _MutableVideoCompositionLayerInstructionClass struct { // An interface definition for the [MutableVideoCompositionLayerInstruction] class. type IMutableVideoCompositionLayerInstruction interface { IVideoCompositionLayerInstruction - SetOpacityAtTime(opacity float32, time coremedia.Time) + SetCropRectangleRampFromStartCropRectangleToEndCropRectangleTimeRange(startCropRectangle coregraphics.Rect, endCropRectangle coregraphics.Rect, timeRange coremedia.TimeRange) SetOpacityRampFromStartOpacityToEndOpacityTimeRange(startOpacity float32, endOpacity float32, timeRange coremedia.TimeRange) + SetCropRectangleAtTime(cropRectangle coregraphics.Rect, time coremedia.Time) + SetOpacityAtTime(opacity float32, time coremedia.Time) SetTransformRampFromStartTransformToEndTransformTimeRange(startTransform coregraphics.AffineTransform, endTransform coregraphics.AffineTransform, timeRange coremedia.TimeRange) - SetCropRectangleRampFromStartCropRectangleToEndCropRectangleTimeRange(startCropRectangle coregraphics.Rect, endCropRectangle coregraphics.Rect, timeRange coremedia.TimeRange) SetTransformAtTime(transform coregraphics.AffineTransform, time coremedia.Time) - SetCropRectangleAtTime(cropRectangle coregraphics.Rect, time coremedia.Time) SetTrackID(value objc.IObject) } @@ -54,18 +54,6 @@ func MutableVideoCompositionLayerInstruction_VideoCompositionLayerInstruction() return MutableVideoCompositionLayerInstructionClass.VideoCompositionLayerInstruction() } -func (mc _MutableVideoCompositionLayerInstructionClass) VideoCompositionLayerInstructionWithAssetTrack(track IAssetTrack) MutableVideoCompositionLayerInstruction { - rv := objc.Call[MutableVideoCompositionLayerInstruction](mc, objc.Sel("videoCompositionLayerInstructionWithAssetTrack:"), track) - return rv -} - -// Creates a new mutable video composition layer instruction for the given track. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1389691-videocompositionlayerinstruction?language=objc -func MutableVideoCompositionLayerInstruction_VideoCompositionLayerInstructionWithAssetTrack(track IAssetTrack) MutableVideoCompositionLayerInstruction { - return MutableVideoCompositionLayerInstructionClass.VideoCompositionLayerInstructionWithAssetTrack(track) -} - func (mc _MutableVideoCompositionLayerInstructionClass) Alloc() MutableVideoCompositionLayerInstruction { rv := objc.Call[MutableVideoCompositionLayerInstruction](mc, objc.Sel("alloc")) return rv @@ -86,11 +74,11 @@ func (m_ MutableVideoCompositionLayerInstruction) Init() MutableVideoComposition return rv } -// Sets the opacity value at a specific time within the time range of the instruction. [Full Topic] +// Sets a crop rectangle ramp to apply during the specified time range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1390758-setopacity?language=objc -func (m_ MutableVideoCompositionLayerInstruction) SetOpacityAtTime(opacity float32, time coremedia.Time) { - objc.Call[objc.Void](m_, objc.Sel("setOpacity:atTime:"), opacity, time) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1385677-setcroprectanglerampfromstartcro?language=objc +func (m_ MutableVideoCompositionLayerInstruction) SetCropRectangleRampFromStartCropRectangleToEndCropRectangleTimeRange(startCropRectangle coregraphics.Rect, endCropRectangle coregraphics.Rect, timeRange coremedia.TimeRange) { + objc.Call[objc.Void](m_, objc.Sel("setCropRectangleRampFromStartCropRectangle:toEndCropRectangle:timeRange:"), startCropRectangle, endCropRectangle, timeRange) } // Sets an opacity ramp to apply during a specified time range. [Full Topic] @@ -100,6 +88,20 @@ func (m_ MutableVideoCompositionLayerInstruction) SetOpacityRampFromStartOpacity objc.Call[objc.Void](m_, objc.Sel("setOpacityRampFromStartOpacity:toEndOpacity:timeRange:"), startOpacity, endOpacity, timeRange) } +// Sets the crop rectangle value at a time within the time range of the instruction. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1387402-setcroprectangle?language=objc +func (m_ MutableVideoCompositionLayerInstruction) SetCropRectangleAtTime(cropRectangle coregraphics.Rect, time coremedia.Time) { + objc.Call[objc.Void](m_, objc.Sel("setCropRectangle:atTime:"), cropRectangle, time) +} + +// Sets the opacity value at a specific time within the time range of the instruction. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1390758-setopacity?language=objc +func (m_ MutableVideoCompositionLayerInstruction) SetOpacityAtTime(opacity float32, time coremedia.Time) { + objc.Call[objc.Void](m_, objc.Sel("setOpacity:atTime:"), opacity, time) +} + // Sets a transform ramp to apply during a given time range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1388192-settransformrampfromstarttransfo?language=objc @@ -107,13 +109,6 @@ func (m_ MutableVideoCompositionLayerInstruction) SetTransformRampFromStartTrans objc.Call[objc.Void](m_, objc.Sel("setTransformRampFromStartTransform:toEndTransform:timeRange:"), startTransform, endTransform, timeRange) } -// Sets a crop rectangle ramp to apply during the specified time range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1385677-setcroprectanglerampfromstartcro?language=objc -func (m_ MutableVideoCompositionLayerInstruction) SetCropRectangleRampFromStartCropRectangleToEndCropRectangleTimeRange(startCropRectangle coregraphics.Rect, endCropRectangle coregraphics.Rect, timeRange coremedia.TimeRange) { - objc.Call[objc.Void](m_, objc.Sel("setCropRectangleRampFromStartCropRectangle:toEndCropRectangle:timeRange:"), startCropRectangle, endCropRectangle, timeRange) -} - // Sets the transform value at a time within the time range of the instruction. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1390899-settransform?language=objc @@ -121,13 +116,6 @@ func (m_ MutableVideoCompositionLayerInstruction) SetTransformAtTime(transform c objc.Call[objc.Void](m_, objc.Sel("setTransform:atTime:"), transform, time) } -// Sets the crop rectangle value at a time within the time range of the instruction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1387402-setcroprectangle?language=objc -func (m_ MutableVideoCompositionLayerInstruction) SetCropRectangleAtTime(cropRectangle coregraphics.Rect, time coremedia.Time) { - objc.Call[objc.Void](m_, objc.Sel("setCropRectangle:atTime:"), cropRectangle, time) -} - // The track identifier of the source track to which the compositor applies the instruction. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1387222-trackid?language=objc diff --git a/macos/avfoundation/output_settings_assistant.gen.go b/macos/avfoundation/output_settings_assistant.gen.go index 311da117..ff0d1347 100644 --- a/macos/avfoundation/output_settings_assistant.gen.go +++ b/macos/avfoundation/output_settings_assistant.gen.go @@ -19,17 +19,17 @@ type _OutputSettingsAssistantClass struct { // An interface definition for the [OutputSettingsAssistant] class. type IOutputSettingsAssistant interface { objc.IObject - SourceVideoMinFrameDuration() coremedia.Time - SetSourceVideoMinFrameDuration(value coremedia.Time) SourceVideoFormat() coremedia.VideoFormatDescriptionRef SetSourceVideoFormat(value coremedia.VideoFormatDescriptionRef) - SourceAudioFormat() coremedia.AudioFormatDescriptionRef - SetSourceAudioFormat(value coremedia.AudioFormatDescriptionRef) + SourceVideoMinFrameDuration() coremedia.Time + SetSourceVideoMinFrameDuration(value coremedia.Time) + SourceVideoAverageFrameDuration() coremedia.Time + SetSourceVideoAverageFrameDuration(value coremedia.Time) VideoSettings() map[string]objc.Object AudioSettings() map[string]objc.Object OutputFileType() FileType - SourceVideoAverageFrameDuration() coremedia.Time - SetSourceVideoAverageFrameDuration(value coremedia.Time) + SourceAudioFormat() coremedia.AudioFormatDescriptionRef + SetSourceAudioFormat(value coremedia.AudioFormatDescriptionRef) } // An object that builds audio and video output settings dictionaries. [Full Topic] @@ -92,21 +92,6 @@ func OutputSettingsAssistant_AvailableOutputSettingsPresets() []OutputSettingsPr return OutputSettingsAssistantClass.AvailableOutputSettingsPresets() } -// A time value that describes the minimum frame duration of the video data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1386812-sourcevideominframeduration?language=objc -func (o_ OutputSettingsAssistant) SourceVideoMinFrameDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](o_, objc.Sel("sourceVideoMinFrameDuration")) - return rv -} - -// A time value that describes the minimum frame duration of the video data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1386812-sourcevideominframeduration?language=objc -func (o_ OutputSettingsAssistant) SetSourceVideoMinFrameDuration(value coremedia.Time) { - objc.Call[objc.Void](o_, objc.Sel("setSourceVideoMinFrameDuration:"), value) -} - // The format of the source video data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1387885-sourcevideoformat?language=objc @@ -122,19 +107,34 @@ func (o_ OutputSettingsAssistant) SetSourceVideoFormat(value coremedia.VideoForm objc.Call[objc.Void](o_, objc.Sel("setSourceVideoFormat:"), value) } -// The format of the source audio data. [Full Topic] +// A time value that describes the minimum frame duration of the video data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1390673-sourceaudioformat?language=objc -func (o_ OutputSettingsAssistant) SourceAudioFormat() coremedia.AudioFormatDescriptionRef { - rv := objc.Call[coremedia.AudioFormatDescriptionRef](o_, objc.Sel("sourceAudioFormat")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1386812-sourcevideominframeduration?language=objc +func (o_ OutputSettingsAssistant) SourceVideoMinFrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](o_, objc.Sel("sourceVideoMinFrameDuration")) return rv } -// The format of the source audio data. [Full Topic] +// A time value that describes the minimum frame duration of the video data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1390673-sourceaudioformat?language=objc -func (o_ OutputSettingsAssistant) SetSourceAudioFormat(value coremedia.AudioFormatDescriptionRef) { - objc.Call[objc.Void](o_, objc.Sel("setSourceAudioFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1386812-sourcevideominframeduration?language=objc +func (o_ OutputSettingsAssistant) SetSourceVideoMinFrameDuration(value coremedia.Time) { + objc.Call[objc.Void](o_, objc.Sel("setSourceVideoMinFrameDuration:"), value) +} + +// A time value that describes the average frame duration of the video data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1387414-sourcevideoaverageframeduration?language=objc +func (o_ OutputSettingsAssistant) SourceVideoAverageFrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](o_, objc.Sel("sourceVideoAverageFrameDuration")) + return rv +} + +// A time value that describes the average frame duration of the video data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1387414-sourcevideoaverageframeduration?language=objc +func (o_ OutputSettingsAssistant) SetSourceVideoAverageFrameDuration(value coremedia.Time) { + objc.Call[objc.Void](o_, objc.Sel("setSourceVideoAverageFrameDuration:"), value) } // A video settings dictionary. [Full Topic] @@ -161,17 +161,17 @@ func (o_ OutputSettingsAssistant) OutputFileType() FileType { return rv } -// A time value that describes the average frame duration of the video data. [Full Topic] +// The format of the source audio data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1387414-sourcevideoaverageframeduration?language=objc -func (o_ OutputSettingsAssistant) SourceVideoAverageFrameDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](o_, objc.Sel("sourceVideoAverageFrameDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1390673-sourceaudioformat?language=objc +func (o_ OutputSettingsAssistant) SourceAudioFormat() coremedia.AudioFormatDescriptionRef { + rv := objc.Call[coremedia.AudioFormatDescriptionRef](o_, objc.Sel("sourceAudioFormat")) return rv } -// A time value that describes the average frame duration of the video data. [Full Topic] +// The format of the source audio data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1387414-sourcevideoaverageframeduration?language=objc -func (o_ OutputSettingsAssistant) SetSourceVideoAverageFrameDuration(value coremedia.Time) { - objc.Call[objc.Void](o_, objc.Sel("setSourceVideoAverageFrameDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1390673-sourceaudioformat?language=objc +func (o_ OutputSettingsAssistant) SetSourceAudioFormat(value coremedia.AudioFormatDescriptionRef) { + objc.Call[objc.Void](o_, objc.Sel("setSourceAudioFormat:"), value) } diff --git a/macos/avfoundation/playback_coordinator.gen.go b/macos/avfoundation/playback_coordinator.gen.go index c2be9488..7a052133 100644 --- a/macos/avfoundation/playback_coordinator.gen.go +++ b/macos/avfoundation/playback_coordinator.gen.go @@ -19,13 +19,13 @@ type _PlaybackCoordinatorClass struct { // An interface definition for the [PlaybackCoordinator] class. type IPlaybackCoordinator interface { objc.IObject - ParticipantLimitForWaitingOutSuspensionsWithReason(reason CoordinatedPlaybackSuspensionReason) int ExpectedItemTimeAtHostTime(hostClockTime coremedia.Time) coremedia.Time - BeginSuspensionForReason(suspensionReason CoordinatedPlaybackSuspensionReason) CoordinatedPlaybackSuspension SetParticipantLimitForWaitingOutSuspensionsWithReason(participantLimit int, reason CoordinatedPlaybackSuspensionReason) - OtherParticipants() []CoordinatedPlaybackParticipant + BeginSuspensionForReason(suspensionReason CoordinatedPlaybackSuspensionReason) CoordinatedPlaybackSuspension + ParticipantLimitForWaitingOutSuspensionsWithReason(reason CoordinatedPlaybackSuspensionReason) int PauseSnapsToMediaTimeOfOriginator() bool SetPauseSnapsToMediaTimeOfOriginator(value bool) + OtherParticipants() []CoordinatedPlaybackParticipant SuspensionReasons() []CoordinatedPlaybackSuspensionReason SuspensionReasonsThatTriggerWaiting() []CoordinatedPlaybackSuspensionReason SetSuspensionReasonsThatTriggerWaiting(value []CoordinatedPlaybackSuspensionReason) @@ -64,14 +64,6 @@ func (p_ PlaybackCoordinator) Init() PlaybackCoordinator { return rv } -// Returns the limit on the number of partipants that a group may contain before the coordinator stops waiting on suspensions that occur for a particular reason. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinator/3750287-participantlimitforwaitingoutsus?language=objc -func (p_ PlaybackCoordinator) ParticipantLimitForWaitingOutSuspensionsWithReason(reason CoordinatedPlaybackSuspensionReason) int { - rv := objc.Call[int](p_, objc.Sel("participantLimitForWaitingOutSuspensionsWithReason:"), reason) - return rv -} - // Returns a time in the current item’s timeline that the coordinator expects to play at the specified host time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinator/3750285-expecteditemtimeathosttime?language=objc @@ -80,6 +72,13 @@ func (p_ PlaybackCoordinator) ExpectedItemTimeAtHostTime(hostClockTime coremedia return rv } +// Sets a limit on the number of partipants that a group may contain before the coordinator stops waiting on suspensions that occur for a particular reason. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinator/3750289-setparticipantlimit?language=objc +func (p_ PlaybackCoordinator) SetParticipantLimitForWaitingOutSuspensionsWithReason(participantLimit int, reason CoordinatedPlaybackSuspensionReason) { + objc.Call[objc.Void](p_, objc.Sel("setParticipantLimit:forWaitingOutSuspensionsWithReason:"), participantLimit, reason) +} + // Tells the coordinator to stop sending playback commands temporarily when the playback object disconnects from the group activity. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinator/3750284-beginsuspensionforreason?language=objc @@ -88,18 +87,11 @@ func (p_ PlaybackCoordinator) BeginSuspensionForReason(suspensionReason Coordina return rv } -// Sets a limit on the number of partipants that a group may contain before the coordinator stops waiting on suspensions that occur for a particular reason. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinator/3750289-setparticipantlimit?language=objc -func (p_ PlaybackCoordinator) SetParticipantLimitForWaitingOutSuspensionsWithReason(participantLimit int, reason CoordinatedPlaybackSuspensionReason) { - objc.Call[objc.Void](p_, objc.Sel("setParticipantLimit:forWaitingOutSuspensionsWithReason:"), participantLimit, reason) -} - -// The identifiers of the other participants in a group. [Full Topic] +// Returns the limit on the number of partipants that a group may contain before the coordinator stops waiting on suspensions that occur for a particular reason. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinator/3750286-otherparticipants?language=objc -func (p_ PlaybackCoordinator) OtherParticipants() []CoordinatedPlaybackParticipant { - rv := objc.Call[[]CoordinatedPlaybackParticipant](p_, objc.Sel("otherParticipants")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinator/3750287-participantlimitforwaitingoutsus?language=objc +func (p_ PlaybackCoordinator) ParticipantLimitForWaitingOutSuspensionsWithReason(reason CoordinatedPlaybackSuspensionReason) int { + rv := objc.Call[int](p_, objc.Sel("participantLimitForWaitingOutSuspensionsWithReason:"), reason) return rv } @@ -118,6 +110,14 @@ func (p_ PlaybackCoordinator) SetPauseSnapsToMediaTimeOfOriginator(value bool) { objc.Call[objc.Void](p_, objc.Sel("setPauseSnapsToMediaTimeOfOriginator:"), value) } +// The identifiers of the other participants in a group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinator/3750286-otherparticipants?language=objc +func (p_ PlaybackCoordinator) OtherParticipants() []CoordinatedPlaybackParticipant { + rv := objc.Call[[]CoordinatedPlaybackParticipant](p_, objc.Sel("otherParticipants")) + return rv +} + // The reasons a coordinator is currently unable to participate in a group playback activity. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinator/3750290-suspensionreasons?language=objc diff --git a/macos/avfoundation/playback_coordinator_playback_control_delegate.gen.go b/macos/avfoundation/playback_coordinator_playback_control_delegate.gen.go index 2d0de574..fb71fb07 100644 --- a/macos/avfoundation/playback_coordinator_playback_control_delegate.gen.go +++ b/macos/avfoundation/playback_coordinator_playback_control_delegate.gen.go @@ -10,18 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate?language=objc type PPlaybackCoordinatorPlaybackControlDelegate interface { - // optional - PlaybackCoordinatorDidIssueBufferingCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, bufferingCommand DelegatingPlaybackCoordinatorBufferingCommand, completionHandler func()) - HasPlaybackCoordinatorDidIssueBufferingCommandCompletionHandler() bool - - // optional - PlaybackCoordinatorDidIssueSeekCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, seekCommand DelegatingPlaybackCoordinatorSeekCommand, completionHandler func()) - HasPlaybackCoordinatorDidIssueSeekCommandCompletionHandler() bool - - // optional - PlaybackCoordinatorDidIssuePauseCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, pauseCommand DelegatingPlaybackCoordinatorPauseCommand, completionHandler func()) - HasPlaybackCoordinatorDidIssuePauseCommandCompletionHandler() bool - // optional PlaybackCoordinatorDidIssuePlayCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, playCommand DelegatingPlaybackCoordinatorPlayCommand, completionHandler func()) HasPlaybackCoordinatorDidIssuePlayCommandCompletionHandler() bool @@ -29,63 +17,9 @@ type PPlaybackCoordinatorPlaybackControlDelegate interface { // A delegate implementation builder for the [PPlaybackCoordinatorPlaybackControlDelegate] protocol. type PlaybackCoordinatorPlaybackControlDelegate struct { - _PlaybackCoordinatorDidIssueBufferingCommandCompletionHandler func(coordinator DelegatingPlaybackCoordinator, bufferingCommand DelegatingPlaybackCoordinatorBufferingCommand, completionHandler func()) - _PlaybackCoordinatorDidIssueSeekCommandCompletionHandler func(coordinator DelegatingPlaybackCoordinator, seekCommand DelegatingPlaybackCoordinatorSeekCommand, completionHandler func()) - _PlaybackCoordinatorDidIssuePauseCommandCompletionHandler func(coordinator DelegatingPlaybackCoordinator, pauseCommand DelegatingPlaybackCoordinatorPauseCommand, completionHandler func()) - _PlaybackCoordinatorDidIssuePlayCommandCompletionHandler func(coordinator DelegatingPlaybackCoordinator, playCommand DelegatingPlaybackCoordinatorPlayCommand, completionHandler func()) -} - -func (di *PlaybackCoordinatorPlaybackControlDelegate) HasPlaybackCoordinatorDidIssueBufferingCommandCompletionHandler() bool { - return di._PlaybackCoordinatorDidIssueBufferingCommandCompletionHandler != nil -} - -// Tells the delegate to expect playback soon and to start buffering media data in preparation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate/3750294-playbackcoordinator?language=objc -func (di *PlaybackCoordinatorPlaybackControlDelegate) SetPlaybackCoordinatorDidIssueBufferingCommandCompletionHandler(f func(coordinator DelegatingPlaybackCoordinator, bufferingCommand DelegatingPlaybackCoordinatorBufferingCommand, completionHandler func())) { - di._PlaybackCoordinatorDidIssueBufferingCommandCompletionHandler = f -} - -// Tells the delegate to expect playback soon and to start buffering media data in preparation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate/3750294-playbackcoordinator?language=objc -func (di *PlaybackCoordinatorPlaybackControlDelegate) PlaybackCoordinatorDidIssueBufferingCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, bufferingCommand DelegatingPlaybackCoordinatorBufferingCommand, completionHandler func()) { - di._PlaybackCoordinatorDidIssueBufferingCommandCompletionHandler(coordinator, bufferingCommand, completionHandler) -} -func (di *PlaybackCoordinatorPlaybackControlDelegate) HasPlaybackCoordinatorDidIssueSeekCommandCompletionHandler() bool { - return di._PlaybackCoordinatorDidIssueSeekCommandCompletionHandler != nil -} - -// Tells the delegate to seek to a new time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate/3750298-playbackcoordinator?language=objc -func (di *PlaybackCoordinatorPlaybackControlDelegate) SetPlaybackCoordinatorDidIssueSeekCommandCompletionHandler(f func(coordinator DelegatingPlaybackCoordinator, seekCommand DelegatingPlaybackCoordinatorSeekCommand, completionHandler func())) { - di._PlaybackCoordinatorDidIssueSeekCommandCompletionHandler = f -} - -// Tells the delegate to seek to a new time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate/3750298-playbackcoordinator?language=objc -func (di *PlaybackCoordinatorPlaybackControlDelegate) PlaybackCoordinatorDidIssueSeekCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, seekCommand DelegatingPlaybackCoordinatorSeekCommand, completionHandler func()) { - di._PlaybackCoordinatorDidIssueSeekCommandCompletionHandler(coordinator, seekCommand, completionHandler) -} -func (di *PlaybackCoordinatorPlaybackControlDelegate) HasPlaybackCoordinatorDidIssuePauseCommandCompletionHandler() bool { - return di._PlaybackCoordinatorDidIssuePauseCommandCompletionHandler != nil -} - -// Tells the delegate to pause playback. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate/3750295-playbackcoordinator?language=objc -func (di *PlaybackCoordinatorPlaybackControlDelegate) SetPlaybackCoordinatorDidIssuePauseCommandCompletionHandler(f func(coordinator DelegatingPlaybackCoordinator, pauseCommand DelegatingPlaybackCoordinatorPauseCommand, completionHandler func())) { - di._PlaybackCoordinatorDidIssuePauseCommandCompletionHandler = f + _PlaybackCoordinatorDidIssuePlayCommandCompletionHandler func(coordinator DelegatingPlaybackCoordinator, playCommand DelegatingPlaybackCoordinatorPlayCommand, completionHandler func()) } -// Tells the delegate to pause playback. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate/3750295-playbackcoordinator?language=objc -func (di *PlaybackCoordinatorPlaybackControlDelegate) PlaybackCoordinatorDidIssuePauseCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, pauseCommand DelegatingPlaybackCoordinatorPauseCommand, completionHandler func()) { - di._PlaybackCoordinatorDidIssuePauseCommandCompletionHandler(coordinator, pauseCommand, completionHandler) -} func (di *PlaybackCoordinatorPlaybackControlDelegate) HasPlaybackCoordinatorDidIssuePlayCommandCompletionHandler() bool { return di._PlaybackCoordinatorDidIssuePlayCommandCompletionHandler != nil } @@ -112,39 +46,6 @@ type PlaybackCoordinatorPlaybackControlDelegateObject struct { objc.Object } -func (p_ PlaybackCoordinatorPlaybackControlDelegateObject) HasPlaybackCoordinatorDidIssueBufferingCommandCompletionHandler() bool { - return p_.RespondsToSelector(objc.Sel("playbackCoordinator:didIssueBufferingCommand:completionHandler:")) -} - -// Tells the delegate to expect playback soon and to start buffering media data in preparation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate/3750294-playbackcoordinator?language=objc -func (p_ PlaybackCoordinatorPlaybackControlDelegateObject) PlaybackCoordinatorDidIssueBufferingCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, bufferingCommand DelegatingPlaybackCoordinatorBufferingCommand, completionHandler func()) { - objc.Call[objc.Void](p_, objc.Sel("playbackCoordinator:didIssueBufferingCommand:completionHandler:"), coordinator, bufferingCommand, completionHandler) -} - -func (p_ PlaybackCoordinatorPlaybackControlDelegateObject) HasPlaybackCoordinatorDidIssueSeekCommandCompletionHandler() bool { - return p_.RespondsToSelector(objc.Sel("playbackCoordinator:didIssueSeekCommand:completionHandler:")) -} - -// Tells the delegate to seek to a new time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate/3750298-playbackcoordinator?language=objc -func (p_ PlaybackCoordinatorPlaybackControlDelegateObject) PlaybackCoordinatorDidIssueSeekCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, seekCommand DelegatingPlaybackCoordinatorSeekCommand, completionHandler func()) { - objc.Call[objc.Void](p_, objc.Sel("playbackCoordinator:didIssueSeekCommand:completionHandler:"), coordinator, seekCommand, completionHandler) -} - -func (p_ PlaybackCoordinatorPlaybackControlDelegateObject) HasPlaybackCoordinatorDidIssuePauseCommandCompletionHandler() bool { - return p_.RespondsToSelector(objc.Sel("playbackCoordinator:didIssuePauseCommand:completionHandler:")) -} - -// Tells the delegate to pause playback. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate/3750295-playbackcoordinator?language=objc -func (p_ PlaybackCoordinatorPlaybackControlDelegateObject) PlaybackCoordinatorDidIssuePauseCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, pauseCommand DelegatingPlaybackCoordinatorPauseCommand, completionHandler func()) { - objc.Call[objc.Void](p_, objc.Sel("playbackCoordinator:didIssuePauseCommand:completionHandler:"), coordinator, pauseCommand, completionHandler) -} - func (p_ PlaybackCoordinatorPlaybackControlDelegateObject) HasPlaybackCoordinatorDidIssuePlayCommandCompletionHandler() bool { return p_.RespondsToSelector(objc.Sel("playbackCoordinator:didIssuePlayCommand:completionHandler:")) } diff --git a/macos/avfoundation/player.gen.go b/macos/avfoundation/player.gen.go index 94f1abd6..956a005f 100644 --- a/macos/avfoundation/player.gen.go +++ b/macos/avfoundation/player.gen.go @@ -21,57 +21,53 @@ type _PlayerClass struct { // An interface definition for the [Player] class. type IPlayer interface { objc.IObject - SeekToTimeToleranceBeforeToleranceAfter(time coremedia.Time, toleranceBefore coremedia.Time, toleranceAfter coremedia.Time) - PlayImmediatelyAtRate(rate float32) - Play() - PrerollAtRateCompletionHandler(rate float32, completionHandler func(finished bool)) - SeekToTimeCompletionHandler(time coremedia.Time, completionHandler func(finished bool)) - SeekToDateCompletionHandler(date foundation.IDate, completionHandler func(finished bool)) - SetRateTimeAtHostTime(rate float32, itemTime coremedia.Time, hostClockTime coremedia.Time) - Pause() MediaSelectionCriteriaForMediaCharacteristic(mediaCharacteristic MediaCharacteristic) PlayerMediaSelectionCriteria SeekToDate(date foundation.IDate) + PlayImmediatelyAtRate(rate float32) + RemoveTimeObserver(observer objc.IObject) + SetRateTimeAtHostTime(rate float32, itemTime coremedia.Time, hostClockTime coremedia.Time) ReplaceCurrentItemWithPlayerItem(item IPlayerItem) CancelPendingPrerolls() AddBoundaryTimeObserverForTimesQueueUsingBlock(times []foundation.IValue, queue dispatch.Queue, block func()) objc.Object - SetMediaSelectionCriteriaForMediaCharacteristic(criteria IPlayerMediaSelectionCriteria, mediaCharacteristic MediaCharacteristic) AddPeriodicTimeObserverForIntervalQueueUsingBlock(interval coremedia.Time, queue dispatch.Queue, block func(time coremedia.Time)) objc.Object + SeekToTimeToleranceBeforeToleranceAfter(time coremedia.Time, toleranceBefore coremedia.Time, toleranceAfter coremedia.Time) + SetMediaSelectionCriteriaForMediaCharacteristic(criteria IPlayerMediaSelectionCriteria, mediaCharacteristic MediaCharacteristic) + Pause() + Play() + PrerollAtRateCompletionHandler(rate float32, completionHandler func(finished bool)) CurrentTime() coremedia.Time - SeekToTimeToleranceBeforeToleranceAfterCompletionHandler(time coremedia.Time, toleranceBefore coremedia.Time, toleranceAfter coremedia.Time, completionHandler func(finished bool)) - RemoveTimeObserver(observer objc.IObject) - SeekToTime(time coremedia.Time) - IsExternalPlaybackActive() bool SourceClock() coremedia.ClockRef SetSourceClock(value coremedia.ClockRef) - AppliesMediaSelectionCriteriaAutomatically() bool - SetAppliesMediaSelectionCriteriaAutomatically(value bool) + AudiovisualBackgroundPlaybackPolicy() PlayerAudiovisualBackgroundPlaybackPolicy + SetAudiovisualBackgroundPlaybackPolicy(value PlayerAudiovisualBackgroundPlaybackPolicy) Volume() float32 SetVolume(value float32) - ActionAtItemEnd() PlayerActionAtItemEnd - SetActionAtItemEnd(value PlayerActionAtItemEnd) - CurrentItem() PlayerItem + Error() foundation.Error + OutputObscuredDueToInsufficientExternalProtection() bool PreferredVideoDecoderGPURegistryID() uint64 SetPreferredVideoDecoderGPURegistryID(value uint64) + Rate() float32 + SetRate(value float32) IsMuted() bool SetMuted(value bool) + ReasonForWaitingToPlay() PlayerWaitingReason + PlaybackCoordinator() PlayerPlaybackCoordinator + CurrentItem() PlayerItem + AudioOutputDeviceUniqueID() string + SetAudioOutputDeviceUniqueID(value string) + TimeControlStatus() PlayerTimeControlStatus + IsExternalPlaybackActive() bool + ActionAtItemEnd() PlayerActionAtItemEnd + SetActionAtItemEnd(value PlayerActionAtItemEnd) AllowsExternalPlayback() bool SetAllowsExternalPlayback(value bool) - AutomaticallyWaitsToMinimizeStalling() bool - SetAutomaticallyWaitsToMinimizeStalling(value bool) + AppliesMediaSelectionCriteriaAutomatically() bool + SetAppliesMediaSelectionCriteriaAutomatically(value bool) PreventsDisplaySleepDuringVideoPlayback() bool SetPreventsDisplaySleepDuringVideoPlayback(value bool) Status() PlayerStatus - Rate() float32 - SetRate(value float32) - TimeControlStatus() PlayerTimeControlStatus - Error() foundation.Error - ReasonForWaitingToPlay() PlayerWaitingReason - AudioOutputDeviceUniqueID() string - SetAudioOutputDeviceUniqueID(value string) - OutputObscuredDueToInsufficientExternalProtection() bool - PlaybackCoordinator() PlayerPlaybackCoordinator - AudiovisualBackgroundPlaybackPolicy() PlayerAudiovisualBackgroundPlaybackPolicy - SetAudiovisualBackgroundPlaybackPolicy(value PlayerAudiovisualBackgroundPlaybackPolicy) + AutomaticallyWaitsToMinimizeStalling() bool + SetAutomaticallyWaitsToMinimizeStalling(value bool) } // An object that provides the interface to control the player’s transport behavior. [Full Topic] @@ -99,16 +95,18 @@ func Player_PlayerWithPlayerItem(item IPlayerItem) Player { return PlayerClass.PlayerWithPlayerItem(item) } -func (pc _PlayerClass) PlayerWithURL(URL foundation.IURL) Player { - rv := objc.Call[Player](pc, objc.Sel("playerWithURL:"), URL) +func (p_ Player) InitWithURL(URL foundation.IURL) Player { + rv := objc.Call[Player](p_, objc.Sel("initWithURL:"), URL) return rv } -// Returns a new player to play a single audiovisual resource referenced by a given URL. [Full Topic] +// Creates a new player to play a single audiovisual resource referenced by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1538409-playerwithurl?language=objc -func Player_PlayerWithURL(URL foundation.IURL) Player { - return PlayerClass.PlayerWithURL(URL) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1385706-initwithurl?language=objc +func NewPlayerWithURL(URL foundation.IURL) Player { + instance := PlayerClass.Alloc().InitWithURL(URL) + instance.Autorelease() + return instance } func (p_ Player) InitWithPlayerItem(item IPlayerItem) Player { @@ -125,18 +123,16 @@ func NewPlayerWithPlayerItem(item IPlayerItem) Player { return instance } -func (p_ Player) InitWithURL(URL foundation.IURL) Player { - rv := objc.Call[Player](p_, objc.Sel("initWithURL:"), URL) +func (pc _PlayerClass) PlayerWithURL(URL foundation.IURL) Player { + rv := objc.Call[Player](pc, objc.Sel("playerWithURL:"), URL) return rv } -// Creates a new player to play a single audiovisual resource referenced by a given URL. [Full Topic] +// Returns a new player to play a single audiovisual resource referenced by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1385706-initwithurl?language=objc -func NewPlayerWithURL(URL foundation.IURL) Player { - instance := PlayerClass.Alloc().InitWithURL(URL) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1538409-playerwithurl?language=objc +func Player_PlayerWithURL(URL foundation.IURL) Player { + return PlayerClass.PlayerWithURL(URL) } func (pc _PlayerClass) Alloc() Player { @@ -159,11 +155,19 @@ func (p_ Player) Init() Player { return rv } -// Requests that the player seek to a specified time with the amount of accuracy specified by the time tolerance values. [Full Topic] +// Returns the automatic selection criteria for media items with the specified media characteristic. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387741-seektotime?language=objc -func (p_ Player) SeekToTimeToleranceBeforeToleranceAfter(time coremedia.Time, toleranceBefore coremedia.Time, toleranceAfter coremedia.Time) { - objc.Call[objc.Void](p_, objc.Sel("seekToTime:toleranceBefore:toleranceAfter:"), time, toleranceBefore, toleranceAfter) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387825-mediaselectioncriteriaformediach?language=objc +func (p_ Player) MediaSelectionCriteriaForMediaCharacteristic(mediaCharacteristic MediaCharacteristic) PlayerMediaSelectionCriteria { + rv := objc.Call[PlayerMediaSelectionCriteria](p_, objc.Sel("mediaSelectionCriteriaForMediaCharacteristic:"), mediaCharacteristic) + return rv +} + +// Requests that the player seek to a specified date. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1386114-seektodate?language=objc +func (p_ Player) SeekToDate(date foundation.IDate) { + objc.Call[objc.Void](p_, objc.Sel("seekToDate:"), date) } // Plays the available media data immediately, at the specified rate. [Full Topic] @@ -173,32 +177,11 @@ func (p_ Player) PlayImmediatelyAtRate(rate float32) { objc.Call[objc.Void](p_, objc.Sel("playImmediatelyAtRate:"), rate) } -// Begins playback of the current item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1386726-play?language=objc -func (p_ Player) Play() { - objc.Call[objc.Void](p_, objc.Sel("play")) -} - -// Begins loading media data to prime the media pipelines for playback. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1389712-prerollatrate?language=objc -func (p_ Player) PrerollAtRateCompletionHandler(rate float32, completionHandler func(finished bool)) { - objc.Call[objc.Void](p_, objc.Sel("prerollAtRate:completionHandler:"), rate, completionHandler) -} - -// Requests that the player seek to a specified time, and to notify you when the seek is complete. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387018-seektotime?language=objc -func (p_ Player) SeekToTimeCompletionHandler(time coremedia.Time, completionHandler func(finished bool)) { - objc.Call[objc.Void](p_, objc.Sel("seekToTime:completionHandler:"), time, completionHandler) -} - -// Requests that the player seek to a specified date, and to notify you when the seek is complete. [Full Topic] +// Cancels a previously registered periodic or boundary time observer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1386108-seektodate?language=objc -func (p_ Player) SeekToDateCompletionHandler(date foundation.IDate, completionHandler func(finished bool)) { - objc.Call[objc.Void](p_, objc.Sel("seekToDate:completionHandler:"), date, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387552-removetimeobserver?language=objc +func (p_ Player) RemoveTimeObserver(observer objc.IObject) { + objc.Call[objc.Void](p_, objc.Sel("removeTimeObserver:"), observer) } // Synchronizes the playback rate and time of the current item with an external source. [Full Topic] @@ -208,28 +191,6 @@ func (p_ Player) SetRateTimeAtHostTime(rate float32, itemTime coremedia.Time, ho objc.Call[objc.Void](p_, objc.Sel("setRate:time:atHostTime:"), rate, itemTime, hostClockTime) } -// Pauses playback of the current item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387895-pause?language=objc -func (p_ Player) Pause() { - objc.Call[objc.Void](p_, objc.Sel("pause")) -} - -// Returns the automatic selection criteria for media items with the specified media characteristic. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387825-mediaselectioncriteriaformediach?language=objc -func (p_ Player) MediaSelectionCriteriaForMediaCharacteristic(mediaCharacteristic MediaCharacteristic) PlayerMediaSelectionCriteria { - rv := objc.Call[PlayerMediaSelectionCriteria](p_, objc.Sel("mediaSelectionCriteriaForMediaCharacteristic:"), mediaCharacteristic) - return rv -} - -// Requests that the player seek to a specified date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1386114-seektodate?language=objc -func (p_ Player) SeekToDate(date foundation.IDate) { - objc.Call[objc.Void](p_, objc.Sel("seekToDate:"), date) -} - // Replaces the current item with a new item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1390806-replacecurrentitemwithplayeritem?language=objc @@ -252,13 +213,6 @@ func (p_ Player) AddBoundaryTimeObserverForTimesQueueUsingBlock(times []foundati return rv } -// Applies automatic selection criteria for media that has the specified media characteristic. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1390563-setmediaselectioncriteria?language=objc -func (p_ Player) SetMediaSelectionCriteriaForMediaCharacteristic(criteria IPlayerMediaSelectionCriteria, mediaCharacteristic MediaCharacteristic) { - objc.Call[objc.Void](p_, objc.Sel("setMediaSelectionCriteria:forMediaCharacteristic:"), criteria, mediaCharacteristic) -} - // Requests the periodic invocation of a given block during playback to report changing time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1385829-addperiodictimeobserverforinterv?language=objc @@ -267,40 +221,46 @@ func (p_ Player) AddPeriodicTimeObserverForIntervalQueueUsingBlock(interval core return rv } -// Returns the current time of the current player item. [Full Topic] +// Requests that the player seek to a specified time with the amount of accuracy specified by the time tolerance values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1390404-currenttime?language=objc -func (p_ Player) CurrentTime() coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("currentTime")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387741-seektotime?language=objc +func (p_ Player) SeekToTimeToleranceBeforeToleranceAfter(time coremedia.Time, toleranceBefore coremedia.Time, toleranceAfter coremedia.Time) { + objc.Call[objc.Void](p_, objc.Sel("seekToTime:toleranceBefore:toleranceAfter:"), time, toleranceBefore, toleranceAfter) } -// Requests that the player seek to a specified time with the amount of accuracy specified by the time tolerance values, and to notify you when the seek is complete. [Full Topic] +// Applies automatic selection criteria for media that has the specified media characteristic. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1388493-seektotime?language=objc -func (p_ Player) SeekToTimeToleranceBeforeToleranceAfterCompletionHandler(time coremedia.Time, toleranceBefore coremedia.Time, toleranceAfter coremedia.Time, completionHandler func(finished bool)) { - objc.Call[objc.Void](p_, objc.Sel("seekToTime:toleranceBefore:toleranceAfter:completionHandler:"), time, toleranceBefore, toleranceAfter, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1390563-setmediaselectioncriteria?language=objc +func (p_ Player) SetMediaSelectionCriteriaForMediaCharacteristic(criteria IPlayerMediaSelectionCriteria, mediaCharacteristic MediaCharacteristic) { + objc.Call[objc.Void](p_, objc.Sel("setMediaSelectionCriteria:forMediaCharacteristic:"), criteria, mediaCharacteristic) } -// Cancels a previously registered periodic or boundary time observer. [Full Topic] +// Pauses playback of the current item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387552-removetimeobserver?language=objc -func (p_ Player) RemoveTimeObserver(observer objc.IObject) { - objc.Call[objc.Void](p_, objc.Sel("removeTimeObserver:"), observer) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387895-pause?language=objc +func (p_ Player) Pause() { + objc.Call[objc.Void](p_, objc.Sel("pause")) } -// Requests that the player seek to a specified time. [Full Topic] +// Begins playback of the current item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1385953-seektotime?language=objc -func (p_ Player) SeekToTime(time coremedia.Time) { - objc.Call[objc.Void](p_, objc.Sel("seekToTime:"), time) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1386726-play?language=objc +func (p_ Player) Play() { + objc.Call[objc.Void](p_, objc.Sel("play")) } -// A Boolean value that indicates whether the player is currently playing video in external playback mode. [Full Topic] +// Begins loading media data to prime the media pipelines for playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1388982-externalplaybackactive?language=objc -func (p_ Player) IsExternalPlaybackActive() bool { - rv := objc.Call[bool](p_, objc.Sel("isExternalPlaybackActive")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1389712-prerollatrate?language=objc +func (p_ Player) PrerollAtRateCompletionHandler(rate float32, completionHandler func(finished bool)) { + objc.Call[objc.Void](p_, objc.Sel("prerollAtRate:completionHandler:"), rate, completionHandler) +} + +// Returns the current time of the current player item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1390404-currenttime?language=objc +func (p_ Player) CurrentTime() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("currentTime")) return rv } @@ -319,34 +279,19 @@ func (p_ Player) SetSourceClock(value coremedia.ClockRef) { objc.Call[objc.Void](p_, objc.Sel("setSourceClock:"), value) } -// A Boolean value that indicates whether the current device can present content to an HDR display. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/3365978-eligibleforhdrplayback?language=objc -func (pc _PlayerClass) EligibleForHDRPlayback() bool { - rv := objc.Call[bool](pc, objc.Sel("eligibleForHDRPlayback")) - return rv -} - -// A Boolean value that indicates whether the current device can present content to an HDR display. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/3365978-eligibleforhdrplayback?language=objc -func Player_EligibleForHDRPlayback() bool { - return PlayerClass.EligibleForHDRPlayback() -} - -// A Boolean value that indicates whether the receiver should apply the current selection criteria automatically to player items. [Full Topic] +// A policy that determines how playback of audiovisual media continues when the app transitions to the background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387178-appliesmediaselectioncriteriaaut?language=objc -func (p_ Player) AppliesMediaSelectionCriteriaAutomatically() bool { - rv := objc.Call[bool](p_, objc.Sel("appliesMediaSelectionCriteriaAutomatically")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/3787548-audiovisualbackgroundplaybackpol?language=objc +func (p_ Player) AudiovisualBackgroundPlaybackPolicy() PlayerAudiovisualBackgroundPlaybackPolicy { + rv := objc.Call[PlayerAudiovisualBackgroundPlaybackPolicy](p_, objc.Sel("audiovisualBackgroundPlaybackPolicy")) return rv } -// A Boolean value that indicates whether the receiver should apply the current selection criteria automatically to player items. [Full Topic] +// A policy that determines how playback of audiovisual media continues when the app transitions to the background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387178-appliesmediaselectioncriteriaaut?language=objc -func (p_ Player) SetAppliesMediaSelectionCriteriaAutomatically(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAppliesMediaSelectionCriteriaAutomatically:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/3787548-audiovisualbackgroundplaybackpol?language=objc +func (p_ Player) SetAudiovisualBackgroundPlaybackPolicy(value PlayerAudiovisualBackgroundPlaybackPolicy) { + objc.Call[objc.Void](p_, objc.Sel("setAudiovisualBackgroundPlaybackPolicy:"), value) } // The audio playback volume for the player. [Full Topic] @@ -364,26 +309,19 @@ func (p_ Player) SetVolume(value float32) { objc.Call[objc.Void](p_, objc.Sel("setVolume:"), value) } -// The action to perform when the current player item has finished playing. [Full Topic] +// An error that caused a failure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387376-actionatitemend?language=objc -func (p_ Player) ActionAtItemEnd() PlayerActionAtItemEnd { - rv := objc.Call[PlayerActionAtItemEnd](p_, objc.Sel("actionAtItemEnd")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387764-error?language=objc +func (p_ Player) Error() foundation.Error { + rv := objc.Call[foundation.Error](p_, objc.Sel("error")) return rv } -// The action to perform when the current player item has finished playing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387376-actionatitemend?language=objc -func (p_ Player) SetActionAtItemEnd(value PlayerActionAtItemEnd) { - objc.Call[objc.Void](p_, objc.Sel("setActionAtItemEnd:"), value) -} - -// The item for which the player is currently controlling playback. [Full Topic] +// A Boolean value that indicates whether output is being obscured because of insufficient external protection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387569-currentitem?language=objc -func (p_ Player) CurrentItem() PlayerItem { - rv := objc.Call[PlayerItem](p_, objc.Sel("currentItem")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1624254-outputobscuredduetoinsufficiente?language=objc +func (p_ Player) OutputObscuredDueToInsufficientExternalProtection() bool { + rv := objc.Call[bool](p_, objc.Sel("outputObscuredDueToInsufficientExternalProtection")) return rv } @@ -402,6 +340,21 @@ func (p_ Player) SetPreferredVideoDecoderGPURegistryID(value uint64) { objc.Call[objc.Void](p_, objc.Sel("setPreferredVideoDecoderGPURegistryID:"), value) } +// The current playback rate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1388846-rate?language=objc +func (p_ Player) Rate() float32 { + rv := objc.Call[float32](p_, objc.Sel("rate")) + return rv +} + +// The current playback rate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1388846-rate?language=objc +func (p_ Player) SetRate(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setRate:"), value) +} + // A Boolean value that indicates whether the audio output of the player is muted. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387544-muted?language=objc @@ -417,140 +370,155 @@ func (p_ Player) SetMuted(value bool) { objc.Call[objc.Void](p_, objc.Sel("setMuted:"), value) } -// A Boolean value that indicates whether the player allows switching to external playback mode. [Full Topic] +// The reason the player is currently waiting for playback to begin or resume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387441-allowsexternalplayback?language=objc -func (p_ Player) AllowsExternalPlayback() bool { - rv := objc.Call[bool](p_, objc.Sel("allowsExternalPlayback")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1643486-reasonforwaitingtoplay?language=objc +func (p_ Player) ReasonForWaitingToPlay() PlayerWaitingReason { + rv := objc.Call[PlayerWaitingReason](p_, objc.Sel("reasonForWaitingToPlay")) return rv } -// A Boolean value that indicates whether the player allows switching to external playback mode. [Full Topic] +// The playback coordinator for the player. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387441-allowsexternalplayback?language=objc -func (p_ Player) SetAllowsExternalPlayback(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAllowsExternalPlayback:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/3750305-playbackcoordinator?language=objc +func (p_ Player) PlaybackCoordinator() PlayerPlaybackCoordinator { + rv := objc.Call[PlayerPlaybackCoordinator](p_, objc.Sel("playbackCoordinator")) + return rv } -// A Boolean value that indicates whether the player should automatically delay playback in order to minimize stalling. [Full Topic] +// The item for which the player is currently controlling playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1643482-automaticallywaitstominimizestal?language=objc -func (p_ Player) AutomaticallyWaitsToMinimizeStalling() bool { - rv := objc.Call[bool](p_, objc.Sel("automaticallyWaitsToMinimizeStalling")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387569-currentitem?language=objc +func (p_ Player) CurrentItem() PlayerItem { + rv := objc.Call[PlayerItem](p_, objc.Sel("currentItem")) return rv } -// A Boolean value that indicates whether the player should automatically delay playback in order to minimize stalling. [Full Topic] +// Specifies the unique ID of the Core Audio output device used to play audio. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1643482-automaticallywaitstominimizestal?language=objc -func (p_ Player) SetAutomaticallyWaitsToMinimizeStalling(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAutomaticallyWaitsToMinimizeStalling:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1390717-audiooutputdeviceuniqueid?language=objc +func (p_ Player) AudioOutputDeviceUniqueID() string { + rv := objc.Call[string](p_, objc.Sel("audioOutputDeviceUniqueID")) + return rv } -// A Boolean value that indicates whether video playback prevents display and device sleep. [Full Topic] +// Specifies the unique ID of the Core Audio output device used to play audio. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/2990522-preventsdisplaysleepduringvideop?language=objc -func (p_ Player) PreventsDisplaySleepDuringVideoPlayback() bool { - rv := objc.Call[bool](p_, objc.Sel("preventsDisplaySleepDuringVideoPlayback")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1390717-audiooutputdeviceuniqueid?language=objc +func (p_ Player) SetAudioOutputDeviceUniqueID(value string) { + objc.Call[objc.Void](p_, objc.Sel("setAudioOutputDeviceUniqueID:"), value) } -// A Boolean value that indicates whether video playback prevents display and device sleep. [Full Topic] +// A value that indicates whether playback is in progress, paused indefinitely, or waiting for network conditions to improve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/2990522-preventsdisplaysleepduringvideop?language=objc -func (p_ Player) SetPreventsDisplaySleepDuringVideoPlayback(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setPreventsDisplaySleepDuringVideoPlayback:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1643485-timecontrolstatus?language=objc +func (p_ Player) TimeControlStatus() PlayerTimeControlStatus { + rv := objc.Call[PlayerTimeControlStatus](p_, objc.Sel("timeControlStatus")) + return rv } -// A value that indicates the readiness of a player object for playback. [Full Topic] +// A Boolean value that indicates whether the player is currently playing video in external playback mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1388096-status?language=objc -func (p_ Player) Status() PlayerStatus { - rv := objc.Call[PlayerStatus](p_, objc.Sel("status")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1388982-externalplaybackactive?language=objc +func (p_ Player) IsExternalPlaybackActive() bool { + rv := objc.Call[bool](p_, objc.Sel("isExternalPlaybackActive")) return rv } -// The current playback rate. [Full Topic] +// The action to perform when the current player item has finished playing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1388846-rate?language=objc -func (p_ Player) Rate() float32 { - rv := objc.Call[float32](p_, objc.Sel("rate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387376-actionatitemend?language=objc +func (p_ Player) ActionAtItemEnd() PlayerActionAtItemEnd { + rv := objc.Call[PlayerActionAtItemEnd](p_, objc.Sel("actionAtItemEnd")) return rv } -// The current playback rate. [Full Topic] +// The action to perform when the current player item has finished playing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1388846-rate?language=objc -func (p_ Player) SetRate(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setRate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387376-actionatitemend?language=objc +func (p_ Player) SetActionAtItemEnd(value PlayerActionAtItemEnd) { + objc.Call[objc.Void](p_, objc.Sel("setActionAtItemEnd:"), value) } -// A value that indicates whether playback is in progress, paused indefinitely, or waiting for network conditions to improve. [Full Topic] +// A Boolean value that indicates whether the player allows switching to external playback mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1643485-timecontrolstatus?language=objc -func (p_ Player) TimeControlStatus() PlayerTimeControlStatus { - rv := objc.Call[PlayerTimeControlStatus](p_, objc.Sel("timeControlStatus")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387441-allowsexternalplayback?language=objc +func (p_ Player) AllowsExternalPlayback() bool { + rv := objc.Call[bool](p_, objc.Sel("allowsExternalPlayback")) return rv } -// An error that caused a failure. [Full Topic] +// A Boolean value that indicates whether the player allows switching to external playback mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387764-error?language=objc -func (p_ Player) Error() foundation.Error { - rv := objc.Call[foundation.Error](p_, objc.Sel("error")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387441-allowsexternalplayback?language=objc +func (p_ Player) SetAllowsExternalPlayback(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAllowsExternalPlayback:"), value) } -// The reason the player is currently waiting for playback to begin or resume. [Full Topic] +// A Boolean value that indicates whether the current device can present content to an HDR display. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1643486-reasonforwaitingtoplay?language=objc -func (p_ Player) ReasonForWaitingToPlay() PlayerWaitingReason { - rv := objc.Call[PlayerWaitingReason](p_, objc.Sel("reasonForWaitingToPlay")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/3365978-eligibleforhdrplayback?language=objc +func (pc _PlayerClass) EligibleForHDRPlayback() bool { + rv := objc.Call[bool](pc, objc.Sel("eligibleForHDRPlayback")) return rv } -// Specifies the unique ID of the Core Audio output device used to play audio. [Full Topic] +// A Boolean value that indicates whether the current device can present content to an HDR display. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1390717-audiooutputdeviceuniqueid?language=objc -func (p_ Player) AudioOutputDeviceUniqueID() string { - rv := objc.Call[string](p_, objc.Sel("audioOutputDeviceUniqueID")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/3365978-eligibleforhdrplayback?language=objc +func Player_EligibleForHDRPlayback() bool { + return PlayerClass.EligibleForHDRPlayback() +} + +// A Boolean value that indicates whether the receiver should apply the current selection criteria automatically to player items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387178-appliesmediaselectioncriteriaaut?language=objc +func (p_ Player) AppliesMediaSelectionCriteriaAutomatically() bool { + rv := objc.Call[bool](p_, objc.Sel("appliesMediaSelectionCriteriaAutomatically")) return rv } -// Specifies the unique ID of the Core Audio output device used to play audio. [Full Topic] +// A Boolean value that indicates whether the receiver should apply the current selection criteria automatically to player items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1390717-audiooutputdeviceuniqueid?language=objc -func (p_ Player) SetAudioOutputDeviceUniqueID(value string) { - objc.Call[objc.Void](p_, objc.Sel("setAudioOutputDeviceUniqueID:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1387178-appliesmediaselectioncriteriaaut?language=objc +func (p_ Player) SetAppliesMediaSelectionCriteriaAutomatically(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAppliesMediaSelectionCriteriaAutomatically:"), value) } -// A Boolean value that indicates whether output is being obscured because of insufficient external protection. [Full Topic] +// A Boolean value that indicates whether video playback prevents display and device sleep. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1624254-outputobscuredduetoinsufficiente?language=objc -func (p_ Player) OutputObscuredDueToInsufficientExternalProtection() bool { - rv := objc.Call[bool](p_, objc.Sel("outputObscuredDueToInsufficientExternalProtection")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/2990522-preventsdisplaysleepduringvideop?language=objc +func (p_ Player) PreventsDisplaySleepDuringVideoPlayback() bool { + rv := objc.Call[bool](p_, objc.Sel("preventsDisplaySleepDuringVideoPlayback")) return rv } -// The playback coordinator for the player. [Full Topic] +// A Boolean value that indicates whether video playback prevents display and device sleep. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/3750305-playbackcoordinator?language=objc -func (p_ Player) PlaybackCoordinator() PlayerPlaybackCoordinator { - rv := objc.Call[PlayerPlaybackCoordinator](p_, objc.Sel("playbackCoordinator")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/2990522-preventsdisplaysleepduringvideop?language=objc +func (p_ Player) SetPreventsDisplaySleepDuringVideoPlayback(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setPreventsDisplaySleepDuringVideoPlayback:"), value) +} + +// A value that indicates the readiness of a player object for playback. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1388096-status?language=objc +func (p_ Player) Status() PlayerStatus { + rv := objc.Call[PlayerStatus](p_, objc.Sel("status")) return rv } -// A policy that determines how playback of audiovisual media continues when the app transitions to the background. [Full Topic] +// A Boolean value that indicates whether the player should automatically delay playback in order to minimize stalling. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/3787548-audiovisualbackgroundplaybackpol?language=objc -func (p_ Player) AudiovisualBackgroundPlaybackPolicy() PlayerAudiovisualBackgroundPlaybackPolicy { - rv := objc.Call[PlayerAudiovisualBackgroundPlaybackPolicy](p_, objc.Sel("audiovisualBackgroundPlaybackPolicy")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1643482-automaticallywaitstominimizestal?language=objc +func (p_ Player) AutomaticallyWaitsToMinimizeStalling() bool { + rv := objc.Call[bool](p_, objc.Sel("automaticallyWaitsToMinimizeStalling")) return rv } -// A policy that determines how playback of audiovisual media continues when the app transitions to the background. [Full Topic] +// A Boolean value that indicates whether the player should automatically delay playback in order to minimize stalling. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/3787548-audiovisualbackgroundplaybackpol?language=objc -func (p_ Player) SetAudiovisualBackgroundPlaybackPolicy(value PlayerAudiovisualBackgroundPlaybackPolicy) { - objc.Call[objc.Void](p_, objc.Sel("setAudiovisualBackgroundPlaybackPolicy:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1643482-automaticallywaitstominimizestal?language=objc +func (p_ Player) SetAutomaticallyWaitsToMinimizeStalling(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAutomaticallyWaitsToMinimizeStalling:"), value) } diff --git a/macos/avfoundation/player_interstitial_event.gen.go b/macos/avfoundation/player_interstitial_event.gen.go index 407a2274..696ca658 100644 --- a/macos/avfoundation/player_interstitial_event.gen.go +++ b/macos/avfoundation/player_interstitial_event.gen.go @@ -20,15 +20,15 @@ type _PlayerInterstitialEventClass struct { // An interface definition for the [PlayerInterstitialEvent] class. type IPlayerInterstitialEvent interface { objc.IObject - TemplateItems() []PlayerItem - Time() coremedia.Time + Restrictions() PlayerInterstitialEventRestrictions Date() foundation.Date PrimaryItem() PlayerItem - Identifier() string - ResumptionOffset() coremedia.Time - PlayoutLimit() coremedia.Time - Restrictions() PlayerInterstitialEventRestrictions + TemplateItems() []PlayerItem UserDefinedAttributes() foundation.Dictionary + Time() coremedia.Time + PlayoutLimit() coremedia.Time + ResumptionOffset() coremedia.Time + Identifier() string } // An object that provides instructions for how a player presents interstitial content. [Full Topic] @@ -64,19 +64,11 @@ func (p_ PlayerInterstitialEvent) Init() PlayerInterstitialEvent { return rv } -// An array of player item configurations to use as templates for player items that play interstitial content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3726121-templateitems?language=objc -func (p_ PlayerInterstitialEvent) TemplateItems() []PlayerItem { - rv := objc.Call[[]PlayerItem](p_, objc.Sel("templateItems")) - return rv -} - -// A time within the timeline of the primary content that playback of interstitial content begins. [Full Topic] +// The restrictions the event imposes on the playback of interstitial content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3726122-time?language=objc -func (p_ PlayerInterstitialEvent) Time() coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("time")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3726119-restrictions?language=objc +func (p_ PlayerInterstitialEvent) Restrictions() PlayerInterstitialEventRestrictions { + rv := objc.Call[PlayerInterstitialEventRestrictions](p_, objc.Sel("restrictions")) return rv } @@ -96,19 +88,27 @@ func (p_ PlayerInterstitialEvent) PrimaryItem() PlayerItem { return rv } -// An identifier for the event. [Full Topic] +// An array of player item configurations to use as templates for player items that play interstitial content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3746585-identifier?language=objc -func (p_ PlayerInterstitialEvent) Identifier() string { - rv := objc.Call[string](p_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3726121-templateitems?language=objc +func (p_ PlayerInterstitialEvent) TemplateItems() []PlayerItem { + rv := objc.Call[[]PlayerItem](p_, objc.Sel("templateItems")) return rv } -// A time offset at which playback of primary content resumes after interstitial content finishes. [Full Topic] +// Attributes of the event that the vendor or app defines. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3726120-resumptionoffset?language=objc -func (p_ PlayerInterstitialEvent) ResumptionOffset() coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("resumptionOffset")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3820994-userdefinedattributes?language=objc +func (p_ PlayerInterstitialEvent) UserDefinedAttributes() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](p_, objc.Sel("userDefinedAttributes")) + return rv +} + +// A time within the timeline of the primary content that playback of interstitial content begins. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3726122-time?language=objc +func (p_ PlayerInterstitialEvent) Time() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("time")) return rv } @@ -120,18 +120,18 @@ func (p_ PlayerInterstitialEvent) PlayoutLimit() coremedia.Time { return rv } -// The restrictions the event imposes on the playback of interstitial content. [Full Topic] +// A time offset at which playback of primary content resumes after interstitial content finishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3726119-restrictions?language=objc -func (p_ PlayerInterstitialEvent) Restrictions() PlayerInterstitialEventRestrictions { - rv := objc.Call[PlayerInterstitialEventRestrictions](p_, objc.Sel("restrictions")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3726120-resumptionoffset?language=objc +func (p_ PlayerInterstitialEvent) ResumptionOffset() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("resumptionOffset")) return rv } -// Attributes of the event that the vendor or app defines. [Full Topic] +// An identifier for the event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3820994-userdefinedattributes?language=objc -func (p_ PlayerInterstitialEvent) UserDefinedAttributes() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](p_, objc.Sel("userDefinedAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialevent/3746585-identifier?language=objc +func (p_ PlayerInterstitialEvent) Identifier() string { + rv := objc.Call[string](p_, objc.Sel("identifier")) return rv } diff --git a/macos/avfoundation/player_interstitial_event_monitor.gen.go b/macos/avfoundation/player_interstitial_event_monitor.gen.go index 9f69d473..f8494644 100644 --- a/macos/avfoundation/player_interstitial_event_monitor.gen.go +++ b/macos/avfoundation/player_interstitial_event_monitor.gen.go @@ -18,10 +18,10 @@ type _PlayerInterstitialEventMonitorClass struct { // An interface definition for the [PlayerInterstitialEventMonitor] class. type IPlayerInterstitialEventMonitor interface { objc.IObject - InterstitialPlayer() QueuePlayer CurrentEvent() PlayerInterstitialEvent - PrimaryPlayer() Player Events() []PlayerInterstitialEvent + PrimaryPlayer() Player + InterstitialPlayer() QueuePlayer } // An object that monitors the scheduling and progress of interstitial events. [Full Topic] @@ -83,14 +83,6 @@ func (p_ PlayerInterstitialEventMonitor) Init() PlayerInterstitialEventMonitor { return rv } -// An object that plays interstitial content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialeventmonitor/3800567-interstitialplayer?language=objc -func (p_ PlayerInterstitialEventMonitor) InterstitialPlayer() QueuePlayer { - rv := objc.Call[QueuePlayer](p_, objc.Sel("interstitialPlayer")) - return rv -} - // The current interstitial event. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialeventmonitor/3800563-currentevent?language=objc @@ -99,6 +91,14 @@ func (p_ PlayerInterstitialEventMonitor) CurrentEvent() PlayerInterstitialEvent return rv } +// The schedule of interstitial events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialeventmonitor/3800564-events?language=objc +func (p_ PlayerInterstitialEventMonitor) Events() []PlayerInterstitialEvent { + rv := objc.Call[[]PlayerInterstitialEvent](p_, objc.Sel("events")) + return rv +} + // An object that plays primary content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialeventmonitor/3800568-primaryplayer?language=objc @@ -107,10 +107,10 @@ func (p_ PlayerInterstitialEventMonitor) PrimaryPlayer() Player { return rv } -// The schedule of interstitial events. [Full Topic] +// An object that plays interstitial content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialeventmonitor/3800564-events?language=objc -func (p_ PlayerInterstitialEventMonitor) Events() []PlayerInterstitialEvent { - rv := objc.Call[[]PlayerInterstitialEvent](p_, objc.Sel("events")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialeventmonitor/3800567-interstitialplayer?language=objc +func (p_ PlayerInterstitialEventMonitor) InterstitialPlayer() QueuePlayer { + rv := objc.Call[QueuePlayer](p_, objc.Sel("interstitialPlayer")) return rv } diff --git a/macos/avfoundation/player_item.gen.go b/macos/avfoundation/player_item.gen.go index 24ec6647..9b2e43ce 100644 --- a/macos/avfoundation/player_item.gen.go +++ b/macos/avfoundation/player_item.gen.go @@ -21,97 +21,94 @@ type _PlayerItemClass struct { // An interface definition for the [PlayerItem] class. type IPlayerItem interface { objc.IObject - StepByCount(stepCount int) - AddOutput(output IPlayerItemOutput) SelectMediaOptionAutomaticallyInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) - RequestContentAuthorizationAsynchronouslyWithTimeoutIntervalCompletionHandler(timeoutInterval foundation.TimeInterval, handler func()) - AddMediaDataCollector(collector IPlayerItemMediaDataCollector) - CurrentDate() foundation.Date - SeekToTimeCompletionHandler(time coremedia.Time, completionHandler func(finished bool)) - RemoveMediaDataCollector(collector IPlayerItemMediaDataCollector) - SelectMediaOptionInMediaSelectionGroup(mediaSelectionOption IMediaSelectionOption, mediaSelectionGroup IMediaSelectionGroup) - SeekToTimeToleranceBeforeToleranceAfterCompletionHandler(time coremedia.Time, toleranceBefore coremedia.Time, toleranceAfter coremedia.Time, completionHandler func(finished bool)) ErrorLog() PlayerItemErrorLog - AccessLog() PlayerItemAccessLog - SeekToDateCompletionHandler(date foundation.IDate, completionHandler func(finished bool)) bool CancelPendingSeeks() - CopyWithZone(zone unsafe.Pointer) objc.Object - RemoveOutput(output IPlayerItemOutput) Copy() objc.Object + RemoveMediaDataCollector(collector IPlayerItemMediaDataCollector) + CurrentDate() foundation.Date + AddOutput(output IPlayerItemOutput) + AddMediaDataCollector(collector IPlayerItemMediaDataCollector) CancelContentAuthorizationRequest() + StepByCount(stepCount int) + RemoveOutput(output IPlayerItemOutput) + RequestContentAuthorizationAsynchronouslyWithTimeoutIntervalCompletionHandler(timeoutInterval foundation.TimeInterval, handler func()) + SelectMediaOptionInMediaSelectionGroup(mediaSelectionOption IMediaSelectionOption, mediaSelectionGroup IMediaSelectionGroup) + CopyWithZone(zone unsafe.Pointer) objc.Object + AccessLog() PlayerItemAccessLog CurrentTime() coremedia.Time - Outputs() []PlayerItemOutput + AllowedAudioSpatializationFormats() AudioSpatializationFormats + SetAllowedAudioSpatializationFormats(value AudioSpatializationFormats) + CanPlayFastReverse() bool + CanStepForward() bool + Error() foundation.Error + Tracks() []PlayerItemTrack + CanPlaySlowReverse() bool + IsPlaybackBufferEmpty() bool VideoComposition() VideoComposition SetVideoComposition(value IVideoComposition) - StartsOnFirstEligibleVariant() bool - SetStartsOnFirstEligibleVariant(value bool) + IsAuthorizationRequiredForPlayback() bool + CanPlayReverse() bool + IsPlaybackLikelyToKeepUp() bool + AudioTimePitchAlgorithm() AudioTimePitchAlgorithm + SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) + ForwardPlaybackEndTime() coremedia.Time + SetForwardPlaybackEndTime(value coremedia.Time) + TextStyleRules() []TextStyleRule + SetTextStyleRules(value []ITextStyleRule) + PreferredPeakBitRateForExpensiveNetworks() float64 + SetPreferredPeakBitRateForExpensiveNetworks(value float64) + PreferredPeakBitRate() float64 + SetPreferredPeakBitRate(value float64) VideoApertureMode() VideoApertureMode SetVideoApertureMode(value VideoApertureMode) + TemplatePlayerItem() PlayerItem + ReversePlaybackEndTime() coremedia.Time + SetReversePlaybackEndTime(value coremedia.Time) + Outputs() []PlayerItemOutput + Timebase() coremedia.TimebaseRef + RecommendedTimeOffsetFromLive() coremedia.Time + CanUseNetworkResourcesForLiveStreamingWhilePaused() bool + SetCanUseNetworkResourcesForLiveStreamingWhilePaused(value bool) + CanStepBackward() bool + ContentAuthorizationRequestStatus() ContentAuthorizationStatus + CustomVideoCompositor() VideoCompositingObject + PresentationSize() coregraphics.Size ConfiguredTimeOffsetFromLive() coremedia.Time SetConfiguredTimeOffsetFromLive(value coremedia.Time) SeekingWaitsForVideoCompositionRendering() bool SetSeekingWaitsForVideoCompositionRendering(value bool) - IsAuthorizationRequiredForPlayback() bool - CanStepBackward() bool - IsPlaybackLikelyToKeepUp() bool + LoadedTimeRanges() []foundation.Value + AppliesPerFrameHDRDisplayMetadata() bool + SetAppliesPerFrameHDRDisplayMetadata(value bool) + CurrentMediaSelection() MediaSelection + AutomaticallyHandlesInterstitialEvents() bool + SetAutomaticallyHandlesInterstitialEvents(value bool) + AutomaticallyPreservesTimeOffsetFromLive() bool + SetAutomaticallyPreservesTimeOffsetFromLive(value bool) + IsApplicationAuthorizedForPlayback() bool PreferredMaximumResolutionForExpensiveNetworks() coregraphics.Size SetPreferredMaximumResolutionForExpensiveNetworks(value coregraphics.Size) - Tracks() []PlayerItemTrack - CanPlaySlowReverse() bool - MediaDataCollectors() []PlayerItemMediaDataCollector - TextStyleRules() []TextStyleRule - SetTextStyleRules(value []ITextStyleRule) - PreferredForwardBufferDuration() foundation.TimeInterval - SetPreferredForwardBufferDuration(value foundation.TimeInterval) - CanPlayFastReverse() bool - PreferredMaximumResolution() coregraphics.Size - SetPreferredMaximumResolution(value coregraphics.Size) - IsApplicationAuthorizedForPlayback() bool + IsPlaybackBufferFull() bool IsContentAuthorizedForPlayback() bool - Duration() coremedia.Time - AutomaticallyLoadedAssetKeys() []string - CanUseNetworkResourcesForLiveStreamingWhilePaused() bool - SetCanUseNetworkResourcesForLiveStreamingWhilePaused(value bool) - AppliesPerFrameHDRDisplayMetadata() bool - SetAppliesPerFrameHDRDisplayMetadata(value bool) - Timebase() coremedia.TimebaseRef AudioMix() AudioMix SetAudioMix(value IAudioMix) - PreferredPeakBitRateForExpensiveNetworks() float64 - SetPreferredPeakBitRateForExpensiveNetworks(value float64) - AllowedAudioSpatializationFormats() AudioSpatializationFormats - SetAllowedAudioSpatializationFormats(value AudioSpatializationFormats) - AutomaticallyPreservesTimeOffsetFromLive() bool - SetAutomaticallyPreservesTimeOffsetFromLive(value bool) - ForwardPlaybackEndTime() coremedia.Time - SetForwardPlaybackEndTime(value coremedia.Time) - CustomVideoCompositor() VideoCompositingObject SeekableTimeRanges() []foundation.Value - PresentationSize() coregraphics.Size - ContentAuthorizationRequestStatus() ContentAuthorizationStatus - CanPlayFastForward() bool - IsPlaybackBufferFull() bool - PreferredPeakBitRate() float64 - SetPreferredPeakBitRate(value float64) - TemplatePlayerItem() PlayerItem - IsPlaybackBufferEmpty() bool - Status() PlayerItemStatus - CanStepForward() bool - AutomaticallyHandlesInterstitialEvents() bool - SetAutomaticallyHandlesInterstitialEvents(value bool) - AudioTimePitchAlgorithm() AudioTimePitchAlgorithm - SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) - CurrentMediaSelection() MediaSelection - CanPlayReverse() bool - RecommendedTimeOffsetFromLive() coremedia.Time - Asset() Asset + PreferredMaximumResolution() coregraphics.Size + SetPreferredMaximumResolution(value coregraphics.Size) VariantPreferences() VariantPreferences SetVariantPreferences(value VariantPreferences) - ReversePlaybackEndTime() coremedia.Time - SetReversePlaybackEndTime(value coremedia.Time) CanPlaySlowForward() bool - LoadedTimeRanges() []foundation.Value - Error() foundation.Error + AutomaticallyLoadedAssetKeys() []string + Duration() coremedia.Time + PreferredForwardBufferDuration() foundation.TimeInterval + SetPreferredForwardBufferDuration(value foundation.TimeInterval) + Status() PlayerItemStatus + MediaDataCollectors() []PlayerItemMediaDataCollector + StartsOnFirstEligibleVariant() bool + SetStartsOnFirstEligibleVariant(value bool) + Asset() Asset + CanPlayFastForward() bool } // An object that models the timing and presentation state of an asset during playback. [Full Topic] @@ -153,32 +150,6 @@ func NewPlayerItemWithURL(URL foundation.IURL) PlayerItem { return instance } -func (pc _PlayerItemClass) PlayerItemWithAssetAutomaticallyLoadedAssetKeys(asset IAsset, automaticallyLoadedAssetKeys []string) PlayerItem { - rv := objc.Call[PlayerItem](pc, objc.Sel("playerItemWithAsset:automaticallyLoadedAssetKeys:"), asset, automaticallyLoadedAssetKeys) - return rv -} - -// Creates a player item with the specified asset and the asset keys to automatically load. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1588088-playeritemwithasset?language=objc -func PlayerItem_PlayerItemWithAssetAutomaticallyLoadedAssetKeys(asset IAsset, automaticallyLoadedAssetKeys []string) PlayerItem { - return PlayerItemClass.PlayerItemWithAssetAutomaticallyLoadedAssetKeys(asset, automaticallyLoadedAssetKeys) -} - -func (p_ PlayerItem) InitWithAsset(asset IAsset) PlayerItem { - rv := objc.Call[PlayerItem](p_, objc.Sel("initWithAsset:"), asset) - return rv -} - -// Creates a player item for a specified asset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390707-initwithasset?language=objc -func NewPlayerItemWithAsset(asset IAsset) PlayerItem { - instance := PlayerItemClass.Alloc().InitWithAsset(asset) - instance.Autorelease() - return instance -} - func (pc _PlayerItemClass) PlayerItemWithURL(URL foundation.IURL) PlayerItem { rv := objc.Call[PlayerItem](pc, objc.Sel("playerItemWithURL:"), URL) return rv @@ -191,16 +162,16 @@ func PlayerItem_PlayerItemWithURL(URL foundation.IURL) PlayerItem { return PlayerItemClass.PlayerItemWithURL(URL) } -func (p_ PlayerItem) InitWithAssetAutomaticallyLoadedAssetKeys(asset IAsset, automaticallyLoadedAssetKeys []string) PlayerItem { - rv := objc.Call[PlayerItem](p_, objc.Sel("initWithAsset:automaticallyLoadedAssetKeys:"), asset, automaticallyLoadedAssetKeys) +func (p_ PlayerItem) InitWithAsset(asset IAsset) PlayerItem { + rv := objc.Call[PlayerItem](p_, objc.Sel("initWithAsset:"), asset) return rv } -// Creates a player item with the specified asset and the asset keys to automatically load. [Full Topic] +// Creates a player item for a specified asset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387529-initwithasset?language=objc -func NewPlayerItemWithAssetAutomaticallyLoadedAssetKeys(asset IAsset, automaticallyLoadedAssetKeys []string) PlayerItem { - instance := PlayerItemClass.Alloc().InitWithAssetAutomaticallyLoadedAssetKeys(asset, automaticallyLoadedAssetKeys) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390707-initwithasset?language=objc +func NewPlayerItemWithAsset(asset IAsset) PlayerItem { + instance := PlayerItemClass.Alloc().InitWithAsset(asset) instance.Autorelease() return instance } @@ -225,39 +196,42 @@ func (p_ PlayerItem) Init() PlayerItem { return rv } -// Moves the player item’s current time forward or backward by a specified number of steps. [Full Topic] +// Selects the media option in the specified media selection group that best matches the receiver’s automatic selection criteria. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387968-stepbycount?language=objc -func (p_ PlayerItem) StepByCount(stepCount int) { - objc.Call[objc.Void](p_, objc.Sel("stepByCount:"), stepCount) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388268-selectmediaoptionautomaticallyin?language=objc +func (p_ PlayerItem) SelectMediaOptionAutomaticallyInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) { + objc.Call[objc.Void](p_, objc.Sel("selectMediaOptionAutomaticallyInMediaSelectionGroup:"), mediaSelectionGroup) } -// Adds the specified player item output object to the receiver. [Full Topic] +// Returns an object that represents a snapshot of the error log. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389782-addoutput?language=objc -func (p_ PlayerItem) AddOutput(output IPlayerItemOutput) { - objc.Call[objc.Void](p_, objc.Sel("addOutput:"), output) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387573-errorlog?language=objc +func (p_ PlayerItem) ErrorLog() PlayerItemErrorLog { + rv := objc.Call[PlayerItemErrorLog](p_, objc.Sel("errorLog")) + return rv } -// Selects the media option in the specified media selection group that best matches the receiver’s automatic selection criteria. [Full Topic] +// Cancels any pending seek requests and invokes the corresponding completion handlers if present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388268-selectmediaoptionautomaticallyin?language=objc -func (p_ PlayerItem) SelectMediaOptionAutomaticallyInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) { - objc.Call[objc.Void](p_, objc.Sel("selectMediaOptionAutomaticallyInMediaSelectionGroup:"), mediaSelectionGroup) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388316-cancelpendingseeks?language=objc +func (p_ PlayerItem) CancelPendingSeeks() { + objc.Call[objc.Void](p_, objc.Sel("cancelPendingSeeks")) } -// Presents the user the opportunity to authorize the content for playback. [Full Topic] +// Creates a copy of the object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390600-requestcontentauthorizationasync?language=objc -func (p_ PlayerItem) RequestContentAuthorizationAsynchronouslyWithTimeoutIntervalCompletionHandler(timeoutInterval foundation.TimeInterval, handler func()) { - objc.Call[objc.Void](p_, objc.Sel("requestContentAuthorizationAsynchronouslyWithTimeoutInterval:completionHandler:"), timeoutInterval, handler) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3861797-copy?language=objc +func (p_ PlayerItem) Copy() objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("copy")) + rv.Autorelease() + return rv } -// Adds the specified media data collector to the player item’s collection of media collectors. [Full Topic] +// Removes the specified media data collector from the player item’s collection of media collectors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1624164-addmediadatacollector?language=objc -func (p_ PlayerItem) AddMediaDataCollector(collector IPlayerItemMediaDataCollector) { - objc.Call[objc.Void](p_, objc.Sel("addMediaDataCollector:"), collector) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1624163-removemediadatacollector?language=objc +func (p_ PlayerItem) RemoveMediaDataCollector(collector IPlayerItemMediaDataCollector) { + objc.Call[objc.Void](p_, objc.Sel("removeMediaDataCollector:"), collector) } // Returns the current time of the item as a date. [Full Topic] @@ -268,63 +242,53 @@ func (p_ PlayerItem) CurrentDate() foundation.Date { return rv } -// Sets the current playback time to the specified time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387418-seektotime?language=objc -func (p_ PlayerItem) SeekToTimeCompletionHandler(time coremedia.Time, completionHandler func(finished bool)) { - objc.Call[objc.Void](p_, objc.Sel("seekToTime:completionHandler:"), time, completionHandler) -} - -// Removes the specified media data collector from the player item’s collection of media collectors. [Full Topic] +// Adds the specified player item output object to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1624163-removemediadatacollector?language=objc -func (p_ PlayerItem) RemoveMediaDataCollector(collector IPlayerItemMediaDataCollector) { - objc.Call[objc.Void](p_, objc.Sel("removeMediaDataCollector:"), collector) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389782-addoutput?language=objc +func (p_ PlayerItem) AddOutput(output IPlayerItemOutput) { + objc.Call[objc.Void](p_, objc.Sel("addOutput:"), output) } -// Selects a media option in a given media selection group and deselects all other options in that group. [Full Topic] +// Adds the specified media data collector to the player item’s collection of media collectors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389610-selectmediaoption?language=objc -func (p_ PlayerItem) SelectMediaOptionInMediaSelectionGroup(mediaSelectionOption IMediaSelectionOption, mediaSelectionGroup IMediaSelectionGroup) { - objc.Call[objc.Void](p_, objc.Sel("selectMediaOption:inMediaSelectionGroup:"), mediaSelectionOption, mediaSelectionGroup) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1624164-addmediadatacollector?language=objc +func (p_ PlayerItem) AddMediaDataCollector(collector IPlayerItemMediaDataCollector) { + objc.Call[objc.Void](p_, objc.Sel("addMediaDataCollector:"), collector) } -// Sets the current playback time within a specified time bound and invokes the specified block when the seek operation completes or is interrupted. [Full Topic] +// Cancels the currently outstanding content authorization request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387753-seektotime?language=objc -func (p_ PlayerItem) SeekToTimeToleranceBeforeToleranceAfterCompletionHandler(time coremedia.Time, toleranceBefore coremedia.Time, toleranceAfter coremedia.Time, completionHandler func(finished bool)) { - objc.Call[objc.Void](p_, objc.Sel("seekToTime:toleranceBefore:toleranceAfter:completionHandler:"), time, toleranceBefore, toleranceAfter, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387726-cancelcontentauthorizationreques?language=objc +func (p_ PlayerItem) CancelContentAuthorizationRequest() { + objc.Call[objc.Void](p_, objc.Sel("cancelContentAuthorizationRequest")) } -// Returns an object that represents a snapshot of the error log. [Full Topic] +// Moves the player item’s current time forward or backward by a specified number of steps. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387573-errorlog?language=objc -func (p_ PlayerItem) ErrorLog() PlayerItemErrorLog { - rv := objc.Call[PlayerItemErrorLog](p_, objc.Sel("errorLog")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387968-stepbycount?language=objc +func (p_ PlayerItem) StepByCount(stepCount int) { + objc.Call[objc.Void](p_, objc.Sel("stepByCount:"), stepCount) } -// Returns an object that represents a snapshot of the network access log. [Full Topic] +// Removes the specified player item output object from the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388499-accesslog?language=objc -func (p_ PlayerItem) AccessLog() PlayerItemAccessLog { - rv := objc.Call[PlayerItemAccessLog](p_, objc.Sel("accessLog")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388756-removeoutput?language=objc +func (p_ PlayerItem) RemoveOutput(output IPlayerItemOutput) { + objc.Call[objc.Void](p_, objc.Sel("removeOutput:"), output) } -// Sets the current playback time to the time specified by the date object. [Full Topic] +// Presents the user the opportunity to authorize the content for playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389877-seektodate?language=objc -func (p_ PlayerItem) SeekToDateCompletionHandler(date foundation.IDate, completionHandler func(finished bool)) bool { - rv := objc.Call[bool](p_, objc.Sel("seekToDate:completionHandler:"), date, completionHandler) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390600-requestcontentauthorizationasync?language=objc +func (p_ PlayerItem) RequestContentAuthorizationAsynchronouslyWithTimeoutIntervalCompletionHandler(timeoutInterval foundation.TimeInterval, handler func()) { + objc.Call[objc.Void](p_, objc.Sel("requestContentAuthorizationAsynchronouslyWithTimeoutInterval:completionHandler:"), timeoutInterval, handler) } -// Cancels any pending seek requests and invokes the corresponding completion handlers if present. [Full Topic] +// Selects a media option in a given media selection group and deselects all other options in that group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388316-cancelpendingseeks?language=objc -func (p_ PlayerItem) CancelPendingSeeks() { - objc.Call[objc.Void](p_, objc.Sel("cancelPendingSeeks")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389610-selectmediaoption?language=objc +func (p_ PlayerItem) SelectMediaOptionInMediaSelectionGroup(mediaSelectionOption IMediaSelectionOption, mediaSelectionGroup IMediaSelectionGroup) { + objc.Call[objc.Void](p_, objc.Sel("selectMediaOption:inMediaSelectionGroup:"), mediaSelectionOption, mediaSelectionGroup) } // Creates a copy of the object with the specified zone. [Full Topic] @@ -335,29 +299,14 @@ func (p_ PlayerItem) CopyWithZone(zone unsafe.Pointer) objc.Object { return rv } -// Removes the specified player item output object from the receiver. [Full Topic] +// Returns an object that represents a snapshot of the network access log. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388756-removeoutput?language=objc -func (p_ PlayerItem) RemoveOutput(output IPlayerItemOutput) { - objc.Call[objc.Void](p_, objc.Sel("removeOutput:"), output) -} - -// Creates a copy of the object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3861797-copy?language=objc -func (p_ PlayerItem) Copy() objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("copy")) - rv.Autorelease() +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388499-accesslog?language=objc +func (p_ PlayerItem) AccessLog() PlayerItemAccessLog { + rv := objc.Call[PlayerItemAccessLog](p_, objc.Sel("accessLog")) return rv } -// Cancels the currently outstanding content authorization request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387726-cancelcontentauthorizationreques?language=objc -func (p_ PlayerItem) CancelContentAuthorizationRequest() { - objc.Call[objc.Void](p_, objc.Sel("cancelContentAuthorizationRequest")) -} - // Returns the current time of the item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387230-currenttime?language=objc @@ -366,87 +315,82 @@ func (p_ PlayerItem) CurrentTime() coremedia.Time { return rv } -// An array of outputs associated with the player item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389090-outputs?language=objc -func (p_ PlayerItem) Outputs() []PlayerItemOutput { - rv := objc.Call[[]PlayerItemOutput](p_, objc.Sel("outputs")) - return rv -} - -// The video composition settings to be applied during playback. [Full Topic] +// The source audio channel layouts the player item supports for spatialization. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388818-videocomposition?language=objc -func (p_ PlayerItem) VideoComposition() VideoComposition { - rv := objc.Call[VideoComposition](p_, objc.Sel("videoComposition")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3601108-allowedaudiospatializationformat?language=objc +func (p_ PlayerItem) AllowedAudioSpatializationFormats() AudioSpatializationFormats { + rv := objc.Call[AudioSpatializationFormats](p_, objc.Sel("allowedAudioSpatializationFormats")) return rv } -// The video composition settings to be applied during playback. [Full Topic] +// The source audio channel layouts the player item supports for spatialization. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388818-videocomposition?language=objc -func (p_ PlayerItem) SetVideoComposition(value IVideoComposition) { - objc.Call[objc.Void](p_, objc.Sel("setVideoComposition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3601108-allowedaudiospatializationformat?language=objc +func (p_ PlayerItem) SetAllowedAudioSpatializationFormats(value AudioSpatializationFormats) { + objc.Call[objc.Void](p_, objc.Sel("setAllowedAudioSpatializationFormats:"), value) } -// A Boolean value that indicates whether playback starts with the first eligible variant that appears in the stream’s main playlist. [Full Topic] +// A Boolean value that indicates whether the item can be quickly reversed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3579514-startsonfirsteligiblevariant?language=objc -func (p_ PlayerItem) StartsOnFirstEligibleVariant() bool { - rv := objc.Call[bool](p_, objc.Sel("startsOnFirstEligibleVariant")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390493-canplayfastreverse?language=objc +func (p_ PlayerItem) CanPlayFastReverse() bool { + rv := objc.Call[bool](p_, objc.Sel("canPlayFastReverse")) return rv } -// A Boolean value that indicates whether playback starts with the first eligible variant that appears in the stream’s main playlist. [Full Topic] +// A Boolean value that indicates whether the item supports stepping forward. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3579514-startsonfirsteligiblevariant?language=objc -func (p_ PlayerItem) SetStartsOnFirstEligibleVariant(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setStartsOnFirstEligibleVariant:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389656-canstepforward?language=objc +func (p_ PlayerItem) CanStepForward() bool { + rv := objc.Call[bool](p_, objc.Sel("canStepForward")) + return rv } -// The video aperture mode to apply during playback. [Full Topic] +// The error that caused the player item to fail. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/2868499-videoaperturemode?language=objc -func (p_ PlayerItem) VideoApertureMode() VideoApertureMode { - rv := objc.Call[VideoApertureMode](p_, objc.Sel("videoApertureMode")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389185-error?language=objc +func (p_ PlayerItem) Error() foundation.Error { + rv := objc.Call[foundation.Error](p_, objc.Sel("error")) return rv } -// The video aperture mode to apply during playback. [Full Topic] +// An array of player item track objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/2868499-videoaperturemode?language=objc -func (p_ PlayerItem) SetVideoApertureMode(value VideoApertureMode) { - objc.Call[objc.Void](p_, objc.Sel("setVideoApertureMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386361-tracks?language=objc +func (p_ PlayerItem) Tracks() []PlayerItemTrack { + rv := objc.Call[[]PlayerItemTrack](p_, objc.Sel("tracks")) + return rv } -// A time value that indicates the offset from the live time to start playback, or resume playback after a seek to positive infinity. [Full Topic] +// A Boolean value that indicates whether the item can play slowly backward. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3227882-configuredtimeoffsetfromlive?language=objc -func (p_ PlayerItem) ConfiguredTimeOffsetFromLive() coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("configuredTimeOffsetFromLive")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390598-canplayslowreverse?language=objc +func (p_ PlayerItem) CanPlaySlowReverse() bool { + rv := objc.Call[bool](p_, objc.Sel("canPlaySlowReverse")) return rv } -// A time value that indicates the offset from the live time to start playback, or resume playback after a seek to positive infinity. [Full Topic] +// A Boolean value that indicates whether playback has consumed all buffered media and that playback will stall or end. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3227882-configuredtimeoffsetfromlive?language=objc -func (p_ PlayerItem) SetConfiguredTimeOffsetFromLive(value coremedia.Time) { - objc.Call[objc.Void](p_, objc.Sel("setConfiguredTimeOffsetFromLive:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386960-playbackbufferempty?language=objc +func (p_ PlayerItem) IsPlaybackBufferEmpty() bool { + rv := objc.Call[bool](p_, objc.Sel("isPlaybackBufferEmpty")) + return rv } -// A Boolean value that indicates whether the item’s timing follows the displayed video frame when seeking with a video composition. [Full Topic] +// The video composition settings to be applied during playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385726-seekingwaitsforvideocompositionr?language=objc -func (p_ PlayerItem) SeekingWaitsForVideoCompositionRendering() bool { - rv := objc.Call[bool](p_, objc.Sel("seekingWaitsForVideoCompositionRendering")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388818-videocomposition?language=objc +func (p_ PlayerItem) VideoComposition() VideoComposition { + rv := objc.Call[VideoComposition](p_, objc.Sel("videoComposition")) return rv } -// A Boolean value that indicates whether the item’s timing follows the displayed video frame when seeking with a video composition. [Full Topic] +// The video composition settings to be applied during playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385726-seekingwaitsforvideocompositionr?language=objc -func (p_ PlayerItem) SetSeekingWaitsForVideoCompositionRendering(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setSeekingWaitsForVideoCompositionRendering:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388818-videocomposition?language=objc +func (p_ PlayerItem) SetVideoComposition(value IVideoComposition) { + objc.Call[objc.Void](p_, objc.Sel("setVideoComposition:"), value) } // A Boolean value that indicates whether authorization is required to play the content. [Full Topic] @@ -457,11 +401,11 @@ func (p_ PlayerItem) IsAuthorizationRequiredForPlayback() bool { return rv } -// A Boolean value that indicates whether the item supports stepping backward. [Full Topic] +// A Boolean value that indicates whether the item can play in reverse. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386796-canstepbackward?language=objc -func (p_ PlayerItem) CanStepBackward() bool { - rv := objc.Call[bool](p_, objc.Sel("canStepBackward")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385591-canplayreverse?language=objc +func (p_ PlayerItem) CanPlayReverse() bool { + rv := objc.Call[bool](p_, objc.Sel("canPlayReverse")) return rv } @@ -473,43 +417,34 @@ func (p_ PlayerItem) IsPlaybackLikelyToKeepUp() bool { return rv } -// An upper limit on the resolution of video to download when connecting over expensive networks. [Full Topic] +// The processing algorithm used to manage audio pitch for scaled audio edits. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3750308-preferredmaximumresolutionforexp?language=objc -func (p_ PlayerItem) PreferredMaximumResolutionForExpensiveNetworks() coregraphics.Size { - rv := objc.Call[coregraphics.Size](p_, objc.Sel("preferredMaximumResolutionForExpensiveNetworks")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385855-audiotimepitchalgorithm?language=objc +func (p_ PlayerItem) AudioTimePitchAlgorithm() AudioTimePitchAlgorithm { + rv := objc.Call[AudioTimePitchAlgorithm](p_, objc.Sel("audioTimePitchAlgorithm")) return rv } -// An upper limit on the resolution of video to download when connecting over expensive networks. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3750308-preferredmaximumresolutionforexp?language=objc -func (p_ PlayerItem) SetPreferredMaximumResolutionForExpensiveNetworks(value coregraphics.Size) { - objc.Call[objc.Void](p_, objc.Sel("setPreferredMaximumResolutionForExpensiveNetworks:"), value) -} - -// An array of player item track objects. [Full Topic] +// The processing algorithm used to manage audio pitch for scaled audio edits. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386361-tracks?language=objc -func (p_ PlayerItem) Tracks() []PlayerItemTrack { - rv := objc.Call[[]PlayerItemTrack](p_, objc.Sel("tracks")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385855-audiotimepitchalgorithm?language=objc +func (p_ PlayerItem) SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) { + objc.Call[objc.Void](p_, objc.Sel("setAudioTimePitchAlgorithm:"), value) } -// A Boolean value that indicates whether the item can play slowly backward. [Full Topic] +// The time at which forward playback ends. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390598-canplayslowreverse?language=objc -func (p_ PlayerItem) CanPlaySlowReverse() bool { - rv := objc.Call[bool](p_, objc.Sel("canPlaySlowReverse")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385622-forwardplaybackendtime?language=objc +func (p_ PlayerItem) ForwardPlaybackEndTime() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("forwardPlaybackEndTime")) return rv } -// The collection of associated media data collectors. [Full Topic] +// The time at which forward playback ends. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1624161-mediadatacollectors?language=objc -func (p_ PlayerItem) MediaDataCollectors() []PlayerItemMediaDataCollector { - rv := objc.Call[[]PlayerItemMediaDataCollector](p_, objc.Sel("mediaDataCollectors")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385622-forwardplaybackendtime?language=objc +func (p_ PlayerItem) SetForwardPlaybackEndTime(value coremedia.Time) { + objc.Call[objc.Void](p_, objc.Sel("setForwardPlaybackEndTime:"), value) } // An array of text style rules that specify the formatting and presentation of Web Video Text Tracks (WebVTT) subtitles. [Full Topic] @@ -527,73 +462,95 @@ func (p_ PlayerItem) SetTextStyleRules(value []ITextStyleRule) { objc.Call[objc.Void](p_, objc.Sel("setTextStyleRules:"), value) } -// The duration the player should buffer media from the network ahead of the playhead to guard against playback disruption. [Full Topic] +// A limit of network bandwidth consumption by the item when connecting over expensive networks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1643630-preferredforwardbufferduration?language=objc -func (p_ PlayerItem) PreferredForwardBufferDuration() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("preferredForwardBufferDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3746589-preferredpeakbitrateforexpensive?language=objc +func (p_ PlayerItem) PreferredPeakBitRateForExpensiveNetworks() float64 { + rv := objc.Call[float64](p_, objc.Sel("preferredPeakBitRateForExpensiveNetworks")) return rv } -// The duration the player should buffer media from the network ahead of the playhead to guard against playback disruption. [Full Topic] +// A limit of network bandwidth consumption by the item when connecting over expensive networks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1643630-preferredforwardbufferduration?language=objc -func (p_ PlayerItem) SetPreferredForwardBufferDuration(value foundation.TimeInterval) { - objc.Call[objc.Void](p_, objc.Sel("setPreferredForwardBufferDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3746589-preferredpeakbitrateforexpensive?language=objc +func (p_ PlayerItem) SetPreferredPeakBitRateForExpensiveNetworks(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredPeakBitRateForExpensiveNetworks:"), value) } -// A Boolean value that indicates whether the item can be quickly reversed. [Full Topic] +// The desired limit, in bits per second, of network bandwidth consumption for this item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390493-canplayfastreverse?language=objc -func (p_ PlayerItem) CanPlayFastReverse() bool { - rv := objc.Call[bool](p_, objc.Sel("canPlayFastReverse")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388541-preferredpeakbitrate?language=objc +func (p_ PlayerItem) PreferredPeakBitRate() float64 { + rv := objc.Call[float64](p_, objc.Sel("preferredPeakBitRate")) return rv } -// The desired maximum resolution of a video that is to be downloaded. [Full Topic] +// The desired limit, in bits per second, of network bandwidth consumption for this item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/2867324-preferredmaximumresolution?language=objc -func (p_ PlayerItem) PreferredMaximumResolution() coregraphics.Size { - rv := objc.Call[coregraphics.Size](p_, objc.Sel("preferredMaximumResolution")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388541-preferredpeakbitrate?language=objc +func (p_ PlayerItem) SetPreferredPeakBitRate(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredPeakBitRate:"), value) +} + +// The video aperture mode to apply during playback. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/2868499-videoaperturemode?language=objc +func (p_ PlayerItem) VideoApertureMode() VideoApertureMode { + rv := objc.Call[VideoApertureMode](p_, objc.Sel("videoApertureMode")) return rv } -// The desired maximum resolution of a video that is to be downloaded. [Full Topic] +// The video aperture mode to apply during playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/2867324-preferredmaximumresolution?language=objc -func (p_ PlayerItem) SetPreferredMaximumResolution(value coregraphics.Size) { - objc.Call[objc.Void](p_, objc.Sel("setPreferredMaximumResolution:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/2868499-videoaperturemode?language=objc +func (p_ PlayerItem) SetVideoApertureMode(value VideoApertureMode) { + objc.Call[objc.Void](p_, objc.Sel("setVideoApertureMode:"), value) } -// A Boolean value that indicates whether the application can be used to play the content. [Full Topic] +// The template player item that initializes this instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389929-applicationauthorizedforplayback?language=objc -func (p_ PlayerItem) IsApplicationAuthorizedForPlayback() bool { - rv := objc.Call[bool](p_, objc.Sel("isApplicationAuthorizedForPlayback")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3726147-templateplayeritem?language=objc +func (p_ PlayerItem) TemplatePlayerItem() PlayerItem { + rv := objc.Call[PlayerItem](p_, objc.Sel("templatePlayerItem")) return rv } -// A Boolean value that indicates whether the content has been authorized by the user. [Full Topic] +// The time at which reverse playback ends. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388458-contentauthorizedforplayback?language=objc -func (p_ PlayerItem) IsContentAuthorizedForPlayback() bool { - rv := objc.Call[bool](p_, objc.Sel("isContentAuthorizedForPlayback")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388438-reverseplaybackendtime?language=objc +func (p_ PlayerItem) ReversePlaybackEndTime() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("reversePlaybackEndTime")) return rv } -// The duration of the item. [Full Topic] +// The time at which reverse playback ends. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389386-duration?language=objc -func (p_ PlayerItem) Duration() coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("duration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388438-reverseplaybackendtime?language=objc +func (p_ PlayerItem) SetReversePlaybackEndTime(value coremedia.Time) { + objc.Call[objc.Void](p_, objc.Sel("setReversePlaybackEndTime:"), value) +} + +// An array of outputs associated with the player item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389090-outputs?language=objc +func (p_ PlayerItem) Outputs() []PlayerItemOutput { + rv := objc.Call[[]PlayerItemOutput](p_, objc.Sel("outputs")) return rv } -// The array of asset keys to be automatically loaded before the player item is ready to play. [Full Topic] +// The timebase information for the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388633-automaticallyloadedassetkeys?language=objc -func (p_ PlayerItem) AutomaticallyLoadedAssetKeys() []string { - rv := objc.Call[[]string](p_, objc.Sel("automaticallyLoadedAssetKeys")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387605-timebase?language=objc +func (p_ PlayerItem) Timebase() coremedia.TimebaseRef { + rv := objc.Call[coremedia.TimebaseRef](p_, objc.Sel("timebase")) + return rv +} + +// A recommended time offset from the live time based on observed network conditions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3227883-recommendedtimeoffsetfromlive?language=objc +func (p_ PlayerItem) RecommendedTimeOffsetFromLive() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("recommendedTimeOffsetFromLive")) return rv } @@ -612,142 +569,150 @@ func (p_ PlayerItem) SetCanUseNetworkResourcesForLiveStreamingWhilePaused(value objc.Call[objc.Void](p_, objc.Sel("setCanUseNetworkResourcesForLiveStreamingWhilePaused:"), value) } -// A Boolean value that indicates whether the player item applies per-frame HDR display metadata during playback. [Full Topic] +// A Boolean value that indicates whether the item supports stepping backward. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3656127-appliesperframehdrdisplaymetadat?language=objc -func (p_ PlayerItem) AppliesPerFrameHDRDisplayMetadata() bool { - rv := objc.Call[bool](p_, objc.Sel("appliesPerFrameHDRDisplayMetadata")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386796-canstepbackward?language=objc +func (p_ PlayerItem) CanStepBackward() bool { + rv := objc.Call[bool](p_, objc.Sel("canStepBackward")) return rv } -// A Boolean value that indicates whether the player item applies per-frame HDR display metadata during playback. [Full Topic] +// The status of the most recent content authorization request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3656127-appliesperframehdrdisplaymetadat?language=objc -func (p_ PlayerItem) SetAppliesPerFrameHDRDisplayMetadata(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAppliesPerFrameHDRDisplayMetadata:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389746-contentauthorizationrequeststatu?language=objc +func (p_ PlayerItem) ContentAuthorizationRequestStatus() ContentAuthorizationStatus { + rv := objc.Call[ContentAuthorizationStatus](p_, objc.Sel("contentAuthorizationRequestStatus")) + return rv } -// The timebase information for the item. [Full Topic] +// The custom video compositor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387605-timebase?language=objc -func (p_ PlayerItem) Timebase() coremedia.TimebaseRef { - rv := objc.Call[coremedia.TimebaseRef](p_, objc.Sel("timebase")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390669-customvideocompositor?language=objc +func (p_ PlayerItem) CustomVideoCompositor() VideoCompositingObject { + rv := objc.Call[VideoCompositingObject](p_, objc.Sel("customVideoCompositor")) return rv } -// The audio mix parameters to be applied during playback. [Full Topic] +// The size at which the visual portion of the item is presented by the player. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388037-audiomix?language=objc -func (p_ PlayerItem) AudioMix() AudioMix { - rv := objc.Call[AudioMix](p_, objc.Sel("audioMix")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388962-presentationsize?language=objc +func (p_ PlayerItem) PresentationSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](p_, objc.Sel("presentationSize")) return rv } -// The audio mix parameters to be applied during playback. [Full Topic] +// A time value that indicates the offset from the live time to start playback, or resume playback after a seek to positive infinity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388037-audiomix?language=objc -func (p_ PlayerItem) SetAudioMix(value IAudioMix) { - objc.Call[objc.Void](p_, objc.Sel("setAudioMix:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3227882-configuredtimeoffsetfromlive?language=objc +func (p_ PlayerItem) ConfiguredTimeOffsetFromLive() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("configuredTimeOffsetFromLive")) + return rv } -// A limit of network bandwidth consumption by the item when connecting over expensive networks. [Full Topic] +// A time value that indicates the offset from the live time to start playback, or resume playback after a seek to positive infinity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3746589-preferredpeakbitrateforexpensive?language=objc -func (p_ PlayerItem) PreferredPeakBitRateForExpensiveNetworks() float64 { - rv := objc.Call[float64](p_, objc.Sel("preferredPeakBitRateForExpensiveNetworks")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3227882-configuredtimeoffsetfromlive?language=objc +func (p_ PlayerItem) SetConfiguredTimeOffsetFromLive(value coremedia.Time) { + objc.Call[objc.Void](p_, objc.Sel("setConfiguredTimeOffsetFromLive:"), value) +} + +// A Boolean value that indicates whether the item’s timing follows the displayed video frame when seeking with a video composition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385726-seekingwaitsforvideocompositionr?language=objc +func (p_ PlayerItem) SeekingWaitsForVideoCompositionRendering() bool { + rv := objc.Call[bool](p_, objc.Sel("seekingWaitsForVideoCompositionRendering")) return rv } -// A limit of network bandwidth consumption by the item when connecting over expensive networks. [Full Topic] +// A Boolean value that indicates whether the item’s timing follows the displayed video frame when seeking with a video composition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3746589-preferredpeakbitrateforexpensive?language=objc -func (p_ PlayerItem) SetPreferredPeakBitRateForExpensiveNetworks(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setPreferredPeakBitRateForExpensiveNetworks:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385726-seekingwaitsforvideocompositionr?language=objc +func (p_ PlayerItem) SetSeekingWaitsForVideoCompositionRendering(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setSeekingWaitsForVideoCompositionRendering:"), value) } -// The source audio channel layouts the player item supports for spatialization. [Full Topic] +// An array of time ranges indicating media data that is readily available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3601108-allowedaudiospatializationformat?language=objc -func (p_ PlayerItem) AllowedAudioSpatializationFormats() AudioSpatializationFormats { - rv := objc.Call[AudioSpatializationFormats](p_, objc.Sel("allowedAudioSpatializationFormats")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389953-loadedtimeranges?language=objc +func (p_ PlayerItem) LoadedTimeRanges() []foundation.Value { + rv := objc.Call[[]foundation.Value](p_, objc.Sel("loadedTimeRanges")) return rv } -// The source audio channel layouts the player item supports for spatialization. [Full Topic] +// A Boolean value that indicates whether the player item applies per-frame HDR display metadata during playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3601108-allowedaudiospatializationformat?language=objc -func (p_ PlayerItem) SetAllowedAudioSpatializationFormats(value AudioSpatializationFormats) { - objc.Call[objc.Void](p_, objc.Sel("setAllowedAudioSpatializationFormats:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3656127-appliesperframehdrdisplaymetadat?language=objc +func (p_ PlayerItem) AppliesPerFrameHDRDisplayMetadata() bool { + rv := objc.Call[bool](p_, objc.Sel("appliesPerFrameHDRDisplayMetadata")) + return rv } -// A Boolean value that indicates whether the player preserves its time offset from the live time after a buffering operation. [Full Topic] +// A Boolean value that indicates whether the player item applies per-frame HDR display metadata during playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3229855-automaticallypreservestimeoffset?language=objc -func (p_ PlayerItem) AutomaticallyPreservesTimeOffsetFromLive() bool { - rv := objc.Call[bool](p_, objc.Sel("automaticallyPreservesTimeOffsetFromLive")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3656127-appliesperframehdrdisplaymetadat?language=objc +func (p_ PlayerItem) SetAppliesPerFrameHDRDisplayMetadata(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAppliesPerFrameHDRDisplayMetadata:"), value) } -// A Boolean value that indicates whether the player preserves its time offset from the live time after a buffering operation. [Full Topic] +// The current media selections for each of the receiver's media selection groups. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3229855-automaticallypreservestimeoffset?language=objc -func (p_ PlayerItem) SetAutomaticallyPreservesTimeOffsetFromLive(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAutomaticallyPreservesTimeOffsetFromLive:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386519-currentmediaselection?language=objc +func (p_ PlayerItem) CurrentMediaSelection() MediaSelection { + rv := objc.Call[MediaSelection](p_, objc.Sel("currentMediaSelection")) + return rv } -// The time at which forward playback ends. [Full Topic] +// A Boolean value that indicates whether the player item automatically plays interstitial events according to server-side directives. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385622-forwardplaybackendtime?language=objc -func (p_ PlayerItem) ForwardPlaybackEndTime() coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("forwardPlaybackEndTime")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3726146-automaticallyhandlesinterstitial?language=objc +func (p_ PlayerItem) AutomaticallyHandlesInterstitialEvents() bool { + rv := objc.Call[bool](p_, objc.Sel("automaticallyHandlesInterstitialEvents")) return rv } -// The time at which forward playback ends. [Full Topic] +// A Boolean value that indicates whether the player item automatically plays interstitial events according to server-side directives. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385622-forwardplaybackendtime?language=objc -func (p_ PlayerItem) SetForwardPlaybackEndTime(value coremedia.Time) { - objc.Call[objc.Void](p_, objc.Sel("setForwardPlaybackEndTime:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3726146-automaticallyhandlesinterstitial?language=objc +func (p_ PlayerItem) SetAutomaticallyHandlesInterstitialEvents(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAutomaticallyHandlesInterstitialEvents:"), value) } -// The custom video compositor. [Full Topic] +// A Boolean value that indicates whether the player preserves its time offset from the live time after a buffering operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390669-customvideocompositor?language=objc -func (p_ PlayerItem) CustomVideoCompositor() VideoCompositingObject { - rv := objc.Call[VideoCompositingObject](p_, objc.Sel("customVideoCompositor")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3229855-automaticallypreservestimeoffset?language=objc +func (p_ PlayerItem) AutomaticallyPreservesTimeOffsetFromLive() bool { + rv := objc.Call[bool](p_, objc.Sel("automaticallyPreservesTimeOffsetFromLive")) return rv } -// An array of time ranges within which it is possible to seek. [Full Topic] +// A Boolean value that indicates whether the player preserves its time offset from the live time after a buffering operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386155-seekabletimeranges?language=objc -func (p_ PlayerItem) SeekableTimeRanges() []foundation.Value { - rv := objc.Call[[]foundation.Value](p_, objc.Sel("seekableTimeRanges")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3229855-automaticallypreservestimeoffset?language=objc +func (p_ PlayerItem) SetAutomaticallyPreservesTimeOffsetFromLive(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAutomaticallyPreservesTimeOffsetFromLive:"), value) } -// The size at which the visual portion of the item is presented by the player. [Full Topic] +// A Boolean value that indicates whether the application can be used to play the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388962-presentationsize?language=objc -func (p_ PlayerItem) PresentationSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](p_, objc.Sel("presentationSize")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389929-applicationauthorizedforplayback?language=objc +func (p_ PlayerItem) IsApplicationAuthorizedForPlayback() bool { + rv := objc.Call[bool](p_, objc.Sel("isApplicationAuthorizedForPlayback")) return rv } -// The status of the most recent content authorization request. [Full Topic] +// An upper limit on the resolution of video to download when connecting over expensive networks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389746-contentauthorizationrequeststatu?language=objc -func (p_ PlayerItem) ContentAuthorizationRequestStatus() ContentAuthorizationStatus { - rv := objc.Call[ContentAuthorizationStatus](p_, objc.Sel("contentAuthorizationRequestStatus")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3750308-preferredmaximumresolutionforexp?language=objc +func (p_ PlayerItem) PreferredMaximumResolutionForExpensiveNetworks() coregraphics.Size { + rv := objc.Call[coregraphics.Size](p_, objc.Sel("preferredMaximumResolutionForExpensiveNetworks")) return rv } -// A Boolean value that indicates whether the item can be fast forwarded. [Full Topic] +// An upper limit on the resolution of video to download when connecting over expensive networks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389096-canplayfastforward?language=objc -func (p_ PlayerItem) CanPlayFastForward() bool { - rv := objc.Call[bool](p_, objc.Sel("canPlayFastForward")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3750308-preferredmaximumresolutionforexp?language=objc +func (p_ PlayerItem) SetPreferredMaximumResolutionForExpensiveNetworks(value coregraphics.Size) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredMaximumResolutionForExpensiveNetworks:"), value) } // A Boolean value that indicates whether the internal media buffer is full and that further I/O is suspended. [Full Topic] @@ -758,165 +723,149 @@ func (p_ PlayerItem) IsPlaybackBufferFull() bool { return rv } -// The desired limit, in bits per second, of network bandwidth consumption for this item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388541-preferredpeakbitrate?language=objc -func (p_ PlayerItem) PreferredPeakBitRate() float64 { - rv := objc.Call[float64](p_, objc.Sel("preferredPeakBitRate")) - return rv -} - -// The desired limit, in bits per second, of network bandwidth consumption for this item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388541-preferredpeakbitrate?language=objc -func (p_ PlayerItem) SetPreferredPeakBitRate(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setPreferredPeakBitRate:"), value) -} - -// The template player item that initializes this instance. [Full Topic] +// A Boolean value that indicates whether the content has been authorized by the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3726147-templateplayeritem?language=objc -func (p_ PlayerItem) TemplatePlayerItem() PlayerItem { - rv := objc.Call[PlayerItem](p_, objc.Sel("templatePlayerItem")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388458-contentauthorizedforplayback?language=objc +func (p_ PlayerItem) IsContentAuthorizedForPlayback() bool { + rv := objc.Call[bool](p_, objc.Sel("isContentAuthorizedForPlayback")) return rv } -// A Boolean value that indicates whether playback has consumed all buffered media and that playback will stall or end. [Full Topic] +// The audio mix parameters to be applied during playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386960-playbackbufferempty?language=objc -func (p_ PlayerItem) IsPlaybackBufferEmpty() bool { - rv := objc.Call[bool](p_, objc.Sel("isPlaybackBufferEmpty")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388037-audiomix?language=objc +func (p_ PlayerItem) AudioMix() AudioMix { + rv := objc.Call[AudioMix](p_, objc.Sel("audioMix")) return rv } -// The status of the player item. [Full Topic] +// The audio mix parameters to be applied during playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389493-status?language=objc -func (p_ PlayerItem) Status() PlayerItemStatus { - rv := objc.Call[PlayerItemStatus](p_, objc.Sel("status")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388037-audiomix?language=objc +func (p_ PlayerItem) SetAudioMix(value IAudioMix) { + objc.Call[objc.Void](p_, objc.Sel("setAudioMix:"), value) } -// A Boolean value that indicates whether the item supports stepping forward. [Full Topic] +// An array of time ranges within which it is possible to seek. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389656-canstepforward?language=objc -func (p_ PlayerItem) CanStepForward() bool { - rv := objc.Call[bool](p_, objc.Sel("canStepForward")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386155-seekabletimeranges?language=objc +func (p_ PlayerItem) SeekableTimeRanges() []foundation.Value { + rv := objc.Call[[]foundation.Value](p_, objc.Sel("seekableTimeRanges")) return rv } -// A Boolean value that indicates whether the player item automatically plays interstitial events according to server-side directives. [Full Topic] +// The desired maximum resolution of a video that is to be downloaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3726146-automaticallyhandlesinterstitial?language=objc -func (p_ PlayerItem) AutomaticallyHandlesInterstitialEvents() bool { - rv := objc.Call[bool](p_, objc.Sel("automaticallyHandlesInterstitialEvents")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/2867324-preferredmaximumresolution?language=objc +func (p_ PlayerItem) PreferredMaximumResolution() coregraphics.Size { + rv := objc.Call[coregraphics.Size](p_, objc.Sel("preferredMaximumResolution")) return rv } -// A Boolean value that indicates whether the player item automatically plays interstitial events according to server-side directives. [Full Topic] +// The desired maximum resolution of a video that is to be downloaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3726146-automaticallyhandlesinterstitial?language=objc -func (p_ PlayerItem) SetAutomaticallyHandlesInterstitialEvents(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAutomaticallyHandlesInterstitialEvents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/2867324-preferredmaximumresolution?language=objc +func (p_ PlayerItem) SetPreferredMaximumResolution(value coregraphics.Size) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredMaximumResolution:"), value) } -// The processing algorithm used to manage audio pitch for scaled audio edits. [Full Topic] +// The preferences the player item uses when selecting variant playlists. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385855-audiotimepitchalgorithm?language=objc -func (p_ PlayerItem) AudioTimePitchAlgorithm() AudioTimePitchAlgorithm { - rv := objc.Call[AudioTimePitchAlgorithm](p_, objc.Sel("audioTimePitchAlgorithm")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3726149-variantpreferences?language=objc +func (p_ PlayerItem) VariantPreferences() VariantPreferences { + rv := objc.Call[VariantPreferences](p_, objc.Sel("variantPreferences")) return rv } -// The processing algorithm used to manage audio pitch for scaled audio edits. [Full Topic] +// The preferences the player item uses when selecting variant playlists. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385855-audiotimepitchalgorithm?language=objc -func (p_ PlayerItem) SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) { - objc.Call[objc.Void](p_, objc.Sel("setAudioTimePitchAlgorithm:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3726149-variantpreferences?language=objc +func (p_ PlayerItem) SetVariantPreferences(value VariantPreferences) { + objc.Call[objc.Void](p_, objc.Sel("setVariantPreferences:"), value) } -// The current media selections for each of the receiver's media selection groups. [Full Topic] +// A Boolean value that indicates whether the item can play slower than normal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386519-currentmediaselection?language=objc -func (p_ PlayerItem) CurrentMediaSelection() MediaSelection { - rv := objc.Call[MediaSelection](p_, objc.Sel("currentMediaSelection")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388078-canplayslowforward?language=objc +func (p_ PlayerItem) CanPlaySlowForward() bool { + rv := objc.Call[bool](p_, objc.Sel("canPlaySlowForward")) return rv } -// A Boolean value that indicates whether the item can play in reverse. [Full Topic] +// The array of asset keys to be automatically loaded before the player item is ready to play. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1385591-canplayreverse?language=objc -func (p_ PlayerItem) CanPlayReverse() bool { - rv := objc.Call[bool](p_, objc.Sel("canPlayReverse")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388633-automaticallyloadedassetkeys?language=objc +func (p_ PlayerItem) AutomaticallyLoadedAssetKeys() []string { + rv := objc.Call[[]string](p_, objc.Sel("automaticallyLoadedAssetKeys")) return rv } -// A recommended time offset from the live time based on observed network conditions. [Full Topic] +// The duration of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3227883-recommendedtimeoffsetfromlive?language=objc -func (p_ PlayerItem) RecommendedTimeOffsetFromLive() coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("recommendedTimeOffsetFromLive")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389386-duration?language=objc +func (p_ PlayerItem) Duration() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("duration")) return rv } -// The asset provided during initialization. [Full Topic] +// The duration the player should buffer media from the network ahead of the playhead to guard against playback disruption. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388177-asset?language=objc -func (p_ PlayerItem) Asset() Asset { - rv := objc.Call[Asset](p_, objc.Sel("asset")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1643630-preferredforwardbufferduration?language=objc +func (p_ PlayerItem) PreferredForwardBufferDuration() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("preferredForwardBufferDuration")) return rv } -// The preferences the player item uses when selecting variant playlists. [Full Topic] +// The duration the player should buffer media from the network ahead of the playhead to guard against playback disruption. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3726149-variantpreferences?language=objc -func (p_ PlayerItem) VariantPreferences() VariantPreferences { - rv := objc.Call[VariantPreferences](p_, objc.Sel("variantPreferences")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1643630-preferredforwardbufferduration?language=objc +func (p_ PlayerItem) SetPreferredForwardBufferDuration(value foundation.TimeInterval) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredForwardBufferDuration:"), value) } -// The preferences the player item uses when selecting variant playlists. [Full Topic] +// The status of the player item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3726149-variantpreferences?language=objc -func (p_ PlayerItem) SetVariantPreferences(value VariantPreferences) { - objc.Call[objc.Void](p_, objc.Sel("setVariantPreferences:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389493-status?language=objc +func (p_ PlayerItem) Status() PlayerItemStatus { + rv := objc.Call[PlayerItemStatus](p_, objc.Sel("status")) + return rv } -// The time at which reverse playback ends. [Full Topic] +// The collection of associated media data collectors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388438-reverseplaybackendtime?language=objc -func (p_ PlayerItem) ReversePlaybackEndTime() coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("reversePlaybackEndTime")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1624161-mediadatacollectors?language=objc +func (p_ PlayerItem) MediaDataCollectors() []PlayerItemMediaDataCollector { + rv := objc.Call[[]PlayerItemMediaDataCollector](p_, objc.Sel("mediaDataCollectors")) return rv } -// The time at which reverse playback ends. [Full Topic] +// A Boolean value that indicates whether playback starts with the first eligible variant that appears in the stream’s main playlist. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388438-reverseplaybackendtime?language=objc -func (p_ PlayerItem) SetReversePlaybackEndTime(value coremedia.Time) { - objc.Call[objc.Void](p_, objc.Sel("setReversePlaybackEndTime:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3579514-startsonfirsteligiblevariant?language=objc +func (p_ PlayerItem) StartsOnFirstEligibleVariant() bool { + rv := objc.Call[bool](p_, objc.Sel("startsOnFirstEligibleVariant")) + return rv } -// A Boolean value that indicates whether the item can play slower than normal. [Full Topic] +// A Boolean value that indicates whether playback starts with the first eligible variant that appears in the stream’s main playlist. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388078-canplayslowforward?language=objc -func (p_ PlayerItem) CanPlaySlowForward() bool { - rv := objc.Call[bool](p_, objc.Sel("canPlaySlowForward")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3579514-startsonfirsteligiblevariant?language=objc +func (p_ PlayerItem) SetStartsOnFirstEligibleVariant(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setStartsOnFirstEligibleVariant:"), value) } -// An array of time ranges indicating media data that is readily available. [Full Topic] +// The asset provided during initialization. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389953-loadedtimeranges?language=objc -func (p_ PlayerItem) LoadedTimeRanges() []foundation.Value { - rv := objc.Call[[]foundation.Value](p_, objc.Sel("loadedTimeRanges")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388177-asset?language=objc +func (p_ PlayerItem) Asset() Asset { + rv := objc.Call[Asset](p_, objc.Sel("asset")) return rv } -// The error that caused the player item to fail. [Full Topic] +// A Boolean value that indicates whether the item can be fast forwarded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389185-error?language=objc -func (p_ PlayerItem) Error() foundation.Error { - rv := objc.Call[foundation.Error](p_, objc.Sel("error")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1389096-canplayfastforward?language=objc +func (p_ PlayerItem) CanPlayFastForward() bool { + rv := objc.Call[bool](p_, objc.Sel("canPlayFastForward")) return rv } diff --git a/macos/avfoundation/player_item_access_log.gen.go b/macos/avfoundation/player_item_access_log.gen.go index 3926914d..86b7ef31 100644 --- a/macos/avfoundation/player_item_access_log.gen.go +++ b/macos/avfoundation/player_item_access_log.gen.go @@ -20,8 +20,8 @@ type _PlayerItemAccessLogClass struct { type IPlayerItemAccessLog interface { objc.IObject ExtendedLogData() []byte - ExtendedLogDataStringEncoding() foundation.StringEncoding Events() []PlayerItemAccessLogEvent + ExtendedLogDataStringEncoding() foundation.StringEncoding } // An object used to retrieve the access log associated with a player item. [Full Topic] @@ -65,14 +65,6 @@ func (p_ PlayerItemAccessLog) ExtendedLogData() []byte { return rv } -// The string encoding of the extended log data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslog/1390863-extendedlogdatastringencoding?language=objc -func (p_ PlayerItemAccessLog) ExtendedLogDataStringEncoding() foundation.StringEncoding { - rv := objc.Call[foundation.StringEncoding](p_, objc.Sel("extendedLogDataStringEncoding")) - return rv -} - // A chronologically ordered array of player item access log events. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslog/1387406-events?language=objc @@ -80,3 +72,11 @@ func (p_ PlayerItemAccessLog) Events() []PlayerItemAccessLogEvent { rv := objc.Call[[]PlayerItemAccessLogEvent](p_, objc.Sel("events")) return rv } + +// The string encoding of the extended log data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslog/1390863-extendedlogdatastringencoding?language=objc +func (p_ PlayerItemAccessLog) ExtendedLogDataStringEncoding() foundation.StringEncoding { + rv := objc.Call[foundation.StringEncoding](p_, objc.Sel("extendedLogDataStringEncoding")) + return rv +} diff --git a/macos/avfoundation/player_item_access_log_event.gen.go b/macos/avfoundation/player_item_access_log_event.gen.go index bb129e86..400c8c02 100644 --- a/macos/avfoundation/player_item_access_log_event.gen.go +++ b/macos/avfoundation/player_item_access_log_event.gen.go @@ -19,30 +19,30 @@ type _PlayerItemAccessLogEventClass struct { // An interface definition for the [PlayerItemAccessLogEvent] class. type IPlayerItemAccessLogEvent interface { objc.IObject - SegmentsDownloadedDuration() foundation.TimeInterval + AverageAudioBitrate() float64 + NumberOfMediaRequests() int + TransferDuration() foundation.TimeInterval + URI() string + NumberOfDroppedVideoFrames() int NumberOfServerAddressChanges() int - DurationWatched() foundation.TimeInterval - SwitchBitrate() float64 - IndicatedBitrate() float64 - StartupTime() foundation.TimeInterval + ObservedBitrate() float64 + ServerAddress() string AverageVideoBitrate() float64 + NumberOfBytesTransferred() int64 PlaybackType() string + IndicatedBitrate() float64 + DownloadOverdue() int IndicatedAverageBitrate() float64 - NumberOfDroppedVideoFrames() int - PlaybackSessionID() string - MediaRequestsWWAN() int - AverageAudioBitrate() float64 - ObservedBitrateStandardDeviation() float64 - ObservedBitrate() float64 - URI() string - NumberOfBytesTransferred() int64 - NumberOfStalls() int - NumberOfMediaRequests() int + SwitchBitrate() float64 PlaybackStartDate() foundation.Date - TransferDuration() foundation.TimeInterval - DownloadOverdue() int - ServerAddress() string + ObservedBitrateStandardDeviation() float64 + DurationWatched() foundation.TimeInterval + StartupTime() foundation.TimeInterval PlaybackStartOffset() foundation.TimeInterval + MediaRequestsWWAN() int + NumberOfStalls() int + SegmentsDownloadedDuration() foundation.TimeInterval + PlaybackSessionID() string } // A single entry in a player item's access log. [Full Topic] @@ -78,194 +78,194 @@ func (p_ PlayerItemAccessLogEvent) Init() PlayerItemAccessLogEvent { return rv } -// The accumulated duration, in seconds, of the media segments downloaded. [Full Topic] +// The audio track’s average bit rate, in bits per second. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388147-segmentsdownloadedduration?language=objc -func (p_ PlayerItemAccessLogEvent) SegmentsDownloadedDuration() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("segmentsDownloadedDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1643590-averageaudiobitrate?language=objc +func (p_ PlayerItemAccessLogEvent) AverageAudioBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("averageAudioBitrate")) return rv } -// A count of changes to the server address over the last uninterrupted period of playback. [Full Topic] +// The number of media read requests from the server to this client. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388076-numberofserveraddresschanges?language=objc -func (p_ PlayerItemAccessLogEvent) NumberOfServerAddressChanges() int { - rv := objc.Call[int](p_, objc.Sel("numberOfServerAddressChanges")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388357-numberofmediarequests?language=objc +func (p_ PlayerItemAccessLogEvent) NumberOfMediaRequests() int { + rv := objc.Call[int](p_, objc.Sel("numberOfMediaRequests")) return rv } -// The accumulated duration, in seconds, of the media played. [Full Topic] +// The accumulated duration, in seconds, of active network transfer of bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388200-durationwatched?language=objc -func (p_ PlayerItemAccessLogEvent) DurationWatched() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("durationWatched")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1387370-transferduration?language=objc +func (p_ PlayerItemAccessLogEvent) TransferDuration() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("transferDuration")) return rv } -// The bandwidth value that causes a switch, up or down, in the item's quality being played. [Full Topic] +// The URI of the playback item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1390645-switchbitrate?language=objc -func (p_ PlayerItemAccessLogEvent) SwitchBitrate() float64 { - rv := objc.Call[float64](p_, objc.Sel("switchBitrate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388643-uri?language=objc +func (p_ PlayerItemAccessLogEvent) URI() string { + rv := objc.Call[string](p_, objc.Sel("URI")) return rv } -// The throughput, in bits per second, required to play the stream, as advertised by the server. [Full Topic] +// The total number of dropped video frames [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388123-indicatedbitrate?language=objc -func (p_ PlayerItemAccessLogEvent) IndicatedBitrate() float64 { - rv := objc.Call[float64](p_, objc.Sel("indicatedBitrate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388647-numberofdroppedvideoframes?language=objc +func (p_ PlayerItemAccessLogEvent) NumberOfDroppedVideoFrames() int { + rv := objc.Call[int](p_, objc.Sel("numberOfDroppedVideoFrames")) return rv } -// The accumulated duration, in seconds, until the player item is ready to play. [Full Topic] +// A count of changes to the server address over the last uninterrupted period of playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1389138-startuptime?language=objc -func (p_ PlayerItemAccessLogEvent) StartupTime() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("startupTime")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388076-numberofserveraddresschanges?language=objc +func (p_ PlayerItemAccessLogEvent) NumberOfServerAddressChanges() int { + rv := objc.Call[int](p_, objc.Sel("numberOfServerAddressChanges")) return rv } -// The video track’s average bit rate, in bits per second. [Full Topic] +// The empirical throughput, in bits per second, across all media downloaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1643592-averagevideobitrate?language=objc -func (p_ PlayerItemAccessLogEvent) AverageVideoBitrate() float64 { - rv := objc.Call[float64](p_, objc.Sel("averageVideoBitrate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1390804-observedbitrate?language=objc +func (p_ PlayerItemAccessLogEvent) ObservedBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("observedBitrate")) return rv } -// The playback type. [Full Topic] +// The IP address of the server that was the source of the last delivered media segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1387218-playbacktype?language=objc -func (p_ PlayerItemAccessLogEvent) PlaybackType() string { - rv := objc.Call[string](p_, objc.Sel("playbackType")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1390315-serveraddress?language=objc +func (p_ PlayerItemAccessLogEvent) ServerAddress() string { + rv := objc.Call[string](p_, objc.Sel("serverAddress")) return rv } -// The average throughput, in bits per second, required to play the stream, as advertised by the server. [Full Topic] +// The video track’s average bit rate, in bits per second. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1872546-indicatedaveragebitrate?language=objc -func (p_ PlayerItemAccessLogEvent) IndicatedAverageBitrate() float64 { - rv := objc.Call[float64](p_, objc.Sel("indicatedAverageBitrate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1643592-averagevideobitrate?language=objc +func (p_ PlayerItemAccessLogEvent) AverageVideoBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("averageVideoBitrate")) return rv } -// The total number of dropped video frames [Full Topic] +// The accumulated number of bytes transferred by the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388647-numberofdroppedvideoframes?language=objc -func (p_ PlayerItemAccessLogEvent) NumberOfDroppedVideoFrames() int { - rv := objc.Call[int](p_, objc.Sel("numberOfDroppedVideoFrames")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1387305-numberofbytestransferred?language=objc +func (p_ PlayerItemAccessLogEvent) NumberOfBytesTransferred() int64 { + rv := objc.Call[int64](p_, objc.Sel("numberOfBytesTransferred")) return rv } -// A GUID that identifies the playback session. [Full Topic] +// The playback type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388462-playbacksessionid?language=objc -func (p_ PlayerItemAccessLogEvent) PlaybackSessionID() string { - rv := objc.Call[string](p_, objc.Sel("playbackSessionID")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1387218-playbacktype?language=objc +func (p_ PlayerItemAccessLogEvent) PlaybackType() string { + rv := objc.Call[string](p_, objc.Sel("playbackType")) return rv } -// The number of network read requests over a WWAN. [Full Topic] +// The throughput, in bits per second, required to play the stream, as advertised by the server. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388549-mediarequestswwan?language=objc -func (p_ PlayerItemAccessLogEvent) MediaRequestsWWAN() int { - rv := objc.Call[int](p_, objc.Sel("mediaRequestsWWAN")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388123-indicatedbitrate?language=objc +func (p_ PlayerItemAccessLogEvent) IndicatedBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("indicatedBitrate")) return rv } -// The audio track’s average bit rate, in bits per second. [Full Topic] +// The total number of times that downloading the segments took too long. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1643590-averageaudiobitrate?language=objc -func (p_ PlayerItemAccessLogEvent) AverageAudioBitrate() float64 { - rv := objc.Call[float64](p_, objc.Sel("averageAudioBitrate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1389213-downloadoverdue?language=objc +func (p_ PlayerItemAccessLogEvent) DownloadOverdue() int { + rv := objc.Call[int](p_, objc.Sel("downloadOverdue")) return rv } -// The standard deviation of the observed segment download bit rates. [Full Topic] +// The average throughput, in bits per second, required to play the stream, as advertised by the server. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1386094-observedbitratestandarddeviation?language=objc -func (p_ PlayerItemAccessLogEvent) ObservedBitrateStandardDeviation() float64 { - rv := objc.Call[float64](p_, objc.Sel("observedBitrateStandardDeviation")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1872546-indicatedaveragebitrate?language=objc +func (p_ PlayerItemAccessLogEvent) IndicatedAverageBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("indicatedAverageBitrate")) return rv } -// The empirical throughput, in bits per second, across all media downloaded. [Full Topic] +// The bandwidth value that causes a switch, up or down, in the item's quality being played. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1390804-observedbitrate?language=objc -func (p_ PlayerItemAccessLogEvent) ObservedBitrate() float64 { - rv := objc.Call[float64](p_, objc.Sel("observedBitrate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1390645-switchbitrate?language=objc +func (p_ PlayerItemAccessLogEvent) SwitchBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("switchBitrate")) return rv } -// The URI of the playback item. [Full Topic] +// The date and time at which playback began for this event. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388643-uri?language=objc -func (p_ PlayerItemAccessLogEvent) URI() string { - rv := objc.Call[string](p_, objc.Sel("URI")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1390502-playbackstartdate?language=objc +func (p_ PlayerItemAccessLogEvent) PlaybackStartDate() foundation.Date { + rv := objc.Call[foundation.Date](p_, objc.Sel("playbackStartDate")) return rv } -// The accumulated number of bytes transferred by the item. [Full Topic] +// The standard deviation of the observed segment download bit rates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1387305-numberofbytestransferred?language=objc -func (p_ PlayerItemAccessLogEvent) NumberOfBytesTransferred() int64 { - rv := objc.Call[int64](p_, objc.Sel("numberOfBytesTransferred")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1386094-observedbitratestandarddeviation?language=objc +func (p_ PlayerItemAccessLogEvent) ObservedBitrateStandardDeviation() float64 { + rv := objc.Call[float64](p_, objc.Sel("observedBitrateStandardDeviation")) return rv } -// The total number of playback stalls encountered. [Full Topic] +// The accumulated duration, in seconds, of the media played. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1387712-numberofstalls?language=objc -func (p_ PlayerItemAccessLogEvent) NumberOfStalls() int { - rv := objc.Call[int](p_, objc.Sel("numberOfStalls")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388200-durationwatched?language=objc +func (p_ PlayerItemAccessLogEvent) DurationWatched() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("durationWatched")) return rv } -// The number of media read requests from the server to this client. [Full Topic] +// The accumulated duration, in seconds, until the player item is ready to play. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388357-numberofmediarequests?language=objc -func (p_ PlayerItemAccessLogEvent) NumberOfMediaRequests() int { - rv := objc.Call[int](p_, objc.Sel("numberOfMediaRequests")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1389138-startuptime?language=objc +func (p_ PlayerItemAccessLogEvent) StartupTime() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("startupTime")) return rv } -// The date and time at which playback began for this event. [Full Topic] +// The offset, in seconds, in the playlist where the last uninterrupted period of playback began. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1390502-playbackstartdate?language=objc -func (p_ PlayerItemAccessLogEvent) PlaybackStartDate() foundation.Date { - rv := objc.Call[foundation.Date](p_, objc.Sel("playbackStartDate")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1385922-playbackstartoffset?language=objc +func (p_ PlayerItemAccessLogEvent) PlaybackStartOffset() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("playbackStartOffset")) return rv } -// The accumulated duration, in seconds, of active network transfer of bytes. [Full Topic] +// The number of network read requests over a WWAN. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1387370-transferduration?language=objc -func (p_ PlayerItemAccessLogEvent) TransferDuration() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("transferDuration")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388549-mediarequestswwan?language=objc +func (p_ PlayerItemAccessLogEvent) MediaRequestsWWAN() int { + rv := objc.Call[int](p_, objc.Sel("mediaRequestsWWAN")) return rv } -// The total number of times that downloading the segments took too long. [Full Topic] +// The total number of playback stalls encountered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1389213-downloadoverdue?language=objc -func (p_ PlayerItemAccessLogEvent) DownloadOverdue() int { - rv := objc.Call[int](p_, objc.Sel("downloadOverdue")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1387712-numberofstalls?language=objc +func (p_ PlayerItemAccessLogEvent) NumberOfStalls() int { + rv := objc.Call[int](p_, objc.Sel("numberOfStalls")) return rv } -// The IP address of the server that was the source of the last delivered media segment. [Full Topic] +// The accumulated duration, in seconds, of the media segments downloaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1390315-serveraddress?language=objc -func (p_ PlayerItemAccessLogEvent) ServerAddress() string { - rv := objc.Call[string](p_, objc.Sel("serverAddress")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388147-segmentsdownloadedduration?language=objc +func (p_ PlayerItemAccessLogEvent) SegmentsDownloadedDuration() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("segmentsDownloadedDuration")) return rv } -// The offset, in seconds, in the playlist where the last uninterrupted period of playback began. [Full Topic] +// A GUID that identifies the playback session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1385922-playbackstartoffset?language=objc -func (p_ PlayerItemAccessLogEvent) PlaybackStartOffset() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("playbackStartOffset")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1388462-playbacksessionid?language=objc +func (p_ PlayerItemAccessLogEvent) PlaybackSessionID() string { + rv := objc.Call[string](p_, objc.Sel("playbackSessionID")) return rv } diff --git a/macos/avfoundation/player_item_error_log_event.gen.go b/macos/avfoundation/player_item_error_log_event.gen.go index 066c7c60..28a32f67 100644 --- a/macos/avfoundation/player_item_error_log_event.gen.go +++ b/macos/avfoundation/player_item_error_log_event.gen.go @@ -19,13 +19,13 @@ type _PlayerItemErrorLogEventClass struct { // An interface definition for the [PlayerItemErrorLogEvent] class. type IPlayerItemErrorLogEvent interface { objc.IObject - ErrorStatusCode() int - ErrorComment() string - ErrorDomain() string Date() foundation.Date + ErrorStatusCode() int + URI() string ServerAddress() string + ErrorComment() string PlaybackSessionID() string - URI() string + ErrorDomain() string } // A single item in a player item’s error log. [Full Topic] @@ -61,35 +61,27 @@ func (p_ PlayerItemErrorLogEvent) Init() PlayerItemErrorLogEvent { return rv } -// A unique error code identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1387875-errorstatuscode?language=objc -func (p_ PlayerItemErrorLogEvent) ErrorStatusCode() int { - rv := objc.Call[int](p_, objc.Sel("errorStatusCode")) - return rv -} - -// A description of the error encountered [Full Topic] +// The date and time when the error occurred. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1388011-errorcomment?language=objc -func (p_ PlayerItemErrorLogEvent) ErrorComment() string { - rv := objc.Call[string](p_, objc.Sel("errorComment")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1388416-date?language=objc +func (p_ PlayerItemErrorLogEvent) Date() foundation.Date { + rv := objc.Call[foundation.Date](p_, objc.Sel("date")) return rv } -// The domain of the error. [Full Topic] +// A unique error code identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1388603-errordomain?language=objc -func (p_ PlayerItemErrorLogEvent) ErrorDomain() string { - rv := objc.Call[string](p_, objc.Sel("errorDomain")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1387875-errorstatuscode?language=objc +func (p_ PlayerItemErrorLogEvent) ErrorStatusCode() int { + rv := objc.Call[int](p_, objc.Sel("errorStatusCode")) return rv } -// The date and time when the error occurred. [Full Topic] +// The URI of the playback item that had an error. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1388416-date?language=objc -func (p_ PlayerItemErrorLogEvent) Date() foundation.Date { - rv := objc.Call[foundation.Date](p_, objc.Sel("date")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1389302-uri?language=objc +func (p_ PlayerItemErrorLogEvent) URI() string { + rv := objc.Call[string](p_, objc.Sel("URI")) return rv } @@ -101,6 +93,14 @@ func (p_ PlayerItemErrorLogEvent) ServerAddress() string { return rv } +// A description of the error encountered [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1388011-errorcomment?language=objc +func (p_ PlayerItemErrorLogEvent) ErrorComment() string { + rv := objc.Call[string](p_, objc.Sel("errorComment")) + return rv +} + // A GUID that identifies the playback session that had an error. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1385934-playbacksessionid?language=objc @@ -109,10 +109,10 @@ func (p_ PlayerItemErrorLogEvent) PlaybackSessionID() string { return rv } -// The URI of the playback item that had an error. [Full Topic] +// The domain of the error. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1389302-uri?language=objc -func (p_ PlayerItemErrorLogEvent) URI() string { - rv := objc.Call[string](p_, objc.Sel("URI")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1388603-errordomain?language=objc +func (p_ PlayerItemErrorLogEvent) ErrorDomain() string { + rv := objc.Call[string](p_, objc.Sel("errorDomain")) return rv } diff --git a/macos/avfoundation/player_item_legible_output.gen.go b/macos/avfoundation/player_item_legible_output.gen.go index b70c8113..ceb69086 100644 --- a/macos/avfoundation/player_item_legible_output.gen.go +++ b/macos/avfoundation/player_item_legible_output.gen.go @@ -22,12 +22,12 @@ type IPlayerItemLegibleOutput interface { IPlayerItemOutput SetDelegateQueue(delegate PPlayerItemLegibleOutputPushDelegate, delegateQueue dispatch.Queue) SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) - TextStylingResolution() PlayerItemLegibleOutputTextStylingResolution - SetTextStylingResolution(value PlayerItemLegibleOutputTextStylingResolution) AdvanceIntervalForDelegateInvocation() foundation.TimeInterval SetAdvanceIntervalForDelegateInvocation(value foundation.TimeInterval) - DelegateQueue() dispatch.Queue Delegate() PlayerItemLegibleOutputPushDelegateObject + TextStylingResolution() PlayerItemLegibleOutputTextStylingResolution + SetTextStylingResolution(value PlayerItemLegibleOutputTextStylingResolution) + DelegateQueue() dispatch.Queue } // An object that vends attributed strings for media with a legible characteristic. [Full Topic] @@ -92,21 +92,6 @@ func (p_ PlayerItemLegibleOutput) SetDelegateObjectQueue(delegateObject objc.IOb objc.Call[objc.Void](p_, objc.Sel("setDelegate:queue:"), delegateObject, delegateQueue) } -// A string identifier indicating the degree of text styling to be applied to attributed strings vended by the object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemlegibleoutput/1385803-textstylingresolution?language=objc -func (p_ PlayerItemLegibleOutput) TextStylingResolution() PlayerItemLegibleOutputTextStylingResolution { - rv := objc.Call[PlayerItemLegibleOutputTextStylingResolution](p_, objc.Sel("textStylingResolution")) - return rv -} - -// A string identifier indicating the degree of text styling to be applied to attributed strings vended by the object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemlegibleoutput/1385803-textstylingresolution?language=objc -func (p_ PlayerItemLegibleOutput) SetTextStylingResolution(value PlayerItemLegibleOutputTextStylingResolution) { - objc.Call[objc.Void](p_, objc.Sel("setTextStylingResolution:"), value) -} - // The time interval, in seconds, that a player item legible output object messages its delegate earlier than normal. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemlegibleoutput/1388098-advanceintervalfordelegateinvoca?language=objc @@ -122,14 +107,6 @@ func (p_ PlayerItemLegibleOutput) SetAdvanceIntervalForDelegateInvocation(value objc.Call[objc.Void](p_, objc.Sel("setAdvanceIntervalForDelegateInvocation:"), value) } -// The dispatch queue on which the delegate is called. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemlegibleoutput/1386275-delegatequeue?language=objc -func (p_ PlayerItemLegibleOutput) DelegateQueue() dispatch.Queue { - rv := objc.Call[dispatch.Queue](p_, objc.Sel("delegateQueue")) - return rv -} - // The delegate of the output class. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemlegibleoutput/1387877-delegate?language=objc @@ -137,3 +114,26 @@ func (p_ PlayerItemLegibleOutput) Delegate() PlayerItemLegibleOutputPushDelegate rv := objc.Call[PlayerItemLegibleOutputPushDelegateObject](p_, objc.Sel("delegate")) return rv } + +// A string identifier indicating the degree of text styling to be applied to attributed strings vended by the object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemlegibleoutput/1385803-textstylingresolution?language=objc +func (p_ PlayerItemLegibleOutput) TextStylingResolution() PlayerItemLegibleOutputTextStylingResolution { + rv := objc.Call[PlayerItemLegibleOutputTextStylingResolution](p_, objc.Sel("textStylingResolution")) + return rv +} + +// A string identifier indicating the degree of text styling to be applied to attributed strings vended by the object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemlegibleoutput/1385803-textstylingresolution?language=objc +func (p_ PlayerItemLegibleOutput) SetTextStylingResolution(value PlayerItemLegibleOutputTextStylingResolution) { + objc.Call[objc.Void](p_, objc.Sel("setTextStylingResolution:"), value) +} + +// The dispatch queue on which the delegate is called. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemlegibleoutput/1386275-delegatequeue?language=objc +func (p_ PlayerItemLegibleOutput) DelegateQueue() dispatch.Queue { + rv := objc.Call[dispatch.Queue](p_, objc.Sel("delegateQueue")) + return rv +} diff --git a/macos/avfoundation/player_item_metadata_output.gen.go b/macos/avfoundation/player_item_metadata_output.gen.go index a5bf8306..c233b136 100644 --- a/macos/avfoundation/player_item_metadata_output.gen.go +++ b/macos/avfoundation/player_item_metadata_output.gen.go @@ -24,8 +24,8 @@ type IPlayerItemMetadataOutput interface { SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) AdvanceIntervalForDelegateInvocation() foundation.TimeInterval SetAdvanceIntervalForDelegateInvocation(value foundation.TimeInterval) - DelegateQueue() dispatch.Queue Delegate() PlayerItemMetadataOutputPushDelegateObject + DelegateQueue() dispatch.Queue } // An object that vends collections of metadata items that a player item’s tracks carry. [Full Topic] @@ -105,14 +105,6 @@ func (p_ PlayerItemMetadataOutput) SetAdvanceIntervalForDelegateInvocation(value objc.Call[objc.Void](p_, objc.Sel("setAdvanceIntervalForDelegateInvocation:"), value) } -// The dispatch queue on which messages are sent to the delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemmetadataoutput/1387265-delegatequeue?language=objc -func (p_ PlayerItemMetadataOutput) DelegateQueue() dispatch.Queue { - rv := objc.Call[dispatch.Queue](p_, objc.Sel("delegateQueue")) - return rv -} - // The delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemmetadataoutput/1387200-delegate?language=objc @@ -120,3 +112,11 @@ func (p_ PlayerItemMetadataOutput) Delegate() PlayerItemMetadataOutputPushDelega rv := objc.Call[PlayerItemMetadataOutputPushDelegateObject](p_, objc.Sel("delegate")) return rv } + +// The dispatch queue on which messages are sent to the delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemmetadataoutput/1387265-delegatequeue?language=objc +func (p_ PlayerItemMetadataOutput) DelegateQueue() dispatch.Queue { + rv := objc.Call[dispatch.Queue](p_, objc.Sel("delegateQueue")) + return rv +} diff --git a/macos/avfoundation/player_item_output.gen.go b/macos/avfoundation/player_item_output.gen.go index ae96ac29..d91d4428 100644 --- a/macos/avfoundation/player_item_output.gen.go +++ b/macos/avfoundation/player_item_output.gen.go @@ -21,9 +21,9 @@ type _PlayerItemOutputClass struct { // An interface definition for the [PlayerItemOutput] class. type IPlayerItemOutput interface { objc.IObject - ItemTimeForMachAbsoluteTime(machAbsoluteTime int64) coremedia.Time - ItemTimeForHostTime(hostTimeInSeconds corefoundation.TimeInterval) coremedia.Time ItemTimeForCVTimeStamp(timestamp corevideo.TimeStamp) coremedia.Time + ItemTimeForHostTime(hostTimeInSeconds corefoundation.TimeInterval) coremedia.Time + ItemTimeForMachAbsoluteTime(machAbsoluteTime int64) coremedia.Time SuppressesPlayerRendering() bool SetSuppressesPlayerRendering(value bool) } @@ -61,11 +61,11 @@ func (p_ PlayerItemOutput) Init() PlayerItemOutput { return rv } -// Converts a Mach host time to the item’s timebase. [Full Topic] +// Converts a Core Video timestamp to the item’s timebase. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutput/1386962-itemtimeformachabsolutetime?language=objc -func (p_ PlayerItemOutput) ItemTimeForMachAbsoluteTime(machAbsoluteTime int64) coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("itemTimeForMachAbsoluteTime:"), machAbsoluteTime) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutput/1388333-itemtimeforcvtimestamp?language=objc +func (p_ PlayerItemOutput) ItemTimeForCVTimeStamp(timestamp corevideo.TimeStamp) coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("itemTimeForCVTimeStamp:"), timestamp) return rv } @@ -77,11 +77,11 @@ func (p_ PlayerItemOutput) ItemTimeForHostTime(hostTimeInSeconds corefoundation. return rv } -// Converts a Core Video timestamp to the item’s timebase. [Full Topic] +// Converts a Mach host time to the item’s timebase. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutput/1388333-itemtimeforcvtimestamp?language=objc -func (p_ PlayerItemOutput) ItemTimeForCVTimeStamp(timestamp corevideo.TimeStamp) coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("itemTimeForCVTimeStamp:"), timestamp) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutput/1386962-itemtimeformachabsolutetime?language=objc +func (p_ PlayerItemOutput) ItemTimeForMachAbsoluteTime(machAbsoluteTime int64) coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("itemTimeForMachAbsoluteTime:"), machAbsoluteTime) return rv } diff --git a/macos/avfoundation/player_item_output_pull_delegate.gen.go b/macos/avfoundation/player_item_output_pull_delegate.gen.go index 0d42d7c9..eb2412c0 100644 --- a/macos/avfoundation/player_item_output_pull_delegate.gen.go +++ b/macos/avfoundation/player_item_output_pull_delegate.gen.go @@ -10,38 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate?language=objc type PPlayerItemOutputPullDelegate interface { - // optional - OutputMediaDataWillChange(sender PlayerItemOutput) - HasOutputMediaDataWillChange() bool - // optional OutputSequenceWasFlushed(output PlayerItemOutput) HasOutputSequenceWasFlushed() bool + + // optional + OutputMediaDataWillChange(sender PlayerItemOutput) + HasOutputMediaDataWillChange() bool } // A delegate implementation builder for the [PPlayerItemOutputPullDelegate] protocol. type PlayerItemOutputPullDelegate struct { - _OutputMediaDataWillChange func(sender PlayerItemOutput) _OutputSequenceWasFlushed func(output PlayerItemOutput) + _OutputMediaDataWillChange func(sender PlayerItemOutput) } -func (di *PlayerItemOutputPullDelegate) HasOutputMediaDataWillChange() bool { - return di._OutputMediaDataWillChange != nil -} - -// Tells the delegate that new samples are about to arrive. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate/1387498-outputmediadatawillchange?language=objc -func (di *PlayerItemOutputPullDelegate) SetOutputMediaDataWillChange(f func(sender PlayerItemOutput)) { - di._OutputMediaDataWillChange = f -} - -// Tells the delegate that new samples are about to arrive. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate/1387498-outputmediadatawillchange?language=objc -func (di *PlayerItemOutputPullDelegate) OutputMediaDataWillChange(sender PlayerItemOutput) { - di._OutputMediaDataWillChange(sender) -} func (di *PlayerItemOutputPullDelegate) HasOutputSequenceWasFlushed() bool { return di._OutputSequenceWasFlushed != nil } @@ -59,24 +42,30 @@ func (di *PlayerItemOutputPullDelegate) SetOutputSequenceWasFlushed(f func(outpu func (di *PlayerItemOutputPullDelegate) OutputSequenceWasFlushed(output PlayerItemOutput) { di._OutputSequenceWasFlushed(output) } - -// ensure impl type implements protocol interface -var _ PPlayerItemOutputPullDelegate = (*PlayerItemOutputPullDelegateObject)(nil) - -// A concrete type for the [PPlayerItemOutputPullDelegate] protocol. -type PlayerItemOutputPullDelegateObject struct { - objc.Object +func (di *PlayerItemOutputPullDelegate) HasOutputMediaDataWillChange() bool { + return di._OutputMediaDataWillChange != nil } -func (p_ PlayerItemOutputPullDelegateObject) HasOutputMediaDataWillChange() bool { - return p_.RespondsToSelector(objc.Sel("outputMediaDataWillChange:")) +// Tells the delegate that new samples are about to arrive. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate/1387498-outputmediadatawillchange?language=objc +func (di *PlayerItemOutputPullDelegate) SetOutputMediaDataWillChange(f func(sender PlayerItemOutput)) { + di._OutputMediaDataWillChange = f } // Tells the delegate that new samples are about to arrive. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate/1387498-outputmediadatawillchange?language=objc -func (p_ PlayerItemOutputPullDelegateObject) OutputMediaDataWillChange(sender PlayerItemOutput) { - objc.Call[objc.Void](p_, objc.Sel("outputMediaDataWillChange:"), sender) +func (di *PlayerItemOutputPullDelegate) OutputMediaDataWillChange(sender PlayerItemOutput) { + di._OutputMediaDataWillChange(sender) +} + +// ensure impl type implements protocol interface +var _ PPlayerItemOutputPullDelegate = (*PlayerItemOutputPullDelegateObject)(nil) + +// A concrete type for the [PPlayerItemOutputPullDelegate] protocol. +type PlayerItemOutputPullDelegateObject struct { + objc.Object } func (p_ PlayerItemOutputPullDelegateObject) HasOutputSequenceWasFlushed() bool { @@ -89,3 +78,14 @@ func (p_ PlayerItemOutputPullDelegateObject) HasOutputSequenceWasFlushed() bool func (p_ PlayerItemOutputPullDelegateObject) OutputSequenceWasFlushed(output PlayerItemOutput) { objc.Call[objc.Void](p_, objc.Sel("outputSequenceWasFlushed:"), output) } + +func (p_ PlayerItemOutputPullDelegateObject) HasOutputMediaDataWillChange() bool { + return p_.RespondsToSelector(objc.Sel("outputMediaDataWillChange:")) +} + +// Tells the delegate that new samples are about to arrive. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate/1387498-outputmediadatawillchange?language=objc +func (p_ PlayerItemOutputPullDelegateObject) OutputMediaDataWillChange(sender PlayerItemOutput) { + objc.Call[objc.Void](p_, objc.Sel("outputMediaDataWillChange:"), sender) +} diff --git a/macos/avfoundation/player_item_track.gen.go b/macos/avfoundation/player_item_track.gen.go index 4fcbcd00..43de91e2 100644 --- a/macos/avfoundation/player_item_track.gen.go +++ b/macos/avfoundation/player_item_track.gen.go @@ -18,11 +18,11 @@ type _PlayerItemTrackClass struct { // An interface definition for the [PlayerItemTrack] class. type IPlayerItemTrack interface { objc.IObject - IsEnabled() bool - SetEnabled(value bool) - CurrentVideoFrameRate() float32 VideoFieldMode() string SetVideoFieldMode(value string) + CurrentVideoFrameRate() float32 + IsEnabled() bool + SetEnabled(value bool) AssetTrack() AssetTrack } @@ -59,19 +59,19 @@ func (p_ PlayerItemTrack) Init() PlayerItemTrack { return rv } -// A Boolean value that indicates whether the player item presents the track’s media during playback. [Full Topic] +// A mode that specifies the handling of video frames that contain multiple fields. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemtrack/1387062-enabled?language=objc -func (p_ PlayerItemTrack) IsEnabled() bool { - rv := objc.Call[bool](p_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemtrack/1388045-videofieldmode?language=objc +func (p_ PlayerItemTrack) VideoFieldMode() string { + rv := objc.Call[string](p_, objc.Sel("videoFieldMode")) return rv } -// A Boolean value that indicates whether the player item presents the track’s media during playback. [Full Topic] +// A mode that specifies the handling of video frames that contain multiple fields. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemtrack/1387062-enabled?language=objc -func (p_ PlayerItemTrack) SetEnabled(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemtrack/1388045-videofieldmode?language=objc +func (p_ PlayerItemTrack) SetVideoFieldMode(value string) { + objc.Call[objc.Void](p_, objc.Sel("setVideoFieldMode:"), value) } // The current frame rate of the video track as it plays. [Full Topic] @@ -82,19 +82,19 @@ func (p_ PlayerItemTrack) CurrentVideoFrameRate() float32 { return rv } -// A mode that specifies the handling of video frames that contain multiple fields. [Full Topic] +// A Boolean value that indicates whether the player item presents the track’s media during playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemtrack/1388045-videofieldmode?language=objc -func (p_ PlayerItemTrack) VideoFieldMode() string { - rv := objc.Call[string](p_, objc.Sel("videoFieldMode")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemtrack/1387062-enabled?language=objc +func (p_ PlayerItemTrack) IsEnabled() bool { + rv := objc.Call[bool](p_, objc.Sel("isEnabled")) return rv } -// A mode that specifies the handling of video frames that contain multiple fields. [Full Topic] +// A Boolean value that indicates whether the player item presents the track’s media during playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemtrack/1388045-videofieldmode?language=objc -func (p_ PlayerItemTrack) SetVideoFieldMode(value string) { - objc.Call[objc.Void](p_, objc.Sel("setVideoFieldMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemtrack/1387062-enabled?language=objc +func (p_ PlayerItemTrack) SetEnabled(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setEnabled:"), value) } // An asset track that provides the media for the player item track. [Full Topic] diff --git a/macos/avfoundation/player_item_video_output.gen.go b/macos/avfoundation/player_item_video_output.gen.go index 8dac6acc..e8f60166 100644 --- a/macos/avfoundation/player_item_video_output.gen.go +++ b/macos/avfoundation/player_item_video_output.gen.go @@ -22,13 +22,13 @@ type _PlayerItemVideoOutputClass struct { // An interface definition for the [PlayerItemVideoOutput] class. type IPlayerItemVideoOutput interface { IPlayerItemOutput - CopyPixelBufferForItemTimeItemTimeForDisplay(itemTime coremedia.Time, outItemTimeForDisplay *coremedia.Time) corevideo.PixelBufferRef - HasNewPixelBufferForItemTime(itemTime coremedia.Time) bool - RequestNotificationOfMediaDataChangeWithAdvanceInterval(interval foundation.TimeInterval) SetDelegateQueue(delegate PPlayerItemOutputPullDelegate, delegateQueue dispatch.Queue) SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) - DelegateQueue() dispatch.Queue + CopyPixelBufferForItemTimeItemTimeForDisplay(itemTime coremedia.Time, outItemTimeForDisplay *coremedia.Time) corevideo.PixelBufferRef + RequestNotificationOfMediaDataChangeWithAdvanceInterval(interval foundation.TimeInterval) + HasNewPixelBufferForItemTime(itemTime coremedia.Time) bool Delegate() PlayerItemOutputPullDelegateObject + DelegateQueue() dispatch.Queue } // An object that outputs video frames from a player item. [Full Topic] @@ -44,30 +44,30 @@ func PlayerItemVideoOutputFrom(ptr unsafe.Pointer) PlayerItemVideoOutput { } } -func (p_ PlayerItemVideoOutput) InitWithPixelBufferAttributes(pixelBufferAttributes map[string]objc.IObject) PlayerItemVideoOutput { - rv := objc.Call[PlayerItemVideoOutput](p_, objc.Sel("initWithPixelBufferAttributes:"), pixelBufferAttributes) +func (p_ PlayerItemVideoOutput) InitWithOutputSettings(outputSettings map[string]objc.IObject) PlayerItemVideoOutput { + rv := objc.Call[PlayerItemVideoOutput](p_, objc.Sel("initWithOutputSettings:"), outputSettings) return rv } -// Creates a video output object using the specified pixel buffer attributes. [Full Topic] +// Creates a video output object initialized with the specified output settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1389231-initwithpixelbufferattributes?language=objc -func NewPlayerItemVideoOutputWithPixelBufferAttributes(pixelBufferAttributes map[string]objc.IObject) PlayerItemVideoOutput { - instance := PlayerItemVideoOutputClass.Alloc().InitWithPixelBufferAttributes(pixelBufferAttributes) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1643270-initwithoutputsettings?language=objc +func NewPlayerItemVideoOutputWithOutputSettings(outputSettings map[string]objc.IObject) PlayerItemVideoOutput { + instance := PlayerItemVideoOutputClass.Alloc().InitWithOutputSettings(outputSettings) instance.Autorelease() return instance } -func (p_ PlayerItemVideoOutput) InitWithOutputSettings(outputSettings map[string]objc.IObject) PlayerItemVideoOutput { - rv := objc.Call[PlayerItemVideoOutput](p_, objc.Sel("initWithOutputSettings:"), outputSettings) +func (p_ PlayerItemVideoOutput) InitWithPixelBufferAttributes(pixelBufferAttributes map[string]objc.IObject) PlayerItemVideoOutput { + rv := objc.Call[PlayerItemVideoOutput](p_, objc.Sel("initWithPixelBufferAttributes:"), pixelBufferAttributes) return rv } -// Creates a video output object initialized with the specified output settings. [Full Topic] +// Creates a video output object using the specified pixel buffer attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1643270-initwithoutputsettings?language=objc -func NewPlayerItemVideoOutputWithOutputSettings(outputSettings map[string]objc.IObject) PlayerItemVideoOutput { - instance := PlayerItemVideoOutputClass.Alloc().InitWithOutputSettings(outputSettings) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1389231-initwithpixelbufferattributes?language=objc +func NewPlayerItemVideoOutputWithPixelBufferAttributes(pixelBufferAttributes map[string]objc.IObject) PlayerItemVideoOutput { + instance := PlayerItemVideoOutputClass.Alloc().InitWithPixelBufferAttributes(pixelBufferAttributes) instance.Autorelease() return instance } @@ -92,6 +92,21 @@ func (p_ PlayerItemVideoOutput) Init() PlayerItemVideoOutput { return rv } +// Sets the delegate and dispatch queue for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1386824-setdelegate?language=objc +func (p_ PlayerItemVideoOutput) SetDelegateQueue(delegate PPlayerItemOutputPullDelegate, delegateQueue dispatch.Queue) { + po0 := objc.WrapAsProtocol("AVPlayerItemOutputPullDelegate", delegate) + objc.Call[objc.Void](p_, objc.Sel("setDelegate:queue:"), po0, delegateQueue) +} + +// Sets the delegate and dispatch queue for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1386824-setdelegate?language=objc +func (p_ PlayerItemVideoOutput) SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) { + objc.Call[objc.Void](p_, objc.Sel("setDelegate:queue:"), delegateObject, delegateQueue) +} + // Retrieves an image that is appropriate for display at the specified item time, and marks the image as acquired. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1386148-copypixelbufferforitemtime?language=objc @@ -100,14 +115,6 @@ func (p_ PlayerItemVideoOutput) CopyPixelBufferForItemTimeItemTimeForDisplay(ite return rv } -// Returns a Boolean value that indicates whether video output is available for the specified item time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1386444-hasnewpixelbufferforitemtime?language=objc -func (p_ PlayerItemVideoOutput) HasNewPixelBufferForItemTime(itemTime coremedia.Time) bool { - rv := objc.Call[bool](p_, objc.Sel("hasNewPixelBufferForItemTime:"), itemTime) - return rv -} - // Tells the receiver that the video out put client is entering a quiescent state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1386046-requestnotificationofmediadatach?language=objc @@ -115,19 +122,20 @@ func (p_ PlayerItemVideoOutput) RequestNotificationOfMediaDataChangeWithAdvanceI objc.Call[objc.Void](p_, objc.Sel("requestNotificationOfMediaDataChangeWithAdvanceInterval:"), interval) } -// Sets the delegate and dispatch queue for the receiver. [Full Topic] +// Returns a Boolean value that indicates whether video output is available for the specified item time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1386824-setdelegate?language=objc -func (p_ PlayerItemVideoOutput) SetDelegateQueue(delegate PPlayerItemOutputPullDelegate, delegateQueue dispatch.Queue) { - po0 := objc.WrapAsProtocol("AVPlayerItemOutputPullDelegate", delegate) - objc.Call[objc.Void](p_, objc.Sel("setDelegate:queue:"), po0, delegateQueue) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1386444-hasnewpixelbufferforitemtime?language=objc +func (p_ PlayerItemVideoOutput) HasNewPixelBufferForItemTime(itemTime coremedia.Time) bool { + rv := objc.Call[bool](p_, objc.Sel("hasNewPixelBufferForItemTime:"), itemTime) + return rv } -// Sets the delegate and dispatch queue for the receiver. [Full Topic] +// The delegate for the video output object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1386824-setdelegate?language=objc -func (p_ PlayerItemVideoOutput) SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) { - objc.Call[objc.Void](p_, objc.Sel("setDelegate:queue:"), delegateObject, delegateQueue) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1385827-delegate?language=objc +func (p_ PlayerItemVideoOutput) Delegate() PlayerItemOutputPullDelegateObject { + rv := objc.Call[PlayerItemOutputPullDelegateObject](p_, objc.Sel("delegate")) + return rv } // The dispatch queue on which to call delegate methods. [Full Topic] @@ -137,11 +145,3 @@ func (p_ PlayerItemVideoOutput) DelegateQueue() dispatch.Queue { rv := objc.Call[dispatch.Queue](p_, objc.Sel("delegateQueue")) return rv } - -// The delegate for the video output object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1385827-delegate?language=objc -func (p_ PlayerItemVideoOutput) Delegate() PlayerItemOutputPullDelegateObject { - rv := objc.Call[PlayerItemOutputPullDelegateObject](p_, objc.Sel("delegate")) - return rv -} diff --git a/macos/avfoundation/player_layer.gen.go b/macos/avfoundation/player_layer.gen.go index 16818bbb..6f752b43 100644 --- a/macos/avfoundation/player_layer.gen.go +++ b/macos/avfoundation/player_layer.gen.go @@ -20,14 +20,14 @@ type _PlayerLayerClass struct { // An interface definition for the [PlayerLayer] class. type IPlayerLayer interface { quartzcore.ILayer - IsReadyForDisplay() bool + VideoGravity() LayerVideoGravity + SetVideoGravity(value LayerVideoGravity) PixelBufferAttributes() map[string]objc.Object SetPixelBufferAttributes(value map[string]objc.IObject) - VideoRect() coregraphics.Rect Player() Player SetPlayer(value IPlayer) - VideoGravity() LayerVideoGravity - SetVideoGravity(value LayerVideoGravity) + IsReadyForDisplay() bool + VideoRect() coregraphics.Rect } // An object that presents the visual contents of a player object. [Full Topic] @@ -63,58 +63,58 @@ func (p_ PlayerLayer) Init() PlayerLayer { return rv } -func (p_ PlayerLayer) ModelLayer() PlayerLayer { - rv := objc.Call[PlayerLayer](p_, objc.Sel("modelLayer")) +func (pc _PlayerLayerClass) Layer() PlayerLayer { + rv := objc.Call[PlayerLayer](pc, objc.Sel("layer")) return rv } -// Returns the model layer object associated with the receiver, if any. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc -func PlayerLayer_ModelLayer() PlayerLayer { - instance := PlayerLayerClass.Alloc().ModelLayer() - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func PlayerLayer_Layer() PlayerLayer { + return PlayerLayerClass.Layer() } -func (p_ PlayerLayer) PresentationLayer() PlayerLayer { - rv := objc.Call[PlayerLayer](p_, objc.Sel("presentationLayer")) +func (p_ PlayerLayer) InitWithLayer(layer objc.IObject) PlayerLayer { + rv := objc.Call[PlayerLayer](p_, objc.Sel("initWithLayer:"), layer) return rv } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] +// Override to copy or initialize custom fields of the specified layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc -func PlayerLayer_PresentationLayer() PlayerLayer { - instance := PlayerLayerClass.Alloc().PresentationLayer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewPlayerLayerWithLayer(layer objc.IObject) PlayerLayer { + instance := PlayerLayerClass.Alloc().InitWithLayer(layer) instance.Autorelease() return instance } -func (p_ PlayerLayer) InitWithLayer(layer objc.IObject) PlayerLayer { - rv := objc.Call[PlayerLayer](p_, objc.Sel("initWithLayer:"), layer) +func (p_ PlayerLayer) ModelLayer() PlayerLayer { + rv := objc.Call[PlayerLayer](p_, objc.Sel("modelLayer")) return rv } -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewPlayerLayerWithLayer(layer objc.IObject) PlayerLayer { - instance := PlayerLayerClass.Alloc().InitWithLayer(layer) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc +func PlayerLayer_ModelLayer() PlayerLayer { + instance := PlayerLayerClass.Alloc().ModelLayer() instance.Autorelease() return instance } -func (pc _PlayerLayerClass) Layer() PlayerLayer { - rv := objc.Call[PlayerLayer](pc, objc.Sel("layer")) +func (p_ PlayerLayer) PresentationLayer() PlayerLayer { + rv := objc.Call[PlayerLayer](p_, objc.Sel("presentationLayer")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func PlayerLayer_Layer() PlayerLayer { - return PlayerLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc +func PlayerLayer_PresentationLayer() PlayerLayer { + instance := PlayerLayerClass.Alloc().PresentationLayer() + instance.Autorelease() + return instance } // Creates a layer object to present the visual contents of a player’s current item. [Full Topic] @@ -132,14 +132,21 @@ func PlayerLayer_PlayerLayerWithPlayer(player IPlayer) PlayerLayer { return PlayerLayerClass.PlayerLayerWithPlayer(player) } -// A Boolean value that indicates whether the first video frame of the player’s current item is ready for display. [Full Topic] +// A value that specifies how the layer displays the player’s visual content within the layer’s bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1389748-readyfordisplay?language=objc -func (p_ PlayerLayer) IsReadyForDisplay() bool { - rv := objc.Call[bool](p_, objc.Sel("isReadyForDisplay")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1388915-videogravity?language=objc +func (p_ PlayerLayer) VideoGravity() LayerVideoGravity { + rv := objc.Call[LayerVideoGravity](p_, objc.Sel("videoGravity")) return rv } +// A value that specifies how the layer displays the player’s visual content within the layer’s bounds. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1388915-videogravity?language=objc +func (p_ PlayerLayer) SetVideoGravity(value LayerVideoGravity) { + objc.Call[objc.Void](p_, objc.Sel("setVideoGravity:"), value) +} + // The attributes of the visual output that displays in the player layer during playback. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1390055-pixelbufferattributes?language=objc @@ -155,14 +162,6 @@ func (p_ PlayerLayer) SetPixelBufferAttributes(value map[string]objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setPixelBufferAttributes:"), value) } -// The current size and position of the video image that displays within the layer’s bounds. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1385745-videorect?language=objc -func (p_ PlayerLayer) VideoRect() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](p_, objc.Sel("videoRect")) - return rv -} - // The player whose visual content the layer displays. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1390434-player?language=objc @@ -178,17 +177,18 @@ func (p_ PlayerLayer) SetPlayer(value IPlayer) { objc.Call[objc.Void](p_, objc.Sel("setPlayer:"), value) } -// A value that specifies how the layer displays the player’s visual content within the layer’s bounds. [Full Topic] +// A Boolean value that indicates whether the first video frame of the player’s current item is ready for display. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1388915-videogravity?language=objc -func (p_ PlayerLayer) VideoGravity() LayerVideoGravity { - rv := objc.Call[LayerVideoGravity](p_, objc.Sel("videoGravity")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1389748-readyfordisplay?language=objc +func (p_ PlayerLayer) IsReadyForDisplay() bool { + rv := objc.Call[bool](p_, objc.Sel("isReadyForDisplay")) return rv } -// A value that specifies how the layer displays the player’s visual content within the layer’s bounds. [Full Topic] +// The current size and position of the video image that displays within the layer’s bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1388915-videogravity?language=objc -func (p_ PlayerLayer) SetVideoGravity(value LayerVideoGravity) { - objc.Call[objc.Void](p_, objc.Sel("setVideoGravity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1385745-videorect?language=objc +func (p_ PlayerLayer) VideoRect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](p_, objc.Sel("videoRect")) + return rv } diff --git a/macos/avfoundation/player_looper.gen.go b/macos/avfoundation/player_looper.gen.go index 4b3edbe3..69ac3915 100644 --- a/macos/avfoundation/player_looper.gen.go +++ b/macos/avfoundation/player_looper.gen.go @@ -21,10 +21,10 @@ type _PlayerLooperClass struct { type IPlayerLooper interface { objc.IObject DisableLooping() - LoopCount() int - LoopingPlayerItems() []PlayerItem Error() foundation.Error + LoopCount() int Status() PlayerLooperStatus + LoopingPlayerItems() []PlayerItem } // An object that loops media content using a queue player. [Full Topic] @@ -52,18 +52,6 @@ func PlayerLooper_PlayerLooperWithPlayerTemplateItem(player IQueuePlayer, itemTo return PlayerLooperClass.PlayerLooperWithPlayerTemplateItem(player, itemToLoop) } -func (pc _PlayerLooperClass) PlayerLooperWithPlayerTemplateItemTimeRange(player IQueuePlayer, itemToLoop IPlayerItem, loopRange coremedia.TimeRange) PlayerLooper { - rv := objc.Call[PlayerLooper](pc, objc.Sel("playerLooperWithPlayer:templateItem:timeRange:"), player, itemToLoop, loopRange) - return rv -} - -// Returns player looper that continuously plays the specified time range of a player item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlooper/1645034-playerlooperwithplayer?language=objc -func PlayerLooper_PlayerLooperWithPlayerTemplateItemTimeRange(player IQueuePlayer, itemToLoop IPlayerItem, loopRange coremedia.TimeRange) PlayerLooper { - return PlayerLooperClass.PlayerLooperWithPlayerTemplateItemTimeRange(player, itemToLoop, loopRange) -} - func (p_ PlayerLooper) InitWithPlayerTemplateItemTimeRange(player IQueuePlayer, itemToLoop IPlayerItem, loopRange coremedia.TimeRange) PlayerLooper { rv := objc.Call[PlayerLooper](p_, objc.Sel("initWithPlayer:templateItem:timeRange:"), player, itemToLoop, loopRange) return rv @@ -105,22 +93,6 @@ func (p_ PlayerLooper) DisableLooping() { objc.Call[objc.Void](p_, objc.Sel("disableLooping")) } -// The number of times the object played the media. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlooper/1643648-loopcount?language=objc -func (p_ PlayerLooper) LoopCount() int { - rv := objc.Call[int](p_, objc.Sel("loopCount")) - return rv -} - -// An array containing replicas of the template player item used to accomplish the looping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlooper/1643631-loopingplayeritems?language=objc -func (p_ PlayerLooper) LoopingPlayerItems() []PlayerItem { - rv := objc.Call[[]PlayerItem](p_, objc.Sel("loopingPlayerItems")) - return rv -} - // An error that describes the reason looping failed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlooper/2177064-error?language=objc @@ -129,6 +101,14 @@ func (p_ PlayerLooper) Error() foundation.Error { return rv } +// The number of times the object played the media. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlooper/1643648-loopcount?language=objc +func (p_ PlayerLooper) LoopCount() int { + rv := objc.Call[int](p_, objc.Sel("loopCount")) + return rv +} + // A status that indicates the object’s ability to loop playback. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlooper/2177060-status?language=objc @@ -136,3 +116,11 @@ func (p_ PlayerLooper) Status() PlayerLooperStatus { rv := objc.Call[PlayerLooperStatus](p_, objc.Sel("status")) return rv } + +// An array containing replicas of the template player item used to accomplish the looping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlooper/1643631-loopingplayeritems?language=objc +func (p_ PlayerLooper) LoopingPlayerItems() []PlayerItem { + rv := objc.Call[[]PlayerItem](p_, objc.Sel("loopingPlayerItems")) + return rv +} diff --git a/macos/avfoundation/player_media_selection_criteria.gen.go b/macos/avfoundation/player_media_selection_criteria.gen.go index 3229dd5f..c15d81a4 100644 --- a/macos/avfoundation/player_media_selection_criteria.gen.go +++ b/macos/avfoundation/player_media_selection_criteria.gen.go @@ -19,8 +19,8 @@ type _PlayerMediaSelectionCriteriaClass struct { type IPlayerMediaSelectionCriteria interface { objc.IObject PreferredLanguages() []string - PreferredMediaCharacteristics() []MediaCharacteristic PrincipalMediaCharacteristics() []MediaCharacteristic + PreferredMediaCharacteristics() []MediaCharacteristic } // An object that specifies the preferred languages and media characteristics for a player. [Full Topic] @@ -36,30 +36,30 @@ func PlayerMediaSelectionCriteriaFrom(ptr unsafe.Pointer) PlayerMediaSelectionCr } } -func (p_ PlayerMediaSelectionCriteria) InitWithPrincipalMediaCharacteristicsPreferredLanguagesPreferredMediaCharacteristics(principalMediaCharacteristics []MediaCharacteristic, preferredLanguages []string, preferredMediaCharacteristics []MediaCharacteristic) PlayerMediaSelectionCriteria { - rv := objc.Call[PlayerMediaSelectionCriteria](p_, objc.Sel("initWithPrincipalMediaCharacteristics:preferredLanguages:preferredMediaCharacteristics:"), principalMediaCharacteristics, preferredLanguages, preferredMediaCharacteristics) +func (p_ PlayerMediaSelectionCriteria) InitWithPreferredLanguagesPreferredMediaCharacteristics(preferredLanguages []string, preferredMediaCharacteristics []MediaCharacteristic) PlayerMediaSelectionCriteria { + rv := objc.Call[PlayerMediaSelectionCriteria](p_, objc.Sel("initWithPreferredLanguages:preferredMediaCharacteristics:"), preferredLanguages, preferredMediaCharacteristics) return rv } -// Creates media selection criteria with the principal media characteristics, and preferred languages and media characteristics. [Full Topic] +// Creates media selection criteria with the preferred languages and media characteristics. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayermediaselectioncriteria/3042657-initwithprincipalmediacharacteri?language=objc -func NewPlayerMediaSelectionCriteriaWithPrincipalMediaCharacteristicsPreferredLanguagesPreferredMediaCharacteristics(principalMediaCharacteristics []MediaCharacteristic, preferredLanguages []string, preferredMediaCharacteristics []MediaCharacteristic) PlayerMediaSelectionCriteria { - instance := PlayerMediaSelectionCriteriaClass.Alloc().InitWithPrincipalMediaCharacteristicsPreferredLanguagesPreferredMediaCharacteristics(principalMediaCharacteristics, preferredLanguages, preferredMediaCharacteristics) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayermediaselectioncriteria/1387627-initwithpreferredlanguages?language=objc +func NewPlayerMediaSelectionCriteriaWithPreferredLanguagesPreferredMediaCharacteristics(preferredLanguages []string, preferredMediaCharacteristics []MediaCharacteristic) PlayerMediaSelectionCriteria { + instance := PlayerMediaSelectionCriteriaClass.Alloc().InitWithPreferredLanguagesPreferredMediaCharacteristics(preferredLanguages, preferredMediaCharacteristics) instance.Autorelease() return instance } -func (p_ PlayerMediaSelectionCriteria) InitWithPreferredLanguagesPreferredMediaCharacteristics(preferredLanguages []string, preferredMediaCharacteristics []MediaCharacteristic) PlayerMediaSelectionCriteria { - rv := objc.Call[PlayerMediaSelectionCriteria](p_, objc.Sel("initWithPreferredLanguages:preferredMediaCharacteristics:"), preferredLanguages, preferredMediaCharacteristics) +func (p_ PlayerMediaSelectionCriteria) InitWithPrincipalMediaCharacteristicsPreferredLanguagesPreferredMediaCharacteristics(principalMediaCharacteristics []MediaCharacteristic, preferredLanguages []string, preferredMediaCharacteristics []MediaCharacteristic) PlayerMediaSelectionCriteria { + rv := objc.Call[PlayerMediaSelectionCriteria](p_, objc.Sel("initWithPrincipalMediaCharacteristics:preferredLanguages:preferredMediaCharacteristics:"), principalMediaCharacteristics, preferredLanguages, preferredMediaCharacteristics) return rv } -// Creates media selection criteria with the preferred languages and media characteristics. [Full Topic] +// Creates media selection criteria with the principal media characteristics, and preferred languages and media characteristics. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayermediaselectioncriteria/1387627-initwithpreferredlanguages?language=objc -func NewPlayerMediaSelectionCriteriaWithPreferredLanguagesPreferredMediaCharacteristics(preferredLanguages []string, preferredMediaCharacteristics []MediaCharacteristic) PlayerMediaSelectionCriteria { - instance := PlayerMediaSelectionCriteriaClass.Alloc().InitWithPreferredLanguagesPreferredMediaCharacteristics(preferredLanguages, preferredMediaCharacteristics) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayermediaselectioncriteria/3042657-initwithprincipalmediacharacteri?language=objc +func NewPlayerMediaSelectionCriteriaWithPrincipalMediaCharacteristicsPreferredLanguagesPreferredMediaCharacteristics(principalMediaCharacteristics []MediaCharacteristic, preferredLanguages []string, preferredMediaCharacteristics []MediaCharacteristic) PlayerMediaSelectionCriteria { + instance := PlayerMediaSelectionCriteriaClass.Alloc().InitWithPrincipalMediaCharacteristicsPreferredLanguagesPreferredMediaCharacteristics(principalMediaCharacteristics, preferredLanguages, preferredMediaCharacteristics) instance.Autorelease() return instance } @@ -92,14 +92,6 @@ func (p_ PlayerMediaSelectionCriteria) PreferredLanguages() []string { return rv } -// An array of media characteristics in preferred order. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayermediaselectioncriteria/1385734-preferredmediacharacteristics?language=objc -func (p_ PlayerMediaSelectionCriteria) PreferredMediaCharacteristics() []MediaCharacteristic { - rv := objc.Call[[]MediaCharacteristic](p_, objc.Sel("preferredMediaCharacteristics")) - return rv -} - // An array of media characteristics that are essential to select when choosing media with a particular characteristic. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayermediaselectioncriteria/3042658-principalmediacharacteristics?language=objc @@ -107,3 +99,11 @@ func (p_ PlayerMediaSelectionCriteria) PrincipalMediaCharacteristics() []MediaCh rv := objc.Call[[]MediaCharacteristic](p_, objc.Sel("principalMediaCharacteristics")) return rv } + +// An array of media characteristics in preferred order. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayermediaselectioncriteria/1385734-preferredmediacharacteristics?language=objc +func (p_ PlayerMediaSelectionCriteria) PreferredMediaCharacteristics() []MediaCharacteristic { + rv := objc.Call[[]MediaCharacteristic](p_, objc.Sel("preferredMediaCharacteristics")) + return rv +} diff --git a/macos/avfoundation/player_playback_coordinator_delegate.gen.go b/macos/avfoundation/player_playback_coordinator_delegate.gen.go index b18ff1e5..a109f14d 100644 --- a/macos/avfoundation/player_playback_coordinator_delegate.gen.go +++ b/macos/avfoundation/player_playback_coordinator_delegate.gen.go @@ -3,7 +3,6 @@ package avfoundation import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -11,10 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerplaybackcoordinatordelegate?language=objc type PPlayerPlaybackCoordinatorDelegate interface { - // optional - PlaybackCoordinatorInterstitialTimeRangesForPlayerItem(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) []foundation.Value - HasPlaybackCoordinatorInterstitialTimeRangesForPlayerItem() bool - // optional PlaybackCoordinatorIdentifierForPlayerItem(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) string HasPlaybackCoordinatorIdentifierForPlayerItem() bool @@ -22,27 +17,9 @@ type PPlayerPlaybackCoordinatorDelegate interface { // A delegate implementation builder for the [PPlayerPlaybackCoordinatorDelegate] protocol. type PlayerPlaybackCoordinatorDelegate struct { - _PlaybackCoordinatorInterstitialTimeRangesForPlayerItem func(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) []foundation.Value - _PlaybackCoordinatorIdentifierForPlayerItem func(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) string -} - -func (di *PlayerPlaybackCoordinatorDelegate) HasPlaybackCoordinatorInterstitialTimeRangesForPlayerItem() bool { - return di._PlaybackCoordinatorInterstitialTimeRangesForPlayerItem != nil + _PlaybackCoordinatorIdentifierForPlayerItem func(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) string } -// Asks the delegate for time ranges in a player item that don’t correspond to the primary content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerplaybackcoordinatordelegate/3920458-playbackcoordinator?language=objc -func (di *PlayerPlaybackCoordinatorDelegate) SetPlaybackCoordinatorInterstitialTimeRangesForPlayerItem(f func(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) []foundation.Value) { - di._PlaybackCoordinatorInterstitialTimeRangesForPlayerItem = f -} - -// Asks the delegate for time ranges in a player item that don’t correspond to the primary content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerplaybackcoordinatordelegate/3920458-playbackcoordinator?language=objc -func (di *PlayerPlaybackCoordinatorDelegate) PlaybackCoordinatorInterstitialTimeRangesForPlayerItem(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) []foundation.Value { - return di._PlaybackCoordinatorInterstitialTimeRangesForPlayerItem(coordinator, playerItem) -} func (di *PlayerPlaybackCoordinatorDelegate) HasPlaybackCoordinatorIdentifierForPlayerItem() bool { return di._PlaybackCoordinatorIdentifierForPlayerItem != nil } @@ -69,18 +46,6 @@ type PlayerPlaybackCoordinatorDelegateObject struct { objc.Object } -func (p_ PlayerPlaybackCoordinatorDelegateObject) HasPlaybackCoordinatorInterstitialTimeRangesForPlayerItem() bool { - return p_.RespondsToSelector(objc.Sel("playbackCoordinator:interstitialTimeRangesForPlayerItem:")) -} - -// Asks the delegate for time ranges in a player item that don’t correspond to the primary content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerplaybackcoordinatordelegate/3920458-playbackcoordinator?language=objc -func (p_ PlayerPlaybackCoordinatorDelegateObject) PlaybackCoordinatorInterstitialTimeRangesForPlayerItem(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) []foundation.Value { - rv := objc.Call[[]foundation.Value](p_, objc.Sel("playbackCoordinator:interstitialTimeRangesForPlayerItem:"), coordinator, playerItem) - return rv -} - func (p_ PlayerPlaybackCoordinatorDelegateObject) HasPlaybackCoordinatorIdentifierForPlayerItem() bool { return p_.RespondsToSelector(objc.Sel("playbackCoordinator:identifierForPlayerItem:")) } diff --git a/macos/avfoundation/portrait_effects_matte.gen.go b/macos/avfoundation/portrait_effects_matte.gen.go index 6872b6d7..dfb706c4 100644 --- a/macos/avfoundation/portrait_effects_matte.gen.go +++ b/macos/avfoundation/portrait_effects_matte.gen.go @@ -39,18 +39,6 @@ func PortraitEffectsMatteFrom(ptr unsafe.Pointer) PortraitEffectsMatte { } } -func (pc _PortraitEffectsMatteClass) PortraitEffectsMatteFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) PortraitEffectsMatte { - rv := objc.Call[PortraitEffectsMatte](pc, objc.Sel("portraitEffectsMatteFromDictionaryRepresentation:error:"), imageSourceAuxDataInfoDictionary, outError) - return rv -} - -// Initializes a portrait effects matte instance from auxiliary image information in an image file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avportraiteffectsmatte/2976125-portraiteffectsmattefromdictiona?language=objc -func PortraitEffectsMatte_PortraitEffectsMatteFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) PortraitEffectsMatte { - return PortraitEffectsMatteClass.PortraitEffectsMatteFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary, outError) -} - func (p_ PortraitEffectsMatte) PortraitEffectsMatteByReplacingPortraitEffectsMatteWithPixelBufferError(pixelBuffer corevideo.PixelBufferRef, outError unsafe.Pointer) PortraitEffectsMatte { rv := objc.Call[PortraitEffectsMatte](p_, objc.Sel("portraitEffectsMatteByReplacingPortraitEffectsMatteWithPixelBuffer:error:"), pixelBuffer, outError) return rv @@ -79,6 +67,18 @@ func PortraitEffectsMatte_PortraitEffectsMatteByApplyingExifOrientation(exifOrie return instance } +func (pc _PortraitEffectsMatteClass) PortraitEffectsMatteFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) PortraitEffectsMatte { + rv := objc.Call[PortraitEffectsMatte](pc, objc.Sel("portraitEffectsMatteFromDictionaryRepresentation:error:"), imageSourceAuxDataInfoDictionary, outError) + return rv +} + +// Initializes a portrait effects matte instance from auxiliary image information in an image file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avportraiteffectsmatte/2976125-portraiteffectsmattefromdictiona?language=objc +func PortraitEffectsMatte_PortraitEffectsMatteFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) PortraitEffectsMatte { + return PortraitEffectsMatteClass.PortraitEffectsMatteFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary, outError) +} + func (pc _PortraitEffectsMatteClass) Alloc() PortraitEffectsMatte { rv := objc.Call[PortraitEffectsMatte](pc, objc.Sel("alloc")) return rv diff --git a/macos/avfoundation/protocols.gen.m b/macos/avfoundation/protocols.gen.m index dc2aeac0..127585c2 100644 --- a/macos/avfoundation/protocols.gen.m +++ b/macos/avfoundation/protocols.gen.m @@ -26,6 +26,5 @@ void importAVFoundationProtocols() { o = @protocol(AVPlayerPlaybackCoordinatorDelegate); o = @protocol(AVQueuedSampleBufferRendering); o = @protocol(AVVideoCompositing); - o = @protocol(AVVideoCompositionInstruction); o = @protocol(AVVideoCompositionValidationHandling); } diff --git a/macos/avfoundation/queue_player.gen.go b/macos/avfoundation/queue_player.gen.go index 4259f709..2e074939 100644 --- a/macos/avfoundation/queue_player.gen.go +++ b/macos/avfoundation/queue_player.gen.go @@ -19,13 +19,13 @@ type _QueuePlayerClass struct { // An interface definition for the [QueuePlayer] class. type IQueuePlayer interface { IPlayer - InsertItemAfterItem(item IPlayerItem, afterItem IPlayerItem) - InitWithItems(items []IPlayerItem) QueuePlayer - AdvanceToNextItem() - CanInsertItemAfterItem(item IPlayerItem, afterItem IPlayerItem) bool Items() []PlayerItem RemoveAllItems() RemoveItem(item IPlayerItem) + InitWithItems(items []IPlayerItem) QueuePlayer + CanInsertItemAfterItem(item IPlayerItem, afterItem IPlayerItem) bool + AdvanceToNextItem() + InsertItemAfterItem(item IPlayerItem, afterItem IPlayerItem) } // An object that plays a sequence of player items. [Full Topic] @@ -85,16 +85,18 @@ func QueuePlayer_PlayerWithPlayerItem(item IPlayerItem) QueuePlayer { return QueuePlayerClass.PlayerWithPlayerItem(item) } -func (qc _QueuePlayerClass) PlayerWithURL(URL foundation.IURL) QueuePlayer { - rv := objc.Call[QueuePlayer](qc, objc.Sel("playerWithURL:"), URL) +func (q_ QueuePlayer) InitWithURL(URL foundation.IURL) QueuePlayer { + rv := objc.Call[QueuePlayer](q_, objc.Sel("initWithURL:"), URL) return rv } -// Returns a new player to play a single audiovisual resource referenced by a given URL. [Full Topic] +// Creates a new player to play a single audiovisual resource referenced by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1538409-playerwithurl?language=objc -func QueuePlayer_PlayerWithURL(URL foundation.IURL) QueuePlayer { - return QueuePlayerClass.PlayerWithURL(URL) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1385706-initwithurl?language=objc +func NewQueuePlayerWithURL(URL foundation.IURL) QueuePlayer { + instance := QueuePlayerClass.Alloc().InitWithURL(URL) + instance.Autorelease() + return instance } func (q_ QueuePlayer) InitWithPlayerItem(item IPlayerItem) QueuePlayer { @@ -111,25 +113,38 @@ func NewQueuePlayerWithPlayerItem(item IPlayerItem) QueuePlayer { return instance } -func (q_ QueuePlayer) InitWithURL(URL foundation.IURL) QueuePlayer { - rv := objc.Call[QueuePlayer](q_, objc.Sel("initWithURL:"), URL) +func (qc _QueuePlayerClass) PlayerWithURL(URL foundation.IURL) QueuePlayer { + rv := objc.Call[QueuePlayer](qc, objc.Sel("playerWithURL:"), URL) return rv } -// Creates a new player to play a single audiovisual resource referenced by a given URL. [Full Topic] +// Returns a new player to play a single audiovisual resource referenced by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1385706-initwithurl?language=objc -func NewQueuePlayerWithURL(URL foundation.IURL) QueuePlayer { - instance := QueuePlayerClass.Alloc().InitWithURL(URL) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1538409-playerwithurl?language=objc +func QueuePlayer_PlayerWithURL(URL foundation.IURL) QueuePlayer { + return QueuePlayerClass.PlayerWithURL(URL) } -// Inserts a player item after another player item in the queue. [Full Topic] +// Returns an array of the currently enqueued items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1388543-insertitem?language=objc -func (q_ QueuePlayer) InsertItemAfterItem(item IPlayerItem, afterItem IPlayerItem) { - objc.Call[objc.Void](q_, objc.Sel("insertItem:afterItem:"), item, afterItem) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1390539-items?language=objc +func (q_ QueuePlayer) Items() []PlayerItem { + rv := objc.Call[[]PlayerItem](q_, objc.Sel("items")) + return rv +} + +// Removes all player items from the queue. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1385788-removeallitems?language=objc +func (q_ QueuePlayer) RemoveAllItems() { + objc.Call[objc.Void](q_, objc.Sel("removeAllItems")) +} + +// Removes a given player item from the queue. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1387400-removeitem?language=objc +func (q_ QueuePlayer) RemoveItem(item IPlayerItem) { + objc.Call[objc.Void](q_, objc.Sel("removeItem:"), item) } // Creates an object that plays a queue of items. [Full Topic] @@ -140,13 +155,6 @@ func (q_ QueuePlayer) InitWithItems(items []IPlayerItem) QueuePlayer { return rv } -// Ends playback of the current item and starts playback of the next item in the player’s queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1389318-advancetonextitem?language=objc -func (q_ QueuePlayer) AdvanceToNextItem() { - objc.Call[objc.Void](q_, objc.Sel("advanceToNextItem")) -} - // Returns a Boolean value that indicates whether you can insert a player item into the player’s queue. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1387289-caninsertitem?language=objc @@ -155,24 +163,16 @@ func (q_ QueuePlayer) CanInsertItemAfterItem(item IPlayerItem, afterItem IPlayer return rv } -// Returns an array of the currently enqueued items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1390539-items?language=objc -func (q_ QueuePlayer) Items() []PlayerItem { - rv := objc.Call[[]PlayerItem](q_, objc.Sel("items")) - return rv -} - -// Removes all player items from the queue. [Full Topic] +// Ends playback of the current item and starts playback of the next item in the player’s queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1385788-removeallitems?language=objc -func (q_ QueuePlayer) RemoveAllItems() { - objc.Call[objc.Void](q_, objc.Sel("removeAllItems")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1389318-advancetonextitem?language=objc +func (q_ QueuePlayer) AdvanceToNextItem() { + objc.Call[objc.Void](q_, objc.Sel("advanceToNextItem")) } -// Removes a given player item from the queue. [Full Topic] +// Inserts a player item after another player item in the queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1387400-removeitem?language=objc -func (q_ QueuePlayer) RemoveItem(item IPlayerItem) { - objc.Call[objc.Void](q_, objc.Sel("removeItem:"), item) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueueplayer/1388543-insertitem?language=objc +func (q_ QueuePlayer) InsertItemAfterItem(item IPlayerItem, afterItem IPlayerItem) { + objc.Call[objc.Void](q_, objc.Sel("insertItem:afterItem:"), item, afterItem) } diff --git a/macos/avfoundation/queued_sample_buffer_rendering_protocol.gen.go b/macos/avfoundation/queued_sample_buffer_rendering_protocol.gen.go index 41c375a2..1fc57c7d 100644 --- a/macos/avfoundation/queued_sample_buffer_rendering_protocol.gen.go +++ b/macos/avfoundation/queued_sample_buffer_rendering_protocol.gen.go @@ -13,24 +13,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering?language=objc type PQueuedSampleBufferRendering interface { // optional - Flush() - HasFlush() bool + StopRequestingMediaData() + HasStopRequestingMediaData() bool // optional RequestMediaDataWhenReadyOnQueueUsingBlock(queue dispatch.Queue, block func()) HasRequestMediaDataWhenReadyOnQueueUsingBlock() bool // optional - EnqueueSampleBuffer(sampleBuffer coremedia.SampleBufferRef) - HasEnqueueSampleBuffer() bool - - // optional - StopRequestingMediaData() - HasStopRequestingMediaData() bool + Flush() + HasFlush() bool // optional - HasSufficientMediaDataForReliablePlaybackStart() bool - HasHasSufficientMediaDataForReliablePlaybackStart() bool + EnqueueSampleBuffer(sampleBuffer coremedia.SampleBufferRef) + HasEnqueueSampleBuffer() bool // optional IsReadyForMoreMediaData() bool @@ -39,6 +35,10 @@ type PQueuedSampleBufferRendering interface { // optional Timebase() coremedia.TimebaseRef HasTimebase() bool + + // optional + HasSufficientMediaDataForReliablePlaybackStart() bool + HasHasSufficientMediaDataForReliablePlaybackStart() bool } // ensure impl type implements protocol interface @@ -49,15 +49,15 @@ type QueuedSampleBufferRenderingObject struct { objc.Object } -func (q_ QueuedSampleBufferRenderingObject) HasFlush() bool { - return q_.RespondsToSelector(objc.Sel("flush")) +func (q_ QueuedSampleBufferRenderingObject) HasStopRequestingMediaData() bool { + return q_.RespondsToSelector(objc.Sel("stopRequestingMediaData")) } -// Discards all pending enqueued sample buffers. [Full Topic] +// Cancels any current requestMediaDataWhenReadyOnQueue:usingBlock: call. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867639-flush?language=objc -func (q_ QueuedSampleBufferRenderingObject) Flush() { - objc.Call[objc.Void](q_, objc.Sel("flush")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867642-stoprequestingmediadata?language=objc +func (q_ QueuedSampleBufferRenderingObject) StopRequestingMediaData() { + objc.Call[objc.Void](q_, objc.Sel("stopRequestingMediaData")) } func (q_ QueuedSampleBufferRenderingObject) HasRequestMediaDataWhenReadyOnQueueUsingBlock() bool { @@ -71,6 +71,17 @@ func (q_ QueuedSampleBufferRenderingObject) RequestMediaDataWhenReadyOnQueueUsin objc.Call[objc.Void](q_, objc.Sel("requestMediaDataWhenReadyOnQueue:usingBlock:"), queue, block) } +func (q_ QueuedSampleBufferRenderingObject) HasFlush() bool { + return q_.RespondsToSelector(objc.Sel("flush")) +} + +// Discards all pending enqueued sample buffers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867639-flush?language=objc +func (q_ QueuedSampleBufferRenderingObject) Flush() { + objc.Call[objc.Void](q_, objc.Sel("flush")) +} + func (q_ QueuedSampleBufferRenderingObject) HasEnqueueSampleBuffer() bool { return q_.RespondsToSelector(objc.Sel("enqueueSampleBuffer:")) } @@ -82,29 +93,6 @@ func (q_ QueuedSampleBufferRenderingObject) EnqueueSampleBuffer(sampleBuffer cor objc.Call[objc.Void](q_, objc.Sel("enqueueSampleBuffer:"), sampleBuffer) } -func (q_ QueuedSampleBufferRenderingObject) HasStopRequestingMediaData() bool { - return q_.RespondsToSelector(objc.Sel("stopRequestingMediaData")) -} - -// Cancels any current [avfoundation/avqueuedsamplebufferrendering/requestmediadatawhenreadyonqueue] call. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867642-stoprequestingmediadata?language=objc -func (q_ QueuedSampleBufferRenderingObject) StopRequestingMediaData() { - objc.Call[objc.Void](q_, objc.Sel("stopRequestingMediaData")) -} - -func (q_ QueuedSampleBufferRenderingObject) HasHasSufficientMediaDataForReliablePlaybackStart() bool { - return q_.RespondsToSelector(objc.Sel("hasSufficientMediaDataForReliablePlaybackStart")) -} - -// A Boolean value that indicates whether the enqued media meets the required preroll level for reliable playback. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/3726153-hassufficientmediadataforreliabl?language=objc -func (q_ QueuedSampleBufferRenderingObject) HasSufficientMediaDataForReliablePlaybackStart() bool { - rv := objc.Call[bool](q_, objc.Sel("hasSufficientMediaDataForReliablePlaybackStart")) - return rv -} - func (q_ QueuedSampleBufferRenderingObject) HasIsReadyForMoreMediaData() bool { return q_.RespondsToSelector(objc.Sel("isReadyForMoreMediaData")) } @@ -128,3 +116,15 @@ func (q_ QueuedSampleBufferRenderingObject) Timebase() coremedia.TimebaseRef { rv := objc.Call[coremedia.TimebaseRef](q_, objc.Sel("timebase")) return rv } + +func (q_ QueuedSampleBufferRenderingObject) HasHasSufficientMediaDataForReliablePlaybackStart() bool { + return q_.RespondsToSelector(objc.Sel("hasSufficientMediaDataForReliablePlaybackStart")) +} + +// A Boolean value that indicates whether the enqued media meets the required preroll level for reliable playback. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/3726153-hassufficientmediadataforreliabl?language=objc +func (q_ QueuedSampleBufferRenderingObject) HasSufficientMediaDataForReliablePlaybackStart() bool { + rv := objc.Call[bool](q_, objc.Sel("hasSufficientMediaDataForReliablePlaybackStart")) + return rv +} diff --git a/macos/avfoundation/route_detector.gen.go b/macos/avfoundation/route_detector.gen.go index 749562fa..845ce2fc 100644 --- a/macos/avfoundation/route_detector.gen.go +++ b/macos/avfoundation/route_detector.gen.go @@ -18,9 +18,9 @@ type _RouteDetectorClass struct { // An interface definition for the [RouteDetector] class. type IRouteDetector interface { objc.IObject + MultipleRoutesDetected() bool IsRouteDetectionEnabled() bool SetRouteDetectionEnabled(value bool) - MultipleRoutesDetected() bool } // An object that detects available media playback routes. [Full Topic] @@ -56,6 +56,14 @@ func (r_ RouteDetector) Init() RouteDetector { return rv } +// A Boolean value that indicates whether the object detects more than one playback route. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avroutedetector/2915760-multipleroutesdetected?language=objc +func (r_ RouteDetector) MultipleRoutesDetected() bool { + rv := objc.Call[bool](r_, objc.Sel("multipleRoutesDetected")) + return rv +} + // A Boolean value that indicates whether route detection is in an enabled state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avroutedetector/2915762-routedetectionenabled?language=objc @@ -70,11 +78,3 @@ func (r_ RouteDetector) IsRouteDetectionEnabled() bool { func (r_ RouteDetector) SetRouteDetectionEnabled(value bool) { objc.Call[objc.Void](r_, objc.Sel("setRouteDetectionEnabled:"), value) } - -// A Boolean value that indicates whether the object detects more than one playback route. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avroutedetector/2915760-multipleroutesdetected?language=objc -func (r_ RouteDetector) MultipleRoutesDetected() bool { - rv := objc.Call[bool](r_, objc.Sel("multipleRoutesDetected")) - return rv -} diff --git a/macos/avfoundation/sample_buffer_audio_renderer.gen.go b/macos/avfoundation/sample_buffer_audio_renderer.gen.go index 39cd6db8..19dc1c0b 100644 --- a/macos/avfoundation/sample_buffer_audio_renderer.gen.go +++ b/macos/avfoundation/sample_buffer_audio_renderer.gen.go @@ -21,18 +21,18 @@ type _SampleBufferAudioRendererClass struct { type ISampleBufferAudioRenderer interface { objc.IObject FlushFromSourceTimeCompletionHandler(time coremedia.Time, completionHandler func(flushSucceeded bool)) + AllowedAudioSpatializationFormats() AudioSpatializationFormats + SetAllowedAudioSpatializationFormats(value AudioSpatializationFormats) Volume() float32 SetVolume(value float32) - Status() QueuedSampleBufferRenderingStatus - IsMuted() bool - SetMuted(value bool) Error() foundation.Error AudioTimePitchAlgorithm() AudioTimePitchAlgorithm SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) + IsMuted() bool + SetMuted(value bool) AudioOutputDeviceUniqueID() string SetAudioOutputDeviceUniqueID(value string) - AllowedAudioSpatializationFormats() AudioSpatializationFormats - SetAllowedAudioSpatializationFormats(value AudioSpatializationFormats) + Status() QueuedSampleBufferRenderingStatus } // An object used to decompress audio and play compressed or uncompressed audio. [Full Topic] @@ -75,6 +75,21 @@ func (s_ SampleBufferAudioRenderer) FlushFromSourceTimeCompletionHandler(time co objc.Call[objc.Void](s_, objc.Sel("flushFromSourceTime:completionHandler:"), time, completionHandler) } +// The source audio channel layouts the audio renderer supports for spatialization. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/3750310-allowedaudiospatializationformat?language=objc +func (s_ SampleBufferAudioRenderer) AllowedAudioSpatializationFormats() AudioSpatializationFormats { + rv := objc.Call[AudioSpatializationFormats](s_, objc.Sel("allowedAudioSpatializationFormats")) + return rv +} + +// The source audio channel layouts the audio renderer supports for spatialization. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/3750310-allowedaudiospatializationformat?language=objc +func (s_ SampleBufferAudioRenderer) SetAllowedAudioSpatializationFormats(value AudioSpatializationFormats) { + objc.Call[objc.Void](s_, objc.Sel("setAllowedAudioSpatializationFormats:"), value) +} + // The current audio volume for the audio renderer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866179-volume?language=objc @@ -90,29 +105,6 @@ func (s_ SampleBufferAudioRenderer) SetVolume(value float32) { objc.Call[objc.Void](s_, objc.Sel("setVolume:"), value) } -// The status of the audio renderer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866183-status?language=objc -func (s_ SampleBufferAudioRenderer) Status() QueuedSampleBufferRenderingStatus { - rv := objc.Call[QueuedSampleBufferRenderingStatus](s_, objc.Sel("status")) - return rv -} - -// A Boolean value that indicates whether audio for the renderer is in a muted state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866177-muted?language=objc -func (s_ SampleBufferAudioRenderer) IsMuted() bool { - rv := objc.Call[bool](s_, objc.Sel("isMuted")) - return rv -} - -// A Boolean value that indicates whether audio for the renderer is in a muted state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866177-muted?language=objc -func (s_ SampleBufferAudioRenderer) SetMuted(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setMuted:"), value) -} - // The error that caused the renderer to no longer render sample buffers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866178-error?language=objc @@ -136,6 +128,21 @@ func (s_ SampleBufferAudioRenderer) SetAudioTimePitchAlgorithm(value AudioTimePi objc.Call[objc.Void](s_, objc.Sel("setAudioTimePitchAlgorithm:"), value) } +// A Boolean value that indicates whether audio for the renderer is in a muted state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866177-muted?language=objc +func (s_ SampleBufferAudioRenderer) IsMuted() bool { + rv := objc.Call[bool](s_, objc.Sel("isMuted")) + return rv +} + +// A Boolean value that indicates whether audio for the renderer is in a muted state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866177-muted?language=objc +func (s_ SampleBufferAudioRenderer) SetMuted(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setMuted:"), value) +} + // The unique identifier of the output device used to play audio. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866182-audiooutputdeviceuniqueid?language=objc @@ -151,17 +158,10 @@ func (s_ SampleBufferAudioRenderer) SetAudioOutputDeviceUniqueID(value string) { objc.Call[objc.Void](s_, objc.Sel("setAudioOutputDeviceUniqueID:"), value) } -// The source audio channel layouts the audio renderer supports for spatialization. [Full Topic] +// The status of the audio renderer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/3750310-allowedaudiospatializationformat?language=objc -func (s_ SampleBufferAudioRenderer) AllowedAudioSpatializationFormats() AudioSpatializationFormats { - rv := objc.Call[AudioSpatializationFormats](s_, objc.Sel("allowedAudioSpatializationFormats")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866183-status?language=objc +func (s_ SampleBufferAudioRenderer) Status() QueuedSampleBufferRenderingStatus { + rv := objc.Call[QueuedSampleBufferRenderingStatus](s_, objc.Sel("status")) return rv } - -// The source audio channel layouts the audio renderer supports for spatialization. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/3750310-allowedaudiospatializationformat?language=objc -func (s_ SampleBufferAudioRenderer) SetAllowedAudioSpatializationFormats(value AudioSpatializationFormats) { - objc.Call[objc.Void](s_, objc.Sel("setAllowedAudioSpatializationFormats:"), value) -} diff --git a/macos/avfoundation/sample_buffer_display_layer.gen.go b/macos/avfoundation/sample_buffer_display_layer.gen.go index 52ce9cb9..3c29430c 100644 --- a/macos/avfoundation/sample_buffer_display_layer.gen.go +++ b/macos/avfoundation/sample_buffer_display_layer.gen.go @@ -20,13 +20,13 @@ type _SampleBufferDisplayLayerClass struct { // An interface definition for the [SampleBufferDisplayLayer] class. type ISampleBufferDisplayLayer interface { quartzcore.ILayer - PreventsCapture() bool - SetPreventsCapture(value bool) - ControlTimebase() coremedia.TimebaseRef - SetControlTimebase(value coremedia.TimebaseRef) - OutputObscuredDueToInsufficientExternalProtection() bool VideoGravity() LayerVideoGravity SetVideoGravity(value LayerVideoGravity) + OutputObscuredDueToInsufficientExternalProtection() bool + ControlTimebase() coremedia.TimebaseRef + SetControlTimebase(value coremedia.TimebaseRef) + PreventsCapture() bool + SetPreventsCapture(value bool) PreventsDisplaySleepDuringVideoPlayback() bool SetPreventsDisplaySleepDuringVideoPlayback(value bool) } @@ -64,6 +64,32 @@ func (s_ SampleBufferDisplayLayer) Init() SampleBufferDisplayLayer { return rv } +func (sc _SampleBufferDisplayLayerClass) Layer() SampleBufferDisplayLayer { + rv := objc.Call[SampleBufferDisplayLayer](sc, objc.Sel("layer")) + return rv +} + +// Creates and returns an instance of the layer object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func SampleBufferDisplayLayer_Layer() SampleBufferDisplayLayer { + return SampleBufferDisplayLayerClass.Layer() +} + +func (s_ SampleBufferDisplayLayer) InitWithLayer(layer objc.IObject) SampleBufferDisplayLayer { + rv := objc.Call[SampleBufferDisplayLayer](s_, objc.Sel("initWithLayer:"), layer) + return rv +} + +// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewSampleBufferDisplayLayerWithLayer(layer objc.IObject) SampleBufferDisplayLayer { + instance := SampleBufferDisplayLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + func (s_ SampleBufferDisplayLayer) ModelLayer() SampleBufferDisplayLayer { rv := objc.Call[SampleBufferDisplayLayer](s_, objc.Sel("modelLayer")) return rv @@ -92,47 +118,29 @@ func SampleBufferDisplayLayer_PresentationLayer() SampleBufferDisplayLayer { return instance } -func (s_ SampleBufferDisplayLayer) InitWithLayer(layer objc.IObject) SampleBufferDisplayLayer { - rv := objc.Call[SampleBufferDisplayLayer](s_, objc.Sel("initWithLayer:"), layer) - return rv -} - -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// A string defining how the video is displayed within the bounds rect of a sample buffer display layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewSampleBufferDisplayLayerWithLayer(layer objc.IObject) SampleBufferDisplayLayer { - instance := SampleBufferDisplayLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - -func (sc _SampleBufferDisplayLayerClass) Layer() SampleBufferDisplayLayer { - rv := objc.Call[SampleBufferDisplayLayer](sc, objc.Sel("layer")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/1387625-videogravity?language=objc +func (s_ SampleBufferDisplayLayer) VideoGravity() LayerVideoGravity { + rv := objc.Call[LayerVideoGravity](s_, objc.Sel("videoGravity")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// A string defining how the video is displayed within the bounds rect of a sample buffer display layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func SampleBufferDisplayLayer_Layer() SampleBufferDisplayLayer { - return SampleBufferDisplayLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/1387625-videogravity?language=objc +func (s_ SampleBufferDisplayLayer) SetVideoGravity(value LayerVideoGravity) { + objc.Call[objc.Void](s_, objc.Sel("setVideoGravity:"), value) } -// A Boolean value that indicates whether the layer protects against screen capture. [Full Topic] +// A Boolean value that indicates whether the system obscures decoded output due to insufficient external protection on the current device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/3081651-preventscapture?language=objc -func (s_ SampleBufferDisplayLayer) PreventsCapture() bool { - rv := objc.Call[bool](s_, objc.Sel("preventsCapture")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/3726154-outputobscuredduetoinsufficiente?language=objc +func (s_ SampleBufferDisplayLayer) OutputObscuredDueToInsufficientExternalProtection() bool { + rv := objc.Call[bool](s_, objc.Sel("outputObscuredDueToInsufficientExternalProtection")) return rv } -// A Boolean value that indicates whether the layer protects against screen capture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/3081651-preventscapture?language=objc -func (s_ SampleBufferDisplayLayer) SetPreventsCapture(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setPreventsCapture:"), value) -} - // The layer's control timebase, which governs how timestamps are interpreted. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/1390569-controltimebase?language=objc @@ -148,27 +156,19 @@ func (s_ SampleBufferDisplayLayer) SetControlTimebase(value coremedia.TimebaseRe objc.Call[objc.Void](s_, objc.Sel("setControlTimebase:"), value) } -// A Boolean value that indicates whether the system obscures decoded output due to insufficient external protection on the current device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/3726154-outputobscuredduetoinsufficiente?language=objc -func (s_ SampleBufferDisplayLayer) OutputObscuredDueToInsufficientExternalProtection() bool { - rv := objc.Call[bool](s_, objc.Sel("outputObscuredDueToInsufficientExternalProtection")) - return rv -} - -// A string defining how the video is displayed within the bounds rect of a sample buffer display layer. [Full Topic] +// A Boolean value that indicates whether the layer protects against screen capture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/1387625-videogravity?language=objc -func (s_ SampleBufferDisplayLayer) VideoGravity() LayerVideoGravity { - rv := objc.Call[LayerVideoGravity](s_, objc.Sel("videoGravity")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/3081651-preventscapture?language=objc +func (s_ SampleBufferDisplayLayer) PreventsCapture() bool { + rv := objc.Call[bool](s_, objc.Sel("preventsCapture")) return rv } -// A string defining how the video is displayed within the bounds rect of a sample buffer display layer. [Full Topic] +// A Boolean value that indicates whether the layer protects against screen capture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/1387625-videogravity?language=objc -func (s_ SampleBufferDisplayLayer) SetVideoGravity(value LayerVideoGravity) { - objc.Call[objc.Void](s_, objc.Sel("setVideoGravity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferdisplaylayer/3081651-preventscapture?language=objc +func (s_ SampleBufferDisplayLayer) SetPreventsCapture(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setPreventsCapture:"), value) } // A Boolean value that indicates whether the layer prevents the system from sleeping during video playback. [Full Topic] diff --git a/macos/avfoundation/sample_buffer_render_synchronizer.gen.go b/macos/avfoundation/sample_buffer_render_synchronizer.gen.go index 35e48b6b..cefa1804 100644 --- a/macos/avfoundation/sample_buffer_render_synchronizer.gen.go +++ b/macos/avfoundation/sample_buffer_render_synchronizer.gen.go @@ -21,21 +21,20 @@ type _SampleBufferRenderSynchronizerClass struct { // An interface definition for the [SampleBufferRenderSynchronizer] class. type ISampleBufferRenderSynchronizer interface { objc.IObject - AddRenderer(renderer PQueuedSampleBufferRendering) - AddRendererObject(rendererObject objc.IObject) + RemoveTimeObserver(observer objc.IObject) SetRateTimeAtHostTime(rate float32, time coremedia.Time, hostTime coremedia.Time) + AddBoundaryTimeObserverForTimesQueueUsingBlock(times []foundation.IValue, queue dispatch.Queue, block func()) objc.Object + AddPeriodicTimeObserverForIntervalQueueUsingBlock(interval coremedia.Time, queue dispatch.Queue, block func(time coremedia.Time)) objc.Object RemoveRendererAtTimeCompletionHandler(renderer PQueuedSampleBufferRendering, time coremedia.Time, completionHandler func(didRemoveRenderer bool)) RemoveRendererObjectAtTimeCompletionHandler(rendererObject objc.IObject, time coremedia.Time, completionHandler func(didRemoveRenderer bool)) - SetRateTime(rate float32, time coremedia.Time) - AddBoundaryTimeObserverForTimesQueueUsingBlock(times []foundation.IValue, queue dispatch.Queue, block func()) objc.Object + AddRenderer(renderer PQueuedSampleBufferRendering) + AddRendererObject(rendererObject objc.IObject) CurrentTime() coremedia.Time - AddPeriodicTimeObserverForIntervalQueueUsingBlock(interval coremedia.Time, queue dispatch.Queue, block func(time coremedia.Time)) objc.Object - RemoveTimeObserver(observer objc.IObject) - Timebase() coremedia.TimebaseRef DelaysRateChangeUntilHasSufficientMediaData() bool SetDelaysRateChangeUntilHasSufficientMediaData(value bool) Rate() float32 SetRate(value float32) + Timebase() coremedia.TimebaseRef Renderers() []QueuedSampleBufferRenderingObject } @@ -72,19 +71,11 @@ func (s_ SampleBufferRenderSynchronizer) Init() SampleBufferRenderSynchronizer { return rv } -// Adds a renderer to the list of renderers under the synchronizer's control. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867828-addrenderer?language=objc -func (s_ SampleBufferRenderSynchronizer) AddRenderer(renderer PQueuedSampleBufferRendering) { - po0 := objc.WrapAsProtocol("AVQueuedSampleBufferRendering", renderer) - objc.Call[objc.Void](s_, objc.Sel("addRenderer:"), po0) -} - -// Adds a renderer to the list of renderers under the synchronizer's control. [Full Topic] +// Cancels the specified time observer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867828-addrenderer?language=objc -func (s_ SampleBufferRenderSynchronizer) AddRendererObject(rendererObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("addRenderer:"), rendererObject) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867829-removetimeobserver?language=objc +func (s_ SampleBufferRenderSynchronizer) RemoveTimeObserver(observer objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("removeTimeObserver:"), observer) } // Sets the playback rate and the relationship between the current time and host time. [Full Topic] @@ -94,6 +85,22 @@ func (s_ SampleBufferRenderSynchronizer) SetRateTimeAtHostTime(rate float32, tim objc.Call[objc.Void](s_, objc.Sel("setRate:time:atHostTime:"), rate, time, hostTime) } +// Requests invocation of a block when specified times are traversed during normal rendering. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867824-addboundarytimeobserverfortimes?language=objc +func (s_ SampleBufferRenderSynchronizer) AddBoundaryTimeObserverForTimesQueueUsingBlock(times []foundation.IValue, queue dispatch.Queue, block func()) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("addBoundaryTimeObserverForTimes:queue:usingBlock:"), times, queue, block) + return rv +} + +// Requests invocation of a block during rendering at specified time intervals. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867825-addperiodictimeobserverforinterv?language=objc +func (s_ SampleBufferRenderSynchronizer) AddPeriodicTimeObserverForIntervalQueueUsingBlock(interval coremedia.Time, queue dispatch.Queue, block func(time coremedia.Time)) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("addPeriodicTimeObserverForInterval:queue:usingBlock:"), interval, queue, block) + return rv +} + // Removes a renderer from the synchronizer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867826-removerenderer?language=objc @@ -109,19 +116,19 @@ func (s_ SampleBufferRenderSynchronizer) RemoveRendererObjectAtTimeCompletionHan objc.Call[objc.Void](s_, objc.Sel("removeRenderer:atTime:completionHandler:"), rendererObject, time, completionHandler) } -// Sets the renderer’s time and rate. [Full Topic] +// Adds a renderer to the list of renderers under the synchronizer's control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867821-setrate?language=objc -func (s_ SampleBufferRenderSynchronizer) SetRateTime(rate float32, time coremedia.Time) { - objc.Call[objc.Void](s_, objc.Sel("setRate:time:"), rate, time) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867828-addrenderer?language=objc +func (s_ SampleBufferRenderSynchronizer) AddRenderer(renderer PQueuedSampleBufferRendering) { + po0 := objc.WrapAsProtocol("AVQueuedSampleBufferRendering", renderer) + objc.Call[objc.Void](s_, objc.Sel("addRenderer:"), po0) } -// Requests invocation of a block when specified times are traversed during normal rendering. [Full Topic] +// Adds a renderer to the list of renderers under the synchronizer's control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867824-addboundarytimeobserverfortimes?language=objc -func (s_ SampleBufferRenderSynchronizer) AddBoundaryTimeObserverForTimesQueueUsingBlock(times []foundation.IValue, queue dispatch.Queue, block func()) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("addBoundaryTimeObserverForTimes:queue:usingBlock:"), times, queue, block) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867828-addrenderer?language=objc +func (s_ SampleBufferRenderSynchronizer) AddRendererObject(rendererObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("addRenderer:"), rendererObject) } // Returns the current time of the synchronizer. [Full Topic] @@ -132,29 +139,6 @@ func (s_ SampleBufferRenderSynchronizer) CurrentTime() coremedia.Time { return rv } -// Requests invocation of a block during rendering at specified time intervals. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867825-addperiodictimeobserverforinterv?language=objc -func (s_ SampleBufferRenderSynchronizer) AddPeriodicTimeObserverForIntervalQueueUsingBlock(interval coremedia.Time, queue dispatch.Queue, block func(time coremedia.Time)) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("addPeriodicTimeObserverForInterval:queue:usingBlock:"), interval, queue, block) - return rv -} - -// Cancels the specified time observer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867829-removetimeobserver?language=objc -func (s_ SampleBufferRenderSynchronizer) RemoveTimeObserver(observer objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("removeTimeObserver:"), observer) -} - -// The synchronizer’s rendering timebase which determines how it interprets timestamps. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867822-timebase?language=objc -func (s_ SampleBufferRenderSynchronizer) Timebase() coremedia.TimebaseRef { - rv := objc.Call[coremedia.TimebaseRef](s_, objc.Sel("timebase")) - return rv -} - // A Boolean value that Indicates whether the playback should start immediately on rate change requests. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/3726156-delaysratechangeuntilhassufficie?language=objc @@ -185,6 +169,14 @@ func (s_ SampleBufferRenderSynchronizer) SetRate(value float32) { objc.Call[objc.Void](s_, objc.Sel("setRate:"), value) } +// The synchronizer’s rendering timebase which determines how it interprets timestamps. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867822-timebase?language=objc +func (s_ SampleBufferRenderSynchronizer) Timebase() coremedia.TimebaseRef { + rv := objc.Call[coremedia.TimebaseRef](s_, objc.Sel("timebase")) + return rv +} + // An array of queued sample buffer renderers currently attached to the synchronizer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867827-renderers?language=objc diff --git a/macos/avfoundation/sample_buffer_request.gen.go b/macos/avfoundation/sample_buffer_request.gen.go index fc25a9f1..51c9a8c4 100644 --- a/macos/avfoundation/sample_buffer_request.gen.go +++ b/macos/avfoundation/sample_buffer_request.gen.go @@ -19,19 +19,19 @@ type _SampleBufferRequestClass struct { // An interface definition for the [SampleBufferRequest] class. type ISampleBufferRequest interface { objc.IObject - PreferredMinSampleCount() int - SetPreferredMinSampleCount(value int) - Mode() SampleBufferRequestMode - SetMode(value SampleBufferRequestMode) - StartCursor() SampleCursor Direction() SampleBufferRequestDirection SetDirection(value SampleBufferRequestDirection) + LimitCursor() SampleCursor + SetLimitCursor(value ISampleCursor) + PreferredMinSampleCount() int + SetPreferredMinSampleCount(value int) MaxSampleCount() int SetMaxSampleCount(value int) OverrideTime() coremedia.Time SetOverrideTime(value coremedia.Time) - LimitCursor() SampleCursor - SetLimitCursor(value ISampleCursor) + Mode() SampleBufferRequestMode + SetMode(value SampleBufferRequestMode) + StartCursor() SampleCursor } // An object that describes a sample buffer creation request. [Full Topic] @@ -81,57 +81,49 @@ func (s_ SampleBufferRequest) Init() SampleBufferRequest { return rv } -// The preferred minimum number of samples to load. [Full Topic] +// The buffer sample direction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1386251-preferredminsamplecount?language=objc -func (s_ SampleBufferRequest) PreferredMinSampleCount() int { - rv := objc.Call[int](s_, objc.Sel("preferredMinSampleCount")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1386442-direction?language=objc +func (s_ SampleBufferRequest) Direction() SampleBufferRequestDirection { + rv := objc.Call[SampleBufferRequestDirection](s_, objc.Sel("direction")) return rv } -// The preferred minimum number of samples to load. [Full Topic] +// The buffer sample direction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1386251-preferredminsamplecount?language=objc -func (s_ SampleBufferRequest) SetPreferredMinSampleCount(value int) { - objc.Call[objc.Void](s_, objc.Sel("setPreferredMinSampleCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1386442-direction?language=objc +func (s_ SampleBufferRequest) SetDirection(value SampleBufferRequestDirection) { + objc.Call[objc.Void](s_, objc.Sel("setDirection:"), value) } -// The sample buffer request mode. [Full Topic] +// The limiting position for sample loading. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1387463-mode?language=objc -func (s_ SampleBufferRequest) Mode() SampleBufferRequestMode { - rv := objc.Call[SampleBufferRequestMode](s_, objc.Sel("mode")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1387466-limitcursor?language=objc +func (s_ SampleBufferRequest) LimitCursor() SampleCursor { + rv := objc.Call[SampleCursor](s_, objc.Sel("limitCursor")) return rv } -// The sample buffer request mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1387463-mode?language=objc -func (s_ SampleBufferRequest) SetMode(value SampleBufferRequestMode) { - objc.Call[objc.Void](s_, objc.Sel("setMode:"), value) -} - -// The starting cursor position. [Full Topic] +// The limiting position for sample loading. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1387398-startcursor?language=objc -func (s_ SampleBufferRequest) StartCursor() SampleCursor { - rv := objc.Call[SampleCursor](s_, objc.Sel("startCursor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1387466-limitcursor?language=objc +func (s_ SampleBufferRequest) SetLimitCursor(value ISampleCursor) { + objc.Call[objc.Void](s_, objc.Sel("setLimitCursor:"), value) } -// The buffer sample direction. [Full Topic] +// The preferred minimum number of samples to load. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1386442-direction?language=objc -func (s_ SampleBufferRequest) Direction() SampleBufferRequestDirection { - rv := objc.Call[SampleBufferRequestDirection](s_, objc.Sel("direction")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1386251-preferredminsamplecount?language=objc +func (s_ SampleBufferRequest) PreferredMinSampleCount() int { + rv := objc.Call[int](s_, objc.Sel("preferredMinSampleCount")) return rv } -// The buffer sample direction. [Full Topic] +// The preferred minimum number of samples to load. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1386442-direction?language=objc -func (s_ SampleBufferRequest) SetDirection(value SampleBufferRequestDirection) { - objc.Call[objc.Void](s_, objc.Sel("setDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1386251-preferredminsamplecount?language=objc +func (s_ SampleBufferRequest) SetPreferredMinSampleCount(value int) { + objc.Call[objc.Void](s_, objc.Sel("setPreferredMinSampleCount:"), value) } // The maximum number of samples to load. [Full Topic] @@ -164,17 +156,25 @@ func (s_ SampleBufferRequest) SetOverrideTime(value coremedia.Time) { objc.Call[objc.Void](s_, objc.Sel("setOverrideTime:"), value) } -// The limiting position for sample loading. [Full Topic] +// The sample buffer request mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1387466-limitcursor?language=objc -func (s_ SampleBufferRequest) LimitCursor() SampleCursor { - rv := objc.Call[SampleCursor](s_, objc.Sel("limitCursor")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1387463-mode?language=objc +func (s_ SampleBufferRequest) Mode() SampleBufferRequestMode { + rv := objc.Call[SampleBufferRequestMode](s_, objc.Sel("mode")) return rv } -// The limiting position for sample loading. [Full Topic] +// The sample buffer request mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1387466-limitcursor?language=objc -func (s_ SampleBufferRequest) SetLimitCursor(value ISampleCursor) { - objc.Call[objc.Void](s_, objc.Sel("setLimitCursor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1387463-mode?language=objc +func (s_ SampleBufferRequest) SetMode(value SampleBufferRequestMode) { + objc.Call[objc.Void](s_, objc.Sel("setMode:"), value) +} + +// The starting cursor position. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrequest/1387398-startcursor?language=objc +func (s_ SampleBufferRequest) StartCursor() SampleCursor { + rv := objc.Call[SampleCursor](s_, objc.Sel("startCursor")) + return rv } diff --git a/macos/avfoundation/sample_cursor.gen.go b/macos/avfoundation/sample_cursor.gen.go index efbe02cd..e2297af8 100644 --- a/macos/avfoundation/sample_cursor.gen.go +++ b/macos/avfoundation/sample_cursor.gen.go @@ -20,27 +20,27 @@ type _SampleCursorClass struct { // An interface definition for the [SampleCursor] class. type ISampleCursor interface { objc.IObject - ComparePositionInDecodeOrderWithPositionOfCursor(cursor ISampleCursor) foundation.ComparisonResult - SamplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor(cursor ISampleCursor) bool - CopyCurrentSampleFormatDescription() coremedia.FormatDescriptionRef - StepByPresentationTimeWasPinned(deltaPresentationTime coremedia.Time, outWasPinned *bool) coremedia.Time StepInPresentationOrderByCount(stepCount int64) int64 StepInDecodeOrderByCount(stepCount int64) int64 SamplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor(cursor ISampleCursor) bool StepByDecodeTimeWasPinned(deltaDecodeTime coremedia.Time, outWasPinned *bool) coremedia.Time + ComparePositionInDecodeOrderWithPositionOfCursor(cursor ISampleCursor) foundation.ComparisonResult + CopyCurrentSampleFormatDescription() coremedia.FormatDescriptionRef + StepByPresentationTimeWasPinned(deltaPresentationTime coremedia.Time, outWasPinned *bool) coremedia.Time + SamplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor(cursor ISampleCursor) bool + CurrentChunkStorageRange() SampleCursorStorageRange + DecodeTimeStamp() coremedia.Time + CurrentSampleSyncInfo() SampleCursorSyncInfo CurrentChunkInfo() SampleCursorChunkInfo - CurrentSampleIndexInChunk() int64 + CurrentSampleDuration() coremedia.Time SamplesRequiredForDecoderRefresh() int - CurrentChunkStorageRange() SampleCursorStorageRange - CurrentSampleDependencyInfo() SampleCursorDependencyInfo + CurrentSampleStorageRange() SampleCursorStorageRange PresentationTimeStamp() coremedia.Time - CurrentChunkStorageURL() foundation.URL + CurrentSampleDependencyInfo() SampleCursorDependencyInfo CurrentSampleDependencyAttachments() foundation.Dictionary - CurrentSampleDuration() coremedia.Time - CurrentSampleStorageRange() SampleCursorStorageRange - CurrentSampleSyncInfo() SampleCursorSyncInfo - DecodeTimeStamp() coremedia.Time + CurrentSampleIndexInChunk() int64 CurrentSampleAudioDependencyInfo() SampleCursorAudioDependencyInfo + CurrentChunkStorageURL() foundation.URL } // An object that provides information about the media sample at the cursor’s current position. [Full Topic] @@ -76,38 +76,6 @@ func (s_ SampleCursor) Init() SampleCursor { return rv } -// Compares the relative positions of two sample cursors and returns their relative positions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390608-comparepositionindecodeorderwith?language=objc -func (s_ SampleCursor) ComparePositionInDecodeOrderWithPositionOfCursor(cursor ISampleCursor) foundation.ComparisonResult { - rv := objc.Call[foundation.ComparisonResult](s_, objc.Sel("comparePositionInDecodeOrderWithPositionOfCursor:"), cursor) - return rv -} - -// Determines whether a sample earlier in decode order can have a presentation timestamp later than that of the specified sample cursor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1386558-sampleswithearlierdecodetimestam?language=objc -func (s_ SampleCursor) SamplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor(cursor ISampleCursor) bool { - rv := objc.Call[bool](s_, objc.Sel("samplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor:"), cursor) - return rv -} - -// Returns the format description of the sample at the cursor’s current position. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390703-copycurrentsampleformatdescripti?language=objc -func (s_ SampleCursor) CopyCurrentSampleFormatDescription() coremedia.FormatDescriptionRef { - rv := objc.Call[coremedia.FormatDescriptionRef](s_, objc.Sel("copyCurrentSampleFormatDescription")) - return rv -} - -// Moves the cursor by a given delta time on the presentation timeline. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1387680-stepbypresentationtime?language=objc -func (s_ SampleCursor) StepByPresentationTimeWasPinned(deltaPresentationTime coremedia.Time, outWasPinned *bool) coremedia.Time { - rv := objc.Call[coremedia.Time](s_, objc.Sel("stepByPresentationTime:wasPinned:"), deltaPresentationTime, outWasPinned) - return rv -} - // Moves the cursor a given number of samples in presentation order. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1388834-stepinpresentationorderbycount?language=objc @@ -140,67 +108,67 @@ func (s_ SampleCursor) StepByDecodeTimeWasPinned(deltaDecodeTime coremedia.Time, return rv } -// A value that provides information about the chunk of samples to which the current sample belongs. [Full Topic] +// Compares the relative positions of two sample cursors and returns their relative positions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1387481-currentchunkinfo?language=objc -func (s_ SampleCursor) CurrentChunkInfo() SampleCursorChunkInfo { - rv := objc.Call[SampleCursorChunkInfo](s_, objc.Sel("currentChunkInfo")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390608-comparepositionindecodeorderwith?language=objc +func (s_ SampleCursor) ComparePositionInDecodeOrderWithPositionOfCursor(cursor ISampleCursor) foundation.ComparisonResult { + rv := objc.Call[foundation.ComparisonResult](s_, objc.Sel("comparePositionInDecodeOrderWithPositionOfCursor:"), cursor) return rv } -// The index of the current sample within the chunk to which it belongs. [Full Topic] +// Returns the format description of the sample at the cursor’s current position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1387806-currentsampleindexinchunk?language=objc -func (s_ SampleCursor) CurrentSampleIndexInChunk() int64 { - rv := objc.Call[int64](s_, objc.Sel("currentSampleIndexInChunk")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390703-copycurrentsampleformatdescripti?language=objc +func (s_ SampleCursor) CopyCurrentSampleFormatDescription() coremedia.FormatDescriptionRef { + rv := objc.Call[coremedia.FormatDescriptionRef](s_, objc.Sel("copyCurrentSampleFormatDescription")) return rv } -// The number of samples prior to the current sample, in decode order, the decoder requires to achieve a coherent output at the current decode time. [Full Topic] +// Moves the cursor by a given delta time on the presentation timeline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1386446-samplesrequiredfordecoderrefresh?language=objc -func (s_ SampleCursor) SamplesRequiredForDecoderRefresh() int { - rv := objc.Call[int](s_, objc.Sel("samplesRequiredForDecoderRefresh")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1387680-stepbypresentationtime?language=objc +func (s_ SampleCursor) StepByPresentationTimeWasPinned(deltaPresentationTime coremedia.Time, outWasPinned *bool) coremedia.Time { + rv := objc.Call[coremedia.Time](s_, objc.Sel("stepByPresentationTime:wasPinned:"), deltaPresentationTime, outWasPinned) return rv } -// The sample range in the storage container to load together with the current sample as a chunk. [Full Topic] +// Determines whether a sample earlier in decode order can have a presentation timestamp later than that of the specified sample cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390385-currentchunkstoragerange?language=objc -func (s_ SampleCursor) CurrentChunkStorageRange() SampleCursorStorageRange { - rv := objc.Call[SampleCursorStorageRange](s_, objc.Sel("currentChunkStorageRange")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1386558-sampleswithearlierdecodetimestam?language=objc +func (s_ SampleCursor) SamplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor(cursor ISampleCursor) bool { + rv := objc.Call[bool](s_, objc.Sel("samplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor:"), cursor) return rv } -// The dependency information that describes relationships between a media sample and other media samples in the same sample sequence. [Full Topic] +// The sample range in the storage container to load together with the current sample as a chunk. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390766-currentsampledependencyinfo?language=objc -func (s_ SampleCursor) CurrentSampleDependencyInfo() SampleCursorDependencyInfo { - rv := objc.Call[SampleCursorDependencyInfo](s_, objc.Sel("currentSampleDependencyInfo")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390385-currentchunkstoragerange?language=objc +func (s_ SampleCursor) CurrentChunkStorageRange() SampleCursorStorageRange { + rv := objc.Call[SampleCursorStorageRange](s_, objc.Sel("currentChunkStorageRange")) return rv } -// The presentation timestamp of the sample at the current position of the cursor. [Full Topic] +// The decode timestamp of the sample at the current position of the cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1389740-presentationtimestamp?language=objc -func (s_ SampleCursor) PresentationTimeStamp() coremedia.Time { - rv := objc.Call[coremedia.Time](s_, objc.Sel("presentationTimeStamp")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1388412-decodetimestamp?language=objc +func (s_ SampleCursor) DecodeTimeStamp() coremedia.Time { + rv := objc.Call[coremedia.Time](s_, objc.Sel("decodeTimeStamp")) return rv } -// The URL of the storage container of the current sample and other samples to load in the same operation as a chunk. [Full Topic] +// The synchronization information for the current sample for consideration when resynchronizing a decoder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1388328-currentchunkstorageurl?language=objc -func (s_ SampleCursor) CurrentChunkStorageURL() foundation.URL { - rv := objc.Call[foundation.URL](s_, objc.Sel("currentChunkStorageURL")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390776-currentsamplesyncinfo?language=objc +func (s_ SampleCursor) CurrentSampleSyncInfo() SampleCursorSyncInfo { + rv := objc.Call[SampleCursorSyncInfo](s_, objc.Sel("currentSampleSyncInfo")) return rv } -// A dictionary of dependency-related sample buffer attachments. [Full Topic] +// A value that provides information about the chunk of samples to which the current sample belongs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/3752983-currentsampledependencyattachmen?language=objc -func (s_ SampleCursor) CurrentSampleDependencyAttachments() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](s_, objc.Sel("currentSampleDependencyAttachments")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1387481-currentchunkinfo?language=objc +func (s_ SampleCursor) CurrentChunkInfo() SampleCursorChunkInfo { + rv := objc.Call[SampleCursorChunkInfo](s_, objc.Sel("currentChunkInfo")) return rv } @@ -212,6 +180,14 @@ func (s_ SampleCursor) CurrentSampleDuration() coremedia.Time { return rv } +// The number of samples prior to the current sample, in decode order, the decoder requires to achieve a coherent output at the current decode time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1386446-samplesrequiredfordecoderrefresh?language=objc +func (s_ SampleCursor) SamplesRequiredForDecoderRefresh() int { + rv := objc.Call[int](s_, objc.Sel("samplesRequiredForDecoderRefresh")) + return rv +} + // The offset and length of the current sample in the current chunk storage URL. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1386359-currentsamplestoragerange?language=objc @@ -220,19 +196,35 @@ func (s_ SampleCursor) CurrentSampleStorageRange() SampleCursorStorageRange { return rv } -// The synchronization information for the current sample for consideration when resynchronizing a decoder. [Full Topic] +// The presentation timestamp of the sample at the current position of the cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390776-currentsamplesyncinfo?language=objc -func (s_ SampleCursor) CurrentSampleSyncInfo() SampleCursorSyncInfo { - rv := objc.Call[SampleCursorSyncInfo](s_, objc.Sel("currentSampleSyncInfo")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1389740-presentationtimestamp?language=objc +func (s_ SampleCursor) PresentationTimeStamp() coremedia.Time { + rv := objc.Call[coremedia.Time](s_, objc.Sel("presentationTimeStamp")) return rv } -// The decode timestamp of the sample at the current position of the cursor. [Full Topic] +// The dependency information that describes relationships between a media sample and other media samples in the same sample sequence. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1388412-decodetimestamp?language=objc -func (s_ SampleCursor) DecodeTimeStamp() coremedia.Time { - rv := objc.Call[coremedia.Time](s_, objc.Sel("decodeTimeStamp")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390766-currentsampledependencyinfo?language=objc +func (s_ SampleCursor) CurrentSampleDependencyInfo() SampleCursorDependencyInfo { + rv := objc.Call[SampleCursorDependencyInfo](s_, objc.Sel("currentSampleDependencyInfo")) + return rv +} + +// A dictionary of dependency-related sample buffer attachments. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/3752983-currentsampledependencyattachmen?language=objc +func (s_ SampleCursor) CurrentSampleDependencyAttachments() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](s_, objc.Sel("currentSampleDependencyAttachments")) + return rv +} + +// The index of the current sample within the chunk to which it belongs. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1387806-currentsampleindexinchunk?language=objc +func (s_ SampleCursor) CurrentSampleIndexInChunk() int64 { + rv := objc.Call[int64](s_, objc.Sel("currentSampleIndexInChunk")) return rv } @@ -243,3 +235,11 @@ func (s_ SampleCursor) CurrentSampleAudioDependencyInfo() SampleCursorAudioDepen rv := objc.Call[SampleCursorAudioDependencyInfo](s_, objc.Sel("currentSampleAudioDependencyInfo")) return rv } + +// The URL of the storage container of the current sample and other samples to load in the same operation as a chunk. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1388328-currentchunkstorageurl?language=objc +func (s_ SampleCursor) CurrentChunkStorageURL() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("currentChunkStorageURL")) + return rv +} diff --git a/macos/avfoundation/semantic_segmentation_matte.gen.go b/macos/avfoundation/semantic_segmentation_matte.gen.go index d4cdde86..b254f016 100644 --- a/macos/avfoundation/semantic_segmentation_matte.gen.go +++ b/macos/avfoundation/semantic_segmentation_matte.gen.go @@ -23,8 +23,8 @@ type _SemanticSegmentationMatteClass struct { type ISemanticSegmentationMatte interface { objc.IObject DictionaryRepresentationForAuxiliaryDataType(outAuxDataType unsafe.Pointer) foundation.Dictionary - PixelFormatType() uint MatteType() SemanticSegmentationMatteType + PixelFormatType() uint MattingImage() corevideo.PixelBufferRef } @@ -41,18 +41,6 @@ func SemanticSegmentationMatteFrom(ptr unsafe.Pointer) SemanticSegmentationMatte } } -func (sc _SemanticSegmentationMatteClass) SemanticSegmentationMatteFromImageSourceAuxiliaryDataTypeDictionaryRepresentationError(imageSourceAuxiliaryDataType corefoundation.StringRef, imageSourceAuxiliaryDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) SemanticSegmentationMatte { - rv := objc.Call[SemanticSegmentationMatte](sc, objc.Sel("semanticSegmentationMatteFromImageSourceAuxiliaryDataType:dictionaryRepresentation:error:"), imageSourceAuxiliaryDataType, imageSourceAuxiliaryDataInfoDictionary, outError) - return rv -} - -// Returns a new semantic segmentation matte instance from auxiliary image information in an image file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsemanticsegmentationmatte/3152124-semanticsegmentationmattefromima?language=objc -func SemanticSegmentationMatte_SemanticSegmentationMatteFromImageSourceAuxiliaryDataTypeDictionaryRepresentationError(imageSourceAuxiliaryDataType corefoundation.StringRef, imageSourceAuxiliaryDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) SemanticSegmentationMatte { - return SemanticSegmentationMatteClass.SemanticSegmentationMatteFromImageSourceAuxiliaryDataTypeDictionaryRepresentationError(imageSourceAuxiliaryDataType, imageSourceAuxiliaryDataInfoDictionary, outError) -} - func (s_ SemanticSegmentationMatte) SemanticSegmentationMatteByApplyingExifOrientation(exifOrientation imageio.ImagePropertyOrientation) SemanticSegmentationMatte { rv := objc.Call[SemanticSegmentationMatte](s_, objc.Sel("semanticSegmentationMatteByApplyingExifOrientation:"), exifOrientation) return rv @@ -81,6 +69,18 @@ func SemanticSegmentationMatte_SemanticSegmentationMatteByReplacingSemanticSegme return instance } +func (sc _SemanticSegmentationMatteClass) SemanticSegmentationMatteFromImageSourceAuxiliaryDataTypeDictionaryRepresentationError(imageSourceAuxiliaryDataType corefoundation.StringRef, imageSourceAuxiliaryDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) SemanticSegmentationMatte { + rv := objc.Call[SemanticSegmentationMatte](sc, objc.Sel("semanticSegmentationMatteFromImageSourceAuxiliaryDataType:dictionaryRepresentation:error:"), imageSourceAuxiliaryDataType, imageSourceAuxiliaryDataInfoDictionary, outError) + return rv +} + +// Returns a new semantic segmentation matte instance from auxiliary image information in an image file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsemanticsegmentationmatte/3152124-semanticsegmentationmattefromima?language=objc +func SemanticSegmentationMatte_SemanticSegmentationMatteFromImageSourceAuxiliaryDataTypeDictionaryRepresentationError(imageSourceAuxiliaryDataType corefoundation.StringRef, imageSourceAuxiliaryDataInfoDictionary foundation.Dictionary, outError unsafe.Pointer) SemanticSegmentationMatte { + return SemanticSegmentationMatteClass.SemanticSegmentationMatteFromImageSourceAuxiliaryDataTypeDictionaryRepresentationError(imageSourceAuxiliaryDataType, imageSourceAuxiliaryDataInfoDictionary, outError) +} + func (sc _SemanticSegmentationMatteClass) Alloc() SemanticSegmentationMatte { rv := objc.Call[SemanticSegmentationMatte](sc, objc.Sel("alloc")) return rv @@ -109,14 +109,6 @@ func (s_ SemanticSegmentationMatte) DictionaryRepresentationForAuxiliaryDataType return rv } -// The pixel format type for this object’s internal matting image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsemanticsegmentationmatte/3152121-pixelformattype?language=objc -func (s_ SemanticSegmentationMatte) PixelFormatType() uint { - rv := objc.Call[uint](s_, objc.Sel("pixelFormatType")) - return rv -} - // The semantic segmentation matte image type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsemanticsegmentationmatte/3152119-mattetype?language=objc @@ -125,6 +117,14 @@ func (s_ SemanticSegmentationMatte) MatteType() SemanticSegmentationMatteType { return rv } +// The pixel format type for this object’s internal matting image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsemanticsegmentationmatte/3152121-pixelformattype?language=objc +func (s_ SemanticSegmentationMatte) PixelFormatType() uint { + rv := objc.Call[uint](s_, objc.Sel("pixelFormatType")) + return rv +} + // The semantic segmentation matte’s internal image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsemanticsegmentationmatte/3152120-mattingimage?language=objc diff --git a/macos/avfoundation/synchronized_layer.gen.go b/macos/avfoundation/synchronized_layer.gen.go index b59596c4..1d134464 100644 --- a/macos/avfoundation/synchronized_layer.gen.go +++ b/macos/avfoundation/synchronized_layer.gen.go @@ -56,58 +56,58 @@ func (s_ SynchronizedLayer) Init() SynchronizedLayer { return rv } -func (s_ SynchronizedLayer) ModelLayer() SynchronizedLayer { - rv := objc.Call[SynchronizedLayer](s_, objc.Sel("modelLayer")) +func (sc _SynchronizedLayerClass) Layer() SynchronizedLayer { + rv := objc.Call[SynchronizedLayer](sc, objc.Sel("layer")) return rv } -// Returns the model layer object associated with the receiver, if any. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc -func SynchronizedLayer_ModelLayer() SynchronizedLayer { - instance := SynchronizedLayerClass.Alloc().ModelLayer() - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func SynchronizedLayer_Layer() SynchronizedLayer { + return SynchronizedLayerClass.Layer() } -func (s_ SynchronizedLayer) PresentationLayer() SynchronizedLayer { - rv := objc.Call[SynchronizedLayer](s_, objc.Sel("presentationLayer")) +func (s_ SynchronizedLayer) InitWithLayer(layer objc.IObject) SynchronizedLayer { + rv := objc.Call[SynchronizedLayer](s_, objc.Sel("initWithLayer:"), layer) return rv } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] +// Override to copy or initialize custom fields of the specified layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc -func SynchronizedLayer_PresentationLayer() SynchronizedLayer { - instance := SynchronizedLayerClass.Alloc().PresentationLayer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewSynchronizedLayerWithLayer(layer objc.IObject) SynchronizedLayer { + instance := SynchronizedLayerClass.Alloc().InitWithLayer(layer) instance.Autorelease() return instance } -func (s_ SynchronizedLayer) InitWithLayer(layer objc.IObject) SynchronizedLayer { - rv := objc.Call[SynchronizedLayer](s_, objc.Sel("initWithLayer:"), layer) +func (s_ SynchronizedLayer) ModelLayer() SynchronizedLayer { + rv := objc.Call[SynchronizedLayer](s_, objc.Sel("modelLayer")) return rv } -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewSynchronizedLayerWithLayer(layer objc.IObject) SynchronizedLayer { - instance := SynchronizedLayerClass.Alloc().InitWithLayer(layer) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc +func SynchronizedLayer_ModelLayer() SynchronizedLayer { + instance := SynchronizedLayerClass.Alloc().ModelLayer() instance.Autorelease() return instance } -func (sc _SynchronizedLayerClass) Layer() SynchronizedLayer { - rv := objc.Call[SynchronizedLayer](sc, objc.Sel("layer")) +func (s_ SynchronizedLayer) PresentationLayer() SynchronizedLayer { + rv := objc.Call[SynchronizedLayer](s_, objc.Sel("presentationLayer")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func SynchronizedLayer_Layer() SynchronizedLayer { - return SynchronizedLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc +func SynchronizedLayer_PresentationLayer() SynchronizedLayer { + instance := SynchronizedLayerClass.Alloc().PresentationLayer() + instance.Autorelease() + return instance } // Creates a new synchronized layer with timing synchronized with a given player item. [Full Topic] diff --git a/macos/avfoundation/text_style_rule.gen.go b/macos/avfoundation/text_style_rule.gen.go index a3cc753d..e9c5dd32 100644 --- a/macos/avfoundation/text_style_rule.gen.go +++ b/macos/avfoundation/text_style_rule.gen.go @@ -49,20 +49,6 @@ func NewTextStyleRuleWithTextMarkupAttributes(textMarkupAttributes map[string]ob return instance } -func (t_ TextStyleRule) InitWithTextMarkupAttributesTextSelector(textMarkupAttributes map[string]objc.IObject, textSelector string) TextStyleRule { - rv := objc.Call[TextStyleRule](t_, objc.Sel("initWithTextMarkupAttributes:textSelector:"), textMarkupAttributes, textSelector) - return rv -} - -// Creates a text style rule object with the specified style attributes and text range information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtextstylerule/1389854-initwithtextmarkupattributes?language=objc -func NewTextStyleRuleWithTextMarkupAttributesTextSelector(textMarkupAttributes map[string]objc.IObject, textSelector string) TextStyleRule { - instance := TextStyleRuleClass.Alloc().InitWithTextMarkupAttributesTextSelector(textMarkupAttributes, textSelector) - instance.Autorelease() - return instance -} - func (tc _TextStyleRuleClass) Alloc() TextStyleRule { rv := objc.Call[TextStyleRule](tc, objc.Sel("alloc")) return rv @@ -83,36 +69,6 @@ func (t_ TextStyleRule) Init() TextStyleRule { return rv } -// Creates an array of text style rule objects from the specified property-list object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtextstylerule/1387802-textstylerulesfrompropertylist?language=objc -func (tc _TextStyleRuleClass) TextStyleRulesFromPropertyList(plist objc.IObject) []TextStyleRule { - rv := objc.Call[[]TextStyleRule](tc, objc.Sel("textStyleRulesFromPropertyList:"), plist) - return rv -} - -// Creates an array of text style rule objects from the specified property-list object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtextstylerule/1387802-textstylerulesfrompropertylist?language=objc -func TextStyleRule_TextStyleRulesFromPropertyList(plist objc.IObject) []TextStyleRule { - return TextStyleRuleClass.TextStyleRulesFromPropertyList(plist) -} - -// Creates a new text style rule object using the specified style attributes and text range information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtextstylerule/1584361-textstylerulewithtextmarkupattri?language=objc -func (tc _TextStyleRuleClass) TextStyleRuleWithTextMarkupAttributesTextSelector(textMarkupAttributes map[string]objc.IObject, textSelector string) TextStyleRule { - rv := objc.Call[TextStyleRule](tc, objc.Sel("textStyleRuleWithTextMarkupAttributes:textSelector:"), textMarkupAttributes, textSelector) - return rv -} - -// Creates a new text style rule object using the specified style attributes and text range information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtextstylerule/1584361-textstylerulewithtextmarkupattri?language=objc -func TextStyleRule_TextStyleRuleWithTextMarkupAttributesTextSelector(textMarkupAttributes map[string]objc.IObject, textSelector string) TextStyleRule { - return TextStyleRuleClass.TextStyleRuleWithTextMarkupAttributesTextSelector(textMarkupAttributes, textSelector) -} - // Creates a new text style rule object using the style attributes in the specified dictionary. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtextstylerule/1584360-textstylerulewithtextmarkupattri?language=objc @@ -143,6 +99,21 @@ func TextStyleRule_PropertyListForTextStyleRules(textStyleRules []ITextStyleRule return TextStyleRuleClass.PropertyListForTextStyleRules(textStyleRules) } +// Creates an array of text style rule objects from the specified property-list object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtextstylerule/1387802-textstylerulesfrompropertylist?language=objc +func (tc _TextStyleRuleClass) TextStyleRulesFromPropertyList(plist objc.IObject) []TextStyleRule { + rv := objc.Call[[]TextStyleRule](tc, objc.Sel("textStyleRulesFromPropertyList:"), plist) + return rv +} + +// Creates an array of text style rule objects from the specified property-list object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtextstylerule/1387802-textstylerulesfrompropertylist?language=objc +func TextStyleRule_TextStyleRulesFromPropertyList(plist objc.IObject) []TextStyleRule { + return TextStyleRuleClass.TextStyleRulesFromPropertyList(plist) +} + // A string that identifies the text to which the attributes should apply. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtextstylerule/1389451-textselector?language=objc diff --git a/macos/avfoundation/timed_metadata_group.gen.go b/macos/avfoundation/timed_metadata_group.gen.go index e1a491b1..d7412ccd 100644 --- a/macos/avfoundation/timed_metadata_group.gen.go +++ b/macos/avfoundation/timed_metadata_group.gen.go @@ -36,30 +36,30 @@ func TimedMetadataGroupFrom(ptr unsafe.Pointer) TimedMetadataGroup { } } -func (t_ TimedMetadataGroup) InitWithItemsTimeRange(items []IMetadataItem, timeRange coremedia.TimeRange) TimedMetadataGroup { - rv := objc.Call[TimedMetadataGroup](t_, objc.Sel("initWithItems:timeRange:"), items, timeRange) +func (t_ TimedMetadataGroup) InitWithSampleBuffer(sampleBuffer coremedia.SampleBufferRef) TimedMetadataGroup { + rv := objc.Call[TimedMetadataGroup](t_, objc.Sel("initWithSampleBuffer:"), sampleBuffer) return rv } -// Creates a timed metadata group initialized with the given metadata items. [Full Topic] +// Creates a timed metadata group with a sample buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtimedmetadatagroup/1389632-initwithitems?language=objc -func NewTimedMetadataGroupWithItemsTimeRange(items []IMetadataItem, timeRange coremedia.TimeRange) TimedMetadataGroup { - instance := TimedMetadataGroupClass.Alloc().InitWithItemsTimeRange(items, timeRange) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtimedmetadatagroup/1387128-initwithsamplebuffer?language=objc +func NewTimedMetadataGroupWithSampleBuffer(sampleBuffer coremedia.SampleBufferRef) TimedMetadataGroup { + instance := TimedMetadataGroupClass.Alloc().InitWithSampleBuffer(sampleBuffer) instance.Autorelease() return instance } -func (t_ TimedMetadataGroup) InitWithSampleBuffer(sampleBuffer coremedia.SampleBufferRef) TimedMetadataGroup { - rv := objc.Call[TimedMetadataGroup](t_, objc.Sel("initWithSampleBuffer:"), sampleBuffer) +func (t_ TimedMetadataGroup) InitWithItemsTimeRange(items []IMetadataItem, timeRange coremedia.TimeRange) TimedMetadataGroup { + rv := objc.Call[TimedMetadataGroup](t_, objc.Sel("initWithItems:timeRange:"), items, timeRange) return rv } -// Creates a timed metadata group with a sample buffer. [Full Topic] +// Creates a timed metadata group initialized with the given metadata items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtimedmetadatagroup/1387128-initwithsamplebuffer?language=objc -func NewTimedMetadataGroupWithSampleBuffer(sampleBuffer coremedia.SampleBufferRef) TimedMetadataGroup { - instance := TimedMetadataGroupClass.Alloc().InitWithSampleBuffer(sampleBuffer) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avtimedmetadatagroup/1389632-initwithitems?language=objc +func NewTimedMetadataGroupWithItemsTimeRange(items []IMetadataItem, timeRange coremedia.TimeRange) TimedMetadataGroup { + instance := TimedMetadataGroupClass.Alloc().InitWithItemsTimeRange(items, timeRange) instance.Autorelease() return instance } diff --git a/macos/avfoundation/url_asset.gen.go b/macos/avfoundation/url_asset.gen.go index 76d940da..7f529c8a 100644 --- a/macos/avfoundation/url_asset.gen.go +++ b/macos/avfoundation/url_asset.gen.go @@ -20,10 +20,10 @@ type _URLAssetClass struct { type IURLAsset interface { IAsset FindCompatibleTrackForCompositionTrackCompletionHandler(compositionTrack ICompositionTrack, completionHandler func(arg0 AssetTrack, arg1 foundation.Error)) - AssetCache() AssetCache - MayRequireContentKeysForMediaDataProcessing() bool ResourceLoader() AssetResourceLoader + MayRequireContentKeysForMediaDataProcessing() bool URL() foundation.URL + AssetCache() AssetCache Variants() []AssetVariant } @@ -113,11 +113,19 @@ func URLAsset_AudiovisualTypes() []FileType { return URLAssetClass.AudiovisualTypes() } -// Loads an asset track from which you can insert any time range into the composition track. [Full Topic] +// Returns a Boolean value that indicates whether the asset is playable with the specified codecs and container type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/3746535-findcompatibletrackforcompositio?language=objc -func (u_ URLAsset) FindCompatibleTrackForCompositionTrackCompletionHandler(compositionTrack ICompositionTrack, completionHandler func(arg0 AssetTrack, arg1 foundation.Error)) { - objc.Call[objc.Void](u_, objc.Sel("findCompatibleTrackForCompositionTrack:completionHandler:"), compositionTrack, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1387142-isplayableextendedmimetype?language=objc +func (uc _URLAssetClass) IsPlayableExtendedMIMEType(extendedMIMEType string) bool { + rv := objc.Call[bool](uc, objc.Sel("isPlayableExtendedMIMEType:"), extendedMIMEType) + return rv +} + +// Returns a Boolean value that indicates whether the asset is playable with the specified codecs and container type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1387142-isplayableextendedmimetype?language=objc +func URLAsset_IsPlayableExtendedMIMEType(extendedMIMEType string) bool { + return URLAssetClass.IsPlayableExtendedMIMEType(extendedMIMEType) } // Returns an array of the MIME types the asset supports. [Full Topic] @@ -135,26 +143,18 @@ func URLAsset_AudiovisualMIMETypes() []string { return URLAssetClass.AudiovisualMIMETypes() } -// Returns a Boolean value that indicates whether the asset is playable with the specified codecs and container type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1387142-isplayableextendedmimetype?language=objc -func (uc _URLAssetClass) IsPlayableExtendedMIMEType(extendedMIMEType string) bool { - rv := objc.Call[bool](uc, objc.Sel("isPlayableExtendedMIMEType:"), extendedMIMEType) - return rv -} - -// Returns a Boolean value that indicates whether the asset is playable with the specified codecs and container type. [Full Topic] +// Loads an asset track from which you can insert any time range into the composition track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1387142-isplayableextendedmimetype?language=objc -func URLAsset_IsPlayableExtendedMIMEType(extendedMIMEType string) bool { - return URLAssetClass.IsPlayableExtendedMIMEType(extendedMIMEType) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/3746535-findcompatibletrackforcompositio?language=objc +func (u_ URLAsset) FindCompatibleTrackForCompositionTrackCompletionHandler(compositionTrack ICompositionTrack, completionHandler func(arg0 AssetTrack, arg1 foundation.Error)) { + objc.Call[objc.Void](u_, objc.Sel("findCompatibleTrackForCompositionTrack:completionHandler:"), compositionTrack, completionHandler) } -// The asset’s associated asset cache, if it exists. [Full Topic] +// The resource loader for the asset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1823714-assetcache?language=objc -func (u_ URLAsset) AssetCache() AssetCache { - rv := objc.Call[AssetCache](u_, objc.Sel("assetCache")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1389118-resourceloader?language=objc +func (u_ URLAsset) ResourceLoader() AssetResourceLoader { + rv := objc.Call[AssetResourceLoader](u_, objc.Sel("resourceLoader")) return rv } @@ -166,14 +166,6 @@ func (u_ URLAsset) MayRequireContentKeysForMediaDataProcessing() bool { return rv } -// The resource loader for the asset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1389118-resourceloader?language=objc -func (u_ URLAsset) ResourceLoader() AssetResourceLoader { - rv := objc.Call[AssetResourceLoader](u_, objc.Sel("resourceLoader")) - return rv -} - // A URL to the asset’s media. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1388127-url?language=objc @@ -182,6 +174,14 @@ func (u_ URLAsset) URL() foundation.URL { return rv } +// The asset’s associated asset cache, if it exists. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1823714-assetcache?language=objc +func (u_ URLAsset) AssetCache() AssetCache { + rv := objc.Call[AssetCache](u_, objc.Sel("assetCache")) + return rv +} + // An array of variants that an asset contains. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/3746536-variants?language=objc diff --git a/macos/avfoundation/video_compositing_protocol.gen.go b/macos/avfoundation/video_compositing_protocol.gen.go index cd48242b..c14377bd 100644 --- a/macos/avfoundation/video_compositing_protocol.gen.go +++ b/macos/avfoundation/video_compositing_protocol.gen.go @@ -11,13 +11,17 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing?language=objc type PVideoCompositing interface { // optional - PrerollForRenderingUsingHint(renderHint VideoCompositionRenderHint) - HasPrerollForRenderingUsingHint() bool + RenderContextChanged(newRenderContext VideoCompositionRenderContext) + HasRenderContextChanged() bool // optional AnticipateRenderingUsingHint(renderHint VideoCompositionRenderHint) HasAnticipateRenderingUsingHint() bool + // optional + PrerollForRenderingUsingHint(renderHint VideoCompositionRenderHint) + HasPrerollForRenderingUsingHint() bool + // optional CancelAllPendingVideoCompositionRequests() HasCancelAllPendingVideoCompositionRequests() bool @@ -27,28 +31,24 @@ type PVideoCompositing interface { HasStartVideoCompositionRequest() bool // optional - RenderContextChanged(newRenderContext VideoCompositionRenderContext) - HasRenderContextChanged() bool + SupportsHDRSourceFrames() bool + HasSupportsHDRSourceFrames() bool // optional SupportsWideColorSourceFrames() bool HasSupportsWideColorSourceFrames() bool - // optional - SourcePixelBufferAttributes() map[string]objc.Object - HasSourcePixelBufferAttributes() bool - // optional RequiredPixelBufferAttributesForRenderContext() map[string]objc.Object HasRequiredPixelBufferAttributesForRenderContext() bool - // optional - SupportsHDRSourceFrames() bool - HasSupportsHDRSourceFrames() bool - // optional CanConformColorOfSourceFrames() bool HasCanConformColorOfSourceFrames() bool + + // optional + SourcePixelBufferAttributes() map[string]objc.Object + HasSourcePixelBufferAttributes() bool } // ensure impl type implements protocol interface @@ -59,15 +59,15 @@ type VideoCompositingObject struct { objc.Object } -func (v_ VideoCompositingObject) HasPrerollForRenderingUsingHint() bool { - return v_.RespondsToSelector(objc.Sel("prerollForRenderingUsingHint:")) +func (v_ VideoCompositingObject) HasRenderContextChanged() bool { + return v_.RespondsToSelector(objc.Sel("renderContextChanged:")) } -// Tells a custom video compositor to perform any work in the prerolling phase. [Full Topic] +// Tells the compositor that the composition changed render contexts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/3227886-prerollforrenderingusinghint?language=objc -func (v_ VideoCompositingObject) PrerollForRenderingUsingHint(renderHint VideoCompositionRenderHint) { - objc.Call[objc.Void](v_, objc.Sel("prerollForRenderingUsingHint:"), renderHint) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/1390363-rendercontextchanged?language=objc +func (v_ VideoCompositingObject) RenderContextChanged(newRenderContext VideoCompositionRenderContext) { + objc.Call[objc.Void](v_, objc.Sel("renderContextChanged:"), newRenderContext) } func (v_ VideoCompositingObject) HasAnticipateRenderingUsingHint() bool { @@ -81,6 +81,17 @@ func (v_ VideoCompositingObject) AnticipateRenderingUsingHint(renderHint VideoCo objc.Call[objc.Void](v_, objc.Sel("anticipateRenderingUsingHint:"), renderHint) } +func (v_ VideoCompositingObject) HasPrerollForRenderingUsingHint() bool { + return v_.RespondsToSelector(objc.Sel("prerollForRenderingUsingHint:")) +} + +// Tells a custom video compositor to perform any work in the prerolling phase. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/3227886-prerollforrenderingusinghint?language=objc +func (v_ VideoCompositingObject) PrerollForRenderingUsingHint(renderHint VideoCompositionRenderHint) { + objc.Call[objc.Void](v_, objc.Sel("prerollForRenderingUsingHint:"), renderHint) +} + func (v_ VideoCompositingObject) HasCancelAllPendingVideoCompositionRequests() bool { return v_.RespondsToSelector(objc.Sel("cancelAllPendingVideoCompositionRequests")) } @@ -103,15 +114,16 @@ func (v_ VideoCompositingObject) StartVideoCompositionRequest(asyncVideoComposit objc.Call[objc.Void](v_, objc.Sel("startVideoCompositionRequest:"), asyncVideoCompositionRequest) } -func (v_ VideoCompositingObject) HasRenderContextChanged() bool { - return v_.RespondsToSelector(objc.Sel("renderContextChanged:")) +func (v_ VideoCompositingObject) HasSupportsHDRSourceFrames() bool { + return v_.RespondsToSelector(objc.Sel("supportsHDRSourceFrames")) } -// Tells the compositor that the composition changed render contexts. [Full Topic] +// A Boolean value that indicates whether the compositor handles source frames that contain high dynamic range (HDR) properties. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/1390363-rendercontextchanged?language=objc -func (v_ VideoCompositingObject) RenderContextChanged(newRenderContext VideoCompositionRenderContext) { - objc.Call[objc.Void](v_, objc.Sel("renderContextChanged:"), newRenderContext) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/3626026-supportshdrsourceframes?language=objc +func (v_ VideoCompositingObject) SupportsHDRSourceFrames() bool { + rv := objc.Call[bool](v_, objc.Sel("supportsHDRSourceFrames")) + return rv } func (v_ VideoCompositingObject) HasSupportsWideColorSourceFrames() bool { @@ -126,18 +138,6 @@ func (v_ VideoCompositingObject) SupportsWideColorSourceFrames() bool { return rv } -func (v_ VideoCompositingObject) HasSourcePixelBufferAttributes() bool { - return v_.RespondsToSelector(objc.Sel("sourcePixelBufferAttributes")) -} - -// The pixel buffer attributes that the compositor accepts for source frames. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/1388610-sourcepixelbufferattributes?language=objc -func (v_ VideoCompositingObject) SourcePixelBufferAttributes() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](v_, objc.Sel("sourcePixelBufferAttributes")) - return rv -} - func (v_ VideoCompositingObject) HasRequiredPixelBufferAttributesForRenderContext() bool { return v_.RespondsToSelector(objc.Sel("requiredPixelBufferAttributesForRenderContext")) } @@ -150,18 +150,6 @@ func (v_ VideoCompositingObject) RequiredPixelBufferAttributesForRenderContext() return rv } -func (v_ VideoCompositingObject) HasSupportsHDRSourceFrames() bool { - return v_.RespondsToSelector(objc.Sel("supportsHDRSourceFrames")) -} - -// A Boolean value that indicates whether the compositor handles source frames that contain high dynamic range (HDR) properties. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/3626026-supportshdrsourceframes?language=objc -func (v_ VideoCompositingObject) SupportsHDRSourceFrames() bool { - rv := objc.Call[bool](v_, objc.Sel("supportsHDRSourceFrames")) - return rv -} - func (v_ VideoCompositingObject) HasCanConformColorOfSourceFrames() bool { return v_.RespondsToSelector(objc.Sel("canConformColorOfSourceFrames")) } @@ -173,3 +161,15 @@ func (v_ VideoCompositingObject) CanConformColorOfSourceFrames() bool { rv := objc.Call[bool](v_, objc.Sel("canConformColorOfSourceFrames")) return rv } + +func (v_ VideoCompositingObject) HasSourcePixelBufferAttributes() bool { + return v_.RespondsToSelector(objc.Sel("sourcePixelBufferAttributes")) +} + +// The pixel buffer attributes that the compositor accepts for source frames. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/1388610-sourcepixelbufferattributes?language=objc +func (v_ VideoCompositingObject) SourcePixelBufferAttributes() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](v_, objc.Sel("sourcePixelBufferAttributes")) + return rv +} diff --git a/macos/avfoundation/video_composition.gen.go b/macos/avfoundation/video_composition.gen.go index 80698e51..940beea4 100644 --- a/macos/avfoundation/video_composition.gen.go +++ b/macos/avfoundation/video_composition.gen.go @@ -21,17 +21,17 @@ type _VideoCompositionClass struct { // An interface definition for the [VideoComposition] class. type IVideoComposition interface { objc.IObject + ColorPrimaries() string + ColorYCbCrMatrix() string + CustomVideoCompositorClass() objc.Class FrameDuration() coremedia.Time + Instructions() []objc.Object + SourceSampleDataTrackIDs() []foundation.Number AnimationTool() VideoCompositionCoreAnimationTool + ColorTransferFunction() string SourceTrackIDForFrameTiming() objc.Object RenderSize() coregraphics.Size - ColorYCbCrMatrix() string - ColorPrimaries() string - Instructions() []objc.Object RenderScale() float32 - CustomVideoCompositorClass() objc.Class - ColorTransferFunction() string - SourceSampleDataTrackIDs() []foundation.Number } // An object that describes how to compose video frames at particular points in time. [Full Topic] @@ -67,35 +67,11 @@ func (v_ VideoComposition) Init() VideoComposition { return rv } -// A time interval for which the video composition should render composed video frames. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1388013-frameduration?language=objc -func (v_ VideoComposition) FrameDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](v_, objc.Sel("frameDuration")) - return rv -} - -// A video composition tool to use with Core Animation in offline rendering. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1387030-animationtool?language=objc -func (v_ VideoComposition) AnimationTool() VideoCompositionCoreAnimationTool { - rv := objc.Call[VideoCompositionCoreAnimationTool](v_, objc.Sel("animationTool")) - return rv -} - -// An identifier of the source track from which the video composition derives frame timing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/2873798-sourcetrackidforframetiming?language=objc -func (v_ VideoComposition) SourceTrackIDForFrameTiming() objc.Object { - rv := objc.Call[objc.Object](v_, objc.Sel("sourceTrackIDForFrameTiming")) - return rv -} - -// The size at which the video composition should render. [Full Topic] +// The color primaries used for video composition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1388705-rendersize?language=objc -func (v_ VideoComposition) RenderSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](v_, objc.Sel("renderSize")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1643235-colorprimaries?language=objc +func (v_ VideoComposition) ColorPrimaries() string { + rv := objc.Call[string](v_, objc.Sel("colorPrimaries")) return rv } @@ -107,11 +83,19 @@ func (v_ VideoComposition) ColorYCbCrMatrix() string { return rv } -// The color primaries used for video composition. [Full Topic] +// A custom compositor class to use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1643235-colorprimaries?language=objc -func (v_ VideoComposition) ColorPrimaries() string { - rv := objc.Call[string](v_, objc.Sel("colorPrimaries")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1389622-customvideocompositorclass?language=objc +func (v_ VideoComposition) CustomVideoCompositorClass() objc.Class { + rv := objc.Call[objc.Class](v_, objc.Sel("customVideoCompositorClass")) + return rv +} + +// A time interval for which the video composition should render composed video frames. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1388013-frameduration?language=objc +func (v_ VideoComposition) FrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](v_, objc.Sel("frameDuration")) return rv } @@ -123,19 +107,19 @@ func (v_ VideoComposition) Instructions() []objc.Object { return rv } -// The scale at which the video composition should render. [Full Topic] +// The identifiers of source sample data tracks in the composition that the compositor requires to compose frames. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1615786-renderscale?language=objc -func (v_ VideoComposition) RenderScale() float32 { - rv := objc.Call[float32](v_, objc.Sel("renderScale")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/3750318-sourcesampledatatrackids?language=objc +func (v_ VideoComposition) SourceSampleDataTrackIDs() []foundation.Number { + rv := objc.Call[[]foundation.Number](v_, objc.Sel("sourceSampleDataTrackIDs")) return rv } -// A custom compositor class to use. [Full Topic] +// A video composition tool to use with Core Animation in offline rendering. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1389622-customvideocompositorclass?language=objc -func (v_ VideoComposition) CustomVideoCompositorClass() objc.Class { - rv := objc.Call[objc.Class](v_, objc.Sel("customVideoCompositorClass")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1387030-animationtool?language=objc +func (v_ VideoComposition) AnimationTool() VideoCompositionCoreAnimationTool { + rv := objc.Call[VideoCompositionCoreAnimationTool](v_, objc.Sel("animationTool")) return rv } @@ -147,10 +131,26 @@ func (v_ VideoComposition) ColorTransferFunction() string { return rv } -// The identifiers of source sample data tracks in the composition that the compositor requires to compose frames. [Full Topic] +// An identifier of the source track from which the video composition derives frame timing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/3750318-sourcesampledatatrackids?language=objc -func (v_ VideoComposition) SourceSampleDataTrackIDs() []foundation.Number { - rv := objc.Call[[]foundation.Number](v_, objc.Sel("sourceSampleDataTrackIDs")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/2873798-sourcetrackidforframetiming?language=objc +func (v_ VideoComposition) SourceTrackIDForFrameTiming() objc.Object { + rv := objc.Call[objc.Object](v_, objc.Sel("sourceTrackIDForFrameTiming")) + return rv +} + +// The size at which the video composition should render. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1388705-rendersize?language=objc +func (v_ VideoComposition) RenderSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](v_, objc.Sel("renderSize")) + return rv +} + +// The scale at which the video composition should render. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1615786-renderscale?language=objc +func (v_ VideoComposition) RenderScale() float32 { + rv := objc.Call[float32](v_, objc.Sel("renderScale")) return rv } diff --git a/macos/avfoundation/video_composition_core_animation_tool.gen.go b/macos/avfoundation/video_composition_core_animation_tool.gen.go index d8f1b442..d695c441 100644 --- a/macos/avfoundation/video_composition_core_animation_tool.gen.go +++ b/macos/avfoundation/video_composition_core_animation_tool.gen.go @@ -34,18 +34,6 @@ func VideoCompositionCoreAnimationToolFrom(ptr unsafe.Pointer) VideoCompositionC } } -func (vc _VideoCompositionCoreAnimationToolClass) VideoCompositionCoreAnimationToolWithPostProcessingAsVideoLayersInLayer(videoLayers []quartzcore.ILayer, animationLayer quartzcore.ILayer) VideoCompositionCoreAnimationTool { - rv := objc.Call[VideoCompositionCoreAnimationTool](vc, objc.Sel("videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayers:inLayer:"), videoLayers, animationLayer) - return rv -} - -// Composes the composited video frames with the Core Animation layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioncoreanimationtool/1389778-videocompositioncoreanimationtoo?language=objc -func VideoCompositionCoreAnimationTool_VideoCompositionCoreAnimationToolWithPostProcessingAsVideoLayersInLayer(videoLayers []quartzcore.ILayer, animationLayer quartzcore.ILayer) VideoCompositionCoreAnimationTool { - return VideoCompositionCoreAnimationToolClass.VideoCompositionCoreAnimationToolWithPostProcessingAsVideoLayersInLayer(videoLayers, animationLayer) -} - func (vc _VideoCompositionCoreAnimationToolClass) VideoCompositionCoreAnimationToolWithPostProcessingAsVideoLayerInLayer(videoLayer quartzcore.ILayer, animationLayer quartzcore.ILayer) VideoCompositionCoreAnimationTool { rv := objc.Call[VideoCompositionCoreAnimationTool](vc, objc.Sel("videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer:"), videoLayer, animationLayer) return rv @@ -58,18 +46,6 @@ func VideoCompositionCoreAnimationTool_VideoCompositionCoreAnimationToolWithPost return VideoCompositionCoreAnimationToolClass.VideoCompositionCoreAnimationToolWithPostProcessingAsVideoLayerInLayer(videoLayer, animationLayer) } -func (vc _VideoCompositionCoreAnimationToolClass) VideoCompositionCoreAnimationToolWithAdditionalLayerAsTrackID(layer quartzcore.ILayer, trackID objc.IObject) VideoCompositionCoreAnimationTool { - rv := objc.Call[VideoCompositionCoreAnimationTool](vc, objc.Sel("videoCompositionCoreAnimationToolWithAdditionalLayer:asTrackID:"), layer, trackID) - return rv -} - -// Adds a Core Animation layer to the video composition. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioncoreanimationtool/1388345-videocompositioncoreanimationtoo?language=objc -func VideoCompositionCoreAnimationTool_VideoCompositionCoreAnimationToolWithAdditionalLayerAsTrackID(layer quartzcore.ILayer, trackID objc.IObject) VideoCompositionCoreAnimationTool { - return VideoCompositionCoreAnimationToolClass.VideoCompositionCoreAnimationToolWithAdditionalLayerAsTrackID(layer, trackID) -} - func (vc _VideoCompositionCoreAnimationToolClass) Alloc() VideoCompositionCoreAnimationTool { rv := objc.Call[VideoCompositionCoreAnimationTool](vc, objc.Sel("alloc")) return rv diff --git a/macos/avfoundation/video_composition_instruction.gen.go b/macos/avfoundation/video_composition_instruction.gen.go index bf766562..a1e10166 100644 --- a/macos/avfoundation/video_composition_instruction.gen.go +++ b/macos/avfoundation/video_composition_instruction.gen.go @@ -21,14 +21,14 @@ type _VideoCompositionInstructionClass struct { // An interface definition for the [VideoCompositionInstruction] class. type IVideoCompositionInstruction interface { objc.IObject - EnablePostProcessing() bool - TimeRange() coremedia.TimeRange - ContainsTweening() bool - PassthroughTrackID() objc.Object - RequiredSourceTrackIDs() []foundation.Value RequiredSourceSampleDataTrackIDs() []foundation.Number LayerInstructions() []VideoCompositionLayerInstruction + RequiredSourceTrackIDs() []foundation.Value + PassthroughTrackID() objc.Object BackgroundColor() coregraphics.ColorRef + TimeRange() coremedia.TimeRange + EnablePostProcessing() bool + ContainsTweening() bool } // An operation that a compositor performs. [Full Topic] @@ -64,66 +64,66 @@ func (v_ VideoCompositionInstruction) Init() VideoCompositionInstruction { return rv } -// A Boolean value that indicates whether the composition enables post-processing. [Full Topic] +// The identifiers of source sample data tracks that the compositor requires to compose frames for the instruction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1386216-enablepostprocessing?language=objc -func (v_ VideoCompositionInstruction) EnablePostProcessing() bool { - rv := objc.Call[bool](v_, objc.Sel("enablePostProcessing")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/3750319-requiredsourcesampledatatrackids?language=objc +func (v_ VideoCompositionInstruction) RequiredSourceSampleDataTrackIDs() []foundation.Number { + rv := objc.Call[[]foundation.Number](v_, objc.Sel("requiredSourceSampleDataTrackIDs")) return rv } -// The time range during which the instruction is effective. [Full Topic] +// Instructions that specify how to layer and compose video frames from source tracks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1389873-timerange?language=objc -func (v_ VideoCompositionInstruction) TimeRange() coremedia.TimeRange { - rv := objc.Call[coremedia.TimeRange](v_, objc.Sel("timeRange")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1389689-layerinstructions?language=objc +func (v_ VideoCompositionInstruction) LayerInstructions() []VideoCompositionLayerInstruction { + rv := objc.Call[[]VideoCompositionLayerInstruction](v_, objc.Sel("layerInstructions")) return rv } -// A Boolean value that indicates whether the composition contains tweening. [Full Topic] +// The identifiers of source video tracks that the compositor requires to compose frames for the instruction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1389376-containstweening?language=objc -func (v_ VideoCompositionInstruction) ContainsTweening() bool { - rv := objc.Call[bool](v_, objc.Sel("containsTweening")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1390913-requiredsourcetrackids?language=objc +func (v_ VideoCompositionInstruction) RequiredSourceTrackIDs() []foundation.Value { + rv := objc.Call[[]foundation.Value](v_, objc.Sel("requiredSourceTrackIDs")) return rv } -// An identifier of a source track to pass through without compositing. [Full Topic] +// The track identifier from an instruction source frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1389919-passthroughtrackid?language=objc +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1387657-passthroughtrackid?language=objc func (v_ VideoCompositionInstruction) PassthroughTrackID() objc.Object { rv := objc.Call[objc.Object](v_, objc.Sel("passthroughTrackID")) return rv } -// The identifiers of the video tracks the instruction requires to compose frames. [Full Topic] +// The background color of the composition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1388661-requiredsourcetrackids?language=objc -func (v_ VideoCompositionInstruction) RequiredSourceTrackIDs() []foundation.Value { - rv := objc.Call[[]foundation.Value](v_, objc.Sel("requiredSourceTrackIDs")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1389384-backgroundcolor?language=objc +func (v_ VideoCompositionInstruction) BackgroundColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](v_, objc.Sel("backgroundColor")) return rv } -// The identifiers of the sample data tracks the instruction requires to compose frames. [Full Topic] +// The time range to which the instruction applies. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/3750315-requiredsourcesampledatatrackids?language=objc -func (v_ VideoCompositionInstruction) RequiredSourceSampleDataTrackIDs() []foundation.Number { - rv := objc.Call[[]foundation.Number](v_, objc.Sel("requiredSourceSampleDataTrackIDs")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1387857-timerange?language=objc +func (v_ VideoCompositionInstruction) TimeRange() coremedia.TimeRange { + rv := objc.Call[coremedia.TimeRange](v_, objc.Sel("timeRange")) return rv } -// Instructions that specify how to layer and compose video frames from source tracks. [Full Topic] +// A Boolean value that indicates whether the instruction requires post processing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1389689-layerinstructions?language=objc -func (v_ VideoCompositionInstruction) LayerInstructions() []VideoCompositionLayerInstruction { - rv := objc.Call[[]VideoCompositionLayerInstruction](v_, objc.Sel("layerInstructions")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1388697-enablepostprocessing?language=objc +func (v_ VideoCompositionInstruction) EnablePostProcessing() bool { + rv := objc.Call[bool](v_, objc.Sel("enablePostProcessing")) return rv } -// The background color of the composition. [Full Topic] +// A Boolean value that indicates whether the composition contains tweening. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1389384-backgroundcolor?language=objc -func (v_ VideoCompositionInstruction) BackgroundColor() coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](v_, objc.Sel("backgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1389376-containstweening?language=objc +func (v_ VideoCompositionInstruction) ContainsTweening() bool { + rv := objc.Call[bool](v_, objc.Sel("containsTweening")) return rv } diff --git a/macos/avfoundation/video_composition_instruction_protocol.gen.go b/macos/avfoundation/video_composition_instruction_protocol.gen.go deleted file mode 100644 index 5526d834..00000000 --- a/macos/avfoundation/video_composition_instruction_protocol.gen.go +++ /dev/null @@ -1,151 +0,0 @@ -// Code generated by DarwinKit. DO NOT EDIT. - -package avfoundation - -import ( - "github.com/progrium/darwinkit/macos/coregraphics" - "github.com/progrium/darwinkit/macos/coremedia" - "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/objc" -) - -// A protocol that defines the interface for a video composition instruction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction?language=objc -type PVideoCompositionInstruction interface { - // optional - EnablePostProcessing() bool - HasEnablePostProcessing() bool - - // optional - TimeRange() coremedia.TimeRange - HasTimeRange() bool - - // optional - ContainsTweening() bool - HasContainsTweening() bool - - // optional - PassthroughTrackID() objc.Object - HasPassthroughTrackID() bool - - // optional - RequiredSourceTrackIDs() []foundation.Value - HasRequiredSourceTrackIDs() bool - - // optional - RequiredSourceSampleDataTrackIDs() []foundation.Number - HasRequiredSourceSampleDataTrackIDs() bool - - // optional - LayerInstructions() []VideoCompositionLayerInstruction - HasLayerInstructions() bool - - // optional - BackgroundColor() coregraphics.ColorRef - HasBackgroundColor() bool -} - -// ensure impl type implements protocol interface -var _ PVideoCompositionInstruction = (*VideoCompositionInstructionObject)(nil) - -// A concrete type for the [PVideoCompositionInstruction] protocol. -type VideoCompositionInstructionObject struct { - objc.Object -} - -func (v_ VideoCompositionInstructionObject) HasEnablePostProcessing() bool { - return v_.RespondsToSelector(objc.Sel("enablePostProcessing")) -} - -// A Boolean value that indicates whether the composition enables post-processing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1386216-enablepostprocessing?language=objc -func (v_ VideoCompositionInstructionObject) EnablePostProcessing() bool { - rv := objc.Call[bool](v_, objc.Sel("enablePostProcessing")) - return rv -} - -func (v_ VideoCompositionInstructionObject) HasTimeRange() bool { - return v_.RespondsToSelector(objc.Sel("timeRange")) -} - -// The time range during which the instruction is effective. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1389873-timerange?language=objc -func (v_ VideoCompositionInstructionObject) TimeRange() coremedia.TimeRange { - rv := objc.Call[coremedia.TimeRange](v_, objc.Sel("timeRange")) - return rv -} - -func (v_ VideoCompositionInstructionObject) HasContainsTweening() bool { - return v_.RespondsToSelector(objc.Sel("containsTweening")) -} - -// A Boolean value that indicates whether the composition contains tweening. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1389376-containstweening?language=objc -func (v_ VideoCompositionInstructionObject) ContainsTweening() bool { - rv := objc.Call[bool](v_, objc.Sel("containsTweening")) - return rv -} - -func (v_ VideoCompositionInstructionObject) HasPassthroughTrackID() bool { - return v_.RespondsToSelector(objc.Sel("passthroughTrackID")) -} - -// An identifier of a source track to pass through without compositing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1389919-passthroughtrackid?language=objc -func (v_ VideoCompositionInstructionObject) PassthroughTrackID() objc.Object { - rv := objc.Call[objc.Object](v_, objc.Sel("passthroughTrackID")) - return rv -} - -func (v_ VideoCompositionInstructionObject) HasRequiredSourceTrackIDs() bool { - return v_.RespondsToSelector(objc.Sel("requiredSourceTrackIDs")) -} - -// The identifiers of the video tracks the instruction requires to compose frames. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1388661-requiredsourcetrackids?language=objc -func (v_ VideoCompositionInstructionObject) RequiredSourceTrackIDs() []foundation.Value { - rv := objc.Call[[]foundation.Value](v_, objc.Sel("requiredSourceTrackIDs")) - return rv -} - -func (v_ VideoCompositionInstructionObject) HasRequiredSourceSampleDataTrackIDs() bool { - return v_.RespondsToSelector(objc.Sel("requiredSourceSampleDataTrackIDs")) -} - -// The identifiers of the sample data tracks the instruction requires to compose frames. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/3750315-requiredsourcesampledatatrackids?language=objc -func (v_ VideoCompositionInstructionObject) RequiredSourceSampleDataTrackIDs() []foundation.Number { - rv := objc.Call[[]foundation.Number](v_, objc.Sel("requiredSourceSampleDataTrackIDs")) - return rv -} - -func (v_ VideoCompositionInstructionObject) HasLayerInstructions() bool { - return v_.RespondsToSelector(objc.Sel("layerInstructions")) -} - -// Instructions that specify how to layer and compose video frames from source tracks. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1389689-layerinstructions?language=objc -func (v_ VideoCompositionInstructionObject) LayerInstructions() []VideoCompositionLayerInstruction { - rv := objc.Call[[]VideoCompositionLayerInstruction](v_, objc.Sel("layerInstructions")) - return rv -} - -func (v_ VideoCompositionInstructionObject) HasBackgroundColor() bool { - return v_.RespondsToSelector(objc.Sel("backgroundColor")) -} - -// The background color of the composition. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1389384-backgroundcolor?language=objc -func (v_ VideoCompositionInstructionObject) BackgroundColor() coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](v_, objc.Sel("backgroundColor")) - return rv -} diff --git a/macos/avfoundation/video_composition_layer_instruction.gen.go b/macos/avfoundation/video_composition_layer_instruction.gen.go index 70142c44..c4a6410d 100644 --- a/macos/avfoundation/video_composition_layer_instruction.gen.go +++ b/macos/avfoundation/video_composition_layer_instruction.gen.go @@ -21,8 +21,8 @@ type _VideoCompositionLayerInstructionClass struct { type IVideoCompositionLayerInstruction interface { objc.IObject GetCropRectangleRampForTimeStartCropRectangleEndCropRectangleTimeRange(time coremedia.Time, startCropRectangle *coregraphics.Rect, endCropRectangle *coregraphics.Rect, timeRange *coremedia.TimeRange) bool - GetTransformRampForTimeStartTransformEndTransformTimeRange(time coremedia.Time, startTransform *coregraphics.AffineTransform, endTransform *coregraphics.AffineTransform, timeRange *coremedia.TimeRange) bool GetOpacityRampForTimeStartOpacityEndOpacityTimeRange(time coremedia.Time, startOpacity *float32, endOpacity *float32, timeRange *coremedia.TimeRange) bool + GetTransformRampForTimeStartTransformEndTransformTimeRange(time coremedia.Time, startTransform *coregraphics.AffineTransform, endTransform *coregraphics.AffineTransform, timeRange *coremedia.TimeRange) bool TrackID() objc.Object } @@ -67,14 +67,6 @@ func (v_ VideoCompositionLayerInstruction) GetCropRectangleRampForTimeStartCropR return rv } -// Obtains the transform ramp that includes a specified time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionlayerinstruction/1387257-gettransformrampfortime?language=objc -func (v_ VideoCompositionLayerInstruction) GetTransformRampForTimeStartTransformEndTransformTimeRange(time coremedia.Time, startTransform *coregraphics.AffineTransform, endTransform *coregraphics.AffineTransform, timeRange *coremedia.TimeRange) bool { - rv := objc.Call[bool](v_, objc.Sel("getTransformRampForTime:startTransform:endTransform:timeRange:"), time, startTransform, endTransform, timeRange) - return rv -} - // Obtains the opacity ramp that includes a specified time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionlayerinstruction/1388471-getopacityrampfortime?language=objc @@ -83,6 +75,14 @@ func (v_ VideoCompositionLayerInstruction) GetOpacityRampForTimeStartOpacityEndO return rv } +// Obtains the transform ramp that includes a specified time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionlayerinstruction/1387257-gettransformrampfortime?language=objc +func (v_ VideoCompositionLayerInstruction) GetTransformRampForTimeStartTransformEndTransformTimeRange(time coremedia.Time, startTransform *coregraphics.AffineTransform, endTransform *coregraphics.AffineTransform, timeRange *coremedia.TimeRange) bool { + rv := objc.Call[bool](v_, objc.Sel("getTransformRampForTime:startTransform:endTransform:timeRange:"), time, startTransform, endTransform, timeRange) + return rv +} + // The track identifier of the source track to which the compositor will apply the instruction. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionlayerinstruction/1390240-trackid?language=objc diff --git a/macos/avfoundation/video_composition_render_context.gen.go b/macos/avfoundation/video_composition_render_context.gen.go index 663d5f7f..4e1ad953 100644 --- a/macos/avfoundation/video_composition_render_context.gen.go +++ b/macos/avfoundation/video_composition_render_context.gen.go @@ -21,13 +21,13 @@ type _VideoCompositionRenderContextClass struct { type IVideoCompositionRenderContext interface { objc.IObject NewPixelBuffer() corevideo.PixelBufferRef - RenderScale() float32 HighQualityRendering() bool + VideoComposition() VideoComposition + RenderTransform() coregraphics.AffineTransform PixelAspectRatio() PixelAspectRatio EdgeWidths() EdgeWidths - RenderTransform() coregraphics.AffineTransform + RenderScale() float32 Size() coregraphics.Size - VideoComposition() VideoComposition } // An object that defines the context in which custom compositors render pixel buffers. [Full Topic] @@ -71,14 +71,6 @@ func (v_ VideoCompositionRenderContext) NewPixelBuffer() corevideo.PixelBufferRe return rv } -// A scaling ratio that is applied when rendering frames. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1387408-renderscale?language=objc -func (v_ VideoCompositionRenderContext) RenderScale() float32 { - rv := objc.Call[float32](v_, objc.Sel("renderScale")) - return rv -} - // The rendering quality to use. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1388758-highqualityrendering?language=objc @@ -87,6 +79,22 @@ func (v_ VideoCompositionRenderContext) HighQualityRendering() bool { return rv } +// The video composition being rendered. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1390647-videocomposition?language=objc +func (v_ VideoCompositionRenderContext) VideoComposition() VideoComposition { + rv := objc.Call[VideoComposition](v_, objc.Sel("videoComposition")) + return rv +} + +// A transform to apply to the source image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1389831-rendertransform?language=objc +func (v_ VideoCompositionRenderContext) RenderTransform() coregraphics.AffineTransform { + rv := objc.Call[coregraphics.AffineTransform](v_, objc.Sel("renderTransform")) + return rv +} + // The pixel aspect ratio for rendered frames. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1389800-pixelaspectratio?language=objc @@ -103,11 +111,11 @@ func (v_ VideoCompositionRenderContext) EdgeWidths() EdgeWidths { return rv } -// A transform to apply to the source image. [Full Topic] +// A scaling ratio that is applied when rendering frames. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1389831-rendertransform?language=objc -func (v_ VideoCompositionRenderContext) RenderTransform() coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](v_, objc.Sel("renderTransform")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1387408-renderscale?language=objc +func (v_ VideoCompositionRenderContext) RenderScale() float32 { + rv := objc.Call[float32](v_, objc.Sel("renderScale")) return rv } @@ -118,11 +126,3 @@ func (v_ VideoCompositionRenderContext) Size() coregraphics.Size { rv := objc.Call[coregraphics.Size](v_, objc.Sel("size")) return rv } - -// The video composition being rendered. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1390647-videocomposition?language=objc -func (v_ VideoCompositionRenderContext) VideoComposition() VideoComposition { - rv := objc.Call[VideoComposition](v_, objc.Sel("videoComposition")) - return rv -} diff --git a/macos/avfoundation/video_composition_validation_handling_protocol.gen.go b/macos/avfoundation/video_composition_validation_handling_protocol.gen.go index 358fe2d8..15eec50d 100644 --- a/macos/avfoundation/video_composition_validation_handling_protocol.gen.go +++ b/macos/avfoundation/video_composition_validation_handling_protocol.gen.go @@ -11,18 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionvalidationhandling?language=objc type PVideoCompositionValidationHandling interface { - // optional - VideoCompositionShouldContinueValidatingAfterFindingInvalidValueForKey(videoComposition VideoComposition, key string) bool - HasVideoCompositionShouldContinueValidatingAfterFindingInvalidValueForKey() bool - - // optional - VideoCompositionShouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction(videoComposition VideoComposition, videoCompositionInstruction objc.Object) bool - HasVideoCompositionShouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction() bool - - // optional - VideoCompositionShouldContinueValidatingAfterFindingInvalidTrackIDInInstructionLayerInstructionAsset(videoComposition VideoComposition, videoCompositionInstruction objc.Object, layerInstruction VideoCompositionLayerInstruction, asset Asset) bool - HasVideoCompositionShouldContinueValidatingAfterFindingInvalidTrackIDInInstructionLayerInstructionAsset() bool - // optional VideoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange(videoComposition VideoComposition, timeRange coremedia.TimeRange) bool HasVideoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange() bool @@ -36,42 +24,6 @@ type VideoCompositionValidationHandlingObject struct { objc.Object } -func (v_ VideoCompositionValidationHandlingObject) HasVideoCompositionShouldContinueValidatingAfterFindingInvalidValueForKey() bool { - return v_.RespondsToSelector(objc.Sel("videoComposition:shouldContinueValidatingAfterFindingInvalidValueForKey:")) -} - -// Reports that a key that has an invalid value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionvalidationhandling/1389404-videocomposition?language=objc -func (v_ VideoCompositionValidationHandlingObject) VideoCompositionShouldContinueValidatingAfterFindingInvalidValueForKey(videoComposition VideoComposition, key string) bool { - rv := objc.Call[bool](v_, objc.Sel("videoComposition:shouldContinueValidatingAfterFindingInvalidValueForKey:"), videoComposition, key) - return rv -} - -func (v_ VideoCompositionValidationHandlingObject) HasVideoCompositionShouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction() bool { - return v_.RespondsToSelector(objc.Sel("videoComposition:shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction:")) -} - -// Reports a video composition instruction with a time range that is invalid. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionvalidationhandling/1390721-videocomposition?language=objc -func (v_ VideoCompositionValidationHandlingObject) VideoCompositionShouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction(videoComposition VideoComposition, videoCompositionInstruction objc.Object) bool { - rv := objc.Call[bool](v_, objc.Sel("videoComposition:shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction:"), videoComposition, videoCompositionInstruction) - return rv -} - -func (v_ VideoCompositionValidationHandlingObject) HasVideoCompositionShouldContinueValidatingAfterFindingInvalidTrackIDInInstructionLayerInstructionAsset() bool { - return v_.RespondsToSelector(objc.Sel("videoComposition:shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction:layerInstruction:asset:")) -} - -// Reports a video composition layer instruction that does not correspond to the track ID used for the composition’s animation or to a track of the asset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionvalidationhandling/1388452-videocomposition?language=objc -func (v_ VideoCompositionValidationHandlingObject) VideoCompositionShouldContinueValidatingAfterFindingInvalidTrackIDInInstructionLayerInstructionAsset(videoComposition VideoComposition, videoCompositionInstruction objc.Object, layerInstruction VideoCompositionLayerInstruction, asset Asset) bool { - rv := objc.Call[bool](v_, objc.Sel("videoComposition:shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction:layerInstruction:asset:"), videoComposition, videoCompositionInstruction, layerInstruction, asset) - return rv -} - func (v_ VideoCompositionValidationHandlingObject) HasVideoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange() bool { return v_.RespondsToSelector(objc.Sel("videoComposition:shouldContinueValidatingAfterFindingEmptyTimeRange:")) } diff --git a/macos/avkit/capture_view.gen.go b/macos/avkit/capture_view.gen.go index eb86201b..4d7c7ce3 100644 --- a/macos/avkit/capture_view.gen.go +++ b/macos/avkit/capture_view.gen.go @@ -22,15 +22,15 @@ type _CaptureViewClass struct { type ICaptureView interface { appkit.IView SetSessionShowVideoPreviewShowAudioPreview(session avfoundation.ICaptureSession, showVideoPreview bool, showAudioPreview bool) - FileOutput() avfoundation.CaptureFileOutput - ControlsStyle() CaptureViewControlsStyle - SetControlsStyle(value CaptureViewControlsStyle) - Session() avfoundation.CaptureSession VideoGravity() avfoundation.LayerVideoGravity SetVideoGravity(value avfoundation.LayerVideoGravity) + Session() avfoundation.CaptureSession + FileOutput() avfoundation.CaptureFileOutput Delegate() CaptureViewDelegateObject SetDelegate(value PCaptureViewDelegate) SetDelegateObject(valueObject objc.IObject) + ControlsStyle() CaptureViewControlsStyle + SetControlsStyle(value CaptureViewControlsStyle) } // A view that displays standard user interface controls for capturing media data. [Full Topic] @@ -87,27 +87,19 @@ func (c_ CaptureView) SetSessionShowVideoPreviewShowAudioPreview(session avfound objc.Call[objc.Void](c_, objc.Sel("setSession:showVideoPreview:showAudioPreview:"), session, showVideoPreview, showAudioPreview) } -// The capture file output used to record media data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519149-fileoutput?language=objc -func (c_ CaptureView) FileOutput() avfoundation.CaptureFileOutput { - rv := objc.Call[avfoundation.CaptureFileOutput](c_, objc.Sel("fileOutput")) - return rv -} - -// The style of the capture controls presented by the view. [Full Topic] +// A string value that defines how the capture view displays video within its bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519147-controlsstyle?language=objc -func (c_ CaptureView) ControlsStyle() CaptureViewControlsStyle { - rv := objc.Call[CaptureViewControlsStyle](c_, objc.Sel("controlsStyle")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519134-videogravity?language=objc +func (c_ CaptureView) VideoGravity() avfoundation.LayerVideoGravity { + rv := objc.Call[avfoundation.LayerVideoGravity](c_, objc.Sel("videoGravity")) return rv } -// The style of the capture controls presented by the view. [Full Topic] +// A string value that defines how the capture view displays video within its bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519147-controlsstyle?language=objc -func (c_ CaptureView) SetControlsStyle(value CaptureViewControlsStyle) { - objc.Call[objc.Void](c_, objc.Sel("setControlsStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519134-videogravity?language=objc +func (c_ CaptureView) SetVideoGravity(value avfoundation.LayerVideoGravity) { + objc.Call[objc.Void](c_, objc.Sel("setVideoGravity:"), value) } // The view’s associated capture session. [Full Topic] @@ -118,21 +110,14 @@ func (c_ CaptureView) Session() avfoundation.CaptureSession { return rv } -// A string value that defines how the capture view displays video within its bounds. [Full Topic] +// The capture file output used to record media data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519134-videogravity?language=objc -func (c_ CaptureView) VideoGravity() avfoundation.LayerVideoGravity { - rv := objc.Call[avfoundation.LayerVideoGravity](c_, objc.Sel("videoGravity")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519149-fileoutput?language=objc +func (c_ CaptureView) FileOutput() avfoundation.CaptureFileOutput { + rv := objc.Call[avfoundation.CaptureFileOutput](c_, objc.Sel("fileOutput")) return rv } -// A string value that defines how the capture view displays video within its bounds. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519134-videogravity?language=objc -func (c_ CaptureView) SetVideoGravity(value avfoundation.LayerVideoGravity) { - objc.Call[objc.Void](c_, objc.Sel("setVideoGravity:"), value) -} - // The capture view’s delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519144-delegate?language=objc @@ -156,3 +141,18 @@ func (c_ CaptureView) SetDelegate(value PCaptureViewDelegate) { func (c_ CaptureView) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), valueObject) } + +// The style of the capture controls presented by the view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519147-controlsstyle?language=objc +func (c_ CaptureView) ControlsStyle() CaptureViewControlsStyle { + rv := objc.Call[CaptureViewControlsStyle](c_, objc.Sel("controlsStyle")) + return rv +} + +// The style of the capture controls presented by the view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureview/1519147-controlsstyle?language=objc +func (c_ CaptureView) SetControlsStyle(value CaptureViewControlsStyle) { + objc.Call[objc.Void](c_, objc.Sel("setControlsStyle:"), value) +} diff --git a/macos/avkit/picture_in_picture_controller.gen.go b/macos/avkit/picture_in_picture_controller.gen.go index 92a0e88c..5842323a 100644 --- a/macos/avkit/picture_in_picture_controller.gen.go +++ b/macos/avkit/picture_in_picture_controller.gen.go @@ -20,20 +20,20 @@ type _PictureInPictureControllerClass struct { // An interface definition for the [PictureInPictureController] class. type IPictureInPictureController interface { objc.IObject + StopPictureInPicture() InvalidatePlaybackState() StartPictureInPicture() - StopPictureInPicture() - PlayerLayer() avfoundation.PlayerLayer + IsPictureInPictureSuspended() bool + RequiresLinearPlayback() bool + SetRequiresLinearPlayback(value bool) Delegate() PictureInPictureControllerDelegateObject SetDelegate(value PPictureInPictureControllerDelegate) SetDelegateObject(valueObject objc.IObject) - IsPictureInPictureSuspended() bool + IsPictureInPictureActive() bool + PlayerLayer() avfoundation.PlayerLayer IsPictureInPicturePossible() bool - RequiresLinearPlayback() bool - SetRequiresLinearPlayback(value bool) ContentSource() PictureInPictureControllerContentSource SetContentSource(value IPictureInPictureControllerContentSource) - IsPictureInPictureActive() bool } // A controller that responds to user-initiated Picture in Picture playback of video in a floating, resizable window. [Full Topic] @@ -49,30 +49,30 @@ func PictureInPictureControllerFrom(ptr unsafe.Pointer) PictureInPictureControll } } -func (p_ PictureInPictureController) InitWithContentSource(contentSource IPictureInPictureControllerContentSource) PictureInPictureController { - rv := objc.Call[PictureInPictureController](p_, objc.Sel("initWithContentSource:"), contentSource) +func (p_ PictureInPictureController) InitWithPlayerLayer(playerLayer avfoundation.IPlayerLayer) PictureInPictureController { + rv := objc.Call[PictureInPictureController](p_, objc.Sel("initWithPlayerLayer:"), playerLayer) return rv } -// Creates a Picture in Picture controller with a content source. [Full Topic] +// Creates a Picture in Picture controller with a player layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3750324-initwithcontentsource?language=objc -func NewPictureInPictureControllerWithContentSource(contentSource IPictureInPictureControllerContentSource) PictureInPictureController { - instance := PictureInPictureControllerClass.Alloc().InitWithContentSource(contentSource) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614707-initwithplayerlayer?language=objc +func NewPictureInPictureControllerWithPlayerLayer(playerLayer avfoundation.IPlayerLayer) PictureInPictureController { + instance := PictureInPictureControllerClass.Alloc().InitWithPlayerLayer(playerLayer) instance.Autorelease() return instance } -func (p_ PictureInPictureController) InitWithPlayerLayer(playerLayer avfoundation.IPlayerLayer) PictureInPictureController { - rv := objc.Call[PictureInPictureController](p_, objc.Sel("initWithPlayerLayer:"), playerLayer) +func (p_ PictureInPictureController) InitWithContentSource(contentSource IPictureInPictureControllerContentSource) PictureInPictureController { + rv := objc.Call[PictureInPictureController](p_, objc.Sel("initWithContentSource:"), contentSource) return rv } -// Creates a Picture in Picture controller with a player layer. [Full Topic] +// Creates a Picture in Picture controller with a content source. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614707-initwithplayerlayer?language=objc -func NewPictureInPictureControllerWithPlayerLayer(playerLayer avfoundation.IPlayerLayer) PictureInPictureController { - instance := PictureInPictureControllerClass.Alloc().InitWithPlayerLayer(playerLayer) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3750324-initwithcontentsource?language=objc +func NewPictureInPictureControllerWithContentSource(contentSource IPictureInPictureControllerContentSource) PictureInPictureController { + instance := PictureInPictureControllerClass.Alloc().InitWithContentSource(contentSource) instance.Autorelease() return instance } @@ -97,13 +97,6 @@ func (p_ PictureInPictureController) Init() PictureInPictureController { return rv } -// Invalidates the controller’s current playback state and fetches the updated state from the sample buffer playback delegate object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3750328-invalidateplaybackstate?language=objc -func (p_ PictureInPictureController) InvalidatePlaybackState() { - objc.Call[objc.Void](p_, objc.Sel("invalidatePlaybackState")) -} - // Returns a Boolean value that indicates whether the current device supports Picture in Picture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614693-ispictureinpicturesupported?language=objc @@ -119,13 +112,6 @@ func PictureInPictureController_IsPictureInPictureSupported() bool { return PictureInPictureControllerClass.IsPictureInPictureSupported() } -// Starts Picture in Picture, if possible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614687-startpictureinpicture?language=objc -func (p_ PictureInPictureController) StartPictureInPicture() { - objc.Call[objc.Void](p_, objc.Sel("startPictureInPicture")) -} - // Stops Picture in Picture, if active. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614701-stoppictureinpicture?language=objc @@ -133,27 +119,41 @@ func (p_ PictureInPictureController) StopPictureInPicture() { objc.Call[objc.Void](p_, objc.Sel("stopPictureInPicture")) } -// The layer that displays the video content. [Full Topic] +// Invalidates the controller’s current playback state and fetches the updated state from the sample buffer playback delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614706-playerlayer?language=objc -func (p_ PictureInPictureController) PlayerLayer() avfoundation.PlayerLayer { - rv := objc.Call[avfoundation.PlayerLayer](p_, objc.Sel("playerLayer")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3750328-invalidateplaybackstate?language=objc +func (p_ PictureInPictureController) InvalidatePlaybackState() { + objc.Call[objc.Void](p_, objc.Sel("invalidatePlaybackState")) +} + +// Starts Picture in Picture, if possible. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614687-startpictureinpicture?language=objc +func (p_ PictureInPictureController) StartPictureInPicture() { + objc.Call[objc.Void](p_, objc.Sel("startPictureInPicture")) +} + +// A Boolean value that indicates whether the system suspends the controller’s Picture in Picture window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614689-pictureinpicturesuspended?language=objc +func (p_ PictureInPictureController) IsPictureInPictureSuspended() bool { + rv := objc.Call[bool](p_, objc.Sel("isPictureInPictureSuspended")) return rv } -// A system-default template image for the button that stops Picture in Picture in your app. [Full Topic] +// A Boolean value that determines whether the controller allows the user to skip media content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3172687-pictureinpicturebuttonstopimage?language=objc -func (pc _PictureInPictureControllerClass) PictureInPictureButtonStopImage() appkit.Image { - rv := objc.Call[appkit.Image](pc, objc.Sel("pictureInPictureButtonStopImage")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3566335-requireslinearplayback?language=objc +func (p_ PictureInPictureController) RequiresLinearPlayback() bool { + rv := objc.Call[bool](p_, objc.Sel("requiresLinearPlayback")) return rv } -// A system-default template image for the button that stops Picture in Picture in your app. [Full Topic] +// A Boolean value that determines whether the controller allows the user to skip media content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3172687-pictureinpicturebuttonstopimage?language=objc -func PictureInPictureController_PictureInPictureButtonStopImage() appkit.Image { - return PictureInPictureControllerClass.PictureInPictureButtonStopImage() +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3566335-requireslinearplayback?language=objc +func (p_ PictureInPictureController) SetRequiresLinearPlayback(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setRequiresLinearPlayback:"), value) } // A delegate object for a Picture in Picture controller. [Full Topic] @@ -180,22 +180,6 @@ func (p_ PictureInPictureController) SetDelegateObject(valueObject objc.IObject) objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), valueObject) } -// A Boolean value that indicates whether the system suspends the controller’s Picture in Picture window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614689-pictureinpicturesuspended?language=objc -func (p_ PictureInPictureController) IsPictureInPictureSuspended() bool { - rv := objc.Call[bool](p_, objc.Sel("isPictureInPictureSuspended")) - return rv -} - -// A Boolean value that indicates whether Picture in Picture playback is currently possible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614691-pictureinpicturepossible?language=objc -func (p_ PictureInPictureController) IsPictureInPicturePossible() bool { - rv := objc.Call[bool](p_, objc.Sel("isPictureInPicturePossible")) - return rv -} - // A system-default template image for the button that starts Picture in Picture in your app. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3172686-pictureinpicturebuttonstartimage?language=objc @@ -211,19 +195,43 @@ func PictureInPictureController_PictureInPictureButtonStartImage() appkit.Image return PictureInPictureControllerClass.PictureInPictureButtonStartImage() } -// A Boolean value that determines whether the controller allows the user to skip media content. [Full Topic] +// A Boolean value that indicates whether the Picture in Picture window is onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3566335-requireslinearplayback?language=objc -func (p_ PictureInPictureController) RequiresLinearPlayback() bool { - rv := objc.Call[bool](p_, objc.Sel("requiresLinearPlayback")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614720-pictureinpictureactive?language=objc +func (p_ PictureInPictureController) IsPictureInPictureActive() bool { + rv := objc.Call[bool](p_, objc.Sel("isPictureInPictureActive")) return rv } -// A Boolean value that determines whether the controller allows the user to skip media content. [Full Topic] +// The layer that displays the video content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3566335-requireslinearplayback?language=objc -func (p_ PictureInPictureController) SetRequiresLinearPlayback(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setRequiresLinearPlayback:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614706-playerlayer?language=objc +func (p_ PictureInPictureController) PlayerLayer() avfoundation.PlayerLayer { + rv := objc.Call[avfoundation.PlayerLayer](p_, objc.Sel("playerLayer")) + return rv +} + +// A system-default template image for the button that stops Picture in Picture in your app. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3172687-pictureinpicturebuttonstopimage?language=objc +func (pc _PictureInPictureControllerClass) PictureInPictureButtonStopImage() appkit.Image { + rv := objc.Call[appkit.Image](pc, objc.Sel("pictureInPictureButtonStopImage")) + return rv +} + +// A system-default template image for the button that stops Picture in Picture in your app. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/3172687-pictureinpicturebuttonstopimage?language=objc +func PictureInPictureController_PictureInPictureButtonStopImage() appkit.Image { + return PictureInPictureControllerClass.PictureInPictureButtonStopImage() +} + +// A Boolean value that indicates whether Picture in Picture playback is currently possible. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614691-pictureinpicturepossible?language=objc +func (p_ PictureInPictureController) IsPictureInPicturePossible() bool { + rv := objc.Call[bool](p_, objc.Sel("isPictureInPicturePossible")) + return rv } // The source of the controller’s content. [Full Topic] @@ -240,11 +248,3 @@ func (p_ PictureInPictureController) ContentSource() PictureInPictureControllerC func (p_ PictureInPictureController) SetContentSource(value IPictureInPictureControllerContentSource) { objc.Call[objc.Void](p_, objc.Sel("setContentSource:"), value) } - -// A Boolean value that indicates whether the Picture in Picture window is onscreen. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614720-pictureinpictureactive?language=objc -func (p_ PictureInPictureController) IsPictureInPictureActive() bool { - rv := objc.Call[bool](p_, objc.Sel("isPictureInPictureActive")) - return rv -} diff --git a/macos/avkit/picture_in_picture_controller_content_source.gen.go b/macos/avkit/picture_in_picture_controller_content_source.gen.go index bb483779..dc73bba0 100644 --- a/macos/avkit/picture_in_picture_controller_content_source.gen.go +++ b/macos/avkit/picture_in_picture_controller_content_source.gen.go @@ -19,9 +19,9 @@ type _PictureInPictureControllerContentSourceClass struct { // An interface definition for the [PictureInPictureControllerContentSource] class. type IPictureInPictureControllerContentSource interface { objc.IObject + SampleBufferDisplayLayer() avfoundation.SampleBufferDisplayLayer PlayerLayer() avfoundation.PlayerLayer SampleBufferPlaybackDelegate() PictureInPictureSampleBufferPlaybackDelegateObject - SampleBufferDisplayLayer() avfoundation.SampleBufferDisplayLayer } // An object that represents the source of the content to present in Picture in Picture. [Full Topic] @@ -86,6 +86,14 @@ func (p_ PictureInPictureControllerContentSource) Init() PictureInPictureControl return rv } +// The presenting sample buffer display layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollercontentsource/3750330-samplebufferdisplaylayer?language=objc +func (p_ PictureInPictureControllerContentSource) SampleBufferDisplayLayer() avfoundation.SampleBufferDisplayLayer { + rv := objc.Call[avfoundation.SampleBufferDisplayLayer](p_, objc.Sel("sampleBufferDisplayLayer")) + return rv +} + // The presenting player layer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollercontentsource/3750327-playerlayer?language=objc @@ -101,11 +109,3 @@ func (p_ PictureInPictureControllerContentSource) SampleBufferPlaybackDelegate() rv := objc.Call[PictureInPictureSampleBufferPlaybackDelegateObject](p_, objc.Sel("sampleBufferPlaybackDelegate")) return rv } - -// The presenting sample buffer display layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollercontentsource/3750330-samplebufferdisplaylayer?language=objc -func (p_ PictureInPictureControllerContentSource) SampleBufferDisplayLayer() avfoundation.SampleBufferDisplayLayer { - rv := objc.Call[avfoundation.SampleBufferDisplayLayer](p_, objc.Sel("sampleBufferDisplayLayer")) - return rv -} diff --git a/macos/avkit/picture_in_picture_controller_delegate.gen.go b/macos/avkit/picture_in_picture_controller_delegate.gen.go index 1d27ec72..179ae099 100644 --- a/macos/avkit/picture_in_picture_controller_delegate.gen.go +++ b/macos/avkit/picture_in_picture_controller_delegate.gen.go @@ -11,10 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate?language=objc type PPictureInPictureControllerDelegate interface { - // optional - PictureInPictureControllerWillStartPictureInPicture(pictureInPictureController PictureInPictureController) - HasPictureInPictureControllerWillStartPictureInPicture() bool - // optional PictureInPictureControllerDidStartPictureInPicture(pictureInPictureController PictureInPictureController) HasPictureInPictureControllerDidStartPictureInPicture() bool @@ -30,39 +26,16 @@ type PPictureInPictureControllerDelegate interface { // optional PictureInPictureControllerFailedToStartPictureInPictureWithError(pictureInPictureController PictureInPictureController, error foundation.Error) HasPictureInPictureControllerFailedToStartPictureInPictureWithError() bool - - // optional - PictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(pictureInPictureController PictureInPictureController, completionHandler func(restored bool)) - HasPictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool } // A delegate implementation builder for the [PPictureInPictureControllerDelegate] protocol. type PictureInPictureControllerDelegate struct { - _PictureInPictureControllerWillStartPictureInPicture func(pictureInPictureController PictureInPictureController) - _PictureInPictureControllerDidStartPictureInPicture func(pictureInPictureController PictureInPictureController) - _PictureInPictureControllerDidStopPictureInPicture func(pictureInPictureController PictureInPictureController) - _PictureInPictureControllerWillStopPictureInPicture func(pictureInPictureController PictureInPictureController) - _PictureInPictureControllerFailedToStartPictureInPictureWithError func(pictureInPictureController PictureInPictureController, error foundation.Error) - _PictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler func(pictureInPictureController PictureInPictureController, completionHandler func(restored bool)) -} - -func (di *PictureInPictureControllerDelegate) HasPictureInPictureControllerWillStartPictureInPicture() bool { - return di._PictureInPictureControllerWillStartPictureInPicture != nil -} - -// Tells the delegate that Picture in Picture is about to start. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614711-pictureinpicturecontrollerwillst?language=objc -func (di *PictureInPictureControllerDelegate) SetPictureInPictureControllerWillStartPictureInPicture(f func(pictureInPictureController PictureInPictureController)) { - di._PictureInPictureControllerWillStartPictureInPicture = f + _PictureInPictureControllerDidStartPictureInPicture func(pictureInPictureController PictureInPictureController) + _PictureInPictureControllerDidStopPictureInPicture func(pictureInPictureController PictureInPictureController) + _PictureInPictureControllerWillStopPictureInPicture func(pictureInPictureController PictureInPictureController) + _PictureInPictureControllerFailedToStartPictureInPictureWithError func(pictureInPictureController PictureInPictureController, error foundation.Error) } -// Tells the delegate that Picture in Picture is about to start. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614711-pictureinpicturecontrollerwillst?language=objc -func (di *PictureInPictureControllerDelegate) PictureInPictureControllerWillStartPictureInPicture(pictureInPictureController PictureInPictureController) { - di._PictureInPictureControllerWillStartPictureInPicture(pictureInPictureController) -} func (di *PictureInPictureControllerDelegate) HasPictureInPictureControllerDidStartPictureInPicture() bool { return di._PictureInPictureControllerDidStartPictureInPicture != nil } @@ -131,23 +104,6 @@ func (di *PictureInPictureControllerDelegate) SetPictureInPictureControllerFaile func (di *PictureInPictureControllerDelegate) PictureInPictureControllerFailedToStartPictureInPictureWithError(pictureInPictureController PictureInPictureController, error foundation.Error) { di._PictureInPictureControllerFailedToStartPictureInPictureWithError(pictureInPictureController, error) } -func (di *PictureInPictureControllerDelegate) HasPictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool { - return di._PictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler != nil -} - -// Tells the delegate to restore the user interface before Picture in Picture stops. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614703-pictureinpicturecontroller?language=objc -func (di *PictureInPictureControllerDelegate) SetPictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(f func(pictureInPictureController PictureInPictureController, completionHandler func(restored bool))) { - di._PictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler = f -} - -// Tells the delegate to restore the user interface before Picture in Picture stops. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614703-pictureinpicturecontroller?language=objc -func (di *PictureInPictureControllerDelegate) PictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(pictureInPictureController PictureInPictureController, completionHandler func(restored bool)) { - di._PictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(pictureInPictureController, completionHandler) -} // ensure impl type implements protocol interface var _ PPictureInPictureControllerDelegate = (*PictureInPictureControllerDelegateObject)(nil) @@ -157,17 +113,6 @@ type PictureInPictureControllerDelegateObject struct { objc.Object } -func (p_ PictureInPictureControllerDelegateObject) HasPictureInPictureControllerWillStartPictureInPicture() bool { - return p_.RespondsToSelector(objc.Sel("pictureInPictureControllerWillStartPictureInPicture:")) -} - -// Tells the delegate that Picture in Picture is about to start. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614711-pictureinpicturecontrollerwillst?language=objc -func (p_ PictureInPictureControllerDelegateObject) PictureInPictureControllerWillStartPictureInPicture(pictureInPictureController PictureInPictureController) { - objc.Call[objc.Void](p_, objc.Sel("pictureInPictureControllerWillStartPictureInPicture:"), pictureInPictureController) -} - func (p_ PictureInPictureControllerDelegateObject) HasPictureInPictureControllerDidStartPictureInPicture() bool { return p_.RespondsToSelector(objc.Sel("pictureInPictureControllerDidStartPictureInPicture:")) } @@ -211,14 +156,3 @@ func (p_ PictureInPictureControllerDelegateObject) HasPictureInPictureController func (p_ PictureInPictureControllerDelegateObject) PictureInPictureControllerFailedToStartPictureInPictureWithError(pictureInPictureController PictureInPictureController, error foundation.Error) { objc.Call[objc.Void](p_, objc.Sel("pictureInPictureController:failedToStartPictureInPictureWithError:"), pictureInPictureController, error) } - -func (p_ PictureInPictureControllerDelegateObject) HasPictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool { - return p_.RespondsToSelector(objc.Sel("pictureInPictureController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:")) -} - -// Tells the delegate to restore the user interface before Picture in Picture stops. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614703-pictureinpicturecontroller?language=objc -func (p_ PictureInPictureControllerDelegateObject) PictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(pictureInPictureController PictureInPictureController, completionHandler func(restored bool)) { - objc.Call[objc.Void](p_, objc.Sel("pictureInPictureController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:"), pictureInPictureController, completionHandler) -} diff --git a/macos/avkit/picture_in_picture_sample_buffer_playback_delegate.gen.go b/macos/avkit/picture_in_picture_sample_buffer_playback_delegate.gen.go index d46cb12d..009e14b8 100644 --- a/macos/avkit/picture_in_picture_sample_buffer_playback_delegate.gen.go +++ b/macos/avkit/picture_in_picture_sample_buffer_playback_delegate.gen.go @@ -12,16 +12,8 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate?language=objc type PPictureInPictureSampleBufferPlaybackDelegate interface { // optional - PictureInPictureControllerDidTransitionToRenderSize(pictureInPictureController PictureInPictureController, newRenderSize coremedia.VideoDimensions) - HasPictureInPictureControllerDidTransitionToRenderSize() bool - - // optional - PictureInPictureControllerSkipByIntervalCompletionHandler(pictureInPictureController PictureInPictureController, skipInterval coremedia.Time, completionHandler func()) - HasPictureInPictureControllerSkipByIntervalCompletionHandler() bool - - // optional - PictureInPictureControllerSetPlaying(pictureInPictureController PictureInPictureController, playing bool) - HasPictureInPictureControllerSetPlaying() bool + PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController PictureInPictureController) bool + HasPictureInPictureControllerShouldProhibitBackgroundAudioPlayback() bool // optional PictureInPictureControllerIsPlaybackPaused(pictureInPictureController PictureInPictureController) bool @@ -32,70 +24,34 @@ type PPictureInPictureSampleBufferPlaybackDelegate interface { HasPictureInPictureControllerTimeRangeForPlayback() bool // optional - PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController PictureInPictureController) bool - HasPictureInPictureControllerShouldProhibitBackgroundAudioPlayback() bool + PictureInPictureControllerSetPlaying(pictureInPictureController PictureInPictureController, playing bool) + HasPictureInPictureControllerSetPlaying() bool } // A delegate implementation builder for the [PPictureInPictureSampleBufferPlaybackDelegate] protocol. type PictureInPictureSampleBufferPlaybackDelegate struct { - _PictureInPictureControllerDidTransitionToRenderSize func(pictureInPictureController PictureInPictureController, newRenderSize coremedia.VideoDimensions) - _PictureInPictureControllerSkipByIntervalCompletionHandler func(pictureInPictureController PictureInPictureController, skipInterval coremedia.Time, completionHandler func()) - _PictureInPictureControllerSetPlaying func(pictureInPictureController PictureInPictureController, playing bool) + _PictureInPictureControllerShouldProhibitBackgroundAudioPlayback func(pictureInPictureController PictureInPictureController) bool _PictureInPictureControllerIsPlaybackPaused func(pictureInPictureController PictureInPictureController) bool _PictureInPictureControllerTimeRangeForPlayback func(pictureInPictureController PictureInPictureController) coremedia.TimeRange - _PictureInPictureControllerShouldProhibitBackgroundAudioPlayback func(pictureInPictureController PictureInPictureController) bool -} - -func (di *PictureInPictureSampleBufferPlaybackDelegate) HasPictureInPictureControllerDidTransitionToRenderSize() bool { - return di._PictureInPictureControllerDidTransitionToRenderSize != nil -} - -// Tells the delegate when the system Picture in Picture window changes size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750333-pictureinpicturecontroller?language=objc -func (di *PictureInPictureSampleBufferPlaybackDelegate) SetPictureInPictureControllerDidTransitionToRenderSize(f func(pictureInPictureController PictureInPictureController, newRenderSize coremedia.VideoDimensions)) { - di._PictureInPictureControllerDidTransitionToRenderSize = f -} - -// Tells the delegate when the system Picture in Picture window changes size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750333-pictureinpicturecontroller?language=objc -func (di *PictureInPictureSampleBufferPlaybackDelegate) PictureInPictureControllerDidTransitionToRenderSize(pictureInPictureController PictureInPictureController, newRenderSize coremedia.VideoDimensions) { - di._PictureInPictureControllerDidTransitionToRenderSize(pictureInPictureController, newRenderSize) -} -func (di *PictureInPictureSampleBufferPlaybackDelegate) HasPictureInPictureControllerSkipByIntervalCompletionHandler() bool { - return di._PictureInPictureControllerSkipByIntervalCompletionHandler != nil -} - -// Tells the delegate that the user has requested skipping forward or backward by the indicated time interval. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750335-pictureinpicturecontroller?language=objc -func (di *PictureInPictureSampleBufferPlaybackDelegate) SetPictureInPictureControllerSkipByIntervalCompletionHandler(f func(pictureInPictureController PictureInPictureController, skipInterval coremedia.Time, completionHandler func())) { - di._PictureInPictureControllerSkipByIntervalCompletionHandler = f + _PictureInPictureControllerSetPlaying func(pictureInPictureController PictureInPictureController, playing bool) } -// Tells the delegate that the user has requested skipping forward or backward by the indicated time interval. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750335-pictureinpicturecontroller?language=objc -func (di *PictureInPictureSampleBufferPlaybackDelegate) PictureInPictureControllerSkipByIntervalCompletionHandler(pictureInPictureController PictureInPictureController, skipInterval coremedia.Time, completionHandler func()) { - di._PictureInPictureControllerSkipByIntervalCompletionHandler(pictureInPictureController, skipInterval, completionHandler) -} -func (di *PictureInPictureSampleBufferPlaybackDelegate) HasPictureInPictureControllerSetPlaying() bool { - return di._PictureInPictureControllerSetPlaying != nil +func (di *PictureInPictureSampleBufferPlaybackDelegate) HasPictureInPictureControllerShouldProhibitBackgroundAudioPlayback() bool { + return di._PictureInPictureControllerShouldProhibitBackgroundAudioPlayback != nil } -// Tells the delegate that the user requested to begin or pause playback. [Full Topic] +// Asks the delegate whether to always prohibit background audio playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750334-pictureinpicturecontroller?language=objc -func (di *PictureInPictureSampleBufferPlaybackDelegate) SetPictureInPictureControllerSetPlaying(f func(pictureInPictureController PictureInPictureController, playing bool)) { - di._PictureInPictureControllerSetPlaying = f +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3857563-pictureinpicturecontrollershould?language=objc +func (di *PictureInPictureSampleBufferPlaybackDelegate) SetPictureInPictureControllerShouldProhibitBackgroundAudioPlayback(f func(pictureInPictureController PictureInPictureController) bool) { + di._PictureInPictureControllerShouldProhibitBackgroundAudioPlayback = f } -// Tells the delegate that the user requested to begin or pause playback. [Full Topic] +// Asks the delegate whether to always prohibit background audio playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750334-pictureinpicturecontroller?language=objc -func (di *PictureInPictureSampleBufferPlaybackDelegate) PictureInPictureControllerSetPlaying(pictureInPictureController PictureInPictureController, playing bool) { - di._PictureInPictureControllerSetPlaying(pictureInPictureController, playing) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3857563-pictureinpicturecontrollershould?language=objc +func (di *PictureInPictureSampleBufferPlaybackDelegate) PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController PictureInPictureController) bool { + return di._PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController) } func (di *PictureInPictureSampleBufferPlaybackDelegate) HasPictureInPictureControllerIsPlaybackPaused() bool { return di._PictureInPictureControllerIsPlaybackPaused != nil @@ -131,22 +87,22 @@ func (di *PictureInPictureSampleBufferPlaybackDelegate) SetPictureInPictureContr func (di *PictureInPictureSampleBufferPlaybackDelegate) PictureInPictureControllerTimeRangeForPlayback(pictureInPictureController PictureInPictureController) coremedia.TimeRange { return di._PictureInPictureControllerTimeRangeForPlayback(pictureInPictureController) } -func (di *PictureInPictureSampleBufferPlaybackDelegate) HasPictureInPictureControllerShouldProhibitBackgroundAudioPlayback() bool { - return di._PictureInPictureControllerShouldProhibitBackgroundAudioPlayback != nil +func (di *PictureInPictureSampleBufferPlaybackDelegate) HasPictureInPictureControllerSetPlaying() bool { + return di._PictureInPictureControllerSetPlaying != nil } -// Asks the delegate whether to always prohibit background audio playback. [Full Topic] +// Tells the delegate that the user requested to begin or pause playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3857563-pictureinpicturecontrollershould?language=objc -func (di *PictureInPictureSampleBufferPlaybackDelegate) SetPictureInPictureControllerShouldProhibitBackgroundAudioPlayback(f func(pictureInPictureController PictureInPictureController) bool) { - di._PictureInPictureControllerShouldProhibitBackgroundAudioPlayback = f +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750334-pictureinpicturecontroller?language=objc +func (di *PictureInPictureSampleBufferPlaybackDelegate) SetPictureInPictureControllerSetPlaying(f func(pictureInPictureController PictureInPictureController, playing bool)) { + di._PictureInPictureControllerSetPlaying = f } -// Asks the delegate whether to always prohibit background audio playback. [Full Topic] +// Tells the delegate that the user requested to begin or pause playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3857563-pictureinpicturecontrollershould?language=objc -func (di *PictureInPictureSampleBufferPlaybackDelegate) PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController PictureInPictureController) bool { - return di._PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750334-pictureinpicturecontroller?language=objc +func (di *PictureInPictureSampleBufferPlaybackDelegate) PictureInPictureControllerSetPlaying(pictureInPictureController PictureInPictureController, playing bool) { + di._PictureInPictureControllerSetPlaying(pictureInPictureController, playing) } // ensure impl type implements protocol interface @@ -157,37 +113,16 @@ type PictureInPictureSampleBufferPlaybackDelegateObject struct { objc.Object } -func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerDidTransitionToRenderSize() bool { - return p_.RespondsToSelector(objc.Sel("pictureInPictureController:didTransitionToRenderSize:")) -} - -// Tells the delegate when the system Picture in Picture window changes size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750333-pictureinpicturecontroller?language=objc -func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) PictureInPictureControllerDidTransitionToRenderSize(pictureInPictureController PictureInPictureController, newRenderSize coremedia.VideoDimensions) { - objc.Call[objc.Void](p_, objc.Sel("pictureInPictureController:didTransitionToRenderSize:"), pictureInPictureController, newRenderSize) -} - -func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerSkipByIntervalCompletionHandler() bool { - return p_.RespondsToSelector(objc.Sel("pictureInPictureController:skipByInterval:completionHandler:")) -} - -// Tells the delegate that the user has requested skipping forward or backward by the indicated time interval. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750335-pictureinpicturecontroller?language=objc -func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) PictureInPictureControllerSkipByIntervalCompletionHandler(pictureInPictureController PictureInPictureController, skipInterval coremedia.Time, completionHandler func()) { - objc.Call[objc.Void](p_, objc.Sel("pictureInPictureController:skipByInterval:completionHandler:"), pictureInPictureController, skipInterval, completionHandler) -} - -func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerSetPlaying() bool { - return p_.RespondsToSelector(objc.Sel("pictureInPictureController:setPlaying:")) +func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerShouldProhibitBackgroundAudioPlayback() bool { + return p_.RespondsToSelector(objc.Sel("pictureInPictureControllerShouldProhibitBackgroundAudioPlayback:")) } -// Tells the delegate that the user requested to begin or pause playback. [Full Topic] +// Asks the delegate whether to always prohibit background audio playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750334-pictureinpicturecontroller?language=objc -func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) PictureInPictureControllerSetPlaying(pictureInPictureController PictureInPictureController, playing bool) { - objc.Call[objc.Void](p_, objc.Sel("pictureInPictureController:setPlaying:"), pictureInPictureController, playing) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3857563-pictureinpicturecontrollershould?language=objc +func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController PictureInPictureController) bool { + rv := objc.Call[bool](p_, objc.Sel("pictureInPictureControllerShouldProhibitBackgroundAudioPlayback:"), pictureInPictureController) + return rv } func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerIsPlaybackPaused() bool { @@ -214,14 +149,13 @@ func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) PictureInPictureCon return rv } -func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerShouldProhibitBackgroundAudioPlayback() bool { - return p_.RespondsToSelector(objc.Sel("pictureInPictureControllerShouldProhibitBackgroundAudioPlayback:")) +func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerSetPlaying() bool { + return p_.RespondsToSelector(objc.Sel("pictureInPictureController:setPlaying:")) } -// Asks the delegate whether to always prohibit background audio playback. [Full Topic] +// Tells the delegate that the user requested to begin or pause playback. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3857563-pictureinpicturecontrollershould?language=objc -func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController PictureInPictureController) bool { - rv := objc.Call[bool](p_, objc.Sel("pictureInPictureControllerShouldProhibitBackgroundAudioPlayback:"), pictureInPictureController) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750334-pictureinpicturecontroller?language=objc +func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) PictureInPictureControllerSetPlaying(pictureInPictureController PictureInPictureController, playing bool) { + objc.Call[objc.Void](p_, objc.Sel("pictureInPictureController:setPlaying:"), pictureInPictureController, playing) } diff --git a/macos/avkit/player_view.gen.go b/macos/avkit/player_view.gen.go index a5f98cf3..e93cccdd 100644 --- a/macos/avkit/player_view.gen.go +++ b/macos/avkit/player_view.gen.go @@ -21,38 +21,38 @@ type _PlayerViewClass struct { // An interface definition for the [PlayerView] class. type IPlayerView interface { appkit.IView - FlashChapterNumberChapterTitle(chapterNumber uint, chapterTitle string) BeginTrimmingWithCompletionHandler(handler func(result PlayerViewTrimResult)) - ShowsTimecodes() bool - SetShowsTimecodes(value bool) + FlashChapterNumberChapterTitle(chapterNumber uint, chapterTitle string) + VideoGravity() avfoundation.LayerVideoGravity + SetVideoGravity(value avfoundation.LayerVideoGravity) ShowsFrameSteppingButtons() bool SetShowsFrameSteppingButtons(value bool) + VideoBounds() foundation.Rect + ContentOverlayView() appkit.View Player() avfoundation.Player SetPlayer(value avfoundation.IPlayer) - VideoGravity() avfoundation.LayerVideoGravity - SetVideoGravity(value avfoundation.LayerVideoGravity) - VideoBounds() foundation.Rect + ShowsSharingServiceButton() bool + SetShowsSharingServiceButton(value bool) Delegate() PlayerViewDelegateObject SetDelegate(value PPlayerViewDelegate) SetDelegateObject(valueObject objc.IObject) - UpdatesNowPlayingInfoCenter() bool - SetUpdatesNowPlayingInfoCenter(value bool) - ShowsFullScreenToggleButton() bool - SetShowsFullScreenToggleButton(value bool) + IsReadyForDisplay() bool + ShowsTimecodes() bool + SetShowsTimecodes(value bool) AllowsPictureInPicturePlayback() bool SetAllowsPictureInPicturePlayback(value bool) - ContentOverlayView() appkit.View + ActionPopUpButtonMenu() appkit.Menu + SetActionPopUpButtonMenu(value appkit.IMenu) + UpdatesNowPlayingInfoCenter() bool + SetUpdatesNowPlayingInfoCenter(value bool) CanBeginTrimming() bool - ShowsSharingServiceButton() bool - SetShowsSharingServiceButton(value bool) ControlsStyle() PlayerViewControlsStyle SetControlsStyle(value PlayerViewControlsStyle) - ActionPopUpButtonMenu() appkit.Menu - SetActionPopUpButtonMenu(value appkit.IMenu) - IsReadyForDisplay() bool PictureInPictureDelegate() PlayerViewPictureInPictureDelegateObject SetPictureInPictureDelegate(value PPlayerViewPictureInPictureDelegate) SetPictureInPictureDelegateObject(valueObject objc.IObject) + ShowsFullScreenToggleButton() bool + SetShowsFullScreenToggleButton(value bool) } // A view that displays content from a player and presents a native user interface to control playback. [Full Topic] @@ -102,13 +102,6 @@ func NewPlayerViewWithFrame(frameRect foundation.Rect) PlayerView { return instance } -// Displays the chapter number and title in the player view for a brief moment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416547-flashchapternumber?language=objc -func (p_ PlayerView) FlashChapterNumberChapterTitle(chapterNumber uint, chapterTitle string) { - objc.Call[objc.Void](p_, objc.Sel("flashChapterNumber:chapterTitle:"), chapterNumber, chapterTitle) -} - // Puts the player view into trimming mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416570-begintrimmingwithcompletionhandl?language=objc @@ -116,19 +109,26 @@ func (p_ PlayerView) BeginTrimmingWithCompletionHandler(handler func(result Play objc.Call[objc.Void](p_, objc.Sel("beginTrimmingWithCompletionHandler:"), handler) } -// A Boolean value that determines whether the player view displays timecodes, if available. [Full Topic] +// Displays the chapter number and title in the player view for a brief moment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/3174919-showstimecodes?language=objc -func (p_ PlayerView) ShowsTimecodes() bool { - rv := objc.Call[bool](p_, objc.Sel("showsTimecodes")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416547-flashchapternumber?language=objc +func (p_ PlayerView) FlashChapterNumberChapterTitle(chapterNumber uint, chapterTitle string) { + objc.Call[objc.Void](p_, objc.Sel("flashChapterNumber:chapterTitle:"), chapterNumber, chapterTitle) +} + +// A value that determines how the player view displays video content within its bounds. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416559-videogravity?language=objc +func (p_ PlayerView) VideoGravity() avfoundation.LayerVideoGravity { + rv := objc.Call[avfoundation.LayerVideoGravity](p_, objc.Sel("videoGravity")) return rv } -// A Boolean value that determines whether the player view displays timecodes, if available. [Full Topic] +// A value that determines how the player view displays video content within its bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/3174919-showstimecodes?language=objc -func (p_ PlayerView) SetShowsTimecodes(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setShowsTimecodes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416559-videogravity?language=objc +func (p_ PlayerView) SetVideoGravity(value avfoundation.LayerVideoGravity) { + objc.Call[objc.Void](p_, objc.Sel("setVideoGravity:"), value) } // A Boolean value that determines whether the player view displays frame stepping buttons. [Full Topic] @@ -146,6 +146,22 @@ func (p_ PlayerView) SetShowsFrameSteppingButtons(value bool) { objc.Call[objc.Void](p_, objc.Sel("setShowsFrameSteppingButtons:"), value) } +// The current size and position of the video image that displays within the player view’s bounds. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416549-videobounds?language=objc +func (p_ PlayerView) VideoBounds() foundation.Rect { + rv := objc.Call[foundation.Rect](p_, objc.Sel("videoBounds")) + return rv +} + +// A view that adds additional custom views between the video content and the controls. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416573-contentoverlayview?language=objc +func (p_ PlayerView) ContentOverlayView() appkit.View { + rv := objc.Call[appkit.View](p_, objc.Sel("contentOverlayView")) + return rv +} + // The player instance that provides the media content for the view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416539-player?language=objc @@ -161,27 +177,19 @@ func (p_ PlayerView) SetPlayer(value avfoundation.IPlayer) { objc.Call[objc.Void](p_, objc.Sel("setPlayer:"), value) } -// A value that determines how the player view displays video content within its bounds. [Full Topic] +// A Boolean value that determines whether the player view displays a sharing service button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416559-videogravity?language=objc -func (p_ PlayerView) VideoGravity() avfoundation.LayerVideoGravity { - rv := objc.Call[avfoundation.LayerVideoGravity](p_, objc.Sel("videoGravity")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416558-showssharingservicebutton?language=objc +func (p_ PlayerView) ShowsSharingServiceButton() bool { + rv := objc.Call[bool](p_, objc.Sel("showsSharingServiceButton")) return rv } -// A value that determines how the player view displays video content within its bounds. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416559-videogravity?language=objc -func (p_ PlayerView) SetVideoGravity(value avfoundation.LayerVideoGravity) { - objc.Call[objc.Void](p_, objc.Sel("setVideoGravity:"), value) -} - -// The current size and position of the video image that displays within the player view’s bounds. [Full Topic] +// A Boolean value that determines whether the player view displays a sharing service button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416549-videobounds?language=objc -func (p_ PlayerView) VideoBounds() foundation.Rect { - rv := objc.Call[foundation.Rect](p_, objc.Sel("videoBounds")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416558-showssharingservicebutton?language=objc +func (p_ PlayerView) SetShowsSharingServiceButton(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setShowsSharingServiceButton:"), value) } // The player view’s delegate object. [Full Topic] @@ -208,34 +216,27 @@ func (p_ PlayerView) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), valueObject) } -// A Boolean value that indicates whether the player view controller updates the Now Playing info center. [Full Topic] +// A Boolean value that indicates whether the current player item’s first video frame is ready for display. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/2876219-updatesnowplayinginfocenter?language=objc -func (p_ PlayerView) UpdatesNowPlayingInfoCenter() bool { - rv := objc.Call[bool](p_, objc.Sel("updatesNowPlayingInfoCenter")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416556-readyfordisplay?language=objc +func (p_ PlayerView) IsReadyForDisplay() bool { + rv := objc.Call[bool](p_, objc.Sel("isReadyForDisplay")) return rv } -// A Boolean value that indicates whether the player view controller updates the Now Playing info center. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/2876219-updatesnowplayinginfocenter?language=objc -func (p_ PlayerView) SetUpdatesNowPlayingInfoCenter(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setUpdatesNowPlayingInfoCenter:"), value) -} - -// A Boolean value that determines whether the player view displays a full-screen toggle button. [Full Topic] +// A Boolean value that determines whether the player view displays timecodes, if available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416561-showsfullscreentogglebutton?language=objc -func (p_ PlayerView) ShowsFullScreenToggleButton() bool { - rv := objc.Call[bool](p_, objc.Sel("showsFullScreenToggleButton")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/3174919-showstimecodes?language=objc +func (p_ PlayerView) ShowsTimecodes() bool { + rv := objc.Call[bool](p_, objc.Sel("showsTimecodes")) return rv } -// A Boolean value that determines whether the player view displays a full-screen toggle button. [Full Topic] +// A Boolean value that determines whether the player view displays timecodes, if available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416561-showsfullscreentogglebutton?language=objc -func (p_ PlayerView) SetShowsFullScreenToggleButton(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setShowsFullScreenToggleButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/3174919-showstimecodes?language=objc +func (p_ PlayerView) SetShowsTimecodes(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setShowsTimecodes:"), value) } // A Boolean value that determines whether the player view allows Picture in Picture playback. [Full Topic] @@ -253,35 +254,42 @@ func (p_ PlayerView) SetAllowsPictureInPicturePlayback(value bool) { objc.Call[objc.Void](p_, objc.Sel("setAllowsPictureInPicturePlayback:"), value) } -// A view that adds additional custom views between the video content and the controls. [Full Topic] +// An action pop-up button menu that the player view displays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416573-contentoverlayview?language=objc -func (p_ PlayerView) ContentOverlayView() appkit.View { - rv := objc.Call[appkit.View](p_, objc.Sel("contentOverlayView")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416543-actionpopupbuttonmenu?language=objc +func (p_ PlayerView) ActionPopUpButtonMenu() appkit.Menu { + rv := objc.Call[appkit.Menu](p_, objc.Sel("actionPopUpButtonMenu")) return rv } -// A Boolean value that indicates whether the player view can begin trimming. [Full Topic] +// An action pop-up button menu that the player view displays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416545-canbegintrimming?language=objc -func (p_ PlayerView) CanBeginTrimming() bool { - rv := objc.Call[bool](p_, objc.Sel("canBeginTrimming")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416543-actionpopupbuttonmenu?language=objc +func (p_ PlayerView) SetActionPopUpButtonMenu(value appkit.IMenu) { + objc.Call[objc.Void](p_, objc.Sel("setActionPopUpButtonMenu:"), value) } -// A Boolean value that determines whether the player view displays a sharing service button. [Full Topic] +// A Boolean value that indicates whether the player view controller updates the Now Playing info center. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416558-showssharingservicebutton?language=objc -func (p_ PlayerView) ShowsSharingServiceButton() bool { - rv := objc.Call[bool](p_, objc.Sel("showsSharingServiceButton")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/2876219-updatesnowplayinginfocenter?language=objc +func (p_ PlayerView) UpdatesNowPlayingInfoCenter() bool { + rv := objc.Call[bool](p_, objc.Sel("updatesNowPlayingInfoCenter")) return rv } -// A Boolean value that determines whether the player view displays a sharing service button. [Full Topic] +// A Boolean value that indicates whether the player view controller updates the Now Playing info center. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416558-showssharingservicebutton?language=objc -func (p_ PlayerView) SetShowsSharingServiceButton(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setShowsSharingServiceButton:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/2876219-updatesnowplayinginfocenter?language=objc +func (p_ PlayerView) SetUpdatesNowPlayingInfoCenter(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setUpdatesNowPlayingInfoCenter:"), value) +} + +// A Boolean value that indicates whether the player view can begin trimming. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416545-canbegintrimming?language=objc +func (p_ PlayerView) CanBeginTrimming() bool { + rv := objc.Call[bool](p_, objc.Sel("canBeginTrimming")) + return rv } // The player view’s controls style. [Full Topic] @@ -299,29 +307,6 @@ func (p_ PlayerView) SetControlsStyle(value PlayerViewControlsStyle) { objc.Call[objc.Void](p_, objc.Sel("setControlsStyle:"), value) } -// An action pop-up button menu that the player view displays. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416543-actionpopupbuttonmenu?language=objc -func (p_ PlayerView) ActionPopUpButtonMenu() appkit.Menu { - rv := objc.Call[appkit.Menu](p_, objc.Sel("actionPopUpButtonMenu")) - return rv -} - -// An action pop-up button menu that the player view displays. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416543-actionpopupbuttonmenu?language=objc -func (p_ PlayerView) SetActionPopUpButtonMenu(value appkit.IMenu) { - objc.Call[objc.Void](p_, objc.Sel("setActionPopUpButtonMenu:"), value) -} - -// A Boolean value that indicates whether the current player item’s first video frame is ready for display. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416556-readyfordisplay?language=objc -func (p_ PlayerView) IsReadyForDisplay() bool { - rv := objc.Call[bool](p_, objc.Sel("isReadyForDisplay")) - return rv -} - // The Picture in Picture delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/3172689-pictureinpicturedelegate?language=objc @@ -345,3 +330,18 @@ func (p_ PlayerView) SetPictureInPictureDelegate(value PPlayerViewPictureInPictu func (p_ PlayerView) SetPictureInPictureDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setPictureInPictureDelegate:"), valueObject) } + +// A Boolean value that determines whether the player view displays a full-screen toggle button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416561-showsfullscreentogglebutton?language=objc +func (p_ PlayerView) ShowsFullScreenToggleButton() bool { + rv := objc.Call[bool](p_, objc.Sel("showsFullScreenToggleButton")) + return rv +} + +// A Boolean value that determines whether the player view displays a full-screen toggle button. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416561-showsfullscreentogglebutton?language=objc +func (p_ PlayerView) SetShowsFullScreenToggleButton(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setShowsFullScreenToggleButton:"), value) +} diff --git a/macos/avkit/player_view_delegate.gen.go b/macos/avkit/player_view_delegate.gen.go index 439b6309..61e23569 100644 --- a/macos/avkit/player_view_delegate.gen.go +++ b/macos/avkit/player_view_delegate.gen.go @@ -10,14 +10,18 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate?language=objc type PPlayerViewDelegate interface { - // optional - PlayerViewWillExitFullScreen(playerView PlayerView) - HasPlayerViewWillExitFullScreen() bool - // optional PlayerViewWillEnterFullScreen(playerView PlayerView) HasPlayerViewWillEnterFullScreen() bool + // optional + PlayerViewDidEnterFullScreen(playerView PlayerView) + HasPlayerViewDidEnterFullScreen() bool + + // optional + PlayerViewWillExitFullScreen(playerView PlayerView) + HasPlayerViewWillExitFullScreen() bool + // optional PlayerViewDidExitFullScreen(playerView PlayerView) HasPlayerViewDidExitFullScreen() bool @@ -25,38 +29,17 @@ type PPlayerViewDelegate interface { // optional PlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) HasPlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler() bool - - // optional - PlayerViewDidEnterFullScreen(playerView PlayerView) - HasPlayerViewDidEnterFullScreen() bool } // A delegate implementation builder for the [PPlayerViewDelegate] protocol. type PlayerViewDelegate struct { - _PlayerViewWillExitFullScreen func(playerView PlayerView) _PlayerViewWillEnterFullScreen func(playerView PlayerView) + _PlayerViewDidEnterFullScreen func(playerView PlayerView) + _PlayerViewWillExitFullScreen func(playerView PlayerView) _PlayerViewDidExitFullScreen func(playerView PlayerView) _PlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler func(playerView PlayerView, completionHandler func(restored bool)) - _PlayerViewDidEnterFullScreen func(playerView PlayerView) -} - -func (di *PlayerViewDelegate) HasPlayerViewWillExitFullScreen() bool { - return di._PlayerViewWillExitFullScreen != nil -} - -// Tells the delegate that the player view is about to exit full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752990-playerviewwillexitfullscreen?language=objc -func (di *PlayerViewDelegate) SetPlayerViewWillExitFullScreen(f func(playerView PlayerView)) { - di._PlayerViewWillExitFullScreen = f } -// Tells the delegate that the player view is about to exit full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752990-playerviewwillexitfullscreen?language=objc -func (di *PlayerViewDelegate) PlayerViewWillExitFullScreen(playerView PlayerView) { - di._PlayerViewWillExitFullScreen(playerView) -} func (di *PlayerViewDelegate) HasPlayerViewWillEnterFullScreen() bool { return di._PlayerViewWillEnterFullScreen != nil } @@ -74,6 +57,40 @@ func (di *PlayerViewDelegate) SetPlayerViewWillEnterFullScreen(f func(playerView func (di *PlayerViewDelegate) PlayerViewWillEnterFullScreen(playerView PlayerView) { di._PlayerViewWillEnterFullScreen(playerView) } +func (di *PlayerViewDelegate) HasPlayerViewDidEnterFullScreen() bool { + return di._PlayerViewDidEnterFullScreen != nil +} + +// Tells the delegate that the player view entered full-screen mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752987-playerviewdidenterfullscreen?language=objc +func (di *PlayerViewDelegate) SetPlayerViewDidEnterFullScreen(f func(playerView PlayerView)) { + di._PlayerViewDidEnterFullScreen = f +} + +// Tells the delegate that the player view entered full-screen mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752987-playerviewdidenterfullscreen?language=objc +func (di *PlayerViewDelegate) PlayerViewDidEnterFullScreen(playerView PlayerView) { + di._PlayerViewDidEnterFullScreen(playerView) +} +func (di *PlayerViewDelegate) HasPlayerViewWillExitFullScreen() bool { + return di._PlayerViewWillExitFullScreen != nil +} + +// Tells the delegate that the player view is about to exit full-screen mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752990-playerviewwillexitfullscreen?language=objc +func (di *PlayerViewDelegate) SetPlayerViewWillExitFullScreen(f func(playerView PlayerView)) { + di._PlayerViewWillExitFullScreen = f +} + +// Tells the delegate that the player view is about to exit full-screen mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752990-playerviewwillexitfullscreen?language=objc +func (di *PlayerViewDelegate) PlayerViewWillExitFullScreen(playerView PlayerView) { + di._PlayerViewWillExitFullScreen(playerView) +} func (di *PlayerViewDelegate) HasPlayerViewDidExitFullScreen() bool { return di._PlayerViewDidExitFullScreen != nil } @@ -108,30 +125,35 @@ func (di *PlayerViewDelegate) SetPlayerViewRestoreUserInterfaceForFullScreenExit func (di *PlayerViewDelegate) PlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) { di._PlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler(playerView, completionHandler) } -func (di *PlayerViewDelegate) HasPlayerViewDidEnterFullScreen() bool { - return di._PlayerViewDidEnterFullScreen != nil + +// ensure impl type implements protocol interface +var _ PPlayerViewDelegate = (*PlayerViewDelegateObject)(nil) + +// A concrete type for the [PPlayerViewDelegate] protocol. +type PlayerViewDelegateObject struct { + objc.Object } -// Tells the delegate that the player view entered full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752987-playerviewdidenterfullscreen?language=objc -func (di *PlayerViewDelegate) SetPlayerViewDidEnterFullScreen(f func(playerView PlayerView)) { - di._PlayerViewDidEnterFullScreen = f +func (p_ PlayerViewDelegateObject) HasPlayerViewWillEnterFullScreen() bool { + return p_.RespondsToSelector(objc.Sel("playerViewWillEnterFullScreen:")) } -// Tells the delegate that the player view entered full-screen mode. [Full Topic] +// Tells the delegate that the player view is about to enter full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752987-playerviewdidenterfullscreen?language=objc -func (di *PlayerViewDelegate) PlayerViewDidEnterFullScreen(playerView PlayerView) { - di._PlayerViewDidEnterFullScreen(playerView) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752989-playerviewwillenterfullscreen?language=objc +func (p_ PlayerViewDelegateObject) PlayerViewWillEnterFullScreen(playerView PlayerView) { + objc.Call[objc.Void](p_, objc.Sel("playerViewWillEnterFullScreen:"), playerView) } -// ensure impl type implements protocol interface -var _ PPlayerViewDelegate = (*PlayerViewDelegateObject)(nil) +func (p_ PlayerViewDelegateObject) HasPlayerViewDidEnterFullScreen() bool { + return p_.RespondsToSelector(objc.Sel("playerViewDidEnterFullScreen:")) +} -// A concrete type for the [PPlayerViewDelegate] protocol. -type PlayerViewDelegateObject struct { - objc.Object +// Tells the delegate that the player view entered full-screen mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752987-playerviewdidenterfullscreen?language=objc +func (p_ PlayerViewDelegateObject) PlayerViewDidEnterFullScreen(playerView PlayerView) { + objc.Call[objc.Void](p_, objc.Sel("playerViewDidEnterFullScreen:"), playerView) } func (p_ PlayerViewDelegateObject) HasPlayerViewWillExitFullScreen() bool { @@ -145,17 +167,6 @@ func (p_ PlayerViewDelegateObject) PlayerViewWillExitFullScreen(playerView Playe objc.Call[objc.Void](p_, objc.Sel("playerViewWillExitFullScreen:"), playerView) } -func (p_ PlayerViewDelegateObject) HasPlayerViewWillEnterFullScreen() bool { - return p_.RespondsToSelector(objc.Sel("playerViewWillEnterFullScreen:")) -} - -// Tells the delegate that the player view is about to enter full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752989-playerviewwillenterfullscreen?language=objc -func (p_ PlayerViewDelegateObject) PlayerViewWillEnterFullScreen(playerView PlayerView) { - objc.Call[objc.Void](p_, objc.Sel("playerViewWillEnterFullScreen:"), playerView) -} - func (p_ PlayerViewDelegateObject) HasPlayerViewDidExitFullScreen() bool { return p_.RespondsToSelector(objc.Sel("playerViewDidExitFullScreen:")) } @@ -177,14 +188,3 @@ func (p_ PlayerViewDelegateObject) HasPlayerViewRestoreUserInterfaceForFullScree func (p_ PlayerViewDelegateObject) PlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) { objc.Call[objc.Void](p_, objc.Sel("playerView:restoreUserInterfaceForFullScreenExitWithCompletionHandler:"), playerView, completionHandler) } - -func (p_ PlayerViewDelegateObject) HasPlayerViewDidEnterFullScreen() bool { - return p_.RespondsToSelector(objc.Sel("playerViewDidEnterFullScreen:")) -} - -// Tells the delegate that the player view entered full-screen mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752987-playerviewdidenterfullscreen?language=objc -func (p_ PlayerViewDelegateObject) PlayerViewDidEnterFullScreen(playerView PlayerView) { - objc.Call[objc.Void](p_, objc.Sel("playerViewDidEnterFullScreen:"), playerView) -} diff --git a/macos/avkit/player_view_picture_in_picture_delegate.gen.go b/macos/avkit/player_view_picture_in_picture_delegate.gen.go index 63f8ad2f..40fba6fc 100644 --- a/macos/avkit/player_view_picture_in_picture_delegate.gen.go +++ b/macos/avkit/player_view_picture_in_picture_delegate.gen.go @@ -3,7 +3,6 @@ package avkit import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -12,95 +11,73 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate?language=objc type PPlayerViewPictureInPictureDelegate interface { // optional - PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView PlayerView) bool - HasPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart() bool - - // optional - PlayerViewFailedToStartPictureInPictureWithError(playerView PlayerView, error foundation.Error) - HasPlayerViewFailedToStartPictureInPictureWithError() bool + PlayerViewWillStartPictureInPicture(playerView PlayerView) + HasPlayerViewWillStartPictureInPicture() bool // optional - PlayerViewWillStopPictureInPicture(playerView PlayerView) - HasPlayerViewWillStopPictureInPicture() bool + PlayerViewDidStopPictureInPicture(playerView PlayerView) + HasPlayerViewDidStopPictureInPicture() bool // optional PlayerViewDidStartPictureInPicture(playerView PlayerView) HasPlayerViewDidStartPictureInPicture() bool // optional - PlayerViewWillStartPictureInPicture(playerView PlayerView) - HasPlayerViewWillStartPictureInPicture() bool + PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView PlayerView) bool + HasPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart() bool // optional - PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) - HasPlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool + PlayerViewWillStopPictureInPicture(playerView PlayerView) + HasPlayerViewWillStopPictureInPicture() bool // optional - PlayerViewDidStopPictureInPicture(playerView PlayerView) - HasPlayerViewDidStopPictureInPicture() bool + PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) + HasPlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool } // A delegate implementation builder for the [PPlayerViewPictureInPictureDelegate] protocol. type PlayerViewPictureInPictureDelegate struct { + _PlayerViewWillStartPictureInPicture func(playerView PlayerView) + _PlayerViewDidStopPictureInPicture func(playerView PlayerView) + _PlayerViewDidStartPictureInPicture func(playerView PlayerView) _PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart func(playerView PlayerView) bool - _PlayerViewFailedToStartPictureInPictureWithError func(playerView PlayerView, error foundation.Error) _PlayerViewWillStopPictureInPicture func(playerView PlayerView) - _PlayerViewDidStartPictureInPicture func(playerView PlayerView) - _PlayerViewWillStartPictureInPicture func(playerView PlayerView) _PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler func(playerView PlayerView, completionHandler func(restored bool)) - _PlayerViewDidStopPictureInPicture func(playerView PlayerView) -} - -func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart() bool { - return di._PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart != nil -} - -// Asks the delegate if the player view should miniaturize when Picture in Picture starts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172695-playerviewshouldautomaticallydis?language=objc -func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(f func(playerView PlayerView) bool) { - di._PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart = f } -// Asks the delegate if the player view should miniaturize when Picture in Picture starts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172695-playerviewshouldautomaticallydis?language=objc -func (di *PlayerViewPictureInPictureDelegate) PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView PlayerView) bool { - return di._PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView) -} -func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewFailedToStartPictureInPictureWithError() bool { - return di._PlayerViewFailedToStartPictureInPictureWithError != nil +func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewWillStartPictureInPicture() bool { + return di._PlayerViewWillStartPictureInPicture != nil } -// Tells the delegate that Picture in Picture playback failed to start. [Full Topic] +// Tells the delegate that Picture in Picture playback is about to start. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172691-playerview?language=objc -func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewFailedToStartPictureInPictureWithError(f func(playerView PlayerView, error foundation.Error)) { - di._PlayerViewFailedToStartPictureInPictureWithError = f +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172696-playerviewwillstartpictureinpict?language=objc +func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewWillStartPictureInPicture(f func(playerView PlayerView)) { + di._PlayerViewWillStartPictureInPicture = f } -// Tells the delegate that Picture in Picture playback failed to start. [Full Topic] +// Tells the delegate that Picture in Picture playback is about to start. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172691-playerview?language=objc -func (di *PlayerViewPictureInPictureDelegate) PlayerViewFailedToStartPictureInPictureWithError(playerView PlayerView, error foundation.Error) { - di._PlayerViewFailedToStartPictureInPictureWithError(playerView, error) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172696-playerviewwillstartpictureinpict?language=objc +func (di *PlayerViewPictureInPictureDelegate) PlayerViewWillStartPictureInPicture(playerView PlayerView) { + di._PlayerViewWillStartPictureInPicture(playerView) } -func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewWillStopPictureInPicture() bool { - return di._PlayerViewWillStopPictureInPicture != nil +func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewDidStopPictureInPicture() bool { + return di._PlayerViewDidStopPictureInPicture != nil } -// Tells the delegate that Picture in Picture playback is about to stop. [Full Topic] +// Tells the delegate that Picture in Picture playback stopped. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172697-playerviewwillstoppictureinpictu?language=objc -func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewWillStopPictureInPicture(f func(playerView PlayerView)) { - di._PlayerViewWillStopPictureInPicture = f +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172694-playerviewdidstoppictureinpictur?language=objc +func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewDidStopPictureInPicture(f func(playerView PlayerView)) { + di._PlayerViewDidStopPictureInPicture = f } -// Tells the delegate that Picture in Picture playback is about to stop. [Full Topic] +// Tells the delegate that Picture in Picture playback stopped. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172697-playerviewwillstoppictureinpictu?language=objc -func (di *PlayerViewPictureInPictureDelegate) PlayerViewWillStopPictureInPicture(playerView PlayerView) { - di._PlayerViewWillStopPictureInPicture(playerView) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172694-playerviewdidstoppictureinpictur?language=objc +func (di *PlayerViewPictureInPictureDelegate) PlayerViewDidStopPictureInPicture(playerView PlayerView) { + di._PlayerViewDidStopPictureInPicture(playerView) } func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewDidStartPictureInPicture() bool { return di._PlayerViewDidStartPictureInPicture != nil @@ -119,22 +96,39 @@ func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewDidStartPictureInPict func (di *PlayerViewPictureInPictureDelegate) PlayerViewDidStartPictureInPicture(playerView PlayerView) { di._PlayerViewDidStartPictureInPicture(playerView) } -func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewWillStartPictureInPicture() bool { - return di._PlayerViewWillStartPictureInPicture != nil +func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart() bool { + return di._PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart != nil } -// Tells the delegate that Picture in Picture playback is about to start. [Full Topic] +// Asks the delegate if the player view should miniaturize when Picture in Picture starts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172696-playerviewwillstartpictureinpict?language=objc -func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewWillStartPictureInPicture(f func(playerView PlayerView)) { - di._PlayerViewWillStartPictureInPicture = f +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172695-playerviewshouldautomaticallydis?language=objc +func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(f func(playerView PlayerView) bool) { + di._PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart = f } -// Tells the delegate that Picture in Picture playback is about to start. [Full Topic] +// Asks the delegate if the player view should miniaturize when Picture in Picture starts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172696-playerviewwillstartpictureinpict?language=objc -func (di *PlayerViewPictureInPictureDelegate) PlayerViewWillStartPictureInPicture(playerView PlayerView) { - di._PlayerViewWillStartPictureInPicture(playerView) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172695-playerviewshouldautomaticallydis?language=objc +func (di *PlayerViewPictureInPictureDelegate) PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView PlayerView) bool { + return di._PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView) +} +func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewWillStopPictureInPicture() bool { + return di._PlayerViewWillStopPictureInPicture != nil +} + +// Tells the delegate that Picture in Picture playback is about to stop. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172697-playerviewwillstoppictureinpictu?language=objc +func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewWillStopPictureInPicture(f func(playerView PlayerView)) { + di._PlayerViewWillStopPictureInPicture = f +} + +// Tells the delegate that Picture in Picture playback is about to stop. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172697-playerviewwillstoppictureinpictu?language=objc +func (di *PlayerViewPictureInPictureDelegate) PlayerViewWillStopPictureInPicture(playerView PlayerView) { + di._PlayerViewWillStopPictureInPicture(playerView) } func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool { return di._PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler != nil @@ -153,30 +147,46 @@ func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewRestoreUserInterfaceF func (di *PlayerViewPictureInPictureDelegate) PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) { di._PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(playerView, completionHandler) } -func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewDidStopPictureInPicture() bool { - return di._PlayerViewDidStopPictureInPicture != nil + +// ensure impl type implements protocol interface +var _ PPlayerViewPictureInPictureDelegate = (*PlayerViewPictureInPictureDelegateObject)(nil) + +// A concrete type for the [PPlayerViewPictureInPictureDelegate] protocol. +type PlayerViewPictureInPictureDelegateObject struct { + objc.Object } -// Tells the delegate that Picture in Picture playback stopped. [Full Topic] +func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewWillStartPictureInPicture() bool { + return p_.RespondsToSelector(objc.Sel("playerViewWillStartPictureInPicture:")) +} + +// Tells the delegate that Picture in Picture playback is about to start. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172694-playerviewdidstoppictureinpictur?language=objc -func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewDidStopPictureInPicture(f func(playerView PlayerView)) { - di._PlayerViewDidStopPictureInPicture = f +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172696-playerviewwillstartpictureinpict?language=objc +func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewWillStartPictureInPicture(playerView PlayerView) { + objc.Call[objc.Void](p_, objc.Sel("playerViewWillStartPictureInPicture:"), playerView) +} + +func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewDidStopPictureInPicture() bool { + return p_.RespondsToSelector(objc.Sel("playerViewDidStopPictureInPicture:")) } // Tells the delegate that Picture in Picture playback stopped. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172694-playerviewdidstoppictureinpictur?language=objc -func (di *PlayerViewPictureInPictureDelegate) PlayerViewDidStopPictureInPicture(playerView PlayerView) { - di._PlayerViewDidStopPictureInPicture(playerView) +func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewDidStopPictureInPicture(playerView PlayerView) { + objc.Call[objc.Void](p_, objc.Sel("playerViewDidStopPictureInPicture:"), playerView) } -// ensure impl type implements protocol interface -var _ PPlayerViewPictureInPictureDelegate = (*PlayerViewPictureInPictureDelegateObject)(nil) +func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewDidStartPictureInPicture() bool { + return p_.RespondsToSelector(objc.Sel("playerViewDidStartPictureInPicture:")) +} -// A concrete type for the [PPlayerViewPictureInPictureDelegate] protocol. -type PlayerViewPictureInPictureDelegateObject struct { - objc.Object +// Tells the delegate that Picture in Picture playback started. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172693-playerviewdidstartpictureinpictu?language=objc +func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewDidStartPictureInPicture(playerView PlayerView) { + objc.Call[objc.Void](p_, objc.Sel("playerViewDidStartPictureInPicture:"), playerView) } func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart() bool { @@ -191,17 +201,6 @@ func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewShouldAutomatically return rv } -func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewFailedToStartPictureInPictureWithError() bool { - return p_.RespondsToSelector(objc.Sel("playerView:failedToStartPictureInPictureWithError:")) -} - -// Tells the delegate that Picture in Picture playback failed to start. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172691-playerview?language=objc -func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewFailedToStartPictureInPictureWithError(playerView PlayerView, error foundation.Error) { - objc.Call[objc.Void](p_, objc.Sel("playerView:failedToStartPictureInPictureWithError:"), playerView, error) -} - func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewWillStopPictureInPicture() bool { return p_.RespondsToSelector(objc.Sel("playerViewWillStopPictureInPicture:")) } @@ -213,28 +212,6 @@ func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewWillStopPictureInPi objc.Call[objc.Void](p_, objc.Sel("playerViewWillStopPictureInPicture:"), playerView) } -func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewDidStartPictureInPicture() bool { - return p_.RespondsToSelector(objc.Sel("playerViewDidStartPictureInPicture:")) -} - -// Tells the delegate that Picture in Picture playback started. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172693-playerviewdidstartpictureinpictu?language=objc -func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewDidStartPictureInPicture(playerView PlayerView) { - objc.Call[objc.Void](p_, objc.Sel("playerViewDidStartPictureInPicture:"), playerView) -} - -func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewWillStartPictureInPicture() bool { - return p_.RespondsToSelector(objc.Sel("playerViewWillStartPictureInPicture:")) -} - -// Tells the delegate that Picture in Picture playback is about to start. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172696-playerviewwillstartpictureinpict?language=objc -func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewWillStartPictureInPicture(playerView PlayerView) { - objc.Call[objc.Void](p_, objc.Sel("playerViewWillStartPictureInPicture:"), playerView) -} - func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool { return p_.RespondsToSelector(objc.Sel("playerView:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:")) } @@ -245,14 +222,3 @@ func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewRestoreUserInter func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) { objc.Call[objc.Void](p_, objc.Sel("playerView:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:"), playerView, completionHandler) } - -func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewDidStopPictureInPicture() bool { - return p_.RespondsToSelector(objc.Sel("playerViewDidStopPictureInPicture:")) -} - -// Tells the delegate that Picture in Picture playback stopped. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172694-playerviewdidstoppictureinpictur?language=objc -func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewDidStopPictureInPicture(playerView PlayerView) { - objc.Call[objc.Void](p_, objc.Sel("playerViewDidStopPictureInPicture:"), playerView) -} diff --git a/macos/avkit/route_picker_view.gen.go b/macos/avkit/route_picker_view.gen.go index 59a163fd..f6d5084d 100644 --- a/macos/avkit/route_picker_view.gen.go +++ b/macos/avkit/route_picker_view.gen.go @@ -23,13 +23,13 @@ type IRoutePickerView interface { appkit.IView SetRoutePickerButtonColorForState(color appkit.IColor, state RoutePickerViewButtonState) RoutePickerButtonColorForState(state RoutePickerViewButtonState) appkit.Color - IsRoutePickerButtonBordered() bool - SetRoutePickerButtonBordered(value bool) Player() avfoundation.Player SetPlayer(value avfoundation.IPlayer) Delegate() RoutePickerViewDelegateObject SetDelegate(value PRoutePickerViewDelegate) SetDelegateObject(valueObject objc.IObject) + IsRoutePickerButtonBordered() bool + SetRoutePickerButtonBordered(value bool) } // A view that presents a list of nearby media receivers. [Full Topic] @@ -94,21 +94,6 @@ func (r_ RoutePickerView) RoutePickerButtonColorForState(state RoutePickerViewBu return rv } -// A Boolean value that indicates whether the route picker button has a border. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerview/2915795-routepickerbuttonbordered?language=objc -func (r_ RoutePickerView) IsRoutePickerButtonBordered() bool { - rv := objc.Call[bool](r_, objc.Sel("isRoutePickerButtonBordered")) - return rv -} - -// A Boolean value that indicates whether the route picker button has a border. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerview/2915795-routepickerbuttonbordered?language=objc -func (r_ RoutePickerView) SetRoutePickerButtonBordered(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setRoutePickerButtonBordered:"), value) -} - // The player object to perform routing operations for. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerview/3201361-player?language=objc @@ -147,3 +132,18 @@ func (r_ RoutePickerView) SetDelegate(value PRoutePickerViewDelegate) { func (r_ RoutePickerView) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](r_, objc.Sel("setDelegate:"), valueObject) } + +// A Boolean value that indicates whether the route picker button has a border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerview/2915795-routepickerbuttonbordered?language=objc +func (r_ RoutePickerView) IsRoutePickerButtonBordered() bool { + rv := objc.Call[bool](r_, objc.Sel("isRoutePickerButtonBordered")) + return rv +} + +// A Boolean value that indicates whether the route picker button has a border. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerview/2915795-routepickerbuttonbordered?language=objc +func (r_ RoutePickerView) SetRoutePickerButtonBordered(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setRoutePickerButtonBordered:"), value) +} diff --git a/macos/avkit/route_picker_view_delegate.gen.go b/macos/avkit/route_picker_view_delegate.gen.go index 3a6bf30e..d621e117 100644 --- a/macos/avkit/route_picker_view_delegate.gen.go +++ b/macos/avkit/route_picker_view_delegate.gen.go @@ -10,38 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate?language=objc type PRoutePickerViewDelegate interface { - // optional - RoutePickerViewDidEndPresentingRoutes(routePickerView RoutePickerView) - HasRoutePickerViewDidEndPresentingRoutes() bool - // optional RoutePickerViewWillBeginPresentingRoutes(routePickerView RoutePickerView) HasRoutePickerViewWillBeginPresentingRoutes() bool + + // optional + RoutePickerViewDidEndPresentingRoutes(routePickerView RoutePickerView) + HasRoutePickerViewDidEndPresentingRoutes() bool } // A delegate implementation builder for the [PRoutePickerViewDelegate] protocol. type RoutePickerViewDelegate struct { - _RoutePickerViewDidEndPresentingRoutes func(routePickerView RoutePickerView) _RoutePickerViewWillBeginPresentingRoutes func(routePickerView RoutePickerView) + _RoutePickerViewDidEndPresentingRoutes func(routePickerView RoutePickerView) } -func (di *RoutePickerViewDelegate) HasRoutePickerViewDidEndPresentingRoutes() bool { - return di._RoutePickerViewDidEndPresentingRoutes != nil -} - -// Tells the delegate when the route picker view finishes presenting routes to the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate/2915796-routepickerviewdidendpresentingr?language=objc -func (di *RoutePickerViewDelegate) SetRoutePickerViewDidEndPresentingRoutes(f func(routePickerView RoutePickerView)) { - di._RoutePickerViewDidEndPresentingRoutes = f -} - -// Tells the delegate when the route picker view finishes presenting routes to the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate/2915796-routepickerviewdidendpresentingr?language=objc -func (di *RoutePickerViewDelegate) RoutePickerViewDidEndPresentingRoutes(routePickerView RoutePickerView) { - di._RoutePickerViewDidEndPresentingRoutes(routePickerView) -} func (di *RoutePickerViewDelegate) HasRoutePickerViewWillBeginPresentingRoutes() bool { return di._RoutePickerViewWillBeginPresentingRoutes != nil } @@ -59,24 +42,30 @@ func (di *RoutePickerViewDelegate) SetRoutePickerViewWillBeginPresentingRoutes(f func (di *RoutePickerViewDelegate) RoutePickerViewWillBeginPresentingRoutes(routePickerView RoutePickerView) { di._RoutePickerViewWillBeginPresentingRoutes(routePickerView) } - -// ensure impl type implements protocol interface -var _ PRoutePickerViewDelegate = (*RoutePickerViewDelegateObject)(nil) - -// A concrete type for the [PRoutePickerViewDelegate] protocol. -type RoutePickerViewDelegateObject struct { - objc.Object +func (di *RoutePickerViewDelegate) HasRoutePickerViewDidEndPresentingRoutes() bool { + return di._RoutePickerViewDidEndPresentingRoutes != nil } -func (r_ RoutePickerViewDelegateObject) HasRoutePickerViewDidEndPresentingRoutes() bool { - return r_.RespondsToSelector(objc.Sel("routePickerViewDidEndPresentingRoutes:")) +// Tells the delegate when the route picker view finishes presenting routes to the user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate/2915796-routepickerviewdidendpresentingr?language=objc +func (di *RoutePickerViewDelegate) SetRoutePickerViewDidEndPresentingRoutes(f func(routePickerView RoutePickerView)) { + di._RoutePickerViewDidEndPresentingRoutes = f } // Tells the delegate when the route picker view finishes presenting routes to the user. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate/2915796-routepickerviewdidendpresentingr?language=objc -func (r_ RoutePickerViewDelegateObject) RoutePickerViewDidEndPresentingRoutes(routePickerView RoutePickerView) { - objc.Call[objc.Void](r_, objc.Sel("routePickerViewDidEndPresentingRoutes:"), routePickerView) +func (di *RoutePickerViewDelegate) RoutePickerViewDidEndPresentingRoutes(routePickerView RoutePickerView) { + di._RoutePickerViewDidEndPresentingRoutes(routePickerView) +} + +// ensure impl type implements protocol interface +var _ PRoutePickerViewDelegate = (*RoutePickerViewDelegateObject)(nil) + +// A concrete type for the [PRoutePickerViewDelegate] protocol. +type RoutePickerViewDelegateObject struct { + objc.Object } func (r_ RoutePickerViewDelegateObject) HasRoutePickerViewWillBeginPresentingRoutes() bool { @@ -89,3 +78,14 @@ func (r_ RoutePickerViewDelegateObject) HasRoutePickerViewWillBeginPresentingRou func (r_ RoutePickerViewDelegateObject) RoutePickerViewWillBeginPresentingRoutes(routePickerView RoutePickerView) { objc.Call[objc.Void](r_, objc.Sel("routePickerViewWillBeginPresentingRoutes:"), routePickerView) } + +func (r_ RoutePickerViewDelegateObject) HasRoutePickerViewDidEndPresentingRoutes() bool { + return r_.RespondsToSelector(objc.Sel("routePickerViewDidEndPresentingRoutes:")) +} + +// Tells the delegate when the route picker view finishes presenting routes to the user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate/2915796-routepickerviewdidendpresentingr?language=objc +func (r_ RoutePickerViewDelegateObject) RoutePickerViewDidEndPresentingRoutes(routePickerView RoutePickerView) { + objc.Call[objc.Void](r_, objc.Sel("routePickerViewDidEndPresentingRoutes:"), routePickerView) +} diff --git a/macos/cloudkit/accept_shares_operation.gen.go b/macos/cloudkit/accept_shares_operation.gen.go index 5ea10491..c730082a 100644 --- a/macos/cloudkit/accept_shares_operation.gen.go +++ b/macos/cloudkit/accept_shares_operation.gen.go @@ -19,12 +19,12 @@ type _AcceptSharesOperationClass struct { // An interface definition for the [AcceptSharesOperation] class. type IAcceptSharesOperation interface { IOperation - PerShareCompletionBlock() func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error) - SetPerShareCompletionBlock(value func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error)) AcceptSharesCompletionBlock() func(operationError foundation.Error) SetAcceptSharesCompletionBlock(value func(operationError foundation.Error)) ShareMetadatas() []ShareMetadata SetShareMetadatas(value []IShareMetadata) + PerShareCompletionBlock() func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error) + SetPerShareCompletionBlock(value func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error)) } // An operation that confirms a user’s participation in a share. [Full Topic] @@ -40,11 +40,6 @@ func AcceptSharesOperationFrom(ptr unsafe.Pointer) AcceptSharesOperation { } } -func (a_ AcceptSharesOperation) Init() AcceptSharesOperation { - rv := objc.Call[AcceptSharesOperation](a_, objc.Sel("init")) - return rv -} - func (a_ AcceptSharesOperation) InitWithShareMetadatas(shareMetadatas []IShareMetadata) AcceptSharesOperation { rv := objc.Call[AcceptSharesOperation](a_, objc.Sel("initWithShareMetadatas:"), shareMetadatas) return rv @@ -59,6 +54,11 @@ func NewAcceptSharesOperationWithShareMetadatas(shareMetadatas []IShareMetadata) return instance } +func (a_ AcceptSharesOperation) Init() AcceptSharesOperation { + rv := objc.Call[AcceptSharesOperation](a_, objc.Sel("init")) + return rv +} + func (ac _AcceptSharesOperationClass) Alloc() AcceptSharesOperation { rv := objc.Call[AcceptSharesOperation](ac, objc.Sel("alloc")) return rv @@ -74,21 +74,6 @@ func NewAcceptSharesOperation() AcceptSharesOperation { return AcceptSharesOperationClass.New() } -// The block to execute as CloudKit processes individual shares. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckacceptsharesoperation/1640426-persharecompletionblock?language=objc -func (a_ AcceptSharesOperation) PerShareCompletionBlock() func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error) { - rv := objc.Call[func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error)](a_, objc.Sel("perShareCompletionBlock")) - return rv -} - -// The block to execute as CloudKit processes individual shares. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckacceptsharesoperation/1640426-persharecompletionblock?language=objc -func (a_ AcceptSharesOperation) SetPerShareCompletionBlock(value func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("setPerShareCompletionBlock:"), value) -} - // The block to execute when the operation finishes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckacceptsharesoperation/1640442-acceptsharescompletionblock?language=objc @@ -118,3 +103,18 @@ func (a_ AcceptSharesOperation) ShareMetadatas() []ShareMetadata { func (a_ AcceptSharesOperation) SetShareMetadatas(value []IShareMetadata) { objc.Call[objc.Void](a_, objc.Sel("setShareMetadatas:"), value) } + +// The block to execute as CloudKit processes individual shares. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckacceptsharesoperation/1640426-persharecompletionblock?language=objc +func (a_ AcceptSharesOperation) PerShareCompletionBlock() func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error) { + rv := objc.Call[func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error)](a_, objc.Sel("perShareCompletionBlock")) + return rv +} + +// The block to execute as CloudKit processes individual shares. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckacceptsharesoperation/1640426-persharecompletionblock?language=objc +func (a_ AcceptSharesOperation) SetPerShareCompletionBlock(value func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("setPerShareCompletionBlock:"), value) +} diff --git a/macos/cloudkit/container.gen.go b/macos/cloudkit/container.gen.go index bf5b72e4..207e0ccb 100644 --- a/macos/cloudkit/container.gen.go +++ b/macos/cloudkit/container.gen.go @@ -19,21 +19,21 @@ type _ContainerClass struct { // An interface definition for the [Container] class. type IContainer interface { objc.IObject - FetchShareParticipantWithPhoneNumberCompletionHandler(phoneNumber string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) + DatabaseWithDatabaseScope(databaseScope DatabaseScope) Database FetchAllLongLivedOperationIDsWithCompletionHandler(completionHandler func(outstandingOperationIDs []OperationID, error foundation.Error)) FetchShareMetadataWithURLCompletionHandler(url foundation.IURL, completionHandler func(metadata ShareMetadata, error foundation.Error)) - DatabaseWithDatabaseScope(databaseScope DatabaseScope) Database - AccountStatusWithCompletionHandler(completionHandler func(accountStatus AccountStatus, error foundation.Error)) AddOperation(operation IOperation) - FetchShareParticipantWithUserRecordIDCompletionHandler(userRecordID IRecordID, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) - FetchUserRecordIDWithCompletionHandler(completionHandler func(recordID RecordID, error foundation.Error)) - AcceptShareMetadataCompletionHandler(metadata IShareMetadata, completionHandler func(acceptedShare Share, error foundation.Error)) FetchShareParticipantWithEmailAddressCompletionHandler(emailAddress string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) + FetchUserRecordIDWithCompletionHandler(completionHandler func(recordID RecordID, error foundation.Error)) FetchLongLivedOperationWithIDCompletionHandler(operationID OperationID, completionHandler func(outstandingOperation Operation, error foundation.Error)) + AcceptShareMetadataCompletionHandler(metadata IShareMetadata, completionHandler func(acceptedShare Share, error foundation.Error)) + FetchShareParticipantWithPhoneNumberCompletionHandler(phoneNumber string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) + AccountStatusWithCompletionHandler(completionHandler func(accountStatus AccountStatus, error foundation.Error)) + FetchShareParticipantWithUserRecordIDCompletionHandler(userRecordID IRecordID, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) + SharedCloudDatabase() Database + PrivateCloudDatabase() Database PublicCloudDatabase() Database ContainerIdentifier() string - PrivateCloudDatabase() Database - SharedCloudDatabase() Database } // A conduit to your app’s databases. [Full Topic] @@ -69,11 +69,12 @@ func (c_ Container) Init() Container { return rv } -// Fetches the share participant with the specified phone number. [Full Topic] +// Returns the database with the specified scope. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1640493-fetchshareparticipantwithphonenu?language=objc -func (c_ Container) FetchShareParticipantWithPhoneNumberCompletionHandler(phoneNumber string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) { - objc.Call[objc.Void](c_, objc.Sel("fetchShareParticipantWithPhoneNumber:completionHandler:"), phoneNumber, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1640475-databasewithdatabasescope?language=objc +func (c_ Container) DatabaseWithDatabaseScope(databaseScope DatabaseScope) Database { + rv := objc.Call[Database](c_, objc.Sel("databaseWithDatabaseScope:"), databaseScope) + return rv } // Fetches the IDs of any long-lived operations that are running. [Full Topic] @@ -90,19 +91,19 @@ func (c_ Container) FetchShareMetadataWithURLCompletionHandler(url foundation.IU objc.Call[objc.Void](c_, objc.Sel("fetchShareMetadataWithURL:completionHandler:"), url, completionHandler) } -// Returns the database with the specified scope. [Full Topic] +// Creates a container for the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1640475-databasewithdatabasescope?language=objc -func (c_ Container) DatabaseWithDatabaseScope(databaseScope DatabaseScope) Database { - rv := objc.Call[Database](c_, objc.Sel("databaseWithDatabaseScope:"), databaseScope) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399193-containerwithidentifier?language=objc +func (cc _ContainerClass) ContainerWithIdentifier(containerIdentifier string) Container { + rv := objc.Call[Container](cc, objc.Sel("containerWithIdentifier:"), containerIdentifier) return rv } -// Determines whether the system can access the user’s iCloud account. [Full Topic] +// Creates a container for the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399180-accountstatuswithcompletionhandl?language=objc -func (c_ Container) AccountStatusWithCompletionHandler(completionHandler func(accountStatus AccountStatus, error foundation.Error)) { - objc.Call[objc.Void](c_, objc.Sel("accountStatusWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399193-containerwithidentifier?language=objc +func Container_ContainerWithIdentifier(containerIdentifier string) Container { + return ContainerClass.ContainerWithIdentifier(containerIdentifier) } // Adds an operation to the container’s queue. [Full Topic] @@ -112,6 +113,13 @@ func (c_ Container) AddOperation(operation IOperation) { objc.Call[objc.Void](c_, objc.Sel("addOperation:"), operation) } +// Fetches the share participant with the specified email address. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1640489-fetchshareparticipantwithemailad?language=objc +func (c_ Container) FetchShareParticipantWithEmailAddressCompletionHandler(emailAddress string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) { + objc.Call[objc.Void](c_, objc.Sel("fetchShareParticipantWithEmailAddress:completionHandler:"), emailAddress, completionHandler) +} + // Returns the app’s default container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399189-defaultcontainer?language=objc @@ -127,13 +135,6 @@ func Container_DefaultContainer() Container { return ContainerClass.DefaultContainer() } -// Fetches the share participant with the specified user record ID. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1640387-fetchshareparticipantwithuserrec?language=objc -func (c_ Container) FetchShareParticipantWithUserRecordIDCompletionHandler(userRecordID IRecordID, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) { - objc.Call[objc.Void](c_, objc.Sel("fetchShareParticipantWithUserRecordID:completionHandler:"), userRecordID, completionHandler) -} - // Fetches the user record ID of the current user. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399191-fetchuserrecordidwithcompletionh?language=objc @@ -141,6 +142,13 @@ func (c_ Container) FetchUserRecordIDWithCompletionHandler(completionHandler fun objc.Call[objc.Void](c_, objc.Sel("fetchUserRecordIDWithCompletionHandler:"), completionHandler) } +// Fetches the long-lived operation for the specified operation ID. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399164-fetchlonglivedoperationwithid?language=objc +func (c_ Container) FetchLongLivedOperationWithIDCompletionHandler(operationID OperationID, completionHandler func(outstandingOperation Operation, error foundation.Error)) { + objc.Call[objc.Void](c_, objc.Sel("fetchLongLivedOperationWithID:completionHandler:"), operationID, completionHandler) +} + // Accepts the specified share metadata. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/2113667-acceptsharemetadata?language=objc @@ -148,33 +156,41 @@ func (c_ Container) AcceptShareMetadataCompletionHandler(metadata IShareMetadata objc.Call[objc.Void](c_, objc.Sel("acceptShareMetadata:completionHandler:"), metadata, completionHandler) } -// Creates a container for the specified identifier. [Full Topic] +// Fetches the share participant with the specified phone number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399193-containerwithidentifier?language=objc -func (cc _ContainerClass) ContainerWithIdentifier(containerIdentifier string) Container { - rv := objc.Call[Container](cc, objc.Sel("containerWithIdentifier:"), containerIdentifier) - return rv +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1640493-fetchshareparticipantwithphonenu?language=objc +func (c_ Container) FetchShareParticipantWithPhoneNumberCompletionHandler(phoneNumber string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) { + objc.Call[objc.Void](c_, objc.Sel("fetchShareParticipantWithPhoneNumber:completionHandler:"), phoneNumber, completionHandler) } -// Creates a container for the specified identifier. [Full Topic] +// Determines whether the system can access the user’s iCloud account. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399193-containerwithidentifier?language=objc -func Container_ContainerWithIdentifier(containerIdentifier string) Container { - return ContainerClass.ContainerWithIdentifier(containerIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399180-accountstatuswithcompletionhandl?language=objc +func (c_ Container) AccountStatusWithCompletionHandler(completionHandler func(accountStatus AccountStatus, error foundation.Error)) { + objc.Call[objc.Void](c_, objc.Sel("accountStatusWithCompletionHandler:"), completionHandler) } -// Fetches the share participant with the specified email address. [Full Topic] +// Fetches the share participant with the specified user record ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1640489-fetchshareparticipantwithemailad?language=objc -func (c_ Container) FetchShareParticipantWithEmailAddressCompletionHandler(emailAddress string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) { - objc.Call[objc.Void](c_, objc.Sel("fetchShareParticipantWithEmailAddress:completionHandler:"), emailAddress, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1640387-fetchshareparticipantwithuserrec?language=objc +func (c_ Container) FetchShareParticipantWithUserRecordIDCompletionHandler(userRecordID IRecordID, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) { + objc.Call[objc.Void](c_, objc.Sel("fetchShareParticipantWithUserRecordID:completionHandler:"), userRecordID, completionHandler) } -// Fetches the long-lived operation for the specified operation ID. [Full Topic] +// The database that contains shared data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399164-fetchlonglivedoperationwithid?language=objc -func (c_ Container) FetchLongLivedOperationWithIDCompletionHandler(operationID OperationID, completionHandler func(outstandingOperation Operation, error foundation.Error)) { - objc.Call[objc.Void](c_, objc.Sel("fetchLongLivedOperationWithID:completionHandler:"), operationID, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1640408-sharedclouddatabase?language=objc +func (c_ Container) SharedCloudDatabase() Database { + rv := objc.Call[Database](c_, objc.Sel("sharedCloudDatabase")) + return rv +} + +// The user’s private database. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399205-privateclouddatabase?language=objc +func (c_ Container) PrivateCloudDatabase() Database { + rv := objc.Call[Database](c_, objc.Sel("privateCloudDatabase")) + return rv } // The app’s public database. [Full Topic] @@ -192,19 +208,3 @@ func (c_ Container) ContainerIdentifier() string { rv := objc.Call[string](c_, objc.Sel("containerIdentifier")) return rv } - -// The user’s private database. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399205-privateclouddatabase?language=objc -func (c_ Container) PrivateCloudDatabase() Database { - rv := objc.Call[Database](c_, objc.Sel("privateCloudDatabase")) - return rv -} - -// The database that contains shared data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1640408-sharedclouddatabase?language=objc -func (c_ Container) SharedCloudDatabase() Database { - rv := objc.Call[Database](c_, objc.Sel("sharedCloudDatabase")) - return rv -} diff --git a/macos/cloudkit/database.gen.go b/macos/cloudkit/database.gen.go index f554f7ad..d71c5c05 100644 --- a/macos/cloudkit/database.gen.go +++ b/macos/cloudkit/database.gen.go @@ -19,19 +19,19 @@ type _DatabaseClass struct { // An interface definition for the [Database] class. type IDatabase interface { objc.IObject + FetchAllSubscriptionsWithCompletionHandler(completionHandler func(subscriptions []Subscription, error foundation.Error)) + SaveSubscriptionCompletionHandler(subscription ISubscription, completionHandler func(subscription Subscription, error foundation.Error)) + FetchAllRecordZonesWithCompletionHandler(completionHandler func(zones []RecordZone, error foundation.Error)) + AddOperation(operation IDatabaseOperation) + SaveRecordZoneCompletionHandler(zone IRecordZone, completionHandler func(zone RecordZone, error foundation.Error)) + DeleteRecordWithIDCompletionHandler(recordID IRecordID, completionHandler func(recordID RecordID, error foundation.Error)) SaveRecordCompletionHandler(record IRecord, completionHandler func(record Record, error foundation.Error)) DeleteSubscriptionWithIDCompletionHandler(subscriptionID SubscriptionID, completionHandler func(subscriptionID SubscriptionID, error foundation.Error)) - PerformQueryInZoneWithIDCompletionHandler(query IQuery, zoneID IRecordZoneID, completionHandler func(results []Record, error foundation.Error)) - SaveSubscriptionCompletionHandler(subscription ISubscription, completionHandler func(subscription Subscription, error foundation.Error)) FetchSubscriptionWithIDCompletionHandler(subscriptionID SubscriptionID, completionHandler func(subscription Subscription, error foundation.Error)) - DeleteRecordWithIDCompletionHandler(recordID IRecordID, completionHandler func(recordID RecordID, error foundation.Error)) FetchRecordWithIDCompletionHandler(recordID IRecordID, completionHandler func(record Record, error foundation.Error)) FetchRecordZoneWithIDCompletionHandler(zoneID IRecordZoneID, completionHandler func(zone RecordZone, error foundation.Error)) - FetchAllRecordZonesWithCompletionHandler(completionHandler func(zones []RecordZone, error foundation.Error)) - FetchAllSubscriptionsWithCompletionHandler(completionHandler func(subscriptions []Subscription, error foundation.Error)) + PerformQueryInZoneWithIDCompletionHandler(query IQuery, zoneID IRecordZoneID, completionHandler func(results []Record, error foundation.Error)) DeleteRecordZoneWithIDCompletionHandler(zoneID IRecordZoneID, completionHandler func(zoneID RecordZoneID, error foundation.Error)) - SaveRecordZoneCompletionHandler(zone IRecordZone, completionHandler func(zone RecordZone, error foundation.Error)) - AddOperation(operation IDatabaseOperation) DatabaseScope() DatabaseScope } @@ -68,39 +68,39 @@ func (d_ Database) Init() Database { return rv } -// Saves a specific record. [Full Topic] +// Fetches all subscriptions from the current database. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449114-saverecord?language=objc -func (d_ Database) SaveRecordCompletionHandler(record IRecord, completionHandler func(record Record, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("saveRecord:completionHandler:"), record, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449110-fetchallsubscriptionswithcomplet?language=objc +func (d_ Database) FetchAllSubscriptionsWithCompletionHandler(completionHandler func(subscriptions []Subscription, error foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("fetchAllSubscriptionsWithCompletionHandler:"), completionHandler) } -// Deletes a specific subscription and delivers the deleted subscription’s identifier to a completion handler. [Full Topic] +// Saves a specific subscription. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449120-deletesubscriptionwithid?language=objc -func (d_ Database) DeleteSubscriptionWithIDCompletionHandler(subscriptionID SubscriptionID, completionHandler func(subscriptionID SubscriptionID, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("deleteSubscriptionWithID:completionHandler:"), subscriptionID, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449102-savesubscription?language=objc +func (d_ Database) SaveSubscriptionCompletionHandler(subscription ISubscription, completionHandler func(subscription Subscription, error foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("saveSubscription:completionHandler:"), subscription, completionHandler) } -// Searches for records matching a predicate in the specified record zone. [Full Topic] +// Fetches all record zones from the current database. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449127-performquery?language=objc -func (d_ Database) PerformQueryInZoneWithIDCompletionHandler(query IQuery, zoneID IRecordZoneID, completionHandler func(results []Record, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("performQuery:inZoneWithID:completionHandler:"), query, zoneID, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449112-fetchallrecordzoneswithcompletio?language=objc +func (d_ Database) FetchAllRecordZonesWithCompletionHandler(completionHandler func(zones []RecordZone, error foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("fetchAllRecordZonesWithCompletionHandler:"), completionHandler) } -// Saves a specific subscription. [Full Topic] +// Executes the specified operation in the current database. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449102-savesubscription?language=objc -func (d_ Database) SaveSubscriptionCompletionHandler(subscription ISubscription, completionHandler func(subscription Subscription, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("saveSubscription:completionHandler:"), subscription, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449116-addoperation?language=objc +func (d_ Database) AddOperation(operation IDatabaseOperation) { + objc.Call[objc.Void](d_, objc.Sel("addOperation:"), operation) } -// Fetches a specific subscription and delivers it to a completion handler. [Full Topic] +// Saves a specific record zone. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449106-fetchsubscriptionwithid?language=objc -func (d_ Database) FetchSubscriptionWithIDCompletionHandler(subscriptionID SubscriptionID, completionHandler func(subscription Subscription, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("fetchSubscriptionWithID:completionHandler:"), subscriptionID, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449108-saverecordzone?language=objc +func (d_ Database) SaveRecordZoneCompletionHandler(zone IRecordZone, completionHandler func(zone RecordZone, error foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("saveRecordZone:completionHandler:"), zone, completionHandler) } // Deletes a specific record. [Full Topic] @@ -110,6 +110,27 @@ func (d_ Database) DeleteRecordWithIDCompletionHandler(recordID IRecordID, compl objc.Call[objc.Void](d_, objc.Sel("deleteRecordWithID:completionHandler:"), recordID, completionHandler) } +// Saves a specific record. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449114-saverecord?language=objc +func (d_ Database) SaveRecordCompletionHandler(record IRecord, completionHandler func(record Record, error foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("saveRecord:completionHandler:"), record, completionHandler) +} + +// Deletes a specific subscription and delivers the deleted subscription’s identifier to a completion handler. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449120-deletesubscriptionwithid?language=objc +func (d_ Database) DeleteSubscriptionWithIDCompletionHandler(subscriptionID SubscriptionID, completionHandler func(subscriptionID SubscriptionID, error foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("deleteSubscriptionWithID:completionHandler:"), subscriptionID, completionHandler) +} + +// Fetches a specific subscription and delivers it to a completion handler. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449106-fetchsubscriptionwithid?language=objc +func (d_ Database) FetchSubscriptionWithIDCompletionHandler(subscriptionID SubscriptionID, completionHandler func(subscription Subscription, error foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("fetchSubscriptionWithID:completionHandler:"), subscriptionID, completionHandler) +} + // Fetches a specific record. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449126-fetchrecordwithid?language=objc @@ -124,18 +145,11 @@ func (d_ Database) FetchRecordZoneWithIDCompletionHandler(zoneID IRecordZoneID, objc.Call[objc.Void](d_, objc.Sel("fetchRecordZoneWithID:completionHandler:"), zoneID, completionHandler) } -// Fetches all record zones from the current database. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449112-fetchallrecordzoneswithcompletio?language=objc -func (d_ Database) FetchAllRecordZonesWithCompletionHandler(completionHandler func(zones []RecordZone, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("fetchAllRecordZonesWithCompletionHandler:"), completionHandler) -} - -// Fetches all subscriptions from the current database. [Full Topic] +// Searches for records matching a predicate in the specified record zone. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449110-fetchallsubscriptionswithcomplet?language=objc -func (d_ Database) FetchAllSubscriptionsWithCompletionHandler(completionHandler func(subscriptions []Subscription, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("fetchAllSubscriptionsWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449127-performquery?language=objc +func (d_ Database) PerformQueryInZoneWithIDCompletionHandler(query IQuery, zoneID IRecordZoneID, completionHandler func(results []Record, error foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("performQuery:inZoneWithID:completionHandler:"), query, zoneID, completionHandler) } // Deletes a specific record zone. [Full Topic] @@ -145,20 +159,6 @@ func (d_ Database) DeleteRecordZoneWithIDCompletionHandler(zoneID IRecordZoneID, objc.Call[objc.Void](d_, objc.Sel("deleteRecordZoneWithID:completionHandler:"), zoneID, completionHandler) } -// Saves a specific record zone. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449108-saverecordzone?language=objc -func (d_ Database) SaveRecordZoneCompletionHandler(zone IRecordZone, completionHandler func(zone RecordZone, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("saveRecordZone:completionHandler:"), zone, completionHandler) -} - -// Executes the specified operation in the current database. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1449116-addoperation?language=objc -func (d_ Database) AddOperation(operation IDatabaseOperation) { - objc.Call[objc.Void](d_, objc.Sel("addOperation:"), operation) -} - // The type of database. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckdatabase/1640398-databasescope?language=objc diff --git a/macos/cloudkit/database_subscription.gen.go b/macos/cloudkit/database_subscription.gen.go index ab48bd21..0baf8add 100644 --- a/macos/cloudkit/database_subscription.gen.go +++ b/macos/cloudkit/database_subscription.gen.go @@ -35,6 +35,16 @@ func DatabaseSubscriptionFrom(ptr unsafe.Pointer) DatabaseSubscription { } } +func (dc _DatabaseSubscriptionClass) New() DatabaseSubscription { + rv := objc.Call[DatabaseSubscription](dc, objc.Sel("new")) + rv.Autorelease() + return rv +} + +func NewDatabaseSubscription() DatabaseSubscription { + return DatabaseSubscriptionClass.New() +} + func (d_ DatabaseSubscription) InitWithSubscriptionID(subscriptionID SubscriptionID) DatabaseSubscription { rv := objc.Call[DatabaseSubscription](d_, objc.Sel("initWithSubscriptionID:"), subscriptionID) return rv @@ -49,16 +59,6 @@ func NewDatabaseSubscriptionWithSubscriptionID(subscriptionID SubscriptionID) Da return instance } -func (dc _DatabaseSubscriptionClass) New() DatabaseSubscription { - rv := objc.Call[DatabaseSubscription](dc, objc.Sel("new")) - rv.Autorelease() - return rv -} - -func NewDatabaseSubscription() DatabaseSubscription { - return DatabaseSubscriptionClass.New() -} - func (dc _DatabaseSubscriptionClass) Alloc() DatabaseSubscription { rv := objc.Call[DatabaseSubscription](dc, objc.Sel("alloc")) return rv diff --git a/macos/cloudkit/fetch_database_changes_operation.gen.go b/macos/cloudkit/fetch_database_changes_operation.gen.go index 30f20a98..798b2758 100644 --- a/macos/cloudkit/fetch_database_changes_operation.gen.go +++ b/macos/cloudkit/fetch_database_changes_operation.gen.go @@ -19,24 +19,24 @@ type _FetchDatabaseChangesOperationClass struct { // An interface definition for the [FetchDatabaseChangesOperation] class. type IFetchDatabaseChangesOperation interface { IDatabaseOperation - RecordZoneWithIDWasPurgedBlock() func(zoneID RecordZoneID) - SetRecordZoneWithIDWasPurgedBlock(value func(zoneID RecordZoneID)) - RecordZoneWithIDWasDeletedBlock() func(zoneID RecordZoneID) - SetRecordZoneWithIDWasDeletedBlock(value func(zoneID RecordZoneID)) ChangeTokenUpdatedBlock() func(serverChangeToken ServerChangeToken) SetChangeTokenUpdatedBlock(value func(serverChangeToken ServerChangeToken)) + PreviousServerChangeToken() ServerChangeToken + SetPreviousServerChangeToken(value IServerChangeToken) + FetchDatabaseChangesCompletionBlock() func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error) + SetFetchDatabaseChangesCompletionBlock(value func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error)) + RecordZoneWithIDWasDeletedBlock() func(zoneID RecordZoneID) + SetRecordZoneWithIDWasDeletedBlock(value func(zoneID RecordZoneID)) FetchAllChanges() bool SetFetchAllChanges(value bool) RecordZoneWithIDChangedBlock() func(zoneID RecordZoneID) SetRecordZoneWithIDChangedBlock(value func(zoneID RecordZoneID)) - FetchDatabaseChangesCompletionBlock() func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error) - SetFetchDatabaseChangesCompletionBlock(value func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error)) RecordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock() func(zoneID RecordZoneID) SetRecordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock(value func(zoneID RecordZoneID)) + RecordZoneWithIDWasPurgedBlock() func(zoneID RecordZoneID) + SetRecordZoneWithIDWasPurgedBlock(value func(zoneID RecordZoneID)) ResultsLimit() uint SetResultsLimit(value uint) - PreviousServerChangeToken() ServerChangeToken - SetPreviousServerChangeToken(value IServerChangeToken) } // An operation that fetches database changes. [Full Topic] @@ -86,19 +86,49 @@ func NewFetchDatabaseChangesOperation() FetchDatabaseChangesOperation { return FetchDatabaseChangesOperationClass.New() } -// The block to execute when CloudKit purges a record zone. [Full Topic] +// The block to execute when the change token updates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/2866207-recordzonewithidwaspurgedblock?language=objc -func (f_ FetchDatabaseChangesOperation) RecordZoneWithIDWasPurgedBlock() func(zoneID RecordZoneID) { - rv := objc.Call[func(zoneID RecordZoneID)](f_, objc.Sel("recordZoneWithIDWasPurgedBlock")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640467-changetokenupdatedblock?language=objc +func (f_ FetchDatabaseChangesOperation) ChangeTokenUpdatedBlock() func(serverChangeToken ServerChangeToken) { + rv := objc.Call[func(serverChangeToken ServerChangeToken)](f_, objc.Sel("changeTokenUpdatedBlock")) return rv } -// The block to execute when CloudKit purges a record zone. [Full Topic] +// The block to execute when the change token updates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/2866207-recordzonewithidwaspurgedblock?language=objc -func (f_ FetchDatabaseChangesOperation) SetRecordZoneWithIDWasPurgedBlock(value func(zoneID RecordZoneID)) { - objc.Call[objc.Void](f_, objc.Sel("setRecordZoneWithIDWasPurgedBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640467-changetokenupdatedblock?language=objc +func (f_ FetchDatabaseChangesOperation) SetChangeTokenUpdatedBlock(value func(serverChangeToken ServerChangeToken)) { + objc.Call[objc.Void](f_, objc.Sel("setChangeTokenUpdatedBlock:"), value) +} + +// The server change token. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640522-previousserverchangetoken?language=objc +func (f_ FetchDatabaseChangesOperation) PreviousServerChangeToken() ServerChangeToken { + rv := objc.Call[ServerChangeToken](f_, objc.Sel("previousServerChangeToken")) + return rv +} + +// The server change token. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640522-previousserverchangetoken?language=objc +func (f_ FetchDatabaseChangesOperation) SetPreviousServerChangeToken(value IServerChangeToken) { + objc.Call[objc.Void](f_, objc.Sel("setPreviousServerChangeToken:"), value) +} + +// The block to execute when the operation finishes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640434-fetchdatabasechangescompletionbl?language=objc +func (f_ FetchDatabaseChangesOperation) FetchDatabaseChangesCompletionBlock() func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error) { + rv := objc.Call[func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error)](f_, objc.Sel("fetchDatabaseChangesCompletionBlock")) + return rv +} + +// The block to execute when the operation finishes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640434-fetchdatabasechangescompletionbl?language=objc +func (f_ FetchDatabaseChangesOperation) SetFetchDatabaseChangesCompletionBlock(value func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("setFetchDatabaseChangesCompletionBlock:"), value) } // The block to execute when a record zone no longer exists. [Full Topic] @@ -116,21 +146,6 @@ func (f_ FetchDatabaseChangesOperation) SetRecordZoneWithIDWasDeletedBlock(value objc.Call[objc.Void](f_, objc.Sel("setRecordZoneWithIDWasDeletedBlock:"), value) } -// The block to execute when the change token updates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640467-changetokenupdatedblock?language=objc -func (f_ FetchDatabaseChangesOperation) ChangeTokenUpdatedBlock() func(serverChangeToken ServerChangeToken) { - rv := objc.Call[func(serverChangeToken ServerChangeToken)](f_, objc.Sel("changeTokenUpdatedBlock")) - return rv -} - -// The block to execute when the change token updates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640467-changetokenupdatedblock?language=objc -func (f_ FetchDatabaseChangesOperation) SetChangeTokenUpdatedBlock(value func(serverChangeToken ServerChangeToken)) { - objc.Call[objc.Void](f_, objc.Sel("setChangeTokenUpdatedBlock:"), value) -} - // A Boolean value that indicates whether to send repeated requests to the server. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640473-fetchallchanges?language=objc @@ -161,21 +176,6 @@ func (f_ FetchDatabaseChangesOperation) SetRecordZoneWithIDChangedBlock(value fu objc.Call[objc.Void](f_, objc.Sel("setRecordZoneWithIDChangedBlock:"), value) } -// The block to execute when the operation finishes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640434-fetchdatabasechangescompletionbl?language=objc -func (f_ FetchDatabaseChangesOperation) FetchDatabaseChangesCompletionBlock() func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error) { - rv := objc.Call[func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error)](f_, objc.Sel("fetchDatabaseChangesCompletionBlock")) - return rv -} - -// The block to execute when the operation finishes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640434-fetchdatabasechangescompletionbl?language=objc -func (f_ FetchDatabaseChangesOperation) SetFetchDatabaseChangesCompletionBlock(value func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("setFetchDatabaseChangesCompletionBlock:"), value) -} - // The block to execute when a user-invoked account reset deletes a record zone. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/3746820-recordzonewithidwasdeletedduetou?language=objc @@ -191,6 +191,21 @@ func (f_ FetchDatabaseChangesOperation) SetRecordZoneWithIDWasDeletedDueToUserEn objc.Call[objc.Void](f_, objc.Sel("setRecordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock:"), value) } +// The block to execute when CloudKit purges a record zone. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/2866207-recordzonewithidwaspurgedblock?language=objc +func (f_ FetchDatabaseChangesOperation) RecordZoneWithIDWasPurgedBlock() func(zoneID RecordZoneID) { + rv := objc.Call[func(zoneID RecordZoneID)](f_, objc.Sel("recordZoneWithIDWasPurgedBlock")) + return rv +} + +// The block to execute when CloudKit purges a record zone. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/2866207-recordzonewithidwaspurgedblock?language=objc +func (f_ FetchDatabaseChangesOperation) SetRecordZoneWithIDWasPurgedBlock(value func(zoneID RecordZoneID)) { + objc.Call[objc.Void](f_, objc.Sel("setRecordZoneWithIDWasPurgedBlock:"), value) +} + // The maximum number of results that the operation fetches. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640520-resultslimit?language=objc @@ -205,18 +220,3 @@ func (f_ FetchDatabaseChangesOperation) ResultsLimit() uint { func (f_ FetchDatabaseChangesOperation) SetResultsLimit(value uint) { objc.Call[objc.Void](f_, objc.Sel("setResultsLimit:"), value) } - -// The server change token. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640522-previousserverchangetoken?language=objc -func (f_ FetchDatabaseChangesOperation) PreviousServerChangeToken() ServerChangeToken { - rv := objc.Call[ServerChangeToken](f_, objc.Sel("previousServerChangeToken")) - return rv -} - -// The server change token. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchdatabasechangesoperation/1640522-previousserverchangetoken?language=objc -func (f_ FetchDatabaseChangesOperation) SetPreviousServerChangeToken(value IServerChangeToken) { - objc.Call[objc.Void](f_, objc.Sel("setPreviousServerChangeToken:"), value) -} diff --git a/macos/cloudkit/fetch_record_zone_changes_configuration.gen.go b/macos/cloudkit/fetch_record_zone_changes_configuration.gen.go index b362665d..fb27939f 100644 --- a/macos/cloudkit/fetch_record_zone_changes_configuration.gen.go +++ b/macos/cloudkit/fetch_record_zone_changes_configuration.gen.go @@ -18,12 +18,12 @@ type _FetchRecordZoneChangesConfigurationClass struct { // An interface definition for the [FetchRecordZoneChangesConfiguration] class. type IFetchRecordZoneChangesConfiguration interface { objc.IObject - DesiredKeys() []RecordFieldKey - SetDesiredKeys(value []RecordFieldKey) - ResultsLimit() uint - SetResultsLimit(value uint) PreviousServerChangeToken() ServerChangeToken SetPreviousServerChangeToken(value IServerChangeToken) + ResultsLimit() uint + SetResultsLimit(value uint) + DesiredKeys() []RecordFieldKey + SetDesiredKeys(value []RecordFieldKey) } // A configuration object that describes the information to fetch from a record zone. [Full Topic] @@ -59,19 +59,19 @@ func (f_ FetchRecordZoneChangesConfiguration) Init() FetchRecordZoneChangesConfi return rv } -// An array of the record keys to retrieve. [Full Topic] +// The server change token. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesconfiguration/2980661-desiredkeys?language=objc -func (f_ FetchRecordZoneChangesConfiguration) DesiredKeys() []RecordFieldKey { - rv := objc.Call[[]RecordFieldKey](f_, objc.Sel("desiredKeys")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesconfiguration/2980662-previousserverchangetoken?language=objc +func (f_ FetchRecordZoneChangesConfiguration) PreviousServerChangeToken() ServerChangeToken { + rv := objc.Call[ServerChangeToken](f_, objc.Sel("previousServerChangeToken")) return rv } -// An array of the record keys to retrieve. [Full Topic] +// The server change token. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesconfiguration/2980661-desiredkeys?language=objc -func (f_ FetchRecordZoneChangesConfiguration) SetDesiredKeys(value []RecordFieldKey) { - objc.Call[objc.Void](f_, objc.Sel("setDesiredKeys:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesconfiguration/2980662-previousserverchangetoken?language=objc +func (f_ FetchRecordZoneChangesConfiguration) SetPreviousServerChangeToken(value IServerChangeToken) { + objc.Call[objc.Void](f_, objc.Sel("setPreviousServerChangeToken:"), value) } // The maximum number of records that CloudKit retrieves when fetching zone changes. [Full Topic] @@ -89,17 +89,17 @@ func (f_ FetchRecordZoneChangesConfiguration) SetResultsLimit(value uint) { objc.Call[objc.Void](f_, objc.Sel("setResultsLimit:"), value) } -// The server change token. [Full Topic] +// An array of the record keys to retrieve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesconfiguration/2980662-previousserverchangetoken?language=objc -func (f_ FetchRecordZoneChangesConfiguration) PreviousServerChangeToken() ServerChangeToken { - rv := objc.Call[ServerChangeToken](f_, objc.Sel("previousServerChangeToken")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesconfiguration/2980661-desiredkeys?language=objc +func (f_ FetchRecordZoneChangesConfiguration) DesiredKeys() []RecordFieldKey { + rv := objc.Call[[]RecordFieldKey](f_, objc.Sel("desiredKeys")) return rv } -// The server change token. [Full Topic] +// An array of the record keys to retrieve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesconfiguration/2980662-previousserverchangetoken?language=objc -func (f_ FetchRecordZoneChangesConfiguration) SetPreviousServerChangeToken(value IServerChangeToken) { - objc.Call[objc.Void](f_, objc.Sel("setPreviousServerChangeToken:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesconfiguration/2980661-desiredkeys?language=objc +func (f_ FetchRecordZoneChangesConfiguration) SetDesiredKeys(value []RecordFieldKey) { + objc.Call[objc.Void](f_, objc.Sel("setDesiredKeys:"), value) } diff --git a/macos/cloudkit/fetch_record_zone_changes_operation.gen.go b/macos/cloudkit/fetch_record_zone_changes_operation.gen.go index cd4b09e0..d9490029 100644 --- a/macos/cloudkit/fetch_record_zone_changes_operation.gen.go +++ b/macos/cloudkit/fetch_record_zone_changes_operation.gen.go @@ -19,22 +19,22 @@ type _FetchRecordZoneChangesOperationClass struct { // An interface definition for the [FetchRecordZoneChangesOperation] class. type IFetchRecordZoneChangesOperation interface { IDatabaseOperation - RecordWasChangedBlock() func(recordID RecordID, record Record, error foundation.Error) - SetRecordWasChangedBlock(value func(recordID RecordID, record Record, error foundation.Error)) - RecordZoneFetchCompletionBlock() func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error) - SetRecordZoneFetchCompletionBlock(value func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error)) + RecordZoneIDs() []RecordZoneID + SetRecordZoneIDs(value []IRecordZoneID) RecordWithIDWasDeletedBlock() func(recordID RecordID, recordType RecordType) SetRecordWithIDWasDeletedBlock(value func(recordID RecordID, recordType RecordType)) + RecordWasChangedBlock() func(recordID RecordID, record Record, error foundation.Error) + SetRecordWasChangedBlock(value func(recordID RecordID, record Record, error foundation.Error)) FetchRecordZoneChangesCompletionBlock() func(operationError foundation.Error) SetFetchRecordZoneChangesCompletionBlock(value func(operationError foundation.Error)) ConfigurationsByRecordZoneID() foundation.Dictionary SetConfigurationsByRecordZoneID(value foundation.Dictionary) FetchAllChanges() bool SetFetchAllChanges(value bool) + RecordZoneFetchCompletionBlock() func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error) + SetRecordZoneFetchCompletionBlock(value func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error)) RecordZoneChangeTokensUpdatedBlock() func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte) SetRecordZoneChangeTokensUpdatedBlock(value func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte)) - RecordZoneIDs() []RecordZoneID - SetRecordZoneIDs(value []IRecordZoneID) } // An operation that fetches record zone changes. [Full Topic] @@ -84,34 +84,19 @@ func NewFetchRecordZoneChangesOperation() FetchRecordZoneChangesOperation { return FetchRecordZoneChangesOperationClass.New() } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/3793698-recordwaschangedblock?language=objc -func (f_ FetchRecordZoneChangesOperation) RecordWasChangedBlock() func(recordID RecordID, record Record, error foundation.Error) { - rv := objc.Call[func(recordID RecordID, record Record, error foundation.Error)](f_, objc.Sel("recordWasChangedBlock")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/3793698-recordwaschangedblock?language=objc -func (f_ FetchRecordZoneChangesOperation) SetRecordWasChangedBlock(value func(recordID RecordID, record Record, error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("setRecordWasChangedBlock:"), value) -} - -// The block to execute when a record zone’s fetch finishes. [Full Topic] +// The IDs of the record zones that contain the records to fetch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/1640411-recordzonefetchcompletionblock?language=objc -func (f_ FetchRecordZoneChangesOperation) RecordZoneFetchCompletionBlock() func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error) { - rv := objc.Call[func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error)](f_, objc.Sel("recordZoneFetchCompletionBlock")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/1640463-recordzoneids?language=objc +func (f_ FetchRecordZoneChangesOperation) RecordZoneIDs() []RecordZoneID { + rv := objc.Call[[]RecordZoneID](f_, objc.Sel("recordZoneIDs")) return rv } -// The block to execute when a record zone’s fetch finishes. [Full Topic] +// The IDs of the record zones that contain the records to fetch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/1640411-recordzonefetchcompletionblock?language=objc -func (f_ FetchRecordZoneChangesOperation) SetRecordZoneFetchCompletionBlock(value func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("setRecordZoneFetchCompletionBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/1640463-recordzoneids?language=objc +func (f_ FetchRecordZoneChangesOperation) SetRecordZoneIDs(value []IRecordZoneID) { + objc.Call[objc.Void](f_, objc.Sel("setRecordZoneIDs:"), value) } // The block to execute when a record no longer exists. [Full Topic] @@ -129,6 +114,21 @@ func (f_ FetchRecordZoneChangesOperation) SetRecordWithIDWasDeletedBlock(value f objc.Call[objc.Void](f_, objc.Sel("setRecordWithIDWasDeletedBlock:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/3793698-recordwaschangedblock?language=objc +func (f_ FetchRecordZoneChangesOperation) RecordWasChangedBlock() func(recordID RecordID, record Record, error foundation.Error) { + rv := objc.Call[func(recordID RecordID, record Record, error foundation.Error)](f_, objc.Sel("recordWasChangedBlock")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/3793698-recordwaschangedblock?language=objc +func (f_ FetchRecordZoneChangesOperation) SetRecordWasChangedBlock(value func(recordID RecordID, record Record, error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("setRecordWasChangedBlock:"), value) +} + // The block to execute when the operation finishes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/1640409-fetchrecordzonechangescompletion?language=objc @@ -174,6 +174,21 @@ func (f_ FetchRecordZoneChangesOperation) SetFetchAllChanges(value bool) { objc.Call[objc.Void](f_, objc.Sel("setFetchAllChanges:"), value) } +// The block to execute when a record zone’s fetch finishes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/1640411-recordzonefetchcompletionblock?language=objc +func (f_ FetchRecordZoneChangesOperation) RecordZoneFetchCompletionBlock() func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error) { + rv := objc.Call[func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error)](f_, objc.Sel("recordZoneFetchCompletionBlock")) + return rv +} + +// The block to execute when a record zone’s fetch finishes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/1640411-recordzonefetchcompletionblock?language=objc +func (f_ FetchRecordZoneChangesOperation) SetRecordZoneFetchCompletionBlock(value func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("setRecordZoneFetchCompletionBlock:"), value) +} + // The block to execute when the change token updates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/1640422-recordzonechangetokensupdatedblo?language=objc @@ -188,18 +203,3 @@ func (f_ FetchRecordZoneChangesOperation) RecordZoneChangeTokensUpdatedBlock() f func (f_ FetchRecordZoneChangesOperation) SetRecordZoneChangeTokensUpdatedBlock(value func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte)) { objc.Call[objc.Void](f_, objc.Sel("setRecordZoneChangeTokensUpdatedBlock:"), value) } - -// The IDs of the record zones that contain the records to fetch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/1640463-recordzoneids?language=objc -func (f_ FetchRecordZoneChangesOperation) RecordZoneIDs() []RecordZoneID { - rv := objc.Call[[]RecordZoneID](f_, objc.Sel("recordZoneIDs")) - return rv -} - -// The IDs of the record zones that contain the records to fetch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonechangesoperation/1640463-recordzoneids?language=objc -func (f_ FetchRecordZoneChangesOperation) SetRecordZoneIDs(value []IRecordZoneID) { - objc.Call[objc.Void](f_, objc.Sel("setRecordZoneIDs:"), value) -} diff --git a/macos/cloudkit/fetch_record_zones_operation.gen.go b/macos/cloudkit/fetch_record_zones_operation.gen.go index 7530dd81..23e00c58 100644 --- a/macos/cloudkit/fetch_record_zones_operation.gen.go +++ b/macos/cloudkit/fetch_record_zones_operation.gen.go @@ -19,12 +19,12 @@ type _FetchRecordZonesOperationClass struct { // An interface definition for the [FetchRecordZonesOperation] class. type IFetchRecordZonesOperation interface { IDatabaseOperation - PerRecordZoneCompletionBlock() func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error) - SetPerRecordZoneCompletionBlock(value func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error)) FetchRecordZonesCompletionBlock() func(recordZonesByZoneID foundation.Dictionary, operationError foundation.Error) SetFetchRecordZonesCompletionBlock(value func(recordZonesByZoneID foundation.Dictionary, operationError foundation.Error)) RecordZoneIDs() []RecordZoneID SetRecordZoneIDs(value []IRecordZoneID) + PerRecordZoneCompletionBlock() func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error) + SetPerRecordZoneCompletionBlock(value func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error)) } // An operation for retrieving record zones from a database. [Full Topic] @@ -54,11 +54,6 @@ func NewFetchRecordZonesOperationWithRecordZoneIDs(zoneIDs []IRecordZoneID) Fetc return instance } -func (f_ FetchRecordZonesOperation) Init() FetchRecordZonesOperation { - rv := objc.Call[FetchRecordZonesOperation](f_, objc.Sel("init")) - return rv -} - func (fc _FetchRecordZonesOperationClass) FetchAllRecordZonesOperation() FetchRecordZonesOperation { rv := objc.Call[FetchRecordZonesOperation](fc, objc.Sel("fetchAllRecordZonesOperation")) return rv @@ -71,6 +66,11 @@ func FetchRecordZonesOperation_FetchAllRecordZonesOperation() FetchRecordZonesOp return FetchRecordZonesOperationClass.FetchAllRecordZonesOperation() } +func (f_ FetchRecordZonesOperation) Init() FetchRecordZonesOperation { + rv := objc.Call[FetchRecordZonesOperation](f_, objc.Sel("init")) + return rv +} + func (fc _FetchRecordZonesOperationClass) Alloc() FetchRecordZonesOperation { rv := objc.Call[FetchRecordZonesOperation](fc, objc.Sel("alloc")) return rv @@ -86,21 +86,6 @@ func NewFetchRecordZonesOperation() FetchRecordZonesOperation { return FetchRecordZonesOperationClass.New() } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonesoperation/3793699-perrecordzonecompletionblock?language=objc -func (f_ FetchRecordZonesOperation) PerRecordZoneCompletionBlock() func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error) { - rv := objc.Call[func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error)](f_, objc.Sel("perRecordZoneCompletionBlock")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonesoperation/3793699-perrecordzonecompletionblock?language=objc -func (f_ FetchRecordZonesOperation) SetPerRecordZoneCompletionBlock(value func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("setPerRecordZoneCompletionBlock:"), value) -} - // The block to execute after CloudKit retrieves all of the record zones. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonesoperation/1515145-fetchrecordzonescompletionblock?language=objc @@ -130,3 +115,18 @@ func (f_ FetchRecordZonesOperation) RecordZoneIDs() []RecordZoneID { func (f_ FetchRecordZonesOperation) SetRecordZoneIDs(value []IRecordZoneID) { objc.Call[objc.Void](f_, objc.Sel("setRecordZoneIDs:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonesoperation/3793699-perrecordzonecompletionblock?language=objc +func (f_ FetchRecordZonesOperation) PerRecordZoneCompletionBlock() func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error) { + rv := objc.Call[func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error)](f_, objc.Sel("perRecordZoneCompletionBlock")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordzonesoperation/3793699-perrecordzonecompletionblock?language=objc +func (f_ FetchRecordZonesOperation) SetPerRecordZoneCompletionBlock(value func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("setPerRecordZoneCompletionBlock:"), value) +} diff --git a/macos/cloudkit/fetch_records_operation.gen.go b/macos/cloudkit/fetch_records_operation.gen.go index bbbd33ec..1a77efa1 100644 --- a/macos/cloudkit/fetch_records_operation.gen.go +++ b/macos/cloudkit/fetch_records_operation.gen.go @@ -19,16 +19,16 @@ type _FetchRecordsOperationClass struct { // An interface definition for the [FetchRecordsOperation] class. type IFetchRecordsOperation interface { IDatabaseOperation - PerRecordProgressBlock() func(recordID RecordID, progress float64) - SetPerRecordProgressBlock(value func(recordID RecordID, progress float64)) - PerRecordCompletionBlock() func(record Record, recordID RecordID, error foundation.Error) - SetPerRecordCompletionBlock(value func(record Record, recordID RecordID, error foundation.Error)) FetchRecordsCompletionBlock() func(recordsByRecordID foundation.Dictionary, operationError foundation.Error) SetFetchRecordsCompletionBlock(value func(recordsByRecordID foundation.Dictionary, operationError foundation.Error)) - DesiredKeys() []RecordFieldKey - SetDesiredKeys(value []RecordFieldKey) RecordIDs() []RecordID SetRecordIDs(value []IRecordID) + PerRecordCompletionBlock() func(record Record, recordID RecordID, error foundation.Error) + SetPerRecordCompletionBlock(value func(record Record, recordID RecordID, error foundation.Error)) + PerRecordProgressBlock() func(recordID RecordID, progress float64) + SetPerRecordProgressBlock(value func(recordID RecordID, progress float64)) + DesiredKeys() []RecordFieldKey + SetDesiredKeys(value []RecordFieldKey) } // An operation for retrieving records from a database. [Full Topic] @@ -44,16 +44,18 @@ func FetchRecordsOperationFrom(ptr unsafe.Pointer) FetchRecordsOperation { } } -func (fc _FetchRecordsOperationClass) FetchCurrentUserRecordOperation() FetchRecordsOperation { - rv := objc.Call[FetchRecordsOperation](fc, objc.Sel("fetchCurrentUserRecordOperation")) +func (f_ FetchRecordsOperation) InitWithRecordIDs(recordIDs []IRecordID) FetchRecordsOperation { + rv := objc.Call[FetchRecordsOperation](f_, objc.Sel("initWithRecordIDs:"), recordIDs) return rv } -// Returns a fetch operation for retrieving the current user record. [Full Topic] +// Creates a fetch operation for retrieving the records with the specified IDs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476070-fetchcurrentuserrecordoperation?language=objc -func FetchRecordsOperation_FetchCurrentUserRecordOperation() FetchRecordsOperation { - return FetchRecordsOperationClass.FetchCurrentUserRecordOperation() +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476074-initwithrecordids?language=objc +func NewFetchRecordsOperationWithRecordIDs(recordIDs []IRecordID) FetchRecordsOperation { + instance := FetchRecordsOperationClass.Alloc().InitWithRecordIDs(recordIDs) + instance.Autorelease() + return instance } func (f_ FetchRecordsOperation) Init() FetchRecordsOperation { @@ -61,18 +63,16 @@ func (f_ FetchRecordsOperation) Init() FetchRecordsOperation { return rv } -func (f_ FetchRecordsOperation) InitWithRecordIDs(recordIDs []IRecordID) FetchRecordsOperation { - rv := objc.Call[FetchRecordsOperation](f_, objc.Sel("initWithRecordIDs:"), recordIDs) +func (fc _FetchRecordsOperationClass) FetchCurrentUserRecordOperation() FetchRecordsOperation { + rv := objc.Call[FetchRecordsOperation](fc, objc.Sel("fetchCurrentUserRecordOperation")) return rv } -// Creates a fetch operation for retrieving the records with the specified IDs. [Full Topic] +// Returns a fetch operation for retrieving the current user record. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476074-initwithrecordids?language=objc -func NewFetchRecordsOperationWithRecordIDs(recordIDs []IRecordID) FetchRecordsOperation { - instance := FetchRecordsOperationClass.Alloc().InitWithRecordIDs(recordIDs) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476070-fetchcurrentuserrecordoperation?language=objc +func FetchRecordsOperation_FetchCurrentUserRecordOperation() FetchRecordsOperation { + return FetchRecordsOperationClass.FetchCurrentUserRecordOperation() } func (fc _FetchRecordsOperationClass) Alloc() FetchRecordsOperation { @@ -90,19 +90,34 @@ func NewFetchRecordsOperation() FetchRecordsOperation { return FetchRecordsOperationClass.New() } -// The block to execute with progress information for individual records. [Full Topic] +// The block to execute after CloudKit retrieves all of the records. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476080-perrecordprogressblock?language=objc -func (f_ FetchRecordsOperation) PerRecordProgressBlock() func(recordID RecordID, progress float64) { - rv := objc.Call[func(recordID RecordID, progress float64)](f_, objc.Sel("perRecordProgressBlock")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476078-fetchrecordscompletionblock?language=objc +func (f_ FetchRecordsOperation) FetchRecordsCompletionBlock() func(recordsByRecordID foundation.Dictionary, operationError foundation.Error) { + rv := objc.Call[func(recordsByRecordID foundation.Dictionary, operationError foundation.Error)](f_, objc.Sel("fetchRecordsCompletionBlock")) return rv } -// The block to execute with progress information for individual records. [Full Topic] +// The block to execute after CloudKit retrieves all of the records. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476080-perrecordprogressblock?language=objc -func (f_ FetchRecordsOperation) SetPerRecordProgressBlock(value func(recordID RecordID, progress float64)) { - objc.Call[objc.Void](f_, objc.Sel("setPerRecordProgressBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476078-fetchrecordscompletionblock?language=objc +func (f_ FetchRecordsOperation) SetFetchRecordsCompletionBlock(value func(recordsByRecordID foundation.Dictionary, operationError foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("setFetchRecordsCompletionBlock:"), value) +} + +// The record IDs of the records to fetch. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476076-recordids?language=objc +func (f_ FetchRecordsOperation) RecordIDs() []RecordID { + rv := objc.Call[[]RecordID](f_, objc.Sel("recordIDs")) + return rv +} + +// The record IDs of the records to fetch. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476076-recordids?language=objc +func (f_ FetchRecordsOperation) SetRecordIDs(value []IRecordID) { + objc.Call[objc.Void](f_, objc.Sel("setRecordIDs:"), value) } // The block to execute when a record becomes available. [Full Topic] @@ -120,19 +135,19 @@ func (f_ FetchRecordsOperation) SetPerRecordCompletionBlock(value func(record Re objc.Call[objc.Void](f_, objc.Sel("setPerRecordCompletionBlock:"), value) } -// The block to execute after CloudKit retrieves all of the records. [Full Topic] +// The block to execute with progress information for individual records. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476078-fetchrecordscompletionblock?language=objc -func (f_ FetchRecordsOperation) FetchRecordsCompletionBlock() func(recordsByRecordID foundation.Dictionary, operationError foundation.Error) { - rv := objc.Call[func(recordsByRecordID foundation.Dictionary, operationError foundation.Error)](f_, objc.Sel("fetchRecordsCompletionBlock")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476080-perrecordprogressblock?language=objc +func (f_ FetchRecordsOperation) PerRecordProgressBlock() func(recordID RecordID, progress float64) { + rv := objc.Call[func(recordID RecordID, progress float64)](f_, objc.Sel("perRecordProgressBlock")) return rv } -// The block to execute after CloudKit retrieves all of the records. [Full Topic] +// The block to execute with progress information for individual records. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476078-fetchrecordscompletionblock?language=objc -func (f_ FetchRecordsOperation) SetFetchRecordsCompletionBlock(value func(recordsByRecordID foundation.Dictionary, operationError foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("setFetchRecordsCompletionBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476080-perrecordprogressblock?language=objc +func (f_ FetchRecordsOperation) SetPerRecordProgressBlock(value func(recordID RecordID, progress float64)) { + objc.Call[objc.Void](f_, objc.Sel("setPerRecordProgressBlock:"), value) } // The fields of the records to fetch. [Full Topic] @@ -149,18 +164,3 @@ func (f_ FetchRecordsOperation) DesiredKeys() []RecordFieldKey { func (f_ FetchRecordsOperation) SetDesiredKeys(value []RecordFieldKey) { objc.Call[objc.Void](f_, objc.Sel("setDesiredKeys:"), value) } - -// The record IDs of the records to fetch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476076-recordids?language=objc -func (f_ FetchRecordsOperation) RecordIDs() []RecordID { - rv := objc.Call[[]RecordID](f_, objc.Sel("recordIDs")) - return rv -} - -// The record IDs of the records to fetch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchrecordsoperation/1476076-recordids?language=objc -func (f_ FetchRecordsOperation) SetRecordIDs(value []IRecordID) { - objc.Call[objc.Void](f_, objc.Sel("setRecordIDs:"), value) -} diff --git a/macos/cloudkit/fetch_share_metadata_operation.gen.go b/macos/cloudkit/fetch_share_metadata_operation.gen.go index f608e222..04bd6b4f 100644 --- a/macos/cloudkit/fetch_share_metadata_operation.gen.go +++ b/macos/cloudkit/fetch_share_metadata_operation.gen.go @@ -19,16 +19,16 @@ type _FetchShareMetadataOperationClass struct { // An interface definition for the [FetchShareMetadataOperation] class. type IFetchShareMetadataOperation interface { IOperation - PerShareMetadataBlock() func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error) - SetPerShareMetadataBlock(value func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error)) RootRecordDesiredKeys() []RecordFieldKey SetRootRecordDesiredKeys(value []RecordFieldKey) FetchShareMetadataCompletionBlock() func(operationError foundation.Error) SetFetchShareMetadataCompletionBlock(value func(operationError foundation.Error)) - ShouldFetchRootRecord() bool - SetShouldFetchRootRecord(value bool) ShareURLs() []foundation.URL SetShareURLs(value []foundation.IURL) + PerShareMetadataBlock() func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error) + SetPerShareMetadataBlock(value func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error)) + ShouldFetchRootRecord() bool + SetShouldFetchRootRecord(value bool) } // An operation that fetches metadata for one or more shares. [Full Topic] @@ -78,21 +78,6 @@ func NewFetchShareMetadataOperation() FetchShareMetadataOperation { return FetchShareMetadataOperationClass.New() } -// The block to execute as the operation fetches individual shares. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640447-persharemetadatablock?language=objc -func (f_ FetchShareMetadataOperation) PerShareMetadataBlock() func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error) { - rv := objc.Call[func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error)](f_, objc.Sel("perShareMetadataBlock")) - return rv -} - -// The block to execute as the operation fetches individual shares. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640447-persharemetadatablock?language=objc -func (f_ FetchShareMetadataOperation) SetPerShareMetadataBlock(value func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("setPerShareMetadataBlock:"), value) -} - // The fields to return when fetching the root record. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640375-rootrecorddesiredkeys?language=objc @@ -123,21 +108,6 @@ func (f_ FetchShareMetadataOperation) SetFetchShareMetadataCompletionBlock(value objc.Call[objc.Void](f_, objc.Sel("setFetchShareMetadataCompletionBlock:"), value) } -// A Boolean value that indicates whether to retrieve the root record. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640519-shouldfetchrootrecord?language=objc -func (f_ FetchShareMetadataOperation) ShouldFetchRootRecord() bool { - rv := objc.Call[bool](f_, objc.Sel("shouldFetchRootRecord")) - return rv -} - -// A Boolean value that indicates whether to retrieve the root record. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640519-shouldfetchrootrecord?language=objc -func (f_ FetchShareMetadataOperation) SetShouldFetchRootRecord(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setShouldFetchRootRecord:"), value) -} - // The URLs of the shares to fetch. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640508-shareurls?language=objc @@ -152,3 +122,33 @@ func (f_ FetchShareMetadataOperation) ShareURLs() []foundation.URL { func (f_ FetchShareMetadataOperation) SetShareURLs(value []foundation.IURL) { objc.Call[objc.Void](f_, objc.Sel("setShareURLs:"), value) } + +// The block to execute as the operation fetches individual shares. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640447-persharemetadatablock?language=objc +func (f_ FetchShareMetadataOperation) PerShareMetadataBlock() func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error) { + rv := objc.Call[func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error)](f_, objc.Sel("perShareMetadataBlock")) + return rv +} + +// The block to execute as the operation fetches individual shares. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640447-persharemetadatablock?language=objc +func (f_ FetchShareMetadataOperation) SetPerShareMetadataBlock(value func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("setPerShareMetadataBlock:"), value) +} + +// A Boolean value that indicates whether to retrieve the root record. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640519-shouldfetchrootrecord?language=objc +func (f_ FetchShareMetadataOperation) ShouldFetchRootRecord() bool { + rv := objc.Call[bool](f_, objc.Sel("shouldFetchRootRecord")) + return rv +} + +// A Boolean value that indicates whether to retrieve the root record. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640519-shouldfetchrootrecord?language=objc +func (f_ FetchShareMetadataOperation) SetShouldFetchRootRecord(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setShouldFetchRootRecord:"), value) +} diff --git a/macos/cloudkit/fetch_share_participants_operation.gen.go b/macos/cloudkit/fetch_share_participants_operation.gen.go index 9a6f2a0c..b712d9e5 100644 --- a/macos/cloudkit/fetch_share_participants_operation.gen.go +++ b/macos/cloudkit/fetch_share_participants_operation.gen.go @@ -19,12 +19,12 @@ type _FetchShareParticipantsOperationClass struct { // An interface definition for the [FetchShareParticipantsOperation] class. type IFetchShareParticipantsOperation interface { IOperation + UserIdentityLookupInfos() []UserIdentityLookupInfo + SetUserIdentityLookupInfos(value []IUserIdentityLookupInfo) FetchShareParticipantsCompletionBlock() func(operationError foundation.Error) SetFetchShareParticipantsCompletionBlock(value func(operationError foundation.Error)) PerShareParticipantCompletionBlock() func(lookupInfo UserIdentityLookupInfo, participant ShareParticipant, error foundation.Error) SetPerShareParticipantCompletionBlock(value func(lookupInfo UserIdentityLookupInfo, participant ShareParticipant, error foundation.Error)) - UserIdentityLookupInfos() []UserIdentityLookupInfo - SetUserIdentityLookupInfos(value []IUserIdentityLookupInfo) } // An operation that converts user identities into share participants. [Full Topic] @@ -40,11 +40,6 @@ func FetchShareParticipantsOperationFrom(ptr unsafe.Pointer) FetchShareParticipa } } -func (f_ FetchShareParticipantsOperation) Init() FetchShareParticipantsOperation { - rv := objc.Call[FetchShareParticipantsOperation](f_, objc.Sel("init")) - return rv -} - func (f_ FetchShareParticipantsOperation) InitWithUserIdentityLookupInfos(userIdentityLookupInfos []IUserIdentityLookupInfo) FetchShareParticipantsOperation { rv := objc.Call[FetchShareParticipantsOperation](f_, objc.Sel("initWithUserIdentityLookupInfos:"), userIdentityLookupInfos) return rv @@ -59,6 +54,11 @@ func NewFetchShareParticipantsOperationWithUserIdentityLookupInfos(userIdentityL return instance } +func (f_ FetchShareParticipantsOperation) Init() FetchShareParticipantsOperation { + rv := objc.Call[FetchShareParticipantsOperation](f_, objc.Sel("init")) + return rv +} + func (fc _FetchShareParticipantsOperationClass) Alloc() FetchShareParticipantsOperation { rv := objc.Call[FetchShareParticipantsOperation](fc, objc.Sel("alloc")) return rv @@ -74,6 +74,21 @@ func NewFetchShareParticipantsOperation() FetchShareParticipantsOperation { return FetchShareParticipantsOperationClass.New() } +// The user data for the participants. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchshareparticipantsoperation/1640380-useridentitylookupinfos?language=objc +func (f_ FetchShareParticipantsOperation) UserIdentityLookupInfos() []UserIdentityLookupInfo { + rv := objc.Call[[]UserIdentityLookupInfo](f_, objc.Sel("userIdentityLookupInfos")) + return rv +} + +// The user data for the participants. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchshareparticipantsoperation/1640380-useridentitylookupinfos?language=objc +func (f_ FetchShareParticipantsOperation) SetUserIdentityLookupInfos(value []IUserIdentityLookupInfo) { + objc.Call[objc.Void](f_, objc.Sel("setUserIdentityLookupInfos:"), value) +} + // The block to execute when the operation finishes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchshareparticipantsoperation/1640529-fetchshareparticipantscompletion?language=objc @@ -103,18 +118,3 @@ func (f_ FetchShareParticipantsOperation) PerShareParticipantCompletionBlock() f func (f_ FetchShareParticipantsOperation) SetPerShareParticipantCompletionBlock(value func(lookupInfo UserIdentityLookupInfo, participant ShareParticipant, error foundation.Error)) { objc.Call[objc.Void](f_, objc.Sel("setPerShareParticipantCompletionBlock:"), value) } - -// The user data for the participants. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchshareparticipantsoperation/1640380-useridentitylookupinfos?language=objc -func (f_ FetchShareParticipantsOperation) UserIdentityLookupInfos() []UserIdentityLookupInfo { - rv := objc.Call[[]UserIdentityLookupInfo](f_, objc.Sel("userIdentityLookupInfos")) - return rv -} - -// The user data for the participants. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchshareparticipantsoperation/1640380-useridentitylookupinfos?language=objc -func (f_ FetchShareParticipantsOperation) SetUserIdentityLookupInfos(value []IUserIdentityLookupInfo) { - objc.Call[objc.Void](f_, objc.Sel("setUserIdentityLookupInfos:"), value) -} diff --git a/macos/cloudkit/fetch_subscriptions_operation.gen.go b/macos/cloudkit/fetch_subscriptions_operation.gen.go index f49c7021..b9624e93 100644 --- a/macos/cloudkit/fetch_subscriptions_operation.gen.go +++ b/macos/cloudkit/fetch_subscriptions_operation.gen.go @@ -19,12 +19,12 @@ type _FetchSubscriptionsOperationClass struct { // An interface definition for the [FetchSubscriptionsOperation] class. type IFetchSubscriptionsOperation interface { IDatabaseOperation + FetchSubscriptionCompletionBlock() func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error) + SetFetchSubscriptionCompletionBlock(value func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error)) PerSubscriptionCompletionBlock() func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error) SetPerSubscriptionCompletionBlock(value func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error)) SubscriptionIDs() []SubscriptionID SetSubscriptionIDs(value []SubscriptionID) - FetchSubscriptionCompletionBlock() func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error) - SetFetchSubscriptionCompletionBlock(value func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error)) } // An operation for fetching subscriptions. [Full Topic] @@ -52,11 +52,6 @@ func FetchSubscriptionsOperation_FetchAllSubscriptionsOperation() FetchSubscript return FetchSubscriptionsOperationClass.FetchAllSubscriptionsOperation() } -func (f_ FetchSubscriptionsOperation) Init() FetchSubscriptionsOperation { - rv := objc.Call[FetchSubscriptionsOperation](f_, objc.Sel("init")) - return rv -} - func (f_ FetchSubscriptionsOperation) InitWithSubscriptionIDs(subscriptionIDs []SubscriptionID) FetchSubscriptionsOperation { rv := objc.Call[FetchSubscriptionsOperation](f_, objc.Sel("initWithSubscriptionIDs:"), subscriptionIDs) return rv @@ -71,6 +66,11 @@ func NewFetchSubscriptionsOperationWithSubscriptionIDs(subscriptionIDs []Subscri return instance } +func (f_ FetchSubscriptionsOperation) Init() FetchSubscriptionsOperation { + rv := objc.Call[FetchSubscriptionsOperation](f_, objc.Sel("init")) + return rv +} + func (fc _FetchSubscriptionsOperationClass) Alloc() FetchSubscriptionsOperation { rv := objc.Call[FetchSubscriptionsOperation](fc, objc.Sel("alloc")) return rv @@ -86,6 +86,21 @@ func NewFetchSubscriptionsOperation() FetchSubscriptionsOperation { return FetchSubscriptionsOperationClass.New() } +// The block to execute after the operation fetches the subscriptions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsubscriptionsoperation/1515261-fetchsubscriptioncompletionblock?language=objc +func (f_ FetchSubscriptionsOperation) FetchSubscriptionCompletionBlock() func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error) { + rv := objc.Call[func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error)](f_, objc.Sel("fetchSubscriptionCompletionBlock")) + return rv +} + +// The block to execute after the operation fetches the subscriptions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsubscriptionsoperation/1515261-fetchsubscriptioncompletionblock?language=objc +func (f_ FetchSubscriptionsOperation) SetFetchSubscriptionCompletionBlock(value func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("setFetchSubscriptionCompletionBlock:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsubscriptionsoperation/3793701-persubscriptioncompletionblock?language=objc @@ -115,18 +130,3 @@ func (f_ FetchSubscriptionsOperation) SubscriptionIDs() []SubscriptionID { func (f_ FetchSubscriptionsOperation) SetSubscriptionIDs(value []SubscriptionID) { objc.Call[objc.Void](f_, objc.Sel("setSubscriptionIDs:"), value) } - -// The block to execute after the operation fetches the subscriptions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsubscriptionsoperation/1515261-fetchsubscriptioncompletionblock?language=objc -func (f_ FetchSubscriptionsOperation) FetchSubscriptionCompletionBlock() func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error) { - rv := objc.Call[func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error)](f_, objc.Sel("fetchSubscriptionCompletionBlock")) - return rv -} - -// The block to execute after the operation fetches the subscriptions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsubscriptionsoperation/1515261-fetchsubscriptioncompletionblock?language=objc -func (f_ FetchSubscriptionsOperation) SetFetchSubscriptionCompletionBlock(value func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("setFetchSubscriptionCompletionBlock:"), value) -} diff --git a/macos/cloudkit/fetch_web_auth_token_operation.gen.go b/macos/cloudkit/fetch_web_auth_token_operation.gen.go index 7d407c7a..2f80d977 100644 --- a/macos/cloudkit/fetch_web_auth_token_operation.gen.go +++ b/macos/cloudkit/fetch_web_auth_token_operation.gen.go @@ -19,10 +19,10 @@ type _FetchWebAuthTokenOperationClass struct { // An interface definition for the [FetchWebAuthTokenOperation] class. type IFetchWebAuthTokenOperation interface { IDatabaseOperation - APIToken() string - SetAPIToken(value string) FetchWebAuthTokenCompletionBlock() func(webAuthToken string, operationError foundation.Error) SetFetchWebAuthTokenCompletionBlock(value func(webAuthToken string, operationError foundation.Error)) + APIToken() string + SetAPIToken(value string) } // An operation that creates an authentication token for use with CloudKit web services. [Full Topic] @@ -38,11 +38,6 @@ func FetchWebAuthTokenOperationFrom(ptr unsafe.Pointer) FetchWebAuthTokenOperati } } -func (f_ FetchWebAuthTokenOperation) Init() FetchWebAuthTokenOperation { - rv := objc.Call[FetchWebAuthTokenOperation](f_, objc.Sel("init")) - return rv -} - func (f_ FetchWebAuthTokenOperation) InitWithAPIToken(APIToken string) FetchWebAuthTokenOperation { rv := objc.Call[FetchWebAuthTokenOperation](f_, objc.Sel("initWithAPIToken:"), APIToken) return rv @@ -57,6 +52,11 @@ func NewFetchWebAuthTokenOperationWithAPIToken(APIToken string) FetchWebAuthToke return instance } +func (f_ FetchWebAuthTokenOperation) Init() FetchWebAuthTokenOperation { + rv := objc.Call[FetchWebAuthTokenOperation](f_, objc.Sel("init")) + return rv +} + func (fc _FetchWebAuthTokenOperationClass) Alloc() FetchWebAuthTokenOperation { rv := objc.Call[FetchWebAuthTokenOperation](fc, objc.Sel("alloc")) return rv @@ -72,21 +72,6 @@ func NewFetchWebAuthTokenOperation() FetchWebAuthTokenOperation { return FetchWebAuthTokenOperationClass.New() } -// The API token that allows access to an app’s container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchwebauthtokenoperation/1515095-apitoken?language=objc -func (f_ FetchWebAuthTokenOperation) APIToken() string { - rv := objc.Call[string](f_, objc.Sel("APIToken")) - return rv -} - -// The API token that allows access to an app’s container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchwebauthtokenoperation/1515095-apitoken?language=objc -func (f_ FetchWebAuthTokenOperation) SetAPIToken(value string) { - objc.Call[objc.Void](f_, objc.Sel("setAPIToken:"), value) -} - // The block to execute when the operation finishes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchwebauthtokenoperation/1514980-fetchwebauthtokencompletionblock?language=objc @@ -101,3 +86,18 @@ func (f_ FetchWebAuthTokenOperation) FetchWebAuthTokenCompletionBlock() func(web func (f_ FetchWebAuthTokenOperation) SetFetchWebAuthTokenCompletionBlock(value func(webAuthToken string, operationError foundation.Error)) { objc.Call[objc.Void](f_, objc.Sel("setFetchWebAuthTokenCompletionBlock:"), value) } + +// The API token that allows access to an app’s container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchwebauthtokenoperation/1515095-apitoken?language=objc +func (f_ FetchWebAuthTokenOperation) APIToken() string { + rv := objc.Call[string](f_, objc.Sel("APIToken")) + return rv +} + +// The API token that allows access to an app’s container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchwebauthtokenoperation/1515095-apitoken?language=objc +func (f_ FetchWebAuthTokenOperation) SetAPIToken(value string) { + objc.Call[objc.Void](f_, objc.Sel("setAPIToken:"), value) +} diff --git a/macos/cloudkit/location_sort_descriptor.gen.go b/macos/cloudkit/location_sort_descriptor.gen.go index cf8c4b42..4cf7b30e 100644 --- a/macos/cloudkit/location_sort_descriptor.gen.go +++ b/macos/cloudkit/location_sort_descriptor.gen.go @@ -69,58 +69,6 @@ func (l_ LocationSortDescriptor) Init() LocationSortDescriptor { return rv } -func (l_ LocationSortDescriptor) InitWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) LocationSortDescriptor { - rv := objc.Call[LocationSortDescriptor](l_, objc.Sel("initWithKey:ascending:selector:"), key, ascending, selector) - return rv -} - -// Creates a sort descriptor with a specified string key path, ordering, and comparison selector. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1412495-initwithkey?language=objc -func NewLocationSortDescriptorWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) LocationSortDescriptor { - instance := LocationSortDescriptorClass.Alloc().InitWithKeyAscendingSelector(key, ascending, selector) - instance.Autorelease() - return instance -} - -func (lc _LocationSortDescriptorClass) SortDescriptorWithKeyAscending(key string, ascending bool) LocationSortDescriptor { - rv := objc.Call[LocationSortDescriptor](lc, objc.Sel("sortDescriptorWithKey:ascending:"), key, ascending) - return rv -} - -// Creates and returns a sort descriptor with the specified key path and ordering. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1503726-sortdescriptorwithkey?language=objc -func LocationSortDescriptor_SortDescriptorWithKeyAscending(key string, ascending bool) LocationSortDescriptor { - return LocationSortDescriptorClass.SortDescriptorWithKeyAscending(key, ascending) -} - -func (lc _LocationSortDescriptorClass) SortDescriptorWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) LocationSortDescriptor { - rv := objc.Call[LocationSortDescriptor](lc, objc.Sel("sortDescriptorWithKey:ascending:selector:"), key, ascending, selector) - return rv -} - -// Creates a sort descriptor with the specified key path, ordering, and comparison selector. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1503730-sortdescriptorwithkey?language=objc -func LocationSortDescriptor_SortDescriptorWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) LocationSortDescriptor { - return LocationSortDescriptorClass.SortDescriptorWithKeyAscendingSelector(key, ascending, selector) -} - -func (l_ LocationSortDescriptor) InitWithKeyAscendingComparator(key string, ascending bool, cmptr foundation.Comparator) LocationSortDescriptor { - rv := objc.Call[LocationSortDescriptor](l_, objc.Sel("initWithKey:ascending:comparator:"), key, ascending, cmptr) - return rv -} - -// Creates a sort descriptor with a specified string key path and ordering, and a comparator block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1411607-initwithkey?language=objc -func NewLocationSortDescriptorWithKeyAscendingComparator(key string, ascending bool, cmptr foundation.Comparator) LocationSortDescriptor { - instance := LocationSortDescriptorClass.Alloc().InitWithKeyAscendingComparator(key, ascending, cmptr) - instance.Autorelease() - return instance -} - func (lc _LocationSortDescriptorClass) SortDescriptorWithKeyAscendingComparator(key string, ascending bool, cmptr foundation.Comparator) LocationSortDescriptor { rv := objc.Call[LocationSortDescriptor](lc, objc.Sel("sortDescriptorWithKey:ascending:comparator:"), key, ascending, cmptr) return rv diff --git a/macos/cloudkit/modify_record_zones_operation.gen.go b/macos/cloudkit/modify_record_zones_operation.gen.go index 772537c4..794b9676 100644 --- a/macos/cloudkit/modify_record_zones_operation.gen.go +++ b/macos/cloudkit/modify_record_zones_operation.gen.go @@ -19,16 +19,16 @@ type _ModifyRecordZonesOperationClass struct { // An interface definition for the [ModifyRecordZonesOperation] class. type IModifyRecordZonesOperation interface { IDatabaseOperation - ModifyRecordZonesCompletionBlock() func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error) - SetModifyRecordZonesCompletionBlock(value func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error)) RecordZonesToSave() []RecordZone SetRecordZonesToSave(value []IRecordZone) PerRecordZoneDeleteBlock() func(recordZoneID RecordZoneID, error foundation.Error) SetPerRecordZoneDeleteBlock(value func(recordZoneID RecordZoneID, error foundation.Error)) - PerRecordZoneSaveBlock() func(recordZoneID RecordZoneID, recordZone RecordZone, error foundation.Error) - SetPerRecordZoneSaveBlock(value func(recordZoneID RecordZoneID, recordZone RecordZone, error foundation.Error)) RecordZoneIDsToDelete() []RecordZoneID SetRecordZoneIDsToDelete(value []IRecordZoneID) + PerRecordZoneSaveBlock() func(recordZoneID RecordZoneID, recordZone RecordZone, error foundation.Error) + SetPerRecordZoneSaveBlock(value func(recordZoneID RecordZoneID, recordZone RecordZone, error foundation.Error)) + ModifyRecordZonesCompletionBlock() func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error) + SetModifyRecordZonesCompletionBlock(value func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error)) } // An operation that modifies one or more record zones. [Full Topic] @@ -78,21 +78,6 @@ func NewModifyRecordZonesOperation() ModifyRecordZonesOperation { return ModifyRecordZonesOperationClass.New() } -// The block to execute after CloudKit modifies all of the record zones. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordzonesoperation/1415164-modifyrecordzonescompletionblock?language=objc -func (m_ ModifyRecordZonesOperation) ModifyRecordZonesCompletionBlock() func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error) { - rv := objc.Call[func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error)](m_, objc.Sel("modifyRecordZonesCompletionBlock")) - return rv -} - -// The block to execute after CloudKit modifies all of the record zones. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordzonesoperation/1415164-modifyrecordzonescompletionblock?language=objc -func (m_ ModifyRecordZonesOperation) SetModifyRecordZonesCompletionBlock(value func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error)) { - objc.Call[objc.Void](m_, objc.Sel("setModifyRecordZonesCompletionBlock:"), value) -} - // The record zones to save to the database. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordzonesoperation/1415171-recordzonestosave?language=objc @@ -123,6 +108,21 @@ func (m_ ModifyRecordZonesOperation) SetPerRecordZoneDeleteBlock(value func(reco objc.Call[objc.Void](m_, objc.Sel("setPerRecordZoneDeleteBlock:"), value) } +// The IDs of the record zones to delete permanently from the database. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordzonesoperation/1415173-recordzoneidstodelete?language=objc +func (m_ ModifyRecordZonesOperation) RecordZoneIDsToDelete() []RecordZoneID { + rv := objc.Call[[]RecordZoneID](m_, objc.Sel("recordZoneIDsToDelete")) + return rv +} + +// The IDs of the record zones to delete permanently from the database. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordzonesoperation/1415173-recordzoneidstodelete?language=objc +func (m_ ModifyRecordZonesOperation) SetRecordZoneIDsToDelete(value []IRecordZoneID) { + objc.Call[objc.Void](m_, objc.Sel("setRecordZoneIDsToDelete:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordzonesoperation/3793703-perrecordzonesaveblock?language=objc @@ -138,17 +138,17 @@ func (m_ ModifyRecordZonesOperation) SetPerRecordZoneSaveBlock(value func(record objc.Call[objc.Void](m_, objc.Sel("setPerRecordZoneSaveBlock:"), value) } -// The IDs of the record zones to delete permanently from the database. [Full Topic] +// The block to execute after CloudKit modifies all of the record zones. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordzonesoperation/1415173-recordzoneidstodelete?language=objc -func (m_ ModifyRecordZonesOperation) RecordZoneIDsToDelete() []RecordZoneID { - rv := objc.Call[[]RecordZoneID](m_, objc.Sel("recordZoneIDsToDelete")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordzonesoperation/1415164-modifyrecordzonescompletionblock?language=objc +func (m_ ModifyRecordZonesOperation) ModifyRecordZonesCompletionBlock() func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error) { + rv := objc.Call[func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error)](m_, objc.Sel("modifyRecordZonesCompletionBlock")) return rv } -// The IDs of the record zones to delete permanently from the database. [Full Topic] +// The block to execute after CloudKit modifies all of the record zones. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordzonesoperation/1415173-recordzoneidstodelete?language=objc -func (m_ ModifyRecordZonesOperation) SetRecordZoneIDsToDelete(value []IRecordZoneID) { - objc.Call[objc.Void](m_, objc.Sel("setRecordZoneIDsToDelete:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordzonesoperation/1415164-modifyrecordzonescompletionblock?language=objc +func (m_ ModifyRecordZonesOperation) SetModifyRecordZonesCompletionBlock(value func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error)) { + objc.Call[objc.Void](m_, objc.Sel("setModifyRecordZonesCompletionBlock:"), value) } diff --git a/macos/cloudkit/modify_records_operation.gen.go b/macos/cloudkit/modify_records_operation.gen.go index 05c009d6..8773ff24 100644 --- a/macos/cloudkit/modify_records_operation.gen.go +++ b/macos/cloudkit/modify_records_operation.gen.go @@ -19,24 +19,24 @@ type _ModifyRecordsOperationClass struct { // An interface definition for the [ModifyRecordsOperation] class. type IModifyRecordsOperation interface { IDatabaseOperation - ClientChangeTokenData() []byte - SetClientChangeTokenData(value []byte) - PerRecordDeleteBlock() func(recordID RecordID, error foundation.Error) - SetPerRecordDeleteBlock(value func(recordID RecordID, error foundation.Error)) - RecordIDsToDelete() []RecordID - SetRecordIDsToDelete(value []IRecordID) - SavePolicy() RecordSavePolicy - SetSavePolicy(value RecordSavePolicy) RecordsToSave() []Record SetRecordsToSave(value []IRecord) - PerRecordSaveBlock() func(recordID RecordID, record Record, error foundation.Error) - SetPerRecordSaveBlock(value func(recordID RecordID, record Record, error foundation.Error)) - PerRecordProgressBlock() func(record Record, progress float64) - SetPerRecordProgressBlock(value func(record Record, progress float64)) ModifyRecordsCompletionBlock() func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error) SetModifyRecordsCompletionBlock(value func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error)) Atomic() bool SetAtomic(value bool) + PerRecordSaveBlock() func(recordID RecordID, record Record, error foundation.Error) + SetPerRecordSaveBlock(value func(recordID RecordID, record Record, error foundation.Error)) + SavePolicy() RecordSavePolicy + SetSavePolicy(value RecordSavePolicy) + ClientChangeTokenData() []byte + SetClientChangeTokenData(value []byte) + PerRecordDeleteBlock() func(recordID RecordID, error foundation.Error) + SetPerRecordDeleteBlock(value func(recordID RecordID, error foundation.Error)) + PerRecordProgressBlock() func(record Record, progress float64) + SetPerRecordProgressBlock(value func(record Record, progress float64)) + RecordIDsToDelete() []RecordID + SetRecordIDsToDelete(value []IRecordID) } // An operation that modifies one or more records. [Full Topic] @@ -52,11 +52,6 @@ func ModifyRecordsOperationFrom(ptr unsafe.Pointer) ModifyRecordsOperation { } } -func (m_ ModifyRecordsOperation) Init() ModifyRecordsOperation { - rv := objc.Call[ModifyRecordsOperation](m_, objc.Sel("init")) - return rv -} - func (m_ ModifyRecordsOperation) InitWithRecordsToSaveRecordIDsToDelete(records []IRecord, recordIDs []IRecordID) ModifyRecordsOperation { rv := objc.Call[ModifyRecordsOperation](m_, objc.Sel("initWithRecordsToSave:recordIDsToDelete:"), records, recordIDs) return rv @@ -71,6 +66,11 @@ func NewModifyRecordsOperationWithRecordsToSaveRecordIDsToDelete(records []IReco return instance } +func (m_ ModifyRecordsOperation) Init() ModifyRecordsOperation { + rv := objc.Call[ModifyRecordsOperation](m_, objc.Sel("init")) + return rv +} + func (mc _ModifyRecordsOperationClass) Alloc() ModifyRecordsOperation { rv := objc.Call[ModifyRecordsOperation](mc, objc.Sel("alloc")) return rv @@ -86,49 +86,64 @@ func NewModifyRecordsOperation() ModifyRecordsOperation { return ModifyRecordsOperationClass.New() } -// A token that tracks local changes to records. [Full Topic] +// The records to save to the database. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447472-clientchangetokendata?language=objc -func (m_ ModifyRecordsOperation) ClientChangeTokenData() []byte { - rv := objc.Call[[]byte](m_, objc.Sel("clientChangeTokenData")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447482-recordstosave?language=objc +func (m_ ModifyRecordsOperation) RecordsToSave() []Record { + rv := objc.Call[[]Record](m_, objc.Sel("recordsToSave")) return rv } -// A token that tracks local changes to records. [Full Topic] +// The records to save to the database. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447472-clientchangetokendata?language=objc -func (m_ ModifyRecordsOperation) SetClientChangeTokenData(value []byte) { - objc.Call[objc.Void](m_, objc.Sel("setClientChangeTokenData:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447482-recordstosave?language=objc +func (m_ ModifyRecordsOperation) SetRecordsToSave(value []IRecord) { + objc.Call[objc.Void](m_, objc.Sel("setRecordsToSave:"), value) } -// [Full Topic] +// The block to execute after CloudKit modifies all of the records. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/3794356-perrecorddeleteblock?language=objc -func (m_ ModifyRecordsOperation) PerRecordDeleteBlock() func(recordID RecordID, error foundation.Error) { - rv := objc.Call[func(recordID RecordID, error foundation.Error)](m_, objc.Sel("perRecordDeleteBlock")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447486-modifyrecordscompletionblock?language=objc +func (m_ ModifyRecordsOperation) ModifyRecordsCompletionBlock() func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error) { + rv := objc.Call[func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error)](m_, objc.Sel("modifyRecordsCompletionBlock")) return rv } -// [Full Topic] +// The block to execute after CloudKit modifies all of the records. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/3794356-perrecorddeleteblock?language=objc -func (m_ ModifyRecordsOperation) SetPerRecordDeleteBlock(value func(recordID RecordID, error foundation.Error)) { - objc.Call[objc.Void](m_, objc.Sel("setPerRecordDeleteBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447486-modifyrecordscompletionblock?language=objc +func (m_ ModifyRecordsOperation) SetModifyRecordsCompletionBlock(value func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error)) { + objc.Call[objc.Void](m_, objc.Sel("setModifyRecordsCompletionBlock:"), value) } -// The IDs of the records to delete permanently from the database. [Full Topic] +// A Boolean value that indicates whether the entire operation fails when CloudKit can’t update one or more records in a record zone. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447479-recordidstodelete?language=objc -func (m_ ModifyRecordsOperation) RecordIDsToDelete() []RecordID { - rv := objc.Call[[]RecordID](m_, objc.Sel("recordIDsToDelete")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447484-atomic?language=objc +func (m_ ModifyRecordsOperation) Atomic() bool { + rv := objc.Call[bool](m_, objc.Sel("atomic")) return rv } -// The IDs of the records to delete permanently from the database. [Full Topic] +// A Boolean value that indicates whether the entire operation fails when CloudKit can’t update one or more records in a record zone. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447479-recordidstodelete?language=objc -func (m_ ModifyRecordsOperation) SetRecordIDsToDelete(value []IRecordID) { - objc.Call[objc.Void](m_, objc.Sel("setRecordIDsToDelete:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447484-atomic?language=objc +func (m_ ModifyRecordsOperation) SetAtomic(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAtomic:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/3793705-perrecordsaveblock?language=objc +func (m_ ModifyRecordsOperation) PerRecordSaveBlock() func(recordID RecordID, record Record, error foundation.Error) { + rv := objc.Call[func(recordID RecordID, record Record, error foundation.Error)](m_, objc.Sel("perRecordSaveBlock")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/3793705-perrecordsaveblock?language=objc +func (m_ ModifyRecordsOperation) SetPerRecordSaveBlock(value func(recordID RecordID, record Record, error foundation.Error)) { + objc.Call[objc.Void](m_, objc.Sel("setPerRecordSaveBlock:"), value) } // The policy to use when saving changes to records. [Full Topic] @@ -146,34 +161,34 @@ func (m_ ModifyRecordsOperation) SetSavePolicy(value RecordSavePolicy) { objc.Call[objc.Void](m_, objc.Sel("setSavePolicy:"), value) } -// The records to save to the database. [Full Topic] +// A token that tracks local changes to records. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447482-recordstosave?language=objc -func (m_ ModifyRecordsOperation) RecordsToSave() []Record { - rv := objc.Call[[]Record](m_, objc.Sel("recordsToSave")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447472-clientchangetokendata?language=objc +func (m_ ModifyRecordsOperation) ClientChangeTokenData() []byte { + rv := objc.Call[[]byte](m_, objc.Sel("clientChangeTokenData")) return rv } -// The records to save to the database. [Full Topic] +// A token that tracks local changes to records. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447482-recordstosave?language=objc -func (m_ ModifyRecordsOperation) SetRecordsToSave(value []IRecord) { - objc.Call[objc.Void](m_, objc.Sel("setRecordsToSave:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447472-clientchangetokendata?language=objc +func (m_ ModifyRecordsOperation) SetClientChangeTokenData(value []byte) { + objc.Call[objc.Void](m_, objc.Sel("setClientChangeTokenData:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/3793705-perrecordsaveblock?language=objc -func (m_ ModifyRecordsOperation) PerRecordSaveBlock() func(recordID RecordID, record Record, error foundation.Error) { - rv := objc.Call[func(recordID RecordID, record Record, error foundation.Error)](m_, objc.Sel("perRecordSaveBlock")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/3794356-perrecorddeleteblock?language=objc +func (m_ ModifyRecordsOperation) PerRecordDeleteBlock() func(recordID RecordID, error foundation.Error) { + rv := objc.Call[func(recordID RecordID, error foundation.Error)](m_, objc.Sel("perRecordDeleteBlock")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/3793705-perrecordsaveblock?language=objc -func (m_ ModifyRecordsOperation) SetPerRecordSaveBlock(value func(recordID RecordID, record Record, error foundation.Error)) { - objc.Call[objc.Void](m_, objc.Sel("setPerRecordSaveBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/3794356-perrecorddeleteblock?language=objc +func (m_ ModifyRecordsOperation) SetPerRecordDeleteBlock(value func(recordID RecordID, error foundation.Error)) { + objc.Call[objc.Void](m_, objc.Sel("setPerRecordDeleteBlock:"), value) } // The block to execute with progress information for individual records. [Full Topic] @@ -191,32 +206,17 @@ func (m_ ModifyRecordsOperation) SetPerRecordProgressBlock(value func(record Rec objc.Call[objc.Void](m_, objc.Sel("setPerRecordProgressBlock:"), value) } -// The block to execute after CloudKit modifies all of the records. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447486-modifyrecordscompletionblock?language=objc -func (m_ ModifyRecordsOperation) ModifyRecordsCompletionBlock() func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error) { - rv := objc.Call[func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error)](m_, objc.Sel("modifyRecordsCompletionBlock")) - return rv -} - -// The block to execute after CloudKit modifies all of the records. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447486-modifyrecordscompletionblock?language=objc -func (m_ ModifyRecordsOperation) SetModifyRecordsCompletionBlock(value func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error)) { - objc.Call[objc.Void](m_, objc.Sel("setModifyRecordsCompletionBlock:"), value) -} - -// A Boolean value that indicates whether the entire operation fails when CloudKit can’t update one or more records in a record zone. [Full Topic] +// The IDs of the records to delete permanently from the database. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447484-atomic?language=objc -func (m_ ModifyRecordsOperation) Atomic() bool { - rv := objc.Call[bool](m_, objc.Sel("atomic")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447479-recordidstodelete?language=objc +func (m_ ModifyRecordsOperation) RecordIDsToDelete() []RecordID { + rv := objc.Call[[]RecordID](m_, objc.Sel("recordIDsToDelete")) return rv } -// A Boolean value that indicates whether the entire operation fails when CloudKit can’t update one or more records in a record zone. [Full Topic] +// The IDs of the records to delete permanently from the database. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447484-atomic?language=objc -func (m_ ModifyRecordsOperation) SetAtomic(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAtomic:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447479-recordidstodelete?language=objc +func (m_ ModifyRecordsOperation) SetRecordIDsToDelete(value []IRecordID) { + objc.Call[objc.Void](m_, objc.Sel("setRecordIDsToDelete:"), value) } diff --git a/macos/cloudkit/modify_subscriptions_operation.gen.go b/macos/cloudkit/modify_subscriptions_operation.gen.go index ec83955e..96f7001e 100644 --- a/macos/cloudkit/modify_subscriptions_operation.gen.go +++ b/macos/cloudkit/modify_subscriptions_operation.gen.go @@ -19,16 +19,16 @@ type _ModifySubscriptionsOperationClass struct { // An interface definition for the [ModifySubscriptionsOperation] class. type IModifySubscriptionsOperation interface { IDatabaseOperation - ModifySubscriptionsCompletionBlock() func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error) - SetModifySubscriptionsCompletionBlock(value func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error)) - SubscriptionsToSave() []Subscription - SetSubscriptionsToSave(value []ISubscription) - SubscriptionIDsToDelete() []SubscriptionID - SetSubscriptionIDsToDelete(value []SubscriptionID) PerSubscriptionSaveBlock() func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error) SetPerSubscriptionSaveBlock(value func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error)) + SubscriptionsToSave() []Subscription + SetSubscriptionsToSave(value []ISubscription) PerSubscriptionDeleteBlock() func(subscriptionID SubscriptionID, error foundation.Error) SetPerSubscriptionDeleteBlock(value func(subscriptionID SubscriptionID, error foundation.Error)) + ModifySubscriptionsCompletionBlock() func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error) + SetModifySubscriptionsCompletionBlock(value func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error)) + SubscriptionIDsToDelete() []SubscriptionID + SetSubscriptionIDsToDelete(value []SubscriptionID) } // An operation for modifying one or more subscriptions. [Full Topic] @@ -44,11 +44,6 @@ func ModifySubscriptionsOperationFrom(ptr unsafe.Pointer) ModifySubscriptionsOpe } } -func (m_ ModifySubscriptionsOperation) Init() ModifySubscriptionsOperation { - rv := objc.Call[ModifySubscriptionsOperation](m_, objc.Sel("init")) - return rv -} - func (m_ ModifySubscriptionsOperation) InitWithSubscriptionsToSaveSubscriptionIDsToDelete(subscriptionsToSave []ISubscription, subscriptionIDsToDelete []SubscriptionID) ModifySubscriptionsOperation { rv := objc.Call[ModifySubscriptionsOperation](m_, objc.Sel("initWithSubscriptionsToSave:subscriptionIDsToDelete:"), subscriptionsToSave, subscriptionIDsToDelete) return rv @@ -63,6 +58,11 @@ func NewModifySubscriptionsOperationWithSubscriptionsToSaveSubscriptionIDsToDele return instance } +func (m_ ModifySubscriptionsOperation) Init() ModifySubscriptionsOperation { + rv := objc.Call[ModifySubscriptionsOperation](m_, objc.Sel("init")) + return rv +} + func (mc _ModifySubscriptionsOperationClass) Alloc() ModifySubscriptionsOperation { rv := objc.Call[ModifySubscriptionsOperation](mc, objc.Sel("alloc")) return rv @@ -78,19 +78,19 @@ func NewModifySubscriptionsOperation() ModifySubscriptionsOperation { return ModifySubscriptionsOperationClass.New() } -// The block to execute after the operation modifies the subscriptions. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/1515288-modifysubscriptionscompletionblo?language=objc -func (m_ ModifySubscriptionsOperation) ModifySubscriptionsCompletionBlock() func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error) { - rv := objc.Call[func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error)](m_, objc.Sel("modifySubscriptionsCompletionBlock")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/3793707-persubscriptionsaveblock?language=objc +func (m_ ModifySubscriptionsOperation) PerSubscriptionSaveBlock() func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error) { + rv := objc.Call[func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error)](m_, objc.Sel("perSubscriptionSaveBlock")) return rv } -// The block to execute after the operation modifies the subscriptions. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/1515288-modifysubscriptionscompletionblo?language=objc -func (m_ ModifySubscriptionsOperation) SetModifySubscriptionsCompletionBlock(value func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error)) { - objc.Call[objc.Void](m_, objc.Sel("setModifySubscriptionsCompletionBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/3793707-persubscriptionsaveblock?language=objc +func (m_ ModifySubscriptionsOperation) SetPerSubscriptionSaveBlock(value func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error)) { + objc.Call[objc.Void](m_, objc.Sel("setPerSubscriptionSaveBlock:"), value) } // The subscriptions to save to the database. [Full Topic] @@ -108,47 +108,47 @@ func (m_ ModifySubscriptionsOperation) SetSubscriptionsToSave(value []ISubscript objc.Call[objc.Void](m_, objc.Sel("setSubscriptionsToSave:"), value) } -// The IDs of the subscriptions that you want to delete. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/1514892-subscriptionidstodelete?language=objc -func (m_ ModifySubscriptionsOperation) SubscriptionIDsToDelete() []SubscriptionID { - rv := objc.Call[[]SubscriptionID](m_, objc.Sel("subscriptionIDsToDelete")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/3793706-persubscriptiondeleteblock?language=objc +func (m_ ModifySubscriptionsOperation) PerSubscriptionDeleteBlock() func(subscriptionID SubscriptionID, error foundation.Error) { + rv := objc.Call[func(subscriptionID SubscriptionID, error foundation.Error)](m_, objc.Sel("perSubscriptionDeleteBlock")) return rv } -// The IDs of the subscriptions that you want to delete. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/1514892-subscriptionidstodelete?language=objc -func (m_ ModifySubscriptionsOperation) SetSubscriptionIDsToDelete(value []SubscriptionID) { - objc.Call[objc.Void](m_, objc.Sel("setSubscriptionIDsToDelete:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/3793706-persubscriptiondeleteblock?language=objc +func (m_ ModifySubscriptionsOperation) SetPerSubscriptionDeleteBlock(value func(subscriptionID SubscriptionID, error foundation.Error)) { + objc.Call[objc.Void](m_, objc.Sel("setPerSubscriptionDeleteBlock:"), value) } -// [Full Topic] +// The block to execute after the operation modifies the subscriptions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/3793707-persubscriptionsaveblock?language=objc -func (m_ ModifySubscriptionsOperation) PerSubscriptionSaveBlock() func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error) { - rv := objc.Call[func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error)](m_, objc.Sel("perSubscriptionSaveBlock")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/1515288-modifysubscriptionscompletionblo?language=objc +func (m_ ModifySubscriptionsOperation) ModifySubscriptionsCompletionBlock() func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error) { + rv := objc.Call[func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error)](m_, objc.Sel("modifySubscriptionsCompletionBlock")) return rv } -// [Full Topic] +// The block to execute after the operation modifies the subscriptions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/3793707-persubscriptionsaveblock?language=objc -func (m_ ModifySubscriptionsOperation) SetPerSubscriptionSaveBlock(value func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error)) { - objc.Call[objc.Void](m_, objc.Sel("setPerSubscriptionSaveBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/1515288-modifysubscriptionscompletionblo?language=objc +func (m_ ModifySubscriptionsOperation) SetModifySubscriptionsCompletionBlock(value func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error)) { + objc.Call[objc.Void](m_, objc.Sel("setModifySubscriptionsCompletionBlock:"), value) } -// [Full Topic] +// The IDs of the subscriptions that you want to delete. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/3793706-persubscriptiondeleteblock?language=objc -func (m_ ModifySubscriptionsOperation) PerSubscriptionDeleteBlock() func(subscriptionID SubscriptionID, error foundation.Error) { - rv := objc.Call[func(subscriptionID SubscriptionID, error foundation.Error)](m_, objc.Sel("perSubscriptionDeleteBlock")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/1514892-subscriptionidstodelete?language=objc +func (m_ ModifySubscriptionsOperation) SubscriptionIDsToDelete() []SubscriptionID { + rv := objc.Call[[]SubscriptionID](m_, objc.Sel("subscriptionIDsToDelete")) return rv } -// [Full Topic] +// The IDs of the subscriptions that you want to delete. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/3793706-persubscriptiondeleteblock?language=objc -func (m_ ModifySubscriptionsOperation) SetPerSubscriptionDeleteBlock(value func(subscriptionID SubscriptionID, error foundation.Error)) { - objc.Call[objc.Void](m_, objc.Sel("setPerSubscriptionDeleteBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckmodifysubscriptionsoperation/1514892-subscriptionidstodelete?language=objc +func (m_ ModifySubscriptionsOperation) SetSubscriptionIDsToDelete(value []SubscriptionID) { + objc.Call[objc.Void](m_, objc.Sel("setSubscriptionIDsToDelete:"), value) } diff --git a/macos/cloudkit/notification.gen.go b/macos/cloudkit/notification.gen.go index c6c4d7a8..8098f9bf 100644 --- a/macos/cloudkit/notification.gen.go +++ b/macos/cloudkit/notification.gen.go @@ -19,12 +19,12 @@ type _NotificationClass struct { // An interface definition for the [Notification] class. type INotification interface { objc.IObject - ContainerIdentifier() string - SubscriptionID() SubscriptionID - NotificationType() NotificationType NotificationID() NotificationID - SubscriptionOwnerUserRecordID() RecordID IsPruned() bool + NotificationType() NotificationType + SubscriptionID() SubscriptionID + ContainerIdentifier() string + SubscriptionOwnerUserRecordID() RecordID } // The abstract base class for CloudKit notifications. [Full Topic] @@ -72,19 +72,19 @@ func (n_ Notification) Init() Notification { return rv } -// The ID of the container with the content that triggers the notification. [Full Topic] +// The notification’s ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotification/1428119-containeridentifier?language=objc -func (n_ Notification) ContainerIdentifier() string { - rv := objc.Call[string](n_, objc.Sel("containerIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotification/1428080-notificationid?language=objc +func (n_ Notification) NotificationID() NotificationID { + rv := objc.Call[NotificationID](n_, objc.Sel("notificationID")) return rv } -// The ID of the subscription that triggers the notification. [Full Topic] +// A Boolean value that indicates whether the system removes some push notification content before delivery. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotification/1428118-subscriptionid?language=objc -func (n_ Notification) SubscriptionID() SubscriptionID { - rv := objc.Call[SubscriptionID](n_, objc.Sel("subscriptionID")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotification/1428088-ispruned?language=objc +func (n_ Notification) IsPruned() bool { + rv := objc.Call[bool](n_, objc.Sel("isPruned")) return rv } @@ -96,26 +96,26 @@ func (n_ Notification) NotificationType() NotificationType { return rv } -// The notification’s ID. [Full Topic] +// The ID of the subscription that triggers the notification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotification/1428080-notificationid?language=objc -func (n_ Notification) NotificationID() NotificationID { - rv := objc.Call[NotificationID](n_, objc.Sel("notificationID")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotification/1428118-subscriptionid?language=objc +func (n_ Notification) SubscriptionID() SubscriptionID { + rv := objc.Call[SubscriptionID](n_, objc.Sel("subscriptionID")) return rv } -// The ID of the user record that creates the subscription that generates the push notification. [Full Topic] +// The ID of the container with the content that triggers the notification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotification/3577533-subscriptionowneruserrecordid?language=objc -func (n_ Notification) SubscriptionOwnerUserRecordID() RecordID { - rv := objc.Call[RecordID](n_, objc.Sel("subscriptionOwnerUserRecordID")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotification/1428119-containeridentifier?language=objc +func (n_ Notification) ContainerIdentifier() string { + rv := objc.Call[string](n_, objc.Sel("containerIdentifier")) return rv } -// A Boolean value that indicates whether the system removes some push notification content before delivery. [Full Topic] +// The ID of the user record that creates the subscription that generates the push notification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotification/1428088-ispruned?language=objc -func (n_ Notification) IsPruned() bool { - rv := objc.Call[bool](n_, objc.Sel("isPruned")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotification/3577533-subscriptionowneruserrecordid?language=objc +func (n_ Notification) SubscriptionOwnerUserRecordID() RecordID { + rv := objc.Call[RecordID](n_, objc.Sel("subscriptionOwnerUserRecordID")) return rv } diff --git a/macos/cloudkit/notification_info.gen.go b/macos/cloudkit/notification_info.gen.go index 3c54b93c..c9014920 100644 --- a/macos/cloudkit/notification_info.gen.go +++ b/macos/cloudkit/notification_info.gen.go @@ -18,42 +18,42 @@ type _NotificationInfoClass struct { // An interface definition for the [NotificationInfo] class. type INotificationInfo interface { objc.IObject - ShouldBadge() bool - SetShouldBadge(value bool) - Category() string - SetCategory(value string) - DesiredKeys() []RecordFieldKey - SetDesiredKeys(value []RecordFieldKey) - AlertLaunchImage() string - SetAlertLaunchImage(value string) - Subtitle() string - SetSubtitle(value string) - ShouldSendMutableContent() bool - SetShouldSendMutableContent(value bool) + TitleLocalizationKey() string + SetTitleLocalizationKey(value string) + AlertBody() string + SetAlertBody(value string) + ShouldSendContentAvailable() bool + SetShouldSendContentAvailable(value bool) + TitleLocalizationArgs() []RecordFieldKey + SetTitleLocalizationArgs(value []RecordFieldKey) SoundName() string SetSoundName(value string) + AlertLaunchImage() string + SetAlertLaunchImage(value string) SubtitleLocalizationKey() string SetSubtitleLocalizationKey(value string) - AlertLocalizationKey() string - SetAlertLocalizationKey(value string) - AlertLocalizationArgs() []RecordFieldKey - SetAlertLocalizationArgs(value []RecordFieldKey) AlertActionLocalizationKey() string SetAlertActionLocalizationKey(value string) - ShouldSendContentAvailable() bool - SetShouldSendContentAvailable(value bool) + AlertLocalizationKey() string + SetAlertLocalizationKey(value string) + Subtitle() string + SetSubtitle(value string) SubtitleLocalizationArgs() []RecordFieldKey SetSubtitleLocalizationArgs(value []RecordFieldKey) - TitleLocalizationKey() string - SetTitleLocalizationKey(value string) + Category() string + SetCategory(value string) + ShouldSendMutableContent() bool + SetShouldSendMutableContent(value bool) CollapseIDKey() string SetCollapseIDKey(value string) - TitleLocalizationArgs() []RecordFieldKey - SetTitleLocalizationArgs(value []RecordFieldKey) Title() string SetTitle(value string) - AlertBody() string - SetAlertBody(value string) + ShouldBadge() bool + SetShouldBadge(value bool) + AlertLocalizationArgs() []RecordFieldKey + SetAlertLocalizationArgs(value []RecordFieldKey) + DesiredKeys() []RecordFieldKey + SetDesiredKeys(value []RecordFieldKey) } // An object that describes the configuration of a subscription’s push notifications. [Full Topic] @@ -89,94 +89,64 @@ func (n_ NotificationInfo) Init() NotificationInfo { return rv } -// A Boolean value that determines whether an app’s icon badge increments its value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514996-shouldbadge?language=objc -func (n_ NotificationInfo) ShouldBadge() bool { - rv := objc.Call[bool](n_, objc.Sel("shouldBadge")) - return rv -} - -// A Boolean value that determines whether an app’s icon badge increments its value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514996-shouldbadge?language=objc -func (n_ NotificationInfo) SetShouldBadge(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setShouldBadge:"), value) -} - -// The name of the action group that corresponds to this notification. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515082-category?language=objc -func (n_ NotificationInfo) Category() string { - rv := objc.Call[string](n_, objc.Sel("category")) - return rv -} - -// The name of the action group that corresponds to this notification. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515082-category?language=objc -func (n_ NotificationInfo) SetCategory(value string) { - objc.Call[objc.Void](n_, objc.Sel("setCategory:"), value) -} - -// The names of fields to include in the push notification’s payload. [Full Topic] +// The key that identifies the localized string for the notification’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514931-desiredkeys?language=objc -func (n_ NotificationInfo) DesiredKeys() []RecordFieldKey { - rv := objc.Call[[]RecordFieldKey](n_, objc.Sel("desiredKeys")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869865-titlelocalizationkey?language=objc +func (n_ NotificationInfo) TitleLocalizationKey() string { + rv := objc.Call[string](n_, objc.Sel("titleLocalizationKey")) return rv } -// The names of fields to include in the push notification’s payload. [Full Topic] +// The key that identifies the localized string for the notification’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514931-desiredkeys?language=objc -func (n_ NotificationInfo) SetDesiredKeys(value []RecordFieldKey) { - objc.Call[objc.Void](n_, objc.Sel("setDesiredKeys:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869865-titlelocalizationkey?language=objc +func (n_ NotificationInfo) SetTitleLocalizationKey(value string) { + objc.Call[objc.Void](n_, objc.Sel("setTitleLocalizationKey:"), value) } -// The filename of an image to use as a launch image. [Full Topic] +// The text for the notification’s alert. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515075-alertlaunchimage?language=objc -func (n_ NotificationInfo) AlertLaunchImage() string { - rv := objc.Call[string](n_, objc.Sel("alertLaunchImage")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515270-alertbody?language=objc +func (n_ NotificationInfo) AlertBody() string { + rv := objc.Call[string](n_, objc.Sel("alertBody")) return rv } -// The filename of an image to use as a launch image. [Full Topic] +// The text for the notification’s alert. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515075-alertlaunchimage?language=objc -func (n_ NotificationInfo) SetAlertLaunchImage(value string) { - objc.Call[objc.Void](n_, objc.Sel("setAlertLaunchImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515270-alertbody?language=objc +func (n_ NotificationInfo) SetAlertBody(value string) { + objc.Call[objc.Void](n_, objc.Sel("setAlertBody:"), value) } -// The notification’s subtitle. [Full Topic] +// A Boolean value that indicates whether the push notification includes the content available flag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869863-subtitle?language=objc -func (n_ NotificationInfo) Subtitle() string { - rv := objc.Call[string](n_, objc.Sel("subtitle")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515110-shouldsendcontentavailable?language=objc +func (n_ NotificationInfo) ShouldSendContentAvailable() bool { + rv := objc.Call[bool](n_, objc.Sel("shouldSendContentAvailable")) return rv } -// The notification’s subtitle. [Full Topic] +// A Boolean value that indicates whether the push notification includes the content available flag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869863-subtitle?language=objc -func (n_ NotificationInfo) SetSubtitle(value string) { - objc.Call[objc.Void](n_, objc.Sel("setSubtitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515110-shouldsendcontentavailable?language=objc +func (n_ NotificationInfo) SetShouldSendContentAvailable(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setShouldSendContentAvailable:"), value) } -// A Boolean value that indicates whether the push notification sets the mutable content flag. [Full Topic] +// The fields for building a notification’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2868500-shouldsendmutablecontent?language=objc -func (n_ NotificationInfo) ShouldSendMutableContent() bool { - rv := objc.Call[bool](n_, objc.Sel("shouldSendMutableContent")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869866-titlelocalizationargs?language=objc +func (n_ NotificationInfo) TitleLocalizationArgs() []RecordFieldKey { + rv := objc.Call[[]RecordFieldKey](n_, objc.Sel("titleLocalizationArgs")) return rv } -// A Boolean value that indicates whether the push notification sets the mutable content flag. [Full Topic] +// The fields for building a notification’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2868500-shouldsendmutablecontent?language=objc -func (n_ NotificationInfo) SetShouldSendMutableContent(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setShouldSendMutableContent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869866-titlelocalizationargs?language=objc +func (n_ NotificationInfo) SetTitleLocalizationArgs(value []RecordFieldKey) { + objc.Call[objc.Void](n_, objc.Sel("setTitleLocalizationArgs:"), value) } // The filename of the sound file to play when a notification arrives. [Full Topic] @@ -194,6 +164,21 @@ func (n_ NotificationInfo) SetSoundName(value string) { objc.Call[objc.Void](n_, objc.Sel("setSoundName:"), value) } +// The filename of an image to use as a launch image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515075-alertlaunchimage?language=objc +func (n_ NotificationInfo) AlertLaunchImage() string { + rv := objc.Call[string](n_, objc.Sel("alertLaunchImage")) + return rv +} + +// The filename of an image to use as a launch image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515075-alertlaunchimage?language=objc +func (n_ NotificationInfo) SetAlertLaunchImage(value string) { + objc.Call[objc.Void](n_, objc.Sel("setAlertLaunchImage:"), value) +} + // The key that identifies the localized string for the notification’s subtitle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869864-subtitlelocalizationkey?language=objc @@ -209,36 +194,6 @@ func (n_ NotificationInfo) SetSubtitleLocalizationKey(value string) { objc.Call[objc.Void](n_, objc.Sel("setSubtitleLocalizationKey:"), value) } -// The key that identifies the localized string for the notification’s alert. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514968-alertlocalizationkey?language=objc -func (n_ NotificationInfo) AlertLocalizationKey() string { - rv := objc.Call[string](n_, objc.Sel("alertLocalizationKey")) - return rv -} - -// The key that identifies the localized string for the notification’s alert. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514968-alertlocalizationkey?language=objc -func (n_ NotificationInfo) SetAlertLocalizationKey(value string) { - objc.Call[objc.Void](n_, objc.Sel("setAlertLocalizationKey:"), value) -} - -// The fields for building a notification’s alert. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515182-alertlocalizationargs?language=objc -func (n_ NotificationInfo) AlertLocalizationArgs() []RecordFieldKey { - rv := objc.Call[[]RecordFieldKey](n_, objc.Sel("alertLocalizationArgs")) - return rv -} - -// The fields for building a notification’s alert. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515182-alertlocalizationargs?language=objc -func (n_ NotificationInfo) SetAlertLocalizationArgs(value []RecordFieldKey) { - objc.Call[objc.Void](n_, objc.Sel("setAlertLocalizationArgs:"), value) -} - // The key that identifies the localized string for the notification’s action. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514945-alertactionlocalizationkey?language=objc @@ -254,19 +209,34 @@ func (n_ NotificationInfo) SetAlertActionLocalizationKey(value string) { objc.Call[objc.Void](n_, objc.Sel("setAlertActionLocalizationKey:"), value) } -// A Boolean value that indicates whether the push notification includes the content available flag. [Full Topic] +// The key that identifies the localized string for the notification’s alert. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515110-shouldsendcontentavailable?language=objc -func (n_ NotificationInfo) ShouldSendContentAvailable() bool { - rv := objc.Call[bool](n_, objc.Sel("shouldSendContentAvailable")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514968-alertlocalizationkey?language=objc +func (n_ NotificationInfo) AlertLocalizationKey() string { + rv := objc.Call[string](n_, objc.Sel("alertLocalizationKey")) return rv } -// A Boolean value that indicates whether the push notification includes the content available flag. [Full Topic] +// The key that identifies the localized string for the notification’s alert. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515110-shouldsendcontentavailable?language=objc -func (n_ NotificationInfo) SetShouldSendContentAvailable(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setShouldSendContentAvailable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514968-alertlocalizationkey?language=objc +func (n_ NotificationInfo) SetAlertLocalizationKey(value string) { + objc.Call[objc.Void](n_, objc.Sel("setAlertLocalizationKey:"), value) +} + +// The notification’s subtitle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869863-subtitle?language=objc +func (n_ NotificationInfo) Subtitle() string { + rv := objc.Call[string](n_, objc.Sel("subtitle")) + return rv +} + +// The notification’s subtitle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869863-subtitle?language=objc +func (n_ NotificationInfo) SetSubtitle(value string) { + objc.Call[objc.Void](n_, objc.Sel("setSubtitle:"), value) } // The fields for building a notification’s subtitle. [Full Topic] @@ -284,19 +254,34 @@ func (n_ NotificationInfo) SetSubtitleLocalizationArgs(value []RecordFieldKey) { objc.Call[objc.Void](n_, objc.Sel("setSubtitleLocalizationArgs:"), value) } -// The key that identifies the localized string for the notification’s title. [Full Topic] +// The name of the action group that corresponds to this notification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869865-titlelocalizationkey?language=objc -func (n_ NotificationInfo) TitleLocalizationKey() string { - rv := objc.Call[string](n_, objc.Sel("titleLocalizationKey")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515082-category?language=objc +func (n_ NotificationInfo) Category() string { + rv := objc.Call[string](n_, objc.Sel("category")) return rv } -// The key that identifies the localized string for the notification’s title. [Full Topic] +// The name of the action group that corresponds to this notification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869865-titlelocalizationkey?language=objc -func (n_ NotificationInfo) SetTitleLocalizationKey(value string) { - objc.Call[objc.Void](n_, objc.Sel("setTitleLocalizationKey:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515082-category?language=objc +func (n_ NotificationInfo) SetCategory(value string) { + objc.Call[objc.Void](n_, objc.Sel("setCategory:"), value) +} + +// A Boolean value that indicates whether the push notification sets the mutable content flag. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2868500-shouldsendmutablecontent?language=objc +func (n_ NotificationInfo) ShouldSendMutableContent() bool { + rv := objc.Call[bool](n_, objc.Sel("shouldSendMutableContent")) + return rv +} + +// A Boolean value that indicates whether the push notification sets the mutable content flag. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2868500-shouldsendmutablecontent?language=objc +func (n_ NotificationInfo) SetShouldSendMutableContent(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setShouldSendMutableContent:"), value) } // A value that the system uses to coalesce unseen push notifications. [Full Topic] @@ -314,21 +299,6 @@ func (n_ NotificationInfo) SetCollapseIDKey(value string) { objc.Call[objc.Void](n_, objc.Sel("setCollapseIDKey:"), value) } -// The fields for building a notification’s title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869866-titlelocalizationargs?language=objc -func (n_ NotificationInfo) TitleLocalizationArgs() []RecordFieldKey { - rv := objc.Call[[]RecordFieldKey](n_, objc.Sel("titleLocalizationArgs")) - return rv -} - -// The fields for building a notification’s title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869866-titlelocalizationargs?language=objc -func (n_ NotificationInfo) SetTitleLocalizationArgs(value []RecordFieldKey) { - objc.Call[objc.Void](n_, objc.Sel("setTitleLocalizationArgs:"), value) -} - // The notification’s title. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/2869870-title?language=objc @@ -344,17 +314,47 @@ func (n_ NotificationInfo) SetTitle(value string) { objc.Call[objc.Void](n_, objc.Sel("setTitle:"), value) } -// The text for the notification’s alert. [Full Topic] +// A Boolean value that determines whether an app’s icon badge increments its value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515270-alertbody?language=objc -func (n_ NotificationInfo) AlertBody() string { - rv := objc.Call[string](n_, objc.Sel("alertBody")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514996-shouldbadge?language=objc +func (n_ NotificationInfo) ShouldBadge() bool { + rv := objc.Call[bool](n_, objc.Sel("shouldBadge")) return rv } -// The text for the notification’s alert. [Full Topic] +// A Boolean value that determines whether an app’s icon badge increments its value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515270-alertbody?language=objc -func (n_ NotificationInfo) SetAlertBody(value string) { - objc.Call[objc.Void](n_, objc.Sel("setAlertBody:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514996-shouldbadge?language=objc +func (n_ NotificationInfo) SetShouldBadge(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setShouldBadge:"), value) +} + +// The fields for building a notification’s alert. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515182-alertlocalizationargs?language=objc +func (n_ NotificationInfo) AlertLocalizationArgs() []RecordFieldKey { + rv := objc.Call[[]RecordFieldKey](n_, objc.Sel("alertLocalizationArgs")) + return rv +} + +// The fields for building a notification’s alert. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1515182-alertlocalizationargs?language=objc +func (n_ NotificationInfo) SetAlertLocalizationArgs(value []RecordFieldKey) { + objc.Call[objc.Void](n_, objc.Sel("setAlertLocalizationArgs:"), value) +} + +// The names of fields to include in the push notification’s payload. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514931-desiredkeys?language=objc +func (n_ NotificationInfo) DesiredKeys() []RecordFieldKey { + rv := objc.Call[[]RecordFieldKey](n_, objc.Sel("desiredKeys")) + return rv +} + +// The names of fields to include in the push notification’s payload. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514931-desiredkeys?language=objc +func (n_ NotificationInfo) SetDesiredKeys(value []RecordFieldKey) { + objc.Call[objc.Void](n_, objc.Sel("setDesiredKeys:"), value) } diff --git a/macos/cloudkit/operation.gen.go b/macos/cloudkit/operation.gen.go index e47aaa0b..b4835811 100644 --- a/macos/cloudkit/operation.gen.go +++ b/macos/cloudkit/operation.gen.go @@ -19,13 +19,13 @@ type _OperationClass struct { // An interface definition for the [Operation] class. type IOperation interface { foundation.IOperation + OperationID() OperationID LongLivedOperationWasPersistedBlock() func() SetLongLivedOperationWasPersistedBlock(value func()) - OperationID() OperationID - Group() OperationGroup - SetGroup(value IOperationGroup) Configuration() OperationConfiguration SetConfiguration(value IOperationConfiguration) + Group() OperationGroup + SetGroup(value IOperationGroup) } // The abstract base class for all operations that execute in a database. [Full Topic] @@ -61,6 +61,14 @@ func NewOperation() Operation { return OperationClass.New() } +// A unique identifier for a long-lived operation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperation/1452362-operationid?language=objc +func (o_ Operation) OperationID() OperationID { + rv := objc.Call[OperationID](o_, objc.Sel("operationID")) + return rv +} + // The block to execute when the server begins to store callbacks for the long-lived operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperation/1452366-longlivedoperationwaspersistedbl?language=objc @@ -76,14 +84,21 @@ func (o_ Operation) SetLongLivedOperationWasPersistedBlock(value func()) { objc.Call[objc.Void](o_, objc.Sel("setLongLivedOperationWasPersistedBlock:"), value) } -// A unique identifier for a long-lived operation. [Full Topic] +// The operation’s configuration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperation/1452362-operationid?language=objc -func (o_ Operation) OperationID() OperationID { - rv := objc.Call[OperationID](o_, objc.Sel("operationID")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperation/2866213-configuration?language=objc +func (o_ Operation) Configuration() OperationConfiguration { + rv := objc.Call[OperationConfiguration](o_, objc.Sel("configuration")) return rv } +// The operation’s configuration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperation/2866213-configuration?language=objc +func (o_ Operation) SetConfiguration(value IOperationConfiguration) { + objc.Call[objc.Void](o_, objc.Sel("setConfiguration:"), value) +} + // The operation’s group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperation/2866228-group?language=objc @@ -98,18 +113,3 @@ func (o_ Operation) Group() OperationGroup { func (o_ Operation) SetGroup(value IOperationGroup) { objc.Call[objc.Void](o_, objc.Sel("setGroup:"), value) } - -// The operation’s configuration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperation/2866213-configuration?language=objc -func (o_ Operation) Configuration() OperationConfiguration { - rv := objc.Call[OperationConfiguration](o_, objc.Sel("configuration")) - return rv -} - -// The operation’s configuration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperation/2866213-configuration?language=objc -func (o_ Operation) SetConfiguration(value IOperationConfiguration) { - objc.Call[objc.Void](o_, objc.Sel("setConfiguration:"), value) -} diff --git a/macos/cloudkit/operation_configuration.gen.go b/macos/cloudkit/operation_configuration.gen.go index 3698dae0..900d6890 100644 --- a/macos/cloudkit/operation_configuration.gen.go +++ b/macos/cloudkit/operation_configuration.gen.go @@ -19,18 +19,18 @@ type _OperationConfigurationClass struct { // An interface definition for the [OperationConfiguration] class. type IOperationConfiguration interface { objc.IObject + QualityOfService() foundation.QualityOfService + SetQualityOfService(value foundation.QualityOfService) AllowsCellularAccess() bool SetAllowsCellularAccess(value bool) - IsLongLived() bool - SetLongLived(value bool) + Container() Container + SetContainer(value IContainer) TimeoutIntervalForRequest() foundation.TimeInterval SetTimeoutIntervalForRequest(value foundation.TimeInterval) - QualityOfService() foundation.QualityOfService - SetQualityOfService(value foundation.QualityOfService) + IsLongLived() bool + SetLongLived(value bool) TimeoutIntervalForResource() foundation.TimeInterval SetTimeoutIntervalForResource(value foundation.TimeInterval) - Container() Container - SetContainer(value IContainer) } // An object that describes how a CloudKit operation behaves. [Full Topic] @@ -66,6 +66,21 @@ func (o_ OperationConfiguration) Init() OperationConfiguration { return rv } +// The priority that the system uses when it allocates resources to the operations that use this configuration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866201-qualityofservice?language=objc +func (o_ OperationConfiguration) QualityOfService() foundation.QualityOfService { + rv := objc.Call[foundation.QualityOfService](o_, objc.Sel("qualityOfService")) + return rv +} + +// The priority that the system uses when it allocates resources to the operations that use this configuration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866201-qualityofservice?language=objc +func (o_ OperationConfiguration) SetQualityOfService(value foundation.QualityOfService) { + objc.Call[objc.Void](o_, objc.Sel("setQualityOfService:"), value) +} + // A Boolean value that indicates whether operations that use this configuration can send data over the cellular network. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866217-allowscellularaccess?language=objc @@ -81,19 +96,19 @@ func (o_ OperationConfiguration) SetAllowsCellularAccess(value bool) { objc.Call[objc.Void](o_, objc.Sel("setAllowsCellularAccess:"), value) } -// A Boolean value that indicates whether the operations that use this configuration are long-lived. [Full Topic] +// The configuration’s container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866225-longlived?language=objc -func (o_ OperationConfiguration) IsLongLived() bool { - rv := objc.Call[bool](o_, objc.Sel("isLongLived")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866232-container?language=objc +func (o_ OperationConfiguration) Container() Container { + rv := objc.Call[Container](o_, objc.Sel("container")) return rv } -// A Boolean value that indicates whether the operations that use this configuration are long-lived. [Full Topic] +// The configuration’s container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866225-longlived?language=objc -func (o_ OperationConfiguration) SetLongLived(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setLongLived:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866232-container?language=objc +func (o_ OperationConfiguration) SetContainer(value IContainer) { + objc.Call[objc.Void](o_, objc.Sel("setContainer:"), value) } // The maximum amount of time that a request can take. [Full Topic] @@ -111,19 +126,19 @@ func (o_ OperationConfiguration) SetTimeoutIntervalForRequest(value foundation.T objc.Call[objc.Void](o_, objc.Sel("setTimeoutIntervalForRequest:"), value) } -// The priority that the system uses when it allocates resources to the operations that use this configuration. [Full Topic] +// A Boolean value that indicates whether the operations that use this configuration are long-lived. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866201-qualityofservice?language=objc -func (o_ OperationConfiguration) QualityOfService() foundation.QualityOfService { - rv := objc.Call[foundation.QualityOfService](o_, objc.Sel("qualityOfService")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866225-longlived?language=objc +func (o_ OperationConfiguration) IsLongLived() bool { + rv := objc.Call[bool](o_, objc.Sel("isLongLived")) return rv } -// The priority that the system uses when it allocates resources to the operations that use this configuration. [Full Topic] +// A Boolean value that indicates whether the operations that use this configuration are long-lived. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866201-qualityofservice?language=objc -func (o_ OperationConfiguration) SetQualityOfService(value foundation.QualityOfService) { - objc.Call[objc.Void](o_, objc.Sel("setQualityOfService:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866225-longlived?language=objc +func (o_ OperationConfiguration) SetLongLived(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setLongLived:"), value) } // The maximum amount of time that a resource request can take. [Full Topic] @@ -140,18 +155,3 @@ func (o_ OperationConfiguration) TimeoutIntervalForResource() foundation.TimeInt func (o_ OperationConfiguration) SetTimeoutIntervalForResource(value foundation.TimeInterval) { objc.Call[objc.Void](o_, objc.Sel("setTimeoutIntervalForResource:"), value) } - -// The configuration’s container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866232-container?language=objc -func (o_ OperationConfiguration) Container() Container { - rv := objc.Call[Container](o_, objc.Sel("container")) - return rv -} - -// The configuration’s container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationconfiguration/2866232-container?language=objc -func (o_ OperationConfiguration) SetContainer(value IContainer) { - objc.Call[objc.Void](o_, objc.Sel("setContainer:"), value) -} diff --git a/macos/cloudkit/operation_group.gen.go b/macos/cloudkit/operation_group.gen.go index aab0173e..5f8a2114 100644 --- a/macos/cloudkit/operation_group.gen.go +++ b/macos/cloudkit/operation_group.gen.go @@ -21,14 +21,14 @@ type IOperationGroup interface { OperationGroupID() string Name() string SetName(value string) - ExpectedSendSize() OperationGroupTransferSize - SetExpectedSendSize(value OperationGroupTransferSize) - ExpectedReceiveSize() OperationGroupTransferSize - SetExpectedReceiveSize(value OperationGroupTransferSize) DefaultConfiguration() OperationConfiguration SetDefaultConfiguration(value IOperationConfiguration) + ExpectedSendSize() OperationGroupTransferSize + SetExpectedSendSize(value OperationGroupTransferSize) Quantity() uint SetQuantity(value uint) + ExpectedReceiveSize() OperationGroupTransferSize + SetExpectedReceiveSize(value OperationGroupTransferSize) } // An explicit association between two or more operations. [Full Topic] @@ -87,36 +87,6 @@ func (o_ OperationGroup) SetName(value string) { objc.Call[objc.Void](o_, objc.Sel("setName:"), value) } -// The estimated size of traffic to upload to CloudKit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866235-expectedsendsize?language=objc -func (o_ OperationGroup) ExpectedSendSize() OperationGroupTransferSize { - rv := objc.Call[OperationGroupTransferSize](o_, objc.Sel("expectedSendSize")) - return rv -} - -// The estimated size of traffic to upload to CloudKit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866235-expectedsendsize?language=objc -func (o_ OperationGroup) SetExpectedSendSize(value OperationGroupTransferSize) { - objc.Call[objc.Void](o_, objc.Sel("setExpectedSendSize:"), value) -} - -// The estimated size of traffic to download from CloudKit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866229-expectedreceivesize?language=objc -func (o_ OperationGroup) ExpectedReceiveSize() OperationGroupTransferSize { - rv := objc.Call[OperationGroupTransferSize](o_, objc.Sel("expectedReceiveSize")) - return rv -} - -// The estimated size of traffic to download from CloudKit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866229-expectedreceivesize?language=objc -func (o_ OperationGroup) SetExpectedReceiveSize(value OperationGroupTransferSize) { - objc.Call[objc.Void](o_, objc.Sel("setExpectedReceiveSize:"), value) -} - // The default configuration for operations in the group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866240-defaultconfiguration?language=objc @@ -132,6 +102,21 @@ func (o_ OperationGroup) SetDefaultConfiguration(value IOperationConfiguration) objc.Call[objc.Void](o_, objc.Sel("setDefaultConfiguration:"), value) } +// The estimated size of traffic to upload to CloudKit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866235-expectedsendsize?language=objc +func (o_ OperationGroup) ExpectedSendSize() OperationGroupTransferSize { + rv := objc.Call[OperationGroupTransferSize](o_, objc.Sel("expectedSendSize")) + return rv +} + +// The estimated size of traffic to upload to CloudKit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866235-expectedsendsize?language=objc +func (o_ OperationGroup) SetExpectedSendSize(value OperationGroupTransferSize) { + objc.Call[objc.Void](o_, objc.Sel("setExpectedSendSize:"), value) +} + // The number of operations in the operation group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866220-quantity?language=objc @@ -146,3 +131,18 @@ func (o_ OperationGroup) Quantity() uint { func (o_ OperationGroup) SetQuantity(value uint) { objc.Call[objc.Void](o_, objc.Sel("setQuantity:"), value) } + +// The estimated size of traffic to download from CloudKit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866229-expectedreceivesize?language=objc +func (o_ OperationGroup) ExpectedReceiveSize() OperationGroupTransferSize { + rv := objc.Call[OperationGroupTransferSize](o_, objc.Sel("expectedReceiveSize")) + return rv +} + +// The estimated size of traffic to download from CloudKit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866229-expectedreceivesize?language=objc +func (o_ OperationGroup) SetExpectedReceiveSize(value OperationGroupTransferSize) { + objc.Call[objc.Void](o_, objc.Sel("setExpectedReceiveSize:"), value) +} diff --git a/macos/cloudkit/query.gen.go b/macos/cloudkit/query.gen.go index 40a2270c..e424c18f 100644 --- a/macos/cloudkit/query.gen.go +++ b/macos/cloudkit/query.gen.go @@ -19,10 +19,10 @@ type _QueryClass struct { // An interface definition for the [Query] class. type IQuery interface { objc.IObject - Predicate() foundation.Predicate - RecordType() RecordType SortDescriptors() []foundation.SortDescriptor SetSortDescriptors(value []foundation.ISortDescriptor) + Predicate() foundation.Predicate + RecordType() RecordType } // A query that describes the criteria to apply when searching for records in a database. [Full Topic] @@ -72,6 +72,21 @@ func (q_ Query) Init() Query { return rv } +// The sort descriptors for organizing the query’s results. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquery/1413121-sortdescriptors?language=objc +func (q_ Query) SortDescriptors() []foundation.SortDescriptor { + rv := objc.Call[[]foundation.SortDescriptor](q_, objc.Sel("sortDescriptors")) + return rv +} + +// The sort descriptors for organizing the query’s results. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquery/1413121-sortdescriptors?language=objc +func (q_ Query) SetSortDescriptors(value []foundation.ISortDescriptor) { + objc.Call[objc.Void](q_, objc.Sel("setSortDescriptors:"), value) +} + // The predicate to use for matching records. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquery/1413112-predicate?language=objc @@ -87,18 +102,3 @@ func (q_ Query) RecordType() RecordType { rv := objc.Call[RecordType](q_, objc.Sel("recordType")) return rv } - -// The sort descriptors for organizing the query’s results. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquery/1413121-sortdescriptors?language=objc -func (q_ Query) SortDescriptors() []foundation.SortDescriptor { - rv := objc.Call[[]foundation.SortDescriptor](q_, objc.Sel("sortDescriptors")) - return rv -} - -// The sort descriptors for organizing the query’s results. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquery/1413121-sortdescriptors?language=objc -func (q_ Query) SetSortDescriptors(value []foundation.ISortDescriptor) { - objc.Call[objc.Void](q_, objc.Sel("setSortDescriptors:"), value) -} diff --git a/macos/cloudkit/query_notification.gen.go b/macos/cloudkit/query_notification.gen.go index 72c5870f..8f89cb9b 100644 --- a/macos/cloudkit/query_notification.gen.go +++ b/macos/cloudkit/query_notification.gen.go @@ -20,9 +20,9 @@ type _QueryNotificationClass struct { type IQueryNotification interface { INotification RecordID() RecordID - RecordFields() map[string]objc.Object - QueryNotificationReason() QueryNotificationReason DatabaseScope() DatabaseScope + QueryNotificationReason() QueryNotificationReason + RecordFields() map[string]objc.Object } // A notification that triggers when a record that matches the subscription’s predicate changes. [Full Topic] @@ -78,11 +78,11 @@ func (q_ QueryNotification) RecordID() RecordID { return rv } -// A dictionary of fields that have changes. [Full Topic] +// The type of database for the record zone. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquerynotification/1428114-recordfields?language=objc -func (q_ QueryNotification) RecordFields() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](q_, objc.Sel("recordFields")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquerynotification/1640449-databasescope?language=objc +func (q_ QueryNotification) DatabaseScope() DatabaseScope { + rv := objc.Call[DatabaseScope](q_, objc.Sel("databaseScope")) return rv } @@ -94,10 +94,10 @@ func (q_ QueryNotification) QueryNotificationReason() QueryNotificationReason { return rv } -// The type of database for the record zone. [Full Topic] +// A dictionary of fields that have changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquerynotification/1640449-databasescope?language=objc -func (q_ QueryNotification) DatabaseScope() DatabaseScope { - rv := objc.Call[DatabaseScope](q_, objc.Sel("databaseScope")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquerynotification/1428114-recordfields?language=objc +func (q_ QueryNotification) RecordFields() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](q_, objc.Sel("recordFields")) return rv } diff --git a/macos/cloudkit/query_operation.gen.go b/macos/cloudkit/query_operation.gen.go index b37bbeac..36f16305 100644 --- a/macos/cloudkit/query_operation.gen.go +++ b/macos/cloudkit/query_operation.gen.go @@ -21,18 +21,18 @@ type IQueryOperation interface { IDatabaseOperation Cursor() QueryCursor SetCursor(value IQueryCursor) - QueryCompletionBlock() func(cursor QueryCursor, operationError foundation.Error) - SetQueryCompletionBlock(value func(cursor QueryCursor, operationError foundation.Error)) - RecordMatchedBlock() func(recordID RecordID, record Record, error foundation.Error) - SetRecordMatchedBlock(value func(recordID RecordID, record Record, error foundation.Error)) + ZoneID() RecordZoneID + SetZoneID(value IRecordZoneID) Query() Query SetQuery(value IQuery) + RecordMatchedBlock() func(recordID RecordID, record Record, error foundation.Error) + SetRecordMatchedBlock(value func(recordID RecordID, record Record, error foundation.Error)) + QueryCompletionBlock() func(cursor QueryCursor, operationError foundation.Error) + SetQueryCompletionBlock(value func(cursor QueryCursor, operationError foundation.Error)) ResultsLimit() uint SetResultsLimit(value uint) DesiredKeys() []RecordFieldKey SetDesiredKeys(value []RecordFieldKey) - ZoneID() RecordZoneID - SetZoneID(value IRecordZoneID) } // An operation for executing queries in a database. [Full Topic] @@ -62,11 +62,6 @@ func NewQueryOperationWithQuery(query IQuery) QueryOperation { return instance } -func (q_ QueryOperation) Init() QueryOperation { - rv := objc.Call[QueryOperation](q_, objc.Sel("init")) - return rv -} - func (q_ QueryOperation) InitWithCursor(cursor IQueryCursor) QueryOperation { rv := objc.Call[QueryOperation](q_, objc.Sel("initWithCursor:"), cursor) return rv @@ -81,6 +76,11 @@ func NewQueryOperationWithCursor(cursor IQueryCursor) QueryOperation { return instance } +func (q_ QueryOperation) Init() QueryOperation { + rv := objc.Call[QueryOperation](q_, objc.Sel("init")) + return rv +} + func (qc _QueryOperationClass) Alloc() QueryOperation { rv := objc.Call[QueryOperation](qc, objc.Sel("alloc")) return rv @@ -111,19 +111,34 @@ func (q_ QueryOperation) SetCursor(value IQueryCursor) { objc.Call[objc.Void](q_, objc.Sel("setCursor:"), value) } -// The block to execute after CloudKit retrieves all of the records. [Full Topic] +// The ID of the record zone that contains the records to search. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515067-querycompletionblock?language=objc -func (q_ QueryOperation) QueryCompletionBlock() func(cursor QueryCursor, operationError foundation.Error) { - rv := objc.Call[func(cursor QueryCursor, operationError foundation.Error)](q_, objc.Sel("queryCompletionBlock")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515269-zoneid?language=objc +func (q_ QueryOperation) ZoneID() RecordZoneID { + rv := objc.Call[RecordZoneID](q_, objc.Sel("zoneID")) return rv } -// The block to execute after CloudKit retrieves all of the records. [Full Topic] +// The ID of the record zone that contains the records to search. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515067-querycompletionblock?language=objc -func (q_ QueryOperation) SetQueryCompletionBlock(value func(cursor QueryCursor, operationError foundation.Error)) { - objc.Call[objc.Void](q_, objc.Sel("setQueryCompletionBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515269-zoneid?language=objc +func (q_ QueryOperation) SetZoneID(value IRecordZoneID) { + objc.Call[objc.Void](q_, objc.Sel("setZoneID:"), value) +} + +// The query for the search. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515127-query?language=objc +func (q_ QueryOperation) Query() Query { + rv := objc.Call[Query](q_, objc.Sel("query")) + return rv +} + +// The query for the search. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515127-query?language=objc +func (q_ QueryOperation) SetQuery(value IQuery) { + objc.Call[objc.Void](q_, objc.Sel("setQuery:"), value) } // [Full Topic] @@ -141,19 +156,19 @@ func (q_ QueryOperation) SetRecordMatchedBlock(value func(recordID RecordID, rec objc.Call[objc.Void](q_, objc.Sel("setRecordMatchedBlock:"), value) } -// The query for the search. [Full Topic] +// The block to execute after CloudKit retrieves all of the records. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515127-query?language=objc -func (q_ QueryOperation) Query() Query { - rv := objc.Call[Query](q_, objc.Sel("query")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515067-querycompletionblock?language=objc +func (q_ QueryOperation) QueryCompletionBlock() func(cursor QueryCursor, operationError foundation.Error) { + rv := objc.Call[func(cursor QueryCursor, operationError foundation.Error)](q_, objc.Sel("queryCompletionBlock")) return rv } -// The query for the search. [Full Topic] +// The block to execute after CloudKit retrieves all of the records. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515127-query?language=objc -func (q_ QueryOperation) SetQuery(value IQuery) { - objc.Call[objc.Void](q_, objc.Sel("setQuery:"), value) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515067-querycompletionblock?language=objc +func (q_ QueryOperation) SetQueryCompletionBlock(value func(cursor QueryCursor, operationError foundation.Error)) { + objc.Call[objc.Void](q_, objc.Sel("setQueryCompletionBlock:"), value) } // The maximum number of records to return at one time. [Full Topic] @@ -185,18 +200,3 @@ func (q_ QueryOperation) DesiredKeys() []RecordFieldKey { func (q_ QueryOperation) SetDesiredKeys(value []RecordFieldKey) { objc.Call[objc.Void](q_, objc.Sel("setDesiredKeys:"), value) } - -// The ID of the record zone that contains the records to search. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515269-zoneid?language=objc -func (q_ QueryOperation) ZoneID() RecordZoneID { - rv := objc.Call[RecordZoneID](q_, objc.Sel("zoneID")) - return rv -} - -// The ID of the record zone that contains the records to search. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckqueryoperation/1515269-zoneid?language=objc -func (q_ QueryOperation) SetZoneID(value IRecordZoneID) { - objc.Call[objc.Void](q_, objc.Sel("setZoneID:"), value) -} diff --git a/macos/cloudkit/query_subscription.gen.go b/macos/cloudkit/query_subscription.gen.go index a46daf53..cf492774 100644 --- a/macos/cloudkit/query_subscription.gen.go +++ b/macos/cloudkit/query_subscription.gen.go @@ -19,10 +19,10 @@ type _QuerySubscriptionClass struct { // An interface definition for the [QuerySubscription] class. type IQuerySubscription interface { ISubscription - Predicate() foundation.Predicate QuerySubscriptionOptions() QuerySubscriptionOptions ZoneID() RecordZoneID SetZoneID(value IRecordZoneID) + Predicate() foundation.Predicate RecordType() RecordType } @@ -39,20 +39,6 @@ func QuerySubscriptionFrom(ptr unsafe.Pointer) QuerySubscription { } } -func (q_ QuerySubscription) InitWithRecordTypePredicateSubscriptionIDOptions(recordType RecordType, predicate foundation.IPredicate, subscriptionID SubscriptionID, querySubscriptionOptions QuerySubscriptionOptions) QuerySubscription { - rv := objc.Call[QuerySubscription](q_, objc.Sel("initWithRecordType:predicate:subscriptionID:options:"), recordType, predicate, subscriptionID, querySubscriptionOptions) - return rv -} - -// Creates a named query-based subscription that queries records of a specific type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquerysubscription/1640505-initwithrecordtype?language=objc -func NewQuerySubscriptionWithRecordTypePredicateSubscriptionIDOptions(recordType RecordType, predicate foundation.IPredicate, subscriptionID SubscriptionID, querySubscriptionOptions QuerySubscriptionOptions) QuerySubscription { - instance := QuerySubscriptionClass.Alloc().InitWithRecordTypePredicateSubscriptionIDOptions(recordType, predicate, subscriptionID, querySubscriptionOptions) - instance.Autorelease() - return instance -} - func (qc _QuerySubscriptionClass) Alloc() QuerySubscription { rv := objc.Call[QuerySubscription](qc, objc.Sel("alloc")) return rv @@ -73,14 +59,6 @@ func (q_ QuerySubscription) Init() QuerySubscription { return rv } -// The matching criteria to apply to records. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquerysubscription/1640485-predicate?language=objc -func (q_ QuerySubscription) Predicate() foundation.Predicate { - rv := objc.Call[foundation.Predicate](q_, objc.Sel("predicate")) - return rv -} - // Options that define the behavior of the subscription. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquerysubscription/1640414-querysubscriptionoptions?language=objc @@ -104,6 +82,14 @@ func (q_ QuerySubscription) SetZoneID(value IRecordZoneID) { objc.Call[objc.Void](q_, objc.Sel("setZoneID:"), value) } +// The matching criteria to apply to records. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquerysubscription/1640485-predicate?language=objc +func (q_ QuerySubscription) Predicate() foundation.Predicate { + rv := objc.Call[foundation.Predicate](q_, objc.Sel("predicate")) + return rv +} + // The type of record that the subscription queries. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckquerysubscription/1640393-recordtype?language=objc diff --git a/macos/cloudkit/record.gen.go b/macos/cloudkit/record.gen.go index 2eedb081..5f6add6b 100644 --- a/macos/cloudkit/record.gen.go +++ b/macos/cloudkit/record.gen.go @@ -19,29 +19,27 @@ type _RecordClass struct { // An interface definition for the [Record] class. type IRecord interface { objc.IObject - EncodeSystemFieldsWithCoder(coder foundation.ICoder) - SetParentReferenceFromRecordID(parentRecordID IRecordID) - ChangedKeys() []RecordFieldKey - AllTokens() []string - SetParentReferenceFromRecord(parentRecord IRecord) ObjectForKey(key RecordFieldKey) RecordValueObject + ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject SetObjectForKeyedSubscript(object PRecordValue, key RecordFieldKey) SetObjectObjectForKeyedSubscript(objectObject objc.IObject, key RecordFieldKey) + AllTokens() []string + SetParentReferenceFromRecordID(parentRecordID IRecordID) + SetParentReferenceFromRecord(parentRecord IRecord) + EncodeSystemFieldsWithCoder(coder foundation.ICoder) AllKeys() []RecordFieldKey - ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject - SetObjectForKey(object PRecordValue, key RecordFieldKey) - SetObjectObjectForKey(objectObject objc.IObject, key RecordFieldKey) - CreatorUserRecordID() RecordID - ModificationDate() foundation.Date - RecordChangeTag() string - CreationDate() foundation.Date - LastModifiedUserRecordID() RecordID - EncryptedValues() RecordKeyValueSettingObject + ChangedKeys() []RecordFieldKey + RecordID() RecordID Share() Reference Parent() Reference SetParent(value IReference) + LastModifiedUserRecordID() RecordID + ModificationDate() foundation.Date + RecordChangeTag() string + CreatorUserRecordID() RecordID + EncryptedValues() RecordKeyValueSettingObject + CreationDate() foundation.Date RecordType() RecordType - RecordID() RecordID } // A collection of key-value pairs that store your app’s data. [Full Topic] @@ -57,34 +55,6 @@ func RecordFrom(ptr unsafe.Pointer) Record { } } -func (r_ Record) InitWithRecordTypeRecordID(recordType RecordType, recordID IRecordID) Record { - rv := objc.Call[Record](r_, objc.Sel("initWithRecordType:recordID:"), recordType, recordID) - return rv -} - -// Creates a record using an ID that you provide. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462204-initwithrecordtype?language=objc -func NewRecordWithRecordTypeRecordID(recordType RecordType, recordID IRecordID) Record { - instance := RecordClass.Alloc().InitWithRecordTypeRecordID(recordType, recordID) - instance.Autorelease() - return instance -} - -func (r_ Record) InitWithRecordType(recordType RecordType) Record { - rv := objc.Call[Record](r_, objc.Sel("initWithRecordType:"), recordType) - return rv -} - -// Creates a new record of the specified type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462225-initwithrecordtype?language=objc -func NewRecordWithRecordType(recordType RecordType) Record { - instance := RecordClass.Alloc().InitWithRecordType(recordType) - instance.Autorelease() - return instance -} - func (r_ Record) InitWithRecordTypeZoneID(recordType RecordType, zoneID IRecordZoneID) Record { rv := objc.Call[Record](r_, objc.Sel("initWithRecordType:zoneID:"), recordType, zoneID) return rv @@ -119,26 +89,35 @@ func (r_ Record) Init() Record { return rv } -// Encodes the record’s system fields using the specified archiver. [Full Topic] +// Returns the object that the record stores for the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462200-encodesystemfieldswithcoder?language=objc -func (r_ Record) EncodeSystemFieldsWithCoder(coder foundation.ICoder) { - objc.Call[objc.Void](r_, objc.Sel("encodeSystemFieldsWithCoder:"), coder) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462216-objectforkey?language=objc +func (r_ Record) ObjectForKey(key RecordFieldKey) RecordValueObject { + rv := objc.Call[RecordValueObject](r_, objc.Sel("objectForKey:"), key) + return rv } -// Creates and sets a reference object for a parent from the parent’s record ID. [Full Topic] +// Returns the object that the record stores for the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1690508-setparentreferencefromrecordid?language=objc -func (r_ Record) SetParentReferenceFromRecordID(parentRecordID IRecordID) { - objc.Call[objc.Void](r_, objc.Sel("setParentReferenceFromRecordID:"), parentRecordID) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462210-objectforkeyedsubscript?language=objc +func (r_ Record) ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject { + rv := objc.Call[RecordValueObject](r_, objc.Sel("objectForKeyedSubscript:"), key) + return rv } -// Returns an array of keys with recent changes to their values. [Full Topic] +// Stores an object in the record using the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462197-changedkeys?language=objc -func (r_ Record) ChangedKeys() []RecordFieldKey { - rv := objc.Call[[]RecordFieldKey](r_, objc.Sel("changedKeys")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462221-setobject?language=objc +func (r_ Record) SetObjectForKeyedSubscript(object PRecordValue, key RecordFieldKey) { + po0 := objc.WrapAsProtocol("CKRecordValue", object) + objc.Call[objc.Void](r_, objc.Sel("setObject:forKeyedSubscript:"), po0, key) +} + +// Stores an object in the record using the specified key. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462221-setobject?language=objc +func (r_ Record) SetObjectObjectForKeyedSubscript(objectObject objc.IObject, key RecordFieldKey) { + objc.Call[objc.Void](r_, objc.Sel("setObject:forKeyedSubscript:"), objectObject, key) } // Returns an array of strings to use for full-text searches of the field’s string-based values. [Full Topic] @@ -149,6 +128,13 @@ func (r_ Record) AllTokens() []string { return rv } +// Creates and sets a reference object for a parent from the parent’s record ID. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1690508-setparentreferencefromrecordid?language=objc +func (r_ Record) SetParentReferenceFromRecordID(parentRecordID IRecordID) { + objc.Call[objc.Void](r_, objc.Sel("setParentReferenceFromRecordID:"), parentRecordID) +} + // Creates and sets a reference object for a parent from its record. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1690507-setparentreferencefromrecord?language=objc @@ -156,65 +142,65 @@ func (r_ Record) SetParentReferenceFromRecord(parentRecord IRecord) { objc.Call[objc.Void](r_, objc.Sel("setParentReferenceFromRecord:"), parentRecord) } -// Returns the object that the record stores for the specified key. [Full Topic] +// Encodes the record’s system fields using the specified archiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462216-objectforkey?language=objc -func (r_ Record) ObjectForKey(key RecordFieldKey) RecordValueObject { - rv := objc.Call[RecordValueObject](r_, objc.Sel("objectForKey:"), key) - return rv +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462200-encodesystemfieldswithcoder?language=objc +func (r_ Record) EncodeSystemFieldsWithCoder(coder foundation.ICoder) { + objc.Call[objc.Void](r_, objc.Sel("encodeSystemFieldsWithCoder:"), coder) } -// Stores an object in the record using the specified key. [Full Topic] +// Returns an array of the record’s keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462221-setobject?language=objc -func (r_ Record) SetObjectForKeyedSubscript(object PRecordValue, key RecordFieldKey) { - po0 := objc.WrapAsProtocol("CKRecordValue", object) - objc.Call[objc.Void](r_, objc.Sel("setObject:forKeyedSubscript:"), po0, key) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462220-allkeys?language=objc +func (r_ Record) AllKeys() []RecordFieldKey { + rv := objc.Call[[]RecordFieldKey](r_, objc.Sel("allKeys")) + return rv } -// Stores an object in the record using the specified key. [Full Topic] +// Returns an array of keys with recent changes to their values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462221-setobject?language=objc -func (r_ Record) SetObjectObjectForKeyedSubscript(objectObject objc.IObject, key RecordFieldKey) { - objc.Call[objc.Void](r_, objc.Sel("setObject:forKeyedSubscript:"), objectObject, key) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462197-changedkeys?language=objc +func (r_ Record) ChangedKeys() []RecordFieldKey { + rv := objc.Call[[]RecordFieldKey](r_, objc.Sel("changedKeys")) + return rv } -// Returns an array of the record’s keys. [Full Topic] +// The unique ID of the record. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462220-allkeys?language=objc -func (r_ Record) AllKeys() []RecordFieldKey { - rv := objc.Call[[]RecordFieldKey](r_, objc.Sel("allKeys")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462229-recordid?language=objc +func (r_ Record) RecordID() RecordID { + rv := objc.Call[RecordID](r_, objc.Sel("recordID")) return rv } -// Returns the object that the record stores for the specified key. [Full Topic] +// A reference to the share object that determines the share status of the record. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462210-objectforkeyedsubscript?language=objc -func (r_ Record) ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject { - rv := objc.Call[RecordValueObject](r_, objc.Sel("objectForKeyedSubscript:"), key) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1640378-share?language=objc +func (r_ Record) Share() Reference { + rv := objc.Call[Reference](r_, objc.Sel("share")) return rv } -// Stores an object in the record using the specified key. [Full Topic] +// A reference to the record’s parent record. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462231-setobject?language=objc -func (r_ Record) SetObjectForKey(object PRecordValue, key RecordFieldKey) { - po0 := objc.WrapAsProtocol("CKRecordValue", object) - objc.Call[objc.Void](r_, objc.Sel("setObject:forKey:"), po0, key) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1640527-parent?language=objc +func (r_ Record) Parent() Reference { + rv := objc.Call[Reference](r_, objc.Sel("parent")) + return rv } -// Stores an object in the record using the specified key. [Full Topic] +// A reference to the record’s parent record. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462231-setobject?language=objc -func (r_ Record) SetObjectObjectForKey(objectObject objc.IObject, key RecordFieldKey) { - objc.Call[objc.Void](r_, objc.Sel("setObject:forKey:"), objectObject, key) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1640527-parent?language=objc +func (r_ Record) SetParent(value IReference) { + objc.Call[objc.Void](r_, objc.Sel("setParent:"), value) } -// The ID of the user who creates the record. [Full Topic] +// The ID of the user who most recently modified the record. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462208-creatoruserrecordid?language=objc -func (r_ Record) CreatorUserRecordID() RecordID { - rv := objc.Call[RecordID](r_, objc.Sel("creatorUserRecordID")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462212-lastmodifieduserrecordid?language=objc +func (r_ Record) LastModifiedUserRecordID() RecordID { + rv := objc.Call[RecordID](r_, objc.Sel("lastModifiedUserRecordID")) return rv } @@ -234,19 +220,11 @@ func (r_ Record) RecordChangeTag() string { return rv } -// The time when CloudKit first saves the record to the server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462223-creationdate?language=objc -func (r_ Record) CreationDate() foundation.Date { - rv := objc.Call[foundation.Date](r_, objc.Sel("creationDate")) - return rv -} - -// The ID of the user who most recently modified the record. [Full Topic] +// The ID of the user who creates the record. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462212-lastmodifieduserrecordid?language=objc -func (r_ Record) LastModifiedUserRecordID() RecordID { - rv := objc.Call[RecordID](r_, objc.Sel("lastModifiedUserRecordID")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462208-creatoruserrecordid?language=objc +func (r_ Record) CreatorUserRecordID() RecordID { + rv := objc.Call[RecordID](r_, objc.Sel("creatorUserRecordID")) return rv } @@ -258,29 +236,14 @@ func (r_ Record) EncryptedValues() RecordKeyValueSettingObject { return rv } -// A reference to the share object that determines the share status of the record. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1640378-share?language=objc -func (r_ Record) Share() Reference { - rv := objc.Call[Reference](r_, objc.Sel("share")) - return rv -} - -// A reference to the record’s parent record. [Full Topic] +// The time when CloudKit first saves the record to the server. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1640527-parent?language=objc -func (r_ Record) Parent() Reference { - rv := objc.Call[Reference](r_, objc.Sel("parent")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462223-creationdate?language=objc +func (r_ Record) CreationDate() foundation.Date { + rv := objc.Call[foundation.Date](r_, objc.Sel("creationDate")) return rv } -// A reference to the record’s parent record. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1640527-parent?language=objc -func (r_ Record) SetParent(value IReference) { - objc.Call[objc.Void](r_, objc.Sel("setParent:"), value) -} - // The value that your app defines to identify the type of record. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462206-recordtype?language=objc @@ -288,11 +251,3 @@ func (r_ Record) RecordType() RecordType { rv := objc.Call[RecordType](r_, objc.Sel("recordType")) return rv } - -// The unique ID of the record. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462229-recordid?language=objc -func (r_ Record) RecordID() RecordID { - rv := objc.Call[RecordID](r_, objc.Sel("recordID")) - return rv -} diff --git a/macos/cloudkit/record_id.gen.go b/macos/cloudkit/record_id.gen.go index 32a94ae0..0e78d98d 100644 --- a/macos/cloudkit/record_id.gen.go +++ b/macos/cloudkit/record_id.gen.go @@ -18,8 +18,8 @@ type _RecordIDClass struct { // An interface definition for the [RecordID] class. type IRecordID interface { objc.IObject - RecordName() string ZoneID() RecordZoneID + RecordName() string } // An object that uniquely identifies a record in a database. [Full Topic] @@ -35,20 +35,6 @@ func RecordIDFrom(ptr unsafe.Pointer) RecordID { } } -func (r_ RecordID) InitWithRecordNameZoneID(recordName string, zoneID IRecordZoneID) RecordID { - rv := objc.Call[RecordID](r_, objc.Sel("initWithRecordName:zoneID:"), recordName, zoneID) - return rv -} - -// Creates a new record ID with the specified name and zone information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordid/1500967-initwithrecordname?language=objc -func NewRecordIDWithRecordNameZoneID(recordName string, zoneID IRecordZoneID) RecordID { - instance := RecordIDClass.Alloc().InitWithRecordNameZoneID(recordName, zoneID) - instance.Autorelease() - return instance -} - func (r_ RecordID) InitWithRecordName(recordName string) RecordID { rv := objc.Call[RecordID](r_, objc.Sel("initWithRecordName:"), recordName) return rv @@ -83,14 +69,6 @@ func (r_ RecordID) Init() RecordID { return rv } -// The unique name of the record. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordid/1500973-recordname?language=objc -func (r_ RecordID) RecordName() string { - rv := objc.Call[string](r_, objc.Sel("recordName")) - return rv -} - // The ID of the zone that contains the record. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordid/1500969-zoneid?language=objc @@ -98,3 +76,11 @@ func (r_ RecordID) ZoneID() RecordZoneID { rv := objc.Call[RecordZoneID](r_, objc.Sel("zoneID")) return rv } + +// The unique name of the record. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordid/1500973-recordname?language=objc +func (r_ RecordID) RecordName() string { + rv := objc.Call[string](r_, objc.Sel("recordName")) + return rv +} diff --git a/macos/cloudkit/record_key_value_setting_protocol.gen.go b/macos/cloudkit/record_key_value_setting_protocol.gen.go index c0f88444..ccfbc867 100644 --- a/macos/cloudkit/record_key_value_setting_protocol.gen.go +++ b/macos/cloudkit/record_key_value_setting_protocol.gen.go @@ -11,12 +11,8 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting?language=objc type PRecordKeyValueSetting interface { // optional - AllKeys() []RecordFieldKey - HasAllKeys() bool - - // optional - ChangedKeys() []RecordFieldKey - HasChangedKeys() bool + ObjectForKey(key RecordFieldKey) RecordValueObject + HasObjectForKey() bool // optional ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject @@ -27,12 +23,12 @@ type PRecordKeyValueSetting interface { HasSetObjectForKeyedSubscript() bool // optional - SetObjectForKey(object RecordValueObject, key RecordFieldKey) - HasSetObjectForKey() bool + AllKeys() []RecordFieldKey + HasAllKeys() bool // optional - ObjectForKey(key RecordFieldKey) RecordValueObject - HasObjectForKey() bool + ChangedKeys() []RecordFieldKey + HasChangedKeys() bool } // ensure impl type implements protocol interface @@ -43,27 +39,15 @@ type RecordKeyValueSettingObject struct { objc.Object } -func (r_ RecordKeyValueSettingObject) HasAllKeys() bool { - return r_.RespondsToSelector(objc.Sel("allKeys")) -} - -// Returns an array of the record’s keys. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976183-allkeys?language=objc -func (r_ RecordKeyValueSettingObject) AllKeys() []RecordFieldKey { - rv := objc.Call[[]RecordFieldKey](r_, objc.Sel("allKeys")) - return rv -} - -func (r_ RecordKeyValueSettingObject) HasChangedKeys() bool { - return r_.RespondsToSelector(objc.Sel("changedKeys")) +func (r_ RecordKeyValueSettingObject) HasObjectForKey() bool { + return r_.RespondsToSelector(objc.Sel("objectForKey:")) } -// Returns an array of keys with recent changes to their values. [Full Topic] +// Returns the object that the record stores for the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976184-changedkeys?language=objc -func (r_ RecordKeyValueSettingObject) ChangedKeys() []RecordFieldKey { - rv := objc.Call[[]RecordFieldKey](r_, objc.Sel("changedKeys")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976185-objectforkey?language=objc +func (r_ RecordKeyValueSettingObject) ObjectForKey(key RecordFieldKey) RecordValueObject { + rv := objc.Call[RecordValueObject](r_, objc.Sel("objectForKey:"), key) return rv } @@ -91,26 +75,26 @@ func (r_ RecordKeyValueSettingObject) SetObjectForKeyedSubscript(object RecordVa objc.Call[objc.Void](r_, objc.Sel("setObject:forKeyedSubscript:"), po0, key) } -func (r_ RecordKeyValueSettingObject) HasSetObjectForKey() bool { - return r_.RespondsToSelector(objc.Sel("setObject:forKey:")) +func (r_ RecordKeyValueSettingObject) HasAllKeys() bool { + return r_.RespondsToSelector(objc.Sel("allKeys")) } -// Stores an object in the record using the specified key. [Full Topic] +// Returns an array of the record’s keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976187-setobject?language=objc -func (r_ RecordKeyValueSettingObject) SetObjectForKey(object RecordValueObject, key RecordFieldKey) { - po0 := objc.WrapAsProtocol("CKRecordValue", object) - objc.Call[objc.Void](r_, objc.Sel("setObject:forKey:"), po0, key) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976183-allkeys?language=objc +func (r_ RecordKeyValueSettingObject) AllKeys() []RecordFieldKey { + rv := objc.Call[[]RecordFieldKey](r_, objc.Sel("allKeys")) + return rv } -func (r_ RecordKeyValueSettingObject) HasObjectForKey() bool { - return r_.RespondsToSelector(objc.Sel("objectForKey:")) +func (r_ RecordKeyValueSettingObject) HasChangedKeys() bool { + return r_.RespondsToSelector(objc.Sel("changedKeys")) } -// Returns the object that the record stores for the specified key. [Full Topic] +// Returns an array of keys with recent changes to their values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976185-objectforkey?language=objc -func (r_ RecordKeyValueSettingObject) ObjectForKey(key RecordFieldKey) RecordValueObject { - rv := objc.Call[RecordValueObject](r_, objc.Sel("objectForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976184-changedkeys?language=objc +func (r_ RecordKeyValueSettingObject) ChangedKeys() []RecordFieldKey { + rv := objc.Call[[]RecordFieldKey](r_, objc.Sel("changedKeys")) return rv } diff --git a/macos/cloudkit/record_zone.gen.go b/macos/cloudkit/record_zone.gen.go index 79596945..bed91efb 100644 --- a/macos/cloudkit/record_zone.gen.go +++ b/macos/cloudkit/record_zone.gen.go @@ -18,8 +18,8 @@ type _RecordZoneClass struct { // An interface definition for the [RecordZone] class. type IRecordZone interface { objc.IObject - Capabilities() RecordZoneCapabilities Share() Reference + Capabilities() RecordZoneCapabilities ZoneID() RecordZoneID } @@ -99,14 +99,6 @@ func RecordZone_DefaultRecordZone() RecordZone { return RecordZoneClass.DefaultRecordZone() } -// The capabilities that the zone supports. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordzone/1515194-capabilities?language=objc -func (r_ RecordZone) Capabilities() RecordZoneCapabilities { - rv := objc.Call[RecordZoneCapabilities](r_, objc.Sel("capabilities")) - return rv -} - // A reference to the record zone’s share record. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordzone/3746822-share?language=objc @@ -115,6 +107,14 @@ func (r_ RecordZone) Share() Reference { return rv } +// The capabilities that the zone supports. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordzone/1515194-capabilities?language=objc +func (r_ RecordZone) Capabilities() RecordZoneCapabilities { + rv := objc.Call[RecordZoneCapabilities](r_, objc.Sel("capabilities")) + return rv +} + // The unique ID of the zone. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordzone/1514917-zoneid?language=objc diff --git a/macos/cloudkit/record_zone_subscription.gen.go b/macos/cloudkit/record_zone_subscription.gen.go index 0ee431a9..4ad7ca68 100644 --- a/macos/cloudkit/record_zone_subscription.gen.go +++ b/macos/cloudkit/record_zone_subscription.gen.go @@ -18,9 +18,9 @@ type _RecordZoneSubscriptionClass struct { // An interface definition for the [RecordZoneSubscription] class. type IRecordZoneSubscription interface { ISubscription + ZoneID() RecordZoneID RecordType() RecordType SetRecordType(value RecordType) - ZoneID() RecordZoneID } // A subscription that generates push notifications when CloudKit modifies records in a specific record zone. [Full Topic] @@ -36,20 +36,6 @@ func RecordZoneSubscriptionFrom(ptr unsafe.Pointer) RecordZoneSubscription { } } -func (r_ RecordZoneSubscription) InitWithZoneIDSubscriptionID(zoneID IRecordZoneID, subscriptionID SubscriptionID) RecordZoneSubscription { - rv := objc.Call[RecordZoneSubscription](r_, objc.Sel("initWithZoneID:subscriptionID:"), zoneID, subscriptionID) - return rv -} - -// Creates a named subscription for all records in the specified record zone. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordzonesubscription/1640415-initwithzoneid?language=objc -func NewRecordZoneSubscriptionWithZoneIDSubscriptionID(zoneID IRecordZoneID, subscriptionID SubscriptionID) RecordZoneSubscription { - instance := RecordZoneSubscriptionClass.Alloc().InitWithZoneIDSubscriptionID(zoneID, subscriptionID) - instance.Autorelease() - return instance -} - func (rc _RecordZoneSubscriptionClass) Alloc() RecordZoneSubscription { rv := objc.Call[RecordZoneSubscription](rc, objc.Sel("alloc")) return rv @@ -70,6 +56,14 @@ func (r_ RecordZoneSubscription) Init() RecordZoneSubscription { return rv } +// The ID of the record zone that the subscription queries. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordzonesubscription/1640367-zoneid?language=objc +func (r_ RecordZoneSubscription) ZoneID() RecordZoneID { + rv := objc.Call[RecordZoneID](r_, objc.Sel("zoneID")) + return rv +} + // The type of record that the subscription queries. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordzonesubscription/1640479-recordtype?language=objc @@ -84,11 +78,3 @@ func (r_ RecordZoneSubscription) RecordType() RecordType { func (r_ RecordZoneSubscription) SetRecordType(value RecordType) { objc.Call[objc.Void](r_, objc.Sel("setRecordType:"), value) } - -// The ID of the record zone that the subscription queries. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordzonesubscription/1640367-zoneid?language=objc -func (r_ RecordZoneSubscription) ZoneID() RecordZoneID { - rv := objc.Call[RecordZoneID](r_, objc.Sel("zoneID")) - return rv -} diff --git a/macos/cloudkit/share.gen.go b/macos/cloudkit/share.gen.go index 015eda57..7a6bc6a4 100644 --- a/macos/cloudkit/share.gen.go +++ b/macos/cloudkit/share.gen.go @@ -19,14 +19,14 @@ type _ShareClass struct { // An interface definition for the [Share] class. type IShare interface { IRecord - RemoveParticipant(participant IShareParticipant) AddParticipant(participant IShareParticipant) + RemoveParticipant(participant IShareParticipant) CurrentUserParticipant() ShareParticipant - Participants() []ShareParticipant + Owner() ShareParticipant PublicPermission() ShareParticipantPermission SetPublicPermission(value ShareParticipantPermission) URL() foundation.URL - Owner() ShareParticipant + Participants() []ShareParticipant } // A specialized record type that manages a collection of shared records. [Full Topic] @@ -70,20 +70,6 @@ func NewShareWithRecordZoneID(recordZoneID IRecordZoneID) Share { return instance } -func (s_ Share) InitWithRootRecordShareID(rootRecord IRecord, shareID IRecordID) Share { - rv := objc.Call[Share](s_, objc.Sel("initWithRootRecord:shareID:"), rootRecord, shareID) - return rv -} - -// Creates a new share for the specified record and record ID. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640381-initwithrootrecord?language=objc -func NewShareWithRootRecordShareID(rootRecord IRecord, shareID IRecordID) Share { - instance := ShareClass.Alloc().InitWithRootRecordShareID(rootRecord, shareID) - instance.Autorelease() - return instance -} - func (sc _ShareClass) Alloc() Share { rv := objc.Call[Share](sc, objc.Sel("alloc")) return rv @@ -104,34 +90,6 @@ func (s_ Share) Init() Share { return rv } -func (s_ Share) InitWithRecordTypeRecordID(recordType RecordType, recordID IRecordID) Share { - rv := objc.Call[Share](s_, objc.Sel("initWithRecordType:recordID:"), recordType, recordID) - return rv -} - -// Creates a record using an ID that you provide. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462204-initwithrecordtype?language=objc -func NewShareWithRecordTypeRecordID(recordType RecordType, recordID IRecordID) Share { - instance := ShareClass.Alloc().InitWithRecordTypeRecordID(recordType, recordID) - instance.Autorelease() - return instance -} - -func (s_ Share) InitWithRecordType(recordType RecordType) Share { - rv := objc.Call[Share](s_, objc.Sel("initWithRecordType:"), recordType) - return rv -} - -// Creates a new record of the specified type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462225-initwithrecordtype?language=objc -func NewShareWithRecordType(recordType RecordType) Share { - instance := ShareClass.Alloc().InitWithRecordType(recordType) - instance.Autorelease() - return instance -} - func (s_ Share) InitWithRecordTypeZoneID(recordType RecordType, zoneID IRecordZoneID) Share { rv := objc.Call[Share](s_, objc.Sel("initWithRecordType:zoneID:"), recordType, zoneID) return rv @@ -146,13 +104,6 @@ func NewShareWithRecordTypeZoneID(recordType RecordType, zoneID IRecordZoneID) S return instance } -// Removes a participant from the share. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640523-removeparticipant?language=objc -func (s_ Share) RemoveParticipant(participant IShareParticipant) { - objc.Call[objc.Void](s_, objc.Sel("removeParticipant:"), participant) -} - // Adds a participant to the share. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640443-addparticipant?language=objc @@ -160,6 +111,13 @@ func (s_ Share) AddParticipant(participant IShareParticipant) { objc.Call[objc.Void](s_, objc.Sel("addParticipant:"), participant) } +// Removes a participant from the share. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640523-removeparticipant?language=objc +func (s_ Share) RemoveParticipant(participant IShareParticipant) { + objc.Call[objc.Void](s_, objc.Sel("removeParticipant:"), participant) +} + // The participant that represents the current user. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640441-currentuserparticipant?language=objc @@ -168,11 +126,11 @@ func (s_ Share) CurrentUserParticipant() ShareParticipant { return rv } -// An array that contains the share’s participants. [Full Topic] +// The participant that represents the share’s owner. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640453-participants?language=objc -func (s_ Share) Participants() []ShareParticipant { - rv := objc.Call[[]ShareParticipant](s_, objc.Sel("participants")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640503-owner?language=objc +func (s_ Share) Owner() ShareParticipant { + rv := objc.Call[ShareParticipant](s_, objc.Sel("owner")) return rv } @@ -199,10 +157,10 @@ func (s_ Share) URL() foundation.URL { return rv } -// The participant that represents the share’s owner. [Full Topic] +// An array that contains the share’s participants. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640503-owner?language=objc -func (s_ Share) Owner() ShareParticipant { - rv := objc.Call[ShareParticipant](s_, objc.Sel("owner")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640453-participants?language=objc +func (s_ Share) Participants() []ShareParticipant { + rv := objc.Call[[]ShareParticipant](s_, objc.Sel("participants")) return rv } diff --git a/macos/cloudkit/share_metadata.gen.go b/macos/cloudkit/share_metadata.gen.go index 5a85babb..cfbe1bb1 100644 --- a/macos/cloudkit/share_metadata.gen.go +++ b/macos/cloudkit/share_metadata.gen.go @@ -18,14 +18,14 @@ type _ShareMetadataClass struct { // An interface definition for the [ShareMetadata] class. type IShareMetadata interface { objc.IObject - RootRecord() Record - ContainerIdentifier() string - HierarchicalRootRecordID() RecordID ParticipantPermission() ShareParticipantPermission - ParticipantStatus() ShareParticipantAcceptanceStatus - ParticipantRole() ShareParticipantRole Share() Share + ParticipantRole() ShareParticipantRole OwnerIdentity() UserIdentity + ParticipantStatus() ShareParticipantAcceptanceStatus + RootRecord() Record + ContainerIdentifier() string + HierarchicalRootRecordID() RecordID } // An object that describes a shared record’s metadata. [Full Topic] @@ -61,35 +61,35 @@ func (s_ ShareMetadata) Init() ShareMetadata { return rv } -// The share’s root record. [Full Topic] +// The share’s permissions for the user who retrieves the metadata. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/1640366-rootrecord?language=objc -func (s_ ShareMetadata) RootRecord() Record { - rv := objc.Call[Record](s_, objc.Sel("rootRecord")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/1640483-participantpermission?language=objc +func (s_ ShareMetadata) ParticipantPermission() ShareParticipantPermission { + rv := objc.Call[ShareParticipantPermission](s_, objc.Sel("participantPermission")) return rv } -// The ID of the share’s container. [Full Topic] +// The share that owns the metadata. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/1640400-containeridentifier?language=objc -func (s_ ShareMetadata) ContainerIdentifier() string { - rv := objc.Call[string](s_, objc.Sel("containerIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/1640412-share?language=objc +func (s_ ShareMetadata) Share() Share { + rv := objc.Call[Share](s_, objc.Sel("share")) return rv } -// The record ID of the shared hierarchy’s root record. [Full Topic] +// The share’s participant role for the user who retrieves the metadata. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/3793709-hierarchicalrootrecordid?language=objc -func (s_ ShareMetadata) HierarchicalRootRecordID() RecordID { - rv := objc.Call[RecordID](s_, objc.Sel("hierarchicalRootRecordID")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/2980666-participantrole?language=objc +func (s_ ShareMetadata) ParticipantRole() ShareParticipantRole { + rv := objc.Call[ShareParticipantRole](s_, objc.Sel("participantRole")) return rv } -// The share’s permissions for the user who retrieves the metadata. [Full Topic] +// The identity of the share’s owner. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/1640483-participantpermission?language=objc -func (s_ ShareMetadata) ParticipantPermission() ShareParticipantPermission { - rv := objc.Call[ShareParticipantPermission](s_, objc.Sel("participantPermission")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/1640498-owneridentity?language=objc +func (s_ ShareMetadata) OwnerIdentity() UserIdentity { + rv := objc.Call[UserIdentity](s_, objc.Sel("ownerIdentity")) return rv } @@ -101,26 +101,26 @@ func (s_ ShareMetadata) ParticipantStatus() ShareParticipantAcceptanceStatus { return rv } -// The share’s participant role for the user who retrieves the metadata. [Full Topic] +// The share’s root record. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/2980666-participantrole?language=objc -func (s_ ShareMetadata) ParticipantRole() ShareParticipantRole { - rv := objc.Call[ShareParticipantRole](s_, objc.Sel("participantRole")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/1640366-rootrecord?language=objc +func (s_ ShareMetadata) RootRecord() Record { + rv := objc.Call[Record](s_, objc.Sel("rootRecord")) return rv } -// The share that owns the metadata. [Full Topic] +// The ID of the share’s container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/1640412-share?language=objc -func (s_ ShareMetadata) Share() Share { - rv := objc.Call[Share](s_, objc.Sel("share")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/1640400-containeridentifier?language=objc +func (s_ ShareMetadata) ContainerIdentifier() string { + rv := objc.Call[string](s_, objc.Sel("containerIdentifier")) return rv } -// The identity of the share’s owner. [Full Topic] +// The record ID of the shared hierarchy’s root record. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/1640498-owneridentity?language=objc -func (s_ ShareMetadata) OwnerIdentity() UserIdentity { - rv := objc.Call[UserIdentity](s_, objc.Sel("ownerIdentity")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksharemetadata/3793709-hierarchicalrootrecordid?language=objc +func (s_ ShareMetadata) HierarchicalRootRecordID() RecordID { + rv := objc.Call[RecordID](s_, objc.Sel("hierarchicalRootRecordID")) return rv } diff --git a/macos/cloudkit/share_participant.gen.go b/macos/cloudkit/share_participant.gen.go index 3f80675d..ff97322c 100644 --- a/macos/cloudkit/share_participant.gen.go +++ b/macos/cloudkit/share_participant.gen.go @@ -20,10 +20,10 @@ type IShareParticipant interface { objc.IObject Role() ShareParticipantRole SetRole(value ShareParticipantRole) - AcceptanceStatus() ShareParticipantAcceptanceStatus Permission() ShareParticipantPermission SetPermission(value ShareParticipantPermission) UserIdentity() UserIdentity + AcceptanceStatus() ShareParticipantAcceptanceStatus } // An object that describes a user’s participation in a share. [Full Topic] @@ -74,14 +74,6 @@ func (s_ ShareParticipant) SetRole(value ShareParticipantRole) { objc.Call[objc.Void](s_, objc.Sel("setRole:"), value) } -// The current state of the user’s acceptance of the share. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshareparticipant/1640395-acceptancestatus?language=objc -func (s_ ShareParticipant) AcceptanceStatus() ShareParticipantAcceptanceStatus { - rv := objc.Call[ShareParticipantAcceptanceStatus](s_, objc.Sel("acceptanceStatus")) - return rv -} - // The participant’s permission level for the share. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshareparticipant/1640433-permission?language=objc @@ -104,3 +96,11 @@ func (s_ ShareParticipant) UserIdentity() UserIdentity { rv := objc.Call[UserIdentity](s_, objc.Sel("userIdentity")) return rv } + +// The current state of the user’s acceptance of the share. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshareparticipant/1640395-acceptancestatus?language=objc +func (s_ ShareParticipant) AcceptanceStatus() ShareParticipantAcceptanceStatus { + rv := objc.Call[ShareParticipantAcceptanceStatus](s_, objc.Sel("acceptanceStatus")) + return rv +} diff --git a/macos/cloudkit/subscription.gen.go b/macos/cloudkit/subscription.gen.go index c147f64c..0b791452 100644 --- a/macos/cloudkit/subscription.gen.go +++ b/macos/cloudkit/subscription.gen.go @@ -18,9 +18,9 @@ type _SubscriptionClass struct { // An interface definition for the [Subscription] class. type ISubscription interface { objc.IObject + SubscriptionType() SubscriptionType NotificationInfo() NotificationInfo SetNotificationInfo(value INotificationInfo) - SubscriptionType() SubscriptionType SubscriptionID() SubscriptionID } @@ -57,6 +57,14 @@ func (s_ Subscription) Init() Subscription { return rv } +// The behavior that a subscription provides. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksubscription/1515250-subscriptiontype?language=objc +func (s_ Subscription) SubscriptionType() SubscriptionType { + rv := objc.Call[SubscriptionType](s_, objc.Sel("subscriptionType")) + return rv +} + // The configuration for a subscription’s push notifications. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksubscription/1514948-notificationinfo?language=objc @@ -72,14 +80,6 @@ func (s_ Subscription) SetNotificationInfo(value INotificationInfo) { objc.Call[objc.Void](s_, objc.Sel("setNotificationInfo:"), value) } -// The behavior that a subscription provides. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksubscription/1515250-subscriptiontype?language=objc -func (s_ Subscription) SubscriptionType() SubscriptionType { - rv := objc.Call[SubscriptionType](s_, objc.Sel("subscriptionType")) - return rv -} - // The subscription’s unique identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/cksubscription/1515199-subscriptionid?language=objc diff --git a/macos/cloudkit/user_identity.gen.go b/macos/cloudkit/user_identity.gen.go index 13775da4..b497ecf2 100644 --- a/macos/cloudkit/user_identity.gen.go +++ b/macos/cloudkit/user_identity.gen.go @@ -19,11 +19,11 @@ type _UserIdentityClass struct { // An interface definition for the [UserIdentity] class. type IUserIdentity interface { objc.IObject + UserRecordID() RecordID HasiCloudAccount() bool + ContactIdentifiers() []string LookupInfo() UserIdentityLookupInfo NameComponents() foundation.PersonNameComponents - ContactIdentifiers() []string - UserRecordID() RecordID } // The identity of a user. [Full Topic] @@ -59,6 +59,14 @@ func (u_ UserIdentity) Init() UserIdentity { return rv } +// The user record ID for the corresponding user record. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentity/1640504-userrecordid?language=objc +func (u_ UserIdentity) UserRecordID() RecordID { + rv := objc.Call[RecordID](u_, objc.Sel("userRecordID")) + return rv +} + // A Boolean value that indicates whether the user has an iCloud account. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentity/1640513-hasicloudaccount?language=objc @@ -67,6 +75,14 @@ func (u_ UserIdentity) HasiCloudAccount() bool { return rv } +// Identifiers that match contacts in the local Contacts database. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentity/2866227-contactidentifiers?language=objc +func (u_ UserIdentity) ContactIdentifiers() []string { + rv := objc.Call[[]string](u_, objc.Sel("contactIdentifiers")) + return rv +} + // The lookup info for retrieving the user identity. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentity/1640371-lookupinfo?language=objc @@ -82,19 +98,3 @@ func (u_ UserIdentity) NameComponents() foundation.PersonNameComponents { rv := objc.Call[foundation.PersonNameComponents](u_, objc.Sel("nameComponents")) return rv } - -// Identifiers that match contacts in the local Contacts database. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentity/2866227-contactidentifiers?language=objc -func (u_ UserIdentity) ContactIdentifiers() []string { - rv := objc.Call[[]string](u_, objc.Sel("contactIdentifiers")) - return rv -} - -// The user record ID for the corresponding user record. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentity/1640504-userrecordid?language=objc -func (u_ UserIdentity) UserRecordID() RecordID { - rv := objc.Call[RecordID](u_, objc.Sel("userRecordID")) - return rv -} diff --git a/macos/cloudkit/user_identity_lookup_info.gen.go b/macos/cloudkit/user_identity_lookup_info.gen.go index 3bf092bd..75c08cc9 100644 --- a/macos/cloudkit/user_identity_lookup_info.gen.go +++ b/macos/cloudkit/user_identity_lookup_info.gen.go @@ -18,9 +18,9 @@ type _UserIdentityLookupInfoClass struct { // An interface definition for the [UserIdentityLookupInfo] class. type IUserIdentityLookupInfo interface { objc.IObject - EmailAddress() string - PhoneNumber() string UserRecordID() RecordID + PhoneNumber() string + EmailAddress() string } // The criteria to use when searching for discoverable iCloud users. [Full Topic] @@ -50,30 +50,30 @@ func NewUserIdentityLookupInfoWithEmailAddress(emailAddress string) UserIdentity return instance } -func (u_ UserIdentityLookupInfo) InitWithPhoneNumber(phoneNumber string) UserIdentityLookupInfo { - rv := objc.Call[UserIdentityLookupInfo](u_, objc.Sel("initWithPhoneNumber:"), phoneNumber) +func (u_ UserIdentityLookupInfo) InitWithUserRecordID(userRecordID IRecordID) UserIdentityLookupInfo { + rv := objc.Call[UserIdentityLookupInfo](u_, objc.Sel("initWithUserRecordID:"), userRecordID) return rv } -// Creates a lookup info for the specified phone number. [Full Topic] +// Creates a lookup info for the specified user record ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640402-initwithphonenumber?language=objc -func NewUserIdentityLookupInfoWithPhoneNumber(phoneNumber string) UserIdentityLookupInfo { - instance := UserIdentityLookupInfoClass.Alloc().InitWithPhoneNumber(phoneNumber) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640419-initwithuserrecordid?language=objc +func NewUserIdentityLookupInfoWithUserRecordID(userRecordID IRecordID) UserIdentityLookupInfo { + instance := UserIdentityLookupInfoClass.Alloc().InitWithUserRecordID(userRecordID) instance.Autorelease() return instance } -func (u_ UserIdentityLookupInfo) InitWithUserRecordID(userRecordID IRecordID) UserIdentityLookupInfo { - rv := objc.Call[UserIdentityLookupInfo](u_, objc.Sel("initWithUserRecordID:"), userRecordID) +func (u_ UserIdentityLookupInfo) InitWithPhoneNumber(phoneNumber string) UserIdentityLookupInfo { + rv := objc.Call[UserIdentityLookupInfo](u_, objc.Sel("initWithPhoneNumber:"), phoneNumber) return rv } -// Creates a lookup info for the specified user record ID. [Full Topic] +// Creates a lookup info for the specified phone number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640419-initwithuserrecordid?language=objc -func NewUserIdentityLookupInfoWithUserRecordID(userRecordID IRecordID) UserIdentityLookupInfo { - instance := UserIdentityLookupInfoClass.Alloc().InitWithUserRecordID(userRecordID) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640402-initwithphonenumber?language=objc +func NewUserIdentityLookupInfoWithPhoneNumber(phoneNumber string) UserIdentityLookupInfo { + instance := UserIdentityLookupInfoClass.Alloc().InitWithPhoneNumber(phoneNumber) instance.Autorelease() return instance } @@ -98,19 +98,19 @@ func (u_ UserIdentityLookupInfo) Init() UserIdentityLookupInfo { return rv } -// Returns an array of lookup infos for the specifed phone numbers. [Full Topic] +// Returns an array of lookup infos for the specifed user record IDs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640429-lookupinfoswithphonenumbers?language=objc -func (uc _UserIdentityLookupInfoClass) LookupInfosWithPhoneNumbers(phoneNumbers []string) []UserIdentityLookupInfo { - rv := objc.Call[[]UserIdentityLookupInfo](uc, objc.Sel("lookupInfosWithPhoneNumbers:"), phoneNumbers) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640407-lookupinfoswithrecordids?language=objc +func (uc _UserIdentityLookupInfoClass) LookupInfosWithRecordIDs(recordIDs []IRecordID) []UserIdentityLookupInfo { + rv := objc.Call[[]UserIdentityLookupInfo](uc, objc.Sel("lookupInfosWithRecordIDs:"), recordIDs) return rv } -// Returns an array of lookup infos for the specifed phone numbers. [Full Topic] +// Returns an array of lookup infos for the specifed user record IDs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640429-lookupinfoswithphonenumbers?language=objc -func UserIdentityLookupInfo_LookupInfosWithPhoneNumbers(phoneNumbers []string) []UserIdentityLookupInfo { - return UserIdentityLookupInfoClass.LookupInfosWithPhoneNumbers(phoneNumbers) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640407-lookupinfoswithrecordids?language=objc +func UserIdentityLookupInfo_LookupInfosWithRecordIDs(recordIDs []IRecordID) []UserIdentityLookupInfo { + return UserIdentityLookupInfoClass.LookupInfosWithRecordIDs(recordIDs) } // Returns an array of lookup infos for the specifed email addresses. [Full Topic] @@ -128,26 +128,26 @@ func UserIdentityLookupInfo_LookupInfosWithEmails(emails []string) []UserIdentit return UserIdentityLookupInfoClass.LookupInfosWithEmails(emails) } -// Returns an array of lookup infos for the specifed user record IDs. [Full Topic] +// Returns an array of lookup infos for the specifed phone numbers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640407-lookupinfoswithrecordids?language=objc -func (uc _UserIdentityLookupInfoClass) LookupInfosWithRecordIDs(recordIDs []IRecordID) []UserIdentityLookupInfo { - rv := objc.Call[[]UserIdentityLookupInfo](uc, objc.Sel("lookupInfosWithRecordIDs:"), recordIDs) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640429-lookupinfoswithphonenumbers?language=objc +func (uc _UserIdentityLookupInfoClass) LookupInfosWithPhoneNumbers(phoneNumbers []string) []UserIdentityLookupInfo { + rv := objc.Call[[]UserIdentityLookupInfo](uc, objc.Sel("lookupInfosWithPhoneNumbers:"), phoneNumbers) return rv } -// Returns an array of lookup infos for the specifed user record IDs. [Full Topic] +// Returns an array of lookup infos for the specifed phone numbers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640407-lookupinfoswithrecordids?language=objc -func UserIdentityLookupInfo_LookupInfosWithRecordIDs(recordIDs []IRecordID) []UserIdentityLookupInfo { - return UserIdentityLookupInfoClass.LookupInfosWithRecordIDs(recordIDs) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640429-lookupinfoswithphonenumbers?language=objc +func UserIdentityLookupInfo_LookupInfosWithPhoneNumbers(phoneNumbers []string) []UserIdentityLookupInfo { + return UserIdentityLookupInfoClass.LookupInfosWithPhoneNumbers(phoneNumbers) } -// The user’s email address. [Full Topic] +// The ID of the user record. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640462-emailaddress?language=objc -func (u_ UserIdentityLookupInfo) EmailAddress() string { - rv := objc.Call[string](u_, objc.Sel("emailAddress")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640405-userrecordid?language=objc +func (u_ UserIdentityLookupInfo) UserRecordID() RecordID { + rv := objc.Call[RecordID](u_, objc.Sel("userRecordID")) return rv } @@ -159,10 +159,10 @@ func (u_ UserIdentityLookupInfo) PhoneNumber() string { return rv } -// The ID of the user record. [Full Topic] +// The user’s email address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640405-userrecordid?language=objc -func (u_ UserIdentityLookupInfo) UserRecordID() RecordID { - rv := objc.Call[RecordID](u_, objc.Sel("userRecordID")) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckuseridentitylookupinfo/1640462-emailaddress?language=objc +func (u_ UserIdentityLookupInfo) EmailAddress() string { + rv := objc.Call[string](u_, objc.Sel("emailAddress")) return rv } diff --git a/macos/contacts/change_history_add_contact_event.gen.go b/macos/contacts/change_history_add_contact_event.gen.go index 8ad4c20a..aefdff0b 100644 --- a/macos/contacts/change_history_add_contact_event.gen.go +++ b/macos/contacts/change_history_add_contact_event.gen.go @@ -18,8 +18,8 @@ type _ChangeHistoryAddContactEventClass struct { // An interface definition for the [ChangeHistoryAddContactEvent] class. type IChangeHistoryAddContactEvent interface { IChangeHistoryEvent - ContainerIdentifier() string Contact() Contact + ContainerIdentifier() string } // [Full Topic] @@ -57,16 +57,16 @@ func (c_ ChangeHistoryAddContactEvent) Init() ChangeHistoryAddContactEvent { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddcontactevent/3113251-containeridentifier?language=objc -func (c_ ChangeHistoryAddContactEvent) ContainerIdentifier() string { - rv := objc.Call[string](c_, objc.Sel("containerIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddcontactevent/3113250-contact?language=objc +func (c_ ChangeHistoryAddContactEvent) Contact() Contact { + rv := objc.Call[Contact](c_, objc.Sel("contact")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddcontactevent/3113250-contact?language=objc -func (c_ ChangeHistoryAddContactEvent) Contact() Contact { - rv := objc.Call[Contact](c_, objc.Sel("contact")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddcontactevent/3113251-containeridentifier?language=objc +func (c_ ChangeHistoryAddContactEvent) ContainerIdentifier() string { + rv := objc.Call[string](c_, objc.Sel("containerIdentifier")) return rv } diff --git a/macos/contacts/change_history_add_group_event.gen.go b/macos/contacts/change_history_add_group_event.gen.go index 1a477127..f3aa69ac 100644 --- a/macos/contacts/change_history_add_group_event.gen.go +++ b/macos/contacts/change_history_add_group_event.gen.go @@ -18,8 +18,8 @@ type _ChangeHistoryAddGroupEventClass struct { // An interface definition for the [ChangeHistoryAddGroupEvent] class. type IChangeHistoryAddGroupEvent interface { IChangeHistoryEvent - ContainerIdentifier() string Group() Group + ContainerIdentifier() string } // [Full Topic] @@ -57,16 +57,16 @@ func (c_ ChangeHistoryAddGroupEvent) Init() ChangeHistoryAddGroupEvent { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddgroupevent/3113253-containeridentifier?language=objc -func (c_ ChangeHistoryAddGroupEvent) ContainerIdentifier() string { - rv := objc.Call[string](c_, objc.Sel("containerIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddgroupevent/3113254-group?language=objc +func (c_ ChangeHistoryAddGroupEvent) Group() Group { + rv := objc.Call[Group](c_, objc.Sel("group")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddgroupevent/3113254-group?language=objc -func (c_ ChangeHistoryAddGroupEvent) Group() Group { - rv := objc.Call[Group](c_, objc.Sel("group")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddgroupevent/3113253-containeridentifier?language=objc +func (c_ ChangeHistoryAddGroupEvent) ContainerIdentifier() string { + rv := objc.Call[string](c_, objc.Sel("containerIdentifier")) return rv } diff --git a/macos/contacts/change_history_add_member_to_group_event.gen.go b/macos/contacts/change_history_add_member_to_group_event.gen.go index 5ddc5e1d..87b5c178 100644 --- a/macos/contacts/change_history_add_member_to_group_event.gen.go +++ b/macos/contacts/change_history_add_member_to_group_event.gen.go @@ -18,8 +18,8 @@ type _ChangeHistoryAddMemberToGroupEventClass struct { // An interface definition for the [ChangeHistoryAddMemberToGroupEvent] class. type IChangeHistoryAddMemberToGroupEvent interface { IChangeHistoryEvent - Group() Group Member() Contact + Group() Group } // [Full Topic] @@ -57,16 +57,16 @@ func (c_ ChangeHistoryAddMemberToGroupEvent) Init() ChangeHistoryAddMemberToGrou // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddmembertogroupevent/3113256-group?language=objc -func (c_ ChangeHistoryAddMemberToGroupEvent) Group() Group { - rv := objc.Call[Group](c_, objc.Sel("group")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddmembertogroupevent/3113257-member?language=objc +func (c_ ChangeHistoryAddMemberToGroupEvent) Member() Contact { + rv := objc.Call[Contact](c_, objc.Sel("member")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddmembertogroupevent/3113257-member?language=objc -func (c_ ChangeHistoryAddMemberToGroupEvent) Member() Contact { - rv := objc.Call[Contact](c_, objc.Sel("member")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryaddmembertogroupevent/3113256-group?language=objc +func (c_ ChangeHistoryAddMemberToGroupEvent) Group() Group { + rv := objc.Call[Group](c_, objc.Sel("group")) return rv } diff --git a/macos/contacts/change_history_event_visitor_protocol.gen.go b/macos/contacts/change_history_event_visitor_protocol.gen.go index 3218c214..d7c87143 100644 --- a/macos/contacts/change_history_event_visitor_protocol.gen.go +++ b/macos/contacts/change_history_event_visitor_protocol.gen.go @@ -10,49 +10,49 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor?language=objc type PChangeHistoryEventVisitor interface { - // optional - VisitDropEverythingEvent(event ChangeHistoryDropEverythingEvent) - HasVisitDropEverythingEvent() bool - // optional VisitAddMemberToGroupEvent(event ChangeHistoryAddMemberToGroupEvent) HasVisitAddMemberToGroupEvent() bool - // optional - VisitRemoveSubgroupFromGroupEvent(event ChangeHistoryRemoveSubgroupFromGroupEvent) - HasVisitRemoveSubgroupFromGroupEvent() bool - // optional VisitDeleteContactEvent(event ChangeHistoryDeleteContactEvent) HasVisitDeleteContactEvent() bool // optional - VisitAddSubgroupToGroupEvent(event ChangeHistoryAddSubgroupToGroupEvent) - HasVisitAddSubgroupToGroupEvent() bool + VisitAddContactEvent(event ChangeHistoryAddContactEvent) + HasVisitAddContactEvent() bool // optional - VisitUpdateGroupEvent(event ChangeHistoryUpdateGroupEvent) - HasVisitUpdateGroupEvent() bool + VisitAddGroupEvent(event ChangeHistoryAddGroupEvent) + HasVisitAddGroupEvent() bool + + // optional + VisitDeleteGroupEvent(event ChangeHistoryDeleteGroupEvent) + HasVisitDeleteGroupEvent() bool + + // optional + VisitRemoveSubgroupFromGroupEvent(event ChangeHistoryRemoveSubgroupFromGroupEvent) + HasVisitRemoveSubgroupFromGroupEvent() bool // optional VisitUpdateContactEvent(event ChangeHistoryUpdateContactEvent) HasVisitUpdateContactEvent() bool // optional - VisitRemoveMemberFromGroupEvent(event ChangeHistoryRemoveMemberFromGroupEvent) - HasVisitRemoveMemberFromGroupEvent() bool + VisitDropEverythingEvent(event ChangeHistoryDropEverythingEvent) + HasVisitDropEverythingEvent() bool // optional - VisitAddContactEvent(event ChangeHistoryAddContactEvent) - HasVisitAddContactEvent() bool + VisitUpdateGroupEvent(event ChangeHistoryUpdateGroupEvent) + HasVisitUpdateGroupEvent() bool // optional - VisitDeleteGroupEvent(event ChangeHistoryDeleteGroupEvent) - HasVisitDeleteGroupEvent() bool + VisitAddSubgroupToGroupEvent(event ChangeHistoryAddSubgroupToGroupEvent) + HasVisitAddSubgroupToGroupEvent() bool // optional - VisitAddGroupEvent(event ChangeHistoryAddGroupEvent) - HasVisitAddGroupEvent() bool + VisitRemoveMemberFromGroupEvent(event ChangeHistoryRemoveMemberFromGroupEvent) + HasVisitRemoveMemberFromGroupEvent() bool } // ensure impl type implements protocol interface @@ -63,70 +63,70 @@ type ChangeHistoryEventVisitorObject struct { objc.Object } -func (c_ ChangeHistoryEventVisitorObject) HasVisitDropEverythingEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitDropEverythingEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitAddMemberToGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitAddMemberToGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113275-visitdropeverythingevent?language=objc -func (c_ ChangeHistoryEventVisitorObject) VisitDropEverythingEvent(event ChangeHistoryDropEverythingEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitDropEverythingEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113271-visitaddmembertogroupevent?language=objc +func (c_ ChangeHistoryEventVisitorObject) VisitAddMemberToGroupEvent(event ChangeHistoryAddMemberToGroupEvent) { + objc.Call[objc.Void](c_, objc.Sel("visitAddMemberToGroupEvent:"), event) } -func (c_ ChangeHistoryEventVisitorObject) HasVisitAddMemberToGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitAddMemberToGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitDeleteContactEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitDeleteContactEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113271-visitaddmembertogroupevent?language=objc -func (c_ ChangeHistoryEventVisitorObject) VisitAddMemberToGroupEvent(event ChangeHistoryAddMemberToGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitAddMemberToGroupEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113273-visitdeletecontactevent?language=objc +func (c_ ChangeHistoryEventVisitorObject) VisitDeleteContactEvent(event ChangeHistoryDeleteContactEvent) { + objc.Call[objc.Void](c_, objc.Sel("visitDeleteContactEvent:"), event) } -func (c_ ChangeHistoryEventVisitorObject) HasVisitRemoveSubgroupFromGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitRemoveSubgroupFromGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitAddContactEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitAddContactEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113277-visitremovesubgroupfromgroupeven?language=objc -func (c_ ChangeHistoryEventVisitorObject) VisitRemoveSubgroupFromGroupEvent(event ChangeHistoryRemoveSubgroupFromGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitRemoveSubgroupFromGroupEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113269-visitaddcontactevent?language=objc +func (c_ ChangeHistoryEventVisitorObject) VisitAddContactEvent(event ChangeHistoryAddContactEvent) { + objc.Call[objc.Void](c_, objc.Sel("visitAddContactEvent:"), event) } -func (c_ ChangeHistoryEventVisitorObject) HasVisitDeleteContactEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitDeleteContactEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitAddGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitAddGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113273-visitdeletecontactevent?language=objc -func (c_ ChangeHistoryEventVisitorObject) VisitDeleteContactEvent(event ChangeHistoryDeleteContactEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitDeleteContactEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113270-visitaddgroupevent?language=objc +func (c_ ChangeHistoryEventVisitorObject) VisitAddGroupEvent(event ChangeHistoryAddGroupEvent) { + objc.Call[objc.Void](c_, objc.Sel("visitAddGroupEvent:"), event) } -func (c_ ChangeHistoryEventVisitorObject) HasVisitAddSubgroupToGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitAddSubgroupToGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitDeleteGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitDeleteGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113272-visitaddsubgrouptogroupevent?language=objc -func (c_ ChangeHistoryEventVisitorObject) VisitAddSubgroupToGroupEvent(event ChangeHistoryAddSubgroupToGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitAddSubgroupToGroupEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113274-visitdeletegroupevent?language=objc +func (c_ ChangeHistoryEventVisitorObject) VisitDeleteGroupEvent(event ChangeHistoryDeleteGroupEvent) { + objc.Call[objc.Void](c_, objc.Sel("visitDeleteGroupEvent:"), event) } -func (c_ ChangeHistoryEventVisitorObject) HasVisitUpdateGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitUpdateGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitRemoveSubgroupFromGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitRemoveSubgroupFromGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113279-visitupdategroupevent?language=objc -func (c_ ChangeHistoryEventVisitorObject) VisitUpdateGroupEvent(event ChangeHistoryUpdateGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitUpdateGroupEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113277-visitremovesubgroupfromgroupeven?language=objc +func (c_ ChangeHistoryEventVisitorObject) VisitRemoveSubgroupFromGroupEvent(event ChangeHistoryRemoveSubgroupFromGroupEvent) { + objc.Call[objc.Void](c_, objc.Sel("visitRemoveSubgroupFromGroupEvent:"), event) } func (c_ ChangeHistoryEventVisitorObject) HasVisitUpdateContactEvent() bool { @@ -140,46 +140,46 @@ func (c_ ChangeHistoryEventVisitorObject) VisitUpdateContactEvent(event ChangeHi objc.Call[objc.Void](c_, objc.Sel("visitUpdateContactEvent:"), event) } -func (c_ ChangeHistoryEventVisitorObject) HasVisitRemoveMemberFromGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitRemoveMemberFromGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitDropEverythingEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitDropEverythingEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113276-visitremovememberfromgroupevent?language=objc -func (c_ ChangeHistoryEventVisitorObject) VisitRemoveMemberFromGroupEvent(event ChangeHistoryRemoveMemberFromGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitRemoveMemberFromGroupEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113275-visitdropeverythingevent?language=objc +func (c_ ChangeHistoryEventVisitorObject) VisitDropEverythingEvent(event ChangeHistoryDropEverythingEvent) { + objc.Call[objc.Void](c_, objc.Sel("visitDropEverythingEvent:"), event) } -func (c_ ChangeHistoryEventVisitorObject) HasVisitAddContactEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitAddContactEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitUpdateGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitUpdateGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113269-visitaddcontactevent?language=objc -func (c_ ChangeHistoryEventVisitorObject) VisitAddContactEvent(event ChangeHistoryAddContactEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitAddContactEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113279-visitupdategroupevent?language=objc +func (c_ ChangeHistoryEventVisitorObject) VisitUpdateGroupEvent(event ChangeHistoryUpdateGroupEvent) { + objc.Call[objc.Void](c_, objc.Sel("visitUpdateGroupEvent:"), event) } -func (c_ ChangeHistoryEventVisitorObject) HasVisitDeleteGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitDeleteGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitAddSubgroupToGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitAddSubgroupToGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113274-visitdeletegroupevent?language=objc -func (c_ ChangeHistoryEventVisitorObject) VisitDeleteGroupEvent(event ChangeHistoryDeleteGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitDeleteGroupEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113272-visitaddsubgrouptogroupevent?language=objc +func (c_ ChangeHistoryEventVisitorObject) VisitAddSubgroupToGroupEvent(event ChangeHistoryAddSubgroupToGroupEvent) { + objc.Call[objc.Void](c_, objc.Sel("visitAddSubgroupToGroupEvent:"), event) } -func (c_ ChangeHistoryEventVisitorObject) HasVisitAddGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitAddGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitRemoveMemberFromGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitRemoveMemberFromGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113270-visitaddgroupevent?language=objc -func (c_ ChangeHistoryEventVisitorObject) VisitAddGroupEvent(event ChangeHistoryAddGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitAddGroupEvent:"), event) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113276-visitremovememberfromgroupevent?language=objc +func (c_ ChangeHistoryEventVisitorObject) VisitRemoveMemberFromGroupEvent(event ChangeHistoryRemoveMemberFromGroupEvent) { + objc.Call[objc.Void](c_, objc.Sel("visitRemoveMemberFromGroupEvent:"), event) } diff --git a/macos/contacts/change_history_fetch_request.gen.go b/macos/contacts/change_history_fetch_request.gen.go index 1846923e..8ccb2b08 100644 --- a/macos/contacts/change_history_fetch_request.gen.go +++ b/macos/contacts/change_history_fetch_request.gen.go @@ -20,16 +20,16 @@ type IChangeHistoryFetchRequest interface { IFetchRequest MutableObjects() bool SetMutableObjects(value bool) - ShouldUnifyResults() bool - SetShouldUnifyResults(value bool) - IncludeGroupChanges() bool - SetIncludeGroupChanges(value bool) - AdditionalContactKeyDescriptors() []objc.Object - SetAdditionalContactKeyDescriptors(value []objc.IObject) ExcludedTransactionAuthors() []string SetExcludedTransactionAuthors(value []string) + ShouldUnifyResults() bool + SetShouldUnifyResults(value bool) StartingToken() []byte SetStartingToken(value []byte) + AdditionalContactKeyDescriptors() []objc.Object + SetAdditionalContactKeyDescriptors(value []objc.IObject) + IncludeGroupChanges() bool + SetIncludeGroupChanges(value bool) } // [Full Topic] @@ -80,6 +80,21 @@ func (c_ ChangeHistoryFetchRequest) SetMutableObjects(value bool) { objc.Call[objc.Void](c_, objc.Sel("setMutableObjects:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294185-excludedtransactionauthors?language=objc +func (c_ ChangeHistoryFetchRequest) ExcludedTransactionAuthors() []string { + rv := objc.Call[[]string](c_, objc.Sel("excludedTransactionAuthors")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294185-excludedtransactionauthors?language=objc +func (c_ ChangeHistoryFetchRequest) SetExcludedTransactionAuthors(value []string) { + objc.Call[objc.Void](c_, objc.Sel("setExcludedTransactionAuthors:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294188-shouldunifyresults?language=objc @@ -97,17 +112,17 @@ func (c_ ChangeHistoryFetchRequest) SetShouldUnifyResults(value bool) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294186-includegroupchanges?language=objc -func (c_ ChangeHistoryFetchRequest) IncludeGroupChanges() bool { - rv := objc.Call[bool](c_, objc.Sel("includeGroupChanges")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294189-startingtoken?language=objc +func (c_ ChangeHistoryFetchRequest) StartingToken() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("startingToken")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294186-includegroupchanges?language=objc -func (c_ ChangeHistoryFetchRequest) SetIncludeGroupChanges(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setIncludeGroupChanges:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294189-startingtoken?language=objc +func (c_ ChangeHistoryFetchRequest) SetStartingToken(value []byte) { + objc.Call[objc.Void](c_, objc.Sel("setStartingToken:"), value) } // [Full Topic] @@ -127,30 +142,15 @@ func (c_ ChangeHistoryFetchRequest) SetAdditionalContactKeyDescriptors(value []o // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294185-excludedtransactionauthors?language=objc -func (c_ ChangeHistoryFetchRequest) ExcludedTransactionAuthors() []string { - rv := objc.Call[[]string](c_, objc.Sel("excludedTransactionAuthors")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294185-excludedtransactionauthors?language=objc -func (c_ ChangeHistoryFetchRequest) SetExcludedTransactionAuthors(value []string) { - objc.Call[objc.Void](c_, objc.Sel("setExcludedTransactionAuthors:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294189-startingtoken?language=objc -func (c_ ChangeHistoryFetchRequest) StartingToken() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("startingToken")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294186-includegroupchanges?language=objc +func (c_ ChangeHistoryFetchRequest) IncludeGroupChanges() bool { + rv := objc.Call[bool](c_, objc.Sel("includeGroupChanges")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294189-startingtoken?language=objc -func (c_ ChangeHistoryFetchRequest) SetStartingToken(value []byte) { - objc.Call[objc.Void](c_, objc.Sel("setStartingToken:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest/3294186-includegroupchanges?language=objc +func (c_ ChangeHistoryFetchRequest) SetIncludeGroupChanges(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setIncludeGroupChanges:"), value) } diff --git a/macos/contacts/change_history_remove_member_from_group_event.gen.go b/macos/contacts/change_history_remove_member_from_group_event.gen.go index 523459ef..163adaea 100644 --- a/macos/contacts/change_history_remove_member_from_group_event.gen.go +++ b/macos/contacts/change_history_remove_member_from_group_event.gen.go @@ -18,8 +18,8 @@ type _ChangeHistoryRemoveMemberFromGroupEventClass struct { // An interface definition for the [ChangeHistoryRemoveMemberFromGroupEvent] class. type IChangeHistoryRemoveMemberFromGroupEvent interface { IChangeHistoryEvent - Group() Group Member() Contact + Group() Group } // [Full Topic] @@ -57,16 +57,16 @@ func (c_ ChangeHistoryRemoveMemberFromGroupEvent) Init() ChangeHistoryRemoveMemb // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryremovememberfromgroupevent/3113281-group?language=objc -func (c_ ChangeHistoryRemoveMemberFromGroupEvent) Group() Group { - rv := objc.Call[Group](c_, objc.Sel("group")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryremovememberfromgroupevent/3113282-member?language=objc +func (c_ ChangeHistoryRemoveMemberFromGroupEvent) Member() Contact { + rv := objc.Call[Contact](c_, objc.Sel("member")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryremovememberfromgroupevent/3113282-member?language=objc -func (c_ ChangeHistoryRemoveMemberFromGroupEvent) Member() Contact { - rv := objc.Call[Contact](c_, objc.Sel("member")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryremovememberfromgroupevent/3113281-group?language=objc +func (c_ ChangeHistoryRemoveMemberFromGroupEvent) Group() Group { + rv := objc.Call[Group](c_, objc.Sel("group")) return rv } diff --git a/macos/contacts/contact.gen.go b/macos/contacts/contact.gen.go index 33903e40..0d47e5b7 100644 --- a/macos/contacts/contact.gen.go +++ b/macos/contacts/contact.gen.go @@ -20,38 +20,38 @@ type _ContactClass struct { type IContact interface { objc.IObject IsUnifiedWithContactWithIdentifier(contactIdentifier string) bool - AreKeysAvailable(keyDescriptors []objc.IObject) bool IsKeyAvailable(key string) bool - DepartmentName() string - PostalAddresses() []LabeledValue - ThumbnailImageData() []byte + AreKeysAvailable(keyDescriptors []objc.IObject) bool + Dates() []LabeledValue PhoneNumbers() []LabeledValue - NameSuffix() string - PhoneticFamilyName() string - ImageData() []byte + PreviousFamilyName() string + PhoneticOrganizationName() string + ContactType() ContactType + ThumbnailImageData() []byte PhoneticGivenName() string + PhoneticMiddleName() string NamePrefix() string - Birthday() foundation.DateComponents - JobTitle() string - PreviousFamilyName() string - ImageDataAvailable() bool - UrlAddresses() []LabeledValue + PostalAddresses() []LabeledValue NonGregorianBirthday() foundation.DateComponents - Nickname() string - PhoneticOrganizationName() string ContactRelations() []LabeledValue + Birthday() foundation.DateComponents + ImageData() []byte Note() string MiddleName() string - ContactType() ContactType + JobTitle() string GivenName() string - SocialProfiles() []LabeledValue - PhoneticMiddleName() string - Identifier() string - InstantMessageAddresses() []LabeledValue - FamilyName() string EmailAddresses() []LabeledValue + InstantMessageAddresses() []LabeledValue + UrlAddresses() []LabeledValue + ImageDataAvailable() bool OrganizationName() string - Dates() []LabeledValue + NameSuffix() string + DepartmentName() string + PhoneticFamilyName() string + SocialProfiles() []LabeledValue + FamilyName() string + Identifier() string + Nickname() string } // An immutable object that stores information about a single contact, such as the contact's first name, phone numbers, and addresses. [Full Topic] @@ -87,34 +87,41 @@ func (c_ Contact) Init() Contact { return rv } -// Returns a Boolean indicating whether the current contact is a unified contact and includes a contact with the specified identifier. [Full Topic] +// Returns a predicate to find the contacts whose email address matches the specified value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403218-isunifiedwithcontactwithidentifi?language=objc -func (c_ Contact) IsUnifiedWithContactWithIdentifier(contactIdentifier string) bool { - rv := objc.Call[bool](c_, objc.Sel("isUnifiedWithContactWithIdentifier:"), contactIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/3020510-predicateforcontactsmatchingemai?language=objc +func (cc _ContactClass) PredicateForContactsMatchingEmailAddress(emailAddress string) foundation.Predicate { + rv := objc.Call[foundation.Predicate](cc, objc.Sel("predicateForContactsMatchingEmailAddress:"), emailAddress) return rv } -// Returns a predicate to find the contacts whose phone number matches the specified value. [Full Topic] +// Returns a predicate to find the contacts whose email address matches the specified value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/3020511-predicateforcontactsmatchingphon?language=objc -func (cc _ContactClass) PredicateForContactsMatchingPhoneNumber(phoneNumber IPhoneNumber) foundation.Predicate { - rv := objc.Call[foundation.Predicate](cc, objc.Sel("predicateForContactsMatchingPhoneNumber:"), phoneNumber) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/3020510-predicateforcontactsmatchingemai?language=objc +func Contact_PredicateForContactsMatchingEmailAddress(emailAddress string) foundation.Predicate { + return ContactClass.PredicateForContactsMatchingEmailAddress(emailAddress) +} + +// Returns a comparator to sort contacts with the specified order. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403401-comparatorfornamesortorder?language=objc +func (cc _ContactClass) ComparatorForNameSortOrder(sortOrder ContactSortOrder) foundation.Comparator { + rv := objc.Call[foundation.Comparator](cc, objc.Sel("comparatorForNameSortOrder:"), sortOrder) return rv } -// Returns a predicate to find the contacts whose phone number matches the specified value. [Full Topic] +// Returns a comparator to sort contacts with the specified order. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/3020511-predicateforcontactsmatchingphon?language=objc -func Contact_PredicateForContactsMatchingPhoneNumber(phoneNumber IPhoneNumber) foundation.Predicate { - return ContactClass.PredicateForContactsMatchingPhoneNumber(phoneNumber) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403401-comparatorfornamesortorder?language=objc +func Contact_ComparatorForNameSortOrder(sortOrder ContactSortOrder) foundation.Comparator { + return ContactClass.ComparatorForNameSortOrder(sortOrder) } -// Determines whether all contact property values for the specified keys are fetched. [Full Topic] +// Returns a Boolean indicating whether the current contact is a unified contact and includes a contact with the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403416-arekeysavailable?language=objc -func (c_ Contact) AreKeysAvailable(keyDescriptors []objc.IObject) bool { - rv := objc.Call[bool](c_, objc.Sel("areKeysAvailable:"), keyDescriptors) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403218-isunifiedwithcontactwithidentifi?language=objc +func (c_ Contact) IsUnifiedWithContactWithIdentifier(contactIdentifier string) bool { + rv := objc.Call[bool](c_, objc.Sel("isUnifiedWithContactWithIdentifier:"), contactIdentifier) return rv } @@ -126,6 +133,36 @@ func (c_ Contact) IsKeyAvailable(key string) bool { return rv } +// Returns a predicate to find the contacts in the specified container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403246-predicateforcontactsincontainerw?language=objc +func (cc _ContactClass) PredicateForContactsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate { + rv := objc.Call[foundation.Predicate](cc, objc.Sel("predicateForContactsInContainerWithIdentifier:"), containerIdentifier) + return rv +} + +// Returns a predicate to find the contacts in the specified container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403246-predicateforcontactsincontainerw?language=objc +func Contact_PredicateForContactsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate { + return ContactClass.PredicateForContactsInContainerWithIdentifier(containerIdentifier) +} + +// Returns a predicate to find the contacts whose phone number matches the specified value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/3020511-predicateforcontactsmatchingphon?language=objc +func (cc _ContactClass) PredicateForContactsMatchingPhoneNumber(phoneNumber IPhoneNumber) foundation.Predicate { + rv := objc.Call[foundation.Predicate](cc, objc.Sel("predicateForContactsMatchingPhoneNumber:"), phoneNumber) + return rv +} + +// Returns a predicate to find the contacts whose phone number matches the specified value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/3020511-predicateforcontactsmatchingphon?language=objc +func Contact_PredicateForContactsMatchingPhoneNumber(phoneNumber IPhoneNumber) foundation.Predicate { + return ContactClass.PredicateForContactsMatchingPhoneNumber(phoneNumber) +} + // Fetches all the keys required for the contact sort comparator. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402871-descriptorforallcomparatorkeys?language=objc @@ -141,21 +178,6 @@ func Contact_DescriptorForAllComparatorKeys() objc.Object { return ContactClass.DescriptorForAllComparatorKeys() } -// Returns a predicate to find the contacts whose email address matches the specified value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/3020510-predicateforcontactsmatchingemai?language=objc -func (cc _ContactClass) PredicateForContactsMatchingEmailAddress(emailAddress string) foundation.Predicate { - rv := objc.Call[foundation.Predicate](cc, objc.Sel("predicateForContactsMatchingEmailAddress:"), emailAddress) - return rv -} - -// Returns a predicate to find the contacts whose email address matches the specified value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/3020510-predicateforcontactsmatchingemai?language=objc -func Contact_PredicateForContactsMatchingEmailAddress(emailAddress string) foundation.Predicate { - return ContactClass.PredicateForContactsMatchingEmailAddress(emailAddress) -} - // Returns a predicate to find the contacts that are members in the specified group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402810-predicateforcontactsingroupwithi?language=objc @@ -171,21 +193,6 @@ func Contact_PredicateForContactsInGroupWithIdentifier(groupIdentifier string) f return ContactClass.PredicateForContactsInGroupWithIdentifier(groupIdentifier) } -// Returns a string containing the localized contact property name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403244-localizedstringforkey?language=objc -func (cc _ContactClass) LocalizedStringForKey(key string) string { - rv := objc.Call[string](cc, objc.Sel("localizedStringForKey:"), key) - return rv -} - -// Returns a string containing the localized contact property name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403244-localizedstringforkey?language=objc -func Contact_LocalizedStringForKey(key string) string { - return ContactClass.LocalizedStringForKey(key) -} - // Returns a predicate to find the contacts matching the specified name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403234-predicateforcontactsmatchingname?language=objc @@ -201,34 +208,27 @@ func Contact_PredicateForContactsMatchingName(name string) foundation.Predicate return ContactClass.PredicateForContactsMatchingName(name) } -// Returns a predicate to find the contacts in the specified container. [Full Topic] +// Determines whether all contact property values for the specified keys are fetched. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403246-predicateforcontactsincontainerw?language=objc -func (cc _ContactClass) PredicateForContactsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate { - rv := objc.Call[foundation.Predicate](cc, objc.Sel("predicateForContactsInContainerWithIdentifier:"), containerIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403416-arekeysavailable?language=objc +func (c_ Contact) AreKeysAvailable(keyDescriptors []objc.IObject) bool { + rv := objc.Call[bool](c_, objc.Sel("areKeysAvailable:"), keyDescriptors) return rv } -// Returns a predicate to find the contacts in the specified container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403246-predicateforcontactsincontainerw?language=objc -func Contact_PredicateForContactsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate { - return ContactClass.PredicateForContactsInContainerWithIdentifier(containerIdentifier) -} - -// Returns a comparator to sort contacts with the specified order. [Full Topic] +// Returns a string containing the localized contact property name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403401-comparatorfornamesortorder?language=objc -func (cc _ContactClass) ComparatorForNameSortOrder(sortOrder ContactSortOrder) foundation.Comparator { - rv := objc.Call[foundation.Comparator](cc, objc.Sel("comparatorForNameSortOrder:"), sortOrder) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403244-localizedstringforkey?language=objc +func (cc _ContactClass) LocalizedStringForKey(key string) string { + rv := objc.Call[string](cc, objc.Sel("localizedStringForKey:"), key) return rv } -// Returns a comparator to sort contacts with the specified order. [Full Topic] +// Returns a string containing the localized contact property name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403401-comparatorfornamesortorder?language=objc -func Contact_ComparatorForNameSortOrder(sortOrder ContactSortOrder) foundation.Comparator { - return ContactClass.ComparatorForNameSortOrder(sortOrder) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403244-localizedstringforkey?language=objc +func Contact_LocalizedStringForKey(key string) string { + return ContactClass.LocalizedStringForKey(key) } // Returns a predicate to find the contacts matching the specified identifiers. [Full Topic] @@ -246,27 +246,11 @@ func Contact_PredicateForContactsWithIdentifiers(identifiers []string) foundatio return ContactClass.PredicateForContactsWithIdentifiers(identifiers) } -// The name of the department associated with the contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403232-departmentname?language=objc -func (c_ Contact) DepartmentName() string { - rv := objc.Call[string](c_, objc.Sel("departmentName")) - return rv -} - -// An array of labeled postal addresses for a contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403066-postaladdresses?language=objc -func (c_ Contact) PostalAddresses() []LabeledValue { - rv := objc.Call[[]LabeledValue](c_, objc.Sel("postalAddresses")) - return rv -} - -// The thumbnail version of the contact’s profile picture. [Full Topic] +// An array containing labeled Gregorian dates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402903-thumbnailimagedata?language=objc -func (c_ Contact) ThumbnailImageData() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("thumbnailImageData")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403196-dates?language=objc +func (c_ Contact) Dates() []LabeledValue { + rv := objc.Call[[]LabeledValue](c_, objc.Sel("dates")) return rv } @@ -278,83 +262,67 @@ func (c_ Contact) PhoneNumbers() []LabeledValue { return rv } -// The name suffix of the contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402817-namesuffix?language=objc -func (c_ Contact) NameSuffix() string { - rv := objc.Call[string](c_, objc.Sel("nameSuffix")) - return rv -} - -// A string for the phonetic family name of the contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403186-phoneticfamilyname?language=objc -func (c_ Contact) PhoneticFamilyName() string { - rv := objc.Call[string](c_, objc.Sel("phoneticFamilyName")) - return rv -} - -// The profile picture of a contact. [Full Topic] +// A string for the previous family name of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402968-imagedata?language=objc -func (c_ Contact) ImageData() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("imageData")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402878-previousfamilyname?language=objc +func (c_ Contact) PreviousFamilyName() string { + rv := objc.Call[string](c_, objc.Sel("previousFamilyName")) return rv } -// The phonetic given name of the contact. [Full Topic] +// The phonetic name of the organization associated with the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403068-phoneticgivenname?language=objc -func (c_ Contact) PhoneticGivenName() string { - rv := objc.Call[string](c_, objc.Sel("phoneticGivenName")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/2142774-phoneticorganizationname?language=objc +func (c_ Contact) PhoneticOrganizationName() string { + rv := objc.Call[string](c_, objc.Sel("phoneticOrganizationName")) return rv } -// The name prefix of the contact. [Full Topic] +// An enum identifying the contact type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403002-nameprefix?language=objc -func (c_ Contact) NamePrefix() string { - rv := objc.Call[string](c_, objc.Sel("namePrefix")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403119-contacttype?language=objc +func (c_ Contact) ContactType() ContactType { + rv := objc.Call[ContactType](c_, objc.Sel("contactType")) return rv } -// A date component for the Gregorian birthday of the contact. [Full Topic] +// The thumbnail version of the contact’s profile picture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403059-birthday?language=objc -func (c_ Contact) Birthday() foundation.DateComponents { - rv := objc.Call[foundation.DateComponents](c_, objc.Sel("birthday")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402903-thumbnailimagedata?language=objc +func (c_ Contact) ThumbnailImageData() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("thumbnailImageData")) return rv } -// The contact’s job title. [Full Topic] +// The phonetic given name of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403151-jobtitle?language=objc -func (c_ Contact) JobTitle() string { - rv := objc.Call[string](c_, objc.Sel("jobTitle")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403068-phoneticgivenname?language=objc +func (c_ Contact) PhoneticGivenName() string { + rv := objc.Call[string](c_, objc.Sel("phoneticGivenName")) return rv } -// A string for the previous family name of the contact. [Full Topic] +// The phonetic middle name of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402878-previousfamilyname?language=objc -func (c_ Contact) PreviousFamilyName() string { - rv := objc.Call[string](c_, objc.Sel("previousFamilyName")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403031-phoneticmiddlename?language=objc +func (c_ Contact) PhoneticMiddleName() string { + rv := objc.Call[string](c_, objc.Sel("phoneticMiddleName")) return rv } -// A Boolean indicating whether a contact has a profile picture. [Full Topic] +// The name prefix of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1614589-imagedataavailable?language=objc -func (c_ Contact) ImageDataAvailable() bool { - rv := objc.Call[bool](c_, objc.Sel("imageDataAvailable")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403002-nameprefix?language=objc +func (c_ Contact) NamePrefix() string { + rv := objc.Call[string](c_, objc.Sel("namePrefix")) return rv } -// An array of labeled URL addresses for a contact. [Full Topic] +// An array of labeled postal addresses for a contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403111-urladdresses?language=objc -func (c_ Contact) UrlAddresses() []LabeledValue { - rv := objc.Call[[]LabeledValue](c_, objc.Sel("urlAddresses")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403066-postaladdresses?language=objc +func (c_ Contact) PostalAddresses() []LabeledValue { + rv := objc.Call[[]LabeledValue](c_, objc.Sel("postalAddresses")) return rv } @@ -366,27 +334,27 @@ func (c_ Contact) NonGregorianBirthday() foundation.DateComponents { return rv } -// The nickname of the contact. [Full Topic] +// An array of labeled relations for the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403299-nickname?language=objc -func (c_ Contact) Nickname() string { - rv := objc.Call[string](c_, objc.Sel("nickname")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402998-contactrelations?language=objc +func (c_ Contact) ContactRelations() []LabeledValue { + rv := objc.Call[[]LabeledValue](c_, objc.Sel("contactRelations")) return rv } -// The phonetic name of the organization associated with the contact. [Full Topic] +// A date component for the Gregorian birthday of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/2142774-phoneticorganizationname?language=objc -func (c_ Contact) PhoneticOrganizationName() string { - rv := objc.Call[string](c_, objc.Sel("phoneticOrganizationName")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403059-birthday?language=objc +func (c_ Contact) Birthday() foundation.DateComponents { + rv := objc.Call[foundation.DateComponents](c_, objc.Sel("birthday")) return rv } -// An array of labeled relations for the contact. [Full Topic] +// The profile picture of a contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402998-contactrelations?language=objc -func (c_ Contact) ContactRelations() []LabeledValue { - rv := objc.Call[[]LabeledValue](c_, objc.Sel("contactRelations")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402968-imagedata?language=objc +func (c_ Contact) ImageData() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("imageData")) return rv } @@ -406,11 +374,11 @@ func (c_ Contact) MiddleName() string { return rv } -// An enum identifying the contact type. [Full Topic] +// The contact’s job title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403119-contacttype?language=objc -func (c_ Contact) ContactType() ContactType { - rv := objc.Call[ContactType](c_, objc.Sel("contactType")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403151-jobtitle?language=objc +func (c_ Contact) JobTitle() string { + rv := objc.Call[string](c_, objc.Sel("jobTitle")) return rv } @@ -422,27 +390,11 @@ func (c_ Contact) GivenName() string { return rv } -// An array of labeled social profiles for a contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403054-socialprofiles?language=objc -func (c_ Contact) SocialProfiles() []LabeledValue { - rv := objc.Call[[]LabeledValue](c_, objc.Sel("socialProfiles")) - return rv -} - -// The phonetic middle name of the contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403031-phoneticmiddlename?language=objc -func (c_ Contact) PhoneticMiddleName() string { - rv := objc.Call[string](c_, objc.Sel("phoneticMiddleName")) - return rv -} - -// A value that uniquely identifies a contact on the device. [Full Topic] +// An array of labeled email addresses for the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403103-identifier?language=objc -func (c_ Contact) Identifier() string { - rv := objc.Call[string](c_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403338-emailaddresses?language=objc +func (c_ Contact) EmailAddresses() []LabeledValue { + rv := objc.Call[[]LabeledValue](c_, objc.Sel("emailAddresses")) return rv } @@ -454,19 +406,19 @@ func (c_ Contact) InstantMessageAddresses() []LabeledValue { return rv } -// The family name of the contact. [Full Topic] +// An array of labeled URL addresses for a contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403397-familyname?language=objc -func (c_ Contact) FamilyName() string { - rv := objc.Call[string](c_, objc.Sel("familyName")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403111-urladdresses?language=objc +func (c_ Contact) UrlAddresses() []LabeledValue { + rv := objc.Call[[]LabeledValue](c_, objc.Sel("urlAddresses")) return rv } -// An array of labeled email addresses for the contact. [Full Topic] +// A Boolean indicating whether a contact has a profile picture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403338-emailaddresses?language=objc -func (c_ Contact) EmailAddresses() []LabeledValue { - rv := objc.Call[[]LabeledValue](c_, objc.Sel("emailAddresses")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1614589-imagedataavailable?language=objc +func (c_ Contact) ImageDataAvailable() bool { + rv := objc.Call[bool](c_, objc.Sel("imageDataAvailable")) return rv } @@ -478,10 +430,58 @@ func (c_ Contact) OrganizationName() string { return rv } -// An array containing labeled Gregorian dates. [Full Topic] +// The name suffix of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403196-dates?language=objc -func (c_ Contact) Dates() []LabeledValue { - rv := objc.Call[[]LabeledValue](c_, objc.Sel("dates")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402817-namesuffix?language=objc +func (c_ Contact) NameSuffix() string { + rv := objc.Call[string](c_, objc.Sel("nameSuffix")) + return rv +} + +// The name of the department associated with the contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403232-departmentname?language=objc +func (c_ Contact) DepartmentName() string { + rv := objc.Call[string](c_, objc.Sel("departmentName")) + return rv +} + +// A string for the phonetic family name of the contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403186-phoneticfamilyname?language=objc +func (c_ Contact) PhoneticFamilyName() string { + rv := objc.Call[string](c_, objc.Sel("phoneticFamilyName")) + return rv +} + +// An array of labeled social profiles for a contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403054-socialprofiles?language=objc +func (c_ Contact) SocialProfiles() []LabeledValue { + rv := objc.Call[[]LabeledValue](c_, objc.Sel("socialProfiles")) + return rv +} + +// The family name of the contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403397-familyname?language=objc +func (c_ Contact) FamilyName() string { + rv := objc.Call[string](c_, objc.Sel("familyName")) + return rv +} + +// A value that uniquely identifies a contact on the device. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403103-identifier?language=objc +func (c_ Contact) Identifier() string { + rv := objc.Call[string](c_, objc.Sel("identifier")) + return rv +} + +// The nickname of the contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403299-nickname?language=objc +func (c_ Contact) Nickname() string { + rv := objc.Call[string](c_, objc.Sel("nickname")) return rv } diff --git a/macos/contacts/contact_fetch_request.gen.go b/macos/contacts/contact_fetch_request.gen.go index c28263ed..a1f21820 100644 --- a/macos/contacts/contact_fetch_request.gen.go +++ b/macos/contacts/contact_fetch_request.gen.go @@ -19,16 +19,16 @@ type _ContactFetchRequestClass struct { // An interface definition for the [ContactFetchRequest] class. type IContactFetchRequest interface { IFetchRequest - UnifyResults() bool - SetUnifyResults(value bool) + MutableObjects() bool + SetMutableObjects(value bool) + KeysToFetch() []objc.Object + SetKeysToFetch(value []objc.IObject) SortOrder() ContactSortOrder SetSortOrder(value ContactSortOrder) Predicate() foundation.Predicate SetPredicate(value foundation.IPredicate) - KeysToFetch() []objc.Object - SetKeysToFetch(value []objc.IObject) - MutableObjects() bool - SetMutableObjects(value bool) + UnifyResults() bool + SetUnifyResults(value bool) } // An object that defines the options to use when fetching contacts. [Full Topic] @@ -78,19 +78,34 @@ func (c_ ContactFetchRequest) Init() ContactFetchRequest { return rv } -// A Boolean value that indicates whether to return linked contacts as unified contacts. [Full Topic] +// A Boolean value that indicates whether to return mutable contacts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1403293-unifyresults?language=objc -func (c_ ContactFetchRequest) UnifyResults() bool { - rv := objc.Call[bool](c_, objc.Sel("unifyResults")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1402835-mutableobjects?language=objc +func (c_ ContactFetchRequest) MutableObjects() bool { + rv := objc.Call[bool](c_, objc.Sel("mutableObjects")) return rv } -// A Boolean value that indicates whether to return linked contacts as unified contacts. [Full Topic] +// A Boolean value that indicates whether to return mutable contacts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1403293-unifyresults?language=objc -func (c_ ContactFetchRequest) SetUnifyResults(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setUnifyResults:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1402835-mutableobjects?language=objc +func (c_ ContactFetchRequest) SetMutableObjects(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setMutableObjects:"), value) +} + +// The properties to fetch in the returned contacts. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1403360-keystofetch?language=objc +func (c_ ContactFetchRequest) KeysToFetch() []objc.Object { + rv := objc.Call[[]objc.Object](c_, objc.Sel("keysToFetch")) + return rv +} + +// The properties to fetch in the returned contacts. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1403360-keystofetch?language=objc +func (c_ ContactFetchRequest) SetKeysToFetch(value []objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setKeysToFetch:"), value) } // The sort order for contacts. [Full Topic] @@ -123,32 +138,17 @@ func (c_ ContactFetchRequest) SetPredicate(value foundation.IPredicate) { objc.Call[objc.Void](c_, objc.Sel("setPredicate:"), value) } -// The properties to fetch in the returned contacts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1403360-keystofetch?language=objc -func (c_ ContactFetchRequest) KeysToFetch() []objc.Object { - rv := objc.Call[[]objc.Object](c_, objc.Sel("keysToFetch")) - return rv -} - -// The properties to fetch in the returned contacts. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1403360-keystofetch?language=objc -func (c_ ContactFetchRequest) SetKeysToFetch(value []objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setKeysToFetch:"), value) -} - -// A Boolean value that indicates whether to return mutable contacts. [Full Topic] +// A Boolean value that indicates whether to return linked contacts as unified contacts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1402835-mutableobjects?language=objc -func (c_ ContactFetchRequest) MutableObjects() bool { - rv := objc.Call[bool](c_, objc.Sel("mutableObjects")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1403293-unifyresults?language=objc +func (c_ ContactFetchRequest) UnifyResults() bool { + rv := objc.Call[bool](c_, objc.Sel("unifyResults")) return rv } -// A Boolean value that indicates whether to return mutable contacts. [Full Topic] +// A Boolean value that indicates whether to return linked contacts as unified contacts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1402835-mutableobjects?language=objc -func (c_ ContactFetchRequest) SetMutableObjects(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setMutableObjects:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactfetchrequest/1403293-unifyresults?language=objc +func (c_ ContactFetchRequest) SetUnifyResults(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setUnifyResults:"), value) } diff --git a/macos/contacts/contact_formatter.gen.go b/macos/contacts/contact_formatter.gen.go index f1cdd41b..ff9abe22 100644 --- a/macos/contacts/contact_formatter.gen.go +++ b/macos/contacts/contact_formatter.gen.go @@ -58,21 +58,6 @@ func (c_ ContactFormatter) Init() ContactFormatter { return rv } -// Returns the delimiter to use between name components. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397744-delimiterforcontact?language=objc -func (cc _ContactFormatterClass) DelimiterForContact(contact IContact) string { - rv := objc.Call[string](cc, objc.Sel("delimiterForContact:"), contact) - return rv -} - -// Returns the delimiter to use between name components. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397744-delimiterforcontact?language=objc -func ContactFormatter_DelimiterForContact(contact IContact) string { - return ContactFormatterClass.DelimiterForContact(contact) -} - // Formats the contact name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397754-stringfromcontact?language=objc @@ -81,29 +66,6 @@ func (c_ ContactFormatter) StringFromContact(contact IContact) string { return rv } -// Formats the contact name as an attributed string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397733-attributedstringfromcontact?language=objc -func (c_ ContactFormatter) AttributedStringFromContactDefaultAttributes(contact IContact, attributes foundation.Dictionary) foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](c_, objc.Sel("attributedStringFromContact:defaultAttributes:"), contact, attributes) - return rv -} - -// Returns the contact name, formatted with the specified formatter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397750-stringfromcontact?language=objc -func (cc _ContactFormatterClass) StringFromContactStyle(contact IContact, style ContactFormatterStyle) string { - rv := objc.Call[string](cc, objc.Sel("stringFromContact:style:"), contact, style) - return rv -} - -// Returns the contact name, formatted with the specified formatter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397750-stringfromcontact?language=objc -func ContactFormatter_StringFromContactStyle(contact IContact, style ContactFormatterStyle) string { - return ContactFormatterClass.StringFromContactStyle(contact, style) -} - // Returns the required key descriptor for the specified formatting style of the contact. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397746-descriptorforrequiredkeysforstyl?language=objc @@ -119,21 +81,6 @@ func ContactFormatter_DescriptorForRequiredKeysForStyle(style ContactFormatterSt return ContactFormatterClass.DescriptorForRequiredKeysForStyle(style) } -// Formats the contact name as an attributed string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397748-attributedstringfromcontact?language=objc -func (cc _ContactFormatterClass) AttributedStringFromContactStyleDefaultAttributes(contact IContact, style ContactFormatterStyle, attributes foundation.Dictionary) foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](cc, objc.Sel("attributedStringFromContact:style:defaultAttributes:"), contact, style, attributes) - return rv -} - -// Formats the contact name as an attributed string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397748-attributedstringfromcontact?language=objc -func ContactFormatter_AttributedStringFromContactStyleDefaultAttributes(contact IContact, style ContactFormatterStyle, attributes foundation.Dictionary) foundation.AttributedString { - return ContactFormatterClass.AttributedStringFromContactStyleDefaultAttributes(contact, style, attributes) -} - // Returns the display name order. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397731-nameorderforcontact?language=objc @@ -149,19 +96,42 @@ func ContactFormatter_NameOrderForContact(contact IContact) ContactDisplayNameOr return ContactFormatterClass.NameOrderForContact(contact) } -// [Full Topic] +// Formats the contact name as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/3601126-descriptorforrequiredkeysfordeli?language=objc -func (cc _ContactFormatterClass) DescriptorForRequiredKeysForDelimiter() objc.Object { - rv := objc.Call[objc.Object](cc, objc.Sel("descriptorForRequiredKeysForDelimiter")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397733-attributedstringfromcontact?language=objc +func (c_ ContactFormatter) AttributedStringFromContactDefaultAttributes(contact IContact, attributes foundation.Dictionary) foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](c_, objc.Sel("attributedStringFromContact:defaultAttributes:"), contact, attributes) return rv } -// [Full Topic] +// Returns the delimiter to use between name components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/3601126-descriptorforrequiredkeysfordeli?language=objc -func ContactFormatter_DescriptorForRequiredKeysForDelimiter() objc.Object { - return ContactFormatterClass.DescriptorForRequiredKeysForDelimiter() +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397744-delimiterforcontact?language=objc +func (cc _ContactFormatterClass) DelimiterForContact(contact IContact) string { + rv := objc.Call[string](cc, objc.Sel("delimiterForContact:"), contact) + return rv +} + +// Returns the delimiter to use between name components. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397744-delimiterforcontact?language=objc +func ContactFormatter_DelimiterForContact(contact IContact) string { + return ContactFormatterClass.DelimiterForContact(contact) +} + +// The formatting style for the contact name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397758-style?language=objc +func (c_ ContactFormatter) Style() ContactFormatterStyle { + rv := objc.Call[ContactFormatterStyle](c_, objc.Sel("style")) + return rv +} + +// The formatting style for the contact name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397758-style?language=objc +func (c_ ContactFormatter) SetStyle(value ContactFormatterStyle) { + objc.Call[objc.Void](c_, objc.Sel("setStyle:"), value) } // [Full Topic] @@ -179,17 +149,17 @@ func ContactFormatter_DescriptorForRequiredKeysForNameOrder() objc.Object { return ContactFormatterClass.DescriptorForRequiredKeysForNameOrder() } -// The formatting style for the contact name. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397758-style?language=objc -func (c_ ContactFormatter) Style() ContactFormatterStyle { - rv := objc.Call[ContactFormatterStyle](c_, objc.Sel("style")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/3601126-descriptorforrequiredkeysfordeli?language=objc +func (cc _ContactFormatterClass) DescriptorForRequiredKeysForDelimiter() objc.Object { + rv := objc.Call[objc.Object](cc, objc.Sel("descriptorForRequiredKeysForDelimiter")) return rv } -// The formatting style for the contact name. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397758-style?language=objc -func (c_ ContactFormatter) SetStyle(value ContactFormatterStyle) { - objc.Call[objc.Void](c_, objc.Sel("setStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/3601126-descriptorforrequiredkeysfordeli?language=objc +func ContactFormatter_DescriptorForRequiredKeysForDelimiter() objc.Object { + return ContactFormatterClass.DescriptorForRequiredKeysForDelimiter() } diff --git a/macos/contacts/contact_property.gen.go b/macos/contacts/contact_property.gen.go index 6bf189ba..1f70e587 100644 --- a/macos/contacts/contact_property.gen.go +++ b/macos/contacts/contact_property.gen.go @@ -20,9 +20,9 @@ type IContactProperty interface { objc.IObject Key() string Value() objc.Object - Identifier() string - Label() string Contact() Contact + Label() string + Identifier() string } // An object that represents a property of a contact. [Full Topic] @@ -74,11 +74,11 @@ func (c_ ContactProperty) Value() objc.Object { return rv } -// The identifier of the labeled value in the array of labeled. [Full Topic] +// The associated contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactproperty/1403307-identifier?language=objc -func (c_ ContactProperty) Identifier() string { - rv := objc.Call[string](c_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactproperty/1403022-contact?language=objc +func (c_ ContactProperty) Contact() Contact { + rv := objc.Call[Contact](c_, objc.Sel("contact")) return rv } @@ -90,10 +90,10 @@ func (c_ ContactProperty) Label() string { return rv } -// The associated contact. [Full Topic] +// The identifier of the labeled value in the array of labeled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactproperty/1403022-contact?language=objc -func (c_ ContactProperty) Contact() Contact { - rv := objc.Call[Contact](c_, objc.Sel("contact")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactproperty/1403307-identifier?language=objc +func (c_ ContactProperty) Identifier() string { + rv := objc.Call[string](c_, objc.Sel("identifier")) return rv } diff --git a/macos/contacts/contact_relation.gen.go b/macos/contacts/contact_relation.gen.go index dafbf841..9b2a512d 100644 --- a/macos/contacts/contact_relation.gen.go +++ b/macos/contacts/contact_relation.gen.go @@ -34,18 +34,6 @@ func ContactRelationFrom(ptr unsafe.Pointer) ContactRelation { } } -func (cc _ContactRelationClass) ContactRelationWithName(name string) ContactRelation { - rv := objc.Call[ContactRelation](cc, objc.Sel("contactRelationWithName:"), name) - return rv -} - -// Instantiate a class instance with the name of the related contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactrelation/1416519-contactrelationwithname?language=objc -func ContactRelation_ContactRelationWithName(name string) ContactRelation { - return ContactRelationClass.ContactRelationWithName(name) -} - func (c_ ContactRelation) InitWithName(name string) ContactRelation { rv := objc.Call[ContactRelation](c_, objc.Sel("initWithName:"), name) return rv @@ -60,6 +48,18 @@ func NewContactRelationWithName(name string) ContactRelation { return instance } +func (cc _ContactRelationClass) ContactRelationWithName(name string) ContactRelation { + rv := objc.Call[ContactRelation](cc, objc.Sel("contactRelationWithName:"), name) + return rv +} + +// Instantiate a class instance with the name of the related contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactrelation/1416519-contactrelationwithname?language=objc +func ContactRelation_ContactRelationWithName(name string) ContactRelation { + return ContactRelationClass.ContactRelationWithName(name) +} + func (cc _ContactRelationClass) Alloc() ContactRelation { rv := objc.Call[ContactRelation](cc, objc.Sel("alloc")) return rv diff --git a/macos/contacts/contact_store.gen.go b/macos/contacts/contact_store.gen.go index 0ddc6d74..5c98d311 100644 --- a/macos/contacts/contact_store.gen.go +++ b/macos/contacts/contact_store.gen.go @@ -19,17 +19,17 @@ type _ContactStoreClass struct { // An interface definition for the [ContactStore] class. type IContactStore interface { objc.IObject - UnifiedContactWithIdentifierKeysToFetchError(identifier string, keys []objc.IObject, error unsafe.Pointer) Contact + EnumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest IContactFetchRequest, error unsafe.Pointer, block func(contact Contact, stop *bool)) bool RequestAccessForEntityTypeCompletionHandler(entityType EntityType, completionHandler func(granted bool, error foundation.Error)) - ExecuteSaveRequestError(saveRequest ISaveRequest, error unsafe.Pointer) bool - DefaultContainerIdentifier() string + UnifiedContactWithIdentifierKeysToFetchError(identifier string, keys []objc.IObject, error unsafe.Pointer) Contact EnumeratorForContactFetchRequestError(request IContactFetchRequest, error unsafe.Pointer) FetchResult ContainersMatchingPredicateError(predicate foundation.IPredicate, error unsafe.Pointer) []Container - EnumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest IContactFetchRequest, error unsafe.Pointer, block func(contact Contact, stop *bool)) bool - UnifiedContactsMatchingPredicateKeysToFetchError(predicate foundation.IPredicate, keys []objc.IObject, error unsafe.Pointer) []Contact - UnifiedMeContactWithKeysToFetchError(keys []objc.IObject, error unsafe.Pointer) Contact - GroupsMatchingPredicateError(predicate foundation.IPredicate, error unsafe.Pointer) []Group + ExecuteSaveRequestError(saveRequest ISaveRequest, error unsafe.Pointer) bool EnumeratorForChangeHistoryFetchRequestError(request IChangeHistoryFetchRequest, error unsafe.Pointer) FetchResult + GroupsMatchingPredicateError(predicate foundation.IPredicate, error unsafe.Pointer) []Group + DefaultContainerIdentifier() string + UnifiedMeContactWithKeysToFetchError(keys []objc.IObject, error unsafe.Pointer) Contact + UnifiedContactsMatchingPredicateKeysToFetchError(predicate foundation.IPredicate, keys []objc.IObject, error unsafe.Pointer) []Contact CurrentHistoryToken() []byte } @@ -66,11 +66,11 @@ func (c_ ContactStore) Init() ContactStore { return rv } -// Fetches a unified contact for the specified contact identifier. [Full Topic] +// Returns a Boolean value that indicates whether the enumeration of all contacts matching a contact fetch request executes successfully. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403256-unifiedcontactwithidentifier?language=objc -func (c_ ContactStore) UnifiedContactWithIdentifierKeysToFetchError(identifier string, keys []objc.IObject, error unsafe.Pointer) Contact { - rv := objc.Call[Contact](c_, objc.Sel("unifiedContactWithIdentifier:keysToFetch:error:"), identifier, keys, error) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1402849-enumeratecontactswithfetchreques?language=objc +func (c_ ContactStore) EnumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest IContactFetchRequest, error unsafe.Pointer, block func(contact Contact, stop *bool)) bool { + rv := objc.Call[bool](c_, objc.Sel("enumerateContactsWithFetchRequest:error:usingBlock:"), fetchRequest, error, block) return rv } @@ -81,34 +81,11 @@ func (c_ ContactStore) RequestAccessForEntityTypeCompletionHandler(entityType En objc.Call[objc.Void](c_, objc.Sel("requestAccessForEntityType:completionHandler:"), entityType, completionHandler) } -// Executes a save request and returns success or failure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403230-executesaverequest?language=objc -func (c_ ContactStore) ExecuteSaveRequestError(saveRequest ISaveRequest, error unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("executeSaveRequest:error:"), saveRequest, error) - return rv -} - -// Returns the current authorization status to access the contact data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403143-authorizationstatusforentitytype?language=objc -func (cc _ContactStoreClass) AuthorizationStatusForEntityType(entityType EntityType) AuthorizationStatus { - rv := objc.Call[AuthorizationStatus](cc, objc.Sel("authorizationStatusForEntityType:"), entityType) - return rv -} - -// Returns the current authorization status to access the contact data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403143-authorizationstatusforentitytype?language=objc -func ContactStore_AuthorizationStatusForEntityType(entityType EntityType) AuthorizationStatus { - return ContactStoreClass.AuthorizationStatusForEntityType(entityType) -} - -// Returns the identifier of the default container. [Full Topic] +// Fetches a unified contact for the specified contact identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403159-defaultcontaineridentifier?language=objc -func (c_ ContactStore) DefaultContainerIdentifier() string { - rv := objc.Call[string](c_, objc.Sel("defaultContainerIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403256-unifiedcontactwithidentifier?language=objc +func (c_ ContactStore) UnifiedContactWithIdentifierKeysToFetchError(identifier string, keys []objc.IObject, error unsafe.Pointer) Contact { + rv := objc.Call[Contact](c_, objc.Sel("unifiedContactWithIdentifier:keysToFetch:error:"), identifier, keys, error) return rv } @@ -128,30 +105,37 @@ func (c_ ContactStore) ContainersMatchingPredicateError(predicate foundation.IPr return rv } -// Returns a Boolean value that indicates whether the enumeration of all contacts matching a contact fetch request executes successfully. [Full Topic] +// Executes a save request and returns success or failure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1402849-enumeratecontactswithfetchreques?language=objc -func (c_ ContactStore) EnumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest IContactFetchRequest, error unsafe.Pointer, block func(contact Contact, stop *bool)) bool { - rv := objc.Call[bool](c_, objc.Sel("enumerateContactsWithFetchRequest:error:usingBlock:"), fetchRequest, error, block) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403230-executesaverequest?language=objc +func (c_ ContactStore) ExecuteSaveRequestError(saveRequest ISaveRequest, error unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("executeSaveRequest:error:"), saveRequest, error) return rv } -// Fetches all unified contacts matching the specified predicate. [Full Topic] +// Enumerates a change history fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403266-unifiedcontactsmatchingpredicate?language=objc -func (c_ ContactStore) UnifiedContactsMatchingPredicateKeysToFetchError(predicate foundation.IPredicate, keys []objc.IObject, error unsafe.Pointer) []Contact { - rv := objc.Call[[]Contact](c_, objc.Sel("unifiedContactsMatchingPredicate:keysToFetch:error:"), predicate, keys, error) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/3294190-enumeratorforchangehistoryfetchr?language=objc +func (c_ ContactStore) EnumeratorForChangeHistoryFetchRequestError(request IChangeHistoryFetchRequest, error unsafe.Pointer) FetchResult { + rv := objc.Call[FetchResult](c_, objc.Sel("enumeratorForChangeHistoryFetchRequest:error:"), request, error) return rv } -// Fetches the unified contact that’s the me card. [Full Topic] +// Returns the current authorization status to access the contact data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1402987-unifiedmecontactwithkeystofetch?language=objc -func (c_ ContactStore) UnifiedMeContactWithKeysToFetchError(keys []objc.IObject, error unsafe.Pointer) Contact { - rv := objc.Call[Contact](c_, objc.Sel("unifiedMeContactWithKeysToFetch:error:"), keys, error) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403143-authorizationstatusforentitytype?language=objc +func (cc _ContactStoreClass) AuthorizationStatusForEntityType(entityType EntityType) AuthorizationStatus { + rv := objc.Call[AuthorizationStatus](cc, objc.Sel("authorizationStatusForEntityType:"), entityType) return rv } +// Returns the current authorization status to access the contact data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403143-authorizationstatusforentitytype?language=objc +func ContactStore_AuthorizationStatusForEntityType(entityType EntityType) AuthorizationStatus { + return ContactStoreClass.AuthorizationStatusForEntityType(entityType) +} + // Fetches all groups matching the specified predicate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403121-groupsmatchingpredicate?language=objc @@ -160,11 +144,27 @@ func (c_ ContactStore) GroupsMatchingPredicateError(predicate foundation.IPredic return rv } -// Enumerates a change history fetch request. [Full Topic] +// Returns the identifier of the default container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/3294190-enumeratorforchangehistoryfetchr?language=objc -func (c_ ContactStore) EnumeratorForChangeHistoryFetchRequestError(request IChangeHistoryFetchRequest, error unsafe.Pointer) FetchResult { - rv := objc.Call[FetchResult](c_, objc.Sel("enumeratorForChangeHistoryFetchRequest:error:"), request, error) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403159-defaultcontaineridentifier?language=objc +func (c_ ContactStore) DefaultContainerIdentifier() string { + rv := objc.Call[string](c_, objc.Sel("defaultContainerIdentifier")) + return rv +} + +// Fetches the unified contact that’s the me card. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1402987-unifiedmecontactwithkeystofetch?language=objc +func (c_ ContactStore) UnifiedMeContactWithKeysToFetchError(keys []objc.IObject, error unsafe.Pointer) Contact { + rv := objc.Call[Contact](c_, objc.Sel("unifiedMeContactWithKeysToFetch:error:"), keys, error) + return rv +} + +// Fetches all unified contacts matching the specified predicate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403266-unifiedcontactsmatchingpredicate?language=objc +func (c_ ContactStore) UnifiedContactsMatchingPredicateKeysToFetchError(predicate foundation.IPredicate, keys []objc.IObject, error unsafe.Pointer) []Contact { + rv := objc.Call[[]Contact](c_, objc.Sel("unifiedContactsMatchingPredicate:keysToFetch:error:"), predicate, keys, error) return rv } diff --git a/macos/contacts/contact_v_card_serialization.gen.go b/macos/contacts/contact_v_card_serialization.gen.go index 4b8ec9f7..ca824a07 100644 --- a/macos/contacts/contact_v_card_serialization.gen.go +++ b/macos/contacts/contact_v_card_serialization.gen.go @@ -53,6 +53,21 @@ func (c_ ContactVCardSerialization) Init() ContactVCardSerialization { return rv } +// Use to fetch all contact keys required to create vCard data from a contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactvcardserialization/1403155-descriptorforrequiredkeys?language=objc +func (cc _ContactVCardSerializationClass) DescriptorForRequiredKeys() objc.Object { + rv := objc.Call[objc.Object](cc, objc.Sel("descriptorForRequiredKeys")) + return rv +} + +// Use to fetch all contact keys required to create vCard data from a contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactvcardserialization/1403155-descriptorforrequiredkeys?language=objc +func ContactVCardSerialization_DescriptorForRequiredKeys() objc.Object { + return ContactVCardSerializationClass.DescriptorForRequiredKeys() +} + // Returns the vCard representation of the specified contacts. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactvcardserialization/1403357-datawithcontacts?language=objc @@ -82,18 +97,3 @@ func (cc _ContactVCardSerializationClass) ContactsWithDataError(data []byte, err func ContactVCardSerialization_ContactsWithDataError(data []byte, error unsafe.Pointer) []Contact { return ContactVCardSerializationClass.ContactsWithDataError(data, error) } - -// Use to fetch all contact keys required to create vCard data from a contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactvcardserialization/1403155-descriptorforrequiredkeys?language=objc -func (cc _ContactVCardSerializationClass) DescriptorForRequiredKeys() objc.Object { - rv := objc.Call[objc.Object](cc, objc.Sel("descriptorForRequiredKeys")) - return rv -} - -// Use to fetch all contact keys required to create vCard data from a contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactvcardserialization/1403155-descriptorforrequiredkeys?language=objc -func ContactVCardSerialization_DescriptorForRequiredKeys() objc.Object { - return ContactVCardSerializationClass.DescriptorForRequiredKeys() -} diff --git a/macos/contacts/container.gen.go b/macos/contacts/container.gen.go index 7ccaa888..e1d612c9 100644 --- a/macos/contacts/container.gen.go +++ b/macos/contacts/container.gen.go @@ -19,9 +19,9 @@ type _ContainerClass struct { // An interface definition for the [Container] class. type IContainer interface { objc.IObject + Name() string Type() ContainerType Identifier() string - Name() string } // An immutable object that represents a collection of contacts. [Full Topic] @@ -72,6 +72,21 @@ func Container_PredicateForContainersWithIdentifiers(identifiers []string) found return ContainerClass.PredicateForContainersWithIdentifiers(identifiers) } +// Returns a predicate to find the container of the specified contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontainer/1402785-predicateforcontainerofcontactwi?language=objc +func (cc _ContainerClass) PredicateForContainerOfContactWithIdentifier(contactIdentifier string) foundation.Predicate { + rv := objc.Call[foundation.Predicate](cc, objc.Sel("predicateForContainerOfContactWithIdentifier:"), contactIdentifier) + return rv +} + +// Returns a predicate to find the container of the specified contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontainer/1402785-predicateforcontainerofcontactwi?language=objc +func Container_PredicateForContainerOfContactWithIdentifier(contactIdentifier string) foundation.Predicate { + return ContainerClass.PredicateForContainerOfContactWithIdentifier(contactIdentifier) +} + // Returns a predicate to find the container of the specified group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontainer/1403086-predicateforcontainerofgroupwith?language=objc @@ -87,21 +102,14 @@ func Container_PredicateForContainerOfGroupWithIdentifier(groupIdentifier string return ContainerClass.PredicateForContainerOfGroupWithIdentifier(groupIdentifier) } -// Returns a predicate to find the container of the specified contact. [Full Topic] +// The name of the container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontainer/1402785-predicateforcontainerofcontactwi?language=objc -func (cc _ContainerClass) PredicateForContainerOfContactWithIdentifier(contactIdentifier string) foundation.Predicate { - rv := objc.Call[foundation.Predicate](cc, objc.Sel("predicateForContainerOfContactWithIdentifier:"), contactIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontainer/1403082-name?language=objc +func (c_ Container) Name() string { + rv := objc.Call[string](c_, objc.Sel("name")) return rv } -// Returns a predicate to find the container of the specified contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontainer/1402785-predicateforcontainerofcontactwi?language=objc -func Container_PredicateForContainerOfContactWithIdentifier(contactIdentifier string) foundation.Predicate { - return ContainerClass.PredicateForContainerOfContactWithIdentifier(contactIdentifier) -} - // The type of the container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontainer/1403412-type?language=objc @@ -117,11 +125,3 @@ func (c_ Container) Identifier() string { rv := objc.Call[string](c_, objc.Sel("identifier")) return rv } - -// The name of the container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontainer/1403082-name?language=objc -func (c_ Container) Name() string { - rv := objc.Call[string](c_, objc.Sel("name")) - return rv -} diff --git a/macos/contacts/fetch_result.gen.go b/macos/contacts/fetch_result.gen.go index 51f04466..410503f6 100644 --- a/macos/contacts/fetch_result.gen.go +++ b/macos/contacts/fetch_result.gen.go @@ -18,8 +18,8 @@ type _FetchResultClass struct { // An interface definition for the [FetchResult] class. type IFetchResult interface { objc.IObject - CurrentHistoryToken() []byte Value() objc.Object + CurrentHistoryToken() []byte } // [Full Topic] @@ -57,16 +57,16 @@ func (f_ FetchResult) Init() FetchResult { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnfetchresult/3294193-currenthistorytoken?language=objc -func (f_ FetchResult) CurrentHistoryToken() []byte { - rv := objc.Call[[]byte](f_, objc.Sel("currentHistoryToken")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnfetchresult/3294194-value?language=objc +func (f_ FetchResult) Value() objc.Object { + rv := objc.Call[objc.Object](f_, objc.Sel("value")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnfetchresult/3294194-value?language=objc -func (f_ FetchResult) Value() objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("value")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnfetchresult/3294193-currenthistorytoken?language=objc +func (f_ FetchResult) CurrentHistoryToken() []byte { + rv := objc.Call[[]byte](f_, objc.Sel("currentHistoryToken")) return rv } diff --git a/macos/contacts/group.gen.go b/macos/contacts/group.gen.go index 56369b21..e9153ea5 100644 --- a/macos/contacts/group.gen.go +++ b/macos/contacts/group.gen.go @@ -19,8 +19,8 @@ type _GroupClass struct { // An interface definition for the [Group] class. type IGroup interface { objc.IObject - Identifier() string Name() string + Identifier() string } // An immutable object that represents a group of contacts. [Full Topic] @@ -56,19 +56,19 @@ func (g_ Group) Init() Group { return rv } -// Returns a predicate to find groups in the specified container. [Full Topic] +// Returns a predicate to find subgroups in the specified parent group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1402794-predicateforgroupsincontainerwit?language=objc -func (gc _GroupClass) PredicateForGroupsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate { - rv := objc.Call[foundation.Predicate](gc, objc.Sel("predicateForGroupsInContainerWithIdentifier:"), containerIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1403176-predicateforsubgroupsingroupwith?language=objc +func (gc _GroupClass) PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier string) foundation.Predicate { + rv := objc.Call[foundation.Predicate](gc, objc.Sel("predicateForSubgroupsInGroupWithIdentifier:"), parentGroupIdentifier) return rv } -// Returns a predicate to find groups in the specified container. [Full Topic] +// Returns a predicate to find subgroups in the specified parent group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1402794-predicateforgroupsincontainerwit?language=objc -func Group_PredicateForGroupsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate { - return GroupClass.PredicateForGroupsInContainerWithIdentifier(containerIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1403176-predicateforsubgroupsingroupwith?language=objc +func Group_PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier string) foundation.Predicate { + return GroupClass.PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier) } // Returns a predicate to find groups with the specified identifiers. [Full Topic] @@ -86,27 +86,19 @@ func Group_PredicateForGroupsWithIdentifiers(identifiers []string) foundation.Pr return GroupClass.PredicateForGroupsWithIdentifiers(identifiers) } -// Returns a predicate to find subgroups in the specified parent group. [Full Topic] +// Returns a predicate to find groups in the specified container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1403176-predicateforsubgroupsingroupwith?language=objc -func (gc _GroupClass) PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier string) foundation.Predicate { - rv := objc.Call[foundation.Predicate](gc, objc.Sel("predicateForSubgroupsInGroupWithIdentifier:"), parentGroupIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1402794-predicateforgroupsincontainerwit?language=objc +func (gc _GroupClass) PredicateForGroupsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate { + rv := objc.Call[foundation.Predicate](gc, objc.Sel("predicateForGroupsInContainerWithIdentifier:"), containerIdentifier) return rv } -// Returns a predicate to find subgroups in the specified parent group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1403176-predicateforsubgroupsingroupwith?language=objc -func Group_PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier string) foundation.Predicate { - return GroupClass.PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier) -} - -// The unique identifier for a group on the device. [Full Topic] +// Returns a predicate to find groups in the specified container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1403172-identifier?language=objc -func (g_ Group) Identifier() string { - rv := objc.Call[string](g_, objc.Sel("identifier")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1402794-predicateforgroupsincontainerwit?language=objc +func Group_PredicateForGroupsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate { + return GroupClass.PredicateForGroupsInContainerWithIdentifier(containerIdentifier) } // The name of the group. [Full Topic] @@ -116,3 +108,11 @@ func (g_ Group) Name() string { rv := objc.Call[string](g_, objc.Sel("name")) return rv } + +// The unique identifier for a group on the device. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1403172-identifier?language=objc +func (g_ Group) Identifier() string { + rv := objc.Call[string](g_, objc.Sel("identifier")) + return rv +} diff --git a/macos/contacts/labeled_value.gen.go b/macos/contacts/labeled_value.gen.go index f9329801..dd18bccf 100644 --- a/macos/contacts/labeled_value.gen.go +++ b/macos/contacts/labeled_value.gen.go @@ -18,9 +18,9 @@ type _LabeledValueClass struct { // An interface definition for the [LabeledValue] class. type ILabeledValue interface { objc.IObject - Identifier() string - Label() string Value() objc.Object + Label() string + Identifier() string } // An immutable object that combines a contact property value with a label that describes that property. [Full Topic] @@ -50,18 +50,6 @@ func LabeledValue_LabeledValueBySettingLabel(label string) LabeledValue { return instance } -func (lc _LabeledValueClass) LabeledValueWithLabelValue(label string, value objc.IObject) LabeledValue { - rv := objc.Call[LabeledValue](lc, objc.Sel("labeledValueWithLabel:value:"), label, value) - return rv -} - -// Returns a new labeled value identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnlabeledvalue/1586531-labeledvaluewithlabel?language=objc -func LabeledValue_LabeledValueWithLabelValue(label string, value objc.IObject) LabeledValue { - return LabeledValueClass.LabeledValueWithLabelValue(label, value) -} - func (l_ LabeledValue) LabeledValueBySettingValue(value objc.IObject) LabeledValue { rv := objc.Call[LabeledValue](l_, objc.Sel("labeledValueBySettingValue:"), value) return rv @@ -76,18 +64,16 @@ func LabeledValue_LabeledValueBySettingValue(value objc.IObject) LabeledValue { return instance } -func (l_ LabeledValue) LabeledValueBySettingLabelValue(label string, value objc.IObject) LabeledValue { - rv := objc.Call[LabeledValue](l_, objc.Sel("labeledValueBySettingLabel:value:"), label, value) +func (lc _LabeledValueClass) LabeledValueWithLabelValue(label string, value objc.IObject) LabeledValue { + rv := objc.Call[LabeledValue](lc, objc.Sel("labeledValueWithLabel:value:"), label, value) return rv } -// Returns a labeled value object with the specified label and value with the existing identifier. [Full Topic] +// Returns a new labeled value identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnlabeledvalue/1402901-labeledvaluebysettinglabel?language=objc -func LabeledValue_LabeledValueBySettingLabelValue(label string, value objc.IObject) LabeledValue { - instance := LabeledValueClass.Alloc().LabeledValueBySettingLabelValue(label, value) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnlabeledvalue/1586531-labeledvaluewithlabel?language=objc +func LabeledValue_LabeledValueWithLabelValue(label string, value objc.IObject) LabeledValue { + return LabeledValueClass.LabeledValueWithLabelValue(label, value) } func (l_ LabeledValue) InitWithLabelValue(label string, value objc.IObject) LabeledValue { @@ -139,11 +125,11 @@ func LabeledValue_LocalizedStringForLabel(label string) string { return LabeledValueClass.LocalizedStringForLabel(label) } -// A unique identifier for the labeled value object. [Full Topic] +// A contact property value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnlabeledvalue/1403408-identifier?language=objc -func (l_ LabeledValue) Identifier() string { - rv := objc.Call[string](l_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnlabeledvalue/1403088-value?language=objc +func (l_ LabeledValue) Value() objc.Object { + rv := objc.Call[objc.Object](l_, objc.Sel("value")) return rv } @@ -155,10 +141,10 @@ func (l_ LabeledValue) Label() string { return rv } -// A contact property value. [Full Topic] +// A unique identifier for the labeled value object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnlabeledvalue/1403088-value?language=objc -func (l_ LabeledValue) Value() objc.Object { - rv := objc.Call[objc.Object](l_, objc.Sel("value")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnlabeledvalue/1403408-identifier?language=objc +func (l_ LabeledValue) Identifier() string { + rv := objc.Call[string](l_, objc.Sel("identifier")) return rv } diff --git a/macos/contacts/mutable_contact.gen.go b/macos/contacts/mutable_contact.gen.go index b0378055..1cb6bef6 100644 --- a/macos/contacts/mutable_contact.gen.go +++ b/macos/contacts/mutable_contact.gen.go @@ -19,33 +19,33 @@ type _MutableContactClass struct { // An interface definition for the [MutableContact] class. type IMutableContact interface { IContact - SetNickname(value string) - SetPreviousFamilyName(value string) - SetPhoneticMiddleName(value string) - SetJobTitle(value string) - SetGivenName(value string) - SetFamilyName(value string) - SetPhoneticFamilyName(value string) - SetSocialProfiles(value []ILabeledValue) - SetBirthday(value foundation.IDateComponents) - SetNameSuffix(value string) - SetMiddleName(value string) - SetContactRelations(value []ILabeledValue) + SetDates(value []ILabeledValue) SetPhoneNumbers(value []ILabeledValue) + SetPreviousFamilyName(value string) SetPhoneticOrganizationName(value string) - SetOrganizationName(value string) + SetContactType(value ContactType) + SetPhoneticGivenName(value string) + SetPhoneticMiddleName(value string) + SetNamePrefix(value string) SetPostalAddresses(value []ILabeledValue) + SetNonGregorianBirthday(value foundation.IDateComponents) + SetContactRelations(value []ILabeledValue) + SetBirthday(value foundation.IDateComponents) SetImageData(value []byte) - SetEmailAddresses(value []ILabeledValue) - SetContactType(value ContactType) SetNote(value string) + SetMiddleName(value string) + SetJobTitle(value string) + SetGivenName(value string) + SetEmailAddresses(value []ILabeledValue) SetInstantMessageAddresses(value []ILabeledValue) - SetDates(value []ILabeledValue) - SetNonGregorianBirthday(value foundation.IDateComponents) - SetDepartmentName(value string) SetUrlAddresses(value []ILabeledValue) - SetNamePrefix(value string) - SetPhoneticGivenName(value string) + SetOrganizationName(value string) + SetNameSuffix(value string) + SetDepartmentName(value string) + SetPhoneticFamilyName(value string) + SetSocialProfiles(value []ILabeledValue) + SetFamilyName(value string) + SetNickname(value string) } // A mutable object that stores information about a single contact, such as the contact's first name, phone numbers, and addresses. [Full Topic] @@ -81,11 +81,18 @@ func (m_ MutableContact) Init() MutableContact { return rv } -// The nickname of the contact. [Full Topic] +// An array containing labeled Gregorian dates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403135-nickname?language=objc -func (m_ MutableContact) SetNickname(value string) { - objc.Call[objc.Void](m_, objc.Sel("setNickname:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403311-dates?language=objc +func (m_ MutableContact) SetDates(value []ILabeledValue) { + objc.Call[objc.Void](m_, objc.Sel("setDates:"), value) +} + +// An array of labeled phone numbers for a contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403202-phonenumbers?language=objc +func (m_ MutableContact) SetPhoneNumbers(value []ILabeledValue) { + objc.Call[objc.Void](m_, objc.Sel("setPhoneNumbers:"), value) } // The previous family name of the contact. [Full Topic] @@ -95,67 +102,53 @@ func (m_ MutableContact) SetPreviousFamilyName(value string) { objc.Call[objc.Void](m_, objc.Sel("setPreviousFamilyName:"), value) } -// The phonetic middle name of the contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403340-phoneticmiddlename?language=objc -func (m_ MutableContact) SetPhoneticMiddleName(value string) { - objc.Call[objc.Void](m_, objc.Sel("setPhoneticMiddleName:"), value) -} - -// The contact’s job title. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403224-jobtitle?language=objc -func (m_ MutableContact) SetJobTitle(value string) { - objc.Call[objc.Void](m_, objc.Sel("setJobTitle:"), value) -} - -// The given name of the contact. [Full Topic] +// The phonetic name of the organization associated with the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403228-givenname?language=objc -func (m_ MutableContact) SetGivenName(value string) { - objc.Call[objc.Void](m_, objc.Sel("setGivenName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/2138282-phoneticorganizationname?language=objc +func (m_ MutableContact) SetPhoneticOrganizationName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setPhoneticOrganizationName:"), value) } -// The family name of the contact. [Full Topic] +// An enum identifying the contact type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403056-familyname?language=objc -func (m_ MutableContact) SetFamilyName(value string) { - objc.Call[objc.Void](m_, objc.Sel("setFamilyName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403242-contacttype?language=objc +func (m_ MutableContact) SetContactType(value ContactType) { + objc.Call[objc.Void](m_, objc.Sel("setContactType:"), value) } -// The phonetic family name of the contact. [Full Topic] +// The phonetic given name of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1402985-phoneticfamilyname?language=objc -func (m_ MutableContact) SetPhoneticFamilyName(value string) { - objc.Call[objc.Void](m_, objc.Sel("setPhoneticFamilyName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1402897-phoneticgivenname?language=objc +func (m_ MutableContact) SetPhoneticGivenName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setPhoneticGivenName:"), value) } -// An array of labeled social profiles for a contact. [Full Topic] +// The phonetic middle name of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403038-socialprofiles?language=objc -func (m_ MutableContact) SetSocialProfiles(value []ILabeledValue) { - objc.Call[objc.Void](m_, objc.Sel("setSocialProfiles:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403340-phoneticmiddlename?language=objc +func (m_ MutableContact) SetPhoneticMiddleName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setPhoneticMiddleName:"), value) } -// A date component for the Gregorian birthday of the contact. [Full Topic] +// The name prefix of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403236-birthday?language=objc -func (m_ MutableContact) SetBirthday(value foundation.IDateComponents) { - objc.Call[objc.Void](m_, objc.Sel("setBirthday:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403184-nameprefix?language=objc +func (m_ MutableContact) SetNamePrefix(value string) { + objc.Call[objc.Void](m_, objc.Sel("setNamePrefix:"), value) } -// The name suffix of the contact. [Full Topic] +// An array of labeled postal addresses for a contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403162-namesuffix?language=objc -func (m_ MutableContact) SetNameSuffix(value string) { - objc.Call[objc.Void](m_, objc.Sel("setNameSuffix:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1402823-postaladdresses?language=objc +func (m_ MutableContact) SetPostalAddresses(value []ILabeledValue) { + objc.Call[objc.Void](m_, objc.Sel("setPostalAddresses:"), value) } -// The middle name of the contact. [Full Topic] +// A date component for the non-Gregorian birthday of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403029-middlename?language=objc -func (m_ MutableContact) SetMiddleName(value string) { - objc.Call[objc.Void](m_, objc.Sel("setMiddleName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1402994-nongregorianbirthday?language=objc +func (m_ MutableContact) SetNonGregorianBirthday(value foundation.IDateComponents) { + objc.Call[objc.Void](m_, objc.Sel("setNonGregorianBirthday:"), value) } // An array of labeled contact relations for the contact. [Full Topic] @@ -165,39 +158,46 @@ func (m_ MutableContact) SetContactRelations(value []ILabeledValue) { objc.Call[objc.Void](m_, objc.Sel("setContactRelations:"), value) } -// An array of labeled phone numbers for a contact. [Full Topic] +// A date component for the Gregorian birthday of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403202-phonenumbers?language=objc -func (m_ MutableContact) SetPhoneNumbers(value []ILabeledValue) { - objc.Call[objc.Void](m_, objc.Sel("setPhoneNumbers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403236-birthday?language=objc +func (m_ MutableContact) SetBirthday(value foundation.IDateComponents) { + objc.Call[objc.Void](m_, objc.Sel("setBirthday:"), value) } -// The phonetic name of the organization associated with the contact. [Full Topic] +// The profile picture of a contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/2138282-phoneticorganizationname?language=objc -func (m_ MutableContact) SetPhoneticOrganizationName(value string) { - objc.Call[objc.Void](m_, objc.Sel("setPhoneticOrganizationName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403400-imagedata?language=objc +func (m_ MutableContact) SetImageData(value []byte) { + objc.Call[objc.Void](m_, objc.Sel("setImageData:"), value) } -// The name of the organization associated with the contact. [Full Topic] +// A string containing notes for the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403381-organizationname?language=objc -func (m_ MutableContact) SetOrganizationName(value string) { - objc.Call[objc.Void](m_, objc.Sel("setOrganizationName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403096-note?language=objc +func (m_ MutableContact) SetNote(value string) { + objc.Call[objc.Void](m_, objc.Sel("setNote:"), value) } -// An array of labeled postal addresses for a contact. [Full Topic] +// The middle name of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1402823-postaladdresses?language=objc -func (m_ MutableContact) SetPostalAddresses(value []ILabeledValue) { - objc.Call[objc.Void](m_, objc.Sel("setPostalAddresses:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403029-middlename?language=objc +func (m_ MutableContact) SetMiddleName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setMiddleName:"), value) } -// The profile picture of a contact. [Full Topic] +// The contact’s job title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403400-imagedata?language=objc -func (m_ MutableContact) SetImageData(value []byte) { - objc.Call[objc.Void](m_, objc.Sel("setImageData:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403224-jobtitle?language=objc +func (m_ MutableContact) SetJobTitle(value string) { + objc.Call[objc.Void](m_, objc.Sel("setJobTitle:"), value) +} + +// The given name of the contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403228-givenname?language=objc +func (m_ MutableContact) SetGivenName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setGivenName:"), value) } // An array of labeled email addresses for the contact. [Full Topic] @@ -207,20 +207,6 @@ func (m_ MutableContact) SetEmailAddresses(value []ILabeledValue) { objc.Call[objc.Void](m_, objc.Sel("setEmailAddresses:"), value) } -// An enum identifying the contact type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403242-contacttype?language=objc -func (m_ MutableContact) SetContactType(value ContactType) { - objc.Call[objc.Void](m_, objc.Sel("setContactType:"), value) -} - -// A string containing notes for the contact. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403096-note?language=objc -func (m_ MutableContact) SetNote(value string) { - objc.Call[objc.Void](m_, objc.Sel("setNote:"), value) -} - // An array of labeled IM addresses for the contact. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403362-instantmessageaddresses?language=objc @@ -228,18 +214,25 @@ func (m_ MutableContact) SetInstantMessageAddresses(value []ILabeledValue) { objc.Call[objc.Void](m_, objc.Sel("setInstantMessageAddresses:"), value) } -// An array containing labeled Gregorian dates. [Full Topic] +// An array of labeled URL addresses for a contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403311-dates?language=objc -func (m_ MutableContact) SetDates(value []ILabeledValue) { - objc.Call[objc.Void](m_, objc.Sel("setDates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403006-urladdresses?language=objc +func (m_ MutableContact) SetUrlAddresses(value []ILabeledValue) { + objc.Call[objc.Void](m_, objc.Sel("setUrlAddresses:"), value) } -// A date component for the non-Gregorian birthday of the contact. [Full Topic] +// The name of the organization associated with the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1402994-nongregorianbirthday?language=objc -func (m_ MutableContact) SetNonGregorianBirthday(value foundation.IDateComponents) { - objc.Call[objc.Void](m_, objc.Sel("setNonGregorianBirthday:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403381-organizationname?language=objc +func (m_ MutableContact) SetOrganizationName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setOrganizationName:"), value) +} + +// The name suffix of the contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403162-namesuffix?language=objc +func (m_ MutableContact) SetNameSuffix(value string) { + objc.Call[objc.Void](m_, objc.Sel("setNameSuffix:"), value) } // The name of the department associated with the contact. [Full Topic] @@ -249,23 +242,30 @@ func (m_ MutableContact) SetDepartmentName(value string) { objc.Call[objc.Void](m_, objc.Sel("setDepartmentName:"), value) } -// An array of labeled URL addresses for a contact. [Full Topic] +// The phonetic family name of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403006-urladdresses?language=objc -func (m_ MutableContact) SetUrlAddresses(value []ILabeledValue) { - objc.Call[objc.Void](m_, objc.Sel("setUrlAddresses:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1402985-phoneticfamilyname?language=objc +func (m_ MutableContact) SetPhoneticFamilyName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setPhoneticFamilyName:"), value) } -// The name prefix of the contact. [Full Topic] +// An array of labeled social profiles for a contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403184-nameprefix?language=objc -func (m_ MutableContact) SetNamePrefix(value string) { - objc.Call[objc.Void](m_, objc.Sel("setNamePrefix:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403038-socialprofiles?language=objc +func (m_ MutableContact) SetSocialProfiles(value []ILabeledValue) { + objc.Call[objc.Void](m_, objc.Sel("setSocialProfiles:"), value) } -// The phonetic given name of the contact. [Full Topic] +// The family name of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1402897-phoneticgivenname?language=objc -func (m_ MutableContact) SetPhoneticGivenName(value string) { - objc.Call[objc.Void](m_, objc.Sel("setPhoneticGivenName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403056-familyname?language=objc +func (m_ MutableContact) SetFamilyName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setFamilyName:"), value) +} + +// The nickname of the contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablecontact/1403135-nickname?language=objc +func (m_ MutableContact) SetNickname(value string) { + objc.Call[objc.Void](m_, objc.Sel("setNickname:"), value) } diff --git a/macos/contacts/mutable_postal_address.gen.go b/macos/contacts/mutable_postal_address.gen.go index 804496db..cde085a5 100644 --- a/macos/contacts/mutable_postal_address.gen.go +++ b/macos/contacts/mutable_postal_address.gen.go @@ -19,13 +19,13 @@ type _MutablePostalAddressClass struct { type IMutablePostalAddress interface { IPostalAddress SetState(value string) - SetCountry(value string) - SetCity(value string) + SetSubLocality(value string) SetStreet(value string) + SetCity(value string) SetPostalCode(value string) - SetSubLocality(value string) - SetSubAdministrativeArea(value string) SetISOCountryCode(value string) + SetSubAdministrativeArea(value string) + SetCountry(value string) } // A mutable representation of the postal address for a contact. [Full Topic] @@ -68,18 +68,11 @@ func (m_ MutablePostalAddress) SetState(value string) { objc.Call[objc.Void](m_, objc.Sel("setState:"), value) } -// The country or region name of the address. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/1402917-country?language=objc -func (m_ MutablePostalAddress) SetCountry(value string) { - objc.Call[objc.Void](m_, objc.Sel("setCountry:"), value) -} - -// The city name of the address. [Full Topic] +// Additional information associated with the location, typically defined at the city or town level, in a postal address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/1403395-city?language=objc -func (m_ MutablePostalAddress) SetCity(value string) { - objc.Call[objc.Void](m_, objc.Sel("setCity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/2799058-sublocality?language=objc +func (m_ MutablePostalAddress) SetSubLocality(value string) { + objc.Call[objc.Void](m_, objc.Sel("setSubLocality:"), value) } // The street name of the address. [Full Topic] @@ -89,6 +82,13 @@ func (m_ MutablePostalAddress) SetStreet(value string) { objc.Call[objc.Void](m_, objc.Sel("setStreet:"), value) } +// The city name of the address. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/1403395-city?language=objc +func (m_ MutablePostalAddress) SetCity(value string) { + objc.Call[objc.Void](m_, objc.Sel("setCity:"), value) +} + // The postal code of the address. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/1403303-postalcode?language=objc @@ -96,11 +96,11 @@ func (m_ MutablePostalAddress) SetPostalCode(value string) { objc.Call[objc.Void](m_, objc.Sel("setPostalCode:"), value) } -// Additional information associated with the location, typically defined at the city or town level, in a postal address. [Full Topic] +// The ISO country code, using the ISO 3166-1 alpha-2 standard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/2799058-sublocality?language=objc -func (m_ MutablePostalAddress) SetSubLocality(value string) { - objc.Call[objc.Void](m_, objc.Sel("setSubLocality:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/1403295-isocountrycode?language=objc +func (m_ MutablePostalAddress) SetISOCountryCode(value string) { + objc.Call[objc.Void](m_, objc.Sel("setISOCountryCode:"), value) } // The subadministrative area (such as a county or other region) in a postal address. [Full Topic] @@ -110,9 +110,9 @@ func (m_ MutablePostalAddress) SetSubAdministrativeArea(value string) { objc.Call[objc.Void](m_, objc.Sel("setSubAdministrativeArea:"), value) } -// The ISO country code, using the ISO 3166-1 alpha-2 standard. [Full Topic] +// The country or region name of the address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/1403295-isocountrycode?language=objc -func (m_ MutablePostalAddress) SetISOCountryCode(value string) { - objc.Call[objc.Void](m_, objc.Sel("setISOCountryCode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/1402917-country?language=objc +func (m_ MutablePostalAddress) SetCountry(value string) { + objc.Call[objc.Void](m_, objc.Sel("setCountry:"), value) } diff --git a/macos/contacts/postal_address.gen.go b/macos/contacts/postal_address.gen.go index 648e0b13..336aed43 100644 --- a/macos/contacts/postal_address.gen.go +++ b/macos/contacts/postal_address.gen.go @@ -18,14 +18,14 @@ type _PostalAddressClass struct { // An interface definition for the [PostalAddress] class. type IPostalAddress interface { objc.IObject - SubLocality() string State() string - SubAdministrativeArea() string - Country() string - ISOCountryCode() string - City() string + SubLocality() string Street() string + City() string PostalCode() string + ISOCountryCode() string + SubAdministrativeArea() string + Country() string } // An immutable representation of the postal address for a contact. [Full Topic] @@ -76,6 +76,14 @@ func PostalAddress_LocalizedStringForKey(key string) string { return PostalAddressClass.LocalizedStringForKey(key) } +// The state name in a postal address. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/1402886-state?language=objc +func (p_ PostalAddress) State() string { + rv := objc.Call[string](p_, objc.Sel("state")) + return rv +} + // Additional information associated with the location, typically defined at the city or town level, in a postal address. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/2799049-sublocality?language=objc @@ -84,27 +92,27 @@ func (p_ PostalAddress) SubLocality() string { return rv } -// The state name in a postal address. [Full Topic] +// The street name in a postal address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/1402886-state?language=objc -func (p_ PostalAddress) State() string { - rv := objc.Call[string](p_, objc.Sel("state")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/1403414-street?language=objc +func (p_ PostalAddress) Street() string { + rv := objc.Call[string](p_, objc.Sel("street")) return rv } -// The subadministrative area (such as a county or other region) in a postal address. [Full Topic] +// The city name in a postal address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/2799048-subadministrativearea?language=objc -func (p_ PostalAddress) SubAdministrativeArea() string { - rv := objc.Call[string](p_, objc.Sel("subAdministrativeArea")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/1403034-city?language=objc +func (p_ PostalAddress) City() string { + rv := objc.Call[string](p_, objc.Sel("city")) return rv } -// The country or region name in a postal address. [Full Topic] +// The postal code in a postal address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/1402880-country?language=objc -func (p_ PostalAddress) Country() string { - rv := objc.Call[string](p_, objc.Sel("country")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/1402983-postalcode?language=objc +func (p_ PostalAddress) PostalCode() string { + rv := objc.Call[string](p_, objc.Sel("postalCode")) return rv } @@ -116,26 +124,18 @@ func (p_ PostalAddress) ISOCountryCode() string { return rv } -// The city name in a postal address. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/1403034-city?language=objc -func (p_ PostalAddress) City() string { - rv := objc.Call[string](p_, objc.Sel("city")) - return rv -} - -// The street name in a postal address. [Full Topic] +// The subadministrative area (such as a county or other region) in a postal address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/1403414-street?language=objc -func (p_ PostalAddress) Street() string { - rv := objc.Call[string](p_, objc.Sel("street")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/2799048-subadministrativearea?language=objc +func (p_ PostalAddress) SubAdministrativeArea() string { + rv := objc.Call[string](p_, objc.Sel("subAdministrativeArea")) return rv } -// The postal code in a postal address. [Full Topic] +// The country or region name in a postal address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/1402983-postalcode?language=objc -func (p_ PostalAddress) PostalCode() string { - rv := objc.Call[string](p_, objc.Sel("postalCode")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdress/1402880-country?language=objc +func (p_ PostalAddress) Country() string { + rv := objc.Call[string](p_, objc.Sel("country")) return rv } diff --git a/macos/contacts/postal_address_formatter.gen.go b/macos/contacts/postal_address_formatter.gen.go index 2254b5e8..3bf0db64 100644 --- a/macos/contacts/postal_address_formatter.gen.go +++ b/macos/contacts/postal_address_formatter.gen.go @@ -19,8 +19,8 @@ type _PostalAddressFormatterClass struct { // An interface definition for the [PostalAddressFormatter] class. type IPostalAddressFormatter interface { foundation.IFormatter - AttributedStringFromPostalAddressWithDefaultAttributes(postalAddress IPostalAddress, attributes foundation.Dictionary) foundation.AttributedString StringFromPostalAddress(postalAddress IPostalAddress) string + AttributedStringFromPostalAddressWithDefaultAttributes(postalAddress IPostalAddress, attributes foundation.Dictionary) foundation.AttributedString Style() PostalAddressFormatterStyle SetStyle(value PostalAddressFormatterStyle) } @@ -58,29 +58,6 @@ func (p_ PostalAddressFormatter) Init() PostalAddressFormatter { return rv } -// Returns a postal address as a string and formatted for the specified style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter/1403291-stringfrompostaladdress?language=objc -func (pc _PostalAddressFormatterClass) StringFromPostalAddressStyle(postalAddress IPostalAddress, style PostalAddressFormatterStyle) string { - rv := objc.Call[string](pc, objc.Sel("stringFromPostalAddress:style:"), postalAddress, style) - return rv -} - -// Returns a postal address as a string and formatted for the specified style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter/1403291-stringfrompostaladdress?language=objc -func PostalAddressFormatter_StringFromPostalAddressStyle(postalAddress IPostalAddress, style PostalAddressFormatterStyle) string { - return PostalAddressFormatterClass.StringFromPostalAddressStyle(postalAddress, style) -} - -// Returns a formatted postal address as an attributed string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter/1402831-attributedstringfrompostaladdres?language=objc -func (p_ PostalAddressFormatter) AttributedStringFromPostalAddressWithDefaultAttributes(postalAddress IPostalAddress, attributes foundation.Dictionary) foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](p_, objc.Sel("attributedStringFromPostalAddress:withDefaultAttributes:"), postalAddress, attributes) - return rv -} - // Returns a formatted postal address. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter/1403011-stringfrompostaladdress?language=objc @@ -89,21 +66,14 @@ func (p_ PostalAddressFormatter) StringFromPostalAddress(postalAddress IPostalAd return rv } -// Returns a postal address as an attributed string and formatted for the specified style. [Full Topic] +// Returns a formatted postal address as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter/1403336-attributedstringfrompostaladdres?language=objc -func (pc _PostalAddressFormatterClass) AttributedStringFromPostalAddressStyleWithDefaultAttributes(postalAddress IPostalAddress, style PostalAddressFormatterStyle, attributes foundation.Dictionary) foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](pc, objc.Sel("attributedStringFromPostalAddress:style:withDefaultAttributes:"), postalAddress, style, attributes) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter/1402831-attributedstringfrompostaladdres?language=objc +func (p_ PostalAddressFormatter) AttributedStringFromPostalAddressWithDefaultAttributes(postalAddress IPostalAddress, attributes foundation.Dictionary) foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](p_, objc.Sel("attributedStringFromPostalAddress:withDefaultAttributes:"), postalAddress, attributes) return rv } -// Returns a postal address as an attributed string and formatted for the specified style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter/1403336-attributedstringfrompostaladdres?language=objc -func PostalAddressFormatter_AttributedStringFromPostalAddressStyleWithDefaultAttributes(postalAddress IPostalAddress, style PostalAddressFormatterStyle, attributes foundation.Dictionary) foundation.AttributedString { - return PostalAddressFormatterClass.AttributedStringFromPostalAddressStyleWithDefaultAttributes(postalAddress, style, attributes) -} - // The style to apply when formatting strings. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter/1402781-style?language=objc diff --git a/macos/contacts/save_request.gen.go b/macos/contacts/save_request.gen.go index 3afe5f0f..6bc2a3d1 100644 --- a/macos/contacts/save_request.gen.go +++ b/macos/contacts/save_request.gen.go @@ -18,20 +18,20 @@ type _SaveRequestClass struct { // An interface definition for the [SaveRequest] class. type ISaveRequest interface { objc.IObject - DeleteContact(contact IMutableContact) DeleteGroup(group IMutableGroup) - AddGroupToContainerWithIdentifier(group IMutableGroup, identifier string) - AddMemberToGroup(contact IContact, group IGroup) UpdateGroup(group IMutableGroup) + AddMemberToGroup(contact IContact, group IGroup) + DeleteContact(contact IMutableContact) RemoveMemberFromGroup(contact IContact, group IGroup) + UpdateContact(contact IMutableContact) + AddGroupToContainerWithIdentifier(group IMutableGroup, identifier string) AddContactToContainerWithIdentifier(contact IMutableContact, identifier string) AddSubgroupToGroup(subgroup IGroup, group IGroup) RemoveSubgroupFromGroup(subgroup IGroup, group IGroup) - UpdateContact(contact IMutableContact) - TransactionAuthor() string - SetTransactionAuthor(value string) ShouldRefetchContacts() bool SetShouldRefetchContacts(value bool) + TransactionAuthor() string + SetTransactionAuthor(value string) } // An object that collects the changes you want to save to the user's contacts database. [Full Topic] @@ -67,13 +67,6 @@ func (s_ SaveRequest) Init() SaveRequest { return rv } -// Deletes a contact from the contact store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1402970-deletecontact?language=objc -func (s_ SaveRequest) DeleteContact(contact IMutableContact) { - objc.Call[objc.Void](s_, objc.Sel("deleteContact:"), contact) -} - // Deletes a group from the contact store. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1402859-deletegroup?language=objc @@ -81,11 +74,11 @@ func (s_ SaveRequest) DeleteGroup(group IMutableGroup) { objc.Call[objc.Void](s_, objc.Sel("deleteGroup:"), group) } -// Adds a group to the contact store. [Full Topic] +// Updates an existing group in the contact store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1402821-addgroup?language=objc -func (s_ SaveRequest) AddGroupToContainerWithIdentifier(group IMutableGroup, identifier string) { - objc.Call[objc.Void](s_, objc.Sel("addGroup:toContainerWithIdentifier:"), group, identifier) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1403387-updategroup?language=objc +func (s_ SaveRequest) UpdateGroup(group IMutableGroup) { + objc.Call[objc.Void](s_, objc.Sel("updateGroup:"), group) } // Adds a contact as a member of a group. [Full Topic] @@ -95,11 +88,11 @@ func (s_ SaveRequest) AddMemberToGroup(contact IContact, group IGroup) { objc.Call[objc.Void](s_, objc.Sel("addMember:toGroup:"), contact, group) } -// Updates an existing group in the contact store. [Full Topic] +// Deletes a contact from the contact store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1403387-updategroup?language=objc -func (s_ SaveRequest) UpdateGroup(group IMutableGroup) { - objc.Call[objc.Void](s_, objc.Sel("updateGroup:"), group) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1402970-deletecontact?language=objc +func (s_ SaveRequest) DeleteContact(contact IMutableContact) { + objc.Call[objc.Void](s_, objc.Sel("deleteContact:"), contact) } // Removes a contact as a member of a group. [Full Topic] @@ -109,6 +102,20 @@ func (s_ SaveRequest) RemoveMemberFromGroup(contact IContact, group IGroup) { objc.Call[objc.Void](s_, objc.Sel("removeMember:fromGroup:"), contact, group) } +// Updates an existing contact in the contact store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1403074-updatecontact?language=objc +func (s_ SaveRequest) UpdateContact(contact IMutableContact) { + objc.Call[objc.Void](s_, objc.Sel("updateContact:"), contact) +} + +// Adds a group to the contact store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1402821-addgroup?language=objc +func (s_ SaveRequest) AddGroupToContainerWithIdentifier(group IMutableGroup, identifier string) { + objc.Call[objc.Void](s_, objc.Sel("addGroup:toContainerWithIdentifier:"), group, identifier) +} + // Adds the specified contact to the contact store. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1403036-addcontact?language=objc @@ -130,39 +137,32 @@ func (s_ SaveRequest) RemoveSubgroupFromGroup(subgroup IGroup, group IGroup) { objc.Call[objc.Void](s_, objc.Sel("removeSubgroup:fromGroup:"), subgroup, group) } -// Updates an existing contact in the contact store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1403074-updatecontact?language=objc -func (s_ SaveRequest) UpdateContact(contact IMutableContact) { - objc.Call[objc.Void](s_, objc.Sel("updateContact:"), contact) -} - // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/3824780-transactionauthor?language=objc -func (s_ SaveRequest) TransactionAuthor() string { - rv := objc.Call[string](s_, objc.Sel("transactionAuthor")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/3925416-shouldrefetchcontacts?language=objc +func (s_ SaveRequest) ShouldRefetchContacts() bool { + rv := objc.Call[bool](s_, objc.Sel("shouldRefetchContacts")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/3824780-transactionauthor?language=objc -func (s_ SaveRequest) SetTransactionAuthor(value string) { - objc.Call[objc.Void](s_, objc.Sel("setTransactionAuthor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/3925416-shouldrefetchcontacts?language=objc +func (s_ SaveRequest) SetShouldRefetchContacts(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setShouldRefetchContacts:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/3925416-shouldrefetchcontacts?language=objc -func (s_ SaveRequest) ShouldRefetchContacts() bool { - rv := objc.Call[bool](s_, objc.Sel("shouldRefetchContacts")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/3824780-transactionauthor?language=objc +func (s_ SaveRequest) TransactionAuthor() string { + rv := objc.Call[string](s_, objc.Sel("transactionAuthor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/3925416-shouldrefetchcontacts?language=objc -func (s_ SaveRequest) SetShouldRefetchContacts(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setShouldRefetchContacts:"), value) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/3824780-transactionauthor?language=objc +func (s_ SaveRequest) SetTransactionAuthor(value string) { + objc.Call[objc.Void](s_, objc.Sel("setTransactionAuthor:"), value) } diff --git a/macos/contactsui/contact_picker.gen.go b/macos/contactsui/contact_picker.gen.go index 1a79fc9e..b111d9e3 100644 --- a/macos/contactsui/contact_picker.gen.go +++ b/macos/contactsui/contact_picker.gen.go @@ -22,11 +22,11 @@ type IContactPicker interface { objc.IObject Close() ShowRelativeToRectOfViewPreferredEdge(positioningRect foundation.Rect, positioningView appkit.IView, preferredEdge foundation.RectEdge) - DisplayedKeys() []string - SetDisplayedKeys(value []string) Delegate() ContactPickerDelegateObject SetDelegate(value PContactPickerDelegate) SetDelegateObject(valueObject objc.IObject) + DisplayedKeys() []string + SetDisplayedKeys(value []string) } // A popover-based interface for selecting a contact. [Full Topic] @@ -76,21 +76,6 @@ func (c_ ContactPicker) ShowRelativeToRectOfViewPreferredEdge(positioningRect fo objc.Call[objc.Void](c_, objc.Sel("showRelativeToRect:ofView:preferredEdge:"), positioningRect, positioningView, preferredEdge) } -// The keys to be displayed when a contact is expanded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpicker/1522585-displayedkeys?language=objc -func (c_ ContactPicker) DisplayedKeys() []string { - rv := objc.Call[[]string](c_, objc.Sel("displayedKeys")) - return rv -} - -// The keys to be displayed when a contact is expanded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpicker/1522585-displayedkeys?language=objc -func (c_ ContactPicker) SetDisplayedKeys(value []string) { - objc.Call[objc.Void](c_, objc.Sel("setDisplayedKeys:"), value) -} - // The picker delegate to be notified when the user chooses a contact. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpicker/1522588-delegate?language=objc @@ -114,3 +99,18 @@ func (c_ ContactPicker) SetDelegate(value PContactPickerDelegate) { func (c_ ContactPicker) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), valueObject) } + +// The keys to be displayed when a contact is expanded. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpicker/1522585-displayedkeys?language=objc +func (c_ ContactPicker) DisplayedKeys() []string { + rv := objc.Call[[]string](c_, objc.Sel("displayedKeys")) + return rv +} + +// The keys to be displayed when a contact is expanded. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpicker/1522585-displayedkeys?language=objc +func (c_ ContactPicker) SetDisplayedKeys(value []string) { + objc.Call[objc.Void](c_, objc.Sel("setDisplayedKeys:"), value) +} diff --git a/macos/contactsui/contact_picker_delegate.gen.go b/macos/contactsui/contact_picker_delegate.gen.go index af9cfcb2..aaa308d7 100644 --- a/macos/contactsui/contact_picker_delegate.gen.go +++ b/macos/contactsui/contact_picker_delegate.gen.go @@ -3,7 +3,6 @@ package contactsui import ( - "github.com/progrium/darwinkit/macos/contacts" "github.com/progrium/darwinkit/objc" ) @@ -11,65 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate?language=objc type PContactPickerDelegate interface { - // optional - ContactPickerWillClose(picker ContactPicker) - HasContactPickerWillClose() bool - - // optional - ContactPickerDidSelectContact(picker ContactPicker, contact contacts.Contact) - HasContactPickerDidSelectContact() bool - // optional ContactPickerDidClose(picker ContactPicker) HasContactPickerDidClose() bool // optional - ContactPickerDidSelectContactProperty(picker ContactPicker, contactProperty contacts.ContactProperty) - HasContactPickerDidSelectContactProperty() bool + ContactPickerWillClose(picker ContactPicker) + HasContactPickerWillClose() bool } // A delegate implementation builder for the [PContactPickerDelegate] protocol. type ContactPickerDelegate struct { - _ContactPickerWillClose func(picker ContactPicker) - _ContactPickerDidSelectContact func(picker ContactPicker, contact contacts.Contact) - _ContactPickerDidClose func(picker ContactPicker) - _ContactPickerDidSelectContactProperty func(picker ContactPicker, contactProperty contacts.ContactProperty) -} - -func (di *ContactPickerDelegate) HasContactPickerWillClose() bool { - return di._ContactPickerWillClose != nil -} - -// In macOS, called when the contact picker’s popover is about to close. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522594-contactpickerwillclose?language=objc -func (di *ContactPickerDelegate) SetContactPickerWillClose(f func(picker ContactPicker)) { - di._ContactPickerWillClose = f -} - -// In macOS, called when the contact picker’s popover is about to close. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522594-contactpickerwillclose?language=objc -func (di *ContactPickerDelegate) ContactPickerWillClose(picker ContactPicker) { - di._ContactPickerWillClose(picker) -} -func (di *ContactPickerDelegate) HasContactPickerDidSelectContact() bool { - return di._ContactPickerDidSelectContact != nil -} - -// Called after a contact has been selected by the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522595-contactpicker?language=objc -func (di *ContactPickerDelegate) SetContactPickerDidSelectContact(f func(picker ContactPicker, contact contacts.Contact)) { - di._ContactPickerDidSelectContact = f + _ContactPickerDidClose func(picker ContactPicker) + _ContactPickerWillClose func(picker ContactPicker) } -// Called after a contact has been selected by the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522595-contactpicker?language=objc -func (di *ContactPickerDelegate) ContactPickerDidSelectContact(picker ContactPicker, contact contacts.Contact) { - di._ContactPickerDidSelectContact(picker, contact) -} func (di *ContactPickerDelegate) HasContactPickerDidClose() bool { return di._ContactPickerDidClose != nil } @@ -87,22 +42,22 @@ func (di *ContactPickerDelegate) SetContactPickerDidClose(f func(picker ContactP func (di *ContactPickerDelegate) ContactPickerDidClose(picker ContactPicker) { di._ContactPickerDidClose(picker) } -func (di *ContactPickerDelegate) HasContactPickerDidSelectContactProperty() bool { - return di._ContactPickerDidSelectContactProperty != nil +func (di *ContactPickerDelegate) HasContactPickerWillClose() bool { + return di._ContactPickerWillClose != nil } -// Called when a property of the contact has been selected by the user. [Full Topic] +// In macOS, called when the contact picker’s popover is about to close. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522593-contactpicker?language=objc -func (di *ContactPickerDelegate) SetContactPickerDidSelectContactProperty(f func(picker ContactPicker, contactProperty contacts.ContactProperty)) { - di._ContactPickerDidSelectContactProperty = f +// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522594-contactpickerwillclose?language=objc +func (di *ContactPickerDelegate) SetContactPickerWillClose(f func(picker ContactPicker)) { + di._ContactPickerWillClose = f } -// Called when a property of the contact has been selected by the user. [Full Topic] +// In macOS, called when the contact picker’s popover is about to close. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522593-contactpicker?language=objc -func (di *ContactPickerDelegate) ContactPickerDidSelectContactProperty(picker ContactPicker, contactProperty contacts.ContactProperty) { - di._ContactPickerDidSelectContactProperty(picker, contactProperty) +// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522594-contactpickerwillclose?language=objc +func (di *ContactPickerDelegate) ContactPickerWillClose(picker ContactPicker) { + di._ContactPickerWillClose(picker) } // ensure impl type implements protocol interface @@ -113,28 +68,6 @@ type ContactPickerDelegateObject struct { objc.Object } -func (c_ ContactPickerDelegateObject) HasContactPickerWillClose() bool { - return c_.RespondsToSelector(objc.Sel("contactPickerWillClose:")) -} - -// In macOS, called when the contact picker’s popover is about to close. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522594-contactpickerwillclose?language=objc -func (c_ ContactPickerDelegateObject) ContactPickerWillClose(picker ContactPicker) { - objc.Call[objc.Void](c_, objc.Sel("contactPickerWillClose:"), picker) -} - -func (c_ ContactPickerDelegateObject) HasContactPickerDidSelectContact() bool { - return c_.RespondsToSelector(objc.Sel("contactPicker:didSelectContact:")) -} - -// Called after a contact has been selected by the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522595-contactpicker?language=objc -func (c_ ContactPickerDelegateObject) ContactPickerDidSelectContact(picker ContactPicker, contact contacts.Contact) { - objc.Call[objc.Void](c_, objc.Sel("contactPicker:didSelectContact:"), picker, contact) -} - func (c_ ContactPickerDelegateObject) HasContactPickerDidClose() bool { return c_.RespondsToSelector(objc.Sel("contactPickerDidClose:")) } @@ -146,13 +79,13 @@ func (c_ ContactPickerDelegateObject) ContactPickerDidClose(picker ContactPicker objc.Call[objc.Void](c_, objc.Sel("contactPickerDidClose:"), picker) } -func (c_ ContactPickerDelegateObject) HasContactPickerDidSelectContactProperty() bool { - return c_.RespondsToSelector(objc.Sel("contactPicker:didSelectContactProperty:")) +func (c_ ContactPickerDelegateObject) HasContactPickerWillClose() bool { + return c_.RespondsToSelector(objc.Sel("contactPickerWillClose:")) } -// Called when a property of the contact has been selected by the user. [Full Topic] +// In macOS, called when the contact picker’s popover is about to close. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522593-contactpicker?language=objc -func (c_ ContactPickerDelegateObject) ContactPickerDidSelectContactProperty(picker ContactPicker, contactProperty contacts.ContactProperty) { - objc.Call[objc.Void](c_, objc.Sel("contactPicker:didSelectContactProperty:"), picker, contactProperty) +// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522594-contactpickerwillclose?language=objc +func (c_ ContactPickerDelegateObject) ContactPickerWillClose(picker ContactPicker) { + objc.Call[objc.Void](c_, objc.Sel("contactPickerWillClose:"), picker) } diff --git a/macos/contactsui/contact_view_controller.gen.go b/macos/contactsui/contact_view_controller.gen.go index a06d9f64..471d223b 100644 --- a/macos/contactsui/contact_view_controller.gen.go +++ b/macos/contactsui/contact_view_controller.gen.go @@ -22,7 +22,6 @@ type _ContactViewControllerClass struct { type IContactViewController interface { appkit.IViewController Contact() contacts.Contact - SetContact(value contacts.IContact) } // A view controller that displays a new, unknown, or existing contact. [Full Topic] @@ -94,10 +93,3 @@ func (c_ ContactViewController) Contact() contacts.Contact { rv := objc.Call[contacts.Contact](c_, objc.Sel("contact")) return rv } - -// The contact being displayed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactviewcontroller/1522596-contact?language=objc -func (c_ ContactViewController) SetContact(value contacts.IContact) { - objc.Call[objc.Void](c_, objc.Sel("setContact:"), value) -} diff --git a/macos/coreaudiotypes/enumtypes.gen.go b/macos/coreaudiotypes/enumtypes.gen.go index 4df403d3..3d8d74d7 100644 --- a/macos/coreaudiotypes/enumtypes.gen.go +++ b/macos/coreaudiotypes/enumtypes.gen.go @@ -118,7 +118,7 @@ type FormatID uint32 // The canonical audio data sample type for input and output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreaudiotypes/audiosampletype?language=objc -type SampleType float32 +type SampleType int16 // A unique identifier of an audio session. [Full Topic] // @@ -143,7 +143,7 @@ const ( // The canonical audio data sample type for audio processing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreaudiotypes/audiounitsampletype?language=objc -type UnitSampleType float32 +type UnitSampleType int32 // Constants that define the type of MPEG-4 audio data. [Full Topic] // diff --git a/macos/coredata/atomic_store.gen.go b/macos/coredata/atomic_store.gen.go index 26c336c0..f06a5ff6 100644 --- a/macos/coredata/atomic_store.gen.go +++ b/macos/coredata/atomic_store.gen.go @@ -19,17 +19,17 @@ type _AtomicStoreClass struct { // An interface definition for the [AtomicStore] class. type IAtomicStore interface { IPersistentStore + ReferenceObjectForObjectID(objectID IManagedObjectID) objc.Object + NewReferenceObjectForManagedObject(managedObject IManagedObject) objc.Object + Save(error unsafe.Pointer) bool CacheNodeForObjectID(objectID IManagedObjectID) AtomicStoreCacheNode + WillRemoveCacheNodes(cacheNodes foundation.ISet) + ObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID CacheNodes() foundation.Set - ReferenceObjectForObjectID(objectID IManagedObjectID) objc.Object + NewCacheNodeForManagedObject(managedObject IManagedObject) AtomicStoreCacheNode UpdateCacheNodeFromManagedObject(node IAtomicStoreCacheNode, managedObject IManagedObject) - ObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID AddCacheNodes(cacheNodes foundation.ISet) Load(error unsafe.Pointer) bool - NewReferenceObjectForManagedObject(managedObject IManagedObject) objc.Object - WillRemoveCacheNodes(cacheNodes foundation.ISet) - NewCacheNodeForManagedObject(managedObject IManagedObject) AtomicStoreCacheNode - Save(error unsafe.Pointer) bool } // An abstract superclass that you subclass to create a Core Data atomic store. [Full Topic] @@ -79,6 +79,30 @@ func (a_ AtomicStore) Init() AtomicStore { return rv } +// Returns the reference object for a given managed object ID. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388046-referenceobjectforobjectid?language=objc +func (a_ AtomicStore) ReferenceObjectForObjectID(objectID IManagedObjectID) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("referenceObjectForObjectID:"), objectID) + return rv +} + +// Returns a new reference object for a given managed object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388050-newreferenceobjectformanagedobje?language=objc +func (a_ AtomicStore) NewReferenceObjectForManagedObject(managedObject IManagedObject) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("newReferenceObjectForManagedObject:"), managedObject) + return rv +} + +// Saves the cache nodes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388056-save?language=objc +func (a_ AtomicStore) Save(error unsafe.Pointer) bool { + rv := objc.Call[bool](a_, objc.Sel("save:"), error) + return rv +} + // Returns the cache node for a given managed object ID. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388040-cachenodeforobjectid?language=objc @@ -87,6 +111,21 @@ func (a_ AtomicStore) CacheNodeForObjectID(objectID IManagedObjectID) AtomicStor return rv } +// Method invoked before the store removes the given collection of cache nodes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388064-willremovecachenodes?language=objc +func (a_ AtomicStore) WillRemoveCacheNodes(cacheNodes foundation.ISet) { + objc.Call[objc.Void](a_, objc.Sel("willRemoveCacheNodes:"), cacheNodes) +} + +// Returns a managed object ID from the reference data for a specified entity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388058-objectidforentity?language=objc +func (a_ AtomicStore) ObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID { + rv := objc.Call[ManagedObjectID](a_, objc.Sel("objectIDForEntity:referenceObject:"), entity, data) + return rv +} + // Returns the set of cache nodes registered with the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388042-cachenodes?language=objc @@ -95,11 +134,11 @@ func (a_ AtomicStore) CacheNodes() foundation.Set { return rv } -// Returns the reference object for a given managed object ID. [Full Topic] +// Returns a new cache node for a given managed object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388046-referenceobjectforobjectid?language=objc -func (a_ AtomicStore) ReferenceObjectForObjectID(objectID IManagedObjectID) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("referenceObjectForObjectID:"), objectID) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388052-newcachenodeformanagedobject?language=objc +func (a_ AtomicStore) NewCacheNodeForManagedObject(managedObject IManagedObject) AtomicStoreCacheNode { + rv := objc.Call[AtomicStoreCacheNode](a_, objc.Sel("newCacheNodeForManagedObject:"), managedObject) return rv } @@ -110,14 +149,6 @@ func (a_ AtomicStore) UpdateCacheNodeFromManagedObject(node IAtomicStoreCacheNod objc.Call[objc.Void](a_, objc.Sel("updateCacheNode:fromManagedObject:"), node, managedObject) } -// Returns a managed object ID from the reference data for a specified entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388058-objectidforentity?language=objc -func (a_ AtomicStore) ObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID { - rv := objc.Call[ManagedObjectID](a_, objc.Sel("objectIDForEntity:referenceObject:"), entity, data) - return rv -} - // Registers a set of cache nodes with the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388062-addcachenodes?language=objc @@ -132,34 +163,3 @@ func (a_ AtomicStore) Load(error unsafe.Pointer) bool { rv := objc.Call[bool](a_, objc.Sel("load:"), error) return rv } - -// Returns a new reference object for a given managed object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388050-newreferenceobjectformanagedobje?language=objc -func (a_ AtomicStore) NewReferenceObjectForManagedObject(managedObject IManagedObject) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("newReferenceObjectForManagedObject:"), managedObject) - return rv -} - -// Method invoked before the store removes the given collection of cache nodes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388064-willremovecachenodes?language=objc -func (a_ AtomicStore) WillRemoveCacheNodes(cacheNodes foundation.ISet) { - objc.Call[objc.Void](a_, objc.Sel("willRemoveCacheNodes:"), cacheNodes) -} - -// Returns a new cache node for a given managed object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388052-newcachenodeformanagedobject?language=objc -func (a_ AtomicStore) NewCacheNodeForManagedObject(managedObject IManagedObject) AtomicStoreCacheNode { - rv := objc.Call[AtomicStoreCacheNode](a_, objc.Sel("newCacheNodeForManagedObject:"), managedObject) - return rv -} - -// Saves the cache nodes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstore/1388056-save?language=objc -func (a_ AtomicStore) Save(error unsafe.Pointer) bool { - rv := objc.Call[bool](a_, objc.Sel("save:"), error) - return rv -} diff --git a/macos/coredata/atomic_store_cache_node.gen.go b/macos/coredata/atomic_store_cache_node.gen.go index 48cd60dc..218bcf6c 100644 --- a/macos/coredata/atomic_store_cache_node.gen.go +++ b/macos/coredata/atomic_store_cache_node.gen.go @@ -21,9 +21,9 @@ type IAtomicStoreCacheNode interface { objc.IObject SetValueForKey(value objc.IObject, key string) ValueForKey(key string) objc.Object - ObjectID() ManagedObjectID PropertyCache() foundation.MutableDictionary SetPropertyCache(value foundation.IMutableDictionary) + ObjectID() ManagedObjectID } // A concrete class that you use to represent basic nodes in a Core Data atomic store. [Full Topic] @@ -88,14 +88,6 @@ func (a_ AtomicStoreCacheNode) ValueForKey(key string) objc.Object { return rv } -// The managed object ID of the node. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstorecachenode/1506627-objectid?language=objc -func (a_ AtomicStoreCacheNode) ObjectID() ManagedObjectID { - rv := objc.Call[ManagedObjectID](a_, objc.Sel("objectID")) - return rv -} - // The property cache dictionary of the node. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstorecachenode/1506283-propertycache?language=objc @@ -110,3 +102,11 @@ func (a_ AtomicStoreCacheNode) PropertyCache() foundation.MutableDictionary { func (a_ AtomicStoreCacheNode) SetPropertyCache(value foundation.IMutableDictionary) { objc.Call[objc.Void](a_, objc.Sel("setPropertyCache:"), value) } + +// The managed object ID of the node. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsatomicstorecachenode/1506627-objectid?language=objc +func (a_ AtomicStoreCacheNode) ObjectID() ManagedObjectID { + rv := objc.Call[ManagedObjectID](a_, objc.Sel("objectID")) + return rv +} diff --git a/macos/coredata/attribute_description.gen.go b/macos/coredata/attribute_description.gen.go index 08469be4..042edb8f 100644 --- a/macos/coredata/attribute_description.gen.go +++ b/macos/coredata/attribute_description.gen.go @@ -18,20 +18,20 @@ type _AttributeDescriptionClass struct { // An interface definition for the [AttributeDescription] class. type IAttributeDescription interface { IPropertyDescription - AttributeValueClassName() string - SetAttributeValueClassName(value string) - ValueTransformerName() string - SetValueTransformerName(value string) - PreservesValueInHistoryOnDeletion() bool - SetPreservesValueInHistoryOnDeletion(value bool) AllowsExternalBinaryDataStorage() bool SetAllowsExternalBinaryDataStorage(value bool) - AllowsCloudEncryption() bool - SetAllowsCloudEncryption(value bool) DefaultValue() objc.Object SetDefaultValue(value objc.IObject) + ValueTransformerName() string + SetValueTransformerName(value string) AttributeType() AttributeType SetAttributeType(value AttributeType) + AllowsCloudEncryption() bool + SetAllowsCloudEncryption(value bool) + PreservesValueInHistoryOnDeletion() bool + SetPreservesValueInHistoryOnDeletion(value bool) + AttributeValueClassName() string + SetAttributeValueClassName(value string) } // A description of a single attribute belonging to an entity. [Full Topic] @@ -67,19 +67,34 @@ func (a_ AttributeDescription) Init() AttributeDescription { return rv } -// The class name that represents the attribute’s value. [Full Topic] +// A Boolean value that indicates whether the attribute allows external binary storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498309-attributevalueclassname?language=objc -func (a_ AttributeDescription) AttributeValueClassName() string { - rv := objc.Call[string](a_, objc.Sel("attributeValueClassName")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498295-allowsexternalbinarydatastorage?language=objc +func (a_ AttributeDescription) AllowsExternalBinaryDataStorage() bool { + rv := objc.Call[bool](a_, objc.Sel("allowsExternalBinaryDataStorage")) return rv } -// The class name that represents the attribute’s value. [Full Topic] +// A Boolean value that indicates whether the attribute allows external binary storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498309-attributevalueclassname?language=objc -func (a_ AttributeDescription) SetAttributeValueClassName(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAttributeValueClassName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498295-allowsexternalbinarydatastorage?language=objc +func (a_ AttributeDescription) SetAllowsExternalBinaryDataStorage(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAllowsExternalBinaryDataStorage:"), value) +} + +// The default value of the attribute. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498302-defaultvalue?language=objc +func (a_ AttributeDescription) DefaultValue() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("defaultValue")) + return rv +} + +// The default value of the attribute. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498302-defaultvalue?language=objc +func (a_ AttributeDescription) SetDefaultValue(value objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("setDefaultValue:"), value) } // The name of the transformer to use for the attribute value. [Full Topic] @@ -97,34 +112,19 @@ func (a_ AttributeDescription) SetValueTransformerName(value string) { objc.Call[objc.Void](a_, objc.Sel("setValueTransformerName:"), value) } -// A Boolean value that indicates whether the attribute records its value in the persistent history transaction for a managed object’s deletion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/3180042-preservesvalueinhistoryondeletio?language=objc -func (a_ AttributeDescription) PreservesValueInHistoryOnDeletion() bool { - rv := objc.Call[bool](a_, objc.Sel("preservesValueInHistoryOnDeletion")) - return rv -} - -// A Boolean value that indicates whether the attribute records its value in the persistent history transaction for a managed object’s deletion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/3180042-preservesvalueinhistoryondeletio?language=objc -func (a_ AttributeDescription) SetPreservesValueInHistoryOnDeletion(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setPreservesValueInHistoryOnDeletion:"), value) -} - -// A Boolean value that indicates whether the attribute allows external binary storage. [Full Topic] +// The attribute’s type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498295-allowsexternalbinarydatastorage?language=objc -func (a_ AttributeDescription) AllowsExternalBinaryDataStorage() bool { - rv := objc.Call[bool](a_, objc.Sel("allowsExternalBinaryDataStorage")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498291-attributetype?language=objc +func (a_ AttributeDescription) AttributeType() AttributeType { + rv := objc.Call[AttributeType](a_, objc.Sel("attributeType")) return rv } -// A Boolean value that indicates whether the attribute allows external binary storage. [Full Topic] +// The attribute’s type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498295-allowsexternalbinarydatastorage?language=objc -func (a_ AttributeDescription) SetAllowsExternalBinaryDataStorage(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAllowsExternalBinaryDataStorage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498291-attributetype?language=objc +func (a_ AttributeDescription) SetAttributeType(value AttributeType) { + objc.Call[objc.Void](a_, objc.Sel("setAttributeType:"), value) } // A Boolean value that determines whether to encrypt the attribute’s value. [Full Topic] @@ -142,32 +142,32 @@ func (a_ AttributeDescription) SetAllowsCloudEncryption(value bool) { objc.Call[objc.Void](a_, objc.Sel("setAllowsCloudEncryption:"), value) } -// The default value of the attribute. [Full Topic] +// A Boolean value that indicates whether the attribute records its value in the persistent history transaction for a managed object’s deletion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498302-defaultvalue?language=objc -func (a_ AttributeDescription) DefaultValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("defaultValue")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/3180042-preservesvalueinhistoryondeletio?language=objc +func (a_ AttributeDescription) PreservesValueInHistoryOnDeletion() bool { + rv := objc.Call[bool](a_, objc.Sel("preservesValueInHistoryOnDeletion")) return rv } -// The default value of the attribute. [Full Topic] +// A Boolean value that indicates whether the attribute records its value in the persistent history transaction for a managed object’s deletion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498302-defaultvalue?language=objc -func (a_ AttributeDescription) SetDefaultValue(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setDefaultValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/3180042-preservesvalueinhistoryondeletio?language=objc +func (a_ AttributeDescription) SetPreservesValueInHistoryOnDeletion(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setPreservesValueInHistoryOnDeletion:"), value) } -// The attribute’s type. [Full Topic] +// The class name that represents the attribute’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498291-attributetype?language=objc -func (a_ AttributeDescription) AttributeType() AttributeType { - rv := objc.Call[AttributeType](a_, objc.Sel("attributeType")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498309-attributevalueclassname?language=objc +func (a_ AttributeDescription) AttributeValueClassName() string { + rv := objc.Call[string](a_, objc.Sel("attributeValueClassName")) return rv } -// The attribute’s type. [Full Topic] +// The class name that represents the attribute’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498291-attributetype?language=objc -func (a_ AttributeDescription) SetAttributeType(value AttributeType) { - objc.Call[objc.Void](a_, objc.Sel("setAttributeType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsattributedescription/1498309-attributevalueclassname?language=objc +func (a_ AttributeDescription) SetAttributeValueClassName(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAttributeValueClassName:"), value) } diff --git a/macos/coredata/batch_insert_request.gen.go b/macos/coredata/batch_insert_request.gen.go index c8eae09b..1ea6d8cf 100644 --- a/macos/coredata/batch_insert_request.gen.go +++ b/macos/coredata/batch_insert_request.gen.go @@ -20,15 +20,15 @@ type _BatchInsertRequestClass struct { type IBatchInsertRequest interface { IPersistentStoreRequest EntityName() string + Entity() EntityDescription + ObjectsToInsert() []map[string]objc.Object + SetObjectsToInsert(value []map[string]objc.IObject) + DictionaryHandler() func(obj foundation.MutableDictionary) bool + SetDictionaryHandler(value func(obj foundation.MutableDictionary) bool) ManagedObjectHandler() func(obj ManagedObject) bool SetManagedObjectHandler(value func(obj ManagedObject) bool) ResultType() BatchInsertRequestResultType SetResultType(value BatchInsertRequestResultType) - DictionaryHandler() func(obj foundation.MutableDictionary) bool - SetDictionaryHandler(value func(obj foundation.MutableDictionary) bool) - ObjectsToInsert() []map[string]objc.Object - SetObjectsToInsert(value []map[string]objc.IObject) - Entity() EntityDescription } // A request to insert a batch of data in a persistent store. [Full Topic] @@ -44,46 +44,6 @@ func BatchInsertRequestFrom(ptr unsafe.Pointer) BatchInsertRequest { } } -func (bc _BatchInsertRequestClass) BatchInsertRequestWithEntityNameObjects(entityName string, dictionaries []map[string]objc.IObject) BatchInsertRequest { - rv := objc.Call[BatchInsertRequest](bc, objc.Sel("batchInsertRequestWithEntityName:objects:"), entityName, dictionaries) - return rv -} - -// Creates a batch-insertion request for a named managed entity, and provides an array of data dictionaries for insertion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333230-batchinsertrequestwithentityname?language=objc -func BatchInsertRequest_BatchInsertRequestWithEntityNameObjects(entityName string, dictionaries []map[string]objc.IObject) BatchInsertRequest { - return BatchInsertRequestClass.BatchInsertRequestWithEntityNameObjects(entityName, dictionaries) -} - -func (b_ BatchInsertRequest) InitWithEntityNameDictionaryHandler(entityName string, handler func(obj foundation.MutableDictionary) bool) BatchInsertRequest { - rv := objc.Call[BatchInsertRequest](b_, objc.Sel("initWithEntityName:dictionaryHandler:"), entityName, handler) - return rv -} - -// Creates a batch-insertion request for a named managed entity, and specifies a closure that provides data dictionaries for insertion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3618787-initwithentityname?language=objc -func NewBatchInsertRequestWithEntityNameDictionaryHandler(entityName string, handler func(obj foundation.MutableDictionary) bool) BatchInsertRequest { - instance := BatchInsertRequestClass.Alloc().InitWithEntityNameDictionaryHandler(entityName, handler) - instance.Autorelease() - return instance -} - -func (b_ BatchInsertRequest) InitWithEntityNameManagedObjectHandler(entityName string, handler func(obj ManagedObject) bool) BatchInsertRequest { - rv := objc.Call[BatchInsertRequest](b_, objc.Sel("initWithEntityName:managedObjectHandler:"), entityName, handler) - return rv -} - -// Creates a batch-insertion request for a named managed entity, and specifies a closure that inserts data into the entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3618788-initwithentityname?language=objc -func NewBatchInsertRequestWithEntityNameManagedObjectHandler(entityName string, handler func(obj ManagedObject) bool) BatchInsertRequest { - instance := BatchInsertRequestClass.Alloc().InitWithEntityNameManagedObjectHandler(entityName, handler) - instance.Autorelease() - return instance -} - func (b_ BatchInsertRequest) InitWithEntityNameObjects(entityName string, dictionaries []map[string]objc.IObject) BatchInsertRequest { rv := objc.Call[BatchInsertRequest](b_, objc.Sel("initWithEntityName:objects:"), entityName, dictionaries) return rv @@ -98,18 +58,16 @@ func NewBatchInsertRequestWithEntityNameObjects(entityName string, dictionaries return instance } -func (b_ BatchInsertRequest) InitWithEntityDictionaryHandler(entity IEntityDescription, handler func(obj foundation.MutableDictionary) bool) BatchInsertRequest { - rv := objc.Call[BatchInsertRequest](b_, objc.Sel("initWithEntity:dictionaryHandler:"), entity, handler) +func (bc _BatchInsertRequestClass) BatchInsertRequestWithEntityNameObjects(entityName string, dictionaries []map[string]objc.IObject) BatchInsertRequest { + rv := objc.Call[BatchInsertRequest](bc, objc.Sel("batchInsertRequestWithEntityName:objects:"), entityName, dictionaries) return rv } -// Creates a batch-insertion request for a managed entity, and specifies a closure that provides data dictionaries for insertion. [Full Topic] +// Creates a batch-insertion request for a named managed entity, and provides an array of data dictionaries for insertion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3618790-initwithentity?language=objc -func NewBatchInsertRequestWithEntityDictionaryHandler(entity IEntityDescription, handler func(obj foundation.MutableDictionary) bool) BatchInsertRequest { - instance := BatchInsertRequestClass.Alloc().InitWithEntityDictionaryHandler(entity, handler) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333230-batchinsertrequestwithentityname?language=objc +func BatchInsertRequest_BatchInsertRequestWithEntityNameObjects(entityName string, dictionaries []map[string]objc.IObject) BatchInsertRequest { + return BatchInsertRequestClass.BatchInsertRequestWithEntityNameObjects(entityName, dictionaries) } func (b_ BatchInsertRequest) InitWithEntityManagedObjectHandler(entity IEntityDescription, handler func(obj ManagedObject) bool) BatchInsertRequest { @@ -126,20 +84,6 @@ func NewBatchInsertRequestWithEntityManagedObjectHandler(entity IEntityDescripti return instance } -func (b_ BatchInsertRequest) InitWithEntityObjects(entity IEntityDescription, dictionaries []map[string]objc.IObject) BatchInsertRequest { - rv := objc.Call[BatchInsertRequest](b_, objc.Sel("initWithEntity:objects:"), entity, dictionaries) - return rv -} - -// Creates a batch-insertion request for a managed entity, and provides an array of data dictionaries for insertion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333235-initwithentity?language=objc -func NewBatchInsertRequestWithEntityObjects(entity IEntityDescription, dictionaries []map[string]objc.IObject) BatchInsertRequest { - instance := BatchInsertRequestClass.Alloc().InitWithEntityObjects(entity, dictionaries) - instance.Autorelease() - return instance -} - func (bc _BatchInsertRequestClass) Alloc() BatchInsertRequest { rv := objc.Call[BatchInsertRequest](bc, objc.Sel("alloc")) return rv @@ -168,34 +112,27 @@ func (b_ BatchInsertRequest) EntityName() string { return rv } -// A closure that provides a managed object for your app to insert data into. [Full Topic] +// The managed entity to insert data into. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3618792-managedobjecthandler?language=objc -func (b_ BatchInsertRequest) ManagedObjectHandler() func(obj ManagedObject) bool { - rv := objc.Call[func(obj ManagedObject) bool](b_, objc.Sel("managedObjectHandler")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333231-entity?language=objc +func (b_ BatchInsertRequest) Entity() EntityDescription { + rv := objc.Call[EntityDescription](b_, objc.Sel("entity")) return rv } -// A closure that provides a managed object for your app to insert data into. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3618792-managedobjecthandler?language=objc -func (b_ BatchInsertRequest) SetManagedObjectHandler(value func(obj ManagedObject) bool) { - objc.Call[objc.Void](b_, objc.Sel("setManagedObjectHandler:"), value) -} - -// The type of result that Core Data returns from this request. [Full Topic] +// An array of dictionaries that represents the objects to insert with the keys as attribute names and their assigned values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333239-resulttype?language=objc -func (b_ BatchInsertRequest) ResultType() BatchInsertRequestResultType { - rv := objc.Call[BatchInsertRequestResultType](b_, objc.Sel("resultType")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333238-objectstoinsert?language=objc +func (b_ BatchInsertRequest) ObjectsToInsert() []map[string]objc.Object { + rv := objc.Call[[]map[string]objc.Object](b_, objc.Sel("objectsToInsert")) return rv } -// The type of result that Core Data returns from this request. [Full Topic] +// An array of dictionaries that represents the objects to insert with the keys as attribute names and their assigned values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333239-resulttype?language=objc -func (b_ BatchInsertRequest) SetResultType(value BatchInsertRequestResultType) { - objc.Call[objc.Void](b_, objc.Sel("setResultType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333238-objectstoinsert?language=objc +func (b_ BatchInsertRequest) SetObjectsToInsert(value []map[string]objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("setObjectsToInsert:"), value) } // A closure that provides a dictionary for your app to insert data into. [Full Topic] @@ -213,25 +150,32 @@ func (b_ BatchInsertRequest) SetDictionaryHandler(value func(obj foundation.Muta objc.Call[objc.Void](b_, objc.Sel("setDictionaryHandler:"), value) } -// An array of dictionaries that represents the objects to insert with the keys as attribute names and their assigned values. [Full Topic] +// A closure that provides a managed object for your app to insert data into. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333238-objectstoinsert?language=objc -func (b_ BatchInsertRequest) ObjectsToInsert() []map[string]objc.Object { - rv := objc.Call[[]map[string]objc.Object](b_, objc.Sel("objectsToInsert")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3618792-managedobjecthandler?language=objc +func (b_ BatchInsertRequest) ManagedObjectHandler() func(obj ManagedObject) bool { + rv := objc.Call[func(obj ManagedObject) bool](b_, objc.Sel("managedObjectHandler")) return rv } -// An array of dictionaries that represents the objects to insert with the keys as attribute names and their assigned values. [Full Topic] +// A closure that provides a managed object for your app to insert data into. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333238-objectstoinsert?language=objc -func (b_ BatchInsertRequest) SetObjectsToInsert(value []map[string]objc.IObject) { - objc.Call[objc.Void](b_, objc.Sel("setObjectsToInsert:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3618792-managedobjecthandler?language=objc +func (b_ BatchInsertRequest) SetManagedObjectHandler(value func(obj ManagedObject) bool) { + objc.Call[objc.Void](b_, objc.Sel("setManagedObjectHandler:"), value) } -// The managed entity to insert data into. [Full Topic] +// The type of result that Core Data returns from this request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333231-entity?language=objc -func (b_ BatchInsertRequest) Entity() EntityDescription { - rv := objc.Call[EntityDescription](b_, objc.Sel("entity")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333239-resulttype?language=objc +func (b_ BatchInsertRequest) ResultType() BatchInsertRequestResultType { + rv := objc.Call[BatchInsertRequestResultType](b_, objc.Sel("resultType")) return rv } + +// The type of result that Core Data returns from this request. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3333239-resulttype?language=objc +func (b_ BatchInsertRequest) SetResultType(value BatchInsertRequestResultType) { + objc.Call[objc.Void](b_, objc.Sel("setResultType:"), value) +} diff --git a/macos/coredata/batch_update_request.gen.go b/macos/coredata/batch_update_request.gen.go index cf644550..2e8deb37 100644 --- a/macos/coredata/batch_update_request.gen.go +++ b/macos/coredata/batch_update_request.gen.go @@ -19,16 +19,16 @@ type _BatchUpdateRequestClass struct { // An interface definition for the [BatchUpdateRequest] class. type IBatchUpdateRequest interface { IPersistentStoreRequest - ResultType() BatchUpdateRequestResultType - SetResultType(value BatchUpdateRequestResultType) - Entity() EntityDescription EntityName() string IncludesSubentities() bool SetIncludesSubentities(value bool) - PropertiesToUpdate() foundation.Dictionary - SetPropertiesToUpdate(value foundation.Dictionary) + Entity() EntityDescription Predicate() foundation.Predicate SetPredicate(value foundation.IPredicate) + PropertiesToUpdate() foundation.Dictionary + SetPropertiesToUpdate(value foundation.Dictionary) + ResultType() BatchUpdateRequestResultType + SetResultType(value BatchUpdateRequestResultType) } // A request to Core Data to do a batch update of data in a persistent store without loading any data into memory. [Full Topic] @@ -44,18 +44,16 @@ func BatchUpdateRequestFrom(ptr unsafe.Pointer) BatchUpdateRequest { } } -func (b_ BatchUpdateRequest) InitWithEntity(entity IEntityDescription) BatchUpdateRequest { - rv := objc.Call[BatchUpdateRequest](b_, objc.Sel("initWithEntity:"), entity) +func (bc _BatchUpdateRequestClass) BatchUpdateRequestWithEntityName(entityName string) BatchUpdateRequest { + rv := objc.Call[BatchUpdateRequest](bc, objc.Sel("batchUpdateRequestWithEntityName:"), entityName) return rv } -// Creates a batch-update request for a managed entity. [Full Topic] +// Creates a batch-update request for a named managed entity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506374-initwithentity?language=objc -func NewBatchUpdateRequestWithEntity(entity IEntityDescription) BatchUpdateRequest { - instance := BatchUpdateRequestClass.Alloc().InitWithEntity(entity) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1526273-batchupdaterequestwithentityname?language=objc +func BatchUpdateRequest_BatchUpdateRequestWithEntityName(entityName string) BatchUpdateRequest { + return BatchUpdateRequestClass.BatchUpdateRequestWithEntityName(entityName) } func (b_ BatchUpdateRequest) InitWithEntityName(entityName string) BatchUpdateRequest { @@ -72,16 +70,18 @@ func NewBatchUpdateRequestWithEntityName(entityName string) BatchUpdateRequest { return instance } -func (bc _BatchUpdateRequestClass) BatchUpdateRequestWithEntityName(entityName string) BatchUpdateRequest { - rv := objc.Call[BatchUpdateRequest](bc, objc.Sel("batchUpdateRequestWithEntityName:"), entityName) +func (b_ BatchUpdateRequest) InitWithEntity(entity IEntityDescription) BatchUpdateRequest { + rv := objc.Call[BatchUpdateRequest](b_, objc.Sel("initWithEntity:"), entity) return rv } -// Creates a batch-update request for a named managed entity. [Full Topic] +// Creates a batch-update request for a managed entity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1526273-batchupdaterequestwithentityname?language=objc -func BatchUpdateRequest_BatchUpdateRequestWithEntityName(entityName string) BatchUpdateRequest { - return BatchUpdateRequestClass.BatchUpdateRequestWithEntityName(entityName) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506374-initwithentity?language=objc +func NewBatchUpdateRequestWithEntity(entity IEntityDescription) BatchUpdateRequest { + instance := BatchUpdateRequestClass.Alloc().InitWithEntity(entity) + instance.Autorelease() + return instance } func (bc _BatchUpdateRequestClass) Alloc() BatchUpdateRequest { @@ -104,29 +104,6 @@ func (b_ BatchUpdateRequest) Init() BatchUpdateRequest { return rv } -// The type of result that Core Data returns from the request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506350-resulttype?language=objc -func (b_ BatchUpdateRequest) ResultType() BatchUpdateRequestResultType { - rv := objc.Call[BatchUpdateRequestResultType](b_, objc.Sel("resultType")) - return rv -} - -// The type of result that Core Data returns from the request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506350-resulttype?language=objc -func (b_ BatchUpdateRequest) SetResultType(value BatchUpdateRequestResultType) { - objc.Call[objc.Void](b_, objc.Sel("setResultType:"), value) -} - -// The managed entity to update data for. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506664-entity?language=objc -func (b_ BatchUpdateRequest) Entity() EntityDescription { - rv := objc.Call[EntityDescription](b_, objc.Sel("entity")) - return rv -} - // The name of the managed entity to update data for. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506796-entityname?language=objc @@ -150,6 +127,29 @@ func (b_ BatchUpdateRequest) SetIncludesSubentities(value bool) { objc.Call[objc.Void](b_, objc.Sel("setIncludesSubentities:"), value) } +// The managed entity to update data for. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506664-entity?language=objc +func (b_ BatchUpdateRequest) Entity() EntityDescription { + rv := objc.Call[EntityDescription](b_, objc.Sel("entity")) + return rv +} + +// A predicate that identifies the objects to update. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506659-predicate?language=objc +func (b_ BatchUpdateRequest) Predicate() foundation.Predicate { + rv := objc.Call[foundation.Predicate](b_, objc.Sel("predicate")) + return rv +} + +// A predicate that identifies the objects to update. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506659-predicate?language=objc +func (b_ BatchUpdateRequest) SetPredicate(value foundation.IPredicate) { + objc.Call[objc.Void](b_, objc.Sel("setPredicate:"), value) +} + // A dictionary of property description pairs that describe the updates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506582-propertiestoupdate?language=objc @@ -165,17 +165,17 @@ func (b_ BatchUpdateRequest) SetPropertiesToUpdate(value foundation.Dictionary) objc.Call[objc.Void](b_, objc.Sel("setPropertiesToUpdate:"), value) } -// A predicate that identifies the objects to update. [Full Topic] +// The type of result that Core Data returns from the request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506659-predicate?language=objc -func (b_ BatchUpdateRequest) Predicate() foundation.Predicate { - rv := objc.Call[foundation.Predicate](b_, objc.Sel("predicate")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506350-resulttype?language=objc +func (b_ BatchUpdateRequest) ResultType() BatchUpdateRequestResultType { + rv := objc.Call[BatchUpdateRequestResultType](b_, objc.Sel("resultType")) return rv } -// A predicate that identifies the objects to update. [Full Topic] +// The type of result that Core Data returns from the request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506659-predicate?language=objc -func (b_ BatchUpdateRequest) SetPredicate(value foundation.IPredicate) { - objc.Call[objc.Void](b_, objc.Sel("setPredicate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdaterequest/1506350-resulttype?language=objc +func (b_ BatchUpdateRequest) SetResultType(value BatchUpdateRequestResultType) { + objc.Call[objc.Void](b_, objc.Sel("setResultType:"), value) } diff --git a/macos/coredata/batch_update_result.gen.go b/macos/coredata/batch_update_result.gen.go index ca49c2a6..1dc6767a 100644 --- a/macos/coredata/batch_update_result.gen.go +++ b/macos/coredata/batch_update_result.gen.go @@ -18,8 +18,8 @@ type _BatchUpdateResultClass struct { // An interface definition for the [BatchUpdateResult] class. type IBatchUpdateResult interface { IPersistentStoreResult - ResultType() BatchUpdateRequestResultType Result() objc.Object + ResultType() BatchUpdateRequestResultType } // The result returned when executing a batch update request. [Full Topic] @@ -55,14 +55,6 @@ func (b_ BatchUpdateResult) Init() BatchUpdateResult { return rv } -// The type of result that Core Data returns from the request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdateresult/1404900-resulttype?language=objc -func (b_ BatchUpdateResult) ResultType() BatchUpdateRequestResultType { - rv := objc.Call[BatchUpdateRequestResultType](b_, objc.Sel("resultType")) - return rv -} - // The result of a batch-update request, either the number of updated objects, the identifiers of the updated objects, or a status value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdateresult/1404946-result?language=objc @@ -70,3 +62,11 @@ func (b_ BatchUpdateResult) Result() objc.Object { rv := objc.Call[objc.Object](b_, objc.Sel("result")) return rv } + +// The type of result that Core Data returns from the request. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsbatchupdateresult/1404900-resulttype?language=objc +func (b_ BatchUpdateResult) ResultType() BatchUpdateRequestResultType { + rv := objc.Call[BatchUpdateRequestResultType](b_, objc.Sel("resultType")) + return rv +} diff --git a/macos/coredata/constraint_conflict.gen.go b/macos/coredata/constraint_conflict.gen.go index e4c044fe..77a44d88 100644 --- a/macos/coredata/constraint_conflict.gen.go +++ b/macos/coredata/constraint_conflict.gen.go @@ -19,12 +19,12 @@ type _ConstraintConflictClass struct { // An interface definition for the [ConstraintConflict] class. type IConstraintConflict interface { objc.IObject - ConflictingObjects() []ManagedObject - ConflictingSnapshots() []foundation.Dictionary - DatabaseSnapshot() map[string]objc.Object ConstraintValues() map[string]objc.Object - Constraint() []string DatabaseObject() ManagedObject + Constraint() []string + DatabaseSnapshot() map[string]objc.Object + ConflictingSnapshots() []foundation.Dictionary + ConflictingObjects() []ManagedObject } // An encapsulation of conflicts that occur during an attempt to save a managed object. [Full Topic] @@ -74,50 +74,50 @@ func (c_ ConstraintConflict) Init() ConstraintConflict { return rv } -// The managed objects that are in conflict. [Full Topic] +// The values that the conflicting objects had when the conflict was created. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506707-conflictingobjects?language=objc -func (c_ ConstraintConflict) ConflictingObjects() []ManagedObject { - rv := objc.Call[[]ManagedObject](c_, objc.Sel("conflictingObjects")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506399-constraintvalues?language=objc +func (c_ ConstraintConflict) ConstraintValues() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](c_, objc.Sel("constraintValues")) return rv } -// The original property values of objects in violation of the constraint. [Full Topic] +// The object whose database row is using constraint values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506774-conflictingsnapshots?language=objc -func (c_ ConstraintConflict) ConflictingSnapshots() []foundation.Dictionary { - rv := objc.Call[[]foundation.Dictionary](c_, objc.Sel("conflictingSnapshots")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506665-databaseobject?language=objc +func (c_ ConstraintConflict) DatabaseObject() ManagedObject { + rv := objc.Call[ManagedObject](c_, objc.Sel("databaseObject")) return rv } -// The values currently stored in the database. [Full Topic] +// The constraint that has been violated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506687-databasesnapshot?language=objc -func (c_ ConstraintConflict) DatabaseSnapshot() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](c_, objc.Sel("databaseSnapshot")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506902-constraint?language=objc +func (c_ ConstraintConflict) Constraint() []string { + rv := objc.Call[[]string](c_, objc.Sel("constraint")) return rv } -// The values that the conflicting objects had when the conflict was created. [Full Topic] +// The values currently stored in the database. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506399-constraintvalues?language=objc -func (c_ ConstraintConflict) ConstraintValues() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](c_, objc.Sel("constraintValues")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506687-databasesnapshot?language=objc +func (c_ ConstraintConflict) DatabaseSnapshot() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](c_, objc.Sel("databaseSnapshot")) return rv } -// The constraint that has been violated. [Full Topic] +// The original property values of objects in violation of the constraint. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506902-constraint?language=objc -func (c_ ConstraintConflict) Constraint() []string { - rv := objc.Call[[]string](c_, objc.Sel("constraint")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506774-conflictingsnapshots?language=objc +func (c_ ConstraintConflict) ConflictingSnapshots() []foundation.Dictionary { + rv := objc.Call[[]foundation.Dictionary](c_, objc.Sel("conflictingSnapshots")) return rv } -// The object whose database row is using constraint values. [Full Topic] +// The managed objects that are in conflict. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506665-databaseobject?language=objc -func (c_ ConstraintConflict) DatabaseObject() ManagedObject { - rv := objc.Call[ManagedObject](c_, objc.Sel("databaseObject")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsconstraintconflict/1506707-conflictingobjects?language=objc +func (c_ ConstraintConflict) ConflictingObjects() []ManagedObject { + rv := objc.Call[[]ManagedObject](c_, objc.Sel("conflictingObjects")) return rv } diff --git a/macos/coredata/core_data_core_spotlight_delegate.gen.go b/macos/coredata/core_data_core_spotlight_delegate.gen.go index 157a479f..1611d4bb 100644 --- a/macos/coredata/core_data_core_spotlight_delegate.gen.go +++ b/macos/coredata/core_data_core_spotlight_delegate.gen.go @@ -19,14 +19,13 @@ type _CoreDataCoreSpotlightDelegateClass struct { // An interface definition for the [CoreDataCoreSpotlightDelegate] class. type ICoreDataCoreSpotlightDelegate interface { objc.IObject - IndexName() string StartSpotlightIndexing() - StopSpotlightIndexing() SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex objc.IObject, acknowledgementHandler func()) AttributeSetForObject(object IManagedObject) objc.Object - DeleteSpotlightIndexWithCompletionHandler(completionHandler func(error foundation.Error)) - SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex objc.IObject, identifiers []string, acknowledgementHandler func()) DomainIdentifier() string + StopSpotlightIndexing() + DeleteSpotlightIndexWithCompletionHandler(completionHandler func(error foundation.Error)) + IndexName() string IsIndexingEnabled() bool } @@ -77,14 +76,6 @@ func (c_ CoreDataCoreSpotlightDelegate) Init() CoreDataCoreSpotlightDelegate { return rv } -// Returns the index’s name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nscoredatacorespotlightdelegate/2897199-indexname?language=objc -func (c_ CoreDataCoreSpotlightDelegate) IndexName() string { - rv := objc.Call[string](c_, objc.Sel("indexName")) - return rv -} - // Starts the indexing of the store’s entities. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nscoredatacorespotlightdelegate/3751985-startspotlightindexing?language=objc @@ -92,13 +83,6 @@ func (c_ CoreDataCoreSpotlightDelegate) StartSpotlightIndexing() { objc.Call[objc.Void](c_, objc.Sel("startSpotlightIndexing")) } -// Stops the indexing of the store’s entities. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nscoredatacorespotlightdelegate/3751986-stopspotlightindexing?language=objc -func (c_ CoreDataCoreSpotlightDelegate) StopSpotlightIndexing() { - objc.Call[objc.Void](c_, objc.Sel("stopSpotlightIndexing")) -} - // Reindexes all searchable items and clears any local state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nscoredatacorespotlightdelegate/2897201-searchableindex?language=objc @@ -114,6 +98,21 @@ func (c_ CoreDataCoreSpotlightDelegate) AttributeSetForObject(object IManagedObj return rv } +// Returns the domain identifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nscoredatacorespotlightdelegate/2897202-domainidentifier?language=objc +func (c_ CoreDataCoreSpotlightDelegate) DomainIdentifier() string { + rv := objc.Call[string](c_, objc.Sel("domainIdentifier")) + return rv +} + +// Stops the indexing of the store’s entities. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nscoredatacorespotlightdelegate/3751986-stopspotlightindexing?language=objc +func (c_ CoreDataCoreSpotlightDelegate) StopSpotlightIndexing() { + objc.Call[objc.Void](c_, objc.Sel("stopSpotlightIndexing")) +} + // Deletes all searchable items from the configured index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nscoredatacorespotlightdelegate/3751982-deletespotlightindexwithcompleti?language=objc @@ -121,18 +120,11 @@ func (c_ CoreDataCoreSpotlightDelegate) DeleteSpotlightIndexWithCompletionHandle objc.Call[objc.Void](c_, objc.Sel("deleteSpotlightIndexWithCompletionHandler:"), completionHandler) } -// Reindexes the searchable items for the specified identifiers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nscoredatacorespotlightdelegate/2897198-searchableindex?language=objc -func (c_ CoreDataCoreSpotlightDelegate) SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex objc.IObject, identifiers []string, acknowledgementHandler func()) { - objc.Call[objc.Void](c_, objc.Sel("searchableIndex:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:"), searchableIndex, identifiers, acknowledgementHandler) -} - -// Returns the domain identifier. [Full Topic] +// Returns the index’s name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nscoredatacorespotlightdelegate/2897202-domainidentifier?language=objc -func (c_ CoreDataCoreSpotlightDelegate) DomainIdentifier() string { - rv := objc.Call[string](c_, objc.Sel("domainIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nscoredatacorespotlightdelegate/2897199-indexname?language=objc +func (c_ CoreDataCoreSpotlightDelegate) IndexName() string { + rv := objc.Call[string](c_, objc.Sel("indexName")) return rv } diff --git a/macos/coredata/entity_description.gen.go b/macos/coredata/entity_description.gen.go index fbcbbcc6..50a5cdb8 100644 --- a/macos/coredata/entity_description.gen.go +++ b/macos/coredata/entity_description.gen.go @@ -21,35 +21,35 @@ type IEntityDescription interface { objc.IObject RelationshipsWithDestinationEntity(entity IEntityDescription) []RelationshipDescription IsKindOfEntity(entity IEntityDescription) bool - IsAbstract() bool - SetAbstract(value bool) - Subentities() []EntityDescription - SetSubentities(value []IEntityDescription) + ManagedObjectModel() ManagedObjectModel + PropertiesByName() map[string]PropertyDescription Name() string SetName(value string) - AttributesByName() map[string]AttributeDescription VersionHash() []byte - Indexes() []FetchIndexDescription - SetIndexes(value []IFetchIndexDescription) - PropertiesByName() map[string]PropertyDescription - RenamingIdentifier() string - SetRenamingIdentifier(value string) - ManagedObjectModel() ManagedObjectModel Properties() []PropertyDescription SetProperties(value []IPropertyDescription) - Superentity() EntityDescription UniquenessConstraints() [][]objc.Object SetUniquenessConstraints(value [][]objc.IObject) - SubentitiesByName() map[string]EntityDescription - CoreSpotlightDisplayNameExpression() foundation.Expression - SetCoreSpotlightDisplayNameExpression(value foundation.IExpression) - ManagedObjectClassName() string - SetManagedObjectClassName(value string) - RelationshipsByName() map[string]RelationshipDescription UserInfo() foundation.Dictionary SetUserInfo(value foundation.Dictionary) + ManagedObjectClassName() string + SetManagedObjectClassName(value string) + Subentities() []EntityDescription + SetSubentities(value []IEntityDescription) + CoreSpotlightDisplayNameExpression() foundation.Expression + SetCoreSpotlightDisplayNameExpression(value foundation.IExpression) VersionHashModifier() string SetVersionHashModifier(value string) + RenamingIdentifier() string + SetRenamingIdentifier(value string) + RelationshipsByName() map[string]RelationshipDescription + IsAbstract() bool + SetAbstract(value bool) + AttributesByName() map[string]AttributeDescription + Indexes() []FetchIndexDescription + SetIndexes(value []IFetchIndexDescription) + Superentity() EntityDescription + SubentitiesByName() map[string]EntityDescription } // A description of a Core Data entity. [Full Topic] @@ -108,14 +108,6 @@ func (e_ EntityDescription) RelationshipsWithDestinationEntity(entity IEntityDes return rv } -// Returns a Boolean value that indicates whether the receiver is a sub-entity of another given entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425113-iskindofentity?language=objc -func (e_ EntityDescription) IsKindOfEntity(entity IEntityDescription) bool { - rv := objc.Call[bool](e_, objc.Sel("isKindOfEntity:"), entity) - return rv -} - // Creates, configures, and returns an instance of the class for the entity with a given name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425093-insertnewobjectforentityforname?language=objc @@ -131,34 +123,28 @@ func EntityDescription_InsertNewObjectForEntityForNameInManagedObjectContext(ent return EntityDescriptionClass.InsertNewObjectForEntityForNameInManagedObjectContext(entityName, context) } -// A Boolean value that indicates whether the receiver represents an abstract entity. [Full Topic] +// Returns a Boolean value that indicates whether the receiver is a sub-entity of another given entity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425097-abstract?language=objc -func (e_ EntityDescription) IsAbstract() bool { - rv := objc.Call[bool](e_, objc.Sel("isAbstract")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425113-iskindofentity?language=objc +func (e_ EntityDescription) IsKindOfEntity(entity IEntityDescription) bool { + rv := objc.Call[bool](e_, objc.Sel("isKindOfEntity:"), entity) return rv } -// A Boolean value that indicates whether the receiver represents an abstract entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425097-abstract?language=objc -func (e_ EntityDescription) SetAbstract(value bool) { - objc.Call[objc.Void](e_, objc.Sel("setAbstract:"), value) -} - -// An array containing the sub-entities of the receiver. [Full Topic] +// The managed object model with which the receiver is associated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425104-subentities?language=objc -func (e_ EntityDescription) Subentities() []EntityDescription { - rv := objc.Call[[]EntityDescription](e_, objc.Sel("subentities")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425121-managedobjectmodel?language=objc +func (e_ EntityDescription) ManagedObjectModel() ManagedObjectModel { + rv := objc.Call[ManagedObjectModel](e_, objc.Sel("managedObjectModel")) return rv } -// An array containing the sub-entities of the receiver. [Full Topic] +// A dictionary containing the properties of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425104-subentities?language=objc -func (e_ EntityDescription) SetSubentities(value []IEntityDescription) { - objc.Call[objc.Void](e_, objc.Sel("setSubentities:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425137-propertiesbyname?language=objc +func (e_ EntityDescription) PropertiesByName() map[string]PropertyDescription { + rv := objc.Call[map[string]PropertyDescription](e_, objc.Sel("propertiesByName")) + return rv } // The entity name of the receiver. [Full Topic] @@ -176,14 +162,6 @@ func (e_ EntityDescription) SetName(value string) { objc.Call[objc.Void](e_, objc.Sel("setName:"), value) } -// The attributes of the receiver in a dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425099-attributesbyname?language=objc -func (e_ EntityDescription) AttributesByName() map[string]AttributeDescription { - rv := objc.Call[map[string]AttributeDescription](e_, objc.Sel("attributesByName")) - return rv -} - // The version hash for the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425133-versionhash?language=objc @@ -192,52 +170,6 @@ func (e_ EntityDescription) VersionHash() []byte { return rv } -// An array of fetch index descriptions for the entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/2887059-indexes?language=objc -func (e_ EntityDescription) Indexes() []FetchIndexDescription { - rv := objc.Call[[]FetchIndexDescription](e_, objc.Sel("indexes")) - return rv -} - -// An array of fetch index descriptions for the entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/2887059-indexes?language=objc -func (e_ EntityDescription) SetIndexes(value []IFetchIndexDescription) { - objc.Call[objc.Void](e_, objc.Sel("setIndexes:"), value) -} - -// A dictionary containing the properties of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425137-propertiesbyname?language=objc -func (e_ EntityDescription) PropertiesByName() map[string]PropertyDescription { - rv := objc.Call[map[string]PropertyDescription](e_, objc.Sel("propertiesByName")) - return rv -} - -// The renaming identifier for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425135-renamingidentifier?language=objc -func (e_ EntityDescription) RenamingIdentifier() string { - rv := objc.Call[string](e_, objc.Sel("renamingIdentifier")) - return rv -} - -// The renaming identifier for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425135-renamingidentifier?language=objc -func (e_ EntityDescription) SetRenamingIdentifier(value string) { - objc.Call[objc.Void](e_, objc.Sel("setRenamingIdentifier:"), value) -} - -// The managed object model with which the receiver is associated. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425121-managedobjectmodel?language=objc -func (e_ EntityDescription) ManagedObjectModel() ManagedObjectModel { - rv := objc.Call[ManagedObjectModel](e_, objc.Sel("managedObjectModel")) - return rv -} - // An array containing the properties of the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425125-properties?language=objc @@ -253,14 +185,6 @@ func (e_ EntityDescription) SetProperties(value []IPropertyDescription) { objc.Call[objc.Void](e_, objc.Sel("setProperties:"), value) } -// The super-entity of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425129-superentity?language=objc -func (e_ EntityDescription) Superentity() EntityDescription { - rv := objc.Call[EntityDescription](e_, objc.Sel("superentity")) - return rv -} - // An array of arrays that contains one or more attributes with a value that must be unique over the instances of that entity. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425095-uniquenessconstraints?language=objc @@ -276,27 +200,19 @@ func (e_ EntityDescription) SetUniquenessConstraints(value [][]objc.IObject) { objc.Call[objc.Void](e_, objc.Sel("setUniquenessConstraints:"), value) } -// A dictionary containing the receiver’s sub-entities. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425123-subentitiesbyname?language=objc -func (e_ EntityDescription) SubentitiesByName() map[string]EntityDescription { - rv := objc.Call[map[string]EntityDescription](e_, objc.Sel("subentitiesByName")) - return rv -} - -// The expression that computes the CoreSpotlight display name for instances of the entity. [Full Topic] +// The user info dictionary of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/2892364-corespotlightdisplaynameexpressi?language=objc -func (e_ EntityDescription) CoreSpotlightDisplayNameExpression() foundation.Expression { - rv := objc.Call[foundation.Expression](e_, objc.Sel("coreSpotlightDisplayNameExpression")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425117-userinfo?language=objc +func (e_ EntityDescription) UserInfo() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](e_, objc.Sel("userInfo")) return rv } -// The expression that computes the CoreSpotlight display name for instances of the entity. [Full Topic] +// The user info dictionary of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/2892364-corespotlightdisplaynameexpressi?language=objc -func (e_ EntityDescription) SetCoreSpotlightDisplayNameExpression(value foundation.IExpression) { - objc.Call[objc.Void](e_, objc.Sel("setCoreSpotlightDisplayNameExpression:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425117-userinfo?language=objc +func (e_ EntityDescription) SetUserInfo(value foundation.Dictionary) { + objc.Call[objc.Void](e_, objc.Sel("setUserInfo:"), value) } // The name of the class that represents the receiver’s entity. [Full Topic] @@ -314,27 +230,34 @@ func (e_ EntityDescription) SetManagedObjectClassName(value string) { objc.Call[objc.Void](e_, objc.Sel("setManagedObjectClassName:"), value) } -// The relationships of the receiver in a dictionary. [Full Topic] +// An array containing the sub-entities of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425106-relationshipsbyname?language=objc -func (e_ EntityDescription) RelationshipsByName() map[string]RelationshipDescription { - rv := objc.Call[map[string]RelationshipDescription](e_, objc.Sel("relationshipsByName")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425104-subentities?language=objc +func (e_ EntityDescription) Subentities() []EntityDescription { + rv := objc.Call[[]EntityDescription](e_, objc.Sel("subentities")) return rv } -// The user info dictionary of the receiver. [Full Topic] +// An array containing the sub-entities of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425117-userinfo?language=objc -func (e_ EntityDescription) UserInfo() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](e_, objc.Sel("userInfo")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425104-subentities?language=objc +func (e_ EntityDescription) SetSubentities(value []IEntityDescription) { + objc.Call[objc.Void](e_, objc.Sel("setSubentities:"), value) +} + +// The expression that computes the CoreSpotlight display name for instances of the entity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/2892364-corespotlightdisplaynameexpressi?language=objc +func (e_ EntityDescription) CoreSpotlightDisplayNameExpression() foundation.Expression { + rv := objc.Call[foundation.Expression](e_, objc.Sel("coreSpotlightDisplayNameExpression")) return rv } -// The user info dictionary of the receiver. [Full Topic] +// The expression that computes the CoreSpotlight display name for instances of the entity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425117-userinfo?language=objc -func (e_ EntityDescription) SetUserInfo(value foundation.Dictionary) { - objc.Call[objc.Void](e_, objc.Sel("setUserInfo:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/2892364-corespotlightdisplaynameexpressi?language=objc +func (e_ EntityDescription) SetCoreSpotlightDisplayNameExpression(value foundation.IExpression) { + objc.Call[objc.Void](e_, objc.Sel("setCoreSpotlightDisplayNameExpression:"), value) } // The version hash modifier for the receiver. [Full Topic] @@ -351,3 +274,80 @@ func (e_ EntityDescription) VersionHashModifier() string { func (e_ EntityDescription) SetVersionHashModifier(value string) { objc.Call[objc.Void](e_, objc.Sel("setVersionHashModifier:"), value) } + +// The renaming identifier for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425135-renamingidentifier?language=objc +func (e_ EntityDescription) RenamingIdentifier() string { + rv := objc.Call[string](e_, objc.Sel("renamingIdentifier")) + return rv +} + +// The renaming identifier for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425135-renamingidentifier?language=objc +func (e_ EntityDescription) SetRenamingIdentifier(value string) { + objc.Call[objc.Void](e_, objc.Sel("setRenamingIdentifier:"), value) +} + +// The relationships of the receiver in a dictionary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425106-relationshipsbyname?language=objc +func (e_ EntityDescription) RelationshipsByName() map[string]RelationshipDescription { + rv := objc.Call[map[string]RelationshipDescription](e_, objc.Sel("relationshipsByName")) + return rv +} + +// A Boolean value that indicates whether the receiver represents an abstract entity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425097-abstract?language=objc +func (e_ EntityDescription) IsAbstract() bool { + rv := objc.Call[bool](e_, objc.Sel("isAbstract")) + return rv +} + +// A Boolean value that indicates whether the receiver represents an abstract entity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425097-abstract?language=objc +func (e_ EntityDescription) SetAbstract(value bool) { + objc.Call[objc.Void](e_, objc.Sel("setAbstract:"), value) +} + +// The attributes of the receiver in a dictionary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425099-attributesbyname?language=objc +func (e_ EntityDescription) AttributesByName() map[string]AttributeDescription { + rv := objc.Call[map[string]AttributeDescription](e_, objc.Sel("attributesByName")) + return rv +} + +// An array of fetch index descriptions for the entity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/2887059-indexes?language=objc +func (e_ EntityDescription) Indexes() []FetchIndexDescription { + rv := objc.Call[[]FetchIndexDescription](e_, objc.Sel("indexes")) + return rv +} + +// An array of fetch index descriptions for the entity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/2887059-indexes?language=objc +func (e_ EntityDescription) SetIndexes(value []IFetchIndexDescription) { + objc.Call[objc.Void](e_, objc.Sel("setIndexes:"), value) +} + +// The super-entity of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425129-superentity?language=objc +func (e_ EntityDescription) Superentity() EntityDescription { + rv := objc.Call[EntityDescription](e_, objc.Sel("superentity")) + return rv +} + +// A dictionary containing the receiver’s sub-entities. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425123-subentitiesbyname?language=objc +func (e_ EntityDescription) SubentitiesByName() map[string]EntityDescription { + rv := objc.Call[map[string]EntityDescription](e_, objc.Sel("subentitiesByName")) + return rv +} diff --git a/macos/coredata/entity_mapping.gen.go b/macos/coredata/entity_mapping.gen.go index f6a350d7..e65ba5a7 100644 --- a/macos/coredata/entity_mapping.gen.go +++ b/macos/coredata/entity_mapping.gen.go @@ -19,28 +19,28 @@ type _EntityMappingClass struct { // An interface definition for the [EntityMapping] class. type IEntityMapping interface { objc.IObject - MappingType() EntityMappingType - SetMappingType(value EntityMappingType) - SourceExpression() foundation.Expression - SetSourceExpression(value foundation.IExpression) - UserInfo() foundation.Dictionary - SetUserInfo(value foundation.Dictionary) - DestinationEntityVersionHash() []byte - SetDestinationEntityVersionHash(value []byte) - Name() string - SetName(value string) - EntityMigrationPolicyClassName() string - SetEntityMigrationPolicyClassName(value string) - RelationshipMappings() []PropertyMapping - SetRelationshipMappings(value []IPropertyMapping) - SourceEntityVersionHash() []byte - SetSourceEntityVersionHash(value []byte) - SourceEntityName() string - SetSourceEntityName(value string) AttributeMappings() []PropertyMapping SetAttributeMappings(value []IPropertyMapping) + EntityMigrationPolicyClassName() string + SetEntityMigrationPolicyClassName(value string) + Name() string + SetName(value string) DestinationEntityName() string SetDestinationEntityName(value string) + UserInfo() foundation.Dictionary + SetUserInfo(value foundation.Dictionary) + SourceEntityName() string + SetSourceEntityName(value string) + SourceEntityVersionHash() []byte + SetSourceEntityVersionHash(value []byte) + MappingType() EntityMappingType + SetMappingType(value EntityMappingType) + RelationshipMappings() []PropertyMapping + SetRelationshipMappings(value []IPropertyMapping) + DestinationEntityVersionHash() []byte + SetDestinationEntityVersionHash(value []byte) + SourceExpression() foundation.Expression + SetSourceExpression(value foundation.IExpression) } // A mapping instance that specifies how to map an entity from a source to a destination managed object model. [Full Topic] @@ -76,64 +76,34 @@ func (e_ EntityMapping) Init() EntityMapping { return rv } -// The mapping type for the entity mapping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443194-mappingtype?language=objc -func (e_ EntityMapping) MappingType() EntityMappingType { - rv := objc.Call[EntityMappingType](e_, objc.Sel("mappingType")) - return rv -} - -// The mapping type for the entity mapping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443194-mappingtype?language=objc -func (e_ EntityMapping) SetMappingType(value EntityMappingType) { - objc.Call[objc.Void](e_, objc.Sel("setMappingType:"), value) -} - -// The source expression for the entity mapping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443180-sourceexpression?language=objc -func (e_ EntityMapping) SourceExpression() foundation.Expression { - rv := objc.Call[foundation.Expression](e_, objc.Sel("sourceExpression")) - return rv -} - -// The source expression for the entity mapping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443180-sourceexpression?language=objc -func (e_ EntityMapping) SetSourceExpression(value foundation.IExpression) { - objc.Call[objc.Void](e_, objc.Sel("setSourceExpression:"), value) -} - -// The user info dictionary for the entity mapping. [Full Topic] +// The array of attribute mappings for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443184-userinfo?language=objc -func (e_ EntityMapping) UserInfo() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](e_, objc.Sel("userInfo")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443193-attributemappings?language=objc +func (e_ EntityMapping) AttributeMappings() []PropertyMapping { + rv := objc.Call[[]PropertyMapping](e_, objc.Sel("attributeMappings")) return rv } -// The user info dictionary for the entity mapping. [Full Topic] +// The array of attribute mappings for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443184-userinfo?language=objc -func (e_ EntityMapping) SetUserInfo(value foundation.Dictionary) { - objc.Call[objc.Void](e_, objc.Sel("setUserInfo:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443193-attributemappings?language=objc +func (e_ EntityMapping) SetAttributeMappings(value []IPropertyMapping) { + objc.Call[objc.Void](e_, objc.Sel("setAttributeMappings:"), value) } -// The version hash for the destination entity for the entity mapping. [Full Topic] +// The class name of the migration policy for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443169-destinationentityversionhash?language=objc -func (e_ EntityMapping) DestinationEntityVersionHash() []byte { - rv := objc.Call[[]byte](e_, objc.Sel("destinationEntityVersionHash")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443171-entitymigrationpolicyclassname?language=objc +func (e_ EntityMapping) EntityMigrationPolicyClassName() string { + rv := objc.Call[string](e_, objc.Sel("entityMigrationPolicyClassName")) return rv } -// The version hash for the destination entity for the entity mapping. [Full Topic] +// The class name of the migration policy for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443169-destinationentityversionhash?language=objc -func (e_ EntityMapping) SetDestinationEntityVersionHash(value []byte) { - objc.Call[objc.Void](e_, objc.Sel("setDestinationEntityVersionHash:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443171-entitymigrationpolicyclassname?language=objc +func (e_ EntityMapping) SetEntityMigrationPolicyClassName(value string) { + objc.Call[objc.Void](e_, objc.Sel("setEntityMigrationPolicyClassName:"), value) } // The name of the entity mapping. [Full Topic] @@ -151,34 +121,49 @@ func (e_ EntityMapping) SetName(value string) { objc.Call[objc.Void](e_, objc.Sel("setName:"), value) } -// The class name of the migration policy for the entity mapping. [Full Topic] +// The destination entity name for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443171-entitymigrationpolicyclassname?language=objc -func (e_ EntityMapping) EntityMigrationPolicyClassName() string { - rv := objc.Call[string](e_, objc.Sel("entityMigrationPolicyClassName")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443176-destinationentityname?language=objc +func (e_ EntityMapping) DestinationEntityName() string { + rv := objc.Call[string](e_, objc.Sel("destinationEntityName")) return rv } -// The class name of the migration policy for the entity mapping. [Full Topic] +// The destination entity name for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443171-entitymigrationpolicyclassname?language=objc -func (e_ EntityMapping) SetEntityMigrationPolicyClassName(value string) { - objc.Call[objc.Void](e_, objc.Sel("setEntityMigrationPolicyClassName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443176-destinationentityname?language=objc +func (e_ EntityMapping) SetDestinationEntityName(value string) { + objc.Call[objc.Void](e_, objc.Sel("setDestinationEntityName:"), value) } -// The array of relationship mappings for the entity mapping. [Full Topic] +// The user info dictionary for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443163-relationshipmappings?language=objc -func (e_ EntityMapping) RelationshipMappings() []PropertyMapping { - rv := objc.Call[[]PropertyMapping](e_, objc.Sel("relationshipMappings")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443184-userinfo?language=objc +func (e_ EntityMapping) UserInfo() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](e_, objc.Sel("userInfo")) return rv } -// The array of relationship mappings for the entity mapping. [Full Topic] +// The user info dictionary for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443163-relationshipmappings?language=objc -func (e_ EntityMapping) SetRelationshipMappings(value []IPropertyMapping) { - objc.Call[objc.Void](e_, objc.Sel("setRelationshipMappings:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443184-userinfo?language=objc +func (e_ EntityMapping) SetUserInfo(value foundation.Dictionary) { + objc.Call[objc.Void](e_, objc.Sel("setUserInfo:"), value) +} + +// The source entity name for the entity mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443187-sourceentityname?language=objc +func (e_ EntityMapping) SourceEntityName() string { + rv := objc.Call[string](e_, objc.Sel("sourceEntityName")) + return rv +} + +// The source entity name for the entity mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443187-sourceentityname?language=objc +func (e_ EntityMapping) SetSourceEntityName(value string) { + objc.Call[objc.Void](e_, objc.Sel("setSourceEntityName:"), value) } // The version hash of the source entity for the entity mapping. [Full Topic] @@ -196,47 +181,62 @@ func (e_ EntityMapping) SetSourceEntityVersionHash(value []byte) { objc.Call[objc.Void](e_, objc.Sel("setSourceEntityVersionHash:"), value) } -// The source entity name for the entity mapping. [Full Topic] +// The mapping type for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443187-sourceentityname?language=objc -func (e_ EntityMapping) SourceEntityName() string { - rv := objc.Call[string](e_, objc.Sel("sourceEntityName")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443194-mappingtype?language=objc +func (e_ EntityMapping) MappingType() EntityMappingType { + rv := objc.Call[EntityMappingType](e_, objc.Sel("mappingType")) return rv } -// The source entity name for the entity mapping. [Full Topic] +// The mapping type for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443187-sourceentityname?language=objc -func (e_ EntityMapping) SetSourceEntityName(value string) { - objc.Call[objc.Void](e_, objc.Sel("setSourceEntityName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443194-mappingtype?language=objc +func (e_ EntityMapping) SetMappingType(value EntityMappingType) { + objc.Call[objc.Void](e_, objc.Sel("setMappingType:"), value) } -// The array of attribute mappings for the entity mapping. [Full Topic] +// The array of relationship mappings for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443193-attributemappings?language=objc -func (e_ EntityMapping) AttributeMappings() []PropertyMapping { - rv := objc.Call[[]PropertyMapping](e_, objc.Sel("attributeMappings")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443163-relationshipmappings?language=objc +func (e_ EntityMapping) RelationshipMappings() []PropertyMapping { + rv := objc.Call[[]PropertyMapping](e_, objc.Sel("relationshipMappings")) return rv } -// The array of attribute mappings for the entity mapping. [Full Topic] +// The array of relationship mappings for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443193-attributemappings?language=objc -func (e_ EntityMapping) SetAttributeMappings(value []IPropertyMapping) { - objc.Call[objc.Void](e_, objc.Sel("setAttributeMappings:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443163-relationshipmappings?language=objc +func (e_ EntityMapping) SetRelationshipMappings(value []IPropertyMapping) { + objc.Call[objc.Void](e_, objc.Sel("setRelationshipMappings:"), value) } -// The destination entity name for the entity mapping. [Full Topic] +// The version hash for the destination entity for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443176-destinationentityname?language=objc -func (e_ EntityMapping) DestinationEntityName() string { - rv := objc.Call[string](e_, objc.Sel("destinationEntityName")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443169-destinationentityversionhash?language=objc +func (e_ EntityMapping) DestinationEntityVersionHash() []byte { + rv := objc.Call[[]byte](e_, objc.Sel("destinationEntityVersionHash")) return rv } -// The destination entity name for the entity mapping. [Full Topic] +// The version hash for the destination entity for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443176-destinationentityname?language=objc -func (e_ EntityMapping) SetDestinationEntityName(value string) { - objc.Call[objc.Void](e_, objc.Sel("setDestinationEntityName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443169-destinationentityversionhash?language=objc +func (e_ EntityMapping) SetDestinationEntityVersionHash(value []byte) { + objc.Call[objc.Void](e_, objc.Sel("setDestinationEntityVersionHash:"), value) +} + +// The source expression for the entity mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443180-sourceexpression?language=objc +func (e_ EntityMapping) SourceExpression() foundation.Expression { + rv := objc.Call[foundation.Expression](e_, objc.Sel("sourceExpression")) + return rv +} + +// The source expression for the entity mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443180-sourceexpression?language=objc +func (e_ EntityMapping) SetSourceExpression(value foundation.IExpression) { + objc.Call[objc.Void](e_, objc.Sel("setSourceExpression:"), value) } diff --git a/macos/coredata/entity_migration_policy.gen.go b/macos/coredata/entity_migration_policy.gen.go index 7a800d09..7316c0f8 100644 --- a/macos/coredata/entity_migration_policy.gen.go +++ b/macos/coredata/entity_migration_policy.gen.go @@ -18,13 +18,13 @@ type _EntityMigrationPolicyClass struct { // An interface definition for the [EntityMigrationPolicy] class. type IEntityMigrationPolicy interface { objc.IObject - EndInstanceCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool - BeginEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool + PerformCustomValidationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool CreateDestinationInstancesForSourceInstanceEntityMappingManagerError(sInstance IManagedObject, mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool - EndRelationshipCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool - EndEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool CreateRelationshipsForDestinationInstanceEntityMappingManagerError(dInstance IManagedObject, mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool - PerformCustomValidationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool + BeginEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool + EndEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool + EndRelationshipCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool + EndInstanceCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool } // A policy instance that customizes the migration process for an entity mapping. [Full Topic] @@ -60,19 +60,11 @@ func (e_ EntityMigrationPolicy) Init() EntityMigrationPolicy { return rv } -// Indicates the end of the instance creation stage for the specified entity mapping, and the precursor to the next migration stage. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423805-endinstancecreationforentitymapp?language=objc -func (e_ EntityMigrationPolicy) EndInstanceCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool { - rv := objc.Call[bool](e_, objc.Sel("endInstanceCreationForEntityMapping:manager:error:"), mapping, manager, error) - return rv -} - -// Sets up state information before the start of a given entity mapping. [Full Topic] +// Provides the option to perform custom validation on migrated objects during the validation stage of the entity migration policy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423785-beginentitymapping?language=objc -func (e_ EntityMigrationPolicy) BeginEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool { - rv := objc.Call[bool](e_, objc.Sel("beginEntityMapping:manager:error:"), mapping, manager, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423791-performcustomvalidationforentity?language=objc +func (e_ EntityMigrationPolicy) PerformCustomValidationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool { + rv := objc.Call[bool](e_, objc.Sel("performCustomValidationForEntityMapping:manager:error:"), mapping, manager, error) return rv } @@ -84,11 +76,19 @@ func (e_ EntityMigrationPolicy) CreateDestinationInstancesForSourceInstanceEntit return rv } -// Indicates the end of the relationship creation stage for the specified entity mapping. [Full Topic] +// Constructs the relationships between the newly-created destination instances. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423793-endrelationshipcreationforentity?language=objc -func (e_ EntityMigrationPolicy) EndRelationshipCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool { - rv := objc.Call[bool](e_, objc.Sel("endRelationshipCreationForEntityMapping:manager:error:"), mapping, manager, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423783-createrelationshipsfordestinatio?language=objc +func (e_ EntityMigrationPolicy) CreateRelationshipsForDestinationInstanceEntityMappingManagerError(dInstance IManagedObject, mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool { + rv := objc.Call[bool](e_, objc.Sel("createRelationshipsForDestinationInstance:entityMapping:manager:error:"), dInstance, mapping, manager, error) + return rv +} + +// Sets up state information before the start of a given entity mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423785-beginentitymapping?language=objc +func (e_ EntityMigrationPolicy) BeginEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool { + rv := objc.Call[bool](e_, objc.Sel("beginEntityMapping:manager:error:"), mapping, manager, error) return rv } @@ -100,18 +100,18 @@ func (e_ EntityMigrationPolicy) EndEntityMappingManagerError(mapping IEntityMapp return rv } -// Constructs the relationships between the newly-created destination instances. [Full Topic] +// Indicates the end of the relationship creation stage for the specified entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423783-createrelationshipsfordestinatio?language=objc -func (e_ EntityMigrationPolicy) CreateRelationshipsForDestinationInstanceEntityMappingManagerError(dInstance IManagedObject, mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool { - rv := objc.Call[bool](e_, objc.Sel("createRelationshipsForDestinationInstance:entityMapping:manager:error:"), dInstance, mapping, manager, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423793-endrelationshipcreationforentity?language=objc +func (e_ EntityMigrationPolicy) EndRelationshipCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool { + rv := objc.Call[bool](e_, objc.Sel("endRelationshipCreationForEntityMapping:manager:error:"), mapping, manager, error) return rv } -// Provides the option to perform custom validation on migrated objects during the validation stage of the entity migration policy. [Full Topic] +// Indicates the end of the instance creation stage for the specified entity mapping, and the precursor to the next migration stage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423791-performcustomvalidationforentity?language=objc -func (e_ EntityMigrationPolicy) PerformCustomValidationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool { - rv := objc.Call[bool](e_, objc.Sel("performCustomValidationForEntityMapping:manager:error:"), mapping, manager, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423805-endinstancecreationforentitymapp?language=objc +func (e_ EntityMigrationPolicy) EndInstanceCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error unsafe.Pointer) bool { + rv := objc.Call[bool](e_, objc.Sel("endInstanceCreationForEntityMapping:manager:error:"), mapping, manager, error) return rv } diff --git a/macos/coredata/fetch_index_description.gen.go b/macos/coredata/fetch_index_description.gen.go index 1f7b3b80..74a55580 100644 --- a/macos/coredata/fetch_index_description.gen.go +++ b/macos/coredata/fetch_index_description.gen.go @@ -19,11 +19,11 @@ type _FetchIndexDescriptionClass struct { // An interface definition for the [FetchIndexDescription] class. type IFetchIndexDescription interface { objc.IObject - Elements() []FetchIndexElementDescription - SetElements(value []IFetchIndexElementDescription) Entity() EntityDescription Name() string SetName(value string) + Elements() []FetchIndexElementDescription + SetElements(value []IFetchIndexElementDescription) PartialIndexPredicate() foundation.Predicate SetPartialIndexPredicate(value foundation.IPredicate) } @@ -75,21 +75,6 @@ func (f_ FetchIndexDescription) Init() FetchIndexDescription { return rv } -// An array of fetch index element descriptions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexdescription/2887054-elements?language=objc -func (f_ FetchIndexDescription) Elements() []FetchIndexElementDescription { - rv := objc.Call[[]FetchIndexElementDescription](f_, objc.Sel("elements")) - return rv -} - -// An array of fetch index element descriptions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexdescription/2887054-elements?language=objc -func (f_ FetchIndexDescription) SetElements(value []IFetchIndexElementDescription) { - objc.Call[objc.Void](f_, objc.Sel("setElements:"), value) -} - // The entity description for the fetch index description. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexdescription/2887055-entity?language=objc @@ -113,6 +98,21 @@ func (f_ FetchIndexDescription) SetName(value string) { objc.Call[objc.Void](f_, objc.Sel("setName:"), value) } +// An array of fetch index element descriptions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexdescription/2887054-elements?language=objc +func (f_ FetchIndexDescription) Elements() []FetchIndexElementDescription { + rv := objc.Call[[]FetchIndexElementDescription](f_, objc.Sel("elements")) + return rv +} + +// An array of fetch index element descriptions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexdescription/2887054-elements?language=objc +func (f_ FetchIndexDescription) SetElements(value []IFetchIndexElementDescription) { + objc.Call[objc.Void](f_, objc.Sel("setElements:"), value) +} + // A predicate that selects rows for indexing, if the index is a partial index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexdescription/2887058-partialindexpredicate?language=objc diff --git a/macos/coredata/fetch_index_element_description.gen.go b/macos/coredata/fetch_index_element_description.gen.go index aa3e7130..ae7eb0e2 100644 --- a/macos/coredata/fetch_index_element_description.gen.go +++ b/macos/coredata/fetch_index_element_description.gen.go @@ -20,11 +20,11 @@ type IFetchIndexElementDescription interface { objc.IObject CollationType() FetchIndexElementType SetCollationType(value FetchIndexElementType) - IsAscending() bool - SetAscending(value bool) + IndexDescription() FetchIndexDescription PropertyName() string Property() PropertyDescription - IndexDescription() FetchIndexDescription + IsAscending() bool + SetAscending(value bool) } // Description of an Index Element [Full Topic] @@ -89,21 +89,14 @@ func (f_ FetchIndexElementDescription) SetCollationType(value FetchIndexElementT objc.Call[objc.Void](f_, objc.Sel("setCollationType:"), value) } -// A Boolean value that controls whether an index that supports direction is an ascending or descending index. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexelementdescription/2887051-ascending?language=objc -func (f_ FetchIndexElementDescription) IsAscending() bool { - rv := objc.Call[bool](f_, objc.Sel("isAscending")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexelementdescription/2887047-indexdescription?language=objc +func (f_ FetchIndexElementDescription) IndexDescription() FetchIndexDescription { + rv := objc.Call[FetchIndexDescription](f_, objc.Sel("indexDescription")) return rv } -// A Boolean value that controls whether an index that supports direction is an ascending or descending index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexelementdescription/2887051-ascending?language=objc -func (f_ FetchIndexElementDescription) SetAscending(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setAscending:"), value) -} - // The specified name in the property description. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexelementdescription/2887045-propertyname?language=objc @@ -120,10 +113,17 @@ func (f_ FetchIndexElementDescription) Property() PropertyDescription { return rv } -// [Full Topic] +// A Boolean value that controls whether an index that supports direction is an ascending or descending index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexelementdescription/2887047-indexdescription?language=objc -func (f_ FetchIndexElementDescription) IndexDescription() FetchIndexDescription { - rv := objc.Call[FetchIndexDescription](f_, objc.Sel("indexDescription")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexelementdescription/2887051-ascending?language=objc +func (f_ FetchIndexElementDescription) IsAscending() bool { + rv := objc.Call[bool](f_, objc.Sel("isAscending")) return rv } + +// A Boolean value that controls whether an index that supports direction is an ascending or descending index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexelementdescription/2887051-ascending?language=objc +func (f_ FetchIndexElementDescription) SetAscending(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setAscending:"), value) +} diff --git a/macos/coredata/fetch_request.gen.go b/macos/coredata/fetch_request.gen.go index 5aa91496..44bdf29c 100644 --- a/macos/coredata/fetch_request.gen.go +++ b/macos/coredata/fetch_request.gen.go @@ -20,41 +20,41 @@ type _FetchRequestClass struct { type IFetchRequest interface { IPersistentStoreRequest Execute(error unsafe.Pointer) []objc.Object - Entity() EntityDescription - SetEntity(value IEntityDescription) - IncludesPropertyValues() bool - SetIncludesPropertyValues(value bool) + EntityName() string + ShouldRefreshRefetchedObjects() bool + SetShouldRefreshRefetchedObjects(value bool) + IncludesSubentities() bool + SetIncludesSubentities(value bool) IncludesPendingChanges() bool SetIncludesPendingChanges(value bool) PropertiesToGroupBy() []objc.Object SetPropertiesToGroupBy(value []objc.IObject) + Entity() EntityDescription + SetEntity(value IEntityDescription) + FetchOffset() uint + SetFetchOffset(value uint) SortDescriptors() []foundation.SortDescriptor SetSortDescriptors(value []foundation.ISortDescriptor) - ShouldRefreshRefetchedObjects() bool - SetShouldRefreshRefetchedObjects(value bool) - FetchLimit() uint - SetFetchLimit(value uint) - IncludesSubentities() bool - SetIncludesSubentities(value bool) - ReturnsObjectsAsFaults() bool - SetReturnsObjectsAsFaults(value bool) FetchBatchSize() uint SetFetchBatchSize(value uint) - ResultType() FetchRequestResultType - SetResultType(value FetchRequestResultType) - HavingPredicate() foundation.Predicate - SetHavingPredicate(value foundation.IPredicate) - RelationshipKeyPathsForPrefetching() []string - SetRelationshipKeyPathsForPrefetching(value []string) - Predicate() foundation.Predicate - SetPredicate(value foundation.IPredicate) ReturnsDistinctResults() bool SetReturnsDistinctResults(value bool) - EntityName() string - FetchOffset() uint - SetFetchOffset(value uint) + Predicate() foundation.Predicate + SetPredicate(value foundation.IPredicate) PropertiesToFetch() []objc.Object SetPropertiesToFetch(value []objc.IObject) + IncludesPropertyValues() bool + SetIncludesPropertyValues(value bool) + ReturnsObjectsAsFaults() bool + SetReturnsObjectsAsFaults(value bool) + FetchLimit() uint + SetFetchLimit(value uint) + HavingPredicate() foundation.Predicate + SetHavingPredicate(value foundation.IPredicate) + ResultType() FetchRequestResultType + SetResultType(value FetchRequestResultType) + RelationshipKeyPathsForPrefetching() []string + SetRelationshipKeyPathsForPrefetching(value []string) } // A description of search criteria used to retrieve data from a persistent store. [Full Topic] @@ -70,18 +70,16 @@ func FetchRequestFrom(ptr unsafe.Pointer) FetchRequest { } } -func (f_ FetchRequest) InitWithEntityName(entityName string) FetchRequest { - rv := objc.Call[FetchRequest](f_, objc.Sel("initWithEntityName:"), entityName) +func (fc _FetchRequestClass) FetchRequestWithEntityName(entityName string) FetchRequest { + rv := objc.Call[FetchRequest](fc, objc.Sel("fetchRequestWithEntityName:"), entityName) return rv } -// Initializes a fetch request configured with a given entity name. [Full Topic] +// Returns a fetch request configured with a given entity name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506802-initwithentityname?language=objc -func NewFetchRequestWithEntityName(entityName string) FetchRequest { - instance := FetchRequestClass.Alloc().InitWithEntityName(entityName) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1563437-fetchrequestwithentityname?language=objc +func FetchRequest_FetchRequestWithEntityName(entityName string) FetchRequest { + return FetchRequestClass.FetchRequestWithEntityName(entityName) } func (f_ FetchRequest) Init() FetchRequest { @@ -89,16 +87,18 @@ func (f_ FetchRequest) Init() FetchRequest { return rv } -func (fc _FetchRequestClass) FetchRequestWithEntityName(entityName string) FetchRequest { - rv := objc.Call[FetchRequest](fc, objc.Sel("fetchRequestWithEntityName:"), entityName) +func (f_ FetchRequest) InitWithEntityName(entityName string) FetchRequest { + rv := objc.Call[FetchRequest](f_, objc.Sel("initWithEntityName:"), entityName) return rv } -// Returns a fetch request configured with a given entity name. [Full Topic] +// Initializes a fetch request configured with a given entity name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1563437-fetchrequestwithentityname?language=objc -func FetchRequest_FetchRequestWithEntityName(entityName string) FetchRequest { - return FetchRequestClass.FetchRequestWithEntityName(entityName) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506802-initwithentityname?language=objc +func NewFetchRequestWithEntityName(entityName string) FetchRequest { + instance := FetchRequestClass.Alloc().InitWithEntityName(entityName) + instance.Autorelease() + return instance } func (fc _FetchRequestClass) Alloc() FetchRequest { @@ -124,34 +124,42 @@ func (f_ FetchRequest) Execute(error unsafe.Pointer) []objc.Object { return rv } -// The entity specified for the fetch request. [Full Topic] +// The name of the entity the request is configured to fetch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506979-entity?language=objc -func (f_ FetchRequest) Entity() EntityDescription { - rv := objc.Call[EntityDescription](f_, objc.Sel("entity")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506233-entityname?language=objc +func (f_ FetchRequest) EntityName() string { + rv := objc.Call[string](f_, objc.Sel("entityName")) return rv } -// The entity specified for the fetch request. [Full Topic] +// A Boolean value that indicates whether the property values of fetched objects will be updated with the current values in the persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506979-entity?language=objc -func (f_ FetchRequest) SetEntity(value IEntityDescription) { - objc.Call[objc.Void](f_, objc.Sel("setEntity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506440-shouldrefreshrefetchedobjects?language=objc +func (f_ FetchRequest) ShouldRefreshRefetchedObjects() bool { + rv := objc.Call[bool](f_, objc.Sel("shouldRefreshRefetchedObjects")) + return rv } -// A Boolean value that indicates whether, when the fetch is executed, property data is obtained from the persistent store. [Full Topic] +// A Boolean value that indicates whether the property values of fetched objects will be updated with the current values in the persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506387-includespropertyvalues?language=objc -func (f_ FetchRequest) IncludesPropertyValues() bool { - rv := objc.Call[bool](f_, objc.Sel("includesPropertyValues")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506440-shouldrefreshrefetchedobjects?language=objc +func (f_ FetchRequest) SetShouldRefreshRefetchedObjects(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setShouldRefreshRefetchedObjects:"), value) +} + +// A Boolean value that indicates whether the fetch request includes subentities in the results. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506366-includessubentities?language=objc +func (f_ FetchRequest) IncludesSubentities() bool { + rv := objc.Call[bool](f_, objc.Sel("includesSubentities")) return rv } -// A Boolean value that indicates whether, when the fetch is executed, property data is obtained from the persistent store. [Full Topic] +// A Boolean value that indicates whether the fetch request includes subentities in the results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506387-includespropertyvalues?language=objc -func (f_ FetchRequest) SetIncludesPropertyValues(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setIncludesPropertyValues:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506366-includessubentities?language=objc +func (f_ FetchRequest) SetIncludesSubentities(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setIncludesSubentities:"), value) } // A Boolean value that indicates whether, when the fetch is executed, it matches against currently unsaved changes in the managed object context. [Full Topic] @@ -184,205 +192,197 @@ func (f_ FetchRequest) SetPropertiesToGroupBy(value []objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("setPropertiesToGroupBy:"), value) } -// The sort descriptors of the fetch request. [Full Topic] +// The entity specified for the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506262-sortdescriptors?language=objc -func (f_ FetchRequest) SortDescriptors() []foundation.SortDescriptor { - rv := objc.Call[[]foundation.SortDescriptor](f_, objc.Sel("sortDescriptors")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506979-entity?language=objc +func (f_ FetchRequest) Entity() EntityDescription { + rv := objc.Call[EntityDescription](f_, objc.Sel("entity")) return rv } -// The sort descriptors of the fetch request. [Full Topic] +// The entity specified for the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506262-sortdescriptors?language=objc -func (f_ FetchRequest) SetSortDescriptors(value []foundation.ISortDescriptor) { - objc.Call[objc.Void](f_, objc.Sel("setSortDescriptors:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506979-entity?language=objc +func (f_ FetchRequest) SetEntity(value IEntityDescription) { + objc.Call[objc.Void](f_, objc.Sel("setEntity:"), value) } -// A Boolean value that indicates whether the property values of fetched objects will be updated with the current values in the persistent store. [Full Topic] +// The fetch offset of the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506440-shouldrefreshrefetchedobjects?language=objc -func (f_ FetchRequest) ShouldRefreshRefetchedObjects() bool { - rv := objc.Call[bool](f_, objc.Sel("shouldRefreshRefetchedObjects")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506770-fetchoffset?language=objc +func (f_ FetchRequest) FetchOffset() uint { + rv := objc.Call[uint](f_, objc.Sel("fetchOffset")) return rv } -// A Boolean value that indicates whether the property values of fetched objects will be updated with the current values in the persistent store. [Full Topic] +// The fetch offset of the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506440-shouldrefreshrefetchedobjects?language=objc -func (f_ FetchRequest) SetShouldRefreshRefetchedObjects(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setShouldRefreshRefetchedObjects:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506770-fetchoffset?language=objc +func (f_ FetchRequest) SetFetchOffset(value uint) { + objc.Call[objc.Void](f_, objc.Sel("setFetchOffset:"), value) } -// The fetch limit of the fetch request. [Full Topic] +// The sort descriptors of the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506622-fetchlimit?language=objc -func (f_ FetchRequest) FetchLimit() uint { - rv := objc.Call[uint](f_, objc.Sel("fetchLimit")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506262-sortdescriptors?language=objc +func (f_ FetchRequest) SortDescriptors() []foundation.SortDescriptor { + rv := objc.Call[[]foundation.SortDescriptor](f_, objc.Sel("sortDescriptors")) return rv } -// The fetch limit of the fetch request. [Full Topic] +// The sort descriptors of the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506622-fetchlimit?language=objc -func (f_ FetchRequest) SetFetchLimit(value uint) { - objc.Call[objc.Void](f_, objc.Sel("setFetchLimit:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506262-sortdescriptors?language=objc +func (f_ FetchRequest) SetSortDescriptors(value []foundation.ISortDescriptor) { + objc.Call[objc.Void](f_, objc.Sel("setSortDescriptors:"), value) } -// A Boolean value that indicates whether the fetch request includes subentities in the results. [Full Topic] +// The batch size of the objects specified in the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506366-includessubentities?language=objc -func (f_ FetchRequest) IncludesSubentities() bool { - rv := objc.Call[bool](f_, objc.Sel("includesSubentities")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506558-fetchbatchsize?language=objc +func (f_ FetchRequest) FetchBatchSize() uint { + rv := objc.Call[uint](f_, objc.Sel("fetchBatchSize")) return rv } -// A Boolean value that indicates whether the fetch request includes subentities in the results. [Full Topic] +// The batch size of the objects specified in the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506366-includessubentities?language=objc -func (f_ FetchRequest) SetIncludesSubentities(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setIncludesSubentities:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506558-fetchbatchsize?language=objc +func (f_ FetchRequest) SetFetchBatchSize(value uint) { + objc.Call[objc.Void](f_, objc.Sel("setFetchBatchSize:"), value) } -// A Boolean value that indicates whether the objects resulting from a fetch request are faults. [Full Topic] +// A Boolean value that indicates whether the fetch request returns only distinct values for the fields specified by propertiesToFetch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506756-returnsobjectsasfaults?language=objc -func (f_ FetchRequest) ReturnsObjectsAsFaults() bool { - rv := objc.Call[bool](f_, objc.Sel("returnsObjectsAsFaults")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506344-returnsdistinctresults?language=objc +func (f_ FetchRequest) ReturnsDistinctResults() bool { + rv := objc.Call[bool](f_, objc.Sel("returnsDistinctResults")) return rv } -// A Boolean value that indicates whether the objects resulting from a fetch request are faults. [Full Topic] +// A Boolean value that indicates whether the fetch request returns only distinct values for the fields specified by propertiesToFetch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506756-returnsobjectsasfaults?language=objc -func (f_ FetchRequest) SetReturnsObjectsAsFaults(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setReturnsObjectsAsFaults:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506344-returnsdistinctresults?language=objc +func (f_ FetchRequest) SetReturnsDistinctResults(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setReturnsDistinctResults:"), value) } -// The batch size of the objects specified in the fetch request. [Full Topic] +// The predicate of the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506558-fetchbatchsize?language=objc -func (f_ FetchRequest) FetchBatchSize() uint { - rv := objc.Call[uint](f_, objc.Sel("fetchBatchSize")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506638-predicate?language=objc +func (f_ FetchRequest) Predicate() foundation.Predicate { + rv := objc.Call[foundation.Predicate](f_, objc.Sel("predicate")) return rv } -// The batch size of the objects specified in the fetch request. [Full Topic] +// The predicate of the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506558-fetchbatchsize?language=objc -func (f_ FetchRequest) SetFetchBatchSize(value uint) { - objc.Call[objc.Void](f_, objc.Sel("setFetchBatchSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506638-predicate?language=objc +func (f_ FetchRequest) SetPredicate(value foundation.IPredicate) { + objc.Call[objc.Void](f_, objc.Sel("setPredicate:"), value) } -// The result type of the fetch request. [Full Topic] +// A collection of either property descriptions or string property names that specify which properties should be returned by the fetch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506189-resulttype?language=objc -func (f_ FetchRequest) ResultType() FetchRequestResultType { - rv := objc.Call[FetchRequestResultType](f_, objc.Sel("resultType")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506851-propertiestofetch?language=objc +func (f_ FetchRequest) PropertiesToFetch() []objc.Object { + rv := objc.Call[[]objc.Object](f_, objc.Sel("propertiesToFetch")) return rv } -// The result type of the fetch request. [Full Topic] +// A collection of either property descriptions or string property names that specify which properties should be returned by the fetch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506189-resulttype?language=objc -func (f_ FetchRequest) SetResultType(value FetchRequestResultType) { - objc.Call[objc.Void](f_, objc.Sel("setResultType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506851-propertiestofetch?language=objc +func (f_ FetchRequest) SetPropertiesToFetch(value []objc.IObject) { + objc.Call[objc.Void](f_, objc.Sel("setPropertiesToFetch:"), value) } -// The predicate used to filter rows being returned by a query containing a GROUP BY directive. [Full Topic] +// A Boolean value that indicates whether, when the fetch is executed, property data is obtained from the persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506429-havingpredicate?language=objc -func (f_ FetchRequest) HavingPredicate() foundation.Predicate { - rv := objc.Call[foundation.Predicate](f_, objc.Sel("havingPredicate")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506387-includespropertyvalues?language=objc +func (f_ FetchRequest) IncludesPropertyValues() bool { + rv := objc.Call[bool](f_, objc.Sel("includesPropertyValues")) return rv } -// The predicate used to filter rows being returned by a query containing a GROUP BY directive. [Full Topic] +// A Boolean value that indicates whether, when the fetch is executed, property data is obtained from the persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506429-havingpredicate?language=objc -func (f_ FetchRequest) SetHavingPredicate(value foundation.IPredicate) { - objc.Call[objc.Void](f_, objc.Sel("setHavingPredicate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506387-includespropertyvalues?language=objc +func (f_ FetchRequest) SetIncludesPropertyValues(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setIncludesPropertyValues:"), value) } -// The relationship key paths to prefetch along with the entity for the request. [Full Topic] +// A Boolean value that indicates whether the objects resulting from a fetch request are faults. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506813-relationshipkeypathsforprefetchi?language=objc -func (f_ FetchRequest) RelationshipKeyPathsForPrefetching() []string { - rv := objc.Call[[]string](f_, objc.Sel("relationshipKeyPathsForPrefetching")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506756-returnsobjectsasfaults?language=objc +func (f_ FetchRequest) ReturnsObjectsAsFaults() bool { + rv := objc.Call[bool](f_, objc.Sel("returnsObjectsAsFaults")) return rv } -// The relationship key paths to prefetch along with the entity for the request. [Full Topic] +// A Boolean value that indicates whether the objects resulting from a fetch request are faults. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506813-relationshipkeypathsforprefetchi?language=objc -func (f_ FetchRequest) SetRelationshipKeyPathsForPrefetching(value []string) { - objc.Call[objc.Void](f_, objc.Sel("setRelationshipKeyPathsForPrefetching:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506756-returnsobjectsasfaults?language=objc +func (f_ FetchRequest) SetReturnsObjectsAsFaults(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setReturnsObjectsAsFaults:"), value) } -// The predicate of the fetch request. [Full Topic] +// The fetch limit of the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506638-predicate?language=objc -func (f_ FetchRequest) Predicate() foundation.Predicate { - rv := objc.Call[foundation.Predicate](f_, objc.Sel("predicate")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506622-fetchlimit?language=objc +func (f_ FetchRequest) FetchLimit() uint { + rv := objc.Call[uint](f_, objc.Sel("fetchLimit")) return rv } -// The predicate of the fetch request. [Full Topic] +// The fetch limit of the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506638-predicate?language=objc -func (f_ FetchRequest) SetPredicate(value foundation.IPredicate) { - objc.Call[objc.Void](f_, objc.Sel("setPredicate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506622-fetchlimit?language=objc +func (f_ FetchRequest) SetFetchLimit(value uint) { + objc.Call[objc.Void](f_, objc.Sel("setFetchLimit:"), value) } -// A Boolean value that indicates whether the fetch request returns only distinct values for the fields specified by [coredata/nsfetchrequest/propertiestofetch]. [Full Topic] +// The predicate used to filter rows being returned by a query containing a GROUP BY directive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506344-returnsdistinctresults?language=objc -func (f_ FetchRequest) ReturnsDistinctResults() bool { - rv := objc.Call[bool](f_, objc.Sel("returnsDistinctResults")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506429-havingpredicate?language=objc +func (f_ FetchRequest) HavingPredicate() foundation.Predicate { + rv := objc.Call[foundation.Predicate](f_, objc.Sel("havingPredicate")) return rv } -// A Boolean value that indicates whether the fetch request returns only distinct values for the fields specified by [coredata/nsfetchrequest/propertiestofetch]. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506344-returnsdistinctresults?language=objc -func (f_ FetchRequest) SetReturnsDistinctResults(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setReturnsDistinctResults:"), value) -} - -// The name of the entity the request is configured to fetch. [Full Topic] +// The predicate used to filter rows being returned by a query containing a GROUP BY directive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506233-entityname?language=objc -func (f_ FetchRequest) EntityName() string { - rv := objc.Call[string](f_, objc.Sel("entityName")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506429-havingpredicate?language=objc +func (f_ FetchRequest) SetHavingPredicate(value foundation.IPredicate) { + objc.Call[objc.Void](f_, objc.Sel("setHavingPredicate:"), value) } -// The fetch offset of the fetch request. [Full Topic] +// The result type of the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506770-fetchoffset?language=objc -func (f_ FetchRequest) FetchOffset() uint { - rv := objc.Call[uint](f_, objc.Sel("fetchOffset")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506189-resulttype?language=objc +func (f_ FetchRequest) ResultType() FetchRequestResultType { + rv := objc.Call[FetchRequestResultType](f_, objc.Sel("resultType")) return rv } -// The fetch offset of the fetch request. [Full Topic] +// The result type of the fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506770-fetchoffset?language=objc -func (f_ FetchRequest) SetFetchOffset(value uint) { - objc.Call[objc.Void](f_, objc.Sel("setFetchOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506189-resulttype?language=objc +func (f_ FetchRequest) SetResultType(value FetchRequestResultType) { + objc.Call[objc.Void](f_, objc.Sel("setResultType:"), value) } -// A collection of either property descriptions or string property names that specify which properties should be returned by the fetch. [Full Topic] +// The relationship key paths to prefetch along with the entity for the request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506851-propertiestofetch?language=objc -func (f_ FetchRequest) PropertiesToFetch() []objc.Object { - rv := objc.Call[[]objc.Object](f_, objc.Sel("propertiesToFetch")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506813-relationshipkeypathsforprefetchi?language=objc +func (f_ FetchRequest) RelationshipKeyPathsForPrefetching() []string { + rv := objc.Call[[]string](f_, objc.Sel("relationshipKeyPathsForPrefetching")) return rv } -// A collection of either property descriptions or string property names that specify which properties should be returned by the fetch. [Full Topic] +// The relationship key paths to prefetch along with the entity for the request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506851-propertiestofetch?language=objc -func (f_ FetchRequest) SetPropertiesToFetch(value []objc.IObject) { - objc.Call[objc.Void](f_, objc.Sel("setPropertiesToFetch:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequest/1506813-relationshipkeypathsforprefetchi?language=objc +func (f_ FetchRequest) SetRelationshipKeyPathsForPrefetching(value []string) { + objc.Call[objc.Void](f_, objc.Sel("setRelationshipKeyPathsForPrefetching:"), value) } diff --git a/macos/coredata/fetch_request_expression.gen.go b/macos/coredata/fetch_request_expression.gen.go index 499882df..2fcf1e91 100644 --- a/macos/coredata/fetch_request_expression.gen.go +++ b/macos/coredata/fetch_request_expression.gen.go @@ -20,8 +20,8 @@ type _FetchRequestExpressionClass struct { type IFetchRequestExpression interface { foundation.IExpression RequestExpression() foundation.Expression - ContextExpression() foundation.Expression IsCountOnlyRequest() bool + ContextExpression() foundation.Expression } // An expression that evaluates the result of a fetch request on a managed object context. [Full Topic] @@ -94,14 +94,6 @@ func (f_ FetchRequestExpression) RequestExpression() foundation.Expression { return rv } -// The expression for the receiver’s managed object context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequestexpression/1391665-contextexpression?language=objc -func (f_ FetchRequestExpression) ContextExpression() foundation.Expression { - rv := objc.Call[foundation.Expression](f_, objc.Sel("contextExpression")) - return rv -} - // Returns a Boolean value that indicates whether the receiver represents a count-only fetch request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequestexpression/1391670-countonlyrequest?language=objc @@ -109,3 +101,11 @@ func (f_ FetchRequestExpression) IsCountOnlyRequest() bool { rv := objc.Call[bool](f_, objc.Sel("isCountOnlyRequest")) return rv } + +// The expression for the receiver’s managed object context. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchrequestexpression/1391665-contextexpression?language=objc +func (f_ FetchRequestExpression) ContextExpression() foundation.Expression { + rv := objc.Call[foundation.Expression](f_, objc.Sel("contextExpression")) + return rv +} diff --git a/macos/coredata/fetched_results_controller.gen.go b/macos/coredata/fetched_results_controller.gen.go index b70bcbd2..f5660c60 100644 --- a/macos/coredata/fetched_results_controller.gen.go +++ b/macos/coredata/fetched_results_controller.gen.go @@ -20,18 +20,18 @@ type _FetchedResultsControllerClass struct { type IFetchedResultsController interface { objc.IObject PerformFetch(error unsafe.Pointer) bool - ObjectAtIndexPath(indexPath foundation.IIndexPath) objc.Object + SectionIndexTitleForSectionName(sectionName string) string IndexPathForObject(object objc.IObject) foundation.IndexPath SectionForSectionIndexTitleAtIndex(title string, sectionIndex int) int - SectionIndexTitleForSectionName(sectionName string) string + ObjectAtIndexPath(indexPath foundation.IIndexPath) objc.Object + CacheName() string FetchRequest() FetchRequest - SectionIndexTitles() []string - FetchedObjects() []objc.Object SectionNameKeyPath() string Delegate() FetchedResultsControllerDelegateObject SetDelegate(value PFetchedResultsControllerDelegate) SetDelegateObject(valueObject objc.IObject) - CacheName() string + SectionIndexTitles() []string + FetchedObjects() []objc.Object Sections() []FetchedResultsSectionInfoObject ManagedObjectContext() ManagedObjectContext } @@ -91,14 +91,28 @@ func (f_ FetchedResultsController) PerformFetch(error unsafe.Pointer) bool { return rv } -// Returns the object at the given index path in the fetch results. [Full Topic] +// Returns the corresponding section index entry for a given section name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622281-objectatindexpath?language=objc -func (f_ FetchedResultsController) ObjectAtIndexPath(indexPath foundation.IIndexPath) objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("objectAtIndexPath:"), indexPath) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622308-sectionindextitleforsectionname?language=objc +func (f_ FetchedResultsController) SectionIndexTitleForSectionName(sectionName string) string { + rv := objc.Call[string](f_, objc.Sel("sectionIndexTitleForSectionName:"), sectionName) return rv } +// Deletes the cached section information with the given name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622283-deletecachewithname?language=objc +func (fc _FetchedResultsControllerClass) DeleteCacheWithName(name string) { + objc.Call[objc.Void](fc, objc.Sel("deleteCacheWithName:"), name) +} + +// Deletes the cached section information with the given name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622283-deletecachewithname?language=objc +func FetchedResultsController_DeleteCacheWithName(name string) { + FetchedResultsControllerClass.DeleteCacheWithName(name) +} + // Returns the index path of a given object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622306-indexpathforobject?language=objc @@ -115,26 +129,20 @@ func (f_ FetchedResultsController) SectionForSectionIndexTitleAtIndex(title stri return rv } -// Returns the corresponding section index entry for a given section name. [Full Topic] +// Returns the object at the given index path in the fetch results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622308-sectionindextitleforsectionname?language=objc -func (f_ FetchedResultsController) SectionIndexTitleForSectionName(sectionName string) string { - rv := objc.Call[string](f_, objc.Sel("sectionIndexTitleForSectionName:"), sectionName) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622281-objectatindexpath?language=objc +func (f_ FetchedResultsController) ObjectAtIndexPath(indexPath foundation.IIndexPath) objc.Object { + rv := objc.Call[objc.Object](f_, objc.Sel("objectAtIndexPath:"), indexPath) return rv } -// Deletes the cached section information with the given name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622283-deletecachewithname?language=objc -func (fc _FetchedResultsControllerClass) DeleteCacheWithName(name string) { - objc.Call[objc.Void](fc, objc.Sel("deleteCacheWithName:"), name) -} - -// Deletes the cached section information with the given name. [Full Topic] +// The name of the file used to cache section information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622283-deletecachewithname?language=objc -func FetchedResultsController_DeleteCacheWithName(name string) { - FetchedResultsControllerClass.DeleteCacheWithName(name) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622280-cachename?language=objc +func (f_ FetchedResultsController) CacheName() string { + rv := objc.Call[string](f_, objc.Sel("cacheName")) + return rv } // The fetch request used to do the fetching. [Full Topic] @@ -145,22 +153,6 @@ func (f_ FetchedResultsController) FetchRequest() FetchRequest { return rv } -// The array of section index titles. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622299-sectionindextitles?language=objc -func (f_ FetchedResultsController) SectionIndexTitles() []string { - rv := objc.Call[[]string](f_, objc.Sel("sectionIndexTitles")) - return rv -} - -// The results of the fetch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622278-fetchedobjects?language=objc -func (f_ FetchedResultsController) FetchedObjects() []objc.Object { - rv := objc.Call[[]objc.Object](f_, objc.Sel("fetchedObjects")) - return rv -} - // The key path of the attribute that determines which section the fetched entity belongs to. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622285-sectionnamekeypath?language=objc @@ -192,11 +184,19 @@ func (f_ FetchedResultsController) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("setDelegate:"), valueObject) } -// The name of the file used to cache section information. [Full Topic] +// The array of section index titles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622280-cachename?language=objc -func (f_ FetchedResultsController) CacheName() string { - rv := objc.Call[string](f_, objc.Sel("cacheName")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622299-sectionindextitles?language=objc +func (f_ FetchedResultsController) SectionIndexTitles() []string { + rv := objc.Call[[]string](f_, objc.Sel("sectionIndexTitles")) + return rv +} + +// The results of the fetch. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622278-fetchedobjects?language=objc +func (f_ FetchedResultsController) FetchedObjects() []objc.Object { + rv := objc.Call[[]objc.Object](f_, objc.Sel("fetchedObjects")) return rv } diff --git a/macos/coredata/fetched_results_controller_delegate.gen.go b/macos/coredata/fetched_results_controller_delegate.gen.go index daae63d6..3e784713 100644 --- a/macos/coredata/fetched_results_controller_delegate.gen.go +++ b/macos/coredata/fetched_results_controller_delegate.gen.go @@ -3,7 +3,6 @@ package coredata import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -11,22 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate?language=objc type PFetchedResultsControllerDelegate interface { - // optional - ControllerDidChangeContentWithDifference(controller FetchedResultsController, diff foundation.OrderedCollectionDifference) - HasControllerDidChangeContentWithDifference() bool - - // optional - ControllerDidChangeSectionAtIndexForChangeType(controller FetchedResultsController, sectionInfo FetchedResultsSectionInfoObject, sectionIndex uint, type_ FetchedResultsChangeType) - HasControllerDidChangeSectionAtIndexForChangeType() bool - - // optional - ControllerSectionIndexTitleForSectionName(controller FetchedResultsController, sectionName string) string - HasControllerSectionIndexTitleForSectionName() bool - - // optional - ControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath(controller FetchedResultsController, anObject objc.Object, indexPath foundation.IndexPath, type_ FetchedResultsChangeType, newIndexPath foundation.IndexPath) - HasControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath() bool - // optional ControllerWillChangeContent(controller FetchedResultsController) HasControllerWillChangeContent() bool @@ -38,82 +21,10 @@ type PFetchedResultsControllerDelegate interface { // A delegate implementation builder for the [PFetchedResultsControllerDelegate] protocol. type FetchedResultsControllerDelegate struct { - _ControllerDidChangeContentWithDifference func(controller FetchedResultsController, diff foundation.OrderedCollectionDifference) - _ControllerDidChangeSectionAtIndexForChangeType func(controller FetchedResultsController, sectionInfo FetchedResultsSectionInfoObject, sectionIndex uint, type_ FetchedResultsChangeType) - _ControllerSectionIndexTitleForSectionName func(controller FetchedResultsController, sectionName string) string - _ControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath func(controller FetchedResultsController, anObject objc.Object, indexPath foundation.IndexPath, type_ FetchedResultsChangeType, newIndexPath foundation.IndexPath) - _ControllerWillChangeContent func(controller FetchedResultsController) - _ControllerDidChangeContent func(controller FetchedResultsController) -} - -func (di *FetchedResultsControllerDelegate) HasControllerDidChangeContentWithDifference() bool { - return di._ControllerDidChangeContentWithDifference != nil -} - -// Notifies the receiver about changes to the content in the fetched results controller, by using a collection difference. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/3235741-controller?language=objc -func (di *FetchedResultsControllerDelegate) SetControllerDidChangeContentWithDifference(f func(controller FetchedResultsController, diff foundation.OrderedCollectionDifference)) { - di._ControllerDidChangeContentWithDifference = f -} - -// Notifies the receiver about changes to the content in the fetched results controller, by using a collection difference. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/3235741-controller?language=objc -func (di *FetchedResultsControllerDelegate) ControllerDidChangeContentWithDifference(controller FetchedResultsController, diff foundation.OrderedCollectionDifference) { - di._ControllerDidChangeContentWithDifference(controller, diff) -} -func (di *FetchedResultsControllerDelegate) HasControllerDidChangeSectionAtIndexForChangeType() bool { - return di._ControllerDidChangeSectionAtIndexForChangeType != nil -} - -// Notifies the receiver of the addition or removal of a section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622298-controller?language=objc -func (di *FetchedResultsControllerDelegate) SetControllerDidChangeSectionAtIndexForChangeType(f func(controller FetchedResultsController, sectionInfo FetchedResultsSectionInfoObject, sectionIndex uint, type_ FetchedResultsChangeType)) { - di._ControllerDidChangeSectionAtIndexForChangeType = f -} - -// Notifies the receiver of the addition or removal of a section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622298-controller?language=objc -func (di *FetchedResultsControllerDelegate) ControllerDidChangeSectionAtIndexForChangeType(controller FetchedResultsController, sectionInfo FetchedResultsSectionInfoObject, sectionIndex uint, type_ FetchedResultsChangeType) { - di._ControllerDidChangeSectionAtIndexForChangeType(controller, sectionInfo, sectionIndex, type_) -} -func (di *FetchedResultsControllerDelegate) HasControllerSectionIndexTitleForSectionName() bool { - return di._ControllerSectionIndexTitleForSectionName != nil -} - -// Returns the name for a given section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622286-controller?language=objc -func (di *FetchedResultsControllerDelegate) SetControllerSectionIndexTitleForSectionName(f func(controller FetchedResultsController, sectionName string) string) { - di._ControllerSectionIndexTitleForSectionName = f -} - -// Returns the name for a given section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622286-controller?language=objc -func (di *FetchedResultsControllerDelegate) ControllerSectionIndexTitleForSectionName(controller FetchedResultsController, sectionName string) string { - return di._ControllerSectionIndexTitleForSectionName(controller, sectionName) -} -func (di *FetchedResultsControllerDelegate) HasControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath() bool { - return di._ControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath != nil + _ControllerWillChangeContent func(controller FetchedResultsController) + _ControllerDidChangeContent func(controller FetchedResultsController) } -// Notifies the receiver that a fetched object has been changed due to an add, remove, move, or update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622296-controller?language=objc -func (di *FetchedResultsControllerDelegate) SetControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath(f func(controller FetchedResultsController, anObject objc.Object, indexPath foundation.IndexPath, type_ FetchedResultsChangeType, newIndexPath foundation.IndexPath)) { - di._ControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath = f -} - -// Notifies the receiver that a fetched object has been changed due to an add, remove, move, or update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622296-controller?language=objc -func (di *FetchedResultsControllerDelegate) ControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath(controller FetchedResultsController, anObject objc.Object, indexPath foundation.IndexPath, type_ FetchedResultsChangeType, newIndexPath foundation.IndexPath) { - di._ControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath(controller, anObject, indexPath, type_, newIndexPath) -} func (di *FetchedResultsControllerDelegate) HasControllerWillChangeContent() bool { return di._ControllerWillChangeContent != nil } @@ -157,52 +68,6 @@ type FetchedResultsControllerDelegateObject struct { objc.Object } -func (f_ FetchedResultsControllerDelegateObject) HasControllerDidChangeContentWithDifference() bool { - return f_.RespondsToSelector(objc.Sel("controller:didChangeContentWithDifference:")) -} - -// Notifies the receiver about changes to the content in the fetched results controller, by using a collection difference. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/3235741-controller?language=objc -func (f_ FetchedResultsControllerDelegateObject) ControllerDidChangeContentWithDifference(controller FetchedResultsController, diff foundation.OrderedCollectionDifference) { - objc.Call[objc.Void](f_, objc.Sel("controller:didChangeContentWithDifference:"), controller, diff) -} - -func (f_ FetchedResultsControllerDelegateObject) HasControllerDidChangeSectionAtIndexForChangeType() bool { - return f_.RespondsToSelector(objc.Sel("controller:didChangeSection:atIndex:forChangeType:")) -} - -// Notifies the receiver of the addition or removal of a section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622298-controller?language=objc -func (f_ FetchedResultsControllerDelegateObject) ControllerDidChangeSectionAtIndexForChangeType(controller FetchedResultsController, sectionInfo FetchedResultsSectionInfoObject, sectionIndex uint, type_ FetchedResultsChangeType) { - po1 := objc.WrapAsProtocol("NSFetchedResultsSectionInfo", sectionInfo) - objc.Call[objc.Void](f_, objc.Sel("controller:didChangeSection:atIndex:forChangeType:"), controller, po1, sectionIndex, type_) -} - -func (f_ FetchedResultsControllerDelegateObject) HasControllerSectionIndexTitleForSectionName() bool { - return f_.RespondsToSelector(objc.Sel("controller:sectionIndexTitleForSectionName:")) -} - -// Returns the name for a given section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622286-controller?language=objc -func (f_ FetchedResultsControllerDelegateObject) ControllerSectionIndexTitleForSectionName(controller FetchedResultsController, sectionName string) string { - rv := objc.Call[string](f_, objc.Sel("controller:sectionIndexTitleForSectionName:"), controller, sectionName) - return rv -} - -func (f_ FetchedResultsControllerDelegateObject) HasControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath() bool { - return f_.RespondsToSelector(objc.Sel("controller:didChangeObject:atIndexPath:forChangeType:newIndexPath:")) -} - -// Notifies the receiver that a fetched object has been changed due to an add, remove, move, or update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622296-controller?language=objc -func (f_ FetchedResultsControllerDelegateObject) ControllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath(controller FetchedResultsController, anObject objc.Object, indexPath foundation.IndexPath, type_ FetchedResultsChangeType, newIndexPath foundation.IndexPath) { - objc.Call[objc.Void](f_, objc.Sel("controller:didChangeObject:atIndexPath:forChangeType:newIndexPath:"), controller, anObject, indexPath, type_, newIndexPath) -} - func (f_ FetchedResultsControllerDelegateObject) HasControllerWillChangeContent() bool { return f_.RespondsToSelector(objc.Sel("controllerWillChangeContent:")) } diff --git a/macos/coredata/fetched_results_section_info_protocol.gen.go b/macos/coredata/fetched_results_section_info_protocol.gen.go index be6b3fd2..c405fd87 100644 --- a/macos/coredata/fetched_results_section_info_protocol.gen.go +++ b/macos/coredata/fetched_results_section_info_protocol.gen.go @@ -10,21 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultssectioninfo?language=objc type PFetchedResultsSectionInfo interface { - // optional - Name() string - HasName() bool - // optional IndexTitle() string HasIndexTitle() bool // optional - Objects() []objc.Object - HasObjects() bool + Name() string + HasName() bool // optional NumberOfObjects() uint HasNumberOfObjects() bool + + // optional + Objects() []objc.Object + HasObjects() bool } // ensure impl type implements protocol interface @@ -35,18 +35,6 @@ type FetchedResultsSectionInfoObject struct { objc.Object } -func (f_ FetchedResultsSectionInfoObject) HasName() bool { - return f_.RespondsToSelector(objc.Sel("name")) -} - -// The name of the section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultssectioninfo/1622302-name?language=objc -func (f_ FetchedResultsSectionInfoObject) Name() string { - rv := objc.Call[string](f_, objc.Sel("name")) - return rv -} - func (f_ FetchedResultsSectionInfoObject) HasIndexTitle() bool { return f_.RespondsToSelector(objc.Sel("indexTitle")) } @@ -59,15 +47,15 @@ func (f_ FetchedResultsSectionInfoObject) IndexTitle() string { return rv } -func (f_ FetchedResultsSectionInfoObject) HasObjects() bool { - return f_.RespondsToSelector(objc.Sel("objects")) +func (f_ FetchedResultsSectionInfoObject) HasName() bool { + return f_.RespondsToSelector(objc.Sel("name")) } -// The array of objects in the section. [Full Topic] +// The name of the section. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultssectioninfo/1622293-objects?language=objc -func (f_ FetchedResultsSectionInfoObject) Objects() []objc.Object { - rv := objc.Call[[]objc.Object](f_, objc.Sel("objects")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultssectioninfo/1622302-name?language=objc +func (f_ FetchedResultsSectionInfoObject) Name() string { + rv := objc.Call[string](f_, objc.Sel("name")) return rv } @@ -82,3 +70,15 @@ func (f_ FetchedResultsSectionInfoObject) NumberOfObjects() uint { rv := objc.Call[uint](f_, objc.Sel("numberOfObjects")) return rv } + +func (f_ FetchedResultsSectionInfoObject) HasObjects() bool { + return f_.RespondsToSelector(objc.Sel("objects")) +} + +// The array of objects in the section. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultssectioninfo/1622293-objects?language=objc +func (f_ FetchedResultsSectionInfoObject) Objects() []objc.Object { + rv := objc.Call[[]objc.Object](f_, objc.Sel("objects")) + return rv +} diff --git a/macos/coredata/incremental_store.gen.go b/macos/coredata/incremental_store.gen.go index c561ac6e..8bbc6bac 100644 --- a/macos/coredata/incremental_store.gen.go +++ b/macos/coredata/incremental_store.gen.go @@ -19,14 +19,14 @@ type _IncrementalStoreClass struct { // An interface definition for the [IncrementalStore] class. type IIncrementalStore interface { IPersistentStore - ObtainPermanentIDsForObjectsError(array []IManagedObject, error unsafe.Pointer) []ManagedObjectID - ManagedObjectContextDidRegisterObjectsWithIDs(objectIDs []IManagedObjectID) ReferenceObjectForObjectID(objectID IManagedObjectID) objc.Object - ManagedObjectContextDidUnregisterObjectsWithIDs(objectIDs []IManagedObjectID) NewObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID - NewValuesForObjectWithIDWithContextError(objectID IManagedObjectID, context IManagedObjectContext, error unsafe.Pointer) IncrementalStoreNode - NewValueForRelationshipForObjectWithIDWithContextError(relationship IRelationshipDescription, objectID IManagedObjectID, context IManagedObjectContext, error unsafe.Pointer) objc.Object + ManagedObjectContextDidUnregisterObjectsWithIDs(objectIDs []IManagedObjectID) + ManagedObjectContextDidRegisterObjectsWithIDs(objectIDs []IManagedObjectID) ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error unsafe.Pointer) objc.Object + NewValueForRelationshipForObjectWithIDWithContextError(relationship IRelationshipDescription, objectID IManagedObjectID, context IManagedObjectContext, error unsafe.Pointer) objc.Object + NewValuesForObjectWithIDWithContextError(objectID IManagedObjectID, context IManagedObjectContext, error unsafe.Pointer) IncrementalStoreNode + ObtainPermanentIDsForObjectsError(array []IManagedObject, error unsafe.Pointer) []ManagedObjectID } // An abstract superclass defining the API through which Core Data communicates with a store. [Full Topic] @@ -76,21 +76,6 @@ func NewIncrementalStoreWithPersistentStoreCoordinatorConfigurationNameURLOption return instance } -// Returns an array containing the object IDs for a given array of newly-inserted objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506348-obtainpermanentidsforobjects?language=objc -func (i_ IncrementalStore) ObtainPermanentIDsForObjectsError(array []IManagedObject, error unsafe.Pointer) []ManagedObjectID { - rv := objc.Call[[]ManagedObjectID](i_, objc.Sel("obtainPermanentIDsForObjects:error:"), array, error) - return rv -} - -// Indicates that objects identified by a given array of object IDs are in use in a managed object context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506199-managedobjectcontextdidregistero?language=objc -func (i_ IncrementalStore) ManagedObjectContextDidRegisterObjectsWithIDs(objectIDs []IManagedObjectID) { - objc.Call[objc.Void](i_, objc.Sel("managedObjectContextDidRegisterObjectsWithIDs:"), objectIDs) -} - // Returns the reference data used to construct a given object ID. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506828-referenceobjectforobjectid?language=objc @@ -99,21 +84,14 @@ func (i_ IncrementalStore) ReferenceObjectForObjectID(objectID IManagedObjectID) return rv } -// Returns the identifier for the store at a given URL. [Full Topic] +// Returns a new object ID that uses given data as the key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506781-identifierfornewstoreaturl?language=objc -func (ic _IncrementalStoreClass) IdentifierForNewStoreAtURL(storeURL foundation.IURL) objc.Object { - rv := objc.Call[objc.Object](ic, objc.Sel("identifierForNewStoreAtURL:"), storeURL) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506666-newobjectidforentity?language=objc +func (i_ IncrementalStore) NewObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID { + rv := objc.Call[ManagedObjectID](i_, objc.Sel("newObjectIDForEntity:referenceObject:"), entity, data) return rv } -// Returns the identifier for the store at a given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506781-identifierfornewstoreaturl?language=objc -func IncrementalStore_IdentifierForNewStoreAtURL(storeURL foundation.IURL) objc.Object { - return IncrementalStoreClass.IdentifierForNewStoreAtURL(storeURL) -} - // Indicates that objects identified by a given array of object IDs are no longer being used by a managed object context. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506878-managedobjectcontextdidunregiste?language=objc @@ -121,11 +99,26 @@ func (i_ IncrementalStore) ManagedObjectContextDidUnregisterObjectsWithIDs(objec objc.Call[objc.Void](i_, objc.Sel("managedObjectContextDidUnregisterObjectsWithIDs:"), objectIDs) } -// Returns a new object ID that uses given data as the key. [Full Topic] +// Indicates that objects identified by a given array of object IDs are in use in a managed object context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506666-newobjectidforentity?language=objc -func (i_ IncrementalStore) NewObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID { - rv := objc.Call[ManagedObjectID](i_, objc.Sel("newObjectIDForEntity:referenceObject:"), entity, data) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506199-managedobjectcontextdidregistero?language=objc +func (i_ IncrementalStore) ManagedObjectContextDidRegisterObjectsWithIDs(objectIDs []IManagedObjectID) { + objc.Call[objc.Void](i_, objc.Sel("managedObjectContextDidRegisterObjectsWithIDs:"), objectIDs) +} + +// Returns a value as appropriate for the given request, or nil if the request cannot be completed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506653-executerequest?language=objc +func (i_ IncrementalStore) ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("executeRequest:withContext:error:"), request, context, error) + return rv +} + +// Returns the relationship for the given relationship of the object with a given object ID. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506438-newvalueforrelationship?language=objc +func (i_ IncrementalStore) NewValueForRelationshipForObjectWithIDWithContextError(relationship IRelationshipDescription, objectID IManagedObjectID, context IManagedObjectContext, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("newValueForRelationship:forObjectWithID:withContext:error:"), relationship, objectID, context, error) return rv } @@ -137,18 +130,25 @@ func (i_ IncrementalStore) NewValuesForObjectWithIDWithContextError(objectID IMa return rv } -// Returns the relationship for the given relationship of the object with a given object ID. [Full Topic] +// Returns an array containing the object IDs for a given array of newly-inserted objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506438-newvalueforrelationship?language=objc -func (i_ IncrementalStore) NewValueForRelationshipForObjectWithIDWithContextError(relationship IRelationshipDescription, objectID IManagedObjectID, context IManagedObjectContext, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("newValueForRelationship:forObjectWithID:withContext:error:"), relationship, objectID, context, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506348-obtainpermanentidsforobjects?language=objc +func (i_ IncrementalStore) ObtainPermanentIDsForObjectsError(array []IManagedObject, error unsafe.Pointer) []ManagedObjectID { + rv := objc.Call[[]ManagedObjectID](i_, objc.Sel("obtainPermanentIDsForObjects:error:"), array, error) return rv } -// Returns a value as appropriate for the given request, or nil if the request cannot be completed. [Full Topic] +// Returns the identifier for the store at a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506653-executerequest?language=objc -func (i_ IncrementalStore) ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("executeRequest:withContext:error:"), request, context, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506781-identifierfornewstoreaturl?language=objc +func (ic _IncrementalStoreClass) IdentifierForNewStoreAtURL(storeURL foundation.IURL) objc.Object { + rv := objc.Call[objc.Object](ic, objc.Sel("identifierForNewStoreAtURL:"), storeURL) return rv } + +// Returns the identifier for the store at a given URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506781-identifierfornewstoreaturl?language=objc +func IncrementalStore_IdentifierForNewStoreAtURL(storeURL foundation.IURL) objc.Object { + return IncrementalStoreClass.IdentifierForNewStoreAtURL(storeURL) +} diff --git a/macos/coredata/incremental_store_node.gen.go b/macos/coredata/incremental_store_node.gen.go index 016676b9..9c8ad706 100644 --- a/macos/coredata/incremental_store_node.gen.go +++ b/macos/coredata/incremental_store_node.gen.go @@ -18,10 +18,10 @@ type _IncrementalStoreNodeClass struct { // An interface definition for the [IncrementalStoreNode] class. type IIncrementalStoreNode interface { objc.IObject - UpdateWithValuesVersion(values map[string]objc.IObject, version uint64) ValueForPropertyDescription(prop IPropertyDescription) objc.Object - ObjectID() ManagedObjectID + UpdateWithValuesVersion(values map[string]objc.IObject, version uint64) Version() uint64 + ObjectID() ManagedObjectID } // A concrete class used to represent basic nodes in a Core Data incremental store. [Full Topic] @@ -71,13 +71,6 @@ func (i_ IncrementalStoreNode) Init() IncrementalStoreNode { return rv } -// Update the values and version to reflect new data being saved to or loaded from the external store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstorenode/1506721-updatewithvalues?language=objc -func (i_ IncrementalStoreNode) UpdateWithValuesVersion(values map[string]objc.IObject, version uint64) { - objc.Call[objc.Void](i_, objc.Sel("updateWithValues:version:"), values, version) -} - // Returns the value for the given property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstorenode/1506442-valueforpropertydescription?language=objc @@ -86,12 +79,11 @@ func (i_ IncrementalStoreNode) ValueForPropertyDescription(prop IPropertyDescrip return rv } -// The object ID that identifies the data stored by the receiver. [Full Topic] +// Update the values and version to reflect new data being saved to or loaded from the external store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstorenode/1506827-objectid?language=objc -func (i_ IncrementalStoreNode) ObjectID() ManagedObjectID { - rv := objc.Call[ManagedObjectID](i_, objc.Sel("objectID")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstorenode/1506721-updatewithvalues?language=objc +func (i_ IncrementalStoreNode) UpdateWithValuesVersion(values map[string]objc.IObject, version uint64) { + objc.Call[objc.Void](i_, objc.Sel("updateWithValues:version:"), values, version) } // The version of data in the receiver. [Full Topic] @@ -101,3 +93,11 @@ func (i_ IncrementalStoreNode) Version() uint64 { rv := objc.Call[uint64](i_, objc.Sel("version")) return rv } + +// The object ID that identifies the data stored by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstorenode/1506827-objectid?language=objc +func (i_ IncrementalStoreNode) ObjectID() ManagedObjectID { + rv := objc.Call[ManagedObjectID](i_, objc.Sel("objectID")) + return rv +} diff --git a/macos/coredata/managed_object.gen.go b/macos/coredata/managed_object.gen.go index 94460908..ff98c68e 100644 --- a/macos/coredata/managed_object.gen.go +++ b/macos/coredata/managed_object.gen.go @@ -5,7 +5,6 @@ package coredata import ( "unsafe" - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -19,45 +18,44 @@ type _ManagedObjectClass struct { // An interface definition for the [ManagedObject] class. type IManagedObject interface { objc.IObject - WillTurnIntoFault() - AwakeFromFetch() - ValueForKey(key string) objc.Object - WillChangeValueForKey(key string) - ChangedValues() map[string]objc.Object - PrepareForDeletion() - InitWithEntityInsertIntoManagedObjectContext(entity IEntityDescription, context IManagedObjectContext) ManagedObject - ValidateForDelete(error unsafe.Pointer) bool + PrimitiveValueForKey(key string) objc.Object + DidChangeValueForKey(key string) ValidateValueForKeyError(value unsafe.Pointer, key string, error unsafe.Pointer) bool DidAccessValueForKey(key string) - HasFaultForRelationshipNamed(key string) bool - WillSave() - SetObservationInfo(inObservationInfo unsafe.Pointer) - DidTurnIntoFault() - AwakeFromInsert() - DidChangeValueForKeyWithSetMutationUsingObjects(inKey string, inMutationKind foundation.KeyValueSetMutationKind, inObjects foundation.ISet) ObservationInfo() unsafe.Pointer + ChangedValues() map[string]objc.Object + AwakeFromInsert() ObjectIDsForRelationshipNamed(key string) []ManagedObjectID - WillAccessValueForKey(key string) + WillSave() + DidSave() + ValidateForDelete(error unsafe.Pointer) bool SetPrimitiveValueForKey(value objc.IObject, key string) - WillChangeValueForKeyWithSetMutationUsingObjects(inKey string, inMutationKind foundation.KeyValueSetMutationKind, inObjects foundation.ISet) + WillTurnIntoFault() + AwakeFromFetch() ValidateForInsert(error unsafe.Pointer) bool - PrimitiveValueForKey(key string) objc.Object + PrepareForDeletion() + ValidateForUpdate(error unsafe.Pointer) bool AwakeFromSnapshotEvents(flags SnapshotEventType) CommittedValuesForKeys(keys []string) map[string]objc.Object - DidChangeValueForKey(key string) - ChangedValuesForCurrentEvent() map[string]objc.Object + HasFaultForRelationshipNamed(key string) bool + WillAccessValueForKey(key string) + DidTurnIntoFault() SetValueForKey(value objc.IObject, key string) - DidSave() - ValidateForUpdate(error unsafe.Pointer) bool + ChangedValuesForCurrentEvent() map[string]objc.Object + WillChangeValueForKey(key string) + SetObservationInfo(inObservationInfo unsafe.Pointer) + ValueForKey(key string) objc.Object + InitWithEntityInsertIntoManagedObjectContext(entity IEntityDescription, context IManagedObjectContext) ManagedObject + Entity() EntityDescription + IsInserted() bool HasPersistentChangedValues() bool FaultingState() uint - HasChanges() bool - ManagedObjectContext() ManagedObjectContext - IsInserted() bool + IsUpdated() bool IsDeleted() bool ObjectID() ManagedObjectID + ManagedObjectContext() ManagedObjectContext + HasChanges() bool IsFault() bool - IsUpdated() bool } // The base class that all Core Data model objects inherit from. [Full Topic] @@ -107,64 +105,19 @@ func (m_ ManagedObject) Init() ManagedObject { return rv } -// Provides an opportunity to add code into the life cycle of the managed object before converting it to a fault. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506537-willturnintofault?language=objc -func (m_ ManagedObject) WillTurnIntoFault() { - objc.Call[objc.Void](m_, objc.Sel("willTurnIntoFault")) -} - -// Provides an opportunity to add code into the life cycle of the managed object when fufilling it from a fault. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506424-awakefromfetch?language=objc -func (m_ ManagedObject) AwakeFromFetch() { - objc.Call[objc.Void](m_, objc.Sel("awakeFromFetch")) -} - -// Returns the value for the property specified by key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506613-valueforkey?language=objc -func (m_ ManagedObject) ValueForKey(key string) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("valueForKey:"), key) - return rv -} - -// Provides an opportunity to respond when a value of a given property is about to change. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506229-willchangevalueforkey?language=objc -func (m_ ManagedObject) WillChangeValueForKey(key string) { - objc.Call[objc.Void](m_, objc.Sel("willChangeValueForKey:"), key) -} - -// Returns a dictionary containing the keys and new values of persistent properties with changes since the last fetching or saving of the managed object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506775-changedvalues?language=objc -func (m_ ManagedObject) ChangedValues() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](m_, objc.Sel("changedValues")) - return rv -} - -// Provides an opportunity to add code into the life cycle of the managed object before deleting it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506674-preparefordeletion?language=objc -func (m_ ManagedObject) PrepareForDeletion() { - objc.Call[objc.Void](m_, objc.Sel("prepareForDeletion")) -} - -// Initializes a managed object from an entity description and inserts it into the specified managed object context. [Full Topic] +// Returns the value for the specified property from the managed object’s private internal storage . [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506357-initwithentity?language=objc -func (m_ ManagedObject) InitWithEntityInsertIntoManagedObjectContext(entity IEntityDescription, context IManagedObjectContext) ManagedObject { - rv := objc.Call[ManagedObject](m_, objc.Sel("initWithEntity:insertIntoManagedObjectContext:"), entity, context) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506728-primitivevalueforkey?language=objc +func (m_ ManagedObject) PrimitiveValueForKey(key string) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("primitiveValueForKey:"), key) return rv } -// Determines whether the managed object can be deleted in its current state. [Full Topic] +// Provides an opportunity to respond when a value of a given property has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506195-validatefordelete?language=objc -func (m_ ManagedObject) ValidateForDelete(error unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("validateForDelete:"), error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506976-didchangevalueforkey?language=objc +func (m_ ManagedObject) DidChangeValueForKey(key string) { + objc.Call[objc.Void](m_, objc.Sel("didChangeValueForKey:"), key) } // Validates a property value for a given key. [Full Topic] @@ -182,33 +135,35 @@ func (m_ ManagedObject) DidAccessValueForKey(key string) { objc.Call[objc.Void](m_, objc.Sel("didAccessValueForKey:"), key) } -// Returns a Boolean value that indicates whether the relationship for a given key is a fault. [Full Topic] +// Returns the observation info of the managed object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506973-hasfaultforrelationshipnamed?language=objc -func (m_ ManagedObject) HasFaultForRelationshipNamed(key string) bool { - rv := objc.Call[bool](m_, objc.Sel("hasFaultForRelationshipNamed:"), key) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506210-observationinfo?language=objc +func (m_ ManagedObject) ObservationInfo() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](m_, objc.Sel("observationInfo")) return rv } -// Provides an opportunity to add code into the life cycle of the managed object before saving it. [Full Topic] +// Returns an initialized fetch request with the entity this subclass represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506209-willsave?language=objc -func (m_ ManagedObject) WillSave() { - objc.Call[objc.Void](m_, objc.Sel("willSave")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1640605-fetchrequest?language=objc +func (mc _ManagedObjectClass) FetchRequest() FetchRequest { + rv := objc.Call[FetchRequest](mc, objc.Sel("fetchRequest")) + return rv } -// Sets the observation info of the managed object. [Full Topic] +// Returns an initialized fetch request with the entity this subclass represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506535-setobservationinfo?language=objc -func (m_ ManagedObject) SetObservationInfo(inObservationInfo unsafe.Pointer) { - objc.Call[objc.Void](m_, objc.Sel("setObservationInfo:"), inObservationInfo) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1640605-fetchrequest?language=objc +func ManagedObject_FetchRequest() FetchRequest { + return ManagedObjectClass.FetchRequest() } -// Provides an opportunity to add code into the life cycle of the managed object after converting it to a fault. [Full Topic] +// Returns a dictionary containing the keys and new values of persistent properties with changes since the last fetching or saving of the managed object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506470-didturnintofault?language=objc -func (m_ ManagedObject) DidTurnIntoFault() { - objc.Call[objc.Void](m_, objc.Sel("didTurnIntoFault")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506775-changedvalues?language=objc +func (m_ ManagedObject) ChangedValues() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](m_, objc.Sel("changedValues")) + return rv } // Provides an opportunity to add code into the life cycle of the managed object when initially creating it. [Full Topic] @@ -218,34 +173,34 @@ func (m_ ManagedObject) AwakeFromInsert() { objc.Call[objc.Void](m_, objc.Sel("awakeFromInsert")) } -// Provides an opportunity to respond when a change was made to a specified to-many relationship. [Full Topic] +// Returns the object IDs for all of the managed objects that are in the named relationship. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506936-didchangevalueforkey?language=objc -func (m_ ManagedObject) DidChangeValueForKeyWithSetMutationUsingObjects(inKey string, inMutationKind foundation.KeyValueSetMutationKind, inObjects foundation.ISet) { - objc.Call[objc.Void](m_, objc.Sel("didChangeValueForKey:withSetMutation:usingObjects:"), inKey, inMutationKind, inObjects) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506201-objectidsforrelationshipnamed?language=objc +func (m_ ManagedObject) ObjectIDsForRelationshipNamed(key string) []ManagedObjectID { + rv := objc.Call[[]ManagedObjectID](m_, objc.Sel("objectIDsForRelationshipNamed:"), key) + return rv } -// Returns the observation info of the managed object. [Full Topic] +// Provides an opportunity to add code into the life cycle of the managed object before saving it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506210-observationinfo?language=objc -func (m_ ManagedObject) ObservationInfo() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](m_, objc.Sel("observationInfo")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506209-willsave?language=objc +func (m_ ManagedObject) WillSave() { + objc.Call[objc.Void](m_, objc.Sel("willSave")) } -// Returns the object IDs for all of the managed objects that are in the named relationship. [Full Topic] +// Provides an opportunity to add code into the life cycle of the managed object after the managed object’s context completes a save operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506201-objectidsforrelationshipnamed?language=objc -func (m_ ManagedObject) ObjectIDsForRelationshipNamed(key string) []ManagedObjectID { - rv := objc.Call[[]ManagedObjectID](m_, objc.Sel("objectIDsForRelationshipNamed:"), key) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506585-didsave?language=objc +func (m_ ManagedObject) DidSave() { + objc.Call[objc.Void](m_, objc.Sel("didSave")) } -// Provides support for key-value observing access notification. [Full Topic] +// Determines whether the managed object can be deleted in its current state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1507001-willaccessvalueforkey?language=objc -func (m_ ManagedObject) WillAccessValueForKey(key string) { - objc.Call[objc.Void](m_, objc.Sel("willAccessValueForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506195-validatefordelete?language=objc +func (m_ ManagedObject) ValidateForDelete(error unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("validateForDelete:"), error) + return rv } // Sets the value of a given property in the managed object's private internal storage. [Full Topic] @@ -255,11 +210,18 @@ func (m_ ManagedObject) SetPrimitiveValueForKey(value objc.IObject, key string) objc.Call[objc.Void](m_, objc.Sel("setPrimitiveValue:forKey:"), value, key) } -// Provides an opportunity to respond when a change is about to be made to a specified to-many relationship. [Full Topic] +// Provides an opportunity to add code into the life cycle of the managed object before converting it to a fault. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506801-willchangevalueforkey?language=objc -func (m_ ManagedObject) WillChangeValueForKeyWithSetMutationUsingObjects(inKey string, inMutationKind foundation.KeyValueSetMutationKind, inObjects foundation.ISet) { - objc.Call[objc.Void](m_, objc.Sel("willChangeValueForKey:withSetMutation:usingObjects:"), inKey, inMutationKind, inObjects) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506537-willturnintofault?language=objc +func (m_ ManagedObject) WillTurnIntoFault() { + objc.Call[objc.Void](m_, objc.Sel("willTurnIntoFault")) +} + +// Provides an opportunity to add code into the life cycle of the managed object when fufilling it from a fault. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506424-awakefromfetch?language=objc +func (m_ ManagedObject) AwakeFromFetch() { + objc.Call[objc.Void](m_, objc.Sel("awakeFromFetch")) } // Determines whether the managed object can be inserted in its current state. [Full Topic] @@ -270,11 +232,18 @@ func (m_ ManagedObject) ValidateForInsert(error unsafe.Pointer) bool { return rv } -// Returns the value for the specified property from the managed object’s private internal storage . [Full Topic] +// Provides an opportunity to add code into the life cycle of the managed object before deleting it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506728-primitivevalueforkey?language=objc -func (m_ ManagedObject) PrimitiveValueForKey(key string) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("primitiveValueForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506674-preparefordeletion?language=objc +func (m_ ManagedObject) PrepareForDeletion() { + objc.Call[objc.Void](m_, objc.Sel("prepareForDeletion")) +} + +// Determines whether the managed object's current state is valid. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506998-validateforupdate?language=objc +func (m_ ManagedObject) ValidateForUpdate(error unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("validateForUpdate:"), error) return rv } @@ -285,21 +254,6 @@ func (m_ ManagedObject) AwakeFromSnapshotEvents(flags SnapshotEventType) { objc.Call[objc.Void](m_, objc.Sel("awakeFromSnapshotEvents:"), flags) } -// Returns an initialized fetch request with the entity this subclass represents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1640605-fetchrequest?language=objc -func (mc _ManagedObjectClass) FetchRequest() FetchRequest { - rv := objc.Call[FetchRequest](mc, objc.Sel("fetchRequest")) - return rv -} - -// Returns an initialized fetch request with the entity this subclass represents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1640605-fetchrequest?language=objc -func ManagedObject_FetchRequest() FetchRequest { - return ManagedObjectClass.FetchRequest() -} - // Returns a dictionary of the most recent fetched or saved values of the managed object for the properties of the specified keys. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506771-committedvaluesforkeys?language=objc @@ -308,19 +262,26 @@ func (m_ ManagedObject) CommittedValuesForKeys(keys []string) map[string]objc.Ob return rv } -// Provides an opportunity to respond when a value of a given property has changed. [Full Topic] +// Returns a Boolean value that indicates whether the relationship for a given key is a fault. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506976-didchangevalueforkey?language=objc -func (m_ ManagedObject) DidChangeValueForKey(key string) { - objc.Call[objc.Void](m_, objc.Sel("didChangeValueForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506973-hasfaultforrelationshipnamed?language=objc +func (m_ ManagedObject) HasFaultForRelationshipNamed(key string) bool { + rv := objc.Call[bool](m_, objc.Sel("hasFaultForRelationshipNamed:"), key) + return rv } -// Returns a dictionary containing the keys and new values of persistent properties with changes since the last fetching or saving of the managed object. [Full Topic] +// Provides support for key-value observing access notification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506472-changedvaluesforcurrentevent?language=objc -func (m_ ManagedObject) ChangedValuesForCurrentEvent() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](m_, objc.Sel("changedValuesForCurrentEvent")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1507001-willaccessvalueforkey?language=objc +func (m_ ManagedObject) WillAccessValueForKey(key string) { + objc.Call[objc.Void](m_, objc.Sel("willAccessValueForKey:"), key) +} + +// Provides an opportunity to add code into the life cycle of the managed object after converting it to a fault. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506470-didturnintofault?language=objc +func (m_ ManagedObject) DidTurnIntoFault() { + objc.Call[objc.Void](m_, objc.Sel("didTurnIntoFault")) } // Sets the specified property of the managed object to the specified value. [Full Topic] @@ -330,57 +291,66 @@ func (m_ ManagedObject) SetValueForKey(value objc.IObject, key string) { objc.Call[objc.Void](m_, objc.Sel("setValue:forKey:"), value, key) } -// Returns the entity description that is associated with this subclass. [Full Topic] +// Returns a dictionary containing the keys and new values of persistent properties with changes since the last fetching or saving of the managed object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1640588-entity?language=objc -func (mc _ManagedObjectClass) Entity() EntityDescription { - rv := objc.Call[EntityDescription](mc, objc.Sel("entity")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506472-changedvaluesforcurrentevent?language=objc +func (m_ ManagedObject) ChangedValuesForCurrentEvent() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](m_, objc.Sel("changedValuesForCurrentEvent")) return rv } -// Returns the entity description that is associated with this subclass. [Full Topic] +// Provides an opportunity to respond when a value of a given property is about to change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1640588-entity?language=objc -func ManagedObject_Entity() EntityDescription { - return ManagedObjectClass.Entity() +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506229-willchangevalueforkey?language=objc +func (m_ ManagedObject) WillChangeValueForKey(key string) { + objc.Call[objc.Void](m_, objc.Sel("willChangeValueForKey:"), key) } -// Provides an opportunity to add code into the life cycle of the managed object after the managed object’s context completes a save operation. [Full Topic] +// Sets the observation info of the managed object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506585-didsave?language=objc -func (m_ ManagedObject) DidSave() { - objc.Call[objc.Void](m_, objc.Sel("didSave")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506535-setobservationinfo?language=objc +func (m_ ManagedObject) SetObservationInfo(inObservationInfo unsafe.Pointer) { + objc.Call[objc.Void](m_, objc.Sel("setObservationInfo:"), inObservationInfo) } -// Determines whether the managed object's current state is valid. [Full Topic] +// Returns the value for the property specified by key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506998-validateforupdate?language=objc -func (m_ ManagedObject) ValidateForUpdate(error unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("validateForUpdate:"), error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506613-valueforkey?language=objc +func (m_ ManagedObject) ValueForKey(key string) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("valueForKey:"), key) return rv } -// A Boolean value that indicates whether the managed object has persistent changes. [Full Topic] +// Initializes a managed object from an entity description and inserts it into the specified managed object context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506240-haspersistentchangedvalues?language=objc -func (m_ ManagedObject) HasPersistentChangedValues() bool { - rv := objc.Call[bool](m_, objc.Sel("hasPersistentChangedValues")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506357-initwithentity?language=objc +func (m_ ManagedObject) InitWithEntityInsertIntoManagedObjectContext(entity IEntityDescription, context IManagedObjectContext) ManagedObject { + rv := objc.Call[ManagedObject](m_, objc.Sel("initWithEntity:insertIntoManagedObjectContext:"), entity, context) return rv } -// A Boolean value that indicates whether to mark instances of the class as having changes when an unmodeled property changes. [Full Topic] +// The entity description of the managed object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506727-contextshouldignoreunmodeledprop?language=objc -func (mc _ManagedObjectClass) ContextShouldIgnoreUnmodeledPropertyChanges() bool { - rv := objc.Call[bool](mc, objc.Sel("contextShouldIgnoreUnmodeledPropertyChanges")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506562-entity?language=objc +func (m_ ManagedObject) Entity() EntityDescription { + rv := objc.Call[EntityDescription](m_, objc.Sel("entity")) return rv } -// A Boolean value that indicates whether to mark instances of the class as having changes when an unmodeled property changes. [Full Topic] +// A Boolean value that indicates whether the managed object has been inserted in a managed object context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506727-contextshouldignoreunmodeledprop?language=objc -func ManagedObject_ContextShouldIgnoreUnmodeledPropertyChanges() bool { - return ManagedObjectClass.ContextShouldIgnoreUnmodeledPropertyChanges() +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506281-inserted?language=objc +func (m_ ManagedObject) IsInserted() bool { + rv := objc.Call[bool](m_, objc.Sel("isInserted")) + return rv +} + +// A Boolean value that indicates whether the managed object has persistent changes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506240-haspersistentchangedvalues?language=objc +func (m_ ManagedObject) HasPersistentChangedValues() bool { + rv := objc.Call[bool](m_, objc.Sel("hasPersistentChangedValues")) + return rv } // The faulting state of the managed object. [Full Topic] @@ -391,27 +361,26 @@ func (m_ ManagedObject) FaultingState() uint { return rv } -// A Boolean value that indicates whether the managed object has been inserted, has been deleted, or has unsaved changes. [Full Topic] +// A Boolean value that indicates whether to mark instances of the class as having changes when an unmodeled property changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506654-haschanges?language=objc -func (m_ ManagedObject) HasChanges() bool { - rv := objc.Call[bool](m_, objc.Sel("hasChanges")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506727-contextshouldignoreunmodeledprop?language=objc +func (mc _ManagedObjectClass) ContextShouldIgnoreUnmodeledPropertyChanges() bool { + rv := objc.Call[bool](mc, objc.Sel("contextShouldIgnoreUnmodeledPropertyChanges")) return rv } -// The managed object context with which the managed object is registered. [Full Topic] +// A Boolean value that indicates whether to mark instances of the class as having changes when an unmodeled property changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506677-managedobjectcontext?language=objc -func (m_ ManagedObject) ManagedObjectContext() ManagedObjectContext { - rv := objc.Call[ManagedObjectContext](m_, objc.Sel("managedObjectContext")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506727-contextshouldignoreunmodeledprop?language=objc +func ManagedObject_ContextShouldIgnoreUnmodeledPropertyChanges() bool { + return ManagedObjectClass.ContextShouldIgnoreUnmodeledPropertyChanges() } -// A Boolean value that indicates whether the managed object has been inserted in a managed object context. [Full Topic] +// A Boolean value that indicates whether the managed object has unsaved changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506281-inserted?language=objc -func (m_ ManagedObject) IsInserted() bool { - rv := objc.Call[bool](m_, objc.Sel("isInserted")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506867-updated?language=objc +func (m_ ManagedObject) IsUpdated() bool { + rv := objc.Call[bool](m_, objc.Sel("isUpdated")) return rv } @@ -431,18 +400,26 @@ func (m_ ManagedObject) ObjectID() ManagedObjectID { return rv } -// A Boolean value that indicates whether the managed object is a fault. [Full Topic] +// The managed object context with which the managed object is registered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506837-fault?language=objc -func (m_ ManagedObject) IsFault() bool { - rv := objc.Call[bool](m_, objc.Sel("isFault")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506677-managedobjectcontext?language=objc +func (m_ ManagedObject) ManagedObjectContext() ManagedObjectContext { + rv := objc.Call[ManagedObjectContext](m_, objc.Sel("managedObjectContext")) return rv } -// A Boolean value that indicates whether the managed object has unsaved changes. [Full Topic] +// A Boolean value that indicates whether the managed object has been inserted, has been deleted, or has unsaved changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506867-updated?language=objc -func (m_ ManagedObject) IsUpdated() bool { - rv := objc.Call[bool](m_, objc.Sel("isUpdated")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506654-haschanges?language=objc +func (m_ ManagedObject) HasChanges() bool { + rv := objc.Call[bool](m_, objc.Sel("hasChanges")) + return rv +} + +// A Boolean value that indicates whether the managed object is a fault. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506837-fault?language=objc +func (m_ ManagedObject) IsFault() bool { + rv := objc.Call[bool](m_, objc.Sel("isFault")) return rv } diff --git a/macos/coredata/managed_object_context.gen.go b/macos/coredata/managed_object_context.gen.go index d67a7a3e..1049a8f1 100644 --- a/macos/coredata/managed_object_context.gen.go +++ b/macos/coredata/managed_object_context.gen.go @@ -19,61 +19,61 @@ type _ManagedObjectContextClass struct { // An interface definition for the [ManagedObjectContext] class. type IManagedObjectContext interface { objc.IObject + ExistingObjectWithIDError(objectID IManagedObjectID, error unsafe.Pointer) ManagedObject + MergeChangesFromContextDidSaveNotification(notification foundation.INotification) + ObjectRegisteredForID(objectID IManagedObjectID) ManagedObject + PerformBlockAndWait(block func()) + DetectConflictsForObject(object IManagedObject) AssignObjectToPersistentStore(object objc.IObject, store IPersistentStore) + ShouldHandleInaccessibleFaultForObjectIDTriggeredByProperty(fault IManagedObject, oid IManagedObjectID, property IPropertyDescription) bool + ExecuteFetchRequestError(request IFetchRequest, error unsafe.Pointer) []objc.Object + CountForFetchRequestError(request IFetchRequest, error unsafe.Pointer) uint + Save(error unsafe.Pointer) bool + InsertObject(object IManagedObject) + ProcessPendingChanges() Rollback() - ObserveValueForKeyPathOfObjectChangeContext(keyPath string, object objc.IObject, change map[string]objc.IObject, context unsafe.Pointer) - ExecuteRequestError(request IPersistentStoreRequest, error unsafe.Pointer) PersistentStoreResult RefreshObjectMergeChanges(object IManagedObject, flag bool) - ObjectWithID(objectID IManagedObjectID) ManagedObject + ExecuteRequestError(request IPersistentStoreRequest, error unsafe.Pointer) PersistentStoreResult SetQueryGenerationFromTokenError(generation IQueryGenerationToken, error unsafe.Pointer) bool - DetectConflictsForObject(object IManagedObject) - CountForFetchRequestError(request IFetchRequest, error unsafe.Pointer) uint - ExecuteFetchRequestError(request IFetchRequest, error unsafe.Pointer) []objc.Object - ShouldHandleInaccessibleFaultForObjectIDTriggeredByProperty(fault IManagedObject, oid IManagedObjectID, property IPropertyDescription) bool - RefreshAllObjects() DeleteObject(object IManagedObject) - ExistingObjectWithIDError(objectID IManagedObjectID, error unsafe.Pointer) ManagedObject - ObtainPermanentIDsForObjectsError(objects []IManagedObject, error unsafe.Pointer) bool - Undo() - InsertObject(object IManagedObject) - Save(error unsafe.Pointer) bool - Reset() - ObjectRegisteredForID(objectID IManagedObjectID) ManagedObject - MergeChangesFromContextDidSaveNotification(notification foundation.INotification) PerformBlock(block func()) - PerformBlockAndWait(block func()) + ObjectWithID(objectID IManagedObjectID) ManagedObject + RefreshAllObjects() + Undo() + ObtainPermanentIDsForObjectsError(objects []IManagedObject, error unsafe.Pointer) bool Redo() - ProcessPendingChanges() - HasChanges() bool - ConcurrencyType() ManagedObjectContextConcurrencyType - RegisteredObjects() foundation.Set - RetainsRegisteredObjects() bool - SetRetainsRegisteredObjects(value bool) + ObserveValueForKeyPathOfObjectChangeContext(keyPath string, object objc.IObject, change map[string]objc.IObject, context unsafe.Pointer) + Reset() + UndoManager() foundation.UndoManager + SetUndoManager(value foundation.IUndoManager) MergePolicy() objc.Object SetMergePolicy(value objc.IObject) - TransactionAuthor() string - SetTransactionAuthor(value string) - StalenessInterval() foundation.TimeInterval - SetStalenessInterval(value foundation.TimeInterval) - QueryGenerationToken() QueryGenerationToken - InsertedObjects() foundation.Set PersistentStoreCoordinator() PersistentStoreCoordinator SetPersistentStoreCoordinator(value IPersistentStoreCoordinator) - UpdatedObjects() foundation.Set Name() string SetName(value string) + RegisteredObjects() foundation.Set + PropagatesDeletesAtEndOfEvent() bool + SetPropagatesDeletesAtEndOfEvent(value bool) + RetainsRegisteredObjects() bool + SetRetainsRegisteredObjects(value bool) + DeletedObjects() foundation.Set UserInfo() foundation.MutableDictionary + AutomaticallyMergesChangesFromParent() bool + SetAutomaticallyMergesChangesFromParent(value bool) + QueryGenerationToken() QueryGenerationToken + TransactionAuthor() string + SetTransactionAuthor(value string) + ConcurrencyType() ManagedObjectContextConcurrencyType + InsertedObjects() foundation.Set ShouldDeleteInaccessibleFaults() bool SetShouldDeleteInaccessibleFaults(value bool) - PropagatesDeletesAtEndOfEvent() bool - SetPropagatesDeletesAtEndOfEvent(value bool) - UndoManager() foundation.UndoManager - SetUndoManager(value foundation.IUndoManager) + HasChanges() bool ParentContext() ManagedObjectContext SetParentContext(value IManagedObjectContext) - AutomaticallyMergesChangesFromParent() bool - SetAutomaticallyMergesChangesFromParent(value bool) - DeletedObjects() foundation.Set + UpdatedObjects() foundation.Set + StalenessInterval() foundation.TimeInterval + SetStalenessInterval(value foundation.TimeInterval) } // An object space to manipulate and track changes to managed objects. [Full Topic] @@ -109,6 +109,43 @@ func (m_ ManagedObjectContext) Init() ManagedObjectContext { return rv } +// Returns an existing object from either the context or the persistent store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506686-existingobjectwithid?language=objc +func (m_ ManagedObjectContext) ExistingObjectWithIDError(objectID IManagedObjectID, error unsafe.Pointer) ManagedObject { + rv := objc.Call[ManagedObject](m_, objc.Sel("existingObjectWithID:error:"), objectID, error) + return rv +} + +// Merges the changes specified in a given notification. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506606-mergechangesfromcontextdidsaveno?language=objc +func (m_ ManagedObjectContext) MergeChangesFromContextDidSaveNotification(notification foundation.INotification) { + objc.Call[objc.Void](m_, objc.Sel("mergeChangesFromContextDidSaveNotification:"), notification) +} + +// Returns an object that exists in the context. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506789-objectregisteredforid?language=objc +func (m_ ManagedObjectContext) ObjectRegisteredForID(objectID IManagedObjectID) ManagedObject { + rv := objc.Call[ManagedObject](m_, objc.Sel("objectRegisteredForID:"), objectID) + return rv +} + +// Synchronously performs the specified block on the context’s queue. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506364-performblockandwait?language=objc +func (m_ ManagedObjectContext) PerformBlockAndWait(block func()) { + objc.Call[objc.Void](m_, objc.Sel("performBlockAndWait:"), block) +} + +// Marks an object for conflict detection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506843-detectconflictsforobject?language=objc +func (m_ ManagedObjectContext) DetectConflictsForObject(object IManagedObject) { + objc.Call[objc.Void](m_, objc.Sel("detectConflictsForObject:"), object) +} + // Specifies the store in which a newly inserted object will be saved. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506436-assignobject?language=objc @@ -116,41 +153,43 @@ func (m_ ManagedObjectContext) AssignObjectToPersistentStore(object objc.IObject objc.Call[objc.Void](m_, objc.Sel("assignObject:toPersistentStore:"), object, store) } -// Removes everything from the undo stack, discards all insertions and deletions, and restores updated objects to their last committed values. [Full Topic] +// Creates a log of the inaccessible fault. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506942-rollback?language=objc -func (m_ ManagedObjectContext) Rollback() { - objc.Call[objc.Void](m_, objc.Sel("rollback")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506810-shouldhandleinaccessiblefault?language=objc +func (m_ ManagedObjectContext) ShouldHandleInaccessibleFaultForObjectIDTriggeredByProperty(fault IManagedObject, oid IManagedObjectID, property IPropertyDescription) bool { + rv := objc.Call[bool](m_, objc.Sel("shouldHandleInaccessibleFault:forObjectID:triggeredByProperty:"), fault, oid, property) + return rv } -// Allows a context that has registered as an observer of a value to be notified of a change to that value. [Full Topic] +// Returns an array of objects that meet the criteria of the specified fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506849-observevalueforkeypath?language=objc -func (m_ ManagedObjectContext) ObserveValueForKeyPathOfObjectChangeContext(keyPath string, object objc.IObject, change map[string]objc.IObject, context unsafe.Pointer) { - objc.Call[objc.Void](m_, objc.Sel("observeValueForKeyPath:ofObject:change:context:"), keyPath, object, change, context) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506672-executefetchrequest?language=objc +func (m_ ManagedObjectContext) ExecuteFetchRequestError(request IFetchRequest, error unsafe.Pointer) []objc.Object { + rv := objc.Call[[]objc.Object](m_, objc.Sel("executeFetchRequest:error:"), request, error) + return rv } -// Passes a request to the persistent store without affecting the contents of the managed object context, and returns a persistent store result. [Full Topic] +// Returns the number of objects the specified request fetches when it executes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506834-executerequest?language=objc -func (m_ ManagedObjectContext) ExecuteRequestError(request IPersistentStoreRequest, error unsafe.Pointer) PersistentStoreResult { - rv := objc.Call[PersistentStoreResult](m_, objc.Sel("executeRequest:error:"), request, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506868-countforfetchrequest?language=objc +func (m_ ManagedObjectContext) CountForFetchRequestError(request IFetchRequest, error unsafe.Pointer) uint { + rv := objc.Call[uint](m_, objc.Sel("countForFetchRequest:error:"), request, error) return rv } -// Updates the persistent properties of a managed object to use the latest values from the persistent store. [Full Topic] +// Attempts to commit unsaved changes to registered objects to the context’s parent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506224-refreshobject?language=objc -func (m_ ManagedObjectContext) RefreshObjectMergeChanges(object IManagedObject, flag bool) { - objc.Call[objc.Void](m_, objc.Sel("refreshObject:mergeChanges:"), object, flag) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506866-save?language=objc +func (m_ ManagedObjectContext) Save(error unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("save:"), error) + return rv } -// Returns either an existing object from the context or a fault that represents that object. [Full Topic] +// Registers an object to be inserted in the context’s persistent store the next time changes are saved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506197-objectwithid?language=objc -func (m_ ManagedObjectContext) ObjectWithID(objectID IManagedObjectID) ManagedObject { - rv := objc.Call[ManagedObject](m_, objc.Sel("objectWithID:"), objectID) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506794-insertobject?language=objc +func (m_ ManagedObjectContext) InsertObject(object IManagedObject) { + objc.Call[objc.Void](m_, objc.Sel("insertObject:"), object) } // Handles changes from other processes or from a serialized state. [Full Topic] @@ -167,52 +206,43 @@ func ManagedObjectContext_MergeChangesFromRemoteContextSaveIntoContexts(changeNo ManagedObjectContextClass.MergeChangesFromRemoteContextSaveIntoContexts(changeNotificationData, contexts) } -// Sets the query generation this context should use. [Full Topic] +// Forces the context to process changes to the object graph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1640469-setquerygenerationfromtoken?language=objc -func (m_ ManagedObjectContext) SetQueryGenerationFromTokenError(generation IQueryGenerationToken, error unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("setQueryGenerationFromToken:error:"), generation, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506661-processpendingchanges?language=objc +func (m_ ManagedObjectContext) ProcessPendingChanges() { + objc.Call[objc.Void](m_, objc.Sel("processPendingChanges")) } -// Marks an object for conflict detection. [Full Topic] +// Removes everything from the undo stack, discards all insertions and deletions, and restores updated objects to their last committed values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506843-detectconflictsforobject?language=objc -func (m_ ManagedObjectContext) DetectConflictsForObject(object IManagedObject) { - objc.Call[objc.Void](m_, objc.Sel("detectConflictsForObject:"), object) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506942-rollback?language=objc +func (m_ ManagedObjectContext) Rollback() { + objc.Call[objc.Void](m_, objc.Sel("rollback")) } -// Returns the number of objects the specified request fetches when it executes. [Full Topic] +// Updates the persistent properties of a managed object to use the latest values from the persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506868-countforfetchrequest?language=objc -func (m_ ManagedObjectContext) CountForFetchRequestError(request IFetchRequest, error unsafe.Pointer) uint { - rv := objc.Call[uint](m_, objc.Sel("countForFetchRequest:error:"), request, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506224-refreshobject?language=objc +func (m_ ManagedObjectContext) RefreshObjectMergeChanges(object IManagedObject, flag bool) { + objc.Call[objc.Void](m_, objc.Sel("refreshObject:mergeChanges:"), object, flag) } -// Returns an array of objects that meet the criteria of the specified fetch request. [Full Topic] +// Passes a request to the persistent store without affecting the contents of the managed object context, and returns a persistent store result. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506672-executefetchrequest?language=objc -func (m_ ManagedObjectContext) ExecuteFetchRequestError(request IFetchRequest, error unsafe.Pointer) []objc.Object { - rv := objc.Call[[]objc.Object](m_, objc.Sel("executeFetchRequest:error:"), request, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506834-executerequest?language=objc +func (m_ ManagedObjectContext) ExecuteRequestError(request IPersistentStoreRequest, error unsafe.Pointer) PersistentStoreResult { + rv := objc.Call[PersistentStoreResult](m_, objc.Sel("executeRequest:error:"), request, error) return rv } -// Creates a log of the inaccessible fault. [Full Topic] +// Sets the query generation this context should use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506810-shouldhandleinaccessiblefault?language=objc -func (m_ ManagedObjectContext) ShouldHandleInaccessibleFaultForObjectIDTriggeredByProperty(fault IManagedObject, oid IManagedObjectID, property IPropertyDescription) bool { - rv := objc.Call[bool](m_, objc.Sel("shouldHandleInaccessibleFault:forObjectID:triggeredByProperty:"), fault, oid, property) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1640469-setquerygenerationfromtoken?language=objc +func (m_ ManagedObjectContext) SetQueryGenerationFromTokenError(generation IQueryGenerationToken, error unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("setQueryGenerationFromToken:error:"), generation, error) return rv } -// Refreshes all of the registered managed objects in the context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506217-refreshallobjects?language=objc -func (m_ ManagedObjectContext) RefreshAllObjects() { - objc.Call[objc.Void](m_, objc.Sel("refreshAllObjects")) -} - // Specifies an object that should be removed from its persistent store when changes are committed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506847-deleteobject?language=objc @@ -220,22 +250,28 @@ func (m_ ManagedObjectContext) DeleteObject(object IManagedObject) { objc.Call[objc.Void](m_, objc.Sel("deleteObject:"), object) } -// Returns an existing object from either the context or the persistent store. [Full Topic] +// Asynchronously performs the specified block on the context’s queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506686-existingobjectwithid?language=objc -func (m_ ManagedObjectContext) ExistingObjectWithIDError(objectID IManagedObjectID, error unsafe.Pointer) ManagedObject { - rv := objc.Call[ManagedObject](m_, objc.Sel("existingObjectWithID:error:"), objectID, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506578-performblock?language=objc +func (m_ ManagedObjectContext) PerformBlock(block func()) { + objc.Call[objc.Void](m_, objc.Sel("performBlock:"), block) } -// Converts to permanent IDs the object IDs of the objects in a given array. [Full Topic] +// Returns either an existing object from the context or a fault that represents that object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506793-obtainpermanentidsforobjects?language=objc -func (m_ ManagedObjectContext) ObtainPermanentIDsForObjectsError(objects []IManagedObject, error unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("obtainPermanentIDsForObjects:error:"), objects, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506197-objectwithid?language=objc +func (m_ ManagedObjectContext) ObjectWithID(objectID IManagedObjectID) ManagedObject { + rv := objc.Call[ManagedObject](m_, objc.Sel("objectWithID:"), objectID) return rv } +// Refreshes all of the registered managed objects in the context. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506217-refreshallobjects?language=objc +func (m_ ManagedObjectContext) RefreshAllObjects() { + objc.Call[objc.Void](m_, objc.Sel("refreshAllObjects")) +} + // Sends an undo message to the context’s undo manager, asking it to reverse the latest uncommitted changes applied to objects in the object graph. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506969-undo?language=objc @@ -243,19 +279,26 @@ func (m_ ManagedObjectContext) Undo() { objc.Call[objc.Void](m_, objc.Sel("undo")) } -// Registers an object to be inserted in the context’s persistent store the next time changes are saved. [Full Topic] +// Converts to permanent IDs the object IDs of the objects in a given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506794-insertobject?language=objc -func (m_ ManagedObjectContext) InsertObject(object IManagedObject) { - objc.Call[objc.Void](m_, objc.Sel("insertObject:"), object) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506793-obtainpermanentidsforobjects?language=objc +func (m_ ManagedObjectContext) ObtainPermanentIDsForObjectsError(objects []IManagedObject, error unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("obtainPermanentIDsForObjects:error:"), objects, error) + return rv } -// Attempts to commit unsaved changes to registered objects to the context’s parent store. [Full Topic] +// Sends a redo message to the context’s undo manager, asking it to reverse the latest undo operation applied to objects in the object graph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506866-save?language=objc -func (m_ ManagedObjectContext) Save(error unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("save:"), error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506688-redo?language=objc +func (m_ ManagedObjectContext) Redo() { + objc.Call[objc.Void](m_, objc.Sel("redo")) +} + +// Allows a context that has registered as an observer of a value to be notified of a change to that value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506849-observevalueforkeypath?language=objc +func (m_ ManagedObjectContext) ObserveValueForKeyPathOfObjectChangeContext(keyPath string, object objc.IObject, change map[string]objc.IObject, context unsafe.Pointer) { + objc.Call[objc.Void](m_, objc.Sel("observeValueForKeyPath:ofObject:change:context:"), keyPath, object, change, context) } // Returns the context to its base state. [Full Topic] @@ -265,63 +308,64 @@ func (m_ ManagedObjectContext) Reset() { objc.Call[objc.Void](m_, objc.Sel("reset")) } -// Returns an object that exists in the context. [Full Topic] +// The object that provides undo support for the context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506789-objectregisteredforid?language=objc -func (m_ ManagedObjectContext) ObjectRegisteredForID(objectID IManagedObjectID) ManagedObject { - rv := objc.Call[ManagedObject](m_, objc.Sel("objectRegisteredForID:"), objectID) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506663-undomanager?language=objc +func (m_ ManagedObjectContext) UndoManager() foundation.UndoManager { + rv := objc.Call[foundation.UndoManager](m_, objc.Sel("undoManager")) return rv } -// Merges the changes specified in a given notification. [Full Topic] +// The object that provides undo support for the context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506606-mergechangesfromcontextdidsaveno?language=objc -func (m_ ManagedObjectContext) MergeChangesFromContextDidSaveNotification(notification foundation.INotification) { - objc.Call[objc.Void](m_, objc.Sel("mergeChangesFromContextDidSaveNotification:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506663-undomanager?language=objc +func (m_ ManagedObjectContext) SetUndoManager(value foundation.IUndoManager) { + objc.Call[objc.Void](m_, objc.Sel("setUndoManager:"), value) } -// Asynchronously performs the specified block on the context’s queue. [Full Topic] +// The merge policy of the context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506578-performblock?language=objc -func (m_ ManagedObjectContext) PerformBlock(block func()) { - objc.Call[objc.Void](m_, objc.Sel("performBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506490-mergepolicy?language=objc +func (m_ ManagedObjectContext) MergePolicy() objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("mergePolicy")) + return rv } -// Synchronously performs the specified block on the context’s queue. [Full Topic] +// The merge policy of the context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506364-performblockandwait?language=objc -func (m_ ManagedObjectContext) PerformBlockAndWait(block func()) { - objc.Call[objc.Void](m_, objc.Sel("performBlockAndWait:"), block) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506490-mergepolicy?language=objc +func (m_ ManagedObjectContext) SetMergePolicy(value objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setMergePolicy:"), value) } -// Sends a redo message to the context’s undo manager, asking it to reverse the latest undo operation applied to objects in the object graph. [Full Topic] +// The persistent store coordinator of the context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506688-redo?language=objc -func (m_ ManagedObjectContext) Redo() { - objc.Call[objc.Void](m_, objc.Sel("redo")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506618-persistentstorecoordinator?language=objc +func (m_ ManagedObjectContext) PersistentStoreCoordinator() PersistentStoreCoordinator { + rv := objc.Call[PersistentStoreCoordinator](m_, objc.Sel("persistentStoreCoordinator")) + return rv } -// Forces the context to process changes to the object graph. [Full Topic] +// The persistent store coordinator of the context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506661-processpendingchanges?language=objc -func (m_ ManagedObjectContext) ProcessPendingChanges() { - objc.Call[objc.Void](m_, objc.Sel("processPendingChanges")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506618-persistentstorecoordinator?language=objc +func (m_ ManagedObjectContext) SetPersistentStoreCoordinator(value IPersistentStoreCoordinator) { + objc.Call[objc.Void](m_, objc.Sel("setPersistentStoreCoordinator:"), value) } -// A Boolean value that indicates whether the context has uncommitted changes. [Full Topic] +// The developer-provided name of the context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506954-haschanges?language=objc -func (m_ ManagedObjectContext) HasChanges() bool { - rv := objc.Call[bool](m_, objc.Sel("hasChanges")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506231-name?language=objc +func (m_ ManagedObjectContext) Name() string { + rv := objc.Call[string](m_, objc.Sel("name")) return rv } -// The concurrency type for the context. [Full Topic] +// The developer-provided name of the context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506792-concurrencytype?language=objc -func (m_ ManagedObjectContext) ConcurrencyType() ManagedObjectContextConcurrencyType { - rv := objc.Call[ManagedObjectContextConcurrencyType](m_, objc.Sel("concurrencyType")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506231-name?language=objc +func (m_ ManagedObjectContext) SetName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setName:"), value) } // The set of registered managed objects in the context. [Full Topic] @@ -332,6 +376,21 @@ func (m_ ManagedObjectContext) RegisteredObjects() foundation.Set { return rv } +// A Boolean value that indicates whether the context propagates deletes at the end of the event in which a change was made. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506228-propagatesdeletesatendofevent?language=objc +func (m_ ManagedObjectContext) PropagatesDeletesAtEndOfEvent() bool { + rv := objc.Call[bool](m_, objc.Sel("propagatesDeletesAtEndOfEvent")) + return rv +} + +// A Boolean value that indicates whether the context propagates deletes at the end of the event in which a change was made. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506228-propagatesdeletesatendofevent?language=objc +func (m_ ManagedObjectContext) SetPropagatesDeletesAtEndOfEvent(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setPropagatesDeletesAtEndOfEvent:"), value) +} + // A Boolean value that indicates whether the context keeps strong references to all registered managed objects. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506290-retainsregisteredobjects?language=objc @@ -347,49 +406,35 @@ func (m_ ManagedObjectContext) SetRetainsRegisteredObjects(value bool) { objc.Call[objc.Void](m_, objc.Sel("setRetainsRegisteredObjects:"), value) } -// The merge policy of the context. [Full Topic] +// The set of objects that will be removed from their persistent store during the next save operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506490-mergepolicy?language=objc -func (m_ ManagedObjectContext) MergePolicy() objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("mergePolicy")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506699-deletedobjects?language=objc +func (m_ ManagedObjectContext) DeletedObjects() foundation.Set { + rv := objc.Call[foundation.Set](m_, objc.Sel("deletedObjects")) return rv } -// The merge policy of the context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506490-mergepolicy?language=objc -func (m_ ManagedObjectContext) SetMergePolicy(value objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setMergePolicy:"), value) -} - -// The author for the context that is used as an identifier in persistent history transactions. [Full Topic] +// The user information for the context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/2892348-transactionauthor?language=objc -func (m_ ManagedObjectContext) TransactionAuthor() string { - rv := objc.Call[string](m_, objc.Sel("transactionAuthor")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506740-userinfo?language=objc +func (m_ ManagedObjectContext) UserInfo() foundation.MutableDictionary { + rv := objc.Call[foundation.MutableDictionary](m_, objc.Sel("userInfo")) return rv } -// The author for the context that is used as an identifier in persistent history transactions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/2892348-transactionauthor?language=objc -func (m_ ManagedObjectContext) SetTransactionAuthor(value string) { - objc.Call[objc.Void](m_, objc.Sel("setTransactionAuthor:"), value) -} - -// The maximum length of time that may have elapsed since the store previously fetched data before fulfilling a fault issues a new fetch. [Full Topic] +// A Boolean value that indicates whether the context automatically merges changes saved to its persistent store coordinator or parent context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506875-stalenessinterval?language=objc -func (m_ ManagedObjectContext) StalenessInterval() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](m_, objc.Sel("stalenessInterval")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1845237-automaticallymergeschangesfrompa?language=objc +func (m_ ManagedObjectContext) AutomaticallyMergesChangesFromParent() bool { + rv := objc.Call[bool](m_, objc.Sel("automaticallyMergesChangesFromParent")) return rv } -// The maximum length of time that may have elapsed since the store previously fetched data before fulfilling a fault issues a new fetch. [Full Topic] +// A Boolean value that indicates whether the context automatically merges changes saved to its persistent store coordinator or parent context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506875-stalenessinterval?language=objc -func (m_ ManagedObjectContext) SetStalenessInterval(value foundation.TimeInterval) { - objc.Call[objc.Void](m_, objc.Sel("setStalenessInterval:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1845237-automaticallymergeschangesfrompa?language=objc +func (m_ ManagedObjectContext) SetAutomaticallyMergesChangesFromParent(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAutomaticallyMergesChangesFromParent:"), value) } // Returns the token associated with the query generation currently in use by this context. [Full Topic] @@ -400,57 +445,34 @@ func (m_ ManagedObjectContext) QueryGenerationToken() QueryGenerationToken { return rv } -// The set of objects that have been inserted into the context but not yet saved in a persistent store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506192-insertedobjects?language=objc -func (m_ ManagedObjectContext) InsertedObjects() foundation.Set { - rv := objc.Call[foundation.Set](m_, objc.Sel("insertedObjects")) - return rv -} - -// The persistent store coordinator of the context. [Full Topic] +// The author for the context that is used as an identifier in persistent history transactions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506618-persistentstorecoordinator?language=objc -func (m_ ManagedObjectContext) PersistentStoreCoordinator() PersistentStoreCoordinator { - rv := objc.Call[PersistentStoreCoordinator](m_, objc.Sel("persistentStoreCoordinator")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/2892348-transactionauthor?language=objc +func (m_ ManagedObjectContext) TransactionAuthor() string { + rv := objc.Call[string](m_, objc.Sel("transactionAuthor")) return rv } -// The persistent store coordinator of the context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506618-persistentstorecoordinator?language=objc -func (m_ ManagedObjectContext) SetPersistentStoreCoordinator(value IPersistentStoreCoordinator) { - objc.Call[objc.Void](m_, objc.Sel("setPersistentStoreCoordinator:"), value) -} - -// The set of objects registered with the context that have uncommitted changes. [Full Topic] +// The author for the context that is used as an identifier in persistent history transactions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506985-updatedobjects?language=objc -func (m_ ManagedObjectContext) UpdatedObjects() foundation.Set { - rv := objc.Call[foundation.Set](m_, objc.Sel("updatedObjects")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/2892348-transactionauthor?language=objc +func (m_ ManagedObjectContext) SetTransactionAuthor(value string) { + objc.Call[objc.Void](m_, objc.Sel("setTransactionAuthor:"), value) } -// The developer-provided name of the context. [Full Topic] +// The concurrency type for the context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506231-name?language=objc -func (m_ ManagedObjectContext) Name() string { - rv := objc.Call[string](m_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506792-concurrencytype?language=objc +func (m_ ManagedObjectContext) ConcurrencyType() ManagedObjectContextConcurrencyType { + rv := objc.Call[ManagedObjectContextConcurrencyType](m_, objc.Sel("concurrencyType")) return rv } -// The developer-provided name of the context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506231-name?language=objc -func (m_ ManagedObjectContext) SetName(value string) { - objc.Call[objc.Void](m_, objc.Sel("setName:"), value) -} - -// The user information for the context. [Full Topic] +// The set of objects that have been inserted into the context but not yet saved in a persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506740-userinfo?language=objc -func (m_ ManagedObjectContext) UserInfo() foundation.MutableDictionary { - rv := objc.Call[foundation.MutableDictionary](m_, objc.Sel("userInfo")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506192-insertedobjects?language=objc +func (m_ ManagedObjectContext) InsertedObjects() foundation.Set { + rv := objc.Call[foundation.Set](m_, objc.Sel("insertedObjects")) return rv } @@ -469,36 +491,14 @@ func (m_ ManagedObjectContext) SetShouldDeleteInaccessibleFaults(value bool) { objc.Call[objc.Void](m_, objc.Sel("setShouldDeleteInaccessibleFaults:"), value) } -// A Boolean value that indicates whether the context propagates deletes at the end of the event in which a change was made. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506228-propagatesdeletesatendofevent?language=objc -func (m_ ManagedObjectContext) PropagatesDeletesAtEndOfEvent() bool { - rv := objc.Call[bool](m_, objc.Sel("propagatesDeletesAtEndOfEvent")) - return rv -} - -// A Boolean value that indicates whether the context propagates deletes at the end of the event in which a change was made. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506228-propagatesdeletesatendofevent?language=objc -func (m_ ManagedObjectContext) SetPropagatesDeletesAtEndOfEvent(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setPropagatesDeletesAtEndOfEvent:"), value) -} - -// The object that provides undo support for the context. [Full Topic] +// A Boolean value that indicates whether the context has uncommitted changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506663-undomanager?language=objc -func (m_ ManagedObjectContext) UndoManager() foundation.UndoManager { - rv := objc.Call[foundation.UndoManager](m_, objc.Sel("undoManager")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506954-haschanges?language=objc +func (m_ ManagedObjectContext) HasChanges() bool { + rv := objc.Call[bool](m_, objc.Sel("hasChanges")) return rv } -// The object that provides undo support for the context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506663-undomanager?language=objc -func (m_ ManagedObjectContext) SetUndoManager(value foundation.IUndoManager) { - objc.Call[objc.Void](m_, objc.Sel("setUndoManager:"), value) -} - // The parent of the context. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506529-parentcontext?language=objc @@ -514,25 +514,25 @@ func (m_ ManagedObjectContext) SetParentContext(value IManagedObjectContext) { objc.Call[objc.Void](m_, objc.Sel("setParentContext:"), value) } -// A Boolean value that indicates whether the context automatically merges changes saved to its persistent store coordinator or parent context. [Full Topic] +// The set of objects registered with the context that have uncommitted changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1845237-automaticallymergeschangesfrompa?language=objc -func (m_ ManagedObjectContext) AutomaticallyMergesChangesFromParent() bool { - rv := objc.Call[bool](m_, objc.Sel("automaticallyMergesChangesFromParent")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506985-updatedobjects?language=objc +func (m_ ManagedObjectContext) UpdatedObjects() foundation.Set { + rv := objc.Call[foundation.Set](m_, objc.Sel("updatedObjects")) return rv } -// A Boolean value that indicates whether the context automatically merges changes saved to its persistent store coordinator or parent context. [Full Topic] +// The maximum length of time that may have elapsed since the store previously fetched data before fulfilling a fault issues a new fetch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1845237-automaticallymergeschangesfrompa?language=objc -func (m_ ManagedObjectContext) SetAutomaticallyMergesChangesFromParent(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAutomaticallyMergesChangesFromParent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506875-stalenessinterval?language=objc +func (m_ ManagedObjectContext) StalenessInterval() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](m_, objc.Sel("stalenessInterval")) + return rv } -// The set of objects that will be removed from their persistent store during the next save operation. [Full Topic] +// The maximum length of time that may have elapsed since the store previously fetched data before fulfilling a fault issues a new fetch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506699-deletedobjects?language=objc -func (m_ ManagedObjectContext) DeletedObjects() foundation.Set { - rv := objc.Call[foundation.Set](m_, objc.Sel("deletedObjects")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506875-stalenessinterval?language=objc +func (m_ ManagedObjectContext) SetStalenessInterval(value foundation.TimeInterval) { + objc.Call[objc.Void](m_, objc.Sel("setStalenessInterval:"), value) } diff --git a/macos/coredata/managed_object_id.gen.go b/macos/coredata/managed_object_id.gen.go index 43106f3f..b6fd6c59 100644 --- a/macos/coredata/managed_object_id.gen.go +++ b/macos/coredata/managed_object_id.gen.go @@ -20,9 +20,9 @@ type _ManagedObjectIDClass struct { type IManagedObjectID interface { objc.IObject URIRepresentation() foundation.URL + Entity() EntityDescription PersistentStore() PersistentStore IsTemporaryID() bool - Entity() EntityDescription } // A compact, universal identifier for a managed object. [Full Topic] @@ -66,6 +66,14 @@ func (m_ ManagedObjectID) URIRepresentation() foundation.URL { return rv } +// The entity description associated with the object ID. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectid/1391684-entity?language=objc +func (m_ ManagedObjectID) Entity() EntityDescription { + rv := objc.Call[EntityDescription](m_, objc.Sel("entity")) + return rv +} + // The persistent store that fetched the object for the object ID. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectid/1391693-persistentstore?language=objc @@ -81,11 +89,3 @@ func (m_ ManagedObjectID) IsTemporaryID() bool { rv := objc.Call[bool](m_, objc.Sel("isTemporaryID")) return rv } - -// The entity description associated with the object ID. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectid/1391684-entity?language=objc -func (m_ ManagedObjectID) Entity() EntityDescription { - rv := objc.Call[EntityDescription](m_, objc.Sel("entity")) - return rv -} diff --git a/macos/coredata/managed_object_model.gen.go b/macos/coredata/managed_object_model.gen.go index b3af4e74..a642ab8b 100644 --- a/macos/coredata/managed_object_model.gen.go +++ b/macos/coredata/managed_object_model.gen.go @@ -19,22 +19,22 @@ type _ManagedObjectModelClass struct { // An interface definition for the [ManagedObjectModel] class. type IManagedObjectModel interface { objc.IObject + FetchRequestFromTemplateWithNameSubstitutionVariables(name string, variables map[string]objc.IObject) FetchRequest EntitiesForConfiguration(configuration string) []EntityDescription SetFetchRequestTemplateForName(fetchRequestTemplate IFetchRequest, name string) - SetEntitiesForConfiguration(entities []IEntityDescription, configuration string) - FetchRequestFromTemplateWithNameSubstitutionVariables(name string, variables map[string]objc.IObject) FetchRequest IsConfigurationCompatibleWithStoreMetadata(configuration string, metadata map[string]objc.IObject) bool FetchRequestTemplateForName(name string) FetchRequest - EntityVersionHashesByName() map[string][]byte - Entities() []EntityDescription - SetEntities(value []IEntityDescription) + SetEntitiesForConfiguration(entities []IEntityDescription, configuration string) VersionIdentifiers() foundation.Set SetVersionIdentifiers(value foundation.ISet) - Configurations() []string LocalizationDictionary() map[string]string SetLocalizationDictionary(value map[string]string) - EntitiesByName() map[string]EntityDescription FetchRequestTemplatesByName() map[string]FetchRequest + Entities() []EntityDescription + SetEntities(value []IEntityDescription) + EntitiesByName() map[string]EntityDescription + EntityVersionHashesByName() map[string][]byte + Configurations() []string } // A programmatic representation of the .xcdatamodeld file describing your objects. [Full Topic] @@ -50,11 +50,6 @@ func ManagedObjectModelFrom(ptr unsafe.Pointer) ManagedObjectModel { } } -func (m_ ManagedObjectModel) Init() ManagedObjectModel { - rv := objc.Call[ManagedObjectModel](m_, objc.Sel("init")) - return rv -} - func (m_ ManagedObjectModel) InitWithContentsOfURL(url foundation.IURL) ManagedObjectModel { rv := objc.Call[ManagedObjectModel](m_, objc.Sel("initWithContentsOfURL:"), url) return rv @@ -69,6 +64,11 @@ func NewManagedObjectModelWithContentsOfURL(url foundation.IURL) ManagedObjectMo return instance } +func (m_ ManagedObjectModel) Init() ManagedObjectModel { + rv := objc.Call[ManagedObjectModel](m_, objc.Sel("init")) + return rv +} + func (mc _ManagedObjectModelClass) Alloc() ManagedObjectModel { rv := objc.Call[ManagedObjectModel](mc, objc.Sel("alloc")) return rv @@ -84,29 +84,22 @@ func NewManagedObjectModel() ManagedObjectModel { return ManagedObjectModelClass.New() } -// Returns the entities of the model for a specified configuration. [Full Topic] +// Returns a copy of the fetch request template with the variables substituted by values from the substitutions dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506693-entitiesforconfiguration?language=objc -func (m_ ManagedObjectModel) EntitiesForConfiguration(configuration string) []EntityDescription { - rv := objc.Call[[]EntityDescription](m_, objc.Sel("entitiesForConfiguration:"), configuration) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506422-fetchrequestfromtemplatewithname?language=objc +func (m_ ManagedObjectModel) FetchRequestFromTemplateWithNameSubstitutionVariables(name string, variables map[string]objc.IObject) FetchRequest { + rv := objc.Call[FetchRequest](m_, objc.Sel("fetchRequestFromTemplateWithName:substitutionVariables:"), name, variables) return rv } -// Returns a model created by merging all the models found in given bundles. [Full Topic] +// Returns the entities of the model for a specified configuration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506704-mergedmodelfrombundles?language=objc -func (mc _ManagedObjectModelClass) MergedModelFromBundles(bundles []foundation.IBundle) ManagedObjectModel { - rv := objc.Call[ManagedObjectModel](mc, objc.Sel("mergedModelFromBundles:"), bundles) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506693-entitiesforconfiguration?language=objc +func (m_ ManagedObjectModel) EntitiesForConfiguration(configuration string) []EntityDescription { + rv := objc.Call[[]EntityDescription](m_, objc.Sel("entitiesForConfiguration:"), configuration) return rv } -// Returns a model created by merging all the models found in given bundles. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506704-mergedmodelfrombundles?language=objc -func ManagedObjectModel_MergedModelFromBundles(bundles []foundation.IBundle) ManagedObjectModel { - return ManagedObjectModelClass.MergedModelFromBundles(bundles) -} - // Associates the specified fetch request with the receiver using the given name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506695-setfetchrequesttemplate?language=objc @@ -114,21 +107,6 @@ func (m_ ManagedObjectModel) SetFetchRequestTemplateForName(fetchRequestTemplate objc.Call[objc.Void](m_, objc.Sel("setFetchRequestTemplate:forName:"), fetchRequestTemplate, name) } -// Associates the specified entities with the model using the given configuration name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506287-setentities?language=objc -func (m_ ManagedObjectModel) SetEntitiesForConfiguration(entities []IEntityDescription, configuration string) { - objc.Call[objc.Void](m_, objc.Sel("setEntities:forConfiguration:"), entities, configuration) -} - -// Returns a copy of the fetch request template with the variables substituted by values from the substitutions dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506422-fetchrequestfromtemplatewithname?language=objc -func (m_ ManagedObjectModel) FetchRequestFromTemplateWithNameSubstitutionVariables(name string, variables map[string]objc.IObject) FetchRequest { - rv := objc.Call[FetchRequest](m_, objc.Sel("fetchRequestFromTemplateWithName:substitutionVariables:"), name, variables) - return rv -} - // Returns a Boolean value that indicates whether a given configuration in the model is compatible with given metadata from a persistent store. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506940-isconfiguration?language=objc @@ -137,19 +115,19 @@ func (m_ ManagedObjectModel) IsConfigurationCompatibleWithStoreMetadata(configur return rv } -// Returns a merged model from a specified array for the version information in provided metadata. [Full Topic] +// Returns the fetch request with a specified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506788-mergedmodelfrombundles?language=objc -func (mc _ManagedObjectModelClass) MergedModelFromBundlesForStoreMetadata(bundles []foundation.IBundle, metadata map[string]objc.IObject) ManagedObjectModel { - rv := objc.Call[ManagedObjectModel](mc, objc.Sel("mergedModelFromBundles:forStoreMetadata:"), bundles, metadata) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506369-fetchrequesttemplateforname?language=objc +func (m_ ManagedObjectModel) FetchRequestTemplateForName(name string) FetchRequest { + rv := objc.Call[FetchRequest](m_, objc.Sel("fetchRequestTemplateForName:"), name) return rv } -// Returns a merged model from a specified array for the version information in provided metadata. [Full Topic] +// Associates the specified entities with the model using the given configuration name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506788-mergedmodelfrombundles?language=objc -func ManagedObjectModel_MergedModelFromBundlesForStoreMetadata(bundles []foundation.IBundle, metadata map[string]objc.IObject) ManagedObjectModel { - return ManagedObjectModelClass.MergedModelFromBundlesForStoreMetadata(bundles, metadata) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506287-setentities?language=objc +func (m_ ManagedObjectModel) SetEntitiesForConfiguration(entities []IEntityDescription, configuration string) { + objc.Call[objc.Void](m_, objc.Sel("setEntities:forConfiguration:"), entities, configuration) } // Returns, for the version information in given metadata, a model merged from a given array of models. [Full Topic] @@ -167,50 +145,19 @@ func ManagedObjectModel_ModelByMergingModelsForStoreMetadata(models []IManagedOb return ManagedObjectModelClass.ModelByMergingModelsForStoreMetadata(models, metadata) } -// Creates a single model from an array of existing models. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506450-modelbymergingmodels?language=objc -func (mc _ManagedObjectModelClass) ModelByMergingModels(models []IManagedObjectModel) ManagedObjectModel { - rv := objc.Call[ManagedObjectModel](mc, objc.Sel("modelByMergingModels:"), models) - return rv -} - -// Creates a single model from an array of existing models. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506450-modelbymergingmodels?language=objc -func ManagedObjectModel_ModelByMergingModels(models []IManagedObjectModel) ManagedObjectModel { - return ManagedObjectModelClass.ModelByMergingModels(models) -} - -// Returns the fetch request with a specified name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506369-fetchrequesttemplateforname?language=objc -func (m_ ManagedObjectModel) FetchRequestTemplateForName(name string) FetchRequest { - rv := objc.Call[FetchRequest](m_, objc.Sel("fetchRequestTemplateForName:"), name) - return rv -} - -// The dictionary of the model’s entity names and their corresponding version hashes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506992-entityversionhashesbyname?language=objc -func (m_ ManagedObjectModel) EntityVersionHashesByName() map[string][]byte { - rv := objc.Call[map[string][]byte](m_, objc.Sel("entityVersionHashesByName")) - return rv -} - -// The entities in the model. [Full Topic] +// Returns a model created by merging all the models found in given bundles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506318-entities?language=objc -func (m_ ManagedObjectModel) Entities() []EntityDescription { - rv := objc.Call[[]EntityDescription](m_, objc.Sel("entities")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506704-mergedmodelfrombundles?language=objc +func (mc _ManagedObjectModelClass) MergedModelFromBundles(bundles []foundation.IBundle) ManagedObjectModel { + rv := objc.Call[ManagedObjectModel](mc, objc.Sel("mergedModelFromBundles:"), bundles) return rv } -// The entities in the model. [Full Topic] +// Returns a model created by merging all the models found in given bundles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506318-entities?language=objc -func (m_ ManagedObjectModel) SetEntities(value []IEntityDescription) { - objc.Call[objc.Void](m_, objc.Sel("setEntities:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506704-mergedmodelfrombundles?language=objc +func ManagedObjectModel_MergedModelFromBundles(bundles []foundation.IBundle) ManagedObjectModel { + return ManagedObjectModelClass.MergedModelFromBundles(bundles) } // The set of developer-defined version identifiers for the object model. [Full Topic] @@ -228,14 +175,6 @@ func (m_ ManagedObjectModel) SetVersionIdentifiers(value foundation.ISet) { objc.Call[objc.Void](m_, objc.Sel("setVersionIdentifiers:"), value) } -// All the available configuration names of the model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506804-configurations?language=objc -func (m_ ManagedObjectModel) Configurations() []string { - rv := objc.Call[[]string](m_, objc.Sel("configurations")) - return rv -} - // The localization dictionary of the model. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506846-localizationdictionary?language=objc @@ -251,6 +190,29 @@ func (m_ ManagedObjectModel) SetLocalizationDictionary(value map[string]string) objc.Call[objc.Void](m_, objc.Sel("setLocalizationDictionary:"), value) } +// A dictionary of the receiver’s fetch request templates, keyed by name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506580-fetchrequesttemplatesbyname?language=objc +func (m_ ManagedObjectModel) FetchRequestTemplatesByName() map[string]FetchRequest { + rv := objc.Call[map[string]FetchRequest](m_, objc.Sel("fetchRequestTemplatesByName")) + return rv +} + +// The entities in the model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506318-entities?language=objc +func (m_ ManagedObjectModel) Entities() []EntityDescription { + rv := objc.Call[[]EntityDescription](m_, objc.Sel("entities")) + return rv +} + +// The entities in the model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506318-entities?language=objc +func (m_ ManagedObjectModel) SetEntities(value []IEntityDescription) { + objc.Call[objc.Void](m_, objc.Sel("setEntities:"), value) +} + // The entities of the model, keyed by name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506203-entitiesbyname?language=objc @@ -259,10 +221,18 @@ func (m_ ManagedObjectModel) EntitiesByName() map[string]EntityDescription { return rv } -// A dictionary of the receiver’s fetch request templates, keyed by name. [Full Topic] +// The dictionary of the model’s entity names and their corresponding version hashes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506580-fetchrequesttemplatesbyname?language=objc -func (m_ ManagedObjectModel) FetchRequestTemplatesByName() map[string]FetchRequest { - rv := objc.Call[map[string]FetchRequest](m_, objc.Sel("fetchRequestTemplatesByName")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506992-entityversionhashesbyname?language=objc +func (m_ ManagedObjectModel) EntityVersionHashesByName() map[string][]byte { + rv := objc.Call[map[string][]byte](m_, objc.Sel("entityVersionHashesByName")) + return rv +} + +// All the available configuration names of the model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506804-configurations?language=objc +func (m_ ManagedObjectModel) Configurations() []string { + rv := objc.Call[[]string](m_, objc.Sel("configurations")) return rv } diff --git a/macos/coredata/mapping_model.gen.go b/macos/coredata/mapping_model.gen.go index 0643a6ef..78601e78 100644 --- a/macos/coredata/mapping_model.gen.go +++ b/macos/coredata/mapping_model.gen.go @@ -19,9 +19,9 @@ type _MappingModelClass struct { // An interface definition for the [MappingModel] class. type IMappingModel interface { objc.IObject + EntityMappingsByName() map[string]EntityMapping EntityMappings() []EntityMapping SetEntityMappings(value []IEntityMapping) - EntityMappingsByName() map[string]EntityMapping } // A model instance that specifies how to map a model from a source to a destination managed object model. [Full Topic] @@ -101,6 +101,14 @@ func MappingModel_InferredMappingModelForSourceModelDestinationModelError(source return MappingModelClass.InferredMappingModelForSourceModelDestinationModelError(sourceModel, destinationModel, error) } +// The entity mappings for the mapping model, keyed by name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmappingmodel/1506179-entitymappingsbyname?language=objc +func (m_ MappingModel) EntityMappingsByName() map[string]EntityMapping { + rv := objc.Call[map[string]EntityMapping](m_, objc.Sel("entityMappingsByName")) + return rv +} + // The entity mappings for the mapping model. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmappingmodel/1506196-entitymappings?language=objc @@ -115,11 +123,3 @@ func (m_ MappingModel) EntityMappings() []EntityMapping { func (m_ MappingModel) SetEntityMappings(value []IEntityMapping) { objc.Call[objc.Void](m_, objc.Sel("setEntityMappings:"), value) } - -// The entity mappings for the mapping model, keyed by name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmappingmodel/1506179-entitymappingsbyname?language=objc -func (m_ MappingModel) EntityMappingsByName() map[string]EntityMapping { - rv := objc.Call[map[string]EntityMapping](m_, objc.Sel("entityMappingsByName")) - return rv -} diff --git a/macos/coredata/merge_conflict.gen.go b/macos/coredata/merge_conflict.gen.go index b5a3cbaf..a7a09788 100644 --- a/macos/coredata/merge_conflict.gen.go +++ b/macos/coredata/merge_conflict.gen.go @@ -19,11 +19,11 @@ type _MergeConflictClass struct { type IMergeConflict interface { objc.IObject CachedSnapshot() map[string]objc.Object - SourceObject() ManagedObject OldVersionNumber() uint - PersistedSnapshot() map[string]objc.Object + SourceObject() ManagedObject NewVersionNumber() uint ObjectSnapshot() map[string]objc.Object + PersistedSnapshot() map[string]objc.Object } // An encapsulation of conflicts that occur during an attempt to save changes in a managed object context. [Full Topic] @@ -81,14 +81,6 @@ func (m_ MergeConflict) CachedSnapshot() map[string]objc.Object { return rv } -// The source object for the conflict. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergeconflict/1506809-sourceobject?language=objc -func (m_ MergeConflict) SourceObject() ManagedObject { - rv := objc.Call[ManagedObject](m_, objc.Sel("sourceObject")) - return rv -} - // The old version number for the change. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergeconflict/1506271-oldversionnumber?language=objc @@ -97,11 +89,11 @@ func (m_ MergeConflict) OldVersionNumber() uint { return rv } -// A dictionary containing the values of the source object held in the persistent store. [Full Topic] +// The source object for the conflict. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergeconflict/1506412-persistedsnapshot?language=objc -func (m_ MergeConflict) PersistedSnapshot() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](m_, objc.Sel("persistedSnapshot")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergeconflict/1506809-sourceobject?language=objc +func (m_ MergeConflict) SourceObject() ManagedObject { + rv := objc.Call[ManagedObject](m_, objc.Sel("sourceObject")) return rv } @@ -120,3 +112,11 @@ func (m_ MergeConflict) ObjectSnapshot() map[string]objc.Object { rv := objc.Call[map[string]objc.Object](m_, objc.Sel("objectSnapshot")) return rv } + +// A dictionary containing the values of the source object held in the persistent store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergeconflict/1506412-persistedsnapshot?language=objc +func (m_ MergeConflict) PersistedSnapshot() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](m_, objc.Sel("persistedSnapshot")) + return rv +} diff --git a/macos/coredata/merge_policy.gen.go b/macos/coredata/merge_policy.gen.go index b1086825..b21b9e81 100644 --- a/macos/coredata/merge_policy.gen.go +++ b/macos/coredata/merge_policy.gen.go @@ -18,10 +18,10 @@ type _MergePolicyClass struct { // An interface definition for the [MergePolicy] class. type IMergePolicy interface { objc.IObject - InitWithMergeType(ty MergePolicyType) objc.Object ResolveConstraintConflictsError(list []IConstraintConflict, error unsafe.Pointer) bool - ResolveOptimisticLockingVersionConflictsError(list []IMergeConflict, error unsafe.Pointer) bool ResolveConflictsError(list []objc.IObject, error unsafe.Pointer) bool + InitWithMergeType(ty MergePolicyType) objc.Object + ResolveOptimisticLockingVersionConflictsError(list []IMergeConflict, error unsafe.Pointer) bool MergeType() MergePolicyType } @@ -58,14 +58,6 @@ func (m_ MergePolicy) Init() MergePolicy { return rv } -// Returns a merge policy initialized with a given policy type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1506763-initwithmergetype?language=objc -func (m_ MergePolicy) InitWithMergeType(ty MergePolicyType) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("initWithMergeType:"), ty) - return rv -} - // Resolves the conflicts in a given list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1506678-resolveconstraintconflicts?language=objc @@ -74,14 +66,6 @@ func (m_ MergePolicy) ResolveConstraintConflictsError(list []IConstraintConflict return rv } -// Resolves the conflicts in a given list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1506787-resolveoptimisticlockingversionc?language=objc -func (m_ MergePolicy) ResolveOptimisticLockingVersionConflictsError(list []IMergeConflict, error unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("resolveOptimisticLockingVersionConflicts:error:"), list, error) - return rv -} - // Resolves the conflicts in a given list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1506253-resolveconflicts?language=objc @@ -90,19 +74,20 @@ func (m_ MergePolicy) ResolveConflictsError(list []objc.IObject, error unsafe.Po return rv } -// The default merge policy for all managed object contexts. [Full Topic] +// Returns a merge policy initialized with a given policy type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1690612-errormergepolicy?language=objc -func (mc _MergePolicyClass) ErrorMergePolicy() MergePolicy { - rv := objc.Call[MergePolicy](mc, objc.Sel("errorMergePolicy")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1506763-initwithmergetype?language=objc +func (m_ MergePolicy) InitWithMergeType(ty MergePolicyType) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("initWithMergeType:"), ty) return rv } -// The default merge policy for all managed object contexts. [Full Topic] +// Resolves the conflicts in a given list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1690612-errormergepolicy?language=objc -func MergePolicy_ErrorMergePolicy() MergePolicy { - return MergePolicyClass.ErrorMergePolicy() +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1506787-resolveoptimisticlockingversionc?language=objc +func (m_ MergePolicy) ResolveOptimisticLockingVersionConflictsError(list []IMergeConflict, error unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("resolveOptimisticLockingVersionConflicts:error:"), list, error) + return rv } // A property-based merge policy that applies in-memory changes. [Full Topic] @@ -120,21 +105,6 @@ func MergePolicy_MergeByPropertyObjectTrumpMergePolicy() MergePolicy { return MergePolicyClass.MergeByPropertyObjectTrumpMergePolicy() } -// A merge policy that overwrites the entire stored object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1690610-overwritemergepolicy?language=objc -func (mc _MergePolicyClass) OverwriteMergePolicy() MergePolicy { - rv := objc.Call[MergePolicy](mc, objc.Sel("overwriteMergePolicy")) - return rv -} - -// A merge policy that overwrites the entire stored object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1690610-overwritemergepolicy?language=objc -func MergePolicy_OverwriteMergePolicy() MergePolicy { - return MergePolicyClass.OverwriteMergePolicy() -} - // The merge type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1506675-mergetype?language=objc @@ -172,3 +142,33 @@ func (mc _MergePolicyClass) RollbackMergePolicy() MergePolicy { func MergePolicy_RollbackMergePolicy() MergePolicy { return MergePolicyClass.RollbackMergePolicy() } + +// The default merge policy for all managed object contexts. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1690612-errormergepolicy?language=objc +func (mc _MergePolicyClass) ErrorMergePolicy() MergePolicy { + rv := objc.Call[MergePolicy](mc, objc.Sel("errorMergePolicy")) + return rv +} + +// The default merge policy for all managed object contexts. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1690612-errormergepolicy?language=objc +func MergePolicy_ErrorMergePolicy() MergePolicy { + return MergePolicyClass.ErrorMergePolicy() +} + +// A merge policy that overwrites the entire stored object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1690610-overwritemergepolicy?language=objc +func (mc _MergePolicyClass) OverwriteMergePolicy() MergePolicy { + rv := objc.Call[MergePolicy](mc, objc.Sel("overwriteMergePolicy")) + return rv +} + +// A merge policy that overwrites the entire stored object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1690610-overwritemergepolicy?language=objc +func MergePolicy_OverwriteMergePolicy() MergePolicy { + return MergePolicyClass.OverwriteMergePolicy() +} diff --git a/macos/coredata/migration_manager.gen.go b/macos/coredata/migration_manager.gen.go index e902a5c8..c7692106 100644 --- a/macos/coredata/migration_manager.gen.go +++ b/macos/coredata/migration_manager.gen.go @@ -19,24 +19,24 @@ type _MigrationManagerClass struct { // An interface definition for the [MigrationManager] class. type IMigrationManager interface { objc.IObject - CancelMigrationWithError(error foundation.IError) - Reset() - DestinationInstancesForEntityMappingNamedSourceInstances(mappingName string, sourceInstances []IManagedObject) []ManagedObject - SourceInstancesForEntityMappingNamedDestinationInstances(mappingName string, destinationInstances []IManagedObject) []ManagedObject - SourceEntityForEntityMapping(mEntity IEntityMapping) EntityDescription DestinationEntityForEntityMapping(mEntity IEntityMapping) EntityDescription + SourceInstancesForEntityMappingNamedDestinationInstances(mappingName string, destinationInstances []IManagedObject) []ManagedObject AssociateSourceInstanceWithDestinationInstanceForEntityMapping(sourceInstance IManagedObject, destinationInstance IManagedObject, entityMapping IEntityMapping) + DestinationInstancesForEntityMappingNamedSourceInstances(mappingName string, sourceInstances []IManagedObject) []ManagedObject + SourceEntityForEntityMapping(mEntity IEntityMapping) EntityDescription + CancelMigrationWithError(error foundation.IError) + Reset() + SourceModel() ManagedObjectModel + DestinationContext() ManagedObjectContext + SourceContext() ManagedObjectContext + DestinationModel() ManagedObjectModel UsesStoreSpecificMigrationManager() bool SetUsesStoreSpecificMigrationManager(value bool) + MigrationProgress() float32 UserInfo() foundation.Dictionary SetUserInfo(value foundation.Dictionary) CurrentEntityMapping() EntityMapping MappingModel() MappingModel - MigrationProgress() float32 - SourceModel() ManagedObjectModel - DestinationModel() ManagedObjectModel - SourceContext() ManagedObjectContext - DestinationContext() ManagedObjectContext } // A migration manager instance that performs a migration of data from one persistent store to another using a given mapping model. [Full Topic] @@ -86,6 +86,45 @@ func (m_ MigrationManager) Init() MigrationManager { return rv } +// Returns the entity description for the destination entity of a given entity mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417598-destinationentityforentitymappin?language=objc +func (m_ MigrationManager) DestinationEntityForEntityMapping(mEntity IEntityMapping) EntityDescription { + rv := objc.Call[EntityDescription](m_, objc.Sel("destinationEntityForEntityMapping:"), mEntity) + return rv +} + +// Returns the managed object instances in the source store used to create the given destination instances for the passed in property mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417580-sourceinstancesforentitymappingn?language=objc +func (m_ MigrationManager) SourceInstancesForEntityMappingNamedDestinationInstances(mappingName string, destinationInstances []IManagedObject) []ManagedObject { + rv := objc.Call[[]ManagedObject](m_, objc.Sel("sourceInstancesForEntityMappingNamed:destinationInstances:"), mappingName, destinationInstances) + return rv +} + +// Associates a given source managed object instance with an array of destination instances for a given property mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417604-associatesourceinstance?language=objc +func (m_ MigrationManager) AssociateSourceInstanceWithDestinationInstanceForEntityMapping(sourceInstance IManagedObject, destinationInstance IManagedObject, entityMapping IEntityMapping) { + objc.Call[objc.Void](m_, objc.Sel("associateSourceInstance:withDestinationInstance:forEntityMapping:"), sourceInstance, destinationInstance, entityMapping) +} + +// Returns the managed object instances created in the destination store for the named entity mapping for the given array of source instances. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417594-destinationinstancesforentitymap?language=objc +func (m_ MigrationManager) DestinationInstancesForEntityMappingNamedSourceInstances(mappingName string, sourceInstances []IManagedObject) []ManagedObject { + rv := objc.Call[[]ManagedObject](m_, objc.Sel("destinationInstancesForEntityMappingNamed:sourceInstances:"), mappingName, sourceInstances) + return rv +} + +// Returns the entity description for the source entity of a given entity mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417596-sourceentityforentitymapping?language=objc +func (m_ MigrationManager) SourceEntityForEntityMapping(mEntity IEntityMapping) EntityDescription { + rv := objc.Call[EntityDescription](m_, objc.Sel("sourceEntityForEntityMapping:"), mEntity) + return rv +} + // Cancels the migration with a given error. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417608-cancelmigrationwitherror?language=objc @@ -100,45 +139,38 @@ func (m_ MigrationManager) Reset() { objc.Call[objc.Void](m_, objc.Sel("reset")) } -// Returns the managed object instances created in the destination store for the named entity mapping for the given array of source instances. [Full Topic] +// The source model for the migration manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417594-destinationinstancesforentitymap?language=objc -func (m_ MigrationManager) DestinationInstancesForEntityMappingNamedSourceInstances(mappingName string, sourceInstances []IManagedObject) []ManagedObject { - rv := objc.Call[[]ManagedObject](m_, objc.Sel("destinationInstancesForEntityMappingNamed:sourceInstances:"), mappingName, sourceInstances) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417592-sourcemodel?language=objc +func (m_ MigrationManager) SourceModel() ManagedObjectModel { + rv := objc.Call[ManagedObjectModel](m_, objc.Sel("sourceModel")) return rv } -// Returns the managed object instances in the source store used to create the given destination instances for the passed in property mapping. [Full Topic] +// The managed object context the migration manager uses for writing the destination persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417580-sourceinstancesforentitymappingn?language=objc -func (m_ MigrationManager) SourceInstancesForEntityMappingNamedDestinationInstances(mappingName string, destinationInstances []IManagedObject) []ManagedObject { - rv := objc.Call[[]ManagedObject](m_, objc.Sel("sourceInstancesForEntityMappingNamed:destinationInstances:"), mappingName, destinationInstances) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417578-destinationcontext?language=objc +func (m_ MigrationManager) DestinationContext() ManagedObjectContext { + rv := objc.Call[ManagedObjectContext](m_, objc.Sel("destinationContext")) return rv } -// Returns the entity description for the source entity of a given entity mapping. [Full Topic] +// The managed object context the migration manager uses for reading the source persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417596-sourceentityforentitymapping?language=objc -func (m_ MigrationManager) SourceEntityForEntityMapping(mEntity IEntityMapping) EntityDescription { - rv := objc.Call[EntityDescription](m_, objc.Sel("sourceEntityForEntityMapping:"), mEntity) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417576-sourcecontext?language=objc +func (m_ MigrationManager) SourceContext() ManagedObjectContext { + rv := objc.Call[ManagedObjectContext](m_, objc.Sel("sourceContext")) return rv } -// Returns the entity description for the destination entity of a given entity mapping. [Full Topic] +// The destination model for the migration manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417598-destinationentityforentitymappin?language=objc -func (m_ MigrationManager) DestinationEntityForEntityMapping(mEntity IEntityMapping) EntityDescription { - rv := objc.Call[EntityDescription](m_, objc.Sel("destinationEntityForEntityMapping:"), mEntity) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417610-destinationmodel?language=objc +func (m_ MigrationManager) DestinationModel() ManagedObjectModel { + rv := objc.Call[ManagedObjectModel](m_, objc.Sel("destinationModel")) return rv } -// Associates a given source managed object instance with an array of destination instances for a given property mapping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417604-associatesourceinstance?language=objc -func (m_ MigrationManager) AssociateSourceInstanceWithDestinationInstanceForEntityMapping(sourceInstance IManagedObject, destinationInstance IManagedObject, entityMapping IEntityMapping) { - objc.Call[objc.Void](m_, objc.Sel("associateSourceInstance:withDestinationInstance:forEntityMapping:"), sourceInstance, destinationInstance, entityMapping) -} - // A Boolean value that indicates whether the migration manager tries to use a store specific migration manager to perform the migration. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417606-usesstorespecificmigrationmanage?language=objc @@ -154,6 +186,14 @@ func (m_ MigrationManager) SetUsesStoreSpecificMigrationManager(value bool) { objc.Call[objc.Void](m_, objc.Sel("setUsesStoreSpecificMigrationManager:"), value) } +// A number between 0 and 1 that indicates the proportion of completeness of the migration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417602-migrationprogress?language=objc +func (m_ MigrationManager) MigrationProgress() float32 { + rv := objc.Call[float32](m_, objc.Sel("migrationProgress")) + return rv +} + // The user info for the migration manager. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417588-userinfo?language=objc @@ -184,43 +224,3 @@ func (m_ MigrationManager) MappingModel() MappingModel { rv := objc.Call[MappingModel](m_, objc.Sel("mappingModel")) return rv } - -// A number between 0 and 1 that indicates the proportion of completeness of the migration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417602-migrationprogress?language=objc -func (m_ MigrationManager) MigrationProgress() float32 { - rv := objc.Call[float32](m_, objc.Sel("migrationProgress")) - return rv -} - -// The source model for the migration manager. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417592-sourcemodel?language=objc -func (m_ MigrationManager) SourceModel() ManagedObjectModel { - rv := objc.Call[ManagedObjectModel](m_, objc.Sel("sourceModel")) - return rv -} - -// The destination model for the migration manager. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417610-destinationmodel?language=objc -func (m_ MigrationManager) DestinationModel() ManagedObjectModel { - rv := objc.Call[ManagedObjectModel](m_, objc.Sel("destinationModel")) - return rv -} - -// The managed object context the migration manager uses for reading the source persistent store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417576-sourcecontext?language=objc -func (m_ MigrationManager) SourceContext() ManagedObjectContext { - rv := objc.Call[ManagedObjectContext](m_, objc.Sel("sourceContext")) - return rv -} - -// The managed object context the migration manager uses for writing the destination persistent store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmigrationmanager/1417578-destinationcontext?language=objc -func (m_ MigrationManager) DestinationContext() ManagedObjectContext { - rv := objc.Call[ManagedObjectContext](m_, objc.Sel("destinationContext")) - return rv -} diff --git a/macos/coredata/persistent_cloud_kit_container.gen.go b/macos/coredata/persistent_cloud_kit_container.gen.go index 03a5b843..c81be8b3 100644 --- a/macos/coredata/persistent_cloud_kit_container.gen.go +++ b/macos/coredata/persistent_cloud_kit_container.gen.go @@ -20,20 +20,20 @@ type _PersistentCloudKitContainerClass struct { // An interface definition for the [PersistentCloudKitContainer] class. type IPersistentCloudKitContainer interface { IPersistentContainer - FetchSharesInPersistentStoreError(persistentStore IPersistentStore, error unsafe.Pointer) []cloudkit.Share CanDeleteRecordForManagedObjectWithID(objectID IManagedObjectID) bool RecordsForManagedObjectIDs(managedObjectIDs []IManagedObjectID) foundation.Dictionary - CanUpdateRecordForManagedObjectWithID(objectID IManagedObjectID) bool - CanModifyManagedObjectsInStore(store IPersistentStore) bool - InitializeCloudKitSchemaWithOptionsError(options PersistentCloudKitContainerSchemaInitializationOptions, error unsafe.Pointer) bool - RecordForManagedObjectID(managedObjectID IManagedObjectID) cloudkit.Record - PersistUpdatedShareInPersistentStoreCompletion(share cloudkit.IShare, persistentStore IPersistentStore, completion func(persistedShare cloudkit.Share, persistedShareError foundation.Error)) RecordIDForManagedObjectID(managedObjectID IManagedObjectID) cloudkit.RecordID - PurgeObjectsAndRecordsInZoneWithIDInPersistentStoreCompletion(zoneID cloudkit.IRecordZoneID, persistentStore IPersistentStore, completion func(purgedZoneID cloudkit.RecordZoneID, purgeError foundation.Error)) + PersistUpdatedShareInPersistentStoreCompletion(share cloudkit.IShare, persistentStore IPersistentStore, completion func(persistedShare cloudkit.Share, persistedShareError foundation.Error)) + RecordForManagedObjectID(managedObjectID IManagedObjectID) cloudkit.Record FetchParticipantsMatchingLookupInfosIntoPersistentStoreCompletion(lookupInfos []cloudkit.IUserIdentityLookupInfo, persistentStore IPersistentStore, completion func(fetchedParticipants []cloudkit.ShareParticipant, fetchError foundation.Error)) + PurgeObjectsAndRecordsInZoneWithIDInPersistentStoreCompletion(zoneID cloudkit.IRecordZoneID, persistentStore IPersistentStore, completion func(purgedZoneID cloudkit.RecordZoneID, purgeError foundation.Error)) AcceptShareInvitationsFromMetadataIntoPersistentStoreCompletion(metadata []cloudkit.IShareMetadata, persistentStore IPersistentStore, completion func(acceptedShareMetadatas []cloudkit.ShareMetadata, acceptOperationError foundation.Error)) - FetchSharesMatchingObjectIDsError(objectIDs []IManagedObjectID, error unsafe.Pointer) foundation.Dictionary + FetchSharesInPersistentStoreError(persistentStore IPersistentStore, error unsafe.Pointer) []cloudkit.Share + InitializeCloudKitSchemaWithOptionsError(options PersistentCloudKitContainerSchemaInitializationOptions, error unsafe.Pointer) bool RecordIDsForManagedObjectIDs(managedObjectIDs []IManagedObjectID) foundation.Dictionary + CanUpdateRecordForManagedObjectWithID(objectID IManagedObjectID) bool + CanModifyManagedObjectsInStore(store IPersistentStore) bool + FetchSharesMatchingObjectIDsError(objectIDs []IManagedObjectID, error unsafe.Pointer) foundation.Dictionary } // A container that encapsulates the Core Data stack in your app, and mirrors select persistent stores to a CloudKit private database. [Full Topic] @@ -69,32 +69,20 @@ func (p_ PersistentCloudKitContainer) Init() PersistentCloudKitContainer { return rv } -func (p_ PersistentCloudKitContainer) InitWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentCloudKitContainer { - rv := objc.Call[PersistentCloudKitContainer](p_, objc.Sel("initWithName:managedObjectModel:"), name, model) +func (p_ PersistentCloudKitContainer) InitWithName(name string) PersistentCloudKitContainer { + rv := objc.Call[PersistentCloudKitContainer](p_, objc.Sel("initWithName:"), name) return rv } -// Create a container with the specified name and managed object model. [Full Topic] +// Creates a container with the specified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640584-initwithname?language=objc -func NewPersistentCloudKitContainerWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentCloudKitContainer { - instance := PersistentCloudKitContainerClass.Alloc().InitWithNameManagedObjectModel(name, model) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640557-initwithname?language=objc +func NewPersistentCloudKitContainerWithName(name string) PersistentCloudKitContainer { + instance := PersistentCloudKitContainerClass.Alloc().InitWithName(name) instance.Autorelease() return instance } -func (pc _PersistentCloudKitContainerClass) PersistentContainerWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentCloudKitContainer { - rv := objc.Call[PersistentCloudKitContainer](pc, objc.Sel("persistentContainerWithName:managedObjectModel:"), name, model) - return rv -} - -// Initializes a new persistent container using the provided name and managed object model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1646296-persistentcontainerwithname?language=objc -func PersistentCloudKitContainer_PersistentContainerWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentCloudKitContainer { - return PersistentCloudKitContainerClass.PersistentContainerWithNameManagedObjectModel(name, model) -} - func (pc _PersistentCloudKitContainerClass) PersistentContainerWithName(name string) PersistentCloudKitContainer { rv := objc.Call[PersistentCloudKitContainer](pc, objc.Sel("persistentContainerWithName:"), name) return rv @@ -107,28 +95,6 @@ func PersistentCloudKitContainer_PersistentContainerWithName(name string) Persis return PersistentCloudKitContainerClass.PersistentContainerWithName(name) } -func (p_ PersistentCloudKitContainer) InitWithName(name string) PersistentCloudKitContainer { - rv := objc.Call[PersistentCloudKitContainer](p_, objc.Sel("initWithName:"), name) - return rv -} - -// Creates a container with the specified name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640557-initwithname?language=objc -func NewPersistentCloudKitContainerWithName(name string) PersistentCloudKitContainer { - instance := PersistentCloudKitContainerClass.Alloc().InitWithName(name) - instance.Autorelease() - return instance -} - -// Returns an array that contains all share records in the specified persistent store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3746830-fetchsharesinpersistentstore?language=objc -func (p_ PersistentCloudKitContainer) FetchSharesInPersistentStoreError(persistentStore IPersistentStore, error unsafe.Pointer) []cloudkit.Share { - rv := objc.Call[[]cloudkit.Share](p_, objc.Sel("fetchSharesInPersistentStore:error:"), persistentStore, error) - return rv -} - // Returns a Boolean value that indicates whether the user can delete the managed object’s underlying CloudKit record. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3649646-candeleterecordformanagedobjectw?language=objc @@ -145,28 +111,19 @@ func (p_ PersistentCloudKitContainer) RecordsForManagedObjectIDs(managedObjectID return rv } -// Returns a Boolean value that indicates whether the user can modify the managed object’s underlying CloudKit record. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3649648-canupdaterecordformanagedobjectw?language=objc -func (p_ PersistentCloudKitContainer) CanUpdateRecordForManagedObjectWithID(objectID IManagedObjectID) bool { - rv := objc.Call[bool](p_, objc.Sel("canUpdateRecordForManagedObjectWithID:"), objectID) - return rv -} - -// Returns a Boolean value that indicates whether the user can modify the specified persistent store. [Full Topic] +// Returns the CloudKit record ID for the specified managed object ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3649647-canmodifymanagedobjectsinstore?language=objc -func (p_ PersistentCloudKitContainer) CanModifyManagedObjectsInStore(store IPersistentStore) bool { - rv := objc.Call[bool](p_, objc.Sel("canModifyManagedObjectsInStore:"), store) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3141669-recordidformanagedobjectid?language=objc +func (p_ PersistentCloudKitContainer) RecordIDForManagedObjectID(managedObjectID IManagedObjectID) cloudkit.RecordID { + rv := objc.Call[cloudkit.RecordID](p_, objc.Sel("recordIDForManagedObjectID:"), managedObjectID) return rv } -// Creates the CloudKit schema for all stores in the container that manage a CloudKit database. [Full Topic] +// Saves the share record and schedules it for export to iCloud. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3343548-initializecloudkitschemawithopti?language=objc -func (p_ PersistentCloudKitContainer) InitializeCloudKitSchemaWithOptionsError(options PersistentCloudKitContainerSchemaInitializationOptions, error unsafe.Pointer) bool { - rv := objc.Call[bool](p_, objc.Sel("initializeCloudKitSchemaWithOptions:error:"), options, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3746832-persistupdatedshare?language=objc +func (p_ PersistentCloudKitContainer) PersistUpdatedShareInPersistentStoreCompletion(share cloudkit.IShare, persistentStore IPersistentStore, completion func(persistedShare cloudkit.Share, persistedShareError foundation.Error)) { + objc.Call[objc.Void](p_, objc.Sel("persistUpdatedShare:inPersistentStore:completion:"), share, persistentStore, completion) } // Returns the CloudKit record for the specified managed object ID. [Full Topic] @@ -177,19 +134,11 @@ func (p_ PersistentCloudKitContainer) RecordForManagedObjectID(managedObjectID I return rv } -// Saves the share record and schedules it for export to iCloud. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3746832-persistupdatedshare?language=objc -func (p_ PersistentCloudKitContainer) PersistUpdatedShareInPersistentStoreCompletion(share cloudkit.IShare, persistentStore IPersistentStore, completion func(persistedShare cloudkit.Share, persistedShareError foundation.Error)) { - objc.Call[objc.Void](p_, objc.Sel("persistUpdatedShare:inPersistentStore:completion:"), share, persistentStore, completion) -} - -// Returns the CloudKit record ID for the specified managed object ID. [Full Topic] +// Fetches all participants that match the specified critieria. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3141669-recordidformanagedobjectid?language=objc -func (p_ PersistentCloudKitContainer) RecordIDForManagedObjectID(managedObjectID IManagedObjectID) cloudkit.RecordID { - rv := objc.Call[cloudkit.RecordID](p_, objc.Sel("recordIDForManagedObjectID:"), managedObjectID) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3746829-fetchparticipantsmatchinglookupi?language=objc +func (p_ PersistentCloudKitContainer) FetchParticipantsMatchingLookupInfosIntoPersistentStoreCompletion(lookupInfos []cloudkit.IUserIdentityLookupInfo, persistentStore IPersistentStore, completion func(fetchedParticipants []cloudkit.ShareParticipant, fetchError foundation.Error)) { + objc.Call[objc.Void](p_, objc.Sel("fetchParticipantsMatchingLookupInfos:intoPersistentStore:completion:"), lookupInfos, persistentStore, completion) } // Deletes all CloudKit records in the specified record zone, along with their corresponding managed objects. [Full Topic] @@ -199,13 +148,6 @@ func (p_ PersistentCloudKitContainer) PurgeObjectsAndRecordsInZoneWithIDInPersis objc.Call[objc.Void](p_, objc.Sel("purgeObjectsAndRecordsInZoneWithID:inPersistentStore:completion:"), zoneID, persistentStore, completion) } -// Fetches all participants that match the specified critieria. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3746829-fetchparticipantsmatchinglookupi?language=objc -func (p_ PersistentCloudKitContainer) FetchParticipantsMatchingLookupInfosIntoPersistentStoreCompletion(lookupInfos []cloudkit.IUserIdentityLookupInfo, persistentStore IPersistentStore, completion func(fetchedParticipants []cloudkit.ShareParticipant, fetchError foundation.Error)) { - objc.Call[objc.Void](p_, objc.Sel("fetchParticipantsMatchingLookupInfos:intoPersistentStore:completion:"), lookupInfos, persistentStore, completion) -} - // Accepts one or more invitations to participate in sharing using the specified metadata. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3746828-acceptshareinvitationsfrommetada?language=objc @@ -213,11 +155,19 @@ func (p_ PersistentCloudKitContainer) AcceptShareInvitationsFromMetadataIntoPers objc.Call[objc.Void](p_, objc.Sel("acceptShareInvitationsFromMetadata:intoPersistentStore:completion:"), metadata, persistentStore, completion) } -// Returns a dictionary that contains the share records that CloudKit associates with specified managed object IDs. [Full Topic] +// Returns an array that contains all share records in the specified persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3746831-fetchsharesmatchingobjectids?language=objc -func (p_ PersistentCloudKitContainer) FetchSharesMatchingObjectIDsError(objectIDs []IManagedObjectID, error unsafe.Pointer) foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](p_, objc.Sel("fetchSharesMatchingObjectIDs:error:"), objectIDs, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3746830-fetchsharesinpersistentstore?language=objc +func (p_ PersistentCloudKitContainer) FetchSharesInPersistentStoreError(persistentStore IPersistentStore, error unsafe.Pointer) []cloudkit.Share { + rv := objc.Call[[]cloudkit.Share](p_, objc.Sel("fetchSharesInPersistentStore:error:"), persistentStore, error) + return rv +} + +// Creates the CloudKit schema for all stores in the container that manage a CloudKit database. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3343548-initializecloudkitschemawithopti?language=objc +func (p_ PersistentCloudKitContainer) InitializeCloudKitSchemaWithOptionsError(options PersistentCloudKitContainerSchemaInitializationOptions, error unsafe.Pointer) bool { + rv := objc.Call[bool](p_, objc.Sel("initializeCloudKitSchemaWithOptions:error:"), options, error) return rv } @@ -228,3 +178,27 @@ func (p_ PersistentCloudKitContainer) RecordIDsForManagedObjectIDs(managedObject rv := objc.Call[foundation.Dictionary](p_, objc.Sel("recordIDsForManagedObjectIDs:"), managedObjectIDs) return rv } + +// Returns a Boolean value that indicates whether the user can modify the managed object’s underlying CloudKit record. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3649648-canupdaterecordformanagedobjectw?language=objc +func (p_ PersistentCloudKitContainer) CanUpdateRecordForManagedObjectWithID(objectID IManagedObjectID) bool { + rv := objc.Call[bool](p_, objc.Sel("canUpdateRecordForManagedObjectWithID:"), objectID) + return rv +} + +// Returns a Boolean value that indicates whether the user can modify the specified persistent store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3649647-canmodifymanagedobjectsinstore?language=objc +func (p_ PersistentCloudKitContainer) CanModifyManagedObjectsInStore(store IPersistentStore) bool { + rv := objc.Call[bool](p_, objc.Sel("canModifyManagedObjectsInStore:"), store) + return rv +} + +// Returns a dictionary that contains the share records that CloudKit associates with specified managed object IDs. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3746831-fetchsharesmatchingobjectids?language=objc +func (p_ PersistentCloudKitContainer) FetchSharesMatchingObjectIDsError(objectIDs []IManagedObjectID, error unsafe.Pointer) foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](p_, objc.Sel("fetchSharesMatchingObjectIDs:error:"), objectIDs, error) + return rv +} diff --git a/macos/coredata/persistent_cloud_kit_container_event.gen.go b/macos/coredata/persistent_cloud_kit_container_event.gen.go index db2eea56..2e0b8695 100644 --- a/macos/coredata/persistent_cloud_kit_container_event.gen.go +++ b/macos/coredata/persistent_cloud_kit_container_event.gen.go @@ -19,13 +19,13 @@ type _PersistentCloudKitContainerEventClass struct { // An interface definition for the [PersistentCloudKitContainerEvent] class. type IPersistentCloudKitContainerEvent interface { objc.IObject - StartDate() foundation.Date Error() foundation.Error StoreIdentifier() string + Succeeded() bool + StartDate() foundation.Date Type() PersistentCloudKitContainerEventType - Identifier() foundation.UUID EndDate() foundation.Date - Succeeded() bool + Identifier() foundation.UUID } // An object that represents activity in a persistent CloudKit container. [Full Topic] @@ -61,14 +61,6 @@ func (p_ PersistentCloudKitContainerEvent) Init() PersistentCloudKitContainerEve return rv } -// The start date of the operation that the event represents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618804-startdate?language=objc -func (p_ PersistentCloudKitContainerEvent) StartDate() foundation.Date { - rv := objc.Call[foundation.Date](p_, objc.Sel("startDate")) - return rv -} - // An error that indicates why an operation fails. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618802-error?language=objc @@ -85,19 +77,27 @@ func (p_ PersistentCloudKitContainerEvent) StoreIdentifier() string { return rv } -// The type of event, either setup, import, or export. [Full Topic] +// A Boolean value that indicates whether the operation the event represents is successful. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618807-type?language=objc -func (p_ PersistentCloudKitContainerEvent) Type() PersistentCloudKitContainerEventType { - rv := objc.Call[PersistentCloudKitContainerEventType](p_, objc.Sel("type")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618806-succeeded?language=objc +func (p_ PersistentCloudKitContainerEvent) Succeeded() bool { + rv := objc.Call[bool](p_, objc.Sel("succeeded")) return rv } -// A unique identifier for the event in a container. [Full Topic] +// The start date of the operation that the event represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618803-identifier?language=objc -func (p_ PersistentCloudKitContainerEvent) Identifier() foundation.UUID { - rv := objc.Call[foundation.UUID](p_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618804-startdate?language=objc +func (p_ PersistentCloudKitContainerEvent) StartDate() foundation.Date { + rv := objc.Call[foundation.Date](p_, objc.Sel("startDate")) + return rv +} + +// The type of event, either setup, import, or export. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618807-type?language=objc +func (p_ PersistentCloudKitContainerEvent) Type() PersistentCloudKitContainerEventType { + rv := objc.Call[PersistentCloudKitContainerEventType](p_, objc.Sel("type")) return rv } @@ -109,10 +109,10 @@ func (p_ PersistentCloudKitContainerEvent) EndDate() foundation.Date { return rv } -// A Boolean value that indicates whether the operation the event represents is successful. [Full Topic] +// A unique identifier for the event in a container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618806-succeeded?language=objc -func (p_ PersistentCloudKitContainerEvent) Succeeded() bool { - rv := objc.Call[bool](p_, objc.Sel("succeeded")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618803-identifier?language=objc +func (p_ PersistentCloudKitContainerEvent) Identifier() foundation.UUID { + rv := objc.Call[foundation.UUID](p_, objc.Sel("identifier")) return rv } diff --git a/macos/coredata/persistent_cloud_kit_container_event_request.gen.go b/macos/coredata/persistent_cloud_kit_container_event_request.gen.go index dd051345..cfae724f 100644 --- a/macos/coredata/persistent_cloud_kit_container_event_request.gen.go +++ b/macos/coredata/persistent_cloud_kit_container_event_request.gen.go @@ -36,16 +36,16 @@ func PersistentCloudKitContainerEventRequestFrom(ptr unsafe.Pointer) PersistentC } } -func (pc _PersistentCloudKitContainerEventRequestClass) FetchEventsAfterEvent(event IPersistentCloudKitContainerEvent) PersistentCloudKitContainerEventRequest { - rv := objc.Call[PersistentCloudKitContainerEventRequest](pc, objc.Sel("fetchEventsAfterEvent:"), event) +func (pc _PersistentCloudKitContainerEventRequestClass) FetchEventsAfterDate(date foundation.IDate) PersistentCloudKitContainerEventRequest { + rv := objc.Call[PersistentCloudKitContainerEventRequest](pc, objc.Sel("fetchEventsAfterDate:"), date) return rv } -// Creates a fetch request for events that occur after a specified event from a persistent CloudKit container. [Full Topic] +// Creates a fetch request for events after a specified date from a persistent CloudKit container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainereventrequest/3618816-fetcheventsafterevent?language=objc -func PersistentCloudKitContainerEventRequest_FetchEventsAfterEvent(event IPersistentCloudKitContainerEvent) PersistentCloudKitContainerEventRequest { - return PersistentCloudKitContainerEventRequestClass.FetchEventsAfterEvent(event) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainereventrequest/3618815-fetcheventsafterdate?language=objc +func PersistentCloudKitContainerEventRequest_FetchEventsAfterDate(date foundation.IDate) PersistentCloudKitContainerEventRequest { + return PersistentCloudKitContainerEventRequestClass.FetchEventsAfterDate(date) } func (pc _PersistentCloudKitContainerEventRequestClass) FetchEventsMatchingFetchRequest(fetchRequest IFetchRequest) PersistentCloudKitContainerEventRequest { @@ -60,16 +60,16 @@ func PersistentCloudKitContainerEventRequest_FetchEventsMatchingFetchRequest(fet return PersistentCloudKitContainerEventRequestClass.FetchEventsMatchingFetchRequest(fetchRequest) } -func (pc _PersistentCloudKitContainerEventRequestClass) FetchEventsAfterDate(date foundation.IDate) PersistentCloudKitContainerEventRequest { - rv := objc.Call[PersistentCloudKitContainerEventRequest](pc, objc.Sel("fetchEventsAfterDate:"), date) +func (pc _PersistentCloudKitContainerEventRequestClass) FetchEventsAfterEvent(event IPersistentCloudKitContainerEvent) PersistentCloudKitContainerEventRequest { + rv := objc.Call[PersistentCloudKitContainerEventRequest](pc, objc.Sel("fetchEventsAfterEvent:"), event) return rv } -// Creates a fetch request for events after a specified date from a persistent CloudKit container. [Full Topic] +// Creates a fetch request for events that occur after a specified event from a persistent CloudKit container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainereventrequest/3618815-fetcheventsafterdate?language=objc -func PersistentCloudKitContainerEventRequest_FetchEventsAfterDate(date foundation.IDate) PersistentCloudKitContainerEventRequest { - return PersistentCloudKitContainerEventRequestClass.FetchEventsAfterDate(date) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainereventrequest/3618816-fetcheventsafterevent?language=objc +func PersistentCloudKitContainerEventRequest_FetchEventsAfterEvent(event IPersistentCloudKitContainerEvent) PersistentCloudKitContainerEventRequest { + return PersistentCloudKitContainerEventRequestClass.FetchEventsAfterEvent(event) } func (pc _PersistentCloudKitContainerEventRequestClass) Alloc() PersistentCloudKitContainerEventRequest { diff --git a/macos/coredata/persistent_cloud_kit_container_event_result.gen.go b/macos/coredata/persistent_cloud_kit_container_event_result.gen.go index fd1085fa..d1cf25dc 100644 --- a/macos/coredata/persistent_cloud_kit_container_event_result.gen.go +++ b/macos/coredata/persistent_cloud_kit_container_event_result.gen.go @@ -18,8 +18,8 @@ type _PersistentCloudKitContainerEventResultClass struct { // An interface definition for the [PersistentCloudKitContainerEventResult] class. type IPersistentCloudKitContainerEventResult interface { IPersistentStoreResult - ResultType() PersistentCloudKitContainerEventResultType Result() objc.Object + ResultType() PersistentCloudKitContainerEventResultType } // The result of a request to fetch persistent CloudKit container events. [Full Topic] @@ -55,14 +55,6 @@ func (p_ PersistentCloudKitContainerEventResult) Init() PersistentCloudKitContai return rv } -// The type of result that the CloudKit container event fetch request returns. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainereventresult/3618822-resulttype?language=objc -func (p_ PersistentCloudKitContainerEventResult) ResultType() PersistentCloudKitContainerEventResultType { - rv := objc.Call[PersistentCloudKitContainerEventResultType](p_, objc.Sel("resultType")) - return rv -} - // The result of the persistent CloudKit container event request, which the result type determines. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainereventresult/3618821-result?language=objc @@ -70,3 +62,11 @@ func (p_ PersistentCloudKitContainerEventResult) Result() objc.Object { rv := objc.Call[objc.Object](p_, objc.Sel("result")) return rv } + +// The type of result that the CloudKit container event fetch request returns. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainereventresult/3618822-resulttype?language=objc +func (p_ PersistentCloudKitContainerEventResult) ResultType() PersistentCloudKitContainerEventResultType { + rv := objc.Call[PersistentCloudKitContainerEventResultType](p_, objc.Sel("resultType")) + return rv +} diff --git a/macos/coredata/persistent_cloud_kit_container_options.gen.go b/macos/coredata/persistent_cloud_kit_container_options.gen.go index cb565581..29b9229b 100644 --- a/macos/coredata/persistent_cloud_kit_container_options.gen.go +++ b/macos/coredata/persistent_cloud_kit_container_options.gen.go @@ -19,9 +19,9 @@ type _PersistentCloudKitContainerOptionsClass struct { // An interface definition for the [PersistentCloudKitContainerOptions] class. type IPersistentCloudKitContainerOptions interface { objc.IObject - ContainerIdentifier() string DatabaseScope() cloudkit.DatabaseScope SetDatabaseScope(value cloudkit.DatabaseScope) + ContainerIdentifier() string } // An object that customizes how a store description aligns with a CloudKit database. [Full Topic] @@ -71,14 +71,6 @@ func (p_ PersistentCloudKitContainerOptions) Init() PersistentCloudKitContainerO return rv } -// The identifier of the CloudKit container associated with a given store description. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontaineroptions/3141674-containeridentifier?language=objc -func (p_ PersistentCloudKitContainerOptions) ContainerIdentifier() string { - rv := objc.Call[string](p_, objc.Sel("containerIdentifier")) - return rv -} - // The database scope — public, private, or shared — to use for a specified store in a persistent CloudKit container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontaineroptions/3580372-databasescope?language=objc @@ -93,3 +85,11 @@ func (p_ PersistentCloudKitContainerOptions) DatabaseScope() cloudkit.DatabaseSc func (p_ PersistentCloudKitContainerOptions) SetDatabaseScope(value cloudkit.DatabaseScope) { objc.Call[objc.Void](p_, objc.Sel("setDatabaseScope:"), value) } + +// The identifier of the CloudKit container associated with a given store description. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontaineroptions/3141674-containeridentifier?language=objc +func (p_ PersistentCloudKitContainerOptions) ContainerIdentifier() string { + rv := objc.Call[string](p_, objc.Sel("containerIdentifier")) + return rv +} diff --git a/macos/coredata/persistent_container.gen.go b/macos/coredata/persistent_container.gen.go index 8dcc47a7..ea4eac64 100644 --- a/macos/coredata/persistent_container.gen.go +++ b/macos/coredata/persistent_container.gen.go @@ -19,15 +19,15 @@ type _PersistentContainerClass struct { // An interface definition for the [PersistentContainer] class. type IPersistentContainer interface { objc.IObject - PerformBackgroundTask(block func(arg0 ManagedObjectContext)) NewBackgroundContext() ManagedObjectContext LoadPersistentStoresWithCompletionHandler(block func(arg0 PersistentStoreDescription, arg1 foundation.Error)) + PerformBackgroundTask(block func(arg0 ManagedObjectContext)) PersistentStoreDescriptions() []PersistentStoreDescription SetPersistentStoreDescriptions(value []IPersistentStoreDescription) - Name() string ManagedObjectModel() ManagedObjectModel - ViewContext() ManagedObjectContext PersistentStoreCoordinator() PersistentStoreCoordinator + Name() string + ViewContext() ManagedObjectContext } // A container that encapsulates the Core Data stack in your app. [Full Topic] @@ -43,32 +43,20 @@ func PersistentContainerFrom(ptr unsafe.Pointer) PersistentContainer { } } -func (p_ PersistentContainer) InitWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentContainer { - rv := objc.Call[PersistentContainer](p_, objc.Sel("initWithName:managedObjectModel:"), name, model) +func (p_ PersistentContainer) InitWithName(name string) PersistentContainer { + rv := objc.Call[PersistentContainer](p_, objc.Sel("initWithName:"), name) return rv } -// Create a container with the specified name and managed object model. [Full Topic] +// Creates a container with the specified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640584-initwithname?language=objc -func NewPersistentContainerWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentContainer { - instance := PersistentContainerClass.Alloc().InitWithNameManagedObjectModel(name, model) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640557-initwithname?language=objc +func NewPersistentContainerWithName(name string) PersistentContainer { + instance := PersistentContainerClass.Alloc().InitWithName(name) instance.Autorelease() return instance } -func (pc _PersistentContainerClass) PersistentContainerWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentContainer { - rv := objc.Call[PersistentContainer](pc, objc.Sel("persistentContainerWithName:managedObjectModel:"), name, model) - return rv -} - -// Initializes a new persistent container using the provided name and managed object model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1646296-persistentcontainerwithname?language=objc -func PersistentContainer_PersistentContainerWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentContainer { - return PersistentContainerClass.PersistentContainerWithNameManagedObjectModel(name, model) -} - func (pc _PersistentContainerClass) PersistentContainerWithName(name string) PersistentContainer { rv := objc.Call[PersistentContainer](pc, objc.Sel("persistentContainerWithName:"), name) return rv @@ -81,20 +69,6 @@ func PersistentContainer_PersistentContainerWithName(name string) PersistentCont return PersistentContainerClass.PersistentContainerWithName(name) } -func (p_ PersistentContainer) InitWithName(name string) PersistentContainer { - rv := objc.Call[PersistentContainer](p_, objc.Sel("initWithName:"), name) - return rv -} - -// Creates a container with the specified name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640557-initwithname?language=objc -func NewPersistentContainerWithName(name string) PersistentContainer { - instance := PersistentContainerClass.Alloc().InitWithName(name) - instance.Autorelease() - return instance -} - func (pc _PersistentContainerClass) Alloc() PersistentContainer { rv := objc.Call[PersistentContainer](pc, objc.Sel("alloc")) return rv @@ -115,11 +89,19 @@ func (p_ PersistentContainer) Init() PersistentContainer { return rv } -// Executes a block on a private queue using an ephemeral managed object context. [Full Topic] +// Returns a new managed object context that executes on a private queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640564-performbackgroundtask?language=objc -func (p_ PersistentContainer) PerformBackgroundTask(block func(arg0 ManagedObjectContext)) { - objc.Call[objc.Void](p_, objc.Sel("performBackgroundTask:"), block) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640581-newbackgroundcontext?language=objc +func (p_ PersistentContainer) NewBackgroundContext() ManagedObjectContext { + rv := objc.Call[ManagedObjectContext](p_, objc.Sel("newBackgroundContext")) + return rv +} + +// Loads the persistent stores. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640568-loadpersistentstoreswithcompleti?language=objc +func (p_ PersistentContainer) LoadPersistentStoresWithCompletionHandler(block func(arg0 PersistentStoreDescription, arg1 foundation.Error)) { + objc.Call[objc.Void](p_, objc.Sel("loadPersistentStoresWithCompletionHandler:"), block) } // Returns the location of the directory that contains the persistent stores. [Full Topic] @@ -137,19 +119,11 @@ func PersistentContainer_DefaultDirectoryURL() foundation.URL { return PersistentContainerClass.DefaultDirectoryURL() } -// Returns a new managed object context that executes on a private queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640581-newbackgroundcontext?language=objc -func (p_ PersistentContainer) NewBackgroundContext() ManagedObjectContext { - rv := objc.Call[ManagedObjectContext](p_, objc.Sel("newBackgroundContext")) - return rv -} - -// Loads the persistent stores. [Full Topic] +// Executes a block on a private queue using an ephemeral managed object context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640568-loadpersistentstoreswithcompleti?language=objc -func (p_ PersistentContainer) LoadPersistentStoresWithCompletionHandler(block func(arg0 PersistentStoreDescription, arg1 foundation.Error)) { - objc.Call[objc.Void](p_, objc.Sel("loadPersistentStoresWithCompletionHandler:"), block) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640564-performbackgroundtask?language=objc +func (p_ PersistentContainer) PerformBackgroundTask(block func(arg0 ManagedObjectContext)) { + objc.Call[objc.Void](p_, objc.Sel("performBackgroundTask:"), block) } // The descriptions of the container’s persistent stores. [Full Topic] @@ -167,14 +141,6 @@ func (p_ PersistentContainer) SetPersistentStoreDescriptions(value []IPersistent objc.Call[objc.Void](p_, objc.Sel("setPersistentStoreDescriptions:"), value) } -// The container’s name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640579-name?language=objc -func (p_ PersistentContainer) Name() string { - rv := objc.Call[string](p_, objc.Sel("name")) - return rv -} - // The container’s managed object model. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640561-managedobjectmodel?language=objc @@ -183,14 +149,6 @@ func (p_ PersistentContainer) ManagedObjectModel() ManagedObjectModel { return rv } -// The main queue’s managed object context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640622-viewcontext?language=objc -func (p_ PersistentContainer) ViewContext() ManagedObjectContext { - rv := objc.Call[ManagedObjectContext](p_, objc.Sel("viewContext")) - return rv -} - // The container’s persistent store coordinator. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640567-persistentstorecoordinator?language=objc @@ -198,3 +156,19 @@ func (p_ PersistentContainer) PersistentStoreCoordinator() PersistentStoreCoordi rv := objc.Call[PersistentStoreCoordinator](p_, objc.Sel("persistentStoreCoordinator")) return rv } + +// The container’s name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640579-name?language=objc +func (p_ PersistentContainer) Name() string { + rv := objc.Call[string](p_, objc.Sel("name")) + return rv +} + +// The main queue’s managed object context. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640622-viewcontext?language=objc +func (p_ PersistentContainer) ViewContext() ManagedObjectContext { + rv := objc.Call[ManagedObjectContext](p_, objc.Sel("viewContext")) + return rv +} diff --git a/macos/coredata/persistent_history_change.gen.go b/macos/coredata/persistent_history_change.gen.go index d402520f..7bb7e23d 100644 --- a/macos/coredata/persistent_history_change.gen.go +++ b/macos/coredata/persistent_history_change.gen.go @@ -19,12 +19,12 @@ type _PersistentHistoryChangeClass struct { // An interface definition for the [PersistentHistoryChange] class. type IPersistentHistoryChange interface { objc.IObject - ChangeID() int64 - ChangedObjectID() ManagedObjectID - Tombstone() foundation.Dictionary Transaction() PersistentHistoryTransaction UpdatedProperties() foundation.Set + ChangedObjectID() ManagedObjectID + Tombstone() foundation.Dictionary ChangeType() PersistentHistoryChangeType + ChangeID() int64 } // A change representing the insertion, update, or deletion of a managed object in the persistent store. [Full Topic] @@ -75,11 +75,34 @@ func PersistentHistoryChange_EntityDescriptionWithContext(context IManagedObject return PersistentHistoryChangeClass.EntityDescriptionWithContext(context) } -// The change’s numeric identifier. [Full Topic] +// The persistent history transaction containing this change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/2892569-changeid?language=objc -func (p_ PersistentHistoryChange) ChangeID() int64 { - rv := objc.Call[int64](p_, objc.Sel("changeID")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/2892567-transaction?language=objc +func (p_ PersistentHistoryChange) Transaction() PersistentHistoryTransaction { + rv := objc.Call[PersistentHistoryTransaction](p_, objc.Sel("transaction")) + return rv +} + +// A fetch request that has the persistent history change as the entity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/3240591-fetchrequest?language=objc +func (pc _PersistentHistoryChangeClass) FetchRequest() FetchRequest { + rv := objc.Call[FetchRequest](pc, objc.Sel("fetchRequest")) + return rv +} + +// A fetch request that has the persistent history change as the entity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/3240591-fetchrequest?language=objc +func PersistentHistoryChange_FetchRequest() FetchRequest { + return PersistentHistoryChangeClass.FetchRequest() +} + +// The set of properties that were updated on the managed object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/2892568-updatedproperties?language=objc +func (p_ PersistentHistoryChange) UpdatedProperties() foundation.Set { + rv := objc.Call[foundation.Set](p_, objc.Sel("updatedProperties")) return rv } @@ -114,37 +137,6 @@ func PersistentHistoryChange_EntityDescription() EntityDescription { return PersistentHistoryChangeClass.EntityDescription() } -// The persistent history transaction containing this change. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/2892567-transaction?language=objc -func (p_ PersistentHistoryChange) Transaction() PersistentHistoryTransaction { - rv := objc.Call[PersistentHistoryTransaction](p_, objc.Sel("transaction")) - return rv -} - -// The set of properties that were updated on the managed object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/2892568-updatedproperties?language=objc -func (p_ PersistentHistoryChange) UpdatedProperties() foundation.Set { - rv := objc.Call[foundation.Set](p_, objc.Sel("updatedProperties")) - return rv -} - -// A fetch request that has the persistent history change as the entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/3240591-fetchrequest?language=objc -func (pc _PersistentHistoryChangeClass) FetchRequest() FetchRequest { - rv := objc.Call[FetchRequest](pc, objc.Sel("fetchRequest")) - return rv -} - -// A fetch request that has the persistent history change as the entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/3240591-fetchrequest?language=objc -func PersistentHistoryChange_FetchRequest() FetchRequest { - return PersistentHistoryChangeClass.FetchRequest() -} - // The type of change to the managed object in the persistent store. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/2892563-changetype?language=objc @@ -152,3 +144,11 @@ func (p_ PersistentHistoryChange) ChangeType() PersistentHistoryChangeType { rv := objc.Call[PersistentHistoryChangeType](p_, objc.Sel("changeType")) return rv } + +// The change’s numeric identifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/2892569-changeid?language=objc +func (p_ PersistentHistoryChange) ChangeID() int64 { + rv := objc.Call[int64](p_, objc.Sel("changeID")) + return rv +} diff --git a/macos/coredata/persistent_history_change_request.gen.go b/macos/coredata/persistent_history_change_request.gen.go index bb67856f..35e4197d 100644 --- a/macos/coredata/persistent_history_change_request.gen.go +++ b/macos/coredata/persistent_history_change_request.gen.go @@ -19,11 +19,11 @@ type _PersistentHistoryChangeRequestClass struct { // An interface definition for the [PersistentHistoryChangeRequest] class. type IPersistentHistoryChangeRequest interface { IPersistentStoreRequest + FetchRequest() FetchRequest + SetFetchRequest(value IFetchRequest) Token() PersistentHistoryToken ResultType() PersistentHistoryResultType SetResultType(value PersistentHistoryResultType) - FetchRequest() FetchRequest - SetFetchRequest(value IFetchRequest) } // A request to fetch or purge persistent history. [Full Topic] @@ -39,18 +39,6 @@ func PersistentHistoryChangeRequestFrom(ptr unsafe.Pointer) PersistentHistoryCha } } -func (pc _PersistentHistoryChangeRequestClass) FetchHistoryAfterTransaction(transaction IPersistentHistoryTransaction) PersistentHistoryChangeRequest { - rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryAfterTransaction:"), transaction) - return rv -} - -// Retrieves history since a given transaction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/2892344-fetchhistoryaftertransaction?language=objc -func PersistentHistoryChangeRequest_FetchHistoryAfterTransaction(transaction IPersistentHistoryTransaction) PersistentHistoryChangeRequest { - return PersistentHistoryChangeRequestClass.FetchHistoryAfterTransaction(transaction) -} - func (pc _PersistentHistoryChangeRequestClass) DeleteHistoryBeforeDate(date foundation.IDate) PersistentHistoryChangeRequest { rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("deleteHistoryBeforeDate:"), date) return rv @@ -63,28 +51,28 @@ func PersistentHistoryChangeRequest_DeleteHistoryBeforeDate(date foundation.IDat return PersistentHistoryChangeRequestClass.DeleteHistoryBeforeDate(date) } -func (pc _PersistentHistoryChangeRequestClass) FetchHistoryAfterToken(token IPersistentHistoryToken) PersistentHistoryChangeRequest { - rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryAfterToken:"), token) +func (pc _PersistentHistoryChangeRequestClass) FetchHistoryAfterTransaction(transaction IPersistentHistoryTransaction) PersistentHistoryChangeRequest { + rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryAfterTransaction:"), transaction) return rv } -// Retrieves the request history after a given token. [Full Topic] +// Retrieves history since a given transaction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/2892337-fetchhistoryaftertoken?language=objc -func PersistentHistoryChangeRequest_FetchHistoryAfterToken(token IPersistentHistoryToken) PersistentHistoryChangeRequest { - return PersistentHistoryChangeRequestClass.FetchHistoryAfterToken(token) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/2892344-fetchhistoryaftertransaction?language=objc +func PersistentHistoryChangeRequest_FetchHistoryAfterTransaction(transaction IPersistentHistoryTransaction) PersistentHistoryChangeRequest { + return PersistentHistoryChangeRequestClass.FetchHistoryAfterTransaction(transaction) } -func (pc _PersistentHistoryChangeRequestClass) FetchHistoryAfterDate(date foundation.IDate) PersistentHistoryChangeRequest { - rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryAfterDate:"), date) +func (pc _PersistentHistoryChangeRequestClass) FetchHistoryWithFetchRequest(fetchRequest IFetchRequest) PersistentHistoryChangeRequest { + rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryWithFetchRequest:"), fetchRequest) return rv } -// Retrieves history since a given date. [Full Topic] +// Retrieves history based on a fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/2892339-fetchhistoryafterdate?language=objc -func PersistentHistoryChangeRequest_FetchHistoryAfterDate(date foundation.IDate) PersistentHistoryChangeRequest { - return PersistentHistoryChangeRequestClass.FetchHistoryAfterDate(date) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/3240592-fetchhistorywithfetchrequest?language=objc +func PersistentHistoryChangeRequest_FetchHistoryWithFetchRequest(fetchRequest IFetchRequest) PersistentHistoryChangeRequest { + return PersistentHistoryChangeRequestClass.FetchHistoryWithFetchRequest(fetchRequest) } func (pc _PersistentHistoryChangeRequestClass) DeleteHistoryBeforeTransaction(transaction IPersistentHistoryTransaction) PersistentHistoryChangeRequest { @@ -99,16 +87,28 @@ func PersistentHistoryChangeRequest_DeleteHistoryBeforeTransaction(transaction I return PersistentHistoryChangeRequestClass.DeleteHistoryBeforeTransaction(transaction) } -func (pc _PersistentHistoryChangeRequestClass) FetchHistoryWithFetchRequest(fetchRequest IFetchRequest) PersistentHistoryChangeRequest { - rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryWithFetchRequest:"), fetchRequest) +func (pc _PersistentHistoryChangeRequestClass) FetchHistoryAfterDate(date foundation.IDate) PersistentHistoryChangeRequest { + rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryAfterDate:"), date) return rv } -// Retrieves history based on a fetch request. [Full Topic] +// Retrieves history since a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/3240592-fetchhistorywithfetchrequest?language=objc -func PersistentHistoryChangeRequest_FetchHistoryWithFetchRequest(fetchRequest IFetchRequest) PersistentHistoryChangeRequest { - return PersistentHistoryChangeRequestClass.FetchHistoryWithFetchRequest(fetchRequest) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/2892339-fetchhistoryafterdate?language=objc +func PersistentHistoryChangeRequest_FetchHistoryAfterDate(date foundation.IDate) PersistentHistoryChangeRequest { + return PersistentHistoryChangeRequestClass.FetchHistoryAfterDate(date) +} + +func (pc _PersistentHistoryChangeRequestClass) FetchHistoryAfterToken(token IPersistentHistoryToken) PersistentHistoryChangeRequest { + rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryAfterToken:"), token) + return rv +} + +// Retrieves the request history after a given token. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/2892337-fetchhistoryaftertoken?language=objc +func PersistentHistoryChangeRequest_FetchHistoryAfterToken(token IPersistentHistoryToken) PersistentHistoryChangeRequest { + return PersistentHistoryChangeRequestClass.FetchHistoryAfterToken(token) } func (pc _PersistentHistoryChangeRequestClass) DeleteHistoryBeforeToken(token IPersistentHistoryToken) PersistentHistoryChangeRequest { @@ -143,6 +143,21 @@ func (p_ PersistentHistoryChangeRequest) Init() PersistentHistoryChangeRequest { return rv } +// The specified fetch request, when retrieving history. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/3240593-fetchrequest?language=objc +func (p_ PersistentHistoryChangeRequest) FetchRequest() FetchRequest { + rv := objc.Call[FetchRequest](p_, objc.Sel("fetchRequest")) + return rv +} + +// The specified fetch request, when retrieving history. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/3240593-fetchrequest?language=objc +func (p_ PersistentHistoryChangeRequest) SetFetchRequest(value IFetchRequest) { + objc.Call[objc.Void](p_, objc.Sel("setFetchRequest:"), value) +} + // The specified token, when retrieving history defined by a token. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/2892342-token?language=objc @@ -165,18 +180,3 @@ func (p_ PersistentHistoryChangeRequest) ResultType() PersistentHistoryResultTyp func (p_ PersistentHistoryChangeRequest) SetResultType(value PersistentHistoryResultType) { objc.Call[objc.Void](p_, objc.Sel("setResultType:"), value) } - -// The specified fetch request, when retrieving history. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/3240593-fetchrequest?language=objc -func (p_ PersistentHistoryChangeRequest) FetchRequest() FetchRequest { - rv := objc.Call[FetchRequest](p_, objc.Sel("fetchRequest")) - return rv -} - -// The specified fetch request, when retrieving history. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/3240593-fetchrequest?language=objc -func (p_ PersistentHistoryChangeRequest) SetFetchRequest(value IFetchRequest) { - objc.Call[objc.Void](p_, objc.Sel("setFetchRequest:"), value) -} diff --git a/macos/coredata/persistent_history_transaction.gen.go b/macos/coredata/persistent_history_transaction.gen.go index e8674e63..90479a5b 100644 --- a/macos/coredata/persistent_history_transaction.gen.go +++ b/macos/coredata/persistent_history_transaction.gen.go @@ -20,15 +20,15 @@ type _PersistentHistoryTransactionClass struct { type IPersistentHistoryTransaction interface { objc.IObject ObjectIDNotification() foundation.Notification - ProcessID() string - ContextName() string - StoreID() string - Changes() []PersistentHistoryChange - Author() string - Timestamp() foundation.Date Token() PersistentHistoryToken BundleID() string TransactionNumber() int64 + StoreID() string + Author() string + ProcessID() string + Changes() []PersistentHistoryChange + Timestamp() foundation.Date + ContextName() string } // A set of changes in the persistent history based on a context save or batch operation. [Full Topic] @@ -64,6 +64,14 @@ func (p_ PersistentHistoryTransaction) Init() PersistentHistoryTransaction { return rv } +// Obtains a notification for use in merging the transaction’s changes into a managed object context. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894946-objectidnotification?language=objc +func (p_ PersistentHistoryTransaction) ObjectIDNotification() foundation.Notification { + rv := objc.Call[foundation.Notification](p_, objc.Sel("objectIDNotification")) + return rv +} + // Requests an entity description using the provided context for the managed object type affected by the transaction. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/3240595-entitydescriptionwithcontext?language=objc @@ -79,43 +87,50 @@ func PersistentHistoryTransaction_EntityDescriptionWithContext(context IManagedO return PersistentHistoryTransactionClass.EntityDescriptionWithContext(context) } -// Obtains a notification for use in merging the transaction’s changes into a managed object context. [Full Topic] +// A fetch request that has the persistent history transaction as the entity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894946-objectidnotification?language=objc -func (p_ PersistentHistoryTransaction) ObjectIDNotification() foundation.Notification { - rv := objc.Call[foundation.Notification](p_, objc.Sel("objectIDNotification")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/3240596-fetchrequest?language=objc +func (pc _PersistentHistoryTransactionClass) FetchRequest() FetchRequest { + rv := objc.Call[FetchRequest](pc, objc.Sel("fetchRequest")) return rv } -// The originating process’s identifier. [Full Topic] +// A fetch request that has the persistent history transaction as the entity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894939-processid?language=objc -func (p_ PersistentHistoryTransaction) ProcessID() string { - rv := objc.Call[string](p_, objc.Sel("processID")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/3240596-fetchrequest?language=objc +func PersistentHistoryTransaction_FetchRequest() FetchRequest { + return PersistentHistoryTransactionClass.FetchRequest() +} + +// The token that represents this transaction in the persistent history. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894938-token?language=objc +func (p_ PersistentHistoryTransaction) Token() PersistentHistoryToken { + rv := objc.Call[PersistentHistoryToken](p_, objc.Sel("token")) return rv } -// The originating context’s name. [Full Topic] +// The originating bundle’s identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894944-contextname?language=objc -func (p_ PersistentHistoryTransaction) ContextName() string { - rv := objc.Call[string](p_, objc.Sel("contextName")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894943-bundleid?language=objc +func (p_ PersistentHistoryTransaction) BundleID() string { + rv := objc.Call[string](p_, objc.Sel("bundleID")) return rv } -// The originating store’s identifier. [Full Topic] +// The transaction’s numeric identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894941-storeid?language=objc -func (p_ PersistentHistoryTransaction) StoreID() string { - rv := objc.Call[string](p_, objc.Sel("storeID")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894945-transactionnumber?language=objc +func (p_ PersistentHistoryTransaction) TransactionNumber() int64 { + rv := objc.Call[int64](p_, objc.Sel("transactionNumber")) return rv } -// The array of persistent history changes. [Full Topic] +// The originating store’s identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894948-changes?language=objc -func (p_ PersistentHistoryTransaction) Changes() []PersistentHistoryChange { - rv := objc.Call[[]PersistentHistoryChange](p_, objc.Sel("changes")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894941-storeid?language=objc +func (p_ PersistentHistoryTransaction) StoreID() string { + rv := objc.Call[string](p_, objc.Sel("storeID")) return rv } @@ -127,27 +142,11 @@ func (p_ PersistentHistoryTransaction) Author() string { return rv } -// The date of the persistent history change. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894940-timestamp?language=objc -func (p_ PersistentHistoryTransaction) Timestamp() foundation.Date { - rv := objc.Call[foundation.Date](p_, objc.Sel("timestamp")) - return rv -} - -// The token that represents this transaction in the persistent history. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894938-token?language=objc -func (p_ PersistentHistoryTransaction) Token() PersistentHistoryToken { - rv := objc.Call[PersistentHistoryToken](p_, objc.Sel("token")) - return rv -} - -// The originating bundle’s identifier. [Full Topic] +// The originating process’s identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894943-bundleid?language=objc -func (p_ PersistentHistoryTransaction) BundleID() string { - rv := objc.Call[string](p_, objc.Sel("bundleID")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894939-processid?language=objc +func (p_ PersistentHistoryTransaction) ProcessID() string { + rv := objc.Call[string](p_, objc.Sel("processID")) return rv } @@ -166,25 +165,26 @@ func PersistentHistoryTransaction_EntityDescription() EntityDescription { return PersistentHistoryTransactionClass.EntityDescription() } -// The transaction’s numeric identifier. [Full Topic] +// The array of persistent history changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894945-transactionnumber?language=objc -func (p_ PersistentHistoryTransaction) TransactionNumber() int64 { - rv := objc.Call[int64](p_, objc.Sel("transactionNumber")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894948-changes?language=objc +func (p_ PersistentHistoryTransaction) Changes() []PersistentHistoryChange { + rv := objc.Call[[]PersistentHistoryChange](p_, objc.Sel("changes")) return rv } -// A fetch request that has the persistent history transaction as the entity. [Full Topic] +// The date of the persistent history change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/3240596-fetchrequest?language=objc -func (pc _PersistentHistoryTransactionClass) FetchRequest() FetchRequest { - rv := objc.Call[FetchRequest](pc, objc.Sel("fetchRequest")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894940-timestamp?language=objc +func (p_ PersistentHistoryTransaction) Timestamp() foundation.Date { + rv := objc.Call[foundation.Date](p_, objc.Sel("timestamp")) return rv } -// A fetch request that has the persistent history transaction as the entity. [Full Topic] +// The originating context’s name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/3240596-fetchrequest?language=objc -func PersistentHistoryTransaction_FetchRequest() FetchRequest { - return PersistentHistoryTransactionClass.FetchRequest() +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894944-contextname?language=objc +func (p_ PersistentHistoryTransaction) ContextName() string { + rv := objc.Call[string](p_, objc.Sel("contextName")) + return rv } diff --git a/macos/coredata/persistent_store.gen.go b/macos/coredata/persistent_store.gen.go index 82ab21ce..6a435445 100644 --- a/macos/coredata/persistent_store.gen.go +++ b/macos/coredata/persistent_store.gen.go @@ -19,22 +19,22 @@ type _PersistentStoreClass struct { // An interface definition for the [PersistentStore] class. type IPersistentStore interface { objc.IObject + WillRemoveFromPersistentStoreCoordinator(coordinator IPersistentStoreCoordinator) DidAddToPersistentStoreCoordinator(coordinator IPersistentStoreCoordinator) LoadMetadata(error unsafe.Pointer) bool - WillRemoveFromPersistentStoreCoordinator(coordinator IPersistentStoreCoordinator) + IsReadOnly() bool + SetReadOnly(value bool) + PersistentStoreCoordinator() PersistentStoreCoordinator + Options() foundation.Dictionary Metadata() map[string]objc.Object SetMetadata(value map[string]objc.IObject) - ConfigurationName() string URL() foundation.URL SetURL(value foundation.IURL) CoreSpotlightExporter() CoreDataCoreSpotlightDelegate - Options() foundation.Dictionary - PersistentStoreCoordinator() PersistentStoreCoordinator + ConfigurationName() string Type() string Identifier() string SetIdentifier(value string) - IsReadOnly() bool - SetReadOnly(value bool) } // The abstract base class for all Core Data persistent stores. [Full Topic] @@ -84,11 +84,26 @@ func (p_ PersistentStore) Init() PersistentStore { return rv } -// Invoked after the persistent store has been added to the persistent store coordinator. [Full Topic] +// Invoked before the persistent store is removed from the persistent store coordinator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506873-didaddtopersistentstorecoordinat?language=objc -func (p_ PersistentStore) DidAddToPersistentStoreCoordinator(coordinator IPersistentStoreCoordinator) { - objc.Call[objc.Void](p_, objc.Sel("didAddToPersistentStoreCoordinator:"), coordinator) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506731-willremovefrompersistentstorecoo?language=objc +func (p_ PersistentStore) WillRemoveFromPersistentStoreCoordinator(coordinator IPersistentStoreCoordinator) { + objc.Call[objc.Void](p_, objc.Sel("willRemoveFromPersistentStoreCoordinator:"), coordinator) +} + +// Sets the metadata for the store at a given URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506824-setmetadata?language=objc +func (pc _PersistentStoreClass) SetMetadataForPersistentStoreWithURLError(metadata map[string]objc.IObject, url foundation.IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](pc, objc.Sel("setMetadata:forPersistentStoreWithURL:error:"), metadata, url, error) + return rv +} + +// Sets the metadata for the store at a given URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506824-setmetadata?language=objc +func PersistentStore_SetMetadataForPersistentStoreWithURLError(metadata map[string]objc.IObject, url foundation.IURL, error unsafe.Pointer) bool { + return PersistentStoreClass.SetMetadataForPersistentStoreWithURLError(metadata, url, error) } // Returns the metadata from the persistent store at the given URL. [Full Topic] @@ -106,6 +121,13 @@ func PersistentStore_MetadataForPersistentStoreWithURLError(url foundation.IURL, return PersistentStoreClass.MetadataForPersistentStoreWithURLError(url, error) } +// Invoked after the persistent store has been added to the persistent store coordinator. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506873-didaddtopersistentstorecoordinat?language=objc +func (p_ PersistentStore) DidAddToPersistentStoreCoordinator(coordinator IPersistentStoreCoordinator) { + objc.Call[objc.Void](p_, objc.Sel("didAddToPersistentStoreCoordinator:"), coordinator) +} + // Instructs the persistent store to load its metadata. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506273-loadmetadata?language=objc @@ -129,26 +151,35 @@ func PersistentStore_MigrationManagerClass() objc.Class { return PersistentStoreClass.MigrationManagerClass() } -// Sets the metadata for the store at a given URL. [Full Topic] +// A Boolean value that indicates whether the persistent store is read-only. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506824-setmetadata?language=objc -func (pc _PersistentStoreClass) SetMetadataForPersistentStoreWithURLError(metadata map[string]objc.IObject, url foundation.IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](pc, objc.Sel("setMetadata:forPersistentStoreWithURL:error:"), metadata, url, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506183-readonly?language=objc +func (p_ PersistentStore) IsReadOnly() bool { + rv := objc.Call[bool](p_, objc.Sel("isReadOnly")) return rv } -// Sets the metadata for the store at a given URL. [Full Topic] +// A Boolean value that indicates whether the persistent store is read-only. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506824-setmetadata?language=objc -func PersistentStore_SetMetadataForPersistentStoreWithURLError(metadata map[string]objc.IObject, url foundation.IURL, error unsafe.Pointer) bool { - return PersistentStoreClass.SetMetadataForPersistentStoreWithURLError(metadata, url, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506183-readonly?language=objc +func (p_ PersistentStore) SetReadOnly(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setReadOnly:"), value) } -// Invoked before the persistent store is removed from the persistent store coordinator. [Full Topic] +// The persistent store coordinator that loads the persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506731-willremovefrompersistentstorecoo?language=objc -func (p_ PersistentStore) WillRemoveFromPersistentStoreCoordinator(coordinator IPersistentStoreCoordinator) { - objc.Call[objc.Void](p_, objc.Sel("willRemoveFromPersistentStoreCoordinator:"), coordinator) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506226-persistentstorecoordinator?language=objc +func (p_ PersistentStore) PersistentStoreCoordinator() PersistentStoreCoordinator { + rv := objc.Call[PersistentStoreCoordinator](p_, objc.Sel("persistentStoreCoordinator")) + return rv +} + +// The options that Core Data uses to create the store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506821-options?language=objc +func (p_ PersistentStore) Options() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](p_, objc.Sel("options")) + return rv } // The metadata for the persistent store. [Full Topic] @@ -166,14 +197,6 @@ func (p_ PersistentStore) SetMetadata(value map[string]objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setMetadata:"), value) } -// The name of the managed object model configuration that creates the persistent store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506620-configurationname?language=objc -func (p_ PersistentStore) ConfigurationName() string { - rv := objc.Call[string](p_, objc.Sel("configurationName")) - return rv -} - // The URL for the persistent store. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506700-url?language=objc @@ -197,19 +220,11 @@ func (p_ PersistentStore) CoreSpotlightExporter() CoreDataCoreSpotlightDelegate return rv } -// The options that Core Data uses to create the store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506821-options?language=objc -func (p_ PersistentStore) Options() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](p_, objc.Sel("options")) - return rv -} - -// The persistent store coordinator that loads the persistent store. [Full Topic] +// The name of the managed object model configuration that creates the persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506226-persistentstorecoordinator?language=objc -func (p_ PersistentStore) PersistentStoreCoordinator() PersistentStoreCoordinator { - rv := objc.Call[PersistentStoreCoordinator](p_, objc.Sel("persistentStoreCoordinator")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506620-configurationname?language=objc +func (p_ PersistentStore) ConfigurationName() string { + rv := objc.Call[string](p_, objc.Sel("configurationName")) return rv } @@ -235,18 +250,3 @@ func (p_ PersistentStore) Identifier() string { func (p_ PersistentStore) SetIdentifier(value string) { objc.Call[objc.Void](p_, objc.Sel("setIdentifier:"), value) } - -// A Boolean value that indicates whether the persistent store is read-only. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506183-readonly?language=objc -func (p_ PersistentStore) IsReadOnly() bool { - rv := objc.Call[bool](p_, objc.Sel("isReadOnly")) - return rv -} - -// A Boolean value that indicates whether the persistent store is read-only. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506183-readonly?language=objc -func (p_ PersistentStore) SetReadOnly(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setReadOnly:"), value) -} diff --git a/macos/coredata/persistent_store_asynchronous_result.gen.go b/macos/coredata/persistent_store_asynchronous_result.gen.go index b0088192..3e1f55c6 100644 --- a/macos/coredata/persistent_store_asynchronous_result.gen.go +++ b/macos/coredata/persistent_store_asynchronous_result.gen.go @@ -20,9 +20,9 @@ type _PersistentStoreAsynchronousResultClass struct { type IPersistentStoreAsynchronousResult interface { IPersistentStoreResult Cancel() + OperationError() foundation.Error Progress() foundation.Progress ManagedObjectContext() ManagedObjectContext - OperationError() foundation.Error } // A concrete class used to represent the results of an asynchronous request. [Full Topic] @@ -65,6 +65,14 @@ func (p_ PersistentStoreAsynchronousResult) Cancel() { objc.Call[objc.Void](p_, objc.Sel("cancel")) } +// An error that contains details if the asynchronous fetch request fails. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoreasynchronousresult/1404904-operationerror?language=objc +func (p_ PersistentStoreAsynchronousResult) OperationError() foundation.Error { + rv := objc.Call[foundation.Error](p_, objc.Sel("operationError")) + return rv +} + // An object that reports progress for the asynchronous fetch request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoreasynchronousresult/1404920-progress?language=objc @@ -80,11 +88,3 @@ func (p_ PersistentStoreAsynchronousResult) ManagedObjectContext() ManagedObject rv := objc.Call[ManagedObjectContext](p_, objc.Sel("managedObjectContext")) return rv } - -// An error that contains details if the asynchronous fetch request fails. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoreasynchronousresult/1404904-operationerror?language=objc -func (p_ PersistentStoreAsynchronousResult) OperationError() foundation.Error { - rv := objc.Call[foundation.Error](p_, objc.Sel("operationError")) - return rv -} diff --git a/macos/coredata/persistent_store_coordinator.gen.go b/macos/coredata/persistent_store_coordinator.gen.go index e56a8f95..f633bab3 100644 --- a/macos/coredata/persistent_store_coordinator.gen.go +++ b/macos/coredata/persistent_store_coordinator.gen.go @@ -19,23 +19,23 @@ type _PersistentStoreCoordinatorClass struct { // An interface definition for the [PersistentStoreCoordinator] class. type IPersistentStoreCoordinator interface { objc.IObject - SetURLForPersistentStore(url foundation.IURL, store IPersistentStore) bool PerformBlockAndWait(block func()) - PerformBlock(block func()) - RemovePersistentStoreError(store IPersistentStore, error unsafe.Pointer) bool - CurrentPersistentHistoryTokenFromStores(stores []objc.IObject) PersistentHistoryToken - ManagedObjectIDForURIRepresentation(url foundation.IURL) ManagedObjectID - MetadataForPersistentStore(store IPersistentStore) map[string]objc.Object - AddPersistentStoreWithDescriptionCompletionHandler(storeDescription IPersistentStoreDescription, block func(arg0 PersistentStoreDescription, arg1 foundation.Error)) SetMetadataForPersistentStore(metadata map[string]objc.IObject, store IPersistentStore) - AddPersistentStoreWithTypeConfigurationURLOptionsError(storeType string, configuration string, storeURL foundation.IURL, options foundation.Dictionary, error unsafe.Pointer) PersistentStore PersistentStoreForURL(URL foundation.IURL) PersistentStore - ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error unsafe.Pointer) objc.Object + CurrentPersistentHistoryTokenFromStores(stores []objc.IObject) PersistentHistoryToken + MetadataForPersistentStore(store IPersistentStore) map[string]objc.Object + RemovePersistentStoreError(store IPersistentStore, error unsafe.Pointer) bool URLForPersistentStore(store IPersistentStore) foundation.URL + ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error unsafe.Pointer) objc.Object + AddPersistentStoreWithTypeConfigurationURLOptionsError(storeType string, configuration string, storeURL foundation.IURL, options foundation.Dictionary, error unsafe.Pointer) PersistentStore + PerformBlock(block func()) + SetURLForPersistentStore(url foundation.IURL, store IPersistentStore) bool + AddPersistentStoreWithDescriptionCompletionHandler(storeDescription IPersistentStoreDescription, block func(arg0 PersistentStoreDescription, arg1 foundation.Error)) + ManagedObjectIDForURIRepresentation(url foundation.IURL) ManagedObjectID + ManagedObjectModel() ManagedObjectModel Name() string SetName(value string) PersistentStores() []PersistentStore - ManagedObjectModel() ManagedObjectModel } // An object that enables an app’s contexts and the underlying persistent stores to work together. [Full Topic] @@ -85,14 +85,6 @@ func (p_ PersistentStoreCoordinator) Init() PersistentStoreCoordinator { return rv } -// Changes the location of the specified persistent store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468858-seturl?language=objc -func (p_ PersistentStoreCoordinator) SetURLForPersistentStore(url foundation.IURL, store IPersistentStore) bool { - rv := objc.Call[bool](p_, objc.Sel("setURL:forPersistentStore:"), url, store) - return rv -} - // Executes the provided closure on the coordinator’s queue and waits for it to finish. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468862-performblockandwait?language=objc @@ -100,26 +92,35 @@ func (p_ PersistentStoreCoordinator) PerformBlockAndWait(block func()) { objc.Call[objc.Void](p_, objc.Sel("performBlockAndWait:"), block) } -// Updates the metadata of a specific type of persistent store at the provided location. [Full Topic] +// Updates the metadata for the specified persistent store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468899-setmetadata?language=objc +func (p_ PersistentStoreCoordinator) SetMetadataForPersistentStore(metadata map[string]objc.IObject, store IPersistentStore) { + objc.Call[objc.Void](p_, objc.Sel("setMetadata:forPersistentStore:"), metadata, store) +} + +// Returns the persistent store for the specified file URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468893-setmetadata?language=objc -func (pc _PersistentStoreCoordinatorClass) SetMetadataForPersistentStoreOfTypeURLOptionsError(metadata map[string]objc.IObject, storeType string, url foundation.IURL, options foundation.Dictionary, error unsafe.Pointer) bool { - rv := objc.Call[bool](pc, objc.Sel("setMetadata:forPersistentStoreOfType:URL:options:error:"), metadata, storeType, url, options, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468824-persistentstoreforurl?language=objc +func (p_ PersistentStoreCoordinator) PersistentStoreForURL(URL foundation.IURL) PersistentStore { + rv := objc.Call[PersistentStore](p_, objc.Sel("persistentStoreForURL:"), URL) return rv } -// Updates the metadata of a specific type of persistent store at the provided location. [Full Topic] +// Returns a single persistent history token representing all of the specified stores. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468893-setmetadata?language=objc -func PersistentStoreCoordinator_SetMetadataForPersistentStoreOfTypeURLOptionsError(metadata map[string]objc.IObject, storeType string, url foundation.IURL, options foundation.Dictionary, error unsafe.Pointer) bool { - return PersistentStoreCoordinatorClass.SetMetadataForPersistentStoreOfTypeURLOptionsError(metadata, storeType, url, options, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/3325497-currentpersistenthistorytokenfro?language=objc +func (p_ PersistentStoreCoordinator) CurrentPersistentHistoryTokenFromStores(stores []objc.IObject) PersistentHistoryToken { + rv := objc.Call[PersistentHistoryToken](p_, objc.Sel("currentPersistentHistoryTokenFromStores:"), stores) + return rv } -// Executes the provided closure asynchronously on the coordinator’s queue. [Full Topic] +// Returns the metadata of the specified persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468794-performblock?language=objc -func (p_ PersistentStoreCoordinator) PerformBlock(block func()) { - objc.Call[objc.Void](p_, objc.Sel("performBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468911-metadataforpersistentstore?language=objc +func (p_ PersistentStoreCoordinator) MetadataForPersistentStore(store IPersistentStore) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](p_, objc.Sel("metadataForPersistentStore:"), store) + return rv } // Removes the specified persistent store from the coordinator. [Full Topic] @@ -130,57 +131,57 @@ func (p_ PersistentStoreCoordinator) RemovePersistentStoreError(store IPersisten return rv } -// Returns a single persistent history token representing all of the specified stores. [Full Topic] +// Returns the location of the provided persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/3325497-currentpersistenthistorytokenfro?language=objc -func (p_ PersistentStoreCoordinator) CurrentPersistentHistoryTokenFromStores(stores []objc.IObject) PersistentHistoryToken { - rv := objc.Call[PersistentHistoryToken](p_, objc.Sel("currentPersistentHistoryTokenFromStores:"), stores) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468865-urlforpersistentstore?language=objc +func (p_ PersistentStoreCoordinator) URLForPersistentStore(store IPersistentStore) foundation.URL { + rv := objc.Call[foundation.URL](p_, objc.Sel("URLForPersistentStore:"), store) return rv } -// Returns the object identifier for the specified URI representation. [Full Topic] +// Executes the specified request on each of the coordinator’s persistent stores. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468882-managedobjectidforurirepresentat?language=objc -func (p_ PersistentStoreCoordinator) ManagedObjectIDForURIRepresentation(url foundation.IURL) ManagedObjectID { - rv := objc.Call[ManagedObjectID](p_, objc.Sel("managedObjectIDForURIRepresentation:"), url) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468872-executerequest?language=objc +func (p_ PersistentStoreCoordinator) ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("executeRequest:withContext:error:"), request, context, error) return rv } -// Returns the metadata of the specified persistent store. [Full Topic] +// Adds a specific type of persistent store at the provided location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468911-metadataforpersistentstore?language=objc -func (p_ PersistentStoreCoordinator) MetadataForPersistentStore(store IPersistentStore) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](p_, objc.Sel("metadataForPersistentStore:"), store) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468860-addpersistentstorewithtype?language=objc +func (p_ PersistentStoreCoordinator) AddPersistentStoreWithTypeConfigurationURLOptionsError(storeType string, configuration string, storeURL foundation.IURL, options foundation.Dictionary, error unsafe.Pointer) PersistentStore { + rv := objc.Call[PersistentStore](p_, objc.Sel("addPersistentStoreWithType:configuration:URL:options:error:"), storeType, configuration, storeURL, options, error) return rv } -// Adds a persistent store using the provided description. [Full Topic] +// Executes the provided closure asynchronously on the coordinator’s queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1640556-addpersistentstorewithdescriptio?language=objc -func (p_ PersistentStoreCoordinator) AddPersistentStoreWithDescriptionCompletionHandler(storeDescription IPersistentStoreDescription, block func(arg0 PersistentStoreDescription, arg1 foundation.Error)) { - objc.Call[objc.Void](p_, objc.Sel("addPersistentStoreWithDescription:completionHandler:"), storeDescription, block) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468794-performblock?language=objc +func (p_ PersistentStoreCoordinator) PerformBlock(block func()) { + objc.Call[objc.Void](p_, objc.Sel("performBlock:"), block) } -// Updates the metadata for the specified persistent store. [Full Topic] +// Changes the location of the specified persistent store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468899-setmetadata?language=objc -func (p_ PersistentStoreCoordinator) SetMetadataForPersistentStore(metadata map[string]objc.IObject, store IPersistentStore) { - objc.Call[objc.Void](p_, objc.Sel("setMetadata:forPersistentStore:"), metadata, store) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468858-seturl?language=objc +func (p_ PersistentStoreCoordinator) SetURLForPersistentStore(url foundation.IURL, store IPersistentStore) bool { + rv := objc.Call[bool](p_, objc.Sel("setURL:forPersistentStore:"), url, store) + return rv } -// Adds a specific type of persistent store at the provided location. [Full Topic] +// Adds a persistent store using the provided description. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468860-addpersistentstorewithtype?language=objc -func (p_ PersistentStoreCoordinator) AddPersistentStoreWithTypeConfigurationURLOptionsError(storeType string, configuration string, storeURL foundation.IURL, options foundation.Dictionary, error unsafe.Pointer) PersistentStore { - rv := objc.Call[PersistentStore](p_, objc.Sel("addPersistentStoreWithType:configuration:URL:options:error:"), storeType, configuration, storeURL, options, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1640556-addpersistentstorewithdescriptio?language=objc +func (p_ PersistentStoreCoordinator) AddPersistentStoreWithDescriptionCompletionHandler(storeDescription IPersistentStoreDescription, block func(arg0 PersistentStoreDescription, arg1 foundation.Error)) { + objc.Call[objc.Void](p_, objc.Sel("addPersistentStoreWithDescription:completionHandler:"), storeDescription, block) } -// Returns the persistent store for the specified file URL. [Full Topic] +// Returns the object identifier for the specified URI representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468824-persistentstoreforurl?language=objc -func (p_ PersistentStoreCoordinator) PersistentStoreForURL(URL foundation.IURL) PersistentStore { - rv := objc.Call[PersistentStore](p_, objc.Sel("persistentStoreForURL:"), URL) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468882-managedobjectidforurirepresentat?language=objc +func (p_ PersistentStoreCoordinator) ManagedObjectIDForURIRepresentation(url foundation.IURL) ManagedObjectID { + rv := objc.Call[ManagedObjectID](p_, objc.Sel("managedObjectIDForURIRepresentation:"), url) return rv } @@ -199,19 +200,26 @@ func PersistentStoreCoordinator_MetadataForPersistentStoreOfTypeURLOptionsError( return PersistentStoreCoordinatorClass.MetadataForPersistentStoreOfTypeURLOptionsError(storeType, url, options, error) } -// Executes the specified request on each of the coordinator’s persistent stores. [Full Topic] +// The coordinator’s registered store types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468872-executerequest?language=objc -func (p_ PersistentStoreCoordinator) ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("executeRequest:withContext:error:"), request, context, error) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468870-registeredstoretypes?language=objc +func (pc _PersistentStoreCoordinatorClass) RegisteredStoreTypes() map[string]foundation.Value { + rv := objc.Call[map[string]foundation.Value](pc, objc.Sel("registeredStoreTypes")) return rv } -// Returns the location of the provided persistent store. [Full Topic] +// The coordinator’s registered store types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468865-urlforpersistentstore?language=objc -func (p_ PersistentStoreCoordinator) URLForPersistentStore(store IPersistentStore) foundation.URL { - rv := objc.Call[foundation.URL](p_, objc.Sel("URLForPersistentStore:"), store) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468870-registeredstoretypes?language=objc +func PersistentStoreCoordinator_RegisteredStoreTypes() map[string]foundation.Value { + return PersistentStoreCoordinatorClass.RegisteredStoreTypes() +} + +// The coordinator’s managed object model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468834-managedobjectmodel?language=objc +func (p_ PersistentStoreCoordinator) ManagedObjectModel() ManagedObjectModel { + rv := objc.Call[ManagedObjectModel](p_, objc.Sel("managedObjectModel")) return rv } @@ -230,21 +238,6 @@ func (p_ PersistentStoreCoordinator) SetName(value string) { objc.Call[objc.Void](p_, objc.Sel("setName:"), value) } -// The coordinator’s registered store types. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468870-registeredstoretypes?language=objc -func (pc _PersistentStoreCoordinatorClass) RegisteredStoreTypes() map[string]foundation.Value { - rv := objc.Call[map[string]foundation.Value](pc, objc.Sel("registeredStoreTypes")) - return rv -} - -// The coordinator’s registered store types. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468870-registeredstoretypes?language=objc -func PersistentStoreCoordinator_RegisteredStoreTypes() map[string]foundation.Value { - return PersistentStoreCoordinatorClass.RegisteredStoreTypes() -} - // The coordinator’s persistent stores. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468790-persistentstores?language=objc @@ -252,11 +245,3 @@ func (p_ PersistentStoreCoordinator) PersistentStores() []PersistentStore { rv := objc.Call[[]PersistentStore](p_, objc.Sel("persistentStores")) return rv } - -// The coordinator’s managed object model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468834-managedobjectmodel?language=objc -func (p_ PersistentStoreCoordinator) ManagedObjectModel() ManagedObjectModel { - rv := objc.Call[ManagedObjectModel](p_, objc.Sel("managedObjectModel")) - return rv -} diff --git a/macos/coredata/persistent_store_description.gen.go b/macos/coredata/persistent_store_description.gen.go index 72ab9545..bd04de99 100644 --- a/macos/coredata/persistent_store_description.gen.go +++ b/macos/coredata/persistent_store_description.gen.go @@ -21,26 +21,26 @@ type IPersistentStoreDescription interface { objc.IObject SetOptionForKey(option objc.IObject, key string) SetValueForPragmaNamed(value objc.IObject, name string) - URL() foundation.URL - SetURL(value foundation.IURL) + IsReadOnly() bool + SetReadOnly(value bool) + ShouldAddStoreAsynchronously() bool + SetShouldAddStoreAsynchronously(value bool) + Options() map[string]objc.Object ShouldInferMappingModelAutomatically() bool SetShouldInferMappingModelAutomatically(value bool) + SqlitePragmas() map[string]objc.Object + Timeout() foundation.TimeInterval + SetTimeout(value foundation.TimeInterval) + URL() foundation.URL + SetURL(value foundation.IURL) Configuration() string SetConfiguration(value string) - ShouldAddStoreAsynchronously() bool - SetShouldAddStoreAsynchronously(value bool) - SqlitePragmas() map[string]objc.Object CloudKitContainerOptions() PersistentCloudKitContainerOptions SetCloudKitContainerOptions(value IPersistentCloudKitContainerOptions) ShouldMigrateStoreAutomatically() bool SetShouldMigrateStoreAutomatically(value bool) Type() string SetType(value string) - Options() map[string]objc.Object - Timeout() foundation.TimeInterval - SetTimeout(value foundation.TimeInterval) - IsReadOnly() bool - SetReadOnly(value bool) } // A description object used to create and load a persistent store. [Full Topic] @@ -116,19 +116,42 @@ func (p_ PersistentStoreDescription) SetValueForPragmaNamed(value objc.IObject, objc.Call[objc.Void](p_, objc.Sel("setValue:forPragmaNamed:"), value, name) } -// The URL that the store will use for its location. [Full Topic] +// A flag that indicates whether this store will be read-only. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640616-url?language=objc -func (p_ PersistentStoreDescription) URL() foundation.URL { - rv := objc.Call[foundation.URL](p_, objc.Sel("URL")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640626-readonly?language=objc +func (p_ PersistentStoreDescription) IsReadOnly() bool { + rv := objc.Call[bool](p_, objc.Sel("isReadOnly")) return rv } -// The URL that the store will use for its location. [Full Topic] +// A flag that indicates whether this store will be read-only. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640616-url?language=objc -func (p_ PersistentStoreDescription) SetURL(value foundation.IURL) { - objc.Call[objc.Void](p_, objc.Sel("setURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640626-readonly?language=objc +func (p_ PersistentStoreDescription) SetReadOnly(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setReadOnly:"), value) +} + +// A flag that determines whether the store is added asynchronously. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640599-shouldaddstoreasynchronously?language=objc +func (p_ PersistentStoreDescription) ShouldAddStoreAsynchronously() bool { + rv := objc.Call[bool](p_, objc.Sel("shouldAddStoreAsynchronously")) + return rv +} + +// A flag that determines whether the store is added asynchronously. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640599-shouldaddstoreasynchronously?language=objc +func (p_ PersistentStoreDescription) SetShouldAddStoreAsynchronously(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setShouldAddStoreAsynchronously:"), value) +} + +// A dictionary representation of the options set on the associated persistent store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640571-options?language=objc +func (p_ PersistentStoreDescription) Options() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](p_, objc.Sel("options")) + return rv } // A flag indicating whether a mapping model should be created automatically. [Full Topic] @@ -146,44 +169,59 @@ func (p_ PersistentStoreDescription) SetShouldInferMappingModelAutomatically(val objc.Call[objc.Void](p_, objc.Sel("setShouldInferMappingModelAutomatically:"), value) } -// The name of the configuration used by this store. [Full Topic] +// The SQLite pragmas set for the associated persistent store. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640634-configuration?language=objc -func (p_ PersistentStoreDescription) Configuration() string { - rv := objc.Call[string](p_, objc.Sel("configuration")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640614-sqlitepragmas?language=objc +func (p_ PersistentStoreDescription) SqlitePragmas() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](p_, objc.Sel("sqlitePragmas")) return rv } -// The name of the configuration used by this store. [Full Topic] +// The connection timeout for the associated store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640634-configuration?language=objc -func (p_ PersistentStoreDescription) SetConfiguration(value string) { - objc.Call[objc.Void](p_, objc.Sel("setConfiguration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640587-timeout?language=objc +func (p_ PersistentStoreDescription) Timeout() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("timeout")) + return rv } -// A flag that determines whether the store is added asynchronously. [Full Topic] +// The connection timeout for the associated store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640599-shouldaddstoreasynchronously?language=objc -func (p_ PersistentStoreDescription) ShouldAddStoreAsynchronously() bool { - rv := objc.Call[bool](p_, objc.Sel("shouldAddStoreAsynchronously")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640587-timeout?language=objc +func (p_ PersistentStoreDescription) SetTimeout(value foundation.TimeInterval) { + objc.Call[objc.Void](p_, objc.Sel("setTimeout:"), value) +} + +// The URL that the store will use for its location. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640616-url?language=objc +func (p_ PersistentStoreDescription) URL() foundation.URL { + rv := objc.Call[foundation.URL](p_, objc.Sel("URL")) return rv } -// A flag that determines whether the store is added asynchronously. [Full Topic] +// The URL that the store will use for its location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640599-shouldaddstoreasynchronously?language=objc -func (p_ PersistentStoreDescription) SetShouldAddStoreAsynchronously(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setShouldAddStoreAsynchronously:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640616-url?language=objc +func (p_ PersistentStoreDescription) SetURL(value foundation.IURL) { + objc.Call[objc.Void](p_, objc.Sel("setURL:"), value) } -// The SQLite pragmas set for the associated persistent store. (read-only) [Full Topic] +// The name of the configuration used by this store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640614-sqlitepragmas?language=objc -func (p_ PersistentStoreDescription) SqlitePragmas() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](p_, objc.Sel("sqlitePragmas")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640634-configuration?language=objc +func (p_ PersistentStoreDescription) Configuration() string { + rv := objc.Call[string](p_, objc.Sel("configuration")) return rv } +// The name of the configuration used by this store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640634-configuration?language=objc +func (p_ PersistentStoreDescription) SetConfiguration(value string) { + objc.Call[objc.Void](p_, objc.Sel("setConfiguration:"), value) +} + // Options that customize how this store description aligns with a CloudKit database. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/3141672-cloudkitcontaineroptions?language=objc @@ -228,41 +266,3 @@ func (p_ PersistentStoreDescription) Type() string { func (p_ PersistentStoreDescription) SetType(value string) { objc.Call[objc.Void](p_, objc.Sel("setType:"), value) } - -// A dictionary representation of the options set on the associated persistent store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640571-options?language=objc -func (p_ PersistentStoreDescription) Options() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](p_, objc.Sel("options")) - return rv -} - -// The connection timeout for the associated store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640587-timeout?language=objc -func (p_ PersistentStoreDescription) Timeout() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("timeout")) - return rv -} - -// The connection timeout for the associated store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640587-timeout?language=objc -func (p_ PersistentStoreDescription) SetTimeout(value foundation.TimeInterval) { - objc.Call[objc.Void](p_, objc.Sel("setTimeout:"), value) -} - -// A flag that indicates whether this store will be read-only. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640626-readonly?language=objc -func (p_ PersistentStoreDescription) IsReadOnly() bool { - rv := objc.Call[bool](p_, objc.Sel("isReadOnly")) - return rv -} - -// A flag that indicates whether this store will be read-only. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstoredescription/1640626-readonly?language=objc -func (p_ PersistentStoreDescription) SetReadOnly(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setReadOnly:"), value) -} diff --git a/macos/coredata/property_description.gen.go b/macos/coredata/property_description.gen.go index 22fe2f40..9363f407 100644 --- a/macos/coredata/property_description.gen.go +++ b/macos/coredata/property_description.gen.go @@ -20,24 +20,24 @@ type _PropertyDescriptionClass struct { type IPropertyDescription interface { objc.IObject SetValidationPredicatesWithValidationWarnings(validationPredicates []foundation.IPredicate, validationWarnings []string) - IsTransient() bool - SetTransient(value bool) - IsIndexedBySpotlight() bool - SetIndexedBySpotlight(value bool) - RenamingIdentifier() string - SetRenamingIdentifier(value string) - VersionHashModifier() string - SetVersionHashModifier(value string) + Entity() EntityDescription Name() string SetName(value string) - Entity() EntityDescription - ValidationWarnings() []objc.Object + VersionHash() []byte + IsTransient() bool + SetTransient(value bool) + ValidationPredicates() []foundation.Predicate UserInfo() foundation.Dictionary SetUserInfo(value foundation.Dictionary) - ValidationPredicates() []foundation.Predicate + ValidationWarnings() []objc.Object + VersionHashModifier() string + SetVersionHashModifier(value string) + RenamingIdentifier() string + SetRenamingIdentifier(value string) IsOptional() bool SetOptional(value bool) - VersionHash() []byte + IsIndexedBySpotlight() bool + SetIndexedBySpotlight(value bool) } // A description of a single property belonging to an entity. [Full Topic] @@ -80,87 +80,73 @@ func (p_ PropertyDescription) SetValidationPredicatesWithValidationWarnings(vali objc.Call[objc.Void](p_, objc.Sel("setValidationPredicates:withValidationWarnings:"), validationPredicates, validationWarnings) } -// A Boolean value that indicates whether the receiver is transient. [Full Topic] +// The entity description of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506766-transient?language=objc -func (p_ PropertyDescription) IsTransient() bool { - rv := objc.Call[bool](p_, objc.Sel("isTransient")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506745-entity?language=objc +func (p_ PropertyDescription) Entity() EntityDescription { + rv := objc.Call[EntityDescription](p_, objc.Sel("entity")) return rv } -// A Boolean value that indicates whether the receiver is transient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506766-transient?language=objc -func (p_ PropertyDescription) SetTransient(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setTransient:"), value) -} - -// A Boolean value that indicates whether Core Data adds the property’s value to the Core Spotlight index. [Full Topic] +// The name of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506784-indexedbyspotlight?language=objc -func (p_ PropertyDescription) IsIndexedBySpotlight() bool { - rv := objc.Call[bool](p_, objc.Sel("isIndexedBySpotlight")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506759-name?language=objc +func (p_ PropertyDescription) Name() string { + rv := objc.Call[string](p_, objc.Sel("name")) return rv } -// A Boolean value that indicates whether Core Data adds the property’s value to the Core Spotlight index. [Full Topic] +// The name of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506784-indexedbyspotlight?language=objc -func (p_ PropertyDescription) SetIndexedBySpotlight(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setIndexedBySpotlight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506759-name?language=objc +func (p_ PropertyDescription) SetName(value string) { + objc.Call[objc.Void](p_, objc.Sel("setName:"), value) } -// The renaming identifier for the receiver. [Full Topic] +// The version hash for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506641-renamingidentifier?language=objc -func (p_ PropertyDescription) RenamingIdentifier() string { - rv := objc.Call[string](p_, objc.Sel("renamingIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506198-versionhash?language=objc +func (p_ PropertyDescription) VersionHash() []byte { + rv := objc.Call[[]byte](p_, objc.Sel("versionHash")) return rv } -// The renaming identifier for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506641-renamingidentifier?language=objc -func (p_ PropertyDescription) SetRenamingIdentifier(value string) { - objc.Call[objc.Void](p_, objc.Sel("setRenamingIdentifier:"), value) -} - -// The version hash modifier for the receiver. [Full Topic] +// A Boolean value that indicates whether the receiver is transient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506214-versionhashmodifier?language=objc -func (p_ PropertyDescription) VersionHashModifier() string { - rv := objc.Call[string](p_, objc.Sel("versionHashModifier")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506766-transient?language=objc +func (p_ PropertyDescription) IsTransient() bool { + rv := objc.Call[bool](p_, objc.Sel("isTransient")) return rv } -// The version hash modifier for the receiver. [Full Topic] +// A Boolean value that indicates whether the receiver is transient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506214-versionhashmodifier?language=objc -func (p_ PropertyDescription) SetVersionHashModifier(value string) { - objc.Call[objc.Void](p_, objc.Sel("setVersionHashModifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506766-transient?language=objc +func (p_ PropertyDescription) SetTransient(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setTransient:"), value) } -// The name of the receiver. [Full Topic] +// The validation predicates of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506759-name?language=objc -func (p_ PropertyDescription) Name() string { - rv := objc.Call[string](p_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506842-validationpredicates?language=objc +func (p_ PropertyDescription) ValidationPredicates() []foundation.Predicate { + rv := objc.Call[[]foundation.Predicate](p_, objc.Sel("validationPredicates")) return rv } -// The name of the receiver. [Full Topic] +// The user info dictionary of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506759-name?language=objc -func (p_ PropertyDescription) SetName(value string) { - objc.Call[objc.Void](p_, objc.Sel("setName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506833-userinfo?language=objc +func (p_ PropertyDescription) UserInfo() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](p_, objc.Sel("userInfo")) + return rv } -// The entity description of the receiver. [Full Topic] +// The user info dictionary of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506745-entity?language=objc -func (p_ PropertyDescription) Entity() EntityDescription { - rv := objc.Call[EntityDescription](p_, objc.Sel("entity")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506833-userinfo?language=objc +func (p_ PropertyDescription) SetUserInfo(value foundation.Dictionary) { + objc.Call[objc.Void](p_, objc.Sel("setUserInfo:"), value) } // The error strings associated with the receiver’s validation predicates. [Full Topic] @@ -171,29 +157,36 @@ func (p_ PropertyDescription) ValidationWarnings() []objc.Object { return rv } -// The user info dictionary of the receiver. [Full Topic] +// The version hash modifier for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506833-userinfo?language=objc -func (p_ PropertyDescription) UserInfo() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](p_, objc.Sel("userInfo")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506214-versionhashmodifier?language=objc +func (p_ PropertyDescription) VersionHashModifier() string { + rv := objc.Call[string](p_, objc.Sel("versionHashModifier")) return rv } -// The user info dictionary of the receiver. [Full Topic] +// The version hash modifier for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506833-userinfo?language=objc -func (p_ PropertyDescription) SetUserInfo(value foundation.Dictionary) { - objc.Call[objc.Void](p_, objc.Sel("setUserInfo:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506214-versionhashmodifier?language=objc +func (p_ PropertyDescription) SetVersionHashModifier(value string) { + objc.Call[objc.Void](p_, objc.Sel("setVersionHashModifier:"), value) } -// The validation predicates of the receiver. [Full Topic] +// The renaming identifier for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506842-validationpredicates?language=objc -func (p_ PropertyDescription) ValidationPredicates() []foundation.Predicate { - rv := objc.Call[[]foundation.Predicate](p_, objc.Sel("validationPredicates")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506641-renamingidentifier?language=objc +func (p_ PropertyDescription) RenamingIdentifier() string { + rv := objc.Call[string](p_, objc.Sel("renamingIdentifier")) return rv } +// The renaming identifier for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506641-renamingidentifier?language=objc +func (p_ PropertyDescription) SetRenamingIdentifier(value string) { + objc.Call[objc.Void](p_, objc.Sel("setRenamingIdentifier:"), value) +} + // A Boolean value that indicates whether the receiver is optional. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506735-optional?language=objc @@ -209,10 +202,17 @@ func (p_ PropertyDescription) SetOptional(value bool) { objc.Call[objc.Void](p_, objc.Sel("setOptional:"), value) } -// The version hash for the receiver. [Full Topic] +// A Boolean value that indicates whether Core Data adds the property’s value to the Core Spotlight index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506198-versionhash?language=objc -func (p_ PropertyDescription) VersionHash() []byte { - rv := objc.Call[[]byte](p_, objc.Sel("versionHash")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506784-indexedbyspotlight?language=objc +func (p_ PropertyDescription) IsIndexedBySpotlight() bool { + rv := objc.Call[bool](p_, objc.Sel("isIndexedBySpotlight")) return rv } + +// A Boolean value that indicates whether Core Data adds the property’s value to the Core Spotlight index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertydescription/1506784-indexedbyspotlight?language=objc +func (p_ PropertyDescription) SetIndexedBySpotlight(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setIndexedBySpotlight:"), value) +} diff --git a/macos/coredata/property_mapping.gen.go b/macos/coredata/property_mapping.gen.go index 41ed2dae..a1d347a3 100644 --- a/macos/coredata/property_mapping.gen.go +++ b/macos/coredata/property_mapping.gen.go @@ -21,10 +21,10 @@ type IPropertyMapping interface { objc.IObject Name() string SetName(value string) - UserInfo() foundation.Dictionary - SetUserInfo(value foundation.Dictionary) ValueExpression() foundation.Expression SetValueExpression(value foundation.IExpression) + UserInfo() foundation.Dictionary + SetUserInfo(value foundation.Dictionary) } // A mapping instance that specifies in a model how to map from a property in a source entity to a property in a destination entity. [Full Topic] @@ -75,21 +75,6 @@ func (p_ PropertyMapping) SetName(value string) { objc.Call[objc.Void](p_, objc.Sel("setName:"), value) } -// The user info for the property mapping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertymapping/1506516-userinfo?language=objc -func (p_ PropertyMapping) UserInfo() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](p_, objc.Sel("userInfo")) - return rv -} - -// The user info for the property mapping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertymapping/1506516-userinfo?language=objc -func (p_ PropertyMapping) SetUserInfo(value foundation.Dictionary) { - objc.Call[objc.Void](p_, objc.Sel("setUserInfo:"), value) -} - // The value expression for the property mapping. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertymapping/1506819-valueexpression?language=objc @@ -104,3 +89,18 @@ func (p_ PropertyMapping) ValueExpression() foundation.Expression { func (p_ PropertyMapping) SetValueExpression(value foundation.IExpression) { objc.Call[objc.Void](p_, objc.Sel("setValueExpression:"), value) } + +// The user info for the property mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertymapping/1506516-userinfo?language=objc +func (p_ PropertyMapping) UserInfo() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](p_, objc.Sel("userInfo")) + return rv +} + +// The user info for the property mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertymapping/1506516-userinfo?language=objc +func (p_ PropertyMapping) SetUserInfo(value foundation.Dictionary) { + objc.Call[objc.Void](p_, objc.Sel("setUserInfo:"), value) +} diff --git a/macos/coredata/relationship_description.gen.go b/macos/coredata/relationship_description.gen.go index 0f9fb757..464ad8cc 100644 --- a/macos/coredata/relationship_description.gen.go +++ b/macos/coredata/relationship_description.gen.go @@ -22,15 +22,15 @@ type IRelationshipDescription interface { SetOrdered(value bool) DestinationEntity() EntityDescription SetDestinationEntity(value IEntityDescription) - MaxCount() uint - SetMaxCount(value uint) DeleteRule() DeleteRule SetDeleteRule(value DeleteRule) + MaxCount() uint + SetMaxCount(value uint) + IsToMany() bool MinCount() uint SetMinCount(value uint) InverseRelationship() RelationshipDescription SetInverseRelationship(value IRelationshipDescription) - IsToMany() bool } // A description of a relationship between two entities. [Full Topic] @@ -96,6 +96,21 @@ func (r_ RelationshipDescription) SetDestinationEntity(value IEntityDescription) objc.Call[objc.Void](r_, objc.Sel("setDestinationEntity:"), value) } +// The rule to apply when you delete the relationship’s owning managed object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsrelationshipdescription/1506870-deleterule?language=objc +func (r_ RelationshipDescription) DeleteRule() DeleteRule { + rv := objc.Call[DeleteRule](r_, objc.Sel("deleteRule")) + return rv +} + +// The rule to apply when you delete the relationship’s owning managed object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsrelationshipdescription/1506870-deleterule?language=objc +func (r_ RelationshipDescription) SetDeleteRule(value DeleteRule) { + objc.Call[objc.Void](r_, objc.Sel("setDeleteRule:"), value) +} + // The maximum number of managed objects the relationship can reference. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsrelationshipdescription/1506780-maxcount?language=objc @@ -111,21 +126,14 @@ func (r_ RelationshipDescription) SetMaxCount(value uint) { objc.Call[objc.Void](r_, objc.Sel("setMaxCount:"), value) } -// The rule to apply when you delete the relationship’s owning managed object. [Full Topic] +// Returns a Boolean value that indicates whether the relationship can contain many managed objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsrelationshipdescription/1506870-deleterule?language=objc -func (r_ RelationshipDescription) DeleteRule() DeleteRule { - rv := objc.Call[DeleteRule](r_, objc.Sel("deleteRule")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsrelationshipdescription/1506560-tomany?language=objc +func (r_ RelationshipDescription) IsToMany() bool { + rv := objc.Call[bool](r_, objc.Sel("isToMany")) return rv } -// The rule to apply when you delete the relationship’s owning managed object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsrelationshipdescription/1506870-deleterule?language=objc -func (r_ RelationshipDescription) SetDeleteRule(value DeleteRule) { - objc.Call[objc.Void](r_, objc.Sel("setDeleteRule:"), value) -} - // The minimum number of managed objects the relationship can reference. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsrelationshipdescription/1506599-mincount?language=objc @@ -155,11 +163,3 @@ func (r_ RelationshipDescription) InverseRelationship() RelationshipDescription func (r_ RelationshipDescription) SetInverseRelationship(value IRelationshipDescription) { objc.Call[objc.Void](r_, objc.Sel("setInverseRelationship:"), value) } - -// Returns a Boolean value that indicates whether the relationship can contain many managed objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsrelationshipdescription/1506560-tomany?language=objc -func (r_ RelationshipDescription) IsToMany() bool { - rv := objc.Call[bool](r_, objc.Sel("isToMany")) - return rv -} diff --git a/macos/coredata/save_changes_request.gen.go b/macos/coredata/save_changes_request.gen.go index b69ccd87..d2abf140 100644 --- a/macos/coredata/save_changes_request.gen.go +++ b/macos/coredata/save_changes_request.gen.go @@ -19,10 +19,10 @@ type _SaveChangesRequestClass struct { // An interface definition for the [SaveChangesRequest] class. type ISaveChangesRequest interface { IPersistentStoreRequest - LockedObjects() foundation.Set - UpdatedObjects() foundation.Set - InsertedObjects() foundation.Set DeletedObjects() foundation.Set + InsertedObjects() foundation.Set + UpdatedObjects() foundation.Set + LockedObjects() foundation.Set } // An encapsulation of a collection of changes to be made by an object store in response to a save operation on a managed object context. [Full Topic] @@ -72,19 +72,11 @@ func (s_ SaveChangesRequest) Init() SaveChangesRequest { return rv } -// The objects that were flagged for optimistic locking on the calling context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nssavechangesrequest/1500426-lockedobjects?language=objc -func (s_ SaveChangesRequest) LockedObjects() foundation.Set { - rv := objc.Call[foundation.Set](s_, objc.Sel("lockedObjects")) - return rv -} - -// The objects that were modified in the calling context. [Full Topic] +// The objects that were deleted in the calling context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nssavechangesrequest/1500424-updatedobjects?language=objc -func (s_ SaveChangesRequest) UpdatedObjects() foundation.Set { - rv := objc.Call[foundation.Set](s_, objc.Sel("updatedObjects")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nssavechangesrequest/1500420-deletedobjects?language=objc +func (s_ SaveChangesRequest) DeletedObjects() foundation.Set { + rv := objc.Call[foundation.Set](s_, objc.Sel("deletedObjects")) return rv } @@ -96,10 +88,18 @@ func (s_ SaveChangesRequest) InsertedObjects() foundation.Set { return rv } -// The objects that were deleted in the calling context. [Full Topic] +// The objects that were modified in the calling context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nssavechangesrequest/1500420-deletedobjects?language=objc -func (s_ SaveChangesRequest) DeletedObjects() foundation.Set { - rv := objc.Call[foundation.Set](s_, objc.Sel("deletedObjects")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nssavechangesrequest/1500424-updatedobjects?language=objc +func (s_ SaveChangesRequest) UpdatedObjects() foundation.Set { + rv := objc.Call[foundation.Set](s_, objc.Sel("updatedObjects")) + return rv +} + +// The objects that were flagged for optimistic locking on the calling context. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nssavechangesrequest/1500426-lockedobjects?language=objc +func (s_ SaveChangesRequest) LockedObjects() foundation.Set { + rv := objc.Call[foundation.Set](s_, objc.Sel("lockedObjects")) return rv } diff --git a/macos/corefoundation/enumtypes.gen.go b/macos/corefoundation/enumtypes.gen.go index 7cd2ace6..eed3aa0d 100644 --- a/macos/corefoundation/enumtypes.gen.go +++ b/macos/corefoundation/enumtypes.gen.go @@ -171,7 +171,7 @@ const ( KNotFound Index = -1 ) -// These constants describe the text direction for a language. They are returned by the functions [corefoundation/cflocalegetlanguagecharacterdire] and [corefoundation/cflocalegetlanguagelinedirection]. [Full Topic] +// These constants describe the text direction for a language. They are returned by the functions CFLocaleGetLanguageCharacterDirection and CFLocaleGetLanguageLineDirection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corefoundation/cflocalelanguagedirection?language=objc type LocaleLanguageDirection Index @@ -593,7 +593,7 @@ const ( KStringNormalizationFormKD StringNormalizationForm = 1 ) -// Token types returned by [corefoundation/cfstringtokenizergototokenatinde] and [corefoundation/cfstringtokenizeradvancetonextto]. [Full Topic] +// Token types returned by CFStringTokenizerGoToTokenAtIndex and CFStringTokenizerAdvanceToNextToken. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corefoundation/cfstringtokenizertokentype?language=objc type StringTokenizerTokenType OptionFlags @@ -706,7 +706,7 @@ const ( KURLEnumeratorSkipPackageContents URLEnumeratorOptions = 8 ) -// Result codes from the [corefoundation/cfurlenumeratorgetnexturl] function. [Full Topic] +// Result codes from the CFURLEnumeratorGetNextURL function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corefoundation/cfurlenumeratorresult?language=objc type URLEnumeratorResult Index diff --git a/macos/coregraphics/aliastypes.gen.go b/macos/coregraphics/aliastypes.gen.go index b2301d6e..afdc4158 100644 --- a/macos/coregraphics/aliastypes.gen.go +++ b/macos/coregraphics/aliastypes.gen.go @@ -125,7 +125,7 @@ type FunctionReleaseInfoCallback = func(info unsafe.Pointer) // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpdfarrayapplierblock?language=objc type PDFArrayApplierBlock = func(index uint, value unsafe.Pointer, info unsafe.Pointer) bool -// A callback function that releases data you supply to the function [coregraphics/cgdataprovidercreatewithdata]. [Full Topic] +// A callback function that releases data you supply to the function CGDataProviderCreateWithData. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdataproviderreleasedatacallback?language=objc type DataProviderReleaseDataCallback = func(info unsafe.Pointer, data unsafe.Pointer, size uint) diff --git a/macos/coregraphics/enumtypes.gen.go b/macos/coregraphics/enumtypes.gen.go index a0ad0edb..8b07ffcf 100644 --- a/macos/coregraphics/enumtypes.gen.go +++ b/macos/coregraphics/enumtypes.gen.go @@ -320,7 +320,7 @@ const ( // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgeventmask?language=objc type EventMask uint64 -// Constants used with the kCGMouseEventSubtype event field. [Full Topic] +// Constants used with the [coregraphics/cgeventfield/kcgmouseeventsubtype] event field. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgeventmousesubtype?language=objc type EventMouseSubtype uint32 diff --git a/macos/coreimage/accordion_fold_transition_protocol.gen.go b/macos/coreimage/accordion_fold_transition_protocol.gen.go index f5375dcd..13dd2bb7 100644 --- a/macos/coreimage/accordion_fold_transition_protocol.gen.go +++ b/macos/coreimage/accordion_fold_transition_protocol.gen.go @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition?language=objc type PAccordionFoldTransition interface { // optional - SetNumberOfFolds(value float32) - HasSetNumberOfFolds() bool + SetBottomHeight(value float32) + HasSetBottomHeight() bool // optional - NumberOfFolds() float32 - HasNumberOfFolds() bool + BottomHeight() float32 + HasBottomHeight() bool // optional SetFoldShadowAmount(value float32) @@ -27,12 +27,12 @@ type PAccordionFoldTransition interface { HasFoldShadowAmount() bool // optional - SetBottomHeight(value float32) - HasSetBottomHeight() bool + SetNumberOfFolds(value float32) + HasSetNumberOfFolds() bool // optional - BottomHeight() float32 - HasBottomHeight() bool + NumberOfFolds() float32 + HasNumberOfFolds() bool } // ensure impl type implements protocol interface @@ -43,26 +43,26 @@ type AccordionFoldTransitionObject struct { objc.Object } -func (a_ AccordionFoldTransitionObject) HasSetNumberOfFolds() bool { - return a_.RespondsToSelector(objc.Sel("setNumberOfFolds:")) +func (a_ AccordionFoldTransitionObject) HasSetBottomHeight() bool { + return a_.RespondsToSelector(objc.Sel("setBottomHeight:")) } -// The number of folds used in the transition. [Full Topic] +// The height of the accordion-fold part of the transition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228052-numberoffolds?language=objc -func (a_ AccordionFoldTransitionObject) SetNumberOfFolds(value float32) { - objc.Call[objc.Void](a_, objc.Sel("setNumberOfFolds:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228050-bottomheight?language=objc +func (a_ AccordionFoldTransitionObject) SetBottomHeight(value float32) { + objc.Call[objc.Void](a_, objc.Sel("setBottomHeight:"), value) } -func (a_ AccordionFoldTransitionObject) HasNumberOfFolds() bool { - return a_.RespondsToSelector(objc.Sel("numberOfFolds")) +func (a_ AccordionFoldTransitionObject) HasBottomHeight() bool { + return a_.RespondsToSelector(objc.Sel("bottomHeight")) } -// The number of folds used in the transition. [Full Topic] +// The height of the accordion-fold part of the transition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228052-numberoffolds?language=objc -func (a_ AccordionFoldTransitionObject) NumberOfFolds() float32 { - rv := objc.Call[float32](a_, objc.Sel("numberOfFolds")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228050-bottomheight?language=objc +func (a_ AccordionFoldTransitionObject) BottomHeight() float32 { + rv := objc.Call[float32](a_, objc.Sel("bottomHeight")) return rv } @@ -89,25 +89,25 @@ func (a_ AccordionFoldTransitionObject) FoldShadowAmount() float32 { return rv } -func (a_ AccordionFoldTransitionObject) HasSetBottomHeight() bool { - return a_.RespondsToSelector(objc.Sel("setBottomHeight:")) +func (a_ AccordionFoldTransitionObject) HasSetNumberOfFolds() bool { + return a_.RespondsToSelector(objc.Sel("setNumberOfFolds:")) } -// The height of the accordion-fold part of the transition. [Full Topic] +// The number of folds used in the transition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228050-bottomheight?language=objc -func (a_ AccordionFoldTransitionObject) SetBottomHeight(value float32) { - objc.Call[objc.Void](a_, objc.Sel("setBottomHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228052-numberoffolds?language=objc +func (a_ AccordionFoldTransitionObject) SetNumberOfFolds(value float32) { + objc.Call[objc.Void](a_, objc.Sel("setNumberOfFolds:"), value) } -func (a_ AccordionFoldTransitionObject) HasBottomHeight() bool { - return a_.RespondsToSelector(objc.Sel("bottomHeight")) +func (a_ AccordionFoldTransitionObject) HasNumberOfFolds() bool { + return a_.RespondsToSelector(objc.Sel("numberOfFolds")) } -// The height of the accordion-fold part of the transition. [Full Topic] +// The number of folds used in the transition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228050-bottomheight?language=objc -func (a_ AccordionFoldTransitionObject) BottomHeight() float32 { - rv := objc.Call[float32](a_, objc.Sel("bottomHeight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228052-numberoffolds?language=objc +func (a_ AccordionFoldTransitionObject) NumberOfFolds() float32 { + rv := objc.Call[float32](a_, objc.Sel("numberOfFolds")) return rv } diff --git a/macos/coreimage/affine_clamp_protocol.gen.go b/macos/coreimage/affine_clamp_protocol.gen.go index a3eae076..708ae39b 100644 --- a/macos/coreimage/affine_clamp_protocol.gen.go +++ b/macos/coreimage/affine_clamp_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp?language=objc type PAffineClamp interface { - // optional - SetTransform(value coregraphics.AffineTransform) - HasSetTransform() bool - - // optional - Transform() coregraphics.AffineTransform - HasTransform() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -26,6 +18,14 @@ type PAffineClamp interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetTransform(value coregraphics.AffineTransform) + HasSetTransform() bool + + // optional + Transform() coregraphics.AffineTransform + HasTransform() bool } // ensure impl type implements protocol interface @@ -36,29 +36,6 @@ type AffineClampObject struct { objc.Object } -func (a_ AffineClampObject) HasSetTransform() bool { - return a_.RespondsToSelector(objc.Sel("setTransform:")) -} - -// The transform to apply to the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp/3228055-transform?language=objc -func (a_ AffineClampObject) SetTransform(value coregraphics.AffineTransform) { - objc.Call[objc.Void](a_, objc.Sel("setTransform:"), value) -} - -func (a_ AffineClampObject) HasTransform() bool { - return a_.RespondsToSelector(objc.Sel("transform")) -} - -// The transform to apply to the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp/3228055-transform?language=objc -func (a_ AffineClampObject) Transform() coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("transform")) - return rv -} - func (a_ AffineClampObject) HasSetInputImage() bool { return a_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -81,3 +58,26 @@ func (a_ AffineClampObject) InputImage() Image { rv := objc.Call[Image](a_, objc.Sel("inputImage")) return rv } + +func (a_ AffineClampObject) HasSetTransform() bool { + return a_.RespondsToSelector(objc.Sel("setTransform:")) +} + +// The transform to apply to the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp/3228055-transform?language=objc +func (a_ AffineClampObject) SetTransform(value coregraphics.AffineTransform) { + objc.Call[objc.Void](a_, objc.Sel("setTransform:"), value) +} + +func (a_ AffineClampObject) HasTransform() bool { + return a_.RespondsToSelector(objc.Sel("transform")) +} + +// The transform to apply to the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp/3228055-transform?language=objc +func (a_ AffineClampObject) Transform() coregraphics.AffineTransform { + rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("transform")) + return rv +} diff --git a/macos/coreimage/affine_tile_protocol.gen.go b/macos/coreimage/affine_tile_protocol.gen.go index 751ef1dc..b7735bbe 100644 --- a/macos/coreimage/affine_tile_protocol.gen.go +++ b/macos/coreimage/affine_tile_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile?language=objc type PAffineTile interface { - // optional - SetTransform(value coregraphics.AffineTransform) - HasSetTransform() bool - - // optional - Transform() coregraphics.AffineTransform - HasTransform() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -26,6 +18,14 @@ type PAffineTile interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetTransform(value coregraphics.AffineTransform) + HasSetTransform() bool + + // optional + Transform() coregraphics.AffineTransform + HasTransform() bool } // ensure impl type implements protocol interface @@ -36,29 +36,6 @@ type AffineTileObject struct { objc.Object } -func (a_ AffineTileObject) HasSetTransform() bool { - return a_.RespondsToSelector(objc.Sel("setTransform:")) -} - -// The transform to apply to the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile/3228058-transform?language=objc -func (a_ AffineTileObject) SetTransform(value coregraphics.AffineTransform) { - objc.Call[objc.Void](a_, objc.Sel("setTransform:"), value) -} - -func (a_ AffineTileObject) HasTransform() bool { - return a_.RespondsToSelector(objc.Sel("transform")) -} - -// The transform to apply to the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile/3228058-transform?language=objc -func (a_ AffineTileObject) Transform() coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("transform")) - return rv -} - func (a_ AffineTileObject) HasSetInputImage() bool { return a_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -81,3 +58,26 @@ func (a_ AffineTileObject) InputImage() Image { rv := objc.Call[Image](a_, objc.Sel("inputImage")) return rv } + +func (a_ AffineTileObject) HasSetTransform() bool { + return a_.RespondsToSelector(objc.Sel("setTransform:")) +} + +// The transform to apply to the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile/3228058-transform?language=objc +func (a_ AffineTileObject) SetTransform(value coregraphics.AffineTransform) { + objc.Call[objc.Void](a_, objc.Sel("setTransform:"), value) +} + +func (a_ AffineTileObject) HasTransform() bool { + return a_.RespondsToSelector(objc.Sel("transform")) +} + +// The transform to apply to the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile/3228058-transform?language=objc +func (a_ AffineTileObject) Transform() coregraphics.AffineTransform { + rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("transform")) + return rv +} diff --git a/macos/coreimage/aliastypes.gen.go b/macos/coreimage/aliastypes.gen.go index cbf28fed..aac16fbe 100644 --- a/macos/coreimage/aliastypes.gen.go +++ b/macos/coreimage/aliastypes.gen.go @@ -6,7 +6,7 @@ import ( "github.com/progrium/darwinkit/macos/coregraphics" ) -// The signature for a block that computes the region of interest (ROI) for a given area of destination image pixels. Core Image calls this block when applying the kernel. You specify this block when using the [coreimage/cikernel/applywithextent] method. [Full Topic] +// The signature for a block that computes the region of interest (ROI) for a given area of destination image pixels. Core Image calls this block when applying the kernel. You specify this block when using the applyWithExtent:roiCallback:arguments: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernelroicallback?language=objc type KernelROICallback = func(index int, destRect coregraphics.Rect) coregraphics.Rect diff --git a/macos/coreimage/area_reduction_filter_protocol.gen.go b/macos/coreimage/area_reduction_filter_protocol.gen.go index cab17047..68251989 100644 --- a/macos/coreimage/area_reduction_filter_protocol.gen.go +++ b/macos/coreimage/area_reduction_filter_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareareductionfilter?language=objc type PAreaReductionFilter interface { - // optional - SetExtent(value coregraphics.Rect) - HasSetExtent() bool - - // optional - Extent() coregraphics.Rect - HasExtent() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -26,6 +18,14 @@ type PAreaReductionFilter interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetExtent(value coregraphics.Rect) + HasSetExtent() bool + + // optional + Extent() coregraphics.Rect + HasExtent() bool } // ensure impl type implements protocol interface @@ -36,48 +36,48 @@ type AreaReductionFilterObject struct { objc.Object } -func (a_ AreaReductionFilterObject) HasSetExtent() bool { - return a_.RespondsToSelector(objc.Sel("setExtent:")) +func (a_ AreaReductionFilterObject) HasSetInputImage() bool { + return a_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareareductionfilter/3547101-extent?language=objc -func (a_ AreaReductionFilterObject) SetExtent(value coregraphics.Rect) { - objc.Call[objc.Void](a_, objc.Sel("setExtent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareareductionfilter/3547102-inputimage?language=objc +func (a_ AreaReductionFilterObject) SetInputImage(value Image) { + objc.Call[objc.Void](a_, objc.Sel("setInputImage:"), value) } -func (a_ AreaReductionFilterObject) HasExtent() bool { - return a_.RespondsToSelector(objc.Sel("extent")) +func (a_ AreaReductionFilterObject) HasInputImage() bool { + return a_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareareductionfilter/3547101-extent?language=objc -func (a_ AreaReductionFilterObject) Extent() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](a_, objc.Sel("extent")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareareductionfilter/3547102-inputimage?language=objc +func (a_ AreaReductionFilterObject) InputImage() Image { + rv := objc.Call[Image](a_, objc.Sel("inputImage")) return rv } -func (a_ AreaReductionFilterObject) HasSetInputImage() bool { - return a_.RespondsToSelector(objc.Sel("setInputImage:")) +func (a_ AreaReductionFilterObject) HasSetExtent() bool { + return a_.RespondsToSelector(objc.Sel("setExtent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareareductionfilter/3547102-inputimage?language=objc -func (a_ AreaReductionFilterObject) SetInputImage(value Image) { - objc.Call[objc.Void](a_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareareductionfilter/3547101-extent?language=objc +func (a_ AreaReductionFilterObject) SetExtent(value coregraphics.Rect) { + objc.Call[objc.Void](a_, objc.Sel("setExtent:"), value) } -func (a_ AreaReductionFilterObject) HasInputImage() bool { - return a_.RespondsToSelector(objc.Sel("inputImage")) +func (a_ AreaReductionFilterObject) HasExtent() bool { + return a_.RespondsToSelector(objc.Sel("extent")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareareductionfilter/3547102-inputimage?language=objc -func (a_ AreaReductionFilterObject) InputImage() Image { - rv := objc.Call[Image](a_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareareductionfilter/3547101-extent?language=objc +func (a_ AreaReductionFilterObject) Extent() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](a_, objc.Sel("extent")) return rv } diff --git a/macos/coreimage/aztec_code_descriptor.gen.go b/macos/coreimage/aztec_code_descriptor.gen.go index d8711a65..fbb93ec1 100644 --- a/macos/coreimage/aztec_code_descriptor.gen.go +++ b/macos/coreimage/aztec_code_descriptor.gen.go @@ -18,10 +18,10 @@ type _AztecCodeDescriptorClass struct { // An interface definition for the [AztecCodeDescriptor] class. type IAztecCodeDescriptor interface { IBarcodeDescriptor - ErrorCorrectedPayload() []byte - LayerCount() int IsCompact() bool DataCodewordCount() int + ErrorCorrectedPayload() []byte + LayerCount() int } // A concrete subclass of CIBarcodeDescriptor that represents an Aztec code symbol. [Full Topic] @@ -83,22 +83,6 @@ func (a_ AztecCodeDescriptor) Init() AztecCodeDescriptor { return rv } -// The error-corrected payload containing the data encoded in the Aztec code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875187-errorcorrectedpayload?language=objc -func (a_ AztecCodeDescriptor) ErrorCorrectedPayload() []byte { - rv := objc.Call[[]byte](a_, objc.Sel("errorCorrectedPayload")) - return rv -} - -// The number of layers embedded in the Aztec code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875174-layercount?language=objc -func (a_ AztecCodeDescriptor) LayerCount() int { - rv := objc.Call[int](a_, objc.Sel("layerCount")) - return rv -} - // A Boolean value telling if the Aztec code is compact. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875203-iscompact?language=objc @@ -114,3 +98,19 @@ func (a_ AztecCodeDescriptor) DataCodewordCount() int { rv := objc.Call[int](a_, objc.Sel("dataCodewordCount")) return rv } + +// The error-corrected payload containing the data encoded in the Aztec code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875187-errorcorrectedpayload?language=objc +func (a_ AztecCodeDescriptor) ErrorCorrectedPayload() []byte { + rv := objc.Call[[]byte](a_, objc.Sel("errorCorrectedPayload")) + return rv +} + +// The number of layers embedded in the Aztec code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875174-layercount?language=objc +func (a_ AztecCodeDescriptor) LayerCount() int { + rv := objc.Call[int](a_, objc.Sel("layerCount")) + return rv +} diff --git a/macos/coreimage/aztec_code_generator_protocol.gen.go b/macos/coreimage/aztec_code_generator_protocol.gen.go index 16f71b79..601e15a4 100644 --- a/macos/coreimage/aztec_code_generator_protocol.gen.go +++ b/macos/coreimage/aztec_code_generator_protocol.gen.go @@ -10,22 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator?language=objc type PAztecCodeGenerator interface { - // optional - SetCompactStyle(value float32) - HasSetCompactStyle() bool - - // optional - CompactStyle() float32 - HasCompactStyle() bool - - // optional - SetCorrectionLevel(value float32) - HasSetCorrectionLevel() bool - - // optional - CorrectionLevel() float32 - HasCorrectionLevel() bool - // optional SetLayers(value float32) HasSetLayers() bool @@ -34,6 +18,14 @@ type PAztecCodeGenerator interface { Layers() float32 HasLayers() bool + // optional + SetCompactStyle(value float32) + HasSetCompactStyle() bool + + // optional + CompactStyle() float32 + HasCompactStyle() bool + // optional SetMessage(value []byte) HasSetMessage() bool @@ -41,6 +33,14 @@ type PAztecCodeGenerator interface { // optional Message() []byte HasMessage() bool + + // optional + SetCorrectionLevel(value float32) + HasSetCorrectionLevel() bool + + // optional + CorrectionLevel() float32 + HasCorrectionLevel() bool } // ensure impl type implements protocol interface @@ -51,52 +51,6 @@ type AztecCodeGeneratorObject struct { objc.Object } -func (a_ AztecCodeGeneratorObject) HasSetCompactStyle() bool { - return a_.RespondsToSelector(objc.Sel("setCompactStyle:")) -} - -// A Boolean that specifies whether to force a compact style Aztec code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228063-compactstyle?language=objc -func (a_ AztecCodeGeneratorObject) SetCompactStyle(value float32) { - objc.Call[objc.Void](a_, objc.Sel("setCompactStyle:"), value) -} - -func (a_ AztecCodeGeneratorObject) HasCompactStyle() bool { - return a_.RespondsToSelector(objc.Sel("compactStyle")) -} - -// A Boolean that specifies whether to force a compact style Aztec code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228063-compactstyle?language=objc -func (a_ AztecCodeGeneratorObject) CompactStyle() float32 { - rv := objc.Call[float32](a_, objc.Sel("compactStyle")) - return rv -} - -func (a_ AztecCodeGeneratorObject) HasSetCorrectionLevel() bool { - return a_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) -} - -// The Aztec error correction, a value from 5 to 95. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228064-correctionlevel?language=objc -func (a_ AztecCodeGeneratorObject) SetCorrectionLevel(value float32) { - objc.Call[objc.Void](a_, objc.Sel("setCorrectionLevel:"), value) -} - -func (a_ AztecCodeGeneratorObject) HasCorrectionLevel() bool { - return a_.RespondsToSelector(objc.Sel("correctionLevel")) -} - -// The Aztec error correction, a value from 5 to 95. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228064-correctionlevel?language=objc -func (a_ AztecCodeGeneratorObject) CorrectionLevel() float32 { - rv := objc.Call[float32](a_, objc.Sel("correctionLevel")) - return rv -} - func (a_ AztecCodeGeneratorObject) HasSetLayers() bool { return a_.RespondsToSelector(objc.Sel("setLayers:")) } @@ -120,6 +74,29 @@ func (a_ AztecCodeGeneratorObject) Layers() float32 { return rv } +func (a_ AztecCodeGeneratorObject) HasSetCompactStyle() bool { + return a_.RespondsToSelector(objc.Sel("setCompactStyle:")) +} + +// A Boolean that specifies whether to force a compact style Aztec code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228063-compactstyle?language=objc +func (a_ AztecCodeGeneratorObject) SetCompactStyle(value float32) { + objc.Call[objc.Void](a_, objc.Sel("setCompactStyle:"), value) +} + +func (a_ AztecCodeGeneratorObject) HasCompactStyle() bool { + return a_.RespondsToSelector(objc.Sel("compactStyle")) +} + +// A Boolean that specifies whether to force a compact style Aztec code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228063-compactstyle?language=objc +func (a_ AztecCodeGeneratorObject) CompactStyle() float32 { + rv := objc.Call[float32](a_, objc.Sel("compactStyle")) + return rv +} + func (a_ AztecCodeGeneratorObject) HasSetMessage() bool { return a_.RespondsToSelector(objc.Sel("setMessage:")) } @@ -142,3 +119,26 @@ func (a_ AztecCodeGeneratorObject) Message() []byte { rv := objc.Call[[]byte](a_, objc.Sel("message")) return rv } + +func (a_ AztecCodeGeneratorObject) HasSetCorrectionLevel() bool { + return a_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) +} + +// The Aztec error correction, a value from 5 to 95. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228064-correctionlevel?language=objc +func (a_ AztecCodeGeneratorObject) SetCorrectionLevel(value float32) { + objc.Call[objc.Void](a_, objc.Sel("setCorrectionLevel:"), value) +} + +func (a_ AztecCodeGeneratorObject) HasCorrectionLevel() bool { + return a_.RespondsToSelector(objc.Sel("correctionLevel")) +} + +// The Aztec error correction, a value from 5 to 95. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228064-correctionlevel?language=objc +func (a_ AztecCodeGeneratorObject) CorrectionLevel() float32 { + rv := objc.Call[float32](a_, objc.Sel("correctionLevel")) + return rv +} diff --git a/macos/coreimage/bars_swipe_transition_protocol.gen.go b/macos/coreimage/bars_swipe_transition_protocol.gen.go index be079360..dfeca35f 100644 --- a/macos/coreimage/bars_swipe_transition_protocol.gen.go +++ b/macos/coreimage/bars_swipe_transition_protocol.gen.go @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition?language=objc type PBarsSwipeTransition interface { // optional - SetAngle(value float32) - HasSetAngle() bool + SetWidth(value float32) + HasSetWidth() bool // optional - Angle() float32 - HasAngle() bool + Width() float32 + HasWidth() bool // optional SetBarOffset(value float32) @@ -27,12 +27,12 @@ type PBarsSwipeTransition interface { HasBarOffset() bool // optional - SetWidth(value float32) - HasSetWidth() bool + SetAngle(value float32) + HasSetAngle() bool // optional - Width() float32 - HasWidth() bool + Angle() float32 + HasAngle() bool } // ensure impl type implements protocol interface @@ -43,26 +43,26 @@ type BarsSwipeTransitionObject struct { objc.Object } -func (b_ BarsSwipeTransitionObject) HasSetAngle() bool { - return b_.RespondsToSelector(objc.Sel("setAngle:")) +func (b_ BarsSwipeTransitionObject) HasSetWidth() bool { + return b_.RespondsToSelector(objc.Sel("setWidth:")) } -// The angle, in radians, of the bars. [Full Topic] +// The width of each bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228070-angle?language=objc -func (b_ BarsSwipeTransitionObject) SetAngle(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228072-width?language=objc +func (b_ BarsSwipeTransitionObject) SetWidth(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setWidth:"), value) } -func (b_ BarsSwipeTransitionObject) HasAngle() bool { - return b_.RespondsToSelector(objc.Sel("angle")) +func (b_ BarsSwipeTransitionObject) HasWidth() bool { + return b_.RespondsToSelector(objc.Sel("width")) } -// The angle, in radians, of the bars. [Full Topic] +// The width of each bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228070-angle?language=objc -func (b_ BarsSwipeTransitionObject) Angle() float32 { - rv := objc.Call[float32](b_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228072-width?language=objc +func (b_ BarsSwipeTransitionObject) Width() float32 { + rv := objc.Call[float32](b_, objc.Sel("width")) return rv } @@ -89,25 +89,25 @@ func (b_ BarsSwipeTransitionObject) BarOffset() float32 { return rv } -func (b_ BarsSwipeTransitionObject) HasSetWidth() bool { - return b_.RespondsToSelector(objc.Sel("setWidth:")) +func (b_ BarsSwipeTransitionObject) HasSetAngle() bool { + return b_.RespondsToSelector(objc.Sel("setAngle:")) } -// The width of each bar. [Full Topic] +// The angle, in radians, of the bars. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228072-width?language=objc -func (b_ BarsSwipeTransitionObject) SetWidth(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228070-angle?language=objc +func (b_ BarsSwipeTransitionObject) SetAngle(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setAngle:"), value) } -func (b_ BarsSwipeTransitionObject) HasWidth() bool { - return b_.RespondsToSelector(objc.Sel("width")) +func (b_ BarsSwipeTransitionObject) HasAngle() bool { + return b_.RespondsToSelector(objc.Sel("angle")) } -// The width of each bar. [Full Topic] +// The angle, in radians, of the bars. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228072-width?language=objc -func (b_ BarsSwipeTransitionObject) Width() float32 { - rv := objc.Call[float32](b_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228070-angle?language=objc +func (b_ BarsSwipeTransitionObject) Angle() float32 { + rv := objc.Call[float32](b_, objc.Sel("angle")) return rv } diff --git a/macos/coreimage/bicubic_scale_transform_protocol.gen.go b/macos/coreimage/bicubic_scale_transform_protocol.gen.go index d9068287..d248b4e5 100644 --- a/macos/coreimage/bicubic_scale_transform_protocol.gen.go +++ b/macos/coreimage/bicubic_scale_transform_protocol.gen.go @@ -11,20 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform?language=objc type PBicubicScaleTransform interface { // optional - SetParameterC(value float32) - HasSetParameterC() bool - - // optional - ParameterC() float32 - HasParameterC() bool - - // optional - SetParameterB(value float32) - HasSetParameterB() bool + SetScale(value float32) + HasSetScale() bool // optional - ParameterB() float32 - HasParameterB() bool + Scale() float32 + HasScale() bool // optional SetInputImage(value Image) @@ -34,6 +26,14 @@ type PBicubicScaleTransform interface { InputImage() Image HasInputImage() bool + // optional + SetParameterC(value float32) + HasSetParameterC() bool + + // optional + ParameterC() float32 + HasParameterC() bool + // optional SetAspectRatio(value float32) HasSetAspectRatio() bool @@ -43,12 +43,12 @@ type PBicubicScaleTransform interface { HasAspectRatio() bool // optional - SetScale(value float32) - HasSetScale() bool + SetParameterB(value float32) + HasSetParameterB() bool // optional - Scale() float32 - HasScale() bool + ParameterB() float32 + HasParameterB() bool } // ensure impl type implements protocol interface @@ -59,49 +59,26 @@ type BicubicScaleTransformObject struct { objc.Object } -func (b_ BicubicScaleTransformObject) HasSetParameterC() bool { - return b_.RespondsToSelector(objc.Sel("setParameterC:")) -} - -// The value of C to use for the cubic resampling function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228077-parameterc?language=objc -func (b_ BicubicScaleTransformObject) SetParameterC(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setParameterC:"), value) -} - -func (b_ BicubicScaleTransformObject) HasParameterC() bool { - return b_.RespondsToSelector(objc.Sel("parameterC")) -} - -// The value of C to use for the cubic resampling function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228077-parameterc?language=objc -func (b_ BicubicScaleTransformObject) ParameterC() float32 { - rv := objc.Call[float32](b_, objc.Sel("parameterC")) - return rv -} - -func (b_ BicubicScaleTransformObject) HasSetParameterB() bool { - return b_.RespondsToSelector(objc.Sel("setParameterB:")) +func (b_ BicubicScaleTransformObject) HasSetScale() bool { + return b_.RespondsToSelector(objc.Sel("setScale:")) } -// The value of B to use for the cubic resampling function. [Full Topic] +// The scaling factor to use on the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228076-parameterb?language=objc -func (b_ BicubicScaleTransformObject) SetParameterB(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setParameterB:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228078-scale?language=objc +func (b_ BicubicScaleTransformObject) SetScale(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setScale:"), value) } -func (b_ BicubicScaleTransformObject) HasParameterB() bool { - return b_.RespondsToSelector(objc.Sel("parameterB")) +func (b_ BicubicScaleTransformObject) HasScale() bool { + return b_.RespondsToSelector(objc.Sel("scale")) } -// The value of B to use for the cubic resampling function. [Full Topic] +// The scaling factor to use on the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228076-parameterb?language=objc -func (b_ BicubicScaleTransformObject) ParameterB() float32 { - rv := objc.Call[float32](b_, objc.Sel("parameterB")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228078-scale?language=objc +func (b_ BicubicScaleTransformObject) Scale() float32 { + rv := objc.Call[float32](b_, objc.Sel("scale")) return rv } @@ -128,6 +105,29 @@ func (b_ BicubicScaleTransformObject) InputImage() Image { return rv } +func (b_ BicubicScaleTransformObject) HasSetParameterC() bool { + return b_.RespondsToSelector(objc.Sel("setParameterC:")) +} + +// The value of C to use for the cubic resampling function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228077-parameterc?language=objc +func (b_ BicubicScaleTransformObject) SetParameterC(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setParameterC:"), value) +} + +func (b_ BicubicScaleTransformObject) HasParameterC() bool { + return b_.RespondsToSelector(objc.Sel("parameterC")) +} + +// The value of C to use for the cubic resampling function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228077-parameterc?language=objc +func (b_ BicubicScaleTransformObject) ParameterC() float32 { + rv := objc.Call[float32](b_, objc.Sel("parameterC")) + return rv +} + func (b_ BicubicScaleTransformObject) HasSetAspectRatio() bool { return b_.RespondsToSelector(objc.Sel("setAspectRatio:")) } @@ -151,25 +151,25 @@ func (b_ BicubicScaleTransformObject) AspectRatio() float32 { return rv } -func (b_ BicubicScaleTransformObject) HasSetScale() bool { - return b_.RespondsToSelector(objc.Sel("setScale:")) +func (b_ BicubicScaleTransformObject) HasSetParameterB() bool { + return b_.RespondsToSelector(objc.Sel("setParameterB:")) } -// The scaling factor to use on the image. [Full Topic] +// The value of B to use for the cubic resampling function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228078-scale?language=objc -func (b_ BicubicScaleTransformObject) SetScale(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228076-parameterb?language=objc +func (b_ BicubicScaleTransformObject) SetParameterB(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setParameterB:"), value) } -func (b_ BicubicScaleTransformObject) HasScale() bool { - return b_.RespondsToSelector(objc.Sel("scale")) +func (b_ BicubicScaleTransformObject) HasParameterB() bool { + return b_.RespondsToSelector(objc.Sel("parameterB")) } -// The scaling factor to use on the image. [Full Topic] +// The value of B to use for the cubic resampling function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228078-scale?language=objc -func (b_ BicubicScaleTransformObject) Scale() float32 { - rv := objc.Call[float32](b_, objc.Sel("scale")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228076-parameterb?language=objc +func (b_ BicubicScaleTransformObject) ParameterB() float32 { + rv := objc.Call[float32](b_, objc.Sel("parameterB")) return rv } diff --git a/macos/coreimage/blend_kernel.gen.go b/macos/coreimage/blend_kernel.gen.go index 35c6702e..b7530acf 100644 --- a/macos/coreimage/blend_kernel.gen.go +++ b/macos/coreimage/blend_kernel.gen.go @@ -20,7 +20,6 @@ type _BlendKernelClass struct { type IBlendKernel interface { IColorKernel ApplyWithForegroundBackgroundColorSpace(foreground IImage, background IImage, colorSpace coregraphics.ColorSpaceRef) Image - ApplyWithForegroundBackground(foreground IImage, background IImage) Image } // A GPU-based image processing routine that is optimized for blending two images. [Full Topic] @@ -56,18 +55,6 @@ func (b_ BlendKernel) Init() BlendKernel { return rv } -func (bc _BlendKernelClass) KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error unsafe.Pointer) BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:error:"), name, data, error) - return rv -} - -// Creates a single kernel object using a Metal Shading Language (MSL) kernel function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/2880194-kernelwithfunctionname?language=objc -func BlendKernel_KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error unsafe.Pointer) BlendKernel { - return BlendKernelClass.KernelWithFunctionNameFromMetalLibraryDataError(name, data, error) -} - func (bc _BlendKernelClass) KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name string, data []byte, format Format, error unsafe.Pointer) BlendKernel { rv := objc.Call[BlendKernel](bc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:"), name, data, format, error) return rv @@ -88,102 +75,124 @@ func (b_ BlendKernel) ApplyWithForegroundBackgroundColorSpace(foreground IImage, return rv } -// Creates a new image using the blend kernel and specified foreground and background images. [Full Topic] +// A blend kernel that uses the foreground image to define what to take out of the background image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2919728-applywithforeground?language=objc -func (b_ BlendKernel) ApplyWithForegroundBackground(foreground IImage, background IImage) Image { - rv := objc.Call[Image](b_, objc.Sel("applyWithForeground:background:"), foreground, background) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867415-sourceout?language=objc +func (bc _BlendKernelClass) SourceOut() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("sourceOut")) return rv } -// A blend kernel that darkens the background image samples to reflect the foreground image samples while also increasing contrast. [Full Topic] +// A blend kernel that uses the foreground image to define what to take out of the background image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867409-linearburn?language=objc -func (bc _BlendKernelClass) LinearBurn() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("linearBurn")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867415-sourceout?language=objc +func BlendKernel_SourceOut() BlendKernel { + return BlendKernelClass.SourceOut() +} + +// A blend kernel that conditionally replaces background image samples with source image samples depending on the brightness of the source image samples. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867420-pinlight?language=objc +func (bc _BlendKernelClass) PinLight() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("pinLight")) return rv } -// A blend kernel that darkens the background image samples to reflect the foreground image samples while also increasing contrast. [Full Topic] +// A blend kernel that conditionally replaces background image samples with source image samples depending on the brightness of the source image samples. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867409-linearburn?language=objc -func BlendKernel_LinearBurn() BlendKernel { - return BlendKernelClass.LinearBurn() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867420-pinlight?language=objc +func BlendKernel_PinLight() BlendKernel { + return BlendKernelClass.PinLight() } -// A blend kernel that returns the foreground input image. [Full Topic] +// A blend kernel that uses the luminance values of the background with the hue and saturation values of the foreground image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867407-source?language=objc -func (bc _BlendKernelClass) Source() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("source")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867350-color?language=objc +func (bc _BlendKernelClass) Color() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("color")) return rv } -// A blend kernel that returns the foreground input image. [Full Topic] +// A blend kernel that uses the luminance values of the background with the hue and saturation values of the foreground image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867407-source?language=objc -func BlendKernel_Source() BlendKernel { - return BlendKernelClass.Source() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867350-color?language=objc +func BlendKernel_Color() BlendKernel { + return BlendKernelClass.Color() } -// A blend kernel that either multiplies or screens the foreground image samples with the background image samples, depending on the background color. [Full Topic] +// A blend kernel that creates an image using the maximum values of two input images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867411-overlay?language=objc -func (bc _BlendKernelClass) Overlay() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("overlay")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867433-componentmax?language=objc +func (bc _BlendKernelClass) ComponentMax() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("componentMax")) return rv } -// A blend kernel that either multiplies or screens the foreground image samples with the background image samples, depending on the background color. [Full Topic] +// A blend kernel that creates an image using the maximum values of two input images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867411-overlay?language=objc -func BlendKernel_Overlay() BlendKernel { - return BlendKernelClass.Overlay() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867433-componentmax?language=objc +func BlendKernel_ComponentMax() BlendKernel { + return BlendKernelClass.ComponentMax() } -// A blend kernel that brightens the background image samples to reflect the foreground image samples. [Full Topic] +// A blend kernel that places the foreground image over the input background image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867417-colordodge?language=objc -func (bc _BlendKernelClass) ColorDodge() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("colorDodge")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867413-sourceover?language=objc +func (bc _BlendKernelClass) SourceOver() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("sourceOver")) return rv } -// A blend kernel that brightens the background image samples to reflect the foreground image samples. [Full Topic] +// A blend kernel that places the foreground image over the input background image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867417-colordodge?language=objc -func BlendKernel_ColorDodge() BlendKernel { - return BlendKernelClass.ColorDodge() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867413-sourceover?language=objc +func BlendKernel_SourceOver() BlendKernel { + return BlendKernelClass.SourceOver() } -// A blend kernel that produces an effect similar to difference blending but with lower contrast. [Full Topic] +// A blend kernel that multiplies the inverse of the foreground image samples with the inverse of the background image samples. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867343-exclusion?language=objc -func (bc _BlendKernelClass) Exclusion() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("exclusion")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867356-screen?language=objc +func (bc _BlendKernelClass) Screen() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("screen")) return rv } -// A blend kernel that produces an effect similar to difference blending but with lower contrast. [Full Topic] +// A blend kernel that multiplies the inverse of the foreground image samples with the inverse of the background image samples. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867343-exclusion?language=objc -func BlendKernel_Exclusion() BlendKernel { - return BlendKernelClass.Exclusion() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867356-screen?language=objc +func BlendKernel_Screen() BlendKernel { + return BlendKernelClass.Screen() } -// A blend kernel that uses the foreground image to define what to take out of the background image. [Full Topic] +// A blend kernel that creates an image using the darker values of two input images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867415-sourceout?language=objc -func (bc _BlendKernelClass) SourceOut() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("sourceOut")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867348-darken?language=objc +func (bc _BlendKernelClass) Darken() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("darken")) return rv } -// A blend kernel that uses the foreground image to define what to take out of the background image. [Full Topic] +// A blend kernel that creates an image using the darker values of two input images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867415-sourceout?language=objc -func BlendKernel_SourceOut() BlendKernel { - return BlendKernelClass.SourceOut() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867348-darken?language=objc +func BlendKernel_Darken() BlendKernel { + return BlendKernelClass.Darken() +} + +// A blend kernel that creates an image using the minimum values of two input images. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867425-componentmin?language=objc +func (bc _BlendKernelClass) ComponentMin() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("componentMin")) + return rv +} + +// A blend kernel that creates an image using the minimum values of two input images. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867425-componentmin?language=objc +func BlendKernel_ComponentMin() BlendKernel { + return BlendKernelClass.ComponentMin() } // A blend kernel that uses the hue and saturation of the background image with the luminance of the foreground image. [Full Topic] @@ -201,49 +210,79 @@ func BlendKernel_Luminosity() BlendKernel { return BlendKernelClass.Luminosity() } -// A blend kernel that places the background image over the input foreground image. [Full Topic] +// A blend kernel that produces an effect similar to difference blending but with lower contrast. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867432-destinationover?language=objc -func (bc _BlendKernelClass) DestinationOver() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("destinationOver")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867343-exclusion?language=objc +func (bc _BlendKernelClass) Exclusion() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("exclusion")) return rv } -// A blend kernel that places the background image over the input foreground image. [Full Topic] +// A blend kernel that produces an effect similar to difference blending but with lower contrast. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867432-destinationover?language=objc -func BlendKernel_DestinationOver() BlendKernel { - return BlendKernelClass.DestinationOver() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867343-exclusion?language=objc +func BlendKernel_Exclusion() BlendKernel { + return BlendKernelClass.Exclusion() } -// A blend kernel that uses the background image to define what to take out of the foreground image. [Full Topic] +// A blend kernel that uses the luminance and hue values of the background image with the saturation of the foreground image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867368-destinationout?language=objc -func (bc _BlendKernelClass) DestinationOut() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("destinationOut")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867431-saturation?language=objc +func (bc _BlendKernelClass) Saturation() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("saturation")) return rv } -// A blend kernel that uses the background image to define what to take out of the foreground image. [Full Topic] +// A blend kernel that uses the luminance and hue values of the background image with the saturation of the foreground image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867368-destinationout?language=objc -func BlendKernel_DestinationOut() BlendKernel { - return BlendKernelClass.DestinationOut() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867431-saturation?language=objc +func BlendKernel_Saturation() BlendKernel { + return BlendKernelClass.Saturation() } -// A blend kernel that places the foreground over the background and crops based on the visibility of both. [Full Topic] +// A blend kernel that returns the foreground input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867428-sourcein?language=objc -func (bc _BlendKernelClass) SourceIn() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("sourceIn")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867407-source?language=objc +func (bc _BlendKernelClass) Source() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("source")) return rv } -// A blend kernel that places the foreground over the background and crops based on the visibility of both. [Full Topic] +// A blend kernel that returns the foreground input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867428-sourcein?language=objc -func BlendKernel_SourceIn() BlendKernel { - return BlendKernelClass.SourceIn() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867407-source?language=objc +func BlendKernel_Source() BlendKernel { + return BlendKernelClass.Source() +} + +// A blend kernel that either multiplies or screens the foreground image samples with the background image samples, depending on the background color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867411-overlay?language=objc +func (bc _BlendKernelClass) Overlay() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("overlay")) + return rv +} + +// A blend kernel that either multiplies or screens the foreground image samples with the background image samples, depending on the background color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867411-overlay?language=objc +func BlendKernel_Overlay() BlendKernel { + return BlendKernelClass.Overlay() +} + +// A blend kernel that places the background image over the input foreground image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867432-destinationover?language=objc +func (bc _BlendKernelClass) DestinationOver() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("destinationOver")) + return rv +} + +// A blend kernel that places the background image over the input foreground image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867432-destinationover?language=objc +func BlendKernel_DestinationOver() BlendKernel { + return BlendKernelClass.DestinationOver() } // A blend kernel that returns a clear color. [Full Topic] @@ -261,169 +300,169 @@ func BlendKernel_Clear() BlendKernel { return BlendKernelClass.Clear() } -// A blend kernel that subtracts the background image sample color from the foreground image sample color. [Full Topic] +// A blend kernel that creates an image using the lighter color of two input images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867370-subtract?language=objc -func (bc _BlendKernelClass) Subtract() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("subtract")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867427-lightercolor?language=objc +func (bc _BlendKernelClass) LighterColor() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("lighterColor")) return rv } -// A blend kernel that subtracts the background image sample color from the foreground image sample color. [Full Topic] +// A blend kernel that creates an image using the lighter color of two input images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867370-subtract?language=objc -func BlendKernel_Subtract() BlendKernel { - return BlendKernelClass.Subtract() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867427-lightercolor?language=objc +func BlendKernel_LighterColor() BlendKernel { + return BlendKernelClass.LighterColor() } -// A blend kernel that multiplies the color components of its input images. [Full Topic] +// A blend kernel that divides the background image sample color with the foreground image sample color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867406-componentmultiply?language=objc -func (bc _BlendKernelClass) ComponentMultiply() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("componentMultiply")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867410-divide?language=objc +func (bc _BlendKernelClass) Divide() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("divide")) return rv } -// A blend kernel that multiplies the color components of its input images. [Full Topic] +// A blend kernel that divides the background image sample color with the foreground image sample color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867406-componentmultiply?language=objc -func BlendKernel_ComponentMultiply() BlendKernel { - return BlendKernelClass.ComponentMultiply() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867410-divide?language=objc +func BlendKernel_Divide() BlendKernel { + return BlendKernelClass.Divide() } -// A blend kernel that creates an image using the maximum values of two input images. [Full Topic] +// A blend kernel that burns or dodges colors by changing brightness, depending on the blend color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867433-componentmax?language=objc -func (bc _BlendKernelClass) ComponentMax() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("componentMax")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867435-linearlight?language=objc +func (bc _BlendKernelClass) LinearLight() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("linearLight")) return rv } -// A blend kernel that creates an image using the maximum values of two input images. [Full Topic] +// A blend kernel that burns or dodges colors by changing brightness, depending on the blend color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867433-componentmax?language=objc -func BlendKernel_ComponentMax() BlendKernel { - return BlendKernelClass.ComponentMax() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867435-linearlight?language=objc +func BlendKernel_LinearLight() BlendKernel { + return BlendKernelClass.LinearLight() } -// A blend kernel that multiplies the inverse of the foreground image samples with the inverse of the background image samples. [Full Topic] +// A blend kernel that either darkens or lightens colors, depending on the foreground image sample color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867356-screen?language=objc -func (bc _BlendKernelClass) Screen() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("screen")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867434-softlight?language=objc +func (bc _BlendKernelClass) SoftLight() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("softLight")) return rv } -// A blend kernel that multiplies the inverse of the foreground image samples with the inverse of the background image samples. [Full Topic] +// A blend kernel that either darkens or lightens colors, depending on the foreground image sample color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867356-screen?language=objc -func BlendKernel_Screen() BlendKernel { - return BlendKernelClass.Screen() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867434-softlight?language=objc +func BlendKernel_SoftLight() BlendKernel { + return BlendKernelClass.SoftLight() } -// A blend kernel that conditionally replaces background image samples with source image samples depending on the brightness of the source image samples. [Full Topic] +// A blend kernel that uses the background image to define what to take out of the foreground image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867420-pinlight?language=objc -func (bc _BlendKernelClass) PinLight() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("pinLight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867368-destinationout?language=objc +func (bc _BlendKernelClass) DestinationOut() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("destinationOut")) return rv } -// A blend kernel that conditionally replaces background image samples with source image samples depending on the brightness of the source image samples. [Full Topic] +// A blend kernel that uses the background image to define what to take out of the foreground image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867420-pinlight?language=objc -func BlendKernel_PinLight() BlendKernel { - return BlendKernelClass.PinLight() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867368-destinationout?language=objc +func BlendKernel_DestinationOut() BlendKernel { + return BlendKernelClass.DestinationOut() } -// A blend kernel that returns either the foreground or background image if the other contains a clear color. [Full Topic] +// A blend kernel that creates an image using the lighter values of two input images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867421-exclusiveor?language=objc -func (bc _BlendKernelClass) ExclusiveOr() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("exclusiveOr")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867424-lighten?language=objc +func (bc _BlendKernelClass) Lighten() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("lighten")) return rv } -// A blend kernel that returns either the foreground or background image if the other contains a clear color. [Full Topic] +// A blend kernel that creates an image using the lighter values of two input images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867421-exclusiveor?language=objc -func BlendKernel_ExclusiveOr() BlendKernel { - return BlendKernelClass.ExclusiveOr() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867424-lighten?language=objc +func BlendKernel_Lighten() BlendKernel { + return BlendKernelClass.Lighten() } -// A blend kernel that darkens the background image samples to reflect the foreground image samples. [Full Topic] +// A blend kernel that brightens the background image samples to reflect the foreground image samples. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867391-colorburn?language=objc -func (bc _BlendKernelClass) ColorBurn() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("colorBurn")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867417-colordodge?language=objc +func (bc _BlendKernelClass) ColorDodge() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("colorDodge")) return rv } -// A blend kernel that darkens the background image samples to reflect the foreground image samples. [Full Topic] +// A blend kernel that brightens the background image samples to reflect the foreground image samples. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867391-colorburn?language=objc -func BlendKernel_ColorBurn() BlendKernel { - return BlendKernelClass.ColorBurn() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867417-colordodge?language=objc +func BlendKernel_ColorDodge() BlendKernel { + return BlendKernelClass.ColorDodge() } -// A blend kernel that burns or dodges colors by changing brightness, depending on the blend color. [Full Topic] +// A blend kernel that adds two images together, setting each color channel value to either 0 or 1. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867435-linearlight?language=objc -func (bc _BlendKernelClass) LinearLight() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("linearLight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867347-hardmix?language=objc +func (bc _BlendKernelClass) HardMix() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("hardMix")) return rv } -// A blend kernel that burns or dodges colors by changing brightness, depending on the blend color. [Full Topic] +// A blend kernel that adds two images together, setting each color channel value to either 0 or 1. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867435-linearlight?language=objc -func BlendKernel_LinearLight() BlendKernel { - return BlendKernelClass.LinearLight() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867347-hardmix?language=objc +func BlendKernel_HardMix() BlendKernel { + return BlendKernelClass.HardMix() } -// A blend kernel that multiplies the background image sample color with the foreground image sample color. [Full Topic] +// A blend kernel that subtracts the background image sample color from the foreground image sample color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867419-multiply?language=objc -func (bc _BlendKernelClass) Multiply() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("multiply")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867370-subtract?language=objc +func (bc _BlendKernelClass) Subtract() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("subtract")) return rv } -// A blend kernel that multiplies the background image sample color with the foreground image sample color. [Full Topic] +// A blend kernel that subtracts the background image sample color from the foreground image sample color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867419-multiply?language=objc -func BlendKernel_Multiply() BlendKernel { - return BlendKernelClass.Multiply() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867370-subtract?language=objc +func BlendKernel_Subtract() BlendKernel { + return BlendKernelClass.Subtract() } -// A blend kernel that creates an image using the difference between the background and foreground images. [Full Topic] +// A blend kernel that darkens the background image samples to reflect the foreground image samples while also increasing contrast. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867416-difference?language=objc -func (bc _BlendKernelClass) Difference() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("difference")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867409-linearburn?language=objc +func (bc _BlendKernelClass) LinearBurn() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("linearBurn")) return rv } -// A blend kernel that creates an image using the difference between the background and foreground images. [Full Topic] +// A blend kernel that darkens the background image samples to reflect the foreground image samples while also increasing contrast. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867416-difference?language=objc -func BlendKernel_Difference() BlendKernel { - return BlendKernelClass.Difference() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867409-linearburn?language=objc +func BlendKernel_LinearBurn() BlendKernel { + return BlendKernelClass.LinearBurn() } -// A blend kernel that either darkens or lightens colors, depending on the foreground image sample color. [Full Topic] +// A blend kernel that places the foreground over the background and crops based on the visibility of both. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867434-softlight?language=objc -func (bc _BlendKernelClass) SoftLight() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("softLight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867428-sourcein?language=objc +func (bc _BlendKernelClass) SourceIn() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("sourceIn")) return rv } -// A blend kernel that either darkens or lightens colors, depending on the foreground image sample color. [Full Topic] +// A blend kernel that places the foreground over the background and crops based on the visibility of both. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867434-softlight?language=objc -func BlendKernel_SoftLight() BlendKernel { - return BlendKernelClass.SoftLight() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867428-sourcein?language=objc +func BlendKernel_SourceIn() BlendKernel { + return BlendKernelClass.SourceIn() } // A blend kernel that returns the background input image. [Full Topic] @@ -441,19 +480,49 @@ func BlendKernel_Destination() BlendKernel { return BlendKernelClass.Destination() } -// A blend kernel that creates an image using the lighter values of two input images. [Full Topic] +// A blend kernel that multiplies the color components of its input images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867424-lighten?language=objc -func (bc _BlendKernelClass) Lighten() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("lighten")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867406-componentmultiply?language=objc +func (bc _BlendKernelClass) ComponentMultiply() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("componentMultiply")) return rv } -// A blend kernel that creates an image using the lighter values of two input images. [Full Topic] +// A blend kernel that multiplies the color components of its input images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867424-lighten?language=objc -func BlendKernel_Lighten() BlendKernel { - return BlendKernelClass.Lighten() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867406-componentmultiply?language=objc +func BlendKernel_ComponentMultiply() BlendKernel { + return BlendKernelClass.ComponentMultiply() +} + +// A blend kernel that creates an image using the difference between the background and foreground images. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867416-difference?language=objc +func (bc _BlendKernelClass) Difference() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("difference")) + return rv +} + +// A blend kernel that creates an image using the difference between the background and foreground images. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867416-difference?language=objc +func BlendKernel_Difference() BlendKernel { + return BlendKernelClass.Difference() +} + +// A blend kernel that uses the luminance and saturation values of the background image with the hue of the foreground image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867408-hue?language=objc +func (bc _BlendKernelClass) Hue() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("hue")) + return rv +} + +// A blend kernel that uses the luminance and saturation values of the background image with the hue of the foreground image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867408-hue?language=objc +func BlendKernel_Hue() BlendKernel { + return BlendKernelClass.Hue() } // A blend kernel that places the foreground over the background and crops based on the visibility of the background. [Full Topic] @@ -471,34 +540,34 @@ func BlendKernel_SourceAtop() BlendKernel { return BlendKernelClass.SourceAtop() } -// A blend kernel that lightens the background image samples to reflect the foreground image samples while also increasing contrast. [Full Topic] +// A blend kernel that returns either the foreground or background image if the other contains a clear color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867354-lineardodge?language=objc -func (bc _BlendKernelClass) LinearDodge() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("linearDodge")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867421-exclusiveor?language=objc +func (bc _BlendKernelClass) ExclusiveOr() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("exclusiveOr")) return rv } -// A blend kernel that lightens the background image samples to reflect the foreground image samples while also increasing contrast. [Full Topic] +// A blend kernel that returns either the foreground or background image if the other contains a clear color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867354-lineardodge?language=objc -func BlendKernel_LinearDodge() BlendKernel { - return BlendKernelClass.LinearDodge() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867421-exclusiveor?language=objc +func BlendKernel_ExclusiveOr() BlendKernel { + return BlendKernelClass.ExclusiveOr() } -// A blend kernel that either multiplies or screens colors, depending on the source image sample color. [Full Topic] +// A blend kernel that darkens the background image samples to reflect the foreground image samples. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867418-hardlight?language=objc -func (bc _BlendKernelClass) HardLight() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("hardLight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867391-colorburn?language=objc +func (bc _BlendKernelClass) ColorBurn() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("colorBurn")) return rv } -// A blend kernel that either multiplies or screens colors, depending on the source image sample color. [Full Topic] +// A blend kernel that darkens the background image samples to reflect the foreground image samples. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867418-hardlight?language=objc -func BlendKernel_HardLight() BlendKernel { - return BlendKernelClass.HardLight() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867391-colorburn?language=objc +func BlendKernel_ColorBurn() BlendKernel { + return BlendKernelClass.ColorBurn() } // A blend kernel that adds color components to achieve a brightening effect. [Full Topic] @@ -516,124 +585,34 @@ func BlendKernel_ComponentAdd() BlendKernel { return BlendKernelClass.ComponentAdd() } -// A blend kernel that divides the background image sample color with the foreground image sample color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867410-divide?language=objc -func (bc _BlendKernelClass) Divide() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("divide")) - return rv -} - -// A blend kernel that divides the background image sample color with the foreground image sample color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867410-divide?language=objc -func BlendKernel_Divide() BlendKernel { - return BlendKernelClass.Divide() -} - -// A blend kernel that uses the luminance values of the background with the hue and saturation values of the foreground image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867350-color?language=objc -func (bc _BlendKernelClass) Color() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("color")) - return rv -} - -// A blend kernel that uses the luminance values of the background with the hue and saturation values of the foreground image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867350-color?language=objc -func BlendKernel_Color() BlendKernel { - return BlendKernelClass.Color() -} - -// A blend kernel that adds two images together, setting each color channel value to either 0 or 1. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867347-hardmix?language=objc -func (bc _BlendKernelClass) HardMix() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("hardMix")) - return rv -} - -// A blend kernel that adds two images together, setting each color channel value to either 0 or 1. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867347-hardmix?language=objc -func BlendKernel_HardMix() BlendKernel { - return BlendKernelClass.HardMix() -} - -// A blend kernel that creates an image using the darker values of two input images. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867348-darken?language=objc -func (bc _BlendKernelClass) Darken() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("darken")) - return rv -} - -// A blend kernel that creates an image using the darker values of two input images. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867348-darken?language=objc -func BlendKernel_Darken() BlendKernel { - return BlendKernelClass.Darken() -} - -// A blend kernel that uses the luminance and hue values of the background image with the saturation of the foreground image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867431-saturation?language=objc -func (bc _BlendKernelClass) Saturation() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("saturation")) - return rv -} - -// A blend kernel that uses the luminance and hue values of the background image with the saturation of the foreground image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867431-saturation?language=objc -func BlendKernel_Saturation() BlendKernel { - return BlendKernelClass.Saturation() -} - -// A blend kernel that burns or dodges colors by changing contrast, depending on the blend color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867358-vividlight?language=objc -func (bc _BlendKernelClass) VividLight() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("vividLight")) - return rv -} - -// A blend kernel that burns or dodges colors by changing contrast, depending on the blend color. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867358-vividlight?language=objc -func BlendKernel_VividLight() BlendKernel { - return BlendKernelClass.VividLight() -} - -// A blend kernel that creates an image using the minimum values of two input images. [Full Topic] +// A blend kernel that places the background over the foreground and crops based on the visibility of both. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867425-componentmin?language=objc -func (bc _BlendKernelClass) ComponentMin() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("componentMin")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867352-destinationin?language=objc +func (bc _BlendKernelClass) DestinationIn() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("destinationIn")) return rv } -// A blend kernel that creates an image using the minimum values of two input images. [Full Topic] +// A blend kernel that places the background over the foreground and crops based on the visibility of both. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867425-componentmin?language=objc -func BlendKernel_ComponentMin() BlendKernel { - return BlendKernelClass.ComponentMin() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867352-destinationin?language=objc +func BlendKernel_DestinationIn() BlendKernel { + return BlendKernelClass.DestinationIn() } -// A blend kernel that places the foreground image over the input background image. [Full Topic] +// A blend kernel that lightens the background image samples to reflect the foreground image samples while also increasing contrast. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867413-sourceover?language=objc -func (bc _BlendKernelClass) SourceOver() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("sourceOver")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867354-lineardodge?language=objc +func (bc _BlendKernelClass) LinearDodge() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("linearDodge")) return rv } -// A blend kernel that places the foreground image over the input background image. [Full Topic] +// A blend kernel that lightens the background image samples to reflect the foreground image samples while also increasing contrast. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867413-sourceover?language=objc -func BlendKernel_SourceOver() BlendKernel { - return BlendKernelClass.SourceOver() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867354-lineardodge?language=objc +func BlendKernel_LinearDodge() BlendKernel { + return BlendKernelClass.LinearDodge() } // A blend kernel that creates an image using the darker color of two input images. [Full Topic] @@ -651,62 +630,62 @@ func BlendKernel_DarkerColor() BlendKernel { return BlendKernelClass.DarkerColor() } -// A blend kernel that places the background over the foreground and crops based on the visibility of both. [Full Topic] +// A blend kernel that places the background over the foreground and crops based on the visibility of the foreground. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867352-destinationin?language=objc -func (bc _BlendKernelClass) DestinationIn() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("destinationIn")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867385-destinationatop?language=objc +func (bc _BlendKernelClass) DestinationAtop() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("destinationAtop")) return rv } -// A blend kernel that places the background over the foreground and crops based on the visibility of both. [Full Topic] +// A blend kernel that places the background over the foreground and crops based on the visibility of the foreground. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867352-destinationin?language=objc -func BlendKernel_DestinationIn() BlendKernel { - return BlendKernelClass.DestinationIn() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867385-destinationatop?language=objc +func BlendKernel_DestinationAtop() BlendKernel { + return BlendKernelClass.DestinationAtop() } -// A blend kernel that uses the luminance and saturation values of the background image with the hue of the foreground image. [Full Topic] +// A blend kernel that either multiplies or screens colors, depending on the source image sample color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867408-hue?language=objc -func (bc _BlendKernelClass) Hue() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("hue")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867418-hardlight?language=objc +func (bc _BlendKernelClass) HardLight() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("hardLight")) return rv } -// A blend kernel that uses the luminance and saturation values of the background image with the hue of the foreground image. [Full Topic] +// A blend kernel that either multiplies or screens colors, depending on the source image sample color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867408-hue?language=objc -func BlendKernel_Hue() BlendKernel { - return BlendKernelClass.Hue() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867418-hardlight?language=objc +func BlendKernel_HardLight() BlendKernel { + return BlendKernelClass.HardLight() } -// A blend kernel that creates an image using the lighter color of two input images. [Full Topic] +// A blend kernel that multiplies the background image sample color with the foreground image sample color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867427-lightercolor?language=objc -func (bc _BlendKernelClass) LighterColor() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("lighterColor")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867419-multiply?language=objc +func (bc _BlendKernelClass) Multiply() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("multiply")) return rv } -// A blend kernel that creates an image using the lighter color of two input images. [Full Topic] +// A blend kernel that multiplies the background image sample color with the foreground image sample color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867427-lightercolor?language=objc -func BlendKernel_LighterColor() BlendKernel { - return BlendKernelClass.LighterColor() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867419-multiply?language=objc +func BlendKernel_Multiply() BlendKernel { + return BlendKernelClass.Multiply() } -// A blend kernel that places the background over the foreground and crops based on the visibility of the foreground. [Full Topic] +// A blend kernel that burns or dodges colors by changing contrast, depending on the blend color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867385-destinationatop?language=objc -func (bc _BlendKernelClass) DestinationAtop() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("destinationAtop")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867358-vividlight?language=objc +func (bc _BlendKernelClass) VividLight() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("vividLight")) return rv } -// A blend kernel that places the background over the foreground and crops based on the visibility of the foreground. [Full Topic] +// A blend kernel that burns or dodges colors by changing contrast, depending on the blend color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867385-destinationatop?language=objc -func BlendKernel_DestinationAtop() BlendKernel { - return BlendKernelClass.DestinationAtop() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867358-vividlight?language=objc +func BlendKernel_VividLight() BlendKernel { + return BlendKernelClass.VividLight() } diff --git a/macos/coreimage/blend_with_mask_protocol.gen.go b/macos/coreimage/blend_with_mask_protocol.gen.go index 2279ed28..89ad90d1 100644 --- a/macos/coreimage/blend_with_mask_protocol.gen.go +++ b/macos/coreimage/blend_with_mask_protocol.gen.go @@ -10,6 +10,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendwithmask?language=objc type PBlendWithMask interface { + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetMaskImage(value Image) HasSetMaskImage() bool @@ -25,14 +33,6 @@ type PBlendWithMask interface { // optional BackgroundImage() Image HasBackgroundImage() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool } // ensure impl type implements protocol interface @@ -43,6 +43,29 @@ type BlendWithMaskObject struct { objc.Object } +func (b_ BlendWithMaskObject) HasSetInputImage() bool { + return b_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as a foreground image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendwithmask/3228081-inputimage?language=objc +func (b_ BlendWithMaskObject) SetInputImage(value Image) { + objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), value) +} + +func (b_ BlendWithMaskObject) HasInputImage() bool { + return b_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as a foreground image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendwithmask/3228081-inputimage?language=objc +func (b_ BlendWithMaskObject) InputImage() Image { + rv := objc.Call[Image](b_, objc.Sel("inputImage")) + return rv +} + func (b_ BlendWithMaskObject) HasSetMaskImage() bool { return b_.RespondsToSelector(objc.Sel("setMaskImage:")) } @@ -88,26 +111,3 @@ func (b_ BlendWithMaskObject) BackgroundImage() Image { rv := objc.Call[Image](b_, objc.Sel("backgroundImage")) return rv } - -func (b_ BlendWithMaskObject) HasSetInputImage() bool { - return b_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as a foreground image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendwithmask/3228081-inputimage?language=objc -func (b_ BlendWithMaskObject) SetInputImage(value Image) { - objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), value) -} - -func (b_ BlendWithMaskObject) HasInputImage() bool { - return b_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as a foreground image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendwithmask/3228081-inputimage?language=objc -func (b_ BlendWithMaskObject) InputImage() Image { - rv := objc.Call[Image](b_, objc.Sel("inputImage")) - return rv -} diff --git a/macos/coreimage/bloom_protocol.gen.go b/macos/coreimage/bloom_protocol.gen.go index c420eb34..dd05fb44 100644 --- a/macos/coreimage/bloom_protocol.gen.go +++ b/macos/coreimage/bloom_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom?language=objc type PBloom interface { - // optional - SetIntensity(value float32) - HasSetIntensity() bool - - // optional - Intensity() float32 - HasIntensity() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -26,6 +18,14 @@ type PBloom interface { InputImage() Image HasInputImage() bool + // optional + SetIntensity(value float32) + HasSetIntensity() bool + + // optional + Intensity() float32 + HasIntensity() bool + // optional SetRadius(value float32) HasSetRadius() bool @@ -43,29 +43,6 @@ type BloomObject struct { objc.Object } -func (b_ BloomObject) HasSetIntensity() bool { - return b_.RespondsToSelector(objc.Sel("setIntensity:")) -} - -// The intensity of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228085-intensity?language=objc -func (b_ BloomObject) SetIntensity(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setIntensity:"), value) -} - -func (b_ BloomObject) HasIntensity() bool { - return b_.RespondsToSelector(objc.Sel("intensity")) -} - -// The intensity of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228085-intensity?language=objc -func (b_ BloomObject) Intensity() float32 { - rv := objc.Call[float32](b_, objc.Sel("intensity")) - return rv -} - func (b_ BloomObject) HasSetInputImage() bool { return b_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -89,6 +66,29 @@ func (b_ BloomObject) InputImage() Image { return rv } +func (b_ BloomObject) HasSetIntensity() bool { + return b_.RespondsToSelector(objc.Sel("setIntensity:")) +} + +// The intensity of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228085-intensity?language=objc +func (b_ BloomObject) SetIntensity(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setIntensity:"), value) +} + +func (b_ BloomObject) HasIntensity() bool { + return b_.RespondsToSelector(objc.Sel("intensity")) +} + +// The intensity of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228085-intensity?language=objc +func (b_ BloomObject) Intensity() float32 { + rv := objc.Call[float32](b_, objc.Sel("intensity")) + return rv +} + func (b_ BloomObject) HasSetRadius() bool { return b_.RespondsToSelector(objc.Sel("setRadius:")) } diff --git a/macos/coreimage/bokeh_blur_protocol.gen.go b/macos/coreimage/bokeh_blur_protocol.gen.go index c1c9ceda..7663aaa0 100644 --- a/macos/coreimage/bokeh_blur_protocol.gen.go +++ b/macos/coreimage/bokeh_blur_protocol.gen.go @@ -11,12 +11,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur?language=objc type PBokehBlur interface { // optional - SetSoftness(value float32) - HasSetSoftness() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Softness() float32 - HasSoftness() bool + InputImage() Image + HasInputImage() bool + + // optional + SetRingSize(value float32) + HasSetRingSize() bool + + // optional + RingSize() float32 + HasRingSize() bool // optional SetRadius(value float32) @@ -35,20 +43,12 @@ type PBokehBlur interface { HasRingAmount() bool // optional - SetRingSize(value float32) - HasSetRingSize() bool - - // optional - RingSize() float32 - HasRingSize() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetSoftness(value float32) + HasSetSoftness() bool // optional - InputImage() Image - HasInputImage() bool + Softness() float32 + HasSoftness() bool } // ensure impl type implements protocol interface @@ -59,26 +59,49 @@ type BokehBlurObject struct { objc.Object } -func (b_ BokehBlurObject) HasSetSoftness() bool { - return b_.RespondsToSelector(objc.Sel("setSoftness:")) +func (b_ BokehBlurObject) HasSetInputImage() bool { + return b_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The softness of the bokeh effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228092-softness?language=objc -func (b_ BokehBlurObject) SetSoftness(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setSoftness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228088-inputimage?language=objc +func (b_ BokehBlurObject) SetInputImage(value Image) { + objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), value) } -func (b_ BokehBlurObject) HasSoftness() bool { - return b_.RespondsToSelector(objc.Sel("softness")) +func (b_ BokehBlurObject) HasInputImage() bool { + return b_.RespondsToSelector(objc.Sel("inputImage")) } -// The softness of the bokeh effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228092-softness?language=objc -func (b_ BokehBlurObject) Softness() float32 { - rv := objc.Call[float32](b_, objc.Sel("softness")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228088-inputimage?language=objc +func (b_ BokehBlurObject) InputImage() Image { + rv := objc.Call[Image](b_, objc.Sel("inputImage")) + return rv +} + +func (b_ BokehBlurObject) HasSetRingSize() bool { + return b_.RespondsToSelector(objc.Sel("setRingSize:")) +} + +// The radius of the extra emphasis at the ring of the bokeh. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228091-ringsize?language=objc +func (b_ BokehBlurObject) SetRingSize(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setRingSize:"), value) +} + +func (b_ BokehBlurObject) HasRingSize() bool { + return b_.RespondsToSelector(objc.Sel("ringSize")) +} + +// The radius of the extra emphasis at the ring of the bokeh. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228091-ringsize?language=objc +func (b_ BokehBlurObject) RingSize() float32 { + rv := objc.Call[float32](b_, objc.Sel("ringSize")) return rv } @@ -128,48 +151,25 @@ func (b_ BokehBlurObject) RingAmount() float32 { return rv } -func (b_ BokehBlurObject) HasSetRingSize() bool { - return b_.RespondsToSelector(objc.Sel("setRingSize:")) -} - -// The radius of the extra emphasis at the ring of the bokeh. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228091-ringsize?language=objc -func (b_ BokehBlurObject) SetRingSize(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setRingSize:"), value) -} - -func (b_ BokehBlurObject) HasRingSize() bool { - return b_.RespondsToSelector(objc.Sel("ringSize")) -} - -// The radius of the extra emphasis at the ring of the bokeh. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228091-ringsize?language=objc -func (b_ BokehBlurObject) RingSize() float32 { - rv := objc.Call[float32](b_, objc.Sel("ringSize")) - return rv -} - -func (b_ BokehBlurObject) HasSetInputImage() bool { - return b_.RespondsToSelector(objc.Sel("setInputImage:")) +func (b_ BokehBlurObject) HasSetSoftness() bool { + return b_.RespondsToSelector(objc.Sel("setSoftness:")) } -// The image to use as an input image. [Full Topic] +// The softness of the bokeh effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228088-inputimage?language=objc -func (b_ BokehBlurObject) SetInputImage(value Image) { - objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228092-softness?language=objc +func (b_ BokehBlurObject) SetSoftness(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setSoftness:"), value) } -func (b_ BokehBlurObject) HasInputImage() bool { - return b_.RespondsToSelector(objc.Sel("inputImage")) +func (b_ BokehBlurObject) HasSoftness() bool { + return b_.RespondsToSelector(objc.Sel("softness")) } -// The image to use as an input image. [Full Topic] +// The softness of the bokeh effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228088-inputimage?language=objc -func (b_ BokehBlurObject) InputImage() Image { - rv := objc.Call[Image](b_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228092-softness?language=objc +func (b_ BokehBlurObject) Softness() float32 { + rv := objc.Call[float32](b_, objc.Sel("softness")) return rv } diff --git a/macos/coreimage/box_blur_protocol.gen.go b/macos/coreimage/box_blur_protocol.gen.go index ebad307b..eaa07da4 100644 --- a/macos/coreimage/box_blur_protocol.gen.go +++ b/macos/coreimage/box_blur_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur?language=objc type PBoxBlur interface { - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PBoxBlur interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetRadius(value float32) + HasSetRadius() bool + + // optional + Radius() float32 + HasRadius() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type BoxBlurObject struct { objc.Object } -func (b_ BoxBlurObject) HasSetRadius() bool { - return b_.RespondsToSelector(objc.Sel("setRadius:")) -} - -// The radius of the blur, in pixels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228095-radius?language=objc -func (b_ BoxBlurObject) SetRadius(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value) -} - -func (b_ BoxBlurObject) HasRadius() bool { - return b_.RespondsToSelector(objc.Sel("radius")) -} - -// The radius of the blur, in pixels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228095-radius?language=objc -func (b_ BoxBlurObject) Radius() float32 { - rv := objc.Call[float32](b_, objc.Sel("radius")) - return rv -} - func (b_ BoxBlurObject) HasSetInputImage() bool { return b_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (b_ BoxBlurObject) InputImage() Image { rv := objc.Call[Image](b_, objc.Sel("inputImage")) return rv } + +func (b_ BoxBlurObject) HasSetRadius() bool { + return b_.RespondsToSelector(objc.Sel("setRadius:")) +} + +// The radius of the blur, in pixels. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228095-radius?language=objc +func (b_ BoxBlurObject) SetRadius(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value) +} + +func (b_ BoxBlurObject) HasRadius() bool { + return b_.RespondsToSelector(objc.Sel("radius")) +} + +// The radius of the blur, in pixels. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228095-radius?language=objc +func (b_ BoxBlurObject) Radius() float32 { + rv := objc.Call[float32](b_, objc.Sel("radius")) + return rv +} diff --git a/macos/coreimage/bump_distortion_linear_protocol.gen.go b/macos/coreimage/bump_distortion_linear_protocol.gen.go index c76ab06a..4ca3ddbc 100644 --- a/macos/coreimage/bump_distortion_linear_protocol.gen.go +++ b/macos/coreimage/bump_distortion_linear_protocol.gen.go @@ -19,14 +19,6 @@ type PBumpDistortionLinear interface { Scale() float32 HasScale() bool - // optional - SetAngle(value float32) - HasSetAngle() bool - - // optional - Angle() float32 - HasAngle() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -35,14 +27,6 @@ type PBumpDistortionLinear interface { InputImage() Image HasInputImage() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetRadius(value float32) HasSetRadius() bool @@ -50,6 +34,22 @@ type PBumpDistortionLinear interface { // optional Radius() float32 HasRadius() bool + + // optional + SetAngle(value float32) + HasSetAngle() bool + + // optional + Angle() float32 + HasAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -83,94 +83,94 @@ func (b_ BumpDistortionLinearObject) Scale() float32 { return rv } -func (b_ BumpDistortionLinearObject) HasSetAngle() bool { - return b_.RespondsToSelector(objc.Sel("setAngle:")) +func (b_ BumpDistortionLinearObject) HasSetInputImage() bool { + return b_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600112-angle?language=objc -func (b_ BumpDistortionLinearObject) SetAngle(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600114-inputimage?language=objc +func (b_ BumpDistortionLinearObject) SetInputImage(value Image) { + objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), value) } -func (b_ BumpDistortionLinearObject) HasAngle() bool { - return b_.RespondsToSelector(objc.Sel("angle")) +func (b_ BumpDistortionLinearObject) HasInputImage() bool { + return b_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600112-angle?language=objc -func (b_ BumpDistortionLinearObject) Angle() float32 { - rv := objc.Call[float32](b_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600114-inputimage?language=objc +func (b_ BumpDistortionLinearObject) InputImage() Image { + rv := objc.Call[Image](b_, objc.Sel("inputImage")) return rv } -func (b_ BumpDistortionLinearObject) HasSetInputImage() bool { - return b_.RespondsToSelector(objc.Sel("setInputImage:")) +func (b_ BumpDistortionLinearObject) HasSetRadius() bool { + return b_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600114-inputimage?language=objc -func (b_ BumpDistortionLinearObject) SetInputImage(value Image) { - objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600115-radius?language=objc +func (b_ BumpDistortionLinearObject) SetRadius(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value) } -func (b_ BumpDistortionLinearObject) HasInputImage() bool { - return b_.RespondsToSelector(objc.Sel("inputImage")) +func (b_ BumpDistortionLinearObject) HasRadius() bool { + return b_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600114-inputimage?language=objc -func (b_ BumpDistortionLinearObject) InputImage() Image { - rv := objc.Call[Image](b_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600115-radius?language=objc +func (b_ BumpDistortionLinearObject) Radius() float32 { + rv := objc.Call[float32](b_, objc.Sel("radius")) return rv } -func (b_ BumpDistortionLinearObject) HasSetCenter() bool { - return b_.RespondsToSelector(objc.Sel("setCenter:")) +func (b_ BumpDistortionLinearObject) HasSetAngle() bool { + return b_.RespondsToSelector(objc.Sel("setAngle:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600113-center?language=objc -func (b_ BumpDistortionLinearObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](b_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600112-angle?language=objc +func (b_ BumpDistortionLinearObject) SetAngle(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setAngle:"), value) } -func (b_ BumpDistortionLinearObject) HasCenter() bool { - return b_.RespondsToSelector(objc.Sel("center")) +func (b_ BumpDistortionLinearObject) HasAngle() bool { + return b_.RespondsToSelector(objc.Sel("angle")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600113-center?language=objc -func (b_ BumpDistortionLinearObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](b_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600112-angle?language=objc +func (b_ BumpDistortionLinearObject) Angle() float32 { + rv := objc.Call[float32](b_, objc.Sel("angle")) return rv } -func (b_ BumpDistortionLinearObject) HasSetRadius() bool { - return b_.RespondsToSelector(objc.Sel("setRadius:")) +func (b_ BumpDistortionLinearObject) HasSetCenter() bool { + return b_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600115-radius?language=objc -func (b_ BumpDistortionLinearObject) SetRadius(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600113-center?language=objc +func (b_ BumpDistortionLinearObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](b_, objc.Sel("setCenter:"), value) } -func (b_ BumpDistortionLinearObject) HasRadius() bool { - return b_.RespondsToSelector(objc.Sel("radius")) +func (b_ BumpDistortionLinearObject) HasCenter() bool { + return b_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600115-radius?language=objc -func (b_ BumpDistortionLinearObject) Radius() float32 { - rv := objc.Call[float32](b_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600113-center?language=objc +func (b_ BumpDistortionLinearObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](b_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/bump_distortion_protocol.gen.go b/macos/coreimage/bump_distortion_protocol.gen.go index bbca0de9..b22b9d77 100644 --- a/macos/coreimage/bump_distortion_protocol.gen.go +++ b/macos/coreimage/bump_distortion_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion?language=objc type PBumpDistortion interface { // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetScale(value float32) + HasSetScale() bool // optional - Center() coregraphics.Point - HasCenter() bool + Scale() float32 + HasScale() bool // optional SetInputImage(value Image) @@ -36,12 +36,12 @@ type PBumpDistortion interface { HasRadius() bool // optional - SetScale(value float32) - HasSetScale() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Scale() float32 - HasScale() bool + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,26 +52,26 @@ type BumpDistortionObject struct { objc.Object } -func (b_ BumpDistortionObject) HasSetCenter() bool { - return b_.RespondsToSelector(objc.Sel("setCenter:")) +func (b_ BumpDistortionObject) HasSetScale() bool { + return b_.RespondsToSelector(objc.Sel("setScale:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600107-center?language=objc -func (b_ BumpDistortionObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](b_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600110-scale?language=objc +func (b_ BumpDistortionObject) SetScale(value float32) { + objc.Call[objc.Void](b_, objc.Sel("setScale:"), value) } -func (b_ BumpDistortionObject) HasCenter() bool { - return b_.RespondsToSelector(objc.Sel("center")) +func (b_ BumpDistortionObject) HasScale() bool { + return b_.RespondsToSelector(objc.Sel("scale")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600107-center?language=objc -func (b_ BumpDistortionObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](b_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600110-scale?language=objc +func (b_ BumpDistortionObject) Scale() float32 { + rv := objc.Call[float32](b_, objc.Sel("scale")) return rv } @@ -121,25 +121,25 @@ func (b_ BumpDistortionObject) Radius() float32 { return rv } -func (b_ BumpDistortionObject) HasSetScale() bool { - return b_.RespondsToSelector(objc.Sel("setScale:")) +func (b_ BumpDistortionObject) HasSetCenter() bool { + return b_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600110-scale?language=objc -func (b_ BumpDistortionObject) SetScale(value float32) { - objc.Call[objc.Void](b_, objc.Sel("setScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600107-center?language=objc +func (b_ BumpDistortionObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](b_, objc.Sel("setCenter:"), value) } -func (b_ BumpDistortionObject) HasScale() bool { - return b_.RespondsToSelector(objc.Sel("scale")) +func (b_ BumpDistortionObject) HasCenter() bool { + return b_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600110-scale?language=objc -func (b_ BumpDistortionObject) Scale() float32 { - rv := objc.Call[float32](b_, objc.Sel("scale")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600107-center?language=objc +func (b_ BumpDistortionObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](b_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/checkerboard_generator_protocol.gen.go b/macos/coreimage/checkerboard_generator_protocol.gen.go index 016169b1..0ddb6959 100644 --- a/macos/coreimage/checkerboard_generator_protocol.gen.go +++ b/macos/coreimage/checkerboard_generator_protocol.gen.go @@ -12,28 +12,28 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator?language=objc type PCheckerboardGenerator interface { // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetWidth(value float32) + HasSetWidth() bool // optional - Center() coregraphics.Point - HasCenter() bool + Width() float32 + HasWidth() bool // optional - SetColor0(value Color) - HasSetColor0() bool + SetSharpness(value float32) + HasSetSharpness() bool // optional - Color0() Color - HasColor0() bool + Sharpness() float32 + HasSharpness() bool // optional - SetWidth(value float32) - HasSetWidth() bool + SetColor0(value Color) + HasSetColor0() bool // optional - Width() float32 - HasWidth() bool + Color0() Color + HasColor0() bool // optional SetColor1(value Color) @@ -44,12 +44,12 @@ type PCheckerboardGenerator interface { HasColor1() bool // optional - SetSharpness(value float32) - HasSetSharpness() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Sharpness() float32 - HasSharpness() bool + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -60,26 +60,49 @@ type CheckerboardGeneratorObject struct { objc.Object } -func (c_ CheckerboardGeneratorObject) HasSetCenter() bool { - return c_.RespondsToSelector(objc.Sel("setCenter:")) +func (c_ CheckerboardGeneratorObject) HasSetWidth() bool { + return c_.RespondsToSelector(objc.Sel("setWidth:")) } -// The center of the effect as x and y coordinates. [Full Topic] +// The width of the squares in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228105-center?language=objc -func (c_ CheckerboardGeneratorObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228109-width?language=objc +func (c_ CheckerboardGeneratorObject) SetWidth(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value) } -func (c_ CheckerboardGeneratorObject) HasCenter() bool { - return c_.RespondsToSelector(objc.Sel("center")) +func (c_ CheckerboardGeneratorObject) HasWidth() bool { + return c_.RespondsToSelector(objc.Sel("width")) } -// The center of the effect as x and y coordinates. [Full Topic] +// The width of the squares in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228105-center?language=objc -func (c_ CheckerboardGeneratorObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228109-width?language=objc +func (c_ CheckerboardGeneratorObject) Width() float32 { + rv := objc.Call[float32](c_, objc.Sel("width")) + return rv +} + +func (c_ CheckerboardGeneratorObject) HasSetSharpness() bool { + return c_.RespondsToSelector(objc.Sel("setSharpness:")) +} + +// The sharpness of the edges in the pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228108-sharpness?language=objc +func (c_ CheckerboardGeneratorObject) SetSharpness(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setSharpness:"), value) +} + +func (c_ CheckerboardGeneratorObject) HasSharpness() bool { + return c_.RespondsToSelector(objc.Sel("sharpness")) +} + +// The sharpness of the edges in the pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228108-sharpness?language=objc +func (c_ CheckerboardGeneratorObject) Sharpness() float32 { + rv := objc.Call[float32](c_, objc.Sel("sharpness")) return rv } @@ -106,29 +129,6 @@ func (c_ CheckerboardGeneratorObject) Color0() Color { return rv } -func (c_ CheckerboardGeneratorObject) HasSetWidth() bool { - return c_.RespondsToSelector(objc.Sel("setWidth:")) -} - -// The width of the squares in the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228109-width?language=objc -func (c_ CheckerboardGeneratorObject) SetWidth(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value) -} - -func (c_ CheckerboardGeneratorObject) HasWidth() bool { - return c_.RespondsToSelector(objc.Sel("width")) -} - -// The width of the squares in the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228109-width?language=objc -func (c_ CheckerboardGeneratorObject) Width() float32 { - rv := objc.Call[float32](c_, objc.Sel("width")) - return rv -} - func (c_ CheckerboardGeneratorObject) HasSetColor1() bool { return c_.RespondsToSelector(objc.Sel("setColor1:")) } @@ -152,25 +152,25 @@ func (c_ CheckerboardGeneratorObject) Color1() Color { return rv } -func (c_ CheckerboardGeneratorObject) HasSetSharpness() bool { - return c_.RespondsToSelector(objc.Sel("setSharpness:")) +func (c_ CheckerboardGeneratorObject) HasSetCenter() bool { + return c_.RespondsToSelector(objc.Sel("setCenter:")) } -// The sharpness of the edges in the pattern. [Full Topic] +// The center of the effect as x and y coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228108-sharpness?language=objc -func (c_ CheckerboardGeneratorObject) SetSharpness(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setSharpness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228105-center?language=objc +func (c_ CheckerboardGeneratorObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) } -func (c_ CheckerboardGeneratorObject) HasSharpness() bool { - return c_.RespondsToSelector(objc.Sel("sharpness")) +func (c_ CheckerboardGeneratorObject) HasCenter() bool { + return c_.RespondsToSelector(objc.Sel("center")) } -// The sharpness of the edges in the pattern. [Full Topic] +// The center of the effect as x and y coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228108-sharpness?language=objc -func (c_ CheckerboardGeneratorObject) Sharpness() float32 { - rv := objc.Call[float32](c_, objc.Sel("sharpness")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228105-center?language=objc +func (c_ CheckerboardGeneratorObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/circle_splash_distortion_protocol.gen.go b/macos/coreimage/circle_splash_distortion_protocol.gen.go index 53872ec8..97021681 100644 --- a/macos/coreimage/circle_splash_distortion_protocol.gen.go +++ b/macos/coreimage/circle_splash_distortion_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion?language=objc type PCircleSplashDistortion interface { - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -34,6 +26,14 @@ type PCircleSplashDistortion interface { // optional Radius() float32 HasRadius() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -44,29 +44,6 @@ type CircleSplashDistortionObject struct { objc.Object } -func (c_ CircleSplashDistortionObject) HasSetCenter() bool { - return c_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600118-center?language=objc -func (c_ CircleSplashDistortionObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) -} - -func (c_ CircleSplashDistortionObject) HasCenter() bool { - return c_.RespondsToSelector(objc.Sel("center")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600118-center?language=objc -func (c_ CircleSplashDistortionObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) - return rv -} - func (c_ CircleSplashDistortionObject) HasSetInputImage() bool { return c_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -112,3 +89,26 @@ func (c_ CircleSplashDistortionObject) Radius() float32 { rv := objc.Call[float32](c_, objc.Sel("radius")) return rv } + +func (c_ CircleSplashDistortionObject) HasSetCenter() bool { + return c_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600118-center?language=objc +func (c_ CircleSplashDistortionObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) +} + +func (c_ CircleSplashDistortionObject) HasCenter() bool { + return c_.RespondsToSelector(objc.Sel("center")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600118-center?language=objc +func (c_ CircleSplashDistortionObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/circular_screen_protocol.gen.go b/macos/coreimage/circular_screen_protocol.gen.go index 3439f859..89455517 100644 --- a/macos/coreimage/circular_screen_protocol.gen.go +++ b/macos/coreimage/circular_screen_protocol.gen.go @@ -19,14 +19,6 @@ type PCircularScreen interface { Width() float32 HasWidth() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -42,6 +34,14 @@ type PCircularScreen interface { // optional Sharpness() float32 HasSharpness() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -75,29 +75,6 @@ func (c_ CircularScreenObject) Width() float32 { return rv } -func (c_ CircularScreenObject) HasSetCenter() bool { - return c_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the circular screen pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularscreen/3228111-center?language=objc -func (c_ CircularScreenObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) -} - -func (c_ CircularScreenObject) HasCenter() bool { - return c_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the circular screen pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularscreen/3228111-center?language=objc -func (c_ CircularScreenObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) - return rv -} - func (c_ CircularScreenObject) HasSetInputImage() bool { return c_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -143,3 +120,26 @@ func (c_ CircularScreenObject) Sharpness() float32 { rv := objc.Call[float32](c_, objc.Sel("sharpness")) return rv } + +func (c_ CircularScreenObject) HasSetCenter() bool { + return c_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the circular screen pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularscreen/3228111-center?language=objc +func (c_ CircularScreenObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) +} + +func (c_ CircularScreenObject) HasCenter() bool { + return c_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the circular screen pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularscreen/3228111-center?language=objc +func (c_ CircularScreenObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/circular_wrap_protocol.gen.go b/macos/coreimage/circular_wrap_protocol.gen.go index 659d1bb1..588e2715 100644 --- a/macos/coreimage/circular_wrap_protocol.gen.go +++ b/macos/coreimage/circular_wrap_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap?language=objc type PCircularWrap interface { - // optional - SetAngle(value float32) - HasSetAngle() bool - - // optional - Angle() float32 - HasAngle() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -27,14 +19,6 @@ type PCircularWrap interface { InputImage() Image HasInputImage() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetRadius(value float32) HasSetRadius() bool @@ -42,6 +26,22 @@ type PCircularWrap interface { // optional Radius() float32 HasRadius() bool + + // optional + SetAngle(value float32) + HasSetAngle() bool + + // optional + Angle() float32 + HasAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,94 +52,94 @@ type CircularWrapObject struct { objc.Object } -func (c_ CircularWrapObject) HasSetAngle() bool { - return c_.RespondsToSelector(objc.Sel("setAngle:")) +func (c_ CircularWrapObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600122-angle?language=objc -func (c_ CircularWrapObject) SetAngle(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600124-inputimage?language=objc +func (c_ CircularWrapObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) } -func (c_ CircularWrapObject) HasAngle() bool { - return c_.RespondsToSelector(objc.Sel("angle")) +func (c_ CircularWrapObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600122-angle?language=objc -func (c_ CircularWrapObject) Angle() float32 { - rv := objc.Call[float32](c_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600124-inputimage?language=objc +func (c_ CircularWrapObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ CircularWrapObject) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ CircularWrapObject) HasSetRadius() bool { + return c_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600124-inputimage?language=objc -func (c_ CircularWrapObject) SetInputImage(value Image) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600125-radius?language=objc +func (c_ CircularWrapObject) SetRadius(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setRadius:"), value) } -func (c_ CircularWrapObject) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ CircularWrapObject) HasRadius() bool { + return c_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600124-inputimage?language=objc -func (c_ CircularWrapObject) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600125-radius?language=objc +func (c_ CircularWrapObject) Radius() float32 { + rv := objc.Call[float32](c_, objc.Sel("radius")) return rv } -func (c_ CircularWrapObject) HasSetCenter() bool { - return c_.RespondsToSelector(objc.Sel("setCenter:")) +func (c_ CircularWrapObject) HasSetAngle() bool { + return c_.RespondsToSelector(objc.Sel("setAngle:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600123-center?language=objc -func (c_ CircularWrapObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600122-angle?language=objc +func (c_ CircularWrapObject) SetAngle(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setAngle:"), value) } -func (c_ CircularWrapObject) HasCenter() bool { - return c_.RespondsToSelector(objc.Sel("center")) +func (c_ CircularWrapObject) HasAngle() bool { + return c_.RespondsToSelector(objc.Sel("angle")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600123-center?language=objc -func (c_ CircularWrapObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600122-angle?language=objc +func (c_ CircularWrapObject) Angle() float32 { + rv := objc.Call[float32](c_, objc.Sel("angle")) return rv } -func (c_ CircularWrapObject) HasSetRadius() bool { - return c_.RespondsToSelector(objc.Sel("setRadius:")) +func (c_ CircularWrapObject) HasSetCenter() bool { + return c_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600125-radius?language=objc -func (c_ CircularWrapObject) SetRadius(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600123-center?language=objc +func (c_ CircularWrapObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) } -func (c_ CircularWrapObject) HasRadius() bool { - return c_.RespondsToSelector(objc.Sel("radius")) +func (c_ CircularWrapObject) HasCenter() bool { + return c_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600125-radius?language=objc -func (c_ CircularWrapObject) Radius() float32 { - rv := objc.Call[float32](c_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600123-center?language=objc +func (c_ CircularWrapObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/cmyk_halftone_protocol.gen.go b/macos/coreimage/cmyk_halftone_protocol.gen.go index 0d91a937..07cae8d3 100644 --- a/macos/coreimage/cmyk_halftone_protocol.gen.go +++ b/macos/coreimage/cmyk_halftone_protocol.gen.go @@ -12,20 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone?language=objc type PCMYKHalftone interface { // optional - SetGrayComponentReplacement(value float32) - HasSetGrayComponentReplacement() bool - - // optional - GrayComponentReplacement() float32 - HasGrayComponentReplacement() bool - - // optional - SetUnderColorRemoval(value float32) - HasSetUnderColorRemoval() bool + SetWidth(value float32) + HasSetWidth() bool // optional - UnderColorRemoval() float32 - HasUnderColorRemoval() bool + Width() float32 + HasWidth() bool // optional SetInputImage(value Image) @@ -36,20 +28,12 @@ type PCMYKHalftone interface { HasInputImage() bool // optional - SetAngle(value float32) - HasSetAngle() bool - - // optional - Angle() float32 - HasAngle() bool - - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetGrayComponentReplacement(value float32) + HasSetGrayComponentReplacement() bool // optional - Center() coregraphics.Point - HasCenter() bool + GrayComponentReplacement() float32 + HasGrayComponentReplacement() bool // optional SetSharpness(value float32) @@ -60,12 +44,28 @@ type PCMYKHalftone interface { HasSharpness() bool // optional - SetWidth(value float32) - HasSetWidth() bool + SetAngle(value float32) + HasSetAngle() bool // optional - Width() float32 - HasWidth() bool + Angle() float32 + HasAngle() bool + + // optional + SetUnderColorRemoval(value float32) + HasSetUnderColorRemoval() bool + + // optional + UnderColorRemoval() float32 + HasUnderColorRemoval() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -76,49 +76,26 @@ type CMYKHalftoneObject struct { objc.Object } -func (c_ CMYKHalftoneObject) HasSetGrayComponentReplacement() bool { - return c_.RespondsToSelector(objc.Sel("setGrayComponentReplacement:")) -} - -// The gray component replacement value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228099-graycomponentreplacement?language=objc -func (c_ CMYKHalftoneObject) SetGrayComponentReplacement(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setGrayComponentReplacement:"), value) -} - -func (c_ CMYKHalftoneObject) HasGrayComponentReplacement() bool { - return c_.RespondsToSelector(objc.Sel("grayComponentReplacement")) -} - -// The gray component replacement value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228099-graycomponentreplacement?language=objc -func (c_ CMYKHalftoneObject) GrayComponentReplacement() float32 { - rv := objc.Call[float32](c_, objc.Sel("grayComponentReplacement")) - return rv -} - -func (c_ CMYKHalftoneObject) HasSetUnderColorRemoval() bool { - return c_.RespondsToSelector(objc.Sel("setUnderColorRemoval:")) +func (c_ CMYKHalftoneObject) HasSetWidth() bool { + return c_.RespondsToSelector(objc.Sel("setWidth:")) } -// The under color removal value. [Full Topic] +// The distance between dots in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228102-undercolorremoval?language=objc -func (c_ CMYKHalftoneObject) SetUnderColorRemoval(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setUnderColorRemoval:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228103-width?language=objc +func (c_ CMYKHalftoneObject) SetWidth(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value) } -func (c_ CMYKHalftoneObject) HasUnderColorRemoval() bool { - return c_.RespondsToSelector(objc.Sel("underColorRemoval")) +func (c_ CMYKHalftoneObject) HasWidth() bool { + return c_.RespondsToSelector(objc.Sel("width")) } -// The under color removal value. [Full Topic] +// The distance between dots in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228102-undercolorremoval?language=objc -func (c_ CMYKHalftoneObject) UnderColorRemoval() float32 { - rv := objc.Call[float32](c_, objc.Sel("underColorRemoval")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228103-width?language=objc +func (c_ CMYKHalftoneObject) Width() float32 { + rv := objc.Call[float32](c_, objc.Sel("width")) return rv } @@ -145,6 +122,52 @@ func (c_ CMYKHalftoneObject) InputImage() Image { return rv } +func (c_ CMYKHalftoneObject) HasSetGrayComponentReplacement() bool { + return c_.RespondsToSelector(objc.Sel("setGrayComponentReplacement:")) +} + +// The gray component replacement value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228099-graycomponentreplacement?language=objc +func (c_ CMYKHalftoneObject) SetGrayComponentReplacement(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setGrayComponentReplacement:"), value) +} + +func (c_ CMYKHalftoneObject) HasGrayComponentReplacement() bool { + return c_.RespondsToSelector(objc.Sel("grayComponentReplacement")) +} + +// The gray component replacement value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228099-graycomponentreplacement?language=objc +func (c_ CMYKHalftoneObject) GrayComponentReplacement() float32 { + rv := objc.Call[float32](c_, objc.Sel("grayComponentReplacement")) + return rv +} + +func (c_ CMYKHalftoneObject) HasSetSharpness() bool { + return c_.RespondsToSelector(objc.Sel("setSharpness:")) +} + +// The sharpness of the pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228101-sharpness?language=objc +func (c_ CMYKHalftoneObject) SetSharpness(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setSharpness:"), value) +} + +func (c_ CMYKHalftoneObject) HasSharpness() bool { + return c_.RespondsToSelector(objc.Sel("sharpness")) +} + +// The sharpness of the pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228101-sharpness?language=objc +func (c_ CMYKHalftoneObject) Sharpness() float32 { + rv := objc.Call[float32](c_, objc.Sel("sharpness")) + return rv +} + func (c_ CMYKHalftoneObject) HasSetAngle() bool { return c_.RespondsToSelector(objc.Sel("setAngle:")) } @@ -168,6 +191,29 @@ func (c_ CMYKHalftoneObject) Angle() float32 { return rv } +func (c_ CMYKHalftoneObject) HasSetUnderColorRemoval() bool { + return c_.RespondsToSelector(objc.Sel("setUnderColorRemoval:")) +} + +// The under color removal value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228102-undercolorremoval?language=objc +func (c_ CMYKHalftoneObject) SetUnderColorRemoval(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setUnderColorRemoval:"), value) +} + +func (c_ CMYKHalftoneObject) HasUnderColorRemoval() bool { + return c_.RespondsToSelector(objc.Sel("underColorRemoval")) +} + +// The under color removal value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228102-undercolorremoval?language=objc +func (c_ CMYKHalftoneObject) UnderColorRemoval() float32 { + rv := objc.Call[float32](c_, objc.Sel("underColorRemoval")) + return rv +} + func (c_ CMYKHalftoneObject) HasSetCenter() bool { return c_.RespondsToSelector(objc.Sel("setCenter:")) } @@ -190,49 +236,3 @@ func (c_ CMYKHalftoneObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) return rv } - -func (c_ CMYKHalftoneObject) HasSetSharpness() bool { - return c_.RespondsToSelector(objc.Sel("setSharpness:")) -} - -// The sharpness of the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228101-sharpness?language=objc -func (c_ CMYKHalftoneObject) SetSharpness(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setSharpness:"), value) -} - -func (c_ CMYKHalftoneObject) HasSharpness() bool { - return c_.RespondsToSelector(objc.Sel("sharpness")) -} - -// The sharpness of the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228101-sharpness?language=objc -func (c_ CMYKHalftoneObject) Sharpness() float32 { - rv := objc.Call[float32](c_, objc.Sel("sharpness")) - return rv -} - -func (c_ CMYKHalftoneObject) HasSetWidth() bool { - return c_.RespondsToSelector(objc.Sel("setWidth:")) -} - -// The distance between dots in the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228103-width?language=objc -func (c_ CMYKHalftoneObject) SetWidth(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value) -} - -func (c_ CMYKHalftoneObject) HasWidth() bool { - return c_.RespondsToSelector(objc.Sel("width")) -} - -// The distance between dots in the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228103-width?language=objc -func (c_ CMYKHalftoneObject) Width() float32 { - rv := objc.Call[float32](c_, objc.Sel("width")) - return rv -} diff --git a/macos/coreimage/code128_barcode_generator_protocol.gen.go b/macos/coreimage/code128_barcode_generator_protocol.gen.go index 2ac8dea9..8f726960 100644 --- a/macos/coreimage/code128_barcode_generator_protocol.gen.go +++ b/macos/coreimage/code128_barcode_generator_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator?language=objc type PCode128BarcodeGenerator interface { - // optional - SetBarcodeHeight(value float32) - HasSetBarcodeHeight() bool - - // optional - BarcodeHeight() float32 - HasBarcodeHeight() bool - // optional SetQuietSpace(value float32) HasSetQuietSpace() bool @@ -26,6 +18,14 @@ type PCode128BarcodeGenerator interface { QuietSpace() float32 HasQuietSpace() bool + // optional + SetBarcodeHeight(value float32) + HasSetBarcodeHeight() bool + + // optional + BarcodeHeight() float32 + HasBarcodeHeight() bool + // optional SetMessage(value []byte) HasSetMessage() bool @@ -43,29 +43,6 @@ type Code128BarcodeGeneratorObject struct { objc.Object } -func (c_ Code128BarcodeGeneratorObject) HasSetBarcodeHeight() bool { - return c_.RespondsToSelector(objc.Sel("setBarcodeHeight:")) -} - -// The height, in pixels, of the generated barcode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228116-barcodeheight?language=objc -func (c_ Code128BarcodeGeneratorObject) SetBarcodeHeight(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setBarcodeHeight:"), value) -} - -func (c_ Code128BarcodeGeneratorObject) HasBarcodeHeight() bool { - return c_.RespondsToSelector(objc.Sel("barcodeHeight")) -} - -// The height, in pixels, of the generated barcode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228116-barcodeheight?language=objc -func (c_ Code128BarcodeGeneratorObject) BarcodeHeight() float32 { - rv := objc.Call[float32](c_, objc.Sel("barcodeHeight")) - return rv -} - func (c_ Code128BarcodeGeneratorObject) HasSetQuietSpace() bool { return c_.RespondsToSelector(objc.Sel("setQuietSpace:")) } @@ -89,6 +66,29 @@ func (c_ Code128BarcodeGeneratorObject) QuietSpace() float32 { return rv } +func (c_ Code128BarcodeGeneratorObject) HasSetBarcodeHeight() bool { + return c_.RespondsToSelector(objc.Sel("setBarcodeHeight:")) +} + +// The height, in pixels, of the generated barcode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228116-barcodeheight?language=objc +func (c_ Code128BarcodeGeneratorObject) SetBarcodeHeight(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setBarcodeHeight:"), value) +} + +func (c_ Code128BarcodeGeneratorObject) HasBarcodeHeight() bool { + return c_.RespondsToSelector(objc.Sel("barcodeHeight")) +} + +// The height, in pixels, of the generated barcode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228116-barcodeheight?language=objc +func (c_ Code128BarcodeGeneratorObject) BarcodeHeight() float32 { + rv := objc.Call[float32](c_, objc.Sel("barcodeHeight")) + return rv +} + func (c_ Code128BarcodeGeneratorObject) HasSetMessage() bool { return c_.RespondsToSelector(objc.Sel("setMessage:")) } diff --git a/macos/coreimage/color.gen.go b/macos/coreimage/color.gen.go index 390572f0..688efe80 100644 --- a/macos/coreimage/color.gen.go +++ b/macos/coreimage/color.gen.go @@ -19,12 +19,12 @@ type _ColorClass struct { // An interface definition for the [Color] class. type IColor interface { objc.IObject - Alpha() float64 - Blue() float64 - Green() float64 Red() float64 - Components() *float64 + Green() float64 ColorSpace() coregraphics.ColorSpaceRef + Blue() float64 + Alpha() float64 + Components() *float64 NumberOfComponents() uint StringRepresentation() string } @@ -42,30 +42,6 @@ func ColorFrom(ptr unsafe.Pointer) Color { } } -func (cc _ColorClass) ColorWithString(representation string) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithString:"), representation) - return rv -} - -// Creates a color object using the RGBA color component values specified by a string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1438059-colorwithstring?language=objc -func Color_ColorWithString(representation string) Color { - return ColorClass.ColorWithString(representation) -} - -func (cc _ColorClass) ColorWithRedGreenBlueAlphaColorSpace(r float64, g float64, b float64, a float64, colorSpace coregraphics.ColorSpaceRef) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithRed:green:blue:alpha:colorSpace:"), r, g, b, a, colorSpace) - return rv -} - -// Creates a Core Image color object with the specified red, green, blue, and alpha component values as measured in the specified color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643575-colorwithred?language=objc -func Color_ColorWithRedGreenBlueAlphaColorSpace(r float64, g float64, b float64, a float64, colorSpace coregraphics.ColorSpaceRef) Color { - return ColorClass.ColorWithRedGreenBlueAlphaColorSpace(r, g, b, a, colorSpace) -} - func (cc _ColorClass) ColorWithCGColor(c coregraphics.ColorRef) Color { rv := objc.Call[Color](cc, objc.Sel("colorWithCGColor:"), c) return rv @@ -78,16 +54,18 @@ func Color_ColorWithCGColor(c coregraphics.ColorRef) Color { return ColorClass.ColorWithCGColor(c) } -func (cc _ColorClass) ColorWithRedGreenBlueAlpha(r float64, g float64, b float64, a float64) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithRed:green:blue:alpha:"), r, g, b, a) +func (c_ Color) InitWithColor(color objc.IObject) Color { + rv := objc.Call[Color](c_, objc.Sel("initWithColor:"), color) return rv } -// Creates a color object using the specified RGBA color component values. [Full Topic] +// Initializes a Core Image color object using a UIKit (or AppKit) color object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1502111-colorwithred?language=objc -func Color_ColorWithRedGreenBlueAlpha(r float64, g float64, b float64, a float64) Color { - return ColorClass.ColorWithRedGreenBlueAlpha(r, g, b, a) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1528762-initwithcolor?language=objc +func NewColorWithColor(color objc.IObject) Color { + instance := ColorClass.Alloc().InitWithColor(color) + instance.Autorelease() + return instance } func (c_ Color) InitWithCGColor(c coregraphics.ColorRef) Color { @@ -104,18 +82,16 @@ func NewColorWithCGColor(c coregraphics.ColorRef) Color { return instance } -func (c_ Color) InitWithRedGreenBlueAlpha(r float64, g float64, b float64, a float64) Color { - rv := objc.Call[Color](c_, objc.Sel("initWithRed:green:blue:alpha:"), r, g, b, a) +func (cc _ColorClass) ColorWithString(representation string) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithString:"), representation) return rv } -// Initializes a Core Image color object with the specified red, green, blue, and alpha component values. [Full Topic] +// Creates a color object using the RGBA color component values specified by a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1438084-initwithred?language=objc -func NewColorWithRedGreenBlueAlpha(r float64, g float64, b float64, a float64) Color { - instance := ColorClass.Alloc().InitWithRedGreenBlueAlpha(r, g, b, a) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1438059-colorwithstring?language=objc +func Color_ColorWithString(representation string) Color { + return ColorClass.ColorWithString(representation) } func (cc _ColorClass) ColorWithRedGreenBlue(r float64, g float64, b float64) Color { @@ -144,94 +120,77 @@ func NewColorWithRedGreenBlue(r float64, g float64, b float64) Color { return instance } -func (c_ Color) InitWithColor(color objc.IObject) Color { - rv := objc.Call[Color](c_, objc.Sel("initWithColor:"), color) +func (cc _ColorClass) Alloc() Color { + rv := objc.Call[Color](cc, objc.Sel("alloc")) return rv } -// Initializes a Core Image color object using a UIKit (or AppKit) color object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1528762-initwithcolor?language=objc -func NewColorWithColor(color objc.IObject) Color { - instance := ColorClass.Alloc().InitWithColor(color) - instance.Autorelease() - return instance -} - -func (c_ Color) InitWithRedGreenBlueAlphaColorSpace(r float64, g float64, b float64, a float64, colorSpace coregraphics.ColorSpaceRef) Color { - rv := objc.Call[Color](c_, objc.Sel("initWithRed:green:blue:alpha:colorSpace:"), r, g, b, a, colorSpace) +func (cc _ColorClass) New() Color { + rv := objc.Call[Color](cc, objc.Sel("new")) + rv.Autorelease() return rv } -// Initializes a Core Image color object with the specified red, green, blue, and alpha component values as measured in the specified color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643572-initwithred?language=objc -func NewColorWithRedGreenBlueAlphaColorSpace(r float64, g float64, b float64, a float64, colorSpace coregraphics.ColorSpaceRef) Color { - instance := ColorClass.Alloc().InitWithRedGreenBlueAlphaColorSpace(r, g, b, a, colorSpace) - instance.Autorelease() - return instance +func NewColor() Color { + return ColorClass.New() } -func (cc _ColorClass) ColorWithRedGreenBlueColorSpace(r float64, g float64, b float64, colorSpace coregraphics.ColorSpaceRef) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithRed:green:blue:colorSpace:"), r, g, b, colorSpace) +func (c_ Color) Init() Color { + rv := objc.Call[Color](c_, objc.Sel("init")) return rv } -// Initializes a Core Image color object with the specified red, green, and blue component values as measured in the specified color space. [Full Topic] +// Returns a color object whose RGB values are all 1.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643579-colorwithred?language=objc -func Color_ColorWithRedGreenBlueColorSpace(r float64, g float64, b float64, colorSpace coregraphics.ColorSpaceRef) Color { - return ColorClass.ColorWithRedGreenBlueColorSpace(r, g, b, colorSpace) -} - -func (c_ Color) InitWithRedGreenBlueColorSpace(r float64, g float64, b float64, colorSpace coregraphics.ColorSpaceRef) Color { - rv := objc.Call[Color](c_, objc.Sel("initWithRed:green:blue:colorSpace:"), r, g, b, colorSpace) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643571-whitecolor?language=objc +func (cc _ColorClass) WhiteColor() Color { + rv := objc.Call[Color](cc, objc.Sel("whiteColor")) return rv } -// Initializes a Core Image color object with the specified red, green, and blue component values as measured in the specified color space. [Full Topic] +// Returns a color object whose RGB values are all 1.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643576-initwithred?language=objc -func NewColorWithRedGreenBlueColorSpace(r float64, g float64, b float64, colorSpace coregraphics.ColorSpaceRef) Color { - instance := ColorClass.Alloc().InitWithRedGreenBlueColorSpace(r, g, b, colorSpace) - instance.Autorelease() - return instance -} - -func (cc _ColorClass) Alloc() Color { - rv := objc.Call[Color](cc, objc.Sel("alloc")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643571-whitecolor?language=objc +func Color_WhiteColor() Color { + return ColorClass.WhiteColor() } -func (cc _ColorClass) New() Color { - rv := objc.Call[Color](cc, objc.Sel("new")) - rv.Autorelease() +// Returns a color object whose RGB values are 1.0, 0.0, and 1.0 and whose alpha value is 1.0. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643574-magentacolor?language=objc +func (cc _ColorClass) MagentaColor() Color { + rv := objc.Call[Color](cc, objc.Sel("magentaColor")) return rv } -func NewColor() Color { - return ColorClass.New() +// Returns a color object whose RGB values are 1.0, 0.0, and 1.0 and whose alpha value is 1.0. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643574-magentacolor?language=objc +func Color_MagentaColor() Color { + return ColorClass.MagentaColor() } -func (c_ Color) Init() Color { - rv := objc.Call[Color](c_, objc.Sel("init")) +// The unpremultiplied red component of the color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437969-red?language=objc +func (c_ Color) Red() float64 { + rv := objc.Call[float64](c_, objc.Sel("red")) return rv } -// The alpha value of the color. [Full Topic] +// Returns a color object whose RGB values are all 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437981-alpha?language=objc -func (c_ Color) Alpha() float64 { - rv := objc.Call[float64](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643578-blackcolor?language=objc +func (cc _ColorClass) BlackColor() Color { + rv := objc.Call[Color](cc, objc.Sel("blackColor")) return rv } -// The unpremultiplied blue component of the color. [Full Topic] +// Returns a color object whose RGB values are all 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1438033-blue?language=objc -func (c_ Color) Blue() float64 { - rv := objc.Call[float64](c_, objc.Sel("blue")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643578-blackcolor?language=objc +func Color_BlackColor() Color { + return ColorClass.BlackColor() } // Returns a color object whose RGB values are all 0.5 and whose alpha value is 1.0. [Full Topic] @@ -249,66 +208,73 @@ func Color_GrayColor() Color { return ColorClass.GrayColor() } -// The unpremultiplied green component of the color. [Full Topic] +// Returns a color object whose RGB and alpha values are all 0.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437607-green?language=objc -func (c_ Color) Green() float64 { - rv := objc.Call[float64](c_, objc.Sel("green")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643577-clearcolor?language=objc +func (cc _ColorClass) ClearColor() Color { + rv := objc.Call[Color](cc, objc.Sel("clearColor")) return rv } -// The unpremultiplied red component of the color. [Full Topic] +// Returns a color object whose RGB and alpha values are all 0.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437969-red?language=objc -func (c_ Color) Red() float64 { - rv := objc.Call[float64](c_, objc.Sel("red")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643577-clearcolor?language=objc +func Color_ClearColor() Color { + return ColorClass.ClearColor() } -// The color components of the color. [Full Topic] +// Returns a color object whose RGB values are 0.0, 1.0, and 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437862-components?language=objc -func (c_ Color) Components() *float64 { - rv := objc.Call[*float64](c_, objc.Sel("components")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643580-greencolor?language=objc +func (cc _ColorClass) GreenColor() Color { + rv := objc.Call[Color](cc, objc.Sel("greenColor")) return rv } -// The Quartz 2D color space associated with the color. [Full Topic] +// Returns a color object whose RGB values are 0.0, 1.0, and 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437917-colorspace?language=objc -func (c_ Color) ColorSpace() coregraphics.ColorSpaceRef { - rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("colorSpace")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643580-greencolor?language=objc +func Color_GreenColor() Color { + return ColorClass.GreenColor() } -// Returns a color object whose RGB values are 0.0, 1.0, and 1.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object whose RGB values are 1.0, 1.0, and 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643581-cyancolor?language=objc -func (cc _ColorClass) CyanColor() Color { - rv := objc.Call[Color](cc, objc.Sel("cyanColor")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643582-yellowcolor?language=objc +func (cc _ColorClass) YellowColor() Color { + rv := objc.Call[Color](cc, objc.Sel("yellowColor")) return rv } -// Returns a color object whose RGB values are 0.0, 1.0, and 1.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object whose RGB values are 1.0, 1.0, and 0.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643581-cyancolor?language=objc -func Color_CyanColor() Color { - return ColorClass.CyanColor() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643582-yellowcolor?language=objc +func Color_YellowColor() Color { + return ColorClass.YellowColor() } -// Returns a color object whose RGB values are all 0.0 and whose alpha value is 1.0. [Full Topic] +// The unpremultiplied green component of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643578-blackcolor?language=objc -func (cc _ColorClass) BlackColor() Color { - rv := objc.Call[Color](cc, objc.Sel("blackColor")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437607-green?language=objc +func (c_ Color) Green() float64 { + rv := objc.Call[float64](c_, objc.Sel("green")) return rv } -// Returns a color object whose RGB values are all 0.0 and whose alpha value is 1.0. [Full Topic] +// The Quartz 2D color space associated with the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643578-blackcolor?language=objc -func Color_BlackColor() Color { - return ColorClass.BlackColor() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437917-colorspace?language=objc +func (c_ Color) ColorSpace() coregraphics.ColorSpaceRef { + rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("colorSpace")) + return rv +} + +// The unpremultiplied blue component of the color. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1438033-blue?language=objc +func (c_ Color) Blue() float64 { + rv := objc.Call[float64](c_, objc.Sel("blue")) + return rv } // Returns a color object whose RGB values are 1.0, 0.0, and 0.0 and whose alpha value is 1.0. [Full Topic] @@ -326,27 +292,27 @@ func Color_RedColor() Color { return ColorClass.RedColor() } -// Returns a color object whose RGB values are 1.0, 0.0, and 1.0 and whose alpha value is 1.0. [Full Topic] +// The alpha value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643574-magentacolor?language=objc -func (cc _ColorClass) MagentaColor() Color { - rv := objc.Call[Color](cc, objc.Sel("magentaColor")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437981-alpha?language=objc +func (c_ Color) Alpha() float64 { + rv := objc.Call[float64](c_, objc.Sel("alpha")) return rv } -// Returns a color object whose RGB values are 1.0, 0.0, and 1.0 and whose alpha value is 1.0. [Full Topic] +// Returns a color object whose RGB values are 0.0, 1.0, and 1.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643574-magentacolor?language=objc -func Color_MagentaColor() Color { - return ColorClass.MagentaColor() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643581-cyancolor?language=objc +func (cc _ColorClass) CyanColor() Color { + rv := objc.Call[Color](cc, objc.Sel("cyanColor")) + return rv } -// Returns the number of color components in the color. [Full Topic] +// Returns a color object whose RGB values are 0.0, 1.0, and 1.0 and whose alpha value is 1.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1438151-numberofcomponents?language=objc -func (c_ Color) NumberOfComponents() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfComponents")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643581-cyancolor?language=objc +func Color_CyanColor() Color { + return ColorClass.CyanColor() } // Returns a color object whose RGB values are 0.0, 0.0, and 1.0 and whose alpha value is 1.0. [Full Topic] @@ -364,51 +330,22 @@ func Color_BlueColor() Color { return ColorClass.BlueColor() } -// Returns a color object whose RGB values are 0.0, 1.0, and 0.0 and whose alpha value is 1.0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643580-greencolor?language=objc -func (cc _ColorClass) GreenColor() Color { - rv := objc.Call[Color](cc, objc.Sel("greenColor")) - return rv -} - -// Returns a color object whose RGB values are 0.0, 1.0, and 0.0 and whose alpha value is 1.0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643580-greencolor?language=objc -func Color_GreenColor() Color { - return ColorClass.GreenColor() -} - -// Returns a color object whose RGB and alpha values are all 0.0. [Full Topic] +// The color components of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643577-clearcolor?language=objc -func (cc _ColorClass) ClearColor() Color { - rv := objc.Call[Color](cc, objc.Sel("clearColor")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437862-components?language=objc +func (c_ Color) Components() *float64 { + rv := objc.Call[*float64](c_, objc.Sel("components")) return rv } -// Returns a color object whose RGB and alpha values are all 0.0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643577-clearcolor?language=objc -func Color_ClearColor() Color { - return ColorClass.ClearColor() -} - -// Returns a color object whose RGB values are all 1.0 and whose alpha value is 1.0. [Full Topic] +// Returns the number of color components in the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643571-whitecolor?language=objc -func (cc _ColorClass) WhiteColor() Color { - rv := objc.Call[Color](cc, objc.Sel("whiteColor")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1438151-numberofcomponents?language=objc +func (c_ Color) NumberOfComponents() uint { + rv := objc.Call[uint](c_, objc.Sel("numberOfComponents")) return rv } -// Returns a color object whose RGB values are all 1.0 and whose alpha value is 1.0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643571-whitecolor?language=objc -func Color_WhiteColor() Color { - return ColorClass.WhiteColor() -} - // A formatted string that specifies the components of the color. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1437910-stringrepresentation?language=objc @@ -416,18 +353,3 @@ func (c_ Color) StringRepresentation() string { rv := objc.Call[string](c_, objc.Sel("stringRepresentation")) return rv } - -// Returns a color object whose RGB values are 1.0, 1.0, and 0.0 and whose alpha value is 1.0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643582-yellowcolor?language=objc -func (cc _ColorClass) YellowColor() Color { - rv := objc.Call[Color](cc, objc.Sel("yellowColor")) - return rv -} - -// Returns a color object whose RGB values are 1.0, 1.0, and 0.0 and whose alpha value is 1.0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643582-yellowcolor?language=objc -func Color_YellowColor() Color { - return ColorClass.YellowColor() -} diff --git a/macos/coreimage/color_absolute_difference_protocol.gen.go b/macos/coreimage/color_absolute_difference_protocol.gen.go index a4f6734d..bcdad979 100644 --- a/macos/coreimage/color_absolute_difference_protocol.gen.go +++ b/macos/coreimage/color_absolute_difference_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorabsolutedifference?language=objc type PColorAbsoluteDifference interface { - // optional - SetInputImage2(value Image) - HasSetInputImage2() bool - - // optional - InputImage2() Image - HasInputImage2() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PColorAbsoluteDifference interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetInputImage2(value Image) + HasSetInputImage2() bool + + // optional + InputImage2() Image + HasInputImage2() bool } // ensure impl type implements protocol interface @@ -35,48 +35,48 @@ type ColorAbsoluteDifferenceObject struct { objc.Object } -func (c_ ColorAbsoluteDifferenceObject) HasSetInputImage2() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage2:")) +func (c_ ColorAbsoluteDifferenceObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorabsolutedifference/3547105-inputimage2?language=objc -func (c_ ColorAbsoluteDifferenceObject) SetInputImage2(value Image) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage2:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorabsolutedifference/3547104-inputimage?language=objc +func (c_ ColorAbsoluteDifferenceObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) } -func (c_ ColorAbsoluteDifferenceObject) HasInputImage2() bool { - return c_.RespondsToSelector(objc.Sel("inputImage2")) +func (c_ ColorAbsoluteDifferenceObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorabsolutedifference/3547105-inputimage2?language=objc -func (c_ ColorAbsoluteDifferenceObject) InputImage2() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage2")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorabsolutedifference/3547104-inputimage?language=objc +func (c_ ColorAbsoluteDifferenceObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ ColorAbsoluteDifferenceObject) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ ColorAbsoluteDifferenceObject) HasSetInputImage2() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage2:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorabsolutedifference/3547104-inputimage?language=objc -func (c_ ColorAbsoluteDifferenceObject) SetInputImage(value Image) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorabsolutedifference/3547105-inputimage2?language=objc +func (c_ ColorAbsoluteDifferenceObject) SetInputImage2(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage2:"), value) } -func (c_ ColorAbsoluteDifferenceObject) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ ColorAbsoluteDifferenceObject) HasInputImage2() bool { + return c_.RespondsToSelector(objc.Sel("inputImage2")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorabsolutedifference/3547104-inputimage?language=objc -func (c_ ColorAbsoluteDifferenceObject) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorabsolutedifference/3547105-inputimage2?language=objc +func (c_ ColorAbsoluteDifferenceObject) InputImage2() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage2")) return rv } diff --git a/macos/coreimage/color_clamp_protocol.gen.go b/macos/coreimage/color_clamp_protocol.gen.go index e5835dd5..92daace9 100644 --- a/macos/coreimage/color_clamp_protocol.gen.go +++ b/macos/coreimage/color_clamp_protocol.gen.go @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp?language=objc type PColorClamp interface { // optional - SetMinComponents(value Vector) - HasSetMinComponents() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - MinComponents() Vector - HasMinComponents() bool + InputImage() Image + HasInputImage() bool // optional SetMaxComponents(value Vector) @@ -27,12 +27,12 @@ type PColorClamp interface { HasMaxComponents() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetMinComponents(value Vector) + HasSetMinComponents() bool // optional - InputImage() Image - HasInputImage() bool + MinComponents() Vector + HasMinComponents() bool } // ensure impl type implements protocol interface @@ -43,26 +43,26 @@ type ColorClampObject struct { objc.Object } -func (c_ ColorClampObject) HasSetMinComponents() bool { - return c_.RespondsToSelector(objc.Sel("setMinComponents:")) +func (c_ ColorClampObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } -// A vector containing the lower clamping values. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp/3228122-mincomponents?language=objc -func (c_ ColorClampObject) SetMinComponents(value Vector) { - objc.Call[objc.Void](c_, objc.Sel("setMinComponents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp/3228120-inputimage?language=objc +func (c_ ColorClampObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) } -func (c_ ColorClampObject) HasMinComponents() bool { - return c_.RespondsToSelector(objc.Sel("minComponents")) +func (c_ ColorClampObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } -// A vector containing the lower clamping values. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp/3228122-mincomponents?language=objc -func (c_ ColorClampObject) MinComponents() Vector { - rv := objc.Call[Vector](c_, objc.Sel("minComponents")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp/3228120-inputimage?language=objc +func (c_ ColorClampObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } @@ -89,25 +89,25 @@ func (c_ ColorClampObject) MaxComponents() Vector { return rv } -func (c_ ColorClampObject) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ ColorClampObject) HasSetMinComponents() bool { + return c_.RespondsToSelector(objc.Sel("setMinComponents:")) } -// The image to use as an input image. [Full Topic] +// A vector containing the lower clamping values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp/3228120-inputimage?language=objc -func (c_ ColorClampObject) SetInputImage(value Image) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp/3228122-mincomponents?language=objc +func (c_ ColorClampObject) SetMinComponents(value Vector) { + objc.Call[objc.Void](c_, objc.Sel("setMinComponents:"), value) } -func (c_ ColorClampObject) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ ColorClampObject) HasMinComponents() bool { + return c_.RespondsToSelector(objc.Sel("minComponents")) } -// The image to use as an input image. [Full Topic] +// A vector containing the lower clamping values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp/3228120-inputimage?language=objc -func (c_ ColorClampObject) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp/3228122-mincomponents?language=objc +func (c_ ColorClampObject) MinComponents() Vector { + rv := objc.Call[Vector](c_, objc.Sel("minComponents")) return rv } diff --git a/macos/coreimage/color_controls_protocol.gen.go b/macos/coreimage/color_controls_protocol.gen.go index 9849b3c7..4329aa35 100644 --- a/macos/coreimage/color_controls_protocol.gen.go +++ b/macos/coreimage/color_controls_protocol.gen.go @@ -18,6 +18,14 @@ type PColorControls interface { InputImage() Image HasInputImage() bool + // optional + SetSaturation(value float32) + HasSetSaturation() bool + + // optional + Saturation() float32 + HasSaturation() bool + // optional SetContrast(value float32) HasSetContrast() bool @@ -33,14 +41,6 @@ type PColorControls interface { // optional Brightness() float32 HasBrightness() bool - - // optional - SetSaturation(value float32) - HasSetSaturation() bool - - // optional - Saturation() float32 - HasSaturation() bool } // ensure impl type implements protocol interface @@ -74,6 +74,29 @@ func (c_ ColorControlsObject) InputImage() Image { return rv } +func (c_ ColorControlsObject) HasSetSaturation() bool { + return c_.RespondsToSelector(objc.Sel("setSaturation:")) +} + +// The amount of saturation to apply. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcontrols/3228127-saturation?language=objc +func (c_ ColorControlsObject) SetSaturation(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setSaturation:"), value) +} + +func (c_ ColorControlsObject) HasSaturation() bool { + return c_.RespondsToSelector(objc.Sel("saturation")) +} + +// The amount of saturation to apply. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcontrols/3228127-saturation?language=objc +func (c_ ColorControlsObject) Saturation() float32 { + rv := objc.Call[float32](c_, objc.Sel("saturation")) + return rv +} + func (c_ ColorControlsObject) HasSetContrast() bool { return c_.RespondsToSelector(objc.Sel("setContrast:")) } @@ -119,26 +142,3 @@ func (c_ ColorControlsObject) Brightness() float32 { rv := objc.Call[float32](c_, objc.Sel("brightness")) return rv } - -func (c_ ColorControlsObject) HasSetSaturation() bool { - return c_.RespondsToSelector(objc.Sel("setSaturation:")) -} - -// The amount of saturation to apply. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcontrols/3228127-saturation?language=objc -func (c_ ColorControlsObject) SetSaturation(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setSaturation:"), value) -} - -func (c_ ColorControlsObject) HasSaturation() bool { - return c_.RespondsToSelector(objc.Sel("saturation")) -} - -// The amount of saturation to apply. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcontrols/3228127-saturation?language=objc -func (c_ ColorControlsObject) Saturation() float32 { - rv := objc.Call[float32](c_, objc.Sel("saturation")) - return rv -} diff --git a/macos/coreimage/color_cross_polynomial_protocol.gen.go b/macos/coreimage/color_cross_polynomial_protocol.gen.go index 39aaac1e..4736c5f9 100644 --- a/macos/coreimage/color_cross_polynomial_protocol.gen.go +++ b/macos/coreimage/color_cross_polynomial_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial?language=objc type PColorCrossPolynomial interface { - // optional - SetBlueCoefficients(value Vector) - HasSetBlueCoefficients() bool - - // optional - BlueCoefficients() Vector - HasBlueCoefficients() bool - // optional SetRedCoefficients(value Vector) HasSetRedCoefficients() bool @@ -26,6 +18,14 @@ type PColorCrossPolynomial interface { RedCoefficients() Vector HasRedCoefficients() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetGreenCoefficients(value Vector) HasSetGreenCoefficients() bool @@ -35,12 +35,12 @@ type PColorCrossPolynomial interface { HasGreenCoefficients() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetBlueCoefficients(value Vector) + HasSetBlueCoefficients() bool // optional - InputImage() Image - HasInputImage() bool + BlueCoefficients() Vector + HasBlueCoefficients() bool } // ensure impl type implements protocol interface @@ -51,29 +51,6 @@ type ColorCrossPolynomialObject struct { objc.Object } -func (c_ ColorCrossPolynomialObject) HasSetBlueCoefficients() bool { - return c_.RespondsToSelector(objc.Sel("setBlueCoefficients:")) -} - -// Polynomial coefficients for the blue channel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228129-bluecoefficients?language=objc -func (c_ ColorCrossPolynomialObject) SetBlueCoefficients(value Vector) { - objc.Call[objc.Void](c_, objc.Sel("setBlueCoefficients:"), value) -} - -func (c_ ColorCrossPolynomialObject) HasBlueCoefficients() bool { - return c_.RespondsToSelector(objc.Sel("blueCoefficients")) -} - -// Polynomial coefficients for the blue channel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228129-bluecoefficients?language=objc -func (c_ ColorCrossPolynomialObject) BlueCoefficients() Vector { - rv := objc.Call[Vector](c_, objc.Sel("blueCoefficients")) - return rv -} - func (c_ ColorCrossPolynomialObject) HasSetRedCoefficients() bool { return c_.RespondsToSelector(objc.Sel("setRedCoefficients:")) } @@ -97,6 +74,29 @@ func (c_ ColorCrossPolynomialObject) RedCoefficients() Vector { return rv } +func (c_ ColorCrossPolynomialObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228131-inputimage?language=objc +func (c_ ColorCrossPolynomialObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) +} + +func (c_ ColorCrossPolynomialObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228131-inputimage?language=objc +func (c_ ColorCrossPolynomialObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) + return rv +} + func (c_ ColorCrossPolynomialObject) HasSetGreenCoefficients() bool { return c_.RespondsToSelector(objc.Sel("setGreenCoefficients:")) } @@ -120,25 +120,25 @@ func (c_ ColorCrossPolynomialObject) GreenCoefficients() Vector { return rv } -func (c_ ColorCrossPolynomialObject) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ ColorCrossPolynomialObject) HasSetBlueCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("setBlueCoefficients:")) } -// The image to use as an input image. [Full Topic] +// Polynomial coefficients for the blue channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228131-inputimage?language=objc -func (c_ ColorCrossPolynomialObject) SetInputImage(value Image) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228129-bluecoefficients?language=objc +func (c_ ColorCrossPolynomialObject) SetBlueCoefficients(value Vector) { + objc.Call[objc.Void](c_, objc.Sel("setBlueCoefficients:"), value) } -func (c_ ColorCrossPolynomialObject) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ ColorCrossPolynomialObject) HasBlueCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("blueCoefficients")) } -// The image to use as an input image. [Full Topic] +// Polynomial coefficients for the blue channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228131-inputimage?language=objc -func (c_ ColorCrossPolynomialObject) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228129-bluecoefficients?language=objc +func (c_ ColorCrossPolynomialObject) BlueCoefficients() Vector { + rv := objc.Call[Vector](c_, objc.Sel("blueCoefficients")) return rv } diff --git a/macos/coreimage/color_cube_protocol.gen.go b/macos/coreimage/color_cube_protocol.gen.go index 110a165e..45ea1ec6 100644 --- a/macos/coreimage/color_cube_protocol.gen.go +++ b/macos/coreimage/color_cube_protocol.gen.go @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube?language=objc type PColorCube interface { // optional - SetCubeData(value []byte) - HasSetCubeData() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - CubeData() []byte - HasCubeData() bool + InputImage() Image + HasInputImage() bool // optional SetCubeDimension(value float32) @@ -27,12 +27,12 @@ type PColorCube interface { HasCubeDimension() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetCubeData(value []byte) + HasSetCubeData() bool // optional - InputImage() Image - HasInputImage() bool + CubeData() []byte + HasCubeData() bool } // ensure impl type implements protocol interface @@ -43,26 +43,26 @@ type ColorCubeObject struct { objc.Object } -func (c_ ColorCubeObject) HasSetCubeData() bool { - return c_.RespondsToSelector(objc.Sel("setCubeData:")) +func (c_ ColorCubeObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The cube texture data to use as a color lookup table. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube/3228134-cubedata?language=objc -func (c_ ColorCubeObject) SetCubeData(value []byte) { - objc.Call[objc.Void](c_, objc.Sel("setCubeData:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube/3228136-inputimage?language=objc +func (c_ ColorCubeObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) } -func (c_ ColorCubeObject) HasCubeData() bool { - return c_.RespondsToSelector(objc.Sel("cubeData")) +func (c_ ColorCubeObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } -// The cube texture data to use as a color lookup table. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube/3228134-cubedata?language=objc -func (c_ ColorCubeObject) CubeData() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("cubeData")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube/3228136-inputimage?language=objc +func (c_ ColorCubeObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } @@ -89,25 +89,25 @@ func (c_ ColorCubeObject) CubeDimension() float32 { return rv } -func (c_ ColorCubeObject) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ ColorCubeObject) HasSetCubeData() bool { + return c_.RespondsToSelector(objc.Sel("setCubeData:")) } -// The image to use as an input image. [Full Topic] +// The cube texture data to use as a color lookup table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube/3228136-inputimage?language=objc -func (c_ ColorCubeObject) SetInputImage(value Image) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube/3228134-cubedata?language=objc +func (c_ ColorCubeObject) SetCubeData(value []byte) { + objc.Call[objc.Void](c_, objc.Sel("setCubeData:"), value) } -func (c_ ColorCubeObject) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ ColorCubeObject) HasCubeData() bool { + return c_.RespondsToSelector(objc.Sel("cubeData")) } -// The image to use as an input image. [Full Topic] +// The cube texture data to use as a color lookup table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube/3228136-inputimage?language=objc -func (c_ ColorCubeObject) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube/3228134-cubedata?language=objc +func (c_ ColorCubeObject) CubeData() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("cubeData")) return rv } diff --git a/macos/coreimage/color_cube_with_color_space_protocol.gen.go b/macos/coreimage/color_cube_with_color_space_protocol.gen.go index 2bb31642..56e540d4 100644 --- a/macos/coreimage/color_cube_with_color_space_protocol.gen.go +++ b/macos/coreimage/color_cube_with_color_space_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubewithcolorspace?language=objc type PColorCubeWithColorSpace interface { - // optional - SetCubeData(value []byte) - HasSetCubeData() bool - - // optional - CubeData() []byte - HasCubeData() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -35,6 +27,14 @@ type PColorCubeWithColorSpace interface { CubeDimension() float32 HasCubeDimension() bool + // optional + SetCubeData(value []byte) + HasSetCubeData() bool + + // optional + CubeData() []byte + HasCubeData() bool + // optional SetColorSpace(value coregraphics.ColorSpaceRef) HasSetColorSpace() bool @@ -52,29 +52,6 @@ type ColorCubeWithColorSpaceObject struct { objc.Object } -func (c_ ColorCubeWithColorSpaceObject) HasSetCubeData() bool { - return c_.RespondsToSelector(objc.Sel("setCubeData:")) -} - -// The cube texture data to use as a color lookup table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubewithcolorspace/3228139-cubedata?language=objc -func (c_ ColorCubeWithColorSpaceObject) SetCubeData(value []byte) { - objc.Call[objc.Void](c_, objc.Sel("setCubeData:"), value) -} - -func (c_ ColorCubeWithColorSpaceObject) HasCubeData() bool { - return c_.RespondsToSelector(objc.Sel("cubeData")) -} - -// The cube texture data to use as a color lookup table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubewithcolorspace/3228139-cubedata?language=objc -func (c_ ColorCubeWithColorSpaceObject) CubeData() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("cubeData")) - return rv -} - func (c_ ColorCubeWithColorSpaceObject) HasSetInputImage() bool { return c_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -121,6 +98,29 @@ func (c_ ColorCubeWithColorSpaceObject) CubeDimension() float32 { return rv } +func (c_ ColorCubeWithColorSpaceObject) HasSetCubeData() bool { + return c_.RespondsToSelector(objc.Sel("setCubeData:")) +} + +// The cube texture data to use as a color lookup table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubewithcolorspace/3228139-cubedata?language=objc +func (c_ ColorCubeWithColorSpaceObject) SetCubeData(value []byte) { + objc.Call[objc.Void](c_, objc.Sel("setCubeData:"), value) +} + +func (c_ ColorCubeWithColorSpaceObject) HasCubeData() bool { + return c_.RespondsToSelector(objc.Sel("cubeData")) +} + +// The cube texture data to use as a color lookup table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubewithcolorspace/3228139-cubedata?language=objc +func (c_ ColorCubeWithColorSpaceObject) CubeData() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("cubeData")) + return rv +} + func (c_ ColorCubeWithColorSpaceObject) HasSetColorSpace() bool { return c_.RespondsToSelector(objc.Sel("setColorSpace:")) } diff --git a/macos/coreimage/color_cubes_mixed_with_mask_protocol.gen.go b/macos/coreimage/color_cubes_mixed_with_mask_protocol.gen.go index 591cd663..1dd2cf5b 100644 --- a/macos/coreimage/color_cubes_mixed_with_mask_protocol.gen.go +++ b/macos/coreimage/color_cubes_mixed_with_mask_protocol.gen.go @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask?language=objc type PColorCubesMixedWithMask interface { - // optional - SetCube1Data(value []byte) - HasSetCube1Data() bool - - // optional - Cube1Data() []byte - HasCube1Data() bool - - // optional - SetCube0Data(value []byte) - HasSetCube0Data() bool - - // optional - Cube0Data() []byte - HasCube0Data() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -58,6 +42,22 @@ type PColorCubesMixedWithMask interface { // optional ColorSpace() coregraphics.ColorSpaceRef HasColorSpace() bool + + // optional + SetCube0Data(value []byte) + HasSetCube0Data() bool + + // optional + Cube0Data() []byte + HasCube0Data() bool + + // optional + SetCube1Data(value []byte) + HasSetCube1Data() bool + + // optional + Cube1Data() []byte + HasCube1Data() bool } // ensure impl type implements protocol interface @@ -68,52 +68,6 @@ type ColorCubesMixedWithMaskObject struct { objc.Object } -func (c_ ColorCubesMixedWithMaskObject) HasSetCube1Data() bool { - return c_.RespondsToSelector(objc.Sel("setCube1Data:")) -} - -// The cube texture data to use as a color lookup table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228145-cube1data?language=objc -func (c_ ColorCubesMixedWithMaskObject) SetCube1Data(value []byte) { - objc.Call[objc.Void](c_, objc.Sel("setCube1Data:"), value) -} - -func (c_ ColorCubesMixedWithMaskObject) HasCube1Data() bool { - return c_.RespondsToSelector(objc.Sel("cube1Data")) -} - -// The cube texture data to use as a color lookup table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228145-cube1data?language=objc -func (c_ ColorCubesMixedWithMaskObject) Cube1Data() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("cube1Data")) - return rv -} - -func (c_ ColorCubesMixedWithMaskObject) HasSetCube0Data() bool { - return c_.RespondsToSelector(objc.Sel("setCube0Data:")) -} - -// The cube texture data to use as a color lookup table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228144-cube0data?language=objc -func (c_ ColorCubesMixedWithMaskObject) SetCube0Data(value []byte) { - objc.Call[objc.Void](c_, objc.Sel("setCube0Data:"), value) -} - -func (c_ ColorCubesMixedWithMaskObject) HasCube0Data() bool { - return c_.RespondsToSelector(objc.Sel("cube0Data")) -} - -// The cube texture data to use as a color lookup table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228144-cube0data?language=objc -func (c_ ColorCubesMixedWithMaskObject) Cube0Data() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("cube0Data")) - return rv -} - func (c_ ColorCubesMixedWithMaskObject) HasSetInputImage() bool { return c_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -205,3 +159,49 @@ func (c_ ColorCubesMixedWithMaskObject) ColorSpace() coregraphics.ColorSpaceRef rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("colorSpace")) return rv } + +func (c_ ColorCubesMixedWithMaskObject) HasSetCube0Data() bool { + return c_.RespondsToSelector(objc.Sel("setCube0Data:")) +} + +// The cube texture data to use as a color lookup table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228144-cube0data?language=objc +func (c_ ColorCubesMixedWithMaskObject) SetCube0Data(value []byte) { + objc.Call[objc.Void](c_, objc.Sel("setCube0Data:"), value) +} + +func (c_ ColorCubesMixedWithMaskObject) HasCube0Data() bool { + return c_.RespondsToSelector(objc.Sel("cube0Data")) +} + +// The cube texture data to use as a color lookup table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228144-cube0data?language=objc +func (c_ ColorCubesMixedWithMaskObject) Cube0Data() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("cube0Data")) + return rv +} + +func (c_ ColorCubesMixedWithMaskObject) HasSetCube1Data() bool { + return c_.RespondsToSelector(objc.Sel("setCube1Data:")) +} + +// The cube texture data to use as a color lookup table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228145-cube1data?language=objc +func (c_ ColorCubesMixedWithMaskObject) SetCube1Data(value []byte) { + objc.Call[objc.Void](c_, objc.Sel("setCube1Data:"), value) +} + +func (c_ ColorCubesMixedWithMaskObject) HasCube1Data() bool { + return c_.RespondsToSelector(objc.Sel("cube1Data")) +} + +// The cube texture data to use as a color lookup table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228145-cube1data?language=objc +func (c_ ColorCubesMixedWithMaskObject) Cube1Data() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("cube1Data")) + return rv +} diff --git a/macos/coreimage/color_curves_protocol.gen.go b/macos/coreimage/color_curves_protocol.gen.go index 112c4a2a..e30c5dd6 100644 --- a/macos/coreimage/color_curves_protocol.gen.go +++ b/macos/coreimage/color_curves_protocol.gen.go @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves?language=objc type PColorCurves interface { - // optional - SetColorSpace(value coregraphics.ColorSpaceRef) - HasSetColorSpace() bool - - // optional - ColorSpace() coregraphics.ColorSpaceRef - HasColorSpace() bool - - // optional - SetCurvesDomain(value Vector) - HasSetCurvesDomain() bool - - // optional - CurvesDomain() Vector - HasCurvesDomain() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -35,6 +19,14 @@ type PColorCurves interface { InputImage() Image HasInputImage() bool + // optional + SetColorSpace(value coregraphics.ColorSpaceRef) + HasSetColorSpace() bool + + // optional + ColorSpace() coregraphics.ColorSpaceRef + HasColorSpace() bool + // optional SetCurvesData(value []byte) HasSetCurvesData() bool @@ -42,6 +34,14 @@ type PColorCurves interface { // optional CurvesData() []byte HasCurvesData() bool + + // optional + SetCurvesDomain(value Vector) + HasSetCurvesDomain() bool + + // optional + CurvesDomain() Vector + HasCurvesDomain() bool } // ensure impl type implements protocol interface @@ -52,52 +52,6 @@ type ColorCurvesObject struct { objc.Object } -func (c_ ColorCurvesObject) HasSetColorSpace() bool { - return c_.RespondsToSelector(objc.Sel("setColorSpace:")) -} - -// The working color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228150-colorspace?language=objc -func (c_ ColorCurvesObject) SetColorSpace(value coregraphics.ColorSpaceRef) { - objc.Call[objc.Void](c_, objc.Sel("setColorSpace:"), value) -} - -func (c_ ColorCurvesObject) HasColorSpace() bool { - return c_.RespondsToSelector(objc.Sel("colorSpace")) -} - -// The working color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228150-colorspace?language=objc -func (c_ ColorCurvesObject) ColorSpace() coregraphics.ColorSpaceRef { - rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("colorSpace")) - return rv -} - -func (c_ ColorCurvesObject) HasSetCurvesDomain() bool { - return c_.RespondsToSelector(objc.Sel("setCurvesDomain:")) -} - -// A two-element vector that defines the minimum and maximum values of the curve data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228152-curvesdomain?language=objc -func (c_ ColorCurvesObject) SetCurvesDomain(value Vector) { - objc.Call[objc.Void](c_, objc.Sel("setCurvesDomain:"), value) -} - -func (c_ ColorCurvesObject) HasCurvesDomain() bool { - return c_.RespondsToSelector(objc.Sel("curvesDomain")) -} - -// A two-element vector that defines the minimum and maximum values of the curve data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228152-curvesdomain?language=objc -func (c_ ColorCurvesObject) CurvesDomain() Vector { - rv := objc.Call[Vector](c_, objc.Sel("curvesDomain")) - return rv -} - func (c_ ColorCurvesObject) HasSetInputImage() bool { return c_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -121,6 +75,29 @@ func (c_ ColorCurvesObject) InputImage() Image { return rv } +func (c_ ColorCurvesObject) HasSetColorSpace() bool { + return c_.RespondsToSelector(objc.Sel("setColorSpace:")) +} + +// The working color space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228150-colorspace?language=objc +func (c_ ColorCurvesObject) SetColorSpace(value coregraphics.ColorSpaceRef) { + objc.Call[objc.Void](c_, objc.Sel("setColorSpace:"), value) +} + +func (c_ ColorCurvesObject) HasColorSpace() bool { + return c_.RespondsToSelector(objc.Sel("colorSpace")) +} + +// The working color space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228150-colorspace?language=objc +func (c_ ColorCurvesObject) ColorSpace() coregraphics.ColorSpaceRef { + rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("colorSpace")) + return rv +} + func (c_ ColorCurvesObject) HasSetCurvesData() bool { return c_.RespondsToSelector(objc.Sel("setCurvesData:")) } @@ -143,3 +120,26 @@ func (c_ ColorCurvesObject) CurvesData() []byte { rv := objc.Call[[]byte](c_, objc.Sel("curvesData")) return rv } + +func (c_ ColorCurvesObject) HasSetCurvesDomain() bool { + return c_.RespondsToSelector(objc.Sel("setCurvesDomain:")) +} + +// A two-element vector that defines the minimum and maximum values of the curve data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228152-curvesdomain?language=objc +func (c_ ColorCurvesObject) SetCurvesDomain(value Vector) { + objc.Call[objc.Void](c_, objc.Sel("setCurvesDomain:"), value) +} + +func (c_ ColorCurvesObject) HasCurvesDomain() bool { + return c_.RespondsToSelector(objc.Sel("curvesDomain")) +} + +// A two-element vector that defines the minimum and maximum values of the curve data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228152-curvesdomain?language=objc +func (c_ ColorCurvesObject) CurvesDomain() Vector { + rv := objc.Call[Vector](c_, objc.Sel("curvesDomain")) + return rv +} diff --git a/macos/coreimage/color_kernel.gen.go b/macos/coreimage/color_kernel.gen.go index edf197ca..8224b250 100644 --- a/macos/coreimage/color_kernel.gen.go +++ b/macos/coreimage/color_kernel.gen.go @@ -55,18 +55,6 @@ func (c_ ColorKernel) Init() ColorKernel { return rv } -func (cc _ColorKernelClass) KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error unsafe.Pointer) ColorKernel { - rv := objc.Call[ColorKernel](cc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:error:"), name, data, error) - return rv -} - -// Creates a single kernel object using a Metal Shading Language (MSL) kernel function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/2880194-kernelwithfunctionname?language=objc -func ColorKernel_KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error unsafe.Pointer) ColorKernel { - return ColorKernelClass.KernelWithFunctionNameFromMetalLibraryDataError(name, data, error) -} - func (cc _ColorKernelClass) KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name string, data []byte, format Format, error unsafe.Pointer) ColorKernel { rv := objc.Call[ColorKernel](cc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:"), name, data, format, error) return rv diff --git a/macos/coreimage/color_matrix_protocol.gen.go b/macos/coreimage/color_matrix_protocol.gen.go index e5e5b513..21686250 100644 --- a/macos/coreimage/color_matrix_protocol.gen.go +++ b/macos/coreimage/color_matrix_protocol.gen.go @@ -18,6 +18,14 @@ type PColorMatrix interface { InputImage() Image HasInputImage() bool + // optional + SetGVector(value Vector) + HasSetGVector() bool + + // optional + GVector() Vector + HasGVector() bool + // optional SetBiasVector(value Vector) HasSetBiasVector() bool @@ -42,14 +50,6 @@ type PColorMatrix interface { RVector() Vector HasRVector() bool - // optional - SetGVector(value Vector) - HasSetGVector() bool - - // optional - GVector() Vector - HasGVector() bool - // optional SetAVector(value Vector) HasSetAVector() bool @@ -90,6 +90,29 @@ func (c_ ColorMatrixObject) InputImage() Image { return rv } +func (c_ ColorMatrixObject) HasSetGVector() bool { + return c_.RespondsToSelector(objc.Sel("setGVector:")) +} + +// The amount of green to multiply the source color values by. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228162-gvector?language=objc +func (c_ ColorMatrixObject) SetGVector(value Vector) { + objc.Call[objc.Void](c_, objc.Sel("setGVector:"), value) +} + +func (c_ ColorMatrixObject) HasGVector() bool { + return c_.RespondsToSelector(objc.Sel("GVector")) +} + +// The amount of green to multiply the source color values by. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228162-gvector?language=objc +func (c_ ColorMatrixObject) GVector() Vector { + rv := objc.Call[Vector](c_, objc.Sel("GVector")) + return rv +} + func (c_ ColorMatrixObject) HasSetBiasVector() bool { return c_.RespondsToSelector(objc.Sel("setBiasVector:")) } @@ -159,29 +182,6 @@ func (c_ ColorMatrixObject) RVector() Vector { return rv } -func (c_ ColorMatrixObject) HasSetGVector() bool { - return c_.RespondsToSelector(objc.Sel("setGVector:")) -} - -// The amount of green to multiply the source color values by. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228162-gvector?language=objc -func (c_ ColorMatrixObject) SetGVector(value Vector) { - objc.Call[objc.Void](c_, objc.Sel("setGVector:"), value) -} - -func (c_ ColorMatrixObject) HasGVector() bool { - return c_.RespondsToSelector(objc.Sel("GVector")) -} - -// The amount of green to multiply the source color values by. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228162-gvector?language=objc -func (c_ ColorMatrixObject) GVector() Vector { - rv := objc.Call[Vector](c_, objc.Sel("GVector")) - return rv -} - func (c_ ColorMatrixObject) HasSetAVector() bool { return c_.RespondsToSelector(objc.Sel("setAVector:")) } diff --git a/macos/coreimage/color_monochrome_protocol.gen.go b/macos/coreimage/color_monochrome_protocol.gen.go index 5a810a2c..3bdced9e 100644 --- a/macos/coreimage/color_monochrome_protocol.gen.go +++ b/macos/coreimage/color_monochrome_protocol.gen.go @@ -18,14 +18,6 @@ type PColorMonochrome interface { Color() Color HasColor() bool - // optional - SetIntensity(value float32) - HasSetIntensity() bool - - // optional - Intensity() float32 - HasIntensity() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -33,6 +25,14 @@ type PColorMonochrome interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetIntensity(value float32) + HasSetIntensity() bool + + // optional + Intensity() float32 + HasIntensity() bool } // ensure impl type implements protocol interface @@ -66,29 +66,6 @@ func (c_ ColorMonochromeObject) Color() Color { return rv } -func (c_ ColorMonochromeObject) HasSetIntensity() bool { - return c_.RespondsToSelector(objc.Sel("setIntensity:")) -} - -// The intensity of the monochrome effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228169-intensity?language=objc -func (c_ ColorMonochromeObject) SetIntensity(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setIntensity:"), value) -} - -func (c_ ColorMonochromeObject) HasIntensity() bool { - return c_.RespondsToSelector(objc.Sel("intensity")) -} - -// The intensity of the monochrome effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228169-intensity?language=objc -func (c_ ColorMonochromeObject) Intensity() float32 { - rv := objc.Call[float32](c_, objc.Sel("intensity")) - return rv -} - func (c_ ColorMonochromeObject) HasSetInputImage() bool { return c_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -111,3 +88,26 @@ func (c_ ColorMonochromeObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } + +func (c_ ColorMonochromeObject) HasSetIntensity() bool { + return c_.RespondsToSelector(objc.Sel("setIntensity:")) +} + +// The intensity of the monochrome effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228169-intensity?language=objc +func (c_ ColorMonochromeObject) SetIntensity(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setIntensity:"), value) +} + +func (c_ ColorMonochromeObject) HasIntensity() bool { + return c_.RespondsToSelector(objc.Sel("intensity")) +} + +// The intensity of the monochrome effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228169-intensity?language=objc +func (c_ ColorMonochromeObject) Intensity() float32 { + rv := objc.Call[float32](c_, objc.Sel("intensity")) + return rv +} diff --git a/macos/coreimage/color_polynomial_protocol.gen.go b/macos/coreimage/color_polynomial_protocol.gen.go index 55e6cd74..9382f235 100644 --- a/macos/coreimage/color_polynomial_protocol.gen.go +++ b/macos/coreimage/color_polynomial_protocol.gen.go @@ -10,22 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial?language=objc type PColorPolynomial interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool - - // optional - SetAlphaCoefficients(value Vector) - HasSetAlphaCoefficients() bool - - // optional - AlphaCoefficients() Vector - HasAlphaCoefficients() bool - // optional SetRedCoefficients(value Vector) HasSetRedCoefficients() bool @@ -34,6 +18,14 @@ type PColorPolynomial interface { RedCoefficients() Vector HasRedCoefficients() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetGreenCoefficients(value Vector) HasSetGreenCoefficients() bool @@ -49,6 +41,14 @@ type PColorPolynomial interface { // optional BlueCoefficients() Vector HasBlueCoefficients() bool + + // optional + SetAlphaCoefficients(value Vector) + HasSetAlphaCoefficients() bool + + // optional + AlphaCoefficients() Vector + HasAlphaCoefficients() bool } // ensure impl type implements protocol interface @@ -59,52 +59,6 @@ type ColorPolynomialObject struct { objc.Object } -func (c_ ColorPolynomialObject) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228174-inputimage?language=objc -func (c_ ColorPolynomialObject) SetInputImage(value Image) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) -} - -func (c_ ColorPolynomialObject) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228174-inputimage?language=objc -func (c_ ColorPolynomialObject) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) - return rv -} - -func (c_ ColorPolynomialObject) HasSetAlphaCoefficients() bool { - return c_.RespondsToSelector(objc.Sel("setAlphaCoefficients:")) -} - -// Polynomial coefficients for the alpha channel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228171-alphacoefficients?language=objc -func (c_ ColorPolynomialObject) SetAlphaCoefficients(value Vector) { - objc.Call[objc.Void](c_, objc.Sel("setAlphaCoefficients:"), value) -} - -func (c_ ColorPolynomialObject) HasAlphaCoefficients() bool { - return c_.RespondsToSelector(objc.Sel("alphaCoefficients")) -} - -// Polynomial coefficients for the alpha channel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228171-alphacoefficients?language=objc -func (c_ ColorPolynomialObject) AlphaCoefficients() Vector { - rv := objc.Call[Vector](c_, objc.Sel("alphaCoefficients")) - return rv -} - func (c_ ColorPolynomialObject) HasSetRedCoefficients() bool { return c_.RespondsToSelector(objc.Sel("setRedCoefficients:")) } @@ -128,6 +82,29 @@ func (c_ ColorPolynomialObject) RedCoefficients() Vector { return rv } +func (c_ ColorPolynomialObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228174-inputimage?language=objc +func (c_ ColorPolynomialObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) +} + +func (c_ ColorPolynomialObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228174-inputimage?language=objc +func (c_ ColorPolynomialObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) + return rv +} + func (c_ ColorPolynomialObject) HasSetGreenCoefficients() bool { return c_.RespondsToSelector(objc.Sel("setGreenCoefficients:")) } @@ -173,3 +150,26 @@ func (c_ ColorPolynomialObject) BlueCoefficients() Vector { rv := objc.Call[Vector](c_, objc.Sel("blueCoefficients")) return rv } + +func (c_ ColorPolynomialObject) HasSetAlphaCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("setAlphaCoefficients:")) +} + +// Polynomial coefficients for the alpha channel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228171-alphacoefficients?language=objc +func (c_ ColorPolynomialObject) SetAlphaCoefficients(value Vector) { + objc.Call[objc.Void](c_, objc.Sel("setAlphaCoefficients:"), value) +} + +func (c_ ColorPolynomialObject) HasAlphaCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("alphaCoefficients")) +} + +// Polynomial coefficients for the alpha channel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228171-alphacoefficients?language=objc +func (c_ ColorPolynomialObject) AlphaCoefficients() Vector { + rv := objc.Call[Vector](c_, objc.Sel("alphaCoefficients")) + return rv +} diff --git a/macos/coreimage/color_posterize_protocol.gen.go b/macos/coreimage/color_posterize_protocol.gen.go index 22ee9b5d..b993ec26 100644 --- a/macos/coreimage/color_posterize_protocol.gen.go +++ b/macos/coreimage/color_posterize_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize?language=objc type PColorPosterize interface { - // optional - SetLevels(value float32) - HasSetLevels() bool - - // optional - Levels() float32 - HasLevels() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PColorPosterize interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetLevels(value float32) + HasSetLevels() bool + + // optional + Levels() float32 + HasLevels() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type ColorPosterizeObject struct { objc.Object } -func (c_ ColorPosterizeObject) HasSetLevels() bool { - return c_.RespondsToSelector(objc.Sel("setLevels:")) -} - -// The number of brightness levels to use for each color component. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228178-levels?language=objc -func (c_ ColorPosterizeObject) SetLevels(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setLevels:"), value) -} - -func (c_ ColorPosterizeObject) HasLevels() bool { - return c_.RespondsToSelector(objc.Sel("levels")) -} - -// The number of brightness levels to use for each color component. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228178-levels?language=objc -func (c_ ColorPosterizeObject) Levels() float32 { - rv := objc.Call[float32](c_, objc.Sel("levels")) - return rv -} - func (c_ ColorPosterizeObject) HasSetInputImage() bool { return c_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (c_ ColorPosterizeObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } + +func (c_ ColorPosterizeObject) HasSetLevels() bool { + return c_.RespondsToSelector(objc.Sel("setLevels:")) +} + +// The number of brightness levels to use for each color component. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228178-levels?language=objc +func (c_ ColorPosterizeObject) SetLevels(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setLevels:"), value) +} + +func (c_ ColorPosterizeObject) HasLevels() bool { + return c_.RespondsToSelector(objc.Sel("levels")) +} + +// The number of brightness levels to use for each color component. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228178-levels?language=objc +func (c_ ColorPosterizeObject) Levels() float32 { + rv := objc.Call[float32](c_, objc.Sel("levels")) + return rv +} diff --git a/macos/coreimage/color_threshold_protocol.gen.go b/macos/coreimage/color_threshold_protocol.gen.go index 86bb7d1f..6c1e4db6 100644 --- a/macos/coreimage/color_threshold_protocol.gen.go +++ b/macos/coreimage/color_threshold_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold?language=objc type PColorThreshold interface { - // optional - SetThreshold(value float32) - HasSetThreshold() bool - - // optional - Threshold() float32 - HasThreshold() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PColorThreshold interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetThreshold(value float32) + HasSetThreshold() bool + + // optional + Threshold() float32 + HasThreshold() bool } // ensure impl type implements protocol interface @@ -35,48 +35,48 @@ type ColorThresholdObject struct { objc.Object } -func (c_ ColorThresholdObject) HasSetThreshold() bool { - return c_.RespondsToSelector(objc.Sel("setThreshold:")) +func (c_ ColorThresholdObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold/3547108-threshold?language=objc -func (c_ ColorThresholdObject) SetThreshold(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setThreshold:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold/3547107-inputimage?language=objc +func (c_ ColorThresholdObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) } -func (c_ ColorThresholdObject) HasThreshold() bool { - return c_.RespondsToSelector(objc.Sel("threshold")) +func (c_ ColorThresholdObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold/3547108-threshold?language=objc -func (c_ ColorThresholdObject) Threshold() float32 { - rv := objc.Call[float32](c_, objc.Sel("threshold")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold/3547107-inputimage?language=objc +func (c_ ColorThresholdObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ ColorThresholdObject) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ ColorThresholdObject) HasSetThreshold() bool { + return c_.RespondsToSelector(objc.Sel("setThreshold:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold/3547107-inputimage?language=objc -func (c_ ColorThresholdObject) SetInputImage(value Image) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold/3547108-threshold?language=objc +func (c_ ColorThresholdObject) SetThreshold(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setThreshold:"), value) } -func (c_ ColorThresholdObject) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ ColorThresholdObject) HasThreshold() bool { + return c_.RespondsToSelector(objc.Sel("threshold")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold/3547107-inputimage?language=objc -func (c_ ColorThresholdObject) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold/3547108-threshold?language=objc +func (c_ ColorThresholdObject) Threshold() float32 { + rv := objc.Call[float32](c_, objc.Sel("threshold")) return rv } diff --git a/macos/coreimage/context.gen.go b/macos/coreimage/context.gen.go index 6d3479f2..4dee0ab7 100644 --- a/macos/coreimage/context.gen.go +++ b/macos/coreimage/context.gen.go @@ -9,7 +9,6 @@ import ( "github.com/progrium/darwinkit/macos/corevideo" "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/macos/imageio" - "github.com/progrium/darwinkit/macos/iosurface" "github.com/progrium/darwinkit/macos/metal" "github.com/progrium/darwinkit/objc" ) @@ -24,38 +23,28 @@ type _ContextClass struct { // An interface definition for the [Context] class. type IContext interface { objc.IObject - RenderToIOSurfaceBoundsColorSpace(image IImage, surface iosurface.Ref, bounds coregraphics.Rect, colorSpace coregraphics.ColorSpaceRef) - ReclaimResources() - DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteOrientationOptions(image IImage, disparityImage IImage, portraitEffectsMatte IImage, orientation imageio.ImagePropertyOrientation, options foundation.Dictionary) Filter - RenderToMTLTextureCommandBufferBoundsColorSpace(image IImage, texture metal.PTexture, commandBuffer metal.PCommandBuffer, bounds coregraphics.Rect, colorSpace coregraphics.ColorSpaceRef) - RenderToMTLTextureObjectCommandBufferObjectBoundsColorSpace(image IImage, textureObject objc.IObject, commandBufferObject objc.IObject, bounds coregraphics.Rect, colorSpace coregraphics.ColorSpaceRef) - DepthBlurEffectFilterForImageURLOptions(url foundation.IURL, options foundation.Dictionary) Filter - WriteTIFFRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool + WriteJPEGRepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationGlassesMatteGainMapOrientationOptions(image IImage, disparityImage IImage, portraitEffectsMatte IImage, hairSemanticSegmentation IImage, glassesMatte IImage, gainMap IImage, orientation imageio.ImagePropertyOrientation, options foundation.Dictionary) Filter + RenderToCVPixelBuffer(image IImage, buffer corevideo.PixelBufferRef) + JPEGRepresentationOfImageColorSpaceOptions(image IImage, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte + ReclaimResources() + StartTaskToClearError(destination IRenderDestination, error unsafe.Pointer) RenderTask WritePNGRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool - WriteJPEGRepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool - StartTaskToRenderFromRectToDestinationAtPointError(image IImage, fromRect coregraphics.Rect, destination IRenderDestination, atPoint coregraphics.Point, error unsafe.Pointer) RenderTask - CreateCGImageFromRectFormatColorSpace(image IImage, fromRect coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef) coregraphics.ImageRef DepthBlurEffectFilterForImageDataOptions(data []byte, options foundation.Dictionary) Filter - StartTaskToClearError(destination IRenderDestination, error unsafe.Pointer) RenderTask - HEIFRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte - DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationOrientationOptions(image IImage, disparityImage IImage, portraitEffectsMatte IImage, hairSemanticSegmentation IImage, orientation imageio.ImagePropertyOrientation, options foundation.Dictionary) Filter - JPEGRepresentationOfImageColorSpaceOptions(image IImage, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte - TIFFRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte - CreateCGImageFromRect(image IImage, fromRect coregraphics.Rect) coregraphics.ImageRef + DepthBlurEffectFilterForImageURLOptions(url foundation.IURL, options foundation.Dictionary) Filter + PNGRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte CreateCGImageFromRectFormatColorSpaceDeferred(image IImage, fromRect coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef, deferred bool) coregraphics.ImageRef - RenderToCVPixelBuffer(image IImage, buffer corevideo.PixelBufferRef) + WriteHEIF10RepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool PrepareRenderFromRectToDestinationAtPointError(image IImage, fromRect coregraphics.Rect, destination IRenderDestination, atPoint coregraphics.Point, error unsafe.Pointer) bool - WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool - PNGRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte - RenderToCVPixelBufferBoundsColorSpace(image IImage, buffer corevideo.PixelBufferRef, bounds coregraphics.Rect, colorSpace coregraphics.ColorSpaceRef) - StartTaskToRenderToDestinationError(image IImage, destination IRenderDestination, error unsafe.Pointer) RenderTask ClearCaches() - WriteHEIF10RepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool HEIF10RepresentationOfImageColorSpaceOptionsError(image IImage, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) []byte - DrawImageInRectFromRect(image IImage, inRect coregraphics.Rect, fromRect coregraphics.Rect) - WorkingFormat() Format + HEIFRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte + StartTaskToRenderToDestinationError(image IImage, destination IRenderDestination, error unsafe.Pointer) RenderTask + WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool + TIFFRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte + WriteTIFFRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool WorkingColorSpace() coregraphics.ColorSpaceRef + WorkingFormat() Format } // An evaluation context for rendering image processing results and performing image analysis. [Full Topic] @@ -76,20 +65,6 @@ func (c_ Context) Init() Context { return rv } -func (c_ Context) InitWithOptions(options map[ContextOption]objc.IObject) Context { - rv := objc.Call[Context](c_, objc.Sel("initWithOptions:"), options) - return rv -} - -// Initializes a context without a specific rendering destination, using the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1438261-initwithoptions?language=objc -func NewContextWithOptions(options map[ContextOption]objc.IObject) Context { - instance := ContextClass.Alloc().InitWithOptions(options) - instance.Autorelease() - return instance -} - func (cc _ContextClass) Alloc() Context { rv := objc.Call[Context](cc, objc.Sel("alloc")) return rv @@ -105,176 +80,120 @@ func NewContext() Context { return ContextClass.New() } -// Renders a region of an image into an IOSurface object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437778-render?language=objc -func (c_ Context) RenderToIOSurfaceBoundsColorSpace(image IImage, surface iosurface.Ref, bounds coregraphics.Rect, colorSpace coregraphics.ColorSpaceRef) { - objc.Call[objc.Void](c_, objc.Sel("render:toIOSurface:bounds:colorSpace:"), image, surface, bounds, colorSpace) -} - -// Runs the garbage collector to reclaim any resources that the context no longer requires. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437967-reclaimresources?language=objc -func (c_ Context) ReclaimResources() { - objc.Call[objc.Void](c_, objc.Sel("reclaimResources")) -} - -// [Full Topic] +// Renders the image and exports the resulting image data as a file in JPEG format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3019315-depthblureffectfilterforimage?language=objc -func (c_ Context) DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteOrientationOptions(image IImage, disparityImage IImage, portraitEffectsMatte IImage, orientation imageio.ImagePropertyOrientation, options foundation.Dictionary) Filter { - rv := objc.Call[Filter](c_, objc.Sel("depthBlurEffectFilterForImage:disparityImage:portraitEffectsMatte:orientation:options:"), image, disparityImage, portraitEffectsMatte, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642218-writejpegrepresentationofimage?language=objc +func (c_ Context) WriteJPEGRepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("writeJPEGRepresentationOfImage:toURL:colorSpace:options:error:"), image, url, colorSpace, options, errorPtr) return rv } -// Creates a Core Image context from a Quartz context, using the specified options. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437864-contextwithcgcontext?language=objc -func (cc _ContextClass) ContextWithCGContextOptions(cgctx coregraphics.ContextRef, options map[ContextOption]objc.IObject) Context { - rv := objc.Call[Context](cc, objc.Sel("contextWithCGContext:options:"), cgctx, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3600105-depthblureffectfilterforimage?language=objc +func (c_ Context) DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationGlassesMatteGainMapOrientationOptions(image IImage, disparityImage IImage, portraitEffectsMatte IImage, hairSemanticSegmentation IImage, glassesMatte IImage, gainMap IImage, orientation imageio.ImagePropertyOrientation, options foundation.Dictionary) Filter { + rv := objc.Call[Filter](c_, objc.Sel("depthBlurEffectFilterForImage:disparityImage:portraitEffectsMatte:hairSemanticSegmentation:glassesMatte:gainMap:orientation:options:"), image, disparityImage, portraitEffectsMatte, hairSemanticSegmentation, glassesMatte, gainMap, orientation, options) return rv } -// Creates a Core Image context from a Quartz context, using the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437864-contextwithcgcontext?language=objc -func Context_ContextWithCGContextOptions(cgctx coregraphics.ContextRef, options map[ContextOption]objc.IObject) Context { - return ContextClass.ContextWithCGContextOptions(cgctx, options) -} - -// Renders a region of an image to a Metal texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1438026-render?language=objc -func (c_ Context) RenderToMTLTextureCommandBufferBoundsColorSpace(image IImage, texture metal.PTexture, commandBuffer metal.PCommandBuffer, bounds coregraphics.Rect, colorSpace coregraphics.ColorSpaceRef) { - po1 := objc.WrapAsProtocol("MTLTexture", texture) - po2 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("render:toMTLTexture:commandBuffer:bounds:colorSpace:"), image, po1, po2, bounds, colorSpace) -} - -// Renders a region of an image to a Metal texture. [Full Topic] +// Renders an image into a pixel buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1438026-render?language=objc -func (c_ Context) RenderToMTLTextureObjectCommandBufferObjectBoundsColorSpace(image IImage, textureObject objc.IObject, commandBufferObject objc.IObject, bounds coregraphics.Rect, colorSpace coregraphics.ColorSpaceRef) { - objc.Call[objc.Void](c_, objc.Sel("render:toMTLTexture:commandBuffer:bounds:colorSpace:"), image, textureObject, commandBufferObject, bounds, colorSpace) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437853-render?language=objc +func (c_ Context) RenderToCVPixelBuffer(image IImage, buffer corevideo.PixelBufferRef) { + objc.Call[objc.Void](c_, objc.Sel("render:toCVPixelBuffer:"), image, buffer) } -// Creates a Core Image context using the specified Metal device and options. [Full Topic] +// Renders the image and exports the resulting image data in JPEG format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437711-contextwithmtldevice?language=objc -func (cc _ContextClass) ContextWithMTLDeviceOptions(device metal.PDevice, options map[ContextOption]objc.IObject) Context { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[Context](cc, objc.Sel("contextWithMTLDevice:options:"), po0, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642214-jpegrepresentationofimage?language=objc +func (c_ Context) JPEGRepresentationOfImageColorSpaceOptions(image IImage, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte { + rv := objc.Call[[]byte](c_, objc.Sel("JPEGRepresentationOfImage:colorSpace:options:"), image, colorSpace, options) return rv } -// Creates a Core Image context using the specified Metal device and options. [Full Topic] +// Runs the garbage collector to reclaim any resources that the context no longer requires. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437711-contextwithmtldevice?language=objc -func Context_ContextWithMTLDeviceOptions(device metal.PDevice, options map[ContextOption]objc.IObject) Context { - return ContextClass.ContextWithMTLDeviceOptions(device, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437967-reclaimresources?language=objc +func (c_ Context) ReclaimResources() { + objc.Call[objc.Void](c_, objc.Sel("reclaimResources")) } -// [Full Topic] +// Fills the entire destination with black or clear depending on its alphaMode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3019316-depthblureffectfilterforimageurl?language=objc -func (c_ Context) DepthBlurEffectFilterForImageURLOptions(url foundation.IURL, options foundation.Dictionary) Filter { - rv := objc.Call[Filter](c_, objc.Sel("depthBlurEffectFilterForImageURL:options:"), url, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2875450-starttasktoclear?language=objc +func (c_ Context) StartTaskToClearError(destination IRenderDestination, error unsafe.Pointer) RenderTask { + rv := objc.Call[RenderTask](c_, objc.Sel("startTaskToClear:error:"), destination, error) return rv } -// Renders the image and exports the resulting image data as a file in TIFF format. [Full Topic] +// Renders the image and exports the resulting image data as a file in PNG format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642213-writetiffrepresentationofimage?language=objc -func (c_ Context) WriteTIFFRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("writeTIFFRepresentationOfImage:toURL:format:colorSpace:options:error:"), image, url, format, colorSpace, options, errorPtr) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2866197-writepngrepresentationofimage?language=objc +func (c_ Context) WritePNGRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("writePNGRepresentationOfImage:toURL:format:colorSpace:options:error:"), image, url, format, colorSpace, options, errorPtr) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3600105-depthblureffectfilterforimage?language=objc -func (c_ Context) DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationGlassesMatteGainMapOrientationOptions(image IImage, disparityImage IImage, portraitEffectsMatte IImage, hairSemanticSegmentation IImage, glassesMatte IImage, gainMap IImage, orientation imageio.ImagePropertyOrientation, options foundation.Dictionary) Filter { - rv := objc.Call[Filter](c_, objc.Sel("depthBlurEffectFilterForImage:disparityImage:portraitEffectsMatte:hairSemanticSegmentation:glassesMatte:gainMap:orientation:options:"), image, disparityImage, portraitEffectsMatte, hairSemanticSegmentation, glassesMatte, gainMap, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3020629-depthblureffectfilterforimagedat?language=objc +func (c_ Context) DepthBlurEffectFilterForImageDataOptions(data []byte, options foundation.Dictionary) Filter { + rv := objc.Call[Filter](c_, objc.Sel("depthBlurEffectFilterForImageData:options:"), data, options) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3365984-contextwithmtlcommandqueue?language=objc -func (cc _ContextClass) ContextWithMTLCommandQueue(commandQueue metal.PCommandQueue) Context { - po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) - rv := objc.Call[Context](cc, objc.Sel("contextWithMTLCommandQueue:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3019316-depthblureffectfilterforimageurl?language=objc +func (c_ Context) DepthBlurEffectFilterForImageURLOptions(url foundation.IURL, options foundation.Dictionary) Filter { + rv := objc.Call[Filter](c_, objc.Sel("depthBlurEffectFilterForImageURL:options:"), url, options) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3365984-contextwithmtlcommandqueue?language=objc -func Context_ContextWithMTLCommandQueue(commandQueue metal.PCommandQueue) Context { - return ContextClass.ContextWithMTLCommandQueue(commandQueue) -} - -// Renders the image and exports the resulting image data as a file in PNG format. [Full Topic] +// Renders the image and exports the resulting image data in PNG format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2866197-writepngrepresentationofimage?language=objc -func (c_ Context) WritePNGRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("writePNGRepresentationOfImage:toURL:format:colorSpace:options:error:"), image, url, format, colorSpace, options, errorPtr) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2866196-pngrepresentationofimage?language=objc +func (c_ Context) PNGRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte { + rv := objc.Call[[]byte](c_, objc.Sel("PNGRepresentationOfImage:format:colorSpace:options:"), image, format, colorSpace, options) return rv } -// Renders the image and exports the resulting image data as a file in JPEG format. [Full Topic] +// Creates a Quartz 2D image from a region of a Core Image image object with deferred rendering. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642218-writejpegrepresentationofimage?language=objc -func (c_ Context) WriteJPEGRepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("writeJPEGRepresentationOfImage:toURL:colorSpace:options:error:"), image, url, colorSpace, options, errorPtr) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642211-createcgimage?language=objc +func (c_ Context) CreateCGImageFromRectFormatColorSpaceDeferred(image IImage, fromRect coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef, deferred bool) coregraphics.ImageRef { + rv := objc.Call[coregraphics.ImageRef](c_, objc.Sel("createCGImage:fromRect:format:colorSpace:deferred:"), image, fromRect, format, colorSpace, deferred) return rv } -// Creates a Core Image context using the specified Metal device. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437609-contextwithmtldevice?language=objc -func (cc _ContextClass) ContextWithMTLDevice(device metal.PDevice) Context { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[Context](cc, objc.Sel("contextWithMTLDevice:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3762900-writeheif10representationofimage?language=objc +func (c_ Context) WriteHEIF10RepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("writeHEIF10RepresentationOfImage:toURL:colorSpace:options:error:"), image, url, colorSpace, options, errorPtr) return rv } -// Creates a Core Image context using the specified Metal device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437609-contextwithmtldevice?language=objc -func Context_ContextWithMTLDevice(device metal.PDevice) Context { - return ContextClass.ContextWithMTLDevice(device) -} - -// Renders a portion of an image to a point in the destination. [Full Topic] +// An optional call to warm up a CIContext so that subsequent calls to render with the same arguments run more efficiently. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2875448-starttasktorender?language=objc -func (c_ Context) StartTaskToRenderFromRectToDestinationAtPointError(image IImage, fromRect coregraphics.Rect, destination IRenderDestination, atPoint coregraphics.Point, error unsafe.Pointer) RenderTask { - rv := objc.Call[RenderTask](c_, objc.Sel("startTaskToRender:fromRect:toDestination:atPoint:error:"), image, fromRect, destination, atPoint, error) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2875428-preparerender?language=objc +func (c_ Context) PrepareRenderFromRectToDestinationAtPointError(image IImage, fromRect coregraphics.Rect, destination IRenderDestination, atPoint coregraphics.Point, error unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("prepareRender:fromRect:toDestination:atPoint:error:"), image, fromRect, destination, atPoint, error) return rv } -// Creates a Quartz 2D image from a region of a Core Image image object. [Full Topic] +// Frees any cached data, such as temporary images, associated with the context and runs the garbage collector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437978-createcgimage?language=objc -func (c_ Context) CreateCGImageFromRectFormatColorSpace(image IImage, fromRect coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef) coregraphics.ImageRef { - rv := objc.Call[coregraphics.ImageRef](c_, objc.Sel("createCGImage:fromRect:format:colorSpace:"), image, fromRect, format, colorSpace) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437790-clearcaches?language=objc +func (c_ Context) ClearCaches() { + objc.Call[objc.Void](c_, objc.Sel("clearCaches")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3020629-depthblureffectfilterforimagedat?language=objc -func (c_ Context) DepthBlurEffectFilterForImageDataOptions(data []byte, options foundation.Dictionary) Filter { - rv := objc.Call[Filter](c_, objc.Sel("depthBlurEffectFilterForImageData:options:"), data, options) - return rv -} - -// Fills the entire destination with black or clear depending on its [coreimage/cirenderdestination/alphamode]. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2875450-starttasktoclear?language=objc -func (c_ Context) StartTaskToClearError(destination IRenderDestination, error unsafe.Pointer) RenderTask { - rv := objc.Call[RenderTask](c_, objc.Sel("startTaskToClear:error:"), destination, error) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3762899-heif10representationofimage?language=objc +func (c_ Context) HEIF10RepresentationOfImageColorSpaceOptionsError(image IImage, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) []byte { + rv := objc.Call[[]byte](c_, objc.Sel("HEIF10RepresentationOfImage:colorSpace:options:error:"), image, colorSpace, options, errorPtr) return rv } @@ -286,91 +205,59 @@ func (c_ Context) HEIFRepresentationOfImageFormatColorSpaceOptions(image IImage, return rv } -// [Full Topic] +// Creates a context without a specific rendering destination, using default options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3228045-depthblureffectfilterforimage?language=objc -func (c_ Context) DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationOrientationOptions(image IImage, disparityImage IImage, portraitEffectsMatte IImage, hairSemanticSegmentation IImage, orientation imageio.ImagePropertyOrientation, options foundation.Dictionary) Filter { - rv := objc.Call[Filter](c_, objc.Sel("depthBlurEffectFilterForImage:disparityImage:portraitEffectsMatte:hairSemanticSegmentation:orientation:options:"), image, disparityImage, portraitEffectsMatte, hairSemanticSegmentation, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642219-context?language=objc +func (cc _ContextClass) Context() Context { + rv := objc.Call[Context](cc, objc.Sel("context")) return rv } -// Renders the image and exports the resulting image data in JPEG format. [Full Topic] +// Creates a context without a specific rendering destination, using default options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642214-jpegrepresentationofimage?language=objc -func (c_ Context) JPEGRepresentationOfImageColorSpaceOptions(image IImage, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte { - rv := objc.Call[[]byte](c_, objc.Sel("JPEGRepresentationOfImage:colorSpace:options:"), image, colorSpace, options) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642219-context?language=objc +func Context_Context() Context { + return ContextClass.Context() } -// Renders the image and exports the resulting image data in TIFF format. [Full Topic] +// Renders an image to a destination so that point (0, 0) of the image maps to point (0, 0) of the destination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642220-tiffrepresentationofimage?language=objc -func (c_ Context) TIFFRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte { - rv := objc.Call[[]byte](c_, objc.Sel("TIFFRepresentationOfImage:format:colorSpace:options:"), image, format, colorSpace, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2875429-starttasktorender?language=objc +func (c_ Context) StartTaskToRenderToDestinationError(image IImage, destination IRenderDestination, error unsafe.Pointer) RenderTask { + rv := objc.Call[RenderTask](c_, objc.Sel("startTaskToRender:toDestination:error:"), image, destination, error) return rv } -// Creates a Quartz 2D image from a region of a Core Image image object. [Full Topic] +// Renders the image and exports the resulting image data as a file in HEIF format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437784-createcgimage?language=objc -func (c_ Context) CreateCGImageFromRect(image IImage, fromRect coregraphics.Rect) coregraphics.ImageRef { - rv := objc.Call[coregraphics.ImageRef](c_, objc.Sel("createCGImage:fromRect:"), image, fromRect) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2902266-writeheifrepresentationofimage?language=objc +func (c_ Context) WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("writeHEIFRepresentationOfImage:toURL:format:colorSpace:options:error:"), image, url, format, colorSpace, options, errorPtr) return rv } -// Creates a Quartz 2D image from a region of a Core Image image object with deferred rendering. [Full Topic] +// Renders the image and exports the resulting image data in TIFF format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642211-createcgimage?language=objc -func (c_ Context) CreateCGImageFromRectFormatColorSpaceDeferred(image IImage, fromRect coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef, deferred bool) coregraphics.ImageRef { - rv := objc.Call[coregraphics.ImageRef](c_, objc.Sel("createCGImage:fromRect:format:colorSpace:deferred:"), image, fromRect, format, colorSpace, deferred) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642220-tiffrepresentationofimage?language=objc +func (c_ Context) TIFFRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte { + rv := objc.Call[[]byte](c_, objc.Sel("TIFFRepresentationOfImage:format:colorSpace:options:"), image, format, colorSpace, options) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3365985-contextwithmtlcommandqueue?language=objc -func (cc _ContextClass) ContextWithMTLCommandQueueOptions(commandQueue metal.PCommandQueue, options map[ContextOption]objc.IObject) Context { +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3365984-contextwithmtlcommandqueue?language=objc +func (cc _ContextClass) ContextWithMTLCommandQueue(commandQueue metal.PCommandQueue) Context { po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) - rv := objc.Call[Context](cc, objc.Sel("contextWithMTLCommandQueue:options:"), po0, options) + rv := objc.Call[Context](cc, objc.Sel("contextWithMTLCommandQueue:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3365985-contextwithmtlcommandqueue?language=objc -func Context_ContextWithMTLCommandQueueOptions(commandQueue metal.PCommandQueue, options map[ContextOption]objc.IObject) Context { - return ContextClass.ContextWithMTLCommandQueueOptions(commandQueue, options) -} - -// Renders an image into a pixel buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437853-render?language=objc -func (c_ Context) RenderToCVPixelBuffer(image IImage, buffer corevideo.PixelBufferRef) { - objc.Call[objc.Void](c_, objc.Sel("render:toCVPixelBuffer:"), image, buffer) -} - -// An optional call to warm up a CIContext so that subsequent calls to render with the same arguments run more efficiently. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2875428-preparerender?language=objc -func (c_ Context) PrepareRenderFromRectToDestinationAtPointError(image IImage, fromRect coregraphics.Rect, destination IRenderDestination, atPoint coregraphics.Point, error unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("prepareRender:fromRect:toDestination:atPoint:error:"), image, fromRect, destination, atPoint, error) - return rv -} - -// Renders the image and exports the resulting image data as a file in HEIF format. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2902266-writeheifrepresentationofimage?language=objc -func (c_ Context) WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("writeHEIFRepresentationOfImage:toURL:format:colorSpace:options:error:"), image, url, format, colorSpace, options, errorPtr) - return rv -} - -// Renders the image and exports the resulting image data in PNG format. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2866196-pngrepresentationofimage?language=objc -func (c_ Context) PNGRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte { - rv := objc.Call[[]byte](c_, objc.Sel("PNGRepresentationOfImage:format:colorSpace:options:"), image, format, colorSpace, options) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3365984-contextwithmtlcommandqueue?language=objc +func Context_ContextWithMTLCommandQueue(commandQueue metal.PCommandQueue) Context { + return ContextClass.ContextWithMTLCommandQueue(commandQueue) } // Returns the number of GPUs not currently driving a display. [Full Topic] @@ -388,64 +275,66 @@ func Context_OfflineGPUCount() int { return ContextClass.OfflineGPUCount() } -// Renders a region of an image into a pixel buffer. [Full Topic] +// Renders the image and exports the resulting image data as a file in TIFF format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437835-render?language=objc -func (c_ Context) RenderToCVPixelBufferBoundsColorSpace(image IImage, buffer corevideo.PixelBufferRef, bounds coregraphics.Rect, colorSpace coregraphics.ColorSpaceRef) { - objc.Call[objc.Void](c_, objc.Sel("render:toCVPixelBuffer:bounds:colorSpace:"), image, buffer, bounds, colorSpace) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642213-writetiffrepresentationofimage?language=objc +func (c_ Context) WriteTIFFRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("writeTIFFRepresentationOfImage:toURL:format:colorSpace:options:error:"), image, url, format, colorSpace, options, errorPtr) + return rv } -// Renders an image to a destination so that point (0, 0) of the image maps to point (0, 0) of the destination. [Full Topic] +// Creates a Core Image context from a Quartz context, using the specified options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2875429-starttasktorender?language=objc -func (c_ Context) StartTaskToRenderToDestinationError(image IImage, destination IRenderDestination, error unsafe.Pointer) RenderTask { - rv := objc.Call[RenderTask](c_, objc.Sel("startTaskToRender:toDestination:error:"), image, destination, error) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437864-contextwithcgcontext?language=objc +func (cc _ContextClass) ContextWithCGContextOptions(cgctx coregraphics.ContextRef, options map[ContextOption]objc.IObject) Context { + rv := objc.Call[Context](cc, objc.Sel("contextWithCGContext:options:"), cgctx, options) return rv } -// Frees any cached data, such as temporary images, associated with the context and runs the garbage collector. [Full Topic] +// Creates a Core Image context from a Quartz context, using the specified options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437790-clearcaches?language=objc -func (c_ Context) ClearCaches() { - objc.Call[objc.Void](c_, objc.Sel("clearCaches")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437864-contextwithcgcontext?language=objc +func Context_ContextWithCGContextOptions(cgctx coregraphics.ContextRef, options map[ContextOption]objc.IObject) Context { + return ContextClass.ContextWithCGContextOptions(cgctx, options) } -// [Full Topic] +// Initializes a context without a specific rendering destination, using the specified options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3762900-writeheif10representationofimage?language=objc -func (c_ Context) WriteHEIF10RepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("writeHEIF10RepresentationOfImage:toURL:colorSpace:options:error:"), image, url, colorSpace, options, errorPtr) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1438261-initwithoptions?language=objc +func (cc _ContextClass) ContextWithOptions(options map[ContextOption]objc.IObject) Context { + rv := objc.Call[Context](cc, objc.Sel("contextWithOptions:"), options) return rv } -// [Full Topic] +// Initializes a context without a specific rendering destination, using the specified options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/3762899-heif10representationofimage?language=objc -func (c_ Context) HEIF10RepresentationOfImageColorSpaceOptionsError(image IImage, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr unsafe.Pointer) []byte { - rv := objc.Call[[]byte](c_, objc.Sel("HEIF10RepresentationOfImage:colorSpace:options:error:"), image, colorSpace, options, errorPtr) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1438261-initwithoptions?language=objc +func Context_ContextWithOptions(options map[ContextOption]objc.IObject) Context { + return ContextClass.ContextWithOptions(options) } -// Creates a context without a specific rendering destination, using default options. [Full Topic] +// Creates a Core Image context using the specified Metal device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642219-context?language=objc -func (cc _ContextClass) Context() Context { - rv := objc.Call[Context](cc, objc.Sel("context")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437609-contextwithmtldevice?language=objc +func (cc _ContextClass) ContextWithMTLDevice(device metal.PDevice) Context { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[Context](cc, objc.Sel("contextWithMTLDevice:"), po0) return rv } -// Creates a context without a specific rendering destination, using default options. [Full Topic] +// Creates a Core Image context using the specified Metal device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642219-context?language=objc -func Context_Context() Context { - return ContextClass.Context() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437609-contextwithmtldevice?language=objc +func Context_ContextWithMTLDevice(device metal.PDevice) Context { + return ContextClass.ContextWithMTLDevice(device) } -// Renders a region of an image to a rectangle in the context destination. [Full Topic] +// The working color space of the Core Image context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1437786-drawimage?language=objc -func (c_ Context) DrawImageInRectFromRect(image IImage, inRect coregraphics.Rect, fromRect coregraphics.Rect) { - objc.Call[objc.Void](c_, objc.Sel("drawImage:inRect:fromRect:"), image, inRect, fromRect) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1438061-workingcolorspace?language=objc +func (c_ Context) WorkingColorSpace() coregraphics.ColorSpaceRef { + rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("workingColorSpace")) + return rv } // The working pixel format of the Core Image context. [Full Topic] @@ -455,11 +344,3 @@ func (c_ Context) WorkingFormat() Format { rv := objc.Call[Format](c_, objc.Sel("workingFormat")) return rv } - -// The working color space of the Core Image context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1438061-workingcolorspace?language=objc -func (c_ Context) WorkingColorSpace() coregraphics.ColorSpaceRef { - rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("workingColorSpace")) - return rv -} diff --git a/macos/coreimage/convolution_protocol.gen.go b/macos/coreimage/convolution_protocol.gen.go index bd52c26f..5393cb7b 100644 --- a/macos/coreimage/convolution_protocol.gen.go +++ b/macos/coreimage/convolution_protocol.gen.go @@ -10,6 +10,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution?language=objc type PConvolution interface { + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetWeights(value Vector) HasSetWeights() bool @@ -25,14 +33,6 @@ type PConvolution interface { // optional Bias() float32 HasBias() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool } // ensure impl type implements protocol interface @@ -43,6 +43,29 @@ type ConvolutionObject struct { objc.Object } +func (c_ ConvolutionObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228186-inputimage?language=objc +func (c_ ConvolutionObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) +} + +func (c_ ConvolutionObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228186-inputimage?language=objc +func (c_ ConvolutionObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) + return rv +} + func (c_ ConvolutionObject) HasSetWeights() bool { return c_.RespondsToSelector(objc.Sel("setWeights:")) } @@ -88,26 +111,3 @@ func (c_ ConvolutionObject) Bias() float32 { rv := objc.Call[float32](c_, objc.Sel("bias")) return rv } - -func (c_ ConvolutionObject) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228186-inputimage?language=objc -func (c_ ConvolutionObject) SetInputImage(value Image) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value) -} - -func (c_ ConvolutionObject) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228186-inputimage?language=objc -func (c_ ConvolutionObject) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) - return rv -} diff --git a/macos/coreimage/copy_machine_transition_protocol.gen.go b/macos/coreimage/copy_machine_transition_protocol.gen.go index 5c72a4aa..97508926 100644 --- a/macos/coreimage/copy_machine_transition_protocol.gen.go +++ b/macos/coreimage/copy_machine_transition_protocol.gen.go @@ -20,12 +20,12 @@ type PCopyMachineTransition interface { HasColor() bool // optional - SetExtent(value coregraphics.Rect) - HasSetExtent() bool + SetWidth(value float32) + HasSetWidth() bool // optional - Extent() coregraphics.Rect - HasExtent() bool + Width() float32 + HasWidth() bool // optional SetOpacity(value float32) @@ -36,12 +36,12 @@ type PCopyMachineTransition interface { HasOpacity() bool // optional - SetWidth(value float32) - HasSetWidth() bool + SetExtent(value coregraphics.Rect) + HasSetExtent() bool // optional - Width() float32 - HasWidth() bool + Extent() coregraphics.Rect + HasExtent() bool // optional SetAngle(value float32) @@ -83,26 +83,26 @@ func (c_ CopyMachineTransitionObject) Color() Color { return rv } -func (c_ CopyMachineTransitionObject) HasSetExtent() bool { - return c_.RespondsToSelector(objc.Sel("setExtent:")) +func (c_ CopyMachineTransitionObject) HasSetWidth() bool { + return c_.RespondsToSelector(objc.Sel("setWidth:")) } -// A rectangle that defines the extent of the effect. [Full Topic] +// The width of the copier light. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228191-extent?language=objc -func (c_ CopyMachineTransitionObject) SetExtent(value coregraphics.Rect) { - objc.Call[objc.Void](c_, objc.Sel("setExtent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228193-width?language=objc +func (c_ CopyMachineTransitionObject) SetWidth(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value) } -func (c_ CopyMachineTransitionObject) HasExtent() bool { - return c_.RespondsToSelector(objc.Sel("extent")) +func (c_ CopyMachineTransitionObject) HasWidth() bool { + return c_.RespondsToSelector(objc.Sel("width")) } -// A rectangle that defines the extent of the effect. [Full Topic] +// The width of the copier light. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228191-extent?language=objc -func (c_ CopyMachineTransitionObject) Extent() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](c_, objc.Sel("extent")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228193-width?language=objc +func (c_ CopyMachineTransitionObject) Width() float32 { + rv := objc.Call[float32](c_, objc.Sel("width")) return rv } @@ -129,26 +129,26 @@ func (c_ CopyMachineTransitionObject) Opacity() float32 { return rv } -func (c_ CopyMachineTransitionObject) HasSetWidth() bool { - return c_.RespondsToSelector(objc.Sel("setWidth:")) +func (c_ CopyMachineTransitionObject) HasSetExtent() bool { + return c_.RespondsToSelector(objc.Sel("setExtent:")) } -// The width of the copier light. [Full Topic] +// A rectangle that defines the extent of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228193-width?language=objc -func (c_ CopyMachineTransitionObject) SetWidth(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228191-extent?language=objc +func (c_ CopyMachineTransitionObject) SetExtent(value coregraphics.Rect) { + objc.Call[objc.Void](c_, objc.Sel("setExtent:"), value) } -func (c_ CopyMachineTransitionObject) HasWidth() bool { - return c_.RespondsToSelector(objc.Sel("width")) +func (c_ CopyMachineTransitionObject) HasExtent() bool { + return c_.RespondsToSelector(objc.Sel("extent")) } -// The width of the copier light. [Full Topic] +// A rectangle that defines the extent of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228193-width?language=objc -func (c_ CopyMachineTransitionObject) Width() float32 { - rv := objc.Call[float32](c_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228191-extent?language=objc +func (c_ CopyMachineTransitionObject) Extent() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](c_, objc.Sel("extent")) return rv } diff --git a/macos/coreimage/core_ml_model_protocol.gen.go b/macos/coreimage/core_ml_model_protocol.gen.go index 726556d2..f6906841 100644 --- a/macos/coreimage/core_ml_model_protocol.gen.go +++ b/macos/coreimage/core_ml_model_protocol.gen.go @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel?language=objc type PCoreMLModel interface { - // optional - SetSoftmaxNormalization(value bool) - HasSetSoftmaxNormalization() bool - - // optional - SoftmaxNormalization() bool - HasSoftmaxNormalization() bool - - // optional - SetHeadIndex(value float32) - HasSetHeadIndex() bool - - // optional - HeadIndex() float32 - HasHeadIndex() bool - // optional SetModel(value coreml.Model) HasSetModel() bool @@ -42,6 +26,22 @@ type PCoreMLModel interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetHeadIndex(value float32) + HasSetHeadIndex() bool + + // optional + HeadIndex() float32 + HasHeadIndex() bool + + // optional + SetSoftmaxNormalization(value bool) + HasSetSoftmaxNormalization() bool + + // optional + SoftmaxNormalization() bool + HasSoftmaxNormalization() bool } // ensure impl type implements protocol interface @@ -52,52 +52,6 @@ type CoreMLModelObject struct { objc.Object } -func (c_ CoreMLModelObject) HasSetSoftmaxNormalization() bool { - return c_.RespondsToSelector(objc.Sel("setSoftmaxNormalization:")) -} - -// A Boolean value that specifies whether to apply Softmax normalization to the output of the model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228198-softmaxnormalization?language=objc -func (c_ CoreMLModelObject) SetSoftmaxNormalization(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setSoftmaxNormalization:"), value) -} - -func (c_ CoreMLModelObject) HasSoftmaxNormalization() bool { - return c_.RespondsToSelector(objc.Sel("softmaxNormalization")) -} - -// A Boolean value that specifies whether to apply Softmax normalization to the output of the model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228198-softmaxnormalization?language=objc -func (c_ CoreMLModelObject) SoftmaxNormalization() bool { - rv := objc.Call[bool](c_, objc.Sel("softmaxNormalization")) - return rv -} - -func (c_ CoreMLModelObject) HasSetHeadIndex() bool { - return c_.RespondsToSelector(objc.Sel("setHeadIndex:")) -} - -// A number that specifies which output of a multihead Core ML model applies the effect on the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228195-headindex?language=objc -func (c_ CoreMLModelObject) SetHeadIndex(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setHeadIndex:"), value) -} - -func (c_ CoreMLModelObject) HasHeadIndex() bool { - return c_.RespondsToSelector(objc.Sel("headIndex")) -} - -// A number that specifies which output of a multihead Core ML model applies the effect on the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228195-headindex?language=objc -func (c_ CoreMLModelObject) HeadIndex() float32 { - rv := objc.Call[float32](c_, objc.Sel("headIndex")) - return rv -} - func (c_ CoreMLModelObject) HasSetModel() bool { return c_.RespondsToSelector(objc.Sel("setModel:")) } @@ -143,3 +97,49 @@ func (c_ CoreMLModelObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } + +func (c_ CoreMLModelObject) HasSetHeadIndex() bool { + return c_.RespondsToSelector(objc.Sel("setHeadIndex:")) +} + +// A number that specifies which output of a multihead Core ML model applies the effect on the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228195-headindex?language=objc +func (c_ CoreMLModelObject) SetHeadIndex(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setHeadIndex:"), value) +} + +func (c_ CoreMLModelObject) HasHeadIndex() bool { + return c_.RespondsToSelector(objc.Sel("headIndex")) +} + +// A number that specifies which output of a multihead Core ML model applies the effect on the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228195-headindex?language=objc +func (c_ CoreMLModelObject) HeadIndex() float32 { + rv := objc.Call[float32](c_, objc.Sel("headIndex")) + return rv +} + +func (c_ CoreMLModelObject) HasSetSoftmaxNormalization() bool { + return c_.RespondsToSelector(objc.Sel("setSoftmaxNormalization:")) +} + +// A Boolean value that specifies whether to apply Softmax normalization to the output of the model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228198-softmaxnormalization?language=objc +func (c_ CoreMLModelObject) SetSoftmaxNormalization(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSoftmaxNormalization:"), value) +} + +func (c_ CoreMLModelObject) HasSoftmaxNormalization() bool { + return c_.RespondsToSelector(objc.Sel("softmaxNormalization")) +} + +// A Boolean value that specifies whether to apply Softmax normalization to the output of the model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228198-softmaxnormalization?language=objc +func (c_ CoreMLModelObject) SoftmaxNormalization() bool { + rv := objc.Call[bool](c_, objc.Sel("softmaxNormalization")) + return rv +} diff --git a/macos/coreimage/crystallize_protocol.gen.go b/macos/coreimage/crystallize_protocol.gen.go index 61de3f02..41ffbc78 100644 --- a/macos/coreimage/crystallize_protocol.gen.go +++ b/macos/coreimage/crystallize_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize?language=objc type PCrystallize interface { - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -34,6 +26,14 @@ type PCrystallize interface { // optional Radius() float32 HasRadius() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -44,29 +44,6 @@ type CrystallizeObject struct { objc.Object } -func (c_ CrystallizeObject) HasSetCenter() bool { - return c_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The center of the effect as x and y coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228200-center?language=objc -func (c_ CrystallizeObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) -} - -func (c_ CrystallizeObject) HasCenter() bool { - return c_.RespondsToSelector(objc.Sel("center")) -} - -// The center of the effect as x and y coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228200-center?language=objc -func (c_ CrystallizeObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) - return rv -} - func (c_ CrystallizeObject) HasSetInputImage() bool { return c_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -112,3 +89,26 @@ func (c_ CrystallizeObject) Radius() float32 { rv := objc.Call[float32](c_, objc.Sel("radius")) return rv } + +func (c_ CrystallizeObject) HasSetCenter() bool { + return c_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The center of the effect as x and y coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228200-center?language=objc +func (c_ CrystallizeObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) +} + +func (c_ CrystallizeObject) HasCenter() bool { + return c_.RespondsToSelector(objc.Sel("center")) +} + +// The center of the effect as x and y coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228200-center?language=objc +func (c_ CrystallizeObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/depth_of_field_protocol.gen.go b/macos/coreimage/depth_of_field_protocol.gen.go index 6316b5a7..2ee55557 100644 --- a/macos/coreimage/depth_of_field_protocol.gen.go +++ b/macos/coreimage/depth_of_field_protocol.gen.go @@ -12,36 +12,28 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield?language=objc type PDepthOfField interface { // optional - SetSaturation(value float32) - HasSetSaturation() bool - - // optional - Saturation() float32 - HasSaturation() bool - - // optional - SetPoint1(value coregraphics.Point) - HasSetPoint1() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Point1() coregraphics.Point - HasPoint1() bool + InputImage() Image + HasInputImage() bool // optional - SetUnsharpMaskRadius(value float32) - HasSetUnsharpMaskRadius() bool + SetSaturation(value float32) + HasSetSaturation() bool // optional - UnsharpMaskRadius() float32 - HasUnsharpMaskRadius() bool + Saturation() float32 + HasSaturation() bool // optional - SetPoint0(value coregraphics.Point) - HasSetPoint0() bool + SetUnsharpMaskIntensity(value float32) + HasSetUnsharpMaskIntensity() bool // optional - Point0() coregraphics.Point - HasPoint0() bool + UnsharpMaskIntensity() float32 + HasUnsharpMaskIntensity() bool // optional SetRadius(value float32) @@ -52,20 +44,28 @@ type PDepthOfField interface { HasRadius() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetPoint1(value coregraphics.Point) + HasSetPoint1() bool // optional - InputImage() Image - HasInputImage() bool + Point1() coregraphics.Point + HasPoint1() bool // optional - SetUnsharpMaskIntensity(value float32) - HasSetUnsharpMaskIntensity() bool + SetPoint0(value coregraphics.Point) + HasSetPoint0() bool // optional - UnsharpMaskIntensity() float32 - HasUnsharpMaskIntensity() bool + Point0() coregraphics.Point + HasPoint0() bool + + // optional + SetUnsharpMaskRadius(value float32) + HasSetUnsharpMaskRadius() bool + + // optional + UnsharpMaskRadius() float32 + HasUnsharpMaskRadius() bool } // ensure impl type implements protocol interface @@ -76,6 +76,29 @@ type DepthOfFieldObject struct { objc.Object } +func (d_ DepthOfFieldObject) HasSetInputImage() bool { + return d_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228204-inputimage?language=objc +func (d_ DepthOfFieldObject) SetInputImage(value Image) { + objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), value) +} + +func (d_ DepthOfFieldObject) HasInputImage() bool { + return d_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228204-inputimage?language=objc +func (d_ DepthOfFieldObject) InputImage() Image { + rv := objc.Call[Image](d_, objc.Sel("inputImage")) + return rv +} + func (d_ DepthOfFieldObject) HasSetSaturation() bool { return d_.RespondsToSelector(objc.Sel("setSaturation:")) } @@ -99,6 +122,52 @@ func (d_ DepthOfFieldObject) Saturation() float32 { return rv } +func (d_ DepthOfFieldObject) HasSetUnsharpMaskIntensity() bool { + return d_.RespondsToSelector(objc.Sel("setUnsharpMaskIntensity:")) +} + +// The intensity of the unsharp mask effect applied to the in-focus area. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228209-unsharpmaskintensity?language=objc +func (d_ DepthOfFieldObject) SetUnsharpMaskIntensity(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setUnsharpMaskIntensity:"), value) +} + +func (d_ DepthOfFieldObject) HasUnsharpMaskIntensity() bool { + return d_.RespondsToSelector(objc.Sel("unsharpMaskIntensity")) +} + +// The intensity of the unsharp mask effect applied to the in-focus area. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228209-unsharpmaskintensity?language=objc +func (d_ DepthOfFieldObject) UnsharpMaskIntensity() float32 { + rv := objc.Call[float32](d_, objc.Sel("unsharpMaskIntensity")) + return rv +} + +func (d_ DepthOfFieldObject) HasSetRadius() bool { + return d_.RespondsToSelector(objc.Sel("setRadius:")) +} + +// The distance from the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228207-radius?language=objc +func (d_ DepthOfFieldObject) SetRadius(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setRadius:"), value) +} + +func (d_ DepthOfFieldObject) HasRadius() bool { + return d_.RespondsToSelector(objc.Sel("radius")) +} + +// The distance from the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228207-radius?language=objc +func (d_ DepthOfFieldObject) Radius() float32 { + rv := objc.Call[float32](d_, objc.Sel("radius")) + return rv +} + func (d_ DepthOfFieldObject) HasSetPoint1() bool { return d_.RespondsToSelector(objc.Sel("setPoint1:")) } @@ -122,29 +191,6 @@ func (d_ DepthOfFieldObject) Point1() coregraphics.Point { return rv } -func (d_ DepthOfFieldObject) HasSetUnsharpMaskRadius() bool { - return d_.RespondsToSelector(objc.Sel("setUnsharpMaskRadius:")) -} - -// The radius of the unsharp mask effect applied to the in-focus area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228210-unsharpmaskradius?language=objc -func (d_ DepthOfFieldObject) SetUnsharpMaskRadius(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setUnsharpMaskRadius:"), value) -} - -func (d_ DepthOfFieldObject) HasUnsharpMaskRadius() bool { - return d_.RespondsToSelector(objc.Sel("unsharpMaskRadius")) -} - -// The radius of the unsharp mask effect applied to the in-focus area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228210-unsharpmaskradius?language=objc -func (d_ DepthOfFieldObject) UnsharpMaskRadius() float32 { - rv := objc.Call[float32](d_, objc.Sel("unsharpMaskRadius")) - return rv -} - func (d_ DepthOfFieldObject) HasSetPoint0() bool { return d_.RespondsToSelector(objc.Sel("setPoint0:")) } @@ -168,71 +214,25 @@ func (d_ DepthOfFieldObject) Point0() coregraphics.Point { return rv } -func (d_ DepthOfFieldObject) HasSetRadius() bool { - return d_.RespondsToSelector(objc.Sel("setRadius:")) -} - -// The distance from the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228207-radius?language=objc -func (d_ DepthOfFieldObject) SetRadius(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setRadius:"), value) -} - -func (d_ DepthOfFieldObject) HasRadius() bool { - return d_.RespondsToSelector(objc.Sel("radius")) -} - -// The distance from the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228207-radius?language=objc -func (d_ DepthOfFieldObject) Radius() float32 { - rv := objc.Call[float32](d_, objc.Sel("radius")) - return rv -} - -func (d_ DepthOfFieldObject) HasSetInputImage() bool { - return d_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228204-inputimage?language=objc -func (d_ DepthOfFieldObject) SetInputImage(value Image) { - objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), value) -} - -func (d_ DepthOfFieldObject) HasInputImage() bool { - return d_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228204-inputimage?language=objc -func (d_ DepthOfFieldObject) InputImage() Image { - rv := objc.Call[Image](d_, objc.Sel("inputImage")) - return rv -} - -func (d_ DepthOfFieldObject) HasSetUnsharpMaskIntensity() bool { - return d_.RespondsToSelector(objc.Sel("setUnsharpMaskIntensity:")) +func (d_ DepthOfFieldObject) HasSetUnsharpMaskRadius() bool { + return d_.RespondsToSelector(objc.Sel("setUnsharpMaskRadius:")) } -// The intensity of the unsharp mask effect applied to the in-focus area. [Full Topic] +// The radius of the unsharp mask effect applied to the in-focus area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228209-unsharpmaskintensity?language=objc -func (d_ DepthOfFieldObject) SetUnsharpMaskIntensity(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setUnsharpMaskIntensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228210-unsharpmaskradius?language=objc +func (d_ DepthOfFieldObject) SetUnsharpMaskRadius(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setUnsharpMaskRadius:"), value) } -func (d_ DepthOfFieldObject) HasUnsharpMaskIntensity() bool { - return d_.RespondsToSelector(objc.Sel("unsharpMaskIntensity")) +func (d_ DepthOfFieldObject) HasUnsharpMaskRadius() bool { + return d_.RespondsToSelector(objc.Sel("unsharpMaskRadius")) } -// The intensity of the unsharp mask effect applied to the in-focus area. [Full Topic] +// The radius of the unsharp mask effect applied to the in-focus area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228209-unsharpmaskintensity?language=objc -func (d_ DepthOfFieldObject) UnsharpMaskIntensity() float32 { - rv := objc.Call[float32](d_, objc.Sel("unsharpMaskIntensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228210-unsharpmaskradius?language=objc +func (d_ DepthOfFieldObject) UnsharpMaskRadius() float32 { + rv := objc.Call[float32](d_, objc.Sel("unsharpMaskRadius")) return rv } diff --git a/macos/coreimage/detector.gen.go b/macos/coreimage/detector.gen.go index 8e575e65..cb59e21c 100644 --- a/macos/coreimage/detector.gen.go +++ b/macos/coreimage/detector.gen.go @@ -19,7 +19,6 @@ type _DetectorClass struct { type IDetector interface { objc.IObject FeaturesInImage(image IImage) []Feature - FeaturesInImageOptions(image IImage, options map[string]objc.IObject) []Feature } // An image processor that identifies notable features (such as faces and barcodes) in a still image or video. [Full Topic] @@ -55,6 +54,14 @@ func (d_ Detector) Init() Detector { return rv } +// Searches for features in an image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidetector/1438049-featuresinimage?language=objc +func (d_ Detector) FeaturesInImage(image IImage) []Feature { + rv := objc.Call[[]Feature](d_, objc.Sel("featuresInImage:"), image) + return rv +} + // Creates and returns a configured detector. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidetector/1437884-detectoroftype?language=objc @@ -69,19 +76,3 @@ func (dc _DetectorClass) DetectorOfTypeContextOptions(type_ string, context ICon func Detector_DetectorOfTypeContextOptions(type_ string, context IContext, options map[string]objc.IObject) Detector { return DetectorClass.DetectorOfTypeContextOptions(type_, context, options) } - -// Searches for features in an image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidetector/1438049-featuresinimage?language=objc -func (d_ Detector) FeaturesInImage(image IImage) []Feature { - rv := objc.Call[[]Feature](d_, objc.Sel("featuresInImage:"), image) - return rv -} - -// Searches for features in an image based on the specified image orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidetector/1438189-featuresinimage?language=objc -func (d_ Detector) FeaturesInImageOptions(image IImage, options map[string]objc.IObject) []Feature { - rv := objc.Call[[]Feature](d_, objc.Sel("featuresInImage:options:"), image, options) - return rv -} diff --git a/macos/coreimage/disc_blur_protocol.gen.go b/macos/coreimage/disc_blur_protocol.gen.go index bd146ca2..6534cf21 100644 --- a/macos/coreimage/disc_blur_protocol.gen.go +++ b/macos/coreimage/disc_blur_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur?language=objc type PDiscBlur interface { - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PDiscBlur interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetRadius(value float32) + HasSetRadius() bool + + // optional + Radius() float32 + HasRadius() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type DiscBlurObject struct { objc.Object } -func (d_ DiscBlurObject) HasSetRadius() bool { - return d_.RespondsToSelector(objc.Sel("setRadius:")) -} - -// The radius of the blur, in pixels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228215-radius?language=objc -func (d_ DiscBlurObject) SetRadius(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setRadius:"), value) -} - -func (d_ DiscBlurObject) HasRadius() bool { - return d_.RespondsToSelector(objc.Sel("radius")) -} - -// The radius of the blur, in pixels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228215-radius?language=objc -func (d_ DiscBlurObject) Radius() float32 { - rv := objc.Call[float32](d_, objc.Sel("radius")) - return rv -} - func (d_ DiscBlurObject) HasSetInputImage() bool { return d_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (d_ DiscBlurObject) InputImage() Image { rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } + +func (d_ DiscBlurObject) HasSetRadius() bool { + return d_.RespondsToSelector(objc.Sel("setRadius:")) +} + +// The radius of the blur, in pixels. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228215-radius?language=objc +func (d_ DiscBlurObject) SetRadius(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setRadius:"), value) +} + +func (d_ DiscBlurObject) HasRadius() bool { + return d_.RespondsToSelector(objc.Sel("radius")) +} + +// The radius of the blur, in pixels. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228215-radius?language=objc +func (d_ DiscBlurObject) Radius() float32 { + rv := objc.Call[float32](d_, objc.Sel("radius")) + return rv +} diff --git a/macos/coreimage/disintegrate_with_mask_transition_protocol.gen.go b/macos/coreimage/disintegrate_with_mask_transition_protocol.gen.go index 150f8610..03eddfd6 100644 --- a/macos/coreimage/disintegrate_with_mask_transition_protocol.gen.go +++ b/macos/coreimage/disintegrate_with_mask_transition_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition?language=objc type PDisintegrateWithMaskTransition interface { - // optional - SetShadowRadius(value float32) - HasSetShadowRadius() bool - - // optional - ShadowRadius() float32 - HasShadowRadius() bool - // optional SetShadowDensity(value float32) HasSetShadowDensity() bool @@ -27,6 +19,14 @@ type PDisintegrateWithMaskTransition interface { ShadowDensity() float32 HasShadowDensity() bool + // optional + SetShadowOffset(value coregraphics.Point) + HasSetShadowOffset() bool + + // optional + ShadowOffset() coregraphics.Point + HasShadowOffset() bool + // optional SetMaskImage(value Image) HasSetMaskImage() bool @@ -36,12 +36,12 @@ type PDisintegrateWithMaskTransition interface { HasMaskImage() bool // optional - SetShadowOffset(value coregraphics.Point) - HasSetShadowOffset() bool + SetShadowRadius(value float32) + HasSetShadowRadius() bool // optional - ShadowOffset() coregraphics.Point - HasShadowOffset() bool + ShadowRadius() float32 + HasShadowRadius() bool } // ensure impl type implements protocol interface @@ -52,29 +52,6 @@ type DisintegrateWithMaskTransitionObject struct { objc.Object } -func (d_ DisintegrateWithMaskTransitionObject) HasSetShadowRadius() bool { - return d_.RespondsToSelector(objc.Sel("setShadowRadius:")) -} - -// The radius of the shadow the mask creates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228220-shadowradius?language=objc -func (d_ DisintegrateWithMaskTransitionObject) SetShadowRadius(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setShadowRadius:"), value) -} - -func (d_ DisintegrateWithMaskTransitionObject) HasShadowRadius() bool { - return d_.RespondsToSelector(objc.Sel("shadowRadius")) -} - -// The radius of the shadow the mask creates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228220-shadowradius?language=objc -func (d_ DisintegrateWithMaskTransitionObject) ShadowRadius() float32 { - rv := objc.Call[float32](d_, objc.Sel("shadowRadius")) - return rv -} - func (d_ DisintegrateWithMaskTransitionObject) HasSetShadowDensity() bool { return d_.RespondsToSelector(objc.Sel("setShadowDensity:")) } @@ -98,6 +75,29 @@ func (d_ DisintegrateWithMaskTransitionObject) ShadowDensity() float32 { return rv } +func (d_ DisintegrateWithMaskTransitionObject) HasSetShadowOffset() bool { + return d_.RespondsToSelector(objc.Sel("setShadowOffset:")) +} + +// The offset of the shadow the mask creates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228219-shadowoffset?language=objc +func (d_ DisintegrateWithMaskTransitionObject) SetShadowOffset(value coregraphics.Point) { + objc.Call[objc.Void](d_, objc.Sel("setShadowOffset:"), value) +} + +func (d_ DisintegrateWithMaskTransitionObject) HasShadowOffset() bool { + return d_.RespondsToSelector(objc.Sel("shadowOffset")) +} + +// The offset of the shadow the mask creates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228219-shadowoffset?language=objc +func (d_ DisintegrateWithMaskTransitionObject) ShadowOffset() coregraphics.Point { + rv := objc.Call[coregraphics.Point](d_, objc.Sel("shadowOffset")) + return rv +} + func (d_ DisintegrateWithMaskTransitionObject) HasSetMaskImage() bool { return d_.RespondsToSelector(objc.Sel("setMaskImage:")) } @@ -121,25 +121,25 @@ func (d_ DisintegrateWithMaskTransitionObject) MaskImage() Image { return rv } -func (d_ DisintegrateWithMaskTransitionObject) HasSetShadowOffset() bool { - return d_.RespondsToSelector(objc.Sel("setShadowOffset:")) +func (d_ DisintegrateWithMaskTransitionObject) HasSetShadowRadius() bool { + return d_.RespondsToSelector(objc.Sel("setShadowRadius:")) } -// The offset of the shadow the mask creates. [Full Topic] +// The radius of the shadow the mask creates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228219-shadowoffset?language=objc -func (d_ DisintegrateWithMaskTransitionObject) SetShadowOffset(value coregraphics.Point) { - objc.Call[objc.Void](d_, objc.Sel("setShadowOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228220-shadowradius?language=objc +func (d_ DisintegrateWithMaskTransitionObject) SetShadowRadius(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setShadowRadius:"), value) } -func (d_ DisintegrateWithMaskTransitionObject) HasShadowOffset() bool { - return d_.RespondsToSelector(objc.Sel("shadowOffset")) +func (d_ DisintegrateWithMaskTransitionObject) HasShadowRadius() bool { + return d_.RespondsToSelector(objc.Sel("shadowRadius")) } -// The offset of the shadow the mask creates. [Full Topic] +// The radius of the shadow the mask creates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228219-shadowoffset?language=objc -func (d_ DisintegrateWithMaskTransitionObject) ShadowOffset() coregraphics.Point { - rv := objc.Call[coregraphics.Point](d_, objc.Sel("shadowOffset")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228220-shadowradius?language=objc +func (d_ DisintegrateWithMaskTransitionObject) ShadowRadius() float32 { + rv := objc.Call[float32](d_, objc.Sel("shadowRadius")) return rv } diff --git a/macos/coreimage/displacement_distortion_protocol.gen.go b/macos/coreimage/displacement_distortion_protocol.gen.go index 5815452c..fd3ec530 100644 --- a/macos/coreimage/displacement_distortion_protocol.gen.go +++ b/macos/coreimage/displacement_distortion_protocol.gen.go @@ -18,14 +18,6 @@ type PDisplacementDistortion interface { Scale() float32 HasScale() bool - // optional - SetDisplacementImage(value Image) - HasSetDisplacementImage() bool - - // optional - DisplacementImage() Image - HasDisplacementImage() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -33,6 +25,14 @@ type PDisplacementDistortion interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetDisplacementImage(value Image) + HasSetDisplacementImage() bool + + // optional + DisplacementImage() Image + HasDisplacementImage() bool } // ensure impl type implements protocol interface @@ -66,48 +66,48 @@ func (d_ DisplacementDistortionObject) Scale() float32 { return rv } -func (d_ DisplacementDistortionObject) HasSetDisplacementImage() bool { - return d_.RespondsToSelector(objc.Sel("setDisplacementImage:")) +func (d_ DisplacementDistortionObject) HasSetInputImage() bool { + return d_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisplacementdistortion/3600127-displacementimage?language=objc -func (d_ DisplacementDistortionObject) SetDisplacementImage(value Image) { - objc.Call[objc.Void](d_, objc.Sel("setDisplacementImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisplacementdistortion/3600128-inputimage?language=objc +func (d_ DisplacementDistortionObject) SetInputImage(value Image) { + objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), value) } -func (d_ DisplacementDistortionObject) HasDisplacementImage() bool { - return d_.RespondsToSelector(objc.Sel("displacementImage")) +func (d_ DisplacementDistortionObject) HasInputImage() bool { + return d_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisplacementdistortion/3600127-displacementimage?language=objc -func (d_ DisplacementDistortionObject) DisplacementImage() Image { - rv := objc.Call[Image](d_, objc.Sel("displacementImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisplacementdistortion/3600128-inputimage?language=objc +func (d_ DisplacementDistortionObject) InputImage() Image { + rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } -func (d_ DisplacementDistortionObject) HasSetInputImage() bool { - return d_.RespondsToSelector(objc.Sel("setInputImage:")) +func (d_ DisplacementDistortionObject) HasSetDisplacementImage() bool { + return d_.RespondsToSelector(objc.Sel("setDisplacementImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisplacementdistortion/3600128-inputimage?language=objc -func (d_ DisplacementDistortionObject) SetInputImage(value Image) { - objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisplacementdistortion/3600127-displacementimage?language=objc +func (d_ DisplacementDistortionObject) SetDisplacementImage(value Image) { + objc.Call[objc.Void](d_, objc.Sel("setDisplacementImage:"), value) } -func (d_ DisplacementDistortionObject) HasInputImage() bool { - return d_.RespondsToSelector(objc.Sel("inputImage")) +func (d_ DisplacementDistortionObject) HasDisplacementImage() bool { + return d_.RespondsToSelector(objc.Sel("displacementImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisplacementdistortion/3600128-inputimage?language=objc -func (d_ DisplacementDistortionObject) InputImage() Image { - rv := objc.Call[Image](d_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisplacementdistortion/3600127-displacementimage?language=objc +func (d_ DisplacementDistortionObject) DisplacementImage() Image { + rv := objc.Call[Image](d_, objc.Sel("displacementImage")) return rv } diff --git a/macos/coreimage/dither_protocol.gen.go b/macos/coreimage/dither_protocol.gen.go index 2dbcc48f..98053963 100644 --- a/macos/coreimage/dither_protocol.gen.go +++ b/macos/coreimage/dither_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither?language=objc type PDither interface { - // optional - SetIntensity(value float32) - HasSetIntensity() bool - - // optional - Intensity() float32 - HasIntensity() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PDither interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetIntensity(value float32) + HasSetIntensity() bool + + // optional + Intensity() float32 + HasIntensity() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type DitherObject struct { objc.Object } -func (d_ DitherObject) HasSetIntensity() bool { - return d_.RespondsToSelector(objc.Sel("setIntensity:")) -} - -// The intensity of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228226-intensity?language=objc -func (d_ DitherObject) SetIntensity(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setIntensity:"), value) -} - -func (d_ DitherObject) HasIntensity() bool { - return d_.RespondsToSelector(objc.Sel("intensity")) -} - -// The intensity of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228226-intensity?language=objc -func (d_ DitherObject) Intensity() float32 { - rv := objc.Call[float32](d_, objc.Sel("intensity")) - return rv -} - func (d_ DitherObject) HasSetInputImage() bool { return d_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (d_ DitherObject) InputImage() Image { rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } + +func (d_ DitherObject) HasSetIntensity() bool { + return d_.RespondsToSelector(objc.Sel("setIntensity:")) +} + +// The intensity of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228226-intensity?language=objc +func (d_ DitherObject) SetIntensity(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setIntensity:"), value) +} + +func (d_ DitherObject) HasIntensity() bool { + return d_.RespondsToSelector(objc.Sel("intensity")) +} + +// The intensity of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228226-intensity?language=objc +func (d_ DitherObject) Intensity() float32 { + rv := objc.Call[float32](d_, objc.Sel("intensity")) + return rv +} diff --git a/macos/coreimage/document_enhancer_protocol.gen.go b/macos/coreimage/document_enhancer_protocol.gen.go index 9f5401c1..098cb9f5 100644 --- a/macos/coreimage/document_enhancer_protocol.gen.go +++ b/macos/coreimage/document_enhancer_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer?language=objc type PDocumentEnhancer interface { - // optional - SetAmount(value float32) - HasSetAmount() bool - - // optional - Amount() float32 - HasAmount() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PDocumentEnhancer interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetAmount(value float32) + HasSetAmount() bool + + // optional + Amount() float32 + HasAmount() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type DocumentEnhancerObject struct { objc.Object } -func (d_ DocumentEnhancerObject) HasSetAmount() bool { - return d_.RespondsToSelector(objc.Sel("setAmount:")) -} - -// The amount of enhancement. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228228-amount?language=objc -func (d_ DocumentEnhancerObject) SetAmount(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setAmount:"), value) -} - -func (d_ DocumentEnhancerObject) HasAmount() bool { - return d_.RespondsToSelector(objc.Sel("amount")) -} - -// The amount of enhancement. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228228-amount?language=objc -func (d_ DocumentEnhancerObject) Amount() float32 { - rv := objc.Call[float32](d_, objc.Sel("amount")) - return rv -} - func (d_ DocumentEnhancerObject) HasSetInputImage() bool { return d_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (d_ DocumentEnhancerObject) InputImage() Image { rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } + +func (d_ DocumentEnhancerObject) HasSetAmount() bool { + return d_.RespondsToSelector(objc.Sel("setAmount:")) +} + +// The amount of enhancement. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228228-amount?language=objc +func (d_ DocumentEnhancerObject) SetAmount(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setAmount:"), value) +} + +func (d_ DocumentEnhancerObject) HasAmount() bool { + return d_.RespondsToSelector(objc.Sel("amount")) +} + +// The amount of enhancement. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228228-amount?language=objc +func (d_ DocumentEnhancerObject) Amount() float32 { + rv := objc.Call[float32](d_, objc.Sel("amount")) + return rv +} diff --git a/macos/coreimage/dot_screen_protocol.gen.go b/macos/coreimage/dot_screen_protocol.gen.go index 042ef8bc..5f5fafe7 100644 --- a/macos/coreimage/dot_screen_protocol.gen.go +++ b/macos/coreimage/dot_screen_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen?language=objc type PDotScreen interface { // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetWidth(value float32) + HasSetWidth() bool // optional - Center() coregraphics.Point - HasCenter() bool + Width() float32 + HasWidth() bool // optional SetInputImage(value Image) @@ -28,12 +28,12 @@ type PDotScreen interface { HasInputImage() bool // optional - SetWidth(value float32) - HasSetWidth() bool + SetSharpness(value float32) + HasSetSharpness() bool // optional - Width() float32 - HasWidth() bool + Sharpness() float32 + HasSharpness() bool // optional SetAngle(value float32) @@ -44,12 +44,12 @@ type PDotScreen interface { HasAngle() bool // optional - SetSharpness(value float32) - HasSetSharpness() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Sharpness() float32 - HasSharpness() bool + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -60,26 +60,26 @@ type DotScreenObject struct { objc.Object } -func (d_ DotScreenObject) HasSetCenter() bool { - return d_.RespondsToSelector(objc.Sel("setCenter:")) +func (d_ DotScreenObject) HasSetWidth() bool { + return d_.RespondsToSelector(objc.Sel("setWidth:")) } -// The x and y position to use as the center of the dot screen pattern. [Full Topic] +// The distance between dots in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228232-center?language=objc -func (d_ DotScreenObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](d_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228235-width?language=objc +func (d_ DotScreenObject) SetWidth(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setWidth:"), value) } -func (d_ DotScreenObject) HasCenter() bool { - return d_.RespondsToSelector(objc.Sel("center")) +func (d_ DotScreenObject) HasWidth() bool { + return d_.RespondsToSelector(objc.Sel("width")) } -// The x and y position to use as the center of the dot screen pattern. [Full Topic] +// The distance between dots in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228232-center?language=objc -func (d_ DotScreenObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](d_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228235-width?language=objc +func (d_ DotScreenObject) Width() float32 { + rv := objc.Call[float32](d_, objc.Sel("width")) return rv } @@ -106,26 +106,26 @@ func (d_ DotScreenObject) InputImage() Image { return rv } -func (d_ DotScreenObject) HasSetWidth() bool { - return d_.RespondsToSelector(objc.Sel("setWidth:")) +func (d_ DotScreenObject) HasSetSharpness() bool { + return d_.RespondsToSelector(objc.Sel("setSharpness:")) } -// The distance between dots in the pattern. [Full Topic] +// The sharpness of the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228235-width?language=objc -func (d_ DotScreenObject) SetWidth(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228234-sharpness?language=objc +func (d_ DotScreenObject) SetSharpness(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setSharpness:"), value) } -func (d_ DotScreenObject) HasWidth() bool { - return d_.RespondsToSelector(objc.Sel("width")) +func (d_ DotScreenObject) HasSharpness() bool { + return d_.RespondsToSelector(objc.Sel("sharpness")) } -// The distance between dots in the pattern. [Full Topic] +// The sharpness of the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228235-width?language=objc -func (d_ DotScreenObject) Width() float32 { - rv := objc.Call[float32](d_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228234-sharpness?language=objc +func (d_ DotScreenObject) Sharpness() float32 { + rv := objc.Call[float32](d_, objc.Sel("sharpness")) return rv } @@ -152,25 +152,25 @@ func (d_ DotScreenObject) Angle() float32 { return rv } -func (d_ DotScreenObject) HasSetSharpness() bool { - return d_.RespondsToSelector(objc.Sel("setSharpness:")) +func (d_ DotScreenObject) HasSetCenter() bool { + return d_.RespondsToSelector(objc.Sel("setCenter:")) } -// The sharpness of the pattern. [Full Topic] +// The x and y position to use as the center of the dot screen pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228234-sharpness?language=objc -func (d_ DotScreenObject) SetSharpness(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setSharpness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228232-center?language=objc +func (d_ DotScreenObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](d_, objc.Sel("setCenter:"), value) } -func (d_ DotScreenObject) HasSharpness() bool { - return d_.RespondsToSelector(objc.Sel("sharpness")) +func (d_ DotScreenObject) HasCenter() bool { + return d_.RespondsToSelector(objc.Sel("center")) } -// The sharpness of the pattern. [Full Topic] +// The x and y position to use as the center of the dot screen pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228234-sharpness?language=objc -func (d_ DotScreenObject) Sharpness() float32 { - rv := objc.Call[float32](d_, objc.Sel("sharpness")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228232-center?language=objc +func (d_ DotScreenObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](d_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/droste_protocol.gen.go b/macos/coreimage/droste_protocol.gen.go index 823da7fa..6bb8f1c9 100644 --- a/macos/coreimage/droste_protocol.gen.go +++ b/macos/coreimage/droste_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste?language=objc type PDroste interface { // optional - SetInsetPoint1(value coregraphics.Point) - HasSetInsetPoint1() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - InsetPoint1() coregraphics.Point - HasInsetPoint1() bool + InputImage() Image + HasInputImage() bool // optional SetPeriodicity(value float32) @@ -27,14 +27,6 @@ type PDroste interface { Periodicity() float32 HasPeriodicity() bool - // optional - SetInsetPoint0(value coregraphics.Point) - HasSetInsetPoint0() bool - - // optional - InsetPoint0() coregraphics.Point - HasInsetPoint0() bool - // optional SetRotation(value float32) HasSetRotation() bool @@ -44,12 +36,12 @@ type PDroste interface { HasRotation() bool // optional - SetStrands(value float32) - HasSetStrands() bool + SetInsetPoint0(value coregraphics.Point) + HasSetInsetPoint0() bool // optional - Strands() float32 - HasStrands() bool + InsetPoint0() coregraphics.Point + HasInsetPoint0() bool // optional SetZoom(value float32) @@ -60,12 +52,20 @@ type PDroste interface { HasZoom() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetStrands(value float32) + HasSetStrands() bool // optional - InputImage() Image - HasInputImage() bool + Strands() float32 + HasStrands() bool + + // optional + SetInsetPoint1(value coregraphics.Point) + HasSetInsetPoint1() bool + + // optional + InsetPoint1() coregraphics.Point + HasInsetPoint1() bool } // ensure impl type implements protocol interface @@ -76,26 +76,26 @@ type DrosteObject struct { objc.Object } -func (d_ DrosteObject) HasSetInsetPoint1() bool { - return d_.RespondsToSelector(objc.Sel("setInsetPoint1:")) +func (d_ DrosteObject) HasSetInputImage() bool { + return d_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600133-insetpoint1?language=objc -func (d_ DrosteObject) SetInsetPoint1(value coregraphics.Point) { - objc.Call[objc.Void](d_, objc.Sel("setInsetPoint1:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600131-inputimage?language=objc +func (d_ DrosteObject) SetInputImage(value Image) { + objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), value) } -func (d_ DrosteObject) HasInsetPoint1() bool { - return d_.RespondsToSelector(objc.Sel("insetPoint1")) +func (d_ DrosteObject) HasInputImage() bool { + return d_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600133-insetpoint1?language=objc -func (d_ DrosteObject) InsetPoint1() coregraphics.Point { - rv := objc.Call[coregraphics.Point](d_, objc.Sel("insetPoint1")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600131-inputimage?language=objc +func (d_ DrosteObject) InputImage() Image { + rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } @@ -122,29 +122,6 @@ func (d_ DrosteObject) Periodicity() float32 { return rv } -func (d_ DrosteObject) HasSetInsetPoint0() bool { - return d_.RespondsToSelector(objc.Sel("setInsetPoint0:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600132-insetpoint0?language=objc -func (d_ DrosteObject) SetInsetPoint0(value coregraphics.Point) { - objc.Call[objc.Void](d_, objc.Sel("setInsetPoint0:"), value) -} - -func (d_ DrosteObject) HasInsetPoint0() bool { - return d_.RespondsToSelector(objc.Sel("insetPoint0")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600132-insetpoint0?language=objc -func (d_ DrosteObject) InsetPoint0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](d_, objc.Sel("insetPoint0")) - return rv -} - func (d_ DrosteObject) HasSetRotation() bool { return d_.RespondsToSelector(objc.Sel("setRotation:")) } @@ -168,26 +145,26 @@ func (d_ DrosteObject) Rotation() float32 { return rv } -func (d_ DrosteObject) HasSetStrands() bool { - return d_.RespondsToSelector(objc.Sel("setStrands:")) +func (d_ DrosteObject) HasSetInsetPoint0() bool { + return d_.RespondsToSelector(objc.Sel("setInsetPoint0:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600136-strands?language=objc -func (d_ DrosteObject) SetStrands(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setStrands:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600132-insetpoint0?language=objc +func (d_ DrosteObject) SetInsetPoint0(value coregraphics.Point) { + objc.Call[objc.Void](d_, objc.Sel("setInsetPoint0:"), value) } -func (d_ DrosteObject) HasStrands() bool { - return d_.RespondsToSelector(objc.Sel("strands")) +func (d_ DrosteObject) HasInsetPoint0() bool { + return d_.RespondsToSelector(objc.Sel("insetPoint0")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600136-strands?language=objc -func (d_ DrosteObject) Strands() float32 { - rv := objc.Call[float32](d_, objc.Sel("strands")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600132-insetpoint0?language=objc +func (d_ DrosteObject) InsetPoint0() coregraphics.Point { + rv := objc.Call[coregraphics.Point](d_, objc.Sel("insetPoint0")) return rv } @@ -214,25 +191,48 @@ func (d_ DrosteObject) Zoom() float32 { return rv } -func (d_ DrosteObject) HasSetInputImage() bool { - return d_.RespondsToSelector(objc.Sel("setInputImage:")) +func (d_ DrosteObject) HasSetStrands() bool { + return d_.RespondsToSelector(objc.Sel("setStrands:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600131-inputimage?language=objc -func (d_ DrosteObject) SetInputImage(value Image) { - objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600136-strands?language=objc +func (d_ DrosteObject) SetStrands(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setStrands:"), value) } -func (d_ DrosteObject) HasInputImage() bool { - return d_.RespondsToSelector(objc.Sel("inputImage")) +func (d_ DrosteObject) HasStrands() bool { + return d_.RespondsToSelector(objc.Sel("strands")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600131-inputimage?language=objc -func (d_ DrosteObject) InputImage() Image { - rv := objc.Call[Image](d_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600136-strands?language=objc +func (d_ DrosteObject) Strands() float32 { + rv := objc.Call[float32](d_, objc.Sel("strands")) + return rv +} + +func (d_ DrosteObject) HasSetInsetPoint1() bool { + return d_.RespondsToSelector(objc.Sel("setInsetPoint1:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600133-insetpoint1?language=objc +func (d_ DrosteObject) SetInsetPoint1(value coregraphics.Point) { + objc.Call[objc.Void](d_, objc.Sel("setInsetPoint1:"), value) +} + +func (d_ DrosteObject) HasInsetPoint1() bool { + return d_.RespondsToSelector(objc.Sel("insetPoint1")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600133-insetpoint1?language=objc +func (d_ DrosteObject) InsetPoint1() coregraphics.Point { + rv := objc.Call[coregraphics.Point](d_, objc.Sel("insetPoint1")) return rv } diff --git a/macos/coreimage/edge_preserve_upsample_protocol.gen.go b/macos/coreimage/edge_preserve_upsample_protocol.gen.go index afd91c35..584d19b6 100644 --- a/macos/coreimage/edge_preserve_upsample_protocol.gen.go +++ b/macos/coreimage/edge_preserve_upsample_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample?language=objc type PEdgePreserveUpsample interface { - // optional - SetSmallImage(value Image) - HasSetSmallImage() bool - - // optional - SmallImage() Image - HasSmallImage() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -34,6 +26,14 @@ type PEdgePreserveUpsample interface { SpatialSigma() float32 HasSpatialSigma() bool + // optional + SetSmallImage(value Image) + HasSetSmallImage() bool + + // optional + SmallImage() Image + HasSmallImage() bool + // optional SetLumaSigma(value float32) HasSetLumaSigma() bool @@ -51,29 +51,6 @@ type EdgePreserveUpsampleObject struct { objc.Object } -func (e_ EdgePreserveUpsampleObject) HasSetSmallImage() bool { - return e_.RespondsToSelector(objc.Sel("setSmallImage:")) -} - -// The image that the filter upsamples. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample/3228239-smallimage?language=objc -func (e_ EdgePreserveUpsampleObject) SetSmallImage(value Image) { - objc.Call[objc.Void](e_, objc.Sel("setSmallImage:"), value) -} - -func (e_ EdgePreserveUpsampleObject) HasSmallImage() bool { - return e_.RespondsToSelector(objc.Sel("smallImage")) -} - -// The image that the filter upsamples. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample/3228239-smallimage?language=objc -func (e_ EdgePreserveUpsampleObject) SmallImage() Image { - rv := objc.Call[Image](e_, objc.Sel("smallImage")) - return rv -} - func (e_ EdgePreserveUpsampleObject) HasSetInputImage() bool { return e_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -120,6 +97,29 @@ func (e_ EdgePreserveUpsampleObject) SpatialSigma() float32 { return rv } +func (e_ EdgePreserveUpsampleObject) HasSetSmallImage() bool { + return e_.RespondsToSelector(objc.Sel("setSmallImage:")) +} + +// The image that the filter upsamples. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample/3228239-smallimage?language=objc +func (e_ EdgePreserveUpsampleObject) SetSmallImage(value Image) { + objc.Call[objc.Void](e_, objc.Sel("setSmallImage:"), value) +} + +func (e_ EdgePreserveUpsampleObject) HasSmallImage() bool { + return e_.RespondsToSelector(objc.Sel("smallImage")) +} + +// The image that the filter upsamples. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample/3228239-smallimage?language=objc +func (e_ EdgePreserveUpsampleObject) SmallImage() Image { + rv := objc.Call[Image](e_, objc.Sel("smallImage")) + return rv +} + func (e_ EdgePreserveUpsampleObject) HasSetLumaSigma() bool { return e_.RespondsToSelector(objc.Sel("setLumaSigma:")) } diff --git a/macos/coreimage/edge_work_protocol.gen.go b/macos/coreimage/edge_work_protocol.gen.go index cc16acc9..f802675c 100644 --- a/macos/coreimage/edge_work_protocol.gen.go +++ b/macos/coreimage/edge_work_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework?language=objc type PEdgeWork interface { - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PEdgeWork interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetRadius(value float32) + HasSetRadius() bool + + // optional + Radius() float32 + HasRadius() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type EdgeWorkObject struct { objc.Object } -func (e_ EdgeWorkObject) HasSetRadius() bool { - return e_.RespondsToSelector(objc.Sel("setRadius:")) -} - -// The thickness of the edges. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228243-radius?language=objc -func (e_ EdgeWorkObject) SetRadius(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setRadius:"), value) -} - -func (e_ EdgeWorkObject) HasRadius() bool { - return e_.RespondsToSelector(objc.Sel("radius")) -} - -// The thickness of the edges. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228243-radius?language=objc -func (e_ EdgeWorkObject) Radius() float32 { - rv := objc.Call[float32](e_, objc.Sel("radius")) - return rv -} - func (e_ EdgeWorkObject) HasSetInputImage() bool { return e_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (e_ EdgeWorkObject) InputImage() Image { rv := objc.Call[Image](e_, objc.Sel("inputImage")) return rv } + +func (e_ EdgeWorkObject) HasSetRadius() bool { + return e_.RespondsToSelector(objc.Sel("setRadius:")) +} + +// The thickness of the edges. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228243-radius?language=objc +func (e_ EdgeWorkObject) SetRadius(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setRadius:"), value) +} + +func (e_ EdgeWorkObject) HasRadius() bool { + return e_.RespondsToSelector(objc.Sel("radius")) +} + +// The thickness of the edges. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228243-radius?language=objc +func (e_ EdgeWorkObject) Radius() float32 { + rv := objc.Call[float32](e_, objc.Sel("radius")) + return rv +} diff --git a/macos/coreimage/edges_protocol.gen.go b/macos/coreimage/edges_protocol.gen.go index 0277ab01..643bfb70 100644 --- a/macos/coreimage/edges_protocol.gen.go +++ b/macos/coreimage/edges_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges?language=objc type PEdges interface { - // optional - SetIntensity(value float32) - HasSetIntensity() bool - - // optional - Intensity() float32 - HasIntensity() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PEdges interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetIntensity(value float32) + HasSetIntensity() bool + + // optional + Intensity() float32 + HasIntensity() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type EdgesObject struct { objc.Object } -func (e_ EdgesObject) HasSetIntensity() bool { - return e_.RespondsToSelector(objc.Sel("setIntensity:")) -} - -// The intensity of the edges. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228246-intensity?language=objc -func (e_ EdgesObject) SetIntensity(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setIntensity:"), value) -} - -func (e_ EdgesObject) HasIntensity() bool { - return e_.RespondsToSelector(objc.Sel("intensity")) -} - -// The intensity of the edges. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228246-intensity?language=objc -func (e_ EdgesObject) Intensity() float32 { - rv := objc.Call[float32](e_, objc.Sel("intensity")) - return rv -} - func (e_ EdgesObject) HasSetInputImage() bool { return e_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (e_ EdgesObject) InputImage() Image { rv := objc.Call[Image](e_, objc.Sel("inputImage")) return rv } + +func (e_ EdgesObject) HasSetIntensity() bool { + return e_.RespondsToSelector(objc.Sel("setIntensity:")) +} + +// The intensity of the edges. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228246-intensity?language=objc +func (e_ EdgesObject) SetIntensity(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setIntensity:"), value) +} + +func (e_ EdgesObject) HasIntensity() bool { + return e_.RespondsToSelector(objc.Sel("intensity")) +} + +// The intensity of the edges. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228246-intensity?language=objc +func (e_ EdgesObject) Intensity() float32 { + rv := objc.Call[float32](e_, objc.Sel("intensity")) + return rv +} diff --git a/macos/coreimage/exposure_adjust_protocol.gen.go b/macos/coreimage/exposure_adjust_protocol.gen.go index 35454314..87e9c69c 100644 --- a/macos/coreimage/exposure_adjust_protocol.gen.go +++ b/macos/coreimage/exposure_adjust_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust?language=objc type PExposureAdjust interface { - // optional - SetEV(value float32) - HasSetEV() bool - - // optional - EV() float32 - HasEV() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PExposureAdjust interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetEV(value float32) + HasSetEV() bool + + // optional + EV() float32 + HasEV() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type ExposureAdjustObject struct { objc.Object } -func (e_ ExposureAdjustObject) HasSetEV() bool { - return e_.RespondsToSelector(objc.Sel("setEV:")) -} - -// The amount to adjust the exposure of the image by. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228253-ev?language=objc -func (e_ ExposureAdjustObject) SetEV(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setEV:"), value) -} - -func (e_ ExposureAdjustObject) HasEV() bool { - return e_.RespondsToSelector(objc.Sel("EV")) -} - -// The amount to adjust the exposure of the image by. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228253-ev?language=objc -func (e_ ExposureAdjustObject) EV() float32 { - rv := objc.Call[float32](e_, objc.Sel("EV")) - return rv -} - func (e_ ExposureAdjustObject) HasSetInputImage() bool { return e_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (e_ ExposureAdjustObject) InputImage() Image { rv := objc.Call[Image](e_, objc.Sel("inputImage")) return rv } + +func (e_ ExposureAdjustObject) HasSetEV() bool { + return e_.RespondsToSelector(objc.Sel("setEV:")) +} + +// The amount to adjust the exposure of the image by. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228253-ev?language=objc +func (e_ ExposureAdjustObject) SetEV(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setEV:"), value) +} + +func (e_ ExposureAdjustObject) HasEV() bool { + return e_.RespondsToSelector(objc.Sel("EV")) +} + +// The amount to adjust the exposure of the image by. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228253-ev?language=objc +func (e_ ExposureAdjustObject) EV() float32 { + rv := objc.Call[float32](e_, objc.Sel("EV")) + return rv +} diff --git a/macos/coreimage/face_feature.gen.go b/macos/coreimage/face_feature.gen.go index ba247a06..a30d18b7 100644 --- a/macos/coreimage/face_feature.gen.go +++ b/macos/coreimage/face_feature.gen.go @@ -19,21 +19,21 @@ type _FaceFeatureClass struct { // An interface definition for the [FaceFeature] class. type IFaceFeature interface { IFeature - HasTrackingFrameCount() bool - LeftEyePosition() coregraphics.Point - RightEyeClosed() bool - HasLeftEyePosition() bool FaceAngle() float32 + RightEyeClosed() bool TrackingID() int - HasTrackingID() bool - MouthPosition() coregraphics.Point + HasTrackingFrameCount() bool + HasLeftEyePosition() bool HasMouthPosition() bool RightEyePosition() coregraphics.Point + HasSmile() bool HasFaceAngle() bool + HasTrackingID() bool + TrackingFrameCount() int LeftEyeClosed() bool - HasSmile() bool + LeftEyePosition() coregraphics.Point HasRightEyePosition() bool - TrackingFrameCount() int + MouthPosition() coregraphics.Point } // Information about a face detected in a still or video image. [Full Topic] @@ -69,19 +69,11 @@ func (f_ FaceFeature) Init() FaceFeature { return rv } -// A Boolean value that indicates the face object has a tracking frame count. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437731-hastrackingframecount?language=objc -func (f_ FaceFeature) HasTrackingFrameCount() bool { - rv := objc.Call[bool](f_, objc.Sel("hasTrackingFrameCount")) - return rv -} - -// The coordinates of the left eye, in image coordinates. [Full Topic] +// The rotation of the face. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437923-lefteyeposition?language=objc -func (f_ FaceFeature) LeftEyePosition() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("leftEyePosition")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437689-faceangle?language=objc +func (f_ FaceFeature) FaceAngle() float32 { + rv := objc.Call[float32](f_, objc.Sel("faceAngle")) return rv } @@ -93,22 +85,6 @@ func (f_ FaceFeature) RightEyeClosed() bool { return rv } -// A Boolean value that indicates whether the detector found the face’s left eye. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437900-haslefteyeposition?language=objc -func (f_ FaceFeature) HasLeftEyePosition() bool { - rv := objc.Call[bool](f_, objc.Sel("hasLeftEyePosition")) - return rv -} - -// The rotation of the face. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437689-faceangle?language=objc -func (f_ FaceFeature) FaceAngle() float32 { - rv := objc.Call[float32](f_, objc.Sel("faceAngle")) - return rv -} - // The tracking identifier of the face object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437709-trackingid?language=objc @@ -117,19 +93,19 @@ func (f_ FaceFeature) TrackingID() int { return rv } -// A Boolean value that indicates whether the face object has a tracking ID. [Full Topic] +// A Boolean value that indicates the face object has a tracking frame count. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437683-hastrackingid?language=objc -func (f_ FaceFeature) HasTrackingID() bool { - rv := objc.Call[bool](f_, objc.Sel("hasTrackingID")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437731-hastrackingframecount?language=objc +func (f_ FaceFeature) HasTrackingFrameCount() bool { + rv := objc.Call[bool](f_, objc.Sel("hasTrackingFrameCount")) return rv } -// The coordinates of the mouth, in image coordinates [Full Topic] +// A Boolean value that indicates whether the detector found the face’s left eye. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1438020-mouthposition?language=objc -func (f_ FaceFeature) MouthPosition() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("mouthPosition")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437900-haslefteyeposition?language=objc +func (f_ FaceFeature) HasLeftEyePosition() bool { + rv := objc.Call[bool](f_, objc.Sel("hasLeftEyePosition")) return rv } @@ -149,6 +125,14 @@ func (f_ FaceFeature) RightEyePosition() coregraphics.Point { return rv } +// A Boolean value that indicates whether a smile is detected in the face. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437882-hassmile?language=objc +func (f_ FaceFeature) HasSmile() bool { + rv := objc.Call[bool](f_, objc.Sel("hasSmile")) + return rv +} + // A Boolean value that indicates whether information about face rotation is available. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1438165-hasfaceangle?language=objc @@ -157,6 +141,22 @@ func (f_ FaceFeature) HasFaceAngle() bool { return rv } +// A Boolean value that indicates whether the face object has a tracking ID. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437683-hastrackingid?language=objc +func (f_ FaceFeature) HasTrackingID() bool { + rv := objc.Call[bool](f_, objc.Sel("hasTrackingID")) + return rv +} + +// The tracking frame count of the face. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437953-trackingframecount?language=objc +func (f_ FaceFeature) TrackingFrameCount() int { + rv := objc.Call[int](f_, objc.Sel("trackingFrameCount")) + return rv +} + // A Boolean value that indicates whether a closed left eye is detected in the face. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437630-lefteyeclosed?language=objc @@ -165,11 +165,11 @@ func (f_ FaceFeature) LeftEyeClosed() bool { return rv } -// A Boolean value that indicates whether a smile is detected in the face. [Full Topic] +// The coordinates of the left eye, in image coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437882-hassmile?language=objc -func (f_ FaceFeature) HasSmile() bool { - rv := objc.Call[bool](f_, objc.Sel("hasSmile")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437923-lefteyeposition?language=objc +func (f_ FaceFeature) LeftEyePosition() coregraphics.Point { + rv := objc.Call[coregraphics.Point](f_, objc.Sel("leftEyePosition")) return rv } @@ -181,10 +181,10 @@ func (f_ FaceFeature) HasRightEyePosition() bool { return rv } -// The tracking frame count of the face. [Full Topic] +// The coordinates of the mouth, in image coordinates [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437953-trackingframecount?language=objc -func (f_ FaceFeature) TrackingFrameCount() int { - rv := objc.Call[int](f_, objc.Sel("trackingFrameCount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1438020-mouthposition?language=objc +func (f_ FaceFeature) MouthPosition() coregraphics.Point { + rv := objc.Call[coregraphics.Point](f_, objc.Sel("mouthPosition")) return rv } diff --git a/macos/coreimage/false_color_protocol.gen.go b/macos/coreimage/false_color_protocol.gen.go index 2a46b07c..72a317f4 100644 --- a/macos/coreimage/false_color_protocol.gen.go +++ b/macos/coreimage/false_color_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifalsecolor?language=objc type PFalseColor interface { - // optional - SetColor1(value Color) - HasSetColor1() bool - - // optional - Color1() Color - HasColor1() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -33,6 +25,14 @@ type PFalseColor interface { // optional Color0() Color HasColor0() bool + + // optional + SetColor1(value Color) + HasSetColor1() bool + + // optional + Color1() Color + HasColor1() bool } // ensure impl type implements protocol interface @@ -43,29 +43,6 @@ type FalseColorObject struct { objc.Object } -func (f_ FalseColorObject) HasSetColor1() bool { - return f_.RespondsToSelector(objc.Sel("setColor1:")) -} - -// The second color to use for the color ramp. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifalsecolor/3228257-color1?language=objc -func (f_ FalseColorObject) SetColor1(value Color) { - objc.Call[objc.Void](f_, objc.Sel("setColor1:"), value) -} - -func (f_ FalseColorObject) HasColor1() bool { - return f_.RespondsToSelector(objc.Sel("color1")) -} - -// The second color to use for the color ramp. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifalsecolor/3228257-color1?language=objc -func (f_ FalseColorObject) Color1() Color { - rv := objc.Call[Color](f_, objc.Sel("color1")) - return rv -} - func (f_ FalseColorObject) HasSetInputImage() bool { return f_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -111,3 +88,26 @@ func (f_ FalseColorObject) Color0() Color { rv := objc.Call[Color](f_, objc.Sel("color0")) return rv } + +func (f_ FalseColorObject) HasSetColor1() bool { + return f_.RespondsToSelector(objc.Sel("setColor1:")) +} + +// The second color to use for the color ramp. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifalsecolor/3228257-color1?language=objc +func (f_ FalseColorObject) SetColor1(value Color) { + objc.Call[objc.Void](f_, objc.Sel("setColor1:"), value) +} + +func (f_ FalseColorObject) HasColor1() bool { + return f_.RespondsToSelector(objc.Sel("color1")) +} + +// The second color to use for the color ramp. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifalsecolor/3228257-color1?language=objc +func (f_ FalseColorObject) Color1() Color { + rv := objc.Call[Color](f_, objc.Sel("color1")) + return rv +} diff --git a/macos/coreimage/filter.gen.go b/macos/coreimage/filter.gen.go index 825b1ba2..258f475a 100644 --- a/macos/coreimage/filter.gen.go +++ b/macos/coreimage/filter.gen.go @@ -19,16 +19,15 @@ type _FilterClass struct { // An interface definition for the [Filter] class. type IFilter interface { objc.IObject - Apply(k IKernel, args ...any) Image - SetName(aString string) SetDefaults() - ApplyArgumentsOptions(k IKernel, args []objc.IObject, dict map[string]objc.IObject) Image - OutputImage() Image - Attributes() map[string]objc.Object + Name() string + Apply(k IKernel, args ...any) Image + OutputKeys() []string + InputKeys() []string IsEnabled() bool SetEnabled(value bool) - InputKeys() []string - OutputKeys() []string + Attributes() map[string]objc.Object + OutputImage() Image } // An image processor that produces an image by manipulating one or more input images or by generating new image data. [Full Topic] @@ -64,2440 +63,2366 @@ func (f_ Filter) Init() Filter { return rv } -// Returns a bloom filter. [Full Topic] +// Returns a star-shine generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228276-bloomfilter?language=objc -func (fc _FilterClass) BloomFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("bloomFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228415-starshinegeneratorfilter?language=objc +func (fc _FilterClass) StarShineGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("starShineGeneratorFilter")) return rv } -// Returns a bloom filter. [Full Topic] +// Returns a star-shine generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228276-bloomfilter?language=objc -func Filter_BloomFilter() Filter { - return FilterClass.BloomFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228415-starshinegeneratorfilter?language=objc +func Filter_StarShineGeneratorFilter() Filter { + return FilterClass.StarShineGeneratorFilter() } -// Applies a bokeh effect to an image. [Full Topic] +// Returns a saturation blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228277-bokehblurfilter?language=objc -func (fc _FilterClass) BokehBlurFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("bokehBlurFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228400-saturationblendmodefilter?language=objc +func (fc _FilterClass) SaturationBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("saturationBlendModeFilter")) return rv } -// Applies a bokeh effect to an image. [Full Topic] +// Returns a saturation blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228277-bokehblurfilter?language=objc -func Filter_BokehBlurFilter() Filter { - return FilterClass.BokehBlurFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228400-saturationblendmodefilter?language=objc +func Filter_SaturationBlendModeFilter() Filter { + return FilterClass.SaturationBlendModeFilter() } -// Produces a CIImage object by applying a kernel function. [Full Topic] +// Returns a sunbeams generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1562058-apply?language=objc -func (f_ Filter) Apply(k IKernel, args ...any) Image { - rv := objc.Call[Image](f_, objc.Sel("apply:"), append([]any{k}, args...)...) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228419-sunbeamsgeneratorfilter?language=objc +func (fc _FilterClass) SunbeamsGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sunbeamsGeneratorFilter")) return rv } -// Returns a sharpen luminance filter. [Full Topic] +// Returns a sunbeams generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228404-sharpenluminancefilter?language=objc -func (fc _FilterClass) SharpenLuminanceFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("sharpenLuminanceFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228419-sunbeamsgeneratorfilter?language=objc +func Filter_SunbeamsGeneratorFilter() Filter { + return FilterClass.SunbeamsGeneratorFilter() +} + +// Returns a document enhancer filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228317-documentenhancerfilter?language=objc +func (fc _FilterClass) DocumentEnhancerFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("documentEnhancerFilter")) return rv } -// Returns a sharpen luminance filter. [Full Topic] +// Returns a document enhancer filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228404-sharpenluminancefilter?language=objc -func Filter_SharpenLuminanceFilter() Filter { - return FilterClass.SharpenLuminanceFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228317-documentenhancerfilter?language=objc +func Filter_DocumentEnhancerFilter() Filter { + return FilterClass.DocumentEnhancerFilter() } -// Returns a dither filter. [Full Topic] +// Returns a ripple transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228315-ditherfilter?language=objc -func (fc _FilterClass) DitherFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("ditherFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228397-rippletransitionfilter?language=objc +func (fc _FilterClass) RippleTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("rippleTransitionFilter")) return rv } -// Returns a dither filter. [Full Topic] +// Returns a ripple transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228315-ditherfilter?language=objc -func Filter_DitherFilter() Filter { - return FilterClass.DitherFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228397-rippletransitionfilter?language=objc +func Filter_RippleTransitionFilter() Filter { + return FilterClass.RippleTransitionFilter() } -// Returns a color cube with color space filter. [Full Topic] +// Publishes a custom filter that is not packaged as an image unit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228288-colorcubewithcolorspacefilter?language=objc -func (fc _FilterClass) ColorCubeWithColorSpaceFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorCubeWithColorSpaceFilter")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437889-registerfiltername?language=objc +func (fc _FilterClass) RegisterFilterNameConstructorClassAttributes(name string, anObject PFilterConstructor, attributes map[string]objc.IObject) { + po1 := objc.WrapAsProtocol("CIFilterConstructor", anObject) + objc.Call[objc.Void](fc, objc.Sel("registerFilterName:constructor:classAttributes:"), name, po1, attributes) } -// Returns a color cube with color space filter. [Full Topic] +// Publishes a custom filter that is not packaged as an image unit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228288-colorcubewithcolorspacefilter?language=objc -func Filter_ColorCubeWithColorSpaceFilter() Filter { - return FilterClass.ColorCubeWithColorSpaceFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437889-registerfiltername?language=objc +func Filter_RegisterFilterNameConstructorClassAttributes(name string, anObject PFilterConstructor, attributes map[string]objc.IObject) { + FilterClass.RegisterFilterNameConstructorClassAttributes(name, anObject, attributes) } -// [Full Topic] +// Publishes a custom filter that is not packaged as an image unit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547120-colorthresholdfilter?language=objc -func (fc _FilterClass) ColorThresholdFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorThresholdFilter")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437889-registerfiltername?language=objc +func (fc _FilterClass) RegisterFilterNameConstructorObjectClassAttributes(name string, anObjectObject objc.IObject, attributes map[string]objc.IObject) { + objc.Call[objc.Void](fc, objc.Sel("registerFilterName:constructor:classAttributes:"), name, anObjectObject, attributes) } -// [Full Topic] +// Publishes a custom filter that is not packaged as an image unit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547120-colorthresholdfilter?language=objc -func Filter_ColorThresholdFilter() Filter { - return FilterClass.ColorThresholdFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437889-registerfiltername?language=objc +func Filter_RegisterFilterNameConstructorObjectClassAttributes(name string, anObjectObject objc.IObject, attributes map[string]objc.IObject) { + FilterClass.RegisterFilterNameConstructorObjectClassAttributes(name, anObjectObject, attributes) } -// Returns a gamma adjust filter. [Full Topic] +// Returns the localized name for the specified filter name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228330-gammaadjustfilter?language=objc -func (fc _FilterClass) GammaAdjustFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("gammaAdjustFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437697-localizednameforfiltername?language=objc +func (fc _FilterClass) LocalizedNameForFilterName(filterName string) string { + rv := objc.Call[string](fc, objc.Sel("localizedNameForFilterName:"), filterName) return rv } -// Returns a gamma adjust filter. [Full Topic] +// Returns the localized name for the specified filter name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228330-gammaadjustfilter?language=objc -func Filter_GammaAdjustFilter() Filter { - return FilterClass.GammaAdjustFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437697-localizednameforfiltername?language=objc +func Filter_LocalizedNameForFilterName(filterName string) string { + return FilterClass.LocalizedNameForFilterName(filterName) } -// Returns an attributed-text image generator filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228267-attributedtextimagegeneratorfilt?language=objc -func (fc _FilterClass) AttributedTextImageGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("attributedTextImageGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600150-pinchdistortionfilter?language=objc +func (fc _FilterClass) PinchDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pinchDistortionFilter")) return rv } -// Returns an attributed-text image generator filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228267-attributedtextimagegeneratorfilt?language=objc -func Filter_AttributedTextImageGeneratorFilter() Filter { - return FilterClass.AttributedTextImageGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600150-pinchdistortionfilter?language=objc +func Filter_PinchDistortionFilter() Filter { + return FilterClass.PinchDistortionFilter() } -// Returns a screen blend mode filter. [Full Topic] +// Returns a parallelogram tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228401-screenblendmodefilter?language=objc -func (fc _FilterClass) ScreenBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("screenBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228379-parallelogramtilefilter?language=objc +func (fc _FilterClass) ParallelogramTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("parallelogramTileFilter")) return rv } -// Returns a screen blend mode filter. [Full Topic] +// Returns a parallelogram tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228401-screenblendmodefilter?language=objc -func Filter_ScreenBlendModeFilter() Filter { - return FilterClass.ScreenBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228379-parallelogramtilefilter?language=objc +func Filter_ParallelogramTileFilter() Filter { + return FilterClass.ParallelogramTileFilter() } -// Returns a color map filter. [Full Topic] +// Returns a color cube mixed with mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228293-colormapfilter?language=objc -func (fc _FilterClass) ColorMapFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorMapFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228289-colorcubesmixedwithmaskfilter?language=objc +func (fc _FilterClass) ColorCubesMixedWithMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorCubesMixedWithMaskFilter")) return rv } -// Returns a color map filter. [Full Topic] +// Returns a color cube mixed with mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228293-colormapfilter?language=objc -func Filter_ColorMapFilter() Filter { - return FilterClass.ColorMapFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228289-colorcubesmixedwithmaskfilter?language=objc +func Filter_ColorCubesMixedWithMaskFilter() Filter { + return FilterClass.ColorCubesMixedWithMaskFilter() } -// [Full Topic] +// Returns a kaleidoscope filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750386-convolutionrgb5x5filter?language=objc -func (fc _FilterClass) ConvolutionRGB5X5Filter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB5X5Filter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228343-kaleidoscopefilter?language=objc +func (fc _FilterClass) KaleidoscopeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("kaleidoscopeFilter")) return rv } -// [Full Topic] +// Returns a kaleidoscope filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750386-convolutionrgb5x5filter?language=objc -func Filter_ConvolutionRGB5X5Filter() Filter { - return FilterClass.ConvolutionRGB5X5Filter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228343-kaleidoscopefilter?language=objc +func Filter_KaleidoscopeFilter() Filter { + return FilterClass.KaleidoscopeFilter() } -// Returns a Core ML model filter. [Full Topic] +// Returns a lighten blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228305-coremlmodelfilter?language=objc -func (fc _FilterClass) CoreMLModelFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("coreMLModelFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228346-lightenblendmodefilter?language=objc +func (fc _FilterClass) LightenBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lightenBlendModeFilter")) return rv } -// Returns a Core ML model filter. [Full Topic] +// Returns a lighten blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228305-coremlmodelfilter?language=objc -func Filter_CoreMLModelFilter() Filter { - return FilterClass.CoreMLModelFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228346-lightenblendmodefilter?language=objc +func Filter_LightenBlendModeFilter() Filter { + return FilterClass.LightenBlendModeFilter() } -// Returns a ripple transition filter. [Full Topic] +// Returns a fourfold rotated tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228397-rippletransitionfilter?language=objc -func (fc _FilterClass) RippleTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("rippleTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228328-fourfoldrotatedtilefilter?language=objc +func (fc _FilterClass) FourfoldRotatedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("fourfoldRotatedTileFilter")) return rv } -// Returns a ripple transition filter. [Full Topic] +// Returns a fourfold rotated tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228397-rippletransitionfilter?language=objc -func Filter_RippleTransitionFilter() Filter { - return FilterClass.RippleTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228328-fourfoldrotatedtilefilter?language=objc +func Filter_FourfoldRotatedTileFilter() Filter { + return FilterClass.FourfoldRotatedTileFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750388-convolutionrgb9horizontalfilter?language=objc -func (fc _FilterClass) ConvolutionRGB9HorizontalFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB9HorizontalFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547111-areaaveragefilter?language=objc +func (fc _FilterClass) AreaAverageFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaAverageFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750388-convolutionrgb9horizontalfilter?language=objc -func Filter_ConvolutionRGB9HorizontalFilter() Filter { - return FilterClass.ConvolutionRGB9HorizontalFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547111-areaaveragefilter?language=objc +func Filter_AreaAverageFilter() Filter { + return FilterClass.AreaAverageFilter() } -// [Full Topic] +// Returns an edge-work filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547117-areaminimumalphafilter?language=objc -func (fc _FilterClass) AreaMinimumAlphaFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("areaMinimumAlphaFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228320-edgeworkfilter?language=objc +func (fc _FilterClass) EdgeWorkFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("edgeWorkFilter")) return rv } -// [Full Topic] +// Returns an edge-work filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547117-areaminimumalphafilter?language=objc -func Filter_AreaMinimumAlphaFilter() Filter { - return FilterClass.AreaMinimumAlphaFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228320-edgeworkfilter?language=objc +func Filter_EdgeWorkFilter() Filter { + return FilterClass.EdgeWorkFilter() } -// Creates a CIFilter object for a specific kind of filter and initializes the input values. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437894-filterwithname?language=objc -func (fc _FilterClass) FilterWithNameWithInputParameters(name string, params map[string]objc.IObject) Filter { - rv := objc.Call[Filter](fc, objc.Sel("filterWithName:withInputParameters:"), name, params) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3801605-vividlightblendmodefilter?language=objc +func (fc _FilterClass) VividLightBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("vividLightBlendModeFilter")) return rv } -// Creates a CIFilter object for a specific kind of filter and initializes the input values. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437894-filterwithname?language=objc -func Filter_FilterWithNameWithInputParameters(name string, params map[string]objc.IObject) Filter { - return FilterClass.FilterWithNameWithInputParameters(name, params) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3801605-vividlightblendmodefilter?language=objc +func Filter_VividLightBlendModeFilter() Filter { + return FilterClass.VividLightBlendModeFilter() } -// Returns a hue-saturation-value gradient filter. [Full Topic] +// Returns a dissolve transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228342-huesaturationvaluegradientfilter?language=objc -func (fc _FilterClass) HueSaturationValueGradientFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("hueSaturationValueGradientFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228314-dissolvetransitionfilter?language=objc +func (fc _FilterClass) DissolveTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("dissolveTransitionFilter")) return rv } -// Returns a hue-saturation-value gradient filter. [Full Topic] +// Returns a dissolve transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228342-huesaturationvaluegradientfilter?language=objc -func Filter_HueSaturationValueGradientFilter() Filter { - return FilterClass.HueSaturationValueGradientFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228314-dissolvetransitionfilter?language=objc +func Filter_DissolveTransitionFilter() Filter { + return FilterClass.DissolveTransitionFilter() } -// Returns a hexagonal pixellate filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228338-hexagonalpixellatefilter?language=objc -func (fc _FilterClass) HexagonalPixellateFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("hexagonalPixellateFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750385-convolutionrgb3x3filter?language=objc +func (fc _FilterClass) ConvolutionRGB3X3Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB3X3Filter")) return rv } -// Returns a hexagonal pixellate filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228338-hexagonalpixellatefilter?language=objc -func Filter_HexagonalPixellateFilter() Filter { - return FilterClass.HexagonalPixellateFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750385-convolutionrgb3x3filter?language=objc +func Filter_ConvolutionRGB3X3Filter() Filter { + return FilterClass.ConvolutionRGB3X3Filter() } -// [Full Topic] +// Returns a sixfold reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600151-stretchcropfilter?language=objc -func (fc _FilterClass) StretchCropFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("stretchCropFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228405-sixfoldreflectedtilefilter?language=objc +func (fc _FilterClass) SixfoldReflectedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sixfoldReflectedTileFilter")) return rv } -// [Full Topic] +// Returns a sixfold reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600151-stretchcropfilter?language=objc -func Filter_StretchCropFilter() Filter { - return FilterClass.StretchCropFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228405-sixfoldreflectedtilefilter?language=objc +func Filter_SixfoldReflectedTileFilter() Filter { + return FilterClass.SixfoldReflectedTileFilter() } -// Returns a maximum component filter. [Full Topic] +// Returns a keystone correction horizontal filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228356-maximumcomponentfilter?language=objc -func (fc _FilterClass) MaximumComponentFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("maximumComponentFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325510-keystonecorrectionhorizontalfilt?language=objc +func (fc _FilterClass) KeystoneCorrectionHorizontalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("keystoneCorrectionHorizontalFilter")) return rv } -// Returns a maximum component filter. [Full Topic] +// Returns a keystone correction horizontal filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228356-maximumcomponentfilter?language=objc -func Filter_MaximumComponentFilter() Filter { - return FilterClass.MaximumComponentFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325510-keystonecorrectionhorizontalfilt?language=objc +func Filter_KeystoneCorrectionHorizontalFilter() Filter { + return FilterClass.KeystoneCorrectionHorizontalFilter() } -// Returns a gloom filter. [Full Topic] +// Returns a convolution 5 x 5 filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228334-gloomfilter?language=objc -func (fc _FilterClass) GloomFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("gloomFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228300-convolution5x5filter?language=objc +func (fc _FilterClass) Convolution5X5Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolution5X5Filter")) return rv } -// Returns a gloom filter. [Full Topic] +// Returns a convolution 5 x 5 filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228334-gloomfilter?language=objc -func Filter_GloomFilter() Filter { - return FilterClass.GloomFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228300-convolution5x5filter?language=objc +func Filter_Convolution5X5Filter() Filter { + return FilterClass.Convolution5X5Filter() } -// Returns a photo-effect tonal filter. [Full Topic] +// Blurs a rectangular area by enlarging contrasting pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228390-photoeffecttonalfilter?language=objc -func (fc _FilterClass) PhotoEffectTonalFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("photoEffectTonalFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228367-morphologyrectanglemaximumfilter?language=objc +func (fc _FilterClass) MorphologyRectangleMaximumFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("morphologyRectangleMaximumFilter")) return rv } -// Returns a photo-effect tonal filter. [Full Topic] +// Blurs a rectangular area by enlarging contrasting pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228390-photoeffecttonalfilter?language=objc -func Filter_PhotoEffectTonalFilter() Filter { - return FilterClass.PhotoEffectTonalFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228367-morphologyrectanglemaximumfilter?language=objc +func Filter_MorphologyRectangleMaximumFilter() Filter { + return FilterClass.MorphologyRectangleMaximumFilter() } -// Returns a color cube mixed with mask filter. [Full Topic] +// Returns a screen blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228289-colorcubesmixedwithmaskfilter?language=objc -func (fc _FilterClass) ColorCubesMixedWithMaskFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorCubesMixedWithMaskFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228401-screenblendmodefilter?language=objc +func (fc _FilterClass) ScreenBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("screenBlendModeFilter")) return rv } -// Returns a color cube mixed with mask filter. [Full Topic] +// Returns a screen blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228289-colorcubesmixedwithmaskfilter?language=objc -func Filter_ColorCubesMixedWithMaskFilter() Filter { - return FilterClass.ColorCubesMixedWithMaskFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228401-screenblendmodefilter?language=objc +func Filter_ScreenBlendModeFilter() Filter { + return FilterClass.ScreenBlendModeFilter() } -// Returns a text image generator filter. [Full Topic] +// Returns a blend with red mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228422-textimagegeneratorfilter?language=objc -func (fc _FilterClass) TextImageGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("textImageGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228275-blendwithredmaskfilter?language=objc +func (fc _FilterClass) BlendWithRedMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("blendWithRedMaskFilter")) return rv } -// Returns a text image generator filter. [Full Topic] +// Returns a blend with red mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228422-textimagegeneratorfilter?language=objc -func Filter_TextImageGeneratorFilter() Filter { - return FilterClass.TextImageGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228275-blendwithredmaskfilter?language=objc +func Filter_BlendWithRedMaskFilter() Filter { + return FilterClass.BlendWithRedMaskFilter() } -// Returns a false color filter. [Full Topic] +// Calculates the median of an image to refine detail. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228325-falsecolorfilter?language=objc -func (fc _FilterClass) FalseColorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("falseColorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228358-medianfilter?language=objc +func (fc _FilterClass) MedianFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("medianFilter")) return rv } -// Returns a false color filter. [Full Topic] +// Calculates the median of an image to refine detail. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228325-falsecolorfilter?language=objc -func Filter_FalseColorFilter() Filter { - return FilterClass.FalseColorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228358-medianfilter?language=objc +func Filter_MedianFilter() Filter { + return FilterClass.MedianFilter() } -// Returns the location of the localized reference documentation that describes the filter. [Full Topic] +// Returns a color blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437642-localizedreferencedocumentationf?language=objc -func (fc _FilterClass) LocalizedReferenceDocumentationForFilterName(filterName string) foundation.URL { - rv := objc.Call[foundation.URL](fc, objc.Sel("localizedReferenceDocumentationForFilterName:"), filterName) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228282-colorblendmodefilter?language=objc +func (fc _FilterClass) ColorBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorBlendModeFilter")) return rv } -// Returns the location of the localized reference documentation that describes the filter. [Full Topic] +// Returns a color blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437642-localizedreferencedocumentationf?language=objc -func Filter_LocalizedReferenceDocumentationForFilterName(filterName string) foundation.URL { - return FilterClass.LocalizedReferenceDocumentationForFilterName(filterName) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228282-colorblendmodefilter?language=objc +func Filter_ColorBlendModeFilter() Filter { + return FilterClass.ColorBlendModeFilter() } -// Returns a swipe transition filter. [Full Topic] +// Applies a bokeh effect to an image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228420-swipetransitionfilter?language=objc -func (fc _FilterClass) SwipeTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("swipeTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228277-bokehblurfilter?language=objc +func (fc _FilterClass) BokehBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("bokehBlurFilter")) return rv } -// Returns a swipe transition filter. [Full Topic] +// Applies a bokeh effect to an image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228420-swipetransitionfilter?language=objc -func Filter_SwipeTransitionFilter() Filter { - return FilterClass.SwipeTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228277-bokehblurfilter?language=objc +func Filter_BokehBlurFilter() Filter { + return FilterClass.BokehBlurFilter() } -// Applies a circle-shaped blur to an area of an image. [Full Topic] +// Returns a line screen filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228311-discblurfilter?language=objc -func (fc _FilterClass) DiscBlurFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("discBlurFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228348-linescreenfilter?language=objc +func (fc _FilterClass) LineScreenFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lineScreenFilter")) return rv } -// Applies a circle-shaped blur to an area of an image. [Full Topic] +// Returns a line screen filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228311-discblurfilter?language=objc -func Filter_DiscBlurFilter() Filter { - return FilterClass.DiscBlurFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228348-linescreenfilter?language=objc +func Filter_LineScreenFilter() Filter { + return FilterClass.LineScreenFilter() } -// Returns a convolution 7 x 7 filter. [Full Topic] +// Returns a Core ML model filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228301-convolution7x7filter?language=objc -func (fc _FilterClass) Convolution7X7Filter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("convolution7X7Filter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228305-coremlmodelfilter?language=objc +func (fc _FilterClass) CoreMLModelFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("coreMLModelFilter")) return rv } -// Returns a convolution 7 x 7 filter. [Full Topic] +// Returns a Core ML model filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228301-convolution7x7filter?language=objc -func Filter_Convolution7X7Filter() Filter { - return FilterClass.Convolution7X7Filter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228305-coremlmodelfilter?language=objc +func Filter_CoreMLModelFilter() Filter { + return FilterClass.CoreMLModelFilter() } -// Returns a radial gradient filter. [Full Topic] +// Returns a keystone correction combined filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228395-radialgradientfilter?language=objc -func (fc _FilterClass) RadialGradientFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("radialGradientFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325509-keystonecorrectioncombinedfilter?language=objc +func (fc _FilterClass) KeystoneCorrectionCombinedFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("keystoneCorrectionCombinedFilter")) return rv } -// Returns a radial gradient filter. [Full Topic] +// Returns a keystone correction combined filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228395-radialgradientfilter?language=objc -func Filter_RadialGradientFilter() Filter { - return FilterClass.RadialGradientFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325509-keystonecorrectioncombinedfilter?language=objc +func Filter_KeystoneCorrectionCombinedFilter() Filter { + return FilterClass.KeystoneCorrectionCombinedFilter() } -// Returns a hard-light blend mode filter. [Full Topic] +// Returns a hue adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228335-hardlightblendmodefilter?language=objc -func (fc _FilterClass) HardLightBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("hardLightBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228340-hueadjustfilter?language=objc +func (fc _FilterClass) HueAdjustFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hueAdjustFilter")) return rv } -// Returns a hard-light blend mode filter. [Full Topic] +// Returns a hue adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228335-hardlightblendmodefilter?language=objc -func Filter_HardLightBlendModeFilter() Filter { - return FilterClass.HardLightBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228340-hueadjustfilter?language=objc +func Filter_HueAdjustFilter() Filter { + return FilterClass.HueAdjustFilter() } -// Returns a mask-to-alpha filter. [Full Topic] +// Returns a hue-saturation-value gradient filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228354-masktoalphafilter?language=objc -func (fc _FilterClass) MaskToAlphaFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("maskToAlphaFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228342-huesaturationvaluegradientfilter?language=objc +func (fc _FilterClass) HueSaturationValueGradientFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hueSaturationValueGradientFilter")) return rv } -// Returns a mask-to-alpha filter. [Full Topic] +// Returns a hue-saturation-value gradient filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228354-masktoalphafilter?language=objc -func Filter_MaskToAlphaFilter() Filter { - return FilterClass.MaskToAlphaFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228342-huesaturationvaluegradientfilter?language=objc +func Filter_HueSaturationValueGradientFilter() Filter { + return FilterClass.HueSaturationValueGradientFilter() } -// Returns a perspective tile filter. [Full Topic] +// Returns a photo-effect mono filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228381-perspectivetilefilter?language=objc -func (fc _FilterClass) PerspectiveTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("perspectiveTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228387-photoeffectmonofilter?language=objc +func (fc _FilterClass) PhotoEffectMonoFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectMonoFilter")) return rv } -// Returns a perspective tile filter. [Full Topic] +// Returns a photo-effect mono filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228381-perspectivetilefilter?language=objc -func Filter_PerspectiveTileFilter() Filter { - return FilterClass.PerspectiveTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228387-photoeffectmonofilter?language=objc +func Filter_PhotoEffectMonoFilter() Filter { + return FilterClass.PhotoEffectMonoFilter() } -// Returns a bars swipe transition filter. [Full Topic] +// Returns a convolution 9 vertical filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228270-barsswipetransitionfilter?language=objc -func (fc _FilterClass) BarsSwipeTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("barsSwipeTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228303-convolution9verticalfilter?language=objc +func (fc _FilterClass) Convolution9VerticalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolution9VerticalFilter")) return rv } -// Returns a bars swipe transition filter. [Full Topic] +// Returns a convolution 9 vertical filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228270-barsswipetransitionfilter?language=objc -func Filter_BarsSwipeTransitionFilter() Filter { - return FilterClass.BarsSwipeTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228303-convolution9verticalfilter?language=objc +func Filter_Convolution9VerticalFilter() Filter { + return FilterClass.Convolution9VerticalFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600141-circularwrapfilter?language=objc -func (fc _FilterClass) CircularWrapFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("circularWrapFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547117-areaminimumalphafilter?language=objc +func (fc _FilterClass) AreaMinimumAlphaFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaMinimumAlphaFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600141-circularwrapfilter?language=objc -func Filter_CircularWrapFilter() Filter { - return FilterClass.CircularWrapFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547117-areaminimumalphafilter?language=objc +func Filter_AreaMinimumAlphaFilter() Filter { + return FilterClass.AreaMinimumAlphaFilter() } -// Returns a color curves filter. [Full Topic] +// Returns a dither filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228290-colorcurvesfilter?language=objc -func (fc _FilterClass) ColorCurvesFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorCurvesFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228315-ditherfilter?language=objc +func (fc _FilterClass) DitherFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("ditherFilter")) return rv } -// Returns a color curves filter. [Full Topic] +// Returns a dither filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228290-colorcurvesfilter?language=objc -func Filter_ColorCurvesFilter() Filter { - return FilterClass.ColorCurvesFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228315-ditherfilter?language=objc +func Filter_DitherFilter() Filter { + return FilterClass.DitherFilter() } -// Returns a Gaussian gradient filter. [Full Topic] +// Returns a photo-effect transfer filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228332-gaussiangradientfilter?language=objc -func (fc _FilterClass) GaussianGradientFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("gaussianGradientFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228391-photoeffecttransferfilter?language=objc +func (fc _FilterClass) PhotoEffectTransferFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectTransferFilter")) return rv } -// Returns a Gaussian gradient filter. [Full Topic] +// Returns a photo-effect transfer filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228332-gaussiangradientfilter?language=objc -func Filter_GaussianGradientFilter() Filter { - return FilterClass.GaussianGradientFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228391-photoeffecttransferfilter?language=objc +func Filter_PhotoEffectTransferFilter() Filter { + return FilterClass.PhotoEffectTransferFilter() } -// Returns a sepia-tone filter. [Full Topic] +// Returns a stripes generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228402-sepiatonefilter?language=objc -func (fc _FilterClass) SepiaToneFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("sepiaToneFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228417-stripesgeneratorfilter?language=objc +func (fc _FilterClass) StripesGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("stripesGeneratorFilter")) return rv } -// Returns a sepia-tone filter. [Full Topic] +// Returns a stripes generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228402-sepiatonefilter?language=objc -func Filter_SepiaToneFilter() Filter { - return FilterClass.SepiaToneFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228417-stripesgeneratorfilter?language=objc +func Filter_StripesGeneratorFilter() Filter { + return FilterClass.StripesGeneratorFilter() } -// Returns a height-field-from-mask filter. [Full Topic] +// Returns a white-point adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228337-heightfieldfrommaskfilter?language=objc -func (fc _FilterClass) HeightFieldFromMaskFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("heightFieldFromMaskFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228432-whitepointadjustfilter?language=objc +func (fc _FilterClass) WhitePointAdjustFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("whitePointAdjustFilter")) return rv } -// Returns a height-field-from-mask filter. [Full Topic] +// Returns a white-point adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228337-heightfieldfrommaskfilter?language=objc -func Filter_HeightFieldFromMaskFilter() Filter { - return FilterClass.HeightFieldFromMaskFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228432-whitepointadjustfilter?language=objc +func Filter_WhitePointAdjustFilter() Filter { + return FilterClass.WhitePointAdjustFilter() } -// Returns an unsharp mask filter. [Full Topic] +// Returns a Code 128 barcode generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228428-unsharpmaskfilter?language=objc -func (fc _FilterClass) UnsharpMaskFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("unsharpMaskFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228281-code128barcodegeneratorfilter?language=objc +func (fc _FilterClass) Code128BarcodeGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("code128BarcodeGeneratorFilter")) return rv } -// Returns an unsharp mask filter. [Full Topic] +// Returns a Code 128 barcode generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228428-unsharpmaskfilter?language=objc -func Filter_UnsharpMaskFilter() Filter { - return FilterClass.UnsharpMaskFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228281-code128barcodegeneratorfilter?language=objc +func Filter_Code128BarcodeGeneratorFilter() Filter { + return FilterClass.Code128BarcodeGeneratorFilter() } -// Returns a random generator filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228396-randomgeneratorfilter?language=objc -func (fc _FilterClass) RandomGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("randomGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600143-drostefilter?language=objc +func (fc _FilterClass) DrosteFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("drosteFilter")) return rv } -// Returns a random generator filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228396-randomgeneratorfilter?language=objc -func Filter_RandomGeneratorFilter() Filter { - return FilterClass.RandomGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600143-drostefilter?language=objc +func Filter_DrosteFilter() Filter { + return FilterClass.DrosteFilter() } -// [Full Topic] +// Returns a circular screen filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750390-personsegmentationfilter?language=objc -func (fc _FilterClass) PersonSegmentationFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("personSegmentationFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228280-circularscreenfilter?language=objc +func (fc _FilterClass) CircularScreenFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("circularScreenFilter")) return rv } -// [Full Topic] +// Returns a circular screen filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750390-personsegmentationfilter?language=objc -func Filter_PersonSegmentationFilter() Filter { - return FilterClass.PersonSegmentationFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228280-circularscreenfilter?language=objc +func Filter_CircularScreenFilter() Filter { + return FilterClass.CircularScreenFilter() } -// Returns an affine clamp filter. [Full Topic] +// Returns the location of the localized reference documentation that describes the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228265-affineclampfilter?language=objc -func (fc _FilterClass) AffineClampFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("affineClampFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437642-localizedreferencedocumentationf?language=objc +func (fc _FilterClass) LocalizedReferenceDocumentationForFilterName(filterName string) foundation.URL { + rv := objc.Call[foundation.URL](fc, objc.Sel("localizedReferenceDocumentationForFilterName:"), filterName) return rv } -// Returns an affine clamp filter. [Full Topic] +// Returns the location of the localized reference documentation that describes the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228265-affineclampfilter?language=objc -func Filter_AffineClampFilter() Filter { - return FilterClass.AffineClampFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437642-localizedreferencedocumentationf?language=objc +func Filter_LocalizedReferenceDocumentationForFilterName(filterName string) foundation.URL { + return FilterClass.LocalizedReferenceDocumentationForFilterName(filterName) } -// Returns a triangle kaleidoscope filter. [Full Topic] +// Returns a gamma adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228425-trianglekaleidoscopefilter?language=objc -func (fc _FilterClass) TriangleKaleidoscopeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("triangleKaleidoscopeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228330-gammaadjustfilter?language=objc +func (fc _FilterClass) GammaAdjustFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("gammaAdjustFilter")) return rv } -// Returns a triangle kaleidoscope filter. [Full Topic] +// Returns a gamma adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228425-trianglekaleidoscopefilter?language=objc -func Filter_TriangleKaleidoscopeFilter() Filter { - return FilterClass.TriangleKaleidoscopeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228330-gammaadjustfilter?language=objc +func Filter_GammaAdjustFilter() Filter { + return FilterClass.GammaAdjustFilter() } -// Returns a linear-burn blend mode filter. [Full Topic] +// Returns a perspective tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228349-linearburnblendmodefilter?language=objc -func (fc _FilterClass) LinearBurnBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("linearBurnBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228381-perspectivetilefilter?language=objc +func (fc _FilterClass) PerspectiveTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("perspectiveTileFilter")) return rv } -// Returns a linear-burn blend mode filter. [Full Topic] +// Returns a perspective tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228349-linearburnblendmodefilter?language=objc -func Filter_LinearBurnBlendModeFilter() Filter { - return FilterClass.LinearBurnBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228381-perspectivetilefilter?language=objc +func Filter_PerspectiveTileFilter() Filter { + return FilterClass.PerspectiveTileFilter() } -// Returns a photo-effect process filter. [Full Topic] +// Returns the localized description of a filter for display in the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228389-photoeffectprocessfilter?language=objc -func (fc _FilterClass) PhotoEffectProcessFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("photoEffectProcessFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437591-localizeddescriptionforfilternam?language=objc +func (fc _FilterClass) LocalizedDescriptionForFilterName(filterName string) string { + rv := objc.Call[string](fc, objc.Sel("localizedDescriptionForFilterName:"), filterName) return rv } -// Returns a photo-effect process filter. [Full Topic] +// Returns the localized description of a filter for display in the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228389-photoeffectprocessfilter?language=objc -func Filter_PhotoEffectProcessFilter() Filter { - return FilterClass.PhotoEffectProcessFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437591-localizeddescriptionforfilternam?language=objc +func Filter_LocalizedDescriptionForFilterName(filterName string) string { + return FilterClass.LocalizedDescriptionForFilterName(filterName) } -// Returns a star-shine generator filter. [Full Topic] +// Returns a comic effect filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228415-starshinegeneratorfilter?language=objc -func (fc _FilterClass) StarShineGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("starShineGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228298-comiceffectfilter?language=objc +func (fc _FilterClass) ComicEffectFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("comicEffectFilter")) return rv } -// Returns a star-shine generator filter. [Full Topic] +// Returns a comic effect filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228415-starshinegeneratorfilter?language=objc -func Filter_StarShineGeneratorFilter() Filter { - return FilterClass.StarShineGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228298-comiceffectfilter?language=objc +func Filter_ComicEffectFilter() Filter { + return FilterClass.ComicEffectFilter() } -// Returns a color cross-polynomial filter. [Full Topic] +// Returns a vibrance filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228286-colorcrosspolynomialfilter?language=objc -func (fc _FilterClass) ColorCrossPolynomialFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorCrossPolynomialFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228429-vibrancefilter?language=objc +func (fc _FilterClass) VibranceFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("vibranceFilter")) return rv } -// Returns a color cross-polynomial filter. [Full Topic] +// Returns a vibrance filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228286-colorcrosspolynomialfilter?language=objc -func Filter_ColorCrossPolynomialFilter() Filter { - return FilterClass.ColorCrossPolynomialFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228429-vibrancefilter?language=objc +func Filter_VibranceFilter() Filter { + return FilterClass.VibranceFilter() } -// Returns a color cube filter. [Full Topic] +// Returns a photo-effect instant filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228287-colorcubefilter?language=objc -func (fc _FilterClass) ColorCubeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorCubeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228386-photoeffectinstantfilter?language=objc +func (fc _FilterClass) PhotoEffectInstantFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectInstantFilter")) return rv } -// Returns a color cube filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228287-colorcubefilter?language=objc -func Filter_ColorCubeFilter() Filter { - return FilterClass.ColorCubeFilter() -} - -// A name associated with a filter. [Full Topic] +// Returns a photo-effect instant filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437997-setname?language=objc -func (f_ Filter) SetName(aString string) { - objc.Call[objc.Void](f_, objc.Sel("setName:"), aString) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228386-photoeffectinstantfilter?language=objc +func Filter_PhotoEffectInstantFilter() Filter { + return FilterClass.PhotoEffectInstantFilter() } -// Returns a hatched screen filter. [Full Topic] +// Returns a subtract blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228336-hatchedscreenfilter?language=objc -func (fc _FilterClass) HatchedScreenFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("hatchedScreenFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228418-subtractblendmodefilter?language=objc +func (fc _FilterClass) SubtractBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("subtractBlendModeFilter")) return rv } -// Returns a hatched screen filter. [Full Topic] +// Returns a subtract blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228336-hatchedscreenfilter?language=objc -func Filter_HatchedScreenFilter() Filter { - return FilterClass.HatchedScreenFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228418-subtractblendmodefilter?language=objc +func Filter_SubtractBlendModeFilter() Filter { + return FilterClass.SubtractBlendModeFilter() } -// Returns a palette centroid filter. [Full Topic] +// Returns a hard-light blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228377-palettecentroidfilter?language=objc -func (fc _FilterClass) PaletteCentroidFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("paletteCentroidFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228335-hardlightblendmodefilter?language=objc +func (fc _FilterClass) HardLightBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hardLightBlendModeFilter")) return rv } -// Returns a palette centroid filter. [Full Topic] +// Returns a hard-light blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228377-palettecentroidfilter?language=objc -func Filter_PaletteCentroidFilter() Filter { - return FilterClass.PaletteCentroidFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228335-hardlightblendmodefilter?language=objc +func Filter_HardLightBlendModeFilter() Filter { + return FilterClass.HardLightBlendModeFilter() } -// Blurs a circular area by enlarging contrasting pixels. [Full Topic] +// Returns a mesh generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228365-morphologymaximumfilter?language=objc -func (fc _FilterClass) MorphologyMaximumFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("morphologyMaximumFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228359-meshgeneratorfilter?language=objc +func (fc _FilterClass) MeshGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("meshGeneratorFilter")) return rv } -// Blurs a circular area by enlarging contrasting pixels. [Full Topic] +// Returns a mesh generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228365-morphologymaximumfilter?language=objc -func Filter_MorphologyMaximumFilter() Filter { - return FilterClass.MorphologyMaximumFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228359-meshgeneratorfilter?language=objc +func Filter_MeshGeneratorFilter() Filter { + return FilterClass.MeshGeneratorFilter() } -// Returns a sixfold rotated tile filter. [Full Topic] +// Returns a darken blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228406-sixfoldrotatedtilefilter?language=objc -func (fc _FilterClass) SixfoldRotatedTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("sixfoldRotatedTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228307-darkenblendmodefilter?language=objc +func (fc _FilterClass) DarkenBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("darkenBlendModeFilter")) return rv } -// Returns a sixfold rotated tile filter. [Full Topic] +// Returns a darken blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228406-sixfoldrotatedtilefilter?language=objc -func Filter_SixfoldRotatedTileFilter() Filter { - return FilterClass.SixfoldRotatedTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228307-darkenblendmodefilter?language=objc +func Filter_DarkenBlendModeFilter() Filter { + return FilterClass.DarkenBlendModeFilter() } -// Applies a square-shaped blur to an area of an image. [Full Topic] +// Returns an accordion fold transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228278-boxblurfilter?language=objc -func (fc _FilterClass) BoxBlurFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("boxBlurFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228263-accordionfoldtransitionfilter?language=objc +func (fc _FilterClass) AccordionFoldTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("accordionFoldTransitionFilter")) return rv } -// Applies a square-shaped blur to an area of an image. [Full Topic] +// Returns an accordion fold transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228278-boxblurfilter?language=objc -func Filter_BoxBlurFilter() Filter { - return FilterClass.BoxBlurFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228263-accordionfoldtransitionfilter?language=objc +func Filter_AccordionFoldTransitionFilter() Filter { + return FilterClass.AccordionFoldTransitionFilter() } -// Returns a subtract blend mode filter. [Full Topic] +// Returns a lenticular halo generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228418-subtractblendmodefilter?language=objc -func (fc _FilterClass) SubtractBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("subtractBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228345-lenticularhalogeneratorfilter?language=objc +func (fc _FilterClass) LenticularHaloGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lenticularHaloGeneratorFilter")) return rv } -// Returns a subtract blend mode filter. [Full Topic] +// Returns a lenticular halo generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228418-subtractblendmodefilter?language=objc -func Filter_SubtractBlendModeFilter() Filter { - return FilterClass.SubtractBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228345-lenticularhalogeneratorfilter?language=objc +func Filter_LenticularHaloGeneratorFilter() Filter { + return FilterClass.LenticularHaloGeneratorFilter() } -// [Full Topic] +// Returns a color cross-polynomial filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600150-pinchdistortionfilter?language=objc -func (fc _FilterClass) PinchDistortionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("pinchDistortionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228286-colorcrosspolynomialfilter?language=objc +func (fc _FilterClass) ColorCrossPolynomialFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorCrossPolynomialFilter")) return rv } -// [Full Topic] +// Returns a color cross-polynomial filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600150-pinchdistortionfilter?language=objc -func Filter_PinchDistortionFilter() Filter { - return FilterClass.PinchDistortionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228286-colorcrosspolynomialfilter?language=objc +func Filter_ColorCrossPolynomialFilter() Filter { + return FilterClass.ColorCrossPolynomialFilter() } -// [Full Topic] +// Returns a soft-light blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600142-displacementdistortionfilter?language=objc -func (fc _FilterClass) DisplacementDistortionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("displacementDistortionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228408-softlightblendmodefilter?language=objc +func (fc _FilterClass) SoftLightBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("softLightBlendModeFilter")) return rv } -// [Full Topic] +// Returns a soft-light blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600142-displacementdistortionfilter?language=objc -func Filter_DisplacementDistortionFilter() Filter { - return FilterClass.DisplacementDistortionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228408-softlightblendmodefilter?language=objc +func Filter_SoftLightBlendModeFilter() Filter { + return FilterClass.SoftLightBlendModeFilter() } -// Returns an exclusion blend mode filter. [Full Topic] +// Returns a bloom filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228323-exclusionblendmodefilter?language=objc -func (fc _FilterClass) ExclusionBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("exclusionBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228276-bloomfilter?language=objc +func (fc _FilterClass) BloomFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("bloomFilter")) return rv } -// Returns an exclusion blend mode filter. [Full Topic] +// Returns a bloom filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228323-exclusionblendmodefilter?language=objc -func Filter_ExclusionBlendModeFilter() Filter { - return FilterClass.ExclusionBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228276-bloomfilter?language=objc +func Filter_BloomFilter() Filter { + return FilterClass.BloomFilter() } -// Returns a straighten filter. [Full Topic] +// Returns a barcode generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228416-straightenfilter?language=objc -func (fc _FilterClass) StraightenFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("straightenFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228269-barcodegeneratorfilter?language=objc +func (fc _FilterClass) BarcodeGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("barcodeGeneratorFilter")) return rv } -// Returns a straighten filter. [Full Topic] +// Returns a barcode generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228416-straightenfilter?language=objc -func Filter_StraightenFilter() Filter { - return FilterClass.StraightenFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228269-barcodegeneratorfilter?language=objc +func Filter_BarcodeGeneratorFilter() Filter { + return FilterClass.BarcodeGeneratorFilter() } -// [Full Topic] +// Returns a PDF417 barcode generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600147-lighttunnelfilter?language=objc -func (fc _FilterClass) LightTunnelFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("lightTunnelFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228261-pdf417barcodegenerator?language=objc +func (fc _FilterClass) PDF417BarcodeGenerator() Filter { + rv := objc.Call[Filter](fc, objc.Sel("PDF417BarcodeGenerator")) return rv } -// [Full Topic] +// Returns a PDF417 barcode generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600147-lighttunnelfilter?language=objc -func Filter_LightTunnelFilter() Filter { - return FilterClass.LightTunnelFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228261-pdf417barcodegenerator?language=objc +func Filter_PDF417BarcodeGenerator() Filter { + return FilterClass.PDF417BarcodeGenerator() } -// Returns a mesh generator filter. [Full Topic] +// Returns a photo-effect noir filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228359-meshgeneratorfilter?language=objc -func (fc _FilterClass) MeshGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("meshGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228388-photoeffectnoirfilter?language=objc +func (fc _FilterClass) PhotoEffectNoirFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectNoirFilter")) return rv } -// Returns a mesh generator filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228359-meshgeneratorfilter?language=objc -func Filter_MeshGeneratorFilter() Filter { - return FilterClass.MeshGeneratorFilter() -} - -// Sets all input values for a filter to default values. [Full Topic] +// Returns a photo-effect noir filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437902-setdefaults?language=objc -func (f_ Filter) SetDefaults() { - objc.Call[objc.Void](f_, objc.Sel("setDefaults")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228388-photoeffectnoirfilter?language=objc +func Filter_PhotoEffectNoirFilter() Filter { + return FilterClass.PhotoEffectNoirFilter() } -// Returns a convolution 9 horizontal filter. [Full Topic] +// Returns a copy machine transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228302-convolution9horizontalfilter?language=objc -func (fc _FilterClass) Convolution9HorizontalFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("convolution9HorizontalFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228304-copymachinetransitionfilter?language=objc +func (fc _FilterClass) CopyMachineTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("copyMachineTransitionFilter")) return rv } -// Returns a convolution 9 horizontal filter. [Full Topic] +// Returns a copy machine transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228302-convolution9horizontalfilter?language=objc -func Filter_Convolution9HorizontalFilter() Filter { - return FilterClass.Convolution9HorizontalFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228304-copymachinetransitionfilter?language=objc +func Filter_CopyMachineTransitionFilter() Filter { + return FilterClass.CopyMachineTransitionFilter() } -// Returns a pin-light blend mode filter. [Full Topic] +// Returns a hatched screen filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228392-pinlightblendmodefilter?language=objc -func (fc _FilterClass) PinLightBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("pinLightBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228336-hatchedscreenfilter?language=objc +func (fc _FilterClass) HatchedScreenFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hatchedScreenFilter")) return rv } -// Returns a pin-light blend mode filter. [Full Topic] +// Returns a hatched screen filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228392-pinlightblendmodefilter?language=objc -func Filter_PinLightBlendModeFilter() Filter { - return FilterClass.PinLightBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228336-hatchedscreenfilter?language=objc +func Filter_HatchedScreenFilter() Filter { + return FilterClass.HatchedScreenFilter() } -// [Full Topic] +// Returns a Aztec code generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3801604-linearlightblendmodefilter?language=objc -func (fc _FilterClass) LinearLightBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("linearLightBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228268-azteccodegeneratorfilter?language=objc +func (fc _FilterClass) AztecCodeGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("aztecCodeGeneratorFilter")) return rv } -// [Full Topic] +// Returns a Aztec code generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3801604-linearlightblendmodefilter?language=objc -func Filter_LinearLightBlendModeFilter() Filter { - return FilterClass.LinearLightBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228268-azteccodegeneratorfilter?language=objc +func Filter_AztecCodeGeneratorFilter() Filter { + return FilterClass.AztecCodeGeneratorFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547112-areahistogramfilter?language=objc -func (fc _FilterClass) AreaHistogramFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("areaHistogramFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600154-vortexdistortionfilter?language=objc +func (fc _FilterClass) VortexDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("vortexDistortionFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547112-areahistogramfilter?language=objc -func Filter_AreaHistogramFilter() Filter { - return FilterClass.AreaHistogramFilter() -} - -// Returns a color-dodge blend mode filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228291-colordodgeblendmodefilter?language=objc -func (fc _FilterClass) ColorDodgeBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorDodgeBlendModeFilter")) - return rv -} - -// Returns a color-dodge blend mode filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228291-colordodgeblendmodefilter?language=objc -func Filter_ColorDodgeBlendModeFilter() Filter { - return FilterClass.ColorDodgeBlendModeFilter() -} - -// Returns a photo-effect mono filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228387-photoeffectmonofilter?language=objc -func (fc _FilterClass) PhotoEffectMonoFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("photoEffectMonoFilter")) - return rv -} - -// Returns a photo-effect mono filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228387-photoeffectmonofilter?language=objc -func Filter_PhotoEffectMonoFilter() Filter { - return FilterClass.PhotoEffectMonoFilter() -} - -// Returns a perspective correction filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228380-perspectivecorrectionfilter?language=objc -func (fc _FilterClass) PerspectiveCorrectionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("perspectiveCorrectionFilter")) - return rv -} - -// Returns a perspective correction filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228380-perspectivecorrectionfilter?language=objc -func Filter_PerspectiveCorrectionFilter() Filter { - return FilterClass.PerspectiveCorrectionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600154-vortexdistortionfilter?language=objc +func Filter_VortexDistortionFilter() Filter { + return FilterClass.VortexDistortionFilter() } -// [Full Topic] +// Returns a saliency map filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600140-circlesplashdistortionfilter?language=objc -func (fc _FilterClass) CircleSplashDistortionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("circleSplashDistortionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228399-saliencymapfilter?language=objc +func (fc _FilterClass) SaliencyMapFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("saliencyMapFilter")) return rv } -// [Full Topic] +// Returns a saliency map filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600140-circlesplashdistortionfilter?language=objc -func Filter_CircleSplashDistortionFilter() Filter { - return FilterClass.CircleSplashDistortionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228399-saliencymapfilter?language=objc +func Filter_SaliencyMapFilter() Filter { + return FilterClass.SaliencyMapFilter() } -// Returns a page curl transition filter. [Full Topic] +// Returns a photo-effect fade filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228375-pagecurltransitionfilter?language=objc -func (fc _FilterClass) PageCurlTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("pageCurlTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228385-photoeffectfadefilter?language=objc +func (fc _FilterClass) PhotoEffectFadeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectFadeFilter")) return rv } -// Returns a page curl transition filter. [Full Topic] +// Returns a photo-effect fade filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228375-pagecurltransitionfilter?language=objc -func Filter_PageCurlTransitionFilter() Filter { - return FilterClass.PageCurlTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228385-photoeffectfadefilter?language=objc +func Filter_PhotoEffectFadeFilter() Filter { + return FilterClass.PhotoEffectFadeFilter() } -// Returns a photo-effect transfer filter. [Full Topic] +// Returns a sharpen luminance filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228391-photoeffecttransferfilter?language=objc -func (fc _FilterClass) PhotoEffectTransferFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("photoEffectTransferFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228404-sharpenluminancefilter?language=objc +func (fc _FilterClass) SharpenLuminanceFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sharpenLuminanceFilter")) return rv } -// Returns a photo-effect transfer filter. [Full Topic] +// Returns a sharpen luminance filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228391-photoeffecttransferfilter?language=objc -func Filter_PhotoEffectTransferFilter() Filter { - return FilterClass.PhotoEffectTransferFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228404-sharpenluminancefilter?language=objc +func Filter_SharpenLuminanceFilter() Filter { + return FilterClass.SharpenLuminanceFilter() } -// [Full Topic] +// Returns a triangle kaleidoscope filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750387-convolutionrgb7x7filter?language=objc -func (fc _FilterClass) ConvolutionRGB7X7Filter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB7X7Filter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228425-trianglekaleidoscopefilter?language=objc +func (fc _FilterClass) TriangleKaleidoscopeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("triangleKaleidoscopeFilter")) return rv } -// [Full Topic] +// Returns a triangle kaleidoscope filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750387-convolutionrgb7x7filter?language=objc -func Filter_ConvolutionRGB7X7Filter() Filter { - return FilterClass.ConvolutionRGB7X7Filter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228425-trianglekaleidoscopefilter?language=objc +func Filter_TriangleKaleidoscopeFilter() Filter { + return FilterClass.TriangleKaleidoscopeFilter() } -// Creates a CIFilter object for a specific kind of filter and initializes the input values with a nil-terminated list of arguments. [Full Topic] +// Returns an addition compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1562057-filterwithname?language=objc -func (fc _FilterClass) FilterWithNameKeysAndValues(name string, key0 objc.IObject, args ...any) Filter { - rv := objc.Call[Filter](fc, objc.Sel("filterWithName:keysAndValues:"), append([]any{name, key0}, args...)...) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228264-additioncompositingfilter?language=objc +func (fc _FilterClass) AdditionCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("additionCompositingFilter")) return rv } -// Creates a CIFilter object for a specific kind of filter and initializes the input values with a nil-terminated list of arguments. [Full Topic] +// Returns an addition compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1562057-filterwithname?language=objc -func Filter_FilterWithNameKeysAndValues(name string, key0 objc.IObject, args ...any) Filter { - return FilterClass.FilterWithNameKeysAndValues(name, key0, args...) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228264-additioncompositingfilter?language=objc +func Filter_AdditionCompositingFilter() Filter { + return FilterClass.AdditionCompositingFilter() } -// Returns an edges filter. [Full Topic] +// Returns a keystone correction vertical filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228321-edgesfilter?language=objc -func (fc _FilterClass) EdgesFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("edgesFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325511-keystonecorrectionverticalfilter?language=objc +func (fc _FilterClass) KeystoneCorrectionVerticalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("keystoneCorrectionVerticalFilter")) return rv } -// Returns an edges filter. [Full Topic] +// Returns a keystone correction vertical filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228321-edgesfilter?language=objc -func Filter_EdgesFilter() Filter { - return FilterClass.EdgesFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325511-keystonecorrectionverticalfilter?language=objc +func Filter_KeystoneCorrectionVerticalFilter() Filter { + return FilterClass.KeystoneCorrectionVerticalFilter() } -// Blurs an image with a Gaussian distribution pattern. [Full Topic] +// Returns a Lab Delta E filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228331-gaussianblurfilter?language=objc -func (fc _FilterClass) GaussianBlurFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("gaussianBlurFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228260-labdeltae?language=objc +func (fc _FilterClass) LabDeltaE() Filter { + rv := objc.Call[Filter](fc, objc.Sel("LabDeltaE")) return rv } -// Blurs an image with a Gaussian distribution pattern. [Full Topic] +// Returns a Lab Delta E filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228331-gaussianblurfilter?language=objc -func Filter_GaussianBlurFilter() Filter { - return FilterClass.GaussianBlurFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228260-labdeltae?language=objc +func Filter_LabDeltaE() Filter { + return FilterClass.LabDeltaE() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547115-areaminmaxfilter?language=objc -func (fc _FilterClass) AreaMinMaxFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("areaMinMaxFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547121-columnaveragefilter?language=objc +func (fc _FilterClass) ColumnAverageFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("columnAverageFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547115-areaminmaxfilter?language=objc -func Filter_AreaMinMaxFilter() Filter { - return FilterClass.AreaMinMaxFilter() -} - -// Returns a triangle tile filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228426-triangletilefilter?language=objc -func (fc _FilterClass) TriangleTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("triangleTileFilter")) - return rv -} - -// Returns a triangle tile filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228426-triangletilefilter?language=objc -func Filter_TriangleTileFilter() Filter { - return FilterClass.TriangleTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547121-columnaveragefilter?language=objc +func Filter_ColumnAverageFilter() Filter { + return FilterClass.ColumnAverageFilter() } -// Returns a depth-to-disparity filter. [Full Topic] +// Creates a zoom blur centered around a single point on the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228309-depthtodisparityfilter?language=objc -func (fc _FilterClass) DepthToDisparityFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("depthToDisparityFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228434-zoomblurfilter?language=objc +func (fc _FilterClass) ZoomBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("zoomBlurFilter")) return rv } -// Returns a depth-to-disparity filter. [Full Topic] +// Creates a zoom blur centered around a single point on the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228309-depthtodisparityfilter?language=objc -func Filter_DepthToDisparityFilter() Filter { - return FilterClass.DepthToDisparityFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228434-zoomblurfilter?language=objc +func Filter_ZoomBlurFilter() Filter { + return FilterClass.ZoomBlurFilter() } -// Returns a color-burn blend mode filter. [Full Topic] +// Returns a maximum compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228283-colorburnblendmodefilter?language=objc -func (fc _FilterClass) ColorBurnBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorBurnBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228357-maximumcompositingfilter?language=objc +func (fc _FilterClass) MaximumCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("maximumCompositingFilter")) return rv } -// Returns a color-burn blend mode filter. [Full Topic] +// Returns a maximum compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228283-colorburnblendmodefilter?language=objc -func Filter_ColorBurnBlendModeFilter() Filter { - return FilterClass.ColorBurnBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228357-maximumcompositingfilter?language=objc +func Filter_MaximumCompositingFilter() Filter { + return FilterClass.MaximumCompositingFilter() } -// Returns a temperature and tint filter. [Full Topic] +// Returns a false color filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228421-temperatureandtintfilter?language=objc -func (fc _FilterClass) TemperatureAndTintFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("temperatureAndTintFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228325-falsecolorfilter?language=objc +func (fc _FilterClass) FalseColorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("falseColorFilter")) return rv } -// Returns a temperature and tint filter. [Full Topic] +// Returns a false color filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228421-temperatureandtintfilter?language=objc -func Filter_TemperatureAndTintFilter() Filter { - return FilterClass.TemperatureAndTintFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228325-falsecolorfilter?language=objc +func Filter_FalseColorFilter() Filter { + return FilterClass.FalseColorFilter() } -// Returns an edge-work filter. [Full Topic] +// Returns an unsharp mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228320-edgeworkfilter?language=objc -func (fc _FilterClass) EdgeWorkFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("edgeWorkFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228428-unsharpmaskfilter?language=objc +func (fc _FilterClass) UnsharpMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("unsharpMaskFilter")) return rv } -// Returns an edge-work filter. [Full Topic] +// Returns an unsharp mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228320-edgeworkfilter?language=objc -func Filter_EdgeWorkFilter() Filter { - return FilterClass.EdgeWorkFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228428-unsharpmaskfilter?language=objc +func Filter_UnsharpMaskFilter() Filter { + return FilterClass.UnsharpMaskFilter() } -// Returns a lenticular halo generator filter. [Full Topic] +// Returns a gloom filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228345-lenticularhalogeneratorfilter?language=objc -func (fc _FilterClass) LenticularHaloGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("lenticularHaloGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228334-gloomfilter?language=objc +func (fc _FilterClass) GloomFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("gloomFilter")) return rv } -// Returns a lenticular halo generator filter. [Full Topic] +// Returns a gloom filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228345-lenticularhalogeneratorfilter?language=objc -func Filter_LenticularHaloGeneratorFilter() Filter { - return FilterClass.LenticularHaloGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228334-gloomfilter?language=objc +func Filter_GloomFilter() Filter { + return FilterClass.GloomFilter() } -// Returns a linear-dodge blend mode filter. [Full Topic] +// Blurs an image with a Gaussian distribution pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228350-lineardodgeblendmodefilter?language=objc -func (fc _FilterClass) LinearDodgeBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("linearDodgeBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228331-gaussianblurfilter?language=objc +func (fc _FilterClass) GaussianBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("gaussianBlurFilter")) return rv } -// Returns a linear-dodge blend mode filter. [Full Topic] +// Blurs an image with a Gaussian distribution pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228350-lineardodgeblendmodefilter?language=objc -func Filter_LinearDodgeBlendModeFilter() Filter { - return FilterClass.LinearDodgeBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228331-gaussianblurfilter?language=objc +func Filter_GaussianBlurFilter() Filter { + return FilterClass.GaussianBlurFilter() } -// Returns an overlay blend mode filter. [Full Topic] +// Returns a perspective rotate filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228374-overlayblendmodefilter?language=objc -func (fc _FilterClass) OverlayBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("overlayBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325512-perspectiverotatefilter?language=objc +func (fc _FilterClass) PerspectiveRotateFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("perspectiveRotateFilter")) return rv } -// Returns an overlay blend mode filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228374-overlayblendmodefilter?language=objc -func Filter_OverlayBlendModeFilter() Filter { - return FilterClass.OverlayBlendModeFilter() -} - -// Publishes a custom filter that is not packaged as an image unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437889-registerfiltername?language=objc -func (fc _FilterClass) RegisterFilterNameConstructorClassAttributes(name string, anObject PFilterConstructor, attributes map[string]objc.IObject) { - po1 := objc.WrapAsProtocol("CIFilterConstructor", anObject) - objc.Call[objc.Void](fc, objc.Sel("registerFilterName:constructor:classAttributes:"), name, po1, attributes) -} - -// Publishes a custom filter that is not packaged as an image unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437889-registerfiltername?language=objc -func Filter_RegisterFilterNameConstructorClassAttributes(name string, anObject PFilterConstructor, attributes map[string]objc.IObject) { - FilterClass.RegisterFilterNameConstructorClassAttributes(name, anObject, attributes) -} - -// Publishes a custom filter that is not packaged as an image unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437889-registerfiltername?language=objc -func (fc _FilterClass) RegisterFilterNameConstructorObjectClassAttributes(name string, anObjectObject objc.IObject, attributes map[string]objc.IObject) { - objc.Call[objc.Void](fc, objc.Sel("registerFilterName:constructor:classAttributes:"), name, anObjectObject, attributes) -} - -// Publishes a custom filter that is not packaged as an image unit. [Full Topic] +// Returns a perspective rotate filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437889-registerfiltername?language=objc -func Filter_RegisterFilterNameConstructorObjectClassAttributes(name string, anObjectObject objc.IObject, attributes map[string]objc.IObject) { - FilterClass.RegisterFilterNameConstructorObjectClassAttributes(name, anObjectObject, attributes) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325512-perspectiverotatefilter?language=objc +func Filter_PerspectiveRotateFilter() Filter { + return FilterClass.PerspectiveRotateFilter() } -// Returns a linear-to-sRGB filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228352-lineartosrgbtonecurvefilter?language=objc -func (fc _FilterClass) LinearToSRGBToneCurveFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("linearToSRGBToneCurveFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750387-convolutionrgb7x7filter?language=objc +func (fc _FilterClass) ConvolutionRGB7X7Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB7X7Filter")) return rv } -// Returns a linear-to-sRGB filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228352-lineartosrgbtonecurvefilter?language=objc -func Filter_LinearToSRGBToneCurveFilter() Filter { - return FilterClass.LinearToSRGBToneCurveFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750387-convolutionrgb7x7filter?language=objc +func Filter_ConvolutionRGB7X7Filter() Filter { + return FilterClass.ConvolutionRGB7X7Filter() } -// Returns a disparity-to-depth filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228313-disparitytodepthfilter?language=objc -func (fc _FilterClass) DisparityToDepthFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("disparityToDepthFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600146-holedistortionfilter?language=objc +func (fc _FilterClass) HoleDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("holeDistortionFilter")) return rv } -// Returns a disparity-to-depth filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228313-disparitytodepthfilter?language=objc -func Filter_DisparityToDepthFilter() Filter { - return FilterClass.DisparityToDepthFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600146-holedistortionfilter?language=objc +func Filter_HoleDistortionFilter() Filter { + return FilterClass.HoleDistortionFilter() } -// Returns a multiply compositing filter. [Full Topic] +// Returns a checkerboard generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228371-multiplycompositingfilter?language=objc -func (fc _FilterClass) MultiplyCompositingFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("multiplyCompositingFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228279-checkerboardgeneratorfilter?language=objc +func (fc _FilterClass) CheckerboardGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("checkerboardGeneratorFilter")) return rv } -// Returns a multiply compositing filter. [Full Topic] +// Returns a checkerboard generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228371-multiplycompositingfilter?language=objc -func Filter_MultiplyCompositingFilter() Filter { - return FilterClass.MultiplyCompositingFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228279-checkerboardgeneratorfilter?language=objc +func Filter_CheckerboardGeneratorFilter() Filter { + return FilterClass.CheckerboardGeneratorFilter() } -// Calculates the median of an image to refine detail. [Full Topic] +// Detects and highlights edges of objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228358-medianfilter?language=objc -func (fc _FilterClass) MedianFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("medianFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228364-morphologygradientfilter?language=objc +func (fc _FilterClass) MorphologyGradientFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("morphologyGradientFilter")) return rv } -// Calculates the median of an image to refine detail. [Full Topic] +// Detects and highlights edges of objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228358-medianfilter?language=objc -func Filter_MedianFilter() Filter { - return FilterClass.MedianFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228364-morphologygradientfilter?language=objc +func Filter_MorphologyGradientFilter() Filter { + return FilterClass.MorphologyGradientFilter() } -// Returns a hue adjust filter. [Full Topic] +// Returns a mix filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228340-hueadjustfilter?language=objc -func (fc _FilterClass) HueAdjustFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("hueAdjustFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228362-mixfilter?language=objc +func (fc _FilterClass) MixFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("mixFilter")) return rv } -// Returns a hue adjust filter. [Full Topic] +// Returns a mix filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228340-hueadjustfilter?language=objc -func Filter_HueAdjustFilter() Filter { - return FilterClass.HueAdjustFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228362-mixfilter?language=objc +func Filter_MixFilter() Filter { + return FilterClass.MixFilter() } -// Returns a crystalize filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228306-crystallizefilter?language=objc -func (fc _FilterClass) CrystallizeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("crystallizeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600153-twirldistortionfilter?language=objc +func (fc _FilterClass) TwirlDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("twirlDistortionFilter")) return rv } -// Returns a crystalize filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228306-crystallizefilter?language=objc -func Filter_CrystallizeFilter() Filter { - return FilterClass.CrystallizeFilter() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600153-twirldistortionfilter?language=objc +func Filter_TwirlDistortionFilter() Filter { + return FilterClass.TwirlDistortionFilter() } -// Returns a color matrix filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228294-colormatrixfilter?language=objc -func (fc _FilterClass) ColorMatrixFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorMatrixFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600149-nineparttiledfilter?language=objc +func (fc _FilterClass) NinePartTiledFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("ninePartTiledFilter")) return rv } -// Returns a color matrix filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228294-colormatrixfilter?language=objc -func Filter_ColorMatrixFilter() Filter { - return FilterClass.ColorMatrixFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600149-nineparttiledfilter?language=objc +func Filter_NinePartTiledFilter() Filter { + return FilterClass.NinePartTiledFilter() } -// [Full Topic] +// Returns a disparity-to-depth filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547118-areaminimumfilter?language=objc -func (fc _FilterClass) AreaMinimumFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("areaMinimumFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228313-disparitytodepthfilter?language=objc +func (fc _FilterClass) DisparityToDepthFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("disparityToDepthFilter")) return rv } -// [Full Topic] +// Returns a disparity-to-depth filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547118-areaminimumfilter?language=objc -func Filter_AreaMinimumFilter() Filter { - return FilterClass.AreaMinimumFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228313-disparitytodepthfilter?language=objc +func Filter_DisparityToDepthFilter() Filter { + return FilterClass.DisparityToDepthFilter() } -// Returns a lighten blend mode filter. [Full Topic] +// Returns a palette centroid filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228346-lightenblendmodefilter?language=objc -func (fc _FilterClass) LightenBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("lightenBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228377-palettecentroidfilter?language=objc +func (fc _FilterClass) PaletteCentroidFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("paletteCentroidFilter")) return rv } -// Returns a lighten blend mode filter. [Full Topic] +// Returns a palette centroid filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228346-lightenblendmodefilter?language=objc -func Filter_LightenBlendModeFilter() Filter { - return FilterClass.LightenBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228377-palettecentroidfilter?language=objc +func Filter_PaletteCentroidFilter() Filter { + return FilterClass.PaletteCentroidFilter() } -// Returns a QR code generator filter. [Full Topic] +// Returns a random generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228262-qrcodegenerator?language=objc -func (fc _FilterClass) QRCodeGenerator() Filter { - rv := objc.Call[Filter](fc, objc.Sel("QRCodeGenerator")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228396-randomgeneratorfilter?language=objc +func (fc _FilterClass) RandomGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("randomGeneratorFilter")) return rv } -// Returns a QR code generator filter. [Full Topic] +// Returns a random generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228262-qrcodegenerator?language=objc -func Filter_QRCodeGenerator() Filter { - return FilterClass.QRCodeGenerator() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228396-randomgeneratorfilter?language=objc +func Filter_RandomGeneratorFilter() Filter { + return FilterClass.RandomGeneratorFilter() } -// Returns a document enhancer filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228317-documentenhancerfilter?language=objc -func (fc _FilterClass) DocumentEnhancerFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("documentEnhancerFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600141-circularwrapfilter?language=objc +func (fc _FilterClass) CircularWrapFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("circularWrapFilter")) return rv } -// Returns a document enhancer filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228317-documentenhancerfilter?language=objc -func Filter_DocumentEnhancerFilter() Filter { - return FilterClass.DocumentEnhancerFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600141-circularwrapfilter?language=objc +func Filter_CircularWrapFilter() Filter { + return FilterClass.CircularWrapFilter() } -// Returns a flash transition filter. [Full Topic] +// Returns a bicubic scale transform filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228326-flashtransitionfilter?language=objc -func (fc _FilterClass) FlashTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("flashTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228271-bicubicscaletransformfilter?language=objc +func (fc _FilterClass) BicubicScaleTransformFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("bicubicScaleTransformFilter")) return rv } -// Returns a flash transition filter. [Full Topic] +// Returns a bicubic scale transform filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228326-flashtransitionfilter?language=objc -func Filter_FlashTransitionFilter() Filter { - return FilterClass.FlashTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228271-bicubicscaletransformfilter?language=objc +func Filter_BicubicScaleTransformFilter() Filter { + return FilterClass.BicubicScaleTransformFilter() } -// [Full Topic] +// Returns a crystalize filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600144-glassdistortionfilter?language=objc -func (fc _FilterClass) GlassDistortionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("glassDistortionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228306-crystallizefilter?language=objc +func (fc _FilterClass) CrystallizeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("crystallizeFilter")) return rv } -// [Full Topic] +// Returns a crystalize filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600144-glassdistortionfilter?language=objc -func Filter_GlassDistortionFilter() Filter { - return FilterClass.GlassDistortionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228306-crystallizefilter?language=objc +func Filter_CrystallizeFilter() Filter { + return FilterClass.CrystallizeFilter() } -// Returns a PDF417 barcode generator filter. [Full Topic] +// Returns a fourfold reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228261-pdf417barcodegenerator?language=objc -func (fc _FilterClass) PDF417BarcodeGenerator() Filter { - rv := objc.Call[Filter](fc, objc.Sel("PDF417BarcodeGenerator")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228327-fourfoldreflectedtilefilter?language=objc +func (fc _FilterClass) FourfoldReflectedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("fourfoldReflectedTileFilter")) return rv } -// Returns a PDF417 barcode generator filter. [Full Topic] +// Returns a fourfold reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228261-pdf417barcodegenerator?language=objc -func Filter_PDF417BarcodeGenerator() Filter { - return FilterClass.PDF417BarcodeGenerator() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228327-fourfoldreflectedtilefilter?language=objc +func Filter_FourfoldReflectedTileFilter() Filter { + return FilterClass.FourfoldReflectedTileFilter() } -// [Full Topic] +// Returns a triangle tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547116-areaminmaxredfilter?language=objc -func (fc _FilterClass) AreaMinMaxRedFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("areaMinMaxRedFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228426-triangletilefilter?language=objc +func (fc _FilterClass) TriangleTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("triangleTileFilter")) return rv } -// [Full Topic] +// Returns a triangle tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547116-areaminmaxredfilter?language=objc -func Filter_AreaMinMaxRedFilter() Filter { - return FilterClass.AreaMinMaxRedFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228426-triangletilefilter?language=objc +func Filter_TriangleTileFilter() Filter { + return FilterClass.TriangleTileFilter() } -// Returns a kaleidoscope filter. [Full Topic] +// Returns a fourfold translated tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228343-kaleidoscopefilter?language=objc -func (fc _FilterClass) KaleidoscopeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("kaleidoscopeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228329-fourfoldtranslatedtilefilter?language=objc +func (fc _FilterClass) FourfoldTranslatedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("fourfoldTranslatedTileFilter")) return rv } -// Returns a kaleidoscope filter. [Full Topic] +// Returns a fourfold translated tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228343-kaleidoscopefilter?language=objc -func Filter_KaleidoscopeFilter() Filter { - return FilterClass.KaleidoscopeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228329-fourfoldtranslatedtilefilter?language=objc +func Filter_FourfoldTranslatedTileFilter() Filter { + return FilterClass.FourfoldTranslatedTileFilter() } -// Returns a convolution 9 vertical filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228303-convolution9verticalfilter?language=objc -func (fc _FilterClass) Convolution9VerticalFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("convolution9VerticalFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3801604-linearlightblendmodefilter?language=objc +func (fc _FilterClass) LinearLightBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("linearLightBlendModeFilter")) return rv } -// Returns a convolution 9 vertical filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228303-convolution9verticalfilter?language=objc -func Filter_Convolution9VerticalFilter() Filter { - return FilterClass.Convolution9VerticalFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3801604-linearlightblendmodefilter?language=objc +func Filter_LinearLightBlendModeFilter() Filter { + return FilterClass.LinearLightBlendModeFilter() } -// Returns a stripes generator filter. [Full Topic] +// Returns a flash transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228417-stripesgeneratorfilter?language=objc -func (fc _FilterClass) StripesGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("stripesGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228326-flashtransitionfilter?language=objc +func (fc _FilterClass) FlashTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("flashTransitionFilter")) return rv } -// Returns a stripes generator filter. [Full Topic] +// Returns a flash transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228417-stripesgeneratorfilter?language=objc -func Filter_StripesGeneratorFilter() Filter { - return FilterClass.StripesGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228326-flashtransitionfilter?language=objc +func Filter_FlashTransitionFilter() Filter { + return FilterClass.FlashTransitionFilter() } -// Returns the localized name for the specified filter category. [Full Topic] +// Returns a color invert filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438057-localizednameforcategory?language=objc -func (fc _FilterClass) LocalizedNameForCategory(category string) string { - rv := objc.Call[string](fc, objc.Sel("localizedNameForCategory:"), category) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228292-colorinvertfilter?language=objc +func (fc _FilterClass) ColorInvertFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorInvertFilter")) return rv } -// Returns the localized name for the specified filter category. [Full Topic] +// Returns a color invert filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438057-localizednameforcategory?language=objc -func Filter_LocalizedNameForCategory(category string) string { - return FilterClass.LocalizedNameForCategory(category) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228292-colorinvertfilter?language=objc +func Filter_ColorInvertFilter() Filter { + return FilterClass.ColorInvertFilter() } -// Reduces noise by sharpening the edges of objects. [Full Topic] +// Returns a color cube with color space filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228372-noisereductionfilter?language=objc -func (fc _FilterClass) NoiseReductionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("noiseReductionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228288-colorcubewithcolorspacefilter?language=objc +func (fc _FilterClass) ColorCubeWithColorSpaceFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorCubeWithColorSpaceFilter")) return rv } -// Reduces noise by sharpening the edges of objects. [Full Topic] +// Returns a color cube with color space filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228372-noisereductionfilter?language=objc -func Filter_NoiseReductionFilter() Filter { - return FilterClass.NoiseReductionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228288-colorcubewithcolorspacefilter?language=objc +func Filter_ColorCubeWithColorSpaceFilter() Filter { + return FilterClass.ColorCubeWithColorSpaceFilter() } -// Returns a page-curl-with-shadow transition filter. [Full Topic] +// Sets all input values for a filter to default values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228376-pagecurlwithshadowtransitionfilt?language=objc -func (fc _FilterClass) PageCurlWithShadowTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("pageCurlWithShadowTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437902-setdefaults?language=objc +func (f_ Filter) SetDefaults() { + objc.Call[objc.Void](f_, objc.Sel("setDefaults")) +} + +// Returns a color polynomial filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228296-colorpolynomialfilter?language=objc +func (fc _FilterClass) ColorPolynomialFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorPolynomialFilter")) return rv } -// Returns a page-curl-with-shadow transition filter. [Full Topic] +// Returns a color polynomial filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228376-pagecurlwithshadowtransitionfilt?language=objc -func Filter_PageCurlWithShadowTransitionFilter() Filter { - return FilterClass.PageCurlWithShadowTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228296-colorpolynomialfilter?language=objc +func Filter_ColorPolynomialFilter() Filter { + return FilterClass.ColorPolynomialFilter() } -// Returns a convolution 5 x 5 filter. [Full Topic] +// Returns a divide blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228300-convolution5x5filter?language=objc -func (fc _FilterClass) Convolution5X5Filter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("convolution5X5Filter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228316-divideblendmodefilter?language=objc +func (fc _FilterClass) DivideBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("divideBlendModeFilter")) return rv } -// Returns a convolution 5 x 5 filter. [Full Topic] +// Returns a divide blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228300-convolution5x5filter?language=objc -func Filter_Convolution5X5Filter() Filter { - return FilterClass.Convolution5X5Filter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228316-divideblendmodefilter?language=objc +func Filter_DivideBlendModeFilter() Filter { + return FilterClass.DivideBlendModeFilter() } -// Returns a mix filter. [Full Topic] +// Returns a twelvefold reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228362-mixfilter?language=objc -func (fc _FilterClass) MixFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("mixFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228427-twelvefoldreflectedtilefilter?language=objc +func (fc _FilterClass) TwelvefoldReflectedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("twelvefoldReflectedTileFilter")) return rv } -// Returns a mix filter. [Full Topic] +// Returns a twelvefold reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228362-mixfilter?language=objc -func Filter_MixFilter() Filter { - return FilterClass.MixFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228427-twelvefoldreflectedtilefilter?language=objc +func Filter_TwelvefoldReflectedTileFilter() Filter { + return FilterClass.TwelvefoldReflectedTileFilter() } -// Returns a saturation blend mode filter. [Full Topic] +// Returns a spotlight filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228400-saturationblendmodefilter?language=objc -func (fc _FilterClass) SaturationBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("saturationBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228414-spotlightfilter?language=objc +func (fc _FilterClass) SpotLightFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("spotLightFilter")) return rv } -// Returns a saturation blend mode filter. [Full Topic] +// Returns a spotlight filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228400-saturationblendmodefilter?language=objc -func Filter_SaturationBlendModeFilter() Filter { - return FilterClass.SaturationBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228414-spotlightfilter?language=objc +func Filter_SpotLightFilter() Filter { + return FilterClass.SpotLightFilter() } -// [Full Topic] +// Returns a rounded rectangle generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600138-bumpdistortionfilter?language=objc -func (fc _FilterClass) BumpDistortionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("bumpDistortionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3335007-roundedrectanglegeneratorfilter?language=objc +func (fc _FilterClass) RoundedRectangleGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("roundedRectangleGeneratorFilter")) return rv } -// [Full Topic] +// Returns a rounded rectangle generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600138-bumpdistortionfilter?language=objc -func Filter_BumpDistortionFilter() Filter { - return FilterClass.BumpDistortionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3335007-roundedrectanglegeneratorfilter?language=objc +func Filter_RoundedRectangleGeneratorFilter() Filter { + return FilterClass.RoundedRectangleGeneratorFilter() } -// Returns a palettize filter. [Full Topic] +// Returns a perspective transform filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228378-palettizefilter?language=objc -func (fc _FilterClass) PalettizeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("palettizeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228382-perspectivetransformfilter?language=objc +func (fc _FilterClass) PerspectiveTransformFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("perspectiveTransformFilter")) return rv } -// Returns a palettize filter. [Full Topic] +// Returns a perspective transform filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228378-palettizefilter?language=objc -func Filter_PalettizeFilter() Filter { - return FilterClass.PalettizeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228382-perspectivetransformfilter?language=objc +func Filter_PerspectiveTransformFilter() Filter { + return FilterClass.PerspectiveTransformFilter() } -// Returns a tone curve filter. [Full Topic] +// Returns a perspective correction filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228424-tonecurvefilter?language=objc -func (fc _FilterClass) ToneCurveFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("toneCurveFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228380-perspectivecorrectionfilter?language=objc +func (fc _FilterClass) PerspectiveCorrectionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("perspectiveCorrectionFilter")) return rv } -// Returns a tone curve filter. [Full Topic] +// Returns a perspective correction filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228424-tonecurvefilter?language=objc -func Filter_ToneCurveFilter() Filter { - return FilterClass.ToneCurveFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228380-perspectivecorrectionfilter?language=objc +func Filter_PerspectiveCorrectionFilter() Filter { + return FilterClass.PerspectiveCorrectionFilter() } -// Returns a affine tile filter. [Full Topic] +// A name associated with a filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228266-affinetilefilter?language=objc -func (fc _FilterClass) AffineTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("affineTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437997-setname?language=objc +func (f_ Filter) Name() string { + rv := objc.Call[string](f_, objc.Sel("name")) return rv } -// Returns a affine tile filter. [Full Topic] +// Returns a multiply compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228266-affinetilefilter?language=objc -func Filter_AffineTileFilter() Filter { - return FilterClass.AffineTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228371-multiplycompositingfilter?language=objc +func (fc _FilterClass) MultiplyCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("multiplyCompositingFilter")) + return rv } -// Returns a linear gradient filter. [Full Topic] +// Returns a multiply compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228351-lineargradientfilter?language=objc -func (fc _FilterClass) LinearGradientFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("linearGradientFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228371-multiplycompositingfilter?language=objc +func Filter_MultiplyCompositingFilter() Filter { + return FilterClass.MultiplyCompositingFilter() +} + +// Returns a hue blend mode filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228341-hueblendmodefilter?language=objc +func (fc _FilterClass) HueBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hueBlendModeFilter")) return rv } -// Returns a linear gradient filter. [Full Topic] +// Returns a hue blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228351-lineargradientfilter?language=objc -func Filter_LinearGradientFilter() Filter { - return FilterClass.LinearGradientFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228341-hueblendmodefilter?language=objc +func Filter_HueBlendModeFilter() Filter { + return FilterClass.HueBlendModeFilter() } -// Returns a color controls filter. [Full Topic] +// Reduces noise by sharpening the edges of objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228285-colorcontrolsfilter?language=objc -func (fc _FilterClass) ColorControlsFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorControlsFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228372-noisereductionfilter?language=objc +func (fc _FilterClass) NoiseReductionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("noiseReductionFilter")) return rv } -// Returns a color controls filter. [Full Topic] +// Reduces noise by sharpening the edges of objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228285-colorcontrolsfilter?language=objc -func Filter_ColorControlsFilter() Filter { - return FilterClass.ColorControlsFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228372-noisereductionfilter?language=objc +func Filter_NoiseReductionFilter() Filter { + return FilterClass.NoiseReductionFilter() } -// Returns a perspective transform with extent filter. [Full Topic] +// Returns a page-curl-with-shadow transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228383-perspectivetransformwithextentfi?language=objc -func (fc _FilterClass) PerspectiveTransformWithExtentFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("perspectiveTransformWithExtentFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228376-pagecurlwithshadowtransitionfilt?language=objc +func (fc _FilterClass) PageCurlWithShadowTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pageCurlWithShadowTransitionFilter")) return rv } -// Returns a perspective transform with extent filter. [Full Topic] +// Returns a page-curl-with-shadow transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228383-perspectivetransformwithextentfi?language=objc -func Filter_PerspectiveTransformWithExtentFilter() Filter { - return FilterClass.PerspectiveTransformWithExtentFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228376-pagecurlwithshadowtransitionfilt?language=objc +func Filter_PageCurlWithShadowTransitionFilter() Filter { + return FilterClass.PageCurlWithShadowTransitionFilter() } -// Creates a zoom blur centered around a single point on the image. [Full Topic] +// Returns a color posterize filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228434-zoomblurfilter?language=objc -func (fc _FilterClass) ZoomBlurFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("zoomBlurFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228297-colorposterizefilter?language=objc +func (fc _FilterClass) ColorPosterizeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorPosterizeFilter")) return rv } -// Creates a zoom blur centered around a single point on the image. [Full Topic] +// Returns a color posterize filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228434-zoomblurfilter?language=objc -func Filter_ZoomBlurFilter() Filter { - return FilterClass.ZoomBlurFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228297-colorposterizefilter?language=objc +func Filter_ColorPosterizeFilter() Filter { + return FilterClass.ColorPosterizeFilter() } -// Returns a spot color filter. [Full Topic] +// Returns an exclusion blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228413-spotcolorfilter?language=objc -func (fc _FilterClass) SpotColorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("spotColorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228323-exclusionblendmodefilter?language=objc +func (fc _FilterClass) ExclusionBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("exclusionBlendModeFilter")) return rv } -// Returns a spot color filter. [Full Topic] +// Returns an exclusion blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228413-spotcolorfilter?language=objc -func Filter_SpotColorFilter() Filter { - return FilterClass.SpotColorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228323-exclusionblendmodefilter?language=objc +func Filter_ExclusionBlendModeFilter() Filter { + return FilterClass.ExclusionBlendModeFilter() } -// Returns a luminosity blend mode filter. [Full Topic] +// Returns a temperature and tint filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228353-luminosityblendmodefilter?language=objc -func (fc _FilterClass) LuminosityBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("luminosityBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228421-temperatureandtintfilter?language=objc +func (fc _FilterClass) TemperatureAndTintFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("temperatureAndTintFilter")) return rv } -// Returns a luminosity blend mode filter. [Full Topic] +// Returns a temperature and tint filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228353-luminosityblendmodefilter?language=objc -func Filter_LuminosityBlendModeFilter() Filter { - return FilterClass.LuminosityBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228421-temperatureandtintfilter?language=objc +func Filter_TemperatureAndTintFilter() Filter { + return FilterClass.TemperatureAndTintFilter() } -// Returns a divide blend mode filter. [Full Topic] +// Blurs a circular area by enlarging contrasting pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228316-divideblendmodefilter?language=objc -func (fc _FilterClass) DivideBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("divideBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228365-morphologymaximumfilter?language=objc +func (fc _FilterClass) MorphologyMaximumFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("morphologyMaximumFilter")) return rv } -// Returns a divide blend mode filter. [Full Topic] +// Blurs a circular area by enlarging contrasting pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228316-divideblendmodefilter?language=objc -func Filter_DivideBlendModeFilter() Filter { - return FilterClass.DivideBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228365-morphologymaximumfilter?language=objc +func Filter_MorphologyMaximumFilter() Filter { + return FilterClass.MorphologyMaximumFilter() } -// Returns a blend with alpha mask filter. [Full Topic] +// Returns a pointillize filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228272-blendwithalphamaskfilter?language=objc -func (fc _FilterClass) BlendWithAlphaMaskFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("blendWithAlphaMaskFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228394-pointillizefilter?language=objc +func (fc _FilterClass) PointillizeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pointillizeFilter")) return rv } -// Returns a blend with alpha mask filter. [Full Topic] +// Returns a pointillize filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228272-blendwithalphamaskfilter?language=objc -func Filter_BlendWithAlphaMaskFilter() Filter { - return FilterClass.BlendWithAlphaMaskFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228394-pointillizefilter?language=objc +func Filter_PointillizeFilter() Filter { + return FilterClass.PointillizeFilter() } -// [Full Topic] +// Returns a vignette filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600154-vortexdistortionfilter?language=objc -func (fc _FilterClass) VortexDistortionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("vortexDistortionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228431-vignettefilter?language=objc +func (fc _FilterClass) VignetteFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("vignetteFilter")) return rv } -// [Full Topic] +// Returns a vignette filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600154-vortexdistortionfilter?language=objc -func Filter_VortexDistortionFilter() Filter { - return FilterClass.VortexDistortionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228431-vignettefilter?language=objc +func Filter_VignetteFilter() Filter { + return FilterClass.VignetteFilter() } -// Returns a copy machine transition filter. [Full Topic] +// Returns a Gabor gradients filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228304-copymachinetransitionfilter?language=objc -func (fc _FilterClass) CopyMachineTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("copyMachineTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325508-gaborgradientsfilter?language=objc +func (fc _FilterClass) GaborGradientsFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("gaborGradientsFilter")) return rv } -// Returns a copy machine transition filter. [Full Topic] +// Returns a Gabor gradients filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228304-copymachinetransitionfilter?language=objc -func Filter_CopyMachineTransitionFilter() Filter { - return FilterClass.CopyMachineTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325508-gaborgradientsfilter?language=objc +func Filter_GaborGradientsFilter() Filter { + return FilterClass.GaborGradientsFilter() } -// Creates a CIFilter object for a specific kind of filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438255-filterwithname?language=objc -func (fc _FilterClass) FilterWithName(name string) Filter { - rv := objc.Call[Filter](fc, objc.Sel("filterWithName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547114-areamaximumfilter?language=objc +func (fc _FilterClass) AreaMaximumFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaMaximumFilter")) return rv } -// Creates a CIFilter object for a specific kind of filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438255-filterwithname?language=objc -func Filter_FilterWithName(name string) Filter { - return FilterClass.FilterWithName(name) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547114-areamaximumfilter?language=objc +func Filter_AreaMaximumFilter() Filter { + return FilterClass.AreaMaximumFilter() } -// Returns the localized description of a filter for display in the user interface. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437591-localizeddescriptionforfilternam?language=objc -func (fc _FilterClass) LocalizedDescriptionForFilterName(filterName string) string { - rv := objc.Call[string](fc, objc.Sel("localizedDescriptionForFilterName:"), filterName) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547123-rowaveragefilter?language=objc +func (fc _FilterClass) RowAverageFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("rowAverageFilter")) return rv } -// Returns the localized description of a filter for display in the user interface. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437591-localizeddescriptionforfilternam?language=objc -func Filter_LocalizedDescriptionForFilterName(filterName string) string { - return FilterClass.LocalizedDescriptionForFilterName(filterName) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547123-rowaveragefilter?language=objc +func Filter_RowAverageFilter() Filter { + return FilterClass.RowAverageFilter() } -// [Full Topic] +// Returns a source-out compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547111-areaaveragefilter?language=objc -func (fc _FilterClass) AreaAverageFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("areaAverageFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228411-sourceoutcompositingfilter?language=objc +func (fc _FilterClass) SourceOutCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sourceOutCompositingFilter")) return rv } -// [Full Topic] +// Returns a source-out compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547111-areaaveragefilter?language=objc -func Filter_AreaAverageFilter() Filter { - return FilterClass.AreaAverageFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228411-sourceoutcompositingfilter?language=objc +func Filter_SourceOutCompositingFilter() Filter { + return FilterClass.SourceOutCompositingFilter() } -// Returns a source-atop compositing filter. [Full Topic] +// Returns the localized name for the specified filter category. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228409-sourceatopcompositingfilter?language=objc -func (fc _FilterClass) SourceAtopCompositingFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("sourceAtopCompositingFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438057-localizednameforcategory?language=objc +func (fc _FilterClass) LocalizedNameForCategory(category string) string { + rv := objc.Call[string](fc, objc.Sel("localizedNameForCategory:"), category) return rv } -// Returns a source-atop compositing filter. [Full Topic] +// Returns the localized name for the specified filter category. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228409-sourceatopcompositingfilter?language=objc -func Filter_SourceAtopCompositingFilter() Filter { - return FilterClass.SourceAtopCompositingFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438057-localizednameforcategory?language=objc +func Filter_LocalizedNameForCategory(category string) string { + return FilterClass.LocalizedNameForCategory(category) } -// Returns a circular screen filter. [Full Topic] +// Returns a photo-effect chrome filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228280-circularscreenfilter?language=objc -func (fc _FilterClass) CircularScreenFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("circularScreenFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228384-photoeffectchromefilter?language=objc +func (fc _FilterClass) PhotoEffectChromeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectChromeFilter")) return rv } -// Returns a circular screen filter. [Full Topic] +// Returns a photo-effect chrome filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228280-circularscreenfilter?language=objc -func Filter_CircularScreenFilter() Filter { - return FilterClass.CircularScreenFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228384-photoeffectchromefilter?language=objc +func Filter_PhotoEffectChromeFilter() Filter { + return FilterClass.PhotoEffectChromeFilter() } -// Returns an edge preserve upsample filter. [Full Topic] +// Returns an edges filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228319-edgepreserveupsamplefilter?language=objc -func (fc _FilterClass) EdgePreserveUpsampleFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("edgePreserveUpsampleFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228321-edgesfilter?language=objc +func (fc _FilterClass) EdgesFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("edgesFilter")) return rv } -// Returns an edge preserve upsample filter. [Full Topic] +// Returns an edges filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228319-edgepreserveupsamplefilter?language=objc -func Filter_EdgePreserveUpsampleFilter() Filter { - return FilterClass.EdgePreserveUpsampleFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228321-edgesfilter?language=objc +func Filter_EdgesFilter() Filter { + return FilterClass.EdgesFilter() } -// Returns a Aztec code generator filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228268-azteccodegeneratorfilter?language=objc -func (fc _FilterClass) AztecCodeGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("aztecCodeGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600147-lighttunnelfilter?language=objc +func (fc _FilterClass) LightTunnelFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lightTunnelFilter")) return rv } -// Returns a Aztec code generator filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228268-azteccodegeneratorfilter?language=objc -func Filter_AztecCodeGeneratorFilter() Filter { - return FilterClass.AztecCodeGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600147-lighttunnelfilter?language=objc +func Filter_LightTunnelFilter() Filter { + return FilterClass.LightTunnelFilter() } -// Returns a Gabor gradients filter. [Full Topic] +// Returns a glide reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325508-gaborgradientsfilter?language=objc -func (fc _FilterClass) GaborGradientsFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("gaborGradientsFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228333-glidereflectedtilefilter?language=objc +func (fc _FilterClass) GlideReflectedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("glideReflectedTileFilter")) return rv } -// Returns a Gabor gradients filter. [Full Topic] +// Returns a glide reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325508-gaborgradientsfilter?language=objc -func Filter_GaborGradientsFilter() Filter { - return FilterClass.GaborGradientsFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228333-glidereflectedtilefilter?language=objc +func Filter_GlideReflectedTileFilter() Filter { + return FilterClass.GlideReflectedTileFilter() } -// Returns a spotlight filter. [Full Topic] +// Returns a photo-effect tonal filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228414-spotlightfilter?language=objc -func (fc _FilterClass) SpotLightFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("spotLightFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228390-photoeffecttonalfilter?language=objc +func (fc _FilterClass) PhotoEffectTonalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectTonalFilter")) return rv } -// Returns a spotlight filter. [Full Topic] +// Returns a photo-effect tonal filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228414-spotlightfilter?language=objc -func Filter_SpotLightFilter() Filter { - return FilterClass.SpotLightFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228390-photoeffecttonalfilter?language=objc +func Filter_PhotoEffectTonalFilter() Filter { + return FilterClass.PhotoEffectTonalFilter() } -// Returns a blend with blue mask filter. [Full Topic] +// Returns an overlay blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228273-blendwithbluemaskfilter?language=objc -func (fc _FilterClass) BlendWithBlueMaskFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("blendWithBlueMaskFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228374-overlayblendmodefilter?language=objc +func (fc _FilterClass) OverlayBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("overlayBlendModeFilter")) return rv } -// Returns a blend with blue mask filter. [Full Topic] +// Returns an overlay blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228273-blendwithbluemaskfilter?language=objc -func Filter_BlendWithBlueMaskFilter() Filter { - return FilterClass.BlendWithBlueMaskFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228374-overlayblendmodefilter?language=objc +func Filter_OverlayBlendModeFilter() Filter { + return FilterClass.OverlayBlendModeFilter() } -// Returns a photo-effect chrome filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228384-photoeffectchromefilter?language=objc -func (fc _FilterClass) PhotoEffectChromeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("photoEffectChromeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600152-toruslensdistortionfilter?language=objc +func (fc _FilterClass) TorusLensDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("torusLensDistortionFilter")) return rv } -// Returns a photo-effect chrome filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228384-photoeffectchromefilter?language=objc -func Filter_PhotoEffectChromeFilter() Filter { - return FilterClass.PhotoEffectChromeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600152-toruslensdistortionfilter?language=objc +func Filter_TorusLensDistortionFilter() Filter { + return FilterClass.TorusLensDistortionFilter() } -// Returns a color posterize filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228297-colorposterizefilter?language=objc -func (fc _FilterClass) ColorPosterizeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorPosterizeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547116-areaminmaxredfilter?language=objc +func (fc _FilterClass) AreaMinMaxRedFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaMinMaxRedFilter")) return rv } -// Returns a color posterize filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228297-colorposterizefilter?language=objc -func Filter_ColorPosterizeFilter() Filter { - return FilterClass.ColorPosterizeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547116-areaminmaxredfilter?language=objc +func Filter_AreaMinMaxRedFilter() Filter { + return FilterClass.AreaMinMaxRedFilter() } -// Returns a checkerboard generator filter. [Full Topic] +// Returns an exposure adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228279-checkerboardgeneratorfilter?language=objc -func (fc _FilterClass) CheckerboardGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("checkerboardGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228324-exposureadjustfilter?language=objc +func (fc _FilterClass) ExposureAdjustFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("exposureAdjustFilter")) return rv } -// Returns a checkerboard generator filter. [Full Topic] +// Returns an exposure adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228279-checkerboardgeneratorfilter?language=objc -func Filter_CheckerboardGeneratorFilter() Filter { - return FilterClass.CheckerboardGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228324-exposureadjustfilter?language=objc +func Filter_ExposureAdjustFilter() Filter { + return FilterClass.ExposureAdjustFilter() } -// Returns a photo-effect instant filter. [Full Topic] +// Returns a linear-to-sRGB filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228386-photoeffectinstantfilter?language=objc -func (fc _FilterClass) PhotoEffectInstantFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("photoEffectInstantFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228352-lineartosrgbtonecurvefilter?language=objc +func (fc _FilterClass) LinearToSRGBToneCurveFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("linearToSRGBToneCurveFilter")) return rv } -// Returns a photo-effect instant filter. [Full Topic] +// Returns a linear-to-sRGB filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228386-photoeffectinstantfilter?language=objc -func Filter_PhotoEffectInstantFilter() Filter { - return FilterClass.PhotoEffectInstantFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228352-lineartosrgbtonecurvefilter?language=objc +func Filter_LinearToSRGBToneCurveFilter() Filter { + return FilterClass.LinearToSRGBToneCurveFilter() } -// Returns a depth-of-field filter. [Full Topic] +// Returns a multiply blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228308-depthoffieldfilter?language=objc -func (fc _FilterClass) DepthOfFieldFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("depthOfFieldFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228370-multiplyblendmodefilter?language=objc +func (fc _FilterClass) MultiplyBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("multiplyBlendModeFilter")) return rv } -// Returns a depth-of-field filter. [Full Topic] +// Returns a multiply blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228308-depthoffieldfilter?language=objc -func Filter_DepthOfFieldFilter() Filter { - return FilterClass.DepthOfFieldFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228370-multiplyblendmodefilter?language=objc +func Filter_MultiplyBlendModeFilter() Filter { + return FilterClass.MultiplyBlendModeFilter() } -// [Full Topic] +// Returns a color map filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600149-nineparttiledfilter?language=objc -func (fc _FilterClass) NinePartTiledFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("ninePartTiledFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228293-colormapfilter?language=objc +func (fc _FilterClass) ColorMapFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorMapFilter")) return rv } -// [Full Topic] +// Returns a color map filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600149-nineparttiledfilter?language=objc -func Filter_NinePartTiledFilter() Filter { - return FilterClass.NinePartTiledFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228293-colormapfilter?language=objc +func Filter_ColorMapFilter() Filter { + return FilterClass.ColorMapFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600146-holedistortionfilter?language=objc -func (fc _FilterClass) HoleDistortionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("holeDistortionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750388-convolutionrgb9horizontalfilter?language=objc +func (fc _FilterClass) ConvolutionRGB9HorizontalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB9HorizontalFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600146-holedistortionfilter?language=objc -func Filter_HoleDistortionFilter() Filter { - return FilterClass.HoleDistortionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750388-convolutionrgb9horizontalfilter?language=objc +func Filter_ConvolutionRGB9HorizontalFilter() Filter { + return FilterClass.ConvolutionRGB9HorizontalFilter() } -// Returns a vignette filter. [Full Topic] +// Returns a color matrix filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228431-vignettefilter?language=objc -func (fc _FilterClass) VignetteFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("vignetteFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228294-colormatrixfilter?language=objc +func (fc _FilterClass) ColorMatrixFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorMatrixFilter")) return rv } -// Returns a vignette filter. [Full Topic] +// Returns a color matrix filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228431-vignettefilter?language=objc -func Filter_VignetteFilter() Filter { - return FilterClass.VignetteFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228294-colormatrixfilter?language=objc +func Filter_ColorMatrixFilter() Filter { + return FilterClass.ColorMatrixFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3801605-vividlightblendmodefilter?language=objc -func (fc _FilterClass) VividLightBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("vividLightBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547110-kmeansfilter?language=objc +func (fc _FilterClass) KMeansFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("KMeansFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3801605-vividlightblendmodefilter?language=objc -func Filter_VividLightBlendModeFilter() Filter { - return FilterClass.VividLightBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547110-kmeansfilter?language=objc +func Filter_KMeansFilter() Filter { + return FilterClass.KMeansFilter() } -// Returns a Lanczos scale transform filter. [Full Topic] +// Applies a circle-shaped blur to an area of an image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228344-lanczosscaletransformfilter?language=objc -func (fc _FilterClass) LanczosScaleTransformFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("lanczosScaleTransformFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228311-discblurfilter?language=objc +func (fc _FilterClass) DiscBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("discBlurFilter")) return rv } -// Returns a Lanczos scale transform filter. [Full Topic] +// Applies a circle-shaped blur to an area of an image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228344-lanczosscaletransformfilter?language=objc -func Filter_LanczosScaleTransformFilter() Filter { - return FilterClass.LanczosScaleTransformFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228311-discblurfilter?language=objc +func Filter_DiscBlurFilter() Filter { + return FilterClass.DiscBlurFilter() } -// Returns a source-out compositing filter. [Full Topic] +// Returns a color clamp filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228411-sourceoutcompositingfilter?language=objc -func (fc _FilterClass) SourceOutCompositingFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("sourceOutCompositingFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228284-colorclampfilter?language=objc +func (fc _FilterClass) ColorClampFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorClampFilter")) return rv } -// Returns a source-out compositing filter. [Full Topic] +// Returns a color clamp filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228411-sourceoutcompositingfilter?language=objc -func Filter_SourceOutCompositingFilter() Filter { - return FilterClass.SourceOutCompositingFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228284-colorclampfilter?language=objc +func Filter_ColorClampFilter() Filter { + return FilterClass.ColorClampFilter() } -// Returns a Lab Delta E filter. [Full Topic] +// Returns a pin-light blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228260-labdeltae?language=objc -func (fc _FilterClass) LabDeltaE() Filter { - rv := objc.Call[Filter](fc, objc.Sel("LabDeltaE")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228392-pinlightblendmodefilter?language=objc +func (fc _FilterClass) PinLightBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pinLightBlendModeFilter")) return rv } -// Returns a Lab Delta E filter. [Full Topic] +// Returns a pin-light blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228260-labdeltae?language=objc -func Filter_LabDeltaE() Filter { - return FilterClass.LabDeltaE() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228392-pinlightblendmodefilter?language=objc +func Filter_PinLightBlendModeFilter() Filter { + return FilterClass.PinLightBlendModeFilter() } -// Returns an optical tile filter. [Full Topic] +// Returns a photo-effect process filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228373-optilefilter?language=objc -func (fc _FilterClass) OpTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("opTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228389-photoeffectprocessfilter?language=objc +func (fc _FilterClass) PhotoEffectProcessFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectProcessFilter")) return rv } -// Returns an optical tile filter. [Full Topic] +// Returns a photo-effect process filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228373-optilefilter?language=objc -func Filter_OpTileFilter() Filter { - return FilterClass.OpTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228389-photoeffectprocessfilter?language=objc +func Filter_PhotoEffectProcessFilter() Filter { + return FilterClass.PhotoEffectProcessFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600143-drostefilter?language=objc -func (fc _FilterClass) DrosteFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("drosteFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547113-areamaximumalphafilter?language=objc +func (fc _FilterClass) AreaMaximumAlphaFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaMaximumAlphaFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600143-drostefilter?language=objc -func Filter_DrosteFilter() Filter { - return FilterClass.DrosteFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547113-areamaximumalphafilter?language=objc +func Filter_AreaMaximumAlphaFilter() Filter { + return FilterClass.AreaMaximumAlphaFilter() } -// Returns a photo-effect fade filter. [Full Topic] +// Returns an X-ray filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228385-photoeffectfadefilter?language=objc -func (fc _FilterClass) PhotoEffectFadeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("photoEffectFadeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228433-xrayfilter?language=objc +func (fc _FilterClass) XRayFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("xRayFilter")) return rv } -// Returns a photo-effect fade filter. [Full Topic] +// Returns an X-ray filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228385-photoeffectfadefilter?language=objc -func Filter_PhotoEffectFadeFilter() Filter { - return FilterClass.PhotoEffectFadeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228433-xrayfilter?language=objc +func Filter_XRayFilter() Filter { + return FilterClass.XRayFilter() } -// Blurs a circular area by reducing contrasting pixels. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228366-morphologyminimumfilter?language=objc -func (fc _FilterClass) MorphologyMinimumFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("morphologyMinimumFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547115-areaminmaxfilter?language=objc +func (fc _FilterClass) AreaMinMaxFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaMinMaxFilter")) return rv } -// Blurs a circular area by reducing contrasting pixels. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228366-morphologyminimumfilter?language=objc -func Filter_MorphologyMinimumFilter() Filter { - return FilterClass.MorphologyMinimumFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547115-areaminmaxfilter?language=objc +func Filter_AreaMinMaxFilter() Filter { + return FilterClass.AreaMinMaxFilter() } -// Returns a minimum component filter. [Full Topic] +// Returns a Gaussian gradient filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228360-minimumcomponentfilter?language=objc -func (fc _FilterClass) MinimumComponentFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("minimumComponentFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228332-gaussiangradientfilter?language=objc +func (fc _FilterClass) GaussianGradientFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("gaussianGradientFilter")) return rv } -// Returns a minimum component filter. [Full Topic] +// Returns a Gaussian gradient filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228360-minimumcomponentfilter?language=objc -func Filter_MinimumComponentFilter() Filter { - return FilterClass.MinimumComponentFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228332-gaussiangradientfilter?language=objc +func Filter_GaussianGradientFilter() Filter { + return FilterClass.GaussianGradientFilter() } -// Returns a fourfold reflected tile filter. [Full Topic] +// Returns a highlight-shadow adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228327-fourfoldreflectedtilefilter?language=objc -func (fc _FilterClass) FourfoldReflectedTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("fourfoldReflectedTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228339-highlightshadowadjustfilter?language=objc +func (fc _FilterClass) HighlightShadowAdjustFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("highlightShadowAdjustFilter")) return rv } -// Returns a fourfold reflected tile filter. [Full Topic] +// Returns a highlight-shadow adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228327-fourfoldreflectedtilefilter?language=objc -func Filter_FourfoldReflectedTileFilter() Filter { - return FilterClass.FourfoldReflectedTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228339-highlightshadowadjustfilter?language=objc +func Filter_HighlightShadowAdjustFilter() Filter { + return FilterClass.HighlightShadowAdjustFilter() } -// Returns a sixfold reflected tile filter. [Full Topic] +// Returns a convolution 7 x 7 filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228405-sixfoldreflectedtilefilter?language=objc -func (fc _FilterClass) SixfoldReflectedTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("sixfoldReflectedTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228301-convolution7x7filter?language=objc +func (fc _FilterClass) Convolution7X7Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolution7X7Filter")) return rv } -// Returns a sixfold reflected tile filter. [Full Topic] +// Returns a convolution 7 x 7 filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228405-sixfoldreflectedtilefilter?language=objc -func Filter_SixfoldReflectedTileFilter() Filter { - return FilterClass.SixfoldReflectedTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228301-convolution7x7filter?language=objc +func Filter_Convolution7X7Filter() Filter { + return FilterClass.Convolution7X7Filter() } -// Returns a CMYK halftone filter. [Full Topic] +// Returns a blend with blue mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228259-cmykhalftone?language=objc -func (fc _FilterClass) CMYKHalftone() Filter { - rv := objc.Call[Filter](fc, objc.Sel("CMYKHalftone")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228273-blendwithbluemaskfilter?language=objc +func (fc _FilterClass) BlendWithBlueMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("blendWithBlueMaskFilter")) return rv } -// Returns a CMYK halftone filter. [Full Topic] +// Returns a blend with blue mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228259-cmykhalftone?language=objc -func Filter_CMYKHalftone() Filter { - return FilterClass.CMYKHalftone() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228273-blendwithbluemaskfilter?language=objc +func Filter_BlendWithBlueMaskFilter() Filter { + return FilterClass.BlendWithBlueMaskFilter() } -// Returns a source-over compositing filter. [Full Topic] +// Returns a pixellate filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228412-sourceovercompositingfilter?language=objc -func (fc _FilterClass) SourceOverCompositingFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("sourceOverCompositingFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228393-pixellatefilter?language=objc +func (fc _FilterClass) PixellateFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pixellateFilter")) return rv } -// Returns a source-over compositing filter. [Full Topic] +// Returns a pixellate filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228412-sourceovercompositingfilter?language=objc -func Filter_SourceOverCompositingFilter() Filter { - return FilterClass.SourceOverCompositingFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228393-pixellatefilter?language=objc +func Filter_PixellateFilter() Filter { + return FilterClass.PixellateFilter() } -// Returns a mod transition filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228363-modtransitionfilter?language=objc -func (fc _FilterClass) ModTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("modTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547119-colorabsolutedifferencefilter?language=objc +func (fc _FilterClass) ColorAbsoluteDifferenceFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorAbsoluteDifferenceFilter")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547119-colorabsolutedifferencefilter?language=objc +func Filter_ColorAbsoluteDifferenceFilter() Filter { + return FilterClass.ColorAbsoluteDifferenceFilter() +} + +// Returns a depth-to-disparity filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228309-depthtodisparityfilter?language=objc +func (fc _FilterClass) DepthToDisparityFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("depthToDisparityFilter")) return rv } -// Returns a mod transition filter. [Full Topic] +// Returns a depth-to-disparity filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228363-modtransitionfilter?language=objc -func Filter_ModTransitionFilter() Filter { - return FilterClass.ModTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228309-depthtodisparityfilter?language=objc +func Filter_DepthToDisparityFilter() Filter { + return FilterClass.DepthToDisparityFilter() } -// [Full Topic] +// Returns a thermal filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600145-glasslozengefilter?language=objc -func (fc _FilterClass) GlassLozengeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("glassLozengeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228423-thermalfilter?language=objc +func (fc _FilterClass) ThermalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("thermalFilter")) return rv } -// [Full Topic] +// Returns a thermal filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600145-glasslozengefilter?language=objc -func Filter_GlassLozengeFilter() Filter { - return FilterClass.GlassLozengeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228423-thermalfilter?language=objc +func Filter_ThermalFilter() Filter { + return FilterClass.ThermalFilter() } -// Returns a bicubic scale transform filter. [Full Topic] +// Produces a CIImage object by applying a kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228271-bicubicscaletransformfilter?language=objc -func (fc _FilterClass) BicubicScaleTransformFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("bicubicScaleTransformFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1562058-apply?language=objc +func (f_ Filter) Apply(k IKernel, args ...any) Image { + rv := objc.Call[Image](f_, objc.Sel("apply:"), append([]any{k}, args...)...) return rv } -// Returns a bicubic scale transform filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228271-bicubicscaletransformfilter?language=objc -func Filter_BicubicScaleTransformFilter() Filter { - return FilterClass.BicubicScaleTransformFilter() -} - -// Returns an X-ray filter. [Full Topic] +// Returns a sixfold rotated tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228433-xrayfilter?language=objc -func (fc _FilterClass) XRayFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("xRayFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228406-sixfoldrotatedtilefilter?language=objc +func (fc _FilterClass) SixfoldRotatedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sixfoldRotatedTileFilter")) return rv } -// Returns an X-ray filter. [Full Topic] +// Returns a sixfold rotated tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228433-xrayfilter?language=objc -func Filter_XRayFilter() Filter { - return FilterClass.XRayFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228406-sixfoldrotatedtilefilter?language=objc +func Filter_SixfoldRotatedTileFilter() Filter { + return FilterClass.SixfoldRotatedTileFilter() } -// Returns a minimum compositing filter. [Full Topic] +// Returns a line overlay filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228361-minimumcompositingfilter?language=objc -func (fc _FilterClass) MinimumCompositingFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("minimumCompositingFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228347-lineoverlayfilter?language=objc +func (fc _FilterClass) LineOverlayFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lineOverlayFilter")) return rv } -// Returns a minimum compositing filter. [Full Topic] +// Returns a line overlay filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228361-minimumcompositingfilter?language=objc -func Filter_MinimumCompositingFilter() Filter { - return FilterClass.MinimumCompositingFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228347-lineoverlayfilter?language=objc +func Filter_LineOverlayFilter() Filter { + return FilterClass.LineOverlayFilter() } -// Returns a white-point adjust filter. [Full Topic] +// Returns a color-burn blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228432-whitepointadjustfilter?language=objc -func (fc _FilterClass) WhitePointAdjustFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("whitePointAdjustFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228283-colorburnblendmodefilter?language=objc +func (fc _FilterClass) ColorBurnBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorBurnBlendModeFilter")) return rv } -// Returns a white-point adjust filter. [Full Topic] +// Returns a color-burn blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228432-whitepointadjustfilter?language=objc -func Filter_WhitePointAdjustFilter() Filter { - return FilterClass.WhitePointAdjustFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228283-colorburnblendmodefilter?language=objc +func Filter_ColorBurnBlendModeFilter() Filter { + return FilterClass.ColorBurnBlendModeFilter() } // Returns a smooth linear gradient filter. [Full Topic] @@ -2515,589 +2440,604 @@ func Filter_SmoothLinearGradientFilter() Filter { return FilterClass.SmoothLinearGradientFilter() } -// [Full Topic] +// Returns a vignette-effect filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547121-columnaveragefilter?language=objc -func (fc _FilterClass) ColumnAverageFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("columnAverageFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228430-vignetteeffectfilter?language=objc +func (fc _FilterClass) VignetteEffectFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("vignetteEffectFilter")) return rv } -// [Full Topic] +// Returns a vignette-effect filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547121-columnaveragefilter?language=objc -func Filter_ColumnAverageFilter() Filter { - return FilterClass.ColumnAverageFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228430-vignetteeffectfilter?language=objc +func Filter_VignetteEffectFilter() Filter { + return FilterClass.VignetteEffectFilter() } -// Returns an array of all published filter names in the specified category. [Full Topic] +// Returns an eightfold reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438145-filternamesincategory?language=objc -func (fc _FilterClass) FilterNamesInCategory(category string) []string { - rv := objc.Call[[]string](fc, objc.Sel("filterNamesInCategory:"), category) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228322-eightfoldreflectedtilefilter?language=objc +func (fc _FilterClass) EightfoldReflectedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("eightfoldReflectedTileFilter")) return rv } -// Returns an array of all published filter names in the specified category. [Full Topic] +// Returns an eightfold reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438145-filternamesincategory?language=objc -func Filter_FilterNamesInCategory(category string) []string { - return FilterClass.FilterNamesInCategory(category) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228322-eightfoldreflectedtilefilter?language=objc +func Filter_EightfoldReflectedTileFilter() Filter { + return FilterClass.EightfoldReflectedTileFilter() } -// Returns a comic effect filter. [Full Topic] +// Returns a color-dodge blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228298-comiceffectfilter?language=objc -func (fc _FilterClass) ComicEffectFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("comicEffectFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228291-colordodgeblendmodefilter?language=objc +func (fc _FilterClass) ColorDodgeBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorDodgeBlendModeFilter")) return rv } -// Returns a comic effect filter. [Full Topic] +// Returns a color-dodge blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228298-comiceffectfilter?language=objc -func Filter_ComicEffectFilter() Filter { - return FilterClass.ComicEffectFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228291-colordodgeblendmodefilter?language=objc +func Filter_ColorDodgeBlendModeFilter() Filter { + return FilterClass.ColorDodgeBlendModeFilter() } -// Returns a keystone correction horizontal filter. [Full Topic] +// Returns a shaded material filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325510-keystonecorrectionhorizontalfilt?language=objc -func (fc _FilterClass) KeystoneCorrectionHorizontalFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("keystoneCorrectionHorizontalFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228403-shadedmaterialfilter?language=objc +func (fc _FilterClass) ShadedMaterialFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("shadedMaterialFilter")) return rv } -// Returns a keystone correction horizontal filter. [Full Topic] +// Returns a shaded material filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325510-keystonecorrectionhorizontalfilt?language=objc -func Filter_KeystoneCorrectionHorizontalFilter() Filter { - return FilterClass.KeystoneCorrectionHorizontalFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228403-shadedmaterialfilter?language=objc +func Filter_ShadedMaterialFilter() Filter { + return FilterClass.ShadedMaterialFilter() } -// Returns the localized name for the specified filter name. [Full Topic] +// Blurs a rectangular area by reducing contrasting pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437697-localizednameforfiltername?language=objc -func (fc _FilterClass) LocalizedNameForFilterName(filterName string) string { - rv := objc.Call[string](fc, objc.Sel("localizedNameForFilterName:"), filterName) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228368-morphologyrectangleminimumfilter?language=objc +func (fc _FilterClass) MorphologyRectangleMinimumFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("morphologyRectangleMinimumFilter")) return rv } -// Returns the localized name for the specified filter name. [Full Topic] +// Blurs a rectangular area by reducing contrasting pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437697-localizednameforfiltername?language=objc -func Filter_LocalizedNameForFilterName(filterName string) string { - return FilterClass.LocalizedNameForFilterName(filterName) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228368-morphologyrectangleminimumfilter?language=objc +func Filter_MorphologyRectangleMinimumFilter() Filter { + return FilterClass.MorphologyRectangleMinimumFilter() } -// Returns an exposure adjust filter. [Full Topic] +// Returns a sepia-tone filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228324-exposureadjustfilter?language=objc -func (fc _FilterClass) ExposureAdjustFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("exposureAdjustFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228402-sepiatonefilter?language=objc +func (fc _FilterClass) SepiaToneFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sepiaToneFilter")) return rv } -// Returns an exposure adjust filter. [Full Topic] +// Returns a sepia-tone filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228324-exposureadjustfilter?language=objc -func Filter_ExposureAdjustFilter() Filter { - return FilterClass.ExposureAdjustFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228402-sepiatonefilter?language=objc +func Filter_SepiaToneFilter() Filter { + return FilterClass.SepiaToneFilter() } -// Returns an sRGB-to-linear filter. [Full Topic] +// Returns a hexagonal pixellate filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228398-srgbtonecurvetolinearfilter?language=objc -func (fc _FilterClass) SRGBToneCurveToLinearFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("sRGBToneCurveToLinearFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228338-hexagonalpixellatefilter?language=objc +func (fc _FilterClass) HexagonalPixellateFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hexagonalPixellateFilter")) return rv } -// Returns an sRGB-to-linear filter. [Full Topic] +// Returns a hexagonal pixellate filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228398-srgbtonecurvetolinearfilter?language=objc -func Filter_SRGBToneCurveToLinearFilter() Filter { - return FilterClass.SRGBToneCurveToLinearFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228338-hexagonalpixellatefilter?language=objc +func Filter_HexagonalPixellateFilter() Filter { + return FilterClass.HexagonalPixellateFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600153-twirldistortionfilter?language=objc -func (fc _FilterClass) TwirlDistortionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("twirlDistortionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547112-areahistogramfilter?language=objc +func (fc _FilterClass) AreaHistogramFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaHistogramFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600153-twirldistortionfilter?language=objc -func Filter_TwirlDistortionFilter() Filter { - return FilterClass.TwirlDistortionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547112-areahistogramfilter?language=objc +func Filter_AreaHistogramFilter() Filter { + return FilterClass.AreaHistogramFilter() +} + +// Returns a mod transition filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228363-modtransitionfilter?language=objc +func (fc _FilterClass) ModTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("modTransitionFilter")) + return rv +} + +// Returns a mod transition filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228363-modtransitionfilter?language=objc +func Filter_ModTransitionFilter() Filter { + return FilterClass.ModTransitionFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547114-areamaximumfilter?language=objc -func (fc _FilterClass) AreaMaximumFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("areaMaximumFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600148-ninepartstretchedfilter?language=objc +func (fc _FilterClass) NinePartStretchedFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("ninePartStretchedFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547114-areamaximumfilter?language=objc -func Filter_AreaMaximumFilter() Filter { - return FilterClass.AreaMaximumFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600148-ninepartstretchedfilter?language=objc +func Filter_NinePartStretchedFilter() Filter { + return FilterClass.NinePartStretchedFilter() } -// Returns a dictionary that contains key-value pairs that describe the filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228047-customattributes?language=objc -func (fc _FilterClass) CustomAttributes() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](fc, objc.Sel("customAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600138-bumpdistortionfilter?language=objc +func (fc _FilterClass) BumpDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("bumpDistortionFilter")) return rv } -// Returns a dictionary that contains key-value pairs that describe the filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228047-customattributes?language=objc -func Filter_CustomAttributes() map[string]objc.Object { - return FilterClass.CustomAttributes() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600138-bumpdistortionfilter?language=objc +func Filter_BumpDistortionFilter() Filter { + return FilterClass.BumpDistortionFilter() } -// Returns a saliency map filter. [Full Topic] +// Returns a convolution 9 horizontal filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228399-saliencymapfilter?language=objc -func (fc _FilterClass) SaliencyMapFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("saliencyMapFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228302-convolution9horizontalfilter?language=objc +func (fc _FilterClass) Convolution9HorizontalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolution9HorizontalFilter")) return rv } -// Returns a saliency map filter. [Full Topic] +// Returns a convolution 9 horizontal filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228399-saliencymapfilter?language=objc -func Filter_SaliencyMapFilter() Filter { - return FilterClass.SaliencyMapFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228302-convolution9horizontalfilter?language=objc +func Filter_Convolution9HorizontalFilter() Filter { + return FilterClass.Convolution9HorizontalFilter() } -// Returns a source-in compositing filter. [Full Topic] +// Returns a luminosity blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228410-sourceincompositingfilter?language=objc -func (fc _FilterClass) SourceInCompositingFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("sourceInCompositingFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228353-luminosityblendmodefilter?language=objc +func (fc _FilterClass) LuminosityBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("luminosityBlendModeFilter")) return rv } -// Returns a source-in compositing filter. [Full Topic] +// Returns a luminosity blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228410-sourceincompositingfilter?language=objc -func Filter_SourceInCompositingFilter() Filter { - return FilterClass.SourceInCompositingFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228353-luminosityblendmodefilter?language=objc +func Filter_LuminosityBlendModeFilter() Filter { + return FilterClass.LuminosityBlendModeFilter() } -// Returns a keystone correction combined filter. [Full Topic] +// Returns an optical tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325509-keystonecorrectioncombinedfilter?language=objc -func (fc _FilterClass) KeystoneCorrectionCombinedFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("keystoneCorrectionCombinedFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228373-optilefilter?language=objc +func (fc _FilterClass) OpTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("opTileFilter")) return rv } -// Returns a keystone correction combined filter. [Full Topic] +// Returns an optical tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325509-keystonecorrectioncombinedfilter?language=objc -func Filter_KeystoneCorrectionCombinedFilter() Filter { - return FilterClass.KeystoneCorrectionCombinedFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228373-optilefilter?language=objc +func Filter_OpTileFilter() Filter { + return FilterClass.OpTileFilter() } -// Returns a dot screen filter. [Full Topic] +// Returns a minimum compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228318-dotscreenfilter?language=objc -func (fc _FilterClass) DotScreenFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("dotScreenFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228361-minimumcompositingfilter?language=objc +func (fc _FilterClass) MinimumCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("minimumCompositingFilter")) return rv } -// Returns a dot screen filter. [Full Topic] +// Returns a minimum compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228318-dotscreenfilter?language=objc -func Filter_DotScreenFilter() Filter { - return FilterClass.DotScreenFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228361-minimumcompositingfilter?language=objc +func Filter_MinimumCompositingFilter() Filter { + return FilterClass.MinimumCompositingFilter() } -// Returns a line screen filter. [Full Topic] +// Returns a maximum component filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228348-linescreenfilter?language=objc -func (fc _FilterClass) LineScreenFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("lineScreenFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228356-maximumcomponentfilter?language=objc +func (fc _FilterClass) MaximumComponentFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("maximumComponentFilter")) return rv } -// Returns a line screen filter. [Full Topic] +// Returns a maximum component filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228348-linescreenfilter?language=objc -func Filter_LineScreenFilter() Filter { - return FilterClass.LineScreenFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228356-maximumcomponentfilter?language=objc +func Filter_MaximumComponentFilter() Filter { + return FilterClass.MaximumComponentFilter() } -// Returns a hue blend mode filter. [Full Topic] +// Returns an affine clamp filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228341-hueblendmodefilter?language=objc -func (fc _FilterClass) HueBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("hueBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228265-affineclampfilter?language=objc +func (fc _FilterClass) AffineClampFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("affineClampFilter")) return rv } -// Returns a hue blend mode filter. [Full Topic] +// Returns an affine clamp filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228341-hueblendmodefilter?language=objc -func Filter_HueBlendModeFilter() Filter { - return FilterClass.HueBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228265-affineclampfilter?language=objc +func Filter_AffineClampFilter() Filter { + return FilterClass.AffineClampFilter() } -// [Full Topic] +// Applies a square-shaped blur to an area of an image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600139-bumpdistortionlinearfilter?language=objc -func (fc _FilterClass) BumpDistortionLinearFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("bumpDistortionLinearFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228278-boxblurfilter?language=objc +func (fc _FilterClass) BoxBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("boxBlurFilter")) return rv } -// [Full Topic] +// Applies a square-shaped blur to an area of an image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600139-bumpdistortionlinearfilter?language=objc -func Filter_BumpDistortionLinearFilter() Filter { - return FilterClass.BumpDistortionLinearFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228278-boxblurfilter?language=objc +func Filter_BoxBlurFilter() Filter { + return FilterClass.BoxBlurFilter() } -// Returns a vibrance filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228429-vibrancefilter?language=objc -func (fc _FilterClass) VibranceFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("vibranceFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600140-circlesplashdistortionfilter?language=objc +func (fc _FilterClass) CircleSplashDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("circleSplashDistortionFilter")) return rv } -// Returns a vibrance filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228429-vibrancefilter?language=objc -func Filter_VibranceFilter() Filter { - return FilterClass.VibranceFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600140-circlesplashdistortionfilter?language=objc +func Filter_CircleSplashDistortionFilter() Filter { + return FilterClass.CircleSplashDistortionFilter() } -// Returns an array of all published filter names that match all the specified categories. [Full Topic] +// Returns a Lanczos scale transform filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437595-filternamesincategories?language=objc -func (fc _FilterClass) FilterNamesInCategories(categories []string) []string { - rv := objc.Call[[]string](fc, objc.Sel("filterNamesInCategories:"), categories) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228344-lanczosscaletransformfilter?language=objc +func (fc _FilterClass) LanczosScaleTransformFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lanczosScaleTransformFilter")) return rv } -// Returns an array of all published filter names that match all the specified categories. [Full Topic] +// Returns a Lanczos scale transform filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437595-filternamesincategories?language=objc -func Filter_FilterNamesInCategories(categories []string) []string { - return FilterClass.FilterNamesInCategories(categories) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228344-lanczosscaletransformfilter?language=objc +func Filter_LanczosScaleTransformFilter() Filter { + return FilterClass.LanczosScaleTransformFilter() } -// Returns a vignette-effect filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228430-vignetteeffectfilter?language=objc -func (fc _FilterClass) VignetteEffectFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("vignetteEffectFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750390-personsegmentationfilter?language=objc +func (fc _FilterClass) PersonSegmentationFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("personSegmentationFilter")) return rv } -// Returns a vignette-effect filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228430-vignetteeffectfilter?language=objc -func Filter_VignetteEffectFilter() Filter { - return FilterClass.VignetteEffectFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750390-personsegmentationfilter?language=objc +func Filter_PersonSegmentationFilter() Filter { + return FilterClass.PersonSegmentationFilter() } -// Returns a Code 128 barcode generator filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228281-code128barcodegeneratorfilter?language=objc -func (fc _FilterClass) Code128BarcodeGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("code128BarcodeGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547120-colorthresholdfilter?language=objc +func (fc _FilterClass) ColorThresholdFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorThresholdFilter")) return rv } -// Returns a Code 128 barcode generator filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228281-code128barcodegeneratorfilter?language=objc -func Filter_Code128BarcodeGeneratorFilter() Filter { - return FilterClass.Code128BarcodeGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547120-colorthresholdfilter?language=objc +func Filter_ColorThresholdFilter() Filter { + return FilterClass.ColorThresholdFilter() } -// Returns a blend with mask filter. [Full Topic] +// Returns a tone curve filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228274-blendwithmaskfilter?language=objc -func (fc _FilterClass) BlendWithMaskFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("blendWithMaskFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228424-tonecurvefilter?language=objc +func (fc _FilterClass) ToneCurveFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("toneCurveFilter")) return rv } -// Returns a blend with mask filter. [Full Topic] +// Returns a tone curve filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228274-blendwithmaskfilter?language=objc -func Filter_BlendWithMaskFilter() Filter { - return FilterClass.BlendWithMaskFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228424-tonecurvefilter?language=objc +func Filter_ToneCurveFilter() Filter { + return FilterClass.ToneCurveFilter() } -// Returns a dissolve transition filter. [Full Topic] +// Returns a linear-burn blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228314-dissolvetransitionfilter?language=objc -func (fc _FilterClass) DissolveTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("dissolveTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228349-linearburnblendmodefilter?language=objc +func (fc _FilterClass) LinearBurnBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("linearBurnBlendModeFilter")) return rv } -// Returns a dissolve transition filter. [Full Topic] +// Returns a linear-burn blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228314-dissolvetransitionfilter?language=objc -func Filter_DissolveTransitionFilter() Filter { - return FilterClass.DissolveTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228349-linearburnblendmodefilter?language=objc +func Filter_LinearBurnBlendModeFilter() Filter { + return FilterClass.LinearBurnBlendModeFilter() } -// Returns a parallelogram tile filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228379-parallelogramtilefilter?language=objc -func (fc _FilterClass) ParallelogramTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("parallelogramTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600139-bumpdistortionlinearfilter?language=objc +func (fc _FilterClass) BumpDistortionLinearFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("bumpDistortionLinearFilter")) return rv } -// Returns a parallelogram tile filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228379-parallelogramtilefilter?language=objc -func Filter_ParallelogramTileFilter() Filter { - return FilterClass.ParallelogramTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600139-bumpdistortionlinearfilter?language=objc +func Filter_BumpDistortionLinearFilter() Filter { + return FilterClass.BumpDistortionLinearFilter() } -// Returns a photo-effect noir filter. [Full Topic] +// Returns a mask-to-alpha filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228388-photoeffectnoirfilter?language=objc -func (fc _FilterClass) PhotoEffectNoirFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("photoEffectNoirFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228354-masktoalphafilter?language=objc +func (fc _FilterClass) MaskToAlphaFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("maskToAlphaFilter")) return rv } -// Returns a photo-effect noir filter. [Full Topic] +// Returns a mask-to-alpha filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228388-photoeffectnoirfilter?language=objc -func Filter_PhotoEffectNoirFilter() Filter { - return FilterClass.PhotoEffectNoirFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228354-masktoalphafilter?language=objc +func Filter_MaskToAlphaFilter() Filter { + return FilterClass.MaskToAlphaFilter() } -// Returns a fourfold translated tile filter. [Full Topic] +// Returns a linear-dodge blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228329-fourfoldtranslatedtilefilter?language=objc -func (fc _FilterClass) FourfoldTranslatedTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("fourfoldTranslatedTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228350-lineardodgeblendmodefilter?language=objc +func (fc _FilterClass) LinearDodgeBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("linearDodgeBlendModeFilter")) return rv } -// Returns a fourfold translated tile filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228329-fourfoldtranslatedtilefilter?language=objc -func Filter_FourfoldTranslatedTileFilter() Filter { - return FilterClass.FourfoldTranslatedTileFilter() +// Returns a linear-dodge blend mode filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228350-lineardodgeblendmodefilter?language=objc +func Filter_LinearDodgeBlendModeFilter() Filter { + return FilterClass.LinearDodgeBlendModeFilter() } -// Returns a multiply blend mode filter. [Full Topic] +// Returns a page curl transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228370-multiplyblendmodefilter?language=objc -func (fc _FilterClass) MultiplyBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("multiplyBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228375-pagecurltransitionfilter?language=objc +func (fc _FilterClass) PageCurlTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pageCurlTransitionFilter")) return rv } -// Returns a multiply blend mode filter. [Full Topic] +// Returns a page curl transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228370-multiplyblendmodefilter?language=objc -func Filter_MultiplyBlendModeFilter() Filter { - return FilterClass.MultiplyBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228375-pagecurltransitionfilter?language=objc +func Filter_PageCurlTransitionFilter() Filter { + return FilterClass.PageCurlTransitionFilter() } -// Blurs a rectangular area by reducing contrasting pixels. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228368-morphologyrectangleminimumfilter?language=objc -func (fc _FilterClass) MorphologyRectangleMinimumFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("morphologyRectangleMinimumFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600151-stretchcropfilter?language=objc +func (fc _FilterClass) StretchCropFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("stretchCropFilter")) return rv } -// Blurs a rectangular area by reducing contrasting pixels. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228368-morphologyrectangleminimumfilter?language=objc -func Filter_MorphologyRectangleMinimumFilter() Filter { - return FilterClass.MorphologyRectangleMinimumFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600151-stretchcropfilter?language=objc +func Filter_StretchCropFilter() Filter { + return FilterClass.StretchCropFilter() } -// Returns a fourfold rotated tile filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228328-fourfoldrotatedtilefilter?language=objc -func (fc _FilterClass) FourfoldRotatedTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("fourfoldRotatedTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547122-histogramdisplayfilter?language=objc +func (fc _FilterClass) HistogramDisplayFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("histogramDisplayFilter")) return rv } -// Returns a fourfold rotated tile filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228328-fourfoldrotatedtilefilter?language=objc -func Filter_FourfoldRotatedTileFilter() Filter { - return FilterClass.FourfoldRotatedTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547122-histogramdisplayfilter?language=objc +func Filter_HistogramDisplayFilter() Filter { + return FilterClass.HistogramDisplayFilter() } -// Returns a color monochrome filter. [Full Topic] +// Returns a dot screen filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228295-colormonochromefilter?language=objc -func (fc _FilterClass) ColorMonochromeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorMonochromeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228318-dotscreenfilter?language=objc +func (fc _FilterClass) DotScreenFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("dotScreenFilter")) return rv } -// Returns a color monochrome filter. [Full Topic] +// Returns a dot screen filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228295-colormonochromefilter?language=objc -func Filter_ColorMonochromeFilter() Filter { - return FilterClass.ColorMonochromeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228318-dotscreenfilter?language=objc +func Filter_DotScreenFilter() Filter { + return FilterClass.DotScreenFilter() } -// Returns a line overlay filter. [Full Topic] +// Returns a affine tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228347-lineoverlayfilter?language=objc -func (fc _FilterClass) LineOverlayFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("lineOverlayFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228266-affinetilefilter?language=objc +func (fc _FilterClass) AffineTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("affineTileFilter")) return rv } -// Returns a line overlay filter. [Full Topic] +// Returns a affine tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228347-lineoverlayfilter?language=objc -func Filter_LineOverlayFilter() Filter { - return FilterClass.LineOverlayFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228266-affinetilefilter?language=objc +func Filter_AffineTileFilter() Filter { + return FilterClass.AffineTileFilter() } -// Returns a perspective rotate filter. [Full Topic] +// Returns a depth-of-field filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325512-perspectiverotatefilter?language=objc -func (fc _FilterClass) PerspectiveRotateFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("perspectiveRotateFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228308-depthoffieldfilter?language=objc +func (fc _FilterClass) DepthOfFieldFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("depthOfFieldFilter")) return rv } -// Returns a perspective rotate filter. [Full Topic] +// Returns a depth-of-field filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325512-perspectiverotatefilter?language=objc -func Filter_PerspectiveRotateFilter() Filter { - return FilterClass.PerspectiveRotateFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228308-depthoffieldfilter?language=objc +func Filter_DepthOfFieldFilter() Filter { + return FilterClass.DepthOfFieldFilter() } -// Returns a shaded material filter. [Full Topic] +// Returns a difference blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228403-shadedmaterialfilter?language=objc -func (fc _FilterClass) ShadedMaterialFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("shadedMaterialFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228310-differenceblendmodefilter?language=objc +func (fc _FilterClass) DifferenceBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("differenceBlendModeFilter")) return rv } -// Returns a shaded material filter. [Full Topic] +// Returns a difference blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228403-shadedmaterialfilter?language=objc -func Filter_ShadedMaterialFilter() Filter { - return FilterClass.ShadedMaterialFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228310-differenceblendmodefilter?language=objc +func Filter_DifferenceBlendModeFilter() Filter { + return FilterClass.DifferenceBlendModeFilter() } -// [Full Topic] +// Returns a bars swipe transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750385-convolutionrgb3x3filter?language=objc -func (fc _FilterClass) ConvolutionRGB3X3Filter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB3X3Filter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228270-barsswipetransitionfilter?language=objc +func (fc _FilterClass) BarsSwipeTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("barsSwipeTransitionFilter")) return rv } -// [Full Topic] +// Returns a bars swipe transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750385-convolutionrgb3x3filter?language=objc -func Filter_ConvolutionRGB3X3Filter() Filter { - return FilterClass.ConvolutionRGB3X3Filter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228270-barsswipetransitionfilter?language=objc +func Filter_BarsSwipeTransitionFilter() Filter { + return FilterClass.BarsSwipeTransitionFilter() } -// [Full Topic] +// Returns a radial gradient filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750389-convolutionrgb9verticalfilter?language=objc -func (fc _FilterClass) ConvolutionRGB9VerticalFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB9VerticalFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228395-radialgradientfilter?language=objc +func (fc _FilterClass) RadialGradientFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("radialGradientFilter")) return rv } -// [Full Topic] +// Returns a radial gradient filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750389-convolutionrgb9verticalfilter?language=objc -func Filter_ConvolutionRGB9VerticalFilter() Filter { - return FilterClass.ConvolutionRGB9VerticalFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228395-radialgradientfilter?language=objc +func Filter_RadialGradientFilter() Filter { + return FilterClass.RadialGradientFilter() } -// [Full Topic] +// Returns an edge preserve upsample filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600148-ninepartstretchedfilter?language=objc -func (fc _FilterClass) NinePartStretchedFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("ninePartStretchedFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228319-edgepreserveupsamplefilter?language=objc +func (fc _FilterClass) EdgePreserveUpsampleFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("edgePreserveUpsampleFilter")) return rv } -// [Full Topic] +// Returns an edge preserve upsample filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600148-ninepartstretchedfilter?language=objc -func Filter_NinePartStretchedFilter() Filter { - return FilterClass.NinePartStretchedFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228319-edgepreserveupsamplefilter?language=objc +func Filter_EdgePreserveUpsampleFilter() Filter { + return FilterClass.EdgePreserveUpsampleFilter() } -// Returns an eightfold reflected tile filter. [Full Topic] +// Returns a color cube filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228322-eightfoldreflectedtilefilter?language=objc -func (fc _FilterClass) EightfoldReflectedTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("eightfoldReflectedTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228287-colorcubefilter?language=objc +func (fc _FilterClass) ColorCubeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorCubeFilter")) return rv } -// Returns an eightfold reflected tile filter. [Full Topic] +// Returns a color cube filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228322-eightfoldreflectedtilefilter?language=objc -func Filter_EightfoldReflectedTileFilter() Filter { - return FilterClass.EightfoldReflectedTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228287-colorcubefilter?language=objc +func Filter_ColorCubeFilter() Filter { + return FilterClass.ColorCubeFilter() } -// [Full Topic] +// Creates motion blur on an image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600152-toruslensdistortionfilter?language=objc -func (fc _FilterClass) TorusLensDistortionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("torusLensDistortionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228369-motionblurfilter?language=objc +func (fc _FilterClass) MotionBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("motionBlurFilter")) return rv } -// [Full Topic] +// Creates motion blur on an image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600152-toruslensdistortionfilter?language=objc -func Filter_TorusLensDistortionFilter() Filter { - return FilterClass.TorusLensDistortionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228369-motionblurfilter?language=objc +func Filter_MotionBlurFilter() Filter { + return FilterClass.MotionBlurFilter() } -// Returns a color clamp filter. [Full Topic] +// Returns an array of all published filter names that match all the specified categories. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228284-colorclampfilter?language=objc -func (fc _FilterClass) ColorClampFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorClampFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437595-filternamesincategories?language=objc +func (fc _FilterClass) FilterNamesInCategories(categories []string) []string { + rv := objc.Call[[]string](fc, objc.Sel("filterNamesInCategories:"), categories) return rv } -// Returns a color clamp filter. [Full Topic] +// Returns an array of all published filter names that match all the specified categories. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228284-colorclampfilter?language=objc -func Filter_ColorClampFilter() Filter { - return FilterClass.ColorClampFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437595-filternamesincategories?language=objc +func Filter_FilterNamesInCategories(categories []string) []string { + return FilterClass.FilterNamesInCategories(categories) } // Blurs a specified portion of an image. [Full Topic] @@ -3115,507 +3055,529 @@ func Filter_MaskedVariableBlurFilter() Filter { return FilterClass.MaskedVariableBlurFilter() } -// Returns an accordion fold transition filter. [Full Topic] +// Returns a spot color filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228263-accordionfoldtransitionfilter?language=objc -func (fc _FilterClass) AccordionFoldTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("accordionFoldTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228413-spotcolorfilter?language=objc +func (fc _FilterClass) SpotColorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("spotColorFilter")) return rv } -// Returns an accordion fold transition filter. [Full Topic] +// Returns a spot color filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228263-accordionfoldtransitionfilter?language=objc -func Filter_AccordionFoldTransitionFilter() Filter { - return FilterClass.AccordionFoldTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228413-spotcolorfilter?language=objc +func Filter_SpotColorFilter() Filter { + return FilterClass.SpotColorFilter() } -// Creates motion blur on an image. [Full Topic] +// Returns an array of all published filter names in the specified category. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228369-motionblurfilter?language=objc -func (fc _FilterClass) MotionBlurFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("motionBlurFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438145-filternamesincategory?language=objc +func (fc _FilterClass) FilterNamesInCategory(category string) []string { + rv := objc.Call[[]string](fc, objc.Sel("filterNamesInCategory:"), category) return rv } -// Creates motion blur on an image. [Full Topic] +// Returns an array of all published filter names in the specified category. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228369-motionblurfilter?language=objc -func Filter_MotionBlurFilter() Filter { - return FilterClass.MotionBlurFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438145-filternamesincategory?language=objc +func Filter_FilterNamesInCategory(category string) []string { + return FilterClass.FilterNamesInCategory(category) +} + +// Returns a source-atop compositing filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228409-sourceatopcompositingfilter?language=objc +func (fc _FilterClass) SourceAtopCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sourceAtopCompositingFilter")) + return rv +} + +// Returns a source-atop compositing filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228409-sourceatopcompositingfilter?language=objc +func Filter_SourceAtopCompositingFilter() Filter { + return FilterClass.SourceAtopCompositingFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547113-areamaximumalphafilter?language=objc -func (fc _FilterClass) AreaMaximumAlphaFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("areaMaximumAlphaFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3584770-colorthresholdotsufilter?language=objc +func (fc _FilterClass) ColorThresholdOtsuFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorThresholdOtsuFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547113-areamaximumalphafilter?language=objc -func Filter_AreaMaximumAlphaFilter() Filter { - return FilterClass.AreaMaximumAlphaFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3584770-colorthresholdotsufilter?language=objc +func Filter_ColorThresholdOtsuFilter() Filter { + return FilterClass.ColorThresholdOtsuFilter() } -// Returns a highlight-shadow adjust filter. [Full Topic] +// Blurs a circular area by reducing contrasting pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228339-highlightshadowadjustfilter?language=objc -func (fc _FilterClass) HighlightShadowAdjustFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("highlightShadowAdjustFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228366-morphologyminimumfilter?language=objc +func (fc _FilterClass) MorphologyMinimumFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("morphologyMinimumFilter")) return rv } -// Returns a highlight-shadow adjust filter. [Full Topic] +// Blurs a circular area by reducing contrasting pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228339-highlightshadowadjustfilter?language=objc -func Filter_HighlightShadowAdjustFilter() Filter { - return FilterClass.HighlightShadowAdjustFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228366-morphologyminimumfilter?language=objc +func Filter_MorphologyMinimumFilter() Filter { + return FilterClass.MorphologyMinimumFilter() } -// Returns a convolution 3 x 3 filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228299-convolution3x3filter?language=objc -func (fc _FilterClass) Convolution3X3Filter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("convolution3X3Filter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547118-areaminimumfilter?language=objc +func (fc _FilterClass) AreaMinimumFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaMinimumFilter")) return rv } -// Returns a convolution 3 x 3 filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228299-convolution3x3filter?language=objc -func Filter_Convolution3X3Filter() Filter { - return FilterClass.Convolution3X3Filter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547118-areaminimumfilter?language=objc +func Filter_AreaMinimumFilter() Filter { + return FilterClass.AreaMinimumFilter() } -// Returns a disintegrate-with-mask transition filter. [Full Topic] +// Returns a dictionary that contains key-value pairs that describe the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228312-disintegratewithmasktransitionfi?language=objc -func (fc _FilterClass) DisintegrateWithMaskTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("disintegrateWithMaskTransitionFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228047-customattributes?language=objc +func (fc _FilterClass) CustomAttributes() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](fc, objc.Sel("customAttributes")) return rv } -// Returns a disintegrate-with-mask transition filter. [Full Topic] +// Returns a dictionary that contains key-value pairs that describe the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228312-disintegratewithmasktransitionfi?language=objc -func Filter_DisintegrateWithMaskTransitionFilter() Filter { - return FilterClass.DisintegrateWithMaskTransitionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228047-customattributes?language=objc +func Filter_CustomAttributes() map[string]objc.Object { + return FilterClass.CustomAttributes() } -// Detects and highlights edges of objects. [Full Topic] +// Returns a text image generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228364-morphologygradientfilter?language=objc -func (fc _FilterClass) MorphologyGradientFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("morphologyGradientFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228422-textimagegeneratorfilter?language=objc +func (fc _FilterClass) TextImageGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("textImageGeneratorFilter")) return rv } -// Detects and highlights edges of objects. [Full Topic] +// Returns a text image generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228364-morphologygradientfilter?language=objc -func Filter_MorphologyGradientFilter() Filter { - return FilterClass.MorphologyGradientFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228422-textimagegeneratorfilter?language=objc +func Filter_TextImageGeneratorFilter() Filter { + return FilterClass.TextImageGeneratorFilter() } -// Produces a CIImage object by applying arguments to a kernel function and using options to control how the kernel function is evaluated. [Full Topic] +// Returns an sRGB-to-linear filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438077-apply?language=objc -func (f_ Filter) ApplyArgumentsOptions(k IKernel, args []objc.IObject, dict map[string]objc.IObject) Image { - rv := objc.Call[Image](f_, objc.Sel("apply:arguments:options:"), k, args, dict) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228398-srgbtonecurvetolinearfilter?language=objc +func (fc _FilterClass) SRGBToneCurveToLinearFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sRGBToneCurveToLinearFilter")) return rv } -// Returns a color blend mode filter. [Full Topic] +// Returns an sRGB-to-linear filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228282-colorblendmodefilter?language=objc -func (fc _FilterClass) ColorBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228398-srgbtonecurvetolinearfilter?language=objc +func Filter_SRGBToneCurveToLinearFilter() Filter { + return FilterClass.SRGBToneCurveToLinearFilter() +} + +// Returns a source-in compositing filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228410-sourceincompositingfilter?language=objc +func (fc _FilterClass) SourceInCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sourceInCompositingFilter")) return rv } -// Returns a color blend mode filter. [Full Topic] +// Returns a source-in compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228282-colorblendmodefilter?language=objc -func Filter_ColorBlendModeFilter() Filter { - return FilterClass.ColorBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228410-sourceincompositingfilter?language=objc +func Filter_SourceInCompositingFilter() Filter { + return FilterClass.SourceInCompositingFilter() } -// Returns an addition compositing filter. [Full Topic] +// Returns a minimum component filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228264-additioncompositingfilter?language=objc -func (fc _FilterClass) AdditionCompositingFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("additionCompositingFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228360-minimumcomponentfilter?language=objc +func (fc _FilterClass) MinimumComponentFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("minimumComponentFilter")) return rv } -// Returns an addition compositing filter. [Full Topic] +// Returns a minimum component filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228264-additioncompositingfilter?language=objc -func Filter_AdditionCompositingFilter() Filter { - return FilterClass.AdditionCompositingFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228360-minimumcomponentfilter?language=objc +func Filter_MinimumComponentFilter() Filter { + return FilterClass.MinimumComponentFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547110-kmeansfilter?language=objc -func (fc _FilterClass) KMeansFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("KMeansFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750389-convolutionrgb9verticalfilter?language=objc +func (fc _FilterClass) ConvolutionRGB9VerticalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB9VerticalFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547110-kmeansfilter?language=objc -func Filter_KMeansFilter() Filter { - return FilterClass.KMeansFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750389-convolutionrgb9verticalfilter?language=objc +func Filter_ConvolutionRGB9VerticalFilter() Filter { + return FilterClass.ConvolutionRGB9VerticalFilter() } -// Returns a perspective transform filter. [Full Topic] +// Returns a perspective transform with extent filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228382-perspectivetransformfilter?language=objc -func (fc _FilterClass) PerspectiveTransformFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("perspectiveTransformFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228383-perspectivetransformwithextentfi?language=objc +func (fc _FilterClass) PerspectiveTransformWithExtentFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("perspectiveTransformWithExtentFilter")) return rv } -// Returns a perspective transform filter. [Full Topic] +// Returns a perspective transform with extent filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228382-perspectivetransformfilter?language=objc -func Filter_PerspectiveTransformFilter() Filter { - return FilterClass.PerspectiveTransformFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228383-perspectivetransformwithextentfi?language=objc +func Filter_PerspectiveTransformWithExtentFilter() Filter { + return FilterClass.PerspectiveTransformWithExtentFilter() } -// Returns a difference blend mode filter. [Full Topic] +// Returns a swipe transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228310-differenceblendmodefilter?language=objc -func (fc _FilterClass) DifferenceBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("differenceBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228420-swipetransitionfilter?language=objc +func (fc _FilterClass) SwipeTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("swipeTransitionFilter")) return rv } -// Returns a difference blend mode filter. [Full Topic] +// Returns a swipe transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228310-differenceblendmodefilter?language=objc -func Filter_DifferenceBlendModeFilter() Filter { - return FilterClass.DifferenceBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228420-swipetransitionfilter?language=objc +func Filter_SwipeTransitionFilter() Filter { + return FilterClass.SwipeTransitionFilter() } -// Returns a soft-light blend mode filter. [Full Topic] +// Returns a height-field-from-mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228408-softlightblendmodefilter?language=objc -func (fc _FilterClass) SoftLightBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("softLightBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228337-heightfieldfrommaskfilter?language=objc +func (fc _FilterClass) HeightFieldFromMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("heightFieldFromMaskFilter")) return rv } -// Returns a soft-light blend mode filter. [Full Topic] +// Returns a height-field-from-mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228408-softlightblendmodefilter?language=objc -func Filter_SoftLightBlendModeFilter() Filter { - return FilterClass.SoftLightBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228337-heightfieldfrommaskfilter?language=objc +func Filter_HeightFieldFromMaskFilter() Filter { + return FilterClass.HeightFieldFromMaskFilter() } -// [Full Topic] +// Returns a color controls filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3584770-colorthresholdotsufilter?language=objc -func (fc _FilterClass) ColorThresholdOtsuFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorThresholdOtsuFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228285-colorcontrolsfilter?language=objc +func (fc _FilterClass) ColorControlsFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorControlsFilter")) return rv } -// [Full Topic] +// Returns a color controls filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3584770-colorthresholdotsufilter?language=objc -func Filter_ColorThresholdOtsuFilter() Filter { - return FilterClass.ColorThresholdOtsuFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228285-colorcontrolsfilter?language=objc +func Filter_ColorControlsFilter() Filter { + return FilterClass.ColorControlsFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547122-histogramdisplayfilter?language=objc -func (fc _FilterClass) HistogramDisplayFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("histogramDisplayFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600142-displacementdistortionfilter?language=objc +func (fc _FilterClass) DisplacementDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("displacementDistortionFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547122-histogramdisplayfilter?language=objc -func Filter_HistogramDisplayFilter() Filter { - return FilterClass.HistogramDisplayFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600142-displacementdistortionfilter?language=objc +func Filter_DisplacementDistortionFilter() Filter { + return FilterClass.DisplacementDistortionFilter() } -// Returns a color polynomial filter. [Full Topic] +// Returns a color monochrome filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228296-colorpolynomialfilter?language=objc -func (fc _FilterClass) ColorPolynomialFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorPolynomialFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228295-colormonochromefilter?language=objc +func (fc _FilterClass) ColorMonochromeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorMonochromeFilter")) return rv } -// Returns a color polynomial filter. [Full Topic] +// Returns a color monochrome filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228296-colorpolynomialfilter?language=objc -func Filter_ColorPolynomialFilter() Filter { - return FilterClass.ColorPolynomialFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228295-colormonochromefilter?language=objc +func Filter_ColorMonochromeFilter() Filter { + return FilterClass.ColorMonochromeFilter() } -// Blurs a rectangular area by enlarging contrasting pixels. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228367-morphologyrectanglemaximumfilter?language=objc -func (fc _FilterClass) MorphologyRectangleMaximumFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("morphologyRectangleMaximumFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600145-glasslozengefilter?language=objc +func (fc _FilterClass) GlassLozengeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("glassLozengeFilter")) return rv } -// Blurs a rectangular area by enlarging contrasting pixels. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228367-morphologyrectanglemaximumfilter?language=objc -func Filter_MorphologyRectangleMaximumFilter() Filter { - return FilterClass.MorphologyRectangleMaximumFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600145-glasslozengefilter?language=objc +func Filter_GlassLozengeFilter() Filter { + return FilterClass.GlassLozengeFilter() } -// Returns a twelvefold reflected tile filter. [Full Topic] +// Returns a blend with alpha mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228427-twelvefoldreflectedtilefilter?language=objc -func (fc _FilterClass) TwelvefoldReflectedTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("twelvefoldReflectedTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228272-blendwithalphamaskfilter?language=objc +func (fc _FilterClass) BlendWithAlphaMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("blendWithAlphaMaskFilter")) return rv } -// Returns a twelvefold reflected tile filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228427-twelvefoldreflectedtilefilter?language=objc -func Filter_TwelvefoldReflectedTileFilter() Filter { - return FilterClass.TwelvefoldReflectedTileFilter() +// Returns a blend with alpha mask filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228272-blendwithalphamaskfilter?language=objc +func Filter_BlendWithAlphaMaskFilter() Filter { + return FilterClass.BlendWithAlphaMaskFilter() } -// Returns a pointillize filter. [Full Topic] +// Returns a color curves filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228394-pointillizefilter?language=objc -func (fc _FilterClass) PointillizeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("pointillizeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228290-colorcurvesfilter?language=objc +func (fc _FilterClass) ColorCurvesFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorCurvesFilter")) return rv } -// Returns a pointillize filter. [Full Topic] +// Returns a color curves filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228394-pointillizefilter?language=objc -func Filter_PointillizeFilter() Filter { - return FilterClass.PointillizeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228290-colorcurvesfilter?language=objc +func Filter_ColorCurvesFilter() Filter { + return FilterClass.ColorCurvesFilter() } -// Returns a darken blend mode filter. [Full Topic] +// Returns a source-over compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228307-darkenblendmodefilter?language=objc -func (fc _FilterClass) DarkenBlendModeFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("darkenBlendModeFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228412-sourceovercompositingfilter?language=objc +func (fc _FilterClass) SourceOverCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sourceOverCompositingFilter")) return rv } -// Returns a darken blend mode filter. [Full Topic] +// Returns a source-over compositing filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228307-darkenblendmodefilter?language=objc -func Filter_DarkenBlendModeFilter() Filter { - return FilterClass.DarkenBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228412-sourceovercompositingfilter?language=objc +func Filter_SourceOverCompositingFilter() Filter { + return FilterClass.SourceOverCompositingFilter() } -// Returns a rounded rectangle generator filter. [Full Topic] +// Returns an attributed-text image generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3335007-roundedrectanglegeneratorfilter?language=objc -func (fc _FilterClass) RoundedRectangleGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("roundedRectangleGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228267-attributedtextimagegeneratorfilt?language=objc +func (fc _FilterClass) AttributedTextImageGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("attributedTextImageGeneratorFilter")) return rv } -// Returns a rounded rectangle generator filter. [Full Topic] +// Returns an attributed-text image generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3335007-roundedrectanglegeneratorfilter?language=objc -func Filter_RoundedRectangleGeneratorFilter() Filter { - return FilterClass.RoundedRectangleGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228267-attributedtextimagegeneratorfilt?language=objc +func Filter_AttributedTextImageGeneratorFilter() Filter { + return FilterClass.AttributedTextImageGeneratorFilter() } -// Returns a color invert filter. [Full Topic] +// Returns a disintegrate-with-mask transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228292-colorinvertfilter?language=objc -func (fc _FilterClass) ColorInvertFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorInvertFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228312-disintegratewithmasktransitionfi?language=objc +func (fc _FilterClass) DisintegrateWithMaskTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("disintegrateWithMaskTransitionFilter")) return rv } -// Returns a color invert filter. [Full Topic] +// Returns a disintegrate-with-mask transition filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228292-colorinvertfilter?language=objc -func Filter_ColorInvertFilter() Filter { - return FilterClass.ColorInvertFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228312-disintegratewithmasktransitionfi?language=objc +func Filter_DisintegrateWithMaskTransitionFilter() Filter { + return FilterClass.DisintegrateWithMaskTransitionFilter() } -// [Full Topic] +// Returns a palettize filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547123-rowaveragefilter?language=objc -func (fc _FilterClass) RowAverageFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("rowAverageFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228378-palettizefilter?language=objc +func (fc _FilterClass) PalettizeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("palettizeFilter")) return rv } -// [Full Topic] +// Returns a palettize filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547123-rowaveragefilter?language=objc -func Filter_RowAverageFilter() Filter { - return FilterClass.RowAverageFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228378-palettizefilter?language=objc +func Filter_PalettizeFilter() Filter { + return FilterClass.PalettizeFilter() } -// Returns a maximum compositing filter. [Full Topic] +// Returns a blend with mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228357-maximumcompositingfilter?language=objc -func (fc _FilterClass) MaximumCompositingFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("maximumCompositingFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228274-blendwithmaskfilter?language=objc +func (fc _FilterClass) BlendWithMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("blendWithMaskFilter")) return rv } -// Returns a maximum compositing filter. [Full Topic] +// Returns a blend with mask filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228357-maximumcompositingfilter?language=objc -func Filter_MaximumCompositingFilter() Filter { - return FilterClass.MaximumCompositingFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228274-blendwithmaskfilter?language=objc +func Filter_BlendWithMaskFilter() Filter { + return FilterClass.BlendWithMaskFilter() } -// Returns a thermal filter. [Full Topic] +// Returns a straighten filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228423-thermalfilter?language=objc -func (fc _FilterClass) ThermalFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("thermalFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228416-straightenfilter?language=objc +func (fc _FilterClass) StraightenFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("straightenFilter")) return rv } -// Returns a thermal filter. [Full Topic] +// Returns a straighten filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228423-thermalfilter?language=objc -func Filter_ThermalFilter() Filter { - return FilterClass.ThermalFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228416-straightenfilter?language=objc +func Filter_StraightenFilter() Filter { + return FilterClass.StraightenFilter() } -// Returns a keystone correction vertical filter. [Full Topic] +// Returns a CMYK halftone filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325511-keystonecorrectionverticalfilter?language=objc -func (fc _FilterClass) KeystoneCorrectionVerticalFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("keystoneCorrectionVerticalFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228259-cmykhalftone?language=objc +func (fc _FilterClass) CMYKHalftone() Filter { + rv := objc.Call[Filter](fc, objc.Sel("CMYKHalftone")) return rv } -// Returns a keystone correction vertical filter. [Full Topic] +// Returns a CMYK halftone filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325511-keystonecorrectionverticalfilter?language=objc -func Filter_KeystoneCorrectionVerticalFilter() Filter { - return FilterClass.KeystoneCorrectionVerticalFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228259-cmykhalftone?language=objc +func Filter_CMYKHalftone() Filter { + return FilterClass.CMYKHalftone() } -// Returns a barcode generator filter. [Full Topic] +// Returns a linear gradient filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228269-barcodegeneratorfilter?language=objc -func (fc _FilterClass) BarcodeGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("barcodeGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228351-lineargradientfilter?language=objc +func (fc _FilterClass) LinearGradientFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("linearGradientFilter")) return rv } -// Returns a barcode generator filter. [Full Topic] +// Returns a linear gradient filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228269-barcodegeneratorfilter?language=objc -func Filter_BarcodeGeneratorFilter() Filter { - return FilterClass.BarcodeGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228351-lineargradientfilter?language=objc +func Filter_LinearGradientFilter() Filter { + return FilterClass.LinearGradientFilter() } -// Returns a blend with red mask filter. [Full Topic] +// Returns a QR code generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228275-blendwithredmaskfilter?language=objc -func (fc _FilterClass) BlendWithRedMaskFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("blendWithRedMaskFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228262-qrcodegenerator?language=objc +func (fc _FilterClass) QRCodeGenerator() Filter { + rv := objc.Call[Filter](fc, objc.Sel("QRCodeGenerator")) return rv } -// Returns a blend with red mask filter. [Full Topic] +// Returns a QR code generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228275-blendwithredmaskfilter?language=objc -func Filter_BlendWithRedMaskFilter() Filter { - return FilterClass.BlendWithRedMaskFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228262-qrcodegenerator?language=objc +func Filter_QRCodeGenerator() Filter { + return FilterClass.QRCodeGenerator() } -// Returns a sunbeams generator filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228419-sunbeamsgeneratorfilter?language=objc -func (fc _FilterClass) SunbeamsGeneratorFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("sunbeamsGeneratorFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600144-glassdistortionfilter?language=objc +func (fc _FilterClass) GlassDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("glassDistortionFilter")) return rv } -// Returns a sunbeams generator filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228419-sunbeamsgeneratorfilter?language=objc -func Filter_SunbeamsGeneratorFilter() Filter { - return FilterClass.SunbeamsGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600144-glassdistortionfilter?language=objc +func Filter_GlassDistortionFilter() Filter { + return FilterClass.GlassDistortionFilter() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547119-colorabsolutedifferencefilter?language=objc -func (fc _FilterClass) ColorAbsoluteDifferenceFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("colorAbsoluteDifferenceFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750386-convolutionrgb5x5filter?language=objc +func (fc _FilterClass) ConvolutionRGB5X5Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB5X5Filter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547119-colorabsolutedifferencefilter?language=objc -func Filter_ColorAbsoluteDifferenceFilter() Filter { - return FilterClass.ColorAbsoluteDifferenceFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750386-convolutionrgb5x5filter?language=objc +func Filter_ConvolutionRGB5X5Filter() Filter { + return FilterClass.ConvolutionRGB5X5Filter() } -// Returns a pixellate filter. [Full Topic] +// Creates a CIFilter object for a specific kind of filter and initializes the input values with a nil-terminated list of arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228393-pixellatefilter?language=objc -func (fc _FilterClass) PixellateFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("pixellateFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1562057-filterwithname?language=objc +func (fc _FilterClass) FilterWithNameKeysAndValues(name string, key0 objc.IObject, args ...any) Filter { + rv := objc.Call[Filter](fc, objc.Sel("filterWithName:keysAndValues:"), append([]any{name, key0}, args...)...) return rv } -// Returns a pixellate filter. [Full Topic] +// Creates a CIFilter object for a specific kind of filter and initializes the input values with a nil-terminated list of arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228393-pixellatefilter?language=objc -func Filter_PixellateFilter() Filter { - return FilterClass.PixellateFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1562057-filterwithname?language=objc +func Filter_FilterWithNameKeysAndValues(name string, key0 objc.IObject, args ...any) Filter { + return FilterClass.FilterWithNameKeysAndValues(name, key0, args...) } -// Returns a glide reflected tile filter. [Full Topic] +// Returns a convolution 3 x 3 filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228333-glidereflectedtilefilter?language=objc -func (fc _FilterClass) GlideReflectedTileFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("glideReflectedTileFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228299-convolution3x3filter?language=objc +func (fc _FilterClass) Convolution3X3Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolution3X3Filter")) return rv } -// Returns a glide reflected tile filter. [Full Topic] +// Returns a convolution 3 x 3 filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228333-glidereflectedtilefilter?language=objc -func Filter_GlideReflectedTileFilter() Filter { - return FilterClass.GlideReflectedTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228299-convolution3x3filter?language=objc +func Filter_Convolution3X3Filter() Filter { + return FilterClass.Convolution3X3Filter() } -// A CIImage object that encapsulates the operations configured in the filter. [Full Topic] +// The names of all output parameters from the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228048-outputimage?language=objc -func (f_ Filter) OutputImage() Image { - rv := objc.Call[Image](f_, objc.Sel("outputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438122-outputkeys?language=objc +func (f_ Filter) OutputKeys() []string { + rv := objc.Call[[]string](f_, objc.Sel("outputKeys")) return rv } -// A dictionary of key-value pairs that describe the filter. [Full Topic] +// The names of all input parameters to the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437661-attributes?language=objc -func (f_ Filter) Attributes() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](f_, objc.Sel("attributes")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438013-inputkeys?language=objc +func (f_ Filter) InputKeys() []string { + rv := objc.Call[[]string](f_, objc.Sel("inputKeys")) return rv } @@ -3634,18 +3596,18 @@ func (f_ Filter) SetEnabled(value bool) { objc.Call[objc.Void](f_, objc.Sel("setEnabled:"), value) } -// The names of all input parameters to the filter. [Full Topic] +// A dictionary of key-value pairs that describe the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438013-inputkeys?language=objc -func (f_ Filter) InputKeys() []string { - rv := objc.Call[[]string](f_, objc.Sel("inputKeys")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437661-attributes?language=objc +func (f_ Filter) Attributes() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](f_, objc.Sel("attributes")) return rv } -// The names of all output parameters from the filter. [Full Topic] +// A CIImage object that encapsulates the operations configured in the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438122-outputkeys?language=objc -func (f_ Filter) OutputKeys() []string { - rv := objc.Call[[]string](f_, objc.Sel("outputKeys")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228048-outputimage?language=objc +func (f_ Filter) OutputImage() Image { + rv := objc.Call[Image](f_, objc.Sel("outputImage")) return rv } diff --git a/macos/coreimage/filter_generator.gen.go b/macos/coreimage/filter_generator.gen.go index 048dcb2c..2e6e68f8 100644 --- a/macos/coreimage/filter_generator.gen.go +++ b/macos/coreimage/filter_generator.gen.go @@ -19,18 +19,18 @@ type _FilterGeneratorClass struct { // An interface definition for the [FilterGenerator] class. type IFilterGenerator interface { objc.IObject - SetAttributesForExportedKey(attributes foundation.Dictionary, key string) RegisterFilterName(name string) - WriteToURLAtomically(aURL foundation.IURL, flag bool) bool - InitWithContentsOfURL(aURL foundation.IURL) objc.Object - ExportKeyFromObjectWithName(key string, targetObject objc.IObject, exportedKeyName string) - DisconnectObjectWithKeyToObjectWithKey(sourceObject objc.IObject, sourceKey string, targetObject objc.IObject, targetKey string) Filter() Filter - RemoveExportedKey(exportedKeyName string) + ExportKeyFromObjectWithName(key string, targetObject objc.IObject, exportedKeyName string) ConnectObjectWithKeyToObjectWithKey(sourceObject objc.IObject, sourceKey string, targetObject objc.IObject, targetKey string) + InitWithContentsOfURL(aURL foundation.IURL) objc.Object + RemoveExportedKey(exportedKeyName string) + DisconnectObjectWithKeyToObjectWithKey(sourceObject objc.IObject, sourceKey string, targetObject objc.IObject, targetKey string) + WriteToURLAtomically(aURL foundation.IURL, flag bool) bool + SetAttributesForExportedKey(attributes foundation.Dictionary, key string) + ExportedKeys() foundation.Dictionary ClassAttributes() foundation.Dictionary SetClassAttributes(value foundation.Dictionary) - ExportedKeys() foundation.Dictionary } // An object that creates and configures chains of individual image filters. [Full Topic] @@ -66,13 +66,6 @@ func (f_ FilterGenerator) Init() FilterGenerator { return rv } -// Sets a dictionary of attributes for an exported key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438069-setattributes?language=objc -func (f_ FilterGenerator) SetAttributesForExportedKey(attributes foundation.Dictionary, key string) { - objc.Call[objc.Void](f_, objc.Sel("setAttributes:forExportedKey:"), attributes, key) -} - // Registers the name associated with a filter chain. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1437891-registerfiltername?language=objc @@ -80,34 +73,11 @@ func (f_ FilterGenerator) RegisterFilterName(name string) { objc.Call[objc.Void](f_, objc.Sel("registerFilterName:"), name) } -// Archives a filter generator object to a filter generator file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438179-writetourl?language=objc -func (f_ FilterGenerator) WriteToURLAtomically(aURL foundation.IURL, flag bool) bool { - rv := objc.Call[bool](f_, objc.Sel("writeToURL:atomically:"), aURL, flag) - return rv -} - -// Creates and returns a filter generator object and initializes it with the contents of a filter generator file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1525950-filtergeneratorwithcontentsofurl?language=objc -func (fc _FilterGeneratorClass) FilterGeneratorWithContentsOfURL(aURL foundation.IURL) FilterGenerator { - rv := objc.Call[FilterGenerator](fc, objc.Sel("filterGeneratorWithContentsOfURL:"), aURL) - return rv -} - -// Creates and returns a filter generator object and initializes it with the contents of a filter generator file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1525950-filtergeneratorwithcontentsofurl?language=objc -func FilterGenerator_FilterGeneratorWithContentsOfURL(aURL foundation.IURL) FilterGenerator { - return FilterGeneratorClass.FilterGeneratorWithContentsOfURL(aURL) -} - -// Initializes a filter generator object with the contents of a filter generator file. [Full Topic] +// Creates a filter object based on the filter chain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1437742-initwithcontentsofurl?language=objc -func (f_ FilterGenerator) InitWithContentsOfURL(aURL foundation.IURL) objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("initWithContentsOfURL:"), aURL) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438044-filter?language=objc +func (f_ FilterGenerator) Filter() Filter { + rv := objc.Call[Filter](f_, objc.Sel("filter")) return rv } @@ -133,18 +103,18 @@ func FilterGenerator_FilterGenerator() FilterGenerator { return FilterGeneratorClass.FilterGenerator() } -// Removes the connection between two objects in the filter chain. [Full Topic] +// Adds an object to the filter chain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438075-disconnectobject?language=objc -func (f_ FilterGenerator) DisconnectObjectWithKeyToObjectWithKey(sourceObject objc.IObject, sourceKey string, targetObject objc.IObject, targetKey string) { - objc.Call[objc.Void](f_, objc.Sel("disconnectObject:withKey:toObject:withKey:"), sourceObject, sourceKey, targetObject, targetKey) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438159-connectobject?language=objc +func (f_ FilterGenerator) ConnectObjectWithKeyToObjectWithKey(sourceObject objc.IObject, sourceKey string, targetObject objc.IObject, targetKey string) { + objc.Call[objc.Void](f_, objc.Sel("connectObject:withKey:toObject:withKey:"), sourceObject, sourceKey, targetObject, targetKey) } -// Creates a filter object based on the filter chain. [Full Topic] +// Initializes a filter generator object with the contents of a filter generator file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438044-filter?language=objc -func (f_ FilterGenerator) Filter() Filter { - rv := objc.Call[Filter](f_, objc.Sel("filter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1437742-initwithcontentsofurl?language=objc +func (f_ FilterGenerator) InitWithContentsOfURL(aURL foundation.IURL) objc.Object { + rv := objc.Call[objc.Object](f_, objc.Sel("initWithContentsOfURL:"), aURL) return rv } @@ -155,26 +125,41 @@ func (f_ FilterGenerator) RemoveExportedKey(exportedKeyName string) { objc.Call[objc.Void](f_, objc.Sel("removeExportedKey:"), exportedKeyName) } -// Adds an object to the filter chain. [Full Topic] +// Removes the connection between two objects in the filter chain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438159-connectobject?language=objc -func (f_ FilterGenerator) ConnectObjectWithKeyToObjectWithKey(sourceObject objc.IObject, sourceKey string, targetObject objc.IObject, targetKey string) { - objc.Call[objc.Void](f_, objc.Sel("connectObject:withKey:toObject:withKey:"), sourceObject, sourceKey, targetObject, targetKey) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438075-disconnectobject?language=objc +func (f_ FilterGenerator) DisconnectObjectWithKeyToObjectWithKey(sourceObject objc.IObject, sourceKey string, targetObject objc.IObject, targetKey string) { + objc.Call[objc.Void](f_, objc.Sel("disconnectObject:withKey:toObject:withKey:"), sourceObject, sourceKey, targetObject, targetKey) } -// The class attributes associated with the filter. [Full Topic] +// Archives a filter generator object to a filter generator file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1437855-classattributes?language=objc -func (f_ FilterGenerator) ClassAttributes() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](f_, objc.Sel("classAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438179-writetourl?language=objc +func (f_ FilterGenerator) WriteToURLAtomically(aURL foundation.IURL, flag bool) bool { + rv := objc.Call[bool](f_, objc.Sel("writeToURL:atomically:"), aURL, flag) return rv } -// The class attributes associated with the filter. [Full Topic] +// Sets a dictionary of attributes for an exported key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1437855-classattributes?language=objc -func (f_ FilterGenerator) SetClassAttributes(value foundation.Dictionary) { - objc.Call[objc.Void](f_, objc.Sel("setClassAttributes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438069-setattributes?language=objc +func (f_ FilterGenerator) SetAttributesForExportedKey(attributes foundation.Dictionary, key string) { + objc.Call[objc.Void](f_, objc.Sel("setAttributes:forExportedKey:"), attributes, key) +} + +// Creates and returns a filter generator object and initializes it with the contents of a filter generator file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1525950-filtergeneratorwithcontentsofurl?language=objc +func (fc _FilterGeneratorClass) FilterGeneratorWithContentsOfURL(aURL foundation.IURL) FilterGenerator { + rv := objc.Call[FilterGenerator](fc, objc.Sel("filterGeneratorWithContentsOfURL:"), aURL) + return rv +} + +// Creates and returns a filter generator object and initializes it with the contents of a filter generator file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1525950-filtergeneratorwithcontentsofurl?language=objc +func FilterGenerator_FilterGeneratorWithContentsOfURL(aURL foundation.IURL) FilterGenerator { + return FilterGeneratorClass.FilterGeneratorWithContentsOfURL(aURL) } // Returns an array of the exported keys. [Full Topic] @@ -184,3 +169,18 @@ func (f_ FilterGenerator) ExportedKeys() foundation.Dictionary { rv := objc.Call[foundation.Dictionary](f_, objc.Sel("exportedKeys")) return rv } + +// The class attributes associated with the filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1437855-classattributes?language=objc +func (f_ FilterGenerator) ClassAttributes() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](f_, objc.Sel("classAttributes")) + return rv +} + +// The class attributes associated with the filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1437855-classattributes?language=objc +func (f_ FilterGenerator) SetClassAttributes(value foundation.Dictionary) { + objc.Call[objc.Void](f_, objc.Sel("setClassAttributes:"), value) +} diff --git a/macos/coreimage/filter_protocol.gen.go b/macos/coreimage/filter_protocol.gen.go index b1973e9e..26e26d7e 100644 --- a/macos/coreimage/filter_protocol.gen.go +++ b/macos/coreimage/filter_protocol.gen.go @@ -10,29 +10,25 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter-gce?language=objc type PFilter interface { - // optional - Apply(k Kernel, args ...any) Image - HasApply() bool - - // optional - SetName(aString string) - HasSetName() bool - // optional SetDefaults() HasSetDefaults() bool // optional - ApplyArgumentsOptions(k Kernel, args []objc.Object, dict map[string]objc.Object) Image - HasApplyArgumentsOptions() bool + Name() string + HasName() bool // optional - OutputImage() Image - HasOutputImage() bool + Apply(k Kernel, args ...any) Image + HasApply() bool // optional - Attributes() map[string]objc.Object - HasAttributes() bool + OutputKeys() []string + HasOutputKeys() bool + + // optional + InputKeys() []string + HasInputKeys() bool // optional SetEnabled(value bool) @@ -43,12 +39,12 @@ type PFilter interface { HasIsEnabled() bool // optional - InputKeys() []string - HasInputKeys() bool + Attributes() map[string]objc.Object + HasAttributes() bool // optional - OutputKeys() []string - HasOutputKeys() bool + OutputImage() Image + HasOutputImage() bool } // ensure impl type implements protocol interface @@ -59,73 +55,62 @@ type FilterObject struct { objc.Object } -func (f_ FilterObject) HasApply() bool { - return f_.RespondsToSelector(objc.Sel("apply:")) +func (f_ FilterObject) HasSetDefaults() bool { + return f_.RespondsToSelector(objc.Sel("setDefaults")) } -// Produces a CIImage object by applying a kernel function. [Full Topic] +// Sets all input values for a filter to default values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1562058-apply?language=objc -func (f_ FilterObject) Apply(k Kernel, args ...any) Image { - rv := objc.Call[Image](f_, objc.Sel("apply:"), append([]any{k}, args...)...) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437902-setdefaults?language=objc +func (f_ FilterObject) SetDefaults() { + objc.Call[objc.Void](f_, objc.Sel("setDefaults")) } -func (f_ FilterObject) HasSetName() bool { - return f_.RespondsToSelector(objc.Sel("setName:")) +func (f_ FilterObject) HasName() bool { + return f_.RespondsToSelector(objc.Sel("name")) } // A name associated with a filter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437997-setname?language=objc -func (f_ FilterObject) SetName(aString string) { - objc.Call[objc.Void](f_, objc.Sel("setName:"), aString) -} - -func (f_ FilterObject) HasSetDefaults() bool { - return f_.RespondsToSelector(objc.Sel("setDefaults")) -} - -// Sets all input values for a filter to default values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437902-setdefaults?language=objc -func (f_ FilterObject) SetDefaults() { - objc.Call[objc.Void](f_, objc.Sel("setDefaults")) +func (f_ FilterObject) Name() string { + rv := objc.Call[string](f_, objc.Sel("name")) + return rv } -func (f_ FilterObject) HasApplyArgumentsOptions() bool { - return f_.RespondsToSelector(objc.Sel("apply:arguments:options:")) +func (f_ FilterObject) HasApply() bool { + return f_.RespondsToSelector(objc.Sel("apply:")) } -// Produces a CIImage object by applying arguments to a kernel function and using options to control how the kernel function is evaluated. [Full Topic] +// Produces a CIImage object by applying a kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438077-apply?language=objc -func (f_ FilterObject) ApplyArgumentsOptions(k Kernel, args []objc.Object, dict map[string]objc.Object) Image { - rv := objc.Call[Image](f_, objc.Sel("apply:arguments:options:"), k, args, dict) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1562058-apply?language=objc +func (f_ FilterObject) Apply(k Kernel, args ...any) Image { + rv := objc.Call[Image](f_, objc.Sel("apply:"), append([]any{k}, args...)...) return rv } -func (f_ FilterObject) HasOutputImage() bool { - return f_.RespondsToSelector(objc.Sel("outputImage")) +func (f_ FilterObject) HasOutputKeys() bool { + return f_.RespondsToSelector(objc.Sel("outputKeys")) } -// A CIImage object that encapsulates the operations configured in the filter. [Full Topic] +// The names of all output parameters from the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228048-outputimage?language=objc -func (f_ FilterObject) OutputImage() Image { - rv := objc.Call[Image](f_, objc.Sel("outputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438122-outputkeys?language=objc +func (f_ FilterObject) OutputKeys() []string { + rv := objc.Call[[]string](f_, objc.Sel("outputKeys")) return rv } -func (f_ FilterObject) HasAttributes() bool { - return f_.RespondsToSelector(objc.Sel("attributes")) +func (f_ FilterObject) HasInputKeys() bool { + return f_.RespondsToSelector(objc.Sel("inputKeys")) } -// A dictionary of key-value pairs that describe the filter. [Full Topic] +// The names of all input parameters to the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437661-attributes?language=objc -func (f_ FilterObject) Attributes() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](f_, objc.Sel("attributes")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438013-inputkeys?language=objc +func (f_ FilterObject) InputKeys() []string { + rv := objc.Call[[]string](f_, objc.Sel("inputKeys")) return rv } @@ -152,26 +137,26 @@ func (f_ FilterObject) IsEnabled() bool { return rv } -func (f_ FilterObject) HasInputKeys() bool { - return f_.RespondsToSelector(objc.Sel("inputKeys")) +func (f_ FilterObject) HasAttributes() bool { + return f_.RespondsToSelector(objc.Sel("attributes")) } -// The names of all input parameters to the filter. [Full Topic] +// A dictionary of key-value pairs that describe the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438013-inputkeys?language=objc -func (f_ FilterObject) InputKeys() []string { - rv := objc.Call[[]string](f_, objc.Sel("inputKeys")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437661-attributes?language=objc +func (f_ FilterObject) Attributes() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](f_, objc.Sel("attributes")) return rv } -func (f_ FilterObject) HasOutputKeys() bool { - return f_.RespondsToSelector(objc.Sel("outputKeys")) +func (f_ FilterObject) HasOutputImage() bool { + return f_.RespondsToSelector(objc.Sel("outputImage")) } -// The names of all output parameters from the filter. [Full Topic] +// A CIImage object that encapsulates the operations configured in the filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438122-outputkeys?language=objc -func (f_ FilterObject) OutputKeys() []string { - rv := objc.Call[[]string](f_, objc.Sel("outputKeys")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228048-outputimage?language=objc +func (f_ FilterObject) OutputImage() Image { + rv := objc.Call[Image](f_, objc.Sel("outputImage")) return rv } diff --git a/macos/coreimage/filter_shape.gen.go b/macos/coreimage/filter_shape.gen.go index 1dbba92b..bfe56c9b 100644 --- a/macos/coreimage/filter_shape.gen.go +++ b/macos/coreimage/filter_shape.gen.go @@ -19,12 +19,12 @@ type _FilterShapeClass struct { // An interface definition for the [FilterShape] class. type IFilterShape interface { objc.IObject - TransformByInterior(m coregraphics.AffineTransform, flag bool) FilterShape + IntersectWith(s2 IFilterShape) FilterShape + UnionWithRect(r coregraphics.Rect) FilterShape UnionWith(s2 IFilterShape) FilterShape InsetByXY(dx int, dy int) FilterShape IntersectWithRect(r coregraphics.Rect) FilterShape - IntersectWith(s2 IFilterShape) FilterShape - UnionWithRect(r coregraphics.Rect) FilterShape + TransformByInterior(m coregraphics.AffineTransform, flag bool) FilterShape Extent() coregraphics.Rect } @@ -41,18 +41,6 @@ func FilterShapeFrom(ptr unsafe.Pointer) FilterShape { } } -func (fc _FilterShapeClass) ShapeWithRect(r coregraphics.Rect) FilterShape { - rv := objc.Call[FilterShape](fc, objc.Sel("shapeWithRect:"), r) - return rv -} - -// Creates a filter shape object and initializes it with a rectangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltershape/1562074-shapewithrect?language=objc -func FilterShape_ShapeWithRect(r coregraphics.Rect) FilterShape { - return FilterShapeClass.ShapeWithRect(r) -} - func (f_ FilterShape) InitWithRect(r coregraphics.Rect) FilterShape { rv := objc.Call[FilterShape](f_, objc.Sel("initWithRect:"), r) return rv @@ -67,6 +55,18 @@ func NewFilterShapeWithRect(r coregraphics.Rect) FilterShape { return instance } +func (fc _FilterShapeClass) ShapeWithRect(r coregraphics.Rect) FilterShape { + rv := objc.Call[FilterShape](fc, objc.Sel("shapeWithRect:"), r) + return rv +} + +// Creates a filter shape object and initializes it with a rectangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltershape/1562074-shapewithrect?language=objc +func FilterShape_ShapeWithRect(r coregraphics.Rect) FilterShape { + return FilterShapeClass.ShapeWithRect(r) +} + func (fc _FilterShapeClass) Alloc() FilterShape { rv := objc.Call[FilterShape](fc, objc.Sel("alloc")) return rv @@ -87,11 +87,19 @@ func (f_ FilterShape) Init() FilterShape { return rv } -// Creates a filter shape that results from applying a transform to the current filter shape. [Full Topic] +// Creates a filter shape object that represents the intersection of the current filter shape and the specified filter shape object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltershape/1437808-transformby?language=objc -func (f_ FilterShape) TransformByInterior(m coregraphics.AffineTransform, flag bool) FilterShape { - rv := objc.Call[FilterShape](f_, objc.Sel("transformBy:interior:"), m, flag) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltershape/1437881-intersectwith?language=objc +func (f_ FilterShape) IntersectWith(s2 IFilterShape) FilterShape { + rv := objc.Call[FilterShape](f_, objc.Sel("intersectWith:"), s2) + return rv +} + +// Creates a filter shape that results from the union of the current filter shape and a rectangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltershape/1437601-unionwithrect?language=objc +func (f_ FilterShape) UnionWithRect(r coregraphics.Rect) FilterShape { + rv := objc.Call[FilterShape](f_, objc.Sel("unionWithRect:"), r) return rv } @@ -119,19 +127,11 @@ func (f_ FilterShape) IntersectWithRect(r coregraphics.Rect) FilterShape { return rv } -// Creates a filter shape object that represents the intersection of the current filter shape and the specified filter shape object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltershape/1437881-intersectwith?language=objc -func (f_ FilterShape) IntersectWith(s2 IFilterShape) FilterShape { - rv := objc.Call[FilterShape](f_, objc.Sel("intersectWith:"), s2) - return rv -} - -// Creates a filter shape that results from the union of the current filter shape and a rectangle. [Full Topic] +// Creates a filter shape that results from applying a transform to the current filter shape. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltershape/1437601-unionwithrect?language=objc -func (f_ FilterShape) UnionWithRect(r coregraphics.Rect) FilterShape { - rv := objc.Call[FilterShape](f_, objc.Sel("unionWithRect:"), r) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltershape/1437808-transformby?language=objc +func (f_ FilterShape) TransformByInterior(m coregraphics.AffineTransform, flag bool) FilterShape { + rv := objc.Call[FilterShape](f_, objc.Sel("transformBy:interior:"), m, flag) return rv } diff --git a/macos/coreimage/flash_transition_protocol.gen.go b/macos/coreimage/flash_transition_protocol.gen.go index cb9317fe..631c0c58 100644 --- a/macos/coreimage/flash_transition_protocol.gen.go +++ b/macos/coreimage/flash_transition_protocol.gen.go @@ -12,12 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition?language=objc type PFlashTransition interface { // optional - SetStriationStrength(value float32) - HasSetStriationStrength() bool + SetStriationContrast(value float32) + HasSetStriationContrast() bool // optional - StriationStrength() float32 - HasStriationStrength() bool + StriationContrast() float32 + HasStriationContrast() bool + + // optional + SetColor(value Color) + HasSetColor() bool + + // optional + Color() Color + HasColor() bool // optional SetMaxStriationRadius(value float32) @@ -28,12 +36,12 @@ type PFlashTransition interface { HasMaxStriationRadius() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetStriationStrength(value float32) + HasSetStriationStrength() bool // optional - Center() coregraphics.Point - HasCenter() bool + StriationStrength() float32 + HasStriationStrength() bool // optional SetFadeThreshold(value float32) @@ -52,20 +60,12 @@ type PFlashTransition interface { HasExtent() bool // optional - SetStriationContrast(value float32) - HasSetStriationContrast() bool - - // optional - StriationContrast() float32 - HasStriationContrast() bool - - // optional - SetColor(value Color) - HasSetColor() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Color() Color - HasColor() bool + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -76,26 +76,49 @@ type FlashTransitionObject struct { objc.Object } -func (f_ FlashTransitionObject) HasSetStriationStrength() bool { - return f_.RespondsToSelector(objc.Sel("setStriationStrength:")) +func (f_ FlashTransitionObject) HasSetStriationContrast() bool { + return f_.RespondsToSelector(objc.Sel("setStriationContrast:")) } -// The strength of the light rays emanating from the flash. [Full Topic] +// The contrast of the light rays emanating from the flash. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228442-striationstrength?language=objc -func (f_ FlashTransitionObject) SetStriationStrength(value float32) { - objc.Call[objc.Void](f_, objc.Sel("setStriationStrength:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228441-striationcontrast?language=objc +func (f_ FlashTransitionObject) SetStriationContrast(value float32) { + objc.Call[objc.Void](f_, objc.Sel("setStriationContrast:"), value) } -func (f_ FlashTransitionObject) HasStriationStrength() bool { - return f_.RespondsToSelector(objc.Sel("striationStrength")) +func (f_ FlashTransitionObject) HasStriationContrast() bool { + return f_.RespondsToSelector(objc.Sel("striationContrast")) } -// The strength of the light rays emanating from the flash. [Full Topic] +// The contrast of the light rays emanating from the flash. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228442-striationstrength?language=objc -func (f_ FlashTransitionObject) StriationStrength() float32 { - rv := objc.Call[float32](f_, objc.Sel("striationStrength")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228441-striationcontrast?language=objc +func (f_ FlashTransitionObject) StriationContrast() float32 { + rv := objc.Call[float32](f_, objc.Sel("striationContrast")) + return rv +} + +func (f_ FlashTransitionObject) HasSetColor() bool { + return f_.RespondsToSelector(objc.Sel("setColor:")) +} + +// The color of the light rays emanating from the flash. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228437-color?language=objc +func (f_ FlashTransitionObject) SetColor(value Color) { + objc.Call[objc.Void](f_, objc.Sel("setColor:"), value) +} + +func (f_ FlashTransitionObject) HasColor() bool { + return f_.RespondsToSelector(objc.Sel("color")) +} + +// The color of the light rays emanating from the flash. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228437-color?language=objc +func (f_ FlashTransitionObject) Color() Color { + rv := objc.Call[Color](f_, objc.Sel("color")) return rv } @@ -122,26 +145,26 @@ func (f_ FlashTransitionObject) MaxStriationRadius() float32 { return rv } -func (f_ FlashTransitionObject) HasSetCenter() bool { - return f_.RespondsToSelector(objc.Sel("setCenter:")) +func (f_ FlashTransitionObject) HasSetStriationStrength() bool { + return f_.RespondsToSelector(objc.Sel("setStriationStrength:")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The strength of the light rays emanating from the flash. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228436-center?language=objc -func (f_ FlashTransitionObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228442-striationstrength?language=objc +func (f_ FlashTransitionObject) SetStriationStrength(value float32) { + objc.Call[objc.Void](f_, objc.Sel("setStriationStrength:"), value) } -func (f_ FlashTransitionObject) HasCenter() bool { - return f_.RespondsToSelector(objc.Sel("center")) +func (f_ FlashTransitionObject) HasStriationStrength() bool { + return f_.RespondsToSelector(objc.Sel("striationStrength")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The strength of the light rays emanating from the flash. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228436-center?language=objc -func (f_ FlashTransitionObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228442-striationstrength?language=objc +func (f_ FlashTransitionObject) StriationStrength() float32 { + rv := objc.Call[float32](f_, objc.Sel("striationStrength")) return rv } @@ -191,48 +214,25 @@ func (f_ FlashTransitionObject) Extent() coregraphics.Rect { return rv } -func (f_ FlashTransitionObject) HasSetStriationContrast() bool { - return f_.RespondsToSelector(objc.Sel("setStriationContrast:")) -} - -// The contrast of the light rays emanating from the flash. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228441-striationcontrast?language=objc -func (f_ FlashTransitionObject) SetStriationContrast(value float32) { - objc.Call[objc.Void](f_, objc.Sel("setStriationContrast:"), value) -} - -func (f_ FlashTransitionObject) HasStriationContrast() bool { - return f_.RespondsToSelector(objc.Sel("striationContrast")) -} - -// The contrast of the light rays emanating from the flash. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228441-striationcontrast?language=objc -func (f_ FlashTransitionObject) StriationContrast() float32 { - rv := objc.Call[float32](f_, objc.Sel("striationContrast")) - return rv -} - -func (f_ FlashTransitionObject) HasSetColor() bool { - return f_.RespondsToSelector(objc.Sel("setColor:")) +func (f_ FlashTransitionObject) HasSetCenter() bool { + return f_.RespondsToSelector(objc.Sel("setCenter:")) } -// The color of the light rays emanating from the flash. [Full Topic] +// The x and y position to use as the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228437-color?language=objc -func (f_ FlashTransitionObject) SetColor(value Color) { - objc.Call[objc.Void](f_, objc.Sel("setColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228436-center?language=objc +func (f_ FlashTransitionObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](f_, objc.Sel("setCenter:"), value) } -func (f_ FlashTransitionObject) HasColor() bool { - return f_.RespondsToSelector(objc.Sel("color")) +func (f_ FlashTransitionObject) HasCenter() bool { + return f_.RespondsToSelector(objc.Sel("center")) } -// The color of the light rays emanating from the flash. [Full Topic] +// The x and y position to use as the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228437-color?language=objc -func (f_ FlashTransitionObject) Color() Color { - rv := objc.Call[Color](f_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228436-center?language=objc +func (f_ FlashTransitionObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](f_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/four_coordinate_geometry_filter_protocol.gen.go b/macos/coreimage/four_coordinate_geometry_filter_protocol.gen.go index 7f650679..4956a208 100644 --- a/macos/coreimage/four_coordinate_geometry_filter_protocol.gen.go +++ b/macos/coreimage/four_coordinate_geometry_filter_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter?language=objc type PFourCoordinateGeometryFilter interface { // optional - SetTopRight(value coregraphics.Point) - HasSetTopRight() bool + SetBottomRight(value coregraphics.Point) + HasSetBottomRight() bool // optional - TopRight() coregraphics.Point - HasTopRight() bool + BottomRight() coregraphics.Point + HasBottomRight() bool // optional SetInputImage(value Image) @@ -27,14 +27,6 @@ type PFourCoordinateGeometryFilter interface { InputImage() Image HasInputImage() bool - // optional - SetBottomRight(value coregraphics.Point) - HasSetBottomRight() bool - - // optional - BottomRight() coregraphics.Point - HasBottomRight() bool - // optional SetBottomLeft(value coregraphics.Point) HasSetBottomLeft() bool @@ -43,6 +35,14 @@ type PFourCoordinateGeometryFilter interface { BottomLeft() coregraphics.Point HasBottomLeft() bool + // optional + SetTopRight(value coregraphics.Point) + HasSetTopRight() bool + + // optional + TopRight() coregraphics.Point + HasTopRight() bool + // optional SetTopLeft(value coregraphics.Point) HasSetTopLeft() bool @@ -60,26 +60,26 @@ type FourCoordinateGeometryFilterObject struct { objc.Object } -func (f_ FourCoordinateGeometryFilterObject) HasSetTopRight() bool { - return f_.RespondsToSelector(objc.Sel("setTopRight:")) +func (f_ FourCoordinateGeometryFilterObject) HasSetBottomRight() bool { + return f_.RespondsToSelector(objc.Sel("setBottomRight:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338735-topright?language=objc -func (f_ FourCoordinateGeometryFilterObject) SetTopRight(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setTopRight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338732-bottomright?language=objc +func (f_ FourCoordinateGeometryFilterObject) SetBottomRight(value coregraphics.Point) { + objc.Call[objc.Void](f_, objc.Sel("setBottomRight:"), value) } -func (f_ FourCoordinateGeometryFilterObject) HasTopRight() bool { - return f_.RespondsToSelector(objc.Sel("topRight")) +func (f_ FourCoordinateGeometryFilterObject) HasBottomRight() bool { + return f_.RespondsToSelector(objc.Sel("bottomRight")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338735-topright?language=objc -func (f_ FourCoordinateGeometryFilterObject) TopRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("topRight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338732-bottomright?language=objc +func (f_ FourCoordinateGeometryFilterObject) BottomRight() coregraphics.Point { + rv := objc.Call[coregraphics.Point](f_, objc.Sel("bottomRight")) return rv } @@ -106,49 +106,49 @@ func (f_ FourCoordinateGeometryFilterObject) InputImage() Image { return rv } -func (f_ FourCoordinateGeometryFilterObject) HasSetBottomRight() bool { - return f_.RespondsToSelector(objc.Sel("setBottomRight:")) +func (f_ FourCoordinateGeometryFilterObject) HasSetBottomLeft() bool { + return f_.RespondsToSelector(objc.Sel("setBottomLeft:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338732-bottomright?language=objc -func (f_ FourCoordinateGeometryFilterObject) SetBottomRight(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setBottomRight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338731-bottomleft?language=objc +func (f_ FourCoordinateGeometryFilterObject) SetBottomLeft(value coregraphics.Point) { + objc.Call[objc.Void](f_, objc.Sel("setBottomLeft:"), value) } -func (f_ FourCoordinateGeometryFilterObject) HasBottomRight() bool { - return f_.RespondsToSelector(objc.Sel("bottomRight")) +func (f_ FourCoordinateGeometryFilterObject) HasBottomLeft() bool { + return f_.RespondsToSelector(objc.Sel("bottomLeft")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338732-bottomright?language=objc -func (f_ FourCoordinateGeometryFilterObject) BottomRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("bottomRight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338731-bottomleft?language=objc +func (f_ FourCoordinateGeometryFilterObject) BottomLeft() coregraphics.Point { + rv := objc.Call[coregraphics.Point](f_, objc.Sel("bottomLeft")) return rv } -func (f_ FourCoordinateGeometryFilterObject) HasSetBottomLeft() bool { - return f_.RespondsToSelector(objc.Sel("setBottomLeft:")) +func (f_ FourCoordinateGeometryFilterObject) HasSetTopRight() bool { + return f_.RespondsToSelector(objc.Sel("setTopRight:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338731-bottomleft?language=objc -func (f_ FourCoordinateGeometryFilterObject) SetBottomLeft(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setBottomLeft:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338735-topright?language=objc +func (f_ FourCoordinateGeometryFilterObject) SetTopRight(value coregraphics.Point) { + objc.Call[objc.Void](f_, objc.Sel("setTopRight:"), value) } -func (f_ FourCoordinateGeometryFilterObject) HasBottomLeft() bool { - return f_.RespondsToSelector(objc.Sel("bottomLeft")) +func (f_ FourCoordinateGeometryFilterObject) HasTopRight() bool { + return f_.RespondsToSelector(objc.Sel("topRight")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338731-bottomleft?language=objc -func (f_ FourCoordinateGeometryFilterObject) BottomLeft() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("bottomLeft")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338735-topright?language=objc +func (f_ FourCoordinateGeometryFilterObject) TopRight() coregraphics.Point { + rv := objc.Call[coregraphics.Point](f_, objc.Sel("topRight")) return rv } diff --git a/macos/coreimage/fourfold_reflected_tile_protocol.gen.go b/macos/coreimage/fourfold_reflected_tile_protocol.gen.go index 36d6800a..9d8ff418 100644 --- a/macos/coreimage/fourfold_reflected_tile_protocol.gen.go +++ b/macos/coreimage/fourfold_reflected_tile_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile?language=objc type PFourfoldReflectedTile interface { - // optional - SetAcuteAngle(value float32) - HasSetAcuteAngle() bool - - // optional - AcuteAngle() float32 - HasAcuteAngle() bool - // optional SetWidth(value float32) HasSetWidth() bool @@ -35,14 +27,6 @@ type PFourfoldReflectedTile interface { InputImage() Image HasInputImage() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetAngle(value float32) HasSetAngle() bool @@ -50,6 +34,22 @@ type PFourfoldReflectedTile interface { // optional Angle() float32 HasAngle() bool + + // optional + SetAcuteAngle(value float32) + HasSetAcuteAngle() bool + + // optional + AcuteAngle() float32 + HasAcuteAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -60,29 +60,6 @@ type FourfoldReflectedTileObject struct { objc.Object } -func (f_ FourfoldReflectedTileObject) HasSetAcuteAngle() bool { - return f_.RespondsToSelector(objc.Sel("setAcuteAngle:")) -} - -// The primary angle for the repeating reflected tile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228444-acuteangle?language=objc -func (f_ FourfoldReflectedTileObject) SetAcuteAngle(value float32) { - objc.Call[objc.Void](f_, objc.Sel("setAcuteAngle:"), value) -} - -func (f_ FourfoldReflectedTileObject) HasAcuteAngle() bool { - return f_.RespondsToSelector(objc.Sel("acuteAngle")) -} - -// The primary angle for the repeating reflected tile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228444-acuteangle?language=objc -func (f_ FourfoldReflectedTileObject) AcuteAngle() float32 { - rv := objc.Call[float32](f_, objc.Sel("acuteAngle")) - return rv -} - func (f_ FourfoldReflectedTileObject) HasSetWidth() bool { return f_.RespondsToSelector(objc.Sel("setWidth:")) } @@ -129,29 +106,6 @@ func (f_ FourfoldReflectedTileObject) InputImage() Image { return rv } -func (f_ FourfoldReflectedTileObject) HasSetCenter() bool { - return f_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228446-center?language=objc -func (f_ FourfoldReflectedTileObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setCenter:"), value) -} - -func (f_ FourfoldReflectedTileObject) HasCenter() bool { - return f_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228446-center?language=objc -func (f_ FourfoldReflectedTileObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("center")) - return rv -} - func (f_ FourfoldReflectedTileObject) HasSetAngle() bool { return f_.RespondsToSelector(objc.Sel("setAngle:")) } @@ -174,3 +128,49 @@ func (f_ FourfoldReflectedTileObject) Angle() float32 { rv := objc.Call[float32](f_, objc.Sel("angle")) return rv } + +func (f_ FourfoldReflectedTileObject) HasSetAcuteAngle() bool { + return f_.RespondsToSelector(objc.Sel("setAcuteAngle:")) +} + +// The primary angle for the repeating reflected tile. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228444-acuteangle?language=objc +func (f_ FourfoldReflectedTileObject) SetAcuteAngle(value float32) { + objc.Call[objc.Void](f_, objc.Sel("setAcuteAngle:"), value) +} + +func (f_ FourfoldReflectedTileObject) HasAcuteAngle() bool { + return f_.RespondsToSelector(objc.Sel("acuteAngle")) +} + +// The primary angle for the repeating reflected tile. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228444-acuteangle?language=objc +func (f_ FourfoldReflectedTileObject) AcuteAngle() float32 { + rv := objc.Call[float32](f_, objc.Sel("acuteAngle")) + return rv +} + +func (f_ FourfoldReflectedTileObject) HasSetCenter() bool { + return f_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228446-center?language=objc +func (f_ FourfoldReflectedTileObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](f_, objc.Sel("setCenter:"), value) +} + +func (f_ FourfoldReflectedTileObject) HasCenter() bool { + return f_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228446-center?language=objc +func (f_ FourfoldReflectedTileObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](f_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/fourfold_rotated_tile_protocol.gen.go b/macos/coreimage/fourfold_rotated_tile_protocol.gen.go index 7182ae4c..d174dd47 100644 --- a/macos/coreimage/fourfold_rotated_tile_protocol.gen.go +++ b/macos/coreimage/fourfold_rotated_tile_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile?language=objc type PFourfoldRotatedTile interface { - // optional - SetAngle(value float32) - HasSetAngle() bool - - // optional - Angle() float32 - HasAngle() bool - // optional SetWidth(value float32) HasSetWidth() bool @@ -27,14 +19,6 @@ type PFourfoldRotatedTile interface { Width() float32 HasWidth() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -42,6 +26,22 @@ type PFourfoldRotatedTile interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetAngle(value float32) + HasSetAngle() bool + + // optional + Angle() float32 + HasAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,29 +52,6 @@ type FourfoldRotatedTileObject struct { objc.Object } -func (f_ FourfoldRotatedTileObject) HasSetAngle() bool { - return f_.RespondsToSelector(objc.Sel("setAngle:")) -} - -// The angle, in radians, of the tiled pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228450-angle?language=objc -func (f_ FourfoldRotatedTileObject) SetAngle(value float32) { - objc.Call[objc.Void](f_, objc.Sel("setAngle:"), value) -} - -func (f_ FourfoldRotatedTileObject) HasAngle() bool { - return f_.RespondsToSelector(objc.Sel("angle")) -} - -// The angle, in radians, of the tiled pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228450-angle?language=objc -func (f_ FourfoldRotatedTileObject) Angle() float32 { - rv := objc.Call[float32](f_, objc.Sel("angle")) - return rv -} - func (f_ FourfoldRotatedTileObject) HasSetWidth() bool { return f_.RespondsToSelector(objc.Sel("setWidth:")) } @@ -98,29 +75,6 @@ func (f_ FourfoldRotatedTileObject) Width() float32 { return rv } -func (f_ FourfoldRotatedTileObject) HasSetCenter() bool { - return f_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228451-center?language=objc -func (f_ FourfoldRotatedTileObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setCenter:"), value) -} - -func (f_ FourfoldRotatedTileObject) HasCenter() bool { - return f_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228451-center?language=objc -func (f_ FourfoldRotatedTileObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("center")) - return rv -} - func (f_ FourfoldRotatedTileObject) HasSetInputImage() bool { return f_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -143,3 +97,49 @@ func (f_ FourfoldRotatedTileObject) InputImage() Image { rv := objc.Call[Image](f_, objc.Sel("inputImage")) return rv } + +func (f_ FourfoldRotatedTileObject) HasSetAngle() bool { + return f_.RespondsToSelector(objc.Sel("setAngle:")) +} + +// The angle, in radians, of the tiled pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228450-angle?language=objc +func (f_ FourfoldRotatedTileObject) SetAngle(value float32) { + objc.Call[objc.Void](f_, objc.Sel("setAngle:"), value) +} + +func (f_ FourfoldRotatedTileObject) HasAngle() bool { + return f_.RespondsToSelector(objc.Sel("angle")) +} + +// The angle, in radians, of the tiled pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228450-angle?language=objc +func (f_ FourfoldRotatedTileObject) Angle() float32 { + rv := objc.Call[float32](f_, objc.Sel("angle")) + return rv +} + +func (f_ FourfoldRotatedTileObject) HasSetCenter() bool { + return f_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228451-center?language=objc +func (f_ FourfoldRotatedTileObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](f_, objc.Sel("setCenter:"), value) +} + +func (f_ FourfoldRotatedTileObject) HasCenter() bool { + return f_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228451-center?language=objc +func (f_ FourfoldRotatedTileObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](f_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/fourfold_translated_tile_protocol.gen.go b/macos/coreimage/fourfold_translated_tile_protocol.gen.go index 559f03d9..066f8f4a 100644 --- a/macos/coreimage/fourfold_translated_tile_protocol.gen.go +++ b/macos/coreimage/fourfold_translated_tile_protocol.gen.go @@ -11,6 +11,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile?language=objc type PFourfoldTranslatedTile interface { + // optional + SetWidth(value float32) + HasSetWidth() bool + + // optional + Width() float32 + HasWidth() bool + // optional SetInputImage(value Image) HasSetInputImage() bool @@ -20,20 +28,20 @@ type PFourfoldTranslatedTile interface { HasInputImage() bool // optional - SetAcuteAngle(value float32) - HasSetAcuteAngle() bool + SetAngle(value float32) + HasSetAngle() bool // optional - AcuteAngle() float32 - HasAcuteAngle() bool + Angle() float32 + HasAngle() bool // optional - SetWidth(value float32) - HasSetWidth() bool + SetAcuteAngle(value float32) + HasSetAcuteAngle() bool // optional - Width() float32 - HasWidth() bool + AcuteAngle() float32 + HasAcuteAngle() bool // optional SetCenter(value coregraphics.Point) @@ -42,14 +50,6 @@ type PFourfoldTranslatedTile interface { // optional Center() coregraphics.Point HasCenter() bool - - // optional - SetAngle(value float32) - HasSetAngle() bool - - // optional - Angle() float32 - HasAngle() bool } // ensure impl type implements protocol interface @@ -60,6 +60,29 @@ type FourfoldTranslatedTileObject struct { objc.Object } +func (f_ FourfoldTranslatedTileObject) HasSetWidth() bool { + return f_.RespondsToSelector(objc.Sel("setWidth:")) +} + +// The width of a tile. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228459-width?language=objc +func (f_ FourfoldTranslatedTileObject) SetWidth(value float32) { + objc.Call[objc.Void](f_, objc.Sel("setWidth:"), value) +} + +func (f_ FourfoldTranslatedTileObject) HasWidth() bool { + return f_.RespondsToSelector(objc.Sel("width")) +} + +// The width of a tile. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228459-width?language=objc +func (f_ FourfoldTranslatedTileObject) Width() float32 { + rv := objc.Call[float32](f_, objc.Sel("width")) + return rv +} + func (f_ FourfoldTranslatedTileObject) HasSetInputImage() bool { return f_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -83,6 +106,29 @@ func (f_ FourfoldTranslatedTileObject) InputImage() Image { return rv } +func (f_ FourfoldTranslatedTileObject) HasSetAngle() bool { + return f_.RespondsToSelector(objc.Sel("setAngle:")) +} + +// The angle, in radians, of the tiled pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228456-angle?language=objc +func (f_ FourfoldTranslatedTileObject) SetAngle(value float32) { + objc.Call[objc.Void](f_, objc.Sel("setAngle:"), value) +} + +func (f_ FourfoldTranslatedTileObject) HasAngle() bool { + return f_.RespondsToSelector(objc.Sel("angle")) +} + +// The angle, in radians, of the tiled pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228456-angle?language=objc +func (f_ FourfoldTranslatedTileObject) Angle() float32 { + rv := objc.Call[float32](f_, objc.Sel("angle")) + return rv +} + func (f_ FourfoldTranslatedTileObject) HasSetAcuteAngle() bool { return f_.RespondsToSelector(objc.Sel("setAcuteAngle:")) } @@ -106,29 +152,6 @@ func (f_ FourfoldTranslatedTileObject) AcuteAngle() float32 { return rv } -func (f_ FourfoldTranslatedTileObject) HasSetWidth() bool { - return f_.RespondsToSelector(objc.Sel("setWidth:")) -} - -// The width of a tile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228459-width?language=objc -func (f_ FourfoldTranslatedTileObject) SetWidth(value float32) { - objc.Call[objc.Void](f_, objc.Sel("setWidth:"), value) -} - -func (f_ FourfoldTranslatedTileObject) HasWidth() bool { - return f_.RespondsToSelector(objc.Sel("width")) -} - -// The width of a tile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228459-width?language=objc -func (f_ FourfoldTranslatedTileObject) Width() float32 { - rv := objc.Call[float32](f_, objc.Sel("width")) - return rv -} - func (f_ FourfoldTranslatedTileObject) HasSetCenter() bool { return f_.RespondsToSelector(objc.Sel("setCenter:")) } @@ -151,26 +174,3 @@ func (f_ FourfoldTranslatedTileObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](f_, objc.Sel("center")) return rv } - -func (f_ FourfoldTranslatedTileObject) HasSetAngle() bool { - return f_.RespondsToSelector(objc.Sel("setAngle:")) -} - -// The angle, in radians, of the tiled pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228456-angle?language=objc -func (f_ FourfoldTranslatedTileObject) SetAngle(value float32) { - objc.Call[objc.Void](f_, objc.Sel("setAngle:"), value) -} - -func (f_ FourfoldTranslatedTileObject) HasAngle() bool { - return f_.RespondsToSelector(objc.Sel("angle")) -} - -// The angle, in radians, of the tiled pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228456-angle?language=objc -func (f_ FourfoldTranslatedTileObject) Angle() float32 { - rv := objc.Call[float32](f_, objc.Sel("angle")) - return rv -} diff --git a/macos/coreimage/gaussian_gradient_protocol.gen.go b/macos/coreimage/gaussian_gradient_protocol.gen.go index 3476d3f1..a9758657 100644 --- a/macos/coreimage/gaussian_gradient_protocol.gen.go +++ b/macos/coreimage/gaussian_gradient_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient?language=objc type PGaussianGradient interface { // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetRadius(value float32) + HasSetRadius() bool // optional - Center() coregraphics.Point - HasCenter() bool + Radius() float32 + HasRadius() bool // optional SetColor0(value Color) @@ -27,14 +27,6 @@ type PGaussianGradient interface { Color0() Color HasColor0() bool - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetColor1(value Color) HasSetColor1() bool @@ -42,6 +34,14 @@ type PGaussianGradient interface { // optional Color1() Color HasColor1() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,26 +52,26 @@ type GaussianGradientObject struct { objc.Object } -func (g_ GaussianGradientObject) HasSetCenter() bool { - return g_.RespondsToSelector(objc.Sel("setCenter:")) +func (g_ GaussianGradientObject) HasSetRadius() bool { + return g_.RespondsToSelector(objc.Sel("setRadius:")) } -// The center of the effect as x and y coordinates. [Full Topic] +// The radius of the Gaussian distribution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228467-center?language=objc -func (g_ GaussianGradientObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](g_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228470-radius?language=objc +func (g_ GaussianGradientObject) SetRadius(value float32) { + objc.Call[objc.Void](g_, objc.Sel("setRadius:"), value) } -func (g_ GaussianGradientObject) HasCenter() bool { - return g_.RespondsToSelector(objc.Sel("center")) +func (g_ GaussianGradientObject) HasRadius() bool { + return g_.RespondsToSelector(objc.Sel("radius")) } -// The center of the effect as x and y coordinates. [Full Topic] +// The radius of the Gaussian distribution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228467-center?language=objc -func (g_ GaussianGradientObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](g_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228470-radius?language=objc +func (g_ GaussianGradientObject) Radius() float32 { + rv := objc.Call[float32](g_, objc.Sel("radius")) return rv } @@ -98,29 +98,6 @@ func (g_ GaussianGradientObject) Color0() Color { return rv } -func (g_ GaussianGradientObject) HasSetRadius() bool { - return g_.RespondsToSelector(objc.Sel("setRadius:")) -} - -// The radius of the Gaussian distribution. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228470-radius?language=objc -func (g_ GaussianGradientObject) SetRadius(value float32) { - objc.Call[objc.Void](g_, objc.Sel("setRadius:"), value) -} - -func (g_ GaussianGradientObject) HasRadius() bool { - return g_.RespondsToSelector(objc.Sel("radius")) -} - -// The radius of the Gaussian distribution. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228470-radius?language=objc -func (g_ GaussianGradientObject) Radius() float32 { - rv := objc.Call[float32](g_, objc.Sel("radius")) - return rv -} - func (g_ GaussianGradientObject) HasSetColor1() bool { return g_.RespondsToSelector(objc.Sel("setColor1:")) } @@ -143,3 +120,26 @@ func (g_ GaussianGradientObject) Color1() Color { rv := objc.Call[Color](g_, objc.Sel("color1")) return rv } + +func (g_ GaussianGradientObject) HasSetCenter() bool { + return g_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The center of the effect as x and y coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228467-center?language=objc +func (g_ GaussianGradientObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](g_, objc.Sel("setCenter:"), value) +} + +func (g_ GaussianGradientObject) HasCenter() bool { + return g_.RespondsToSelector(objc.Sel("center")) +} + +// The center of the effect as x and y coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228467-center?language=objc +func (g_ GaussianGradientObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](g_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/glass_distortion_protocol.gen.go b/macos/coreimage/glass_distortion_protocol.gen.go index 2a150029..ee2dc9f9 100644 --- a/macos/coreimage/glass_distortion_protocol.gen.go +++ b/macos/coreimage/glass_distortion_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion?language=objc type PGlassDistortion interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool - // optional SetScale(value float32) HasSetScale() bool @@ -28,12 +20,12 @@ type PGlassDistortion interface { HasScale() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Center() coregraphics.Point - HasCenter() bool + InputImage() Image + HasInputImage() bool // optional SetTextureImage(value Image) @@ -42,6 +34,14 @@ type PGlassDistortion interface { // optional TextureImage() Image HasTextureImage() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,29 +52,6 @@ type GlassDistortionObject struct { objc.Object } -func (g_ GlassDistortionObject) HasSetInputImage() bool { - return g_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600157-inputimage?language=objc -func (g_ GlassDistortionObject) SetInputImage(value Image) { - objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), value) -} - -func (g_ GlassDistortionObject) HasInputImage() bool { - return g_.RespondsToSelector(objc.Sel("inputImage")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600157-inputimage?language=objc -func (g_ GlassDistortionObject) InputImage() Image { - rv := objc.Call[Image](g_, objc.Sel("inputImage")) - return rv -} - func (g_ GlassDistortionObject) HasSetScale() bool { return g_.RespondsToSelector(objc.Sel("setScale:")) } @@ -98,26 +75,26 @@ func (g_ GlassDistortionObject) Scale() float32 { return rv } -func (g_ GlassDistortionObject) HasSetCenter() bool { - return g_.RespondsToSelector(objc.Sel("setCenter:")) +func (g_ GlassDistortionObject) HasSetInputImage() bool { + return g_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600156-center?language=objc -func (g_ GlassDistortionObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](g_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600157-inputimage?language=objc +func (g_ GlassDistortionObject) SetInputImage(value Image) { + objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), value) } -func (g_ GlassDistortionObject) HasCenter() bool { - return g_.RespondsToSelector(objc.Sel("center")) +func (g_ GlassDistortionObject) HasInputImage() bool { + return g_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600156-center?language=objc -func (g_ GlassDistortionObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](g_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600157-inputimage?language=objc +func (g_ GlassDistortionObject) InputImage() Image { + rv := objc.Call[Image](g_, objc.Sel("inputImage")) return rv } @@ -143,3 +120,26 @@ func (g_ GlassDistortionObject) TextureImage() Image { rv := objc.Call[Image](g_, objc.Sel("textureImage")) return rv } + +func (g_ GlassDistortionObject) HasSetCenter() bool { + return g_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600156-center?language=objc +func (g_ GlassDistortionObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](g_, objc.Sel("setCenter:"), value) +} + +func (g_ GlassDistortionObject) HasCenter() bool { + return g_.RespondsToSelector(objc.Sel("center")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600156-center?language=objc +func (g_ GlassDistortionObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](g_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/glass_lozenge_protocol.gen.go b/macos/coreimage/glass_lozenge_protocol.gen.go index 12280bef..3ecd99bb 100644 --- a/macos/coreimage/glass_lozenge_protocol.gen.go +++ b/macos/coreimage/glass_lozenge_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge?language=objc type PGlassLozenge interface { // optional - SetRadius(value float32) - HasSetRadius() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Radius() float32 - HasRadius() bool + InputImage() Image + HasInputImage() bool // optional SetRefraction(value float32) @@ -28,20 +28,12 @@ type PGlassLozenge interface { HasRefraction() bool // optional - SetPoint0(value coregraphics.Point) - HasSetPoint0() bool - - // optional - Point0() coregraphics.Point - HasPoint0() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetRadius(value float32) + HasSetRadius() bool // optional - InputImage() Image - HasInputImage() bool + Radius() float32 + HasRadius() bool // optional SetPoint1(value coregraphics.Point) @@ -50,6 +42,14 @@ type PGlassLozenge interface { // optional Point1() coregraphics.Point HasPoint1() bool + + // optional + SetPoint0(value coregraphics.Point) + HasSetPoint0() bool + + // optional + Point0() coregraphics.Point + HasPoint0() bool } // ensure impl type implements protocol interface @@ -60,26 +60,26 @@ type GlassLozengeObject struct { objc.Object } -func (g_ GlassLozengeObject) HasSetRadius() bool { - return g_.RespondsToSelector(objc.Sel("setRadius:")) +func (g_ GlassLozengeObject) HasSetInputImage() bool { + return g_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600164-radius?language=objc -func (g_ GlassLozengeObject) SetRadius(value float32) { - objc.Call[objc.Void](g_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600161-inputimage?language=objc +func (g_ GlassLozengeObject) SetInputImage(value Image) { + objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), value) } -func (g_ GlassLozengeObject) HasRadius() bool { - return g_.RespondsToSelector(objc.Sel("radius")) +func (g_ GlassLozengeObject) HasInputImage() bool { + return g_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600164-radius?language=objc -func (g_ GlassLozengeObject) Radius() float32 { - rv := objc.Call[float32](g_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600161-inputimage?language=objc +func (g_ GlassLozengeObject) InputImage() Image { + rv := objc.Call[Image](g_, objc.Sel("inputImage")) return rv } @@ -106,71 +106,71 @@ func (g_ GlassLozengeObject) Refraction() float32 { return rv } -func (g_ GlassLozengeObject) HasSetPoint0() bool { - return g_.RespondsToSelector(objc.Sel("setPoint0:")) +func (g_ GlassLozengeObject) HasSetRadius() bool { + return g_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600162-point0?language=objc -func (g_ GlassLozengeObject) SetPoint0(value coregraphics.Point) { - objc.Call[objc.Void](g_, objc.Sel("setPoint0:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600164-radius?language=objc +func (g_ GlassLozengeObject) SetRadius(value float32) { + objc.Call[objc.Void](g_, objc.Sel("setRadius:"), value) } -func (g_ GlassLozengeObject) HasPoint0() bool { - return g_.RespondsToSelector(objc.Sel("point0")) +func (g_ GlassLozengeObject) HasRadius() bool { + return g_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600162-point0?language=objc -func (g_ GlassLozengeObject) Point0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](g_, objc.Sel("point0")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600164-radius?language=objc +func (g_ GlassLozengeObject) Radius() float32 { + rv := objc.Call[float32](g_, objc.Sel("radius")) return rv } -func (g_ GlassLozengeObject) HasSetInputImage() bool { - return g_.RespondsToSelector(objc.Sel("setInputImage:")) +func (g_ GlassLozengeObject) HasSetPoint1() bool { + return g_.RespondsToSelector(objc.Sel("setPoint1:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600161-inputimage?language=objc -func (g_ GlassLozengeObject) SetInputImage(value Image) { - objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600163-point1?language=objc +func (g_ GlassLozengeObject) SetPoint1(value coregraphics.Point) { + objc.Call[objc.Void](g_, objc.Sel("setPoint1:"), value) } -func (g_ GlassLozengeObject) HasInputImage() bool { - return g_.RespondsToSelector(objc.Sel("inputImage")) +func (g_ GlassLozengeObject) HasPoint1() bool { + return g_.RespondsToSelector(objc.Sel("point1")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600161-inputimage?language=objc -func (g_ GlassLozengeObject) InputImage() Image { - rv := objc.Call[Image](g_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600163-point1?language=objc +func (g_ GlassLozengeObject) Point1() coregraphics.Point { + rv := objc.Call[coregraphics.Point](g_, objc.Sel("point1")) return rv } -func (g_ GlassLozengeObject) HasSetPoint1() bool { - return g_.RespondsToSelector(objc.Sel("setPoint1:")) +func (g_ GlassLozengeObject) HasSetPoint0() bool { + return g_.RespondsToSelector(objc.Sel("setPoint0:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600163-point1?language=objc -func (g_ GlassLozengeObject) SetPoint1(value coregraphics.Point) { - objc.Call[objc.Void](g_, objc.Sel("setPoint1:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600162-point0?language=objc +func (g_ GlassLozengeObject) SetPoint0(value coregraphics.Point) { + objc.Call[objc.Void](g_, objc.Sel("setPoint0:"), value) } -func (g_ GlassLozengeObject) HasPoint1() bool { - return g_.RespondsToSelector(objc.Sel("point1")) +func (g_ GlassLozengeObject) HasPoint0() bool { + return g_.RespondsToSelector(objc.Sel("point0")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600163-point1?language=objc -func (g_ GlassLozengeObject) Point1() coregraphics.Point { - rv := objc.Call[coregraphics.Point](g_, objc.Sel("point1")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600162-point0?language=objc +func (g_ GlassLozengeObject) Point0() coregraphics.Point { + rv := objc.Call[coregraphics.Point](g_, objc.Sel("point0")) return rv } diff --git a/macos/coreimage/glide_reflected_tile_protocol.gen.go b/macos/coreimage/glide_reflected_tile_protocol.gen.go index 7551e4cc..3dbfc49f 100644 --- a/macos/coreimage/glide_reflected_tile_protocol.gen.go +++ b/macos/coreimage/glide_reflected_tile_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile?language=objc type PGlideReflectedTile interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool - // optional SetWidth(value float32) HasSetWidth() bool @@ -27,6 +19,14 @@ type PGlideReflectedTile interface { Width() float32 HasWidth() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetAngle(value float32) HasSetAngle() bool @@ -52,29 +52,6 @@ type GlideReflectedTileObject struct { objc.Object } -func (g_ GlideReflectedTileObject) HasSetInputImage() bool { - return g_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228474-inputimage?language=objc -func (g_ GlideReflectedTileObject) SetInputImage(value Image) { - objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), value) -} - -func (g_ GlideReflectedTileObject) HasInputImage() bool { - return g_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228474-inputimage?language=objc -func (g_ GlideReflectedTileObject) InputImage() Image { - rv := objc.Call[Image](g_, objc.Sel("inputImage")) - return rv -} - func (g_ GlideReflectedTileObject) HasSetWidth() bool { return g_.RespondsToSelector(objc.Sel("setWidth:")) } @@ -98,6 +75,29 @@ func (g_ GlideReflectedTileObject) Width() float32 { return rv } +func (g_ GlideReflectedTileObject) HasSetInputImage() bool { + return g_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228474-inputimage?language=objc +func (g_ GlideReflectedTileObject) SetInputImage(value Image) { + objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), value) +} + +func (g_ GlideReflectedTileObject) HasInputImage() bool { + return g_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228474-inputimage?language=objc +func (g_ GlideReflectedTileObject) InputImage() Image { + rv := objc.Call[Image](g_, objc.Sel("inputImage")) + return rv +} + func (g_ GlideReflectedTileObject) HasSetAngle() bool { return g_.RespondsToSelector(objc.Sel("setAngle:")) } diff --git a/macos/coreimage/gloom_protocol.gen.go b/macos/coreimage/gloom_protocol.gen.go index 3fcd2cb5..241cea2e 100644 --- a/macos/coreimage/gloom_protocol.gen.go +++ b/macos/coreimage/gloom_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom?language=objc type PGloom interface { - // optional - SetIntensity(value float32) - HasSetIntensity() bool - - // optional - Intensity() float32 - HasIntensity() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -26,6 +18,14 @@ type PGloom interface { InputImage() Image HasInputImage() bool + // optional + SetIntensity(value float32) + HasSetIntensity() bool + + // optional + Intensity() float32 + HasIntensity() bool + // optional SetRadius(value float32) HasSetRadius() bool @@ -43,29 +43,6 @@ type GloomObject struct { objc.Object } -func (g_ GloomObject) HasSetIntensity() bool { - return g_.RespondsToSelector(objc.Sel("setIntensity:")) -} - -// The intensity of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228478-intensity?language=objc -func (g_ GloomObject) SetIntensity(value float32) { - objc.Call[objc.Void](g_, objc.Sel("setIntensity:"), value) -} - -func (g_ GloomObject) HasIntensity() bool { - return g_.RespondsToSelector(objc.Sel("intensity")) -} - -// The intensity of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228478-intensity?language=objc -func (g_ GloomObject) Intensity() float32 { - rv := objc.Call[float32](g_, objc.Sel("intensity")) - return rv -} - func (g_ GloomObject) HasSetInputImage() bool { return g_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -89,6 +66,29 @@ func (g_ GloomObject) InputImage() Image { return rv } +func (g_ GloomObject) HasSetIntensity() bool { + return g_.RespondsToSelector(objc.Sel("setIntensity:")) +} + +// The intensity of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228478-intensity?language=objc +func (g_ GloomObject) SetIntensity(value float32) { + objc.Call[objc.Void](g_, objc.Sel("setIntensity:"), value) +} + +func (g_ GloomObject) HasIntensity() bool { + return g_.RespondsToSelector(objc.Sel("intensity")) +} + +// The intensity of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228478-intensity?language=objc +func (g_ GloomObject) Intensity() float32 { + rv := objc.Call[float32](g_, objc.Sel("intensity")) + return rv +} + func (g_ GloomObject) HasSetRadius() bool { return g_.RespondsToSelector(objc.Sel("setRadius:")) } diff --git a/macos/coreimage/hatched_screen_protocol.gen.go b/macos/coreimage/hatched_screen_protocol.gen.go index 29fcb6b3..d2bbe3f6 100644 --- a/macos/coreimage/hatched_screen_protocol.gen.go +++ b/macos/coreimage/hatched_screen_protocol.gen.go @@ -11,6 +11,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen?language=objc type PHatchedScreen interface { + // optional + SetWidth(value float32) + HasSetWidth() bool + + // optional + Width() float32 + HasWidth() bool + // optional SetInputImage(value Image) HasSetInputImage() bool @@ -20,20 +28,20 @@ type PHatchedScreen interface { HasInputImage() bool // optional - SetAngle(value float32) - HasSetAngle() bool + SetSharpness(value float32) + HasSetSharpness() bool // optional - Angle() float32 - HasAngle() bool + Sharpness() float32 + HasSharpness() bool // optional - SetWidth(value float32) - HasSetWidth() bool + SetAngle(value float32) + HasSetAngle() bool // optional - Width() float32 - HasWidth() bool + Angle() float32 + HasAngle() bool // optional SetCenter(value coregraphics.Point) @@ -42,14 +50,6 @@ type PHatchedScreen interface { // optional Center() coregraphics.Point HasCenter() bool - - // optional - SetSharpness(value float32) - HasSetSharpness() bool - - // optional - Sharpness() float32 - HasSharpness() bool } // ensure impl type implements protocol interface @@ -60,6 +60,29 @@ type HatchedScreenObject struct { objc.Object } +func (h_ HatchedScreenObject) HasSetWidth() bool { + return h_.RespondsToSelector(objc.Sel("setWidth:")) +} + +// The distance between lines in the pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228485-width?language=objc +func (h_ HatchedScreenObject) SetWidth(value float32) { + objc.Call[objc.Void](h_, objc.Sel("setWidth:"), value) +} + +func (h_ HatchedScreenObject) HasWidth() bool { + return h_.RespondsToSelector(objc.Sel("width")) +} + +// The distance between lines in the pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228485-width?language=objc +func (h_ HatchedScreenObject) Width() float32 { + rv := objc.Call[float32](h_, objc.Sel("width")) + return rv +} + func (h_ HatchedScreenObject) HasSetInputImage() bool { return h_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -83,6 +106,29 @@ func (h_ HatchedScreenObject) InputImage() Image { return rv } +func (h_ HatchedScreenObject) HasSetSharpness() bool { + return h_.RespondsToSelector(objc.Sel("setSharpness:")) +} + +// The amount of sharpening to apply. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228484-sharpness?language=objc +func (h_ HatchedScreenObject) SetSharpness(value float32) { + objc.Call[objc.Void](h_, objc.Sel("setSharpness:"), value) +} + +func (h_ HatchedScreenObject) HasSharpness() bool { + return h_.RespondsToSelector(objc.Sel("sharpness")) +} + +// The amount of sharpening to apply. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228484-sharpness?language=objc +func (h_ HatchedScreenObject) Sharpness() float32 { + rv := objc.Call[float32](h_, objc.Sel("sharpness")) + return rv +} + func (h_ HatchedScreenObject) HasSetAngle() bool { return h_.RespondsToSelector(objc.Sel("setAngle:")) } @@ -106,29 +152,6 @@ func (h_ HatchedScreenObject) Angle() float32 { return rv } -func (h_ HatchedScreenObject) HasSetWidth() bool { - return h_.RespondsToSelector(objc.Sel("setWidth:")) -} - -// The distance between lines in the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228485-width?language=objc -func (h_ HatchedScreenObject) SetWidth(value float32) { - objc.Call[objc.Void](h_, objc.Sel("setWidth:"), value) -} - -func (h_ HatchedScreenObject) HasWidth() bool { - return h_.RespondsToSelector(objc.Sel("width")) -} - -// The distance between lines in the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228485-width?language=objc -func (h_ HatchedScreenObject) Width() float32 { - rv := objc.Call[float32](h_, objc.Sel("width")) - return rv -} - func (h_ HatchedScreenObject) HasSetCenter() bool { return h_.RespondsToSelector(objc.Sel("setCenter:")) } @@ -151,26 +174,3 @@ func (h_ HatchedScreenObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](h_, objc.Sel("center")) return rv } - -func (h_ HatchedScreenObject) HasSetSharpness() bool { - return h_.RespondsToSelector(objc.Sel("setSharpness:")) -} - -// The amount of sharpening to apply. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228484-sharpness?language=objc -func (h_ HatchedScreenObject) SetSharpness(value float32) { - objc.Call[objc.Void](h_, objc.Sel("setSharpness:"), value) -} - -func (h_ HatchedScreenObject) HasSharpness() bool { - return h_.RespondsToSelector(objc.Sel("sharpness")) -} - -// The amount of sharpening to apply. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228484-sharpness?language=objc -func (h_ HatchedScreenObject) Sharpness() float32 { - rv := objc.Call[float32](h_, objc.Sel("sharpness")) - return rv -} diff --git a/macos/coreimage/height_field_from_mask_protocol.gen.go b/macos/coreimage/height_field_from_mask_protocol.gen.go index 7b90034e..dcd4ee4f 100644 --- a/macos/coreimage/height_field_from_mask_protocol.gen.go +++ b/macos/coreimage/height_field_from_mask_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask?language=objc type PHeightFieldFromMask interface { - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PHeightFieldFromMask interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetRadius(value float32) + HasSetRadius() bool + + // optional + Radius() float32 + HasRadius() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type HeightFieldFromMaskObject struct { objc.Object } -func (h_ HeightFieldFromMaskObject) HasSetRadius() bool { - return h_.RespondsToSelector(objc.Sel("setRadius:")) -} - -// The length of the height-field transition. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228488-radius?language=objc -func (h_ HeightFieldFromMaskObject) SetRadius(value float32) { - objc.Call[objc.Void](h_, objc.Sel("setRadius:"), value) -} - -func (h_ HeightFieldFromMaskObject) HasRadius() bool { - return h_.RespondsToSelector(objc.Sel("radius")) -} - -// The length of the height-field transition. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228488-radius?language=objc -func (h_ HeightFieldFromMaskObject) Radius() float32 { - rv := objc.Call[float32](h_, objc.Sel("radius")) - return rv -} - func (h_ HeightFieldFromMaskObject) HasSetInputImage() bool { return h_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (h_ HeightFieldFromMaskObject) InputImage() Image { rv := objc.Call[Image](h_, objc.Sel("inputImage")) return rv } + +func (h_ HeightFieldFromMaskObject) HasSetRadius() bool { + return h_.RespondsToSelector(objc.Sel("setRadius:")) +} + +// The length of the height-field transition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228488-radius?language=objc +func (h_ HeightFieldFromMaskObject) SetRadius(value float32) { + objc.Call[objc.Void](h_, objc.Sel("setRadius:"), value) +} + +func (h_ HeightFieldFromMaskObject) HasRadius() bool { + return h_.RespondsToSelector(objc.Sel("radius")) +} + +// The length of the height-field transition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228488-radius?language=objc +func (h_ HeightFieldFromMaskObject) Radius() float32 { + rv := objc.Call[float32](h_, objc.Sel("radius")) + return rv +} diff --git a/macos/coreimage/hexagonal_pixellate_protocol.gen.go b/macos/coreimage/hexagonal_pixellate_protocol.gen.go index 78ce746f..61bf8c4a 100644 --- a/macos/coreimage/hexagonal_pixellate_protocol.gen.go +++ b/macos/coreimage/hexagonal_pixellate_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihexagonalpixellate?language=objc type PHexagonalPixellate interface { - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetScale(value float32) HasSetScale() bool @@ -34,6 +26,14 @@ type PHexagonalPixellate interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -44,29 +44,6 @@ type HexagonalPixellateObject struct { objc.Object } -func (h_ HexagonalPixellateObject) HasSetCenter() bool { - return h_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihexagonalpixellate/3228490-center?language=objc -func (h_ HexagonalPixellateObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](h_, objc.Sel("setCenter:"), value) -} - -func (h_ HexagonalPixellateObject) HasCenter() bool { - return h_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihexagonalpixellate/3228490-center?language=objc -func (h_ HexagonalPixellateObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](h_, objc.Sel("center")) - return rv -} - func (h_ HexagonalPixellateObject) HasSetScale() bool { return h_.RespondsToSelector(objc.Sel("setScale:")) } @@ -112,3 +89,26 @@ func (h_ HexagonalPixellateObject) InputImage() Image { rv := objc.Call[Image](h_, objc.Sel("inputImage")) return rv } + +func (h_ HexagonalPixellateObject) HasSetCenter() bool { + return h_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihexagonalpixellate/3228490-center?language=objc +func (h_ HexagonalPixellateObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](h_, objc.Sel("setCenter:"), value) +} + +func (h_ HexagonalPixellateObject) HasCenter() bool { + return h_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihexagonalpixellate/3228490-center?language=objc +func (h_ HexagonalPixellateObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](h_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/highlight_shadow_adjust_protocol.gen.go b/macos/coreimage/highlight_shadow_adjust_protocol.gen.go index 042e9d69..9ab8b038 100644 --- a/macos/coreimage/highlight_shadow_adjust_protocol.gen.go +++ b/macos/coreimage/highlight_shadow_adjust_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust?language=objc type PHighlightShadowAdjust interface { - // optional - SetHighlightAmount(value float32) - HasSetHighlightAmount() bool - - // optional - HighlightAmount() float32 - HasHighlightAmount() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -26,6 +18,14 @@ type PHighlightShadowAdjust interface { InputImage() Image HasInputImage() bool + // optional + SetShadowAmount(value float32) + HasSetShadowAmount() bool + + // optional + ShadowAmount() float32 + HasShadowAmount() bool + // optional SetRadius(value float32) HasSetRadius() bool @@ -35,12 +35,12 @@ type PHighlightShadowAdjust interface { HasRadius() bool // optional - SetShadowAmount(value float32) - HasSetShadowAmount() bool + SetHighlightAmount(value float32) + HasSetHighlightAmount() bool // optional - ShadowAmount() float32 - HasShadowAmount() bool + HighlightAmount() float32 + HasHighlightAmount() bool } // ensure impl type implements protocol interface @@ -51,29 +51,6 @@ type HighlightShadowAdjustObject struct { objc.Object } -func (h_ HighlightShadowAdjustObject) HasSetHighlightAmount() bool { - return h_.RespondsToSelector(objc.Sel("setHighlightAmount:")) -} - -// The amount of adjustment to the highlights in the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228494-highlightamount?language=objc -func (h_ HighlightShadowAdjustObject) SetHighlightAmount(value float32) { - objc.Call[objc.Void](h_, objc.Sel("setHighlightAmount:"), value) -} - -func (h_ HighlightShadowAdjustObject) HasHighlightAmount() bool { - return h_.RespondsToSelector(objc.Sel("highlightAmount")) -} - -// The amount of adjustment to the highlights in the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228494-highlightamount?language=objc -func (h_ HighlightShadowAdjustObject) HighlightAmount() float32 { - rv := objc.Call[float32](h_, objc.Sel("highlightAmount")) - return rv -} - func (h_ HighlightShadowAdjustObject) HasSetInputImage() bool { return h_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -97,6 +74,29 @@ func (h_ HighlightShadowAdjustObject) InputImage() Image { return rv } +func (h_ HighlightShadowAdjustObject) HasSetShadowAmount() bool { + return h_.RespondsToSelector(objc.Sel("setShadowAmount:")) +} + +// The amount of adjustment to the shadows in the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228497-shadowamount?language=objc +func (h_ HighlightShadowAdjustObject) SetShadowAmount(value float32) { + objc.Call[objc.Void](h_, objc.Sel("setShadowAmount:"), value) +} + +func (h_ HighlightShadowAdjustObject) HasShadowAmount() bool { + return h_.RespondsToSelector(objc.Sel("shadowAmount")) +} + +// The amount of adjustment to the shadows in the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228497-shadowamount?language=objc +func (h_ HighlightShadowAdjustObject) ShadowAmount() float32 { + rv := objc.Call[float32](h_, objc.Sel("shadowAmount")) + return rv +} + func (h_ HighlightShadowAdjustObject) HasSetRadius() bool { return h_.RespondsToSelector(objc.Sel("setRadius:")) } @@ -120,25 +120,25 @@ func (h_ HighlightShadowAdjustObject) Radius() float32 { return rv } -func (h_ HighlightShadowAdjustObject) HasSetShadowAmount() bool { - return h_.RespondsToSelector(objc.Sel("setShadowAmount:")) +func (h_ HighlightShadowAdjustObject) HasSetHighlightAmount() bool { + return h_.RespondsToSelector(objc.Sel("setHighlightAmount:")) } -// The amount of adjustment to the shadows in the image. [Full Topic] +// The amount of adjustment to the highlights in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228497-shadowamount?language=objc -func (h_ HighlightShadowAdjustObject) SetShadowAmount(value float32) { - objc.Call[objc.Void](h_, objc.Sel("setShadowAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228494-highlightamount?language=objc +func (h_ HighlightShadowAdjustObject) SetHighlightAmount(value float32) { + objc.Call[objc.Void](h_, objc.Sel("setHighlightAmount:"), value) } -func (h_ HighlightShadowAdjustObject) HasShadowAmount() bool { - return h_.RespondsToSelector(objc.Sel("shadowAmount")) +func (h_ HighlightShadowAdjustObject) HasHighlightAmount() bool { + return h_.RespondsToSelector(objc.Sel("highlightAmount")) } -// The amount of adjustment to the shadows in the image. [Full Topic] +// The amount of adjustment to the highlights in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228497-shadowamount?language=objc -func (h_ HighlightShadowAdjustObject) ShadowAmount() float32 { - rv := objc.Call[float32](h_, objc.Sel("shadowAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228494-highlightamount?language=objc +func (h_ HighlightShadowAdjustObject) HighlightAmount() float32 { + rv := objc.Call[float32](h_, objc.Sel("highlightAmount")) return rv } diff --git a/macos/coreimage/histogram_display_protocol.gen.go b/macos/coreimage/histogram_display_protocol.gen.go index c083b6fd..e497dbbc 100644 --- a/macos/coreimage/histogram_display_protocol.gen.go +++ b/macos/coreimage/histogram_display_protocol.gen.go @@ -10,22 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay?language=objc type PHistogramDisplay interface { - // optional - SetLowLimit(value float32) - HasSetLowLimit() bool - - // optional - LowLimit() float32 - HasLowLimit() bool - - // optional - SetHighLimit(value float32) - HasSetHighLimit() bool - - // optional - HighLimit() float32 - HasHighLimit() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -41,6 +25,22 @@ type PHistogramDisplay interface { // optional Height() float32 HasHeight() bool + + // optional + SetHighLimit(value float32) + HasSetHighLimit() bool + + // optional + HighLimit() float32 + HasHighLimit() bool + + // optional + SetLowLimit(value float32) + HasSetLowLimit() bool + + // optional + LowLimit() float32 + HasLowLimit() bool } // ensure impl type implements protocol interface @@ -51,94 +51,94 @@ type HistogramDisplayObject struct { objc.Object } -func (h_ HistogramDisplayObject) HasSetLowLimit() bool { - return h_.RespondsToSelector(objc.Sel("setLowLimit:")) +func (h_ HistogramDisplayObject) HasSetInputImage() bool { + return h_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547128-lowlimit?language=objc -func (h_ HistogramDisplayObject) SetLowLimit(value float32) { - objc.Call[objc.Void](h_, objc.Sel("setLowLimit:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547127-inputimage?language=objc +func (h_ HistogramDisplayObject) SetInputImage(value Image) { + objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), value) } -func (h_ HistogramDisplayObject) HasLowLimit() bool { - return h_.RespondsToSelector(objc.Sel("lowLimit")) +func (h_ HistogramDisplayObject) HasInputImage() bool { + return h_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547128-lowlimit?language=objc -func (h_ HistogramDisplayObject) LowLimit() float32 { - rv := objc.Call[float32](h_, objc.Sel("lowLimit")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547127-inputimage?language=objc +func (h_ HistogramDisplayObject) InputImage() Image { + rv := objc.Call[Image](h_, objc.Sel("inputImage")) return rv } -func (h_ HistogramDisplayObject) HasSetHighLimit() bool { - return h_.RespondsToSelector(objc.Sel("setHighLimit:")) +func (h_ HistogramDisplayObject) HasSetHeight() bool { + return h_.RespondsToSelector(objc.Sel("setHeight:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547126-highlimit?language=objc -func (h_ HistogramDisplayObject) SetHighLimit(value float32) { - objc.Call[objc.Void](h_, objc.Sel("setHighLimit:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547125-height?language=objc +func (h_ HistogramDisplayObject) SetHeight(value float32) { + objc.Call[objc.Void](h_, objc.Sel("setHeight:"), value) } -func (h_ HistogramDisplayObject) HasHighLimit() bool { - return h_.RespondsToSelector(objc.Sel("highLimit")) +func (h_ HistogramDisplayObject) HasHeight() bool { + return h_.RespondsToSelector(objc.Sel("height")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547126-highlimit?language=objc -func (h_ HistogramDisplayObject) HighLimit() float32 { - rv := objc.Call[float32](h_, objc.Sel("highLimit")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547125-height?language=objc +func (h_ HistogramDisplayObject) Height() float32 { + rv := objc.Call[float32](h_, objc.Sel("height")) return rv } -func (h_ HistogramDisplayObject) HasSetInputImage() bool { - return h_.RespondsToSelector(objc.Sel("setInputImage:")) +func (h_ HistogramDisplayObject) HasSetHighLimit() bool { + return h_.RespondsToSelector(objc.Sel("setHighLimit:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547127-inputimage?language=objc -func (h_ HistogramDisplayObject) SetInputImage(value Image) { - objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547126-highlimit?language=objc +func (h_ HistogramDisplayObject) SetHighLimit(value float32) { + objc.Call[objc.Void](h_, objc.Sel("setHighLimit:"), value) } -func (h_ HistogramDisplayObject) HasInputImage() bool { - return h_.RespondsToSelector(objc.Sel("inputImage")) +func (h_ HistogramDisplayObject) HasHighLimit() bool { + return h_.RespondsToSelector(objc.Sel("highLimit")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547127-inputimage?language=objc -func (h_ HistogramDisplayObject) InputImage() Image { - rv := objc.Call[Image](h_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547126-highlimit?language=objc +func (h_ HistogramDisplayObject) HighLimit() float32 { + rv := objc.Call[float32](h_, objc.Sel("highLimit")) return rv } -func (h_ HistogramDisplayObject) HasSetHeight() bool { - return h_.RespondsToSelector(objc.Sel("setHeight:")) +func (h_ HistogramDisplayObject) HasSetLowLimit() bool { + return h_.RespondsToSelector(objc.Sel("setLowLimit:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547125-height?language=objc -func (h_ HistogramDisplayObject) SetHeight(value float32) { - objc.Call[objc.Void](h_, objc.Sel("setHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547128-lowlimit?language=objc +func (h_ HistogramDisplayObject) SetLowLimit(value float32) { + objc.Call[objc.Void](h_, objc.Sel("setLowLimit:"), value) } -func (h_ HistogramDisplayObject) HasHeight() bool { - return h_.RespondsToSelector(objc.Sel("height")) +func (h_ HistogramDisplayObject) HasLowLimit() bool { + return h_.RespondsToSelector(objc.Sel("lowLimit")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547125-height?language=objc -func (h_ HistogramDisplayObject) Height() float32 { - rv := objc.Call[float32](h_, objc.Sel("height")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547128-lowlimit?language=objc +func (h_ HistogramDisplayObject) LowLimit() float32 { + rv := objc.Call[float32](h_, objc.Sel("lowLimit")) return rv } diff --git a/macos/coreimage/hole_distortion_protocol.gen.go b/macos/coreimage/hole_distortion_protocol.gen.go index 8b8ee980..892e417e 100644 --- a/macos/coreimage/hole_distortion_protocol.gen.go +++ b/macos/coreimage/hole_distortion_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion?language=objc type PHoleDistortion interface { // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Center() coregraphics.Point - HasCenter() bool + InputImage() Image + HasInputImage() bool // optional SetRadius(value float32) @@ -28,12 +28,12 @@ type PHoleDistortion interface { HasRadius() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - InputImage() Image - HasInputImage() bool + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -44,26 +44,26 @@ type HoleDistortionObject struct { objc.Object } -func (h_ HoleDistortionObject) HasSetCenter() bool { - return h_.RespondsToSelector(objc.Sel("setCenter:")) +func (h_ HoleDistortionObject) HasSetInputImage() bool { + return h_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion/3600167-center?language=objc -func (h_ HoleDistortionObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](h_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion/3600168-inputimage?language=objc +func (h_ HoleDistortionObject) SetInputImage(value Image) { + objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), value) } -func (h_ HoleDistortionObject) HasCenter() bool { - return h_.RespondsToSelector(objc.Sel("center")) +func (h_ HoleDistortionObject) HasInputImage() bool { + return h_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion/3600167-center?language=objc -func (h_ HoleDistortionObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](h_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion/3600168-inputimage?language=objc +func (h_ HoleDistortionObject) InputImage() Image { + rv := objc.Call[Image](h_, objc.Sel("inputImage")) return rv } @@ -90,25 +90,25 @@ func (h_ HoleDistortionObject) Radius() float32 { return rv } -func (h_ HoleDistortionObject) HasSetInputImage() bool { - return h_.RespondsToSelector(objc.Sel("setInputImage:")) +func (h_ HoleDistortionObject) HasSetCenter() bool { + return h_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion/3600168-inputimage?language=objc -func (h_ HoleDistortionObject) SetInputImage(value Image) { - objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion/3600167-center?language=objc +func (h_ HoleDistortionObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](h_, objc.Sel("setCenter:"), value) } -func (h_ HoleDistortionObject) HasInputImage() bool { - return h_.RespondsToSelector(objc.Sel("inputImage")) +func (h_ HoleDistortionObject) HasCenter() bool { + return h_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion/3600168-inputimage?language=objc -func (h_ HoleDistortionObject) InputImage() Image { - rv := objc.Call[Image](h_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion/3600167-center?language=objc +func (h_ HoleDistortionObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](h_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/hue_saturation_value_gradient_protocol.gen.go b/macos/coreimage/hue_saturation_value_gradient_protocol.gen.go index b8df227c..2d8addf3 100644 --- a/macos/coreimage/hue_saturation_value_gradient_protocol.gen.go +++ b/macos/coreimage/hue_saturation_value_gradient_protocol.gen.go @@ -27,14 +27,6 @@ type PHueSaturationValueGradient interface { Dither() float32 HasDither() bool - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetColorSpace(value coregraphics.ColorSpaceRef) HasSetColorSpace() bool @@ -43,6 +35,14 @@ type PHueSaturationValueGradient interface { ColorSpace() coregraphics.ColorSpaceRef HasColorSpace() bool + // optional + SetRadius(value float32) + HasSetRadius() bool + + // optional + Radius() float32 + HasRadius() bool + // optional SetSoftness(value float32) HasSetSoftness() bool @@ -106,29 +106,6 @@ func (h_ HueSaturationValueGradientObject) Dither() float32 { return rv } -func (h_ HueSaturationValueGradientObject) HasSetRadius() bool { - return h_.RespondsToSelector(objc.Sel("setRadius:")) -} - -// The distance from the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228504-radius?language=objc -func (h_ HueSaturationValueGradientObject) SetRadius(value float32) { - objc.Call[objc.Void](h_, objc.Sel("setRadius:"), value) -} - -func (h_ HueSaturationValueGradientObject) HasRadius() bool { - return h_.RespondsToSelector(objc.Sel("radius")) -} - -// The distance from the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228504-radius?language=objc -func (h_ HueSaturationValueGradientObject) Radius() float32 { - rv := objc.Call[float32](h_, objc.Sel("radius")) - return rv -} - func (h_ HueSaturationValueGradientObject) HasSetColorSpace() bool { return h_.RespondsToSelector(objc.Sel("setColorSpace:")) } @@ -152,6 +129,29 @@ func (h_ HueSaturationValueGradientObject) ColorSpace() coregraphics.ColorSpaceR return rv } +func (h_ HueSaturationValueGradientObject) HasSetRadius() bool { + return h_.RespondsToSelector(objc.Sel("setRadius:")) +} + +// The distance from the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228504-radius?language=objc +func (h_ HueSaturationValueGradientObject) SetRadius(value float32) { + objc.Call[objc.Void](h_, objc.Sel("setRadius:"), value) +} + +func (h_ HueSaturationValueGradientObject) HasRadius() bool { + return h_.RespondsToSelector(objc.Sel("radius")) +} + +// The distance from the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228504-radius?language=objc +func (h_ HueSaturationValueGradientObject) Radius() float32 { + rv := objc.Call[float32](h_, objc.Sel("radius")) + return rv +} + func (h_ HueSaturationValueGradientObject) HasSetSoftness() bool { return h_.RespondsToSelector(objc.Sel("setSoftness:")) } diff --git a/macos/coreimage/image.gen.go b/macos/coreimage/image.gen.go index 02214f1c..d5a5e781 100644 --- a/macos/coreimage/image.gen.go +++ b/macos/coreimage/image.gen.go @@ -24,39 +24,36 @@ type _ImageClass struct { // An interface definition for the [Image] class. type IImage interface { objc.IObject - ImageByCompositingOverImage(dest IImage) Image - ImageByColorMatchingColorSpaceToWorkingSpace(colorSpace coregraphics.ColorSpaceRef) Image + AutoAdjustmentFiltersWithOptions(options map[ImageAutoAdjustmentOption]objc.IObject) []Filter + ImageBySettingAlphaOneInExtent(extent coregraphics.Rect) Image + DrawAtPointFromRectOperationFraction(point foundation.Point, fromRect foundation.Rect, op objc.IObject, delta float64) + ImageBySamplingLinear() Image + ImageBySamplingNearest() Image DrawInRectFromRectOperationFraction(rect foundation.Rect, fromRect foundation.Rect, op objc.IObject, delta float64) - ImageByApplyingCGOrientation(orientation imageio.ImagePropertyOrientation) Image - ImageByUnpremultiplyingAlpha() Image + ImageByApplyingGaussianBlurWithSigma(sigma float64) Image ImageByClampingToRect(rect coregraphics.Rect) Image - ImageByColorMatchingWorkingSpaceToColorSpace(colorSpace coregraphics.ColorSpaceRef) Image + ImageByUnpremultiplyingAlpha() Image + ImageTransformForOrientation(orientation int) coregraphics.AffineTransform + ImageByCompositingOverImage(dest IImage) Image + ImageByColorMatchingColorSpaceToWorkingSpace(colorSpace coregraphics.ColorSpaceRef) Image ImageByClampingToExtent() Image - ImageByApplyingTransform(matrix coregraphics.AffineTransform) Image - ImageBySamplingLinear() Image - ImageByApplyingGaussianBlurWithSigma(sigma float64) Image - AutoAdjustmentFiltersWithOptions(options map[ImageAutoAdjustmentOption]objc.IObject) []Filter + ImageByColorMatchingWorkingSpaceToColorSpace(colorSpace coregraphics.ColorSpaceRef) Image ImageTransformForCGOrientation(orientation imageio.ImagePropertyOrientation) coregraphics.AffineTransform - ImageBySamplingNearest() Image - ImageByApplyingTransformHighQualityDownsample(matrix coregraphics.AffineTransform, highQualityDownsample bool) Image - ImageByInsertingIntermediate_(cache bool) Image - ImageByApplyingFilterWithInputParameters(filterName string, params map[string]objc.IObject) Image - AutoAdjustmentFilters() []Filter - RegionOfInterestForImageInRect(image IImage, rect coregraphics.Rect) coregraphics.Rect - ImageTransformForOrientation(orientation int) coregraphics.AffineTransform + ImageByApplyingCGOrientation(orientation imageio.ImagePropertyOrientation) Image ImageByApplyingFilter(filterName string) Image - ImageByApplyingOrientation(orientation int) Image - ImageByCroppingToRect(rect coregraphics.Rect) Image - ImageBySettingAlphaOneInExtent(extent coregraphics.Rect) Image - ImageByPremultiplyingAlpha() Image - ImageBySettingProperties(properties foundation.Dictionary) Image - DrawAtPointFromRectOperationFraction(point foundation.Point, fromRect foundation.Rect, op objc.IObject, delta float64) ImageByInsertingIntermediate() Image - ColorSpace() coregraphics.ColorSpaceRef + ImageBySettingProperties(properties foundation.Dictionary) Image + ImageByPremultiplyingAlpha() Image + AutoAdjustmentFilters() []Filter + ImageByCroppingToRect(rect coregraphics.Rect) Image + ImageByApplyingTransformHighQualityDownsample(matrix coregraphics.AffineTransform, highQualityDownsample bool) Image + ImageByApplyingOrientation(orientation int) Image + RegionOfInterestForImageInRect(image IImage, rect coregraphics.Rect) coregraphics.Rect + CGImage() coregraphics.ImageRef Properties() map[string]objc.Object PixelBuffer() corevideo.PixelBufferRef + ColorSpace() coregraphics.ColorSpaceRef Url() foundation.URL - CGImage() coregraphics.ImageRef Extent() coregraphics.Rect Definition() FilterShape } @@ -74,73 +71,30 @@ func ImageFrom(ptr unsafe.Pointer) Image { } } -func (i_ Image) InitWithData(data []byte) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithData:"), data) - return rv -} - -// Initializes an image object with the supplied image data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437925-initwithdata?language=objc -func NewImageWithData(data []byte) Image { - instance := ImageClass.Alloc().InitWithData(data) - instance.Autorelease() - return instance -} - -func (i_ Image) InitWithContentsOfURLOptions(url foundation.IURL, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithContentsOfURL:options:"), url, options) - return rv -} - -// Initializes an image object by reading an image from a URL, using the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437867-initwithcontentsofurl?language=objc -func NewImageWithContentsOfURLOptions(url foundation.IURL, options map[ImageOption]objc.IObject) Image { - instance := ImageClass.Alloc().InitWithContentsOfURLOptions(url, options) - instance.Autorelease() - return instance -} - -func (i_ Image) InitWithCVImageBufferOptions(imageBuffer corevideo.ImageBufferRef, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithCVImageBuffer:options:"), imageBuffer, options) - return rv -} - -// Initializes an image object from the contents of a Core Video image buffer, using the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437617-initwithcvimagebuffer?language=objc -func NewImageWithCVImageBufferOptions(imageBuffer corevideo.ImageBufferRef, options map[ImageOption]objc.IObject) Image { - instance := ImageClass.Alloc().InitWithCVImageBufferOptions(imageBuffer, options) - instance.Autorelease() - return instance -} - -func (i_ Image) InitWithMTLTextureOptions(texture metal.PTexture, options map[ImageOption]objc.IObject) Image { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - rv := objc.Call[Image](i_, objc.Sel("initWithMTLTexture:options:"), po0, options) +func (i_ Image) InitWithCVImageBuffer(imageBuffer corevideo.ImageBufferRef) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithCVImageBuffer:"), imageBuffer) return rv } -// Initializes an image object with data supplied by a Metal texture. [Full Topic] +// Initializes an image object from the contents of a Core Video image buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437890-initwithmtltexture?language=objc -func NewImageWithMTLTextureOptions(texture metal.PTexture, options map[ImageOption]objc.IObject) Image { - instance := ImageClass.Alloc().InitWithMTLTextureOptions(texture, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438012-initwithcvimagebuffer?language=objc +func NewImageWithCVImageBuffer(imageBuffer corevideo.ImageBufferRef) Image { + instance := ImageClass.Alloc().InitWithCVImageBuffer(imageBuffer) instance.Autorelease() return instance } -func (i_ Image) InitWithCGImage(image coregraphics.ImageRef) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithCGImage:"), image) +func (i_ Image) InitWithIOSurface(surface iosurface.Ref) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithIOSurface:"), surface) return rv } -// Initializes an image object with a Quartz 2D image. [Full Topic] +// Initializes an image with the contents of an IOSurface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437986-initwithcgimage?language=objc -func NewImageWithCGImage(image coregraphics.ImageRef) Image { - instance := ImageClass.Alloc().InitWithCGImage(image) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438030-initwithiosurface?language=objc +func NewImageWithIOSurface(surface iosurface.Ref) Image { + instance := ImageClass.Alloc().InitWithIOSurface(surface) instance.Autorelease() return instance } @@ -159,58 +113,59 @@ func NewImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPer return instance } -func (i_ Image) InitWithCGImageOptions(image coregraphics.ImageRef, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithCGImage:options:"), image, options) +func (i_ Image) InitWithColor(color IColor) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithColor:"), color) return rv } -// Initializes an image object with a Quartz 2D image, using the specified options. [Full Topic] +// Initializes an image of infinite extent whose entire content is the specified color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437764-initwithcgimage?language=objc -func NewImageWithCGImageOptions(image coregraphics.ImageRef, options map[ImageOption]objc.IObject) Image { - instance := ImageClass.Alloc().InitWithCGImageOptions(image, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437947-initwithcolor?language=objc +func NewImageWithColor(color IColor) Image { + instance := ImageClass.Alloc().InitWithColor(color) instance.Autorelease() return instance } -func (i_ Image) InitWithBitmapImageRep(bitmapImageRep objc.IObject) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithBitmapImageRep:"), bitmapImageRep) +func (i_ Image) InitWithData(data []byte) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithData:"), data) return rv } -// Initializes an image object with the specified bitmap image representation. [Full Topic] +// Initializes an image object with the supplied image data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1535335-initwithbitmapimagerep?language=objc -func NewImageWithBitmapImageRep(bitmapImageRep objc.IObject) Image { - instance := ImageClass.Alloc().InitWithBitmapImageRep(bitmapImageRep) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437925-initwithdata?language=objc +func NewImageWithData(data []byte) Image { + instance := ImageClass.Alloc().InitWithData(data) instance.Autorelease() return instance } -func (i_ Image) InitWithCVImageBuffer(imageBuffer corevideo.ImageBufferRef) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithCVImageBuffer:"), imageBuffer) +func (i_ Image) InitWithBitmapImageRep(bitmapImageRep objc.IObject) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithBitmapImageRep:"), bitmapImageRep) return rv } -// Initializes an image object from the contents of a Core Video image buffer. [Full Topic] +// Initializes an image object with the specified bitmap image representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438012-initwithcvimagebuffer?language=objc -func NewImageWithCVImageBuffer(imageBuffer corevideo.ImageBufferRef) Image { - instance := ImageClass.Alloc().InitWithCVImageBuffer(imageBuffer) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1535335-initwithbitmapimagerep?language=objc +func NewImageWithBitmapImageRep(bitmapImageRep objc.IObject) Image { + instance := ImageClass.Alloc().InitWithBitmapImageRep(bitmapImageRep) instance.Autorelease() return instance } -func (i_ Image) InitWithImageProviderSize(p objc.IObject, width uint) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithImageProvider:size:"), p, width) +func (i_ Image) InitWithMTLTextureOptions(texture metal.PTexture, options map[ImageOption]objc.IObject) Image { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + rv := objc.Call[Image](i_, objc.Sel("initWithMTLTexture:options:"), po0, options) return rv } -// Initializes an image object with data provided by an image provider, using the specified options. [Full Topic] +// Initializes an image object with data supplied by a Metal texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437868-initwithimageprovider?language=objc -func NewImageWithImageProviderSize(p objc.IObject, width uint) Image { - instance := ImageClass.Alloc().InitWithImageProviderSize(p, width) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437890-initwithmtltexture?language=objc +func NewImageWithMTLTextureOptions(texture metal.PTexture, options map[ImageOption]objc.IObject) Image { + instance := ImageClass.Alloc().InitWithMTLTextureOptions(texture, options) instance.Autorelease() return instance } @@ -229,58 +184,16 @@ func NewImageWithContentsOfURL(url foundation.IURL) Image { return instance } -func (i_ Image) InitWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithCVPixelBuffer:"), pixelBuffer) - return rv -} - -// Initializes an image object from the contents of a Core Video pixel buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438072-initwithcvpixelbuffer?language=objc -func NewImageWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { - instance := ImageClass.Alloc().InitWithCVPixelBuffer(pixelBuffer) - instance.Autorelease() - return instance -} - -func (i_ Image) InitWithIOSurface(surface iosurface.Ref) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithIOSurface:"), surface) - return rv -} - -// Initializes an image with the contents of an IOSurface. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438030-initwithiosurface?language=objc -func NewImageWithIOSurface(surface iosurface.Ref) Image { - instance := ImageClass.Alloc().InitWithIOSurface(surface) - instance.Autorelease() - return instance -} - -func (i_ Image) InitWithIOSurfaceOptions(surface iosurface.Ref, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithIOSurface:options:"), surface, options) - return rv -} - -// Initializes, using the specified options, an image with the contents of an IOSurface. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438181-initwithiosurface?language=objc -func NewImageWithIOSurfaceOptions(surface iosurface.Ref, options map[ImageOption]objc.IObject) Image { - instance := ImageClass.Alloc().InitWithIOSurfaceOptions(surface, options) - instance.Autorelease() - return instance -} - -func (i_ Image) InitWithDataOptions(data []byte, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithData:options:"), data, options) +func (i_ Image) InitWithImageProviderSize(p objc.IObject, width uint) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithImageProvider:size:"), p, width) return rv } -// Initializes an image object with the supplied image data, using the specified options. [Full Topic] +// Initializes an image object with data provided by an image provider, using the specified options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438032-initwithdata?language=objc -func NewImageWithDataOptions(data []byte, options map[ImageOption]objc.IObject) Image { - instance := ImageClass.Alloc().InitWithDataOptions(data, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437868-initwithimageprovider?language=objc +func NewImageWithImageProviderSize(p objc.IObject, width uint) Image { + instance := ImageClass.Alloc().InitWithImageProviderSize(p, width) instance.Autorelease() return instance } @@ -299,30 +212,30 @@ func NewImageWithCGImageSourceIndexOptions(source imageio.ImageSourceRef, index return instance } -func (i_ Image) InitWithCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithCVPixelBuffer:options:"), pixelBuffer, options) +func (i_ Image) InitWithCGImage(image coregraphics.ImageRef) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithCGImage:"), image) return rv } -// Initializes an image object from the contents of a Core Video pixel buffer using the specified options. [Full Topic] +// Initializes an image object with a Quartz 2D image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438209-initwithcvpixelbuffer?language=objc -func NewImageWithCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) Image { - instance := ImageClass.Alloc().InitWithCVPixelBufferOptions(pixelBuffer, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437986-initwithcgimage?language=objc +func NewImageWithCGImage(image coregraphics.ImageRef) Image { + instance := ImageClass.Alloc().InitWithCGImage(image) instance.Autorelease() return instance } -func (i_ Image) InitWithColor(color IColor) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithColor:"), color) +func (i_ Image) InitWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithCVPixelBuffer:"), pixelBuffer) return rv } -// Initializes an image of infinite extent whose entire content is the specified color. [Full Topic] +// Initializes an image object from the contents of a Core Video pixel buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437947-initwithcolor?language=objc -func NewImageWithColor(color IColor) Image { - instance := ImageClass.Alloc().InitWithColor(color) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438072-initwithcvpixelbuffer?language=objc +func NewImageWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { + instance := ImageClass.Alloc().InitWithCVPixelBuffer(pixelBuffer) instance.Autorelease() return instance } @@ -347,135 +260,90 @@ func (i_ Image) Init() Image { return rv } -// Creates and returns an image object from bitmap data. [Full Topic] +// Returns a subset of automatically selected and configured filters for adjusting the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547023-imagewithbitmapdata?language=objc -func (ic _ImageClass) ImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPerRow uint, size coregraphics.Size, format Format, colorSpace coregraphics.ColorSpaceRef) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithBitmapData:bytesPerRow:size:format:colorSpace:"), data, bytesPerRow, size, format, colorSpace) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437792-autoadjustmentfilterswithoptions?language=objc +func (i_ Image) AutoAdjustmentFiltersWithOptions(options map[ImageAutoAdjustmentOption]objc.IObject) []Filter { + rv := objc.Call[[]Filter](i_, objc.Sel("autoAdjustmentFiltersWithOptions:"), options) return rv } -// Creates and returns an image object from bitmap data. [Full Topic] +// Creates and returns an image object from the contents of CVImageBuffer object, using the specified options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547023-imagewithbitmapdata?language=objc -func Image_ImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPerRow uint, size coregraphics.Size, format Format, colorSpace coregraphics.ColorSpaceRef) Image { - return ImageClass.ImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data, bytesPerRow, size, format, colorSpace) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547028-imagewithcvimagebuffer?language=objc +func (ic _ImageClass) ImageWithCVImageBufferOptions(imageBuffer corevideo.ImageBufferRef, options map[ImageOption]objc.IObject) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithCVImageBuffer:options:"), imageBuffer, options) + return rv } -// Returns a new image created by compositing the original image over the specified destination image. [Full Topic] +// Creates and returns an image object from the contents of CVImageBuffer object, using the specified options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437837-imagebycompositingoverimage?language=objc -func (i_ Image) ImageByCompositingOverImage(dest IImage) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByCompositingOverImage:"), dest) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547028-imagewithcvimagebuffer?language=objc +func Image_ImageWithCVImageBufferOptions(imageBuffer corevideo.ImageBufferRef, options map[ImageOption]objc.IObject) Image { + return ImageClass.ImageWithCVImageBufferOptions(imageBuffer, options) } -// Creates and returns an image object from a Quartz 2D image using the specified options. [Full Topic] +// Returns a new image created by setting all alpha values to 1.0 within the specified rectangle and to 0.0 outside of that area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547021-imagewithcgimage?language=objc -func (ic _ImageClass) ImageWithCGImageOptions(image coregraphics.ImageRef, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithCGImage:options:"), image, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645891-imagebysettingalphaoneinextent?language=objc +func (i_ Image) ImageBySettingAlphaOneInExtent(extent coregraphics.Rect) Image { + rv := objc.Call[Image](i_, objc.Sel("imageBySettingAlphaOneInExtent:"), extent) return rv } -// Creates and returns an image object from a Quartz 2D image using the specified options. [Full Topic] +// Creates and returns an image of infinite extent whose entire content is the specified color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547021-imagewithcgimage?language=objc -func Image_ImageWithCGImageOptions(image coregraphics.ImageRef, options map[ImageOption]objc.IObject) Image { - return ImageClass.ImageWithCGImageOptions(image, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547012-imagewithcolor?language=objc +func (ic _ImageClass) ImageWithColor(color IColor) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithColor:"), color) + return rv } -// Returns a new image created by color matching from the specified color space to the context’s working color space. [Full Topic] +// Creates and returns an image of infinite extent whose entire content is the specified color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645896-imagebycolormatchingcolorspaceto?language=objc -func (i_ Image) ImageByColorMatchingColorSpaceToWorkingSpace(colorSpace coregraphics.ColorSpaceRef) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByColorMatchingColorSpaceToWorkingSpace:"), colorSpace) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547012-imagewithcolor?language=objc +func Image_ImageWithColor(color IColor) Image { + return ImageClass.ImageWithColor(color) } -// Draws all or part of the image in the specified rectangle in the current coordinate system [Full Topic] +// Draws all or part of the image at the specified point in the current coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1534407-drawinrect?language=objc -func (i_ Image) DrawInRectFromRectOperationFraction(rect foundation.Rect, fromRect foundation.Rect, op objc.IObject, delta float64) { - objc.Call[objc.Void](i_, objc.Sel("drawInRect:fromRect:operation:fraction:"), rect, fromRect, op, delta) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1534432-drawatpoint?language=objc +func (i_ Image) DrawAtPointFromRectOperationFraction(point foundation.Point, fromRect foundation.Rect, op objc.IObject, delta float64) { + objc.Call[objc.Void](i_, objc.Sel("drawAtPoint:fromRect:operation:fraction:"), point, fromRect, op, delta) } -// Transforms the original image by a given CGImagePropertyOrientation and returns the result. [Full Topic] +// Samples the image using bilinear interpolation and returns the result. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2919727-imagebyapplyingcgorientation?language=objc -func (i_ Image) ImageByApplyingCGOrientation(orientation imageio.ImagePropertyOrientation) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByApplyingCGOrientation:"), orientation) - return rv -} - -// Creates, using the specified options, and returns an image from the contents of an IOSurface. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547001-imagewithiosurface?language=objc -func (ic _ImageClass) ImageWithIOSurfaceOptions(surface iosurface.Ref, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithIOSurface:options:"), surface, options) - return rv -} - -// Creates, using the specified options, and returns an image from the contents of an IOSurface. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547001-imagewithiosurface?language=objc -func Image_ImageWithIOSurfaceOptions(surface iosurface.Ref, options map[ImageOption]objc.IObject) Image { - return ImageClass.ImageWithIOSurfaceOptions(surface, options) -} - -// Creates and returns an image object from the contents of CVPixelBuffer object, using the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547003-imagewithcvpixelbuffer?language=objc -func (ic _ImageClass) ImageWithCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithCVPixelBuffer:options:"), pixelBuffer, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2867346-imagebysamplinglinear?language=objc +func (i_ Image) ImageBySamplingLinear() Image { + rv := objc.Call[Image](i_, objc.Sel("imageBySamplingLinear")) return rv } -// Creates and returns an image object from the contents of CVPixelBuffer object, using the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547003-imagewithcvpixelbuffer?language=objc -func Image_ImageWithCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) Image { - return ImageClass.ImageWithCVPixelBufferOptions(pixelBuffer, options) -} - -// Creates and returns an image object initialized with the supplied image data, using the specified options. [Full Topic] +// Samples the image using nearest-neighbor and returns the result. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547016-imagewithdata?language=objc -func (ic _ImageClass) ImageWithDataOptions(data []byte, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithData:options:"), data, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2867429-imagebysamplingnearest?language=objc +func (i_ Image) ImageBySamplingNearest() Image { + rv := objc.Call[Image](i_, objc.Sel("imageBySamplingNearest")) return rv } -// Creates and returns an image object initialized with the supplied image data, using the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547016-imagewithdata?language=objc -func Image_ImageWithDataOptions(data []byte, options map[ImageOption]objc.IObject) Image { - return ImageClass.ImageWithDataOptions(data, options) -} - -// Returns a new image created by dividing the image’s RGB values by its alpha values. [Full Topic] +// Draws all or part of the image in the specified rectangle in the current coordinate system [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645892-imagebyunpremultiplyingalpha?language=objc -func (i_ Image) ImageByUnpremultiplyingAlpha() Image { - rv := objc.Call[Image](i_, objc.Sel("imageByUnpremultiplyingAlpha")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1534407-drawinrect?language=objc +func (i_ Image) DrawInRectFromRectOperationFraction(rect foundation.Rect, fromRect foundation.Rect, op objc.IObject, delta float64) { + objc.Call[objc.Void](i_, objc.Sel("drawInRect:fromRect:operation:fraction:"), rect, fromRect, op, delta) } -// Creates and returns an image object from a Quartz 2D image. [Full Topic] +// Returns a new image created by applying a Gaussian Blur filter to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547025-imagewithcgimage?language=objc -func (ic _ImageClass) ImageWithCGImage(image coregraphics.ImageRef) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithCGImage:"), image) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645897-imagebyapplyinggaussianblurwiths?language=objc +func (i_ Image) ImageByApplyingGaussianBlurWithSigma(sigma float64) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByApplyingGaussianBlurWithSigma:"), sigma) return rv } -// Creates and returns an image object from a Quartz 2D image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547025-imagewithcgimage?language=objc -func Image_ImageWithCGImage(image coregraphics.ImageRef) Image { - return ImageClass.ImageWithCGImage(image) -} - // Returns a new image created by cropping to a specified area, then making the pixel colors along the edges of the cropped image extend infinitely in all directions. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645893-imagebyclampingtorect?language=objc @@ -484,105 +352,53 @@ func (i_ Image) ImageByClampingToRect(rect coregraphics.Rect) Image { return rv } -// Returns a new image created by color matching from the context’s working color space to the specified color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645898-imagebycolormatchingworkingspace?language=objc -func (i_ Image) ImageByColorMatchingWorkingSpaceToColorSpace(colorSpace coregraphics.ColorSpaceRef) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByColorMatchingWorkingSpaceToColorSpace:"), colorSpace) - return rv -} - -// Returns a new image created by making the pixel colors along its edges extend infinitely in all directions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437628-imagebyclampingtoextent?language=objc -func (i_ Image) ImageByClampingToExtent() Image { - rv := objc.Call[Image](i_, objc.Sel("imageByClampingToExtent")) - return rv -} - -// Creates and returns an empty image object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438023-emptyimage?language=objc -func (ic _ImageClass) EmptyImage() Image { - rv := objc.Call[Image](ic, objc.Sel("emptyImage")) - return rv -} - -// Creates and returns an empty image object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438023-emptyimage?language=objc -func Image_EmptyImage() Image { - return ImageClass.EmptyImage() -} - -// Creates and returns an image of infinite extent whose entire content is the specified color. [Full Topic] +// Creates and returns an image from the contents of an IOSurface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547012-imagewithcolor?language=objc -func (ic _ImageClass) ImageWithColor(color IColor) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithColor:"), color) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547024-imagewithiosurface?language=objc +func (ic _ImageClass) ImageWithIOSurface(surface iosurface.Ref) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithIOSurface:"), surface) return rv } -// Creates and returns an image of infinite extent whose entire content is the specified color. [Full Topic] +// Creates and returns an image from the contents of an IOSurface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547012-imagewithcolor?language=objc -func Image_ImageWithColor(color IColor) Image { - return ImageClass.ImageWithColor(color) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547024-imagewithiosurface?language=objc +func Image_ImageWithIOSurface(surface iosurface.Ref) Image { + return ImageClass.ImageWithIOSurface(surface) } -// [Full Topic] +// Returns a new image created by dividing the image’s RGB values by its alpha values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3152398-imagewithcgimagesource?language=objc -func (ic _ImageClass) ImageWithCGImageSourceIndexOptions(source imageio.ImageSourceRef, index uint, dict map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithCGImageSource:index:options:"), source, index, dict) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645892-imagebyunpremultiplyingalpha?language=objc +func (i_ Image) ImageByUnpremultiplyingAlpha() Image { + rv := objc.Call[Image](i_, objc.Sel("imageByUnpremultiplyingAlpha")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3152398-imagewithcgimagesource?language=objc -func Image_ImageWithCGImageSourceIndexOptions(source imageio.ImageSourceRef, index uint, dict map[ImageOption]objc.IObject) Image { - return ImageClass.ImageWithCGImageSourceIndexOptions(source, index, dict) -} - -// Returns a new image that represents the original image after applying an affine transform. [Full Topic] +// Returns the transformation needed to reorient the image to the specified orientation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438203-imagebyapplyingtransform?language=objc -func (i_ Image) ImageByApplyingTransform(matrix coregraphics.AffineTransform) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByApplyingTransform:"), matrix) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437930-imagetransformfororientation?language=objc +func (i_ Image) ImageTransformForOrientation(orientation int) coregraphics.AffineTransform { + rv := objc.Call[coregraphics.AffineTransform](i_, objc.Sel("imageTransformForOrientation:"), orientation) return rv } -// Creates and returns an image from the contents of an IOSurface. [Full Topic] +// Returns a new image created by compositing the original image over the specified destination image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547024-imagewithiosurface?language=objc -func (ic _ImageClass) ImageWithIOSurface(surface iosurface.Ref) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithIOSurface:"), surface) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437837-imagebycompositingoverimage?language=objc +func (i_ Image) ImageByCompositingOverImage(dest IImage) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByCompositingOverImage:"), dest) return rv } -// Creates and returns an image from the contents of an IOSurface. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547024-imagewithiosurface?language=objc -func Image_ImageWithIOSurface(surface iosurface.Ref) Image { - return ImageClass.ImageWithIOSurface(surface) -} - -// Creates and returns an image object from the contents of CVImageBuffer object, using the specified options. [Full Topic] +// Returns a new image created by color matching from the specified color space to the context’s working color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547028-imagewithcvimagebuffer?language=objc -func (ic _ImageClass) ImageWithCVImageBufferOptions(imageBuffer corevideo.ImageBufferRef, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithCVImageBuffer:options:"), imageBuffer, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645896-imagebycolormatchingcolorspaceto?language=objc +func (i_ Image) ImageByColorMatchingColorSpaceToWorkingSpace(colorSpace coregraphics.ColorSpaceRef) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByColorMatchingColorSpaceToWorkingSpace:"), colorSpace) return rv } -// Creates and returns an image object from the contents of CVImageBuffer object, using the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547028-imagewithcvimagebuffer?language=objc -func Image_ImageWithCVImageBufferOptions(imageBuffer corevideo.ImageBufferRef, options map[ImageOption]objc.IObject) Image { - return ImageClass.ImageWithCVImageBufferOptions(imageBuffer, options) -} - // Creates and returns an image object with data supplied by a Metal texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1546999-imagewithmtltexture?language=objc @@ -599,192 +415,142 @@ func Image_ImageWithMTLTextureOptions(texture metal.PTexture, options map[ImageO return ImageClass.ImageWithMTLTextureOptions(texture, options) } -// Samples the image using bilinear interpolation and returns the result. [Full Topic] +// Returns a new image created by making the pixel colors along its edges extend infinitely in all directions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2867346-imagebysamplinglinear?language=objc -func (i_ Image) ImageBySamplingLinear() Image { - rv := objc.Call[Image](i_, objc.Sel("imageBySamplingLinear")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437628-imagebyclampingtoextent?language=objc +func (i_ Image) ImageByClampingToExtent() Image { + rv := objc.Call[Image](i_, objc.Sel("imageByClampingToExtent")) return rv } -// Returns a new image created by applying a Gaussian Blur filter to the image. [Full Topic] +// Creates and returns an image object initialized with the supplied image data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645897-imagebyapplyinggaussianblurwiths?language=objc -func (i_ Image) ImageByApplyingGaussianBlurWithSigma(sigma float64) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByApplyingGaussianBlurWithSigma:"), sigma) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547029-imagewithdata?language=objc +func (ic _ImageClass) ImageWithData(data []byte) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithData:"), data) return rv } -// Returns a subset of automatically selected and configured filters for adjusting the image. [Full Topic] +// Creates and returns an image object initialized with the supplied image data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437792-autoadjustmentfilterswithoptions?language=objc -func (i_ Image) AutoAdjustmentFiltersWithOptions(options map[ImageAutoAdjustmentOption]objc.IObject) []Filter { - rv := objc.Call[[]Filter](i_, objc.Sel("autoAdjustmentFiltersWithOptions:"), options) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547029-imagewithdata?language=objc +func Image_ImageWithData(data []byte) Image { + return ImageClass.ImageWithData(data) } -// The affine transform for changing the image to the given orientation. [Full Topic] +// Creates and returns an image object from the contents of a file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2919726-imagetransformforcgorientation?language=objc -func (i_ Image) ImageTransformForCGOrientation(orientation imageio.ImagePropertyOrientation) coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](i_, objc.Sel("imageTransformForCGOrientation:"), orientation) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547027-imagewithcontentsofurl?language=objc +func (ic _ImageClass) ImageWithContentsOfURL(url foundation.IURL) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithContentsOfURL:"), url) return rv } -// Samples the image using nearest-neighbor and returns the result. [Full Topic] +// Creates and returns an image object from the contents of a file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2867429-imagebysamplingnearest?language=objc -func (i_ Image) ImageBySamplingNearest() Image { - rv := objc.Call[Image](i_, objc.Sel("imageBySamplingNearest")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547027-imagewithcontentsofurl?language=objc +func Image_ImageWithContentsOfURL(url foundation.IURL) Image { + return ImageClass.ImageWithContentsOfURL(url) } -// [Full Topic] +// Creates and returns an image object initialized with data provided by an image provider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3334939-imagebyapplyingtransform?language=objc -func (i_ Image) ImageByApplyingTransformHighQualityDownsample(matrix coregraphics.AffineTransform, highQualityDownsample bool) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByApplyingTransform:highQualityDownsample:"), matrix, highQualityDownsample) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1579115-imagewithimageprovider?language=objc +func (ic _ImageClass) ImageWithImageProviderSize(p objc.IObject, width uint) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithImageProvider:size:"), p, width) return rv } -// Returns a new image created by inserting a cacheable intermediate. [Full Topic] +// Creates and returns an image object initialized with data provided by an image provider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2966522-imagebyinsertingintermediate?language=objc -func (i_ Image) ImageByInsertingIntermediate_(cache bool) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByInsertingIntermediate:"), cache) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1579115-imagewithimageprovider?language=objc +func Image_ImageWithImageProviderSize(p objc.IObject, width uint) Image { + return ImageClass.ImageWithImageProviderSize(p, width) } -// Creates and returns an image object from the contents of CVImageBuffer object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547007-imagewithcvimagebuffer?language=objc -func (ic _ImageClass) ImageWithCVImageBuffer(imageBuffer corevideo.ImageBufferRef) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithCVImageBuffer:"), imageBuffer) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3152398-imagewithcgimagesource?language=objc +func (ic _ImageClass) ImageWithCGImageSourceIndexOptions(source imageio.ImageSourceRef, index uint, dict map[ImageOption]objc.IObject) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithCGImageSource:index:options:"), source, index, dict) return rv } -// Creates and returns an image object from the contents of CVImageBuffer object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547007-imagewithcvimagebuffer?language=objc -func Image_ImageWithCVImageBuffer(imageBuffer corevideo.ImageBufferRef) Image { - return ImageClass.ImageWithCVImageBuffer(imageBuffer) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3152398-imagewithcgimagesource?language=objc +func Image_ImageWithCGImageSourceIndexOptions(source imageio.ImageSourceRef, index uint, dict map[ImageOption]objc.IObject) Image { + return ImageClass.ImageWithCGImageSourceIndexOptions(source, index, dict) } -// Returns a new image created by applying a filter to the original image with the specified name and parameters. [Full Topic] +// Returns a new image created by color matching from the context’s working color space to the specified color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437589-imagebyapplyingfilter?language=objc -func (i_ Image) ImageByApplyingFilterWithInputParameters(filterName string, params map[string]objc.IObject) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByApplyingFilter:withInputParameters:"), filterName, params) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645898-imagebycolormatchingworkingspace?language=objc +func (i_ Image) ImageByColorMatchingWorkingSpaceToColorSpace(colorSpace coregraphics.ColorSpaceRef) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByColorMatchingWorkingSpaceToColorSpace:"), colorSpace) return rv } -// Creates and returns an image object from the contents of a file, using the specified options. [Full Topic] +// The affine transform for changing the image to the given orientation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1546997-imagewithcontentsofurl?language=objc -func (ic _ImageClass) ImageWithContentsOfURLOptions(url foundation.IURL, options map[ImageOption]objc.IObject) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithContentsOfURL:options:"), url, options) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2919726-imagetransformforcgorientation?language=objc +func (i_ Image) ImageTransformForCGOrientation(orientation imageio.ImagePropertyOrientation) coregraphics.AffineTransform { + rv := objc.Call[coregraphics.AffineTransform](i_, objc.Sel("imageTransformForCGOrientation:"), orientation) return rv } -// Creates and returns an image object from the contents of a file, using the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1546997-imagewithcontentsofurl?language=objc -func Image_ImageWithContentsOfURLOptions(url foundation.IURL, options map[ImageOption]objc.IObject) Image { - return ImageClass.ImageWithContentsOfURLOptions(url, options) -} - -// Returns all possible automatically selected and configured filters for adjusting the image. [Full Topic] +// Transforms the original image by a given CGImagePropertyOrientation and returns the result. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645889-autoadjustmentfilters?language=objc -func (i_ Image) AutoAdjustmentFilters() []Filter { - rv := objc.Call[[]Filter](i_, objc.Sel("autoAdjustmentFilters")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2919727-imagebyapplyingcgorientation?language=objc +func (i_ Image) ImageByApplyingCGOrientation(orientation imageio.ImagePropertyOrientation) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByApplyingCGOrientation:"), orientation) return rv } -// Returns the region of interest for the filter chain that generates the image. [Full Topic] +// Creates and returns an image object from a Quartz 2D image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437994-regionofinterestforimage?language=objc -func (i_ Image) RegionOfInterestForImageInRect(image IImage, rect coregraphics.Rect) coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](i_, objc.Sel("regionOfInterestForImage:inRect:"), image, rect) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547025-imagewithcgimage?language=objc +func (ic _ImageClass) ImageWithCGImage(image coregraphics.ImageRef) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithCGImage:"), image) return rv } -// Returns the transformation needed to reorient the image to the specified orientation. [Full Topic] +// Creates and returns an image object from a Quartz 2D image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437930-imagetransformfororientation?language=objc -func (i_ Image) ImageTransformForOrientation(orientation int) coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](i_, objc.Sel("imageTransformForOrientation:"), orientation) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547025-imagewithcgimage?language=objc +func Image_ImageWithCGImage(image coregraphics.ImageRef) Image { + return ImageClass.ImageWithCGImage(image) } // Applies the filter to an image and returns the output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2915368-imagebyapplyingfilter?language=objc -func (i_ Image) ImageByApplyingFilter(filterName string) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByApplyingFilter:"), filterName) - return rv -} - -// Returns a new image created by transforming the original image to the specified EXIF orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438223-imagebyapplyingorientation?language=objc -func (i_ Image) ImageByApplyingOrientation(orientation int) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByApplyingOrientation:"), orientation) - return rv -} - -// Returns a new image with a cropped portion of the original image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437833-imagebycroppingtorect?language=objc -func (i_ Image) ImageByCroppingToRect(rect coregraphics.Rect) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByCroppingToRect:"), rect) - return rv -} - -// Returns a new image created by setting all alpha values to 1.0 within the specified rectangle and to 0.0 outside of that area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645891-imagebysettingalphaoneinextent?language=objc -func (i_ Image) ImageBySettingAlphaOneInExtent(extent coregraphics.Rect) Image { - rv := objc.Call[Image](i_, objc.Sel("imageBySettingAlphaOneInExtent:"), extent) - return rv -} - -// Returns a new image created by multiplying the image’s RGB values by its alpha values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645894-imagebypremultiplyingalpha?language=objc -func (i_ Image) ImageByPremultiplyingAlpha() Image { - rv := objc.Call[Image](i_, objc.Sel("imageByPremultiplyingAlpha")) - return rv -} - -// Creates and returns an image object from the contents of CVPixelBuffer object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547005-imagewithcvpixelbuffer?language=objc -func (ic _ImageClass) ImageWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithCVPixelBuffer:"), pixelBuffer) +func (i_ Image) ImageByApplyingFilter(filterName string) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByApplyingFilter:"), filterName) return rv } -// Creates and returns an image object from the contents of CVPixelBuffer object. [Full Topic] +// Returns a new image created by inserting an intermediate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547005-imagewithcvpixelbuffer?language=objc -func Image_ImageWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { - return ImageClass.ImageWithCVPixelBuffer(pixelBuffer) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2966521-imagebyinsertingintermediate?language=objc +func (i_ Image) ImageByInsertingIntermediate() Image { + rv := objc.Call[Image](i_, objc.Sel("imageByInsertingIntermediate")) + return rv } -// Creates and returns an image object from the contents of a file. [Full Topic] +// Creates and returns an empty image object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547027-imagewithcontentsofurl?language=objc -func (ic _ImageClass) ImageWithContentsOfURL(url foundation.IURL) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithContentsOfURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438023-emptyimage?language=objc +func (ic _ImageClass) EmptyImage() Image { + rv := objc.Call[Image](ic, objc.Sel("emptyImage")) return rv } -// Creates and returns an image object from the contents of a file. [Full Topic] +// Creates and returns an empty image object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547027-imagewithcontentsofurl?language=objc -func Image_ImageWithContentsOfURL(url foundation.IURL) Image { - return ImageClass.ImageWithContentsOfURL(url) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438023-emptyimage?language=objc +func Image_EmptyImage() Image { + return ImageClass.EmptyImage() } // Returns a new image created by adding the specified metadata properties to the image. [Full Topic] @@ -795,104 +561,122 @@ func (i_ Image) ImageBySettingProperties(properties foundation.Dictionary) Image return rv } -// Draws all or part of the image at the specified point in the current coordinate system. [Full Topic] +// Returns a new image created by multiplying the image’s RGB values by its alpha values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1534432-drawatpoint?language=objc -func (i_ Image) DrawAtPointFromRectOperationFraction(point foundation.Point, fromRect foundation.Rect, op objc.IObject, delta float64) { - objc.Call[objc.Void](i_, objc.Sel("drawAtPoint:fromRect:operation:fraction:"), point, fromRect, op, delta) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645894-imagebypremultiplyingalpha?language=objc +func (i_ Image) ImageByPremultiplyingAlpha() Image { + rv := objc.Call[Image](i_, objc.Sel("imageByPremultiplyingAlpha")) + return rv } -// Returns a new image created by inserting an intermediate. [Full Topic] +// Returns all possible automatically selected and configured filters for adjusting the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/2966521-imagebyinsertingintermediate?language=objc -func (i_ Image) ImageByInsertingIntermediate() Image { - rv := objc.Call[Image](i_, objc.Sel("imageByInsertingIntermediate")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645889-autoadjustmentfilters?language=objc +func (i_ Image) AutoAdjustmentFilters() []Filter { + rv := objc.Call[[]Filter](i_, objc.Sel("autoAdjustmentFilters")) return rv } -// Creates and returns an image object initialized with the supplied image data. [Full Topic] +// Returns a new image with a cropped portion of the original image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547029-imagewithdata?language=objc -func (ic _ImageClass) ImageWithData(data []byte) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithData:"), data) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437833-imagebycroppingtorect?language=objc +func (i_ Image) ImageByCroppingToRect(rect coregraphics.Rect) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByCroppingToRect:"), rect) return rv } -// Creates and returns an image object initialized with the supplied image data. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547029-imagewithdata?language=objc -func Image_ImageWithData(data []byte) Image { - return ImageClass.ImageWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3334939-imagebyapplyingtransform?language=objc +func (i_ Image) ImageByApplyingTransformHighQualityDownsample(matrix coregraphics.AffineTransform, highQualityDownsample bool) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByApplyingTransform:highQualityDownsample:"), matrix, highQualityDownsample) + return rv } -// Creates and returns an image object initialized with data provided by an image provider. [Full Topic] +// Creates and returns an image object from bitmap data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1579115-imagewithimageprovider?language=objc -func (ic _ImageClass) ImageWithImageProviderSize(p objc.IObject, width uint) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithImageProvider:size:"), p, width) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547023-imagewithbitmapdata?language=objc +func (ic _ImageClass) ImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPerRow uint, size coregraphics.Size, format Format, colorSpace coregraphics.ColorSpaceRef) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithBitmapData:bytesPerRow:size:format:colorSpace:"), data, bytesPerRow, size, format, colorSpace) return rv } -// Creates and returns an image object initialized with data provided by an image provider. [Full Topic] +// Creates and returns an image object from bitmap data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1579115-imagewithimageprovider?language=objc -func Image_ImageWithImageProviderSize(p objc.IObject, width uint) Image { - return ImageClass.ImageWithImageProviderSize(p, width) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547023-imagewithbitmapdata?language=objc +func Image_ImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPerRow uint, size coregraphics.Size, format Format, colorSpace coregraphics.ColorSpaceRef) Image { + return ImageClass.ImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data, bytesPerRow, size, format, colorSpace) } -// [Full Topic] +// Returns a new image created by transforming the original image to the specified EXIF orientation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074421-blackimage?language=objc -func (ic _ImageClass) BlackImage() Image { - rv := objc.Call[Image](ic, objc.Sel("blackImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438223-imagebyapplyingorientation?language=objc +func (i_ Image) ImageByApplyingOrientation(orientation int) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByApplyingOrientation:"), orientation) return rv } -// [Full Topic] +// Returns the region of interest for the filter chain that generates the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074421-blackimage?language=objc -func Image_BlackImage() Image { - return ImageClass.BlackImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437994-regionofinterestforimage?language=objc +func (i_ Image) RegionOfInterestForImageInRect(image IImage, rect coregraphics.Rect) coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](i_, objc.Sel("regionOfInterestForImage:inRect:"), image, rect) + return rv } -// [Full Topic] +// Creates and returns an image object from the contents of CVPixelBuffer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074429-whiteimage?language=objc -func (ic _ImageClass) WhiteImage() Image { - rv := objc.Call[Image](ic, objc.Sel("whiteImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547005-imagewithcvpixelbuffer?language=objc +func (ic _ImageClass) ImageWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithCVPixelBuffer:"), pixelBuffer) return rv } -// [Full Topic] +// Creates and returns an image object from the contents of CVPixelBuffer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074429-whiteimage?language=objc -func Image_WhiteImage() Image { - return ImageClass.WhiteImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547005-imagewithcvpixelbuffer?language=objc +func Image_ImageWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { + return ImageClass.ImageWithCVPixelBuffer(pixelBuffer) +} + +// The CoreGraphics image object this image was created from, if applicable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1687603-cgimage?language=objc +func (i_ Image) CGImage() coregraphics.ImageRef { + rv := objc.Call[coregraphics.ImageRef](i_, objc.Sel("CGImage")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074428-redimage?language=objc -func (ic _ImageClass) RedImage() Image { - rv := objc.Call[Image](ic, objc.Sel("redImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074424-cyanimage?language=objc +func (ic _ImageClass) CyanImage() Image { + rv := objc.Call[Image](ic, objc.Sel("cyanImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074428-redimage?language=objc -func Image_RedImage() Image { - return ImageClass.RedImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074424-cyanimage?language=objc +func Image_CyanImage() Image { + return ImageClass.CyanImage() } -// The color space of the image. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437750-colorspace?language=objc -func (i_ Image) ColorSpace() coregraphics.ColorSpaceRef { - rv := objc.Call[coregraphics.ColorSpaceRef](i_, objc.Sel("colorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074422-blueimage?language=objc +func (ic _ImageClass) BlueImage() Image { + rv := objc.Call[Image](ic, objc.Sel("blueImage")) return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074422-blueimage?language=objc +func Image_BlueImage() Image { + return ImageClass.BlueImage() +} + // A dictionary containing metadata about the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437733-properties?language=objc @@ -903,17 +687,17 @@ func (i_ Image) Properties() map[string]objc.Object { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074430-yellowimage?language=objc -func (ic _ImageClass) YellowImage() Image { - rv := objc.Call[Image](ic, objc.Sel("yellowImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074428-redimage?language=objc +func (ic _ImageClass) RedImage() Image { + rv := objc.Call[Image](ic, objc.Sel("redImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074430-yellowimage?language=objc -func Image_YellowImage() Image { - return ImageClass.YellowImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074428-redimage?language=objc +func Image_RedImage() Image { + return ImageClass.RedImage() } // The CoreVideo pixel buffer this image was created from, if applicable. [Full Topic] @@ -924,6 +708,14 @@ func (i_ Image) PixelBuffer() corevideo.PixelBufferRef { return rv } +// The color space of the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437750-colorspace?language=objc +func (i_ Image) ColorSpace() coregraphics.ColorSpaceRef { + rv := objc.Call[coregraphics.ColorSpaceRef](i_, objc.Sel("colorSpace")) + return rv +} + // The URL from which the image was loaded. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1438195-url?language=objc @@ -934,17 +726,17 @@ func (i_ Image) Url() foundation.URL { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074422-blueimage?language=objc -func (ic _ImageClass) BlueImage() Image { - rv := objc.Call[Image](ic, objc.Sel("blueImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074423-clearimage?language=objc +func (ic _ImageClass) ClearImage() Image { + rv := objc.Call[Image](ic, objc.Sel("clearImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074422-blueimage?language=objc -func Image_BlueImage() Image { - return ImageClass.BlueImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074423-clearimage?language=objc +func Image_ClearImage() Image { + return ImageClass.ClearImage() } // [Full Topic] @@ -964,63 +756,55 @@ func Image_GreenImage() Image { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074424-cyanimage?language=objc -func (ic _ImageClass) CyanImage() Image { - rv := objc.Call[Image](ic, objc.Sel("cyanImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074430-yellowimage?language=objc +func (ic _ImageClass) YellowImage() Image { + rv := objc.Call[Image](ic, objc.Sel("yellowImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074424-cyanimage?language=objc -func Image_CyanImage() Image { - return ImageClass.CyanImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074430-yellowimage?language=objc +func Image_YellowImage() Image { + return ImageClass.YellowImage() } -// The CoreGraphics image object this image was created from, if applicable. [Full Topic] +// A rectangle that specifies the extent of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1687603-cgimage?language=objc -func (i_ Image) CGImage() coregraphics.ImageRef { - rv := objc.Call[coregraphics.ImageRef](i_, objc.Sel("CGImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437996-extent?language=objc +func (i_ Image) Extent() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](i_, objc.Sel("extent")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074423-clearimage?language=objc -func (ic _ImageClass) ClearImage() Image { - rv := objc.Call[Image](ic, objc.Sel("clearImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074421-blackimage?language=objc +func (ic _ImageClass) BlackImage() Image { + rv := objc.Call[Image](ic, objc.Sel("blackImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074423-clearimage?language=objc -func Image_ClearImage() Image { - return ImageClass.ClearImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074421-blackimage?language=objc +func Image_BlackImage() Image { + return ImageClass.BlackImage() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074427-magentaimage?language=objc -func (ic _ImageClass) MagentaImage() Image { - rv := objc.Call[Image](ic, objc.Sel("magentaImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074425-grayimage?language=objc +func (ic _ImageClass) GrayImage() Image { + rv := objc.Call[Image](ic, objc.Sel("grayImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074427-magentaimage?language=objc -func Image_MagentaImage() Image { - return ImageClass.MagentaImage() -} - -// A rectangle that specifies the extent of the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437996-extent?language=objc -func (i_ Image) Extent() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](i_, objc.Sel("extent")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074425-grayimage?language=objc +func Image_GrayImage() Image { + return ImageClass.GrayImage() } // Returns a filter shape object that represents the domain of definition of the image. [Full Topic] @@ -1033,15 +817,30 @@ func (i_ Image) Definition() FilterShape { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074425-grayimage?language=objc -func (ic _ImageClass) GrayImage() Image { - rv := objc.Call[Image](ic, objc.Sel("grayImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074427-magentaimage?language=objc +func (ic _ImageClass) MagentaImage() Image { + rv := objc.Call[Image](ic, objc.Sel("magentaImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074425-grayimage?language=objc -func Image_GrayImage() Image { - return ImageClass.GrayImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074427-magentaimage?language=objc +func Image_MagentaImage() Image { + return ImageClass.MagentaImage() +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074429-whiteimage?language=objc +func (ic _ImageClass) WhiteImage() Image { + rv := objc.Call[Image](ic, objc.Sel("whiteImage")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074429-whiteimage?language=objc +func Image_WhiteImage() Image { + return ImageClass.WhiteImage() } diff --git a/macos/coreimage/image_accumulator.gen.go b/macos/coreimage/image_accumulator.gen.go index 2d5950b7..7952b726 100644 --- a/macos/coreimage/image_accumulator.gen.go +++ b/macos/coreimage/image_accumulator.gen.go @@ -19,12 +19,11 @@ type _ImageAccumulatorClass struct { // An interface definition for the [ImageAccumulator] class. type IImageAccumulator interface { objc.IObject - Image() Image SetImage(image IImage) - SetImageDirtyRect(image IImage, dirtyRect coregraphics.Rect) Clear() - Format() Format + Image() Image Extent() coregraphics.Rect + Format() Format } // An object that manages feedback-based image processing for tasks such as painting or fluid simulation. [Full Topic] @@ -40,32 +39,20 @@ func ImageAccumulatorFrom(ptr unsafe.Pointer) ImageAccumulator { } } -func (i_ ImageAccumulator) InitWithExtentFormatColorSpace(extent coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef) ImageAccumulator { - rv := objc.Call[ImageAccumulator](i_, objc.Sel("initWithExtent:format:colorSpace:"), extent, format, colorSpace) +func (i_ ImageAccumulator) InitWithExtentFormat(extent coregraphics.Rect, format Format) ImageAccumulator { + rv := objc.Call[ImageAccumulator](i_, objc.Sel("initWithExtent:format:"), extent, format) return rv } -// Initializes an image accumulator with the specified extent, pixel format, and color space. [Full Topic] +// Initializes an image accumulator with the specified extent and pixel format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427710-initwithextent?language=objc -func NewImageAccumulatorWithExtentFormatColorSpace(extent coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef) ImageAccumulator { - instance := ImageAccumulatorClass.Alloc().InitWithExtentFormatColorSpace(extent, format, colorSpace) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427718-initwithextent?language=objc +func NewImageAccumulatorWithExtentFormat(extent coregraphics.Rect, format Format) ImageAccumulator { + instance := ImageAccumulatorClass.Alloc().InitWithExtentFormat(extent, format) instance.Autorelease() return instance } -func (ic _ImageAccumulatorClass) ImageAccumulatorWithExtentFormatColorSpace(extent coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef) ImageAccumulator { - rv := objc.Call[ImageAccumulator](ic, objc.Sel("imageAccumulatorWithExtent:format:colorSpace:"), extent, format, colorSpace) - return rv -} - -// Creates an image accumulator with the specified extent, pixel format, and color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427712-imageaccumulatorwithextent?language=objc -func ImageAccumulator_ImageAccumulatorWithExtentFormatColorSpace(extent coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef) ImageAccumulator { - return ImageAccumulatorClass.ImageAccumulatorWithExtentFormatColorSpace(extent, format, colorSpace) -} - func (ic _ImageAccumulatorClass) ImageAccumulatorWithExtentFormat(extent coregraphics.Rect, format Format) ImageAccumulator { rv := objc.Call[ImageAccumulator](ic, objc.Sel("imageAccumulatorWithExtent:format:"), extent, format) return rv @@ -78,20 +65,6 @@ func ImageAccumulator_ImageAccumulatorWithExtentFormat(extent coregraphics.Rect, return ImageAccumulatorClass.ImageAccumulatorWithExtentFormat(extent, format) } -func (i_ ImageAccumulator) InitWithExtentFormat(extent coregraphics.Rect, format Format) ImageAccumulator { - rv := objc.Call[ImageAccumulator](i_, objc.Sel("initWithExtent:format:"), extent, format) - return rv -} - -// Initializes an image accumulator with the specified extent and pixel format. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427718-initwithextent?language=objc -func NewImageAccumulatorWithExtentFormat(extent coregraphics.Rect, format Format) ImageAccumulator { - instance := ImageAccumulatorClass.Alloc().InitWithExtentFormat(extent, format) - instance.Autorelease() - return instance -} - func (ic _ImageAccumulatorClass) Alloc() ImageAccumulator { rv := objc.Call[ImageAccumulator](ic, objc.Sel("alloc")) return rv @@ -112,14 +85,6 @@ func (i_ ImageAccumulator) Init() ImageAccumulator { return rv } -// Returns the current contents of the image accumulator. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427704-image?language=objc -func (i_ ImageAccumulator) Image() Image { - rv := objc.Call[Image](i_, objc.Sel("image")) - return rv -} - // Sets the contents of the image accumulator to the contents of the specified image object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427702-setimage?language=objc @@ -127,13 +92,6 @@ func (i_ ImageAccumulator) SetImage(image IImage) { objc.Call[objc.Void](i_, objc.Sel("setImage:"), image) } -// Updates an image accumulator with a subregion of an image object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427706-setimage?language=objc -func (i_ ImageAccumulator) SetImageDirtyRect(image IImage, dirtyRect coregraphics.Rect) { - objc.Call[objc.Void](i_, objc.Sel("setImage:dirtyRect:"), image, dirtyRect) -} - // Resets the accumulator, discarding any pending updates and the current content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427720-clear?language=objc @@ -141,11 +99,11 @@ func (i_ ImageAccumulator) Clear() { objc.Call[objc.Void](i_, objc.Sel("clear")) } -// The pixel format of the image accumulator. [Full Topic] +// Returns the current contents of the image accumulator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427716-format?language=objc -func (i_ ImageAccumulator) Format() Format { - rv := objc.Call[Format](i_, objc.Sel("format")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427704-image?language=objc +func (i_ ImageAccumulator) Image() Image { + rv := objc.Call[Image](i_, objc.Sel("image")) return rv } @@ -156,3 +114,11 @@ func (i_ ImageAccumulator) Extent() coregraphics.Rect { rv := objc.Call[coregraphics.Rect](i_, objc.Sel("extent")) return rv } + +// The pixel format of the image accumulator. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageaccumulator/1427716-format?language=objc +func (i_ ImageAccumulator) Format() Format { + rv := objc.Call[Format](i_, objc.Sel("format")) + return rv +} diff --git a/macos/coreimage/image_processor_input_protocol.gen.go b/macos/coreimage/image_processor_input_protocol.gen.go index 2556e30d..687cbe93 100644 --- a/macos/coreimage/image_processor_input_protocol.gen.go +++ b/macos/coreimage/image_processor_input_protocol.gen.go @@ -17,32 +17,32 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput?language=objc type PImageProcessorInput interface { // optional - BytesPerRow() uint - HasBytesPerRow() bool - - // optional - Region() coregraphics.Rect - HasRegion() bool + Surface() iosurface.Ref + HasSurface() bool // optional MetalTexture() metal.TextureObject HasMetalTexture() bool - // optional - Format() Format - HasFormat() bool - // optional PixelBuffer() corevideo.PixelBufferRef HasPixelBuffer() bool + // optional + BytesPerRow() uint + HasBytesPerRow() bool + // optional BaseAddress() unsafe.Pointer HasBaseAddress() bool // optional - Surface() iosurface.Ref - HasSurface() bool + Region() coregraphics.Rect + HasRegion() bool + + // optional + Format() Format + HasFormat() bool } // ensure impl type implements protocol interface @@ -53,27 +53,15 @@ type ImageProcessorInputObject struct { objc.Object } -func (i_ ImageProcessorInputObject) HasBytesPerRow() bool { - return i_.RespondsToSelector(objc.Sel("bytesPerRow")) -} - -// The number of bytes per row of pixels in the input image data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639655-bytesperrow?language=objc -func (i_ ImageProcessorInputObject) BytesPerRow() uint { - rv := objc.Call[uint](i_, objc.Sel("bytesPerRow")) - return rv -} - -func (i_ ImageProcessorInputObject) HasRegion() bool { - return i_.RespondsToSelector(objc.Sel("region")) +func (i_ ImageProcessorInputObject) HasSurface() bool { + return i_.RespondsToSelector(objc.Sel("surface")) } -// The area within the input image to be processed. [Full Topic] +// An IOSurface object containing the image data to be processed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639633-region?language=objc -func (i_ ImageProcessorInputObject) Region() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](i_, objc.Sel("region")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639657-surface?language=objc +func (i_ ImageProcessorInputObject) Surface() iosurface.Ref { + rv := objc.Call[iosurface.Ref](i_, objc.Sel("surface")) return rv } @@ -89,18 +77,6 @@ func (i_ ImageProcessorInputObject) MetalTexture() metal.TextureObject { return rv } -func (i_ ImageProcessorInputObject) HasFormat() bool { - return i_.RespondsToSelector(objc.Sel("format")) -} - -// The per-pixel data format of the image to be processed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639639-format?language=objc -func (i_ ImageProcessorInputObject) Format() Format { - rv := objc.Call[Format](i_, objc.Sel("format")) - return rv -} - func (i_ ImageProcessorInputObject) HasPixelBuffer() bool { return i_.RespondsToSelector(objc.Sel("pixelBuffer")) } @@ -113,6 +89,18 @@ func (i_ ImageProcessorInputObject) PixelBuffer() corevideo.PixelBufferRef { return rv } +func (i_ ImageProcessorInputObject) HasBytesPerRow() bool { + return i_.RespondsToSelector(objc.Sel("bytesPerRow")) +} + +// The number of bytes per row of pixels in the input image data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639655-bytesperrow?language=objc +func (i_ ImageProcessorInputObject) BytesPerRow() uint { + rv := objc.Call[uint](i_, objc.Sel("bytesPerRow")) + return rv +} + func (i_ ImageProcessorInputObject) HasBaseAddress() bool { return i_.RespondsToSelector(objc.Sel("baseAddress")) } @@ -125,14 +113,26 @@ func (i_ ImageProcessorInputObject) BaseAddress() unsafe.Pointer { return rv } -func (i_ ImageProcessorInputObject) HasSurface() bool { - return i_.RespondsToSelector(objc.Sel("surface")) +func (i_ ImageProcessorInputObject) HasRegion() bool { + return i_.RespondsToSelector(objc.Sel("region")) } -// An IOSurface object containing the image data to be processed. [Full Topic] +// The area within the input image to be processed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639657-surface?language=objc -func (i_ ImageProcessorInputObject) Surface() iosurface.Ref { - rv := objc.Call[iosurface.Ref](i_, objc.Sel("surface")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639633-region?language=objc +func (i_ ImageProcessorInputObject) Region() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](i_, objc.Sel("region")) + return rv +} + +func (i_ ImageProcessorInputObject) HasFormat() bool { + return i_.RespondsToSelector(objc.Sel("format")) +} + +// The per-pixel data format of the image to be processed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639639-format?language=objc +func (i_ ImageProcessorInputObject) Format() Format { + rv := objc.Call[Format](i_, objc.Sel("format")) return rv } diff --git a/macos/coreimage/image_processor_kernel.gen.go b/macos/coreimage/image_processor_kernel.gen.go index 546c1138..ddf076fc 100644 --- a/macos/coreimage/image_processor_kernel.gen.go +++ b/macos/coreimage/image_processor_kernel.gen.go @@ -69,36 +69,6 @@ func ImageProcessorKernel_RoiForInputArgumentsOutputRect(input int, arguments ma return ImageProcessorKernelClass.RoiForInputArgumentsOutputRect(input, arguments, outputRect) } -// Method to override for returning the image processing kernel's input pixel format. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel/2138289-formatforinputatindex?language=objc -func (ic _ImageProcessorKernelClass) FormatForInputAtIndex(input int) Format { - rv := objc.Call[Format](ic, objc.Sel("formatForInputAtIndex:"), input) - return rv -} - -// Method to override for returning the image processing kernel's input pixel format. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel/2138289-formatforinputatindex?language=objc -func ImageProcessorKernel_FormatForInputAtIndex(input int) Format { - return ImageProcessorKernelClass.FormatForInputAtIndex(input) -} - -// Method to override when applying a custom image processor kernel to an image and returning the result. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel/2138284-applywithextent?language=objc -func (ic _ImageProcessorKernelClass) ApplyWithExtentInputsArgumentsError(extent coregraphics.Rect, inputs []IImage, args map[string]objc.IObject, error unsafe.Pointer) Image { - rv := objc.Call[Image](ic, objc.Sel("applyWithExtent:inputs:arguments:error:"), extent, inputs, args, error) - return rv -} - -// Method to override when applying a custom image processor kernel to an image and returning the result. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel/2138284-applywithextent?language=objc -func ImageProcessorKernel_ApplyWithExtentInputsArgumentsError(extent coregraphics.Rect, inputs []IImage, args map[string]objc.IObject, error unsafe.Pointer) Image { - return ImageProcessorKernelClass.ApplyWithExtentInputsArgumentsError(extent, inputs, args, error) -} - // Method to override for customizing the kernel's image processing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel/2138290-processwithinputs?language=objc @@ -130,6 +100,36 @@ func ImageProcessorKernel_ProcessWithInputsArgumentsOutputObjectError(inputs []P return ImageProcessorKernelClass.ProcessWithInputsArgumentsOutputObjectError(inputs, arguments, outputObject, error) } +// Method to override for returning the image processing kernel's input pixel format. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel/2138289-formatforinputatindex?language=objc +func (ic _ImageProcessorKernelClass) FormatForInputAtIndex(input int) Format { + rv := objc.Call[Format](ic, objc.Sel("formatForInputAtIndex:"), input) + return rv +} + +// Method to override for returning the image processing kernel's input pixel format. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel/2138289-formatforinputatindex?language=objc +func ImageProcessorKernel_FormatForInputAtIndex(input int) Format { + return ImageProcessorKernelClass.FormatForInputAtIndex(input) +} + +// Method to override when applying a custom image processor kernel to an image and returning the result. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel/2138284-applywithextent?language=objc +func (ic _ImageProcessorKernelClass) ApplyWithExtentInputsArgumentsError(extent coregraphics.Rect, inputs []IImage, args map[string]objc.IObject, error unsafe.Pointer) Image { + rv := objc.Call[Image](ic, objc.Sel("applyWithExtent:inputs:arguments:error:"), extent, inputs, args, error) + return rv +} + +// Method to override when applying a custom image processor kernel to an image and returning the result. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel/2138284-applywithextent?language=objc +func ImageProcessorKernel_ApplyWithExtentInputsArgumentsError(extent coregraphics.Rect, inputs []IImage, args map[string]objc.IObject, error unsafe.Pointer) Image { + return ImageProcessorKernelClass.ApplyWithExtentInputsArgumentsError(extent, inputs, args, error) +} + // The processor's output pixel format. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorkernel/2143065-outputformat?language=objc diff --git a/macos/coreimage/image_processor_output_protocol.gen.go b/macos/coreimage/image_processor_output_protocol.gen.go index 209d0549..66c46399 100644 --- a/macos/coreimage/image_processor_output_protocol.gen.go +++ b/macos/coreimage/image_processor_output_protocol.gen.go @@ -17,36 +17,36 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput?language=objc type PImageProcessorOutput interface { // optional - BytesPerRow() uint - HasBytesPerRow() bool + Surface() iosurface.Ref + HasSurface() bool // optional - BaseAddress() unsafe.Pointer - HasBaseAddress() bool + MetalTexture() metal.TextureObject + HasMetalTexture() bool // optional - Format() Format - HasFormat() bool + MetalCommandBuffer() metal.CommandBufferObject + HasMetalCommandBuffer() bool // optional PixelBuffer() corevideo.PixelBufferRef HasPixelBuffer() bool // optional - MetalCommandBuffer() metal.CommandBufferObject - HasMetalCommandBuffer() bool - - // optional - Surface() iosurface.Ref - HasSurface() bool + BytesPerRow() uint + HasBytesPerRow() bool // optional - MetalTexture() metal.TextureObject - HasMetalTexture() bool + BaseAddress() unsafe.Pointer + HasBaseAddress() bool // optional Region() coregraphics.Rect HasRegion() bool + + // optional + Format() Format + HasFormat() bool } // ensure impl type implements protocol interface @@ -57,39 +57,39 @@ type ImageProcessorOutputObject struct { objc.Object } -func (i_ ImageProcessorOutputObject) HasBytesPerRow() bool { - return i_.RespondsToSelector(objc.Sel("bytesPerRow")) +func (i_ ImageProcessorOutputObject) HasSurface() bool { + return i_.RespondsToSelector(objc.Sel("surface")) } -// The number of bytes per row of pixels for the output image. [Full Topic] +// An IOSurface object to which you can write output pixel data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639635-bytesperrow?language=objc -func (i_ ImageProcessorOutputObject) BytesPerRow() uint { - rv := objc.Call[uint](i_, objc.Sel("bytesPerRow")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639627-surface?language=objc +func (i_ ImageProcessorOutputObject) Surface() iosurface.Ref { + rv := objc.Call[iosurface.Ref](i_, objc.Sel("surface")) return rv } -func (i_ ImageProcessorOutputObject) HasBaseAddress() bool { - return i_.RespondsToSelector(objc.Sel("baseAddress")) +func (i_ ImageProcessorOutputObject) HasMetalTexture() bool { + return i_.RespondsToSelector(objc.Sel("metalTexture")) } -// A pointer to CPU memory at which to write output pixel data. [Full Topic] +// A Metal texture to which you can write output pixel data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639626-baseaddress?language=objc -func (i_ ImageProcessorOutputObject) BaseAddress() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](i_, objc.Sel("baseAddress")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639631-metaltexture?language=objc +func (i_ ImageProcessorOutputObject) MetalTexture() metal.TextureObject { + rv := objc.Call[metal.TextureObject](i_, objc.Sel("metalTexture")) return rv } -func (i_ ImageProcessorOutputObject) HasFormat() bool { - return i_.RespondsToSelector(objc.Sel("format")) +func (i_ ImageProcessorOutputObject) HasMetalCommandBuffer() bool { + return i_.RespondsToSelector(objc.Sel("metalCommandBuffer")) } -// The per-pixel data format expected of the output image. [Full Topic] +// A command buffer to use for image processing using Metal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639628-format?language=objc -func (i_ ImageProcessorOutputObject) Format() Format { - rv := objc.Call[Format](i_, objc.Sel("format")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639641-metalcommandbuffer?language=objc +func (i_ ImageProcessorOutputObject) MetalCommandBuffer() metal.CommandBufferObject { + rv := objc.Call[metal.CommandBufferObject](i_, objc.Sel("metalCommandBuffer")) return rv } @@ -105,39 +105,27 @@ func (i_ ImageProcessorOutputObject) PixelBuffer() corevideo.PixelBufferRef { return rv } -func (i_ ImageProcessorOutputObject) HasMetalCommandBuffer() bool { - return i_.RespondsToSelector(objc.Sel("metalCommandBuffer")) -} - -// A command buffer to use for image processing using Metal. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639641-metalcommandbuffer?language=objc -func (i_ ImageProcessorOutputObject) MetalCommandBuffer() metal.CommandBufferObject { - rv := objc.Call[metal.CommandBufferObject](i_, objc.Sel("metalCommandBuffer")) - return rv -} - -func (i_ ImageProcessorOutputObject) HasSurface() bool { - return i_.RespondsToSelector(objc.Sel("surface")) +func (i_ ImageProcessorOutputObject) HasBytesPerRow() bool { + return i_.RespondsToSelector(objc.Sel("bytesPerRow")) } -// An IOSurface object to which you can write output pixel data. [Full Topic] +// The number of bytes per row of pixels for the output image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639627-surface?language=objc -func (i_ ImageProcessorOutputObject) Surface() iosurface.Ref { - rv := objc.Call[iosurface.Ref](i_, objc.Sel("surface")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639635-bytesperrow?language=objc +func (i_ ImageProcessorOutputObject) BytesPerRow() uint { + rv := objc.Call[uint](i_, objc.Sel("bytesPerRow")) return rv } -func (i_ ImageProcessorOutputObject) HasMetalTexture() bool { - return i_.RespondsToSelector(objc.Sel("metalTexture")) +func (i_ ImageProcessorOutputObject) HasBaseAddress() bool { + return i_.RespondsToSelector(objc.Sel("baseAddress")) } -// A Metal texture to which you can write output pixel data. [Full Topic] +// A pointer to CPU memory at which to write output pixel data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639631-metaltexture?language=objc -func (i_ ImageProcessorOutputObject) MetalTexture() metal.TextureObject { - rv := objc.Call[metal.TextureObject](i_, objc.Sel("metalTexture")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639626-baseaddress?language=objc +func (i_ ImageProcessorOutputObject) BaseAddress() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](i_, objc.Sel("baseAddress")) return rv } @@ -152,3 +140,15 @@ func (i_ ImageProcessorOutputObject) Region() coregraphics.Rect { rv := objc.Call[coregraphics.Rect](i_, objc.Sel("region")) return rv } + +func (i_ ImageProcessorOutputObject) HasFormat() bool { + return i_.RespondsToSelector(objc.Sel("format")) +} + +// The per-pixel data format expected of the output image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639628-format?language=objc +func (i_ ImageProcessorOutputObject) Format() Format { + rv := objc.Call[Format](i_, objc.Sel("format")) + return rv +} diff --git a/macos/coreimage/k_means_protocol.gen.go b/macos/coreimage/k_means_protocol.gen.go index 19861f14..a48ced4d 100644 --- a/macos/coreimage/k_means_protocol.gen.go +++ b/macos/coreimage/k_means_protocol.gen.go @@ -26,14 +26,6 @@ type PKMeans interface { Count() int HasCount() bool - // optional - SetPasses(value float32) - HasSetPasses() bool - - // optional - Passes() float32 - HasPasses() bool - // optional SetPerceptual(value bool) HasSetPerceptual() bool @@ -41,6 +33,14 @@ type PKMeans interface { // optional Perceptual() bool HasPerceptual() bool + + // optional + SetPasses(value float32) + HasSetPasses() bool + + // optional + Passes() float32 + HasPasses() bool } // ensure impl type implements protocol interface @@ -97,48 +97,48 @@ func (k_ KMeansObject) Count() int { return rv } -func (k_ KMeansObject) HasSetPasses() bool { - return k_.RespondsToSelector(objc.Sel("setPasses:")) +func (k_ KMeansObject) HasSetPerceptual() bool { + return k_.RespondsToSelector(objc.Sel("setPerceptual:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547132-passes?language=objc -func (k_ KMeansObject) SetPasses(value float32) { - objc.Call[objc.Void](k_, objc.Sel("setPasses:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547133-perceptual?language=objc +func (k_ KMeansObject) SetPerceptual(value bool) { + objc.Call[objc.Void](k_, objc.Sel("setPerceptual:"), value) } -func (k_ KMeansObject) HasPasses() bool { - return k_.RespondsToSelector(objc.Sel("passes")) +func (k_ KMeansObject) HasPerceptual() bool { + return k_.RespondsToSelector(objc.Sel("perceptual")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547132-passes?language=objc -func (k_ KMeansObject) Passes() float32 { - rv := objc.Call[float32](k_, objc.Sel("passes")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547133-perceptual?language=objc +func (k_ KMeansObject) Perceptual() bool { + rv := objc.Call[bool](k_, objc.Sel("perceptual")) return rv } -func (k_ KMeansObject) HasSetPerceptual() bool { - return k_.RespondsToSelector(objc.Sel("setPerceptual:")) +func (k_ KMeansObject) HasSetPasses() bool { + return k_.RespondsToSelector(objc.Sel("setPasses:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547133-perceptual?language=objc -func (k_ KMeansObject) SetPerceptual(value bool) { - objc.Call[objc.Void](k_, objc.Sel("setPerceptual:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547132-passes?language=objc +func (k_ KMeansObject) SetPasses(value float32) { + objc.Call[objc.Void](k_, objc.Sel("setPasses:"), value) } -func (k_ KMeansObject) HasPerceptual() bool { - return k_.RespondsToSelector(objc.Sel("perceptual")) +func (k_ KMeansObject) HasPasses() bool { + return k_.RespondsToSelector(objc.Sel("passes")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547133-perceptual?language=objc -func (k_ KMeansObject) Perceptual() bool { - rv := objc.Call[bool](k_, objc.Sel("perceptual")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547132-passes?language=objc +func (k_ KMeansObject) Passes() float32 { + rv := objc.Call[float32](k_, objc.Sel("passes")) return rv } diff --git a/macos/coreimage/kaleidoscope_protocol.gen.go b/macos/coreimage/kaleidoscope_protocol.gen.go index 46ab9c77..e9634b4e 100644 --- a/macos/coreimage/kaleidoscope_protocol.gen.go +++ b/macos/coreimage/kaleidoscope_protocol.gen.go @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope?language=objc type PKaleidoscope interface { - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - - // optional - SetAngle(value float32) - HasSetAngle() bool - - // optional - Angle() float32 - HasAngle() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -42,6 +26,22 @@ type PKaleidoscope interface { // optional Count() int HasCount() bool + + // optional + SetAngle(value float32) + HasSetAngle() bool + + // optional + Angle() float32 + HasAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,52 +52,6 @@ type KaleidoscopeObject struct { objc.Object } -func (k_ KaleidoscopeObject) HasSetCenter() bool { - return k_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228509-center?language=objc -func (k_ KaleidoscopeObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](k_, objc.Sel("setCenter:"), value) -} - -func (k_ KaleidoscopeObject) HasCenter() bool { - return k_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228509-center?language=objc -func (k_ KaleidoscopeObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](k_, objc.Sel("center")) - return rv -} - -func (k_ KaleidoscopeObject) HasSetAngle() bool { - return k_.RespondsToSelector(objc.Sel("setAngle:")) -} - -// The angle of the reflection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228508-angle?language=objc -func (k_ KaleidoscopeObject) SetAngle(value float32) { - objc.Call[objc.Void](k_, objc.Sel("setAngle:"), value) -} - -func (k_ KaleidoscopeObject) HasAngle() bool { - return k_.RespondsToSelector(objc.Sel("angle")) -} - -// The angle of the reflection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228508-angle?language=objc -func (k_ KaleidoscopeObject) Angle() float32 { - rv := objc.Call[float32](k_, objc.Sel("angle")) - return rv -} - func (k_ KaleidoscopeObject) HasSetInputImage() bool { return k_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -143,3 +97,49 @@ func (k_ KaleidoscopeObject) Count() int { rv := objc.Call[int](k_, objc.Sel("count")) return rv } + +func (k_ KaleidoscopeObject) HasSetAngle() bool { + return k_.RespondsToSelector(objc.Sel("setAngle:")) +} + +// The angle of the reflection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228508-angle?language=objc +func (k_ KaleidoscopeObject) SetAngle(value float32) { + objc.Call[objc.Void](k_, objc.Sel("setAngle:"), value) +} + +func (k_ KaleidoscopeObject) HasAngle() bool { + return k_.RespondsToSelector(objc.Sel("angle")) +} + +// The angle of the reflection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228508-angle?language=objc +func (k_ KaleidoscopeObject) Angle() float32 { + rv := objc.Call[float32](k_, objc.Sel("angle")) + return rv +} + +func (k_ KaleidoscopeObject) HasSetCenter() bool { + return k_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228509-center?language=objc +func (k_ KaleidoscopeObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](k_, objc.Sel("setCenter:"), value) +} + +func (k_ KaleidoscopeObject) HasCenter() bool { + return k_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228509-center?language=objc +func (k_ KaleidoscopeObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](k_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/kernel.gen.go b/macos/coreimage/kernel.gen.go index 153f2e10..4f8c6ed7 100644 --- a/macos/coreimage/kernel.gen.go +++ b/macos/coreimage/kernel.gen.go @@ -19,8 +19,8 @@ type _KernelClass struct { // An interface definition for the [Kernel] class. type IKernel interface { objc.IObject - ApplyWithExtentRoiCallbackArguments(extent coregraphics.Rect, callback KernelROICallback, args []objc.IObject) Image SetROISelector(method objc.Selector) + ApplyWithExtentRoiCallbackArguments(extent coregraphics.Rect, callback KernelROICallback, args []objc.IObject) Image Name() string } @@ -37,18 +37,6 @@ func KernelFrom(ptr unsafe.Pointer) Kernel { } } -func (kc _KernelClass) KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error unsafe.Pointer) Kernel { - rv := objc.Call[Kernel](kc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:error:"), name, data, error) - return rv -} - -// Creates a single kernel object using a Metal Shading Language (MSL) kernel function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/2880194-kernelwithfunctionname?language=objc -func Kernel_KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error unsafe.Pointer) Kernel { - return KernelClass.KernelWithFunctionNameFromMetalLibraryDataError(name, data, error) -} - func (kc _KernelClass) KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name string, data []byte, format Format, error unsafe.Pointer) Kernel { rv := objc.Call[Kernel](kc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:"), name, data, format, error) return rv @@ -81,6 +69,28 @@ func (k_ Kernel) Init() Kernel { return rv } +// Sets the selector Core Image uses to query the region of interest for image processing with the kernel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/1437691-setroiselector?language=objc +func (k_ Kernel) SetROISelector(method objc.Selector) { + objc.Call[objc.Void](k_, objc.Sel("setROISelector:"), method) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/3857565-kernelswithmetalstring?language=objc +func (kc _KernelClass) KernelsWithMetalStringError(source string, error unsafe.Pointer) []Kernel { + rv := objc.Call[[]Kernel](kc, objc.Sel("kernelsWithMetalString:error:"), source, error) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/3857565-kernelswithmetalstring?language=objc +func Kernel_KernelsWithMetalStringError(source string, error unsafe.Pointer) []Kernel { + return KernelClass.KernelsWithMetalStringError(source, error) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/3577535-kernelnamesfrommetallibrarydata?language=objc @@ -104,28 +114,6 @@ func (k_ Kernel) ApplyWithExtentRoiCallbackArguments(extent coregraphics.Rect, c return rv } -// Sets the selector Core Image uses to query the region of interest for image processing with the kernel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/1437691-setroiselector?language=objc -func (k_ Kernel) SetROISelector(method objc.Selector) { - objc.Call[objc.Void](k_, objc.Sel("setROISelector:"), method) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/3857565-kernelswithmetalstring?language=objc -func (kc _KernelClass) KernelsWithMetalStringError(source string, error unsafe.Pointer) []Kernel { - rv := objc.Call[[]Kernel](kc, objc.Sel("kernelsWithMetalString:error:"), source, error) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/3857565-kernelswithmetalstring?language=objc -func Kernel_KernelsWithMetalStringError(source string, error unsafe.Pointer) []Kernel { - return KernelClass.KernelsWithMetalStringError(source, error) -} - // The name of the kernel routine. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/1438067-name?language=objc diff --git a/macos/coreimage/lab_delta_e_protocol.gen.go b/macos/coreimage/lab_delta_e_protocol.gen.go index 3d2a96d4..dd526277 100644 --- a/macos/coreimage/lab_delta_e_protocol.gen.go +++ b/macos/coreimage/lab_delta_e_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae?language=objc type PLabDeltaE interface { - // optional - SetImage2(value Image) - HasSetImage2() bool - - // optional - Image2() Image - HasImage2() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PLabDeltaE interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetImage2(value Image) + HasSetImage2() bool + + // optional + Image2() Image + HasImage2() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type LabDeltaEObject struct { objc.Object } -func (l_ LabDeltaEObject) HasSetImage2() bool { - return l_.RespondsToSelector(objc.Sel("setImage2:")) -} - -// The second input image for comparison. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae/3228513-image2?language=objc -func (l_ LabDeltaEObject) SetImage2(value Image) { - objc.Call[objc.Void](l_, objc.Sel("setImage2:"), value) -} - -func (l_ LabDeltaEObject) HasImage2() bool { - return l_.RespondsToSelector(objc.Sel("image2")) -} - -// The second input image for comparison. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae/3228513-image2?language=objc -func (l_ LabDeltaEObject) Image2() Image { - rv := objc.Call[Image](l_, objc.Sel("image2")) - return rv -} - func (l_ LabDeltaEObject) HasSetInputImage() bool { return l_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (l_ LabDeltaEObject) InputImage() Image { rv := objc.Call[Image](l_, objc.Sel("inputImage")) return rv } + +func (l_ LabDeltaEObject) HasSetImage2() bool { + return l_.RespondsToSelector(objc.Sel("setImage2:")) +} + +// The second input image for comparison. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae/3228513-image2?language=objc +func (l_ LabDeltaEObject) SetImage2(value Image) { + objc.Call[objc.Void](l_, objc.Sel("setImage2:"), value) +} + +func (l_ LabDeltaEObject) HasImage2() bool { + return l_.RespondsToSelector(objc.Sel("image2")) +} + +// The second input image for comparison. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae/3228513-image2?language=objc +func (l_ LabDeltaEObject) Image2() Image { + rv := objc.Call[Image](l_, objc.Sel("image2")) + return rv +} diff --git a/macos/coreimage/lanczos_scale_transform_protocol.gen.go b/macos/coreimage/lanczos_scale_transform_protocol.gen.go index 00c2241a..c740c29a 100644 --- a/macos/coreimage/lanczos_scale_transform_protocol.gen.go +++ b/macos/coreimage/lanczos_scale_transform_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform?language=objc type PLanczosScaleTransform interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool - // optional SetScale(value float32) HasSetScale() bool @@ -26,6 +18,14 @@ type PLanczosScaleTransform interface { Scale() float32 HasScale() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetAspectRatio(value float32) HasSetAspectRatio() bool @@ -43,29 +43,6 @@ type LanczosScaleTransformObject struct { objc.Object } -func (l_ LanczosScaleTransformObject) HasSetInputImage() bool { - return l_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228517-inputimage?language=objc -func (l_ LanczosScaleTransformObject) SetInputImage(value Image) { - objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), value) -} - -func (l_ LanczosScaleTransformObject) HasInputImage() bool { - return l_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228517-inputimage?language=objc -func (l_ LanczosScaleTransformObject) InputImage() Image { - rv := objc.Call[Image](l_, objc.Sel("inputImage")) - return rv -} - func (l_ LanczosScaleTransformObject) HasSetScale() bool { return l_.RespondsToSelector(objc.Sel("setScale:")) } @@ -89,6 +66,29 @@ func (l_ LanczosScaleTransformObject) Scale() float32 { return rv } +func (l_ LanczosScaleTransformObject) HasSetInputImage() bool { + return l_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228517-inputimage?language=objc +func (l_ LanczosScaleTransformObject) SetInputImage(value Image) { + objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), value) +} + +func (l_ LanczosScaleTransformObject) HasInputImage() bool { + return l_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228517-inputimage?language=objc +func (l_ LanczosScaleTransformObject) InputImage() Image { + rv := objc.Call[Image](l_, objc.Sel("inputImage")) + return rv +} + func (l_ LanczosScaleTransformObject) HasSetAspectRatio() bool { return l_.RespondsToSelector(objc.Sel("setAspectRatio:")) } diff --git a/macos/coreimage/lenticular_halo_generator_protocol.gen.go b/macos/coreimage/lenticular_halo_generator_protocol.gen.go index fdd19ed5..1046b0d7 100644 --- a/macos/coreimage/lenticular_halo_generator_protocol.gen.go +++ b/macos/coreimage/lenticular_halo_generator_protocol.gen.go @@ -20,12 +20,12 @@ type PLenticularHaloGenerator interface { HasStriationContrast() bool // optional - SetHaloOverlap(value float32) - HasSetHaloOverlap() bool + SetColor(value Color) + HasSetColor() bool // optional - HaloOverlap() float32 - HasHaloOverlap() bool + Color() Color + HasColor() bool // optional SetHaloRadius(value float32) @@ -36,12 +36,12 @@ type PLenticularHaloGenerator interface { HasHaloRadius() bool // optional - SetStriationStrength(value float32) - HasSetStriationStrength() bool + SetHaloWidth(value float32) + HasSetHaloWidth() bool // optional - StriationStrength() float32 - HasStriationStrength() bool + HaloWidth() float32 + HasHaloWidth() bool // optional SetTime(value float32) @@ -52,20 +52,20 @@ type PLenticularHaloGenerator interface { HasTime() bool // optional - SetHaloWidth(value float32) - HasSetHaloWidth() bool + SetHaloOverlap(value float32) + HasSetHaloOverlap() bool // optional - HaloWidth() float32 - HasHaloWidth() bool + HaloOverlap() float32 + HasHaloOverlap() bool // optional - SetColor(value Color) - HasSetColor() bool + SetStriationStrength(value float32) + HasSetStriationStrength() bool // optional - Color() Color - HasColor() bool + StriationStrength() float32 + HasStriationStrength() bool // optional SetCenter(value coregraphics.Point) @@ -107,26 +107,26 @@ func (l_ LenticularHaloGeneratorObject) StriationContrast() float32 { return rv } -func (l_ LenticularHaloGeneratorObject) HasSetHaloOverlap() bool { - return l_.RespondsToSelector(objc.Sel("setHaloOverlap:")) +func (l_ LenticularHaloGeneratorObject) HasSetColor() bool { + return l_.RespondsToSelector(objc.Sel("setColor:")) } -// The separation of colors in the halo. [Full Topic] +// The color of the halo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228522-halooverlap?language=objc -func (l_ LenticularHaloGeneratorObject) SetHaloOverlap(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setHaloOverlap:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228521-color?language=objc +func (l_ LenticularHaloGeneratorObject) SetColor(value Color) { + objc.Call[objc.Void](l_, objc.Sel("setColor:"), value) } -func (l_ LenticularHaloGeneratorObject) HasHaloOverlap() bool { - return l_.RespondsToSelector(objc.Sel("haloOverlap")) +func (l_ LenticularHaloGeneratorObject) HasColor() bool { + return l_.RespondsToSelector(objc.Sel("color")) } -// The separation of colors in the halo. [Full Topic] +// The color of the halo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228522-halooverlap?language=objc -func (l_ LenticularHaloGeneratorObject) HaloOverlap() float32 { - rv := objc.Call[float32](l_, objc.Sel("haloOverlap")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228521-color?language=objc +func (l_ LenticularHaloGeneratorObject) Color() Color { + rv := objc.Call[Color](l_, objc.Sel("color")) return rv } @@ -153,26 +153,26 @@ func (l_ LenticularHaloGeneratorObject) HaloRadius() float32 { return rv } -func (l_ LenticularHaloGeneratorObject) HasSetStriationStrength() bool { - return l_.RespondsToSelector(objc.Sel("setStriationStrength:")) +func (l_ LenticularHaloGeneratorObject) HasSetHaloWidth() bool { + return l_.RespondsToSelector(objc.Sel("setHaloWidth:")) } -// The intensity of the halo colors. [Full Topic] +// The width of the halo, from its inner radius to its outer radius. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228526-striationstrength?language=objc -func (l_ LenticularHaloGeneratorObject) SetStriationStrength(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setStriationStrength:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228524-halowidth?language=objc +func (l_ LenticularHaloGeneratorObject) SetHaloWidth(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setHaloWidth:"), value) } -func (l_ LenticularHaloGeneratorObject) HasStriationStrength() bool { - return l_.RespondsToSelector(objc.Sel("striationStrength")) +func (l_ LenticularHaloGeneratorObject) HasHaloWidth() bool { + return l_.RespondsToSelector(objc.Sel("haloWidth")) } -// The intensity of the halo colors. [Full Topic] +// The width of the halo, from its inner radius to its outer radius. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228526-striationstrength?language=objc -func (l_ LenticularHaloGeneratorObject) StriationStrength() float32 { - rv := objc.Call[float32](l_, objc.Sel("striationStrength")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228524-halowidth?language=objc +func (l_ LenticularHaloGeneratorObject) HaloWidth() float32 { + rv := objc.Call[float32](l_, objc.Sel("haloWidth")) return rv } @@ -199,49 +199,49 @@ func (l_ LenticularHaloGeneratorObject) Time() float32 { return rv } -func (l_ LenticularHaloGeneratorObject) HasSetHaloWidth() bool { - return l_.RespondsToSelector(objc.Sel("setHaloWidth:")) +func (l_ LenticularHaloGeneratorObject) HasSetHaloOverlap() bool { + return l_.RespondsToSelector(objc.Sel("setHaloOverlap:")) } -// The width of the halo, from its inner radius to its outer radius. [Full Topic] +// The separation of colors in the halo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228524-halowidth?language=objc -func (l_ LenticularHaloGeneratorObject) SetHaloWidth(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setHaloWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228522-halooverlap?language=objc +func (l_ LenticularHaloGeneratorObject) SetHaloOverlap(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setHaloOverlap:"), value) } -func (l_ LenticularHaloGeneratorObject) HasHaloWidth() bool { - return l_.RespondsToSelector(objc.Sel("haloWidth")) +func (l_ LenticularHaloGeneratorObject) HasHaloOverlap() bool { + return l_.RespondsToSelector(objc.Sel("haloOverlap")) } -// The width of the halo, from its inner radius to its outer radius. [Full Topic] +// The separation of colors in the halo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228524-halowidth?language=objc -func (l_ LenticularHaloGeneratorObject) HaloWidth() float32 { - rv := objc.Call[float32](l_, objc.Sel("haloWidth")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228522-halooverlap?language=objc +func (l_ LenticularHaloGeneratorObject) HaloOverlap() float32 { + rv := objc.Call[float32](l_, objc.Sel("haloOverlap")) return rv } -func (l_ LenticularHaloGeneratorObject) HasSetColor() bool { - return l_.RespondsToSelector(objc.Sel("setColor:")) +func (l_ LenticularHaloGeneratorObject) HasSetStriationStrength() bool { + return l_.RespondsToSelector(objc.Sel("setStriationStrength:")) } -// The color of the halo. [Full Topic] +// The intensity of the halo colors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228521-color?language=objc -func (l_ LenticularHaloGeneratorObject) SetColor(value Color) { - objc.Call[objc.Void](l_, objc.Sel("setColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228526-striationstrength?language=objc +func (l_ LenticularHaloGeneratorObject) SetStriationStrength(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setStriationStrength:"), value) } -func (l_ LenticularHaloGeneratorObject) HasColor() bool { - return l_.RespondsToSelector(objc.Sel("color")) +func (l_ LenticularHaloGeneratorObject) HasStriationStrength() bool { + return l_.RespondsToSelector(objc.Sel("striationStrength")) } -// The color of the halo. [Full Topic] +// The intensity of the halo colors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228521-color?language=objc -func (l_ LenticularHaloGeneratorObject) Color() Color { - rv := objc.Call[Color](l_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228526-striationstrength?language=objc +func (l_ LenticularHaloGeneratorObject) StriationStrength() float32 { + rv := objc.Call[float32](l_, objc.Sel("striationStrength")) return rv } diff --git a/macos/coreimage/light_tunnel_protocol.gen.go b/macos/coreimage/light_tunnel_protocol.gen.go index d8b39f4d..fea8cb75 100644 --- a/macos/coreimage/light_tunnel_protocol.gen.go +++ b/macos/coreimage/light_tunnel_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel?language=objc type PLightTunnel interface { - // optional - SetRotation(value float32) - HasSetRotation() bool - - // optional - Rotation() float32 - HasRotation() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -28,12 +20,12 @@ type PLightTunnel interface { HasInputImage() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetRotation(value float32) + HasSetRotation() bool // optional - Center() coregraphics.Point - HasCenter() bool + Rotation() float32 + HasRotation() bool // optional SetRadius(value float32) @@ -42,6 +34,14 @@ type PLightTunnel interface { // optional Radius() float32 HasRadius() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,29 +52,6 @@ type LightTunnelObject struct { objc.Object } -func (l_ LightTunnelObject) HasSetRotation() bool { - return l_.RespondsToSelector(objc.Sel("setRotation:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600174-rotation?language=objc -func (l_ LightTunnelObject) SetRotation(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setRotation:"), value) -} - -func (l_ LightTunnelObject) HasRotation() bool { - return l_.RespondsToSelector(objc.Sel("rotation")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600174-rotation?language=objc -func (l_ LightTunnelObject) Rotation() float32 { - rv := objc.Call[float32](l_, objc.Sel("rotation")) - return rv -} - func (l_ LightTunnelObject) HasSetInputImage() bool { return l_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -98,26 +75,26 @@ func (l_ LightTunnelObject) InputImage() Image { return rv } -func (l_ LightTunnelObject) HasSetCenter() bool { - return l_.RespondsToSelector(objc.Sel("setCenter:")) +func (l_ LightTunnelObject) HasSetRotation() bool { + return l_.RespondsToSelector(objc.Sel("setRotation:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600171-center?language=objc -func (l_ LightTunnelObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](l_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600174-rotation?language=objc +func (l_ LightTunnelObject) SetRotation(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setRotation:"), value) } -func (l_ LightTunnelObject) HasCenter() bool { - return l_.RespondsToSelector(objc.Sel("center")) +func (l_ LightTunnelObject) HasRotation() bool { + return l_.RespondsToSelector(objc.Sel("rotation")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600171-center?language=objc -func (l_ LightTunnelObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](l_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600174-rotation?language=objc +func (l_ LightTunnelObject) Rotation() float32 { + rv := objc.Call[float32](l_, objc.Sel("rotation")) return rv } @@ -143,3 +120,26 @@ func (l_ LightTunnelObject) Radius() float32 { rv := objc.Call[float32](l_, objc.Sel("radius")) return rv } + +func (l_ LightTunnelObject) HasSetCenter() bool { + return l_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600171-center?language=objc +func (l_ LightTunnelObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("setCenter:"), value) +} + +func (l_ LightTunnelObject) HasCenter() bool { + return l_.RespondsToSelector(objc.Sel("center")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600171-center?language=objc +func (l_ LightTunnelObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](l_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/line_overlay_protocol.gen.go b/macos/coreimage/line_overlay_protocol.gen.go index bdc08da1..358fbf07 100644 --- a/macos/coreimage/line_overlay_protocol.gen.go +++ b/macos/coreimage/line_overlay_protocol.gen.go @@ -19,20 +19,20 @@ type PLineOverlay interface { HasInputImage() bool // optional - SetContrast(value float32) - HasSetContrast() bool + SetEdgeIntensity(value float32) + HasSetEdgeIntensity() bool // optional - Contrast() float32 - HasContrast() bool + EdgeIntensity() float32 + HasEdgeIntensity() bool // optional - SetThreshold(value float32) - HasSetThreshold() bool + SetNRNoiseLevel(value float32) + HasSetNRNoiseLevel() bool // optional - Threshold() float32 - HasThreshold() bool + NRNoiseLevel() float32 + HasNRNoiseLevel() bool // optional SetNRSharpness(value float32) @@ -43,20 +43,20 @@ type PLineOverlay interface { HasNRSharpness() bool // optional - SetNRNoiseLevel(value float32) - HasSetNRNoiseLevel() bool + SetContrast(value float32) + HasSetContrast() bool // optional - NRNoiseLevel() float32 - HasNRNoiseLevel() bool + Contrast() float32 + HasContrast() bool // optional - SetEdgeIntensity(value float32) - HasSetEdgeIntensity() bool + SetThreshold(value float32) + HasSetThreshold() bool // optional - EdgeIntensity() float32 - HasEdgeIntensity() bool + Threshold() float32 + HasThreshold() bool } // ensure impl type implements protocol interface @@ -90,49 +90,49 @@ func (l_ LineOverlayObject) InputImage() Image { return rv } -func (l_ LineOverlayObject) HasSetContrast() bool { - return l_.RespondsToSelector(objc.Sel("setContrast:")) +func (l_ LineOverlayObject) HasSetEdgeIntensity() bool { + return l_.RespondsToSelector(objc.Sel("setEdgeIntensity:")) } -// The amount of antialiasing to use on the edges produced by this filter. [Full Topic] +// The accentuation factor of the Sobel gradient information when tracing the edges of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228531-contrast?language=objc -func (l_ LineOverlayObject) SetContrast(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setContrast:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228532-edgeintensity?language=objc +func (l_ LineOverlayObject) SetEdgeIntensity(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setEdgeIntensity:"), value) } -func (l_ LineOverlayObject) HasContrast() bool { - return l_.RespondsToSelector(objc.Sel("contrast")) +func (l_ LineOverlayObject) HasEdgeIntensity() bool { + return l_.RespondsToSelector(objc.Sel("edgeIntensity")) } -// The amount of antialiasing to use on the edges produced by this filter. [Full Topic] +// The accentuation factor of the Sobel gradient information when tracing the edges of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228531-contrast?language=objc -func (l_ LineOverlayObject) Contrast() float32 { - rv := objc.Call[float32](l_, objc.Sel("contrast")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228532-edgeintensity?language=objc +func (l_ LineOverlayObject) EdgeIntensity() float32 { + rv := objc.Call[float32](l_, objc.Sel("edgeIntensity")) return rv } -func (l_ LineOverlayObject) HasSetThreshold() bool { - return l_.RespondsToSelector(objc.Sel("setThreshold:")) +func (l_ LineOverlayObject) HasSetNRNoiseLevel() bool { + return l_.RespondsToSelector(objc.Sel("setNRNoiseLevel:")) } -// A value that determines edge visibility. [Full Topic] +// The noise level of the image, used with camera data, that's removed before tracing the edges of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228534-threshold?language=objc -func (l_ LineOverlayObject) SetThreshold(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setThreshold:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228529-nrnoiselevel?language=objc +func (l_ LineOverlayObject) SetNRNoiseLevel(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setNRNoiseLevel:"), value) } -func (l_ LineOverlayObject) HasThreshold() bool { - return l_.RespondsToSelector(objc.Sel("threshold")) +func (l_ LineOverlayObject) HasNRNoiseLevel() bool { + return l_.RespondsToSelector(objc.Sel("NRNoiseLevel")) } -// A value that determines edge visibility. [Full Topic] +// The noise level of the image, used with camera data, that's removed before tracing the edges of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228534-threshold?language=objc -func (l_ LineOverlayObject) Threshold() float32 { - rv := objc.Call[float32](l_, objc.Sel("threshold")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228529-nrnoiselevel?language=objc +func (l_ LineOverlayObject) NRNoiseLevel() float32 { + rv := objc.Call[float32](l_, objc.Sel("NRNoiseLevel")) return rv } @@ -159,48 +159,48 @@ func (l_ LineOverlayObject) NRSharpness() float32 { return rv } -func (l_ LineOverlayObject) HasSetNRNoiseLevel() bool { - return l_.RespondsToSelector(objc.Sel("setNRNoiseLevel:")) +func (l_ LineOverlayObject) HasSetContrast() bool { + return l_.RespondsToSelector(objc.Sel("setContrast:")) } -// The noise level of the image, used with camera data, that's removed before tracing the edges of the image. [Full Topic] +// The amount of antialiasing to use on the edges produced by this filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228529-nrnoiselevel?language=objc -func (l_ LineOverlayObject) SetNRNoiseLevel(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setNRNoiseLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228531-contrast?language=objc +func (l_ LineOverlayObject) SetContrast(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setContrast:"), value) } -func (l_ LineOverlayObject) HasNRNoiseLevel() bool { - return l_.RespondsToSelector(objc.Sel("NRNoiseLevel")) +func (l_ LineOverlayObject) HasContrast() bool { + return l_.RespondsToSelector(objc.Sel("contrast")) } -// The noise level of the image, used with camera data, that's removed before tracing the edges of the image. [Full Topic] +// The amount of antialiasing to use on the edges produced by this filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228529-nrnoiselevel?language=objc -func (l_ LineOverlayObject) NRNoiseLevel() float32 { - rv := objc.Call[float32](l_, objc.Sel("NRNoiseLevel")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228531-contrast?language=objc +func (l_ LineOverlayObject) Contrast() float32 { + rv := objc.Call[float32](l_, objc.Sel("contrast")) return rv } -func (l_ LineOverlayObject) HasSetEdgeIntensity() bool { - return l_.RespondsToSelector(objc.Sel("setEdgeIntensity:")) +func (l_ LineOverlayObject) HasSetThreshold() bool { + return l_.RespondsToSelector(objc.Sel("setThreshold:")) } -// The accentuation factor of the Sobel gradient information when tracing the edges of the image. [Full Topic] +// A value that determines edge visibility. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228532-edgeintensity?language=objc -func (l_ LineOverlayObject) SetEdgeIntensity(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setEdgeIntensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228534-threshold?language=objc +func (l_ LineOverlayObject) SetThreshold(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setThreshold:"), value) } -func (l_ LineOverlayObject) HasEdgeIntensity() bool { - return l_.RespondsToSelector(objc.Sel("edgeIntensity")) +func (l_ LineOverlayObject) HasThreshold() bool { + return l_.RespondsToSelector(objc.Sel("threshold")) } -// The accentuation factor of the Sobel gradient information when tracing the edges of the image. [Full Topic] +// A value that determines edge visibility. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228532-edgeintensity?language=objc -func (l_ LineOverlayObject) EdgeIntensity() float32 { - rv := objc.Call[float32](l_, objc.Sel("edgeIntensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228534-threshold?language=objc +func (l_ LineOverlayObject) Threshold() float32 { + rv := objc.Call[float32](l_, objc.Sel("threshold")) return rv } diff --git a/macos/coreimage/line_screen_protocol.gen.go b/macos/coreimage/line_screen_protocol.gen.go index 34670698..2dcf0df3 100644 --- a/macos/coreimage/line_screen_protocol.gen.go +++ b/macos/coreimage/line_screen_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen?language=objc type PLineScreen interface { - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetWidth(value float32) HasSetWidth() bool @@ -27,14 +19,6 @@ type PLineScreen interface { Width() float32 HasWidth() bool - // optional - SetSharpness(value float32) - HasSetSharpness() bool - - // optional - Sharpness() float32 - HasSharpness() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -43,6 +27,14 @@ type PLineScreen interface { InputImage() Image HasInputImage() bool + // optional + SetSharpness(value float32) + HasSetSharpness() bool + + // optional + Sharpness() float32 + HasSharpness() bool + // optional SetAngle(value float32) HasSetAngle() bool @@ -50,6 +42,14 @@ type PLineScreen interface { // optional Angle() float32 HasAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -60,29 +60,6 @@ type LineScreenObject struct { objc.Object } -func (l_ LineScreenObject) HasSetCenter() bool { - return l_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the line screen pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228537-center?language=objc -func (l_ LineScreenObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](l_, objc.Sel("setCenter:"), value) -} - -func (l_ LineScreenObject) HasCenter() bool { - return l_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the line screen pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228537-center?language=objc -func (l_ LineScreenObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](l_, objc.Sel("center")) - return rv -} - func (l_ LineScreenObject) HasSetWidth() bool { return l_.RespondsToSelector(objc.Sel("setWidth:")) } @@ -106,29 +83,6 @@ func (l_ LineScreenObject) Width() float32 { return rv } -func (l_ LineScreenObject) HasSetSharpness() bool { - return l_.RespondsToSelector(objc.Sel("setSharpness:")) -} - -// The sharpness of the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228539-sharpness?language=objc -func (l_ LineScreenObject) SetSharpness(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setSharpness:"), value) -} - -func (l_ LineScreenObject) HasSharpness() bool { - return l_.RespondsToSelector(objc.Sel("sharpness")) -} - -// The sharpness of the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228539-sharpness?language=objc -func (l_ LineScreenObject) Sharpness() float32 { - rv := objc.Call[float32](l_, objc.Sel("sharpness")) - return rv -} - func (l_ LineScreenObject) HasSetInputImage() bool { return l_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -152,6 +106,29 @@ func (l_ LineScreenObject) InputImage() Image { return rv } +func (l_ LineScreenObject) HasSetSharpness() bool { + return l_.RespondsToSelector(objc.Sel("setSharpness:")) +} + +// The sharpness of the pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228539-sharpness?language=objc +func (l_ LineScreenObject) SetSharpness(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setSharpness:"), value) +} + +func (l_ LineScreenObject) HasSharpness() bool { + return l_.RespondsToSelector(objc.Sel("sharpness")) +} + +// The sharpness of the pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228539-sharpness?language=objc +func (l_ LineScreenObject) Sharpness() float32 { + rv := objc.Call[float32](l_, objc.Sel("sharpness")) + return rv +} + func (l_ LineScreenObject) HasSetAngle() bool { return l_.RespondsToSelector(objc.Sel("setAngle:")) } @@ -174,3 +151,26 @@ func (l_ LineScreenObject) Angle() float32 { rv := objc.Call[float32](l_, objc.Sel("angle")) return rv } + +func (l_ LineScreenObject) HasSetCenter() bool { + return l_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the line screen pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228537-center?language=objc +func (l_ LineScreenObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("setCenter:"), value) +} + +func (l_ LineScreenObject) HasCenter() bool { + return l_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the line screen pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228537-center?language=objc +func (l_ LineScreenObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](l_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/linear_gradient_protocol.gen.go b/macos/coreimage/linear_gradient_protocol.gen.go index ee1f898d..da669a58 100644 --- a/macos/coreimage/linear_gradient_protocol.gen.go +++ b/macos/coreimage/linear_gradient_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient?language=objc type PLinearGradient interface { // optional - SetColor0(value Color) - HasSetColor0() bool + SetPoint1(value coregraphics.Point) + HasSetPoint1() bool // optional - Color0() Color - HasColor0() bool + Point1() coregraphics.Point + HasPoint1() bool // optional SetPoint0(value coregraphics.Point) @@ -28,20 +28,20 @@ type PLinearGradient interface { HasPoint0() bool // optional - SetColor1(value Color) - HasSetColor1() bool + SetColor0(value Color) + HasSetColor0() bool // optional - Color1() Color - HasColor1() bool + Color0() Color + HasColor0() bool // optional - SetPoint1(value coregraphics.Point) - HasSetPoint1() bool + SetColor1(value Color) + HasSetColor1() bool // optional - Point1() coregraphics.Point - HasPoint1() bool + Color1() Color + HasColor1() bool } // ensure impl type implements protocol interface @@ -52,26 +52,26 @@ type LinearGradientObject struct { objc.Object } -func (l_ LinearGradientObject) HasSetColor0() bool { - return l_.RespondsToSelector(objc.Sel("setColor0:")) +func (l_ LinearGradientObject) HasSetPoint1() bool { + return l_.RespondsToSelector(objc.Sel("setPoint1:")) } -// The first color to use in the gradient. [Full Topic] +// The ending position of the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228542-color0?language=objc -func (l_ LinearGradientObject) SetColor0(value Color) { - objc.Call[objc.Void](l_, objc.Sel("setColor0:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228545-point1?language=objc +func (l_ LinearGradientObject) SetPoint1(value coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("setPoint1:"), value) } -func (l_ LinearGradientObject) HasColor0() bool { - return l_.RespondsToSelector(objc.Sel("color0")) +func (l_ LinearGradientObject) HasPoint1() bool { + return l_.RespondsToSelector(objc.Sel("point1")) } -// The first color to use in the gradient. [Full Topic] +// The ending position of the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228542-color0?language=objc -func (l_ LinearGradientObject) Color0() Color { - rv := objc.Call[Color](l_, objc.Sel("color0")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228545-point1?language=objc +func (l_ LinearGradientObject) Point1() coregraphics.Point { + rv := objc.Call[coregraphics.Point](l_, objc.Sel("point1")) return rv } @@ -98,6 +98,29 @@ func (l_ LinearGradientObject) Point0() coregraphics.Point { return rv } +func (l_ LinearGradientObject) HasSetColor0() bool { + return l_.RespondsToSelector(objc.Sel("setColor0:")) +} + +// The first color to use in the gradient. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228542-color0?language=objc +func (l_ LinearGradientObject) SetColor0(value Color) { + objc.Call[objc.Void](l_, objc.Sel("setColor0:"), value) +} + +func (l_ LinearGradientObject) HasColor0() bool { + return l_.RespondsToSelector(objc.Sel("color0")) +} + +// The first color to use in the gradient. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228542-color0?language=objc +func (l_ LinearGradientObject) Color0() Color { + rv := objc.Call[Color](l_, objc.Sel("color0")) + return rv +} + func (l_ LinearGradientObject) HasSetColor1() bool { return l_.RespondsToSelector(objc.Sel("setColor1:")) } @@ -120,26 +143,3 @@ func (l_ LinearGradientObject) Color1() Color { rv := objc.Call[Color](l_, objc.Sel("color1")) return rv } - -func (l_ LinearGradientObject) HasSetPoint1() bool { - return l_.RespondsToSelector(objc.Sel("setPoint1:")) -} - -// The ending position of the gradient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228545-point1?language=objc -func (l_ LinearGradientObject) SetPoint1(value coregraphics.Point) { - objc.Call[objc.Void](l_, objc.Sel("setPoint1:"), value) -} - -func (l_ LinearGradientObject) HasPoint1() bool { - return l_.RespondsToSelector(objc.Sel("point1")) -} - -// The ending position of the gradient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228545-point1?language=objc -func (l_ LinearGradientObject) Point1() coregraphics.Point { - rv := objc.Call[coregraphics.Point](l_, objc.Sel("point1")) - return rv -} diff --git a/macos/coreimage/masked_variable_blur_protocol.gen.go b/macos/coreimage/masked_variable_blur_protocol.gen.go index 01d57e44..7b7bb326 100644 --- a/macos/coreimage/masked_variable_blur_protocol.gen.go +++ b/macos/coreimage/masked_variable_blur_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaskedvariableblur?language=objc type PMaskedVariableBlur interface { - // optional - SetMask(value Image) - HasSetMask() bool - - // optional - Mask() Image - HasMask() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -33,6 +25,14 @@ type PMaskedVariableBlur interface { // optional Radius() float32 HasRadius() bool + + // optional + SetMask(value Image) + HasSetMask() bool + + // optional + Mask() Image + HasMask() bool } // ensure impl type implements protocol interface @@ -43,29 +43,6 @@ type MaskedVariableBlurObject struct { objc.Object } -func (m_ MaskedVariableBlurObject) HasSetMask() bool { - return m_.RespondsToSelector(objc.Sel("setMask:")) -} - -// A grayscale mask that defines the blur amount. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaskedvariableblur/3228552-mask?language=objc -func (m_ MaskedVariableBlurObject) SetMask(value Image) { - objc.Call[objc.Void](m_, objc.Sel("setMask:"), value) -} - -func (m_ MaskedVariableBlurObject) HasMask() bool { - return m_.RespondsToSelector(objc.Sel("mask")) -} - -// A grayscale mask that defines the blur amount. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaskedvariableblur/3228552-mask?language=objc -func (m_ MaskedVariableBlurObject) Mask() Image { - rv := objc.Call[Image](m_, objc.Sel("mask")) - return rv -} - func (m_ MaskedVariableBlurObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -111,3 +88,26 @@ func (m_ MaskedVariableBlurObject) Radius() float32 { rv := objc.Call[float32](m_, objc.Sel("radius")) return rv } + +func (m_ MaskedVariableBlurObject) HasSetMask() bool { + return m_.RespondsToSelector(objc.Sel("setMask:")) +} + +// A grayscale mask that defines the blur amount. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaskedvariableblur/3228552-mask?language=objc +func (m_ MaskedVariableBlurObject) SetMask(value Image) { + objc.Call[objc.Void](m_, objc.Sel("setMask:"), value) +} + +func (m_ MaskedVariableBlurObject) HasMask() bool { + return m_.RespondsToSelector(objc.Sel("mask")) +} + +// A grayscale mask that defines the blur amount. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaskedvariableblur/3228552-mask?language=objc +func (m_ MaskedVariableBlurObject) Mask() Image { + rv := objc.Call[Image](m_, objc.Sel("mask")) + return rv +} diff --git a/macos/coreimage/mesh_generator_protocol.gen.go b/macos/coreimage/mesh_generator_protocol.gen.go index f2388b68..5016b140 100644 --- a/macos/coreimage/mesh_generator_protocol.gen.go +++ b/macos/coreimage/mesh_generator_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator?language=objc type PMeshGenerator interface { - // optional - SetWidth(value float32) - HasSetWidth() bool - - // optional - Width() float32 - HasWidth() bool - // optional SetColor(value Color) HasSetColor() bool @@ -26,6 +18,14 @@ type PMeshGenerator interface { Color() Color HasColor() bool + // optional + SetWidth(value float32) + HasSetWidth() bool + + // optional + Width() float32 + HasWidth() bool + // optional SetMesh(value []objc.Object) HasSetMesh() bool @@ -43,29 +43,6 @@ type MeshGeneratorObject struct { objc.Object } -func (m_ MeshGeneratorObject) HasSetWidth() bool { - return m_.RespondsToSelector(objc.Sel("setWidth:")) -} - -// The width of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228561-width?language=objc -func (m_ MeshGeneratorObject) SetWidth(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setWidth:"), value) -} - -func (m_ MeshGeneratorObject) HasWidth() bool { - return m_.RespondsToSelector(objc.Sel("width")) -} - -// The width of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228561-width?language=objc -func (m_ MeshGeneratorObject) Width() float32 { - rv := objc.Call[float32](m_, objc.Sel("width")) - return rv -} - func (m_ MeshGeneratorObject) HasSetColor() bool { return m_.RespondsToSelector(objc.Sel("setColor:")) } @@ -89,6 +66,29 @@ func (m_ MeshGeneratorObject) Color() Color { return rv } +func (m_ MeshGeneratorObject) HasSetWidth() bool { + return m_.RespondsToSelector(objc.Sel("setWidth:")) +} + +// The width of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228561-width?language=objc +func (m_ MeshGeneratorObject) SetWidth(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setWidth:"), value) +} + +func (m_ MeshGeneratorObject) HasWidth() bool { + return m_.RespondsToSelector(objc.Sel("width")) +} + +// The width of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228561-width?language=objc +func (m_ MeshGeneratorObject) Width() float32 { + rv := objc.Call[float32](m_, objc.Sel("width")) + return rv +} + func (m_ MeshGeneratorObject) HasSetMesh() bool { return m_.RespondsToSelector(objc.Sel("setMesh:")) } diff --git a/macos/coreimage/mix_protocol.gen.go b/macos/coreimage/mix_protocol.gen.go index 8711e038..5b0d7cc0 100644 --- a/macos/coreimage/mix_protocol.gen.go +++ b/macos/coreimage/mix_protocol.gen.go @@ -10,6 +10,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimix?language=objc type PMix interface { + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetBackgroundImage(value Image) HasSetBackgroundImage() bool @@ -25,14 +33,6 @@ type PMix interface { // optional Amount() float32 HasAmount() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool } // ensure impl type implements protocol interface @@ -43,6 +43,29 @@ type MixObject struct { objc.Object } +func (m_ MixObject) HasSetInputImage() bool { + return m_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as a foreground image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimix/3228567-inputimage?language=objc +func (m_ MixObject) SetInputImage(value Image) { + objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), value) +} + +func (m_ MixObject) HasInputImage() bool { + return m_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as a foreground image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimix/3228567-inputimage?language=objc +func (m_ MixObject) InputImage() Image { + rv := objc.Call[Image](m_, objc.Sel("inputImage")) + return rv +} + func (m_ MixObject) HasSetBackgroundImage() bool { return m_.RespondsToSelector(objc.Sel("setBackgroundImage:")) } @@ -88,26 +111,3 @@ func (m_ MixObject) Amount() float32 { rv := objc.Call[float32](m_, objc.Sel("amount")) return rv } - -func (m_ MixObject) HasSetInputImage() bool { - return m_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as a foreground image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimix/3228567-inputimage?language=objc -func (m_ MixObject) SetInputImage(value Image) { - objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), value) -} - -func (m_ MixObject) HasInputImage() bool { - return m_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as a foreground image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimix/3228567-inputimage?language=objc -func (m_ MixObject) InputImage() Image { - rv := objc.Call[Image](m_, objc.Sel("inputImage")) - return rv -} diff --git a/macos/coreimage/mod_transition_protocol.gen.go b/macos/coreimage/mod_transition_protocol.gen.go index c304e76e..2c668d33 100644 --- a/macos/coreimage/mod_transition_protocol.gen.go +++ b/macos/coreimage/mod_transition_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition?language=objc type PModTransition interface { // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetCompression(value float32) + HasSetCompression() bool // optional - Center() coregraphics.Point - HasCenter() bool + Compression() float32 + HasCompression() bool // optional SetRadius(value float32) @@ -27,14 +27,6 @@ type PModTransition interface { Radius() float32 HasRadius() bool - // optional - SetCompression(value float32) - HasSetCompression() bool - - // optional - Compression() float32 - HasCompression() bool - // optional SetAngle(value float32) HasSetAngle() bool @@ -42,6 +34,14 @@ type PModTransition interface { // optional Angle() float32 HasAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,26 +52,26 @@ type ModTransitionObject struct { objc.Object } -func (m_ ModTransitionObject) HasSetCenter() bool { - return m_.RespondsToSelector(objc.Sel("setCenter:")) +func (m_ ModTransitionObject) HasSetCompression() bool { + return m_.RespondsToSelector(objc.Sel("setCompression:")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The amount of stretching applied to the mod hole pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228570-center?language=objc -func (m_ ModTransitionObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](m_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228571-compression?language=objc +func (m_ ModTransitionObject) SetCompression(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setCompression:"), value) } -func (m_ ModTransitionObject) HasCenter() bool { - return m_.RespondsToSelector(objc.Sel("center")) +func (m_ ModTransitionObject) HasCompression() bool { + return m_.RespondsToSelector(objc.Sel("compression")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The amount of stretching applied to the mod hole pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228570-center?language=objc -func (m_ ModTransitionObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](m_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228571-compression?language=objc +func (m_ ModTransitionObject) Compression() float32 { + rv := objc.Call[float32](m_, objc.Sel("compression")) return rv } @@ -98,29 +98,6 @@ func (m_ ModTransitionObject) Radius() float32 { return rv } -func (m_ ModTransitionObject) HasSetCompression() bool { - return m_.RespondsToSelector(objc.Sel("setCompression:")) -} - -// The amount of stretching applied to the mod hole pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228571-compression?language=objc -func (m_ ModTransitionObject) SetCompression(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setCompression:"), value) -} - -func (m_ ModTransitionObject) HasCompression() bool { - return m_.RespondsToSelector(objc.Sel("compression")) -} - -// The amount of stretching applied to the mod hole pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228571-compression?language=objc -func (m_ ModTransitionObject) Compression() float32 { - rv := objc.Call[float32](m_, objc.Sel("compression")) - return rv -} - func (m_ ModTransitionObject) HasSetAngle() bool { return m_.RespondsToSelector(objc.Sel("setAngle:")) } @@ -143,3 +120,26 @@ func (m_ ModTransitionObject) Angle() float32 { rv := objc.Call[float32](m_, objc.Sel("angle")) return rv } + +func (m_ ModTransitionObject) HasSetCenter() bool { + return m_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228570-center?language=objc +func (m_ ModTransitionObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](m_, objc.Sel("setCenter:"), value) +} + +func (m_ ModTransitionObject) HasCenter() bool { + return m_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228570-center?language=objc +func (m_ ModTransitionObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](m_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/morphology_minimum_protocol.gen.go b/macos/coreimage/morphology_minimum_protocol.gen.go index 7f4c7872..bfb46c64 100644 --- a/macos/coreimage/morphology_minimum_protocol.gen.go +++ b/macos/coreimage/morphology_minimum_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum?language=objc type PMorphologyMinimum interface { - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PMorphologyMinimum interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetRadius(value float32) + HasSetRadius() bool + + // optional + Radius() float32 + HasRadius() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type MorphologyMinimumObject struct { objc.Object } -func (m_ MorphologyMinimumObject) HasSetRadius() bool { - return m_.RespondsToSelector(objc.Sel("setRadius:")) -} - -// The radius of the circular morphological structuring element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228581-radius?language=objc -func (m_ MorphologyMinimumObject) SetRadius(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setRadius:"), value) -} - -func (m_ MorphologyMinimumObject) HasRadius() bool { - return m_.RespondsToSelector(objc.Sel("radius")) -} - -// The radius of the circular morphological structuring element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228581-radius?language=objc -func (m_ MorphologyMinimumObject) Radius() float32 { - rv := objc.Call[float32](m_, objc.Sel("radius")) - return rv -} - func (m_ MorphologyMinimumObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (m_ MorphologyMinimumObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } + +func (m_ MorphologyMinimumObject) HasSetRadius() bool { + return m_.RespondsToSelector(objc.Sel("setRadius:")) +} + +// The radius of the circular morphological structuring element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228581-radius?language=objc +func (m_ MorphologyMinimumObject) SetRadius(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setRadius:"), value) +} + +func (m_ MorphologyMinimumObject) HasRadius() bool { + return m_.RespondsToSelector(objc.Sel("radius")) +} + +// The radius of the circular morphological structuring element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228581-radius?language=objc +func (m_ MorphologyMinimumObject) Radius() float32 { + rv := objc.Call[float32](m_, objc.Sel("radius")) + return rv +} diff --git a/macos/coreimage/morphology_rectangle_maximum_protocol.gen.go b/macos/coreimage/morphology_rectangle_maximum_protocol.gen.go index 25092bcc..145746f6 100644 --- a/macos/coreimage/morphology_rectangle_maximum_protocol.gen.go +++ b/macos/coreimage/morphology_rectangle_maximum_protocol.gen.go @@ -10,6 +10,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectanglemaximum?language=objc type PMorphologyRectangleMaximum interface { + // optional + SetWidth(value float32) + HasSetWidth() bool + + // optional + Width() float32 + HasWidth() bool + // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,14 +33,6 @@ type PMorphologyRectangleMaximum interface { // optional Height() float32 HasHeight() bool - - // optional - SetWidth(value float32) - HasSetWidth() bool - - // optional - Width() float32 - HasWidth() bool } // ensure impl type implements protocol interface @@ -43,6 +43,29 @@ type MorphologyRectangleMaximumObject struct { objc.Object } +func (m_ MorphologyRectangleMaximumObject) HasSetWidth() bool { + return m_.RespondsToSelector(objc.Sel("setWidth:")) +} + +// The width, in pixels, of the morphological structuring element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectanglemaximum/3228585-width?language=objc +func (m_ MorphologyRectangleMaximumObject) SetWidth(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setWidth:"), value) +} + +func (m_ MorphologyRectangleMaximumObject) HasWidth() bool { + return m_.RespondsToSelector(objc.Sel("width")) +} + +// The width, in pixels, of the morphological structuring element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectanglemaximum/3228585-width?language=objc +func (m_ MorphologyRectangleMaximumObject) Width() float32 { + rv := objc.Call[float32](m_, objc.Sel("width")) + return rv +} + func (m_ MorphologyRectangleMaximumObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -88,26 +111,3 @@ func (m_ MorphologyRectangleMaximumObject) Height() float32 { rv := objc.Call[float32](m_, objc.Sel("height")) return rv } - -func (m_ MorphologyRectangleMaximumObject) HasSetWidth() bool { - return m_.RespondsToSelector(objc.Sel("setWidth:")) -} - -// The width, in pixels, of the morphological structuring element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectanglemaximum/3228585-width?language=objc -func (m_ MorphologyRectangleMaximumObject) SetWidth(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setWidth:"), value) -} - -func (m_ MorphologyRectangleMaximumObject) HasWidth() bool { - return m_.RespondsToSelector(objc.Sel("width")) -} - -// The width, in pixels, of the morphological structuring element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectanglemaximum/3228585-width?language=objc -func (m_ MorphologyRectangleMaximumObject) Width() float32 { - rv := objc.Call[float32](m_, objc.Sel("width")) - return rv -} diff --git a/macos/coreimage/morphology_rectangle_minimum_protocol.gen.go b/macos/coreimage/morphology_rectangle_minimum_protocol.gen.go index 655b2585..01bc10ce 100644 --- a/macos/coreimage/morphology_rectangle_minimum_protocol.gen.go +++ b/macos/coreimage/morphology_rectangle_minimum_protocol.gen.go @@ -10,6 +10,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectangleminimum?language=objc type PMorphologyRectangleMinimum interface { + // optional + SetWidth(value float32) + HasSetWidth() bool + + // optional + Width() float32 + HasWidth() bool + // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,14 +33,6 @@ type PMorphologyRectangleMinimum interface { // optional Height() float32 HasHeight() bool - - // optional - SetWidth(value float32) - HasSetWidth() bool - - // optional - Width() float32 - HasWidth() bool } // ensure impl type implements protocol interface @@ -43,6 +43,29 @@ type MorphologyRectangleMinimumObject struct { objc.Object } +func (m_ MorphologyRectangleMinimumObject) HasSetWidth() bool { + return m_.RespondsToSelector(objc.Sel("setWidth:")) +} + +// The width, in pixels, of the morphological structuring element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectangleminimum/3228589-width?language=objc +func (m_ MorphologyRectangleMinimumObject) SetWidth(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setWidth:"), value) +} + +func (m_ MorphologyRectangleMinimumObject) HasWidth() bool { + return m_.RespondsToSelector(objc.Sel("width")) +} + +// The width, in pixels, of the morphological structuring element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectangleminimum/3228589-width?language=objc +func (m_ MorphologyRectangleMinimumObject) Width() float32 { + rv := objc.Call[float32](m_, objc.Sel("width")) + return rv +} + func (m_ MorphologyRectangleMinimumObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -88,26 +111,3 @@ func (m_ MorphologyRectangleMinimumObject) Height() float32 { rv := objc.Call[float32](m_, objc.Sel("height")) return rv } - -func (m_ MorphologyRectangleMinimumObject) HasSetWidth() bool { - return m_.RespondsToSelector(objc.Sel("setWidth:")) -} - -// The width, in pixels, of the morphological structuring element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectangleminimum/3228589-width?language=objc -func (m_ MorphologyRectangleMinimumObject) SetWidth(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setWidth:"), value) -} - -func (m_ MorphologyRectangleMinimumObject) HasWidth() bool { - return m_.RespondsToSelector(objc.Sel("width")) -} - -// The width, in pixels, of the morphological structuring element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectangleminimum/3228589-width?language=objc -func (m_ MorphologyRectangleMinimumObject) Width() float32 { - rv := objc.Call[float32](m_, objc.Sel("width")) - return rv -} diff --git a/macos/coreimage/nine_part_stretched_protocol.gen.go b/macos/coreimage/nine_part_stretched_protocol.gen.go index 9901ea60..ad7fffe2 100644 --- a/macos/coreimage/nine_part_stretched_protocol.gen.go +++ b/macos/coreimage/nine_part_stretched_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched?language=objc type PNinePartStretched interface { // optional - SetBreakpoint1(value coregraphics.Point) - HasSetBreakpoint1() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Breakpoint1() coregraphics.Point - HasBreakpoint1() bool + InputImage() Image + HasInputImage() bool // optional SetGrowAmount(value coregraphics.Point) @@ -27,14 +27,6 @@ type PNinePartStretched interface { GrowAmount() coregraphics.Point HasGrowAmount() bool - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool - // optional SetBreakpoint0(value coregraphics.Point) HasSetBreakpoint0() bool @@ -42,6 +34,14 @@ type PNinePartStretched interface { // optional Breakpoint0() coregraphics.Point HasBreakpoint0() bool + + // optional + SetBreakpoint1(value coregraphics.Point) + HasSetBreakpoint1() bool + + // optional + Breakpoint1() coregraphics.Point + HasBreakpoint1() bool } // ensure impl type implements protocol interface @@ -52,26 +52,26 @@ type NinePartStretchedObject struct { objc.Object } -func (n_ NinePartStretchedObject) HasSetBreakpoint1() bool { - return n_.RespondsToSelector(objc.Sel("setBreakpoint1:")) +func (n_ NinePartStretchedObject) HasSetInputImage() bool { + return n_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600177-breakpoint1?language=objc -func (n_ NinePartStretchedObject) SetBreakpoint1(value coregraphics.Point) { - objc.Call[objc.Void](n_, objc.Sel("setBreakpoint1:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600179-inputimage?language=objc +func (n_ NinePartStretchedObject) SetInputImage(value Image) { + objc.Call[objc.Void](n_, objc.Sel("setInputImage:"), value) } -func (n_ NinePartStretchedObject) HasBreakpoint1() bool { - return n_.RespondsToSelector(objc.Sel("breakpoint1")) +func (n_ NinePartStretchedObject) HasInputImage() bool { + return n_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600177-breakpoint1?language=objc -func (n_ NinePartStretchedObject) Breakpoint1() coregraphics.Point { - rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint1")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600179-inputimage?language=objc +func (n_ NinePartStretchedObject) InputImage() Image { + rv := objc.Call[Image](n_, objc.Sel("inputImage")) return rv } @@ -98,48 +98,48 @@ func (n_ NinePartStretchedObject) GrowAmount() coregraphics.Point { return rv } -func (n_ NinePartStretchedObject) HasSetInputImage() bool { - return n_.RespondsToSelector(objc.Sel("setInputImage:")) +func (n_ NinePartStretchedObject) HasSetBreakpoint0() bool { + return n_.RespondsToSelector(objc.Sel("setBreakpoint0:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600179-inputimage?language=objc -func (n_ NinePartStretchedObject) SetInputImage(value Image) { - objc.Call[objc.Void](n_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600176-breakpoint0?language=objc +func (n_ NinePartStretchedObject) SetBreakpoint0(value coregraphics.Point) { + objc.Call[objc.Void](n_, objc.Sel("setBreakpoint0:"), value) } -func (n_ NinePartStretchedObject) HasInputImage() bool { - return n_.RespondsToSelector(objc.Sel("inputImage")) +func (n_ NinePartStretchedObject) HasBreakpoint0() bool { + return n_.RespondsToSelector(objc.Sel("breakpoint0")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600179-inputimage?language=objc -func (n_ NinePartStretchedObject) InputImage() Image { - rv := objc.Call[Image](n_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600176-breakpoint0?language=objc +func (n_ NinePartStretchedObject) Breakpoint0() coregraphics.Point { + rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint0")) return rv } -func (n_ NinePartStretchedObject) HasSetBreakpoint0() bool { - return n_.RespondsToSelector(objc.Sel("setBreakpoint0:")) +func (n_ NinePartStretchedObject) HasSetBreakpoint1() bool { + return n_.RespondsToSelector(objc.Sel("setBreakpoint1:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600176-breakpoint0?language=objc -func (n_ NinePartStretchedObject) SetBreakpoint0(value coregraphics.Point) { - objc.Call[objc.Void](n_, objc.Sel("setBreakpoint0:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600177-breakpoint1?language=objc +func (n_ NinePartStretchedObject) SetBreakpoint1(value coregraphics.Point) { + objc.Call[objc.Void](n_, objc.Sel("setBreakpoint1:"), value) } -func (n_ NinePartStretchedObject) HasBreakpoint0() bool { - return n_.RespondsToSelector(objc.Sel("breakpoint0")) +func (n_ NinePartStretchedObject) HasBreakpoint1() bool { + return n_.RespondsToSelector(objc.Sel("breakpoint1")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600176-breakpoint0?language=objc -func (n_ NinePartStretchedObject) Breakpoint0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint0")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600177-breakpoint1?language=objc +func (n_ NinePartStretchedObject) Breakpoint1() coregraphics.Point { + rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint1")) return rv } diff --git a/macos/coreimage/nine_part_tiled_protocol.gen.go b/macos/coreimage/nine_part_tiled_protocol.gen.go index 4f1bb5ad..b5c0e626 100644 --- a/macos/coreimage/nine_part_tiled_protocol.gen.go +++ b/macos/coreimage/nine_part_tiled_protocol.gen.go @@ -11,6 +11,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled?language=objc type PNinePartTiled interface { + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetFlipYTiles(value bool) HasSetFlipYTiles() bool @@ -27,22 +35,6 @@ type PNinePartTiled interface { GrowAmount() coregraphics.Point HasGrowAmount() bool - // optional - SetBreakpoint1(value coregraphics.Point) - HasSetBreakpoint1() bool - - // optional - Breakpoint1() coregraphics.Point - HasBreakpoint1() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool - // optional SetBreakpoint0(value coregraphics.Point) HasSetBreakpoint0() bool @@ -50,6 +42,14 @@ type PNinePartTiled interface { // optional Breakpoint0() coregraphics.Point HasBreakpoint0() bool + + // optional + SetBreakpoint1(value coregraphics.Point) + HasSetBreakpoint1() bool + + // optional + Breakpoint1() coregraphics.Point + HasBreakpoint1() bool } // ensure impl type implements protocol interface @@ -60,6 +60,29 @@ type NinePartTiledObject struct { objc.Object } +func (n_ NinePartTiledObject) HasSetInputImage() bool { + return n_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600185-inputimage?language=objc +func (n_ NinePartTiledObject) SetInputImage(value Image) { + objc.Call[objc.Void](n_, objc.Sel("setInputImage:"), value) +} + +func (n_ NinePartTiledObject) HasInputImage() bool { + return n_.RespondsToSelector(objc.Sel("inputImage")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600185-inputimage?language=objc +func (n_ NinePartTiledObject) InputImage() Image { + rv := objc.Call[Image](n_, objc.Sel("inputImage")) + return rv +} + func (n_ NinePartTiledObject) HasSetFlipYTiles() bool { return n_.RespondsToSelector(objc.Sel("setFlipYTiles:")) } @@ -106,71 +129,48 @@ func (n_ NinePartTiledObject) GrowAmount() coregraphics.Point { return rv } -func (n_ NinePartTiledObject) HasSetBreakpoint1() bool { - return n_.RespondsToSelector(objc.Sel("setBreakpoint1:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600182-breakpoint1?language=objc -func (n_ NinePartTiledObject) SetBreakpoint1(value coregraphics.Point) { - objc.Call[objc.Void](n_, objc.Sel("setBreakpoint1:"), value) -} - -func (n_ NinePartTiledObject) HasBreakpoint1() bool { - return n_.RespondsToSelector(objc.Sel("breakpoint1")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600182-breakpoint1?language=objc -func (n_ NinePartTiledObject) Breakpoint1() coregraphics.Point { - rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint1")) - return rv -} - -func (n_ NinePartTiledObject) HasSetInputImage() bool { - return n_.RespondsToSelector(objc.Sel("setInputImage:")) +func (n_ NinePartTiledObject) HasSetBreakpoint0() bool { + return n_.RespondsToSelector(objc.Sel("setBreakpoint0:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600185-inputimage?language=objc -func (n_ NinePartTiledObject) SetInputImage(value Image) { - objc.Call[objc.Void](n_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600181-breakpoint0?language=objc +func (n_ NinePartTiledObject) SetBreakpoint0(value coregraphics.Point) { + objc.Call[objc.Void](n_, objc.Sel("setBreakpoint0:"), value) } -func (n_ NinePartTiledObject) HasInputImage() bool { - return n_.RespondsToSelector(objc.Sel("inputImage")) +func (n_ NinePartTiledObject) HasBreakpoint0() bool { + return n_.RespondsToSelector(objc.Sel("breakpoint0")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600185-inputimage?language=objc -func (n_ NinePartTiledObject) InputImage() Image { - rv := objc.Call[Image](n_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600181-breakpoint0?language=objc +func (n_ NinePartTiledObject) Breakpoint0() coregraphics.Point { + rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint0")) return rv } -func (n_ NinePartTiledObject) HasSetBreakpoint0() bool { - return n_.RespondsToSelector(objc.Sel("setBreakpoint0:")) +func (n_ NinePartTiledObject) HasSetBreakpoint1() bool { + return n_.RespondsToSelector(objc.Sel("setBreakpoint1:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600181-breakpoint0?language=objc -func (n_ NinePartTiledObject) SetBreakpoint0(value coregraphics.Point) { - objc.Call[objc.Void](n_, objc.Sel("setBreakpoint0:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600182-breakpoint1?language=objc +func (n_ NinePartTiledObject) SetBreakpoint1(value coregraphics.Point) { + objc.Call[objc.Void](n_, objc.Sel("setBreakpoint1:"), value) } -func (n_ NinePartTiledObject) HasBreakpoint0() bool { - return n_.RespondsToSelector(objc.Sel("breakpoint0")) +func (n_ NinePartTiledObject) HasBreakpoint1() bool { + return n_.RespondsToSelector(objc.Sel("breakpoint1")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600181-breakpoint0?language=objc -func (n_ NinePartTiledObject) Breakpoint0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint0")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600182-breakpoint1?language=objc +func (n_ NinePartTiledObject) Breakpoint1() coregraphics.Point { + rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint1")) return rv } diff --git a/macos/coreimage/noise_reduction_protocol.gen.go b/macos/coreimage/noise_reduction_protocol.gen.go index 8c2ef4ba..b49e48be 100644 --- a/macos/coreimage/noise_reduction_protocol.gen.go +++ b/macos/coreimage/noise_reduction_protocol.gen.go @@ -18,14 +18,6 @@ type PNoiseReduction interface { InputImage() Image HasInputImage() bool - // optional - SetNoiseLevel(value float32) - HasSetNoiseLevel() bool - - // optional - NoiseLevel() float32 - HasNoiseLevel() bool - // optional SetSharpness(value float32) HasSetSharpness() bool @@ -33,6 +25,14 @@ type PNoiseReduction interface { // optional Sharpness() float32 HasSharpness() bool + + // optional + SetNoiseLevel(value float32) + HasSetNoiseLevel() bool + + // optional + NoiseLevel() float32 + HasNoiseLevel() bool } // ensure impl type implements protocol interface @@ -66,29 +66,6 @@ func (n_ NoiseReductionObject) InputImage() Image { return rv } -func (n_ NoiseReductionObject) HasSetNoiseLevel() bool { - return n_.RespondsToSelector(objc.Sel("setNoiseLevel:")) -} - -// The amount of noise reduction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228596-noiselevel?language=objc -func (n_ NoiseReductionObject) SetNoiseLevel(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setNoiseLevel:"), value) -} - -func (n_ NoiseReductionObject) HasNoiseLevel() bool { - return n_.RespondsToSelector(objc.Sel("noiseLevel")) -} - -// The amount of noise reduction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228596-noiselevel?language=objc -func (n_ NoiseReductionObject) NoiseLevel() float32 { - rv := objc.Call[float32](n_, objc.Sel("noiseLevel")) - return rv -} - func (n_ NoiseReductionObject) HasSetSharpness() bool { return n_.RespondsToSelector(objc.Sel("setSharpness:")) } @@ -111,3 +88,26 @@ func (n_ NoiseReductionObject) Sharpness() float32 { rv := objc.Call[float32](n_, objc.Sel("sharpness")) return rv } + +func (n_ NoiseReductionObject) HasSetNoiseLevel() bool { + return n_.RespondsToSelector(objc.Sel("setNoiseLevel:")) +} + +// The amount of noise reduction. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228596-noiselevel?language=objc +func (n_ NoiseReductionObject) SetNoiseLevel(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setNoiseLevel:"), value) +} + +func (n_ NoiseReductionObject) HasNoiseLevel() bool { + return n_.RespondsToSelector(objc.Sel("noiseLevel")) +} + +// The amount of noise reduction. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228596-noiselevel?language=objc +func (n_ NoiseReductionObject) NoiseLevel() float32 { + rv := objc.Call[float32](n_, objc.Sel("noiseLevel")) + return rv +} diff --git a/macos/coreimage/op_tile_protocol.gen.go b/macos/coreimage/op_tile_protocol.gen.go index 1fe5e908..6cee59d2 100644 --- a/macos/coreimage/op_tile_protocol.gen.go +++ b/macos/coreimage/op_tile_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile?language=objc type POpTile interface { // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetWidth(value float32) + HasSetWidth() bool // optional - Center() coregraphics.Point - HasCenter() bool + Width() float32 + HasWidth() bool // optional SetScale(value float32) @@ -44,12 +44,12 @@ type POpTile interface { HasAngle() bool // optional - SetWidth(value float32) - HasSetWidth() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Width() float32 - HasWidth() bool + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -60,26 +60,26 @@ type OpTileObject struct { objc.Object } -func (o_ OpTileObject) HasSetCenter() bool { - return o_.RespondsToSelector(objc.Sel("setCenter:")) +func (o_ OpTileObject) HasSetWidth() bool { + return o_.RespondsToSelector(objc.Sel("setWidth:")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The width of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228600-center?language=objc -func (o_ OpTileObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](o_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228603-width?language=objc +func (o_ OpTileObject) SetWidth(value float32) { + objc.Call[objc.Void](o_, objc.Sel("setWidth:"), value) } -func (o_ OpTileObject) HasCenter() bool { - return o_.RespondsToSelector(objc.Sel("center")) +func (o_ OpTileObject) HasWidth() bool { + return o_.RespondsToSelector(objc.Sel("width")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The width of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228600-center?language=objc -func (o_ OpTileObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](o_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228603-width?language=objc +func (o_ OpTileObject) Width() float32 { + rv := objc.Call[float32](o_, objc.Sel("width")) return rv } @@ -152,25 +152,25 @@ func (o_ OpTileObject) Angle() float32 { return rv } -func (o_ OpTileObject) HasSetWidth() bool { - return o_.RespondsToSelector(objc.Sel("setWidth:")) +func (o_ OpTileObject) HasSetCenter() bool { + return o_.RespondsToSelector(objc.Sel("setCenter:")) } -// The width of a tile. [Full Topic] +// The x and y position to use as the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228603-width?language=objc -func (o_ OpTileObject) SetWidth(value float32) { - objc.Call[objc.Void](o_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228600-center?language=objc +func (o_ OpTileObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](o_, objc.Sel("setCenter:"), value) } -func (o_ OpTileObject) HasWidth() bool { - return o_.RespondsToSelector(objc.Sel("width")) +func (o_ OpTileObject) HasCenter() bool { + return o_.RespondsToSelector(objc.Sel("center")) } -// The width of a tile. [Full Topic] +// The x and y position to use as the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228603-width?language=objc -func (o_ OpTileObject) Width() float32 { - rv := objc.Call[float32](o_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228600-center?language=objc +func (o_ OpTileObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](o_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/page_curl_transition_protocol.gen.go b/macos/coreimage/page_curl_transition_protocol.gen.go index 98784582..7411af58 100644 --- a/macos/coreimage/page_curl_transition_protocol.gen.go +++ b/macos/coreimage/page_curl_transition_protocol.gen.go @@ -19,6 +19,14 @@ type PPageCurlTransition interface { Radius() float32 HasRadius() bool + // optional + SetExtent(value coregraphics.Rect) + HasSetExtent() bool + + // optional + Extent() coregraphics.Rect + HasExtent() bool + // optional SetAngle(value float32) HasSetAngle() bool @@ -42,14 +50,6 @@ type PPageCurlTransition interface { // optional ShadingImage() Image HasShadingImage() bool - - // optional - SetExtent(value coregraphics.Rect) - HasSetExtent() bool - - // optional - Extent() coregraphics.Rect - HasExtent() bool } // ensure impl type implements protocol interface @@ -83,6 +83,29 @@ func (p_ PageCurlTransitionObject) Radius() float32 { return rv } +func (p_ PageCurlTransitionObject) HasSetExtent() bool { + return p_.RespondsToSelector(objc.Sel("setExtent:")) +} + +// The extent of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurltransition/3228620-extent?language=objc +func (p_ PageCurlTransitionObject) SetExtent(value coregraphics.Rect) { + objc.Call[objc.Void](p_, objc.Sel("setExtent:"), value) +} + +func (p_ PageCurlTransitionObject) HasExtent() bool { + return p_.RespondsToSelector(objc.Sel("extent")) +} + +// The extent of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurltransition/3228620-extent?language=objc +func (p_ PageCurlTransitionObject) Extent() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](p_, objc.Sel("extent")) + return rv +} + func (p_ PageCurlTransitionObject) HasSetAngle() bool { return p_.RespondsToSelector(objc.Sel("setAngle:")) } @@ -151,26 +174,3 @@ func (p_ PageCurlTransitionObject) ShadingImage() Image { rv := objc.Call[Image](p_, objc.Sel("shadingImage")) return rv } - -func (p_ PageCurlTransitionObject) HasSetExtent() bool { - return p_.RespondsToSelector(objc.Sel("setExtent:")) -} - -// The extent of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurltransition/3228620-extent?language=objc -func (p_ PageCurlTransitionObject) SetExtent(value coregraphics.Rect) { - objc.Call[objc.Void](p_, objc.Sel("setExtent:"), value) -} - -func (p_ PageCurlTransitionObject) HasExtent() bool { - return p_.RespondsToSelector(objc.Sel("extent")) -} - -// The extent of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurltransition/3228620-extent?language=objc -func (p_ PageCurlTransitionObject) Extent() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](p_, objc.Sel("extent")) - return rv -} diff --git a/macos/coreimage/page_curl_with_shadow_transition_protocol.gen.go b/macos/coreimage/page_curl_with_shadow_transition_protocol.gen.go index 8b4ef85f..c15f64c2 100644 --- a/macos/coreimage/page_curl_with_shadow_transition_protocol.gen.go +++ b/macos/coreimage/page_curl_with_shadow_transition_protocol.gen.go @@ -12,20 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition?language=objc type PPageCurlWithShadowTransition interface { // optional - SetShadowSize(value float32) - HasSetShadowSize() bool + SetShadowExtent(value coregraphics.Rect) + HasSetShadowExtent() bool // optional - ShadowSize() float32 - HasShadowSize() bool + ShadowExtent() coregraphics.Rect + HasShadowExtent() bool // optional - SetBacksideImage(value Image) - HasSetBacksideImage() bool + SetShadowAmount(value float32) + HasSetShadowAmount() bool // optional - BacksideImage() Image - HasBacksideImage() bool + ShadowAmount() float32 + HasShadowAmount() bool // optional SetRadius(value float32) @@ -35,14 +35,6 @@ type PPageCurlWithShadowTransition interface { Radius() float32 HasRadius() bool - // optional - SetAngle(value float32) - HasSetAngle() bool - - // optional - Angle() float32 - HasAngle() bool - // optional SetExtent(value coregraphics.Rect) HasSetExtent() bool @@ -52,20 +44,28 @@ type PPageCurlWithShadowTransition interface { HasExtent() bool // optional - SetShadowAmount(value float32) - HasSetShadowAmount() bool + SetAngle(value float32) + HasSetAngle() bool // optional - ShadowAmount() float32 - HasShadowAmount() bool + Angle() float32 + HasAngle() bool // optional - SetShadowExtent(value coregraphics.Rect) - HasSetShadowExtent() bool + SetShadowSize(value float32) + HasSetShadowSize() bool // optional - ShadowExtent() coregraphics.Rect - HasShadowExtent() bool + ShadowSize() float32 + HasShadowSize() bool + + // optional + SetBacksideImage(value Image) + HasSetBacksideImage() bool + + // optional + BacksideImage() Image + HasBacksideImage() bool } // ensure impl type implements protocol interface @@ -76,49 +76,49 @@ type PageCurlWithShadowTransitionObject struct { objc.Object } -func (p_ PageCurlWithShadowTransitionObject) HasSetShadowSize() bool { - return p_.RespondsToSelector(objc.Sel("setShadowSize:")) +func (p_ PageCurlWithShadowTransitionObject) HasSetShadowExtent() bool { + return p_.RespondsToSelector(objc.Sel("setShadowExtent:")) } -// The maximum size, in pixels, of the shadow. [Full Topic] +// The rectagular portion of input image that casts a shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228630-shadowsize?language=objc -func (p_ PageCurlWithShadowTransitionObject) SetShadowSize(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setShadowSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228629-shadowextent?language=objc +func (p_ PageCurlWithShadowTransitionObject) SetShadowExtent(value coregraphics.Rect) { + objc.Call[objc.Void](p_, objc.Sel("setShadowExtent:"), value) } -func (p_ PageCurlWithShadowTransitionObject) HasShadowSize() bool { - return p_.RespondsToSelector(objc.Sel("shadowSize")) +func (p_ PageCurlWithShadowTransitionObject) HasShadowExtent() bool { + return p_.RespondsToSelector(objc.Sel("shadowExtent")) } -// The maximum size, in pixels, of the shadow. [Full Topic] +// The rectagular portion of input image that casts a shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228630-shadowsize?language=objc -func (p_ PageCurlWithShadowTransitionObject) ShadowSize() float32 { - rv := objc.Call[float32](p_, objc.Sel("shadowSize")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228629-shadowextent?language=objc +func (p_ PageCurlWithShadowTransitionObject) ShadowExtent() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](p_, objc.Sel("shadowExtent")) return rv } -func (p_ PageCurlWithShadowTransitionObject) HasSetBacksideImage() bool { - return p_.RespondsToSelector(objc.Sel("setBacksideImage:")) +func (p_ PageCurlWithShadowTransitionObject) HasSetShadowAmount() bool { + return p_.RespondsToSelector(objc.Sel("setShadowAmount:")) } -// The image that appears on the back of the source image as the page curls to reveal the target image. [Full Topic] +// The strength of the shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228625-backsideimage?language=objc -func (p_ PageCurlWithShadowTransitionObject) SetBacksideImage(value Image) { - objc.Call[objc.Void](p_, objc.Sel("setBacksideImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228628-shadowamount?language=objc +func (p_ PageCurlWithShadowTransitionObject) SetShadowAmount(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setShadowAmount:"), value) } -func (p_ PageCurlWithShadowTransitionObject) HasBacksideImage() bool { - return p_.RespondsToSelector(objc.Sel("backsideImage")) +func (p_ PageCurlWithShadowTransitionObject) HasShadowAmount() bool { + return p_.RespondsToSelector(objc.Sel("shadowAmount")) } -// The image that appears on the back of the source image as the page curls to reveal the target image. [Full Topic] +// The strength of the shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228625-backsideimage?language=objc -func (p_ PageCurlWithShadowTransitionObject) BacksideImage() Image { - rv := objc.Call[Image](p_, objc.Sel("backsideImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228628-shadowamount?language=objc +func (p_ PageCurlWithShadowTransitionObject) ShadowAmount() float32 { + rv := objc.Call[float32](p_, objc.Sel("shadowAmount")) return rv } @@ -145,29 +145,6 @@ func (p_ PageCurlWithShadowTransitionObject) Radius() float32 { return rv } -func (p_ PageCurlWithShadowTransitionObject) HasSetAngle() bool { - return p_.RespondsToSelector(objc.Sel("setAngle:")) -} - -// The angle of the curling page. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228624-angle?language=objc -func (p_ PageCurlWithShadowTransitionObject) SetAngle(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setAngle:"), value) -} - -func (p_ PageCurlWithShadowTransitionObject) HasAngle() bool { - return p_.RespondsToSelector(objc.Sel("angle")) -} - -// The angle of the curling page. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228624-angle?language=objc -func (p_ PageCurlWithShadowTransitionObject) Angle() float32 { - rv := objc.Call[float32](p_, objc.Sel("angle")) - return rv -} - func (p_ PageCurlWithShadowTransitionObject) HasSetExtent() bool { return p_.RespondsToSelector(objc.Sel("setExtent:")) } @@ -191,48 +168,71 @@ func (p_ PageCurlWithShadowTransitionObject) Extent() coregraphics.Rect { return rv } -func (p_ PageCurlWithShadowTransitionObject) HasSetShadowAmount() bool { - return p_.RespondsToSelector(objc.Sel("setShadowAmount:")) +func (p_ PageCurlWithShadowTransitionObject) HasSetAngle() bool { + return p_.RespondsToSelector(objc.Sel("setAngle:")) } -// The strength of the shadow. [Full Topic] +// The angle of the curling page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228628-shadowamount?language=objc -func (p_ PageCurlWithShadowTransitionObject) SetShadowAmount(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setShadowAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228624-angle?language=objc +func (p_ PageCurlWithShadowTransitionObject) SetAngle(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setAngle:"), value) } -func (p_ PageCurlWithShadowTransitionObject) HasShadowAmount() bool { - return p_.RespondsToSelector(objc.Sel("shadowAmount")) +func (p_ PageCurlWithShadowTransitionObject) HasAngle() bool { + return p_.RespondsToSelector(objc.Sel("angle")) } -// The strength of the shadow. [Full Topic] +// The angle of the curling page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228628-shadowamount?language=objc -func (p_ PageCurlWithShadowTransitionObject) ShadowAmount() float32 { - rv := objc.Call[float32](p_, objc.Sel("shadowAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228624-angle?language=objc +func (p_ PageCurlWithShadowTransitionObject) Angle() float32 { + rv := objc.Call[float32](p_, objc.Sel("angle")) return rv } -func (p_ PageCurlWithShadowTransitionObject) HasSetShadowExtent() bool { - return p_.RespondsToSelector(objc.Sel("setShadowExtent:")) +func (p_ PageCurlWithShadowTransitionObject) HasSetShadowSize() bool { + return p_.RespondsToSelector(objc.Sel("setShadowSize:")) } -// The rectagular portion of input image that casts a shadow. [Full Topic] +// The maximum size, in pixels, of the shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228629-shadowextent?language=objc -func (p_ PageCurlWithShadowTransitionObject) SetShadowExtent(value coregraphics.Rect) { - objc.Call[objc.Void](p_, objc.Sel("setShadowExtent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228630-shadowsize?language=objc +func (p_ PageCurlWithShadowTransitionObject) SetShadowSize(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setShadowSize:"), value) } -func (p_ PageCurlWithShadowTransitionObject) HasShadowExtent() bool { - return p_.RespondsToSelector(objc.Sel("shadowExtent")) +func (p_ PageCurlWithShadowTransitionObject) HasShadowSize() bool { + return p_.RespondsToSelector(objc.Sel("shadowSize")) } -// The rectagular portion of input image that casts a shadow. [Full Topic] +// The maximum size, in pixels, of the shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228629-shadowextent?language=objc -func (p_ PageCurlWithShadowTransitionObject) ShadowExtent() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](p_, objc.Sel("shadowExtent")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228630-shadowsize?language=objc +func (p_ PageCurlWithShadowTransitionObject) ShadowSize() float32 { + rv := objc.Call[float32](p_, objc.Sel("shadowSize")) + return rv +} + +func (p_ PageCurlWithShadowTransitionObject) HasSetBacksideImage() bool { + return p_.RespondsToSelector(objc.Sel("setBacksideImage:")) +} + +// The image that appears on the back of the source image as the page curls to reveal the target image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228625-backsideimage?language=objc +func (p_ PageCurlWithShadowTransitionObject) SetBacksideImage(value Image) { + objc.Call[objc.Void](p_, objc.Sel("setBacksideImage:"), value) +} + +func (p_ PageCurlWithShadowTransitionObject) HasBacksideImage() bool { + return p_.RespondsToSelector(objc.Sel("backsideImage")) +} + +// The image that appears on the back of the source image as the page curls to reveal the target image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228625-backsideimage?language=objc +func (p_ PageCurlWithShadowTransitionObject) BacksideImage() Image { + rv := objc.Call[Image](p_, objc.Sel("backsideImage")) return rv } diff --git a/macos/coreimage/palette_centroid_protocol.gen.go b/macos/coreimage/palette_centroid_protocol.gen.go index 632b6ae6..18ac3a23 100644 --- a/macos/coreimage/palette_centroid_protocol.gen.go +++ b/macos/coreimage/palette_centroid_protocol.gen.go @@ -18,14 +18,6 @@ type PPaletteCentroid interface { InputImage() Image HasInputImage() bool - // optional - SetPaletteImage(value Image) - HasSetPaletteImage() bool - - // optional - PaletteImage() Image - HasPaletteImage() bool - // optional SetPerceptual(value bool) HasSetPerceptual() bool @@ -33,6 +25,14 @@ type PPaletteCentroid interface { // optional Perceptual() bool HasPerceptual() bool + + // optional + SetPaletteImage(value Image) + HasSetPaletteImage() bool + + // optional + PaletteImage() Image + HasPaletteImage() bool } // ensure impl type implements protocol interface @@ -66,29 +66,6 @@ func (p_ PaletteCentroidObject) InputImage() Image { return rv } -func (p_ PaletteCentroidObject) HasSetPaletteImage() bool { - return p_.RespondsToSelector(objc.Sel("setPaletteImage:")) -} - -// The input color palette, obtained by using a k-means clustering filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettecentroid/3228633-paletteimage?language=objc -func (p_ PaletteCentroidObject) SetPaletteImage(value Image) { - objc.Call[objc.Void](p_, objc.Sel("setPaletteImage:"), value) -} - -func (p_ PaletteCentroidObject) HasPaletteImage() bool { - return p_.RespondsToSelector(objc.Sel("paletteImage")) -} - -// The input color palette, obtained by using a k-means clustering filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettecentroid/3228633-paletteimage?language=objc -func (p_ PaletteCentroidObject) PaletteImage() Image { - rv := objc.Call[Image](p_, objc.Sel("paletteImage")) - return rv -} - func (p_ PaletteCentroidObject) HasSetPerceptual() bool { return p_.RespondsToSelector(objc.Sel("setPerceptual:")) } @@ -111,3 +88,26 @@ func (p_ PaletteCentroidObject) Perceptual() bool { rv := objc.Call[bool](p_, objc.Sel("perceptual")) return rv } + +func (p_ PaletteCentroidObject) HasSetPaletteImage() bool { + return p_.RespondsToSelector(objc.Sel("setPaletteImage:")) +} + +// The input color palette, obtained by using a k-means clustering filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettecentroid/3228633-paletteimage?language=objc +func (p_ PaletteCentroidObject) SetPaletteImage(value Image) { + objc.Call[objc.Void](p_, objc.Sel("setPaletteImage:"), value) +} + +func (p_ PaletteCentroidObject) HasPaletteImage() bool { + return p_.RespondsToSelector(objc.Sel("paletteImage")) +} + +// The input color palette, obtained by using a k-means clustering filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettecentroid/3228633-paletteimage?language=objc +func (p_ PaletteCentroidObject) PaletteImage() Image { + rv := objc.Call[Image](p_, objc.Sel("paletteImage")) + return rv +} diff --git a/macos/coreimage/palettize_protocol.gen.go b/macos/coreimage/palettize_protocol.gen.go index 4e882ee0..c91e436c 100644 --- a/macos/coreimage/palettize_protocol.gen.go +++ b/macos/coreimage/palettize_protocol.gen.go @@ -10,6 +10,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettize?language=objc type PPalettize interface { + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetPerceptual(value bool) HasSetPerceptual() bool @@ -25,14 +33,6 @@ type PPalettize interface { // optional PaletteImage() Image HasPaletteImage() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool } // ensure impl type implements protocol interface @@ -43,6 +43,29 @@ type PalettizeObject struct { objc.Object } +func (p_ PalettizeObject) HasSetInputImage() bool { + return p_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettize/3228636-inputimage?language=objc +func (p_ PalettizeObject) SetInputImage(value Image) { + objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), value) +} + +func (p_ PalettizeObject) HasInputImage() bool { + return p_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettize/3228636-inputimage?language=objc +func (p_ PalettizeObject) InputImage() Image { + rv := objc.Call[Image](p_, objc.Sel("inputImage")) + return rv +} + func (p_ PalettizeObject) HasSetPerceptual() bool { return p_.RespondsToSelector(objc.Sel("setPerceptual:")) } @@ -88,26 +111,3 @@ func (p_ PalettizeObject) PaletteImage() Image { rv := objc.Call[Image](p_, objc.Sel("paletteImage")) return rv } - -func (p_ PalettizeObject) HasSetInputImage() bool { - return p_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettize/3228636-inputimage?language=objc -func (p_ PalettizeObject) SetInputImage(value Image) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), value) -} - -func (p_ PalettizeObject) HasInputImage() bool { - return p_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettize/3228636-inputimage?language=objc -func (p_ PalettizeObject) InputImage() Image { - rv := objc.Call[Image](p_, objc.Sel("inputImage")) - return rv -} diff --git a/macos/coreimage/parallelogram_tile_protocol.gen.go b/macos/coreimage/parallelogram_tile_protocol.gen.go index 977d859d..69148173 100644 --- a/macos/coreimage/parallelogram_tile_protocol.gen.go +++ b/macos/coreimage/parallelogram_tile_protocol.gen.go @@ -19,14 +19,6 @@ type PParallelogramTile interface { Width() float32 HasWidth() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -35,6 +27,14 @@ type PParallelogramTile interface { InputImage() Image HasInputImage() bool + // optional + SetAngle(value float32) + HasSetAngle() bool + + // optional + Angle() float32 + HasAngle() bool + // optional SetAcuteAngle(value float32) HasSetAcuteAngle() bool @@ -44,12 +44,12 @@ type PParallelogramTile interface { HasAcuteAngle() bool // optional - SetAngle(value float32) - HasSetAngle() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Angle() float32 - HasAngle() bool + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -83,29 +83,6 @@ func (p_ ParallelogramTileObject) Width() float32 { return rv } -func (p_ ParallelogramTileObject) HasSetCenter() bool { - return p_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228642-center?language=objc -func (p_ ParallelogramTileObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setCenter:"), value) -} - -func (p_ ParallelogramTileObject) HasCenter() bool { - return p_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228642-center?language=objc -func (p_ ParallelogramTileObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("center")) - return rv -} - func (p_ ParallelogramTileObject) HasSetInputImage() bool { return p_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -129,6 +106,29 @@ func (p_ ParallelogramTileObject) InputImage() Image { return rv } +func (p_ ParallelogramTileObject) HasSetAngle() bool { + return p_.RespondsToSelector(objc.Sel("setAngle:")) +} + +// The angle, in radians, of the tiled pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228641-angle?language=objc +func (p_ ParallelogramTileObject) SetAngle(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setAngle:"), value) +} + +func (p_ ParallelogramTileObject) HasAngle() bool { + return p_.RespondsToSelector(objc.Sel("angle")) +} + +// The angle, in radians, of the tiled pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228641-angle?language=objc +func (p_ ParallelogramTileObject) Angle() float32 { + rv := objc.Call[float32](p_, objc.Sel("angle")) + return rv +} + func (p_ ParallelogramTileObject) HasSetAcuteAngle() bool { return p_.RespondsToSelector(objc.Sel("setAcuteAngle:")) } @@ -152,25 +152,25 @@ func (p_ ParallelogramTileObject) AcuteAngle() float32 { return rv } -func (p_ ParallelogramTileObject) HasSetAngle() bool { - return p_.RespondsToSelector(objc.Sel("setAngle:")) +func (p_ ParallelogramTileObject) HasSetCenter() bool { + return p_.RespondsToSelector(objc.Sel("setCenter:")) } -// The angle, in radians, of the tiled pattern. [Full Topic] +// The x and y position to use as the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228641-angle?language=objc -func (p_ ParallelogramTileObject) SetAngle(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228642-center?language=objc +func (p_ ParallelogramTileObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](p_, objc.Sel("setCenter:"), value) } -func (p_ ParallelogramTileObject) HasAngle() bool { - return p_.RespondsToSelector(objc.Sel("angle")) +func (p_ ParallelogramTileObject) HasCenter() bool { + return p_.RespondsToSelector(objc.Sel("center")) } -// The angle, in radians, of the tiled pattern. [Full Topic] +// The x and y position to use as the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228641-angle?language=objc -func (p_ ParallelogramTileObject) Angle() float32 { - rv := objc.Call[float32](p_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228642-center?language=objc +func (p_ ParallelogramTileObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](p_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/pd_f417_barcode_generator_protocol.gen.go b/macos/coreimage/pd_f417_barcode_generator_protocol.gen.go index 66fc5914..a5171ce8 100644 --- a/macos/coreimage/pd_f417_barcode_generator_protocol.gen.go +++ b/macos/coreimage/pd_f417_barcode_generator_protocol.gen.go @@ -11,28 +11,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator?language=objc type PPDF417BarcodeGenerator interface { // optional - SetMessage(value []byte) - HasSetMessage() bool - - // optional - Message() []byte - HasMessage() bool - - // optional - SetAlwaysSpecifyCompaction(value float32) - HasSetAlwaysSpecifyCompaction() bool + SetMinHeight(value float32) + HasSetMinHeight() bool // optional - AlwaysSpecifyCompaction() float32 - HasAlwaysSpecifyCompaction() bool + MinHeight() float32 + HasMinHeight() bool // optional - SetRows(value float32) - HasSetRows() bool + SetDataColumns(value float32) + HasSetDataColumns() bool // optional - Rows() float32 - HasRows() bool + DataColumns() float32 + HasDataColumns() bool // optional SetMinWidth(value float32) @@ -42,6 +34,14 @@ type PPDF417BarcodeGenerator interface { MinWidth() float32 HasMinWidth() bool + // optional + SetMaxHeight(value float32) + HasSetMaxHeight() bool + + // optional + MaxHeight() float32 + HasMaxHeight() bool + // optional SetMaxWidth(value float32) HasSetMaxWidth() bool @@ -51,60 +51,60 @@ type PPDF417BarcodeGenerator interface { HasMaxWidth() bool // optional - SetCorrectionLevel(value float32) - HasSetCorrectionLevel() bool + SetRows(value float32) + HasSetRows() bool // optional - CorrectionLevel() float32 - HasCorrectionLevel() bool + Rows() float32 + HasRows() bool // optional - SetCompactStyle(value float32) - HasSetCompactStyle() bool + SetPreferredAspectRatio(value float32) + HasSetPreferredAspectRatio() bool // optional - CompactStyle() float32 - HasCompactStyle() bool + PreferredAspectRatio() float32 + HasPreferredAspectRatio() bool // optional - SetMaxHeight(value float32) - HasSetMaxHeight() bool + SetAlwaysSpecifyCompaction(value float32) + HasSetAlwaysSpecifyCompaction() bool // optional - MaxHeight() float32 - HasMaxHeight() bool + AlwaysSpecifyCompaction() float32 + HasAlwaysSpecifyCompaction() bool // optional - SetPreferredAspectRatio(value float32) - HasSetPreferredAspectRatio() bool + SetCompactionMode(value float32) + HasSetCompactionMode() bool // optional - PreferredAspectRatio() float32 - HasPreferredAspectRatio() bool + CompactionMode() float32 + HasCompactionMode() bool // optional - SetMinHeight(value float32) - HasSetMinHeight() bool + SetCompactStyle(value float32) + HasSetCompactStyle() bool // optional - MinHeight() float32 - HasMinHeight() bool + CompactStyle() float32 + HasCompactStyle() bool // optional - SetDataColumns(value float32) - HasSetDataColumns() bool + SetMessage(value []byte) + HasSetMessage() bool // optional - DataColumns() float32 - HasDataColumns() bool + Message() []byte + HasMessage() bool // optional - SetCompactionMode(value float32) - HasSetCompactionMode() bool + SetCorrectionLevel(value float32) + HasSetCorrectionLevel() bool // optional - CompactionMode() float32 - HasCompactionMode() bool + CorrectionLevel() float32 + HasCorrectionLevel() bool } // ensure impl type implements protocol interface @@ -115,72 +115,49 @@ type PDF417BarcodeGeneratorObject struct { objc.Object } -func (p_ PDF417BarcodeGeneratorObject) HasSetMessage() bool { - return p_.RespondsToSelector(objc.Sel("setMessage:")) -} - -// The message to encode in the PDF417 barcode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228612-message?language=objc -func (p_ PDF417BarcodeGeneratorObject) SetMessage(value []byte) { - objc.Call[objc.Void](p_, objc.Sel("setMessage:"), value) -} - -func (p_ PDF417BarcodeGeneratorObject) HasMessage() bool { - return p_.RespondsToSelector(objc.Sel("message")) -} - -// The message to encode in the PDF417 barcode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228612-message?language=objc -func (p_ PDF417BarcodeGeneratorObject) Message() []byte { - rv := objc.Call[[]byte](p_, objc.Sel("message")) - return rv -} - -func (p_ PDF417BarcodeGeneratorObject) HasSetAlwaysSpecifyCompaction() bool { - return p_.RespondsToSelector(objc.Sel("setAlwaysSpecifyCompaction:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetMinHeight() bool { + return p_.RespondsToSelector(objc.Sel("setMinHeight:")) } -// A Boolean value specifying whether to force compaction style. [Full Topic] +// The minimum height, in pixels, of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228605-alwaysspecifycompaction?language=objc -func (p_ PDF417BarcodeGeneratorObject) SetAlwaysSpecifyCompaction(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setAlwaysSpecifyCompaction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228613-minheight?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetMinHeight(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setMinHeight:"), value) } -func (p_ PDF417BarcodeGeneratorObject) HasAlwaysSpecifyCompaction() bool { - return p_.RespondsToSelector(objc.Sel("alwaysSpecifyCompaction")) +func (p_ PDF417BarcodeGeneratorObject) HasMinHeight() bool { + return p_.RespondsToSelector(objc.Sel("minHeight")) } -// A Boolean value specifying whether to force compaction style. [Full Topic] +// The minimum height, in pixels, of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228605-alwaysspecifycompaction?language=objc -func (p_ PDF417BarcodeGeneratorObject) AlwaysSpecifyCompaction() float32 { - rv := objc.Call[float32](p_, objc.Sel("alwaysSpecifyCompaction")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228613-minheight?language=objc +func (p_ PDF417BarcodeGeneratorObject) MinHeight() float32 { + rv := objc.Call[float32](p_, objc.Sel("minHeight")) return rv } -func (p_ PDF417BarcodeGeneratorObject) HasSetRows() bool { - return p_.RespondsToSelector(objc.Sel("setRows:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetDataColumns() bool { + return p_.RespondsToSelector(objc.Sel("setDataColumns:")) } -// The number of rows in the generated barcode. [Full Topic] +// The number of data columns in the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228616-rows?language=objc -func (p_ PDF417BarcodeGeneratorObject) SetRows(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setRows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228609-datacolumns?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetDataColumns(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setDataColumns:"), value) } -func (p_ PDF417BarcodeGeneratorObject) HasRows() bool { - return p_.RespondsToSelector(objc.Sel("rows")) +func (p_ PDF417BarcodeGeneratorObject) HasDataColumns() bool { + return p_.RespondsToSelector(objc.Sel("dataColumns")) } -// The number of rows in the generated barcode. [Full Topic] +// The number of data columns in the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228616-rows?language=objc -func (p_ PDF417BarcodeGeneratorObject) Rows() float32 { - rv := objc.Call[float32](p_, objc.Sel("rows")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228609-datacolumns?language=objc +func (p_ PDF417BarcodeGeneratorObject) DataColumns() float32 { + rv := objc.Call[float32](p_, objc.Sel("dataColumns")) return rv } @@ -207,6 +184,29 @@ func (p_ PDF417BarcodeGeneratorObject) MinWidth() float32 { return rv } +func (p_ PDF417BarcodeGeneratorObject) HasSetMaxHeight() bool { + return p_.RespondsToSelector(objc.Sel("setMaxHeight:")) +} + +// The maximum height, in pixels, of the generated barcode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228610-maxheight?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetMaxHeight(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setMaxHeight:"), value) +} + +func (p_ PDF417BarcodeGeneratorObject) HasMaxHeight() bool { + return p_.RespondsToSelector(objc.Sel("maxHeight")) +} + +// The maximum height, in pixels, of the generated barcode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228610-maxheight?language=objc +func (p_ PDF417BarcodeGeneratorObject) MaxHeight() float32 { + rv := objc.Call[float32](p_, objc.Sel("maxHeight")) + return rv +} + func (p_ PDF417BarcodeGeneratorObject) HasSetMaxWidth() bool { return p_.RespondsToSelector(objc.Sel("setMaxWidth:")) } @@ -230,163 +230,163 @@ func (p_ PDF417BarcodeGeneratorObject) MaxWidth() float32 { return rv } -func (p_ PDF417BarcodeGeneratorObject) HasSetCorrectionLevel() bool { - return p_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetRows() bool { + return p_.RespondsToSelector(objc.Sel("setRows:")) } -// The correction level ratio of the generated barcode. [Full Topic] +// The number of rows in the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228608-correctionlevel?language=objc -func (p_ PDF417BarcodeGeneratorObject) SetCorrectionLevel(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setCorrectionLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228616-rows?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetRows(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setRows:"), value) } -func (p_ PDF417BarcodeGeneratorObject) HasCorrectionLevel() bool { - return p_.RespondsToSelector(objc.Sel("correctionLevel")) +func (p_ PDF417BarcodeGeneratorObject) HasRows() bool { + return p_.RespondsToSelector(objc.Sel("rows")) } -// The correction level ratio of the generated barcode. [Full Topic] +// The number of rows in the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228608-correctionlevel?language=objc -func (p_ PDF417BarcodeGeneratorObject) CorrectionLevel() float32 { - rv := objc.Call[float32](p_, objc.Sel("correctionLevel")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228616-rows?language=objc +func (p_ PDF417BarcodeGeneratorObject) Rows() float32 { + rv := objc.Call[float32](p_, objc.Sel("rows")) return rv } -func (p_ PDF417BarcodeGeneratorObject) HasSetCompactStyle() bool { - return p_.RespondsToSelector(objc.Sel("setCompactStyle:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetPreferredAspectRatio() bool { + return p_.RespondsToSelector(objc.Sel("setPreferredAspectRatio:")) } -// A Boolean value specifying whether to force compact style Aztec code. [Full Topic] +// The preferred aspect ratio of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228606-compactstyle?language=objc -func (p_ PDF417BarcodeGeneratorObject) SetCompactStyle(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setCompactStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228615-preferredaspectratio?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetPreferredAspectRatio(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredAspectRatio:"), value) } -func (p_ PDF417BarcodeGeneratorObject) HasCompactStyle() bool { - return p_.RespondsToSelector(objc.Sel("compactStyle")) +func (p_ PDF417BarcodeGeneratorObject) HasPreferredAspectRatio() bool { + return p_.RespondsToSelector(objc.Sel("preferredAspectRatio")) } -// A Boolean value specifying whether to force compact style Aztec code. [Full Topic] +// The preferred aspect ratio of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228606-compactstyle?language=objc -func (p_ PDF417BarcodeGeneratorObject) CompactStyle() float32 { - rv := objc.Call[float32](p_, objc.Sel("compactStyle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228615-preferredaspectratio?language=objc +func (p_ PDF417BarcodeGeneratorObject) PreferredAspectRatio() float32 { + rv := objc.Call[float32](p_, objc.Sel("preferredAspectRatio")) return rv } -func (p_ PDF417BarcodeGeneratorObject) HasSetMaxHeight() bool { - return p_.RespondsToSelector(objc.Sel("setMaxHeight:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetAlwaysSpecifyCompaction() bool { + return p_.RespondsToSelector(objc.Sel("setAlwaysSpecifyCompaction:")) } -// The maximum height, in pixels, of the generated barcode. [Full Topic] +// A Boolean value specifying whether to force compaction style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228610-maxheight?language=objc -func (p_ PDF417BarcodeGeneratorObject) SetMaxHeight(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setMaxHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228605-alwaysspecifycompaction?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetAlwaysSpecifyCompaction(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setAlwaysSpecifyCompaction:"), value) } -func (p_ PDF417BarcodeGeneratorObject) HasMaxHeight() bool { - return p_.RespondsToSelector(objc.Sel("maxHeight")) +func (p_ PDF417BarcodeGeneratorObject) HasAlwaysSpecifyCompaction() bool { + return p_.RespondsToSelector(objc.Sel("alwaysSpecifyCompaction")) } -// The maximum height, in pixels, of the generated barcode. [Full Topic] +// A Boolean value specifying whether to force compaction style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228610-maxheight?language=objc -func (p_ PDF417BarcodeGeneratorObject) MaxHeight() float32 { - rv := objc.Call[float32](p_, objc.Sel("maxHeight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228605-alwaysspecifycompaction?language=objc +func (p_ PDF417BarcodeGeneratorObject) AlwaysSpecifyCompaction() float32 { + rv := objc.Call[float32](p_, objc.Sel("alwaysSpecifyCompaction")) return rv } -func (p_ PDF417BarcodeGeneratorObject) HasSetPreferredAspectRatio() bool { - return p_.RespondsToSelector(objc.Sel("setPreferredAspectRatio:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetCompactionMode() bool { + return p_.RespondsToSelector(objc.Sel("setCompactionMode:")) } -// The preferred aspect ratio of the generated barcode. [Full Topic] +// The compaction mode of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228615-preferredaspectratio?language=objc -func (p_ PDF417BarcodeGeneratorObject) SetPreferredAspectRatio(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setPreferredAspectRatio:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228607-compactionmode?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetCompactionMode(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setCompactionMode:"), value) } -func (p_ PDF417BarcodeGeneratorObject) HasPreferredAspectRatio() bool { - return p_.RespondsToSelector(objc.Sel("preferredAspectRatio")) +func (p_ PDF417BarcodeGeneratorObject) HasCompactionMode() bool { + return p_.RespondsToSelector(objc.Sel("compactionMode")) } -// The preferred aspect ratio of the generated barcode. [Full Topic] +// The compaction mode of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228615-preferredaspectratio?language=objc -func (p_ PDF417BarcodeGeneratorObject) PreferredAspectRatio() float32 { - rv := objc.Call[float32](p_, objc.Sel("preferredAspectRatio")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228607-compactionmode?language=objc +func (p_ PDF417BarcodeGeneratorObject) CompactionMode() float32 { + rv := objc.Call[float32](p_, objc.Sel("compactionMode")) return rv } -func (p_ PDF417BarcodeGeneratorObject) HasSetMinHeight() bool { - return p_.RespondsToSelector(objc.Sel("setMinHeight:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetCompactStyle() bool { + return p_.RespondsToSelector(objc.Sel("setCompactStyle:")) } -// The minimum height, in pixels, of the generated barcode. [Full Topic] +// A Boolean value specifying whether to force compact style Aztec code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228613-minheight?language=objc -func (p_ PDF417BarcodeGeneratorObject) SetMinHeight(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setMinHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228606-compactstyle?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetCompactStyle(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setCompactStyle:"), value) } -func (p_ PDF417BarcodeGeneratorObject) HasMinHeight() bool { - return p_.RespondsToSelector(objc.Sel("minHeight")) +func (p_ PDF417BarcodeGeneratorObject) HasCompactStyle() bool { + return p_.RespondsToSelector(objc.Sel("compactStyle")) } -// The minimum height, in pixels, of the generated barcode. [Full Topic] +// A Boolean value specifying whether to force compact style Aztec code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228613-minheight?language=objc -func (p_ PDF417BarcodeGeneratorObject) MinHeight() float32 { - rv := objc.Call[float32](p_, objc.Sel("minHeight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228606-compactstyle?language=objc +func (p_ PDF417BarcodeGeneratorObject) CompactStyle() float32 { + rv := objc.Call[float32](p_, objc.Sel("compactStyle")) return rv } -func (p_ PDF417BarcodeGeneratorObject) HasSetDataColumns() bool { - return p_.RespondsToSelector(objc.Sel("setDataColumns:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetMessage() bool { + return p_.RespondsToSelector(objc.Sel("setMessage:")) } -// The number of data columns in the generated barcode. [Full Topic] +// The message to encode in the PDF417 barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228609-datacolumns?language=objc -func (p_ PDF417BarcodeGeneratorObject) SetDataColumns(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setDataColumns:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228612-message?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetMessage(value []byte) { + objc.Call[objc.Void](p_, objc.Sel("setMessage:"), value) } -func (p_ PDF417BarcodeGeneratorObject) HasDataColumns() bool { - return p_.RespondsToSelector(objc.Sel("dataColumns")) +func (p_ PDF417BarcodeGeneratorObject) HasMessage() bool { + return p_.RespondsToSelector(objc.Sel("message")) } -// The number of data columns in the generated barcode. [Full Topic] +// The message to encode in the PDF417 barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228609-datacolumns?language=objc -func (p_ PDF417BarcodeGeneratorObject) DataColumns() float32 { - rv := objc.Call[float32](p_, objc.Sel("dataColumns")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228612-message?language=objc +func (p_ PDF417BarcodeGeneratorObject) Message() []byte { + rv := objc.Call[[]byte](p_, objc.Sel("message")) return rv } -func (p_ PDF417BarcodeGeneratorObject) HasSetCompactionMode() bool { - return p_.RespondsToSelector(objc.Sel("setCompactionMode:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetCorrectionLevel() bool { + return p_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) } -// The compaction mode of the generated barcode. [Full Topic] +// The correction level ratio of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228607-compactionmode?language=objc -func (p_ PDF417BarcodeGeneratorObject) SetCompactionMode(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setCompactionMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228608-correctionlevel?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetCorrectionLevel(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setCorrectionLevel:"), value) } -func (p_ PDF417BarcodeGeneratorObject) HasCompactionMode() bool { - return p_.RespondsToSelector(objc.Sel("compactionMode")) +func (p_ PDF417BarcodeGeneratorObject) HasCorrectionLevel() bool { + return p_.RespondsToSelector(objc.Sel("correctionLevel")) } -// The compaction mode of the generated barcode. [Full Topic] +// The correction level ratio of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228607-compactionmode?language=objc -func (p_ PDF417BarcodeGeneratorObject) CompactionMode() float32 { - rv := objc.Call[float32](p_, objc.Sel("compactionMode")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228608-correctionlevel?language=objc +func (p_ PDF417BarcodeGeneratorObject) CorrectionLevel() float32 { + rv := objc.Call[float32](p_, objc.Sel("correctionLevel")) return rv } diff --git a/macos/coreimage/pd_f417_code_descriptor.gen.go b/macos/coreimage/pd_f417_code_descriptor.gen.go index 6d66b03b..cfb360e2 100644 --- a/macos/coreimage/pd_f417_code_descriptor.gen.go +++ b/macos/coreimage/pd_f417_code_descriptor.gen.go @@ -18,10 +18,10 @@ type _PDF417CodeDescriptorClass struct { // An interface definition for the [PDF417CodeDescriptor] class. type IPDF417CodeDescriptor interface { IBarcodeDescriptor - ErrorCorrectedPayload() []byte - RowCount() int IsCompact() bool ColumnCount() int + RowCount() int + ErrorCorrectedPayload() []byte } // A concrete subclass of CIBarcodeDescriptor that represents a PDF 417 symbol. [Full Topic] @@ -83,22 +83,6 @@ func (p_ PDF417CodeDescriptor) Init() PDF417CodeDescriptor { return rv } -// The error-corrected payload containing the data encoded in the PDF417 code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417codedescriptor/2875204-errorcorrectedpayload?language=objc -func (p_ PDF417CodeDescriptor) ErrorCorrectedPayload() []byte { - rv := objc.Call[[]byte](p_, objc.Sel("errorCorrectedPayload")) - return rv -} - -// The number of rows in the PDF417 code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417codedescriptor/2875199-rowcount?language=objc -func (p_ PDF417CodeDescriptor) RowCount() int { - rv := objc.Call[int](p_, objc.Sel("rowCount")) - return rv -} - // A boolean value telling if the PDF417 code is compact. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417codedescriptor/2875194-iscompact?language=objc @@ -114,3 +98,19 @@ func (p_ PDF417CodeDescriptor) ColumnCount() int { rv := objc.Call[int](p_, objc.Sel("columnCount")) return rv } + +// The number of rows in the PDF417 code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417codedescriptor/2875199-rowcount?language=objc +func (p_ PDF417CodeDescriptor) RowCount() int { + rv := objc.Call[int](p_, objc.Sel("rowCount")) + return rv +} + +// The error-corrected payload containing the data encoded in the PDF417 code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417codedescriptor/2875204-errorcorrectedpayload?language=objc +func (p_ PDF417CodeDescriptor) ErrorCorrectedPayload() []byte { + rv := objc.Call[[]byte](p_, objc.Sel("errorCorrectedPayload")) + return rv +} diff --git a/macos/coreimage/person_segmentation_protocol.gen.go b/macos/coreimage/person_segmentation_protocol.gen.go index d085308e..f015f558 100644 --- a/macos/coreimage/person_segmentation_protocol.gen.go +++ b/macos/coreimage/person_segmentation_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipersonsegmentation?language=objc type PPersonSegmentation interface { - // optional - SetQualityLevel(value uint) - HasSetQualityLevel() bool - - // optional - QualityLevel() uint - HasQualityLevel() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PPersonSegmentation interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetQualityLevel(value uint) + HasSetQualityLevel() bool + + // optional + QualityLevel() uint + HasQualityLevel() bool } // ensure impl type implements protocol interface @@ -35,48 +35,48 @@ type PersonSegmentationObject struct { objc.Object } -func (p_ PersonSegmentationObject) HasSetQualityLevel() bool { - return p_.RespondsToSelector(objc.Sel("setQualityLevel:")) +func (p_ PersonSegmentationObject) HasSetInputImage() bool { + return p_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipersonsegmentation/3784637-qualitylevel?language=objc -func (p_ PersonSegmentationObject) SetQualityLevel(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setQualityLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipersonsegmentation/3750392-inputimage?language=objc +func (p_ PersonSegmentationObject) SetInputImage(value Image) { + objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), value) } -func (p_ PersonSegmentationObject) HasQualityLevel() bool { - return p_.RespondsToSelector(objc.Sel("qualityLevel")) +func (p_ PersonSegmentationObject) HasInputImage() bool { + return p_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipersonsegmentation/3784637-qualitylevel?language=objc -func (p_ PersonSegmentationObject) QualityLevel() uint { - rv := objc.Call[uint](p_, objc.Sel("qualityLevel")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipersonsegmentation/3750392-inputimage?language=objc +func (p_ PersonSegmentationObject) InputImage() Image { + rv := objc.Call[Image](p_, objc.Sel("inputImage")) return rv } -func (p_ PersonSegmentationObject) HasSetInputImage() bool { - return p_.RespondsToSelector(objc.Sel("setInputImage:")) +func (p_ PersonSegmentationObject) HasSetQualityLevel() bool { + return p_.RespondsToSelector(objc.Sel("setQualityLevel:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipersonsegmentation/3750392-inputimage?language=objc -func (p_ PersonSegmentationObject) SetInputImage(value Image) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipersonsegmentation/3784637-qualitylevel?language=objc +func (p_ PersonSegmentationObject) SetQualityLevel(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setQualityLevel:"), value) } -func (p_ PersonSegmentationObject) HasInputImage() bool { - return p_.RespondsToSelector(objc.Sel("inputImage")) +func (p_ PersonSegmentationObject) HasQualityLevel() bool { + return p_.RespondsToSelector(objc.Sel("qualityLevel")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipersonsegmentation/3750392-inputimage?language=objc -func (p_ PersonSegmentationObject) InputImage() Image { - rv := objc.Call[Image](p_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipersonsegmentation/3784637-qualitylevel?language=objc +func (p_ PersonSegmentationObject) QualityLevel() uint { + rv := objc.Call[uint](p_, objc.Sel("qualityLevel")) return rv } diff --git a/macos/coreimage/perspective_rotate_protocol.gen.go b/macos/coreimage/perspective_rotate_protocol.gen.go index 3ac26003..1cc435f9 100644 --- a/macos/coreimage/perspective_rotate_protocol.gen.go +++ b/macos/coreimage/perspective_rotate_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate?language=objc type PPerspectiveRotate interface { - // optional - SetRoll(value float32) - HasSetRoll() bool - - // optional - Roll() float32 - HasRoll() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -27,12 +19,12 @@ type PPerspectiveRotate interface { HasInputImage() bool // optional - SetFocalLength(value float32) - HasSetFocalLength() bool + SetRoll(value float32) + HasSetRoll() bool // optional - FocalLength() float32 - HasFocalLength() bool + Roll() float32 + HasRoll() bool // optional SetYaw(value float32) @@ -42,6 +34,14 @@ type PPerspectiveRotate interface { Yaw() float32 HasYaw() bool + // optional + SetFocalLength(value float32) + HasSetFocalLength() bool + + // optional + FocalLength() float32 + HasFocalLength() bool + // optional SetPitch(value float32) HasSetPitch() bool @@ -59,29 +59,6 @@ type PerspectiveRotateObject struct { objc.Object } -func (p_ PerspectiveRotateObject) HasSetRoll() bool { - return p_.RespondsToSelector(objc.Sel("setRoll:")) -} - -// The roll angle, in radians. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325540-roll?language=objc -func (p_ PerspectiveRotateObject) SetRoll(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setRoll:"), value) -} - -func (p_ PerspectiveRotateObject) HasRoll() bool { - return p_.RespondsToSelector(objc.Sel("roll")) -} - -// The roll angle, in radians. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325540-roll?language=objc -func (p_ PerspectiveRotateObject) Roll() float32 { - rv := objc.Call[float32](p_, objc.Sel("roll")) - return rv -} - func (p_ PerspectiveRotateObject) HasSetInputImage() bool { return p_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -105,26 +82,26 @@ func (p_ PerspectiveRotateObject) InputImage() Image { return rv } -func (p_ PerspectiveRotateObject) HasSetFocalLength() bool { - return p_.RespondsToSelector(objc.Sel("setFocalLength:")) +func (p_ PerspectiveRotateObject) HasSetRoll() bool { + return p_.RespondsToSelector(objc.Sel("setRoll:")) } -// The 35mm equivalent focal length of the input image. [Full Topic] +// The roll angle, in radians. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325537-focallength?language=objc -func (p_ PerspectiveRotateObject) SetFocalLength(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setFocalLength:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325540-roll?language=objc +func (p_ PerspectiveRotateObject) SetRoll(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setRoll:"), value) } -func (p_ PerspectiveRotateObject) HasFocalLength() bool { - return p_.RespondsToSelector(objc.Sel("focalLength")) +func (p_ PerspectiveRotateObject) HasRoll() bool { + return p_.RespondsToSelector(objc.Sel("roll")) } -// The 35mm equivalent focal length of the input image. [Full Topic] +// The roll angle, in radians. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325537-focallength?language=objc -func (p_ PerspectiveRotateObject) FocalLength() float32 { - rv := objc.Call[float32](p_, objc.Sel("focalLength")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325540-roll?language=objc +func (p_ PerspectiveRotateObject) Roll() float32 { + rv := objc.Call[float32](p_, objc.Sel("roll")) return rv } @@ -151,6 +128,29 @@ func (p_ PerspectiveRotateObject) Yaw() float32 { return rv } +func (p_ PerspectiveRotateObject) HasSetFocalLength() bool { + return p_.RespondsToSelector(objc.Sel("setFocalLength:")) +} + +// The 35mm equivalent focal length of the input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325537-focallength?language=objc +func (p_ PerspectiveRotateObject) SetFocalLength(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setFocalLength:"), value) +} + +func (p_ PerspectiveRotateObject) HasFocalLength() bool { + return p_.RespondsToSelector(objc.Sel("focalLength")) +} + +// The 35mm equivalent focal length of the input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325537-focallength?language=objc +func (p_ PerspectiveRotateObject) FocalLength() float32 { + rv := objc.Call[float32](p_, objc.Sel("focalLength")) + return rv +} + func (p_ PerspectiveRotateObject) HasSetPitch() bool { return p_.RespondsToSelector(objc.Sel("setPitch:")) } diff --git a/macos/coreimage/perspective_tile_protocol.gen.go b/macos/coreimage/perspective_tile_protocol.gen.go index cc99e6f0..23672854 100644 --- a/macos/coreimage/perspective_tile_protocol.gen.go +++ b/macos/coreimage/perspective_tile_protocol.gen.go @@ -19,22 +19,6 @@ type PPerspectiveTile interface { BottomRight() coregraphics.Point HasBottomRight() bool - // optional - SetTopRight(value coregraphics.Point) - HasSetTopRight() bool - - // optional - TopRight() coregraphics.Point - HasTopRight() bool - - // optional - SetTopLeft(value coregraphics.Point) - HasSetTopLeft() bool - - // optional - TopLeft() coregraphics.Point - HasTopLeft() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -50,6 +34,22 @@ type PPerspectiveTile interface { // optional BottomLeft() coregraphics.Point HasBottomLeft() bool + + // optional + SetTopRight(value coregraphics.Point) + HasSetTopRight() bool + + // optional + TopRight() coregraphics.Point + HasTopRight() bool + + // optional + SetTopLeft(value coregraphics.Point) + HasSetTopLeft() bool + + // optional + TopLeft() coregraphics.Point + HasTopLeft() bool } // ensure impl type implements protocol interface @@ -83,52 +83,6 @@ func (p_ PerspectiveTileObject) BottomRight() coregraphics.Point { return rv } -func (p_ PerspectiveTileObject) HasSetTopRight() bool { - return p_.RespondsToSelector(objc.Sel("setTopRight:")) -} - -// The top-right coordinate of a tile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228657-topright?language=objc -func (p_ PerspectiveTileObject) SetTopRight(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setTopRight:"), value) -} - -func (p_ PerspectiveTileObject) HasTopRight() bool { - return p_.RespondsToSelector(objc.Sel("topRight")) -} - -// The top-right coordinate of a tile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228657-topright?language=objc -func (p_ PerspectiveTileObject) TopRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("topRight")) - return rv -} - -func (p_ PerspectiveTileObject) HasSetTopLeft() bool { - return p_.RespondsToSelector(objc.Sel("setTopLeft:")) -} - -// The top-left coordinate of a tile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228656-topleft?language=objc -func (p_ PerspectiveTileObject) SetTopLeft(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setTopLeft:"), value) -} - -func (p_ PerspectiveTileObject) HasTopLeft() bool { - return p_.RespondsToSelector(objc.Sel("topLeft")) -} - -// The top-left coordinate of a tile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228656-topleft?language=objc -func (p_ PerspectiveTileObject) TopLeft() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("topLeft")) - return rv -} - func (p_ PerspectiveTileObject) HasSetInputImage() bool { return p_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -174,3 +128,49 @@ func (p_ PerspectiveTileObject) BottomLeft() coregraphics.Point { rv := objc.Call[coregraphics.Point](p_, objc.Sel("bottomLeft")) return rv } + +func (p_ PerspectiveTileObject) HasSetTopRight() bool { + return p_.RespondsToSelector(objc.Sel("setTopRight:")) +} + +// The top-right coordinate of a tile. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228657-topright?language=objc +func (p_ PerspectiveTileObject) SetTopRight(value coregraphics.Point) { + objc.Call[objc.Void](p_, objc.Sel("setTopRight:"), value) +} + +func (p_ PerspectiveTileObject) HasTopRight() bool { + return p_.RespondsToSelector(objc.Sel("topRight")) +} + +// The top-right coordinate of a tile. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228657-topright?language=objc +func (p_ PerspectiveTileObject) TopRight() coregraphics.Point { + rv := objc.Call[coregraphics.Point](p_, objc.Sel("topRight")) + return rv +} + +func (p_ PerspectiveTileObject) HasSetTopLeft() bool { + return p_.RespondsToSelector(objc.Sel("setTopLeft:")) +} + +// The top-left coordinate of a tile. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228656-topleft?language=objc +func (p_ PerspectiveTileObject) SetTopLeft(value coregraphics.Point) { + objc.Call[objc.Void](p_, objc.Sel("setTopLeft:"), value) +} + +func (p_ PerspectiveTileObject) HasTopLeft() bool { + return p_.RespondsToSelector(objc.Sel("topLeft")) +} + +// The top-left coordinate of a tile. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228656-topleft?language=objc +func (p_ PerspectiveTileObject) TopLeft() coregraphics.Point { + rv := objc.Call[coregraphics.Point](p_, objc.Sel("topLeft")) + return rv +} diff --git a/macos/coreimage/pinch_distortion_protocol.gen.go b/macos/coreimage/pinch_distortion_protocol.gen.go index 29892e69..b3c0fe05 100644 --- a/macos/coreimage/pinch_distortion_protocol.gen.go +++ b/macos/coreimage/pinch_distortion_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion?language=objc type PPinchDistortion interface { - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetScale(value float32) HasSetScale() bool @@ -27,14 +19,6 @@ type PPinchDistortion interface { Scale() float32 HasScale() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -42,6 +26,22 @@ type PPinchDistortion interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetRadius(value float32) + HasSetRadius() bool + + // optional + Radius() float32 + HasRadius() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,94 +52,94 @@ type PinchDistortionObject struct { objc.Object } -func (p_ PinchDistortionObject) HasSetRadius() bool { - return p_.RespondsToSelector(objc.Sel("setRadius:")) +func (p_ PinchDistortionObject) HasSetScale() bool { + return p_.RespondsToSelector(objc.Sel("setScale:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600189-radius?language=objc -func (p_ PinchDistortionObject) SetRadius(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600190-scale?language=objc +func (p_ PinchDistortionObject) SetScale(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setScale:"), value) } -func (p_ PinchDistortionObject) HasRadius() bool { - return p_.RespondsToSelector(objc.Sel("radius")) +func (p_ PinchDistortionObject) HasScale() bool { + return p_.RespondsToSelector(objc.Sel("scale")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600189-radius?language=objc -func (p_ PinchDistortionObject) Radius() float32 { - rv := objc.Call[float32](p_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600190-scale?language=objc +func (p_ PinchDistortionObject) Scale() float32 { + rv := objc.Call[float32](p_, objc.Sel("scale")) return rv } -func (p_ PinchDistortionObject) HasSetScale() bool { - return p_.RespondsToSelector(objc.Sel("setScale:")) +func (p_ PinchDistortionObject) HasSetInputImage() bool { + return p_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600190-scale?language=objc -func (p_ PinchDistortionObject) SetScale(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600188-inputimage?language=objc +func (p_ PinchDistortionObject) SetInputImage(value Image) { + objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), value) } -func (p_ PinchDistortionObject) HasScale() bool { - return p_.RespondsToSelector(objc.Sel("scale")) +func (p_ PinchDistortionObject) HasInputImage() bool { + return p_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600190-scale?language=objc -func (p_ PinchDistortionObject) Scale() float32 { - rv := objc.Call[float32](p_, objc.Sel("scale")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600188-inputimage?language=objc +func (p_ PinchDistortionObject) InputImage() Image { + rv := objc.Call[Image](p_, objc.Sel("inputImage")) return rv } -func (p_ PinchDistortionObject) HasSetCenter() bool { - return p_.RespondsToSelector(objc.Sel("setCenter:")) +func (p_ PinchDistortionObject) HasSetRadius() bool { + return p_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600187-center?language=objc -func (p_ PinchDistortionObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600189-radius?language=objc +func (p_ PinchDistortionObject) SetRadius(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setRadius:"), value) } -func (p_ PinchDistortionObject) HasCenter() bool { - return p_.RespondsToSelector(objc.Sel("center")) +func (p_ PinchDistortionObject) HasRadius() bool { + return p_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600187-center?language=objc -func (p_ PinchDistortionObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600189-radius?language=objc +func (p_ PinchDistortionObject) Radius() float32 { + rv := objc.Call[float32](p_, objc.Sel("radius")) return rv } -func (p_ PinchDistortionObject) HasSetInputImage() bool { - return p_.RespondsToSelector(objc.Sel("setInputImage:")) +func (p_ PinchDistortionObject) HasSetCenter() bool { + return p_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600188-inputimage?language=objc -func (p_ PinchDistortionObject) SetInputImage(value Image) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600187-center?language=objc +func (p_ PinchDistortionObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](p_, objc.Sel("setCenter:"), value) } -func (p_ PinchDistortionObject) HasInputImage() bool { - return p_.RespondsToSelector(objc.Sel("inputImage")) +func (p_ PinchDistortionObject) HasCenter() bool { + return p_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600188-inputimage?language=objc -func (p_ PinchDistortionObject) InputImage() Image { - rv := objc.Call[Image](p_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600187-center?language=objc +func (p_ PinchDistortionObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](p_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/pixellate_protocol.gen.go b/macos/coreimage/pixellate_protocol.gen.go index aee59a67..c1be7618 100644 --- a/macos/coreimage/pixellate_protocol.gen.go +++ b/macos/coreimage/pixellate_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate?language=objc type PPixellate interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool - // optional SetScale(value float32) HasSetScale() bool @@ -27,6 +19,14 @@ type PPixellate interface { Scale() float32 HasScale() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -44,29 +44,6 @@ type PixellateObject struct { objc.Object } -func (p_ PixellateObject) HasSetInputImage() bool { - return p_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate/3228675-inputimage?language=objc -func (p_ PixellateObject) SetInputImage(value Image) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), value) -} - -func (p_ PixellateObject) HasInputImage() bool { - return p_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate/3228675-inputimage?language=objc -func (p_ PixellateObject) InputImage() Image { - rv := objc.Call[Image](p_, objc.Sel("inputImage")) - return rv -} - func (p_ PixellateObject) HasSetScale() bool { return p_.RespondsToSelector(objc.Sel("setScale:")) } @@ -90,6 +67,29 @@ func (p_ PixellateObject) Scale() float32 { return rv } +func (p_ PixellateObject) HasSetInputImage() bool { + return p_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate/3228675-inputimage?language=objc +func (p_ PixellateObject) SetInputImage(value Image) { + objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), value) +} + +func (p_ PixellateObject) HasInputImage() bool { + return p_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate/3228675-inputimage?language=objc +func (p_ PixellateObject) InputImage() Image { + rv := objc.Call[Image](p_, objc.Sel("inputImage")) + return rv +} + func (p_ PixellateObject) HasSetCenter() bool { return p_.RespondsToSelector(objc.Sel("setCenter:")) } diff --git a/macos/coreimage/plug_in.gen.go b/macos/coreimage/plug_in.gen.go index 9493c46e..21071e55 100644 --- a/macos/coreimage/plug_in.gen.go +++ b/macos/coreimage/plug_in.gen.go @@ -54,20 +54,6 @@ func (p_ PlugIn) Init() PlugIn { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciplugin/3180431-loadnonexecutableplugin?language=objc -func (pc _PlugInClass) LoadNonExecutablePlugIn(url foundation.IURL) { - objc.Call[objc.Void](pc, objc.Sel("loadNonExecutablePlugIn:"), url) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciplugin/3180431-loadnonexecutableplugin?language=objc -func PlugIn_LoadNonExecutablePlugIn(url foundation.IURL) { - PlugInClass.LoadNonExecutablePlugIn(url) -} - // Scans directories for files that have the .plugin extension and then loads only those filters that are marked by the image unit as non-executable filters. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciplugin/1437599-loadnonexecutableplugins?language=objc @@ -81,3 +67,17 @@ func (pc _PlugInClass) LoadNonExecutablePlugIns() { func PlugIn_LoadNonExecutablePlugIns() { PlugInClass.LoadNonExecutablePlugIns() } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciplugin/3180431-loadnonexecutableplugin?language=objc +func (pc _PlugInClass) LoadNonExecutablePlugIn(url foundation.IURL) { + objc.Call[objc.Void](pc, objc.Sel("loadNonExecutablePlugIn:"), url) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciplugin/3180431-loadnonexecutableplugin?language=objc +func PlugIn_LoadNonExecutablePlugIn(url foundation.IURL) { + PlugInClass.LoadNonExecutablePlugIn(url) +} diff --git a/macos/coreimage/pointillize_protocol.gen.go b/macos/coreimage/pointillize_protocol.gen.go index 321d604e..3f13ae4d 100644 --- a/macos/coreimage/pointillize_protocol.gen.go +++ b/macos/coreimage/pointillize_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipointillize?language=objc type PPointillize interface { - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -34,6 +26,14 @@ type PPointillize interface { // optional Radius() float32 HasRadius() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -44,29 +44,6 @@ type PointillizeObject struct { objc.Object } -func (p_ PointillizeObject) HasSetCenter() bool { - return p_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipointillize/3228678-center?language=objc -func (p_ PointillizeObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setCenter:"), value) -} - -func (p_ PointillizeObject) HasCenter() bool { - return p_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipointillize/3228678-center?language=objc -func (p_ PointillizeObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("center")) - return rv -} - func (p_ PointillizeObject) HasSetInputImage() bool { return p_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -112,3 +89,26 @@ func (p_ PointillizeObject) Radius() float32 { rv := objc.Call[float32](p_, objc.Sel("radius")) return rv } + +func (p_ PointillizeObject) HasSetCenter() bool { + return p_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipointillize/3228678-center?language=objc +func (p_ PointillizeObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](p_, objc.Sel("setCenter:"), value) +} + +func (p_ PointillizeObject) HasCenter() bool { + return p_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipointillize/3228678-center?language=objc +func (p_ PointillizeObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](p_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/qr_code_descriptor.gen.go b/macos/coreimage/qr_code_descriptor.gen.go index c57b0eea..ea9ea411 100644 --- a/macos/coreimage/qr_code_descriptor.gen.go +++ b/macos/coreimage/qr_code_descriptor.gen.go @@ -18,9 +18,9 @@ type _QRCodeDescriptorClass struct { // An interface definition for the [QRCodeDescriptor] class. type IQRCodeDescriptor interface { IBarcodeDescriptor - ErrorCorrectionLevel() QRCodeErrorCorrectionLevel - MaskPattern() uint8 SymbolVersion() int + MaskPattern() uint8 + ErrorCorrectionLevel() QRCodeErrorCorrectionLevel ErrorCorrectedPayload() []byte } @@ -37,18 +37,6 @@ func QRCodeDescriptorFrom(ptr unsafe.Pointer) QRCodeDescriptor { } } -func (qc _QRCodeDescriptorClass) DescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload []byte, symbolVersion int, maskPattern uint8, errorCorrectionLevel QRCodeErrorCorrectionLevel) QRCodeDescriptor { - rv := objc.Call[QRCodeDescriptor](qc, objc.Sel("descriptorWithPayload:symbolVersion:maskPattern:errorCorrectionLevel:"), errorCorrectedPayload, symbolVersion, maskPattern, errorCorrectionLevel) - return rv -} - -// Creates a QR code descriptor encoding the given payload and parameters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodedescriptor/2875169-descriptorwithpayload?language=objc -func QRCodeDescriptor_DescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload []byte, symbolVersion int, maskPattern uint8, errorCorrectionLevel QRCodeErrorCorrectionLevel) QRCodeDescriptor { - return QRCodeDescriptorClass.DescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload, symbolVersion, maskPattern, errorCorrectionLevel) -} - func (q_ QRCodeDescriptor) InitWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload []byte, symbolVersion int, maskPattern uint8, errorCorrectionLevel QRCodeErrorCorrectionLevel) QRCodeDescriptor { rv := objc.Call[QRCodeDescriptor](q_, objc.Sel("initWithPayload:symbolVersion:maskPattern:errorCorrectionLevel:"), errorCorrectedPayload, symbolVersion, maskPattern, errorCorrectionLevel) return rv @@ -63,6 +51,18 @@ func NewQRCodeDescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel( return instance } +func (qc _QRCodeDescriptorClass) DescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload []byte, symbolVersion int, maskPattern uint8, errorCorrectionLevel QRCodeErrorCorrectionLevel) QRCodeDescriptor { + rv := objc.Call[QRCodeDescriptor](qc, objc.Sel("descriptorWithPayload:symbolVersion:maskPattern:errorCorrectionLevel:"), errorCorrectedPayload, symbolVersion, maskPattern, errorCorrectionLevel) + return rv +} + +// Creates a QR code descriptor encoding the given payload and parameters. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodedescriptor/2875169-descriptorwithpayload?language=objc +func QRCodeDescriptor_DescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload []byte, symbolVersion int, maskPattern uint8, errorCorrectionLevel QRCodeErrorCorrectionLevel) QRCodeDescriptor { + return QRCodeDescriptorClass.DescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload, symbolVersion, maskPattern, errorCorrectionLevel) +} + func (qc _QRCodeDescriptorClass) Alloc() QRCodeDescriptor { rv := objc.Call[QRCodeDescriptor](qc, objc.Sel("alloc")) return rv @@ -83,11 +83,11 @@ func (q_ QRCodeDescriptor) Init() QRCodeDescriptor { return rv } -// The QR code error correction level. [Full Topic] +// The version of the QR code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodedescriptor/2875196-errorcorrectionlevel?language=objc -func (q_ QRCodeDescriptor) ErrorCorrectionLevel() QRCodeErrorCorrectionLevel { - rv := objc.Call[QRCodeErrorCorrectionLevel](q_, objc.Sel("errorCorrectionLevel")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodedescriptor/2875193-symbolversion?language=objc +func (q_ QRCodeDescriptor) SymbolVersion() int { + rv := objc.Call[int](q_, objc.Sel("symbolVersion")) return rv } @@ -99,11 +99,11 @@ func (q_ QRCodeDescriptor) MaskPattern() uint8 { return rv } -// The version of the QR code. [Full Topic] +// The QR code error correction level. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodedescriptor/2875193-symbolversion?language=objc -func (q_ QRCodeDescriptor) SymbolVersion() int { - rv := objc.Call[int](q_, objc.Sel("symbolVersion")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodedescriptor/2875196-errorcorrectionlevel?language=objc +func (q_ QRCodeDescriptor) ErrorCorrectionLevel() QRCodeErrorCorrectionLevel { + rv := objc.Call[QRCodeErrorCorrectionLevel](q_, objc.Sel("errorCorrectionLevel")) return rv } diff --git a/macos/coreimage/qr_code_feature.gen.go b/macos/coreimage/qr_code_feature.gen.go index 3bbe7d46..b6e8eae8 100644 --- a/macos/coreimage/qr_code_feature.gen.go +++ b/macos/coreimage/qr_code_feature.gen.go @@ -19,12 +19,12 @@ type _QRCodeFeatureClass struct { // An interface definition for the [QRCodeFeature] class. type IQRCodeFeature interface { IFeature - TopLeft() coregraphics.Point - SymbolDescriptor() QRCodeDescriptor - MessageString() string - BottomLeft() coregraphics.Point BottomRight() coregraphics.Point + BottomLeft() coregraphics.Point TopRight() coregraphics.Point + SymbolDescriptor() QRCodeDescriptor + TopLeft() coregraphics.Point + MessageString() string } // Information about a Quick Response code (a kind of 2D barcode) detected in a still or video image. [Full Topic] @@ -60,50 +60,50 @@ func (q_ QRCodeFeature) Init() QRCodeFeature { return rv } -// The upper-left corner of the detected barcode, in image coordinates. [Full Topic] +// The lower-right corner of the detected barcode, in image coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/1437780-topleft?language=objc -func (q_ QRCodeFeature) TopLeft() coregraphics.Point { - rv := objc.Call[coregraphics.Point](q_, objc.Sel("topLeft")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/1438245-bottomright?language=objc +func (q_ QRCodeFeature) BottomRight() coregraphics.Point { + rv := objc.Call[coregraphics.Point](q_, objc.Sel("bottomRight")) return rv } -// An abstract representation of a QR Code symbol. [Full Topic] +// The lower-left corner of the detected barcode, in image coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/2875553-symboldescriptor?language=objc -func (q_ QRCodeFeature) SymbolDescriptor() QRCodeDescriptor { - rv := objc.Call[QRCodeDescriptor](q_, objc.Sel("symbolDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/1437985-bottomleft?language=objc +func (q_ QRCodeFeature) BottomLeft() coregraphics.Point { + rv := objc.Call[coregraphics.Point](q_, objc.Sel("bottomLeft")) return rv } -// The string decoded from the detected barcode. [Full Topic] +// The upper-right corner of the detected barcode, in image coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/1438035-messagestring?language=objc -func (q_ QRCodeFeature) MessageString() string { - rv := objc.Call[string](q_, objc.Sel("messageString")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/1437896-topright?language=objc +func (q_ QRCodeFeature) TopRight() coregraphics.Point { + rv := objc.Call[coregraphics.Point](q_, objc.Sel("topRight")) return rv } -// The lower-left corner of the detected barcode, in image coordinates. [Full Topic] +// An abstract representation of a QR Code symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/1437985-bottomleft?language=objc -func (q_ QRCodeFeature) BottomLeft() coregraphics.Point { - rv := objc.Call[coregraphics.Point](q_, objc.Sel("bottomLeft")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/2875553-symboldescriptor?language=objc +func (q_ QRCodeFeature) SymbolDescriptor() QRCodeDescriptor { + rv := objc.Call[QRCodeDescriptor](q_, objc.Sel("symbolDescriptor")) return rv } -// The lower-right corner of the detected barcode, in image coordinates. [Full Topic] +// The upper-left corner of the detected barcode, in image coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/1438245-bottomright?language=objc -func (q_ QRCodeFeature) BottomRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](q_, objc.Sel("bottomRight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/1437780-topleft?language=objc +func (q_ QRCodeFeature) TopLeft() coregraphics.Point { + rv := objc.Call[coregraphics.Point](q_, objc.Sel("topLeft")) return rv } -// The upper-right corner of the detected barcode, in image coordinates. [Full Topic] +// The string decoded from the detected barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/1437896-topright?language=objc -func (q_ QRCodeFeature) TopRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](q_, objc.Sel("topRight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodefeature/1438035-messagestring?language=objc +func (q_ QRCodeFeature) MessageString() string { + rv := objc.Call[string](q_, objc.Sel("messageString")) return rv } diff --git a/macos/coreimage/qr_code_generator_protocol.gen.go b/macos/coreimage/qr_code_generator_protocol.gen.go index 8254eee0..2920c2a5 100644 --- a/macos/coreimage/qr_code_generator_protocol.gen.go +++ b/macos/coreimage/qr_code_generator_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator?language=objc type PQRCodeGenerator interface { - // optional - SetCorrectionLevel(value string) - HasSetCorrectionLevel() bool - - // optional - CorrectionLevel() string - HasCorrectionLevel() bool - // optional SetMessage(value []byte) HasSetMessage() bool @@ -25,6 +17,14 @@ type PQRCodeGenerator interface { // optional Message() []byte HasMessage() bool + + // optional + SetCorrectionLevel(value string) + HasSetCorrectionLevel() bool + + // optional + CorrectionLevel() string + HasCorrectionLevel() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type QRCodeGeneratorObject struct { objc.Object } -func (q_ QRCodeGeneratorObject) HasSetCorrectionLevel() bool { - return q_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) -} - -// The QR code correction level: L, M, Q, or H. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator/3228682-correctionlevel?language=objc -func (q_ QRCodeGeneratorObject) SetCorrectionLevel(value string) { - objc.Call[objc.Void](q_, objc.Sel("setCorrectionLevel:"), value) -} - -func (q_ QRCodeGeneratorObject) HasCorrectionLevel() bool { - return q_.RespondsToSelector(objc.Sel("correctionLevel")) -} - -// The QR code correction level: L, M, Q, or H. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator/3228682-correctionlevel?language=objc -func (q_ QRCodeGeneratorObject) CorrectionLevel() string { - rv := objc.Call[string](q_, objc.Sel("correctionLevel")) - return rv -} - func (q_ QRCodeGeneratorObject) HasSetMessage() bool { return q_.RespondsToSelector(objc.Sel("setMessage:")) } @@ -80,3 +57,26 @@ func (q_ QRCodeGeneratorObject) Message() []byte { rv := objc.Call[[]byte](q_, objc.Sel("message")) return rv } + +func (q_ QRCodeGeneratorObject) HasSetCorrectionLevel() bool { + return q_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) +} + +// The QR code correction level: L, M, Q, or H. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator/3228682-correctionlevel?language=objc +func (q_ QRCodeGeneratorObject) SetCorrectionLevel(value string) { + objc.Call[objc.Void](q_, objc.Sel("setCorrectionLevel:"), value) +} + +func (q_ QRCodeGeneratorObject) HasCorrectionLevel() bool { + return q_.RespondsToSelector(objc.Sel("correctionLevel")) +} + +// The QR code correction level: L, M, Q, or H. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator/3228682-correctionlevel?language=objc +func (q_ QRCodeGeneratorObject) CorrectionLevel() string { + rv := objc.Call[string](q_, objc.Sel("correctionLevel")) + return rv +} diff --git a/macos/coreimage/radial_gradient_protocol.gen.go b/macos/coreimage/radial_gradient_protocol.gen.go index 04d0bea7..55524b05 100644 --- a/macos/coreimage/radial_gradient_protocol.gen.go +++ b/macos/coreimage/radial_gradient_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient?language=objc type PRadialGradient interface { - // optional - SetColor1(value Color) - HasSetColor1() bool - - // optional - Color1() Color - HasColor1() bool - // optional SetRadius1(value float32) HasSetRadius1() bool @@ -35,14 +27,6 @@ type PRadialGradient interface { Radius0() float32 HasRadius0() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetColor0(value Color) HasSetColor0() bool @@ -50,6 +34,22 @@ type PRadialGradient interface { // optional Color0() Color HasColor0() bool + + // optional + SetColor1(value Color) + HasSetColor1() bool + + // optional + Color1() Color + HasColor1() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -60,29 +60,6 @@ type RadialGradientObject struct { objc.Object } -func (r_ RadialGradientObject) HasSetColor1() bool { - return r_.RespondsToSelector(objc.Sel("setColor1:")) -} - -// The second color to use in the gradient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228687-color1?language=objc -func (r_ RadialGradientObject) SetColor1(value Color) { - objc.Call[objc.Void](r_, objc.Sel("setColor1:"), value) -} - -func (r_ RadialGradientObject) HasColor1() bool { - return r_.RespondsToSelector(objc.Sel("color1")) -} - -// The second color to use in the gradient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228687-color1?language=objc -func (r_ RadialGradientObject) Color1() Color { - rv := objc.Call[Color](r_, objc.Sel("color1")) - return rv -} - func (r_ RadialGradientObject) HasSetRadius1() bool { return r_.RespondsToSelector(objc.Sel("setRadius1:")) } @@ -129,29 +106,6 @@ func (r_ RadialGradientObject) Radius0() float32 { return rv } -func (r_ RadialGradientObject) HasSetCenter() bool { - return r_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The center of the effect as x and y coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228685-center?language=objc -func (r_ RadialGradientObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](r_, objc.Sel("setCenter:"), value) -} - -func (r_ RadialGradientObject) HasCenter() bool { - return r_.RespondsToSelector(objc.Sel("center")) -} - -// The center of the effect as x and y coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228685-center?language=objc -func (r_ RadialGradientObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](r_, objc.Sel("center")) - return rv -} - func (r_ RadialGradientObject) HasSetColor0() bool { return r_.RespondsToSelector(objc.Sel("setColor0:")) } @@ -174,3 +128,49 @@ func (r_ RadialGradientObject) Color0() Color { rv := objc.Call[Color](r_, objc.Sel("color0")) return rv } + +func (r_ RadialGradientObject) HasSetColor1() bool { + return r_.RespondsToSelector(objc.Sel("setColor1:")) +} + +// The second color to use in the gradient. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228687-color1?language=objc +func (r_ RadialGradientObject) SetColor1(value Color) { + objc.Call[objc.Void](r_, objc.Sel("setColor1:"), value) +} + +func (r_ RadialGradientObject) HasColor1() bool { + return r_.RespondsToSelector(objc.Sel("color1")) +} + +// The second color to use in the gradient. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228687-color1?language=objc +func (r_ RadialGradientObject) Color1() Color { + rv := objc.Call[Color](r_, objc.Sel("color1")) + return rv +} + +func (r_ RadialGradientObject) HasSetCenter() bool { + return r_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The center of the effect as x and y coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228685-center?language=objc +func (r_ RadialGradientObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](r_, objc.Sel("setCenter:"), value) +} + +func (r_ RadialGradientObject) HasCenter() bool { + return r_.RespondsToSelector(objc.Sel("center")) +} + +// The center of the effect as x and y coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228685-center?language=objc +func (r_ RadialGradientObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](r_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/raw_filter.gen.go b/macos/coreimage/raw_filter.gen.go index 3e9e5100..b4d20390 100644 --- a/macos/coreimage/raw_filter.gen.go +++ b/macos/coreimage/raw_filter.gen.go @@ -22,72 +22,72 @@ type _RAWFilterClass struct { // An interface definition for the [RAWFilter] class. type IRAWFilter interface { IFilter + SemanticSegmentationSkyMatte() Image + IsSharpnessSupported() bool + SemanticSegmentationTeethMatte() Image + ScaleFactor() float32 + SetScaleFactor(value float32) + IsLocalToneMapSupported() bool + NeutralChromaticity() coregraphics.Point + SetNeutralChromaticity(value coregraphics.Point) + DecoderVersion() RAWDecoderVersion + SetDecoderVersion(value RAWDecoderVersion) + IsLensCorrectionSupported() bool + LocalToneMapAmount() float32 + SetLocalToneMapAmount(value float32) + IsLensCorrectionEnabled() bool + SetLensCorrectionEnabled(value bool) + IsGamutMappingEnabled() bool + SetGamutMappingEnabled(value bool) + IsDetailSupported() bool + IsMoireReductionSupported() bool + SharpnessAmount() float32 + SetSharpnessAmount(value float32) + ContrastAmount() float32 + SetContrastAmount(value float32) + IsLuminanceNoiseReductionSupported() bool + Properties() foundation.Dictionary + IsContrastSupported() bool + DetailAmount() float32 + SetDetailAmount(value float32) + ExtendedDynamicRangeAmount() float32 + SetExtendedDynamicRangeAmount(value float32) + IsColorNoiseReductionSupported() bool IsDraftModeEnabled() bool SetDraftModeEnabled(value bool) - PortraitEffectsMatte() Image - SemanticSegmentationGlassesMatte() Image - SemanticSegmentationTeethMatte() Image Exposure() float32 SetExposure(value float32) - SharpnessAmount() float32 - SetSharpnessAmount(value float32) - LuminanceNoiseReductionAmount() float32 - SetLuminanceNoiseReductionAmount(value float32) + BoostAmount() float32 + SetBoostAmount(value float32) + SemanticSegmentationHairMatte() Image + SemanticSegmentationGlassesMatte() Image + NeutralTint() float32 + SetNeutralTint(value float32) + NativeSize() coregraphics.Size BoostShadowAmount() float32 SetBoostShadowAmount(value float32) - IsDetailSupported() bool - ExtendedDynamicRangeAmount() float32 - SetExtendedDynamicRangeAmount(value float32) + ColorNoiseReductionAmount() float32 + SetColorNoiseReductionAmount(value float32) + SemanticSegmentationSkinMatte() Image + NeutralTemperature() float32 + SetNeutralTemperature(value float32) + PreviewImage() Image + LuminanceNoiseReductionAmount() float32 + SetLuminanceNoiseReductionAmount(value float32) + ShadowBias() float32 + SetShadowBias(value float32) SupportedDecoderVersions() []RAWDecoderVersion NeutralLocation() coregraphics.Point SetNeutralLocation(value coregraphics.Point) - NativeSize() coregraphics.Size - IsColorNoiseReductionSupported() bool - NeutralTint() float32 - SetNeutralTint(value float32) BaselineExposure() float32 SetBaselineExposure(value float32) - ShadowBias() float32 - SetShadowBias(value float32) - IsLuminanceNoiseReductionSupported() bool - IsLocalToneMapSupported() bool - NeutralChromaticity() coregraphics.Point - SetNeutralChromaticity(value coregraphics.Point) - NeutralTemperature() float32 - SetNeutralTemperature(value float32) - SemanticSegmentationSkyMatte() Image - IsGamutMappingEnabled() bool - SetGamutMappingEnabled(value bool) + PortraitEffectsMatte() Image LinearSpaceFilter() Filter SetLinearSpaceFilter(value IFilter) - LocalToneMapAmount() float32 - SetLocalToneMapAmount(value float32) - BoostAmount() float32 - SetBoostAmount(value float32) - DecoderVersion() RAWDecoderVersion - SetDecoderVersion(value RAWDecoderVersion) - ColorNoiseReductionAmount() float32 - SetColorNoiseReductionAmount(value float32) - IsSharpnessSupported() bool - IsMoireReductionSupported() bool - ScaleFactor() float32 - SetScaleFactor(value float32) - SemanticSegmentationSkinMatte() Image - Properties() foundation.Dictionary - PreviewImage() Image - DetailAmount() float32 - SetDetailAmount(value float32) - IsLensCorrectionSupported() bool - Orientation() imageio.ImagePropertyOrientation - SetOrientation(value imageio.ImagePropertyOrientation) - IsLensCorrectionEnabled() bool - SetLensCorrectionEnabled(value bool) - SemanticSegmentationHairMatte() Image MoireReductionAmount() float32 SetMoireReductionAmount(value float32) - IsContrastSupported() bool - ContrastAmount() float32 - SetContrastAmount(value float32) + Orientation() imageio.ImagePropertyOrientation + SetOrientation(value imageio.ImagePropertyOrientation) } // A filter subclass that produces an image by manipulating RAW image sensor data from a digital camera or scanner. [Full Topic] @@ -103,16 +103,16 @@ func RAWFilterFrom(ptr unsafe.Pointer) RAWFilter { } } -func (rc _RAWFilterClass) FilterWithImageDataIdentifierHint(data []byte, identifierHint string) RAWFilter { - rv := objc.Call[RAWFilter](rc, objc.Sel("filterWithImageData:identifierHint:"), data, identifierHint) +func (rc _RAWFilterClass) FilterWithCVPixelBufferProperties(buffer corevideo.PixelBufferRef, properties foundation.Dictionary) RAWFilter { + rv := objc.Call[RAWFilter](rc, objc.Sel("filterWithCVPixelBuffer:properties:"), buffer, properties) return rv } -// Creates a RAW filter from the image data and type hint that you specify. [Full Topic] +// Creates a RAW filter from the pixel buffer and its properties that you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801629-filterwithimagedata?language=objc -func RAWFilter_FilterWithImageDataIdentifierHint(data []byte, identifierHint string) RAWFilter { - return RAWFilterClass.FilterWithImageDataIdentifierHint(data, identifierHint) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801628-filterwithcvpixelbuffer?language=objc +func RAWFilter_FilterWithCVPixelBufferProperties(buffer corevideo.PixelBufferRef, properties foundation.Dictionary) RAWFilter { + return RAWFilterClass.FilterWithCVPixelBufferProperties(buffer, properties) } func (rc _RAWFilterClass) FilterWithImageURL(url foundation.IURL) RAWFilter { @@ -127,16 +127,16 @@ func RAWFilter_FilterWithImageURL(url foundation.IURL) RAWFilter { return RAWFilterClass.FilterWithImageURL(url) } -func (rc _RAWFilterClass) FilterWithCVPixelBufferProperties(buffer corevideo.PixelBufferRef, properties foundation.Dictionary) RAWFilter { - rv := objc.Call[RAWFilter](rc, objc.Sel("filterWithCVPixelBuffer:properties:"), buffer, properties) +func (rc _RAWFilterClass) FilterWithImageDataIdentifierHint(data []byte, identifierHint string) RAWFilter { + rv := objc.Call[RAWFilter](rc, objc.Sel("filterWithImageData:identifierHint:"), data, identifierHint) return rv } -// Creates a RAW filter from the pixel buffer and its properties that you specify. [Full Topic] +// Creates a RAW filter from the image data and type hint that you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801628-filterwithcvpixelbuffer?language=objc -func RAWFilter_FilterWithCVPixelBufferProperties(buffer corevideo.PixelBufferRef, properties foundation.Dictionary) RAWFilter { - return RAWFilterClass.FilterWithCVPixelBufferProperties(buffer, properties) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801629-filterwithimagedata?language=objc +func RAWFilter_FilterWithImageDataIdentifierHint(data []byte, identifierHint string) RAWFilter { + return RAWFilterClass.FilterWithImageDataIdentifierHint(data, identifierHint) } func (rc _RAWFilterClass) Alloc() RAWFilter { @@ -159,34 +159,19 @@ func (r_ RAWFilter) Init() RAWFilter { return rv } -// A Boolean that indicates whether to enable draft mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801625-draftmodeenabled?language=objc -func (r_ RAWFilter) IsDraftModeEnabled() bool { - rv := objc.Call[bool](r_, objc.Sel("isDraftModeEnabled")) - return rv -} - -// A Boolean that indicates whether to enable draft mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801625-draftmodeenabled?language=objc -func (r_ RAWFilter) SetDraftModeEnabled(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setDraftModeEnabled:"), value) -} - -// An optional auxiliary image that represents the portrait effects matte of the image. [Full Topic] +// An optional auxiliary image that represents the semantic segmentation sky matte of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801647-portraiteffectsmatte?language=objc -func (r_ RAWFilter) PortraitEffectsMatte() Image { - rv := objc.Call[Image](r_, objc.Sel("portraitEffectsMatte")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801654-semanticsegmentationskymatte?language=objc +func (r_ RAWFilter) SemanticSegmentationSkyMatte() Image { + rv := objc.Call[Image](r_, objc.Sel("semanticSegmentationSkyMatte")) return rv } -// An optional auxiliary image that represents the semantic segmentation glasses matte of the image. [Full Topic] +// A Boolean that indicates if the current image supports sharpness adjustments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801651-semanticsegmentationglassesmatte?language=objc -func (r_ RAWFilter) SemanticSegmentationGlassesMatte() Image { - rv := objc.Call[Image](r_, objc.Sel("semanticSegmentationGlassesMatte")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801658-sharpnesssupported?language=objc +func (r_ RAWFilter) IsSharpnessSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isSharpnessSupported")) return rv } @@ -213,171 +198,156 @@ func RAWFilter_SupportedCameraModels() []string { return RAWFilterClass.SupportedCameraModels() } -// A value that indicates the amount of exposure to apply to the image. [Full Topic] +// A value that indicates the desired scale factor to draw the output image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801626-exposure?language=objc -func (r_ RAWFilter) Exposure() float32 { - rv := objc.Call[float32](r_, objc.Sel("exposure")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801650-scalefactor?language=objc +func (r_ RAWFilter) ScaleFactor() float32 { + rv := objc.Call[float32](r_, objc.Sel("scaleFactor")) return rv } -// A value that indicates the amount of exposure to apply to the image. [Full Topic] +// A value that indicates the desired scale factor to draw the output image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801626-exposure?language=objc -func (r_ RAWFilter) SetExposure(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setExposure:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801650-scalefactor?language=objc +func (r_ RAWFilter) SetScaleFactor(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setScaleFactor:"), value) } -// A value that indicates the amount of sharpness to apply to the edges of the image. [Full Topic] +// A Boolean that indicates if the current image supports local tone curve adjustments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801657-sharpnessamount?language=objc -func (r_ RAWFilter) SharpnessAmount() float32 { - rv := objc.Call[float32](r_, objc.Sel("sharpnessAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801636-localtonemapsupported?language=objc +func (r_ RAWFilter) IsLocalToneMapSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isLocalToneMapSupported")) return rv } -// A value that indicates the amount of sharpness to apply to the edges of the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801657-sharpnessamount?language=objc -func (r_ RAWFilter) SetSharpnessAmount(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setSharpnessAmount:"), value) -} - -// A value that indicates the amount of luminance noise reduction to apply to the image. [Full Topic] +// A value that indicates the amount of white balance based on chromaticity values to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801637-luminancenoisereductionamount?language=objc -func (r_ RAWFilter) LuminanceNoiseReductionAmount() float32 { - rv := objc.Call[float32](r_, objc.Sel("luminanceNoiseReductionAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801642-neutralchromaticity?language=objc +func (r_ RAWFilter) NeutralChromaticity() coregraphics.Point { + rv := objc.Call[coregraphics.Point](r_, objc.Sel("neutralChromaticity")) return rv } -// A value that indicates the amount of luminance noise reduction to apply to the image. [Full Topic] +// A value that indicates the amount of white balance based on chromaticity values to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801637-luminancenoisereductionamount?language=objc -func (r_ RAWFilter) SetLuminanceNoiseReductionAmount(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setLuminanceNoiseReductionAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801642-neutralchromaticity?language=objc +func (r_ RAWFilter) SetNeutralChromaticity(value coregraphics.Point) { + objc.Call[objc.Void](r_, objc.Sel("setNeutralChromaticity:"), value) } -// A value that indicates the amount to boost the shadow areas of the image. [Full Topic] +// A value that indicates the decoder version to use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801617-boostshadowamount?language=objc -func (r_ RAWFilter) BoostShadowAmount() float32 { - rv := objc.Call[float32](r_, objc.Sel("boostShadowAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801622-decoderversion?language=objc +func (r_ RAWFilter) DecoderVersion() RAWDecoderVersion { + rv := objc.Call[RAWDecoderVersion](r_, objc.Sel("decoderVersion")) return rv } -// A value that indicates the amount to boost the shadow areas of the image. [Full Topic] +// A value that indicates the decoder version to use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801617-boostshadowamount?language=objc -func (r_ RAWFilter) SetBoostShadowAmount(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setBoostShadowAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801622-decoderversion?language=objc +func (r_ RAWFilter) SetDecoderVersion(value RAWDecoderVersion) { + objc.Call[objc.Void](r_, objc.Sel("setDecoderVersion:"), value) } -// A Boolean that indicates if the current image supports detail enhancement adjustments. [Full Topic] +// A Boolean that indicates if you can enable lens correction for the current image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801624-detailsupported?language=objc -func (r_ RAWFilter) IsDetailSupported() bool { - rv := objc.Call[bool](r_, objc.Sel("isDetailSupported")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801633-lenscorrectionsupported?language=objc +func (r_ RAWFilter) IsLensCorrectionSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isLensCorrectionSupported")) return rv } -// A value that indicates the amount of extended dynamic range (EDR) to apply to the image. [Full Topic] +// A value that indicates the amount of local tone curve to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3820998-extendeddynamicrangeamount?language=objc -func (r_ RAWFilter) ExtendedDynamicRangeAmount() float32 { - rv := objc.Call[float32](r_, objc.Sel("extendedDynamicRangeAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801635-localtonemapamount?language=objc +func (r_ RAWFilter) LocalToneMapAmount() float32 { + rv := objc.Call[float32](r_, objc.Sel("localToneMapAmount")) return rv } -// A value that indicates the amount of extended dynamic range (EDR) to apply to the image. [Full Topic] +// A value that indicates the amount of local tone curve to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3820998-extendeddynamicrangeamount?language=objc -func (r_ RAWFilter) SetExtendedDynamicRangeAmount(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setExtendedDynamicRangeAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801635-localtonemapamount?language=objc +func (r_ RAWFilter) SetLocalToneMapAmount(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setLocalToneMapAmount:"), value) } -// An array of all supported decoder versions for the given image type. [Full Topic] +// A Boolean that indicates whether to enable lens correction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801660-supporteddecoderversions?language=objc -func (r_ RAWFilter) SupportedDecoderVersions() []RAWDecoderVersion { - rv := objc.Call[[]RAWDecoderVersion](r_, objc.Sel("supportedDecoderVersions")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801632-lenscorrectionenabled?language=objc +func (r_ RAWFilter) IsLensCorrectionEnabled() bool { + rv := objc.Call[bool](r_, objc.Sel("isLensCorrectionEnabled")) return rv } -// A value that indicates the amount of white balance based on pixel coordinates to apply to the image. [Full Topic] +// A Boolean that indicates whether to enable lens correction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801643-neutrallocation?language=objc -func (r_ RAWFilter) NeutralLocation() coregraphics.Point { - rv := objc.Call[coregraphics.Point](r_, objc.Sel("neutralLocation")) - return rv -} - -// A value that indicates the amount of white balance based on pixel coordinates to apply to the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801643-neutrallocation?language=objc -func (r_ RAWFilter) SetNeutralLocation(value coregraphics.Point) { - objc.Call[objc.Void](r_, objc.Sel("setNeutralLocation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801632-lenscorrectionenabled?language=objc +func (r_ RAWFilter) SetLensCorrectionEnabled(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setLensCorrectionEnabled:"), value) } -// The full native size of the unscaled image. [Full Topic] +// A Boolean that indicates whether to enable gamut mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801641-nativesize?language=objc -func (r_ RAWFilter) NativeSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](r_, objc.Sel("nativeSize")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801631-gamutmappingenabled?language=objc +func (r_ RAWFilter) IsGamutMappingEnabled() bool { + rv := objc.Call[bool](r_, objc.Sel("isGamutMappingEnabled")) return rv } -// A Boolean that indicates if the current image supports color noise reduction adjustments. [Full Topic] +// A Boolean that indicates whether to enable gamut mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801619-colornoisereductionsupported?language=objc -func (r_ RAWFilter) IsColorNoiseReductionSupported() bool { - rv := objc.Call[bool](r_, objc.Sel("isColorNoiseReductionSupported")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801631-gamutmappingenabled?language=objc +func (r_ RAWFilter) SetGamutMappingEnabled(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setGamutMappingEnabled:"), value) } -// A value that indicates the amount of white balance based on tint values to apply to the image. [Full Topic] +// A Boolean that indicates if the current image supports detail enhancement adjustments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801645-neutraltint?language=objc -func (r_ RAWFilter) NeutralTint() float32 { - rv := objc.Call[float32](r_, objc.Sel("neutralTint")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801624-detailsupported?language=objc +func (r_ RAWFilter) IsDetailSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isDetailSupported")) return rv } -// A value that indicates the amount of white balance based on tint values to apply to the image. [Full Topic] +// A Boolean that indicates if the current image supports moire artifact reduction adjustments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801645-neutraltint?language=objc -func (r_ RAWFilter) SetNeutralTint(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setNeutralTint:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801640-moirereductionsupported?language=objc +func (r_ RAWFilter) IsMoireReductionSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isMoireReductionSupported")) + return rv } -// A value that indicates the baseline exposure to apply to the image. [Full Topic] +// A value that indicates the amount of sharpness to apply to the edges of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801615-baselineexposure?language=objc -func (r_ RAWFilter) BaselineExposure() float32 { - rv := objc.Call[float32](r_, objc.Sel("baselineExposure")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801657-sharpnessamount?language=objc +func (r_ RAWFilter) SharpnessAmount() float32 { + rv := objc.Call[float32](r_, objc.Sel("sharpnessAmount")) return rv } -// A value that indicates the baseline exposure to apply to the image. [Full Topic] +// A value that indicates the amount of sharpness to apply to the edges of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801615-baselineexposure?language=objc -func (r_ RAWFilter) SetBaselineExposure(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setBaselineExposure:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801657-sharpnessamount?language=objc +func (r_ RAWFilter) SetSharpnessAmount(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setSharpnessAmount:"), value) } -// A value that indicates the amount to subtract from the shadows in the image. [Full Topic] +// A value that indicates the amount of local contrast to apply to the edges of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801656-shadowbias?language=objc -func (r_ RAWFilter) ShadowBias() float32 { - rv := objc.Call[float32](r_, objc.Sel("shadowBias")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801620-contrastamount?language=objc +func (r_ RAWFilter) ContrastAmount() float32 { + rv := objc.Call[float32](r_, objc.Sel("contrastAmount")) return rv } -// A value that indicates the amount to subtract from the shadows in the image. [Full Topic] +// A value that indicates the amount of local contrast to apply to the edges of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801656-shadowbias?language=objc -func (r_ RAWFilter) SetShadowBias(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setShadowBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801620-contrastamount?language=objc +func (r_ RAWFilter) SetContrastAmount(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setContrastAmount:"), value) } // A Boolean that indicates if the current image supports luminance noise reduction adjustments. [Full Topic] @@ -388,95 +358,88 @@ func (r_ RAWFilter) IsLuminanceNoiseReductionSupported() bool { return rv } -// A Boolean that indicates if the current image supports local tone curve adjustments. [Full Topic] +// A dictionary that contains properties of the image source. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801636-localtonemapsupported?language=objc -func (r_ RAWFilter) IsLocalToneMapSupported() bool { - rv := objc.Call[bool](r_, objc.Sel("isLocalToneMapSupported")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801649-properties?language=objc +func (r_ RAWFilter) Properties() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](r_, objc.Sel("properties")) return rv } -// A value that indicates the amount of white balance based on chromaticity values to apply to the image. [Full Topic] +// A Boolean that indicates if the current image supports contrast adjustments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801642-neutralchromaticity?language=objc -func (r_ RAWFilter) NeutralChromaticity() coregraphics.Point { - rv := objc.Call[coregraphics.Point](r_, objc.Sel("neutralChromaticity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801621-contrastsupported?language=objc +func (r_ RAWFilter) IsContrastSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isContrastSupported")) return rv } -// A value that indicates the amount of white balance based on chromaticity values to apply to the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801642-neutralchromaticity?language=objc -func (r_ RAWFilter) SetNeutralChromaticity(value coregraphics.Point) { - objc.Call[objc.Void](r_, objc.Sel("setNeutralChromaticity:"), value) -} - -// A value that indicates the amount of white balance based on temperature values to apply to the image. [Full Topic] +// A value that indicates the amount of detail enhancement to apply to the edges of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801644-neutraltemperature?language=objc -func (r_ RAWFilter) NeutralTemperature() float32 { - rv := objc.Call[float32](r_, objc.Sel("neutralTemperature")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801623-detailamount?language=objc +func (r_ RAWFilter) DetailAmount() float32 { + rv := objc.Call[float32](r_, objc.Sel("detailAmount")) return rv } -// A value that indicates the amount of white balance based on temperature values to apply to the image. [Full Topic] +// A value that indicates the amount of detail enhancement to apply to the edges of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801644-neutraltemperature?language=objc -func (r_ RAWFilter) SetNeutralTemperature(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setNeutralTemperature:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801623-detailamount?language=objc +func (r_ RAWFilter) SetDetailAmount(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setDetailAmount:"), value) } -// An optional auxiliary image that represents the semantic segmentation sky matte of the image. [Full Topic] +// A value that indicates the amount of extended dynamic range (EDR) to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801654-semanticsegmentationskymatte?language=objc -func (r_ RAWFilter) SemanticSegmentationSkyMatte() Image { - rv := objc.Call[Image](r_, objc.Sel("semanticSegmentationSkyMatte")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3820998-extendeddynamicrangeamount?language=objc +func (r_ RAWFilter) ExtendedDynamicRangeAmount() float32 { + rv := objc.Call[float32](r_, objc.Sel("extendedDynamicRangeAmount")) return rv } -// A Boolean that indicates whether to enable gamut mapping. [Full Topic] +// A value that indicates the amount of extended dynamic range (EDR) to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801631-gamutmappingenabled?language=objc -func (r_ RAWFilter) IsGamutMappingEnabled() bool { - rv := objc.Call[bool](r_, objc.Sel("isGamutMappingEnabled")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3820998-extendeddynamicrangeamount?language=objc +func (r_ RAWFilter) SetExtendedDynamicRangeAmount(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setExtendedDynamicRangeAmount:"), value) } -// A Boolean that indicates whether to enable gamut mapping. [Full Topic] +// A Boolean that indicates if the current image supports color noise reduction adjustments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801631-gamutmappingenabled?language=objc -func (r_ RAWFilter) SetGamutMappingEnabled(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setGamutMappingEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801619-colornoisereductionsupported?language=objc +func (r_ RAWFilter) IsColorNoiseReductionSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isColorNoiseReductionSupported")) + return rv } -// An optional filter you can apply to the RAW image while it’s in linear space. [Full Topic] +// A Boolean that indicates whether to enable draft mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801634-linearspacefilter?language=objc -func (r_ RAWFilter) LinearSpaceFilter() Filter { - rv := objc.Call[Filter](r_, objc.Sel("linearSpaceFilter")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801625-draftmodeenabled?language=objc +func (r_ RAWFilter) IsDraftModeEnabled() bool { + rv := objc.Call[bool](r_, objc.Sel("isDraftModeEnabled")) return rv } -// An optional filter you can apply to the RAW image while it’s in linear space. [Full Topic] +// A Boolean that indicates whether to enable draft mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801634-linearspacefilter?language=objc -func (r_ RAWFilter) SetLinearSpaceFilter(value IFilter) { - objc.Call[objc.Void](r_, objc.Sel("setLinearSpaceFilter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801625-draftmodeenabled?language=objc +func (r_ RAWFilter) SetDraftModeEnabled(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setDraftModeEnabled:"), value) } -// A value that indicates the amount of local tone curve to apply to the image. [Full Topic] +// A value that indicates the amount of exposure to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801635-localtonemapamount?language=objc -func (r_ RAWFilter) LocalToneMapAmount() float32 { - rv := objc.Call[float32](r_, objc.Sel("localToneMapAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801626-exposure?language=objc +func (r_ RAWFilter) Exposure() float32 { + rv := objc.Call[float32](r_, objc.Sel("exposure")) return rv } -// A value that indicates the amount of local tone curve to apply to the image. [Full Topic] +// A value that indicates the amount of exposure to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801635-localtonemapamount?language=objc -func (r_ RAWFilter) SetLocalToneMapAmount(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setLocalToneMapAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801626-exposure?language=objc +func (r_ RAWFilter) SetExposure(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setExposure:"), value) } // A value that indicates the amount of global tone curve to apply to the image. [Full Topic] @@ -494,65 +457,73 @@ func (r_ RAWFilter) SetBoostAmount(value float32) { objc.Call[objc.Void](r_, objc.Sel("setBoostAmount:"), value) } -// A value that indicates the decoder version to use. [Full Topic] +// An optional auxiliary image that represents the semantic segmentation hair matte of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801622-decoderversion?language=objc -func (r_ RAWFilter) DecoderVersion() RAWDecoderVersion { - rv := objc.Call[RAWDecoderVersion](r_, objc.Sel("decoderVersion")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801652-semanticsegmentationhairmatte?language=objc +func (r_ RAWFilter) SemanticSegmentationHairMatte() Image { + rv := objc.Call[Image](r_, objc.Sel("semanticSegmentationHairMatte")) return rv } -// A value that indicates the decoder version to use. [Full Topic] +// An optional auxiliary image that represents the semantic segmentation glasses matte of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801622-decoderversion?language=objc -func (r_ RAWFilter) SetDecoderVersion(value RAWDecoderVersion) { - objc.Call[objc.Void](r_, objc.Sel("setDecoderVersion:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801651-semanticsegmentationglassesmatte?language=objc +func (r_ RAWFilter) SemanticSegmentationGlassesMatte() Image { + rv := objc.Call[Image](r_, objc.Sel("semanticSegmentationGlassesMatte")) + return rv } -// A value that indicates the amount of chroma noise reduction to apply to the image. [Full Topic] +// A value that indicates the amount of white balance based on tint values to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801618-colornoisereductionamount?language=objc -func (r_ RAWFilter) ColorNoiseReductionAmount() float32 { - rv := objc.Call[float32](r_, objc.Sel("colorNoiseReductionAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801645-neutraltint?language=objc +func (r_ RAWFilter) NeutralTint() float32 { + rv := objc.Call[float32](r_, objc.Sel("neutralTint")) return rv } -// A value that indicates the amount of chroma noise reduction to apply to the image. [Full Topic] +// A value that indicates the amount of white balance based on tint values to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801618-colornoisereductionamount?language=objc -func (r_ RAWFilter) SetColorNoiseReductionAmount(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setColorNoiseReductionAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801645-neutraltint?language=objc +func (r_ RAWFilter) SetNeutralTint(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setNeutralTint:"), value) } -// A Boolean that indicates if the current image supports sharpness adjustments. [Full Topic] +// The full native size of the unscaled image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801658-sharpnesssupported?language=objc -func (r_ RAWFilter) IsSharpnessSupported() bool { - rv := objc.Call[bool](r_, objc.Sel("isSharpnessSupported")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801641-nativesize?language=objc +func (r_ RAWFilter) NativeSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](r_, objc.Sel("nativeSize")) return rv } -// A Boolean that indicates if the current image supports moire artifact reduction adjustments. [Full Topic] +// A value that indicates the amount to boost the shadow areas of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801640-moirereductionsupported?language=objc -func (r_ RAWFilter) IsMoireReductionSupported() bool { - rv := objc.Call[bool](r_, objc.Sel("isMoireReductionSupported")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801617-boostshadowamount?language=objc +func (r_ RAWFilter) BoostShadowAmount() float32 { + rv := objc.Call[float32](r_, objc.Sel("boostShadowAmount")) return rv } -// A value that indicates the desired scale factor to draw the output image. [Full Topic] +// A value that indicates the amount to boost the shadow areas of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801650-scalefactor?language=objc -func (r_ RAWFilter) ScaleFactor() float32 { - rv := objc.Call[float32](r_, objc.Sel("scaleFactor")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801617-boostshadowamount?language=objc +func (r_ RAWFilter) SetBoostShadowAmount(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setBoostShadowAmount:"), value) +} + +// A value that indicates the amount of chroma noise reduction to apply to the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801618-colornoisereductionamount?language=objc +func (r_ RAWFilter) ColorNoiseReductionAmount() float32 { + rv := objc.Call[float32](r_, objc.Sel("colorNoiseReductionAmount")) return rv } -// A value that indicates the desired scale factor to draw the output image. [Full Topic] +// A value that indicates the amount of chroma noise reduction to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801650-scalefactor?language=objc -func (r_ RAWFilter) SetScaleFactor(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setScaleFactor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801618-colornoisereductionamount?language=objc +func (r_ RAWFilter) SetColorNoiseReductionAmount(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setColorNoiseReductionAmount:"), value) } // An optional auxiliary image that represents the semantic segmentation skin matte of the image. [Full Topic] @@ -563,14 +534,21 @@ func (r_ RAWFilter) SemanticSegmentationSkinMatte() Image { return rv } -// A dictionary that contains properties of the image source. [Full Topic] +// A value that indicates the amount of white balance based on temperature values to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801649-properties?language=objc -func (r_ RAWFilter) Properties() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](r_, objc.Sel("properties")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801644-neutraltemperature?language=objc +func (r_ RAWFilter) NeutralTemperature() float32 { + rv := objc.Call[float32](r_, objc.Sel("neutralTemperature")) return rv } +// A value that indicates the amount of white balance based on temperature values to apply to the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801644-neutraltemperature?language=objc +func (r_ RAWFilter) SetNeutralTemperature(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setNeutralTemperature:"), value) +} + // An optional auxiliary image that represents a preview of the original image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801648-previewimage?language=objc @@ -579,67 +557,97 @@ func (r_ RAWFilter) PreviewImage() Image { return rv } -// A value that indicates the amount of detail enhancement to apply to the edges of the image. [Full Topic] +// A value that indicates the amount of luminance noise reduction to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801623-detailamount?language=objc -func (r_ RAWFilter) DetailAmount() float32 { - rv := objc.Call[float32](r_, objc.Sel("detailAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801637-luminancenoisereductionamount?language=objc +func (r_ RAWFilter) LuminanceNoiseReductionAmount() float32 { + rv := objc.Call[float32](r_, objc.Sel("luminanceNoiseReductionAmount")) return rv } -// A value that indicates the amount of detail enhancement to apply to the edges of the image. [Full Topic] +// A value that indicates the amount of luminance noise reduction to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801623-detailamount?language=objc -func (r_ RAWFilter) SetDetailAmount(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setDetailAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801637-luminancenoisereductionamount?language=objc +func (r_ RAWFilter) SetLuminanceNoiseReductionAmount(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setLuminanceNoiseReductionAmount:"), value) } -// A Boolean that indicates if you can enable lens correction for the current image. [Full Topic] +// A value that indicates the amount to subtract from the shadows in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801633-lenscorrectionsupported?language=objc -func (r_ RAWFilter) IsLensCorrectionSupported() bool { - rv := objc.Call[bool](r_, objc.Sel("isLensCorrectionSupported")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801656-shadowbias?language=objc +func (r_ RAWFilter) ShadowBias() float32 { + rv := objc.Call[float32](r_, objc.Sel("shadowBias")) return rv } -// A value that indicates the orientation of the image. [Full Topic] +// A value that indicates the amount to subtract from the shadows in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801646-orientation?language=objc -func (r_ RAWFilter) Orientation() imageio.ImagePropertyOrientation { - rv := objc.Call[imageio.ImagePropertyOrientation](r_, objc.Sel("orientation")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801656-shadowbias?language=objc +func (r_ RAWFilter) SetShadowBias(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setShadowBias:"), value) +} + +// An array of all supported decoder versions for the given image type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801660-supporteddecoderversions?language=objc +func (r_ RAWFilter) SupportedDecoderVersions() []RAWDecoderVersion { + rv := objc.Call[[]RAWDecoderVersion](r_, objc.Sel("supportedDecoderVersions")) return rv } -// A value that indicates the orientation of the image. [Full Topic] +// A value that indicates the amount of white balance based on pixel coordinates to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801646-orientation?language=objc -func (r_ RAWFilter) SetOrientation(value imageio.ImagePropertyOrientation) { - objc.Call[objc.Void](r_, objc.Sel("setOrientation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801643-neutrallocation?language=objc +func (r_ RAWFilter) NeutralLocation() coregraphics.Point { + rv := objc.Call[coregraphics.Point](r_, objc.Sel("neutralLocation")) + return rv } -// A Boolean that indicates whether to enable lens correction. [Full Topic] +// A value that indicates the amount of white balance based on pixel coordinates to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801632-lenscorrectionenabled?language=objc -func (r_ RAWFilter) IsLensCorrectionEnabled() bool { - rv := objc.Call[bool](r_, objc.Sel("isLensCorrectionEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801643-neutrallocation?language=objc +func (r_ RAWFilter) SetNeutralLocation(value coregraphics.Point) { + objc.Call[objc.Void](r_, objc.Sel("setNeutralLocation:"), value) +} + +// A value that indicates the baseline exposure to apply to the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801615-baselineexposure?language=objc +func (r_ RAWFilter) BaselineExposure() float32 { + rv := objc.Call[float32](r_, objc.Sel("baselineExposure")) return rv } -// A Boolean that indicates whether to enable lens correction. [Full Topic] +// A value that indicates the baseline exposure to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801632-lenscorrectionenabled?language=objc -func (r_ RAWFilter) SetLensCorrectionEnabled(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setLensCorrectionEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801615-baselineexposure?language=objc +func (r_ RAWFilter) SetBaselineExposure(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setBaselineExposure:"), value) } -// An optional auxiliary image that represents the semantic segmentation hair matte of the image. [Full Topic] +// An optional auxiliary image that represents the portrait effects matte of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801652-semanticsegmentationhairmatte?language=objc -func (r_ RAWFilter) SemanticSegmentationHairMatte() Image { - rv := objc.Call[Image](r_, objc.Sel("semanticSegmentationHairMatte")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801647-portraiteffectsmatte?language=objc +func (r_ RAWFilter) PortraitEffectsMatte() Image { + rv := objc.Call[Image](r_, objc.Sel("portraitEffectsMatte")) + return rv +} + +// An optional filter you can apply to the RAW image while it’s in linear space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801634-linearspacefilter?language=objc +func (r_ RAWFilter) LinearSpaceFilter() Filter { + rv := objc.Call[Filter](r_, objc.Sel("linearSpaceFilter")) return rv } +// An optional filter you can apply to the RAW image while it’s in linear space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801634-linearspacefilter?language=objc +func (r_ RAWFilter) SetLinearSpaceFilter(value IFilter) { + objc.Call[objc.Void](r_, objc.Sel("setLinearSpaceFilter:"), value) +} + // A value that indicates the amount of moire artifact reduction to apply to high frequency areas of the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801639-moirereductionamount?language=objc @@ -655,25 +663,17 @@ func (r_ RAWFilter) SetMoireReductionAmount(value float32) { objc.Call[objc.Void](r_, objc.Sel("setMoireReductionAmount:"), value) } -// A Boolean that indicates if the current image supports contrast adjustments. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801621-contrastsupported?language=objc -func (r_ RAWFilter) IsContrastSupported() bool { - rv := objc.Call[bool](r_, objc.Sel("isContrastSupported")) - return rv -} - -// A value that indicates the amount of local contrast to apply to the edges of the image. [Full Topic] +// A value that indicates the orientation of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801620-contrastamount?language=objc -func (r_ RAWFilter) ContrastAmount() float32 { - rv := objc.Call[float32](r_, objc.Sel("contrastAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801646-orientation?language=objc +func (r_ RAWFilter) Orientation() imageio.ImagePropertyOrientation { + rv := objc.Call[imageio.ImagePropertyOrientation](r_, objc.Sel("orientation")) return rv } -// A value that indicates the amount of local contrast to apply to the edges of the image. [Full Topic] +// A value that indicates the orientation of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801620-contrastamount?language=objc -func (r_ RAWFilter) SetContrastAmount(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setContrastAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801646-orientation?language=objc +func (r_ RAWFilter) SetOrientation(value imageio.ImagePropertyOrientation) { + objc.Call[objc.Void](r_, objc.Sel("setOrientation:"), value) } diff --git a/macos/coreimage/rectangle_feature.gen.go b/macos/coreimage/rectangle_feature.gen.go index 707b82ac..5913f45a 100644 --- a/macos/coreimage/rectangle_feature.gen.go +++ b/macos/coreimage/rectangle_feature.gen.go @@ -20,9 +20,9 @@ type _RectangleFeatureClass struct { type IRectangleFeature interface { IFeature BottomRight() coregraphics.Point - TopLeft() coregraphics.Point BottomLeft() coregraphics.Point TopRight() coregraphics.Point + TopLeft() coregraphics.Point } // Information about a rectangular region detected in a still or video image. [Full Topic] @@ -66,14 +66,6 @@ func (r_ RectangleFeature) BottomRight() coregraphics.Point { return rv } -// The upper-left corner of the detected rectangle, in image coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirectanglefeature/1437951-topleft?language=objc -func (r_ RectangleFeature) TopLeft() coregraphics.Point { - rv := objc.Call[coregraphics.Point](r_, objc.Sel("topLeft")) - return rv -} - // The lower-left corner of the detected rectangle, in image coordinates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cirectanglefeature/1437878-bottomleft?language=objc @@ -89,3 +81,11 @@ func (r_ RectangleFeature) TopRight() coregraphics.Point { rv := objc.Call[coregraphics.Point](r_, objc.Sel("topRight")) return rv } + +// The upper-left corner of the detected rectangle, in image coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirectanglefeature/1437951-topleft?language=objc +func (r_ RectangleFeature) TopLeft() coregraphics.Point { + rv := objc.Call[coregraphics.Point](r_, objc.Sel("topLeft")) + return rv +} diff --git a/macos/coreimage/render_destination.gen.go b/macos/coreimage/render_destination.gen.go index cec2564d..5d17df62 100644 --- a/macos/coreimage/render_destination.gen.go +++ b/macos/coreimage/render_destination.gen.go @@ -22,20 +22,20 @@ type _RenderDestinationClass struct { // An interface definition for the [RenderDestination] class. type IRenderDestination interface { objc.IObject - ColorSpace() coregraphics.ColorSpaceRef - SetColorSpace(value coregraphics.ColorSpaceRef) - Height() uint + Width() uint BlendKernel() BlendKernel SetBlendKernel(value IBlendKernel) - AlphaMode() RenderDestinationAlphaMode - SetAlphaMode(value RenderDestinationAlphaMode) - IsFlipped() bool - SetFlipped(value bool) - Width() uint IsClamped() bool SetClamped(value bool) + AlphaMode() RenderDestinationAlphaMode + SetAlphaMode(value RenderDestinationAlphaMode) + Height() uint + ColorSpace() coregraphics.ColorSpaceRef + SetColorSpace(value coregraphics.ColorSpaceRef) BlendsInDestinationColorSpace() bool SetBlendsInDestinationColorSpace(value bool) + IsFlipped() bool + SetFlipped(value bool) IsDithered() bool SetDithered(value bool) } @@ -53,6 +53,20 @@ func RenderDestinationFrom(ptr unsafe.Pointer) RenderDestination { } } +func (r_ RenderDestination) InitWithGLTextureTargetWidthHeight(texture int, target int, width uint, height uint) RenderDestination { + rv := objc.Call[RenderDestination](r_, objc.Sel("initWithGLTexture:target:width:height:"), texture, target, width, height) + return rv +} + +// Creates a render destination based on an OpenGL texture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875438-initwithgltexture?language=objc +func NewRenderDestinationWithGLTextureTargetWidthHeight(texture int, target int, width uint, height uint) RenderDestination { + instance := RenderDestinationClass.Alloc().InitWithGLTextureTargetWidthHeight(texture, target, width, height) + instance.Autorelease() + return instance +} + func (r_ RenderDestination) InitWithIOSurface(surface iosurface.IIOSurface) RenderDestination { rv := objc.Call[RenderDestination](r_, objc.Sel("initWithIOSurface:"), surface) return rv @@ -81,34 +95,6 @@ func NewRenderDestinationWithBitmapDataWidthHeightBytesPerRowFormat(data unsafe. return instance } -func (r_ RenderDestination) InitWithGLTextureTargetWidthHeight(texture int, target int, width uint, height uint) RenderDestination { - rv := objc.Call[RenderDestination](r_, objc.Sel("initWithGLTexture:target:width:height:"), texture, target, width, height) - return rv -} - -// Creates a render destination based on an OpenGL texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875438-initwithgltexture?language=objc -func NewRenderDestinationWithGLTextureTargetWidthHeight(texture int, target int, width uint, height uint) RenderDestination { - instance := RenderDestinationClass.Alloc().InitWithGLTextureTargetWidthHeight(texture, target, width, height) - instance.Autorelease() - return instance -} - -func (r_ RenderDestination) InitWithPixelBuffer(pixelBuffer corevideo.PixelBufferRef) RenderDestination { - rv := objc.Call[RenderDestination](r_, objc.Sel("initWithPixelBuffer:"), pixelBuffer) - return rv -} - -// Creates a render destination based on a Core Video pixel buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875436-initwithpixelbuffer?language=objc -func NewRenderDestinationWithPixelBuffer(pixelBuffer corevideo.PixelBufferRef) RenderDestination { - instance := RenderDestinationClass.Alloc().InitWithPixelBuffer(pixelBuffer) - instance.Autorelease() - return instance -} - func (r_ RenderDestination) InitWithWidthHeightPixelFormatCommandBufferMtlTextureProvider(width uint, height uint, pixelFormat metal.PixelFormat, commandBuffer metal.PCommandBuffer, block func() metal.TextureObject) RenderDestination { po3 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) rv := objc.Call[RenderDestination](r_, objc.Sel("initWithWidth:height:pixelFormat:commandBuffer:mtlTextureProvider:"), width, height, pixelFormat, po3, block) @@ -140,6 +126,20 @@ func NewRenderDestinationWithMTLTextureCommandBuffer(texture metal.PTexture, com return instance } +func (r_ RenderDestination) InitWithPixelBuffer(pixelBuffer corevideo.PixelBufferRef) RenderDestination { + rv := objc.Call[RenderDestination](r_, objc.Sel("initWithPixelBuffer:"), pixelBuffer) + return rv +} + +// Creates a render destination based on a Core Video pixel buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875436-initwithpixelbuffer?language=objc +func NewRenderDestinationWithPixelBuffer(pixelBuffer corevideo.PixelBufferRef) RenderDestination { + instance := RenderDestinationClass.Alloc().InitWithPixelBuffer(pixelBuffer) + instance.Autorelease() + return instance +} + func (rc _RenderDestinationClass) Alloc() RenderDestination { rv := objc.Call[RenderDestination](rc, objc.Sel("alloc")) return rv @@ -160,26 +160,11 @@ func (r_ RenderDestination) Init() RenderDestination { return rv } -// The destination's color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875439-colorspace?language=objc -func (r_ RenderDestination) ColorSpace() coregraphics.ColorSpaceRef { - rv := objc.Call[coregraphics.ColorSpaceRef](r_, objc.Sel("colorSpace")) - return rv -} - -// The destination's color space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875439-colorspace?language=objc -func (r_ RenderDestination) SetColorSpace(value coregraphics.ColorSpaceRef) { - objc.Call[objc.Void](r_, objc.Sel("setColorSpace:"), value) -} - -// The render destination's buffer height. [Full Topic] +// The render destination's row width. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875433-height?language=objc -func (r_ RenderDestination) Height() uint { - rv := objc.Call[uint](r_, objc.Sel("height")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875434-width?language=objc +func (r_ RenderDestination) Width() uint { + rv := objc.Call[uint](r_, objc.Sel("width")) return rv } @@ -198,6 +183,21 @@ func (r_ RenderDestination) SetBlendKernel(value IBlendKernel) { objc.Call[objc.Void](r_, objc.Sel("setBlendKernel:"), value) } +// Indicator of whether or not the destination clamps. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875451-clamped?language=objc +func (r_ RenderDestination) IsClamped() bool { + rv := objc.Call[bool](r_, objc.Sel("isClamped")) + return rv +} + +// Indicator of whether or not the destination clamps. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875451-clamped?language=objc +func (r_ RenderDestination) SetClamped(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setClamped:"), value) +} + // The render destination's representation of alpha (transparency) values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875443-alphamode?language=objc @@ -213,42 +213,27 @@ func (r_ RenderDestination) SetAlphaMode(value RenderDestinationAlphaMode) { objc.Call[objc.Void](r_, objc.Sel("setAlphaMode:"), value) } -// Indicator of whether the destination is flipped. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875442-flipped?language=objc -func (r_ RenderDestination) IsFlipped() bool { - rv := objc.Call[bool](r_, objc.Sel("isFlipped")) - return rv -} - -// Indicator of whether the destination is flipped. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875442-flipped?language=objc -func (r_ RenderDestination) SetFlipped(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setFlipped:"), value) -} - -// The render destination's row width. [Full Topic] +// The render destination's buffer height. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875434-width?language=objc -func (r_ RenderDestination) Width() uint { - rv := objc.Call[uint](r_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875433-height?language=objc +func (r_ RenderDestination) Height() uint { + rv := objc.Call[uint](r_, objc.Sel("height")) return rv } -// Indicator of whether or not the destination clamps. [Full Topic] +// The destination's color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875451-clamped?language=objc -func (r_ RenderDestination) IsClamped() bool { - rv := objc.Call[bool](r_, objc.Sel("isClamped")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875439-colorspace?language=objc +func (r_ RenderDestination) ColorSpace() coregraphics.ColorSpaceRef { + rv := objc.Call[coregraphics.ColorSpaceRef](r_, objc.Sel("colorSpace")) return rv } -// Indicator of whether or not the destination clamps. [Full Topic] +// The destination's color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875451-clamped?language=objc -func (r_ RenderDestination) SetClamped(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setClamped:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875439-colorspace?language=objc +func (r_ RenderDestination) SetColorSpace(value coregraphics.ColorSpaceRef) { + objc.Call[objc.Void](r_, objc.Sel("setColorSpace:"), value) } // Indicator of whether to blend in the destination's color space. [Full Topic] @@ -266,6 +251,21 @@ func (r_ RenderDestination) SetBlendsInDestinationColorSpace(value bool) { objc.Call[objc.Void](r_, objc.Sel("setBlendsInDestinationColorSpace:"), value) } +// Indicator of whether the destination is flipped. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875442-flipped?language=objc +func (r_ RenderDestination) IsFlipped() bool { + rv := objc.Call[bool](r_, objc.Sel("isFlipped")) + return rv +} + +// Indicator of whether the destination is flipped. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875442-flipped?language=objc +func (r_ RenderDestination) SetFlipped(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setFlipped:"), value) +} + // Indicator of whether or not the destination dithers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2875441-dithered?language=objc diff --git a/macos/coreimage/render_info.gen.go b/macos/coreimage/render_info.gen.go index 07947aba..d11ab26d 100644 --- a/macos/coreimage/render_info.gen.go +++ b/macos/coreimage/render_info.gen.go @@ -19,8 +19,8 @@ type _RenderInfoClass struct { // An interface definition for the [RenderInfo] class. type IRenderInfo interface { objc.IObject - PixelsProcessed() int KernelExecutionTime() foundation.TimeInterval + PixelsProcessed() int PassCount() int } @@ -57,14 +57,6 @@ func (r_ RenderInfo) Init() RenderInfo { return rv } -// The number of pixels the render produced executing kernels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderinfo/2919725-pixelsprocessed?language=objc -func (r_ RenderInfo) PixelsProcessed() int { - rv := objc.Call[int](r_, objc.Sel("pixelsProcessed")) - return rv -} - // The amount of time a render spent executing kernels. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderinfo/2875453-kernelexecutiontime?language=objc @@ -73,6 +65,14 @@ func (r_ RenderInfo) KernelExecutionTime() foundation.TimeInterval { return rv } +// The number of pixels the render produced executing kernels. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderinfo/2919725-pixelsprocessed?language=objc +func (r_ RenderInfo) PixelsProcessed() int { + rv := objc.Call[int](r_, objc.Sel("pixelsProcessed")) + return rv +} + // The number of passes the render took. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderinfo/2875446-passcount?language=objc diff --git a/macos/coreimage/ripple_transition_protocol.gen.go b/macos/coreimage/ripple_transition_protocol.gen.go index bdeef813..730c82fb 100644 --- a/macos/coreimage/ripple_transition_protocol.gen.go +++ b/macos/coreimage/ripple_transition_protocol.gen.go @@ -12,20 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition?language=objc type PRippleTransition interface { // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - - // optional - SetShadingImage(value Image) - HasSetShadingImage() bool + SetWidth(value float32) + HasSetWidth() bool // optional - ShadingImage() Image - HasShadingImage() bool + Width() float32 + HasWidth() bool // optional SetScale(value float32) @@ -35,14 +27,6 @@ type PRippleTransition interface { Scale() float32 HasScale() bool - // optional - SetWidth(value float32) - HasSetWidth() bool - - // optional - Width() float32 - HasWidth() bool - // optional SetExtent(value coregraphics.Rect) HasSetExtent() bool @@ -50,6 +34,22 @@ type PRippleTransition interface { // optional Extent() coregraphics.Rect HasExtent() bool + + // optional + SetShadingImage(value Image) + HasSetShadingImage() bool + + // optional + ShadingImage() Image + HasShadingImage() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -60,49 +60,26 @@ type RippleTransitionObject struct { objc.Object } -func (r_ RippleTransitionObject) HasSetCenter() bool { - return r_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228692-center?language=objc -func (r_ RippleTransitionObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](r_, objc.Sel("setCenter:"), value) -} - -func (r_ RippleTransitionObject) HasCenter() bool { - return r_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228692-center?language=objc -func (r_ RippleTransitionObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](r_, objc.Sel("center")) - return rv -} - -func (r_ RippleTransitionObject) HasSetShadingImage() bool { - return r_.RespondsToSelector(objc.Sel("setShadingImage:")) +func (r_ RippleTransitionObject) HasSetWidth() bool { + return r_.RespondsToSelector(objc.Sel("setWidth:")) } -// An image that looks like a shaded sphere enclosed in a square. [Full Topic] +// The width of the ripple. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228695-shadingimage?language=objc -func (r_ RippleTransitionObject) SetShadingImage(value Image) { - objc.Call[objc.Void](r_, objc.Sel("setShadingImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228696-width?language=objc +func (r_ RippleTransitionObject) SetWidth(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setWidth:"), value) } -func (r_ RippleTransitionObject) HasShadingImage() bool { - return r_.RespondsToSelector(objc.Sel("shadingImage")) +func (r_ RippleTransitionObject) HasWidth() bool { + return r_.RespondsToSelector(objc.Sel("width")) } -// An image that looks like a shaded sphere enclosed in a square. [Full Topic] +// The width of the ripple. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228695-shadingimage?language=objc -func (r_ RippleTransitionObject) ShadingImage() Image { - rv := objc.Call[Image](r_, objc.Sel("shadingImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228696-width?language=objc +func (r_ RippleTransitionObject) Width() float32 { + rv := objc.Call[float32](r_, objc.Sel("width")) return rv } @@ -129,29 +106,6 @@ func (r_ RippleTransitionObject) Scale() float32 { return rv } -func (r_ RippleTransitionObject) HasSetWidth() bool { - return r_.RespondsToSelector(objc.Sel("setWidth:")) -} - -// The width of the ripple. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228696-width?language=objc -func (r_ RippleTransitionObject) SetWidth(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setWidth:"), value) -} - -func (r_ RippleTransitionObject) HasWidth() bool { - return r_.RespondsToSelector(objc.Sel("width")) -} - -// The width of the ripple. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228696-width?language=objc -func (r_ RippleTransitionObject) Width() float32 { - rv := objc.Call[float32](r_, objc.Sel("width")) - return rv -} - func (r_ RippleTransitionObject) HasSetExtent() bool { return r_.RespondsToSelector(objc.Sel("setExtent:")) } @@ -174,3 +128,49 @@ func (r_ RippleTransitionObject) Extent() coregraphics.Rect { rv := objc.Call[coregraphics.Rect](r_, objc.Sel("extent")) return rv } + +func (r_ RippleTransitionObject) HasSetShadingImage() bool { + return r_.RespondsToSelector(objc.Sel("setShadingImage:")) +} + +// An image that looks like a shaded sphere enclosed in a square. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228695-shadingimage?language=objc +func (r_ RippleTransitionObject) SetShadingImage(value Image) { + objc.Call[objc.Void](r_, objc.Sel("setShadingImage:"), value) +} + +func (r_ RippleTransitionObject) HasShadingImage() bool { + return r_.RespondsToSelector(objc.Sel("shadingImage")) +} + +// An image that looks like a shaded sphere enclosed in a square. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228695-shadingimage?language=objc +func (r_ RippleTransitionObject) ShadingImage() Image { + rv := objc.Call[Image](r_, objc.Sel("shadingImage")) + return rv +} + +func (r_ RippleTransitionObject) HasSetCenter() bool { + return r_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228692-center?language=objc +func (r_ RippleTransitionObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](r_, objc.Sel("setCenter:"), value) +} + +func (r_ RippleTransitionObject) HasCenter() bool { + return r_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228692-center?language=objc +func (r_ RippleTransitionObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](r_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/rounded_rectangle_generator_protocol.gen.go b/macos/coreimage/rounded_rectangle_generator_protocol.gen.go index c5e87f1c..55660c28 100644 --- a/macos/coreimage/rounded_rectangle_generator_protocol.gen.go +++ b/macos/coreimage/rounded_rectangle_generator_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator?language=objc type PRoundedRectangleGenerator interface { - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetColor(value Color) HasSetColor() bool @@ -27,6 +19,14 @@ type PRoundedRectangleGenerator interface { Color() Color HasColor() bool + // optional + SetRadius(value float32) + HasSetRadius() bool + + // optional + Radius() float32 + HasRadius() bool + // optional SetExtent(value coregraphics.Rect) HasSetExtent() bool @@ -44,29 +44,6 @@ type RoundedRectangleGeneratorObject struct { objc.Object } -func (r_ RoundedRectangleGeneratorObject) HasSetRadius() bool { - return r_.RespondsToSelector(objc.Sel("setRadius:")) -} - -// The distance from the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338739-radius?language=objc -func (r_ RoundedRectangleGeneratorObject) SetRadius(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setRadius:"), value) -} - -func (r_ RoundedRectangleGeneratorObject) HasRadius() bool { - return r_.RespondsToSelector(objc.Sel("radius")) -} - -// The distance from the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338739-radius?language=objc -func (r_ RoundedRectangleGeneratorObject) Radius() float32 { - rv := objc.Call[float32](r_, objc.Sel("radius")) - return rv -} - func (r_ RoundedRectangleGeneratorObject) HasSetColor() bool { return r_.RespondsToSelector(objc.Sel("setColor:")) } @@ -90,6 +67,29 @@ func (r_ RoundedRectangleGeneratorObject) Color() Color { return rv } +func (r_ RoundedRectangleGeneratorObject) HasSetRadius() bool { + return r_.RespondsToSelector(objc.Sel("setRadius:")) +} + +// The distance from the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338739-radius?language=objc +func (r_ RoundedRectangleGeneratorObject) SetRadius(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setRadius:"), value) +} + +func (r_ RoundedRectangleGeneratorObject) HasRadius() bool { + return r_.RespondsToSelector(objc.Sel("radius")) +} + +// The distance from the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338739-radius?language=objc +func (r_ RoundedRectangleGeneratorObject) Radius() float32 { + rv := objc.Call[float32](r_, objc.Sel("radius")) + return rv +} + func (r_ RoundedRectangleGeneratorObject) HasSetExtent() bool { return r_.RespondsToSelector(objc.Sel("setExtent:")) } diff --git a/macos/coreimage/sampler.gen.go b/macos/coreimage/sampler.gen.go index 1e44c312..25af17ae 100644 --- a/macos/coreimage/sampler.gen.go +++ b/macos/coreimage/sampler.gen.go @@ -6,7 +6,6 @@ import ( "unsafe" "github.com/progrium/darwinkit/macos/coregraphics" - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -37,20 +36,6 @@ func SamplerFrom(ptr unsafe.Pointer) Sampler { } } -func (s_ Sampler) InitWithImageKeysAndValues(im IImage, key0 objc.IObject, args ...any) Sampler { - rv := objc.Call[Sampler](s_, objc.Sel("initWithImage:keysAndValues:"), append([]any{im, key0}, args...)...) - return rv -} - -// Initializes the sampler with an image object using options specified as key-value pairs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisampler/1555077-initwithimage?language=objc -func NewSamplerWithImageKeysAndValues(im IImage, key0 objc.IObject, args ...any) Sampler { - instance := SamplerClass.Alloc().InitWithImageKeysAndValues(im, key0, args...) - instance.Autorelease() - return instance -} - func (sc _SamplerClass) SamplerWithImage(im IImage) Sampler { rv := objc.Call[Sampler](sc, objc.Sel("samplerWithImage:"), im) return rv @@ -77,44 +62,6 @@ func NewSamplerWithImage(im IImage) Sampler { return instance } -func (sc _SamplerClass) SamplerWithImageOptions(im IImage, dict foundation.Dictionary) Sampler { - rv := objc.Call[Sampler](sc, objc.Sel("samplerWithImage:options:"), im, dict) - return rv -} - -// Creates and returns a sampler that references an image using options specified in a dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisampler/1555076-samplerwithimage?language=objc -func Sampler_SamplerWithImageOptions(im IImage, dict foundation.Dictionary) Sampler { - return SamplerClass.SamplerWithImageOptions(im, dict) -} - -func (s_ Sampler) InitWithImageOptions(im IImage, dict foundation.Dictionary) Sampler { - rv := objc.Call[Sampler](s_, objc.Sel("initWithImage:options:"), im, dict) - return rv -} - -// Initializes the sampler with an image object using options specified in a dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisampler/1437963-initwithimage?language=objc -func NewSamplerWithImageOptions(im IImage, dict foundation.Dictionary) Sampler { - instance := SamplerClass.Alloc().InitWithImageOptions(im, dict) - instance.Autorelease() - return instance -} - -func (sc _SamplerClass) SamplerWithImageKeysAndValues(im IImage, key0 objc.IObject, args ...any) Sampler { - rv := objc.Call[Sampler](sc, objc.Sel("samplerWithImage:keysAndValues:"), append([]any{im, key0}, args...)...) - return rv -} - -// Creates and returns a sampler that references an image using options specified as key-value pairs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisampler/1555078-samplerwithimage?language=objc -func Sampler_SamplerWithImageKeysAndValues(im IImage, key0 objc.IObject, args ...any) Sampler { - return SamplerClass.SamplerWithImageKeysAndValues(im, key0, args...) -} - func (sc _SamplerClass) Alloc() Sampler { rv := objc.Call[Sampler](sc, objc.Sel("alloc")) return rv diff --git a/macos/coreimage/sepia_tone_protocol.gen.go b/macos/coreimage/sepia_tone_protocol.gen.go index 2dc40f17..7df6dd69 100644 --- a/macos/coreimage/sepia_tone_protocol.gen.go +++ b/macos/coreimage/sepia_tone_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone?language=objc type PSepiaTone interface { - // optional - SetIntensity(value float32) - HasSetIntensity() bool - - // optional - Intensity() float32 - HasIntensity() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -25,6 +17,14 @@ type PSepiaTone interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetIntensity(value float32) + HasSetIntensity() bool + + // optional + Intensity() float32 + HasIntensity() bool } // ensure impl type implements protocol interface @@ -35,29 +35,6 @@ type SepiaToneObject struct { objc.Object } -func (s_ SepiaToneObject) HasSetIntensity() bool { - return s_.RespondsToSelector(objc.Sel("setIntensity:")) -} - -// The intensity of the sepia effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228703-intensity?language=objc -func (s_ SepiaToneObject) SetIntensity(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setIntensity:"), value) -} - -func (s_ SepiaToneObject) HasIntensity() bool { - return s_.RespondsToSelector(objc.Sel("intensity")) -} - -// The intensity of the sepia effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228703-intensity?language=objc -func (s_ SepiaToneObject) Intensity() float32 { - rv := objc.Call[float32](s_, objc.Sel("intensity")) - return rv -} - func (s_ SepiaToneObject) HasSetInputImage() bool { return s_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -80,3 +57,26 @@ func (s_ SepiaToneObject) InputImage() Image { rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } + +func (s_ SepiaToneObject) HasSetIntensity() bool { + return s_.RespondsToSelector(objc.Sel("setIntensity:")) +} + +// The intensity of the sepia effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228703-intensity?language=objc +func (s_ SepiaToneObject) SetIntensity(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setIntensity:"), value) +} + +func (s_ SepiaToneObject) HasIntensity() bool { + return s_.RespondsToSelector(objc.Sel("intensity")) +} + +// The intensity of the sepia effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228703-intensity?language=objc +func (s_ SepiaToneObject) Intensity() float32 { + rv := objc.Call[float32](s_, objc.Sel("intensity")) + return rv +} diff --git a/macos/coreimage/shaded_material_protocol.gen.go b/macos/coreimage/shaded_material_protocol.gen.go index ee84448f..bda14dec 100644 --- a/macos/coreimage/shaded_material_protocol.gen.go +++ b/macos/coreimage/shaded_material_protocol.gen.go @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial?language=objc type PShadedMaterial interface { // optional - SetShadingImage(value Image) - HasSetShadingImage() bool + SetScale(value float32) + HasSetScale() bool // optional - ShadingImage() Image - HasShadingImage() bool + Scale() float32 + HasScale() bool // optional SetInputImage(value Image) @@ -27,12 +27,12 @@ type PShadedMaterial interface { HasInputImage() bool // optional - SetScale(value float32) - HasSetScale() bool + SetShadingImage(value Image) + HasSetShadingImage() bool // optional - Scale() float32 - HasScale() bool + ShadingImage() Image + HasShadingImage() bool } // ensure impl type implements protocol interface @@ -43,26 +43,26 @@ type ShadedMaterialObject struct { objc.Object } -func (s_ ShadedMaterialObject) HasSetShadingImage() bool { - return s_.RespondsToSelector(objc.Sel("setShadingImage:")) +func (s_ ShadedMaterialObject) HasSetScale() bool { + return s_.RespondsToSelector(objc.Sel("setScale:")) } -// The image to use as the height field. [Full Topic] +// The scale of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228707-shadingimage?language=objc -func (s_ ShadedMaterialObject) SetShadingImage(value Image) { - objc.Call[objc.Void](s_, objc.Sel("setShadingImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228706-scale?language=objc +func (s_ ShadedMaterialObject) SetScale(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setScale:"), value) } -func (s_ ShadedMaterialObject) HasShadingImage() bool { - return s_.RespondsToSelector(objc.Sel("shadingImage")) +func (s_ ShadedMaterialObject) HasScale() bool { + return s_.RespondsToSelector(objc.Sel("scale")) } -// The image to use as the height field. [Full Topic] +// The scale of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228707-shadingimage?language=objc -func (s_ ShadedMaterialObject) ShadingImage() Image { - rv := objc.Call[Image](s_, objc.Sel("shadingImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228706-scale?language=objc +func (s_ ShadedMaterialObject) Scale() float32 { + rv := objc.Call[float32](s_, objc.Sel("scale")) return rv } @@ -89,25 +89,25 @@ func (s_ ShadedMaterialObject) InputImage() Image { return rv } -func (s_ ShadedMaterialObject) HasSetScale() bool { - return s_.RespondsToSelector(objc.Sel("setScale:")) +func (s_ ShadedMaterialObject) HasSetShadingImage() bool { + return s_.RespondsToSelector(objc.Sel("setShadingImage:")) } -// The scale of the effect. [Full Topic] +// The image to use as the height field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228706-scale?language=objc -func (s_ ShadedMaterialObject) SetScale(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228707-shadingimage?language=objc +func (s_ ShadedMaterialObject) SetShadingImage(value Image) { + objc.Call[objc.Void](s_, objc.Sel("setShadingImage:"), value) } -func (s_ ShadedMaterialObject) HasScale() bool { - return s_.RespondsToSelector(objc.Sel("scale")) +func (s_ ShadedMaterialObject) HasShadingImage() bool { + return s_.RespondsToSelector(objc.Sel("shadingImage")) } -// The scale of the effect. [Full Topic] +// The image to use as the height field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228706-scale?language=objc -func (s_ ShadedMaterialObject) Scale() float32 { - rv := objc.Call[float32](s_, objc.Sel("scale")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228707-shadingimage?language=objc +func (s_ ShadedMaterialObject) ShadingImage() Image { + rv := objc.Call[Image](s_, objc.Sel("shadingImage")) return rv } diff --git a/macos/coreimage/sharpen_luminance_protocol.gen.go b/macos/coreimage/sharpen_luminance_protocol.gen.go index 3c0b2be1..326c3f3e 100644 --- a/macos/coreimage/sharpen_luminance_protocol.gen.go +++ b/macos/coreimage/sharpen_luminance_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisharpenluminance?language=objc type PSharpenLuminance interface { - // optional - SetSharpness(value float32) - HasSetSharpness() bool - - // optional - Sharpness() float32 - HasSharpness() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -33,6 +25,14 @@ type PSharpenLuminance interface { // optional Radius() float32 HasRadius() bool + + // optional + SetSharpness(value float32) + HasSetSharpness() bool + + // optional + Sharpness() float32 + HasSharpness() bool } // ensure impl type implements protocol interface @@ -43,29 +43,6 @@ type SharpenLuminanceObject struct { objc.Object } -func (s_ SharpenLuminanceObject) HasSetSharpness() bool { - return s_.RespondsToSelector(objc.Sel("setSharpness:")) -} - -// The amount of sharpening to apply. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisharpenluminance/3228711-sharpness?language=objc -func (s_ SharpenLuminanceObject) SetSharpness(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setSharpness:"), value) -} - -func (s_ SharpenLuminanceObject) HasSharpness() bool { - return s_.RespondsToSelector(objc.Sel("sharpness")) -} - -// The amount of sharpening to apply. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisharpenluminance/3228711-sharpness?language=objc -func (s_ SharpenLuminanceObject) Sharpness() float32 { - rv := objc.Call[float32](s_, objc.Sel("sharpness")) - return rv -} - func (s_ SharpenLuminanceObject) HasSetInputImage() bool { return s_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -111,3 +88,26 @@ func (s_ SharpenLuminanceObject) Radius() float32 { rv := objc.Call[float32](s_, objc.Sel("radius")) return rv } + +func (s_ SharpenLuminanceObject) HasSetSharpness() bool { + return s_.RespondsToSelector(objc.Sel("setSharpness:")) +} + +// The amount of sharpening to apply. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisharpenluminance/3228711-sharpness?language=objc +func (s_ SharpenLuminanceObject) SetSharpness(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setSharpness:"), value) +} + +func (s_ SharpenLuminanceObject) HasSharpness() bool { + return s_.RespondsToSelector(objc.Sel("sharpness")) +} + +// The amount of sharpening to apply. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisharpenluminance/3228711-sharpness?language=objc +func (s_ SharpenLuminanceObject) Sharpness() float32 { + rv := objc.Call[float32](s_, objc.Sel("sharpness")) + return rv +} diff --git a/macos/coreimage/sixfold_reflected_tile_protocol.gen.go b/macos/coreimage/sixfold_reflected_tile_protocol.gen.go index 535fe1ae..8910d86f 100644 --- a/macos/coreimage/sixfold_reflected_tile_protocol.gen.go +++ b/macos/coreimage/sixfold_reflected_tile_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldreflectedtile?language=objc type PSixfoldReflectedTile interface { - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetWidth(value float32) HasSetWidth() bool @@ -42,6 +34,14 @@ type PSixfoldReflectedTile interface { // optional Angle() float32 HasAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,29 +52,6 @@ type SixfoldReflectedTileObject struct { objc.Object } -func (s_ SixfoldReflectedTileObject) HasSetCenter() bool { - return s_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldreflectedtile/3228714-center?language=objc -func (s_ SixfoldReflectedTileObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) -} - -func (s_ SixfoldReflectedTileObject) HasCenter() bool { - return s_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldreflectedtile/3228714-center?language=objc -func (s_ SixfoldReflectedTileObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) - return rv -} - func (s_ SixfoldReflectedTileObject) HasSetWidth() bool { return s_.RespondsToSelector(objc.Sel("setWidth:")) } @@ -143,3 +120,26 @@ func (s_ SixfoldReflectedTileObject) Angle() float32 { rv := objc.Call[float32](s_, objc.Sel("angle")) return rv } + +func (s_ SixfoldReflectedTileObject) HasSetCenter() bool { + return s_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldreflectedtile/3228714-center?language=objc +func (s_ SixfoldReflectedTileObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) +} + +func (s_ SixfoldReflectedTileObject) HasCenter() bool { + return s_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldreflectedtile/3228714-center?language=objc +func (s_ SixfoldReflectedTileObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/sixfold_rotated_tile_protocol.gen.go b/macos/coreimage/sixfold_rotated_tile_protocol.gen.go index bf345f07..57c046fa 100644 --- a/macos/coreimage/sixfold_rotated_tile_protocol.gen.go +++ b/macos/coreimage/sixfold_rotated_tile_protocol.gen.go @@ -19,14 +19,6 @@ type PSixfoldRotatedTile interface { Width() float32 HasWidth() bool - // optional - SetAngle(value float32) - HasSetAngle() bool - - // optional - Angle() float32 - HasAngle() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -35,6 +27,14 @@ type PSixfoldRotatedTile interface { InputImage() Image HasInputImage() bool + // optional + SetAngle(value float32) + HasSetAngle() bool + + // optional + Angle() float32 + HasAngle() bool + // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -75,29 +75,6 @@ func (s_ SixfoldRotatedTileObject) Width() float32 { return rv } -func (s_ SixfoldRotatedTileObject) HasSetAngle() bool { - return s_.RespondsToSelector(objc.Sel("setAngle:")) -} - -// The angle, in radians, of the tiled pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228718-angle?language=objc -func (s_ SixfoldRotatedTileObject) SetAngle(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setAngle:"), value) -} - -func (s_ SixfoldRotatedTileObject) HasAngle() bool { - return s_.RespondsToSelector(objc.Sel("angle")) -} - -// The angle, in radians, of the tiled pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228718-angle?language=objc -func (s_ SixfoldRotatedTileObject) Angle() float32 { - rv := objc.Call[float32](s_, objc.Sel("angle")) - return rv -} - func (s_ SixfoldRotatedTileObject) HasSetInputImage() bool { return s_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -121,6 +98,29 @@ func (s_ SixfoldRotatedTileObject) InputImage() Image { return rv } +func (s_ SixfoldRotatedTileObject) HasSetAngle() bool { + return s_.RespondsToSelector(objc.Sel("setAngle:")) +} + +// The angle, in radians, of the tiled pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228718-angle?language=objc +func (s_ SixfoldRotatedTileObject) SetAngle(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setAngle:"), value) +} + +func (s_ SixfoldRotatedTileObject) HasAngle() bool { + return s_.RespondsToSelector(objc.Sel("angle")) +} + +// The angle, in radians, of the tiled pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228718-angle?language=objc +func (s_ SixfoldRotatedTileObject) Angle() float32 { + rv := objc.Call[float32](s_, objc.Sel("angle")) + return rv +} + func (s_ SixfoldRotatedTileObject) HasSetCenter() bool { return s_.RespondsToSelector(objc.Sel("setCenter:")) } diff --git a/macos/coreimage/smooth_linear_gradient_protocol.gen.go b/macos/coreimage/smooth_linear_gradient_protocol.gen.go index bfa2336d..8ad71173 100644 --- a/macos/coreimage/smooth_linear_gradient_protocol.gen.go +++ b/macos/coreimage/smooth_linear_gradient_protocol.gen.go @@ -19,14 +19,6 @@ type PSmoothLinearGradient interface { Point1() coregraphics.Point HasPoint1() bool - // optional - SetColor0(value Color) - HasSetColor0() bool - - // optional - Color0() Color - HasColor0() bool - // optional SetPoint0(value coregraphics.Point) HasSetPoint0() bool @@ -35,6 +27,14 @@ type PSmoothLinearGradient interface { Point0() coregraphics.Point HasPoint0() bool + // optional + SetColor0(value Color) + HasSetColor0() bool + + // optional + Color0() Color + HasColor0() bool + // optional SetColor1(value Color) HasSetColor1() bool @@ -75,29 +75,6 @@ func (s_ SmoothLinearGradientObject) Point1() coregraphics.Point { return rv } -func (s_ SmoothLinearGradientObject) HasSetColor0() bool { - return s_.RespondsToSelector(objc.Sel("setColor0:")) -} - -// The first color to use in the gradient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228723-color0?language=objc -func (s_ SmoothLinearGradientObject) SetColor0(value Color) { - objc.Call[objc.Void](s_, objc.Sel("setColor0:"), value) -} - -func (s_ SmoothLinearGradientObject) HasColor0() bool { - return s_.RespondsToSelector(objc.Sel("color0")) -} - -// The first color to use in the gradient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228723-color0?language=objc -func (s_ SmoothLinearGradientObject) Color0() Color { - rv := objc.Call[Color](s_, objc.Sel("color0")) - return rv -} - func (s_ SmoothLinearGradientObject) HasSetPoint0() bool { return s_.RespondsToSelector(objc.Sel("setPoint0:")) } @@ -121,6 +98,29 @@ func (s_ SmoothLinearGradientObject) Point0() coregraphics.Point { return rv } +func (s_ SmoothLinearGradientObject) HasSetColor0() bool { + return s_.RespondsToSelector(objc.Sel("setColor0:")) +} + +// The first color to use in the gradient. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228723-color0?language=objc +func (s_ SmoothLinearGradientObject) SetColor0(value Color) { + objc.Call[objc.Void](s_, objc.Sel("setColor0:"), value) +} + +func (s_ SmoothLinearGradientObject) HasColor0() bool { + return s_.RespondsToSelector(objc.Sel("color0")) +} + +// The first color to use in the gradient. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228723-color0?language=objc +func (s_ SmoothLinearGradientObject) Color0() Color { + rv := objc.Call[Color](s_, objc.Sel("color0")) + return rv +} + func (s_ SmoothLinearGradientObject) HasSetColor1() bool { return s_.RespondsToSelector(objc.Sel("setColor1:")) } diff --git a/macos/coreimage/spot_color_protocol.gen.go b/macos/coreimage/spot_color_protocol.gen.go index f4b56ea1..8e3a4e1d 100644 --- a/macos/coreimage/spot_color_protocol.gen.go +++ b/macos/coreimage/spot_color_protocol.gen.go @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor?language=objc type PSpotColor interface { // optional - SetReplacementColor3(value Color) - HasSetReplacementColor3() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - ReplacementColor3() Color - HasReplacementColor3() bool + InputImage() Image + HasInputImage() bool // optional SetContrast2(value float32) @@ -27,28 +27,36 @@ type PSpotColor interface { HasContrast2() bool // optional - SetCenterColor1(value Color) - HasSetCenterColor1() bool + SetCenterColor3(value Color) + HasSetCenterColor3() bool // optional - CenterColor1() Color - HasCenterColor1() bool + CenterColor3() Color + HasCenterColor3() bool // optional - SetCloseness1(value float32) - HasSetCloseness1() bool + SetCenterColor2(value Color) + HasSetCenterColor2() bool // optional - Closeness1() float32 - HasCloseness1() bool + CenterColor2() Color + HasCenterColor2() bool // optional - SetCloseness3(value float32) - HasSetCloseness3() bool + SetContrast3(value float32) + HasSetContrast3() bool // optional - Closeness3() float32 - HasCloseness3() bool + Contrast3() float32 + HasContrast3() bool + + // optional + SetCloseness2(value float32) + HasSetCloseness2() bool + + // optional + Closeness2() float32 + HasCloseness2() bool // optional SetReplacementColor2(value Color) @@ -59,28 +67,28 @@ type PSpotColor interface { HasReplacementColor2() bool // optional - SetContrast3(value float32) - HasSetContrast3() bool + SetReplacementColor3(value Color) + HasSetReplacementColor3() bool // optional - Contrast3() float32 - HasContrast3() bool + ReplacementColor3() Color + HasReplacementColor3() bool // optional - SetCloseness2(value float32) - HasSetCloseness2() bool + SetCloseness3(value float32) + HasSetCloseness3() bool // optional - Closeness2() float32 - HasCloseness2() bool + Closeness3() float32 + HasCloseness3() bool // optional - SetCenterColor2(value Color) - HasSetCenterColor2() bool + SetCloseness1(value float32) + HasSetCloseness1() bool // optional - CenterColor2() Color - HasCenterColor2() bool + Closeness1() float32 + HasCloseness1() bool // optional SetReplacementColor1(value Color) @@ -91,12 +99,12 @@ type PSpotColor interface { HasReplacementColor1() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetCenterColor1(value Color) + HasSetCenterColor1() bool // optional - InputImage() Image - HasInputImage() bool + CenterColor1() Color + HasCenterColor1() bool // optional SetContrast1(value float32) @@ -105,14 +113,6 @@ type PSpotColor interface { // optional Contrast1() float32 HasContrast1() bool - - // optional - SetCenterColor3(value Color) - HasSetCenterColor3() bool - - // optional - CenterColor3() Color - HasCenterColor3() bool } // ensure impl type implements protocol interface @@ -123,26 +123,26 @@ type SpotColorObject struct { objc.Object } -func (s_ SpotColorObject) HasSetReplacementColor3() bool { - return s_.RespondsToSelector(objc.Sel("setReplacementColor3:")) +func (s_ SpotColorObject) HasSetInputImage() bool { + return s_.RespondsToSelector(objc.Sel("setInputImage:")) } -// A replacement color for the third color range. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228740-replacementcolor3?language=objc -func (s_ SpotColorObject) SetReplacementColor3(value Color) { - objc.Call[objc.Void](s_, objc.Sel("setReplacementColor3:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228737-inputimage?language=objc +func (s_ SpotColorObject) SetInputImage(value Image) { + objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), value) } -func (s_ SpotColorObject) HasReplacementColor3() bool { - return s_.RespondsToSelector(objc.Sel("replacementColor3")) +func (s_ SpotColorObject) HasInputImage() bool { + return s_.RespondsToSelector(objc.Sel("inputImage")) } -// A replacement color for the third color range. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228740-replacementcolor3?language=objc -func (s_ SpotColorObject) ReplacementColor3() Color { - rv := objc.Call[Color](s_, objc.Sel("replacementColor3")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228737-inputimage?language=objc +func (s_ SpotColorObject) InputImage() Image { + rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } @@ -169,72 +169,95 @@ func (s_ SpotColorObject) Contrast2() float32 { return rv } -func (s_ SpotColorObject) HasSetCenterColor1() bool { - return s_.RespondsToSelector(objc.Sel("setCenterColor1:")) +func (s_ SpotColorObject) HasSetCenterColor3() bool { + return s_.RespondsToSelector(objc.Sel("setCenterColor3:")) } -// The center value of the first color range to replace. [Full Topic] +// The center value of the third color range to replace. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228728-centercolor1?language=objc -func (s_ SpotColorObject) SetCenterColor1(value Color) { - objc.Call[objc.Void](s_, objc.Sel("setCenterColor1:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228730-centercolor3?language=objc +func (s_ SpotColorObject) SetCenterColor3(value Color) { + objc.Call[objc.Void](s_, objc.Sel("setCenterColor3:"), value) } -func (s_ SpotColorObject) HasCenterColor1() bool { - return s_.RespondsToSelector(objc.Sel("centerColor1")) +func (s_ SpotColorObject) HasCenterColor3() bool { + return s_.RespondsToSelector(objc.Sel("centerColor3")) } -// The center value of the first color range to replace. [Full Topic] +// The center value of the third color range to replace. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228728-centercolor1?language=objc -func (s_ SpotColorObject) CenterColor1() Color { - rv := objc.Call[Color](s_, objc.Sel("centerColor1")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228730-centercolor3?language=objc +func (s_ SpotColorObject) CenterColor3() Color { + rv := objc.Call[Color](s_, objc.Sel("centerColor3")) return rv } -func (s_ SpotColorObject) HasSetCloseness1() bool { - return s_.RespondsToSelector(objc.Sel("setCloseness1:")) +func (s_ SpotColorObject) HasSetCenterColor2() bool { + return s_.RespondsToSelector(objc.Sel("setCenterColor2:")) } -// A value that indicates how closely the first color must match before it’s replaced. [Full Topic] +// The center value of the second color range to replace. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228731-closeness1?language=objc -func (s_ SpotColorObject) SetCloseness1(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setCloseness1:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228729-centercolor2?language=objc +func (s_ SpotColorObject) SetCenterColor2(value Color) { + objc.Call[objc.Void](s_, objc.Sel("setCenterColor2:"), value) } -func (s_ SpotColorObject) HasCloseness1() bool { - return s_.RespondsToSelector(objc.Sel("closeness1")) +func (s_ SpotColorObject) HasCenterColor2() bool { + return s_.RespondsToSelector(objc.Sel("centerColor2")) } -// A value that indicates how closely the first color must match before it’s replaced. [Full Topic] +// The center value of the second color range to replace. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228731-closeness1?language=objc -func (s_ SpotColorObject) Closeness1() float32 { - rv := objc.Call[float32](s_, objc.Sel("closeness1")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228729-centercolor2?language=objc +func (s_ SpotColorObject) CenterColor2() Color { + rv := objc.Call[Color](s_, objc.Sel("centerColor2")) return rv } -func (s_ SpotColorObject) HasSetCloseness3() bool { - return s_.RespondsToSelector(objc.Sel("setCloseness3:")) +func (s_ SpotColorObject) HasSetContrast3() bool { + return s_.RespondsToSelector(objc.Sel("setContrast3:")) } -// A value that indicates how closely the third color must match before it’s replaced. [Full Topic] +// The contrast of the third replacement color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228733-closeness3?language=objc -func (s_ SpotColorObject) SetCloseness3(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setCloseness3:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228736-contrast3?language=objc +func (s_ SpotColorObject) SetContrast3(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setContrast3:"), value) } -func (s_ SpotColorObject) HasCloseness3() bool { - return s_.RespondsToSelector(objc.Sel("closeness3")) +func (s_ SpotColorObject) HasContrast3() bool { + return s_.RespondsToSelector(objc.Sel("contrast3")) } -// A value that indicates how closely the third color must match before it’s replaced. [Full Topic] +// The contrast of the third replacement color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228733-closeness3?language=objc -func (s_ SpotColorObject) Closeness3() float32 { - rv := objc.Call[float32](s_, objc.Sel("closeness3")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228736-contrast3?language=objc +func (s_ SpotColorObject) Contrast3() float32 { + rv := objc.Call[float32](s_, objc.Sel("contrast3")) + return rv +} + +func (s_ SpotColorObject) HasSetCloseness2() bool { + return s_.RespondsToSelector(objc.Sel("setCloseness2:")) +} + +// A value that indicates how closely the second color must match before it’s replaced. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228732-closeness2?language=objc +func (s_ SpotColorObject) SetCloseness2(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setCloseness2:"), value) +} + +func (s_ SpotColorObject) HasCloseness2() bool { + return s_.RespondsToSelector(objc.Sel("closeness2")) +} + +// A value that indicates how closely the second color must match before it’s replaced. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228732-closeness2?language=objc +func (s_ SpotColorObject) Closeness2() float32 { + rv := objc.Call[float32](s_, objc.Sel("closeness2")) return rv } @@ -261,72 +284,72 @@ func (s_ SpotColorObject) ReplacementColor2() Color { return rv } -func (s_ SpotColorObject) HasSetContrast3() bool { - return s_.RespondsToSelector(objc.Sel("setContrast3:")) +func (s_ SpotColorObject) HasSetReplacementColor3() bool { + return s_.RespondsToSelector(objc.Sel("setReplacementColor3:")) } -// The contrast of the third replacement color. [Full Topic] +// A replacement color for the third color range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228736-contrast3?language=objc -func (s_ SpotColorObject) SetContrast3(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setContrast3:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228740-replacementcolor3?language=objc +func (s_ SpotColorObject) SetReplacementColor3(value Color) { + objc.Call[objc.Void](s_, objc.Sel("setReplacementColor3:"), value) } -func (s_ SpotColorObject) HasContrast3() bool { - return s_.RespondsToSelector(objc.Sel("contrast3")) +func (s_ SpotColorObject) HasReplacementColor3() bool { + return s_.RespondsToSelector(objc.Sel("replacementColor3")) } -// The contrast of the third replacement color. [Full Topic] +// A replacement color for the third color range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228736-contrast3?language=objc -func (s_ SpotColorObject) Contrast3() float32 { - rv := objc.Call[float32](s_, objc.Sel("contrast3")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228740-replacementcolor3?language=objc +func (s_ SpotColorObject) ReplacementColor3() Color { + rv := objc.Call[Color](s_, objc.Sel("replacementColor3")) return rv } -func (s_ SpotColorObject) HasSetCloseness2() bool { - return s_.RespondsToSelector(objc.Sel("setCloseness2:")) +func (s_ SpotColorObject) HasSetCloseness3() bool { + return s_.RespondsToSelector(objc.Sel("setCloseness3:")) } -// A value that indicates how closely the second color must match before it’s replaced. [Full Topic] +// A value that indicates how closely the third color must match before it’s replaced. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228732-closeness2?language=objc -func (s_ SpotColorObject) SetCloseness2(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setCloseness2:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228733-closeness3?language=objc +func (s_ SpotColorObject) SetCloseness3(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setCloseness3:"), value) } -func (s_ SpotColorObject) HasCloseness2() bool { - return s_.RespondsToSelector(objc.Sel("closeness2")) +func (s_ SpotColorObject) HasCloseness3() bool { + return s_.RespondsToSelector(objc.Sel("closeness3")) } -// A value that indicates how closely the second color must match before it’s replaced. [Full Topic] +// A value that indicates how closely the third color must match before it’s replaced. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228732-closeness2?language=objc -func (s_ SpotColorObject) Closeness2() float32 { - rv := objc.Call[float32](s_, objc.Sel("closeness2")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228733-closeness3?language=objc +func (s_ SpotColorObject) Closeness3() float32 { + rv := objc.Call[float32](s_, objc.Sel("closeness3")) return rv } -func (s_ SpotColorObject) HasSetCenterColor2() bool { - return s_.RespondsToSelector(objc.Sel("setCenterColor2:")) +func (s_ SpotColorObject) HasSetCloseness1() bool { + return s_.RespondsToSelector(objc.Sel("setCloseness1:")) } -// The center value of the second color range to replace. [Full Topic] +// A value that indicates how closely the first color must match before it’s replaced. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228729-centercolor2?language=objc -func (s_ SpotColorObject) SetCenterColor2(value Color) { - objc.Call[objc.Void](s_, objc.Sel("setCenterColor2:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228731-closeness1?language=objc +func (s_ SpotColorObject) SetCloseness1(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setCloseness1:"), value) } -func (s_ SpotColorObject) HasCenterColor2() bool { - return s_.RespondsToSelector(objc.Sel("centerColor2")) +func (s_ SpotColorObject) HasCloseness1() bool { + return s_.RespondsToSelector(objc.Sel("closeness1")) } -// The center value of the second color range to replace. [Full Topic] +// A value that indicates how closely the first color must match before it’s replaced. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228729-centercolor2?language=objc -func (s_ SpotColorObject) CenterColor2() Color { - rv := objc.Call[Color](s_, objc.Sel("centerColor2")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228731-closeness1?language=objc +func (s_ SpotColorObject) Closeness1() float32 { + rv := objc.Call[float32](s_, objc.Sel("closeness1")) return rv } @@ -353,26 +376,26 @@ func (s_ SpotColorObject) ReplacementColor1() Color { return rv } -func (s_ SpotColorObject) HasSetInputImage() bool { - return s_.RespondsToSelector(objc.Sel("setInputImage:")) +func (s_ SpotColorObject) HasSetCenterColor1() bool { + return s_.RespondsToSelector(objc.Sel("setCenterColor1:")) } -// The image to use as an input image. [Full Topic] +// The center value of the first color range to replace. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228737-inputimage?language=objc -func (s_ SpotColorObject) SetInputImage(value Image) { - objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228728-centercolor1?language=objc +func (s_ SpotColorObject) SetCenterColor1(value Color) { + objc.Call[objc.Void](s_, objc.Sel("setCenterColor1:"), value) } -func (s_ SpotColorObject) HasInputImage() bool { - return s_.RespondsToSelector(objc.Sel("inputImage")) +func (s_ SpotColorObject) HasCenterColor1() bool { + return s_.RespondsToSelector(objc.Sel("centerColor1")) } -// The image to use as an input image. [Full Topic] +// The center value of the first color range to replace. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228737-inputimage?language=objc -func (s_ SpotColorObject) InputImage() Image { - rv := objc.Call[Image](s_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228728-centercolor1?language=objc +func (s_ SpotColorObject) CenterColor1() Color { + rv := objc.Call[Color](s_, objc.Sel("centerColor1")) return rv } @@ -398,26 +421,3 @@ func (s_ SpotColorObject) Contrast1() float32 { rv := objc.Call[float32](s_, objc.Sel("contrast1")) return rv } - -func (s_ SpotColorObject) HasSetCenterColor3() bool { - return s_.RespondsToSelector(objc.Sel("setCenterColor3:")) -} - -// The center value of the third color range to replace. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228730-centercolor3?language=objc -func (s_ SpotColorObject) SetCenterColor3(value Color) { - objc.Call[objc.Void](s_, objc.Sel("setCenterColor3:"), value) -} - -func (s_ SpotColorObject) HasCenterColor3() bool { - return s_.RespondsToSelector(objc.Sel("centerColor3")) -} - -// The center value of the third color range to replace. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228730-centercolor3?language=objc -func (s_ SpotColorObject) CenterColor3() Color { - rv := objc.Call[Color](s_, objc.Sel("centerColor3")) - return rv -} diff --git a/macos/coreimage/spot_light_protocol.gen.go b/macos/coreimage/spot_light_protocol.gen.go index 3a3966c3..31f070ef 100644 --- a/macos/coreimage/spot_light_protocol.gen.go +++ b/macos/coreimage/spot_light_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight?language=objc type PSpotLight interface { - // optional - SetBrightness(value float32) - HasSetBrightness() bool - - // optional - Brightness() float32 - HasBrightness() bool - // optional SetColor(value Color) HasSetColor() bool @@ -27,12 +19,20 @@ type PSpotLight interface { HasColor() bool // optional - SetLightPosition(value Vector) - HasSetLightPosition() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - LightPosition() Vector - HasLightPosition() bool + InputImage() Image + HasInputImage() bool + + // optional + SetLightPointsAt(value Vector) + HasSetLightPointsAt() bool + + // optional + LightPointsAt() Vector + HasLightPointsAt() bool // optional SetConcentration(value float32) @@ -43,20 +43,20 @@ type PSpotLight interface { HasConcentration() bool // optional - SetLightPointsAt(value Vector) - HasSetLightPointsAt() bool + SetLightPosition(value Vector) + HasSetLightPosition() bool // optional - LightPointsAt() Vector - HasLightPointsAt() bool + LightPosition() Vector + HasLightPosition() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetBrightness(value float32) + HasSetBrightness() bool // optional - InputImage() Image - HasInputImage() bool + Brightness() float32 + HasBrightness() bool } // ensure impl type implements protocol interface @@ -67,29 +67,6 @@ type SpotLightObject struct { objc.Object } -func (s_ SpotLightObject) HasSetBrightness() bool { - return s_.RespondsToSelector(objc.Sel("setBrightness:")) -} - -// The brightness of the spotlight. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228742-brightness?language=objc -func (s_ SpotLightObject) SetBrightness(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setBrightness:"), value) -} - -func (s_ SpotLightObject) HasBrightness() bool { - return s_.RespondsToSelector(objc.Sel("brightness")) -} - -// The brightness of the spotlight. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228742-brightness?language=objc -func (s_ SpotLightObject) Brightness() float32 { - rv := objc.Call[float32](s_, objc.Sel("brightness")) - return rv -} - func (s_ SpotLightObject) HasSetColor() bool { return s_.RespondsToSelector(objc.Sel("setColor:")) } @@ -113,26 +90,49 @@ func (s_ SpotLightObject) Color() Color { return rv } -func (s_ SpotLightObject) HasSetLightPosition() bool { - return s_.RespondsToSelector(objc.Sel("setLightPosition:")) +func (s_ SpotLightObject) HasSetInputImage() bool { + return s_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The x and y position of the spotlight. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228747-lightposition?language=objc -func (s_ SpotLightObject) SetLightPosition(value Vector) { - objc.Call[objc.Void](s_, objc.Sel("setLightPosition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228745-inputimage?language=objc +func (s_ SpotLightObject) SetInputImage(value Image) { + objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), value) } -func (s_ SpotLightObject) HasLightPosition() bool { - return s_.RespondsToSelector(objc.Sel("lightPosition")) +func (s_ SpotLightObject) HasInputImage() bool { + return s_.RespondsToSelector(objc.Sel("inputImage")) } -// The x and y position of the spotlight. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228747-lightposition?language=objc -func (s_ SpotLightObject) LightPosition() Vector { - rv := objc.Call[Vector](s_, objc.Sel("lightPosition")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228745-inputimage?language=objc +func (s_ SpotLightObject) InputImage() Image { + rv := objc.Call[Image](s_, objc.Sel("inputImage")) + return rv +} + +func (s_ SpotLightObject) HasSetLightPointsAt() bool { + return s_.RespondsToSelector(objc.Sel("setLightPointsAt:")) +} + +// The x and y position that the spotlight points at. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228746-lightpointsat?language=objc +func (s_ SpotLightObject) SetLightPointsAt(value Vector) { + objc.Call[objc.Void](s_, objc.Sel("setLightPointsAt:"), value) +} + +func (s_ SpotLightObject) HasLightPointsAt() bool { + return s_.RespondsToSelector(objc.Sel("lightPointsAt")) +} + +// The x and y position that the spotlight points at. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228746-lightpointsat?language=objc +func (s_ SpotLightObject) LightPointsAt() Vector { + rv := objc.Call[Vector](s_, objc.Sel("lightPointsAt")) return rv } @@ -159,48 +159,48 @@ func (s_ SpotLightObject) Concentration() float32 { return rv } -func (s_ SpotLightObject) HasSetLightPointsAt() bool { - return s_.RespondsToSelector(objc.Sel("setLightPointsAt:")) +func (s_ SpotLightObject) HasSetLightPosition() bool { + return s_.RespondsToSelector(objc.Sel("setLightPosition:")) } -// The x and y position that the spotlight points at. [Full Topic] +// The x and y position of the spotlight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228746-lightpointsat?language=objc -func (s_ SpotLightObject) SetLightPointsAt(value Vector) { - objc.Call[objc.Void](s_, objc.Sel("setLightPointsAt:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228747-lightposition?language=objc +func (s_ SpotLightObject) SetLightPosition(value Vector) { + objc.Call[objc.Void](s_, objc.Sel("setLightPosition:"), value) } -func (s_ SpotLightObject) HasLightPointsAt() bool { - return s_.RespondsToSelector(objc.Sel("lightPointsAt")) +func (s_ SpotLightObject) HasLightPosition() bool { + return s_.RespondsToSelector(objc.Sel("lightPosition")) } -// The x and y position that the spotlight points at. [Full Topic] +// The x and y position of the spotlight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228746-lightpointsat?language=objc -func (s_ SpotLightObject) LightPointsAt() Vector { - rv := objc.Call[Vector](s_, objc.Sel("lightPointsAt")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228747-lightposition?language=objc +func (s_ SpotLightObject) LightPosition() Vector { + rv := objc.Call[Vector](s_, objc.Sel("lightPosition")) return rv } -func (s_ SpotLightObject) HasSetInputImage() bool { - return s_.RespondsToSelector(objc.Sel("setInputImage:")) +func (s_ SpotLightObject) HasSetBrightness() bool { + return s_.RespondsToSelector(objc.Sel("setBrightness:")) } -// The image to use as an input image. [Full Topic] +// The brightness of the spotlight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228745-inputimage?language=objc -func (s_ SpotLightObject) SetInputImage(value Image) { - objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228742-brightness?language=objc +func (s_ SpotLightObject) SetBrightness(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setBrightness:"), value) } -func (s_ SpotLightObject) HasInputImage() bool { - return s_.RespondsToSelector(objc.Sel("inputImage")) +func (s_ SpotLightObject) HasBrightness() bool { + return s_.RespondsToSelector(objc.Sel("brightness")) } -// The image to use as an input image. [Full Topic] +// The brightness of the spotlight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228745-inputimage?language=objc -func (s_ SpotLightObject) InputImage() Image { - rv := objc.Call[Image](s_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228742-brightness?language=objc +func (s_ SpotLightObject) Brightness() float32 { + rv := objc.Call[float32](s_, objc.Sel("brightness")) return rv } diff --git a/macos/coreimage/star_shine_generator_protocol.gen.go b/macos/coreimage/star_shine_generator_protocol.gen.go index b2fd2bff..34e3aaf4 100644 --- a/macos/coreimage/star_shine_generator_protocol.gen.go +++ b/macos/coreimage/star_shine_generator_protocol.gen.go @@ -12,20 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator?language=objc type PStarShineGenerator interface { // optional - SetColor(value Color) - HasSetColor() bool + SetCrossOpacity(value float32) + HasSetCrossOpacity() bool // optional - Color() Color - HasColor() bool + CrossOpacity() float32 + HasCrossOpacity() bool // optional - SetCrossScale(value float32) - HasSetCrossScale() bool + SetColor(value Color) + HasSetColor() bool // optional - CrossScale() float32 - HasCrossScale() bool + Color() Color + HasColor() bool // optional SetCrossAngle(value float32) @@ -36,12 +36,12 @@ type PStarShineGenerator interface { HasCrossAngle() bool // optional - SetCrossWidth(value float32) - HasSetCrossWidth() bool + SetEpsilon(value float32) + HasSetEpsilon() bool // optional - CrossWidth() float32 - HasCrossWidth() bool + Epsilon() float32 + HasEpsilon() bool // optional SetRadius(value float32) @@ -52,28 +52,28 @@ type PStarShineGenerator interface { HasRadius() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetCrossScale(value float32) + HasSetCrossScale() bool // optional - Center() coregraphics.Point - HasCenter() bool + CrossScale() float32 + HasCrossScale() bool // optional - SetEpsilon(value float32) - HasSetEpsilon() bool + SetCrossWidth(value float32) + HasSetCrossWidth() bool // optional - Epsilon() float32 - HasEpsilon() bool + CrossWidth() float32 + HasCrossWidth() bool // optional - SetCrossOpacity(value float32) - HasSetCrossOpacity() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - CrossOpacity() float32 - HasCrossOpacity() bool + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -84,6 +84,29 @@ type StarShineGeneratorObject struct { objc.Object } +func (s_ StarShineGeneratorObject) HasSetCrossOpacity() bool { + return s_.RespondsToSelector(objc.Sel("setCrossOpacity:")) +} + +// The opacity of the cross pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228752-crossopacity?language=objc +func (s_ StarShineGeneratorObject) SetCrossOpacity(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setCrossOpacity:"), value) +} + +func (s_ StarShineGeneratorObject) HasCrossOpacity() bool { + return s_.RespondsToSelector(objc.Sel("crossOpacity")) +} + +// The opacity of the cross pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228752-crossopacity?language=objc +func (s_ StarShineGeneratorObject) CrossOpacity() float32 { + rv := objc.Call[float32](s_, objc.Sel("crossOpacity")) + return rv +} + func (s_ StarShineGeneratorObject) HasSetColor() bool { return s_.RespondsToSelector(objc.Sel("setColor:")) } @@ -107,29 +130,6 @@ func (s_ StarShineGeneratorObject) Color() Color { return rv } -func (s_ StarShineGeneratorObject) HasSetCrossScale() bool { - return s_.RespondsToSelector(objc.Sel("setCrossScale:")) -} - -// The size of the cross pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228753-crossscale?language=objc -func (s_ StarShineGeneratorObject) SetCrossScale(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setCrossScale:"), value) -} - -func (s_ StarShineGeneratorObject) HasCrossScale() bool { - return s_.RespondsToSelector(objc.Sel("crossScale")) -} - -// The size of the cross pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228753-crossscale?language=objc -func (s_ StarShineGeneratorObject) CrossScale() float32 { - rv := objc.Call[float32](s_, objc.Sel("crossScale")) - return rv -} - func (s_ StarShineGeneratorObject) HasSetCrossAngle() bool { return s_.RespondsToSelector(objc.Sel("setCrossAngle:")) } @@ -153,26 +153,26 @@ func (s_ StarShineGeneratorObject) CrossAngle() float32 { return rv } -func (s_ StarShineGeneratorObject) HasSetCrossWidth() bool { - return s_.RespondsToSelector(objc.Sel("setCrossWidth:")) +func (s_ StarShineGeneratorObject) HasSetEpsilon() bool { + return s_.RespondsToSelector(objc.Sel("setEpsilon:")) } -// The width of the cross pattern. [Full Topic] +// The length of the cross spikes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228754-crosswidth?language=objc -func (s_ StarShineGeneratorObject) SetCrossWidth(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setCrossWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228755-epsilon?language=objc +func (s_ StarShineGeneratorObject) SetEpsilon(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setEpsilon:"), value) } -func (s_ StarShineGeneratorObject) HasCrossWidth() bool { - return s_.RespondsToSelector(objc.Sel("crossWidth")) +func (s_ StarShineGeneratorObject) HasEpsilon() bool { + return s_.RespondsToSelector(objc.Sel("epsilon")) } -// The width of the cross pattern. [Full Topic] +// The length of the cross spikes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228754-crosswidth?language=objc -func (s_ StarShineGeneratorObject) CrossWidth() float32 { - rv := objc.Call[float32](s_, objc.Sel("crossWidth")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228755-epsilon?language=objc +func (s_ StarShineGeneratorObject) Epsilon() float32 { + rv := objc.Call[float32](s_, objc.Sel("epsilon")) return rv } @@ -199,71 +199,71 @@ func (s_ StarShineGeneratorObject) Radius() float32 { return rv } -func (s_ StarShineGeneratorObject) HasSetCenter() bool { - return s_.RespondsToSelector(objc.Sel("setCenter:")) +func (s_ StarShineGeneratorObject) HasSetCrossScale() bool { + return s_.RespondsToSelector(objc.Sel("setCrossScale:")) } -// The x and y position to use as the center of the star. [Full Topic] +// The size of the cross pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228749-center?language=objc -func (s_ StarShineGeneratorObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228753-crossscale?language=objc +func (s_ StarShineGeneratorObject) SetCrossScale(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setCrossScale:"), value) } -func (s_ StarShineGeneratorObject) HasCenter() bool { - return s_.RespondsToSelector(objc.Sel("center")) +func (s_ StarShineGeneratorObject) HasCrossScale() bool { + return s_.RespondsToSelector(objc.Sel("crossScale")) } -// The x and y position to use as the center of the star. [Full Topic] +// The size of the cross pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228749-center?language=objc -func (s_ StarShineGeneratorObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228753-crossscale?language=objc +func (s_ StarShineGeneratorObject) CrossScale() float32 { + rv := objc.Call[float32](s_, objc.Sel("crossScale")) return rv } -func (s_ StarShineGeneratorObject) HasSetEpsilon() bool { - return s_.RespondsToSelector(objc.Sel("setEpsilon:")) +func (s_ StarShineGeneratorObject) HasSetCrossWidth() bool { + return s_.RespondsToSelector(objc.Sel("setCrossWidth:")) } -// The length of the cross spikes. [Full Topic] +// The width of the cross pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228755-epsilon?language=objc -func (s_ StarShineGeneratorObject) SetEpsilon(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setEpsilon:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228754-crosswidth?language=objc +func (s_ StarShineGeneratorObject) SetCrossWidth(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setCrossWidth:"), value) } -func (s_ StarShineGeneratorObject) HasEpsilon() bool { - return s_.RespondsToSelector(objc.Sel("epsilon")) +func (s_ StarShineGeneratorObject) HasCrossWidth() bool { + return s_.RespondsToSelector(objc.Sel("crossWidth")) } -// The length of the cross spikes. [Full Topic] +// The width of the cross pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228755-epsilon?language=objc -func (s_ StarShineGeneratorObject) Epsilon() float32 { - rv := objc.Call[float32](s_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228754-crosswidth?language=objc +func (s_ StarShineGeneratorObject) CrossWidth() float32 { + rv := objc.Call[float32](s_, objc.Sel("crossWidth")) return rv } -func (s_ StarShineGeneratorObject) HasSetCrossOpacity() bool { - return s_.RespondsToSelector(objc.Sel("setCrossOpacity:")) +func (s_ StarShineGeneratorObject) HasSetCenter() bool { + return s_.RespondsToSelector(objc.Sel("setCenter:")) } -// The opacity of the cross pattern. [Full Topic] +// The x and y position to use as the center of the star. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228752-crossopacity?language=objc -func (s_ StarShineGeneratorObject) SetCrossOpacity(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setCrossOpacity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228749-center?language=objc +func (s_ StarShineGeneratorObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) } -func (s_ StarShineGeneratorObject) HasCrossOpacity() bool { - return s_.RespondsToSelector(objc.Sel("crossOpacity")) +func (s_ StarShineGeneratorObject) HasCenter() bool { + return s_.RespondsToSelector(objc.Sel("center")) } -// The opacity of the cross pattern. [Full Topic] +// The x and y position to use as the center of the star. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228752-crossopacity?language=objc -func (s_ StarShineGeneratorObject) CrossOpacity() float32 { - rv := objc.Call[float32](s_, objc.Sel("crossOpacity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228749-center?language=objc +func (s_ StarShineGeneratorObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/stretch_crop_protocol.gen.go b/macos/coreimage/stretch_crop_protocol.gen.go index 5eddce65..14943a1d 100644 --- a/macos/coreimage/stretch_crop_protocol.gen.go +++ b/macos/coreimage/stretch_crop_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop?language=objc type PStretchCrop interface { // optional - SetSize(value coregraphics.Point) - HasSetSize() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Size() coregraphics.Point - HasSize() bool + InputImage() Image + HasInputImage() bool // optional SetCropAmount(value float32) @@ -27,14 +27,6 @@ type PStretchCrop interface { CropAmount() float32 HasCropAmount() bool - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool - // optional SetCenterStretchAmount(value float32) HasSetCenterStretchAmount() bool @@ -42,6 +34,14 @@ type PStretchCrop interface { // optional CenterStretchAmount() float32 HasCenterStretchAmount() bool + + // optional + SetSize(value coregraphics.Point) + HasSetSize() bool + + // optional + Size() coregraphics.Point + HasSize() bool } // ensure impl type implements protocol interface @@ -52,26 +52,26 @@ type StretchCropObject struct { objc.Object } -func (s_ StretchCropObject) HasSetSize() bool { - return s_.RespondsToSelector(objc.Sel("setSize:")) +func (s_ StretchCropObject) HasSetInputImage() bool { + return s_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600195-size?language=objc -func (s_ StretchCropObject) SetSize(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600194-inputimage?language=objc +func (s_ StretchCropObject) SetInputImage(value Image) { + objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), value) } -func (s_ StretchCropObject) HasSize() bool { - return s_.RespondsToSelector(objc.Sel("size")) +func (s_ StretchCropObject) HasInputImage() bool { + return s_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600195-size?language=objc -func (s_ StretchCropObject) Size() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("size")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600194-inputimage?language=objc +func (s_ StretchCropObject) InputImage() Image { + rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } @@ -98,48 +98,48 @@ func (s_ StretchCropObject) CropAmount() float32 { return rv } -func (s_ StretchCropObject) HasSetInputImage() bool { - return s_.RespondsToSelector(objc.Sel("setInputImage:")) +func (s_ StretchCropObject) HasSetCenterStretchAmount() bool { + return s_.RespondsToSelector(objc.Sel("setCenterStretchAmount:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600194-inputimage?language=objc -func (s_ StretchCropObject) SetInputImage(value Image) { - objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600192-centerstretchamount?language=objc +func (s_ StretchCropObject) SetCenterStretchAmount(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setCenterStretchAmount:"), value) } -func (s_ StretchCropObject) HasInputImage() bool { - return s_.RespondsToSelector(objc.Sel("inputImage")) +func (s_ StretchCropObject) HasCenterStretchAmount() bool { + return s_.RespondsToSelector(objc.Sel("centerStretchAmount")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600194-inputimage?language=objc -func (s_ StretchCropObject) InputImage() Image { - rv := objc.Call[Image](s_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600192-centerstretchamount?language=objc +func (s_ StretchCropObject) CenterStretchAmount() float32 { + rv := objc.Call[float32](s_, objc.Sel("centerStretchAmount")) return rv } -func (s_ StretchCropObject) HasSetCenterStretchAmount() bool { - return s_.RespondsToSelector(objc.Sel("setCenterStretchAmount:")) +func (s_ StretchCropObject) HasSetSize() bool { + return s_.RespondsToSelector(objc.Sel("setSize:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600192-centerstretchamount?language=objc -func (s_ StretchCropObject) SetCenterStretchAmount(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setCenterStretchAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600195-size?language=objc +func (s_ StretchCropObject) SetSize(value coregraphics.Point) { + objc.Call[objc.Void](s_, objc.Sel("setSize:"), value) } -func (s_ StretchCropObject) HasCenterStretchAmount() bool { - return s_.RespondsToSelector(objc.Sel("centerStretchAmount")) +func (s_ StretchCropObject) HasSize() bool { + return s_.RespondsToSelector(objc.Sel("size")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600192-centerstretchamount?language=objc -func (s_ StretchCropObject) CenterStretchAmount() float32 { - rv := objc.Call[float32](s_, objc.Sel("centerStretchAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600195-size?language=objc +func (s_ StretchCropObject) Size() coregraphics.Point { + rv := objc.Call[coregraphics.Point](s_, objc.Sel("size")) return rv } diff --git a/macos/coreimage/stripes_generator_protocol.gen.go b/macos/coreimage/stripes_generator_protocol.gen.go index 0098011d..836b9d96 100644 --- a/macos/coreimage/stripes_generator_protocol.gen.go +++ b/macos/coreimage/stripes_generator_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator?language=objc type PStripesGenerator interface { - // optional - SetColor0(value Color) - HasSetColor0() bool - - // optional - Color0() Color - HasColor0() bool - // optional SetWidth(value float32) HasSetWidth() bool @@ -27,14 +19,6 @@ type PStripesGenerator interface { Width() float32 HasWidth() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetSharpness(value float32) HasSetSharpness() bool @@ -43,6 +27,14 @@ type PStripesGenerator interface { Sharpness() float32 HasSharpness() bool + // optional + SetColor0(value Color) + HasSetColor0() bool + + // optional + Color0() Color + HasColor0() bool + // optional SetColor1(value Color) HasSetColor1() bool @@ -50,6 +42,14 @@ type PStripesGenerator interface { // optional Color1() Color HasColor1() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -60,29 +60,6 @@ type StripesGeneratorObject struct { objc.Object } -func (s_ StripesGeneratorObject) HasSetColor0() bool { - return s_.RespondsToSelector(objc.Sel("setColor0:")) -} - -// A color to use for the odd stripes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228762-color0?language=objc -func (s_ StripesGeneratorObject) SetColor0(value Color) { - objc.Call[objc.Void](s_, objc.Sel("setColor0:"), value) -} - -func (s_ StripesGeneratorObject) HasColor0() bool { - return s_.RespondsToSelector(objc.Sel("color0")) -} - -// A color to use for the odd stripes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228762-color0?language=objc -func (s_ StripesGeneratorObject) Color0() Color { - rv := objc.Call[Color](s_, objc.Sel("color0")) - return rv -} - func (s_ StripesGeneratorObject) HasSetWidth() bool { return s_.RespondsToSelector(objc.Sel("setWidth:")) } @@ -106,29 +83,6 @@ func (s_ StripesGeneratorObject) Width() float32 { return rv } -func (s_ StripesGeneratorObject) HasSetCenter() bool { - return s_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the stripe pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228761-center?language=objc -func (s_ StripesGeneratorObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) -} - -func (s_ StripesGeneratorObject) HasCenter() bool { - return s_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the stripe pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228761-center?language=objc -func (s_ StripesGeneratorObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) - return rv -} - func (s_ StripesGeneratorObject) HasSetSharpness() bool { return s_.RespondsToSelector(objc.Sel("setSharpness:")) } @@ -152,6 +106,29 @@ func (s_ StripesGeneratorObject) Sharpness() float32 { return rv } +func (s_ StripesGeneratorObject) HasSetColor0() bool { + return s_.RespondsToSelector(objc.Sel("setColor0:")) +} + +// A color to use for the odd stripes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228762-color0?language=objc +func (s_ StripesGeneratorObject) SetColor0(value Color) { + objc.Call[objc.Void](s_, objc.Sel("setColor0:"), value) +} + +func (s_ StripesGeneratorObject) HasColor0() bool { + return s_.RespondsToSelector(objc.Sel("color0")) +} + +// A color to use for the odd stripes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228762-color0?language=objc +func (s_ StripesGeneratorObject) Color0() Color { + rv := objc.Call[Color](s_, objc.Sel("color0")) + return rv +} + func (s_ StripesGeneratorObject) HasSetColor1() bool { return s_.RespondsToSelector(objc.Sel("setColor1:")) } @@ -174,3 +151,26 @@ func (s_ StripesGeneratorObject) Color1() Color { rv := objc.Call[Color](s_, objc.Sel("color1")) return rv } + +func (s_ StripesGeneratorObject) HasSetCenter() bool { + return s_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the stripe pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228761-center?language=objc +func (s_ StripesGeneratorObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) +} + +func (s_ StripesGeneratorObject) HasCenter() bool { + return s_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the stripe pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228761-center?language=objc +func (s_ StripesGeneratorObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/sunbeams_generator_protocol.gen.go b/macos/coreimage/sunbeams_generator_protocol.gen.go index e2c44680..7b11a440 100644 --- a/macos/coreimage/sunbeams_generator_protocol.gen.go +++ b/macos/coreimage/sunbeams_generator_protocol.gen.go @@ -19,22 +19,6 @@ type PSunbeamsGenerator interface { StriationContrast() float32 HasStriationContrast() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - - // optional - SetSunRadius(value float32) - HasSetSunRadius() bool - - // optional - SunRadius() float32 - HasSunRadius() bool - // optional SetColor(value Color) HasSetColor() bool @@ -43,14 +27,6 @@ type PSunbeamsGenerator interface { Color() Color HasColor() bool - // optional - SetTime(value float32) - HasSetTime() bool - - // optional - Time() float32 - HasTime() bool - // optional SetMaxStriationRadius(value float32) HasSetMaxStriationRadius() bool @@ -59,6 +35,14 @@ type PSunbeamsGenerator interface { MaxStriationRadius() float32 HasMaxStriationRadius() bool + // optional + SetTime(value float32) + HasSetTime() bool + + // optional + Time() float32 + HasTime() bool + // optional SetStriationStrength(value float32) HasSetStriationStrength() bool @@ -66,6 +50,22 @@ type PSunbeamsGenerator interface { // optional StriationStrength() float32 HasStriationStrength() bool + + // optional + SetSunRadius(value float32) + HasSetSunRadius() bool + + // optional + SunRadius() float32 + HasSunRadius() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -99,52 +99,6 @@ func (s_ SunbeamsGeneratorObject) StriationContrast() float32 { return rv } -func (s_ SunbeamsGeneratorObject) HasSetCenter() bool { - return s_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the sunbeam pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228767-center?language=objc -func (s_ SunbeamsGeneratorObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) -} - -func (s_ SunbeamsGeneratorObject) HasCenter() bool { - return s_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the sunbeam pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228767-center?language=objc -func (s_ SunbeamsGeneratorObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) - return rv -} - -func (s_ SunbeamsGeneratorObject) HasSetSunRadius() bool { - return s_.RespondsToSelector(objc.Sel("setSunRadius:")) -} - -// The radius of the sun. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228772-sunradius?language=objc -func (s_ SunbeamsGeneratorObject) SetSunRadius(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setSunRadius:"), value) -} - -func (s_ SunbeamsGeneratorObject) HasSunRadius() bool { - return s_.RespondsToSelector(objc.Sel("sunRadius")) -} - -// The radius of the sun. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228772-sunradius?language=objc -func (s_ SunbeamsGeneratorObject) SunRadius() float32 { - rv := objc.Call[float32](s_, objc.Sel("sunRadius")) - return rv -} - func (s_ SunbeamsGeneratorObject) HasSetColor() bool { return s_.RespondsToSelector(objc.Sel("setColor:")) } @@ -168,29 +122,6 @@ func (s_ SunbeamsGeneratorObject) Color() Color { return rv } -func (s_ SunbeamsGeneratorObject) HasSetTime() bool { - return s_.RespondsToSelector(objc.Sel("setTime:")) -} - -// The duration of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228773-time?language=objc -func (s_ SunbeamsGeneratorObject) SetTime(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setTime:"), value) -} - -func (s_ SunbeamsGeneratorObject) HasTime() bool { - return s_.RespondsToSelector(objc.Sel("time")) -} - -// The duration of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228773-time?language=objc -func (s_ SunbeamsGeneratorObject) Time() float32 { - rv := objc.Call[float32](s_, objc.Sel("time")) - return rv -} - func (s_ SunbeamsGeneratorObject) HasSetMaxStriationRadius() bool { return s_.RespondsToSelector(objc.Sel("setMaxStriationRadius:")) } @@ -214,6 +145,29 @@ func (s_ SunbeamsGeneratorObject) MaxStriationRadius() float32 { return rv } +func (s_ SunbeamsGeneratorObject) HasSetTime() bool { + return s_.RespondsToSelector(objc.Sel("setTime:")) +} + +// The duration of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228773-time?language=objc +func (s_ SunbeamsGeneratorObject) SetTime(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setTime:"), value) +} + +func (s_ SunbeamsGeneratorObject) HasTime() bool { + return s_.RespondsToSelector(objc.Sel("time")) +} + +// The duration of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228773-time?language=objc +func (s_ SunbeamsGeneratorObject) Time() float32 { + rv := objc.Call[float32](s_, objc.Sel("time")) + return rv +} + func (s_ SunbeamsGeneratorObject) HasSetStriationStrength() bool { return s_.RespondsToSelector(objc.Sel("setStriationStrength:")) } @@ -236,3 +190,49 @@ func (s_ SunbeamsGeneratorObject) StriationStrength() float32 { rv := objc.Call[float32](s_, objc.Sel("striationStrength")) return rv } + +func (s_ SunbeamsGeneratorObject) HasSetSunRadius() bool { + return s_.RespondsToSelector(objc.Sel("setSunRadius:")) +} + +// The radius of the sun. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228772-sunradius?language=objc +func (s_ SunbeamsGeneratorObject) SetSunRadius(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setSunRadius:"), value) +} + +func (s_ SunbeamsGeneratorObject) HasSunRadius() bool { + return s_.RespondsToSelector(objc.Sel("sunRadius")) +} + +// The radius of the sun. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228772-sunradius?language=objc +func (s_ SunbeamsGeneratorObject) SunRadius() float32 { + rv := objc.Call[float32](s_, objc.Sel("sunRadius")) + return rv +} + +func (s_ SunbeamsGeneratorObject) HasSetCenter() bool { + return s_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the sunbeam pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228767-center?language=objc +func (s_ SunbeamsGeneratorObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) +} + +func (s_ SunbeamsGeneratorObject) HasCenter() bool { + return s_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the sunbeam pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228767-center?language=objc +func (s_ SunbeamsGeneratorObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/swipe_transition_protocol.gen.go b/macos/coreimage/swipe_transition_protocol.gen.go index cc1511d1..40a472dd 100644 --- a/macos/coreimage/swipe_transition_protocol.gen.go +++ b/macos/coreimage/swipe_transition_protocol.gen.go @@ -19,22 +19,6 @@ type PSwipeTransition interface { Color() Color HasColor() bool - // optional - SetExtent(value coregraphics.Rect) - HasSetExtent() bool - - // optional - Extent() coregraphics.Rect - HasExtent() bool - - // optional - SetAngle(value float32) - HasSetAngle() bool - - // optional - Angle() float32 - HasAngle() bool - // optional SetWidth(value float32) HasSetWidth() bool @@ -50,6 +34,22 @@ type PSwipeTransition interface { // optional Opacity() float32 HasOpacity() bool + + // optional + SetExtent(value coregraphics.Rect) + HasSetExtent() bool + + // optional + Extent() coregraphics.Rect + HasExtent() bool + + // optional + SetAngle(value float32) + HasSetAngle() bool + + // optional + Angle() float32 + HasAngle() bool } // ensure impl type implements protocol interface @@ -83,52 +83,6 @@ func (s_ SwipeTransitionObject) Color() Color { return rv } -func (s_ SwipeTransitionObject) HasSetExtent() bool { - return s_.RespondsToSelector(objc.Sel("setExtent:")) -} - -// The extent of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228777-extent?language=objc -func (s_ SwipeTransitionObject) SetExtent(value coregraphics.Rect) { - objc.Call[objc.Void](s_, objc.Sel("setExtent:"), value) -} - -func (s_ SwipeTransitionObject) HasExtent() bool { - return s_.RespondsToSelector(objc.Sel("extent")) -} - -// The extent of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228777-extent?language=objc -func (s_ SwipeTransitionObject) Extent() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](s_, objc.Sel("extent")) - return rv -} - -func (s_ SwipeTransitionObject) HasSetAngle() bool { - return s_.RespondsToSelector(objc.Sel("setAngle:")) -} - -// The angle of the swipe. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228775-angle?language=objc -func (s_ SwipeTransitionObject) SetAngle(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setAngle:"), value) -} - -func (s_ SwipeTransitionObject) HasAngle() bool { - return s_.RespondsToSelector(objc.Sel("angle")) -} - -// The angle of the swipe. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228775-angle?language=objc -func (s_ SwipeTransitionObject) Angle() float32 { - rv := objc.Call[float32](s_, objc.Sel("angle")) - return rv -} - func (s_ SwipeTransitionObject) HasSetWidth() bool { return s_.RespondsToSelector(objc.Sel("setWidth:")) } @@ -174,3 +128,49 @@ func (s_ SwipeTransitionObject) Opacity() float32 { rv := objc.Call[float32](s_, objc.Sel("opacity")) return rv } + +func (s_ SwipeTransitionObject) HasSetExtent() bool { + return s_.RespondsToSelector(objc.Sel("setExtent:")) +} + +// The extent of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228777-extent?language=objc +func (s_ SwipeTransitionObject) SetExtent(value coregraphics.Rect) { + objc.Call[objc.Void](s_, objc.Sel("setExtent:"), value) +} + +func (s_ SwipeTransitionObject) HasExtent() bool { + return s_.RespondsToSelector(objc.Sel("extent")) +} + +// The extent of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228777-extent?language=objc +func (s_ SwipeTransitionObject) Extent() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](s_, objc.Sel("extent")) + return rv +} + +func (s_ SwipeTransitionObject) HasSetAngle() bool { + return s_.RespondsToSelector(objc.Sel("setAngle:")) +} + +// The angle of the swipe. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228775-angle?language=objc +func (s_ SwipeTransitionObject) SetAngle(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setAngle:"), value) +} + +func (s_ SwipeTransitionObject) HasAngle() bool { + return s_.RespondsToSelector(objc.Sel("angle")) +} + +// The angle of the swipe. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228775-angle?language=objc +func (s_ SwipeTransitionObject) Angle() float32 { + rv := objc.Call[float32](s_, objc.Sel("angle")) + return rv +} diff --git a/macos/coreimage/temperature_and_tint_protocol.gen.go b/macos/coreimage/temperature_and_tint_protocol.gen.go index 1d0ddfe9..cdc2697c 100644 --- a/macos/coreimage/temperature_and_tint_protocol.gen.go +++ b/macos/coreimage/temperature_and_tint_protocol.gen.go @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint?language=objc type PTemperatureAndTint interface { // optional - SetNeutral(value Vector) - HasSetNeutral() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Neutral() Vector - HasNeutral() bool + InputImage() Image + HasInputImage() bool // optional SetTargetNeutral(value Vector) @@ -27,12 +27,12 @@ type PTemperatureAndTint interface { HasTargetNeutral() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetNeutral(value Vector) + HasSetNeutral() bool // optional - InputImage() Image - HasInputImage() bool + Neutral() Vector + HasNeutral() bool } // ensure impl type implements protocol interface @@ -43,26 +43,26 @@ type TemperatureAndTintObject struct { objc.Object } -func (t_ TemperatureAndTintObject) HasSetNeutral() bool { - return t_.RespondsToSelector(objc.Sel("setNeutral:")) +func (t_ TemperatureAndTintObject) HasSetInputImage() bool { + return t_.RespondsToSelector(objc.Sel("setInputImage:")) } -// A vector containing the source white point defined by color temperature and tint. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint/3228782-neutral?language=objc -func (t_ TemperatureAndTintObject) SetNeutral(value Vector) { - objc.Call[objc.Void](t_, objc.Sel("setNeutral:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint/3228781-inputimage?language=objc +func (t_ TemperatureAndTintObject) SetInputImage(value Image) { + objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), value) } -func (t_ TemperatureAndTintObject) HasNeutral() bool { - return t_.RespondsToSelector(objc.Sel("neutral")) +func (t_ TemperatureAndTintObject) HasInputImage() bool { + return t_.RespondsToSelector(objc.Sel("inputImage")) } -// A vector containing the source white point defined by color temperature and tint. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint/3228782-neutral?language=objc -func (t_ TemperatureAndTintObject) Neutral() Vector { - rv := objc.Call[Vector](t_, objc.Sel("neutral")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint/3228781-inputimage?language=objc +func (t_ TemperatureAndTintObject) InputImage() Image { + rv := objc.Call[Image](t_, objc.Sel("inputImage")) return rv } @@ -89,25 +89,25 @@ func (t_ TemperatureAndTintObject) TargetNeutral() Vector { return rv } -func (t_ TemperatureAndTintObject) HasSetInputImage() bool { - return t_.RespondsToSelector(objc.Sel("setInputImage:")) +func (t_ TemperatureAndTintObject) HasSetNeutral() bool { + return t_.RespondsToSelector(objc.Sel("setNeutral:")) } -// The image to use as an input image. [Full Topic] +// A vector containing the source white point defined by color temperature and tint. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint/3228781-inputimage?language=objc -func (t_ TemperatureAndTintObject) SetInputImage(value Image) { - objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint/3228782-neutral?language=objc +func (t_ TemperatureAndTintObject) SetNeutral(value Vector) { + objc.Call[objc.Void](t_, objc.Sel("setNeutral:"), value) } -func (t_ TemperatureAndTintObject) HasInputImage() bool { - return t_.RespondsToSelector(objc.Sel("inputImage")) +func (t_ TemperatureAndTintObject) HasNeutral() bool { + return t_.RespondsToSelector(objc.Sel("neutral")) } -// The image to use as an input image. [Full Topic] +// A vector containing the source white point defined by color temperature and tint. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint/3228781-inputimage?language=objc -func (t_ TemperatureAndTintObject) InputImage() Image { - rv := objc.Call[Image](t_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint/3228782-neutral?language=objc +func (t_ TemperatureAndTintObject) Neutral() Vector { + rv := objc.Call[Vector](t_, objc.Sel("neutral")) return rv } diff --git a/macos/coreimage/text_feature.gen.go b/macos/coreimage/text_feature.gen.go index 4f370986..e8d73635 100644 --- a/macos/coreimage/text_feature.gen.go +++ b/macos/coreimage/text_feature.gen.go @@ -19,11 +19,11 @@ type _TextFeatureClass struct { // An interface definition for the [TextFeature] class. type ITextFeature interface { IFeature - TopRight() coregraphics.Point - TopLeft() coregraphics.Point + BottomRight() coregraphics.Point BottomLeft() coregraphics.Point SubFeatures() []objc.Object - BottomRight() coregraphics.Point + TopRight() coregraphics.Point + TopLeft() coregraphics.Point } // Information about a region likely to contain text detected in a still or video image. [Full Topic] @@ -59,19 +59,11 @@ func (t_ TextFeature) Init() TextFeature { return rv } -// The upper-right corner of the detected text region, in image coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextfeature/1438282-topright?language=objc -func (t_ TextFeature) TopRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("topRight")) - return rv -} - -// The upper-left corner of the detected text region, in image coordinates. [Full Topic] +// The lower-right corner of the detected text region, in image coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextfeature/1438221-topleft?language=objc -func (t_ TextFeature) TopLeft() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("topLeft")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextfeature/1437659-bottomright?language=objc +func (t_ TextFeature) BottomRight() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("bottomRight")) return rv } @@ -91,10 +83,18 @@ func (t_ TextFeature) SubFeatures() []objc.Object { return rv } -// The lower-right corner of the detected text region, in image coordinates. [Full Topic] +// The upper-right corner of the detected text region, in image coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextfeature/1437659-bottomright?language=objc -func (t_ TextFeature) BottomRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("bottomRight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextfeature/1438282-topright?language=objc +func (t_ TextFeature) TopRight() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("topRight")) + return rv +} + +// The upper-left corner of the detected text region, in image coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextfeature/1438221-topleft?language=objc +func (t_ TextFeature) TopLeft() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("topLeft")) return rv } diff --git a/macos/coreimage/text_image_generator_protocol.gen.go b/macos/coreimage/text_image_generator_protocol.gen.go index 4c353751..316a6c28 100644 --- a/macos/coreimage/text_image_generator_protocol.gen.go +++ b/macos/coreimage/text_image_generator_protocol.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator?language=objc type PTextImageGenerator interface { - // optional - SetFontName(value string) - HasSetFontName() bool - - // optional - FontName() string - HasFontName() bool - // optional SetScaleFactor(value float32) HasSetScaleFactor() bool @@ -26,14 +18,6 @@ type PTextImageGenerator interface { ScaleFactor() float32 HasScaleFactor() bool - // optional - SetText(value string) - HasSetText() bool - - // optional - Text() string - HasText() bool - // optional SetFontSize(value float32) HasSetFontSize() bool @@ -41,6 +25,22 @@ type PTextImageGenerator interface { // optional FontSize() float32 HasFontSize() bool + + // optional + SetFontName(value string) + HasSetFontName() bool + + // optional + FontName() string + HasFontName() bool + + // optional + SetText(value string) + HasSetText() bool + + // optional + Text() string + HasText() bool } // ensure impl type implements protocol interface @@ -51,29 +51,6 @@ type TextImageGeneratorObject struct { objc.Object } -func (t_ TextImageGeneratorObject) HasSetFontName() bool { - return t_.RespondsToSelector(objc.Sel("setFontName:")) -} - -// The name of the font to use for the generated text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228785-fontname?language=objc -func (t_ TextImageGeneratorObject) SetFontName(value string) { - objc.Call[objc.Void](t_, objc.Sel("setFontName:"), value) -} - -func (t_ TextImageGeneratorObject) HasFontName() bool { - return t_.RespondsToSelector(objc.Sel("fontName")) -} - -// The name of the font to use for the generated text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228785-fontname?language=objc -func (t_ TextImageGeneratorObject) FontName() string { - rv := objc.Call[string](t_, objc.Sel("fontName")) - return rv -} - func (t_ TextImageGeneratorObject) HasSetScaleFactor() bool { return t_.RespondsToSelector(objc.Sel("setScaleFactor:")) } @@ -97,29 +74,6 @@ func (t_ TextImageGeneratorObject) ScaleFactor() float32 { return rv } -func (t_ TextImageGeneratorObject) HasSetText() bool { - return t_.RespondsToSelector(objc.Sel("setText:")) -} - -// The text to render. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228788-text?language=objc -func (t_ TextImageGeneratorObject) SetText(value string) { - objc.Call[objc.Void](t_, objc.Sel("setText:"), value) -} - -func (t_ TextImageGeneratorObject) HasText() bool { - return t_.RespondsToSelector(objc.Sel("text")) -} - -// The text to render. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228788-text?language=objc -func (t_ TextImageGeneratorObject) Text() string { - rv := objc.Call[string](t_, objc.Sel("text")) - return rv -} - func (t_ TextImageGeneratorObject) HasSetFontSize() bool { return t_.RespondsToSelector(objc.Sel("setFontSize:")) } @@ -142,3 +96,49 @@ func (t_ TextImageGeneratorObject) FontSize() float32 { rv := objc.Call[float32](t_, objc.Sel("fontSize")) return rv } + +func (t_ TextImageGeneratorObject) HasSetFontName() bool { + return t_.RespondsToSelector(objc.Sel("setFontName:")) +} + +// The name of the font to use for the generated text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228785-fontname?language=objc +func (t_ TextImageGeneratorObject) SetFontName(value string) { + objc.Call[objc.Void](t_, objc.Sel("setFontName:"), value) +} + +func (t_ TextImageGeneratorObject) HasFontName() bool { + return t_.RespondsToSelector(objc.Sel("fontName")) +} + +// The name of the font to use for the generated text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228785-fontname?language=objc +func (t_ TextImageGeneratorObject) FontName() string { + rv := objc.Call[string](t_, objc.Sel("fontName")) + return rv +} + +func (t_ TextImageGeneratorObject) HasSetText() bool { + return t_.RespondsToSelector(objc.Sel("setText:")) +} + +// The text to render. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228788-text?language=objc +func (t_ TextImageGeneratorObject) SetText(value string) { + objc.Call[objc.Void](t_, objc.Sel("setText:"), value) +} + +func (t_ TextImageGeneratorObject) HasText() bool { + return t_.RespondsToSelector(objc.Sel("text")) +} + +// The text to render. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228788-text?language=objc +func (t_ TextImageGeneratorObject) Text() string { + rv := objc.Call[string](t_, objc.Sel("text")) + return rv +} diff --git a/macos/coreimage/tone_curve_protocol.gen.go b/macos/coreimage/tone_curve_protocol.gen.go index d252e531..614a3aff 100644 --- a/macos/coreimage/tone_curve_protocol.gen.go +++ b/macos/coreimage/tone_curve_protocol.gen.go @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve?language=objc type PToneCurve interface { - // optional - SetPoint4(value coregraphics.Point) - HasSetPoint4() bool - - // optional - Point4() coregraphics.Point - HasPoint4() bool - - // optional - SetPoint0(value coregraphics.Point) - HasSetPoint0() bool - - // optional - Point0() coregraphics.Point - HasPoint0() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -35,6 +19,14 @@ type PToneCurve interface { InputImage() Image HasInputImage() bool + // optional + SetPoint4(value coregraphics.Point) + HasSetPoint4() bool + + // optional + Point4() coregraphics.Point + HasPoint4() bool + // optional SetPoint3(value coregraphics.Point) HasSetPoint3() bool @@ -43,6 +35,14 @@ type PToneCurve interface { Point3() coregraphics.Point HasPoint3() bool + // optional + SetPoint2(value coregraphics.Point) + HasSetPoint2() bool + + // optional + Point2() coregraphics.Point + HasPoint2() bool + // optional SetPoint1(value coregraphics.Point) HasSetPoint1() bool @@ -52,12 +52,12 @@ type PToneCurve interface { HasPoint1() bool // optional - SetPoint2(value coregraphics.Point) - HasSetPoint2() bool + SetPoint0(value coregraphics.Point) + HasSetPoint0() bool // optional - Point2() coregraphics.Point - HasPoint2() bool + Point0() coregraphics.Point + HasPoint0() bool } // ensure impl type implements protocol interface @@ -68,52 +68,6 @@ type ToneCurveObject struct { objc.Object } -func (t_ ToneCurveObject) HasSetPoint4() bool { - return t_.RespondsToSelector(objc.Sel("setPoint4:")) -} - -// A vector containing the position of the fifth point of the tone curve. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228797-point4?language=objc -func (t_ ToneCurveObject) SetPoint4(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setPoint4:"), value) -} - -func (t_ ToneCurveObject) HasPoint4() bool { - return t_.RespondsToSelector(objc.Sel("point4")) -} - -// A vector containing the position of the fifth point of the tone curve. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228797-point4?language=objc -func (t_ ToneCurveObject) Point4() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("point4")) - return rv -} - -func (t_ ToneCurveObject) HasSetPoint0() bool { - return t_.RespondsToSelector(objc.Sel("setPoint0:")) -} - -// A vector containing the position of the first point of the tone curve. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228793-point0?language=objc -func (t_ ToneCurveObject) SetPoint0(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setPoint0:"), value) -} - -func (t_ ToneCurveObject) HasPoint0() bool { - return t_.RespondsToSelector(objc.Sel("point0")) -} - -// A vector containing the position of the first point of the tone curve. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228793-point0?language=objc -func (t_ ToneCurveObject) Point0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("point0")) - return rv -} - func (t_ ToneCurveObject) HasSetInputImage() bool { return t_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -137,6 +91,29 @@ func (t_ ToneCurveObject) InputImage() Image { return rv } +func (t_ ToneCurveObject) HasSetPoint4() bool { + return t_.RespondsToSelector(objc.Sel("setPoint4:")) +} + +// A vector containing the position of the fifth point of the tone curve. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228797-point4?language=objc +func (t_ ToneCurveObject) SetPoint4(value coregraphics.Point) { + objc.Call[objc.Void](t_, objc.Sel("setPoint4:"), value) +} + +func (t_ ToneCurveObject) HasPoint4() bool { + return t_.RespondsToSelector(objc.Sel("point4")) +} + +// A vector containing the position of the fifth point of the tone curve. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228797-point4?language=objc +func (t_ ToneCurveObject) Point4() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("point4")) + return rv +} + func (t_ ToneCurveObject) HasSetPoint3() bool { return t_.RespondsToSelector(objc.Sel("setPoint3:")) } @@ -160,6 +137,29 @@ func (t_ ToneCurveObject) Point3() coregraphics.Point { return rv } +func (t_ ToneCurveObject) HasSetPoint2() bool { + return t_.RespondsToSelector(objc.Sel("setPoint2:")) +} + +// A vector containing the position of the third point of the tone curve. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228795-point2?language=objc +func (t_ ToneCurveObject) SetPoint2(value coregraphics.Point) { + objc.Call[objc.Void](t_, objc.Sel("setPoint2:"), value) +} + +func (t_ ToneCurveObject) HasPoint2() bool { + return t_.RespondsToSelector(objc.Sel("point2")) +} + +// A vector containing the position of the third point of the tone curve. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228795-point2?language=objc +func (t_ ToneCurveObject) Point2() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("point2")) + return rv +} + func (t_ ToneCurveObject) HasSetPoint1() bool { return t_.RespondsToSelector(objc.Sel("setPoint1:")) } @@ -183,25 +183,25 @@ func (t_ ToneCurveObject) Point1() coregraphics.Point { return rv } -func (t_ ToneCurveObject) HasSetPoint2() bool { - return t_.RespondsToSelector(objc.Sel("setPoint2:")) +func (t_ ToneCurveObject) HasSetPoint0() bool { + return t_.RespondsToSelector(objc.Sel("setPoint0:")) } -// A vector containing the position of the third point of the tone curve. [Full Topic] +// A vector containing the position of the first point of the tone curve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228795-point2?language=objc -func (t_ ToneCurveObject) SetPoint2(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setPoint2:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228793-point0?language=objc +func (t_ ToneCurveObject) SetPoint0(value coregraphics.Point) { + objc.Call[objc.Void](t_, objc.Sel("setPoint0:"), value) } -func (t_ ToneCurveObject) HasPoint2() bool { - return t_.RespondsToSelector(objc.Sel("point2")) +func (t_ ToneCurveObject) HasPoint0() bool { + return t_.RespondsToSelector(objc.Sel("point0")) } -// A vector containing the position of the third point of the tone curve. [Full Topic] +// A vector containing the position of the first point of the tone curve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228795-point2?language=objc -func (t_ ToneCurveObject) Point2() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("point2")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228793-point0?language=objc +func (t_ ToneCurveObject) Point0() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("point0")) return rv } diff --git a/macos/coreimage/torus_lens_distortion_protocol.gen.go b/macos/coreimage/torus_lens_distortion_protocol.gen.go index 5e2670e3..87a722d1 100644 --- a/macos/coreimage/torus_lens_distortion_protocol.gen.go +++ b/macos/coreimage/torus_lens_distortion_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion?language=objc type PTorusLensDistortion interface { - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetWidth(value float32) HasSetWidth() bool @@ -27,6 +19,14 @@ type PTorusLensDistortion interface { Width() float32 HasWidth() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetRefraction(value float32) HasSetRefraction() bool @@ -36,20 +36,20 @@ type PTorusLensDistortion interface { HasRefraction() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetRadius(value float32) + HasSetRadius() bool // optional - Center() coregraphics.Point - HasCenter() bool + Radius() float32 + HasRadius() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - InputImage() Image - HasInputImage() bool + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -60,49 +60,49 @@ type TorusLensDistortionObject struct { objc.Object } -func (t_ TorusLensDistortionObject) HasSetRadius() bool { - return t_.RespondsToSelector(objc.Sel("setRadius:")) +func (t_ TorusLensDistortionObject) HasSetWidth() bool { + return t_.RespondsToSelector(objc.Sel("setWidth:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600199-radius?language=objc -func (t_ TorusLensDistortionObject) SetRadius(value float32) { - objc.Call[objc.Void](t_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600201-width?language=objc +func (t_ TorusLensDistortionObject) SetWidth(value float32) { + objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) } -func (t_ TorusLensDistortionObject) HasRadius() bool { - return t_.RespondsToSelector(objc.Sel("radius")) +func (t_ TorusLensDistortionObject) HasWidth() bool { + return t_.RespondsToSelector(objc.Sel("width")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600199-radius?language=objc -func (t_ TorusLensDistortionObject) Radius() float32 { - rv := objc.Call[float32](t_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600201-width?language=objc +func (t_ TorusLensDistortionObject) Width() float32 { + rv := objc.Call[float32](t_, objc.Sel("width")) return rv } -func (t_ TorusLensDistortionObject) HasSetWidth() bool { - return t_.RespondsToSelector(objc.Sel("setWidth:")) +func (t_ TorusLensDistortionObject) HasSetInputImage() bool { + return t_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600201-width?language=objc -func (t_ TorusLensDistortionObject) SetWidth(value float32) { - objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600198-inputimage?language=objc +func (t_ TorusLensDistortionObject) SetInputImage(value Image) { + objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), value) } -func (t_ TorusLensDistortionObject) HasWidth() bool { - return t_.RespondsToSelector(objc.Sel("width")) +func (t_ TorusLensDistortionObject) HasInputImage() bool { + return t_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600201-width?language=objc -func (t_ TorusLensDistortionObject) Width() float32 { - rv := objc.Call[float32](t_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600198-inputimage?language=objc +func (t_ TorusLensDistortionObject) InputImage() Image { + rv := objc.Call[Image](t_, objc.Sel("inputImage")) return rv } @@ -129,48 +129,48 @@ func (t_ TorusLensDistortionObject) Refraction() float32 { return rv } -func (t_ TorusLensDistortionObject) HasSetCenter() bool { - return t_.RespondsToSelector(objc.Sel("setCenter:")) +func (t_ TorusLensDistortionObject) HasSetRadius() bool { + return t_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600197-center?language=objc -func (t_ TorusLensDistortionObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600199-radius?language=objc +func (t_ TorusLensDistortionObject) SetRadius(value float32) { + objc.Call[objc.Void](t_, objc.Sel("setRadius:"), value) } -func (t_ TorusLensDistortionObject) HasCenter() bool { - return t_.RespondsToSelector(objc.Sel("center")) +func (t_ TorusLensDistortionObject) HasRadius() bool { + return t_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600197-center?language=objc -func (t_ TorusLensDistortionObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600199-radius?language=objc +func (t_ TorusLensDistortionObject) Radius() float32 { + rv := objc.Call[float32](t_, objc.Sel("radius")) return rv } -func (t_ TorusLensDistortionObject) HasSetInputImage() bool { - return t_.RespondsToSelector(objc.Sel("setInputImage:")) +func (t_ TorusLensDistortionObject) HasSetCenter() bool { + return t_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600198-inputimage?language=objc -func (t_ TorusLensDistortionObject) SetInputImage(value Image) { - objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600197-center?language=objc +func (t_ TorusLensDistortionObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](t_, objc.Sel("setCenter:"), value) } -func (t_ TorusLensDistortionObject) HasInputImage() bool { - return t_.RespondsToSelector(objc.Sel("inputImage")) +func (t_ TorusLensDistortionObject) HasCenter() bool { + return t_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600198-inputimage?language=objc -func (t_ TorusLensDistortionObject) InputImage() Image { - rv := objc.Call[Image](t_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600197-center?language=objc +func (t_ TorusLensDistortionObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/transition_filter_protocol.gen.go b/macos/coreimage/transition_filter_protocol.gen.go index e6e1353f..a0181370 100644 --- a/macos/coreimage/transition_filter_protocol.gen.go +++ b/macos/coreimage/transition_filter_protocol.gen.go @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter?language=objc type PTransitionFilter interface { // optional - SetTime(value float32) - HasSetTime() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Time() float32 - HasTime() bool + InputImage() Image + HasInputImage() bool // optional SetTargetImage(value Image) @@ -27,12 +27,12 @@ type PTransitionFilter interface { HasTargetImage() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetTime(value float32) + HasSetTime() bool // optional - InputImage() Image - HasInputImage() bool + Time() float32 + HasTime() bool } // ensure impl type implements protocol interface @@ -43,26 +43,26 @@ type TransitionFilterObject struct { objc.Object } -func (t_ TransitionFilterObject) HasSetTime() bool { - return t_.RespondsToSelector(objc.Sel("setTime:")) +func (t_ TransitionFilterObject) HasSetInputImage() bool { + return t_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The parametric time of the transition. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228801-time?language=objc -func (t_ TransitionFilterObject) SetTime(value float32) { - objc.Call[objc.Void](t_, objc.Sel("setTime:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228799-inputimage?language=objc +func (t_ TransitionFilterObject) SetInputImage(value Image) { + objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), value) } -func (t_ TransitionFilterObject) HasTime() bool { - return t_.RespondsToSelector(objc.Sel("time")) +func (t_ TransitionFilterObject) HasInputImage() bool { + return t_.RespondsToSelector(objc.Sel("inputImage")) } -// The parametric time of the transition. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228801-time?language=objc -func (t_ TransitionFilterObject) Time() float32 { - rv := objc.Call[float32](t_, objc.Sel("time")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228799-inputimage?language=objc +func (t_ TransitionFilterObject) InputImage() Image { + rv := objc.Call[Image](t_, objc.Sel("inputImage")) return rv } @@ -89,25 +89,25 @@ func (t_ TransitionFilterObject) TargetImage() Image { return rv } -func (t_ TransitionFilterObject) HasSetInputImage() bool { - return t_.RespondsToSelector(objc.Sel("setInputImage:")) +func (t_ TransitionFilterObject) HasSetTime() bool { + return t_.RespondsToSelector(objc.Sel("setTime:")) } -// The image to use as an input image. [Full Topic] +// The parametric time of the transition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228799-inputimage?language=objc -func (t_ TransitionFilterObject) SetInputImage(value Image) { - objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228801-time?language=objc +func (t_ TransitionFilterObject) SetTime(value float32) { + objc.Call[objc.Void](t_, objc.Sel("setTime:"), value) } -func (t_ TransitionFilterObject) HasInputImage() bool { - return t_.RespondsToSelector(objc.Sel("inputImage")) +func (t_ TransitionFilterObject) HasTime() bool { + return t_.RespondsToSelector(objc.Sel("time")) } -// The image to use as an input image. [Full Topic] +// The parametric time of the transition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228799-inputimage?language=objc -func (t_ TransitionFilterObject) InputImage() Image { - rv := objc.Call[Image](t_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228801-time?language=objc +func (t_ TransitionFilterObject) Time() float32 { + rv := objc.Call[float32](t_, objc.Sel("time")) return rv } diff --git a/macos/coreimage/triangle_kaleidoscope_protocol.gen.go b/macos/coreimage/triangle_kaleidoscope_protocol.gen.go index d3274080..46720af6 100644 --- a/macos/coreimage/triangle_kaleidoscope_protocol.gen.go +++ b/macos/coreimage/triangle_kaleidoscope_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope?language=objc type PTriangleKaleidoscope interface { - // optional - SetPoint(value coregraphics.Point) - HasSetPoint() bool - - // optional - Point() coregraphics.Point - HasPoint() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -27,14 +19,6 @@ type PTriangleKaleidoscope interface { InputImage() Image HasInputImage() bool - // optional - SetSize(value float32) - HasSetSize() bool - - // optional - Size() float32 - HasSize() bool - // optional SetDecay(value float32) HasSetDecay() bool @@ -50,6 +34,22 @@ type PTriangleKaleidoscope interface { // optional Rotation() float32 HasRotation() bool + + // optional + SetPoint(value coregraphics.Point) + HasSetPoint() bool + + // optional + Point() coregraphics.Point + HasPoint() bool + + // optional + SetSize(value float32) + HasSetSize() bool + + // optional + Size() float32 + HasSize() bool } // ensure impl type implements protocol interface @@ -60,29 +60,6 @@ type TriangleKaleidoscopeObject struct { objc.Object } -func (t_ TriangleKaleidoscopeObject) HasSetPoint() bool { - return t_.RespondsToSelector(objc.Sel("setPoint:")) -} - -// The x and y position to use as the center of the triangular area in the input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228805-point?language=objc -func (t_ TriangleKaleidoscopeObject) SetPoint(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setPoint:"), value) -} - -func (t_ TriangleKaleidoscopeObject) HasPoint() bool { - return t_.RespondsToSelector(objc.Sel("point")) -} - -// The x and y position to use as the center of the triangular area in the input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228805-point?language=objc -func (t_ TriangleKaleidoscopeObject) Point() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("point")) - return rv -} - func (t_ TriangleKaleidoscopeObject) HasSetInputImage() bool { return t_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -106,29 +83,6 @@ func (t_ TriangleKaleidoscopeObject) InputImage() Image { return rv } -func (t_ TriangleKaleidoscopeObject) HasSetSize() bool { - return t_.RespondsToSelector(objc.Sel("setSize:")) -} - -// The size, in pixels, of the triangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228807-size?language=objc -func (t_ TriangleKaleidoscopeObject) SetSize(value float32) { - objc.Call[objc.Void](t_, objc.Sel("setSize:"), value) -} - -func (t_ TriangleKaleidoscopeObject) HasSize() bool { - return t_.RespondsToSelector(objc.Sel("size")) -} - -// The size, in pixels, of the triangle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228807-size?language=objc -func (t_ TriangleKaleidoscopeObject) Size() float32 { - rv := objc.Call[float32](t_, objc.Sel("size")) - return rv -} - func (t_ TriangleKaleidoscopeObject) HasSetDecay() bool { return t_.RespondsToSelector(objc.Sel("setDecay:")) } @@ -174,3 +128,49 @@ func (t_ TriangleKaleidoscopeObject) Rotation() float32 { rv := objc.Call[float32](t_, objc.Sel("rotation")) return rv } + +func (t_ TriangleKaleidoscopeObject) HasSetPoint() bool { + return t_.RespondsToSelector(objc.Sel("setPoint:")) +} + +// The x and y position to use as the center of the triangular area in the input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228805-point?language=objc +func (t_ TriangleKaleidoscopeObject) SetPoint(value coregraphics.Point) { + objc.Call[objc.Void](t_, objc.Sel("setPoint:"), value) +} + +func (t_ TriangleKaleidoscopeObject) HasPoint() bool { + return t_.RespondsToSelector(objc.Sel("point")) +} + +// The x and y position to use as the center of the triangular area in the input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228805-point?language=objc +func (t_ TriangleKaleidoscopeObject) Point() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("point")) + return rv +} + +func (t_ TriangleKaleidoscopeObject) HasSetSize() bool { + return t_.RespondsToSelector(objc.Sel("setSize:")) +} + +// The size, in pixels, of the triangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228807-size?language=objc +func (t_ TriangleKaleidoscopeObject) SetSize(value float32) { + objc.Call[objc.Void](t_, objc.Sel("setSize:"), value) +} + +func (t_ TriangleKaleidoscopeObject) HasSize() bool { + return t_.RespondsToSelector(objc.Sel("size")) +} + +// The size, in pixels, of the triangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228807-size?language=objc +func (t_ TriangleKaleidoscopeObject) Size() float32 { + rv := objc.Call[float32](t_, objc.Sel("size")) + return rv +} diff --git a/macos/coreimage/triangle_tile_protocol.gen.go b/macos/coreimage/triangle_tile_protocol.gen.go index a05b45f9..391ad5b2 100644 --- a/macos/coreimage/triangle_tile_protocol.gen.go +++ b/macos/coreimage/triangle_tile_protocol.gen.go @@ -19,14 +19,6 @@ type PTriangleTile interface { Width() float32 HasWidth() bool - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -42,6 +34,14 @@ type PTriangleTile interface { // optional Angle() float32 HasAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -75,29 +75,6 @@ func (t_ TriangleTileObject) Width() float32 { return rv } -func (t_ TriangleTileObject) HasSetCenter() bool { - return t_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citriangletile/3228810-center?language=objc -func (t_ TriangleTileObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setCenter:"), value) -} - -func (t_ TriangleTileObject) HasCenter() bool { - return t_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citriangletile/3228810-center?language=objc -func (t_ TriangleTileObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) - return rv -} - func (t_ TriangleTileObject) HasSetInputImage() bool { return t_.RespondsToSelector(objc.Sel("setInputImage:")) } @@ -143,3 +120,26 @@ func (t_ TriangleTileObject) Angle() float32 { rv := objc.Call[float32](t_, objc.Sel("angle")) return rv } + +func (t_ TriangleTileObject) HasSetCenter() bool { + return t_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citriangletile/3228810-center?language=objc +func (t_ TriangleTileObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](t_, objc.Sel("setCenter:"), value) +} + +func (t_ TriangleTileObject) HasCenter() bool { + return t_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citriangletile/3228810-center?language=objc +func (t_ TriangleTileObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/twelvefold_reflected_tile_protocol.gen.go b/macos/coreimage/twelvefold_reflected_tile_protocol.gen.go index 92a95a17..7711da70 100644 --- a/macos/coreimage/twelvefold_reflected_tile_protocol.gen.go +++ b/macos/coreimage/twelvefold_reflected_tile_protocol.gen.go @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile?language=objc type PTwelvefoldReflectedTile interface { - // optional - SetAngle(value float32) - HasSetAngle() bool - - // optional - Angle() float32 - HasAngle() bool - - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - // optional SetWidth(value float32) HasSetWidth() bool @@ -42,6 +26,22 @@ type PTwelvefoldReflectedTile interface { // optional InputImage() Image HasInputImage() bool + + // optional + SetAngle(value float32) + HasSetAngle() bool + + // optional + Angle() float32 + HasAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,52 +52,6 @@ type TwelvefoldReflectedTileObject struct { objc.Object } -func (t_ TwelvefoldReflectedTileObject) HasSetAngle() bool { - return t_.RespondsToSelector(objc.Sel("setAngle:")) -} - -// The angle, in radians, of the tiled pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228814-angle?language=objc -func (t_ TwelvefoldReflectedTileObject) SetAngle(value float32) { - objc.Call[objc.Void](t_, objc.Sel("setAngle:"), value) -} - -func (t_ TwelvefoldReflectedTileObject) HasAngle() bool { - return t_.RespondsToSelector(objc.Sel("angle")) -} - -// The angle, in radians, of the tiled pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228814-angle?language=objc -func (t_ TwelvefoldReflectedTileObject) Angle() float32 { - rv := objc.Call[float32](t_, objc.Sel("angle")) - return rv -} - -func (t_ TwelvefoldReflectedTileObject) HasSetCenter() bool { - return t_.RespondsToSelector(objc.Sel("setCenter:")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228815-center?language=objc -func (t_ TwelvefoldReflectedTileObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setCenter:"), value) -} - -func (t_ TwelvefoldReflectedTileObject) HasCenter() bool { - return t_.RespondsToSelector(objc.Sel("center")) -} - -// The x and y position to use as the center of the effect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228815-center?language=objc -func (t_ TwelvefoldReflectedTileObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) - return rv -} - func (t_ TwelvefoldReflectedTileObject) HasSetWidth() bool { return t_.RespondsToSelector(objc.Sel("setWidth:")) } @@ -143,3 +97,49 @@ func (t_ TwelvefoldReflectedTileObject) InputImage() Image { rv := objc.Call[Image](t_, objc.Sel("inputImage")) return rv } + +func (t_ TwelvefoldReflectedTileObject) HasSetAngle() bool { + return t_.RespondsToSelector(objc.Sel("setAngle:")) +} + +// The angle, in radians, of the tiled pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228814-angle?language=objc +func (t_ TwelvefoldReflectedTileObject) SetAngle(value float32) { + objc.Call[objc.Void](t_, objc.Sel("setAngle:"), value) +} + +func (t_ TwelvefoldReflectedTileObject) HasAngle() bool { + return t_.RespondsToSelector(objc.Sel("angle")) +} + +// The angle, in radians, of the tiled pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228814-angle?language=objc +func (t_ TwelvefoldReflectedTileObject) Angle() float32 { + rv := objc.Call[float32](t_, objc.Sel("angle")) + return rv +} + +func (t_ TwelvefoldReflectedTileObject) HasSetCenter() bool { + return t_.RespondsToSelector(objc.Sel("setCenter:")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228815-center?language=objc +func (t_ TwelvefoldReflectedTileObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](t_, objc.Sel("setCenter:"), value) +} + +func (t_ TwelvefoldReflectedTileObject) HasCenter() bool { + return t_.RespondsToSelector(objc.Sel("center")) +} + +// The x and y position to use as the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228815-center?language=objc +func (t_ TwelvefoldReflectedTileObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) + return rv +} diff --git a/macos/coreimage/twirl_distortion_protocol.gen.go b/macos/coreimage/twirl_distortion_protocol.gen.go index ac2cbc6f..413dd44a 100644 --- a/macos/coreimage/twirl_distortion_protocol.gen.go +++ b/macos/coreimage/twirl_distortion_protocol.gen.go @@ -12,20 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion?language=objc type PTwirlDistortion interface { // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool - - // optional - SetAngle(value float32) - HasSetAngle() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Angle() float32 - HasAngle() bool + InputImage() Image + HasInputImage() bool // optional SetRadius(value float32) @@ -36,12 +28,20 @@ type PTwirlDistortion interface { HasRadius() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetAngle(value float32) + HasSetAngle() bool // optional - InputImage() Image - HasInputImage() bool + Angle() float32 + HasAngle() bool + + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool } // ensure impl type implements protocol interface @@ -52,94 +52,94 @@ type TwirlDistortionObject struct { objc.Object } -func (t_ TwirlDistortionObject) HasSetCenter() bool { - return t_.RespondsToSelector(objc.Sel("setCenter:")) +func (t_ TwirlDistortionObject) HasSetInputImage() bool { + return t_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600204-center?language=objc -func (t_ TwirlDistortionObject) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600205-inputimage?language=objc +func (t_ TwirlDistortionObject) SetInputImage(value Image) { + objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), value) } -func (t_ TwirlDistortionObject) HasCenter() bool { - return t_.RespondsToSelector(objc.Sel("center")) +func (t_ TwirlDistortionObject) HasInputImage() bool { + return t_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600204-center?language=objc -func (t_ TwirlDistortionObject) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600205-inputimage?language=objc +func (t_ TwirlDistortionObject) InputImage() Image { + rv := objc.Call[Image](t_, objc.Sel("inputImage")) return rv } -func (t_ TwirlDistortionObject) HasSetAngle() bool { - return t_.RespondsToSelector(objc.Sel("setAngle:")) +func (t_ TwirlDistortionObject) HasSetRadius() bool { + return t_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600203-angle?language=objc -func (t_ TwirlDistortionObject) SetAngle(value float32) { - objc.Call[objc.Void](t_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600206-radius?language=objc +func (t_ TwirlDistortionObject) SetRadius(value float32) { + objc.Call[objc.Void](t_, objc.Sel("setRadius:"), value) } -func (t_ TwirlDistortionObject) HasAngle() bool { - return t_.RespondsToSelector(objc.Sel("angle")) +func (t_ TwirlDistortionObject) HasRadius() bool { + return t_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600203-angle?language=objc -func (t_ TwirlDistortionObject) Angle() float32 { - rv := objc.Call[float32](t_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600206-radius?language=objc +func (t_ TwirlDistortionObject) Radius() float32 { + rv := objc.Call[float32](t_, objc.Sel("radius")) return rv } -func (t_ TwirlDistortionObject) HasSetRadius() bool { - return t_.RespondsToSelector(objc.Sel("setRadius:")) +func (t_ TwirlDistortionObject) HasSetAngle() bool { + return t_.RespondsToSelector(objc.Sel("setAngle:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600206-radius?language=objc -func (t_ TwirlDistortionObject) SetRadius(value float32) { - objc.Call[objc.Void](t_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600203-angle?language=objc +func (t_ TwirlDistortionObject) SetAngle(value float32) { + objc.Call[objc.Void](t_, objc.Sel("setAngle:"), value) } -func (t_ TwirlDistortionObject) HasRadius() bool { - return t_.RespondsToSelector(objc.Sel("radius")) +func (t_ TwirlDistortionObject) HasAngle() bool { + return t_.RespondsToSelector(objc.Sel("angle")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600206-radius?language=objc -func (t_ TwirlDistortionObject) Radius() float32 { - rv := objc.Call[float32](t_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600203-angle?language=objc +func (t_ TwirlDistortionObject) Angle() float32 { + rv := objc.Call[float32](t_, objc.Sel("angle")) return rv } -func (t_ TwirlDistortionObject) HasSetInputImage() bool { - return t_.RespondsToSelector(objc.Sel("setInputImage:")) +func (t_ TwirlDistortionObject) HasSetCenter() bool { + return t_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600205-inputimage?language=objc -func (t_ TwirlDistortionObject) SetInputImage(value Image) { - objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600204-center?language=objc +func (t_ TwirlDistortionObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](t_, objc.Sel("setCenter:"), value) } -func (t_ TwirlDistortionObject) HasInputImage() bool { - return t_.RespondsToSelector(objc.Sel("inputImage")) +func (t_ TwirlDistortionObject) HasCenter() bool { + return t_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600205-inputimage?language=objc -func (t_ TwirlDistortionObject) InputImage() Image { - rv := objc.Call[Image](t_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600204-center?language=objc +func (t_ TwirlDistortionObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/unsharp_mask_protocol.gen.go b/macos/coreimage/unsharp_mask_protocol.gen.go index 1b340614..18c50a5d 100644 --- a/macos/coreimage/unsharp_mask_protocol.gen.go +++ b/macos/coreimage/unsharp_mask_protocol.gen.go @@ -10,6 +10,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciunsharpmask?language=objc type PUnsharpMask interface { + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetIntensity(value float32) HasSetIntensity() bool @@ -25,14 +33,6 @@ type PUnsharpMask interface { // optional Radius() float32 HasRadius() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool } // ensure impl type implements protocol interface @@ -43,6 +43,29 @@ type UnsharpMaskObject struct { objc.Object } +func (u_ UnsharpMaskObject) HasSetInputImage() bool { + return u_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciunsharpmask/3228819-inputimage?language=objc +func (u_ UnsharpMaskObject) SetInputImage(value Image) { + objc.Call[objc.Void](u_, objc.Sel("setInputImage:"), value) +} + +func (u_ UnsharpMaskObject) HasInputImage() bool { + return u_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as an input image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciunsharpmask/3228819-inputimage?language=objc +func (u_ UnsharpMaskObject) InputImage() Image { + rv := objc.Call[Image](u_, objc.Sel("inputImage")) + return rv +} + func (u_ UnsharpMaskObject) HasSetIntensity() bool { return u_.RespondsToSelector(objc.Sel("setIntensity:")) } @@ -88,26 +111,3 @@ func (u_ UnsharpMaskObject) Radius() float32 { rv := objc.Call[float32](u_, objc.Sel("radius")) return rv } - -func (u_ UnsharpMaskObject) HasSetInputImage() bool { - return u_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciunsharpmask/3228819-inputimage?language=objc -func (u_ UnsharpMaskObject) SetInputImage(value Image) { - objc.Call[objc.Void](u_, objc.Sel("setInputImage:"), value) -} - -func (u_ UnsharpMaskObject) HasInputImage() bool { - return u_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciunsharpmask/3228819-inputimage?language=objc -func (u_ UnsharpMaskObject) InputImage() Image { - rv := objc.Call[Image](u_, objc.Sel("inputImage")) - return rv -} diff --git a/macos/coreimage/vector.gen.go b/macos/coreimage/vector.gen.go index 31f5984c..97e73b9d 100644 --- a/macos/coreimage/vector.gen.go +++ b/macos/coreimage/vector.gen.go @@ -20,15 +20,19 @@ type _VectorClass struct { type IVector interface { objc.IObject ValueAtIndex(index uint) float64 - Count() uint + X() float64 + SetX(value float64) Y() float64 - StringRepresentation() string + SetY(value float64) CGRectValue() coregraphics.Rect - W() float64 - Z() float64 + Count() uint CGPointValue() coregraphics.Point - X() float64 CGAffineTransformValue() coregraphics.AffineTransform + Z() float64 + SetZ(value float64) + StringRepresentation() string + W() float64 + SetW(value float64) } // A container for coordinate values, direction vectors, matrices, and other non-scalar values, typically used in Core Image for filter parameters. [Full Topic] @@ -44,16 +48,16 @@ func VectorFrom(ptr unsafe.Pointer) Vector { } } -func (v_ Vector) InitWithXYZW(x float64, y float64, z float64, w float64) Vector { - rv := objc.Call[Vector](v_, objc.Sel("initWithX:Y:Z:W:"), x, y, z, w) +func (v_ Vector) InitWithCGRect(r coregraphics.Rect) Vector { + rv := objc.Call[Vector](v_, objc.Sel("initWithCGRect:"), r) return rv } -// Initializes four positions of a vector with the provided values. [Full Topic] +// Initializes a vector that is initialized with values provided by a CGRect structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438088-initwithx?language=objc -func NewVectorWithXYZW(x float64, y float64, z float64, w float64) Vector { - instance := VectorClass.Alloc().InitWithXYZW(x, y, z, w) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437644-initwithcgrect?language=objc +func NewVectorWithCGRect(r coregraphics.Rect) Vector { + instance := VectorClass.Alloc().InitWithCGRect(r) instance.Autorelease() return instance } @@ -72,44 +76,16 @@ func NewVectorWithValuesCount(values *float64, count uint) Vector { return instance } -func (v_ Vector) InitWithCGAffineTransform(r coregraphics.AffineTransform) Vector { - rv := objc.Call[Vector](v_, objc.Sel("initWithCGAffineTransform:"), r) - return rv -} - -// Initializes a vector that is initialized with values provided by a CGAffineTransform structure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438102-initwithcgaffinetransform?language=objc -func NewVectorWithCGAffineTransform(r coregraphics.AffineTransform) Vector { - instance := VectorClass.Alloc().InitWithCGAffineTransform(r) - instance.Autorelease() - return instance -} - -func (v_ Vector) InitWithCGRect(r coregraphics.Rect) Vector { - rv := objc.Call[Vector](v_, objc.Sel("initWithCGRect:"), r) - return rv -} - -// Initializes a vector that is initialized with values provided by a CGRect structure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437644-initwithcgrect?language=objc -func NewVectorWithCGRect(r coregraphics.Rect) Vector { - instance := VectorClass.Alloc().InitWithCGRect(r) - instance.Autorelease() - return instance -} - -func (vc _VectorClass) VectorWithCGPoint(p coregraphics.Point) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithCGPoint:"), p) +func (vc _VectorClass) VectorWithCGAffineTransform(t coregraphics.AffineTransform) Vector { + rv := objc.Call[Vector](vc, objc.Sel("vectorWithCGAffineTransform:"), t) return rv } -// Creates and returns a vector that is initialized with values provided by a CGPoint structure. [Full Topic] +// Creates and returns a vector that is initialized with values provided by a CGAffineTransform structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564086-vectorwithcgpoint?language=objc -func Vector_VectorWithCGPoint(p coregraphics.Point) Vector { - return VectorClass.VectorWithCGPoint(p) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564090-vectorwithcgaffinetransform?language=objc +func Vector_VectorWithCGAffineTransform(t coregraphics.AffineTransform) Vector { + return VectorClass.VectorWithCGAffineTransform(t) } func (v_ Vector) InitWithString(representation string) Vector { @@ -126,18 +102,6 @@ func NewVectorWithString(representation string) Vector { return instance } -func (vc _VectorClass) VectorWithXY(x float64, y float64) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithX:Y:"), x, y) - return rv -} - -// Creates and returns a vector that is initialized with two values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564091-vectorwithx?language=objc -func Vector_VectorWithXY(x float64, y float64) Vector { - return VectorClass.VectorWithXY(x, y) -} - func (v_ Vector) InitWithXY(x float64, y float64) Vector { rv := objc.Call[Vector](v_, objc.Sel("initWithX:Y:"), x, y) return rv @@ -152,18 +116,6 @@ func NewVectorWithXY(x float64, y float64) Vector { return instance } -func (vc _VectorClass) VectorWithValuesCount(values *float64, count uint) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithValues:count:"), values, count) - return rv -} - -// Creates and returns a vector that is initialized with the specified values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564088-vectorwithvalues?language=objc -func Vector_VectorWithValuesCount(values *float64, count uint) Vector { - return VectorClass.VectorWithValuesCount(values, count) -} - func (vc _VectorClass) VectorWithX(x float64) Vector { rv := objc.Call[Vector](vc, objc.Sel("vectorWithX:"), x) return rv @@ -176,40 +128,30 @@ func Vector_VectorWithX(x float64) Vector { return VectorClass.VectorWithX(x) } -func (vc _VectorClass) VectorWithCGRect(r coregraphics.Rect) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithCGRect:"), r) - return rv -} - -// Creates and returns a vector that is initialized with values provided by a CGRect structure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564085-vectorwithcgrect?language=objc -func Vector_VectorWithCGRect(r coregraphics.Rect) Vector { - return VectorClass.VectorWithCGRect(r) -} - -func (vc _VectorClass) VectorWithXYZ(x float64, y float64, z float64) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithX:Y:Z:"), x, y, z) +func (v_ Vector) InitWithCGAffineTransform(r coregraphics.AffineTransform) Vector { + rv := objc.Call[Vector](v_, objc.Sel("initWithCGAffineTransform:"), r) return rv } -// Creates and returns a vector that is initialized with three values. [Full Topic] +// Initializes a vector that is initialized with values provided by a CGAffineTransform structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564089-vectorwithx?language=objc -func Vector_VectorWithXYZ(x float64, y float64, z float64) Vector { - return VectorClass.VectorWithXYZ(x, y, z) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438102-initwithcgaffinetransform?language=objc +func NewVectorWithCGAffineTransform(r coregraphics.AffineTransform) Vector { + instance := VectorClass.Alloc().InitWithCGAffineTransform(r) + instance.Autorelease() + return instance } -func (vc _VectorClass) VectorWithString(representation string) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithString:"), representation) +func (vc _VectorClass) VectorWithCGRect(r coregraphics.Rect) Vector { + rv := objc.Call[Vector](vc, objc.Sel("vectorWithCGRect:"), r) return rv } -// Creates and returns a vector that is initialized with values provided in a string representation. [Full Topic] +// Creates and returns a vector that is initialized with values provided by a CGRect structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564093-vectorwithstring?language=objc -func Vector_VectorWithString(representation string) Vector { - return VectorClass.VectorWithString(representation) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564085-vectorwithcgrect?language=objc +func Vector_VectorWithCGRect(r coregraphics.Rect) Vector { + return VectorClass.VectorWithCGRect(r) } func (v_ Vector) InitWithCGPoint(p coregraphics.Point) Vector { @@ -226,56 +168,40 @@ func NewVectorWithCGPoint(p coregraphics.Point) Vector { return instance } -func (vc _VectorClass) VectorWithXYZW(x float64, y float64, z float64, w float64) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithX:Y:Z:W:"), x, y, z, w) - return rv -} - -// Creates and returns a vector that is initialized with four values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564087-vectorwithx?language=objc -func Vector_VectorWithXYZW(x float64, y float64, z float64, w float64) Vector { - return VectorClass.VectorWithXYZW(x, y, z, w) -} - -func (v_ Vector) InitWithX(x float64) Vector { - rv := objc.Call[Vector](v_, objc.Sel("initWithX:"), x) +func (vc _VectorClass) VectorWithValuesCount(values *float64, count uint) Vector { + rv := objc.Call[Vector](vc, objc.Sel("vectorWithValues:count:"), values, count) return rv } -// Initializes the first position of a vector with the provided values. [Full Topic] +// Creates and returns a vector that is initialized with the specified values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437657-initwithx?language=objc -func NewVectorWithX(x float64) Vector { - instance := VectorClass.Alloc().InitWithX(x) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564088-vectorwithvalues?language=objc +func Vector_VectorWithValuesCount(values *float64, count uint) Vector { + return VectorClass.VectorWithValuesCount(values, count) } -func (vc _VectorClass) VectorWithCGAffineTransform(t coregraphics.AffineTransform) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithCGAffineTransform:"), t) +func (vc _VectorClass) VectorWithString(representation string) Vector { + rv := objc.Call[Vector](vc, objc.Sel("vectorWithString:"), representation) return rv } -// Creates and returns a vector that is initialized with values provided by a CGAffineTransform structure. [Full Topic] +// Creates and returns a vector that is initialized with values provided in a string representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564090-vectorwithcgaffinetransform?language=objc -func Vector_VectorWithCGAffineTransform(t coregraphics.AffineTransform) Vector { - return VectorClass.VectorWithCGAffineTransform(t) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564093-vectorwithstring?language=objc +func Vector_VectorWithString(representation string) Vector { + return VectorClass.VectorWithString(representation) } -func (v_ Vector) InitWithXYZ(x float64, y float64, z float64) Vector { - rv := objc.Call[Vector](v_, objc.Sel("initWithX:Y:Z:"), x, y, z) +func (vc _VectorClass) VectorWithCGPoint(p coregraphics.Point) Vector { + rv := objc.Call[Vector](vc, objc.Sel("vectorWithCGPoint:"), p) return rv } -// Initializes the first three positions of a vector with the provided values. [Full Topic] +// Creates and returns a vector that is initialized with values provided by a CGPoint structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438056-initwithx?language=objc -func NewVectorWithXYZ(x float64, y float64, z float64) Vector { - instance := VectorClass.Alloc().InitWithXYZ(x, y, z) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564086-vectorwithcgpoint?language=objc +func Vector_VectorWithCGPoint(p coregraphics.Point) Vector { + return VectorClass.VectorWithCGPoint(p) } func (vc _VectorClass) Alloc() Vector { @@ -306,14 +232,21 @@ func (v_ Vector) ValueAtIndex(index uint) float64 { return rv } -// The number of items in the vector. [Full Topic] +// The value located in the first position in the vector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438197-count?language=objc -func (v_ Vector) Count() uint { - rv := objc.Call[uint](v_, objc.Sel("count")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437738-x?language=objc +func (v_ Vector) X() float64 { + rv := objc.Call[float64](v_, objc.Sel("X")) return rv } +// The value located in the first position in the vector. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437738-x?language=objc +func (v_ Vector) SetX(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setX:"), value) +} + // The value located in the second position in the vector. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437843-y?language=objc @@ -322,12 +255,11 @@ func (v_ Vector) Y() float64 { return rv } -// The string representation of the vector. [Full Topic] +// The value located in the second position in the vector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437752-stringrepresentation?language=objc -func (v_ Vector) StringRepresentation() string { - rv := objc.Call[string](v_, objc.Sel("stringRepresentation")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437843-y?language=objc +func (v_ Vector) SetY(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setY:"), value) } // The values in the vector as a Core Graphics rectangle structure. [Full Topic] @@ -338,11 +270,27 @@ func (v_ Vector) CGRectValue() coregraphics.Rect { return rv } -// The value located in the fourth position in the vector. [Full Topic] +// The number of items in the vector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438058-w?language=objc -func (v_ Vector) W() float64 { - rv := objc.Call[float64](v_, objc.Sel("W")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438197-count?language=objc +func (v_ Vector) Count() uint { + rv := objc.Call[uint](v_, objc.Sel("count")) + return rv +} + +// The values in the vector as a Core Graphics point structure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437672-cgpointvalue?language=objc +func (v_ Vector) CGPointValue() coregraphics.Point { + rv := objc.Call[coregraphics.Point](v_, objc.Sel("CGPointValue")) + return rv +} + +// The values in the vector represented as an affine transform. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438249-cgaffinetransformvalue?language=objc +func (v_ Vector) CGAffineTransformValue() coregraphics.AffineTransform { + rv := objc.Call[coregraphics.AffineTransform](v_, objc.Sel("CGAffineTransformValue")) return rv } @@ -354,26 +302,32 @@ func (v_ Vector) Z() float64 { return rv } -// The values in the vector as a Core Graphics point structure. [Full Topic] +// The value located in the third position in the vector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437672-cgpointvalue?language=objc -func (v_ Vector) CGPointValue() coregraphics.Point { - rv := objc.Call[coregraphics.Point](v_, objc.Sel("CGPointValue")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437627-z?language=objc +func (v_ Vector) SetZ(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setZ:"), value) } -// The value located in the first position in the vector. [Full Topic] +// The string representation of the vector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437738-x?language=objc -func (v_ Vector) X() float64 { - rv := objc.Call[float64](v_, objc.Sel("X")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1437752-stringrepresentation?language=objc +func (v_ Vector) StringRepresentation() string { + rv := objc.Call[string](v_, objc.Sel("stringRepresentation")) return rv } -// The values in the vector represented as an affine transform. [Full Topic] +// The value located in the fourth position in the vector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438249-cgaffinetransformvalue?language=objc -func (v_ Vector) CGAffineTransformValue() coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](v_, objc.Sel("CGAffineTransformValue")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438058-w?language=objc +func (v_ Vector) W() float64 { + rv := objc.Call[float64](v_, objc.Sel("W")) return rv } + +// The value located in the fourth position in the vector. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1438058-w?language=objc +func (v_ Vector) SetW(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setW:"), value) +} diff --git a/macos/coreimage/vignette_effect_protocol.gen.go b/macos/coreimage/vignette_effect_protocol.gen.go index eb60a24c..c6d80463 100644 --- a/macos/coreimage/vignette_effect_protocol.gen.go +++ b/macos/coreimage/vignette_effect_protocol.gen.go @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect?language=objc type PVignetteEffect interface { // optional - SetRadius(value float32) - HasSetRadius() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Radius() float32 - HasRadius() bool + InputImage() Image + HasInputImage() bool // optional SetIntensity(value float32) @@ -27,14 +27,6 @@ type PVignetteEffect interface { Intensity() float32 HasIntensity() bool - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() Image - HasInputImage() bool - // optional SetFalloff(value float32) HasSetFalloff() bool @@ -43,6 +35,14 @@ type PVignetteEffect interface { Falloff() float32 HasFalloff() bool + // optional + SetRadius(value float32) + HasSetRadius() bool + + // optional + Radius() float32 + HasRadius() bool + // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -60,26 +60,26 @@ type VignetteEffectObject struct { objc.Object } -func (v_ VignetteEffectObject) HasSetRadius() bool { - return v_.RespondsToSelector(objc.Sel("setRadius:")) +func (v_ VignetteEffectObject) HasSetInputImage() bool { + return v_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The distance from the center of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228834-radius?language=objc -func (v_ VignetteEffectObject) SetRadius(value float32) { - objc.Call[objc.Void](v_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228832-inputimage?language=objc +func (v_ VignetteEffectObject) SetInputImage(value Image) { + objc.Call[objc.Void](v_, objc.Sel("setInputImage:"), value) } -func (v_ VignetteEffectObject) HasRadius() bool { - return v_.RespondsToSelector(objc.Sel("radius")) +func (v_ VignetteEffectObject) HasInputImage() bool { + return v_.RespondsToSelector(objc.Sel("inputImage")) } -// The distance from the center of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228834-radius?language=objc -func (v_ VignetteEffectObject) Radius() float32 { - rv := objc.Call[float32](v_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228832-inputimage?language=objc +func (v_ VignetteEffectObject) InputImage() Image { + rv := objc.Call[Image](v_, objc.Sel("inputImage")) return rv } @@ -106,29 +106,6 @@ func (v_ VignetteEffectObject) Intensity() float32 { return rv } -func (v_ VignetteEffectObject) HasSetInputImage() bool { - return v_.RespondsToSelector(objc.Sel("setInputImage:")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228832-inputimage?language=objc -func (v_ VignetteEffectObject) SetInputImage(value Image) { - objc.Call[objc.Void](v_, objc.Sel("setInputImage:"), value) -} - -func (v_ VignetteEffectObject) HasInputImage() bool { - return v_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228832-inputimage?language=objc -func (v_ VignetteEffectObject) InputImage() Image { - rv := objc.Call[Image](v_, objc.Sel("inputImage")) - return rv -} - func (v_ VignetteEffectObject) HasSetFalloff() bool { return v_.RespondsToSelector(objc.Sel("setFalloff:")) } @@ -152,6 +129,29 @@ func (v_ VignetteEffectObject) Falloff() float32 { return rv } +func (v_ VignetteEffectObject) HasSetRadius() bool { + return v_.RespondsToSelector(objc.Sel("setRadius:")) +} + +// The distance from the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228834-radius?language=objc +func (v_ VignetteEffectObject) SetRadius(value float32) { + objc.Call[objc.Void](v_, objc.Sel("setRadius:"), value) +} + +func (v_ VignetteEffectObject) HasRadius() bool { + return v_.RespondsToSelector(objc.Sel("radius")) +} + +// The distance from the center of the effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228834-radius?language=objc +func (v_ VignetteEffectObject) Radius() float32 { + rv := objc.Call[float32](v_, objc.Sel("radius")) + return rv +} + func (v_ VignetteEffectObject) HasSetCenter() bool { return v_.RespondsToSelector(objc.Sel("setCenter:")) } diff --git a/macos/coreimage/vignette_protocol.gen.go b/macos/coreimage/vignette_protocol.gen.go index 2697c807..bdfc282c 100644 --- a/macos/coreimage/vignette_protocol.gen.go +++ b/macos/coreimage/vignette_protocol.gen.go @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette?language=objc type PVignette interface { // optional - SetRadius(value float32) - HasSetRadius() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Radius() float32 - HasRadius() bool + InputImage() Image + HasInputImage() bool // optional SetIntensity(value float32) @@ -27,12 +27,12 @@ type PVignette interface { HasIntensity() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetRadius(value float32) + HasSetRadius() bool // optional - InputImage() Image - HasInputImage() bool + Radius() float32 + HasRadius() bool } // ensure impl type implements protocol interface @@ -43,26 +43,26 @@ type VignetteObject struct { objc.Object } -func (v_ VignetteObject) HasSetRadius() bool { - return v_.RespondsToSelector(objc.Sel("setRadius:")) +func (v_ VignetteObject) HasSetInputImage() bool { + return v_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The distance from the center of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228828-radius?language=objc -func (v_ VignetteObject) SetRadius(value float32) { - objc.Call[objc.Void](v_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228826-inputimage?language=objc +func (v_ VignetteObject) SetInputImage(value Image) { + objc.Call[objc.Void](v_, objc.Sel("setInputImage:"), value) } -func (v_ VignetteObject) HasRadius() bool { - return v_.RespondsToSelector(objc.Sel("radius")) +func (v_ VignetteObject) HasInputImage() bool { + return v_.RespondsToSelector(objc.Sel("inputImage")) } -// The distance from the center of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228828-radius?language=objc -func (v_ VignetteObject) Radius() float32 { - rv := objc.Call[float32](v_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228826-inputimage?language=objc +func (v_ VignetteObject) InputImage() Image { + rv := objc.Call[Image](v_, objc.Sel("inputImage")) return rv } @@ -89,25 +89,25 @@ func (v_ VignetteObject) Intensity() float32 { return rv } -func (v_ VignetteObject) HasSetInputImage() bool { - return v_.RespondsToSelector(objc.Sel("setInputImage:")) +func (v_ VignetteObject) HasSetRadius() bool { + return v_.RespondsToSelector(objc.Sel("setRadius:")) } -// The image to use as an input image. [Full Topic] +// The distance from the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228826-inputimage?language=objc -func (v_ VignetteObject) SetInputImage(value Image) { - objc.Call[objc.Void](v_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228828-radius?language=objc +func (v_ VignetteObject) SetRadius(value float32) { + objc.Call[objc.Void](v_, objc.Sel("setRadius:"), value) } -func (v_ VignetteObject) HasInputImage() bool { - return v_.RespondsToSelector(objc.Sel("inputImage")) +func (v_ VignetteObject) HasRadius() bool { + return v_.RespondsToSelector(objc.Sel("radius")) } -// The image to use as an input image. [Full Topic] +// The distance from the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228826-inputimage?language=objc -func (v_ VignetteObject) InputImage() Image { - rv := objc.Call[Image](v_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228828-radius?language=objc +func (v_ VignetteObject) Radius() float32 { + rv := objc.Call[float32](v_, objc.Sel("radius")) return rv } diff --git a/macos/coreimage/vortex_distortion_protocol.gen.go b/macos/coreimage/vortex_distortion_protocol.gen.go index f1392d92..4a1c6fbc 100644 --- a/macos/coreimage/vortex_distortion_protocol.gen.go +++ b/macos/coreimage/vortex_distortion_protocol.gen.go @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion?language=objc type PVortexDistortion interface { - // optional - SetRadius(value float32) - HasSetRadius() bool - - // optional - Radius() float32 - HasRadius() bool - // optional SetInputImage(value Image) HasSetInputImage() bool @@ -27,6 +19,14 @@ type PVortexDistortion interface { InputImage() Image HasInputImage() bool + // optional + SetRadius(value float32) + HasSetRadius() bool + + // optional + Radius() float32 + HasRadius() bool + // optional SetAngle(value float32) HasSetAngle() bool @@ -52,49 +52,49 @@ type VortexDistortionObject struct { objc.Object } -func (v_ VortexDistortionObject) HasSetRadius() bool { - return v_.RespondsToSelector(objc.Sel("setRadius:")) +func (v_ VortexDistortionObject) HasSetInputImage() bool { + return v_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600211-radius?language=objc -func (v_ VortexDistortionObject) SetRadius(value float32) { - objc.Call[objc.Void](v_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600210-inputimage?language=objc +func (v_ VortexDistortionObject) SetInputImage(value Image) { + objc.Call[objc.Void](v_, objc.Sel("setInputImage:"), value) } -func (v_ VortexDistortionObject) HasRadius() bool { - return v_.RespondsToSelector(objc.Sel("radius")) +func (v_ VortexDistortionObject) HasInputImage() bool { + return v_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600211-radius?language=objc -func (v_ VortexDistortionObject) Radius() float32 { - rv := objc.Call[float32](v_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600210-inputimage?language=objc +func (v_ VortexDistortionObject) InputImage() Image { + rv := objc.Call[Image](v_, objc.Sel("inputImage")) return rv } -func (v_ VortexDistortionObject) HasSetInputImage() bool { - return v_.RespondsToSelector(objc.Sel("setInputImage:")) +func (v_ VortexDistortionObject) HasSetRadius() bool { + return v_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600210-inputimage?language=objc -func (v_ VortexDistortionObject) SetInputImage(value Image) { - objc.Call[objc.Void](v_, objc.Sel("setInputImage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600211-radius?language=objc +func (v_ VortexDistortionObject) SetRadius(value float32) { + objc.Call[objc.Void](v_, objc.Sel("setRadius:"), value) } -func (v_ VortexDistortionObject) HasInputImage() bool { - return v_.RespondsToSelector(objc.Sel("inputImage")) +func (v_ VortexDistortionObject) HasRadius() bool { + return v_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600210-inputimage?language=objc -func (v_ VortexDistortionObject) InputImage() Image { - rv := objc.Call[Image](v_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600211-radius?language=objc +func (v_ VortexDistortionObject) Radius() float32 { + rv := objc.Call[float32](v_, objc.Sel("radius")) return rv } diff --git a/macos/coreimage/warp_kernel.gen.go b/macos/coreimage/warp_kernel.gen.go index f4bef36c..7ac2c8ad 100644 --- a/macos/coreimage/warp_kernel.gen.go +++ b/macos/coreimage/warp_kernel.gen.go @@ -55,18 +55,6 @@ func (w_ WarpKernel) Init() WarpKernel { return rv } -func (wc _WarpKernelClass) KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error unsafe.Pointer) WarpKernel { - rv := objc.Call[WarpKernel](wc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:error:"), name, data, error) - return rv -} - -// Creates a single kernel object using a Metal Shading Language (MSL) kernel function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/2880194-kernelwithfunctionname?language=objc -func WarpKernel_KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error unsafe.Pointer) WarpKernel { - return WarpKernelClass.KernelWithFunctionNameFromMetalLibraryDataError(name, data, error) -} - func (wc _WarpKernelClass) KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name string, data []byte, format Format, error unsafe.Pointer) WarpKernel { rv := objc.Call[WarpKernel](wc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:"), name, data, format, error) return rv diff --git a/macos/corelocation/beacon.gen.go b/macos/corelocation/beacon.gen.go index 7583672b..fe958b42 100644 --- a/macos/corelocation/beacon.gen.go +++ b/macos/corelocation/beacon.gen.go @@ -19,13 +19,13 @@ type _BeaconClass struct { // An interface definition for the [Beacon] class. type IBeacon interface { objc.IObject - Timestamp() foundation.Date - Rssi() int Major() foundation.Number - UUID() foundation.UUID - Proximity() Proximity Minor() foundation.Number + Rssi() int Accuracy() LocationAccuracy + UUID() foundation.UUID + Timestamp() foundation.Date + Proximity() Proximity } // Information about an observed iBeacon device and its relative distance to the user’s device. [Full Topic] @@ -61,11 +61,19 @@ func (b_ Beacon) Init() Beacon { return rv } -// A timestamp representing when the beacon was observed. [Full Topic] +// The major value that the observed beacon transmitted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/3183021-timestamp?language=objc -func (b_ Beacon) Timestamp() foundation.Date { - rv := objc.Call[foundation.Date](b_, objc.Sel("timestamp")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/1621418-major?language=objc +func (b_ Beacon) Major() foundation.Number { + rv := objc.Call[foundation.Number](b_, objc.Sel("major")) + return rv +} + +// The minor value that the observed beacon transmitted. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/1621558-minor?language=objc +func (b_ Beacon) Minor() foundation.Number { + rv := objc.Call[foundation.Number](b_, objc.Sel("minor")) return rv } @@ -77,11 +85,11 @@ func (b_ Beacon) Rssi() int { return rv } -// The major value that the observed beacon transmitted. [Full Topic] +// The accuracy of the proximity value, measured in meters from the beacon. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/1621418-major?language=objc -func (b_ Beacon) Major() foundation.Number { - rv := objc.Call[foundation.Number](b_, objc.Sel("major")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/1621551-accuracy?language=objc +func (b_ Beacon) Accuracy() LocationAccuracy { + rv := objc.Call[LocationAccuracy](b_, objc.Sel("accuracy")) return rv } @@ -93,26 +101,18 @@ func (b_ Beacon) UUID() foundation.UUID { return rv } -// The relative distance to the beacon. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/1621554-proximity?language=objc -func (b_ Beacon) Proximity() Proximity { - rv := objc.Call[Proximity](b_, objc.Sel("proximity")) - return rv -} - -// The minor value that the observed beacon transmitted. [Full Topic] +// A timestamp representing when the beacon was observed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/1621558-minor?language=objc -func (b_ Beacon) Minor() foundation.Number { - rv := objc.Call[foundation.Number](b_, objc.Sel("minor")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/3183021-timestamp?language=objc +func (b_ Beacon) Timestamp() foundation.Date { + rv := objc.Call[foundation.Date](b_, objc.Sel("timestamp")) return rv } -// The accuracy of the proximity value, measured in meters from the beacon. [Full Topic] +// The relative distance to the beacon. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/1621551-accuracy?language=objc -func (b_ Beacon) Accuracy() LocationAccuracy { - rv := objc.Call[LocationAccuracy](b_, objc.Sel("accuracy")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/1621554-proximity?language=objc +func (b_ Beacon) Proximity() Proximity { + rv := objc.Call[Proximity](b_, objc.Sel("proximity")) return rv } diff --git a/macos/corelocation/geocoder.gen.go b/macos/corelocation/geocoder.gen.go index 10249f55..ffea1372 100644 --- a/macos/corelocation/geocoder.gen.go +++ b/macos/corelocation/geocoder.gen.go @@ -6,7 +6,6 @@ import ( "unsafe" "github.com/progrium/darwinkit/macos/contacts" - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -20,14 +19,10 @@ type _GeocoderClass struct { // An interface definition for the [Geocoder] class. type IGeocoder interface { objc.IObject - GeocodeAddressStringInRegionCompletionHandler(addressString string, region IRegion, completionHandler GeocodeCompletionHandler) - GeocodePostalAddressCompletionHandler(postalAddress contacts.IPostalAddress, completionHandler GeocodeCompletionHandler) - GeocodeAddressStringInRegionPreferredLocaleCompletionHandler(addressString string, region IRegion, locale foundation.ILocale, completionHandler GeocodeCompletionHandler) - ReverseGeocodeLocationPreferredLocaleCompletionHandler(location ILocation, locale foundation.ILocale, completionHandler GeocodeCompletionHandler) - GeocodePostalAddressPreferredLocaleCompletionHandler(postalAddress contacts.IPostalAddress, locale foundation.ILocale, completionHandler GeocodeCompletionHandler) - CancelGeocode() - GeocodeAddressStringCompletionHandler(addressString string, completionHandler GeocodeCompletionHandler) ReverseGeocodeLocationCompletionHandler(location ILocation, completionHandler GeocodeCompletionHandler) + GeocodeAddressStringCompletionHandler(addressString string, completionHandler GeocodeCompletionHandler) + CancelGeocode() + GeocodePostalAddressCompletionHandler(postalAddress contacts.IPostalAddress, completionHandler GeocodeCompletionHandler) IsGeocoding() bool } @@ -64,39 +59,18 @@ func (g_ Geocoder) Init() Geocoder { return rv } -// Submits a forward-geocoding request using the specified string and region information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clgeocoder/1423591-geocodeaddressstring?language=objc -func (g_ Geocoder) GeocodeAddressStringInRegionCompletionHandler(addressString string, region IRegion, completionHandler GeocodeCompletionHandler) { - objc.Call[objc.Void](g_, objc.Sel("geocodeAddressString:inRegion:completionHandler:"), addressString, region, completionHandler) -} - -// Submits a forward-geocoding requesting using the specified Contacts framework information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clgeocoder/2890752-geocodepostaladdress?language=objc -func (g_ Geocoder) GeocodePostalAddressCompletionHandler(postalAddress contacts.IPostalAddress, completionHandler GeocodeCompletionHandler) { - objc.Call[objc.Void](g_, objc.Sel("geocodePostalAddress:completionHandler:"), postalAddress, completionHandler) -} - -// Submits a forward-geocoding requesting using the specified address string and locale information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clgeocoder/2890753-geocodeaddressstring?language=objc -func (g_ Geocoder) GeocodeAddressStringInRegionPreferredLocaleCompletionHandler(addressString string, region IRegion, locale foundation.ILocale, completionHandler GeocodeCompletionHandler) { - objc.Call[objc.Void](g_, objc.Sel("geocodeAddressString:inRegion:preferredLocale:completionHandler:"), addressString, region, locale, completionHandler) -} - -// Submits a reverse-geocoding request for the specified location and locale. [Full Topic] +// Submits a reverse-geocoding request for the specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clgeocoder/2908779-reversegeocodelocation?language=objc -func (g_ Geocoder) ReverseGeocodeLocationPreferredLocaleCompletionHandler(location ILocation, locale foundation.ILocale, completionHandler GeocodeCompletionHandler) { - objc.Call[objc.Void](g_, objc.Sel("reverseGeocodeLocation:preferredLocale:completionHandler:"), location, locale, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clgeocoder/1423621-reversegeocodelocation?language=objc +func (g_ Geocoder) ReverseGeocodeLocationCompletionHandler(location ILocation, completionHandler GeocodeCompletionHandler) { + objc.Call[objc.Void](g_, objc.Sel("reverseGeocodeLocation:completionHandler:"), location, completionHandler) } -// Submits a forward-geocoding requesting using the specified locale and Contacts framework information. [Full Topic] +// Submits a forward-geocoding request using the specified string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clgeocoder/2890750-geocodepostaladdress?language=objc -func (g_ Geocoder) GeocodePostalAddressPreferredLocaleCompletionHandler(postalAddress contacts.IPostalAddress, locale foundation.ILocale, completionHandler GeocodeCompletionHandler) { - objc.Call[objc.Void](g_, objc.Sel("geocodePostalAddress:preferredLocale:completionHandler:"), postalAddress, locale, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clgeocoder/1423509-geocodeaddressstring?language=objc +func (g_ Geocoder) GeocodeAddressStringCompletionHandler(addressString string, completionHandler GeocodeCompletionHandler) { + objc.Call[objc.Void](g_, objc.Sel("geocodeAddressString:completionHandler:"), addressString, completionHandler) } // Cancels a pending geocoding request. [Full Topic] @@ -106,18 +80,11 @@ func (g_ Geocoder) CancelGeocode() { objc.Call[objc.Void](g_, objc.Sel("cancelGeocode")) } -// Submits a forward-geocoding request using the specified string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clgeocoder/1423509-geocodeaddressstring?language=objc -func (g_ Geocoder) GeocodeAddressStringCompletionHandler(addressString string, completionHandler GeocodeCompletionHandler) { - objc.Call[objc.Void](g_, objc.Sel("geocodeAddressString:completionHandler:"), addressString, completionHandler) -} - -// Submits a reverse-geocoding request for the specified location. [Full Topic] +// Submits a forward-geocoding requesting using the specified Contacts framework information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clgeocoder/1423621-reversegeocodelocation?language=objc -func (g_ Geocoder) ReverseGeocodeLocationCompletionHandler(location ILocation, completionHandler GeocodeCompletionHandler) { - objc.Call[objc.Void](g_, objc.Sel("reverseGeocodeLocation:completionHandler:"), location, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clgeocoder/2890752-geocodepostaladdress?language=objc +func (g_ Geocoder) GeocodePostalAddressCompletionHandler(postalAddress contacts.IPostalAddress, completionHandler GeocodeCompletionHandler) { + objc.Call[objc.Void](g_, objc.Sel("geocodePostalAddress:completionHandler:"), postalAddress, completionHandler) } // A Boolean value indicating whether the receiver is in the middle of geocoding its value. [Full Topic] diff --git a/macos/corelocation/heading.gen.go b/macos/corelocation/heading.gen.go index 9ee73be4..dbad7573 100644 --- a/macos/corelocation/heading.gen.go +++ b/macos/corelocation/heading.gen.go @@ -19,13 +19,16 @@ type _HeadingClass struct { // An interface definition for the [Heading] class. type IHeading interface { objc.IObject - Timestamp() foundation.Date + MagneticHeading() LocationDirection X() HeadingComponentValue + SetX(value HeadingComponentValue) Y() HeadingComponentValue + SetY(value HeadingComponentValue) TrueHeading() LocationDirection HeadingAccuracy() LocationDirection - MagneticHeading() LocationDirection + Timestamp() foundation.Date Z() HeadingComponentValue + SetZ(value HeadingComponentValue) } // The azimuth (orientation) of the user’s device, relative to true or magnetic north. [Full Topic] @@ -61,11 +64,11 @@ func (h_ Heading) Init() Heading { return rv } -// The time at which this heading was determined. [Full Topic] +// The heading (measured in degrees) relative to magnetic north. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clheading/1423525-timestamp?language=objc -func (h_ Heading) Timestamp() foundation.Date { - rv := objc.Call[foundation.Date](h_, objc.Sel("timestamp")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clheading/1423763-magneticheading?language=objc +func (h_ Heading) MagneticHeading() LocationDirection { + rv := objc.Call[LocationDirection](h_, objc.Sel("magneticHeading")) return rv } @@ -77,6 +80,13 @@ func (h_ Heading) X() HeadingComponentValue { return rv } +// The geomagnetic data (measured in microteslas) for the x-axis. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clheading/1423685-x?language=objc +func (h_ Heading) SetX(value HeadingComponentValue) { + objc.Call[objc.Void](h_, objc.Sel("setX:"), value) +} + // The geomagnetic data (measured in microteslas) for the y-axis. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/clheading/1423617-y?language=objc @@ -85,6 +95,13 @@ func (h_ Heading) Y() HeadingComponentValue { return rv } +// The geomagnetic data (measured in microteslas) for the y-axis. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clheading/1423617-y?language=objc +func (h_ Heading) SetY(value HeadingComponentValue) { + objc.Call[objc.Void](h_, objc.Sel("setY:"), value) +} + // The heading (measured in degrees) relative to true north. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/clheading/1423568-trueheading?language=objc @@ -101,11 +118,11 @@ func (h_ Heading) HeadingAccuracy() LocationDirection { return rv } -// The heading (measured in degrees) relative to magnetic north. [Full Topic] +// The time at which this heading was determined. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clheading/1423763-magneticheading?language=objc -func (h_ Heading) MagneticHeading() LocationDirection { - rv := objc.Call[LocationDirection](h_, objc.Sel("magneticHeading")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clheading/1423525-timestamp?language=objc +func (h_ Heading) Timestamp() foundation.Date { + rv := objc.Call[foundation.Date](h_, objc.Sel("timestamp")) return rv } @@ -116,3 +133,10 @@ func (h_ Heading) Z() HeadingComponentValue { rv := objc.Call[HeadingComponentValue](h_, objc.Sel("z")) return rv } + +// The geomagnetic data (measured in microteslas) for the z-axis. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clheading/1423609-z?language=objc +func (h_ Heading) SetZ(value HeadingComponentValue) { + objc.Call[objc.Void](h_, objc.Sel("setZ:"), value) +} diff --git a/macos/corelocation/location.gen.go b/macos/corelocation/location.gen.go index fa75167c..f9848493 100644 --- a/macos/corelocation/location.gen.go +++ b/macos/corelocation/location.gen.go @@ -20,18 +20,18 @@ type _LocationClass struct { type ILocation interface { objc.IObject DistanceFromLocation(location ILocation) LocationDistance - Coordinate() LocationCoordinate2D Floor() Floor - Speed() LocationSpeed - SourceInformation() LocationSourceInformation + HorizontalAccuracy() LocationAccuracy + Coordinate() LocationCoordinate2D + CourseAccuracy() LocationDirectionAccuracy Course() LocationDirection + Speed() LocationSpeed + EllipsoidalAltitude() LocationDistance SpeedAccuracy() LocationSpeedAccuracy - HorizontalAccuracy() LocationAccuracy - Timestamp() foundation.Date Altitude() LocationDistance VerticalAccuracy() LocationAccuracy - EllipsoidalAltitude() LocationDistance - CourseAccuracy() LocationDirectionAccuracy + Timestamp() foundation.Date + SourceInformation() LocationSourceInformation } // The latitude, longitude, and course information reported by the system. [Full Topic] @@ -47,20 +47,6 @@ func LocationFrom(ptr unsafe.Pointer) Location { } } -func (l_ Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, timestamp foundation.IDate) Location { - rv := objc.Call[Location](l_, objc.Sel("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:"), coordinate, altitude, hAccuracy, vAccuracy, timestamp) - return rv -} - -// Creates a location object with the specified coordinate and altitude information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423666-initwithcoordinate?language=objc -func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, timestamp foundation.IDate) Location { - instance := LocationClass.Alloc().InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(coordinate, altitude, hAccuracy, vAccuracy, timestamp) - instance.Autorelease() - return instance -} - func (l_ Location) InitWithLatitudeLongitude(latitude LocationDegrees, longitude LocationDegrees) Location { rv := objc.Call[Location](l_, objc.Sel("initWithLatitude:longitude:"), latitude, longitude) return rv @@ -75,44 +61,16 @@ func NewLocationWithLatitudeLongitude(latitude LocationDegrees, longitude Locati return instance } -func (l_ Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, courseAccuracy LocationDirectionAccuracy, speed LocationSpeed, speedAccuracy LocationSpeedAccuracy, timestamp foundation.IDate) Location { - rv := objc.Call[Location](l_, objc.Sel("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:"), coordinate, altitude, hAccuracy, vAccuracy, course, courseAccuracy, speed, speedAccuracy, timestamp) - return rv -} - -// Creates a location object with the specified coordinate, altitude, course, and accuracy information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/3524339-initwithcoordinate?language=objc -func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, courseAccuracy LocationDirectionAccuracy, speed LocationSpeed, speedAccuracy LocationSpeedAccuracy, timestamp foundation.IDate) Location { - instance := LocationClass.Alloc().InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp(coordinate, altitude, hAccuracy, vAccuracy, course, courseAccuracy, speed, speedAccuracy, timestamp) - instance.Autorelease() - return instance -} - -func (l_ Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestampSourceInfo(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, courseAccuracy LocationDirectionAccuracy, speed LocationSpeed, speedAccuracy LocationSpeedAccuracy, timestamp foundation.IDate, sourceInfo ILocationSourceInformation) Location { - rv := objc.Call[Location](l_, objc.Sel("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:sourceInfo:"), coordinate, altitude, hAccuracy, vAccuracy, course, courseAccuracy, speed, speedAccuracy, timestamp, sourceInfo) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/3861802-initwithcoordinate?language=objc -func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestampSourceInfo(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, courseAccuracy LocationDirectionAccuracy, speed LocationSpeed, speedAccuracy LocationSpeedAccuracy, timestamp foundation.IDate, sourceInfo ILocationSourceInformation) Location { - instance := LocationClass.Alloc().InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestampSourceInfo(coordinate, altitude, hAccuracy, vAccuracy, course, courseAccuracy, speed, speedAccuracy, timestamp, sourceInfo) - instance.Autorelease() - return instance -} - -func (l_ Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, speed LocationSpeed, timestamp foundation.IDate) Location { - rv := objc.Call[Location](l_, objc.Sel("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:"), coordinate, altitude, hAccuracy, vAccuracy, course, speed, timestamp) +func (l_ Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, timestamp foundation.IDate) Location { + rv := objc.Call[Location](l_, objc.Sel("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:"), coordinate, altitude, hAccuracy, vAccuracy, timestamp) return rv } -// Creates a location object with the specified coordinate, altitude, and course information. [Full Topic] +// Creates a location object with the specified coordinate and altitude information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423718-initwithcoordinate?language=objc -func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, speed LocationSpeed, timestamp foundation.IDate) Location { - instance := LocationClass.Alloc().InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp(coordinate, altitude, hAccuracy, vAccuracy, course, speed, timestamp) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423666-initwithcoordinate?language=objc +func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, timestamp foundation.IDate) Location { + instance := LocationClass.Alloc().InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(coordinate, altitude, hAccuracy, vAccuracy, timestamp) instance.Autorelease() return instance } @@ -145,14 +103,6 @@ func (l_ Location) DistanceFromLocation(location ILocation) LocationDistance { return rv } -// The geographical coordinate information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423504-coordinate?language=objc -func (l_ Location) Coordinate() LocationCoordinate2D { - rv := objc.Call[LocationCoordinate2D](l_, objc.Sel("coordinate")) - return rv -} - // The logical floor of the building in which the user is located. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1616762-floor?language=objc @@ -161,19 +111,27 @@ func (l_ Location) Floor() Floor { return rv } -// The instantaneous speed of the device, measured in meters per second. [Full Topic] +// The radius of uncertainty for the location, measured in meters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423798-speed?language=objc -func (l_ Location) Speed() LocationSpeed { - rv := objc.Call[LocationSpeed](l_, objc.Sel("speed")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423599-horizontalaccuracy?language=objc +func (l_ Location) HorizontalAccuracy() LocationAccuracy { + rv := objc.Call[LocationAccuracy](l_, objc.Sel("horizontalAccuracy")) return rv } -// Information about the source that provides the location. [Full Topic] +// The geographical coordinate information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/3861803-sourceinformation?language=objc -func (l_ Location) SourceInformation() LocationSourceInformation { - rv := objc.Call[LocationSourceInformation](l_, objc.Sel("sourceInformation")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423504-coordinate?language=objc +func (l_ Location) Coordinate() LocationCoordinate2D { + rv := objc.Call[LocationCoordinate2D](l_, objc.Sel("coordinate")) + return rv +} + +// The accuracy of the course value, measured in degrees. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/3524338-courseaccuracy?language=objc +func (l_ Location) CourseAccuracy() LocationDirectionAccuracy { + rv := objc.Call[LocationDirectionAccuracy](l_, objc.Sel("courseAccuracy")) return rv } @@ -185,27 +143,27 @@ func (l_ Location) Course() LocationDirection { return rv } -// The accuracy of the speed value, measured in meters per second. [Full Topic] +// The instantaneous speed of the device, measured in meters per second. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/3524340-speedaccuracy?language=objc -func (l_ Location) SpeedAccuracy() LocationSpeedAccuracy { - rv := objc.Call[LocationSpeedAccuracy](l_, objc.Sel("speedAccuracy")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423798-speed?language=objc +func (l_ Location) Speed() LocationSpeed { + rv := objc.Call[LocationSpeed](l_, objc.Sel("speed")) return rv } -// The radius of uncertainty for the location, measured in meters. [Full Topic] +// The altitude as a height above the World Geodetic System 1984 (WGS84) ellipsoid, measured in meters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423599-horizontalaccuracy?language=objc -func (l_ Location) HorizontalAccuracy() LocationAccuracy { - rv := objc.Call[LocationAccuracy](l_, objc.Sel("horizontalAccuracy")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/3861801-ellipsoidalaltitude?language=objc +func (l_ Location) EllipsoidalAltitude() LocationDistance { + rv := objc.Call[LocationDistance](l_, objc.Sel("ellipsoidalAltitude")) return rv } -// The time at which this location was determined. [Full Topic] +// The accuracy of the speed value, measured in meters per second. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423589-timestamp?language=objc -func (l_ Location) Timestamp() foundation.Date { - rv := objc.Call[foundation.Date](l_, objc.Sel("timestamp")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/3524340-speedaccuracy?language=objc +func (l_ Location) SpeedAccuracy() LocationSpeedAccuracy { + rv := objc.Call[LocationSpeedAccuracy](l_, objc.Sel("speedAccuracy")) return rv } @@ -225,18 +183,18 @@ func (l_ Location) VerticalAccuracy() LocationAccuracy { return rv } -// The altitude as a height above the World Geodetic System 1984 (WGS84) ellipsoid, measured in meters. [Full Topic] +// The time at which this location was determined. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/3861801-ellipsoidalaltitude?language=objc -func (l_ Location) EllipsoidalAltitude() LocationDistance { - rv := objc.Call[LocationDistance](l_, objc.Sel("ellipsoidalAltitude")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1423589-timestamp?language=objc +func (l_ Location) Timestamp() foundation.Date { + rv := objc.Call[foundation.Date](l_, objc.Sel("timestamp")) return rv } -// The accuracy of the course value, measured in degrees. [Full Topic] +// Information about the source that provides the location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/3524338-courseaccuracy?language=objc -func (l_ Location) CourseAccuracy() LocationDirectionAccuracy { - rv := objc.Call[LocationDirectionAccuracy](l_, objc.Sel("courseAccuracy")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/3861803-sourceinformation?language=objc +func (l_ Location) SourceInformation() LocationSourceInformation { + rv := objc.Call[LocationSourceInformation](l_, objc.Sel("sourceInformation")) return rv } diff --git a/macos/corelocation/location_manager.gen.go b/macos/corelocation/location_manager.gen.go index 01657d67..1e552745 100644 --- a/macos/corelocation/location_manager.gen.go +++ b/macos/corelocation/location_manager.gen.go @@ -20,42 +20,41 @@ type _LocationManagerClass struct { type ILocationManager interface { objc.IObject StopUpdatingLocation() - DismissHeadingCalibrationDisplay() - StopMonitoringVisits() - RequestWhenInUseAuthorization() + RequestAlwaysAuthorization() StartMonitoringVisits() + StopMonitoringSignificantLocationChanges() + RequestLocation() StartMonitoringSignificantLocationChanges() + DismissHeadingCalibrationDisplay() StartUpdatingHeading() - RequestAlwaysAuthorization() - StopMonitoringSignificantLocationChanges() - RequestTemporaryFullAccuracyAuthorizationWithPurposeKey(purposeKey string) - RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion(purposeKey string, completion func(arg0 foundation.Error)) + RequestWhenInUseAuthorization() + StopMonitoringVisits() StartUpdatingLocation() - RequestLocation() - MaximumRegionMonitoringDistance() LocationDistance + RequestTemporaryFullAccuracyAuthorizationWithPurposeKey(purposeKey string) + Location() Location + ActivityType() ActivityType + SetActivityType(value ActivityType) + IsAuthorizedForWidgetUpdates() bool + AuthorizationStatus() AuthorizationStatus + Delegate() LocationManagerDelegateObject + SetDelegate(value PLocationManagerDelegate) + SetDelegateObject(valueObject objc.IObject) DistanceFilter() LocationDistance SetDistanceFilter(value LocationDistance) - AuthorizationStatus() AuthorizationStatus - IsAuthorizedForWidgetUpdates() bool - HeadingOrientation() DeviceOrientation - SetHeadingOrientation(value DeviceOrientation) - MonitoredRegions() foundation.Set + PausesLocationUpdatesAutomatically() bool + SetPausesLocationUpdatesAutomatically(value bool) AccuracyAuthorization() AccuracyAuthorization - Location() Location + DesiredAccuracy() LocationAccuracy + SetDesiredAccuracy(value LocationAccuracy) HeadingFilter() LocationDegrees SetHeadingFilter(value LocationDegrees) + MaximumRegionMonitoringDistance() LocationDistance + Heading() Heading AllowsBackgroundLocationUpdates() bool SetAllowsBackgroundLocationUpdates(value bool) - DesiredAccuracy() LocationAccuracy - SetDesiredAccuracy(value LocationAccuracy) - Heading() Heading - Delegate() LocationManagerDelegateObject - SetDelegate(value PLocationManagerDelegate) - SetDelegateObject(valueObject objc.IObject) - PausesLocationUpdatesAutomatically() bool - SetPausesLocationUpdatesAutomatically(value bool) - ActivityType() ActivityType - SetActivityType(value ActivityType) + MonitoredRegions() foundation.Set + HeadingOrientation() DeviceOrientation + SetHeadingOrientation(value DeviceOrientation) } // The object that you use to start and stop the delivery of location-related events to your app. [Full Topic] @@ -113,84 +112,76 @@ func (l_ LocationManager) StopUpdatingLocation() { objc.Call[objc.Void](l_, objc.Sel("stopUpdatingLocation")) } -// Returns a Boolean value indicating whether the device supports ranging of beacons that use the iBeacon protocol. [Full Topic] +// Requests the user’s permission to use location services regardless of whether the app is in use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620549-israngingavailable?language=objc -func (lc _LocationManagerClass) IsRangingAvailable() bool { - rv := objc.Call[bool](lc, objc.Sel("isRangingAvailable")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620551-requestalwaysauthorization?language=objc +func (l_ LocationManager) RequestAlwaysAuthorization() { + objc.Call[objc.Void](l_, objc.Sel("requestAlwaysAuthorization")) } -// Returns a Boolean value indicating whether the device supports ranging of beacons that use the iBeacon protocol. [Full Topic] +// Starts the delivery of visit-related events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620549-israngingavailable?language=objc -func LocationManager_IsRangingAvailable() bool { - return LocationManagerClass.IsRangingAvailable() +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1618692-startmonitoringvisits?language=objc +func (l_ LocationManager) StartMonitoringVisits() { + objc.Call[objc.Void](l_, objc.Sel("startMonitoringVisits")) } -// Dismisses the heading calibration view from the screen immediately. [Full Topic] +// Stops the delivery of location events based on significant location changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620563-dismissheadingcalibrationdisplay?language=objc -func (l_ LocationManager) DismissHeadingCalibrationDisplay() { - objc.Call[objc.Void](l_, objc.Sel("dismissHeadingCalibrationDisplay")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423679-stopmonitoringsignificantlocatio?language=objc +func (l_ LocationManager) StopMonitoringSignificantLocationChanges() { + objc.Call[objc.Void](l_, objc.Sel("stopMonitoringSignificantLocationChanges")) } -// Stops the delivery of visit-related events. [Full Topic] +// Requests the one-time delivery of the user’s current location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1618693-stopmonitoringvisits?language=objc -func (l_ LocationManager) StopMonitoringVisits() { - objc.Call[objc.Void](l_, objc.Sel("stopMonitoringVisits")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620548-requestlocation?language=objc +func (l_ LocationManager) RequestLocation() { + objc.Call[objc.Void](l_, objc.Sel("requestLocation")) } -// Requests the user’s permission to use location services while the app is in use. [Full Topic] +// Starts the generation of updates based on significant location changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620562-requestwheninuseauthorization?language=objc -func (l_ LocationManager) RequestWhenInUseAuthorization() { - objc.Call[objc.Void](l_, objc.Sel("requestWhenInUseAuthorization")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423531-startmonitoringsignificantlocati?language=objc +func (l_ LocationManager) StartMonitoringSignificantLocationChanges() { + objc.Call[objc.Void](l_, objc.Sel("startMonitoringSignificantLocationChanges")) } -// Returns a Boolean value indicating whether the location manager is able to generate heading-related events. [Full Topic] +// Returns a Boolean value indicating whether the device supports region monitoring using the specified class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423502-headingavailable?language=objc -func (lc _LocationManagerClass) HeadingAvailable() bool { - rv := objc.Call[bool](lc, objc.Sel("headingAvailable")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423654-ismonitoringavailableforclass?language=objc +func (lc _LocationManagerClass) IsMonitoringAvailableForClass(regionClass objc.IClass) bool { + rv := objc.Call[bool](lc, objc.Sel("isMonitoringAvailableForClass:"), regionClass) return rv } -// Returns a Boolean value indicating whether the location manager is able to generate heading-related events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423502-headingavailable?language=objc -func LocationManager_HeadingAvailable() bool { - return LocationManagerClass.HeadingAvailable() -} - -// Starts the delivery of visit-related events. [Full Topic] +// Returns a Boolean value indicating whether the device supports region monitoring using the specified class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1618692-startmonitoringvisits?language=objc -func (l_ LocationManager) StartMonitoringVisits() { - objc.Call[objc.Void](l_, objc.Sel("startMonitoringVisits")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423654-ismonitoringavailableforclass?language=objc +func LocationManager_IsMonitoringAvailableForClass(regionClass objc.IClass) bool { + return LocationManagerClass.IsMonitoringAvailableForClass(regionClass) } -// Starts the generation of updates based on significant location changes. [Full Topic] +// Dismisses the heading calibration view from the screen immediately. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423531-startmonitoringsignificantlocati?language=objc -func (l_ LocationManager) StartMonitoringSignificantLocationChanges() { - objc.Call[objc.Void](l_, objc.Sel("startMonitoringSignificantLocationChanges")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620563-dismissheadingcalibrationdisplay?language=objc +func (l_ LocationManager) DismissHeadingCalibrationDisplay() { + objc.Call[objc.Void](l_, objc.Sel("dismissHeadingCalibrationDisplay")) } -// Returns a Boolean value indicating whether location services are enabled on the device. [Full Topic] +// Returns a Boolean value indicating whether the device supports ranging of beacons that use the iBeacon protocol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423648-locationservicesenabled?language=objc -func (lc _LocationManagerClass) LocationServicesEnabled() bool { - rv := objc.Call[bool](lc, objc.Sel("locationServicesEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620549-israngingavailable?language=objc +func (lc _LocationManagerClass) IsRangingAvailable() bool { + rv := objc.Call[bool](lc, objc.Sel("isRangingAvailable")) return rv } -// Returns a Boolean value indicating whether location services are enabled on the device. [Full Topic] +// Returns a Boolean value indicating whether the device supports ranging of beacons that use the iBeacon protocol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423648-locationservicesenabled?language=objc -func LocationManager_LocationServicesEnabled() bool { - return LocationManagerClass.LocationServicesEnabled() +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620549-israngingavailable?language=objc +func LocationManager_IsRangingAvailable() bool { + return LocationManagerClass.IsRangingAvailable() } // Starts the generation of updates that report the user’s current heading. [Full Topic] @@ -200,18 +191,25 @@ func (l_ LocationManager) StartUpdatingHeading() { objc.Call[objc.Void](l_, objc.Sel("startUpdatingHeading")) } -// Requests the user’s permission to use location services regardless of whether the app is in use. [Full Topic] +// Requests the user’s permission to use location services while the app is in use. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620551-requestalwaysauthorization?language=objc -func (l_ LocationManager) RequestAlwaysAuthorization() { - objc.Call[objc.Void](l_, objc.Sel("requestAlwaysAuthorization")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620562-requestwheninuseauthorization?language=objc +func (l_ LocationManager) RequestWhenInUseAuthorization() { + objc.Call[objc.Void](l_, objc.Sel("requestWhenInUseAuthorization")) } -// Stops the delivery of location events based on significant location changes. [Full Topic] +// Stops the delivery of visit-related events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423679-stopmonitoringsignificantlocatio?language=objc -func (l_ LocationManager) StopMonitoringSignificantLocationChanges() { - objc.Call[objc.Void](l_, objc.Sel("stopMonitoringSignificantLocationChanges")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1618693-stopmonitoringvisits?language=objc +func (l_ LocationManager) StopMonitoringVisits() { + objc.Call[objc.Void](l_, objc.Sel("stopMonitoringVisits")) +} + +// Starts the generation of updates that report the user’s current location. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423750-startupdatinglocation?language=objc +func (l_ LocationManager) StartUpdatingLocation() { + objc.Call[objc.Void](l_, objc.Sel("startUpdatingLocation")) } // Requests permission to temporarily use location services with full accuracy. [Full Topic] @@ -221,50 +219,69 @@ func (l_ LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKe objc.Call[objc.Void](l_, objc.Sel("requestTemporaryFullAccuracyAuthorizationWithPurposeKey:"), purposeKey) } -// Requests permission to temporarily use location services with full accuracy and reports the results to the provided completion handler. [Full Topic] +// The most recently retrieved user location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/3600217-requesttemporaryfullaccuracyauth?language=objc -func (l_ LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion(purposeKey string, completion func(arg0 foundation.Error)) { - objc.Call[objc.Void](l_, objc.Sel("requestTemporaryFullAccuracyAuthorizationWithPurposeKey:completion:"), purposeKey, completion) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423687-location?language=objc +func (l_ LocationManager) Location() Location { + rv := objc.Call[Location](l_, objc.Sel("location")) + return rv } -// Starts the generation of updates that report the user’s current location. [Full Topic] +// The type of activity the app expects the user to typically perform while in the app’s location session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423750-startupdatinglocation?language=objc -func (l_ LocationManager) StartUpdatingLocation() { - objc.Call[objc.Void](l_, objc.Sel("startUpdatingLocation")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620567-activitytype?language=objc +func (l_ LocationManager) ActivityType() ActivityType { + rv := objc.Call[ActivityType](l_, objc.Sel("activityType")) + return rv } -// Returns a Boolean value indicating whether the device supports region monitoring using the specified class. [Full Topic] +// The type of activity the app expects the user to typically perform while in the app’s location session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423654-ismonitoringavailableforclass?language=objc -func (lc _LocationManagerClass) IsMonitoringAvailableForClass(regionClass objc.IClass) bool { - rv := objc.Call[bool](lc, objc.Sel("isMonitoringAvailableForClass:"), regionClass) - return rv +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620567-activitytype?language=objc +func (l_ LocationManager) SetActivityType(value ActivityType) { + objc.Call[objc.Void](l_, objc.Sel("setActivityType:"), value) } -// Returns a Boolean value indicating whether the device supports region monitoring using the specified class. [Full Topic] +// A Boolean value that indicates whether a widget is eligible to receive location updates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423654-ismonitoringavailableforclass?language=objc -func LocationManager_IsMonitoringAvailableForClass(regionClass objc.IClass) bool { - return LocationManagerClass.IsMonitoringAvailableForClass(regionClass) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/3675588-authorizedforwidgetupdates?language=objc +func (l_ LocationManager) IsAuthorizedForWidgetUpdates() bool { + rv := objc.Call[bool](l_, objc.Sel("isAuthorizedForWidgetUpdates")) + return rv } -// Requests the one-time delivery of the user’s current location. [Full Topic] +// The current authorization status for the app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620548-requestlocation?language=objc -func (l_ LocationManager) RequestLocation() { - objc.Call[objc.Void](l_, objc.Sel("requestLocation")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/3563952-authorizationstatus?language=objc +func (l_ LocationManager) AuthorizationStatus() AuthorizationStatus { + rv := objc.Call[AuthorizationStatus](l_, objc.Sel("authorizationStatus")) + return rv } -// The largest boundary distance that can be assigned to a region. [Full Topic] +// The delegate object to receive update events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423740-maximumregionmonitoringdistance?language=objc -func (l_ LocationManager) MaximumRegionMonitoringDistance() LocationDistance { - rv := objc.Call[LocationDistance](l_, objc.Sel("maximumRegionMonitoringDistance")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423792-delegate?language=objc +func (l_ LocationManager) Delegate() LocationManagerDelegateObject { + rv := objc.Call[LocationManagerDelegateObject](l_, objc.Sel("delegate")) return rv } +// The delegate object to receive update events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423792-delegate?language=objc +func (l_ LocationManager) SetDelegate(value PLocationManagerDelegate) { + po0 := objc.WrapAsProtocol("CLLocationManagerDelegate", value) + objc.SetAssociatedObject(l_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), po0) +} + +// The delegate object to receive update events. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423792-delegate?language=objc +func (l_ LocationManager) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), valueObject) +} + // The minimum distance in meters the device must move horizontally before an update event is generated. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423500-distancefilter?language=objc @@ -280,43 +297,19 @@ func (l_ LocationManager) SetDistanceFilter(value LocationDistance) { objc.Call[objc.Void](l_, objc.Sel("setDistanceFilter:"), value) } -// The current authorization status for the app. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/3563952-authorizationstatus?language=objc -func (l_ LocationManager) AuthorizationStatus() AuthorizationStatus { - rv := objc.Call[AuthorizationStatus](l_, objc.Sel("authorizationStatus")) - return rv -} - -// A Boolean value that indicates whether a widget is eligible to receive location updates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/3675588-authorizedforwidgetupdates?language=objc -func (l_ LocationManager) IsAuthorizedForWidgetUpdates() bool { - rv := objc.Call[bool](l_, objc.Sel("isAuthorizedForWidgetUpdates")) - return rv -} - -// The device orientation to use when computing heading values. [Full Topic] +// A Boolean value that indicates whether the location-manager object may pause location updates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620556-headingorientation?language=objc -func (l_ LocationManager) HeadingOrientation() DeviceOrientation { - rv := objc.Call[DeviceOrientation](l_, objc.Sel("headingOrientation")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620553-pauseslocationupdatesautomatical?language=objc +func (l_ LocationManager) PausesLocationUpdatesAutomatically() bool { + rv := objc.Call[bool](l_, objc.Sel("pausesLocationUpdatesAutomatically")) return rv } -// The device orientation to use when computing heading values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620556-headingorientation?language=objc -func (l_ LocationManager) SetHeadingOrientation(value DeviceOrientation) { - objc.Call[objc.Void](l_, objc.Sel("setHeadingOrientation:"), value) -} - -// The set of shared regions monitored by all location-manager objects. [Full Topic] +// A Boolean value that indicates whether the location-manager object may pause location updates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423790-monitoredregions?language=objc -func (l_ LocationManager) MonitoredRegions() foundation.Set { - rv := objc.Call[foundation.Set](l_, objc.Sel("monitoredRegions")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620553-pauseslocationupdatesautomatical?language=objc +func (l_ LocationManager) SetPausesLocationUpdatesAutomatically(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setPausesLocationUpdatesAutomatically:"), value) } // A value that indicates the level of location accuracy the app has permission to use. [Full Topic] @@ -327,14 +320,21 @@ func (l_ LocationManager) AccuracyAuthorization() AccuracyAuthorization { return rv } -// The most recently retrieved user location. [Full Topic] +// The accuracy of the location data that your app wants to receive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423687-location?language=objc -func (l_ LocationManager) Location() Location { - rv := objc.Call[Location](l_, objc.Sel("location")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423836-desiredaccuracy?language=objc +func (l_ LocationManager) DesiredAccuracy() LocationAccuracy { + rv := objc.Call[LocationAccuracy](l_, objc.Sel("desiredAccuracy")) return rv } +// The accuracy of the location data that your app wants to receive. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423836-desiredaccuracy?language=objc +func (l_ LocationManager) SetDesiredAccuracy(value LocationAccuracy) { + objc.Call[objc.Void](l_, objc.Sel("setDesiredAccuracy:"), value) +} + // The minimum angular change in degrees required to generate new heading events. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620550-headingfilter?language=objc @@ -350,36 +350,14 @@ func (l_ LocationManager) SetHeadingFilter(value LocationDegrees) { objc.Call[objc.Void](l_, objc.Sel("setHeadingFilter:"), value) } -// A Boolean value that indicates whether the app receives location updates when running in the background. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620568-allowsbackgroundlocationupdates?language=objc -func (l_ LocationManager) AllowsBackgroundLocationUpdates() bool { - rv := objc.Call[bool](l_, objc.Sel("allowsBackgroundLocationUpdates")) - return rv -} - -// A Boolean value that indicates whether the app receives location updates when running in the background. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620568-allowsbackgroundlocationupdates?language=objc -func (l_ LocationManager) SetAllowsBackgroundLocationUpdates(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setAllowsBackgroundLocationUpdates:"), value) -} - -// The accuracy of the location data that your app wants to receive. [Full Topic] +// The largest boundary distance that can be assigned to a region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423836-desiredaccuracy?language=objc -func (l_ LocationManager) DesiredAccuracy() LocationAccuracy { - rv := objc.Call[LocationAccuracy](l_, objc.Sel("desiredAccuracy")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423740-maximumregionmonitoringdistance?language=objc +func (l_ LocationManager) MaximumRegionMonitoringDistance() LocationDistance { + rv := objc.Call[LocationDistance](l_, objc.Sel("maximumRegionMonitoringDistance")) return rv } -// The accuracy of the location data that your app wants to receive. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423836-desiredaccuracy?language=objc -func (l_ LocationManager) SetDesiredAccuracy(value LocationAccuracy) { - objc.Call[objc.Void](l_, objc.Sel("setDesiredAccuracy:"), value) -} - // The most recently reported heading. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620555-heading?language=objc @@ -388,56 +366,40 @@ func (l_ LocationManager) Heading() Heading { return rv } -// The delegate object to receive update events. [Full Topic] +// A Boolean value that indicates whether the app receives location updates when running in the background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423792-delegate?language=objc -func (l_ LocationManager) Delegate() LocationManagerDelegateObject { - rv := objc.Call[LocationManagerDelegateObject](l_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620568-allowsbackgroundlocationupdates?language=objc +func (l_ LocationManager) AllowsBackgroundLocationUpdates() bool { + rv := objc.Call[bool](l_, objc.Sel("allowsBackgroundLocationUpdates")) return rv } -// The delegate object to receive update events. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423792-delegate?language=objc -func (l_ LocationManager) SetDelegate(value PLocationManagerDelegate) { - po0 := objc.WrapAsProtocol("CLLocationManagerDelegate", value) - objc.SetAssociatedObject(l_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), po0) -} - -// The delegate object to receive update events. [Full Topic] +// A Boolean value that indicates whether the app receives location updates when running in the background. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423792-delegate?language=objc -func (l_ LocationManager) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620568-allowsbackgroundlocationupdates?language=objc +func (l_ LocationManager) SetAllowsBackgroundLocationUpdates(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setAllowsBackgroundLocationUpdates:"), value) } -// A Boolean value that indicates whether the location-manager object may pause location updates. [Full Topic] +// The set of shared regions monitored by all location-manager objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620553-pauseslocationupdatesautomatical?language=objc -func (l_ LocationManager) PausesLocationUpdatesAutomatically() bool { - rv := objc.Call[bool](l_, objc.Sel("pausesLocationUpdatesAutomatically")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423790-monitoredregions?language=objc +func (l_ LocationManager) MonitoredRegions() foundation.Set { + rv := objc.Call[foundation.Set](l_, objc.Sel("monitoredRegions")) return rv } -// A Boolean value that indicates whether the location-manager object may pause location updates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620553-pauseslocationupdatesautomatical?language=objc -func (l_ LocationManager) SetPausesLocationUpdatesAutomatically(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setPausesLocationUpdatesAutomatically:"), value) -} - -// The type of activity the app expects the user to typically perform while in the app’s location session. [Full Topic] +// The device orientation to use when computing heading values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620567-activitytype?language=objc -func (l_ LocationManager) ActivityType() ActivityType { - rv := objc.Call[ActivityType](l_, objc.Sel("activityType")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620556-headingorientation?language=objc +func (l_ LocationManager) HeadingOrientation() DeviceOrientation { + rv := objc.Call[DeviceOrientation](l_, objc.Sel("headingOrientation")) return rv } -// The type of activity the app expects the user to typically perform while in the app’s location session. [Full Topic] +// The device orientation to use when computing heading values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620567-activitytype?language=objc -func (l_ LocationManager) SetActivityType(value ActivityType) { - objc.Call[objc.Void](l_, objc.Sel("setActivityType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620556-headingorientation?language=objc +func (l_ LocationManager) SetHeadingOrientation(value DeviceOrientation) { + objc.Call[objc.Void](l_, objc.Sel("setHeadingOrientation:"), value) } diff --git a/macos/corelocation/location_manager_delegate.gen.go b/macos/corelocation/location_manager_delegate.gen.go index 4cd7635e..44f5aafd 100644 --- a/macos/corelocation/location_manager_delegate.gen.go +++ b/macos/corelocation/location_manager_delegate.gen.go @@ -3,7 +3,6 @@ package corelocation import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -12,16 +11,8 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate?language=objc type PLocationManagerDelegate interface { // optional - LocationManagerDidExitRegion(manager LocationManager, region Region) - HasLocationManagerDidExitRegion() bool - - // optional - LocationManagerDidFailWithError(manager LocationManager, error foundation.Error) - HasLocationManagerDidFailWithError() bool - - // optional - LocationManagerDidUpdateLocations(manager LocationManager, locations []Location) - HasLocationManagerDidUpdateLocations() bool + LocationManagerDidResumeLocationUpdates(manager LocationManager) + HasLocationManagerDidResumeLocationUpdates() bool // optional LocationManagerShouldDisplayHeadingCalibration(manager LocationManager) bool @@ -31,111 +22,40 @@ type PLocationManagerDelegate interface { LocationManagerDidChangeAuthorization(manager LocationManager) HasLocationManagerDidChangeAuthorization() bool - // optional - LocationManagerDidDetermineStateForRegion(manager LocationManager, state RegionState, region Region) - HasLocationManagerDidDetermineStateForRegion() bool - - // optional - LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region) - HasLocationManagerDidStartMonitoringForRegion() bool - - // optional - LocationManagerDidFinishDeferredUpdatesWithError(manager LocationManager, error foundation.Error) - HasLocationManagerDidFinishDeferredUpdatesWithError() bool - // optional LocationManagerDidPauseLocationUpdates(manager LocationManager) HasLocationManagerDidPauseLocationUpdates() bool // optional - LocationManagerDidVisit(manager LocationManager, visit Visit) - HasLocationManagerDidVisit() bool - - // optional - LocationManagerDidUpdateHeading(manager LocationManager, newHeading Heading) - HasLocationManagerDidUpdateHeading() bool - - // optional - LocationManagerMonitoringDidFailForRegionWithError(manager LocationManager, region Region, error foundation.Error) - HasLocationManagerMonitoringDidFailForRegionWithError() bool - - // optional - LocationManagerDidResumeLocationUpdates(manager LocationManager) - HasLocationManagerDidResumeLocationUpdates() bool - - // optional - LocationManagerDidEnterRegion(manager LocationManager, region Region) - HasLocationManagerDidEnterRegion() bool + LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region) + HasLocationManagerDidStartMonitoringForRegion() bool } // A delegate implementation builder for the [PLocationManagerDelegate] protocol. type LocationManagerDelegate struct { - _LocationManagerDidExitRegion func(manager LocationManager, region Region) - _LocationManagerDidFailWithError func(manager LocationManager, error foundation.Error) - _LocationManagerDidUpdateLocations func(manager LocationManager, locations []Location) - _LocationManagerShouldDisplayHeadingCalibration func(manager LocationManager) bool - _LocationManagerDidChangeAuthorization func(manager LocationManager) - _LocationManagerDidDetermineStateForRegion func(manager LocationManager, state RegionState, region Region) - _LocationManagerDidStartMonitoringForRegion func(manager LocationManager, region Region) - _LocationManagerDidFinishDeferredUpdatesWithError func(manager LocationManager, error foundation.Error) - _LocationManagerDidPauseLocationUpdates func(manager LocationManager) - _LocationManagerDidVisit func(manager LocationManager, visit Visit) - _LocationManagerDidUpdateHeading func(manager LocationManager, newHeading Heading) - _LocationManagerMonitoringDidFailForRegionWithError func(manager LocationManager, region Region, error foundation.Error) - _LocationManagerDidResumeLocationUpdates func(manager LocationManager) - _LocationManagerDidEnterRegion func(manager LocationManager, region Region) -} - -func (di *LocationManagerDelegate) HasLocationManagerDidExitRegion() bool { - return di._LocationManagerDidExitRegion != nil -} - -// Tells the delegate that the user left the specified region. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423630-locationmanager?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidExitRegion(f func(manager LocationManager, region Region)) { - di._LocationManagerDidExitRegion = f -} - -// Tells the delegate that the user left the specified region. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423630-locationmanager?language=objc -func (di *LocationManagerDelegate) LocationManagerDidExitRegion(manager LocationManager, region Region) { - di._LocationManagerDidExitRegion(manager, region) -} -func (di *LocationManagerDelegate) HasLocationManagerDidFailWithError() bool { - return di._LocationManagerDidFailWithError != nil -} - -// Tells the delegate that the location manager was unable to retrieve a location value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423786-locationmanager?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidFailWithError(f func(manager LocationManager, error foundation.Error)) { - di._LocationManagerDidFailWithError = f + _LocationManagerDidResumeLocationUpdates func(manager LocationManager) + _LocationManagerShouldDisplayHeadingCalibration func(manager LocationManager) bool + _LocationManagerDidChangeAuthorization func(manager LocationManager) + _LocationManagerDidPauseLocationUpdates func(manager LocationManager) + _LocationManagerDidStartMonitoringForRegion func(manager LocationManager, region Region) } -// Tells the delegate that the location manager was unable to retrieve a location value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423786-locationmanager?language=objc -func (di *LocationManagerDelegate) LocationManagerDidFailWithError(manager LocationManager, error foundation.Error) { - di._LocationManagerDidFailWithError(manager, error) -} -func (di *LocationManagerDelegate) HasLocationManagerDidUpdateLocations() bool { - return di._LocationManagerDidUpdateLocations != nil +func (di *LocationManagerDelegate) HasLocationManagerDidResumeLocationUpdates() bool { + return di._LocationManagerDidResumeLocationUpdates != nil } -// Tells the delegate that new location data is available. [Full Topic] +// Tells the delegate that the delivery of location updates has resumed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423615-locationmanager?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidUpdateLocations(f func(manager LocationManager, locations []Location)) { - di._LocationManagerDidUpdateLocations = f +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621512-locationmanagerdidresumelocation?language=objc +func (di *LocationManagerDelegate) SetLocationManagerDidResumeLocationUpdates(f func(manager LocationManager)) { + di._LocationManagerDidResumeLocationUpdates = f } -// Tells the delegate that new location data is available. [Full Topic] +// Tells the delegate that the delivery of location updates has resumed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423615-locationmanager?language=objc -func (di *LocationManagerDelegate) LocationManagerDidUpdateLocations(manager LocationManager, locations []Location) { - di._LocationManagerDidUpdateLocations(manager, locations) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621512-locationmanagerdidresumelocation?language=objc +func (di *LocationManagerDelegate) LocationManagerDidResumeLocationUpdates(manager LocationManager) { + di._LocationManagerDidResumeLocationUpdates(manager) } func (di *LocationManagerDelegate) HasLocationManagerShouldDisplayHeadingCalibration() bool { return di._LocationManagerShouldDisplayHeadingCalibration != nil @@ -171,57 +91,6 @@ func (di *LocationManagerDelegate) SetLocationManagerDidChangeAuthorization(f fu func (di *LocationManagerDelegate) LocationManagerDidChangeAuthorization(manager LocationManager) { di._LocationManagerDidChangeAuthorization(manager) } -func (di *LocationManagerDelegate) HasLocationManagerDidDetermineStateForRegion() bool { - return di._LocationManagerDidDetermineStateForRegion != nil -} - -// Tells the delegate about the state of the specified region. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423570-locationmanager?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidDetermineStateForRegion(f func(manager LocationManager, state RegionState, region Region)) { - di._LocationManagerDidDetermineStateForRegion = f -} - -// Tells the delegate about the state of the specified region. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423570-locationmanager?language=objc -func (di *LocationManagerDelegate) LocationManagerDidDetermineStateForRegion(manager LocationManager, state RegionState, region Region) { - di._LocationManagerDidDetermineStateForRegion(manager, state, region) -} -func (di *LocationManagerDelegate) HasLocationManagerDidStartMonitoringForRegion() bool { - return di._LocationManagerDidStartMonitoringForRegion != nil -} - -// Tells the delegate that a new region is being monitored. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423842-locationmanager?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidStartMonitoringForRegion(f func(manager LocationManager, region Region)) { - di._LocationManagerDidStartMonitoringForRegion = f -} - -// Tells the delegate that a new region is being monitored. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423842-locationmanager?language=objc -func (di *LocationManagerDelegate) LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region) { - di._LocationManagerDidStartMonitoringForRegion(manager, region) -} -func (di *LocationManagerDelegate) HasLocationManagerDidFinishDeferredUpdatesWithError() bool { - return di._LocationManagerDidFinishDeferredUpdatesWithError != nil -} - -// Tells the delegate that updates will no longer be deferred. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423537-locationmanager?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidFinishDeferredUpdatesWithError(f func(manager LocationManager, error foundation.Error)) { - di._LocationManagerDidFinishDeferredUpdatesWithError = f -} - -// Tells the delegate that updates will no longer be deferred. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423537-locationmanager?language=objc -func (di *LocationManagerDelegate) LocationManagerDidFinishDeferredUpdatesWithError(manager LocationManager, error foundation.Error) { - di._LocationManagerDidFinishDeferredUpdatesWithError(manager, error) -} func (di *LocationManagerDelegate) HasLocationManagerDidPauseLocationUpdates() bool { return di._LocationManagerDidPauseLocationUpdates != nil } @@ -239,90 +108,22 @@ func (di *LocationManagerDelegate) SetLocationManagerDidPauseLocationUpdates(f f func (di *LocationManagerDelegate) LocationManagerDidPauseLocationUpdates(manager LocationManager) { di._LocationManagerDidPauseLocationUpdates(manager) } -func (di *LocationManagerDelegate) HasLocationManagerDidVisit() bool { - return di._LocationManagerDidVisit != nil -} - -// Tells the delegate that a new visit-related event was received. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621529-locationmanager?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidVisit(f func(manager LocationManager, visit Visit)) { - di._LocationManagerDidVisit = f -} - -// Tells the delegate that a new visit-related event was received. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621529-locationmanager?language=objc -func (di *LocationManagerDelegate) LocationManagerDidVisit(manager LocationManager, visit Visit) { - di._LocationManagerDidVisit(manager, visit) -} -func (di *LocationManagerDelegate) HasLocationManagerDidUpdateHeading() bool { - return di._LocationManagerDidUpdateHeading != nil -} - -// Tells the delegate that the location manager received updated heading information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621555-locationmanager?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidUpdateHeading(f func(manager LocationManager, newHeading Heading)) { - di._LocationManagerDidUpdateHeading = f -} - -// Tells the delegate that the location manager received updated heading information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621555-locationmanager?language=objc -func (di *LocationManagerDelegate) LocationManagerDidUpdateHeading(manager LocationManager, newHeading Heading) { - di._LocationManagerDidUpdateHeading(manager, newHeading) -} -func (di *LocationManagerDelegate) HasLocationManagerMonitoringDidFailForRegionWithError() bool { - return di._LocationManagerMonitoringDidFailForRegionWithError != nil -} - -// Tells the delegate that a region monitoring error occurred. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423720-locationmanager?language=objc -func (di *LocationManagerDelegate) SetLocationManagerMonitoringDidFailForRegionWithError(f func(manager LocationManager, region Region, error foundation.Error)) { - di._LocationManagerMonitoringDidFailForRegionWithError = f -} - -// Tells the delegate that a region monitoring error occurred. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423720-locationmanager?language=objc -func (di *LocationManagerDelegate) LocationManagerMonitoringDidFailForRegionWithError(manager LocationManager, region Region, error foundation.Error) { - di._LocationManagerMonitoringDidFailForRegionWithError(manager, region, error) -} -func (di *LocationManagerDelegate) HasLocationManagerDidResumeLocationUpdates() bool { - return di._LocationManagerDidResumeLocationUpdates != nil -} - -// Tells the delegate that the delivery of location updates has resumed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621512-locationmanagerdidresumelocation?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidResumeLocationUpdates(f func(manager LocationManager)) { - di._LocationManagerDidResumeLocationUpdates = f -} - -// Tells the delegate that the delivery of location updates has resumed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621512-locationmanagerdidresumelocation?language=objc -func (di *LocationManagerDelegate) LocationManagerDidResumeLocationUpdates(manager LocationManager) { - di._LocationManagerDidResumeLocationUpdates(manager) -} -func (di *LocationManagerDelegate) HasLocationManagerDidEnterRegion() bool { - return di._LocationManagerDidEnterRegion != nil +func (di *LocationManagerDelegate) HasLocationManagerDidStartMonitoringForRegion() bool { + return di._LocationManagerDidStartMonitoringForRegion != nil } -// Tells the delegate that the user entered the specified region. [Full Topic] +// Tells the delegate that a new region is being monitored. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423560-locationmanager?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidEnterRegion(f func(manager LocationManager, region Region)) { - di._LocationManagerDidEnterRegion = f +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423842-locationmanager?language=objc +func (di *LocationManagerDelegate) SetLocationManagerDidStartMonitoringForRegion(f func(manager LocationManager, region Region)) { + di._LocationManagerDidStartMonitoringForRegion = f } -// Tells the delegate that the user entered the specified region. [Full Topic] +// Tells the delegate that a new region is being monitored. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423560-locationmanager?language=objc -func (di *LocationManagerDelegate) LocationManagerDidEnterRegion(manager LocationManager, region Region) { - di._LocationManagerDidEnterRegion(manager, region) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423842-locationmanager?language=objc +func (di *LocationManagerDelegate) LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region) { + di._LocationManagerDidStartMonitoringForRegion(manager, region) } // ensure impl type implements protocol interface @@ -333,37 +134,15 @@ type LocationManagerDelegateObject struct { objc.Object } -func (l_ LocationManagerDelegateObject) HasLocationManagerDidExitRegion() bool { - return l_.RespondsToSelector(objc.Sel("locationManager:didExitRegion:")) -} - -// Tells the delegate that the user left the specified region. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423630-locationmanager?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerDidExitRegion(manager LocationManager, region Region) { - objc.Call[objc.Void](l_, objc.Sel("locationManager:didExitRegion:"), manager, region) -} - -func (l_ LocationManagerDelegateObject) HasLocationManagerDidFailWithError() bool { - return l_.RespondsToSelector(objc.Sel("locationManager:didFailWithError:")) -} - -// Tells the delegate that the location manager was unable to retrieve a location value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423786-locationmanager?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerDidFailWithError(manager LocationManager, error foundation.Error) { - objc.Call[objc.Void](l_, objc.Sel("locationManager:didFailWithError:"), manager, error) -} - -func (l_ LocationManagerDelegateObject) HasLocationManagerDidUpdateLocations() bool { - return l_.RespondsToSelector(objc.Sel("locationManager:didUpdateLocations:")) +func (l_ LocationManagerDelegateObject) HasLocationManagerDidResumeLocationUpdates() bool { + return l_.RespondsToSelector(objc.Sel("locationManagerDidResumeLocationUpdates:")) } -// Tells the delegate that new location data is available. [Full Topic] +// Tells the delegate that the delivery of location updates has resumed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423615-locationmanager?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerDidUpdateLocations(manager LocationManager, locations []Location) { - objc.Call[objc.Void](l_, objc.Sel("locationManager:didUpdateLocations:"), manager, locations) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621512-locationmanagerdidresumelocation?language=objc +func (l_ LocationManagerDelegateObject) LocationManagerDidResumeLocationUpdates(manager LocationManager) { + objc.Call[objc.Void](l_, objc.Sel("locationManagerDidResumeLocationUpdates:"), manager) } func (l_ LocationManagerDelegateObject) HasLocationManagerShouldDisplayHeadingCalibration() bool { @@ -389,39 +168,6 @@ func (l_ LocationManagerDelegateObject) LocationManagerDidChangeAuthorization(ma objc.Call[objc.Void](l_, objc.Sel("locationManagerDidChangeAuthorization:"), manager) } -func (l_ LocationManagerDelegateObject) HasLocationManagerDidDetermineStateForRegion() bool { - return l_.RespondsToSelector(objc.Sel("locationManager:didDetermineState:forRegion:")) -} - -// Tells the delegate about the state of the specified region. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423570-locationmanager?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerDidDetermineStateForRegion(manager LocationManager, state RegionState, region Region) { - objc.Call[objc.Void](l_, objc.Sel("locationManager:didDetermineState:forRegion:"), manager, state, region) -} - -func (l_ LocationManagerDelegateObject) HasLocationManagerDidStartMonitoringForRegion() bool { - return l_.RespondsToSelector(objc.Sel("locationManager:didStartMonitoringForRegion:")) -} - -// Tells the delegate that a new region is being monitored. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423842-locationmanager?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region) { - objc.Call[objc.Void](l_, objc.Sel("locationManager:didStartMonitoringForRegion:"), manager, region) -} - -func (l_ LocationManagerDelegateObject) HasLocationManagerDidFinishDeferredUpdatesWithError() bool { - return l_.RespondsToSelector(objc.Sel("locationManager:didFinishDeferredUpdatesWithError:")) -} - -// Tells the delegate that updates will no longer be deferred. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423537-locationmanager?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerDidFinishDeferredUpdatesWithError(manager LocationManager, error foundation.Error) { - objc.Call[objc.Void](l_, objc.Sel("locationManager:didFinishDeferredUpdatesWithError:"), manager, error) -} - func (l_ LocationManagerDelegateObject) HasLocationManagerDidPauseLocationUpdates() bool { return l_.RespondsToSelector(objc.Sel("locationManagerDidPauseLocationUpdates:")) } @@ -433,57 +179,13 @@ func (l_ LocationManagerDelegateObject) LocationManagerDidPauseLocationUpdates(m objc.Call[objc.Void](l_, objc.Sel("locationManagerDidPauseLocationUpdates:"), manager) } -func (l_ LocationManagerDelegateObject) HasLocationManagerDidVisit() bool { - return l_.RespondsToSelector(objc.Sel("locationManager:didVisit:")) -} - -// Tells the delegate that a new visit-related event was received. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621529-locationmanager?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerDidVisit(manager LocationManager, visit Visit) { - objc.Call[objc.Void](l_, objc.Sel("locationManager:didVisit:"), manager, visit) -} - -func (l_ LocationManagerDelegateObject) HasLocationManagerDidUpdateHeading() bool { - return l_.RespondsToSelector(objc.Sel("locationManager:didUpdateHeading:")) -} - -// Tells the delegate that the location manager received updated heading information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621555-locationmanager?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerDidUpdateHeading(manager LocationManager, newHeading Heading) { - objc.Call[objc.Void](l_, objc.Sel("locationManager:didUpdateHeading:"), manager, newHeading) -} - -func (l_ LocationManagerDelegateObject) HasLocationManagerMonitoringDidFailForRegionWithError() bool { - return l_.RespondsToSelector(objc.Sel("locationManager:monitoringDidFailForRegion:withError:")) -} - -// Tells the delegate that a region monitoring error occurred. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423720-locationmanager?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerMonitoringDidFailForRegionWithError(manager LocationManager, region Region, error foundation.Error) { - objc.Call[objc.Void](l_, objc.Sel("locationManager:monitoringDidFailForRegion:withError:"), manager, region, error) -} - -func (l_ LocationManagerDelegateObject) HasLocationManagerDidResumeLocationUpdates() bool { - return l_.RespondsToSelector(objc.Sel("locationManagerDidResumeLocationUpdates:")) -} - -// Tells the delegate that the delivery of location updates has resumed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621512-locationmanagerdidresumelocation?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerDidResumeLocationUpdates(manager LocationManager) { - objc.Call[objc.Void](l_, objc.Sel("locationManagerDidResumeLocationUpdates:"), manager) -} - -func (l_ LocationManagerDelegateObject) HasLocationManagerDidEnterRegion() bool { - return l_.RespondsToSelector(objc.Sel("locationManager:didEnterRegion:")) +func (l_ LocationManagerDelegateObject) HasLocationManagerDidStartMonitoringForRegion() bool { + return l_.RespondsToSelector(objc.Sel("locationManager:didStartMonitoringForRegion:")) } -// Tells the delegate that the user entered the specified region. [Full Topic] +// Tells the delegate that a new region is being monitored. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423560-locationmanager?language=objc -func (l_ LocationManagerDelegateObject) LocationManagerDidEnterRegion(manager LocationManager, region Region) { - objc.Call[objc.Void](l_, objc.Sel("locationManager:didEnterRegion:"), manager, region) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1423842-locationmanager?language=objc +func (l_ LocationManagerDelegateObject) LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region) { + objc.Call[objc.Void](l_, objc.Sel("locationManager:didStartMonitoringForRegion:"), manager, region) } diff --git a/macos/corelocation/location_source_information.gen.go b/macos/corelocation/location_source_information.gen.go index a1d69570..62a7138a 100644 --- a/macos/corelocation/location_source_information.gen.go +++ b/macos/corelocation/location_source_information.gen.go @@ -18,8 +18,8 @@ type _LocationSourceInformationClass struct { // An interface definition for the [LocationSourceInformation] class. type ILocationSourceInformation interface { objc.IObject - IsSimulatedBySoftware() bool IsProducedByAccessory() bool + IsSimulatedBySoftware() bool } // Information about the source that provides a location. [Full Topic] @@ -69,14 +69,6 @@ func (l_ LocationSourceInformation) Init() LocationSourceInformation { return rv } -// A Boolean value that indicates whether the system generates the location using on-device software simulation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationsourceinformation/3861807-issimulatedbysoftware?language=objc -func (l_ LocationSourceInformation) IsSimulatedBySoftware() bool { - rv := objc.Call[bool](l_, objc.Sel("isSimulatedBySoftware")) - return rv -} - // A Boolean value that indicates whether the system receives the location from an external accessory. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationsourceinformation/3861806-isproducedbyaccessory?language=objc @@ -84,3 +76,11 @@ func (l_ LocationSourceInformation) IsProducedByAccessory() bool { rv := objc.Call[bool](l_, objc.Sel("isProducedByAccessory")) return rv } + +// A Boolean value that indicates whether the system generates the location using on-device software simulation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationsourceinformation/3861807-issimulatedbysoftware?language=objc +func (l_ LocationSourceInformation) IsSimulatedBySoftware() bool { + rv := objc.Call[bool](l_, objc.Sel("isSimulatedBySoftware")) + return rv +} diff --git a/macos/corelocation/placemark.gen.go b/macos/corelocation/placemark.gen.go index e1f289d8..ebc9cd14 100644 --- a/macos/corelocation/placemark.gen.go +++ b/macos/corelocation/placemark.gen.go @@ -20,23 +20,23 @@ type _PlacemarkClass struct { // An interface definition for the [Placemark] class. type IPlacemark interface { objc.IObject - Country() string - SubAdministrativeArea() string - Ocean() string - SubThoroughfare() string - PostalAddress() contacts.PostalAddress InlandWater() string - Location() Location - Region() Region - Thoroughfare() string - PostalCode() string AreasOfInterest() []string + Ocean() string + Name() string SubLocality() string - AdministrativeArea() string - TimeZone() foundation.TimeZone + Location() Location Locality() string + PostalCode() string ISOcountryCode() string - Name() string + TimeZone() foundation.TimeZone + AdministrativeArea() string + PostalAddress() contacts.PostalAddress + SubThoroughfare() string + Region() Region + SubAdministrativeArea() string + Country() string + Thoroughfare() string } // A user-friendly description of a geographic coordinate, often containing the name of the place, its address, and other relevant information. [Full Topic] @@ -98,19 +98,19 @@ func (p_ Placemark) Init() Placemark { return rv } -// The name of the country or region associated with the placemark. [Full Topic] +// The name of the inland water body associated with the placemark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423800-country?language=objc -func (p_ Placemark) Country() string { - rv := objc.Call[string](p_, objc.Sel("country")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423738-inlandwater?language=objc +func (p_ Placemark) InlandWater() string { + rv := objc.Call[string](p_, objc.Sel("inlandWater")) return rv } -// Additional administrative area information for the placemark. [Full Topic] +// The relevant areas of interest associated with the placemark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423776-subadministrativearea?language=objc -func (p_ Placemark) SubAdministrativeArea() string { - rv := objc.Call[string](p_, objc.Sel("subAdministrativeArea")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423673-areasofinterest?language=objc +func (p_ Placemark) AreasOfInterest() []string { + rv := objc.Call[[]string](p_, objc.Sel("areasOfInterest")) return rv } @@ -122,27 +122,19 @@ func (p_ Placemark) Ocean() string { return rv } -// Additional street-level information for the placemark. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423782-subthoroughfare?language=objc -func (p_ Placemark) SubThoroughfare() string { - rv := objc.Call[string](p_, objc.Sel("subThoroughfare")) - return rv -} - -// The postal address associated with the location, formatted for use with the Contacts framework. [Full Topic] +// The name of the placemark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/2890749-postaladdress?language=objc -func (p_ Placemark) PostalAddress() contacts.PostalAddress { - rv := objc.Call[contacts.PostalAddress](p_, objc.Sel("postalAddress")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423634-name?language=objc +func (p_ Placemark) Name() string { + rv := objc.Call[string](p_, objc.Sel("name")) return rv } -// The name of the inland water body associated with the placemark. [Full Topic] +// Additional city-level information for the placemark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423738-inlandwater?language=objc -func (p_ Placemark) InlandWater() string { - rv := objc.Call[string](p_, objc.Sel("inlandWater")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423794-sublocality?language=objc +func (p_ Placemark) SubLocality() string { + rv := objc.Call[string](p_, objc.Sel("subLocality")) return rv } @@ -154,19 +146,11 @@ func (p_ Placemark) Location() Location { return rv } -// The geographic region associated with the placemark. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423808-region?language=objc -func (p_ Placemark) Region() Region { - rv := objc.Call[Region](p_, objc.Sel("region")) - return rv -} - -// The street address associated with the placemark. [Full Topic] +// The city associated with the placemark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423814-thoroughfare?language=objc -func (p_ Placemark) Thoroughfare() string { - rv := objc.Call[string](p_, objc.Sel("thoroughfare")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423507-locality?language=objc +func (p_ Placemark) Locality() string { + rv := objc.Call[string](p_, objc.Sel("locality")) return rv } @@ -178,19 +162,19 @@ func (p_ Placemark) PostalCode() string { return rv } -// The relevant areas of interest associated with the placemark. [Full Topic] +// The abbreviated country or region name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423673-areasofinterest?language=objc -func (p_ Placemark) AreasOfInterest() []string { - rv := objc.Call[[]string](p_, objc.Sel("areasOfInterest")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423796-isocountrycode?language=objc +func (p_ Placemark) ISOcountryCode() string { + rv := objc.Call[string](p_, objc.Sel("ISOcountryCode")) return rv } -// Additional city-level information for the placemark. [Full Topic] +// The time zone associated with the placemark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423794-sublocality?language=objc -func (p_ Placemark) SubLocality() string { - rv := objc.Call[string](p_, objc.Sel("subLocality")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423707-timezone?language=objc +func (p_ Placemark) TimeZone() foundation.TimeZone { + rv := objc.Call[foundation.TimeZone](p_, objc.Sel("timeZone")) return rv } @@ -202,34 +186,50 @@ func (p_ Placemark) AdministrativeArea() string { return rv } -// The time zone associated with the placemark. [Full Topic] +// The postal address associated with the location, formatted for use with the Contacts framework. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423707-timezone?language=objc -func (p_ Placemark) TimeZone() foundation.TimeZone { - rv := objc.Call[foundation.TimeZone](p_, objc.Sel("timeZone")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/2890749-postaladdress?language=objc +func (p_ Placemark) PostalAddress() contacts.PostalAddress { + rv := objc.Call[contacts.PostalAddress](p_, objc.Sel("postalAddress")) return rv } -// The city associated with the placemark. [Full Topic] +// Additional street-level information for the placemark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423507-locality?language=objc -func (p_ Placemark) Locality() string { - rv := objc.Call[string](p_, objc.Sel("locality")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423782-subthoroughfare?language=objc +func (p_ Placemark) SubThoroughfare() string { + rv := objc.Call[string](p_, objc.Sel("subThoroughfare")) return rv } -// The abbreviated country or region name. [Full Topic] +// The geographic region associated with the placemark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423796-isocountrycode?language=objc -func (p_ Placemark) ISOcountryCode() string { - rv := objc.Call[string](p_, objc.Sel("ISOcountryCode")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423808-region?language=objc +func (p_ Placemark) Region() Region { + rv := objc.Call[Region](p_, objc.Sel("region")) return rv } -// The name of the placemark. [Full Topic] +// Additional administrative area information for the placemark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423634-name?language=objc -func (p_ Placemark) Name() string { - rv := objc.Call[string](p_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423776-subadministrativearea?language=objc +func (p_ Placemark) SubAdministrativeArea() string { + rv := objc.Call[string](p_, objc.Sel("subAdministrativeArea")) + return rv +} + +// The name of the country or region associated with the placemark. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423800-country?language=objc +func (p_ Placemark) Country() string { + rv := objc.Call[string](p_, objc.Sel("country")) + return rv +} + +// The street address associated with the placemark. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clplacemark/1423814-thoroughfare?language=objc +func (p_ Placemark) Thoroughfare() string { + rv := objc.Call[string](p_, objc.Sel("thoroughfare")) return rv } diff --git a/macos/corelocation/region.gen.go b/macos/corelocation/region.gen.go index 36633e39..1304b3ee 100644 --- a/macos/corelocation/region.gen.go +++ b/macos/corelocation/region.gen.go @@ -18,11 +18,11 @@ type _RegionClass struct { // An interface definition for the [Region] class. type IRegion interface { objc.IObject - Identifier() string - NotifyOnExit() bool - SetNotifyOnExit(value bool) NotifyOnEntry() bool SetNotifyOnEntry(value bool) + NotifyOnExit() bool + SetNotifyOnExit(value bool) + Identifier() string } // A base class representing an area that can be monitored. [Full Topic] @@ -58,14 +58,21 @@ func (r_ Region) Init() Region { return rv } -// The identifier for the region object. [Full Topic] +// A Boolean indicating that notifications are generated upon entry into the region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clregion/1423583-identifier?language=objc -func (r_ Region) Identifier() string { - rv := objc.Call[string](r_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clregion/1423566-notifyonentry?language=objc +func (r_ Region) NotifyOnEntry() bool { + rv := objc.Call[bool](r_, objc.Sel("notifyOnEntry")) return rv } +// A Boolean indicating that notifications are generated upon entry into the region. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clregion/1423566-notifyonentry?language=objc +func (r_ Region) SetNotifyOnEntry(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setNotifyOnEntry:"), value) +} + // A Boolean indicating that notifications are generated upon exit from the region. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/clregion/1423595-notifyonexit?language=objc @@ -81,17 +88,10 @@ func (r_ Region) SetNotifyOnExit(value bool) { objc.Call[objc.Void](r_, objc.Sel("setNotifyOnExit:"), value) } -// A Boolean indicating that notifications are generated upon entry into the region. [Full Topic] +// The identifier for the region object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clregion/1423566-notifyonentry?language=objc -func (r_ Region) NotifyOnEntry() bool { - rv := objc.Call[bool](r_, objc.Sel("notifyOnEntry")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clregion/1423583-identifier?language=objc +func (r_ Region) Identifier() string { + rv := objc.Call[string](r_, objc.Sel("identifier")) return rv } - -// A Boolean indicating that notifications are generated upon entry into the region. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clregion/1423566-notifyonentry?language=objc -func (r_ Region) SetNotifyOnEntry(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setNotifyOnEntry:"), value) -} diff --git a/macos/corelocation/visit.gen.go b/macos/corelocation/visit.gen.go index c5913247..e4deda7a 100644 --- a/macos/corelocation/visit.gen.go +++ b/macos/corelocation/visit.gen.go @@ -19,10 +19,10 @@ type _VisitClass struct { // An interface definition for the [Visit] class. type IVisit interface { objc.IObject - ArrivalDate() foundation.Date + HorizontalAccuracy() LocationAccuracy Coordinate() LocationCoordinate2D + ArrivalDate() foundation.Date DepartureDate() foundation.Date - HorizontalAccuracy() LocationAccuracy } // Information about the user's location during a specific period of time. [Full Topic] @@ -58,11 +58,11 @@ func (v_ Visit) Init() Visit { return rv } -// The approximate time at which the user arrived at the specified location. [Full Topic] +// The horizontal accuracy (in meters) of the specified coordinate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clvisit/1614681-arrivaldate?language=objc -func (v_ Visit) ArrivalDate() foundation.Date { - rv := objc.Call[foundation.Date](v_, objc.Sel("arrivalDate")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clvisit/1614679-horizontalaccuracy?language=objc +func (v_ Visit) HorizontalAccuracy() LocationAccuracy { + rv := objc.Call[LocationAccuracy](v_, objc.Sel("horizontalAccuracy")) return rv } @@ -74,18 +74,18 @@ func (v_ Visit) Coordinate() LocationCoordinate2D { return rv } -// The approximate time at which the user left the specified location. [Full Topic] +// The approximate time at which the user arrived at the specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clvisit/1614685-departuredate?language=objc -func (v_ Visit) DepartureDate() foundation.Date { - rv := objc.Call[foundation.Date](v_, objc.Sel("departureDate")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clvisit/1614681-arrivaldate?language=objc +func (v_ Visit) ArrivalDate() foundation.Date { + rv := objc.Call[foundation.Date](v_, objc.Sel("arrivalDate")) return rv } -// The horizontal accuracy (in meters) of the specified coordinate. [Full Topic] +// The approximate time at which the user left the specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/clvisit/1614679-horizontalaccuracy?language=objc -func (v_ Visit) HorizontalAccuracy() LocationAccuracy { - rv := objc.Call[LocationAccuracy](v_, objc.Sel("horizontalAccuracy")) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/clvisit/1614685-departuredate?language=objc +func (v_ Visit) DepartureDate() foundation.Date { + rv := objc.Call[foundation.Date](v_, objc.Sel("departureDate")) return rv } diff --git a/macos/coremedia/aliastypes.gen.go b/macos/coremedia/aliastypes.gen.go index 7a0befa9..9a828b01 100644 --- a/macos/coremedia/aliastypes.gen.go +++ b/macos/coremedia/aliastypes.gen.go @@ -28,7 +28,7 @@ type BufferGetBooleanCallback = func(buf BufferRef, refcon unsafe.Pointer) bool // [Full Topic]: https://developer.apple.com/documentation/coremedia/cmbufferqueuetriggercallback?language=objc type BufferQueueTriggerCallback = func(triggerRefcon unsafe.Pointer, triggerToken unsafe.Pointer) -// Client callback called by [coremedia/cmsamplebufferinvalidate]. [Full Topic] +// Client callback called by CMSampleBufferInvalidate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremedia/cmsamplebufferinvalidatehandler?language=objc type SampleBufferInvalidateHandler = func(sbuf SampleBufferRef) @@ -38,7 +38,7 @@ type SampleBufferInvalidateHandler = func(sbuf SampleBufferRef) // [Full Topic]: https://developer.apple.com/documentation/coremedia/cmbuffergetsizehandler?language=objc type BufferGetSizeHandler = func(buf BufferRef) uint -// Client callback called by [coremedia/cmsamplebufferinvalidate]. [Full Topic] +// Client callback called by CMSampleBufferInvalidate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremedia/cmsamplebufferinvalidatecallback?language=objc type SampleBufferInvalidateCallback = func(sbuf SampleBufferRef, invalidateRefCon uint64) @@ -53,7 +53,7 @@ type BufferValidationCallback = func(queue BufferQueueRef, buf BufferRef, valida // [Full Topic]: https://developer.apple.com/documentation/coremedia/cmbuffergetsizecallback?language=objc type BufferGetSizeCallback = func(buf BufferRef, refcon unsafe.Pointer) uint -// Client callback called by [coremedia/cmsamplebuffermakedataready]. [Full Topic] +// Client callback called by CMSampleBufferMakeDataReady. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremedia/cmsamplebuffermakedatareadycallback?language=objc type SampleBufferMakeDataReadyCallback = func(sbuf SampleBufferRef, makeDataReadyRefcon unsafe.Pointer) uint diff --git a/macos/coremediaio/extension_device.gen.go b/macos/coremediaio/extension_device.gen.go index c7489312..387fd31b 100644 --- a/macos/coremediaio/extension_device.gen.go +++ b/macos/coremediaio/extension_device.gen.go @@ -19,14 +19,14 @@ type _ExtensionDeviceClass struct { // An interface definition for the [ExtensionDevice] class. type IExtensionDevice interface { objc.IObject - AddStreamError(stream IExtensionStream, outError unsafe.Pointer) bool - RemoveStreamError(stream IExtensionStream, outError unsafe.Pointer) bool NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) - LocalizedName() string - Streams() []ExtensionStream - LegacyDeviceID() string + RemoveStreamError(stream IExtensionStream, outError unsafe.Pointer) bool + AddStreamError(stream IExtensionStream, outError unsafe.Pointer) bool DeviceID() foundation.UUID + Streams() []ExtensionStream Source() ExtensionDeviceSourceObject + LocalizedName() string + LegacyDeviceID() string } // An object that represents a physical or virtual device. [Full Topic] @@ -42,34 +42,6 @@ func ExtensionDeviceFrom(ptr unsafe.Pointer) ExtensionDevice { } } -func (ec _ExtensionDeviceClass) DeviceWithLocalizedNameDeviceIDLegacyDeviceIDSource(localizedName string, deviceID foundation.IUUID, legacyDeviceID string, source PExtensionDeviceSource) ExtensionDevice { - po3 := objc.WrapAsProtocol("CMIOExtensionDeviceSource", source) - rv := objc.Call[ExtensionDevice](ec, objc.Sel("deviceWithLocalizedName:deviceID:legacyDeviceID:source:"), localizedName, deviceID, legacyDeviceID, po3) - return rv -} - -// Returns a new extension device with an optional legacy device identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915828-devicewithlocalizedname?language=objc -func ExtensionDevice_DeviceWithLocalizedNameDeviceIDLegacyDeviceIDSource(localizedName string, deviceID foundation.IUUID, legacyDeviceID string, source PExtensionDeviceSource) ExtensionDevice { - return ExtensionDeviceClass.DeviceWithLocalizedNameDeviceIDLegacyDeviceIDSource(localizedName, deviceID, legacyDeviceID, source) -} - -func (e_ ExtensionDevice) InitWithLocalizedNameDeviceIDLegacyDeviceIDSource(localizedName string, deviceID foundation.IUUID, legacyDeviceID string, source PExtensionDeviceSource) ExtensionDevice { - po3 := objc.WrapAsProtocol("CMIOExtensionDeviceSource", source) - rv := objc.Call[ExtensionDevice](e_, objc.Sel("initWithLocalizedName:deviceID:legacyDeviceID:source:"), localizedName, deviceID, legacyDeviceID, po3) - return rv -} - -// Creates an extension device with an optional legacy device identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915830-initwithlocalizedname?language=objc -func NewExtensionDeviceWithLocalizedNameDeviceIDLegacyDeviceIDSource(localizedName string, deviceID foundation.IUUID, legacyDeviceID string, source PExtensionDeviceSource) ExtensionDevice { - instance := ExtensionDeviceClass.Alloc().InitWithLocalizedNameDeviceIDLegacyDeviceIDSource(localizedName, deviceID, legacyDeviceID, source) - instance.Autorelease() - return instance -} - func (ec _ExtensionDeviceClass) Alloc() ExtensionDevice { rv := objc.Call[ExtensionDevice](ec, objc.Sel("alloc")) return rv @@ -90,12 +62,11 @@ func (e_ ExtensionDevice) Init() ExtensionDevice { return rv } -// Adds a stream to a device. [Full Topic] +// Notifies clients of property changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915826-addstream?language=objc -func (e_ ExtensionDevice) AddStreamError(stream IExtensionStream, outError unsafe.Pointer) bool { - rv := objc.Call[bool](e_, objc.Sel("addStream:error:"), stream, outError) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915834-notifypropertieschanged?language=objc +func (e_ ExtensionDevice) NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) { + objc.Call[objc.Void](e_, objc.Sel("notifyPropertiesChanged:"), propertyStates) } // Removes a stream from the device. [Full Topic] @@ -106,18 +77,19 @@ func (e_ ExtensionDevice) RemoveStreamError(stream IExtensionStream, outError un return rv } -// Notifies clients of property changes. [Full Topic] +// Adds a stream to a device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915834-notifypropertieschanged?language=objc -func (e_ ExtensionDevice) NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) { - objc.Call[objc.Void](e_, objc.Sel("notifyPropertiesChanged:"), propertyStates) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915826-addstream?language=objc +func (e_ ExtensionDevice) AddStreamError(stream IExtensionStream, outError unsafe.Pointer) bool { + rv := objc.Call[bool](e_, objc.Sel("addStream:error:"), stream, outError) + return rv } -// A localized name for a device. [Full Topic] +// A universally unique device identifier value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915833-localizedname?language=objc -func (e_ ExtensionDevice) LocalizedName() string { - rv := objc.Call[string](e_, objc.Sel("localizedName")) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915827-deviceid?language=objc +func (e_ ExtensionDevice) DeviceID() foundation.UUID { + rv := objc.Call[foundation.UUID](e_, objc.Sel("deviceID")) return rv } @@ -129,26 +101,26 @@ func (e_ ExtensionDevice) Streams() []ExtensionStream { return rv } -// A legacy device identifier. [Full Topic] +// A source object for a device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915832-legacydeviceid?language=objc -func (e_ ExtensionDevice) LegacyDeviceID() string { - rv := objc.Call[string](e_, objc.Sel("legacyDeviceID")) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915836-source?language=objc +func (e_ ExtensionDevice) Source() ExtensionDeviceSourceObject { + rv := objc.Call[ExtensionDeviceSourceObject](e_, objc.Sel("source")) return rv } -// A universally unique device identifier value. [Full Topic] +// A localized name for a device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915827-deviceid?language=objc -func (e_ ExtensionDevice) DeviceID() foundation.UUID { - rv := objc.Call[foundation.UUID](e_, objc.Sel("deviceID")) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915833-localizedname?language=objc +func (e_ ExtensionDevice) LocalizedName() string { + rv := objc.Call[string](e_, objc.Sel("localizedName")) return rv } -// A source object for a device. [Full Topic] +// A legacy device identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915836-source?language=objc -func (e_ ExtensionDevice) Source() ExtensionDeviceSourceObject { - rv := objc.Call[ExtensionDeviceSourceObject](e_, objc.Sel("source")) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevice/3915832-legacydeviceid?language=objc +func (e_ ExtensionDevice) LegacyDeviceID() string { + rv := objc.Call[string](e_, objc.Sel("legacyDeviceID")) return rv } diff --git a/macos/coremediaio/extension_device_properties.gen.go b/macos/coremediaio/extension_device_properties.gen.go index 9fc0ab48..e5432fbe 100644 --- a/macos/coremediaio/extension_device_properties.gen.go +++ b/macos/coremediaio/extension_device_properties.gen.go @@ -20,16 +20,16 @@ type _ExtensionDevicePropertiesClass struct { type IExtensionDeviceProperties interface { objc.IObject SetPropertyStateForProperty(propertyState IExtensionPropertyState, property ExtensionProperty) + Model() string + SetModel(value string) TransportType() foundation.Number SetTransportType(value foundation.INumber) + LinkedCoreAudioDeviceUID() string + SetLinkedCoreAudioDeviceUID(value string) Suspended() foundation.Number SetSuspended(value foundation.INumber) PropertiesDictionary() map[ExtensionProperty]ExtensionPropertyState SetPropertiesDictionary(value map[ExtensionProperty]IExtensionPropertyState) - LinkedCoreAudioDeviceUID() string - SetLinkedCoreAudioDeviceUID(value string) - Model() string - SetModel(value string) } // An object that defines the properties of a device. [Full Topic] @@ -45,18 +45,6 @@ func ExtensionDevicePropertiesFrom(ptr unsafe.Pointer) ExtensionDeviceProperties } } -func (ec _ExtensionDevicePropertiesClass) DevicePropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionDeviceProperties { - rv := objc.Call[ExtensionDeviceProperties](ec, objc.Sel("devicePropertiesWithDictionary:"), propertiesDictionary) - return rv -} - -// Returns a new properties object with a dictionary of property states. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915839-devicepropertieswithdictionary?language=objc -func ExtensionDeviceProperties_DevicePropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionDeviceProperties { - return ExtensionDevicePropertiesClass.DevicePropertiesWithDictionary(propertiesDictionary) -} - func (e_ ExtensionDeviceProperties) InitWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionDeviceProperties { rv := objc.Call[ExtensionDeviceProperties](e_, objc.Sel("initWithDictionary:"), propertiesDictionary) return rv @@ -71,6 +59,18 @@ func NewExtensionDevicePropertiesWithDictionary(propertiesDictionary map[Extensi return instance } +func (ec _ExtensionDevicePropertiesClass) DevicePropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionDeviceProperties { + rv := objc.Call[ExtensionDeviceProperties](ec, objc.Sel("devicePropertiesWithDictionary:"), propertiesDictionary) + return rv +} + +// Returns a new properties object with a dictionary of property states. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915839-devicepropertieswithdictionary?language=objc +func ExtensionDeviceProperties_DevicePropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionDeviceProperties { + return ExtensionDevicePropertiesClass.DevicePropertiesWithDictionary(propertiesDictionary) +} + func (ec _ExtensionDevicePropertiesClass) Alloc() ExtensionDeviceProperties { rv := objc.Call[ExtensionDeviceProperties](ec, objc.Sel("alloc")) return rv @@ -98,6 +98,21 @@ func (e_ ExtensionDeviceProperties) SetPropertyStateForProperty(propertyState IE objc.Call[objc.Void](e_, objc.Sel("setPropertyState:forProperty:"), propertyState, property) } +// A device model string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915842-model?language=objc +func (e_ ExtensionDeviceProperties) Model() string { + rv := objc.Call[string](e_, objc.Sel("model")) + return rv +} + +// A device model string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915842-model?language=objc +func (e_ ExtensionDeviceProperties) SetModel(value string) { + objc.Call[objc.Void](e_, objc.Sel("setModel:"), value) +} + // The transport type of the device, such as USB or HDMI. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915846-transporttype?language=objc @@ -113,6 +128,21 @@ func (e_ ExtensionDeviceProperties) SetTransportType(value foundation.INumber) { objc.Call[objc.Void](e_, objc.Sel("setTransportType:"), value) } +// A universal identifier of the audio device linked to this device. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915841-linkedcoreaudiodeviceuid?language=objc +func (e_ ExtensionDeviceProperties) LinkedCoreAudioDeviceUID() string { + rv := objc.Call[string](e_, objc.Sel("linkedCoreAudioDeviceUID")) + return rv +} + +// A universal identifier of the audio device linked to this device. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915841-linkedcoreaudiodeviceuid?language=objc +func (e_ ExtensionDeviceProperties) SetLinkedCoreAudioDeviceUID(value string) { + objc.Call[objc.Void](e_, objc.Sel("setLinkedCoreAudioDeviceUID:"), value) +} + // A Boolean value that indicates whether the device is in a suspended state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915845-suspended?language=objc @@ -142,33 +172,3 @@ func (e_ ExtensionDeviceProperties) PropertiesDictionary() map[ExtensionProperty func (e_ ExtensionDeviceProperties) SetPropertiesDictionary(value map[ExtensionProperty]IExtensionPropertyState) { objc.Call[objc.Void](e_, objc.Sel("setPropertiesDictionary:"), value) } - -// A universal identifier of the audio device linked to this device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915841-linkedcoreaudiodeviceuid?language=objc -func (e_ ExtensionDeviceProperties) LinkedCoreAudioDeviceUID() string { - rv := objc.Call[string](e_, objc.Sel("linkedCoreAudioDeviceUID")) - return rv -} - -// A universal identifier of the audio device linked to this device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915841-linkedcoreaudiodeviceuid?language=objc -func (e_ ExtensionDeviceProperties) SetLinkedCoreAudioDeviceUID(value string) { - objc.Call[objc.Void](e_, objc.Sel("setLinkedCoreAudioDeviceUID:"), value) -} - -// A device model string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915842-model?language=objc -func (e_ ExtensionDeviceProperties) Model() string { - rv := objc.Call[string](e_, objc.Sel("model")) - return rv -} - -// A device model string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondeviceproperties/3915842-model?language=objc -func (e_ ExtensionDeviceProperties) SetModel(value string) { - objc.Call[objc.Void](e_, objc.Sel("setModel:"), value) -} diff --git a/macos/coremediaio/extension_device_source_protocol.gen.go b/macos/coremediaio/extension_device_source_protocol.gen.go index 3c79a94a..a752d69a 100644 --- a/macos/coremediaio/extension_device_source_protocol.gen.go +++ b/macos/coremediaio/extension_device_source_protocol.gen.go @@ -13,14 +13,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevicesource?language=objc type PExtensionDeviceSource interface { - // optional - DevicePropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionDeviceProperties - HasDevicePropertiesForPropertiesError() bool - // optional SetDevicePropertiesError(deviceProperties ExtensionDeviceProperties, outError unsafe.Pointer) bool HasSetDevicePropertiesError() bool + // optional + DevicePropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionDeviceProperties + HasDevicePropertiesForPropertiesError() bool + // optional AvailableProperties() foundation.Set HasAvailableProperties() bool @@ -34,18 +34,6 @@ type ExtensionDeviceSourceObject struct { objc.Object } -func (e_ ExtensionDeviceSourceObject) HasDevicePropertiesForPropertiesError() bool { - return e_.RespondsToSelector(objc.Sel("devicePropertiesForProperties:error:")) -} - -// Retrieves the state of device properties. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevicesource/3915849-devicepropertiesforproperties?language=objc -func (e_ ExtensionDeviceSourceObject) DevicePropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionDeviceProperties { - rv := objc.Call[ExtensionDeviceProperties](e_, objc.Sel("devicePropertiesForProperties:error:"), properties, outError) - return rv -} - func (e_ ExtensionDeviceSourceObject) HasSetDevicePropertiesError() bool { return e_.RespondsToSelector(objc.Sel("setDeviceProperties:error:")) } @@ -58,6 +46,18 @@ func (e_ ExtensionDeviceSourceObject) SetDevicePropertiesError(deviceProperties return rv } +func (e_ ExtensionDeviceSourceObject) HasDevicePropertiesForPropertiesError() bool { + return e_.RespondsToSelector(objc.Sel("devicePropertiesForProperties:error:")) +} + +// Retrieves the state of device properties. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevicesource/3915849-devicepropertiesforproperties?language=objc +func (e_ ExtensionDeviceSourceObject) DevicePropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionDeviceProperties { + rv := objc.Call[ExtensionDeviceProperties](e_, objc.Sel("devicePropertiesForProperties:error:"), properties, outError) + return rv +} + func (e_ ExtensionDeviceSourceObject) HasAvailableProperties() bool { return e_.RespondsToSelector(objc.Sel("availableProperties")) } diff --git a/macos/coremediaio/extension_property_attributes.gen.go b/macos/coremediaio/extension_property_attributes.gen.go index 09cc53c5..0018f2a5 100644 --- a/macos/coremediaio/extension_property_attributes.gen.go +++ b/macos/coremediaio/extension_property_attributes.gen.go @@ -18,10 +18,10 @@ type _ExtensionPropertyAttributesClass struct { // An interface definition for the [ExtensionPropertyAttributes] class. type IExtensionPropertyAttributes interface { objc.IObject - MinValue() objc.Object - MaxValue() objc.Object IsReadOnly() bool ValidValues() []objc.Object + MinValue() objc.Object + MaxValue() objc.Object } // An object that describes the attributes of a property. [Full Topic] @@ -37,6 +37,18 @@ func ExtensionPropertyAttributesFrom(ptr unsafe.Pointer) ExtensionPropertyAttrib } } +func (ec _ExtensionPropertyAttributesClass) PropertyAttributesWithMinValueMaxValueValidValuesReadOnly(minValue objc.IObject, maxValue objc.IObject, validValues []objc.IObject, readOnly bool) ExtensionPropertyAttributes { + rv := objc.Call[ExtensionPropertyAttributes](ec, objc.Sel("propertyAttributesWithMinValue:maxValue:validValues:readOnly:"), minValue, maxValue, validValues, readOnly) + return rv +} + +// Returns a new property attributes object with the specified configuration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertyattributes/3915859-propertyattributeswithminvalue?language=objc +func ExtensionPropertyAttributes_PropertyAttributesWithMinValueMaxValueValidValuesReadOnly(minValue objc.IObject, maxValue objc.IObject, validValues []objc.IObject, readOnly bool) ExtensionPropertyAttributes { + return ExtensionPropertyAttributesClass.PropertyAttributesWithMinValueMaxValueValidValuesReadOnly(minValue, maxValue, validValues, readOnly) +} + func (e_ ExtensionPropertyAttributes) InitWithMinValueMaxValueValidValuesReadOnly(minValue objc.IObject, maxValue objc.IObject, validValues []objc.IObject, readOnly bool) ExtensionPropertyAttributes { rv := objc.Call[ExtensionPropertyAttributes](e_, objc.Sel("initWithMinValue:maxValue:validValues:readOnly:"), minValue, maxValue, validValues, readOnly) return rv @@ -51,18 +63,6 @@ func NewExtensionPropertyAttributesWithMinValueMaxValueValidValuesReadOnly(minVa return instance } -func (ec _ExtensionPropertyAttributesClass) PropertyAttributesWithMinValueMaxValueValidValuesReadOnly(minValue objc.IObject, maxValue objc.IObject, validValues []objc.IObject, readOnly bool) ExtensionPropertyAttributes { - rv := objc.Call[ExtensionPropertyAttributes](ec, objc.Sel("propertyAttributesWithMinValue:maxValue:validValues:readOnly:"), minValue, maxValue, validValues, readOnly) - return rv -} - -// Returns a new property attributes object with the specified configuration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertyattributes/3915859-propertyattributeswithminvalue?language=objc -func ExtensionPropertyAttributes_PropertyAttributesWithMinValueMaxValueValidValuesReadOnly(minValue objc.IObject, maxValue objc.IObject, validValues []objc.IObject, readOnly bool) ExtensionPropertyAttributes { - return ExtensionPropertyAttributesClass.PropertyAttributesWithMinValueMaxValueValidValuesReadOnly(minValue, maxValue, validValues, readOnly) -} - func (ec _ExtensionPropertyAttributesClass) Alloc() ExtensionPropertyAttributes { rv := objc.Call[ExtensionPropertyAttributes](ec, objc.Sel("alloc")) return rv @@ -83,6 +83,22 @@ func (e_ ExtensionPropertyAttributes) Init() ExtensionPropertyAttributes { return rv } +// A Boolean value that indicates whether a property is read-only. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertyattributes/3915860-readonly?language=objc +func (e_ ExtensionPropertyAttributes) IsReadOnly() bool { + rv := objc.Call[bool](e_, objc.Sel("isReadOnly")) + return rv +} + +// An array of discrete values that this property supports. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertyattributes/3915862-validvalues?language=objc +func (e_ ExtensionPropertyAttributes) ValidValues() []objc.Object { + rv := objc.Call[[]objc.Object](e_, objc.Sel("validValues")) + return rv +} + // The minimum value a property supports. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertyattributes/3915858-minvalue?language=objc @@ -113,19 +129,3 @@ func (e_ ExtensionPropertyAttributes) MaxValue() objc.Object { rv := objc.Call[objc.Object](e_, objc.Sel("maxValue")) return rv } - -// A Boolean value that indicates whether a property is read-only. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertyattributes/3915860-readonly?language=objc -func (e_ ExtensionPropertyAttributes) IsReadOnly() bool { - rv := objc.Call[bool](e_, objc.Sel("isReadOnly")) - return rv -} - -// An array of discrete values that this property supports. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertyattributes/3915862-validvalues?language=objc -func (e_ ExtensionPropertyAttributes) ValidValues() []objc.Object { - rv := objc.Call[[]objc.Object](e_, objc.Sel("validValues")) - return rv -} diff --git a/macos/coremediaio/extension_property_state.gen.go b/macos/coremediaio/extension_property_state.gen.go index c3216375..4821d183 100644 --- a/macos/coremediaio/extension_property_state.gen.go +++ b/macos/coremediaio/extension_property_state.gen.go @@ -35,32 +35,6 @@ func ExtensionPropertyStateFrom(ptr unsafe.Pointer) ExtensionPropertyState { } } -func (ec _ExtensionPropertyStateClass) PropertyStateWithValue(value objc.IObject) ExtensionPropertyState { - rv := objc.Call[ExtensionPropertyState](ec, objc.Sel("propertyStateWithValue:"), value) - return rv -} - -// Returns a new property state with a value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertystate/3915873-propertystatewithvalue?language=objc -func ExtensionPropertyState_PropertyStateWithValue(value objc.IObject) ExtensionPropertyState { - return ExtensionPropertyStateClass.PropertyStateWithValue(value) -} - -func (e_ ExtensionPropertyState) InitWithValue(value objc.IObject) ExtensionPropertyState { - rv := objc.Call[ExtensionPropertyState](e_, objc.Sel("initWithValue:"), value) - return rv -} - -// Creates a property state with a value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertystate/3915871-initwithvalue?language=objc -func NewExtensionPropertyStateWithValue(value objc.IObject) ExtensionPropertyState { - instance := ExtensionPropertyStateClass.Alloc().InitWithValue(value) - instance.Autorelease() - return instance -} - func (e_ ExtensionPropertyState) InitWithValueAttributes(value objc.IObject, attributes IExtensionPropertyAttributes) ExtensionPropertyState { rv := objc.Call[ExtensionPropertyState](e_, objc.Sel("initWithValue:attributes:"), value, attributes) return rv @@ -75,16 +49,16 @@ func NewExtensionPropertyStateWithValueAttributes(value objc.IObject, attributes return instance } -func (ec _ExtensionPropertyStateClass) PropertyStateWithValueAttributes(value objc.IObject, attributes IExtensionPropertyAttributes) ExtensionPropertyState { - rv := objc.Call[ExtensionPropertyState](ec, objc.Sel("propertyStateWithValue:attributes:"), value, attributes) +func (ec _ExtensionPropertyStateClass) PropertyStateWithValue(value objc.IObject) ExtensionPropertyState { + rv := objc.Call[ExtensionPropertyState](ec, objc.Sel("propertyStateWithValue:"), value) return rv } -// Returns a new property state with a value and attributes. [Full Topic] +// Returns a new property state with a value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertystate/3915874-propertystatewithvalue?language=objc -func ExtensionPropertyState_PropertyStateWithValueAttributes(value objc.IObject, attributes IExtensionPropertyAttributes) ExtensionPropertyState { - return ExtensionPropertyStateClass.PropertyStateWithValueAttributes(value, attributes) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionpropertystate/3915873-propertystatewithvalue?language=objc +func ExtensionPropertyState_PropertyStateWithValue(value objc.IObject) ExtensionPropertyState { + return ExtensionPropertyStateClass.PropertyStateWithValue(value) } func (ec _ExtensionPropertyStateClass) Alloc() ExtensionPropertyState { diff --git a/macos/coremediaio/extension_provider.gen.go b/macos/coremediaio/extension_provider.gen.go index fae80a0f..676d7ab5 100644 --- a/macos/coremediaio/extension_provider.gen.go +++ b/macos/coremediaio/extension_provider.gen.go @@ -23,9 +23,9 @@ type IExtensionProvider interface { AddDeviceError(device IExtensionDevice, outError unsafe.Pointer) bool RemoveDeviceError(device IExtensionDevice, outError unsafe.Pointer) bool Source() ExtensionProviderSourceObject - Devices() []ExtensionDevice - ClientQueue() dispatch.Queue ConnectedClients() []ExtensionClient + ClientQueue() dispatch.Queue + Devices() []ExtensionDevice } // An object that manages device connections for a provider. [Full Topic] @@ -96,14 +96,6 @@ func (e_ ExtensionProvider) NotifyPropertiesChanged(propertyStates map[Extension objc.Call[objc.Void](e_, objc.Sel("notifyPropertiesChanged:"), propertyStates) } -// Adds a device to a provider. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovider/3915906-adddevice?language=objc -func (e_ ExtensionProvider) AddDeviceError(device IExtensionDevice, outError unsafe.Pointer) bool { - rv := objc.Call[bool](e_, objc.Sel("addDevice:error:"), device, outError) - return rv -} - // Starts the system extension. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovider/3915915-startservicewithprovider?language=objc @@ -118,6 +110,14 @@ func ExtensionProvider_StartServiceWithProvider(provider IExtensionProvider) { ExtensionProviderClass.StartServiceWithProvider(provider) } +// Adds a device to a provider. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovider/3915906-adddevice?language=objc +func (e_ ExtensionProvider) AddDeviceError(device IExtensionDevice, outError unsafe.Pointer) bool { + rv := objc.Call[bool](e_, objc.Sel("addDevice:error:"), device, outError) + return rv +} + // Removes a device from a provider. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovider/3915913-removedevice?language=objc @@ -134,11 +134,11 @@ func (e_ ExtensionProvider) Source() ExtensionProviderSourceObject { return rv } -// An array of connected devices. [Full Topic] +// An array of connected clients. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovider/3915909-devices?language=objc -func (e_ ExtensionProvider) Devices() []ExtensionDevice { - rv := objc.Call[[]ExtensionDevice](e_, objc.Sel("devices")) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovider/3915908-connectedclients?language=objc +func (e_ ExtensionProvider) ConnectedClients() []ExtensionClient { + rv := objc.Call[[]ExtensionClient](e_, objc.Sel("connectedClients")) return rv } @@ -150,10 +150,10 @@ func (e_ ExtensionProvider) ClientQueue() dispatch.Queue { return rv } -// An array of connected clients. [Full Topic] +// An array of connected devices. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovider/3915908-connectedclients?language=objc -func (e_ ExtensionProvider) ConnectedClients() []ExtensionClient { - rv := objc.Call[[]ExtensionClient](e_, objc.Sel("connectedClients")) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovider/3915909-devices?language=objc +func (e_ ExtensionProvider) Devices() []ExtensionDevice { + rv := objc.Call[[]ExtensionDevice](e_, objc.Sel("devices")) return rv } diff --git a/macos/coremediaio/extension_provider_properties.gen.go b/macos/coremediaio/extension_provider_properties.gen.go index b993fbb1..256a5b6e 100644 --- a/macos/coremediaio/extension_provider_properties.gen.go +++ b/macos/coremediaio/extension_provider_properties.gen.go @@ -40,6 +40,18 @@ func ExtensionProviderPropertiesFrom(ptr unsafe.Pointer) ExtensionProviderProper } } +func (ec _ExtensionProviderPropertiesClass) ProviderPropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionProviderProperties { + rv := objc.Call[ExtensionProviderProperties](ec, objc.Sel("providerPropertiesWithDictionary:"), propertiesDictionary) + return rv +} + +// Returns a new provider properties object with the specified properties. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionproviderproperties/3915921-providerpropertieswithdictionary?language=objc +func ExtensionProviderProperties_ProviderPropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionProviderProperties { + return ExtensionProviderPropertiesClass.ProviderPropertiesWithDictionary(propertiesDictionary) +} + func (e_ ExtensionProviderProperties) InitWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionProviderProperties { rv := objc.Call[ExtensionProviderProperties](e_, objc.Sel("initWithDictionary:"), propertiesDictionary) return rv @@ -54,18 +66,6 @@ func NewExtensionProviderPropertiesWithDictionary(propertiesDictionary map[Exten return instance } -func (ec _ExtensionProviderPropertiesClass) ProviderPropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionProviderProperties { - rv := objc.Call[ExtensionProviderProperties](ec, objc.Sel("providerPropertiesWithDictionary:"), propertiesDictionary) - return rv -} - -// Returns a new provider properties object with the specified properties. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionproviderproperties/3915921-providerpropertieswithdictionary?language=objc -func ExtensionProviderProperties_ProviderPropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionProviderProperties { - return ExtensionProviderPropertiesClass.ProviderPropertiesWithDictionary(propertiesDictionary) -} - func (ec _ExtensionProviderPropertiesClass) Alloc() ExtensionProviderProperties { rv := objc.Call[ExtensionProviderProperties](ec, objc.Sel("alloc")) return rv diff --git a/macos/coremediaio/extension_provider_source_protocol.gen.go b/macos/coremediaio/extension_provider_source_protocol.gen.go index 7f351059..caf6477e 100644 --- a/macos/coremediaio/extension_provider_source_protocol.gen.go +++ b/macos/coremediaio/extension_provider_source_protocol.gen.go @@ -17,6 +17,10 @@ type PExtensionProviderSource interface { SetProviderPropertiesError(providerProperties ExtensionProviderProperties, outError unsafe.Pointer) bool HasSetProviderPropertiesError() bool + // optional + ProviderPropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionProviderProperties + HasProviderPropertiesForPropertiesError() bool + // optional ConnectClientError(client ExtensionClient, outError unsafe.Pointer) bool HasConnectClientError() bool @@ -25,10 +29,6 @@ type PExtensionProviderSource interface { DisconnectClient(client ExtensionClient) HasDisconnectClient() bool - // optional - ProviderPropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionProviderProperties - HasProviderPropertiesForPropertiesError() bool - // optional AvailableProperties() foundation.Set HasAvailableProperties() bool @@ -54,6 +54,18 @@ func (e_ ExtensionProviderSourceObject) SetProviderPropertiesError(providerPrope return rv } +func (e_ ExtensionProviderSourceObject) HasProviderPropertiesForPropertiesError() bool { + return e_.RespondsToSelector(objc.Sel("providerPropertiesForProperties:error:")) +} + +// Gets the state of provider properties. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovidersource/3915927-providerpropertiesforproperties?language=objc +func (e_ ExtensionProviderSourceObject) ProviderPropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionProviderProperties { + rv := objc.Call[ExtensionProviderProperties](e_, objc.Sel("providerPropertiesForProperties:error:"), properties, outError) + return rv +} + func (e_ ExtensionProviderSourceObject) HasConnectClientError() bool { return e_.RespondsToSelector(objc.Sel("connectClient:error:")) } @@ -77,18 +89,6 @@ func (e_ ExtensionProviderSourceObject) DisconnectClient(client ExtensionClient) objc.Call[objc.Void](e_, objc.Sel("disconnectClient:"), client) } -func (e_ ExtensionProviderSourceObject) HasProviderPropertiesForPropertiesError() bool { - return e_.RespondsToSelector(objc.Sel("providerPropertiesForProperties:error:")) -} - -// Gets the state of provider properties. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovidersource/3915927-providerpropertiesforproperties?language=objc -func (e_ ExtensionProviderSourceObject) ProviderPropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionProviderProperties { - rv := objc.Call[ExtensionProviderProperties](e_, objc.Sel("providerPropertiesForProperties:error:"), properties, outError) - return rv -} - func (e_ ExtensionProviderSourceObject) HasAvailableProperties() bool { return e_.RespondsToSelector(objc.Sel("availableProperties")) } diff --git a/macos/coremediaio/extension_stream.gen.go b/macos/coremediaio/extension_stream.gen.go index cc29a899..7062c9c6 100644 --- a/macos/coremediaio/extension_stream.gen.go +++ b/macos/coremediaio/extension_stream.gen.go @@ -20,17 +20,17 @@ type _ExtensionStreamClass struct { // An interface definition for the [ExtensionStream] class. type IExtensionStream interface { objc.IObject + NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) NotifyScheduledOutputChanged(scheduledOutput IExtensionScheduledOutput) - ConsumeSampleBufferFromClientCompletionHandler(client IExtensionClient, completionHandler func(sampleBuffer coremedia.SampleBufferRef, sampleBufferSequenceNumber uint64, discontinuity ExtensionStreamDiscontinuityFlags, hasMoreSampleBuffers bool, error foundation.Error)) SendSampleBufferDiscontinuityHostTimeInNanoseconds(sampleBuffer coremedia.SampleBufferRef, discontinuity ExtensionStreamDiscontinuityFlags, hostTimeInNanoseconds uint64) - NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) - LocalizedName() string - StreamingClients() []ExtensionClient - Source() ExtensionStreamSourceObject + ConsumeSampleBufferFromClientCompletionHandler(client IExtensionClient, completionHandler func(sampleBuffer coremedia.SampleBufferRef, sampleBufferSequenceNumber uint64, discontinuity ExtensionStreamDiscontinuityFlags, hasMoreSampleBuffers bool, error foundation.Error)) StreamID() foundation.UUID - ClockType() ExtensionStreamClockType Direction() ExtensionStreamDirection + Source() ExtensionStreamSourceObject + LocalizedName() string + ClockType() ExtensionStreamClockType CustomClockConfiguration() ExtensionStreamCustomClockConfiguration + StreamingClients() []ExtensionClient } // An object that represents a stream of media data. [Full Topic] @@ -61,34 +61,6 @@ func NewExtensionStreamWithLocalizedNameStreamIDDirectionClockTypeSource(localiz return instance } -func (ec _ExtensionStreamClass) StreamWithLocalizedNameStreamIDDirectionCustomClockConfigurationSource(localizedName string, streamID foundation.IUUID, direction ExtensionStreamDirection, customClockConfiguration IExtensionStreamCustomClockConfiguration, source PExtensionStreamSource) ExtensionStream { - po4 := objc.WrapAsProtocol("CMIOExtensionStreamSource", source) - rv := objc.Call[ExtensionStream](ec, objc.Sel("streamWithLocalizedName:streamID:direction:customClockConfiguration:source:"), localizedName, streamID, direction, customClockConfiguration, po4) - return rv -} - -// Returns a new stream that uses a custom clock configuration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915943-streamwithlocalizedname?language=objc -func ExtensionStream_StreamWithLocalizedNameStreamIDDirectionCustomClockConfigurationSource(localizedName string, streamID foundation.IUUID, direction ExtensionStreamDirection, customClockConfiguration IExtensionStreamCustomClockConfiguration, source PExtensionStreamSource) ExtensionStream { - return ExtensionStreamClass.StreamWithLocalizedNameStreamIDDirectionCustomClockConfigurationSource(localizedName, streamID, direction, customClockConfiguration, source) -} - -func (e_ ExtensionStream) InitWithLocalizedNameStreamIDDirectionCustomClockConfigurationSource(localizedName string, streamID foundation.IUUID, direction ExtensionStreamDirection, customClockConfiguration IExtensionStreamCustomClockConfiguration, source PExtensionStreamSource) ExtensionStream { - po4 := objc.WrapAsProtocol("CMIOExtensionStreamSource", source) - rv := objc.Call[ExtensionStream](e_, objc.Sel("initWithLocalizedName:streamID:direction:customClockConfiguration:source:"), localizedName, streamID, direction, customClockConfiguration, po4) - return rv -} - -// Creates a stream that uses a custom clock configuration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915935-initwithlocalizedname?language=objc -func NewExtensionStreamWithLocalizedNameStreamIDDirectionCustomClockConfigurationSource(localizedName string, streamID foundation.IUUID, direction ExtensionStreamDirection, customClockConfiguration IExtensionStreamCustomClockConfiguration, source PExtensionStreamSource) ExtensionStream { - instance := ExtensionStreamClass.Alloc().InitWithLocalizedNameStreamIDDirectionCustomClockConfigurationSource(localizedName, streamID, direction, customClockConfiguration, source) - instance.Autorelease() - return instance -} - func (ec _ExtensionStreamClass) StreamWithLocalizedNameStreamIDDirectionClockTypeSource(localizedName string, streamID foundation.IUUID, direction ExtensionStreamDirection, clockType ExtensionStreamClockType, source PExtensionStreamSource) ExtensionStream { po4 := objc.WrapAsProtocol("CMIOExtensionStreamSource", source) rv := objc.Call[ExtensionStream](ec, objc.Sel("streamWithLocalizedName:streamID:direction:clockType:source:"), localizedName, streamID, direction, clockType, po4) @@ -122,6 +94,13 @@ func (e_ ExtensionStream) Init() ExtensionStream { return rv } +// Notifies clients about stream property changes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915937-notifypropertieschanged?language=objc +func (e_ ExtensionStream) NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) { + objc.Call[objc.Void](e_, objc.Sel("notifyPropertiesChanged:"), propertyStates) +} + // Notifies clients when a particular buffer is output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915938-notifyscheduledoutputchanged?language=objc @@ -129,13 +108,6 @@ func (e_ ExtensionStream) NotifyScheduledOutputChanged(scheduledOutput IExtensio objc.Call[objc.Void](e_, objc.Sel("notifyScheduledOutputChanged:"), scheduledOutput) } -// Consumes a sample buffer from a client. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915931-consumesamplebufferfromclient?language=objc -func (e_ ExtensionStream) ConsumeSampleBufferFromClientCompletionHandler(client IExtensionClient, completionHandler func(sampleBuffer coremedia.SampleBufferRef, sampleBufferSequenceNumber uint64, discontinuity ExtensionStreamDiscontinuityFlags, hasMoreSampleBuffers bool, error foundation.Error)) { - objc.Call[objc.Void](e_, objc.Sel("consumeSampleBufferFromClient:completionHandler:"), client, completionHandler) -} - // Sends a media sample to stream client. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915939-sendsamplebuffer?language=objc @@ -143,26 +115,26 @@ func (e_ ExtensionStream) SendSampleBufferDiscontinuityHostTimeInNanoseconds(sam objc.Call[objc.Void](e_, objc.Sel("sendSampleBuffer:discontinuity:hostTimeInNanoseconds:"), sampleBuffer, discontinuity, hostTimeInNanoseconds) } -// Notifies clients about stream property changes. [Full Topic] +// Consumes a sample buffer from a client. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915937-notifypropertieschanged?language=objc -func (e_ ExtensionStream) NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) { - objc.Call[objc.Void](e_, objc.Sel("notifyPropertiesChanged:"), propertyStates) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915931-consumesamplebufferfromclient?language=objc +func (e_ ExtensionStream) ConsumeSampleBufferFromClientCompletionHandler(client IExtensionClient, completionHandler func(sampleBuffer coremedia.SampleBufferRef, sampleBufferSequenceNumber uint64, discontinuity ExtensionStreamDiscontinuityFlags, hasMoreSampleBuffers bool, error foundation.Error)) { + objc.Call[objc.Void](e_, objc.Sel("consumeSampleBufferFromClient:completionHandler:"), client, completionHandler) } -// A localized name for the stream. [Full Topic] +// A universally unique identifier for the stream. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915936-localizedname?language=objc -func (e_ ExtensionStream) LocalizedName() string { - rv := objc.Call[string](e_, objc.Sel("localizedName")) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915941-streamid?language=objc +func (e_ ExtensionStream) StreamID() foundation.UUID { + rv := objc.Call[foundation.UUID](e_, objc.Sel("streamID")) return rv } -// An array of clients of the stream. [Full Topic] +// The data-flow direction of the stream. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915944-streamingclients?language=objc -func (e_ ExtensionStream) StreamingClients() []ExtensionClient { - rv := objc.Call[[]ExtensionClient](e_, objc.Sel("streamingClients")) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915933-direction?language=objc +func (e_ ExtensionStream) Direction() ExtensionStreamDirection { + rv := objc.Call[ExtensionStreamDirection](e_, objc.Sel("direction")) return rv } @@ -174,11 +146,11 @@ func (e_ ExtensionStream) Source() ExtensionStreamSourceObject { return rv } -// A universally unique identifier for the stream. [Full Topic] +// A localized name for the stream. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915941-streamid?language=objc -func (e_ ExtensionStream) StreamID() foundation.UUID { - rv := objc.Call[foundation.UUID](e_, objc.Sel("streamID")) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915936-localizedname?language=objc +func (e_ ExtensionStream) LocalizedName() string { + rv := objc.Call[string](e_, objc.Sel("localizedName")) return rv } @@ -190,14 +162,6 @@ func (e_ ExtensionStream) ClockType() ExtensionStreamClockType { return rv } -// The data-flow direction of the stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915933-direction?language=objc -func (e_ ExtensionStream) Direction() ExtensionStreamDirection { - rv := objc.Call[ExtensionStreamDirection](e_, objc.Sel("direction")) - return rv -} - // An optional custom clock configuration for a stream. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915932-customclockconfiguration?language=objc @@ -205,3 +169,11 @@ func (e_ ExtensionStream) CustomClockConfiguration() ExtensionStreamCustomClockC rv := objc.Call[ExtensionStreamCustomClockConfiguration](e_, objc.Sel("customClockConfiguration")) return rv } + +// An array of clients of the stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915944-streamingclients?language=objc +func (e_ ExtensionStream) StreamingClients() []ExtensionClient { + rv := objc.Call[[]ExtensionClient](e_, objc.Sel("streamingClients")) + return rv +} diff --git a/macos/coremediaio/extension_stream_custom_clock_configuration.gen.go b/macos/coremediaio/extension_stream_custom_clock_configuration.gen.go index 2872d65d..da1d2825 100644 --- a/macos/coremediaio/extension_stream_custom_clock_configuration.gen.go +++ b/macos/coremediaio/extension_stream_custom_clock_configuration.gen.go @@ -20,11 +20,11 @@ type _ExtensionStreamCustomClockConfigurationClass struct { // An interface definition for the [ExtensionStreamCustomClockConfiguration] class. type IExtensionStreamCustomClockConfiguration interface { objc.IObject - SourceIdentifier() foundation.UUID NumberOfEventsForRateSmoothing() uint32 + NumberOfAveragesForRateSmoothing() uint32 + SourceIdentifier() foundation.UUID GetTimeCallMinimumInterval() coremedia.Time ClockName() string - NumberOfAveragesForRateSmoothing() uint32 } // An object that describes the parameters to create a custom clock on the host side. [Full Topic] @@ -40,18 +40,6 @@ func ExtensionStreamCustomClockConfigurationFrom(ptr unsafe.Pointer) ExtensionSt } } -func (ec _ExtensionStreamCustomClockConfigurationClass) CustomClockConfigurationWithClockNameSourceIdentifierGetTimeCallMinimumIntervalNumberOfEventsForRateSmoothingNumberOfAveragesForRateSmoothing(clockName string, sourceIdentifier foundation.IUUID, getTimeCallMinimumInterval coremedia.Time, numberOfEventsForRateSmoothing uint32, numberOfAveragesForRateSmoothing uint32) ExtensionStreamCustomClockConfiguration { - rv := objc.Call[ExtensionStreamCustomClockConfiguration](ec, objc.Sel("customClockConfigurationWithClockName:sourceIdentifier:getTimeCallMinimumInterval:numberOfEventsForRateSmoothing:numberOfAveragesForRateSmoothing:"), clockName, sourceIdentifier, getTimeCallMinimumInterval, numberOfEventsForRateSmoothing, numberOfAveragesForRateSmoothing) - return rv -} - -// Returns a new a custom clock configuration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamcustomclockconfiguration/3915890-customclockconfigurationwithcloc?language=objc -func ExtensionStreamCustomClockConfiguration_CustomClockConfigurationWithClockNameSourceIdentifierGetTimeCallMinimumIntervalNumberOfEventsForRateSmoothingNumberOfAveragesForRateSmoothing(clockName string, sourceIdentifier foundation.IUUID, getTimeCallMinimumInterval coremedia.Time, numberOfEventsForRateSmoothing uint32, numberOfAveragesForRateSmoothing uint32) ExtensionStreamCustomClockConfiguration { - return ExtensionStreamCustomClockConfigurationClass.CustomClockConfigurationWithClockNameSourceIdentifierGetTimeCallMinimumIntervalNumberOfEventsForRateSmoothingNumberOfAveragesForRateSmoothing(clockName, sourceIdentifier, getTimeCallMinimumInterval, numberOfEventsForRateSmoothing, numberOfAveragesForRateSmoothing) -} - func (e_ ExtensionStreamCustomClockConfiguration) InitWithClockNameSourceIdentifierGetTimeCallMinimumIntervalNumberOfEventsForRateSmoothingNumberOfAveragesForRateSmoothing(clockName string, sourceIdentifier foundation.IUUID, getTimeCallMinimumInterval coremedia.Time, numberOfEventsForRateSmoothing uint32, numberOfAveragesForRateSmoothing uint32) ExtensionStreamCustomClockConfiguration { rv := objc.Call[ExtensionStreamCustomClockConfiguration](e_, objc.Sel("initWithClockName:sourceIdentifier:getTimeCallMinimumInterval:numberOfEventsForRateSmoothing:numberOfAveragesForRateSmoothing:"), clockName, sourceIdentifier, getTimeCallMinimumInterval, numberOfEventsForRateSmoothing, numberOfAveragesForRateSmoothing) return rv @@ -66,6 +54,18 @@ func NewExtensionStreamCustomClockConfigurationWithClockNameSourceIdentifierGetT return instance } +func (ec _ExtensionStreamCustomClockConfigurationClass) CustomClockConfigurationWithClockNameSourceIdentifierGetTimeCallMinimumIntervalNumberOfEventsForRateSmoothingNumberOfAveragesForRateSmoothing(clockName string, sourceIdentifier foundation.IUUID, getTimeCallMinimumInterval coremedia.Time, numberOfEventsForRateSmoothing uint32, numberOfAveragesForRateSmoothing uint32) ExtensionStreamCustomClockConfiguration { + rv := objc.Call[ExtensionStreamCustomClockConfiguration](ec, objc.Sel("customClockConfigurationWithClockName:sourceIdentifier:getTimeCallMinimumInterval:numberOfEventsForRateSmoothing:numberOfAveragesForRateSmoothing:"), clockName, sourceIdentifier, getTimeCallMinimumInterval, numberOfEventsForRateSmoothing, numberOfAveragesForRateSmoothing) + return rv +} + +// Returns a new a custom clock configuration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamcustomclockconfiguration/3915890-customclockconfigurationwithcloc?language=objc +func ExtensionStreamCustomClockConfiguration_CustomClockConfigurationWithClockNameSourceIdentifierGetTimeCallMinimumIntervalNumberOfEventsForRateSmoothingNumberOfAveragesForRateSmoothing(clockName string, sourceIdentifier foundation.IUUID, getTimeCallMinimumInterval coremedia.Time, numberOfEventsForRateSmoothing uint32, numberOfAveragesForRateSmoothing uint32) ExtensionStreamCustomClockConfiguration { + return ExtensionStreamCustomClockConfigurationClass.CustomClockConfigurationWithClockNameSourceIdentifierGetTimeCallMinimumIntervalNumberOfEventsForRateSmoothingNumberOfAveragesForRateSmoothing(clockName, sourceIdentifier, getTimeCallMinimumInterval, numberOfEventsForRateSmoothing, numberOfAveragesForRateSmoothing) +} + func (ec _ExtensionStreamCustomClockConfigurationClass) Alloc() ExtensionStreamCustomClockConfiguration { rv := objc.Call[ExtensionStreamCustomClockConfiguration](ec, objc.Sel("alloc")) return rv @@ -86,14 +86,6 @@ func (e_ ExtensionStreamCustomClockConfiguration) Init() ExtensionStreamCustomCl return rv } -// A universally unique identifier for the clock. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamcustomclockconfiguration/3915895-sourceidentifier?language=objc -func (e_ ExtensionStreamCustomClockConfiguration) SourceIdentifier() foundation.UUID { - rv := objc.Call[foundation.UUID](e_, objc.Sel("sourceIdentifier")) - return rv -} - // The number of events to use for rate smoothing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamcustomclockconfiguration/3915894-numberofeventsforratesmoothing?language=objc @@ -102,6 +94,22 @@ func (e_ ExtensionStreamCustomClockConfiguration) NumberOfEventsForRateSmoothing return rv } +// The number of averages to use for rate smoothing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamcustomclockconfiguration/3915893-numberofaveragesforratesmoothing?language=objc +func (e_ ExtensionStreamCustomClockConfiguration) NumberOfAveragesForRateSmoothing() uint32 { + rv := objc.Call[uint32](e_, objc.Sel("numberOfAveragesForRateSmoothing")) + return rv +} + +// A universally unique identifier for the clock. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamcustomclockconfiguration/3915895-sourceidentifier?language=objc +func (e_ ExtensionStreamCustomClockConfiguration) SourceIdentifier() foundation.UUID { + rv := objc.Call[foundation.UUID](e_, objc.Sel("sourceIdentifier")) + return rv +} + // A minimum call time interval for the clock. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamcustomclockconfiguration/3915891-gettimecallminimuminterval?language=objc @@ -117,11 +125,3 @@ func (e_ ExtensionStreamCustomClockConfiguration) ClockName() string { rv := objc.Call[string](e_, objc.Sel("clockName")) return rv } - -// The number of averages to use for rate smoothing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamcustomclockconfiguration/3915893-numberofaveragesforratesmoothing?language=objc -func (e_ ExtensionStreamCustomClockConfiguration) NumberOfAveragesForRateSmoothing() uint32 { - rv := objc.Call[uint32](e_, objc.Sel("numberOfAveragesForRateSmoothing")) - return rv -} diff --git a/macos/coremediaio/extension_stream_format.gen.go b/macos/coremediaio/extension_stream_format.gen.go index 8ac4ab66..6946a548 100644 --- a/macos/coremediaio/extension_stream_format.gen.go +++ b/macos/coremediaio/extension_stream_format.gen.go @@ -20,10 +20,10 @@ type _ExtensionStreamFormatClass struct { // An interface definition for the [ExtensionStreamFormat] class. type IExtensionStreamFormat interface { objc.IObject + MaxFrameDuration() coremedia.Time MinFrameDuration() coremedia.Time FormatDescription() coremedia.FormatDescriptionRef ValidFrameDurations() []foundation.Dictionary - MaxFrameDuration() coremedia.Time } // An object that describes the format of a media stream. [Full Topic] @@ -39,6 +39,18 @@ func ExtensionStreamFormatFrom(ptr unsafe.Pointer) ExtensionStreamFormat { } } +func (ec _ExtensionStreamFormatClass) StreamFormatWithFormatDescriptionMaxFrameDurationMinFrameDurationValidFrameDurations(formatDescription coremedia.FormatDescriptionRef, maxFrameDuration coremedia.Time, minFrameDuration coremedia.Time, validFrameDurations []foundation.Dictionary) ExtensionStreamFormat { + rv := objc.Call[ExtensionStreamFormat](ec, objc.Sel("streamFormatWithFormatDescription:maxFrameDuration:minFrameDuration:validFrameDurations:"), formatDescription, maxFrameDuration, minFrameDuration, validFrameDurations) + return rv +} + +// Returns a new stream format with a format description and frame durations. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamformat/3915901-streamformatwithformatdescriptio?language=objc +func ExtensionStreamFormat_StreamFormatWithFormatDescriptionMaxFrameDurationMinFrameDurationValidFrameDurations(formatDescription coremedia.FormatDescriptionRef, maxFrameDuration coremedia.Time, minFrameDuration coremedia.Time, validFrameDurations []foundation.Dictionary) ExtensionStreamFormat { + return ExtensionStreamFormatClass.StreamFormatWithFormatDescriptionMaxFrameDurationMinFrameDurationValidFrameDurations(formatDescription, maxFrameDuration, minFrameDuration, validFrameDurations) +} + func (e_ ExtensionStreamFormat) InitWithFormatDescriptionMaxFrameDurationMinFrameDurationValidFrameDurations(formatDescription coremedia.FormatDescriptionRef, maxFrameDuration coremedia.Time, minFrameDuration coremedia.Time, validFrameDurations []foundation.Dictionary) ExtensionStreamFormat { rv := objc.Call[ExtensionStreamFormat](e_, objc.Sel("initWithFormatDescription:maxFrameDuration:minFrameDuration:validFrameDurations:"), formatDescription, maxFrameDuration, minFrameDuration, validFrameDurations) return rv @@ -53,18 +65,6 @@ func NewExtensionStreamFormatWithFormatDescriptionMaxFrameDurationMinFrameDurati return instance } -func (ec _ExtensionStreamFormatClass) StreamFormatWithFormatDescriptionMaxFrameDurationMinFrameDurationValidFrameDurations(formatDescription coremedia.FormatDescriptionRef, maxFrameDuration coremedia.Time, minFrameDuration coremedia.Time, validFrameDurations []foundation.Dictionary) ExtensionStreamFormat { - rv := objc.Call[ExtensionStreamFormat](ec, objc.Sel("streamFormatWithFormatDescription:maxFrameDuration:minFrameDuration:validFrameDurations:"), formatDescription, maxFrameDuration, minFrameDuration, validFrameDurations) - return rv -} - -// Returns a new stream format with a format description and frame durations. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamformat/3915901-streamformatwithformatdescriptio?language=objc -func ExtensionStreamFormat_StreamFormatWithFormatDescriptionMaxFrameDurationMinFrameDurationValidFrameDurations(formatDescription coremedia.FormatDescriptionRef, maxFrameDuration coremedia.Time, minFrameDuration coremedia.Time, validFrameDurations []foundation.Dictionary) ExtensionStreamFormat { - return ExtensionStreamFormatClass.StreamFormatWithFormatDescriptionMaxFrameDurationMinFrameDurationValidFrameDurations(formatDescription, maxFrameDuration, minFrameDuration, validFrameDurations) -} - func (ec _ExtensionStreamFormatClass) Alloc() ExtensionStreamFormat { rv := objc.Call[ExtensionStreamFormat](ec, objc.Sel("alloc")) return rv @@ -85,6 +85,14 @@ func (e_ ExtensionStreamFormat) Init() ExtensionStreamFormat { return rv } +// The maximum duration a stream supports. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamformat/3915899-maxframeduration?language=objc +func (e_ ExtensionStreamFormat) MaxFrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](e_, objc.Sel("maxFrameDuration")) + return rv +} + // The minimum frame duration a stream supports. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamformat/3915900-minframeduration?language=objc @@ -108,11 +116,3 @@ func (e_ ExtensionStreamFormat) ValidFrameDurations() []foundation.Dictionary { rv := objc.Call[[]foundation.Dictionary](e_, objc.Sel("validFrameDurations")) return rv } - -// The maximum duration a stream supports. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamformat/3915899-maxframeduration?language=objc -func (e_ ExtensionStreamFormat) MaxFrameDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](e_, objc.Sel("maxFrameDuration")) - return rv -} diff --git a/macos/coremediaio/extension_stream_properties.gen.go b/macos/coremediaio/extension_stream_properties.gen.go index 6a2aa720..b18f8f85 100644 --- a/macos/coremediaio/extension_stream_properties.gen.go +++ b/macos/coremediaio/extension_stream_properties.gen.go @@ -20,12 +20,10 @@ type _ExtensionStreamPropertiesClass struct { type IExtensionStreamProperties interface { objc.IObject SetPropertyStateForProperty(propertyState IExtensionPropertyState, property ExtensionProperty) - PropertiesDictionary() map[ExtensionProperty]ExtensionPropertyState - SetPropertiesDictionary(value map[ExtensionProperty]IExtensionPropertyState) - SinkBufferQueueSize() foundation.Number - SetSinkBufferQueueSize(value foundation.INumber) MaxFrameDuration() foundation.Dictionary SetMaxFrameDuration(value foundation.Dictionary) + SinkBufferUnderrunCount() foundation.Number + SetSinkBufferUnderrunCount(value foundation.INumber) SinkBuffersRequiredForStartup() foundation.Number SetSinkBuffersRequiredForStartup(value foundation.INumber) ActiveFormatIndex() foundation.Number @@ -34,8 +32,10 @@ type IExtensionStreamProperties interface { SetFrameDuration(value foundation.Dictionary) SinkEndOfData() foundation.Number SetSinkEndOfData(value foundation.INumber) - SinkBufferUnderrunCount() foundation.Number - SetSinkBufferUnderrunCount(value foundation.INumber) + SinkBufferQueueSize() foundation.Number + SetSinkBufferQueueSize(value foundation.INumber) + PropertiesDictionary() map[ExtensionProperty]ExtensionPropertyState + SetPropertiesDictionary(value map[ExtensionProperty]IExtensionPropertyState) } // An object that describes the properties of an extension stream. [Full Topic] @@ -51,18 +51,6 @@ func ExtensionStreamPropertiesFrom(ptr unsafe.Pointer) ExtensionStreamProperties } } -func (ec _ExtensionStreamPropertiesClass) StreamPropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionStreamProperties { - rv := objc.Call[ExtensionStreamProperties](ec, objc.Sel("streamPropertiesWithDictionary:"), propertiesDictionary) - return rv -} - -// Returns a new properties object that provides the specified properties and default states. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915968-streampropertieswithdictionary?language=objc -func ExtensionStreamProperties_StreamPropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionStreamProperties { - return ExtensionStreamPropertiesClass.StreamPropertiesWithDictionary(propertiesDictionary) -} - func (e_ ExtensionStreamProperties) InitWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionStreamProperties { rv := objc.Call[ExtensionStreamProperties](e_, objc.Sel("initWithDictionary:"), propertiesDictionary) return rv @@ -77,6 +65,18 @@ func NewExtensionStreamPropertiesWithDictionary(propertiesDictionary map[Extensi return instance } +func (ec _ExtensionStreamPropertiesClass) StreamPropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionStreamProperties { + rv := objc.Call[ExtensionStreamProperties](ec, objc.Sel("streamPropertiesWithDictionary:"), propertiesDictionary) + return rv +} + +// Returns a new properties object that provides the specified properties and default states. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915968-streampropertieswithdictionary?language=objc +func ExtensionStreamProperties_StreamPropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionStreamProperties { + return ExtensionStreamPropertiesClass.StreamPropertiesWithDictionary(propertiesDictionary) +} + func (ec _ExtensionStreamPropertiesClass) Alloc() ExtensionStreamProperties { rv := objc.Call[ExtensionStreamProperties](ec, objc.Sel("alloc")) return rv @@ -104,36 +104,6 @@ func (e_ ExtensionStreamProperties) SetPropertyStateForProperty(propertyState IE objc.Call[objc.Void](e_, objc.Sel("setPropertyState:forProperty:"), propertyState, property) } -// A dictionary representation of the property state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915962-propertiesdictionary?language=objc -func (e_ ExtensionStreamProperties) PropertiesDictionary() map[ExtensionProperty]ExtensionPropertyState { - rv := objc.Call[map[ExtensionProperty]ExtensionPropertyState](e_, objc.Sel("propertiesDictionary")) - return rv -} - -// A dictionary representation of the property state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915962-propertiesdictionary?language=objc -func (e_ ExtensionStreamProperties) SetPropertiesDictionary(value map[ExtensionProperty]IExtensionPropertyState) { - objc.Call[objc.Void](e_, objc.Sel("setPropertiesDictionary:"), value) -} - -// The buffer queue size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915964-sinkbufferqueuesize?language=objc -func (e_ ExtensionStreamProperties) SinkBufferQueueSize() foundation.Number { - rv := objc.Call[foundation.Number](e_, objc.Sel("sinkBufferQueueSize")) - return rv -} - -// The buffer queue size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915964-sinkbufferqueuesize?language=objc -func (e_ ExtensionStreamProperties) SetSinkBufferQueueSize(value foundation.INumber) { - objc.Call[objc.Void](e_, objc.Sel("setSinkBufferQueueSize:"), value) -} - // The maximum duration of a frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915961-maxframeduration?language=objc @@ -149,6 +119,21 @@ func (e_ ExtensionStreamProperties) SetMaxFrameDuration(value foundation.Diction objc.Call[objc.Void](e_, objc.Sel("setMaxFrameDuration:"), value) } +// The buffer underrun count. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915965-sinkbufferunderruncount?language=objc +func (e_ ExtensionStreamProperties) SinkBufferUnderrunCount() foundation.Number { + rv := objc.Call[foundation.Number](e_, objc.Sel("sinkBufferUnderrunCount")) + return rv +} + +// The buffer underrun count. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915965-sinkbufferunderruncount?language=objc +func (e_ ExtensionStreamProperties) SetSinkBufferUnderrunCount(value foundation.INumber) { + objc.Call[objc.Void](e_, objc.Sel("setSinkBufferUnderrunCount:"), value) +} + // The number of buffers the stream requires for startup. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915966-sinkbuffersrequiredforstartup?language=objc @@ -209,17 +194,32 @@ func (e_ ExtensionStreamProperties) SetSinkEndOfData(value foundation.INumber) { objc.Call[objc.Void](e_, objc.Sel("setSinkEndOfData:"), value) } -// The buffer underrun count. [Full Topic] +// The buffer queue size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915965-sinkbufferunderruncount?language=objc -func (e_ ExtensionStreamProperties) SinkBufferUnderrunCount() foundation.Number { - rv := objc.Call[foundation.Number](e_, objc.Sel("sinkBufferUnderrunCount")) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915964-sinkbufferqueuesize?language=objc +func (e_ ExtensionStreamProperties) SinkBufferQueueSize() foundation.Number { + rv := objc.Call[foundation.Number](e_, objc.Sel("sinkBufferQueueSize")) return rv } -// The buffer underrun count. [Full Topic] +// The buffer queue size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915965-sinkbufferunderruncount?language=objc -func (e_ ExtensionStreamProperties) SetSinkBufferUnderrunCount(value foundation.INumber) { - objc.Call[objc.Void](e_, objc.Sel("setSinkBufferUnderrunCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915964-sinkbufferqueuesize?language=objc +func (e_ ExtensionStreamProperties) SetSinkBufferQueueSize(value foundation.INumber) { + objc.Call[objc.Void](e_, objc.Sel("setSinkBufferQueueSize:"), value) +} + +// A dictionary representation of the property state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915962-propertiesdictionary?language=objc +func (e_ ExtensionStreamProperties) PropertiesDictionary() map[ExtensionProperty]ExtensionPropertyState { + rv := objc.Call[map[ExtensionProperty]ExtensionPropertyState](e_, objc.Sel("propertiesDictionary")) + return rv +} + +// A dictionary representation of the property state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915962-propertiesdictionary?language=objc +func (e_ ExtensionStreamProperties) SetPropertiesDictionary(value map[ExtensionProperty]IExtensionPropertyState) { + objc.Call[objc.Void](e_, objc.Sel("setPropertiesDictionary:"), value) } diff --git a/macos/coremediaio/extension_stream_source_protocol.gen.go b/macos/coremediaio/extension_stream_source_protocol.gen.go index 563b6a29..1ecaa174 100644 --- a/macos/coremediaio/extension_stream_source_protocol.gen.go +++ b/macos/coremediaio/extension_stream_source_protocol.gen.go @@ -13,14 +13,18 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource?language=objc type PExtensionStreamSource interface { - // optional - StreamPropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionStreamProperties - HasStreamPropertiesForPropertiesError() bool - // optional AuthorizedToStartStreamForClient(client ExtensionClient) bool HasAuthorizedToStartStreamForClient() bool + // optional + StopStreamAndReturnError(outError unsafe.Pointer) bool + HasStopStreamAndReturnError() bool + + // optional + StreamPropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionStreamProperties + HasStreamPropertiesForPropertiesError() bool + // optional SetStreamPropertiesError(streamProperties ExtensionStreamProperties, outError unsafe.Pointer) bool HasSetStreamPropertiesError() bool @@ -29,10 +33,6 @@ type PExtensionStreamSource interface { StartStreamAndReturnError(outError unsafe.Pointer) bool HasStartStreamAndReturnError() bool - // optional - StopStreamAndReturnError(outError unsafe.Pointer) bool - HasStopStreamAndReturnError() bool - // optional Formats() []ExtensionStreamFormat HasFormats() bool @@ -50,18 +50,6 @@ type ExtensionStreamSourceObject struct { objc.Object } -func (e_ ExtensionStreamSourceObject) HasStreamPropertiesForPropertiesError() bool { - return e_.RespondsToSelector(objc.Sel("streamPropertiesForProperties:error:")) -} - -// Gets the states of specified properties. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915976-streampropertiesforproperties?language=objc -func (e_ ExtensionStreamSourceObject) StreamPropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionStreamProperties { - rv := objc.Call[ExtensionStreamProperties](e_, objc.Sel("streamPropertiesForProperties:error:"), properties, outError) - return rv -} - func (e_ ExtensionStreamSourceObject) HasAuthorizedToStartStreamForClient() bool { return e_.RespondsToSelector(objc.Sel("authorizedToStartStreamForClient:")) } @@ -74,6 +62,30 @@ func (e_ ExtensionStreamSourceObject) AuthorizedToStartStreamForClient(client Ex return rv } +func (e_ ExtensionStreamSourceObject) HasStopStreamAndReturnError() bool { + return e_.RespondsToSelector(objc.Sel("stopStreamAndReturnError:")) +} + +// Stops the stream of media data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915975-stopstreamandreturnerror?language=objc +func (e_ ExtensionStreamSourceObject) StopStreamAndReturnError(outError unsafe.Pointer) bool { + rv := objc.Call[bool](e_, objc.Sel("stopStreamAndReturnError:"), outError) + return rv +} + +func (e_ ExtensionStreamSourceObject) HasStreamPropertiesForPropertiesError() bool { + return e_.RespondsToSelector(objc.Sel("streamPropertiesForProperties:error:")) +} + +// Gets the states of specified properties. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915976-streampropertiesforproperties?language=objc +func (e_ ExtensionStreamSourceObject) StreamPropertiesForPropertiesError(properties foundation.Set, outError unsafe.Pointer) ExtensionStreamProperties { + rv := objc.Call[ExtensionStreamProperties](e_, objc.Sel("streamPropertiesForProperties:error:"), properties, outError) + return rv +} + func (e_ ExtensionStreamSourceObject) HasSetStreamPropertiesError() bool { return e_.RespondsToSelector(objc.Sel("setStreamProperties:error:")) } @@ -98,18 +110,6 @@ func (e_ ExtensionStreamSourceObject) StartStreamAndReturnError(outError unsafe. return rv } -func (e_ ExtensionStreamSourceObject) HasStopStreamAndReturnError() bool { - return e_.RespondsToSelector(objc.Sel("stopStreamAndReturnError:")) -} - -// Stops the stream of media data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915975-stopstreamandreturnerror?language=objc -func (e_ ExtensionStreamSourceObject) StopStreamAndReturnError(outError unsafe.Pointer) bool { - rv := objc.Call[bool](e_, objc.Sel("stopStreamAndReturnError:"), outError) - return rv -} - func (e_ ExtensionStreamSourceObject) HasFormats() bool { return e_.RespondsToSelector(objc.Sel("formats")) } diff --git a/macos/coremidi/ci_device_info.gen.go b/macos/coremidi/ci_device_info.gen.go index 9e7ff2e6..ce658bd6 100644 --- a/macos/coremidi/ci_device_info.gen.go +++ b/macos/coremidi/ci_device_info.gen.go @@ -18,10 +18,10 @@ type _CIDeviceInfoClass struct { // An interface definition for the [CIDeviceInfo] class. type ICIDeviceInfo interface { objc.IObject - Family() []byte ManufacturerID() []byte - MidiDestination() EndpointRef RevisionLevel() []byte + Family() []byte + MidiDestination() EndpointRef ModelNumber() []byte } @@ -72,14 +72,6 @@ func (c_ CIDeviceInfo) Init() CIDeviceInfo { return rv } -// The family to which the device belongs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicideviceinfo/3553235-family?language=objc -func (c_ CIDeviceInfo) Family() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("family")) - return rv -} - // The MIDI System Exclusive (SysEx) ID of the device manufacturer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midicideviceinfo/3553237-manufacturerid?language=objc @@ -88,14 +80,6 @@ func (c_ CIDeviceInfo) ManufacturerID() []byte { return rv } -// The MIDI destination the device’s MIDI entity uses for capability inquiries. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicideviceinfo/3580318-mididestination?language=objc -func (c_ CIDeviceInfo) MidiDestination() EndpointRef { - rv := objc.Call[EndpointRef](c_, objc.Sel("midiDestination")) - return rv -} - // The revision number of the device model number. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midicideviceinfo/3553239-revisionlevel?language=objc @@ -104,6 +88,22 @@ func (c_ CIDeviceInfo) RevisionLevel() []byte { return rv } +// The family to which the device belongs. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicideviceinfo/3553235-family?language=objc +func (c_ CIDeviceInfo) Family() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("family")) + return rv +} + +// The MIDI destination the device’s MIDI entity uses for capability inquiries. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicideviceinfo/3580318-mididestination?language=objc +func (c_ CIDeviceInfo) MidiDestination() EndpointRef { + rv := objc.Call[EndpointRef](c_, objc.Sel("midiDestination")) + return rv +} + // The model number of the device. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midicideviceinfo/3553238-modelnumber?language=objc diff --git a/macos/coremidi/ci_discovered_node.gen.go b/macos/coremidi/ci_discovered_node.gen.go index 8c68b1a7..9b20c2a6 100644 --- a/macos/coremidi/ci_discovered_node.gen.go +++ b/macos/coremidi/ci_discovered_node.gen.go @@ -19,11 +19,11 @@ type _CIDiscoveredNodeClass struct { // An interface definition for the [CIDiscoveredNode] class. type ICIDiscoveredNode interface { objc.IObject - SupportsProfiles() bool - Destination() EntityRef SupportsProperties() bool MaximumSysExSize() foundation.Number + SupportsProfiles() bool DeviceInfo() CIDeviceInfo + Destination() EntityRef } // A discovered MIDI-CI node that represents a MIDI source and destination that respond to capability inquiries. [Full Topic] @@ -59,22 +59,6 @@ func (c_ CIDiscoveredNode) Init() CIDiscoveredNode { return rv } -// A Boolean value that indicates whether this node supports MIDI-CI profiles. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicidiscoverednode/3580323-supportsprofiles?language=objc -func (c_ CIDiscoveredNode) SupportsProfiles() bool { - rv := objc.Call[bool](c_, objc.Sel("supportsProfiles")) - return rv -} - -// The node’s MIDI destination. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicidiscoverednode/3580320-destination?language=objc -func (c_ CIDiscoveredNode) Destination() EntityRef { - rv := objc.Call[EntityRef](c_, objc.Sel("destination")) - return rv -} - // A Boolean value that indicates whether this node supports MIDI-CI properties. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midicidiscoverednode/3580324-supportsproperties?language=objc @@ -91,6 +75,14 @@ func (c_ CIDiscoveredNode) MaximumSysExSize() foundation.Number { return rv } +// A Boolean value that indicates whether this node supports MIDI-CI profiles. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicidiscoverednode/3580323-supportsprofiles?language=objc +func (c_ CIDiscoveredNode) SupportsProfiles() bool { + rv := objc.Call[bool](c_, objc.Sel("supportsProfiles")) + return rv +} + // The available MIDI-CI device information. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midicidiscoverednode/3580321-deviceinfo?language=objc @@ -98,3 +90,11 @@ func (c_ CIDiscoveredNode) DeviceInfo() CIDeviceInfo { rv := objc.Call[CIDeviceInfo](c_, objc.Sel("deviceInfo")) return rv } + +// The node’s MIDI destination. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicidiscoverednode/3580320-destination?language=objc +func (c_ CIDiscoveredNode) Destination() EntityRef { + rv := objc.Call[EntityRef](c_, objc.Sel("destination")) + return rv +} diff --git a/macos/coremidi/ci_profile.gen.go b/macos/coremidi/ci_profile.gen.go index 32ae4e02..5b647c47 100644 --- a/macos/coremidi/ci_profile.gen.go +++ b/macos/coremidi/ci_profile.gen.go @@ -49,20 +49,6 @@ func NewCIProfileWithData(data []byte) CIProfile { return instance } -func (c_ CIProfile) InitWithDataName(data []byte, inName string) CIProfile { - rv := objc.Call[CIProfile](c_, objc.Sel("initWithData:name:"), data, inName) - return rv -} - -// Creates a named MIDI profile for the specified data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofile/2977104-initwithdata?language=objc -func NewCIProfileWithDataName(data []byte, inName string) CIProfile { - instance := CIProfileClass.Alloc().InitWithDataName(data, inName) - instance.Autorelease() - return instance -} - func (cc _CIProfileClass) Alloc() CIProfile { rv := objc.Call[CIProfile](cc, objc.Sel("alloc")) return rv diff --git a/macos/coremidi/ci_profile_responder_delegate.gen.go b/macos/coremidi/ci_profile_responder_delegate.gen.go index 336729ba..08fda562 100644 --- a/macos/coremidi/ci_profile_responder_delegate.gen.go +++ b/macos/coremidi/ci_profile_responder_delegate.gen.go @@ -10,65 +10,31 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate?language=objc type PCIProfileResponderDelegate interface { - // optional - InitiatorDisconnected(initiatorMUID CIInitiatiorMUID) - HasInitiatorDisconnected() bool - - // optional - ConnectInitiatorWithDeviceInfo(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool - HasConnectInitiatorWithDeviceInfo() bool - // optional WillSetProfileOnChannelEnabled(aProfile CIProfile, channel ChannelNumber, shouldEnable bool) bool HasWillSetProfileOnChannelEnabled() bool + // optional + InitiatorDisconnected(initiatorMUID CIInitiatiorMUID) + HasInitiatorDisconnected() bool + // optional HandleDataForProfileOnChannelData(aProfile CIProfile, channel ChannelNumber, inData []byte) HasHandleDataForProfileOnChannelData() bool + + // optional + ConnectInitiatorWithDeviceInfo(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool + HasConnectInitiatorWithDeviceInfo() bool } // A delegate implementation builder for the [PCIProfileResponderDelegate] protocol. type CIProfileResponderDelegate struct { - _InitiatorDisconnected func(initiatorMUID CIInitiatiorMUID) - _ConnectInitiatorWithDeviceInfo func(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool _WillSetProfileOnChannelEnabled func(aProfile CIProfile, channel ChannelNumber, shouldEnable bool) bool + _InitiatorDisconnected func(initiatorMUID CIInitiatiorMUID) _HandleDataForProfileOnChannelData func(aProfile CIProfile, channel ChannelNumber, inData []byte) + _ConnectInitiatorWithDeviceInfo func(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool } -func (di *CIProfileResponderDelegate) HasInitiatorDisconnected() bool { - return di._InitiatorDisconnected != nil -} - -// Provides an opportunity to perform an action after the system disconnects the initiator. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580330-initiatordisconnected?language=objc -func (di *CIProfileResponderDelegate) SetInitiatorDisconnected(f func(initiatorMUID CIInitiatiorMUID)) { - di._InitiatorDisconnected = f -} - -// Provides an opportunity to perform an action after the system disconnects the initiator. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580330-initiatordisconnected?language=objc -func (di *CIProfileResponderDelegate) InitiatorDisconnected(initiatorMUID CIInitiatiorMUID) { - di._InitiatorDisconnected(initiatorMUID) -} -func (di *CIProfileResponderDelegate) HasConnectInitiatorWithDeviceInfo() bool { - return di._ConnectInitiatorWithDeviceInfo != nil -} - -// Enables a MIDI-CI initiator to create a session or reject the connection attempt. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580328-connectinitiator?language=objc -func (di *CIProfileResponderDelegate) SetConnectInitiatorWithDeviceInfo(f func(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool) { - di._ConnectInitiatorWithDeviceInfo = f -} - -// Enables a MIDI-CI initiator to create a session or reject the connection attempt. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580328-connectinitiator?language=objc -func (di *CIProfileResponderDelegate) ConnectInitiatorWithDeviceInfo(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool { - return di._ConnectInitiatorWithDeviceInfo(initiatorMUID, deviceInfo) -} func (di *CIProfileResponderDelegate) HasWillSetProfileOnChannelEnabled() bool { return di._WillSetProfileOnChannelEnabled != nil } @@ -86,6 +52,23 @@ func (di *CIProfileResponderDelegate) SetWillSetProfileOnChannelEnabled(f func(a func (di *CIProfileResponderDelegate) WillSetProfileOnChannelEnabled(aProfile CIProfile, channel ChannelNumber, shouldEnable bool) bool { return di._WillSetProfileOnChannelEnabled(aProfile, channel, shouldEnable) } +func (di *CIProfileResponderDelegate) HasInitiatorDisconnected() bool { + return di._InitiatorDisconnected != nil +} + +// Provides an opportunity to perform an action after the system disconnects the initiator. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580330-initiatordisconnected?language=objc +func (di *CIProfileResponderDelegate) SetInitiatorDisconnected(f func(initiatorMUID CIInitiatiorMUID)) { + di._InitiatorDisconnected = f +} + +// Provides an opportunity to perform an action after the system disconnects the initiator. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580330-initiatordisconnected?language=objc +func (di *CIProfileResponderDelegate) InitiatorDisconnected(initiatorMUID CIInitiatiorMUID) { + di._InitiatorDisconnected(initiatorMUID) +} func (di *CIProfileResponderDelegate) HasHandleDataForProfileOnChannelData() bool { return di._HandleDataForProfileOnChannelData != nil } @@ -103,36 +86,30 @@ func (di *CIProfileResponderDelegate) SetHandleDataForProfileOnChannelData(f fun func (di *CIProfileResponderDelegate) HandleDataForProfileOnChannelData(aProfile CIProfile, channel ChannelNumber, inData []byte) { di._HandleDataForProfileOnChannelData(aProfile, channel, inData) } - -// ensure impl type implements protocol interface -var _ PCIProfileResponderDelegate = (*CIProfileResponderDelegateObject)(nil) - -// A concrete type for the [PCIProfileResponderDelegate] protocol. -type CIProfileResponderDelegateObject struct { - objc.Object -} - -func (c_ CIProfileResponderDelegateObject) HasInitiatorDisconnected() bool { - return c_.RespondsToSelector(objc.Sel("initiatorDisconnected:")) +func (di *CIProfileResponderDelegate) HasConnectInitiatorWithDeviceInfo() bool { + return di._ConnectInitiatorWithDeviceInfo != nil } -// Provides an opportunity to perform an action after the system disconnects the initiator. [Full Topic] +// Enables a MIDI-CI initiator to create a session or reject the connection attempt. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580330-initiatordisconnected?language=objc -func (c_ CIProfileResponderDelegateObject) InitiatorDisconnected(initiatorMUID CIInitiatiorMUID) { - objc.Call[objc.Void](c_, objc.Sel("initiatorDisconnected:"), initiatorMUID) -} - -func (c_ CIProfileResponderDelegateObject) HasConnectInitiatorWithDeviceInfo() bool { - return c_.RespondsToSelector(objc.Sel("connectInitiator:withDeviceInfo:")) +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580328-connectinitiator?language=objc +func (di *CIProfileResponderDelegate) SetConnectInitiatorWithDeviceInfo(f func(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool) { + di._ConnectInitiatorWithDeviceInfo = f } // Enables a MIDI-CI initiator to create a session or reject the connection attempt. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580328-connectinitiator?language=objc -func (c_ CIProfileResponderDelegateObject) ConnectInitiatorWithDeviceInfo(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool { - rv := objc.Call[bool](c_, objc.Sel("connectInitiator:withDeviceInfo:"), initiatorMUID, deviceInfo) - return rv +func (di *CIProfileResponderDelegate) ConnectInitiatorWithDeviceInfo(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool { + return di._ConnectInitiatorWithDeviceInfo(initiatorMUID, deviceInfo) +} + +// ensure impl type implements protocol interface +var _ PCIProfileResponderDelegate = (*CIProfileResponderDelegateObject)(nil) + +// A concrete type for the [PCIProfileResponderDelegate] protocol. +type CIProfileResponderDelegateObject struct { + objc.Object } func (c_ CIProfileResponderDelegateObject) HasWillSetProfileOnChannelEnabled() bool { @@ -147,6 +124,17 @@ func (c_ CIProfileResponderDelegateObject) WillSetProfileOnChannelEnabled(aProfi return rv } +func (c_ CIProfileResponderDelegateObject) HasInitiatorDisconnected() bool { + return c_.RespondsToSelector(objc.Sel("initiatorDisconnected:")) +} + +// Provides an opportunity to perform an action after the system disconnects the initiator. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580330-initiatordisconnected?language=objc +func (c_ CIProfileResponderDelegateObject) InitiatorDisconnected(initiatorMUID CIInitiatiorMUID) { + objc.Call[objc.Void](c_, objc.Sel("initiatorDisconnected:"), initiatorMUID) +} + func (c_ CIProfileResponderDelegateObject) HasHandleDataForProfileOnChannelData() bool { return c_.RespondsToSelector(objc.Sel("handleDataForProfile:onChannel:data:")) } @@ -157,3 +145,15 @@ func (c_ CIProfileResponderDelegateObject) HasHandleDataForProfileOnChannelData( func (c_ CIProfileResponderDelegateObject) HandleDataForProfileOnChannelData(aProfile CIProfile, channel ChannelNumber, inData []byte) { objc.Call[objc.Void](c_, objc.Sel("handleDataForProfile:onChannel:data:"), aProfile, channel, inData) } + +func (c_ CIProfileResponderDelegateObject) HasConnectInitiatorWithDeviceInfo() bool { + return c_.RespondsToSelector(objc.Sel("connectInitiator:withDeviceInfo:")) +} + +// Enables a MIDI-CI initiator to create a session or reject the connection attempt. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580328-connectinitiator?language=objc +func (c_ CIProfileResponderDelegateObject) ConnectInitiatorWithDeviceInfo(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool { + rv := objc.Call[bool](c_, objc.Sel("connectInitiator:withDeviceInfo:"), initiatorMUID, deviceInfo) + return rv +} diff --git a/macos/coremidi/ci_profile_state.gen.go b/macos/coremidi/ci_profile_state.gen.go index 6aa8234a..1f96308d 100644 --- a/macos/coremidi/ci_profile_state.gen.go +++ b/macos/coremidi/ci_profile_state.gen.go @@ -19,8 +19,8 @@ type _CIProfileStateClass struct { type ICIProfileState interface { objc.IObject MidiChannel() ChannelNumber - DisabledProfiles() []CIProfile EnabledProfiles() []CIProfile + DisabledProfiles() []CIProfile } // An object that provides the enabled and disabled profiles for a MIDI channel or port on a device. [Full Topic] @@ -78,14 +78,6 @@ func (c_ CIProfileState) MidiChannel() ChannelNumber { return rv } -// The object’s disabled profiles. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofilestate/2977109-disabledprofiles?language=objc -func (c_ CIProfileState) DisabledProfiles() []CIProfile { - rv := objc.Call[[]CIProfile](c_, objc.Sel("disabledProfiles")) - return rv -} - // The object’s enabled profiles. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofilestate/2977110-enabledprofiles?language=objc @@ -93,3 +85,11 @@ func (c_ CIProfileState) EnabledProfiles() []CIProfile { rv := objc.Call[[]CIProfile](c_, objc.Sel("enabledProfiles")) return rv } + +// The object’s disabled profiles. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofilestate/2977109-disabledprofiles?language=objc +func (c_ CIProfileState) DisabledProfiles() []CIProfile { + rv := objc.Call[[]CIProfile](c_, objc.Sel("disabledProfiles")) + return rv +} diff --git a/macos/coremidi/ci_responder.gen.go b/macos/coremidi/ci_responder.gen.go index bc943ef0..635fb90c 100644 --- a/macos/coremidi/ci_responder.gen.go +++ b/macos/coremidi/ci_responder.gen.go @@ -19,13 +19,13 @@ type _CIResponderClass struct { // An interface definition for the [CIResponder] class. type ICIResponder interface { objc.IObject + NotifyProfileOnChannelIsEnabled(aProfile ICIProfile, channel ChannelNumber, enabledState bool) bool SendProfileOnChannelProfileData(aProfile ICIProfile, channel ChannelNumber, profileSpecificData []byte) bool Start() bool Stop() - NotifyProfileOnChannelIsEnabled(aProfile ICIProfile, channel ChannelNumber, enabledState bool) bool Initiators() []CIInitiatiorMUID - ProfileDelegate() CIProfileResponderDelegateObject DeviceInfo() CIDeviceInfo + ProfileDelegate() CIProfileResponderDelegateObject } // An object that responds to MIDI-CI inquiries from an initiator on behalf of a MIDI client, and handles profile and property exchange operations. [Full Topic] @@ -76,6 +76,14 @@ func (c_ CIResponder) Init() CIResponder { return rv } +// Enables or disables a profile and notifies all connected initiators. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3553257-notifyprofile?language=objc +func (c_ CIResponder) NotifyProfileOnChannelIsEnabled(aProfile ICIProfile, channel ChannelNumber, enabledState bool) bool { + rv := objc.Call[bool](c_, objc.Sel("notifyProfile:onChannel:isEnabled:"), aProfile, channel, enabledState) + return rv +} + // Sends profile-specific data to all connected initiators. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3553259-sendprofile?language=objc @@ -99,14 +107,6 @@ func (c_ CIResponder) Stop() { objc.Call[objc.Void](c_, objc.Sel("stop")) } -// Enables or disables a profile and notifies all connected initiators. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3553257-notifyprofile?language=objc -func (c_ CIResponder) NotifyProfileOnChannelIsEnabled(aProfile ICIProfile, channel ChannelNumber, enabledState bool) bool { - rv := objc.Call[bool](c_, objc.Sel("notifyProfile:onChannel:isEnabled:"), aProfile, channel, enabledState) - return rv -} - // An array of initiators. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3580333-initiators?language=objc @@ -115,14 +115,6 @@ func (c_ CIResponder) Initiators() []CIInitiatiorMUID { return rv } -// The profile delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3580334-profiledelegate?language=objc -func (c_ CIResponder) ProfileDelegate() CIProfileResponderDelegateObject { - rv := objc.Call[CIProfileResponderDelegateObject](c_, objc.Sel("profileDelegate")) - return rv -} - // The MIDI-CI device’s information. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3553255-deviceinfo?language=objc @@ -130,3 +122,11 @@ func (c_ CIResponder) DeviceInfo() CIDeviceInfo { rv := objc.Call[CIDeviceInfo](c_, objc.Sel("deviceInfo")) return rv } + +// The profile delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3580334-profiledelegate?language=objc +func (c_ CIResponder) ProfileDelegate() CIProfileResponderDelegateObject { + rv := objc.Call[CIProfileResponderDelegateObject](c_, objc.Sel("profileDelegate")) + return rv +} diff --git a/macos/coremidi/ci_session.gen.go b/macos/coremidi/ci_session.gen.go index 23c1d3f9..840680b9 100644 --- a/macos/coremidi/ci_session.gen.go +++ b/macos/coremidi/ci_session.gen.go @@ -19,20 +19,20 @@ type _CISessionClass struct { // An interface definition for the [CISession] class. type ICISession interface { objc.IObject - DisableProfileOnChannelError(profile ICIProfile, channel ChannelNumber, outError unsafe.Pointer) bool - SendProfileOnChannelProfileData(profile ICIProfile, channel ChannelNumber, profileSpecificData []byte) bool EnableProfileOnChannelError(profile ICIProfile, channel ChannelNumber, outError unsafe.Pointer) bool ProfileStateForChannel(channel ChannelNumber) CIProfileState - DeviceInfo() CIDeviceInfo - MidiDestination() EntityRef - SupportsProfileCapability() bool - SupportsPropertyCapability() bool + DisableProfileOnChannelError(profile ICIProfile, channel ChannelNumber, outError unsafe.Pointer) bool + SendProfileOnChannelProfileData(profile ICIProfile, channel ChannelNumber, profileSpecificData []byte) bool MaxPropertyRequests() foundation.Number MaxSysExSize() foundation.Number + DeviceInfo() CIDeviceInfo ProfileChangedCallback() CIProfileChangedBlock SetProfileChangedCallback(value CIProfileChangedBlock) + SupportsPropertyCapability() bool + MidiDestination() EntityRef ProfileSpecificDataHandler() CIProfileSpecificDataBlock SetProfileSpecificDataHandler(value CIProfileSpecificDataBlock) + SupportsProfileCapability() bool } // An object that represents a MIDI-CI session. [Full Topic] @@ -82,22 +82,6 @@ func (c_ CISession) Init() CISession { return rv } -// Performs an asynchronous request to disable a profile for a specific MIDI channel number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/2977116-disableprofile?language=objc -func (c_ CISession) DisableProfileOnChannelError(profile ICIProfile, channel ChannelNumber, outError unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("disableProfile:onChannel:error:"), profile, channel, outError) - return rv -} - -// Sends profile-specific data to the MIDI-CI session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/3553276-sendprofile?language=objc -func (c_ CISession) SendProfileOnChannelProfileData(profile ICIProfile, channel ChannelNumber, profileSpecificData []byte) bool { - rv := objc.Call[bool](c_, objc.Sel("sendProfile:onChannel:profileData:"), profile, channel, profileSpecificData) - return rv -} - // Performs an asynchronous request to enable a profile for a specific MIDI channel number. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/2977117-enableprofile?language=objc @@ -114,35 +98,19 @@ func (c_ CISession) ProfileStateForChannel(channel ChannelNumber) CIProfileState return rv } -// Information about a MIDI-CI device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/3553274-deviceinfo?language=objc -func (c_ CISession) DeviceInfo() CIDeviceInfo { - rv := objc.Call[CIDeviceInfo](c_, objc.Sel("deviceInfo")) - return rv -} - -// The MIDI destination with which the session is communicating. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/3580338-mididestination?language=objc -func (c_ CISession) MidiDestination() EntityRef { - rv := objc.Call[EntityRef](c_, objc.Sel("midiDestination")) - return rv -} - -// A Boolean value that indicates whether the entity supports the MIDI-CI profile’s capability. [Full Topic] +// Performs an asynchronous request to disable a profile for a specific MIDI channel number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/2977126-supportsprofilecapability?language=objc -func (c_ CISession) SupportsProfileCapability() bool { - rv := objc.Call[bool](c_, objc.Sel("supportsProfileCapability")) +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/2977116-disableprofile?language=objc +func (c_ CISession) DisableProfileOnChannelError(profile ICIProfile, channel ChannelNumber, outError unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("disableProfile:onChannel:error:"), profile, channel, outError) return rv } -// A Boolean value that indicates whether the entity supports the MIDI-CI property exchange capability. [Full Topic] +// Sends profile-specific data to the MIDI-CI session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/2977127-supportspropertycapability?language=objc -func (c_ CISession) SupportsPropertyCapability() bool { - rv := objc.Call[bool](c_, objc.Sel("supportsPropertyCapability")) +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/3553276-sendprofile?language=objc +func (c_ CISession) SendProfileOnChannelProfileData(profile ICIProfile, channel ChannelNumber, profileSpecificData []byte) bool { + rv := objc.Call[bool](c_, objc.Sel("sendProfile:onChannel:profileData:"), profile, channel, profileSpecificData) return rv } @@ -162,6 +130,14 @@ func (c_ CISession) MaxSysExSize() foundation.Number { return rv } +// Information about a MIDI-CI device. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/3553274-deviceinfo?language=objc +func (c_ CISession) DeviceInfo() CIDeviceInfo { + rv := objc.Call[CIDeviceInfo](c_, objc.Sel("deviceInfo")) + return rv +} + // An optional block the system calls after it enables or disables a profile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/2977122-profilechangedcallback?language=objc @@ -177,6 +153,22 @@ func (c_ CISession) SetProfileChangedCallback(value CIProfileChangedBlock) { objc.Call[objc.Void](c_, objc.Sel("setProfileChangedCallback:"), value) } +// A Boolean value that indicates whether the entity supports the MIDI-CI property exchange capability. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/2977127-supportspropertycapability?language=objc +func (c_ CISession) SupportsPropertyCapability() bool { + rv := objc.Call[bool](c_, objc.Sel("supportsPropertyCapability")) + return rv +} + +// The MIDI destination with which the session is communicating. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/3580338-mididestination?language=objc +func (c_ CISession) MidiDestination() EntityRef { + rv := objc.Call[EntityRef](c_, objc.Sel("midiDestination")) + return rv +} + // An optional block the system calls when a device sends profile-specific data to the session. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/3580339-profilespecificdatahandler?language=objc @@ -191,3 +183,11 @@ func (c_ CISession) ProfileSpecificDataHandler() CIProfileSpecificDataBlock { func (c_ CISession) SetProfileSpecificDataHandler(value CIProfileSpecificDataBlock) { objc.Call[objc.Void](c_, objc.Sel("setProfileSpecificDataHandler:"), value) } + +// A Boolean value that indicates whether the entity supports the MIDI-CI profile’s capability. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/2977126-supportsprofilecapability?language=objc +func (c_ CISession) SupportsProfileCapability() bool { + rv := objc.Call[bool](c_, objc.Sel("supportsProfileCapability")) + return rv +} diff --git a/macos/coremidi/enumtypes.gen.go b/macos/coremidi/enumtypes.gen.go index 26054ddc..f32b8552 100644 --- a/macos/coremidi/enumtypes.gen.go +++ b/macos/coremidi/enumtypes.gen.go @@ -269,12 +269,3 @@ const ( KUtilityStatusJitterReductionTimestamp UtilityStatus = 2 KUtilityStatusNOOP UtilityStatus = 0 ) - -// An invalid unique identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/1495307-kmidiinvaliduniqueid?language=objc -type KInvalidUniqueID UniqueID - -const ( - KKInvalidUniqueID KInvalidUniqueID = 0 -) diff --git a/macos/coremidi/network_host.gen.go b/macos/coremidi/network_host.gen.go index 9ea6cf21..d3b49fb9 100644 --- a/macos/coremidi/network_host.gen.go +++ b/macos/coremidi/network_host.gen.go @@ -20,11 +20,11 @@ type _NetworkHostClass struct { type INetworkHost interface { objc.IObject HasSameAddressAs(other INetworkHost) bool + Name() string NetServiceName() string Address() string - Port() uint NetServiceDomain() string - Name() string + Port() uint } // An object that represents the host’s network address. [Full Topic] @@ -52,30 +52,6 @@ func NetworkHost_HostWithNameNetService(name string, netService foundation.INetS return NetworkHostClass.HostWithNameNetService(name, netService) } -func (nc _NetworkHostClass) HostWithNameNetServiceNameNetServiceDomain(name string, netServiceName string, netServiceDomain string) NetworkHost { - rv := objc.Call[NetworkHost](nc, objc.Sel("hostWithName:netServiceName:netServiceDomain:"), name, netServiceName, netServiceDomain) - return rv -} - -// Creates a host with the specified name, net service name, and domain. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworkhost/1619338-hostwithname?language=objc -func NetworkHost_HostWithNameNetServiceNameNetServiceDomain(name string, netServiceName string, netServiceDomain string) NetworkHost { - return NetworkHostClass.HostWithNameNetServiceNameNetServiceDomain(name, netServiceName, netServiceDomain) -} - -func (nc _NetworkHostClass) HostWithNameAddressPort(name string, address string, port uint) NetworkHost { - rv := objc.Call[NetworkHost](nc, objc.Sel("hostWithName:address:port:"), name, address, port) - return rv -} - -// Creates a host with the specified name, adress, and port. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworkhost/1619365-hostwithname?language=objc -func NetworkHost_HostWithNameAddressPort(name string, address string, port uint) NetworkHost { - return NetworkHostClass.HostWithNameAddressPort(name, address, port) -} - func (nc _NetworkHostClass) Alloc() NetworkHost { rv := objc.Call[NetworkHost](nc, objc.Sel("alloc")) return rv @@ -104,6 +80,14 @@ func (n_ NetworkHost) HasSameAddressAs(other INetworkHost) bool { return rv } +// The host name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworkhost/1619339-name?language=objc +func (n_ NetworkHost) Name() string { + rv := objc.Call[string](n_, objc.Sel("name")) + return rv +} + // The net service name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworkhost/1619362-netservicename?language=objc @@ -120,14 +104,6 @@ func (n_ NetworkHost) Address() string { return rv } -// The host port. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworkhost/1619333-port?language=objc -func (n_ NetworkHost) Port() uint { - rv := objc.Call[uint](n_, objc.Sel("port")) - return rv -} - // The net service domain. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworkhost/1619344-netservicedomain?language=objc @@ -136,10 +112,10 @@ func (n_ NetworkHost) NetServiceDomain() string { return rv } -// The host name. [Full Topic] +// The host port. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworkhost/1619339-name?language=objc -func (n_ NetworkHost) Name() string { - rv := objc.Call[string](n_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworkhost/1619333-port?language=objc +func (n_ NetworkHost) Port() uint { + rv := objc.Call[uint](n_, objc.Sel("port")) return rv } diff --git a/macos/coremidi/network_session.gen.go b/macos/coremidi/network_session.gen.go index 0bea381a..aee3fb7f 100644 --- a/macos/coremidi/network_session.gen.go +++ b/macos/coremidi/network_session.gen.go @@ -19,21 +19,21 @@ type _NetworkSessionClass struct { // An interface definition for the [NetworkSession] class. type INetworkSession interface { objc.IObject - RemoveConnection(connection INetworkConnection) bool - AddConnection(connection INetworkConnection) bool - SourceEndpoint() EndpointRef Connections() foundation.Set - Contacts() foundation.Set + AddConnection(connection INetworkConnection) bool + RemoveConnection(connection INetworkConnection) bool + RemoveContact(contact INetworkHost) bool DestinationEndpoint() EndpointRef AddContact(contact INetworkHost) bool - RemoveContact(contact INetworkHost) bool + SourceEndpoint() EndpointRef + Contacts() foundation.Set + LocalName() string + NetworkName() string ConnectionPolicy() NetworkConnectionPolicy SetConnectionPolicy(value NetworkConnectionPolicy) - NetworkName() string + NetworkPort() uint IsEnabled() bool SetEnabled(value bool) - LocalName() string - NetworkPort() uint } // An object that represents a pairing of a source and destination. [Full Topic] @@ -69,30 +69,6 @@ func (n_ NetworkSession) Init() NetworkSession { return rv } -// Removes a connection from this session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619346-removeconnection?language=objc -func (n_ NetworkSession) RemoveConnection(connection INetworkConnection) bool { - rv := objc.Call[bool](n_, objc.Sel("removeConnection:"), connection) - return rv -} - -// Adds a new connection to this session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619369-addconnection?language=objc -func (n_ NetworkSession) AddConnection(connection INetworkConnection) bool { - rv := objc.Call[bool](n_, objc.Sel("addConnection:"), connection) - return rv -} - -// Returns the session’s source endpoint. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619359-sourceendpoint?language=objc -func (n_ NetworkSession) SourceEndpoint() EndpointRef { - rv := objc.Call[EndpointRef](n_, objc.Sel("sourceEndpoint")) - return rv -} - // Returns the session’s set of MIDI network connections. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619366-connections?language=objc @@ -101,11 +77,11 @@ func (n_ NetworkSession) Connections() foundation.Set { return rv } -// Returns the array of network hosts. [Full Topic] +// Adds a new connection to this session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619335-contacts?language=objc -func (n_ NetworkSession) Contacts() foundation.Set { - rv := objc.Call[foundation.Set](n_, objc.Sel("contacts")) +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619369-addconnection?language=objc +func (n_ NetworkSession) AddConnection(connection INetworkConnection) bool { + rv := objc.Call[bool](n_, objc.Sel("addConnection:"), connection) return rv } @@ -124,6 +100,22 @@ func NetworkSession_DefaultSession() NetworkSession { return NetworkSessionClass.DefaultSession() } +// Removes a connection from this session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619346-removeconnection?language=objc +func (n_ NetworkSession) RemoveConnection(connection INetworkConnection) bool { + rv := objc.Call[bool](n_, objc.Sel("removeConnection:"), connection) + return rv +} + +// Removes a host as a contact. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619332-removecontact?language=objc +func (n_ NetworkSession) RemoveContact(contact INetworkHost) bool { + rv := objc.Call[bool](n_, objc.Sel("removeContact:"), contact) + return rv +} + // Returns the session’s destination endpoint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619367-destinationendpoint?language=objc @@ -140,11 +132,35 @@ func (n_ NetworkSession) AddContact(contact INetworkHost) bool { return rv } -// Removes a host as a contact. [Full Topic] +// Returns the session’s source endpoint. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619332-removecontact?language=objc -func (n_ NetworkSession) RemoveContact(contact INetworkHost) bool { - rv := objc.Call[bool](n_, objc.Sel("removeContact:"), contact) +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619359-sourceendpoint?language=objc +func (n_ NetworkSession) SourceEndpoint() EndpointRef { + rv := objc.Call[EndpointRef](n_, objc.Sel("sourceEndpoint")) + return rv +} + +// Returns the array of network hosts. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619335-contacts?language=objc +func (n_ NetworkSession) Contacts() foundation.Set { + rv := objc.Call[foundation.Set](n_, objc.Sel("contacts")) + return rv +} + +// The name of this session’s entity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619358-localname?language=objc +func (n_ NetworkSession) LocalName() string { + rv := objc.Call[string](n_, objc.Sel("localName")) + return rv +} + +// The name with which this session advertises itself over Bonjour. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619336-networkname?language=objc +func (n_ NetworkSession) NetworkName() string { + rv := objc.Call[string](n_, objc.Sel("networkName")) return rv } @@ -163,11 +179,11 @@ func (n_ NetworkSession) SetConnectionPolicy(value NetworkConnectionPolicy) { objc.Call[objc.Void](n_, objc.Sel("setConnectionPolicy:"), value) } -// The name with which this session advertises itself over Bonjour. [Full Topic] +// The session’s UDP port. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619336-networkname?language=objc -func (n_ NetworkSession) NetworkName() string { - rv := objc.Call[string](n_, objc.Sel("networkName")) +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619373-networkport?language=objc +func (n_ NetworkSession) NetworkPort() uint { + rv := objc.Call[uint](n_, objc.Sel("networkPort")) return rv } @@ -185,19 +201,3 @@ func (n_ NetworkSession) IsEnabled() bool { func (n_ NetworkSession) SetEnabled(value bool) { objc.Call[objc.Void](n_, objc.Sel("setEnabled:"), value) } - -// The name of this session’s entity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619358-localname?language=objc -func (n_ NetworkSession) LocalName() string { - rv := objc.Call[string](n_, objc.Sel("localName")) - return rv -} - -// The session’s UDP port. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619373-networkport?language=objc -func (n_ NetworkSession) NetworkPort() uint { - rv := objc.Call[uint](n_, objc.Sel("networkPort")) - return rv -} diff --git a/macos/coreml/custom_layer_protocol.gen.go b/macos/coreml/custom_layer_protocol.gen.go index a5891bae..98016bd0 100644 --- a/macos/coreml/custom_layer_protocol.gen.go +++ b/macos/coreml/custom_layer_protocol.gen.go @@ -14,25 +14,25 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer?language=objc type PCustomLayer interface { - // optional - EvaluateOnCPUWithInputsOutputsError(inputs []MultiArray, outputs []MultiArray, error unsafe.Pointer) bool - HasEvaluateOnCPUWithInputsOutputsError() bool - - // optional - OutputShapesForInputShapesError(inputShapes [][]foundation.Number, error unsafe.Pointer) [][]foundation.Number - HasOutputShapesForInputShapesError() bool - // optional InitWithParameterDictionaryError(parameters map[string]objc.Object, error unsafe.Pointer) objc.Object HasInitWithParameterDictionaryError() bool + // optional + SetWeightDataError(weights [][]byte, error unsafe.Pointer) bool + HasSetWeightDataError() bool + // optional EncodeToCommandBufferInputsOutputsError(commandBuffer metal.CommandBufferObject, inputs []metal.TextureObject, outputs []metal.TextureObject, error unsafe.Pointer) bool HasEncodeToCommandBufferInputsOutputsError() bool // optional - SetWeightDataError(weights [][]byte, error unsafe.Pointer) bool - HasSetWeightDataError() bool + EvaluateOnCPUWithInputsOutputsError(inputs []MultiArray, outputs []MultiArray, error unsafe.Pointer) bool + HasEvaluateOnCPUWithInputsOutputsError() bool + + // optional + OutputShapesForInputShapesError(inputShapes [][]foundation.Number, error unsafe.Pointer) [][]foundation.Number + HasOutputShapesForInputShapesError() bool } // ensure impl type implements protocol interface @@ -43,30 +43,6 @@ type CustomLayerObject struct { objc.Object } -func (c_ CustomLayerObject) HasEvaluateOnCPUWithInputsOutputsError() bool { - return c_.RespondsToSelector(objc.Sel("evaluateOnCPUWithInputs:outputs:error:")) -} - -// Evaluates the custom layer with the given inputs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2935520-evaluateoncpuwithinputs?language=objc -func (c_ CustomLayerObject) EvaluateOnCPUWithInputsOutputsError(inputs []MultiArray, outputs []MultiArray, error unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("evaluateOnCPUWithInputs:outputs:error:"), inputs, outputs, error) - return rv -} - -func (c_ CustomLayerObject) HasOutputShapesForInputShapesError() bool { - return c_.RespondsToSelector(objc.Sel("outputShapesForInputShapes:error:")) -} - -// Calculates the shapes of the output of this layer for the given input shapes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2935525-outputshapesforinputshapes?language=objc -func (c_ CustomLayerObject) OutputShapesForInputShapesError(inputShapes [][]foundation.Number, error unsafe.Pointer) [][]foundation.Number { - rv := objc.Call[[][]foundation.Number](c_, objc.Sel("outputShapesForInputShapes:error:"), inputShapes, error) - return rv -} - func (c_ CustomLayerObject) HasInitWithParameterDictionaryError() bool { return c_.RespondsToSelector(objc.Sel("initWithParameterDictionary:error:")) } @@ -79,6 +55,18 @@ func (c_ CustomLayerObject) InitWithParameterDictionaryError(parameters map[stri return rv } +func (c_ CustomLayerObject) HasSetWeightDataError() bool { + return c_.RespondsToSelector(objc.Sel("setWeightData:error:")) +} + +// Assigns the weights for the connections within the layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2936860-setweightdata?language=objc +func (c_ CustomLayerObject) SetWeightDataError(weights [][]byte, error unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("setWeightData:error:"), weights, error) + return rv +} + func (c_ CustomLayerObject) HasEncodeToCommandBufferInputsOutputsError() bool { return c_.RespondsToSelector(objc.Sel("encodeToCommandBuffer:inputs:outputs:error:")) } @@ -92,14 +80,26 @@ func (c_ CustomLayerObject) EncodeToCommandBufferInputsOutputsError(commandBuffe return rv } -func (c_ CustomLayerObject) HasSetWeightDataError() bool { - return c_.RespondsToSelector(objc.Sel("setWeightData:error:")) +func (c_ CustomLayerObject) HasEvaluateOnCPUWithInputsOutputsError() bool { + return c_.RespondsToSelector(objc.Sel("evaluateOnCPUWithInputs:outputs:error:")) } -// Assigns the weights for the connections within the layer. [Full Topic] +// Evaluates the custom layer with the given inputs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2936860-setweightdata?language=objc -func (c_ CustomLayerObject) SetWeightDataError(weights [][]byte, error unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("setWeightData:error:"), weights, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2935520-evaluateoncpuwithinputs?language=objc +func (c_ CustomLayerObject) EvaluateOnCPUWithInputsOutputsError(inputs []MultiArray, outputs []MultiArray, error unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("evaluateOnCPUWithInputs:outputs:error:"), inputs, outputs, error) + return rv +} + +func (c_ CustomLayerObject) HasOutputShapesForInputShapesError() bool { + return c_.RespondsToSelector(objc.Sel("outputShapesForInputShapes:error:")) +} + +// Calculates the shapes of the output of this layer for the given input shapes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2935525-outputshapesforinputshapes?language=objc +func (c_ CustomLayerObject) OutputShapesForInputShapesError(inputShapes [][]foundation.Number, error unsafe.Pointer) [][]foundation.Number { + rv := objc.Call[[][]foundation.Number](c_, objc.Sel("outputShapesForInputShapes:error:"), inputShapes, error) return rv } diff --git a/macos/coreml/custom_model_protocol.gen.go b/macos/coreml/custom_model_protocol.gen.go index 380ac4aa..f1bc6c9f 100644 --- a/macos/coreml/custom_model_protocol.gen.go +++ b/macos/coreml/custom_model_protocol.gen.go @@ -12,6 +12,10 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustommodel?language=objc type PCustomModel interface { + // optional + InitWithModelDescriptionParameterDictionaryError(modelDescription ModelDescription, parameters map[string]objc.Object, error unsafe.Pointer) objc.Object + HasInitWithModelDescriptionParameterDictionaryError() bool + // optional PredictionsFromBatchOptionsError(inputBatch BatchProviderObject, options PredictionOptions, error unsafe.Pointer) BatchProviderObject HasPredictionsFromBatchOptionsError() bool @@ -19,10 +23,6 @@ type PCustomModel interface { // optional PredictionFromFeaturesOptionsError(input FeatureProviderObject, options PredictionOptions, error unsafe.Pointer) FeatureProviderObject HasPredictionFromFeaturesOptionsError() bool - - // optional - InitWithModelDescriptionParameterDictionaryError(modelDescription ModelDescription, parameters map[string]objc.Object, error unsafe.Pointer) objc.Object - HasInitWithModelDescriptionParameterDictionaryError() bool } // ensure impl type implements protocol interface @@ -33,6 +33,18 @@ type CustomModelObject struct { objc.Object } +func (c_ CustomModelObject) HasInitWithModelDescriptionParameterDictionaryError() bool { + return c_.RespondsToSelector(objc.Sel("initWithModelDescription:parameterDictionary:error:")) +} + +// Creates a custom model with the given description and parameters. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustommodel/2994296-initwithmodeldescription?language=objc +func (c_ CustomModelObject) InitWithModelDescriptionParameterDictionaryError(modelDescription ModelDescription, parameters map[string]objc.Object, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("initWithModelDescription:parameterDictionary:error:"), modelDescription, parameters, error) + return rv +} + func (c_ CustomModelObject) HasPredictionsFromBatchOptionsError() bool { return c_.RespondsToSelector(objc.Sel("predictionsFromBatch:options:error:")) } @@ -58,15 +70,3 @@ func (c_ CustomModelObject) PredictionFromFeaturesOptionsError(input FeatureProv rv := objc.Call[FeatureProviderObject](c_, objc.Sel("predictionFromFeatures:options:error:"), po0, options, error) return rv } - -func (c_ CustomModelObject) HasInitWithModelDescriptionParameterDictionaryError() bool { - return c_.RespondsToSelector(objc.Sel("initWithModelDescription:parameterDictionary:error:")) -} - -// Creates a custom model with the given description and parameters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustommodel/2994296-initwithmodeldescription?language=objc -func (c_ CustomModelObject) InitWithModelDescriptionParameterDictionaryError(modelDescription ModelDescription, parameters map[string]objc.Object, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("initWithModelDescription:parameterDictionary:error:"), modelDescription, parameters, error) - return rv -} diff --git a/macos/coreml/feature_description.gen.go b/macos/coreml/feature_description.gen.go index 1ae9e46d..c29cb456 100644 --- a/macos/coreml/feature_description.gen.go +++ b/macos/coreml/feature_description.gen.go @@ -19,13 +19,13 @@ type _FeatureDescriptionClass struct { type IFeatureDescription interface { objc.IObject IsAllowedValue(value IFeatureValue) bool - ImageConstraint() ImageConstraint - Name() string - Type() FeatureType - IsOptional() bool + DictionaryConstraint() DictionaryConstraint MultiArrayConstraint() MultiArrayConstraint + Name() string SequenceConstraint() SequenceConstraint - DictionaryConstraint() DictionaryConstraint + ImageConstraint() ImageConstraint + IsOptional() bool + Type() FeatureType } // The name, type, and constraints of an input or output feature. [Full Topic] @@ -69,58 +69,58 @@ func (f_ FeatureDescription) IsAllowedValue(value IFeatureValue) bool { return rv } -// The size and format constraints for an image feature. [Full Topic] +// The constraint for a dictionary feature. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2873067-imageconstraint?language=objc -func (f_ FeatureDescription) ImageConstraint() ImageConstraint { - rv := objc.Call[ImageConstraint](f_, objc.Sel("imageConstraint")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2921263-dictionaryconstraint?language=objc +func (f_ FeatureDescription) DictionaryConstraint() DictionaryConstraint { + rv := objc.Call[DictionaryConstraint](f_, objc.Sel("dictionaryConstraint")) return rv } -// The name of this feature. [Full Topic] +// The constraints on a multidimensional array feature. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2879359-name?language=objc -func (f_ FeatureDescription) Name() string { - rv := objc.Call[string](f_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2921264-multiarrayconstraint?language=objc +func (f_ FeatureDescription) MultiArrayConstraint() MultiArrayConstraint { + rv := objc.Call[MultiArrayConstraint](f_, objc.Sel("multiArrayConstraint")) return rv } -// The type of this feature. [Full Topic] +// The name of this feature. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2879374-type?language=objc -func (f_ FeatureDescription) Type() FeatureType { - rv := objc.Call[FeatureType](f_, objc.Sel("type")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2879359-name?language=objc +func (f_ FeatureDescription) Name() string { + rv := objc.Call[string](f_, objc.Sel("name")) return rv } -// A Boolean value that indicates whether this feature is optional. [Full Topic] +// The constraints for a sequence feature. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2879384-optional?language=objc -func (f_ FeatureDescription) IsOptional() bool { - rv := objc.Call[bool](f_, objc.Sel("isOptional")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2962858-sequenceconstraint?language=objc +func (f_ FeatureDescription) SequenceConstraint() SequenceConstraint { + rv := objc.Call[SequenceConstraint](f_, objc.Sel("sequenceConstraint")) return rv } -// The constraints on a multidimensional array feature. [Full Topic] +// The size and format constraints for an image feature. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2921264-multiarrayconstraint?language=objc -func (f_ FeatureDescription) MultiArrayConstraint() MultiArrayConstraint { - rv := objc.Call[MultiArrayConstraint](f_, objc.Sel("multiArrayConstraint")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2873067-imageconstraint?language=objc +func (f_ FeatureDescription) ImageConstraint() ImageConstraint { + rv := objc.Call[ImageConstraint](f_, objc.Sel("imageConstraint")) return rv } -// The constraints for a sequence feature. [Full Topic] +// A Boolean value that indicates whether this feature is optional. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2962858-sequenceconstraint?language=objc -func (f_ FeatureDescription) SequenceConstraint() SequenceConstraint { - rv := objc.Call[SequenceConstraint](f_, objc.Sel("sequenceConstraint")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2879384-optional?language=objc +func (f_ FeatureDescription) IsOptional() bool { + rv := objc.Call[bool](f_, objc.Sel("isOptional")) return rv } -// The constraint for a dictionary feature. [Full Topic] +// The type of this feature. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2921263-dictionaryconstraint?language=objc -func (f_ FeatureDescription) DictionaryConstraint() DictionaryConstraint { - rv := objc.Call[DictionaryConstraint](f_, objc.Sel("dictionaryConstraint")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturedescription/2879374-type?language=objc +func (f_ FeatureDescription) Type() FeatureType { + rv := objc.Call[FeatureType](f_, objc.Sel("type")) return rv } diff --git a/macos/coreml/feature_value.gen.go b/macos/coreml/feature_value.gen.go index bf9c27fc..ef4e4d3d 100644 --- a/macos/coreml/feature_value.gen.go +++ b/macos/coreml/feature_value.gen.go @@ -23,15 +23,15 @@ type _FeatureValueClass struct { type IFeatureValue interface { objc.IObject IsEqualToFeatureValue(value IFeatureValue) bool - ImageBufferValue() corevideo.PixelBufferRef - MultiArrayValue() MultiArray - Type() FeatureType Int64Value() int64 - IsUndefined() bool StringValue() string + MultiArrayValue() MultiArray + DoubleValue() float64 SequenceValue() Sequence + ImageBufferValue() corevideo.PixelBufferRef + IsUndefined() bool + Type() FeatureType DictionaryValue() foundation.Dictionary - DoubleValue() float64 } // A generic wrapper around an underlying value and the value’s type. [Full Topic] @@ -47,100 +47,52 @@ func FeatureValueFrom(ptr unsafe.Pointer) FeatureValue { } } -func (fc _FeatureValueClass) FeatureValueWithPixelBuffer(value corevideo.PixelBufferRef) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithPixelBuffer:"), value) - return rv -} - -// Creates a feature value that contains an image from a pixel buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879346-featurevaluewithpixelbuffer?language=objc -func FeatureValue_FeatureValueWithPixelBuffer(value corevideo.PixelBufferRef) FeatureValue { - return FeatureValueClass.FeatureValueWithPixelBuffer(value) -} - -func (fc _FeatureValueClass) FeatureValueWithDouble(value float64) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithDouble:"), value) - return rv -} - -// Creates a feature value that contains a double. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879398-featurevaluewithdouble?language=objc -func FeatureValue_FeatureValueWithDouble(value float64) FeatureValue { - return FeatureValueClass.FeatureValueWithDouble(value) -} - -func (fc _FeatureValueClass) FeatureValueWithImageAtURLOrientationConstraintOptionsError(url foundation.IURL, orientation imageio.ImagePropertyOrientation, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithImageAtURL:orientation:constraint:options:error:"), url, orientation, constraint, options, error) - return rv -} - -// Creates a feature value that contains an image defined by an image URL, an orientation, and a constraint. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/3362524-featurevaluewithimageaturl?language=objc -func FeatureValue_FeatureValueWithImageAtURLOrientationConstraintOptionsError(url foundation.IURL, orientation imageio.ImagePropertyOrientation, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - return FeatureValueClass.FeatureValueWithImageAtURLOrientationConstraintOptionsError(url, orientation, constraint, options, error) -} - -func (fc _FeatureValueClass) FeatureValueWithCGImageConstraintOptionsError(cgImage coregraphics.ImageRef, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithCGImage:constraint:options:error:"), cgImage, constraint, options, error) - return rv -} - -// Creates a feature value that contains an image defined by a core graphics image and a constraint. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/3200160-featurevaluewithcgimage?language=objc -func FeatureValue_FeatureValueWithCGImageConstraintOptionsError(cgImage coregraphics.ImageRef, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - return FeatureValueClass.FeatureValueWithCGImageConstraintOptionsError(cgImage, constraint, options, error) -} - -func (fc _FeatureValueClass) FeatureValueWithCGImageOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithCGImage:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:"), cgImage, orientation, pixelsWide, pixelsHigh, pixelFormatType, options, error) +func (fc _FeatureValueClass) FeatureValueWithString(value string) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithString:"), value) return rv } -// Creates a feature value that contains an image defined by a core graphics image and its orientation, size, and pixel format. [Full Topic] +// Creates a feature value that contains a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/3362523-featurevaluewithcgimage?language=objc -func FeatureValue_FeatureValueWithCGImageOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - return FeatureValueClass.FeatureValueWithCGImageOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage, orientation, pixelsWide, pixelsHigh, pixelFormatType, options, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879343-featurevaluewithstring?language=objc +func FeatureValue_FeatureValueWithString(value string) FeatureValue { + return FeatureValueClass.FeatureValueWithString(value) } -func (fc _FeatureValueClass) FeatureValueWithImageAtURLConstraintOptionsError(url foundation.IURL, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithImageAtURL:constraint:options:error:"), url, constraint, options, error) +func (fc _FeatureValueClass) FeatureValueWithSequence(sequence ISequence) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithSequence:"), sequence) return rv } -// Creates a feature value that contains an image defined by an image URL and a constraint. [Full Topic] +// Creates a feature value that contains a sequence. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/3200162-featurevaluewithimageaturl?language=objc -func FeatureValue_FeatureValueWithImageAtURLConstraintOptionsError(url foundation.IURL, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - return FeatureValueClass.FeatureValueWithImageAtURLConstraintOptionsError(url, constraint, options, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2962860-featurevaluewithsequence?language=objc +func FeatureValue_FeatureValueWithSequence(sequence ISequence) FeatureValue { + return FeatureValueClass.FeatureValueWithSequence(sequence) } -func (fc _FeatureValueClass) UndefinedFeatureValueWithType(type_ FeatureType) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("undefinedFeatureValueWithType:"), type_) +func (fc _FeatureValueClass) FeatureValueWithDictionaryError(value foundation.Dictionary, error unsafe.Pointer) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithDictionary:error:"), value, error) return rv } -// Creates a feature value with a type that represents an undefined or missing value. [Full Topic] +// Creates a feature value that contains a dictionary of numbers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879362-undefinedfeaturevaluewithtype?language=objc -func FeatureValue_UndefinedFeatureValueWithType(type_ FeatureType) FeatureValue { - return FeatureValueClass.UndefinedFeatureValueWithType(type_) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879393-featurevaluewithdictionary?language=objc +func FeatureValue_FeatureValueWithDictionaryError(value foundation.Dictionary, error unsafe.Pointer) FeatureValue { + return FeatureValueClass.FeatureValueWithDictionaryError(value, error) } -func (fc _FeatureValueClass) FeatureValueWithString(value string) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithString:"), value) +func (fc _FeatureValueClass) FeatureValueWithMultiArray(value IMultiArray) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithMultiArray:"), value) return rv } -// Creates a feature value that contains a string. [Full Topic] +// Creates a feature value that contains a multidimensional array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879343-featurevaluewithstring?language=objc -func FeatureValue_FeatureValueWithString(value string) FeatureValue { - return FeatureValueClass.FeatureValueWithString(value) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879356-featurevaluewithmultiarray?language=objc +func FeatureValue_FeatureValueWithMultiArray(value IMultiArray) FeatureValue { + return FeatureValueClass.FeatureValueWithMultiArray(value) } func (fc _FeatureValueClass) FeatureValueWithCGImageOrientationConstraintOptionsError(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { @@ -155,28 +107,16 @@ func FeatureValue_FeatureValueWithCGImageOrientationConstraintOptionsError(cgIma return FeatureValueClass.FeatureValueWithCGImageOrientationConstraintOptionsError(cgImage, orientation, constraint, options, error) } -func (fc _FeatureValueClass) FeatureValueWithDictionaryError(value foundation.Dictionary, error unsafe.Pointer) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithDictionary:error:"), value, error) - return rv -} - -// Creates a feature value that contains a dictionary of numbers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879393-featurevaluewithdictionary?language=objc -func FeatureValue_FeatureValueWithDictionaryError(value foundation.Dictionary, error unsafe.Pointer) FeatureValue { - return FeatureValueClass.FeatureValueWithDictionaryError(value, error) -} - -func (fc _FeatureValueClass) FeatureValueWithImageAtURLPixelsWidePixelsHighPixelFormatTypeOptionsError(url foundation.IURL, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithImageAtURL:pixelsWide:pixelsHigh:pixelFormatType:options:error:"), url, pixelsWide, pixelsHigh, pixelFormatType, options, error) +func (fc _FeatureValueClass) FeatureValueWithImageAtURLConstraintOptionsError(url foundation.IURL, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithImageAtURL:constraint:options:error:"), url, constraint, options, error) return rv } -// Creates a feature value that contains an image defined by an image URL and the image’s size and pixel format. [Full Topic] +// Creates a feature value that contains an image defined by an image URL and a constraint. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/3200163-featurevaluewithimageaturl?language=objc -func FeatureValue_FeatureValueWithImageAtURLPixelsWidePixelsHighPixelFormatTypeOptionsError(url foundation.IURL, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - return FeatureValueClass.FeatureValueWithImageAtURLPixelsWidePixelsHighPixelFormatTypeOptionsError(url, pixelsWide, pixelsHigh, pixelFormatType, options, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/3200162-featurevaluewithimageaturl?language=objc +func FeatureValue_FeatureValueWithImageAtURLConstraintOptionsError(url foundation.IURL, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { + return FeatureValueClass.FeatureValueWithImageAtURLConstraintOptionsError(url, constraint, options, error) } func (fc _FeatureValueClass) FeatureValueWithInt64(value int64) FeatureValue { @@ -191,52 +131,40 @@ func FeatureValue_FeatureValueWithInt64(value int64) FeatureValue { return FeatureValueClass.FeatureValueWithInt64(value) } -func (fc _FeatureValueClass) FeatureValueWithSequence(sequence ISequence) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithSequence:"), sequence) - return rv -} - -// Creates a feature value that contains a sequence. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2962860-featurevaluewithsequence?language=objc -func FeatureValue_FeatureValueWithSequence(sequence ISequence) FeatureValue { - return FeatureValueClass.FeatureValueWithSequence(sequence) -} - -func (fc _FeatureValueClass) FeatureValueWithMultiArray(value IMultiArray) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithMultiArray:"), value) +func (fc _FeatureValueClass) FeatureValueWithPixelBuffer(value corevideo.PixelBufferRef) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithPixelBuffer:"), value) return rv } -// Creates a feature value that contains a multidimensional array. [Full Topic] +// Creates a feature value that contains an image from a pixel buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879356-featurevaluewithmultiarray?language=objc -func FeatureValue_FeatureValueWithMultiArray(value IMultiArray) FeatureValue { - return FeatureValueClass.FeatureValueWithMultiArray(value) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879346-featurevaluewithpixelbuffer?language=objc +func FeatureValue_FeatureValueWithPixelBuffer(value corevideo.PixelBufferRef) FeatureValue { + return FeatureValueClass.FeatureValueWithPixelBuffer(value) } -func (fc _FeatureValueClass) FeatureValueWithCGImagePixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage coregraphics.ImageRef, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithCGImage:pixelsWide:pixelsHigh:pixelFormatType:options:error:"), cgImage, pixelsWide, pixelsHigh, pixelFormatType, options, error) +func (fc _FeatureValueClass) FeatureValueWithDouble(value float64) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithDouble:"), value) return rv } -// Creates a feature value that contains an image defined by a core graphics image and its size and pixel format. [Full Topic] +// Creates a feature value that contains a double. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/3200161-featurevaluewithcgimage?language=objc -func FeatureValue_FeatureValueWithCGImagePixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage coregraphics.ImageRef, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - return FeatureValueClass.FeatureValueWithCGImagePixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage, pixelsWide, pixelsHigh, pixelFormatType, options, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879398-featurevaluewithdouble?language=objc +func FeatureValue_FeatureValueWithDouble(value float64) FeatureValue { + return FeatureValueClass.FeatureValueWithDouble(value) } -func (fc _FeatureValueClass) FeatureValueWithImageAtURLOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(url foundation.IURL, orientation imageio.ImagePropertyOrientation, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithImageAtURL:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:"), url, orientation, pixelsWide, pixelsHigh, pixelFormatType, options, error) +func (fc _FeatureValueClass) UndefinedFeatureValueWithType(type_ FeatureType) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("undefinedFeatureValueWithType:"), type_) return rv } -// Creates a feature value that contains an image defined by an image URL and the image’s orientation, size, and pixel format. [Full Topic] +// Creates a feature value with a type that represents an undefined or missing value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/3362525-featurevaluewithimageaturl?language=objc -func FeatureValue_FeatureValueWithImageAtURLOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(url foundation.IURL, orientation imageio.ImagePropertyOrientation, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error unsafe.Pointer) FeatureValue { - return FeatureValueClass.FeatureValueWithImageAtURLOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(url, orientation, pixelsWide, pixelsHigh, pixelFormatType, options, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879362-undefinedfeaturevaluewithtype?language=objc +func FeatureValue_UndefinedFeatureValueWithType(type_ FeatureType) FeatureValue { + return FeatureValueClass.UndefinedFeatureValueWithType(type_) } func (fc _FeatureValueClass) Alloc() FeatureValue { @@ -267,11 +195,19 @@ func (f_ FeatureValue) IsEqualToFeatureValue(value IFeatureValue) bool { return rv } -// The underlying image of the feature value as a pixel buffer. [Full Topic] +// The underlying integer of the feature value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879400-imagebuffervalue?language=objc -func (f_ FeatureValue) ImageBufferValue() corevideo.PixelBufferRef { - rv := objc.Call[corevideo.PixelBufferRef](f_, objc.Sel("imageBufferValue")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879348-int64value?language=objc +func (f_ FeatureValue) Int64Value() int64 { + rv := objc.Call[int64](f_, objc.Sel("int64Value")) + return rv +} + +// The underlying string of the feature value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879349-stringvalue?language=objc +func (f_ FeatureValue) StringValue() string { + rv := objc.Call[string](f_, objc.Sel("stringValue")) return rv } @@ -283,43 +219,43 @@ func (f_ FeatureValue) MultiArrayValue() MultiArray { return rv } -// The type of the feature value. [Full Topic] +// The underlying double of the feature value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879368-type?language=objc -func (f_ FeatureValue) Type() FeatureType { - rv := objc.Call[FeatureType](f_, objc.Sel("type")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879375-doublevalue?language=objc +func (f_ FeatureValue) DoubleValue() float64 { + rv := objc.Call[float64](f_, objc.Sel("doubleValue")) return rv } -// The underlying integer of the feature value. [Full Topic] +// The underlying sequence of the feature value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879348-int64value?language=objc -func (f_ FeatureValue) Int64Value() int64 { - rv := objc.Call[int64](f_, objc.Sel("int64Value")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2962861-sequencevalue?language=objc +func (f_ FeatureValue) SequenceValue() Sequence { + rv := objc.Call[Sequence](f_, objc.Sel("sequenceValue")) return rv } -// A Boolean value that indicates whether the feature value is undefined or missing. [Full Topic] +// The underlying image of the feature value as a pixel buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879392-undefined?language=objc -func (f_ FeatureValue) IsUndefined() bool { - rv := objc.Call[bool](f_, objc.Sel("isUndefined")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879400-imagebuffervalue?language=objc +func (f_ FeatureValue) ImageBufferValue() corevideo.PixelBufferRef { + rv := objc.Call[corevideo.PixelBufferRef](f_, objc.Sel("imageBufferValue")) return rv } -// The underlying string of the feature value. [Full Topic] +// A Boolean value that indicates whether the feature value is undefined or missing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879349-stringvalue?language=objc -func (f_ FeatureValue) StringValue() string { - rv := objc.Call[string](f_, objc.Sel("stringValue")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879392-undefined?language=objc +func (f_ FeatureValue) IsUndefined() bool { + rv := objc.Call[bool](f_, objc.Sel("isUndefined")) return rv } -// The underlying sequence of the feature value. [Full Topic] +// The type of the feature value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2962861-sequencevalue?language=objc -func (f_ FeatureValue) SequenceValue() Sequence { - rv := objc.Call[Sequence](f_, objc.Sel("sequenceValue")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879368-type?language=objc +func (f_ FeatureValue) Type() FeatureType { + rv := objc.Call[FeatureType](f_, objc.Sel("type")) return rv } @@ -330,11 +266,3 @@ func (f_ FeatureValue) DictionaryValue() foundation.Dictionary { rv := objc.Call[foundation.Dictionary](f_, objc.Sel("dictionaryValue")) return rv } - -// The underlying double of the feature value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/2879375-doublevalue?language=objc -func (f_ FeatureValue) DoubleValue() float64 { - rv := objc.Call[float64](f_, objc.Sel("doubleValue")) - return rv -} diff --git a/macos/coreml/image_constraint.gen.go b/macos/coreml/image_constraint.gen.go index 67657e4b..ac24c046 100644 --- a/macos/coreml/image_constraint.gen.go +++ b/macos/coreml/image_constraint.gen.go @@ -18,10 +18,10 @@ type _ImageConstraintClass struct { // An interface definition for the [ImageConstraint] class. type IImageConstraint interface { objc.IObject - PixelsWide() int + SizeConstraint() ImageSizeConstraint PixelFormatType() uint + PixelsWide() int PixelsHigh() int - SizeConstraint() ImageSizeConstraint } // The width, height, and pixel format constraints of an image feature. [Full Topic] @@ -57,11 +57,11 @@ func (i_ ImageConstraint) Init() ImageConstraint { return rv } -// The model's default width for an image feature. [Full Topic] +// Additional sizes this image feature supports. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlimageconstraint/2921270-pixelswide?language=objc -func (i_ ImageConstraint) PixelsWide() int { - rv := objc.Call[int](i_, objc.Sel("pixelsWide")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlimageconstraint/2994299-sizeconstraint?language=objc +func (i_ ImageConstraint) SizeConstraint() ImageSizeConstraint { + rv := objc.Call[ImageSizeConstraint](i_, objc.Sel("sizeConstraint")) return rv } @@ -73,18 +73,18 @@ func (i_ ImageConstraint) PixelFormatType() uint { return rv } -// The model's default height for an image feature. [Full Topic] +// The model's default width for an image feature. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlimageconstraint/2921268-pixelshigh?language=objc -func (i_ ImageConstraint) PixelsHigh() int { - rv := objc.Call[int](i_, objc.Sel("pixelsHigh")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlimageconstraint/2921270-pixelswide?language=objc +func (i_ ImageConstraint) PixelsWide() int { + rv := objc.Call[int](i_, objc.Sel("pixelsWide")) return rv } -// Additional sizes this image feature supports. [Full Topic] +// The model's default height for an image feature. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlimageconstraint/2994299-sizeconstraint?language=objc -func (i_ ImageConstraint) SizeConstraint() ImageSizeConstraint { - rv := objc.Call[ImageSizeConstraint](i_, objc.Sel("sizeConstraint")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlimageconstraint/2921268-pixelshigh?language=objc +func (i_ ImageConstraint) PixelsHigh() int { + rv := objc.Call[int](i_, objc.Sel("pixelsHigh")) return rv } diff --git a/macos/coreml/image_size_constraint.gen.go b/macos/coreml/image_size_constraint.gen.go index 7b9df237..7c7533ad 100644 --- a/macos/coreml/image_size_constraint.gen.go +++ b/macos/coreml/image_size_constraint.gen.go @@ -19,9 +19,9 @@ type _ImageSizeConstraintClass struct { // An interface definition for the [ImageSizeConstraint] class. type IImageSizeConstraint interface { objc.IObject + PixelsWideRange() foundation.Range Type() ImageSizeConstraintType EnumeratedImageSizes() []ImageSize - PixelsWideRange() foundation.Range PixelsHighRange() foundation.Range } @@ -58,6 +58,14 @@ func (i_ ImageSizeConstraint) Init() ImageSizeConstraint { return rv } +// The range of widths a model's image feature accepts as input or produces as output. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlimagesizeconstraint/2994306-pixelswiderange?language=objc +func (i_ ImageSizeConstraint) PixelsWideRange() foundation.Range { + rv := objc.Call[foundation.Range](i_, objc.Sel("pixelsWideRange")) + return rv +} + // Indicator of which properties to inspect for this image size constraint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlimagesizeconstraint/2994307-type?language=objc @@ -74,14 +82,6 @@ func (i_ ImageSizeConstraint) EnumeratedImageSizes() []ImageSize { return rv } -// The range of widths a model's image feature accepts as input or produces as output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlimagesizeconstraint/2994306-pixelswiderange?language=objc -func (i_ ImageSizeConstraint) PixelsWideRange() foundation.Range { - rv := objc.Call[foundation.Range](i_, objc.Sel("pixelsWideRange")) - return rv -} - // The range of heights a model's image feature accepts as input or produces as output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlimagesizeconstraint/2994305-pixelshighrange?language=objc diff --git a/macos/coreml/metric_key.gen.go b/macos/coreml/metric_key.gen.go index 23803ba0..b46cea8e 100644 --- a/macos/coreml/metric_key.gen.go +++ b/macos/coreml/metric_key.gen.go @@ -68,21 +68,6 @@ func MetricKey_EpochIndex() MetricKey { return MetricKeyClass.EpochIndex() } -// The key you use to access the current loss (a float value). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmetrickey/3180091-lossvalue?language=objc -func (mc _MetricKeyClass) LossValue() MetricKey { - rv := objc.Call[MetricKey](mc, objc.Sel("lossValue")) - return rv -} - -// The key you use to access the current loss (a float value). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmetrickey/3180091-lossvalue?language=objc -func MetricKey_LossValue() MetricKey { - return MetricKeyClass.LossValue() -} - // The key you use to access the mini-batch index (an Int64 value) within an epoch. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlmetrickey/3180092-minibatchindex?language=objc @@ -97,3 +82,18 @@ func (mc _MetricKeyClass) MiniBatchIndex() MetricKey { func MetricKey_MiniBatchIndex() MetricKey { return MetricKeyClass.MiniBatchIndex() } + +// The key you use to access the current loss (a float value). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmetrickey/3180091-lossvalue?language=objc +func (mc _MetricKeyClass) LossValue() MetricKey { + rv := objc.Call[MetricKey](mc, objc.Sel("lossValue")) + return rv +} + +// The key you use to access the current loss (a float value). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmetrickey/3180091-lossvalue?language=objc +func MetricKey_LossValue() MetricKey { + return MetricKeyClass.LossValue() +} diff --git a/macos/coreml/model.gen.go b/macos/coreml/model.gen.go index 71fc6e3f..d65efbe7 100644 --- a/macos/coreml/model.gen.go +++ b/macos/coreml/model.gen.go @@ -19,17 +19,13 @@ type _ModelClass struct { // An interface definition for the [Model] class. type IModel interface { objc.IObject + ParameterValueForKeyError(key IParameterKey, error unsafe.Pointer) objc.Object PredictionsFromBatchError(inputBatch PBatchProvider, error unsafe.Pointer) BatchProviderObject PredictionsFromBatchObjectError(inputBatchObject objc.IObject, error unsafe.Pointer) BatchProviderObject - PredictionFromFeaturesOptionsError(input PFeatureProvider, options IPredictionOptions, error unsafe.Pointer) FeatureProviderObject - PredictionFromFeaturesObjectOptionsError(inputObject objc.IObject, options IPredictionOptions, error unsafe.Pointer) FeatureProviderObject PredictionFromFeaturesError(input PFeatureProvider, error unsafe.Pointer) FeatureProviderObject PredictionFromFeaturesObjectError(inputObject objc.IObject, error unsafe.Pointer) FeatureProviderObject - PredictionsFromBatchOptionsError(inputBatch PBatchProvider, options IPredictionOptions, error unsafe.Pointer) BatchProviderObject - PredictionsFromBatchObjectOptionsError(inputBatchObject objc.IObject, options IPredictionOptions, error unsafe.Pointer) BatchProviderObject - ParameterValueForKeyError(key IParameterKey, error unsafe.Pointer) objc.Object - ModelDescription() ModelDescription Configuration() ModelConfiguration + ModelDescription() ModelDescription } // An encapsulation of all the details of your machine learning model. [Full Topic] @@ -57,18 +53,6 @@ func Model_ModelWithContentsOfURLError(url foundation.IURL, error unsafe.Pointer return ModelClass.ModelWithContentsOfURLError(url, error) } -func (mc _ModelClass) ModelWithContentsOfURLConfigurationError(url foundation.IURL, configuration IModelConfiguration, error unsafe.Pointer) Model { - rv := objc.Call[Model](mc, objc.Sel("modelWithContentsOfURL:configuration:error:"), url, configuration, error) - return rv -} - -// Creates a Core ML model instance from a compiled model file and a custom configuration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3022229-modelwithcontentsofurl?language=objc -func Model_ModelWithContentsOfURLConfigurationError(url foundation.IURL, configuration IModelConfiguration, error unsafe.Pointer) Model { - return ModelClass.ModelWithContentsOfURLConfigurationError(url, configuration, error) -} - func (mc _ModelClass) Alloc() Model { rv := objc.Call[Model](mc, objc.Sel("alloc")) return rv @@ -89,20 +73,11 @@ func (m_ Model) Init() Model { return rv } -// Generates predictions for each input feature provider within the batch provider. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3088750-predictionsfrombatch?language=objc -func (m_ Model) PredictionsFromBatchError(inputBatch PBatchProvider, error unsafe.Pointer) BatchProviderObject { - po0 := objc.WrapAsProtocol("MLBatchProvider", inputBatch) - rv := objc.Call[BatchProviderObject](m_, objc.Sel("predictionsFromBatch:error:"), po0, error) - return rv -} - -// Generates predictions for each input feature provider within the batch provider. [Full Topic] +// Returns a model parameter value for a key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3088750-predictionsfrombatch?language=objc -func (m_ Model) PredictionsFromBatchObjectError(inputBatchObject objc.IObject, error unsafe.Pointer) BatchProviderObject { - rv := objc.Call[BatchProviderObject](m_, objc.Sel("predictionsFromBatch:error:"), inputBatchObject, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3362526-parametervalueforkey?language=objc +func (m_ Model) ParameterValueForKeyError(key IParameterKey, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("parameterValueForKey:error:"), key, error) return rv } @@ -120,20 +95,20 @@ func Model_LoadContentsOfURLConfigurationCompletionHandler(url foundation.IURL, ModelClass.LoadContentsOfURLConfigurationCompletionHandler(url, configuration, handler) } -// Generates a prediction from the feature values within the input feature provider using the prediction options. [Full Topic] +// Generates predictions for each input feature provider within the batch provider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/2921292-predictionfromfeatures?language=objc -func (m_ Model) PredictionFromFeaturesOptionsError(input PFeatureProvider, options IPredictionOptions, error unsafe.Pointer) FeatureProviderObject { - po0 := objc.WrapAsProtocol("MLFeatureProvider", input) - rv := objc.Call[FeatureProviderObject](m_, objc.Sel("predictionFromFeatures:options:error:"), po0, options, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3088750-predictionsfrombatch?language=objc +func (m_ Model) PredictionsFromBatchError(inputBatch PBatchProvider, error unsafe.Pointer) BatchProviderObject { + po0 := objc.WrapAsProtocol("MLBatchProvider", inputBatch) + rv := objc.Call[BatchProviderObject](m_, objc.Sel("predictionsFromBatch:error:"), po0, error) return rv } -// Generates a prediction from the feature values within the input feature provider using the prediction options. [Full Topic] +// Generates predictions for each input feature provider within the batch provider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/2921292-predictionfromfeatures?language=objc -func (m_ Model) PredictionFromFeaturesObjectOptionsError(inputObject objc.IObject, options IPredictionOptions, error unsafe.Pointer) FeatureProviderObject { - rv := objc.Call[FeatureProviderObject](m_, objc.Sel("predictionFromFeatures:options:error:"), inputObject, options, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3088750-predictionsfrombatch?language=objc +func (m_ Model) PredictionsFromBatchObjectError(inputBatchObject objc.IObject, error unsafe.Pointer) BatchProviderObject { + rv := objc.Call[BatchProviderObject](m_, objc.Sel("predictionsFromBatch:error:"), inputBatchObject, error) return rv } @@ -154,28 +129,11 @@ func (m_ Model) PredictionFromFeaturesObjectError(inputObject objc.IObject, erro return rv } -// Generates a prediction for each input feature provider within the batch provider using the prediction options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/2962866-predictionsfrombatch?language=objc -func (m_ Model) PredictionsFromBatchOptionsError(inputBatch PBatchProvider, options IPredictionOptions, error unsafe.Pointer) BatchProviderObject { - po0 := objc.WrapAsProtocol("MLBatchProvider", inputBatch) - rv := objc.Call[BatchProviderObject](m_, objc.Sel("predictionsFromBatch:options:error:"), po0, options, error) - return rv -} - -// Generates a prediction for each input feature provider within the batch provider using the prediction options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/2962866-predictionsfrombatch?language=objc -func (m_ Model) PredictionsFromBatchObjectOptionsError(inputBatchObject objc.IObject, options IPredictionOptions, error unsafe.Pointer) BatchProviderObject { - rv := objc.Call[BatchProviderObject](m_, objc.Sel("predictionsFromBatch:options:error:"), inputBatchObject, options, error) - return rv -} - -// Returns a model parameter value for a key. [Full Topic] +// The configuration of the model set during initialization. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3362526-parametervalueforkey?language=objc -func (m_ Model) ParameterValueForKeyError(key IParameterKey, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("parameterValueForKey:error:"), key, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3022228-configuration?language=objc +func (m_ Model) Configuration() ModelConfiguration { + rv := objc.Call[ModelConfiguration](m_, objc.Sel("configuration")) return rv } @@ -186,11 +144,3 @@ func (m_ Model) ModelDescription() ModelDescription { rv := objc.Call[ModelDescription](m_, objc.Sel("modelDescription")) return rv } - -// The configuration of the model set during initialization. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3022228-configuration?language=objc -func (m_ Model) Configuration() ModelConfiguration { - rv := objc.Call[ModelConfiguration](m_, objc.Sel("configuration")) - return rv -} diff --git a/macos/coreml/model_configuration.gen.go b/macos/coreml/model_configuration.gen.go index 055d8a6d..47716a3b 100644 --- a/macos/coreml/model_configuration.gen.go +++ b/macos/coreml/model_configuration.gen.go @@ -20,15 +20,15 @@ type _ModelConfigurationClass struct { // An interface definition for the [ModelConfiguration] class. type IModelConfiguration interface { objc.IObject + ComputeUnits() ComputeUnits + SetComputeUnits(value ComputeUnits) + Parameters() foundation.Dictionary + SetParameters(value foundation.Dictionary) PreferredMetalDevice() metal.DeviceObject SetPreferredMetalDevice(value metal.PDevice) SetPreferredMetalDeviceObject(valueObject objc.IObject) - Parameters() foundation.Dictionary - SetParameters(value foundation.Dictionary) AllowLowPrecisionAccumulationOnGPU() bool SetAllowLowPrecisionAccumulationOnGPU(value bool) - ComputeUnits() ComputeUnits - SetComputeUnits(value ComputeUnits) } // The settings for creating or updating a machine learning model. [Full Topic] @@ -64,6 +64,36 @@ func (m_ ModelConfiguration) Init() ModelConfiguration { return rv } +// The processing unit or units the model uses to make predictions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3022235-computeunits?language=objc +func (m_ ModelConfiguration) ComputeUnits() ComputeUnits { + rv := objc.Call[ComputeUnits](m_, objc.Sel("computeUnits")) + return rv +} + +// The processing unit or units the model uses to make predictions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3022235-computeunits?language=objc +func (m_ ModelConfiguration) SetComputeUnits(value ComputeUnits) { + objc.Call[objc.Void](m_, objc.Sel("setComputeUnits:"), value) +} + +// A dictionary of configuration settings your app can override when loading a model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3333249-parameters?language=objc +func (m_ ModelConfiguration) Parameters() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](m_, objc.Sel("parameters")) + return rv +} + +// A dictionary of configuration settings your app can override when loading a model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3333249-parameters?language=objc +func (m_ ModelConfiguration) SetParameters(value foundation.Dictionary) { + objc.Call[objc.Void](m_, objc.Sel("setParameters:"), value) +} + // The metal device you prefer this model use to make predictions (inference) and update the model. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3222915-preferredmetaldevice?language=objc @@ -87,21 +117,6 @@ func (m_ ModelConfiguration) SetPreferredMetalDeviceObject(valueObject objc.IObj objc.Call[objc.Void](m_, objc.Sel("setPreferredMetalDevice:"), valueObject) } -// A dictionary of configuration settings your app can override when loading a model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3333249-parameters?language=objc -func (m_ ModelConfiguration) Parameters() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](m_, objc.Sel("parameters")) - return rv -} - -// A dictionary of configuration settings your app can override when loading a model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3333249-parameters?language=objc -func (m_ ModelConfiguration) SetParameters(value foundation.Dictionary) { - objc.Call[objc.Void](m_, objc.Sel("setParameters:"), value) -} - // A Boolean value that determines whether to allow low-precision accumulation on a GPU. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3222914-allowlowprecisionaccumulationong?language=objc @@ -116,18 +131,3 @@ func (m_ ModelConfiguration) AllowLowPrecisionAccumulationOnGPU() bool { func (m_ ModelConfiguration) SetAllowLowPrecisionAccumulationOnGPU(value bool) { objc.Call[objc.Void](m_, objc.Sel("setAllowLowPrecisionAccumulationOnGPU:"), value) } - -// The processing unit or units the model uses to make predictions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3022235-computeunits?language=objc -func (m_ ModelConfiguration) ComputeUnits() ComputeUnits { - rv := objc.Call[ComputeUnits](m_, objc.Sel("computeUnits")) - return rv -} - -// The processing unit or units the model uses to make predictions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3022235-computeunits?language=objc -func (m_ ModelConfiguration) SetComputeUnits(value ComputeUnits) { - objc.Call[objc.Void](m_, objc.Sel("setComputeUnits:"), value) -} diff --git a/macos/coreml/model_description.gen.go b/macos/coreml/model_description.gen.go index a27d0ae0..d64b85e1 100644 --- a/macos/coreml/model_description.gen.go +++ b/macos/coreml/model_description.gen.go @@ -19,15 +19,15 @@ type _ModelDescriptionClass struct { // An interface definition for the [ModelDescription] class. type IModelDescription interface { objc.IObject - InputDescriptionsByName() map[string]FeatureDescription - OutputDescriptionsByName() map[string]FeatureDescription TrainingInputDescriptionsByName() map[string]FeatureDescription - IsUpdatable() bool ParameterDescriptionsByKey() foundation.Dictionary - PredictedFeatureName() string - PredictedProbabilitiesName() string + IsUpdatable() bool Metadata() map[ModelMetadataKey]objc.Object + PredictedFeatureName() string + InputDescriptionsByName() map[string]FeatureDescription ClassLabels() []objc.Object + PredictedProbabilitiesName() string + OutputDescriptionsByName() map[string]FeatureDescription } // Information about a model, primarily the input and output format for each feature the model expects, and optional metadata. [Full Topic] @@ -63,22 +63,6 @@ func (m_ ModelDescription) Init() ModelDescription { return rv } -// A dictionary of input feature descriptions, which the model keys by the input’s name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/2879352-inputdescriptionsbyname?language=objc -func (m_ ModelDescription) InputDescriptionsByName() map[string]FeatureDescription { - rv := objc.Call[map[string]FeatureDescription](m_, objc.Sel("inputDescriptionsByName")) - return rv -} - -// A dictionary of output feature descriptions, which the model keys by the output’s name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/2879361-outputdescriptionsbyname?language=objc -func (m_ ModelDescription) OutputDescriptionsByName() map[string]FeatureDescription { - rv := objc.Call[map[string]FeatureDescription](m_, objc.Sel("outputDescriptionsByName")) - return rv -} - // A dictionary of the training input feature descriptions, which the model keys by the input’s name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/3180060-traininginputdescriptionsbyname?language=objc @@ -87,6 +71,14 @@ func (m_ ModelDescription) TrainingInputDescriptionsByName() map[string]FeatureD return rv } +// A dictionary of the descriptions for the model’s parameters. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/3333250-parameterdescriptionsbykey?language=objc +func (m_ ModelDescription) ParameterDescriptionsByKey() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](m_, objc.Sel("parameterDescriptionsByKey")) + return rv +} + // A Boolean value that indicates whether you can update the model with additional training. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/3180059-isupdatable?language=objc @@ -95,11 +87,11 @@ func (m_ ModelDescription) IsUpdatable() bool { return rv } -// A dictionary of the descriptions for the model’s parameters. [Full Topic] +// A dictionary of the model’s creation information, such as its description, author, version, and license. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/3333250-parameterdescriptionsbykey?language=objc -func (m_ ModelDescription) ParameterDescriptionsByKey() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](m_, objc.Sel("parameterDescriptionsByKey")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/2879386-metadata?language=objc +func (m_ ModelDescription) Metadata() map[ModelMetadataKey]objc.Object { + rv := objc.Call[map[ModelMetadataKey]objc.Object](m_, objc.Sel("metadata")) return rv } @@ -111,19 +103,11 @@ func (m_ ModelDescription) PredictedFeatureName() string { return rv } -// The name of the feature output description for all probabilities of a prediction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/2879383-predictedprobabilitiesname?language=objc -func (m_ ModelDescription) PredictedProbabilitiesName() string { - rv := objc.Call[string](m_, objc.Sel("predictedProbabilitiesName")) - return rv -} - -// A dictionary of the model’s creation information, such as its description, author, version, and license. [Full Topic] +// A dictionary of input feature descriptions, which the model keys by the input’s name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/2879386-metadata?language=objc -func (m_ ModelDescription) Metadata() map[ModelMetadataKey]objc.Object { - rv := objc.Call[map[ModelMetadataKey]objc.Object](m_, objc.Sel("metadata")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/2879352-inputdescriptionsbyname?language=objc +func (m_ ModelDescription) InputDescriptionsByName() map[string]FeatureDescription { + rv := objc.Call[map[string]FeatureDescription](m_, objc.Sel("inputDescriptionsByName")) return rv } @@ -134,3 +118,19 @@ func (m_ ModelDescription) ClassLabels() []objc.Object { rv := objc.Call[[]objc.Object](m_, objc.Sel("classLabels")) return rv } + +// The name of the feature output description for all probabilities of a prediction. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/2879383-predictedprobabilitiesname?language=objc +func (m_ ModelDescription) PredictedProbabilitiesName() string { + rv := objc.Call[string](m_, objc.Sel("predictedProbabilitiesName")) + return rv +} + +// A dictionary of output feature descriptions, which the model keys by the output’s name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/2879361-outputdescriptionsbyname?language=objc +func (m_ ModelDescription) OutputDescriptionsByName() map[string]FeatureDescription { + rv := objc.Call[map[string]FeatureDescription](m_, objc.Sel("outputDescriptionsByName")) + return rv +} diff --git a/macos/coreml/multi_array.gen.go b/macos/coreml/multi_array.gen.go index 2ce9a2dc..4aa6f50f 100644 --- a/macos/coreml/multi_array.gen.go +++ b/macos/coreml/multi_array.gen.go @@ -20,15 +20,14 @@ type _MultiArrayClass struct { // An interface definition for the [MultiArray] class. type IMultiArray interface { objc.IObject - SetObjectForKeyedSubscript(obj foundation.INumber, key []foundation.INumber) - SetObjectAtIndexedSubscript(obj foundation.INumber, idx int) ObjectAtIndexedSubscript(idx int) foundation.Number ObjectForKeyedSubscript(key []foundation.INumber) foundation.Number - Strides() []foundation.Number - PixelBuffer() corevideo.PixelBufferRef + SetObjectAtIndexedSubscript(obj foundation.INumber, idx int) Shape() []foundation.Number - DataType() MultiArrayDataType + PixelBuffer() corevideo.PixelBufferRef Count() int + DataType() MultiArrayDataType + Strides() []foundation.Number } // A machine learning collection type that stores numeric values in an array with multiple dimensions. [Full Topic] @@ -70,30 +69,30 @@ func NewMultiArrayWithShapeDataTypeError(shape []foundation.INumber, dataType Mu return instance } -func (m_ MultiArray) InitWithPixelBufferShape(pixelBuffer corevideo.PixelBufferRef, shape []foundation.INumber) MultiArray { - rv := objc.Call[MultiArray](m_, objc.Sel("initWithPixelBuffer:shape:"), pixelBuffer, shape) +func (m_ MultiArray) InitWithDataPointerShapeDataTypeStridesDeallocatorError(dataPointer unsafe.Pointer, shape []foundation.INumber, dataType MultiArrayDataType, strides []foundation.INumber, deallocator func(bytes unsafe.Pointer), error unsafe.Pointer) MultiArray { + rv := objc.Call[MultiArray](m_, objc.Sel("initWithDataPointer:shape:dataType:strides:deallocator:error:"), dataPointer, shape, dataType, strides, deallocator, error) return rv } -// Creates a multiarray sharing the surface of a pixel buffer. [Full Topic] +// Creates a multiarray from a data pointer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/3882834-initwithpixelbuffer?language=objc -func NewMultiArrayWithPixelBufferShape(pixelBuffer corevideo.PixelBufferRef, shape []foundation.INumber) MultiArray { - instance := MultiArrayClass.Alloc().InitWithPixelBufferShape(pixelBuffer, shape) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2881219-initwithdatapointer?language=objc +func NewMultiArrayWithDataPointerShapeDataTypeStridesDeallocatorError(dataPointer unsafe.Pointer, shape []foundation.INumber, dataType MultiArrayDataType, strides []foundation.INumber, deallocator func(bytes unsafe.Pointer), error unsafe.Pointer) MultiArray { + instance := MultiArrayClass.Alloc().InitWithDataPointerShapeDataTypeStridesDeallocatorError(dataPointer, shape, dataType, strides, deallocator, error) instance.Autorelease() return instance } -func (m_ MultiArray) InitWithDataPointerShapeDataTypeStridesDeallocatorError(dataPointer unsafe.Pointer, shape []foundation.INumber, dataType MultiArrayDataType, strides []foundation.INumber, deallocator func(bytes unsafe.Pointer), error unsafe.Pointer) MultiArray { - rv := objc.Call[MultiArray](m_, objc.Sel("initWithDataPointer:shape:dataType:strides:deallocator:error:"), dataPointer, shape, dataType, strides, deallocator, error) +func (m_ MultiArray) InitWithPixelBufferShape(pixelBuffer corevideo.PixelBufferRef, shape []foundation.INumber) MultiArray { + rv := objc.Call[MultiArray](m_, objc.Sel("initWithPixelBuffer:shape:"), pixelBuffer, shape) return rv } -// Creates a multiarray from a data pointer. [Full Topic] +// Creates a multiarray sharing the surface of a pixel buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2881219-initwithdatapointer?language=objc -func NewMultiArrayWithDataPointerShapeDataTypeStridesDeallocatorError(dataPointer unsafe.Pointer, shape []foundation.INumber, dataType MultiArrayDataType, strides []foundation.INumber, deallocator func(bytes unsafe.Pointer), error unsafe.Pointer) MultiArray { - instance := MultiArrayClass.Alloc().InitWithDataPointerShapeDataTypeStridesDeallocatorError(dataPointer, shape, dataType, strides, deallocator, error) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/3882834-initwithpixelbuffer?language=objc +func NewMultiArrayWithPixelBufferShape(pixelBuffer corevideo.PixelBufferRef, shape []foundation.INumber) MultiArray { + instance := MultiArrayClass.Alloc().InitWithPixelBufferShape(pixelBuffer, shape) instance.Autorelease() return instance } @@ -118,20 +117,6 @@ func (m_ MultiArray) Init() MultiArray { return rv } -// Assigns a number to the multiarray’s element at the location that the number array defines. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2879225-setobject?language=objc -func (m_ MultiArray) SetObjectForKeyedSubscript(obj foundation.INumber, key []foundation.INumber) { - objc.Call[objc.Void](m_, objc.Sel("setObject:forKeyedSubscript:"), obj, key) -} - -// Assigns a number to the multiarray’s element at the location that the linear offset defines. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2879226-setobject?language=objc -func (m_ MultiArray) SetObjectAtIndexedSubscript(obj foundation.INumber, idx int) { - objc.Call[objc.Void](m_, objc.Sel("setObject:atIndexedSubscript:"), obj, idx) -} - // Accesses the multiarray by using a linear offset. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2879228-objectatindexedsubscript?language=objc @@ -148,11 +133,18 @@ func (m_ MultiArray) ObjectForKeyedSubscript(key []foundation.INumber) foundatio return rv } -// A number array in which each element is the number of memory locations that span the length of the corresponding dimension. [Full Topic] +// Assigns a number to the multiarray’s element at the location that the linear offset defines. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2879222-strides?language=objc -func (m_ MultiArray) Strides() []foundation.Number { - rv := objc.Call[[]foundation.Number](m_, objc.Sel("strides")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2879226-setobject?language=objc +func (m_ MultiArray) SetObjectAtIndexedSubscript(obj foundation.INumber, idx int) { + objc.Call[objc.Void](m_, objc.Sel("setObject:atIndexedSubscript:"), obj, idx) +} + +// The multiarray’s multidimensional shape as a number array in which each element’s value is the size of the corresponding dimension. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2879229-shape?language=objc +func (m_ MultiArray) Shape() []foundation.Number { + rv := objc.Call[[]foundation.Number](m_, objc.Sel("shape")) return rv } @@ -164,11 +156,11 @@ func (m_ MultiArray) PixelBuffer() corevideo.PixelBufferRef { return rv } -// The multiarray’s multidimensional shape as a number array in which each element’s value is the size of the corresponding dimension. [Full Topic] +// The total number of elements in the multiarray. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2879229-shape?language=objc -func (m_ MultiArray) Shape() []foundation.Number { - rv := objc.Call[[]foundation.Number](m_, objc.Sel("shape")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2879233-count?language=objc +func (m_ MultiArray) Count() int { + rv := objc.Call[int](m_, objc.Sel("count")) return rv } @@ -180,10 +172,10 @@ func (m_ MultiArray) DataType() MultiArrayDataType { return rv } -// The total number of elements in the multiarray. [Full Topic] +// A number array in which each element is the number of memory locations that span the length of the corresponding dimension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2879233-count?language=objc -func (m_ MultiArray) Count() int { - rv := objc.Call[int](m_, objc.Sel("count")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarray/2879222-strides?language=objc +func (m_ MultiArray) Strides() []foundation.Number { + rv := objc.Call[[]foundation.Number](m_, objc.Sel("strides")) return rv } diff --git a/macos/coreml/multi_array_constraint.gen.go b/macos/coreml/multi_array_constraint.gen.go index d42445db..6e567a62 100644 --- a/macos/coreml/multi_array_constraint.gen.go +++ b/macos/coreml/multi_array_constraint.gen.go @@ -19,9 +19,9 @@ type _MultiArrayConstraintClass struct { // An interface definition for the [MultiArrayConstraint] class. type IMultiArrayConstraint interface { objc.IObject - DataType() MultiArrayDataType - ShapeConstraint() MultiArrayShapeConstraint Shape() []foundation.Number + ShapeConstraint() MultiArrayShapeConstraint + DataType() MultiArrayDataType } // The shape and data type constraints for a multidimensional array feature. [Full Topic] @@ -57,11 +57,11 @@ func (m_ MultiArrayConstraint) Init() MultiArrayConstraint { return rv } -// The type for the multi array. [Full Topic] +// The shape of the multi array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarrayconstraint/2921278-datatype?language=objc -func (m_ MultiArrayConstraint) DataType() MultiArrayDataType { - rv := objc.Call[MultiArrayDataType](m_, objc.Sel("dataType")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarrayconstraint/2921277-shape?language=objc +func (m_ MultiArrayConstraint) Shape() []foundation.Number { + rv := objc.Call[[]foundation.Number](m_, objc.Sel("shape")) return rv } @@ -73,10 +73,10 @@ func (m_ MultiArrayConstraint) ShapeConstraint() MultiArrayShapeConstraint { return rv } -// The shape of the multi array. [Full Topic] +// The type for the multi array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarrayconstraint/2921277-shape?language=objc -func (m_ MultiArrayConstraint) Shape() []foundation.Number { - rv := objc.Call[[]foundation.Number](m_, objc.Sel("shape")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarrayconstraint/2921278-datatype?language=objc +func (m_ MultiArrayConstraint) DataType() MultiArrayDataType { + rv := objc.Call[MultiArrayDataType](m_, objc.Sel("dataType")) return rv } diff --git a/macos/coreml/multi_array_shape_constraint.gen.go b/macos/coreml/multi_array_shape_constraint.gen.go index 3dbb0964..c89b2163 100644 --- a/macos/coreml/multi_array_shape_constraint.gen.go +++ b/macos/coreml/multi_array_shape_constraint.gen.go @@ -19,9 +19,9 @@ type _MultiArrayShapeConstraintClass struct { // An interface definition for the [MultiArrayShapeConstraint] class. type IMultiArrayShapeConstraint interface { objc.IObject - Type() MultiArrayShapeConstraintType EnumeratedShapes() [][]foundation.Number SizeRangeForDimension() []foundation.Value + Type() MultiArrayShapeConstraintType } // The lists of shapes or ranges of shapes that constrain a multiarray feature. [Full Topic] @@ -57,14 +57,6 @@ func (m_ MultiArrayShapeConstraint) Init() MultiArrayShapeConstraint { return rv } -// The type of the shape constraint. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarrayshapeconstraint/2994315-type?language=objc -func (m_ MultiArrayShapeConstraint) Type() MultiArrayShapeConstraintType { - rv := objc.Call[MultiArrayShapeConstraintType](m_, objc.Sel("type")) - return rv -} - // Array of allowed shapes for a multiarray feature. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarrayshapeconstraint/2994313-enumeratedshapes?language=objc @@ -80,3 +72,11 @@ func (m_ MultiArrayShapeConstraint) SizeRangeForDimension() []foundation.Value { rv := objc.Call[[]foundation.Value](m_, objc.Sel("sizeRangeForDimension")) return rv } + +// The type of the shape constraint. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmultiarrayshapeconstraint/2994315-type?language=objc +func (m_ MultiArrayShapeConstraint) Type() MultiArrayShapeConstraintType { + rv := objc.Call[MultiArrayShapeConstraintType](m_, objc.Sel("type")) + return rv +} diff --git a/macos/coreml/parameter_description.gen.go b/macos/coreml/parameter_description.gen.go index eac1f526..f36feb6c 100644 --- a/macos/coreml/parameter_description.gen.go +++ b/macos/coreml/parameter_description.gen.go @@ -18,9 +18,9 @@ type _ParameterDescriptionClass struct { // An interface definition for the [ParameterDescription] class. type IParameterDescription interface { objc.IObject - NumericConstraint() NumericConstraint - DefaultValue() objc.Object Key() ParameterKey + DefaultValue() objc.Object + NumericConstraint() NumericConstraint } // A description of a model parameter that includes a default value and a constraint, if applicable. [Full Topic] @@ -56,11 +56,11 @@ func (p_ ParameterDescription) Init() ParameterDescription { return rv } -// The constraints of this paramter description value, if and only if the value is numerical. [Full Topic] +// The key for this parameter description value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterdescription/3180070-numericconstraint?language=objc -func (p_ ParameterDescription) NumericConstraint() NumericConstraint { - rv := objc.Call[NumericConstraint](p_, objc.Sel("numericConstraint")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterdescription/3180069-key?language=objc +func (p_ ParameterDescription) Key() ParameterKey { + rv := objc.Call[ParameterKey](p_, objc.Sel("key")) return rv } @@ -72,10 +72,10 @@ func (p_ ParameterDescription) DefaultValue() objc.Object { return rv } -// The key for this parameter description value. [Full Topic] +// The constraints of this paramter description value, if and only if the value is numerical. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterdescription/3180069-key?language=objc -func (p_ ParameterDescription) Key() ParameterKey { - rv := objc.Call[ParameterKey](p_, objc.Sel("key")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterdescription/3180070-numericconstraint?language=objc +func (p_ ParameterDescription) NumericConstraint() NumericConstraint { + rv := objc.Call[NumericConstraint](p_, objc.Sel("numericConstraint")) return rv } diff --git a/macos/coreml/parameter_key.gen.go b/macos/coreml/parameter_key.gen.go index 1192cfc8..97a24d4e 100644 --- a/macos/coreml/parameter_key.gen.go +++ b/macos/coreml/parameter_key.gen.go @@ -62,19 +62,49 @@ func (p_ ParameterKey) ScopedTo(scope string) ParameterKey { return rv } -// The key you use to access the seed parameter that initializes the random number generator for the shuffle option. [Full Topic] +// The key you use to access the stochastic gradient descent (SGD) optimizer’s momentum parameter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3333252-seed?language=objc -func (pc _ParameterKeyClass) Seed() ParameterKey { - rv := objc.Call[ParameterKey](pc, objc.Sel("seed")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3197646-momentum?language=objc +func (pc _ParameterKeyClass) Momentum() ParameterKey { + rv := objc.Call[ParameterKey](pc, objc.Sel("momentum")) return rv } -// The key you use to access the seed parameter that initializes the random number generator for the shuffle option. [Full Topic] +// The key you use to access the stochastic gradient descent (SGD) optimizer’s momentum parameter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3333252-seed?language=objc -func ParameterKey_Seed() ParameterKey { - return ParameterKeyClass.Seed() +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3197646-momentum?language=objc +func ParameterKey_Momentum() ParameterKey { + return ParameterKeyClass.Momentum() +} + +// The key you use to access the linked model’s filename. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3227893-linkedmodelfilename?language=objc +func (pc _ParameterKeyClass) LinkedModelFileName() ParameterKey { + rv := objc.Call[ParameterKey](pc, objc.Sel("linkedModelFileName")) + return rv +} + +// The key you use to access the linked model’s filename. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3227893-linkedmodelfilename?language=objc +func ParameterKey_LinkedModelFileName() ParameterKey { + return ParameterKeyClass.LinkedModelFileName() +} + +// The key you use to access the number of neighbors that adjusts the affinity of a k-nearest-neighbor model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3362529-numberofneighbors?language=objc +func (pc _ParameterKeyClass) NumberOfNeighbors() ParameterKey { + rv := objc.Call[ParameterKey](pc, objc.Sel("numberOfNeighbors")) + return rv +} + +// The key you use to access the number of neighbors that adjusts the affinity of a k-nearest-neighbor model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3362529-numberofneighbors?language=objc +func ParameterKey_NumberOfNeighbors() ParameterKey { + return ParameterKeyClass.NumberOfNeighbors() } // The key you use to access the weights of a layer in a neural network model. [Full Topic] @@ -92,19 +122,19 @@ func ParameterKey_Weights() ParameterKey { return ParameterKeyClass.Weights() } -// The key you use to access the optimizer’s learning rate parameter. [Full Topic] +// The key you use to access the Adam optimizer’s second beta parameter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3180073-learningrate?language=objc -func (pc _ParameterKeyClass) LearningRate() ParameterKey { - rv := objc.Call[ParameterKey](pc, objc.Sel("learningRate")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3194197-beta2?language=objc +func (pc _ParameterKeyClass) Beta2() ParameterKey { + rv := objc.Call[ParameterKey](pc, objc.Sel("beta2")) return rv } -// The key you use to access the optimizer’s learning rate parameter. [Full Topic] +// The key you use to access the Adam optimizer’s second beta parameter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3180073-learningrate?language=objc -func ParameterKey_LearningRate() ParameterKey { - return ParameterKeyClass.LearningRate() +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3194197-beta2?language=objc +func ParameterKey_Beta2() ParameterKey { + return ParameterKeyClass.Beta2() } // The key you use to access the Adam optimizer’s first beta parameter. [Full Topic] @@ -122,34 +152,49 @@ func ParameterKey_Beta1() ParameterKey { return ParameterKeyClass.Beta1() } -// The key you use to access the optimizer’s epochs parameter. [Full Topic] +// The key you use to access the biases of a layer in a neural network model. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3180072-epochs?language=objc -func (pc _ParameterKeyClass) Epochs() ParameterKey { - rv := objc.Call[ParameterKey](pc, objc.Sel("epochs")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3362528-biases?language=objc +func (pc _ParameterKeyClass) Biases() ParameterKey { + rv := objc.Call[ParameterKey](pc, objc.Sel("biases")) return rv } -// The key you use to access the optimizer’s epochs parameter. [Full Topic] +// The key you use to access the biases of a layer in a neural network model. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3180072-epochs?language=objc -func ParameterKey_Epochs() ParameterKey { - return ParameterKeyClass.Epochs() +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3362528-biases?language=objc +func ParameterKey_Biases() ParameterKey { + return ParameterKeyClass.Biases() } -// The key you use to access the Adam optimizer’s second beta parameter. [Full Topic] +// The key you use to access the optimizer’s learning rate parameter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3194197-beta2?language=objc -func (pc _ParameterKeyClass) Beta2() ParameterKey { - rv := objc.Call[ParameterKey](pc, objc.Sel("beta2")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3180073-learningrate?language=objc +func (pc _ParameterKeyClass) LearningRate() ParameterKey { + rv := objc.Call[ParameterKey](pc, objc.Sel("learningRate")) return rv } -// The key you use to access the Adam optimizer’s second beta parameter. [Full Topic] +// The key you use to access the optimizer’s learning rate parameter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3194197-beta2?language=objc -func ParameterKey_Beta2() ParameterKey { - return ParameterKeyClass.Beta2() +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3180073-learningrate?language=objc +func ParameterKey_LearningRate() ParameterKey { + return ParameterKeyClass.LearningRate() +} + +// The key you use to access the Adam optimizer’s epsilon parameter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3194198-eps?language=objc +func (pc _ParameterKeyClass) Eps() ParameterKey { + rv := objc.Call[ParameterKey](pc, objc.Sel("eps")) + return rv +} + +// The key you use to access the Adam optimizer’s epsilon parameter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3194198-eps?language=objc +func ParameterKey_Eps() ParameterKey { + return ParameterKeyClass.Eps() } // The key you use to access the linked model’s search path. [Full Topic] @@ -167,36 +212,6 @@ func ParameterKey_LinkedModelSearchPath() ParameterKey { return ParameterKeyClass.LinkedModelSearchPath() } -// The key you use to access the linked model’s filename. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3227893-linkedmodelfilename?language=objc -func (pc _ParameterKeyClass) LinkedModelFileName() ParameterKey { - rv := objc.Call[ParameterKey](pc, objc.Sel("linkedModelFileName")) - return rv -} - -// The key you use to access the linked model’s filename. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3227893-linkedmodelfilename?language=objc -func ParameterKey_LinkedModelFileName() ParameterKey { - return ParameterKeyClass.LinkedModelFileName() -} - -// The key you use to access the stochastic gradient descent (SGD) optimizer’s momentum parameter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3197646-momentum?language=objc -func (pc _ParameterKeyClass) Momentum() ParameterKey { - rv := objc.Call[ParameterKey](pc, objc.Sel("momentum")) - return rv -} - -// The key you use to access the stochastic gradient descent (SGD) optimizer’s momentum parameter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3197646-momentum?language=objc -func ParameterKey_Momentum() ParameterKey { - return ParameterKeyClass.Momentum() -} - // The key you use to access the optimizer’s mini batch-size parameter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3180074-minibatchsize?language=objc @@ -212,21 +227,6 @@ func ParameterKey_MiniBatchSize() ParameterKey { return ParameterKeyClass.MiniBatchSize() } -// The key you use to access the number of neighbors that adjusts the affinity of a k-nearest-neighbor model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3362529-numberofneighbors?language=objc -func (pc _ParameterKeyClass) NumberOfNeighbors() ParameterKey { - rv := objc.Call[ParameterKey](pc, objc.Sel("numberOfNeighbors")) - return rv -} - -// The key you use to access the number of neighbors that adjusts the affinity of a k-nearest-neighbor model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3362529-numberofneighbors?language=objc -func ParameterKey_NumberOfNeighbors() ParameterKey { - return ParameterKeyClass.NumberOfNeighbors() -} - // The key you use to access the shuffle parameter, a Boolean value that determines whether the model randomizes the data between epochs. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3333253-shuffle?language=objc @@ -242,32 +242,32 @@ func ParameterKey_Shuffle() ParameterKey { return ParameterKeyClass.Shuffle() } -// The key you use to access the biases of a layer in a neural network model. [Full Topic] +// The key you use to access the seed parameter that initializes the random number generator for the shuffle option. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3362528-biases?language=objc -func (pc _ParameterKeyClass) Biases() ParameterKey { - rv := objc.Call[ParameterKey](pc, objc.Sel("biases")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3333252-seed?language=objc +func (pc _ParameterKeyClass) Seed() ParameterKey { + rv := objc.Call[ParameterKey](pc, objc.Sel("seed")) return rv } -// The key you use to access the biases of a layer in a neural network model. [Full Topic] +// The key you use to access the seed parameter that initializes the random number generator for the shuffle option. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3362528-biases?language=objc -func ParameterKey_Biases() ParameterKey { - return ParameterKeyClass.Biases() +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3333252-seed?language=objc +func ParameterKey_Seed() ParameterKey { + return ParameterKeyClass.Seed() } -// The key you use to access the Adam optimizer’s epsilon parameter. [Full Topic] +// The key you use to access the optimizer’s epochs parameter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3194198-eps?language=objc -func (pc _ParameterKeyClass) Eps() ParameterKey { - rv := objc.Call[ParameterKey](pc, objc.Sel("eps")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3180072-epochs?language=objc +func (pc _ParameterKeyClass) Epochs() ParameterKey { + rv := objc.Call[ParameterKey](pc, objc.Sel("epochs")) return rv } -// The key you use to access the Adam optimizer’s epsilon parameter. [Full Topic] +// The key you use to access the optimizer’s epochs parameter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3194198-eps?language=objc -func ParameterKey_Eps() ParameterKey { - return ParameterKeyClass.Eps() +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3180072-epochs?language=objc +func ParameterKey_Epochs() ParameterKey { + return ParameterKeyClass.Epochs() } diff --git a/macos/coreml/sequence.gen.go b/macos/coreml/sequence.gen.go index fd63b25d..cdc2e2e2 100644 --- a/macos/coreml/sequence.gen.go +++ b/macos/coreml/sequence.gen.go @@ -20,8 +20,8 @@ type _SequenceClass struct { type ISequence interface { objc.IObject StringValues() []string - Type() FeatureType Int64Values() []foundation.Number + Type() FeatureType } // A machine learning collection type that stores a series of strings or integers. [Full Topic] @@ -101,14 +101,6 @@ func (s_ Sequence) StringValues() []string { return rv } -// The underlying type of the sequence’s elements. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlsequence/2962875-type?language=objc -func (s_ Sequence) Type() FeatureType { - rv := objc.Call[FeatureType](s_, objc.Sel("type")) - return rv -} - // An array of 64-bit integers in the sequence. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlsequence/2962871-int64values?language=objc @@ -116,3 +108,11 @@ func (s_ Sequence) Int64Values() []foundation.Number { rv := objc.Call[[]foundation.Number](s_, objc.Sel("int64Values")) return rv } + +// The underlying type of the sequence’s elements. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlsequence/2962875-type?language=objc +func (s_ Sequence) Type() FeatureType { + rv := objc.Call[FeatureType](s_, objc.Sel("type")) + return rv +} diff --git a/macos/coreml/sequence_constraint.gen.go b/macos/coreml/sequence_constraint.gen.go index 340459f1..f9adae24 100644 --- a/macos/coreml/sequence_constraint.gen.go +++ b/macos/coreml/sequence_constraint.gen.go @@ -19,8 +19,8 @@ type _SequenceConstraintClass struct { // An interface definition for the [SequenceConstraint] class. type ISequenceConstraint interface { objc.IObject - CountRange() foundation.Range ValueDescription() FeatureDescription + CountRange() foundation.Range } // The constraints for a sequence feature. [Full Topic] @@ -56,14 +56,6 @@ func (s_ SequenceConstraint) Init() SequenceConstraint { return rv } -// The range of values allowed for the sequence's length. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlsequenceconstraint/2994319-countrange?language=objc -func (s_ SequenceConstraint) CountRange() foundation.Range { - rv := objc.Call[foundation.Range](s_, objc.Sel("countRange")) - return rv -} - // The description that all sequence elements must match. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlsequenceconstraint/2962878-valuedescription?language=objc @@ -71,3 +63,11 @@ func (s_ SequenceConstraint) ValueDescription() FeatureDescription { rv := objc.Call[FeatureDescription](s_, objc.Sel("valueDescription")) return rv } + +// The range of values allowed for the sequence's length. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlsequenceconstraint/2994319-countrange?language=objc +func (s_ SequenceConstraint) CountRange() foundation.Range { + rv := objc.Call[foundation.Range](s_, objc.Sel("countRange")) + return rv +} diff --git a/macos/coreml/task.gen.go b/macos/coreml/task.gen.go index d1dea20e..81459d76 100644 --- a/macos/coreml/task.gen.go +++ b/macos/coreml/task.gen.go @@ -19,8 +19,8 @@ type _TaskClass struct { // An interface definition for the [Task] class. type ITask interface { objc.IObject - Cancel() Resume() + Cancel() Error() foundation.Error State() TaskState TaskIdentifier() string @@ -59,13 +59,6 @@ func (t_ Task) Init() Task { return rv } -// Cancels a machine learning task before it completes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mltask/3180078-cancel?language=objc -func (t_ Task) Cancel() { - objc.Call[objc.Void](t_, objc.Sel("cancel")) -} - // Begins or resumes a machine learning task. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mltask/3180080-resume?language=objc @@ -73,6 +66,13 @@ func (t_ Task) Resume() { objc.Call[objc.Void](t_, objc.Sel("resume")) } +// Cancels a machine learning task before it completes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mltask/3180078-cancel?language=objc +func (t_ Task) Cancel() { + objc.Call[objc.Void](t_, objc.Sel("cancel")) +} + // The underlying error if the task is in a failed state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mltask/3180079-error?language=objc diff --git a/macos/coreml/update_context.gen.go b/macos/coreml/update_context.gen.go index 925d702a..cf2e0a48 100644 --- a/macos/coreml/update_context.gen.go +++ b/macos/coreml/update_context.gen.go @@ -19,9 +19,9 @@ type _UpdateContextClass struct { // An interface definition for the [UpdateContext] class. type IUpdateContext interface { objc.IObject - Parameters() foundation.Dictionary Metrics() foundation.Dictionary Model() Model + Parameters() foundation.Dictionary Task() UpdateTask Event() UpdateProgressEvent } @@ -59,14 +59,6 @@ func (u_ UpdateContext) Init() UpdateContext { return rv } -// The parameters for the update task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlupdatecontext/3180097-parameters?language=objc -func (u_ UpdateContext) Parameters() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](u_, objc.Sel("parameters")) - return rv -} - // The training metrics of the model for the update task, contained in a dictionary. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlupdatecontext/3180095-metrics?language=objc @@ -83,6 +75,14 @@ func (u_ UpdateContext) Model() Model { return rv } +// The parameters for the update task. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlupdatecontext/3180097-parameters?language=objc +func (u_ UpdateContext) Parameters() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](u_, objc.Sel("parameters")) + return rv +} + // The update task that generated the update context. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlupdatecontext/3180098-task?language=objc diff --git a/macos/coreml/update_task.gen.go b/macos/coreml/update_task.gen.go index 12b69e06..b25b8476 100644 --- a/macos/coreml/update_task.gen.go +++ b/macos/coreml/update_task.gen.go @@ -48,45 +48,6 @@ func UpdateTask_UpdateTaskForModelAtURLTrainingDataProgressHandlersError(modelUR return UpdateTaskClass.UpdateTaskForModelAtURLTrainingDataProgressHandlersError(modelURL, trainingData, progressHandlers, error) } -func (uc _UpdateTaskClass) UpdateTaskForModelAtURLTrainingDataCompletionHandlerError(modelURL foundation.IURL, trainingData PBatchProvider, completionHandler func(arg0 UpdateContext), error unsafe.Pointer) UpdateTask { - po1 := objc.WrapAsProtocol("MLBatchProvider", trainingData) - rv := objc.Call[UpdateTask](uc, objc.Sel("updateTaskForModelAtURL:trainingData:completionHandler:error:"), modelURL, po1, completionHandler, error) - return rv -} - -// Creates a task that updates the model at the URL with the training data, and calls the completion handler when the update completes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlupdatetask/3547162-updatetaskformodelaturl?language=objc -func UpdateTask_UpdateTaskForModelAtURLTrainingDataCompletionHandlerError(modelURL foundation.IURL, trainingData PBatchProvider, completionHandler func(arg0 UpdateContext), error unsafe.Pointer) UpdateTask { - return UpdateTaskClass.UpdateTaskForModelAtURLTrainingDataCompletionHandlerError(modelURL, trainingData, completionHandler, error) -} - -func (uc _UpdateTaskClass) UpdateTaskForModelAtURLTrainingDataConfigurationCompletionHandlerError(modelURL foundation.IURL, trainingData PBatchProvider, configuration IModelConfiguration, completionHandler func(context UpdateContext), error unsafe.Pointer) UpdateTask { - po1 := objc.WrapAsProtocol("MLBatchProvider", trainingData) - rv := objc.Call[UpdateTask](uc, objc.Sel("updateTaskForModelAtURL:trainingData:configuration:completionHandler:error:"), modelURL, po1, configuration, completionHandler, error) - return rv -} - -// Creates a task that updates the model at the URL with the training data and configuration, and calls the completion handler when the update completes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlupdatetask/3180111-updatetaskformodelaturl?language=objc -func UpdateTask_UpdateTaskForModelAtURLTrainingDataConfigurationCompletionHandlerError(modelURL foundation.IURL, trainingData PBatchProvider, configuration IModelConfiguration, completionHandler func(context UpdateContext), error unsafe.Pointer) UpdateTask { - return UpdateTaskClass.UpdateTaskForModelAtURLTrainingDataConfigurationCompletionHandlerError(modelURL, trainingData, configuration, completionHandler, error) -} - -func (uc _UpdateTaskClass) UpdateTaskForModelAtURLTrainingDataConfigurationProgressHandlersError(modelURL foundation.IURL, trainingData PBatchProvider, configuration IModelConfiguration, progressHandlers IUpdateProgressHandlers, error unsafe.Pointer) UpdateTask { - po1 := objc.WrapAsProtocol("MLBatchProvider", trainingData) - rv := objc.Call[UpdateTask](uc, objc.Sel("updateTaskForModelAtURL:trainingData:configuration:progressHandlers:error:"), modelURL, po1, configuration, progressHandlers, error) - return rv -} - -// Creates a task that updates the model at the URL with the training data and configuration, and calls the progress handlers during and after the update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlupdatetask/3180112-updatetaskformodelaturl?language=objc -func UpdateTask_UpdateTaskForModelAtURLTrainingDataConfigurationProgressHandlersError(modelURL foundation.IURL, trainingData PBatchProvider, configuration IModelConfiguration, progressHandlers IUpdateProgressHandlers, error unsafe.Pointer) UpdateTask { - return UpdateTaskClass.UpdateTaskForModelAtURLTrainingDataConfigurationProgressHandlersError(modelURL, trainingData, configuration, progressHandlers, error) -} - func (uc _UpdateTaskClass) Alloc() UpdateTask { rv := objc.Call[UpdateTask](uc, objc.Sel("alloc")) return rv diff --git a/macos/corespotlight/custom_attribute_key.gen.go b/macos/corespotlight/custom_attribute_key.gen.go index c0da2305..d1e85940 100644 --- a/macos/corespotlight/custom_attribute_key.gen.go +++ b/macos/corespotlight/custom_attribute_key.gen.go @@ -18,11 +18,11 @@ type _CustomAttributeKeyClass struct { // An interface definition for the [CustomAttributeKey] class. type ICustomAttributeKey interface { objc.IObject - IsMultiValued() bool - IsSearchableByDefault() bool IsUnique() bool IsSearchable() bool + IsMultiValued() bool KeyName() string + IsSearchableByDefault() bool } // A key associated with a custom attribute for a searchable item. [Full Topic] @@ -52,20 +52,6 @@ func NewCustomAttributeKeyWithKeyName(keyName string) CustomAttributeKey { return instance } -func (c_ CustomAttributeKey) InitWithKeyNameSearchableSearchableByDefaultUniqueMultiValued(keyName string, searchable bool, searchableByDefault bool, unique bool, multiValued bool) CustomAttributeKey { - rv := objc.Call[CustomAttributeKey](c_, objc.Sel("initWithKeyName:searchable:searchableByDefault:unique:multiValued:"), keyName, searchable, searchableByDefault, unique, multiValued) - return rv -} - -// Returns a new custom attribute key with the specified name and properties. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cscustomattributekey/1616410-initwithkeyname?language=objc -func NewCustomAttributeKeyWithKeyNameSearchableSearchableByDefaultUniqueMultiValued(keyName string, searchable bool, searchableByDefault bool, unique bool, multiValued bool) CustomAttributeKey { - instance := CustomAttributeKeyClass.Alloc().InitWithKeyNameSearchableSearchableByDefaultUniqueMultiValued(keyName, searchable, searchableByDefault, unique, multiValued) - instance.Autorelease() - return instance -} - func (cc _CustomAttributeKeyClass) Alloc() CustomAttributeKey { rv := objc.Call[CustomAttributeKey](cc, objc.Sel("alloc")) return rv @@ -86,22 +72,6 @@ func (c_ CustomAttributeKey) Init() CustomAttributeKey { return rv } -// A Boolean value that indicates if the custom attribute is likely to have multiple values, such as arrays, associated with it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cscustomattributekey/1616400-multivalued?language=objc -func (c_ CustomAttributeKey) IsMultiValued() bool { - rv := objc.Call[bool](c_, objc.Sel("isMultiValued")) - return rv -} - -// A Boolean value that indicates if the custom attribute should be searchable by default. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cscustomattributekey/1616396-searchablebydefault?language=objc -func (c_ CustomAttributeKey) IsSearchableByDefault() bool { - rv := objc.Call[bool](c_, objc.Sel("isSearchableByDefault")) - return rv -} - // A Boolean value that indicates if duplicate custom attribute values should be treated as the same value to save storage space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corespotlight/cscustomattributekey/1616409-unique?language=objc @@ -118,6 +88,14 @@ func (c_ CustomAttributeKey) IsSearchable() bool { return rv } +// A Boolean value that indicates if the custom attribute is likely to have multiple values, such as arrays, associated with it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cscustomattributekey/1616400-multivalued?language=objc +func (c_ CustomAttributeKey) IsMultiValued() bool { + rv := objc.Call[bool](c_, objc.Sel("isMultiValued")) + return rv +} + // The name of the custom attribute key. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corespotlight/cscustomattributekey/1616405-keyname?language=objc @@ -125,3 +103,11 @@ func (c_ CustomAttributeKey) KeyName() string { rv := objc.Call[string](c_, objc.Sel("keyName")) return rv } + +// A Boolean value that indicates if the custom attribute should be searchable by default. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cscustomattributekey/1616396-searchablebydefault?language=objc +func (c_ CustomAttributeKey) IsSearchableByDefault() bool { + rv := objc.Call[bool](c_, objc.Sel("isSearchableByDefault")) + return rv +} diff --git a/macos/corespotlight/localized_string.gen.go b/macos/corespotlight/localized_string.gen.go index 69f18ed2..6bf1508b 100644 --- a/macos/corespotlight/localized_string.gen.go +++ b/macos/corespotlight/localized_string.gen.go @@ -69,40 +69,16 @@ func (l_ LocalizedString) Init() LocalizedString { return rv } -func (lc _LocalizedStringClass) StringWithContentsOfURLUsedEncodingError(url foundation.IURL, enc *foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfURL:usedEncoding:error:"), url, enc, error) - return rv -} - -// Returns a string created by reading data from a given URL and returns by reference the encoding used to interpret the data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497408-stringwithcontentsofurl?language=objc -func LocalizedString_StringWithContentsOfURLUsedEncodingError(url foundation.IURL, enc *foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - return LocalizedStringClass.StringWithContentsOfURLUsedEncodingError(url, enc, error) -} - -func (lc _LocalizedStringClass) String() LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("string")) - return rv -} - -// Returns an empty string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497312-string?language=objc -func LocalizedString_String() LocalizedString { - return LocalizedStringClass.String() -} - -func (l_ LocalizedString) InitWithContentsOfURLUsedEncodingError(url foundation.IURL, enc *foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithContentsOfURL:usedEncoding:error:"), url, enc, error) +func (l_ LocalizedString) InitWithCharactersNoCopyLengthDeallocator(chars *foundation.Unichar, len uint, deallocator func(arg0 *foundation.Unichar, arg1 uint)) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithCharactersNoCopy:length:deallocator:"), chars, len, deallocator) return rv } -// Returns an NSString object initialized by reading data from a given URL and returns by reference the encoding used to interpret the data. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414472-initwithcontentsofurl?language=objc -func NewLocalizedStringWithContentsOfURLUsedEncodingError(url foundation.IURL, enc *foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithContentsOfURLUsedEncodingError(url, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547180-initwithcharactersnocopy?language=objc +func NewLocalizedStringWithCharactersNoCopyLengthDeallocator(chars *foundation.Unichar, len uint, deallocator func(arg0 *foundation.Unichar, arg1 uint)) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithCharactersNoCopyLengthDeallocator(chars, len, deallocator) instance.Autorelease() return instance } @@ -119,98 +95,6 @@ func LocalizedString_StringWithString(string_ string) LocalizedString { return LocalizedStringClass.StringWithString(string_) } -func (l_ LocalizedString) InitWithString(aString string) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithString:"), aString) - return rv -} - -// Returns an NSString object initialized by copying the characters from another given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411293-initwithstring?language=objc -func NewLocalizedStringWithString(aString string) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithString(aString) - instance.Autorelease() - return instance -} - -func (l_ LocalizedString) InitWithBytesNoCopyLengthEncodingFreeWhenDone(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding, freeBuffer bool) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithBytesNoCopy:length:encoding:freeWhenDone:"), bytes, len, encoding, freeBuffer) - return rv -} - -// Returns an initialized NSString object that contains a given number of bytes from a given buffer of bytes interpreted in a given encoding, and optionally frees the buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413830-initwithbytesnocopy?language=objc -func NewLocalizedStringWithBytesNoCopyLengthEncodingFreeWhenDone(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding, freeBuffer bool) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithBytesNoCopyLengthEncodingFreeWhenDone(bytes, len, encoding, freeBuffer) - instance.Autorelease() - return instance -} - -func (l_ LocalizedString) InitWithCharactersNoCopyLengthFreeWhenDone(characters *foundation.Unichar, length uint, freeBuffer bool) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithCharactersNoCopy:length:freeWhenDone:"), characters, length, freeBuffer) - return rv -} - -// Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412121-initwithcharactersnocopy?language=objc -func NewLocalizedStringWithCharactersNoCopyLengthFreeWhenDone(characters *foundation.Unichar, length uint, freeBuffer bool) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithCharactersNoCopyLengthFreeWhenDone(characters, length, freeBuffer) - instance.Autorelease() - return instance -} - -func (lc _LocalizedStringClass) StringWithFormat(format string, args ...any) LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithFormat:"), append([]any{format}, args...)...) - return rv -} - -// Returns a string created by using a given format string as a template into which the remaining argument values are substituted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497275-stringwithformat?language=objc -func LocalizedString_StringWithFormat(format string, args ...any) LocalizedString { - return LocalizedStringClass.StringWithFormat(format, args...) -} - -func (lc _LocalizedStringClass) StringWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, error) - return rv -} - -// Returns a string created by reading data from the file at a given path interpreted using a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497327-stringwithcontentsoffile?language=objc -func LocalizedString_StringWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - return LocalizedStringClass.StringWithContentsOfFileEncodingError(path, enc, error) -} - -func (l_ LocalizedString) InitWithContentsOfURLEncodingError(url foundation.IURL, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithContentsOfURL:encoding:error:"), url, enc, error) - return rv -} - -// Returns an NSString object initialized by reading data from a given URL interpreted using a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414463-initwithcontentsofurl?language=objc -func NewLocalizedStringWithContentsOfURLEncodingError(url foundation.IURL, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithContentsOfURLEncodingError(url, enc, error) - instance.Autorelease() - return instance -} - -func (lc _LocalizedStringClass) StringWithContentsOfFileUsedEncodingError(path string, enc *foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfFile:usedEncoding:error:"), path, enc, error) - return rv -} - -// Returns a string created by reading data from the file at a given path and returns by reference the encoding used to interpret the file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497254-stringwithcontentsoffile?language=objc -func LocalizedString_StringWithContentsOfFileUsedEncodingError(path string, enc *foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - return LocalizedStringClass.StringWithContentsOfFileUsedEncodingError(path, enc, error) -} - func (l_ LocalizedString) InitWithFormatLocale(format string, locale objc.IObject, args ...any) LocalizedString { rv := objc.Call[LocalizedString](l_, objc.Sel("initWithFormat:locale:"), append([]any{format, locale}, args...)...) return rv @@ -225,18 +109,6 @@ func NewLocalizedStringWithFormatLocale(format string, locale objc.IObject, args return instance } -func (lc _LocalizedStringClass) StringWithContentsOfURLEncodingError(url foundation.IURL, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfURL:encoding:error:"), url, enc, error) - return rv -} - -// Returns a string created by reading data from a given URL interpreted using a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497360-stringwithcontentsofurl?language=objc -func LocalizedString_StringWithContentsOfURLEncodingError(url foundation.IURL, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - return LocalizedStringClass.StringWithContentsOfURLEncodingError(url, enc, error) -} - func (l_ LocalizedString) InitWithDataEncoding(data []byte, encoding foundation.StringEncoding) LocalizedString { rv := objc.Call[LocalizedString](l_, objc.Sel("initWithData:encoding:"), data, encoding) return rv @@ -251,70 +123,68 @@ func NewLocalizedStringWithDataEncoding(data []byte, encoding foundation.StringE return instance } -func (l_ LocalizedString) InitWithCharactersLength(characters *foundation.Unichar, length uint) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithCharacters:length:"), characters, length) +func (lc _LocalizedStringClass) StringWithFormat(format string, args ...any) LocalizedString { + rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithFormat:"), append([]any{format}, args...)...) return rv } -// Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units. [Full Topic] +// Returns a string created by using a given format string as a template into which the remaining argument values are substituted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410997-initwithcharacters?language=objc -func NewLocalizedStringWithCharactersLength(characters *foundation.Unichar, length uint) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithCharactersLength(characters, length) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497275-stringwithformat?language=objc +func LocalizedString_StringWithFormat(format string, args ...any) LocalizedString { + return LocalizedStringClass.StringWithFormat(format, args...) } -func (l_ LocalizedString) InitWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithBytes:length:encoding:"), bytes, len, encoding) +func (l_ LocalizedString) InitWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithBytesNoCopy:length:encoding:deallocator:"), bytes, len, encoding, deallocator) return rv } -// Returns an initialized NSString object containing a given number of bytes from a given buffer of bytes interpreted in a given encoding. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407339-initwithbytes?language=objc -func NewLocalizedStringWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithBytesLengthEncoding(bytes, len, encoding) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547179-initwithbytesnocopy?language=objc +func NewLocalizedStringWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithBytesNoCopyLengthEncodingDeallocator(bytes, len, encoding, deallocator) instance.Autorelease() return instance } -func (l_ LocalizedString) InitWithUTF8String(nullTerminatedCString *uint8) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithUTF8String:"), nullTerminatedCString) +func (l_ LocalizedString) InitWithString(aString string) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithString:"), aString) return rv } -// Returns an NSString object initialized by copying the characters from a given C array of UTF8-encoded bytes. [Full Topic] +// Returns an NSString object initialized by copying the characters from another given string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412128-initwithutf8string?language=objc -func NewLocalizedStringWithUTF8String(nullTerminatedCString *uint8) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithUTF8String(nullTerminatedCString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411293-initwithstring?language=objc +func NewLocalizedStringWithString(aString string) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithString(aString) instance.Autorelease() return instance } -func (lc _LocalizedStringClass) StringWithCStringEncoding(cString *uint8, enc foundation.StringEncoding) LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithCString:encoding:"), cString, enc) +func (lc _LocalizedStringClass) String() LocalizedString { + rv := objc.Call[LocalizedString](lc, objc.Sel("string")) return rv } -// Returns a string containing the bytes in a given C array, interpreted according to a given encoding. [Full Topic] +// Returns an empty string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497310-stringwithcstring?language=objc -func LocalizedString_StringWithCStringEncoding(cString *uint8, enc foundation.StringEncoding) LocalizedString { - return LocalizedStringClass.StringWithCStringEncoding(cString, enc) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497312-string?language=objc +func LocalizedString_String() LocalizedString { + return LocalizedStringClass.String() } -func (l_ LocalizedString) InitWithContentsOfFileUsedEncodingError(path string, enc *foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithContentsOfFile:usedEncoding:error:"), path, enc, error) +func (l_ LocalizedString) InitWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithBytes:length:encoding:"), bytes, len, encoding) return rv } -// Returns an NSString object initialized by reading data from the file at a given path and returns by reference the encoding used to interpret the characters. [Full Topic] +// Returns an initialized NSString object containing a given number of bytes from a given buffer of bytes interpreted in a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1418227-initwithcontentsoffile?language=objc -func NewLocalizedStringWithContentsOfFileUsedEncodingError(path string, enc *foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithContentsOfFileUsedEncodingError(path, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407339-initwithbytes?language=objc +func NewLocalizedStringWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithBytesLengthEncoding(bytes, len, encoding) instance.Autorelease() return instance } @@ -331,60 +201,44 @@ func LocalizedString_StringWithCharactersLength(characters *foundation.Unichar, return LocalizedStringClass.StringWithCharactersLength(characters, length) } -func (l_ LocalizedString) InitWithCharactersNoCopyLengthDeallocator(chars *foundation.Unichar, len uint, deallocator func(arg0 *foundation.Unichar, arg1 uint)) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithCharactersNoCopy:length:deallocator:"), chars, len, deallocator) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547180-initwithcharactersnocopy?language=objc -func NewLocalizedStringWithCharactersNoCopyLengthDeallocator(chars *foundation.Unichar, len uint, deallocator func(arg0 *foundation.Unichar, arg1 uint)) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithCharactersNoCopyLengthDeallocator(chars, len, deallocator) - instance.Autorelease() - return instance -} - -func (l_ LocalizedString) InitWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithBytesNoCopy:length:encoding:deallocator:"), bytes, len, encoding, deallocator) +func (l_ LocalizedString) InitWithCharactersLength(characters *foundation.Unichar, length uint) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithCharacters:length:"), characters, length) return rv } -// [Full Topic] +// Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547179-initwithbytesnocopy?language=objc -func NewLocalizedStringWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithBytesNoCopyLengthEncodingDeallocator(bytes, len, encoding, deallocator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410997-initwithcharacters?language=objc +func NewLocalizedStringWithCharactersLength(characters *foundation.Unichar, length uint) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithCharactersLength(characters, length) instance.Autorelease() return instance } -func (l_ LocalizedString) InitWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithContentsOfFile:encoding:error:"), path, enc, error) +func (l_ LocalizedString) InitWithUTF8String(nullTerminatedCString *uint8) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithUTF8String:"), nullTerminatedCString) return rv } -// Returns an NSString object initialized by reading data from the file at a given path using a given encoding. [Full Topic] +// Returns an NSString object initialized by copying the characters from a given C array of UTF8-encoded bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412610-initwithcontentsoffile?language=objc -func NewLocalizedStringWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithContentsOfFileEncodingError(path, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412128-initwithutf8string?language=objc +func NewLocalizedStringWithUTF8String(nullTerminatedCString *uint8) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithUTF8String(nullTerminatedCString) instance.Autorelease() return instance } -func (l_ LocalizedString) InitWithFormat(format string, args ...any) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithFormat:"), append([]any{format}, args...)...) +func (lc _LocalizedStringClass) LocalizedStringWithFormat(format string, args ...any) LocalizedString { + rv := objc.Call[LocalizedString](lc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) return rv } -// Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted. [Full Topic] +// Returns a string created by using a given format string as a template into which the remaining argument values are substituted according to the current locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497402-initwithformat?language=objc -func NewLocalizedStringWithFormat(format string, args ...any) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithFormat(format, args...) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497301-localizedstringwithformat?language=objc +func LocalizedString_LocalizedStringWithFormat(format string, args ...any) LocalizedString { + return LocalizedStringClass.LocalizedStringWithFormat(format, args...) } func (lc _LocalizedStringClass) StringWithUTF8String(nullTerminatedCString *uint8) LocalizedString { @@ -399,30 +253,28 @@ func LocalizedString_StringWithUTF8String(nullTerminatedCString *uint8) Localize return LocalizedStringClass.StringWithUTF8String(nullTerminatedCString) } -func (l_ LocalizedString) InitWithCStringEncoding(nullTerminatedCString *uint8, encoding foundation.StringEncoding) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithCString:encoding:"), nullTerminatedCString, encoding) +func (lc _LocalizedStringClass) StringWithContentsOfURLEncodingError(url foundation.IURL, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { + rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfURL:encoding:error:"), url, enc, error) return rv } -// Returns an NSString object initialized using the characters in a given C array, interpreted according to a given encoding. [Full Topic] +// Returns a string created by reading data from a given URL interpreted using a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411950-initwithcstring?language=objc -func NewLocalizedStringWithCStringEncoding(nullTerminatedCString *uint8, encoding foundation.StringEncoding) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithCStringEncoding(nullTerminatedCString, encoding) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497360-stringwithcontentsofurl?language=objc +func LocalizedString_StringWithContentsOfURLEncodingError(url foundation.IURL, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { + return LocalizedStringClass.StringWithContentsOfURLEncodingError(url, enc, error) } -func (lc _LocalizedStringClass) LocalizedStringWithFormat(format string, args ...any) LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) +func (lc _LocalizedStringClass) StringWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { + rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, error) return rv } -// Returns a string created by using a given format string as a template into which the remaining argument values are substituted according to the current locale. [Full Topic] +// Returns a string created by reading data from the file at a given path interpreted using a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497301-localizedstringwithformat?language=objc -func LocalizedString_LocalizedStringWithFormat(format string, args ...any) LocalizedString { - return LocalizedStringClass.LocalizedStringWithFormat(format, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497327-stringwithcontentsoffile?language=objc +func LocalizedString_StringWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error unsafe.Pointer) LocalizedString { + return LocalizedStringClass.StringWithContentsOfFileEncodingError(path, enc, error) } // Returns the localized string for the current language. [Full Topic] diff --git a/macos/corespotlight/person.gen.go b/macos/corespotlight/person.gen.go index 917c2847..8ee9a5a2 100644 --- a/macos/corespotlight/person.gen.go +++ b/macos/corespotlight/person.gen.go @@ -18,11 +18,11 @@ type _PersonClass struct { // An interface definition for the [Person] class. type IPerson interface { objc.IObject - DisplayName() string HandleIdentifier() string - Handles() []string ContactIdentifier() string SetContactIdentifier(value string) + DisplayName() string + Handles() []string } // An object representing a person in the context of search results. [Full Topic] @@ -72,14 +72,6 @@ func (p_ Person) Init() Person { return rv } -// A display name for the person. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/csperson/1618469-displayname?language=objc -func (p_ Person) DisplayName() string { - rv := objc.Call[string](p_, objc.Sel("displayName")) - return rv -} - // A key that identifies the type of contact property represented by the person object’s handle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corespotlight/csperson/1618466-handleidentifier?language=objc @@ -88,14 +80,6 @@ func (p_ Person) HandleIdentifier() string { return rv } -// An array of contact handles related to the person. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/csperson/1618465-handles?language=objc -func (p_ Person) Handles() []string { - rv := objc.Call[[]string](p_, objc.Sel("handles")) - return rv -} - // The identifier for the contact associated with the person. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corespotlight/csperson/1618468-contactidentifier?language=objc @@ -110,3 +94,19 @@ func (p_ Person) ContactIdentifier() string { func (p_ Person) SetContactIdentifier(value string) { objc.Call[objc.Void](p_, objc.Sel("setContactIdentifier:"), value) } + +// A display name for the person. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/csperson/1618469-displayname?language=objc +func (p_ Person) DisplayName() string { + rv := objc.Call[string](p_, objc.Sel("displayName")) + return rv +} + +// An array of contact handles related to the person. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/csperson/1618465-handles?language=objc +func (p_ Person) Handles() []string { + rv := objc.Call[[]string](p_, objc.Sel("handles")) + return rv +} diff --git a/macos/corespotlight/search_query.gen.go b/macos/corespotlight/search_query.gen.go index 78c24785..66c0fcc6 100644 --- a/macos/corespotlight/search_query.gen.go +++ b/macos/corespotlight/search_query.gen.go @@ -21,14 +21,14 @@ type ISearchQuery interface { objc.IObject Start() Cancel() + IsCancelled() bool + FoundItemCount() uint CompletionHandler() func(error foundation.Error) SetCompletionHandler(value func(error foundation.Error)) - FoundItemCount() uint - ProtectionClasses() []foundation.FileProtectionType - SetProtectionClasses(value []foundation.FileProtectionType) - IsCancelled() bool FoundItemsHandler() func(items []SearchableItem) SetFoundItemsHandler(value func(items []SearchableItem)) + ProtectionClasses() []foundation.FileProtectionType + SetProtectionClasses(value []foundation.FileProtectionType) } // The criteria to apply when searching previously indexed app content. [Full Topic] @@ -92,21 +92,14 @@ func (s_ SearchQuery) Cancel() { objc.Call[objc.Void](s_, objc.Sel("cancel")) } -// The block to execute when the query completes. [Full Topic] +// A Boolean value that indicates if the system has canceled the query. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649312-completionhandler?language=objc -func (s_ SearchQuery) CompletionHandler() func(error foundation.Error) { - rv := objc.Call[func(error foundation.Error)](s_, objc.Sel("completionHandler")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649294-cancelled?language=objc +func (s_ SearchQuery) IsCancelled() bool { + rv := objc.Call[bool](s_, objc.Sel("isCancelled")) return rv } -// The block to execute when the query completes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649312-completionhandler?language=objc -func (s_ SearchQuery) SetCompletionHandler(value func(error foundation.Error)) { - objc.Call[objc.Void](s_, objc.Sel("setCompletionHandler:"), value) -} - // The number of items found so far. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649300-founditemcount?language=objc @@ -115,27 +108,19 @@ func (s_ SearchQuery) FoundItemCount() uint { return rv } -// An array of data protection classes that correspond to the protection classes associated with the indexed items. [Full Topic] +// The block to execute when the query completes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649311-protectionclasses?language=objc -func (s_ SearchQuery) ProtectionClasses() []foundation.FileProtectionType { - rv := objc.Call[[]foundation.FileProtectionType](s_, objc.Sel("protectionClasses")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649312-completionhandler?language=objc +func (s_ SearchQuery) CompletionHandler() func(error foundation.Error) { + rv := objc.Call[func(error foundation.Error)](s_, objc.Sel("completionHandler")) return rv } -// An array of data protection classes that correspond to the protection classes associated with the indexed items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649311-protectionclasses?language=objc -func (s_ SearchQuery) SetProtectionClasses(value []foundation.FileProtectionType) { - objc.Call[objc.Void](s_, objc.Sel("setProtectionClasses:"), value) -} - -// A Boolean value that indicates if the system has canceled the query. [Full Topic] +// The block to execute when the query completes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649294-cancelled?language=objc -func (s_ SearchQuery) IsCancelled() bool { - rv := objc.Call[bool](s_, objc.Sel("isCancelled")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649312-completionhandler?language=objc +func (s_ SearchQuery) SetCompletionHandler(value func(error foundation.Error)) { + objc.Call[objc.Void](s_, objc.Sel("setCompletionHandler:"), value) } // The block to execute when the query finds a new batch of matching items. [Full Topic] @@ -152,3 +137,18 @@ func (s_ SearchQuery) FoundItemsHandler() func(items []SearchableItem) { func (s_ SearchQuery) SetFoundItemsHandler(value func(items []SearchableItem)) { objc.Call[objc.Void](s_, objc.Sel("setFoundItemsHandler:"), value) } + +// An array of data protection classes that correspond to the protection classes associated with the indexed items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649311-protectionclasses?language=objc +func (s_ SearchQuery) ProtectionClasses() []foundation.FileProtectionType { + rv := objc.Call[[]foundation.FileProtectionType](s_, objc.Sel("protectionClasses")) + return rv +} + +// An array of data protection classes that correspond to the protection classes associated with the indexed items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649311-protectionclasses?language=objc +func (s_ SearchQuery) SetProtectionClasses(value []foundation.FileProtectionType) { + objc.Call[objc.Void](s_, objc.Sel("setProtectionClasses:"), value) +} diff --git a/macos/corespotlight/searchable_index.gen.go b/macos/corespotlight/searchable_index.gen.go index c6803758..59091c46 100644 --- a/macos/corespotlight/searchable_index.gen.go +++ b/macos/corespotlight/searchable_index.gen.go @@ -19,13 +19,13 @@ type _SearchableIndexClass struct { // An interface definition for the [SearchableIndex] class. type ISearchableIndex interface { objc.IObject + FetchLastClientStateWithCompletionHandler(completionHandler func(clientState []byte, error foundation.Error)) + DeleteSearchableItemsWithIdentifiersCompletionHandler(identifiers []string, completionHandler func(error foundation.Error)) BeginIndexBatch() + DeleteAllSearchableItemsWithCompletionHandler(completionHandler func(error foundation.Error)) + IndexSearchableItemsCompletionHandler(items []ISearchableItem, completionHandler func(error foundation.Error)) EndIndexBatchWithClientStateCompletionHandler(clientState []byte, completionHandler func(error foundation.Error)) DeleteSearchableItemsWithDomainIdentifiersCompletionHandler(domainIdentifiers []string, completionHandler func(error foundation.Error)) - DeleteSearchableItemsWithIdentifiersCompletionHandler(identifiers []string, completionHandler func(error foundation.Error)) - FetchLastClientStateWithCompletionHandler(completionHandler func(clientState []byte, error foundation.Error)) - IndexSearchableItemsCompletionHandler(items []ISearchableItem, completionHandler func(error foundation.Error)) - DeleteAllSearchableItemsWithCompletionHandler(completionHandler func(error foundation.Error)) IndexDelegate() SearchableIndexDelegateObject SetIndexDelegate(value PSearchableIndexDelegate) SetIndexDelegateObject(valueObject objc.IObject) @@ -56,20 +56,6 @@ func SearchableIndex_DefaultSearchableIndex() SearchableIndex { return SearchableIndexClass.DefaultSearchableIndex() } -func (s_ SearchableIndex) InitWithNameProtectionClass(name string, protectionClass foundation.FileProtectionType) SearchableIndex { - rv := objc.Call[SearchableIndex](s_, objc.Sel("initWithName:protectionClass:"), name, protectionClass) - return rv -} - -// Returns an on-device index with the specified name and data protection class. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620332-initwithname?language=objc -func NewSearchableIndexWithNameProtectionClass(name string, protectionClass foundation.FileProtectionType) SearchableIndex { - instance := SearchableIndexClass.Alloc().InitWithNameProtectionClass(name, protectionClass) - instance.Autorelease() - return instance -} - func (s_ SearchableIndex) InitWithName(name string) SearchableIndex { rv := objc.Call[SearchableIndex](s_, objc.Sel("initWithName:"), name) return rv @@ -104,25 +90,26 @@ func (s_ SearchableIndex) Init() SearchableIndex { return rv } -// Begins a batch of updates to an index. [Full Topic] +// Returns a Boolean value that indicates whether indexing is available on the current device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620331-beginindexbatch?language=objc -func (s_ SearchableIndex) BeginIndexBatch() { - objc.Call[objc.Void](s_, objc.Sel("beginIndexBatch")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620350-isindexingavailable?language=objc +func (sc _SearchableIndexClass) IsIndexingAvailable() bool { + rv := objc.Call[bool](sc, objc.Sel("isIndexingAvailable")) + return rv } -// Ends a batch of index updates and stores the specified state information. [Full Topic] +// Returns a Boolean value that indicates whether indexing is available on the current device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620344-endindexbatchwithclientstate?language=objc -func (s_ SearchableIndex) EndIndexBatchWithClientStateCompletionHandler(clientState []byte, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](s_, objc.Sel("endIndexBatchWithClientState:completionHandler:"), clientState, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620350-isindexingavailable?language=objc +func SearchableIndex_IsIndexingAvailable() bool { + return SearchableIndexClass.IsIndexingAvailable() } -// Removes from the index all searchable items associated with the specified domain. [Full Topic] +// Gets the app’s most recently stored state information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620351-deletesearchableitemswithdomaini?language=objc -func (s_ SearchableIndex) DeleteSearchableItemsWithDomainIdentifiersCompletionHandler(domainIdentifiers []string, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](s_, objc.Sel("deleteSearchableItemsWithDomainIdentifiers:completionHandler:"), domainIdentifiers, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620346-fetchlastclientstatewithcompleti?language=objc +func (s_ SearchableIndex) FetchLastClientStateWithCompletionHandler(completionHandler func(clientState []byte, error foundation.Error)) { + objc.Call[objc.Void](s_, objc.Sel("fetchLastClientStateWithCompletionHandler:"), completionHandler) } // Removes from the index all items with the specified identifiers. [Full Topic] @@ -132,26 +119,18 @@ func (s_ SearchableIndex) DeleteSearchableItemsWithIdentifiersCompletionHandler( objc.Call[objc.Void](s_, objc.Sel("deleteSearchableItemsWithIdentifiers:completionHandler:"), identifiers, completionHandler) } -// Gets the app’s most recently stored state information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620346-fetchlastclientstatewithcompleti?language=objc -func (s_ SearchableIndex) FetchLastClientStateWithCompletionHandler(completionHandler func(clientState []byte, error foundation.Error)) { - objc.Call[objc.Void](s_, objc.Sel("fetchLastClientStateWithCompletionHandler:"), completionHandler) -} - -// Returns a Boolean value that indicates whether indexing is available on the current device. [Full Topic] +// Begins a batch of updates to an index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620350-isindexingavailable?language=objc -func (sc _SearchableIndexClass) IsIndexingAvailable() bool { - rv := objc.Call[bool](sc, objc.Sel("isIndexingAvailable")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620331-beginindexbatch?language=objc +func (s_ SearchableIndex) BeginIndexBatch() { + objc.Call[objc.Void](s_, objc.Sel("beginIndexBatch")) } -// Returns a Boolean value that indicates whether indexing is available on the current device. [Full Topic] +// Deletes all searchable items from the index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620350-isindexingavailable?language=objc -func SearchableIndex_IsIndexingAvailable() bool { - return SearchableIndexClass.IsIndexingAvailable() +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620342-deleteallsearchableitemswithcomp?language=objc +func (s_ SearchableIndex) DeleteAllSearchableItemsWithCompletionHandler(completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](s_, objc.Sel("deleteAllSearchableItemsWithCompletionHandler:"), completionHandler) } // Adds or updates items in the index. [Full Topic] @@ -161,11 +140,18 @@ func (s_ SearchableIndex) IndexSearchableItemsCompletionHandler(items []ISearcha objc.Call[objc.Void](s_, objc.Sel("indexSearchableItems:completionHandler:"), items, completionHandler) } -// Deletes all searchable items from the index. [Full Topic] +// Ends a batch of index updates and stores the specified state information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620342-deleteallsearchableitemswithcomp?language=objc -func (s_ SearchableIndex) DeleteAllSearchableItemsWithCompletionHandler(completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](s_, objc.Sel("deleteAllSearchableItemsWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620344-endindexbatchwithclientstate?language=objc +func (s_ SearchableIndex) EndIndexBatchWithClientStateCompletionHandler(clientState []byte, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](s_, objc.Sel("endIndexBatchWithClientState:completionHandler:"), clientState, completionHandler) +} + +// Removes from the index all searchable items associated with the specified domain. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620351-deletesearchableitemswithdomaini?language=objc +func (s_ SearchableIndex) DeleteSearchableItemsWithDomainIdentifiersCompletionHandler(domainIdentifiers []string, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](s_, objc.Sel("deleteSearchableItemsWithDomainIdentifiers:completionHandler:"), domainIdentifiers, completionHandler) } // The delegate object that can handle index-management tasks. [Full Topic] diff --git a/macos/corespotlight/searchable_index_delegate.gen.go b/macos/corespotlight/searchable_index_delegate.gen.go index d31a8d63..6ffe4e16 100644 --- a/macos/corespotlight/searchable_index_delegate.gen.go +++ b/macos/corespotlight/searchable_index_delegate.gen.go @@ -14,56 +14,68 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate?language=objc type PSearchableIndexDelegate interface { // optional - SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex SearchableIndex, identifiers []string, acknowledgementHandler func()) - HasSearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler() bool + SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex SearchableIndex, acknowledgementHandler func()) + HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool // optional - SearchableIndexDidFinishThrottle(searchableIndex SearchableIndex) - HasSearchableIndexDidFinishThrottle() bool + SearchableIndexDidThrottle(searchableIndex SearchableIndex) + HasSearchableIndexDidThrottle() bool // optional - FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError unsafe.Pointer) foundation.URL - HasFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError() bool + SearchableIndexDidFinishThrottle(searchableIndex SearchableIndex) + HasSearchableIndexDidFinishThrottle() bool // optional DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, outError unsafe.Pointer) []byte HasDataForSearchableIndexItemIdentifierTypeIdentifierError() bool // optional - SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex SearchableIndex, acknowledgementHandler func()) - HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool - - // optional - SearchableIndexDidThrottle(searchableIndex SearchableIndex) - HasSearchableIndexDidThrottle() bool + FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError unsafe.Pointer) foundation.URL + HasFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError() bool } // A delegate implementation builder for the [PSearchableIndexDelegate] protocol. type SearchableIndexDelegate struct { - _SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler func(searchableIndex SearchableIndex, identifiers []string, acknowledgementHandler func()) - _SearchableIndexDidFinishThrottle func(searchableIndex SearchableIndex) - _FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError unsafe.Pointer) foundation.URL - _DataForSearchableIndexItemIdentifierTypeIdentifierError func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, outError unsafe.Pointer) []byte - _SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler func(searchableIndex SearchableIndex, acknowledgementHandler func()) - _SearchableIndexDidThrottle func(searchableIndex SearchableIndex) + _SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler func(searchableIndex SearchableIndex, acknowledgementHandler func()) + _SearchableIndexDidThrottle func(searchableIndex SearchableIndex) + _SearchableIndexDidFinishThrottle func(searchableIndex SearchableIndex) + _DataForSearchableIndexItemIdentifierTypeIdentifierError func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, outError unsafe.Pointer) []byte + _FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError unsafe.Pointer) foundation.URL +} + +func (di *SearchableIndexDelegate) HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool { + return di._SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler != nil } -func (di *SearchableIndexDelegate) HasSearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler() bool { - return di._SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler != nil +// Tells the delegate to reindex all searchable data and clear all local state information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620348-searchableindex?language=objc +func (di *SearchableIndexDelegate) SetSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(f func(searchableIndex SearchableIndex, acknowledgementHandler func())) { + di._SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler = f } -// Tells the delegate to reindex the searchable items associated with the specified identifiers. [Full Topic] +// Tells the delegate to reindex all searchable data and clear all local state information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620348-searchableindex?language=objc +func (di *SearchableIndexDelegate) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex SearchableIndex, acknowledgementHandler func()) { + di._SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex, acknowledgementHandler) +} +func (di *SearchableIndexDelegate) HasSearchableIndexDidThrottle() bool { + return di._SearchableIndexDidThrottle != nil +} + +// Tells the delegate that indexing is being throttled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620338-searchableindex?language=objc -func (di *SearchableIndexDelegate) SetSearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(f func(searchableIndex SearchableIndex, identifiers []string, acknowledgementHandler func())) { - di._SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler = f +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620353-searchableindexdidthrottle?language=objc +func (di *SearchableIndexDelegate) SetSearchableIndexDidThrottle(f func(searchableIndex SearchableIndex)) { + di._SearchableIndexDidThrottle = f } -// Tells the delegate to reindex the searchable items associated with the specified identifiers. [Full Topic] +// Tells the delegate that indexing is being throttled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620338-searchableindex?language=objc -func (di *SearchableIndexDelegate) SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex SearchableIndex, identifiers []string, acknowledgementHandler func()) { - di._SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex, identifiers, acknowledgementHandler) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620353-searchableindexdidthrottle?language=objc +func (di *SearchableIndexDelegate) SearchableIndexDidThrottle(searchableIndex SearchableIndex) { + di._SearchableIndexDidThrottle(searchableIndex) } func (di *SearchableIndexDelegate) HasSearchableIndexDidFinishThrottle() bool { return di._SearchableIndexDidFinishThrottle != nil @@ -82,23 +94,6 @@ func (di *SearchableIndexDelegate) SetSearchableIndexDidFinishThrottle(f func(se func (di *SearchableIndexDelegate) SearchableIndexDidFinishThrottle(searchableIndex SearchableIndex) { di._SearchableIndexDidFinishThrottle(searchableIndex) } -func (di *SearchableIndexDelegate) HasFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError() bool { - return di._FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError != nil -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/2867898-fileurlforsearchableindex?language=objc -func (di *SearchableIndexDelegate) SetFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(f func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError unsafe.Pointer) foundation.URL) { - di._FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError = f -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/2867898-fileurlforsearchableindex?language=objc -func (di *SearchableIndexDelegate) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError unsafe.Pointer) foundation.URL { - return di._FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex, itemIdentifier, typeIdentifier, inPlace, outError) -} func (di *SearchableIndexDelegate) HasDataForSearchableIndexItemIdentifierTypeIdentifierError() bool { return di._DataForSearchableIndexItemIdentifierTypeIdentifierError != nil } @@ -116,39 +111,22 @@ func (di *SearchableIndexDelegate) SetDataForSearchableIndexItemIdentifierTypeId func (di *SearchableIndexDelegate) DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, outError unsafe.Pointer) []byte { return di._DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex, itemIdentifier, typeIdentifier, outError) } -func (di *SearchableIndexDelegate) HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool { - return di._SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler != nil -} - -// Tells the delegate to reindex all searchable data and clear all local state information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620348-searchableindex?language=objc -func (di *SearchableIndexDelegate) SetSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(f func(searchableIndex SearchableIndex, acknowledgementHandler func())) { - di._SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler = f -} - -// Tells the delegate to reindex all searchable data and clear all local state information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620348-searchableindex?language=objc -func (di *SearchableIndexDelegate) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex SearchableIndex, acknowledgementHandler func()) { - di._SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex, acknowledgementHandler) -} -func (di *SearchableIndexDelegate) HasSearchableIndexDidThrottle() bool { - return di._SearchableIndexDidThrottle != nil +func (di *SearchableIndexDelegate) HasFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError() bool { + return di._FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError != nil } -// Tells the delegate that indexing is being throttled. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620353-searchableindexdidthrottle?language=objc -func (di *SearchableIndexDelegate) SetSearchableIndexDidThrottle(f func(searchableIndex SearchableIndex)) { - di._SearchableIndexDidThrottle = f +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/2867898-fileurlforsearchableindex?language=objc +func (di *SearchableIndexDelegate) SetFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(f func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError unsafe.Pointer) foundation.URL) { + di._FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError = f } -// Tells the delegate that indexing is being throttled. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620353-searchableindexdidthrottle?language=objc -func (di *SearchableIndexDelegate) SearchableIndexDidThrottle(searchableIndex SearchableIndex) { - di._SearchableIndexDidThrottle(searchableIndex) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/2867898-fileurlforsearchableindex?language=objc +func (di *SearchableIndexDelegate) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError unsafe.Pointer) foundation.URL { + return di._FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex, itemIdentifier, typeIdentifier, inPlace, outError) } // ensure impl type implements protocol interface @@ -159,15 +137,26 @@ type SearchableIndexDelegateObject struct { objc.Object } -func (s_ SearchableIndexDelegateObject) HasSearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler() bool { - return s_.RespondsToSelector(objc.Sel("searchableIndex:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:")) +func (s_ SearchableIndexDelegateObject) HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool { + return s_.RespondsToSelector(objc.Sel("searchableIndex:reindexAllSearchableItemsWithAcknowledgementHandler:")) } -// Tells the delegate to reindex the searchable items associated with the specified identifiers. [Full Topic] +// Tells the delegate to reindex all searchable data and clear all local state information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620338-searchableindex?language=objc -func (s_ SearchableIndexDelegateObject) SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex SearchableIndex, identifiers []string, acknowledgementHandler func()) { - objc.Call[objc.Void](s_, objc.Sel("searchableIndex:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:"), searchableIndex, identifiers, acknowledgementHandler) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620348-searchableindex?language=objc +func (s_ SearchableIndexDelegateObject) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex SearchableIndex, acknowledgementHandler func()) { + objc.Call[objc.Void](s_, objc.Sel("searchableIndex:reindexAllSearchableItemsWithAcknowledgementHandler:"), searchableIndex, acknowledgementHandler) +} + +func (s_ SearchableIndexDelegateObject) HasSearchableIndexDidThrottle() bool { + return s_.RespondsToSelector(objc.Sel("searchableIndexDidThrottle:")) +} + +// Tells the delegate that indexing is being throttled. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620353-searchableindexdidthrottle?language=objc +func (s_ SearchableIndexDelegateObject) SearchableIndexDidThrottle(searchableIndex SearchableIndex) { + objc.Call[objc.Void](s_, objc.Sel("searchableIndexDidThrottle:"), searchableIndex) } func (s_ SearchableIndexDelegateObject) HasSearchableIndexDidFinishThrottle() bool { @@ -181,18 +170,6 @@ func (s_ SearchableIndexDelegateObject) SearchableIndexDidFinishThrottle(searcha objc.Call[objc.Void](s_, objc.Sel("searchableIndexDidFinishThrottle:"), searchableIndex) } -func (s_ SearchableIndexDelegateObject) HasFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError() bool { - return s_.RespondsToSelector(objc.Sel("fileURLForSearchableIndex:itemIdentifier:typeIdentifier:inPlace:error:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/2867898-fileurlforsearchableindex?language=objc -func (s_ SearchableIndexDelegateObject) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError unsafe.Pointer) foundation.URL { - rv := objc.Call[foundation.URL](s_, objc.Sel("fileURLForSearchableIndex:itemIdentifier:typeIdentifier:inPlace:error:"), searchableIndex, itemIdentifier, typeIdentifier, inPlace, outError) - return rv -} - func (s_ SearchableIndexDelegateObject) HasDataForSearchableIndexItemIdentifierTypeIdentifierError() bool { return s_.RespondsToSelector(objc.Sel("dataForSearchableIndex:itemIdentifier:typeIdentifier:error:")) } @@ -205,24 +182,14 @@ func (s_ SearchableIndexDelegateObject) DataForSearchableIndexItemIdentifierType return rv } -func (s_ SearchableIndexDelegateObject) HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool { - return s_.RespondsToSelector(objc.Sel("searchableIndex:reindexAllSearchableItemsWithAcknowledgementHandler:")) -} - -// Tells the delegate to reindex all searchable data and clear all local state information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620348-searchableindex?language=objc -func (s_ SearchableIndexDelegateObject) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex SearchableIndex, acknowledgementHandler func()) { - objc.Call[objc.Void](s_, objc.Sel("searchableIndex:reindexAllSearchableItemsWithAcknowledgementHandler:"), searchableIndex, acknowledgementHandler) -} - -func (s_ SearchableIndexDelegateObject) HasSearchableIndexDidThrottle() bool { - return s_.RespondsToSelector(objc.Sel("searchableIndexDidThrottle:")) +func (s_ SearchableIndexDelegateObject) HasFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError() bool { + return s_.RespondsToSelector(objc.Sel("fileURLForSearchableIndex:itemIdentifier:typeIdentifier:inPlace:error:")) } -// Tells the delegate that indexing is being throttled. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620353-searchableindexdidthrottle?language=objc -func (s_ SearchableIndexDelegateObject) SearchableIndexDidThrottle(searchableIndex SearchableIndex) { - objc.Call[objc.Void](s_, objc.Sel("searchableIndexDidThrottle:"), searchableIndex) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/2867898-fileurlforsearchableindex?language=objc +func (s_ SearchableIndexDelegateObject) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError unsafe.Pointer) foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("fileURLForSearchableIndex:itemIdentifier:typeIdentifier:inPlace:error:"), searchableIndex, itemIdentifier, typeIdentifier, inPlace, outError) + return rv } diff --git a/macos/corespotlight/searchable_item.gen.go b/macos/corespotlight/searchable_item.gen.go index 5fbc4845..fb56ead1 100644 --- a/macos/corespotlight/searchable_item.gen.go +++ b/macos/corespotlight/searchable_item.gen.go @@ -19,14 +19,14 @@ type _SearchableItemClass struct { // An interface definition for the [SearchableItem] class. type ISearchableItem interface { objc.IObject - DomainIdentifier() string - SetDomainIdentifier(value string) + AttributeSet() SearchableItemAttributeSet + SetAttributeSet(value ISearchableItemAttributeSet) UniqueIdentifier() string SetUniqueIdentifier(value string) ExpirationDate() foundation.Date SetExpirationDate(value foundation.IDate) - AttributeSet() SearchableItemAttributeSet - SetAttributeSet(value ISearchableItemAttributeSet) + DomainIdentifier() string + SetDomainIdentifier(value string) } // An item that can be indexed and made available to users when they search on their devices. [Full Topic] @@ -76,19 +76,19 @@ func (s_ SearchableItem) Init() SearchableItem { return rv } -// An optional identifier that represents the domain or owner of the item. [Full Topic] +// The set of attributes that contain metadata associated with the item in a CSSearchableItemAttributeSet object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitem/1621665-domainidentifier?language=objc -func (s_ SearchableItem) DomainIdentifier() string { - rv := objc.Call[string](s_, objc.Sel("domainIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitem/1621649-attributeset?language=objc +func (s_ SearchableItem) AttributeSet() SearchableItemAttributeSet { + rv := objc.Call[SearchableItemAttributeSet](s_, objc.Sel("attributeSet")) return rv } -// An optional identifier that represents the domain or owner of the item. [Full Topic] +// The set of attributes that contain metadata associated with the item in a CSSearchableItemAttributeSet object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitem/1621665-domainidentifier?language=objc -func (s_ SearchableItem) SetDomainIdentifier(value string) { - objc.Call[objc.Void](s_, objc.Sel("setDomainIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitem/1621649-attributeset?language=objc +func (s_ SearchableItem) SetAttributeSet(value ISearchableItemAttributeSet) { + objc.Call[objc.Void](s_, objc.Sel("setAttributeSet:"), value) } // The value that uniquely identifies the searchable item within your app. [Full Topic] @@ -121,17 +121,17 @@ func (s_ SearchableItem) SetExpirationDate(value foundation.IDate) { objc.Call[objc.Void](s_, objc.Sel("setExpirationDate:"), value) } -// The set of attributes that contain metadata associated with the item in a CSSearchableItemAttributeSet object. [Full Topic] +// An optional identifier that represents the domain or owner of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitem/1621649-attributeset?language=objc -func (s_ SearchableItem) AttributeSet() SearchableItemAttributeSet { - rv := objc.Call[SearchableItemAttributeSet](s_, objc.Sel("attributeSet")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitem/1621665-domainidentifier?language=objc +func (s_ SearchableItem) DomainIdentifier() string { + rv := objc.Call[string](s_, objc.Sel("domainIdentifier")) return rv } -// The set of attributes that contain metadata associated with the item in a CSSearchableItemAttributeSet object. [Full Topic] +// An optional identifier that represents the domain or owner of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitem/1621649-attributeset?language=objc -func (s_ SearchableItem) SetAttributeSet(value ISearchableItemAttributeSet) { - objc.Call[objc.Void](s_, objc.Sel("setAttributeSet:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitem/1621665-domainidentifier?language=objc +func (s_ SearchableItem) SetDomainIdentifier(value string) { + objc.Call[objc.Void](s_, objc.Sel("setDomainIdentifier:"), value) } diff --git a/macos/corespotlight/searchable_item_attribute_set.gen.go b/macos/corespotlight/searchable_item_attribute_set.gen.go index 433e571f..d057289f 100644 --- a/macos/corespotlight/searchable_item_attribute_set.gen.go +++ b/macos/corespotlight/searchable_item_attribute_set.gen.go @@ -20,378 +20,378 @@ type _SearchableItemAttributeSetClass struct { // An interface definition for the [SearchableItemAttributeSet] class. type ISearchableItemAttributeSet interface { objc.IObject - SetValueForCustomKey(value objc.IObject, key ICustomAttributeKey) ValueForCustomKey(key ICustomAttributeKey) objc.Object - AddedDate() foundation.Date - SetAddedDate(value foundation.IDate) - IsLikelyJunk() foundation.Number - SetLikelyJunk(value foundation.INumber) - Version() string - SetVersion(value string) - Producer() string - SetProducer(value string) - Subject() string - SetSubject(value string) - TotalBitRate() foundation.Number - SetTotalBitRate(value foundation.INumber) - GPSAreaInformation() string - SetGPSAreaInformation(value string) - DownloadedDate() foundation.Date - SetDownloadedDate(value foundation.IDate) - Audiences() []string - SetAudiences(value []string) - GPSMeasureMode() string - SetGPSMeasureMode(value string) - EXIFGPSVersion() string - SetEXIFGPSVersion(value string) - PlayCount() foundation.Number - SetPlayCount(value foundation.INumber) - Rating() foundation.Number - SetRating(value foundation.INumber) - RecipientNames() []string - SetRecipientNames(value []string) - ExposureTimeString() string - SetExposureTimeString(value string) - PixelWidth() foundation.Number - SetPixelWidth(value foundation.INumber) + SetValueForCustomKey(value objc.IObject, key ICustomAttributeKey) GPSMapDatum() string SetGPSMapDatum(value string) - AllDay() foundation.Number - SetAllDay(value foundation.INumber) + AuthorAddresses() []string + SetAuthorAddresses(value []string) + Path() string + SetPath(value string) + KeySignature() string + SetKeySignature(value string) + Publishers() []string + SetPublishers(value []string) + IsGeneralMIDISequence() foundation.Number + SetGeneralMIDISequence(value foundation.INumber) + Headline() string + SetHeadline(value string) + ContainerOrder() foundation.Number + SetContainerOrder(value foundation.INumber) + Latitude() foundation.Number + SetLatitude(value foundation.INumber) + PixelWidth() foundation.Number + SetPixelWidth(value foundation.INumber) + ImportantDates() []foundation.Date + SetImportantDates(value []foundation.IDate) + PhoneNumbers() []string + SetPhoneNumbers(value []string) + HiddenAdditionalRecipients() []Person + SetHiddenAdditionalRecipients(value []IPerson) + Creator() string + SetCreator(value string) + Version() string + SetVersion(value string) + OriginalFormat() string + SetOriginalFormat(value string) + PageHeight() foundation.Number + SetPageHeight(value foundation.INumber) MusicalInstrumentCategory() string SetMusicalInstrumentCategory(value string) - ThumbnailData() []byte - SetThumbnailData(value []byte) - SupportsPhoneCall() foundation.Number - SetSupportsPhoneCall(value foundation.INumber) - CameraOwner() string - SetCameraOwner(value string) - SubThoroughfare() string - SetSubThoroughfare(value string) - OriginalSource() string - SetOriginalSource(value string) - AdditionalRecipients() []Person - SetAdditionalRecipients(value []IPerson) + GPSDifferental() foundation.Number + SetGPSDifferental(value foundation.INumber) + FontNames() []string + SetFontNames(value []string) + ThumbnailURL() foundation.URL + SetThumbnailURL(value foundation.IURL) + Languages() []string + SetLanguages(value []string) ProfileName() string SetProfileName(value string) - Rights() string - SetRights(value string) - AudioEncodingApplication() string - SetAudioEncodingApplication(value string) - ContentSources() []string - SetContentSources(value []string) + Audiences() []string + SetAudiences(value []string) + GPSDOP() foundation.Number + SetGPSDOP(value foundation.INumber) + TextContent() string + SetTextContent(value string) + CompletionDate() foundation.Date + SetCompletionDate(value foundation.IDate) + Theme() string + SetTheme(value string) PixelHeight() foundation.Number SetPixelHeight(value foundation.INumber) - Country() string - SetCountry(value string) - Keywords() []string - SetKeywords(value []string) - EXIFVersion() string - SetEXIFVersion(value string) - GPSProcessingMethod() string - SetGPSProcessingMethod(value string) - DarkThumbnailURL() foundation.URL - SetDarkThumbnailURL(value foundation.IURL) - Thoroughfare() string - SetThoroughfare(value string) - InstantMessageAddresses() []string - SetInstantMessageAddresses(value []string) - Aperture() foundation.Number - SetAperture(value foundation.INumber) + HasAlphaChannel() foundation.Number + SetHasAlphaChannel(value foundation.INumber) ResolutionWidthDPI() foundation.Number SetResolutionWidthDPI(value foundation.INumber) - DueDate() foundation.Date - SetDueDate(value foundation.IDate) - RecipientEmailAddresses() []string - SetRecipientEmailAddresses(value []string) - DisplayName() string - SetDisplayName(value string) - KeySignature() string - SetKeySignature(value string) - MusicalGenre() string - SetMusicalGenre(value string) - ExposureTime() foundation.Number - SetExposureTime(value foundation.INumber) - GPSDestDistance() foundation.Number - SetGPSDestDistance(value foundation.INumber) - AudioBitRate() foundation.Number - SetAudioBitRate(value foundation.INumber) - PageWidth() foundation.Number - SetPageWidth(value foundation.INumber) + Aperture() foundation.Number + SetAperture(value foundation.INumber) + FullyFormattedAddress() string + SetFullyFormattedAddress(value string) + ContentURL() foundation.URL + SetContentURL(value foundation.IURL) + AudioEncodingApplication() string + SetAudioEncodingApplication(value string) + EXIFVersion() string + SetEXIFVersion(value string) + RankingHint() foundation.Number + SetRankingHint(value foundation.INumber) + LastUsedDate() foundation.Date + SetLastUsedDate(value foundation.IDate) + ContentModificationDate() foundation.Date + SetContentModificationDate(value foundation.IDate) + EncodingApplications() []string + SetEncodingApplications(value []string) + GPSMeasureMode() string + SetGPSMeasureMode(value string) + Role() string + SetRole(value string) + SupportsNavigation() foundation.Number + SetSupportsNavigation(value foundation.INumber) + StateOrProvince() string + SetStateOrProvince(value string) + AdditionalRecipients() []Person + SetAdditionalRecipients(value []IPerson) + AlternateNames() []string + SetAlternateNames(value []string) + ProviderFileTypeIdentifiers() []string + SetProviderFileTypeIdentifiers(value []string) AudioChannelCount() foundation.Number SetAudioChannelCount(value foundation.INumber) - IsRedEyeOn() foundation.Number - SetRedEyeOn(value foundation.INumber) - Composer() string - SetComposer(value string) + Rating() foundation.Number + SetRating(value foundation.INumber) + IsStreamable() foundation.Number + SetStreamable(value foundation.INumber) + AudioTrackNumber() foundation.Number + SetAudioTrackNumber(value foundation.INumber) + ContentTypeTree() []string + SetContentTypeTree(value []string) + MusicalGenre() string + SetMusicalGenre(value string) + GPSStatus() string + SetGPSStatus(value string) + Genre() string + SetGenre(value string) + SecurityMethod() string + SetSecurityMethod(value string) + GPSDestBearing() foundation.Number + SetGPSDestBearing(value foundation.INumber) + AcquisitionMake() string + SetAcquisitionMake(value string) + IsUserCurated() foundation.Number + SetUserCurated(value foundation.INumber) + Codecs() []string + SetCodecs(value []string) + DeliveryType() foundation.Number + SetDeliveryType(value foundation.INumber) ImageDirection() foundation.Number SetImageDirection(value foundation.INumber) + Artist() string + SetArtist(value string) + City() string + SetCity(value string) + ExposureTimeString() string + SetExposureTimeString(value string) + ProviderInPlaceFileTypeIdentifiers() []string + SetProviderInPlaceFileTypeIdentifiers(value []string) + ContainerTitle() string + SetContainerTitle(value string) + WhiteBalance() foundation.Number + SetWhiteBalance(value foundation.INumber) + Producer() string + SetProducer(value string) + Contributors() []string + SetContributors(value []string) + Comment() string + SetComment(value string) GPSTrack() foundation.Number SetGPSTrack(value foundation.INumber) + ContentDescription() string + SetContentDescription(value string) + Organizations() []string + SetOrganizations(value []string) + Authors() []Person + SetAuthors(value []IPerson) + Performers() []string + SetPerformers(value []string) + Speed() foundation.Number + SetSpeed(value foundation.INumber) Instructions() string SetInstructions(value string) + PageCount() foundation.Number + SetPageCount(value foundation.INumber) + GPSDestLatitude() foundation.Number + SetGPSDestLatitude(value foundation.INumber) + FNumber() foundation.Number + SetFNumber(value foundation.INumber) + Director() string + SetDirector(value string) + Information() string + SetInformation(value string) + GPSDateStamp() foundation.Date + SetGPSDateStamp(value foundation.IDate) + ColorSpace() string + SetColorSpace(value string) + TotalBitRate() foundation.Number + SetTotalBitRate(value foundation.INumber) AccountHandles() []string SetAccountHandles(value []string) - FontNames() []string - SetFontNames(value []string) + AcquisitionModel() string + SetAcquisitionModel(value string) + MailboxIdentifiers() []string + SetMailboxIdentifiers(value []string) ISOSpeed() foundation.Number SetISOSpeed(value foundation.INumber) - City() string - SetCity(value string) - WhiteBalance() foundation.Number - SetWhiteBalance(value foundation.INumber) - AccountIdentifier() string - SetAccountIdentifier(value string) - PageCount() foundation.Number - SetPageCount(value foundation.INumber) - PixelCount() foundation.Number - SetPixelCount(value foundation.INumber) - Latitude() foundation.Number - SetLatitude(value foundation.INumber) - RecipientAddresses() []string - SetRecipientAddresses(value []string) - AudioSampleRate() foundation.Number - SetAudioSampleRate(value foundation.INumber) - GPSStatus() string - SetGPSStatus(value string) - GPSDOP() foundation.Number - SetGPSDOP(value foundation.INumber) - Altitude() foundation.Number - SetAltitude(value foundation.INumber) - ContactKeywords() []string - SetContactKeywords(value []string) - Information() string - SetInformation(value string) - AcquisitionMake() string - SetAcquisitionMake(value string) - SecurityMethod() string - SetSecurityMethod(value string) - GPSDestBearing() foundation.Number - SetGPSDestBearing(value foundation.INumber) - ContentDescription() string - SetContentDescription(value string) - Headline() string - SetHeadline(value string) - TextContent() string - SetTextContent(value string) MediaTypes() []string SetMediaTypes(value []string) - Title() string - SetTitle(value string) - AuthorAddresses() []string - SetAuthorAddresses(value []string) + ContentCreationDate() foundation.Date + SetContentCreationDate(value foundation.IDate) + PostalCode() string + SetPostalCode(value string) TimeSignature() string SetTimeSignature(value string) - GPSDifferental() foundation.Number - SetGPSDifferental(value foundation.INumber) - AudioTrackNumber() foundation.Number - SetAudioTrackNumber(value foundation.INumber) - Editors() []string - SetEditors(value []string) - ContainerOrder() foundation.Number - SetContainerOrder(value foundation.INumber) - Artist() string - SetArtist(value string) - Role() string - SetRole(value string) - LensModel() string - SetLensModel(value string) - GPSDestLatitude() foundation.Number - SetGPSDestLatitude(value foundation.INumber) - FocalLength() foundation.Number - SetFocalLength(value foundation.INumber) - LayerNames() []string - SetLayerNames(value []string) - ProviderFileTypeIdentifiers() []string - SetProviderFileTypeIdentifiers(value []string) - Languages() []string - SetLanguages(value []string) - Creator() string - SetCreator(value string) - Publishers() []string - SetPublishers(value []string) - ContentType() string - SetContentType(value string) - PhoneNumbers() []string - SetPhoneNumbers(value []string) - ImportantDates() []foundation.Date - SetImportantDates(value []foundation.IDate) - RecordingDate() foundation.Date - SetRecordingDate(value foundation.IDate) + DarkThumbnailURL() foundation.URL + SetDarkThumbnailURL(value foundation.IURL) + DomainIdentifier() string + SetDomainIdentifier(value string) + IsFlashOn() foundation.Number + SetFlashOn(value foundation.INumber) + ContentRating() foundation.Number + SetContentRating(value foundation.INumber) + Altitude() foundation.Number + SetAltitude(value foundation.INumber) + ContainerDisplayName() string + SetContainerDisplayName(value string) ProviderDataTypeIdentifiers() []string SetProviderDataTypeIdentifiers(value []string) - Organizations() []string - SetOrganizations(value []string) + Projects() []string + SetProjects(value []string) + NamedLocation() string + SetNamedLocation(value string) + DownloadedDate() foundation.Date + SetDownloadedDate(value foundation.IDate) + RecipientNames() []string + SetRecipientNames(value []string) + RecipientAddresses() []string + SetRecipientAddresses(value []string) Longitude() foundation.Number SetLongitude(value foundation.INumber) - PageHeight() foundation.Number - SetPageHeight(value foundation.INumber) - ContainerIdentifier() string - SetContainerIdentifier(value string) - StateOrProvince() string - SetStateOrProvince(value string) - ContentRating() foundation.Number - SetContentRating(value foundation.INumber) - IsStreamable() foundation.Number - SetStreamable(value foundation.INumber) - MetadataModificationDate() foundation.Date - SetMetadataModificationDate(value foundation.IDate) + EmailAddresses() []string + SetEmailAddresses(value []string) + InstantMessageAddresses() []string + SetInstantMessageAddresses(value []string) + PlayCount() foundation.Number + SetPlayCount(value foundation.INumber) + AllDay() foundation.Number + SetAllDay(value foundation.INumber) + PixelCount() foundation.Number + SetPixelCount(value foundation.INumber) Lyricist() string SetLyricist(value string) - OriginalFormat() string - SetOriginalFormat(value string) - Director() string - SetDirector(value string) - Orientation() foundation.Number - SetOrientation(value foundation.INumber) - Participants() []string - SetParticipants(value []string) - Path() string - SetPath(value string) - EmailHeaders() map[string][]objc.Object - SetEmailHeaders(value map[string][]objc.IObject) - ColorSpace() string - SetColorSpace(value string) - VideoBitRate() foundation.Number - SetVideoBitRate(value foundation.INumber) - DeliveryType() foundation.Number - SetDeliveryType(value foundation.INumber) - Genre() string - SetGenre(value string) - AuthorNames() []string - SetAuthorNames(value []string) - AlternateNames() []string - SetAlternateNames(value []string) - ContentModificationDate() foundation.Date - SetContentModificationDate(value foundation.IDate) - Identifier() string - SetIdentifier(value string) - HTMLContentData() []byte - SetHTMLContentData(value []byte) - IsUserOwned() foundation.Number - SetUserOwned(value foundation.INumber) - IsFlashOn() foundation.Number - SetFlashOn(value foundation.INumber) - IsGeneralMIDISequence() foundation.Number - SetGeneralMIDISequence(value foundation.INumber) - Speed() foundation.Number - SetSpeed(value foundation.INumber) - Timestamp() foundation.Date - SetTimestamp(value foundation.IDate) - Comment() string - SetComment(value string) - MusicalInstrumentName() string - SetMusicalInstrumentName(value string) - Authors() []Person - SetAuthors(value []IPerson) - Album() string - SetAlbum(value string) - Codecs() []string - SetCodecs(value []string) - ThumbnailURL() foundation.URL - SetThumbnailURL(value foundation.IURL) - NamedLocation() string - SetNamedLocation(value string) - GPSDestLongitude() foundation.Number - SetGPSDestLongitude(value foundation.INumber) - PostalCode() string - SetPostalCode(value string) - FileSize() foundation.Number - SetFileSize(value foundation.INumber) - MailboxIdentifiers() []string - SetMailboxIdentifiers(value []string) - StartDate() foundation.Date - SetStartDate(value foundation.IDate) - BitsPerSample() foundation.Number - SetBitsPerSample(value foundation.INumber) - IsUserCurated() foundation.Number - SetUserCurated(value foundation.INumber) + GPSProcessingMethod() string + SetGPSProcessingMethod(value string) + ExposureTime() foundation.Number + SetExposureTime(value foundation.INumber) URL() foundation.URL SetURL(value foundation.IURL) - AuthorEmailAddresses() []string - SetAuthorEmailAddresses(value []string) - ExposureMode() foundation.Number - SetExposureMode(value foundation.INumber) - AcquisitionModel() string - SetAcquisitionModel(value string) - Contributors() []string - SetContributors(value []string) - Tempo() foundation.Number - SetTempo(value foundation.INumber) - CompletionDate() foundation.Date - SetCompletionDate(value foundation.IDate) - DomainIdentifier() string - SetDomainIdentifier(value string) - Projects() []string - SetProjects(value []string) - EndDate() foundation.Date - SetEndDate(value foundation.IDate) - ContainerDisplayName() string - SetContainerDisplayName(value string) - FNumber() foundation.Number - SetFNumber(value foundation.INumber) - HiddenAdditionalRecipients() []Person - SetHiddenAdditionalRecipients(value []IPerson) + RatingDescription() string + SetRatingDescription(value string) Kind() string SetKind(value string) - ExposureProgram() string - SetExposureProgram(value string) - Duration() foundation.Number - SetDuration(value foundation.INumber) - EmailAddresses() []string - SetEmailAddresses(value []string) - Performers() []string - SetPerformers(value []string) - Coverage() []string - SetCoverage(value []string) - ContentCreationDate() foundation.Date - SetContentCreationDate(value foundation.IDate) - Theme() string - SetTheme(value string) + ContentType() string + SetContentType(value string) + DueDate() foundation.Date + SetDueDate(value foundation.IDate) + MusicalInstrumentName() string + SetMusicalInstrumentName(value string) + Rights() string + SetRights(value string) + AuthorEmailAddresses() []string + SetAuthorEmailAddresses(value []string) + AudioSampleRate() foundation.Number + SetAudioSampleRate(value foundation.INumber) + MetadataModificationDate() foundation.Date + SetMetadataModificationDate(value foundation.IDate) PrimaryRecipients() []Person SetPrimaryRecipients(value []IPerson) - FullyFormattedAddress() string - SetFullyFormattedAddress(value string) + AudioBitRate() foundation.Number + SetAudioBitRate(value foundation.INumber) + IsFocalLength35mm() foundation.Number + SetFocalLength35mm(value foundation.INumber) + EXIFGPSVersion() string + SetEXIFGPSVersion(value string) + MaxAperture() foundation.Number + SetMaxAperture(value foundation.INumber) + IsLikelyJunk() foundation.Number + SetLikelyJunk(value foundation.INumber) + Coverage() []string + SetCoverage(value []string) + StartDate() foundation.Date + SetStartDate(value foundation.IDate) + FileSize() foundation.Number + SetFileSize(value foundation.INumber) IsUserCreated() foundation.Number SetUserCreated(value foundation.INumber) - RelatedUniqueIdentifier() string - SetRelatedUniqueIdentifier(value string) - GPSDateStamp() foundation.Date - SetGPSDateStamp(value foundation.IDate) - ContentTypeTree() []string - SetContentTypeTree(value []string) - ContentURL() foundation.URL - SetContentURL(value foundation.IURL) + Title() string + SetTitle(value string) + ExposureMode() foundation.Number + SetExposureMode(value foundation.INumber) + ThumbnailData() []byte + SetThumbnailData(value []byte) + RelatedUniqueIdentifier() string + SetRelatedUniqueIdentifier(value string) + Participants() []string + SetParticipants(value []string) + AccountIdentifier() string + SetAccountIdentifier(value string) + Album() string + SetAlbum(value string) + OriginalSource() string + SetOriginalSource(value string) + Editors() []string + SetEditors(value []string) + Subject() string + SetSubject(value string) + Timestamp() foundation.Date + SetTimestamp(value foundation.IDate) + RecordingDate() foundation.Date + SetRecordingDate(value foundation.IDate) ResolutionHeightDPI() foundation.Number SetResolutionHeightDPI(value foundation.INumber) - ContainerTitle() string - SetContainerTitle(value string) - HasAlphaChannel() foundation.Number - SetHasAlphaChannel(value foundation.INumber) - RatingDescription() string - SetRatingDescription(value string) - MaxAperture() foundation.Number - SetMaxAperture(value foundation.INumber) + ContactKeywords() []string + SetContactKeywords(value []string) + LayerNames() []string + SetLayerNames(value []string) + ExposureProgram() string + SetExposureProgram(value string) + AddedDate() foundation.Date + SetAddedDate(value foundation.IDate) + ContainerIdentifier() string + SetContainerIdentifier(value string) + GPSDestDistance() foundation.Number + SetGPSDestDistance(value foundation.INumber) + CameraOwner() string + SetCameraOwner(value string) + Copyright() string + SetCopyright(value string) MeteringMode() string SetMeteringMode(value string) - LastUsedDate() foundation.Date - SetLastUsedDate(value foundation.IDate) - SupportsNavigation() foundation.Number - SetSupportsNavigation(value foundation.INumber) - RankingHint() foundation.Number - SetRankingHint(value foundation.INumber) - EncodingApplications() []string - SetEncodingApplications(value []string) + Duration() foundation.Number + SetDuration(value foundation.INumber) + EndDate() foundation.Date + SetEndDate(value foundation.IDate) + SubThoroughfare() string + SetSubThoroughfare(value string) + RecipientEmailAddresses() []string + SetRecipientEmailAddresses(value []string) + FocalLength() foundation.Number + SetFocalLength(value foundation.INumber) + GPSDestLongitude() foundation.Number + SetGPSDestLongitude(value foundation.INumber) + VideoBitRate() foundation.Number + SetVideoBitRate(value foundation.INumber) + SupportsPhoneCall() foundation.Number + SetSupportsPhoneCall(value foundation.INumber) + LensModel() string + SetLensModel(value string) + EmailHeaders() map[string][]objc.Object + SetEmailHeaders(value map[string][]objc.IObject) + DisplayName() string + SetDisplayName(value string) + Composer() string + SetComposer(value string) + HTMLContentData() []byte + SetHTMLContentData(value []byte) + Identifier() string + SetIdentifier(value string) + BitsPerSample() foundation.Number + SetBitsPerSample(value foundation.INumber) + Keywords() []string + SetKeywords(value []string) + Country() string + SetCountry(value string) + AuthorNames() []string + SetAuthorNames(value []string) IsLocal() foundation.Number SetLocal(value foundation.INumber) + Tempo() foundation.Number + SetTempo(value foundation.INumber) + GPSAreaInformation() string + SetGPSAreaInformation(value string) + ContentSources() []string + SetContentSources(value []string) + IsRedEyeOn() foundation.Number + SetRedEyeOn(value foundation.INumber) WeakRelatedUniqueIdentifier() string SetWeakRelatedUniqueIdentifier(value string) - IsFocalLength35mm() foundation.Number - SetFocalLength35mm(value foundation.INumber) - Copyright() string - SetCopyright(value string) - ProviderInPlaceFileTypeIdentifiers() []string - SetProviderInPlaceFileTypeIdentifiers(value []string) + Thoroughfare() string + SetThoroughfare(value string) + Orientation() foundation.Number + SetOrientation(value foundation.INumber) + PageWidth() foundation.Number + SetPageWidth(value foundation.INumber) + IsUserOwned() foundation.Number + SetUserOwned(value foundation.INumber) } // The set of properties to display for a searchable item. [Full Topic] @@ -441,6 +441,14 @@ func (s_ SearchableItemAttributeSet) Init() SearchableItemAttributeSet { return rv } +// Returns the value associated with the specified custom attribute key. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616407-valueforcustomkey?language=objc +func (s_ SearchableItemAttributeSet) ValueForCustomKey(key ICustomAttributeKey) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("valueForCustomKey:"), key) + return rv +} + // Sets the value for a custom attribute key. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616395-setvalue?language=objc @@ -448,492 +456,529 @@ func (s_ SearchableItemAttributeSet) SetValueForCustomKey(value objc.IObject, ke objc.Call[objc.Void](s_, objc.Sel("setValue:forCustomKey:"), value, key) } -// Returns the value associated with the specified custom attribute key. [Full Topic] +// The geodetic data that the GPS receiver uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616407-valueforcustomkey?language=objc -func (s_ SearchableItemAttributeSet) ValueForCustomKey(key ICustomAttributeKey) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("valueForCustomKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620583-gpsmapdatum?language=objc +func (s_ SearchableItemAttributeSet) GPSMapDatum() string { + rv := objc.Call[string](s_, objc.Sel("GPSMapDatum")) return rv } -// The date on which the item was moved into its current location. [Full Topic] +// The geodetic data that the GPS receiver uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616029-addeddate?language=objc -func (s_ SearchableItemAttributeSet) AddedDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("addedDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620583-gpsmapdatum?language=objc +func (s_ SearchableItemAttributeSet) SetGPSMapDatum(value string) { + objc.Call[objc.Void](s_, objc.Sel("setGPSMapDatum:"), value) +} + +// An array of addresses associated with the author of the message. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621671-authoraddresses?language=objc +func (s_ SearchableItemAttributeSet) AuthorAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("authorAddresses")) return rv } -// The date on which the item was moved into its current location. [Full Topic] +// An array of addresses associated with the author of the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616029-addeddate?language=objc -func (s_ SearchableItemAttributeSet) SetAddedDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setAddedDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621671-authoraddresses?language=objc +func (s_ SearchableItemAttributeSet) SetAuthorAddresses(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setAuthorAddresses:"), value) } -// A value that indicates if the message is likely to be considered junk. [Full Topic] +// The complete path to the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621646-likelyjunk?language=objc -func (s_ SearchableItemAttributeSet) IsLikelyJunk() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("isLikelyJunk")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621559-path?language=objc +func (s_ SearchableItemAttributeSet) Path() string { + rv := objc.Call[string](s_, objc.Sel("path")) return rv } -// A value that indicates if the message is likely to be considered junk. [Full Topic] +// The complete path to the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621646-likelyjunk?language=objc -func (s_ SearchableItemAttributeSet) SetLikelyJunk(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setLikelyJunk:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621559-path?language=objc +func (s_ SearchableItemAttributeSet) SetPath(value string) { + objc.Call[objc.Void](s_, objc.Sel("setPath:"), value) } -// A version string associated with the file. [Full Topic] +// The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616093-version?language=objc -func (s_ SearchableItemAttributeSet) Version() string { - rv := objc.Call[string](s_, objc.Sel("version")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616020-keysignature?language=objc +func (s_ SearchableItemAttributeSet) KeySignature() string { + rv := objc.Call[string](s_, objc.Sel("keySignature")) return rv } -// A version string associated with the file. [Full Topic] +// The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616093-version?language=objc -func (s_ SearchableItemAttributeSet) SetVersion(value string) { - objc.Call[objc.Void](s_, objc.Sel("setVersion:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616020-keysignature?language=objc +func (s_ SearchableItemAttributeSet) SetKeySignature(value string) { + objc.Call[objc.Void](s_, objc.Sel("setKeySignature:"), value) } -// The producer of the content. [Full Topic] +// A list of people, organizations, services, or other entities responsible for making the media available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616092-producer?language=objc -func (s_ SearchableItemAttributeSet) Producer() string { - rv := objc.Call[string](s_, objc.Sel("producer")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616003-publishers?language=objc +func (s_ SearchableItemAttributeSet) Publishers() []string { + rv := objc.Call[[]string](s_, objc.Sel("publishers")) return rv } -// The producer of the content. [Full Topic] +// A list of people, organizations, services, or other entities responsible for making the media available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616092-producer?language=objc -func (s_ SearchableItemAttributeSet) SetProducer(value string) { - objc.Call[objc.Void](s_, objc.Sel("setProducer:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616003-publishers?language=objc +func (s_ SearchableItemAttributeSet) SetPublishers(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setPublishers:"), value) } -// The subject of the document. [Full Topic] +// A value that indicates whether the MIDI sequence the file contains is set up for use with a general MIDI device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621598-subject?language=objc -func (s_ SearchableItemAttributeSet) Subject() string { - rv := objc.Call[string](s_, objc.Sel("subject")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616081-generalmidisequence?language=objc +func (s_ SearchableItemAttributeSet) IsGeneralMIDISequence() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isGeneralMIDISequence")) return rv } -// The subject of the document. [Full Topic] +// A value that indicates whether the MIDI sequence the file contains is set up for use with a general MIDI device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621598-subject?language=objc -func (s_ SearchableItemAttributeSet) SetSubject(value string) { - objc.Call[objc.Void](s_, objc.Sel("setSubject:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616081-generalmidisequence?language=objc +func (s_ SearchableItemAttributeSet) SetGeneralMIDISequence(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGeneralMIDISequence:"), value) } -// The total bit rate of the media, combining audio and video. [Full Topic] +// A publishable string that provides a synopsis of the contents of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616058-totalbitrate?language=objc -func (s_ SearchableItemAttributeSet) TotalBitRate() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("totalBitRate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620585-headline?language=objc +func (s_ SearchableItemAttributeSet) Headline() string { + rv := objc.Call[string](s_, objc.Sel("headline")) return rv } -// The total bit rate of the media, combining audio and video. [Full Topic] +// A publishable string that provides a synopsis of the contents of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616058-totalbitrate?language=objc -func (s_ SearchableItemAttributeSet) SetTotalBitRate(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setTotalBitRate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620585-headline?language=objc +func (s_ SearchableItemAttributeSet) SetHeadline(value string) { + objc.Call[objc.Void](s_, objc.Sel("setHeadline:"), value) +} + +// The order of the item within the container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621586-containerorder?language=objc +func (s_ SearchableItemAttributeSet) ContainerOrder() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("containerOrder")) + return rv +} + +// The order of the item within the container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621586-containerorder?language=objc +func (s_ SearchableItemAttributeSet) SetContainerOrder(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setContainerOrder:"), value) +} + +// The latitude of the item, in degrees north of the equator, expressed using the WGS84 datum. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620586-latitude?language=objc +func (s_ SearchableItemAttributeSet) Latitude() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("latitude")) + return rv +} + +// The latitude of the item, in degrees north of the equator, expressed using the WGS84 datum. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620586-latitude?language=objc +func (s_ SearchableItemAttributeSet) SetLatitude(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setLatitude:"), value) } -// Information about the GPS area. [Full Topic] +// The width of the item, such as image or video frame width, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620581-gpsareainformation?language=objc -func (s_ SearchableItemAttributeSet) GPSAreaInformation() string { - rv := objc.Call[string](s_, objc.Sel("GPSAreaInformation")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621527-pixelwidth?language=objc +func (s_ SearchableItemAttributeSet) PixelWidth() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pixelWidth")) return rv } -// Information about the GPS area. [Full Topic] +// The width of the item, such as image or video frame width, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620581-gpsareainformation?language=objc -func (s_ SearchableItemAttributeSet) SetGPSAreaInformation(value string) { - objc.Call[objc.Void](s_, objc.Sel("setGPSAreaInformation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621527-pixelwidth?language=objc +func (s_ SearchableItemAttributeSet) SetPixelWidth(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPixelWidth:"), value) } -// The most recent date on which the file was downloaded or received. [Full Topic] +// An array of important dates associated with the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616035-downloadeddate?language=objc -func (s_ SearchableItemAttributeSet) DownloadedDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("downloadedDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616639-importantdates?language=objc +func (s_ SearchableItemAttributeSet) ImportantDates() []foundation.Date { + rv := objc.Call[[]foundation.Date](s_, objc.Sel("importantDates")) return rv } -// The most recent date on which the file was downloaded or received. [Full Topic] +// An array of important dates associated with the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616035-downloadeddate?language=objc -func (s_ SearchableItemAttributeSet) SetDownloadedDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setDownloadedDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616639-importantdates?language=objc +func (s_ SearchableItemAttributeSet) SetImportantDates(value []foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setImportantDates:"), value) } -// A class of entity for which the item is intended or useful. [Full Topic] +// An array of phone numbers associated with the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621571-audiences?language=objc -func (s_ SearchableItemAttributeSet) Audiences() []string { - rv := objc.Call[[]string](s_, objc.Sel("audiences")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621650-phonenumbers?language=objc +func (s_ SearchableItemAttributeSet) PhoneNumbers() []string { + rv := objc.Call[[]string](s_, objc.Sel("phoneNumbers")) return rv } -// A class of entity for which the item is intended or useful. [Full Topic] +// An array of phone numbers associated with the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621571-audiences?language=objc -func (s_ SearchableItemAttributeSet) SetAudiences(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setAudiences:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621650-phonenumbers?language=objc +func (s_ SearchableItemAttributeSet) SetPhoneNumbers(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setPhoneNumbers:"), value) } -// The measurement precision mode in use by the GPS receiver. [Full Topic] +// An array of CSPerson objects representing the content of the Bcc: field in an email message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620573-gpsmeasuremode?language=objc -func (s_ SearchableItemAttributeSet) GPSMeasureMode() string { - rv := objc.Call[string](s_, objc.Sel("GPSMeasureMode")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621645-hiddenadditionalrecipients?language=objc +func (s_ SearchableItemAttributeSet) HiddenAdditionalRecipients() []Person { + rv := objc.Call[[]Person](s_, objc.Sel("hiddenAdditionalRecipients")) return rv } -// The measurement precision mode in use by the GPS receiver. [Full Topic] +// An array of CSPerson objects representing the content of the Bcc: field in an email message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620573-gpsmeasuremode?language=objc -func (s_ SearchableItemAttributeSet) SetGPSMeasureMode(value string) { - objc.Call[objc.Void](s_, objc.Sel("setGPSMeasureMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621645-hiddenadditionalrecipients?language=objc +func (s_ SearchableItemAttributeSet) SetHiddenAdditionalRecipients(value []IPerson) { + objc.Call[objc.Void](s_, objc.Sel("setHiddenAdditionalRecipients:"), value) } -// The version of GPS Info IFD header that was used to generate the metadata for the image. [Full Topic] +// The name of the app that created the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621543-exifgpsversion?language=objc -func (s_ SearchableItemAttributeSet) EXIFGPSVersion() string { - rv := objc.Call[string](s_, objc.Sel("EXIFGPSVersion")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621677-creator?language=objc +func (s_ SearchableItemAttributeSet) Creator() string { + rv := objc.Call[string](s_, objc.Sel("creator")) return rv } -// The version of GPS Info IFD header that was used to generate the metadata for the image. [Full Topic] +// The name of the app that created the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621543-exifgpsversion?language=objc -func (s_ SearchableItemAttributeSet) SetEXIFGPSVersion(value string) { - objc.Call[objc.Void](s_, objc.Sel("setEXIFGPSVersion:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621677-creator?language=objc +func (s_ SearchableItemAttributeSet) SetCreator(value string) { + objc.Call[objc.Void](s_, objc.Sel("setCreator:"), value) } -// A user-supplied play count for the media. [Full Topic] +// A version string associated with the file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616041-playcount?language=objc -func (s_ SearchableItemAttributeSet) PlayCount() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("playCount")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616093-version?language=objc +func (s_ SearchableItemAttributeSet) Version() string { + rv := objc.Call[string](s_, objc.Sel("version")) return rv } -// A user-supplied play count for the media. [Full Topic] +// A version string associated with the file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616041-playcount?language=objc -func (s_ SearchableItemAttributeSet) SetPlayCount(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setPlayCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616093-version?language=objc +func (s_ SearchableItemAttributeSet) SetVersion(value string) { + objc.Call[objc.Void](s_, objc.Sel("setVersion:"), value) } -// The user-supplied rating of the media. [Full Topic] +// The original format of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616011-rating?language=objc -func (s_ SearchableItemAttributeSet) Rating() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("rating")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616097-originalformat?language=objc +func (s_ SearchableItemAttributeSet) OriginalFormat() string { + rv := objc.Call[string](s_, objc.Sel("originalFormat")) return rv } -// The user-supplied rating of the media. [Full Topic] +// The original format of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616011-rating?language=objc -func (s_ SearchableItemAttributeSet) SetRating(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setRating:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616097-originalformat?language=objc +func (s_ SearchableItemAttributeSet) SetOriginalFormat(value string) { + objc.Call[objc.Void](s_, objc.Sel("setOriginalFormat:"), value) } -// An array of names representing the recipients of this message. [Full Topic] +// The height of the document page, in points (72 points per inch). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621667-recipientnames?language=objc -func (s_ SearchableItemAttributeSet) RecipientNames() []string { - rv := objc.Call[[]string](s_, objc.Sel("recipientNames")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621673-pageheight?language=objc +func (s_ SearchableItemAttributeSet) PageHeight() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pageHeight")) return rv } -// An array of names representing the recipients of this message. [Full Topic] +// The height of the document page, in points (72 points per inch). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621667-recipientnames?language=objc -func (s_ SearchableItemAttributeSet) SetRecipientNames(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setRecipientNames:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621673-pageheight?language=objc +func (s_ SearchableItemAttributeSet) SetPageHeight(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPageHeight:"), value) } -// The time that the lens was open during exposure, in a string, such as "1/250 seconds". [Full Topic] +// The category of the instrument associated with the audio file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621521-exposuretimestring?language=objc -func (s_ SearchableItemAttributeSet) ExposureTimeString() string { - rv := objc.Call[string](s_, objc.Sel("exposureTimeString")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616099-musicalinstrumentcategory?language=objc +func (s_ SearchableItemAttributeSet) MusicalInstrumentCategory() string { + rv := objc.Call[string](s_, objc.Sel("musicalInstrumentCategory")) return rv } -// The time that the lens was open during exposure, in a string, such as "1/250 seconds". [Full Topic] +// The category of the instrument associated with the audio file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621521-exposuretimestring?language=objc -func (s_ SearchableItemAttributeSet) SetExposureTimeString(value string) { - objc.Call[objc.Void](s_, objc.Sel("setExposureTimeString:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616099-musicalinstrumentcategory?language=objc +func (s_ SearchableItemAttributeSet) SetMusicalInstrumentCategory(value string) { + objc.Call[objc.Void](s_, objc.Sel("setMusicalInstrumentCategory:"), value) } -// The width of the item, such as image or video frame width, in pixels. [Full Topic] +// The differential correction applied to the GPS receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621527-pixelwidth?language=objc -func (s_ SearchableItemAttributeSet) PixelWidth() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("pixelWidth")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620592-gpsdifferental?language=objc +func (s_ SearchableItemAttributeSet) GPSDifferental() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDifferental")) return rv } -// The width of the item, such as image or video frame width, in pixels. [Full Topic] +// The differential correction applied to the GPS receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621527-pixelwidth?language=objc -func (s_ SearchableItemAttributeSet) SetPixelWidth(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setPixelWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620592-gpsdifferental?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDifferental(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDifferental:"), value) } -// The geodetic data that the GPS receiver uses. [Full Topic] +// An array of font names the document uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620583-gpsmapdatum?language=objc -func (s_ SearchableItemAttributeSet) GPSMapDatum() string { - rv := objc.Call[string](s_, objc.Sel("GPSMapDatum")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621566-fontnames?language=objc +func (s_ SearchableItemAttributeSet) FontNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("fontNames")) return rv } -// The geodetic data that the GPS receiver uses. [Full Topic] +// An array of font names the document uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620583-gpsmapdatum?language=objc -func (s_ SearchableItemAttributeSet) SetGPSMapDatum(value string) { - objc.Call[objc.Void](s_, objc.Sel("setGPSMapDatum:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621566-fontnames?language=objc +func (s_ SearchableItemAttributeSet) SetFontNames(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setFontNames:"), value) } -// A value that indicates if the event covers an entire day. [Full Topic] +// The local file URL of the thumbnail image for the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616636-allday?language=objc -func (s_ SearchableItemAttributeSet) AllDay() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("allDay")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621560-thumbnailurl?language=objc +func (s_ SearchableItemAttributeSet) ThumbnailURL() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("thumbnailURL")) return rv } -// A value that indicates if the event covers an entire day. [Full Topic] +// The local file URL of the thumbnail image for the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616636-allday?language=objc -func (s_ SearchableItemAttributeSet) SetAllDay(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setAllDay:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621560-thumbnailurl?language=objc +func (s_ SearchableItemAttributeSet) SetThumbnailURL(value foundation.IURL) { + objc.Call[objc.Void](s_, objc.Sel("setThumbnailURL:"), value) } -// The category of the instrument associated with the audio file. [Full Topic] +// A list of the included languages for the intellectual content of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616099-musicalinstrumentcategory?language=objc -func (s_ SearchableItemAttributeSet) MusicalInstrumentCategory() string { - rv := objc.Call[string](s_, objc.Sel("musicalInstrumentCategory")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616068-languages?language=objc +func (s_ SearchableItemAttributeSet) Languages() []string { + rv := objc.Call[[]string](s_, objc.Sel("languages")) return rv } -// The category of the instrument associated with the audio file. [Full Topic] +// A list of the included languages for the intellectual content of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616099-musicalinstrumentcategory?language=objc -func (s_ SearchableItemAttributeSet) SetMusicalInstrumentCategory(value string) { - objc.Call[objc.Void](s_, objc.Sel("setMusicalInstrumentCategory:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616068-languages?language=objc +func (s_ SearchableItemAttributeSet) SetLanguages(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setLanguages:"), value) } -// Image data that represents the thumbnail of the item. [Full Topic] +// The name of the color profile the camera used for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621582-thumbnaildata?language=objc -func (s_ SearchableItemAttributeSet) ThumbnailData() []byte { - rv := objc.Call[[]byte](s_, objc.Sel("thumbnailData")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621531-profilename?language=objc +func (s_ SearchableItemAttributeSet) ProfileName() string { + rv := objc.Call[string](s_, objc.Sel("profileName")) return rv } -// Image data that represents the thumbnail of the item. [Full Topic] +// The name of the color profile the camera used for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621582-thumbnaildata?language=objc -func (s_ SearchableItemAttributeSet) SetThumbnailData(value []byte) { - objc.Call[objc.Void](s_, objc.Sel("setThumbnailData:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621531-profilename?language=objc +func (s_ SearchableItemAttributeSet) SetProfileName(value string) { + objc.Call[objc.Void](s_, objc.Sel("setProfileName:"), value) } -// A value that indicates whether the item contains information sufficient to allow a phone call to a number associated with the item. [Full Topic] +// A class of entity for which the item is intended or useful. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621653-supportsphonecall?language=objc -func (s_ SearchableItemAttributeSet) SupportsPhoneCall() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("supportsPhoneCall")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621571-audiences?language=objc +func (s_ SearchableItemAttributeSet) Audiences() []string { + rv := objc.Call[[]string](s_, objc.Sel("audiences")) return rv } -// A value that indicates whether the item contains information sufficient to allow a phone call to a number associated with the item. [Full Topic] +// A class of entity for which the item is intended or useful. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621653-supportsphonecall?language=objc -func (s_ SearchableItemAttributeSet) SetSupportsPhoneCall(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setSupportsPhoneCall:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621571-audiences?language=objc +func (s_ SearchableItemAttributeSet) SetAudiences(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setAudiences:"), value) } -// The owner of the camera that captured the image. [Full Topic] +// The GPS dilution of precision value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621522-cameraowner?language=objc -func (s_ SearchableItemAttributeSet) CameraOwner() string { - rv := objc.Call[string](s_, objc.Sel("cameraOwner")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620593-gpsdop?language=objc +func (s_ SearchableItemAttributeSet) GPSDOP() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDOP")) return rv } -// The owner of the camera that captured the image. [Full Topic] +// The GPS dilution of precision value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621522-cameraowner?language=objc -func (s_ SearchableItemAttributeSet) SetCameraOwner(value string) { - objc.Call[objc.Void](s_, objc.Sel("setCameraOwner:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620593-gpsdop?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDOP(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDOP:"), value) } -// The sublocation, such as a street number, for the item according to guidelines the provider establishes. [Full Topic] +// The textual content of the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649290-subthoroughfare?language=objc -func (s_ SearchableItemAttributeSet) SubThoroughfare() string { - rv := objc.Call[string](s_, objc.Sel("subThoroughfare")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621674-textcontent?language=objc +func (s_ SearchableItemAttributeSet) TextContent() string { + rv := objc.Call[string](s_, objc.Sel("textContent")) return rv } -// The sublocation, such as a street number, for the item according to guidelines the provider establishes. [Full Topic] +// The textual content of the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649290-subthoroughfare?language=objc -func (s_ SearchableItemAttributeSet) SetSubThoroughfare(value string) { - objc.Call[objc.Void](s_, objc.Sel("setSubThoroughfare:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621674-textcontent?language=objc +func (s_ SearchableItemAttributeSet) SetTextContent(value string) { + objc.Call[objc.Void](s_, objc.Sel("setTextContent:"), value) } -// The original source of the media. [Full Topic] +// The date on which the item was completed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616022-originalsource?language=objc -func (s_ SearchableItemAttributeSet) OriginalSource() string { - rv := objc.Call[string](s_, objc.Sel("originalSource")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616637-completiondate?language=objc +func (s_ SearchableItemAttributeSet) CompletionDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("completionDate")) return rv } -// The original source of the media. [Full Topic] +// The date on which the item was completed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616022-originalsource?language=objc -func (s_ SearchableItemAttributeSet) SetOriginalSource(value string) { - objc.Call[objc.Void](s_, objc.Sel("setOriginalSource:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616637-completiondate?language=objc +func (s_ SearchableItemAttributeSet) SetCompletionDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setCompletionDate:"), value) } -// An array of CSPerson objects representing the content of the Cc: field in an email message. [Full Topic] +// The theme of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621664-additionalrecipients?language=objc -func (s_ SearchableItemAttributeSet) AdditionalRecipients() []Person { - rv := objc.Call[[]Person](s_, objc.Sel("additionalRecipients")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621574-theme?language=objc +func (s_ SearchableItemAttributeSet) Theme() string { + rv := objc.Call[string](s_, objc.Sel("theme")) return rv } -// An array of CSPerson objects representing the content of the Cc: field in an email message. [Full Topic] +// The theme of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621664-additionalrecipients?language=objc -func (s_ SearchableItemAttributeSet) SetAdditionalRecipients(value []IPerson) { - objc.Call[objc.Void](s_, objc.Sel("setAdditionalRecipients:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621574-theme?language=objc +func (s_ SearchableItemAttributeSet) SetTheme(value string) { + objc.Call[objc.Void](s_, objc.Sel("setTheme:"), value) } -// The name of the color profile the camera used for the image. [Full Topic] +// The height of the item, such as image or video frame height, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621531-profilename?language=objc -func (s_ SearchableItemAttributeSet) ProfileName() string { - rv := objc.Call[string](s_, objc.Sel("profileName")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621535-pixelheight?language=objc +func (s_ SearchableItemAttributeSet) PixelHeight() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pixelHeight")) return rv } -// The name of the color profile the camera used for the image. [Full Topic] +// The height of the item, such as image or video frame height, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621531-profilename?language=objc -func (s_ SearchableItemAttributeSet) SetProfileName(value string) { - objc.Call[objc.Void](s_, objc.Sel("setProfileName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621535-pixelheight?language=objc +func (s_ SearchableItemAttributeSet) SetPixelHeight(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPixelHeight:"), value) } -// A link to information about the rights held in and over the media. [Full Topic] +// Indicates if the image file has an alpha channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616076-rights?language=objc -func (s_ SearchableItemAttributeSet) Rights() string { - rv := objc.Call[string](s_, objc.Sel("rights")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621518-hasalphachannel?language=objc +func (s_ SearchableItemAttributeSet) HasAlphaChannel() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("hasAlphaChannel")) return rv } -// A link to information about the rights held in and over the media. [Full Topic] +// Indicates if the image file has an alpha channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616076-rights?language=objc -func (s_ SearchableItemAttributeSet) SetRights(value string) { - objc.Call[objc.Void](s_, objc.Sel("setRights:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621518-hasalphachannel?language=objc +func (s_ SearchableItemAttributeSet) SetHasAlphaChannel(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setHasAlphaChannel:"), value) } -// The name of the application that encoded the data the audio file contains. [Full Topic] +// The resolution width of the image, in DPI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616039-audioencodingapplication?language=objc -func (s_ SearchableItemAttributeSet) AudioEncodingApplication() string { - rv := objc.Call[string](s_, objc.Sel("audioEncodingApplication")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621544-resolutionwidthdpi?language=objc +func (s_ SearchableItemAttributeSet) ResolutionWidthDPI() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("resolutionWidthDPI")) return rv } -// The name of the application that encoded the data the audio file contains. [Full Topic] +// The resolution width of the image, in DPI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616039-audioencodingapplication?language=objc -func (s_ SearchableItemAttributeSet) SetAudioEncodingApplication(value string) { - objc.Call[objc.Void](s_, objc.Sel("setAudioEncodingApplication:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621544-resolutionwidthdpi?language=objc +func (s_ SearchableItemAttributeSet) SetResolutionWidthDPI(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setResolutionWidthDPI:"), value) } -// An array of sources from which the media was obtained. [Full Topic] +// The size of the lens aperture at the time the camera captured the image, as a log-scale APEX value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616024-contentsources?language=objc -func (s_ SearchableItemAttributeSet) ContentSources() []string { - rv := objc.Call[[]string](s_, objc.Sel("contentSources")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621528-aperture?language=objc +func (s_ SearchableItemAttributeSet) Aperture() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("aperture")) return rv } -// An array of sources from which the media was obtained. [Full Topic] +// The size of the lens aperture at the time the camera captured the image, as a log-scale APEX value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616024-contentsources?language=objc -func (s_ SearchableItemAttributeSet) SetContentSources(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setContentSources:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621528-aperture?language=objc +func (s_ SearchableItemAttributeSet) SetAperture(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setAperture:"), value) } -// The height of the item, such as image or video frame height, in pixels. [Full Topic] +// The fully formatted address of the item, received from MapKit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621535-pixelheight?language=objc -func (s_ SearchableItemAttributeSet) PixelHeight() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("pixelHeight")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649301-fullyformattedaddress?language=objc +func (s_ SearchableItemAttributeSet) FullyFormattedAddress() string { + rv := objc.Call[string](s_, objc.Sel("fullyFormattedAddress")) return rv } -// The height of the item, such as image or video frame height, in pixels. [Full Topic] +// The fully formatted address of the item, received from MapKit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621535-pixelheight?language=objc -func (s_ SearchableItemAttributeSet) SetPixelHeight(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setPixelHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649301-fullyformattedaddress?language=objc +func (s_ SearchableItemAttributeSet) SetFullyFormattedAddress(value string) { + objc.Call[objc.Void](s_, objc.Sel("setFullyFormattedAddress:"), value) } -// The full, publishable name of the country or region in which the intellectual property of the item was created, according to guidelines the provider establishes. [Full Topic] +// The file URL of the content to index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620578-country?language=objc -func (s_ SearchableItemAttributeSet) Country() string { - rv := objc.Call[string](s_, objc.Sel("country")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621651-contenturl?language=objc +func (s_ SearchableItemAttributeSet) ContentURL() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("contentURL")) return rv } -// The full, publishable name of the country or region in which the intellectual property of the item was created, according to guidelines the provider establishes. [Full Topic] +// The file URL of the content to index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620578-country?language=objc -func (s_ SearchableItemAttributeSet) SetCountry(value string) { - objc.Call[objc.Void](s_, objc.Sel("setCountry:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621651-contenturl?language=objc +func (s_ SearchableItemAttributeSet) SetContentURL(value foundation.IURL) { + objc.Call[objc.Void](s_, objc.Sel("setContentURL:"), value) } -// An array of keywords associated with the item, such as work, birthday, important, and so on. [Full Topic] +// The name of the application that encoded the data the audio file contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621652-keywords?language=objc -func (s_ SearchableItemAttributeSet) Keywords() []string { - rv := objc.Call[[]string](s_, objc.Sel("keywords")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616039-audioencodingapplication?language=objc +func (s_ SearchableItemAttributeSet) AudioEncodingApplication() string { + rv := objc.Call[string](s_, objc.Sel("audioEncodingApplication")) return rv } -// An array of keywords associated with the item, such as work, birthday, important, and so on. [Full Topic] +// The name of the application that encoded the data the audio file contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621652-keywords?language=objc -func (s_ SearchableItemAttributeSet) SetKeywords(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setKeywords:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616039-audioencodingapplication?language=objc +func (s_ SearchableItemAttributeSet) SetAudioEncodingApplication(value string) { + objc.Call[objc.Void](s_, objc.Sel("setAudioEncodingApplication:"), value) } // The version of the EXIF header that was used to generate the metadata for the image. [Full Topic] @@ -951,979 +996,964 @@ func (s_ SearchableItemAttributeSet) SetEXIFVersion(value string) { objc.Call[objc.Void](s_, objc.Sel("setEXIFVersion:"), value) } -// The location finding method that the GPS receiver uses. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620575-gpsprocessingmethod?language=objc -func (s_ SearchableItemAttributeSet) GPSProcessingMethod() string { - rv := objc.Call[string](s_, objc.Sel("GPSProcessingMethod")) - return rv -} - -// The location finding method that the GPS receiver uses. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620575-gpsprocessingmethod?language=objc -func (s_ SearchableItemAttributeSet) SetGPSProcessingMethod(value string) { - objc.Call[objc.Void](s_, objc.Sel("setGPSProcessingMethod:"), value) -} - -// The local file URL of the thumbnail image for the item when Dark Mode is active. [Full Topic] +// A number that indicates the relative importance of the item among other items from the app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/3752013-darkthumbnailurl?language=objc -func (s_ SearchableItemAttributeSet) DarkThumbnailURL() foundation.URL { - rv := objc.Call[foundation.URL](s_, objc.Sel("darkThumbnailURL")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887563-rankinghint?language=objc +func (s_ SearchableItemAttributeSet) RankingHint() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("rankingHint")) return rv } -// The local file URL of the thumbnail image for the item when Dark Mode is active. [Full Topic] +// A number that indicates the relative importance of the item among other items from the app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/3752013-darkthumbnailurl?language=objc -func (s_ SearchableItemAttributeSet) SetDarkThumbnailURL(value foundation.IURL) { - objc.Call[objc.Void](s_, objc.Sel("setDarkThumbnailURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887563-rankinghint?language=objc +func (s_ SearchableItemAttributeSet) SetRankingHint(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setRankingHint:"), value) } -// The thoroughfare, such as a street name, associated with the location for the item according to guidelines the provider establishes. [Full Topic] +// The date on which the file was last used. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649310-thoroughfare?language=objc -func (s_ SearchableItemAttributeSet) Thoroughfare() string { - rv := objc.Call[string](s_, objc.Sel("thoroughfare")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616018-lastuseddate?language=objc +func (s_ SearchableItemAttributeSet) LastUsedDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("lastUsedDate")) return rv } -// The thoroughfare, such as a street name, associated with the location for the item according to guidelines the provider establishes. [Full Topic] +// The date on which the file was last used. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649310-thoroughfare?language=objc -func (s_ SearchableItemAttributeSet) SetThoroughfare(value string) { - objc.Call[objc.Void](s_, objc.Sel("setThoroughfare:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616018-lastuseddate?language=objc +func (s_ SearchableItemAttributeSet) SetLastUsedDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setLastUsedDate:"), value) } -// An array of instant message addresses for the message. [Full Topic] +// The date on which the contents of the file was last modified. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621575-instantmessageaddresses?language=objc -func (s_ SearchableItemAttributeSet) InstantMessageAddresses() []string { - rv := objc.Call[[]string](s_, objc.Sel("instantMessageAddresses")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616085-contentmodificationdate?language=objc +func (s_ SearchableItemAttributeSet) ContentModificationDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("contentModificationDate")) return rv } -// An array of instant message addresses for the message. [Full Topic] +// The date on which the contents of the file was last modified. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621575-instantmessageaddresses?language=objc -func (s_ SearchableItemAttributeSet) SetInstantMessageAddresses(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setInstantMessageAddresses:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616085-contentmodificationdate?language=objc +func (s_ SearchableItemAttributeSet) SetContentModificationDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setContentModificationDate:"), value) } -// The size of the lens aperture at the time the camera captured the image, as a log-scale APEX value. [Full Topic] +// The name of the apps that converted the original content into a PDF stream. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621528-aperture?language=objc -func (s_ SearchableItemAttributeSet) Aperture() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("aperture")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621659-encodingapplications?language=objc +func (s_ SearchableItemAttributeSet) EncodingApplications() []string { + rv := objc.Call[[]string](s_, objc.Sel("encodingApplications")) return rv } -// The size of the lens aperture at the time the camera captured the image, as a log-scale APEX value. [Full Topic] +// The name of the apps that converted the original content into a PDF stream. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621528-aperture?language=objc -func (s_ SearchableItemAttributeSet) SetAperture(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setAperture:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621659-encodingapplications?language=objc +func (s_ SearchableItemAttributeSet) SetEncodingApplications(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setEncodingApplications:"), value) } -// The resolution width of the image, in DPI. [Full Topic] +// The measurement precision mode in use by the GPS receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621544-resolutionwidthdpi?language=objc -func (s_ SearchableItemAttributeSet) ResolutionWidthDPI() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("resolutionWidthDPI")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620573-gpsmeasuremode?language=objc +func (s_ SearchableItemAttributeSet) GPSMeasureMode() string { + rv := objc.Call[string](s_, objc.Sel("GPSMeasureMode")) return rv } -// The resolution width of the image, in DPI. [Full Topic] +// The measurement precision mode in use by the GPS receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621544-resolutionwidthdpi?language=objc -func (s_ SearchableItemAttributeSet) SetResolutionWidthDPI(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setResolutionWidthDPI:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620573-gpsmeasuremode?language=objc +func (s_ SearchableItemAttributeSet) SetGPSMeasureMode(value string) { + objc.Call[objc.Void](s_, objc.Sel("setGPSMeasureMode:"), value) } -// The date on which the item is due. [Full Topic] +// Indicates the role of the content creator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616641-duedate?language=objc -func (s_ SearchableItemAttributeSet) DueDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("dueDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616105-role?language=objc +func (s_ SearchableItemAttributeSet) Role() string { + rv := objc.Call[string](s_, objc.Sel("role")) return rv } -// The date on which the item is due. [Full Topic] +// Indicates the role of the content creator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616641-duedate?language=objc -func (s_ SearchableItemAttributeSet) SetDueDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setDueDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616105-role?language=objc +func (s_ SearchableItemAttributeSet) SetRole(value string) { + objc.Call[objc.Void](s_, objc.Sel("setRole:"), value) } -// An array of email addresses associated with the recipient. [Full Topic] +// A value that indicates whether the item contains information sufficient to provide navigation to the location it represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621580-recipientemailaddresses?language=objc -func (s_ SearchableItemAttributeSet) RecipientEmailAddresses() []string { - rv := objc.Call[[]string](s_, objc.Sel("recipientEmailAddresses")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621564-supportsnavigation?language=objc +func (s_ SearchableItemAttributeSet) SupportsNavigation() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("supportsNavigation")) return rv } -// An array of email addresses associated with the recipient. [Full Topic] +// A value that indicates whether the item contains information sufficient to provide navigation to the location it represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621580-recipientemailaddresses?language=objc -func (s_ SearchableItemAttributeSet) SetRecipientEmailAddresses(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setRecipientEmailAddresses:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621564-supportsnavigation?language=objc +func (s_ SearchableItemAttributeSet) SetSupportsNavigation(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setSupportsNavigation:"), value) } -// A localized string that contains the name of the item, suitable to display in the user interface. [Full Topic] +// The province or state of origin according to guidelines the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621676-displayname?language=objc -func (s_ SearchableItemAttributeSet) DisplayName() string { - rv := objc.Call[string](s_, objc.Sel("displayName")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620570-stateorprovince?language=objc +func (s_ SearchableItemAttributeSet) StateOrProvince() string { + rv := objc.Call[string](s_, objc.Sel("stateOrProvince")) return rv } -// A localized string that contains the name of the item, suitable to display in the user interface. [Full Topic] +// The province or state of origin according to guidelines the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621676-displayname?language=objc -func (s_ SearchableItemAttributeSet) SetDisplayName(value string) { - objc.Call[objc.Void](s_, objc.Sel("setDisplayName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620570-stateorprovince?language=objc +func (s_ SearchableItemAttributeSet) SetStateOrProvince(value string) { + objc.Call[objc.Void](s_, objc.Sel("setStateOrProvince:"), value) } -// The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m. [Full Topic] +// An array of CSPerson objects representing the content of the Cc: field in an email message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616020-keysignature?language=objc -func (s_ SearchableItemAttributeSet) KeySignature() string { - rv := objc.Call[string](s_, objc.Sel("keySignature")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621664-additionalrecipients?language=objc +func (s_ SearchableItemAttributeSet) AdditionalRecipients() []Person { + rv := objc.Call[[]Person](s_, objc.Sel("additionalRecipients")) return rv } -// The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m. [Full Topic] +// An array of CSPerson objects representing the content of the Cc: field in an email message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616020-keysignature?language=objc -func (s_ SearchableItemAttributeSet) SetKeySignature(value string) { - objc.Call[objc.Void](s_, objc.Sel("setKeySignature:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621664-additionalrecipients?language=objc +func (s_ SearchableItemAttributeSet) SetAdditionalRecipients(value []IPerson) { + objc.Call[objc.Void](s_, objc.Sel("setAdditionalRecipients:"), value) } -// The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical. [Full Topic] +// An array of localized strings that represent alternate display names for the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616070-musicalgenre?language=objc -func (s_ SearchableItemAttributeSet) MusicalGenre() string { - rv := objc.Call[string](s_, objc.Sel("musicalGenre")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621662-alternatenames?language=objc +func (s_ SearchableItemAttributeSet) AlternateNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("alternateNames")) return rv } -// The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical. [Full Topic] +// An array of localized strings that represent alternate display names for the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616070-musicalgenre?language=objc -func (s_ SearchableItemAttributeSet) SetMusicalGenre(value string) { - objc.Call[objc.Void](s_, objc.Sel("setMusicalGenre:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621662-alternatenames?language=objc +func (s_ SearchableItemAttributeSet) SetAlternateNames(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setAlternateNames:"), value) } -// The time that the lens was open during exposure, in seconds. [Full Topic] +// An array of identifiers that corresponds to file representations the delegate provides. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621532-exposuretime?language=objc -func (s_ SearchableItemAttributeSet) ExposureTime() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("exposureTime")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2867861-providerfiletypeidentifiers?language=objc +func (s_ SearchableItemAttributeSet) ProviderFileTypeIdentifiers() []string { + rv := objc.Call[[]string](s_, objc.Sel("providerFileTypeIdentifiers")) return rv } -// The time that the lens was open during exposure, in seconds. [Full Topic] +// An array of identifiers that corresponds to file representations the delegate provides. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621532-exposuretime?language=objc -func (s_ SearchableItemAttributeSet) SetExposureTime(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setExposureTime:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2867861-providerfiletypeidentifiers?language=objc +func (s_ SearchableItemAttributeSet) SetProviderFileTypeIdentifiers(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setProviderFileTypeIdentifiers:"), value) } -// The distance to the destination point. [Full Topic] +// The number of channels in the audio data that the file contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620582-gpsdestdistance?language=objc -func (s_ SearchableItemAttributeSet) GPSDestDistance() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestDistance")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616072-audiochannelcount?language=objc +func (s_ SearchableItemAttributeSet) AudioChannelCount() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("audioChannelCount")) return rv } -// The distance to the destination point. [Full Topic] +// The number of channels in the audio data that the file contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620582-gpsdestdistance?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDestDistance(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDestDistance:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616072-audiochannelcount?language=objc +func (s_ SearchableItemAttributeSet) SetAudioChannelCount(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setAudioChannelCount:"), value) } -// The audio bit rate of the media. [Full Topic] +// The user-supplied rating of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616103-audiobitrate?language=objc -func (s_ SearchableItemAttributeSet) AudioBitRate() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("audioBitRate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616011-rating?language=objc +func (s_ SearchableItemAttributeSet) Rating() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("rating")) return rv } -// The audio bit rate of the media. [Full Topic] +// The user-supplied rating of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616103-audiobitrate?language=objc -func (s_ SearchableItemAttributeSet) SetAudioBitRate(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setAudioBitRate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616011-rating?language=objc +func (s_ SearchableItemAttributeSet) SetRating(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setRating:"), value) } -// The width of the document page, in points (72 points per inch). [Full Topic] +// A value that indicates if the content is prepared for streaming. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621670-pagewidth?language=objc -func (s_ SearchableItemAttributeSet) PageWidth() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("pageWidth")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616054-streamable?language=objc +func (s_ SearchableItemAttributeSet) IsStreamable() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isStreamable")) return rv } -// The width of the document page, in points (72 points per inch). [Full Topic] +// A value that indicates if the content is prepared for streaming. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621670-pagewidth?language=objc -func (s_ SearchableItemAttributeSet) SetPageWidth(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setPageWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616054-streamable?language=objc +func (s_ SearchableItemAttributeSet) SetStreamable(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setStreamable:"), value) } -// The number of channels in the audio data that the file contains. [Full Topic] +// The track number of a song or audio composition when part of an album. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616072-audiochannelcount?language=objc -func (s_ SearchableItemAttributeSet) AudioChannelCount() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("audioChannelCount")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616095-audiotracknumber?language=objc +func (s_ SearchableItemAttributeSet) AudioTrackNumber() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("audioTrackNumber")) return rv } -// The number of channels in the audio data that the file contains. [Full Topic] +// The track number of a song or audio composition when part of an album. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616072-audiochannelcount?language=objc -func (s_ SearchableItemAttributeSet) SetAudioChannelCount(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setAudioChannelCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616095-audiotracknumber?language=objc +func (s_ SearchableItemAttributeSet) SetAudioTrackNumber(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setAudioTrackNumber:"), value) } -// A value that indicates if the camera used red-eye reduction when capturing the image. [Full Topic] +// An attribute type that identifies a custom hierarchy of types to describe the attributes of your item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621520-redeyeon?language=objc -func (s_ SearchableItemAttributeSet) IsRedEyeOn() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("isRedEyeOn")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621660-contenttypetree?language=objc +func (s_ SearchableItemAttributeSet) ContentTypeTree() []string { + rv := objc.Call[[]string](s_, objc.Sel("contentTypeTree")) return rv } -// A value that indicates if the camera used red-eye reduction when capturing the image. [Full Topic] +// An attribute type that identifies a custom hierarchy of types to describe the attributes of your item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621520-redeyeon?language=objc -func (s_ SearchableItemAttributeSet) SetRedEyeOn(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setRedEyeOn:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621660-contenttypetree?language=objc +func (s_ SearchableItemAttributeSet) SetContentTypeTree(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setContentTypeTree:"), value) } -// The composer of the song or audio composition that the audio file contains. [Full Topic] +// The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616074-composer?language=objc -func (s_ SearchableItemAttributeSet) Composer() string { - rv := objc.Call[string](s_, objc.Sel("composer")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616070-musicalgenre?language=objc +func (s_ SearchableItemAttributeSet) MusicalGenre() string { + rv := objc.Call[string](s_, objc.Sel("musicalGenre")) return rv } -// The composer of the song or audio composition that the audio file contains. [Full Topic] +// The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616074-composer?language=objc -func (s_ SearchableItemAttributeSet) SetComposer(value string) { - objc.Call[objc.Void](s_, objc.Sel("setComposer:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616070-musicalgenre?language=objc +func (s_ SearchableItemAttributeSet) SetMusicalGenre(value string) { + objc.Call[objc.Void](s_, objc.Sel("setMusicalGenre:"), value) } -// The direction of the item's image in degrees from true north. [Full Topic] +// The status of the GPS receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620576-imagedirection?language=objc -func (s_ SearchableItemAttributeSet) ImageDirection() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("imageDirection")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620589-gpsstatus?language=objc +func (s_ SearchableItemAttributeSet) GPSStatus() string { + rv := objc.Call[string](s_, objc.Sel("GPSStatus")) return rv } -// The direction of the item's image in degrees from true north. [Full Topic] +// The status of the GPS receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620576-imagedirection?language=objc -func (s_ SearchableItemAttributeSet) SetImageDirection(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setImageDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620589-gpsstatus?language=objc +func (s_ SearchableItemAttributeSet) SetGPSStatus(value string) { + objc.Call[objc.Void](s_, objc.Sel("setGPSStatus:"), value) } -// The direction of travel of the item in degrees from true north. [Full Topic] +// The genre of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620588-gpstrack?language=objc -func (s_ SearchableItemAttributeSet) GPSTrack() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("GPSTrack")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616031-genre?language=objc +func (s_ SearchableItemAttributeSet) Genre() string { + rv := objc.Call[string](s_, objc.Sel("genre")) return rv } -// The direction of travel of the item in degrees from true north. [Full Topic] +// The genre of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620588-gpstrack?language=objc -func (s_ SearchableItemAttributeSet) SetGPSTrack(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGPSTrack:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616031-genre?language=objc +func (s_ SearchableItemAttributeSet) SetGenre(value string) { + objc.Call[objc.Void](s_, objc.Sel("setGenre:"), value) } -// Instructions that concern the use of the item, such as an embargo or warning. [Full Topic] +// The security method (a type of encryption) that protects the document file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620590-instructions?language=objc -func (s_ SearchableItemAttributeSet) Instructions() string { - rv := objc.Call[string](s_, objc.Sel("instructions")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621658-securitymethod?language=objc +func (s_ SearchableItemAttributeSet) SecurityMethod() string { + rv := objc.Call[string](s_, objc.Sel("securityMethod")) return rv } -// Instructions that concern the use of the item, such as an embargo or warning. [Full Topic] +// The security method (a type of encryption) that protects the document file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620590-instructions?language=objc -func (s_ SearchableItemAttributeSet) SetInstructions(value string) { - objc.Call[objc.Void](s_, objc.Sel("setInstructions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621658-securitymethod?language=objc +func (s_ SearchableItemAttributeSet) SetSecurityMethod(value string) { + objc.Call[objc.Void](s_, objc.Sel("setSecurityMethod:"), value) } -// An array of the canonical handles for the account with which the message is associated. [Full Topic] +// The bearing to the destination point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621567-accounthandles?language=objc -func (s_ SearchableItemAttributeSet) AccountHandles() []string { - rv := objc.Call[[]string](s_, objc.Sel("accountHandles")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620577-gpsdestbearing?language=objc +func (s_ SearchableItemAttributeSet) GPSDestBearing() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestBearing")) return rv } -// An array of the canonical handles for the account with which the message is associated. [Full Topic] +// The bearing to the destination point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621567-accounthandles?language=objc -func (s_ SearchableItemAttributeSet) SetAccountHandles(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setAccountHandles:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620577-gpsdestbearing?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDestBearing(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDestBearing:"), value) } -// An array of font names the document uses. [Full Topic] +// The manufacturer of the device that captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621566-fontnames?language=objc -func (s_ SearchableItemAttributeSet) FontNames() []string { - rv := objc.Call[[]string](s_, objc.Sel("fontNames")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621542-acquisitionmake?language=objc +func (s_ SearchableItemAttributeSet) AcquisitionMake() string { + rv := objc.Call[string](s_, objc.Sel("acquisitionMake")) return rv } -// An array of font names the document uses. [Full Topic] +// The manufacturer of the device that captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621566-fontnames?language=objc -func (s_ SearchableItemAttributeSet) SetFontNames(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setFontNames:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621542-acquisitionmake?language=objc +func (s_ SearchableItemAttributeSet) SetAcquisitionMake(value string) { + objc.Call[objc.Void](s_, objc.Sel("setAcquisitionMake:"), value) } -// The ISO speed setting at the time the camera captured the image. [Full Topic] +// A value that indicates the user selected the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621548-isospeed?language=objc -func (s_ SearchableItemAttributeSet) ISOSpeed() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("ISOSpeed")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887562-usercurated?language=objc +func (s_ SearchableItemAttributeSet) IsUserCurated() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isUserCurated")) return rv } -// The ISO speed setting at the time the camera captured the image. [Full Topic] +// A value that indicates the user selected the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621548-isospeed?language=objc -func (s_ SearchableItemAttributeSet) SetISOSpeed(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setISOSpeed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887562-usercurated?language=objc +func (s_ SearchableItemAttributeSet) SetUserCurated(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setUserCurated:"), value) } -// The city of the item’s origin according to guidelines that the provider establishes. [Full Topic] +// The codecs used to encode/decode the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620594-city?language=objc -func (s_ SearchableItemAttributeSet) City() string { - rv := objc.Call[string](s_, objc.Sel("city")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616047-codecs?language=objc +func (s_ SearchableItemAttributeSet) Codecs() []string { + rv := objc.Call[[]string](s_, objc.Sel("codecs")) return rv } -// The city of the item’s origin according to guidelines that the provider establishes. [Full Topic] +// The codecs used to encode/decode the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620594-city?language=objc -func (s_ SearchableItemAttributeSet) SetCity(value string) { - objc.Call[objc.Void](s_, objc.Sel("setCity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616047-codecs?language=objc +func (s_ SearchableItemAttributeSet) SetCodecs(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setCodecs:"), value) } -// The white balance setting when the camera captured the image. [Full Topic] +// The delivery type of the file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621539-whitebalance?language=objc -func (s_ SearchableItemAttributeSet) WhiteBalance() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("whiteBalance")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616062-deliverytype?language=objc +func (s_ SearchableItemAttributeSet) DeliveryType() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("deliveryType")) return rv } -// The white balance setting when the camera captured the image. [Full Topic] +// The delivery type of the file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621539-whitebalance?language=objc -func (s_ SearchableItemAttributeSet) SetWhiteBalance(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setWhiteBalance:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616062-deliverytype?language=objc +func (s_ SearchableItemAttributeSet) SetDeliveryType(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setDeliveryType:"), value) } -// The unique identifier for the account with which the message is associated, if any. [Full Topic] +// The direction of the item's image in degrees from true north. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621573-accountidentifier?language=objc -func (s_ SearchableItemAttributeSet) AccountIdentifier() string { - rv := objc.Call[string](s_, objc.Sel("accountIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620576-imagedirection?language=objc +func (s_ SearchableItemAttributeSet) ImageDirection() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("imageDirection")) return rv } -// The unique identifier for the account with which the message is associated, if any. [Full Topic] +// The direction of the item's image in degrees from true north. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621573-accountidentifier?language=objc -func (s_ SearchableItemAttributeSet) SetAccountIdentifier(value string) { - objc.Call[objc.Void](s_, objc.Sel("setAccountIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620576-imagedirection?language=objc +func (s_ SearchableItemAttributeSet) SetImageDirection(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setImageDirection:"), value) } -// The number of pages in the document. [Full Topic] +// The artist associated with the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621627-pagecount?language=objc -func (s_ SearchableItemAttributeSet) PageCount() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("pageCount")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616077-artist?language=objc +func (s_ SearchableItemAttributeSet) Artist() string { + rv := objc.Call[string](s_, objc.Sel("artist")) return rv } -// The number of pages in the document. [Full Topic] +// The artist associated with the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621627-pagecount?language=objc -func (s_ SearchableItemAttributeSet) SetPageCount(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setPageCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616077-artist?language=objc +func (s_ SearchableItemAttributeSet) SetArtist(value string) { + objc.Call[objc.Void](s_, objc.Sel("setArtist:"), value) } -// The total number of pixels in the image. [Full Topic] +// The city of the item’s origin according to guidelines that the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621517-pixelcount?language=objc -func (s_ SearchableItemAttributeSet) PixelCount() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("pixelCount")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620594-city?language=objc +func (s_ SearchableItemAttributeSet) City() string { + rv := objc.Call[string](s_, objc.Sel("city")) return rv } -// The total number of pixels in the image. [Full Topic] +// The city of the item’s origin according to guidelines that the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621517-pixelcount?language=objc -func (s_ SearchableItemAttributeSet) SetPixelCount(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setPixelCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620594-city?language=objc +func (s_ SearchableItemAttributeSet) SetCity(value string) { + objc.Call[objc.Void](s_, objc.Sel("setCity:"), value) } -// The latitude of the item, in degrees north of the equator, expressed using the WGS84 datum. [Full Topic] +// The time that the lens was open during exposure, in a string, such as "1/250 seconds". [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620586-latitude?language=objc -func (s_ SearchableItemAttributeSet) Latitude() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("latitude")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621521-exposuretimestring?language=objc +func (s_ SearchableItemAttributeSet) ExposureTimeString() string { + rv := objc.Call[string](s_, objc.Sel("exposureTimeString")) return rv } -// The latitude of the item, in degrees north of the equator, expressed using the WGS84 datum. [Full Topic] +// The time that the lens was open during exposure, in a string, such as "1/250 seconds". [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620586-latitude?language=objc -func (s_ SearchableItemAttributeSet) SetLatitude(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setLatitude:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621521-exposuretimestring?language=objc +func (s_ SearchableItemAttributeSet) SetExposureTimeString(value string) { + objc.Call[objc.Void](s_, objc.Sel("setExposureTimeString:"), value) } -// An array of addresses associated with the recipients of the message. [Full Topic] +// An array of identifiers that corresponds to in-place file representations the delegate provides. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621648-recipientaddresses?language=objc -func (s_ SearchableItemAttributeSet) RecipientAddresses() []string { - rv := objc.Call[[]string](s_, objc.Sel("recipientAddresses")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2908990-providerinplacefiletypeidentifie?language=objc +func (s_ SearchableItemAttributeSet) ProviderInPlaceFileTypeIdentifiers() []string { + rv := objc.Call[[]string](s_, objc.Sel("providerInPlaceFileTypeIdentifiers")) return rv } -// An array of addresses associated with the recipients of the message. [Full Topic] +// An array of identifiers that corresponds to in-place file representations the delegate provides. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621648-recipientaddresses?language=objc -func (s_ SearchableItemAttributeSet) SetRecipientAddresses(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setRecipientAddresses:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2908990-providerinplacefiletypeidentifie?language=objc +func (s_ SearchableItemAttributeSet) SetProviderInPlaceFileTypeIdentifiers(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setProviderInPlaceFileTypeIdentifiers:"), value) } -// The sample rate of the audio data the file contains, as a float value representing Hz (audio frames per second), such as 44100.0 or 22254.54. [Full Topic] +// The title of the container to which the item belongs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616008-audiosamplerate?language=objc -func (s_ SearchableItemAttributeSet) AudioSampleRate() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("audioSampleRate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621661-containertitle?language=objc +func (s_ SearchableItemAttributeSet) ContainerTitle() string { + rv := objc.Call[string](s_, objc.Sel("containerTitle")) return rv } -// The sample rate of the audio data the file contains, as a float value representing Hz (audio frames per second), such as 44100.0 or 22254.54. [Full Topic] +// The title of the container to which the item belongs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616008-audiosamplerate?language=objc -func (s_ SearchableItemAttributeSet) SetAudioSampleRate(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setAudioSampleRate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621661-containertitle?language=objc +func (s_ SearchableItemAttributeSet) SetContainerTitle(value string) { + objc.Call[objc.Void](s_, objc.Sel("setContainerTitle:"), value) } -// The status of the GPS receiver. [Full Topic] +// The white balance setting when the camera captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620589-gpsstatus?language=objc -func (s_ SearchableItemAttributeSet) GPSStatus() string { - rv := objc.Call[string](s_, objc.Sel("GPSStatus")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621539-whitebalance?language=objc +func (s_ SearchableItemAttributeSet) WhiteBalance() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("whiteBalance")) return rv } -// The status of the GPS receiver. [Full Topic] +// The white balance setting when the camera captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620589-gpsstatus?language=objc -func (s_ SearchableItemAttributeSet) SetGPSStatus(value string) { - objc.Call[objc.Void](s_, objc.Sel("setGPSStatus:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621539-whitebalance?language=objc +func (s_ SearchableItemAttributeSet) SetWhiteBalance(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setWhiteBalance:"), value) } -// The GPS dilution of precision value. [Full Topic] +// The producer of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620593-gpsdop?language=objc -func (s_ SearchableItemAttributeSet) GPSDOP() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDOP")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616092-producer?language=objc +func (s_ SearchableItemAttributeSet) Producer() string { + rv := objc.Call[string](s_, objc.Sel("producer")) return rv } -// The GPS dilution of precision value. [Full Topic] +// The producer of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620593-gpsdop?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDOP(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDOP:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616092-producer?language=objc +func (s_ SearchableItemAttributeSet) SetProducer(value string) { + objc.Call[objc.Void](s_, objc.Sel("setProducer:"), value) } -// The altitude of the item in meters above sea level, expressed using the WGS84 datum. [Full Topic] +// A list of people, organizations, or services that made contributions to the media content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620579-altitude?language=objc -func (s_ SearchableItemAttributeSet) Altitude() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("altitude")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616060-contributors?language=objc +func (s_ SearchableItemAttributeSet) Contributors() []string { + rv := objc.Call[[]string](s_, objc.Sel("contributors")) return rv } -// The altitude of the item in meters above sea level, expressed using the WGS84 datum. [Full Topic] +// A list of people, organizations, or services that made contributions to the media content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620579-altitude?language=objc -func (s_ SearchableItemAttributeSet) SetAltitude(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setAltitude:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616060-contributors?language=objc +func (s_ SearchableItemAttributeSet) SetContributors(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setContributors:"), value) } -// A list of contacts who are associated with the content in some way, not including the author. [Full Topic] +// A comment related to the media file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616014-contactkeywords?language=objc -func (s_ SearchableItemAttributeSet) ContactKeywords() []string { - rv := objc.Call[[]string](s_, objc.Sel("contactKeywords")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616083-comment?language=objc +func (s_ SearchableItemAttributeSet) Comment() string { + rv := objc.Call[string](s_, objc.Sel("comment")) return rv } -// A list of contacts who are associated with the content in some way, not including the author. [Full Topic] +// A comment related to the media file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616014-contactkeywords?language=objc -func (s_ SearchableItemAttributeSet) SetContactKeywords(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setContactKeywords:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616083-comment?language=objc +func (s_ SearchableItemAttributeSet) SetComment(value string) { + objc.Call[objc.Void](s_, objc.Sel("setComment:"), value) } -// Information about the media. [Full Topic] +// The direction of travel of the item in degrees from true north. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616101-information?language=objc -func (s_ SearchableItemAttributeSet) Information() string { - rv := objc.Call[string](s_, objc.Sel("information")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620588-gpstrack?language=objc +func (s_ SearchableItemAttributeSet) GPSTrack() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSTrack")) return rv } -// Information about the media. [Full Topic] +// The direction of travel of the item in degrees from true north. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616101-information?language=objc -func (s_ SearchableItemAttributeSet) SetInformation(value string) { - objc.Call[objc.Void](s_, objc.Sel("setInformation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620588-gpstrack?language=objc +func (s_ SearchableItemAttributeSet) SetGPSTrack(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSTrack:"), value) } -// The manufacturer of the device that captured the image. [Full Topic] +// A description of the item’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621542-acquisitionmake?language=objc -func (s_ SearchableItemAttributeSet) AcquisitionMake() string { - rv := objc.Call[string](s_, objc.Sel("acquisitionMake")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621584-contentdescription?language=objc +func (s_ SearchableItemAttributeSet) ContentDescription() string { + rv := objc.Call[string](s_, objc.Sel("contentDescription")) return rv } -// The manufacturer of the device that captured the image. [Full Topic] +// A description of the item’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621542-acquisitionmake?language=objc -func (s_ SearchableItemAttributeSet) SetAcquisitionMake(value string) { - objc.Call[objc.Void](s_, objc.Sel("setAcquisitionMake:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621584-contentdescription?language=objc +func (s_ SearchableItemAttributeSet) SetContentDescription(value string) { + objc.Call[objc.Void](s_, objc.Sel("setContentDescription:"), value) } -// The security method (a type of encryption) that protects the document file. [Full Topic] +// A list of companies or organizations that created the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621658-securitymethod?language=objc -func (s_ SearchableItemAttributeSet) SecurityMethod() string { - rv := objc.Call[string](s_, objc.Sel("securityMethod")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616026-organizations?language=objc +func (s_ SearchableItemAttributeSet) Organizations() []string { + rv := objc.Call[[]string](s_, objc.Sel("organizations")) return rv } -// The security method (a type of encryption) that protects the document file. [Full Topic] +// A list of companies or organizations that created the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621658-securitymethod?language=objc -func (s_ SearchableItemAttributeSet) SetSecurityMethod(value string) { - objc.Call[objc.Void](s_, objc.Sel("setSecurityMethod:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616026-organizations?language=objc +func (s_ SearchableItemAttributeSet) SetOrganizations(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setOrganizations:"), value) } -// The bearing to the destination point. [Full Topic] +// An array of CSPerson objects representing the content of the From: field in an item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620577-gpsdestbearing?language=objc -func (s_ SearchableItemAttributeSet) GPSDestBearing() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestBearing")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621608-authors?language=objc +func (s_ SearchableItemAttributeSet) Authors() []Person { + rv := objc.Call[[]Person](s_, objc.Sel("authors")) return rv } -// The bearing to the destination point. [Full Topic] +// An array of CSPerson objects representing the content of the From: field in an item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620577-gpsdestbearing?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDestBearing(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDestBearing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621608-authors?language=objc +func (s_ SearchableItemAttributeSet) SetAuthors(value []IPerson) { + objc.Call[objc.Void](s_, objc.Sel("setAuthors:"), value) } -// A description of the item’s content. [Full Topic] +// A list of performers in the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621584-contentdescription?language=objc -func (s_ SearchableItemAttributeSet) ContentDescription() string { - rv := objc.Call[string](s_, objc.Sel("contentDescription")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616043-performers?language=objc +func (s_ SearchableItemAttributeSet) Performers() []string { + rv := objc.Call[[]string](s_, objc.Sel("performers")) return rv } -// A description of the item’s content. [Full Topic] +// A list of performers in the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621584-contentdescription?language=objc -func (s_ SearchableItemAttributeSet) SetContentDescription(value string) { - objc.Call[objc.Void](s_, objc.Sel("setContentDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616043-performers?language=objc +func (s_ SearchableItemAttributeSet) SetPerformers(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setPerformers:"), value) } -// A publishable string that provides a synopsis of the contents of the item. [Full Topic] +// The speed of the item, in kilometers per hour. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620585-headline?language=objc -func (s_ SearchableItemAttributeSet) Headline() string { - rv := objc.Call[string](s_, objc.Sel("headline")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620591-speed?language=objc +func (s_ SearchableItemAttributeSet) Speed() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("speed")) return rv } -// A publishable string that provides a synopsis of the contents of the item. [Full Topic] +// The speed of the item, in kilometers per hour. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620585-headline?language=objc -func (s_ SearchableItemAttributeSet) SetHeadline(value string) { - objc.Call[objc.Void](s_, objc.Sel("setHeadline:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620591-speed?language=objc +func (s_ SearchableItemAttributeSet) SetSpeed(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setSpeed:"), value) } -// The textual content of the message. [Full Topic] +// Instructions that concern the use of the item, such as an embargo or warning. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621674-textcontent?language=objc -func (s_ SearchableItemAttributeSet) TextContent() string { - rv := objc.Call[string](s_, objc.Sel("textContent")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620590-instructions?language=objc +func (s_ SearchableItemAttributeSet) Instructions() string { + rv := objc.Call[string](s_, objc.Sel("instructions")) return rv } -// The textual content of the message. [Full Topic] +// Instructions that concern the use of the item, such as an embargo or warning. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621674-textcontent?language=objc -func (s_ SearchableItemAttributeSet) SetTextContent(value string) { - objc.Call[objc.Void](s_, objc.Sel("setTextContent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620590-instructions?language=objc +func (s_ SearchableItemAttributeSet) SetInstructions(value string) { + objc.Call[objc.Void](s_, objc.Sel("setInstructions:"), value) } -// The media types present in the content. [Full Topic] +// The number of pages in the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616064-mediatypes?language=objc -func (s_ SearchableItemAttributeSet) MediaTypes() []string { - rv := objc.Call[[]string](s_, objc.Sel("mediaTypes")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621627-pagecount?language=objc +func (s_ SearchableItemAttributeSet) PageCount() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pageCount")) return rv } -// The media types present in the content. [Full Topic] +// The number of pages in the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616064-mediatypes?language=objc -func (s_ SearchableItemAttributeSet) SetMediaTypes(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setMediaTypes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621627-pagecount?language=objc +func (s_ SearchableItemAttributeSet) SetPageCount(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPageCount:"), value) } -// The title of the item. [Full Topic] +// The latitude of the destination point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621615-title?language=objc -func (s_ SearchableItemAttributeSet) Title() string { - rv := objc.Call[string](s_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620572-gpsdestlatitude?language=objc +func (s_ SearchableItemAttributeSet) GPSDestLatitude() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestLatitude")) return rv } -// The title of the item. [Full Topic] +// The latitude of the destination point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621615-title?language=objc -func (s_ SearchableItemAttributeSet) SetTitle(value string) { - objc.Call[objc.Void](s_, objc.Sel("setTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620572-gpsdestlatitude?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDestLatitude(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDestLatitude:"), value) } -// An array of addresses associated with the author of the message. [Full Topic] +// The focal length of the lens, divided by the diameter of the aperture when the camera captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621671-authoraddresses?language=objc -func (s_ SearchableItemAttributeSet) AuthorAddresses() []string { - rv := objc.Call[[]string](s_, objc.Sel("authorAddresses")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621549-fnumber?language=objc +func (s_ SearchableItemAttributeSet) FNumber() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("fNumber")) return rv } -// An array of addresses associated with the author of the message. [Full Topic] +// The focal length of the lens, divided by the diameter of the aperture when the camera captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621671-authoraddresses?language=objc -func (s_ SearchableItemAttributeSet) SetAuthorAddresses(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setAuthorAddresses:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621549-fnumber?language=objc +func (s_ SearchableItemAttributeSet) SetFNumber(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setFNumber:"), value) } -// The time signature of the musical composition that the audio or MIDI file contains, in a string, such as "4/4" or "7/8". [Full Topic] +// The name of the director of the media (for example, a movie director). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616079-timesignature?language=objc -func (s_ SearchableItemAttributeSet) TimeSignature() string { - rv := objc.Call[string](s_, objc.Sel("timeSignature")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616009-director?language=objc +func (s_ SearchableItemAttributeSet) Director() string { + rv := objc.Call[string](s_, objc.Sel("director")) return rv } -// The time signature of the musical composition that the audio or MIDI file contains, in a string, such as "4/4" or "7/8". [Full Topic] +// The name of the director of the media (for example, a movie director). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616079-timesignature?language=objc -func (s_ SearchableItemAttributeSet) SetTimeSignature(value string) { - objc.Call[objc.Void](s_, objc.Sel("setTimeSignature:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616009-director?language=objc +func (s_ SearchableItemAttributeSet) SetDirector(value string) { + objc.Call[objc.Void](s_, objc.Sel("setDirector:"), value) } -// The differential correction applied to the GPS receiver. [Full Topic] +// Information about the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620592-gpsdifferental?language=objc -func (s_ SearchableItemAttributeSet) GPSDifferental() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDifferental")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616101-information?language=objc +func (s_ SearchableItemAttributeSet) Information() string { + rv := objc.Call[string](s_, objc.Sel("information")) return rv } -// The differential correction applied to the GPS receiver. [Full Topic] +// Information about the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620592-gpsdifferental?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDifferental(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDifferental:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616101-information?language=objc +func (s_ SearchableItemAttributeSet) SetInformation(value string) { + objc.Call[objc.Void](s_, objc.Sel("setInformation:"), value) } -// The track number of a song or audio composition when part of an album. [Full Topic] +// The date and time related to the GPS value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616095-audiotracknumber?language=objc -func (s_ SearchableItemAttributeSet) AudioTrackNumber() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("audioTrackNumber")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620587-gpsdatestamp?language=objc +func (s_ SearchableItemAttributeSet) GPSDateStamp() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("GPSDateStamp")) return rv } -// The track number of a song or audio composition when part of an album. [Full Topic] +// The date and time related to the GPS value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616095-audiotracknumber?language=objc -func (s_ SearchableItemAttributeSet) SetAudioTrackNumber(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setAudioTrackNumber:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620587-gpsdatestamp?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDateStamp(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDateStamp:"), value) } -// A list of editors who have worked on the file. [Full Topic] +// The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616088-editors?language=objc -func (s_ SearchableItemAttributeSet) Editors() []string { - rv := objc.Call[[]string](s_, objc.Sel("editors")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621541-colorspace?language=objc +func (s_ SearchableItemAttributeSet) ColorSpace() string { + rv := objc.Call[string](s_, objc.Sel("colorSpace")) return rv } -// A list of editors who have worked on the file. [Full Topic] +// The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616088-editors?language=objc -func (s_ SearchableItemAttributeSet) SetEditors(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setEditors:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621541-colorspace?language=objc +func (s_ SearchableItemAttributeSet) SetColorSpace(value string) { + objc.Call[objc.Void](s_, objc.Sel("setColorSpace:"), value) } -// The order of the item within the container. [Full Topic] +// The total bit rate of the media, combining audio and video. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621586-containerorder?language=objc -func (s_ SearchableItemAttributeSet) ContainerOrder() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("containerOrder")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616058-totalbitrate?language=objc +func (s_ SearchableItemAttributeSet) TotalBitRate() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("totalBitRate")) return rv } -// The order of the item within the container. [Full Topic] +// The total bit rate of the media, combining audio and video. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621586-containerorder?language=objc -func (s_ SearchableItemAttributeSet) SetContainerOrder(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setContainerOrder:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616058-totalbitrate?language=objc +func (s_ SearchableItemAttributeSet) SetTotalBitRate(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setTotalBitRate:"), value) } -// The artist associated with the media. [Full Topic] +// An array of the canonical handles for the account with which the message is associated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616077-artist?language=objc -func (s_ SearchableItemAttributeSet) Artist() string { - rv := objc.Call[string](s_, objc.Sel("artist")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621567-accounthandles?language=objc +func (s_ SearchableItemAttributeSet) AccountHandles() []string { + rv := objc.Call[[]string](s_, objc.Sel("accountHandles")) return rv } -// The artist associated with the media. [Full Topic] +// An array of the canonical handles for the account with which the message is associated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616077-artist?language=objc -func (s_ SearchableItemAttributeSet) SetArtist(value string) { - objc.Call[objc.Void](s_, objc.Sel("setArtist:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621567-accounthandles?language=objc +func (s_ SearchableItemAttributeSet) SetAccountHandles(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setAccountHandles:"), value) } -// Indicates the role of the content creator. [Full Topic] +// The model of the device that captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616105-role?language=objc -func (s_ SearchableItemAttributeSet) Role() string { - rv := objc.Call[string](s_, objc.Sel("role")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621523-acquisitionmodel?language=objc +func (s_ SearchableItemAttributeSet) AcquisitionModel() string { + rv := objc.Call[string](s_, objc.Sel("acquisitionModel")) return rv } -// Indicates the role of the content creator. [Full Topic] +// The model of the device that captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616105-role?language=objc -func (s_ SearchableItemAttributeSet) SetRole(value string) { - objc.Call[objc.Void](s_, objc.Sel("setRole:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621523-acquisitionmodel?language=objc +func (s_ SearchableItemAttributeSet) SetAcquisitionModel(value string) { + objc.Call[objc.Void](s_, objc.Sel("setAcquisitionModel:"), value) } -// The model of the lens that captured the image. [Full Topic] +// An array of mailbox identifiers associated with the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621537-lensmodel?language=objc -func (s_ SearchableItemAttributeSet) LensModel() string { - rv := objc.Call[string](s_, objc.Sel("lensModel")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621654-mailboxidentifiers?language=objc +func (s_ SearchableItemAttributeSet) MailboxIdentifiers() []string { + rv := objc.Call[[]string](s_, objc.Sel("mailboxIdentifiers")) return rv } -// The model of the lens that captured the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621537-lensmodel?language=objc -func (s_ SearchableItemAttributeSet) SetLensModel(value string) { - objc.Call[objc.Void](s_, objc.Sel("setLensModel:"), value) +// An array of mailbox identifiers associated with the message. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621654-mailboxidentifiers?language=objc +func (s_ SearchableItemAttributeSet) SetMailboxIdentifiers(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setMailboxIdentifiers:"), value) } -// The latitude of the destination point. [Full Topic] +// The ISO speed setting at the time the camera captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620572-gpsdestlatitude?language=objc -func (s_ SearchableItemAttributeSet) GPSDestLatitude() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestLatitude")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621548-isospeed?language=objc +func (s_ SearchableItemAttributeSet) ISOSpeed() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("ISOSpeed")) return rv } -// The latitude of the destination point. [Full Topic] +// The ISO speed setting at the time the camera captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620572-gpsdestlatitude?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDestLatitude(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDestLatitude:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621548-isospeed?language=objc +func (s_ SearchableItemAttributeSet) SetISOSpeed(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setISOSpeed:"), value) } -// The actual focal length of the lens, in millimeters. [Full Topic] +// The media types present in the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621533-focallength?language=objc -func (s_ SearchableItemAttributeSet) FocalLength() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("focalLength")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616064-mediatypes?language=objc +func (s_ SearchableItemAttributeSet) MediaTypes() []string { + rv := objc.Call[[]string](s_, objc.Sel("mediaTypes")) return rv } -// The actual focal length of the lens, in millimeters. [Full Topic] +// The media types present in the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621533-focallength?language=objc -func (s_ SearchableItemAttributeSet) SetFocalLength(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setFocalLength:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616064-mediatypes?language=objc +func (s_ SearchableItemAttributeSet) SetMediaTypes(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setMediaTypes:"), value) } -// An array that contains the names of the various layers in the file. [Full Topic] +// The creation date of an edited or optimized version of the song or composition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621519-layernames?language=objc -func (s_ SearchableItemAttributeSet) LayerNames() []string { - rv := objc.Call[[]string](s_, objc.Sel("layerNames")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616001-contentcreationdate?language=objc +func (s_ SearchableItemAttributeSet) ContentCreationDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("contentCreationDate")) return rv } -// An array that contains the names of the various layers in the file. [Full Topic] +// The creation date of an edited or optimized version of the song or composition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621519-layernames?language=objc -func (s_ SearchableItemAttributeSet) SetLayerNames(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setLayerNames:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616001-contentcreationdate?language=objc +func (s_ SearchableItemAttributeSet) SetContentCreationDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setContentCreationDate:"), value) } -// An array of identifiers that corresponds to file representations the delegate provides. [Full Topic] +// The postal code for the item according to guidelines the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2867861-providerfiletypeidentifiers?language=objc -func (s_ SearchableItemAttributeSet) ProviderFileTypeIdentifiers() []string { - rv := objc.Call[[]string](s_, objc.Sel("providerFileTypeIdentifiers")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649284-postalcode?language=objc +func (s_ SearchableItemAttributeSet) PostalCode() string { + rv := objc.Call[string](s_, objc.Sel("postalCode")) return rv } -// An array of identifiers that corresponds to file representations the delegate provides. [Full Topic] +// The postal code for the item according to guidelines the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2867861-providerfiletypeidentifiers?language=objc -func (s_ SearchableItemAttributeSet) SetProviderFileTypeIdentifiers(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setProviderFileTypeIdentifiers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649284-postalcode?language=objc +func (s_ SearchableItemAttributeSet) SetPostalCode(value string) { + objc.Call[objc.Void](s_, objc.Sel("setPostalCode:"), value) } -// A list of the included languages for the intellectual content of the media. [Full Topic] +// The time signature of the musical composition that the audio or MIDI file contains, in a string, such as "4/4" or "7/8". [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616068-languages?language=objc -func (s_ SearchableItemAttributeSet) Languages() []string { - rv := objc.Call[[]string](s_, objc.Sel("languages")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616079-timesignature?language=objc +func (s_ SearchableItemAttributeSet) TimeSignature() string { + rv := objc.Call[string](s_, objc.Sel("timeSignature")) return rv } -// A list of the included languages for the intellectual content of the media. [Full Topic] +// The time signature of the musical composition that the audio or MIDI file contains, in a string, such as "4/4" or "7/8". [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616068-languages?language=objc -func (s_ SearchableItemAttributeSet) SetLanguages(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setLanguages:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616079-timesignature?language=objc +func (s_ SearchableItemAttributeSet) SetTimeSignature(value string) { + objc.Call[objc.Void](s_, objc.Sel("setTimeSignature:"), value) } -// The name of the app that created the content. [Full Topic] +// The local file URL of the thumbnail image for the item when Dark Mode is active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621677-creator?language=objc -func (s_ SearchableItemAttributeSet) Creator() string { - rv := objc.Call[string](s_, objc.Sel("creator")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/3752013-darkthumbnailurl?language=objc +func (s_ SearchableItemAttributeSet) DarkThumbnailURL() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("darkThumbnailURL")) return rv } -// The name of the app that created the content. [Full Topic] +// The local file URL of the thumbnail image for the item when Dark Mode is active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621677-creator?language=objc -func (s_ SearchableItemAttributeSet) SetCreator(value string) { - objc.Call[objc.Void](s_, objc.Sel("setCreator:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/3752013-darkthumbnailurl?language=objc +func (s_ SearchableItemAttributeSet) SetDarkThumbnailURL(value foundation.IURL) { + objc.Call[objc.Void](s_, objc.Sel("setDarkThumbnailURL:"), value) } -// A list of people, organizations, services, or other entities responsible for making the media available. [Full Topic] +// An identifier that represents the domain or owner of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616003-publishers?language=objc -func (s_ SearchableItemAttributeSet) Publishers() []string { - rv := objc.Call[[]string](s_, objc.Sel("publishers")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649285-domainidentifier?language=objc +func (s_ SearchableItemAttributeSet) DomainIdentifier() string { + rv := objc.Call[string](s_, objc.Sel("domainIdentifier")) return rv } -// A list of people, organizations, services, or other entities responsible for making the media available. [Full Topic] +// An identifier that represents the domain or owner of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616003-publishers?language=objc -func (s_ SearchableItemAttributeSet) SetPublishers(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setPublishers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649285-domainidentifier?language=objc +func (s_ SearchableItemAttributeSet) SetDomainIdentifier(value string) { + objc.Call[objc.Void](s_, objc.Sel("setDomainIdentifier:"), value) } -// The uniform type identifier (UTI) of the item. [Full Topic] +// A value that indicates if the camera used a flash to capture the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621561-contenttype?language=objc -func (s_ SearchableItemAttributeSet) ContentType() string { - rv := objc.Call[string](s_, objc.Sel("contentType")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621525-flashon?language=objc +func (s_ SearchableItemAttributeSet) IsFlashOn() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isFlashOn")) return rv } -// The uniform type identifier (UTI) of the item. [Full Topic] +// A value that indicates if the camera used a flash to capture the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621561-contenttype?language=objc -func (s_ SearchableItemAttributeSet) SetContentType(value string) { - objc.Call[objc.Void](s_, objc.Sel("setContentType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621525-flashon?language=objc +func (s_ SearchableItemAttributeSet) SetFlashOn(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setFlashOn:"), value) } -// An array of phone numbers associated with the message. [Full Topic] +// A value that indicates if the media contains explicit content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621650-phonenumbers?language=objc -func (s_ SearchableItemAttributeSet) PhoneNumbers() []string { - rv := objc.Call[[]string](s_, objc.Sel("phoneNumbers")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616027-contentrating?language=objc +func (s_ SearchableItemAttributeSet) ContentRating() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("contentRating")) return rv } -// An array of phone numbers associated with the message. [Full Topic] +// A value that indicates if the media contains explicit content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621650-phonenumbers?language=objc -func (s_ SearchableItemAttributeSet) SetPhoneNumbers(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setPhoneNumbers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616027-contentrating?language=objc +func (s_ SearchableItemAttributeSet) SetContentRating(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setContentRating:"), value) } -// An array of important dates associated with the item. [Full Topic] +// The altitude of the item in meters above sea level, expressed using the WGS84 datum. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616639-importantdates?language=objc -func (s_ SearchableItemAttributeSet) ImportantDates() []foundation.Date { - rv := objc.Call[[]foundation.Date](s_, objc.Sel("importantDates")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620579-altitude?language=objc +func (s_ SearchableItemAttributeSet) Altitude() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("altitude")) return rv } -// An array of important dates associated with the item. [Full Topic] +// The altitude of the item in meters above sea level, expressed using the WGS84 datum. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616639-importantdates?language=objc -func (s_ SearchableItemAttributeSet) SetImportantDates(value []foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setImportantDates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620579-altitude?language=objc +func (s_ SearchableItemAttributeSet) SetAltitude(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setAltitude:"), value) } -// The recording date of the song or composition. [Full Topic] +// A localized string that specifies the name of a container to which the item belongs, suitable to display in the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616051-recordingdate?language=objc -func (s_ SearchableItemAttributeSet) RecordingDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("recordingDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621622-containerdisplayname?language=objc +func (s_ SearchableItemAttributeSet) ContainerDisplayName() string { + rv := objc.Call[string](s_, objc.Sel("containerDisplayName")) return rv } -// The recording date of the song or composition. [Full Topic] +// A localized string that specifies the name of a container to which the item belongs, suitable to display in the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616051-recordingdate?language=objc -func (s_ SearchableItemAttributeSet) SetRecordingDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setRecordingDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621622-containerdisplayname?language=objc +func (s_ SearchableItemAttributeSet) SetContainerDisplayName(value string) { + objc.Call[objc.Void](s_, objc.Sel("setContainerDisplayName:"), value) } // An array of identifiers that corresponds to data representations the delegate provides. [Full Topic] @@ -1941,874 +1971,844 @@ func (s_ SearchableItemAttributeSet) SetProviderDataTypeIdentifiers(value []stri objc.Call[objc.Void](s_, objc.Sel("setProviderDataTypeIdentifiers:"), value) } -// A list of companies or organizations that created the content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616026-organizations?language=objc -func (s_ SearchableItemAttributeSet) Organizations() []string { - rv := objc.Call[[]string](s_, objc.Sel("organizations")) - return rv -} - -// A list of companies or organizations that created the content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616026-organizations?language=objc -func (s_ SearchableItemAttributeSet) SetOrganizations(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setOrganizations:"), value) -} - -// The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620571-longitude?language=objc -func (s_ SearchableItemAttributeSet) Longitude() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("longitude")) - return rv -} - -// The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620571-longitude?language=objc -func (s_ SearchableItemAttributeSet) SetLongitude(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setLongitude:"), value) -} - -// The height of the document page, in points (72 points per inch). [Full Topic] +// A list of projects of which this file is a part. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621673-pageheight?language=objc -func (s_ SearchableItemAttributeSet) PageHeight() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("pageHeight")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616066-projects?language=objc +func (s_ SearchableItemAttributeSet) Projects() []string { + rv := objc.Call[[]string](s_, objc.Sel("projects")) return rv } -// The height of the document page, in points (72 points per inch). [Full Topic] +// A list of projects of which this file is a part. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621673-pageheight?language=objc -func (s_ SearchableItemAttributeSet) SetPageHeight(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setPageHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616066-projects?language=objc +func (s_ SearchableItemAttributeSet) SetProjects(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setProjects:"), value) } -// The identifier of the container to which the item belongs. [Full Topic] +// The name of the location or point of interest associated with the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621594-containeridentifier?language=objc -func (s_ SearchableItemAttributeSet) ContainerIdentifier() string { - rv := objc.Call[string](s_, objc.Sel("containerIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620584-namedlocation?language=objc +func (s_ SearchableItemAttributeSet) NamedLocation() string { + rv := objc.Call[string](s_, objc.Sel("namedLocation")) return rv } -// The identifier of the container to which the item belongs. [Full Topic] +// The name of the location or point of interest associated with the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621594-containeridentifier?language=objc -func (s_ SearchableItemAttributeSet) SetContainerIdentifier(value string) { - objc.Call[objc.Void](s_, objc.Sel("setContainerIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620584-namedlocation?language=objc +func (s_ SearchableItemAttributeSet) SetNamedLocation(value string) { + objc.Call[objc.Void](s_, objc.Sel("setNamedLocation:"), value) } -// The province or state of origin according to guidelines the provider establishes. [Full Topic] +// The most recent date on which the file was downloaded or received. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620570-stateorprovince?language=objc -func (s_ SearchableItemAttributeSet) StateOrProvince() string { - rv := objc.Call[string](s_, objc.Sel("stateOrProvince")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616035-downloadeddate?language=objc +func (s_ SearchableItemAttributeSet) DownloadedDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("downloadedDate")) return rv } -// The province or state of origin according to guidelines the provider establishes. [Full Topic] +// The most recent date on which the file was downloaded or received. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620570-stateorprovince?language=objc -func (s_ SearchableItemAttributeSet) SetStateOrProvince(value string) { - objc.Call[objc.Void](s_, objc.Sel("setStateOrProvince:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616035-downloadeddate?language=objc +func (s_ SearchableItemAttributeSet) SetDownloadedDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setDownloadedDate:"), value) } -// A value that indicates if the media contains explicit content. [Full Topic] +// An array of names representing the recipients of this message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616027-contentrating?language=objc -func (s_ SearchableItemAttributeSet) ContentRating() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("contentRating")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621667-recipientnames?language=objc +func (s_ SearchableItemAttributeSet) RecipientNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("recipientNames")) return rv } -// A value that indicates if the media contains explicit content. [Full Topic] +// An array of names representing the recipients of this message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616027-contentrating?language=objc -func (s_ SearchableItemAttributeSet) SetContentRating(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setContentRating:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621667-recipientnames?language=objc +func (s_ SearchableItemAttributeSet) SetRecipientNames(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setRecipientNames:"), value) } -// A value that indicates if the content is prepared for streaming. [Full Topic] +// An array of addresses associated with the recipients of the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616054-streamable?language=objc -func (s_ SearchableItemAttributeSet) IsStreamable() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("isStreamable")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621648-recipientaddresses?language=objc +func (s_ SearchableItemAttributeSet) RecipientAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("recipientAddresses")) return rv } -// A value that indicates if the content is prepared for streaming. [Full Topic] +// An array of addresses associated with the recipients of the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616054-streamable?language=objc -func (s_ SearchableItemAttributeSet) SetStreamable(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setStreamable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621648-recipientaddresses?language=objc +func (s_ SearchableItemAttributeSet) SetRecipientAddresses(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setRecipientAddresses:"), value) } -// The date on which the last metadata attribute was changed. [Full Topic] +// The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621657-metadatamodificationdate?language=objc -func (s_ SearchableItemAttributeSet) MetadataModificationDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("metadataModificationDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620571-longitude?language=objc +func (s_ SearchableItemAttributeSet) Longitude() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("longitude")) return rv } -// The date on which the last metadata attribute was changed. [Full Topic] +// The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621657-metadatamodificationdate?language=objc -func (s_ SearchableItemAttributeSet) SetMetadataModificationDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setMetadataModificationDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620571-longitude?language=objc +func (s_ SearchableItemAttributeSet) SetLongitude(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setLongitude:"), value) } -// The lyricist or text writer for the song or audio composition that the file contains. [Full Topic] +// An array of email addresses associated with the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616052-lyricist?language=objc -func (s_ SearchableItemAttributeSet) Lyricist() string { - rv := objc.Call[string](s_, objc.Sel("lyricist")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621572-emailaddresses?language=objc +func (s_ SearchableItemAttributeSet) EmailAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("emailAddresses")) return rv } -// The lyricist or text writer for the song or audio composition that the file contains. [Full Topic] +// An array of email addresses associated with the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616052-lyricist?language=objc -func (s_ SearchableItemAttributeSet) SetLyricist(value string) { - objc.Call[objc.Void](s_, objc.Sel("setLyricist:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621572-emailaddresses?language=objc +func (s_ SearchableItemAttributeSet) SetEmailAddresses(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setEmailAddresses:"), value) } -// The original format of the media. [Full Topic] +// An array of instant message addresses for the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616097-originalformat?language=objc -func (s_ SearchableItemAttributeSet) OriginalFormat() string { - rv := objc.Call[string](s_, objc.Sel("originalFormat")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621575-instantmessageaddresses?language=objc +func (s_ SearchableItemAttributeSet) InstantMessageAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("instantMessageAddresses")) return rv } -// The original format of the media. [Full Topic] +// An array of instant message addresses for the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616097-originalformat?language=objc -func (s_ SearchableItemAttributeSet) SetOriginalFormat(value string) { - objc.Call[objc.Void](s_, objc.Sel("setOriginalFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621575-instantmessageaddresses?language=objc +func (s_ SearchableItemAttributeSet) SetInstantMessageAddresses(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setInstantMessageAddresses:"), value) } -// The name of the director of the media (for example, a movie director). [Full Topic] +// A user-supplied play count for the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616009-director?language=objc -func (s_ SearchableItemAttributeSet) Director() string { - rv := objc.Call[string](s_, objc.Sel("director")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616041-playcount?language=objc +func (s_ SearchableItemAttributeSet) PlayCount() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("playCount")) return rv } -// The name of the director of the media (for example, a movie director). [Full Topic] +// A user-supplied play count for the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616009-director?language=objc -func (s_ SearchableItemAttributeSet) SetDirector(value string) { - objc.Call[objc.Void](s_, objc.Sel("setDirector:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616041-playcount?language=objc +func (s_ SearchableItemAttributeSet) SetPlayCount(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPlayCount:"), value) } -// The orientation of the data. [Full Topic] +// A value that indicates if the event covers an entire day. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621524-orientation?language=objc -func (s_ SearchableItemAttributeSet) Orientation() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("orientation")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616636-allday?language=objc +func (s_ SearchableItemAttributeSet) AllDay() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("allDay")) return rv } -// The orientation of the data. [Full Topic] +// A value that indicates if the event covers an entire day. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621524-orientation?language=objc -func (s_ SearchableItemAttributeSet) SetOrientation(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setOrientation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616636-allday?language=objc +func (s_ SearchableItemAttributeSet) SetAllDay(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setAllDay:"), value) } -// A list of people who are visible in an image or movie or written about in a document. [Full Topic] +// The total number of pixels in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616045-participants?language=objc -func (s_ SearchableItemAttributeSet) Participants() []string { - rv := objc.Call[[]string](s_, objc.Sel("participants")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621517-pixelcount?language=objc +func (s_ SearchableItemAttributeSet) PixelCount() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pixelCount")) return rv } -// A list of people who are visible in an image or movie or written about in a document. [Full Topic] +// The total number of pixels in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616045-participants?language=objc -func (s_ SearchableItemAttributeSet) SetParticipants(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setParticipants:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621517-pixelcount?language=objc +func (s_ SearchableItemAttributeSet) SetPixelCount(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPixelCount:"), value) } -// The complete path to the item. [Full Topic] +// The lyricist or text writer for the song or audio composition that the file contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621559-path?language=objc -func (s_ SearchableItemAttributeSet) Path() string { - rv := objc.Call[string](s_, objc.Sel("path")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616052-lyricist?language=objc +func (s_ SearchableItemAttributeSet) Lyricist() string { + rv := objc.Call[string](s_, objc.Sel("lyricist")) return rv } -// The complete path to the item. [Full Topic] +// The lyricist or text writer for the song or audio composition that the file contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621559-path?language=objc -func (s_ SearchableItemAttributeSet) SetPath(value string) { - objc.Call[objc.Void](s_, objc.Sel("setPath:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616052-lyricist?language=objc +func (s_ SearchableItemAttributeSet) SetLyricist(value string) { + objc.Call[objc.Void](s_, objc.Sel("setLyricist:"), value) } -// A dictionary that contains all the headers of the message. [Full Topic] +// The location finding method that the GPS receiver uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621568-emailheaders?language=objc -func (s_ SearchableItemAttributeSet) EmailHeaders() map[string][]objc.Object { - rv := objc.Call[map[string][]objc.Object](s_, objc.Sel("emailHeaders")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620575-gpsprocessingmethod?language=objc +func (s_ SearchableItemAttributeSet) GPSProcessingMethod() string { + rv := objc.Call[string](s_, objc.Sel("GPSProcessingMethod")) return rv } -// A dictionary that contains all the headers of the message. [Full Topic] +// The location finding method that the GPS receiver uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621568-emailheaders?language=objc -func (s_ SearchableItemAttributeSet) SetEmailHeaders(value map[string][]objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setEmailHeaders:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620575-gpsprocessingmethod?language=objc +func (s_ SearchableItemAttributeSet) SetGPSProcessingMethod(value string) { + objc.Call[objc.Void](s_, objc.Sel("setGPSProcessingMethod:"), value) } -// The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr. [Full Topic] +// The time that the lens was open during exposure, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621541-colorspace?language=objc -func (s_ SearchableItemAttributeSet) ColorSpace() string { - rv := objc.Call[string](s_, objc.Sel("colorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621532-exposuretime?language=objc +func (s_ SearchableItemAttributeSet) ExposureTime() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("exposureTime")) return rv } -// The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr. [Full Topic] +// The time that the lens was open during exposure, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621541-colorspace?language=objc -func (s_ SearchableItemAttributeSet) SetColorSpace(value string) { - objc.Call[objc.Void](s_, objc.Sel("setColorSpace:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621532-exposuretime?language=objc +func (s_ SearchableItemAttributeSet) SetExposureTime(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setExposureTime:"), value) } -// The video bit rate of the media. [Full Topic] +// The URL associated with the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616090-videobitrate?language=objc -func (s_ SearchableItemAttributeSet) VideoBitRate() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("videoBitRate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616087-url?language=objc +func (s_ SearchableItemAttributeSet) URL() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("URL")) return rv } -// The video bit rate of the media. [Full Topic] +// The URL associated with the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616090-videobitrate?language=objc -func (s_ SearchableItemAttributeSet) SetVideoBitRate(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setVideoBitRate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616087-url?language=objc +func (s_ SearchableItemAttributeSet) SetURL(value foundation.IURL) { + objc.Call[objc.Void](s_, objc.Sel("setURL:"), value) } -// The delivery type of the file. [Full Topic] +// A description of the rating. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616062-deliverytype?language=objc -func (s_ SearchableItemAttributeSet) DeliveryType() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("deliveryType")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616037-ratingdescription?language=objc +func (s_ SearchableItemAttributeSet) RatingDescription() string { + rv := objc.Call[string](s_, objc.Sel("ratingDescription")) return rv } -// The delivery type of the file. [Full Topic] +// A description of the rating. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616062-deliverytype?language=objc -func (s_ SearchableItemAttributeSet) SetDeliveryType(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setDeliveryType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616037-ratingdescription?language=objc +func (s_ SearchableItemAttributeSet) SetRatingDescription(value string) { + objc.Call[objc.Void](s_, objc.Sel("setRatingDescription:"), value) } -// The genre of the media. [Full Topic] +// A description of the kind of document the item represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616031-genre?language=objc -func (s_ SearchableItemAttributeSet) Genre() string { - rv := objc.Call[string](s_, objc.Sel("genre")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621642-kind?language=objc +func (s_ SearchableItemAttributeSet) Kind() string { + rv := objc.Call[string](s_, objc.Sel("kind")) return rv } -// The genre of the media. [Full Topic] +// A description of the kind of document the item represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616031-genre?language=objc -func (s_ SearchableItemAttributeSet) SetGenre(value string) { - objc.Call[objc.Void](s_, objc.Sel("setGenre:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621642-kind?language=objc +func (s_ SearchableItemAttributeSet) SetKind(value string) { + objc.Call[objc.Void](s_, objc.Sel("setKind:"), value) } -// An array of names representing the authors who have worked on the message. [Full Topic] +// The uniform type identifier (UTI) of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621620-authornames?language=objc -func (s_ SearchableItemAttributeSet) AuthorNames() []string { - rv := objc.Call[[]string](s_, objc.Sel("authorNames")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621561-contenttype?language=objc +func (s_ SearchableItemAttributeSet) ContentType() string { + rv := objc.Call[string](s_, objc.Sel("contentType")) return rv } -// An array of names representing the authors who have worked on the message. [Full Topic] +// The uniform type identifier (UTI) of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621620-authornames?language=objc -func (s_ SearchableItemAttributeSet) SetAuthorNames(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setAuthorNames:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621561-contenttype?language=objc +func (s_ SearchableItemAttributeSet) SetContentType(value string) { + objc.Call[objc.Void](s_, objc.Sel("setContentType:"), value) } -// An array of localized strings that represent alternate display names for the item. [Full Topic] +// The date on which the item is due. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621662-alternatenames?language=objc -func (s_ SearchableItemAttributeSet) AlternateNames() []string { - rv := objc.Call[[]string](s_, objc.Sel("alternateNames")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616641-duedate?language=objc +func (s_ SearchableItemAttributeSet) DueDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("dueDate")) return rv } -// An array of localized strings that represent alternate display names for the item. [Full Topic] +// The date on which the item is due. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621662-alternatenames?language=objc -func (s_ SearchableItemAttributeSet) SetAlternateNames(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setAlternateNames:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616641-duedate?language=objc +func (s_ SearchableItemAttributeSet) SetDueDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setDueDate:"), value) } -// The date on which the contents of the file was last modified. [Full Topic] +// The name of an instrument within the context of an instrument category. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616085-contentmodificationdate?language=objc -func (s_ SearchableItemAttributeSet) ContentModificationDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("contentModificationDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616033-musicalinstrumentname?language=objc +func (s_ SearchableItemAttributeSet) MusicalInstrumentName() string { + rv := objc.Call[string](s_, objc.Sel("musicalInstrumentName")) return rv } -// The date on which the contents of the file was last modified. [Full Topic] +// The name of an instrument within the context of an instrument category. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616085-contentmodificationdate?language=objc -func (s_ SearchableItemAttributeSet) SetContentModificationDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setContentModificationDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616033-musicalinstrumentname?language=objc +func (s_ SearchableItemAttributeSet) SetMusicalInstrumentName(value string) { + objc.Call[objc.Void](s_, objc.Sel("setMusicalInstrumentName:"), value) } -// A formal identifier that references the document the item represents. [Full Topic] +// A link to information about the rights held in and over the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621577-identifier?language=objc -func (s_ SearchableItemAttributeSet) Identifier() string { - rv := objc.Call[string](s_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616076-rights?language=objc +func (s_ SearchableItemAttributeSet) Rights() string { + rv := objc.Call[string](s_, objc.Sel("rights")) return rv } -// A formal identifier that references the document the item represents. [Full Topic] +// A link to information about the rights held in and over the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621577-identifier?language=objc -func (s_ SearchableItemAttributeSet) SetIdentifier(value string) { - objc.Call[objc.Void](s_, objc.Sel("setIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616076-rights?language=objc +func (s_ SearchableItemAttributeSet) SetRights(value string) { + objc.Call[objc.Void](s_, objc.Sel("setRights:"), value) } -// The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string. [Full Topic] +// An array of email addresses associated with the author of the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621669-htmlcontentdata?language=objc -func (s_ SearchableItemAttributeSet) HTMLContentData() []byte { - rv := objc.Call[[]byte](s_, objc.Sel("HTMLContentData")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621625-authoremailaddresses?language=objc +func (s_ SearchableItemAttributeSet) AuthorEmailAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("authorEmailAddresses")) return rv } -// The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string. [Full Topic] +// An array of email addresses associated with the author of the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621669-htmlcontentdata?language=objc -func (s_ SearchableItemAttributeSet) SetHTMLContentData(value []byte) { - objc.Call[objc.Void](s_, objc.Sel("setHTMLContentData:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621625-authoremailaddresses?language=objc +func (s_ SearchableItemAttributeSet) SetAuthorEmailAddresses(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setAuthorEmailAddresses:"), value) } -// A value that indicates the user purchased or owns the item. [Full Topic] +// The sample rate of the audio data the file contains, as a float value representing Hz (audio frames per second), such as 44100.0 or 22254.54. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887564-userowned?language=objc -func (s_ SearchableItemAttributeSet) IsUserOwned() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("isUserOwned")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616008-audiosamplerate?language=objc +func (s_ SearchableItemAttributeSet) AudioSampleRate() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("audioSampleRate")) return rv } -// A value that indicates the user purchased or owns the item. [Full Topic] +// The sample rate of the audio data the file contains, as a float value representing Hz (audio frames per second), such as 44100.0 or 22254.54. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887564-userowned?language=objc -func (s_ SearchableItemAttributeSet) SetUserOwned(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setUserOwned:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616008-audiosamplerate?language=objc +func (s_ SearchableItemAttributeSet) SetAudioSampleRate(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setAudioSampleRate:"), value) } -// A value that indicates if the camera used a flash to capture the image. [Full Topic] +// The date on which the last metadata attribute was changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621525-flashon?language=objc -func (s_ SearchableItemAttributeSet) IsFlashOn() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("isFlashOn")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621657-metadatamodificationdate?language=objc +func (s_ SearchableItemAttributeSet) MetadataModificationDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("metadataModificationDate")) return rv } -// A value that indicates if the camera used a flash to capture the image. [Full Topic] +// The date on which the last metadata attribute was changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621525-flashon?language=objc -func (s_ SearchableItemAttributeSet) SetFlashOn(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setFlashOn:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621657-metadatamodificationdate?language=objc +func (s_ SearchableItemAttributeSet) SetMetadataModificationDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setMetadataModificationDate:"), value) } -// A value that indicates whether the MIDI sequence the file contains is set up for use with a general MIDI device. [Full Topic] +// An array of CSPerson objects representing the content of the To: field in an email message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616081-generalmidisequence?language=objc -func (s_ SearchableItemAttributeSet) IsGeneralMIDISequence() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("isGeneralMIDISequence")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621675-primaryrecipients?language=objc +func (s_ SearchableItemAttributeSet) PrimaryRecipients() []Person { + rv := objc.Call[[]Person](s_, objc.Sel("primaryRecipients")) return rv } -// A value that indicates whether the MIDI sequence the file contains is set up for use with a general MIDI device. [Full Topic] +// An array of CSPerson objects representing the content of the To: field in an email message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616081-generalmidisequence?language=objc -func (s_ SearchableItemAttributeSet) SetGeneralMIDISequence(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGeneralMIDISequence:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621675-primaryrecipients?language=objc +func (s_ SearchableItemAttributeSet) SetPrimaryRecipients(value []IPerson) { + objc.Call[objc.Void](s_, objc.Sel("setPrimaryRecipients:"), value) } -// The speed of the item, in kilometers per hour. [Full Topic] +// The audio bit rate of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620591-speed?language=objc -func (s_ SearchableItemAttributeSet) Speed() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("speed")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616103-audiobitrate?language=objc +func (s_ SearchableItemAttributeSet) AudioBitRate() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("audioBitRate")) return rv } -// The speed of the item, in kilometers per hour. [Full Topic] +// The audio bit rate of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620591-speed?language=objc -func (s_ SearchableItemAttributeSet) SetSpeed(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setSpeed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616103-audiobitrate?language=objc +func (s_ SearchableItemAttributeSet) SetAudioBitRate(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setAudioBitRate:"), value) } -// The timestamp on the item. [Full Topic] +// A value that indicates if the focal length is 35mm. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620574-timestamp?language=objc -func (s_ SearchableItemAttributeSet) Timestamp() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("timestamp")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621546-focallength35mm?language=objc +func (s_ SearchableItemAttributeSet) IsFocalLength35mm() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isFocalLength35mm")) return rv } -// The timestamp on the item. [Full Topic] +// A value that indicates if the focal length is 35mm. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620574-timestamp?language=objc -func (s_ SearchableItemAttributeSet) SetTimestamp(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setTimestamp:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621546-focallength35mm?language=objc +func (s_ SearchableItemAttributeSet) SetFocalLength35mm(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setFocalLength35mm:"), value) } -// A comment related to the media file. [Full Topic] +// The version of GPS Info IFD header that was used to generate the metadata for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616083-comment?language=objc -func (s_ SearchableItemAttributeSet) Comment() string { - rv := objc.Call[string](s_, objc.Sel("comment")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621543-exifgpsversion?language=objc +func (s_ SearchableItemAttributeSet) EXIFGPSVersion() string { + rv := objc.Call[string](s_, objc.Sel("EXIFGPSVersion")) return rv } -// A comment related to the media file. [Full Topic] +// The version of GPS Info IFD header that was used to generate the metadata for the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616083-comment?language=objc -func (s_ SearchableItemAttributeSet) SetComment(value string) { - objc.Call[objc.Void](s_, objc.Sel("setComment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621543-exifgpsversion?language=objc +func (s_ SearchableItemAttributeSet) SetEXIFGPSVersion(value string) { + objc.Call[objc.Void](s_, objc.Sel("setEXIFGPSVersion:"), value) } -// The name of an instrument within the context of an instrument category. [Full Topic] +// The smallest F number of the lens. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616033-musicalinstrumentname?language=objc -func (s_ SearchableItemAttributeSet) MusicalInstrumentName() string { - rv := objc.Call[string](s_, objc.Sel("musicalInstrumentName")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621545-maxaperture?language=objc +func (s_ SearchableItemAttributeSet) MaxAperture() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("maxAperture")) return rv } -// The name of an instrument within the context of an instrument category. [Full Topic] +// The smallest F number of the lens. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616033-musicalinstrumentname?language=objc -func (s_ SearchableItemAttributeSet) SetMusicalInstrumentName(value string) { - objc.Call[objc.Void](s_, objc.Sel("setMusicalInstrumentName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621545-maxaperture?language=objc +func (s_ SearchableItemAttributeSet) SetMaxAperture(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setMaxAperture:"), value) } -// An array of CSPerson objects representing the content of the From: field in an item. [Full Topic] +// A value that indicates if the message is likely to be considered junk. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621608-authors?language=objc -func (s_ SearchableItemAttributeSet) Authors() []Person { - rv := objc.Call[[]Person](s_, objc.Sel("authors")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621646-likelyjunk?language=objc +func (s_ SearchableItemAttributeSet) IsLikelyJunk() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isLikelyJunk")) return rv } -// An array of CSPerson objects representing the content of the From: field in an item. [Full Topic] +// A value that indicates if the message is likely to be considered junk. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621608-authors?language=objc -func (s_ SearchableItemAttributeSet) SetAuthors(value []IPerson) { - objc.Call[objc.Void](s_, objc.Sel("setAuthors:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621646-likelyjunk?language=objc +func (s_ SearchableItemAttributeSet) SetLikelyJunk(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setLikelyJunk:"), value) } -// The title for a collection of audio media. [Full Topic] +// A list of descriptors that specify the extent or scope of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616016-album?language=objc -func (s_ SearchableItemAttributeSet) Album() string { - rv := objc.Call[string](s_, objc.Sel("album")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616006-coverage?language=objc +func (s_ SearchableItemAttributeSet) Coverage() []string { + rv := objc.Call[[]string](s_, objc.Sel("coverage")) return rv } -// The title for a collection of audio media. [Full Topic] +// A list of descriptors that specify the extent or scope of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616016-album?language=objc -func (s_ SearchableItemAttributeSet) SetAlbum(value string) { - objc.Call[objc.Void](s_, objc.Sel("setAlbum:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616006-coverage?language=objc +func (s_ SearchableItemAttributeSet) SetCoverage(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setCoverage:"), value) } -// The codecs used to encode/decode the media. [Full Topic] +// The start date for the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616047-codecs?language=objc -func (s_ SearchableItemAttributeSet) Codecs() []string { - rv := objc.Call[[]string](s_, objc.Sel("codecs")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616640-startdate?language=objc +func (s_ SearchableItemAttributeSet) StartDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("startDate")) return rv } -// The codecs used to encode/decode the media. [Full Topic] +// The start date for the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616047-codecs?language=objc -func (s_ SearchableItemAttributeSet) SetCodecs(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setCodecs:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616640-startdate?language=objc +func (s_ SearchableItemAttributeSet) SetStartDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setStartDate:"), value) } -// The local file URL of the thumbnail image for the item. [Full Topic] +// The size of the document file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621560-thumbnailurl?language=objc -func (s_ SearchableItemAttributeSet) ThumbnailURL() foundation.URL { - rv := objc.Call[foundation.URL](s_, objc.Sel("thumbnailURL")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621565-filesize?language=objc +func (s_ SearchableItemAttributeSet) FileSize() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("fileSize")) return rv } -// The local file URL of the thumbnail image for the item. [Full Topic] +// The size of the document file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621560-thumbnailurl?language=objc -func (s_ SearchableItemAttributeSet) SetThumbnailURL(value foundation.IURL) { - objc.Call[objc.Void](s_, objc.Sel("setThumbnailURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621565-filesize?language=objc +func (s_ SearchableItemAttributeSet) SetFileSize(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setFileSize:"), value) } -// The name of the location or point of interest associated with the item. [Full Topic] +// A value that indicates the user created the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620584-namedlocation?language=objc -func (s_ SearchableItemAttributeSet) NamedLocation() string { - rv := objc.Call[string](s_, objc.Sel("namedLocation")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887561-usercreated?language=objc +func (s_ SearchableItemAttributeSet) IsUserCreated() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isUserCreated")) return rv } -// The name of the location or point of interest associated with the item. [Full Topic] +// A value that indicates the user created the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620584-namedlocation?language=objc -func (s_ SearchableItemAttributeSet) SetNamedLocation(value string) { - objc.Call[objc.Void](s_, objc.Sel("setNamedLocation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887561-usercreated?language=objc +func (s_ SearchableItemAttributeSet) SetUserCreated(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setUserCreated:"), value) } -// The longitude of the destination point. [Full Topic] +// The title of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620580-gpsdestlongitude?language=objc -func (s_ SearchableItemAttributeSet) GPSDestLongitude() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestLongitude")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621615-title?language=objc +func (s_ SearchableItemAttributeSet) Title() string { + rv := objc.Call[string](s_, objc.Sel("title")) return rv } -// The longitude of the destination point. [Full Topic] +// The title of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620580-gpsdestlongitude?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDestLongitude(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDestLongitude:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621615-title?language=objc +func (s_ SearchableItemAttributeSet) SetTitle(value string) { + objc.Call[objc.Void](s_, objc.Sel("setTitle:"), value) } -// The postal code for the item according to guidelines the provider establishes. [Full Topic] +// The mode the camera used for the exposure of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649284-postalcode?language=objc -func (s_ SearchableItemAttributeSet) PostalCode() string { - rv := objc.Call[string](s_, objc.Sel("postalCode")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621540-exposuremode?language=objc +func (s_ SearchableItemAttributeSet) ExposureMode() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("exposureMode")) return rv } -// The postal code for the item according to guidelines the provider establishes. [Full Topic] +// The mode the camera used for the exposure of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649284-postalcode?language=objc -func (s_ SearchableItemAttributeSet) SetPostalCode(value string) { - objc.Call[objc.Void](s_, objc.Sel("setPostalCode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621540-exposuremode?language=objc +func (s_ SearchableItemAttributeSet) SetExposureMode(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setExposureMode:"), value) } -// The size of the document file. [Full Topic] +// Image data that represents the thumbnail of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621565-filesize?language=objc -func (s_ SearchableItemAttributeSet) FileSize() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("fileSize")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621582-thumbnaildata?language=objc +func (s_ SearchableItemAttributeSet) ThumbnailData() []byte { + rv := objc.Call[[]byte](s_, objc.Sel("thumbnailData")) return rv } -// The size of the document file. [Full Topic] +// Image data that represents the thumbnail of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621565-filesize?language=objc -func (s_ SearchableItemAttributeSet) SetFileSize(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setFileSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621582-thumbnaildata?language=objc +func (s_ SearchableItemAttributeSet) SetThumbnailData(value []byte) { + objc.Call[objc.Void](s_, objc.Sel("setThumbnailData:"), value) } -// An array of mailbox identifiers associated with the message. [Full Topic] +// The unique identifier for the item to which the activity is related. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621654-mailboxidentifiers?language=objc -func (s_ SearchableItemAttributeSet) MailboxIdentifiers() []string { - rv := objc.Call[[]string](s_, objc.Sel("mailboxIdentifiers")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621569-relateduniqueidentifier?language=objc +func (s_ SearchableItemAttributeSet) RelatedUniqueIdentifier() string { + rv := objc.Call[string](s_, objc.Sel("relatedUniqueIdentifier")) return rv } -// An array of mailbox identifiers associated with the message. [Full Topic] +// The unique identifier for the item to which the activity is related. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621654-mailboxidentifiers?language=objc -func (s_ SearchableItemAttributeSet) SetMailboxIdentifiers(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setMailboxIdentifiers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621569-relateduniqueidentifier?language=objc +func (s_ SearchableItemAttributeSet) SetRelatedUniqueIdentifier(value string) { + objc.Call[objc.Void](s_, objc.Sel("setRelatedUniqueIdentifier:"), value) } -// The start date for the item. [Full Topic] +// A list of people who are visible in an image or movie or written about in a document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616640-startdate?language=objc -func (s_ SearchableItemAttributeSet) StartDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("startDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616045-participants?language=objc +func (s_ SearchableItemAttributeSet) Participants() []string { + rv := objc.Call[[]string](s_, objc.Sel("participants")) return rv } -// The start date for the item. [Full Topic] +// A list of people who are visible in an image or movie or written about in a document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616640-startdate?language=objc -func (s_ SearchableItemAttributeSet) SetStartDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setStartDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616045-participants?language=objc +func (s_ SearchableItemAttributeSet) SetParticipants(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setParticipants:"), value) } -// The number of bits per sample. [Full Topic] +// The unique identifier for the account with which the message is associated, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621530-bitspersample?language=objc -func (s_ SearchableItemAttributeSet) BitsPerSample() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("bitsPerSample")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621573-accountidentifier?language=objc +func (s_ SearchableItemAttributeSet) AccountIdentifier() string { + rv := objc.Call[string](s_, objc.Sel("accountIdentifier")) return rv } -// The number of bits per sample. [Full Topic] +// The unique identifier for the account with which the message is associated, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621530-bitspersample?language=objc -func (s_ SearchableItemAttributeSet) SetBitsPerSample(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setBitsPerSample:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621573-accountidentifier?language=objc +func (s_ SearchableItemAttributeSet) SetAccountIdentifier(value string) { + objc.Call[objc.Void](s_, objc.Sel("setAccountIdentifier:"), value) } -// A value that indicates the user selected the item. [Full Topic] +// The title for a collection of audio media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887562-usercurated?language=objc -func (s_ SearchableItemAttributeSet) IsUserCurated() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("isUserCurated")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616016-album?language=objc +func (s_ SearchableItemAttributeSet) Album() string { + rv := objc.Call[string](s_, objc.Sel("album")) return rv } -// A value that indicates the user selected the item. [Full Topic] +// The title for a collection of audio media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887562-usercurated?language=objc -func (s_ SearchableItemAttributeSet) SetUserCurated(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setUserCurated:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616016-album?language=objc +func (s_ SearchableItemAttributeSet) SetAlbum(value string) { + objc.Call[objc.Void](s_, objc.Sel("setAlbum:"), value) } -// The URL associated with the media. [Full Topic] +// The original source of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616087-url?language=objc -func (s_ SearchableItemAttributeSet) URL() foundation.URL { - rv := objc.Call[foundation.URL](s_, objc.Sel("URL")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616022-originalsource?language=objc +func (s_ SearchableItemAttributeSet) OriginalSource() string { + rv := objc.Call[string](s_, objc.Sel("originalSource")) return rv } -// The URL associated with the media. [Full Topic] +// The original source of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616087-url?language=objc -func (s_ SearchableItemAttributeSet) SetURL(value foundation.IURL) { - objc.Call[objc.Void](s_, objc.Sel("setURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616022-originalsource?language=objc +func (s_ SearchableItemAttributeSet) SetOriginalSource(value string) { + objc.Call[objc.Void](s_, objc.Sel("setOriginalSource:"), value) } -// An array of email addresses associated with the author of the message. [Full Topic] +// A list of editors who have worked on the file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621625-authoremailaddresses?language=objc -func (s_ SearchableItemAttributeSet) AuthorEmailAddresses() []string { - rv := objc.Call[[]string](s_, objc.Sel("authorEmailAddresses")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616088-editors?language=objc +func (s_ SearchableItemAttributeSet) Editors() []string { + rv := objc.Call[[]string](s_, objc.Sel("editors")) return rv } -// An array of email addresses associated with the author of the message. [Full Topic] +// A list of editors who have worked on the file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621625-authoremailaddresses?language=objc -func (s_ SearchableItemAttributeSet) SetAuthorEmailAddresses(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setAuthorEmailAddresses:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616088-editors?language=objc +func (s_ SearchableItemAttributeSet) SetEditors(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setEditors:"), value) } -// The mode the camera used for the exposure of the image. [Full Topic] +// The subject of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621540-exposuremode?language=objc -func (s_ SearchableItemAttributeSet) ExposureMode() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("exposureMode")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621598-subject?language=objc +func (s_ SearchableItemAttributeSet) Subject() string { + rv := objc.Call[string](s_, objc.Sel("subject")) return rv } -// The mode the camera used for the exposure of the image. [Full Topic] +// The subject of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621540-exposuremode?language=objc -func (s_ SearchableItemAttributeSet) SetExposureMode(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setExposureMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621598-subject?language=objc +func (s_ SearchableItemAttributeSet) SetSubject(value string) { + objc.Call[objc.Void](s_, objc.Sel("setSubject:"), value) } -// The model of the device that captured the image. [Full Topic] +// The timestamp on the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621523-acquisitionmodel?language=objc -func (s_ SearchableItemAttributeSet) AcquisitionModel() string { - rv := objc.Call[string](s_, objc.Sel("acquisitionModel")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620574-timestamp?language=objc +func (s_ SearchableItemAttributeSet) Timestamp() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("timestamp")) return rv } -// The model of the device that captured the image. [Full Topic] +// The timestamp on the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621523-acquisitionmodel?language=objc -func (s_ SearchableItemAttributeSet) SetAcquisitionModel(value string) { - objc.Call[objc.Void](s_, objc.Sel("setAcquisitionModel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620574-timestamp?language=objc +func (s_ SearchableItemAttributeSet) SetTimestamp(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setTimestamp:"), value) } -// A list of people, organizations, or services that made contributions to the media content. [Full Topic] +// The recording date of the song or composition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616060-contributors?language=objc -func (s_ SearchableItemAttributeSet) Contributors() []string { - rv := objc.Call[[]string](s_, objc.Sel("contributors")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616051-recordingdate?language=objc +func (s_ SearchableItemAttributeSet) RecordingDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("recordingDate")) return rv } -// A list of people, organizations, or services that made contributions to the media content. [Full Topic] +// The recording date of the song or composition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616060-contributors?language=objc -func (s_ SearchableItemAttributeSet) SetContributors(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setContributors:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616051-recordingdate?language=objc +func (s_ SearchableItemAttributeSet) SetRecordingDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setRecordingDate:"), value) } -// The tempo of the music that the audio file contains, in beats per minute. [Full Topic] +// The resolution height of the image, in DPI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616005-tempo?language=objc -func (s_ SearchableItemAttributeSet) Tempo() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("tempo")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621526-resolutionheightdpi?language=objc +func (s_ SearchableItemAttributeSet) ResolutionHeightDPI() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("resolutionHeightDPI")) return rv } -// The tempo of the music that the audio file contains, in beats per minute. [Full Topic] +// The resolution height of the image, in DPI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616005-tempo?language=objc -func (s_ SearchableItemAttributeSet) SetTempo(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setTempo:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621526-resolutionheightdpi?language=objc +func (s_ SearchableItemAttributeSet) SetResolutionHeightDPI(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setResolutionHeightDPI:"), value) } -// The date on which the item was completed. [Full Topic] +// A list of contacts who are associated with the content in some way, not including the author. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616637-completiondate?language=objc -func (s_ SearchableItemAttributeSet) CompletionDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("completionDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616014-contactkeywords?language=objc +func (s_ SearchableItemAttributeSet) ContactKeywords() []string { + rv := objc.Call[[]string](s_, objc.Sel("contactKeywords")) return rv } -// The date on which the item was completed. [Full Topic] +// A list of contacts who are associated with the content in some way, not including the author. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616637-completiondate?language=objc -func (s_ SearchableItemAttributeSet) SetCompletionDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setCompletionDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616014-contactkeywords?language=objc +func (s_ SearchableItemAttributeSet) SetContactKeywords(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setContactKeywords:"), value) } -// An identifier that represents the domain or owner of the item. [Full Topic] +// An array that contains the names of the various layers in the file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649285-domainidentifier?language=objc -func (s_ SearchableItemAttributeSet) DomainIdentifier() string { - rv := objc.Call[string](s_, objc.Sel("domainIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621519-layernames?language=objc +func (s_ SearchableItemAttributeSet) LayerNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("layerNames")) return rv } -// An identifier that represents the domain or owner of the item. [Full Topic] +// An array that contains the names of the various layers in the file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649285-domainidentifier?language=objc -func (s_ SearchableItemAttributeSet) SetDomainIdentifier(value string) { - objc.Call[objc.Void](s_, objc.Sel("setDomainIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621519-layernames?language=objc +func (s_ SearchableItemAttributeSet) SetLayerNames(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setLayerNames:"), value) } -// A list of projects of which this file is a part. [Full Topic] +// The class of the program the camera used to set exposure when capturing the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616066-projects?language=objc -func (s_ SearchableItemAttributeSet) Projects() []string { - rv := objc.Call[[]string](s_, objc.Sel("projects")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621547-exposureprogram?language=objc +func (s_ SearchableItemAttributeSet) ExposureProgram() string { + rv := objc.Call[string](s_, objc.Sel("exposureProgram")) return rv } -// A list of projects of which this file is a part. [Full Topic] +// The class of the program the camera used to set exposure when capturing the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616066-projects?language=objc -func (s_ SearchableItemAttributeSet) SetProjects(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setProjects:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621547-exposureprogram?language=objc +func (s_ SearchableItemAttributeSet) SetExposureProgram(value string) { + objc.Call[objc.Void](s_, objc.Sel("setExposureProgram:"), value) } -// The end date for the item. [Full Topic] +// The date on which the item was moved into its current location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616638-enddate?language=objc -func (s_ SearchableItemAttributeSet) EndDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("endDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616029-addeddate?language=objc +func (s_ SearchableItemAttributeSet) AddedDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("addedDate")) return rv } -// The end date for the item. [Full Topic] +// The date on which the item was moved into its current location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616638-enddate?language=objc -func (s_ SearchableItemAttributeSet) SetEndDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setEndDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616029-addeddate?language=objc +func (s_ SearchableItemAttributeSet) SetAddedDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setAddedDate:"), value) } -// A localized string that specifies the name of a container to which the item belongs, suitable to display in the user interface. [Full Topic] +// The identifier of the container to which the item belongs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621622-containerdisplayname?language=objc -func (s_ SearchableItemAttributeSet) ContainerDisplayName() string { - rv := objc.Call[string](s_, objc.Sel("containerDisplayName")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621594-containeridentifier?language=objc +func (s_ SearchableItemAttributeSet) ContainerIdentifier() string { + rv := objc.Call[string](s_, objc.Sel("containerIdentifier")) return rv } -// A localized string that specifies the name of a container to which the item belongs, suitable to display in the user interface. [Full Topic] +// The identifier of the container to which the item belongs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621622-containerdisplayname?language=objc -func (s_ SearchableItemAttributeSet) SetContainerDisplayName(value string) { - objc.Call[objc.Void](s_, objc.Sel("setContainerDisplayName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621594-containeridentifier?language=objc +func (s_ SearchableItemAttributeSet) SetContainerIdentifier(value string) { + objc.Call[objc.Void](s_, objc.Sel("setContainerIdentifier:"), value) } -// The focal length of the lens, divided by the diameter of the aperture when the camera captured the image. [Full Topic] +// The distance to the destination point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621549-fnumber?language=objc -func (s_ SearchableItemAttributeSet) FNumber() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("fNumber")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620582-gpsdestdistance?language=objc +func (s_ SearchableItemAttributeSet) GPSDestDistance() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestDistance")) return rv } -// The focal length of the lens, divided by the diameter of the aperture when the camera captured the image. [Full Topic] +// The distance to the destination point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621549-fnumber?language=objc -func (s_ SearchableItemAttributeSet) SetFNumber(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setFNumber:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620582-gpsdestdistance?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDestDistance(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDestDistance:"), value) } -// An array of CSPerson objects representing the content of the Bcc: field in an email message. [Full Topic] +// The owner of the camera that captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621645-hiddenadditionalrecipients?language=objc -func (s_ SearchableItemAttributeSet) HiddenAdditionalRecipients() []Person { - rv := objc.Call[[]Person](s_, objc.Sel("hiddenAdditionalRecipients")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621522-cameraowner?language=objc +func (s_ SearchableItemAttributeSet) CameraOwner() string { + rv := objc.Call[string](s_, objc.Sel("cameraOwner")) return rv } -// An array of CSPerson objects representing the content of the Bcc: field in an email message. [Full Topic] +// The owner of the camera that captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621645-hiddenadditionalrecipients?language=objc -func (s_ SearchableItemAttributeSet) SetHiddenAdditionalRecipients(value []IPerson) { - objc.Call[objc.Void](s_, objc.Sel("setHiddenAdditionalRecipients:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621522-cameraowner?language=objc +func (s_ SearchableItemAttributeSet) SetCameraOwner(value string) { + objc.Call[objc.Void](s_, objc.Sel("setCameraOwner:"), value) } -// A description of the kind of document the item represents. [Full Topic] +// The copyright date of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621642-kind?language=objc -func (s_ SearchableItemAttributeSet) Kind() string { - rv := objc.Call[string](s_, objc.Sel("kind")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616012-copyright?language=objc +func (s_ SearchableItemAttributeSet) Copyright() string { + rv := objc.Call[string](s_, objc.Sel("copyright")) return rv } -// A description of the kind of document the item represents. [Full Topic] +// The copyright date of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621642-kind?language=objc -func (s_ SearchableItemAttributeSet) SetKind(value string) { - objc.Call[objc.Void](s_, objc.Sel("setKind:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616012-copyright?language=objc +func (s_ SearchableItemAttributeSet) SetCopyright(value string) { + objc.Call[objc.Void](s_, objc.Sel("setCopyright:"), value) } -// The class of the program the camera used to set exposure when capturing the image. [Full Topic] +// The metering mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621547-exposureprogram?language=objc -func (s_ SearchableItemAttributeSet) ExposureProgram() string { - rv := objc.Call[string](s_, objc.Sel("exposureProgram")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621538-meteringmode?language=objc +func (s_ SearchableItemAttributeSet) MeteringMode() string { + rv := objc.Call[string](s_, objc.Sel("meteringMode")) return rv } -// The class of the program the camera used to set exposure when capturing the image. [Full Topic] +// The metering mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621547-exposureprogram?language=objc -func (s_ SearchableItemAttributeSet) SetExposureProgram(value string) { - objc.Call[objc.Void](s_, objc.Sel("setExposureProgram:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621538-meteringmode?language=objc +func (s_ SearchableItemAttributeSet) SetMeteringMode(value string) { + objc.Call[objc.Void](s_, objc.Sel("setMeteringMode:"), value) } // The duration (if appropriate) of the content of the file, in seconds. [Full Topic] @@ -2826,349 +2826,334 @@ func (s_ SearchableItemAttributeSet) SetDuration(value foundation.INumber) { objc.Call[objc.Void](s_, objc.Sel("setDuration:"), value) } -// An array of email addresses associated with the message. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621572-emailaddresses?language=objc -func (s_ SearchableItemAttributeSet) EmailAddresses() []string { - rv := objc.Call[[]string](s_, objc.Sel("emailAddresses")) - return rv -} - -// An array of email addresses associated with the message. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621572-emailaddresses?language=objc -func (s_ SearchableItemAttributeSet) SetEmailAddresses(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setEmailAddresses:"), value) -} - -// A list of performers in the media. [Full Topic] +// The end date for the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616043-performers?language=objc -func (s_ SearchableItemAttributeSet) Performers() []string { - rv := objc.Call[[]string](s_, objc.Sel("performers")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616638-enddate?language=objc +func (s_ SearchableItemAttributeSet) EndDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("endDate")) return rv } -// A list of performers in the media. [Full Topic] +// The end date for the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616043-performers?language=objc -func (s_ SearchableItemAttributeSet) SetPerformers(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setPerformers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616638-enddate?language=objc +func (s_ SearchableItemAttributeSet) SetEndDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setEndDate:"), value) } -// A list of descriptors that specify the extent or scope of the media. [Full Topic] +// The sublocation, such as a street number, for the item according to guidelines the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616006-coverage?language=objc -func (s_ SearchableItemAttributeSet) Coverage() []string { - rv := objc.Call[[]string](s_, objc.Sel("coverage")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649290-subthoroughfare?language=objc +func (s_ SearchableItemAttributeSet) SubThoroughfare() string { + rv := objc.Call[string](s_, objc.Sel("subThoroughfare")) return rv } -// A list of descriptors that specify the extent or scope of the media. [Full Topic] +// The sublocation, such as a street number, for the item according to guidelines the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616006-coverage?language=objc -func (s_ SearchableItemAttributeSet) SetCoverage(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setCoverage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649290-subthoroughfare?language=objc +func (s_ SearchableItemAttributeSet) SetSubThoroughfare(value string) { + objc.Call[objc.Void](s_, objc.Sel("setSubThoroughfare:"), value) } -// The creation date of an edited or optimized version of the song or composition. [Full Topic] +// An array of email addresses associated with the recipient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616001-contentcreationdate?language=objc -func (s_ SearchableItemAttributeSet) ContentCreationDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("contentCreationDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621580-recipientemailaddresses?language=objc +func (s_ SearchableItemAttributeSet) RecipientEmailAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("recipientEmailAddresses")) return rv } -// The creation date of an edited or optimized version of the song or composition. [Full Topic] +// An array of email addresses associated with the recipient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616001-contentcreationdate?language=objc -func (s_ SearchableItemAttributeSet) SetContentCreationDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setContentCreationDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621580-recipientemailaddresses?language=objc +func (s_ SearchableItemAttributeSet) SetRecipientEmailAddresses(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setRecipientEmailAddresses:"), value) } -// The theme of the document. [Full Topic] +// The actual focal length of the lens, in millimeters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621574-theme?language=objc -func (s_ SearchableItemAttributeSet) Theme() string { - rv := objc.Call[string](s_, objc.Sel("theme")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621533-focallength?language=objc +func (s_ SearchableItemAttributeSet) FocalLength() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("focalLength")) return rv } -// The theme of the document. [Full Topic] +// The actual focal length of the lens, in millimeters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621574-theme?language=objc -func (s_ SearchableItemAttributeSet) SetTheme(value string) { - objc.Call[objc.Void](s_, objc.Sel("setTheme:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621533-focallength?language=objc +func (s_ SearchableItemAttributeSet) SetFocalLength(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setFocalLength:"), value) } -// An array of CSPerson objects representing the content of the To: field in an email message. [Full Topic] +// The longitude of the destination point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621675-primaryrecipients?language=objc -func (s_ SearchableItemAttributeSet) PrimaryRecipients() []Person { - rv := objc.Call[[]Person](s_, objc.Sel("primaryRecipients")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620580-gpsdestlongitude?language=objc +func (s_ SearchableItemAttributeSet) GPSDestLongitude() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestLongitude")) return rv } -// An array of CSPerson objects representing the content of the To: field in an email message. [Full Topic] +// The longitude of the destination point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621675-primaryrecipients?language=objc -func (s_ SearchableItemAttributeSet) SetPrimaryRecipients(value []IPerson) { - objc.Call[objc.Void](s_, objc.Sel("setPrimaryRecipients:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620580-gpsdestlongitude?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDestLongitude(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDestLongitude:"), value) } -// The fully formatted address of the item, received from MapKit. [Full Topic] +// The video bit rate of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649301-fullyformattedaddress?language=objc -func (s_ SearchableItemAttributeSet) FullyFormattedAddress() string { - rv := objc.Call[string](s_, objc.Sel("fullyFormattedAddress")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616090-videobitrate?language=objc +func (s_ SearchableItemAttributeSet) VideoBitRate() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("videoBitRate")) return rv } -// The fully formatted address of the item, received from MapKit. [Full Topic] +// The video bit rate of the media. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649301-fullyformattedaddress?language=objc -func (s_ SearchableItemAttributeSet) SetFullyFormattedAddress(value string) { - objc.Call[objc.Void](s_, objc.Sel("setFullyFormattedAddress:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616090-videobitrate?language=objc +func (s_ SearchableItemAttributeSet) SetVideoBitRate(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setVideoBitRate:"), value) } -// A value that indicates the user created the item. [Full Topic] +// A value that indicates whether the item contains information sufficient to allow a phone call to a number associated with the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887561-usercreated?language=objc -func (s_ SearchableItemAttributeSet) IsUserCreated() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("isUserCreated")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621653-supportsphonecall?language=objc +func (s_ SearchableItemAttributeSet) SupportsPhoneCall() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("supportsPhoneCall")) return rv } -// A value that indicates the user created the item. [Full Topic] +// A value that indicates whether the item contains information sufficient to allow a phone call to a number associated with the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887561-usercreated?language=objc -func (s_ SearchableItemAttributeSet) SetUserCreated(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setUserCreated:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621653-supportsphonecall?language=objc +func (s_ SearchableItemAttributeSet) SetSupportsPhoneCall(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setSupportsPhoneCall:"), value) } -// The unique identifier for the item to which the activity is related. [Full Topic] +// The model of the lens that captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621569-relateduniqueidentifier?language=objc -func (s_ SearchableItemAttributeSet) RelatedUniqueIdentifier() string { - rv := objc.Call[string](s_, objc.Sel("relatedUniqueIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621537-lensmodel?language=objc +func (s_ SearchableItemAttributeSet) LensModel() string { + rv := objc.Call[string](s_, objc.Sel("lensModel")) return rv } -// The unique identifier for the item to which the activity is related. [Full Topic] +// The model of the lens that captured the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621569-relateduniqueidentifier?language=objc -func (s_ SearchableItemAttributeSet) SetRelatedUniqueIdentifier(value string) { - objc.Call[objc.Void](s_, objc.Sel("setRelatedUniqueIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621537-lensmodel?language=objc +func (s_ SearchableItemAttributeSet) SetLensModel(value string) { + objc.Call[objc.Void](s_, objc.Sel("setLensModel:"), value) } -// The date and time related to the GPS value. [Full Topic] +// A dictionary that contains all the headers of the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620587-gpsdatestamp?language=objc -func (s_ SearchableItemAttributeSet) GPSDateStamp() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("GPSDateStamp")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621568-emailheaders?language=objc +func (s_ SearchableItemAttributeSet) EmailHeaders() map[string][]objc.Object { + rv := objc.Call[map[string][]objc.Object](s_, objc.Sel("emailHeaders")) return rv } -// The date and time related to the GPS value. [Full Topic] +// A dictionary that contains all the headers of the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620587-gpsdatestamp?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDateStamp(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDateStamp:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621568-emailheaders?language=objc +func (s_ SearchableItemAttributeSet) SetEmailHeaders(value map[string][]objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("setEmailHeaders:"), value) } -// An attribute type that identifies a custom hierarchy of types to describe the attributes of your item. [Full Topic] +// A localized string that contains the name of the item, suitable to display in the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621660-contenttypetree?language=objc -func (s_ SearchableItemAttributeSet) ContentTypeTree() []string { - rv := objc.Call[[]string](s_, objc.Sel("contentTypeTree")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621676-displayname?language=objc +func (s_ SearchableItemAttributeSet) DisplayName() string { + rv := objc.Call[string](s_, objc.Sel("displayName")) return rv } -// An attribute type that identifies a custom hierarchy of types to describe the attributes of your item. [Full Topic] +// A localized string that contains the name of the item, suitable to display in the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621660-contenttypetree?language=objc -func (s_ SearchableItemAttributeSet) SetContentTypeTree(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setContentTypeTree:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621676-displayname?language=objc +func (s_ SearchableItemAttributeSet) SetDisplayName(value string) { + objc.Call[objc.Void](s_, objc.Sel("setDisplayName:"), value) } -// The file URL of the content to index. [Full Topic] +// The composer of the song or audio composition that the audio file contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621651-contenturl?language=objc -func (s_ SearchableItemAttributeSet) ContentURL() foundation.URL { - rv := objc.Call[foundation.URL](s_, objc.Sel("contentURL")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616074-composer?language=objc +func (s_ SearchableItemAttributeSet) Composer() string { + rv := objc.Call[string](s_, objc.Sel("composer")) return rv } -// The file URL of the content to index. [Full Topic] +// The composer of the song or audio composition that the audio file contains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621651-contenturl?language=objc -func (s_ SearchableItemAttributeSet) SetContentURL(value foundation.IURL) { - objc.Call[objc.Void](s_, objc.Sel("setContentURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616074-composer?language=objc +func (s_ SearchableItemAttributeSet) SetComposer(value string) { + objc.Call[objc.Void](s_, objc.Sel("setComposer:"), value) } -// The resolution height of the image, in DPI. [Full Topic] +// The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621526-resolutionheightdpi?language=objc -func (s_ SearchableItemAttributeSet) ResolutionHeightDPI() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("resolutionHeightDPI")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621669-htmlcontentdata?language=objc +func (s_ SearchableItemAttributeSet) HTMLContentData() []byte { + rv := objc.Call[[]byte](s_, objc.Sel("HTMLContentData")) return rv } -// The resolution height of the image, in DPI. [Full Topic] +// The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621526-resolutionheightdpi?language=objc -func (s_ SearchableItemAttributeSet) SetResolutionHeightDPI(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setResolutionHeightDPI:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621669-htmlcontentdata?language=objc +func (s_ SearchableItemAttributeSet) SetHTMLContentData(value []byte) { + objc.Call[objc.Void](s_, objc.Sel("setHTMLContentData:"), value) } -// The title of the container to which the item belongs. [Full Topic] +// A formal identifier that references the document the item represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621661-containertitle?language=objc -func (s_ SearchableItemAttributeSet) ContainerTitle() string { - rv := objc.Call[string](s_, objc.Sel("containerTitle")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621577-identifier?language=objc +func (s_ SearchableItemAttributeSet) Identifier() string { + rv := objc.Call[string](s_, objc.Sel("identifier")) return rv } -// The title of the container to which the item belongs. [Full Topic] +// A formal identifier that references the document the item represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621661-containertitle?language=objc -func (s_ SearchableItemAttributeSet) SetContainerTitle(value string) { - objc.Call[objc.Void](s_, objc.Sel("setContainerTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621577-identifier?language=objc +func (s_ SearchableItemAttributeSet) SetIdentifier(value string) { + objc.Call[objc.Void](s_, objc.Sel("setIdentifier:"), value) } -// Indicates if the image file has an alpha channel. [Full Topic] +// The number of bits per sample. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621518-hasalphachannel?language=objc -func (s_ SearchableItemAttributeSet) HasAlphaChannel() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("hasAlphaChannel")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621530-bitspersample?language=objc +func (s_ SearchableItemAttributeSet) BitsPerSample() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("bitsPerSample")) return rv } -// Indicates if the image file has an alpha channel. [Full Topic] +// The number of bits per sample. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621518-hasalphachannel?language=objc -func (s_ SearchableItemAttributeSet) SetHasAlphaChannel(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setHasAlphaChannel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621530-bitspersample?language=objc +func (s_ SearchableItemAttributeSet) SetBitsPerSample(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setBitsPerSample:"), value) } -// A description of the rating. [Full Topic] +// An array of keywords associated with the item, such as work, birthday, important, and so on. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616037-ratingdescription?language=objc -func (s_ SearchableItemAttributeSet) RatingDescription() string { - rv := objc.Call[string](s_, objc.Sel("ratingDescription")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621652-keywords?language=objc +func (s_ SearchableItemAttributeSet) Keywords() []string { + rv := objc.Call[[]string](s_, objc.Sel("keywords")) return rv } -// A description of the rating. [Full Topic] +// An array of keywords associated with the item, such as work, birthday, important, and so on. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616037-ratingdescription?language=objc -func (s_ SearchableItemAttributeSet) SetRatingDescription(value string) { - objc.Call[objc.Void](s_, objc.Sel("setRatingDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621652-keywords?language=objc +func (s_ SearchableItemAttributeSet) SetKeywords(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setKeywords:"), value) } -// The smallest F number of the lens. [Full Topic] +// The full, publishable name of the country or region in which the intellectual property of the item was created, according to guidelines the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621545-maxaperture?language=objc -func (s_ SearchableItemAttributeSet) MaxAperture() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("maxAperture")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620578-country?language=objc +func (s_ SearchableItemAttributeSet) Country() string { + rv := objc.Call[string](s_, objc.Sel("country")) return rv } -// The smallest F number of the lens. [Full Topic] +// The full, publishable name of the country or region in which the intellectual property of the item was created, according to guidelines the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621545-maxaperture?language=objc -func (s_ SearchableItemAttributeSet) SetMaxAperture(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setMaxAperture:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620578-country?language=objc +func (s_ SearchableItemAttributeSet) SetCountry(value string) { + objc.Call[objc.Void](s_, objc.Sel("setCountry:"), value) } -// The metering mode. [Full Topic] +// An array of names representing the authors who have worked on the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621538-meteringmode?language=objc -func (s_ SearchableItemAttributeSet) MeteringMode() string { - rv := objc.Call[string](s_, objc.Sel("meteringMode")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621620-authornames?language=objc +func (s_ SearchableItemAttributeSet) AuthorNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("authorNames")) return rv } -// The metering mode. [Full Topic] +// An array of names representing the authors who have worked on the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621538-meteringmode?language=objc -func (s_ SearchableItemAttributeSet) SetMeteringMode(value string) { - objc.Call[objc.Void](s_, objc.Sel("setMeteringMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621620-authornames?language=objc +func (s_ SearchableItemAttributeSet) SetAuthorNames(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setAuthorNames:"), value) } -// The date on which the file was last used. [Full Topic] +// A value that indicates if the media is local. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616018-lastuseddate?language=objc -func (s_ SearchableItemAttributeSet) LastUsedDate() foundation.Date { - rv := objc.Call[foundation.Date](s_, objc.Sel("lastUsedDate")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616049-local?language=objc +func (s_ SearchableItemAttributeSet) IsLocal() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isLocal")) return rv } -// The date on which the file was last used. [Full Topic] +// A value that indicates if the media is local. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616018-lastuseddate?language=objc -func (s_ SearchableItemAttributeSet) SetLastUsedDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setLastUsedDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616049-local?language=objc +func (s_ SearchableItemAttributeSet) SetLocal(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setLocal:"), value) } -// A value that indicates whether the item contains information sufficient to provide navigation to the location it represents. [Full Topic] +// The tempo of the music that the audio file contains, in beats per minute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621564-supportsnavigation?language=objc -func (s_ SearchableItemAttributeSet) SupportsNavigation() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("supportsNavigation")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616005-tempo?language=objc +func (s_ SearchableItemAttributeSet) Tempo() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("tempo")) return rv } -// A value that indicates whether the item contains information sufficient to provide navigation to the location it represents. [Full Topic] +// The tempo of the music that the audio file contains, in beats per minute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621564-supportsnavigation?language=objc -func (s_ SearchableItemAttributeSet) SetSupportsNavigation(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setSupportsNavigation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616005-tempo?language=objc +func (s_ SearchableItemAttributeSet) SetTempo(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setTempo:"), value) } -// A number that indicates the relative importance of the item among other items from the app. [Full Topic] +// Information about the GPS area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887563-rankinghint?language=objc -func (s_ SearchableItemAttributeSet) RankingHint() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("rankingHint")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620581-gpsareainformation?language=objc +func (s_ SearchableItemAttributeSet) GPSAreaInformation() string { + rv := objc.Call[string](s_, objc.Sel("GPSAreaInformation")) return rv } -// A number that indicates the relative importance of the item among other items from the app. [Full Topic] +// Information about the GPS area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887563-rankinghint?language=objc -func (s_ SearchableItemAttributeSet) SetRankingHint(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setRankingHint:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1620581-gpsareainformation?language=objc +func (s_ SearchableItemAttributeSet) SetGPSAreaInformation(value string) { + objc.Call[objc.Void](s_, objc.Sel("setGPSAreaInformation:"), value) } -// The name of the apps that converted the original content into a PDF stream. [Full Topic] +// An array of sources from which the media was obtained. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621659-encodingapplications?language=objc -func (s_ SearchableItemAttributeSet) EncodingApplications() []string { - rv := objc.Call[[]string](s_, objc.Sel("encodingApplications")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616024-contentsources?language=objc +func (s_ SearchableItemAttributeSet) ContentSources() []string { + rv := objc.Call[[]string](s_, objc.Sel("contentSources")) return rv } -// The name of the apps that converted the original content into a PDF stream. [Full Topic] +// An array of sources from which the media was obtained. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621659-encodingapplications?language=objc -func (s_ SearchableItemAttributeSet) SetEncodingApplications(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setEncodingApplications:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616024-contentsources?language=objc +func (s_ SearchableItemAttributeSet) SetContentSources(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setContentSources:"), value) } -// A value that indicates if the media is local. [Full Topic] +// A value that indicates if the camera used red-eye reduction when capturing the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616049-local?language=objc -func (s_ SearchableItemAttributeSet) IsLocal() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("isLocal")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621520-redeyeon?language=objc +func (s_ SearchableItemAttributeSet) IsRedEyeOn() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isRedEyeOn")) return rv } -// A value that indicates if the media is local. [Full Topic] +// A value that indicates if the camera used red-eye reduction when capturing the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616049-local?language=objc -func (s_ SearchableItemAttributeSet) SetLocal(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setLocal:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621520-redeyeon?language=objc +func (s_ SearchableItemAttributeSet) SetRedEyeOn(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setRedEyeOn:"), value) } // The unique identifier for the item to which the activity is related, but not linked. [Full Topic] @@ -3186,47 +3171,62 @@ func (s_ SearchableItemAttributeSet) SetWeakRelatedUniqueIdentifier(value string objc.Call[objc.Void](s_, objc.Sel("setWeakRelatedUniqueIdentifier:"), value) } -// A value that indicates if the focal length is 35mm. [Full Topic] +// The thoroughfare, such as a street name, associated with the location for the item according to guidelines the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621546-focallength35mm?language=objc -func (s_ SearchableItemAttributeSet) IsFocalLength35mm() foundation.Number { - rv := objc.Call[foundation.Number](s_, objc.Sel("isFocalLength35mm")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649310-thoroughfare?language=objc +func (s_ SearchableItemAttributeSet) Thoroughfare() string { + rv := objc.Call[string](s_, objc.Sel("thoroughfare")) return rv } -// A value that indicates if the focal length is 35mm. [Full Topic] +// The thoroughfare, such as a street name, associated with the location for the item according to guidelines the provider establishes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621546-focallength35mm?language=objc -func (s_ SearchableItemAttributeSet) SetFocalLength35mm(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setFocalLength35mm:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1649310-thoroughfare?language=objc +func (s_ SearchableItemAttributeSet) SetThoroughfare(value string) { + objc.Call[objc.Void](s_, objc.Sel("setThoroughfare:"), value) } -// The copyright date of the content. [Full Topic] +// The orientation of the data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616012-copyright?language=objc -func (s_ SearchableItemAttributeSet) Copyright() string { - rv := objc.Call[string](s_, objc.Sel("copyright")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621524-orientation?language=objc +func (s_ SearchableItemAttributeSet) Orientation() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("orientation")) return rv } -// The copyright date of the content. [Full Topic] +// The orientation of the data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1616012-copyright?language=objc -func (s_ SearchableItemAttributeSet) SetCopyright(value string) { - objc.Call[objc.Void](s_, objc.Sel("setCopyright:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621524-orientation?language=objc +func (s_ SearchableItemAttributeSet) SetOrientation(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setOrientation:"), value) } -// An array of identifiers that corresponds to in-place file representations the delegate provides. [Full Topic] +// The width of the document page, in points (72 points per inch). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2908990-providerinplacefiletypeidentifie?language=objc -func (s_ SearchableItemAttributeSet) ProviderInPlaceFileTypeIdentifiers() []string { - rv := objc.Call[[]string](s_, objc.Sel("providerInPlaceFileTypeIdentifiers")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621670-pagewidth?language=objc +func (s_ SearchableItemAttributeSet) PageWidth() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pageWidth")) return rv } -// An array of identifiers that corresponds to in-place file representations the delegate provides. [Full Topic] +// The width of the document page, in points (72 points per inch). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2908990-providerinplacefiletypeidentifie?language=objc -func (s_ SearchableItemAttributeSet) SetProviderInPlaceFileTypeIdentifiers(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setProviderInPlaceFileTypeIdentifiers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/1621670-pagewidth?language=objc +func (s_ SearchableItemAttributeSet) SetPageWidth(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPageWidth:"), value) +} + +// A value that indicates the user purchased or owns the item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887564-userowned?language=objc +func (s_ SearchableItemAttributeSet) IsUserOwned() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isUserOwned")) + return rv +} + +// A value that indicates the user purchased or owns the item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableitemattributeset/2887564-userowned?language=objc +func (s_ SearchableItemAttributeSet) SetUserOwned(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setUserOwned:"), value) } diff --git a/macos/corevideo/aliastypes.gen.go b/macos/corevideo/aliastypes.gen.go index bd5df48b..ba72d502 100644 --- a/macos/corevideo/aliastypes.gen.go +++ b/macos/corevideo/aliastypes.gen.go @@ -11,7 +11,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/corevideo/cvdisplaylinkoutputcallback?language=objc type DisplayLinkOutputCallback = func(displayLink DisplayLinkRef, inNow *TimeStamp, inOutputTime *TimeStamp, flagsIn OptionFlags, flagsOut *OptionFlags, displayLinkContext unsafe.Pointer) Return -// Defines a pointer to a pixel buffer release callback function, which is called when a pixel buffer created by [corevideo/cvpixelbuffercreatewithplanarbyt] is released. [Full Topic] +// Defines a pointer to a pixel buffer release callback function, which is called when a pixel buffer created by CVPixelBufferCreateWithPlanarBytes is released. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corevideo/cvpixelbufferreleaseplanarbytescallback?language=objc type PixelBufferReleasePlanarBytesCallback = func(releaseRefCon unsafe.Pointer, dataPtr unsafe.Pointer, dataSize uint, numberOfPlanes uint, planeAddresses unsafe.Pointer) diff --git a/macos/corevideo/enumtypes.gen.go b/macos/corevideo/enumtypes.gen.go index f78e303b..5f101560 100644 --- a/macos/corevideo/enumtypes.gen.go +++ b/macos/corevideo/enumtypes.gen.go @@ -17,7 +17,7 @@ const ( // [Full Topic]: https://developer.apple.com/documentation/corevideo/cvoptionflags?language=objc type OptionFlags uint64 -// The flags to pass to [corevideo/cvpixelbufferlockbaseaddress] and [corevideo/cvpixelbufferunlockbaseaddress]. [Full Topic] +// The flags to pass to CVPixelBufferLockBaseAddress and CVPixelBufferUnlockBaseAddress. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corevideo/cvpixelbufferlockflags?language=objc type PixelBufferLockFlags OptionFlags diff --git a/macos/fileprovider/file_provider_change_observer_protocol.gen.go b/macos/fileprovider/file_provider_change_observer_protocol.gen.go index 4a2ecc96..a7e34b63 100644 --- a/macos/fileprovider/file_provider_change_observer_protocol.gen.go +++ b/macos/fileprovider/file_provider_change_observer_protocol.gen.go @@ -12,8 +12,8 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderchangeobserver?language=objc type PFileProviderChangeObserver interface { // optional - DidDeleteItemsWithIdentifiers(deletedItemIdentifiers []FileProviderItemIdentifier) - HasDidDeleteItemsWithIdentifiers() bool + FinishEnumeratingWithError(error foundation.Error) + HasFinishEnumeratingWithError() bool // optional FinishEnumeratingChangesUpToSyncAnchorMoreComing(anchor FileProviderSyncAnchor, moreComing bool) @@ -24,8 +24,8 @@ type PFileProviderChangeObserver interface { HasDidUpdateItems() bool // optional - FinishEnumeratingWithError(error foundation.Error) - HasFinishEnumeratingWithError() bool + DidDeleteItemsWithIdentifiers(deletedItemIdentifiers []FileProviderItemIdentifier) + HasDidDeleteItemsWithIdentifiers() bool // optional SuggestedBatchSize() int @@ -40,15 +40,15 @@ type FileProviderChangeObserverObject struct { objc.Object } -func (f_ FileProviderChangeObserverObject) HasDidDeleteItemsWithIdentifiers() bool { - return f_.RespondsToSelector(objc.Sel("didDeleteItemsWithIdentifiers:")) +func (f_ FileProviderChangeObserverObject) HasFinishEnumeratingWithError() bool { + return f_.RespondsToSelector(objc.Sel("finishEnumeratingWithError:")) } -// Tells the observer that the specified items have been deleted. [Full Topic] +// Tells the observer that an error occurred during change notification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderchangeobserver/2879604-diddeleteitemswithidentifiers?language=objc -func (f_ FileProviderChangeObserverObject) DidDeleteItemsWithIdentifiers(deletedItemIdentifiers []FileProviderItemIdentifier) { - objc.Call[objc.Void](f_, objc.Sel("didDeleteItemsWithIdentifiers:"), deletedItemIdentifiers) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderchangeobserver/2879605-finishenumeratingwitherror?language=objc +func (f_ FileProviderChangeObserverObject) FinishEnumeratingWithError(error foundation.Error) { + objc.Call[objc.Void](f_, objc.Sel("finishEnumeratingWithError:"), error) } func (f_ FileProviderChangeObserverObject) HasFinishEnumeratingChangesUpToSyncAnchorMoreComing() bool { @@ -73,15 +73,15 @@ func (f_ FileProviderChangeObserverObject) DidUpdateItems(updatedItems []objc.Ob objc.Call[objc.Void](f_, objc.Sel("didUpdateItems:"), updatedItems) } -func (f_ FileProviderChangeObserverObject) HasFinishEnumeratingWithError() bool { - return f_.RespondsToSelector(objc.Sel("finishEnumeratingWithError:")) +func (f_ FileProviderChangeObserverObject) HasDidDeleteItemsWithIdentifiers() bool { + return f_.RespondsToSelector(objc.Sel("didDeleteItemsWithIdentifiers:")) } -// Tells the observer that an error occurred during change notification. [Full Topic] +// Tells the observer that the specified items have been deleted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderchangeobserver/2879605-finishenumeratingwitherror?language=objc -func (f_ FileProviderChangeObserverObject) FinishEnumeratingWithError(error foundation.Error) { - objc.Call[objc.Void](f_, objc.Sel("finishEnumeratingWithError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderchangeobserver/2879604-diddeleteitemswithidentifiers?language=objc +func (f_ FileProviderChangeObserverObject) DidDeleteItemsWithIdentifiers(deletedItemIdentifiers []FileProviderItemIdentifier) { + objc.Call[objc.Void](f_, objc.Sel("didDeleteItemsWithIdentifiers:"), deletedItemIdentifiers) } func (f_ FileProviderChangeObserverObject) HasSuggestedBatchSize() bool { diff --git a/macos/fileprovider/file_provider_domain.gen.go b/macos/fileprovider/file_provider_domain.gen.go index b4d92229..6f4264ba 100644 --- a/macos/fileprovider/file_provider_domain.gen.go +++ b/macos/fileprovider/file_provider_domain.gen.go @@ -18,14 +18,14 @@ type _FileProviderDomainClass struct { // An interface definition for the [FileProviderDomain] class. type IFileProviderDomain interface { objc.IObject + IsHidden() bool + SetHidden(value bool) + UserEnabled() bool IsDisconnected() bool TestingModes() FileProviderDomainTestingModes SetTestingModes(value FileProviderDomainTestingModes) - UserEnabled() bool - Identifier() FileProviderDomainIdentifier DisplayName() string - IsHidden() bool - SetHidden(value bool) + Identifier() FileProviderDomainIdentifier BackingStoreIdentity() []byte } @@ -76,6 +76,29 @@ func (f_ FileProviderDomain) Init() FileProviderDomain { return rv } +// A Boolean value that determines whether the domain is visible to users. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/3553283-hidden?language=objc +func (f_ FileProviderDomain) IsHidden() bool { + rv := objc.Call[bool](f_, objc.Sel("isHidden")) + return rv +} + +// A Boolean value that determines whether the domain is visible to users. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/3553283-hidden?language=objc +func (f_ FileProviderDomain) SetHidden(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setHidden:"), value) +} + +// A Boolean value that indicates whether the user has enabled or disabled the domain. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/3553284-userenabled?language=objc +func (f_ FileProviderDomain) UserEnabled() bool { + rv := objc.Call[bool](f_, objc.Sel("userEnabled")) + return rv +} + // A Boolean value indicating that the domain is present, but disconnected from the file extension. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/3294483-disconnected?language=objc @@ -99,22 +122,6 @@ func (f_ FileProviderDomain) SetTestingModes(value FileProviderDomainTestingMode objc.Call[objc.Void](f_, objc.Sel("setTestingModes:"), value) } -// A Boolean value that indicates whether the user has enabled or disabled the domain. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/3553284-userenabled?language=objc -func (f_ FileProviderDomain) UserEnabled() bool { - rv := objc.Call[bool](f_, objc.Sel("userEnabled")) - return rv -} - -// The domain's unique identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/2882117-identifier?language=objc -func (f_ FileProviderDomain) Identifier() FileProviderDomainIdentifier { - rv := objc.Call[FileProviderDomainIdentifier](f_, objc.Sel("identifier")) - return rv -} - // The name of the domain displayed in the user interface. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/2882119-displayname?language=objc @@ -123,21 +130,14 @@ func (f_ FileProviderDomain) DisplayName() string { return rv } -// A Boolean value that determines whether the domain is visible to users. [Full Topic] +// The domain's unique identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/3553283-hidden?language=objc -func (f_ FileProviderDomain) IsHidden() bool { - rv := objc.Call[bool](f_, objc.Sel("isHidden")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/2882117-identifier?language=objc +func (f_ FileProviderDomain) Identifier() FileProviderDomainIdentifier { + rv := objc.Call[FileProviderDomainIdentifier](f_, objc.Sel("identifier")) return rv } -// A Boolean value that determines whether the domain is visible to users. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/3553283-hidden?language=objc -func (f_ FileProviderDomain) SetHidden(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setHidden:"), value) -} - // A unique identifier for the backing store used by the system. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain/3852591-backingstoreidentity?language=objc diff --git a/macos/fileprovider/file_provider_enumeration_observer_protocol.gen.go b/macos/fileprovider/file_provider_enumeration_observer_protocol.gen.go index 725726f9..e59a9f75 100644 --- a/macos/fileprovider/file_provider_enumeration_observer_protocol.gen.go +++ b/macos/fileprovider/file_provider_enumeration_observer_protocol.gen.go @@ -11,6 +11,10 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerationobserver?language=objc type PFileProviderEnumerationObserver interface { + // optional + FinishEnumeratingWithError(error foundation.Error) + HasFinishEnumeratingWithError() bool + // optional DidEnumerateItems(updatedItems []objc.Object) HasDidEnumerateItems() bool @@ -19,10 +23,6 @@ type PFileProviderEnumerationObserver interface { FinishEnumeratingUpToPage(nextPage FileProviderPage) HasFinishEnumeratingUpToPage() bool - // optional - FinishEnumeratingWithError(error foundation.Error) - HasFinishEnumeratingWithError() bool - // optional SuggestedPageSize() int HasSuggestedPageSize() bool @@ -36,6 +36,17 @@ type FileProviderEnumerationObserverObject struct { objc.Object } +func (f_ FileProviderEnumerationObserverObject) HasFinishEnumeratingWithError() bool { + return f_.RespondsToSelector(objc.Sel("finishEnumeratingWithError:")) +} + +// Tells the observer that an error occurred during item enumeration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerationobserver/2879612-finishenumeratingwitherror?language=objc +func (f_ FileProviderEnumerationObserverObject) FinishEnumeratingWithError(error foundation.Error) { + objc.Call[objc.Void](f_, objc.Sel("finishEnumeratingWithError:"), error) +} + func (f_ FileProviderEnumerationObserverObject) HasDidEnumerateItems() bool { return f_.RespondsToSelector(objc.Sel("didEnumerateItems:")) } @@ -58,17 +69,6 @@ func (f_ FileProviderEnumerationObserverObject) FinishEnumeratingUpToPage(nextPa objc.Call[objc.Void](f_, objc.Sel("finishEnumeratingUpToPage:"), nextPage) } -func (f_ FileProviderEnumerationObserverObject) HasFinishEnumeratingWithError() bool { - return f_.RespondsToSelector(objc.Sel("finishEnumeratingWithError:")) -} - -// Tells the observer that an error occurred during item enumeration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerationobserver/2879612-finishenumeratingwitherror?language=objc -func (f_ FileProviderEnumerationObserverObject) FinishEnumeratingWithError(error foundation.Error) { - objc.Call[objc.Void](f_, objc.Sel("finishEnumeratingWithError:"), error) -} - func (f_ FileProviderEnumerationObserverObject) HasSuggestedPageSize() bool { return f_.RespondsToSelector(objc.Sel("suggestedPageSize")) } diff --git a/macos/fileprovider/file_provider_enumerator_protocol.gen.go b/macos/fileprovider/file_provider_enumerator_protocol.gen.go index 7ad6af15..0d6008af 100644 --- a/macos/fileprovider/file_provider_enumerator_protocol.gen.go +++ b/macos/fileprovider/file_provider_enumerator_protocol.gen.go @@ -10,14 +10,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerator?language=objc type PFileProviderEnumerator interface { - // optional - EnumerateItemsForObserverStartingAtPage(observer FileProviderEnumerationObserverObject, page FileProviderPage) - HasEnumerateItemsForObserverStartingAtPage() bool - // optional EnumerateChangesForObserverFromSyncAnchor(observer FileProviderChangeObserverObject, syncAnchor FileProviderSyncAnchor) HasEnumerateChangesForObserverFromSyncAnchor() bool + // optional + EnumerateItemsForObserverStartingAtPage(observer FileProviderEnumerationObserverObject, page FileProviderPage) + HasEnumerateItemsForObserverStartingAtPage() bool + // optional CurrentSyncAnchorWithCompletionHandler(completionHandler func(currentAnchor FileProviderSyncAnchor)) HasCurrentSyncAnchorWithCompletionHandler() bool @@ -35,18 +35,6 @@ type FileProviderEnumeratorObject struct { objc.Object } -func (f_ FileProviderEnumeratorObject) HasEnumerateItemsForObserverStartingAtPage() bool { - return f_.RespondsToSelector(objc.Sel("enumerateItemsForObserver:startingAtPage:")) -} - -// Requests the next batch of items, starting at the specified page. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerator/2879613-enumerateitemsforobserver?language=objc -func (f_ FileProviderEnumeratorObject) EnumerateItemsForObserverStartingAtPage(observer FileProviderEnumerationObserverObject, page FileProviderPage) { - po0 := objc.WrapAsProtocol("NSFileProviderEnumerationObserver", observer) - objc.Call[objc.Void](f_, objc.Sel("enumerateItemsForObserver:startingAtPage:"), po0, page) -} - func (f_ FileProviderEnumeratorObject) HasEnumerateChangesForObserverFromSyncAnchor() bool { return f_.RespondsToSelector(objc.Sel("enumerateChangesForObserver:fromSyncAnchor:")) } @@ -59,6 +47,18 @@ func (f_ FileProviderEnumeratorObject) EnumerateChangesForObserverFromSyncAnchor objc.Call[objc.Void](f_, objc.Sel("enumerateChangesForObserver:fromSyncAnchor:"), po0, syncAnchor) } +func (f_ FileProviderEnumeratorObject) HasEnumerateItemsForObserverStartingAtPage() bool { + return f_.RespondsToSelector(objc.Sel("enumerateItemsForObserver:startingAtPage:")) +} + +// Requests the next batch of items, starting at the specified page. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerator/2879613-enumerateitemsforobserver?language=objc +func (f_ FileProviderEnumeratorObject) EnumerateItemsForObserverStartingAtPage(observer FileProviderEnumerationObserverObject, page FileProviderPage) { + po0 := objc.WrapAsProtocol("NSFileProviderEnumerationObserver", observer) + objc.Call[objc.Void](f_, objc.Sel("enumerateItemsForObserver:startingAtPage:"), po0, page) +} + func (f_ FileProviderEnumeratorObject) HasCurrentSyncAnchorWithCompletionHandler() bool { return f_.RespondsToSelector(objc.Sel("currentSyncAnchorWithCompletionHandler:")) } diff --git a/macos/fileprovider/file_provider_item_version.gen.go b/macos/fileprovider/file_provider_item_version.gen.go index ad7cd8e5..ebca09ef 100644 --- a/macos/fileprovider/file_provider_item_version.gen.go +++ b/macos/fileprovider/file_provider_item_version.gen.go @@ -18,8 +18,8 @@ type _FileProviderItemVersionClass struct { // An interface definition for the [FileProviderItemVersion] class. type IFileProviderItemVersion interface { objc.IObject - ContentVersion() []byte MetadataVersion() []byte + ContentVersion() []byte } // The version of the item’s content and its metadata. [Full Topic] @@ -69,14 +69,6 @@ func (f_ FileProviderItemVersion) Init() FileProviderItemVersion { return rv } -// An opaque object used to track versions of the item’s content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovideritemversion/3043898-contentversion?language=objc -func (f_ FileProviderItemVersion) ContentVersion() []byte { - rv := objc.Call[[]byte](f_, objc.Sel("contentVersion")) - return rv -} - // An opaque object used to track versions of the item’s metadata. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovideritemversion/3043900-metadataversion?language=objc @@ -99,3 +91,11 @@ func (fc _FileProviderItemVersionClass) BeforeFirstSyncComponent() []byte { func FileProviderItemVersion_BeforeFirstSyncComponent() []byte { return FileProviderItemVersionClass.BeforeFirstSyncComponent() } + +// An opaque object used to track versions of the item’s content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovideritemversion/3043898-contentversion?language=objc +func (f_ FileProviderItemVersion) ContentVersion() []byte { + rv := objc.Call[[]byte](f_, objc.Sel("contentVersion")) + return rv +} diff --git a/macos/fileprovider/file_provider_manager.gen.go b/macos/fileprovider/file_provider_manager.gen.go index c969fca3..3799be45 100644 --- a/macos/fileprovider/file_provider_manager.gen.go +++ b/macos/fileprovider/file_provider_manager.gen.go @@ -19,22 +19,22 @@ type _FileProviderManagerClass struct { // An interface definition for the [FileProviderManager] class. type IFileProviderManager interface { objc.IObject + ReimportItemsBelowItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) + SignalErrorResolvedCompletionHandler(error foundation.IError, completionHandler func(error foundation.Error)) WaitForStabilizationWithCompletionHandler(completionHandler func(error foundation.Error)) - GlobalProgressForKind(kind foundation.ProgressFileOperationKind) foundation.Progress - GetUserVisibleURLForItemIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(userVisibleFile foundation.URL, error foundation.Error)) + EvictItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) + RegisterURLSessionTaskForItemWithIdentifierCompletionHandler(task foundation.IURLSessionTask, identifier FileProviderItemIdentifier, completion func(error foundation.Error)) + DisconnectWithReasonOptionsCompletionHandler(localizedReason string, options FileProviderManagerDisconnectionOptions, completionHandler func(error foundation.Error)) + SignalEnumeratorForContainerItemIdentifierCompletionHandler(containerItemIdentifier FileProviderItemIdentifier, completion func(error foundation.Error)) ListAvailableTestingOperationsWithError(error unsafe.Pointer) []FileProviderTestingOperationObject - EnumeratorForMaterializedItems() FileProviderEnumeratorObject WaitForChangesOnItemsBelowItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) - SignalEnumeratorForContainerItemIdentifierCompletionHandler(containerItemIdentifier FileProviderItemIdentifier, completion func(error foundation.Error)) - SignalErrorResolvedCompletionHandler(error foundation.IError, completionHandler func(error foundation.Error)) - RunTestingOperationsError(operations []PFileProviderTestingOperation, error unsafe.Pointer) foundation.Dictionary + GlobalProgressForKind(kind foundation.ProgressFileOperationKind) foundation.Progress + EnumeratorForMaterializedItems() FileProviderEnumeratorObject + GetUserVisibleURLForItemIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(userVisibleFile foundation.URL, error foundation.Error)) ReconnectWithCompletionHandler(completionHandler func(error foundation.Error)) - EvictItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) - DisconnectWithReasonOptionsCompletionHandler(localizedReason string, options FileProviderManagerDisconnectionOptions, completionHandler func(error foundation.Error)) TemporaryDirectoryURLWithError(error unsafe.Pointer) foundation.URL + RunTestingOperationsError(operations []PFileProviderTestingOperation, error unsafe.Pointer) foundation.Dictionary EnumeratorForPendingItems() FileProviderPendingSetEnumeratorObject - ReimportItemsBelowItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) - RegisterURLSessionTaskForItemWithIdentifierCompletionHandler(task foundation.IURLSessionTask, identifier FileProviderItemIdentifier, completion func(error foundation.Error)) } // A manager object that you use to communicate with the file provider from either your app or your File Provider extension. [Full Topic] @@ -82,6 +82,20 @@ func (f_ FileProviderManager) Init() FileProviderManager { return rv } +// Tells the system to reimport the item and its content recursively. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3181165-reimportitemsbelowitemwithidenti?language=objc +func (f_ FileProviderManager) ReimportItemsBelowItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("reimportItemsBelowItemWithIdentifier:completionHandler:"), itemIdentifier, completionHandler) +} + +// Indicates a resolved error. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3656534-signalerrorresolved?language=objc +func (f_ FileProviderManager) SignalErrorResolvedCompletionHandler(error foundation.IError, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("signalErrorResolved:completionHandler:"), error, completionHandler) +} + // Requests a notification after the domain stabilizes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3567073-waitforstabilizationwithcompleti?language=objc @@ -89,56 +103,53 @@ func (f_ FileProviderManager) WaitForStabilizationWithCompletionHandler(completi objc.Call[objc.Void](f_, objc.Sel("waitForStabilizationWithCompletionHandler:"), completionHandler) } -// Returns a progress object that tracks either the uploading or downloading of items from the File Provider extension’s remote storage. [Full Topic] +// Returns all of the File Provider extension's domains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3731236-globalprogressforkind?language=objc -func (f_ FileProviderManager) GlobalProgressForKind(kind foundation.ProgressFileOperationKind) foundation.Progress { - rv := objc.Call[foundation.Progress](f_, objc.Sel("globalProgressForKind:"), kind) - return rv +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2882045-getdomainswithcompletionhandler?language=objc +func (fc _FileProviderManagerClass) GetDomainsWithCompletionHandler(completionHandler func(domains []FileProviderDomain, error foundation.Error)) { + objc.Call[objc.Void](fc, objc.Sel("getDomainsWithCompletionHandler:"), completionHandler) } -// Returns the user-visible URL for an item. [Full Topic] +// Returns all of the File Provider extension's domains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3074520-getuservisibleurlforitemidentifi?language=objc -func (f_ FileProviderManager) GetUserVisibleURLForItemIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(userVisibleFile foundation.URL, error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("getUserVisibleURLForItemIdentifier:completionHandler:"), itemIdentifier, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2882045-getdomainswithcompletionhandler?language=objc +func FileProviderManager_GetDomainsWithCompletionHandler(completionHandler func(domains []FileProviderDomain, error foundation.Error)) { + FileProviderManagerClass.GetDomainsWithCompletionHandler(completionHandler) } -// Lists all the operations that are ready for scheduling. [Full Topic] +// Removes all domains from the File Provider extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3727823-listavailabletestingoperationswi?language=objc -func (f_ FileProviderManager) ListAvailableTestingOperationsWithError(error unsafe.Pointer) []FileProviderTestingOperationObject { - rv := objc.Call[[]FileProviderTestingOperationObject](f_, objc.Sel("listAvailableTestingOperationsWithError:"), error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2882044-removealldomainswithcompletionha?language=objc +func (fc _FileProviderManagerClass) RemoveAllDomainsWithCompletionHandler(completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](fc, objc.Sel("removeAllDomainsWithCompletionHandler:"), completionHandler) } -// Adds a domain to the File Provider extension. [Full Topic] +// Removes all domains from the File Provider extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2890934-adddomain?language=objc -func (fc _FileProviderManagerClass) AddDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](fc, objc.Sel("addDomain:completionHandler:"), domain, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2882044-removealldomainswithcompletionha?language=objc +func FileProviderManager_RemoveAllDomainsWithCompletionHandler(completionHandler func(error foundation.Error)) { + FileProviderManagerClass.RemoveAllDomainsWithCompletionHandler(completionHandler) } -// Adds a domain to the File Provider extension. [Full Topic] +// Asks the system to remove an item from its cache. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2890934-adddomain?language=objc -func FileProviderManager_AddDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { - FileProviderManagerClass.AddDomainCompletionHandler(domain, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3191974-evictitemwithidentifier?language=objc +func (f_ FileProviderManager) EvictItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("evictItemWithIdentifier:completionHandler:"), itemIdentifier, completionHandler) } -// Returns an enumerator for all the items the system currently stores on disk. [Full Topic] +// Registers the URL session task responsible for the specified item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3181167-enumeratorformaterializeditems?language=objc -func (f_ FileProviderManager) EnumeratorForMaterializedItems() FileProviderEnumeratorObject { - rv := objc.Call[FileProviderEnumeratorObject](f_, objc.Sel("enumeratorForMaterializedItems")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2890932-registerurlsessiontask?language=objc +func (f_ FileProviderManager) RegisterURLSessionTaskForItemWithIdentifierCompletionHandler(task foundation.IURLSessionTask, identifier FileProviderItemIdentifier, completion func(error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("registerURLSessionTask:forItemWithIdentifier:completionHandler:"), task, identifier, completion) } -// Requests a notification after the system completes all the specified changes. [Full Topic] +// Disconnects the domain from the extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3585198-waitforchangesonitemsbelowitemwi?language=objc -func (f_ FileProviderManager) WaitForChangesOnItemsBelowItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("waitForChangesOnItemsBelowItemWithIdentifier:completionHandler:"), itemIdentifier, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3603576-disconnectwithreason?language=objc +func (f_ FileProviderManager) DisconnectWithReasonOptionsCompletionHandler(localizedReason string, options FileProviderManagerDisconnectionOptions, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("disconnectWithReason:options:completionHandler:"), localizedReason, options, completionHandler) } // Alerts the system to changes in the specified folder’s content. [Full Topic] @@ -148,89 +159,62 @@ func (f_ FileProviderManager) SignalEnumeratorForContainerItemIdentifierCompleti objc.Call[objc.Void](f_, objc.Sel("signalEnumeratorForContainerItemIdentifier:completionHandler:"), containerItemIdentifier, completion) } -// Indicates a resolved error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3656534-signalerrorresolved?language=objc -func (f_ FileProviderManager) SignalErrorResolvedCompletionHandler(error foundation.IError, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("signalErrorResolved:completionHandler:"), error, completionHandler) -} - -// Asks the system to schedule and execute the specified operations. [Full Topic] +// Lists all the operations that are ready for scheduling. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3727824-runtestingoperations?language=objc -func (f_ FileProviderManager) RunTestingOperationsError(operations []PFileProviderTestingOperation, error unsafe.Pointer) foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](f_, objc.Sel("runTestingOperations:error:"), operations, error) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3727823-listavailabletestingoperationswi?language=objc +func (f_ FileProviderManager) ListAvailableTestingOperationsWithError(error unsafe.Pointer) []FileProviderTestingOperationObject { + rv := objc.Call[[]FileProviderTestingOperationObject](f_, objc.Sel("listAvailableTestingOperationsWithError:"), error) return rv } -// Returns the identifier and domain for a user-visible URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3074519-getidentifierforuservisiblefilea?language=objc -func (fc _FileProviderManagerClass) GetIdentifierForUserVisibleFileAtURLCompletionHandler(url foundation.IURL, completionHandler func(itemIdentifier FileProviderItemIdentifier, domainIdentifier FileProviderDomainIdentifier, error foundation.Error)) { - objc.Call[objc.Void](fc, objc.Sel("getIdentifierForUserVisibleFileAtURL:completionHandler:"), url, completionHandler) -} - -// Returns the identifier and domain for a user-visible URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3074519-getidentifierforuservisiblefilea?language=objc -func FileProviderManager_GetIdentifierForUserVisibleFileAtURLCompletionHandler(url foundation.IURL, completionHandler func(itemIdentifier FileProviderItemIdentifier, domainIdentifier FileProviderDomainIdentifier, error foundation.Error)) { - FileProviderManagerClass.GetIdentifierForUserVisibleFileAtURLCompletionHandler(url, completionHandler) -} - -// Reconnects the domain with the extension. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3603577-reconnectwithcompletionhandler?language=objc -func (f_ FileProviderManager) ReconnectWithCompletionHandler(completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("reconnectWithCompletionHandler:"), completionHandler) -} - -// Removes a domain from the File Provider extension. [Full Topic] +// Requests a notification after the system completes all the specified changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2890933-removedomain?language=objc -func (fc _FileProviderManagerClass) RemoveDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](fc, objc.Sel("removeDomain:completionHandler:"), domain, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3585198-waitforchangesonitemsbelowitemwi?language=objc +func (f_ FileProviderManager) WaitForChangesOnItemsBelowItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("waitForChangesOnItemsBelowItemWithIdentifier:completionHandler:"), itemIdentifier, completionHandler) } -// Removes a domain from the File Provider extension. [Full Topic] +// Returns a progress object that tracks either the uploading or downloading of items from the File Provider extension’s remote storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2890933-removedomain?language=objc -func FileProviderManager_RemoveDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { - FileProviderManagerClass.RemoveDomainCompletionHandler(domain, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3731236-globalprogressforkind?language=objc +func (f_ FileProviderManager) GlobalProgressForKind(kind foundation.ProgressFileOperationKind) foundation.Progress { + rv := objc.Call[foundation.Progress](f_, objc.Sel("globalProgressForKind:"), kind) + return rv } -// Asks the system to remove an item from its cache. [Full Topic] +// Adds a domain to the File Provider extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3191974-evictitemwithidentifier?language=objc -func (f_ FileProviderManager) EvictItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("evictItemWithIdentifier:completionHandler:"), itemIdentifier, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2890934-adddomain?language=objc +func (fc _FileProviderManagerClass) AddDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](fc, objc.Sel("addDomain:completionHandler:"), domain, completionHandler) } -// Disconnects the domain from the extension. [Full Topic] +// Adds a domain to the File Provider extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3603576-disconnectwithreason?language=objc -func (f_ FileProviderManager) DisconnectWithReasonOptionsCompletionHandler(localizedReason string, options FileProviderManagerDisconnectionOptions, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("disconnectWithReason:options:completionHandler:"), localizedReason, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2890934-adddomain?language=objc +func FileProviderManager_AddDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { + FileProviderManagerClass.AddDomainCompletionHandler(domain, completionHandler) } -// Returns all of the File Provider extension's domains. [Full Topic] +// Returns the identifier and domain for a user-visible URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2882045-getdomainswithcompletionhandler?language=objc -func (fc _FileProviderManagerClass) GetDomainsWithCompletionHandler(completionHandler func(domains []FileProviderDomain, error foundation.Error)) { - objc.Call[objc.Void](fc, objc.Sel("getDomainsWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3074519-getidentifierforuservisiblefilea?language=objc +func (fc _FileProviderManagerClass) GetIdentifierForUserVisibleFileAtURLCompletionHandler(url foundation.IURL, completionHandler func(itemIdentifier FileProviderItemIdentifier, domainIdentifier FileProviderDomainIdentifier, error foundation.Error)) { + objc.Call[objc.Void](fc, objc.Sel("getIdentifierForUserVisibleFileAtURL:completionHandler:"), url, completionHandler) } -// Returns all of the File Provider extension's domains. [Full Topic] +// Returns the identifier and domain for a user-visible URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2882045-getdomainswithcompletionhandler?language=objc -func FileProviderManager_GetDomainsWithCompletionHandler(completionHandler func(domains []FileProviderDomain, error foundation.Error)) { - FileProviderManagerClass.GetDomainsWithCompletionHandler(completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3074519-getidentifierforuservisiblefilea?language=objc +func FileProviderManager_GetIdentifierForUserVisibleFileAtURLCompletionHandler(url foundation.IURL, completionHandler func(itemIdentifier FileProviderItemIdentifier, domainIdentifier FileProviderDomainIdentifier, error foundation.Error)) { + FileProviderManagerClass.GetIdentifierForUserVisibleFileAtURLCompletionHandler(url, completionHandler) } -// Returns the URL of a directory that the File Provider extension can use to temporarily store files before passing them to the system. [Full Topic] +// Returns an enumerator for all the items the system currently stores on disk. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3656535-temporarydirectoryurlwitherror?language=objc -func (f_ FileProviderManager) TemporaryDirectoryURLWithError(error unsafe.Pointer) foundation.URL { - rv := objc.Call[foundation.URL](f_, objc.Sel("temporaryDirectoryURLWithError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3181167-enumeratorformaterializeditems?language=objc +func (f_ FileProviderManager) EnumeratorForMaterializedItems() FileProviderEnumeratorObject { + rv := objc.Call[FileProviderEnumeratorObject](f_, objc.Sel("enumeratorForMaterializedItems")) return rv } @@ -248,52 +232,54 @@ func FileProviderManager_ImportDomainFromDirectoryAtURLCompletionHandler(domain FileProviderManagerClass.ImportDomainFromDirectoryAtURLCompletionHandler(domain, url, completionHandler) } -// Removes a domain from the File Provider extension using the specified options. [Full Topic] +// Returns the user-visible URL for an item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3793733-removedomain?language=objc -func (fc _FileProviderManagerClass) RemoveDomainModeCompletionHandler(domain IFileProviderDomain, mode FileProviderDomainRemovalMode, completionHandler func(preservedLocation foundation.URL, error foundation.Error)) { - objc.Call[objc.Void](fc, objc.Sel("removeDomain:mode:completionHandler:"), domain, mode, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3074520-getuservisibleurlforitemidentifi?language=objc +func (f_ FileProviderManager) GetUserVisibleURLForItemIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(userVisibleFile foundation.URL, error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("getUserVisibleURLForItemIdentifier:completionHandler:"), itemIdentifier, completionHandler) } -// Removes a domain from the File Provider extension using the specified options. [Full Topic] +// Reconnects the domain with the extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3793733-removedomain?language=objc -func FileProviderManager_RemoveDomainModeCompletionHandler(domain IFileProviderDomain, mode FileProviderDomainRemovalMode, completionHandler func(preservedLocation foundation.URL, error foundation.Error)) { - FileProviderManagerClass.RemoveDomainModeCompletionHandler(domain, mode, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3603577-reconnectwithcompletionhandler?language=objc +func (f_ FileProviderManager) ReconnectWithCompletionHandler(completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("reconnectWithCompletionHandler:"), completionHandler) } -// Removes all domains from the File Provider extension. [Full Topic] +// Removes a domain from the File Provider extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2882044-removealldomainswithcompletionha?language=objc -func (fc _FileProviderManagerClass) RemoveAllDomainsWithCompletionHandler(completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](fc, objc.Sel("removeAllDomainsWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2890933-removedomain?language=objc +func (fc _FileProviderManagerClass) RemoveDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](fc, objc.Sel("removeDomain:completionHandler:"), domain, completionHandler) } -// Removes all domains from the File Provider extension. [Full Topic] +// Removes a domain from the File Provider extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2882044-removealldomainswithcompletionha?language=objc -func FileProviderManager_RemoveAllDomainsWithCompletionHandler(completionHandler func(error foundation.Error)) { - FileProviderManagerClass.RemoveAllDomainsWithCompletionHandler(completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2890933-removedomain?language=objc +func FileProviderManager_RemoveDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { + FileProviderManagerClass.RemoveDomainCompletionHandler(domain, completionHandler) } -// Returns an enumerator for the set of pending items. [Full Topic] +// Returns the URL of a directory that the File Provider extension can use to temporarily store files before passing them to the system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3727809-enumeratorforpendingitems?language=objc -func (f_ FileProviderManager) EnumeratorForPendingItems() FileProviderPendingSetEnumeratorObject { - rv := objc.Call[FileProviderPendingSetEnumeratorObject](f_, objc.Sel("enumeratorForPendingItems")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3656535-temporarydirectoryurlwitherror?language=objc +func (f_ FileProviderManager) TemporaryDirectoryURLWithError(error unsafe.Pointer) foundation.URL { + rv := objc.Call[foundation.URL](f_, objc.Sel("temporaryDirectoryURLWithError:"), error) return rv } -// Tells the system to reimport the item and its content recursively. [Full Topic] +// Asks the system to schedule and execute the specified operations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3181165-reimportitemsbelowitemwithidenti?language=objc -func (f_ FileProviderManager) ReimportItemsBelowItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("reimportItemsBelowItemWithIdentifier:completionHandler:"), itemIdentifier, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3727824-runtestingoperations?language=objc +func (f_ FileProviderManager) RunTestingOperationsError(operations []PFileProviderTestingOperation, error unsafe.Pointer) foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](f_, objc.Sel("runTestingOperations:error:"), operations, error) + return rv } -// Registers the URL session task responsible for the specified item. [Full Topic] +// Returns an enumerator for the set of pending items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/2890932-registerurlsessiontask?language=objc -func (f_ FileProviderManager) RegisterURLSessionTaskForItemWithIdentifierCompletionHandler(task foundation.IURLSessionTask, identifier FileProviderItemIdentifier, completion func(error foundation.Error)) { - objc.Call[objc.Void](f_, objc.Sel("registerURLSessionTask:forItemWithIdentifier:completionHandler:"), task, identifier, completion) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3727809-enumeratorforpendingitems?language=objc +func (f_ FileProviderManager) EnumeratorForPendingItems() FileProviderPendingSetEnumeratorObject { + rv := objc.Call[FileProviderPendingSetEnumeratorObject](f_, objc.Sel("enumeratorForPendingItems")) + return rv } diff --git a/macos/fileprovider/file_provider_replicated_extension_protocol.gen.go b/macos/fileprovider/file_provider_replicated_extension_protocol.gen.go index dae3c226..f2145ec6 100644 --- a/macos/fileprovider/file_provider_replicated_extension_protocol.gen.go +++ b/macos/fileprovider/file_provider_replicated_extension_protocol.gen.go @@ -12,40 +12,40 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension?language=objc type PFileProviderReplicatedExtension interface { // optional - ItemForIdentifierRequestCompletionHandler(identifier FileProviderItemIdentifier, request FileProviderRequest, completionHandler func(arg0 objc.Object, arg1 foundation.Error)) foundation.Progress - HasItemForIdentifierRequestCompletionHandler() bool + CreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler(itemTemplate objc.Object, fields FileProviderItemFields, url foundation.URL, options FileProviderCreateItemOptions, request FileProviderRequest, completionHandler func(createdItem objc.Object, stillPendingFields FileProviderItemFields, shouldFetchContent bool, error foundation.Error)) foundation.Progress + HasCreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler() bool // optional - MaterializedItemsDidChangeWithCompletionHandler(completionHandler func()) - HasMaterializedItemsDidChangeWithCompletionHandler() bool + ImportDidFinishWithCompletionHandler(completionHandler func()) + HasImportDidFinishWithCompletionHandler() bool // optional - Invalidate() - HasInvalidate() bool + MaterializedItemsDidChangeWithCompletionHandler(completionHandler func()) + HasMaterializedItemsDidChangeWithCompletionHandler() bool // optional - PendingItemsDidChangeWithCompletionHandler(completionHandler func()) - HasPendingItemsDidChangeWithCompletionHandler() bool + DeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler(identifier FileProviderItemIdentifier, version FileProviderItemVersion, options FileProviderDeleteItemOptions, request FileProviderRequest, completionHandler func(arg0 foundation.Error)) foundation.Progress + HasDeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler() bool // optional - ModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler(item objc.Object, version FileProviderItemVersion, changedFields FileProviderItemFields, newContents foundation.URL, options FileProviderModifyItemOptions, request FileProviderRequest, completionHandler func(item objc.Object, stillPendingFields FileProviderItemFields, shouldFetchContent bool, error foundation.Error)) foundation.Progress - HasModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler() bool + ItemForIdentifierRequestCompletionHandler(identifier FileProviderItemIdentifier, request FileProviderRequest, completionHandler func(arg0 objc.Object, arg1 foundation.Error)) foundation.Progress + HasItemForIdentifierRequestCompletionHandler() bool // optional - CreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler(itemTemplate objc.Object, fields FileProviderItemFields, url foundation.URL, options FileProviderCreateItemOptions, request FileProviderRequest, completionHandler func(createdItem objc.Object, stillPendingFields FileProviderItemFields, shouldFetchContent bool, error foundation.Error)) foundation.Progress - HasCreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler() bool + InitWithDomain(domain FileProviderDomain) objc.Object + HasInitWithDomain() bool // optional - DeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler(identifier FileProviderItemIdentifier, version FileProviderItemVersion, options FileProviderDeleteItemOptions, request FileProviderRequest, completionHandler func(arg0 foundation.Error)) foundation.Progress - HasDeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler() bool + PendingItemsDidChangeWithCompletionHandler(completionHandler func()) + HasPendingItemsDidChangeWithCompletionHandler() bool // optional - ImportDidFinishWithCompletionHandler(completionHandler func()) - HasImportDidFinishWithCompletionHandler() bool + Invalidate() + HasInvalidate() bool // optional - InitWithDomain(domain FileProviderDomain) objc.Object - HasInitWithDomain() bool + ModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler(item objc.Object, version FileProviderItemVersion, changedFields FileProviderItemFields, newContents foundation.URL, options FileProviderModifyItemOptions, request FileProviderRequest, completionHandler func(item objc.Object, stillPendingFields FileProviderItemFields, shouldFetchContent bool, error foundation.Error)) foundation.Progress + HasModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler() bool // optional FetchContentsForItemWithIdentifierVersionRequestCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion FileProviderItemVersion, request FileProviderRequest, completionHandler func(fileContents foundation.URL, item objc.Object, error foundation.Error)) foundation.Progress @@ -60,18 +60,29 @@ type FileProviderReplicatedExtensionObject struct { objc.Object } -func (f_ FileProviderReplicatedExtensionObject) HasItemForIdentifierRequestCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("itemForIdentifier:request:completionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasCreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("createItemBasedOnTemplate:fields:contents:options:request:completionHandler:")) } -// Asks the file provider for the metadata of the provided item. [Full Topic] +// Tells the file provider to create or import an item based on a template. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3656551-itemforidentifier?language=objc -func (f_ FileProviderReplicatedExtensionObject) ItemForIdentifierRequestCompletionHandler(identifier FileProviderItemIdentifier, request FileProviderRequest, completionHandler func(arg0 objc.Object, arg1 foundation.Error)) foundation.Progress { - rv := objc.Call[foundation.Progress](f_, objc.Sel("itemForIdentifier:request:completionHandler:"), identifier, request, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3656549-createitembasedontemplate?language=objc +func (f_ FileProviderReplicatedExtensionObject) CreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler(itemTemplate objc.Object, fields FileProviderItemFields, url foundation.URL, options FileProviderCreateItemOptions, request FileProviderRequest, completionHandler func(createdItem objc.Object, stillPendingFields FileProviderItemFields, shouldFetchContent bool, error foundation.Error)) foundation.Progress { + rv := objc.Call[foundation.Progress](f_, objc.Sel("createItemBasedOnTemplate:fields:contents:options:request:completionHandler:"), itemTemplate, fields, url, options, request, completionHandler) return rv } +func (f_ FileProviderReplicatedExtensionObject) HasImportDidFinishWithCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("importDidFinishWithCompletionHandler:")) +} + +// Tells the File Provider extension that the system finished importing items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3553304-importdidfinishwithcompletionhan?language=objc +func (f_ FileProviderReplicatedExtensionObject) ImportDidFinishWithCompletionHandler(completionHandler func()) { + objc.Call[objc.Void](f_, objc.Sel("importDidFinishWithCompletionHandler:"), completionHandler) +} + func (f_ FileProviderReplicatedExtensionObject) HasMaterializedItemsDidChangeWithCompletionHandler() bool { return f_.RespondsToSelector(objc.Sel("materializedItemsDidChangeWithCompletionHandler:")) } @@ -83,84 +94,73 @@ func (f_ FileProviderReplicatedExtensionObject) MaterializedItemsDidChangeWithCo objc.Call[objc.Void](f_, objc.Sel("materializedItemsDidChangeWithCompletionHandler:"), completionHandler) } -func (f_ FileProviderReplicatedExtensionObject) HasInvalidate() bool { - return f_.RespondsToSelector(objc.Sel("invalidate")) -} - -// Tells the file provider to perform any necessary cleanup so that the system can deallocate it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3553306-invalidate?language=objc -func (f_ FileProviderReplicatedExtensionObject) Invalidate() { - objc.Call[objc.Void](f_, objc.Sel("invalidate")) -} - -func (f_ FileProviderReplicatedExtensionObject) HasPendingItemsDidChangeWithCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("pendingItemsDidChangeWithCompletionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasDeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("deleteItemWithIdentifier:baseVersion:options:request:completionHandler:")) } -// Tells the file provider extension that the set of pending items has changed. [Full Topic] +// Tells the file provider to delete an item forever. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3727821-pendingitemsdidchangewithcomplet?language=objc -func (f_ FileProviderReplicatedExtensionObject) PendingItemsDidChangeWithCompletionHandler(completionHandler func()) { - objc.Call[objc.Void](f_, objc.Sel("pendingItemsDidChangeWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3656550-deleteitemwithidentifier?language=objc +func (f_ FileProviderReplicatedExtensionObject) DeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler(identifier FileProviderItemIdentifier, version FileProviderItemVersion, options FileProviderDeleteItemOptions, request FileProviderRequest, completionHandler func(arg0 foundation.Error)) foundation.Progress { + rv := objc.Call[foundation.Progress](f_, objc.Sel("deleteItemWithIdentifier:baseVersion:options:request:completionHandler:"), identifier, version, options, request, completionHandler) + return rv } -func (f_ FileProviderReplicatedExtensionObject) HasModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("modifyItem:baseVersion:changedFields:contents:options:request:completionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasItemForIdentifierRequestCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("itemForIdentifier:request:completionHandler:")) } -// Tells the file provider that an item’s content or metadata changed. [Full Topic] +// Asks the file provider for the metadata of the provided item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3656552-modifyitem?language=objc -func (f_ FileProviderReplicatedExtensionObject) ModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler(item objc.Object, version FileProviderItemVersion, changedFields FileProviderItemFields, newContents foundation.URL, options FileProviderModifyItemOptions, request FileProviderRequest, completionHandler func(item objc.Object, stillPendingFields FileProviderItemFields, shouldFetchContent bool, error foundation.Error)) foundation.Progress { - rv := objc.Call[foundation.Progress](f_, objc.Sel("modifyItem:baseVersion:changedFields:contents:options:request:completionHandler:"), item, version, changedFields, newContents, options, request, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3656551-itemforidentifier?language=objc +func (f_ FileProviderReplicatedExtensionObject) ItemForIdentifierRequestCompletionHandler(identifier FileProviderItemIdentifier, request FileProviderRequest, completionHandler func(arg0 objc.Object, arg1 foundation.Error)) foundation.Progress { + rv := objc.Call[foundation.Progress](f_, objc.Sel("itemForIdentifier:request:completionHandler:"), identifier, request, completionHandler) return rv } -func (f_ FileProviderReplicatedExtensionObject) HasCreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("createItemBasedOnTemplate:fields:contents:options:request:completionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasInitWithDomain() bool { + return f_.RespondsToSelector(objc.Sel("initWithDomain:")) } -// Tells the file provider to create or import an item based on a template. [Full Topic] +// Creates an instance of the file provider for the specified domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3656549-createitembasedontemplate?language=objc -func (f_ FileProviderReplicatedExtensionObject) CreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler(itemTemplate objc.Object, fields FileProviderItemFields, url foundation.URL, options FileProviderCreateItemOptions, request FileProviderRequest, completionHandler func(createdItem objc.Object, stillPendingFields FileProviderItemFields, shouldFetchContent bool, error foundation.Error)) foundation.Progress { - rv := objc.Call[foundation.Progress](f_, objc.Sel("createItemBasedOnTemplate:fields:contents:options:request:completionHandler:"), itemTemplate, fields, url, options, request, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3553305-initwithdomain?language=objc +func (f_ FileProviderReplicatedExtensionObject) InitWithDomain(domain FileProviderDomain) objc.Object { + rv := objc.Call[objc.Object](f_, objc.Sel("initWithDomain:"), domain) return rv } -func (f_ FileProviderReplicatedExtensionObject) HasDeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("deleteItemWithIdentifier:baseVersion:options:request:completionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasPendingItemsDidChangeWithCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("pendingItemsDidChangeWithCompletionHandler:")) } -// Tells the file provider to delete an item forever. [Full Topic] +// Tells the file provider extension that the set of pending items has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3656550-deleteitemwithidentifier?language=objc -func (f_ FileProviderReplicatedExtensionObject) DeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler(identifier FileProviderItemIdentifier, version FileProviderItemVersion, options FileProviderDeleteItemOptions, request FileProviderRequest, completionHandler func(arg0 foundation.Error)) foundation.Progress { - rv := objc.Call[foundation.Progress](f_, objc.Sel("deleteItemWithIdentifier:baseVersion:options:request:completionHandler:"), identifier, version, options, request, completionHandler) - return rv +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3727821-pendingitemsdidchangewithcomplet?language=objc +func (f_ FileProviderReplicatedExtensionObject) PendingItemsDidChangeWithCompletionHandler(completionHandler func()) { + objc.Call[objc.Void](f_, objc.Sel("pendingItemsDidChangeWithCompletionHandler:"), completionHandler) } -func (f_ FileProviderReplicatedExtensionObject) HasImportDidFinishWithCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("importDidFinishWithCompletionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasInvalidate() bool { + return f_.RespondsToSelector(objc.Sel("invalidate")) } -// Tells the File Provider extension that the system finished importing items. [Full Topic] +// Tells the file provider to perform any necessary cleanup so that the system can deallocate it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3553304-importdidfinishwithcompletionhan?language=objc -func (f_ FileProviderReplicatedExtensionObject) ImportDidFinishWithCompletionHandler(completionHandler func()) { - objc.Call[objc.Void](f_, objc.Sel("importDidFinishWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3553306-invalidate?language=objc +func (f_ FileProviderReplicatedExtensionObject) Invalidate() { + objc.Call[objc.Void](f_, objc.Sel("invalidate")) } -func (f_ FileProviderReplicatedExtensionObject) HasInitWithDomain() bool { - return f_.RespondsToSelector(objc.Sel("initWithDomain:")) +func (f_ FileProviderReplicatedExtensionObject) HasModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("modifyItem:baseVersion:changedFields:contents:options:request:completionHandler:")) } -// Creates an instance of the file provider for the specified domain. [Full Topic] +// Tells the file provider that an item’s content or metadata changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3553305-initwithdomain?language=objc -func (f_ FileProviderReplicatedExtensionObject) InitWithDomain(domain FileProviderDomain) objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("initWithDomain:"), domain) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3656552-modifyitem?language=objc +func (f_ FileProviderReplicatedExtensionObject) ModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler(item objc.Object, version FileProviderItemVersion, changedFields FileProviderItemFields, newContents foundation.URL, options FileProviderModifyItemOptions, request FileProviderRequest, completionHandler func(item objc.Object, stillPendingFields FileProviderItemFields, shouldFetchContent bool, error foundation.Error)) foundation.Progress { + rv := objc.Call[foundation.Progress](f_, objc.Sel("modifyItem:baseVersion:changedFields:contents:options:request:completionHandler:"), item, version, changedFields, newContents, options, request, completionHandler) return rv } diff --git a/macos/fileprovider/file_provider_request.gen.go b/macos/fileprovider/file_provider_request.gen.go index bd3964b6..4cfc53f0 100644 --- a/macos/fileprovider/file_provider_request.gen.go +++ b/macos/fileprovider/file_provider_request.gen.go @@ -19,10 +19,10 @@ type _FileProviderRequestClass struct { // An interface definition for the [FileProviderRequest] class. type IFileProviderRequest interface { objc.IObject + IsFileViewerRequest() bool IsSystemRequest() bool DomainVersion() FileProviderDomainVersion RequestingExecutable() foundation.URL - IsFileViewerRequest() bool } // An object that provides information about the application requesting data from the File Provider extension. [Full Topic] @@ -58,6 +58,14 @@ func (f_ FileProviderRequest) Init() FileProviderRequest { return rv } +// A Boolean value that indicates whether the request came from Finder or related system file browsers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderrequest/3656553-isfileviewerrequest?language=objc +func (f_ FileProviderRequest) IsFileViewerRequest() bool { + rv := objc.Call[bool](f_, objc.Sel("isFileViewerRequest")) + return rv +} + // A Boolean value that indicates whether the request came from a system process. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderrequest/3656554-issystemrequest?language=objc @@ -81,11 +89,3 @@ func (f_ FileProviderRequest) RequestingExecutable() foundation.URL { rv := objc.Call[foundation.URL](f_, objc.Sel("requestingExecutable")) return rv } - -// A Boolean value that indicates whether the request came from Finder or related system file browsers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderrequest/3656553-isfileviewerrequest?language=objc -func (f_ FileProviderRequest) IsFileViewerRequest() bool { - rv := objc.Call[bool](f_, objc.Sel("isFileViewerRequest")) - return rv -} diff --git a/macos/fileprovider/file_provider_testing_collision_resolution_protocol.gen.go b/macos/fileprovider/file_provider_testing_collision_resolution_protocol.gen.go index 8f46ea1a..91f616c2 100644 --- a/macos/fileprovider/file_provider_testing_collision_resolution_protocol.gen.go +++ b/macos/fileprovider/file_provider_testing_collision_resolution_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcollisionresolution?language=objc type PFileProviderTestingCollisionResolution interface { - // optional - Side() FileProviderTestingOperationSide - HasSide() bool - // optional RenamedItem() objc.Object HasRenamedItem() bool + + // optional + Side() FileProviderTestingOperationSide + HasSide() bool } // ensure impl type implements protocol interface @@ -27,18 +27,6 @@ type FileProviderTestingCollisionResolutionObject struct { objc.Object } -func (f_ FileProviderTestingCollisionResolutionObject) HasSide() bool { - return f_.RespondsToSelector(objc.Sel("side")) -} - -// The item’s location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcollisionresolution/3736229-side?language=objc -func (f_ FileProviderTestingCollisionResolutionObject) Side() FileProviderTestingOperationSide { - rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("side")) - return rv -} - func (f_ FileProviderTestingCollisionResolutionObject) HasRenamedItem() bool { return f_.RespondsToSelector(objc.Sel("renamedItem")) } @@ -50,3 +38,15 @@ func (f_ FileProviderTestingCollisionResolutionObject) RenamedItem() objc.Object rv := objc.Call[objc.Object](f_, objc.Sel("renamedItem")) return rv } + +func (f_ FileProviderTestingCollisionResolutionObject) HasSide() bool { + return f_.RespondsToSelector(objc.Sel("side")) +} + +// The item’s location. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcollisionresolution/3736229-side?language=objc +func (f_ FileProviderTestingCollisionResolutionObject) Side() FileProviderTestingOperationSide { + rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("side")) + return rv +} diff --git a/macos/fileprovider/file_provider_testing_deletion_protocol.gen.go b/macos/fileprovider/file_provider_testing_deletion_protocol.gen.go index c63a06d3..c47f20c4 100644 --- a/macos/fileprovider/file_provider_testing_deletion_protocol.gen.go +++ b/macos/fileprovider/file_provider_testing_deletion_protocol.gen.go @@ -11,24 +11,24 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion?language=objc type PFileProviderTestingDeletion interface { // optional - SourceItemIdentifier() FileProviderItemIdentifier - HasSourceItemIdentifier() bool - - // optional - TargetItemBaseVersion() FileProviderItemVersion - HasTargetItemBaseVersion() bool + TargetSide() FileProviderTestingOperationSide + HasTargetSide() bool // optional TargetItemIdentifier() FileProviderItemIdentifier HasTargetItemIdentifier() bool - // optional - TargetSide() FileProviderTestingOperationSide - HasTargetSide() bool - // optional DomainVersion() FileProviderDomainVersion HasDomainVersion() bool + + // optional + TargetItemBaseVersion() FileProviderItemVersion + HasTargetItemBaseVersion() bool + + // optional + SourceItemIdentifier() FileProviderItemIdentifier + HasSourceItemIdentifier() bool } // ensure impl type implements protocol interface @@ -39,27 +39,15 @@ type FileProviderTestingDeletionObject struct { objc.Object } -func (f_ FileProviderTestingDeletionObject) HasSourceItemIdentifier() bool { - return f_.RespondsToSelector(objc.Sel("sourceItemIdentifier")) -} - -// The unique identifier for the source item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736236-sourceitemidentifier?language=objc -func (f_ FileProviderTestingDeletionObject) SourceItemIdentifier() FileProviderItemIdentifier { - rv := objc.Call[FileProviderItemIdentifier](f_, objc.Sel("sourceItemIdentifier")) - return rv -} - -func (f_ FileProviderTestingDeletionObject) HasTargetItemBaseVersion() bool { - return f_.RespondsToSelector(objc.Sel("targetItemBaseVersion")) +func (f_ FileProviderTestingDeletionObject) HasTargetSide() bool { + return f_.RespondsToSelector(objc.Sel("targetSide")) } -// The version of the deleted item. [Full Topic] +// The target location for the delete operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736237-targetitembaseversion?language=objc -func (f_ FileProviderTestingDeletionObject) TargetItemBaseVersion() FileProviderItemVersion { - rv := objc.Call[FileProviderItemVersion](f_, objc.Sel("targetItemBaseVersion")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736239-targetside?language=objc +func (f_ FileProviderTestingDeletionObject) TargetSide() FileProviderTestingOperationSide { + rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("targetSide")) return rv } @@ -75,18 +63,6 @@ func (f_ FileProviderTestingDeletionObject) TargetItemIdentifier() FileProviderI return rv } -func (f_ FileProviderTestingDeletionObject) HasTargetSide() bool { - return f_.RespondsToSelector(objc.Sel("targetSide")) -} - -// The target location for the delete operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736239-targetside?language=objc -func (f_ FileProviderTestingDeletionObject) TargetSide() FileProviderTestingOperationSide { - rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("targetSide")) - return rv -} - func (f_ FileProviderTestingDeletionObject) HasDomainVersion() bool { return f_.RespondsToSelector(objc.Sel("domainVersion")) } @@ -98,3 +74,27 @@ func (f_ FileProviderTestingDeletionObject) DomainVersion() FileProviderDomainVe rv := objc.Call[FileProviderDomainVersion](f_, objc.Sel("domainVersion")) return rv } + +func (f_ FileProviderTestingDeletionObject) HasTargetItemBaseVersion() bool { + return f_.RespondsToSelector(objc.Sel("targetItemBaseVersion")) +} + +// The version of the deleted item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736237-targetitembaseversion?language=objc +func (f_ FileProviderTestingDeletionObject) TargetItemBaseVersion() FileProviderItemVersion { + rv := objc.Call[FileProviderItemVersion](f_, objc.Sel("targetItemBaseVersion")) + return rv +} + +func (f_ FileProviderTestingDeletionObject) HasSourceItemIdentifier() bool { + return f_.RespondsToSelector(objc.Sel("sourceItemIdentifier")) +} + +// The unique identifier for the source item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736236-sourceitemidentifier?language=objc +func (f_ FileProviderTestingDeletionObject) SourceItemIdentifier() FileProviderItemIdentifier { + rv := objc.Call[FileProviderItemIdentifier](f_, objc.Sel("sourceItemIdentifier")) + return rv +} diff --git a/macos/fileprovider/file_provider_testing_ingestion_protocol.gen.go b/macos/fileprovider/file_provider_testing_ingestion_protocol.gen.go index a08b6804..c0edd3df 100644 --- a/macos/fileprovider/file_provider_testing_ingestion_protocol.gen.go +++ b/macos/fileprovider/file_provider_testing_ingestion_protocol.gen.go @@ -10,6 +10,10 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingingestion?language=objc type PFileProviderTestingIngestion interface { + // optional + Item() objc.Object + HasItem() bool + // optional ItemIdentifier() FileProviderItemIdentifier HasItemIdentifier() bool @@ -17,10 +21,6 @@ type PFileProviderTestingIngestion interface { // optional Side() FileProviderTestingOperationSide HasSide() bool - - // optional - Item() objc.Object - HasItem() bool } // ensure impl type implements protocol interface @@ -31,6 +31,18 @@ type FileProviderTestingIngestionObject struct { objc.Object } +func (f_ FileProviderTestingIngestionObject) HasItem() bool { + return f_.RespondsToSelector(objc.Sel("item")) +} + +// A description of the item that changed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingingestion/3727835-item?language=objc +func (f_ FileProviderTestingIngestionObject) Item() objc.Object { + rv := objc.Call[objc.Object](f_, objc.Sel("item")) + return rv +} + func (f_ FileProviderTestingIngestionObject) HasItemIdentifier() bool { return f_.RespondsToSelector(objc.Sel("itemIdentifier")) } @@ -54,15 +66,3 @@ func (f_ FileProviderTestingIngestionObject) Side() FileProviderTestingOperation rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("side")) return rv } - -func (f_ FileProviderTestingIngestionObject) HasItem() bool { - return f_.RespondsToSelector(objc.Sel("item")) -} - -// A description of the item that changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingingestion/3727835-item?language=objc -func (f_ FileProviderTestingIngestionObject) Item() objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("item")) - return rv -} diff --git a/macos/fileprovider/file_provider_testing_modification_protocol.gen.go b/macos/fileprovider/file_provider_testing_modification_protocol.gen.go index e52870fa..d62658d2 100644 --- a/macos/fileprovider/file_provider_testing_modification_protocol.gen.go +++ b/macos/fileprovider/file_provider_testing_modification_protocol.gen.go @@ -11,21 +11,13 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification?language=objc type PFileProviderTestingModification interface { // optional - ChangedFields() FileProviderItemFields - HasChangedFields() bool + TargetSide() FileProviderTestingOperationSide + HasTargetSide() bool // optional TargetItemIdentifier() FileProviderItemIdentifier HasTargetItemIdentifier() bool - // optional - SourceItem() objc.Object - HasSourceItem() bool - - // optional - TargetSide() FileProviderTestingOperationSide - HasTargetSide() bool - // optional DomainVersion() FileProviderDomainVersion HasDomainVersion() bool @@ -33,6 +25,14 @@ type PFileProviderTestingModification interface { // optional TargetItemBaseVersion() FileProviderItemVersion HasTargetItemBaseVersion() bool + + // optional + SourceItem() objc.Object + HasSourceItem() bool + + // optional + ChangedFields() FileProviderItemFields + HasChangedFields() bool } // ensure impl type implements protocol interface @@ -43,15 +43,15 @@ type FileProviderTestingModificationObject struct { objc.Object } -func (f_ FileProviderTestingModificationObject) HasChangedFields() bool { - return f_.RespondsToSelector(objc.Sel("changedFields")) +func (f_ FileProviderTestingModificationObject) HasTargetSide() bool { + return f_.RespondsToSelector(objc.Sel("targetSide")) } -// A list of the fields that changed. [Full Topic] +// The target location for the modification operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736241-changedfields?language=objc -func (f_ FileProviderTestingModificationObject) ChangedFields() FileProviderItemFields { - rv := objc.Call[FileProviderItemFields](f_, objc.Sel("changedFields")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736246-targetside?language=objc +func (f_ FileProviderTestingModificationObject) TargetSide() FileProviderTestingOperationSide { + rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("targetSide")) return rv } @@ -67,30 +67,6 @@ func (f_ FileProviderTestingModificationObject) TargetItemIdentifier() FileProvi return rv } -func (f_ FileProviderTestingModificationObject) HasSourceItem() bool { - return f_.RespondsToSelector(objc.Sel("sourceItem")) -} - -// A description of the source item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736243-sourceitem?language=objc -func (f_ FileProviderTestingModificationObject) SourceItem() objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("sourceItem")) - return rv -} - -func (f_ FileProviderTestingModificationObject) HasTargetSide() bool { - return f_.RespondsToSelector(objc.Sel("targetSide")) -} - -// The target location for the modification operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736246-targetside?language=objc -func (f_ FileProviderTestingModificationObject) TargetSide() FileProviderTestingOperationSide { - rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("targetSide")) - return rv -} - func (f_ FileProviderTestingModificationObject) HasDomainVersion() bool { return f_.RespondsToSelector(objc.Sel("domainVersion")) } @@ -114,3 +90,27 @@ func (f_ FileProviderTestingModificationObject) TargetItemBaseVersion() FileProv rv := objc.Call[FileProviderItemVersion](f_, objc.Sel("targetItemBaseVersion")) return rv } + +func (f_ FileProviderTestingModificationObject) HasSourceItem() bool { + return f_.RespondsToSelector(objc.Sel("sourceItem")) +} + +// A description of the source item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736243-sourceitem?language=objc +func (f_ FileProviderTestingModificationObject) SourceItem() objc.Object { + rv := objc.Call[objc.Object](f_, objc.Sel("sourceItem")) + return rv +} + +func (f_ FileProviderTestingModificationObject) HasChangedFields() bool { + return f_.RespondsToSelector(objc.Sel("changedFields")) +} + +// A list of the fields that changed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736241-changedfields?language=objc +func (f_ FileProviderTestingModificationObject) ChangedFields() FileProviderItemFields { + rv := objc.Call[FileProviderItemFields](f_, objc.Sel("changedFields")) + return rv +} diff --git a/macos/fileprovider/file_provider_testing_operation_protocol.gen.go b/macos/fileprovider/file_provider_testing_operation_protocol.gen.go index 411f4ce0..aa151d1b 100644 --- a/macos/fileprovider/file_provider_testing_operation_protocol.gen.go +++ b/macos/fileprovider/file_provider_testing_operation_protocol.gen.go @@ -11,32 +11,32 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation?language=objc type PFileProviderTestingOperation interface { // optional - AsContentFetch() FileProviderTestingContentFetchObject - HasAsContentFetch() bool + AsModification() FileProviderTestingModificationObject + HasAsModification() bool // optional - AsDeletion() FileProviderTestingDeletionObject - HasAsDeletion() bool + AsCreation() FileProviderTestingCreationObject + HasAsCreation() bool // optional - AsIngestion() FileProviderTestingIngestionObject - HasAsIngestion() bool + AsDeletion() FileProviderTestingDeletionObject + HasAsDeletion() bool // optional - AsCreation() FileProviderTestingCreationObject - HasAsCreation() bool + AsLookup() FileProviderTestingLookupObject + HasAsLookup() bool // optional - AsCollisionResolution() FileProviderTestingCollisionResolutionObject - HasAsCollisionResolution() bool + AsContentFetch() FileProviderTestingContentFetchObject + HasAsContentFetch() bool // optional - AsModification() FileProviderTestingModificationObject - HasAsModification() bool + AsIngestion() FileProviderTestingIngestionObject + HasAsIngestion() bool // optional - AsLookup() FileProviderTestingLookupObject - HasAsLookup() bool + AsCollisionResolution() FileProviderTestingCollisionResolutionObject + HasAsCollisionResolution() bool // optional AsChildrenEnumeration() FileProviderTestingChildrenEnumerationObject @@ -55,87 +55,87 @@ type FileProviderTestingOperationObject struct { objc.Object } -func (f_ FileProviderTestingOperationObject) HasAsContentFetch() bool { - return f_.RespondsToSelector(objc.Sel("asContentFetch")) +func (f_ FileProviderTestingOperationObject) HasAsModification() bool { + return f_.RespondsToSelector(objc.Sel("asModification")) } -// Returns the operation if it fetches an item’s content. [Full Topic] +// Returns the operation if it propagates a change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736249-ascontentfetch?language=objc -func (f_ FileProviderTestingOperationObject) AsContentFetch() FileProviderTestingContentFetchObject { - rv := objc.Call[FileProviderTestingContentFetchObject](f_, objc.Sel("asContentFetch")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736254-asmodification?language=objc +func (f_ FileProviderTestingOperationObject) AsModification() FileProviderTestingModificationObject { + rv := objc.Call[FileProviderTestingModificationObject](f_, objc.Sel("asModification")) return rv } -func (f_ FileProviderTestingOperationObject) HasAsDeletion() bool { - return f_.RespondsToSelector(objc.Sel("asDeletion")) +func (f_ FileProviderTestingOperationObject) HasAsCreation() bool { + return f_.RespondsToSelector(objc.Sel("asCreation")) } -// Returns the operation if it propagates the deletion of an item. [Full Topic] +// Returns the operation if it propagates the creation of an item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736251-asdeletion?language=objc -func (f_ FileProviderTestingOperationObject) AsDeletion() FileProviderTestingDeletionObject { - rv := objc.Call[FileProviderTestingDeletionObject](f_, objc.Sel("asDeletion")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736250-ascreation?language=objc +func (f_ FileProviderTestingOperationObject) AsCreation() FileProviderTestingCreationObject { + rv := objc.Call[FileProviderTestingCreationObject](f_, objc.Sel("asCreation")) return rv } -func (f_ FileProviderTestingOperationObject) HasAsIngestion() bool { - return f_.RespondsToSelector(objc.Sel("asIngestion")) +func (f_ FileProviderTestingOperationObject) HasAsDeletion() bool { + return f_.RespondsToSelector(objc.Sel("asDeletion")) } -// Returns the operation if it alerts the system to changes. [Full Topic] +// Returns the operation if it propagates the deletion of an item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736252-asingestion?language=objc -func (f_ FileProviderTestingOperationObject) AsIngestion() FileProviderTestingIngestionObject { - rv := objc.Call[FileProviderTestingIngestionObject](f_, objc.Sel("asIngestion")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736251-asdeletion?language=objc +func (f_ FileProviderTestingOperationObject) AsDeletion() FileProviderTestingDeletionObject { + rv := objc.Call[FileProviderTestingDeletionObject](f_, objc.Sel("asDeletion")) return rv } -func (f_ FileProviderTestingOperationObject) HasAsCreation() bool { - return f_.RespondsToSelector(objc.Sel("asCreation")) +func (f_ FileProviderTestingOperationObject) HasAsLookup() bool { + return f_.RespondsToSelector(objc.Sel("asLookup")) } -// Returns the operation if it propagates the creation of an item. [Full Topic] +// Returns the operation if it looks up an item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736250-ascreation?language=objc -func (f_ FileProviderTestingOperationObject) AsCreation() FileProviderTestingCreationObject { - rv := objc.Call[FileProviderTestingCreationObject](f_, objc.Sel("asCreation")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736253-aslookup?language=objc +func (f_ FileProviderTestingOperationObject) AsLookup() FileProviderTestingLookupObject { + rv := objc.Call[FileProviderTestingLookupObject](f_, objc.Sel("asLookup")) return rv } -func (f_ FileProviderTestingOperationObject) HasAsCollisionResolution() bool { - return f_.RespondsToSelector(objc.Sel("asCollisionResolution")) +func (f_ FileProviderTestingOperationObject) HasAsContentFetch() bool { + return f_.RespondsToSelector(objc.Sel("asContentFetch")) } -// Returns the operation if it resolves a collision by renaming the new item. [Full Topic] +// Returns the operation if it fetches an item’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736248-ascollisionresolution?language=objc -func (f_ FileProviderTestingOperationObject) AsCollisionResolution() FileProviderTestingCollisionResolutionObject { - rv := objc.Call[FileProviderTestingCollisionResolutionObject](f_, objc.Sel("asCollisionResolution")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736249-ascontentfetch?language=objc +func (f_ FileProviderTestingOperationObject) AsContentFetch() FileProviderTestingContentFetchObject { + rv := objc.Call[FileProviderTestingContentFetchObject](f_, objc.Sel("asContentFetch")) return rv } -func (f_ FileProviderTestingOperationObject) HasAsModification() bool { - return f_.RespondsToSelector(objc.Sel("asModification")) +func (f_ FileProviderTestingOperationObject) HasAsIngestion() bool { + return f_.RespondsToSelector(objc.Sel("asIngestion")) } -// Returns the operation if it propagates a change. [Full Topic] +// Returns the operation if it alerts the system to changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736254-asmodification?language=objc -func (f_ FileProviderTestingOperationObject) AsModification() FileProviderTestingModificationObject { - rv := objc.Call[FileProviderTestingModificationObject](f_, objc.Sel("asModification")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736252-asingestion?language=objc +func (f_ FileProviderTestingOperationObject) AsIngestion() FileProviderTestingIngestionObject { + rv := objc.Call[FileProviderTestingIngestionObject](f_, objc.Sel("asIngestion")) return rv } -func (f_ FileProviderTestingOperationObject) HasAsLookup() bool { - return f_.RespondsToSelector(objc.Sel("asLookup")) +func (f_ FileProviderTestingOperationObject) HasAsCollisionResolution() bool { + return f_.RespondsToSelector(objc.Sel("asCollisionResolution")) } -// Returns the operation if it looks up an item. [Full Topic] +// Returns the operation if it resolves a collision by renaming the new item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736253-aslookup?language=objc -func (f_ FileProviderTestingOperationObject) AsLookup() FileProviderTestingLookupObject { - rv := objc.Call[FileProviderTestingLookupObject](f_, objc.Sel("asLookup")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736248-ascollisionresolution?language=objc +func (f_ FileProviderTestingOperationObject) AsCollisionResolution() FileProviderTestingCollisionResolutionObject { + rv := objc.Call[FileProviderTestingCollisionResolutionObject](f_, objc.Sel("asCollisionResolution")) return rv } diff --git a/macos/foundation/affine_transform.gen.go b/macos/foundation/affine_transform.gen.go index 71cbe4f6..382ba6b4 100644 --- a/macos/foundation/affine_transform.gen.go +++ b/macos/foundation/affine_transform.gen.go @@ -18,19 +18,19 @@ type _AffineTransformClass struct { // An interface definition for the [AffineTransform] class. type IAffineTransform interface { objc.IObject - PrependTransform(transform IAffineTransform) + TransformPoint(aPoint Point) Point + Set() + Invert() Concat() - ScaleXByYBy(scaleX float64, scaleY float64) TransformBezierPath(path objc.IObject) objc.Object - Invert() - Set() - RotateByDegrees(angle float64) TransformSize(aSize Size) Size - RotateByRadians(angle float64) - ScaleBy(scale float64) + ScaleXByYBy(scaleX float64, scaleY float64) AppendTransform(transform IAffineTransform) + ScaleBy(scale float64) + PrependTransform(transform IAffineTransform) + RotateByRadians(angle float64) + RotateByDegrees(angle float64) TranslateXByYBy(deltaX float64, deltaY float64) - TransformPoint(aPoint Point) Point TransformStruct() AffineTransformStruct SetTransformStruct(value AffineTransformStruct) } @@ -48,11 +48,6 @@ func AffineTransformFrom(ptr unsafe.Pointer) AffineTransform { } } -func (a_ AffineTransform) Init() AffineTransform { - rv := objc.Call[AffineTransform](a_, objc.Sel("init")) - return rv -} - func (a_ AffineTransform) InitWithTransform(transform IAffineTransform) AffineTransform { rv := objc.Call[AffineTransform](a_, objc.Sel("initWithTransform:"), transform) return rv @@ -67,6 +62,11 @@ func NewAffineTransformWithTransform(transform IAffineTransform) AffineTransform return instance } +func (a_ AffineTransform) Init() AffineTransform { + rv := objc.Call[AffineTransform](a_, objc.Sel("init")) + return rv +} + func (ac _AffineTransformClass) Alloc() AffineTransform { rv := objc.Call[AffineTransform](ac, objc.Sel("alloc")) return rv @@ -82,11 +82,26 @@ func NewAffineTransform() AffineTransform { return AffineTransformClass.New() } -// Prepends the specified matrix to the receiver’s matrix. [Full Topic] +// Applies the receiver’s transform to the specified point and returns the result. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1409793-prependtransform?language=objc -func (a_ AffineTransform) PrependTransform(transform IAffineTransform) { - objc.Call[objc.Void](a_, objc.Sel("prependTransform:"), transform) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1411619-transformpoint?language=objc +func (a_ AffineTransform) TransformPoint(aPoint Point) Point { + rv := objc.Call[Point](a_, objc.Sel("transformPoint:"), aPoint) + return rv +} + +// Sets the current transformation matrix to the receiver’s transformation matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1462133-set?language=objc +func (a_ AffineTransform) Set() { + objc.Call[objc.Void](a_, objc.Sel("set")) +} + +// Replaces the receiver’s matrix with its inverse matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1412434-invert?language=objc +func (a_ AffineTransform) Invert() { + objc.Call[objc.Void](a_, objc.Sel("invert")) } // Appends the receiver’s matrix to the current transformation matrix stored in the current graphics context, replacing the current transformation matrix with the result. [Full Topic] @@ -96,13 +111,6 @@ func (a_ AffineTransform) Concat() { objc.Call[objc.Void](a_, objc.Sel("concat")) } -// Applies scaling factors to each axis of the receiver’s transformation matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1411806-scalexby?language=objc -func (a_ AffineTransform) ScaleXByYBy(scaleX float64, scaleY float64) { - objc.Call[objc.Void](a_, objc.Sel("scaleXBy:yBy:"), scaleX, scaleY) -} - // Creates and returns a new NSBezierPath object with each point in the given path transformed by the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1462131-transformbezierpath?language=objc @@ -111,48 +119,40 @@ func (a_ AffineTransform) TransformBezierPath(path objc.IObject) objc.Object { return rv } -// Creates a new affine transform initialized to the identity matrix. [Full Topic] +// Applies the receiver’s transform to the specified size and returns the results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1589057-transform?language=objc -func (ac _AffineTransformClass) Transform() AffineTransform { - rv := objc.Call[AffineTransform](ac, objc.Sel("transform")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1416692-transformsize?language=objc +func (a_ AffineTransform) TransformSize(aSize Size) Size { + rv := objc.Call[Size](a_, objc.Sel("transformSize:"), aSize) return rv } -// Creates a new affine transform initialized to the identity matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1589057-transform?language=objc -func AffineTransform_Transform() AffineTransform { - return AffineTransformClass.Transform() -} - -// Replaces the receiver’s matrix with its inverse matrix. [Full Topic] +// Applies scaling factors to each axis of the receiver’s transformation matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1412434-invert?language=objc -func (a_ AffineTransform) Invert() { - objc.Call[objc.Void](a_, objc.Sel("invert")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1411806-scalexby?language=objc +func (a_ AffineTransform) ScaleXByYBy(scaleX float64, scaleY float64) { + objc.Call[objc.Void](a_, objc.Sel("scaleXBy:yBy:"), scaleX, scaleY) } -// Sets the current transformation matrix to the receiver’s transformation matrix. [Full Topic] +// Appends the specified matrix to the receiver’s matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1462133-set?language=objc -func (a_ AffineTransform) Set() { - objc.Call[objc.Void](a_, objc.Sel("set")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1408404-appendtransform?language=objc +func (a_ AffineTransform) AppendTransform(transform IAffineTransform) { + objc.Call[objc.Void](a_, objc.Sel("appendTransform:"), transform) } -// Applies a rotation factor (measured in degrees) to the receiver’s transformation matrix. [Full Topic] +// Applies the specified scaling factor along both x and y axes to the receiver’s transformation matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1407401-rotatebydegrees?language=objc -func (a_ AffineTransform) RotateByDegrees(angle float64) { - objc.Call[objc.Void](a_, objc.Sel("rotateByDegrees:"), angle) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1413649-scaleby?language=objc +func (a_ AffineTransform) ScaleBy(scale float64) { + objc.Call[objc.Void](a_, objc.Sel("scaleBy:"), scale) } -// Applies the receiver’s transform to the specified size and returns the results. [Full Topic] +// Prepends the specified matrix to the receiver’s matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1416692-transformsize?language=objc -func (a_ AffineTransform) TransformSize(aSize Size) Size { - rv := objc.Call[Size](a_, objc.Sel("transformSize:"), aSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1409793-prependtransform?language=objc +func (a_ AffineTransform) PrependTransform(transform IAffineTransform) { + objc.Call[objc.Void](a_, objc.Sel("prependTransform:"), transform) } // Applies a rotation factor (measured in radians) to the receiver’s transformation matrix. [Full Topic] @@ -162,18 +162,11 @@ func (a_ AffineTransform) RotateByRadians(angle float64) { objc.Call[objc.Void](a_, objc.Sel("rotateByRadians:"), angle) } -// Applies the specified scaling factor along both x and y axes to the receiver’s transformation matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1413649-scaleby?language=objc -func (a_ AffineTransform) ScaleBy(scale float64) { - objc.Call[objc.Void](a_, objc.Sel("scaleBy:"), scale) -} - -// Appends the specified matrix to the receiver’s matrix. [Full Topic] +// Applies a rotation factor (measured in degrees) to the receiver’s transformation matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1408404-appendtransform?language=objc -func (a_ AffineTransform) AppendTransform(transform IAffineTransform) { - objc.Call[objc.Void](a_, objc.Sel("appendTransform:"), transform) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1407401-rotatebydegrees?language=objc +func (a_ AffineTransform) RotateByDegrees(angle float64) { + objc.Call[objc.Void](a_, objc.Sel("rotateByDegrees:"), angle) } // Applies the specified translation factors to the receiver’s transformation matrix. [Full Topic] @@ -183,14 +176,21 @@ func (a_ AffineTransform) TranslateXByYBy(deltaX float64, deltaY float64) { objc.Call[objc.Void](a_, objc.Sel("translateXBy:yBy:"), deltaX, deltaY) } -// Applies the receiver’s transform to the specified point and returns the result. [Full Topic] +// Creates a new affine transform initialized to the identity matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1411619-transformpoint?language=objc -func (a_ AffineTransform) TransformPoint(aPoint Point) Point { - rv := objc.Call[Point](a_, objc.Sel("transformPoint:"), aPoint) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1589057-transform?language=objc +func (ac _AffineTransformClass) Transform() AffineTransform { + rv := objc.Call[AffineTransform](ac, objc.Sel("transform")) return rv } +// Creates a new affine transform initialized to the identity matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1589057-transform?language=objc +func AffineTransform_Transform() AffineTransform { + return AffineTransformClass.Transform() +} + // The matrix coefficients stored as the transformation matrix. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1414485-transformstruct?language=objc diff --git a/macos/foundation/aliastypes.gen.go b/macos/foundation/aliastypes.gen.go index d2e403e4..8e182e81 100644 --- a/macos/foundation/aliastypes.gen.go +++ b/macos/foundation/aliastypes.gen.go @@ -11,7 +11,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovidercompletionhandler?language=objc type ItemProviderCompletionHandler = func(item objc.Object, error Error) -// Implement this block to retrieve the result of the AppleScript executed by [foundation/nsuserapplescripttask/executewithappleevent]. [Full Topic] +// Implement this block to retrieve the result of the AppleScript executed by executeWithAppleEvent:completionHandler:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserapplescripttaskcompletionhandler?language=objc type UserAppleScriptTaskCompletionHandler = func(result AppleEventDescriptor, error Error) @@ -36,17 +36,17 @@ type ProgressPublishingHandler = func(progress Progress) ProgressUnpublishingHan // [Full Topic]: https://developer.apple.com/documentation/foundation/nscomparator?language=objc type Comparator = func(obj1 objc.Object, obj2 objc.Object) ComparisonResult -// Implement this block to retrieve the error of the script executed by [foundation/nsuserscripttask/executewithcompletionhandler]. [Full Topic] +// Implement this block to retrieve the error of the script executed by executeWithCompletionHandler:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserscripttaskcompletionhandler?language=objc type UserScriptTaskCompletionHandler = func(error Error) -// Implement this block to retrieve the output of the Automator workflow executed by [foundation/nsuserautomatortask/executewithinput]. [Full Topic] +// Implement this block to retrieve the output of the Automator workflow executed by executeWithInput:completionHandler:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserautomatortaskcompletionhandler?language=objc type UserAutomatorTaskCompletionHandler = func(result objc.Object, error Error) -// Implement this block to retrieve an error from the Unix scripted executed by [foundation/nsuserunixtask/executewitharguments]. [Full Topic] +// Implement this block to retrieve an error from the Unix scripted executed by executeWithArguments:completionHandler:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserunixtaskcompletionhandler?language=objc type UserUnixTaskCompletionHandler = func(error Error) diff --git a/macos/foundation/apple_event_descriptor.gen.go b/macos/foundation/apple_event_descriptor.gen.go index 439a19b1..adfa3c66 100644 --- a/macos/foundation/apple_event_descriptor.gen.go +++ b/macos/foundation/apple_event_descriptor.gen.go @@ -19,21 +19,21 @@ type _AppleEventDescriptorClass struct { // An interface definition for the [AppleEventDescriptor] class. type IAppleEventDescriptor interface { objc.IObject - DescriptorAtIndex(index int) AppleEventDescriptor - RemoveDescriptorAtIndex(index int) InsertDescriptorAtIndex(descriptor IAppleEventDescriptor, index int) + RemoveDescriptorAtIndex(index int) + DescriptorAtIndex(index int) AppleEventDescriptor SendEventWithOptionsTimeoutError(sendOptions AppleEventSendOptions, timeoutInSeconds TimeInterval, error unsafe.Pointer) AppleEventDescriptor - FileURLValue() URL + Int32Value() int32 + TypeCodeValue() uint StringValue() string - IsRecordDescriptor() bool - NumberOfItems() int + EnumCodeValue() uint + FileURLValue() URL + BooleanValue() bool Data() []byte DoubleValue() float64 - EnumCodeValue() uint - Int32Value() int32 DateValue() Date - BooleanValue() bool - TypeCodeValue() uint + NumberOfItems() int + IsRecordDescriptor() bool } // A wrapper for the Apple event descriptor data type. [Full Topic] @@ -97,72 +97,49 @@ func (a_ AppleEventDescriptor) Init() AppleEventDescriptor { return rv } -// Creates a descriptor initialized with type typeEnumerated that stores the specified enumerator data type value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1413358-descriptorwithenumcode?language=objc -func (ac _AppleEventDescriptorClass) DescriptorWithEnumCode(enumerator uint) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithEnumCode:"), enumerator) - return rv -} - -// Creates a descriptor initialized with type typeEnumerated that stores the specified enumerator data type value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1413358-descriptorwithenumcode?language=objc -func AppleEventDescriptor_DescriptorWithEnumCode(enumerator uint) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithEnumCode(enumerator) -} - -// Creates and initializes a descriptor for an Apple event record whose data has yet to be set. [Full Topic] +// Creates a descriptor initialized with type typeUnicodeText that stores the text from the specified string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1414380-recorddescriptor?language=objc -func (ac _AppleEventDescriptorClass) RecordDescriptor() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("recordDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1415227-descriptorwithstring?language=objc +func (ac _AppleEventDescriptorClass) DescriptorWithString(string_ string) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithString:"), string_) return rv } -// Creates and initializes a descriptor for an Apple event record whose data has yet to be set. [Full Topic] +// Creates a descriptor initialized with type typeUnicodeText that stores the text from the specified string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1414380-recorddescriptor?language=objc -func AppleEventDescriptor_RecordDescriptor() AppleEventDescriptor { - return AppleEventDescriptorClass.RecordDescriptor() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1415227-descriptorwithstring?language=objc +func AppleEventDescriptor_DescriptorWithString(string_ string) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithString(string_) } -// [Full Topic] +// Creates a descriptor initialized with Apple event type typeSInt32 that stores the specified integer value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416614-currentprocessdescriptor?language=objc -func (ac _AppleEventDescriptorClass) CurrentProcessDescriptor() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("currentProcessDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1411435-descriptorwithint32?language=objc +func (ac _AppleEventDescriptorClass) DescriptorWithInt32(signedInt int32) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithInt32:"), signedInt) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416614-currentprocessdescriptor?language=objc -func AppleEventDescriptor_CurrentProcessDescriptor() AppleEventDescriptor { - return AppleEventDescriptorClass.CurrentProcessDescriptor() -} - -// Returns the descriptor at the specified (one-based) position in the receiving descriptor list. [Full Topic] +// Creates a descriptor initialized with Apple event type typeSInt32 that stores the specified integer value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1408027-descriptoratindex?language=objc -func (a_ AppleEventDescriptor) DescriptorAtIndex(index int) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("descriptorAtIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1411435-descriptorwithint32?language=objc +func AppleEventDescriptor_DescriptorWithInt32(signedInt int32) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithInt32(signedInt) } -// [Full Topic] +// Creates a descriptor initialized with type typeType that stores the specified type value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416900-descriptorwithprocessidentifier?language=objc -func (ac _AppleEventDescriptorClass) DescriptorWithProcessIdentifier(processIdentifier kernel.Pid) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithProcessIdentifier:"), processIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1407547-descriptorwithtypecode?language=objc +func (ac _AppleEventDescriptorClass) DescriptorWithTypeCode(typeCode uint) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithTypeCode:"), typeCode) return rv } -// [Full Topic] +// Creates a descriptor initialized with type typeType that stores the specified type value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416900-descriptorwithprocessidentifier?language=objc -func AppleEventDescriptor_DescriptorWithProcessIdentifier(processIdentifier kernel.Pid) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithProcessIdentifier(processIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1407547-descriptorwithtypecode?language=objc +func AppleEventDescriptor_DescriptorWithTypeCode(typeCode uint) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithTypeCode(typeCode) } // [Full Topic] @@ -180,63 +157,79 @@ func AppleEventDescriptor_DescriptorWithFileURL(fileURL IURL) AppleEventDescript return AppleEventDescriptorClass.DescriptorWithFileURL(fileURL) } -// Removes the descriptor at the specified (one-based) position in the receiving descriptor list. [Full Topic] +// Creates and initializes an empty list descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1413644-removedescriptoratindex?language=objc -func (a_ AppleEventDescriptor) RemoveDescriptorAtIndex(index int) { - objc.Call[objc.Void](a_, objc.Sel("removeDescriptorAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412854-listdescriptor?language=objc +func (ac _AppleEventDescriptorClass) ListDescriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("listDescriptor")) + return rv } -// Creates a descriptor initialized with Apple event type typeSInt32 that stores the specified integer value. [Full Topic] +// Creates and initializes an empty list descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1411435-descriptorwithint32?language=objc -func (ac _AppleEventDescriptorClass) DescriptorWithInt32(signedInt int32) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithInt32:"), signedInt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412854-listdescriptor?language=objc +func AppleEventDescriptor_ListDescriptor() AppleEventDescriptor { + return AppleEventDescriptorClass.ListDescriptor() +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1415521-descriptorwithbundleidentifier?language=objc +func (ac _AppleEventDescriptorClass) DescriptorWithBundleIdentifier(bundleIdentifier string) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithBundleIdentifier:"), bundleIdentifier) return rv } -// Creates a descriptor initialized with Apple event type typeSInt32 that stores the specified integer value. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1411435-descriptorwithint32?language=objc -func AppleEventDescriptor_DescriptorWithInt32(signedInt int32) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithInt32(signedInt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1415521-descriptorwithbundleidentifier?language=objc +func AppleEventDescriptor_DescriptorWithBundleIdentifier(bundleIdentifier string) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithBundleIdentifier(bundleIdentifier) } -// Creates and initializes an empty list descriptor. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412854-listdescriptor?language=objc -func (ac _AppleEventDescriptorClass) ListDescriptor() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("listDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416900-descriptorwithprocessidentifier?language=objc +func (ac _AppleEventDescriptorClass) DescriptorWithProcessIdentifier(processIdentifier kernel.Pid) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithProcessIdentifier:"), processIdentifier) return rv } -// Creates and initializes an empty list descriptor. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412854-listdescriptor?language=objc -func AppleEventDescriptor_ListDescriptor() AppleEventDescriptor { - return AppleEventDescriptorClass.ListDescriptor() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416900-descriptorwithprocessidentifier?language=objc +func AppleEventDescriptor_DescriptorWithProcessIdentifier(processIdentifier kernel.Pid) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithProcessIdentifier(processIdentifier) } -// Inserts a descriptor at the specified (one-based) position in the receiving descriptor list, replacing the existing descriptor, if any, at that position. [Full Topic] +// Creates a descriptor initialized with type typeEnumerated that stores the specified enumerator data type value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409452-insertdescriptor?language=objc -func (a_ AppleEventDescriptor) InsertDescriptorAtIndex(descriptor IAppleEventDescriptor, index int) { - objc.Call[objc.Void](a_, objc.Sel("insertDescriptor:atIndex:"), descriptor, index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1413358-descriptorwithenumcode?language=objc +func (ac _AppleEventDescriptorClass) DescriptorWithEnumCode(enumerator uint) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithEnumCode:"), enumerator) + return rv +} + +// Creates a descriptor initialized with type typeEnumerated that stores the specified enumerator data type value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1413358-descriptorwithenumcode?language=objc +func AppleEventDescriptor_DescriptorWithEnumCode(enumerator uint) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithEnumCode(enumerator) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412834-descriptorwithapplicationurl?language=objc -func (ac _AppleEventDescriptorClass) DescriptorWithApplicationURL(applicationURL IURL) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithApplicationURL:"), applicationURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409710-descriptorwithdate?language=objc +func (ac _AppleEventDescriptorClass) DescriptorWithDate(date IDate) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithDate:"), date) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412834-descriptorwithapplicationurl?language=objc -func AppleEventDescriptor_DescriptorWithApplicationURL(applicationURL IURL) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithApplicationURL(applicationURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409710-descriptorwithdate?language=objc +func AppleEventDescriptor_DescriptorWithDate(date IDate) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithDate(date) } // Creates a descriptor initialized with type typeBoolean that stores the specified Boolean value. [Full Topic] @@ -254,34 +247,48 @@ func AppleEventDescriptor_DescriptorWithBoolean(boolean bool) AppleEventDescript return AppleEventDescriptorClass.DescriptorWithBoolean(boolean) } -// [Full Topic] +// Inserts a descriptor at the specified (one-based) position in the receiving descriptor list, replacing the existing descriptor, if any, at that position. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1415521-descriptorwithbundleidentifier?language=objc -func (ac _AppleEventDescriptorClass) DescriptorWithBundleIdentifier(bundleIdentifier string) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithBundleIdentifier:"), bundleIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409452-insertdescriptor?language=objc +func (a_ AppleEventDescriptor) InsertDescriptorAtIndex(descriptor IAppleEventDescriptor, index int) { + objc.Call[objc.Void](a_, objc.Sel("insertDescriptor:atIndex:"), descriptor, index) +} + +// Creates and initializes a descriptor for an Apple event record whose data has yet to be set. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1414380-recorddescriptor?language=objc +func (ac _AppleEventDescriptorClass) RecordDescriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("recordDescriptor")) return rv } -// [Full Topic] +// Creates and initializes a descriptor for an Apple event record whose data has yet to be set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1415521-descriptorwithbundleidentifier?language=objc -func AppleEventDescriptor_DescriptorWithBundleIdentifier(bundleIdentifier string) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithBundleIdentifier(bundleIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1414380-recorddescriptor?language=objc +func AppleEventDescriptor_RecordDescriptor() AppleEventDescriptor { + return AppleEventDescriptorClass.RecordDescriptor() } -// Creates a descriptor initialized with type typeUnicodeText that stores the text from the specified string. [Full Topic] +// Creates and initializes a descriptor with no parameter or attribute values set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1415227-descriptorwithstring?language=objc -func (ac _AppleEventDescriptorClass) DescriptorWithString(string_ string) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithString:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412488-nulldescriptor?language=objc +func (ac _AppleEventDescriptorClass) NullDescriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("nullDescriptor")) return rv } -// Creates a descriptor initialized with type typeUnicodeText that stores the text from the specified string. [Full Topic] +// Creates and initializes a descriptor with no parameter or attribute values set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1415227-descriptorwithstring?language=objc -func AppleEventDescriptor_DescriptorWithString(string_ string) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithString(string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412488-nulldescriptor?language=objc +func AppleEventDescriptor_NullDescriptor() AppleEventDescriptor { + return AppleEventDescriptorClass.NullDescriptor() +} + +// Removes the descriptor at the specified (one-based) position in the receiving descriptor list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1413644-removedescriptoratindex?language=objc +func (a_ AppleEventDescriptor) RemoveDescriptorAtIndex(index int) { + objc.Call[objc.Void](a_, objc.Sel("removeDescriptorAtIndex:"), index) } // [Full Topic] @@ -301,49 +308,42 @@ func AppleEventDescriptor_DescriptorWithDouble(doubleValue float64) AppleEventDe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409710-descriptorwithdate?language=objc -func (ac _AppleEventDescriptorClass) DescriptorWithDate(date IDate) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithDate:"), date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416614-currentprocessdescriptor?language=objc +func (ac _AppleEventDescriptorClass) CurrentProcessDescriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("currentProcessDescriptor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409710-descriptorwithdate?language=objc -func AppleEventDescriptor_DescriptorWithDate(date IDate) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithDate(date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416614-currentprocessdescriptor?language=objc +func AppleEventDescriptor_CurrentProcessDescriptor() AppleEventDescriptor { + return AppleEventDescriptorClass.CurrentProcessDescriptor() } -// Creates and initializes a descriptor with no parameter or attribute values set. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412488-nulldescriptor?language=objc -func (ac _AppleEventDescriptorClass) NullDescriptor() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("nullDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412834-descriptorwithapplicationurl?language=objc +func (ac _AppleEventDescriptorClass) DescriptorWithApplicationURL(applicationURL IURL) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithApplicationURL:"), applicationURL) return rv } -// Creates and initializes a descriptor with no parameter or attribute values set. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412488-nulldescriptor?language=objc -func AppleEventDescriptor_NullDescriptor() AppleEventDescriptor { - return AppleEventDescriptorClass.NullDescriptor() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412834-descriptorwithapplicationurl?language=objc +func AppleEventDescriptor_DescriptorWithApplicationURL(applicationURL IURL) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithApplicationURL(applicationURL) } -// Creates a descriptor initialized with type typeType that stores the specified type value. [Full Topic] +// Returns the descriptor at the specified (one-based) position in the receiving descriptor list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1407547-descriptorwithtypecode?language=objc -func (ac _AppleEventDescriptorClass) DescriptorWithTypeCode(typeCode uint) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithTypeCode:"), typeCode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1408027-descriptoratindex?language=objc +func (a_ AppleEventDescriptor) DescriptorAtIndex(index int) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("descriptorAtIndex:"), index) return rv } -// Creates a descriptor initialized with type typeType that stores the specified type value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1407547-descriptorwithtypecode?language=objc -func AppleEventDescriptor_DescriptorWithTypeCode(typeCode uint) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithTypeCode(typeCode) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409337-sendeventwithoptions?language=objc @@ -352,11 +352,19 @@ func (a_ AppleEventDescriptor) SendEventWithOptionsTimeoutError(sendOptions Appl return rv } -// [Full Topic] +// The contents of the receiver as an integer, coercing (to typeSInt32) if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409448-fileurlvalue?language=objc -func (a_ AppleEventDescriptor) FileURLValue() URL { - rv := objc.Call[URL](a_, objc.Sel("fileURLValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1407270-int32value?language=objc +func (a_ AppleEventDescriptor) Int32Value() int32 { + rv := objc.Call[int32](a_, objc.Sel("int32Value")) + return rv +} + +// The contents of the receiver as a type, coercing to typeType if necessary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409662-typecodevalue?language=objc +func (a_ AppleEventDescriptor) TypeCodeValue() uint { + rv := objc.Call[uint](a_, objc.Sel("typeCodeValue")) return rv } @@ -368,19 +376,27 @@ func (a_ AppleEventDescriptor) StringValue() string { return rv } +// The contents of the receiver as an enumeration type, coercing to typeEnumerated if necessary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1408039-enumcodevalue?language=objc +func (a_ AppleEventDescriptor) EnumCodeValue() uint { + rv := objc.Call[uint](a_, objc.Sel("enumCodeValue")) + return rv +} + // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1410136-isrecorddescriptor?language=objc -func (a_ AppleEventDescriptor) IsRecordDescriptor() bool { - rv := objc.Call[bool](a_, objc.Sel("isRecordDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409448-fileurlvalue?language=objc +func (a_ AppleEventDescriptor) FileURLValue() URL { + rv := objc.Call[URL](a_, objc.Sel("fileURLValue")) return rv } -// The number of descriptors in the receiver’s descriptor list. [Full Topic] +// The contents of the receiver as a Boolean value, coercing (to typeBoolean) if necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416786-numberofitems?language=objc -func (a_ AppleEventDescriptor) NumberOfItems() int { - rv := objc.Call[int](a_, objc.Sel("numberOfItems")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412412-booleanvalue?language=objc +func (a_ AppleEventDescriptor) BooleanValue() bool { + rv := objc.Call[bool](a_, objc.Sel("booleanValue")) return rv } @@ -400,22 +416,6 @@ func (a_ AppleEventDescriptor) DoubleValue() float64 { return rv } -// The contents of the receiver as an enumeration type, coercing to typeEnumerated if necessary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1408039-enumcodevalue?language=objc -func (a_ AppleEventDescriptor) EnumCodeValue() uint { - rv := objc.Call[uint](a_, objc.Sel("enumCodeValue")) - return rv -} - -// The contents of the receiver as an integer, coercing (to typeSInt32) if necessary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1407270-int32value?language=objc -func (a_ AppleEventDescriptor) Int32Value() int32 { - rv := objc.Call[int32](a_, objc.Sel("int32Value")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416330-datevalue?language=objc @@ -424,18 +424,18 @@ func (a_ AppleEventDescriptor) DateValue() Date { return rv } -// The contents of the receiver as a Boolean value, coercing (to typeBoolean) if necessary. [Full Topic] +// The number of descriptors in the receiver’s descriptor list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412412-booleanvalue?language=objc -func (a_ AppleEventDescriptor) BooleanValue() bool { - rv := objc.Call[bool](a_, objc.Sel("booleanValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416786-numberofitems?language=objc +func (a_ AppleEventDescriptor) NumberOfItems() int { + rv := objc.Call[int](a_, objc.Sel("numberOfItems")) return rv } -// The contents of the receiver as a type, coercing to typeType if necessary. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1409662-typecodevalue?language=objc -func (a_ AppleEventDescriptor) TypeCodeValue() uint { - rv := objc.Call[uint](a_, objc.Sel("typeCodeValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1410136-isrecorddescriptor?language=objc +func (a_ AppleEventDescriptor) IsRecordDescriptor() bool { + rv := objc.Call[bool](a_, objc.Sel("isRecordDescriptor")) return rv } diff --git a/macos/foundation/apple_event_manager.gen.go b/macos/foundation/apple_event_manager.gen.go index 5b3b1e39..12e961da 100644 --- a/macos/foundation/apple_event_manager.gen.go +++ b/macos/foundation/apple_event_manager.gen.go @@ -18,13 +18,13 @@ type _AppleEventManagerClass struct { // An interface definition for the [AppleEventManager] class. type IAppleEventManager interface { objc.IObject - AppleEventForSuspensionID(suspensionID AppleEventManagerSuspensionID) AppleEventDescriptor ReplyAppleEventForSuspensionID(suspensionID AppleEventManagerSuspensionID) AppleEventDescriptor - SetCurrentAppleEventAndReplyEventWithSuspensionID(suspensionID AppleEventManagerSuspensionID) SuspendCurrentAppleEvent() AppleEventManagerSuspensionID + SetCurrentAppleEventAndReplyEventWithSuspensionID(suspensionID AppleEventManagerSuspensionID) + AppleEventForSuspensionID(suspensionID AppleEventManagerSuspensionID) AppleEventDescriptor ResumeWithSuspensionID(suspensionID AppleEventManagerSuspensionID) - CurrentReplyAppleEvent() AppleEventDescriptor CurrentAppleEvent() AppleEventDescriptor + CurrentReplyAppleEvent() AppleEventDescriptor } // A mechanism for registering handler routines for specific types of Apple events and dispatching events to those handlers. [Full Topic] @@ -60,19 +60,19 @@ func (a_ AppleEventManager) Init() AppleEventManager { return rv } -// Given a nonzero suspensionID returned by an invocation of [foundation/nsappleeventmanager/suspendcurrentappleevent], returns the descriptor for the event whose handling was suspended. [Full Topic] +// Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, returns the corresponding reply event descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1410477-appleeventforsuspensionid?language=objc -func (a_ AppleEventManager) AppleEventForSuspensionID(suspensionID AppleEventManagerSuspensionID) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("appleEventForSuspensionID:"), suspensionID) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1415286-replyappleeventforsuspensionid?language=objc +func (a_ AppleEventManager) ReplyAppleEventForSuspensionID(suspensionID AppleEventManagerSuspensionID) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("replyAppleEventForSuspensionID:"), suspensionID) return rv } -// Given a nonzero suspensionID returned by an invocation of [foundation/nsappleeventmanager/suspendcurrentappleevent], returns the corresponding reply event descriptor. [Full Topic] +// Suspends the handling of the current event and returns an ID that must be used to resume the handling of the event if an Apple event is being handled on the current thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1415286-replyappleeventforsuspensionid?language=objc -func (a_ AppleEventManager) ReplyAppleEventForSuspensionID(suspensionID AppleEventManagerSuspensionID) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("replyAppleEventForSuspensionID:"), suspensionID) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1413501-suspendcurrentappleevent?language=objc +func (a_ AppleEventManager) SuspendCurrentAppleEvent() AppleEventManagerSuspensionID { + rv := objc.Call[AppleEventManagerSuspensionID](a_, objc.Sel("suspendCurrentAppleEvent")) return rv } @@ -91,36 +91,28 @@ func AppleEventManager_SharedAppleEventManager() AppleEventManager { return AppleEventManagerClass.SharedAppleEventManager() } -// Given a nonzero suspensionID returned by an invocation of [foundation/nsappleeventmanager/suspendcurrentappleevent], sets the values that will be returned by subsequent invocations of [foundation/nsappleeventmanager/currentappleevent] and [foundation/nsappleeventmanager/currentreplyappleevent] to be the event whose handling was suspended and its corresponding reply event, respectively. [Full Topic] +// Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, sets the values that will be returned by subsequent invocations of currentAppleEvent and currentReplyAppleEvent to be the event whose handling was suspended and its corresponding reply event, respectively. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1415997-setcurrentappleeventandreplyeven?language=objc func (a_ AppleEventManager) SetCurrentAppleEventAndReplyEventWithSuspensionID(suspensionID AppleEventManagerSuspensionID) { objc.Call[objc.Void](a_, objc.Sel("setCurrentAppleEventAndReplyEventWithSuspensionID:"), suspensionID) } -// Suspends the handling of the current event and returns an ID that must be used to resume the handling of the event if an Apple event is being handled on the current thread. [Full Topic] +// Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, returns the descriptor for the event whose handling was suspended. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1413501-suspendcurrentappleevent?language=objc -func (a_ AppleEventManager) SuspendCurrentAppleEvent() AppleEventManagerSuspensionID { - rv := objc.Call[AppleEventManagerSuspensionID](a_, objc.Sel("suspendCurrentAppleEvent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1410477-appleeventforsuspensionid?language=objc +func (a_ AppleEventManager) AppleEventForSuspensionID(suspensionID AppleEventManagerSuspensionID) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("appleEventForSuspensionID:"), suspensionID) return rv } -// Given a nonzero suspensionID returned by an invocation of [foundation/nsappleeventmanager/suspendcurrentappleevent], signal that handling of the suspended event may now continue. [Full Topic] +// Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, signal that handling of the suspended event may now continue. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1412315-resumewithsuspensionid?language=objc func (a_ AppleEventManager) ResumeWithSuspensionID(suspensionID AppleEventManagerSuspensionID) { objc.Call[objc.Void](a_, objc.Sel("resumeWithSuspensionID:"), suspensionID) } -// Returns the corresponding reply event descriptor if an Apple event is being handled on the current thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1413207-currentreplyappleevent?language=objc -func (a_ AppleEventManager) CurrentReplyAppleEvent() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("currentReplyAppleEvent")) - return rv -} - // Returns the descriptor for currentAppleEvent if an Apple event is being handled on the current thread. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1414690-currentappleevent?language=objc @@ -128,3 +120,11 @@ func (a_ AppleEventManager) CurrentAppleEvent() AppleEventDescriptor { rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("currentAppleEvent")) return rv } + +// Returns the corresponding reply event descriptor if an Apple event is being handled on the current thread. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventmanager/1413207-currentreplyappleevent?language=objc +func (a_ AppleEventManager) CurrentReplyAppleEvent() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("currentReplyAppleEvent")) + return rv +} diff --git a/macos/foundation/apple_script.gen.go b/macos/foundation/apple_script.gen.go index d54ff4cb..9864e2bb 100644 --- a/macos/foundation/apple_script.gen.go +++ b/macos/foundation/apple_script.gen.go @@ -18,12 +18,12 @@ type _AppleScriptClass struct { // An interface definition for the [AppleScript] class. type IAppleScript interface { objc.IObject - ExecuteAndReturnError(errorInfo unsafe.Pointer) AppleEventDescriptor CompileAndReturnError(errorInfo unsafe.Pointer) bool + ExecuteAndReturnError(errorInfo unsafe.Pointer) AppleEventDescriptor ExecuteAppleEventError(event IAppleEventDescriptor, errorInfo unsafe.Pointer) AppleEventDescriptor - IsCompiled() bool RichTextSource() AttributedString Source() string + IsCompiled() bool } // An object that provides the ability to load, compile, and execute scripts. [Full Topic] @@ -87,14 +87,6 @@ func (a_ AppleScript) Init() AppleScript { return rv } -// Executes the receiver, compiling it first if it is not already compiled. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsapplescript/1410034-executeandreturnerror?language=objc -func (a_ AppleScript) ExecuteAndReturnError(errorInfo unsafe.Pointer) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("executeAndReturnError:"), errorInfo) - return rv -} - // Compiles the receiver, if it is not already compiled. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsapplescript/1407582-compileandreturnerror?language=objc @@ -103,19 +95,19 @@ func (a_ AppleScript) CompileAndReturnError(errorInfo unsafe.Pointer) bool { return rv } -// Executes an Apple event in the context of the receiver, as a means of allowing the application to invoke a handler in the script. [Full Topic] +// Executes the receiver, compiling it first if it is not already compiled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsapplescript/1410807-executeappleevent?language=objc -func (a_ AppleScript) ExecuteAppleEventError(event IAppleEventDescriptor, errorInfo unsafe.Pointer) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("executeAppleEvent:error:"), event, errorInfo) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsapplescript/1410034-executeandreturnerror?language=objc +func (a_ AppleScript) ExecuteAndReturnError(errorInfo unsafe.Pointer) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("executeAndReturnError:"), errorInfo) return rv } -// A Boolean value that indicates whether the receiver's script has been compiled. [Full Topic] +// Executes an Apple event in the context of the receiver, as a means of allowing the application to invoke a handler in the script. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsapplescript/1410407-compiled?language=objc -func (a_ AppleScript) IsCompiled() bool { - rv := objc.Call[bool](a_, objc.Sel("isCompiled")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsapplescript/1410807-executeappleevent?language=objc +func (a_ AppleScript) ExecuteAppleEventError(event IAppleEventDescriptor, errorInfo unsafe.Pointer) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("executeAppleEvent:error:"), event, errorInfo) return rv } @@ -134,3 +126,11 @@ func (a_ AppleScript) Source() string { rv := objc.Call[string](a_, objc.Sel("source")) return rv } + +// A Boolean value that indicates whether the receiver's script has been compiled. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsapplescript/1410407-compiled?language=objc +func (a_ AppleScript) IsCompiled() bool { + rv := objc.Call[bool](a_, objc.Sel("isCompiled")) + return rv +} diff --git a/macos/foundation/array.gen.go b/macos/foundation/array.gen.go index b2187d9a..a3a2e444 100644 --- a/macos/foundation/array.gen.go +++ b/macos/foundation/array.gen.go @@ -18,66 +18,54 @@ type _ArrayClass struct { // An interface definition for the [Array] class. type IArray interface { objc.IObject - ComponentsJoinedByString(separator string) string - RemoveObserverFromObjectsAtIndexesForKeyPath(observer objc.IObject, indexes IIndexSet, keyPath string) - GetObjectsRange(objects unsafe.Pointer, range_ Range) - ArrayByApplyingDifference(difference IOrderedCollectionDifference) []objc.Object - ArrayByAddingObjectsFromArray(otherArray []objc.IObject) []objc.Object - RemoveObserverForKeyPath(observer objc.IObject, keyPath string) - ContainsObject(anObject objc.IObject) bool - ValueForKey(key string) objc.Object ObjectEnumerator() Enumerator - DifferenceFromArray(other []objc.IObject) OrderedCollectionDifference - MakeObjectsPerformSelectorWithObject(aSelector objc.Selector, argument objc.IObject) - SubarrayWithRange(range_ Range) []objc.Object - IndexesOfObjectsAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet - IndexOfObjectAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint - ReverseObjectEnumerator() Enumerator + SortedArrayUsingFunctionContextHint(comparator func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer, hint []byte) []objc.Object + IsEqualToArray(otherArray []objc.IObject) bool + SortedArrayWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object ObjectsAtIndexes(indexes IIndexSet) []objc.Object - IndexOfObjectIdenticalTo(anObject objc.IObject) uint - MakeObjectsPerformSelector(aSelector objc.Selector) - DifferenceFromArrayWithOptions(other []objc.IObject, options OrderedCollectionDifferenceCalculationOptions) OrderedCollectionDifference - RemoveObserverFromObjectsAtIndexesForKeyPathContext(observer objc.IObject, indexes IIndexSet, keyPath string, context unsafe.Pointer) - IndexOfObjectWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint - IndexesOfObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet - FirstObjectCommonWithArray(otherArray []objc.IObject) objc.Object - ArrayByAddingObject(anObject objc.IObject) []objc.Object - WriteToURLError(url IURL, error unsafe.Pointer) bool - FilteredArrayUsingPredicate(predicate IPredicate) []objc.Object ShuffledArray() []objc.Object - InitWithContentsOfURLError(url IURL, error unsafe.Pointer) []objc.Object - RemoveObserverForKeyPathContext(observer objc.IObject, keyPath string, context unsafe.Pointer) - IndexOfObject(anObject objc.IObject) uint - SortedArrayUsingFunctionContextHint(comparator func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer, hint []byte) []objc.Object - EnumerateObjectsAtIndexesOptionsUsingBlock(s IIndexSet, opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) - SetValueForKey(value objc.IObject, key string) - EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) - SortedArrayUsingFunctionContext(comparator func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) []objc.Object - IndexOfObjectInSortedRangeOptionsUsingComparator(obj objc.IObject, r Range, opts BinarySearchingOptions, cmp Comparator) uint EnumerateObjectsUsingBlock(block func(obj objc.Object, idx uint, stop *bool)) - SortedArrayUsingSelector(comparator objc.Selector) []objc.Object SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object - PathsMatchingExtensions(filterTypes []string) []string - IndexOfObjectIdenticalToInRange(anObject objc.IObject, range_ Range) uint + ArrayByAddingObjectsFromArray(otherArray []objc.IObject) []objc.Object + IndexesOfObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet IndexOfObjectPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) uint - DescriptionWithLocaleIndent(locale objc.IObject, level uint) string + SortedArrayUsingSelector(comparator objc.Selector) []objc.Object + IndexOfObjectIdenticalToInRange(anObject objc.IObject, range_ Range) uint + ObjectAtIndex(index uint) objc.Object + FilteredArrayUsingPredicate(predicate IPredicate) []objc.Object ObjectAtIndexedSubscript(idx uint) objc.Object - AddObserverForKeyPathOptionsContext(observer objc.IObject, keyPath string, options KeyValueObservingOptions, context unsafe.Pointer) - SortedArrayUsingComparator(cmptr Comparator) []objc.Object - IsEqualToArray(otherArray []objc.IObject) bool - IndexOfObjectInRange(anObject objc.IObject, range_ Range) uint + ArrayByApplyingDifference(difference IOrderedCollectionDifference) []objc.Object + EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) + GetObjectsRange(objects unsafe.Pointer, range_ Range) + InitWithContentsOfURLError(url IURL, error unsafe.Pointer) []objc.Object + ContainsObject(anObject objc.IObject) bool + MakeObjectsPerformSelector(aSelector objc.Selector) + ReverseObjectEnumerator() Enumerator + WriteToURLError(url IURL, error unsafe.Pointer) bool + IndexesOfObjectsAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet + RemoveObserverForKeyPath(observer objc.IObject, keyPath string) DescriptionWithLocale(locale objc.IObject) string - ObjectAtIndex(index uint) objc.Object - DifferenceFromArrayWithOptionsUsingEquivalenceTest(other []objc.IObject, options OrderedCollectionDifferenceCalculationOptions, block func(obj1 objc.Object, obj2 objc.Object) bool) OrderedCollectionDifference - SortedArrayWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object - ShuffledArrayWithRandomSource(randomSource objc.IObject) []objc.Object + SubarrayWithRange(range_ Range) []objc.Object + DifferenceFromArray(other []objc.IObject) OrderedCollectionDifference + SetValueForKey(value objc.IObject, key string) IndexesOfObjectsPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet - AddObserverToObjectsAtIndexesForKeyPathOptionsContext(observer objc.IObject, indexes IIndexSet, keyPath string, options KeyValueObservingOptions, context unsafe.Pointer) + ArrayByAddingObject(anObject objc.IObject) []objc.Object + IndexOfObject(anObject objc.IObject) uint + AddObserverForKeyPathOptionsContext(observer objc.IObject, keyPath string, options KeyValueObservingOptions, context unsafe.Pointer) + IndexOfObjectWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint + EnumerateObjectsAtIndexesOptionsUsingBlock(s IIndexSet, opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) + ShuffledArrayWithRandomSource(randomSource objc.IObject) []objc.Object + PathsMatchingExtensions(filterTypes []string) []string + ComponentsJoinedByString(separator string) string + ValueForKey(key string) objc.Object + IndexOfObjectAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint + FirstObjectCommonWithArray(otherArray []objc.IObject) objc.Object + SortedArrayUsingComparator(cmptr Comparator) []objc.Object SortedArrayHint() []byte + LastObject() objc.Object + Description() string Count() uint FirstObject() objc.Object - Description() string - LastObject() objc.Object } // A static ordered collection of objects. [Full Topic] @@ -93,63 +81,6 @@ func ArrayFrom(ptr unsafe.Pointer) Array { } } -func (ac _ArrayClass) ArrayWithArray(array []objc.IObject) Array { - rv := objc.Call[Array](ac, objc.Sel("arrayWithArray:"), array) - return rv -} - -// Creates and returns an array containing the objects in another given array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460122-arraywitharray?language=objc -func Array_ArrayWithArray(array []objc.IObject) Array { - return ArrayClass.ArrayWithArray(array) -} - -func (a_ Array) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) Array { - rv := objc.Call[Array](a_, objc.Sel("initWithObjects:count:"), objects, cnt) - return rv -} - -// Initializes a newly allocated array to include a given number of objects from a given C array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415056-initwithobjects?language=objc -func NewArrayWithObjectsCount(objects unsafe.Pointer, cnt uint) Array { - instance := ArrayClass.Alloc().InitWithObjectsCount(objects, cnt) - instance.Autorelease() - return instance -} - -func (a_ Array) Init() Array { - rv := objc.Call[Array](a_, objc.Sel("init")) - return rv -} - -func (a_ Array) InitWithArrayCopyItems(array []objc.IObject, flag bool) Array { - rv := objc.Call[Array](a_, objc.Sel("initWithArray:copyItems:"), array, flag) - return rv -} - -// Initializes a newly allocated array using anArray as the source of data objects for the array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408557-initwitharray?language=objc -func NewArrayWithArrayCopyItems(array []objc.IObject, flag bool) Array { - instance := ArrayClass.Alloc().InitWithArrayCopyItems(array, flag) - instance.Autorelease() - return instance -} - -func (ac _ArrayClass) ArrayWithObject(anObject objc.IObject) Array { - rv := objc.Call[Array](ac, objc.Sel("arrayWithObject:"), anObject) - return rv -} - -// Creates and returns an array containing a given object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1411981-arraywithobject?language=objc -func Array_ArrayWithObject(anObject objc.IObject) Array { - return ArrayClass.ArrayWithObject(anObject) -} - func (a_ Array) InitWithObjects(firstObj objc.IObject, args ...any) Array { rv := objc.Call[Array](a_, objc.Sel("initWithObjects:"), append([]any{firstObj}, args...)...) return rv @@ -176,6 +107,18 @@ func Array_Array() Array { return ArrayClass.Array() } +func (ac _ArrayClass) ArrayWithObjects(firstObj objc.IObject, args ...any) Array { + rv := objc.Call[Array](ac, objc.Sel("arrayWithObjects:"), append([]any{firstObj}, args...)...) + return rv +} + +// Creates and returns an array containing the objects in the argument list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460145-arraywithobjects?language=objc +func Array_ArrayWithObjects(firstObj objc.IObject, args ...any) Array { + return ArrayClass.ArrayWithObjects(firstObj, args...) +} + func (a_ Array) InitWithArray(array []objc.IObject) Array { rv := objc.Call[Array](a_, objc.Sel("initWithArray:"), array) return rv @@ -190,28 +133,33 @@ func NewArrayWithArray(array []objc.IObject) Array { return instance } -func (ac _ArrayClass) ArrayWithObjectsCount(objects unsafe.Pointer, cnt uint) Array { - rv := objc.Call[Array](ac, objc.Sel("arrayWithObjects:count:"), objects, cnt) +func (ac _ArrayClass) ArrayWithArray(array []objc.IObject) Array { + rv := objc.Call[Array](ac, objc.Sel("arrayWithArray:"), array) return rv } -// Creates and returns an array that includes a given number of objects from a given C array. [Full Topic] +// Creates and returns an array containing the objects in another given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460096-arraywithobjects?language=objc -func Array_ArrayWithObjectsCount(objects unsafe.Pointer, cnt uint) Array { - return ArrayClass.ArrayWithObjectsCount(objects, cnt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460122-arraywitharray?language=objc +func Array_ArrayWithArray(array []objc.IObject) Array { + return ArrayClass.ArrayWithArray(array) } -func (ac _ArrayClass) ArrayWithObjects(firstObj objc.IObject, args ...any) Array { - rv := objc.Call[Array](ac, objc.Sel("arrayWithObjects:"), append([]any{firstObj}, args...)...) +func (ac _ArrayClass) ArrayWithObject(anObject objc.IObject) Array { + rv := objc.Call[Array](ac, objc.Sel("arrayWithObject:"), anObject) return rv } -// Creates and returns an array containing the objects in the argument list. [Full Topic] +// Creates and returns an array containing a given object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460145-arraywithobjects?language=objc -func Array_ArrayWithObjects(firstObj objc.IObject, args ...any) Array { - return ArrayClass.ArrayWithObjects(firstObj, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1411981-arraywithobject?language=objc +func Array_ArrayWithObject(anObject objc.IObject) Array { + return ArrayClass.ArrayWithObject(anObject) +} + +func (a_ Array) Init() Array { + rv := objc.Call[Array](a_, objc.Sel("init")) + return rv } func (ac _ArrayClass) Alloc() Array { @@ -229,67 +177,6 @@ func NewArray() Array { return ArrayClass.New() } -// Constructs and returns an NSString object that is the result of interposing a given separator between the elements of the array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1412075-componentsjoinedbystring?language=objc -func (a_ Array) ComponentsJoinedByString(separator string) string { - rv := objc.Call[string](a_, objc.Sel("componentsJoinedByString:"), separator) - return rv -} - -// Removes anObserver from all key value observer notifications associated with the specified keyPath relative to the array’s objects at indexes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1407434-removeobserver?language=objc -func (a_ Array) RemoveObserverFromObjectsAtIndexesForKeyPath(observer objc.IObject, indexes IIndexSet, keyPath string) { - objc.Call[objc.Void](a_, objc.Sel("removeObserver:fromObjectsAtIndexes:forKeyPath:"), observer, indexes, keyPath) -} - -// Copies references to objects contained in the array that fall within the specified range to aBuffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1414725-getobjects?language=objc -func (a_ Array) GetObjectsRange(objects unsafe.Pointer, range_ Range) { - objc.Call[objc.Void](a_, objc.Sel("getObjects:range:"), objects, range_) -} - -// Creates a new array by applying a difference object to an existing array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/3152165-arraybyapplyingdifference?language=objc -func (a_ Array) ArrayByApplyingDifference(difference IOrderedCollectionDifference) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("arrayByApplyingDifference:"), difference) - return rv -} - -// Returns a new array that is a copy of the receiving array with the objects contained in another array added to the end. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1412087-arraybyaddingobjectsfromarray?language=objc -func (a_ Array) ArrayByAddingObjectsFromArray(otherArray []objc.IObject) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("arrayByAddingObjectsFromArray:"), otherArray) - return rv -} - -// Raises an exception. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1414976-removeobserver?language=objc -func (a_ Array) RemoveObserverForKeyPath(observer objc.IObject, keyPath string) { - objc.Call[objc.Void](a_, objc.Sel("removeObserver:forKeyPath:"), observer, keyPath) -} - -// Returns a Boolean value that indicates whether a given object is present in the array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1407477-containsobject?language=objc -func (a_ Array) ContainsObject(anObject objc.IObject) bool { - rv := objc.Call[bool](a_, objc.Sel("containsObject:"), anObject) - return rv -} - -// Returns an array containing the results of invoking [foundation/nsarray/valueforkey] using key on each of the array's objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1412219-valueforkey?language=objc -func (a_ Array) ValueForKey(key string) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("valueForKey:"), key) - return rv -} - // Returns an enumerator object that lets you access each object in the array. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1416048-objectenumerator?language=objc @@ -298,50 +185,27 @@ func (a_ Array) ObjectEnumerator() Enumerator { return rv } -// Compares two arrays to create a difference object that represents the changes between them. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/3152166-differencefromarray?language=objc -func (a_ Array) DifferenceFromArray(other []objc.IObject) OrderedCollectionDifference { - rv := objc.Call[OrderedCollectionDifference](a_, objc.Sel("differenceFromArray:"), other) - return rv -} - -// Sends the aSelector message to each object in the array, starting with the first object and continuing through the array to the last object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460107-makeobjectsperformselector?language=objc -func (a_ Array) MakeObjectsPerformSelectorWithObject(aSelector objc.Selector, argument objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("makeObjectsPerformSelector:withObject:"), aSelector, argument) -} - -// Returns a new array containing the receiving array’s elements that fall within the limits specified by a given range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415157-subarraywithrange?language=objc -func (a_ Array) SubarrayWithRange(range_ Range) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("subarrayWithRange:"), range_) - return rv -} - -// Returns the indexes, from a given set of indexes, of objects in the array that pass a test in a given block for a given set of enumeration options. [Full Topic] +// Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1413512-indexesofobjectsatindexes?language=objc -func (a_ Array) IndexesOfObjectsAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet { - rv := objc.Call[IndexSet](a_, objc.Sel("indexesOfObjectsAtIndexes:options:passingTest:"), s, opts, predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1414839-sortedarrayusingfunction?language=objc +func (a_ Array) SortedArrayUsingFunctionContextHint(comparator func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer, hint []byte) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayUsingFunction:context:hint:"), comparator, context, hint) return rv } -// Returns the index, from a given set of indexes, of the first object in the array that passes a test in a given block for a given set of enumeration options. [Full Topic] +// Compares the receiving array to another array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1407652-indexofobjectatindexes?language=objc -func (a_ Array) IndexOfObjectAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint { - rv := objc.Call[uint](a_, objc.Sel("indexOfObjectAtIndexes:options:passingTest:"), s, opts, predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1411770-isequaltoarray?language=objc +func (a_ Array) IsEqualToArray(otherArray []objc.IObject) bool { + rv := objc.Call[bool](a_, objc.Sel("isEqualToArray:"), otherArray) return rv } -// Returns an enumerator object that lets you access each object in the array, in reverse order. [Full Topic] +// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415734-reverseobjectenumerator?language=objc -func (a_ Array) ReverseObjectEnumerator() Enumerator { - rv := objc.Call[Enumerator](a_, objc.Sel("reverseObjectEnumerator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417804-sortedarraywithoptions?language=objc +func (a_ Array) SortedArrayWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayWithOptions:usingComparator:"), opts, cmptr) return rv } @@ -353,41 +217,34 @@ func (a_ Array) ObjectsAtIndexes(indexes IIndexSet) []objc.Object { return rv } -// Returns the lowest index whose corresponding array value is identical to a given object. [Full Topic] +// Returns a new array that lists this array’s elements in a random order. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1410847-indexofobjectidenticalto?language=objc -func (a_ Array) IndexOfObjectIdenticalTo(anObject objc.IObject) uint { - rv := objc.Call[uint](a_, objc.Sel("indexOfObjectIdenticalTo:"), anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1640855-shuffledarray?language=objc +func (a_ Array) ShuffledArray() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("shuffledArray")) return rv } -// Sends to each object in the array the message identified by a given selector, starting with the first object and continuing through the array to the last object. [Full Topic] +// Executes a given block using each object in the array, starting with the first object and continuing through the array to the last object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460115-makeobjectsperformselector?language=objc -func (a_ Array) MakeObjectsPerformSelector(aSelector objc.Selector) { - objc.Call[objc.Void](a_, objc.Sel("makeObjectsPerformSelector:"), aSelector) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415846-enumerateobjectsusingblock?language=objc +func (a_ Array) EnumerateObjectsUsingBlock(block func(obj objc.Object, idx uint, stop *bool)) { + objc.Call[objc.Void](a_, objc.Sel("enumerateObjectsUsingBlock:"), block) } -// Compares two arrays, with options, to create a difference object that represents the changes between them. [Full Topic] +// Returns a copy of the receiving array sorted as specified by a given array of sort descriptors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/3152167-differencefromarray?language=objc -func (a_ Array) DifferenceFromArrayWithOptions(other []objc.IObject, options OrderedCollectionDifferenceCalculationOptions) OrderedCollectionDifference { - rv := objc.Call[OrderedCollectionDifference](a_, objc.Sel("differenceFromArray:withOptions:"), other, options) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415069-sortedarrayusingdescriptors?language=objc +func (a_ Array) SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayUsingDescriptors:"), sortDescriptors) return rv } -// Raises an exception. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408305-removeobserver?language=objc -func (a_ Array) RemoveObserverFromObjectsAtIndexesForKeyPathContext(observer objc.IObject, indexes IIndexSet, keyPath string, context unsafe.Pointer) { - objc.Call[objc.Void](a_, objc.Sel("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"), observer, indexes, keyPath, context) -} - -// Returns the index of an object in the array that passes a test in a given block for a given set of enumeration options. [Full Topic] +// Returns a new array that is a copy of the receiving array with the objects contained in another array added to the end. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417053-indexofobjectwithoptions?language=objc -func (a_ Array) IndexOfObjectWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint { - rv := objc.Call[uint](a_, objc.Sel("indexOfObjectWithOptions:passingTest:"), opts, predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1412087-arraybyaddingobjectsfromarray?language=objc +func (a_ Array) ArrayByAddingObjectsFromArray(otherArray []objc.IObject) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("arrayByAddingObjectsFromArray:"), otherArray) return rv } @@ -399,27 +256,35 @@ func (a_ Array) IndexesOfObjectsWithOptionsPassingTest(opts EnumerationOptions, return rv } -// Returns the first object contained in the receiving array that’s equal to an object in another given array. [Full Topic] +// Returns the index of the first object in the array that passes a test in a given block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408825-firstobjectcommonwitharray?language=objc -func (a_ Array) FirstObjectCommonWithArray(otherArray []objc.IObject) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("firstObjectCommonWithArray:"), otherArray) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408043-indexofobjectpassingtest?language=objc +func (a_ Array) IndexOfObjectPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) uint { + rv := objc.Call[uint](a_, objc.Sel("indexOfObjectPassingTest:"), predicate) return rv } -// Returns a new array that is a copy of the receiving array with a given object added to the end. [Full Topic] +// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given selector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408534-arraybyaddingobject?language=objc -func (a_ Array) ArrayByAddingObject(anObject objc.IObject) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("arrayByAddingObject:"), anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1410025-sortedarrayusingselector?language=objc +func (a_ Array) SortedArrayUsingSelector(comparator objc.Selector) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayUsingSelector:"), comparator) return rv } -// [Full Topic] +// Returns the lowest index within a specified range whose corresponding array value is equal to a given object . [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879138-writetourl?language=objc -func (a_ Array) WriteToURLError(url IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](a_, objc.Sel("writeToURL:error:"), url, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415805-indexofobjectidenticalto?language=objc +func (a_ Array) IndexOfObjectIdenticalToInRange(anObject objc.IObject, range_ Range) uint { + rv := objc.Call[uint](a_, objc.Sel("indexOfObjectIdenticalTo:inRange:"), anObject, range_) + return rv +} + +// Returns the object located at the specified index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417555-objectatindex?language=objc +func (a_ Array) ObjectAtIndex(index uint) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("objectAtIndex:"), index) return rv } @@ -431,157 +296,157 @@ func (a_ Array) FilteredArrayUsingPredicate(predicate IPredicate) []objc.Object return rv } -// Returns a new array that lists this array’s elements in a random order. [Full Topic] +// Returns the object at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1640855-shuffledarray?language=objc -func (a_ Array) ShuffledArray() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("shuffledArray")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1414084-objectatindexedsubscript?language=objc +func (a_ Array) ObjectAtIndexedSubscript(idx uint) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("objectAtIndexedSubscript:"), idx) return rv } -// [Full Topic] +// Creates a new array by applying a difference object to an existing array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879134-initwithcontentsofurl?language=objc -func (a_ Array) InitWithContentsOfURLError(url IURL, error unsafe.Pointer) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("initWithContentsOfURL:error:"), url, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/3152165-arraybyapplyingdifference?language=objc +func (a_ Array) ArrayByApplyingDifference(difference IOrderedCollectionDifference) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("arrayByApplyingDifference:"), difference) return rv } -// Raises an exception. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1418441-removeobserver?language=objc -func (a_ Array) RemoveObserverForKeyPathContext(observer objc.IObject, keyPath string, context unsafe.Pointer) { - objc.Call[objc.Void](a_, objc.Sel("removeObserver:forKeyPath:context:"), observer, keyPath, context) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879153-arraywithcontentsofurl?language=objc +func (ac _ArrayClass) ArrayWithContentsOfURLError(url IURL, error unsafe.Pointer) []objc.Object { + rv := objc.Call[[]objc.Object](ac, objc.Sel("arrayWithContentsOfURL:error:"), url, error) + return rv } -// Returns the lowest index whose corresponding array value is equal to a given object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417076-indexofobject?language=objc -func (a_ Array) IndexOfObject(anObject objc.IObject) uint { - rv := objc.Call[uint](a_, objc.Sel("indexOfObject:"), anObject) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879153-arraywithcontentsofurl?language=objc +func Array_ArrayWithContentsOfURLError(url IURL, error unsafe.Pointer) []objc.Object { + return ArrayClass.ArrayWithContentsOfURLError(url, error) } -// Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator. [Full Topic] +// Executes a given block using each object in the array with the specified options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1414839-sortedarrayusingfunction?language=objc -func (a_ Array) SortedArrayUsingFunctionContextHint(comparator func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer, hint []byte) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayUsingFunction:context:hint:"), comparator, context, hint) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1413010-enumerateobjectswithoptions?language=objc +func (a_ Array) EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) { + objc.Call[objc.Void](a_, objc.Sel("enumerateObjectsWithOptions:usingBlock:"), opts, block) } -// Executes a given block using the objects in the array at the specified indexes. [Full Topic] +// Copies references to objects contained in the array that fall within the specified range to aBuffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417577-enumerateobjectsatindexes?language=objc -func (a_ Array) EnumerateObjectsAtIndexesOptionsUsingBlock(s IIndexSet, opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) { - objc.Call[objc.Void](a_, objc.Sel("enumerateObjectsAtIndexes:options:usingBlock:"), s, opts, block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1414725-getobjects?language=objc +func (a_ Array) GetObjectsRange(objects unsafe.Pointer, range_ Range) { + objc.Call[objc.Void](a_, objc.Sel("getObjects:range:"), objects, range_) } -// Invokes [foundation/nsarray/setvalue] on each of the array's items using the specified value and key. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408301-setvalue?language=objc -func (a_ Array) SetValueForKey(value objc.IObject, key string) { - objc.Call[objc.Void](a_, objc.Sel("setValue:forKey:"), value, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879134-initwithcontentsofurl?language=objc +func (a_ Array) InitWithContentsOfURLError(url IURL, error unsafe.Pointer) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("initWithContentsOfURL:error:"), url, error) + return rv } -// Executes a given block using each object in the array with the specified options. [Full Topic] +// Returns a Boolean value that indicates whether a given object is present in the array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1413010-enumerateobjectswithoptions?language=objc -func (a_ Array) EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) { - objc.Call[objc.Void](a_, objc.Sel("enumerateObjectsWithOptions:usingBlock:"), opts, block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1407477-containsobject?language=objc +func (a_ Array) ContainsObject(anObject objc.IObject) bool { + rv := objc.Call[bool](a_, objc.Sel("containsObject:"), anObject) + return rv } -// Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator. [Full Topic] +// Sends to each object in the array the message identified by a given selector, starting with the first object and continuing through the array to the last object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408213-sortedarrayusingfunction?language=objc -func (a_ Array) SortedArrayUsingFunctionContext(comparator func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayUsingFunction:context:"), comparator, context) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460115-makeobjectsperformselector?language=objc +func (a_ Array) MakeObjectsPerformSelector(aSelector objc.Selector) { + objc.Call[objc.Void](a_, objc.Sel("makeObjectsPerformSelector:"), aSelector) } -// Returns the index, within a specified range, of an object compared with elements in the array using a given NSComparator block. [Full Topic] +// Returns an enumerator object that lets you access each object in the array, in reverse order. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1412722-indexofobject?language=objc -func (a_ Array) IndexOfObjectInSortedRangeOptionsUsingComparator(obj objc.IObject, r Range, opts BinarySearchingOptions, cmp Comparator) uint { - rv := objc.Call[uint](a_, objc.Sel("indexOfObject:inSortedRange:options:usingComparator:"), obj, r, opts, cmp) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415734-reverseobjectenumerator?language=objc +func (a_ Array) ReverseObjectEnumerator() Enumerator { + rv := objc.Call[Enumerator](a_, objc.Sel("reverseObjectEnumerator")) return rv } -// Executes a given block using each object in the array, starting with the first object and continuing through the array to the last object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415846-enumerateobjectsusingblock?language=objc -func (a_ Array) EnumerateObjectsUsingBlock(block func(obj objc.Object, idx uint, stop *bool)) { - objc.Call[objc.Void](a_, objc.Sel("enumerateObjectsUsingBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879138-writetourl?language=objc +func (a_ Array) WriteToURLError(url IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](a_, objc.Sel("writeToURL:error:"), url, error) + return rv } -// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given selector. [Full Topic] +// Returns the indexes, from a given set of indexes, of objects in the array that pass a test in a given block for a given set of enumeration options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1410025-sortedarrayusingselector?language=objc -func (a_ Array) SortedArrayUsingSelector(comparator objc.Selector) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayUsingSelector:"), comparator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1413512-indexesofobjectsatindexes?language=objc +func (a_ Array) IndexesOfObjectsAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet { + rv := objc.Call[IndexSet](a_, objc.Sel("indexesOfObjectsAtIndexes:options:passingTest:"), s, opts, predicate) return rv } -// Returns a copy of the receiving array sorted as specified by a given array of sort descriptors. [Full Topic] +// Raises an exception. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415069-sortedarrayusingdescriptors?language=objc -func (a_ Array) SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayUsingDescriptors:"), sortDescriptors) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1414976-removeobserver?language=objc +func (a_ Array) RemoveObserverForKeyPath(observer objc.IObject, keyPath string) { + objc.Call[objc.Void](a_, objc.Sel("removeObserver:forKeyPath:"), observer, keyPath) } -// [Full Topic] +// Returns a string that represents the contents of the array, formatted as a property list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879153-arraywithcontentsofurl?language=objc -func (ac _ArrayClass) ArrayWithContentsOfURLError(url IURL, error unsafe.Pointer) []objc.Object { - rv := objc.Call[[]objc.Object](ac, objc.Sel("arrayWithContentsOfURL:error:"), url, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1412374-descriptionwithlocale?language=objc +func (a_ Array) DescriptionWithLocale(locale objc.IObject) string { + rv := objc.Call[string](a_, objc.Sel("descriptionWithLocale:"), locale) return rv } -// [Full Topic] +// Returns a new array containing the receiving array’s elements that fall within the limits specified by a given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879153-arraywithcontentsofurl?language=objc -func Array_ArrayWithContentsOfURLError(url IURL, error unsafe.Pointer) []objc.Object { - return ArrayClass.ArrayWithContentsOfURLError(url, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415157-subarraywithrange?language=objc +func (a_ Array) SubarrayWithRange(range_ Range) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("subarrayWithRange:"), range_) + return rv } -// Returns an array containing all the pathname elements in the receiving array that have filename extensions from a given array. [Full Topic] +// Compares two arrays to create a difference object that represents the changes between them. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1418275-pathsmatchingextensions?language=objc -func (a_ Array) PathsMatchingExtensions(filterTypes []string) []string { - rv := objc.Call[[]string](a_, objc.Sel("pathsMatchingExtensions:"), filterTypes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/3152166-differencefromarray?language=objc +func (a_ Array) DifferenceFromArray(other []objc.IObject) OrderedCollectionDifference { + rv := objc.Call[OrderedCollectionDifference](a_, objc.Sel("differenceFromArray:"), other) return rv } -// Returns the lowest index within a specified range whose corresponding array value is equal to a given object . [Full Topic] +// Invokes setValue:forKey: on each of the array's items using the specified value and key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415805-indexofobjectidenticalto?language=objc -func (a_ Array) IndexOfObjectIdenticalToInRange(anObject objc.IObject, range_ Range) uint { - rv := objc.Call[uint](a_, objc.Sel("indexOfObjectIdenticalTo:inRange:"), anObject, range_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408301-setvalue?language=objc +func (a_ Array) SetValueForKey(value objc.IObject, key string) { + objc.Call[objc.Void](a_, objc.Sel("setValue:forKey:"), value, key) } -// Returns the index of the first object in the array that passes a test in a given block. [Full Topic] +// Returns the indexes of objects in the array that pass a test in a given block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408043-indexofobjectpassingtest?language=objc -func (a_ Array) IndexOfObjectPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) uint { - rv := objc.Call[uint](a_, objc.Sel("indexOfObjectPassingTest:"), predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417603-indexesofobjectspassingtest?language=objc +func (a_ Array) IndexesOfObjectsPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet { + rv := objc.Call[IndexSet](a_, objc.Sel("indexesOfObjectsPassingTest:"), predicate) return rv } -// Returns a string that represents the contents of the array, formatted as a property list. [Full Topic] +// Returns a new array that is a copy of the receiving array with a given object added to the end. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1416257-descriptionwithlocale?language=objc -func (a_ Array) DescriptionWithLocaleIndent(locale objc.IObject, level uint) string { - rv := objc.Call[string](a_, objc.Sel("descriptionWithLocale:indent:"), locale, level) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408534-arraybyaddingobject?language=objc +func (a_ Array) ArrayByAddingObject(anObject objc.IObject) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("arrayByAddingObject:"), anObject) return rv } -// Returns the object at the specified index. [Full Topic] +// Returns the lowest index whose corresponding array value is equal to a given object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1414084-objectatindexedsubscript?language=objc -func (a_ Array) ObjectAtIndexedSubscript(idx uint) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("objectAtIndexedSubscript:"), idx) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417076-indexofobject?language=objc +func (a_ Array) IndexOfObject(anObject objc.IObject) uint { + rv := objc.Call[uint](a_, objc.Sel("indexOfObject:"), anObject) return rv } @@ -592,90 +457,98 @@ func (a_ Array) AddObserverForKeyPathOptionsContext(observer objc.IObject, keyPa objc.Call[objc.Void](a_, objc.Sel("addObserver:forKeyPath:options:context:"), observer, keyPath, options, context) } -// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block. [Full Topic] +// Returns the index of an object in the array that passes a test in a given block for a given set of enumeration options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1411195-sortedarrayusingcomparator?language=objc -func (a_ Array) SortedArrayUsingComparator(cmptr Comparator) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayUsingComparator:"), cmptr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417053-indexofobjectwithoptions?language=objc +func (a_ Array) IndexOfObjectWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint { + rv := objc.Call[uint](a_, objc.Sel("indexOfObjectWithOptions:passingTest:"), opts, predicate) return rv } -// Compares the receiving array to another array. [Full Topic] +// Executes a given block using the objects in the array at the specified indexes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1411770-isequaltoarray?language=objc -func (a_ Array) IsEqualToArray(otherArray []objc.IObject) bool { - rv := objc.Call[bool](a_, objc.Sel("isEqualToArray:"), otherArray) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417577-enumerateobjectsatindexes?language=objc +func (a_ Array) EnumerateObjectsAtIndexesOptionsUsingBlock(s IIndexSet, opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) { + objc.Call[objc.Void](a_, objc.Sel("enumerateObjectsAtIndexes:options:usingBlock:"), s, opts, block) +} + +// Returns a new array that lists this array’s elements in a random order, using the specified random source. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1640687-shuffledarraywithrandomsource?language=objc +func (a_ Array) ShuffledArrayWithRandomSource(randomSource objc.IObject) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("shuffledArrayWithRandomSource:"), randomSource) return rv } -// Returns the lowest index within a specified range whose corresponding array value is equal to a given object . [Full Topic] +// Returns an array containing all the pathname elements in the receiving array that have filename extensions from a given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415248-indexofobject?language=objc -func (a_ Array) IndexOfObjectInRange(anObject objc.IObject, range_ Range) uint { - rv := objc.Call[uint](a_, objc.Sel("indexOfObject:inRange:"), anObject, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1418275-pathsmatchingextensions?language=objc +func (a_ Array) PathsMatchingExtensions(filterTypes []string) []string { + rv := objc.Call[[]string](a_, objc.Sel("pathsMatchingExtensions:"), filterTypes) return rv } -// Returns a string that represents the contents of the array, formatted as a property list. [Full Topic] +// Constructs and returns an NSString object that is the result of interposing a given separator between the elements of the array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1412374-descriptionwithlocale?language=objc -func (a_ Array) DescriptionWithLocale(locale objc.IObject) string { - rv := objc.Call[string](a_, objc.Sel("descriptionWithLocale:"), locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1412075-componentsjoinedbystring?language=objc +func (a_ Array) ComponentsJoinedByString(separator string) string { + rv := objc.Call[string](a_, objc.Sel("componentsJoinedByString:"), separator) return rv } -// Returns the object located at the specified index. [Full Topic] +// Returns an array containing the results of invoking valueForKey: using key on each of the array's objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417555-objectatindex?language=objc -func (a_ Array) ObjectAtIndex(index uint) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("objectAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1412219-valueforkey?language=objc +func (a_ Array) ValueForKey(key string) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("valueForKey:"), key) return rv } -// Compares two arrays, using the provided block and with options, to create a difference object that represents the changes between them. [Full Topic] +// Returns the index, from a given set of indexes, of the first object in the array that passes a test in a given block for a given set of enumeration options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/3152168-differencefromarray?language=objc -func (a_ Array) DifferenceFromArrayWithOptionsUsingEquivalenceTest(other []objc.IObject, options OrderedCollectionDifferenceCalculationOptions, block func(obj1 objc.Object, obj2 objc.Object) bool) OrderedCollectionDifference { - rv := objc.Call[OrderedCollectionDifference](a_, objc.Sel("differenceFromArray:withOptions:usingEquivalenceTest:"), other, options, block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1407652-indexofobjectatindexes?language=objc +func (a_ Array) IndexOfObjectAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint { + rv := objc.Call[uint](a_, objc.Sel("indexOfObjectAtIndexes:options:passingTest:"), s, opts, predicate) return rv } -// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block. [Full Topic] +// Returns the first object contained in the receiving array that’s equal to an object in another given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417804-sortedarraywithoptions?language=objc -func (a_ Array) SortedArrayWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayWithOptions:usingComparator:"), opts, cmptr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408825-firstobjectcommonwitharray?language=objc +func (a_ Array) FirstObjectCommonWithArray(otherArray []objc.IObject) objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("firstObjectCommonWithArray:"), otherArray) return rv } -// Returns a new array that lists this array’s elements in a random order, using the specified random source. [Full Topic] +// Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1640687-shuffledarraywithrandomsource?language=objc -func (a_ Array) ShuffledArrayWithRandomSource(randomSource objc.IObject) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("shuffledArrayWithRandomSource:"), randomSource) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1411195-sortedarrayusingcomparator?language=objc +func (a_ Array) SortedArrayUsingComparator(cmptr Comparator) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayUsingComparator:"), cmptr) return rv } -// Returns the indexes of objects in the array that pass a test in a given block. [Full Topic] +// Analyzes the array and returns a “hint” that speeds the sorting of the array when the hint is supplied to sortedArrayUsingFunction:context:hint:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1417603-indexesofobjectspassingtest?language=objc -func (a_ Array) IndexesOfObjectsPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet { - rv := objc.Call[IndexSet](a_, objc.Sel("indexesOfObjectsPassingTest:"), predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1413063-sortedarrayhint?language=objc +func (a_ Array) SortedArrayHint() []byte { + rv := objc.Call[[]byte](a_, objc.Sel("sortedArrayHint")) return rv } -// Registers an observer to receive key value observer notifications for the specified key-path relative to the objects at the indexes. [Full Topic] +// The last object in the array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1411404-addobserver?language=objc -func (a_ Array) AddObserverToObjectsAtIndexesForKeyPathOptionsContext(observer objc.IObject, indexes IIndexSet, keyPath string, options KeyValueObservingOptions, context unsafe.Pointer) { - objc.Call[objc.Void](a_, objc.Sel("addObserver:toObjectsAtIndexes:forKeyPath:options:context:"), observer, indexes, keyPath, options, context) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408316-lastobject?language=objc +func (a_ Array) LastObject() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("lastObject")) + return rv } -// Analyzes the array and returns a “hint” that speeds the sorting of the array when the hint is supplied to [foundation/nsarray/sortedarrayusingfunction]. [Full Topic] +// A string that represents the contents of the array, formatted as a property list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1413063-sortedarrayhint?language=objc -func (a_ Array) SortedArrayHint() []byte { - rv := objc.Call[[]byte](a_, objc.Sel("sortedArrayHint")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1413042-description?language=objc +func (a_ Array) Description() string { + rv := objc.Call[string](a_, objc.Sel("description")) return rv } @@ -694,19 +567,3 @@ func (a_ Array) FirstObject() objc.Object { rv := objc.Call[objc.Object](a_, objc.Sel("firstObject")) return rv } - -// A string that represents the contents of the array, formatted as a property list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1413042-description?language=objc -func (a_ Array) Description() string { - rv := objc.Call[string](a_, objc.Sel("description")) - return rv -} - -// The last object in the array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408316-lastobject?language=objc -func (a_ Array) LastObject() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("lastObject")) - return rv -} diff --git a/macos/foundation/attributed_string.gen.go b/macos/foundation/attributed_string.gen.go index 16c065ce..a4f9a697 100644 --- a/macos/foundation/attributed_string.gen.go +++ b/macos/foundation/attributed_string.gen.go @@ -5,6 +5,7 @@ package foundation import ( "unsafe" + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/objc" ) @@ -18,37 +19,33 @@ type _AttributedStringClass struct { // An interface definition for the [AttributedString] class. type IAttributedString interface { objc.IObject - Size() Size - AttributedStringByInflectingString() AttributedString + LineBreakBeforeIndexWithinRange(location uint, aRange Range) uint + FontAttributesInRange(range_ Range) map[AttributedStringKey]objc.Object ContainsAttachmentsInRange(range_ Range) bool - RulerAttributesInRange(range_ Range) map[AttributedStringKey]objc.Object + DrawAtPoint(point coregraphics.Point) RTFDFileWrapperFromRangeDocumentAttributes(range_ Range, dict Dictionary) FileWrapper - DataFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error unsafe.Pointer) []byte - AttributesAtIndexEffectiveRange(location uint, range_ RangePointer) map[AttributedStringKey]objc.Object - RangeOfTextTableAtIndex(table objc.IObject, location uint) Range - FontAttributesInRange(range_ Range) map[AttributedStringKey]objc.Object - AttributesAtIndexLongestEffectiveRangeInRange(location uint, range_ RangePointer, rangeLimit Range) map[AttributedStringKey]objc.Object - LineBreakBeforeIndexWithinRange(location uint, aRange Range) uint DocFormatFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte + DrawInRect(rect coregraphics.Rect) LineBreakByHyphenatingBeforeIndexWithinRange(location uint, aRange Range) uint EnumerateAttributesInRangeOptionsUsingBlock(enumerationRange Range, opts AttributedStringEnumerationOptions, block func(attrs map[AttributedStringKey]objc.Object, range_ Range, stop *bool)) AttributeAtIndexEffectiveRange(attrName AttributedStringKey, location uint, range_ RangePointer) objc.Object + AttributedStringByInflectingString() AttributedString + ItemNumberInTextListAtIndex(list objc.IObject, location uint) int + FileWrapperFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error unsafe.Pointer) FileWrapper DoubleClickAtIndex(location uint) Range + RTFFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte RangeOfTextListAtIndex(list objc.IObject, location uint) Range - FileWrapperFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error unsafe.Pointer) FileWrapper - BoundingRectWithSizeOptionsContext(size Size, options objc.IObject, context objc.IObject) Rect - DrawInRect(rect Rect) + RTFDFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte + AttributedSubstringFromRange(range_ Range) AttributedString + RangeOfTextTableAtIndex(table objc.IObject, location uint) Range EnumerateAttributeInRangeOptionsUsingBlock(attrName AttributedStringKey, enumerationRange Range, opts AttributedStringEnumerationOptions, block func(value objc.Object, range_ Range, stop *bool)) - DrawAtPoint(point Point) IsEqualToAttributedString(other IAttributedString) bool NextWordFromIndexForward(location uint, isForward bool) uint RangeOfTextBlockAtIndex(block objc.IObject, location uint) Range - RTFFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte - DrawWithRectOptionsContext(rect Rect, options objc.IObject, context objc.IObject) - RTFDFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte - ItemNumberInTextListAtIndex(list objc.IObject, location uint) int - AttributedSubstringFromRange(range_ Range) AttributedString - AttributeAtIndexLongestEffectiveRangeInRange(attrName AttributedStringKey, location uint, range_ RangePointer, rangeLimit Range) objc.Object + RulerAttributesInRange(range_ Range) map[AttributedStringKey]objc.Object + Size() coregraphics.Size + AttributesAtIndexEffectiveRange(location uint, range_ RangePointer) map[AttributedStringKey]objc.Object + DataFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error unsafe.Pointer) []byte String() string Length() uint } @@ -66,44 +63,16 @@ func AttributedStringFrom(ptr unsafe.Pointer) AttributedString { } } -func (a_ AttributedString) InitWithHTMLBaseURLDocumentAttributes(data []byte, base IURL, dict unsafe.Pointer) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithHTML:baseURL:documentAttributes:"), data, base, dict) - return rv -} - -// Creates an attributed string from the HTML in the specified data object and base URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524624-initwithhtml?language=objc -func NewAttributedStringWithHTMLBaseURLDocumentAttributes(data []byte, base IURL, dict unsafe.Pointer) AttributedString { - instance := AttributedStringClass.Alloc().InitWithHTMLBaseURLDocumentAttributes(data, base, dict) - instance.Autorelease() - return instance -} - -func (a_ AttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), markdownFile, options, baseURL, error) - return rv -} - -// Creates an attributed string from the contents of a specified URL that contains Markdown-formatted data using the provided options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746872-initwithcontentsofmarkdownfileat?language=objc -func NewAttributedStringWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) AttributedString { - instance := AttributedStringClass.Alloc().InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile, options, baseURL, error) - instance.Autorelease() - return instance -} - -func (a_ AttributedString) InitWithStringAttributes(str string, attrs map[AttributedStringKey]objc.IObject) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithString:attributes:"), str, attrs) +func (a_ AttributedString) InitWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict unsafe.Pointer) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) return rv } -// Creates an attributed string with the specified string and attributes. [Full Topic] +// Creates an attributed string from the HTML in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1408136-initwithstring?language=objc -func NewAttributedStringWithStringAttributes(str string, attrs map[AttributedStringKey]objc.IObject) AttributedString { - instance := AttributedStringClass.Alloc().InitWithStringAttributes(str, attrs) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535412-initwithhtml?language=objc +func NewAttributedStringWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict unsafe.Pointer) AttributedString { + instance := AttributedStringClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) instance.Autorelease() return instance } @@ -134,30 +103,16 @@ func NewAttributedStringWithAttributedString(attrStr IAttributedString) Attribut return instance } -func (a_ AttributedString) InitWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, error) - return rv -} - -// Creates an attributed string from the data in the specified data object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata?language=objc -func NewAttributedStringWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) AttributedString { - instance := AttributedStringClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) - instance.Autorelease() - return instance -} - -func (a_ AttributedString) InitWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) +func (a_ AttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), markdownFile, options, baseURL, error) return rv } -// Creates an attributed string by decoding the stream of RTF commands and data in the specified data object. [Full Topic] +// Creates an attributed string from the contents of a specified URL that contains Markdown-formatted data using the provided options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1532912-initwithrtf?language=objc -func NewAttributedStringWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) AttributedString { - instance := AttributedStringClass.Alloc().InitWithRTFDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746872-initwithcontentsofmarkdownfileat?language=objc +func NewAttributedStringWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) AttributedString { + instance := AttributedStringClass.Alloc().InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile, options, baseURL, error) instance.Autorelease() return instance } @@ -176,70 +131,30 @@ func NewAttributedStringWithFormatOptionsLocale(format IAttributedString, option return instance } -func (a_ AttributedString) InitWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict unsafe.Pointer) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), wrapper, dict) - return rv -} - -// Creates an attributed string from the specified file wrapper that contains an RTFD document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1533594-initwithrtfdfilewrapper?language=objc -func NewAttributedStringWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict unsafe.Pointer) AttributedString { - instance := AttributedStringClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) - instance.Autorelease() - return instance -} - -func (a_ AttributedString) InitWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, options, baseURL, error) - return rv -} - -// Creates an attributed string from Markdown-formatted data using the provided options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc -func NewAttributedStringWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) AttributedString { - instance := AttributedStringClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) - instance.Autorelease() - return instance -} - -func (a_ AttributedString) InitWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict unsafe.Pointer) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) +func (a_ AttributedString) InitWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, error) return rv } -// Creates an attributed string from the HTML in the specified data object. [Full Topic] +// Creates an attributed string from the data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535412-initwithhtml?language=objc -func NewAttributedStringWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict unsafe.Pointer) AttributedString { - instance := AttributedStringClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata?language=objc +func NewAttributedStringWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) AttributedString { + instance := AttributedStringClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) instance.Autorelease() return instance } -func (ac _AttributedStringClass) LocalizedAttributedStringWithFormatOptions(format IAttributedString, options AttributedStringFormattingOptions, args ...any) AttributedString { - rv := objc.Call[AttributedString](ac, objc.Sel("localizedAttributedStringWithFormat:options:"), append([]any{format, options}, args...)...) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746878-localizedattributedstringwithfor?language=objc -func AttributedString_LocalizedAttributedStringWithFormatOptions(format IAttributedString, options AttributedStringFormattingOptions, args ...any) AttributedString { - return AttributedStringClass.LocalizedAttributedStringWithFormatOptions(format, options, args...) -} - -func (a_ AttributedString) InitWithDocFormatDocumentAttributes(data []byte, dict unsafe.Pointer) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithDocFormat:documentAttributes:"), data, dict) +func (a_ AttributedString) InitWithString(str string) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithString:"), str) return rv } -// Creates an attributed string from Microsoft Word format data in the specified data object. [Full Topic] +// Creates an attributed string with the characters of the specified string and no attribute information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1534329-initwithdocformat?language=objc -func NewAttributedStringWithDocFormatDocumentAttributes(data []byte, dict unsafe.Pointer) AttributedString { - instance := AttributedStringClass.Alloc().InitWithDocFormatDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1407481-initwithstring?language=objc +func NewAttributedStringWithString(str string) AttributedString { + instance := AttributedStringClass.Alloc().InitWithString(str) instance.Autorelease() return instance } @@ -258,30 +173,30 @@ func NewAttributedStringWithMarkdownStringOptionsBaseURLError(markdownString str return instance } -func (a_ AttributedString) InitWithURLOptionsDocumentAttributesError(url IURL, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithURL:options:documentAttributes:error:"), url, options, dict, error) +func (a_ AttributedString) InitWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, options, baseURL, error) return rv } -// Creates an attributed string from the contents of the specified URL. [Full Topic] +// Creates an attributed string from Markdown-formatted data using the provided options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530490-initwithurl?language=objc -func NewAttributedStringWithURLOptionsDocumentAttributesError(url IURL, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) AttributedString { - instance := AttributedStringClass.Alloc().InitWithURLOptionsDocumentAttributesError(url, options, dict, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc +func NewAttributedStringWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) AttributedString { + instance := AttributedStringClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) instance.Autorelease() return instance } -func (a_ AttributedString) InitWithHTMLDocumentAttributes(data []byte, dict unsafe.Pointer) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithHTML:documentAttributes:"), data, dict) +func (a_ AttributedString) InitWithDocFormatDocumentAttributes(data []byte, dict unsafe.Pointer) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithDocFormat:documentAttributes:"), data, dict) return rv } -// Creates an attributed string from the HTML in the specified data object. [Full Topic] +// Creates an attributed string from Microsoft Word format data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1525953-initwithhtml?language=objc -func NewAttributedStringWithHTMLDocumentAttributes(data []byte, dict unsafe.Pointer) AttributedString { - instance := AttributedStringClass.Alloc().InitWithHTMLDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1534329-initwithdocformat?language=objc +func NewAttributedStringWithDocFormatDocumentAttributes(data []byte, dict unsafe.Pointer) AttributedString { + instance := AttributedStringClass.Alloc().InitWithDocFormatDocumentAttributes(data, dict) instance.Autorelease() return instance } @@ -300,16 +215,30 @@ func NewAttributedStringWithRTFDDocumentAttributes(data []byte, dict unsafe.Poin return instance } -func (a_ AttributedString) InitWithString(str string) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithString:"), str) +func (a_ AttributedString) InitWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) return rv } -// Creates an attributed string with the characters of the specified string and no attribute information. [Full Topic] +// Creates an attributed string by decoding the stream of RTF commands and data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1407481-initwithstring?language=objc -func NewAttributedStringWithString(str string) AttributedString { - instance := AttributedStringClass.Alloc().InitWithString(str) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1532912-initwithrtf?language=objc +func NewAttributedStringWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) AttributedString { + instance := AttributedStringClass.Alloc().InitWithRTFDocumentAttributes(data, dict) + instance.Autorelease() + return instance +} + +func (a_ AttributedString) InitWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict unsafe.Pointer) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), wrapper, dict) + return rv +} + +// Creates an attributed string from the specified file wrapper that contains an RTFD document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1533594-initwithrtfdfilewrapper?language=objc +func NewAttributedStringWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict unsafe.Pointer) AttributedString { + instance := AttributedStringClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) instance.Autorelease() return instance } @@ -334,22 +263,37 @@ func (a_ AttributedString) Init() AttributedString { return rv } -// Returns the size necessary to draw the string. [Full Topic] +// Returns the appropriate line break when the character at the index doesn’t fit on the same line as the character at the beginning of the range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1528362-size?language=objc -func (a_ AttributedString) Size() Size { - rv := objc.Call[Size](a_, objc.Sel("size")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1526887-linebreakbeforeindex?language=objc +func (a_ AttributedString) LineBreakBeforeIndexWithinRange(location uint, aRange Range) uint { + rv := objc.Call[uint](a_, objc.Sel("lineBreakBeforeIndex:withinRange:"), location, aRange) return rv } -// [Full Topic] +// Returns the font attributes in effect for the character at the specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746871-attributedstringbyinflectingstri?language=objc -func (a_ AttributedString) AttributedStringByInflectingString() AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("attributedStringByInflectingString")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1528371-fontattributesinrange?language=objc +func (a_ AttributedString) FontAttributesInRange(range_ Range) map[AttributedStringKey]objc.Object { + rv := objc.Call[map[AttributedStringKey]objc.Object](a_, objc.Sel("fontAttributesInRange:"), range_) return rv } +// Creates an attributed string with an attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1508376-attributedstringwithattachment?language=objc +func (ac _AttributedStringClass) AttributedStringWithAttachment(attachment objc.IObject) AttributedString { + rv := objc.Call[AttributedString](ac, objc.Sel("attributedStringWithAttachment:"), attachment) + return rv +} + +// Creates an attributed string with an attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1508376-attributedstringwithattachment?language=objc +func AttributedString_AttributedStringWithAttachment(attachment objc.IObject) AttributedString { + return AttributedStringClass.AttributedStringWithAttachment(attachment) +} + // Returns a Boolean value that indicates if the attributed string contains an attachment in the specified range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1525086-containsattachmentsinrange?language=objc @@ -358,12 +302,11 @@ func (a_ AttributedString) ContainsAttachmentsInRange(range_ Range) bool { return rv } -// Returns the ruler (paragraph) attributes in effect for the characters within the specified range. [Full Topic] +// Draws the attributed string starting at the specified point in the current graphics context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524469-rulerattributesinrange?language=objc -func (a_ AttributedString) RulerAttributesInRange(range_ Range) map[AttributedStringKey]objc.Object { - rv := objc.Call[map[AttributedStringKey]objc.Object](a_, objc.Sel("rulerAttributesInRange:"), range_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1529478-drawatpoint?language=objc +func (a_ AttributedString) DrawAtPoint(point coregraphics.Point) { + objc.Call[objc.Void](a_, objc.Sel("drawAtPoint:"), point) } // Returns a file wrapper object that contains an RTFD document corresponding to the characters and attributes within the specified range. [Full Topic] @@ -374,54 +317,6 @@ func (a_ AttributedString) RTFDFileWrapperFromRangeDocumentAttributes(range_ Ran return rv } -// Returns a data object that contains a text stream corresponding to the characters and attributes within the specified range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1534090-datafromrange?language=objc -func (a_ AttributedString) DataFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error unsafe.Pointer) []byte { - rv := objc.Call[[]byte](a_, objc.Sel("dataFromRange:documentAttributes:error:"), range_, dict, error) - return rv -} - -// Returns the attributes for the character at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1415682-attributesatindex?language=objc -func (a_ AttributedString) AttributesAtIndexEffectiveRange(location uint, range_ RangePointer) map[AttributedStringKey]objc.Object { - rv := objc.Call[map[AttributedStringKey]objc.Object](a_, objc.Sel("attributesAtIndex:effectiveRange:"), location, range_) - return rv -} - -// Returns the range of the specified text table that contains the specified location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1534365-rangeoftexttable?language=objc -func (a_ AttributedString) RangeOfTextTableAtIndex(table objc.IObject, location uint) Range { - rv := objc.Call[Range](a_, objc.Sel("rangeOfTextTable:atIndex:"), table, location) - return rv -} - -// Returns the font attributes in effect for the character at the specified location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1528371-fontattributesinrange?language=objc -func (a_ AttributedString) FontAttributesInRange(range_ Range) map[AttributedStringKey]objc.Object { - rv := objc.Call[map[AttributedStringKey]objc.Object](a_, objc.Sel("fontAttributesInRange:"), range_) - return rv -} - -// Returns the attributes for the character at the specified index and, by reference, the range where the attributes apply. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1410494-attributesatindex?language=objc -func (a_ AttributedString) AttributesAtIndexLongestEffectiveRangeInRange(location uint, range_ RangePointer, rangeLimit Range) map[AttributedStringKey]objc.Object { - rv := objc.Call[map[AttributedStringKey]objc.Object](a_, objc.Sel("attributesAtIndex:longestEffectiveRange:inRange:"), location, range_, rangeLimit) - return rv -} - -// Returns the appropriate line break when the character at the index doesn’t fit on the same line as the character at the beginning of the range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1526887-linebreakbeforeindex?language=objc -func (a_ AttributedString) LineBreakBeforeIndexWithinRange(location uint, aRange Range) uint { - rv := objc.Call[uint](a_, objc.Sel("lineBreakBeforeIndex:withinRange:"), location, aRange) - return rv -} - // Returns a data object that contains a Microsoft Word–format stream corresponding to the characters and attributes within the specified range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1528592-docformatfromrange?language=objc @@ -430,6 +325,13 @@ func (a_ AttributedString) DocFormatFromRangeDocumentAttributes(range_ Range, di return rv } +// Draws the attributed string inside the specified bounding rectangle in the current graphics context. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1531631-drawinrect?language=objc +func (a_ AttributedString) DrawInRect(rect coregraphics.Rect) { + objc.Call[objc.Void](a_, objc.Sel("drawInRect:"), rect) +} + // Returns the index of the closest character before the specified index, and within the specified range, that can fit on a new line by hyphenating. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1534114-linebreakbyhyphenatingbeforeinde?language=objc @@ -453,6 +355,30 @@ func (a_ AttributedString) AttributeAtIndexEffectiveRange(attrName AttributedStr return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746871-attributedstringbyinflectingstri?language=objc +func (a_ AttributedString) AttributedStringByInflectingString() AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("attributedStringByInflectingString")) + return rv +} + +// Returns the index of the item at the specified location within the list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1527303-itemnumberintextlist?language=objc +func (a_ AttributedString) ItemNumberInTextListAtIndex(list objc.IObject, location uint) int { + rv := objc.Call[int](a_, objc.Sel("itemNumberInTextList:atIndex:"), list, location) + return rv +} + +// Returns a file wrapper object that contains a text stream corresponding to the characters and attributes within the specified range. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530461-filewrapperfromrange?language=objc +func (a_ AttributedString) FileWrapperFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error unsafe.Pointer) FileWrapper { + rv := objc.Call[FileWrapper](a_, objc.Sel("fileWrapperFromRange:documentAttributes:error:"), range_, dict, error) + return rv +} + // Returns the range of characters that form a word (or other linguistic unit) surrounding the specified index, taking language characteristics into account. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1534748-doubleclickatindex?language=objc @@ -461,6 +387,14 @@ func (a_ AttributedString) DoubleClickAtIndex(location uint) Range { return rv } +// Returns a data object that contains an RTF stream corresponding to the characters and attributes within the specified range, omitting all attachment attributes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535158-rtffromrange?language=objc +func (a_ AttributedString) RTFFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte { + rv := objc.Call[[]byte](a_, objc.Sel("RTFFromRange:documentAttributes:"), range_, dict) + return rv +} + // Returns the range of the specified text list that contains the specified location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1525314-rangeoftextlist?language=objc @@ -469,27 +403,28 @@ func (a_ AttributedString) RangeOfTextListAtIndex(list objc.IObject, location ui return rv } -// Returns a file wrapper object that contains a text stream corresponding to the characters and attributes within the specified range. [Full Topic] +// Returns a data object that contains an RTFD stream corresponding to the characters and attributes within the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530461-filewrapperfromrange?language=objc -func (a_ AttributedString) FileWrapperFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error unsafe.Pointer) FileWrapper { - rv := objc.Call[FileWrapper](a_, objc.Sel("fileWrapperFromRange:documentAttributes:error:"), range_, dict, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530578-rtfdfromrange?language=objc +func (a_ AttributedString) RTFDFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte { + rv := objc.Call[[]byte](a_, objc.Sel("RTFDFromRange:documentAttributes:"), range_, dict) return rv } -// Returns the bounding rectangle necessary to draw the string. [Full Topic] +// Returns an attributed string consisting of the characters and attributes within the specified range in the attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1529154-boundingrectwithsize?language=objc -func (a_ AttributedString) BoundingRectWithSizeOptionsContext(size Size, options objc.IObject, context objc.IObject) Rect { - rv := objc.Call[Rect](a_, objc.Sel("boundingRectWithSize:options:context:"), size, options, context) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1414283-attributedsubstringfromrange?language=objc +func (a_ AttributedString) AttributedSubstringFromRange(range_ Range) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("attributedSubstringFromRange:"), range_) return rv } -// Draws the attributed string inside the specified bounding rectangle in the current graphics context. [Full Topic] +// Returns the range of the specified text table that contains the specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1531631-drawinrect?language=objc -func (a_ AttributedString) DrawInRect(rect Rect) { - objc.Call[objc.Void](a_, objc.Sel("drawInRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1534365-rangeoftexttable?language=objc +func (a_ AttributedString) RangeOfTextTableAtIndex(table objc.IObject, location uint) Range { + rv := objc.Call[Range](a_, objc.Sel("rangeOfTextTable:atIndex:"), table, location) + return rv } // Executes the specified block for each range of a particular attribute in the attributed string. [Full Topic] @@ -499,13 +434,6 @@ func (a_ AttributedString) EnumerateAttributeInRangeOptionsUsingBlock(attrName A objc.Call[objc.Void](a_, objc.Sel("enumerateAttribute:inRange:options:usingBlock:"), attrName, enumerationRange, opts, block) } -// Draws the attributed string starting at the specified point in the current graphics context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1529478-drawatpoint?language=objc -func (a_ AttributedString) DrawAtPoint(point Point) { - objc.Call[objc.Void](a_, objc.Sel("drawAtPoint:"), point) -} - // Returns a Boolean value that indicates whether the attributed string is equal to another attributed string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1414808-isequaltoattributedstring?language=objc @@ -514,21 +442,6 @@ func (a_ AttributedString) IsEqualToAttributedString(other IAttributedString) bo return rv } -// Creates an attributed string with an attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1508376-attributedstringwithattachment?language=objc -func (ac _AttributedStringClass) AttributedStringWithAttachment(attachment objc.IObject) AttributedString { - rv := objc.Call[AttributedString](ac, objc.Sel("attributedStringWithAttachment:"), attachment) - return rv -} - -// Creates an attributed string with an attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1508376-attributedstringwithattachment?language=objc -func AttributedString_AttributedStringWithAttachment(attachment objc.IObject) AttributedString { - return AttributedStringClass.AttributedStringWithAttachment(attachment) -} - // Returns the index of the first character of the word after or before the specified index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535305-nextwordfromindex?language=objc @@ -545,50 +458,35 @@ func (a_ AttributedString) RangeOfTextBlockAtIndex(block objc.IObject, location return rv } -// Returns a data object that contains an RTF stream corresponding to the characters and attributes within the specified range, omitting all attachment attributes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535158-rtffromrange?language=objc -func (a_ AttributedString) RTFFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte { - rv := objc.Call[[]byte](a_, objc.Sel("RTFFromRange:documentAttributes:"), range_, dict) - return rv -} - -// Draws the attributed string in the specified bounding rectangle using the provided options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524971-drawwithrect?language=objc -func (a_ AttributedString) DrawWithRectOptionsContext(rect Rect, options objc.IObject, context objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("drawWithRect:options:context:"), rect, options, context) -} - -// Returns a data object that contains an RTFD stream corresponding to the characters and attributes within the specified range. [Full Topic] +// Returns the ruler (paragraph) attributes in effect for the characters within the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530578-rtfdfromrange?language=objc -func (a_ AttributedString) RTFDFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte { - rv := objc.Call[[]byte](a_, objc.Sel("RTFDFromRange:documentAttributes:"), range_, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524469-rulerattributesinrange?language=objc +func (a_ AttributedString) RulerAttributesInRange(range_ Range) map[AttributedStringKey]objc.Object { + rv := objc.Call[map[AttributedStringKey]objc.Object](a_, objc.Sel("rulerAttributesInRange:"), range_) return rv } -// Returns the index of the item at the specified location within the list. [Full Topic] +// Returns the size necessary to draw the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1527303-itemnumberintextlist?language=objc -func (a_ AttributedString) ItemNumberInTextListAtIndex(list objc.IObject, location uint) int { - rv := objc.Call[int](a_, objc.Sel("itemNumberInTextList:atIndex:"), list, location) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1528362-size?language=objc +func (a_ AttributedString) Size() coregraphics.Size { + rv := objc.Call[coregraphics.Size](a_, objc.Sel("size")) return rv } -// Returns an attributed string consisting of the characters and attributes within the specified range in the attributed string. [Full Topic] +// Returns the attributes for the character at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1414283-attributedsubstringfromrange?language=objc -func (a_ AttributedString) AttributedSubstringFromRange(range_ Range) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("attributedSubstringFromRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1415682-attributesatindex?language=objc +func (a_ AttributedString) AttributesAtIndexEffectiveRange(location uint, range_ RangePointer) map[AttributedStringKey]objc.Object { + rv := objc.Call[map[AttributedStringKey]objc.Object](a_, objc.Sel("attributesAtIndex:effectiveRange:"), location, range_) return rv } -// Returns the value for the attribute with the specified name of the character at the specified index and, by reference, the range where the attribute applies. [Full Topic] +// Returns a data object that contains a text stream corresponding to the characters and attributes within the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1412701-attribute?language=objc -func (a_ AttributedString) AttributeAtIndexLongestEffectiveRangeInRange(attrName AttributedStringKey, location uint, range_ RangePointer, rangeLimit Range) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("attribute:atIndex:longestEffectiveRange:inRange:"), attrName, location, range_, rangeLimit) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1534090-datafromrange?language=objc +func (a_ AttributedString) DataFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error unsafe.Pointer) []byte { + rv := objc.Call[[]byte](a_, objc.Sel("dataFromRange:documentAttributes:error:"), range_, dict, error) return rv } @@ -615,6 +513,14 @@ func (a_ AttributedString) String() string { return rv } +// The length of the attributed string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1418432-length?language=objc +func (a_ AttributedString) Length() uint { + rv := objc.Call[uint](a_, objc.Sel("length")) + return rv +} + // An array of UTI strings that identify the file types that attributed strings support, either directly or through a user-installed filter service. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535409-texttypes?language=objc @@ -629,11 +535,3 @@ func (ac _AttributedStringClass) TextTypes() []string { func AttributedString_TextTypes() []string { return AttributedStringClass.TextTypes() } - -// The length of the attributed string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1418432-length?language=objc -func (a_ AttributedString) Length() uint { - rv := objc.Call[uint](a_, objc.Sel("length")) - return rv -} diff --git a/macos/foundation/attributed_string_markdown_parsing_options.gen.go b/macos/foundation/attributed_string_markdown_parsing_options.gen.go index 89dc10b9..9efc4bc4 100644 --- a/macos/foundation/attributed_string_markdown_parsing_options.gen.go +++ b/macos/foundation/attributed_string_markdown_parsing_options.gen.go @@ -18,12 +18,12 @@ type _AttributedStringMarkdownParsingOptionsClass struct { // An interface definition for the [AttributedStringMarkdownParsingOptions] class. type IAttributedStringMarkdownParsingOptions interface { objc.IObject - LanguageCode() string - SetLanguageCode(value string) FailurePolicy() AttributedStringMarkdownParsingFailurePolicy SetFailurePolicy(value AttributedStringMarkdownParsingFailurePolicy) InterpretedSyntax() AttributedStringMarkdownInterpretedSyntax SetInterpretedSyntax(value AttributedStringMarkdownInterpretedSyntax) + LanguageCode() string + SetLanguageCode(value string) AllowsExtendedAttributes() bool SetAllowsExtendedAttributes(value bool) } @@ -61,21 +61,6 @@ func NewAttributedStringMarkdownParsingOptions() AttributedStringMarkdownParsing return AttributedStringMarkdownParsingOptionsClass.New() } -// The BCP-47 language code for this document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstringmarkdownparsingoptions/3746889-languagecode?language=objc -func (a_ AttributedStringMarkdownParsingOptions) LanguageCode() string { - rv := objc.Call[string](a_, objc.Sel("languageCode")) - return rv -} - -// The BCP-47 language code for this document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstringmarkdownparsingoptions/3746889-languagecode?language=objc -func (a_ AttributedStringMarkdownParsingOptions) SetLanguageCode(value string) { - objc.Call[objc.Void](a_, objc.Sel("setLanguageCode:"), value) -} - // The policy for handling a parsing failure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstringmarkdownparsingoptions/3746887-failurepolicy?language=objc @@ -106,6 +91,21 @@ func (a_ AttributedStringMarkdownParsingOptions) SetInterpretedSyntax(value Attr objc.Call[objc.Void](a_, objc.Sel("setInterpretedSyntax:"), value) } +// The BCP-47 language code for this document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstringmarkdownparsingoptions/3746889-languagecode?language=objc +func (a_ AttributedStringMarkdownParsingOptions) LanguageCode() string { + rv := objc.Call[string](a_, objc.Sel("languageCode")) + return rv +} + +// The BCP-47 language code for this document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstringmarkdownparsingoptions/3746889-languagecode?language=objc +func (a_ AttributedStringMarkdownParsingOptions) SetLanguageCode(value string) { + objc.Call[objc.Void](a_, objc.Sel("setLanguageCode:"), value) +} + // A Boolean value that indicates whether parsing allows extensions to Markdown that specify extended attributes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstringmarkdownparsingoptions/3746886-allowsextendedattributes?language=objc diff --git a/macos/foundation/autorelease_pool.gen.go b/macos/foundation/autorelease_pool.gen.go index 678fcb6f..918343a1 100644 --- a/macos/foundation/autorelease_pool.gen.go +++ b/macos/foundation/autorelease_pool.gen.go @@ -19,6 +19,7 @@ type _AutoreleasePoolClass struct { type IAutoreleasePool interface { objc.IObject Drain() + AddObject(anObject objc.IObject) } // An object that supports Cocoa’s reference-counted memory management system. [Full Topic] @@ -61,6 +62,13 @@ func (a_ AutoreleasePool) Drain() { objc.Call[objc.Void](a_, objc.Sel("drain")) } +// Adds a given object to the receiver [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsautoreleasepool/1520555-addobject?language=objc +func (a_ AutoreleasePool) AddObject(anObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("addObject:"), anObject) +} + // Displays the state of the current thread's autorelease pool stack to stderr. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsautoreleasepool/1539124-showpools?language=objc @@ -74,17 +82,3 @@ func (ac _AutoreleasePoolClass) ShowPools() { func AutoreleasePool_ShowPools() { AutoreleasePoolClass.ShowPools() } - -// Adds a given object to the active autorelease pool in the current thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsautoreleasepool/1520551-addobject?language=objc -func (ac _AutoreleasePoolClass) AddObject_(anObject objc.IObject) { - objc.Call[objc.Void](ac, objc.Sel("addObject:"), anObject) -} - -// Adds a given object to the active autorelease pool in the current thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsautoreleasepool/1520551-addobject?language=objc -func AutoreleasePool_AddObject_(anObject objc.IObject) { - AutoreleasePoolClass.AddObject_(anObject) -} diff --git a/macos/foundation/background_activity_scheduler.gen.go b/macos/foundation/background_activity_scheduler.gen.go index bc3ae54f..2093a436 100644 --- a/macos/foundation/background_activity_scheduler.gen.go +++ b/macos/foundation/background_activity_scheduler.gen.go @@ -20,16 +20,16 @@ type IBackgroundActivityScheduler interface { objc.IObject ScheduleWithBlock(block func(completionHandler BackgroundActivityCompletionHandler)) Invalidate() + QualityOfService() QualityOfService + SetQualityOfService(value QualityOfService) + Tolerance() TimeInterval + SetTolerance(value TimeInterval) + ShouldDefer() bool Repeats() bool SetRepeats(value bool) - ShouldDefer() bool - Identifier() string Interval() TimeInterval SetInterval(value TimeInterval) - Tolerance() TimeInterval - SetTolerance(value TimeInterval) - QualityOfService() QualityOfService - SetQualityOfService(value QualityOfService) + Identifier() string } // A task scheduler suitable for low priority operations that can run in the background. [Full Topic] @@ -93,19 +93,34 @@ func (b_ BackgroundActivityScheduler) Invalidate() { objc.Call[objc.Void](b_, objc.Sel("invalidate")) } -// A Boolean value indicating whether the activity should be rescheduled after it completes. [Full Topic] +// A value of type NSQualityOfService, which controls how aggressively the system schedules the activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1409853-repeats?language=objc -func (b_ BackgroundActivityScheduler) Repeats() bool { - rv := objc.Call[bool](b_, objc.Sel("repeats")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1412688-qualityofservice?language=objc +func (b_ BackgroundActivityScheduler) QualityOfService() QualityOfService { + rv := objc.Call[QualityOfService](b_, objc.Sel("qualityOfService")) return rv } -// A Boolean value indicating whether the activity should be rescheduled after it completes. [Full Topic] +// A value of type NSQualityOfService, which controls how aggressively the system schedules the activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1409853-repeats?language=objc -func (b_ BackgroundActivityScheduler) SetRepeats(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setRepeats:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1412688-qualityofservice?language=objc +func (b_ BackgroundActivityScheduler) SetQualityOfService(value QualityOfService) { + objc.Call[objc.Void](b_, objc.Sel("setQualityOfService:"), value) +} + +// A value of type NSTimeInterval, which specifies a range of time during which the background activity may occur. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1408138-tolerance?language=objc +func (b_ BackgroundActivityScheduler) Tolerance() TimeInterval { + rv := objc.Call[TimeInterval](b_, objc.Sel("tolerance")) + return rv +} + +// A value of type NSTimeInterval, which specifies a range of time during which the background activity may occur. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1408138-tolerance?language=objc +func (b_ BackgroundActivityScheduler) SetTolerance(value TimeInterval) { + objc.Call[objc.Void](b_, objc.Sel("setTolerance:"), value) } // A Boolean value indicating whether your app should stop performing background activity and resume at a more optimal time. [Full Topic] @@ -116,14 +131,21 @@ func (b_ BackgroundActivityScheduler) ShouldDefer() bool { return rv } -// A unique reverse DNS notation string, such as com.example.MyApp.updatecheck, that identifies the activity. [Full Topic] +// A Boolean value indicating whether the activity should be rescheduled after it completes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1412285-identifier?language=objc -func (b_ BackgroundActivityScheduler) Identifier() string { - rv := objc.Call[string](b_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1409853-repeats?language=objc +func (b_ BackgroundActivityScheduler) Repeats() bool { + rv := objc.Call[bool](b_, objc.Sel("repeats")) return rv } +// A Boolean value indicating whether the activity should be rescheduled after it completes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1409853-repeats?language=objc +func (b_ BackgroundActivityScheduler) SetRepeats(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setRepeats:"), value) +} + // An integer providing a suggested interval between scheduling and invoking the activity. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1408819-interval?language=objc @@ -139,32 +161,10 @@ func (b_ BackgroundActivityScheduler) SetInterval(value TimeInterval) { objc.Call[objc.Void](b_, objc.Sel("setInterval:"), value) } -// A value of type NSTimeInterval, which specifies a range of time during which the background activity may occur. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1408138-tolerance?language=objc -func (b_ BackgroundActivityScheduler) Tolerance() TimeInterval { - rv := objc.Call[TimeInterval](b_, objc.Sel("tolerance")) - return rv -} - -// A value of type NSTimeInterval, which specifies a range of time during which the background activity may occur. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1408138-tolerance?language=objc -func (b_ BackgroundActivityScheduler) SetTolerance(value TimeInterval) { - objc.Call[objc.Void](b_, objc.Sel("setTolerance:"), value) -} - -// A value of type NSQualityOfService, which controls how aggressively the system schedules the activity. [Full Topic] +// A unique reverse DNS notation string, such as com.example.MyApp.updatecheck, that identifies the activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1412688-qualityofservice?language=objc -func (b_ BackgroundActivityScheduler) QualityOfService() QualityOfService { - rv := objc.Call[QualityOfService](b_, objc.Sel("qualityOfService")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1412285-identifier?language=objc +func (b_ BackgroundActivityScheduler) Identifier() string { + rv := objc.Call[string](b_, objc.Sel("identifier")) return rv } - -// A value of type NSQualityOfService, which controls how aggressively the system schedules the activity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler/1412688-qualityofservice?language=objc -func (b_ BackgroundActivityScheduler) SetQualityOfService(value QualityOfService) { - objc.Call[objc.Void](b_, objc.Sel("setQualityOfService:"), value) -} diff --git a/macos/foundation/bundle.gen.go b/macos/foundation/bundle.gen.go index 9b46319c..f311eb7e 100644 --- a/macos/foundation/bundle.gen.go +++ b/macos/foundation/bundle.gen.go @@ -18,54 +18,48 @@ type _BundleClass struct { // An interface definition for the [Bundle] class. type IBundle interface { objc.IObject - LoadNibNamedOwnerTopLevelObjects(nibName objc.IObject, owner objc.IObject, topLevelObjects unsafe.Pointer) bool - PathForResourceOfType(name string, ext string) string - URLForResourceWithExtensionSubdirectoryLocalization(name string, ext string, subpath string, localizationName string) URL - LoadAndReturnError(error unsafe.Pointer) bool - LocalizedStringForKeyValueTable(key string, value string, tableName string) string - PathForResourceOfTypeInDirectoryForLocalization(name string, ext string, subpath string, localizationName string) string - Unload() bool - PreflightAndReturnError(error unsafe.Pointer) bool - Load() bool + URLsForResourcesWithExtensionSubdirectoryLocalization(ext string, subpath string, localizationName string) []URL URLForImageResource(name objc.IObject) URL + PathForResourceOfTypeInDirectoryForLocalization(name string, ext string, subpath string, localizationName string) string URLForAuxiliaryExecutable(executableName string) URL - ObjectForInfoDictionaryKey(key string) objc.Object - PathForImageResource(name objc.IObject) string - PathsForResourcesOfTypeInDirectoryForLocalization(ext string, subpath string, localizationName string) []string - LocalizedAttributedStringForKeyValueTable(key string, value string, tableName string) AttributedString + Unload() bool ImageForResource(name objc.IObject) objc.Object + ContextHelpForKey(key objc.IObject) AttributedString + LocalizedAttributedStringForKeyValueTable(key string, value string, tableName string) AttributedString + PathsForResourcesOfTypeInDirectoryForLocalization(ext string, subpath string, localizationName string) []string ClassNamed(className string) objc.Class - URLForResourceWithExtension(name string, ext string) URL - URLsForResourcesWithExtensionSubdirectory(ext string, subpath string) []URL + ObjectForInfoDictionaryKey(key string) objc.Object + LocalizedStringForKeyValueTable(key string, value string, tableName string) string PathForAuxiliaryExecutable(executableName string) string PathForSoundResource(name objc.IObject) string - URLsForResourcesWithExtensionSubdirectoryLocalization(ext string, subpath string, localizationName string) []URL - URLForResourceWithExtensionSubdirectory(name string, ext string, subpath string) URL - ContextHelpForKey(key objc.IObject) AttributedString + LoadAndReturnError(error unsafe.Pointer) bool + Load() bool + PreflightAndReturnError(error unsafe.Pointer) bool + PathForImageResource(name objc.IObject) string DevelopmentLocalization() string - BuiltInPlugInsPath() string - SharedSupportPath() string - BundleIdentifier() string - PrivateFrameworksPath() string - SharedSupportURL() URL PreferredLocalizations() []string - AppStoreReceiptURL() URL - ResourceURL() URL + BuiltInPlugInsPath() string PrincipalClass() objc.Class + BundlePath() string + AppStoreReceiptURL() URL + BundleIdentifier() string + Localizations() []string ExecutableURL() URL - LocalizedInfoDictionary() map[string]objc.Object - BundleURL() URL - ExecutableArchitectures() []Number - InfoDictionary() map[string]objc.Object SharedFrameworksPath() string + PrivateFrameworksPath() string ExecutablePath() string IsLoaded() bool + SharedSupportPath() string + ExecutableArchitectures() []Number + PrivateFrameworksURL() URL + LocalizedInfoDictionary() map[string]objc.Object SharedFrameworksURL() URL - BundlePath() string - BuiltInPlugInsURL() URL + InfoDictionary() map[string]objc.Object + ResourceURL() URL ResourcePath() string - Localizations() []string - PrivateFrameworksURL() URL + BundleURL() URL + BuiltInPlugInsURL() URL + SharedSupportURL() URL } // A representation of the code and resources stored in a bundle directory on disk. [Full Topic] @@ -81,16 +75,16 @@ func BundleFrom(ptr unsafe.Pointer) Bundle { } } -func (bc _BundleClass) BundleWithPath(path string) Bundle { - rv := objc.Call[Bundle](bc, objc.Sel("bundleWithPath:"), path) +func (bc _BundleClass) BundleWithURL(url IURL) Bundle { + rv := objc.Call[Bundle](bc, objc.Sel("bundleWithURL:"), url) return rv } -// Returns an NSBundle object that corresponds to the specified directory. [Full Topic] +// Returns an NSBundle object that corresponds to the specified file URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1495012-bundlewithpath?language=objc -func Bundle_BundleWithPath(path string) Bundle { - return BundleClass.BundleWithPath(path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1494992-bundlewithurl?language=objc +func Bundle_BundleWithURL(url IURL) Bundle { + return BundleClass.BundleWithURL(url) } func (b_ Bundle) InitWithURL(url IURL) Bundle { @@ -107,18 +101,6 @@ func NewBundleWithURL(url IURL) Bundle { return instance } -func (bc _BundleClass) BundleWithURL(url IURL) Bundle { - rv := objc.Call[Bundle](bc, objc.Sel("bundleWithURL:"), url) - return rv -} - -// Returns an NSBundle object that corresponds to the specified file URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1494992-bundlewithurl?language=objc -func Bundle_BundleWithURL(url IURL) Bundle { - return BundleClass.BundleWithURL(url) -} - func (b_ Bundle) InitWithPath(path string) Bundle { rv := objc.Call[Bundle](b_, objc.Sel("initWithPath:"), path) return rv @@ -133,6 +115,18 @@ func NewBundleWithPath(path string) Bundle { return instance } +func (bc _BundleClass) BundleWithPath(path string) Bundle { + rv := objc.Call[Bundle](bc, objc.Sel("bundleWithPath:"), path) + return rv +} + +// Returns an NSBundle object that corresponds to the specified directory. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1495012-bundlewithpath?language=objc +func Bundle_BundleWithPath(path string) Bundle { + return BundleClass.BundleWithPath(path) +} + func (bc _BundleClass) Alloc() Bundle { rv := objc.Call[Bundle](bc, objc.Sel("alloc")) return rv @@ -153,50 +147,60 @@ func (b_ Bundle) Init() Bundle { return rv } -// Loads a nib from the bundle with the specified file name and owner. [Full Topic] +// Returns an array containing the file URLs for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, and limited to global resources and those associated with the specified localization. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1402909-loadnibnamed?language=objc -func (b_ Bundle) LoadNibNamedOwnerTopLevelObjects(nibName objc.IObject, owner objc.IObject, topLevelObjects unsafe.Pointer) bool { - rv := objc.Call[bool](b_, objc.Sel("loadNibNamed:owner:topLevelObjects:"), nibName, owner, topLevelObjects) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1414688-urlsforresourceswithextension?language=objc +func (b_ Bundle) URLsForResourcesWithExtensionSubdirectoryLocalization(ext string, subpath string, localizationName string) []URL { + rv := objc.Call[[]URL](b_, objc.Sel("URLsForResourcesWithExtension:subdirectory:localization:"), ext, subpath, localizationName) return rv } -// Returns the full pathname for the resource identified by the specified name and file extension. [Full Topic] +// Returns the location of the specified image resource as an NSURL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1410989-pathforresource?language=objc -func (b_ Bundle) PathForResourceOfType(name string, ext string) string { - rv := objc.Call[string](b_, objc.Sel("pathForResource:ofType:"), name, ext) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1519886-urlforimageresource?language=objc +func (b_ Bundle) URLForImageResource(name objc.IObject) URL { + rv := objc.Call[URL](b_, objc.Sel("URLForImageResource:"), name) return rv } -// Returns an array containing the file URLs for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, within the specified bundle. [Full Topic] +// Returns the full pathname for the resource identified by the specified name and file extension, located in the specified bundle subdirectory, and limited to global resources and those associated with the specified localization. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1409807-urlsforresourceswithextension?language=objc -func (bc _BundleClass) URLsForResourcesWithExtensionSubdirectoryInBundleWithURL(ext string, subpath string, bundleURL IURL) []URL { - rv := objc.Call[[]URL](bc, objc.Sel("URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"), ext, subpath, bundleURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413471-pathforresource?language=objc +func (b_ Bundle) PathForResourceOfTypeInDirectoryForLocalization(name string, ext string, subpath string, localizationName string) string { + rv := objc.Call[string](b_, objc.Sel("pathForResource:ofType:inDirectory:forLocalization:"), name, ext, subpath, localizationName) return rv } -// Returns an array containing the file URLs for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, within the specified bundle. [Full Topic] +// Returns the file URL of the executable with the specified name in the receiver’s bundle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1409807-urlsforresourceswithextension?language=objc -func Bundle_URLsForResourcesWithExtensionSubdirectoryInBundleWithURL(ext string, subpath string, bundleURL IURL) []URL { - return BundleClass.URLsForResourcesWithExtensionSubdirectoryInBundleWithURL(ext, subpath, bundleURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411412-urlforauxiliaryexecutable?language=objc +func (b_ Bundle) URLForAuxiliaryExecutable(executableName string) URL { + rv := objc.Call[URL](b_, objc.Sel("URLForAuxiliaryExecutable:"), executableName) + return rv } -// Returns locale identifiers for which a bundle would provide localized content, given a specified list of candidates for a user's language preferences. [Full Topic] +// Unloads the code associated with the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1409418-preferredlocalizationsfromarray?language=objc -func (bc _BundleClass) PreferredLocalizationsFromArrayForPreferences(localizationsArray []string, preferencesArray []string) []string { - rv := objc.Call[[]string](bc, objc.Sel("preferredLocalizationsFromArray:forPreferences:"), localizationsArray, preferencesArray) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1412388-unload?language=objc +func (b_ Bundle) Unload() bool { + rv := objc.Call[bool](b_, objc.Sel("unload")) return rv } -// Returns locale identifiers for which a bundle would provide localized content, given a specified list of candidates for a user's language preferences. [Full Topic] +// Returns an NSImage instance associated with the specified name, which can be backed by multiple files representing different resolution versions of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1409418-preferredlocalizationsfromarray?language=objc -func Bundle_PreferredLocalizationsFromArrayForPreferences(localizationsArray []string, preferencesArray []string) []string { - return BundleClass.PreferredLocalizationsFromArrayForPreferences(localizationsArray, preferencesArray) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1519901-imageforresource?language=objc +func (b_ Bundle) ImageForResource(name objc.IObject) objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("imageForResource:"), name) + return rv +} + +// Returns the context-sensitive help for the specified key from the bundle's help file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1500918-contexthelpforkey?language=objc +func (b_ Bundle) ContextHelpForKey(key objc.IObject) AttributedString { + rv := objc.Call[AttributedString](b_, objc.Sel("contextHelpForKey:"), key) + return rv } // Returns the NSBundle object with which the specified class is associated. [Full Topic] @@ -214,98 +218,43 @@ func Bundle_BundleForClass(aClass objc.IClass) Bundle { return BundleClass.BundleForClass(aClass) } -// Returns an array containing the pathnames for all bundle resources having the specified extension and residing in the bundle directory at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415876-pathsforresourcesoftype?language=objc -func (bc _BundleClass) PathsForResourcesOfTypeInDirectory_(ext string, bundlePath string) []string { - rv := objc.Call[[]string](bc, objc.Sel("pathsForResourcesOfType:inDirectory:"), ext, bundlePath) - return rv -} - -// Returns an array containing the pathnames for all bundle resources having the specified extension and residing in the bundle directory at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415876-pathsforresourcesoftype?language=objc -func Bundle_PathsForResourcesOfTypeInDirectory_(ext string, bundlePath string) []string { - return BundleClass.PathsForResourcesOfTypeInDirectory_(ext, bundlePath) -} - -// Returns the file URL for the resource identified by the specified name and file extension, located in the specified bundle subdirectory, and limited to global resources and those associated with the specified localization. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417378-urlforresource?language=objc -func (b_ Bundle) URLForResourceWithExtensionSubdirectoryLocalization(name string, ext string, subpath string, localizationName string) URL { - rv := objc.Call[URL](b_, objc.Sel("URLForResource:withExtension:subdirectory:localization:"), name, ext, subpath, localizationName) - return rv -} - -// Loads the bundle’s executable code and returns any errors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411819-loadandreturnerror?language=objc -func (b_ Bundle) LoadAndReturnError(error unsafe.Pointer) bool { - rv := objc.Call[bool](b_, objc.Sel("loadAndReturnError:"), error) - return rv -} - -// Returns a localized version of the string designated by the specified key and residing in the specified table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417694-localizedstringforkey?language=objc -func (b_ Bundle) LocalizedStringForKeyValueTable(key string, value string, tableName string) string { - rv := objc.Call[string](b_, objc.Sel("localizedStringForKey:value:table:"), key, value, tableName) - return rv -} - -// Returns the full pathname for the resource identified by the specified name and file extension, located in the specified bundle subdirectory, and limited to global resources and those associated with the specified localization. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413471-pathforresource?language=objc -func (b_ Bundle) PathForResourceOfTypeInDirectoryForLocalization(name string, ext string, subpath string, localizationName string) string { - rv := objc.Call[string](b_, objc.Sel("pathForResource:ofType:inDirectory:forLocalization:"), name, ext, subpath, localizationName) - return rv -} - -// Unloads the code associated with the receiver. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1412388-unload?language=objc -func (b_ Bundle) Unload() bool { - rv := objc.Call[bool](b_, objc.Sel("unload")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/3746904-localizedattributedstringforkey?language=objc +func (b_ Bundle) LocalizedAttributedStringForKeyValueTable(key string, value string, tableName string) AttributedString { + rv := objc.Call[AttributedString](b_, objc.Sel("localizedAttributedStringForKey:value:table:"), key, value, tableName) return rv } -// Returns the NSBundle instance that has the specified bundle identifier. [Full Topic] +// Returns an array containing the file for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, and limited to global resources and those associated with the specified localization. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411929-bundlewithidentifier?language=objc -func (bc _BundleClass) BundleWithIdentifier(identifier string) Bundle { - rv := objc.Call[Bundle](bc, objc.Sel("bundleWithIdentifier:"), identifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1416940-pathsforresourcesoftype?language=objc +func (b_ Bundle) PathsForResourcesOfTypeInDirectoryForLocalization(ext string, subpath string, localizationName string) []string { + rv := objc.Call[[]string](b_, objc.Sel("pathsForResourcesOfType:inDirectory:forLocalization:"), ext, subpath, localizationName) return rv } -// Returns the NSBundle instance that has the specified bundle identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411929-bundlewithidentifier?language=objc -func Bundle_BundleWithIdentifier(identifier string) Bundle { - return BundleClass.BundleWithIdentifier(identifier) -} - -// Returns a Boolean value indicating whether the bundle’s executable code could be loaded successfully. [Full Topic] +// Returns the Class object for the specified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415083-preflightandreturnerror?language=objc -func (b_ Bundle) PreflightAndReturnError(error unsafe.Pointer) bool { - rv := objc.Call[bool](b_, objc.Sel("preflightAndReturnError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1407299-classnamed?language=objc +func (b_ Bundle) ClassNamed(className string) objc.Class { + rv := objc.Call[objc.Class](b_, objc.Sel("classNamed:"), className) return rv } -// Dynamically loads the bundle’s executable code into a running program, if the code has not already been loaded. [Full Topic] +// Returns one or more localizations from the specified list that a bundle object would use to locate resources for the current user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415927-load?language=objc -func (b_ Bundle) Load() bool { - rv := objc.Call[bool](b_, objc.Sel("load")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417249-preferredlocalizationsfromarray?language=objc +func (bc _BundleClass) PreferredLocalizationsFromArray(localizationsArray []string) []string { + rv := objc.Call[[]string](bc, objc.Sel("preferredLocalizationsFromArray:"), localizationsArray) return rv } -// Returns the location of the specified image resource as an NSURL. [Full Topic] +// Returns one or more localizations from the specified list that a bundle object would use to locate resources for the current user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1519886-urlforimageresource?language=objc -func (b_ Bundle) URLForImageResource(name objc.IObject) URL { - rv := objc.Call[URL](b_, objc.Sel("URLForImageResource:"), name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417249-preferredlocalizationsfromarray?language=objc +func Bundle_PreferredLocalizationsFromArray(localizationsArray []string) []string { + return BundleClass.PreferredLocalizationsFromArray(localizationsArray) } // Creates and returns a file URL for the resource with the specified name and extension in the specified bundle. [Full Topic] @@ -323,14 +272,6 @@ func Bundle_URLForResourceWithExtensionSubdirectoryInBundleWithURL(name string, return BundleClass.URLForResourceWithExtensionSubdirectoryInBundleWithURL(name, ext, subpath, bundleURL) } -// Returns the file URL of the executable with the specified name in the receiver’s bundle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411412-urlforauxiliaryexecutable?language=objc -func (b_ Bundle) URLForAuxiliaryExecutable(executableName string) URL { - rv := objc.Call[URL](b_, objc.Sel("URLForAuxiliaryExecutable:"), executableName) - return rv -} - // Returns the value associated with the specified key in the receiver's information property list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1408696-objectforinfodictionarykey?language=objc @@ -339,137 +280,146 @@ func (b_ Bundle) ObjectForInfoDictionaryKey(key string) objc.Object { return rv } -// Returns the location of the specified image resource file. [Full Topic] +// Returns a localized version of the string designated by the specified key and residing in the specified table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1519854-pathforimageresource?language=objc -func (b_ Bundle) PathForImageResource(name objc.IObject) string { - rv := objc.Call[string](b_, objc.Sel("pathForImageResource:"), name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417694-localizedstringforkey?language=objc +func (b_ Bundle) LocalizedStringForKeyValueTable(key string, value string, tableName string) string { + rv := objc.Call[string](b_, objc.Sel("localizedStringForKey:value:table:"), key, value, tableName) return rv } -// Returns an array containing the file for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, and limited to global resources and those associated with the specified localization. [Full Topic] +// Returns the full pathname of the executable with the specified name in the receiver’s bundle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1416940-pathsforresourcesoftype?language=objc -func (b_ Bundle) PathsForResourcesOfTypeInDirectoryForLocalization(ext string, subpath string, localizationName string) []string { - rv := objc.Call[[]string](b_, objc.Sel("pathsForResourcesOfType:inDirectory:forLocalization:"), ext, subpath, localizationName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415214-pathforauxiliaryexecutable?language=objc +func (b_ Bundle) PathForAuxiliaryExecutable(executableName string) string { + rv := objc.Call[string](b_, objc.Sel("pathForAuxiliaryExecutable:"), executableName) return rv } -// [Full Topic] +// Returns the location of the specified sound resource file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/3746904-localizedattributedstringforkey?language=objc -func (b_ Bundle) LocalizedAttributedStringForKeyValueTable(key string, value string, tableName string) AttributedString { - rv := objc.Call[AttributedString](b_, objc.Sel("localizedAttributedStringForKey:value:table:"), key, value, tableName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1477280-pathforsoundresource?language=objc +func (b_ Bundle) PathForSoundResource(name objc.IObject) string { + rv := objc.Call[string](b_, objc.Sel("pathForSoundResource:"), name) return rv } -// Returns an NSImage instance associated with the specified name, which can be backed by multiple files representing different resolution versions of the image. [Full Topic] +// Loads the bundle’s executable code and returns any errors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1519901-imageforresource?language=objc -func (b_ Bundle) ImageForResource(name objc.IObject) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("imageForResource:"), name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411819-loadandreturnerror?language=objc +func (b_ Bundle) LoadAndReturnError(error unsafe.Pointer) bool { + rv := objc.Call[bool](b_, objc.Sel("loadAndReturnError:"), error) return rv } -// Returns the Class object for the specified name. [Full Topic] +// Dynamically loads the bundle’s executable code into a running program, if the code has not already been loaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1407299-classnamed?language=objc -func (b_ Bundle) ClassNamed(className string) objc.Class { - rv := objc.Call[objc.Class](b_, objc.Sel("classNamed:"), className) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415927-load?language=objc +func (b_ Bundle) Load() bool { + rv := objc.Call[bool](b_, objc.Sel("load")) return rv } -// Returns the file URL for the resource identified by the specified name and file extension. [Full Topic] +// Returns a Boolean value indicating whether the bundle’s executable code could be loaded successfully. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411540-urlforresource?language=objc -func (b_ Bundle) URLForResourceWithExtension(name string, ext string) URL { - rv := objc.Call[URL](b_, objc.Sel("URLForResource:withExtension:"), name, ext) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415083-preflightandreturnerror?language=objc +func (b_ Bundle) PreflightAndReturnError(error unsafe.Pointer) bool { + rv := objc.Call[bool](b_, objc.Sel("preflightAndReturnError:"), error) return rv } -// Returns an array of file URLs for all resources identified by the specified file extension and located in the specified bundle subdirectory. [Full Topic] +// Returns the location of the specified image resource file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1407424-urlsforresourceswithextension?language=objc -func (b_ Bundle) URLsForResourcesWithExtensionSubdirectory(ext string, subpath string) []URL { - rv := objc.Call[[]URL](b_, objc.Sel("URLsForResourcesWithExtension:subdirectory:"), ext, subpath) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1519854-pathforimageresource?language=objc +func (b_ Bundle) PathForImageResource(name objc.IObject) string { + rv := objc.Call[string](b_, objc.Sel("pathForImageResource:"), name) return rv } -// Returns one or more localizations from the specified list that a bundle object would use to locate resources for the current user. [Full Topic] +// Returns the NSBundle instance that has the specified bundle identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417249-preferredlocalizationsfromarray?language=objc -func (bc _BundleClass) PreferredLocalizationsFromArray(localizationsArray []string) []string { - rv := objc.Call[[]string](bc, objc.Sel("preferredLocalizationsFromArray:"), localizationsArray) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411929-bundlewithidentifier?language=objc +func (bc _BundleClass) BundleWithIdentifier(identifier string) Bundle { + rv := objc.Call[Bundle](bc, objc.Sel("bundleWithIdentifier:"), identifier) return rv } -// Returns one or more localizations from the specified list that a bundle object would use to locate resources for the current user. [Full Topic] +// Returns the NSBundle instance that has the specified bundle identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417249-preferredlocalizationsfromarray?language=objc -func Bundle_PreferredLocalizationsFromArray(localizationsArray []string) []string { - return BundleClass.PreferredLocalizationsFromArray(localizationsArray) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411929-bundlewithidentifier?language=objc +func Bundle_BundleWithIdentifier(identifier string) Bundle { + return BundleClass.BundleWithIdentifier(identifier) } -// Returns the full pathname of the executable with the specified name in the receiver’s bundle. [Full Topic] +// The localization for the development language. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415214-pathforauxiliaryexecutable?language=objc -func (b_ Bundle) PathForAuxiliaryExecutable(executableName string) string { - rv := objc.Call[string](b_, objc.Sel("pathForAuxiliaryExecutable:"), executableName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417526-developmentlocalization?language=objc +func (b_ Bundle) DevelopmentLocalization() string { + rv := objc.Call[string](b_, objc.Sel("developmentLocalization")) return rv } -// Returns the location of the specified sound resource file. [Full Topic] +// An ordered list of preferred localizations contained in the bundle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1477280-pathforsoundresource?language=objc -func (b_ Bundle) PathForSoundResource(name objc.IObject) string { - rv := objc.Call[string](b_, objc.Sel("pathForSoundResource:"), name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413220-preferredlocalizations?language=objc +func (b_ Bundle) PreferredLocalizations() []string { + rv := objc.Call[[]string](b_, objc.Sel("preferredLocalizations")) return rv } -// Returns an array containing the file URLs for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, and limited to global resources and those associated with the specified localization. [Full Topic] +// The full pathname of the receiver's subdirectory containing plug-ins. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1414688-urlsforresourceswithextension?language=objc -func (b_ Bundle) URLsForResourcesWithExtensionSubdirectoryLocalization(ext string, subpath string, localizationName string) []URL { - rv := objc.Call[[]URL](b_, objc.Sel("URLsForResourcesWithExtension:subdirectory:localization:"), ext, subpath, localizationName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1408900-builtinpluginspath?language=objc +func (b_ Bundle) BuiltInPlugInsPath() string { + rv := objc.Call[string](b_, objc.Sel("builtInPlugInsPath")) return rv } -// Returns the file URL for the resource file identified by the specified name and extension and residing in a given bundle directory. [Full Topic] +// The bundle’s principal class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1416712-urlforresource?language=objc -func (b_ Bundle) URLForResourceWithExtensionSubdirectory(name string, ext string, subpath string) URL { - rv := objc.Call[URL](b_, objc.Sel("URLForResource:withExtension:subdirectory:"), name, ext, subpath) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1409048-principalclass?language=objc +func (b_ Bundle) PrincipalClass() objc.Class { + rv := objc.Call[objc.Class](b_, objc.Sel("principalClass")) return rv } -// Returns the full pathname for the resource file identified by the specified name and extension and residing in a given bundle directory. [Full Topic] +// The full pathname of the receiver’s bundle directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1409523-pathforresource?language=objc -func (bc _BundleClass) PathForResourceOfTypeInDirectory_(name string, ext string, bundlePath string) string { - rv := objc.Call[string](bc, objc.Sel("pathForResource:ofType:inDirectory:"), name, ext, bundlePath) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1407973-bundlepath?language=objc +func (b_ Bundle) BundlePath() string { + rv := objc.Call[string](b_, objc.Sel("bundlePath")) return rv } -// Returns the full pathname for the resource file identified by the specified name and extension and residing in a given bundle directory. [Full Topic] +// The file URL for the bundle’s App Store receipt. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1409523-pathforresource?language=objc -func Bundle_PathForResourceOfTypeInDirectory_(name string, ext string, bundlePath string) string { - return BundleClass.PathForResourceOfTypeInDirectory_(name, ext, bundlePath) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1407276-appstorereceipturl?language=objc +func (b_ Bundle) AppStoreReceiptURL() URL { + rv := objc.Call[URL](b_, objc.Sel("appStoreReceiptURL")) + return rv } -// Returns the context-sensitive help for the specified key from the bundle's help file. [Full Topic] +// The receiver’s bundle identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1500918-contexthelpforkey?language=objc -func (b_ Bundle) ContextHelpForKey(key objc.IObject) AttributedString { - rv := objc.Call[AttributedString](b_, objc.Sel("contextHelpForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1418023-bundleidentifier?language=objc +func (b_ Bundle) BundleIdentifier() string { + rv := objc.Call[string](b_, objc.Sel("bundleIdentifier")) return rv } -// The localization for the development language. [Full Topic] +// A list of all the localizations contained in the bundle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417526-developmentlocalization?language=objc -func (b_ Bundle) DevelopmentLocalization() string { - rv := objc.Call[string](b_, objc.Sel("developmentLocalization")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417415-localizations?language=objc +func (b_ Bundle) Localizations() []string { + rv := objc.Call[[]string](b_, objc.Sel("localizations")) + return rv +} + +// The file URL of the receiver's executable file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1410470-executableurl?language=objc +func (b_ Bundle) ExecutableURL() URL { + rv := objc.Call[URL](b_, objc.Sel("executableURL")) return rv } @@ -488,27 +438,11 @@ func Bundle_AllFrameworks() []Bundle { return BundleClass.AllFrameworks() } -// The full pathname of the receiver's subdirectory containing plug-ins. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1408900-builtinpluginspath?language=objc -func (b_ Bundle) BuiltInPlugInsPath() string { - rv := objc.Call[string](b_, objc.Sel("builtInPlugInsPath")) - return rv -} - -// The full pathname of the bundle’s subdirectory containing shared support files. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411609-sharedsupportpath?language=objc -func (b_ Bundle) SharedSupportPath() string { - rv := objc.Call[string](b_, objc.Sel("sharedSupportPath")) - return rv -} - -// The receiver’s bundle identifier. [Full Topic] +// The full pathname of the bundle’s subdirectory containing shared frameworks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1418023-bundleidentifier?language=objc -func (b_ Bundle) BundleIdentifier() string { - rv := objc.Call[string](b_, objc.Sel("bundleIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417226-sharedframeworkspath?language=objc +func (b_ Bundle) SharedFrameworksPath() string { + rv := objc.Call[string](b_, objc.Sel("sharedFrameworksPath")) return rv } @@ -520,51 +454,43 @@ func (b_ Bundle) PrivateFrameworksPath() string { return rv } -// The file URL of the bundle’s subdirectory containing shared support files. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1416823-sharedsupporturl?language=objc -func (b_ Bundle) SharedSupportURL() URL { - rv := objc.Call[URL](b_, objc.Sel("sharedSupportURL")) - return rv -} - -// An ordered list of preferred localizations contained in the bundle. [Full Topic] +// The full pathname of the receiver's executable file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413220-preferredlocalizations?language=objc -func (b_ Bundle) PreferredLocalizations() []string { - rv := objc.Call[[]string](b_, objc.Sel("preferredLocalizations")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1409078-executablepath?language=objc +func (b_ Bundle) ExecutablePath() string { + rv := objc.Call[string](b_, objc.Sel("executablePath")) return rv } -// The file URL for the bundle’s App Store receipt. [Full Topic] +// The load status of a bundle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1407276-appstorereceipturl?language=objc -func (b_ Bundle) AppStoreReceiptURL() URL { - rv := objc.Call[URL](b_, objc.Sel("appStoreReceiptURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413594-loaded?language=objc +func (b_ Bundle) IsLoaded() bool { + rv := objc.Call[bool](b_, objc.Sel("isLoaded")) return rv } -// The file URL of the bundle’s subdirectory containing resource files. [Full Topic] +// The full pathname of the bundle’s subdirectory containing shared support files. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1414821-resourceurl?language=objc -func (b_ Bundle) ResourceURL() URL { - rv := objc.Call[URL](b_, objc.Sel("resourceURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411609-sharedsupportpath?language=objc +func (b_ Bundle) SharedSupportPath() string { + rv := objc.Call[string](b_, objc.Sel("sharedSupportPath")) return rv } -// The bundle’s principal class. [Full Topic] +// An array of numbers indicating the architecture types supported by the bundle’s executable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1409048-principalclass?language=objc -func (b_ Bundle) PrincipalClass() objc.Class { - rv := objc.Call[objc.Class](b_, objc.Sel("principalClass")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415499-executablearchitectures?language=objc +func (b_ Bundle) ExecutableArchitectures() []Number { + rv := objc.Call[[]Number](b_, objc.Sel("executableArchitectures")) return rv } -// The file URL of the receiver's executable file. [Full Topic] +// The file URL of the bundle’s subdirectory containing private frameworks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1410470-executableurl?language=objc -func (b_ Bundle) ExecutableURL() URL { - rv := objc.Call[URL](b_, objc.Sel("executableURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417617-privateframeworksurl?language=objc +func (b_ Bundle) PrivateFrameworksURL() URL { + rv := objc.Call[URL](b_, objc.Sel("privateFrameworksURL")) return rv } @@ -576,37 +502,14 @@ func (b_ Bundle) LocalizedInfoDictionary() map[string]objc.Object { return rv } -// The full URL of the receiver’s bundle directory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415654-bundleurl?language=objc -func (b_ Bundle) BundleURL() URL { - rv := objc.Call[URL](b_, objc.Sel("bundleURL")) - return rv -} - -// An array of numbers indicating the architecture types supported by the bundle’s executable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415499-executablearchitectures?language=objc -func (b_ Bundle) ExecutableArchitectures() []Number { - rv := objc.Call[[]Number](b_, objc.Sel("executableArchitectures")) - return rv -} - -// Returns an array of all the application’s non-framework bundles. [Full Topic] +// The file URL of the receiver's subdirectory containing shared frameworks. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413705-allbundles?language=objc -func (bc _BundleClass) AllBundles() []Bundle { - rv := objc.Call[[]Bundle](bc, objc.Sel("allBundles")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411774-sharedframeworksurl?language=objc +func (b_ Bundle) SharedFrameworksURL() URL { + rv := objc.Call[URL](b_, objc.Sel("sharedFrameworksURL")) return rv } -// Returns an array of all the application’s non-framework bundles. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413705-allbundles?language=objc -func Bundle_AllBundles() []Bundle { - return BundleClass.AllBundles() -} - // A dictionary, constructed from the bundle’s Info.plist file, that contains information about the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413477-infodictionary?language=objc @@ -615,11 +518,11 @@ func (b_ Bundle) InfoDictionary() map[string]objc.Object { return rv } -// The full pathname of the bundle’s subdirectory containing shared frameworks. [Full Topic] +// The file URL of the bundle’s subdirectory containing resource files. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417226-sharedframeworkspath?language=objc -func (b_ Bundle) SharedFrameworksPath() string { - rv := objc.Call[string](b_, objc.Sel("sharedFrameworksPath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1414821-resourceurl?language=objc +func (b_ Bundle) ResourceURL() URL { + rv := objc.Call[URL](b_, objc.Sel("resourceURL")) return rv } @@ -638,35 +541,19 @@ func Bundle_MainBundle() Bundle { return BundleClass.MainBundle() } -// The full pathname of the receiver's executable file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1409078-executablepath?language=objc -func (b_ Bundle) ExecutablePath() string { - rv := objc.Call[string](b_, objc.Sel("executablePath")) - return rv -} - -// The load status of a bundle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413594-loaded?language=objc -func (b_ Bundle) IsLoaded() bool { - rv := objc.Call[bool](b_, objc.Sel("isLoaded")) - return rv -} - -// The file URL of the receiver's subdirectory containing shared frameworks. [Full Topic] +// The full pathname of the bundle’s subdirectory containing resources. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1411774-sharedframeworksurl?language=objc -func (b_ Bundle) SharedFrameworksURL() URL { - rv := objc.Call[URL](b_, objc.Sel("sharedFrameworksURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417723-resourcepath?language=objc +func (b_ Bundle) ResourcePath() string { + rv := objc.Call[string](b_, objc.Sel("resourcePath")) return rv } -// The full pathname of the receiver’s bundle directory. [Full Topic] +// The full URL of the receiver’s bundle directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1407973-bundlepath?language=objc -func (b_ Bundle) BundlePath() string { - rv := objc.Call[string](b_, objc.Sel("bundlePath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415654-bundleurl?language=objc +func (b_ Bundle) BundleURL() URL { + rv := objc.Call[URL](b_, objc.Sel("bundleURL")) return rv } @@ -678,26 +565,25 @@ func (b_ Bundle) BuiltInPlugInsURL() URL { return rv } -// The full pathname of the bundle’s subdirectory containing resources. [Full Topic] +// Returns an array of all the application’s non-framework bundles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417723-resourcepath?language=objc -func (b_ Bundle) ResourcePath() string { - rv := objc.Call[string](b_, objc.Sel("resourcePath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413705-allbundles?language=objc +func (bc _BundleClass) AllBundles() []Bundle { + rv := objc.Call[[]Bundle](bc, objc.Sel("allBundles")) return rv } -// A list of all the localizations contained in the bundle. [Full Topic] +// Returns an array of all the application’s non-framework bundles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417415-localizations?language=objc -func (b_ Bundle) Localizations() []string { - rv := objc.Call[[]string](b_, objc.Sel("localizations")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413705-allbundles?language=objc +func Bundle_AllBundles() []Bundle { + return BundleClass.AllBundles() } -// The file URL of the bundle’s subdirectory containing private frameworks. [Full Topic] +// The file URL of the bundle’s subdirectory containing shared support files. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1417617-privateframeworksurl?language=objc -func (b_ Bundle) PrivateFrameworksURL() URL { - rv := objc.Call[URL](b_, objc.Sel("privateFrameworksURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1416823-sharedsupporturl?language=objc +func (b_ Bundle) SharedSupportURL() URL { + rv := objc.Call[URL](b_, objc.Sel("sharedSupportURL")) return rv } diff --git a/macos/foundation/byte_count_formatter.gen.go b/macos/foundation/byte_count_formatter.gen.go index bd9f4a0f..f42b52a3 100644 --- a/macos/foundation/byte_count_formatter.gen.go +++ b/macos/foundation/byte_count_formatter.gen.go @@ -22,22 +22,22 @@ type IByteCountFormatter interface { StringFromByteCount(byteCount int64) string IsAdaptive() bool SetAdaptive(value bool) - FormattingContext() FormattingContext - SetFormattingContext(value FormattingContext) + ZeroPadsFractionDigits() bool + SetZeroPadsFractionDigits(value bool) IncludesCount() bool SetIncludesCount(value bool) - IncludesActualByteCount() bool - SetIncludesActualByteCount(value bool) - CountStyle() ByteCountFormatterCountStyle - SetCountStyle(value ByteCountFormatterCountStyle) AllowsNonnumericFormatting() bool SetAllowsNonnumericFormatting(value bool) - ZeroPadsFractionDigits() bool - SetZeroPadsFractionDigits(value bool) - IncludesUnit() bool - SetIncludesUnit(value bool) AllowedUnits() ByteCountFormatterUnits SetAllowedUnits(value ByteCountFormatterUnits) + FormattingContext() FormattingContext + SetFormattingContext(value FormattingContext) + CountStyle() ByteCountFormatterCountStyle + SetCountStyle(value ByteCountFormatterCountStyle) + IncludesActualByteCount() bool + SetIncludesActualByteCount(value bool) + IncludesUnit() bool + SetIncludesUnit(value bool) } // A formatter that converts a byte count value into a localized description that is formatted with the appropriate byte modifier (KB, MB, GB and so on). [Full Topic] @@ -81,36 +81,6 @@ func (b_ ByteCountFormatter) StringFromMeasurement(measurement IMeasurement) str return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/3172524-stringfrommeasurement?language=objc -func (bc _ByteCountFormatterClass) StringFromMeasurementCountStyle(measurement IMeasurement, countStyle ByteCountFormatterCountStyle) string { - rv := objc.Call[string](bc, objc.Sel("stringFromMeasurement:countStyle:"), measurement, countStyle) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/3172524-stringfrommeasurement?language=objc -func ByteCountFormatter_StringFromMeasurementCountStyle(measurement IMeasurement, countStyle ByteCountFormatterCountStyle) string { - return ByteCountFormatterClass.StringFromMeasurementCountStyle(measurement, countStyle) -} - -// Converts a byte count into the specified string format without creating an NSNumber object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1408178-stringfrombytecount?language=objc -func (bc _ByteCountFormatterClass) StringFromByteCountCountStyle(byteCount int64, countStyle ByteCountFormatterCountStyle) string { - rv := objc.Call[string](bc, objc.Sel("stringFromByteCount:countStyle:"), byteCount, countStyle) - return rv -} - -// Converts a byte count into the specified string format without creating an NSNumber object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1408178-stringfrombytecount?language=objc -func ByteCountFormatter_StringFromByteCountCountStyle(byteCount int64, countStyle ByteCountFormatterCountStyle) string { - return ByteCountFormatterClass.StringFromByteCountCountStyle(byteCount, countStyle) -} - // Converts a byte count into a string without creating an NSNumber object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1415338-stringfrombytecount?language=objc @@ -134,19 +104,19 @@ func (b_ ByteCountFormatter) SetAdaptive(value bool) { objc.Call[objc.Void](b_, objc.Sel("setAdaptive:"), value) } -// Specify the formatting context for the formatted string. [Full Topic] +// Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1412185-formattingcontext?language=objc -func (b_ ByteCountFormatter) FormattingContext() FormattingContext { - rv := objc.Call[FormattingContext](b_, objc.Sel("formattingContext")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1409630-zeropadsfractiondigits?language=objc +func (b_ ByteCountFormatter) ZeroPadsFractionDigits() bool { + rv := objc.Call[bool](b_, objc.Sel("zeroPadsFractionDigits")) return rv } -// Specify the formatting context for the formatted string. [Full Topic] +// Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1412185-formattingcontext?language=objc -func (b_ ByteCountFormatter) SetFormattingContext(value FormattingContext) { - objc.Call[objc.Void](b_, objc.Sel("setFormattingContext:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1409630-zeropadsfractiondigits?language=objc +func (b_ ByteCountFormatter) SetZeroPadsFractionDigits(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setZeroPadsFractionDigits:"), value) } // Determines whether to include the count in the resulting formatted string. [Full Topic] @@ -164,19 +134,49 @@ func (b_ ByteCountFormatter) SetIncludesCount(value bool) { objc.Call[objc.Void](b_, objc.Sel("setIncludesCount:"), value) } -// Determines whether to include the number of bytes after the formatted string. [Full Topic] +// Determines whether to allow more natural display of some values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1411068-includesactualbytecount?language=objc -func (b_ ByteCountFormatter) IncludesActualByteCount() bool { - rv := objc.Call[bool](b_, objc.Sel("includesActualByteCount")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1408929-allowsnonnumericformatting?language=objc +func (b_ ByteCountFormatter) AllowsNonnumericFormatting() bool { + rv := objc.Call[bool](b_, objc.Sel("allowsNonnumericFormatting")) return rv } -// Determines whether to include the number of bytes after the formatted string. [Full Topic] +// Determines whether to allow more natural display of some values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1411068-includesactualbytecount?language=objc -func (b_ ByteCountFormatter) SetIncludesActualByteCount(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setIncludesActualByteCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1408929-allowsnonnumericformatting?language=objc +func (b_ ByteCountFormatter) SetAllowsNonnumericFormatting(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setAllowsNonnumericFormatting:"), value) +} + +// Specify the units that can be used in the output. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1409137-allowedunits?language=objc +func (b_ ByteCountFormatter) AllowedUnits() ByteCountFormatterUnits { + rv := objc.Call[ByteCountFormatterUnits](b_, objc.Sel("allowedUnits")) + return rv +} + +// Specify the units that can be used in the output. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1409137-allowedunits?language=objc +func (b_ ByteCountFormatter) SetAllowedUnits(value ByteCountFormatterUnits) { + objc.Call[objc.Void](b_, objc.Sel("setAllowedUnits:"), value) +} + +// Specify the formatting context for the formatted string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1412185-formattingcontext?language=objc +func (b_ ByteCountFormatter) FormattingContext() FormattingContext { + rv := objc.Call[FormattingContext](b_, objc.Sel("formattingContext")) + return rv +} + +// Specify the formatting context for the formatted string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1412185-formattingcontext?language=objc +func (b_ ByteCountFormatter) SetFormattingContext(value FormattingContext) { + objc.Call[objc.Void](b_, objc.Sel("setFormattingContext:"), value) } // Specify the number of bytes to be used for kilobytes. [Full Topic] @@ -194,34 +194,19 @@ func (b_ ByteCountFormatter) SetCountStyle(value ByteCountFormatterCountStyle) { objc.Call[objc.Void](b_, objc.Sel("setCountStyle:"), value) } -// Determines whether to allow more natural display of some values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1408929-allowsnonnumericformatting?language=objc -func (b_ ByteCountFormatter) AllowsNonnumericFormatting() bool { - rv := objc.Call[bool](b_, objc.Sel("allowsNonnumericFormatting")) - return rv -} - -// Determines whether to allow more natural display of some values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1408929-allowsnonnumericformatting?language=objc -func (b_ ByteCountFormatter) SetAllowsNonnumericFormatting(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setAllowsNonnumericFormatting:"), value) -} - -// Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation. [Full Topic] +// Determines whether to include the number of bytes after the formatted string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1409630-zeropadsfractiondigits?language=objc -func (b_ ByteCountFormatter) ZeroPadsFractionDigits() bool { - rv := objc.Call[bool](b_, objc.Sel("zeroPadsFractionDigits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1411068-includesactualbytecount?language=objc +func (b_ ByteCountFormatter) IncludesActualByteCount() bool { + rv := objc.Call[bool](b_, objc.Sel("includesActualByteCount")) return rv } -// Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation. [Full Topic] +// Determines whether to include the number of bytes after the formatted string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1409630-zeropadsfractiondigits?language=objc -func (b_ ByteCountFormatter) SetZeroPadsFractionDigits(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setZeroPadsFractionDigits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1411068-includesactualbytecount?language=objc +func (b_ ByteCountFormatter) SetIncludesActualByteCount(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setIncludesActualByteCount:"), value) } // Determines whether to include the units in the resulting formatted string. [Full Topic] @@ -238,18 +223,3 @@ func (b_ ByteCountFormatter) IncludesUnit() bool { func (b_ ByteCountFormatter) SetIncludesUnit(value bool) { objc.Call[objc.Void](b_, objc.Sel("setIncludesUnit:"), value) } - -// Specify the units that can be used in the output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1409137-allowedunits?language=objc -func (b_ ByteCountFormatter) AllowedUnits() ByteCountFormatterUnits { - rv := objc.Call[ByteCountFormatterUnits](b_, objc.Sel("allowedUnits")) - return rv -} - -// Specify the units that can be used in the output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbytecountformatter/1409137-allowedunits?language=objc -func (b_ ByteCountFormatter) SetAllowedUnits(value ByteCountFormatterUnits) { - objc.Call[objc.Void](b_, objc.Sel("setAllowedUnits:"), value) -} diff --git a/macos/foundation/cache.gen.go b/macos/foundation/cache.gen.go index 6ce67485..d29e7b3c 100644 --- a/macos/foundation/cache.gen.go +++ b/macos/foundation/cache.gen.go @@ -18,22 +18,21 @@ type _CacheClass struct { // An interface definition for the [Cache] class. type ICache interface { objc.IObject + ObjectForKey(key objc.IObject) objc.Object SetObjectForKey(obj objc.IObject, key objc.IObject) - RemoveAllObjects() RemoveObjectForKey(key objc.IObject) - ObjectForKey(key objc.IObject) objc.Object - SetObjectForKeyCost(obj objc.IObject, key objc.IObject, g uint) - TotalCostLimit() uint - SetTotalCostLimit(value uint) + RemoveAllObjects() + EvictsObjectsWithDiscardedContent() bool + SetEvictsObjectsWithDiscardedContent(value bool) CountLimit() uint SetCountLimit(value uint) Name() string SetName(value string) - EvictsObjectsWithDiscardedContent() bool - SetEvictsObjectsWithDiscardedContent(value bool) Delegate() CacheDelegateObject SetDelegate(value PCacheDelegate) SetDelegateObject(valueObject objc.IObject) + TotalCostLimit() uint + SetTotalCostLimit(value uint) } // A mutable collection you use to temporarily store transient key-value pairs that are subject to eviction when resources are low. [Full Topic] @@ -69,6 +68,14 @@ func (c_ Cache) Init() Cache { return rv } +// Returns the value associated with a given key. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1415458-objectforkey?language=objc +func (c_ Cache) ObjectForKey(key objc.IObject) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("objectForKey:"), key) + return rv +} + // Sets the value of the specified key in the cache. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1408223-setobject?language=objc @@ -76,13 +83,6 @@ func (c_ Cache) SetObjectForKey(obj objc.IObject, key objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setObject:forKey:"), obj, key) } -// Empties the cache. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1411382-removeallobjects?language=objc -func (c_ Cache) RemoveAllObjects() { - objc.Call[objc.Void](c_, objc.Sel("removeAllObjects")) -} - // Removes the value of the specified key in the cache. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1409900-removeobjectforkey?language=objc @@ -90,34 +90,26 @@ func (c_ Cache) RemoveObjectForKey(key objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("removeObjectForKey:"), key) } -// Returns the value associated with a given key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1415458-objectforkey?language=objc -func (c_ Cache) ObjectForKey(key objc.IObject) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("objectForKey:"), key) - return rv -} - -// Sets the value of the specified key in the cache, and associates the key-value pair with the specified cost. [Full Topic] +// Empties the cache. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1416399-setobject?language=objc -func (c_ Cache) SetObjectForKeyCost(obj objc.IObject, key objc.IObject, g uint) { - objc.Call[objc.Void](c_, objc.Sel("setObject:forKey:cost:"), obj, key, g) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1411382-removeallobjects?language=objc +func (c_ Cache) RemoveAllObjects() { + objc.Call[objc.Void](c_, objc.Sel("removeAllObjects")) } -// The maximum total cost that the cache can hold before it starts evicting objects. [Full Topic] +// Whether the cache will automatically evict discardable-content objects whose content has been discarded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1407672-totalcostlimit?language=objc -func (c_ Cache) TotalCostLimit() uint { - rv := objc.Call[uint](c_, objc.Sel("totalCostLimit")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1408469-evictsobjectswithdiscardedconten?language=objc +func (c_ Cache) EvictsObjectsWithDiscardedContent() bool { + rv := objc.Call[bool](c_, objc.Sel("evictsObjectsWithDiscardedContent")) return rv } -// The maximum total cost that the cache can hold before it starts evicting objects. [Full Topic] +// Whether the cache will automatically evict discardable-content objects whose content has been discarded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1407672-totalcostlimit?language=objc -func (c_ Cache) SetTotalCostLimit(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setTotalCostLimit:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1408469-evictsobjectswithdiscardedconten?language=objc +func (c_ Cache) SetEvictsObjectsWithDiscardedContent(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setEvictsObjectsWithDiscardedContent:"), value) } // The maximum number of objects the cache should hold. [Full Topic] @@ -150,21 +142,6 @@ func (c_ Cache) SetName(value string) { objc.Call[objc.Void](c_, objc.Sel("setName:"), value) } -// Whether the cache will automatically evict discardable-content objects whose content has been discarded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1408469-evictsobjectswithdiscardedconten?language=objc -func (c_ Cache) EvictsObjectsWithDiscardedContent() bool { - rv := objc.Call[bool](c_, objc.Sel("evictsObjectsWithDiscardedContent")) - return rv -} - -// Whether the cache will automatically evict discardable-content objects whose content has been discarded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1408469-evictsobjectswithdiscardedconten?language=objc -func (c_ Cache) SetEvictsObjectsWithDiscardedContent(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setEvictsObjectsWithDiscardedContent:"), value) -} - // The cache’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1413061-delegate?language=objc @@ -187,3 +164,18 @@ func (c_ Cache) SetDelegate(value PCacheDelegate) { func (c_ Cache) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), valueObject) } + +// The maximum total cost that the cache can hold before it starts evicting objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1407672-totalcostlimit?language=objc +func (c_ Cache) TotalCostLimit() uint { + rv := objc.Call[uint](c_, objc.Sel("totalCostLimit")) + return rv +} + +// The maximum total cost that the cache can hold before it starts evicting objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscache/1407672-totalcostlimit?language=objc +func (c_ Cache) SetTotalCostLimit(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setTotalCostLimit:"), value) +} diff --git a/macos/foundation/cached_url_response.gen.go b/macos/foundation/cached_url_response.gen.go index 19de410b..7b1277a5 100644 --- a/macos/foundation/cached_url_response.gen.go +++ b/macos/foundation/cached_url_response.gen.go @@ -18,10 +18,10 @@ type _CachedURLResponseClass struct { // An interface definition for the [CachedURLResponse] class. type ICachedURLResponse interface { objc.IObject - Response() URLResponse UserInfo() Dictionary - StoragePolicy() URLCacheStoragePolicy Data() []byte + Response() URLResponse + StoragePolicy() URLCacheStoragePolicy } // A cached response to a URL request. [Full Topic] @@ -51,20 +51,6 @@ func NewCachedURLResponseWithResponseData(response IURLResponse, data []byte) Ca return instance } -func (c_ CachedURLResponse) InitWithResponseDataUserInfoStoragePolicy(response IURLResponse, data []byte, userInfo Dictionary, storagePolicy URLCacheStoragePolicy) CachedURLResponse { - rv := objc.Call[CachedURLResponse](c_, objc.Sel("initWithResponse:data:userInfo:storagePolicy:"), response, data, userInfo, storagePolicy) - return rv -} - -// Creates a cached URL response object with a given server response, data, user-info dictionary, and storage policy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1411556-initwithresponse?language=objc -func NewCachedURLResponseWithResponseDataUserInfoStoragePolicy(response IURLResponse, data []byte, userInfo Dictionary, storagePolicy URLCacheStoragePolicy) CachedURLResponse { - instance := CachedURLResponseClass.Alloc().InitWithResponseDataUserInfoStoragePolicy(response, data, userInfo, storagePolicy) - instance.Autorelease() - return instance -} - func (cc _CachedURLResponseClass) Alloc() CachedURLResponse { rv := objc.Call[CachedURLResponse](cc, objc.Sel("alloc")) return rv @@ -85,14 +71,6 @@ func (c_ CachedURLResponse) Init() CachedURLResponse { return rv } -// The URL response object associated with the instance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1411077-response?language=objc -func (c_ CachedURLResponse) Response() URLResponse { - rv := objc.Call[URLResponse](c_, objc.Sel("response")) - return rv -} - // The cached response’s user info dictionary. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1411900-userinfo?language=objc @@ -101,14 +79,6 @@ func (c_ CachedURLResponse) UserInfo() Dictionary { return rv } -// The cached response’s storage policy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1412269-storagepolicy?language=objc -func (c_ CachedURLResponse) StoragePolicy() URLCacheStoragePolicy { - rv := objc.Call[URLCacheStoragePolicy](c_, objc.Sel("storagePolicy")) - return rv -} - // The cached response’s data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1414011-data?language=objc @@ -116,3 +86,19 @@ func (c_ CachedURLResponse) Data() []byte { rv := objc.Call[[]byte](c_, objc.Sel("data")) return rv } + +// The URL response object associated with the instance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1411077-response?language=objc +func (c_ CachedURLResponse) Response() URLResponse { + rv := objc.Call[URLResponse](c_, objc.Sel("response")) + return rv +} + +// The cached response’s storage policy. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1412269-storagepolicy?language=objc +func (c_ CachedURLResponse) StoragePolicy() URLCacheStoragePolicy { + rv := objc.Call[URLCacheStoragePolicy](c_, objc.Sel("storagePolicy")) + return rv +} diff --git a/macos/foundation/calendar.gen.go b/macos/foundation/calendar.gen.go index c4de423b..2ffb6242 100644 --- a/macos/foundation/calendar.gen.go +++ b/macos/foundation/calendar.gen.go @@ -18,71 +18,63 @@ type _CalendarClass struct { // An interface definition for the [Calendar] class. type ICalendar interface { objc.IObject + ComponentsInTimeZoneFromDate(timezone ITimeZone, date IDate) DateComponents + DateByAddingUnitValueToDateOptions(unit CalendarUnit, value int, date IDate, options CalendarOptions) Date + DateMatchesComponents(date IDate, components IDateComponents) bool + GetHourMinuteSecondNanosecondFromDate(hourValuePointer *int, minuteValuePointer *int, secondValuePointer *int, nanosecondValuePointer *int, date IDate) + IsDateInToday(date IDate) bool + DateFromComponents(comps IDateComponents) Date + MaximumRangeOfUnit(unit CalendarUnit) Range + DateByAddingComponentsToDateOptions(comps IDateComponents, date IDate, opts CalendarOptions) Date + OrdinalityOfUnitInUnitForDate(smaller CalendarUnit, larger CalendarUnit, date IDate) uint + DateBySettingUnitValueOfDateOptions(unit CalendarUnit, v int, date IDate, opts CalendarOptions) Date + RangeOfUnitInUnitForDate(smaller CalendarUnit, larger CalendarUnit, date IDate) Range + NextDateAfterDateMatchingUnitValueOptions(date IDate, unit CalendarUnit, value int, options CalendarOptions) Date + ComponentFromDate(unit CalendarUnit, date IDate) int + RangeOfWeekendStartDateIntervalContainingDate(datep unsafe.Pointer, tip *TimeInterval, date IDate) bool IsDateInWeekend(date IDate) bool - EnumerateDatesStartingAfterDateMatchingComponentsOptionsUsingBlock(start IDate, comps IDateComponents, opts CalendarOptions, block func(date Date, exactMatch bool, stop *bool)) + ComponentsFromDate(unitFlags CalendarUnit, date IDate) DateComponents StartOfDayForDate(date IDate) Date + GetEraYearMonthDayFromDate(eraValuePointer *int, yearValuePointer *int, monthValuePointer *int, dayValuePointer *int, date IDate) + EnumerateDatesStartingAfterDateMatchingComponentsOptionsUsingBlock(start IDate, comps IDateComponents, opts CalendarOptions, block func(date Date, exactMatch bool, stop *bool)) InitWithCalendarIdentifier(ident CalendarIdentifier) objc.Object - DateByAddingComponentsToDateOptions(comps IDateComponents, date IDate, opts CalendarOptions) Date NextWeekendStartDateIntervalOptionsAfterDate(datep unsafe.Pointer, tip *TimeInterval, options CalendarOptions, date IDate) bool - RangeOfUnitStartDateIntervalForDate(unit CalendarUnit, datep unsafe.Pointer, tip *TimeInterval, date IDate) bool - CompareDateToDateToUnitGranularity(date1 IDate, date2 IDate, unit CalendarUnit) ComparisonResult - IsDateInToday(date IDate) bool - OrdinalityOfUnitInUnitForDate(smaller CalendarUnit, larger CalendarUnit, date IDate) uint - DateMatchesComponents(date IDate, components IDateComponents) bool - ComponentsFromDateToDateOptions(unitFlags CalendarUnit, startingDate IDate, resultDate IDate, opts CalendarOptions) DateComponents - MaximumRangeOfUnit(unit CalendarUnit) Range MinimumRangeOfUnit(unit CalendarUnit) Range - ComponentsFromDateComponentsToDateComponentsOptions(unitFlags CalendarUnit, startingDateComp IDateComponents, resultDateComp IDateComponents, options CalendarOptions) DateComponents - IsDateInYesterday(date IDate) bool - ComponentsFromDate(unitFlags CalendarUnit, date IDate) DateComponents - GetHourMinuteSecondNanosecondFromDate(hourValuePointer *int, minuteValuePointer *int, secondValuePointer *int, nanosecondValuePointer *int, date IDate) - DateFromComponents(comps IDateComponents) Date - IsDateInTomorrow(date IDate) bool - GetEraYearForWeekOfYearWeekOfYearWeekdayFromDate(eraValuePointer *int, yearValuePointer *int, weekValuePointer *int, weekdayValuePointer *int, date IDate) - GetEraYearMonthDayFromDate(eraValuePointer *int, yearValuePointer *int, monthValuePointer *int, dayValuePointer *int, date IDate) - RangeOfUnitInUnitForDate(smaller CalendarUnit, larger CalendarUnit, date IDate) Range - DateWithEraYearForWeekOfYearWeekOfYearWeekdayHourMinuteSecondNanosecond(eraValue int, yearValue int, weekValue int, weekdayValue int, hourValue int, minuteValue int, secondValue int, nanosecondValue int) Date IsDateInSameDayAsDate(date1 IDate, date2 IDate) bool - ComponentsInTimeZoneFromDate(timezone ITimeZone, date IDate) DateComponents DateWithEraYearMonthDayHourMinuteSecondNanosecond(eraValue int, yearValue int, monthValue int, dayValue int, hourValue int, minuteValue int, secondValue int, nanosecondValue int) Date - DateBySettingUnitValueOfDateOptions(unit CalendarUnit, v int, date IDate, opts CalendarOptions) Date - DateByAddingUnitValueToDateOptions(unit CalendarUnit, value int, date IDate, options CalendarOptions) Date - RangeOfWeekendStartDateIntervalContainingDate(datep unsafe.Pointer, tip *TimeInterval, date IDate) bool - ComponentFromDate(unit CalendarUnit, date IDate) int - NextDateAfterDateMatchingHourMinuteSecondOptions(date IDate, hourValue int, minuteValue int, secondValue int, options CalendarOptions) Date + IsDateInTomorrow(date IDate) bool DateBySettingHourMinuteSecondOfDateOptions(h int, m int, s int, date IDate, opts CalendarOptions) Date - NextDateAfterDateMatchingComponentsOptions(date IDate, comps IDateComponents, options CalendarOptions) Date - NextDateAfterDateMatchingUnitValueOptions(date IDate, unit CalendarUnit, value int, options CalendarOptions) Date - IsDateEqualToDateToUnitGranularity(date1 IDate, date2 IDate, unit CalendarUnit) bool - EraSymbols() []string + IsDateInYesterday(date IDate) bool + CompareDateToDateToUnitGranularity(date1 IDate, date2 IDate, unit CalendarUnit) ComparisonResult + FirstWeekday() uint + SetFirstWeekday(value uint) VeryShortStandaloneMonthSymbols() []string - VeryShortMonthSymbols() []string - StandaloneWeekdaySymbols() []string - CalendarIdentifier() CalendarIdentifier - ShortStandaloneMonthSymbols() []string + ShortStandaloneWeekdaySymbols() []string + WeekdaySymbols() []string + PMSymbol() string + StandaloneQuarterSymbols() []string + MonthSymbols() []string + ShortWeekdaySymbols() []string MinimumDaysInFirstWeek() uint SetMinimumDaysInFirstWeek(value uint) - ShortMonthSymbols() []string - ShortQuarterSymbols() []string - VeryShortStandaloneWeekdaySymbols() []string + CalendarIdentifier() CalendarIdentifier Locale() Locale SetLocale(value ILocale) - FirstWeekday() uint - SetFirstWeekday(value uint) - StandaloneQuarterSymbols() []string + EraSymbols() []string + StandaloneWeekdaySymbols() []string + TimeZone() TimeZone + SetTimeZone(value ITimeZone) + VeryShortMonthSymbols() []string QuarterSymbols() []string - ShortStandaloneWeekdaySymbols() []string - PMSymbol() string - WeekdaySymbols() []string - ShortWeekdaySymbols() []string - StandaloneMonthSymbols() []string - LongEraSymbols() []string ShortStandaloneQuarterSymbols() []string - MonthSymbols() []string AMSymbol() string + VeryShortStandaloneWeekdaySymbols() []string + ShortStandaloneMonthSymbols() []string + LongEraSymbols() []string + ShortMonthSymbols() []string VeryShortWeekdaySymbols() []string - TimeZone() TimeZone - SetTimeZone(value ITimeZone) + ShortQuarterSymbols() []string + StandaloneMonthSymbols() []string } // A definition of the relationships between calendar units and absolute points in time, providing features for calculation and comparison of dates. [Full Topic] @@ -118,74 +110,81 @@ func (c_ Calendar) Init() Calendar { return rv } -// Indicates whether a given date falls within a weekend period, as defined by the calendar and the calendar's locale. [Full Topic] +// Returns all the date components of a date, as if in a given time zone (instead of the receiving calendar’s time zone). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412175-isdateinweekend?language=objc -func (c_ Calendar) IsDateInWeekend(date IDate) bool { - rv := objc.Call[bool](c_, objc.Sel("isDateInWeekend:"), date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413194-componentsintimezone?language=objc +func (c_ Calendar) ComponentsInTimeZoneFromDate(timezone ITimeZone, date IDate) DateComponents { + rv := objc.Call[DateComponents](c_, objc.Sel("componentsInTimeZone:fromDate:"), timezone, date) return rv } -// Computes the dates that match (or most closely match) a given set of components, and calls the block once for each of them, until the enumeration is stopped. [Full Topic] +// Returns a date representing the absolute time calculated by adding the value of a given component to a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413938-enumeratedatesstartingafterdate?language=objc -func (c_ Calendar) EnumerateDatesStartingAfterDateMatchingComponentsOptionsUsingBlock(start IDate, comps IDateComponents, opts CalendarOptions, block func(date Date, exactMatch bool, stop *bool)) { - objc.Call[objc.Void](c_, objc.Sel("enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:"), start, comps, opts, block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407989-datebyaddingunit?language=objc +func (c_ Calendar) DateByAddingUnitValueToDateOptions(unit CalendarUnit, value int, date IDate, options CalendarOptions) Date { + rv := objc.Call[Date](c_, objc.Sel("dateByAddingUnit:value:toDate:options:"), unit, value, date, options) + return rv } -// Returns the first moment of a given date as a date instance. [Full Topic] +// Returns whether a given date matches all of the given date components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1417161-startofdayfordate?language=objc -func (c_ Calendar) StartOfDayForDate(date IDate) Date { - rv := objc.Call[Date](c_, objc.Sel("startOfDayForDate:"), date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407954-date?language=objc +func (c_ Calendar) DateMatchesComponents(date IDate, components IDateComponents) bool { + rv := objc.Call[bool](c_, objc.Sel("date:matchesComponents:"), date, components) return rv } -// Initializes a calendar according to a given identifier. [Full Topic] +// Returns by reference the hour, minute, second, and nanosecond component values for a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1415991-initwithcalendaridentifier?language=objc -func (c_ Calendar) InitWithCalendarIdentifier(ident CalendarIdentifier) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("initWithCalendarIdentifier:"), ident) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1415012-gethour?language=objc +func (c_ Calendar) GetHourMinuteSecondNanosecondFromDate(hourValuePointer *int, minuteValuePointer *int, secondValuePointer *int, nanosecondValuePointer *int, date IDate) { + objc.Call[objc.Void](c_, objc.Sel("getHour:minute:second:nanosecond:fromDate:"), hourValuePointer, minuteValuePointer, secondValuePointer, nanosecondValuePointer, date) } -// Returns a date representing the absolute time calculated by adding given components to a given date. [Full Topic] +// Indicates whether the given date is in “today.” [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409577-datebyaddingcomponents?language=objc -func (c_ Calendar) DateByAddingComponentsToDateOptions(comps IDateComponents, date IDate, opts CalendarOptions) Date { - rv := objc.Call[Date](c_, objc.Sel("dateByAddingComponents:toDate:options:"), comps, date, opts) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1417149-isdateintoday?language=objc +func (c_ Calendar) IsDateInToday(date IDate) bool { + rv := objc.Call[bool](c_, objc.Sel("isDateInToday:"), date) return rv } -// Returns by reference the starting date and time interval range of the next weekend period after a given date. [Full Topic] +// Returns a date representing the absolute time calculated from given components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409905-nextweekendstartdate?language=objc -func (c_ Calendar) NextWeekendStartDateIntervalOptionsAfterDate(datep unsafe.Pointer, tip *TimeInterval, options CalendarOptions, date IDate) bool { - rv := objc.Call[bool](c_, objc.Sel("nextWeekendStartDate:interval:options:afterDate:"), datep, tip, options, date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407609-datefromcomponents?language=objc +func (c_ Calendar) DateFromComponents(comps IDateComponents) Date { + rv := objc.Call[Date](c_, objc.Sel("dateFromComponents:"), comps) return rv } -// Returns by reference the starting time and duration of a given calendar unit that contains a given date. [Full Topic] +// Creates a new calendar specified by a given identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408013-rangeofunit?language=objc -func (c_ Calendar) RangeOfUnitStartDateIntervalForDate(unit CalendarUnit, datep unsafe.Pointer, tip *TimeInterval, date IDate) bool { - rv := objc.Call[bool](c_, objc.Sel("rangeOfUnit:startDate:interval:forDate:"), unit, datep, tip, date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412400-calendarwithidentifier?language=objc +func (cc _CalendarClass) CalendarWithIdentifier(calendarIdentifierConstant CalendarIdentifier) Calendar { + rv := objc.Call[Calendar](cc, objc.Sel("calendarWithIdentifier:"), calendarIdentifierConstant) return rv } -// Indicates the ordering of two given dates based on their components down to a given unit granularity. [Full Topic] +// Creates a new calendar specified by a given identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1415661-comparedate?language=objc -func (c_ Calendar) CompareDateToDateToUnitGranularity(date1 IDate, date2 IDate, unit CalendarUnit) ComparisonResult { - rv := objc.Call[ComparisonResult](c_, objc.Sel("compareDate:toDate:toUnitGranularity:"), date1, date2, unit) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412400-calendarwithidentifier?language=objc +func Calendar_CalendarWithIdentifier(calendarIdentifierConstant CalendarIdentifier) Calendar { + return CalendarClass.CalendarWithIdentifier(calendarIdentifierConstant) +} + +// Returns the maximum range limits of the values that a given unit can take on. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1414251-maximumrangeofunit?language=objc +func (c_ Calendar) MaximumRangeOfUnit(unit CalendarUnit) Range { + rv := objc.Call[Range](c_, objc.Sel("maximumRangeOfUnit:"), unit) return rv } -// Indicates whether the given date is in “today.” [Full Topic] +// Returns a date representing the absolute time calculated by adding given components to a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1417149-isdateintoday?language=objc -func (c_ Calendar) IsDateInToday(date IDate) bool { - rv := objc.Call[bool](c_, objc.Sel("isDateInToday:"), date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409577-datebyaddingcomponents?language=objc +func (c_ Calendar) DateByAddingComponentsToDateOptions(comps IDateComponents, date IDate, opts CalendarOptions) Date { + rv := objc.Call[Date](c_, objc.Sel("dateByAddingComponents:toDate:options:"), comps, date, opts) return rv } @@ -197,51 +196,51 @@ func (c_ Calendar) OrdinalityOfUnitInUnitForDate(smaller CalendarUnit, larger Ca return rv } -// Returns whether a given date matches all of the given date components. [Full Topic] +// Returns a new date representing the date calculated by setting a specific component of a given date to a given value, while trying to keep lower components the same. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407954-date?language=objc -func (c_ Calendar) DateMatchesComponents(date IDate, components IDateComponents) bool { - rv := objc.Call[bool](c_, objc.Sel("date:matchesComponents:"), date, components) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1417915-datebysettingunit?language=objc +func (c_ Calendar) DateBySettingUnitValueOfDateOptions(unit CalendarUnit, v int, date IDate, opts CalendarOptions) Date { + rv := objc.Call[Date](c_, objc.Sel("dateBySettingUnit:value:ofDate:options:"), unit, v, date, opts) return rv } -// Returns the difference between two supplied dates as date components. [Full Topic] +// Returns the range of absolute time values that a smaller calendar unit (such as a day) can take on in a larger calendar unit (such as a month) that includes a specified absolute time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407925-components?language=objc -func (c_ Calendar) ComponentsFromDateToDateOptions(unitFlags CalendarUnit, startingDate IDate, resultDate IDate, opts CalendarOptions) DateComponents { - rv := objc.Call[DateComponents](c_, objc.Sel("components:fromDate:toDate:options:"), unitFlags, startingDate, resultDate, opts) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1418344-rangeofunit?language=objc +func (c_ Calendar) RangeOfUnitInUnitForDate(smaller CalendarUnit, larger CalendarUnit, date IDate) Range { + rv := objc.Call[Range](c_, objc.Sel("rangeOfUnit:inUnit:forDate:"), smaller, larger, date) return rv } -// Returns the maximum range limits of the values that a given unit can take on. [Full Topic] +// Returns the next date after a given date matching the given calendar unit value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1414251-maximumrangeofunit?language=objc -func (c_ Calendar) MaximumRangeOfUnit(unit CalendarUnit) Range { - rv := objc.Call[Range](c_, objc.Sel("maximumRangeOfUnit:"), unit) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1417170-nextdateafterdate?language=objc +func (c_ Calendar) NextDateAfterDateMatchingUnitValueOptions(date IDate, unit CalendarUnit, value int, options CalendarOptions) Date { + rv := objc.Call[Date](c_, objc.Sel("nextDateAfterDate:matchingUnit:value:options:"), date, unit, value, options) return rv } -// Returns the minimum range limits of the values that a given unit can take on. [Full Topic] +// Returns the specified date component from a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413638-minimumrangeofunit?language=objc -func (c_ Calendar) MinimumRangeOfUnit(unit CalendarUnit) Range { - rv := objc.Call[Range](c_, objc.Sel("minimumRangeOfUnit:"), unit) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1416505-component?language=objc +func (c_ Calendar) ComponentFromDate(unit CalendarUnit, date IDate) int { + rv := objc.Call[int](c_, objc.Sel("component:fromDate:"), unit, date) return rv } -// Returns the difference between start and end dates given as date components. [Full Topic] +// Returns whether a given date falls within a weekend period, and if so, returns by reference the start date and time interval of the weekend range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1411297-components?language=objc -func (c_ Calendar) ComponentsFromDateComponentsToDateComponentsOptions(unitFlags CalendarUnit, startingDateComp IDateComponents, resultDateComp IDateComponents, options CalendarOptions) DateComponents { - rv := objc.Call[DateComponents](c_, objc.Sel("components:fromDateComponents:toDateComponents:options:"), unitFlags, startingDateComp, resultDateComp, options) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413286-rangeofweekendstartdate?language=objc +func (c_ Calendar) RangeOfWeekendStartDateIntervalContainingDate(datep unsafe.Pointer, tip *TimeInterval, date IDate) bool { + rv := objc.Call[bool](c_, objc.Sel("rangeOfWeekendStartDate:interval:containingDate:"), datep, tip, date) return rv } -// Indicates whether the given date is in “yesterday.” [Full Topic] +// Indicates whether a given date falls within a weekend period, as defined by the calendar and the calendar's locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409356-isdateinyesterday?language=objc -func (c_ Calendar) IsDateInYesterday(date IDate) bool { - rv := objc.Call[bool](c_, objc.Sel("isDateInYesterday:"), date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412175-isdateinweekend?language=objc +func (c_ Calendar) IsDateInWeekend(date IDate) bool { + rv := objc.Call[bool](c_, objc.Sel("isDateInWeekend:"), date) return rv } @@ -253,56 +252,49 @@ func (c_ Calendar) ComponentsFromDate(unitFlags CalendarUnit, date IDate) DateCo return rv } -// Returns by reference the hour, minute, second, and nanosecond component values for a given date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1415012-gethour?language=objc -func (c_ Calendar) GetHourMinuteSecondNanosecondFromDate(hourValuePointer *int, minuteValuePointer *int, secondValuePointer *int, nanosecondValuePointer *int, date IDate) { - objc.Call[objc.Void](c_, objc.Sel("getHour:minute:second:nanosecond:fromDate:"), hourValuePointer, minuteValuePointer, secondValuePointer, nanosecondValuePointer, date) -} - -// Returns a date representing the absolute time calculated from given components. [Full Topic] +// Returns the first moment of a given date as a date instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407609-datefromcomponents?language=objc -func (c_ Calendar) DateFromComponents(comps IDateComponents) Date { - rv := objc.Call[Date](c_, objc.Sel("dateFromComponents:"), comps) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1417161-startofdayfordate?language=objc +func (c_ Calendar) StartOfDayForDate(date IDate) Date { + rv := objc.Call[Date](c_, objc.Sel("startOfDayForDate:"), date) return rv } -// Indicates whether the given date is in “tomorrow.” [Full Topic] +// Returns by reference the era, year, week of year, and weekday component values for a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1410279-isdateintomorrow?language=objc -func (c_ Calendar) IsDateInTomorrow(date IDate) bool { - rv := objc.Call[bool](c_, objc.Sel("isDateInTomorrow:"), date) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1418143-getera?language=objc +func (c_ Calendar) GetEraYearMonthDayFromDate(eraValuePointer *int, yearValuePointer *int, monthValuePointer *int, dayValuePointer *int, date IDate) { + objc.Call[objc.Void](c_, objc.Sel("getEra:year:month:day:fromDate:"), eraValuePointer, yearValuePointer, monthValuePointer, dayValuePointer, date) } -// Returns by reference the era, year, week of year, and weekday component values for a given date. [Full Topic] +// Computes the dates that match (or most closely match) a given set of components, and calls the block once for each of them, until the enumeration is stopped. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1410912-getera?language=objc -func (c_ Calendar) GetEraYearForWeekOfYearWeekOfYearWeekdayFromDate(eraValuePointer *int, yearValuePointer *int, weekValuePointer *int, weekdayValuePointer *int, date IDate) { - objc.Call[objc.Void](c_, objc.Sel("getEra:yearForWeekOfYear:weekOfYear:weekday:fromDate:"), eraValuePointer, yearValuePointer, weekValuePointer, weekdayValuePointer, date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413938-enumeratedatesstartingafterdate?language=objc +func (c_ Calendar) EnumerateDatesStartingAfterDateMatchingComponentsOptionsUsingBlock(start IDate, comps IDateComponents, opts CalendarOptions, block func(date Date, exactMatch bool, stop *bool)) { + objc.Call[objc.Void](c_, objc.Sel("enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:"), start, comps, opts, block) } -// Returns by reference the era, year, week of year, and weekday component values for a given date. [Full Topic] +// Initializes a calendar according to a given identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1418143-getera?language=objc -func (c_ Calendar) GetEraYearMonthDayFromDate(eraValuePointer *int, yearValuePointer *int, monthValuePointer *int, dayValuePointer *int, date IDate) { - objc.Call[objc.Void](c_, objc.Sel("getEra:year:month:day:fromDate:"), eraValuePointer, yearValuePointer, monthValuePointer, dayValuePointer, date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1415991-initwithcalendaridentifier?language=objc +func (c_ Calendar) InitWithCalendarIdentifier(ident CalendarIdentifier) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("initWithCalendarIdentifier:"), ident) + return rv } -// Returns the range of absolute time values that a smaller calendar unit (such as a day) can take on in a larger calendar unit (such as a month) that includes a specified absolute time. [Full Topic] +// Returns by reference the starting date and time interval range of the next weekend period after a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1418344-rangeofunit?language=objc -func (c_ Calendar) RangeOfUnitInUnitForDate(smaller CalendarUnit, larger CalendarUnit, date IDate) Range { - rv := objc.Call[Range](c_, objc.Sel("rangeOfUnit:inUnit:forDate:"), smaller, larger, date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409905-nextweekendstartdate?language=objc +func (c_ Calendar) NextWeekendStartDateIntervalOptionsAfterDate(datep unsafe.Pointer, tip *TimeInterval, options CalendarOptions, date IDate) bool { + rv := objc.Call[bool](c_, objc.Sel("nextWeekendStartDate:interval:options:afterDate:"), datep, tip, options, date) return rv } -// Returns a new date created with the given components base on a week-of-year value. [Full Topic] +// Returns the minimum range limits of the values that a given unit can take on. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413628-datewithera?language=objc -func (c_ Calendar) DateWithEraYearForWeekOfYearWeekOfYearWeekdayHourMinuteSecondNanosecond(eraValue int, yearValue int, weekValue int, weekdayValue int, hourValue int, minuteValue int, secondValue int, nanosecondValue int) Date { - rv := objc.Call[Date](c_, objc.Sel("dateWithEra:yearForWeekOfYear:weekOfYear:weekday:hour:minute:second:nanosecond:"), eraValue, yearValue, weekValue, weekdayValue, hourValue, minuteValue, secondValue, nanosecondValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413638-minimumrangeofunit?language=objc +func (c_ Calendar) MinimumRangeOfUnit(unit CalendarUnit) Range { + rv := objc.Call[Range](c_, objc.Sel("minimumRangeOfUnit:"), unit) return rv } @@ -314,14 +306,6 @@ func (c_ Calendar) IsDateInSameDayAsDate(date1 IDate, date2 IDate) bool { return rv } -// Returns all the date components of a date, as if in a given time zone (instead of the receiving calendar’s time zone). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413194-componentsintimezone?language=objc -func (c_ Calendar) ComponentsInTimeZoneFromDate(timezone ITimeZone, date IDate) DateComponents { - rv := objc.Call[DateComponents](c_, objc.Sel("componentsInTimeZone:fromDate:"), timezone, date) - return rv -} - // Returns a date created with the given components. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1415254-datewithera?language=objc @@ -330,43 +314,11 @@ func (c_ Calendar) DateWithEraYearMonthDayHourMinuteSecondNanosecond(eraValue in return rv } -// Returns a new date representing the date calculated by setting a specific component of a given date to a given value, while trying to keep lower components the same. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1417915-datebysettingunit?language=objc -func (c_ Calendar) DateBySettingUnitValueOfDateOptions(unit CalendarUnit, v int, date IDate, opts CalendarOptions) Date { - rv := objc.Call[Date](c_, objc.Sel("dateBySettingUnit:value:ofDate:options:"), unit, v, date, opts) - return rv -} - -// Returns a date representing the absolute time calculated by adding the value of a given component to a given date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407989-datebyaddingunit?language=objc -func (c_ Calendar) DateByAddingUnitValueToDateOptions(unit CalendarUnit, value int, date IDate, options CalendarOptions) Date { - rv := objc.Call[Date](c_, objc.Sel("dateByAddingUnit:value:toDate:options:"), unit, value, date, options) - return rv -} - -// Returns whether a given date falls within a weekend period, and if so, returns by reference the start date and time interval of the weekend range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413286-rangeofweekendstartdate?language=objc -func (c_ Calendar) RangeOfWeekendStartDateIntervalContainingDate(datep unsafe.Pointer, tip *TimeInterval, date IDate) bool { - rv := objc.Call[bool](c_, objc.Sel("rangeOfWeekendStartDate:interval:containingDate:"), datep, tip, date) - return rv -} - -// Returns the specified date component from a given date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1416505-component?language=objc -func (c_ Calendar) ComponentFromDate(unit CalendarUnit, date IDate) int { - rv := objc.Call[int](c_, objc.Sel("component:fromDate:"), unit, date) - return rv -} - -// Returns the next date after a given date that matches the given hour, minute, and second, component values. [Full Topic] +// Indicates whether the given date is in “tomorrow.” [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1416814-nextdateafterdate?language=objc -func (c_ Calendar) NextDateAfterDateMatchingHourMinuteSecondOptions(date IDate, hourValue int, minuteValue int, secondValue int, options CalendarOptions) Date { - rv := objc.Call[Date](c_, objc.Sel("nextDateAfterDate:matchingHour:minute:second:options:"), date, hourValue, minuteValue, secondValue, options) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1410279-isdateintomorrow?language=objc +func (c_ Calendar) IsDateInTomorrow(date IDate) bool { + rv := objc.Call[bool](c_, objc.Sel("isDateInTomorrow:"), date) return rv } @@ -378,90 +330,90 @@ func (c_ Calendar) DateBySettingHourMinuteSecondOfDateOptions(h int, m int, s in return rv } -// Creates a new calendar specified by a given identifier. [Full Topic] +// Indicates whether the given date is in “yesterday.” [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412400-calendarwithidentifier?language=objc -func (cc _CalendarClass) CalendarWithIdentifier(calendarIdentifierConstant CalendarIdentifier) Calendar { - rv := objc.Call[Calendar](cc, objc.Sel("calendarWithIdentifier:"), calendarIdentifierConstant) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409356-isdateinyesterday?language=objc +func (c_ Calendar) IsDateInYesterday(date IDate) bool { + rv := objc.Call[bool](c_, objc.Sel("isDateInYesterday:"), date) return rv } -// Creates a new calendar specified by a given identifier. [Full Topic] +// Indicates the ordering of two given dates based on their components down to a given unit granularity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412400-calendarwithidentifier?language=objc -func Calendar_CalendarWithIdentifier(calendarIdentifierConstant CalendarIdentifier) Calendar { - return CalendarClass.CalendarWithIdentifier(calendarIdentifierConstant) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1415661-comparedate?language=objc +func (c_ Calendar) CompareDateToDateToUnitGranularity(date1 IDate, date2 IDate, unit CalendarUnit) ComparisonResult { + rv := objc.Call[ComparisonResult](c_, objc.Sel("compareDate:toDate:toUnitGranularity:"), date1, date2, unit) + return rv } -// Returns the next date after a given date matching the given components. [Full Topic] +// The index of the first weekday of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1416165-nextdateafterdate?language=objc -func (c_ Calendar) NextDateAfterDateMatchingComponentsOptions(date IDate, comps IDateComponents, options CalendarOptions) Date { - rv := objc.Call[Date](c_, objc.Sel("nextDateAfterDate:matchingComponents:options:"), date, comps, options) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408310-firstweekday?language=objc +func (c_ Calendar) FirstWeekday() uint { + rv := objc.Call[uint](c_, objc.Sel("firstWeekday")) return rv } -// Returns the next date after a given date matching the given calendar unit value. [Full Topic] +// The index of the first weekday of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1417170-nextdateafterdate?language=objc -func (c_ Calendar) NextDateAfterDateMatchingUnitValueOptions(date IDate, unit CalendarUnit, value int, options CalendarOptions) Date { - rv := objc.Call[Date](c_, objc.Sel("nextDateAfterDate:matchingUnit:value:options:"), date, unit, value, options) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408310-firstweekday?language=objc +func (c_ Calendar) SetFirstWeekday(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setFirstWeekday:"), value) } -// Indicates whether two dates are equal to a given unit of granularity. [Full Topic] +// A list of very short month symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1411431-isdate?language=objc -func (c_ Calendar) IsDateEqualToDateToUnitGranularity(date1 IDate, date2 IDate, unit CalendarUnit) bool { - rv := objc.Call[bool](c_, objc.Sel("isDate:equalToDate:toUnitGranularity:"), date1, date2, unit) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408035-veryshortstandalonemonthsymbols?language=objc +func (c_ Calendar) VeryShortStandaloneMonthSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("veryShortStandaloneMonthSymbols")) return rv } -// A list of era symbols for this calendar. [Full Topic] +// A list of short standalone weekday symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1415038-erasymbols?language=objc -func (c_ Calendar) EraSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("eraSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413871-shortstandaloneweekdaysymbols?language=objc +func (c_ Calendar) ShortStandaloneWeekdaySymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("shortStandaloneWeekdaySymbols")) return rv } -// A list of very short month symbols for this calendar. [Full Topic] +// A list of weekdays in this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408035-veryshortstandalonemonthsymbols?language=objc -func (c_ Calendar) VeryShortStandaloneMonthSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("veryShortStandaloneMonthSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412939-weekdaysymbols?language=objc +func (c_ Calendar) WeekdaySymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("weekdaySymbols")) return rv } -// A list of very short month symbols for this calendar. [Full Topic] +// The symbol used to represent “PM” for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412779-veryshortmonthsymbols?language=objc -func (c_ Calendar) VeryShortMonthSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("veryShortMonthSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1416343-pmsymbol?language=objc +func (c_ Calendar) PMSymbol() string { + rv := objc.Call[string](c_, objc.Sel("PMSymbol")) return rv } -// A list of standalone weekday symbols for this calendar. [Full Topic] +// A list of standalone quarter symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1411219-standaloneweekdaysymbols?language=objc -func (c_ Calendar) StandaloneWeekdaySymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("standaloneWeekdaySymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407159-standalonequartersymbols?language=objc +func (c_ Calendar) StandaloneQuarterSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("standaloneQuarterSymbols")) return rv } -// An identifier for the calendar. [Full Topic] +// A list of month symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408268-calendaridentifier?language=objc -func (c_ Calendar) CalendarIdentifier() CalendarIdentifier { - rv := objc.Call[CalendarIdentifier](c_, objc.Sel("calendarIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1414872-monthsymbols?language=objc +func (c_ Calendar) MonthSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("monthSymbols")) return rv } -// A list of short standalone month symbols for this calendar. [Full Topic] +// A list of shorter-named weekdays in this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1418180-shortstandalonemonthsymbols?language=objc -func (c_ Calendar) ShortStandaloneMonthSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("shortStandaloneMonthSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407268-shortweekdaysymbols?language=objc +func (c_ Calendar) ShortWeekdaySymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("shortWeekdaySymbols")) return rv } @@ -480,42 +432,26 @@ func (c_ Calendar) SetMinimumDaysInFirstWeek(value uint) { objc.Call[objc.Void](c_, objc.Sel("setMinimumDaysInFirstWeek:"), value) } -// A list of short month symbols for this calendar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408952-shortmonthsymbols?language=objc -func (c_ Calendar) ShortMonthSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("shortMonthSymbols")) - return rv -} - -// A list of short quarter symbols for this calendar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1414864-shortquartersymbols?language=objc -func (c_ Calendar) ShortQuarterSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("shortQuarterSymbols")) - return rv -} - -// A calendar that tracks changes to user’s preferred calendar. [Full Topic] +// The user’s current calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413771-autoupdatingcurrentcalendar?language=objc -func (cc _CalendarClass) AutoupdatingCurrentCalendar() Calendar { - rv := objc.Call[Calendar](cc, objc.Sel("autoupdatingCurrentCalendar")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408501-currentcalendar?language=objc +func (cc _CalendarClass) CurrentCalendar() Calendar { + rv := objc.Call[Calendar](cc, objc.Sel("currentCalendar")) return rv } -// A calendar that tracks changes to user’s preferred calendar. [Full Topic] +// The user’s current calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413771-autoupdatingcurrentcalendar?language=objc -func Calendar_AutoupdatingCurrentCalendar() Calendar { - return CalendarClass.AutoupdatingCurrentCalendar() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408501-currentcalendar?language=objc +func Calendar_CurrentCalendar() Calendar { + return CalendarClass.CurrentCalendar() } -// A list of very short standalone weekday symbols for this calendar. [Full Topic] +// An identifier for the calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1418273-veryshortstandaloneweekdaysymbol?language=objc -func (c_ Calendar) VeryShortStandaloneWeekdaySymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("veryShortStandaloneWeekdaySymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408268-calendaridentifier?language=objc +func (c_ Calendar) CalendarIdentifier() CalendarIdentifier { + rv := objc.Call[CalendarIdentifier](c_, objc.Sel("calendarIdentifier")) return rv } @@ -534,121 +470,113 @@ func (c_ Calendar) SetLocale(value ILocale) { objc.Call[objc.Void](c_, objc.Sel("setLocale:"), value) } -// The index of the first weekday of the receiver. [Full Topic] +// A list of era symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408310-firstweekday?language=objc -func (c_ Calendar) FirstWeekday() uint { - rv := objc.Call[uint](c_, objc.Sel("firstWeekday")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1415038-erasymbols?language=objc +func (c_ Calendar) EraSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("eraSymbols")) return rv } -// The index of the first weekday of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408310-firstweekday?language=objc -func (c_ Calendar) SetFirstWeekday(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setFirstWeekday:"), value) -} - -// A list of standalone quarter symbols for this calendar. [Full Topic] +// A list of standalone weekday symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407159-standalonequartersymbols?language=objc -func (c_ Calendar) StandaloneQuarterSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("standaloneQuarterSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1411219-standaloneweekdaysymbols?language=objc +func (c_ Calendar) StandaloneWeekdaySymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("standaloneWeekdaySymbols")) return rv } -// A list of quarter symbols for this calendar. [Full Topic] +// The time zone for the calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1411517-quartersymbols?language=objc -func (c_ Calendar) QuarterSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("quarterSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409969-timezone?language=objc +func (c_ Calendar) TimeZone() TimeZone { + rv := objc.Call[TimeZone](c_, objc.Sel("timeZone")) return rv } -// A list of short standalone weekday symbols for this calendar. [Full Topic] +// The time zone for the calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413871-shortstandaloneweekdaysymbols?language=objc -func (c_ Calendar) ShortStandaloneWeekdaySymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("shortStandaloneWeekdaySymbols")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409969-timezone?language=objc +func (c_ Calendar) SetTimeZone(value ITimeZone) { + objc.Call[objc.Void](c_, objc.Sel("setTimeZone:"), value) } -// The symbol used to represent “PM” for this calendar. [Full Topic] +// A list of very short month symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1416343-pmsymbol?language=objc -func (c_ Calendar) PMSymbol() string { - rv := objc.Call[string](c_, objc.Sel("PMSymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412779-veryshortmonthsymbols?language=objc +func (c_ Calendar) VeryShortMonthSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("veryShortMonthSymbols")) return rv } -// A list of weekdays in this calendar. [Full Topic] +// A calendar that tracks changes to user’s preferred calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412939-weekdaysymbols?language=objc -func (c_ Calendar) WeekdaySymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("weekdaySymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413771-autoupdatingcurrentcalendar?language=objc +func (cc _CalendarClass) AutoupdatingCurrentCalendar() Calendar { + rv := objc.Call[Calendar](cc, objc.Sel("autoupdatingCurrentCalendar")) return rv } -// The user’s current calendar. [Full Topic] +// A calendar that tracks changes to user’s preferred calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408501-currentcalendar?language=objc -func (cc _CalendarClass) CurrentCalendar() Calendar { - rv := objc.Call[Calendar](cc, objc.Sel("currentCalendar")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413771-autoupdatingcurrentcalendar?language=objc +func Calendar_AutoupdatingCurrentCalendar() Calendar { + return CalendarClass.AutoupdatingCurrentCalendar() } -// The user’s current calendar. [Full Topic] +// A list of quarter symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408501-currentcalendar?language=objc -func Calendar_CurrentCalendar() Calendar { - return CalendarClass.CurrentCalendar() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1411517-quartersymbols?language=objc +func (c_ Calendar) QuarterSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("quarterSymbols")) + return rv } -// A list of shorter-named weekdays in this calendar. [Full Topic] +// A list of short standalone quarter symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1407268-shortweekdaysymbols?language=objc -func (c_ Calendar) ShortWeekdaySymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("shortWeekdaySymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409823-shortstandalonequartersymbols?language=objc +func (c_ Calendar) ShortStandaloneQuarterSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("shortStandaloneQuarterSymbols")) return rv } -// A list of standalone month symbols for this calendar. [Full Topic] +// The symbol used to represent “AM” for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409598-standalonemonthsymbols?language=objc -func (c_ Calendar) StandaloneMonthSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("standaloneMonthSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1416226-amsymbol?language=objc +func (c_ Calendar) AMSymbol() string { + rv := objc.Call[string](c_, objc.Sel("AMSymbol")) return rv } -// A list of long era symbols for this calendar. [Full Topic] +// A list of very short standalone weekday symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1414285-longerasymbols?language=objc -func (c_ Calendar) LongEraSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("longEraSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1418273-veryshortstandaloneweekdaysymbol?language=objc +func (c_ Calendar) VeryShortStandaloneWeekdaySymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("veryShortStandaloneWeekdaySymbols")) return rv } -// A list of short standalone quarter symbols for this calendar. [Full Topic] +// A list of short standalone month symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409823-shortstandalonequartersymbols?language=objc -func (c_ Calendar) ShortStandaloneQuarterSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("shortStandaloneQuarterSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1418180-shortstandalonemonthsymbols?language=objc +func (c_ Calendar) ShortStandaloneMonthSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("shortStandaloneMonthSymbols")) return rv } -// A list of month symbols for this calendar. [Full Topic] +// A list of long era symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1414872-monthsymbols?language=objc -func (c_ Calendar) MonthSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("monthSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1414285-longerasymbols?language=objc +func (c_ Calendar) LongEraSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("longEraSymbols")) return rv } -// The symbol used to represent “AM” for this calendar. [Full Topic] +// A list of short month symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1416226-amsymbol?language=objc -func (c_ Calendar) AMSymbol() string { - rv := objc.Call[string](c_, objc.Sel("AMSymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1408952-shortmonthsymbols?language=objc +func (c_ Calendar) ShortMonthSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("shortMonthSymbols")) return rv } @@ -660,17 +588,18 @@ func (c_ Calendar) VeryShortWeekdaySymbols() []string { return rv } -// The time zone for the calendar. [Full Topic] +// A list of short quarter symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409969-timezone?language=objc -func (c_ Calendar) TimeZone() TimeZone { - rv := objc.Call[TimeZone](c_, objc.Sel("timeZone")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1414864-shortquartersymbols?language=objc +func (c_ Calendar) ShortQuarterSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("shortQuarterSymbols")) return rv } -// The time zone for the calendar. [Full Topic] +// A list of standalone month symbols for this calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409969-timezone?language=objc -func (c_ Calendar) SetTimeZone(value ITimeZone) { - objc.Call[objc.Void](c_, objc.Sel("setTimeZone:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1409598-standalonemonthsymbols?language=objc +func (c_ Calendar) StandaloneMonthSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("standaloneMonthSymbols")) + return rv } diff --git a/macos/foundation/calendar_date.gen.go b/macos/foundation/calendar_date.gen.go index c529be7c..03a7cb16 100644 --- a/macos/foundation/calendar_date.gen.go +++ b/macos/foundation/calendar_date.gen.go @@ -53,18 +53,6 @@ func (c_ CalendarDate) Init() CalendarDate { return rv } -func (cc _CalendarDateClass) DateWithTimeIntervalSince1970(secs TimeInterval) CalendarDate { - rv := objc.Call[CalendarDate](cc, objc.Sel("dateWithTimeIntervalSince1970:"), secs) - return rv -} - -// Creates and returns a date object set to the given number of seconds from 00:00:00 UTC on 1 January 1970. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591576-datewithtimeintervalsince1970?language=objc -func CalendarDate_DateWithTimeIntervalSince1970(secs TimeInterval) CalendarDate { - return CalendarDateClass.DateWithTimeIntervalSince1970(secs) -} - func (cc _CalendarDateClass) Date() CalendarDate { rv := objc.Call[CalendarDate](cc, objc.Sel("date")) return rv @@ -77,16 +65,16 @@ func CalendarDate_Date() CalendarDate { return CalendarDateClass.Date() } -func (c_ CalendarDate) InitWithTimeIntervalSince1970(secs TimeInterval) CalendarDate { - rv := objc.Call[CalendarDate](c_, objc.Sel("initWithTimeIntervalSince1970:"), secs) +func (c_ CalendarDate) DateByAddingTimeInterval(ti TimeInterval) CalendarDate { + rv := objc.Call[CalendarDate](c_, objc.Sel("dateByAddingTimeInterval:"), ti) return rv } -// Returns a date object initialized relative to 00:00:00 UTC on 1 January 1970 by a given number of seconds. [Full Topic] +// Returns a new date object that is set to a given number of seconds relative to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1416453-initwithtimeintervalsince1970?language=objc -func NewCalendarDateWithTimeIntervalSince1970(secs TimeInterval) CalendarDate { - instance := CalendarDateClass.Alloc().InitWithTimeIntervalSince1970(secs) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1408823-datebyaddingtimeinterval?language=objc +func CalendarDate_DateByAddingTimeInterval(ti TimeInterval) CalendarDate { + instance := CalendarDateClass.Alloc().DateByAddingTimeInterval(ti) instance.Autorelease() return instance } @@ -103,6 +91,30 @@ func CalendarDate_DateWithTimeIntervalSinceDate(secsToBeAdded TimeInterval, date return CalendarDateClass.DateWithTimeIntervalSinceDate(secsToBeAdded, date) } +func (cc _CalendarDateClass) DateWithTimeIntervalSinceNow(secs TimeInterval) CalendarDate { + rv := objc.Call[CalendarDate](cc, objc.Sel("dateWithTimeIntervalSinceNow:"), secs) + return rv +} + +// Creates and returns a date object set to a given number of seconds from the current date and time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591579-datewithtimeintervalsincenow?language=objc +func CalendarDate_DateWithTimeIntervalSinceNow(secs TimeInterval) CalendarDate { + return CalendarDateClass.DateWithTimeIntervalSinceNow(secs) +} + +func (cc _CalendarDateClass) DateWithTimeIntervalSince1970(secs TimeInterval) CalendarDate { + rv := objc.Call[CalendarDate](cc, objc.Sel("dateWithTimeIntervalSince1970:"), secs) + return rv +} + +// Creates and returns a date object set to the given number of seconds from 00:00:00 UTC on 1 January 1970. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591576-datewithtimeintervalsince1970?language=objc +func CalendarDate_DateWithTimeIntervalSince1970(secs TimeInterval) CalendarDate { + return CalendarDateClass.DateWithTimeIntervalSince1970(secs) +} + func (c_ CalendarDate) InitWithTimeIntervalSinceReferenceDate(ti TimeInterval) CalendarDate { rv := objc.Call[CalendarDate](c_, objc.Sel("initWithTimeIntervalSinceReferenceDate:"), ti) return rv @@ -131,6 +143,18 @@ func NewCalendarDateWithTimeIntervalSinceNow(secs TimeInterval) CalendarDate { return instance } +func (cc _CalendarDateClass) DateWithTimeIntervalSinceReferenceDate(ti TimeInterval) CalendarDate { + rv := objc.Call[CalendarDate](cc, objc.Sel("dateWithTimeIntervalSinceReferenceDate:"), ti) + return rv +} + +// Creates and returns a date object set to a given number of seconds from 00:00:00 UTC on 1 January 2001. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591577-datewithtimeintervalsincereferen?language=objc +func CalendarDate_DateWithTimeIntervalSinceReferenceDate(ti TimeInterval) CalendarDate { + return CalendarDateClass.DateWithTimeIntervalSinceReferenceDate(ti) +} + func (c_ CalendarDate) InitWithTimeIntervalSinceDate(secsToBeAdded TimeInterval, date IDate) CalendarDate { rv := objc.Call[CalendarDate](c_, objc.Sel("initWithTimeInterval:sinceDate:"), secsToBeAdded, date) return rv @@ -145,40 +169,16 @@ func NewCalendarDateWithTimeIntervalSinceDate(secsToBeAdded TimeInterval, date I return instance } -func (c_ CalendarDate) DateByAddingTimeInterval(ti TimeInterval) CalendarDate { - rv := objc.Call[CalendarDate](c_, objc.Sel("dateByAddingTimeInterval:"), ti) +func (c_ CalendarDate) InitWithTimeIntervalSince1970(secs TimeInterval) CalendarDate { + rv := objc.Call[CalendarDate](c_, objc.Sel("initWithTimeIntervalSince1970:"), secs) return rv } -// Returns a new date object that is set to a given number of seconds relative to the receiver. [Full Topic] +// Returns a date object initialized relative to 00:00:00 UTC on 1 January 1970 by a given number of seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1408823-datebyaddingtimeinterval?language=objc -func CalendarDate_DateByAddingTimeInterval(ti TimeInterval) CalendarDate { - instance := CalendarDateClass.Alloc().DateByAddingTimeInterval(ti) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1416453-initwithtimeintervalsince1970?language=objc +func NewCalendarDateWithTimeIntervalSince1970(secs TimeInterval) CalendarDate { + instance := CalendarDateClass.Alloc().InitWithTimeIntervalSince1970(secs) instance.Autorelease() return instance } - -func (cc _CalendarDateClass) DateWithTimeIntervalSinceNow(secs TimeInterval) CalendarDate { - rv := objc.Call[CalendarDate](cc, objc.Sel("dateWithTimeIntervalSinceNow:"), secs) - return rv -} - -// Creates and returns a date object set to a given number of seconds from the current date and time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591579-datewithtimeintervalsincenow?language=objc -func CalendarDate_DateWithTimeIntervalSinceNow(secs TimeInterval) CalendarDate { - return CalendarDateClass.DateWithTimeIntervalSinceNow(secs) -} - -func (cc _CalendarDateClass) DateWithTimeIntervalSinceReferenceDate(ti TimeInterval) CalendarDate { - rv := objc.Call[CalendarDate](cc, objc.Sel("dateWithTimeIntervalSinceReferenceDate:"), ti) - return rv -} - -// Creates and returns a date object set to a given number of seconds from 00:00:00 UTC on 1 January 2001. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591577-datewithtimeintervalsincereferen?language=objc -func CalendarDate_DateWithTimeIntervalSinceReferenceDate(ti TimeInterval) CalendarDate { - return CalendarDateClass.DateWithTimeIntervalSinceReferenceDate(ti) -} diff --git a/macos/foundation/character_set.gen.go b/macos/foundation/character_set.gen.go index 6c16702b..a9a178a7 100644 --- a/macos/foundation/character_set.gen.go +++ b/macos/foundation/character_set.gen.go @@ -18,9 +18,9 @@ type _CharacterSetClass struct { // An interface definition for the [CharacterSet] class. type ICharacterSet interface { objc.IObject - LongCharacterIsMember(theLongChar objc.IObject) bool HasMemberInPlane(thePlane uint8) bool CharacterIsMember(aCharacter Unichar) bool + LongCharacterIsMember(theLongChar objc.IObject) bool IsSupersetOfSet(theOtherSet ICharacterSet) bool BitmapRepresentation() []byte InvertedSet() CharacterSet @@ -59,26 +59,19 @@ func (c_ CharacterSet) Init() CharacterSet { return rv } -// Returns a character set containing the characters in a given string. [Full Topic] +// Returns a Boolean value that indicates whether the receiver has at least one member in a given character plane. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1414061-charactersetwithcharactersinstri?language=objc -func (cc _CharacterSetClass) CharacterSetWithCharactersInString(aString string) CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("characterSetWithCharactersInString:"), aString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1412406-hasmemberinplane?language=objc +func (c_ CharacterSet) HasMemberInPlane(thePlane uint8) bool { + rv := objc.Call[bool](c_, objc.Sel("hasMemberInPlane:"), thePlane) return rv } -// Returns a character set containing the characters in a given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1414061-charactersetwithcharactersinstri?language=objc -func CharacterSet_CharacterSetWithCharactersInString(aString string) CharacterSet { - return CharacterSetClass.CharacterSetWithCharactersInString(aString) -} - -// Returns a Boolean value that indicates whether a given long character is a member of the receiver. [Full Topic] +// Returns a Boolean value that indicates whether a given character is in the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1409757-longcharacterismember?language=objc -func (c_ CharacterSet) LongCharacterIsMember(theLongChar objc.IObject) bool { - rv := objc.Call[bool](c_, objc.Sel("longCharacterIsMember:"), theLongChar) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1407659-characterismember?language=objc +func (c_ CharacterSet) CharacterIsMember(aCharacter Unichar) bool { + rv := objc.Call[bool](c_, objc.Sel("characterIsMember:"), aCharacter) return rv } @@ -97,42 +90,11 @@ func CharacterSet_CharacterSetWithContentsOfFile(fName string) CharacterSet { return CharacterSetClass.CharacterSetWithContentsOfFile(fName) } -// Returns a Boolean value that indicates whether the receiver has at least one member in a given character plane. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1412406-hasmemberinplane?language=objc -func (c_ CharacterSet) HasMemberInPlane(thePlane uint8) bool { - rv := objc.Call[bool](c_, objc.Sel("hasMemberInPlane:"), thePlane) - return rv -} - -// Returns a character set containing characters determined by a given bitmap representation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1415042-charactersetwithbitmaprepresenta?language=objc -func (cc _CharacterSetClass) CharacterSetWithBitmapRepresentation(data []byte) CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("characterSetWithBitmapRepresentation:"), data) - return rv -} - -// Returns a character set containing characters determined by a given bitmap representation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1415042-charactersetwithbitmaprepresenta?language=objc -func CharacterSet_CharacterSetWithBitmapRepresentation(data []byte) CharacterSet { - return CharacterSetClass.CharacterSetWithBitmapRepresentation(data) -} - -// Returns a Boolean value that indicates whether a given character is in the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1407659-characterismember?language=objc -func (c_ CharacterSet) CharacterIsMember(aCharacter Unichar) bool { - rv := objc.Call[bool](c_, objc.Sel("characterIsMember:"), aCharacter) - return rv -} - -// Returns a Boolean value that indicates whether the receiver is a superset of another given character set. [Full Topic] +// Returns a Boolean value that indicates whether a given long character is a member of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1415606-issupersetofset?language=objc -func (c_ CharacterSet) IsSupersetOfSet(theOtherSet ICharacterSet) bool { - rv := objc.Call[bool](c_, objc.Sel("isSupersetOfSet:"), theOtherSet) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1409757-longcharacterismember?language=objc +func (c_ CharacterSet) LongCharacterIsMember(theLongChar objc.IObject) bool { + rv := objc.Call[bool](c_, objc.Sel("longCharacterIsMember:"), theLongChar) return rv } @@ -151,49 +113,57 @@ func CharacterSet_CharacterSetWithRange(aRange Range) CharacterSet { return CharacterSetClass.CharacterSetWithRange(aRange) } -// A character set containing the characters in Unicode General Category Ll. [Full Topic] +// Returns a character set containing characters determined by a given bitmap representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417123-lowercaselettercharacterset?language=objc -func (cc _CharacterSetClass) LowercaseLetterCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("lowercaseLetterCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1415042-charactersetwithbitmaprepresenta?language=objc +func (cc _CharacterSetClass) CharacterSetWithBitmapRepresentation(data []byte) CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("characterSetWithBitmapRepresentation:"), data) return rv } -// A character set containing the characters in Unicode General Category Ll. [Full Topic] +// Returns a character set containing characters determined by a given bitmap representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417123-lowercaselettercharacterset?language=objc -func CharacterSet_LowercaseLetterCharacterSet() CharacterSet { - return CharacterSetClass.LowercaseLetterCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1415042-charactersetwithbitmaprepresenta?language=objc +func CharacterSet_CharacterSetWithBitmapRepresentation(data []byte) CharacterSet { + return CharacterSetClass.CharacterSetWithBitmapRepresentation(data) } -// A character set containing the characters in Unicode General Category Lu and Lt. [Full Topic] +// Returns a character set containing the characters in a given string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417569-uppercaselettercharacterset?language=objc -func (cc _CharacterSetClass) UppercaseLetterCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("uppercaseLetterCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1414061-charactersetwithcharactersinstri?language=objc +func (cc _CharacterSetClass) CharacterSetWithCharactersInString(aString string) CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("characterSetWithCharactersInString:"), aString) return rv } -// A character set containing the characters in Unicode General Category Lu and Lt. [Full Topic] +// Returns a character set containing the characters in a given string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417569-uppercaselettercharacterset?language=objc -func CharacterSet_UppercaseLetterCharacterSet() CharacterSet { - return CharacterSetClass.UppercaseLetterCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1414061-charactersetwithcharactersinstri?language=objc +func CharacterSet_CharacterSetWithCharactersInString(aString string) CharacterSet { + return CharacterSetClass.CharacterSetWithCharactersInString(aString) } -// A character set containing values in the category of Non-Characters or that have not yet been defined in version 3.2 of the Unicode standard. [Full Topic] +// Returns a Boolean value that indicates whether the receiver is a superset of another given character set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416321-illegalcharacterset?language=objc -func (cc _CharacterSetClass) IllegalCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("illegalCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1415606-issupersetofset?language=objc +func (c_ CharacterSet) IsSupersetOfSet(theOtherSet ICharacterSet) bool { + rv := objc.Call[bool](c_, objc.Sel("isSupersetOfSet:"), theOtherSet) return rv } -// A character set containing values in the category of Non-Characters or that have not yet been defined in version 3.2 of the Unicode standard. [Full Topic] +// A character set containing the newline characters (U+000A ~ U+000D, U+0085, U+2028, and U+2029). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416321-illegalcharacterset?language=objc -func CharacterSet_IllegalCharacterSet() CharacterSet { - return CharacterSetClass.IllegalCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416730-newlinecharacterset?language=objc +func (cc _CharacterSetClass) NewlineCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("newlineCharacterSet")) + return rv +} + +// A character set containing the newline characters (U+000A ~ U+000D, U+0085, U+2028, and U+2029). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416730-newlinecharacterset?language=objc +func CharacterSet_NewlineCharacterSet() CharacterSet { + return CharacterSetClass.NewlineCharacterSet() } // An NSData object encoding the receiver in binary format. [Full Topic] @@ -219,34 +189,34 @@ func CharacterSet_AlphanumericCharacterSet() CharacterSet { return CharacterSetClass.AlphanumericCharacterSet() } -// A character set containing the characters in Unicode General Category Cc and Cf. [Full Topic] +// A character set containing the characters in Unicode General Category Lt. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416371-controlcharacterset?language=objc -func (cc _CharacterSetClass) ControlCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("controlCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1414409-capitalizedlettercharacterset?language=objc +func (cc _CharacterSetClass) CapitalizedLetterCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("capitalizedLetterCharacterSet")) return rv } -// A character set containing the characters in Unicode General Category Cc and Cf. [Full Topic] +// A character set containing the characters in Unicode General Category Lt. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416371-controlcharacterset?language=objc -func CharacterSet_ControlCharacterSet() CharacterSet { - return CharacterSetClass.ControlCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1414409-capitalizedlettercharacterset?language=objc +func CharacterSet_CapitalizedLetterCharacterSet() CharacterSet { + return CharacterSetClass.CapitalizedLetterCharacterSet() } -// Returns the character set for characters allowed in a host URL subcomponent. [Full Topic] +// A character set containing the characters in Unicode General Category Ll. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416426-urlhostallowedcharacterset?language=objc -func (cc _CharacterSetClass) URLHostAllowedCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("URLHostAllowedCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417123-lowercaselettercharacterset?language=objc +func (cc _CharacterSetClass) LowercaseLetterCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("lowercaseLetterCharacterSet")) return rv } -// Returns the character set for characters allowed in a host URL subcomponent. [Full Topic] +// A character set containing the characters in Unicode General Category Ll. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416426-urlhostallowedcharacterset?language=objc -func CharacterSet_URLHostAllowedCharacterSet() CharacterSet { - return CharacterSetClass.URLHostAllowedCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417123-lowercaselettercharacterset?language=objc +func CharacterSet_LowercaseLetterCharacterSet() CharacterSet { + return CharacterSetClass.LowercaseLetterCharacterSet() } // Returns the character set for characters allowed in a query URL component. [Full Topic] @@ -264,44 +234,66 @@ func CharacterSet_URLQueryAllowedCharacterSet() CharacterSet { return CharacterSetClass.URLQueryAllowedCharacterSet() } -// Returns the character set for characters allowed in a path URL component. [Full Topic] +// A character set containing the characters in Unicode General Category L* & M*. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416804-urlpathallowedcharacterset?language=objc -func (cc _CharacterSetClass) URLPathAllowedCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("URLPathAllowedCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1408569-lettercharacterset?language=objc +func (cc _CharacterSetClass) LetterCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("letterCharacterSet")) return rv } -// Returns the character set for characters allowed in a path URL component. [Full Topic] +// A character set containing the characters in Unicode General Category L* & M*. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416804-urlpathallowedcharacterset?language=objc -func CharacterSet_URLPathAllowedCharacterSet() CharacterSet { - return CharacterSetClass.URLPathAllowedCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1408569-lettercharacterset?language=objc +func CharacterSet_LetterCharacterSet() CharacterSet { + return CharacterSetClass.LetterCharacterSet() } -// A character set containing the characters in Unicode General Category S*. [Full Topic] +// A character set containing individual Unicode characters that can also be represented as composed character sequences (such as for letters with accents), by the definition of “standard decomposition” in version 3.2 of the Unicode character encoding standard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1410965-symbolcharacterset?language=objc -func (cc _CharacterSetClass) SymbolCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("symbolCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416868-decomposablecharacterset?language=objc +func (cc _CharacterSetClass) DecomposableCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("decomposableCharacterSet")) return rv } -// A character set containing the characters in Unicode General Category S*. [Full Topic] +// A character set containing individual Unicode characters that can also be represented as composed character sequences (such as for letters with accents), by the definition of “standard decomposition” in version 3.2 of the Unicode character encoding standard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1410965-symbolcharacterset?language=objc -func CharacterSet_SymbolCharacterSet() CharacterSet { - return CharacterSetClass.SymbolCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416868-decomposablecharacterset?language=objc +func CharacterSet_DecomposableCharacterSet() CharacterSet { + return CharacterSetClass.DecomposableCharacterSet() } -// A character set containing only characters that don’t exist in the receiver. [Full Topic] +// A character set containing the characters in the category of Decimal Numbers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1414025-invertedset?language=objc -func (c_ CharacterSet) InvertedSet() CharacterSet { - rv := objc.Call[CharacterSet](c_, objc.Sel("invertedSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1408239-decimaldigitcharacterset?language=objc +func (cc _CharacterSetClass) DecimalDigitCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("decimalDigitCharacterSet")) + return rv +} + +// A character set containing the characters in the category of Decimal Numbers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1408239-decimaldigitcharacterset?language=objc +func CharacterSet_DecimalDigitCharacterSet() CharacterSet { + return CharacterSetClass.DecimalDigitCharacterSet() +} + +// Returns the character set for characters allowed in a fragment URL component. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1412537-urlfragmentallowedcharacterset?language=objc +func (cc _CharacterSetClass) URLFragmentAllowedCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("URLFragmentAllowedCharacterSet")) return rv } +// Returns the character set for characters allowed in a fragment URL component. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1412537-urlfragmentallowedcharacterset?language=objc +func CharacterSet_URLFragmentAllowedCharacterSet() CharacterSet { + return CharacterSetClass.URLFragmentAllowedCharacterSet() +} + // A character set containing the characters in Unicode General Category P*. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1411415-punctuationcharacterset?language=objc @@ -317,79 +309,64 @@ func CharacterSet_PunctuationCharacterSet() CharacterSet { return CharacterSetClass.PunctuationCharacterSet() } -// A character set containing individual Unicode characters that can also be represented as composed character sequences (such as for letters with accents), by the definition of “standard decomposition” in version 3.2 of the Unicode character encoding standard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416868-decomposablecharacterset?language=objc -func (cc _CharacterSetClass) DecomposableCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("decomposableCharacterSet")) - return rv -} - -// A character set containing individual Unicode characters that can also be represented as composed character sequences (such as for letters with accents), by the definition of “standard decomposition” in version 3.2 of the Unicode character encoding standard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416868-decomposablecharacterset?language=objc -func CharacterSet_DecomposableCharacterSet() CharacterSet { - return CharacterSetClass.DecomposableCharacterSet() -} - -// Returns the character set for characters allowed in a fragment URL component. [Full Topic] +// A character set containing the characters in Unicode General Category Zs and CHARACTER TABULATION (U+0009). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1412537-urlfragmentallowedcharacterset?language=objc -func (cc _CharacterSetClass) URLFragmentAllowedCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("URLFragmentAllowedCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416393-whitespacecharacterset?language=objc +func (cc _CharacterSetClass) WhitespaceCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("whitespaceCharacterSet")) return rv } -// Returns the character set for characters allowed in a fragment URL component. [Full Topic] +// A character set containing the characters in Unicode General Category Zs and CHARACTER TABULATION (U+0009). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1412537-urlfragmentallowedcharacterset?language=objc -func CharacterSet_URLFragmentAllowedCharacterSet() CharacterSet { - return CharacterSetClass.URLFragmentAllowedCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416393-whitespacecharacterset?language=objc +func CharacterSet_WhitespaceCharacterSet() CharacterSet { + return CharacterSetClass.WhitespaceCharacterSet() } -// A character set containing the characters in Unicode General Category Lt. [Full Topic] +// Returns the character set for characters allowed in a host URL subcomponent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1414409-capitalizedlettercharacterset?language=objc -func (cc _CharacterSetClass) CapitalizedLetterCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("capitalizedLetterCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416426-urlhostallowedcharacterset?language=objc +func (cc _CharacterSetClass) URLHostAllowedCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("URLHostAllowedCharacterSet")) return rv } -// A character set containing the characters in Unicode General Category Lt. [Full Topic] +// Returns the character set for characters allowed in a host URL subcomponent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1414409-capitalizedlettercharacterset?language=objc -func CharacterSet_CapitalizedLetterCharacterSet() CharacterSet { - return CharacterSetClass.CapitalizedLetterCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416426-urlhostallowedcharacterset?language=objc +func CharacterSet_URLHostAllowedCharacterSet() CharacterSet { + return CharacterSetClass.URLHostAllowedCharacterSet() } -// A character set containing characters in Unicode General Category Z*, U+000A ~ U+000D, and U+0085. [Full Topic] +// A character set containing the characters in Unicode General Category Cc and Cf. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1413732-whitespaceandnewlinecharacterset?language=objc -func (cc _CharacterSetClass) WhitespaceAndNewlineCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("whitespaceAndNewlineCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416371-controlcharacterset?language=objc +func (cc _CharacterSetClass) ControlCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("controlCharacterSet")) return rv } -// A character set containing characters in Unicode General Category Z*, U+000A ~ U+000D, and U+0085. [Full Topic] +// A character set containing the characters in Unicode General Category Cc and Cf. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1413732-whitespaceandnewlinecharacterset?language=objc -func CharacterSet_WhitespaceAndNewlineCharacterSet() CharacterSet { - return CharacterSetClass.WhitespaceAndNewlineCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416371-controlcharacterset?language=objc +func CharacterSet_ControlCharacterSet() CharacterSet { + return CharacterSetClass.ControlCharacterSet() } -// A character set containing the characters in Unicode General Category M*. [Full Topic] +// Returns the character set for characters allowed in a path URL component. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1407836-nonbasecharacterset?language=objc -func (cc _CharacterSetClass) NonBaseCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("nonBaseCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416804-urlpathallowedcharacterset?language=objc +func (cc _CharacterSetClass) URLPathAllowedCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("URLPathAllowedCharacterSet")) return rv } -// A character set containing the characters in Unicode General Category M*. [Full Topic] +// Returns the character set for characters allowed in a path URL component. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1407836-nonbasecharacterset?language=objc -func CharacterSet_NonBaseCharacterSet() CharacterSet { - return CharacterSetClass.NonBaseCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416804-urlpathallowedcharacterset?language=objc +func CharacterSet_URLPathAllowedCharacterSet() CharacterSet { + return CharacterSetClass.URLPathAllowedCharacterSet() } // Returns the character set for characters allowed in a user URL subcomponent. [Full Topic] @@ -407,77 +384,100 @@ func CharacterSet_URLUserAllowedCharacterSet() CharacterSet { return CharacterSetClass.URLUserAllowedCharacterSet() } -// Returns the character set for characters allowed in a password URL subcomponent. [Full Topic] +// A character set containing values in the category of Non-Characters or that have not yet been defined in version 3.2 of the Unicode standard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417313-urlpasswordallowedcharacterset?language=objc -func (cc _CharacterSetClass) URLPasswordAllowedCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("URLPasswordAllowedCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416321-illegalcharacterset?language=objc +func (cc _CharacterSetClass) IllegalCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("illegalCharacterSet")) return rv } -// Returns the character set for characters allowed in a password URL subcomponent. [Full Topic] +// A character set containing values in the category of Non-Characters or that have not yet been defined in version 3.2 of the Unicode standard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417313-urlpasswordallowedcharacterset?language=objc -func CharacterSet_URLPasswordAllowedCharacterSet() CharacterSet { - return CharacterSetClass.URLPasswordAllowedCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416321-illegalcharacterset?language=objc +func CharacterSet_IllegalCharacterSet() CharacterSet { + return CharacterSetClass.IllegalCharacterSet() } -// A character set containing the characters in Unicode General Category L* & M*. [Full Topic] +// A character set containing characters in Unicode General Category Z*, U+000A ~ U+000D, and U+0085. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1408569-lettercharacterset?language=objc -func (cc _CharacterSetClass) LetterCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("letterCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1413732-whitespaceandnewlinecharacterset?language=objc +func (cc _CharacterSetClass) WhitespaceAndNewlineCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("whitespaceAndNewlineCharacterSet")) return rv } -// A character set containing the characters in Unicode General Category L* & M*. [Full Topic] +// A character set containing characters in Unicode General Category Z*, U+000A ~ U+000D, and U+0085. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1408569-lettercharacterset?language=objc -func CharacterSet_LetterCharacterSet() CharacterSet { - return CharacterSetClass.LetterCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1413732-whitespaceandnewlinecharacterset?language=objc +func CharacterSet_WhitespaceAndNewlineCharacterSet() CharacterSet { + return CharacterSetClass.WhitespaceAndNewlineCharacterSet() } -// A character set containing the newline characters (U+000A ~ U+000D, U+0085, U+2028, and U+2029). [Full Topic] +// A character set containing the characters in Unicode General Category S*. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416730-newlinecharacterset?language=objc -func (cc _CharacterSetClass) NewlineCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("newlineCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1410965-symbolcharacterset?language=objc +func (cc _CharacterSetClass) SymbolCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("symbolCharacterSet")) return rv } -// A character set containing the newline characters (U+000A ~ U+000D, U+0085, U+2028, and U+2029). [Full Topic] +// A character set containing the characters in Unicode General Category S*. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416730-newlinecharacterset?language=objc -func CharacterSet_NewlineCharacterSet() CharacterSet { - return CharacterSetClass.NewlineCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1410965-symbolcharacterset?language=objc +func CharacterSet_SymbolCharacterSet() CharacterSet { + return CharacterSetClass.SymbolCharacterSet() } -// A character set containing the characters in Unicode General Category Zs and CHARACTER TABULATION (U+0009). [Full Topic] +// A character set containing the characters in Unicode General Category Lu and Lt. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416393-whitespacecharacterset?language=objc -func (cc _CharacterSetClass) WhitespaceCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("whitespaceCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417569-uppercaselettercharacterset?language=objc +func (cc _CharacterSetClass) UppercaseLetterCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("uppercaseLetterCharacterSet")) return rv } -// A character set containing the characters in Unicode General Category Zs and CHARACTER TABULATION (U+0009). [Full Topic] +// A character set containing the characters in Unicode General Category Lu and Lt. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416393-whitespacecharacterset?language=objc -func CharacterSet_WhitespaceCharacterSet() CharacterSet { - return CharacterSetClass.WhitespaceCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417569-uppercaselettercharacterset?language=objc +func CharacterSet_UppercaseLetterCharacterSet() CharacterSet { + return CharacterSetClass.UppercaseLetterCharacterSet() } -// A character set containing the characters in the category of Decimal Numbers. [Full Topic] +// Returns the character set for characters allowed in a password URL subcomponent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1408239-decimaldigitcharacterset?language=objc -func (cc _CharacterSetClass) DecimalDigitCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("decimalDigitCharacterSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417313-urlpasswordallowedcharacterset?language=objc +func (cc _CharacterSetClass) URLPasswordAllowedCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("URLPasswordAllowedCharacterSet")) return rv } -// A character set containing the characters in the category of Decimal Numbers. [Full Topic] +// Returns the character set for characters allowed in a password URL subcomponent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1408239-decimaldigitcharacterset?language=objc -func CharacterSet_DecimalDigitCharacterSet() CharacterSet { - return CharacterSetClass.DecimalDigitCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417313-urlpasswordallowedcharacterset?language=objc +func CharacterSet_URLPasswordAllowedCharacterSet() CharacterSet { + return CharacterSetClass.URLPasswordAllowedCharacterSet() +} + +// A character set containing only characters that don’t exist in the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1414025-invertedset?language=objc +func (c_ CharacterSet) InvertedSet() CharacterSet { + rv := objc.Call[CharacterSet](c_, objc.Sel("invertedSet")) + return rv +} + +// A character set containing the characters in Unicode General Category M*. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1407836-nonbasecharacterset?language=objc +func (cc _CharacterSetClass) NonBaseCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("nonBaseCharacterSet")) + return rv +} + +// A character set containing the characters in Unicode General Category M*. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1407836-nonbasecharacterset?language=objc +func CharacterSet_NonBaseCharacterSet() CharacterSet { + return CharacterSetClass.NonBaseCharacterSet() } diff --git a/macos/foundation/class_description.gen.go b/macos/foundation/class_description.gen.go index 72755ca8..3699524d 100644 --- a/macos/foundation/class_description.gen.go +++ b/macos/foundation/class_description.gen.go @@ -19,9 +19,9 @@ type _ClassDescriptionClass struct { type IClassDescription interface { objc.IObject InverseForRelationshipKey(relationshipKey string) string - ToOneRelationshipKeys() []string - ToManyRelationshipKeys() []string AttributeKeys() []string + ToManyRelationshipKeys() []string + ToOneRelationshipKeys() []string } // An abstract class that provides the interface for querying the relationships and properties of a class. [Full Topic] @@ -57,20 +57,6 @@ func (c_ ClassDescription) Init() ClassDescription { return rv } -// Removes all NSClassDescription objects from the cache. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsclassdescription/1413040-invalidateclassdescriptioncache?language=objc -func (cc _ClassDescriptionClass) InvalidateClassDescriptionCache() { - objc.Call[objc.Void](cc, objc.Sel("invalidateClassDescriptionCache")) -} - -// Removes all NSClassDescription objects from the cache. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsclassdescription/1413040-invalidateclassdescriptioncache?language=objc -func ClassDescription_InvalidateClassDescriptionCache() { - ClassDescriptionClass.InvalidateClassDescriptionCache() -} - // Registers an NSClassDescription object for a given class in the NSClassDescription cache. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsclassdescription/1407444-registerclassdescription?language=objc @@ -85,6 +71,20 @@ func ClassDescription_RegisterClassDescriptionForClass(description IClassDescrip ClassDescriptionClass.RegisterClassDescriptionForClass(description, aClass) } +// Removes all NSClassDescription objects from the cache. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsclassdescription/1413040-invalidateclassdescriptioncache?language=objc +func (cc _ClassDescriptionClass) InvalidateClassDescriptionCache() { + objc.Call[objc.Void](cc, objc.Sel("invalidateClassDescriptionCache")) +} + +// Removes all NSClassDescription objects from the cache. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsclassdescription/1413040-invalidateclassdescriptioncache?language=objc +func ClassDescription_InvalidateClassDescriptionCache() { + ClassDescriptionClass.InvalidateClassDescriptionCache() +} + // Overridden by subclasses to return the name of the inverse relationship from a relationship specified by a given key. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsclassdescription/1410945-inverseforrelationshipkey?language=objc @@ -108,11 +108,11 @@ func ClassDescription_ClassDescriptionForClass(aClass objc.IClass) ClassDescript return ClassDescriptionClass.ClassDescriptionForClass(aClass) } -// Overridden by subclasses to return the keys for the to-one relationship properties of instances of the described class. [Full Topic] +// Overridden by subclasses to return the names of attributes of instances of the described class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsclassdescription/1411937-toonerelationshipkeys?language=objc -func (c_ ClassDescription) ToOneRelationshipKeys() []string { - rv := objc.Call[[]string](c_, objc.Sel("toOneRelationshipKeys")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsclassdescription/1415001-attributekeys?language=objc +func (c_ ClassDescription) AttributeKeys() []string { + rv := objc.Call[[]string](c_, objc.Sel("attributeKeys")) return rv } @@ -124,10 +124,10 @@ func (c_ ClassDescription) ToManyRelationshipKeys() []string { return rv } -// Overridden by subclasses to return the names of attributes of instances of the described class. [Full Topic] +// Overridden by subclasses to return the keys for the to-one relationship properties of instances of the described class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsclassdescription/1415001-attributekeys?language=objc -func (c_ ClassDescription) AttributeKeys() []string { - rv := objc.Call[[]string](c_, objc.Sel("attributeKeys")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsclassdescription/1411937-toonerelationshipkeys?language=objc +func (c_ ClassDescription) ToOneRelationshipKeys() []string { + rv := objc.Call[[]string](c_, objc.Sel("toOneRelationshipKeys")) return rv } diff --git a/macos/foundation/coder.gen.go b/macos/foundation/coder.gen.go index dc131754..b4b05396 100644 --- a/macos/foundation/coder.gen.go +++ b/macos/foundation/coder.gen.go @@ -19,83 +19,77 @@ type _CoderClass struct { // An interface definition for the [Coder] class. type ICoder interface { objc.IObject - EncodeDoubleForKey(value float64, key string) - DecodePropertyListForKey(key string) objc.Object - DecodeBytesWithReturnedLength(lengthp *uint) unsafe.Pointer - DecodePoint() Point - EncodeCMTimeRangeForKey(timeRange coremedia.TimeRange, key string) - DecodePointForKey(key string) Point - EncodeConditionalObjectForKey(object objc.IObject, key string) - EncodeCMTimeForKey(time coremedia.Time, key string) - DecodeArrayOfObjCTypeCountAt(itemType *uint8, count uint, array unsafe.Pointer) - EncodeObject(object objc.IObject) - DecodeTopLevelObjectAndReturnError(error unsafe.Pointer) objc.Object - DecodeObjectOfClassesForKey(classes ISet, key string) objc.Object - DecodeInt32ForKey(key string) int32 - DecodeTopLevelObjectOfClassesForKeyError(classes ISet, key string, error unsafe.Pointer) objc.Object - DecodeCMTimeRangeForKey(key string) coremedia.TimeRange - DecodeTopLevelObjectOfClassForKeyError(aClass objc.IClass, key string, error unsafe.Pointer) objc.Object - DecodeDictionaryWithKeysOfClassesObjectsOfClassesForKey(keyClasses ISet, objectClasses ISet, key string) Dictionary - DecodeObjectForKey(key string) objc.Object - EncodeRectForKey(rect Rect, key string) - DecodeCMTimeMappingForKey(key string) coremedia.TimeMapping + DecodeDataObject() []byte + DecodeSizeForKey(key string) Size EncodeCMTimeMappingForKey(timeMapping coremedia.TimeMapping, key string) - DecodeIntForKey(key string) int - SetObjectZone(zone unsafe.Pointer) - EncodeDataObject(data []byte) - DecodeObject() objc.Object DecodeFloatForKey(key string) float32 - EncodePoint(point Point) - DecodeArrayOfObjectsOfClassForKey(cls objc.IClass, key string) []objc.Object + DecodeSize() Size + EncodeRectForKey(rect Rect, key string) + DecodeDictionaryWithKeysOfClassesObjectsOfClassesForKey(keyClasses ISet, objectClasses ISet, key string) Dictionary + EncodePropertyList(aPropertyList objc.IObject) + EncodeObject(object objc.IObject) + DecodeDoubleForKey(key string) float64 + VersionForClassName(className string) int + EncodeCMTimeRangeForKey(timeRange coremedia.TimeRange, key string) + EncodeArrayOfObjCTypeCountAt(type_ *uint8, count uint, array unsafe.Pointer) + EncodeValueOfObjCTypeAt(type_ *uint8, addr unsafe.Pointer) + EncodeConditionalObject(object objc.IObject) + DecodeValuesOfObjCTypes(types *uint8, args ...any) + DecodeObject() objc.Object + DecodeObjectOfClassForKey(aClass objc.IClass, key string) objc.Object + FailWithError(error IError) DecodeInt64ForKey(key string) int64 - EncodeIntForKey(value int, key string) - ObjectZone() unsafe.Pointer - DecodeDictionaryWithKeysOfClassObjectsOfClassForKey(keyCls objc.IClass, objectCls objc.IClass, key string) Dictionary - EncodeBytesLength(byteaddr unsafe.Pointer, length uint) - DecodeDataObject() []byte + DecodeBytesForKeyReturnedLength(key string, lengthp *uint) *uint8 + DecodeCMTimeForKey(key string) coremedia.Time + DecodePoint() Point + EncodeBycopyObject(anObject objc.IObject) + EncodeBoolForKey(value bool, key string) DecodeTopLevelObjectForKeyError(key string, error unsafe.Pointer) objc.Object - EncodeValuesOfObjCTypes(types *uint8, args ...any) + DecodeTopLevelObjectOfClassForKeyError(aClass objc.IClass, key string, error unsafe.Pointer) objc.Object + DecodeObjectOfClassesForKey(classes ISet, key string) objc.Object + DecodeArrayOfObjectsOfClassForKey(cls objc.IClass, key string) []objc.Object + DecodeTopLevelObjectAndReturnError(error unsafe.Pointer) objc.Object + DecodeArrayOfObjCTypeCountAt(itemType *uint8, count uint, array unsafe.Pointer) + EncodeDataObject(data []byte) + DecodeValueOfObjCTypeAtSize(type_ *uint8, data unsafe.Pointer, size uint) + EncodeCMTimeForKey(time coremedia.Time, key string) + ObjectZone() unsafe.Pointer + DecodeInt32ForKey(key string) int32 + DecodeObjectForKey(key string) objc.Object EncodeRootObject(rootObject objc.IObject) - DecodeSize() Size DecodeRectForKey(key string) Rect - VersionForClassName(className string) int + DecodeRect() Rect + SetObjectZone(zone unsafe.Pointer) + DecodeIntForKey(key string) int + EncodeSizeForKey(size Size, key string) DecodeIntegerForKey(key string) int - EncodeFloatForKey(value float32, key string) - EncodeObjectForKey(object objc.IObject, key string) - DecodeValueOfObjCTypeAtSize(type_ *uint8, data unsafe.Pointer, size uint) - DecodeCMTimeForKey(key string) coremedia.Time - EncodePropertyList(aPropertyList objc.IObject) - DecodeDoubleForKey(key string) float64 - DecodeObjectOfClassForKey(aClass objc.IClass, key string) objc.Object - EncodeRect(rect Rect) - EncodeByrefObject(anObject objc.IObject) - DecodeSizeForKey(key string) Size - EncodeBytesLengthForKey(bytes *uint8, length uint, key string) EncodeIntegerForKey(value int, key string) - DecodeBytesForKeyReturnedLength(key string, lengthp *uint) *uint8 - DecodeValuesOfObjCTypes(types *uint8, args ...any) + EncodeByrefObject(anObject objc.IObject) + EncodeInt32ForKey(value int32, key string) + EncodePointForKey(point Point, key string) + DecodePropertyList() objc.Object + DecodePointForKey(key string) Point + DecodeDictionaryWithKeysOfClassObjectsOfClassForKey(keyCls objc.IClass, objectCls objc.IClass, key string) Dictionary + EncodeBytesLength(byteaddr unsafe.Pointer, length uint) + DecodePropertyListForKey(key string) objc.Object + DecodeTopLevelObjectOfClassesForKeyError(classes ISet, key string, error unsafe.Pointer) objc.Object DecodeBoolForKey(key string) bool DecodeArrayOfObjectsOfClassesForKey(classes ISet, key string) []objc.Object - EncodeValueOfObjCTypeAt(type_ *uint8, addr unsafe.Pointer) - EncodeSizeForKey(size Size, key string) - DecodePropertyList() objc.Object + DecodeCMTimeRangeForKey(key string) coremedia.TimeRange + EncodeFloatForKey(value float32, key string) + EncodeValuesOfObjCTypes(types *uint8, args ...any) ContainsValueForKey(key string) bool - FailWithError(error IError) - EncodeSize(size Size) - EncodePointForKey(point Point, key string) - DecodeRect() Rect + EncodeDoubleForKey(value float64, key string) + EncodeIntForKey(value int, key string) + DecodeCMTimeMappingForKey(key string) coremedia.TimeMapping + DecodeBytesWithReturnedLength(lengthp *uint) unsafe.Pointer EncodeInt64ForKey(value int64, key string) - EncodeInt32ForKey(value int32, key string) - EncodeConditionalObject(object objc.IObject) - EncodeArrayOfObjCTypeCountAt(type_ *uint8, count uint, array unsafe.Pointer) - EncodeBycopyObject(anObject objc.IObject) - EncodeBoolForKey(value bool, key string) + Error() Error + DecodingFailurePolicy() DecodingFailurePolicy + AllowedClasses() Set AllowsKeyedCoding() bool SystemVersion() int - AllowedClasses() Set RequiresSecureCoding() bool - Error() Error - DecodingFailurePolicy() DecodingFailurePolicy } // An abstract class that serves as the basis for objects that enable archiving and distribution of other objects. [Full Topic] @@ -131,71 +125,65 @@ func (c_ Coder) Init() Coder { return rv } -// Encodes a double-precision floating point value and associates it with the string key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409008-encodedouble?language=objc -func (c_ Coder) EncodeDoubleForKey(value float64, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeDouble:forKey:"), value, key) -} - -// Returns a decoded property list for the specified key. [Full Topic] +// Decodes and returns an NSData object that was previously encoded with encodeDataObject:. Subclasses must override this method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1416284-decodepropertylistforkey?language=objc -func (c_ Coder) DecodePropertyListForKey(key string) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodePropertyListForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409876-decodedataobject?language=objc +func (c_ Coder) DecodeDataObject() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("decodeDataObject")) return rv } -// Decodes a buffer of data whose types are unspecified. [Full Topic] +// Decodes and returns an NSSize structure that was previously encoded with encodeSize:forKey:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1415441-decodebyteswithreturnedlength?language=objc -func (c_ Coder) DecodeBytesWithReturnedLength(lengthp *uint) unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](c_, objc.Sel("decodeBytesWithReturnedLength:"), lengthp) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391253-decodesizeforkey?language=objc +func (c_ Coder) DecodeSizeForKey(key string) Size { + rv := objc.Call[Size](c_, objc.Sel("decodeSizeForKey:"), key) return rv } -// Decodes and returns an NSPoint structure that was previously encoded with [foundation/nscoder/encodepoint]. [Full Topic] +// Encodes a given Core Media time mapping structure and associates it with a specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391189-decodepoint?language=objc -func (c_ Coder) DecodePoint() Point { - rv := objc.Call[Point](c_, objc.Sel("decodePoint")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1389496-encodecmtimemapping?language=objc +func (c_ Coder) EncodeCMTimeMappingForKey(timeMapping coremedia.TimeMapping, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeCMTimeMapping:forKey:"), timeMapping, key) } -// Encodes a given Core Media time range structure and associates it with a specified key. [Full Topic] +// Decodes and returns a float value that was previously encoded with encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1386649-encodecmtimerange?language=objc -func (c_ Coder) EncodeCMTimeRangeForKey(timeRange coremedia.TimeRange, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeCMTimeRange:forKey:"), timeRange, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1408104-decodefloatforkey?language=objc +func (c_ Coder) DecodeFloatForKey(key string) float32 { + rv := objc.Call[float32](c_, objc.Sel("decodeFloatForKey:"), key) + return rv } -// Decodes and returns an NSPoint structure that was previously encoded with [foundation/nscoder/encodepoint]. [Full Topic] +// Decodes and returns an NSSize structure that was previously encoded with encodeSize:forKey:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391214-decodepointforkey?language=objc -func (c_ Coder) DecodePointForKey(key string) Point { - rv := objc.Call[Point](c_, objc.Sel("decodePointForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391144-decodesize?language=objc +func (c_ Coder) DecodeSize() Size { + rv := objc.Call[Size](c_, objc.Sel("decodeSize")) return rv } -// An encoding method for subclasses to override to conditionally encode an object, preserving common references to it, only if it has been unconditionally encoded. [Full Topic] +// Encodes a rectangle structure and associates it with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1413918-encodeconditionalobject?language=objc -func (c_ Coder) EncodeConditionalObjectForKey(object objc.IObject, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeConditionalObject:forKey:"), object, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391287-encoderect?language=objc +func (c_ Coder) EncodeRectForKey(rect Rect, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeRect:forKey:"), rect, key) } -// Encodes a given Core Media time structure and associates it with a specified key. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1388869-encodecmtime?language=objc -func (c_ Coder) EncodeCMTimeForKey(time coremedia.Time, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeCMTime:forKey:"), time, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/3563980-decodedictionarywithkeysofclasse?language=objc +func (c_ Coder) DecodeDictionaryWithKeysOfClassesObjectsOfClassesForKey(keyClasses ISet, objectClasses ISet, key string) Dictionary { + rv := objc.Call[Dictionary](c_, objc.Sel("decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:"), keyClasses, objectClasses, key) + return rv } -// Decodes an array of count items, whose Objective-C type is given by itemType. [Full Topic] +// Encodes a property list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1408354-decodearrayofobjctype?language=objc -func (c_ Coder) DecodeArrayOfObjCTypeCountAt(itemType *uint8, count uint, array unsafe.Pointer) { - objc.Call[objc.Void](c_, objc.Sel("decodeArrayOfObjCType:count:at:"), itemType, count, array) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1410643-encodepropertylist?language=objc +func (c_ Coder) EncodePropertyList(aPropertyList objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("encodePropertyList:"), aPropertyList) } // Encodes an object. [Full Topic] @@ -205,135 +193,148 @@ func (c_ Coder) EncodeObject(object objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("encodeObject:"), object) } -// Decodes a previously-encoded object, populating an error if decoding fails. [Full Topic] +// Decodes and returns a double value that was previously encoded with either encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442553-decodetoplevelobjectandreturnerr?language=objc -func (c_ Coder) DecodeTopLevelObjectAndReturnError(error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectAndReturnError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409374-decodedoubleforkey?language=objc +func (c_ Coder) DecodeDoubleForKey(key string) float64 { + rv := objc.Call[float64](c_, objc.Sel("decodeDoubleForKey:"), key) return rv } -// Decodes an object for the key, restricted to the specified classes. [Full Topic] +// This method is present for historical reasons and is not used with keyed archivers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442560-decodeobjectofclasses?language=objc -func (c_ Coder) DecodeObjectOfClassesForKey(classes ISet, key string) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeObjectOfClasses:forKey:"), classes, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1417703-versionforclassname?language=objc +func (c_ Coder) VersionForClassName(className string) int { + rv := objc.Call[int](c_, objc.Sel("versionForClassName:"), className) return rv } -// Decodes and returns a 32-bit integer value that was previously encoded with [foundation/nscoder/encodeint], [foundation/nscoder/encodeinteger], [foundation/nscoder/encodeint32], or [foundation/nscoder/encodeint64] and associated with the string key. [Full Topic] +// Encodes a given Core Media time range structure and associates it with a specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1408918-decodeint32forkey?language=objc -func (c_ Coder) DecodeInt32ForKey(key string) int32 { - rv := objc.Call[int32](c_, objc.Sel("decodeInt32ForKey:"), key) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1386649-encodecmtimerange?language=objc +func (c_ Coder) EncodeCMTimeRangeForKey(timeRange coremedia.TimeRange, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeCMTimeRange:forKey:"), timeRange, key) } -// Decode an object as one of several expected types, failing if the archived type does not match. [Full Topic] +// Encodes an array of the given Objective-C type, provided the number of items and a pointer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442539-decodetoplevelobjectofclasses?language=objc -func (c_ Coder) DecodeTopLevelObjectOfClassesForKeyError(classes ISet, key string, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectOfClasses:forKey:error:"), classes, key, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1417865-encodearrayofobjctype?language=objc +func (c_ Coder) EncodeArrayOfObjCTypeCountAt(type_ *uint8, count uint, array unsafe.Pointer) { + objc.Call[objc.Void](c_, objc.Sel("encodeArrayOfObjCType:count:at:"), type_, count, array) } -// Returns the Core Media time range structure associated with a given key. [Full Topic] +// Encodes a value of the given type at the given address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1385718-decodecmtimerangeforkey?language=objc -func (c_ Coder) DecodeCMTimeRangeForKey(key string) coremedia.TimeRange { - rv := objc.Call[coremedia.TimeRange](c_, objc.Sel("decodeCMTimeRangeForKey:"), key) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1414648-encodevalueofobjctype?language=objc +func (c_ Coder) EncodeValueOfObjCTypeAt(type_ *uint8, addr unsafe.Pointer) { + objc.Call[objc.Void](c_, objc.Sel("encodeValueOfObjCType:at:"), type_, addr) } -// Decode an object as an expected type, failing if the archived type does not match. [Full Topic] +// An encoding method for subclasses to override to conditionally encode an object, preserving common references to it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442575-decodetoplevelobjectofclass?language=objc -func (c_ Coder) DecodeTopLevelObjectOfClassForKeyError(aClass objc.IClass, key string, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectOfClass:forKey:error:"), aClass, key, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1415196-encodeconditionalobject?language=objc +func (c_ Coder) EncodeConditionalObject(object objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("encodeConditionalObject:"), object) } -// [Full Topic] +// Decodes a series of potentially different Objective-C types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/3563980-decodedictionarywithkeysofclasse?language=objc -func (c_ Coder) DecodeDictionaryWithKeysOfClassesObjectsOfClassesForKey(keyClasses ISet, objectClasses ISet, key string) Dictionary { - rv := objc.Call[Dictionary](c_, objc.Sel("decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:"), keyClasses, objectClasses, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442577-decodevaluesofobjctypes?language=objc +func (c_ Coder) DecodeValuesOfObjCTypes(types *uint8, args ...any) { + objc.Call[objc.Void](c_, objc.Sel("decodeValuesOfObjCTypes:"), append([]any{types}, args...)...) +} + +// Decodes and returns an object that was previously encoded with any of the encode…Object methods. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1414478-decodeobject?language=objc +func (c_ Coder) DecodeObject() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeObject")) return rv } -// Decodes and returns a previously-encoded object that was previously encoded with [foundation/nscoder/encodeobject] or [foundation/nscoder/encodeconditionalobject] and associated with the string key. [Full Topic] +// Decodes an object for the key, restricted to the specified class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1418185-decodeobjectforkey?language=objc -func (c_ Coder) DecodeObjectForKey(key string) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeObjectForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442558-decodeobjectofclass?language=objc +func (c_ Coder) DecodeObjectOfClassForKey(aClass objc.IClass, key string) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeObjectOfClass:forKey:"), aClass, key) return rv } -// Encodes a rectangle structure and associates it with the string key. [Full Topic] +// Signals to this coder that the decode operation has failed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391287-encoderect?language=objc -func (c_ Coder) EncodeRectForKey(rect Rect, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeRect:forKey:"), rect, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411455-failwitherror?language=objc +func (c_ Coder) FailWithError(error IError) { + objc.Call[objc.Void](c_, objc.Sel("failWithError:"), error) } -// Returns the Core Media time mapping structure associated with a given key. [Full Topic] +// Decodes and returns a 64-bit integer value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1389860-decodecmtimemappingforkey?language=objc -func (c_ Coder) DecodeCMTimeMappingForKey(key string) coremedia.TimeMapping { - rv := objc.Call[coremedia.TimeMapping](c_, objc.Sel("decodeCMTimeMappingForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1407878-decodeint64forkey?language=objc +func (c_ Coder) DecodeInt64ForKey(key string) int64 { + rv := objc.Call[int64](c_, objc.Sel("decodeInt64ForKey:"), key) return rv } -// Encodes a given Core Media time mapping structure and associates it with a specified key. [Full Topic] +// Decodes a buffer of data that was previously encoded with encodeBytes:length: and associated with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1389496-encodecmtimemapping?language=objc -func (c_ Coder) EncodeCMTimeMappingForKey(timeMapping coremedia.TimeMapping, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeCMTimeMapping:forKey:"), timeMapping, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411987-decodebytesforkey?language=objc +func (c_ Coder) DecodeBytesForKeyReturnedLength(key string, lengthp *uint) *uint8 { + rv := objc.Call[*uint8](c_, objc.Sel("decodeBytesForKey:returnedLength:"), key, lengthp) + return rv } -// Decodes and returns an int value that was previously encoded with [foundation/nscoder/encodeint], [foundation/nscoder/encodeinteger], [foundation/nscoder/encodeint32], or [foundation/nscoder/encodeint64] and associated with the string key. [Full Topic] +// Returns the Core Media time structure associated with a given key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411168-decodeintforkey?language=objc -func (c_ Coder) DecodeIntForKey(key string) int { - rv := objc.Call[int](c_, objc.Sel("decodeIntForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1389544-decodecmtimeforkey?language=objc +func (c_ Coder) DecodeCMTimeForKey(key string) coremedia.Time { + rv := objc.Call[coremedia.Time](c_, objc.Sel("decodeCMTimeForKey:"), key) return rv } -// This method is present for historical reasons and has no effect. [Full Topic] +// Decodes and returns an NSPoint structure that was previously encoded with encodePoint:forKey:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442547-setobjectzone?language=objc -func (c_ Coder) SetObjectZone(zone unsafe.Pointer) { - objc.Call[objc.Void](c_, objc.Sel("setObjectZone:"), zone) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391189-decodepoint?language=objc +func (c_ Coder) DecodePoint() Point { + rv := objc.Call[Point](c_, objc.Sel("decodePoint")) + return rv } -// Encodes a given data object. [Full Topic] +// An encoding method for subclasses to override such that it creates a copy, rather than a proxy, when decoded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411473-encodedataobject?language=objc -func (c_ Coder) EncodeDataObject(data []byte) { - objc.Call[objc.Void](c_, objc.Sel("encodeDataObject:"), data) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1418225-encodebycopyobject?language=objc +func (c_ Coder) EncodeBycopyObject(anObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("encodeBycopyObject:"), anObject) } -// Decodes and returns an object that was previously encoded with any of the encode…Object methods. [Full Topic] +// Encodes a Boolean value and associates it with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1414478-decodeobject?language=objc -func (c_ Coder) DecodeObject() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeObject")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409236-encodebool?language=objc +func (c_ Coder) EncodeBoolForKey(value bool, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeBool:forKey:"), value, key) +} + +// Decodes the previously-encoded object associated by a key, populating an error if decoding fails. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442541-decodetoplevelobjectforkey?language=objc +func (c_ Coder) DecodeTopLevelObjectForKeyError(key string, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectForKey:error:"), key, error) return rv } -// Decodes and returns a float value that was previously encoded with [foundation/nscoder/encodefloat] or [foundation/nscoder/encodedouble] and associated with the string key. [Full Topic] +// Decode an object as an expected type, failing if the archived type does not match. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1408104-decodefloatforkey?language=objc -func (c_ Coder) DecodeFloatForKey(key string) float32 { - rv := objc.Call[float32](c_, objc.Sel("decodeFloatForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442575-decodetoplevelobjectofclass?language=objc +func (c_ Coder) DecodeTopLevelObjectOfClassForKeyError(aClass objc.IClass, key string, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectOfClass:forKey:error:"), aClass, key, error) return rv } -// Encodes a point. [Full Topic] +// Decodes an object for the key, restricted to the specified classes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391138-encodepoint?language=objc -func (c_ Coder) EncodePoint(point Point) { - objc.Call[objc.Void](c_, objc.Sel("encodePoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442560-decodeobjectofclasses?language=objc +func (c_ Coder) DecodeObjectOfClassesForKey(classes ISet, key string) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeObjectOfClasses:forKey:"), classes, key) + return rv } // [Full Topic] @@ -344,65 +345,64 @@ func (c_ Coder) DecodeArrayOfObjectsOfClassForKey(cls objc.IClass, key string) [ return rv } -// Decodes and returns a 64-bit integer value that was previously encoded with [foundation/nscoder/encodeint], [foundation/nscoder/encodeinteger], [foundation/nscoder/encodeint32], or [foundation/nscoder/encodeint64] and associated with the string key. [Full Topic] +// Decodes a previously-encoded object, populating an error if decoding fails. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1407878-decodeint64forkey?language=objc -func (c_ Coder) DecodeInt64ForKey(key string) int64 { - rv := objc.Call[int64](c_, objc.Sel("decodeInt64ForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442553-decodetoplevelobjectandreturnerr?language=objc +func (c_ Coder) DecodeTopLevelObjectAndReturnError(error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectAndReturnError:"), error) return rv } -// Encodes a C integer value and associates it with the string key. [Full Topic] +// Decodes an array of count items, whose Objective-C type is given by itemType. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1413906-encodeint?language=objc -func (c_ Coder) EncodeIntForKey(value int, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeInt:forKey:"), value, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1408354-decodearrayofobjctype?language=objc +func (c_ Coder) DecodeArrayOfObjCTypeCountAt(itemType *uint8, count uint, array unsafe.Pointer) { + objc.Call[objc.Void](c_, objc.Sel("decodeArrayOfObjCType:count:at:"), itemType, count, array) } -// This method is present for historical reasons and has no effect. [Full Topic] +// Encodes a given data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442570-objectzone?language=objc -func (c_ Coder) ObjectZone() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](c_, objc.Sel("objectZone")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411473-encodedataobject?language=objc +func (c_ Coder) EncodeDataObject(data []byte) { + objc.Call[objc.Void](c_, objc.Sel("encodeDataObject:"), data) } -// [Full Topic] +// Decodes a single value of a known type from the specified data buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/3563979-decodedictionarywithkeysofclass?language=objc -func (c_ Coder) DecodeDictionaryWithKeysOfClassObjectsOfClassForKey(keyCls objc.IClass, objectCls objc.IClass, key string) Dictionary { - rv := objc.Call[Dictionary](c_, objc.Sel("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"), keyCls, objectCls, key) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/2919430-decodevalueofobjctype?language=objc +func (c_ Coder) DecodeValueOfObjCTypeAtSize(type_ *uint8, data unsafe.Pointer, size uint) { + objc.Call[objc.Void](c_, objc.Sel("decodeValueOfObjCType:at:size:"), type_, data, size) } -// Encodes a buffer of data of an unspecified type. [Full Topic] +// Encodes a given Core Media time structure and associates it with a specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411664-encodebytes?language=objc -func (c_ Coder) EncodeBytesLength(byteaddr unsafe.Pointer, length uint) { - objc.Call[objc.Void](c_, objc.Sel("encodeBytes:length:"), byteaddr, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1388869-encodecmtime?language=objc +func (c_ Coder) EncodeCMTimeForKey(time coremedia.Time, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeCMTime:forKey:"), time, key) } -// Decodes and returns an NSData object that was previously encoded with [foundation/nscoder/encodedataobject]. Subclasses must override this method. [Full Topic] +// This method is present for historical reasons and has no effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409876-decodedataobject?language=objc -func (c_ Coder) DecodeDataObject() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("decodeDataObject")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442570-objectzone?language=objc +func (c_ Coder) ObjectZone() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](c_, objc.Sel("objectZone")) return rv } -// Decodes the previously-encoded object associated by a key, populating an error if decoding fails. [Full Topic] +// Decodes and returns a 32-bit integer value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442541-decodetoplevelobjectforkey?language=objc -func (c_ Coder) DecodeTopLevelObjectForKeyError(key string, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectForKey:error:"), key, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1408918-decodeint32forkey?language=objc +func (c_ Coder) DecodeInt32ForKey(key string) int32 { + rv := objc.Call[int32](c_, objc.Sel("decodeInt32ForKey:"), key) return rv } -// Encodes a series of values of potentially differing Objective-C types. [Full Topic] +// Decodes and returns a previously-encoded object that was previously encoded with encodeObject: or encodeConditionalObject: and associated with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442581-encodevaluesofobjctypes?language=objc -func (c_ Coder) EncodeValuesOfObjCTypes(types *uint8, args ...any) { - objc.Call[objc.Void](c_, objc.Sel("encodeValuesOfObjCTypes:"), append([]any{types}, args...)...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1418185-decodeobjectforkey?language=objc +func (c_ Coder) DecodeObjectForKey(key string) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeObjectForKey:"), key) + return rv } // An encoding method for subclasses to override to encode an interconnected group of objects, starting with the provided root object. [Full Topic] @@ -412,15 +412,7 @@ func (c_ Coder) EncodeRootObject(rootObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("encodeRootObject:"), rootObject) } -// Decodes and returns an NSSize structure that was previously encoded with [foundation/nscoder/encodesize]. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391144-decodesize?language=objc -func (c_ Coder) DecodeSize() Size { - rv := objc.Call[Size](c_, objc.Sel("decodeSize")) - return rv -} - -// Decodes and returns an NSRect structure that was previously encoded with [foundation/nscoder/encoderect]. [Full Topic] +// Decodes and returns an NSRect structure that was previously encoded with encodeRect:forKey:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391116-decoderectforkey?language=objc func (c_ Coder) DecodeRectForKey(key string) Rect { @@ -428,126 +420,120 @@ func (c_ Coder) DecodeRectForKey(key string) Rect { return rv } -// This method is present for historical reasons and is not used with keyed archivers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1417703-versionforclassname?language=objc -func (c_ Coder) VersionForClassName(className string) int { - rv := objc.Call[int](c_, objc.Sel("versionForClassName:"), className) - return rv -} - -// Decodes and returns an NSInteger value that was previously encoded with [foundation/nscoder/encodeint], [foundation/nscoder/encodeinteger], [foundation/nscoder/encodeint32], or [foundation/nscoder/encodeint64] and associated with the string key. [Full Topic] +// Decodes and returns an NSRect structure that was previously encoded with encodeRect:forKey:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409246-decodeintegerforkey?language=objc -func (c_ Coder) DecodeIntegerForKey(key string) int { - rv := objc.Call[int](c_, objc.Sel("decodeIntegerForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391269-decoderect?language=objc +func (c_ Coder) DecodeRect() Rect { + rv := objc.Call[Rect](c_, objc.Sel("decodeRect")) return rv } -// Encodes a floating point value and associates it with the string key. [Full Topic] +// This method is present for historical reasons and has no effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1414384-encodefloat?language=objc -func (c_ Coder) EncodeFloatForKey(value float32, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeFloat:forKey:"), value, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442547-setobjectzone?language=objc +func (c_ Coder) SetObjectZone(zone unsafe.Pointer) { + objc.Call[objc.Void](c_, objc.Sel("setObjectZone:"), zone) } -// Encodes an object and associates it with the string key. [Full Topic] +// Decodes and returns an int value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411568-encodeobject?language=objc -func (c_ Coder) EncodeObjectForKey(object objc.IObject, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeObject:forKey:"), object, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411168-decodeintforkey?language=objc +func (c_ Coder) DecodeIntForKey(key string) int { + rv := objc.Call[int](c_, objc.Sel("decodeIntForKey:"), key) + return rv } -// Decodes a single value of a known type from the specified data buffer. [Full Topic] +// Encodes a size structure and associates it with the given string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/2919430-decodevalueofobjctype?language=objc -func (c_ Coder) DecodeValueOfObjCTypeAtSize(type_ *uint8, data unsafe.Pointer, size uint) { - objc.Call[objc.Void](c_, objc.Sel("decodeValueOfObjCType:at:size:"), type_, data, size) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391176-encodesize?language=objc +func (c_ Coder) EncodeSizeForKey(size Size, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeSize:forKey:"), size, key) } -// Returns the Core Media time structure associated with a given key. [Full Topic] +// Decodes and returns an NSInteger value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1389544-decodecmtimeforkey?language=objc -func (c_ Coder) DecodeCMTimeForKey(key string) coremedia.Time { - rv := objc.Call[coremedia.Time](c_, objc.Sel("decodeCMTimeForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409246-decodeintegerforkey?language=objc +func (c_ Coder) DecodeIntegerForKey(key string) int { + rv := objc.Call[int](c_, objc.Sel("decodeIntegerForKey:"), key) return rv } -// Encodes a property list. [Full Topic] +// Encodes an integer value and associates it with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1410643-encodepropertylist?language=objc -func (c_ Coder) EncodePropertyList(aPropertyList objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("encodePropertyList:"), aPropertyList) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411551-encodeinteger?language=objc +func (c_ Coder) EncodeIntegerForKey(value int, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeInteger:forKey:"), value, key) } -// Decodes and returns a double value that was previously encoded with either [foundation/nscoder/encodefloat] or [foundation/nscoder/encodedouble] and associated with the string key. [Full Topic] +// An encoding method for subclasses to override such that it creates a proxy, rather than a copy, when decoded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409374-decodedoubleforkey?language=objc -func (c_ Coder) DecodeDoubleForKey(key string) float64 { - rv := objc.Call[float64](c_, objc.Sel("decodeDoubleForKey:"), key) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1416279-encodebyrefobject?language=objc +func (c_ Coder) EncodeByrefObject(anObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("encodeByrefObject:"), anObject) } -// Decodes an object for the key, restricted to the specified class. [Full Topic] +// Encodes a 32-bit integer value and associates it with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442558-decodeobjectofclass?language=objc -func (c_ Coder) DecodeObjectOfClassForKey(aClass objc.IClass, key string) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeObjectOfClass:forKey:"), aClass, key) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1412395-encodeint32?language=objc +func (c_ Coder) EncodeInt32ForKey(value int32, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeInt32:forKey:"), value, key) } -// Encodes a rectangle structure. [Full Topic] +// Encodes a point and associates it with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391263-encoderect?language=objc -func (c_ Coder) EncodeRect(rect Rect) { - objc.Call[objc.Void](c_, objc.Sel("encodeRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391114-encodepoint?language=objc +func (c_ Coder) EncodePointForKey(point Point, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodePoint:forKey:"), point, key) } -// An encoding method for subclasses to override such that it creates a proxy, rather than a copy, when decoded. [Full Topic] +// Decodes a property list that was previously encoded with encodePropertyList:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1416279-encodebyrefobject?language=objc -func (c_ Coder) EncodeByrefObject(anObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("encodeByrefObject:"), anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411916-decodepropertylist?language=objc +func (c_ Coder) DecodePropertyList() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodePropertyList")) + return rv } -// Decodes and returns an NSSize structure that was previously encoded with [foundation/nscoder/encodesize]. [Full Topic] +// Decodes and returns an NSPoint structure that was previously encoded with encodePoint:forKey:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391253-decodesizeforkey?language=objc -func (c_ Coder) DecodeSizeForKey(key string) Size { - rv := objc.Call[Size](c_, objc.Sel("decodeSizeForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391214-decodepointforkey?language=objc +func (c_ Coder) DecodePointForKey(key string) Point { + rv := objc.Call[Point](c_, objc.Sel("decodePointForKey:"), key) return rv } -// Encodes a buffer of data, given its length and a pointer, and associates it with a string key. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1413078-encodebytes?language=objc -func (c_ Coder) EncodeBytesLengthForKey(bytes *uint8, length uint, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeBytes:length:forKey:"), bytes, length, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/3563979-decodedictionarywithkeysofclass?language=objc +func (c_ Coder) DecodeDictionaryWithKeysOfClassObjectsOfClassForKey(keyCls objc.IClass, objectCls objc.IClass, key string) Dictionary { + rv := objc.Call[Dictionary](c_, objc.Sel("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"), keyCls, objectCls, key) + return rv } -// Encodes an integer value and associates it with the string key. [Full Topic] +// Encodes a buffer of data of an unspecified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411551-encodeinteger?language=objc -func (c_ Coder) EncodeIntegerForKey(value int, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeInteger:forKey:"), value, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411664-encodebytes?language=objc +func (c_ Coder) EncodeBytesLength(byteaddr unsafe.Pointer, length uint) { + objc.Call[objc.Void](c_, objc.Sel("encodeBytes:length:"), byteaddr, length) } -// Decodes a buffer of data that was previously encoded with [foundation/nscoder/encodebytes] and associated with the string key. [Full Topic] +// Returns a decoded property list for the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411987-decodebytesforkey?language=objc -func (c_ Coder) DecodeBytesForKeyReturnedLength(key string, lengthp *uint) *uint8 { - rv := objc.Call[*uint8](c_, objc.Sel("decodeBytesForKey:returnedLength:"), key, lengthp) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1416284-decodepropertylistforkey?language=objc +func (c_ Coder) DecodePropertyListForKey(key string) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodePropertyListForKey:"), key) return rv } -// Decodes a series of potentially different Objective-C types. [Full Topic] +// Decode an object as one of several expected types, failing if the archived type does not match. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442577-decodevaluesofobjctypes?language=objc -func (c_ Coder) DecodeValuesOfObjCTypes(types *uint8, args ...any) { - objc.Call[objc.Void](c_, objc.Sel("decodeValuesOfObjCTypes:"), append([]any{types}, args...)...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442539-decodetoplevelobjectofclasses?language=objc +func (c_ Coder) DecodeTopLevelObjectOfClassesForKeyError(classes ISet, key string, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectOfClasses:forKey:error:"), classes, key, error) + return rv } -// Decodes and returns a boolean value that was previously encoded with [foundation/nscoder/encodebool] and associated with the string key. [Full Topic] +// Decodes and returns a boolean value that was previously encoded with encodeBool:forKey: and associated with the string key. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409293-decodeboolforkey?language=objc func (c_ Coder) DecodeBoolForKey(key string) bool { @@ -563,26 +549,26 @@ func (c_ Coder) DecodeArrayOfObjectsOfClassesForKey(classes ISet, key string) [] return rv } -// Encodes a value of the given type at the given address. [Full Topic] +// Returns the Core Media time range structure associated with a given key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1414648-encodevalueofobjctype?language=objc -func (c_ Coder) EncodeValueOfObjCTypeAt(type_ *uint8, addr unsafe.Pointer) { - objc.Call[objc.Void](c_, objc.Sel("encodeValueOfObjCType:at:"), type_, addr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1385718-decodecmtimerangeforkey?language=objc +func (c_ Coder) DecodeCMTimeRangeForKey(key string) coremedia.TimeRange { + rv := objc.Call[coremedia.TimeRange](c_, objc.Sel("decodeCMTimeRangeForKey:"), key) + return rv } -// Encodes a size structure and associates it with the given string key. [Full Topic] +// Encodes a floating point value and associates it with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391176-encodesize?language=objc -func (c_ Coder) EncodeSizeForKey(size Size, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeSize:forKey:"), size, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1414384-encodefloat?language=objc +func (c_ Coder) EncodeFloatForKey(value float32, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeFloat:forKey:"), value, key) } -// Decodes a property list that was previously encoded with [foundation/nscoder/encodepropertylist]. [Full Topic] +// Encodes a series of values of potentially differing Objective-C types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411916-decodepropertylist?language=objc -func (c_ Coder) DecodePropertyList() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodePropertyList")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442581-encodevaluesofobjctypes?language=objc +func (c_ Coder) EncodeValuesOfObjCTypes(types *uint8, args ...any) { + objc.Call[objc.Void](c_, objc.Sel("encodeValuesOfObjCTypes:"), append([]any{types}, args...)...) } // Returns a Boolean value that indicates whether an encoded value is available for a string. [Full Topic] @@ -593,32 +579,33 @@ func (c_ Coder) ContainsValueForKey(key string) bool { return rv } -// Signals to this coder that the decode operation has failed. [Full Topic] +// Encodes a double-precision floating point value and associates it with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1411455-failwitherror?language=objc -func (c_ Coder) FailWithError(error IError) { - objc.Call[objc.Void](c_, objc.Sel("failWithError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409008-encodedouble?language=objc +func (c_ Coder) EncodeDoubleForKey(value float64, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeDouble:forKey:"), value, key) } -// Encodes a size structure. [Full Topic] +// Encodes a C integer value and associates it with the string key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391291-encodesize?language=objc -func (c_ Coder) EncodeSize(size Size) { - objc.Call[objc.Void](c_, objc.Sel("encodeSize:"), size) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1413906-encodeint?language=objc +func (c_ Coder) EncodeIntForKey(value int, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeInt:forKey:"), value, key) } -// Encodes a point and associates it with the string key. [Full Topic] +// Returns the Core Media time mapping structure associated with a given key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391114-encodepoint?language=objc -func (c_ Coder) EncodePointForKey(point Point, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodePoint:forKey:"), point, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1389860-decodecmtimemappingforkey?language=objc +func (c_ Coder) DecodeCMTimeMappingForKey(key string) coremedia.TimeMapping { + rv := objc.Call[coremedia.TimeMapping](c_, objc.Sel("decodeCMTimeMappingForKey:"), key) + return rv } -// Decodes and returns an NSRect structure that was previously encoded with [foundation/nscoder/encoderect]. [Full Topic] +// Decodes a buffer of data whose types are unspecified. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391269-decoderect?language=objc -func (c_ Coder) DecodeRect() Rect { - rv := objc.Call[Rect](c_, objc.Sel("decodeRect")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1415441-decodebyteswithreturnedlength?language=objc +func (c_ Coder) DecodeBytesWithReturnedLength(lengthp *uint) unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](c_, objc.Sel("decodeBytesWithReturnedLength:"), lengthp) return rv } @@ -629,39 +616,28 @@ func (c_ Coder) EncodeInt64ForKey(value int64, key string) { objc.Call[objc.Void](c_, objc.Sel("encodeInt64:forKey:"), value, key) } -// Encodes a 32-bit integer value and associates it with the string key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1412395-encodeint32?language=objc -func (c_ Coder) EncodeInt32ForKey(value int32, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeInt32:forKey:"), value, key) -} - -// An encoding method for subclasses to override to conditionally encode an object, preserving common references to it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1415196-encodeconditionalobject?language=objc -func (c_ Coder) EncodeConditionalObject(object objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("encodeConditionalObject:"), object) -} - -// Encodes an array of the given Objective-C type, provided the number of items and a pointer. [Full Topic] +// An error in the top-level encode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1417865-encodearrayofobjctype?language=objc -func (c_ Coder) EncodeArrayOfObjCTypeCountAt(type_ *uint8, count uint, array unsafe.Pointer) { - objc.Call[objc.Void](c_, objc.Sel("encodeArrayOfObjCType:count:at:"), type_, count, array) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1643263-error?language=objc +func (c_ Coder) Error() Error { + rv := objc.Call[Error](c_, objc.Sel("error")) + return rv } -// An encoding method for subclasses to override such that it creates a copy, rather than a proxy, when decoded. [Full Topic] +// The action the coder should take when decoding fails. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1418225-encodebycopyobject?language=objc -func (c_ Coder) EncodeBycopyObject(anObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("encodeBycopyObject:"), anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1642984-decodingfailurepolicy?language=objc +func (c_ Coder) DecodingFailurePolicy() DecodingFailurePolicy { + rv := objc.Call[DecodingFailurePolicy](c_, objc.Sel("decodingFailurePolicy")) + return rv } -// Encodes a Boolean value and associates it with the string key. [Full Topic] +// The set of coded classes allowed for secure coding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409236-encodebool?language=objc -func (c_ Coder) EncodeBoolForKey(value bool, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeBool:forKey:"), value, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1412486-allowedclasses?language=objc +func (c_ Coder) AllowedClasses() Set { + rv := objc.Call[Set](c_, objc.Sel("allowedClasses")) + return rv } // A Boolean value that indicates whether the receiver supports keyed coding of objects. [Full Topic] @@ -680,14 +656,6 @@ func (c_ Coder) SystemVersion() int { return rv } -// The set of coded classes allowed for secure coding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1412486-allowedclasses?language=objc -func (c_ Coder) AllowedClasses() Set { - rv := objc.Call[Set](c_, objc.Sel("allowedClasses")) - return rv -} - // Indicates whether the archiver requires all archived classes to resist object substitution attacks. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1409845-requiressecurecoding?language=objc @@ -695,19 +663,3 @@ func (c_ Coder) RequiresSecureCoding() bool { rv := objc.Call[bool](c_, objc.Sel("requiresSecureCoding")) return rv } - -// An error in the top-level encode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1643263-error?language=objc -func (c_ Coder) Error() Error { - rv := objc.Call[Error](c_, objc.Sel("error")) - return rv -} - -// The action the coder should take when decoding fails. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1642984-decodingfailurepolicy?language=objc -func (c_ Coder) DecodingFailurePolicy() DecodingFailurePolicy { - rv := objc.Call[DecodingFailurePolicy](c_, objc.Sel("decodingFailurePolicy")) - return rv -} diff --git a/macos/foundation/comparison_predicate.gen.go b/macos/foundation/comparison_predicate.gen.go index 3002e144..15adcd48 100644 --- a/macos/foundation/comparison_predicate.gen.go +++ b/macos/foundation/comparison_predicate.gen.go @@ -18,9 +18,9 @@ type _ComparisonPredicateClass struct { // An interface definition for the [ComparisonPredicate] class. type IComparisonPredicate interface { IPredicate - ComparisonPredicateModifier() ComparisonPredicateModifier - CustomSelector() objc.Selector Options() ComparisonPredicateOptions + CustomSelector() objc.Selector + ComparisonPredicateModifier() ComparisonPredicateModifier RightExpression() Expression LeftExpression() Expression PredicateOperatorType() PredicateOperatorType @@ -39,20 +39,6 @@ func ComparisonPredicateFrom(ptr unsafe.Pointer) ComparisonPredicate { } } -func (c_ ComparisonPredicate) InitWithLeftExpressionRightExpressionModifierTypeOptions(lhs IExpression, rhs IExpression, modifier ComparisonPredicateModifier, type_ PredicateOperatorType, options ComparisonPredicateOptions) ComparisonPredicate { - rv := objc.Call[ComparisonPredicate](c_, objc.Sel("initWithLeftExpression:rightExpression:modifier:type:options:"), lhs, rhs, modifier, type_, options) - return rv -} - -// Creates a predicate to a specified type that you form by combining specified left and right expressions using a specified modifier and options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscomparisonpredicate/1413523-initwithleftexpression?language=objc -func NewComparisonPredicateWithLeftExpressionRightExpressionModifierTypeOptions(lhs IExpression, rhs IExpression, modifier ComparisonPredicateModifier, type_ PredicateOperatorType, options ComparisonPredicateOptions) ComparisonPredicate { - instance := ComparisonPredicateClass.Alloc().InitWithLeftExpressionRightExpressionModifierTypeOptions(lhs, rhs, modifier, type_, options) - instance.Autorelease() - return instance -} - func (c_ ComparisonPredicate) InitWithLeftExpressionRightExpressionCustomSelector(lhs IExpression, rhs IExpression, selector objc.Selector) ComparisonPredicate { rv := objc.Call[ComparisonPredicate](c_, objc.Sel("initWithLeftExpression:rightExpression:customSelector:"), lhs, rhs, selector) return rv @@ -116,26 +102,11 @@ func ComparisonPredicate_PredicateWithLeftExpressionRightExpressionCustomSelecto return ComparisonPredicateClass.PredicateWithLeftExpressionRightExpressionCustomSelector(lhs, rhs, selector) } -// Creates and returns a predicate of a given type formed by combining given left and right expressions using a given modifier and options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscomparisonpredicate/1568140-predicatewithleftexpression?language=objc -func (cc _ComparisonPredicateClass) PredicateWithLeftExpressionRightExpressionModifierTypeOptions(lhs IExpression, rhs IExpression, modifier ComparisonPredicateModifier, type_ PredicateOperatorType, options ComparisonPredicateOptions) ComparisonPredicate { - rv := objc.Call[ComparisonPredicate](cc, objc.Sel("predicateWithLeftExpression:rightExpression:modifier:type:options:"), lhs, rhs, modifier, type_, options) - return rv -} - -// Creates and returns a predicate of a given type formed by combining given left and right expressions using a given modifier and options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscomparisonpredicate/1568140-predicatewithleftexpression?language=objc -func ComparisonPredicate_PredicateWithLeftExpressionRightExpressionModifierTypeOptions(lhs IExpression, rhs IExpression, modifier ComparisonPredicateModifier, type_ PredicateOperatorType, options ComparisonPredicateOptions) ComparisonPredicate { - return ComparisonPredicateClass.PredicateWithLeftExpressionRightExpressionModifierTypeOptions(lhs, rhs, modifier, type_, options) -} - -// The comparison predicate modifier for the receiver. [Full Topic] +// The options to use for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscomparisonpredicate/1416376-comparisonpredicatemodifier?language=objc -func (c_ ComparisonPredicate) ComparisonPredicateModifier() ComparisonPredicateModifier { - rv := objc.Call[ComparisonPredicateModifier](c_, objc.Sel("comparisonPredicateModifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscomparisonpredicate/1414069-options?language=objc +func (c_ ComparisonPredicate) Options() ComparisonPredicateOptions { + rv := objc.Call[ComparisonPredicateOptions](c_, objc.Sel("options")) return rv } @@ -147,11 +118,11 @@ func (c_ ComparisonPredicate) CustomSelector() objc.Selector { return rv } -// The options to use for the receiver. [Full Topic] +// The comparison predicate modifier for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscomparisonpredicate/1414069-options?language=objc -func (c_ ComparisonPredicate) Options() ComparisonPredicateOptions { - rv := objc.Call[ComparisonPredicateOptions](c_, objc.Sel("options")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscomparisonpredicate/1416376-comparisonpredicatemodifier?language=objc +func (c_ ComparisonPredicate) ComparisonPredicateModifier() ComparisonPredicateModifier { + rv := objc.Call[ComparisonPredicateModifier](c_, objc.Sel("comparisonPredicateModifier")) return rv } diff --git a/macos/foundation/compound_predicate.gen.go b/macos/foundation/compound_predicate.gen.go index 7893d012..53f63f60 100644 --- a/macos/foundation/compound_predicate.gen.go +++ b/macos/foundation/compound_predicate.gen.go @@ -18,8 +18,8 @@ type _CompoundPredicateClass struct { // An interface definition for the [CompoundPredicate] class. type ICompoundPredicate interface { IPredicate - CompoundPredicateType() CompoundPredicateType Subpredicates() []objc.Object + CompoundPredicateType() CompoundPredicateType } // A specialized predicate that evaluates logical combinations of other predicates. [Full Topic] @@ -83,6 +83,21 @@ func CompoundPredicate_PredicateWithSubstitutionVariables(variables map[string]o return instance } +// Returns a new predicate that you form using a NOT operation on a specified predicate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscompoundpredicate/1409462-notpredicatewithsubpredicate?language=objc +func (cc _CompoundPredicateClass) NotPredicateWithSubpredicate(predicate IPredicate) CompoundPredicate { + rv := objc.Call[CompoundPredicate](cc, objc.Sel("notPredicateWithSubpredicate:"), predicate) + return rv +} + +// Returns a new predicate that you form using a NOT operation on a specified predicate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscompoundpredicate/1409462-notpredicatewithsubpredicate?language=objc +func CompoundPredicate_NotPredicateWithSubpredicate(predicate IPredicate) CompoundPredicate { + return CompoundPredicateClass.NotPredicateWithSubpredicate(predicate) +} + // Returns a new predicate that you form using an AND operation on the predicates in a specified array. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscompoundpredicate/1407855-andpredicatewithsubpredicates?language=objc @@ -113,21 +128,14 @@ func CompoundPredicate_OrPredicateWithSubpredicates(subpredicates []IPredicate) return CompoundPredicateClass.OrPredicateWithSubpredicates(subpredicates) } -// Returns a new predicate that you form using a NOT operation on a specified predicate. [Full Topic] +// The receiver’s subpredicates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscompoundpredicate/1409462-notpredicatewithsubpredicate?language=objc -func (cc _CompoundPredicateClass) NotPredicateWithSubpredicate(predicate IPredicate) CompoundPredicate { - rv := objc.Call[CompoundPredicate](cc, objc.Sel("notPredicateWithSubpredicate:"), predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscompoundpredicate/1410273-subpredicates?language=objc +func (c_ CompoundPredicate) Subpredicates() []objc.Object { + rv := objc.Call[[]objc.Object](c_, objc.Sel("subpredicates")) return rv } -// Returns a new predicate that you form using a NOT operation on a specified predicate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscompoundpredicate/1409462-notpredicatewithsubpredicate?language=objc -func CompoundPredicate_NotPredicateWithSubpredicate(predicate IPredicate) CompoundPredicate { - return CompoundPredicateClass.NotPredicateWithSubpredicate(predicate) -} - // The predicate type for the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscompoundpredicate/1412973-compoundpredicatetype?language=objc @@ -135,11 +143,3 @@ func (c_ CompoundPredicate) CompoundPredicateType() CompoundPredicateType { rv := objc.Call[CompoundPredicateType](c_, objc.Sel("compoundPredicateType")) return rv } - -// The receiver’s subpredicates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscompoundpredicate/1410273-subpredicates?language=objc -func (c_ CompoundPredicate) Subpredicates() []objc.Object { - rv := objc.Call[[]objc.Object](c_, objc.Sel("subpredicates")) - return rv -} diff --git a/macos/foundation/condition.gen.go b/macos/foundation/condition.gen.go index a586c657..c2a244cf 100644 --- a/macos/foundation/condition.gen.go +++ b/macos/foundation/condition.gen.go @@ -18,9 +18,9 @@ type _ConditionClass struct { // An interface definition for the [Condition] class. type ICondition interface { objc.IObject - Broadcast() Signal() Wait() + Broadcast() WaitUntilDate(limit IDate) bool Name() string SetName(value string) @@ -59,13 +59,6 @@ func (c_ Condition) Init() Condition { return rv } -// Signals the condition, waking up all threads waiting on it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscondition/1415094-broadcast?language=objc -func (c_ Condition) Broadcast() { - objc.Call[objc.Void](c_, objc.Sel("broadcast")) -} - // Signals the condition, waking up one thread waiting on it. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscondition/1415724-signal?language=objc @@ -80,6 +73,13 @@ func (c_ Condition) Wait() { objc.Call[objc.Void](c_, objc.Sel("wait")) } +// Signals the condition, waking up all threads waiting on it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscondition/1415094-broadcast?language=objc +func (c_ Condition) Broadcast() { + objc.Call[objc.Void](c_, objc.Sel("broadcast")) +} + // Blocks the current thread until the condition is signaled or the specified time limit is reached. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscondition/1418307-waituntildate?language=objc diff --git a/macos/foundation/condition_lock.gen.go b/macos/foundation/condition_lock.gen.go index 7da0c58e..f69b6138 100644 --- a/macos/foundation/condition_lock.gen.go +++ b/macos/foundation/condition_lock.gen.go @@ -18,12 +18,11 @@ type _ConditionLockClass struct { // An interface definition for the [ConditionLock] class. type IConditionLock interface { objc.IObject - LockWhenConditionBeforeDate(condition int, limit IDate) bool - TryLock() bool LockWhenCondition(condition int) + UnlockWithCondition(condition int) TryLockWhenCondition(condition int) bool + TryLock() bool LockBeforeDate(limit IDate) bool - UnlockWithCondition(condition int) Name() string SetName(value string) Condition() int @@ -76,22 +75,6 @@ func (c_ ConditionLock) Init() ConditionLock { return rv } -// Attempts to acquire a lock before a specified moment in time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsconditionlock/1408215-lockwhencondition?language=objc -func (c_ ConditionLock) LockWhenConditionBeforeDate(condition int, limit IDate) bool { - rv := objc.Call[bool](c_, objc.Sel("lockWhenCondition:beforeDate:"), condition, limit) - return rv -} - -// Attempts to acquire a lock without regard to the receiver’s condition. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsconditionlock/1409458-trylock?language=objc -func (c_ ConditionLock) TryLock() bool { - rv := objc.Call[bool](c_, objc.Sel("tryLock")) - return rv -} - // Attempts to acquire a lock. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsconditionlock/1417832-lockwhencondition?language=objc @@ -99,6 +82,13 @@ func (c_ ConditionLock) LockWhenCondition(condition int) { objc.Call[objc.Void](c_, objc.Sel("lockWhenCondition:"), condition) } +// Relinquishes the lock and sets the receiver’s condition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsconditionlock/1412052-unlockwithcondition?language=objc +func (c_ ConditionLock) UnlockWithCondition(condition int) { + objc.Call[objc.Void](c_, objc.Sel("unlockWithCondition:"), condition) +} + // Attempts to acquire a lock if the receiver’s condition is equal to the specified condition. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsconditionlock/1413548-trylockwhencondition?language=objc @@ -107,6 +97,14 @@ func (c_ ConditionLock) TryLockWhenCondition(condition int) bool { return rv } +// Attempts to acquire a lock without regard to the receiver’s condition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsconditionlock/1409458-trylock?language=objc +func (c_ ConditionLock) TryLock() bool { + rv := objc.Call[bool](c_, objc.Sel("tryLock")) + return rv +} + // Attempts to acquire a lock before a specified moment in time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsconditionlock/1418253-lockbeforedate?language=objc @@ -115,13 +113,6 @@ func (c_ ConditionLock) LockBeforeDate(limit IDate) bool { return rv } -// Relinquishes the lock and sets the receiver’s condition. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsconditionlock/1412052-unlockwithcondition?language=objc -func (c_ ConditionLock) UnlockWithCondition(condition int) { - objc.Call[objc.Void](c_, objc.Sel("unlockWithCondition:"), condition) -} - // The name associated with the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsconditionlock/1411294-name?language=objc diff --git a/macos/foundation/counted_set.gen.go b/macos/foundation/counted_set.gen.go index 22bc0616..ba217d7d 100644 --- a/macos/foundation/counted_set.gen.go +++ b/macos/foundation/counted_set.gen.go @@ -34,30 +34,30 @@ func CountedSetFrom(ptr unsafe.Pointer) CountedSet { } } -func (c_ CountedSet) InitWithArray(array []objc.IObject) CountedSet { - rv := objc.Call[CountedSet](c_, objc.Sel("initWithArray:"), array) +func (c_ CountedSet) InitWithCapacity(numItems uint) CountedSet { + rv := objc.Call[CountedSet](c_, objc.Sel("initWithCapacity:"), numItems) return rv } -// Returns a counted set object initialized with the contents of a given array. [Full Topic] +// Returns a counted set object initialized with enough memory to hold a given number of objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscountedset/1416767-initwitharray?language=objc -func NewCountedSetWithArray(array []objc.IObject) CountedSet { - instance := CountedSetClass.Alloc().InitWithArray(array) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscountedset/1415625-initwithcapacity?language=objc +func NewCountedSetWithCapacity(numItems uint) CountedSet { + instance := CountedSetClass.Alloc().InitWithCapacity(numItems) instance.Autorelease() return instance } -func (c_ CountedSet) InitWithCapacity(numItems uint) CountedSet { - rv := objc.Call[CountedSet](c_, objc.Sel("initWithCapacity:"), numItems) +func (c_ CountedSet) InitWithArray(array []objc.IObject) CountedSet { + rv := objc.Call[CountedSet](c_, objc.Sel("initWithArray:"), array) return rv } -// Returns a counted set object initialized with enough memory to hold a given number of objects. [Full Topic] +// Returns a counted set object initialized with the contents of a given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscountedset/1415625-initwithcapacity?language=objc -func NewCountedSetWithCapacity(numItems uint) CountedSet { - instance := CountedSetClass.Alloc().InitWithCapacity(numItems) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscountedset/1416767-initwitharray?language=objc +func NewCountedSetWithArray(array []objc.IObject) CountedSet { + instance := CountedSetClass.Alloc().InitWithArray(array) instance.Autorelease() return instance } @@ -108,18 +108,16 @@ func CountedSet_SetWithCapacity(numItems uint) CountedSet { return CountedSetClass.SetWithCapacity(numItems) } -func (c_ CountedSet) InitWithSetCopyItems(set ISet, flag bool) CountedSet { - rv := objc.Call[CountedSet](c_, objc.Sel("initWithSet:copyItems:"), set, flag) +func (cc _CountedSetClass) Set() CountedSet { + rv := objc.Call[CountedSet](cc, objc.Sel("set")) return rv } -// Initializes a newly allocated set and adds to it members of another given set. [Full Topic] +// Creates and returns an empty set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1408407-initwithset?language=objc -func NewCountedSetWithSetCopyItems(set ISet, flag bool) CountedSet { - instance := CountedSetClass.Alloc().InitWithSetCopyItems(set, flag) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574818-set?language=objc +func CountedSet_Set() CountedSet { + return CountedSetClass.Set() } func (c_ CountedSet) InitWithObjects(firstObj objc.IObject, args ...any) CountedSet { @@ -136,54 +134,28 @@ func NewCountedSetWithObjects(firstObj objc.IObject, args ...any) CountedSet { return instance } -func (cc _CountedSetClass) SetWithObject(object objc.IObject) CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("setWithObject:"), object) - return rv -} - -// Creates and returns a set that contains a single given object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1415878-setwithobject?language=objc -func CountedSet_SetWithObject(object objc.IObject) CountedSet { - return CountedSetClass.SetWithObject(object) -} - -func (cc _CountedSetClass) SetWithObjects(firstObj objc.IObject, args ...any) CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("setWithObjects:"), append([]any{firstObj}, args...)...) - return rv -} - -// Creates and returns a set containing the objects in a given argument list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574825-setwithobjects?language=objc -func CountedSet_SetWithObjects(firstObj objc.IObject, args ...any) CountedSet { - return CountedSetClass.SetWithObjects(firstObj, args...) -} - -func (cc _CountedSetClass) SetWithObjectsCount(objects unsafe.Pointer, cnt uint) CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("setWithObjects:count:"), objects, cnt) +func (cc _CountedSetClass) SetWithSet(set ISet) CountedSet { + rv := objc.Call[CountedSet](cc, objc.Sel("setWithSet:"), set) return rv } -// Creates and returns a set containing a specified number of objects from a given C array of objects. [Full Topic] +// Creates and returns a set containing the objects from another set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574824-setwithobjects?language=objc -func CountedSet_SetWithObjectsCount(objects unsafe.Pointer, cnt uint) CountedSet { - return CountedSetClass.SetWithObjectsCount(objects, cnt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574817-setwithset?language=objc +func CountedSet_SetWithSet(set ISet) CountedSet { + return CountedSetClass.SetWithSet(set) } -func (c_ CountedSet) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) CountedSet { - rv := objc.Call[CountedSet](c_, objc.Sel("initWithObjects:count:"), objects, cnt) +func (cc _CountedSetClass) SetWithObject(object objc.IObject) CountedSet { + rv := objc.Call[CountedSet](cc, objc.Sel("setWithObject:"), object) return rv } -// Initializes a newly allocated set with a specified number of objects from a given C array of objects. [Full Topic] +// Creates and returns a set that contains a single given object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1407458-initwithobjects?language=objc -func NewCountedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) CountedSet { - instance := CountedSetClass.Alloc().InitWithObjectsCount(objects, cnt) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1415878-setwithobject?language=objc +func CountedSet_SetWithObject(object objc.IObject) CountedSet { + return CountedSetClass.SetWithObject(object) } func (cc _CountedSetClass) SetWithArray(array []objc.IObject) CountedSet { @@ -198,52 +170,40 @@ func CountedSet_SetWithArray(array []objc.IObject) CountedSet { return CountedSetClass.SetWithArray(array) } -func (cc _CountedSetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) +func (cc _CountedSetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) CountedSet { + rv := objc.Call[CountedSet](cc, objc.Sel("setWithCollectionViewIndexPath:"), indexPath) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528255-setwithcollectionviewindexpaths?language=objc -func CountedSet_SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) CountedSet { - return CountedSetClass.SetWithCollectionViewIndexPaths(indexPaths) -} - -func (cc _CountedSetClass) Set() CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("set")) - return rv -} - -// Creates and returns an empty set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574818-set?language=objc -func CountedSet_Set() CountedSet { - return CountedSetClass.Set() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528161-setwithcollectionviewindexpath?language=objc +func CountedSet_SetWithCollectionViewIndexPath(indexPath IIndexPath) CountedSet { + return CountedSetClass.SetWithCollectionViewIndexPath(indexPath) } -func (cc _CountedSetClass) SetWithSet(set ISet) CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("setWithSet:"), set) +func (cc _CountedSetClass) SetWithObjectsCount(objects unsafe.Pointer, cnt uint) CountedSet { + rv := objc.Call[CountedSet](cc, objc.Sel("setWithObjects:count:"), objects, cnt) return rv } -// Creates and returns a set containing the objects from another set. [Full Topic] +// Creates and returns a set containing a specified number of objects from a given C array of objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574817-setwithset?language=objc -func CountedSet_SetWithSet(set ISet) CountedSet { - return CountedSetClass.SetWithSet(set) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574824-setwithobjects?language=objc +func CountedSet_SetWithObjectsCount(objects unsafe.Pointer, cnt uint) CountedSet { + return CountedSetClass.SetWithObjectsCount(objects, cnt) } -func (cc _CountedSetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("setWithCollectionViewIndexPath:"), indexPath) +func (cc _CountedSetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) CountedSet { + rv := objc.Call[CountedSet](cc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528161-setwithcollectionviewindexpath?language=objc -func CountedSet_SetWithCollectionViewIndexPath(indexPath IIndexPath) CountedSet { - return CountedSetClass.SetWithCollectionViewIndexPath(indexPath) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528255-setwithcollectionviewindexpaths?language=objc +func CountedSet_SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) CountedSet { + return CountedSetClass.SetWithCollectionViewIndexPaths(indexPaths) } // Returns the count associated with a given object in the set. [Full Topic] diff --git a/macos/foundation/create_command.gen.go b/macos/foundation/create_command.gen.go index 24eb96f6..3899fce9 100644 --- a/macos/foundation/create_command.gen.go +++ b/macos/foundation/create_command.gen.go @@ -18,8 +18,8 @@ type _CreateCommandClass struct { // An interface definition for the [CreateCommand] class. type ICreateCommand interface { IScriptCommand - CreateClassDescription() ScriptClassDescription ResolvedKeyDictionary() map[string]objc.Object + CreateClassDescription() ScriptClassDescription } // A command that creates a scriptable object. [Full Topic] @@ -69,14 +69,6 @@ func NewCreateCommandWithCommandDescription(commandDef IScriptCommandDescription return instance } -// Returns the class description for the class that is to be created. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscreatecommand/1413533-createclassdescription?language=objc -func (c_ CreateCommand) CreateClassDescription() ScriptClassDescription { - rv := objc.Call[ScriptClassDescription](c_, objc.Sel("createClassDescription")) - return rv -} - // Returns a dictionary that contains the properties that were specified in the make Apple event command that has been converted to this NSCreateCommand object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscreatecommand/1407639-resolvedkeydictionary?language=objc @@ -84,3 +76,11 @@ func (c_ CreateCommand) ResolvedKeyDictionary() map[string]objc.Object { rv := objc.Call[map[string]objc.Object](c_, objc.Sel("resolvedKeyDictionary")) return rv } + +// Returns the class description for the class that is to be created. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscreatecommand/1413533-createclassdescription?language=objc +func (c_ CreateCommand) CreateClassDescription() ScriptClassDescription { + rv := objc.Call[ScriptClassDescription](c_, objc.Sel("createClassDescription")) + return rv +} diff --git a/macos/foundation/data.gen.go b/macos/foundation/data.gen.go index ab6977d1..b3ec4fbf 100644 --- a/macos/foundation/data.gen.go +++ b/macos/foundation/data.gen.go @@ -18,18 +18,15 @@ type _DataClass struct { // An interface definition for the [Data] class. type IData interface { objc.IObject - GetBytesRange(buffer unsafe.Pointer, range_ Range) + WriteToFileOptionsError(path string, writeOptionsMask DataWritingOptions, errorPtr unsafe.Pointer) bool SubdataWithRange(range_ Range) []byte - WriteToURLOptionsError(url IURL, writeOptionsMask DataWritingOptions, errorPtr unsafe.Pointer) bool - WriteToFileAtomically(path string, useAuxiliaryFile bool) bool RangeOfDataOptionsRange(dataToFind []byte, mask DataSearchOptions, searchRange Range) Range - WriteToURLAtomically(url IURL, atomically bool) bool IsEqualToData(other []byte) bool Base64EncodedStringWithOptions(options DataBase64EncodingOptions) string - EnumerateByteRangesUsingBlock(block func(bytes unsafe.Pointer, byteRange Range, stop *bool)) - GetBytesLength(buffer unsafe.Pointer, length uint) - WriteToFileOptionsError(path string, writeOptionsMask DataWritingOptions, errorPtr unsafe.Pointer) bool Base64EncodedDataWithOptions(options DataBase64EncodingOptions) []byte + GetBytesLength(buffer unsafe.Pointer, length uint) + WriteToURLAtomically(url IURL, atomically bool) bool + EnumerateByteRangesUsingBlock(block func(bytes unsafe.Pointer, byteRange Range, stop *bool)) Description() string Length() uint Bytes() unsafe.Pointer @@ -48,92 +45,56 @@ func DataFrom(ptr unsafe.Pointer) Data { } } -func (dc _DataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) - return rv -} - -// Creates a data object by reading every byte from the file at a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547244-datawithcontentsoffile?language=objc -func Data_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { - return DataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) -} - -func (d_ Data) InitWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithBytesNoCopy:length:"), bytes, length) +func (d_ Data) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) return rv } -// Initializes a data object filled with a given number of bytes of data from a given buffer. [Full Topic] +// Initializes a data object with the content of the file at a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1409454-initwithbytesnocopy?language=objc -func NewDataWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) Data { - instance := DataClass.Alloc().InitWithBytesNoCopyLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1411145-initwithcontentsoffile?language=objc +func NewDataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { + instance := DataClass.Alloc().InitWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) instance.Autorelease() return instance } -func (dc _DataClass) DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithBytesNoCopy:length:freeWhenDone:"), bytes, length, b) - return rv -} - -// Creates a data object that holds a given number of bytes from a given buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547240-datawithbytesnocopy?language=objc -func Data_DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) Data { - return DataClass.DataWithBytesNoCopyLengthFreeWhenDone(bytes, length, b) -} - -func (dc _DataClass) DataWithData(data []byte) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithData:"), data) +func (d_ Data) CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) Data { + rv := objc.Call[Data](d_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, error) return rv } -// Creates a data object containing the contents of another data object. [Full Topic] +// Returns a new data object by compressing the data object’s bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547230-datawithdata?language=objc -func Data_DataWithData(data []byte) Data { - return DataClass.DataWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc +func Data_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) Data { + instance := DataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) + instance.Autorelease() + return instance } -func (dc _DataClass) DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfURL:options:error:"), url, readOptionsMask, errorPtr) +func (dc _DataClass) DataWithContentsOfURL(url IURL) Data { + rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfURL:"), url) return rv } // Creates a data object containing the data from the location specified by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547238-datawithcontentsofurl?language=objc -func Data_DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { - return DataClass.DataWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) -} - -func (d_ Data) InitWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithBase64EncodedString:options:"), base64String, options) - return rv -} - -// Initializes a data object with the given Base64 encoded string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1410081-initwithbase64encodedstring?language=objc -func NewDataWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) Data { - instance := DataClass.Alloc().InitWithBase64EncodedStringOptions(base64String, options) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547245-datawithcontentsofurl?language=objc +func Data_DataWithContentsOfURL(url IURL) Data { + return DataClass.DataWithContentsOfURL(url) } -func (d_ Data) InitWithBytesLength(bytes unsafe.Pointer, length uint) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithBytes:length:"), bytes, length) +func (d_ Data) InitWithData(data []byte) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithData:"), data) return rv } -// Initializes a data object filled with a given number of bytes copied from a given buffer. [Full Topic] +// Initializes a data object with the contents of another data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1412793-initwithbytes?language=objc -func NewDataWithBytesLength(bytes unsafe.Pointer, length uint) Data { - instance := DataClass.Alloc().InitWithBytesLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417055-initwithdata?language=objc +func NewDataWithData(data []byte) Data { + instance := DataClass.Alloc().InitWithData(data) instance.Autorelease() return instance } @@ -152,70 +113,40 @@ func NewDataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, return instance } -func (d_ Data) InitWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfURL:options:error:"), url, readOptionsMask, errorPtr) - return rv -} - -// Initializes a data object with the data from the location specified by a given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1407864-initwithcontentsofurl?language=objc -func NewDataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { - instance := DataClass.Alloc().InitWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) - instance.Autorelease() - return instance -} - -func (d_ Data) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) - return rv -} - -// Initializes a data object with the content of the file at a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1411145-initwithcontentsoffile?language=objc -func NewDataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { - instance := DataClass.Alloc().InitWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) - instance.Autorelease() - return instance -} - -func (dc _DataClass) DataWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithBytesNoCopy:length:"), bytes, length) +func (dc _DataClass) DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) Data { + rv := objc.Call[Data](dc, objc.Sel("dataWithBytesNoCopy:length:freeWhenDone:"), bytes, length, b) return rv } // Creates a data object that holds a given number of bytes from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547229-datawithbytesnocopy?language=objc -func Data_DataWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) Data { - return DataClass.DataWithBytesNoCopyLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547240-datawithbytesnocopy?language=objc +func Data_DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) Data { + return DataClass.DataWithBytesNoCopyLengthFreeWhenDone(bytes, length, b) } -func (d_ Data) InitWithContentsOfURL(url IURL) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfURL:"), url) +func (dc _DataClass) DataWithData(data []byte) Data { + rv := objc.Call[Data](dc, objc.Sel("dataWithData:"), data) return rv } -// Initializes a data object with the data from the location specified by a given URL. [Full Topic] +// Creates a data object containing the contents of another data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1413892-initwithcontentsofurl?language=objc -func NewDataWithContentsOfURL(url IURL) Data { - instance := DataClass.Alloc().InitWithContentsOfURL(url) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547230-datawithdata?language=objc +func Data_DataWithData(data []byte) Data { + return DataClass.DataWithData(data) } -func (dc _DataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithBytes:length:"), bytes, length) +func (dc _DataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { + rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) return rv } -// Creates a data object containing a given number of bytes copied from a given buffer. [Full Topic] +// Creates a data object by reading every byte from the file at a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547231-datawithbytes?language=objc -func Data_DataWithBytesLength(bytes unsafe.Pointer, length uint) Data { - return DataClass.DataWithBytesLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547244-datawithcontentsoffile?language=objc +func Data_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) Data { + return DataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) } func (dc _DataClass) Data() Data { @@ -230,112 +161,86 @@ func Data_Data() Data { return DataClass.Data() } -func (d_ Data) InitWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithBase64EncodedData:options:"), base64Data, options) +func (d_ Data) InitWithBytesLength(bytes unsafe.Pointer, length uint) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithBytes:length:"), bytes, length) return rv } -// Initializes a data object with the given Base64 encoded data. [Full Topic] +// Initializes a data object filled with a given number of bytes copied from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417833-initwithbase64encodeddata?language=objc -func NewDataWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) Data { - instance := DataClass.Alloc().InitWithBase64EncodedDataOptions(base64Data, options) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1412793-initwithbytes?language=objc +func NewDataWithBytesLength(bytes unsafe.Pointer, length uint) Data { + instance := DataClass.Alloc().InitWithBytesLength(bytes, length) instance.Autorelease() return instance } -func (d_ Data) InitWithContentsOfFile(path string) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfFile:"), path) +func (d_ Data) InitWithContentsOfURL(url IURL) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfURL:"), url) return rv } -// Initializes a data object with the content of the file at a given path. [Full Topic] +// Initializes a data object with the data from the location specified by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1408672-initwithcontentsoffile?language=objc -func NewDataWithContentsOfFile(path string) Data { - instance := DataClass.Alloc().InitWithContentsOfFile(path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1413892-initwithcontentsofurl?language=objc +func NewDataWithContentsOfURL(url IURL) Data { + instance := DataClass.Alloc().InitWithContentsOfURL(url) instance.Autorelease() return instance } -func (d_ Data) InitWithBytesNoCopyLengthDeallocator(bytes unsafe.Pointer, length uint, deallocator func(bytes unsafe.Pointer, length uint)) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithBytesNoCopy:length:deallocator:"), bytes, length, deallocator) +func (d_ Data) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) Data { + rv := objc.Call[Data](d_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, error) return rv } -// Initializes a data object filled with a given number of bytes of data from a given buffer, with a custom deallocator block. [Full Topic] +// Returns a new data object by decompressing data object’s bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417337-initwithbytesnocopy?language=objc -func NewDataWithBytesNoCopyLengthDeallocator(bytes unsafe.Pointer, length uint, deallocator func(bytes unsafe.Pointer, length uint)) Data { - instance := DataClass.Alloc().InitWithBytesNoCopyLengthDeallocator(bytes, length, deallocator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174961-decompresseddatausingalgorithm?language=objc +func Data_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) Data { + instance := DataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) instance.Autorelease() return instance } -func (dc _DataClass) DataWithContentsOfFile(path string) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfFile:"), path) - return rv -} - -// Creates a data object by reading every byte from the file at a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547226-datawithcontentsoffile?language=objc -func Data_DataWithContentsOfFile(path string) Data { - return DataClass.DataWithContentsOfFile(path) -} - -func (d_ Data) InitWithData(data []byte) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithData:"), data) +func (d_ Data) InitWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithBase64EncodedData:options:"), base64Data, options) return rv } -// Initializes a data object with the contents of another data object. [Full Topic] +// Initializes a data object with the given Base64 encoded data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417055-initwithdata?language=objc -func NewDataWithData(data []byte) Data { - instance := DataClass.Alloc().InitWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417833-initwithbase64encodeddata?language=objc +func NewDataWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) Data { + instance := DataClass.Alloc().InitWithBase64EncodedDataOptions(base64Data, options) instance.Autorelease() return instance } -func (dc _DataClass) DataWithContentsOfURL(url IURL) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfURL:"), url) - return rv -} - -// Creates a data object containing the data from the location specified by a given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547245-datawithcontentsofurl?language=objc -func Data_DataWithContentsOfURL(url IURL) Data { - return DataClass.DataWithContentsOfURL(url) -} - -func (d_ Data) CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) Data { - rv := objc.Call[Data](d_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, error) +func (d_ Data) InitWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithBase64EncodedString:options:"), base64String, options) return rv } -// Returns a new data object by compressing the data object’s bytes. [Full Topic] +// Initializes a data object with the given Base64 encoded string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc -func Data_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) Data { - instance := DataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1410081-initwithbase64encodedstring?language=objc +func NewDataWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) Data { + instance := DataClass.Alloc().InitWithBase64EncodedStringOptions(base64String, options) instance.Autorelease() return instance } -func (d_ Data) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) Data { - rv := objc.Call[Data](d_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, error) +func (dc _DataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) Data { + rv := objc.Call[Data](dc, objc.Sel("dataWithBytes:length:"), bytes, length) return rv } -// Returns a new data object by decompressing data object’s bytes. [Full Topic] +// Creates a data object containing a given number of bytes copied from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174961-decompresseddatausingalgorithm?language=objc -func Data_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) Data { - instance := DataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547231-datawithbytes?language=objc +func Data_DataWithBytesLength(bytes unsafe.Pointer, length uint) Data { + return DataClass.DataWithBytesLength(bytes, length) } func (dc _DataClass) Alloc() Data { @@ -358,11 +263,12 @@ func (d_ Data) Init() Data { return rv } -// Copies a range of bytes from the data object into a given buffer. [Full Topic] +// Writes the data object’s bytes to the file specified by a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1407224-getbytes?language=objc -func (d_ Data) GetBytesRange(buffer unsafe.Pointer, range_ Range) { - objc.Call[objc.Void](d_, objc.Sel("getBytes:range:"), buffer, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1414800-writetofile?language=objc +func (d_ Data) WriteToFileOptionsError(path string, writeOptionsMask DataWritingOptions, errorPtr unsafe.Pointer) bool { + rv := objc.Call[bool](d_, objc.Sel("writeToFile:options:error:"), path, writeOptionsMask, errorPtr) + return rv } // Returns a new data object containing the data object's bytes that fall within the limits specified by a given range. [Full Topic] @@ -373,22 +279,6 @@ func (d_ Data) SubdataWithRange(range_ Range) []byte { return rv } -// Writes the data object's bytes to the location specified by a given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1410595-writetourl?language=objc -func (d_ Data) WriteToURLOptionsError(url IURL, writeOptionsMask DataWritingOptions, errorPtr unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToURL:options:error:"), url, writeOptionsMask, errorPtr) - return rv -} - -// Writes the data object's bytes to the file specified by a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1408033-writetofile?language=objc -func (d_ Data) WriteToFileAtomically(path string, useAuxiliaryFile bool) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToFile:atomically:"), path, useAuxiliaryFile) - return rv -} - // Finds and returns the range of the first occurrence of the given data, within the given range, subject to given options. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1410391-rangeofdata?language=objc @@ -397,14 +287,6 @@ func (d_ Data) RangeOfDataOptionsRange(dataToFind []byte, mask DataSearchOptions return rv } -// Writes the data object's bytes to the location specified by a given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1415134-writetourl?language=objc -func (d_ Data) WriteToURLAtomically(url IURL, atomically bool) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToURL:atomically:"), url, atomically) - return rv -} - // Returns a Boolean value indicating whether this data object is the same as another. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1409330-isequaltodata?language=objc @@ -421,11 +303,12 @@ func (d_ Data) Base64EncodedStringWithOptions(options DataBase64EncodingOptions) return rv } -// Enumerates each range of bytes in the data object using a block. [Full Topic] +// Creates a Base64, UTF-8 encoded data object from the string using the given options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1408400-enumeratebyterangesusingblock?language=objc -func (d_ Data) EnumerateByteRangesUsingBlock(block func(bytes unsafe.Pointer, byteRange Range, stop *bool)) { - objc.Call[objc.Void](d_, objc.Sel("enumerateByteRangesUsingBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1412739-base64encodeddatawithoptions?language=objc +func (d_ Data) Base64EncodedDataWithOptions(options DataBase64EncodingOptions) []byte { + rv := objc.Call[[]byte](d_, objc.Sel("base64EncodedDataWithOptions:"), options) + return rv } // Copies a number of bytes from the start of the data object into a given buffer. [Full Topic] @@ -435,20 +318,19 @@ func (d_ Data) GetBytesLength(buffer unsafe.Pointer, length uint) { objc.Call[objc.Void](d_, objc.Sel("getBytes:length:"), buffer, length) } -// Writes the data object’s bytes to the file specified by a given path. [Full Topic] +// Writes the data object's bytes to the location specified by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1414800-writetofile?language=objc -func (d_ Data) WriteToFileOptionsError(path string, writeOptionsMask DataWritingOptions, errorPtr unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToFile:options:error:"), path, writeOptionsMask, errorPtr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1415134-writetourl?language=objc +func (d_ Data) WriteToURLAtomically(url IURL, atomically bool) bool { + rv := objc.Call[bool](d_, objc.Sel("writeToURL:atomically:"), url, atomically) return rv } -// Creates a Base64, UTF-8 encoded data object from the string using the given options. [Full Topic] +// Enumerates each range of bytes in the data object using a block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1412739-base64encodeddatawithoptions?language=objc -func (d_ Data) Base64EncodedDataWithOptions(options DataBase64EncodingOptions) []byte { - rv := objc.Call[[]byte](d_, objc.Sel("base64EncodedDataWithOptions:"), options) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1408400-enumeratebyterangesusingblock?language=objc +func (d_ Data) EnumerateByteRangesUsingBlock(block func(bytes unsafe.Pointer, byteRange Range, stop *bool)) { + objc.Call[objc.Void](d_, objc.Sel("enumerateByteRangesUsingBlock:"), block) } // A string that contains a hexadecimal representation of the data object’s contents in a property list format. [Full Topic] diff --git a/macos/foundation/date.gen.go b/macos/foundation/date.gen.go index acceaa15..6a90b2f2 100644 --- a/macos/foundation/date.gen.go +++ b/macos/foundation/date.gen.go @@ -19,14 +19,15 @@ type _DateClass struct { type IDate interface { objc.IObject TimeIntervalSinceDate(anotherDate IDate) TimeInterval - EarlierDate(anotherDate IDate) Date - LaterDate(anotherDate IDate) Date + DescriptionWithLocale(locale objc.IObject) string IsEqualToDate(otherDate IDate) bool + LaterDate(anotherDate IDate) Date Compare(other IDate) ComparisonResult - DescriptionWithLocale(locale objc.IObject) string - Description() string + EarlierDate(anotherDate IDate) Date TimeIntervalSince1970() TimeInterval + Description() string TimeIntervalSinceNow() TimeInterval + TimeIntervalSinceReferenceDate() TimeInterval } // A representation of a specific point in time, independent of any calendar or time zone. [Full Topic] @@ -42,18 +43,6 @@ func DateFrom(ptr unsafe.Pointer) Date { } } -func (dc _DateClass) DateWithTimeIntervalSince1970(secs TimeInterval) Date { - rv := objc.Call[Date](dc, objc.Sel("dateWithTimeIntervalSince1970:"), secs) - return rv -} - -// Creates and returns a date object set to the given number of seconds from 00:00:00 UTC on 1 January 1970. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591576-datewithtimeintervalsince1970?language=objc -func Date_DateWithTimeIntervalSince1970(secs TimeInterval) Date { - return DateClass.DateWithTimeIntervalSince1970(secs) -} - func (dc _DateClass) Date() Date { rv := objc.Call[Date](dc, objc.Sel("date")) return rv @@ -66,16 +55,16 @@ func Date_Date() Date { return DateClass.Date() } -func (d_ Date) InitWithTimeIntervalSince1970(secs TimeInterval) Date { - rv := objc.Call[Date](d_, objc.Sel("initWithTimeIntervalSince1970:"), secs) +func (d_ Date) DateByAddingTimeInterval(ti TimeInterval) Date { + rv := objc.Call[Date](d_, objc.Sel("dateByAddingTimeInterval:"), ti) return rv } -// Returns a date object initialized relative to 00:00:00 UTC on 1 January 1970 by a given number of seconds. [Full Topic] +// Returns a new date object that is set to a given number of seconds relative to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1416453-initwithtimeintervalsince1970?language=objc -func NewDateWithTimeIntervalSince1970(secs TimeInterval) Date { - instance := DateClass.Alloc().InitWithTimeIntervalSince1970(secs) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1408823-datebyaddingtimeinterval?language=objc +func Date_DateByAddingTimeInterval(ti TimeInterval) Date { + instance := DateClass.Alloc().DateByAddingTimeInterval(ti) instance.Autorelease() return instance } @@ -92,6 +81,30 @@ func Date_DateWithTimeIntervalSinceDate(secsToBeAdded TimeInterval, date IDate) return DateClass.DateWithTimeIntervalSinceDate(secsToBeAdded, date) } +func (dc _DateClass) DateWithTimeIntervalSinceNow(secs TimeInterval) Date { + rv := objc.Call[Date](dc, objc.Sel("dateWithTimeIntervalSinceNow:"), secs) + return rv +} + +// Creates and returns a date object set to a given number of seconds from the current date and time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591579-datewithtimeintervalsincenow?language=objc +func Date_DateWithTimeIntervalSinceNow(secs TimeInterval) Date { + return DateClass.DateWithTimeIntervalSinceNow(secs) +} + +func (dc _DateClass) DateWithTimeIntervalSince1970(secs TimeInterval) Date { + rv := objc.Call[Date](dc, objc.Sel("dateWithTimeIntervalSince1970:"), secs) + return rv +} + +// Creates and returns a date object set to the given number of seconds from 00:00:00 UTC on 1 January 1970. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591576-datewithtimeintervalsince1970?language=objc +func Date_DateWithTimeIntervalSince1970(secs TimeInterval) Date { + return DateClass.DateWithTimeIntervalSince1970(secs) +} + func (d_ Date) InitWithTimeIntervalSinceReferenceDate(ti TimeInterval) Date { rv := objc.Call[Date](d_, objc.Sel("initWithTimeIntervalSinceReferenceDate:"), ti) return rv @@ -120,6 +133,18 @@ func NewDateWithTimeIntervalSinceNow(secs TimeInterval) Date { return instance } +func (dc _DateClass) DateWithTimeIntervalSinceReferenceDate(ti TimeInterval) Date { + rv := objc.Call[Date](dc, objc.Sel("dateWithTimeIntervalSinceReferenceDate:"), ti) + return rv +} + +// Creates and returns a date object set to a given number of seconds from 00:00:00 UTC on 1 January 2001. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591577-datewithtimeintervalsincereferen?language=objc +func Date_DateWithTimeIntervalSinceReferenceDate(ti TimeInterval) Date { + return DateClass.DateWithTimeIntervalSinceReferenceDate(ti) +} + func (d_ Date) InitWithTimeIntervalSinceDate(secsToBeAdded TimeInterval, date IDate) Date { rv := objc.Call[Date](d_, objc.Sel("initWithTimeInterval:sinceDate:"), secsToBeAdded, date) return rv @@ -139,44 +164,20 @@ func (d_ Date) Init() Date { return rv } -func (d_ Date) DateByAddingTimeInterval(ti TimeInterval) Date { - rv := objc.Call[Date](d_, objc.Sel("dateByAddingTimeInterval:"), ti) +func (d_ Date) InitWithTimeIntervalSince1970(secs TimeInterval) Date { + rv := objc.Call[Date](d_, objc.Sel("initWithTimeIntervalSince1970:"), secs) return rv } -// Returns a new date object that is set to a given number of seconds relative to the receiver. [Full Topic] +// Returns a date object initialized relative to 00:00:00 UTC on 1 January 1970 by a given number of seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1408823-datebyaddingtimeinterval?language=objc -func Date_DateByAddingTimeInterval(ti TimeInterval) Date { - instance := DateClass.Alloc().DateByAddingTimeInterval(ti) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1416453-initwithtimeintervalsince1970?language=objc +func NewDateWithTimeIntervalSince1970(secs TimeInterval) Date { + instance := DateClass.Alloc().InitWithTimeIntervalSince1970(secs) instance.Autorelease() return instance } -func (dc _DateClass) DateWithTimeIntervalSinceNow(secs TimeInterval) Date { - rv := objc.Call[Date](dc, objc.Sel("dateWithTimeIntervalSinceNow:"), secs) - return rv -} - -// Creates and returns a date object set to a given number of seconds from the current date and time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591579-datewithtimeintervalsincenow?language=objc -func Date_DateWithTimeIntervalSinceNow(secs TimeInterval) Date { - return DateClass.DateWithTimeIntervalSinceNow(secs) -} - -func (dc _DateClass) DateWithTimeIntervalSinceReferenceDate(ti TimeInterval) Date { - rv := objc.Call[Date](dc, objc.Sel("dateWithTimeIntervalSinceReferenceDate:"), ti) - return rv -} - -// Creates and returns a date object set to a given number of seconds from 00:00:00 UTC on 1 January 2001. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1591577-datewithtimeintervalsincereferen?language=objc -func Date_DateWithTimeIntervalSinceReferenceDate(ti TimeInterval) Date { - return DateClass.DateWithTimeIntervalSinceReferenceDate(ti) -} - func (dc _DateClass) Alloc() Date { rv := objc.Call[Date](dc, objc.Sel("alloc")) return rv @@ -200,19 +201,11 @@ func (d_ Date) TimeIntervalSinceDate(anotherDate IDate) TimeInterval { return rv } -// Returns the earlier of the receiver and another given date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1412791-earlierdate?language=objc -func (d_ Date) EarlierDate(anotherDate IDate) Date { - rv := objc.Call[Date](d_, objc.Sel("earlierDate:"), anotherDate) - return rv -} - -// Returns the later of the receiver and another given date. [Full Topic] +// Returns a string representation of the date using the given locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1409058-laterdate?language=objc -func (d_ Date) LaterDate(anotherDate IDate) Date { - rv := objc.Call[Date](d_, objc.Sel("laterDate:"), anotherDate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1414108-descriptionwithlocale?language=objc +func (d_ Date) DescriptionWithLocale(locale objc.IObject) string { + rv := objc.Call[string](d_, objc.Sel("descriptionWithLocale:"), locale) return rv } @@ -224,53 +217,30 @@ func (d_ Date) IsEqualToDate(otherDate IDate) bool { return rv } -// Indicates the temporal ordering of the receiver and another given date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1409748-compare?language=objc -func (d_ Date) Compare(other IDate) ComparisonResult { - rv := objc.Call[ComparisonResult](d_, objc.Sel("compare:"), other) - return rv -} - -// Returns a string representation of the date using the given locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1414108-descriptionwithlocale?language=objc -func (d_ Date) DescriptionWithLocale(locale objc.IObject) string { - rv := objc.Call[string](d_, objc.Sel("descriptionWithLocale:"), locale) - return rv -} - -// A string representation of the date object. [Full Topic] +// Returns the later of the receiver and another given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1409767-description?language=objc -func (d_ Date) Description() string { - rv := objc.Call[string](d_, objc.Sel("description")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1409058-laterdate?language=objc +func (d_ Date) LaterDate(anotherDate IDate) Date { + rv := objc.Call[Date](d_, objc.Sel("laterDate:"), anotherDate) return rv } -// The interval between the date object and 00:00:00 UTC on 1 January 1970. [Full Topic] +// Indicates the temporal ordering of the receiver and another given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1407504-timeintervalsince1970?language=objc -func (d_ Date) TimeIntervalSince1970() TimeInterval { - rv := objc.Call[TimeInterval](d_, objc.Sel("timeIntervalSince1970")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1409748-compare?language=objc +func (d_ Date) Compare(other IDate) ComparisonResult { + rv := objc.Call[ComparisonResult](d_, objc.Sel("compare:"), other) return rv } -// The interval between 00:00:00 UTC on 1 January 2001 and the current date and time. [Full Topic] +// Returns the earlier of the receiver and another given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1408189-timeintervalsincereferencedate?language=objc -func (dc _DateClass) TimeIntervalSinceReferenceDate() TimeInterval { - rv := objc.Call[TimeInterval](dc, objc.Sel("timeIntervalSinceReferenceDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1412791-earlierdate?language=objc +func (d_ Date) EarlierDate(anotherDate IDate) Date { + rv := objc.Call[Date](d_, objc.Sel("earlierDate:"), anotherDate) return rv } -// The interval between 00:00:00 UTC on 1 January 2001 and the current date and time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1408189-timeintervalsincereferencedate?language=objc -func Date_TimeIntervalSinceReferenceDate() TimeInterval { - return DateClass.TimeIntervalSinceReferenceDate() -} - // A date object representing a date in the distant past. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1418197-distantpast?language=objc @@ -286,6 +256,14 @@ func Date_DistantPast() Date { return DateClass.DistantPast() } +// The interval between the date object and 00:00:00 UTC on 1 January 1970. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1407504-timeintervalsince1970?language=objc +func (d_ Date) TimeIntervalSince1970() TimeInterval { + rv := objc.Call[TimeInterval](d_, objc.Sel("timeIntervalSince1970")) + return rv +} + // A date object representing a date in the distant future. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1415385-distantfuture?language=objc @@ -301,6 +279,14 @@ func Date_DistantFuture() Date { return DateClass.DistantFuture() } +// A string representation of the date object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1409767-description?language=objc +func (d_ Date) Description() string { + rv := objc.Call[string](d_, objc.Sel("description")) + return rv +} + // The interval between the date object and the current date and time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1407937-timeintervalsincenow?language=objc @@ -309,6 +295,14 @@ func (d_ Date) TimeIntervalSinceNow() TimeInterval { return rv } +// The interval between the date object and 00:00:00 UTC on 1 January 2001. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1417376-timeintervalsincereferencedate?language=objc +func (d_ Date) TimeIntervalSinceReferenceDate() TimeInterval { + rv := objc.Call[TimeInterval](d_, objc.Sel("timeIntervalSinceReferenceDate")) + return rv +} + // The current date and time, as of the time of access. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/3180113-now?language=objc diff --git a/macos/foundation/date_components.gen.go b/macos/foundation/date_components.gen.go index de8a02b4..fad14ed3 100644 --- a/macos/foundation/date_components.gen.go +++ b/macos/foundation/date_components.gen.go @@ -18,45 +18,45 @@ type _DateComponentsClass struct { // An interface definition for the [DateComponents] class. type IDateComponents interface { objc.IObject - ValueForComponent(unit CalendarUnit) int IsValidDateInCalendar(calendar ICalendar) bool + ValueForComponent(unit CalendarUnit) int SetValueForComponent(value int, unit CalendarUnit) - Year() int - SetYear(value int) - TimeZone() TimeZone - SetTimeZone(value ITimeZone) - Quarter() int - SetQuarter(value int) - Calendar() Calendar - SetCalendar(value ICalendar) - YearForWeekOfYear() int - SetYearForWeekOfYear(value int) - WeekOfMonth() int - SetWeekOfMonth(value int) - IsLeapMonth() bool - SetLeapMonth(value bool) - Minute() int - SetMinute(value int) + IsValidDate() bool WeekOfYear() int SetWeekOfYear(value int) - WeekdayOrdinal() int - SetWeekdayOrdinal(value int) + Month() int + SetMonth(value int) + Second() int + SetSecond(value int) + Date() Date Weekday() int SetWeekday(value int) - Date() Date Hour() int SetHour(value int) + IsLeapMonth() bool + SetLeapMonth(value bool) + Quarter() int + SetQuarter(value int) + Year() int + SetYear(value int) + WeekOfMonth() int + SetWeekOfMonth(value int) + TimeZone() TimeZone + SetTimeZone(value ITimeZone) Nanosecond() int SetNanosecond(value int) - IsValidDate() bool Day() int SetDay(value int) - Month() int - SetMonth(value int) - Second() int - SetSecond(value int) + WeekdayOrdinal() int + SetWeekdayOrdinal(value int) + Calendar() Calendar + SetCalendar(value ICalendar) Era() int SetEra(value int) + Minute() int + SetMinute(value int) + YearForWeekOfYear() int + SetYearForWeekOfYear(value int) } // An object that specifies a date or time in terms of units (such as year, month, day, hour, and minute) to be evaluated in a calendar system and time zone. [Full Topic] @@ -92,14 +92,6 @@ func (d_ DateComponents) Init() DateComponents { return rv } -// Returns the value for a given calendar unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1416763-valueforcomponent?language=objc -func (d_ DateComponents) ValueForComponent(unit CalendarUnit) int { - rv := objc.Call[int](d_, objc.Sel("valueForComponent:"), unit) - return rv -} - // Returns a Boolean value that indicates whether the current combination of properties represents a date which exists in the specified calendar. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1412707-isvaliddateincalendar?language=objc @@ -108,6 +100,14 @@ func (d_ DateComponents) IsValidDateInCalendar(calendar ICalendar) bool { return rv } +// Returns the value for a given calendar unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1416763-valueforcomponent?language=objc +func (d_ DateComponents) ValueForComponent(unit CalendarUnit) int { + rv := objc.Call[int](d_, objc.Sel("valueForComponent:"), unit) + return rv +} + // Sets a value for a given calendar unit. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1415961-setvalue?language=objc @@ -115,94 +115,95 @@ func (d_ DateComponents) SetValueForComponent(value int, unit CalendarUnit) { objc.Call[objc.Void](d_, objc.Sel("setValue:forComponent:"), value, unit) } -// The number of years. [Full Topic] +// A Boolean value that indicates whether the current combination of properties represents a date which exists in the current calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1412462-year?language=objc -func (d_ DateComponents) Year() int { - rv := objc.Call[int](d_, objc.Sel("year")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1408788-validdate?language=objc +func (d_ DateComponents) IsValidDate() bool { + rv := objc.Call[bool](d_, objc.Sel("isValidDate")) return rv } -// The number of years. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1412462-year?language=objc -func (d_ DateComponents) SetYear(value int) { - objc.Call[objc.Void](d_, objc.Sel("setYear:"), value) -} - -// The time zone used to interpret the date components. [Full Topic] +// The ISO 8601 week date of the year. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1408233-timezone?language=objc -func (d_ DateComponents) TimeZone() TimeZone { - rv := objc.Call[TimeZone](d_, objc.Sel("timeZone")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1416908-weekofyear?language=objc +func (d_ DateComponents) WeekOfYear() int { + rv := objc.Call[int](d_, objc.Sel("weekOfYear")) return rv } -// The time zone used to interpret the date components. [Full Topic] +// The ISO 8601 week date of the year. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1408233-timezone?language=objc -func (d_ DateComponents) SetTimeZone(value ITimeZone) { - objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1416908-weekofyear?language=objc +func (d_ DateComponents) SetWeekOfYear(value int) { + objc.Call[objc.Void](d_, objc.Sel("setWeekOfYear:"), value) } -// The number of quarters. [Full Topic] +// The number of months. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1416503-quarter?language=objc -func (d_ DateComponents) Quarter() int { - rv := objc.Call[int](d_, objc.Sel("quarter")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1408724-month?language=objc +func (d_ DateComponents) Month() int { + rv := objc.Call[int](d_, objc.Sel("month")) return rv } -// The number of quarters. [Full Topic] +// The number of months. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1416503-quarter?language=objc -func (d_ DateComponents) SetQuarter(value int) { - objc.Call[objc.Void](d_, objc.Sel("setQuarter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1408724-month?language=objc +func (d_ DateComponents) SetMonth(value int) { + objc.Call[objc.Void](d_, objc.Sel("setMonth:"), value) } -// The calendar used to interpret the date components. [Full Topic] +// The number of second units for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1415799-calendar?language=objc -func (d_ DateComponents) Calendar() Calendar { - rv := objc.Call[Calendar](d_, objc.Sel("calendar")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1414045-second?language=objc +func (d_ DateComponents) Second() int { + rv := objc.Call[int](d_, objc.Sel("second")) return rv } -// The calendar used to interpret the date components. [Full Topic] +// The number of second units for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1415799-calendar?language=objc -func (d_ DateComponents) SetCalendar(value ICalendar) { - objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1414045-second?language=objc +func (d_ DateComponents) SetSecond(value int) { + objc.Call[objc.Void](d_, objc.Sel("setSecond:"), value) } -// The ISO 8601 week-numbering year. [Full Topic] +// The date calculated from the current components using the stored calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1413809-yearforweekofyear?language=objc -func (d_ DateComponents) YearForWeekOfYear() int { - rv := objc.Call[int](d_, objc.Sel("yearForWeekOfYear")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1412861-date?language=objc +func (d_ DateComponents) Date() Date { + rv := objc.Call[Date](d_, objc.Sel("date")) return rv } -// The ISO 8601 week-numbering year. [Full Topic] +// The number of the weekdays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1413809-yearforweekofyear?language=objc -func (d_ DateComponents) SetYearForWeekOfYear(value int) { - objc.Call[objc.Void](d_, objc.Sel("setYearForWeekOfYear:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1410442-weekday?language=objc +func (d_ DateComponents) Weekday() int { + rv := objc.Call[int](d_, objc.Sel("weekday")) + return rv } -// The week number of the months. [Full Topic] +// The number of the weekdays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1413168-weekofmonth?language=objc -func (d_ DateComponents) WeekOfMonth() int { - rv := objc.Call[int](d_, objc.Sel("weekOfMonth")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1410442-weekday?language=objc +func (d_ DateComponents) SetWeekday(value int) { + objc.Call[objc.Void](d_, objc.Sel("setWeekday:"), value) +} + +// The number of hour units for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1411355-hour?language=objc +func (d_ DateComponents) Hour() int { + rv := objc.Call[int](d_, objc.Sel("hour")) return rv } -// The week number of the months. [Full Topic] +// The number of hour units for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1413168-weekofmonth?language=objc -func (d_ DateComponents) SetWeekOfMonth(value int) { - objc.Call[objc.Void](d_, objc.Sel("setWeekOfMonth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1411355-hour?language=objc +func (d_ DateComponents) SetHour(value int) { + objc.Call[objc.Void](d_, objc.Sel("setHour:"), value) } // A Boolean value that indicates whether the month is a leap month. [Full Topic] @@ -220,87 +221,64 @@ func (d_ DateComponents) SetLeapMonth(value bool) { objc.Call[objc.Void](d_, objc.Sel("setLeapMonth:"), value) } -// The number of minute units for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1409443-minute?language=objc -func (d_ DateComponents) Minute() int { - rv := objc.Call[int](d_, objc.Sel("minute")) - return rv -} - -// The number of minute units for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1409443-minute?language=objc -func (d_ DateComponents) SetMinute(value int) { - objc.Call[objc.Void](d_, objc.Sel("setMinute:"), value) -} - -// The ISO 8601 week date of the year. [Full Topic] +// The number of quarters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1416908-weekofyear?language=objc -func (d_ DateComponents) WeekOfYear() int { - rv := objc.Call[int](d_, objc.Sel("weekOfYear")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1416503-quarter?language=objc +func (d_ DateComponents) Quarter() int { + rv := objc.Call[int](d_, objc.Sel("quarter")) return rv } -// The ISO 8601 week date of the year. [Full Topic] +// The number of quarters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1416908-weekofyear?language=objc -func (d_ DateComponents) SetWeekOfYear(value int) { - objc.Call[objc.Void](d_, objc.Sel("setWeekOfYear:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1416503-quarter?language=objc +func (d_ DateComponents) SetQuarter(value int) { + objc.Call[objc.Void](d_, objc.Sel("setQuarter:"), value) } -// The ordinal number of weekdays. [Full Topic] +// The number of years. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1409476-weekdayordinal?language=objc -func (d_ DateComponents) WeekdayOrdinal() int { - rv := objc.Call[int](d_, objc.Sel("weekdayOrdinal")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1412462-year?language=objc +func (d_ DateComponents) Year() int { + rv := objc.Call[int](d_, objc.Sel("year")) return rv } -// The ordinal number of weekdays. [Full Topic] +// The number of years. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1409476-weekdayordinal?language=objc -func (d_ DateComponents) SetWeekdayOrdinal(value int) { - objc.Call[objc.Void](d_, objc.Sel("setWeekdayOrdinal:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1412462-year?language=objc +func (d_ DateComponents) SetYear(value int) { + objc.Call[objc.Void](d_, objc.Sel("setYear:"), value) } -// The number of the weekdays. [Full Topic] +// The week number of the months. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1410442-weekday?language=objc -func (d_ DateComponents) Weekday() int { - rv := objc.Call[int](d_, objc.Sel("weekday")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1413168-weekofmonth?language=objc +func (d_ DateComponents) WeekOfMonth() int { + rv := objc.Call[int](d_, objc.Sel("weekOfMonth")) return rv } -// The number of the weekdays. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1410442-weekday?language=objc -func (d_ DateComponents) SetWeekday(value int) { - objc.Call[objc.Void](d_, objc.Sel("setWeekday:"), value) -} - -// The date calculated from the current components using the stored calendar. [Full Topic] +// The week number of the months. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1412861-date?language=objc -func (d_ DateComponents) Date() Date { - rv := objc.Call[Date](d_, objc.Sel("date")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1413168-weekofmonth?language=objc +func (d_ DateComponents) SetWeekOfMonth(value int) { + objc.Call[objc.Void](d_, objc.Sel("setWeekOfMonth:"), value) } -// The number of hour units for the receiver. [Full Topic] +// The time zone used to interpret the date components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1411355-hour?language=objc -func (d_ DateComponents) Hour() int { - rv := objc.Call[int](d_, objc.Sel("hour")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1408233-timezone?language=objc +func (d_ DateComponents) TimeZone() TimeZone { + rv := objc.Call[TimeZone](d_, objc.Sel("timeZone")) return rv } -// The number of hour units for the receiver. [Full Topic] +// The time zone used to interpret the date components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1411355-hour?language=objc -func (d_ DateComponents) SetHour(value int) { - objc.Call[objc.Void](d_, objc.Sel("setHour:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1408233-timezone?language=objc +func (d_ DateComponents) SetTimeZone(value ITimeZone) { + objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), value) } // The number of nanosecond units for the receiver. [Full Topic] @@ -318,14 +296,6 @@ func (d_ DateComponents) SetNanosecond(value int) { objc.Call[objc.Void](d_, objc.Sel("setNanosecond:"), value) } -// A Boolean value that indicates whether the current combination of properties represents a date which exists in the current calendar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1408788-validdate?language=objc -func (d_ DateComponents) IsValidDate() bool { - rv := objc.Call[bool](d_, objc.Sel("isValidDate")) - return rv -} - // The number of days. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1415267-day?language=objc @@ -341,34 +311,34 @@ func (d_ DateComponents) SetDay(value int) { objc.Call[objc.Void](d_, objc.Sel("setDay:"), value) } -// The number of months. [Full Topic] +// The ordinal number of weekdays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1408724-month?language=objc -func (d_ DateComponents) Month() int { - rv := objc.Call[int](d_, objc.Sel("month")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1409476-weekdayordinal?language=objc +func (d_ DateComponents) WeekdayOrdinal() int { + rv := objc.Call[int](d_, objc.Sel("weekdayOrdinal")) return rv } -// The number of months. [Full Topic] +// The ordinal number of weekdays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1408724-month?language=objc -func (d_ DateComponents) SetMonth(value int) { - objc.Call[objc.Void](d_, objc.Sel("setMonth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1409476-weekdayordinal?language=objc +func (d_ DateComponents) SetWeekdayOrdinal(value int) { + objc.Call[objc.Void](d_, objc.Sel("setWeekdayOrdinal:"), value) } -// The number of second units for the receiver. [Full Topic] +// The calendar used to interpret the date components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1414045-second?language=objc -func (d_ DateComponents) Second() int { - rv := objc.Call[int](d_, objc.Sel("second")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1415799-calendar?language=objc +func (d_ DateComponents) Calendar() Calendar { + rv := objc.Call[Calendar](d_, objc.Sel("calendar")) return rv } -// The number of second units for the receiver. [Full Topic] +// The calendar used to interpret the date components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1414045-second?language=objc -func (d_ DateComponents) SetSecond(value int) { - objc.Call[objc.Void](d_, objc.Sel("setSecond:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1415799-calendar?language=objc +func (d_ DateComponents) SetCalendar(value ICalendar) { + objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), value) } // The number of eras. [Full Topic] @@ -385,3 +355,33 @@ func (d_ DateComponents) Era() int { func (d_ DateComponents) SetEra(value int) { objc.Call[objc.Void](d_, objc.Sel("setEra:"), value) } + +// The number of minute units for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1409443-minute?language=objc +func (d_ DateComponents) Minute() int { + rv := objc.Call[int](d_, objc.Sel("minute")) + return rv +} + +// The number of minute units for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1409443-minute?language=objc +func (d_ DateComponents) SetMinute(value int) { + objc.Call[objc.Void](d_, objc.Sel("setMinute:"), value) +} + +// The ISO 8601 week-numbering year. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1413809-yearforweekofyear?language=objc +func (d_ DateComponents) YearForWeekOfYear() int { + rv := objc.Call[int](d_, objc.Sel("yearForWeekOfYear")) + return rv +} + +// The ISO 8601 week-numbering year. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponents/1413809-yearforweekofyear?language=objc +func (d_ DateComponents) SetYearForWeekOfYear(value int) { + objc.Call[objc.Void](d_, objc.Sel("setYearForWeekOfYear:"), value) +} diff --git a/macos/foundation/date_components_formatter.gen.go b/macos/foundation/date_components_formatter.gen.go index 64ed0800..4045e044 100644 --- a/macos/foundation/date_components_formatter.gen.go +++ b/macos/foundation/date_components_formatter.gen.go @@ -18,31 +18,31 @@ type _DateComponentsFormatterClass struct { // An interface definition for the [DateComponentsFormatter] class. type IDateComponentsFormatter interface { IFormatter - StringFromDateToDate(startDate IDate, endDate IDate) string StringFromTimeInterval(ti TimeInterval) string StringFromDateComponents(components IDateComponents) string + StringFromDateToDate(startDate IDate, endDate IDate) string + UnitsStyle() DateComponentsFormatterUnitsStyle + SetUnitsStyle(value DateComponentsFormatterUnitsStyle) + IncludesTimeRemainingPhrase() bool + SetIncludesTimeRemainingPhrase(value bool) AllowsFractionalUnits() bool SetAllowsFractionalUnits(value bool) + MaximumUnitCount() int + SetMaximumUnitCount(value int) + CollapsesLargestUnit() bool + SetCollapsesLargestUnit(value bool) + ZeroFormattingBehavior() DateComponentsFormatterZeroFormattingBehavior + SetZeroFormattingBehavior(value DateComponentsFormatterZeroFormattingBehavior) IncludesApproximationPhrase() bool SetIncludesApproximationPhrase(value bool) - Calendar() Calendar - SetCalendar(value ICalendar) AllowedUnits() CalendarUnit SetAllowedUnits(value CalendarUnit) ReferenceDate() Date SetReferenceDate(value IDate) - CollapsesLargestUnit() bool - SetCollapsesLargestUnit(value bool) - IncludesTimeRemainingPhrase() bool - SetIncludesTimeRemainingPhrase(value bool) - MaximumUnitCount() int - SetMaximumUnitCount(value int) - ZeroFormattingBehavior() DateComponentsFormatterZeroFormattingBehavior - SetZeroFormattingBehavior(value DateComponentsFormatterZeroFormattingBehavior) - UnitsStyle() DateComponentsFormatterUnitsStyle - SetUnitsStyle(value DateComponentsFormatterUnitsStyle) FormattingContext() FormattingContext SetFormattingContext(value FormattingContext) + Calendar() Calendar + SetCalendar(value ICalendar) } // A formatter that creates string representations of quantities of time. [Full Topic] @@ -78,14 +78,6 @@ func (d_ DateComponentsFormatter) Init() DateComponentsFormatter { return rv } -// Returns a formatted string based on the time difference between two dates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1415967-stringfromdate?language=objc -func (d_ DateComponentsFormatter) StringFromDateToDate(startDate IDate, endDate IDate) string { - rv := objc.Call[string](d_, objc.Sel("stringFromDate:toDate:"), startDate, endDate) - return rv -} - // Returns a localized string based on the specified date components and style option. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1411422-localizedstringfromdatecomponent?language=objc @@ -117,79 +109,72 @@ func (d_ DateComponentsFormatter) StringFromDateComponents(components IDateCompo return rv } -// A Boolean indicating whether non-integer units may be used for values. [Full Topic] +// Returns a formatted string based on the time difference between two dates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413084-allowsfractionalunits?language=objc -func (d_ DateComponentsFormatter) AllowsFractionalUnits() bool { - rv := objc.Call[bool](d_, objc.Sel("allowsFractionalUnits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1415967-stringfromdate?language=objc +func (d_ DateComponentsFormatter) StringFromDateToDate(startDate IDate, endDate IDate) string { + rv := objc.Call[string](d_, objc.Sel("stringFromDate:toDate:"), startDate, endDate) return rv } -// A Boolean indicating whether non-integer units may be used for values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413084-allowsfractionalunits?language=objc -func (d_ DateComponentsFormatter) SetAllowsFractionalUnits(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setAllowsFractionalUnits:"), value) -} - -// A Boolean value indicating whether the resulting phrase reflects an inexact time value. [Full Topic] +// The formatting style for unit names. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416387-includesapproximationphrase?language=objc -func (d_ DateComponentsFormatter) IncludesApproximationPhrase() bool { - rv := objc.Call[bool](d_, objc.Sel("includesApproximationPhrase")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413441-unitsstyle?language=objc +func (d_ DateComponentsFormatter) UnitsStyle() DateComponentsFormatterUnitsStyle { + rv := objc.Call[DateComponentsFormatterUnitsStyle](d_, objc.Sel("unitsStyle")) return rv } -// A Boolean value indicating whether the resulting phrase reflects an inexact time value. [Full Topic] +// The formatting style for unit names. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416387-includesapproximationphrase?language=objc -func (d_ DateComponentsFormatter) SetIncludesApproximationPhrase(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setIncludesApproximationPhrase:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413441-unitsstyle?language=objc +func (d_ DateComponentsFormatter) SetUnitsStyle(value DateComponentsFormatterUnitsStyle) { + objc.Call[objc.Void](d_, objc.Sel("setUnitsStyle:"), value) } -// The default calendar to use when formatting date components. [Full Topic] +// A Boolean value indicating whether output strings reflect the amount of time remaining. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1407359-calendar?language=objc -func (d_ DateComponentsFormatter) Calendar() Calendar { - rv := objc.Call[Calendar](d_, objc.Sel("calendar")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416416-includestimeremainingphrase?language=objc +func (d_ DateComponentsFormatter) IncludesTimeRemainingPhrase() bool { + rv := objc.Call[bool](d_, objc.Sel("includesTimeRemainingPhrase")) return rv } -// The default calendar to use when formatting date components. [Full Topic] +// A Boolean value indicating whether output strings reflect the amount of time remaining. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1407359-calendar?language=objc -func (d_ DateComponentsFormatter) SetCalendar(value ICalendar) { - objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416416-includestimeremainingphrase?language=objc +func (d_ DateComponentsFormatter) SetIncludesTimeRemainingPhrase(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setIncludesTimeRemainingPhrase:"), value) } -// The bitmask of calendrical units such as day and month to include in the output string. [Full Topic] +// A Boolean indicating whether non-integer units may be used for values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1410216-allowedunits?language=objc -func (d_ DateComponentsFormatter) AllowedUnits() CalendarUnit { - rv := objc.Call[CalendarUnit](d_, objc.Sel("allowedUnits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413084-allowsfractionalunits?language=objc +func (d_ DateComponentsFormatter) AllowsFractionalUnits() bool { + rv := objc.Call[bool](d_, objc.Sel("allowsFractionalUnits")) return rv } -// The bitmask of calendrical units such as day and month to include in the output string. [Full Topic] +// A Boolean indicating whether non-integer units may be used for values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1410216-allowedunits?language=objc -func (d_ DateComponentsFormatter) SetAllowedUnits(value CalendarUnit) { - objc.Call[objc.Void](d_, objc.Sel("setAllowedUnits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413084-allowsfractionalunits?language=objc +func (d_ DateComponentsFormatter) SetAllowsFractionalUnits(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setAllowsFractionalUnits:"), value) } -// [Full Topic] +// The maximum number of time units to include in the output string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/2878110-referencedate?language=objc -func (d_ DateComponentsFormatter) ReferenceDate() Date { - rv := objc.Call[Date](d_, objc.Sel("referenceDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416214-maximumunitcount?language=objc +func (d_ DateComponentsFormatter) MaximumUnitCount() int { + rv := objc.Call[int](d_, objc.Sel("maximumUnitCount")) return rv } -// [Full Topic] +// The maximum number of time units to include in the output string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/2878110-referencedate?language=objc -func (d_ DateComponentsFormatter) SetReferenceDate(value IDate) { - objc.Call[objc.Void](d_, objc.Sel("setReferenceDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416214-maximumunitcount?language=objc +func (d_ DateComponentsFormatter) SetMaximumUnitCount(value int) { + objc.Call[objc.Void](d_, objc.Sel("setMaximumUnitCount:"), value) } // A Boolean value indicating whether to collapse the largest unit into smaller units when a certain threshold is met. [Full Topic] @@ -207,64 +192,64 @@ func (d_ DateComponentsFormatter) SetCollapsesLargestUnit(value bool) { objc.Call[objc.Void](d_, objc.Sel("setCollapsesLargestUnit:"), value) } -// A Boolean value indicating whether output strings reflect the amount of time remaining. [Full Topic] +// The formatting style for units whose value is 0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416416-includestimeremainingphrase?language=objc -func (d_ DateComponentsFormatter) IncludesTimeRemainingPhrase() bool { - rv := objc.Call[bool](d_, objc.Sel("includesTimeRemainingPhrase")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413749-zeroformattingbehavior?language=objc +func (d_ DateComponentsFormatter) ZeroFormattingBehavior() DateComponentsFormatterZeroFormattingBehavior { + rv := objc.Call[DateComponentsFormatterZeroFormattingBehavior](d_, objc.Sel("zeroFormattingBehavior")) return rv } -// A Boolean value indicating whether output strings reflect the amount of time remaining. [Full Topic] +// The formatting style for units whose value is 0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416416-includestimeremainingphrase?language=objc -func (d_ DateComponentsFormatter) SetIncludesTimeRemainingPhrase(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setIncludesTimeRemainingPhrase:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413749-zeroformattingbehavior?language=objc +func (d_ DateComponentsFormatter) SetZeroFormattingBehavior(value DateComponentsFormatterZeroFormattingBehavior) { + objc.Call[objc.Void](d_, objc.Sel("setZeroFormattingBehavior:"), value) } -// The maximum number of time units to include in the output string. [Full Topic] +// A Boolean value indicating whether the resulting phrase reflects an inexact time value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416214-maximumunitcount?language=objc -func (d_ DateComponentsFormatter) MaximumUnitCount() int { - rv := objc.Call[int](d_, objc.Sel("maximumUnitCount")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416387-includesapproximationphrase?language=objc +func (d_ DateComponentsFormatter) IncludesApproximationPhrase() bool { + rv := objc.Call[bool](d_, objc.Sel("includesApproximationPhrase")) return rv } -// The maximum number of time units to include in the output string. [Full Topic] +// A Boolean value indicating whether the resulting phrase reflects an inexact time value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416214-maximumunitcount?language=objc -func (d_ DateComponentsFormatter) SetMaximumUnitCount(value int) { - objc.Call[objc.Void](d_, objc.Sel("setMaximumUnitCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1416387-includesapproximationphrase?language=objc +func (d_ DateComponentsFormatter) SetIncludesApproximationPhrase(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setIncludesApproximationPhrase:"), value) } -// The formatting style for units whose value is 0. [Full Topic] +// The bitmask of calendrical units such as day and month to include in the output string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413749-zeroformattingbehavior?language=objc -func (d_ DateComponentsFormatter) ZeroFormattingBehavior() DateComponentsFormatterZeroFormattingBehavior { - rv := objc.Call[DateComponentsFormatterZeroFormattingBehavior](d_, objc.Sel("zeroFormattingBehavior")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1410216-allowedunits?language=objc +func (d_ DateComponentsFormatter) AllowedUnits() CalendarUnit { + rv := objc.Call[CalendarUnit](d_, objc.Sel("allowedUnits")) return rv } -// The formatting style for units whose value is 0. [Full Topic] +// The bitmask of calendrical units such as day and month to include in the output string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413749-zeroformattingbehavior?language=objc -func (d_ DateComponentsFormatter) SetZeroFormattingBehavior(value DateComponentsFormatterZeroFormattingBehavior) { - objc.Call[objc.Void](d_, objc.Sel("setZeroFormattingBehavior:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1410216-allowedunits?language=objc +func (d_ DateComponentsFormatter) SetAllowedUnits(value CalendarUnit) { + objc.Call[objc.Void](d_, objc.Sel("setAllowedUnits:"), value) } -// The formatting style for unit names. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413441-unitsstyle?language=objc -func (d_ DateComponentsFormatter) UnitsStyle() DateComponentsFormatterUnitsStyle { - rv := objc.Call[DateComponentsFormatterUnitsStyle](d_, objc.Sel("unitsStyle")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/2878110-referencedate?language=objc +func (d_ DateComponentsFormatter) ReferenceDate() Date { + rv := objc.Call[Date](d_, objc.Sel("referenceDate")) return rv } -// The formatting style for unit names. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1413441-unitsstyle?language=objc -func (d_ DateComponentsFormatter) SetUnitsStyle(value DateComponentsFormatterUnitsStyle) { - objc.Call[objc.Void](d_, objc.Sel("setUnitsStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/2878110-referencedate?language=objc +func (d_ DateComponentsFormatter) SetReferenceDate(value IDate) { + objc.Call[objc.Void](d_, objc.Sel("setReferenceDate:"), value) } // [Full Topic] @@ -281,3 +266,18 @@ func (d_ DateComponentsFormatter) FormattingContext() FormattingContext { func (d_ DateComponentsFormatter) SetFormattingContext(value FormattingContext) { objc.Call[objc.Void](d_, objc.Sel("setFormattingContext:"), value) } + +// The default calendar to use when formatting date components. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1407359-calendar?language=objc +func (d_ DateComponentsFormatter) Calendar() Calendar { + rv := objc.Call[Calendar](d_, objc.Sel("calendar")) + return rv +} + +// The default calendar to use when formatting date components. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter/1407359-calendar?language=objc +func (d_ DateComponentsFormatter) SetCalendar(value ICalendar) { + objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), value) +} diff --git a/macos/foundation/date_formatter.gen.go b/macos/foundation/date_formatter.gen.go index d43bc381..1cfe9c0c 100644 --- a/macos/foundation/date_formatter.gen.go +++ b/macos/foundation/date_formatter.gen.go @@ -18,78 +18,78 @@ type _DateFormatterClass struct { // An interface definition for the [DateFormatter] class. type IDateFormatter interface { IFormatter - StringFromDate(date IDate) string - SetLocalizedDateFormatFromTemplate(dateFormatTemplate string) DateFromString(string_ string) Date GetObjectValueForStringRangeError(obj unsafe.Pointer, string_ string, rangep *Range, error unsafe.Pointer) bool - ShortStandaloneQuarterSymbols() []string - SetShortStandaloneQuarterSymbols(value []string) - QuarterSymbols() []string - SetQuarterSymbols(value []string) - Locale() Locale - SetLocale(value ILocale) + StringFromDate(date IDate) string + SetLocalizedDateFormatFromTemplate(dateFormatTemplate string) + IsLenient() bool + SetLenient(value bool) + VeryShortStandaloneMonthSymbols() []string + SetVeryShortStandaloneMonthSymbols(value []string) + ShortStandaloneWeekdaySymbols() []string + SetShortStandaloneWeekdaySymbols(value []string) + DoesRelativeDateFormatting() bool + SetDoesRelativeDateFormatting(value bool) + WeekdaySymbols() []string + SetWeekdaySymbols(value []string) + PMSymbol() string + SetPMSymbol(value string) StandaloneQuarterSymbols() []string SetStandaloneQuarterSymbols(value []string) - StandaloneWeekdaySymbols() []string - SetStandaloneWeekdaySymbols(value []string) - TwoDigitStartDate() Date - SetTwoDigitStartDate(value IDate) - VeryShortStandaloneWeekdaySymbols() []string - SetVeryShortStandaloneWeekdaySymbols(value []string) + MonthSymbols() []string + SetMonthSymbols(value []string) + FormatterBehavior() DateFormatterBehavior + SetFormatterBehavior(value DateFormatterBehavior) DateFormat() string SetDateFormat(value string) - FormattingContext() FormattingContext - SetFormattingContext(value FormattingContext) - TimeZone() TimeZone - SetTimeZone(value ITimeZone) - Calendar() Calendar - SetCalendar(value ICalendar) ShortWeekdaySymbols() []string SetShortWeekdaySymbols(value []string) - GeneratesCalendarDates() bool - SetGeneratesCalendarDates(value bool) + Locale() Locale + SetLocale(value ILocale) + EraSymbols() []string + SetEraSymbols(value []string) + StandaloneWeekdaySymbols() []string + SetStandaloneWeekdaySymbols(value []string) DefaultDate() Date SetDefaultDate(value IDate) - AMSymbol() string - SetAMSymbol(value string) + TimeZone() TimeZone + SetTimeZone(value ITimeZone) + TimeStyle() DateFormatterStyle + SetTimeStyle(value DateFormatterStyle) VeryShortMonthSymbols() []string SetVeryShortMonthSymbols(value []string) - MonthSymbols() []string - SetMonthSymbols(value []string) - IsLenient() bool - SetLenient(value bool) - EraSymbols() []string - SetEraSymbols(value []string) - FormatterBehavior() DateFormatterBehavior - SetFormatterBehavior(value DateFormatterBehavior) - VeryShortWeekdaySymbols() []string - SetVeryShortWeekdaySymbols(value []string) - LongEraSymbols() []string - SetLongEraSymbols(value []string) + QuarterSymbols() []string + SetQuarterSymbols(value []string) + ShortStandaloneQuarterSymbols() []string + SetShortStandaloneQuarterSymbols(value []string) + TwoDigitStartDate() Date + SetTwoDigitStartDate(value IDate) + FormattingContext() FormattingContext + SetFormattingContext(value FormattingContext) + AMSymbol() string + SetAMSymbol(value string) + DateStyle() DateFormatterStyle + SetDateStyle(value DateFormatterStyle) + VeryShortStandaloneWeekdaySymbols() []string + SetVeryShortStandaloneWeekdaySymbols(value []string) ShortStandaloneMonthSymbols() []string SetShortStandaloneMonthSymbols(value []string) - PMSymbol() string - SetPMSymbol(value string) - ShortQuarterSymbols() []string - SetShortQuarterSymbols(value []string) - WeekdaySymbols() []string - SetWeekdaySymbols(value []string) - ShortStandaloneWeekdaySymbols() []string - SetShortStandaloneWeekdaySymbols(value []string) - TimeStyle() DateFormatterStyle - SetTimeStyle(value DateFormatterStyle) GregorianStartDate() Date SetGregorianStartDate(value IDate) + Calendar() Calendar + SetCalendar(value ICalendar) + LongEraSymbols() []string + SetLongEraSymbols(value []string) ShortMonthSymbols() []string SetShortMonthSymbols(value []string) - DateStyle() DateFormatterStyle - SetDateStyle(value DateFormatterStyle) + VeryShortWeekdaySymbols() []string + SetVeryShortWeekdaySymbols(value []string) + ShortQuarterSymbols() []string + SetShortQuarterSymbols(value []string) StandaloneMonthSymbols() []string SetStandaloneMonthSymbols(value []string) - DoesRelativeDateFormatting() bool - SetDoesRelativeDateFormatting(value bool) - VeryShortStandaloneMonthSymbols() []string - SetVeryShortStandaloneMonthSymbols(value []string) + GeneratesCalendarDates() bool + SetGeneratesCalendarDates(value bool) } // A formatter that converts between dates and their textual representations. [Full Topic] @@ -125,14 +125,6 @@ func (d_ DateFormatter) Init() DateFormatter { return rv } -// Returns a string representation of a specified date that the system formats using the receiver’s current settings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415810-stringfromdate?language=objc -func (d_ DateFormatter) StringFromDate(date IDate) string { - rv := objc.Call[string](d_, objc.Sel("stringFromDate:"), date) - return rv -} - // Returns a string representation of a specified date, that the system formats for the current locale using the specified date and time styles. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415241-localizedstringfromdate?language=objc @@ -148,11 +140,19 @@ func DateFormatter_LocalizedStringFromDateDateStyleTimeStyle(date IDate, dstyle return DateFormatterClass.LocalizedStringFromDateDateStyleTimeStyle(date, dstyle, tstyle) } -// Sets the date format from a template using the specified locale for the receiver. [Full Topic] +// Returns a localized date format string representing the given date format components arranged appropriately for the specified locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1417087-setlocalizeddateformatfromtempla?language=objc -func (d_ DateFormatter) SetLocalizedDateFormatFromTemplate(dateFormatTemplate string) { - objc.Call[objc.Void](d_, objc.Sel("setLocalizedDateFormatFromTemplate:"), dateFormatTemplate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1408112-dateformatfromtemplate?language=objc +func (dc _DateFormatterClass) DateFormatFromTemplateOptionsLocale(tmplate string, opts uint, locale ILocale) string { + rv := objc.Call[string](dc, objc.Sel("dateFormatFromTemplate:options:locale:"), tmplate, opts, locale) + return rv +} + +// Returns a localized date format string representing the given date format components arranged appropriately for the specified locale. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1408112-dateformatfromtemplate?language=objc +func DateFormatter_DateFormatFromTemplateOptionsLocale(tmplate string, opts uint, locale ILocale) string { + return DateFormatterClass.DateFormatFromTemplateOptionsLocale(tmplate, opts, locale) } // Returns a date representation of a specified string that the system interprets using the receiver’s current settings. [Full Topic] @@ -171,153 +171,154 @@ func (d_ DateFormatter) GetObjectValueForStringRangeError(obj unsafe.Pointer, st return rv } -// Returns a localized date format string representing the given date format components arranged appropriately for the specified locale. [Full Topic] +// Returns a string representation of a specified date that the system formats using the receiver’s current settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1408112-dateformatfromtemplate?language=objc -func (dc _DateFormatterClass) DateFormatFromTemplateOptionsLocale(tmplate string, opts uint, locale ILocale) string { - rv := objc.Call[string](dc, objc.Sel("dateFormatFromTemplate:options:locale:"), tmplate, opts, locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415810-stringfromdate?language=objc +func (d_ DateFormatter) StringFromDate(date IDate) string { + rv := objc.Call[string](d_, objc.Sel("stringFromDate:"), date) return rv } -// Returns a localized date format string representing the given date format components arranged appropriately for the specified locale. [Full Topic] +// Sets the date format from a template using the specified locale for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1408112-dateformatfromtemplate?language=objc -func DateFormatter_DateFormatFromTemplateOptionsLocale(tmplate string, opts uint, locale ILocale) string { - return DateFormatterClass.DateFormatFromTemplateOptionsLocale(tmplate, opts, locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1417087-setlocalizeddateformatfromtempla?language=objc +func (d_ DateFormatter) SetLocalizedDateFormatFromTemplate(dateFormatTemplate string) { + objc.Call[objc.Void](d_, objc.Sel("setLocalizedDateFormatFromTemplate:"), dateFormatTemplate) } -// The short standalone quarter symbols for the receiver. [Full Topic] +// A Boolean value that indicates whether the receiver uses heuristics when parsing a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416421-shortstandalonequartersymbols?language=objc -func (d_ DateFormatter) ShortStandaloneQuarterSymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("shortStandaloneQuarterSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411441-lenient?language=objc +func (d_ DateFormatter) IsLenient() bool { + rv := objc.Call[bool](d_, objc.Sel("isLenient")) return rv } -// The short standalone quarter symbols for the receiver. [Full Topic] +// A Boolean value that indicates whether the receiver uses heuristics when parsing a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416421-shortstandalonequartersymbols?language=objc -func (d_ DateFormatter) SetShortStandaloneQuarterSymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setShortStandaloneQuarterSymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411441-lenient?language=objc +func (d_ DateFormatter) SetLenient(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setLenient:"), value) } -// The quarter symbols for the receiver. [Full Topic] +// The very short month symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1417587-quartersymbols?language=objc -func (d_ DateFormatter) QuarterSymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("quarterSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413322-veryshortstandalonemonthsymbols?language=objc +func (d_ DateFormatter) VeryShortStandaloneMonthSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("veryShortStandaloneMonthSymbols")) return rv } -// The quarter symbols for the receiver. [Full Topic] +// The very short month symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1417587-quartersymbols?language=objc -func (d_ DateFormatter) SetQuarterSymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setQuarterSymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413322-veryshortstandalonemonthsymbols?language=objc +func (d_ DateFormatter) SetVeryShortStandaloneMonthSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setVeryShortStandaloneMonthSymbols:"), value) } -// The locale for the receiver. [Full Topic] +// The array of short standalone weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411973-locale?language=objc -func (d_ DateFormatter) Locale() Locale { - rv := objc.Call[Locale](d_, objc.Sel("locale")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409119-shortstandaloneweekdaysymbols?language=objc +func (d_ DateFormatter) ShortStandaloneWeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("shortStandaloneWeekdaySymbols")) return rv } -// The locale for the receiver. [Full Topic] +// The array of short standalone weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411973-locale?language=objc -func (d_ DateFormatter) SetLocale(value ILocale) { - objc.Call[objc.Void](d_, objc.Sel("setLocale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409119-shortstandaloneweekdaysymbols?language=objc +func (d_ DateFormatter) SetShortStandaloneWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setShortStandaloneWeekdaySymbols:"), value) } -// The standalone quarter symbols for the receiver. [Full Topic] +// A Boolean value that indicates whether the receiver uses phrases such as “today” and “tomorrow” for the date component. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411487-standalonequartersymbols?language=objc -func (d_ DateFormatter) StandaloneQuarterSymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("standaloneQuarterSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415848-doesrelativedateformatting?language=objc +func (d_ DateFormatter) DoesRelativeDateFormatting() bool { + rv := objc.Call[bool](d_, objc.Sel("doesRelativeDateFormatting")) return rv } -// The standalone quarter symbols for the receiver. [Full Topic] +// A Boolean value that indicates whether the receiver uses phrases such as “today” and “tomorrow” for the date component. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411487-standalonequartersymbols?language=objc -func (d_ DateFormatter) SetStandaloneQuarterSymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setStandaloneQuarterSymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415848-doesrelativedateformatting?language=objc +func (d_ DateFormatter) SetDoesRelativeDateFormatting(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setDoesRelativeDateFormatting:"), value) } -// The array of standalone weekday symbols for the receiver. [Full Topic] +// The array of weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413618-standaloneweekdaysymbols?language=objc -func (d_ DateFormatter) StandaloneWeekdaySymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("standaloneWeekdaySymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412405-weekdaysymbols?language=objc +func (d_ DateFormatter) WeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("weekdaySymbols")) return rv } -// The array of standalone weekday symbols for the receiver. [Full Topic] +// The array of weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413618-standaloneweekdaysymbols?language=objc -func (d_ DateFormatter) SetStandaloneWeekdaySymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setStandaloneWeekdaySymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412405-weekdaysymbols?language=objc +func (d_ DateFormatter) SetWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setWeekdaySymbols:"), value) } -// The earliest date that can be denoted by a two-digit year specifier. [Full Topic] +// The PM symbol for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1417203-twodigitstartdate?language=objc -func (d_ DateFormatter) TwoDigitStartDate() Date { - rv := objc.Call[Date](d_, objc.Sel("twoDigitStartDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412367-pmsymbol?language=objc +func (d_ DateFormatter) PMSymbol() string { + rv := objc.Call[string](d_, objc.Sel("PMSymbol")) return rv } -// The earliest date that can be denoted by a two-digit year specifier. [Full Topic] +// The PM symbol for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1417203-twodigitstartdate?language=objc -func (d_ DateFormatter) SetTwoDigitStartDate(value IDate) { - objc.Call[objc.Void](d_, objc.Sel("setTwoDigitStartDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412367-pmsymbol?language=objc +func (d_ DateFormatter) SetPMSymbol(value string) { + objc.Call[objc.Void](d_, objc.Sel("setPMSymbol:"), value) } -// The array of very short standalone weekday symbols for the receiver. [Full Topic] +// The standalone quarter symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418238-veryshortstandaloneweekdaysymbol?language=objc -func (d_ DateFormatter) VeryShortStandaloneWeekdaySymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("veryShortStandaloneWeekdaySymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411487-standalonequartersymbols?language=objc +func (d_ DateFormatter) StandaloneQuarterSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("standaloneQuarterSymbols")) return rv } -// The array of very short standalone weekday symbols for the receiver. [Full Topic] +// The standalone quarter symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418238-veryshortstandaloneweekdaysymbol?language=objc -func (d_ DateFormatter) SetVeryShortStandaloneWeekdaySymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setVeryShortStandaloneWeekdaySymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411487-standalonequartersymbols?language=objc +func (d_ DateFormatter) SetStandaloneQuarterSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setStandaloneQuarterSymbols:"), value) } -// Returns the default formatting behavior for instances of the class. [Full Topic] +// The month symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409266-defaultformatterbehavior?language=objc -func (dc _DateFormatterClass) DefaultFormatterBehavior() DateFormatterBehavior { - rv := objc.Call[DateFormatterBehavior](dc, objc.Sel("defaultFormatterBehavior")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412049-monthsymbols?language=objc +func (d_ DateFormatter) MonthSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("monthSymbols")) return rv } -// Returns the default formatting behavior for instances of the class. [Full Topic] +// The month symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409266-defaultformatterbehavior?language=objc -func DateFormatter_DefaultFormatterBehavior() DateFormatterBehavior { - return DateFormatterClass.DefaultFormatterBehavior() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412049-monthsymbols?language=objc +func (d_ DateFormatter) SetMonthSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setMonthSymbols:"), value) } -// Returns the default formatting behavior for instances of the class. [Full Topic] +// The formatter behavior for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409266-defaultformatterbehavior?language=objc -func (dc _DateFormatterClass) SetDefaultFormatterBehavior(value DateFormatterBehavior) { - objc.Call[objc.Void](dc, objc.Sel("setDefaultFormatterBehavior:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409720-formatterbehavior?language=objc +func (d_ DateFormatter) FormatterBehavior() DateFormatterBehavior { + rv := objc.Call[DateFormatterBehavior](d_, objc.Sel("formatterBehavior")) + return rv } -// Returns the default formatting behavior for instances of the class. [Full Topic] +// The formatter behavior for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409266-defaultformatterbehavior?language=objc -func DateFormatter_SetDefaultFormatterBehavior(value DateFormatterBehavior) { - DateFormatterClass.SetDefaultFormatterBehavior(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409720-formatterbehavior?language=objc +func (d_ DateFormatter) SetFormatterBehavior(value DateFormatterBehavior) { + objc.Call[objc.Void](d_, objc.Sel("setFormatterBehavior:"), value) } // The date format string used by the receiver. [Full Topic] @@ -335,79 +336,64 @@ func (d_ DateFormatter) SetDateFormat(value string) { objc.Call[objc.Void](d_, objc.Sel("setDateFormat:"), value) } -// The capitalization formatting context used when formatting a date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1408066-formattingcontext?language=objc -func (d_ DateFormatter) FormattingContext() FormattingContext { - rv := objc.Call[FormattingContext](d_, objc.Sel("formattingContext")) - return rv -} - -// The capitalization formatting context used when formatting a date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1408066-formattingcontext?language=objc -func (d_ DateFormatter) SetFormattingContext(value FormattingContext) { - objc.Call[objc.Void](d_, objc.Sel("setFormattingContext:"), value) -} - -// The time zone for the receiver. [Full Topic] +// The array of short weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411406-timezone?language=objc -func (d_ DateFormatter) TimeZone() TimeZone { - rv := objc.Call[TimeZone](d_, objc.Sel("timeZone")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416121-shortweekdaysymbols?language=objc +func (d_ DateFormatter) ShortWeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("shortWeekdaySymbols")) return rv } -// The time zone for the receiver. [Full Topic] +// The array of short weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411406-timezone?language=objc -func (d_ DateFormatter) SetTimeZone(value ITimeZone) { - objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416121-shortweekdaysymbols?language=objc +func (d_ DateFormatter) SetShortWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setShortWeekdaySymbols:"), value) } -// The calendar for the receiver. [Full Topic] +// The locale for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413675-calendar?language=objc -func (d_ DateFormatter) Calendar() Calendar { - rv := objc.Call[Calendar](d_, objc.Sel("calendar")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411973-locale?language=objc +func (d_ DateFormatter) Locale() Locale { + rv := objc.Call[Locale](d_, objc.Sel("locale")) return rv } -// The calendar for the receiver. [Full Topic] +// The locale for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413675-calendar?language=objc -func (d_ DateFormatter) SetCalendar(value ICalendar) { - objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411973-locale?language=objc +func (d_ DateFormatter) SetLocale(value ILocale) { + objc.Call[objc.Void](d_, objc.Sel("setLocale:"), value) } -// The array of short weekday symbols for the receiver. [Full Topic] +// The era symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416121-shortweekdaysymbols?language=objc -func (d_ DateFormatter) ShortWeekdaySymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("shortWeekdaySymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418282-erasymbols?language=objc +func (d_ DateFormatter) EraSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("eraSymbols")) return rv } -// The array of short weekday symbols for the receiver. [Full Topic] +// The era symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416121-shortweekdaysymbols?language=objc -func (d_ DateFormatter) SetShortWeekdaySymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setShortWeekdaySymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418282-erasymbols?language=objc +func (d_ DateFormatter) SetEraSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setEraSymbols:"), value) } -// Indicates whether the formatter generates the deprecated calendar date type. [Full Topic] +// The array of standalone weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411107-generatescalendardates?language=objc -func (d_ DateFormatter) GeneratesCalendarDates() bool { - rv := objc.Call[bool](d_, objc.Sel("generatesCalendarDates")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413618-standaloneweekdaysymbols?language=objc +func (d_ DateFormatter) StandaloneWeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("standaloneWeekdaySymbols")) return rv } -// Indicates whether the formatter generates the deprecated calendar date type. [Full Topic] +// The array of standalone weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411107-generatescalendardates?language=objc -func (d_ DateFormatter) SetGeneratesCalendarDates(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setGeneratesCalendarDates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413618-standaloneweekdaysymbols?language=objc +func (d_ DateFormatter) SetStandaloneWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setStandaloneWeekdaySymbols:"), value) } // The default date for the receiver. [Full Topic] @@ -425,19 +411,34 @@ func (d_ DateFormatter) SetDefaultDate(value IDate) { objc.Call[objc.Void](d_, objc.Sel("setDefaultDate:"), value) } -// The AM symbol for the receiver. [Full Topic] +// The time zone for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409506-amsymbol?language=objc -func (d_ DateFormatter) AMSymbol() string { - rv := objc.Call[string](d_, objc.Sel("AMSymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411406-timezone?language=objc +func (d_ DateFormatter) TimeZone() TimeZone { + rv := objc.Call[TimeZone](d_, objc.Sel("timeZone")) return rv } -// The AM symbol for the receiver. [Full Topic] +// The time zone for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409506-amsymbol?language=objc -func (d_ DateFormatter) SetAMSymbol(value string) { - objc.Call[objc.Void](d_, objc.Sel("setAMSymbol:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411406-timezone?language=objc +func (d_ DateFormatter) SetTimeZone(value ITimeZone) { + objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), value) +} + +// The time style of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413467-timestyle?language=objc +func (d_ DateFormatter) TimeStyle() DateFormatterStyle { + rv := objc.Call[DateFormatterStyle](d_, objc.Sel("timeStyle")) + return rv +} + +// The time style of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413467-timestyle?language=objc +func (d_ DateFormatter) SetTimeStyle(value DateFormatterStyle) { + objc.Call[objc.Void](d_, objc.Sel("setTimeStyle:"), value) } // The very short month symbols for the receiver. [Full Topic] @@ -455,199 +456,198 @@ func (d_ DateFormatter) SetVeryShortMonthSymbols(value []string) { objc.Call[objc.Void](d_, objc.Sel("setVeryShortMonthSymbols:"), value) } -// The month symbols for the receiver. [Full Topic] +// The quarter symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412049-monthsymbols?language=objc -func (d_ DateFormatter) MonthSymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("monthSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1417587-quartersymbols?language=objc +func (d_ DateFormatter) QuarterSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("quarterSymbols")) return rv } -// The month symbols for the receiver. [Full Topic] +// The quarter symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412049-monthsymbols?language=objc -func (d_ DateFormatter) SetMonthSymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setMonthSymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1417587-quartersymbols?language=objc +func (d_ DateFormatter) SetQuarterSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setQuarterSymbols:"), value) } -// A Boolean value that indicates whether the receiver uses heuristics when parsing a string. [Full Topic] +// The short standalone quarter symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411441-lenient?language=objc -func (d_ DateFormatter) IsLenient() bool { - rv := objc.Call[bool](d_, objc.Sel("isLenient")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416421-shortstandalonequartersymbols?language=objc +func (d_ DateFormatter) ShortStandaloneQuarterSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("shortStandaloneQuarterSymbols")) return rv } -// A Boolean value that indicates whether the receiver uses heuristics when parsing a string. [Full Topic] +// The short standalone quarter symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411441-lenient?language=objc -func (d_ DateFormatter) SetLenient(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setLenient:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416421-shortstandalonequartersymbols?language=objc +func (d_ DateFormatter) SetShortStandaloneQuarterSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setShortStandaloneQuarterSymbols:"), value) } -// The era symbols for the receiver. [Full Topic] +// The earliest date that can be denoted by a two-digit year specifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418282-erasymbols?language=objc -func (d_ DateFormatter) EraSymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("eraSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1417203-twodigitstartdate?language=objc +func (d_ DateFormatter) TwoDigitStartDate() Date { + rv := objc.Call[Date](d_, objc.Sel("twoDigitStartDate")) return rv } -// The era symbols for the receiver. [Full Topic] +// The earliest date that can be denoted by a two-digit year specifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418282-erasymbols?language=objc -func (d_ DateFormatter) SetEraSymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setEraSymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1417203-twodigitstartdate?language=objc +func (d_ DateFormatter) SetTwoDigitStartDate(value IDate) { + objc.Call[objc.Void](d_, objc.Sel("setTwoDigitStartDate:"), value) } -// The formatter behavior for the receiver. [Full Topic] +// Returns the default formatting behavior for instances of the class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409720-formatterbehavior?language=objc -func (d_ DateFormatter) FormatterBehavior() DateFormatterBehavior { - rv := objc.Call[DateFormatterBehavior](d_, objc.Sel("formatterBehavior")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409266-defaultformatterbehavior?language=objc +func (dc _DateFormatterClass) DefaultFormatterBehavior() DateFormatterBehavior { + rv := objc.Call[DateFormatterBehavior](dc, objc.Sel("defaultFormatterBehavior")) return rv } -// The formatter behavior for the receiver. [Full Topic] +// Returns the default formatting behavior for instances of the class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409720-formatterbehavior?language=objc -func (d_ DateFormatter) SetFormatterBehavior(value DateFormatterBehavior) { - objc.Call[objc.Void](d_, objc.Sel("setFormatterBehavior:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409266-defaultformatterbehavior?language=objc +func DateFormatter_DefaultFormatterBehavior() DateFormatterBehavior { + return DateFormatterClass.DefaultFormatterBehavior() } -// The array of very short weekday symbols for the receiver. [Full Topic] +// Returns the default formatting behavior for instances of the class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415109-veryshortweekdaysymbols?language=objc -func (d_ DateFormatter) VeryShortWeekdaySymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("veryShortWeekdaySymbols")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409266-defaultformatterbehavior?language=objc +func (dc _DateFormatterClass) SetDefaultFormatterBehavior(value DateFormatterBehavior) { + objc.Call[objc.Void](dc, objc.Sel("setDefaultFormatterBehavior:"), value) } -// The array of very short weekday symbols for the receiver. [Full Topic] +// Returns the default formatting behavior for instances of the class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415109-veryshortweekdaysymbols?language=objc -func (d_ DateFormatter) SetVeryShortWeekdaySymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setVeryShortWeekdaySymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409266-defaultformatterbehavior?language=objc +func DateFormatter_SetDefaultFormatterBehavior(value DateFormatterBehavior) { + DateFormatterClass.SetDefaultFormatterBehavior(value) } -// The long era symbols for the receiver [Full Topic] +// The capitalization formatting context used when formatting a date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418081-longerasymbols?language=objc -func (d_ DateFormatter) LongEraSymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("longEraSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1408066-formattingcontext?language=objc +func (d_ DateFormatter) FormattingContext() FormattingContext { + rv := objc.Call[FormattingContext](d_, objc.Sel("formattingContext")) return rv } -// The long era symbols for the receiver [Full Topic] +// The capitalization formatting context used when formatting a date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418081-longerasymbols?language=objc -func (d_ DateFormatter) SetLongEraSymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setLongEraSymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1408066-formattingcontext?language=objc +func (d_ DateFormatter) SetFormattingContext(value FormattingContext) { + objc.Call[objc.Void](d_, objc.Sel("setFormattingContext:"), value) } -// The short standalone month symbols for the receiver. [Full Topic] +// The AM symbol for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1414771-shortstandalonemonthsymbols?language=objc -func (d_ DateFormatter) ShortStandaloneMonthSymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("shortStandaloneMonthSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409506-amsymbol?language=objc +func (d_ DateFormatter) AMSymbol() string { + rv := objc.Call[string](d_, objc.Sel("AMSymbol")) return rv } -// The short standalone month symbols for the receiver. [Full Topic] +// The AM symbol for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1414771-shortstandalonemonthsymbols?language=objc -func (d_ DateFormatter) SetShortStandaloneMonthSymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setShortStandaloneMonthSymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409506-amsymbol?language=objc +func (d_ DateFormatter) SetAMSymbol(value string) { + objc.Call[objc.Void](d_, objc.Sel("setAMSymbol:"), value) } -// The PM symbol for the receiver. [Full Topic] +// The date style of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412367-pmsymbol?language=objc -func (d_ DateFormatter) PMSymbol() string { - rv := objc.Call[string](d_, objc.Sel("PMSymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415411-datestyle?language=objc +func (d_ DateFormatter) DateStyle() DateFormatterStyle { + rv := objc.Call[DateFormatterStyle](d_, objc.Sel("dateStyle")) return rv } -// The PM symbol for the receiver. [Full Topic] +// The date style of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412367-pmsymbol?language=objc -func (d_ DateFormatter) SetPMSymbol(value string) { - objc.Call[objc.Void](d_, objc.Sel("setPMSymbol:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415411-datestyle?language=objc +func (d_ DateFormatter) SetDateStyle(value DateFormatterStyle) { + objc.Call[objc.Void](d_, objc.Sel("setDateStyle:"), value) } -// The short quarter symbols for the receiver. [Full Topic] +// The array of very short standalone weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409851-shortquartersymbols?language=objc -func (d_ DateFormatter) ShortQuarterSymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("shortQuarterSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418238-veryshortstandaloneweekdaysymbol?language=objc +func (d_ DateFormatter) VeryShortStandaloneWeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("veryShortStandaloneWeekdaySymbols")) return rv } -// The short quarter symbols for the receiver. [Full Topic] +// The array of very short standalone weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409851-shortquartersymbols?language=objc -func (d_ DateFormatter) SetShortQuarterSymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setShortQuarterSymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418238-veryshortstandaloneweekdaysymbol?language=objc +func (d_ DateFormatter) SetVeryShortStandaloneWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setVeryShortStandaloneWeekdaySymbols:"), value) } -// The array of weekday symbols for the receiver. [Full Topic] +// The short standalone month symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412405-weekdaysymbols?language=objc -func (d_ DateFormatter) WeekdaySymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("weekdaySymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1414771-shortstandalonemonthsymbols?language=objc +func (d_ DateFormatter) ShortStandaloneMonthSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("shortStandaloneMonthSymbols")) return rv } -// The array of weekday symbols for the receiver. [Full Topic] +// The short standalone month symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1412405-weekdaysymbols?language=objc -func (d_ DateFormatter) SetWeekdaySymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setWeekdaySymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1414771-shortstandalonemonthsymbols?language=objc +func (d_ DateFormatter) SetShortStandaloneMonthSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setShortStandaloneMonthSymbols:"), value) } -// The array of short standalone weekday symbols for the receiver. [Full Topic] +// The start date of the Gregorian calendar for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409119-shortstandaloneweekdaysymbols?language=objc -func (d_ DateFormatter) ShortStandaloneWeekdaySymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("shortStandaloneWeekdaySymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416389-gregorianstartdate?language=objc +func (d_ DateFormatter) GregorianStartDate() Date { + rv := objc.Call[Date](d_, objc.Sel("gregorianStartDate")) return rv } -// The array of short standalone weekday symbols for the receiver. [Full Topic] +// The start date of the Gregorian calendar for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409119-shortstandaloneweekdaysymbols?language=objc -func (d_ DateFormatter) SetShortStandaloneWeekdaySymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setShortStandaloneWeekdaySymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416389-gregorianstartdate?language=objc +func (d_ DateFormatter) SetGregorianStartDate(value IDate) { + objc.Call[objc.Void](d_, objc.Sel("setGregorianStartDate:"), value) } -// The time style of the receiver. [Full Topic] +// The calendar for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413467-timestyle?language=objc -func (d_ DateFormatter) TimeStyle() DateFormatterStyle { - rv := objc.Call[DateFormatterStyle](d_, objc.Sel("timeStyle")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413675-calendar?language=objc +func (d_ DateFormatter) Calendar() Calendar { + rv := objc.Call[Calendar](d_, objc.Sel("calendar")) return rv } -// The time style of the receiver. [Full Topic] +// The calendar for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413467-timestyle?language=objc -func (d_ DateFormatter) SetTimeStyle(value DateFormatterStyle) { - objc.Call[objc.Void](d_, objc.Sel("setTimeStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413675-calendar?language=objc +func (d_ DateFormatter) SetCalendar(value ICalendar) { + objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), value) } -// The start date of the Gregorian calendar for the receiver. [Full Topic] +// The long era symbols for the receiver [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416389-gregorianstartdate?language=objc -func (d_ DateFormatter) GregorianStartDate() Date { - rv := objc.Call[Date](d_, objc.Sel("gregorianStartDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418081-longerasymbols?language=objc +func (d_ DateFormatter) LongEraSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("longEraSymbols")) return rv } -// The start date of the Gregorian calendar for the receiver. [Full Topic] +// The long era symbols for the receiver [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1416389-gregorianstartdate?language=objc -func (d_ DateFormatter) SetGregorianStartDate(value IDate) { - objc.Call[objc.Void](d_, objc.Sel("setGregorianStartDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1418081-longerasymbols?language=objc +func (d_ DateFormatter) SetLongEraSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setLongEraSymbols:"), value) } // The array of short month symbols for the receiver. [Full Topic] @@ -665,19 +665,34 @@ func (d_ DateFormatter) SetShortMonthSymbols(value []string) { objc.Call[objc.Void](d_, objc.Sel("setShortMonthSymbols:"), value) } -// The date style of the receiver. [Full Topic] +// The array of very short weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415411-datestyle?language=objc -func (d_ DateFormatter) DateStyle() DateFormatterStyle { - rv := objc.Call[DateFormatterStyle](d_, objc.Sel("dateStyle")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415109-veryshortweekdaysymbols?language=objc +func (d_ DateFormatter) VeryShortWeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("veryShortWeekdaySymbols")) return rv } -// The date style of the receiver. [Full Topic] +// The array of very short weekday symbols for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415411-datestyle?language=objc -func (d_ DateFormatter) SetDateStyle(value DateFormatterStyle) { - objc.Call[objc.Void](d_, objc.Sel("setDateStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415109-veryshortweekdaysymbols?language=objc +func (d_ DateFormatter) SetVeryShortWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setVeryShortWeekdaySymbols:"), value) +} + +// The short quarter symbols for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409851-shortquartersymbols?language=objc +func (d_ DateFormatter) ShortQuarterSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("shortQuarterSymbols")) + return rv +} + +// The short quarter symbols for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1409851-shortquartersymbols?language=objc +func (d_ DateFormatter) SetShortQuarterSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setShortQuarterSymbols:"), value) } // The standalone month symbols for the receiver. [Full Topic] @@ -695,32 +710,17 @@ func (d_ DateFormatter) SetStandaloneMonthSymbols(value []string) { objc.Call[objc.Void](d_, objc.Sel("setStandaloneMonthSymbols:"), value) } -// A Boolean value that indicates whether the receiver uses phrases such as “today” and “tomorrow” for the date component. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415848-doesrelativedateformatting?language=objc -func (d_ DateFormatter) DoesRelativeDateFormatting() bool { - rv := objc.Call[bool](d_, objc.Sel("doesRelativeDateFormatting")) - return rv -} - -// A Boolean value that indicates whether the receiver uses phrases such as “today” and “tomorrow” for the date component. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1415848-doesrelativedateformatting?language=objc -func (d_ DateFormatter) SetDoesRelativeDateFormatting(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setDoesRelativeDateFormatting:"), value) -} - -// The very short month symbols for the receiver. [Full Topic] +// Indicates whether the formatter generates the deprecated calendar date type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413322-veryshortstandalonemonthsymbols?language=objc -func (d_ DateFormatter) VeryShortStandaloneMonthSymbols() []string { - rv := objc.Call[[]string](d_, objc.Sel("veryShortStandaloneMonthSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411107-generatescalendardates?language=objc +func (d_ DateFormatter) GeneratesCalendarDates() bool { + rv := objc.Call[bool](d_, objc.Sel("generatesCalendarDates")) return rv } -// The very short month symbols for the receiver. [Full Topic] +// Indicates whether the formatter generates the deprecated calendar date type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1413322-veryshortstandalonemonthsymbols?language=objc -func (d_ DateFormatter) SetVeryShortStandaloneMonthSymbols(value []string) { - objc.Call[objc.Void](d_, objc.Sel("setVeryShortStandaloneMonthSymbols:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateformatter/1411107-generatescalendardates?language=objc +func (d_ DateFormatter) SetGeneratesCalendarDates(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setGeneratesCalendarDates:"), value) } diff --git a/macos/foundation/date_interval.gen.go b/macos/foundation/date_interval.gen.go index 625b92c2..9ccb6602 100644 --- a/macos/foundation/date_interval.gen.go +++ b/macos/foundation/date_interval.gen.go @@ -18,14 +18,14 @@ type _DateIntervalClass struct { // An interface definition for the [DateInterval] class. type IDateInterval interface { objc.IObject - Compare(dateInterval IDateInterval) ComparisonResult - ContainsDate(date IDate) bool - IntersectsDateInterval(dateInterval IDateInterval) bool IsEqualToDateInterval(dateInterval IDateInterval) bool IntersectionWithDateInterval(dateInterval IDateInterval) DateInterval + ContainsDate(date IDate) bool + IntersectsDateInterval(dateInterval IDateInterval) bool + Compare(dateInterval IDateInterval) ComparisonResult + StartDate() Date Duration() TimeInterval EndDate() Date - StartDate() Date } // An object representing the span of time between a specific start date and end date. [Full Topic] @@ -60,20 +60,6 @@ func (d_ DateInterval) Init() DateInterval { return rv } -func (d_ DateInterval) InitWithStartDateDuration(startDate IDate, duration TimeInterval) DateInterval { - rv := objc.Call[DateInterval](d_, objc.Sel("initWithStartDate:duration:"), startDate, duration) - return rv -} - -// Initializes a date interval with a given start date and duration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateinterval/1641653-initwithstartdate?language=objc -func NewDateIntervalWithStartDateDuration(startDate IDate, duration TimeInterval) DateInterval { - instance := DateIntervalClass.Alloc().InitWithStartDateDuration(startDate, duration) - instance.Autorelease() - return instance -} - func (dc _DateIntervalClass) Alloc() DateInterval { rv := objc.Call[DateInterval](dc, objc.Sel("alloc")) return rv @@ -89,11 +75,19 @@ func NewDateInterval() DateInterval { return DateIntervalClass.New() } -// Compares the receiver with the specified date interval. [Full Topic] +// Indicates whether the receiver is equal to the specified date interval. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateinterval/1641636-compare?language=objc -func (d_ DateInterval) Compare(dateInterval IDateInterval) ComparisonResult { - rv := objc.Call[ComparisonResult](d_, objc.Sel("compare:"), dateInterval) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateinterval/1641650-isequaltodateinterval?language=objc +func (d_ DateInterval) IsEqualToDateInterval(dateInterval IDateInterval) bool { + rv := objc.Call[bool](d_, objc.Sel("isEqualToDateInterval:"), dateInterval) + return rv +} + +// Returns the intersection between the receiver and the specified date interval. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateinterval/1641645-intersectionwithdateinterval?language=objc +func (d_ DateInterval) IntersectionWithDateInterval(dateInterval IDateInterval) DateInterval { + rv := objc.Call[DateInterval](d_, objc.Sel("intersectionWithDateInterval:"), dateInterval) return rv } @@ -113,19 +107,19 @@ func (d_ DateInterval) IntersectsDateInterval(dateInterval IDateInterval) bool { return rv } -// Indicates whether the receiver is equal to the specified date interval. [Full Topic] +// Compares the receiver with the specified date interval. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateinterval/1641650-isequaltodateinterval?language=objc -func (d_ DateInterval) IsEqualToDateInterval(dateInterval IDateInterval) bool { - rv := objc.Call[bool](d_, objc.Sel("isEqualToDateInterval:"), dateInterval) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateinterval/1641636-compare?language=objc +func (d_ DateInterval) Compare(dateInterval IDateInterval) ComparisonResult { + rv := objc.Call[ComparisonResult](d_, objc.Sel("compare:"), dateInterval) return rv } -// Returns the intersection between the receiver and the specified date interval. [Full Topic] +// The start date of the date interval. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateinterval/1641645-intersectionwithdateinterval?language=objc -func (d_ DateInterval) IntersectionWithDateInterval(dateInterval IDateInterval) DateInterval { - rv := objc.Call[DateInterval](d_, objc.Sel("intersectionWithDateInterval:"), dateInterval) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateinterval/1641656-startdate?language=objc +func (d_ DateInterval) StartDate() Date { + rv := objc.Call[Date](d_, objc.Sel("startDate")) return rv } @@ -144,11 +138,3 @@ func (d_ DateInterval) EndDate() Date { rv := objc.Call[Date](d_, objc.Sel("endDate")) return rv } - -// The start date of the date interval. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateinterval/1641656-startdate?language=objc -func (d_ DateInterval) StartDate() Date { - rv := objc.Call[Date](d_, objc.Sel("startDate")) - return rv -} diff --git a/macos/foundation/date_interval_formatter.gen.go b/macos/foundation/date_interval_formatter.gen.go index 1a41f9ec..bde423ae 100644 --- a/macos/foundation/date_interval_formatter.gen.go +++ b/macos/foundation/date_interval_formatter.gen.go @@ -18,20 +18,20 @@ type _DateIntervalFormatterClass struct { // An interface definition for the [DateIntervalFormatter] class. type IDateIntervalFormatter interface { IFormatter - StringFromDateToDate(fromDate IDate, toDate IDate) string StringFromDateInterval(dateInterval IDateInterval) string - TimeZone() TimeZone - SetTimeZone(value ITimeZone) - DateTemplate() string - SetDateTemplate(value string) + StringFromDateToDate(fromDate IDate, toDate IDate) string Locale() Locale SetLocale(value ILocale) + TimeZone() TimeZone + SetTimeZone(value ITimeZone) + TimeStyle() DateIntervalFormatterStyle + SetTimeStyle(value DateIntervalFormatterStyle) DateStyle() DateIntervalFormatterStyle SetDateStyle(value DateIntervalFormatterStyle) Calendar() Calendar SetCalendar(value ICalendar) - TimeStyle() DateIntervalFormatterStyle - SetTimeStyle(value DateIntervalFormatterStyle) + DateTemplate() string + SetDateTemplate(value string) } // A formatter that creates string representations of time intervals. [Full Topic] @@ -67,6 +67,14 @@ func (d_ DateIntervalFormatter) Init() DateIntervalFormatter { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1642848-stringfromdateinterval?language=objc +func (d_ DateIntervalFormatter) StringFromDateInterval(dateInterval IDateInterval) string { + rv := objc.Call[string](d_, objc.Sel("stringFromDateInterval:"), dateInterval) + return rv +} + // Returns a formatted string based on the specified start and end dates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1418368-stringfromdate?language=objc @@ -75,14 +83,21 @@ func (d_ DateIntervalFormatter) StringFromDateToDate(fromDate IDate, toDate IDat return rv } -// [Full Topic] +// The locale to use when formatting date and time values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1642848-stringfromdateinterval?language=objc -func (d_ DateIntervalFormatter) StringFromDateInterval(dateInterval IDateInterval) string { - rv := objc.Call[string](d_, objc.Sel("stringFromDateInterval:"), dateInterval) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1409992-locale?language=objc +func (d_ DateIntervalFormatter) Locale() Locale { + rv := objc.Call[Locale](d_, objc.Sel("locale")) return rv } +// The locale to use when formatting date and time values. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1409992-locale?language=objc +func (d_ DateIntervalFormatter) SetLocale(value ILocale) { + objc.Call[objc.Void](d_, objc.Sel("setLocale:"), value) +} + // The time zone with which to specify time values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1410228-timezone?language=objc @@ -98,34 +113,19 @@ func (d_ DateIntervalFormatter) SetTimeZone(value ITimeZone) { objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), value) } -// The template for formatting one date and time value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1407373-datetemplate?language=objc -func (d_ DateIntervalFormatter) DateTemplate() string { - rv := objc.Call[string](d_, objc.Sel("dateTemplate")) - return rv -} - -// The template for formatting one date and time value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1407373-datetemplate?language=objc -func (d_ DateIntervalFormatter) SetDateTemplate(value string) { - objc.Call[objc.Void](d_, objc.Sel("setDateTemplate:"), value) -} - -// The locale to use when formatting date and time values. [Full Topic] +// The style to use when formatting hour, minute, and second information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1409992-locale?language=objc -func (d_ DateIntervalFormatter) Locale() Locale { - rv := objc.Call[Locale](d_, objc.Sel("locale")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1415655-timestyle?language=objc +func (d_ DateIntervalFormatter) TimeStyle() DateIntervalFormatterStyle { + rv := objc.Call[DateIntervalFormatterStyle](d_, objc.Sel("timeStyle")) return rv } -// The locale to use when formatting date and time values. [Full Topic] +// The style to use when formatting hour, minute, and second information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1409992-locale?language=objc -func (d_ DateIntervalFormatter) SetLocale(value ILocale) { - objc.Call[objc.Void](d_, objc.Sel("setLocale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1415655-timestyle?language=objc +func (d_ DateIntervalFormatter) SetTimeStyle(value DateIntervalFormatterStyle) { + objc.Call[objc.Void](d_, objc.Sel("setTimeStyle:"), value) } // The style to use when formatting day, month, and year information. [Full Topic] @@ -158,17 +158,17 @@ func (d_ DateIntervalFormatter) SetCalendar(value ICalendar) { objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), value) } -// The style to use when formatting hour, minute, and second information. [Full Topic] +// The template for formatting one date and time value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1415655-timestyle?language=objc -func (d_ DateIntervalFormatter) TimeStyle() DateIntervalFormatterStyle { - rv := objc.Call[DateIntervalFormatterStyle](d_, objc.Sel("timeStyle")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1407373-datetemplate?language=objc +func (d_ DateIntervalFormatter) DateTemplate() string { + rv := objc.Call[string](d_, objc.Sel("dateTemplate")) return rv } -// The style to use when formatting hour, minute, and second information. [Full Topic] +// The template for formatting one date and time value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1415655-timestyle?language=objc -func (d_ DateIntervalFormatter) SetTimeStyle(value DateIntervalFormatterStyle) { - objc.Call[objc.Void](d_, objc.Sel("setTimeStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdateintervalformatter/1407373-datetemplate?language=objc +func (d_ DateIntervalFormatter) SetDateTemplate(value string) { + objc.Call[objc.Void](d_, objc.Sel("setDateTemplate:"), value) } diff --git a/macos/foundation/decimal_number.gen.go b/macos/foundation/decimal_number.gen.go index c0bbb4ec..6e835a85 100644 --- a/macos/foundation/decimal_number.gen.go +++ b/macos/foundation/decimal_number.gen.go @@ -18,23 +18,15 @@ type _DecimalNumberClass struct { // An interface definition for the [DecimalNumber] class. type IDecimalNumber interface { INumber - DecimalNumberBySubtractingWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber - DecimalNumberBySubtractingWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber - DecimalNumberByDividingBy(decimalNumber IDecimalNumber) DecimalNumber + DecimalNumberByMultiplyingByWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber + DecimalNumberByMultiplyingByWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber DecimalNumberByRoundingAccordingToBehavior(behavior PDecimalNumberBehaviors) DecimalNumber DecimalNumberByRoundingAccordingToBehaviorObject(behaviorObject objc.IObject) DecimalNumber DecimalNumberBySubtracting(decimalNumber IDecimalNumber) DecimalNumber - DecimalNumberByMultiplyingByPowerOf10(power int) DecimalNumber - DecimalNumberByRaisingToPowerWithBehavior(power uint, behavior PDecimalNumberBehaviors) DecimalNumber - DecimalNumberByRaisingToPowerWithBehaviorObject(power uint, behaviorObject objc.IObject) DecimalNumber - DecimalNumberByAddingWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber - DecimalNumberByAddingWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber - DecimalNumberByAdding(decimalNumber IDecimalNumber) DecimalNumber - DecimalNumberByMultiplyingBy(decimalNumber IDecimalNumber) DecimalNumber DecimalNumberByMultiplyingByPowerOf10WithBehavior(power int, behavior PDecimalNumberBehaviors) DecimalNumber DecimalNumberByMultiplyingByPowerOf10WithBehaviorObject(power int, behaviorObject objc.IObject) DecimalNumber - DecimalNumberByMultiplyingByWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber - DecimalNumberByMultiplyingByWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber + DecimalNumberByAddingWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber + DecimalNumberByAddingWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber DecimalNumberByDividingByWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber DecimalNumberByDividingByWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber DecimalNumberByRaisingToPower(power uint) DecimalNumber @@ -53,16 +45,16 @@ func DecimalNumberFrom(ptr unsafe.Pointer) DecimalNumber { } } -func (d_ DecimalNumber) InitWithStringLocale(numberValue string, locale objc.IObject) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("initWithString:locale:"), numberValue, locale) +func (d_ DecimalNumber) InitWithString(numberValue string) DecimalNumber { + rv := objc.Call[DecimalNumber](d_, objc.Sel("initWithString:"), numberValue) return rv } -// Initializes a decimal number so that its value is equivalent to that in a given numeric string, interpreted using a given locale. [Full Topic] +// Initializes a decimal number so that its value is equivalent to that in a given numeric string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1409201-initwithstring?language=objc -func NewDecimalNumberWithStringLocale(numberValue string, locale objc.IObject) DecimalNumber { - instance := DecimalNumberClass.Alloc().InitWithStringLocale(numberValue, locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1409902-initwithstring?language=objc +func NewDecimalNumberWithString(numberValue string) DecimalNumber { + instance := DecimalNumberClass.Alloc().InitWithString(numberValue) instance.Autorelease() return instance } @@ -95,20 +87,6 @@ func NewDecimalNumberWithMantissaExponentIsNegative(mantissa int64, exponent int return instance } -func (d_ DecimalNumber) InitWithString(numberValue string) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("initWithString:"), numberValue) - return rv -} - -// Initializes a decimal number so that its value is equivalent to that in a given numeric string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1409902-initwithstring?language=objc -func NewDecimalNumberWithString(numberValue string) DecimalNumber { - instance := DecimalNumberClass.Alloc().InitWithString(numberValue) - instance.Autorelease() - return instance -} - func (dc _DecimalNumberClass) Alloc() DecimalNumber { rv := objc.Call[DecimalNumber](dc, objc.Sel("alloc")) return rv @@ -143,59 +121,46 @@ func NewDecimalNumberWithBytesObjCType(value unsafe.Pointer, type_ *uint8) Decim return instance } -// Creates a decimal number whose value is equivalent to that in a given numeric string, interpreted using a given locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1578296-decimalnumberwithstring?language=objc -func (dc _DecimalNumberClass) DecimalNumberWithStringLocale(numberValue string, locale objc.IObject) DecimalNumber { - rv := objc.Call[DecimalNumber](dc, objc.Sel("decimalNumberWithString:locale:"), numberValue, locale) - return rv -} - -// Creates a decimal number whose value is equivalent to that in a given numeric string, interpreted using a given locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1578296-decimalnumberwithstring?language=objc -func DecimalNumber_DecimalNumberWithStringLocale(numberValue string, locale objc.IObject) DecimalNumber { - return DecimalNumberClass.DecimalNumberWithStringLocale(numberValue, locale) -} - -// Subtracts this a given number from this one using the specified behavior. [Full Topic] +// Multiplies this number by another given number using the specified behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1409890-decimalnumberbysubtracting?language=objc -func (d_ DecimalNumber) DecimalNumberBySubtractingWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber { +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1414874-decimalnumberbymultiplyingby?language=objc +func (d_ DecimalNumber) DecimalNumberByMultiplyingByWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber { po1 := objc.WrapAsProtocol("NSDecimalNumberBehaviors", behavior) - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberBySubtracting:withBehavior:"), decimalNumber, po1) + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingBy:withBehavior:"), decimalNumber, po1) return rv } -// Subtracts this a given number from this one using the specified behavior. [Full Topic] +// Multiplies this number by another given number using the specified behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1409890-decimalnumberbysubtracting?language=objc -func (d_ DecimalNumber) DecimalNumberBySubtractingWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberBySubtracting:withBehavior:"), decimalNumber, behaviorObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1414874-decimalnumberbymultiplyingby?language=objc +func (d_ DecimalNumber) DecimalNumberByMultiplyingByWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber { + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingBy:withBehavior:"), decimalNumber, behaviorObject) return rv } -// Divides the number by another given number. [Full Topic] +// Returns a rounded version of the decimal number using the specified rounding behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1410741-decimalnumberbydividingby?language=objc -func (d_ DecimalNumber) DecimalNumberByDividingBy(decimalNumber IDecimalNumber) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByDividingBy:"), decimalNumber) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1415436-decimalnumberbyroundingaccording?language=objc +func (d_ DecimalNumber) DecimalNumberByRoundingAccordingToBehavior(behavior PDecimalNumberBehaviors) DecimalNumber { + po0 := objc.WrapAsProtocol("NSDecimalNumberBehaviors", behavior) + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByRoundingAccordingToBehavior:"), po0) return rv } -// Creates and returns a decimal number equivalent to the number specified by the arguments. [Full Topic] +// Returns a rounded version of the decimal number using the specified rounding behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1578294-decimalnumberwithmantissa?language=objc -func (dc _DecimalNumberClass) DecimalNumberWithMantissaExponentIsNegative(mantissa int64, exponent int, flag bool) DecimalNumber { - rv := objc.Call[DecimalNumber](dc, objc.Sel("decimalNumberWithMantissa:exponent:isNegative:"), mantissa, exponent, flag) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1415436-decimalnumberbyroundingaccording?language=objc +func (d_ DecimalNumber) DecimalNumberByRoundingAccordingToBehaviorObject(behaviorObject objc.IObject) DecimalNumber { + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByRoundingAccordingToBehavior:"), behaviorObject) return rv } -// Creates and returns a decimal number equivalent to the number specified by the arguments. [Full Topic] +// Subtracts another given number from this one. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1578294-decimalnumberwithmantissa?language=objc -func DecimalNumber_DecimalNumberWithMantissaExponentIsNegative(mantissa int64, exponent int, flag bool) DecimalNumber { - return DecimalNumberClass.DecimalNumberWithMantissaExponentIsNegative(mantissa, exponent, flag) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1416873-decimalnumberbysubtracting?language=objc +func (d_ DecimalNumber) DecimalNumberBySubtracting(decimalNumber IDecimalNumber) DecimalNumber { + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberBySubtracting:"), decimalNumber) + return rv } // Creates and returns a decimal number equivalent to a given decimal structure. [Full Topic] @@ -213,29 +178,19 @@ func DecimalNumber_DecimalNumberWithDecimal(dcm Decimal) DecimalNumber { return DecimalNumberClass.DecimalNumberWithDecimal(dcm) } -// Returns a rounded version of the decimal number using the specified rounding behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1415436-decimalnumberbyroundingaccording?language=objc -func (d_ DecimalNumber) DecimalNumberByRoundingAccordingToBehavior(behavior PDecimalNumberBehaviors) DecimalNumber { - po0 := objc.WrapAsProtocol("NSDecimalNumberBehaviors", behavior) - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByRoundingAccordingToBehavior:"), po0) - return rv -} - -// Returns a rounded version of the decimal number using the specified rounding behavior. [Full Topic] +// Creates and returns a decimal number equivalent to the number specified by the arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1415436-decimalnumberbyroundingaccording?language=objc -func (d_ DecimalNumber) DecimalNumberByRoundingAccordingToBehaviorObject(behaviorObject objc.IObject) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByRoundingAccordingToBehavior:"), behaviorObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1578294-decimalnumberwithmantissa?language=objc +func (dc _DecimalNumberClass) DecimalNumberWithMantissaExponentIsNegative(mantissa int64, exponent int, flag bool) DecimalNumber { + rv := objc.Call[DecimalNumber](dc, objc.Sel("decimalNumberWithMantissa:exponent:isNegative:"), mantissa, exponent, flag) return rv } -// Subtracts another given number from this one. [Full Topic] +// Creates and returns a decimal number equivalent to the number specified by the arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1416873-decimalnumberbysubtracting?language=objc -func (d_ DecimalNumber) DecimalNumberBySubtracting(decimalNumber IDecimalNumber) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberBySubtracting:"), decimalNumber) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1578294-decimalnumberwithmantissa?language=objc +func DecimalNumber_DecimalNumberWithMantissaExponentIsNegative(mantissa int64, exponent int, flag bool) DecimalNumber { + return DecimalNumberClass.DecimalNumberWithMantissaExponentIsNegative(mantissa, exponent, flag) } // Creates a decimal number whose value is equivalent to that in a given numeric string. [Full Topic] @@ -253,64 +208,6 @@ func DecimalNumber_DecimalNumberWithString(numberValue string) DecimalNumber { return DecimalNumberClass.DecimalNumberWithString(numberValue) } -// Multiplies the number by 10 raised to the given power. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1408449-decimalnumberbymultiplyingbypowe?language=objc -func (d_ DecimalNumber) DecimalNumberByMultiplyingByPowerOf10(power int) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingByPowerOf10:"), power) - return rv -} - -// Raises the number to a given power using the specified behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1410484-decimalnumberbyraisingtopower?language=objc -func (d_ DecimalNumber) DecimalNumberByRaisingToPowerWithBehavior(power uint, behavior PDecimalNumberBehaviors) DecimalNumber { - po1 := objc.WrapAsProtocol("NSDecimalNumberBehaviors", behavior) - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByRaisingToPower:withBehavior:"), power, po1) - return rv -} - -// Raises the number to a given power using the specified behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1410484-decimalnumberbyraisingtopower?language=objc -func (d_ DecimalNumber) DecimalNumberByRaisingToPowerWithBehaviorObject(power uint, behaviorObject objc.IObject) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByRaisingToPower:withBehavior:"), power, behaviorObject) - return rv -} - -// Adds this number to another given number using the specified behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1407456-decimalnumberbyadding?language=objc -func (d_ DecimalNumber) DecimalNumberByAddingWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber { - po1 := objc.WrapAsProtocol("NSDecimalNumberBehaviors", behavior) - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByAdding:withBehavior:"), decimalNumber, po1) - return rv -} - -// Adds this number to another given number using the specified behavior. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1407456-decimalnumberbyadding?language=objc -func (d_ DecimalNumber) DecimalNumberByAddingWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByAdding:withBehavior:"), decimalNumber, behaviorObject) - return rv -} - -// Adds this number to another given number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413203-decimalnumberbyadding?language=objc -func (d_ DecimalNumber) DecimalNumberByAdding(decimalNumber IDecimalNumber) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByAdding:"), decimalNumber) - return rv -} - -// Multiplies the number by another given number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1414243-decimalnumberbymultiplyingby?language=objc -func (d_ DecimalNumber) DecimalNumberByMultiplyingBy(decimalNumber IDecimalNumber) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingBy:"), decimalNumber) - return rv -} - // Multiplies the number by 10 raised to the given power using the specified behavior. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1414279-decimalnumberbymultiplyingbypowe?language=objc @@ -328,20 +225,20 @@ func (d_ DecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehaviorObject( return rv } -// Multiplies this number by another given number using the specified behavior. [Full Topic] +// Adds this number to another given number using the specified behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1414874-decimalnumberbymultiplyingby?language=objc -func (d_ DecimalNumber) DecimalNumberByMultiplyingByWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber { +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1407456-decimalnumberbyadding?language=objc +func (d_ DecimalNumber) DecimalNumberByAddingWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber { po1 := objc.WrapAsProtocol("NSDecimalNumberBehaviors", behavior) - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingBy:withBehavior:"), decimalNumber, po1) + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByAdding:withBehavior:"), decimalNumber, po1) return rv } -// Multiplies this number by another given number using the specified behavior. [Full Topic] +// Adds this number to another given number using the specified behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1414874-decimalnumberbymultiplyingby?language=objc -func (d_ DecimalNumber) DecimalNumberByMultiplyingByWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingBy:withBehavior:"), decimalNumber, behaviorObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1407456-decimalnumberbyadding?language=objc +func (d_ DecimalNumber) DecimalNumberByAddingWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber { + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByAdding:withBehavior:"), decimalNumber, behaviorObject) return rv } @@ -385,19 +282,19 @@ func DecimalNumber_MaximumDecimalNumber() DecimalNumber { return DecimalNumberClass.MaximumDecimalNumber() } -// Returns the smallest possible value of a decimal number. [Full Topic] +// A decimal number equivalent to the number 0.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413371-minimumdecimalnumber?language=objc -func (dc _DecimalNumberClass) MinimumDecimalNumber() DecimalNumber { - rv := objc.Call[DecimalNumber](dc, objc.Sel("minimumDecimalNumber")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413127-zero?language=objc +func (dc _DecimalNumberClass) Zero() DecimalNumber { + rv := objc.Call[DecimalNumber](dc, objc.Sel("zero")) return rv } -// Returns the smallest possible value of a decimal number. [Full Topic] +// A decimal number equivalent to the number 0.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413371-minimumdecimalnumber?language=objc -func DecimalNumber_MinimumDecimalNumber() DecimalNumber { - return DecimalNumberClass.MinimumDecimalNumber() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413127-zero?language=objc +func DecimalNumber_Zero() DecimalNumber { + return DecimalNumberClass.Zero() } // A decimal number equivalent to the number 1.0. [Full Topic] @@ -415,6 +312,36 @@ func DecimalNumber_One() DecimalNumber { return DecimalNumberClass.One() } +// A decimal number that specifies no number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413389-notanumber?language=objc +func (dc _DecimalNumberClass) NotANumber() DecimalNumber { + rv := objc.Call[DecimalNumber](dc, objc.Sel("notANumber")) + return rv +} + +// A decimal number that specifies no number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413389-notanumber?language=objc +func DecimalNumber_NotANumber() DecimalNumber { + return DecimalNumberClass.NotANumber() +} + +// Returns the smallest possible value of a decimal number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413371-minimumdecimalnumber?language=objc +func (dc _DecimalNumberClass) MinimumDecimalNumber() DecimalNumber { + rv := objc.Call[DecimalNumber](dc, objc.Sel("minimumDecimalNumber")) + return rv +} + +// Returns the smallest possible value of a decimal number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413371-minimumdecimalnumber?language=objc +func DecimalNumber_MinimumDecimalNumber() DecimalNumber { + return DecimalNumberClass.MinimumDecimalNumber() +} + // The way arithmetic methods round off and handle error conditions. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1418084-defaultbehavior?language=objc @@ -444,33 +371,3 @@ func (dc _DecimalNumberClass) SetDefaultBehavior(value PDecimalNumberBehaviors) func DecimalNumber_SetDefaultBehavior(value PDecimalNumberBehaviors) { DecimalNumberClass.SetDefaultBehavior(value) } - -// A decimal number equivalent to the number 0.0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413127-zero?language=objc -func (dc _DecimalNumberClass) Zero() DecimalNumber { - rv := objc.Call[DecimalNumber](dc, objc.Sel("zero")) - return rv -} - -// A decimal number equivalent to the number 0.0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413127-zero?language=objc -func DecimalNumber_Zero() DecimalNumber { - return DecimalNumberClass.Zero() -} - -// A decimal number that specifies no number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413389-notanumber?language=objc -func (dc _DecimalNumberClass) NotANumber() DecimalNumber { - rv := objc.Call[DecimalNumber](dc, objc.Sel("notANumber")) - return rv -} - -// A decimal number that specifies no number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413389-notanumber?language=objc -func DecimalNumber_NotANumber() DecimalNumber { - return DecimalNumberClass.NotANumber() -} diff --git a/macos/foundation/decimal_number_behaviors_protocol.gen.go b/macos/foundation/decimal_number_behaviors_protocol.gen.go index 3dbbac91..7634489c 100644 --- a/macos/foundation/decimal_number_behaviors_protocol.gen.go +++ b/macos/foundation/decimal_number_behaviors_protocol.gen.go @@ -14,13 +14,13 @@ type PDecimalNumberBehaviors interface { Scale() int HasScale() bool - // optional - RoundingMode() RoundingMode - HasRoundingMode() bool - // optional ExceptionDuringOperationErrorLeftOperandRightOperand(operation objc.Selector, error CalculationError, leftOperand DecimalNumber, rightOperand DecimalNumber) DecimalNumber HasExceptionDuringOperationErrorLeftOperandRightOperand() bool + + // optional + RoundingMode() RoundingMode + HasRoundingMode() bool } // ensure impl type implements protocol interface @@ -43,18 +43,6 @@ func (d_ DecimalNumberBehaviorsObject) Scale() int { return rv } -func (d_ DecimalNumberBehaviorsObject) HasRoundingMode() bool { - return d_.RespondsToSelector(objc.Sel("roundingMode")) -} - -// Returns the way that NSDecimalNumber's decimalNumberBy... methods round their return values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumberbehaviors/1409414-roundingmode?language=objc -func (d_ DecimalNumberBehaviorsObject) RoundingMode() RoundingMode { - rv := objc.Call[RoundingMode](d_, objc.Sel("roundingMode")) - return rv -} - func (d_ DecimalNumberBehaviorsObject) HasExceptionDuringOperationErrorLeftOperandRightOperand() bool { return d_.RespondsToSelector(objc.Sel("exceptionDuringOperation:error:leftOperand:rightOperand:")) } @@ -66,3 +54,15 @@ func (d_ DecimalNumberBehaviorsObject) ExceptionDuringOperationErrorLeftOperandR rv := objc.Call[DecimalNumber](d_, objc.Sel("exceptionDuringOperation:error:leftOperand:rightOperand:"), operation, error, leftOperand, rightOperand) return rv } + +func (d_ DecimalNumberBehaviorsObject) HasRoundingMode() bool { + return d_.RespondsToSelector(objc.Sel("roundingMode")) +} + +// Returns the way that NSDecimalNumber's decimalNumberBy... methods round their return values. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumberbehaviors/1409414-roundingmode?language=objc +func (d_ DecimalNumberBehaviorsObject) RoundingMode() RoundingMode { + rv := objc.Call[RoundingMode](d_, objc.Sel("roundingMode")) + return rv +} diff --git a/macos/foundation/dictionary.gen.go b/macos/foundation/dictionary.gen.go index 1dddd32a..389eff86 100644 --- a/macos/foundation/dictionary.gen.go +++ b/macos/foundation/dictionary.gen.go @@ -18,48 +18,46 @@ type _DictionaryClass struct { // An interface definition for the [Dictionary] class. type IDictionary interface { objc.IObject - KeysOfEntriesWithOptionsPassingTest(opts EnumerationOptions, predicate func(key objc.Object, obj objc.Object, stop *bool) bool) Set - FileSystemNumber() int - FileHFSTypeCode() uint - DescriptionWithLocale(locale objc.IObject) string - FileExtensionHidden() bool - IsEqualToDictionary(otherDictionary Dictionary) bool - KeysSortedByValueUsingSelector(comparator objc.Selector) []objc.Object + ObjectEnumerator() Enumerator + ObjectForKey(aKey objc.IObject) objc.Object FileGroupOwnerAccountID() Number - FileModificationDate() Date FileOwnerAccountID() Number - EnumerateKeysAndObjectsUsingBlock(block func(key objc.Object, obj objc.Object, stop *bool)) - WriteToURLError(url IURL, error unsafe.Pointer) bool - DescriptionWithLocaleIndent(locale objc.IObject, level uint) string - FileIsAppendOnly() bool - InitWithContentsOfURLError(url IURL, error unsafe.Pointer) map[string]objc.Object ObjectsForKeysNotFoundMarker(keys []objc.IObject, marker objc.IObject) []objc.Object - KeysSortedByValueUsingComparator(cmptr Comparator) []objc.Object - FileCreationDate() Date - ValueForKey(key string) objc.Object + FileSystemNumber() int FileHFSCreatorCode() uint - FileOwnerAccountName() string - KeyEnumerator() Enumerator - GetObjectsAndKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, count uint) - ObjectForKeyedSubscript(key objc.IObject) objc.Object - FileType() string - FileGroupOwnerAccountName() string - ObjectEnumerator() Enumerator KeysOfEntriesPassingTest(predicate func(key objc.Object, obj objc.Object, stop *bool) bool) Set - FileSystemFileNumber() uint - EnumerateKeysAndObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(key objc.Object, obj objc.Object, stop *bool)) + KeysSortedByValueWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object + ObjectForKeyedSubscript(key objc.IObject) objc.Object + KeysSortedByValueUsingSelector(comparator objc.Selector) []objc.Object + FileHFSTypeCode() uint + GetObjectsAndKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, count uint) CountByEnumeratingWithStateObjectsCount(state *FastEnumerationState, buffer unsafe.Pointer, len uint) uint + KeysSortedByValueUsingComparator(cmptr Comparator) []objc.Object + FileCreationDate() Date FilePosixPermissions() uint + FileExtensionHidden() bool + FileType() string + FileSystemFileNumber() uint + FileIsAppendOnly() bool FileIsImmutable() bool + FileModificationDate() Date + FileOwnerAccountName() string FileSize() int64 + WriteToURLError(url IURL, error unsafe.Pointer) bool + KeyEnumerator() Enumerator + DescriptionWithLocale(locale objc.IObject) string + EnumerateKeysAndObjectsUsingBlock(block func(key objc.Object, obj objc.Object, stop *bool)) + IsEqualToDictionary(otherDictionary Dictionary) bool + KeysOfEntriesWithOptionsPassingTest(opts EnumerationOptions, predicate func(key objc.Object, obj objc.Object, stop *bool) bool) Set + FileGroupOwnerAccountName() string + ValueForKey(key string) objc.Object + EnumerateKeysAndObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(key objc.Object, obj objc.Object, stop *bool)) AllKeysForObject(anObject objc.IObject) []objc.Object - ObjectForKey(aKey objc.IObject) objc.Object - KeysSortedByValueWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object + Description() string Count() uint - DescriptionInStringsFileFormat() string AllValues() []objc.Object AllKeys() []objc.Object - Description() string + DescriptionInStringsFileFormat() string } // A static collection of objects associated with unique keys. [Full Topic] @@ -75,30 +73,16 @@ func DictionaryFrom(ptr unsafe.Pointer) Dictionary { } } -func (d_ Dictionary) InitWithDictionary(otherDictionary Dictionary) Dictionary { - rv := objc.Call[Dictionary](d_, objc.Sel("initWithDictionary:"), otherDictionary) - return rv -} - -// Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1418434-initwithdictionary?language=objc -func NewDictionaryWithDictionary(otherDictionary Dictionary) Dictionary { - instance := DictionaryClass.Alloc().InitWithDictionary(otherDictionary) - instance.Autorelease() - return instance -} - -func (dc _DictionaryClass) DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) Dictionary { - rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObjectsAndKeys:"), append([]any{firstObject}, args...)...) +func (dc _DictionaryClass) DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) Dictionary { + rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObjects:forKeys:"), objects, keys) return rv } -// Creates a dictionary containing entries constructed from the specified set of values and keys. [Full Topic] +// Creates a dictionary containing entries constructed from the contents of an array of keys and an array of values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574181-dictionarywithobjectsandkeys?language=objc -func Dictionary_DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) Dictionary { - return DictionaryClass.DictionaryWithObjectsAndKeys(firstObject, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574183-dictionarywithobjects?language=objc +func Dictionary_DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) Dictionary { + return DictionaryClass.DictionaryWithObjectsForKeys(objects, keys) } func (d_ Dictionary) InitWithObjectsAndKeys(firstObject objc.IObject, args ...any) Dictionary { @@ -115,36 +99,6 @@ func NewDictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) Dict return instance } -func (d_ Dictionary) Init() Dictionary { - rv := objc.Call[Dictionary](d_, objc.Sel("init")) - return rv -} - -func (dc _DictionaryClass) DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) Dictionary { - rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObjects:forKeys:"), objects, keys) - return rv -} - -// Creates a dictionary containing entries constructed from the contents of an array of keys and an array of values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574183-dictionarywithobjects?language=objc -func Dictionary_DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) Dictionary { - return DictionaryClass.DictionaryWithObjectsForKeys(objects, keys) -} - -func (dc _DictionaryClass) DictionaryWithObjectsForKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, cnt uint) Dictionary { - po1 := objc.WrapAsProtocol("NSCopying", keys) - rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObjects:forKeys:count:"), objects, po1, cnt) - return rv -} - -// Creates a dictionary containing a specified number of objects from a C array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574184-dictionarywithobjects?language=objc -func Dictionary_DictionaryWithObjectsForKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, cnt uint) Dictionary { - return DictionaryClass.DictionaryWithObjectsForKeysCount(objects, keys, cnt) -} - func (d_ Dictionary) InitWithObjectsForKeys(objects []objc.IObject, keys []PCopying) Dictionary { rv := objc.Call[Dictionary](d_, objc.Sel("initWithObjects:forKeys:"), objects, keys) return rv @@ -159,45 +113,41 @@ func NewDictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) Di return instance } -func (dc _DictionaryClass) Dictionary() Dictionary { - rv := objc.Call[Dictionary](dc, objc.Sel("dictionary")) +func (dc _DictionaryClass) DictionaryWithObjectForKey(object objc.IObject, key PCopying) Dictionary { + po1 := objc.WrapAsProtocol("NSCopying", key) + rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObject:forKey:"), object, po1) return rv } -// Creates an empty dictionary. [Full Topic] +// Creates a dictionary containing a given key and value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574180-dictionary?language=objc -func Dictionary_Dictionary() Dictionary { - return DictionaryClass.Dictionary() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1414965-dictionarywithobject?language=objc +func Dictionary_DictionaryWithObjectForKey(object objc.IObject, key PCopying) Dictionary { + return DictionaryClass.DictionaryWithObjectForKey(object, key) } -func (d_ Dictionary) InitWithDictionaryCopyItems(otherDictionary Dictionary, flag bool) Dictionary { - rv := objc.Call[Dictionary](d_, objc.Sel("initWithDictionary:copyItems:"), otherDictionary, flag) +func (dc _DictionaryClass) Dictionary() Dictionary { + rv := objc.Call[Dictionary](dc, objc.Sel("dictionary")) return rv } -// Initializes a newly allocated dictionary using the objects contained in another given dictionary. [Full Topic] +// Creates an empty dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1410124-initwithdictionary?language=objc -func NewDictionaryWithDictionaryCopyItems(otherDictionary Dictionary, flag bool) Dictionary { - instance := DictionaryClass.Alloc().InitWithDictionaryCopyItems(otherDictionary, flag) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574180-dictionary?language=objc +func Dictionary_Dictionary() Dictionary { + return DictionaryClass.Dictionary() } -func (d_ Dictionary) InitWithObjectsForKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, cnt uint) Dictionary { - po1 := objc.WrapAsProtocol("NSCopying", keys) - rv := objc.Call[Dictionary](d_, objc.Sel("initWithObjects:forKeys:count:"), objects, po1, cnt) +func (dc _DictionaryClass) DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) Dictionary { + rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObjectsAndKeys:"), append([]any{firstObject}, args...)...) return rv } -// Initializes a newly allocated dictionary with the specified number of key-value pairs constructed from the provided C arrays of keys and objects. [Full Topic] +// Creates a dictionary containing entries constructed from the specified set of values and keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1412631-initwithobjects?language=objc -func NewDictionaryWithObjectsForKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, cnt uint) Dictionary { - instance := DictionaryClass.Alloc().InitWithObjectsForKeysCount(objects, keys, cnt) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574181-dictionarywithobjectsandkeys?language=objc +func Dictionary_DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) Dictionary { + return DictionaryClass.DictionaryWithObjectsAndKeys(firstObject, args...) } func (dc _DictionaryClass) DictionaryWithDictionary(dict Dictionary) Dictionary { @@ -212,17 +162,23 @@ func Dictionary_DictionaryWithDictionary(dict Dictionary) Dictionary { return DictionaryClass.DictionaryWithDictionary(dict) } -func (dc _DictionaryClass) DictionaryWithObjectForKey(object objc.IObject, key PCopying) Dictionary { - po1 := objc.WrapAsProtocol("NSCopying", key) - rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObject:forKey:"), object, po1) +func (d_ Dictionary) InitWithDictionary(otherDictionary Dictionary) Dictionary { + rv := objc.Call[Dictionary](d_, objc.Sel("initWithDictionary:"), otherDictionary) return rv } -// Creates a dictionary containing a given key and value. [Full Topic] +// Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1414965-dictionarywithobject?language=objc -func Dictionary_DictionaryWithObjectForKey(object objc.IObject, key PCopying) Dictionary { - return DictionaryClass.DictionaryWithObjectForKey(object, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1418434-initwithdictionary?language=objc +func NewDictionaryWithDictionary(otherDictionary Dictionary) Dictionary { + instance := DictionaryClass.Alloc().InitWithDictionary(otherDictionary) + instance.Autorelease() + return instance +} + +func (d_ Dictionary) Init() Dictionary { + rv := objc.Call[Dictionary](d_, objc.Sel("init")) + return rv } func (dc _DictionaryClass) Alloc() Dictionary { @@ -240,145 +196,129 @@ func NewDictionary() Dictionary { return DictionaryClass.New() } -// Returns the set of keys whose corresponding value satisfies a constraint described by a block object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1416706-keysofentrieswithoptions?language=objc -func (d_ Dictionary) KeysOfEntriesWithOptionsPassingTest(opts EnumerationOptions, predicate func(key objc.Object, obj objc.Object, stop *bool) bool) Set { - rv := objc.Call[Set](d_, objc.Sel("keysOfEntriesWithOptions:passingTest:"), opts, predicate) - return rv -} - -// Returns the filesystem number. [Full Topic] +// Returns an enumerator object that lets you access each value in the dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1415329-filesystemnumber?language=objc -func (d_ Dictionary) FileSystemNumber() int { - rv := objc.Call[int](d_, objc.Sel("fileSystemNumber")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1409600-objectenumerator?language=objc +func (d_ Dictionary) ObjectEnumerator() Enumerator { + rv := objc.Call[Enumerator](d_, objc.Sel("objectEnumerator")) return rv } -// Creates a dictionary using the keys and values found in a resource specified by a given URL. [Full Topic] +// Creates a shared key set object for the specified keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2879163-dictionarywithcontentsofurl?language=objc -func (dc _DictionaryClass) DictionaryWithContentsOfURLError(url IURL, error unsafe.Pointer) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](dc, objc.Sel("dictionaryWithContentsOfURL:error:"), url, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408190-sharedkeysetforkeys?language=objc +func (dc _DictionaryClass) SharedKeySetForKeys(keys []PCopying) objc.Object { + rv := objc.Call[objc.Object](dc, objc.Sel("sharedKeySetForKeys:"), keys) return rv } -// Creates a dictionary using the keys and values found in a resource specified by a given URL. [Full Topic] +// Creates a shared key set object for the specified keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2879163-dictionarywithcontentsofurl?language=objc -func Dictionary_DictionaryWithContentsOfURLError(url IURL, error unsafe.Pointer) map[string]objc.Object { - return DictionaryClass.DictionaryWithContentsOfURLError(url, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408190-sharedkeysetforkeys?language=objc +func Dictionary_SharedKeySetForKeys(keys []PCopying) objc.Object { + return DictionaryClass.SharedKeySetForKeys(keys) } -// Returns file’s HFS type code. [Full Topic] +// Returns the value associated with a given key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1417215-filehfstypecode?language=objc -func (d_ Dictionary) FileHFSTypeCode() uint { - rv := objc.Call[uint](d_, objc.Sel("fileHFSTypeCode")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1414347-objectforkey?language=objc +func (d_ Dictionary) ObjectForKey(aKey objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("objectForKey:"), aKey) return rv } -// Returns a string object that represents the contents of the dictionary, formatted as a property list. [Full Topic] +// Returns file’s group owner account ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1417665-descriptionwithlocale?language=objc -func (d_ Dictionary) DescriptionWithLocale(locale objc.IObject) string { - rv := objc.Call[string](d_, objc.Sel("descriptionWithLocale:"), locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1413626-filegroupowneraccountid?language=objc +func (d_ Dictionary) FileGroupOwnerAccountID() Number { + rv := objc.Call[Number](d_, objc.Sel("fileGroupOwnerAccountID")) return rv } -// Returns a Boolean value indicating whether the file hides its extension. [Full Topic] +// Returns the file’s owner account ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1413177-fileextensionhidden?language=objc -func (d_ Dictionary) FileExtensionHidden() bool { - rv := objc.Call[bool](d_, objc.Sel("fileExtensionHidden")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1412281-fileowneraccountid?language=objc +func (d_ Dictionary) FileOwnerAccountID() Number { + rv := objc.Call[Number](d_, objc.Sel("fileOwnerAccountID")) return rv } -// Returns a Boolean value that indicates whether the contents of the receiving dictionary are equal to the contents of another given dictionary. [Full Topic] +// Returns as a static array the set of objects from the dictionary that corresponds to the specified keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1415445-isequaltodictionary?language=objc -func (d_ Dictionary) IsEqualToDictionary(otherDictionary Dictionary) bool { - rv := objc.Call[bool](d_, objc.Sel("isEqualToDictionary:"), otherDictionary) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408769-objectsforkeys?language=objc +func (d_ Dictionary) ObjectsForKeysNotFoundMarker(keys []objc.IObject, marker objc.IObject) []objc.Object { + rv := objc.Call[[]objc.Object](d_, objc.Sel("objectsForKeys:notFoundMarker:"), keys, marker) return rv } -// Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values. [Full Topic] +// Returns the filesystem number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1412484-keyssortedbyvalueusingselector?language=objc -func (d_ Dictionary) KeysSortedByValueUsingSelector(comparator objc.Selector) []objc.Object { - rv := objc.Call[[]objc.Object](d_, objc.Sel("keysSortedByValueUsingSelector:"), comparator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1415329-filesystemnumber?language=objc +func (d_ Dictionary) FileSystemNumber() int { + rv := objc.Call[int](d_, objc.Sel("fileSystemNumber")) return rv } -// Returns file’s group owner account ID. [Full Topic] +// Returns the file’s HFS creator code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1413626-filegroupowneraccountid?language=objc -func (d_ Dictionary) FileGroupOwnerAccountID() Number { - rv := objc.Call[Number](d_, objc.Sel("fileGroupOwnerAccountID")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1415065-filehfscreatorcode?language=objc +func (d_ Dictionary) FileHFSCreatorCode() uint { + rv := objc.Call[uint](d_, objc.Sel("fileHFSCreatorCode")) return rv } -// Returns file’s modification date. [Full Topic] +// Returns the set of keys whose corresponding value satisfies a constraint described by a block object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408811-filemodificationdate?language=objc -func (d_ Dictionary) FileModificationDate() Date { - rv := objc.Call[Date](d_, objc.Sel("fileModificationDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1407186-keysofentriespassingtest?language=objc +func (d_ Dictionary) KeysOfEntriesPassingTest(predicate func(key objc.Object, obj objc.Object, stop *bool) bool) Set { + rv := objc.Call[Set](d_, objc.Sel("keysOfEntriesPassingTest:"), predicate) return rv } -// Returns the file’s owner account ID. [Full Topic] +// Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block and a specified set of options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1412281-fileowneraccountid?language=objc -func (d_ Dictionary) FileOwnerAccountID() Number { - rv := objc.Call[Number](d_, objc.Sel("fileOwnerAccountID")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1415717-keyssortedbyvaluewithoptions?language=objc +func (d_ Dictionary) KeysSortedByValueWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object { + rv := objc.Call[[]objc.Object](d_, objc.Sel("keysSortedByValueWithOptions:usingComparator:"), opts, cmptr) return rv } -// Applies a given block object to the entries of the dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1414570-enumeratekeysandobjectsusingbloc?language=objc -func (d_ Dictionary) EnumerateKeysAndObjectsUsingBlock(block func(key objc.Object, obj objc.Object, stop *bool)) { - objc.Call[objc.Void](d_, objc.Sel("enumerateKeysAndObjectsUsingBlock:"), block) -} - -// Writes a property list representation of the contents of the dictionary to a given URL. [Full Topic] +// Returns the value associated with a given key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2879139-writetourl?language=objc -func (d_ Dictionary) WriteToURLError(url IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToURL:error:"), url, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1415430-objectforkeyedsubscript?language=objc +func (d_ Dictionary) ObjectForKeyedSubscript(key objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("objectForKeyedSubscript:"), key) return rv } -// Returns a string object that represents the contents of the dictionary, formatted as a property list. [Full Topic] +// Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1412690-descriptionwithlocale?language=objc -func (d_ Dictionary) DescriptionWithLocaleIndent(locale objc.IObject, level uint) string { - rv := objc.Call[string](d_, objc.Sel("descriptionWithLocale:indent:"), locale, level) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1412484-keyssortedbyvalueusingselector?language=objc +func (d_ Dictionary) KeysSortedByValueUsingSelector(comparator objc.Selector) []objc.Object { + rv := objc.Call[[]objc.Object](d_, objc.Sel("keysSortedByValueUsingSelector:"), comparator) return rv } -// Returns a Boolean value indicating whether the file is append only. [Full Topic] +// Returns file’s HFS type code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1416083-fileisappendonly?language=objc -func (d_ Dictionary) FileIsAppendOnly() bool { - rv := objc.Call[bool](d_, objc.Sel("fileIsAppendOnly")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1417215-filehfstypecode?language=objc +func (d_ Dictionary) FileHFSTypeCode() uint { + rv := objc.Call[uint](d_, objc.Sel("fileHFSTypeCode")) return rv } -// Initializes a newly allocated dictionary using the keys and values found at a given URL. [Full Topic] +// Returns by reference C arrays of the keys and values in the dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2879140-initwithcontentsofurl?language=objc -func (d_ Dictionary) InitWithContentsOfURLError(url IURL, error unsafe.Pointer) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](d_, objc.Sel("initWithContentsOfURL:error:"), url, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1409973-getobjects?language=objc +func (d_ Dictionary) GetObjectsAndKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, count uint) { + objc.Call[objc.Void](d_, objc.Sel("getObjects:andKeys:count:"), objects, keys, count) } -// Returns as a static array the set of objects from the dictionary that corresponds to the specified keys. [Full Topic] +// Returns by reference a C array of objects over which the sender should iterate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408769-objectsforkeys?language=objc -func (d_ Dictionary) ObjectsForKeysNotFoundMarker(keys []objc.IObject, marker objc.IObject) []objc.Object { - rv := objc.Call[[]objc.Object](d_, objc.Sel("objectsForKeys:notFoundMarker:"), keys, marker) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2865769-countbyenumeratingwithstate?language=objc +func (d_ Dictionary) CountByEnumeratingWithStateObjectsCount(state *FastEnumerationState, buffer unsafe.Pointer, len uint) uint { + rv := objc.Call[uint](d_, objc.Sel("countByEnumeratingWithState:objects:count:"), state, buffer, len) return rv } @@ -390,153 +330,154 @@ func (d_ Dictionary) KeysSortedByValueUsingComparator(cmptr Comparator) []objc.O return rv } -// Creates a shared key set object for the specified keys. [Full Topic] +// Returns the file’s creation date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408190-sharedkeysetforkeys?language=objc -func (dc _DictionaryClass) SharedKeySetForKeys(keys []PCopying) objc.Object { - rv := objc.Call[objc.Object](dc, objc.Sel("sharedKeySetForKeys:"), keys) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1417071-filecreationdate?language=objc +func (d_ Dictionary) FileCreationDate() Date { + rv := objc.Call[Date](d_, objc.Sel("fileCreationDate")) return rv } -// Creates a shared key set object for the specified keys. [Full Topic] +// Returns the file’s POSIX permissions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408190-sharedkeysetforkeys?language=objc -func Dictionary_SharedKeySetForKeys(keys []PCopying) objc.Object { - return DictionaryClass.SharedKeySetForKeys(keys) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1409446-fileposixpermissions?language=objc +func (d_ Dictionary) FilePosixPermissions() uint { + rv := objc.Call[uint](d_, objc.Sel("filePosixPermissions")) + return rv } -// Returns the file’s creation date. [Full Topic] +// Returns a Boolean value indicating whether the file hides its extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1417071-filecreationdate?language=objc -func (d_ Dictionary) FileCreationDate() Date { - rv := objc.Call[Date](d_, objc.Sel("fileCreationDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1413177-fileextensionhidden?language=objc +func (d_ Dictionary) FileExtensionHidden() bool { + rv := objc.Call[bool](d_, objc.Sel("fileExtensionHidden")) return rv } -// Returns the value associated with a given key. [Full Topic] +// Returns the file type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1410210-valueforkey?language=objc -func (d_ Dictionary) ValueForKey(key string) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("valueForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1416809-filetype?language=objc +func (d_ Dictionary) FileType() string { + rv := objc.Call[string](d_, objc.Sel("fileType")) return rv } -// Returns the file’s HFS creator code. [Full Topic] +// Returns the filesystem file number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1415065-filehfscreatorcode?language=objc -func (d_ Dictionary) FileHFSCreatorCode() uint { - rv := objc.Call[uint](d_, objc.Sel("fileHFSCreatorCode")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408396-filesystemfilenumber?language=objc +func (d_ Dictionary) FileSystemFileNumber() uint { + rv := objc.Call[uint](d_, objc.Sel("fileSystemFileNumber")) return rv } -// Returns the file’s owner account name. [Full Topic] +// Returns a Boolean value indicating whether the file is append only. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1417533-fileowneraccountname?language=objc -func (d_ Dictionary) FileOwnerAccountName() string { - rv := objc.Call[string](d_, objc.Sel("fileOwnerAccountName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1416083-fileisappendonly?language=objc +func (d_ Dictionary) FileIsAppendOnly() bool { + rv := objc.Call[bool](d_, objc.Sel("fileIsAppendOnly")) return rv } -// Provides an enumerator to access the keys in the dictionary. [Full Topic] +// Returns a Boolean value indicating whether the file is immutable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1411011-keyenumerator?language=objc -func (d_ Dictionary) KeyEnumerator() Enumerator { - rv := objc.Call[Enumerator](d_, objc.Sel("keyEnumerator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1416500-fileisimmutable?language=objc +func (d_ Dictionary) FileIsImmutable() bool { + rv := objc.Call[bool](d_, objc.Sel("fileIsImmutable")) return rv } -// Returns by reference C arrays of the keys and values in the dictionary. [Full Topic] +// Returns file’s modification date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1409973-getobjects?language=objc -func (d_ Dictionary) GetObjectsAndKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, count uint) { - objc.Call[objc.Void](d_, objc.Sel("getObjects:andKeys:count:"), objects, keys, count) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408811-filemodificationdate?language=objc +func (d_ Dictionary) FileModificationDate() Date { + rv := objc.Call[Date](d_, objc.Sel("fileModificationDate")) + return rv } -// Returns the value associated with a given key. [Full Topic] +// Returns the file’s owner account name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1415430-objectforkeyedsubscript?language=objc -func (d_ Dictionary) ObjectForKeyedSubscript(key objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("objectForKeyedSubscript:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1417533-fileowneraccountname?language=objc +func (d_ Dictionary) FileOwnerAccountName() string { + rv := objc.Call[string](d_, objc.Sel("fileOwnerAccountName")) return rv } -// Returns the file type. [Full Topic] +// Returns the file’s size, in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1416809-filetype?language=objc -func (d_ Dictionary) FileType() string { - rv := objc.Call[string](d_, objc.Sel("fileType")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1413465-filesize?language=objc +func (d_ Dictionary) FileSize() int64 { + rv := objc.Call[int64](d_, objc.Sel("fileSize")) return rv } -// Returns the file’s group owner account name. [Full Topic] +// Writes a property list representation of the contents of the dictionary to a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1416788-filegroupowneraccountname?language=objc -func (d_ Dictionary) FileGroupOwnerAccountName() string { - rv := objc.Call[string](d_, objc.Sel("fileGroupOwnerAccountName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2879139-writetourl?language=objc +func (d_ Dictionary) WriteToURLError(url IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](d_, objc.Sel("writeToURL:error:"), url, error) return rv } -// Returns an enumerator object that lets you access each value in the dictionary. [Full Topic] +// Provides an enumerator to access the keys in the dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1409600-objectenumerator?language=objc -func (d_ Dictionary) ObjectEnumerator() Enumerator { - rv := objc.Call[Enumerator](d_, objc.Sel("objectEnumerator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1411011-keyenumerator?language=objc +func (d_ Dictionary) KeyEnumerator() Enumerator { + rv := objc.Call[Enumerator](d_, objc.Sel("keyEnumerator")) return rv } -// Returns the set of keys whose corresponding value satisfies a constraint described by a block object. [Full Topic] +// Returns a string object that represents the contents of the dictionary, formatted as a property list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1407186-keysofentriespassingtest?language=objc -func (d_ Dictionary) KeysOfEntriesPassingTest(predicate func(key objc.Object, obj objc.Object, stop *bool) bool) Set { - rv := objc.Call[Set](d_, objc.Sel("keysOfEntriesPassingTest:"), predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1417665-descriptionwithlocale?language=objc +func (d_ Dictionary) DescriptionWithLocale(locale objc.IObject) string { + rv := objc.Call[string](d_, objc.Sel("descriptionWithLocale:"), locale) return rv } -// Returns the filesystem file number. [Full Topic] +// Applies a given block object to the entries of the dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408396-filesystemfilenumber?language=objc -func (d_ Dictionary) FileSystemFileNumber() uint { - rv := objc.Call[uint](d_, objc.Sel("fileSystemFileNumber")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1414570-enumeratekeysandobjectsusingbloc?language=objc +func (d_ Dictionary) EnumerateKeysAndObjectsUsingBlock(block func(key objc.Object, obj objc.Object, stop *bool)) { + objc.Call[objc.Void](d_, objc.Sel("enumerateKeysAndObjectsUsingBlock:"), block) } -// Applies a given block object to the entries of the dictionary, with options specifying how the enumeration is performed. [Full Topic] +// Returns a Boolean value that indicates whether the contents of the receiving dictionary are equal to the contents of another given dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1409739-enumeratekeysandobjectswithoptio?language=objc -func (d_ Dictionary) EnumerateKeysAndObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(key objc.Object, obj objc.Object, stop *bool)) { - objc.Call[objc.Void](d_, objc.Sel("enumerateKeysAndObjectsWithOptions:usingBlock:"), opts, block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1415445-isequaltodictionary?language=objc +func (d_ Dictionary) IsEqualToDictionary(otherDictionary Dictionary) bool { + rv := objc.Call[bool](d_, objc.Sel("isEqualToDictionary:"), otherDictionary) + return rv } -// Returns by reference a C array of objects over which the sender should iterate. [Full Topic] +// Returns the set of keys whose corresponding value satisfies a constraint described by a block object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2865769-countbyenumeratingwithstate?language=objc -func (d_ Dictionary) CountByEnumeratingWithStateObjectsCount(state *FastEnumerationState, buffer unsafe.Pointer, len uint) uint { - rv := objc.Call[uint](d_, objc.Sel("countByEnumeratingWithState:objects:count:"), state, buffer, len) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1416706-keysofentrieswithoptions?language=objc +func (d_ Dictionary) KeysOfEntriesWithOptionsPassingTest(opts EnumerationOptions, predicate func(key objc.Object, obj objc.Object, stop *bool) bool) Set { + rv := objc.Call[Set](d_, objc.Sel("keysOfEntriesWithOptions:passingTest:"), opts, predicate) return rv } -// Returns the file’s POSIX permissions. [Full Topic] +// Returns the file’s group owner account name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1409446-fileposixpermissions?language=objc -func (d_ Dictionary) FilePosixPermissions() uint { - rv := objc.Call[uint](d_, objc.Sel("filePosixPermissions")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1416788-filegroupowneraccountname?language=objc +func (d_ Dictionary) FileGroupOwnerAccountName() string { + rv := objc.Call[string](d_, objc.Sel("fileGroupOwnerAccountName")) return rv } -// Returns a Boolean value indicating whether the file is immutable. [Full Topic] +// Returns the value associated with a given key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1416500-fileisimmutable?language=objc -func (d_ Dictionary) FileIsImmutable() bool { - rv := objc.Call[bool](d_, objc.Sel("fileIsImmutable")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1410210-valueforkey?language=objc +func (d_ Dictionary) ValueForKey(key string) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("valueForKey:"), key) return rv } -// Returns the file’s size, in bytes. [Full Topic] +// Applies a given block object to the entries of the dictionary, with options specifying how the enumeration is performed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1413465-filesize?language=objc -func (d_ Dictionary) FileSize() int64 { - rv := objc.Call[int64](d_, objc.Sel("fileSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1409739-enumeratekeysandobjectswithoptio?language=objc +func (d_ Dictionary) EnumerateKeysAndObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(key objc.Object, obj objc.Object, stop *bool)) { + objc.Call[objc.Void](d_, objc.Sel("enumerateKeysAndObjectsWithOptions:usingBlock:"), opts, block) } // Returns a new array containing the keys corresponding to all occurrences of a given object in the dictionary. [Full Topic] @@ -547,19 +488,11 @@ func (d_ Dictionary) AllKeysForObject(anObject objc.IObject) []objc.Object { return rv } -// Returns the value associated with a given key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1414347-objectforkey?language=objc -func (d_ Dictionary) ObjectForKey(aKey objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("objectForKey:"), aKey) - return rv -} - -// Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block and a specified set of options. [Full Topic] +// A string that represents the contents of the dictionary, formatted as a property list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1415717-keyssortedbyvaluewithoptions?language=objc -func (d_ Dictionary) KeysSortedByValueWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object { - rv := objc.Call[[]objc.Object](d_, objc.Sel("keysSortedByValueWithOptions:usingComparator:"), opts, cmptr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1410799-description?language=objc +func (d_ Dictionary) Description() string { + rv := objc.Call[string](d_, objc.Sel("description")) return rv } @@ -571,14 +504,6 @@ func (d_ Dictionary) Count() uint { return rv } -// A string that represents the contents of the dictionary, formatted in .strings file format. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1413282-descriptioninstringsfileformat?language=objc -func (d_ Dictionary) DescriptionInStringsFileFormat() string { - rv := objc.Call[string](d_, objc.Sel("descriptionInStringsFileFormat")) - return rv -} - // A new array containing the dictionary’s values, or an empty array if the dictionary has no entries. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1408915-allvalues?language=objc @@ -595,10 +520,10 @@ func (d_ Dictionary) AllKeys() []objc.Object { return rv } -// A string that represents the contents of the dictionary, formatted as a property list. [Full Topic] +// A string that represents the contents of the dictionary, formatted in .strings file format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1410799-description?language=objc -func (d_ Dictionary) Description() string { - rv := objc.Call[string](d_, objc.Sel("description")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1413282-descriptioninstringsfileformat?language=objc +func (d_ Dictionary) DescriptionInStringsFileFormat() string { + rv := objc.Call[string](d_, objc.Sel("descriptionInStringsFileFormat")) return rv } diff --git a/macos/foundation/dimension.gen.go b/macos/foundation/dimension.gen.go index 27a37194..42c9bf20 100644 --- a/macos/foundation/dimension.gen.go +++ b/macos/foundation/dimension.gen.go @@ -34,6 +34,18 @@ func DimensionFrom(ptr unsafe.Pointer) Dimension { } } +func (dc _DimensionClass) BaseUnit() Dimension { + rv := objc.Call[Dimension](dc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func Dimension_BaseUnit() Dimension { + return DimensionClass.BaseUnit() +} + func (d_ Dimension) InitWithSymbolConverter(symbol string, converter IUnitConverter) Dimension { rv := objc.Call[Dimension](d_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -48,18 +60,6 @@ func NewDimensionWithSymbolConverter(symbol string, converter IUnitConverter) Di return instance } -func (dc _DimensionClass) BaseUnit() Dimension { - rv := objc.Call[Dimension](dc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func Dimension_BaseUnit() Dimension { - return DimensionClass.BaseUnit() -} - func (dc _DimensionClass) Alloc() Dimension { rv := objc.Call[Dimension](dc, objc.Sel("alloc")) return rv diff --git a/macos/foundation/directory_enumerator.gen.go b/macos/foundation/directory_enumerator.gen.go index 90195bf2..fa092b45 100644 --- a/macos/foundation/directory_enumerator.gen.go +++ b/macos/foundation/directory_enumerator.gen.go @@ -18,12 +18,12 @@ type _DirectoryEnumeratorClass struct { // An interface definition for the [DirectoryEnumerator] class. type IDirectoryEnumerator interface { IEnumerator - SkipDescendants() SkipDescendents() + SkipDescendants() Level() uint IsEnumeratingDirectoryPostOrder() bool - FileAttributes() map[FileAttributeKey]objc.Object DirectoryAttributes() map[FileAttributeKey]objc.Object + FileAttributes() map[FileAttributeKey]objc.Object } // An object that enumerates the contents of a directory. [Full Topic] @@ -61,16 +61,16 @@ func (d_ DirectoryEnumerator) Init() DirectoryEnumerator { // Causes the receiver to skip recursion into the most recently obtained subdirectory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdirectoryenumerator/1409644-skipdescendants?language=objc -func (d_ DirectoryEnumerator) SkipDescendants() { - objc.Call[objc.Void](d_, objc.Sel("skipDescendants")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdirectoryenumerator/1412990-skipdescendents?language=objc +func (d_ DirectoryEnumerator) SkipDescendents() { + objc.Call[objc.Void](d_, objc.Sel("skipDescendents")) } // Causes the receiver to skip recursion into the most recently obtained subdirectory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdirectoryenumerator/1412990-skipdescendents?language=objc -func (d_ DirectoryEnumerator) SkipDescendents() { - objc.Call[objc.Void](d_, objc.Sel("skipDescendents")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdirectoryenumerator/1409644-skipdescendants?language=objc +func (d_ DirectoryEnumerator) SkipDescendants() { + objc.Call[objc.Void](d_, objc.Sel("skipDescendants")) } // The number of levels deep the current object is in the directory hierarchy being enumerated. [Full Topic] @@ -89,14 +89,6 @@ func (d_ DirectoryEnumerator) IsEnumeratingDirectoryPostOrder() bool { return rv } -// A dictionary with the attributes of the most recently returned file or subdirectory (as referenced by the pathname). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdirectoryenumerator/1413284-fileattributes?language=objc -func (d_ DirectoryEnumerator) FileAttributes() map[FileAttributeKey]objc.Object { - rv := objc.Call[map[FileAttributeKey]objc.Object](d_, objc.Sel("fileAttributes")) - return rv -} - // A dictionary with the attributes of the directory at which enumeration started. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdirectoryenumerator/1411357-directoryattributes?language=objc @@ -104,3 +96,11 @@ func (d_ DirectoryEnumerator) DirectoryAttributes() map[FileAttributeKey]objc.Ob rv := objc.Call[map[FileAttributeKey]objc.Object](d_, objc.Sel("directoryAttributes")) return rv } + +// A dictionary with the attributes of the most recently returned file or subdirectory (as referenced by the pathname). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdirectoryenumerator/1413284-fileattributes?language=objc +func (d_ DirectoryEnumerator) FileAttributes() map[FileAttributeKey]objc.Object { + rv := objc.Call[map[FileAttributeKey]objc.Object](d_, objc.Sel("fileAttributes")) + return rv +} diff --git a/macos/foundation/discardable_content_protocol.gen.go b/macos/foundation/discardable_content_protocol.gen.go index af1a6948..08e2146e 100644 --- a/macos/foundation/discardable_content_protocol.gen.go +++ b/macos/foundation/discardable_content_protocol.gen.go @@ -10,10 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdiscardablecontent?language=objc type PDiscardableContent interface { - // optional - EndContentAccess() - HasEndContentAccess() bool - // optional IsContentDiscarded() bool HasIsContentDiscarded() bool @@ -22,6 +18,10 @@ type PDiscardableContent interface { DiscardContentIfPossible() HasDiscardContentIfPossible() bool + // optional + EndContentAccess() + HasEndContentAccess() bool + // optional BeginContentAccess() bool HasBeginContentAccess() bool @@ -35,17 +35,6 @@ type DiscardableContentObject struct { objc.Object } -func (d_ DiscardableContentObject) HasEndContentAccess() bool { - return d_.RespondsToSelector(objc.Sel("endContentAccess")) -} - -// Called if the discardable contents are no longer being accessed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdiscardablecontent/1407535-endcontentaccess?language=objc -func (d_ DiscardableContentObject) EndContentAccess() { - objc.Call[objc.Void](d_, objc.Sel("endContentAccess")) -} - func (d_ DiscardableContentObject) HasIsContentDiscarded() bool { return d_.RespondsToSelector(objc.Sel("isContentDiscarded")) } @@ -69,6 +58,17 @@ func (d_ DiscardableContentObject) DiscardContentIfPossible() { objc.Call[objc.Void](d_, objc.Sel("discardContentIfPossible")) } +func (d_ DiscardableContentObject) HasEndContentAccess() bool { + return d_.RespondsToSelector(objc.Sel("endContentAccess")) +} + +// Called if the discardable contents are no longer being accessed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdiscardablecontent/1407535-endcontentaccess?language=objc +func (d_ DiscardableContentObject) EndContentAccess() { + objc.Call[objc.Void](d_, objc.Sel("endContentAccess")) +} + func (d_ DiscardableContentObject) HasBeginContentAccess() bool { return d_.RespondsToSelector(objc.Sel("beginContentAccess")) } diff --git a/macos/foundation/distributed_lock.gen.go b/macos/foundation/distributed_lock.gen.go index de9f976d..8683a5a7 100644 --- a/macos/foundation/distributed_lock.gen.go +++ b/macos/foundation/distributed_lock.gen.go @@ -18,8 +18,8 @@ type _DistributedLockClass struct { // An interface definition for the [DistributedLock] class. type IDistributedLock interface { objc.IObject - Unlock() TryLock() bool + Unlock() BreakLock() LockDate() Date } @@ -71,11 +71,19 @@ func (d_ DistributedLock) Init() DistributedLock { return rv } -// Relinquishes the receiver. [Full Topic] +// Returns an NSDistributedLock object initialized to use as the locking object the file-system entry specified by a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributedlock/1417238-unlock?language=objc -func (d_ DistributedLock) Unlock() { - objc.Call[objc.Void](d_, objc.Sel("unlock")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributedlock/1552203-lockwithpath?language=objc +func (dc _DistributedLockClass) LockWithPath(path string) DistributedLock { + rv := objc.Call[DistributedLock](dc, objc.Sel("lockWithPath:"), path) + return rv +} + +// Returns an NSDistributedLock object initialized to use as the locking object the file-system entry specified by a given path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributedlock/1552203-lockwithpath?language=objc +func DistributedLock_LockWithPath(path string) DistributedLock { + return DistributedLockClass.LockWithPath(path) } // Attempts to acquire the receiver and immediately returns a Boolean value that indicates whether the attempt was successful. [Full Topic] @@ -86,6 +94,13 @@ func (d_ DistributedLock) TryLock() bool { return rv } +// Relinquishes the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributedlock/1417238-unlock?language=objc +func (d_ DistributedLock) Unlock() { + objc.Call[objc.Void](d_, objc.Sel("unlock")) +} + // Forces the lock to be relinquished. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributedlock/1413425-breaklock?language=objc @@ -93,21 +108,6 @@ func (d_ DistributedLock) BreakLock() { objc.Call[objc.Void](d_, objc.Sel("breakLock")) } -// Returns an NSDistributedLock object initialized to use as the locking object the file-system entry specified by a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributedlock/1552203-lockwithpath?language=objc -func (dc _DistributedLockClass) LockWithPath(path string) DistributedLock { - rv := objc.Call[DistributedLock](dc, objc.Sel("lockWithPath:"), path) - return rv -} - -// Returns an NSDistributedLock object initialized to use as the locking object the file-system entry specified by a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributedlock/1552203-lockwithpath?language=objc -func DistributedLock_LockWithPath(path string) DistributedLock { - return DistributedLockClass.LockWithPath(path) -} - // Returns the time the receiver was acquired by any of the NSDistributedLock objects using the same path. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributedlock/1413773-lockdate?language=objc diff --git a/macos/foundation/distributed_notification_center.gen.go b/macos/foundation/distributed_notification_center.gen.go index f4d78f5c..715e6e4c 100644 --- a/macos/foundation/distributed_notification_center.gen.go +++ b/macos/foundation/distributed_notification_center.gen.go @@ -18,9 +18,7 @@ type _DistributedNotificationCenterClass struct { // An interface definition for the [DistributedNotificationCenter] class. type IDistributedNotificationCenter interface { INotificationCenter - PostNotificationNameObjectUserInfoDeliverImmediately(name NotificationName, object string, userInfo Dictionary, deliverImmediately bool) - PostNotificationNameObjectUserInfoOptions(name NotificationName, object string, userInfo Dictionary, options DistributedNotificationOptions) - AddObserverSelectorNameObjectSuspensionBehavior(observer objc.IObject, selector objc.Selector, name NotificationName, object string, suspensionBehavior NotificationSuspensionBehavior) + PostNotificationNameObject(aName NotificationName, anObject string) Suspended() bool SetSuspended(value bool) } @@ -58,25 +56,11 @@ func (d_ DistributedNotificationCenter) Init() DistributedNotificationCenter { return rv } -// Creates a notification with information and an immediate-delivery specifier, and posts it to the receiver. [Full Topic] +// Creates a notification, and posts it to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributednotificationcenter/1418360-postnotificationname?language=objc -func (d_ DistributedNotificationCenter) PostNotificationNameObjectUserInfoDeliverImmediately(name NotificationName, object string, userInfo Dictionary, deliverImmediately bool) { - objc.Call[objc.Void](d_, objc.Sel("postNotificationName:object:userInfo:deliverImmediately:"), name, object, userInfo, deliverImmediately) -} - -// Creates a notification with information, and posts it to the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributednotificationcenter/1417581-postnotificationname?language=objc -func (d_ DistributedNotificationCenter) PostNotificationNameObjectUserInfoOptions(name NotificationName, object string, userInfo Dictionary, options DistributedNotificationOptions) { - objc.Call[objc.Void](d_, objc.Sel("postNotificationName:object:userInfo:options:"), name, object, userInfo, options) -} - -// Adds an entry to the receiver’s dispatch table with a specific observer and suspended-notifications behavior, and optional notification name and sender. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributednotificationcenter/1414136-addobserver?language=objc -func (d_ DistributedNotificationCenter) AddObserverSelectorNameObjectSuspensionBehavior(observer objc.IObject, selector objc.Selector, name NotificationName, object string, suspensionBehavior NotificationSuspensionBehavior) { - objc.Call[objc.Void](d_, objc.Sel("addObserver:selector:name:object:suspensionBehavior:"), observer, selector, name, object, suspensionBehavior) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributednotificationcenter/1410991-postnotificationname?language=objc +func (d_ DistributedNotificationCenter) PostNotificationNameObject(aName NotificationName, anObject string) { + objc.Call[objc.Void](d_, objc.Sel("postNotificationName:object:"), aName, anObject) } // Returns the distributed notification center for a particular notification center type. [Full Topic] diff --git a/macos/foundation/energy_formatter.gen.go b/macos/foundation/energy_formatter.gen.go index 63a3f543..67c1f3b5 100644 --- a/macos/foundation/energy_formatter.gen.go +++ b/macos/foundation/energy_formatter.gen.go @@ -18,10 +18,10 @@ type _EnergyFormatterClass struct { // An interface definition for the [EnergyFormatter] class. type IEnergyFormatter interface { IFormatter - UnitStringFromJoulesUsedUnit(numberInJoules float64, unitp *EnergyFormatterUnit) string StringFromJoules(numberInJoules float64) string StringFromValueUnit(value float64, unit EnergyFormatterUnit) string UnitStringFromValueUnit(value float64, unit EnergyFormatterUnit) string + UnitStringFromJoulesUsedUnit(numberInJoules float64, unitp *EnergyFormatterUnit) string UnitStyle() FormattingUnitStyle SetUnitStyle(value FormattingUnitStyle) NumberFormatter() NumberFormatter @@ -63,14 +63,6 @@ func (e_ EnergyFormatter) Init() EnergyFormatter { return rv } -// Returns the unit string for the provided value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsenergyformatter/1408656-unitstringfromjoules?language=objc -func (e_ EnergyFormatter) UnitStringFromJoulesUsedUnit(numberInJoules float64, unitp *EnergyFormatterUnit) string { - rv := objc.Call[string](e_, objc.Sel("unitStringFromJoules:usedUnit:"), numberInJoules, unitp) - return rv -} - // Returns an energy string for the provided value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsenergyformatter/1409502-stringfromjoules?language=objc @@ -95,6 +87,14 @@ func (e_ EnergyFormatter) UnitStringFromValueUnit(value float64, unit EnergyForm return rv } +// Returns the unit string for the provided value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsenergyformatter/1408656-unitstringfromjoules?language=objc +func (e_ EnergyFormatter) UnitStringFromJoulesUsedUnit(numberInJoules float64, unitp *EnergyFormatterUnit) string { + rv := objc.Call[string](e_, objc.Sel("unitStringFromJoules:usedUnit:"), numberInJoules, unitp) + return rv +} + // The unit style used by this formatter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsenergyformatter/1414075-unitstyle?language=objc diff --git a/macos/foundation/enumtypes.gen.go b/macos/foundation/enumtypes.gen.go index c87a4ee7..597ff3cb 100644 --- a/macos/foundation/enumtypes.gen.go +++ b/macos/foundation/enumtypes.gen.go @@ -2,7 +2,7 @@ package foundation -// Option flags used with [foundation/nsprocessinfo/beginactivitywithoptions] and [foundation/nsprocessinfo/performactivitywithoptions]. [Full Topic] +// Option flags used with beginActivityWithOptions:reason: and performActivityWithOptions:reason:usingBlock:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsactivityoptions?language=objc type ActivityOptions uint64 @@ -135,7 +135,7 @@ const ( BackgroundActivityResultFinished BackgroundActivityResult = 1 ) -// Options for searches and insertions using [foundation/nsarray/indexofobject]. [Full Topic] +// Options for searches and insertions using indexOfObject:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsbinarysearchingoptions?language=objc type BinarySearchingOptions uint @@ -177,7 +177,7 @@ const ( ByteCountFormatterUseZB ByteCountFormatterUnits = 128 ) -// Calculation error constants used to describe an error in [foundation/nsdecimalnumberbehaviors/exceptionduringoperation]. [Full Topic] +// Calculation error constants used to describe an error in exceptionDuringOperation:error:leftOperand:rightOperand:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscalculationerror?language=objc type CalculationError uint @@ -495,7 +495,7 @@ const ( LocalNotificationCenterType DistributedNotificationCenterType = "_NSLocalNotificationCenter" ) -// These constants specify the behavior of notifications posted using the [foundation/nsdistributednotificationcenter/postnotificationname] method. [Full Topic] +// These constants specify the behavior of notifications posted using the postNotificationName:object: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdistributednotificationoptions?language=objc type DistributedNotificationOptions uint @@ -751,7 +751,7 @@ const ( FileVersionReplacingByMoving FileVersionReplacingOptions = 1 ) -// Reading options that can be set by the [foundation/nsfilewrapper/initwithurl] and [foundation/nsfilewrapper/readfromurl] methods. [Full Topic] +// Reading options that can be set by the initWithURL:options:error: and readFromURL:options:error: methods. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapperreadingoptions?language=objc type FileWrapperReadingOptions uint @@ -761,7 +761,7 @@ const ( FileWrapperReadingWithoutMapping FileWrapperReadingOptions = 2 ) -// Writing options that can be set by the [foundation/nsfilewrapper/writetourl] method. [Full Topic] +// Writing options that can be set by the writeToURL:options:originalContentsURL:error: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapperwritingoptions?language=objc type FileWrapperWritingOptions uint @@ -1235,7 +1235,7 @@ const ( MassFormatterUnitStone MassFormatterUnit = 1539 ) -// Set by the Block as the matching progresses, completes, or fails. Used by the method [foundation/nsregularexpression/enumeratematchesinstring]. [Full Topic] +// Set by the Block as the matching progresses, completes, or fails. Used by the method enumerateMatchesInString:options:range:usingBlock:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmatchingflags?language=objc type MatchingFlags uint @@ -1366,7 +1366,7 @@ const ( NotificationSuspensionBehaviorHold NotificationSuspensionBehavior = 3 ) -// These constants specify the behavior of a number formatter. These constants are returned by the [foundation/nsnumberformatter/defaultformatterbehavior] class method and the [foundation/nsnumberformatter/formatterbehavior] property. [Full Topic] +// These constants specify the behavior of a number formatter. These constants are returned by the defaultFormatterBehavior class method and the formatterBehavior property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatterbehavior?language=objc type NumberFormatterBehavior uint @@ -1377,7 +1377,7 @@ const ( NumberFormatterBehaviorDefault NumberFormatterBehavior = 0 ) -// These constants are used to specify how numbers should be padded. These constants are used by the [foundation/nsnumberformatter/paddingposition] property. [Full Topic] +// These constants are used to specify how numbers should be padded. These constants are used by the paddingPosition property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatterpadposition?language=objc type NumberFormatterPadPosition uint @@ -1389,7 +1389,7 @@ const ( NumberFormatterPadBeforeSuffix NumberFormatterPadPosition = 2 ) -// These constants are used to specify how numbers should be rounded. These constants are used by the [foundation/nsnumberformatter/roundingmode] property. [Full Topic] +// These constants are used to specify how numbers should be rounded. These constants are used by the roundingMode property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatterroundingmode?language=objc type NumberFormatterRoundingMode uint @@ -1404,7 +1404,7 @@ const ( NumberFormatterRoundUp NumberFormatterRoundingMode = 3 ) -// The predefined number format styles used by the [foundation/nsnumberformatter/numberstyle] property. [Full Topic] +// The predefined number format styles used by the numberStyle property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatterstyle?language=objc type NumberFormatterStyle uint @@ -1422,15 +1422,6 @@ const ( NumberFormatterSpellOutStyle NumberFormatterStyle = 5 ) -// Specifies lower bound for a Unicode character range reserved for Apple’s corporate use. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/1560803-nsopenstepunicodereservedbase?language=objc -type OpenStepUnicodeReservedBase int - -const ( - KOpenStepUnicodeReservedBase OpenStepUnicodeReservedBase = 62464 -) - // These constants let you prioritize the order in which operations execute. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueuepriority?language=objc @@ -1670,17 +1661,13 @@ const ( type RectEdge uint const ( - MaxXEdge RectEdge = 2 - MaxYEdge RectEdge = 3 - MinXEdge RectEdge = 0 - MinYEdge RectEdge = 1 RectEdgeMaxX RectEdge = 2 RectEdgeMaxY RectEdge = 3 RectEdgeMinX RectEdge = 0 RectEdgeMinY RectEdge = 1 ) -// These constants define the regular expression options. These constants are used by the property [foundation/nsregularexpression/options], [foundation/nsregularexpression/regularexpressionwithpattern], and [foundation/nsregularexpression/initwithpattern]. [Full Topic] +// These constants define the regular expression options. These constants are used by the property options, regularExpressionWithPattern:options:error:, and initWithPattern:options:error:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpressionoptions?language=objc type RegularExpressionOptions uint @@ -1717,7 +1704,7 @@ const ( RelativeDateTimeFormatterUnitsStyleSpellOut RelativeDateTimeFormatterUnitsStyle = 1 ) -// These constants are used by [foundation/nsrelativespecifier/relativeposition] and [foundation/nsrelativespecifier/relativeposition]. [Full Topic] +// These constants are used by relativePosition and relativePosition. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativeposition?language=objc type RelativePosition uint @@ -1749,7 +1736,7 @@ const ( RunLoopCommonModes RunLoopMode = "kCFRunLoopCommonModes" ) -// The [foundation/nsclosecommand/saveoptions] method returns one of the following constants to indicate how to deal with saving any modified documents: [Full Topic] +// The saveOptions method returns one of the following constants to indicate how to deal with saving any modified documents: [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nssaveoptions?language=objc type SaveOptions uint @@ -1823,7 +1810,7 @@ const ( SortStable SortOptions = 16 ) -// Describes the constants that may be sent to the delegate as a bit field in the second parameter of [foundation/nsstreamdelegate/stream] to specify the kind of stream event. [Full Topic] +// Describes the constants that may be sent to the delegate as a bit field in the second parameter of stream:handleEvent: to specify the kind of stream event. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsstreamevent?language=objc type StreamEvent uint @@ -1850,7 +1837,7 @@ const ( StreamNetworkServiceTypeVoice StreamNetworkServiceTypeValue = "kCFStreamNetworkServiceTypeVoice" ) -// NSStream defines these string constants as keys for accessing stream properties using [foundation/nsstream/propertyforkey] and setting properties with [foundation/nsstream/setproperty]: [Full Topic] +// NSStream defines these string constants as keys for accessing stream properties using propertyForKey: and setting properties with setProperty:forKey:: [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsstreampropertykey?language=objc type StreamPropertyKey string @@ -2014,7 +2001,7 @@ const ( TaskTerminationReasonUncaughtSignal TaskTerminationReason = 2 ) -// These are passed to [foundation/nsspecifiertest/initwithobjectspecifier] to specify the comparison operator. [Full Topic] +// These are passed to initWithObjectSpecifier:comparisonOperator:testObject: to specify the comparison operator. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstestcomparisonoperation?language=objc type TestComparisonOperation uint @@ -2049,7 +2036,7 @@ const ( TextCheckingZIPKey TextCheckingKey = "ZIP" ) -// These constants specify the type of checking the methods should do. They are returned by [foundation/nstextcheckingresult/resulttype]. [Full Topic] +// These constants specify the type of checking the methods should do. They are returned by resultType. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingtype?language=objc type TextCheckingType uint64 @@ -2187,7 +2174,7 @@ const ( URLFileResourceTypeUnknown URLFileResourceType = "NSURLFileResourceTypeUnknown" ) -// These following constants are defined by NSURLHandle and are returned by [foundation/nsurlhandle/status]. [Full Topic] +// These following constants are defined by NSURLHandle and are returned by status. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlhandlestatus?language=objc type URLHandleStatus uint @@ -2555,7 +2542,7 @@ const ( UnarchiveFromDataTransformerName ValueTransformerName = "NSUnarchiveFromData" ) -// Options for enumerating mounted volumes with the [foundation/nsfilemanager/mountedvolumeurlsincludingresour] method. [Full Topic] +// Options for enumerating mounted volumes with the mountedVolumeURLsIncludingResourceValuesForKeys:options: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsvolumeenumerationoptions?language=objc type VolumeEnumerationOptions uint @@ -2578,16 +2565,7 @@ const ( RandomSubelement WhoseSubelementIdentifier = 3 ) -// A legacy constant used to control overflow in date calculations. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/1430373-nswrapcalendarcomponents?language=objc -type WrapCalendarComponents int - -const ( - KWrapCalendarComponents WrapCalendarComponents = 1 -) - -// The type defined for the constants that specify the kind and subkind of DTD declaration represented by an NSXMLDTDNode object. You set the DTD-node kind using the [foundation/nsxmldtdnode/setdtdkind] method. [Full Topic] +// The type defined for the constants that specify the kind and subkind of DTD declaration represented by an NSXMLDTDNode object. You set the DTD-node kind using the setDTDKind: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtdnodekind?language=objc type XMLDTDNodeKind uint @@ -2627,7 +2605,7 @@ const ( XMLDocumentXMLKind XMLDocumentContentKind = 0 ) -// NSXMLNode declares the following constants of type NSXMLNodeKind for specifying a node’s kind in the initializer methods [foundation/nsxmlnode/initwithkind] and [foundation/nsxmlnode/initwithkind]: [Full Topic] +// NSXMLNode declares the following constants of type NSXMLNodeKind for specifying a node’s kind in the initializer methods initWithKind:options: and initWithKind:options:: [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnodekind?language=objc type XMLNodeKind uint @@ -2648,7 +2626,7 @@ const ( XMLTextKind XMLNodeKind = 7 ) -// These constants are input and output options for all NSXMLNode objects (unless otherwise indicated), including NSXMLDocument objects. You can specify these options in the NSXMLNode methods [foundation/nsxmlnode/initwithkind] and [foundation/nsxmlnode/xmlstringwithoptions]. [Full Topic] +// These constants are input and output options for all NSXMLNode objects (unless otherwise indicated), including NSXMLDocument objects. You can specify these options in the NSXMLNode methods initWithKind:options: and XMLStringWithOptions:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnodeoptions?language=objc type XMLNodeOptions uint diff --git a/macos/foundation/error.gen.go b/macos/foundation/error.gen.go index d51a4c1d..b3f9e82a 100644 --- a/macos/foundation/error.gen.go +++ b/macos/foundation/error.gen.go @@ -19,15 +19,15 @@ type _ErrorClass struct { type IError interface { objc.IObject Domain() ErrorDomain - UserInfo() map[ErrorUserInfoKey]objc.Object LocalizedDescription() string + LocalizedFailureReason() string + LocalizedRecoverySuggestion() string + Code() int LocalizedRecoveryOptions() []string + UserInfo() map[ErrorUserInfoKey]objc.Object UnderlyingErrors() []Error RecoveryAttempter() objc.Object HelpAnchor() string - LocalizedRecoverySuggestion() string - Code() int - LocalizedFailureReason() string } // Information about an error condition including a domain, a domain-specific error code, and application-specific information. [Full Topic] @@ -55,18 +55,6 @@ func Error_FileProviderErrorForRejectedDeletionOfItem(updatedVersion objc.IObjec return ErrorClass.FileProviderErrorForRejectedDeletionOfItem(updatedVersion) } -func (ec _ErrorClass) FileProviderErrorForNonExistentItemWithIdentifier(itemIdentifier objc.IObject) Error { - rv := objc.Call[Error](ec, objc.Sel("fileProviderErrorForNonExistentItemWithIdentifier:"), itemIdentifier) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/2915899-fileprovidererrorfornonexistenti?language=objc -func Error_FileProviderErrorForNonExistentItemWithIdentifier(itemIdentifier objc.IObject) Error { - return ErrorClass.FileProviderErrorForNonExistentItemWithIdentifier(itemIdentifier) -} - func (ec _ErrorClass) FileProviderErrorForCollisionWithItem(existingItem objc.IObject) Error { rv := objc.Call[Error](ec, objc.Sel("fileProviderErrorForCollisionWithItem:"), existingItem) return rv @@ -79,6 +67,18 @@ func Error_FileProviderErrorForCollisionWithItem(existingItem objc.IObject) Erro return ErrorClass.FileProviderErrorForCollisionWithItem(existingItem) } +func (ec _ErrorClass) FileProviderErrorForNonExistentItemWithIdentifier(itemIdentifier objc.IObject) Error { + rv := objc.Call[Error](ec, objc.Sel("fileProviderErrorForNonExistentItemWithIdentifier:"), itemIdentifier) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/2915899-fileprovidererrorfornonexistenti?language=objc +func Error_FileProviderErrorForNonExistentItemWithIdentifier(itemIdentifier objc.IObject) Error { + return ErrorClass.FileProviderErrorForNonExistentItemWithIdentifier(itemIdentifier) +} + func (ec _ErrorClass) ErrorWithDomainCodeUserInfo(domain ErrorDomain, code int, dict map[ErrorUserInfoKey]objc.IObject) Error { rv := objc.Call[Error](ec, objc.Sel("errorWithDomain:code:userInfo:"), domain, code, dict) return rv @@ -162,14 +162,6 @@ func (e_ Error) Domain() ErrorDomain { return rv } -// The user info dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1411580-userinfo?language=objc -func (e_ Error) UserInfo() map[ErrorUserInfoKey]objc.Object { - rv := objc.Call[map[ErrorUserInfoKey]objc.Object](e_, objc.Sel("userInfo")) - return rv -} - // A string containing the localized description of the error. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1414418-localizeddescription?language=objc @@ -178,6 +170,30 @@ func (e_ Error) LocalizedDescription() string { return rv } +// A string containing the localized explanation of the reason for the error. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1412752-localizedfailurereason?language=objc +func (e_ Error) LocalizedFailureReason() string { + rv := objc.Call[string](e_, objc.Sel("localizedFailureReason")) + return rv +} + +// A string containing the localized recovery suggestion for the error. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1407500-localizedrecoverysuggestion?language=objc +func (e_ Error) LocalizedRecoverySuggestion() string { + rv := objc.Call[string](e_, objc.Sel("localizedRecoverySuggestion")) + return rv +} + +// The error code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1409165-code?language=objc +func (e_ Error) Code() int { + rv := objc.Call[int](e_, objc.Sel("code")) + return rv +} + // An array containing the localized titles of buttons appropriate for displaying in an alert panel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1415950-localizedrecoveryoptions?language=objc @@ -186,6 +202,14 @@ func (e_ Error) LocalizedRecoveryOptions() []string { return rv } +// The user info dictionary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1411580-userinfo?language=objc +func (e_ Error) UserInfo() map[ErrorUserInfoKey]objc.Object { + rv := objc.Call[map[ErrorUserInfoKey]objc.Object](e_, objc.Sel("userInfo")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/3738169-underlyingerrors?language=objc @@ -209,27 +233,3 @@ func (e_ Error) HelpAnchor() string { rv := objc.Call[string](e_, objc.Sel("helpAnchor")) return rv } - -// A string containing the localized recovery suggestion for the error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1407500-localizedrecoverysuggestion?language=objc -func (e_ Error) LocalizedRecoverySuggestion() string { - rv := objc.Call[string](e_, objc.Sel("localizedRecoverySuggestion")) - return rv -} - -// The error code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1409165-code?language=objc -func (e_ Error) Code() int { - rv := objc.Call[int](e_, objc.Sel("code")) - return rv -} - -// A string containing the localized explanation of the reason for the error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1412752-localizedfailurereason?language=objc -func (e_ Error) LocalizedFailureReason() string { - rv := objc.Call[string](e_, objc.Sel("localizedFailureReason")) - return rv -} diff --git a/macos/foundation/exception.gen.go b/macos/foundation/exception.gen.go index 0ca23011..c943ce65 100644 --- a/macos/foundation/exception.gen.go +++ b/macos/foundation/exception.gen.go @@ -19,11 +19,11 @@ type _ExceptionClass struct { type IException interface { objc.IObject Raise() - UserInfo() Dictionary - CallStackSymbols() []string CallStackReturnAddresses() []Number - Reason() string Name() ExceptionName + Reason() string + UserInfo() Dictionary + CallStackSymbols() []string } // An object that represents a special condition that interrupts the normal flow of program execution. [Full Topic] @@ -73,6 +73,13 @@ func (e_ Exception) Init() Exception { return rv } +// Raises the receiver, causing program flow to jump to the local exception handler. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1416135-raise?language=objc +func (e_ Exception) Raise() { + objc.Call[objc.Void](e_, objc.Sel("raise")) +} + // Creates and returns an exception object . [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1569530-exceptionwithname?language=objc @@ -88,25 +95,28 @@ func Exception_ExceptionWithNameReasonUserInfo(name ExceptionName, reason string return ExceptionClass.ExceptionWithNameReasonUserInfo(name, reason, userInfo) } -// Raises the receiver, causing program flow to jump to the local exception handler. [Full Topic] +// The call return addresses related to a raised exception. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1416135-raise?language=objc -func (e_ Exception) Raise() { - objc.Call[objc.Void](e_, objc.Sel("raise")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1412165-callstackreturnaddresses?language=objc +func (e_ Exception) CallStackReturnAddresses() []Number { + rv := objc.Call[[]Number](e_, objc.Sel("callStackReturnAddresses")) + return rv } -// A convenience method that creates and raises an exception. [Full Topic] +// A string used to uniquely identify the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1569524-raise?language=objc -func (ec _ExceptionClass) RaiseFormat(name ExceptionName, format string, args ...any) { - objc.Call[objc.Void](ec, objc.Sel("raise:format:"), append([]any{name, format}, args...)...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1410925-name?language=objc +func (e_ Exception) Name() ExceptionName { + rv := objc.Call[ExceptionName](e_, objc.Sel("name")) + return rv } -// A convenience method that creates and raises an exception. [Full Topic] +// A string containing a “human-readable” reason for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1569524-raise?language=objc -func Exception_RaiseFormat(name ExceptionName, format string, args ...any) { - ExceptionClass.RaiseFormat(name, format, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1415537-reason?language=objc +func (e_ Exception) Reason() string { + rv := objc.Call[string](e_, objc.Sel("reason")) + return rv } // A dictionary containing application-specific data pertaining to the receiver. [Full Topic] @@ -124,27 +134,3 @@ func (e_ Exception) CallStackSymbols() []string { rv := objc.Call[[]string](e_, objc.Sel("callStackSymbols")) return rv } - -// The call return addresses related to a raised exception. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1412165-callstackreturnaddresses?language=objc -func (e_ Exception) CallStackReturnAddresses() []Number { - rv := objc.Call[[]Number](e_, objc.Sel("callStackReturnAddresses")) - return rv -} - -// A string containing a “human-readable” reason for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1415537-reason?language=objc -func (e_ Exception) Reason() string { - rv := objc.Call[string](e_, objc.Sel("reason")) - return rv -} - -// A string used to uniquely identify the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexception/1410925-name?language=objc -func (e_ Exception) Name() ExceptionName { - rv := objc.Call[ExceptionName](e_, objc.Sel("name")) - return rv -} diff --git a/macos/foundation/expression.gen.go b/macos/foundation/expression.gen.go index dc000f4a..d92fd90b 100644 --- a/macos/foundation/expression.gen.go +++ b/macos/foundation/expression.gen.go @@ -20,20 +20,20 @@ type IExpression interface { objc.IObject AllowEvaluation() ExpressionValueWithObjectContext(object objc.IObject, context IMutableDictionary) objc.Object - LeftExpression() Expression - FalseExpression() Expression - ConstantValue() objc.Object - RightExpression() Expression + ExpressionType() ExpressionType + Function() string + Arguments() []Expression ExpressionBlock() func(arg0 objc.Object, arg1 []Expression, arg2 MutableDictionary) objc.Object + ConstantValue() objc.Object + Variable() string + Predicate() Predicate + FalseExpression() Expression KeyPath() string - Collection() objc.Object + RightExpression() Expression + LeftExpression() Expression Operand() Expression - Predicate() Predicate - Variable() string - ExpressionType() ExpressionType - Function() string + Collection() objc.Object TrueExpression() Expression - Arguments() []Expression } // An expression for use in a comparison predicate. [Full Topic] @@ -98,101 +98,71 @@ func Expression_ExpressionForConditionalTrueExpressionFalseExpression(predicate return ExpressionClass.ExpressionForConditionalTrueExpressionFalseExpression(predicate, trueExpression, falseExpression) } -// Forces a securely decoded expression to allow evaluation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1409244-allowevaluation?language=objc -func (e_ Expression) AllowEvaluation() { - objc.Call[objc.Void](e_, objc.Sel("allowEvaluation")) -} - -// Creates an expression that extracts a value from the variable bindings dictionary for a specified key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1417593-expressionforvariable?language=objc -func (ec _ExpressionClass) ExpressionForVariable(string_ string) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForVariable:"), string_) - return rv -} - -// Creates an expression that extracts a value from the variable bindings dictionary for a specified key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1417593-expressionforvariable?language=objc -func Expression_ExpressionForVariable(string_ string) Expression { - return ExpressionClass.ExpressionForVariable(string_) -} - -// Creates an expression that represents any key for a Spotlight query. [Full Topic] +// Creates an expression that represents the object you’re evaluating. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1410198-expressionforanykey?language=objc -func (ec _ExpressionClass) ExpressionForAnyKey() Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForAnyKey")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411845-expressionforevaluatedobject?language=objc +func (ec _ExpressionClass) ExpressionForEvaluatedObject() Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForEvaluatedObject")) return rv } -// Creates an expression that represents any key for a Spotlight query. [Full Topic] +// Creates an expression that represents the object you’re evaluating. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1410198-expressionforanykey?language=objc -func Expression_ExpressionForAnyKey() Expression { - return ExpressionClass.ExpressionForAnyKey() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411845-expressionforevaluatedobject?language=objc +func Expression_ExpressionForEvaluatedObject() Expression { + return ExpressionClass.ExpressionForEvaluatedObject() } -// Creates an expression object that represents the intersection of a specified set and collection. [Full Topic] +// Creates an expression that invokes the value function with a specified key path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1409706-expressionforintersectset?language=objc -func (ec _ExpressionClass) ExpressionForIntersectSetWith(left IExpression, right IExpression) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForIntersectSet:with:"), left, right) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1408892-expressionforkeypath?language=objc +func (ec _ExpressionClass) ExpressionForKeyPath(keyPath string) Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForKeyPath:"), keyPath) return rv } -// Creates an expression object that represents the intersection of a specified set and collection. [Full Topic] +// Creates an expression that invokes the value function with a specified key path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1409706-expressionforintersectset?language=objc -func Expression_ExpressionForIntersectSetWith(left IExpression, right IExpression) Expression { - return ExpressionClass.ExpressionForIntersectSetWith(left, right) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1408892-expressionforkeypath?language=objc +func Expression_ExpressionForKeyPath(keyPath string) Expression { + return ExpressionClass.ExpressionForKeyPath(keyPath) } -// Creates the expression with the specified expression format and array of arguments. [Full Topic] +// Creates an expression object that uses the block for evaluating objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1413484-expressionwithformat?language=objc -func (ec _ExpressionClass) ExpressionWithFormatArgumentArray(expressionFormat string, arguments []objc.IObject) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionWithFormat:argumentArray:"), expressionFormat, arguments) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1407823-expressionforblock?language=objc +func (ec _ExpressionClass) ExpressionForBlockArguments(block func(evaluatedObject objc.Object, expressions []Expression, context MutableDictionary) objc.Object, arguments []IExpression) Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForBlock:arguments:"), block, arguments) return rv } -// Creates the expression with the specified expression format and array of arguments. [Full Topic] +// Creates an expression object that uses the block for evaluating objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1413484-expressionwithformat?language=objc -func Expression_ExpressionWithFormatArgumentArray(expressionFormat string, arguments []objc.IObject) Expression { - return ExpressionClass.ExpressionWithFormatArgumentArray(expressionFormat, arguments) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1407823-expressionforblock?language=objc +func Expression_ExpressionForBlockArguments(block func(evaluatedObject objc.Object, expressions []Expression, context MutableDictionary) objc.Object, arguments []IExpression) Expression { + return ExpressionClass.ExpressionForBlockArguments(block, arguments) } -// Creates an expression that invokes one of the predefined functions. [Full Topic] +// Creates an expression that represents any key for a Spotlight query. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1413747-expressionforfunction?language=objc -func (ec _ExpressionClass) ExpressionForFunctionArguments(name string, parameters []objc.IObject) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForFunction:arguments:"), name, parameters) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1410198-expressionforanykey?language=objc +func (ec _ExpressionClass) ExpressionForAnyKey() Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForAnyKey")) return rv } -// Creates an expression that invokes one of the predefined functions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1413747-expressionforfunction?language=objc -func Expression_ExpressionForFunctionArguments(name string, parameters []objc.IObject) Expression { - return ExpressionClass.ExpressionForFunctionArguments(name, parameters) -} - -// Creates an aggregate expression for a specified collection. [Full Topic] +// Creates an expression that represents any key for a Spotlight query. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1418366-expressionforaggregate?language=objc -func (ec _ExpressionClass) ExpressionForAggregate(subexpressions []IExpression) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForAggregate:"), subexpressions) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1410198-expressionforanykey?language=objc +func Expression_ExpressionForAnyKey() Expression { + return ExpressionClass.ExpressionForAnyKey() } -// Creates an aggregate expression for a specified collection. [Full Topic] +// Forces a securely decoded expression to allow evaluation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1418366-expressionforaggregate?language=objc -func Expression_ExpressionForAggregate(subexpressions []IExpression) Expression { - return ExpressionClass.ExpressionForAggregate(subexpressions) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1409244-allowevaluation?language=objc +func (e_ Expression) AllowEvaluation() { + objc.Call[objc.Void](e_, objc.Sel("allowEvaluation")) } // Creates an expression object that represents the subtraction of a specified collection from a specified set. [Full Topic] @@ -210,14 +180,21 @@ func Expression_ExpressionForMinusSetWith(left IExpression, right IExpression) E return ExpressionClass.ExpressionForMinusSetWith(left, right) } -// Evaluates an expression using a specified object and context. [Full Topic] +// Creates an aggregate expression for a specified collection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1410363-expressionvaluewithobject?language=objc -func (e_ Expression) ExpressionValueWithObjectContext(object objc.IObject, context IMutableDictionary) objc.Object { - rv := objc.Call[objc.Object](e_, objc.Sel("expressionValueWithObject:context:"), object, context) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1418366-expressionforaggregate?language=objc +func (ec _ExpressionClass) ExpressionForAggregate(subexpressions []IExpression) Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForAggregate:"), subexpressions) return rv } +// Creates an aggregate expression for a specified collection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1418366-expressionforaggregate?language=objc +func Expression_ExpressionForAggregate(subexpressions []IExpression) Expression { + return ExpressionClass.ExpressionForAggregate(subexpressions) +} + // Creates an expression object that represents the union of a specified set and collection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411585-expressionforunionset?language=objc @@ -233,21 +210,6 @@ func Expression_ExpressionForUnionSetWith(left IExpression, right IExpression) E return ExpressionClass.ExpressionForUnionSetWith(left, right) } -// Creates an expression that returns the result of invoking a selector with a specified name using specified arguments. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1412905-expressionforfunction?language=objc -func (ec _ExpressionClass) ExpressionForFunctionSelectorNameArguments(target IExpression, name string, parameters []objc.IObject) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForFunction:selectorName:arguments:"), target, name, parameters) - return rv -} - -// Creates an expression that returns the result of invoking a selector with a specified name using specified arguments. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1412905-expressionforfunction?language=objc -func Expression_ExpressionForFunctionSelectorNameArguments(target IExpression, name string, parameters []objc.IObject) Expression { - return ExpressionClass.ExpressionForFunctionSelectorNameArguments(target, name, parameters) -} - // Creates an expression that filters a collection by storing elements in the collection in a specified variable and keeping the elements that the qualifier returns as true. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411651-expressionforsubquery?language=objc @@ -263,110 +225,110 @@ func Expression_ExpressionForSubqueryUsingIteratorVariablePredicate(expression I return ExpressionClass.ExpressionForSubqueryUsingIteratorVariablePredicate(expression, variable, predicate) } -// Creates an expression that invokes the value function with a specified key path. [Full Topic] +// Creates an expression that extracts a value from the variable bindings dictionary for a specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1408892-expressionforkeypath?language=objc -func (ec _ExpressionClass) ExpressionForKeyPath(keyPath string) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForKeyPath:"), keyPath) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1417593-expressionforvariable?language=objc +func (ec _ExpressionClass) ExpressionForVariable(string_ string) Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForVariable:"), string_) return rv } -// Creates an expression that invokes the value function with a specified key path. [Full Topic] +// Creates an expression that extracts a value from the variable bindings dictionary for a specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1408892-expressionforkeypath?language=objc -func Expression_ExpressionForKeyPath(keyPath string) Expression { - return ExpressionClass.ExpressionForKeyPath(keyPath) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1417593-expressionforvariable?language=objc +func Expression_ExpressionForVariable(string_ string) Expression { + return ExpressionClass.ExpressionForVariable(string_) } -// Creates an expression that represents the object you’re evaluating. [Full Topic] +// Creates an expression object that represents the intersection of a specified set and collection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411845-expressionforevaluatedobject?language=objc -func (ec _ExpressionClass) ExpressionForEvaluatedObject() Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForEvaluatedObject")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1409706-expressionforintersectset?language=objc +func (ec _ExpressionClass) ExpressionForIntersectSetWith(left IExpression, right IExpression) Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForIntersectSet:with:"), left, right) return rv } -// Creates an expression that represents the object you’re evaluating. [Full Topic] +// Creates an expression object that represents the intersection of a specified set and collection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411845-expressionforevaluatedobject?language=objc -func Expression_ExpressionForEvaluatedObject() Expression { - return ExpressionClass.ExpressionForEvaluatedObject() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1409706-expressionforintersectset?language=objc +func Expression_ExpressionForIntersectSetWith(left IExpression, right IExpression) Expression { + return ExpressionClass.ExpressionForIntersectSetWith(left, right) } -// Creates the expression with the specified expression arguments. [Full Topic] +// Creates an expression that represents a specified constant value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1587937-expressionwithformat?language=objc -func (ec _ExpressionClass) ExpressionWithFormat(expressionFormat string, args ...any) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionWithFormat:"), append([]any{expressionFormat}, args...)...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1415818-expressionforconstantvalue?language=objc +func (ec _ExpressionClass) ExpressionForConstantValue(obj objc.IObject) Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForConstantValue:"), obj) return rv } -// Creates the expression with the specified expression arguments. [Full Topic] +// Creates an expression that represents a specified constant value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1587937-expressionwithformat?language=objc -func Expression_ExpressionWithFormat(expressionFormat string, args ...any) Expression { - return ExpressionClass.ExpressionWithFormat(expressionFormat, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1415818-expressionforconstantvalue?language=objc +func Expression_ExpressionForConstantValue(obj objc.IObject) Expression { + return ExpressionClass.ExpressionForConstantValue(obj) } -// Creates an expression object that uses the block for evaluating objects. [Full Topic] +// Evaluates an expression using a specified object and context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1407823-expressionforblock?language=objc -func (ec _ExpressionClass) ExpressionForBlockArguments(block func(evaluatedObject objc.Object, expressions []Expression, context MutableDictionary) objc.Object, arguments []IExpression) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForBlock:arguments:"), block, arguments) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1410363-expressionvaluewithobject?language=objc +func (e_ Expression) ExpressionValueWithObjectContext(object objc.IObject, context IMutableDictionary) objc.Object { + rv := objc.Call[objc.Object](e_, objc.Sel("expressionValueWithObject:context:"), object, context) return rv } -// Creates an expression object that uses the block for evaluating objects. [Full Topic] +// Creates an expression that returns the result of invoking a selector with a specified name using specified arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1407823-expressionforblock?language=objc -func Expression_ExpressionForBlockArguments(block func(evaluatedObject objc.Object, expressions []Expression, context MutableDictionary) objc.Object, arguments []IExpression) Expression { - return ExpressionClass.ExpressionForBlockArguments(block, arguments) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1412905-expressionforfunction?language=objc +func (ec _ExpressionClass) ExpressionForFunctionSelectorNameArguments(target IExpression, name string, parameters []objc.IObject) Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForFunction:selectorName:arguments:"), target, name, parameters) + return rv } -// Creates an expression that represents a specified constant value. [Full Topic] +// Creates an expression that returns the result of invoking a selector with a specified name using specified arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1415818-expressionforconstantvalue?language=objc -func (ec _ExpressionClass) ExpressionForConstantValue(obj objc.IObject) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForConstantValue:"), obj) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1412905-expressionforfunction?language=objc +func Expression_ExpressionForFunctionSelectorNameArguments(target IExpression, name string, parameters []objc.IObject) Expression { + return ExpressionClass.ExpressionForFunctionSelectorNameArguments(target, name, parameters) } -// Creates an expression that represents a specified constant value. [Full Topic] +// Creates the expression with the specified expression arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1415818-expressionforconstantvalue?language=objc -func Expression_ExpressionForConstantValue(obj objc.IObject) Expression { - return ExpressionClass.ExpressionForConstantValue(obj) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1587937-expressionwithformat?language=objc +func (ec _ExpressionClass) ExpressionWithFormat(expressionFormat string, args ...any) Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionWithFormat:"), append([]any{expressionFormat}, args...)...) + return rv } -// The left expression of an aggregate expression. [Full Topic] +// Creates the expression with the specified expression arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1415792-leftexpression?language=objc -func (e_ Expression) LeftExpression() Expression { - rv := objc.Call[Expression](e_, objc.Sel("leftExpression")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1587937-expressionwithformat?language=objc +func Expression_ExpressionWithFormat(expressionFormat string, args ...any) Expression { + return ExpressionClass.ExpressionWithFormat(expressionFormat, args...) } -// An expression to evalutate if a conditional expression’s predicate evaluates to false. [Full Topic] +// The expression type for the expression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1416488-falseexpression?language=objc -func (e_ Expression) FalseExpression() Expression { - rv := objc.Call[Expression](e_, objc.Sel("falseExpression")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1416975-expressiontype?language=objc +func (e_ Expression) ExpressionType() ExpressionType { + rv := objc.Call[ExpressionType](e_, objc.Sel("expressionType")) return rv } -// The constant value of the expression. [Full Topic] +// The function for the expression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1418093-constantvalue?language=objc -func (e_ Expression) ConstantValue() objc.Object { - rv := objc.Call[objc.Object](e_, objc.Sel("constantValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1416200-function?language=objc +func (e_ Expression) Function() string { + rv := objc.Call[string](e_, objc.Sel("function")) return rv } -// The right expression of an aggregate expression. [Full Topic] +// The arguments for the expression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1416583-rightexpression?language=objc -func (e_ Expression) RightExpression() Expression { - rv := objc.Call[Expression](e_, objc.Sel("rightExpression")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411559-arguments?language=objc +func (e_ Expression) Arguments() []Expression { + rv := objc.Call[[]Expression](e_, objc.Sel("arguments")) return rv } @@ -378,27 +340,19 @@ func (e_ Expression) ExpressionBlock() func(arg0 objc.Object, arg1 []Expression, return rv } -// The key path for the expression. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1416071-keypath?language=objc -func (e_ Expression) KeyPath() string { - rv := objc.Call[string](e_, objc.Sel("keyPath")) - return rv -} - -// The collection of expressions in an aggregate expression, or the collection element of a subquery expression. [Full Topic] +// The constant value of the expression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1415684-collection?language=objc -func (e_ Expression) Collection() objc.Object { - rv := objc.Call[objc.Object](e_, objc.Sel("collection")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1418093-constantvalue?language=objc +func (e_ Expression) ConstantValue() objc.Object { + rv := objc.Call[objc.Object](e_, objc.Sel("constantValue")) return rv } -// The operand for the expression. [Full Topic] +// The variable for the expression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1413698-operand?language=objc -func (e_ Expression) Operand() Expression { - rv := objc.Call[Expression](e_, objc.Sel("operand")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1413759-variable?language=objc +func (e_ Expression) Variable() string { + rv := objc.Call[string](e_, objc.Sel("variable")) return rv } @@ -410,42 +364,58 @@ func (e_ Expression) Predicate() Predicate { return rv } -// The variable for the expression. [Full Topic] +// An expression to evalutate if a conditional expression’s predicate evaluates to false. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1413759-variable?language=objc -func (e_ Expression) Variable() string { - rv := objc.Call[string](e_, objc.Sel("variable")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1416488-falseexpression?language=objc +func (e_ Expression) FalseExpression() Expression { + rv := objc.Call[Expression](e_, objc.Sel("falseExpression")) return rv } -// The expression type for the expression. [Full Topic] +// The key path for the expression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1416975-expressiontype?language=objc -func (e_ Expression) ExpressionType() ExpressionType { - rv := objc.Call[ExpressionType](e_, objc.Sel("expressionType")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1416071-keypath?language=objc +func (e_ Expression) KeyPath() string { + rv := objc.Call[string](e_, objc.Sel("keyPath")) return rv } -// The function for the expression. [Full Topic] +// The right expression of an aggregate expression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1416200-function?language=objc -func (e_ Expression) Function() string { - rv := objc.Call[string](e_, objc.Sel("function")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1416583-rightexpression?language=objc +func (e_ Expression) RightExpression() Expression { + rv := objc.Call[Expression](e_, objc.Sel("rightExpression")) return rv } -// An expression to evalutate if a conditional expression’s predicate evaluates to true. [Full Topic] +// The left expression of an aggregate expression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411874-trueexpression?language=objc -func (e_ Expression) TrueExpression() Expression { - rv := objc.Call[Expression](e_, objc.Sel("trueExpression")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1415792-leftexpression?language=objc +func (e_ Expression) LeftExpression() Expression { + rv := objc.Call[Expression](e_, objc.Sel("leftExpression")) return rv } -// The arguments for the expression. [Full Topic] +// The operand for the expression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411559-arguments?language=objc -func (e_ Expression) Arguments() []Expression { - rv := objc.Call[[]Expression](e_, objc.Sel("arguments")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1413698-operand?language=objc +func (e_ Expression) Operand() Expression { + rv := objc.Call[Expression](e_, objc.Sel("operand")) + return rv +} + +// The collection of expressions in an aggregate expression, or the collection element of a subquery expression. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1415684-collection?language=objc +func (e_ Expression) Collection() objc.Object { + rv := objc.Call[objc.Object](e_, objc.Sel("collection")) + return rv +} + +// An expression to evalutate if a conditional expression’s predicate evaluates to true. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411874-trueexpression?language=objc +func (e_ Expression) TrueExpression() Expression { + rv := objc.Call[Expression](e_, objc.Sel("trueExpression")) return rv } diff --git a/macos/foundation/extension_context.gen.go b/macos/foundation/extension_context.gen.go index a9bd9081..bd81838d 100644 --- a/macos/foundation/extension_context.gen.go +++ b/macos/foundation/extension_context.gen.go @@ -18,15 +18,15 @@ type _ExtensionContextClass struct { // An interface definition for the [ExtensionContext] class. type IExtensionContext interface { objc.IObject - CompleteRequestReturningItemsCompletionHandler(items []objc.IObject, completionHandler func(expired bool)) - CompleteRequestWithBroadcastURLSetupInfo(broadcastURL IURL, setupInfo map[string]objc.IObject) DismissNotificationContentExtension() - MediaPlayingPaused() + CompleteRequestReturningItemsCompletionHandler(items []objc.IObject, completionHandler func(expired bool)) PerformNotificationDefaultAction() + OpenURLCompletionHandler(URL IURL, completionHandler func(success bool)) MediaPlayingStarted() - LoadBroadcastingApplicationInfoWithCompletion(handler func(bundleID string, displayName string, appIcon objc.Object)) + CompleteRequestWithBroadcastURLSetupInfo(broadcastURL IURL, setupInfo map[string]objc.IObject) + MediaPlayingPaused() CancelRequestWithError(error IError) - OpenURLCompletionHandler(URL IURL, completionHandler func(success bool)) + LoadBroadcastingApplicationInfoWithCompletion(handler func(bundleID string, displayName string, appIcon objc.Object)) InputItems() []objc.Object } @@ -63,20 +63,6 @@ func (e_ ExtensionContext) Init() ExtensionContext { return rv } -// Tells the host app to complete the app extension request with an array of result items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/1411301-completerequestreturningitems?language=objc -func (e_ ExtensionContext) CompleteRequestReturningItemsCompletionHandler(items []objc.IObject, completionHandler func(expired bool)) { - objc.Call[objc.Void](e_, objc.Sel("completeRequestReturningItems:completionHandler:"), items, completionHandler) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/2891095-completerequestwithbroadcasturl?language=objc -func (e_ ExtensionContext) CompleteRequestWithBroadcastURLSetupInfo(broadcastURL IURL, setupInfo map[string]objc.IObject) { - objc.Call[objc.Void](e_, objc.Sel("completeRequestWithBroadcastURL:setupInfo:"), broadcastURL, setupInfo) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/2977624-dismissnotificationcontentextens?language=objc @@ -84,11 +70,11 @@ func (e_ ExtensionContext) DismissNotificationContentExtension() { objc.Call[objc.Void](e_, objc.Sel("dismissNotificationContentExtension")) } -// Tells the system that the Notification Content app extension stopped playing a media file. [Full Topic] +// Tells the host app to complete the app extension request with an array of result items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/1648527-mediaplayingpaused?language=objc -func (e_ ExtensionContext) MediaPlayingPaused() { - objc.Call[objc.Void](e_, objc.Sel("mediaPlayingPaused")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/1411301-completerequestreturningitems?language=objc +func (e_ ExtensionContext) CompleteRequestReturningItemsCompletionHandler(items []objc.IObject, completionHandler func(expired bool)) { + objc.Call[objc.Void](e_, objc.Sel("completeRequestReturningItems:completionHandler:"), items, completionHandler) } // [Full Topic] @@ -98,6 +84,13 @@ func (e_ ExtensionContext) PerformNotificationDefaultAction() { objc.Call[objc.Void](e_, objc.Sel("performNotificationDefaultAction")) } +// Asks the system to open a URL on behalf of the currently running app extension. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/1416791-openurl?language=objc +func (e_ ExtensionContext) OpenURLCompletionHandler(URL IURL, completionHandler func(success bool)) { + objc.Call[objc.Void](e_, objc.Sel("openURL:completionHandler:"), URL, completionHandler) +} + // Tells the system that the Notification Content app extension began playing a media file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/1648523-mediaplayingstarted?language=objc @@ -107,9 +100,16 @@ func (e_ ExtensionContext) MediaPlayingStarted() { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/1845240-loadbroadcastingapplicationinfow?language=objc -func (e_ ExtensionContext) LoadBroadcastingApplicationInfoWithCompletion(handler func(bundleID string, displayName string, appIcon objc.Object)) { - objc.Call[objc.Void](e_, objc.Sel("loadBroadcastingApplicationInfoWithCompletion:"), handler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/2891095-completerequestwithbroadcasturl?language=objc +func (e_ ExtensionContext) CompleteRequestWithBroadcastURLSetupInfo(broadcastURL IURL, setupInfo map[string]objc.IObject) { + objc.Call[objc.Void](e_, objc.Sel("completeRequestWithBroadcastURL:setupInfo:"), broadcastURL, setupInfo) +} + +// Tells the system that the Notification Content app extension stopped playing a media file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/1648527-mediaplayingpaused?language=objc +func (e_ ExtensionContext) MediaPlayingPaused() { + objc.Call[objc.Void](e_, objc.Sel("mediaPlayingPaused")) } // Tells the host app to cancel the app extension request, with a supplied error. [Full Topic] @@ -119,11 +119,11 @@ func (e_ ExtensionContext) CancelRequestWithError(error IError) { objc.Call[objc.Void](e_, objc.Sel("cancelRequestWithError:"), error) } -// Asks the system to open a URL on behalf of the currently running app extension. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/1416791-openurl?language=objc -func (e_ ExtensionContext) OpenURLCompletionHandler(URL IURL, completionHandler func(success bool)) { - objc.Call[objc.Void](e_, objc.Sel("openURL:completionHandler:"), URL, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/1845240-loadbroadcastingapplicationinfow?language=objc +func (e_ ExtensionContext) LoadBroadcastingApplicationInfoWithCompletion(handler func(bundleID string, displayName string, appIcon objc.Object)) { + objc.Call[objc.Void](e_, objc.Sel("loadBroadcastingApplicationInfoWithCompletion:"), handler) } // The list of input NSExtensionItem objects associated with the context. [Full Topic] diff --git a/macos/foundation/extension_item.gen.go b/macos/foundation/extension_item.gen.go index f8503e43..509eb1e0 100644 --- a/macos/foundation/extension_item.gen.go +++ b/macos/foundation/extension_item.gen.go @@ -18,14 +18,14 @@ type _ExtensionItemClass struct { // An interface definition for the [ExtensionItem] class. type IExtensionItem interface { objc.IObject - AttributedTitle() AttributedString - SetAttributedTitle(value IAttributedString) Attachments() []ItemProvider SetAttachments(value []IItemProvider) - AttributedContentText() AttributedString - SetAttributedContentText(value IAttributedString) UserInfo() Dictionary SetUserInfo(value Dictionary) + AttributedTitle() AttributedString + SetAttributedTitle(value IAttributedString) + AttributedContentText() AttributedString + SetAttributedContentText(value IAttributedString) } // An immutable collection of values representing different aspects of an item for an extension to act upon. [Full Topic] @@ -61,21 +61,6 @@ func (e_ ExtensionItem) Init() ExtensionItem { return rv } -// An optional title for the item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionitem/1416592-attributedtitle?language=objc -func (e_ ExtensionItem) AttributedTitle() AttributedString { - rv := objc.Call[AttributedString](e_, objc.Sel("attributedTitle")) - return rv -} - -// An optional title for the item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionitem/1416592-attributedtitle?language=objc -func (e_ ExtensionItem) SetAttributedTitle(value IAttributedString) { - objc.Call[objc.Void](e_, objc.Sel("setAttributedTitle:"), value) -} - // An optional array of media data associated with the extension item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionitem/1416690-attachments?language=objc @@ -91,21 +76,6 @@ func (e_ ExtensionItem) SetAttachments(value []IItemProvider) { objc.Call[objc.Void](e_, objc.Sel("setAttachments:"), value) } -// An optional string describing the extension item content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionitem/1408297-attributedcontenttext?language=objc -func (e_ ExtensionItem) AttributedContentText() AttributedString { - rv := objc.Call[AttributedString](e_, objc.Sel("attributedContentText")) - return rv -} - -// An optional string describing the extension item content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionitem/1408297-attributedcontenttext?language=objc -func (e_ ExtensionItem) SetAttributedContentText(value IAttributedString) { - objc.Call[objc.Void](e_, objc.Sel("setAttributedContentText:"), value) -} - // An optional dictionary of keys and values corresponding to the extension item’s properties. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionitem/1414953-userinfo?language=objc @@ -120,3 +90,33 @@ func (e_ ExtensionItem) UserInfo() Dictionary { func (e_ ExtensionItem) SetUserInfo(value Dictionary) { objc.Call[objc.Void](e_, objc.Sel("setUserInfo:"), value) } + +// An optional title for the item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionitem/1416592-attributedtitle?language=objc +func (e_ ExtensionItem) AttributedTitle() AttributedString { + rv := objc.Call[AttributedString](e_, objc.Sel("attributedTitle")) + return rv +} + +// An optional title for the item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionitem/1416592-attributedtitle?language=objc +func (e_ ExtensionItem) SetAttributedTitle(value IAttributedString) { + objc.Call[objc.Void](e_, objc.Sel("setAttributedTitle:"), value) +} + +// An optional string describing the extension item content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionitem/1408297-attributedcontenttext?language=objc +func (e_ ExtensionItem) AttributedContentText() AttributedString { + rv := objc.Call[AttributedString](e_, objc.Sel("attributedContentText")) + return rv +} + +// An optional string describing the extension item content. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionitem/1408297-attributedcontenttext?language=objc +func (e_ ExtensionItem) SetAttributedContentText(value IAttributedString) { + objc.Call[objc.Void](e_, objc.Sel("setAttributedContentText:"), value) +} diff --git a/macos/foundation/file_coordinator.gen.go b/macos/foundation/file_coordinator.gen.go index 2437a667..5ac40225 100644 --- a/macos/foundation/file_coordinator.gen.go +++ b/macos/foundation/file_coordinator.gen.go @@ -18,16 +18,12 @@ type _FileCoordinatorClass struct { // An interface definition for the [FileCoordinator] class. type IFileCoordinator interface { objc.IObject + PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor(readingURLs []IURL, readingOptions FileCoordinatorReadingOptions, writingURLs []IURL, writingOptions FileCoordinatorWritingOptions, outError unsafe.Pointer, batchAccessor func(arg0 func())) + CoordinateAccessWithIntentsQueueByAccessor(intents []IFileAccessIntent, queue IOperationQueue, accessor func(error Error)) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(url1 IURL, options1 FileCoordinatorWritingOptions, url2 IURL, options2 FileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(newURL1 URL, newURL2 URL)) + CoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(readingURL IURL, readingOptions FileCoordinatorReadingOptions, writingURL IURL, writingOptions FileCoordinatorWritingOptions, outError unsafe.Pointer, readerWriter func(newReadingURL URL, newWritingURL URL)) ItemAtURLDidChangeUbiquityAttributes(url IURL, attributes ISet) - ItemAtURLWillMoveToURL(oldURL IURL, newURL IURL) Cancel() - CoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(readingURL IURL, readingOptions FileCoordinatorReadingOptions, writingURL IURL, writingOptions FileCoordinatorWritingOptions, outError unsafe.Pointer, readerWriter func(newReadingURL URL, newWritingURL URL)) - PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor(readingURLs []IURL, readingOptions FileCoordinatorReadingOptions, writingURLs []IURL, writingOptions FileCoordinatorWritingOptions, outError unsafe.Pointer, batchAccessor func(arg0 func())) - CoordinateAccessWithIntentsQueueByAccessor(intents []IFileAccessIntent, queue IOperationQueue, accessor func(error Error)) - ItemAtURLDidMoveToURL(oldURL IURL, newURL IURL) - CoordinateWritingItemAtURLOptionsErrorByAccessor(url IURL, options FileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(newURL URL)) - CoordinateReadingItemAtURLOptionsErrorByAccessor(url IURL, options FileCoordinatorReadingOptions, outError unsafe.Pointer, reader func(newURL URL)) PurposeIdentifier() string SetPurposeIdentifier(value string) } @@ -80,47 +76,25 @@ func (f_ FileCoordinator) Init() FileCoordinator { return rv } -// Initiates a write operation that involves a secondary write operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1408970-coordinatewritingitematurl?language=objc -func (f_ FileCoordinator) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(url1 IURL, options1 FileCoordinatorWritingOptions, url2 IURL, options2 FileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(newURL1 URL, newURL2 URL)) { - objc.Call[objc.Void](f_, objc.Sel("coordinateWritingItemAtURL:options:writingItemAtURL:options:error:byAccessor:"), url1, options1, url2, options2, outError, writer) -} - -// Tells observing file providers that the item's ubiquity attributes have changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/2909000-itematurl?language=objc -func (f_ FileCoordinator) ItemAtURLDidChangeUbiquityAttributes(url IURL, attributes ISet) { - objc.Call[objc.Void](f_, objc.Sel("itemAtURL:didChangeUbiquityAttributes:"), url, attributes) -} - -// Registers the specified file presenter object so that it can receive notifications. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1417120-addfilepresenter?language=objc -func (fc _FileCoordinatorClass) AddFilePresenter(filePresenter PFilePresenter) { - po0 := objc.WrapAsProtocol("NSFilePresenter", filePresenter) - objc.Call[objc.Void](fc, objc.Sel("addFilePresenter:"), po0) -} - -// Registers the specified file presenter object so that it can receive notifications. [Full Topic] +// Prepare to read or write from multiple files in a single batch operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1417120-addfilepresenter?language=objc -func FileCoordinator_AddFilePresenter(filePresenter PFilePresenter) { - FileCoordinatorClass.AddFilePresenter(filePresenter) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1412420-prepareforreadingitemsaturls?language=objc +func (f_ FileCoordinator) PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor(readingURLs []IURL, readingOptions FileCoordinatorReadingOptions, writingURLs []IURL, writingOptions FileCoordinatorWritingOptions, outError unsafe.Pointer, batchAccessor func(arg0 func())) { + objc.Call[objc.Void](f_, objc.Sel("prepareForReadingItemsAtURLs:options:writingItemsAtURLs:options:error:byAccessor:"), readingURLs, readingOptions, writingURLs, writingOptions, outError, batchAccessor) } -// Announces that your app is moving a file to a new URL. [Full Topic] +// Performs a number of coordinated-read or -write operations asynchronously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1408668-itematurl?language=objc -func (f_ FileCoordinator) ItemAtURLWillMoveToURL(oldURL IURL, newURL IURL) { - objc.Call[objc.Void](f_, objc.Sel("itemAtURL:willMoveToURL:"), oldURL, newURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1411533-coordinateaccesswithintents?language=objc +func (f_ FileCoordinator) CoordinateAccessWithIntentsQueueByAccessor(intents []IFileAccessIntent, queue IOperationQueue, accessor func(error Error)) { + objc.Call[objc.Void](f_, objc.Sel("coordinateAccessWithIntents:queue:byAccessor:"), intents, queue, accessor) } -// Cancels any active file coordination calls. [Full Topic] +// Initiates a write operation that involves a secondary write operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1418457-cancel?language=objc -func (f_ FileCoordinator) Cancel() { - objc.Call[objc.Void](f_, objc.Sel("cancel")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1408970-coordinatewritingitematurl?language=objc +func (f_ FileCoordinator) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(url1 IURL, options1 FileCoordinatorWritingOptions, url2 IURL, options2 FileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(newURL1 URL, newURL2 URL)) { + objc.Call[objc.Void](f_, objc.Sel("coordinateWritingItemAtURL:options:writingItemAtURL:options:error:byAccessor:"), url1, options1, url2, options2, outError, writer) } // Initiates a read operation that contains a follow-up write operation. [Full Topic] @@ -130,18 +104,11 @@ func (f_ FileCoordinator) CoordinateReadingItemAtURLOptionsWritingItemAtURLOptio objc.Call[objc.Void](f_, objc.Sel("coordinateReadingItemAtURL:options:writingItemAtURL:options:error:byAccessor:"), readingURL, readingOptions, writingURL, writingOptions, outError, readerWriter) } -// Prepare to read or write from multiple files in a single batch operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1412420-prepareforreadingitemsaturls?language=objc -func (f_ FileCoordinator) PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor(readingURLs []IURL, readingOptions FileCoordinatorReadingOptions, writingURLs []IURL, writingOptions FileCoordinatorWritingOptions, outError unsafe.Pointer, batchAccessor func(arg0 func())) { - objc.Call[objc.Void](f_, objc.Sel("prepareForReadingItemsAtURLs:options:writingItemsAtURLs:options:error:byAccessor:"), readingURLs, readingOptions, writingURLs, writingOptions, outError, batchAccessor) -} - -// Performs a number of coordinated-read or -write operations asynchronously. [Full Topic] +// Tells observing file providers that the item's ubiquity attributes have changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1411533-coordinateaccesswithintents?language=objc -func (f_ FileCoordinator) CoordinateAccessWithIntentsQueueByAccessor(intents []IFileAccessIntent, queue IOperationQueue, accessor func(error Error)) { - objc.Call[objc.Void](f_, objc.Sel("coordinateAccessWithIntents:queue:byAccessor:"), intents, queue, accessor) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/2909000-itematurl?language=objc +func (f_ FileCoordinator) ItemAtURLDidChangeUbiquityAttributes(url IURL, attributes ISet) { + objc.Call[objc.Void](f_, objc.Sel("itemAtURL:didChangeUbiquityAttributes:"), url, attributes) } // Unregisters the specified file presenter object. [Full Topic] @@ -159,40 +126,26 @@ func FileCoordinator_RemoveFilePresenter(filePresenter PFilePresenter) { FileCoordinatorClass.RemoveFilePresenter(filePresenter) } -// Notifies relevant file presenters that the location of a file or directory changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1410328-itematurl?language=objc -func (f_ FileCoordinator) ItemAtURLDidMoveToURL(oldURL IURL, newURL IURL) { - objc.Call[objc.Void](f_, objc.Sel("itemAtURL:didMoveToURL:"), oldURL, newURL) -} - -// Initiates a write operation on a single file or directory using the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1413344-coordinatewritingitematurl?language=objc -func (f_ FileCoordinator) CoordinateWritingItemAtURLOptionsErrorByAccessor(url IURL, options FileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(newURL URL)) { - objc.Call[objc.Void](f_, objc.Sel("coordinateWritingItemAtURL:options:error:byAccessor:"), url, options, outError, writer) -} - -// Initiates a read operation on a single file or directory using the specified options. [Full Topic] +// Registers the specified file presenter object so that it can receive notifications. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1407416-coordinatereadingitematurl?language=objc -func (f_ FileCoordinator) CoordinateReadingItemAtURLOptionsErrorByAccessor(url IURL, options FileCoordinatorReadingOptions, outError unsafe.Pointer, reader func(newURL URL)) { - objc.Call[objc.Void](f_, objc.Sel("coordinateReadingItemAtURL:options:error:byAccessor:"), url, options, outError, reader) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1417120-addfilepresenter?language=objc +func (fc _FileCoordinatorClass) AddFilePresenter(filePresenter PFilePresenter) { + po0 := objc.WrapAsProtocol("NSFilePresenter", filePresenter) + objc.Call[objc.Void](fc, objc.Sel("addFilePresenter:"), po0) } -// Returns an array containing the currently registered file presenter objects. [Full Topic] +// Registers the specified file presenter object so that it can receive notifications. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1407685-filepresenters?language=objc -func (fc _FileCoordinatorClass) FilePresenters() []FilePresenterObject { - rv := objc.Call[[]FilePresenterObject](fc, objc.Sel("filePresenters")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1417120-addfilepresenter?language=objc +func FileCoordinator_AddFilePresenter(filePresenter PFilePresenter) { + FileCoordinatorClass.AddFilePresenter(filePresenter) } -// Returns an array containing the currently registered file presenter objects. [Full Topic] +// Cancels any active file coordination calls. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1407685-filepresenters?language=objc -func FileCoordinator_FilePresenters() []FilePresenterObject { - return FileCoordinatorClass.FilePresenters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1418457-cancel?language=objc +func (f_ FileCoordinator) Cancel() { + objc.Call[objc.Void](f_, objc.Sel("cancel")) } // A string that uniquely identifies the file access that was performed by this file coordinator. [Full Topic] @@ -209,3 +162,18 @@ func (f_ FileCoordinator) PurposeIdentifier() string { func (f_ FileCoordinator) SetPurposeIdentifier(value string) { objc.Call[objc.Void](f_, objc.Sel("setPurposeIdentifier:"), value) } + +// Returns an array containing the currently registered file presenter objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1407685-filepresenters?language=objc +func (fc _FileCoordinatorClass) FilePresenters() []FilePresenterObject { + rv := objc.Call[[]FilePresenterObject](fc, objc.Sel("filePresenters")) + return rv +} + +// Returns an array containing the currently registered file presenter objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1407685-filepresenters?language=objc +func FileCoordinator_FilePresenters() []FilePresenterObject { + return FileCoordinatorClass.FilePresenters() +} diff --git a/macos/foundation/file_handle.gen.go b/macos/foundation/file_handle.gen.go index cf970ebe..942a7850 100644 --- a/macos/foundation/file_handle.gen.go +++ b/macos/foundation/file_handle.gen.go @@ -18,29 +18,26 @@ type _FileHandleClass struct { // An interface definition for the [FileHandle] class. type IFileHandle interface { objc.IObject + GetOffsetError(offsetInFile *int64, error unsafe.Pointer) bool + ReadInBackgroundAndNotify() + TruncateAtOffsetError(offset int64, error unsafe.Pointer) bool ReadDataToEndOfFileAndReturnError(error unsafe.Pointer) []byte - SeekToEndReturningOffsetError(offsetInFile *int64, error unsafe.Pointer) bool - ReadInBackgroundAndNotifyForModes(modes []RunLoopMode) - CloseAndReturnError(error unsafe.Pointer) bool WriteDataError(data []byte, error unsafe.Pointer) bool - TruncateAtOffsetError(offset int64, error unsafe.Pointer) bool - GetOffsetError(offsetInFile *int64, error unsafe.Pointer) bool - WaitForDataInBackgroundAndNotify() - ReadToEndOfFileInBackgroundAndNotify() + SeekToEndReturningOffsetError(offsetInFile *int64, error unsafe.Pointer) bool WaitForDataInBackgroundAndNotifyForModes(modes []RunLoopMode) - ReadInBackgroundAndNotify() - ReadToEndOfFileInBackgroundAndNotifyForModes(modes []RunLoopMode) - ReadDataUpToLengthError(length uint, error unsafe.Pointer) []byte - AcceptConnectionInBackgroundAndNotify() AcceptConnectionInBackgroundAndNotifyForModes(modes []RunLoopMode) + ReadToEndOfFileInBackgroundAndNotify() + ReadDataUpToLengthError(length uint, error unsafe.Pointer) []byte SynchronizeAndReturnError(error unsafe.Pointer) bool + CloseAndReturnError(error unsafe.Pointer) bool + ReadInBackgroundAndNotifyForModes(modes []RunLoopMode) SeekToOffsetError(offset int64, error unsafe.Pointer) bool - FileDescriptor() int AvailableData() []byte ReadabilityHandler() func(arg0 FileHandle) SetReadabilityHandler(value func(arg0 FileHandle)) WriteabilityHandler() func(arg0 FileHandle) SetWriteabilityHandler(value func(arg0 FileHandle)) + FileDescriptor() int } // An object-oriented wrapper for a file descriptor. [Full Topic] @@ -56,18 +53,40 @@ func FileHandleFrom(ptr unsafe.Pointer) FileHandle { } } -func (f_ FileHandle) InitWithFileDescriptorCloseOnDealloc(fd int, closeopt bool) FileHandle { - rv := objc.Call[FileHandle](f_, objc.Sel("initWithFileDescriptor:closeOnDealloc:"), fd, closeopt) +func (fc _FileHandleClass) FileHandleForUpdatingURLError(url IURL, error unsafe.Pointer) FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForUpdatingURL:error:"), url, error) return rv } -// Creates and returns a file handle object associated with the specified file descriptor and deallocation policy. [Full Topic] +// Returns a file handle initialized for reading and writing to the file, device, or named socket at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1408522-initwithfiledescriptor?language=objc -func NewFileHandleWithFileDescriptorCloseOnDealloc(fd int, closeopt bool) FileHandle { - instance := FileHandleClass.Alloc().InitWithFileDescriptorCloseOnDealloc(fd, closeopt) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1417026-filehandleforupdatingurl?language=objc +func FileHandle_FileHandleForUpdatingURLError(url IURL, error unsafe.Pointer) FileHandle { + return FileHandleClass.FileHandleForUpdatingURLError(url, error) +} + +func (fc _FileHandleClass) FileHandleForUpdatingAtPath(path string) FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForUpdatingAtPath:"), path) + return rv +} + +// Returns a file handle initialized for reading and writing to the file, device, or named socket at the specified path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1411131-filehandleforupdatingatpath?language=objc +func FileHandle_FileHandleForUpdatingAtPath(path string) FileHandle { + return FileHandleClass.FileHandleForUpdatingAtPath(path) +} + +func (fc _FileHandleClass) FileHandleForWritingToURLError(url IURL, error unsafe.Pointer) FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForWritingToURL:error:"), url, error) + return rv +} + +// Returns a file handle initialized for writing to the file, device, or named socket at the specified URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1416892-filehandleforwritingtourl?language=objc +func FileHandle_FileHandleForWritingToURLError(url IURL, error unsafe.Pointer) FileHandle { + return FileHandleClass.FileHandleForWritingToURLError(url, error) } func (f_ FileHandle) InitWithFileDescriptor(fd int) FileHandle { @@ -84,18 +103,6 @@ func NewFileHandleWithFileDescriptor(fd int) FileHandle { return instance } -func (fc _FileHandleClass) FileHandleForUpdatingURLError(url IURL, error unsafe.Pointer) FileHandle { - rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForUpdatingURL:error:"), url, error) - return rv -} - -// Returns a file handle initialized for reading and writing to the file, device, or named socket at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1417026-filehandleforupdatingurl?language=objc -func FileHandle_FileHandleForUpdatingURLError(url IURL, error unsafe.Pointer) FileHandle { - return FileHandleClass.FileHandleForUpdatingURLError(url, error) -} - func (fc _FileHandleClass) FileHandleForWritingAtPath(path string) FileHandle { rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForWritingAtPath:"), path) return rv @@ -120,18 +127,6 @@ func FileHandle_FileHandleForReadingAtPath(path string) FileHandle { return FileHandleClass.FileHandleForReadingAtPath(path) } -func (fc _FileHandleClass) FileHandleForUpdatingAtPath(path string) FileHandle { - rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForUpdatingAtPath:"), path) - return rv -} - -// Returns a file handle initialized for reading and writing to the file, device, or named socket at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1411131-filehandleforupdatingatpath?language=objc -func FileHandle_FileHandleForUpdatingAtPath(path string) FileHandle { - return FileHandleClass.FileHandleForUpdatingAtPath(path) -} - func (fc _FileHandleClass) FileHandleForReadingFromURLError(url IURL, error unsafe.Pointer) FileHandle { rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForReadingFromURL:error:"), url, error) return rv @@ -144,18 +139,6 @@ func FileHandle_FileHandleForReadingFromURLError(url IURL, error unsafe.Pointer) return FileHandleClass.FileHandleForReadingFromURLError(url, error) } -func (fc _FileHandleClass) FileHandleForWritingToURLError(url IURL, error unsafe.Pointer) FileHandle { - rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForWritingToURL:error:"), url, error) - return rv -} - -// Returns a file handle initialized for writing to the file, device, or named socket at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1416892-filehandleforwritingtourl?language=objc -func FileHandle_FileHandleForWritingToURLError(url IURL, error unsafe.Pointer) FileHandle { - return FileHandleClass.FileHandleForWritingToURLError(url, error) -} - func (fc _FileHandleClass) Alloc() FileHandle { rv := objc.Call[FileHandle](fc, objc.Sel("alloc")) return rv @@ -176,43 +159,19 @@ func (f_ FileHandle) Init() FileHandle { return rv } -// Reads the available data synchronously up to the end of file or maximum number of bytes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172527-readdatatoendoffileandreturnerro?language=objc -func (f_ FileHandle) ReadDataToEndOfFileAndReturnError(error unsafe.Pointer) []byte { - rv := objc.Call[[]byte](f_, objc.Sel("readDataToEndOfFileAndReturnError:"), error) - return rv -} - -// Places the file pointer at the end of the file referenced by the file handle and returns the new file offset. [Full Topic] +// Get the current position of the file pointer within the file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172529-seektoendreturningoffset?language=objc -func (f_ FileHandle) SeekToEndReturningOffsetError(offsetInFile *int64, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("seekToEndReturningOffset:error:"), offsetInFile, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172526-getoffset?language=objc +func (f_ FileHandle) GetOffsetError(offsetInFile *int64, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("getOffset:error:"), offsetInFile, error) return rv } // Reads from the file or communications channel in the background and posts a notification when finished. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1416294-readinbackgroundandnotifyformode?language=objc -func (f_ FileHandle) ReadInBackgroundAndNotifyForModes(modes []RunLoopMode) { - objc.Call[objc.Void](f_, objc.Sel("readInBackgroundAndNotifyForModes:"), modes) -} - -// Disallows further access to the represented file or communications channel and signals end of file on communications channels that permit writing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172525-closeandreturnerror?language=objc -func (f_ FileHandle) CloseAndReturnError(error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("closeAndReturnError:"), error) - return rv -} - -// Writes the specified data synchronously to the file handle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172533-writedata?language=objc -func (f_ FileHandle) WriteDataError(data []byte, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("writeData:error:"), data, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1417635-readinbackgroundandnotify?language=objc +func (f_ FileHandle) ReadInBackgroundAndNotify() { + objc.Call[objc.Void](f_, objc.Sel("readInBackgroundAndNotify")) } // Truncates or extends the file represented by the file handle to a specified offset within the file and puts the file pointer at that position. [Full Topic] @@ -223,26 +182,28 @@ func (f_ FileHandle) TruncateAtOffsetError(offset int64, error unsafe.Pointer) b return rv } -// Get the current position of the file pointer within the file. [Full Topic] +// Reads the available data synchronously up to the end of file or maximum number of bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172526-getoffset?language=objc -func (f_ FileHandle) GetOffsetError(offsetInFile *int64, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("getOffset:error:"), offsetInFile, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172527-readdatatoendoffileandreturnerro?language=objc +func (f_ FileHandle) ReadDataToEndOfFileAndReturnError(error unsafe.Pointer) []byte { + rv := objc.Call[[]byte](f_, objc.Sel("readDataToEndOfFileAndReturnError:"), error) return rv } -// Asynchronously checks to see if data is available. [Full Topic] +// Writes the specified data synchronously to the file handle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1409270-waitfordatainbackgroundandnotify?language=objc -func (f_ FileHandle) WaitForDataInBackgroundAndNotify() { - objc.Call[objc.Void](f_, objc.Sel("waitForDataInBackgroundAndNotify")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172533-writedata?language=objc +func (f_ FileHandle) WriteDataError(data []byte, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("writeData:error:"), data, error) + return rv } -// Reads to the end of file from the file or communications channel in the background and posts a notification when finished. [Full Topic] +// Places the file pointer at the end of the file referenced by the file handle and returns the new file offset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1415313-readtoendoffileinbackgroundandno?language=objc -func (f_ FileHandle) ReadToEndOfFileInBackgroundAndNotify() { - objc.Call[objc.Void](f_, objc.Sel("readToEndOfFileInBackgroundAndNotify")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172529-seektoendreturningoffset?language=objc +func (f_ FileHandle) SeekToEndReturningOffsetError(offsetInFile *int64, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("seekToEndReturningOffset:error:"), offsetInFile, error) + return rv } // Asynchronously checks to see if data is available. [Full Topic] @@ -252,18 +213,18 @@ func (f_ FileHandle) WaitForDataInBackgroundAndNotifyForModes(modes []RunLoopMod objc.Call[objc.Void](f_, objc.Sel("waitForDataInBackgroundAndNotifyForModes:"), modes) } -// Reads from the file or communications channel in the background and posts a notification when finished. [Full Topic] +// Accepts a socket connection (for stream-type sockets only) in the background and creates a file handle for the “near” (client) end of the communications channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1417635-readinbackgroundandnotify?language=objc -func (f_ FileHandle) ReadInBackgroundAndNotify() { - objc.Call[objc.Void](f_, objc.Sel("readInBackgroundAndNotify")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1412997-acceptconnectioninbackgroundandn?language=objc +func (f_ FileHandle) AcceptConnectionInBackgroundAndNotifyForModes(modes []RunLoopMode) { + objc.Call[objc.Void](f_, objc.Sel("acceptConnectionInBackgroundAndNotifyForModes:"), modes) } // Reads to the end of file from the file or communications channel in the background and posts a notification when finished. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1417321-readtoendoffileinbackgroundandno?language=objc -func (f_ FileHandle) ReadToEndOfFileInBackgroundAndNotifyForModes(modes []RunLoopMode) { - objc.Call[objc.Void](f_, objc.Sel("readToEndOfFileInBackgroundAndNotifyForModes:"), modes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1415313-readtoendoffileinbackgroundandno?language=objc +func (f_ FileHandle) ReadToEndOfFileInBackgroundAndNotify() { + objc.Call[objc.Void](f_, objc.Sel("readToEndOfFileInBackgroundAndNotify")) } // Reads data synchronously up to the specified number of bytes. [Full Topic] @@ -274,26 +235,27 @@ func (f_ FileHandle) ReadDataUpToLengthError(length uint, error unsafe.Pointer) return rv } -// Accepts a socket connection (for stream-type sockets only) in the background and creates a file handle for the “near” (client) end of the communications channel. [Full Topic] +// Causes all in-memory data and attributes of the file represented by the file handle to write to permanent storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1413309-acceptconnectioninbackgroundandn?language=objc -func (f_ FileHandle) AcceptConnectionInBackgroundAndNotify() { - objc.Call[objc.Void](f_, objc.Sel("acceptConnectionInBackgroundAndNotify")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172531-synchronizeandreturnerror?language=objc +func (f_ FileHandle) SynchronizeAndReturnError(error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("synchronizeAndReturnError:"), error) + return rv } -// Accepts a socket connection (for stream-type sockets only) in the background and creates a file handle for the “near” (client) end of the communications channel. [Full Topic] +// Disallows further access to the represented file or communications channel and signals end of file on communications channels that permit writing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1412997-acceptconnectioninbackgroundandn?language=objc -func (f_ FileHandle) AcceptConnectionInBackgroundAndNotifyForModes(modes []RunLoopMode) { - objc.Call[objc.Void](f_, objc.Sel("acceptConnectionInBackgroundAndNotifyForModes:"), modes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172525-closeandreturnerror?language=objc +func (f_ FileHandle) CloseAndReturnError(error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("closeAndReturnError:"), error) + return rv } -// Causes all in-memory data and attributes of the file represented by the file handle to write to permanent storage. [Full Topic] +// Reads from the file or communications channel in the background and posts a notification when finished. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172531-synchronizeandreturnerror?language=objc -func (f_ FileHandle) SynchronizeAndReturnError(error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("synchronizeAndReturnError:"), error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1416294-readinbackgroundandnotifyformode?language=objc +func (f_ FileHandle) ReadInBackgroundAndNotifyForModes(modes []RunLoopMode) { + objc.Call[objc.Void](f_, objc.Sel("readInBackgroundAndNotifyForModes:"), modes) } // Moves the file pointer to the specified offset within the file. [Full Topic] @@ -304,50 +266,57 @@ func (f_ FileHandle) SeekToOffsetError(offset int64, error unsafe.Pointer) bool return rv } -// The POSIX file descriptor associated with the receiver. [Full Topic] +// The file handle associated with a null device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1410326-filedescriptor?language=objc -func (f_ FileHandle) FileDescriptor() int { - rv := objc.Call[int](f_, objc.Sel("fileDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1413881-filehandlewithnulldevice?language=objc +func (fc _FileHandleClass) FileHandleWithNullDevice() FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleWithNullDevice")) return rv } -// The data currently available in the receiver. [Full Topic] +// The file handle associated with a null device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1411463-availabledata?language=objc -func (f_ FileHandle) AvailableData() []byte { - rv := objc.Call[[]byte](f_, objc.Sel("availableData")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1413881-filehandlewithnulldevice?language=objc +func FileHandle_FileHandleWithNullDevice() FileHandle { + return FileHandleClass.FileHandleWithNullDevice() } -// The file handle associated with the standard output file. [Full Topic] +// The file handle associated with the standard error file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1416965-filehandlewithstandardoutput?language=objc -func (fc _FileHandleClass) FileHandleWithStandardOutput() FileHandle { - rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleWithStandardOutput")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1411001-filehandlewithstandarderror?language=objc +func (fc _FileHandleClass) FileHandleWithStandardError() FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleWithStandardError")) return rv } -// The file handle associated with the standard output file. [Full Topic] +// The file handle associated with the standard error file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1416965-filehandlewithstandardoutput?language=objc -func FileHandle_FileHandleWithStandardOutput() FileHandle { - return FileHandleClass.FileHandleWithStandardOutput() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1411001-filehandlewithstandarderror?language=objc +func FileHandle_FileHandleWithStandardError() FileHandle { + return FileHandleClass.FileHandleWithStandardError() } -// The file handle associated with a null device. [Full Topic] +// The file handle associated with the standard input file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1413881-filehandlewithnulldevice?language=objc -func (fc _FileHandleClass) FileHandleWithNullDevice() FileHandle { - rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleWithNullDevice")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1413686-filehandlewithstandardinput?language=objc +func (fc _FileHandleClass) FileHandleWithStandardInput() FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleWithStandardInput")) return rv } -// The file handle associated with a null device. [Full Topic] +// The file handle associated with the standard input file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1413881-filehandlewithnulldevice?language=objc -func FileHandle_FileHandleWithNullDevice() FileHandle { - return FileHandleClass.FileHandleWithNullDevice() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1413686-filehandlewithstandardinput?language=objc +func FileHandle_FileHandleWithStandardInput() FileHandle { + return FileHandleClass.FileHandleWithStandardInput() +} + +// The data currently available in the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1411463-availabledata?language=objc +func (f_ FileHandle) AvailableData() []byte { + rv := objc.Call[[]byte](f_, objc.Sel("availableData")) + return rv } // The block to use for reading the contents of the file handle asynchronously. [Full Topic] @@ -365,19 +334,19 @@ func (f_ FileHandle) SetReadabilityHandler(value func(arg0 FileHandle)) { objc.Call[objc.Void](f_, objc.Sel("setReadabilityHandler:"), value) } -// The file handle associated with the standard error file. [Full Topic] +// The file handle associated with the standard output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1411001-filehandlewithstandarderror?language=objc -func (fc _FileHandleClass) FileHandleWithStandardError() FileHandle { - rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleWithStandardError")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1416965-filehandlewithstandardoutput?language=objc +func (fc _FileHandleClass) FileHandleWithStandardOutput() FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleWithStandardOutput")) return rv } -// The file handle associated with the standard error file. [Full Topic] +// The file handle associated with the standard output file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1411001-filehandlewithstandarderror?language=objc -func FileHandle_FileHandleWithStandardError() FileHandle { - return FileHandleClass.FileHandleWithStandardError() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1416965-filehandlewithstandardoutput?language=objc +func FileHandle_FileHandleWithStandardOutput() FileHandle { + return FileHandleClass.FileHandleWithStandardOutput() } // The block to use for writing the contents of the file handle asynchronously. [Full Topic] @@ -395,17 +364,10 @@ func (f_ FileHandle) SetWriteabilityHandler(value func(arg0 FileHandle)) { objc.Call[objc.Void](f_, objc.Sel("setWriteabilityHandler:"), value) } -// The file handle associated with the standard input file. [Full Topic] +// The POSIX file descriptor associated with the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1413686-filehandlewithstandardinput?language=objc -func (fc _FileHandleClass) FileHandleWithStandardInput() FileHandle { - rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleWithStandardInput")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1410326-filedescriptor?language=objc +func (f_ FileHandle) FileDescriptor() int { + rv := objc.Call[int](f_, objc.Sel("fileDescriptor")) return rv } - -// The file handle associated with the standard input file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1413686-filehandlewithstandardinput?language=objc -func FileHandle_FileHandleWithStandardInput() FileHandle { - return FileHandleClass.FileHandleWithStandardInput() -} diff --git a/macos/foundation/file_manager.gen.go b/macos/foundation/file_manager.gen.go index 3cab76ca..a26fa99e 100644 --- a/macos/foundation/file_manager.gen.go +++ b/macos/foundation/file_manager.gen.go @@ -18,62 +18,58 @@ type _FileManagerClass struct { // An interface definition for the [FileManager] class. type IFileManager interface { objc.IObject - GetRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship *URLRelationship, directory SearchPathDirectory, domainMask SearchPathDomainMask, url IURL, error unsafe.Pointer) bool - SetAttributesOfItemAtPathError(attributes map[FileAttributeKey]objc.IObject, path string, error unsafe.Pointer) bool - IsWritableFileAtPath(path string) bool RemoveItemAtPathError(path string, error unsafe.Pointer) bool - TrashItemAtURLResultingItemURLError(url IURL, outResultingURL unsafe.Pointer, error unsafe.Pointer) bool - CopyItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool - ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, error unsafe.Pointer) []URL - IsDeletableFileAtPath(path string) bool - FileExistsAtPathIsDirectory(path string, isDirectory *bool) bool - RemoveItemAtURLError(URL IURL, error unsafe.Pointer) bool - ContainerURLForSecurityApplicationGroupIdentifier(groupIdentifier string) URL - DestinationOfSymbolicLinkAtPathError(path string, error unsafe.Pointer) string - HomeDirectoryForUser(userName string) URL - FileExistsAtPath(path string) bool - EnumeratorAtPath(path string) DirectoryEnumerator - ChangeCurrentDirectoryPath(path string) bool - DisplayNameAtPath(path string) string - GetRelationshipOfDirectoryAtURLToItemAtURLError(outRelationship *URLRelationship, directoryURL IURL, otherURL IURL, error unsafe.Pointer) bool - EvictUbiquitousItemAtURLError(url IURL, error unsafe.Pointer) bool - ContentsOfDirectoryAtPathError(path string, error unsafe.Pointer) []string - CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError(path string, createIntermediates bool, attributes map[FileAttributeKey]objc.IObject, error unsafe.Pointer) bool - IsUbiquitousItemAtURL(url IURL) bool - URLForPublishingUbiquitousItemAtURLExpirationDateError(url IURL, outDate unsafe.Pointer, error unsafe.Pointer) URL - MoveItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool - CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError(url IURL, createIntermediates bool, attributes map[FileAttributeKey]objc.IObject, error unsafe.Pointer) bool IsExecutableFileAtPath(path string) bool SetUbiquitousItemAtURLDestinationURLError(flag bool, url IURL, destinationURL IURL, error unsafe.Pointer) bool - CreateSymbolicLinkAtURLWithDestinationURLError(url IURL, destURL IURL, error unsafe.Pointer) bool - AttributesOfItemAtPathError(path string, error unsafe.Pointer) map[FileAttributeKey]objc.Object - SubpathsAtPath(path string) []string - CreateSymbolicLinkAtPathWithDestinationPathError(path string, destPath string, error unsafe.Pointer) bool - URLsForDirectoryInDomains(directory SearchPathDirectory, domainMask SearchPathDomainMask) []URL - SubpathsOfDirectoryAtPathError(path string, error unsafe.Pointer) []string - IsReadableFileAtPath(path string) bool - FileSystemRepresentationWithPath(path string) *uint8 + IsUbiquitousItemAtURL(url IURL) bool URLForDirectoryInDomainAppropriateForURLCreateError(directory SearchPathDirectory, domain SearchPathDomainMask, url IURL, shouldCreate bool, error unsafe.Pointer) URL - UnmountVolumeAtURLOptionsCompletionHandler(url IURL, mask FileManagerUnmountOptions, completionHandler func(errorOrNil Error)) + CreateFileAtPathContentsAttributes(path string, data []byte, attr map[FileAttributeKey]objc.IObject) bool + EnumeratorAtPath(path string) DirectoryEnumerator + ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, error unsafe.Pointer) []URL MoveItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool - AttributesOfFileSystemForPathError(path string, error unsafe.Pointer) map[FileAttributeKey]objc.Object - StringWithFileSystemRepresentationLength(str *uint8, len uint) string - LinkItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool + CopyItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool + GetRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship *URLRelationship, directory SearchPathDirectory, domainMask SearchPathDomainMask, url IURL, error unsafe.Pointer) bool + AttributesOfItemAtPathError(path string, error unsafe.Pointer) map[FileAttributeKey]objc.Object + URLsForDirectoryInDomains(directory SearchPathDirectory, domainMask SearchPathDomainMask) []URL EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, handler func(url URL, error Error) bool) DirectoryEnumerator - LinkItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool + CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError(url IURL, createIntermediates bool, attributes map[FileAttributeKey]objc.IObject, error unsafe.Pointer) bool + LinkItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool URLForUbiquityContainerIdentifier(containerIdentifier string) URL - MountedVolumeURLsIncludingResourceValuesForKeysOptions(propertyKeys []URLResourceKey, options VolumeEnumerationOptions) []URL - ContentsEqualAtPathAndPath(path1 string, path2 string) bool - ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL IURL, newItemURL IURL, backupItemName string, options FileManagerItemReplacementOptions, resultingURL unsafe.Pointer, error unsafe.Pointer) bool + RemoveItemAtURLError(URL IURL, error unsafe.Pointer) bool + IsReadableFileAtPath(path string) bool + ContainerURLForSecurityApplicationGroupIdentifier(groupIdentifier string) URL + CopyItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool + TrashItemAtURLResultingItemURLError(url IURL, outResultingURL unsafe.Pointer, error unsafe.Pointer) bool + MoveItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool + ComponentsToDisplayForPath(path string) []string StartDownloadingUbiquitousItemAtURLError(url IURL, error unsafe.Pointer) bool + IsDeletableFileAtPath(path string) bool ContentsAtPath(path string) []byte - CopyItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool - CreateFileAtPathContentsAttributes(path string, data []byte, attr map[FileAttributeKey]objc.IObject) bool + EvictUbiquitousItemAtURLError(url IURL, error unsafe.Pointer) bool + CreateSymbolicLinkAtURLWithDestinationURLError(url IURL, destURL IURL, error unsafe.Pointer) bool + ChangeCurrentDirectoryPath(path string) bool + FileSystemRepresentationWithPath(path string) *uint8 + MountedVolumeURLsIncludingResourceValuesForKeysOptions(propertyKeys []URLResourceKey, options VolumeEnumerationOptions) []URL + StringWithFileSystemRepresentationLength(str *uint8, len uint) string + UnmountVolumeAtURLOptionsCompletionHandler(url IURL, mask FileManagerUnmountOptions, completionHandler func(errorOrNil Error)) + LinkItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool + IsWritableFileAtPath(path string) bool + AttributesOfFileSystemForPathError(path string, error unsafe.Pointer) map[FileAttributeKey]objc.Object + DisplayNameAtPath(path string) string + FileExistsAtPath(path string) bool + SetAttributesOfItemAtPathError(attributes map[FileAttributeKey]objc.IObject, path string, error unsafe.Pointer) bool GetFileProviderServicesForItemAtURLCompletionHandler(url IURL, completionHandler func(services map[FileProviderServiceName]FileProviderService, error Error)) - ComponentsToDisplayForPath(path string) []string - TemporaryDirectory() URL + ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL IURL, newItemURL IURL, backupItemName string, options FileManagerItemReplacementOptions, resultingURL unsafe.Pointer, error unsafe.Pointer) bool + ContentsOfDirectoryAtPathError(path string, error unsafe.Pointer) []string + SubpathsAtPath(path string) []string + DestinationOfSymbolicLinkAtPathError(path string, error unsafe.Pointer) string + SubpathsOfDirectoryAtPathError(path string, error unsafe.Pointer) []string + HomeDirectoryForUser(userName string) URL + URLForPublishingUbiquitousItemAtURLExpirationDateError(url IURL, outDate unsafe.Pointer, error unsafe.Pointer) URL + ContentsEqualAtPathAndPath(path1 string, path2 string) bool HomeDirectoryForCurrentUser() URL CurrentDirectoryPath() string + TemporaryDirectory() URL Delegate() FileManagerDelegateObject SetDelegate(value PFileManagerDelegate) SetDelegateObject(valueObject objc.IObject) @@ -125,30 +121,6 @@ func (f_ FileManager) Init() FileManager { return rv } -// Determines the type of relationship that exists between a system directory and the specified item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411439-getrelationship?language=objc -func (f_ FileManager) GetRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship *URLRelationship, directory SearchPathDirectory, domainMask SearchPathDomainMask, url IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"), outRelationship, directory, domainMask, url, error) - return rv -} - -// Sets the attributes of the specified file or directory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413667-setattributes?language=objc -func (f_ FileManager) SetAttributesOfItemAtPathError(attributes map[FileAttributeKey]objc.IObject, path string, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("setAttributes:ofItemAtPath:error:"), attributes, path, error) - return rv -} - -// Returns a Boolean value that indicates whether the invoking object appears able to write to a specified file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1416680-iswritablefileatpath?language=objc -func (f_ FileManager) IsWritableFileAtPath(path string) bool { - rv := objc.Call[bool](f_, objc.Sel("isWritableFileAtPath:"), path) - return rv -} - // Removes the file or directory at the specified path. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1408573-removeitematpath?language=objc @@ -157,243 +129,235 @@ func (f_ FileManager) RemoveItemAtPathError(path string, error unsafe.Pointer) b return rv } -// Moves an item to the trash. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414306-trashitematurl?language=objc -func (f_ FileManager) TrashItemAtURLResultingItemURLError(url IURL, outResultingURL unsafe.Pointer, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("trashItemAtURL:resultingItemURL:error:"), url, outResultingURL, error) - return rv -} - -// Copies the file at the specified URL to a new location synchronously. [Full Topic] +// Returns a Boolean value that indicates whether the operating system appears able to execute a specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1412957-copyitematurl?language=objc -func (f_ FileManager) CopyItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("copyItemAtURL:toURL:error:"), srcURL, dstURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414159-isexecutablefileatpath?language=objc +func (f_ FileManager) IsExecutableFileAtPath(path string) bool { + rv := objc.Call[bool](f_, objc.Sel("isExecutableFileAtPath:"), path) return rv } -// Performs a shallow search of the specified directory and returns URLs for the contained items. [Full Topic] +// Indicates whether the item at the specified URL should be stored in iCloud. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413768-contentsofdirectoryaturl?language=objc -func (f_ FileManager) ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, error unsafe.Pointer) []URL { - rv := objc.Call[[]URL](f_, objc.Sel("contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:"), url, keys, mask, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413989-setubiquitous?language=objc +func (f_ FileManager) SetUbiquitousItemAtURLDestinationURLError(flag bool, url IURL, destinationURL IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("setUbiquitous:itemAtURL:destinationURL:error:"), flag, url, destinationURL, error) return rv } -// Returns a Boolean value that indicates whether the invoking object appears able to delete a specified file. [Full Topic] +// Returns a Boolean indicating whether the item is targeted for storage in iCloud. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1408087-isdeletablefileatpath?language=objc -func (f_ FileManager) IsDeletableFileAtPath(path string) bool { - rv := objc.Call[bool](f_, objc.Sel("isDeletableFileAtPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410218-isubiquitousitematurl?language=objc +func (f_ FileManager) IsUbiquitousItemAtURL(url IURL) bool { + rv := objc.Call[bool](f_, objc.Sel("isUbiquitousItemAtURL:"), url) return rv } -// Returns a Boolean value that indicates whether a file or directory exists at a specified path. [Full Topic] +// Locates and optionally creates the specified common directory in a domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410277-fileexistsatpath?language=objc -func (f_ FileManager) FileExistsAtPathIsDirectory(path string, isDirectory *bool) bool { - rv := objc.Call[bool](f_, objc.Sel("fileExistsAtPath:isDirectory:"), path, isDirectory) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407693-urlfordirectory?language=objc +func (f_ FileManager) URLForDirectoryInDomainAppropriateForURLCreateError(directory SearchPathDirectory, domain SearchPathDomainMask, url IURL, shouldCreate bool, error unsafe.Pointer) URL { + rv := objc.Call[URL](f_, objc.Sel("URLForDirectory:inDomain:appropriateForURL:create:error:"), directory, domain, url, shouldCreate, error) return rv } -// Removes the file or directory at the specified URL. [Full Topic] +// Creates a file with the specified content and attributes at the given location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413590-removeitematurl?language=objc -func (f_ FileManager) RemoveItemAtURLError(URL IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("removeItemAtURL:error:"), URL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410695-createfileatpath?language=objc +func (f_ FileManager) CreateFileAtPathContentsAttributes(path string, data []byte, attr map[FileAttributeKey]objc.IObject) bool { + rv := objc.Call[bool](f_, objc.Sel("createFileAtPath:contents:attributes:"), path, data, attr) return rv } -// Returns the container directory associated with the specified security application group identifier. [Full Topic] +// Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1412643-containerurlforsecurityapplicati?language=objc -func (f_ FileManager) ContainerURLForSecurityApplicationGroupIdentifier(groupIdentifier string) URL { - rv := objc.Call[URL](f_, objc.Sel("containerURLForSecurityApplicationGroupIdentifier:"), groupIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1408726-enumeratoratpath?language=objc +func (f_ FileManager) EnumeratorAtPath(path string) DirectoryEnumerator { + rv := objc.Call[DirectoryEnumerator](f_, objc.Sel("enumeratorAtPath:"), path) return rv } -// Returns the path of the item pointed to by a symbolic link. [Full Topic] +// Performs a shallow search of the specified directory and returns URLs for the contained items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1415161-destinationofsymboliclinkatpath?language=objc -func (f_ FileManager) DestinationOfSymbolicLinkAtPathError(path string, error unsafe.Pointer) string { - rv := objc.Call[string](f_, objc.Sel("destinationOfSymbolicLinkAtPath:error:"), path, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413768-contentsofdirectoryaturl?language=objc +func (f_ FileManager) ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, error unsafe.Pointer) []URL { + rv := objc.Call[[]URL](f_, objc.Sel("contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:"), url, keys, mask, error) return rv } -// Returns the home directory for the specified user. [Full Topic] +// Moves the file or directory at the specified path to a new location synchronously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1642853-homedirectoryforuser?language=objc -func (f_ FileManager) HomeDirectoryForUser(userName string) URL { - rv := objc.Call[URL](f_, objc.Sel("homeDirectoryForUser:"), userName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413529-moveitematpath?language=objc +func (f_ FileManager) MoveItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("moveItemAtPath:toPath:error:"), srcPath, dstPath, error) return rv } -// Returns a Boolean value that indicates whether a file or directory exists at a specified path. [Full Topic] +// Copies the item at the specified path to a new location synchronously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1415645-fileexistsatpath?language=objc -func (f_ FileManager) FileExistsAtPath(path string) bool { - rv := objc.Call[bool](f_, objc.Sel("fileExistsAtPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407903-copyitematpath?language=objc +func (f_ FileManager) CopyItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("copyItemAtPath:toPath:error:"), srcPath, dstPath, error) return rv } -// Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified path. [Full Topic] +// Determines the type of relationship that exists between a system directory and the specified item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1408726-enumeratoratpath?language=objc -func (f_ FileManager) EnumeratorAtPath(path string) DirectoryEnumerator { - rv := objc.Call[DirectoryEnumerator](f_, objc.Sel("enumeratorAtPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411439-getrelationship?language=objc +func (f_ FileManager) GetRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship *URLRelationship, directory SearchPathDirectory, domainMask SearchPathDomainMask, url IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"), outRelationship, directory, domainMask, url, error) return rv } -// Changes the path of the current working directory to the specified path. [Full Topic] +// Returns the attributes of the item at a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1412020-changecurrentdirectorypath?language=objc -func (f_ FileManager) ChangeCurrentDirectoryPath(path string) bool { - rv := objc.Call[bool](f_, objc.Sel("changeCurrentDirectoryPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410452-attributesofitematpath?language=objc +func (f_ FileManager) AttributesOfItemAtPathError(path string, error unsafe.Pointer) map[FileAttributeKey]objc.Object { + rv := objc.Call[map[FileAttributeKey]objc.Object](f_, objc.Sel("attributesOfItemAtPath:error:"), path, error) return rv } -// Returns the display name of the file or directory at a specified path. [Full Topic] +// Returns an array of URLs for the specified common directory in the requested domains. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409751-displaynameatpath?language=objc -func (f_ FileManager) DisplayNameAtPath(path string) string { - rv := objc.Call[string](f_, objc.Sel("displayNameAtPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407726-urlsfordirectory?language=objc +func (f_ FileManager) URLsForDirectoryInDomains(directory SearchPathDirectory, domainMask SearchPathDomainMask) []URL { + rv := objc.Call[[]URL](f_, objc.Sel("URLsForDirectory:inDomains:"), directory, domainMask) return rv } -// Determines the type of relationship that exists between a directory and an item. [Full Topic] +// Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407229-getrelationship?language=objc -func (f_ FileManager) GetRelationshipOfDirectoryAtURLToItemAtURLError(outRelationship *URLRelationship, directoryURL IURL, otherURL IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("getRelationship:ofDirectoryAtURL:toItemAtURL:error:"), outRelationship, directoryURL, otherURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409571-enumeratoraturl?language=objc +func (f_ FileManager) EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, handler func(url URL, error Error) bool) DirectoryEnumerator { + rv := objc.Call[DirectoryEnumerator](f_, objc.Sel("enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:"), url, keys, mask, handler) return rv } -// Removes the local copy of the specified item that’s stored in iCloud. [Full Topic] +// Creates a directory with the given attributes at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409696-evictubiquitousitematurl?language=objc -func (f_ FileManager) EvictUbiquitousItemAtURLError(url IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("evictUbiquitousItemAtURL:error:"), url, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1415371-createdirectoryaturl?language=objc +func (f_ FileManager) CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError(url IURL, createIntermediates bool, attributes map[FileAttributeKey]objc.IObject, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("createDirectoryAtURL:withIntermediateDirectories:attributes:error:"), url, createIntermediates, attributes, error) return rv } -// Performs a shallow search of the specified directory and returns the paths of any contained items. [Full Topic] +// Creates a hard link between the items at the specified paths. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414584-contentsofdirectoryatpath?language=objc -func (f_ FileManager) ContentsOfDirectoryAtPathError(path string, error unsafe.Pointer) []string { - rv := objc.Call[[]string](f_, objc.Sel("contentsOfDirectoryAtPath:error:"), path, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411206-linkitematpath?language=objc +func (f_ FileManager) LinkItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("linkItemAtPath:toPath:error:"), srcPath, dstPath, error) return rv } -// Creates a directory with given attributes at the specified path. [Full Topic] +// Returns the URL for the iCloud container associated with the specified identifier and establishes access to that container. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407884-createdirectoryatpath?language=objc -func (f_ FileManager) CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError(path string, createIntermediates bool, attributes map[FileAttributeKey]objc.IObject, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("createDirectoryAtPath:withIntermediateDirectories:attributes:error:"), path, createIntermediates, attributes, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411653-urlforubiquitycontaineridentifie?language=objc +func (f_ FileManager) URLForUbiquityContainerIdentifier(containerIdentifier string) URL { + rv := objc.Call[URL](f_, objc.Sel("URLForUbiquityContainerIdentifier:"), containerIdentifier) return rv } -// Returns a Boolean indicating whether the item is targeted for storage in iCloud. [Full Topic] +// Removes the file or directory at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410218-isubiquitousitematurl?language=objc -func (f_ FileManager) IsUbiquitousItemAtURL(url IURL) bool { - rv := objc.Call[bool](f_, objc.Sel("isUbiquitousItemAtURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413590-removeitematurl?language=objc +func (f_ FileManager) RemoveItemAtURLError(URL IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("removeItemAtURL:error:"), URL, error) return rv } -// Returns a URL that can be emailed to users to allow them to download a copy of a flat file item from iCloud. [Full Topic] +// Returns a Boolean value that indicates whether the invoking object appears able to read a specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411577-urlforpublishingubiquitousitemat?language=objc -func (f_ FileManager) URLForPublishingUbiquitousItemAtURLExpirationDateError(url IURL, outDate unsafe.Pointer, error unsafe.Pointer) URL { - rv := objc.Call[URL](f_, objc.Sel("URLForPublishingUbiquitousItemAtURL:expirationDate:error:"), url, outDate, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1418292-isreadablefileatpath?language=objc +func (f_ FileManager) IsReadableFileAtPath(path string) bool { + rv := objc.Call[bool](f_, objc.Sel("isReadableFileAtPath:"), path) return rv } -// Moves the file or directory at the specified URL to a new location synchronously. [Full Topic] +// Returns the container directory associated with the specified security application group identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414750-moveitematurl?language=objc -func (f_ FileManager) MoveItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("moveItemAtURL:toURL:error:"), srcURL, dstURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1412643-containerurlforsecurityapplicati?language=objc +func (f_ FileManager) ContainerURLForSecurityApplicationGroupIdentifier(groupIdentifier string) URL { + rv := objc.Call[URL](f_, objc.Sel("containerURLForSecurityApplicationGroupIdentifier:"), groupIdentifier) return rv } -// Creates a directory with the given attributes at the specified URL. [Full Topic] +// Copies the file at the specified URL to a new location synchronously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1415371-createdirectoryaturl?language=objc -func (f_ FileManager) CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError(url IURL, createIntermediates bool, attributes map[FileAttributeKey]objc.IObject, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("createDirectoryAtURL:withIntermediateDirectories:attributes:error:"), url, createIntermediates, attributes, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1412957-copyitematurl?language=objc +func (f_ FileManager) CopyItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("copyItemAtURL:toURL:error:"), srcURL, dstURL, error) return rv } -// Returns a Boolean value that indicates whether the operating system appears able to execute a specified file. [Full Topic] +// Moves an item to the trash. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414159-isexecutablefileatpath?language=objc -func (f_ FileManager) IsExecutableFileAtPath(path string) bool { - rv := objc.Call[bool](f_, objc.Sel("isExecutableFileAtPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414306-trashitematurl?language=objc +func (f_ FileManager) TrashItemAtURLResultingItemURLError(url IURL, outResultingURL unsafe.Pointer, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("trashItemAtURL:resultingItemURL:error:"), url, outResultingURL, error) return rv } -// Indicates whether the item at the specified URL should be stored in iCloud. [Full Topic] +// Moves the file or directory at the specified URL to a new location synchronously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413989-setubiquitous?language=objc -func (f_ FileManager) SetUbiquitousItemAtURLDestinationURLError(flag bool, url IURL, destinationURL IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("setUbiquitous:itemAtURL:destinationURL:error:"), flag, url, destinationURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414750-moveitematurl?language=objc +func (f_ FileManager) MoveItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("moveItemAtURL:toURL:error:"), srcURL, dstURL, error) return rv } -// Creates a symbolic link at the specified URL that points to an item at the given URL. [Full Topic] +// Returns an array of strings representing the user-visible components of a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414652-createsymboliclinkaturl?language=objc -func (f_ FileManager) CreateSymbolicLinkAtURLWithDestinationURLError(url IURL, destURL IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("createSymbolicLinkAtURL:withDestinationURL:error:"), url, destURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413929-componentstodisplayforpath?language=objc +func (f_ FileManager) ComponentsToDisplayForPath(path string) []string { + rv := objc.Call[[]string](f_, objc.Sel("componentsToDisplayForPath:"), path) return rv } -// Returns the attributes of the item at a given path. [Full Topic] +// Starts downloading (if necessary) the specified item to the local system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410452-attributesofitematpath?language=objc -func (f_ FileManager) AttributesOfItemAtPathError(path string, error unsafe.Pointer) map[FileAttributeKey]objc.Object { - rv := objc.Call[map[FileAttributeKey]objc.Object](f_, objc.Sel("attributesOfItemAtPath:error:"), path, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410377-startdownloadingubiquitousitemat?language=objc +func (f_ FileManager) StartDownloadingUbiquitousItemAtURLError(url IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("startDownloadingUbiquitousItemAtURL:error:"), url, error) return rv } -// Returns an array of strings identifying the paths for all items in the specified directory. [Full Topic] +// Returns a Boolean value that indicates whether the invoking object appears able to delete a specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413742-subpathsatpath?language=objc -func (f_ FileManager) SubpathsAtPath(path string) []string { - rv := objc.Call[[]string](f_, objc.Sel("subpathsAtPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1408087-isdeletablefileatpath?language=objc +func (f_ FileManager) IsDeletableFileAtPath(path string) bool { + rv := objc.Call[bool](f_, objc.Sel("isDeletableFileAtPath:"), path) return rv } -// Creates a symbolic link that points to the specified destination. [Full Topic] +// Returns the contents of the file at the specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411007-createsymboliclinkatpath?language=objc -func (f_ FileManager) CreateSymbolicLinkAtPathWithDestinationPathError(path string, destPath string, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("createSymbolicLinkAtPath:withDestinationPath:error:"), path, destPath, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407347-contentsatpath?language=objc +func (f_ FileManager) ContentsAtPath(path string) []byte { + rv := objc.Call[[]byte](f_, objc.Sel("contentsAtPath:"), path) return rv } -// Returns an array of URLs for the specified common directory in the requested domains. [Full Topic] +// Removes the local copy of the specified item that’s stored in iCloud. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407726-urlsfordirectory?language=objc -func (f_ FileManager) URLsForDirectoryInDomains(directory SearchPathDirectory, domainMask SearchPathDomainMask) []URL { - rv := objc.Call[[]URL](f_, objc.Sel("URLsForDirectory:inDomains:"), directory, domainMask) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409696-evictubiquitousitematurl?language=objc +func (f_ FileManager) EvictUbiquitousItemAtURLError(url IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("evictUbiquitousItemAtURL:error:"), url, error) return rv } -// Performs a deep enumeration of the specified directory and returns the paths of all of the contained subdirectories. [Full Topic] +// Creates a symbolic link at the specified URL that points to an item at the given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1417353-subpathsofdirectoryatpath?language=objc -func (f_ FileManager) SubpathsOfDirectoryAtPathError(path string, error unsafe.Pointer) []string { - rv := objc.Call[[]string](f_, objc.Sel("subpathsOfDirectoryAtPath:error:"), path, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414652-createsymboliclinkaturl?language=objc +func (f_ FileManager) CreateSymbolicLinkAtURLWithDestinationURLError(url IURL, destURL IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("createSymbolicLinkAtURL:withDestinationURL:error:"), url, destURL, error) return rv } -// Returns a Boolean value that indicates whether the invoking object appears able to read a specified file. [Full Topic] +// Changes the path of the current working directory to the specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1418292-isreadablefileatpath?language=objc -func (f_ FileManager) IsReadableFileAtPath(path string) bool { - rv := objc.Call[bool](f_, objc.Sel("isReadableFileAtPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1412020-changecurrentdirectorypath?language=objc +func (f_ FileManager) ChangeCurrentDirectoryPath(path string) bool { + rv := objc.Call[bool](f_, objc.Sel("changeCurrentDirectoryPath:"), path) return rv } @@ -405,91 +369,82 @@ func (f_ FileManager) FileSystemRepresentationWithPath(path string) *uint8 { return rv } -// Locates and optionally creates the specified common directory in a domain. [Full Topic] +// Returns an array of URLs that identify the mounted volumes available on the device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407693-urlfordirectory?language=objc -func (f_ FileManager) URLForDirectoryInDomainAppropriateForURLCreateError(directory SearchPathDirectory, domain SearchPathDomainMask, url IURL, shouldCreate bool, error unsafe.Pointer) URL { - rv := objc.Call[URL](f_, objc.Sel("URLForDirectory:inDomain:appropriateForURL:create:error:"), directory, domain, url, shouldCreate, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409626-mountedvolumeurlsincludingresour?language=objc +func (f_ FileManager) MountedVolumeURLsIncludingResourceValuesForKeysOptions(propertyKeys []URLResourceKey, options VolumeEnumerationOptions) []URL { + rv := objc.Call[[]URL](f_, objc.Sel("mountedVolumeURLsIncludingResourceValuesForKeys:options:"), propertyKeys, options) return rv } -// Starts the process of unmounting the specified volume. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409917-unmountvolumeaturl?language=objc -func (f_ FileManager) UnmountVolumeAtURLOptionsCompletionHandler(url IURL, mask FileManagerUnmountOptions, completionHandler func(errorOrNil Error)) { - objc.Call[objc.Void](f_, objc.Sel("unmountVolumeAtURL:options:completionHandler:"), url, mask, completionHandler) -} - -// Moves the file or directory at the specified path to a new location synchronously. [Full Topic] +// Returns an NSString object whose contents are derived from the specified C-string path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413529-moveitematpath?language=objc -func (f_ FileManager) MoveItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("moveItemAtPath:toPath:error:"), srcPath, dstPath, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409640-stringwithfilesystemrepresentati?language=objc +func (f_ FileManager) StringWithFileSystemRepresentationLength(str *uint8, len uint) string { + rv := objc.Call[string](f_, objc.Sel("stringWithFileSystemRepresentation:length:"), str, len) return rv } -// Returns a dictionary that describes the attributes of the mounted file system on which a given path resides. [Full Topic] +// Starts the process of unmounting the specified volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411896-attributesoffilesystemforpath?language=objc -func (f_ FileManager) AttributesOfFileSystemForPathError(path string, error unsafe.Pointer) map[FileAttributeKey]objc.Object { - rv := objc.Call[map[FileAttributeKey]objc.Object](f_, objc.Sel("attributesOfFileSystemForPath:error:"), path, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409917-unmountvolumeaturl?language=objc +func (f_ FileManager) UnmountVolumeAtURLOptionsCompletionHandler(url IURL, mask FileManagerUnmountOptions, completionHandler func(errorOrNil Error)) { + objc.Call[objc.Void](f_, objc.Sel("unmountVolumeAtURL:options:completionHandler:"), url, mask, completionHandler) } -// Returns an NSString object whose contents are derived from the specified C-string path. [Full Topic] +// Creates a hard link between the items at the specified URLs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409640-stringwithfilesystemrepresentati?language=objc -func (f_ FileManager) StringWithFileSystemRepresentationLength(str *uint8, len uint) string { - rv := objc.Call[string](f_, objc.Sel("stringWithFileSystemRepresentation:length:"), str, len) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414456-linkitematurl?language=objc +func (f_ FileManager) LinkItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("linkItemAtURL:toURL:error:"), srcURL, dstURL, error) return rv } -// Creates a hard link between the items at the specified paths. [Full Topic] +// Returns a Boolean value that indicates whether the invoking object appears able to write to a specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411206-linkitematpath?language=objc -func (f_ FileManager) LinkItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("linkItemAtPath:toPath:error:"), srcPath, dstPath, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1416680-iswritablefileatpath?language=objc +func (f_ FileManager) IsWritableFileAtPath(path string) bool { + rv := objc.Call[bool](f_, objc.Sel("isWritableFileAtPath:"), path) return rv } -// Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified URL. [Full Topic] +// Returns a dictionary that describes the attributes of the mounted file system on which a given path resides. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409571-enumeratoraturl?language=objc -func (f_ FileManager) EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, handler func(url URL, error Error) bool) DirectoryEnumerator { - rv := objc.Call[DirectoryEnumerator](f_, objc.Sel("enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:"), url, keys, mask, handler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411896-attributesoffilesystemforpath?language=objc +func (f_ FileManager) AttributesOfFileSystemForPathError(path string, error unsafe.Pointer) map[FileAttributeKey]objc.Object { + rv := objc.Call[map[FileAttributeKey]objc.Object](f_, objc.Sel("attributesOfFileSystemForPath:error:"), path, error) return rv } -// Creates a hard link between the items at the specified URLs. [Full Topic] +// Returns the display name of the file or directory at a specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414456-linkitematurl?language=objc -func (f_ FileManager) LinkItemAtURLToURLError(srcURL IURL, dstURL IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("linkItemAtURL:toURL:error:"), srcURL, dstURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409751-displaynameatpath?language=objc +func (f_ FileManager) DisplayNameAtPath(path string) string { + rv := objc.Call[string](f_, objc.Sel("displayNameAtPath:"), path) return rv } -// Returns the URL for the iCloud container associated with the specified identifier and establishes access to that container. [Full Topic] +// Returns a Boolean value that indicates whether a file or directory exists at a specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411653-urlforubiquitycontaineridentifie?language=objc -func (f_ FileManager) URLForUbiquityContainerIdentifier(containerIdentifier string) URL { - rv := objc.Call[URL](f_, objc.Sel("URLForUbiquityContainerIdentifier:"), containerIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1415645-fileexistsatpath?language=objc +func (f_ FileManager) FileExistsAtPath(path string) bool { + rv := objc.Call[bool](f_, objc.Sel("fileExistsAtPath:"), path) return rv } -// Returns an array of URLs that identify the mounted volumes available on the device. [Full Topic] +// Sets the attributes of the specified file or directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409626-mountedvolumeurlsincludingresour?language=objc -func (f_ FileManager) MountedVolumeURLsIncludingResourceValuesForKeysOptions(propertyKeys []URLResourceKey, options VolumeEnumerationOptions) []URL { - rv := objc.Call[[]URL](f_, objc.Sel("mountedVolumeURLsIncludingResourceValuesForKeys:options:"), propertyKeys, options) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413667-setattributes?language=objc +func (f_ FileManager) SetAttributesOfItemAtPathError(attributes map[FileAttributeKey]objc.IObject, path string, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("setAttributes:ofItemAtPath:error:"), attributes, path, error) return rv } -// Returns a Boolean value that indicates whether the files or directories in specified paths have the same contents. [Full Topic] +// Returns the services provided by the File Provider extension that manages the item at the given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1415275-contentsequalatpath?language=objc -func (f_ FileManager) ContentsEqualAtPathAndPath(path1 string, path2 string) bool { - rv := objc.Call[bool](f_, objc.Sel("contentsEqualAtPath:andPath:"), path1, path2) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/2915262-getfileproviderservicesforitemat?language=objc +func (f_ FileManager) GetFileProviderServicesForItemAtURLCompletionHandler(url IURL, completionHandler func(services map[FileProviderServiceName]FileProviderService, error Error)) { + objc.Call[objc.Void](f_, objc.Sel("getFileProviderServicesForItemAtURL:completionHandler:"), url, completionHandler) } // Replaces the contents of the item at the specified URL in a manner that ensures no data loss occurs. [Full Topic] @@ -500,76 +455,62 @@ func (f_ FileManager) ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultin return rv } -// Starts downloading (if necessary) the specified item to the local system. [Full Topic] +// Performs a shallow search of the specified directory and returns the paths of any contained items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410377-startdownloadingubiquitousitemat?language=objc -func (f_ FileManager) StartDownloadingUbiquitousItemAtURLError(url IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("startDownloadingUbiquitousItemAtURL:error:"), url, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414584-contentsofdirectoryatpath?language=objc +func (f_ FileManager) ContentsOfDirectoryAtPathError(path string, error unsafe.Pointer) []string { + rv := objc.Call[[]string](f_, objc.Sel("contentsOfDirectoryAtPath:error:"), path, error) return rv } -// Returns the contents of the file at the specified path. [Full Topic] +// Returns an array of strings identifying the paths for all items in the specified directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407347-contentsatpath?language=objc -func (f_ FileManager) ContentsAtPath(path string) []byte { - rv := objc.Call[[]byte](f_, objc.Sel("contentsAtPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413742-subpathsatpath?language=objc +func (f_ FileManager) SubpathsAtPath(path string) []string { + rv := objc.Call[[]string](f_, objc.Sel("subpathsAtPath:"), path) return rv } -// Copies the item at the specified path to a new location synchronously. [Full Topic] +// Returns the path of the item pointed to by a symbolic link. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407903-copyitematpath?language=objc -func (f_ FileManager) CopyItemAtPathToPathError(srcPath string, dstPath string, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("copyItemAtPath:toPath:error:"), srcPath, dstPath, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1415161-destinationofsymboliclinkatpath?language=objc +func (f_ FileManager) DestinationOfSymbolicLinkAtPathError(path string, error unsafe.Pointer) string { + rv := objc.Call[string](f_, objc.Sel("destinationOfSymbolicLinkAtPath:error:"), path, error) return rv } -// Creates a file with the specified content and attributes at the given location. [Full Topic] +// Performs a deep enumeration of the specified directory and returns the paths of all of the contained subdirectories. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410695-createfileatpath?language=objc -func (f_ FileManager) CreateFileAtPathContentsAttributes(path string, data []byte, attr map[FileAttributeKey]objc.IObject) bool { - rv := objc.Call[bool](f_, objc.Sel("createFileAtPath:contents:attributes:"), path, data, attr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1417353-subpathsofdirectoryatpath?language=objc +func (f_ FileManager) SubpathsOfDirectoryAtPathError(path string, error unsafe.Pointer) []string { + rv := objc.Call[[]string](f_, objc.Sel("subpathsOfDirectoryAtPath:error:"), path, error) return rv } -// Returns the services provided by the File Provider extension that manages the item at the given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/2915262-getfileproviderservicesforitemat?language=objc -func (f_ FileManager) GetFileProviderServicesForItemAtURLCompletionHandler(url IURL, completionHandler func(services map[FileProviderServiceName]FileProviderService, error Error)) { - objc.Call[objc.Void](f_, objc.Sel("getFileProviderServicesForItemAtURL:completionHandler:"), url, completionHandler) -} - -// Returns an array of strings representing the user-visible components of a given path. [Full Topic] +// Returns the home directory for the specified user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413929-componentstodisplayforpath?language=objc -func (f_ FileManager) ComponentsToDisplayForPath(path string) []string { - rv := objc.Call[[]string](f_, objc.Sel("componentsToDisplayForPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1642853-homedirectoryforuser?language=objc +func (f_ FileManager) HomeDirectoryForUser(userName string) URL { + rv := objc.Call[URL](f_, objc.Sel("homeDirectoryForUser:"), userName) return rv } -// The temporary directory for the current user. [Full Topic] +// Returns a URL that can be emailed to users to allow them to download a copy of a flat file item from iCloud. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1642996-temporarydirectory?language=objc -func (f_ FileManager) TemporaryDirectory() URL { - rv := objc.Call[URL](f_, objc.Sel("temporaryDirectory")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411577-urlforpublishingubiquitousitemat?language=objc +func (f_ FileManager) URLForPublishingUbiquitousItemAtURLExpirationDateError(url IURL, outDate unsafe.Pointer, error unsafe.Pointer) URL { + rv := objc.Call[URL](f_, objc.Sel("URLForPublishingUbiquitousItemAtURL:expirationDate:error:"), url, outDate, error) return rv } -// The shared file manager object for the process. [Full Topic] +// Returns a Boolean value that indicates whether the files or directories in specified paths have the same contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409234-defaultmanager?language=objc -func (fc _FileManagerClass) DefaultManager() FileManager { - rv := objc.Call[FileManager](fc, objc.Sel("defaultManager")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1415275-contentsequalatpath?language=objc +func (f_ FileManager) ContentsEqualAtPathAndPath(path1 string, path2 string) bool { + rv := objc.Call[bool](f_, objc.Sel("contentsEqualAtPath:andPath:"), path1, path2) return rv } -// The shared file manager object for the process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409234-defaultmanager?language=objc -func FileManager_DefaultManager() FileManager { - return FileManagerClass.DefaultManager() -} - // The home directory for the current user. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1642807-homedirectoryforcurrentuser?language=objc @@ -586,6 +527,14 @@ func (f_ FileManager) CurrentDirectoryPath() string { return rv } +// The temporary directory for the current user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1642996-temporarydirectory?language=objc +func (f_ FileManager) TemporaryDirectory() URL { + rv := objc.Call[URL](f_, objc.Sel("temporaryDirectory")) + return rv +} + // The delegate of the file manager object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1415163-delegate?language=objc @@ -616,3 +565,18 @@ func (f_ FileManager) UbiquityIdentityToken() objc.Object { rv := objc.Call[objc.Object](f_, objc.Sel("ubiquityIdentityToken")) return rv } + +// The shared file manager object for the process. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409234-defaultmanager?language=objc +func (fc _FileManagerClass) DefaultManager() FileManager { + rv := objc.Call[FileManager](fc, objc.Sel("defaultManager")) + return rv +} + +// The shared file manager object for the process. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409234-defaultmanager?language=objc +func FileManager_DefaultManager() FileManager { + return FileManagerClass.DefaultManager() +} diff --git a/macos/foundation/file_manager_delegate.gen.go b/macos/foundation/file_manager_delegate.gen.go index 0c803704..c183877d 100644 --- a/macos/foundation/file_manager_delegate.gen.go +++ b/macos/foundation/file_manager_delegate.gen.go @@ -10,66 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate?language=objc type PFileManagerDelegate interface { - // optional - FileManagerShouldProceedAfterErrorCopyingItemAtPathToPath(fileManager FileManager, error Error, srcPath string, dstPath string) bool - HasFileManagerShouldProceedAfterErrorCopyingItemAtPathToPath() bool - - // optional - FileManagerShouldMoveItemAtPathToPath(fileManager FileManager, srcPath string, dstPath string) bool - HasFileManagerShouldMoveItemAtPathToPath() bool - - // optional - FileManagerShouldProceedAfterErrorMovingItemAtURLToURL(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool - HasFileManagerShouldProceedAfterErrorMovingItemAtURLToURL() bool - - // optional - FileManagerShouldProceedAfterErrorCopyingItemAtURLToURL(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool - HasFileManagerShouldProceedAfterErrorCopyingItemAtURLToURL() bool - - // optional - FileManagerShouldProceedAfterErrorLinkingItemAtPathToPath(fileManager FileManager, error Error, srcPath string, dstPath string) bool - HasFileManagerShouldProceedAfterErrorLinkingItemAtPathToPath() bool - - // optional - FileManagerShouldMoveItemAtURLToURL(fileManager FileManager, srcURL URL, dstURL URL) bool - HasFileManagerShouldMoveItemAtURLToURL() bool - - // optional - FileManagerShouldProceedAfterErrorLinkingItemAtURLToURL(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool - HasFileManagerShouldProceedAfterErrorLinkingItemAtURLToURL() bool - - // optional - FileManagerShouldLinkItemAtPathToPath(fileManager FileManager, srcPath string, dstPath string) bool - HasFileManagerShouldLinkItemAtPathToPath() bool - - // optional - FileManagerShouldProceedAfterErrorRemovingItemAtPath(fileManager FileManager, error Error, path string) bool - HasFileManagerShouldProceedAfterErrorRemovingItemAtPath() bool - - // optional - FileManagerShouldLinkItemAtURLToURL(fileManager FileManager, srcURL URL, dstURL URL) bool - HasFileManagerShouldLinkItemAtURLToURL() bool - - // optional - FileManagerShouldProceedAfterErrorRemovingItemAtURL(fileManager FileManager, error Error, URL URL) bool - HasFileManagerShouldProceedAfterErrorRemovingItemAtURL() bool - - // optional - FileManagerShouldRemoveItemAtPath(fileManager FileManager, path string) bool - HasFileManagerShouldRemoveItemAtPath() bool - - // optional - FileManagerShouldCopyItemAtPathToPath(fileManager FileManager, srcPath string, dstPath string) bool - HasFileManagerShouldCopyItemAtPathToPath() bool - - // optional - FileManagerShouldCopyItemAtURLToURL(fileManager FileManager, srcURL URL, dstURL URL) bool - HasFileManagerShouldCopyItemAtURLToURL() bool - - // optional - FileManagerShouldProceedAfterErrorMovingItemAtPathToPath(fileManager FileManager, error Error, srcPath string, dstPath string) bool - HasFileManagerShouldProceedAfterErrorMovingItemAtPathToPath() bool - // optional FileManagerShouldRemoveItemAtURL(fileManager FileManager, URL URL) bool HasFileManagerShouldRemoveItemAtURL() bool @@ -77,279 +17,9 @@ type PFileManagerDelegate interface { // A delegate implementation builder for the [PFileManagerDelegate] protocol. type FileManagerDelegate struct { - _FileManagerShouldProceedAfterErrorCopyingItemAtPathToPath func(fileManager FileManager, error Error, srcPath string, dstPath string) bool - _FileManagerShouldMoveItemAtPathToPath func(fileManager FileManager, srcPath string, dstPath string) bool - _FileManagerShouldProceedAfterErrorMovingItemAtURLToURL func(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool - _FileManagerShouldProceedAfterErrorCopyingItemAtURLToURL func(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool - _FileManagerShouldProceedAfterErrorLinkingItemAtPathToPath func(fileManager FileManager, error Error, srcPath string, dstPath string) bool - _FileManagerShouldMoveItemAtURLToURL func(fileManager FileManager, srcURL URL, dstURL URL) bool - _FileManagerShouldProceedAfterErrorLinkingItemAtURLToURL func(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool - _FileManagerShouldLinkItemAtPathToPath func(fileManager FileManager, srcPath string, dstPath string) bool - _FileManagerShouldProceedAfterErrorRemovingItemAtPath func(fileManager FileManager, error Error, path string) bool - _FileManagerShouldLinkItemAtURLToURL func(fileManager FileManager, srcURL URL, dstURL URL) bool - _FileManagerShouldProceedAfterErrorRemovingItemAtURL func(fileManager FileManager, error Error, URL URL) bool - _FileManagerShouldRemoveItemAtPath func(fileManager FileManager, path string) bool - _FileManagerShouldCopyItemAtPathToPath func(fileManager FileManager, srcPath string, dstPath string) bool - _FileManagerShouldCopyItemAtURLToURL func(fileManager FileManager, srcURL URL, dstURL URL) bool - _FileManagerShouldProceedAfterErrorMovingItemAtPathToPath func(fileManager FileManager, error Error, srcPath string, dstPath string) bool - _FileManagerShouldRemoveItemAtURL func(fileManager FileManager, URL URL) bool -} - -func (di *FileManagerDelegate) HasFileManagerShouldProceedAfterErrorCopyingItemAtPathToPath() bool { - return di._FileManagerShouldProceedAfterErrorCopyingItemAtPathToPath != nil -} - -// Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1410189-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldProceedAfterErrorCopyingItemAtPathToPath(f func(fileManager FileManager, error Error, srcPath string, dstPath string) bool) { - di._FileManagerShouldProceedAfterErrorCopyingItemAtPathToPath = f -} - -// Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1410189-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldProceedAfterErrorCopyingItemAtPathToPath(fileManager FileManager, error Error, srcPath string, dstPath string) bool { - return di._FileManagerShouldProceedAfterErrorCopyingItemAtPathToPath(fileManager, error, srcPath, dstPath) -} -func (di *FileManagerDelegate) HasFileManagerShouldMoveItemAtPathToPath() bool { - return di._FileManagerShouldMoveItemAtPathToPath != nil -} - -// Asks the delegate if the file manager should move the specified item to the new path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1407734-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldMoveItemAtPathToPath(f func(fileManager FileManager, srcPath string, dstPath string) bool) { - di._FileManagerShouldMoveItemAtPathToPath = f -} - -// Asks the delegate if the file manager should move the specified item to the new path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1407734-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldMoveItemAtPathToPath(fileManager FileManager, srcPath string, dstPath string) bool { - return di._FileManagerShouldMoveItemAtPathToPath(fileManager, srcPath, dstPath) -} -func (di *FileManagerDelegate) HasFileManagerShouldProceedAfterErrorMovingItemAtURLToURL() bool { - return di._FileManagerShouldProceedAfterErrorMovingItemAtURLToURL != nil -} - -// Asks the delegate if the move operation should continue after an error occurs while moving the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1411289-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldProceedAfterErrorMovingItemAtURLToURL(f func(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool) { - di._FileManagerShouldProceedAfterErrorMovingItemAtURLToURL = f -} - -// Asks the delegate if the move operation should continue after an error occurs while moving the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1411289-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldProceedAfterErrorMovingItemAtURLToURL(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool { - return di._FileManagerShouldProceedAfterErrorMovingItemAtURLToURL(fileManager, error, srcURL, dstURL) -} -func (di *FileManagerDelegate) HasFileManagerShouldProceedAfterErrorCopyingItemAtURLToURL() bool { - return di._FileManagerShouldProceedAfterErrorCopyingItemAtURLToURL != nil + _FileManagerShouldRemoveItemAtURL func(fileManager FileManager, URL URL) bool } -// Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1410788-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldProceedAfterErrorCopyingItemAtURLToURL(f func(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool) { - di._FileManagerShouldProceedAfterErrorCopyingItemAtURLToURL = f -} - -// Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1410788-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldProceedAfterErrorCopyingItemAtURLToURL(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool { - return di._FileManagerShouldProceedAfterErrorCopyingItemAtURLToURL(fileManager, error, srcURL, dstURL) -} -func (di *FileManagerDelegate) HasFileManagerShouldProceedAfterErrorLinkingItemAtPathToPath() bool { - return di._FileManagerShouldProceedAfterErrorLinkingItemAtPathToPath != nil -} - -// Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1415627-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldProceedAfterErrorLinkingItemAtPathToPath(f func(fileManager FileManager, error Error, srcPath string, dstPath string) bool) { - di._FileManagerShouldProceedAfterErrorLinkingItemAtPathToPath = f -} - -// Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1415627-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldProceedAfterErrorLinkingItemAtPathToPath(fileManager FileManager, error Error, srcPath string, dstPath string) bool { - return di._FileManagerShouldProceedAfterErrorLinkingItemAtPathToPath(fileManager, error, srcPath, dstPath) -} -func (di *FileManagerDelegate) HasFileManagerShouldMoveItemAtURLToURL() bool { - return di._FileManagerShouldMoveItemAtURLToURL != nil -} - -// Asks the delegate if the file manager should move the specified item to the new URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1411878-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldMoveItemAtURLToURL(f func(fileManager FileManager, srcURL URL, dstURL URL) bool) { - di._FileManagerShouldMoveItemAtURLToURL = f -} - -// Asks the delegate if the file manager should move the specified item to the new URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1411878-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldMoveItemAtURLToURL(fileManager FileManager, srcURL URL, dstURL URL) bool { - return di._FileManagerShouldMoveItemAtURLToURL(fileManager, srcURL, dstURL) -} -func (di *FileManagerDelegate) HasFileManagerShouldProceedAfterErrorLinkingItemAtURLToURL() bool { - return di._FileManagerShouldProceedAfterErrorLinkingItemAtURLToURL != nil -} - -// Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1408003-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldProceedAfterErrorLinkingItemAtURLToURL(f func(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool) { - di._FileManagerShouldProceedAfterErrorLinkingItemAtURLToURL = f -} - -// Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1408003-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldProceedAfterErrorLinkingItemAtURLToURL(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool { - return di._FileManagerShouldProceedAfterErrorLinkingItemAtURLToURL(fileManager, error, srcURL, dstURL) -} -func (di *FileManagerDelegate) HasFileManagerShouldLinkItemAtPathToPath() bool { - return di._FileManagerShouldLinkItemAtPathToPath != nil -} - -// Asks the delegate if a hard link should be created between the items at the two paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1414699-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldLinkItemAtPathToPath(f func(fileManager FileManager, srcPath string, dstPath string) bool) { - di._FileManagerShouldLinkItemAtPathToPath = f -} - -// Asks the delegate if a hard link should be created between the items at the two paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1414699-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldLinkItemAtPathToPath(fileManager FileManager, srcPath string, dstPath string) bool { - return di._FileManagerShouldLinkItemAtPathToPath(fileManager, srcPath, dstPath) -} -func (di *FileManagerDelegate) HasFileManagerShouldProceedAfterErrorRemovingItemAtPath() bool { - return di._FileManagerShouldProceedAfterErrorRemovingItemAtPath != nil -} - -// Asks the delegate if the operation should continue after an error occurs while removing the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1409791-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldProceedAfterErrorRemovingItemAtPath(f func(fileManager FileManager, error Error, path string) bool) { - di._FileManagerShouldProceedAfterErrorRemovingItemAtPath = f -} - -// Asks the delegate if the operation should continue after an error occurs while removing the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1409791-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldProceedAfterErrorRemovingItemAtPath(fileManager FileManager, error Error, path string) bool { - return di._FileManagerShouldProceedAfterErrorRemovingItemAtPath(fileManager, error, path) -} -func (di *FileManagerDelegate) HasFileManagerShouldLinkItemAtURLToURL() bool { - return di._FileManagerShouldLinkItemAtURLToURL != nil -} - -// Asks the delegate if a hard link should be created between the items at the two URLs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1417589-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldLinkItemAtURLToURL(f func(fileManager FileManager, srcURL URL, dstURL URL) bool) { - di._FileManagerShouldLinkItemAtURLToURL = f -} - -// Asks the delegate if a hard link should be created between the items at the two URLs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1417589-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldLinkItemAtURLToURL(fileManager FileManager, srcURL URL, dstURL URL) bool { - return di._FileManagerShouldLinkItemAtURLToURL(fileManager, srcURL, dstURL) -} -func (di *FileManagerDelegate) HasFileManagerShouldProceedAfterErrorRemovingItemAtURL() bool { - return di._FileManagerShouldProceedAfterErrorRemovingItemAtURL != nil -} - -// Asks the delegate if the operation should continue after an error occurs while removing the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1408660-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldProceedAfterErrorRemovingItemAtURL(f func(fileManager FileManager, error Error, URL URL) bool) { - di._FileManagerShouldProceedAfterErrorRemovingItemAtURL = f -} - -// Asks the delegate if the operation should continue after an error occurs while removing the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1408660-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldProceedAfterErrorRemovingItemAtURL(fileManager FileManager, error Error, URL URL) bool { - return di._FileManagerShouldProceedAfterErrorRemovingItemAtURL(fileManager, error, URL) -} -func (di *FileManagerDelegate) HasFileManagerShouldRemoveItemAtPath() bool { - return di._FileManagerShouldRemoveItemAtPath != nil -} - -// Asks the delegate whether the item at the specified path should be deleted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1412994-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldRemoveItemAtPath(f func(fileManager FileManager, path string) bool) { - di._FileManagerShouldRemoveItemAtPath = f -} - -// Asks the delegate whether the item at the specified path should be deleted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1412994-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldRemoveItemAtPath(fileManager FileManager, path string) bool { - return di._FileManagerShouldRemoveItemAtPath(fileManager, path) -} -func (di *FileManagerDelegate) HasFileManagerShouldCopyItemAtPathToPath() bool { - return di._FileManagerShouldCopyItemAtPathToPath != nil -} - -// Asks the delegate if the file manager should copy the specified item to the new path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1414922-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldCopyItemAtPathToPath(f func(fileManager FileManager, srcPath string, dstPath string) bool) { - di._FileManagerShouldCopyItemAtPathToPath = f -} - -// Asks the delegate if the file manager should copy the specified item to the new path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1414922-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldCopyItemAtPathToPath(fileManager FileManager, srcPath string, dstPath string) bool { - return di._FileManagerShouldCopyItemAtPathToPath(fileManager, srcPath, dstPath) -} -func (di *FileManagerDelegate) HasFileManagerShouldCopyItemAtURLToURL() bool { - return di._FileManagerShouldCopyItemAtURLToURL != nil -} - -// Asks the delegate if the file manager should copy the specified item to the new URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1417936-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldCopyItemAtURLToURL(f func(fileManager FileManager, srcURL URL, dstURL URL) bool) { - di._FileManagerShouldCopyItemAtURLToURL = f -} - -// Asks the delegate if the file manager should copy the specified item to the new URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1417936-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldCopyItemAtURLToURL(fileManager FileManager, srcURL URL, dstURL URL) bool { - return di._FileManagerShouldCopyItemAtURLToURL(fileManager, srcURL, dstURL) -} -func (di *FileManagerDelegate) HasFileManagerShouldProceedAfterErrorMovingItemAtPathToPath() bool { - return di._FileManagerShouldProceedAfterErrorMovingItemAtPathToPath != nil -} - -// Asks the delegate if the move operation should continue after an error occurs while moving the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1412865-filemanager?language=objc -func (di *FileManagerDelegate) SetFileManagerShouldProceedAfterErrorMovingItemAtPathToPath(f func(fileManager FileManager, error Error, srcPath string, dstPath string) bool) { - di._FileManagerShouldProceedAfterErrorMovingItemAtPathToPath = f -} - -// Asks the delegate if the move operation should continue after an error occurs while moving the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1412865-filemanager?language=objc -func (di *FileManagerDelegate) FileManagerShouldProceedAfterErrorMovingItemAtPathToPath(fileManager FileManager, error Error, srcPath string, dstPath string) bool { - return di._FileManagerShouldProceedAfterErrorMovingItemAtPathToPath(fileManager, error, srcPath, dstPath) -} func (di *FileManagerDelegate) HasFileManagerShouldRemoveItemAtURL() bool { return di._FileManagerShouldRemoveItemAtURL != nil } @@ -376,186 +46,6 @@ type FileManagerDelegateObject struct { objc.Object } -func (f_ FileManagerDelegateObject) HasFileManagerShouldProceedAfterErrorCopyingItemAtPathToPath() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:")) -} - -// Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1410189-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldProceedAfterErrorCopyingItemAtPathToPath(fileManager FileManager, error Error, srcPath string, dstPath string) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:"), fileManager, error, srcPath, dstPath) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldMoveItemAtPathToPath() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldMoveItemAtPath:toPath:")) -} - -// Asks the delegate if the file manager should move the specified item to the new path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1407734-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldMoveItemAtPathToPath(fileManager FileManager, srcPath string, dstPath string) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldMoveItemAtPath:toPath:"), fileManager, srcPath, dstPath) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldProceedAfterErrorMovingItemAtURLToURL() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldProceedAfterError:movingItemAtURL:toURL:")) -} - -// Asks the delegate if the move operation should continue after an error occurs while moving the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1411289-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldProceedAfterErrorMovingItemAtURLToURL(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldProceedAfterError:movingItemAtURL:toURL:"), fileManager, error, srcURL, dstURL) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldProceedAfterErrorCopyingItemAtURLToURL() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:")) -} - -// Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1410788-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldProceedAfterErrorCopyingItemAtURLToURL(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:"), fileManager, error, srcURL, dstURL) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldProceedAfterErrorLinkingItemAtPathToPath() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:")) -} - -// Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1415627-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldProceedAfterErrorLinkingItemAtPathToPath(fileManager FileManager, error Error, srcPath string, dstPath string) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:"), fileManager, error, srcPath, dstPath) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldMoveItemAtURLToURL() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldMoveItemAtURL:toURL:")) -} - -// Asks the delegate if the file manager should move the specified item to the new URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1411878-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldMoveItemAtURLToURL(fileManager FileManager, srcURL URL, dstURL URL) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldMoveItemAtURL:toURL:"), fileManager, srcURL, dstURL) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldProceedAfterErrorLinkingItemAtURLToURL() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:")) -} - -// Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1408003-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldProceedAfterErrorLinkingItemAtURLToURL(fileManager FileManager, error Error, srcURL URL, dstURL URL) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:"), fileManager, error, srcURL, dstURL) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldLinkItemAtPathToPath() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldLinkItemAtPath:toPath:")) -} - -// Asks the delegate if a hard link should be created between the items at the two paths. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1414699-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldLinkItemAtPathToPath(fileManager FileManager, srcPath string, dstPath string) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldLinkItemAtPath:toPath:"), fileManager, srcPath, dstPath) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldProceedAfterErrorRemovingItemAtPath() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldProceedAfterError:removingItemAtPath:")) -} - -// Asks the delegate if the operation should continue after an error occurs while removing the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1409791-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldProceedAfterErrorRemovingItemAtPath(fileManager FileManager, error Error, path string) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldProceedAfterError:removingItemAtPath:"), fileManager, error, path) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldLinkItemAtURLToURL() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldLinkItemAtURL:toURL:")) -} - -// Asks the delegate if a hard link should be created between the items at the two URLs. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1417589-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldLinkItemAtURLToURL(fileManager FileManager, srcURL URL, dstURL URL) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldLinkItemAtURL:toURL:"), fileManager, srcURL, dstURL) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldProceedAfterErrorRemovingItemAtURL() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldProceedAfterError:removingItemAtURL:")) -} - -// Asks the delegate if the operation should continue after an error occurs while removing the item at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1408660-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldProceedAfterErrorRemovingItemAtURL(fileManager FileManager, error Error, URL URL) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldProceedAfterError:removingItemAtURL:"), fileManager, error, URL) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldRemoveItemAtPath() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldRemoveItemAtPath:")) -} - -// Asks the delegate whether the item at the specified path should be deleted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1412994-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldRemoveItemAtPath(fileManager FileManager, path string) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldRemoveItemAtPath:"), fileManager, path) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldCopyItemAtPathToPath() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldCopyItemAtPath:toPath:")) -} - -// Asks the delegate if the file manager should copy the specified item to the new path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1414922-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldCopyItemAtPathToPath(fileManager FileManager, srcPath string, dstPath string) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldCopyItemAtPath:toPath:"), fileManager, srcPath, dstPath) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldCopyItemAtURLToURL() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldCopyItemAtURL:toURL:")) -} - -// Asks the delegate if the file manager should copy the specified item to the new URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1417936-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldCopyItemAtURLToURL(fileManager FileManager, srcURL URL, dstURL URL) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldCopyItemAtURL:toURL:"), fileManager, srcURL, dstURL) - return rv -} - -func (f_ FileManagerDelegateObject) HasFileManagerShouldProceedAfterErrorMovingItemAtPathToPath() bool { - return f_.RespondsToSelector(objc.Sel("fileManager:shouldProceedAfterError:movingItemAtPath:toPath:")) -} - -// Asks the delegate if the move operation should continue after an error occurs while moving the item at the specified path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1412865-filemanager?language=objc -func (f_ FileManagerDelegateObject) FileManagerShouldProceedAfterErrorMovingItemAtPathToPath(fileManager FileManager, error Error, srcPath string, dstPath string) bool { - rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldProceedAfterError:movingItemAtPath:toPath:"), fileManager, error, srcPath, dstPath) - return rv -} - func (f_ FileManagerDelegateObject) HasFileManagerShouldRemoveItemAtURL() bool { return f_.RespondsToSelector(objc.Sel("fileManager:shouldRemoveItemAtURL:")) } diff --git a/macos/foundation/file_presenter_protocol.gen.go b/macos/foundation/file_presenter_protocol.gen.go index 4e7b3602..7c5209c1 100644 --- a/macos/foundation/file_presenter_protocol.gen.go +++ b/macos/foundation/file_presenter_protocol.gen.go @@ -15,84 +15,72 @@ type PFilePresenter interface { HasAccommodatePresentedItemDeletionWithCompletionHandler() bool // optional - PresentedItemDidChangeUbiquityAttributes(attributes Set) - HasPresentedItemDidChangeUbiquityAttributes() bool - - // optional - PresentedSubitemAtURLDidResolveConflictVersion(url URL, version FileVersion) - HasPresentedSubitemAtURLDidResolveConflictVersion() bool + PresentedItemDidMoveToURL(newURL URL) + HasPresentedItemDidMoveToURL() bool // optional - PresentedItemDidResolveConflictVersion(version FileVersion) - HasPresentedItemDidResolveConflictVersion() bool + PresentedSubitemAtURLDidGainVersion(url URL, version FileVersion) + HasPresentedSubitemAtURLDidGainVersion() bool // optional - AccommodatePresentedSubitemDeletionAtURLCompletionHandler(url URL, completionHandler func(errorOrNil Error)) - HasAccommodatePresentedSubitemDeletionAtURLCompletionHandler() bool + SavePresentedItemChangesWithCompletionHandler(completionHandler func(errorOrNil Error)) + HasSavePresentedItemChangesWithCompletionHandler() bool // optional - PresentedSubitemDidChangeAtURL(url URL) - HasPresentedSubitemDidChangeAtURL() bool + PresentedItemDidChange() + HasPresentedItemDidChange() bool // optional - PresentedSubitemAtURLDidGainVersion(url URL, version FileVersion) - HasPresentedSubitemAtURLDidGainVersion() bool + PresentedItemDidLoseVersion(version FileVersion) + HasPresentedItemDidLoseVersion() bool // optional - PresentedSubitemAtURLDidLoseVersion(url URL, version FileVersion) - HasPresentedSubitemAtURLDidLoseVersion() bool + RelinquishPresentedItemToReader(reader func(arg0 func())) + HasRelinquishPresentedItemToReader() bool // optional PresentedItemDidGainVersion(version FileVersion) HasPresentedItemDidGainVersion() bool // optional - PresentedSubitemAtURLDidMoveToURL(oldURL URL, newURL URL) - HasPresentedSubitemAtURLDidMoveToURL() bool - - // optional - SavePresentedItemChangesWithCompletionHandler(completionHandler func(errorOrNil Error)) - HasSavePresentedItemChangesWithCompletionHandler() bool + PresentedItemDidResolveConflictVersion(version FileVersion) + HasPresentedItemDidResolveConflictVersion() bool // optional - PresentedItemDidLoseVersion(version FileVersion) - HasPresentedItemDidLoseVersion() bool + PresentedItemDidChangeUbiquityAttributes(attributes Set) + HasPresentedItemDidChangeUbiquityAttributes() bool // optional - PresentedItemDidMoveToURL(newURL URL) - HasPresentedItemDidMoveToURL() bool + RelinquishPresentedItemToWriter(writer func(arg0 func())) + HasRelinquishPresentedItemToWriter() bool // optional PresentedSubitemDidAppearAtURL(url URL) HasPresentedSubitemDidAppearAtURL() bool // optional - PresentedItemDidChange() - HasPresentedItemDidChange() bool - - // optional - RelinquishPresentedItemToWriter(writer func(arg0 func())) - HasRelinquishPresentedItemToWriter() bool + PresentedSubitemDidChangeAtURL(url URL) + HasPresentedSubitemDidChangeAtURL() bool // optional - RelinquishPresentedItemToReader(reader func(arg0 func())) - HasRelinquishPresentedItemToReader() bool + AccommodatePresentedSubitemDeletionAtURLCompletionHandler(url URL, completionHandler func(errorOrNil Error)) + HasAccommodatePresentedSubitemDeletionAtURLCompletionHandler() bool // optional - ObservedPresentedItemUbiquityAttributes() Set - HasObservedPresentedItemUbiquityAttributes() bool + PresentedItemOperationQueue() OperationQueue + HasPresentedItemOperationQueue() bool // optional PresentedItemURL() URL HasPresentedItemURL() bool // optional - PrimaryPresentedItemURL() URL - HasPrimaryPresentedItemURL() bool + ObservedPresentedItemUbiquityAttributes() Set + HasObservedPresentedItemUbiquityAttributes() bool // optional - PresentedItemOperationQueue() OperationQueue - HasPresentedItemOperationQueue() bool + PrimaryPresentedItemURL() URL + HasPrimaryPresentedItemURL() bool } // ensure impl type implements protocol interface @@ -114,81 +102,70 @@ func (f_ FilePresenterObject) AccommodatePresentedItemDeletionWithCompletionHand objc.Call[objc.Void](f_, objc.Sel("accommodatePresentedItemDeletionWithCompletionHandler:"), completionHandler) } -func (f_ FilePresenterObject) HasPresentedItemDidChangeUbiquityAttributes() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemDidChangeUbiquityAttributes:")) -} - -// Tells your object that the file or file package's ubiquity attributes have changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/2909021-presenteditemdidchangeubiquityat?language=objc -func (f_ FilePresenterObject) PresentedItemDidChangeUbiquityAttributes(attributes Set) { - objc.Call[objc.Void](f_, objc.Sel("presentedItemDidChangeUbiquityAttributes:"), attributes) -} - -func (f_ FilePresenterObject) HasPresentedSubitemAtURLDidResolveConflictVersion() bool { - return f_.RespondsToSelector(objc.Sel("presentedSubitemAtURL:didResolveConflictVersion:")) +func (f_ FilePresenterObject) HasPresentedItemDidMoveToURL() bool { + return f_.RespondsToSelector(objc.Sel("presentedItemDidMoveToURL:")) } -// Tells the delegate that the item inside the presented directory had a version conflict resolved by an outside entity. [Full Topic] +// Tells your object that the presented item moved or was renamed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1416913-presentedsubitematurl?language=objc -func (f_ FilePresenterObject) PresentedSubitemAtURLDidResolveConflictVersion(url URL, version FileVersion) { - objc.Call[objc.Void](f_, objc.Sel("presentedSubitemAtURL:didResolveConflictVersion:"), url, version) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1417861-presenteditemdidmovetourl?language=objc +func (f_ FilePresenterObject) PresentedItemDidMoveToURL(newURL URL) { + objc.Call[objc.Void](f_, objc.Sel("presentedItemDidMoveToURL:"), newURL) } -func (f_ FilePresenterObject) HasPresentedItemDidResolveConflictVersion() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemDidResolveConflictVersion:")) +func (f_ FilePresenterObject) HasPresentedSubitemAtURLDidGainVersion() bool { + return f_.RespondsToSelector(objc.Sel("presentedSubitemAtURL:didGainVersion:")) } -// Tells the delegate that some other entity resolved a version conflict for the presenter’s file or file package. [Full Topic] +// Tells the delegate that the item inside the presented directory gained a new version. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1418445-presenteditemdidresolveconflictv?language=objc -func (f_ FilePresenterObject) PresentedItemDidResolveConflictVersion(version FileVersion) { - objc.Call[objc.Void](f_, objc.Sel("presentedItemDidResolveConflictVersion:"), version) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415472-presentedsubitematurl?language=objc +func (f_ FilePresenterObject) PresentedSubitemAtURLDidGainVersion(url URL, version FileVersion) { + objc.Call[objc.Void](f_, objc.Sel("presentedSubitemAtURL:didGainVersion:"), url, version) } -func (f_ FilePresenterObject) HasAccommodatePresentedSubitemDeletionAtURLCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("accommodatePresentedSubitemDeletionAtURL:completionHandler:")) +func (f_ FilePresenterObject) HasSavePresentedItemChangesWithCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("savePresentedItemChangesWithCompletionHandler:")) } -// Tells the delegate that some entity wants to delete an item that is inside of a presented directory. [Full Topic] +// Tells your object to save any unsaved changes for the presented item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415657-accommodatepresentedsubitemdelet?language=objc -func (f_ FilePresenterObject) AccommodatePresentedSubitemDeletionAtURLCompletionHandler(url URL, completionHandler func(errorOrNil Error)) { - objc.Call[objc.Void](f_, objc.Sel("accommodatePresentedSubitemDeletionAtURL:completionHandler:"), url, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1414407-savepresenteditemchangeswithcomp?language=objc +func (f_ FilePresenterObject) SavePresentedItemChangesWithCompletionHandler(completionHandler func(errorOrNil Error)) { + objc.Call[objc.Void](f_, objc.Sel("savePresentedItemChangesWithCompletionHandler:"), completionHandler) } -func (f_ FilePresenterObject) HasPresentedSubitemDidChangeAtURL() bool { - return f_.RespondsToSelector(objc.Sel("presentedSubitemDidChangeAtURL:")) +func (f_ FilePresenterObject) HasPresentedItemDidChange() bool { + return f_.RespondsToSelector(objc.Sel("presentedItemDidChange")) } -// Tells the delegate that the contents or attributes of the specified item changed. [Full Topic] +// Tells your object that the presented item’s contents or attributes changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1411135-presentedsubitemdidchangeaturl?language=objc -func (f_ FilePresenterObject) PresentedSubitemDidChangeAtURL(url URL) { - objc.Call[objc.Void](f_, objc.Sel("presentedSubitemDidChangeAtURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1416103-presenteditemdidchange?language=objc +func (f_ FilePresenterObject) PresentedItemDidChange() { + objc.Call[objc.Void](f_, objc.Sel("presentedItemDidChange")) } -func (f_ FilePresenterObject) HasPresentedSubitemAtURLDidGainVersion() bool { - return f_.RespondsToSelector(objc.Sel("presentedSubitemAtURL:didGainVersion:")) +func (f_ FilePresenterObject) HasPresentedItemDidLoseVersion() bool { + return f_.RespondsToSelector(objc.Sel("presentedItemDidLoseVersion:")) } -// Tells the delegate that the item inside the presented directory gained a new version. [Full Topic] +// Tells the delegate that a version of the file or file package was removed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415472-presentedsubitematurl?language=objc -func (f_ FilePresenterObject) PresentedSubitemAtURLDidGainVersion(url URL, version FileVersion) { - objc.Call[objc.Void](f_, objc.Sel("presentedSubitemAtURL:didGainVersion:"), url, version) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1417258-presenteditemdidloseversion?language=objc +func (f_ FilePresenterObject) PresentedItemDidLoseVersion(version FileVersion) { + objc.Call[objc.Void](f_, objc.Sel("presentedItemDidLoseVersion:"), version) } -func (f_ FilePresenterObject) HasPresentedSubitemAtURLDidLoseVersion() bool { - return f_.RespondsToSelector(objc.Sel("presentedSubitemAtURL:didLoseVersion:")) +func (f_ FilePresenterObject) HasRelinquishPresentedItemToReader() bool { + return f_.RespondsToSelector(objc.Sel("relinquishPresentedItemToReader:")) } -// Tells the delegate that the item inside the presented directory lost an existing version. [Full Topic] +// Notifies your object that another object or process wants to read the presented file or directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1413957-presentedsubitematurl?language=objc -func (f_ FilePresenterObject) PresentedSubitemAtURLDidLoseVersion(url URL, version FileVersion) { - objc.Call[objc.Void](f_, objc.Sel("presentedSubitemAtURL:didLoseVersion:"), url, version) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1410743-relinquishpresenteditemtoreader?language=objc +func (f_ FilePresenterObject) RelinquishPresentedItemToReader(reader func(arg0 func())) { + objc.Call[objc.Void](f_, objc.Sel("relinquishPresentedItemToReader:"), reader) } func (f_ FilePresenterObject) HasPresentedItemDidGainVersion() bool { @@ -202,48 +179,37 @@ func (f_ FilePresenterObject) PresentedItemDidGainVersion(version FileVersion) { objc.Call[objc.Void](f_, objc.Sel("presentedItemDidGainVersion:"), version) } -func (f_ FilePresenterObject) HasPresentedSubitemAtURLDidMoveToURL() bool { - return f_.RespondsToSelector(objc.Sel("presentedSubitemAtURL:didMoveToURL:")) -} - -// Tells the delegate that an item in the presented directory moved to a new location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1409465-presentedsubitematurl?language=objc -func (f_ FilePresenterObject) PresentedSubitemAtURLDidMoveToURL(oldURL URL, newURL URL) { - objc.Call[objc.Void](f_, objc.Sel("presentedSubitemAtURL:didMoveToURL:"), oldURL, newURL) -} - -func (f_ FilePresenterObject) HasSavePresentedItemChangesWithCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("savePresentedItemChangesWithCompletionHandler:")) +func (f_ FilePresenterObject) HasPresentedItemDidResolveConflictVersion() bool { + return f_.RespondsToSelector(objc.Sel("presentedItemDidResolveConflictVersion:")) } -// Tells your object to save any unsaved changes for the presented item. [Full Topic] +// Tells the delegate that some other entity resolved a version conflict for the presenter’s file or file package. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1414407-savepresenteditemchangeswithcomp?language=objc -func (f_ FilePresenterObject) SavePresentedItemChangesWithCompletionHandler(completionHandler func(errorOrNil Error)) { - objc.Call[objc.Void](f_, objc.Sel("savePresentedItemChangesWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1418445-presenteditemdidresolveconflictv?language=objc +func (f_ FilePresenterObject) PresentedItemDidResolveConflictVersion(version FileVersion) { + objc.Call[objc.Void](f_, objc.Sel("presentedItemDidResolveConflictVersion:"), version) } -func (f_ FilePresenterObject) HasPresentedItemDidLoseVersion() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemDidLoseVersion:")) +func (f_ FilePresenterObject) HasPresentedItemDidChangeUbiquityAttributes() bool { + return f_.RespondsToSelector(objc.Sel("presentedItemDidChangeUbiquityAttributes:")) } -// Tells the delegate that a version of the file or file package was removed. [Full Topic] +// Tells your object that the file or file package's ubiquity attributes have changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1417258-presenteditemdidloseversion?language=objc -func (f_ FilePresenterObject) PresentedItemDidLoseVersion(version FileVersion) { - objc.Call[objc.Void](f_, objc.Sel("presentedItemDidLoseVersion:"), version) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/2909021-presenteditemdidchangeubiquityat?language=objc +func (f_ FilePresenterObject) PresentedItemDidChangeUbiquityAttributes(attributes Set) { + objc.Call[objc.Void](f_, objc.Sel("presentedItemDidChangeUbiquityAttributes:"), attributes) } -func (f_ FilePresenterObject) HasPresentedItemDidMoveToURL() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemDidMoveToURL:")) +func (f_ FilePresenterObject) HasRelinquishPresentedItemToWriter() bool { + return f_.RespondsToSelector(objc.Sel("relinquishPresentedItemToWriter:")) } -// Tells your object that the presented item moved or was renamed. [Full Topic] +// Notifies your object that another object or process wants to write to the presented file or directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1417861-presenteditemdidmovetourl?language=objc -func (f_ FilePresenterObject) PresentedItemDidMoveToURL(newURL URL) { - objc.Call[objc.Void](f_, objc.Sel("presentedItemDidMoveToURL:"), newURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1413688-relinquishpresenteditemtowriter?language=objc +func (f_ FilePresenterObject) RelinquishPresentedItemToWriter(writer func(arg0 func())) { + objc.Call[objc.Void](f_, objc.Sel("relinquishPresentedItemToWriter:"), writer) } func (f_ FilePresenterObject) HasPresentedSubitemDidAppearAtURL() bool { @@ -257,48 +223,37 @@ func (f_ FilePresenterObject) PresentedSubitemDidAppearAtURL(url URL) { objc.Call[objc.Void](f_, objc.Sel("presentedSubitemDidAppearAtURL:"), url) } -func (f_ FilePresenterObject) HasPresentedItemDidChange() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemDidChange")) -} - -// Tells your object that the presented item’s contents or attributes changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1416103-presenteditemdidchange?language=objc -func (f_ FilePresenterObject) PresentedItemDidChange() { - objc.Call[objc.Void](f_, objc.Sel("presentedItemDidChange")) -} - -func (f_ FilePresenterObject) HasRelinquishPresentedItemToWriter() bool { - return f_.RespondsToSelector(objc.Sel("relinquishPresentedItemToWriter:")) +func (f_ FilePresenterObject) HasPresentedSubitemDidChangeAtURL() bool { + return f_.RespondsToSelector(objc.Sel("presentedSubitemDidChangeAtURL:")) } -// Notifies your object that another object or process wants to write to the presented file or directory. [Full Topic] +// Tells the delegate that the contents or attributes of the specified item changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1413688-relinquishpresenteditemtowriter?language=objc -func (f_ FilePresenterObject) RelinquishPresentedItemToWriter(writer func(arg0 func())) { - objc.Call[objc.Void](f_, objc.Sel("relinquishPresentedItemToWriter:"), writer) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1411135-presentedsubitemdidchangeaturl?language=objc +func (f_ FilePresenterObject) PresentedSubitemDidChangeAtURL(url URL) { + objc.Call[objc.Void](f_, objc.Sel("presentedSubitemDidChangeAtURL:"), url) } -func (f_ FilePresenterObject) HasRelinquishPresentedItemToReader() bool { - return f_.RespondsToSelector(objc.Sel("relinquishPresentedItemToReader:")) +func (f_ FilePresenterObject) HasAccommodatePresentedSubitemDeletionAtURLCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("accommodatePresentedSubitemDeletionAtURL:completionHandler:")) } -// Notifies your object that another object or process wants to read the presented file or directory. [Full Topic] +// Tells the delegate that some entity wants to delete an item that is inside of a presented directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1410743-relinquishpresenteditemtoreader?language=objc -func (f_ FilePresenterObject) RelinquishPresentedItemToReader(reader func(arg0 func())) { - objc.Call[objc.Void](f_, objc.Sel("relinquishPresentedItemToReader:"), reader) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415657-accommodatepresentedsubitemdelet?language=objc +func (f_ FilePresenterObject) AccommodatePresentedSubitemDeletionAtURLCompletionHandler(url URL, completionHandler func(errorOrNil Error)) { + objc.Call[objc.Void](f_, objc.Sel("accommodatePresentedSubitemDeletionAtURL:completionHandler:"), url, completionHandler) } -func (f_ FilePresenterObject) HasObservedPresentedItemUbiquityAttributes() bool { - return f_.RespondsToSelector(objc.Sel("observedPresentedItemUbiquityAttributes")) +func (f_ FilePresenterObject) HasPresentedItemOperationQueue() bool { + return f_.RespondsToSelector(objc.Sel("presentedItemOperationQueue")) } -// A list of ubiquity attributes used to generate and send notifications whenever an attribute in the list changes. [Full Topic] +// The operation queue in which to execute presenter-related messages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/2909022-observedpresenteditemubiquityatt?language=objc -func (f_ FilePresenterObject) ObservedPresentedItemUbiquityAttributes() Set { - rv := objc.Call[Set](f_, objc.Sel("observedPresentedItemUbiquityAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415250-presenteditemoperationqueue?language=objc +func (f_ FilePresenterObject) PresentedItemOperationQueue() OperationQueue { + rv := objc.Call[OperationQueue](f_, objc.Sel("presentedItemOperationQueue")) return rv } @@ -314,26 +269,26 @@ func (f_ FilePresenterObject) PresentedItemURL() URL { return rv } -func (f_ FilePresenterObject) HasPrimaryPresentedItemURL() bool { - return f_.RespondsToSelector(objc.Sel("primaryPresentedItemURL")) +func (f_ FilePresenterObject) HasObservedPresentedItemUbiquityAttributes() bool { + return f_.RespondsToSelector(objc.Sel("observedPresentedItemUbiquityAttributes")) } -// The URL of a secondary item’s primary presented file or directory. [Full Topic] +// A list of ubiquity attributes used to generate and send notifications whenever an attribute in the list changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415415-primarypresenteditemurl?language=objc -func (f_ FilePresenterObject) PrimaryPresentedItemURL() URL { - rv := objc.Call[URL](f_, objc.Sel("primaryPresentedItemURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/2909022-observedpresenteditemubiquityatt?language=objc +func (f_ FilePresenterObject) ObservedPresentedItemUbiquityAttributes() Set { + rv := objc.Call[Set](f_, objc.Sel("observedPresentedItemUbiquityAttributes")) return rv } -func (f_ FilePresenterObject) HasPresentedItemOperationQueue() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemOperationQueue")) +func (f_ FilePresenterObject) HasPrimaryPresentedItemURL() bool { + return f_.RespondsToSelector(objc.Sel("primaryPresentedItemURL")) } -// The operation queue in which to execute presenter-related messages. [Full Topic] +// The URL of a secondary item’s primary presented file or directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415250-presenteditemoperationqueue?language=objc -func (f_ FilePresenterObject) PresentedItemOperationQueue() OperationQueue { - rv := objc.Call[OperationQueue](f_, objc.Sel("presentedItemOperationQueue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415415-primarypresenteditemurl?language=objc +func (f_ FilePresenterObject) PrimaryPresentedItemURL() URL { + rv := objc.Call[URL](f_, objc.Sel("primaryPresentedItemURL")) return rv } diff --git a/macos/foundation/file_version.gen.go b/macos/foundation/file_version.gen.go index 6b5c04f4..beeccd6b 100644 --- a/macos/foundation/file_version.gen.go +++ b/macos/foundation/file_version.gen.go @@ -18,20 +18,20 @@ type _FileVersionClass struct { // An interface definition for the [FileVersion] class. type IFileVersion interface { objc.IObject - RemoveAndReturnError(outError unsafe.Pointer) bool ReplaceItemAtURLOptionsError(url IURL, options FileVersionReplacingOptions, error unsafe.Pointer) URL - URL() URL - ModificationDate() Date - IsDiscardable() bool - SetDiscardable(value bool) - IsConflict() bool - LocalizedName() string - HasThumbnail() bool + RemoveAndReturnError(outError unsafe.Pointer) bool IsResolved() bool SetResolved(value bool) + IsDiscardable() bool + SetDiscardable(value bool) + ModificationDate() Date OriginatorNameComponents() PersonNameComponents + LocalizedName() string LocalizedNameOfSavingComputer() string + URL() URL + IsConflict() bool PersistentIdentifier() CodingObject + HasThumbnail() bool HasLocalContents() bool } @@ -83,6 +83,21 @@ func FileVersion_VersionOfItemAtURLForPersistentIdentifier(url IURL, persistentI return FileVersionClass.VersionOfItemAtURLForPersistentIdentifier(url, persistentIdentifier) } +// Returns the most recent version object for the file at the specified URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1412963-currentversionofitematurl?language=objc +func (fc _FileVersionClass) CurrentVersionOfItemAtURL(url IURL) FileVersion { + rv := objc.Call[FileVersion](fc, objc.Sel("currentVersionOfItemAtURL:"), url) + return rv +} + +// Returns the most recent version object for the file at the specified URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1412963-currentversionofitematurl?language=objc +func FileVersion_CurrentVersionOfItemAtURL(url IURL) FileVersion { + return FileVersionClass.CurrentVersionOfItemAtURL(url) +} + // Removes all versions of a file, except the current one, from the version store. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1411537-removeotherversionsofitematurl?language=objc @@ -128,18 +143,12 @@ func FileVersion_OtherVersionsOfItemAtURL(url IURL) []FileVersion { return FileVersionClass.OtherVersionsOfItemAtURL(url) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1416051-getnonlocalversionsofitematurl?language=objc -func (fc _FileVersionClass) GetNonlocalVersionsOfItemAtURLCompletionHandler(url IURL, completionHandler func(nonlocalFileVersions []FileVersion, error Error)) { - objc.Call[objc.Void](fc, objc.Sel("getNonlocalVersionsOfItemAtURL:completionHandler:"), url, completionHandler) -} - -// [Full Topic] +// Replace the contents of the specified file with the contents of the current version’s file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1416051-getnonlocalversionsofitematurl?language=objc -func FileVersion_GetNonlocalVersionsOfItemAtURLCompletionHandler(url IURL, completionHandler func(nonlocalFileVersions []FileVersion, error Error)) { - FileVersionClass.GetNonlocalVersionsOfItemAtURLCompletionHandler(url, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1412297-replaceitematurl?language=objc +func (f_ FileVersion) ReplaceItemAtURLOptionsError(url IURL, options FileVersionReplacingOptions, error unsafe.Pointer) URL { + rv := objc.Call[URL](f_, objc.Sel("replaceItemAtURL:options:error:"), url, options, error) + return rv } // Creates a version of the file at the specified location. [Full Topic] @@ -157,21 +166,6 @@ func FileVersion_AddVersionOfItemAtURLWithContentsOfURLOptionsError(url IURL, co return FileVersionClass.AddVersionOfItemAtURLWithContentsOfURLOptionsError(url, contentsURL, options, outError) } -// Returns the most recent version object for the file at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1412963-currentversionofitematurl?language=objc -func (fc _FileVersionClass) CurrentVersionOfItemAtURL(url IURL) FileVersion { - rv := objc.Call[FileVersion](fc, objc.Sel("currentVersionOfItemAtURL:"), url) - return rv -} - -// Returns the most recent version object for the file at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1412963-currentversionofitematurl?language=objc -func FileVersion_CurrentVersionOfItemAtURL(url IURL) FileVersion { - return FileVersionClass.CurrentVersionOfItemAtURL(url) -} - // Remove this version object and its associated file from the version store. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1407486-removeandreturnerror?language=objc @@ -195,30 +189,35 @@ func FileVersion_UnresolvedConflictVersionsOfItemAtURL(url IURL) []FileVersion { return FileVersionClass.UnresolvedConflictVersionsOfItemAtURL(url) } -// Replace the contents of the specified file with the contents of the current version’s file. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1412297-replaceitematurl?language=objc -func (f_ FileVersion) ReplaceItemAtURLOptionsError(url IURL, options FileVersionReplacingOptions, error unsafe.Pointer) URL { - rv := objc.Call[URL](f_, objc.Sel("replaceItemAtURL:options:error:"), url, options, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1416051-getnonlocalversionsofitematurl?language=objc +func (fc _FileVersionClass) GetNonlocalVersionsOfItemAtURLCompletionHandler(url IURL, completionHandler func(nonlocalFileVersions []FileVersion, error Error)) { + objc.Call[objc.Void](fc, objc.Sel("getNonlocalVersionsOfItemAtURL:completionHandler:"), url, completionHandler) } -// The URL identifying the location of the file associated with the file version object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1418131-url?language=objc -func (f_ FileVersion) URL() URL { - rv := objc.Call[URL](f_, objc.Sel("URL")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1416051-getnonlocalversionsofitematurl?language=objc +func FileVersion_GetNonlocalVersionsOfItemAtURLCompletionHandler(url IURL, completionHandler func(nonlocalFileVersions []FileVersion, error Error)) { + FileVersionClass.GetNonlocalVersionsOfItemAtURLCompletionHandler(url, completionHandler) } -// The modification date of the version. [Full Topic] +// A Boolean value that indicates the version object is not in conflict (YES) or is in conflict (NO). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1411506-modificationdate?language=objc -func (f_ FileVersion) ModificationDate() Date { - rv := objc.Call[Date](f_, objc.Sel("modificationDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1414906-resolved?language=objc +func (f_ FileVersion) IsResolved() bool { + rv := objc.Call[bool](f_, objc.Sel("isResolved")) return rv } +// A Boolean value that indicates the version object is not in conflict (YES) or is in conflict (NO). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1414906-resolved?language=objc +func (f_ FileVersion) SetResolved(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setResolved:"), value) +} + // A Boolean value that specifies whether the system can delete the associated file at some future time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1409988-discardable?language=objc @@ -234,58 +233,51 @@ func (f_ FileVersion) SetDiscardable(value bool) { objc.Call[objc.Void](f_, objc.Sel("setDiscardable:"), value) } -// A Boolean value indicating whether the contents of the version are in conflict with the contents of another version. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1409277-conflict?language=objc -func (f_ FileVersion) IsConflict() bool { - rv := objc.Call[bool](f_, objc.Sel("isConflict")) - return rv -} - -// The string containing the user-presentable name of the file version. [Full Topic] +// The modification date of the version. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1413855-localizedname?language=objc -func (f_ FileVersion) LocalizedName() string { - rv := objc.Call[string](f_, objc.Sel("localizedName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1411506-modificationdate?language=objc +func (f_ FileVersion) ModificationDate() Date { + rv := objc.Call[Date](f_, objc.Sel("modificationDate")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1409471-hasthumbnail?language=objc -func (f_ FileVersion) HasThumbnail() bool { - rv := objc.Call[bool](f_, objc.Sel("hasThumbnail")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1643271-originatornamecomponents?language=objc +func (f_ FileVersion) OriginatorNameComponents() PersonNameComponents { + rv := objc.Call[PersonNameComponents](f_, objc.Sel("originatorNameComponents")) return rv } -// A Boolean value that indicates the version object is not in conflict (YES) or is in conflict (NO). [Full Topic] +// The string containing the user-presentable name of the file version. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1414906-resolved?language=objc -func (f_ FileVersion) IsResolved() bool { - rv := objc.Call[bool](f_, objc.Sel("isResolved")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1413855-localizedname?language=objc +func (f_ FileVersion) LocalizedName() string { + rv := objc.Call[string](f_, objc.Sel("localizedName")) return rv } -// A Boolean value that indicates the version object is not in conflict (YES) or is in conflict (NO). [Full Topic] +// The user-presentable name of the computer on which the revision was saved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1414906-resolved?language=objc -func (f_ FileVersion) SetResolved(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setResolved:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1408866-localizednameofsavingcomputer?language=objc +func (f_ FileVersion) LocalizedNameOfSavingComputer() string { + rv := objc.Call[string](f_, objc.Sel("localizedNameOfSavingComputer")) + return rv } -// [Full Topic] +// The URL identifying the location of the file associated with the file version object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1643271-originatornamecomponents?language=objc -func (f_ FileVersion) OriginatorNameComponents() PersonNameComponents { - rv := objc.Call[PersonNameComponents](f_, objc.Sel("originatorNameComponents")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1418131-url?language=objc +func (f_ FileVersion) URL() URL { + rv := objc.Call[URL](f_, objc.Sel("URL")) return rv } -// The user-presentable name of the computer on which the revision was saved. [Full Topic] +// A Boolean value indicating whether the contents of the version are in conflict with the contents of another version. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1408866-localizednameofsavingcomputer?language=objc -func (f_ FileVersion) LocalizedNameOfSavingComputer() string { - rv := objc.Call[string](f_, objc.Sel("localizedNameOfSavingComputer")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1409277-conflict?language=objc +func (f_ FileVersion) IsConflict() bool { + rv := objc.Call[bool](f_, objc.Sel("isConflict")) return rv } @@ -297,6 +289,14 @@ func (f_ FileVersion) PersistentIdentifier() CodingObject { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1409471-hasthumbnail?language=objc +func (f_ FileVersion) HasThumbnail() bool { + rv := objc.Call[bool](f_, objc.Sel("hasThumbnail")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfileversion/1412014-haslocalcontents?language=objc diff --git a/macos/foundation/file_wrapper.gen.go b/macos/foundation/file_wrapper.gen.go index c14f8457..cffe85b3 100644 --- a/macos/foundation/file_wrapper.gen.go +++ b/macos/foundation/file_wrapper.gen.go @@ -18,28 +18,28 @@ type _FileWrapperClass struct { // An interface definition for the [FileWrapper] class. type IFileWrapper interface { objc.IObject - MatchesContentsOfURL(url IURL) bool + AddRegularFileWithContentsPreferredFilename(data []byte, fileName string) string KeyForFileWrapper(child IFileWrapper) string - WriteToURLOptionsOriginalContentsURLError(url IURL, options FileWrapperWritingOptions, originalContentsURL IURL, outError unsafe.Pointer) bool + MatchesContentsOfURL(url IURL) bool RemoveFileWrapper(child IFileWrapper) - AddFileWrapper(child IFileWrapper) string - AddRegularFileWithContentsPreferredFilename(data []byte, fileName string) string ReadFromURLOptionsError(url IURL, options FileWrapperReadingOptions, outError unsafe.Pointer) bool - SerializedRepresentation() []byte - FileWrappers() map[string]FileWrapper - RegularFileContents() []byte + WriteToURLOptionsOriginalContentsURLError(url IURL, options FileWrapperWritingOptions, originalContentsURL IURL, outError unsafe.Pointer) bool + AddFileWrapper(child IFileWrapper) string Filename() string SetFilename(value string) - SymbolicLinkDestinationURL() URL + IsSymbolicLink() bool + FileWrappers() map[string]FileWrapper Icon() objc.Object SetIcon(value objc.IObject) + IsDirectory() bool PreferredFilename() string SetPreferredFilename(value string) - IsDirectory() bool - IsSymbolicLink() bool IsRegularFile() bool + SymbolicLinkDestinationURL() URL FileAttributes() map[string]objc.Object SetFileAttributes(value map[string]objc.IObject) + SerializedRepresentation() []byte + RegularFileContents() []byte } // A representation of a node (a file, directory, or symbolic link) in the file system. [Full Topic] @@ -55,44 +55,44 @@ func FileWrapperFrom(ptr unsafe.Pointer) FileWrapper { } } -func (f_ FileWrapper) InitSymbolicLinkWithDestinationURL(url IURL) FileWrapper { - rv := objc.Call[FileWrapper](f_, objc.Sel("initSymbolicLinkWithDestinationURL:"), url) +func (f_ FileWrapper) InitRegularFileWithContents(contents []byte) FileWrapper { + rv := objc.Call[FileWrapper](f_, objc.Sel("initRegularFileWithContents:"), contents) return rv } -// Initializes the receiver as a symbolic-link file wrapper that links to a specified file. [Full Topic] +// Initializes the receiver as a regular-file file wrapper. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1415098-initsymboliclinkwithdestinationu?language=objc -func NewFileWrapperSymbolicLinkWithDestinationURL(url IURL) FileWrapper { - instance := FileWrapperClass.Alloc().InitSymbolicLinkWithDestinationURL(url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1409508-initregularfilewithcontents?language=objc +func NewFileWrapperRegularFileWithContents(contents []byte) FileWrapper { + instance := FileWrapperClass.Alloc().InitRegularFileWithContents(contents) instance.Autorelease() return instance } -func (f_ FileWrapper) InitRegularFileWithContents(contents []byte) FileWrapper { - rv := objc.Call[FileWrapper](f_, objc.Sel("initRegularFileWithContents:"), contents) +func (f_ FileWrapper) InitSymbolicLinkWithDestinationURL(url IURL) FileWrapper { + rv := objc.Call[FileWrapper](f_, objc.Sel("initSymbolicLinkWithDestinationURL:"), url) return rv } -// Initializes the receiver as a regular-file file wrapper. [Full Topic] +// Initializes the receiver as a symbolic-link file wrapper that links to a specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1409508-initregularfilewithcontents?language=objc -func NewFileWrapperRegularFileWithContents(contents []byte) FileWrapper { - instance := FileWrapperClass.Alloc().InitRegularFileWithContents(contents) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1415098-initsymboliclinkwithdestinationu?language=objc +func NewFileWrapperSymbolicLinkWithDestinationURL(url IURL) FileWrapper { + instance := FileWrapperClass.Alloc().InitSymbolicLinkWithDestinationURL(url) instance.Autorelease() return instance } -func (f_ FileWrapper) InitWithURLOptionsError(url IURL, options FileWrapperReadingOptions, outError unsafe.Pointer) FileWrapper { - rv := objc.Call[FileWrapper](f_, objc.Sel("initWithURL:options:error:"), url, options, outError) +func (f_ FileWrapper) InitWithSerializedRepresentation(serializeRepresentation []byte) FileWrapper { + rv := objc.Call[FileWrapper](f_, objc.Sel("initWithSerializedRepresentation:"), serializeRepresentation) return rv } -// Initializes a file wrapper instance whose kind is determined by the type of file-system node located by the URL. [Full Topic] +// Initializes the receiver as a regular-file file wrapper from given serialized data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1415658-initwithurl?language=objc -func NewFileWrapperWithURLOptionsError(url IURL, options FileWrapperReadingOptions, outError unsafe.Pointer) FileWrapper { - instance := FileWrapperClass.Alloc().InitWithURLOptionsError(url, options, outError) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1407515-initwithserializedrepresentation?language=objc +func NewFileWrapperWithSerializedRepresentation(serializeRepresentation []byte) FileWrapper { + instance := FileWrapperClass.Alloc().InitWithSerializedRepresentation(serializeRepresentation) instance.Autorelease() return instance } @@ -111,16 +111,16 @@ func NewFileWrapperDirectoryWithFileWrappers(childrenByPreferredName map[string] return instance } -func (f_ FileWrapper) InitWithSerializedRepresentation(serializeRepresentation []byte) FileWrapper { - rv := objc.Call[FileWrapper](f_, objc.Sel("initWithSerializedRepresentation:"), serializeRepresentation) +func (f_ FileWrapper) InitWithURLOptionsError(url IURL, options FileWrapperReadingOptions, outError unsafe.Pointer) FileWrapper { + rv := objc.Call[FileWrapper](f_, objc.Sel("initWithURL:options:error:"), url, options, outError) return rv } -// Initializes the receiver as a regular-file file wrapper from given serialized data. [Full Topic] +// Initializes a file wrapper instance whose kind is determined by the type of file-system node located by the URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1407515-initwithserializedrepresentation?language=objc -func NewFileWrapperWithSerializedRepresentation(serializeRepresentation []byte) FileWrapper { - instance := FileWrapperClass.Alloc().InitWithSerializedRepresentation(serializeRepresentation) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1415658-initwithurl?language=objc +func NewFileWrapperWithURLOptionsError(url IURL, options FileWrapperReadingOptions, outError unsafe.Pointer) FileWrapper { + instance := FileWrapperClass.Alloc().InitWithURLOptionsError(url, options, outError) instance.Autorelease() return instance } @@ -145,11 +145,11 @@ func (f_ FileWrapper) Init() FileWrapper { return rv } -// Indicates whether the contents of a file wrapper matches a directory, regular file, or symbolic link on disk. [Full Topic] +// Creates a regular-file file wrapper with the given contents and adds it to the receiver, which must be a directory file wrapper. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1408360-matchescontentsofurl?language=objc -func (f_ FileWrapper) MatchesContentsOfURL(url IURL) bool { - rv := objc.Call[bool](f_, objc.Sel("matchesContentsOfURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1418374-addregularfilewithcontents?language=objc +func (f_ FileWrapper) AddRegularFileWithContentsPreferredFilename(data []byte, fileName string) string { + rv := objc.Call[string](f_, objc.Sel("addRegularFileWithContents:preferredFilename:"), data, fileName) return rv } @@ -161,11 +161,11 @@ func (f_ FileWrapper) KeyForFileWrapper(child IFileWrapper) string { return rv } -// Recursively writes the entire contents of a file wrapper to a given file-system URL. [Full Topic] +// Indicates whether the contents of a file wrapper matches a directory, regular file, or symbolic link on disk. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1415981-writetourl?language=objc -func (f_ FileWrapper) WriteToURLOptionsOriginalContentsURLError(url IURL, options FileWrapperWritingOptions, originalContentsURL IURL, outError unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("writeToURL:options:originalContentsURL:error:"), url, options, originalContentsURL, outError) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1408360-matchescontentsofurl?language=objc +func (f_ FileWrapper) MatchesContentsOfURL(url IURL) bool { + rv := objc.Call[bool](f_, objc.Sel("matchesContentsOfURL:"), url) return rv } @@ -176,22 +176,6 @@ func (f_ FileWrapper) RemoveFileWrapper(child IFileWrapper) { objc.Call[objc.Void](f_, objc.Sel("removeFileWrapper:"), child) } -// Adds a child file wrapper to the receiver, which must be a directory file wrapper. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1415067-addfilewrapper?language=objc -func (f_ FileWrapper) AddFileWrapper(child IFileWrapper) string { - rv := objc.Call[string](f_, objc.Sel("addFileWrapper:"), child) - return rv -} - -// Creates a regular-file file wrapper with the given contents and adds it to the receiver, which must be a directory file wrapper. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1418374-addregularfilewithcontents?language=objc -func (f_ FileWrapper) AddRegularFileWithContentsPreferredFilename(data []byte, fileName string) string { - rv := objc.Call[string](f_, objc.Sel("addRegularFileWithContents:preferredFilename:"), data, fileName) - return rv -} - // Recursively rereads the entire contents of a file wrapper from the specified location on disk. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1411645-readfromurl?language=objc @@ -200,27 +184,19 @@ func (f_ FileWrapper) ReadFromURLOptionsError(url IURL, options FileWrapperReadi return rv } -// The contents of the file wrapper as an opaque data object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1412119-serializedrepresentation?language=objc -func (f_ FileWrapper) SerializedRepresentation() []byte { - rv := objc.Call[[]byte](f_, objc.Sel("serializedRepresentation")) - return rv -} - -// The file wrappers contained by a directory file wrapper. [Full Topic] +// Recursively writes the entire contents of a file wrapper to a given file-system URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1409437-filewrappers?language=objc -func (f_ FileWrapper) FileWrappers() map[string]FileWrapper { - rv := objc.Call[map[string]FileWrapper](f_, objc.Sel("fileWrappers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1415981-writetourl?language=objc +func (f_ FileWrapper) WriteToURLOptionsOriginalContentsURLError(url IURL, options FileWrapperWritingOptions, originalContentsURL IURL, outError unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("writeToURL:options:originalContentsURL:error:"), url, options, originalContentsURL, outError) return rv } -// The contents of the file-system node associated with a regular-file file wrapper. [Full Topic] +// Adds a child file wrapper to the receiver, which must be a directory file wrapper. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1410178-regularfilecontents?language=objc -func (f_ FileWrapper) RegularFileContents() []byte { - rv := objc.Call[[]byte](f_, objc.Sel("regularFileContents")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1415067-addfilewrapper?language=objc +func (f_ FileWrapper) AddFileWrapper(child IFileWrapper) string { + rv := objc.Call[string](f_, objc.Sel("addFileWrapper:"), child) return rv } @@ -239,11 +215,19 @@ func (f_ FileWrapper) SetFilename(value string) { objc.Call[objc.Void](f_, objc.Sel("setFilename:"), value) } -// The URL referenced by the file wrapper object, which must be a symbolic-link file wrapper. [Full Topic] +// A boolean that indicates whether the file wrapper object is a symbolic-link file wrapper. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1408364-symboliclinkdestinationurl?language=objc -func (f_ FileWrapper) SymbolicLinkDestinationURL() URL { - rv := objc.Call[URL](f_, objc.Sel("symbolicLinkDestinationURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1408125-symboliclink?language=objc +func (f_ FileWrapper) IsSymbolicLink() bool { + rv := objc.Call[bool](f_, objc.Sel("isSymbolicLink")) + return rv +} + +// The file wrappers contained by a directory file wrapper. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1409437-filewrappers?language=objc +func (f_ FileWrapper) FileWrappers() map[string]FileWrapper { + rv := objc.Call[map[string]FileWrapper](f_, objc.Sel("fileWrappers")) return rv } @@ -262,6 +246,14 @@ func (f_ FileWrapper) SetIcon(value objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("setIcon:"), value) } +// This property contains a boolean value indicating whether the file wrapper is a directory file wrapper. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1409030-directory?language=objc +func (f_ FileWrapper) IsDirectory() bool { + rv := objc.Call[bool](f_, objc.Sel("isDirectory")) + return rv +} + // The preferred filename for the file wrapper object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1409368-preferredfilename?language=objc @@ -277,22 +269,6 @@ func (f_ FileWrapper) SetPreferredFilename(value string) { objc.Call[objc.Void](f_, objc.Sel("setPreferredFilename:"), value) } -// This property contains a boolean value indicating whether the file wrapper is a directory file wrapper. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1409030-directory?language=objc -func (f_ FileWrapper) IsDirectory() bool { - rv := objc.Call[bool](f_, objc.Sel("isDirectory")) - return rv -} - -// A boolean that indicates whether the file wrapper object is a symbolic-link file wrapper. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1408125-symboliclink?language=objc -func (f_ FileWrapper) IsSymbolicLink() bool { - rv := objc.Call[bool](f_, objc.Sel("isSymbolicLink")) - return rv -} - // This property contains a boolean value that indicates whether the file wrapper object is a regular-file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1415680-regularfile?language=objc @@ -301,6 +277,14 @@ func (f_ FileWrapper) IsRegularFile() bool { return rv } +// The URL referenced by the file wrapper object, which must be a symbolic-link file wrapper. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1408364-symboliclinkdestinationurl?language=objc +func (f_ FileWrapper) SymbolicLinkDestinationURL() URL { + rv := objc.Call[URL](f_, objc.Sel("symbolicLinkDestinationURL")) + return rv +} + // A dictionary of file attributes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1412745-fileattributes?language=objc @@ -315,3 +299,19 @@ func (f_ FileWrapper) FileAttributes() map[string]objc.Object { func (f_ FileWrapper) SetFileAttributes(value map[string]objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("setFileAttributes:"), value) } + +// The contents of the file wrapper as an opaque data object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1412119-serializedrepresentation?language=objc +func (f_ FileWrapper) SerializedRepresentation() []byte { + rv := objc.Call[[]byte](f_, objc.Sel("serializedRepresentation")) + return rv +} + +// The contents of the file-system node associated with a regular-file file wrapper. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1410178-regularfilecontents?language=objc +func (f_ FileWrapper) RegularFileContents() []byte { + rv := objc.Call[[]byte](f_, objc.Sel("regularFileContents")) + return rv +} diff --git a/macos/foundation/formatter.gen.go b/macos/foundation/formatter.gen.go index da0c9258..0c3f7ca6 100644 --- a/macos/foundation/formatter.gen.go +++ b/macos/foundation/formatter.gen.go @@ -18,12 +18,11 @@ type _FormatterClass struct { // An interface definition for the [Formatter] class. type IFormatter interface { objc.IObject - StringForObjectValue(obj objc.IObject) string EditingStringForObjectValue(obj objc.IObject) string - IsPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription(partialStringPtr unsafe.Pointer, proposedSelRangePtr RangePointer, origString string, origSelRange Range, error unsafe.Pointer) bool + StringForObjectValue(obj objc.IObject) string + GetObjectValueForStringErrorDescription(obj unsafe.Pointer, string_ string, error unsafe.Pointer) bool IsPartialStringValidNewEditingStringErrorDescription(partialString string, newString unsafe.Pointer, error unsafe.Pointer) bool AttributedStringForObjectValueWithDefaultAttributes(obj objc.IObject, attrs map[AttributedStringKey]objc.IObject) AttributedString - GetObjectValueForStringErrorDescription(obj unsafe.Pointer, string_ string, error unsafe.Pointer) bool } // An abstract class that declares an interface for objects that create, interpret, and validate the textual representation of values. [Full Topic] @@ -59,27 +58,27 @@ func (f_ Formatter) Init() Formatter { return rv } -// The default implementation of this method raises an exception. [Full Topic] +// The default implementation of this method invokes stringForObjectValue:. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsformatter/1415993-stringforobjectvalue?language=objc -func (f_ Formatter) StringForObjectValue(obj objc.IObject) string { - rv := objc.Call[string](f_, objc.Sel("stringForObjectValue:"), obj) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsformatter/1416333-editingstringforobjectvalue?language=objc +func (f_ Formatter) EditingStringForObjectValue(obj objc.IObject) string { + rv := objc.Call[string](f_, objc.Sel("editingStringForObjectValue:"), obj) return rv } -// The default implementation of this method invokes [foundation/nsformatter/stringforobjectvalue]. [Full Topic] +// The default implementation of this method raises an exception. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsformatter/1416333-editingstringforobjectvalue?language=objc -func (f_ Formatter) EditingStringForObjectValue(obj objc.IObject) string { - rv := objc.Call[string](f_, objc.Sel("editingStringForObjectValue:"), obj) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsformatter/1415993-stringforobjectvalue?language=objc +func (f_ Formatter) StringForObjectValue(obj objc.IObject) string { + rv := objc.Call[string](f_, objc.Sel("stringForObjectValue:"), obj) return rv } -// This method should be implemented in subclasses that want to validate user changes to a string in a field, where the user changes are not necessarily at the end of the string, and preserve the selection (or set a different one, such as selecting the erroneous part of the string the user has typed). [Full Topic] +// The default implementation of this method raises an exception. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsformatter/1415263-ispartialstringvalid?language=objc -func (f_ Formatter) IsPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription(partialStringPtr unsafe.Pointer, proposedSelRangePtr RangePointer, origString string, origSelRange Range, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"), partialStringPtr, proposedSelRangePtr, origString, origSelRange, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsformatter/1408927-getobjectvalue?language=objc +func (f_ Formatter) GetObjectValueForStringErrorDescription(obj unsafe.Pointer, string_ string, error unsafe.Pointer) bool { + rv := objc.Call[bool](f_, objc.Sel("getObjectValue:forString:errorDescription:"), obj, string_, error) return rv } @@ -98,11 +97,3 @@ func (f_ Formatter) AttributedStringForObjectValueWithDefaultAttributes(obj objc rv := objc.Call[AttributedString](f_, objc.Sel("attributedStringForObjectValue:withDefaultAttributes:"), obj, attrs) return rv } - -// The default implementation of this method raises an exception. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsformatter/1408927-getobjectvalue?language=objc -func (f_ Formatter) GetObjectValueForStringErrorDescription(obj unsafe.Pointer, string_ string, error unsafe.Pointer) bool { - rv := objc.Call[bool](f_, objc.Sel("getObjectValue:forString:errorDescription:"), obj, string_, error) - return rv -} diff --git a/macos/foundation/hash_table.gen.go b/macos/foundation/hash_table.gen.go deleted file mode 100644 index 156fcfd1..00000000 --- a/macos/foundation/hash_table.gen.go +++ /dev/null @@ -1,259 +0,0 @@ -// Code generated by DarwinKit. DO NOT EDIT. - -package foundation - -import ( - "unsafe" - - "github.com/progrium/darwinkit/objc" -) - -// The class instance for the [HashTable] class. -var HashTableClass = _HashTableClass{objc.GetClass("NSHashTable")} - -type _HashTableClass struct { - objc.Class -} - -// An interface definition for the [HashTable] class. -type IHashTable interface { - objc.IObject - IsEqualToHashTable(other IHashTable) bool - RemoveAllObjects() - IsSubsetOfHashTable(other IHashTable) bool - IntersectHashTable(other IHashTable) - UnionHashTable(other IHashTable) - Member(object objc.IObject) objc.Object - ObjectEnumerator() Enumerator - IntersectsHashTable(other IHashTable) bool - MinusHashTable(other IHashTable) - RemoveObject(object objc.IObject) - AddObject(object objc.IObject) - ContainsObject(anObject objc.IObject) bool - Count() uint - AllObjects() []objc.Object - PointerFunctions() PointerFunctions - AnyObject() objc.Object - SetRepresentation() Set -} - -// A collection similar to a set, but with broader range of available memory semantics. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable?language=objc -type HashTable struct { - objc.Object -} - -func HashTableFrom(ptr unsafe.Pointer) HashTable { - return HashTable{ - Object: objc.ObjectFrom(ptr), - } -} - -func (h_ HashTable) InitWithOptionsCapacity(options PointerFunctionsOptions, initialCapacity uint) HashTable { - rv := objc.Call[HashTable](h_, objc.Sel("initWithOptions:capacity:"), options, initialCapacity) - return rv -} - -// Returns a hash table initialized with the given attributes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1411066-initwithoptions?language=objc -func NewHashTableWithOptionsCapacity(options PointerFunctionsOptions, initialCapacity uint) HashTable { - instance := HashTableClass.Alloc().InitWithOptionsCapacity(options, initialCapacity) - instance.Autorelease() - return instance -} - -func (h_ HashTable) InitWithPointerFunctionsCapacity(functions IPointerFunctions, initialCapacity uint) HashTable { - rv := objc.Call[HashTable](h_, objc.Sel("initWithPointerFunctions:capacity:"), functions, initialCapacity) - return rv -} - -// Returns a hash table initialized with the given functions and capacity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1416331-initwithpointerfunctions?language=objc -func NewHashTableWithPointerFunctionsCapacity(functions IPointerFunctions, initialCapacity uint) HashTable { - instance := HashTableClass.Alloc().InitWithPointerFunctionsCapacity(functions, initialCapacity) - instance.Autorelease() - return instance -} - -func (hc _HashTableClass) Alloc() HashTable { - rv := objc.Call[HashTable](hc, objc.Sel("alloc")) - return rv -} - -func (hc _HashTableClass) New() HashTable { - rv := objc.Call[HashTable](hc, objc.Sel("new")) - rv.Autorelease() - return rv -} - -func NewHashTable() HashTable { - return HashTableClass.New() -} - -func (h_ HashTable) Init() HashTable { - rv := objc.Call[HashTable](h_, objc.Sel("init")) - return rv -} - -// Returns a Boolean value that indicates whether a given hash table is equal to the receiving hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1410816-isequaltohashtable?language=objc -func (h_ HashTable) IsEqualToHashTable(other IHashTable) bool { - rv := objc.Call[bool](h_, objc.Sel("isEqualToHashTable:"), other) - return rv -} - -// Removes all objects from the hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1415814-removeallobjects?language=objc -func (h_ HashTable) RemoveAllObjects() { - objc.Call[objc.Void](h_, objc.Sel("removeAllObjects")) -} - -// Returns a Boolean value that indicates whether every element in the receiving hash table is also present in another given hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1417518-issubsetofhashtable?language=objc -func (h_ HashTable) IsSubsetOfHashTable(other IHashTable) bool { - rv := objc.Call[bool](h_, objc.Sel("isSubsetOfHashTable:"), other) - return rv -} - -// Removes from the receiving hash table each element that isn’t a member of another given hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1408509-intersecthashtable?language=objc -func (h_ HashTable) IntersectHashTable(other IHashTable) { - objc.Call[objc.Void](h_, objc.Sel("intersectHashTable:"), other) -} - -// Adds each element in another given hash table to the receiving hash table, if not present. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1413481-unionhashtable?language=objc -func (h_ HashTable) UnionHashTable(other IHashTable) { - objc.Call[objc.Void](h_, objc.Sel("unionHashTable:"), other) -} - -// Determines whether the hash table contains a given object, and returns that object if it is present [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1417991-member?language=objc -func (h_ HashTable) Member(object objc.IObject) objc.Object { - rv := objc.Call[objc.Object](h_, objc.Sel("member:"), object) - return rv -} - -// Returns an enumerator object that lets you access each object in the hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1416308-objectenumerator?language=objc -func (h_ HashTable) ObjectEnumerator() Enumerator { - rv := objc.Call[Enumerator](h_, objc.Sel("objectEnumerator")) - return rv -} - -// Returns a Boolean value that indicates whether a given hash table intersects with the receiving hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1416474-intersectshashtable?language=objc -func (h_ HashTable) IntersectsHashTable(other IHashTable) bool { - rv := objc.Call[bool](h_, objc.Sel("intersectsHashTable:"), other) - return rv -} - -// Removes each element in another given hash table from the receiving hash table, if present. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1414557-minushashtable?language=objc -func (h_ HashTable) MinusHashTable(other IHashTable) { - objc.Call[objc.Void](h_, objc.Sel("minusHashTable:"), other) -} - -// Removes a given object from the hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1415369-removeobject?language=objc -func (h_ HashTable) RemoveObject(object objc.IObject) { - objc.Call[objc.Void](h_, objc.Sel("removeObject:"), object) -} - -// Returns a new hash table for storing weak references to its contents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1412241-weakobjectshashtable?language=objc -func (hc _HashTableClass) WeakObjectsHashTable() HashTable { - rv := objc.Call[HashTable](hc, objc.Sel("weakObjectsHashTable")) - return rv -} - -// Returns a new hash table for storing weak references to its contents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1412241-weakobjectshashtable?language=objc -func HashTable_WeakObjectsHashTable() HashTable { - return HashTableClass.WeakObjectsHashTable() -} - -// Adds a given object to the hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1411690-addobject?language=objc -func (h_ HashTable) AddObject(object objc.IObject) { - objc.Call[objc.Void](h_, objc.Sel("addObject:"), object) -} - -// Returns a Boolean value that indicates whether the hash table contains a given object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1415113-containsobject?language=objc -func (h_ HashTable) ContainsObject(anObject objc.IObject) bool { - rv := objc.Call[bool](h_, objc.Sel("containsObject:"), anObject) - return rv -} - -// Returns a hash table with given pointer functions options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1415284-hashtablewithoptions?language=objc -func (hc _HashTableClass) HashTableWithOptions(options PointerFunctionsOptions) HashTable { - rv := objc.Call[HashTable](hc, objc.Sel("hashTableWithOptions:"), options) - return rv -} - -// Returns a hash table with given pointer functions options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1415284-hashtablewithoptions?language=objc -func HashTable_HashTableWithOptions(options PointerFunctionsOptions) HashTable { - return HashTableClass.HashTableWithOptions(options) -} - -// The number of elements in the hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1413142-count?language=objc -func (h_ HashTable) Count() uint { - rv := objc.Call[uint](h_, objc.Sel("count")) - return rv -} - -// The hash table’s members. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1410223-allobjects?language=objc -func (h_ HashTable) AllObjects() []objc.Object { - rv := objc.Call[[]objc.Object](h_, objc.Sel("allObjects")) - return rv -} - -// The pointer functions for the hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1417398-pointerfunctions?language=objc -func (h_ HashTable) PointerFunctions() PointerFunctions { - rv := objc.Call[PointerFunctions](h_, objc.Sel("pointerFunctions")) - return rv -} - -// One of the objects in the hash table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1410639-anyobject?language=objc -func (h_ HashTable) AnyObject() objc.Object { - rv := objc.Call[objc.Object](h_, objc.Sel("anyObject")) - return rv -} - -// A set that contains the hash table’s members. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshashtable/1414641-setrepresentation?language=objc -func (h_ HashTable) SetRepresentation() Set { - rv := objc.Call[Set](h_, objc.Sel("setRepresentation")) - return rv -} diff --git a/macos/foundation/http_cookie.gen.go b/macos/foundation/http_cookie.gen.go index 25f56691..3d1b0174 100644 --- a/macos/foundation/http_cookie.gen.go +++ b/macos/foundation/http_cookie.gen.go @@ -18,20 +18,20 @@ type _HTTPCookieClass struct { // An interface definition for the [HTTPCookie] class. type IHTTPCookie interface { objc.IObject + Domain() string + Path() string + Version() uint + CommentURL() URL + Value() string Name() string + IsHTTPOnly() bool + Comment() string Properties() map[HTTPCookiePropertyKey]objc.Object IsSecure() bool - Value() string - SameSitePolicy() HTTPCookieStringPolicy IsSessionOnly() bool - Path() string - Version() uint - IsHTTPOnly() bool ExpiresDate() Date + SameSitePolicy() HTTPCookieStringPolicy PortList() []Number - CommentURL() URL - Comment() string - Domain() string } // A representation of an HTTP cookie. [Full Topic] @@ -96,6 +96,21 @@ func HTTPCookie_CookiesWithResponseHeaderFieldsForURL(headerFields map[string]st return HTTPCookieClass.CookiesWithResponseHeaderFieldsForURL(headerFields, URL) } +// Converts an array of cookies to a dictionary of header fields. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393021-requestheaderfieldswithcookies?language=objc +func (hc _HTTPCookieClass) RequestHeaderFieldsWithCookies(cookies []IHTTPCookie) map[string]string { + rv := objc.Call[map[string]string](hc, objc.Sel("requestHeaderFieldsWithCookies:"), cookies) + return rv +} + +// Converts an array of cookies to a dictionary of header fields. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393021-requestheaderfieldswithcookies?language=objc +func HTTPCookie_RequestHeaderFieldsWithCookies(cookies []IHTTPCookie) map[string]string { + return HTTPCookieClass.RequestHeaderFieldsWithCookies(cookies) +} + // Creates and initializes an HTTP cookie object using the provided properties. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392967-cookiewithproperties?language=objc @@ -111,42 +126,35 @@ func HTTPCookie_CookieWithProperties(properties map[HTTPCookiePropertyKey]objc.I return HTTPCookieClass.CookieWithProperties(properties) } -// Converts an array of cookies to a dictionary of header fields. [Full Topic] +// The domain of the cookie. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393021-requestheaderfieldswithcookies?language=objc -func (hc _HTTPCookieClass) RequestHeaderFieldsWithCookies(cookies []IHTTPCookie) map[string]string { - rv := objc.Call[map[string]string](hc, objc.Sel("requestHeaderFieldsWithCookies:"), cookies) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393015-domain?language=objc +func (h_ HTTPCookie) Domain() string { + rv := objc.Call[string](h_, objc.Sel("domain")) return rv } -// Converts an array of cookies to a dictionary of header fields. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393021-requestheaderfieldswithcookies?language=objc -func HTTPCookie_RequestHeaderFieldsWithCookies(cookies []IHTTPCookie) map[string]string { - return HTTPCookieClass.RequestHeaderFieldsWithCookies(cookies) -} - -// The cookie’s name. [Full Topic] +// The cookie’s path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393013-name?language=objc -func (h_ HTTPCookie) Name() string { - rv := objc.Call[string](h_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392981-path?language=objc +func (h_ HTTPCookie) Path() string { + rv := objc.Call[string](h_, objc.Sel("path")) return rv } -// The cookie’s properties. [Full Topic] +// The cookie’s version. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393017-properties?language=objc -func (h_ HTTPCookie) Properties() map[HTTPCookiePropertyKey]objc.Object { - rv := objc.Call[map[HTTPCookiePropertyKey]objc.Object](h_, objc.Sel("properties")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392993-version?language=objc +func (h_ HTTPCookie) Version() uint { + rv := objc.Call[uint](h_, objc.Sel("version")) return rv } -// A Boolean value that indicates whether the cookie may only be sent over secure channels. [Full Topic] +// The cookie’s comment URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393025-secure?language=objc -func (h_ HTTPCookie) IsSecure() bool { - rv := objc.Call[bool](h_, objc.Sel("isSecure")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392987-commenturl?language=objc +func (h_ HTTPCookie) CommentURL() URL { + rv := objc.Call[URL](h_, objc.Sel("commentURL")) return rv } @@ -158,82 +166,74 @@ func (h_ HTTPCookie) Value() string { return rv } -// A Boolean value that indicates whether to restrict the cookie to requests sent back to the same site that created it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/3042420-samesitepolicy?language=objc -func (h_ HTTPCookie) SameSitePolicy() HTTPCookieStringPolicy { - rv := objc.Call[HTTPCookieStringPolicy](h_, objc.Sel("sameSitePolicy")) - return rv -} - -// A Boolean value that indicates whether the cookie should be discarded at the end of the session (regardless of expiration date). [Full Topic] +// The cookie’s name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392991-sessiononly?language=objc -func (h_ HTTPCookie) IsSessionOnly() bool { - rv := objc.Call[bool](h_, objc.Sel("isSessionOnly")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393013-name?language=objc +func (h_ HTTPCookie) Name() string { + rv := objc.Call[string](h_, objc.Sel("name")) return rv } -// The cookie’s path. [Full Topic] +// A Boolean value that indicates whether the cookie should only be sent to HTTP servers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392981-path?language=objc -func (h_ HTTPCookie) Path() string { - rv := objc.Call[string](h_, objc.Sel("path")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392969-httponly?language=objc +func (h_ HTTPCookie) IsHTTPOnly() bool { + rv := objc.Call[bool](h_, objc.Sel("isHTTPOnly")) return rv } -// The cookie’s version. [Full Topic] +// The cookie’s comment string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392993-version?language=objc -func (h_ HTTPCookie) Version() uint { - rv := objc.Call[uint](h_, objc.Sel("version")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392997-comment?language=objc +func (h_ HTTPCookie) Comment() string { + rv := objc.Call[string](h_, objc.Sel("comment")) return rv } -// A Boolean value that indicates whether the cookie should only be sent to HTTP servers. [Full Topic] +// The cookie’s properties. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392969-httponly?language=objc -func (h_ HTTPCookie) IsHTTPOnly() bool { - rv := objc.Call[bool](h_, objc.Sel("isHTTPOnly")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393017-properties?language=objc +func (h_ HTTPCookie) Properties() map[HTTPCookiePropertyKey]objc.Object { + rv := objc.Call[map[HTTPCookiePropertyKey]objc.Object](h_, objc.Sel("properties")) return rv } -// The cookie’s expiration date. [Full Topic] +// A Boolean value that indicates whether the cookie may only be sent over secure channels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393019-expiresdate?language=objc -func (h_ HTTPCookie) ExpiresDate() Date { - rv := objc.Call[Date](h_, objc.Sel("expiresDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393025-secure?language=objc +func (h_ HTTPCookie) IsSecure() bool { + rv := objc.Call[bool](h_, objc.Sel("isSecure")) return rv } -// The cookie’s port list. [Full Topic] +// A Boolean value that indicates whether the cookie should be discarded at the end of the session (regardless of expiration date). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393027-portlist?language=objc -func (h_ HTTPCookie) PortList() []Number { - rv := objc.Call[[]Number](h_, objc.Sel("portList")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392991-sessiononly?language=objc +func (h_ HTTPCookie) IsSessionOnly() bool { + rv := objc.Call[bool](h_, objc.Sel("isSessionOnly")) return rv } -// The cookie’s comment URL. [Full Topic] +// The cookie’s expiration date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392987-commenturl?language=objc -func (h_ HTTPCookie) CommentURL() URL { - rv := objc.Call[URL](h_, objc.Sel("commentURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393019-expiresdate?language=objc +func (h_ HTTPCookie) ExpiresDate() Date { + rv := objc.Call[Date](h_, objc.Sel("expiresDate")) return rv } -// The cookie’s comment string. [Full Topic] +// A Boolean value that indicates whether to restrict the cookie to requests sent back to the same site that created it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1392997-comment?language=objc -func (h_ HTTPCookie) Comment() string { - rv := objc.Call[string](h_, objc.Sel("comment")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/3042420-samesitepolicy?language=objc +func (h_ HTTPCookie) SameSitePolicy() HTTPCookieStringPolicy { + rv := objc.Call[HTTPCookieStringPolicy](h_, objc.Sel("sameSitePolicy")) return rv } -// The domain of the cookie. [Full Topic] +// The cookie’s port list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393015-domain?language=objc -func (h_ HTTPCookie) Domain() string { - rv := objc.Call[string](h_, objc.Sel("domain")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393027-portlist?language=objc +func (h_ HTTPCookie) PortList() []Number { + rv := objc.Call[[]Number](h_, objc.Sel("portList")) return rv } diff --git a/macos/foundation/http_cookie_storage.gen.go b/macos/foundation/http_cookie_storage.gen.go index f4c51db3..0acd9e91 100644 --- a/macos/foundation/http_cookie_storage.gen.go +++ b/macos/foundation/http_cookie_storage.gen.go @@ -18,14 +18,14 @@ type _HTTPCookieStorageClass struct { // An interface definition for the [HTTPCookieStorage] class. type IHTTPCookieStorage interface { objc.IObject - CookiesForURL(URL IURL) []HTTPCookie DeleteCookie(cookie IHTTPCookie) - SetCookie(cookie IHTTPCookie) + GetCookiesForTaskCompletionHandler(task IURLSessionTask, completionHandler func(cookies []HTTPCookie)) StoreCookiesForTask(cookies []IHTTPCookie, task IURLSessionTask) - SetCookiesForURLMainDocumentURL(cookies []IHTTPCookie, URL IURL, mainDocumentURL IURL) SortedCookiesUsingDescriptors(sortOrder []ISortDescriptor) []HTTPCookie + CookiesForURL(URL IURL) []HTTPCookie RemoveCookiesSinceDate(date IDate) - GetCookiesForTaskCompletionHandler(task IURLSessionTask, completionHandler func(cookies []HTTPCookie)) + SetCookie(cookie IHTTPCookie) + SetCookiesForURLMainDocumentURL(cookies []IHTTPCookie, URL IURL, mainDocumentURL IURL) Cookies() []HTTPCookie CookieAcceptPolicy() HTTPCookieAcceptPolicy SetCookieAcceptPolicy(value HTTPCookieAcceptPolicy) @@ -64,14 +64,6 @@ func (h_ HTTPCookieStorage) Init() HTTPCookieStorage { return rv } -// Returns all the cookie storage’s cookies that are sent to a specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1412100-cookiesforurl?language=objc -func (h_ HTTPCookieStorage) CookiesForURL(URL IURL) []HTTPCookie { - rv := objc.Call[[]HTTPCookie](h_, objc.Sel("cookiesForURL:"), URL) - return rv -} - // Deletes the specified cookie from the cookie storage. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1409218-deletecookie?language=objc @@ -79,11 +71,11 @@ func (h_ HTTPCookieStorage) DeleteCookie(cookie IHTTPCookie) { objc.Call[objc.Void](h_, objc.Sel("deleteCookie:"), cookie) } -// Stores a specified cookie in the cookie storage if the cookie accept policy permits. [Full Topic] +// Fetches cookies relevant to the specified task and passes them to the completion handler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1418356-setcookie?language=objc -func (h_ HTTPCookieStorage) SetCookie(cookie IHTTPCookie) { - objc.Call[objc.Void](h_, objc.Sel("setCookie:"), cookie) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1408517-getcookiesfortask?language=objc +func (h_ HTTPCookieStorage) GetCookiesForTaskCompletionHandler(task IURLSessionTask, completionHandler func(cookies []HTTPCookie)) { + objc.Call[objc.Void](h_, objc.Sel("getCookiesForTask:completionHandler:"), task, completionHandler) } // Stores an array of cookies in the cookie storage, on behalf of the provided task, if the cookie accept policy permits. [Full Topic] @@ -93,13 +85,6 @@ func (h_ HTTPCookieStorage) StoreCookiesForTask(cookies []IHTTPCookie, task IURL objc.Call[objc.Void](h_, objc.Sel("storeCookies:forTask:"), cookies, task) } -// Adds an array of cookies to the cookie storage if the storage’s cookie acceptance policy permits. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1412510-setcookies?language=objc -func (h_ HTTPCookieStorage) SetCookiesForURLMainDocumentURL(cookies []IHTTPCookie, URL IURL, mainDocumentURL IURL) { - objc.Call[objc.Void](h_, objc.Sel("setCookies:forURL:mainDocumentURL:"), cookies, URL, mainDocumentURL) -} - // Returns the cookie storage instance for the container associated with the specified app group identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1411361-sharedcookiestorageforgroupconta?language=objc @@ -123,6 +108,14 @@ func (h_ HTTPCookieStorage) SortedCookiesUsingDescriptors(sortOrder []ISortDescr return rv } +// Returns all the cookie storage’s cookies that are sent to a specified URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1412100-cookiesforurl?language=objc +func (h_ HTTPCookieStorage) CookiesForURL(URL IURL) []HTTPCookie { + rv := objc.Call[[]HTTPCookie](h_, objc.Sel("cookiesForURL:"), URL) + return rv +} + // Removes cookies that were stored after a given date. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1407256-removecookiessincedate?language=objc @@ -130,11 +123,18 @@ func (h_ HTTPCookieStorage) RemoveCookiesSinceDate(date IDate) { objc.Call[objc.Void](h_, objc.Sel("removeCookiesSinceDate:"), date) } -// Fetches cookies relevant to the specified task and passes them to the completion handler. [Full Topic] +// Stores a specified cookie in the cookie storage if the cookie accept policy permits. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1408517-getcookiesfortask?language=objc -func (h_ HTTPCookieStorage) GetCookiesForTaskCompletionHandler(task IURLSessionTask, completionHandler func(cookies []HTTPCookie)) { - objc.Call[objc.Void](h_, objc.Sel("getCookiesForTask:completionHandler:"), task, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1418356-setcookie?language=objc +func (h_ HTTPCookieStorage) SetCookie(cookie IHTTPCookie) { + objc.Call[objc.Void](h_, objc.Sel("setCookie:"), cookie) +} + +// Adds an array of cookies to the cookie storage if the storage’s cookie acceptance policy permits. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1412510-setcookies?language=objc +func (h_ HTTPCookieStorage) SetCookiesForURLMainDocumentURL(cookies []IHTTPCookie, URL IURL, mainDocumentURL IURL) { + objc.Call[objc.Void](h_, objc.Sel("setCookies:forURL:mainDocumentURL:"), cookies, URL, mainDocumentURL) } // The cookie storage’s cookies. [Full Topic] @@ -145,21 +145,6 @@ func (h_ HTTPCookieStorage) Cookies() []HTTPCookie { return rv } -// The shared cookie storage instance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1416095-sharedhttpcookiestorage?language=objc -func (hc _HTTPCookieStorageClass) SharedHTTPCookieStorage() HTTPCookieStorage { - rv := objc.Call[HTTPCookieStorage](hc, objc.Sel("sharedHTTPCookieStorage")) - return rv -} - -// The shared cookie storage instance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1416095-sharedhttpcookiestorage?language=objc -func HTTPCookieStorage_SharedHTTPCookieStorage() HTTPCookieStorage { - return HTTPCookieStorageClass.SharedHTTPCookieStorage() -} - // The cookie storage’s cookie accept policy. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1410415-cookieacceptpolicy?language=objc @@ -174,3 +159,18 @@ func (h_ HTTPCookieStorage) CookieAcceptPolicy() HTTPCookieAcceptPolicy { func (h_ HTTPCookieStorage) SetCookieAcceptPolicy(value HTTPCookieAcceptPolicy) { objc.Call[objc.Void](h_, objc.Sel("setCookieAcceptPolicy:"), value) } + +// The shared cookie storage instance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1416095-sharedhttpcookiestorage?language=objc +func (hc _HTTPCookieStorageClass) SharedHTTPCookieStorage() HTTPCookieStorage { + rv := objc.Call[HTTPCookieStorage](hc, objc.Sel("sharedHTTPCookieStorage")) + return rv +} + +// The shared cookie storage instance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1416095-sharedhttpcookiestorage?language=objc +func HTTPCookieStorage_SharedHTTPCookieStorage() HTTPCookieStorage { + return HTTPCookieStorageClass.SharedHTTPCookieStorage() +} diff --git a/macos/foundation/index_path.gen.go b/macos/foundation/index_path.gen.go index bec340bd..bce04611 100644 --- a/macos/foundation/index_path.gen.go +++ b/macos/foundation/index_path.gen.go @@ -18,14 +18,13 @@ type _IndexPathClass struct { // An interface definition for the [IndexPath] class. type IIndexPath interface { objc.IObject - IndexPathByRemovingLastIndex() IndexPath - GetIndexesRange(indexes *uint, positionRange Range) - Compare(otherObject IIndexPath) ComparisonResult IndexPathByAddingIndex(index uint) IndexPath IndexAtPosition(position uint) uint - Length() uint + IndexPathByRemovingLastIndex() IndexPath + Compare(otherObject IIndexPath) ComparisonResult Item() int Section() int + Length() uint } // A list of indexes that together represent the path to a specific location in a tree of nested arrays. [Full Topic] @@ -41,32 +40,6 @@ func IndexPathFrom(ptr unsafe.Pointer) IndexPath { } } -func (ic _IndexPathClass) IndexPathWithIndex(index uint) IndexPath { - rv := objc.Call[IndexPath](ic, objc.Sel("indexPathWithIndex:"), index) - return rv -} - -// Creates a one-node index path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1521019-indexpathwithindex?language=objc -func IndexPath_IndexPathWithIndex(index uint) IndexPath { - return IndexPathClass.IndexPathWithIndex(index) -} - -func (i_ IndexPath) InitWithIndex(index uint) IndexPath { - rv := objc.Call[IndexPath](i_, objc.Sel("initWithIndex:"), index) - return rv -} - -// Initializes an index path with a single node. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1416855-initwithindex?language=objc -func NewIndexPathWithIndex(index uint) IndexPath { - instance := IndexPathClass.Alloc().InitWithIndex(index) - instance.Autorelease() - return instance -} - func (ic _IndexPathClass) IndexPathWithIndexesLength(indexes *uint, length uint) IndexPath { rv := objc.Call[IndexPath](ic, objc.Sel("indexPathWithIndexes:length:"), indexes, length) return rv @@ -93,61 +66,61 @@ func NewIndexPathWithIndexesLength(indexes *uint, length uint) IndexPath { return instance } -func (ic _IndexPathClass) Alloc() IndexPath { - rv := objc.Call[IndexPath](ic, objc.Sel("alloc")) +func (ic _IndexPathClass) IndexPathForItemInSection(item int, section int) IndexPath { + rv := objc.Call[IndexPath](ic, objc.Sel("indexPathForItem:inSection:"), item, section) return rv } -func (ic _IndexPathClass) New() IndexPath { - rv := objc.Call[IndexPath](ic, objc.Sel("new")) - rv.Autorelease() +// Initializes an index path with the indexes of a specific item and section in a collection view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1526053-indexpathforitem?language=objc +func IndexPath_IndexPathForItemInSection(item int, section int) IndexPath { + return IndexPathClass.IndexPathForItemInSection(item, section) +} + +func (ic _IndexPathClass) IndexPathWithIndex(index uint) IndexPath { + rv := objc.Call[IndexPath](ic, objc.Sel("indexPathWithIndex:"), index) return rv } -func NewIndexPath() IndexPath { - return IndexPathClass.New() +// Creates a one-node index path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1521019-indexpathwithindex?language=objc +func IndexPath_IndexPathWithIndex(index uint) IndexPath { + return IndexPathClass.IndexPathWithIndex(index) } -func (i_ IndexPath) Init() IndexPath { - rv := objc.Call[IndexPath](i_, objc.Sel("init")) +func (i_ IndexPath) InitWithIndex(index uint) IndexPath { + rv := objc.Call[IndexPath](i_, objc.Sel("initWithIndex:"), index) return rv } -// Returns an index path with the nodes in the receiving index path, excluding the last one. [Full Topic] +// Initializes an index path with a single node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1415624-indexpathbyremovinglastindex?language=objc -func (i_ IndexPath) IndexPathByRemovingLastIndex() IndexPath { - rv := objc.Call[IndexPath](i_, objc.Sel("indexPathByRemovingLastIndex")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1416855-initwithindex?language=objc +func NewIndexPathWithIndex(index uint) IndexPath { + instance := IndexPathClass.Alloc().InitWithIndex(index) + instance.Autorelease() + return instance } -// Copies the indexes stored in the index path from the positions specified by the position range into the specified indexes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1413360-getindexes?language=objc -func (i_ IndexPath) GetIndexesRange(indexes *uint, positionRange Range) { - objc.Call[objc.Void](i_, objc.Sel("getIndexes:range:"), indexes, positionRange) +func (ic _IndexPathClass) Alloc() IndexPath { + rv := objc.Call[IndexPath](ic, objc.Sel("alloc")) + return rv } -// Initializes an index path with the indexes of a specific item and section in a collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1526053-indexpathforitem?language=objc -func (ic _IndexPathClass) IndexPathForItemInSection(item int, section int) IndexPath { - rv := objc.Call[IndexPath](ic, objc.Sel("indexPathForItem:inSection:"), item, section) +func (ic _IndexPathClass) New() IndexPath { + rv := objc.Call[IndexPath](ic, objc.Sel("new")) + rv.Autorelease() return rv } -// Initializes an index path with the indexes of a specific item and section in a collection view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1526053-indexpathforitem?language=objc -func IndexPath_IndexPathForItemInSection(item int, section int) IndexPath { - return IndexPathClass.IndexPathForItemInSection(item, section) +func NewIndexPath() IndexPath { + return IndexPathClass.New() } -// Indicates the depth-first traversal order of the receiving index path and another index path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1407552-compare?language=objc -func (i_ IndexPath) Compare(otherObject IIndexPath) ComparisonResult { - rv := objc.Call[ComparisonResult](i_, objc.Sel("compare:"), otherObject) +func (i_ IndexPath) Init() IndexPath { + rv := objc.Call[IndexPath](i_, objc.Sel("init")) return rv } @@ -167,11 +140,19 @@ func (i_ IndexPath) IndexAtPosition(position uint) uint { return rv } -// The number of nodes in the index path. [Full Topic] +// Returns an index path with the nodes in the receiving index path, excluding the last one. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1412001-length?language=objc -func (i_ IndexPath) Length() uint { - rv := objc.Call[uint](i_, objc.Sel("length")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1415624-indexpathbyremovinglastindex?language=objc +func (i_ IndexPath) IndexPathByRemovingLastIndex() IndexPath { + rv := objc.Call[IndexPath](i_, objc.Sel("indexPathByRemovingLastIndex")) + return rv +} + +// Indicates the depth-first traversal order of the receiving index path and another index path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1407552-compare?language=objc +func (i_ IndexPath) Compare(otherObject IIndexPath) ComparisonResult { + rv := objc.Call[ComparisonResult](i_, objc.Sel("compare:"), otherObject) return rv } @@ -190,3 +171,11 @@ func (i_ IndexPath) Section() int { rv := objc.Call[int](i_, objc.Sel("section")) return rv } + +// The number of nodes in the index path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexpath/1412001-length?language=objc +func (i_ IndexPath) Length() uint { + rv := objc.Call[uint](i_, objc.Sel("length")) + return rv +} diff --git a/macos/foundation/index_set.gen.go b/macos/foundation/index_set.gen.go index 64f9a2e6..8e276d4c 100644 --- a/macos/foundation/index_set.gen.go +++ b/macos/foundation/index_set.gen.go @@ -18,32 +18,32 @@ type _IndexSetClass struct { // An interface definition for the [IndexSet] class. type IIndexSet interface { objc.IObject + IndexWithOptionsPassingTest(opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) uint ContainsIndex(value uint) bool + EnumerateRangesUsingBlock(block func(range_ Range, stop *bool)) + IndexesWithOptionsPassingTest(opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) IndexSet IndexesInRangeOptionsPassingTest(range_ Range, opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) IndexSet - EnumerateIndexesWithOptionsUsingBlock(opts EnumerationOptions, block func(idx uint, stop *bool)) - IndexGreaterThanOrEqualToIndex(value uint) uint - ContainsIndexesInRange(range_ Range) bool - IndexLessThanIndex(value uint) uint - EnumerateRangesWithOptionsUsingBlock(opts EnumerationOptions, block func(range_ Range, stop *bool)) - IndexPassingTest(predicate func(idx uint, stop *bool) bool) uint EnumerateIndexesUsingBlock(block func(idx uint, stop *bool)) - CountOfIndexesInRange(range_ Range) uint - IndexesPassingTest(predicate func(idx uint, stop *bool) bool) IndexSet + IndexLessThanIndex(value uint) uint GetIndexesMaxCountInIndexRange(indexBuffer *uint, bufferSize uint, range_ RangePointer) uint - EnumerateIndexesInRangeOptionsUsingBlock(range_ Range, opts EnumerationOptions, block func(idx uint, stop *bool)) - IndexWithOptionsPassingTest(opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) uint - IndexGreaterThanIndex(value uint) uint - EnumerateRangesInRangeOptionsUsingBlock(range_ Range, opts EnumerationOptions, block func(range_ Range, stop *bool)) IndexLessThanOrEqualToIndex(value uint) uint - ContainsIndexes(indexSet IIndexSet) bool - IndexesWithOptionsPassingTest(opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) IndexSet + EnumerateRangesInRangeOptionsUsingBlock(range_ Range, opts EnumerationOptions, block func(range_ Range, stop *bool)) + IntersectsIndexesInRange(range_ Range) bool + EnumerateIndexesInRangeOptionsUsingBlock(range_ Range, opts EnumerationOptions, block func(idx uint, stop *bool)) + IndexesPassingTest(predicate func(idx uint, stop *bool) bool) IndexSet IndexInRangeOptionsPassingTest(range_ Range, opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) uint + ContainsIndexes(indexSet IIndexSet) bool + IndexGreaterThanIndex(value uint) uint + IndexGreaterThanOrEqualToIndex(value uint) uint + IndexPassingTest(predicate func(idx uint, stop *bool) bool) uint + ContainsIndexesInRange(range_ Range) bool + EnumerateIndexesWithOptionsUsingBlock(opts EnumerationOptions, block func(idx uint, stop *bool)) IsEqualToIndexSet(indexSet IIndexSet) bool - EnumerateRangesUsingBlock(block func(range_ Range, stop *bool)) - IntersectsIndexesInRange(range_ Range) bool - FirstIndex() uint - Count() uint + EnumerateRangesWithOptionsUsingBlock(opts EnumerationOptions, block func(range_ Range, stop *bool)) + CountOfIndexesInRange(range_ Range) uint LastIndex() uint + Count() uint + FirstIndex() uint } // An immutable collection of unique integer values that represent indexes in another collection. [Full Topic] @@ -59,20 +59,6 @@ func IndexSetFrom(ptr unsafe.Pointer) IndexSet { } } -func (i_ IndexSet) InitWithIndex(value uint) IndexSet { - rv := objc.Call[IndexSet](i_, objc.Sel("initWithIndex:"), value) - return rv -} - -// Initializes an allocated NSIndexSet object with an index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1416501-initwithindex?language=objc -func NewIndexSetWithIndex(value uint) IndexSet { - instance := IndexSetClass.Alloc().InitWithIndex(value) - instance.Autorelease() - return instance -} - func (ic _IndexSetClass) IndexSetWithIndex(value uint) IndexSet { rv := objc.Call[IndexSet](ic, objc.Sel("indexSetWithIndex:"), value) return rv @@ -85,16 +71,16 @@ func IndexSet_IndexSetWithIndex(value uint) IndexSet { return IndexSetClass.IndexSetWithIndex(value) } -func (ic _IndexSetClass) IndexSetWithIndexesInRange(range_ Range) IndexSet { - rv := objc.Call[IndexSet](ic, objc.Sel("indexSetWithIndexesInRange:"), range_) +func (ic _IndexSetClass) IndexSet() IndexSet { + rv := objc.Call[IndexSet](ic, objc.Sel("indexSet")) return rv } -// Creates an index set with an index range. [Full Topic] +// Creates an empty index set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1427274-indexsetwithindexesinrange?language=objc -func IndexSet_IndexSetWithIndexesInRange(range_ Range) IndexSet { - return IndexSetClass.IndexSetWithIndexesInRange(range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1427281-indexset?language=objc +func IndexSet_IndexSet() IndexSet { + return IndexSetClass.IndexSet() } func (i_ IndexSet) InitWithIndexesInRange(range_ Range) IndexSet { @@ -125,16 +111,30 @@ func NewIndexSetWithIndexSet(indexSet IIndexSet) IndexSet { return instance } -func (ic _IndexSetClass) IndexSet() IndexSet { - rv := objc.Call[IndexSet](ic, objc.Sel("indexSet")) +func (ic _IndexSetClass) IndexSetWithIndexesInRange(range_ Range) IndexSet { + rv := objc.Call[IndexSet](ic, objc.Sel("indexSetWithIndexesInRange:"), range_) return rv } -// Creates an empty index set. [Full Topic] +// Creates an index set with an index range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1427281-indexset?language=objc -func IndexSet_IndexSet() IndexSet { - return IndexSetClass.IndexSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1427274-indexsetwithindexesinrange?language=objc +func IndexSet_IndexSetWithIndexesInRange(range_ Range) IndexSet { + return IndexSetClass.IndexSetWithIndexesInRange(range_) +} + +func (i_ IndexSet) InitWithIndex(value uint) IndexSet { + rv := objc.Call[IndexSet](i_, objc.Sel("initWithIndex:"), value) + return rv +} + +// Initializes an allocated NSIndexSet object with an index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1416501-initwithindex?language=objc +func NewIndexSetWithIndex(value uint) IndexSet { + instance := IndexSetClass.Alloc().InitWithIndex(value) + instance.Autorelease() + return instance } func (ic _IndexSetClass) Alloc() IndexSet { @@ -157,6 +157,14 @@ func (i_ IndexSet) Init() IndexSet { return rv } +// Returns the index of the first object that passes the predicate Block test using the specified enumeration options. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1415860-indexwithoptions?language=objc +func (i_ IndexSet) IndexWithOptionsPassingTest(opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) uint { + rv := objc.Call[uint](i_, objc.Sel("indexWithOptions:passingTest:"), opts, predicate) + return rv +} + // Indicates whether the index set contains a specific index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1410176-containsindex?language=objc @@ -165,35 +173,34 @@ func (i_ IndexSet) ContainsIndex(value uint) bool { return rv } -// Returns an NSIndexSet containing the receiving index set’s objects in the specified range that pass the Block test. [Full Topic] +// Executes a given block using each object in the index set, in the specified ranges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1412153-indexesinrange?language=objc -func (i_ IndexSet) IndexesInRangeOptionsPassingTest(range_ Range, opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) IndexSet { - rv := objc.Call[IndexSet](i_, objc.Sel("indexesInRange:options:passingTest:"), range_, opts, predicate) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1409668-enumeraterangesusingblock?language=objc +func (i_ IndexSet) EnumerateRangesUsingBlock(block func(range_ Range, stop *bool)) { + objc.Call[objc.Void](i_, objc.Sel("enumerateRangesUsingBlock:"), block) } -// Executes a given Block over the index set’s indexes, using the specified enumeration options. [Full Topic] +// Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test using the specified enumeration options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1414545-enumerateindexeswithoptions?language=objc -func (i_ IndexSet) EnumerateIndexesWithOptionsUsingBlock(opts EnumerationOptions, block func(idx uint, stop *bool)) { - objc.Call[objc.Void](i_, objc.Sel("enumerateIndexesWithOptions:usingBlock:"), opts, block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1412401-indexeswithoptions?language=objc +func (i_ IndexSet) IndexesWithOptionsPassingTest(opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) IndexSet { + rv := objc.Call[IndexSet](i_, objc.Sel("indexesWithOptions:passingTest:"), opts, predicate) + return rv } -// Returns either the closest index in the index set that is greater than or equal to a specific index or the not-found indicator. [Full Topic] +// Returns an NSIndexSet containing the receiving index set’s objects in the specified range that pass the Block test. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1407870-indexgreaterthanorequaltoindex?language=objc -func (i_ IndexSet) IndexGreaterThanOrEqualToIndex(value uint) uint { - rv := objc.Call[uint](i_, objc.Sel("indexGreaterThanOrEqualToIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1412153-indexesinrange?language=objc +func (i_ IndexSet) IndexesInRangeOptionsPassingTest(range_ Range, opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) IndexSet { + rv := objc.Call[IndexSet](i_, objc.Sel("indexesInRange:options:passingTest:"), range_, opts, predicate) return rv } -// Indicates whether the index set contains the indexes represented by an index range. [Full Topic] +// Executes a given Block using each object in the index set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1408511-containsindexesinrange?language=objc -func (i_ IndexSet) ContainsIndexesInRange(range_ Range) bool { - rv := objc.Call[bool](i_, objc.Sel("containsIndexesInRange:"), range_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1411395-enumerateindexesusingblock?language=objc +func (i_ IndexSet) EnumerateIndexesUsingBlock(block func(idx uint, stop *bool)) { + objc.Call[objc.Void](i_, objc.Sel("enumerateIndexesUsingBlock:"), block) } // Returns either the closest index in the index set that is less than a specific index or the not-found indicator. [Full Topic] @@ -204,36 +211,44 @@ func (i_ IndexSet) IndexLessThanIndex(value uint) uint { return rv } -// Executes a given block using each object in the index set, in the specified ranges. [Full Topic] +// The index set fills an index buffer with the indexes contained both in the index set and in an index range, returning the number of indexes copied. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1412673-enumeraterangeswithoptions?language=objc -func (i_ IndexSet) EnumerateRangesWithOptionsUsingBlock(opts EnumerationOptions, block func(range_ Range, stop *bool)) { - objc.Call[objc.Void](i_, objc.Sel("enumerateRangesWithOptions:usingBlock:"), opts, block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1409332-getindexes?language=objc +func (i_ IndexSet) GetIndexesMaxCountInIndexRange(indexBuffer *uint, bufferSize uint, range_ RangePointer) uint { + rv := objc.Call[uint](i_, objc.Sel("getIndexes:maxCount:inIndexRange:"), indexBuffer, bufferSize, range_) + return rv } -// Returns the index of the first object that passes the predicate Block test. [Full Topic] +// Returns either the closest index in the index set that is less than or equal to a specific index or the not-found indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1408471-indexpassingtest?language=objc -func (i_ IndexSet) IndexPassingTest(predicate func(idx uint, stop *bool) bool) uint { - rv := objc.Call[uint](i_, objc.Sel("indexPassingTest:"), predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1412299-indexlessthanorequaltoindex?language=objc +func (i_ IndexSet) IndexLessThanOrEqualToIndex(value uint) uint { + rv := objc.Call[uint](i_, objc.Sel("indexLessThanOrEqualToIndex:"), value) return rv } -// Executes a given Block using each object in the index set. [Full Topic] +// Enumerates over the ranges in the range of objects using the block [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1411395-enumerateindexesusingblock?language=objc -func (i_ IndexSet) EnumerateIndexesUsingBlock(block func(idx uint, stop *bool)) { - objc.Call[objc.Void](i_, objc.Sel("enumerateIndexesUsingBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1416352-enumeraterangesinrange?language=objc +func (i_ IndexSet) EnumerateRangesInRangeOptionsUsingBlock(range_ Range, opts EnumerationOptions, block func(range_ Range, stop *bool)) { + objc.Call[objc.Void](i_, objc.Sel("enumerateRangesInRange:options:usingBlock:"), range_, opts, block) } -// Returns the number of indexes in the index set that are members of a given range. [Full Topic] +// Indicates whether the index set contains any of the indexes in a range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1410114-countofindexesinrange?language=objc -func (i_ IndexSet) CountOfIndexesInRange(range_ Range) uint { - rv := objc.Call[uint](i_, objc.Sel("countOfIndexesInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1413352-intersectsindexesinrange?language=objc +func (i_ IndexSet) IntersectsIndexesInRange(range_ Range) bool { + rv := objc.Call[bool](i_, objc.Sel("intersectsIndexesInRange:"), range_) return rv } +// Executes a given Block using the indexes in the specified range, using the specified enumeration options. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1408162-enumerateindexesinrange?language=objc +func (i_ IndexSet) EnumerateIndexesInRangeOptionsUsingBlock(range_ Range, opts EnumerationOptions, block func(idx uint, stop *bool)) { + objc.Call[objc.Void](i_, objc.Sel("enumerateIndexesInRange:options:usingBlock:"), range_, opts, block) +} + // Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1407357-indexespassingtest?language=objc @@ -242,26 +257,19 @@ func (i_ IndexSet) IndexesPassingTest(predicate func(idx uint, stop *bool) bool) return rv } -// The index set fills an index buffer with the indexes contained both in the index set and in an index range, returning the number of indexes copied. [Full Topic] +// Returns the index of the first object in the specified range that passes the predicate Block test. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1409332-getindexes?language=objc -func (i_ IndexSet) GetIndexesMaxCountInIndexRange(indexBuffer *uint, bufferSize uint, range_ RangePointer) uint { - rv := objc.Call[uint](i_, objc.Sel("getIndexes:maxCount:inIndexRange:"), indexBuffer, bufferSize, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1415301-indexinrange?language=objc +func (i_ IndexSet) IndexInRangeOptionsPassingTest(range_ Range, opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) uint { + rv := objc.Call[uint](i_, objc.Sel("indexInRange:options:passingTest:"), range_, opts, predicate) return rv } -// Executes a given Block using the indexes in the specified range, using the specified enumeration options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1408162-enumerateindexesinrange?language=objc -func (i_ IndexSet) EnumerateIndexesInRangeOptionsUsingBlock(range_ Range, opts EnumerationOptions, block func(idx uint, stop *bool)) { - objc.Call[objc.Void](i_, objc.Sel("enumerateIndexesInRange:options:usingBlock:"), range_, opts, block) -} - -// Returns the index of the first object that passes the predicate Block test using the specified enumeration options. [Full Topic] +// Indicates whether the receiving index set contains a superset of the indexes in another index set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1415860-indexwithoptions?language=objc -func (i_ IndexSet) IndexWithOptionsPassingTest(opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) uint { - rv := objc.Call[uint](i_, objc.Sel("indexWithOptions:passingTest:"), opts, predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1414823-containsindexes?language=objc +func (i_ IndexSet) ContainsIndexes(indexSet IIndexSet) bool { + rv := objc.Call[bool](i_, objc.Sel("containsIndexes:"), indexSet) return rv } @@ -273,43 +281,35 @@ func (i_ IndexSet) IndexGreaterThanIndex(value uint) uint { return rv } -// Enumerates over the ranges in the range of objects using the block [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1416352-enumeraterangesinrange?language=objc -func (i_ IndexSet) EnumerateRangesInRangeOptionsUsingBlock(range_ Range, opts EnumerationOptions, block func(range_ Range, stop *bool)) { - objc.Call[objc.Void](i_, objc.Sel("enumerateRangesInRange:options:usingBlock:"), range_, opts, block) -} - -// Returns either the closest index in the index set that is less than or equal to a specific index or the not-found indicator. [Full Topic] +// Returns either the closest index in the index set that is greater than or equal to a specific index or the not-found indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1412299-indexlessthanorequaltoindex?language=objc -func (i_ IndexSet) IndexLessThanOrEqualToIndex(value uint) uint { - rv := objc.Call[uint](i_, objc.Sel("indexLessThanOrEqualToIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1407870-indexgreaterthanorequaltoindex?language=objc +func (i_ IndexSet) IndexGreaterThanOrEqualToIndex(value uint) uint { + rv := objc.Call[uint](i_, objc.Sel("indexGreaterThanOrEqualToIndex:"), value) return rv } -// Indicates whether the receiving index set contains a superset of the indexes in another index set. [Full Topic] +// Returns the index of the first object that passes the predicate Block test. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1414823-containsindexes?language=objc -func (i_ IndexSet) ContainsIndexes(indexSet IIndexSet) bool { - rv := objc.Call[bool](i_, objc.Sel("containsIndexes:"), indexSet) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1408471-indexpassingtest?language=objc +func (i_ IndexSet) IndexPassingTest(predicate func(idx uint, stop *bool) bool) uint { + rv := objc.Call[uint](i_, objc.Sel("indexPassingTest:"), predicate) return rv } -// Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test using the specified enumeration options. [Full Topic] +// Indicates whether the index set contains the indexes represented by an index range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1412401-indexeswithoptions?language=objc -func (i_ IndexSet) IndexesWithOptionsPassingTest(opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) IndexSet { - rv := objc.Call[IndexSet](i_, objc.Sel("indexesWithOptions:passingTest:"), opts, predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1408511-containsindexesinrange?language=objc +func (i_ IndexSet) ContainsIndexesInRange(range_ Range) bool { + rv := objc.Call[bool](i_, objc.Sel("containsIndexesInRange:"), range_) return rv } -// Returns the index of the first object in the specified range that passes the predicate Block test. [Full Topic] +// Executes a given Block over the index set’s indexes, using the specified enumeration options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1415301-indexinrange?language=objc -func (i_ IndexSet) IndexInRangeOptionsPassingTest(range_ Range, opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) uint { - rv := objc.Call[uint](i_, objc.Sel("indexInRange:options:passingTest:"), range_, opts, predicate) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1414545-enumerateindexeswithoptions?language=objc +func (i_ IndexSet) EnumerateIndexesWithOptionsUsingBlock(opts EnumerationOptions, block func(idx uint, stop *bool)) { + objc.Call[objc.Void](i_, objc.Sel("enumerateIndexesWithOptions:usingBlock:"), opts, block) } // Indicates whether the indexes in the receiving index set are the same indexes contained in another index set. [Full Topic] @@ -322,24 +322,24 @@ func (i_ IndexSet) IsEqualToIndexSet(indexSet IIndexSet) bool { // Executes a given block using each object in the index set, in the specified ranges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1409668-enumeraterangesusingblock?language=objc -func (i_ IndexSet) EnumerateRangesUsingBlock(block func(range_ Range, stop *bool)) { - objc.Call[objc.Void](i_, objc.Sel("enumerateRangesUsingBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1412673-enumeraterangeswithoptions?language=objc +func (i_ IndexSet) EnumerateRangesWithOptionsUsingBlock(opts EnumerationOptions, block func(range_ Range, stop *bool)) { + objc.Call[objc.Void](i_, objc.Sel("enumerateRangesWithOptions:usingBlock:"), opts, block) } -// Indicates whether the index set contains any of the indexes in a range. [Full Topic] +// Returns the number of indexes in the index set that are members of a given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1413352-intersectsindexesinrange?language=objc -func (i_ IndexSet) IntersectsIndexesInRange(range_ Range) bool { - rv := objc.Call[bool](i_, objc.Sel("intersectsIndexesInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1410114-countofindexesinrange?language=objc +func (i_ IndexSet) CountOfIndexesInRange(range_ Range) uint { + rv := objc.Call[uint](i_, objc.Sel("countOfIndexesInRange:"), range_) return rv } -// The first index in the index set. [Full Topic] +// The last index in the index set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1410814-firstindex?language=objc -func (i_ IndexSet) FirstIndex() uint { - rv := objc.Call[uint](i_, objc.Sel("firstIndex")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1415020-lastindex?language=objc +func (i_ IndexSet) LastIndex() uint { + rv := objc.Call[uint](i_, objc.Sel("lastIndex")) return rv } @@ -351,10 +351,10 @@ func (i_ IndexSet) Count() uint { return rv } -// The last index in the index set. [Full Topic] +// The first index in the index set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1415020-lastindex?language=objc -func (i_ IndexSet) LastIndex() uint { - rv := objc.Call[uint](i_, objc.Sel("lastIndex")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1410814-firstindex?language=objc +func (i_ IndexSet) FirstIndex() uint { + rv := objc.Call[uint](i_, objc.Sel("firstIndex")) return rv } diff --git a/macos/foundation/inflection_rule.gen.go b/macos/foundation/inflection_rule.gen.go index 66038c0a..057dbd37 100644 --- a/macos/foundation/inflection_rule.gen.go +++ b/macos/foundation/inflection_rule.gen.go @@ -68,21 +68,6 @@ func InflectionRule_CanInflectLanguage(language string) bool { return InflectionRuleClass.CanInflectLanguage(language) } -// A Boolean value that indicates whether the rule can inflect the user’s current preferred localization. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinflectionrule/3746912-caninflectpreferredlocalization?language=objc -func (ic _InflectionRuleClass) CanInflectPreferredLocalization() bool { - rv := objc.Call[bool](ic, objc.Sel("canInflectPreferredLocalization")) - return rv -} - -// A Boolean value that indicates whether the rule can inflect the user’s current preferred localization. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinflectionrule/3746912-caninflectpreferredlocalization?language=objc -func InflectionRule_CanInflectPreferredLocalization() bool { - return InflectionRuleClass.CanInflectPreferredLocalization() -} - // An inflection rule that performs automatic grammar agreement with default transformations. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsinflectionrule/3746910-automaticrule?language=objc @@ -97,3 +82,18 @@ func (ic _InflectionRuleClass) AutomaticRule() InflectionRule { func InflectionRule_AutomaticRule() InflectionRule { return InflectionRuleClass.AutomaticRule() } + +// A Boolean value that indicates whether the rule can inflect the user’s current preferred localization. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinflectionrule/3746912-caninflectpreferredlocalization?language=objc +func (ic _InflectionRuleClass) CanInflectPreferredLocalization() bool { + rv := objc.Call[bool](ic, objc.Sel("canInflectPreferredLocalization")) + return rv +} + +// A Boolean value that indicates whether the rule can inflect the user’s current preferred localization. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinflectionrule/3746912-caninflectpreferredlocalization?language=objc +func InflectionRule_CanInflectPreferredLocalization() bool { + return InflectionRuleClass.CanInflectPreferredLocalization() +} diff --git a/macos/foundation/input_stream.gen.go b/macos/foundation/input_stream.gen.go index 7b1b83cf..cd94e765 100644 --- a/macos/foundation/input_stream.gen.go +++ b/macos/foundation/input_stream.gen.go @@ -36,6 +36,18 @@ func InputStreamFrom(ptr unsafe.Pointer) InputStream { } } +func (ic _InputStreamClass) InputStreamWithFileAtPath(path string) InputStream { + rv := objc.Call[InputStream](ic, objc.Sel("inputStreamWithFileAtPath:"), path) + return rv +} + +// Creates and returns an initialized NSInputStream object that reads data from the file at a given path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinputstream/1564839-inputstreamwithfileatpath?language=objc +func InputStream_InputStreamWithFileAtPath(path string) InputStream { + return InputStreamClass.InputStreamWithFileAtPath(path) +} + func (i_ InputStream) InitWithData(data []byte) InputStream { rv := objc.Call[InputStream](i_, objc.Sel("initWithData:"), data) return rv @@ -64,30 +76,6 @@ func NewInputStreamWithURL(url IURL) InputStream { return instance } -func (ic _InputStreamClass) InputStreamWithData(data []byte) InputStream { - rv := objc.Call[InputStream](ic, objc.Sel("inputStreamWithData:"), data) - return rv -} - -// Creates and returns an initialized NSInputStream object for reading from a given NSData object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinputstream/1564842-inputstreamwithdata?language=objc -func InputStream_InputStreamWithData(data []byte) InputStream { - return InputStreamClass.InputStreamWithData(data) -} - -func (ic _InputStreamClass) InputStreamWithFileAtPath(path string) InputStream { - rv := objc.Call[InputStream](ic, objc.Sel("inputStreamWithFileAtPath:"), path) - return rv -} - -// Creates and returns an initialized NSInputStream object that reads data from the file at a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinputstream/1564839-inputstreamwithfileatpath?language=objc -func InputStream_InputStreamWithFileAtPath(path string) InputStream { - return InputStreamClass.InputStreamWithFileAtPath(path) -} - func (i_ InputStream) InitWithFileAtPath(path string) InputStream { rv := objc.Call[InputStream](i_, objc.Sel("initWithFileAtPath:"), path) return rv @@ -102,6 +90,18 @@ func NewInputStreamWithFileAtPath(path string) InputStream { return instance } +func (ic _InputStreamClass) InputStreamWithData(data []byte) InputStream { + rv := objc.Call[InputStream](ic, objc.Sel("inputStreamWithData:"), data) + return rv +} + +// Creates and returns an initialized NSInputStream object for reading from a given NSData object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinputstream/1564842-inputstreamwithdata?language=objc +func InputStream_InputStreamWithData(data []byte) InputStream { + return InputStreamClass.InputStreamWithData(data) +} + func (ic _InputStreamClass) InputStreamWithURL(url IURL) InputStream { rv := objc.Call[InputStream](ic, objc.Sel("inputStreamWithURL:"), url) return rv diff --git a/macos/foundation/invocation.gen.go b/macos/foundation/invocation.gen.go index 5f7af931..65bd6991 100644 --- a/macos/foundation/invocation.gen.go +++ b/macos/foundation/invocation.gen.go @@ -18,19 +18,19 @@ type _InvocationClass struct { // An interface definition for the [Invocation] class. type IInvocation interface { objc.IObject - GetReturnValue(retLoc unsafe.Pointer) - Invoke() - RetainArguments() GetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int) SetReturnValue(retLoc unsafe.Pointer) + RetainArguments() SetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int) + GetReturnValue(retLoc unsafe.Pointer) + Invoke() InvokeWithTarget(target objc.IObject) Target() objc.Object SetTarget(value objc.IObject) - MethodSignature() MethodSignature - ArgumentsRetained() bool Selector() objc.Selector SetSelector(value objc.Selector) + ArgumentsRetained() bool + MethodSignature() MethodSignature } // An Objective-C message rendered as an object. [Full Topic] @@ -66,18 +66,18 @@ func (i_ Invocation) Init() Invocation { return rv } -// Gets the receiver's return value. [Full Topic] +// Returns by indirection the receiver's argument at a specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437832-getreturnvalue?language=objc -func (i_ Invocation) GetReturnValue(retLoc unsafe.Pointer) { - objc.Call[objc.Void](i_, objc.Sel("getReturnValue:"), retLoc) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437830-getargument?language=objc +func (i_ Invocation) GetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int) { + objc.Call[objc.Void](i_, objc.Sel("getArgument:atIndex:"), argumentLocation, idx) } -// Sends the receiver’s message (with arguments) to its target and sets the return value. [Full Topic] +// Sets the receiver’s return value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437850-invoke?language=objc -func (i_ Invocation) Invoke() { - objc.Call[objc.Void](i_, objc.Sel("invoke")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437848-setreturnvalue?language=objc +func (i_ Invocation) SetReturnValue(retLoc unsafe.Pointer) { + objc.Call[objc.Void](i_, objc.Sel("setReturnValue:"), retLoc) } // If the receiver hasn’t already done so, retains the target and all object arguments of the receiver and copies all of its C-string arguments and blocks. If a returnvalue has been set, this is also retained or copied. [Full Topic] @@ -87,11 +87,11 @@ func (i_ Invocation) RetainArguments() { objc.Call[objc.Void](i_, objc.Sel("retainArguments")) } -// Returns by indirection the receiver's argument at a specified index. [Full Topic] +// Sets an argument of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437830-getargument?language=objc -func (i_ Invocation) GetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int) { - objc.Call[objc.Void](i_, objc.Sel("getArgument:atIndex:"), argumentLocation, idx) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437834-setargument?language=objc +func (i_ Invocation) SetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int) { + objc.Call[objc.Void](i_, objc.Sel("setArgument:atIndex:"), argumentLocation, idx) } // Returns an NSInvocation object able to construct messages using a given method signature. [Full Topic] @@ -109,18 +109,18 @@ func Invocation_InvocationWithMethodSignature(sig IMethodSignature) Invocation { return InvocationClass.InvocationWithMethodSignature(sig) } -// Sets the receiver’s return value. [Full Topic] +// Gets the receiver's return value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437848-setreturnvalue?language=objc -func (i_ Invocation) SetReturnValue(retLoc unsafe.Pointer) { - objc.Call[objc.Void](i_, objc.Sel("setReturnValue:"), retLoc) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437832-getreturnvalue?language=objc +func (i_ Invocation) GetReturnValue(retLoc unsafe.Pointer) { + objc.Call[objc.Void](i_, objc.Sel("getReturnValue:"), retLoc) } -// Sets an argument of the receiver. [Full Topic] +// Sends the receiver’s message (with arguments) to its target and sets the return value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437834-setargument?language=objc -func (i_ Invocation) SetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int) { - objc.Call[objc.Void](i_, objc.Sel("setArgument:atIndex:"), argumentLocation, idx) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437850-invoke?language=objc +func (i_ Invocation) Invoke() { + objc.Call[objc.Void](i_, objc.Sel("invoke")) } // Sets the receiver’s target, sends the receiver’s message (with arguments) to that target, and sets the return value. [Full Topic] @@ -145,14 +145,21 @@ func (i_ Invocation) SetTarget(value objc.IObject) { objc.Call[objc.Void](i_, objc.Sel("setTarget:"), value) } -// The receiver’s method signature. [Full Topic] +// The receiver’s selector, or 0 if it hasn’t been set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437846-methodsignature?language=objc -func (i_ Invocation) MethodSignature() MethodSignature { - rv := objc.Call[MethodSignature](i_, objc.Sel("methodSignature")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437836-selector?language=objc +func (i_ Invocation) Selector() objc.Selector { + rv := objc.Call[objc.Selector](i_, objc.Sel("selector")) return rv } +// The receiver’s selector, or 0 if it hasn’t been set. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437836-selector?language=objc +func (i_ Invocation) SetSelector(value objc.Selector) { + objc.Call[objc.Void](i_, objc.Sel("setSelector:"), value) +} + // YES if the receiver has retained its arguments, NO otherwise. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437842-argumentsretained?language=objc @@ -161,17 +168,10 @@ func (i_ Invocation) ArgumentsRetained() bool { return rv } -// The receiver’s selector, or 0 if it hasn’t been set. [Full Topic] +// The receiver’s method signature. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437836-selector?language=objc -func (i_ Invocation) Selector() objc.Selector { - rv := objc.Call[objc.Selector](i_, objc.Sel("selector")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437846-methodsignature?language=objc +func (i_ Invocation) MethodSignature() MethodSignature { + rv := objc.Call[MethodSignature](i_, objc.Sel("methodSignature")) return rv } - -// The receiver’s selector, or 0 if it hasn’t been set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocation/1437836-selector?language=objc -func (i_ Invocation) SetSelector(value objc.Selector) { - objc.Call[objc.Void](i_, objc.Sel("setSelector:"), value) -} diff --git a/macos/foundation/invocation_operation.gen.go b/macos/foundation/invocation_operation.gen.go index 287d8d04..b4d71e92 100644 --- a/macos/foundation/invocation_operation.gen.go +++ b/macos/foundation/invocation_operation.gen.go @@ -35,30 +35,30 @@ func InvocationOperationFrom(ptr unsafe.Pointer) InvocationOperation { } } -func (i_ InvocationOperation) InitWithTargetSelectorObject(target objc.IObject, sel objc.Selector, arg objc.IObject) InvocationOperation { - rv := objc.Call[InvocationOperation](i_, objc.Sel("initWithTarget:selector:object:"), target, sel, arg) +func (i_ InvocationOperation) InitWithInvocation(inv IInvocation) InvocationOperation { + rv := objc.Call[InvocationOperation](i_, objc.Sel("initWithInvocation:"), inv) return rv } -// Returns an NSInvocationOperation object initialized with the specified target and selector. [Full Topic] +// Returns an NSInvocationOperation object initialized with the specified invocation object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocationoperation/1543653-initwithtarget?language=objc -func NewInvocationOperationWithTargetSelectorObject(target objc.IObject, sel objc.Selector, arg objc.IObject) InvocationOperation { - instance := InvocationOperationClass.Alloc().InitWithTargetSelectorObject(target, sel, arg) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocationoperation/1543647-initwithinvocation?language=objc +func NewInvocationOperationWithInvocation(inv IInvocation) InvocationOperation { + instance := InvocationOperationClass.Alloc().InitWithInvocation(inv) instance.Autorelease() return instance } -func (i_ InvocationOperation) InitWithInvocation(inv IInvocation) InvocationOperation { - rv := objc.Call[InvocationOperation](i_, objc.Sel("initWithInvocation:"), inv) +func (i_ InvocationOperation) InitWithTargetSelectorObject(target objc.IObject, sel objc.Selector, arg objc.IObject) InvocationOperation { + rv := objc.Call[InvocationOperation](i_, objc.Sel("initWithTarget:selector:object:"), target, sel, arg) return rv } -// Returns an NSInvocationOperation object initialized with the specified invocation object. [Full Topic] +// Returns an NSInvocationOperation object initialized with the specified target and selector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocationoperation/1543647-initwithinvocation?language=objc -func NewInvocationOperationWithInvocation(inv IInvocation) InvocationOperation { - instance := InvocationOperationClass.Alloc().InitWithInvocation(inv) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsinvocationoperation/1543653-initwithtarget?language=objc +func NewInvocationOperationWithTargetSelectorObject(target objc.IObject, sel objc.Selector, arg objc.IObject) InvocationOperation { + instance := InvocationOperationClass.Alloc().InitWithTargetSelectorObject(target, sel, arg) instance.Autorelease() return instance } diff --git a/macos/foundation/is_o8601_date_formatter.gen.go b/macos/foundation/is_o8601_date_formatter.gen.go index 5730fd2b..dbb7186e 100644 --- a/macos/foundation/is_o8601_date_formatter.gen.go +++ b/macos/foundation/is_o8601_date_formatter.gen.go @@ -59,21 +59,6 @@ func NewISO8601DateFormatter() ISO8601DateFormatter { return ISO8601DateFormatterClass.New() } -// Creates a representation of the specified date with a given time zone and format options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsiso8601dateformatter/1642834-stringfromdate?language=objc -func (ic _ISO8601DateFormatterClass) StringFromDateTimeZoneFormatOptions(date IDate, timeZone ITimeZone, formatOptions ISO8601DateFormatOptions) string { - rv := objc.Call[string](ic, objc.Sel("stringFromDate:timeZone:formatOptions:"), date, timeZone, formatOptions) - return rv -} - -// Creates a representation of the specified date with a given time zone and format options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsiso8601dateformatter/1642834-stringfromdate?language=objc -func ISO8601DateFormatter_StringFromDateTimeZoneFormatOptions(date IDate, timeZone ITimeZone, formatOptions ISO8601DateFormatOptions) string { - return ISO8601DateFormatterClass.StringFromDateTimeZoneFormatOptions(date, timeZone, formatOptions) -} - // Creates and returns a date object from the specified ISO 8601 formatted string representation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsiso8601dateformatter/1643127-datefromstring?language=objc diff --git a/macos/foundation/item_provider.gen.go b/macos/foundation/item_provider.gen.go index b2055197..07835b82 100644 --- a/macos/foundation/item_provider.gen.go +++ b/macos/foundation/item_provider.gen.go @@ -5,6 +5,7 @@ package foundation import ( "unsafe" + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/objc" ) @@ -18,30 +19,31 @@ type _ItemProviderClass struct { // An interface definition for the [ItemProvider] class. type IItemProvider interface { objc.IObject - HasItemConformingToTypeIdentifier(typeIdentifier string) bool + LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier string, completionHandler func(url URL, isInPlace bool, error Error)) Progress + LoadObjectOfClassCompletionHandler(aClass objc.IClass, completionHandler func(object objc.Object, error Error)) Progress + RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler(typeIdentifier string, fileOptions ItemProviderFileOptions, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(url URL, coordinated bool, error Error)) Progress) + LoadDataRepresentationForTypeIdentifierCompletionHandler(typeIdentifier string, completionHandler func(data []byte, error Error)) Progress + LoadPreviewImageWithOptionsCompletionHandler(options Dictionary, completionHandler ItemProviderCompletionHandler) + RegisterObjectOfClassVisibilityLoadHandler(aClass objc.IClass, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(object ItemProviderWritingObject, error Error)) Progress) + LoadItemForTypeIdentifierOptionsCompletionHandler(typeIdentifier string, options Dictionary, completionHandler ItemProviderCompletionHandler) + LoadFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier string, completionHandler func(url URL, error Error)) Progress + CanLoadObjectOfClass(aClass objc.IClass) bool HasRepresentationConformingToTypeIdentifierFileOptions(typeIdentifier string, fileOptions ItemProviderFileOptions) bool + RegisterObjectVisibility(object PItemProviderWriting, visibility ItemProviderRepresentationVisibility) + RegisterObjectObjectVisibility(objectObject objc.IObject, visibility ItemProviderRepresentationVisibility) RegisterItemForTypeIdentifierLoadHandler(typeIdentifier string, loadHandler ItemProviderLoadHandler) - CanLoadObjectOfClass(aClass objc.IClass) bool RegisterDataRepresentationForTypeIdentifierVisibilityLoadHandler(typeIdentifier string, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(data []byte, error Error)) Progress) + HasItemConformingToTypeIdentifier(typeIdentifier string) bool RegisteredTypeIdentifiersWithFileOptions(fileOptions ItemProviderFileOptions) []string - LoadFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier string, completionHandler func(url URL, error Error)) Progress - LoadItemForTypeIdentifierOptionsCompletionHandler(typeIdentifier string, options Dictionary, completionHandler ItemProviderCompletionHandler) - LoadDataRepresentationForTypeIdentifierCompletionHandler(typeIdentifier string, completionHandler func(data []byte, error Error)) Progress - RegisterObjectVisibility(object PItemProviderWriting, visibility ItemProviderRepresentationVisibility) - RegisterObjectObjectVisibility(objectObject objc.IObject, visibility ItemProviderRepresentationVisibility) - RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler(typeIdentifier string, fileOptions ItemProviderFileOptions, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(url URL, coordinated bool, error Error)) Progress) - LoadPreviewImageWithOptionsCompletionHandler(options Dictionary, completionHandler ItemProviderCompletionHandler) - LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier string, completionHandler func(url URL, isInPlace bool, error Error)) Progress - LoadObjectOfClassCompletionHandler(aClass objc.IClass, completionHandler func(object objc.Object, error Error)) Progress - RegisterObjectOfClassVisibilityLoadHandler(aClass objc.IClass, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(object ItemProviderWritingObject, error Error)) Progress) - RegisteredTypeIdentifiers() []string - SuggestedName() string - SetSuggestedName(value string) - PreferredPresentationSize() Size + PreferredPresentationSize() coregraphics.Size + SetPreferredPresentationSize(value coregraphics.Size) PreviewImageHandler() ItemProviderLoadHandler SetPreviewImageHandler(value ItemProviderLoadHandler) ContainerFrame() Rect + SuggestedName() string + SetSuggestedName(value string) SourceFrame() Rect + RegisteredTypeIdentifiers() []string } // An item provider for conveying data or a file between processes during drag-and-drop or copy-and-paste activities, or from a host app to an app extension. [Full Topic] @@ -57,36 +59,31 @@ func ItemProviderFrom(ptr unsafe.Pointer) ItemProvider { } } -func (i_ ItemProvider) InitWithContentsOfURL(fileURL IURL) ItemProvider { - rv := objc.Call[ItemProvider](i_, objc.Sel("initWithContentsOfURL:"), fileURL) +func (i_ ItemProvider) InitWithObject(object PItemProviderWriting) ItemProvider { + po0 := objc.WrapAsProtocol("NSItemProviderWriting", object) + rv := objc.Call[ItemProvider](i_, objc.Sel("initWithObject:"), po0) return rv } -// Provides data-backed content from an existing file. [Full Topic] +// Creates a new item provider, employing a specified object’s type identifiers to specify the data representations eligible for the provider to load. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403911-initwithcontentsofurl?language=objc -func NewItemProviderWithContentsOfURL(fileURL IURL) ItemProvider { - instance := ItemProviderClass.Alloc().InitWithContentsOfURL(fileURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888328-initwithobject?language=objc +func NewItemProviderWithObject(object PItemProviderWriting) ItemProvider { + instance := ItemProviderClass.Alloc().InitWithObject(object) instance.Autorelease() return instance } -func (i_ ItemProvider) Init() ItemProvider { - rv := objc.Call[ItemProvider](i_, objc.Sel("init")) - return rv -} - -func (i_ ItemProvider) InitWithObject(object PItemProviderWriting) ItemProvider { - po0 := objc.WrapAsProtocol("NSItemProviderWriting", object) - rv := objc.Call[ItemProvider](i_, objc.Sel("initWithObject:"), po0) +func (i_ ItemProvider) InitWithContentsOfURL(fileURL IURL) ItemProvider { + rv := objc.Call[ItemProvider](i_, objc.Sel("initWithContentsOfURL:"), fileURL) return rv } -// Creates a new item provider, employing a specified object’s type identifiers to specify the data representations eligible for the provider to load. [Full Topic] +// Provides data-backed content from an existing file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888328-initwithobject?language=objc -func NewItemProviderWithObject(object PItemProviderWriting) ItemProvider { - instance := ItemProviderClass.Alloc().InitWithObject(object) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403911-initwithcontentsofurl?language=objc +func NewItemProviderWithContentsOfURL(fileURL IURL) ItemProvider { + instance := ItemProviderClass.Alloc().InitWithContentsOfURL(fileURL) instance.Autorelease() return instance } @@ -105,6 +102,11 @@ func NewItemProviderWithItemTypeIdentifier(item objc.IObject, typeIdentifier str return instance } +func (i_ ItemProvider) Init() ItemProvider { + rv := objc.Call[ItemProvider](i_, objc.Sel("init")) + return rv +} + func (ic _ItemProviderClass) Alloc() ItemProvider { rv := objc.Call[ItemProvider](ic, objc.Sel("alloc")) return rv @@ -120,50 +122,56 @@ func NewItemProvider() ItemProvider { return ItemProviderClass.New() } -// Returns a Boolean value indicating whether an item provider contains a data representation conforming to a specified universal type identifier file options parameter with a value of zero. [Full Topic] +// Asynchronously opens a file in place, if possible, returning a progress object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403921-hasitemconformingtotypeidentifie?language=objc -func (i_ ItemProvider) HasItemConformingToTypeIdentifier(typeIdentifier string) bool { - rv := objc.Call[bool](i_, objc.Sel("hasItemConformingToTypeIdentifier:"), typeIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888335-loadinplacefilerepresentationfor?language=objc +func (i_ ItemProvider) LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier string, completionHandler func(url URL, isInPlace bool, error Error)) Progress { + rv := objc.Call[Progress](i_, objc.Sel("loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"), typeIdentifier, completionHandler) return rv } -// Returns a Boolean value indicating whether an item provider contains a data representation conforming to a specified universal type identifier and to specified open-in-place behavior. [Full Topic] +// Asynchronously loads an object of a specified class to an item provider, returning a progress object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888320-hasrepresentationconformingtotyp?language=objc -func (i_ ItemProvider) HasRepresentationConformingToTypeIdentifierFileOptions(typeIdentifier string, fileOptions ItemProviderFileOptions) bool { - rv := objc.Call[bool](i_, objc.Sel("hasRepresentationConformingToTypeIdentifier:fileOptions:"), typeIdentifier, fileOptions) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888336-loadobjectofclass?language=objc +func (i_ ItemProvider) LoadObjectOfClassCompletionHandler(aClass objc.IClass, completionHandler func(object objc.Object, error Error)) Progress { + rv := objc.Call[Progress](i_, objc.Sel("loadObjectOfClass:completionHandler:"), aClass, completionHandler) return rv } -// Lazily registers an item, according to the item provider type coercion policy. [Full Topic] +// Registers a file-backed representation for an item, specifying file options, item visibility, and a load handler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403917-registeritemfortypeidentifier?language=objc -func (i_ ItemProvider) RegisterItemForTypeIdentifierLoadHandler(typeIdentifier string, loadHandler ItemProviderLoadHandler) { - objc.Call[objc.Void](i_, objc.Sel("registerItemForTypeIdentifier:loadHandler:"), typeIdentifier, loadHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888337-registerfilerepresentationfortyp?language=objc +func (i_ ItemProvider) RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler(typeIdentifier string, fileOptions ItemProviderFileOptions, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(url URL, coordinated bool, error Error)) Progress) { + objc.Call[objc.Void](i_, objc.Sel("registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"), typeIdentifier, fileOptions, visibility, loadHandler) } -// Returns a Boolean value indicating whether an item provider can load objects of a specified class. [Full Topic] +// Asynchronously copies the provided, typed data into a generic data object, returning a progress object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888333-canloadobjectofclass?language=objc -func (i_ ItemProvider) CanLoadObjectOfClass(aClass objc.IClass) bool { - rv := objc.Call[bool](i_, objc.Sel("canLoadObjectOfClass:"), aClass) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888331-loaddatarepresentationfortypeide?language=objc +func (i_ ItemProvider) LoadDataRepresentationForTypeIdentifierCompletionHandler(typeIdentifier string, completionHandler func(data []byte, error Error)) Progress { + rv := objc.Call[Progress](i_, objc.Sel("loadDataRepresentationForTypeIdentifier:completionHandler:"), typeIdentifier, completionHandler) return rv } -// Registers a data-backed representation for an item, specifiying item visibility and a load handler. [Full Topic] +// Loads the preview image for the item that the item provider represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888319-registerdatarepresentationfortyp?language=objc -func (i_ ItemProvider) RegisterDataRepresentationForTypeIdentifierVisibilityLoadHandler(typeIdentifier string, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(data []byte, error Error)) Progress) { - objc.Call[objc.Void](i_, objc.Sel("registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"), typeIdentifier, visibility, loadHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403925-loadpreviewimagewithoptions?language=objc +func (i_ ItemProvider) LoadPreviewImageWithOptionsCompletionHandler(options Dictionary, completionHandler ItemProviderCompletionHandler) { + objc.Call[objc.Void](i_, objc.Sel("loadPreviewImageWithOptions:completionHandler:"), options, completionHandler) } -// Returns an array with a subset of type identifiers for the item provider, according to the specified file options, in the same order they were registered. [Full Topic] +// Lazily adds representations of a specified object class to an item provider, based on the object’s implementation of the item provider writing protocol, and adhering to a visibility specification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888334-registeredtypeidentifierswithfil?language=objc -func (i_ ItemProvider) RegisteredTypeIdentifiersWithFileOptions(fileOptions ItemProviderFileOptions) []string { - rv := objc.Call[[]string](i_, objc.Sel("registeredTypeIdentifiersWithFileOptions:"), fileOptions) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888329-registerobjectofclass?language=objc +func (i_ ItemProvider) RegisterObjectOfClassVisibilityLoadHandler(aClass objc.IClass, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(object ItemProviderWritingObject, error Error)) Progress) { + objc.Call[objc.Void](i_, objc.Sel("registerObjectOfClass:visibility:loadHandler:"), aClass, visibility, loadHandler) +} + +// Loads the item’s data and coerces it to the specified type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403900-loaditemfortypeidentifier?language=objc +func (i_ ItemProvider) LoadItemForTypeIdentifierOptionsCompletionHandler(typeIdentifier string, options Dictionary, completionHandler ItemProviderCompletionHandler) { + objc.Call[objc.Void](i_, objc.Sel("loadItemForTypeIdentifier:options:completionHandler:"), typeIdentifier, options, completionHandler) } // Asynchronously writes a copy of the provided, typed data to a temporary file, returning a progress object. [Full Topic] @@ -174,18 +182,19 @@ func (i_ ItemProvider) LoadFileRepresentationForTypeIdentifierCompletionHandler( return rv } -// Loads the item’s data and coerces it to the specified type. [Full Topic] +// Returns a Boolean value indicating whether an item provider can load objects of a specified class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403900-loaditemfortypeidentifier?language=objc -func (i_ ItemProvider) LoadItemForTypeIdentifierOptionsCompletionHandler(typeIdentifier string, options Dictionary, completionHandler ItemProviderCompletionHandler) { - objc.Call[objc.Void](i_, objc.Sel("loadItemForTypeIdentifier:options:completionHandler:"), typeIdentifier, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888333-canloadobjectofclass?language=objc +func (i_ ItemProvider) CanLoadObjectOfClass(aClass objc.IClass) bool { + rv := objc.Call[bool](i_, objc.Sel("canLoadObjectOfClass:"), aClass) + return rv } -// Asynchronously copies the provided, typed data into a generic data object, returning a progress object. [Full Topic] +// Returns a Boolean value indicating whether an item provider contains a data representation conforming to a specified universal type identifier and to specified open-in-place behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888331-loaddatarepresentationfortypeide?language=objc -func (i_ ItemProvider) LoadDataRepresentationForTypeIdentifierCompletionHandler(typeIdentifier string, completionHandler func(data []byte, error Error)) Progress { - rv := objc.Call[Progress](i_, objc.Sel("loadDataRepresentationForTypeIdentifier:completionHandler:"), typeIdentifier, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888320-hasrepresentationconformingtotyp?language=objc +func (i_ ItemProvider) HasRepresentationConformingToTypeIdentifierFileOptions(typeIdentifier string, fileOptions ItemProviderFileOptions) bool { + rv := objc.Call[bool](i_, objc.Sel("hasRepresentationConformingToTypeIdentifier:fileOptions:"), typeIdentifier, fileOptions) return rv } @@ -204,72 +213,49 @@ func (i_ ItemProvider) RegisterObjectObjectVisibility(objectObject objc.IObject, objc.Call[objc.Void](i_, objc.Sel("registerObject:visibility:"), objectObject, visibility) } -// Registers a file-backed representation for an item, specifying file options, item visibility, and a load handler. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888337-registerfilerepresentationfortyp?language=objc -func (i_ ItemProvider) RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler(typeIdentifier string, fileOptions ItemProviderFileOptions, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(url URL, coordinated bool, error Error)) Progress) { - objc.Call[objc.Void](i_, objc.Sel("registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"), typeIdentifier, fileOptions, visibility, loadHandler) -} - -// Loads the preview image for the item that the item provider represents. [Full Topic] +// Lazily registers an item, according to the item provider type coercion policy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403925-loadpreviewimagewithoptions?language=objc -func (i_ ItemProvider) LoadPreviewImageWithOptionsCompletionHandler(options Dictionary, completionHandler ItemProviderCompletionHandler) { - objc.Call[objc.Void](i_, objc.Sel("loadPreviewImageWithOptions:completionHandler:"), options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403917-registeritemfortypeidentifier?language=objc +func (i_ ItemProvider) RegisterItemForTypeIdentifierLoadHandler(typeIdentifier string, loadHandler ItemProviderLoadHandler) { + objc.Call[objc.Void](i_, objc.Sel("registerItemForTypeIdentifier:loadHandler:"), typeIdentifier, loadHandler) } -// Asynchronously opens a file in place, if possible, returning a progress object. [Full Topic] +// Registers a data-backed representation for an item, specifiying item visibility and a load handler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888335-loadinplacefilerepresentationfor?language=objc -func (i_ ItemProvider) LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier string, completionHandler func(url URL, isInPlace bool, error Error)) Progress { - rv := objc.Call[Progress](i_, objc.Sel("loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"), typeIdentifier, completionHandler) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888319-registerdatarepresentationfortyp?language=objc +func (i_ ItemProvider) RegisterDataRepresentationForTypeIdentifierVisibilityLoadHandler(typeIdentifier string, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(data []byte, error Error)) Progress) { + objc.Call[objc.Void](i_, objc.Sel("registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"), typeIdentifier, visibility, loadHandler) } -// Asynchronously loads an object of a specified class to an item provider, returning a progress object. [Full Topic] +// Returns a Boolean value indicating whether an item provider contains a data representation conforming to a specified universal type identifier file options parameter with a value of zero. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888336-loadobjectofclass?language=objc -func (i_ ItemProvider) LoadObjectOfClassCompletionHandler(aClass objc.IClass, completionHandler func(object objc.Object, error Error)) Progress { - rv := objc.Call[Progress](i_, objc.Sel("loadObjectOfClass:completionHandler:"), aClass, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403921-hasitemconformingtotypeidentifie?language=objc +func (i_ ItemProvider) HasItemConformingToTypeIdentifier(typeIdentifier string) bool { + rv := objc.Call[bool](i_, objc.Sel("hasItemConformingToTypeIdentifier:"), typeIdentifier) return rv } -// Lazily adds representations of a specified object class to an item provider, based on the object’s implementation of the item provider writing protocol, and adhering to a visibility specification. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888329-registerobjectofclass?language=objc -func (i_ ItemProvider) RegisterObjectOfClassVisibilityLoadHandler(aClass objc.IClass, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(object ItemProviderWritingObject, error Error)) Progress) { - objc.Call[objc.Void](i_, objc.Sel("registerObjectOfClass:visibility:loadHandler:"), aClass, visibility, loadHandler) -} - -// Returns the array of type identifiers for the item provider, in the same order they were registered. [Full Topic] +// Returns an array with a subset of type identifiers for the item provider, according to the specified file options, in the same order they were registered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403923-registeredtypeidentifiers?language=objc -func (i_ ItemProvider) RegisteredTypeIdentifiers() []string { - rv := objc.Call[[]string](i_, objc.Sel("registeredTypeIdentifiers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2888334-registeredtypeidentifierswithfil?language=objc +func (i_ ItemProvider) RegisteredTypeIdentifiersWithFileOptions(fileOptions ItemProviderFileOptions) []string { + rv := objc.Call[[]string](i_, objc.Sel("registeredTypeIdentifiersWithFileOptions:"), fileOptions) return rv } -// The filename to use when writing the provided data to a file on disk. [Full Topic] +// The ideal presentation size of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2890244-suggestedname?language=objc -func (i_ ItemProvider) SuggestedName() string { - rv := objc.Call[string](i_, objc.Sel("suggestedName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1528574-preferredpresentationsize?language=objc +func (i_ ItemProvider) PreferredPresentationSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](i_, objc.Sel("preferredPresentationSize")) return rv } -// The filename to use when writing the provided data to a file on disk. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2890244-suggestedname?language=objc -func (i_ ItemProvider) SetSuggestedName(value string) { - objc.Call[objc.Void](i_, objc.Sel("setSuggestedName:"), value) -} - // The ideal presentation size of the item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1528574-preferredpresentationsize?language=objc -func (i_ ItemProvider) PreferredPresentationSize() Size { - rv := objc.Call[Size](i_, objc.Sel("preferredPresentationSize")) - return rv +func (i_ ItemProvider) SetPreferredPresentationSize(value coregraphics.Size) { + objc.Call[objc.Void](i_, objc.Sel("setPreferredPresentationSize:"), value) } // The custom preview image handler block for the item provider. [Full Topic] @@ -295,6 +281,21 @@ func (i_ ItemProvider) ContainerFrame() Rect { return rv } +// The filename to use when writing the provided data to a file on disk. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2890244-suggestedname?language=objc +func (i_ ItemProvider) SuggestedName() string { + rv := objc.Call[string](i_, objc.Sel("suggestedName")) + return rv +} + +// The filename to use when writing the provided data to a file on disk. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/2890244-suggestedname?language=objc +func (i_ ItemProvider) SetSuggestedName(value string) { + objc.Call[objc.Void](i_, objc.Sel("setSuggestedName:"), value) +} + // The rectangle that the item occupies in the host app’s source window. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1528569-sourceframe?language=objc @@ -302,3 +303,11 @@ func (i_ ItemProvider) SourceFrame() Rect { rv := objc.Call[Rect](i_, objc.Sel("sourceFrame")) return rv } + +// Returns the array of type identifiers for the item provider, in the same order they were registered. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1403923-registeredtypeidentifiers?language=objc +func (i_ ItemProvider) RegisteredTypeIdentifiers() []string { + rv := objc.Call[[]string](i_, objc.Sel("registeredTypeIdentifiers")) + return rv +} diff --git a/macos/foundation/item_provider_writing_protocol.gen.go b/macos/foundation/item_provider_writing_protocol.gen.go index 5dc8a13b..719f744e 100644 --- a/macos/foundation/item_provider_writing_protocol.gen.go +++ b/macos/foundation/item_provider_writing_protocol.gen.go @@ -10,13 +10,17 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemproviderwriting?language=objc type PItemProviderWriting interface { + // optional + ItemProviderVisibilityForRepresentationWithTypeIdentifier(typeIdentifier string) ItemProviderRepresentationVisibility + HasItemProviderVisibilityForRepresentationWithTypeIdentifier() bool + // optional LoadDataWithTypeIdentifierForItemProviderCompletionHandler(typeIdentifier string, completionHandler func(data []byte, error Error)) Progress HasLoadDataWithTypeIdentifierForItemProviderCompletionHandler() bool // optional - ItemProviderVisibilityForRepresentationWithTypeIdentifier_(typeIdentifier string) ItemProviderRepresentationVisibility - HasItemProviderVisibilityForRepresentationWithTypeIdentifier_() bool + WritableTypeIdentifiersForItemProvider() []string + HasWritableTypeIdentifiersForItemProvider() bool } // ensure impl type implements protocol interface @@ -27,6 +31,18 @@ type ItemProviderWritingObject struct { objc.Object } +func (i_ ItemProviderWritingObject) HasItemProviderVisibilityForRepresentationWithTypeIdentifier() bool { + return i_.RespondsToSelector(objc.Sel("itemProviderVisibilityForRepresentationWithTypeIdentifier:")) +} + +// Asks the item provider for the representation visibility specification for the given UTI. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemproviderwriting/2921254-itemprovidervisibilityforreprese?language=objc +func (i_ ItemProviderWritingObject) ItemProviderVisibilityForRepresentationWithTypeIdentifier(typeIdentifier string) ItemProviderRepresentationVisibility { + rv := objc.Call[ItemProviderRepresentationVisibility](i_, objc.Sel("itemProviderVisibilityForRepresentationWithTypeIdentifier:"), typeIdentifier) + return rv +} + func (i_ ItemProviderWritingObject) HasLoadDataWithTypeIdentifierForItemProviderCompletionHandler() bool { return i_.RespondsToSelector(objc.Sel("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:")) } @@ -39,14 +55,14 @@ func (i_ ItemProviderWritingObject) LoadDataWithTypeIdentifierForItemProviderCom return rv } -func (i_ ItemProviderWritingObject) HasItemProviderVisibilityForRepresentationWithTypeIdentifier_() bool { - return i_.RespondsToSelector(objc.Sel("itemProviderVisibilityForRepresentationWithTypeIdentifier:")) +func (i_ ItemProviderWritingObject) HasWritableTypeIdentifiersForItemProvider() bool { + return i_.RespondsToSelector(objc.Sel("writableTypeIdentifiersForItemProvider")) } -// Asks the item provider for the representation visibility specification for the given UTI. [Full Topic] +// An array of UTI strings representing the types of data that can be loaded for an item provider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemproviderwriting/2921254-itemprovidervisibilityforreprese?language=objc -func (i_ ItemProviderWritingObject) ItemProviderVisibilityForRepresentationWithTypeIdentifier_(typeIdentifier string) ItemProviderRepresentationVisibility { - rv := objc.Call[ItemProviderRepresentationVisibility](i_, objc.Sel("itemProviderVisibilityForRepresentationWithTypeIdentifier:"), typeIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemproviderwriting/2888299-writabletypeidentifiersforitempr?language=objc +func (i_ ItemProviderWritingObject) WritableTypeIdentifiersForItemProvider() []string { + rv := objc.Call[[]string](i_, objc.Sel("writableTypeIdentifiersForItemProvider")) return rv } diff --git a/macos/foundation/json_serialization.gen.go b/macos/foundation/json_serialization.gen.go index e4877d39..4bd3f226 100644 --- a/macos/foundation/json_serialization.gen.go +++ b/macos/foundation/json_serialization.gen.go @@ -53,6 +53,21 @@ func (j_ JSONSerialization) Init() JSONSerialization { return rv } +// Returns a Foundation object from JSON data in a given stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1418059-jsonobjectwithstream?language=objc +func (jc _JSONSerializationClass) JSONObjectWithStreamOptionsError(stream IInputStream, opt JSONReadingOptions, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](jc, objc.Sel("JSONObjectWithStream:options:error:"), stream, opt, error) + return rv +} + +// Returns a Foundation object from JSON data in a given stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1418059-jsonobjectwithstream?language=objc +func JSONSerialization_JSONObjectWithStreamOptionsError(stream IInputStream, opt JSONReadingOptions, error unsafe.Pointer) objc.Object { + return JSONSerializationClass.JSONObjectWithStreamOptionsError(stream, opt, error) +} + // Returns a Foundation object from given JSON data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1415493-jsonobjectwithdata?language=objc @@ -68,21 +83,6 @@ func JSONSerialization_JSONObjectWithDataOptionsError(data []byte, opt JSONReadi return JSONSerializationClass.JSONObjectWithDataOptionsError(data, opt, error) } -// Returns a Boolean value that indicates whether the serializer can convert a given object to JSON data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1418461-isvalidjsonobject?language=objc -func (jc _JSONSerializationClass) IsValidJSONObject(obj objc.IObject) bool { - rv := objc.Call[bool](jc, objc.Sel("isValidJSONObject:"), obj) - return rv -} - -// Returns a Boolean value that indicates whether the serializer can convert a given object to JSON data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1418461-isvalidjsonobject?language=objc -func JSONSerialization_IsValidJSONObject(obj objc.IObject) bool { - return JSONSerializationClass.IsValidJSONObject(obj) -} - // Writes a given JSON object to a stream. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1417433-writejsonobject?language=objc @@ -98,6 +98,21 @@ func JSONSerialization_WriteJSONObjectToStreamOptionsError(obj objc.IObject, str return JSONSerializationClass.WriteJSONObjectToStreamOptionsError(obj, stream, opt, error) } +// Returns a Boolean value that indicates whether the serializer can convert a given object to JSON data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1418461-isvalidjsonobject?language=objc +func (jc _JSONSerializationClass) IsValidJSONObject(obj objc.IObject) bool { + rv := objc.Call[bool](jc, objc.Sel("isValidJSONObject:"), obj) + return rv +} + +// Returns a Boolean value that indicates whether the serializer can convert a given object to JSON data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1418461-isvalidjsonobject?language=objc +func JSONSerialization_IsValidJSONObject(obj objc.IObject) bool { + return JSONSerializationClass.IsValidJSONObject(obj) +} + // Returns JSON data from a Foundation object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1413636-datawithjsonobject?language=objc @@ -112,18 +127,3 @@ func (jc _JSONSerializationClass) DataWithJSONObjectOptionsError(obj objc.IObjec func JSONSerialization_DataWithJSONObjectOptionsError(obj objc.IObject, opt JSONWritingOptions, error unsafe.Pointer) []byte { return JSONSerializationClass.DataWithJSONObjectOptionsError(obj, opt, error) } - -// Returns a Foundation object from JSON data in a given stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1418059-jsonobjectwithstream?language=objc -func (jc _JSONSerializationClass) JSONObjectWithStreamOptionsError(stream IInputStream, opt JSONReadingOptions, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](jc, objc.Sel("JSONObjectWithStream:options:error:"), stream, opt, error) - return rv -} - -// Returns a Foundation object from JSON data in a given stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1418059-jsonobjectwithstream?language=objc -func JSONSerialization_JSONObjectWithStreamOptionsError(stream IInputStream, opt JSONReadingOptions, error unsafe.Pointer) objc.Object { - return JSONSerializationClass.JSONObjectWithStreamOptionsError(stream, opt, error) -} diff --git a/macos/foundation/keyed_archiver.gen.go b/macos/foundation/keyed_archiver.gen.go index 4d6c76a3..18882958 100644 --- a/macos/foundation/keyed_archiver.gen.go +++ b/macos/foundation/keyed_archiver.gen.go @@ -18,9 +18,12 @@ type _KeyedArchiverClass struct { // An interface definition for the [KeyedArchiver] class. type IKeyedArchiver interface { ICoder - ClassNameForClass_(cls objc.IClass) string - SetClassNameForClass_(codedName string, cls objc.IClass) + EncodeObjectForKey(object objc.IObject, key string) + EncodeConditionalObjectForKey(object objc.IObject, key string) FinishEncoding() + ClassNameForClass(cls objc.IClass) string + SetClassNameForClass(codedName string, cls objc.IClass) + EncodeBytesLengthForKey(bytes *uint8, length uint, key string) OutputFormat() PropertyListFormat SetOutputFormat(value PropertyListFormat) Delegate() KeyedArchiverDelegateObject @@ -77,10 +80,31 @@ func (k_ KeyedArchiver) Init() KeyedArchiver { return rv } +// Encodes a given object and associates it with a given key. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiver/1412067-encodeobject?language=objc +func (k_ KeyedArchiver) EncodeObjectForKey(object objc.IObject, key string) { + objc.Call[objc.Void](k_, objc.Sel("encodeObject:forKey:"), object, key) +} + +// Encodes a reference to a given object and associates it with a key only if it has been unconditionally encoded elsewhere in the archive. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiver/1413677-encodeconditionalobject?language=objc +func (k_ KeyedArchiver) EncodeConditionalObjectForKey(object objc.IObject, key string) { + objc.Call[objc.Void](k_, objc.Sel("encodeConditionalObject:forKey:"), object, key) +} + +// Instructs the receiver to construct the final data stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiver/1413904-finishencoding?language=objc +func (k_ KeyedArchiver) FinishEncoding() { + objc.Call[objc.Void](k_, objc.Sel("finishEncoding")) +} + // Returns the class name with which this archiver encodes instances of a given class. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiver/1407245-classnameforclass?language=objc -func (k_ KeyedArchiver) ClassNameForClass_(cls objc.IClass) string { +func (k_ KeyedArchiver) ClassNameForClass(cls objc.IClass) string { rv := objc.Call[string](k_, objc.Sel("classNameForClass:"), cls) return rv } @@ -88,15 +112,15 @@ func (k_ KeyedArchiver) ClassNameForClass_(cls objc.IClass) string { // Sets a mapping for this archiver to encode instances of a given class with the provided name, rather than their real name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiver/1414746-setclassname?language=objc -func (k_ KeyedArchiver) SetClassNameForClass_(codedName string, cls objc.IClass) { +func (k_ KeyedArchiver) SetClassNameForClass(codedName string, cls objc.IClass) { objc.Call[objc.Void](k_, objc.Sel("setClassName:forClass:"), codedName, cls) } -// Instructs the receiver to construct the final data stream. [Full Topic] +// Encodes a given number of bytes from a given C array of bytes and associates them with a key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiver/1413904-finishencoding?language=objc -func (k_ KeyedArchiver) FinishEncoding() { - objc.Call[objc.Void](k_, objc.Sel("finishEncoding")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiver/1417696-encodebytes?language=objc +func (k_ KeyedArchiver) EncodeBytesLengthForKey(bytes *uint8, length uint, key string) { + objc.Call[objc.Void](k_, objc.Sel("encodeBytes:length:forKey:"), bytes, length, key) } // Encodes an object graph with the given root object into a data representation, optionally requiring secure coding. [Full Topic] diff --git a/macos/foundation/keyed_archiver_delegate.gen.go b/macos/foundation/keyed_archiver_delegate.gen.go index 78370035..a7851d8f 100644 --- a/macos/foundation/keyed_archiver_delegate.gen.go +++ b/macos/foundation/keyed_archiver_delegate.gen.go @@ -11,68 +11,41 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate?language=objc type PKeyedArchiverDelegate interface { // optional - ArchiverDidEncodeObject(archiver KeyedArchiver, object objc.Object) - HasArchiverDidEncodeObject() bool - - // optional - ArchiverWillFinish(archiver KeyedArchiver) - HasArchiverWillFinish() bool + ArchiverWillReplaceObjectWithObject(archiver KeyedArchiver, object objc.Object, newObject objc.Object) + HasArchiverWillReplaceObjectWithObject() bool // optional ArchiverDidFinish(archiver KeyedArchiver) HasArchiverDidFinish() bool // optional - ArchiverWillEncodeObject(archiver KeyedArchiver, object objc.Object) objc.Object - HasArchiverWillEncodeObject() bool - - // optional - ArchiverWillReplaceObjectWithObject(archiver KeyedArchiver, object objc.Object, newObject objc.Object) - HasArchiverWillReplaceObjectWithObject() bool + ArchiverWillFinish(archiver KeyedArchiver) + HasArchiverWillFinish() bool } // A delegate implementation builder for the [PKeyedArchiverDelegate] protocol. type KeyedArchiverDelegate struct { - _ArchiverDidEncodeObject func(archiver KeyedArchiver, object objc.Object) - _ArchiverWillFinish func(archiver KeyedArchiver) - _ArchiverDidFinish func(archiver KeyedArchiver) - _ArchiverWillEncodeObject func(archiver KeyedArchiver, object objc.Object) objc.Object _ArchiverWillReplaceObjectWithObject func(archiver KeyedArchiver, object objc.Object, newObject objc.Object) + _ArchiverDidFinish func(archiver KeyedArchiver) + _ArchiverWillFinish func(archiver KeyedArchiver) } -func (di *KeyedArchiverDelegate) HasArchiverDidEncodeObject() bool { - return di._ArchiverDidEncodeObject != nil -} - -// Informs the delegate that a given object has been encoded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1416193-archiver?language=objc -func (di *KeyedArchiverDelegate) SetArchiverDidEncodeObject(f func(archiver KeyedArchiver, object objc.Object)) { - di._ArchiverDidEncodeObject = f -} - -// Informs the delegate that a given object has been encoded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1416193-archiver?language=objc -func (di *KeyedArchiverDelegate) ArchiverDidEncodeObject(archiver KeyedArchiver, object objc.Object) { - di._ArchiverDidEncodeObject(archiver, object) -} -func (di *KeyedArchiverDelegate) HasArchiverWillFinish() bool { - return di._ArchiverWillFinish != nil +func (di *KeyedArchiverDelegate) HasArchiverWillReplaceObjectWithObject() bool { + return di._ArchiverWillReplaceObjectWithObject != nil } -// Notifies the delegate that encoding is about to finish. [Full Topic] +// Informs the delegate that one given object is being substituted for another given object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1411119-archiverwillfinish?language=objc -func (di *KeyedArchiverDelegate) SetArchiverWillFinish(f func(archiver KeyedArchiver)) { - di._ArchiverWillFinish = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1409389-archiver?language=objc +func (di *KeyedArchiverDelegate) SetArchiverWillReplaceObjectWithObject(f func(archiver KeyedArchiver, object objc.Object, newObject objc.Object)) { + di._ArchiverWillReplaceObjectWithObject = f } -// Notifies the delegate that encoding is about to finish. [Full Topic] +// Informs the delegate that one given object is being substituted for another given object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1411119-archiverwillfinish?language=objc -func (di *KeyedArchiverDelegate) ArchiverWillFinish(archiver KeyedArchiver) { - di._ArchiverWillFinish(archiver) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1409389-archiver?language=objc +func (di *KeyedArchiverDelegate) ArchiverWillReplaceObjectWithObject(archiver KeyedArchiver, object objc.Object, newObject objc.Object) { + di._ArchiverWillReplaceObjectWithObject(archiver, object, newObject) } func (di *KeyedArchiverDelegate) HasArchiverDidFinish() bool { return di._ArchiverDidFinish != nil @@ -91,39 +64,22 @@ func (di *KeyedArchiverDelegate) SetArchiverDidFinish(f func(archiver KeyedArchi func (di *KeyedArchiverDelegate) ArchiverDidFinish(archiver KeyedArchiver) { di._ArchiverDidFinish(archiver) } -func (di *KeyedArchiverDelegate) HasArchiverWillEncodeObject() bool { - return di._ArchiverWillEncodeObject != nil -} - -// Informs the delegate that object is about to be encoded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1409228-archiver?language=objc -func (di *KeyedArchiverDelegate) SetArchiverWillEncodeObject(f func(archiver KeyedArchiver, object objc.Object) objc.Object) { - di._ArchiverWillEncodeObject = f -} - -// Informs the delegate that object is about to be encoded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1409228-archiver?language=objc -func (di *KeyedArchiverDelegate) ArchiverWillEncodeObject(archiver KeyedArchiver, object objc.Object) objc.Object { - return di._ArchiverWillEncodeObject(archiver, object) -} -func (di *KeyedArchiverDelegate) HasArchiverWillReplaceObjectWithObject() bool { - return di._ArchiverWillReplaceObjectWithObject != nil +func (di *KeyedArchiverDelegate) HasArchiverWillFinish() bool { + return di._ArchiverWillFinish != nil } -// Informs the delegate that one given object is being substituted for another given object. [Full Topic] +// Notifies the delegate that encoding is about to finish. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1409389-archiver?language=objc -func (di *KeyedArchiverDelegate) SetArchiverWillReplaceObjectWithObject(f func(archiver KeyedArchiver, object objc.Object, newObject objc.Object)) { - di._ArchiverWillReplaceObjectWithObject = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1411119-archiverwillfinish?language=objc +func (di *KeyedArchiverDelegate) SetArchiverWillFinish(f func(archiver KeyedArchiver)) { + di._ArchiverWillFinish = f } -// Informs the delegate that one given object is being substituted for another given object. [Full Topic] +// Notifies the delegate that encoding is about to finish. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1409389-archiver?language=objc -func (di *KeyedArchiverDelegate) ArchiverWillReplaceObjectWithObject(archiver KeyedArchiver, object objc.Object, newObject objc.Object) { - di._ArchiverWillReplaceObjectWithObject(archiver, object, newObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1411119-archiverwillfinish?language=objc +func (di *KeyedArchiverDelegate) ArchiverWillFinish(archiver KeyedArchiver) { + di._ArchiverWillFinish(archiver) } // ensure impl type implements protocol interface @@ -134,26 +90,15 @@ type KeyedArchiverDelegateObject struct { objc.Object } -func (k_ KeyedArchiverDelegateObject) HasArchiverDidEncodeObject() bool { - return k_.RespondsToSelector(objc.Sel("archiver:didEncodeObject:")) -} - -// Informs the delegate that a given object has been encoded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1416193-archiver?language=objc -func (k_ KeyedArchiverDelegateObject) ArchiverDidEncodeObject(archiver KeyedArchiver, object objc.Object) { - objc.Call[objc.Void](k_, objc.Sel("archiver:didEncodeObject:"), archiver, object) -} - -func (k_ KeyedArchiverDelegateObject) HasArchiverWillFinish() bool { - return k_.RespondsToSelector(objc.Sel("archiverWillFinish:")) +func (k_ KeyedArchiverDelegateObject) HasArchiverWillReplaceObjectWithObject() bool { + return k_.RespondsToSelector(objc.Sel("archiver:willReplaceObject:withObject:")) } -// Notifies the delegate that encoding is about to finish. [Full Topic] +// Informs the delegate that one given object is being substituted for another given object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1411119-archiverwillfinish?language=objc -func (k_ KeyedArchiverDelegateObject) ArchiverWillFinish(archiver KeyedArchiver) { - objc.Call[objc.Void](k_, objc.Sel("archiverWillFinish:"), archiver) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1409389-archiver?language=objc +func (k_ KeyedArchiverDelegateObject) ArchiverWillReplaceObjectWithObject(archiver KeyedArchiver, object objc.Object, newObject objc.Object) { + objc.Call[objc.Void](k_, objc.Sel("archiver:willReplaceObject:withObject:"), archiver, object, newObject) } func (k_ KeyedArchiverDelegateObject) HasArchiverDidFinish() bool { @@ -167,25 +112,13 @@ func (k_ KeyedArchiverDelegateObject) ArchiverDidFinish(archiver KeyedArchiver) objc.Call[objc.Void](k_, objc.Sel("archiverDidFinish:"), archiver) } -func (k_ KeyedArchiverDelegateObject) HasArchiverWillEncodeObject() bool { - return k_.RespondsToSelector(objc.Sel("archiver:willEncodeObject:")) -} - -// Informs the delegate that object is about to be encoded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1409228-archiver?language=objc -func (k_ KeyedArchiverDelegateObject) ArchiverWillEncodeObject(archiver KeyedArchiver, object objc.Object) objc.Object { - rv := objc.Call[objc.Object](k_, objc.Sel("archiver:willEncodeObject:"), archiver, object) - return rv -} - -func (k_ KeyedArchiverDelegateObject) HasArchiverWillReplaceObjectWithObject() bool { - return k_.RespondsToSelector(objc.Sel("archiver:willReplaceObject:withObject:")) +func (k_ KeyedArchiverDelegateObject) HasArchiverWillFinish() bool { + return k_.RespondsToSelector(objc.Sel("archiverWillFinish:")) } -// Informs the delegate that one given object is being substituted for another given object. [Full Topic] +// Notifies the delegate that encoding is about to finish. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1409389-archiver?language=objc -func (k_ KeyedArchiverDelegateObject) ArchiverWillReplaceObjectWithObject(archiver KeyedArchiver, object objc.Object, newObject objc.Object) { - objc.Call[objc.Void](k_, objc.Sel("archiver:willReplaceObject:withObject:"), archiver, object, newObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1411119-archiverwillfinish?language=objc +func (k_ KeyedArchiverDelegateObject) ArchiverWillFinish(archiver KeyedArchiver) { + objc.Call[objc.Void](k_, objc.Sel("archiverWillFinish:"), archiver) } diff --git a/macos/foundation/keyed_unarchiver.gen.go b/macos/foundation/keyed_unarchiver.gen.go index 0bc1d92d..fd41e877 100644 --- a/macos/foundation/keyed_unarchiver.gen.go +++ b/macos/foundation/keyed_unarchiver.gen.go @@ -18,12 +18,12 @@ type _KeyedUnarchiverClass struct { // An interface definition for the [KeyedUnarchiver] class. type IKeyedUnarchiver interface { ICoder - ClassForClassName_(codedName string) objc.Class + SetClassForClassName(cls objc.IClass, codedName string) FinishDecoding() + SetDecodingFailurePolicy(value DecodingFailurePolicy) Delegate() KeyedUnarchiverDelegateObject SetDelegate(value PKeyedUnarchiverDelegate) SetDelegateObject(valueObject objc.IObject) - SetDecodingFailurePolicy(value DecodingFailurePolicy) SetRequiresSecureCoding(value bool) } @@ -74,27 +74,34 @@ func (k_ KeyedUnarchiver) Init() KeyedUnarchiver { return rv } -// Returns the class from which this unarchiver instantiates an encoded object with a given class name. [Full Topic] +// Decodes a previously-archived object graph, that returns the root object as the specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1412476-classforclassname?language=objc -func (k_ KeyedUnarchiver) ClassForClassName_(codedName string) objc.Class { - rv := objc.Call[objc.Class](k_, objc.Sel("classForClassName:"), codedName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962884-unarchivedobjectofclass?language=objc +func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassFromDataError(cls objc.IClass, data []byte, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:error:"), cls, data, error) return rv } -// [Full Topic] +// Decodes a previously-archived object graph, that returns the root object as the specified type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962884-unarchivedobjectofclass?language=objc +func KeyedUnarchiver_UnarchivedObjectOfClassFromDataError(cls objc.IClass, data []byte, error unsafe.Pointer) objc.Object { + return KeyedUnarchiverClass.UnarchivedObjectOfClassFromDataError(cls, data, error) +} + +// Returns the class from which this unarchiver instantiates an encoded object with a given class name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/3563984-unarchiveddictionarywithkeysofcl?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(keyClasses ISet, valueClasses ISet, data []byte, error unsafe.Pointer) Dictionary { - rv := objc.Call[Dictionary](kc, objc.Sel("unarchivedDictionaryWithKeysOfClasses:objectsOfClasses:fromData:error:"), keyClasses, valueClasses, data, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1416807-classforclassname?language=objc +func (kc _KeyedUnarchiverClass) ClassForClassName(codedName string) objc.Class { + rv := objc.Call[objc.Class](kc, objc.Sel("classForClassName:"), codedName) return rv } -// [Full Topic] +// Returns the class from which this unarchiver instantiates an encoded object with a given class name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/3563984-unarchiveddictionarywithkeysofcl?language=objc -func KeyedUnarchiver_UnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(keyClasses ISet, valueClasses ISet, data []byte, error unsafe.Pointer) Dictionary { - return KeyedUnarchiverClass.UnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(keyClasses, valueClasses, data, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1416807-classforclassname?language=objc +func KeyedUnarchiver_ClassForClassName(codedName string) objc.Class { + return KeyedUnarchiverClass.ClassForClassName(codedName) } // [Full Topic] @@ -112,40 +119,41 @@ func KeyedUnarchiver_UnarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataEr return KeyedUnarchiverClass.UnarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataError(keyCls, valueCls, data, error) } -// Decodes a previously-archived object graph, that returns the root object as the specified type. [Full Topic] +// Sets a translation mapping on this unarchiver to decode objects encoded with a given class name as instances of a given class instead. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962884-unarchivedobjectofclass?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassFromDataError(cls objc.IClass, data []byte, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:error:"), cls, data, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1414659-setclass?language=objc +func (k_ KeyedUnarchiver) SetClassForClassName(cls objc.IClass, codedName string) { + objc.Call[objc.Void](k_, objc.Sel("setClass:forClassName:"), cls, codedName) } -// Decodes a previously-archived object graph, that returns the root object as the specified type. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962884-unarchivedobjectofclass?language=objc -func KeyedUnarchiver_UnarchivedObjectOfClassFromDataError(cls objc.IClass, data []byte, error unsafe.Pointer) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassFromDataError(cls, data, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/3563981-unarchivedarrayofobjectsofclass?language=objc +func (kc _KeyedUnarchiverClass) UnarchivedArrayOfObjectsOfClassFromDataError(cls objc.IClass, data []byte, error unsafe.Pointer) []objc.Object { + rv := objc.Call[[]objc.Object](kc, objc.Sel("unarchivedArrayOfObjectsOfClass:fromData:error:"), cls, data, error) + return rv } -// Tells the receiver that you are finished decoding objects. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1418233-finishdecoding?language=objc -func (k_ KeyedUnarchiver) FinishDecoding() { - objc.Call[objc.Void](k_, objc.Sel("finishDecoding")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/3563981-unarchivedarrayofobjectsofclass?language=objc +func KeyedUnarchiver_UnarchivedArrayOfObjectsOfClassFromDataError(cls objc.IClass, data []byte, error unsafe.Pointer) []objc.Object { + return KeyedUnarchiverClass.UnarchivedArrayOfObjectsOfClassFromDataError(cls, data, error) } -// Sets a global translation mapping to decode objects encoded with a given class name as instances of a given class instead. [Full Topic] +// Decodes a previously-archived object graph, returning the root object as one of the specified classes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1409718-setclass?language=objc -func (kc _KeyedUnarchiverClass) SetClassForClassName_(cls objc.IClass, codedName string) { - objc.Call[objc.Void](kc, objc.Sel("setClass:forClassName:"), cls, codedName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962885-unarchivedobjectofclasses?language=objc +func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassesFromDataError(classes ISet, data []byte, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:error:"), classes, data, error) + return rv } -// Sets a global translation mapping to decode objects encoded with a given class name as instances of a given class instead. [Full Topic] +// Decodes a previously-archived object graph, returning the root object as one of the specified classes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1409718-setclass?language=objc -func KeyedUnarchiver_SetClassForClassName_(cls objc.IClass, codedName string) { - KeyedUnarchiverClass.SetClassForClassName_(cls, codedName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962885-unarchivedobjectofclasses?language=objc +func KeyedUnarchiver_UnarchivedObjectOfClassesFromDataError(classes ISet, data []byte, error unsafe.Pointer) objc.Object { + return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataError(classes, data, error) } // [Full Topic] @@ -163,34 +171,18 @@ func KeyedUnarchiver_UnarchivedArrayOfObjectsOfClassesFromDataError(classes ISet return KeyedUnarchiverClass.UnarchivedArrayOfObjectsOfClassesFromDataError(classes, data, error) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/3563981-unarchivedarrayofobjectsofclass?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedArrayOfObjectsOfClassFromDataError(cls objc.IClass, data []byte, error unsafe.Pointer) []objc.Object { - rv := objc.Call[[]objc.Object](kc, objc.Sel("unarchivedArrayOfObjectsOfClass:fromData:error:"), cls, data, error) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/3563981-unarchivedarrayofobjectsofclass?language=objc -func KeyedUnarchiver_UnarchivedArrayOfObjectsOfClassFromDataError(cls objc.IClass, data []byte, error unsafe.Pointer) []objc.Object { - return KeyedUnarchiverClass.UnarchivedArrayOfObjectsOfClassFromDataError(cls, data, error) -} - -// Decodes a previously-archived object graph, returning the root object as one of the specified classes. [Full Topic] +// Tells the receiver that you are finished decoding objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962885-unarchivedobjectofclasses?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassesFromDataError(classes ISet, data []byte, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:error:"), classes, data, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1418233-finishdecoding?language=objc +func (k_ KeyedUnarchiver) FinishDecoding() { + objc.Call[objc.Void](k_, objc.Sel("finishDecoding")) } -// Decodes a previously-archived object graph, returning the root object as one of the specified classes. [Full Topic] +// The action to take when this unarchiver fails to decode an entry. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962885-unarchivedobjectofclasses?language=objc -func KeyedUnarchiver_UnarchivedObjectOfClassesFromDataError(classes ISet, data []byte, error unsafe.Pointer) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataError(classes, data, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1643164-decodingfailurepolicy?language=objc +func (k_ KeyedUnarchiver) SetDecodingFailurePolicy(value DecodingFailurePolicy) { + objc.Call[objc.Void](k_, objc.Sel("setDecodingFailurePolicy:"), value) } // The receiver’s delegate. [Full Topic] @@ -216,13 +208,6 @@ func (k_ KeyedUnarchiver) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](k_, objc.Sel("setDelegate:"), valueObject) } -// The action to take when this unarchiver fails to decode an entry. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1643164-decodingfailurepolicy?language=objc -func (k_ KeyedUnarchiver) SetDecodingFailurePolicy(value DecodingFailurePolicy) { - objc.Call[objc.Void](k_, objc.Sel("setDecodingFailurePolicy:"), value) -} - // Indicates whether the receiver requires all unarchived classes to conform to NSSecureCoding. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1410824-requiressecurecoding?language=objc diff --git a/macos/foundation/keyed_unarchiver_delegate.gen.go b/macos/foundation/keyed_unarchiver_delegate.gen.go index 95813499..1440ade6 100644 --- a/macos/foundation/keyed_unarchiver_delegate.gen.go +++ b/macos/foundation/keyed_unarchiver_delegate.gen.go @@ -10,21 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate?language=objc type PKeyedUnarchiverDelegate interface { - // optional - UnarchiverDidFinish(unarchiver KeyedUnarchiver) - HasUnarchiverDidFinish() bool - - // optional - UnarchiverCannotDecodeObjectOfClassNameOriginalClasses(unarchiver KeyedUnarchiver, name string, classNames []string) objc.Class - HasUnarchiverCannotDecodeObjectOfClassNameOriginalClasses() bool - // optional UnarchiverWillFinish(unarchiver KeyedUnarchiver) HasUnarchiverWillFinish() bool // optional - UnarchiverDidDecodeObject(unarchiver KeyedUnarchiver, object objc.Object) objc.Object - HasUnarchiverDidDecodeObject() bool + UnarchiverDidFinish(unarchiver KeyedUnarchiver) + HasUnarchiverDidFinish() bool // optional UnarchiverWillReplaceObjectWithObject(unarchiver KeyedUnarchiver, object objc.Object, newObject objc.Object) @@ -33,47 +25,11 @@ type PKeyedUnarchiverDelegate interface { // A delegate implementation builder for the [PKeyedUnarchiverDelegate] protocol. type KeyedUnarchiverDelegate struct { - _UnarchiverDidFinish func(unarchiver KeyedUnarchiver) - _UnarchiverCannotDecodeObjectOfClassNameOriginalClasses func(unarchiver KeyedUnarchiver, name string, classNames []string) objc.Class - _UnarchiverWillFinish func(unarchiver KeyedUnarchiver) - _UnarchiverDidDecodeObject func(unarchiver KeyedUnarchiver, object objc.Object) objc.Object - _UnarchiverWillReplaceObjectWithObject func(unarchiver KeyedUnarchiver, object objc.Object, newObject objc.Object) -} - -func (di *KeyedUnarchiverDelegate) HasUnarchiverDidFinish() bool { - return di._UnarchiverDidFinish != nil -} - -// Notifies the delegate that decoding has finished. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1418067-unarchiverdidfinish?language=objc -func (di *KeyedUnarchiverDelegate) SetUnarchiverDidFinish(f func(unarchiver KeyedUnarchiver)) { - di._UnarchiverDidFinish = f -} - -// Notifies the delegate that decoding has finished. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1418067-unarchiverdidfinish?language=objc -func (di *KeyedUnarchiverDelegate) UnarchiverDidFinish(unarchiver KeyedUnarchiver) { - di._UnarchiverDidFinish(unarchiver) -} -func (di *KeyedUnarchiverDelegate) HasUnarchiverCannotDecodeObjectOfClassNameOriginalClasses() bool { - return di._UnarchiverCannotDecodeObjectOfClassNameOriginalClasses != nil -} - -// Informs the delegate that the class with a given name is not available during decoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1409948-unarchiver?language=objc -func (di *KeyedUnarchiverDelegate) SetUnarchiverCannotDecodeObjectOfClassNameOriginalClasses(f func(unarchiver KeyedUnarchiver, name string, classNames []string) objc.Class) { - di._UnarchiverCannotDecodeObjectOfClassNameOriginalClasses = f + _UnarchiverWillFinish func(unarchiver KeyedUnarchiver) + _UnarchiverDidFinish func(unarchiver KeyedUnarchiver) + _UnarchiverWillReplaceObjectWithObject func(unarchiver KeyedUnarchiver, object objc.Object, newObject objc.Object) } -// Informs the delegate that the class with a given name is not available during decoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1409948-unarchiver?language=objc -func (di *KeyedUnarchiverDelegate) UnarchiverCannotDecodeObjectOfClassNameOriginalClasses(unarchiver KeyedUnarchiver, name string, classNames []string) objc.Class { - return di._UnarchiverCannotDecodeObjectOfClassNameOriginalClasses(unarchiver, name, classNames) -} func (di *KeyedUnarchiverDelegate) HasUnarchiverWillFinish() bool { return di._UnarchiverWillFinish != nil } @@ -91,22 +47,22 @@ func (di *KeyedUnarchiverDelegate) SetUnarchiverWillFinish(f func(unarchiver Key func (di *KeyedUnarchiverDelegate) UnarchiverWillFinish(unarchiver KeyedUnarchiver) { di._UnarchiverWillFinish(unarchiver) } -func (di *KeyedUnarchiverDelegate) HasUnarchiverDidDecodeObject() bool { - return di._UnarchiverDidDecodeObject != nil +func (di *KeyedUnarchiverDelegate) HasUnarchiverDidFinish() bool { + return di._UnarchiverDidFinish != nil } -// Informs the delegate that a given object has been decoded. [Full Topic] +// Notifies the delegate that decoding has finished. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1414187-unarchiver?language=objc -func (di *KeyedUnarchiverDelegate) SetUnarchiverDidDecodeObject(f func(unarchiver KeyedUnarchiver, object objc.Object) objc.Object) { - di._UnarchiverDidDecodeObject = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1418067-unarchiverdidfinish?language=objc +func (di *KeyedUnarchiverDelegate) SetUnarchiverDidFinish(f func(unarchiver KeyedUnarchiver)) { + di._UnarchiverDidFinish = f } -// Informs the delegate that a given object has been decoded. [Full Topic] +// Notifies the delegate that decoding has finished. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1414187-unarchiver?language=objc -func (di *KeyedUnarchiverDelegate) UnarchiverDidDecodeObject(unarchiver KeyedUnarchiver, object objc.Object) objc.Object { - return di._UnarchiverDidDecodeObject(unarchiver, object) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1418067-unarchiverdidfinish?language=objc +func (di *KeyedUnarchiverDelegate) UnarchiverDidFinish(unarchiver KeyedUnarchiver) { + di._UnarchiverDidFinish(unarchiver) } func (di *KeyedUnarchiverDelegate) HasUnarchiverWillReplaceObjectWithObject() bool { return di._UnarchiverWillReplaceObjectWithObject != nil @@ -134,29 +90,6 @@ type KeyedUnarchiverDelegateObject struct { objc.Object } -func (k_ KeyedUnarchiverDelegateObject) HasUnarchiverDidFinish() bool { - return k_.RespondsToSelector(objc.Sel("unarchiverDidFinish:")) -} - -// Notifies the delegate that decoding has finished. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1418067-unarchiverdidfinish?language=objc -func (k_ KeyedUnarchiverDelegateObject) UnarchiverDidFinish(unarchiver KeyedUnarchiver) { - objc.Call[objc.Void](k_, objc.Sel("unarchiverDidFinish:"), unarchiver) -} - -func (k_ KeyedUnarchiverDelegateObject) HasUnarchiverCannotDecodeObjectOfClassNameOriginalClasses() bool { - return k_.RespondsToSelector(objc.Sel("unarchiver:cannotDecodeObjectOfClassName:originalClasses:")) -} - -// Informs the delegate that the class with a given name is not available during decoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1409948-unarchiver?language=objc -func (k_ KeyedUnarchiverDelegateObject) UnarchiverCannotDecodeObjectOfClassNameOriginalClasses(unarchiver KeyedUnarchiver, name string, classNames []string) objc.Class { - rv := objc.Call[objc.Class](k_, objc.Sel("unarchiver:cannotDecodeObjectOfClassName:originalClasses:"), unarchiver, name, classNames) - return rv -} - func (k_ KeyedUnarchiverDelegateObject) HasUnarchiverWillFinish() bool { return k_.RespondsToSelector(objc.Sel("unarchiverWillFinish:")) } @@ -168,16 +101,15 @@ func (k_ KeyedUnarchiverDelegateObject) UnarchiverWillFinish(unarchiver KeyedUna objc.Call[objc.Void](k_, objc.Sel("unarchiverWillFinish:"), unarchiver) } -func (k_ KeyedUnarchiverDelegateObject) HasUnarchiverDidDecodeObject() bool { - return k_.RespondsToSelector(objc.Sel("unarchiver:didDecodeObject:")) +func (k_ KeyedUnarchiverDelegateObject) HasUnarchiverDidFinish() bool { + return k_.RespondsToSelector(objc.Sel("unarchiverDidFinish:")) } -// Informs the delegate that a given object has been decoded. [Full Topic] +// Notifies the delegate that decoding has finished. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1414187-unarchiver?language=objc -func (k_ KeyedUnarchiverDelegateObject) UnarchiverDidDecodeObject(unarchiver KeyedUnarchiver, object objc.Object) objc.Object { - rv := objc.Call[objc.Object](k_, objc.Sel("unarchiver:didDecodeObject:"), unarchiver, object) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1418067-unarchiverdidfinish?language=objc +func (k_ KeyedUnarchiverDelegateObject) UnarchiverDidFinish(unarchiver KeyedUnarchiver) { + objc.Call[objc.Void](k_, objc.Sel("unarchiverDidFinish:"), unarchiver) } func (k_ KeyedUnarchiverDelegateObject) HasUnarchiverWillReplaceObjectWithObject() bool { diff --git a/macos/foundation/length_formatter.gen.go b/macos/foundation/length_formatter.gen.go index f239a6ab..39948526 100644 --- a/macos/foundation/length_formatter.gen.go +++ b/macos/foundation/length_formatter.gen.go @@ -18,16 +18,16 @@ type _LengthFormatterClass struct { // An interface definition for the [LengthFormatter] class. type ILengthFormatter interface { IFormatter - StringFromMeters(numberInMeters float64) string - UnitStringFromMetersUsedUnit(numberInMeters float64, unitp *LengthFormatterUnit) string StringFromValueUnit(value float64, unit LengthFormatterUnit) string + StringFromMeters(numberInMeters float64) string UnitStringFromValueUnit(value float64, unit LengthFormatterUnit) string + UnitStringFromMetersUsedUnit(numberInMeters float64, unitp *LengthFormatterUnit) string IsForPersonHeightUse() bool SetForPersonHeightUse(value bool) - NumberFormatter() NumberFormatter - SetNumberFormatter(value INumberFormatter) UnitStyle() FormattingUnitStyle SetUnitStyle(value FormattingUnitStyle) + NumberFormatter() NumberFormatter + SetNumberFormatter(value INumberFormatter) } // A formatter that provides localized descriptions of linear distances, such as length and height measurements. [Full Topic] @@ -63,22 +63,6 @@ func (l_ LengthFormatter) Init() LengthFormatter { return rv } -// Returns a length string for the provided value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1416111-stringfrommeters?language=objc -func (l_ LengthFormatter) StringFromMeters(numberInMeters float64) string { - rv := objc.Call[string](l_, objc.Sel("stringFromMeters:"), numberInMeters) - return rv -} - -// Returns the unit string for the provided value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1407661-unitstringfrommeters?language=objc -func (l_ LengthFormatter) UnitStringFromMetersUsedUnit(numberInMeters float64, unitp *LengthFormatterUnit) string { - rv := objc.Call[string](l_, objc.Sel("unitStringFromMeters:usedUnit:"), numberInMeters, unitp) - return rv -} - // Returns a properly formatted length string for the given value and unit. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1418018-stringfromvalue?language=objc @@ -87,6 +71,14 @@ func (l_ LengthFormatter) StringFromValueUnit(value float64, unit LengthFormatte return rv } +// Returns a length string for the provided value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1416111-stringfrommeters?language=objc +func (l_ LengthFormatter) StringFromMeters(numberInMeters float64) string { + rv := objc.Call[string](l_, objc.Sel("stringFromMeters:"), numberInMeters) + return rv +} + // Returns the unit string based on the provided value and unit. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1416076-unitstringfromvalue?language=objc @@ -95,6 +87,14 @@ func (l_ LengthFormatter) UnitStringFromValueUnit(value float64, unit LengthForm return rv } +// Returns the unit string for the provided value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1407661-unitstringfrommeters?language=objc +func (l_ LengthFormatter) UnitStringFromMetersUsedUnit(numberInMeters float64, unitp *LengthFormatterUnit) string { + rv := objc.Call[string](l_, objc.Sel("unitStringFromMeters:usedUnit:"), numberInMeters, unitp) + return rv +} + // A Boolean value that indicates whether the resulting string represents a person’s height. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1416517-forpersonheightuse?language=objc @@ -110,21 +110,6 @@ func (l_ LengthFormatter) SetForPersonHeightUse(value bool) { objc.Call[objc.Void](l_, objc.Sel("setForPersonHeightUse:"), value) } -// The number formatter used to format the numbers in length strings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1417778-numberformatter?language=objc -func (l_ LengthFormatter) NumberFormatter() NumberFormatter { - rv := objc.Call[NumberFormatter](l_, objc.Sel("numberFormatter")) - return rv -} - -// The number formatter used to format the numbers in length strings. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1417778-numberformatter?language=objc -func (l_ LengthFormatter) SetNumberFormatter(value INumberFormatter) { - objc.Call[objc.Void](l_, objc.Sel("setNumberFormatter:"), value) -} - // The unit style used by this formatter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1409965-unitstyle?language=objc @@ -139,3 +124,18 @@ func (l_ LengthFormatter) UnitStyle() FormattingUnitStyle { func (l_ LengthFormatter) SetUnitStyle(value FormattingUnitStyle) { objc.Call[objc.Void](l_, objc.Sel("setUnitStyle:"), value) } + +// The number formatter used to format the numbers in length strings. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1417778-numberformatter?language=objc +func (l_ LengthFormatter) NumberFormatter() NumberFormatter { + rv := objc.Call[NumberFormatter](l_, objc.Sel("numberFormatter")) + return rv +} + +// The number formatter used to format the numbers in length strings. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1417778-numberformatter?language=objc +func (l_ LengthFormatter) SetNumberFormatter(value INumberFormatter) { + objc.Call[objc.Void](l_, objc.Sel("setNumberFormatter:"), value) +} diff --git a/macos/foundation/list_formatter.gen.go b/macos/foundation/list_formatter.gen.go index 2952b961..996f6739 100644 --- a/macos/foundation/list_formatter.gen.go +++ b/macos/foundation/list_formatter.gen.go @@ -19,10 +19,10 @@ type _ListFormatterClass struct { type IListFormatter interface { IFormatter StringFromItems(items []objc.IObject) string - ItemFormatter() Formatter - SetItemFormatter(value IFormatter) Locale() Locale SetLocale(value ILocale) + ItemFormatter() Formatter + SetItemFormatter(value IFormatter) } // An object that provides locale-correct formatting of a list of items using the appropriate separator and conjunction. [Full Topic] @@ -58,6 +58,14 @@ func (l_ ListFormatter) Init() ListFormatter { return rv } +// Creates a formatted string for an array of items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslistformatter/3130992-stringfromitems?language=objc +func (l_ ListFormatter) StringFromItems(items []objc.IObject) string { + rv := objc.Call[string](l_, objc.Sel("stringFromItems:"), items) + return rv +} + // Constructs a formatted string from an array of strings that uses the list format specific to the current locale. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslistformatter/3130990-localizedstringbyjoiningstrings?language=objc @@ -73,14 +81,21 @@ func ListFormatter_LocalizedStringByJoiningStrings(strings []string) string { return ListFormatterClass.LocalizedStringByJoiningStrings(strings) } -// Creates a formatted string for an array of items. [Full Topic] +// The locale to use when formatting items in the list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslistformatter/3130992-stringfromitems?language=objc -func (l_ ListFormatter) StringFromItems(items []objc.IObject) string { - rv := objc.Call[string](l_, objc.Sel("stringFromItems:"), items) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslistformatter/3130989-locale?language=objc +func (l_ ListFormatter) Locale() Locale { + rv := objc.Call[Locale](l_, objc.Sel("locale")) return rv } +// The locale to use when formatting items in the list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslistformatter/3130989-locale?language=objc +func (l_ ListFormatter) SetLocale(value ILocale) { + objc.Call[objc.Void](l_, objc.Sel("setLocale:"), value) +} + // An object that formats each item in the list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslistformatter/3130988-itemformatter?language=objc @@ -95,18 +110,3 @@ func (l_ ListFormatter) ItemFormatter() Formatter { func (l_ ListFormatter) SetItemFormatter(value IFormatter) { objc.Call[objc.Void](l_, objc.Sel("setItemFormatter:"), value) } - -// The locale to use when formatting items in the list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslistformatter/3130989-locale?language=objc -func (l_ ListFormatter) Locale() Locale { - rv := objc.Call[Locale](l_, objc.Sel("locale")) - return rv -} - -// The locale to use when formatting items in the list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslistformatter/3130989-locale?language=objc -func (l_ ListFormatter) SetLocale(value ILocale) { - objc.Call[objc.Void](l_, objc.Sel("setLocale:"), value) -} diff --git a/macos/foundation/locale.gen.go b/macos/foundation/locale.gen.go index 1ddad7c0..ede301fc 100644 --- a/macos/foundation/locale.gen.go +++ b/macos/foundation/locale.gen.go @@ -18,34 +18,34 @@ type _LocaleClass struct { // An interface definition for the [Locale] class. type ILocale interface { objc.IObject - LocalizedStringForCollationIdentifier(collationIdentifier string) string - LocalizedStringForVariantCode(variantCode string) string + ObjectForKey(key LocaleKey) objc.Object + LocalizedStringForCollatorIdentifier(collatorIdentifier string) string DisplayNameForKeyValue(key LocaleKey, value objc.IObject) string - LocalizedStringForCountryCode(countryCode string) string + LocalizedStringForScriptCode(scriptCode string) string LocalizedStringForLanguageCode(languageCode string) string - LocalizedStringForCurrencyCode(currencyCode string) string - LocalizedStringForCollatorIdentifier(collatorIdentifier string) string LocalizedStringForLocaleIdentifier(localeIdentifier string) string - ObjectForKey(key LocaleKey) objc.Object - LocalizedStringForScriptCode(scriptCode string) string LocalizedStringForCalendarIdentifier(calendarIdentifier string) string - CollationIdentifier() string - CollatorIdentifier() string - DecimalSeparator() string - CurrencySymbol() string + LocalizedStringForCurrencyCode(currencyCode string) string + LocalizedStringForCollationIdentifier(collationIdentifier string) string + LocalizedStringForVariantCode(variantCode string) string + LocalizedStringForCountryCode(countryCode string) string + AlternateQuotationEndDelimiter() string CurrencyCode() string - QuotationBeginDelimiter() string - AlternateQuotationBeginDelimiter() string - LanguageCode() string - ScriptCode() string + UsesMetricSystem() bool CalendarIdentifier() string - VariantCode() string + AlternateQuotationBeginDelimiter() string QuotationEndDelimiter() string + CollatorIdentifier() string + VariantCode() string ExemplarCharacterSet() CharacterSet - GroupingSeparator() string + CollationIdentifier() string + CurrencySymbol() string + ScriptCode() string + QuotationBeginDelimiter() string LocaleIdentifier() string - UsesMetricSystem() bool - AlternateQuotationEndDelimiter() string + DecimalSeparator() string + LanguageCode() string + GroupingSeparator() string } // Information about linguistic, cultural, and technological conventions for use in formatting data for presentation. [Full Topic] @@ -107,34 +107,19 @@ func (l_ Locale) Init() Locale { return rv } -// Returns the localized string for the specified collation identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642875-localizedstringforcollationident?language=objc -func (l_ Locale) LocalizedStringForCollationIdentifier(collationIdentifier string) string { - rv := objc.Call[string](l_, objc.Sel("localizedStringForCollationIdentifier:"), collationIdentifier) - return rv -} - -// Returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier. [Full Topic] +// Returns the value of the component corresponding to the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1413069-canonicallanguageidentifierfroms?language=objc -func (lc _LocaleClass) CanonicalLanguageIdentifierFromString(string_ string) string { - rv := objc.Call[string](lc, objc.Sel("canonicalLanguageIdentifierFromString:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1418430-objectforkey?language=objc +func (l_ Locale) ObjectForKey(key LocaleKey) objc.Object { + rv := objc.Call[objc.Object](l_, objc.Sel("objectForKey:"), key) return rv } -// Returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1413069-canonicallanguageidentifierfroms?language=objc -func Locale_CanonicalLanguageIdentifierFromString(string_ string) string { - return LocaleClass.CanonicalLanguageIdentifierFromString(string_) -} - -// Returns the localized string for the specified variant code. [Full Topic] +// Returns the localized string for the specified collator identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643264-localizedstringforvariantcode?language=objc -func (l_ Locale) LocalizedStringForVariantCode(variantCode string) string { - rv := objc.Call[string](l_, objc.Sel("localizedStringForVariantCode:"), variantCode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643004-localizedstringforcollatoridenti?language=objc +func (l_ Locale) LocalizedStringForCollatorIdentifier(collatorIdentifier string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForCollatorIdentifier:"), collatorIdentifier) return rv } @@ -146,27 +131,27 @@ func (l_ Locale) DisplayNameForKeyValue(key LocaleKey, value objc.IObject) strin return rv } -// Returns the localized string for a country or region code. [Full Topic] +// Returns a locale identifier from the components specified in a given dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642920-localizedstringforcountrycode?language=objc -func (l_ Locale) LocalizedStringForCountryCode(countryCode string) string { - rv := objc.Call[string](l_, objc.Sel("localizedStringForCountryCode:"), countryCode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412439-localeidentifierfromcomponents?language=objc +func (lc _LocaleClass) LocaleIdentifierFromComponents(dict map[string]string) string { + rv := objc.Call[string](lc, objc.Sel("localeIdentifierFromComponents:"), dict) return rv } -// Returns a dictionary that is the result of parsing a locale ID. [Full Topic] +// Returns a locale identifier from the components specified in a given dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1409220-componentsfromlocaleidentifier?language=objc -func (lc _LocaleClass) ComponentsFromLocaleIdentifier(string_ string) map[string]string { - rv := objc.Call[map[string]string](lc, objc.Sel("componentsFromLocaleIdentifier:"), string_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412439-localeidentifierfromcomponents?language=objc +func Locale_LocaleIdentifierFromComponents(dict map[string]string) string { + return LocaleClass.LocaleIdentifierFromComponents(dict) } -// Returns a dictionary that is the result of parsing a locale ID. [Full Topic] +// Returns the localized string for the specified script code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1409220-componentsfromlocaleidentifier?language=objc -func Locale_ComponentsFromLocaleIdentifier(string_ string) map[string]string { - return LocaleClass.ComponentsFromLocaleIdentifier(string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643126-localizedstringforscriptcode?language=objc +func (l_ Locale) LocalizedStringForScriptCode(scriptCode string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForScriptCode:"), scriptCode) + return rv } // Returns the localized string for the specified language code. [Full Topic] @@ -177,22 +162,6 @@ func (l_ Locale) LocalizedStringForLanguageCode(languageCode string) string { return rv } -// Returns the localized string for the specified currency code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643179-localizedstringforcurrencycode?language=objc -func (l_ Locale) LocalizedStringForCurrencyCode(currencyCode string) string { - rv := objc.Call[string](l_, objc.Sel("localizedStringForCurrencyCode:"), currencyCode) - return rv -} - -// Returns the localized string for the specified collator identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643004-localizedstringforcollatoridenti?language=objc -func (l_ Locale) LocalizedStringForCollatorIdentifier(collatorIdentifier string) string { - rv := objc.Call[string](l_, objc.Sel("localizedStringForCollatorIdentifier:"), collatorIdentifier) - return rv -} - // Returns the direction of the sequence of lines for the specified ISO language code. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1414007-linedirectionforlanguage?language=objc @@ -208,19 +177,20 @@ func Locale_LineDirectionForLanguage(isoLangCode string) LocaleLanguageDirection return LocaleClass.LineDirectionForLanguage(isoLangCode) } -// Returns a Window locale code from the locale identifier. [Full Topic] +// Returns the localized string for the specified locale identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412214-windowslocalecodefromlocaleident?language=objc -func (lc _LocaleClass) WindowsLocaleCodeFromLocaleIdentifier(localeIdentifier string) uint32 { - rv := objc.Call[uint32](lc, objc.Sel("windowsLocaleCodeFromLocaleIdentifier:"), localeIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642864-localizedstringforlocaleidentifi?language=objc +func (l_ Locale) LocalizedStringForLocaleIdentifier(localeIdentifier string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForLocaleIdentifier:"), localeIdentifier) return rv } -// Returns a Window locale code from the locale identifier. [Full Topic] +// Returns the localized string for the specified calendar identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412214-windowslocalecodefromlocaleident?language=objc -func Locale_WindowsLocaleCodeFromLocaleIdentifier(localeIdentifier string) uint32 { - return LocaleClass.WindowsLocaleCodeFromLocaleIdentifier(localeIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/2242780-localizedstringforcalendaridenti?language=objc +func (l_ Locale) LocalizedStringForCalendarIdentifier(calendarIdentifier string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForCalendarIdentifier:"), calendarIdentifier) + return rv } // Returns the canonical identifier for a given locale identification string. [Full Topic] @@ -238,143 +208,134 @@ func Locale_CanonicalLocaleIdentifierFromString(string_ string) string { return LocaleClass.CanonicalLocaleIdentifierFromString(string_) } -// Returns the localized string for the specified locale identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642864-localizedstringforlocaleidentifi?language=objc -func (l_ Locale) LocalizedStringForLocaleIdentifier(localeIdentifier string) string { - rv := objc.Call[string](l_, objc.Sel("localizedStringForLocaleIdentifier:"), localeIdentifier) - return rv -} - -// Returns a locale identifier from a Windows locale code. [Full Topic] +// Returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412710-localeidentifierfromwindowslocal?language=objc -func (lc _LocaleClass) LocaleIdentifierFromWindowsLocaleCode(lcid uint32) string { - rv := objc.Call[string](lc, objc.Sel("localeIdentifierFromWindowsLocaleCode:"), lcid) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1413069-canonicallanguageidentifierfroms?language=objc +func (lc _LocaleClass) CanonicalLanguageIdentifierFromString(string_ string) string { + rv := objc.Call[string](lc, objc.Sel("canonicalLanguageIdentifierFromString:"), string_) return rv } -// Returns a locale identifier from a Windows locale code. [Full Topic] +// Returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412710-localeidentifierfromwindowslocal?language=objc -func Locale_LocaleIdentifierFromWindowsLocaleCode(lcid uint32) string { - return LocaleClass.LocaleIdentifierFromWindowsLocaleCode(lcid) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1413069-canonicallanguageidentifierfroms?language=objc +func Locale_CanonicalLanguageIdentifierFromString(string_ string) string { + return LocaleClass.CanonicalLanguageIdentifierFromString(string_) } -// Returns a locale identifier from the components specified in a given dictionary. [Full Topic] +// Returns the localized string for the specified currency code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412439-localeidentifierfromcomponents?language=objc -func (lc _LocaleClass) LocaleIdentifierFromComponents(dict map[string]string) string { - rv := objc.Call[string](lc, objc.Sel("localeIdentifierFromComponents:"), dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643179-localizedstringforcurrencycode?language=objc +func (l_ Locale) LocalizedStringForCurrencyCode(currencyCode string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForCurrencyCode:"), currencyCode) return rv } -// Returns a locale identifier from the components specified in a given dictionary. [Full Topic] +// Returns the localized string for the specified collation identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412439-localeidentifierfromcomponents?language=objc -func Locale_LocaleIdentifierFromComponents(dict map[string]string) string { - return LocaleClass.LocaleIdentifierFromComponents(dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642875-localizedstringforcollationident?language=objc +func (l_ Locale) LocalizedStringForCollationIdentifier(collationIdentifier string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForCollationIdentifier:"), collationIdentifier) + return rv } -// Returns the value of the component corresponding to the specified key. [Full Topic] +// Returns the localized string for the specified variant code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1418430-objectforkey?language=objc -func (l_ Locale) ObjectForKey(key LocaleKey) objc.Object { - rv := objc.Call[objc.Object](l_, objc.Sel("objectForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643264-localizedstringforvariantcode?language=objc +func (l_ Locale) LocalizedStringForVariantCode(variantCode string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForVariantCode:"), variantCode) return rv } -// Returns the direction of the sequence of characters in a line for the specified ISO language code. [Full Topic] +// Returns a dictionary that is the result of parsing a locale ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1417681-characterdirectionforlanguage?language=objc -func (lc _LocaleClass) CharacterDirectionForLanguage(isoLangCode string) LocaleLanguageDirection { - rv := objc.Call[LocaleLanguageDirection](lc, objc.Sel("characterDirectionForLanguage:"), isoLangCode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1409220-componentsfromlocaleidentifier?language=objc +func (lc _LocaleClass) ComponentsFromLocaleIdentifier(string_ string) map[string]string { + rv := objc.Call[map[string]string](lc, objc.Sel("componentsFromLocaleIdentifier:"), string_) return rv } -// Returns the direction of the sequence of characters in a line for the specified ISO language code. [Full Topic] +// Returns a dictionary that is the result of parsing a locale ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1417681-characterdirectionforlanguage?language=objc -func Locale_CharacterDirectionForLanguage(isoLangCode string) LocaleLanguageDirection { - return LocaleClass.CharacterDirectionForLanguage(isoLangCode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1409220-componentsfromlocaleidentifier?language=objc +func Locale_ComponentsFromLocaleIdentifier(string_ string) map[string]string { + return LocaleClass.ComponentsFromLocaleIdentifier(string_) } -// Returns the localized string for the specified script code. [Full Topic] +// Returns a Window locale code from the locale identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643126-localizedstringforscriptcode?language=objc -func (l_ Locale) LocalizedStringForScriptCode(scriptCode string) string { - rv := objc.Call[string](l_, objc.Sel("localizedStringForScriptCode:"), scriptCode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412214-windowslocalecodefromlocaleident?language=objc +func (lc _LocaleClass) WindowsLocaleCodeFromLocaleIdentifier(localeIdentifier string) uint32 { + rv := objc.Call[uint32](lc, objc.Sel("windowsLocaleCodeFromLocaleIdentifier:"), localeIdentifier) return rv } -// Returns the localized string for the specified calendar identifier. [Full Topic] +// Returns a Window locale code from the locale identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/2242780-localizedstringforcalendaridenti?language=objc -func (l_ Locale) LocalizedStringForCalendarIdentifier(calendarIdentifier string) string { - rv := objc.Call[string](l_, objc.Sel("localizedStringForCalendarIdentifier:"), calendarIdentifier) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412214-windowslocalecodefromlocaleident?language=objc +func Locale_WindowsLocaleCodeFromLocaleIdentifier(localeIdentifier string) uint32 { + return LocaleClass.WindowsLocaleCodeFromLocaleIdentifier(localeIdentifier) } -// The collation identifier for the locale. [Full Topic] +// Returns the direction of the sequence of characters in a line for the specified ISO language code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643092-collationidentifier?language=objc -func (l_ Locale) CollationIdentifier() string { - rv := objc.Call[string](l_, objc.Sel("collationIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1417681-characterdirectionforlanguage?language=objc +func (lc _LocaleClass) CharacterDirectionForLanguage(isoLangCode string) LocaleLanguageDirection { + rv := objc.Call[LocaleLanguageDirection](lc, objc.Sel("characterDirectionForLanguage:"), isoLangCode) return rv } -// A locale which tracks the user’s current preferences. [Full Topic] +// Returns the direction of the sequence of characters in a line for the specified ISO language code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1414388-autoupdatingcurrentlocale?language=objc -func (lc _LocaleClass) AutoupdatingCurrentLocale() Locale { - rv := objc.Call[Locale](lc, objc.Sel("autoupdatingCurrentLocale")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1417681-characterdirectionforlanguage?language=objc +func Locale_CharacterDirectionForLanguage(isoLangCode string) LocaleLanguageDirection { + return LocaleClass.CharacterDirectionForLanguage(isoLangCode) } -// A locale which tracks the user’s current preferences. [Full Topic] +// Returns a locale identifier from a Windows locale code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1414388-autoupdatingcurrentlocale?language=objc -func Locale_AutoupdatingCurrentLocale() Locale { - return LocaleClass.AutoupdatingCurrentLocale() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412710-localeidentifierfromwindowslocal?language=objc +func (lc _LocaleClass) LocaleIdentifierFromWindowsLocaleCode(lcid uint32) string { + rv := objc.Call[string](lc, objc.Sel("localeIdentifierFromWindowsLocaleCode:"), lcid) + return rv } -// The collator identifier for the locale. [Full Topic] +// Returns a locale identifier from a Windows locale code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643195-collatoridentifier?language=objc -func (l_ Locale) CollatorIdentifier() string { - rv := objc.Call[string](l_, objc.Sel("collatorIdentifier")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1412710-localeidentifierfromwindowslocal?language=objc +func Locale_LocaleIdentifierFromWindowsLocaleCode(lcid uint32) string { + return LocaleClass.LocaleIdentifierFromWindowsLocaleCode(lcid) } -// The decimal separator for the locale. [Full Topic] +// Returns the localized string for a country or region code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643064-decimalseparator?language=objc -func (l_ Locale) DecimalSeparator() string { - rv := objc.Call[string](l_, objc.Sel("decimalSeparator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642920-localizedstringforcountrycode?language=objc +func (l_ Locale) LocalizedStringForCountryCode(countryCode string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForCountryCode:"), countryCode) return rv } -// The currency symbol for the locale. [Full Topic] +// The list of locale identifiers available on the system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642814-currencysymbol?language=objc -func (l_ Locale) CurrencySymbol() string { - rv := objc.Call[string](l_, objc.Sel("currencySymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1410448-availablelocaleidentifiers?language=objc +func (lc _LocaleClass) AvailableLocaleIdentifiers() []string { + rv := objc.Call[[]string](lc, objc.Sel("availableLocaleIdentifiers")) return rv } -// A list of commonly encountered currency codes. [Full Topic] +// The list of locale identifiers available on the system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1407272-commonisocurrencycodes?language=objc -func (lc _LocaleClass) CommonISOCurrencyCodes() []string { - rv := objc.Call[[]string](lc, objc.Sel("commonISOCurrencyCodes")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1410448-availablelocaleidentifiers?language=objc +func Locale_AvailableLocaleIdentifiers() []string { + return LocaleClass.AvailableLocaleIdentifiers() } -// A list of commonly encountered currency codes. [Full Topic] +// The alternate end quotation symbol for the locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1407272-commonisocurrencycodes?language=objc -func Locale_CommonISOCurrencyCodes() []string { - return LocaleClass.CommonISOCurrencyCodes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642885-alternatequotationenddelimiter?language=objc +func (l_ Locale) AlternateQuotationEndDelimiter() string { + rv := objc.Call[string](l_, objc.Sel("alternateQuotationEndDelimiter")) + return rv } // The currency code for the locale. [Full Topic] @@ -385,14 +346,6 @@ func (l_ Locale) CurrencyCode() string { return rv } -// The begin quotation symbol for the locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643155-quotationbegindelimiter?language=objc -func (l_ Locale) QuotationBeginDelimiter() string { - rv := objc.Call[string](l_, objc.Sel("quotationBeginDelimiter")) - return rv -} - // An ordered list of the user's preferred languages. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1415614-preferredlanguages?language=objc @@ -408,45 +361,14 @@ func Locale_PreferredLanguages() []string { return LocaleClass.PreferredLanguages() } -// The alternate begin quotation symbol for the locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643238-alternatequotationbegindelimiter?language=objc -func (l_ Locale) AlternateQuotationBeginDelimiter() string { - rv := objc.Call[string](l_, objc.Sel("alternateQuotationBeginDelimiter")) - return rv -} - -// The language code for the locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643026-languagecode?language=objc -func (l_ Locale) LanguageCode() string { - rv := objc.Call[string](l_, objc.Sel("languageCode")) - return rv -} - -// The script code for the locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643213-scriptcode?language=objc -func (l_ Locale) ScriptCode() string { - rv := objc.Call[string](l_, objc.Sel("scriptCode")) - return rv -} - -// The list of locale identifiers available on the system. [Full Topic] +// A Boolean value that indicates whether the locale uses the metric system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1410448-availablelocaleidentifiers?language=objc -func (lc _LocaleClass) AvailableLocaleIdentifiers() []string { - rv := objc.Call[[]string](lc, objc.Sel("availableLocaleIdentifiers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643225-usesmetricsystem?language=objc +func (l_ Locale) UsesMetricSystem() bool { + rv := objc.Call[bool](l_, objc.Sel("usesMetricSystem")) return rv } -// The list of locale identifiers available on the system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1410448-availablelocaleidentifiers?language=objc -func Locale_AvailableLocaleIdentifiers() []string { - return LocaleClass.AvailableLocaleIdentifiers() -} - // The calendar identifier for the locale. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/2242779-calendaridentifier?language=objc @@ -470,27 +392,27 @@ func Locale_SystemLocale() Locale { return LocaleClass.SystemLocale() } -// The list of known currency codes. [Full Topic] +// The alternate begin quotation symbol for the locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1417834-isocurrencycodes?language=objc -func (lc _LocaleClass) ISOCurrencyCodes() []string { - rv := objc.Call[[]string](lc, objc.Sel("ISOCurrencyCodes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643238-alternatequotationbegindelimiter?language=objc +func (l_ Locale) AlternateQuotationBeginDelimiter() string { + rv := objc.Call[string](l_, objc.Sel("alternateQuotationBeginDelimiter")) return rv } -// The list of known currency codes. [Full Topic] +// A locale which tracks the user’s current preferences. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1417834-isocurrencycodes?language=objc -func Locale_ISOCurrencyCodes() []string { - return LocaleClass.ISOCurrencyCodes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1414388-autoupdatingcurrentlocale?language=objc +func (lc _LocaleClass) AutoupdatingCurrentLocale() Locale { + rv := objc.Call[Locale](lc, objc.Sel("autoupdatingCurrentLocale")) + return rv } -// The variant code for the locale. [Full Topic] +// A locale which tracks the user’s current preferences. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643152-variantcode?language=objc -func (l_ Locale) VariantCode() string { - rv := objc.Call[string](l_, objc.Sel("variantCode")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1414388-autoupdatingcurrentlocale?language=objc +func Locale_AutoupdatingCurrentLocale() Locale { + return LocaleClass.AutoupdatingCurrentLocale() } // The end quotation symbol for the locale. [Full Topic] @@ -501,35 +423,19 @@ func (l_ Locale) QuotationEndDelimiter() string { return rv } -// The exemplar character set for the locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643019-exemplarcharacterset?language=objc -func (l_ Locale) ExemplarCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](l_, objc.Sel("exemplarCharacterSet")) - return rv -} - -// The grouping separator for the locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643096-groupingseparator?language=objc -func (l_ Locale) GroupingSeparator() string { - rv := objc.Call[string](l_, objc.Sel("groupingSeparator")) - return rv -} - -// The identifier for the locale. [Full Topic] +// The collator identifier for the locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1416263-localeidentifier?language=objc -func (l_ Locale) LocaleIdentifier() string { - rv := objc.Call[string](l_, objc.Sel("localeIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643195-collatoridentifier?language=objc +func (l_ Locale) CollatorIdentifier() string { + rv := objc.Call[string](l_, objc.Sel("collatorIdentifier")) return rv } -// A Boolean value that indicates whether the locale uses the metric system. [Full Topic] +// The variant code for the locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643225-usesmetricsystem?language=objc -func (l_ Locale) UsesMetricSystem() bool { - rv := objc.Call[bool](l_, objc.Sel("usesMetricSystem")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643152-variantcode?language=objc +func (l_ Locale) VariantCode() string { + rv := objc.Call[string](l_, objc.Sel("variantCode")) return rv } @@ -563,11 +469,19 @@ func Locale_CurrentLocale() Locale { return LocaleClass.CurrentLocale() } -// The alternate end quotation symbol for the locale. [Full Topic] +// The exemplar character set for the locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642885-alternatequotationenddelimiter?language=objc -func (l_ Locale) AlternateQuotationEndDelimiter() string { - rv := objc.Call[string](l_, objc.Sel("alternateQuotationEndDelimiter")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643019-exemplarcharacterset?language=objc +func (l_ Locale) ExemplarCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](l_, objc.Sel("exemplarCharacterSet")) + return rv +} + +// The collation identifier for the locale. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643092-collationidentifier?language=objc +func (l_ Locale) CollationIdentifier() string { + rv := objc.Call[string](l_, objc.Sel("collationIdentifier")) return rv } @@ -585,3 +499,89 @@ func (lc _LocaleClass) ISOCountryCodes() []string { func Locale_ISOCountryCodes() []string { return LocaleClass.ISOCountryCodes() } + +// The currency symbol for the locale. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642814-currencysymbol?language=objc +func (l_ Locale) CurrencySymbol() string { + rv := objc.Call[string](l_, objc.Sel("currencySymbol")) + return rv +} + +// The script code for the locale. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643213-scriptcode?language=objc +func (l_ Locale) ScriptCode() string { + rv := objc.Call[string](l_, objc.Sel("scriptCode")) + return rv +} + +// The begin quotation symbol for the locale. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643155-quotationbegindelimiter?language=objc +func (l_ Locale) QuotationBeginDelimiter() string { + rv := objc.Call[string](l_, objc.Sel("quotationBeginDelimiter")) + return rv +} + +// The identifier for the locale. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1416263-localeidentifier?language=objc +func (l_ Locale) LocaleIdentifier() string { + rv := objc.Call[string](l_, objc.Sel("localeIdentifier")) + return rv +} + +// The decimal separator for the locale. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643064-decimalseparator?language=objc +func (l_ Locale) DecimalSeparator() string { + rv := objc.Call[string](l_, objc.Sel("decimalSeparator")) + return rv +} + +// The list of known currency codes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1417834-isocurrencycodes?language=objc +func (lc _LocaleClass) ISOCurrencyCodes() []string { + rv := objc.Call[[]string](lc, objc.Sel("ISOCurrencyCodes")) + return rv +} + +// The list of known currency codes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1417834-isocurrencycodes?language=objc +func Locale_ISOCurrencyCodes() []string { + return LocaleClass.ISOCurrencyCodes() +} + +// The language code for the locale. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643026-languagecode?language=objc +func (l_ Locale) LanguageCode() string { + rv := objc.Call[string](l_, objc.Sel("languageCode")) + return rv +} + +// The grouping separator for the locale. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1643096-groupingseparator?language=objc +func (l_ Locale) GroupingSeparator() string { + rv := objc.Call[string](l_, objc.Sel("groupingSeparator")) + return rv +} + +// A list of commonly encountered currency codes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1407272-commonisocurrencycodes?language=objc +func (lc _LocaleClass) CommonISOCurrencyCodes() []string { + rv := objc.Call[[]string](lc, objc.Sel("commonISOCurrencyCodes")) + return rv +} + +// A list of commonly encountered currency codes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1407272-commonisocurrencycodes?language=objc +func Locale_CommonISOCurrencyCodes() []string { + return LocaleClass.CommonISOCurrencyCodes() +} diff --git a/macos/foundation/lock.gen.go b/macos/foundation/lock.gen.go index df4c53af..6fa96034 100644 --- a/macos/foundation/lock.gen.go +++ b/macos/foundation/lock.gen.go @@ -18,8 +18,8 @@ type _LockClass struct { // An interface definition for the [Lock] class. type ILock interface { objc.IObject - LockBeforeDate(limit IDate) bool TryLock() bool + LockBeforeDate(limit IDate) bool Name() string SetName(value string) } @@ -57,14 +57,6 @@ func (l_ Lock) Init() Lock { return rv } -// Attempts to acquire a lock before a given time and returns a Boolean value indicating whether the attempt was successful. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslock/1411133-lockbeforedate?language=objc -func (l_ Lock) LockBeforeDate(limit IDate) bool { - rv := objc.Call[bool](l_, objc.Sel("lockBeforeDate:"), limit) - return rv -} - // Attempts to acquire a lock and immediately returns a Boolean value that indicates whether the attempt was successful. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslock/1418105-trylock?language=objc @@ -73,6 +65,14 @@ func (l_ Lock) TryLock() bool { return rv } +// Attempts to acquire a lock before a given time and returns a Boolean value indicating whether the attempt was successful. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslock/1411133-lockbeforedate?language=objc +func (l_ Lock) LockBeforeDate(limit IDate) bool { + rv := objc.Call[bool](l_, objc.Sel("lockBeforeDate:"), limit) + return rv +} + // The name associated with the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslock/1412568-name?language=objc diff --git a/macos/foundation/locking_protocol.gen.go b/macos/foundation/locking_protocol.gen.go index 1bcf761a..3ce37273 100644 --- a/macos/foundation/locking_protocol.gen.go +++ b/macos/foundation/locking_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslocking?language=objc type PLocking interface { - // optional - Unlock() - HasUnlock() bool - // optional Lock() HasLock() bool + + // optional + Unlock() + HasUnlock() bool } // ensure impl type implements protocol interface @@ -27,17 +27,6 @@ type LockingObject struct { objc.Object } -func (l_ LockingObject) HasUnlock() bool { - return l_.RespondsToSelector(objc.Sel("unlock")) -} - -// Relinquishes a previously acquired lock. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocking/1418241-unlock?language=objc -func (l_ LockingObject) Unlock() { - objc.Call[objc.Void](l_, objc.Sel("unlock")) -} - func (l_ LockingObject) HasLock() bool { return l_.RespondsToSelector(objc.Sel("lock")) } @@ -48,3 +37,14 @@ func (l_ LockingObject) HasLock() bool { func (l_ LockingObject) Lock() { objc.Call[objc.Void](l_, objc.Sel("lock")) } + +func (l_ LockingObject) HasUnlock() bool { + return l_.RespondsToSelector(objc.Sel("unlock")) +} + +// Relinquishes a previously acquired lock. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocking/1418241-unlock?language=objc +func (l_ LockingObject) Unlock() { + objc.Call[objc.Void](l_, objc.Sel("unlock")) +} diff --git a/macos/foundation/logical_test.gen.go b/macos/foundation/logical_test.gen.go index 462a4fec..cee94802 100644 --- a/macos/foundation/logical_test.gen.go +++ b/macos/foundation/logical_test.gen.go @@ -33,20 +33,6 @@ func LogicalTestFrom(ptr unsafe.Pointer) LogicalTest { } } -func (l_ LogicalTest) InitNotTestWithTest(subTest IScriptWhoseTest) LogicalTest { - rv := objc.Call[LogicalTest](l_, objc.Sel("initNotTestWithTest:"), subTest) - return rv -} - -// Returns an NSLogicalTest object initialized to perform a NOT operation on the given NSScriptWhoseTest object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslogicaltest/1393879-initnottestwithtest?language=objc -func NewLogicalTestNotTestWithTest(subTest IScriptWhoseTest) LogicalTest { - instance := LogicalTestClass.Alloc().InitNotTestWithTest(subTest) - instance.Autorelease() - return instance -} - func (l_ LogicalTest) InitAndTestWithTests(subTests []ISpecifierTest) LogicalTest { rv := objc.Call[LogicalTest](l_, objc.Sel("initAndTestWithTests:"), subTests) return rv @@ -75,6 +61,20 @@ func NewLogicalTestOrTestWithTests(subTests []ISpecifierTest) LogicalTest { return instance } +func (l_ LogicalTest) InitNotTestWithTest(subTest IScriptWhoseTest) LogicalTest { + rv := objc.Call[LogicalTest](l_, objc.Sel("initNotTestWithTest:"), subTest) + return rv +} + +// Returns an NSLogicalTest object initialized to perform a NOT operation on the given NSScriptWhoseTest object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslogicaltest/1393879-initnottestwithtest?language=objc +func NewLogicalTestNotTestWithTest(subTest IScriptWhoseTest) LogicalTest { + instance := LogicalTestClass.Alloc().InitNotTestWithTest(subTest) + instance.Autorelease() + return instance +} + func (lc _LogicalTestClass) Alloc() LogicalTest { rv := objc.Call[LogicalTest](lc, objc.Sel("alloc")) return rv diff --git a/macos/foundation/mach_port.gen.go b/macos/foundation/mach_port.gen.go index 562ce789..9a04e7c6 100644 --- a/macos/foundation/mach_port.gen.go +++ b/macos/foundation/mach_port.gen.go @@ -34,20 +34,6 @@ func MachPortFrom(ptr unsafe.Pointer) MachPort { } } -func (m_ MachPort) InitWithMachPortOptions(machPort uint32, f MachPortOptions) MachPort { - rv := objc.Call[MachPort](m_, objc.Sel("initWithMachPort:options:"), machPort, f) - return rv -} - -// Initializes a newly allocated NSMachPort object with a given Mach port and the specified options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmachport/1399559-initwithmachport?language=objc -func NewMachPortWithMachPortOptions(machPort uint32, f MachPortOptions) MachPort { - instance := MachPortClass.Alloc().InitWithMachPortOptions(machPort, f) - instance.Autorelease() - return instance -} - func (m_ MachPort) InitWithMachPort(machPort uint32) MachPort { rv := objc.Call[MachPort](m_, objc.Sel("initWithMachPort:"), machPort) return rv @@ -82,21 +68,6 @@ func (m_ MachPort) Init() MachPort { return rv } -// Creates and returns a port object configured with the specified options and the given Mach port. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmachport/1399551-portwithmachport?language=objc -func (mc _MachPortClass) PortWithMachPortOptions(machPort uint32, f MachPortOptions) Port { - rv := objc.Call[Port](mc, objc.Sel("portWithMachPort:options:"), machPort, f) - return rv -} - -// Creates and returns a port object configured with the specified options and the given Mach port. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmachport/1399551-portwithmachport?language=objc -func MachPort_PortWithMachPortOptions(machPort uint32, f MachPortOptions) Port { - return MachPortClass.PortWithMachPortOptions(machPort, f) -} - // Creates and returns a port object configured with the given Mach port. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmachport/1399478-portwithmachport?language=objc diff --git a/macos/foundation/map_table.gen.go b/macos/foundation/map_table.gen.go deleted file mode 100644 index b00e8748..00000000 --- a/macos/foundation/map_table.gen.go +++ /dev/null @@ -1,244 +0,0 @@ -// Code generated by DarwinKit. DO NOT EDIT. - -package foundation - -import ( - "unsafe" - - "github.com/progrium/darwinkit/objc" -) - -// The class instance for the [MapTable] class. -var MapTableClass = _MapTableClass{objc.GetClass("NSMapTable")} - -type _MapTableClass struct { - objc.Class -} - -// An interface definition for the [MapTable] class. -type IMapTable interface { - objc.IObject - DictionaryRepresentation() Dictionary - RemoveAllObjects() - RemoveObjectForKey(aKey objc.IObject) - KeyEnumerator() Enumerator - ObjectForKey(aKey objc.IObject) objc.Object - SetObjectForKey(anObject objc.IObject, aKey objc.IObject) - ObjectEnumerator() Enumerator - ValuePointerFunctions() PointerFunctions - Count() uint - KeyPointerFunctions() PointerFunctions -} - -// A collection similar to a dictionary, but with a broader range of available memory semantics. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable?language=objc -type MapTable struct { - objc.Object -} - -func MapTableFrom(ptr unsafe.Pointer) MapTable { - return MapTable{ - Object: objc.ObjectFrom(ptr), - } -} - -func (m_ MapTable) InitWithKeyOptionsValueOptionsCapacity(keyOptions PointerFunctionsOptions, valueOptions PointerFunctionsOptions, initialCapacity uint) MapTable { - rv := objc.Call[MapTable](m_, objc.Sel("initWithKeyOptions:valueOptions:capacity:"), keyOptions, valueOptions, initialCapacity) - return rv -} - -// Returns a map table, initialized with the given options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391382-initwithkeyoptions?language=objc -func NewMapTableWithKeyOptionsValueOptionsCapacity(keyOptions PointerFunctionsOptions, valueOptions PointerFunctionsOptions, initialCapacity uint) MapTable { - instance := MapTableClass.Alloc().InitWithKeyOptionsValueOptionsCapacity(keyOptions, valueOptions, initialCapacity) - instance.Autorelease() - return instance -} - -func (m_ MapTable) InitWithKeyPointerFunctionsValuePointerFunctionsCapacity(keyFunctions IPointerFunctions, valueFunctions IPointerFunctions, initialCapacity uint) MapTable { - rv := objc.Call[MapTable](m_, objc.Sel("initWithKeyPointerFunctions:valuePointerFunctions:capacity:"), keyFunctions, valueFunctions, initialCapacity) - return rv -} - -// Returns a map table, initialized with the given functions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391429-initwithkeypointerfunctions?language=objc -func NewMapTableWithKeyPointerFunctionsValuePointerFunctionsCapacity(keyFunctions IPointerFunctions, valueFunctions IPointerFunctions, initialCapacity uint) MapTable { - instance := MapTableClass.Alloc().InitWithKeyPointerFunctionsValuePointerFunctionsCapacity(keyFunctions, valueFunctions, initialCapacity) - instance.Autorelease() - return instance -} - -func (mc _MapTableClass) Alloc() MapTable { - rv := objc.Call[MapTable](mc, objc.Sel("alloc")) - return rv -} - -func (mc _MapTableClass) New() MapTable { - rv := objc.Call[MapTable](mc, objc.Sel("new")) - rv.Autorelease() - return rv -} - -func NewMapTable() MapTable { - return MapTableClass.New() -} - -func (m_ MapTable) Init() MapTable { - rv := objc.Call[MapTable](m_, objc.Sel("init")) - return rv -} - -// Returns a new map table object which has weak references to the keys and strong references to the values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391346-weaktostrongobjectsmaptable?language=objc -func (mc _MapTableClass) WeakToStrongObjectsMapTable() MapTable { - rv := objc.Call[MapTable](mc, objc.Sel("weakToStrongObjectsMapTable")) - return rv -} - -// Returns a new map table object which has weak references to the keys and strong references to the values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391346-weaktostrongobjectsmaptable?language=objc -func MapTable_WeakToStrongObjectsMapTable() MapTable { - return MapTableClass.WeakToStrongObjectsMapTable() -} - -// Returns a dictionary representation of the map table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391402-dictionaryrepresentation?language=objc -func (m_ MapTable) DictionaryRepresentation() Dictionary { - rv := objc.Call[Dictionary](m_, objc.Sel("dictionaryRepresentation")) - return rv -} - -// Empties the map table of its entries. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391386-removeallobjects?language=objc -func (m_ MapTable) RemoveAllObjects() { - objc.Call[objc.Void](m_, objc.Sel("removeAllObjects")) -} - -// Returns a new map table, initialized with the given options [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391414-maptablewithkeyoptions?language=objc -func (mc _MapTableClass) MapTableWithKeyOptionsValueOptions(keyOptions PointerFunctionsOptions, valueOptions PointerFunctionsOptions) MapTable { - rv := objc.Call[MapTable](mc, objc.Sel("mapTableWithKeyOptions:valueOptions:"), keyOptions, valueOptions) - return rv -} - -// Returns a new map table, initialized with the given options [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391414-maptablewithkeyoptions?language=objc -func MapTable_MapTableWithKeyOptionsValueOptions(keyOptions PointerFunctionsOptions, valueOptions PointerFunctionsOptions) MapTable { - return MapTableClass.MapTableWithKeyOptionsValueOptions(keyOptions, valueOptions) -} - -// Removes a given key and its associated value from the map table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391461-removeobjectforkey?language=objc -func (m_ MapTable) RemoveObjectForKey(aKey objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectForKey:"), aKey) -} - -// Returns a new map table object which has strong references to the keys and values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391440-strongtostrongobjectsmaptable?language=objc -func (mc _MapTableClass) StrongToStrongObjectsMapTable() MapTable { - rv := objc.Call[MapTable](mc, objc.Sel("strongToStrongObjectsMapTable")) - return rv -} - -// Returns a new map table object which has strong references to the keys and values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391440-strongtostrongobjectsmaptable?language=objc -func MapTable_StrongToStrongObjectsMapTable() MapTable { - return MapTableClass.StrongToStrongObjectsMapTable() -} - -// Returns a new map table object which has weak references to the keys and values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391430-weaktoweakobjectsmaptable?language=objc -func (mc _MapTableClass) WeakToWeakObjectsMapTable() MapTable { - rv := objc.Call[MapTable](mc, objc.Sel("weakToWeakObjectsMapTable")) - return rv -} - -// Returns a new map table object which has weak references to the keys and values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391430-weaktoweakobjectsmaptable?language=objc -func MapTable_WeakToWeakObjectsMapTable() MapTable { - return MapTableClass.WeakToWeakObjectsMapTable() -} - -// Returns an enumerator object that lets you access each key in the map table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391398-keyenumerator?language=objc -func (m_ MapTable) KeyEnumerator() Enumerator { - rv := objc.Call[Enumerator](m_, objc.Sel("keyEnumerator")) - return rv -} - -// Returns a the value associated with a given key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391444-objectforkey?language=objc -func (m_ MapTable) ObjectForKey(aKey objc.IObject) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("objectForKey:"), aKey) - return rv -} - -// Adds a given key-value pair to the map table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391457-setobject?language=objc -func (m_ MapTable) SetObjectForKey(anObject objc.IObject, aKey objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setObject:forKey:"), anObject, aKey) -} - -// Returns an enumerator object that lets you access each value in the map table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391400-objectenumerator?language=objc -func (m_ MapTable) ObjectEnumerator() Enumerator { - rv := objc.Call[Enumerator](m_, objc.Sel("objectEnumerator")) - return rv -} - -// Returns a new map table object which has strong references to the keys and weak references to the values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391366-strongtoweakobjectsmaptable?language=objc -func (mc _MapTableClass) StrongToWeakObjectsMapTable() MapTable { - rv := objc.Call[MapTable](mc, objc.Sel("strongToWeakObjectsMapTable")) - return rv -} - -// Returns a new map table object which has strong references to the keys and weak references to the values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391366-strongtoweakobjectsmaptable?language=objc -func MapTable_StrongToWeakObjectsMapTable() MapTable { - return MapTableClass.StrongToWeakObjectsMapTable() -} - -// The pointer functions the map table uses to manage values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391467-valuepointerfunctions?language=objc -func (m_ MapTable) ValuePointerFunctions() PointerFunctions { - rv := objc.Call[PointerFunctions](m_, objc.Sel("valuePointerFunctions")) - return rv -} - -// The number of key-value pairs in the map table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391360-count?language=objc -func (m_ MapTable) Count() uint { - rv := objc.Call[uint](m_, objc.Sel("count")) - return rv -} - -// The pointer functions the map table uses to manage keys. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmaptable/1391412-keypointerfunctions?language=objc -func (m_ MapTable) KeyPointerFunctions() PointerFunctions { - rv := objc.Call[PointerFunctions](m_, objc.Sel("keyPointerFunctions")) - return rv -} diff --git a/macos/foundation/mass_formatter.gen.go b/macos/foundation/mass_formatter.gen.go index dea10b54..de16640d 100644 --- a/macos/foundation/mass_formatter.gen.go +++ b/macos/foundation/mass_formatter.gen.go @@ -18,14 +18,14 @@ type _MassFormatterClass struct { // An interface definition for the [MassFormatter] class. type IMassFormatter interface { IFormatter - StringFromKilograms(numberInKilograms float64) string - UnitStringFromKilogramsUsedUnit(numberInKilograms float64, unitp *MassFormatterUnit) string StringFromValueUnit(value float64, unit MassFormatterUnit) string + StringFromKilograms(numberInKilograms float64) string UnitStringFromValueUnit(value float64, unit MassFormatterUnit) string - IsForPersonMassUse() bool - SetForPersonMassUse(value bool) + UnitStringFromKilogramsUsedUnit(numberInKilograms float64, unitp *MassFormatterUnit) string UnitStyle() FormattingUnitStyle SetUnitStyle(value FormattingUnitStyle) + IsForPersonMassUse() bool + SetForPersonMassUse(value bool) NumberFormatter() NumberFormatter SetNumberFormatter(value INumberFormatter) } @@ -63,6 +63,14 @@ func (m_ MassFormatter) Init() MassFormatter { return rv } +// Returns a properly formatted mass string for the given value and unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1409002-stringfromvalue?language=objc +func (m_ MassFormatter) StringFromValueUnit(value float64, unit MassFormatterUnit) string { + rv := objc.Call[string](m_, objc.Sel("stringFromValue:unit:"), value, unit) + return rv +} + // Returns a mass string for the provided value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1414324-stringfromkilograms?language=objc @@ -71,6 +79,14 @@ func (m_ MassFormatter) StringFromKilograms(numberInKilograms float64) string { return rv } +// Returns the unit string based on the provided value and unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1415491-unitstringfromvalue?language=objc +func (m_ MassFormatter) UnitStringFromValueUnit(value float64, unit MassFormatterUnit) string { + rv := objc.Call[string](m_, objc.Sel("unitStringFromValue:unit:"), value, unit) + return rv +} + // Returns the unit string for the provided value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1408475-unitstringfromkilograms?language=objc @@ -79,20 +95,19 @@ func (m_ MassFormatter) UnitStringFromKilogramsUsedUnit(numberInKilograms float6 return rv } -// Returns a properly formatted mass string for the given value and unit. [Full Topic] +// The unit style used by this formatter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1409002-stringfromvalue?language=objc -func (m_ MassFormatter) StringFromValueUnit(value float64, unit MassFormatterUnit) string { - rv := objc.Call[string](m_, objc.Sel("stringFromValue:unit:"), value, unit) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1411215-unitstyle?language=objc +func (m_ MassFormatter) UnitStyle() FormattingUnitStyle { + rv := objc.Call[FormattingUnitStyle](m_, objc.Sel("unitStyle")) return rv } -// Returns the unit string based on the provided value and unit. [Full Topic] +// The unit style used by this formatter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1415491-unitstringfromvalue?language=objc -func (m_ MassFormatter) UnitStringFromValueUnit(value float64, unit MassFormatterUnit) string { - rv := objc.Call[string](m_, objc.Sel("unitStringFromValue:unit:"), value, unit) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1411215-unitstyle?language=objc +func (m_ MassFormatter) SetUnitStyle(value FormattingUnitStyle) { + objc.Call[objc.Void](m_, objc.Sel("setUnitStyle:"), value) } // A Boolean value that indicates whether the resulting string represents a person’s mass. [Full Topic] @@ -110,21 +125,6 @@ func (m_ MassFormatter) SetForPersonMassUse(value bool) { objc.Call[objc.Void](m_, objc.Sel("setForPersonMassUse:"), value) } -// The unit style used by this formatter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1411215-unitstyle?language=objc -func (m_ MassFormatter) UnitStyle() FormattingUnitStyle { - rv := objc.Call[FormattingUnitStyle](m_, objc.Sel("unitStyle")) - return rv -} - -// The unit style used by this formatter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1411215-unitstyle?language=objc -func (m_ MassFormatter) SetUnitStyle(value FormattingUnitStyle) { - objc.Call[objc.Void](m_, objc.Sel("setUnitStyle:"), value) -} - // The number formatter used to format the numbers in a mass strings. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmassformatter/1418462-numberformatter?language=objc diff --git a/macos/foundation/measurement.gen.go b/macos/foundation/measurement.gen.go index a5e06536..3b8d29fd 100644 --- a/macos/foundation/measurement.gen.go +++ b/macos/foundation/measurement.gen.go @@ -19,8 +19,8 @@ type _MeasurementClass struct { type IMeasurement interface { objc.IObject MeasurementByConvertingToUnit(unit IUnit) Measurement - MeasurementBySubtractingMeasurement(measurement IMeasurement) Measurement CanBeConvertedToUnit(unit IUnit) bool + MeasurementBySubtractingMeasurement(measurement IMeasurement) Measurement MeasurementByAddingMeasurement(measurement IMeasurement) Measurement DoubleValue() float64 Unit() objc.Object @@ -81,14 +81,6 @@ func (m_ Measurement) MeasurementByConvertingToUnit(unit IUnit) Measurement { return rv } -// Returns a new measurement by subtracting the specified measurement from the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurement/1642872-measurementbysubtractingmeasurem?language=objc -func (m_ Measurement) MeasurementBySubtractingMeasurement(measurement IMeasurement) Measurement { - rv := objc.Call[Measurement](m_, objc.Sel("measurementBySubtractingMeasurement:"), measurement) - return rv -} - // Indicates whether the measurement can be converted to the given unit. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurement/1690850-canbeconvertedtounit?language=objc @@ -97,6 +89,14 @@ func (m_ Measurement) CanBeConvertedToUnit(unit IUnit) bool { return rv } +// Returns a new measurement by subtracting the specified measurement from the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurement/1642872-measurementbysubtractingmeasurem?language=objc +func (m_ Measurement) MeasurementBySubtractingMeasurement(measurement IMeasurement) Measurement { + rv := objc.Call[Measurement](m_, objc.Sel("measurementBySubtractingMeasurement:"), measurement) + return rv +} + // Returns a new measurement by adding the receiver to the specified measurement. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurement/1643170-measurementbyaddingmeasurement?language=objc diff --git a/macos/foundation/measurement_formatter.gen.go b/macos/foundation/measurement_formatter.gen.go index c3919f97..10a79285 100644 --- a/macos/foundation/measurement_formatter.gen.go +++ b/macos/foundation/measurement_formatter.gen.go @@ -22,10 +22,10 @@ type IMeasurementFormatter interface { StringFromMeasurement(measurement IMeasurement) string UnitOptions() MeasurementFormatterUnitOptions SetUnitOptions(value MeasurementFormatterUnitOptions) - UnitStyle() FormattingUnitStyle - SetUnitStyle(value FormattingUnitStyle) Locale() Locale SetLocale(value ILocale) + UnitStyle() FormattingUnitStyle + SetUnitStyle(value FormattingUnitStyle) NumberFormatter() NumberFormatter SetNumberFormatter(value INumberFormatter) } @@ -94,21 +94,6 @@ func (m_ MeasurementFormatter) SetUnitOptions(value MeasurementFormatterUnitOpti objc.Call[objc.Void](m_, objc.Sel("setUnitOptions:"), value) } -// The unit style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurementformatter/1642067-unitstyle?language=objc -func (m_ MeasurementFormatter) UnitStyle() FormattingUnitStyle { - rv := objc.Call[FormattingUnitStyle](m_, objc.Sel("unitStyle")) - return rv -} - -// The unit style. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurementformatter/1642067-unitstyle?language=objc -func (m_ MeasurementFormatter) SetUnitStyle(value FormattingUnitStyle) { - objc.Call[objc.Void](m_, objc.Sel("setUnitStyle:"), value) -} - // The locale of the formatter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurementformatter/1642061-locale?language=objc @@ -124,6 +109,21 @@ func (m_ MeasurementFormatter) SetLocale(value ILocale) { objc.Call[objc.Void](m_, objc.Sel("setLocale:"), value) } +// The unit style. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurementformatter/1642067-unitstyle?language=objc +func (m_ MeasurementFormatter) UnitStyle() FormattingUnitStyle { + rv := objc.Call[FormattingUnitStyle](m_, objc.Sel("unitStyle")) + return rv +} + +// The unit style. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurementformatter/1642067-unitstyle?language=objc +func (m_ MeasurementFormatter) SetUnitStyle(value FormattingUnitStyle) { + objc.Call[objc.Void](m_, objc.Sel("setUnitStyle:"), value) +} + // The number formatter used to format the quantity of a measurement. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurementformatter/1642056-numberformatter?language=objc diff --git a/macos/foundation/metadata_query.gen.go b/macos/foundation/metadata_query.gen.go index 6ee60208..ac32aa74 100644 --- a/macos/foundation/metadata_query.gen.go +++ b/macos/foundation/metadata_query.gen.go @@ -18,41 +18,41 @@ type _MetadataQueryClass struct { // An interface definition for the [MetadataQuery] class. type IMetadataQuery interface { objc.IObject - EnableUpdates() - EnumerateResultsWithOptionsUsingBlock(opts EnumerationOptions, block func(result objc.Object, idx uint, stop *bool)) - EnumerateResultsUsingBlock(block func(result objc.Object, idx uint, stop *bool)) - DisableUpdates() ResultAtIndex(idx uint) objc.Object StopQuery() StartQuery() bool IndexOfResult(result objc.IObject) uint + EnumerateResultsUsingBlock(block func(result objc.Object, idx uint, stop *bool)) + DisableUpdates() ValueOfAttributeForResultAtIndex(attrName string, idx uint) objc.Object - Predicate() Predicate - SetPredicate(value IPredicate) - SearchScopes() []objc.Object - SetSearchScopes(value []objc.IObject) - SearchItems() []objc.Object - SetSearchItems(value []objc.IObject) - ResultCount() uint - Results() []objc.Object - OperationQueue() OperationQueue - SetOperationQueue(value IOperationQueue) - IsGathering() bool + EnableUpdates() + EnumerateResultsWithOptionsUsingBlock(opts EnumerationOptions, block func(result objc.Object, idx uint, stop *bool)) ValueListAttributes() []string SetValueListAttributes(value []string) - IsStopped() bool - SortDescriptors() []SortDescriptor - SetSortDescriptors(value []ISortDescriptor) - ValueLists() map[string][]MetadataQueryAttributeValueTuple NotificationBatchingInterval() TimeInterval SetNotificationBatchingInterval(value TimeInterval) + ValueLists() map[string][]MetadataQueryAttributeValueTuple + GroupedResults() []MetadataQueryResultGroup + SortDescriptors() []SortDescriptor + SetSortDescriptors(value []ISortDescriptor) + Results() []objc.Object + IsStopped() bool + SearchItems() []objc.Object + SetSearchItems(value []objc.IObject) + GroupingAttributes() []string + SetGroupingAttributes(value []string) Delegate() MetadataQueryDelegateObject SetDelegate(value PMetadataQueryDelegate) SetDelegateObject(valueObject objc.IObject) - GroupedResults() []MetadataQueryResultGroup + Predicate() Predicate + SetPredicate(value IPredicate) IsStarted() bool - GroupingAttributes() []string - SetGroupingAttributes(value []string) + IsGathering() bool + SearchScopes() []objc.Object + SetSearchScopes(value []objc.IObject) + ResultCount() uint + OperationQueue() OperationQueue + SetOperationQueue(value IOperationQueue) } // A query that you perform against Spotlight metadata. [Full Topic] @@ -88,34 +88,6 @@ func (m_ MetadataQuery) Init() MetadataQuery { return rv } -// Enables updates to the query results. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1416943-enableupdates?language=objc -func (m_ MetadataQuery) EnableUpdates() { - objc.Call[objc.Void](m_, objc.Sel("enableUpdates")) -} - -// Enumerates the current set of results using the given options and block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1415123-enumerateresultswithoptions?language=objc -func (m_ MetadataQuery) EnumerateResultsWithOptionsUsingBlock(opts EnumerationOptions, block func(result objc.Object, idx uint, stop *bool)) { - objc.Call[objc.Void](m_, objc.Sel("enumerateResultsWithOptions:usingBlock:"), opts, block) -} - -// Enumerates the current set of results using the given block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1415856-enumerateresultsusingblock?language=objc -func (m_ MetadataQuery) EnumerateResultsUsingBlock(block func(result objc.Object, idx uint, stop *bool)) { - objc.Call[objc.Void](m_, objc.Sel("enumerateResultsUsingBlock:"), block) -} - -// Disables updates to the query results. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1416337-disableupdates?language=objc -func (m_ MetadataQuery) DisableUpdates() { - objc.Call[objc.Void](m_, objc.Sel("disableUpdates")) -} - // Returns the query result at a specific index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1410162-resultatindex?language=objc @@ -147,6 +119,20 @@ func (m_ MetadataQuery) IndexOfResult(result objc.IObject) uint { return rv } +// Enumerates the current set of results using the given block. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1415856-enumerateresultsusingblock?language=objc +func (m_ MetadataQuery) EnumerateResultsUsingBlock(block func(result objc.Object, idx uint, stop *bool)) { + objc.Call[objc.Void](m_, objc.Sel("enumerateResultsUsingBlock:"), block) +} + +// Disables updates to the query results. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1416337-disableupdates?language=objc +func (m_ MetadataQuery) DisableUpdates() { + objc.Call[objc.Void](m_, objc.Sel("disableUpdates")) +} + // Returns the value for the attribute name attrName at the index in the results specified by idx. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1417133-valueofattribute?language=objc @@ -155,105 +141,89 @@ func (m_ MetadataQuery) ValueOfAttributeForResultAtIndex(attrName string, idx ui return rv } -// The predicate used to filter query results. [Full Topic] +// Enables updates to the query results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411478-predicate?language=objc -func (m_ MetadataQuery) Predicate() Predicate { - rv := objc.Call[Predicate](m_, objc.Sel("predicate")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1416943-enableupdates?language=objc +func (m_ MetadataQuery) EnableUpdates() { + objc.Call[objc.Void](m_, objc.Sel("enableUpdates")) } -// The predicate used to filter query results. [Full Topic] +// Enumerates the current set of results using the given options and block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411478-predicate?language=objc -func (m_ MetadataQuery) SetPredicate(value IPredicate) { - objc.Call[objc.Void](m_, objc.Sel("setPredicate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1415123-enumerateresultswithoptions?language=objc +func (m_ MetadataQuery) EnumerateResultsWithOptionsUsingBlock(opts EnumerationOptions, block func(result objc.Object, idx uint, stop *bool)) { + objc.Call[objc.Void](m_, objc.Sel("enumerateResultsWithOptions:usingBlock:"), opts, block) } -// An array containing the search scopes. [Full Topic] +// An array of attributes whose values are gathered by the query. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1412155-searchscopes?language=objc -func (m_ MetadataQuery) SearchScopes() []objc.Object { - rv := objc.Call[[]objc.Object](m_, objc.Sel("searchScopes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1407767-valuelistattributes?language=objc +func (m_ MetadataQuery) ValueListAttributes() []string { + rv := objc.Call[[]string](m_, objc.Sel("valueListAttributes")) return rv } -// An array containing the search scopes. [Full Topic] +// An array of attributes whose values are gathered by the query. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1412155-searchscopes?language=objc -func (m_ MetadataQuery) SetSearchScopes(value []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setSearchScopes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1407767-valuelistattributes?language=objc +func (m_ MetadataQuery) SetValueListAttributes(value []string) { + objc.Call[objc.Void](m_, objc.Sel("setValueListAttributes:"), value) } -// An array of objects that define the query’s scope. [Full Topic] +// The interval at which notification of updated results occurs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411307-searchitems?language=objc -func (m_ MetadataQuery) SearchItems() []objc.Object { - rv := objc.Call[[]objc.Object](m_, objc.Sel("searchItems")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411884-notificationbatchinginterval?language=objc +func (m_ MetadataQuery) NotificationBatchingInterval() TimeInterval { + rv := objc.Call[TimeInterval](m_, objc.Sel("notificationBatchingInterval")) return rv } -// An array of objects that define the query’s scope. [Full Topic] +// The interval at which notification of updated results occurs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411307-searchitems?language=objc -func (m_ MetadataQuery) SetSearchItems(value []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setSearchItems:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411884-notificationbatchinginterval?language=objc +func (m_ MetadataQuery) SetNotificationBatchingInterval(value TimeInterval) { + objc.Call[objc.Void](m_, objc.Sel("setNotificationBatchingInterval:"), value) } -// The number of results returned by the query. (read-only) [Full Topic] +// A dictionary containing the value lists generated by the query. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1418315-resultcount?language=objc -func (m_ MetadataQuery) ResultCount() uint { - rv := objc.Call[uint](m_, objc.Sel("resultCount")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1418401-valuelists?language=objc +func (m_ MetadataQuery) ValueLists() map[string][]MetadataQueryAttributeValueTuple { + rv := objc.Call[map[string][]MetadataQueryAttributeValueTuple](m_, objc.Sel("valueLists")) return rv } -// An array containing the query’s results. [Full Topic] +// An array containing hierarchical groups of query results. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1408872-results?language=objc -func (m_ MetadataQuery) Results() []objc.Object { - rv := objc.Call[[]objc.Object](m_, objc.Sel("results")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1416579-groupedresults?language=objc +func (m_ MetadataQuery) GroupedResults() []MetadataQueryResultGroup { + rv := objc.Call[[]MetadataQueryResultGroup](m_, objc.Sel("groupedResults")) return rv } -// The queue on which query result notifications are posted. [Full Topic] +// An array of sort descriptor objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1410953-operationqueue?language=objc -func (m_ MetadataQuery) OperationQueue() OperationQueue { - rv := objc.Call[OperationQueue](m_, objc.Sel("operationQueue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411847-sortdescriptors?language=objc +func (m_ MetadataQuery) SortDescriptors() []SortDescriptor { + rv := objc.Call[[]SortDescriptor](m_, objc.Sel("sortDescriptors")) return rv } -// The queue on which query result notifications are posted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1410953-operationqueue?language=objc -func (m_ MetadataQuery) SetOperationQueue(value IOperationQueue) { - objc.Call[objc.Void](m_, objc.Sel("setOperationQueue:"), value) -} - -// A Boolean value that indicates whether the receiver is in the initial gathering phase of the query. (read-only) [Full Topic] +// An array of sort descriptor objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1407539-gathering?language=objc -func (m_ MetadataQuery) IsGathering() bool { - rv := objc.Call[bool](m_, objc.Sel("isGathering")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411847-sortdescriptors?language=objc +func (m_ MetadataQuery) SetSortDescriptors(value []ISortDescriptor) { + objc.Call[objc.Void](m_, objc.Sel("setSortDescriptors:"), value) } -// An array of attributes whose values are gathered by the query. [Full Topic] +// An array containing the query’s results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1407767-valuelistattributes?language=objc -func (m_ MetadataQuery) ValueListAttributes() []string { - rv := objc.Call[[]string](m_, objc.Sel("valueListAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1408872-results?language=objc +func (m_ MetadataQuery) Results() []objc.Object { + rv := objc.Call[[]objc.Object](m_, objc.Sel("results")) return rv } -// An array of attributes whose values are gathered by the query. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1407767-valuelistattributes?language=objc -func (m_ MetadataQuery) SetValueListAttributes(value []string) { - objc.Call[objc.Void](m_, objc.Sel("setValueListAttributes:"), value) -} - // A Boolean value that indicates whether the query has stopped. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411941-stopped?language=objc @@ -262,42 +232,34 @@ func (m_ MetadataQuery) IsStopped() bool { return rv } -// An array of sort descriptor objects. [Full Topic] +// An array of objects that define the query’s scope. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411847-sortdescriptors?language=objc -func (m_ MetadataQuery) SortDescriptors() []SortDescriptor { - rv := objc.Call[[]SortDescriptor](m_, objc.Sel("sortDescriptors")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411307-searchitems?language=objc +func (m_ MetadataQuery) SearchItems() []objc.Object { + rv := objc.Call[[]objc.Object](m_, objc.Sel("searchItems")) return rv } -// An array of sort descriptor objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411847-sortdescriptors?language=objc -func (m_ MetadataQuery) SetSortDescriptors(value []ISortDescriptor) { - objc.Call[objc.Void](m_, objc.Sel("setSortDescriptors:"), value) -} - -// A dictionary containing the value lists generated by the query. [Full Topic] +// An array of objects that define the query’s scope. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1418401-valuelists?language=objc -func (m_ MetadataQuery) ValueLists() map[string][]MetadataQueryAttributeValueTuple { - rv := objc.Call[map[string][]MetadataQueryAttributeValueTuple](m_, objc.Sel("valueLists")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411307-searchitems?language=objc +func (m_ MetadataQuery) SetSearchItems(value []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setSearchItems:"), value) } -// The interval at which notification of updated results occurs. [Full Topic] +// An array of grouping attributes. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411884-notificationbatchinginterval?language=objc -func (m_ MetadataQuery) NotificationBatchingInterval() TimeInterval { - rv := objc.Call[TimeInterval](m_, objc.Sel("notificationBatchingInterval")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1409191-groupingattributes?language=objc +func (m_ MetadataQuery) GroupingAttributes() []string { + rv := objc.Call[[]string](m_, objc.Sel("groupingAttributes")) return rv } -// The interval at which notification of updated results occurs. [Full Topic] +// An array of grouping attributes. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411884-notificationbatchinginterval?language=objc -func (m_ MetadataQuery) SetNotificationBatchingInterval(value TimeInterval) { - objc.Call[objc.Void](m_, objc.Sel("setNotificationBatchingInterval:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1409191-groupingattributes?language=objc +func (m_ MetadataQuery) SetGroupingAttributes(value []string) { + objc.Call[objc.Void](m_, objc.Sel("setGroupingAttributes:"), value) } // The query’s delegate. [Full Topic] @@ -323,14 +285,21 @@ func (m_ MetadataQuery) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("setDelegate:"), valueObject) } -// An array containing hierarchical groups of query results. (read-only) [Full Topic] +// The predicate used to filter query results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1416579-groupedresults?language=objc -func (m_ MetadataQuery) GroupedResults() []MetadataQueryResultGroup { - rv := objc.Call[[]MetadataQueryResultGroup](m_, objc.Sel("groupedResults")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411478-predicate?language=objc +func (m_ MetadataQuery) Predicate() Predicate { + rv := objc.Call[Predicate](m_, objc.Sel("predicate")) return rv } +// The predicate used to filter query results. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1411478-predicate?language=objc +func (m_ MetadataQuery) SetPredicate(value IPredicate) { + objc.Call[objc.Void](m_, objc.Sel("setPredicate:"), value) +} + // A Boolean value that indicates whether the query has started. (read-only) [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1416780-started?language=objc @@ -339,17 +308,48 @@ func (m_ MetadataQuery) IsStarted() bool { return rv } -// An array of grouping attributes. (read-only) [Full Topic] +// A Boolean value that indicates whether the receiver is in the initial gathering phase of the query. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1409191-groupingattributes?language=objc -func (m_ MetadataQuery) GroupingAttributes() []string { - rv := objc.Call[[]string](m_, objc.Sel("groupingAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1407539-gathering?language=objc +func (m_ MetadataQuery) IsGathering() bool { + rv := objc.Call[bool](m_, objc.Sel("isGathering")) return rv } -// An array of grouping attributes. (read-only) [Full Topic] +// An array containing the search scopes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1409191-groupingattributes?language=objc -func (m_ MetadataQuery) SetGroupingAttributes(value []string) { - objc.Call[objc.Void](m_, objc.Sel("setGroupingAttributes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1412155-searchscopes?language=objc +func (m_ MetadataQuery) SearchScopes() []objc.Object { + rv := objc.Call[[]objc.Object](m_, objc.Sel("searchScopes")) + return rv +} + +// An array containing the search scopes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1412155-searchscopes?language=objc +func (m_ MetadataQuery) SetSearchScopes(value []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setSearchScopes:"), value) +} + +// The number of results returned by the query. (read-only) [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1418315-resultcount?language=objc +func (m_ MetadataQuery) ResultCount() uint { + rv := objc.Call[uint](m_, objc.Sel("resultCount")) + return rv +} + +// The queue on which query result notifications are posted. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1410953-operationqueue?language=objc +func (m_ MetadataQuery) OperationQueue() OperationQueue { + rv := objc.Call[OperationQueue](m_, objc.Sel("operationQueue")) + return rv +} + +// The queue on which query result notifications are posted. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1410953-operationqueue?language=objc +func (m_ MetadataQuery) SetOperationQueue(value IOperationQueue) { + objc.Call[objc.Void](m_, objc.Sel("setOperationQueue:"), value) } diff --git a/macos/foundation/metadata_query_delegate.gen.go b/macos/foundation/metadata_query_delegate.gen.go index e28610f5..160eddc6 100644 --- a/macos/foundation/metadata_query_delegate.gen.go +++ b/macos/foundation/metadata_query_delegate.gen.go @@ -10,10 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquerydelegate?language=objc type PMetadataQueryDelegate interface { - // optional - MetadataQueryReplacementObjectForResultObject(query MetadataQuery, result MetadataItem) objc.Object - HasMetadataQueryReplacementObjectForResultObject() bool - // optional MetadataQueryReplacementValueForAttributeValue(query MetadataQuery, attrName string, attrValue objc.Object) objc.Object HasMetadataQueryReplacementValueForAttributeValue() bool @@ -21,27 +17,9 @@ type PMetadataQueryDelegate interface { // A delegate implementation builder for the [PMetadataQueryDelegate] protocol. type MetadataQueryDelegate struct { - _MetadataQueryReplacementObjectForResultObject func(query MetadataQuery, result MetadataItem) objc.Object _MetadataQueryReplacementValueForAttributeValue func(query MetadataQuery, attrName string, attrValue objc.Object) objc.Object } -func (di *MetadataQueryDelegate) HasMetadataQueryReplacementObjectForResultObject() bool { - return di._MetadataQueryReplacementObjectForResultObject != nil -} - -// Returns a different object for a given query result object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquerydelegate/1407317-metadataquery?language=objc -func (di *MetadataQueryDelegate) SetMetadataQueryReplacementObjectForResultObject(f func(query MetadataQuery, result MetadataItem) objc.Object) { - di._MetadataQueryReplacementObjectForResultObject = f -} - -// Returns a different object for a given query result object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquerydelegate/1407317-metadataquery?language=objc -func (di *MetadataQueryDelegate) MetadataQueryReplacementObjectForResultObject(query MetadataQuery, result MetadataItem) objc.Object { - return di._MetadataQueryReplacementObjectForResultObject(query, result) -} func (di *MetadataQueryDelegate) HasMetadataQueryReplacementValueForAttributeValue() bool { return di._MetadataQueryReplacementValueForAttributeValue != nil } @@ -68,18 +46,6 @@ type MetadataQueryDelegateObject struct { objc.Object } -func (m_ MetadataQueryDelegateObject) HasMetadataQueryReplacementObjectForResultObject() bool { - return m_.RespondsToSelector(objc.Sel("metadataQuery:replacementObjectForResultObject:")) -} - -// Returns a different object for a given query result object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquerydelegate/1407317-metadataquery?language=objc -func (m_ MetadataQueryDelegateObject) MetadataQueryReplacementObjectForResultObject(query MetadataQuery, result MetadataItem) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("metadataQuery:replacementObjectForResultObject:"), query, result) - return rv -} - func (m_ MetadataQueryDelegateObject) HasMetadataQueryReplacementValueForAttributeValue() bool { return m_.RespondsToSelector(objc.Sel("metadataQuery:replacementValueForAttribute:value:")) } diff --git a/macos/foundation/metadata_query_result_group.gen.go b/macos/foundation/metadata_query_result_group.gen.go index 4884a530..7dfe0e26 100644 --- a/macos/foundation/metadata_query_result_group.gen.go +++ b/macos/foundation/metadata_query_result_group.gen.go @@ -20,10 +20,10 @@ type IMetadataQueryResultGroup interface { objc.IObject ResultAtIndex(idx uint) objc.Object Subgroups() []MetadataQueryResultGroup - ResultCount() uint Value() objc.Object - Results() []objc.Object Attribute() string + Results() []objc.Object + ResultCount() uint } // The NSMetadataQueryResultGroup class represents a collection of grouped attribute results returned by an NSMetadataQuery object. [Full Topic] @@ -75,14 +75,6 @@ func (m_ MetadataQueryResultGroup) Subgroups() []MetadataQueryResultGroup { return rv } -// The number of results returned by the result group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataqueryresultgroup/1414790-resultcount?language=objc -func (m_ MetadataQueryResultGroup) ResultCount() uint { - rv := objc.Call[uint](m_, objc.Sel("resultCount")) - return rv -} - // The result group’s value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataqueryresultgroup/1417674-value?language=objc @@ -91,6 +83,14 @@ func (m_ MetadataQueryResultGroup) Value() objc.Object { return rv } +// The result group’s attribute name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataqueryresultgroup/1411276-attribute?language=objc +func (m_ MetadataQueryResultGroup) Attribute() string { + rv := objc.Call[string](m_, objc.Sel("attribute")) + return rv +} + // An array containing the result group’s result objects. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataqueryresultgroup/1410191-results?language=objc @@ -99,10 +99,10 @@ func (m_ MetadataQueryResultGroup) Results() []objc.Object { return rv } -// The result group’s attribute name. [Full Topic] +// The number of results returned by the result group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataqueryresultgroup/1411276-attribute?language=objc -func (m_ MetadataQueryResultGroup) Attribute() string { - rv := objc.Call[string](m_, objc.Sel("attribute")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataqueryresultgroup/1414790-resultcount?language=objc +func (m_ MetadataQueryResultGroup) ResultCount() uint { + rv := objc.Call[uint](m_, objc.Sel("resultCount")) return rv } diff --git a/macos/foundation/method_signature.gen.go b/macos/foundation/method_signature.gen.go index 6fa654e4..c00af928 100644 --- a/macos/foundation/method_signature.gen.go +++ b/macos/foundation/method_signature.gen.go @@ -18,12 +18,12 @@ type _MethodSignatureClass struct { // An interface definition for the [MethodSignature] class. type IMethodSignature interface { objc.IObject - GetArgumentTypeAtIndex(idx uint) *uint8 IsOneway() bool - MethodReturnType() *uint8 - NumberOfArguments() uint - FrameLength() uint + GetArgumentTypeAtIndex(idx uint) *uint8 MethodReturnLength() uint + FrameLength() uint + NumberOfArguments() uint + MethodReturnType() *uint8 } // A record of the type information for the return value and parameters of a method. [Full Topic] @@ -59,6 +59,14 @@ func (m_ MethodSignature) Init() MethodSignature { return rv } +// Whether the receiver is asynchronous when invoked through distributed objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmethodsignature/1519664-isoneway?language=objc +func (m_ MethodSignature) IsOneway() bool { + rv := objc.Call[bool](m_, objc.Sel("isOneway")) + return rv +} + // Returns an NSMethodSignature object for the given Objective-C method type string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmethodsignature/1519670-signaturewithobjctypes?language=objc @@ -82,19 +90,19 @@ func (m_ MethodSignature) GetArgumentTypeAtIndex(idx uint) *uint8 { return rv } -// Whether the receiver is asynchronous when invoked through distributed objects. [Full Topic] +// The number of bytes required for the return value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmethodsignature/1519664-isoneway?language=objc -func (m_ MethodSignature) IsOneway() bool { - rv := objc.Call[bool](m_, objc.Sel("isOneway")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmethodsignature/1519666-methodreturnlength?language=objc +func (m_ MethodSignature) MethodReturnLength() uint { + rv := objc.Call[uint](m_, objc.Sel("methodReturnLength")) return rv } -// A C string encoding the return type of the method in Objective-C type encoding. [Full Topic] +// The number of bytes that the arguments, taken together, occupy on the stack. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmethodsignature/1519667-methodreturntype?language=objc -func (m_ MethodSignature) MethodReturnType() *uint8 { - rv := objc.Call[*uint8](m_, objc.Sel("methodReturnType")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmethodsignature/1519658-framelength?language=objc +func (m_ MethodSignature) FrameLength() uint { + rv := objc.Call[uint](m_, objc.Sel("frameLength")) return rv } @@ -106,18 +114,10 @@ func (m_ MethodSignature) NumberOfArguments() uint { return rv } -// The number of bytes that the arguments, taken together, occupy on the stack. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmethodsignature/1519658-framelength?language=objc -func (m_ MethodSignature) FrameLength() uint { - rv := objc.Call[uint](m_, objc.Sel("frameLength")) - return rv -} - -// The number of bytes required for the return value. [Full Topic] +// A C string encoding the return type of the method in Objective-C type encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmethodsignature/1519666-methodreturnlength?language=objc -func (m_ MethodSignature) MethodReturnLength() uint { - rv := objc.Call[uint](m_, objc.Sel("methodReturnLength")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmethodsignature/1519667-methodreturntype?language=objc +func (m_ MethodSignature) MethodReturnType() *uint8 { + rv := objc.Call[*uint8](m_, objc.Sel("methodReturnType")) return rv } diff --git a/macos/foundation/morphology.gen.go b/macos/foundation/morphology.gen.go index a6c6bfb6..9693624e 100644 --- a/macos/foundation/morphology.gen.go +++ b/macos/foundation/morphology.gen.go @@ -19,10 +19,10 @@ type _MorphologyClass struct { type IMorphology interface { objc.IObject IsUnspecified() bool - GrammaticalGender() GrammaticalGender - SetGrammaticalGender(value GrammaticalGender) PartOfSpeech() GrammaticalPartOfSpeech SetPartOfSpeech(value GrammaticalPartOfSpeech) + GrammaticalGender() GrammaticalGender + SetGrammaticalGender(value GrammaticalGender) Number() GrammaticalNumber SetNumber(value GrammaticalNumber) } @@ -68,36 +68,6 @@ func (m_ Morphology) IsUnspecified() bool { return rv } -// The grammatical gender used for inflecting strings with this morphology. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmorphology/3746949-grammaticalgender?language=objc -func (m_ Morphology) GrammaticalGender() GrammaticalGender { - rv := objc.Call[GrammaticalGender](m_, objc.Sel("grammaticalGender")) - return rv -} - -// The grammatical gender used for inflecting strings with this morphology. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmorphology/3746949-grammaticalgender?language=objc -func (m_ Morphology) SetGrammaticalGender(value GrammaticalGender) { - objc.Call[objc.Void](m_, objc.Sel("setGrammaticalGender:"), value) -} - -// The addressing preferences of the current user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmorphology/3746954-usermorphology?language=objc -func (mc _MorphologyClass) UserMorphology() Morphology { - rv := objc.Call[Morphology](mc, objc.Sel("userMorphology")) - return rv -} - -// The addressing preferences of the current user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmorphology/3746954-usermorphology?language=objc -func Morphology_UserMorphology() Morphology { - return MorphologyClass.UserMorphology() -} - // The grammatical part of speech used for inflecting strings with this morphology. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmorphology/3746951-partofspeech?language=objc @@ -113,6 +83,21 @@ func (m_ Morphology) SetPartOfSpeech(value GrammaticalPartOfSpeech) { objc.Call[objc.Void](m_, objc.Sel("setPartOfSpeech:"), value) } +// The grammatical gender used for inflecting strings with this morphology. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmorphology/3746949-grammaticalgender?language=objc +func (m_ Morphology) GrammaticalGender() GrammaticalGender { + rv := objc.Call[GrammaticalGender](m_, objc.Sel("grammaticalGender")) + return rv +} + +// The grammatical gender used for inflecting strings with this morphology. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmorphology/3746949-grammaticalgender?language=objc +func (m_ Morphology) SetGrammaticalGender(value GrammaticalGender) { + objc.Call[objc.Void](m_, objc.Sel("setGrammaticalGender:"), value) +} + // The grammatical number used for inflecting strings with this morphology. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmorphology/3746950-number?language=objc @@ -127,3 +112,18 @@ func (m_ Morphology) Number() GrammaticalNumber { func (m_ Morphology) SetNumber(value GrammaticalNumber) { objc.Call[objc.Void](m_, objc.Sel("setNumber:"), value) } + +// The addressing preferences of the current user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmorphology/3746954-usermorphology?language=objc +func (mc _MorphologyClass) UserMorphology() Morphology { + rv := objc.Call[Morphology](mc, objc.Sel("userMorphology")) + return rv +} + +// The addressing preferences of the current user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmorphology/3746954-usermorphology?language=objc +func Morphology_UserMorphology() Morphology { + return MorphologyClass.UserMorphology() +} diff --git a/macos/foundation/mutable_array.gen.go b/macos/foundation/mutable_array.gen.go index 2b8a58cf..a79f02e8 100644 --- a/macos/foundation/mutable_array.gen.go +++ b/macos/foundation/mutable_array.gen.go @@ -18,36 +18,33 @@ type _MutableArrayClass struct { // An interface definition for the [MutableArray] class. type IMutableArray interface { IArray - RemoveObjectsInArray(otherArray []objc.IObject) + SortUsingDescriptors(sortDescriptors []ISortDescriptor) + AddObjectsFromArray(otherArray []objc.IObject) + RemoveObjectIdenticalTo(anObject objc.IObject) + InitWithContentsOfFile(path string) MutableArray + SortUsingFunctionContext(compare func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) + RemoveLastObject() + FilterUsingPredicate(predicate IPredicate) + ReplaceObjectsInRangeWithObjectsFromArray(range_ Range, otherArray []objc.IObject) + AddObject(anObject objc.IObject) + ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint) + InsertObjectAtIndex(anObject objc.IObject, index uint) ApplyDifference(difference IOrderedCollectionDifference) + SetObjectAtIndexedSubscript(obj objc.IObject, idx uint) + SortUsingSelector(comparator objc.Selector) + RemoveObject(anObject objc.IObject) + RemoveObjectAtIndex(index uint) + RemoveObjectsInArray(otherArray []objc.IObject) SetArray(otherArray []objc.IObject) InitWithContentsOfURL(url IURL) MutableArray + RemoveObjectsInRange(range_ Range) ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) - RemoveLastObject() RemoveObjectsAtIndexes(indexes IIndexSet) - SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) - RemoveObjectInRange(anObject objc.IObject, range_ Range) - RemoveObjectIdenticalTo(anObject objc.IObject) - InsertObjectsAtIndexes(objects []objc.IObject, indexes IIndexSet) - RemoveObjectAtIndex(index uint) - AddObjectsFromArray(otherArray []objc.IObject) - ReplaceObjectAtIndexWithObject(index uint, anObject objc.IObject) SortUsingComparator(cmptr Comparator) - RemoveObject(anObject objc.IObject) - InitWithContentsOfFile(path string) MutableArray - ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint) - FilterUsingPredicate(predicate IPredicate) - SortUsingFunctionContext(compare func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) + InsertObjectsAtIndexes(objects []objc.IObject, indexes IIndexSet) + SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) RemoveAllObjects() - RemoveObjectsInRange(range_ Range) - SetObjectAtIndexedSubscript(obj objc.IObject, idx uint) - AddObject(anObject objc.IObject) - SortUsingDescriptors(sortDescriptors []ISortDescriptor) - RemoveObjectIdenticalToInRange(anObject objc.IObject, range_ Range) - ReplaceObjectsInRangeWithObjectsFromArrayRange(range_ Range, otherArray []objc.IObject, otherRange Range) - ReplaceObjectsInRangeWithObjectsFromArray(range_ Range, otherArray []objc.IObject) - InsertObjectAtIndex(anObject objc.IObject, index uint) - SortUsingSelector(comparator objc.Selector) + ReplaceObjectAtIndexWithObject(index uint, anObject objc.IObject) } // A dynamic ordered collection of objects. [Full Topic] @@ -63,6 +60,18 @@ func MutableArrayFrom(ptr unsafe.Pointer) MutableArray { } } +func (mc _MutableArrayClass) ArrayWithCapacity(numItems uint) MutableArray { + rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithCapacity:"), numItems) + return rv +} + +// Creates and returns an NSMutableArray object with enough allocated memory to initially hold a given number of objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1460057-arraywithcapacity?language=objc +func MutableArray_ArrayWithCapacity(numItems uint) MutableArray { + return MutableArrayClass.ArrayWithCapacity(numItems) +} + func (m_ MutableArray) InitWithCapacity(numItems uint) MutableArray { rv := objc.Call[MutableArray](m_, objc.Sel("initWithCapacity:"), numItems) return rv @@ -82,18 +91,6 @@ func (m_ MutableArray) Init() MutableArray { return rv } -func (mc _MutableArrayClass) ArrayWithCapacity(numItems uint) MutableArray { - rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithCapacity:"), numItems) - return rv -} - -// Creates and returns an NSMutableArray object with enough allocated memory to initially hold a given number of objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1460057-arraywithcapacity?language=objc -func MutableArray_ArrayWithCapacity(numItems uint) MutableArray { - return MutableArrayClass.ArrayWithCapacity(numItems) -} - func (mc _MutableArrayClass) Alloc() MutableArray { rv := objc.Call[MutableArray](mc, objc.Sel("alloc")) return rv @@ -109,58 +106,6 @@ func NewMutableArray() MutableArray { return MutableArrayClass.New() } -func (mc _MutableArrayClass) ArrayWithArray(array []objc.IObject) MutableArray { - rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithArray:"), array) - return rv -} - -// Creates and returns an array containing the objects in another given array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460122-arraywitharray?language=objc -func MutableArray_ArrayWithArray(array []objc.IObject) MutableArray { - return MutableArrayClass.ArrayWithArray(array) -} - -func (m_ MutableArray) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableArray { - rv := objc.Call[MutableArray](m_, objc.Sel("initWithObjects:count:"), objects, cnt) - return rv -} - -// Initializes a newly allocated array to include a given number of objects from a given C array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1415056-initwithobjects?language=objc -func NewMutableArrayWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableArray { - instance := MutableArrayClass.Alloc().InitWithObjectsCount(objects, cnt) - instance.Autorelease() - return instance -} - -func (m_ MutableArray) InitWithArrayCopyItems(array []objc.IObject, flag bool) MutableArray { - rv := objc.Call[MutableArray](m_, objc.Sel("initWithArray:copyItems:"), array, flag) - return rv -} - -// Initializes a newly allocated array using anArray as the source of data objects for the array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1408557-initwitharray?language=objc -func NewMutableArrayWithArrayCopyItems(array []objc.IObject, flag bool) MutableArray { - instance := MutableArrayClass.Alloc().InitWithArrayCopyItems(array, flag) - instance.Autorelease() - return instance -} - -func (mc _MutableArrayClass) ArrayWithObject(anObject objc.IObject) MutableArray { - rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithObject:"), anObject) - return rv -} - -// Creates and returns an array containing a given object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1411981-arraywithobject?language=objc -func MutableArray_ArrayWithObject(anObject objc.IObject) MutableArray { - return MutableArrayClass.ArrayWithObject(anObject) -} - func (m_ MutableArray) InitWithObjects(firstObj objc.IObject, args ...any) MutableArray { rv := objc.Call[MutableArray](m_, objc.Sel("initWithObjects:"), append([]any{firstObj}, args...)...) return rv @@ -187,6 +132,18 @@ func MutableArray_Array() MutableArray { return MutableArrayClass.Array() } +func (mc _MutableArrayClass) ArrayWithObjects(firstObj objc.IObject, args ...any) MutableArray { + rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithObjects:"), append([]any{firstObj}, args...)...) + return rv +} + +// Creates and returns an array containing the objects in the argument list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460145-arraywithobjects?language=objc +func MutableArray_ArrayWithObjects(firstObj objc.IObject, args ...any) MutableArray { + return MutableArrayClass.ArrayWithObjects(firstObj, args...) +} + func (m_ MutableArray) InitWithArray(array []objc.IObject) MutableArray { rv := objc.Call[MutableArray](m_, objc.Sel("initWithArray:"), array) return rv @@ -201,64 +158,64 @@ func NewMutableArrayWithArray(array []objc.IObject) MutableArray { return instance } -func (mc _MutableArrayClass) ArrayWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableArray { - rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithObjects:count:"), objects, cnt) +func (mc _MutableArrayClass) ArrayWithArray(array []objc.IObject) MutableArray { + rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithArray:"), array) return rv } -// Creates and returns an array that includes a given number of objects from a given C array. [Full Topic] +// Creates and returns an array containing the objects in another given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460096-arraywithobjects?language=objc -func MutableArray_ArrayWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableArray { - return MutableArrayClass.ArrayWithObjectsCount(objects, cnt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460122-arraywitharray?language=objc +func MutableArray_ArrayWithArray(array []objc.IObject) MutableArray { + return MutableArrayClass.ArrayWithArray(array) } -func (mc _MutableArrayClass) ArrayWithObjects(firstObj objc.IObject, args ...any) MutableArray { - rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithObjects:"), append([]any{firstObj}, args...)...) +func (mc _MutableArrayClass) ArrayWithObject(anObject objc.IObject) MutableArray { + rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithObject:"), anObject) return rv } -// Creates and returns an array containing the objects in the argument list. [Full Topic] +// Creates and returns an array containing a given object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460145-arraywithobjects?language=objc -func MutableArray_ArrayWithObjects(firstObj objc.IObject, args ...any) MutableArray { - return MutableArrayClass.ArrayWithObjects(firstObj, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1411981-arraywithobject?language=objc +func MutableArray_ArrayWithObject(anObject objc.IObject) MutableArray { + return MutableArrayClass.ArrayWithObject(anObject) } -// Removes from the receiving array the objects in another given array. [Full Topic] +// Sorts the receiver using a given array of sort descriptors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1413942-removeobjectsinarray?language=objc -func (m_ MutableArray) RemoveObjectsInArray(otherArray []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectsInArray:"), otherArray) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1410745-sortusingdescriptors?language=objc +func (m_ MutableArray) SortUsingDescriptors(sortDescriptors []ISortDescriptor) { + objc.Call[objc.Void](m_, objc.Sel("sortUsingDescriptors:"), sortDescriptors) } -// [Full Topic] +// Adds the objects contained in another given array to the end of the receiving array’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/3152169-applydifference?language=objc -func (m_ MutableArray) ApplyDifference(difference IOrderedCollectionDifference) { - objc.Call[objc.Void](m_, objc.Sel("applyDifference:"), difference) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1408963-addobjectsfromarray?language=objc +func (m_ MutableArray) AddObjectsFromArray(otherArray []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("addObjectsFromArray:"), otherArray) } -// Sets the receiving array’s elements to those in another given array. [Full Topic] +// Removes all occurrences of a given object in the array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1417821-setarray?language=objc -func (m_ MutableArray) SetArray(otherArray []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setArray:"), otherArray) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1417759-removeobjectidenticalto?language=objc +func (m_ MutableArray) RemoveObjectIdenticalTo(anObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectIdenticalTo:"), anObject) } -// Initialized a newly allocated mutable array with the contents of the location specified by a given URL. [Full Topic] +// Initializes a newly allocated mutable array with the contents of the file specified by a given path [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1411688-initwithcontentsofurl?language=objc -func (m_ MutableArray) InitWithContentsOfURL(url IURL) MutableArray { - rv := objc.Call[MutableArray](m_, objc.Sel("initWithContentsOfURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1414670-initwithcontentsoffile?language=objc +func (m_ MutableArray) InitWithContentsOfFile(path string) MutableArray { + rv := objc.Call[MutableArray](m_, objc.Sel("initWithContentsOfFile:"), path) return rv } -// Replaces the objects in the receiving array at locations specified with the objects from a given array. [Full Topic] +// Sorts the receiver in ascending order as defined by the comparison function compare. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1418287-replaceobjectsatindexes?language=objc -func (m_ MutableArray) ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("replaceObjectsAtIndexes:withObjects:"), indexes, objects) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1408332-sortusingfunction?language=objc +func (m_ MutableArray) SortUsingFunctionContext(compare func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) { + objc.Call[objc.Void](m_, objc.Sel("sortUsingFunction:context:"), compare, context) } // Removes the object with the highest-valued index in the array [Full Topic] @@ -268,67 +225,39 @@ func (m_ MutableArray) RemoveLastObject() { objc.Call[objc.Void](m_, objc.Sel("removeLastObject")) } -// Removes the objects at the specified indexes from the array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1410154-removeobjectsatindexes?language=objc -func (m_ MutableArray) RemoveObjectsAtIndexes(indexes IIndexSet) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectsAtIndexes:"), indexes) -} - -// Sorts the receiver in ascending order using the specified options and the comparison method specified by a given NSComparator block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1414396-sortwithoptions?language=objc -func (m_ MutableArray) SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) { - objc.Call[objc.Void](m_, objc.Sel("sortWithOptions:usingComparator:"), opts, cmptr) -} - -// Removes all occurrences within a specified range in the array of a given object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1411366-removeobject?language=objc -func (m_ MutableArray) RemoveObjectInRange(anObject objc.IObject, range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("removeObject:inRange:"), anObject, range_) -} - -// Removes all occurrences of a given object in the array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1417759-removeobjectidenticalto?language=objc -func (m_ MutableArray) RemoveObjectIdenticalTo(anObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectIdenticalTo:"), anObject) -} - -// Inserts the objects in the provided array into the receiving array at the specified indexes. [Full Topic] +// Evaluates a given predicate against the array’s content and leaves only objects that match. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1416482-insertobjects?language=objc -func (m_ MutableArray) InsertObjectsAtIndexes(objects []objc.IObject, indexes IIndexSet) { - objc.Call[objc.Void](m_, objc.Sel("insertObjects:atIndexes:"), objects, indexes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1412085-filterusingpredicate?language=objc +func (m_ MutableArray) FilterUsingPredicate(predicate IPredicate) { + objc.Call[objc.Void](m_, objc.Sel("filterUsingPredicate:"), predicate) } -// Removes the object at index . [Full Topic] +// Replaces the objects in the receiving array specified by a given range with all of the objects from a given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1416616-removeobjectatindex?language=objc -func (m_ MutableArray) RemoveObjectAtIndex(index uint) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1416902-replaceobjectsinrange?language=objc +func (m_ MutableArray) ReplaceObjectsInRangeWithObjectsFromArray(range_ Range, otherArray []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("replaceObjectsInRange:withObjectsFromArray:"), range_, otherArray) } -// Adds the objects contained in another given array to the end of the receiving array’s content. [Full Topic] +// Inserts a given object at the end of the array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1408963-addobjectsfromarray?language=objc -func (m_ MutableArray) AddObjectsFromArray(otherArray []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("addObjectsFromArray:"), otherArray) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1411274-addobject?language=objc +func (m_ MutableArray) AddObject(anObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("addObject:"), anObject) } -// Replaces the object at index with anObject. [Full Topic] +// Exchanges the objects in the array at given indexes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1414510-replaceobjectatindex?language=objc -func (m_ MutableArray) ReplaceObjectAtIndexWithObject(index uint, anObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("replaceObjectAtIndex:withObject:"), index, anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1411160-exchangeobjectatindex?language=objc +func (m_ MutableArray) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint) { + objc.Call[objc.Void](m_, objc.Sel("exchangeObjectAtIndex:withObjectAtIndex:"), idx1, idx2) } -// Sorts the receiver in ascending order using the comparison method specified by a given NSComparator block. [Full Topic] +// Inserts a given object into the array’s contents at a given index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1414904-sortusingcomparator?language=objc -func (m_ MutableArray) SortUsingComparator(cmptr Comparator) { - objc.Call[objc.Void](m_, objc.Sel("sortUsingComparator:"), cmptr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1416682-insertobject?language=objc +func (m_ MutableArray) InsertObjectAtIndex(anObject objc.IObject, index uint) { + objc.Call[objc.Void](m_, objc.Sel("insertObject:atIndex:"), anObject, index) } // Creates and returns a mutable array containing the contents specified by a given URL. [Full Topic] @@ -346,62 +275,61 @@ func MutableArray_ArrayWithContentsOfURL(url IURL) MutableArray { return MutableArrayClass.ArrayWithContentsOfURL(url) } -// Removes all occurrences in the array of a given object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1410689-removeobject?language=objc -func (m_ MutableArray) RemoveObject(anObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("removeObject:"), anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/3152169-applydifference?language=objc +func (m_ MutableArray) ApplyDifference(difference IOrderedCollectionDifference) { + objc.Call[objc.Void](m_, objc.Sel("applyDifference:"), difference) } -// Initializes a newly allocated mutable array with the contents of the file specified by a given path [Full Topic] +// Replaces the object at the index with the new object, possibly adding the object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1414670-initwithcontentsoffile?language=objc -func (m_ MutableArray) InitWithContentsOfFile(path string) MutableArray { - rv := objc.Call[MutableArray](m_, objc.Sel("initWithContentsOfFile:"), path) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1460093-setobject?language=objc +func (m_ MutableArray) SetObjectAtIndexedSubscript(obj objc.IObject, idx uint) { + objc.Call[objc.Void](m_, objc.Sel("setObject:atIndexedSubscript:"), obj, idx) } -// Exchanges the objects in the array at given indexes. [Full Topic] +// Sorts the receiver in ascending order, as determined by the comparison method specified by a given selector. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1411160-exchangeobjectatindex?language=objc -func (m_ MutableArray) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint) { - objc.Call[objc.Void](m_, objc.Sel("exchangeObjectAtIndex:withObjectAtIndex:"), idx1, idx2) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1412273-sortusingselector?language=objc +func (m_ MutableArray) SortUsingSelector(comparator objc.Selector) { + objc.Call[objc.Void](m_, objc.Sel("sortUsingSelector:"), comparator) } -// Evaluates a given predicate against the array’s content and leaves only objects that match. [Full Topic] +// Removes all occurrences in the array of a given object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1412085-filterusingpredicate?language=objc -func (m_ MutableArray) FilterUsingPredicate(predicate IPredicate) { - objc.Call[objc.Void](m_, objc.Sel("filterUsingPredicate:"), predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1410689-removeobject?language=objc +func (m_ MutableArray) RemoveObject(anObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("removeObject:"), anObject) } -// Sorts the receiver in ascending order as defined by the comparison function compare. [Full Topic] +// Removes the object at index . [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1408332-sortusingfunction?language=objc -func (m_ MutableArray) SortUsingFunctionContext(compare func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) { - objc.Call[objc.Void](m_, objc.Sel("sortUsingFunction:context:"), compare, context) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1416616-removeobjectatindex?language=objc +func (m_ MutableArray) RemoveObjectAtIndex(index uint) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectAtIndex:"), index) } -// Creates and returns a mutable array containing the contents of the file specified by the given path. [Full Topic] +// Removes from the receiving array the objects in another given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1460079-arraywithcontentsoffile?language=objc -func (mc _MutableArrayClass) ArrayWithContentsOfFile(path string) MutableArray { - rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithContentsOfFile:"), path) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1413942-removeobjectsinarray?language=objc +func (m_ MutableArray) RemoveObjectsInArray(otherArray []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectsInArray:"), otherArray) } -// Creates and returns a mutable array containing the contents of the file specified by the given path. [Full Topic] +// Sets the receiving array’s elements to those in another given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1460079-arraywithcontentsoffile?language=objc -func MutableArray_ArrayWithContentsOfFile(path string) MutableArray { - return MutableArrayClass.ArrayWithContentsOfFile(path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1417821-setarray?language=objc +func (m_ MutableArray) SetArray(otherArray []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setArray:"), otherArray) } -// Empties the array of all its elements. [Full Topic] +// Initialized a newly allocated mutable array with the contents of the location specified by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1410618-removeallobjects?language=objc -func (m_ MutableArray) RemoveAllObjects() { - objc.Call[objc.Void](m_, objc.Sel("removeAllObjects")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1411688-initwithcontentsofurl?language=objc +func (m_ MutableArray) InitWithContentsOfURL(url IURL) MutableArray { + rv := objc.Call[MutableArray](m_, objc.Sel("initWithContentsOfURL:"), url) + return rv } // Removes from the array each of the objects within a given range. [Full Topic] @@ -411,58 +339,66 @@ func (m_ MutableArray) RemoveObjectsInRange(range_ Range) { objc.Call[objc.Void](m_, objc.Sel("removeObjectsInRange:"), range_) } -// Replaces the object at the index with the new object, possibly adding the object. [Full Topic] +// Replaces the objects in the receiving array at locations specified with the objects from a given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1460093-setobject?language=objc -func (m_ MutableArray) SetObjectAtIndexedSubscript(obj objc.IObject, idx uint) { - objc.Call[objc.Void](m_, objc.Sel("setObject:atIndexedSubscript:"), obj, idx) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1418287-replaceobjectsatindexes?language=objc +func (m_ MutableArray) ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("replaceObjectsAtIndexes:withObjects:"), indexes, objects) } -// Inserts a given object at the end of the array. [Full Topic] +// Removes the objects at the specified indexes from the array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1411274-addobject?language=objc -func (m_ MutableArray) AddObject(anObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("addObject:"), anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1410154-removeobjectsatindexes?language=objc +func (m_ MutableArray) RemoveObjectsAtIndexes(indexes IIndexSet) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectsAtIndexes:"), indexes) } -// Sorts the receiver using a given array of sort descriptors. [Full Topic] +// Sorts the receiver in ascending order using the comparison method specified by a given NSComparator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1410745-sortusingdescriptors?language=objc -func (m_ MutableArray) SortUsingDescriptors(sortDescriptors []ISortDescriptor) { - objc.Call[objc.Void](m_, objc.Sel("sortUsingDescriptors:"), sortDescriptors) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1414904-sortusingcomparator?language=objc +func (m_ MutableArray) SortUsingComparator(cmptr Comparator) { + objc.Call[objc.Void](m_, objc.Sel("sortUsingComparator:"), cmptr) } -// Removes all occurrences of anObject within the specified range in the array. [Full Topic] +// Inserts the objects in the provided array into the receiving array at the specified indexes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1415225-removeobjectidenticalto?language=objc -func (m_ MutableArray) RemoveObjectIdenticalToInRange(anObject objc.IObject, range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectIdenticalTo:inRange:"), anObject, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1416482-insertobjects?language=objc +func (m_ MutableArray) InsertObjectsAtIndexes(objects []objc.IObject, indexes IIndexSet) { + objc.Call[objc.Void](m_, objc.Sel("insertObjects:atIndexes:"), objects, indexes) } -// Replaces the objects in the receiving array specified by one given range with the objects in another array specified by another range. [Full Topic] +// Creates and returns a mutable array containing the contents of the file specified by the given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1409073-replaceobjectsinrange?language=objc -func (m_ MutableArray) ReplaceObjectsInRangeWithObjectsFromArrayRange(range_ Range, otherArray []objc.IObject, otherRange Range) { - objc.Call[objc.Void](m_, objc.Sel("replaceObjectsInRange:withObjectsFromArray:range:"), range_, otherArray, otherRange) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1460079-arraywithcontentsoffile?language=objc +func (mc _MutableArrayClass) ArrayWithContentsOfFile(path string) MutableArray { + rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithContentsOfFile:"), path) + return rv } -// Replaces the objects in the receiving array specified by a given range with all of the objects from a given array. [Full Topic] +// Creates and returns a mutable array containing the contents of the file specified by the given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1416902-replaceobjectsinrange?language=objc -func (m_ MutableArray) ReplaceObjectsInRangeWithObjectsFromArray(range_ Range, otherArray []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("replaceObjectsInRange:withObjectsFromArray:"), range_, otherArray) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1460079-arraywithcontentsoffile?language=objc +func MutableArray_ArrayWithContentsOfFile(path string) MutableArray { + return MutableArrayClass.ArrayWithContentsOfFile(path) } -// Inserts a given object into the array’s contents at a given index. [Full Topic] +// Sorts the receiver in ascending order using the specified options and the comparison method specified by a given NSComparator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1416682-insertobject?language=objc -func (m_ MutableArray) InsertObjectAtIndex(anObject objc.IObject, index uint) { - objc.Call[objc.Void](m_, objc.Sel("insertObject:atIndex:"), anObject, index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1414396-sortwithoptions?language=objc +func (m_ MutableArray) SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) { + objc.Call[objc.Void](m_, objc.Sel("sortWithOptions:usingComparator:"), opts, cmptr) } -// Sorts the receiver in ascending order, as determined by the comparison method specified by a given selector. [Full Topic] +// Empties the array of all its elements. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1412273-sortusingselector?language=objc -func (m_ MutableArray) SortUsingSelector(comparator objc.Selector) { - objc.Call[objc.Void](m_, objc.Sel("sortUsingSelector:"), comparator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1410618-removeallobjects?language=objc +func (m_ MutableArray) RemoveAllObjects() { + objc.Call[objc.Void](m_, objc.Sel("removeAllObjects")) +} + +// Replaces the object at index with anObject. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablearray/1414510-replaceobjectatindex?language=objc +func (m_ MutableArray) ReplaceObjectAtIndexWithObject(index uint, anObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("replaceObjectAtIndex:withObject:"), index, anObject) } diff --git a/macos/foundation/mutable_attributed_string.gen.go b/macos/foundation/mutable_attributed_string.gen.go index 4e4c45c8..b4d5ac52 100644 --- a/macos/foundation/mutable_attributed_string.gen.go +++ b/macos/foundation/mutable_attributed_string.gen.go @@ -18,32 +18,30 @@ type _MutableAttributedStringClass struct { // An interface definition for the [MutableAttributedString] class. type IMutableAttributedString interface { IAttributedString - SetAttributedString(attrString IAttributedString) - UnscriptRange(range_ Range) - AddAttributeValueRange(name AttributedStringKey, value objc.IObject, range_ Range) + AppendLocalizedFormat(format IAttributedString, args ...any) + AppendAttributedString(attrString IAttributedString) + DeleteCharactersInRange(range_ Range) + SetAlignmentRange(alignment objc.IObject, range_ Range) InsertAttributedStringAtIndex(attrString IAttributedString, loc uint) - UpdateAttachmentsFromPath(path string) - SetAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) - FixAttributesInRange(range_ Range) - SuperscriptRange(range_ Range) FixFontAttributeInRange(range_ Range) - SetAlignmentRange(alignment objc.IObject, range_ Range) + ApplyFontTraitsRange(traitMask objc.IObject, range_ Range) + UnscriptRange(range_ Range) + BeginEditing() + ReadFromDataOptionsDocumentAttributesError(data []byte, opts Dictionary, dict unsafe.Pointer, error unsafe.Pointer) bool + FixAttributesInRange(range_ Range) + AddAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) + UpdateAttachmentsFromPath(path string) ReplaceCharactersInRangeWithAttributedString(range_ Range, attrString IAttributedString) - ReplaceCharactersInRangeWithString(range_ Range, str string) - SetBaseWritingDirectionRange(writingDirection objc.IObject, range_ Range) EndEditing() + SetAttributedString(attrString IAttributedString) RemoveAttributeRange(name AttributedStringKey, range_ Range) - ReadFromURLOptionsDocumentAttributesError(url IURL, opts Dictionary, dict unsafe.Pointer, error unsafe.Pointer) bool - AddAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) - SubscriptRange(range_ Range) + AddAttributeValueRange(name AttributedStringKey, value objc.IObject, range_ Range) + SetAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) + SuperscriptRange(range_ Range) FixParagraphStyleAttributeInRange(range_ Range) - AppendLocalizedFormat(format IAttributedString, args ...any) - DeleteCharactersInRange(range_ Range) - ReadFromDataOptionsDocumentAttributesError(data []byte, opts Dictionary, dict unsafe.Pointer, error unsafe.Pointer) bool - ApplyFontTraitsRange(traitMask objc.IObject, range_ Range) - AppendAttributedString(attrString IAttributedString) + SubscriptRange(range_ Range) + SetBaseWritingDirectionRange(writingDirection objc.IObject, range_ Range) FixAttachmentAttributeInRange(range_ Range) - BeginEditing() MutableString() MutableString } @@ -80,44 +78,16 @@ func (m_ MutableAttributedString) Init() MutableAttributedString { return rv } -func (m_ MutableAttributedString) InitWithHTMLBaseURLDocumentAttributes(data []byte, base IURL, dict unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithHTML:baseURL:documentAttributes:"), data, base, dict) - return rv -} - -// Creates an attributed string from the HTML in the specified data object and base URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524624-initwithhtml?language=objc -func NewMutableAttributedStringWithHTMLBaseURLDocumentAttributes(data []byte, base IURL, dict unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithHTMLBaseURLDocumentAttributes(data, base, dict) - instance.Autorelease() - return instance -} - -func (m_ MutableAttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), markdownFile, options, baseURL, error) - return rv -} - -// Creates an attributed string from the contents of a specified URL that contains Markdown-formatted data using the provided options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746872-initwithcontentsofmarkdownfileat?language=objc -func NewMutableAttributedStringWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile, options, baseURL, error) - instance.Autorelease() - return instance -} - -func (m_ MutableAttributedString) InitWithStringAttributes(str string, attrs map[AttributedStringKey]objc.IObject) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithString:attributes:"), str, attrs) +func (m_ MutableAttributedString) InitWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict unsafe.Pointer) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) return rv } -// Creates an attributed string with the specified string and attributes. [Full Topic] +// Creates an attributed string from the HTML in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1408136-initwithstring?language=objc -func NewMutableAttributedStringWithStringAttributes(str string, attrs map[AttributedStringKey]objc.IObject) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithStringAttributes(str, attrs) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535412-initwithhtml?language=objc +func NewMutableAttributedStringWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict unsafe.Pointer) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) instance.Autorelease() return instance } @@ -148,30 +118,16 @@ func NewMutableAttributedStringWithAttributedString(attrStr IAttributedString) M return instance } -func (m_ MutableAttributedString) InitWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, error) - return rv -} - -// Creates an attributed string from the data in the specified data object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata?language=objc -func NewMutableAttributedStringWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) - instance.Autorelease() - return instance -} - -func (m_ MutableAttributedString) InitWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) +func (m_ MutableAttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), markdownFile, options, baseURL, error) return rv } -// Creates an attributed string by decoding the stream of RTF commands and data in the specified data object. [Full Topic] +// Creates an attributed string from the contents of a specified URL that contains Markdown-formatted data using the provided options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1532912-initwithrtf?language=objc -func NewMutableAttributedStringWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithRTFDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746872-initwithcontentsofmarkdownfileat?language=objc +func NewMutableAttributedStringWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile, options, baseURL, error) instance.Autorelease() return instance } @@ -190,58 +146,60 @@ func NewMutableAttributedStringWithFormatOptionsLocale(format IAttributedString, return instance } -func (m_ MutableAttributedString) InitWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), wrapper, dict) +func (m_ MutableAttributedString) InitWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, error) return rv } -// Creates an attributed string from the specified file wrapper that contains an RTFD document. [Full Topic] +// Creates an attributed string from the data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1533594-initwithrtfdfilewrapper?language=objc -func NewMutableAttributedStringWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata?language=objc +func NewMutableAttributedStringWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) instance.Autorelease() return instance } -func (m_ MutableAttributedString) InitWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, options, baseURL, error) +func (m_ MutableAttributedString) InitWithString(str string) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithString:"), str) return rv } -// Creates an attributed string from Markdown-formatted data using the provided options. [Full Topic] +// Creates an attributed string with the characters of the specified string and no attribute information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc -func NewMutableAttributedStringWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1407481-initwithstring?language=objc +func NewMutableAttributedStringWithString(str string) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithString(str) instance.Autorelease() return instance } -func (m_ MutableAttributedString) InitWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) +func (m_ MutableAttributedString) InitWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithMarkdownString:options:baseURL:error:"), markdownString, options, baseURL, error) return rv } -// Creates an attributed string from the HTML in the specified data object. [Full Topic] +// Creates an attributed string from a Markdown-formatted string using the provided options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535412-initwithhtml?language=objc -func NewMutableAttributedStringWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746876-initwithmarkdownstring?language=objc +func NewMutableAttributedStringWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithMarkdownStringOptionsBaseURLError(markdownString, options, baseURL, error) instance.Autorelease() return instance } -func (mc _MutableAttributedStringClass) LocalizedAttributedStringWithFormatOptions(format IAttributedString, options AttributedStringFormattingOptions, args ...any) MutableAttributedString { - rv := objc.Call[MutableAttributedString](mc, objc.Sel("localizedAttributedStringWithFormat:options:"), append([]any{format, options}, args...)...) +func (m_ MutableAttributedString) InitWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, options, baseURL, error) return rv } -// [Full Topic] +// Creates an attributed string from Markdown-formatted data using the provided options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746878-localizedattributedstringwithfor?language=objc -func MutableAttributedString_LocalizedAttributedStringWithFormatOptions(format IAttributedString, options AttributedStringFormattingOptions, args ...any) MutableAttributedString { - return MutableAttributedStringClass.LocalizedAttributedStringWithFormatOptions(format, options, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc +func NewMutableAttributedStringWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) + instance.Autorelease() + return instance } func (m_ MutableAttributedString) InitWithDocFormatDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { @@ -258,116 +216,117 @@ func NewMutableAttributedStringWithDocFormatDocumentAttributes(data []byte, dict return instance } -func (m_ MutableAttributedString) InitWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithMarkdownString:options:baseURL:error:"), markdownString, options, baseURL, error) +func (m_ MutableAttributedString) InitWithRTFDDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTFD:documentAttributes:"), data, dict) return rv } -// Creates an attributed string from a Markdown-formatted string using the provided options. [Full Topic] +// Creates an attributed string by decoding the stream of RTFD commands and data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746876-initwithmarkdownstring?language=objc -func NewMutableAttributedStringWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithMarkdownStringOptionsBaseURLError(markdownString, options, baseURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530987-initwithrtfd?language=objc +func NewMutableAttributedStringWithRTFDDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithRTFDDocumentAttributes(data, dict) instance.Autorelease() return instance } -func (m_ MutableAttributedString) InitWithURLOptionsDocumentAttributesError(url IURL, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithURL:options:documentAttributes:error:"), url, options, dict, error) +func (m_ MutableAttributedString) InitWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) return rv } -// Creates an attributed string from the contents of the specified URL. [Full Topic] +// Creates an attributed string by decoding the stream of RTF commands and data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530490-initwithurl?language=objc -func NewMutableAttributedStringWithURLOptionsDocumentAttributesError(url IURL, options Dictionary, dict unsafe.Pointer, error unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithURLOptionsDocumentAttributesError(url, options, dict, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1532912-initwithrtf?language=objc +func NewMutableAttributedStringWithRTFDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithRTFDocumentAttributes(data, dict) instance.Autorelease() return instance } -func (m_ MutableAttributedString) InitWithHTMLDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithHTML:documentAttributes:"), data, dict) +func (m_ MutableAttributedString) InitWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict unsafe.Pointer) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), wrapper, dict) return rv } -// Creates an attributed string from the HTML in the specified data object. [Full Topic] +// Creates an attributed string from the specified file wrapper that contains an RTFD document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1525953-initwithhtml?language=objc -func NewMutableAttributedStringWithHTMLDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithHTMLDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1533594-initwithrtfdfilewrapper?language=objc +func NewMutableAttributedStringWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict unsafe.Pointer) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) instance.Autorelease() return instance } -func (m_ MutableAttributedString) InitWithRTFDDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTFD:documentAttributes:"), data, dict) - return rv +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/3746902-appendlocalizedformat?language=objc +func (m_ MutableAttributedString) AppendLocalizedFormat(format IAttributedString, args ...any) { + objc.Call[objc.Void](m_, objc.Sel("appendLocalizedFormat:"), append([]any{format}, args...)...) } -// Creates an attributed string by decoding the stream of RTFD commands and data in the specified data object. [Full Topic] +// Adds the characters and attributes of a given attributed string to the end of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530987-initwithrtfd?language=objc -func NewMutableAttributedStringWithRTFDDocumentAttributes(data []byte, dict unsafe.Pointer) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithRTFDDocumentAttributes(data, dict) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1417879-appendattributedstring?language=objc +func (m_ MutableAttributedString) AppendAttributedString(attrString IAttributedString) { + objc.Call[objc.Void](m_, objc.Sel("appendAttributedString:"), attrString) } -func (m_ MutableAttributedString) InitWithString(str string) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithString:"), str) - return rv +// Deletes the characters in the given range along with their associated attributes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1410610-deletecharactersinrange?language=objc +func (m_ MutableAttributedString) DeleteCharactersInRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("deleteCharactersInRange:"), range_) } -// Creates an attributed string with the characters of the specified string and no attribute information. [Full Topic] +// Sets the alignment characteristic of the paragraph style attribute for the characters in aRange to alignment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1407481-initwithstring?language=objc -func NewMutableAttributedStringWithString(str string) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithString(str) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1530762-setalignment?language=objc +func (m_ MutableAttributedString) SetAlignmentRange(alignment objc.IObject, range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("setAlignment:range:"), alignment, range_) } -// Replaces the receiver’s entire contents with the characters and attributes of the given attributed string. [Full Topic] +// Inserts the characters and attributes of the given attributed string into the receiver at the given index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1411894-setattributedstring?language=objc -func (m_ MutableAttributedString) SetAttributedString(attrString IAttributedString) { - objc.Call[objc.Void](m_, objc.Sel("setAttributedString:"), attrString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1414947-insertattributedstring?language=objc +func (m_ MutableAttributedString) InsertAttributedStringAtIndex(attrString IAttributedString, loc uint) { + objc.Call[objc.Void](m_, objc.Sel("insertAttributedString:atIndex:"), attrString, loc) } -// Removes the superscript attribute from the characters in aRange. [Full Topic] +// Fixes the font attribute in aRange, assigning default fonts to characters with illegal fonts for their scripts and otherwise correcting font attribute assignments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1530210-unscriptrange?language=objc -func (m_ MutableAttributedString) UnscriptRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("unscriptRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1534303-fixfontattributeinrange?language=objc +func (m_ MutableAttributedString) FixFontAttributeInRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("fixFontAttributeInRange:"), range_) } -// Adds an attribute with the given name and value to the characters in the specified range. [Full Topic] +// Applies the font attributes specified by mask to the characters in aRange. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1417080-addattribute?language=objc -func (m_ MutableAttributedString) AddAttributeValueRange(name AttributedStringKey, value objc.IObject, range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("addAttribute:value:range:"), name, value, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1532734-applyfonttraits?language=objc +func (m_ MutableAttributedString) ApplyFontTraitsRange(traitMask objc.IObject, range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("applyFontTraits:range:"), traitMask, range_) } -// Inserts the characters and attributes of the given attributed string into the receiver at the given index. [Full Topic] +// Removes the superscript attribute from the characters in aRange. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1414947-insertattributedstring?language=objc -func (m_ MutableAttributedString) InsertAttributedStringAtIndex(attrString IAttributedString, loc uint) { - objc.Call[objc.Void](m_, objc.Sel("insertAttributedString:atIndex:"), attrString, loc) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1530210-unscriptrange?language=objc +func (m_ MutableAttributedString) UnscriptRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("unscriptRange:"), range_) } -// Updates all attachments based on files contained in the RTFD file package at path. [Full Topic] +// Overridden by subclasses to buffer or optimize a series of changes to the receiver’s characters or attributes, until it receives a matching endEditing message, upon which it can consolidate changes and notify any observers that it has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1508389-updateattachmentsfrompath?language=objc -func (m_ MutableAttributedString) UpdateAttachmentsFromPath(path string) { - objc.Call[objc.Void](m_, objc.Sel("updateAttachmentsFromPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1411853-beginediting?language=objc +func (m_ MutableAttributedString) BeginEditing() { + objc.Call[objc.Void](m_, objc.Sel("beginEditing")) } -// Sets the attributes for the characters in the specified range to the specified attributes. [Full Topic] +// Sets the contents of the receiver from the stream at data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1412179-setattributes?language=objc -func (m_ MutableAttributedString) SetAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("setAttributes:range:"), attrs, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1535465-readfromdata?language=objc +func (m_ MutableAttributedString) ReadFromDataOptionsDocumentAttributesError(data []byte, opts Dictionary, dict unsafe.Pointer, error unsafe.Pointer) bool { + rv := objc.Call[bool](m_, objc.Sel("readFromData:options:documentAttributes:error:"), data, opts, dict, error) + return rv } // Cleans up font, paragraph style, and attachment attributes within the given range. [Full Topic] @@ -377,25 +336,18 @@ func (m_ MutableAttributedString) FixAttributesInRange(range_ Range) { objc.Call[objc.Void](m_, objc.Sel("fixAttributesInRange:"), range_) } -// Increments the value of the superscript attribute for characters in aRange by 1. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1533592-superscriptrange?language=objc -func (m_ MutableAttributedString) SuperscriptRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("superscriptRange:"), range_) -} - -// Fixes the font attribute in aRange, assigning default fonts to characters with illegal fonts for their scripts and otherwise correcting font attribute assignments. [Full Topic] +// Adds the given collection of attributes to the characters in the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1534303-fixfontattributeinrange?language=objc -func (m_ MutableAttributedString) FixFontAttributeInRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("fixFontAttributeInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1414304-addattributes?language=objc +func (m_ MutableAttributedString) AddAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("addAttributes:range:"), attrs, range_) } -// Sets the alignment characteristic of the paragraph style attribute for the characters in aRange to alignment. [Full Topic] +// Updates all attachments based on files contained in the RTFD file package at path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1530762-setalignment?language=objc -func (m_ MutableAttributedString) SetAlignmentRange(alignment objc.IObject, range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("setAlignment:range:"), alignment, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1508389-updateattachmentsfrompath?language=objc +func (m_ MutableAttributedString) UpdateAttachmentsFromPath(path string) { + objc.Call[objc.Void](m_, objc.Sel("updateAttachmentsFromPath:"), path) } // Replaces the characters and attributes in a given range with the characters and attributes of the given attributed string. [Full Topic] @@ -405,27 +357,20 @@ func (m_ MutableAttributedString) ReplaceCharactersInRangeWithAttributedString(r objc.Call[objc.Void](m_, objc.Sel("replaceCharactersInRange:withAttributedString:"), range_, attrString) } -// Replaces the characters in the given range with the characters of the given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1418451-replacecharactersinrange?language=objc -func (m_ MutableAttributedString) ReplaceCharactersInRangeWithString(range_ Range, str string) { - objc.Call[objc.Void](m_, objc.Sel("replaceCharactersInRange:withString:"), range_, str) -} - -// Sets the base writing direction for the characters in range to writingDirection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1532923-setbasewritingdirection?language=objc -func (m_ MutableAttributedString) SetBaseWritingDirectionRange(writingDirection objc.IObject, range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("setBaseWritingDirection:range:"), writingDirection, range_) -} - -// Overridden by subclasses to consolidate changes made since a previous [foundation/nsmutableattributedstring/beginediting] message and to notify any observers of the changes. [Full Topic] +// Overridden by subclasses to consolidate changes made since a previous beginEditing message and to notify any observers of the changes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1416707-endediting?language=objc func (m_ MutableAttributedString) EndEditing() { objc.Call[objc.Void](m_, objc.Sel("endEditing")) } +// Replaces the receiver’s entire contents with the characters and attributes of the given attributed string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1411894-setattributedstring?language=objc +func (m_ MutableAttributedString) SetAttributedString(attrString IAttributedString) { + objc.Call[objc.Void](m_, objc.Sel("setAttributedString:"), attrString) +} + // Removes the named attribute from the characters in the specified range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1409691-removeattribute?language=objc @@ -433,26 +378,25 @@ func (m_ MutableAttributedString) RemoveAttributeRange(name AttributedStringKey, objc.Call[objc.Void](m_, objc.Sel("removeAttribute:range:"), name, range_) } -// Sets the contents of attributed string to the contents of the specified file. [Full Topic] +// Adds an attribute with the given name and value to the characters in the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1524892-readfromurl?language=objc -func (m_ MutableAttributedString) ReadFromURLOptionsDocumentAttributesError(url IURL, opts Dictionary, dict unsafe.Pointer, error unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("readFromURL:options:documentAttributes:error:"), url, opts, dict, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1417080-addattribute?language=objc +func (m_ MutableAttributedString) AddAttributeValueRange(name AttributedStringKey, value objc.IObject, range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("addAttribute:value:range:"), name, value, range_) } -// Adds the given collection of attributes to the characters in the specified range. [Full Topic] +// Sets the attributes for the characters in the specified range to the specified attributes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1414304-addattributes?language=objc -func (m_ MutableAttributedString) AddAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("addAttributes:range:"), attrs, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1412179-setattributes?language=objc +func (m_ MutableAttributedString) SetAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("setAttributes:range:"), attrs, range_) } -// Decrements the value of the superscript attribute for characters in aRange by 1. [Full Topic] +// Increments the value of the superscript attribute for characters in aRange by 1. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1529906-subscriptrange?language=objc -func (m_ MutableAttributedString) SubscriptRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("subscriptRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1533592-superscriptrange?language=objc +func (m_ MutableAttributedString) SuperscriptRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("superscriptRange:"), range_) } // Fixes the paragraph style attributes in aRange, assigning the first paragraph style attribute value in each paragraph to all characters of the paragraph. [Full Topic] @@ -462,40 +406,18 @@ func (m_ MutableAttributedString) FixParagraphStyleAttributeInRange(range_ Range objc.Call[objc.Void](m_, objc.Sel("fixParagraphStyleAttributeInRange:"), range_) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/3746902-appendlocalizedformat?language=objc -func (m_ MutableAttributedString) AppendLocalizedFormat(format IAttributedString, args ...any) { - objc.Call[objc.Void](m_, objc.Sel("appendLocalizedFormat:"), append([]any{format}, args...)...) -} - -// Deletes the characters in the given range along with their associated attributes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1410610-deletecharactersinrange?language=objc -func (m_ MutableAttributedString) DeleteCharactersInRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("deleteCharactersInRange:"), range_) -} - -// Sets the contents of the receiver from the stream at data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1535465-readfromdata?language=objc -func (m_ MutableAttributedString) ReadFromDataOptionsDocumentAttributesError(data []byte, opts Dictionary, dict unsafe.Pointer, error unsafe.Pointer) bool { - rv := objc.Call[bool](m_, objc.Sel("readFromData:options:documentAttributes:error:"), data, opts, dict, error) - return rv -} - -// Applies the font attributes specified by mask to the characters in aRange. [Full Topic] +// Decrements the value of the superscript attribute for characters in aRange by 1. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1532734-applyfonttraits?language=objc -func (m_ MutableAttributedString) ApplyFontTraitsRange(traitMask objc.IObject, range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("applyFontTraits:range:"), traitMask, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1529906-subscriptrange?language=objc +func (m_ MutableAttributedString) SubscriptRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("subscriptRange:"), range_) } -// Adds the characters and attributes of a given attributed string to the end of the receiver. [Full Topic] +// Sets the base writing direction for the characters in range to writingDirection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1417879-appendattributedstring?language=objc -func (m_ MutableAttributedString) AppendAttributedString(attrString IAttributedString) { - objc.Call[objc.Void](m_, objc.Sel("appendAttributedString:"), attrString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1532923-setbasewritingdirection?language=objc +func (m_ MutableAttributedString) SetBaseWritingDirectionRange(writingDirection objc.IObject, range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("setBaseWritingDirection:range:"), writingDirection, range_) } // Cleans up attachment attributes in aRange, removing all attachment attributes assigned to characters other than NSAttachmentCharacter. [Full Topic] @@ -505,13 +427,6 @@ func (m_ MutableAttributedString) FixAttachmentAttributeInRange(range_ Range) { objc.Call[objc.Void](m_, objc.Sel("fixAttachmentAttributeInRange:"), range_) } -// Overridden by subclasses to buffer or optimize a series of changes to the receiver’s characters or attributes, until it receives a matching [foundation/nsmutableattributedstring/endediting] message, upon which it can consolidate changes and notify any observers that it has changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1411853-beginediting?language=objc -func (m_ MutableAttributedString) BeginEditing() { - objc.Call[objc.Void](m_, objc.Sel("beginEditing")) -} - // The character contents of the receiver as an NSMutableString object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1416955-mutablestring?language=objc diff --git a/macos/foundation/mutable_character_set.gen.go b/macos/foundation/mutable_character_set.gen.go index 9d32c95d..16fd30c1 100644 --- a/macos/foundation/mutable_character_set.gen.go +++ b/macos/foundation/mutable_character_set.gen.go @@ -18,13 +18,13 @@ type _MutableCharacterSetClass struct { // An interface definition for the [MutableCharacterSet] class. type IMutableCharacterSet interface { ICharacterSet - RemoveCharactersInRange(aRange Range) AddCharactersInRange(aRange Range) - AddCharactersInString(aString string) - RemoveCharactersInString(aString string) Invert() FormUnionWithCharacterSet(otherSet ICharacterSet) + AddCharactersInString(aString string) + RemoveCharactersInString(aString string) FormIntersectionWithCharacterSet(otherSet ICharacterSet) + RemoveCharactersInRange(aRange Range) } // An object representing a mutable set of Unicode character values for use in search operations. [Full Topic] @@ -60,13 +60,6 @@ func (m_ MutableCharacterSet) Init() MutableCharacterSet { return rv } -// Removes from the receiver the characters whose Unicode values are in a given range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1416987-removecharactersinrange?language=objc -func (m_ MutableCharacterSet) RemoveCharactersInRange(aRange Range) { - objc.Call[objc.Void](m_, objc.Sel("removeCharactersInRange:"), aRange) -} - // Adds to the receiver the characters whose Unicode values are in a given range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1412225-addcharactersinrange?language=objc @@ -74,20 +67,6 @@ func (m_ MutableCharacterSet) AddCharactersInRange(aRange Range) { objc.Call[objc.Void](m_, objc.Sel("addCharactersInRange:"), aRange) } -// Adds to the receiver the characters in a given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1413999-addcharactersinstring?language=objc -func (m_ MutableCharacterSet) AddCharactersInString(aString string) { - objc.Call[objc.Void](m_, objc.Sel("addCharactersInString:"), aString) -} - -// Removes from the receiver the characters in a given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1414812-removecharactersinstring?language=objc -func (m_ MutableCharacterSet) RemoveCharactersInString(aString string) { - objc.Call[objc.Void](m_, objc.Sel("removeCharactersInString:"), aString) -} - // Replaces all the characters in the receiver with all the characters it didn’t previously contain. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1410977-invert?language=objc @@ -102,9 +81,30 @@ func (m_ MutableCharacterSet) FormUnionWithCharacterSet(otherSet ICharacterSet) objc.Call[objc.Void](m_, objc.Sel("formUnionWithCharacterSet:"), otherSet) } +// Adds to the receiver the characters in a given string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1413999-addcharactersinstring?language=objc +func (m_ MutableCharacterSet) AddCharactersInString(aString string) { + objc.Call[objc.Void](m_, objc.Sel("addCharactersInString:"), aString) +} + +// Removes from the receiver the characters in a given string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1414812-removecharactersinstring?language=objc +func (m_ MutableCharacterSet) RemoveCharactersInString(aString string) { + objc.Call[objc.Void](m_, objc.Sel("removeCharactersInString:"), aString) +} + // Modifies the receiver so it contains only characters that exist in both the receiver and another set. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1412512-formintersectionwithcharacterset?language=objc func (m_ MutableCharacterSet) FormIntersectionWithCharacterSet(otherSet ICharacterSet) { objc.Call[objc.Void](m_, objc.Sel("formIntersectionWithCharacterSet:"), otherSet) } + +// Removes from the receiver the characters whose Unicode values are in a given range. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1416987-removecharactersinrange?language=objc +func (m_ MutableCharacterSet) RemoveCharactersInRange(aRange Range) { + objc.Call[objc.Void](m_, objc.Sel("removeCharactersInRange:"), aRange) +} diff --git a/macos/foundation/mutable_data.gen.go b/macos/foundation/mutable_data.gen.go index ab5bed7a..91fdadea 100644 --- a/macos/foundation/mutable_data.gen.go +++ b/macos/foundation/mutable_data.gen.go @@ -18,17 +18,16 @@ type _MutableDataClass struct { // An interface definition for the [MutableData] class. type IMutableData interface { IData - SetData(data []byte) - CompressUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) bool - ResetBytesInRange(range_ Range) - IncreaseLengthBy(extraLength uint) - DecompressUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) bool AppendBytesLength(bytes unsafe.Pointer, length uint) - ReplaceBytesInRangeWithBytesLength(range_ Range, replacementBytes unsafe.Pointer, replacementLength uint) - AppendData(other []byte) + CompressUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) bool ReplaceBytesInRangeWithBytes(range_ Range, bytes unsafe.Pointer) - SetLength(value uint) + SetData(data []byte) + AppendData(other []byte) + DecompressUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) bool + IncreaseLengthBy(extraLength uint) + ResetBytesInRange(range_ Range) MutableBytes() unsafe.Pointer + SetLength(value uint) } // An object representing a dynamic byte buffer in memory. [Full Topic] @@ -44,56 +43,56 @@ func MutableDataFrom(ptr unsafe.Pointer) MutableData { } } -func (m_ MutableData) InitWithCapacity(capacity uint) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithCapacity:"), capacity) +func (m_ MutableData) InitWithLength(length uint) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithLength:"), length) return rv } -// Returns an initialized mutable data object capable of holding the specified number of bytes. [Full Topic] +// Initializes and returns a mutable data object containing a given number of zeroed bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1413350-initwithcapacity?language=objc -func NewMutableDataWithCapacity(capacity uint) MutableData { - instance := MutableDataClass.Alloc().InitWithCapacity(capacity) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1413159-initwithlength?language=objc +func NewMutableDataWithLength(length uint) MutableData { + instance := MutableDataClass.Alloc().InitWithLength(length) instance.Autorelease() return instance } -func (mc _MutableDataClass) DataWithCapacity(aNumItems uint) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithCapacity:"), aNumItems) +func (mc _MutableDataClass) DataWithLength(length uint) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithLength:"), length) return rv } -// Creates and returns a mutable data object capable of holding the specified number of bytes. [Full Topic] +// Creates and returns an mutable data object containing a given number of zeroed bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1547236-datawithcapacity?language=objc -func MutableData_DataWithCapacity(aNumItems uint) MutableData { - return MutableDataClass.DataWithCapacity(aNumItems) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1547233-datawithlength?language=objc +func MutableData_DataWithLength(length uint) MutableData { + return MutableDataClass.DataWithLength(length) } -func (m_ MutableData) InitWithLength(length uint) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithLength:"), length) +func (m_ MutableData) InitWithCapacity(capacity uint) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithCapacity:"), capacity) return rv } -// Initializes and returns a mutable data object containing a given number of zeroed bytes. [Full Topic] +// Returns an initialized mutable data object capable of holding the specified number of bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1413159-initwithlength?language=objc -func NewMutableDataWithLength(length uint) MutableData { - instance := MutableDataClass.Alloc().InitWithLength(length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1413350-initwithcapacity?language=objc +func NewMutableDataWithCapacity(capacity uint) MutableData { + instance := MutableDataClass.Alloc().InitWithCapacity(capacity) instance.Autorelease() return instance } -func (mc _MutableDataClass) DataWithLength(length uint) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithLength:"), length) +func (mc _MutableDataClass) DataWithCapacity(aNumItems uint) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithCapacity:"), aNumItems) return rv } -// Creates and returns an mutable data object containing a given number of zeroed bytes. [Full Topic] +// Creates and returns a mutable data object capable of holding the specified number of bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1547233-datawithlength?language=objc -func MutableData_DataWithLength(length uint) MutableData { - return MutableDataClass.DataWithLength(length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1547236-datawithcapacity?language=objc +func MutableData_DataWithCapacity(aNumItems uint) MutableData { + return MutableDataClass.DataWithCapacity(aNumItems) } func (mc _MutableDataClass) Alloc() MutableData { @@ -116,92 +115,56 @@ func (m_ MutableData) Init() MutableData { return rv } -func (mc _MutableDataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) - return rv -} - -// Creates a data object by reading every byte from the file at a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547244-datawithcontentsoffile?language=objc -func MutableData_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { - return MutableDataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) -} - -func (m_ MutableData) InitWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithBytesNoCopy:length:"), bytes, length) +func (m_ MutableData) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) return rv } -// Initializes a data object filled with a given number of bytes of data from a given buffer. [Full Topic] +// Initializes a data object with the content of the file at a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1409454-initwithbytesnocopy?language=objc -func NewMutableDataWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) MutableData { - instance := MutableDataClass.Alloc().InitWithBytesNoCopyLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1411145-initwithcontentsoffile?language=objc +func NewMutableDataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { + instance := MutableDataClass.Alloc().InitWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) instance.Autorelease() return instance } -func (mc _MutableDataClass) DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithBytesNoCopy:length:freeWhenDone:"), bytes, length, b) - return rv -} - -// Creates a data object that holds a given number of bytes from a given buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547240-datawithbytesnocopy?language=objc -func MutableData_DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) MutableData { - return MutableDataClass.DataWithBytesNoCopyLengthFreeWhenDone(bytes, length, b) -} - -func (mc _MutableDataClass) DataWithData(data []byte) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithData:"), data) +func (m_ MutableData) CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, error) return rv } -// Creates a data object containing the contents of another data object. [Full Topic] +// Returns a new data object by compressing the data object’s bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547230-datawithdata?language=objc -func MutableData_DataWithData(data []byte) MutableData { - return MutableDataClass.DataWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc +func MutableData_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) MutableData { + instance := MutableDataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) + instance.Autorelease() + return instance } -func (mc _MutableDataClass) DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfURL:options:error:"), url, readOptionsMask, errorPtr) +func (mc _MutableDataClass) DataWithContentsOfURL(url IURL) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfURL:"), url) return rv } // Creates a data object containing the data from the location specified by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547238-datawithcontentsofurl?language=objc -func MutableData_DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { - return MutableDataClass.DataWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) -} - -func (m_ MutableData) InitWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithBase64EncodedString:options:"), base64String, options) - return rv -} - -// Initializes a data object with the given Base64 encoded string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1410081-initwithbase64encodedstring?language=objc -func NewMutableDataWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) MutableData { - instance := MutableDataClass.Alloc().InitWithBase64EncodedStringOptions(base64String, options) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547245-datawithcontentsofurl?language=objc +func MutableData_DataWithContentsOfURL(url IURL) MutableData { + return MutableDataClass.DataWithContentsOfURL(url) } -func (m_ MutableData) InitWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithBytes:length:"), bytes, length) +func (m_ MutableData) InitWithData(data []byte) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithData:"), data) return rv } -// Initializes a data object filled with a given number of bytes copied from a given buffer. [Full Topic] +// Initializes a data object with the contents of another data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1412793-initwithbytes?language=objc -func NewMutableDataWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { - instance := MutableDataClass.Alloc().InitWithBytesLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417055-initwithdata?language=objc +func NewMutableDataWithData(data []byte) MutableData { + instance := MutableDataClass.Alloc().InitWithData(data) instance.Autorelease() return instance } @@ -220,70 +183,40 @@ func NewMutableDataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, lengt return instance } -func (m_ MutableData) InitWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfURL:options:error:"), url, readOptionsMask, errorPtr) - return rv -} - -// Initializes a data object with the data from the location specified by a given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1407864-initwithcontentsofurl?language=objc -func NewMutableDataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { - instance := MutableDataClass.Alloc().InitWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) - instance.Autorelease() - return instance -} - -func (m_ MutableData) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) - return rv -} - -// Initializes a data object with the content of the file at a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1411145-initwithcontentsoffile?language=objc -func NewMutableDataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { - instance := MutableDataClass.Alloc().InitWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) - instance.Autorelease() - return instance -} - -func (mc _MutableDataClass) DataWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithBytesNoCopy:length:"), bytes, length) +func (mc _MutableDataClass) DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithBytesNoCopy:length:freeWhenDone:"), bytes, length, b) return rv } // Creates a data object that holds a given number of bytes from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547229-datawithbytesnocopy?language=objc -func MutableData_DataWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) MutableData { - return MutableDataClass.DataWithBytesNoCopyLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547240-datawithbytesnocopy?language=objc +func MutableData_DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) MutableData { + return MutableDataClass.DataWithBytesNoCopyLengthFreeWhenDone(bytes, length, b) } -func (m_ MutableData) InitWithContentsOfURL(url IURL) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfURL:"), url) +func (mc _MutableDataClass) DataWithData(data []byte) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithData:"), data) return rv } -// Initializes a data object with the data from the location specified by a given URL. [Full Topic] +// Creates a data object containing the contents of another data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1413892-initwithcontentsofurl?language=objc -func NewMutableDataWithContentsOfURL(url IURL) MutableData { - instance := MutableDataClass.Alloc().InitWithContentsOfURL(url) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547230-datawithdata?language=objc +func MutableData_DataWithData(data []byte) MutableData { + return MutableDataClass.DataWithData(data) } -func (mc _MutableDataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithBytes:length:"), bytes, length) +func (mc _MutableDataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) return rv } -// Creates a data object containing a given number of bytes copied from a given buffer. [Full Topic] +// Creates a data object by reading every byte from the file at a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547231-datawithbytes?language=objc -func MutableData_DataWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { - return MutableDataClass.DataWithBytesLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547244-datawithcontentsoffile?language=objc +func MutableData_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) MutableData { + return MutableDataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) } func (mc _MutableDataClass) Data() MutableData { @@ -298,119 +231,93 @@ func MutableData_Data() MutableData { return MutableDataClass.Data() } -func (m_ MutableData) InitWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithBase64EncodedData:options:"), base64Data, options) +func (m_ MutableData) InitWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithBytes:length:"), bytes, length) return rv } -// Initializes a data object with the given Base64 encoded data. [Full Topic] +// Initializes a data object filled with a given number of bytes copied from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417833-initwithbase64encodeddata?language=objc -func NewMutableDataWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) MutableData { - instance := MutableDataClass.Alloc().InitWithBase64EncodedDataOptions(base64Data, options) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1412793-initwithbytes?language=objc +func NewMutableDataWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { + instance := MutableDataClass.Alloc().InitWithBytesLength(bytes, length) instance.Autorelease() return instance } -func (m_ MutableData) InitWithContentsOfFile(path string) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfFile:"), path) +func (m_ MutableData) InitWithContentsOfURL(url IURL) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfURL:"), url) return rv } -// Initializes a data object with the content of the file at a given path. [Full Topic] +// Initializes a data object with the data from the location specified by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1408672-initwithcontentsoffile?language=objc -func NewMutableDataWithContentsOfFile(path string) MutableData { - instance := MutableDataClass.Alloc().InitWithContentsOfFile(path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1413892-initwithcontentsofurl?language=objc +func NewMutableDataWithContentsOfURL(url IURL) MutableData { + instance := MutableDataClass.Alloc().InitWithContentsOfURL(url) instance.Autorelease() return instance } -func (m_ MutableData) InitWithBytesNoCopyLengthDeallocator(bytes unsafe.Pointer, length uint, deallocator func(bytes unsafe.Pointer, length uint)) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithBytesNoCopy:length:deallocator:"), bytes, length, deallocator) +func (m_ MutableData) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, error) return rv } -// Initializes a data object filled with a given number of bytes of data from a given buffer, with a custom deallocator block. [Full Topic] +// Returns a new data object by decompressing data object’s bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417337-initwithbytesnocopy?language=objc -func NewMutableDataWithBytesNoCopyLengthDeallocator(bytes unsafe.Pointer, length uint, deallocator func(bytes unsafe.Pointer, length uint)) MutableData { - instance := MutableDataClass.Alloc().InitWithBytesNoCopyLengthDeallocator(bytes, length, deallocator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174961-decompresseddatausingalgorithm?language=objc +func MutableData_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) MutableData { + instance := MutableDataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) instance.Autorelease() return instance } -func (mc _MutableDataClass) DataWithContentsOfFile(path string) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfFile:"), path) - return rv -} - -// Creates a data object by reading every byte from the file at a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547226-datawithcontentsoffile?language=objc -func MutableData_DataWithContentsOfFile(path string) MutableData { - return MutableDataClass.DataWithContentsOfFile(path) -} - -func (m_ MutableData) InitWithData(data []byte) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithData:"), data) +func (m_ MutableData) InitWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithBase64EncodedData:options:"), base64Data, options) return rv } -// Initializes a data object with the contents of another data object. [Full Topic] +// Initializes a data object with the given Base64 encoded data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417055-initwithdata?language=objc -func NewMutableDataWithData(data []byte) MutableData { - instance := MutableDataClass.Alloc().InitWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417833-initwithbase64encodeddata?language=objc +func NewMutableDataWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) MutableData { + instance := MutableDataClass.Alloc().InitWithBase64EncodedDataOptions(base64Data, options) instance.Autorelease() return instance } -func (mc _MutableDataClass) DataWithContentsOfURL(url IURL) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfURL:"), url) - return rv -} - -// Creates a data object containing the data from the location specified by a given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547245-datawithcontentsofurl?language=objc -func MutableData_DataWithContentsOfURL(url IURL) MutableData { - return MutableDataClass.DataWithContentsOfURL(url) -} - -func (m_ MutableData) CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, error) +func (m_ MutableData) InitWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithBase64EncodedString:options:"), base64String, options) return rv } -// Returns a new data object by compressing the data object’s bytes. [Full Topic] +// Initializes a data object with the given Base64 encoded string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc -func MutableData_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) MutableData { - instance := MutableDataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1410081-initwithbase64encodedstring?language=objc +func NewMutableDataWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) MutableData { + instance := MutableDataClass.Alloc().InitWithBase64EncodedStringOptions(base64String, options) instance.Autorelease() return instance } -func (m_ MutableData) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, error) +func (mc _MutableDataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithBytes:length:"), bytes, length) return rv } -// Returns a new data object by decompressing data object’s bytes. [Full Topic] +// Creates a data object containing a given number of bytes copied from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174961-decompresseddatausingalgorithm?language=objc -func MutableData_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) MutableData { - instance := MutableDataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547231-datawithbytes?language=objc +func MutableData_DataWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { + return MutableDataClass.DataWithBytesLength(bytes, length) } -// Replaces the entire contents of the receiver with the contents of another data object. [Full Topic] +// Appends to the receiver a given number of bytes from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1417012-setdata?language=objc -func (m_ MutableData) SetData(data []byte) { - objc.Call[objc.Void](m_, objc.Sel("setData:"), data) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1407704-appendbytes?language=objc +func (m_ MutableData) AppendBytesLength(bytes unsafe.Pointer, length uint) { + objc.Call[objc.Void](m_, objc.Sel("appendBytes:length:"), bytes, length) } // Compresses the data object’s bytes using an algorithm that you specify. [Full Topic] @@ -421,18 +328,25 @@ func (m_ MutableData) CompressUsingAlgorithmError(algorithm DataCompressionAlgor return rv } -// Replaces with zeroes the contents of the receiver in a given range. [Full Topic] +// Replaces with a given set of bytes a given range within the contents of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1415526-resetbytesinrange?language=objc -func (m_ MutableData) ResetBytesInRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("resetBytesInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1414281-replacebytesinrange?language=objc +func (m_ MutableData) ReplaceBytesInRangeWithBytes(range_ Range, bytes unsafe.Pointer) { + objc.Call[objc.Void](m_, objc.Sel("replaceBytesInRange:withBytes:"), range_, bytes) } -// Increases the length of the receiver by a given number of bytes. [Full Topic] +// Replaces the entire contents of the receiver with the contents of another data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1416186-increaselengthby?language=objc -func (m_ MutableData) IncreaseLengthBy(extraLength uint) { - objc.Call[objc.Void](m_, objc.Sel("increaseLengthBy:"), extraLength) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1417012-setdata?language=objc +func (m_ MutableData) SetData(data []byte) { + objc.Call[objc.Void](m_, objc.Sel("setData:"), data) +} + +// Appends the content of another data object to the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1410724-appenddata?language=objc +func (m_ MutableData) AppendData(other []byte) { + objc.Call[objc.Void](m_, objc.Sel("appendData:"), other) } // Decompresses the data object’s bytes. [Full Topic] @@ -443,32 +357,26 @@ func (m_ MutableData) DecompressUsingAlgorithmError(algorithm DataCompressionAlg return rv } -// Appends to the receiver a given number of bytes from a given buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1407704-appendbytes?language=objc -func (m_ MutableData) AppendBytesLength(bytes unsafe.Pointer, length uint) { - objc.Call[objc.Void](m_, objc.Sel("appendBytes:length:"), bytes, length) -} - -// Replaces with a given set of bytes a given range within the contents of the receiver. [Full Topic] +// Increases the length of the receiver by a given number of bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1412428-replacebytesinrange?language=objc -func (m_ MutableData) ReplaceBytesInRangeWithBytesLength(range_ Range, replacementBytes unsafe.Pointer, replacementLength uint) { - objc.Call[objc.Void](m_, objc.Sel("replaceBytesInRange:withBytes:length:"), range_, replacementBytes, replacementLength) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1416186-increaselengthby?language=objc +func (m_ MutableData) IncreaseLengthBy(extraLength uint) { + objc.Call[objc.Void](m_, objc.Sel("increaseLengthBy:"), extraLength) } -// Appends the content of another data object to the receiver. [Full Topic] +// Replaces with zeroes the contents of the receiver in a given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1410724-appenddata?language=objc -func (m_ MutableData) AppendData(other []byte) { - objc.Call[objc.Void](m_, objc.Sel("appendData:"), other) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1415526-resetbytesinrange?language=objc +func (m_ MutableData) ResetBytesInRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("resetBytesInRange:"), range_) } -// Replaces with a given set of bytes a given range within the contents of the receiver. [Full Topic] +// A pointer to the data contained by the mutable data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1414281-replacebytesinrange?language=objc -func (m_ MutableData) ReplaceBytesInRangeWithBytes(range_ Range, bytes unsafe.Pointer) { - objc.Call[objc.Void](m_, objc.Sel("replaceBytesInRange:withBytes:"), range_, bytes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1410770-mutablebytes?language=objc +func (m_ MutableData) MutableBytes() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](m_, objc.Sel("mutableBytes")) + return rv } // The number of bytes contained in the mutable data object. [Full Topic] @@ -477,11 +385,3 @@ func (m_ MutableData) ReplaceBytesInRangeWithBytes(range_ Range, bytes unsafe.Po func (m_ MutableData) SetLength(value uint) { objc.Call[objc.Void](m_, objc.Sel("setLength:"), value) } - -// A pointer to the data contained by the mutable data object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1410770-mutablebytes?language=objc -func (m_ MutableData) MutableBytes() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](m_, objc.Sel("mutableBytes")) - return rv -} diff --git a/macos/foundation/mutable_dictionary.gen.go b/macos/foundation/mutable_dictionary.gen.go index 6038c315..95955935 100644 --- a/macos/foundation/mutable_dictionary.gen.go +++ b/macos/foundation/mutable_dictionary.gen.go @@ -18,39 +18,37 @@ type _MutableDictionaryClass struct { // An interface definition for the [MutableDictionary] class. type IMutableDictionary interface { IDictionary - AddLengthHeader(length uint32) objc.Object - AddTypeHeader(type_ string) objc.Object + AddWhoHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object + InitWithContentsOfFile(path string) MutableDictionary + AddAuthorizationResponseHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object + AddApplicationParameterHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object GetHeaderBytes() MutableData AddTargetHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - AddObjectClassHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - AddCountHeader(inCount uint32) objc.Object - SetObjectForKeyedSubscript(obj objc.IObject, key PCopying) - SetObjectForKeyedSubscriptObject(obj objc.IObject, keyObject objc.IObject) AddConnectionIDHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - AddByteSequenceHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - AddWhoHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object + AddImageHandleHeader(type_ string) objc.Object AddImageDescriptorHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - AddTime4ByteHeader(time4Byte uint32) objc.Object - InitWithContentsOfURL(url IURL) MutableDictionary - AddBodyHeaderLengthEndOfBody(inHeaderData unsafe.Pointer, inHeaderDataLength uint32, isEndOfBody bool) objc.Object - AddAuthorizationChallengeHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object + AddLengthHeader(length uint32) objc.Object AddEntriesFromDictionary(otherDictionary Dictionary) - AddHTTPHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - AddUserDefinedHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - SetValueForKey(value objc.IObject, key string) - AddAuthorizationResponseHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - AddApplicationParameterHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - RemoveAllObjects() - AddDescriptionHeader(inDescriptionString string) objc.Object - InitWithContentsOfFile(path string) MutableDictionary - RemoveObjectsForKeys(keyArray []objc.IObject) - RemoveObjectForKey(aKey objc.IObject) + AddObjectClassHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object + SetDictionary(otherDictionary Dictionary) SetObjectForKey(anObject objc.IObject, aKey PCopying) SetObjectForKeyObject(anObject objc.IObject, aKeyObject objc.IObject) AddTimeISOHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - AddImageHandleHeader(type_ string) objc.Object + AddTypeHeader(type_ string) objc.Object + RemoveObjectsForKeys(keyArray []objc.IObject) + AddAuthorizationChallengeHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object + InitWithContentsOfURL(url IURL) MutableDictionary + AddBodyHeaderLengthEndOfBody(inHeaderData unsafe.Pointer, inHeaderDataLength uint32, isEndOfBody bool) objc.Object + AddTime4ByteHeader(time4Byte uint32) objc.Object + AddDescriptionHeader(inDescriptionString string) objc.Object + RemoveObjectForKey(aKey objc.IObject) + AddUserDefinedHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object AddNameHeader(inNameString string) objc.Object - SetDictionary(otherDictionary Dictionary) + AddCountHeader(inCount uint32) objc.Object + AddByteSequenceHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object + SetValueForKey(value objc.IObject, key string) + AddHTTPHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object + RemoveAllObjects() } // A dynamic collection of objects associated with unique keys. [Full Topic] @@ -66,18 +64,6 @@ func MutableDictionaryFrom(ptr unsafe.Pointer) MutableDictionary { } } -func (mc _MutableDictionaryClass) DictionaryWithOBEXHeadersDataHeadersDataSize(inHeadersData unsafe.Pointer, inDataSize uint) MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithOBEXHeadersData:headersDataSize:"), inHeadersData, inDataSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1429768-dictionarywithobexheadersdata?language=objc -func MutableDictionary_DictionaryWithOBEXHeadersDataHeadersDataSize(inHeadersData unsafe.Pointer, inDataSize uint) MutableDictionary { - return MutableDictionaryClass.DictionaryWithOBEXHeadersDataHeadersDataSize(inHeadersData, inDataSize) -} - func (m_ MutableDictionary) InitWithCapacity(numItems uint) MutableDictionary { rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithCapacity:"), numItems) return rv @@ -92,16 +78,16 @@ func NewMutableDictionaryWithCapacity(numItems uint) MutableDictionary { return instance } -func (mc _MutableDictionaryClass) DictionaryWithCapacity(numItems uint) MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithCapacity:"), numItems) +func (mc _MutableDictionaryClass) DictionaryWithOBEXHeadersData(inHeadersData []byte) MutableDictionary { + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithOBEXHeadersData:"), inHeadersData) return rv } -// Creates and returns a mutable dictionary, initially giving it enough allocated memory to hold a given number of entries. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574186-dictionarywithcapacity?language=objc -func MutableDictionary_DictionaryWithCapacity(numItems uint) MutableDictionary { - return MutableDictionaryClass.DictionaryWithCapacity(numItems) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1428433-dictionarywithobexheadersdata?language=objc +func MutableDictionary_DictionaryWithOBEXHeadersData(inHeadersData []byte) MutableDictionary { + return MutableDictionaryClass.DictionaryWithOBEXHeadersData(inHeadersData) } func (m_ MutableDictionary) Init() MutableDictionary { @@ -109,16 +95,16 @@ func (m_ MutableDictionary) Init() MutableDictionary { return rv } -func (mc _MutableDictionaryClass) DictionaryWithOBEXHeadersData(inHeadersData []byte) MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithOBEXHeadersData:"), inHeadersData) +func (mc _MutableDictionaryClass) DictionaryWithCapacity(numItems uint) MutableDictionary { + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithCapacity:"), numItems) return rv } -// [Full Topic] +// Creates and returns a mutable dictionary, initially giving it enough allocated memory to hold a given number of entries. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1428433-dictionarywithobexheadersdata?language=objc -func MutableDictionary_DictionaryWithOBEXHeadersData(inHeadersData []byte) MutableDictionary { - return MutableDictionaryClass.DictionaryWithOBEXHeadersData(inHeadersData) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574186-dictionarywithcapacity?language=objc +func MutableDictionary_DictionaryWithCapacity(numItems uint) MutableDictionary { + return MutableDictionaryClass.DictionaryWithCapacity(numItems) } func (mc _MutableDictionaryClass) Alloc() MutableDictionary { @@ -136,30 +122,16 @@ func NewMutableDictionary() MutableDictionary { return MutableDictionaryClass.New() } -func (m_ MutableDictionary) InitWithDictionary(otherDictionary Dictionary) MutableDictionary { - rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithDictionary:"), otherDictionary) - return rv -} - -// Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1418434-initwithdictionary?language=objc -func NewMutableDictionaryWithDictionary(otherDictionary Dictionary) MutableDictionary { - instance := MutableDictionaryClass.Alloc().InitWithDictionary(otherDictionary) - instance.Autorelease() - return instance -} - -func (mc _MutableDictionaryClass) DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObjectsAndKeys:"), append([]any{firstObject}, args...)...) +func (mc _MutableDictionaryClass) DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) MutableDictionary { + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObjects:forKeys:"), objects, keys) return rv } -// Creates a dictionary containing entries constructed from the specified set of values and keys. [Full Topic] +// Creates a dictionary containing entries constructed from the contents of an array of keys and an array of values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574181-dictionarywithobjectsandkeys?language=objc -func MutableDictionary_DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) MutableDictionary { - return MutableDictionaryClass.DictionaryWithObjectsAndKeys(firstObject, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574183-dictionarywithobjects?language=objc +func MutableDictionary_DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) MutableDictionary { + return MutableDictionaryClass.DictionaryWithObjectsForKeys(objects, keys) } func (m_ MutableDictionary) InitWithObjectsAndKeys(firstObject objc.IObject, args ...any) MutableDictionary { @@ -176,31 +148,6 @@ func NewMutableDictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...an return instance } -func (mc _MutableDictionaryClass) DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObjects:forKeys:"), objects, keys) - return rv -} - -// Creates a dictionary containing entries constructed from the contents of an array of keys and an array of values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574183-dictionarywithobjects?language=objc -func MutableDictionary_DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) MutableDictionary { - return MutableDictionaryClass.DictionaryWithObjectsForKeys(objects, keys) -} - -func (mc _MutableDictionaryClass) DictionaryWithObjectsForKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, cnt uint) MutableDictionary { - po1 := objc.WrapAsProtocol("NSCopying", keys) - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObjects:forKeys:count:"), objects, po1, cnt) - return rv -} - -// Creates a dictionary containing a specified number of objects from a C array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574184-dictionarywithobjects?language=objc -func MutableDictionary_DictionaryWithObjectsForKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, cnt uint) MutableDictionary { - return MutableDictionaryClass.DictionaryWithObjectsForKeysCount(objects, keys, cnt) -} - func (m_ MutableDictionary) InitWithObjectsForKeys(objects []objc.IObject, keys []PCopying) MutableDictionary { rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithObjects:forKeys:"), objects, keys) return rv @@ -215,45 +162,41 @@ func NewMutableDictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopy return instance } -func (mc _MutableDictionaryClass) Dictionary() MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionary")) +func (mc _MutableDictionaryClass) DictionaryWithObjectForKey(object objc.IObject, key PCopying) MutableDictionary { + po1 := objc.WrapAsProtocol("NSCopying", key) + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObject:forKey:"), object, po1) return rv } -// Creates an empty dictionary. [Full Topic] +// Creates a dictionary containing a given key and value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574180-dictionary?language=objc -func MutableDictionary_Dictionary() MutableDictionary { - return MutableDictionaryClass.Dictionary() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1414965-dictionarywithobject?language=objc +func MutableDictionary_DictionaryWithObjectForKey(object objc.IObject, key PCopying) MutableDictionary { + return MutableDictionaryClass.DictionaryWithObjectForKey(object, key) } -func (m_ MutableDictionary) InitWithDictionaryCopyItems(otherDictionary Dictionary, flag bool) MutableDictionary { - rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithDictionary:copyItems:"), otherDictionary, flag) +func (mc _MutableDictionaryClass) Dictionary() MutableDictionary { + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionary")) return rv } -// Initializes a newly allocated dictionary using the objects contained in another given dictionary. [Full Topic] +// Creates an empty dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1410124-initwithdictionary?language=objc -func NewMutableDictionaryWithDictionaryCopyItems(otherDictionary Dictionary, flag bool) MutableDictionary { - instance := MutableDictionaryClass.Alloc().InitWithDictionaryCopyItems(otherDictionary, flag) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574180-dictionary?language=objc +func MutableDictionary_Dictionary() MutableDictionary { + return MutableDictionaryClass.Dictionary() } -func (m_ MutableDictionary) InitWithObjectsForKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, cnt uint) MutableDictionary { - po1 := objc.WrapAsProtocol("NSCopying", keys) - rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithObjects:forKeys:count:"), objects, po1, cnt) +func (mc _MutableDictionaryClass) DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) MutableDictionary { + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObjectsAndKeys:"), append([]any{firstObject}, args...)...) return rv } -// Initializes a newly allocated dictionary with the specified number of key-value pairs constructed from the provided C arrays of keys and objects. [Full Topic] +// Creates a dictionary containing entries constructed from the specified set of values and keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1412631-initwithobjects?language=objc -func NewMutableDictionaryWithObjectsForKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, cnt uint) MutableDictionary { - instance := MutableDictionaryClass.Alloc().InitWithObjectsForKeysCount(objects, keys, cnt) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574181-dictionarywithobjectsandkeys?language=objc +func MutableDictionary_DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) MutableDictionary { + return MutableDictionaryClass.DictionaryWithObjectsAndKeys(firstObject, args...) } func (mc _MutableDictionaryClass) DictionaryWithDictionary(dict Dictionary) MutableDictionary { @@ -268,32 +211,49 @@ func MutableDictionary_DictionaryWithDictionary(dict Dictionary) MutableDictiona return MutableDictionaryClass.DictionaryWithDictionary(dict) } -func (mc _MutableDictionaryClass) DictionaryWithObjectForKey(object objc.IObject, key PCopying) MutableDictionary { - po1 := objc.WrapAsProtocol("NSCopying", key) - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObject:forKey:"), object, po1) +func (m_ MutableDictionary) InitWithDictionary(otherDictionary Dictionary) MutableDictionary { + rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithDictionary:"), otherDictionary) return rv } -// Creates a dictionary containing a given key and value. [Full Topic] +// Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1414965-dictionarywithobject?language=objc -func MutableDictionary_DictionaryWithObjectForKey(object objc.IObject, key PCopying) MutableDictionary { - return MutableDictionaryClass.DictionaryWithObjectForKey(object, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1418434-initwithdictionary?language=objc +func NewMutableDictionaryWithDictionary(otherDictionary Dictionary) MutableDictionary { + instance := MutableDictionaryClass.Alloc().InitWithDictionary(otherDictionary) + instance.Autorelease() + return instance } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433652-addlengthheader?language=objc -func (m_ MutableDictionary) AddLengthHeader(length uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addLengthHeader:"), length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433510-addwhoheader?language=objc +func (m_ MutableDictionary) AddWhoHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addWhoHeader:length:"), inHeaderData, inHeaderDataLength) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433211-addtypeheader?language=objc -func (m_ MutableDictionary) AddTypeHeader(type_ string) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addTypeHeader:"), type_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1407593-initwithcontentsoffile?language=objc +func (m_ MutableDictionary) InitWithContentsOfFile(path string) MutableDictionary { + rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithContentsOfFile:"), path) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1432339-addauthorizationresponseheader?language=objc +func (m_ MutableDictionary) AddAuthorizationResponseHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addAuthorizationResponseHeader:length:"), inHeaderData, inHeaderDataLength) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1431956-addapplicationparameterheader?language=objc +func (m_ MutableDictionary) AddApplicationParameterHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addApplicationParameterHeader:length:"), inHeaderData, inHeaderDataLength) return rv } @@ -315,51 +275,88 @@ func (m_ MutableDictionary) AddTargetHeaderLength(inHeaderData unsafe.Pointer, i // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1434696-addobjectclassheader?language=objc -func (m_ MutableDictionary) AddObjectClassHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addObjectClassHeader:length:"), inHeaderData, inHeaderDataLength) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1430403-addconnectionidheader?language=objc +func (m_ MutableDictionary) AddConnectionIDHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addConnectionIDHeader:length:"), inHeaderData, inHeaderDataLength) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433317-addcountheader?language=objc -func (m_ MutableDictionary) AddCountHeader(inCount uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addCountHeader:"), inCount) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1430878-addimagehandleheader?language=objc +func (m_ MutableDictionary) AddImageHandleHeader(type_ string) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addImageHandleHeader:"), type_) return rv } -// Adds a given key-value pair to the dictionary. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574187-setobject?language=objc -func (m_ MutableDictionary) SetObjectForKeyedSubscript(obj objc.IObject, key PCopying) { - po1 := objc.WrapAsProtocol("NSCopying", key) - objc.Call[objc.Void](m_, objc.Sel("setObject:forKeyedSubscript:"), obj, po1) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1429678-addimagedescriptorheader?language=objc +func (m_ MutableDictionary) AddImageDescriptorHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addImageDescriptorHeader:length:"), inHeaderData, inHeaderDataLength) + return rv } -// Adds a given key-value pair to the dictionary. [Full Topic] +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433652-addlengthheader?language=objc +func (m_ MutableDictionary) AddLengthHeader(length uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addLengthHeader:"), length) + return rv +} + +// Adds to the receiving dictionary the entries from another dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574187-setobject?language=objc -func (m_ MutableDictionary) SetObjectForKeyedSubscriptObject(obj objc.IObject, keyObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setObject:forKeyedSubscript:"), obj, keyObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1411035-addentriesfromdictionary?language=objc +func (m_ MutableDictionary) AddEntriesFromDictionary(otherDictionary Dictionary) { + objc.Call[objc.Void](m_, objc.Sel("addEntriesFromDictionary:"), otherDictionary) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1430403-addconnectionidheader?language=objc -func (m_ MutableDictionary) AddConnectionIDHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addConnectionIDHeader:length:"), inHeaderData, inHeaderDataLength) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1434696-addobjectclassheader?language=objc +func (m_ MutableDictionary) AddObjectClassHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addObjectClassHeader:length:"), inHeaderData, inHeaderDataLength) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1428676-addbytesequenceheader?language=objc -func (m_ MutableDictionary) AddByteSequenceHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addByteSequenceHeader:length:"), inHeaderData, inHeaderDataLength) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574188-dictionarywithcontentsoffile?language=objc +func (mc _MutableDictionaryClass) DictionaryWithContentsOfFile(path string) MutableDictionary { + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithContentsOfFile:"), path) return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574188-dictionarywithcontentsoffile?language=objc +func MutableDictionary_DictionaryWithContentsOfFile(path string) MutableDictionary { + return MutableDictionaryClass.DictionaryWithContentsOfFile(path) +} + +// Sets the contents of the receiving dictionary to entries in a given dictionary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1409566-setdictionary?language=objc +func (m_ MutableDictionary) SetDictionary(otherDictionary Dictionary) { + objc.Call[objc.Void](m_, objc.Sel("setDictionary:"), otherDictionary) +} + +// Adds a given key-value pair to the dictionary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1411616-setobject?language=objc +func (m_ MutableDictionary) SetObjectForKey(anObject objc.IObject, aKey PCopying) { + po1 := objc.WrapAsProtocol("NSCopying", aKey) + objc.Call[objc.Void](m_, objc.Sel("setObject:forKey:"), anObject, po1) +} + +// Adds a given key-value pair to the dictionary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1411616-setobject?language=objc +func (m_ MutableDictionary) SetObjectForKeyObject(anObject objc.IObject, aKeyObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setObject:forKey:"), anObject, aKeyObject) +} + // Creates a mutable dictionary which is optimized for dealing with a known set of keys. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1412658-dictionarywithsharedkeyset?language=objc @@ -377,25 +374,32 @@ func MutableDictionary_DictionaryWithSharedKeySet(keyset objc.IObject) MutableDi // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433510-addwhoheader?language=objc -func (m_ MutableDictionary) AddWhoHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addWhoHeader:length:"), inHeaderData, inHeaderDataLength) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1428661-addtimeisoheader?language=objc +func (m_ MutableDictionary) AddTimeISOHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addTimeISOHeader:length:"), inHeaderData, inHeaderDataLength) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1429678-addimagedescriptorheader?language=objc -func (m_ MutableDictionary) AddImageDescriptorHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addImageDescriptorHeader:length:"), inHeaderData, inHeaderDataLength) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433211-addtypeheader?language=objc +func (m_ MutableDictionary) AddTypeHeader(type_ string) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addTypeHeader:"), type_) return rv } +// Removes from the dictionary entries specified by elements in a given array. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1410430-removeobjectsforkeys?language=objc +func (m_ MutableDictionary) RemoveObjectsForKeys(keyArray []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectsForKeys:"), keyArray) +} + // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433527-addtime4byteheader?language=objc -func (m_ MutableDictionary) AddTime4ByteHeader(time4Byte uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addTime4ByteHeader:"), time4Byte) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433422-addauthorizationchallengeheader?language=objc +func (m_ MutableDictionary) AddAuthorizationChallengeHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addAuthorizationChallengeHeader:length:"), inHeaderData, inHeaderDataLength) return rv } @@ -417,65 +421,27 @@ func (m_ MutableDictionary) AddBodyHeaderLengthEndOfBody(inHeaderData unsafe.Poi // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433422-addauthorizationchallengeheader?language=objc -func (m_ MutableDictionary) AddAuthorizationChallengeHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addAuthorizationChallengeHeader:length:"), inHeaderData, inHeaderDataLength) - return rv -} - -// Adds to the receiving dictionary the entries from another dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1411035-addentriesfromdictionary?language=objc -func (m_ MutableDictionary) AddEntriesFromDictionary(otherDictionary Dictionary) { - objc.Call[objc.Void](m_, objc.Sel("addEntriesFromDictionary:"), otherDictionary) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1434484-addhttpheader?language=objc -func (m_ MutableDictionary) AddHTTPHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addHTTPHeader:length:"), inHeaderData, inHeaderDataLength) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574182-dictionarywithcontentsofurl?language=objc +func (mc _MutableDictionaryClass) DictionaryWithContentsOfURL(url IURL) MutableDictionary { + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithContentsOfURL:"), url) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1434461-adduserdefinedheader?language=objc -func (m_ MutableDictionary) AddUserDefinedHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addUserDefinedHeader:length:"), inHeaderData, inHeaderDataLength) - return rv -} - -// Adds a given key-value pair to the dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1416335-setvalue?language=objc -func (m_ MutableDictionary) SetValueForKey(value objc.IObject, key string) { - objc.Call[objc.Void](m_, objc.Sel("setValue:forKey:"), value, key) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1432339-addauthorizationresponseheader?language=objc -func (m_ MutableDictionary) AddAuthorizationResponseHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addAuthorizationResponseHeader:length:"), inHeaderData, inHeaderDataLength) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574182-dictionarywithcontentsofurl?language=objc +func MutableDictionary_DictionaryWithContentsOfURL(url IURL) MutableDictionary { + return MutableDictionaryClass.DictionaryWithContentsOfURL(url) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1431956-addapplicationparameterheader?language=objc -func (m_ MutableDictionary) AddApplicationParameterHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addApplicationParameterHeader:length:"), inHeaderData, inHeaderDataLength) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433527-addtime4byteheader?language=objc +func (m_ MutableDictionary) AddTime4ByteHeader(time4Byte uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addTime4ByteHeader:"), time4Byte) return rv } -// Empties the dictionary of its entries. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1408955-removeallobjects?language=objc -func (m_ MutableDictionary) RemoveAllObjects() { - objc.Call[objc.Void](m_, objc.Sel("removeAllObjects")) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1434905-adddescriptionheader?language=objc @@ -484,21 +450,6 @@ func (m_ MutableDictionary) AddDescriptionHeader(inDescriptionString string) obj return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1407593-initwithcontentsoffile?language=objc -func (m_ MutableDictionary) InitWithContentsOfFile(path string) MutableDictionary { - rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithContentsOfFile:"), path) - return rv -} - -// Removes from the dictionary entries specified by elements in a given array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1410430-removeobjectsforkeys?language=objc -func (m_ MutableDictionary) RemoveObjectsForKeys(keyArray []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectsForKeys:"), keyArray) -} - // Removes a given key and its associated value from the dictionary. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1416518-removeobjectforkey?language=objc @@ -506,78 +457,56 @@ func (m_ MutableDictionary) RemoveObjectForKey(aKey objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("removeObjectForKey:"), aKey) } -// Adds a given key-value pair to the dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1411616-setobject?language=objc -func (m_ MutableDictionary) SetObjectForKey(anObject objc.IObject, aKey PCopying) { - po1 := objc.WrapAsProtocol("NSCopying", aKey) - objc.Call[objc.Void](m_, objc.Sel("setObject:forKey:"), anObject, po1) -} - -// Adds a given key-value pair to the dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1411616-setobject?language=objc -func (m_ MutableDictionary) SetObjectForKeyObject(anObject objc.IObject, aKeyObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setObject:forKey:"), anObject, aKeyObject) -} - // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574188-dictionarywithcontentsoffile?language=objc -func (mc _MutableDictionaryClass) DictionaryWithContentsOfFile(path string) MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithContentsOfFile:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1434461-adduserdefinedheader?language=objc +func (m_ MutableDictionary) AddUserDefinedHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addUserDefinedHeader:length:"), inHeaderData, inHeaderDataLength) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574188-dictionarywithcontentsoffile?language=objc -func MutableDictionary_DictionaryWithContentsOfFile(path string) MutableDictionary { - return MutableDictionaryClass.DictionaryWithContentsOfFile(path) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1428661-addtimeisoheader?language=objc -func (m_ MutableDictionary) AddTimeISOHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addTimeISOHeader:length:"), inHeaderData, inHeaderDataLength) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1430284-addnameheader?language=objc +func (m_ MutableDictionary) AddNameHeader(inNameString string) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addNameHeader:"), inNameString) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574182-dictionarywithcontentsofurl?language=objc -func (mc _MutableDictionaryClass) DictionaryWithContentsOfURL(url IURL) MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithContentsOfURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1433317-addcountheader?language=objc +func (m_ MutableDictionary) AddCountHeader(inCount uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addCountHeader:"), inCount) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1574182-dictionarywithcontentsofurl?language=objc -func MutableDictionary_DictionaryWithContentsOfURL(url IURL) MutableDictionary { - return MutableDictionaryClass.DictionaryWithContentsOfURL(url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1428676-addbytesequenceheader?language=objc +func (m_ MutableDictionary) AddByteSequenceHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addByteSequenceHeader:length:"), inHeaderData, inHeaderDataLength) + return rv } -// [Full Topic] +// Adds a given key-value pair to the dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1430878-addimagehandleheader?language=objc -func (m_ MutableDictionary) AddImageHandleHeader(type_ string) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addImageHandleHeader:"), type_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1416335-setvalue?language=objc +func (m_ MutableDictionary) SetValueForKey(value objc.IObject, key string) { + objc.Call[objc.Void](m_, objc.Sel("setValue:forKey:"), value, key) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1430284-addnameheader?language=objc -func (m_ MutableDictionary) AddNameHeader(inNameString string) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("addNameHeader:"), inNameString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1434484-addhttpheader?language=objc +func (m_ MutableDictionary) AddHTTPHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addHTTPHeader:length:"), inHeaderData, inHeaderDataLength) return rv } -// Sets the contents of the receiving dictionary to entries in a given dictionary. [Full Topic] +// Empties the dictionary of its entries. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1409566-setdictionary?language=objc -func (m_ MutableDictionary) SetDictionary(otherDictionary Dictionary) { - objc.Call[objc.Void](m_, objc.Sel("setDictionary:"), otherDictionary) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledictionary/1408955-removeallobjects?language=objc +func (m_ MutableDictionary) RemoveAllObjects() { + objc.Call[objc.Void](m_, objc.Sel("removeAllObjects")) } diff --git a/macos/foundation/mutable_index_set.gen.go b/macos/foundation/mutable_index_set.gen.go index 089b5568..39dfd09a 100644 --- a/macos/foundation/mutable_index_set.gen.go +++ b/macos/foundation/mutable_index_set.gen.go @@ -18,14 +18,14 @@ type _MutableIndexSetClass struct { // An interface definition for the [MutableIndexSet] class. type IMutableIndexSet interface { IIndexSet - RemoveIndex(value uint) ShiftIndexesStartingAtIndexBy(index uint, delta int) + RemoveIndex(value uint) + RemoveIndexesInRange(range_ Range) + RemoveIndexes(indexSet IIndexSet) RemoveAllIndexes() + AddIndex(value uint) AddIndexes(indexSet IIndexSet) AddIndexesInRange(range_ Range) - AddIndex(value uint) - RemoveIndexes(indexSet IIndexSet) - RemoveIndexesInRange(range_ Range) } // A mutable collection of unique integer values that represent indexes in another collection. [Full Topic] @@ -61,20 +61,6 @@ func (m_ MutableIndexSet) Init() MutableIndexSet { return rv } -func (m_ MutableIndexSet) InitWithIndex(value uint) MutableIndexSet { - rv := objc.Call[MutableIndexSet](m_, objc.Sel("initWithIndex:"), value) - return rv -} - -// Initializes an allocated NSIndexSet object with an index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1416501-initwithindex?language=objc -func NewMutableIndexSetWithIndex(value uint) MutableIndexSet { - instance := MutableIndexSetClass.Alloc().InitWithIndex(value) - instance.Autorelease() - return instance -} - func (mc _MutableIndexSetClass) IndexSetWithIndex(value uint) MutableIndexSet { rv := objc.Call[MutableIndexSet](mc, objc.Sel("indexSetWithIndex:"), value) return rv @@ -87,16 +73,16 @@ func MutableIndexSet_IndexSetWithIndex(value uint) MutableIndexSet { return MutableIndexSetClass.IndexSetWithIndex(value) } -func (mc _MutableIndexSetClass) IndexSetWithIndexesInRange(range_ Range) MutableIndexSet { - rv := objc.Call[MutableIndexSet](mc, objc.Sel("indexSetWithIndexesInRange:"), range_) +func (mc _MutableIndexSetClass) IndexSet() MutableIndexSet { + rv := objc.Call[MutableIndexSet](mc, objc.Sel("indexSet")) return rv } -// Creates an index set with an index range. [Full Topic] +// Creates an empty index set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1427274-indexsetwithindexesinrange?language=objc -func MutableIndexSet_IndexSetWithIndexesInRange(range_ Range) MutableIndexSet { - return MutableIndexSetClass.IndexSetWithIndexesInRange(range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1427281-indexset?language=objc +func MutableIndexSet_IndexSet() MutableIndexSet { + return MutableIndexSetClass.IndexSet() } func (m_ MutableIndexSet) InitWithIndexesInRange(range_ Range) MutableIndexSet { @@ -127,23 +113,30 @@ func NewMutableIndexSetWithIndexSet(indexSet IIndexSet) MutableIndexSet { return instance } -func (mc _MutableIndexSetClass) IndexSet() MutableIndexSet { - rv := objc.Call[MutableIndexSet](mc, objc.Sel("indexSet")) +func (mc _MutableIndexSetClass) IndexSetWithIndexesInRange(range_ Range) MutableIndexSet { + rv := objc.Call[MutableIndexSet](mc, objc.Sel("indexSetWithIndexesInRange:"), range_) return rv } -// Creates an empty index set. [Full Topic] +// Creates an index set with an index range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1427281-indexset?language=objc -func MutableIndexSet_IndexSet() MutableIndexSet { - return MutableIndexSetClass.IndexSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1427274-indexsetwithindexesinrange?language=objc +func MutableIndexSet_IndexSetWithIndexesInRange(range_ Range) MutableIndexSet { + return MutableIndexSetClass.IndexSetWithIndexesInRange(range_) } -// Removes an index from the receiver. [Full Topic] +func (m_ MutableIndexSet) InitWithIndex(value uint) MutableIndexSet { + rv := objc.Call[MutableIndexSet](m_, objc.Sel("initWithIndex:"), value) + return rv +} + +// Initializes an allocated NSIndexSet object with an index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1410650-removeindex?language=objc -func (m_ MutableIndexSet) RemoveIndex(value uint) { - objc.Call[objc.Void](m_, objc.Sel("removeIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1416501-initwithindex?language=objc +func NewMutableIndexSetWithIndex(value uint) MutableIndexSet { + instance := MutableIndexSetClass.Alloc().InitWithIndex(value) + instance.Autorelease() + return instance } // Shifts a group of indexes to the left or the right within the receiver. [Full Topic] @@ -153,25 +146,32 @@ func (m_ MutableIndexSet) ShiftIndexesStartingAtIndexBy(index uint, delta int) { objc.Call[objc.Void](m_, objc.Sel("shiftIndexesStartingAtIndex:by:"), index, delta) } -// Removes the receiver’s indexes. [Full Topic] +// Removes an index from the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1408738-removeallindexes?language=objc -func (m_ MutableIndexSet) RemoveAllIndexes() { - objc.Call[objc.Void](m_, objc.Sel("removeAllIndexes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1410650-removeindex?language=objc +func (m_ MutableIndexSet) RemoveIndex(value uint) { + objc.Call[objc.Void](m_, objc.Sel("removeIndex:"), value) } -// Adds the indexes in an index set to the receiver. [Full Topic] +// Removes the indexes in an index range from the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1414594-addindexes?language=objc -func (m_ MutableIndexSet) AddIndexes(indexSet IIndexSet) { - objc.Call[objc.Void](m_, objc.Sel("addIndexes:"), indexSet) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1415791-removeindexesinrange?language=objc +func (m_ MutableIndexSet) RemoveIndexesInRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("removeIndexesInRange:"), range_) } -// Adds the indexes in an index range to the receiver. [Full Topic] +// Removes the indexes in an index set from the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1408251-addindexesinrange?language=objc -func (m_ MutableIndexSet) AddIndexesInRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("addIndexesInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1412018-removeindexes?language=objc +func (m_ MutableIndexSet) RemoveIndexes(indexSet IIndexSet) { + objc.Call[objc.Void](m_, objc.Sel("removeIndexes:"), indexSet) +} + +// Removes the receiver’s indexes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1408738-removeallindexes?language=objc +func (m_ MutableIndexSet) RemoveAllIndexes() { + objc.Call[objc.Void](m_, objc.Sel("removeAllIndexes")) } // Adds an index to the receiver. [Full Topic] @@ -181,16 +181,16 @@ func (m_ MutableIndexSet) AddIndex(value uint) { objc.Call[objc.Void](m_, objc.Sel("addIndex:"), value) } -// Removes the indexes in an index set from the receiver. [Full Topic] +// Adds the indexes in an index set to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1412018-removeindexes?language=objc -func (m_ MutableIndexSet) RemoveIndexes(indexSet IIndexSet) { - objc.Call[objc.Void](m_, objc.Sel("removeIndexes:"), indexSet) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1414594-addindexes?language=objc +func (m_ MutableIndexSet) AddIndexes(indexSet IIndexSet) { + objc.Call[objc.Void](m_, objc.Sel("addIndexes:"), indexSet) } -// Removes the indexes in an index range from the receiver. [Full Topic] +// Adds the indexes in an index range to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1415791-removeindexesinrange?language=objc -func (m_ MutableIndexSet) RemoveIndexesInRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("removeIndexesInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableindexset/1408251-addindexesinrange?language=objc +func (m_ MutableIndexSet) AddIndexesInRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("addIndexesInRange:"), range_) } diff --git a/macos/foundation/mutable_ordered_set.gen.go b/macos/foundation/mutable_ordered_set.gen.go index 0776881b..c78fd88a 100644 --- a/macos/foundation/mutable_ordered_set.gen.go +++ b/macos/foundation/mutable_ordered_set.gen.go @@ -18,36 +18,35 @@ type _MutableOrderedSetClass struct { // An interface definition for the [MutableOrderedSet] class. type IMutableOrderedSet interface { IOrderedSet - AddObject(object objc.IObject) - RemoveObject(object objc.IObject) + SortUsingDescriptors(sortDescriptors []ISortDescriptor) + AddObjectsFromArray(array []objc.IObject) + MoveObjectsAtIndexesToIndex(indexes IIndexSet, idx uint) + IntersectSet(other ISet) + FilterUsingPredicate(p IPredicate) MinusOrderedSet(other IOrderedSet) - UnionOrderedSet(other IOrderedSet) ReplaceObjectsInRangeWithObjectsCount(range_ Range, objects unsafe.Pointer, count uint) - ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) + AddObject(object objc.IObject) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint) + InsertObjectAtIndex(object objc.IObject, idx uint) ApplyDifference(difference IOrderedCollectionDifference) SetObjectAtIndexedSubscript(obj objc.IObject, idx uint) - IntersectSet(other ISet) - IntersectOrderedSet(other IOrderedSet) + RemoveObject(object objc.IObject) RemoveObjectAtIndex(idx uint) - SortUsingComparator(cmptr Comparator) + RemoveObjectsInArray(array []objc.IObject) + MinusSet(other ISet) + RemoveObjectsInRange(range_ Range) + IntersectOrderedSet(other IOrderedSet) + ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) RemoveObjectsAtIndexes(indexes IIndexSet) - SortRangeOptionsUsingComparator(range_ Range, opts SortOptions, cmptr Comparator) - RemoveAllObjects() + UnionSet(other ISet) + SortUsingComparator(cmptr Comparator) + AddObjectsCount(objects unsafe.Pointer, count uint) InsertObjectsAtIndexes(objects []objc.IObject, indexes IIndexSet) - SetObjectAtIndex(obj objc.IObject, idx uint) SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) - SortUsingDescriptors(sortDescriptors []ISortDescriptor) - UnionSet(other ISet) - MoveObjectsAtIndexesToIndex(indexes IIndexSet, idx uint) + RemoveAllObjects() ReplaceObjectAtIndexWithObject(idx uint, object objc.IObject) - FilterUsingPredicate(p IPredicate) - AddObjectsFromArray(array []objc.IObject) - RemoveObjectsInArray(array []objc.IObject) - RemoveObjectsInRange(range_ Range) - MinusSet(other ISet) - AddObjectsCount(objects unsafe.Pointer, count uint) - InsertObjectAtIndex(object objc.IObject, idx uint) + SortRangeOptionsUsingComparator(range_ Range, opts SortOptions, cmptr Comparator) + UnionOrderedSet(other IOrderedSet) } // A dynamic, ordered collection of unique objects. [Full Topic] @@ -63,6 +62,18 @@ func MutableOrderedSetFrom(ptr unsafe.Pointer) MutableOrderedSet { } } +func (mc _MutableOrderedSetClass) OrderedSetWithCapacity(numItems uint) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithCapacity:"), numItems) + return rv +} + +// Creates and returns an mutable ordered set with a given initial capacity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1543283-orderedsetwithcapacity?language=objc +func MutableOrderedSet_OrderedSetWithCapacity(numItems uint) MutableOrderedSet { + return MutableOrderedSetClass.OrderedSetWithCapacity(numItems) +} + func (m_ MutableOrderedSet) InitWithCapacity(numItems uint) MutableOrderedSet { rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithCapacity:"), numItems) return rv @@ -77,18 +88,6 @@ func NewMutableOrderedSetWithCapacity(numItems uint) MutableOrderedSet { return instance } -func (mc _MutableOrderedSetClass) OrderedSetWithCapacity(numItems uint) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithCapacity:"), numItems) - return rv -} - -// Creates and returns an mutable ordered set with a given initial capacity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1543283-orderedsetwithcapacity?language=objc -func MutableOrderedSet_OrderedSetWithCapacity(numItems uint) MutableOrderedSet { - return MutableOrderedSetClass.OrderedSetWithCapacity(numItems) -} - func (m_ MutableOrderedSet) Init() MutableOrderedSet { rv := objc.Call[MutableOrderedSet](m_, objc.Sel("init")) return rv @@ -109,42 +108,56 @@ func NewMutableOrderedSet() MutableOrderedSet { return MutableOrderedSetClass.New() } -func (mc _MutableOrderedSetClass) OrderedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithObjects:count:"), objects, cnt) +func (mc _MutableOrderedSetClass) OrderedSetWithOrderedSet(set IOrderedSet) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithOrderedSet:"), set) return rv } -// Creates and returns a set containing a specified number of objects from a given C array of objects. [Full Topic] +// Creates and returns an ordered set containing the objects from another ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543334-orderedsetwithobjects?language=objc -func MutableOrderedSet_OrderedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableOrderedSet { - return MutableOrderedSetClass.OrderedSetWithObjectsCount(objects, cnt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543280-orderedsetwithorderedset?language=objc +func MutableOrderedSet_OrderedSetWithOrderedSet(set IOrderedSet) MutableOrderedSet { + return MutableOrderedSetClass.OrderedSetWithOrderedSet(set) } -func (m_ MutableOrderedSet) InitWithSetCopyItems(set ISet, flag bool) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithSet:copyItems:"), set, flag) +func (m_ MutableOrderedSet) InitWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithObjects:"), append([]any{firstObj}, args...)...) return rv } -// Initializes a new ordered set with the contents of a set, optionally copying the objects in the set. [Full Topic] +// Initializes a newly allocated set with members taken from the specified list of objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411246-initwithset?language=objc -func NewMutableOrderedSetWithSetCopyItems(set ISet, flag bool) MutableOrderedSet { - instance := MutableOrderedSetClass.Alloc().InitWithSetCopyItems(set, flag) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543287-initwithobjects?language=objc +func NewMutableOrderedSetWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { + instance := MutableOrderedSetClass.Alloc().InitWithObjects(firstObj, args...) instance.Autorelease() return instance } -func (mc _MutableOrderedSetClass) OrderedSetWithSetCopyItems(set ISet, flag bool) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithSet:copyItems:"), set, flag) +func (mc _MutableOrderedSetClass) OrderedSetWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithObjects:"), append([]any{firstObj}, args...)...) + return rv +} + +// Creates and returns a ordered set containing the objects in a given argument list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543312-orderedsetwithobjects?language=objc +func MutableOrderedSet_OrderedSetWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { + return MutableOrderedSetClass.OrderedSetWithObjects(firstObj, args...) +} + +func (m_ MutableOrderedSet) InitWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithOrderedSet:range:copyItems:"), set, range_, flag) return rv } -// Creates and returns an ordered set with the contents of a set, optionally copying the items. [Full Topic] +// Initializes a new ordered set with the contents of an ordered set, optionally copying the items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543331-orderedsetwithset?language=objc -func MutableOrderedSet_OrderedSetWithSetCopyItems(set ISet, flag bool) MutableOrderedSet { - return MutableOrderedSetClass.OrderedSetWithSetCopyItems(set, flag) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1417751-initwithorderedset?language=objc +func NewMutableOrderedSetWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) MutableOrderedSet { + instance := MutableOrderedSetClass.Alloc().InitWithOrderedSetRangeCopyItems(set, range_, flag) + instance.Autorelease() + return instance } func (m_ MutableOrderedSet) InitWithObject(object objc.IObject) MutableOrderedSet { @@ -187,32 +200,6 @@ func MutableOrderedSet_OrderedSetWithArray(array []objc.IObject) MutableOrderedS return MutableOrderedSetClass.OrderedSetWithArray(array) } -func (m_ MutableOrderedSet) InitWithSet(set ISet) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithSet:"), set) - return rv -} - -// Initializes a new ordered set with the contents of a set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1416344-initwithset?language=objc -func NewMutableOrderedSetWithSet(set ISet) MutableOrderedSet { - instance := MutableOrderedSetClass.Alloc().InitWithSet(set) - instance.Autorelease() - return instance -} - -func (mc _MutableOrderedSetClass) OrderedSetWithOrderedSet(set IOrderedSet) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithOrderedSet:"), set) - return rv -} - -// Creates and returns an ordered set containing the objects from another ordered set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543280-orderedsetwithorderedset?language=objc -func MutableOrderedSet_OrderedSetWithOrderedSet(set IOrderedSet) MutableOrderedSet { - return MutableOrderedSetClass.OrderedSetWithOrderedSet(set) -} - func (mc _MutableOrderedSetClass) OrderedSetWithObject(object objc.IObject) MutableOrderedSet { rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithObject:"), object) return rv @@ -225,20 +212,6 @@ func MutableOrderedSet_OrderedSetWithObject(object objc.IObject) MutableOrderedS return MutableOrderedSetClass.OrderedSetWithObject(object) } -func (m_ MutableOrderedSet) InitWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithOrderedSet:range:copyItems:"), set, range_, flag) - return rv -} - -// Initializes a new ordered set with the contents of an ordered set, optionally copying the items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1417751-initwithorderedset?language=objc -func NewMutableOrderedSetWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) MutableOrderedSet { - instance := MutableOrderedSetClass.Alloc().InitWithOrderedSetRangeCopyItems(set, range_, flag) - instance.Autorelease() - return instance -} - func (mc _MutableOrderedSetClass) OrderedSet() MutableOrderedSet { rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSet")) return rv @@ -251,112 +224,20 @@ func MutableOrderedSet_OrderedSet() MutableOrderedSet { return MutableOrderedSetClass.OrderedSet() } -func (mc _MutableOrderedSetClass) OrderedSetWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithOrderedSet:range:copyItems:"), set, range_, flag) - return rv -} - -// Creates and returns a new ordered set for a specified range of objects in an ordered set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543292-orderedsetwithorderedset?language=objc -func MutableOrderedSet_OrderedSetWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) MutableOrderedSet { - return MutableOrderedSetClass.OrderedSetWithOrderedSetRangeCopyItems(set, range_, flag) -} - -func (mc _MutableOrderedSetClass) OrderedSetWithArrayRangeCopyItems(array []objc.IObject, range_ Range, flag bool) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithArray:range:copyItems:"), array, range_, flag) - return rv -} - -// Creates and returns a new ordered set for a specified range of objects in an array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543321-orderedsetwitharray?language=objc -func MutableOrderedSet_OrderedSetWithArrayRangeCopyItems(array []objc.IObject, range_ Range, flag bool) MutableOrderedSet { - return MutableOrderedSetClass.OrderedSetWithArrayRangeCopyItems(array, range_, flag) -} - -func (m_ MutableOrderedSet) InitWithOrderedSet(set IOrderedSet) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithOrderedSet:"), set) +func (m_ MutableOrderedSet) InitWithSet(set ISet) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithSet:"), set) return rv } // Initializes a new ordered set with the contents of a set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1412402-initwithorderedset?language=objc -func NewMutableOrderedSetWithOrderedSet(set IOrderedSet) MutableOrderedSet { - instance := MutableOrderedSetClass.Alloc().InitWithOrderedSet(set) - instance.Autorelease() - return instance -} - -func (m_ MutableOrderedSet) InitWithOrderedSetCopyItems(set IOrderedSet, flag bool) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithOrderedSet:copyItems:"), set, flag) - return rv -} - -// Initializes a new ordered set with the contents of a set, optionally copying the items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411658-initwithorderedset?language=objc -func NewMutableOrderedSetWithOrderedSetCopyItems(set IOrderedSet, flag bool) MutableOrderedSet { - instance := MutableOrderedSetClass.Alloc().InitWithOrderedSetCopyItems(set, flag) - instance.Autorelease() - return instance -} - -func (m_ MutableOrderedSet) InitWithArray(array []objc.IObject) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithArray:"), array) - return rv -} - -// Initializes a newly allocated set with the objects that are contained in a given array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1408623-initwitharray?language=objc -func NewMutableOrderedSetWithArray(array []objc.IObject) MutableOrderedSet { - instance := MutableOrderedSetClass.Alloc().InitWithArray(array) - instance.Autorelease() - return instance -} - -func (m_ MutableOrderedSet) InitWithArrayRangeCopyItems(set []objc.IObject, range_ Range, flag bool) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithArray:range:copyItems:"), set, range_, flag) - return rv -} - -// Initializes a newly allocated set with the objects that are contained in the specified range of an array, optionally copying the items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409272-initwitharray?language=objc -func NewMutableOrderedSetWithArrayRangeCopyItems(set []objc.IObject, range_ Range, flag bool) MutableOrderedSet { - instance := MutableOrderedSetClass.Alloc().InitWithArrayRangeCopyItems(set, range_, flag) - instance.Autorelease() - return instance -} - -func (m_ MutableOrderedSet) InitWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithObjects:"), append([]any{firstObj}, args...)...) - return rv -} - -// Initializes a newly allocated set with members taken from the specified list of objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543287-initwithobjects?language=objc -func NewMutableOrderedSetWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { - instance := MutableOrderedSetClass.Alloc().InitWithObjects(firstObj, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1416344-initwithset?language=objc +func NewMutableOrderedSetWithSet(set ISet) MutableOrderedSet { + instance := MutableOrderedSetClass.Alloc().InitWithSet(set) instance.Autorelease() return instance } -func (mc _MutableOrderedSetClass) OrderedSetWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithObjects:"), append([]any{firstObj}, args...)...) - return rv -} - -// Creates and returns a ordered set containing the objects in a given argument list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543312-orderedsetwithobjects?language=objc -func MutableOrderedSet_OrderedSetWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { - return MutableOrderedSetClass.OrderedSetWithObjects(firstObj, args...) -} - func (mc _MutableOrderedSetClass) OrderedSetWithSet(set ISet) MutableOrderedSet { rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithSet:"), set) return rv @@ -369,32 +250,39 @@ func MutableOrderedSet_OrderedSetWithSet(set ISet) MutableOrderedSet { return MutableOrderedSetClass.OrderedSetWithSet(set) } -func (m_ MutableOrderedSet) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithObjects:count:"), objects, cnt) - return rv +// Sorts the receiving ordered set using a given array of sort descriptors. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1410023-sortusingdescriptors?language=objc +func (m_ MutableOrderedSet) SortUsingDescriptors(sortDescriptors []ISortDescriptor) { + objc.Call[objc.Void](m_, objc.Sel("sortUsingDescriptors:"), sortDescriptors) } -// Initializes a newly allocated set with a specified number of objects from a given C array of objects. [Full Topic] +// Appends to the end of the mutable ordered set each object contained in a given array that is not already a member. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411910-initwithobjects?language=objc -func NewMutableOrderedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableOrderedSet { - instance := MutableOrderedSetClass.Alloc().InitWithObjectsCount(objects, cnt) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1417200-addobjectsfromarray?language=objc +func (m_ MutableOrderedSet) AddObjectsFromArray(array []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("addObjectsFromArray:"), array) } -// Appends a given object to the end of the mutable ordered set, if it is not already a member. [Full Topic] +// Moves the objects at the specified indexes to the new location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1408009-addobject?language=objc -func (m_ MutableOrderedSet) AddObject(object objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("addObject:"), object) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1417677-moveobjectsatindexes?language=objc +func (m_ MutableOrderedSet) MoveObjectsAtIndexesToIndex(indexes IIndexSet, idx uint) { + objc.Call[objc.Void](m_, objc.Sel("moveObjectsAtIndexes:toIndex:"), indexes, idx) } -// Removes a given object from the mutable ordered set. [Full Topic] +// Removes from the receiving ordered set each object that isn’t a member of another set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1416776-removeobject?language=objc -func (m_ MutableOrderedSet) RemoveObject(object objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("removeObject:"), object) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1415257-intersectset?language=objc +func (m_ MutableOrderedSet) IntersectSet(other ISet) { + objc.Call[objc.Void](m_, objc.Sel("intersectSet:"), other) +} + +// Evaluates a given predicate against the mutable ordered set’s content and leaves only objects that match. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1408348-filterusingpredicate?language=objc +func (m_ MutableOrderedSet) FilterUsingPredicate(p IPredicate) { + objc.Call[objc.Void](m_, objc.Sel("filterUsingPredicate:"), p) } // Removes each object in another given ordered set from the receiving mutable ordered set, if present. [Full Topic] @@ -404,13 +292,6 @@ func (m_ MutableOrderedSet) MinusOrderedSet(other IOrderedSet) { objc.Call[objc.Void](m_, objc.Sel("minusOrderedSet:"), other) } -// Adds each object in another given ordered set to the receiving mutable ordered set, if not present. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1410973-unionorderedset?language=objc -func (m_ MutableOrderedSet) UnionOrderedSet(other IOrderedSet) { - objc.Call[objc.Void](m_, objc.Sel("unionOrderedSet:"), other) -} - // Replaces the objects in the receiving mutable ordered set at the range with the specified number of objects from a given C array. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1415340-replaceobjectsinrange?language=objc @@ -418,11 +299,11 @@ func (m_ MutableOrderedSet) ReplaceObjectsInRangeWithObjectsCount(range_ Range, objc.Call[objc.Void](m_, objc.Sel("replaceObjectsInRange:withObjects:count:"), range_, objects, count) } -// Replaces the objects at the specified indexes with the new objects. [Full Topic] +// Appends a given object to the end of the mutable ordered set, if it is not already a member. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1416127-replaceobjectsatindexes?language=objc -func (m_ MutableOrderedSet) ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("replaceObjectsAtIndexes:withObjects:"), indexes, objects) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1408009-addobject?language=objc +func (m_ MutableOrderedSet) AddObject(object objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("addObject:"), object) } // Exchanges the object at the specified index with the object at the other index. [Full Topic] @@ -432,6 +313,13 @@ func (m_ MutableOrderedSet) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, id objc.Call[objc.Void](m_, objc.Sel("exchangeObjectAtIndex:withObjectAtIndex:"), idx1, idx2) } +// Inserts the given object at the specified index of the mutable ordered set, if it is not already a member. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1416634-insertobject?language=objc +func (m_ MutableOrderedSet) InsertObjectAtIndex(object objc.IObject, idx uint) { + objc.Call[objc.Void](m_, objc.Sel("insertObject:atIndex:"), object, idx) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/3152194-applydifference?language=objc @@ -446,18 +334,11 @@ func (m_ MutableOrderedSet) SetObjectAtIndexedSubscript(obj objc.IObject, idx ui objc.Call[objc.Void](m_, objc.Sel("setObject:atIndexedSubscript:"), obj, idx) } -// Removes from the receiving ordered set each object that isn’t a member of another set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1415257-intersectset?language=objc -func (m_ MutableOrderedSet) IntersectSet(other ISet) { - objc.Call[objc.Void](m_, objc.Sel("intersectSet:"), other) -} - -// Removes from the receiving ordered set each object that isn’t a member of another ordered set. [Full Topic] +// Removes a given object from the mutable ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1408541-intersectorderedset?language=objc -func (m_ MutableOrderedSet) IntersectOrderedSet(other IOrderedSet) { - objc.Call[objc.Void](m_, objc.Sel("intersectOrderedSet:"), other) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1416776-removeobject?language=objc +func (m_ MutableOrderedSet) RemoveObject(object objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("removeObject:"), object) } // Removes a the object at the specified index from the mutable ordered set. [Full Topic] @@ -467,60 +348,46 @@ func (m_ MutableOrderedSet) RemoveObjectAtIndex(idx uint) { objc.Call[objc.Void](m_, objc.Sel("removeObjectAtIndex:"), idx) } -// Sorts the mutable ordered set using the comparison method specified by the comparator block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1414566-sortusingcomparator?language=objc -func (m_ MutableOrderedSet) SortUsingComparator(cmptr Comparator) { - objc.Call[objc.Void](m_, objc.Sel("sortUsingComparator:"), cmptr) -} - -// Removes the objects at the specified indexes from the mutable ordered set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1418161-removeobjectsatindexes?language=objc -func (m_ MutableOrderedSet) RemoveObjectsAtIndexes(indexes IIndexSet) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectsAtIndexes:"), indexes) -} - -// Sorts the specified range of the mutable ordered set using the specified options and the comparison method specified by a given comparator block. [Full Topic] +// Removes the objects in the array from the mutable ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1407529-sortrange?language=objc -func (m_ MutableOrderedSet) SortRangeOptionsUsingComparator(range_ Range, opts SortOptions, cmptr Comparator) { - objc.Call[objc.Void](m_, objc.Sel("sortRange:options:usingComparator:"), range_, opts, cmptr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1411635-removeobjectsinarray?language=objc +func (m_ MutableOrderedSet) RemoveObjectsInArray(array []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectsInArray:"), array) } -// Removes all the objects from the mutable ordered set. [Full Topic] +// Removes each object in another given set from the receiving mutable ordered set, if present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1414262-removeallobjects?language=objc -func (m_ MutableOrderedSet) RemoveAllObjects() { - objc.Call[objc.Void](m_, objc.Sel("removeAllObjects")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1411229-minusset?language=objc +func (m_ MutableOrderedSet) MinusSet(other ISet) { + objc.Call[objc.Void](m_, objc.Sel("minusSet:"), other) } -// Inserts the objects in the array at the specified indexes. [Full Topic] +// Removes from the mutable ordered set each of the objects within a given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1410287-insertobjects?language=objc -func (m_ MutableOrderedSet) InsertObjectsAtIndexes(objects []objc.IObject, indexes IIndexSet) { - objc.Call[objc.Void](m_, objc.Sel("insertObjects:atIndexes:"), objects, indexes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1417539-removeobjectsinrange?language=objc +func (m_ MutableOrderedSet) RemoveObjectsInRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectsInRange:"), range_) } -// Appends or replaces the object at the specified index. [Full Topic] +// Removes from the receiving ordered set each object that isn’t a member of another ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1411158-setobject?language=objc -func (m_ MutableOrderedSet) SetObjectAtIndex(obj objc.IObject, idx uint) { - objc.Call[objc.Void](m_, objc.Sel("setObject:atIndex:"), obj, idx) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1408541-intersectorderedset?language=objc +func (m_ MutableOrderedSet) IntersectOrderedSet(other IOrderedSet) { + objc.Call[objc.Void](m_, objc.Sel("intersectOrderedSet:"), other) } -// Sorts the mutable ordered set using the specified options and the comparison method specified by a given comparator block. [Full Topic] +// Replaces the objects at the specified indexes with the new objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1411561-sortwithoptions?language=objc -func (m_ MutableOrderedSet) SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) { - objc.Call[objc.Void](m_, objc.Sel("sortWithOptions:usingComparator:"), opts, cmptr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1416127-replaceobjectsatindexes?language=objc +func (m_ MutableOrderedSet) ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("replaceObjectsAtIndexes:withObjects:"), indexes, objects) } -// Sorts the receiving ordered set using a given array of sort descriptors. [Full Topic] +// Removes the objects at the specified indexes from the mutable ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1410023-sortusingdescriptors?language=objc -func (m_ MutableOrderedSet) SortUsingDescriptors(sortDescriptors []ISortDescriptor) { - objc.Call[objc.Void](m_, objc.Sel("sortUsingDescriptors:"), sortDescriptors) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1418161-removeobjectsatindexes?language=objc +func (m_ MutableOrderedSet) RemoveObjectsAtIndexes(indexes IIndexSet) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectsAtIndexes:"), indexes) } // Adds each object in another given set to the receiving mutable ordered set, if not present. [Full Topic] @@ -530,65 +397,58 @@ func (m_ MutableOrderedSet) UnionSet(other ISet) { objc.Call[objc.Void](m_, objc.Sel("unionSet:"), other) } -// Moves the objects at the specified indexes to the new location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1417677-moveobjectsatindexes?language=objc -func (m_ MutableOrderedSet) MoveObjectsAtIndexesToIndex(indexes IIndexSet, idx uint) { - objc.Call[objc.Void](m_, objc.Sel("moveObjectsAtIndexes:toIndex:"), indexes, idx) -} - -// Replaces the object at the specified index with the new object. [Full Topic] +// Sorts the mutable ordered set using the comparison method specified by the comparator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1412115-replaceobjectatindex?language=objc -func (m_ MutableOrderedSet) ReplaceObjectAtIndexWithObject(idx uint, object objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("replaceObjectAtIndex:withObject:"), idx, object) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1414566-sortusingcomparator?language=objc +func (m_ MutableOrderedSet) SortUsingComparator(cmptr Comparator) { + objc.Call[objc.Void](m_, objc.Sel("sortUsingComparator:"), cmptr) } -// Evaluates a given predicate against the mutable ordered set’s content and leaves only objects that match. [Full Topic] +// Appends the given number of objects from a given C array to the end of the mutable ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1408348-filterusingpredicate?language=objc -func (m_ MutableOrderedSet) FilterUsingPredicate(p IPredicate) { - objc.Call[objc.Void](m_, objc.Sel("filterUsingPredicate:"), p) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1413840-addobjects?language=objc +func (m_ MutableOrderedSet) AddObjectsCount(objects unsafe.Pointer, count uint) { + objc.Call[objc.Void](m_, objc.Sel("addObjects:count:"), objects, count) } -// Appends to the end of the mutable ordered set each object contained in a given array that is not already a member. [Full Topic] +// Inserts the objects in the array at the specified indexes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1417200-addobjectsfromarray?language=objc -func (m_ MutableOrderedSet) AddObjectsFromArray(array []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("addObjectsFromArray:"), array) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1410287-insertobjects?language=objc +func (m_ MutableOrderedSet) InsertObjectsAtIndexes(objects []objc.IObject, indexes IIndexSet) { + objc.Call[objc.Void](m_, objc.Sel("insertObjects:atIndexes:"), objects, indexes) } -// Removes the objects in the array from the mutable ordered set. [Full Topic] +// Sorts the mutable ordered set using the specified options and the comparison method specified by a given comparator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1411635-removeobjectsinarray?language=objc -func (m_ MutableOrderedSet) RemoveObjectsInArray(array []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectsInArray:"), array) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1411561-sortwithoptions?language=objc +func (m_ MutableOrderedSet) SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) { + objc.Call[objc.Void](m_, objc.Sel("sortWithOptions:usingComparator:"), opts, cmptr) } -// Removes from the mutable ordered set each of the objects within a given range. [Full Topic] +// Removes all the objects from the mutable ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1417539-removeobjectsinrange?language=objc -func (m_ MutableOrderedSet) RemoveObjectsInRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectsInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1414262-removeallobjects?language=objc +func (m_ MutableOrderedSet) RemoveAllObjects() { + objc.Call[objc.Void](m_, objc.Sel("removeAllObjects")) } -// Removes each object in another given set from the receiving mutable ordered set, if present. [Full Topic] +// Replaces the object at the specified index with the new object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1411229-minusset?language=objc -func (m_ MutableOrderedSet) MinusSet(other ISet) { - objc.Call[objc.Void](m_, objc.Sel("minusSet:"), other) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1412115-replaceobjectatindex?language=objc +func (m_ MutableOrderedSet) ReplaceObjectAtIndexWithObject(idx uint, object objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("replaceObjectAtIndex:withObject:"), idx, object) } -// Appends the given number of objects from a given C array to the end of the mutable ordered set. [Full Topic] +// Sorts the specified range of the mutable ordered set using the specified options and the comparison method specified by a given comparator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1413840-addobjects?language=objc -func (m_ MutableOrderedSet) AddObjectsCount(objects unsafe.Pointer, count uint) { - objc.Call[objc.Void](m_, objc.Sel("addObjects:count:"), objects, count) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1407529-sortrange?language=objc +func (m_ MutableOrderedSet) SortRangeOptionsUsingComparator(range_ Range, opts SortOptions, cmptr Comparator) { + objc.Call[objc.Void](m_, objc.Sel("sortRange:options:usingComparator:"), range_, opts, cmptr) } -// Inserts the given object at the specified index of the mutable ordered set, if it is not already a member. [Full Topic] +// Adds each object in another given ordered set to the receiving mutable ordered set, if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1416634-insertobject?language=objc -func (m_ MutableOrderedSet) InsertObjectAtIndex(object objc.IObject, idx uint) { - objc.Call[objc.Void](m_, objc.Sel("insertObject:atIndex:"), object, idx) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1410973-unionorderedset?language=objc +func (m_ MutableOrderedSet) UnionOrderedSet(other IOrderedSet) { + objc.Call[objc.Void](m_, objc.Sel("unionOrderedSet:"), other) } diff --git a/macos/foundation/mutable_set.gen.go b/macos/foundation/mutable_set.gen.go index 4c1795f5..144b17c0 100644 --- a/macos/foundation/mutable_set.gen.go +++ b/macos/foundation/mutable_set.gen.go @@ -18,15 +18,15 @@ type _MutableSetClass struct { // An interface definition for the [MutableSet] class. type IMutableSet interface { ISet - SetSet(otherSet ISet) + AddObjectsFromArray(array []objc.IObject) IntersectSet(otherSet ISet) - RemoveAllObjects() FilterUsingPredicate(predicate IPredicate) - RemoveObject(object objc.IObject) - AddObjectsFromArray(array []objc.IObject) + SetSet(otherSet ISet) AddObject(object objc.IObject) - UnionSet(otherSet ISet) + RemoveObject(object objc.IObject) MinusSet(otherSet ISet) + UnionSet(otherSet ISet) + RemoveAllObjects() } // A dynamic unordered collection of unique objects. [Full Topic] @@ -42,6 +42,20 @@ func MutableSetFrom(ptr unsafe.Pointer) MutableSet { } } +func (m_ MutableSet) InitWithCapacity(numItems uint) MutableSet { + rv := objc.Call[MutableSet](m_, objc.Sel("initWithCapacity:"), numItems) + return rv +} + +// Returns an initialized mutable set with a given initial capacity. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1411953-initwithcapacity?language=objc +func NewMutableSetWithCapacity(numItems uint) MutableSet { + instance := MutableSetClass.Alloc().InitWithCapacity(numItems) + instance.Autorelease() + return instance +} + func (mc _MutableSetClass) SetWithCapacity(numItems uint) MutableSet { rv := objc.Call[MutableSet](mc, objc.Sel("setWithCapacity:"), numItems) return rv @@ -59,20 +73,6 @@ func (m_ MutableSet) Init() MutableSet { return rv } -func (m_ MutableSet) InitWithCapacity(numItems uint) MutableSet { - rv := objc.Call[MutableSet](m_, objc.Sel("initWithCapacity:"), numItems) - return rv -} - -// Returns an initialized mutable set with a given initial capacity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1411953-initwithcapacity?language=objc -func NewMutableSetWithCapacity(numItems uint) MutableSet { - instance := MutableSetClass.Alloc().InitWithCapacity(numItems) - instance.Autorelease() - return instance -} - func (mc _MutableSetClass) Alloc() MutableSet { rv := objc.Call[MutableSet](mc, objc.Sel("alloc")) return rv @@ -88,18 +88,16 @@ func NewMutableSet() MutableSet { return MutableSetClass.New() } -func (m_ MutableSet) InitWithSetCopyItems(set ISet, flag bool) MutableSet { - rv := objc.Call[MutableSet](m_, objc.Sel("initWithSet:copyItems:"), set, flag) +func (mc _MutableSetClass) Set() MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("set")) return rv } -// Initializes a newly allocated set and adds to it members of another given set. [Full Topic] +// Creates and returns an empty set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1408407-initwithset?language=objc -func NewMutableSetWithSetCopyItems(set ISet, flag bool) MutableSet { - instance := MutableSetClass.Alloc().InitWithSetCopyItems(set, flag) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574818-set?language=objc +func MutableSet_Set() MutableSet { + return MutableSetClass.Set() } func (m_ MutableSet) InitWithObjects(firstObj objc.IObject, args ...any) MutableSet { @@ -116,54 +114,28 @@ func NewMutableSetWithObjects(firstObj objc.IObject, args ...any) MutableSet { return instance } -func (mc _MutableSetClass) SetWithObject(object objc.IObject) MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("setWithObject:"), object) - return rv -} - -// Creates and returns a set that contains a single given object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1415878-setwithobject?language=objc -func MutableSet_SetWithObject(object objc.IObject) MutableSet { - return MutableSetClass.SetWithObject(object) -} - -func (mc _MutableSetClass) SetWithObjects(firstObj objc.IObject, args ...any) MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("setWithObjects:"), append([]any{firstObj}, args...)...) - return rv -} - -// Creates and returns a set containing the objects in a given argument list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574825-setwithobjects?language=objc -func MutableSet_SetWithObjects(firstObj objc.IObject, args ...any) MutableSet { - return MutableSetClass.SetWithObjects(firstObj, args...) -} - -func (mc _MutableSetClass) SetWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("setWithObjects:count:"), objects, cnt) +func (mc _MutableSetClass) SetWithSet(set ISet) MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("setWithSet:"), set) return rv } -// Creates and returns a set containing a specified number of objects from a given C array of objects. [Full Topic] +// Creates and returns a set containing the objects from another set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574824-setwithobjects?language=objc -func MutableSet_SetWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableSet { - return MutableSetClass.SetWithObjectsCount(objects, cnt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574817-setwithset?language=objc +func MutableSet_SetWithSet(set ISet) MutableSet { + return MutableSetClass.SetWithSet(set) } -func (m_ MutableSet) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableSet { - rv := objc.Call[MutableSet](m_, objc.Sel("initWithObjects:count:"), objects, cnt) +func (mc _MutableSetClass) SetWithObject(object objc.IObject) MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("setWithObject:"), object) return rv } -// Initializes a newly allocated set with a specified number of objects from a given C array of objects. [Full Topic] +// Creates and returns a set that contains a single given object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1407458-initwithobjects?language=objc -func NewMutableSetWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableSet { - instance := MutableSetClass.Alloc().InitWithObjectsCount(objects, cnt) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1415878-setwithobject?language=objc +func MutableSet_SetWithObject(object objc.IObject) MutableSet { + return MutableSetClass.SetWithObject(object) } func (m_ MutableSet) InitWithArray(array []objc.IObject) MutableSet { @@ -180,20 +152,6 @@ func NewMutableSetWithArray(array []objc.IObject) MutableSet { return instance } -func (m_ MutableSet) InitWithSet(set ISet) MutableSet { - rv := objc.Call[MutableSet](m_, objc.Sel("initWithSet:"), set) - return rv -} - -// Initializes a newly allocated set and adds to it objects from another given set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1410612-initwithset?language=objc -func NewMutableSetWithSet(set ISet) MutableSet { - instance := MutableSetClass.Alloc().InitWithSet(set) - instance.Autorelease() - return instance -} - func (mc _MutableSetClass) SetWithArray(array []objc.IObject) MutableSet { rv := objc.Call[MutableSet](mc, objc.Sel("setWithArray:"), array) return rv @@ -206,59 +164,61 @@ func MutableSet_SetWithArray(array []objc.IObject) MutableSet { return MutableSetClass.SetWithArray(array) } -func (mc _MutableSetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) +func (mc _MutableSetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("setWithCollectionViewIndexPath:"), indexPath) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528255-setwithcollectionviewindexpaths?language=objc -func MutableSet_SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) MutableSet { - return MutableSetClass.SetWithCollectionViewIndexPaths(indexPaths) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528161-setwithcollectionviewindexpath?language=objc +func MutableSet_SetWithCollectionViewIndexPath(indexPath IIndexPath) MutableSet { + return MutableSetClass.SetWithCollectionViewIndexPath(indexPath) } -func (mc _MutableSetClass) Set() MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("set")) +func (mc _MutableSetClass) SetWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("setWithObjects:count:"), objects, cnt) return rv } -// Creates and returns an empty set. [Full Topic] +// Creates and returns a set containing a specified number of objects from a given C array of objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574818-set?language=objc -func MutableSet_Set() MutableSet { - return MutableSetClass.Set() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574824-setwithobjects?language=objc +func MutableSet_SetWithObjectsCount(objects unsafe.Pointer, cnt uint) MutableSet { + return MutableSetClass.SetWithObjectsCount(objects, cnt) } -func (mc _MutableSetClass) SetWithSet(set ISet) MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("setWithSet:"), set) +func (mc _MutableSetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) return rv } -// Creates and returns a set containing the objects from another set. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574817-setwithset?language=objc -func MutableSet_SetWithSet(set ISet) MutableSet { - return MutableSetClass.SetWithSet(set) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528255-setwithcollectionviewindexpaths?language=objc +func MutableSet_SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) MutableSet { + return MutableSetClass.SetWithCollectionViewIndexPaths(indexPaths) } -func (mc _MutableSetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("setWithCollectionViewIndexPath:"), indexPath) +func (m_ MutableSet) InitWithSet(set ISet) MutableSet { + rv := objc.Call[MutableSet](m_, objc.Sel("initWithSet:"), set) return rv } -// [Full Topic] +// Initializes a newly allocated set and adds to it objects from another given set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528161-setwithcollectionviewindexpath?language=objc -func MutableSet_SetWithCollectionViewIndexPath(indexPath IIndexPath) MutableSet { - return MutableSetClass.SetWithCollectionViewIndexPath(indexPath) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1410612-initwithset?language=objc +func NewMutableSetWithSet(set ISet) MutableSet { + instance := MutableSetClass.Alloc().InitWithSet(set) + instance.Autorelease() + return instance } -// Empties the receiving set, then adds each object contained in another given set. [Full Topic] +// Adds to the set each object contained in a given array that is not already a member. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1416405-setset?language=objc -func (m_ MutableSet) SetSet(otherSet ISet) { - objc.Call[objc.Void](m_, objc.Sel("setSet:"), otherSet) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1414345-addobjectsfromarray?language=objc +func (m_ MutableSet) AddObjectsFromArray(array []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("addObjectsFromArray:"), array) } // Removes from the receiving set each object that isn’t a member of another given set. [Full Topic] @@ -268,13 +228,6 @@ func (m_ MutableSet) IntersectSet(otherSet ISet) { objc.Call[objc.Void](m_, objc.Sel("intersectSet:"), otherSet) } -// Empties the set of all of its members. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1417497-removeallobjects?language=objc -func (m_ MutableSet) RemoveAllObjects() { - objc.Call[objc.Void](m_, objc.Sel("removeAllObjects")) -} - // Evaluates a given predicate against the set’s content and removes from the set those objects for which the predicate returns false. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1407868-filterusingpredicate?language=objc @@ -282,18 +235,11 @@ func (m_ MutableSet) FilterUsingPredicate(predicate IPredicate) { objc.Call[objc.Void](m_, objc.Sel("filterUsingPredicate:"), predicate) } -// Removes a given object from the set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1416085-removeobject?language=objc -func (m_ MutableSet) RemoveObject(object objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("removeObject:"), object) -} - -// Adds to the set each object contained in a given array that is not already a member. [Full Topic] +// Empties the receiving set, then adds each object contained in another given set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1414345-addobjectsfromarray?language=objc -func (m_ MutableSet) AddObjectsFromArray(array []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("addObjectsFromArray:"), array) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1416405-setset?language=objc +func (m_ MutableSet) SetSet(otherSet ISet) { + objc.Call[objc.Void](m_, objc.Sel("setSet:"), otherSet) } // Adds a given object to the set, if it is not already a member. [Full Topic] @@ -303,11 +249,11 @@ func (m_ MutableSet) AddObject(object objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("addObject:"), object) } -// Adds each object in another given set to the receiving set, if not present. [Full Topic] +// Removes a given object from the set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1413187-unionset?language=objc -func (m_ MutableSet) UnionSet(otherSet ISet) { - objc.Call[objc.Void](m_, objc.Sel("unionSet:"), otherSet) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1416085-removeobject?language=objc +func (m_ MutableSet) RemoveObject(object objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("removeObject:"), object) } // Removes each object in another given set from the receiving set, if present. [Full Topic] @@ -316,3 +262,17 @@ func (m_ MutableSet) UnionSet(otherSet ISet) { func (m_ MutableSet) MinusSet(otherSet ISet) { objc.Call[objc.Void](m_, objc.Sel("minusSet:"), otherSet) } + +// Adds each object in another given set to the receiving set, if not present. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1413187-unionset?language=objc +func (m_ MutableSet) UnionSet(otherSet ISet) { + objc.Call[objc.Void](m_, objc.Sel("unionSet:"), otherSet) +} + +// Empties the set of all of its members. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1417497-removeallobjects?language=objc +func (m_ MutableSet) RemoveAllObjects() { + objc.Call[objc.Void](m_, objc.Sel("removeAllObjects")) +} diff --git a/macos/foundation/mutable_string.gen.go b/macos/foundation/mutable_string.gen.go index 3c3aa52d..0d38f1c0 100644 --- a/macos/foundation/mutable_string.gen.go +++ b/macos/foundation/mutable_string.gen.go @@ -19,14 +19,14 @@ type _MutableStringClass struct { type IMutableString interface { IString AppendFormat(format string, args ...any) - InsertStringAtIndex(aString string, loc uint) - ApplyTransformReverseRangeUpdatedRange(transform StringTransform, reverse bool, range_ Range, resultingRange RangePointer) bool - SetString(aString string) - ReplaceOccurrencesOfStringWithStringOptionsRange(target string, replacement string, options StringCompareOptions, searchRange Range) uint DeleteCharactersInRange(range_ Range) + ApplyTransformReverseRangeUpdatedRange(transform StringTransform, reverse bool, range_ Range, resultingRange RangePointer) bool InitWithCapacity(capacity uint) MutableString - ReplaceCharactersInRangeWithString(range_ Range, aString string) + InsertStringAtIndex(aString string, loc uint) AppendString(aString string) + SetString(aString string) + ReplaceCharactersInRangeWithString(range_ Range, aString string) + ReplaceOccurrencesOfStringWithStringOptionsRange(target string, replacement string, options StringCompareOptions, searchRange Range) uint } // A dynamic plain-text Unicode string object. [Full Topic] @@ -62,28 +62,16 @@ func (m_ MutableString) Init() MutableString { return rv } -func (mc _MutableStringClass) StringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error unsafe.Pointer) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfURL:usedEncoding:error:"), url, enc, error) - return rv -} - -// Returns a string created by reading data from a given URL and returns by reference the encoding used to interpret the data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497408-stringwithcontentsofurl?language=objc -func MutableString_StringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error unsafe.Pointer) MutableString { - return MutableStringClass.StringWithContentsOfURLUsedEncodingError(url, enc, error) -} - -func (m_ MutableString) InitWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error unsafe.Pointer) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithContentsOfURL:usedEncoding:error:"), url, enc, error) +func (m_ MutableString) InitWithCharactersNoCopyLengthDeallocator(chars *Unichar, len uint, deallocator func(arg0 *Unichar, arg1 uint)) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithCharactersNoCopy:length:deallocator:"), chars, len, deallocator) return rv } -// Returns an NSString object initialized by reading data from a given URL and returns by reference the encoding used to interpret the data. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414472-initwithcontentsofurl?language=objc -func NewMutableStringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error unsafe.Pointer) MutableString { - instance := MutableStringClass.Alloc().InitWithContentsOfURLUsedEncodingError(url, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547180-initwithcharactersnocopy?language=objc +func NewMutableStringWithCharactersNoCopyLengthDeallocator(chars *Unichar, len uint, deallocator func(arg0 *Unichar, arg1 uint)) MutableString { + instance := MutableStringClass.Alloc().InitWithCharactersNoCopyLengthDeallocator(chars, len, deallocator) instance.Autorelease() return instance } @@ -100,98 +88,6 @@ func MutableString_StringWithString(string_ string) MutableString { return MutableStringClass.StringWithString(string_) } -func (m_ MutableString) InitWithString(aString string) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithString:"), aString) - return rv -} - -// Returns an NSString object initialized by copying the characters from another given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411293-initwithstring?language=objc -func NewMutableStringWithString(aString string) MutableString { - instance := MutableStringClass.Alloc().InitWithString(aString) - instance.Autorelease() - return instance -} - -func (m_ MutableString) InitWithBytesNoCopyLengthEncodingFreeWhenDone(bytes unsafe.Pointer, len uint, encoding StringEncoding, freeBuffer bool) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithBytesNoCopy:length:encoding:freeWhenDone:"), bytes, len, encoding, freeBuffer) - return rv -} - -// Returns an initialized NSString object that contains a given number of bytes from a given buffer of bytes interpreted in a given encoding, and optionally frees the buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413830-initwithbytesnocopy?language=objc -func NewMutableStringWithBytesNoCopyLengthEncodingFreeWhenDone(bytes unsafe.Pointer, len uint, encoding StringEncoding, freeBuffer bool) MutableString { - instance := MutableStringClass.Alloc().InitWithBytesNoCopyLengthEncodingFreeWhenDone(bytes, len, encoding, freeBuffer) - instance.Autorelease() - return instance -} - -func (m_ MutableString) InitWithCharactersNoCopyLengthFreeWhenDone(characters *Unichar, length uint, freeBuffer bool) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithCharactersNoCopy:length:freeWhenDone:"), characters, length, freeBuffer) - return rv -} - -// Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412121-initwithcharactersnocopy?language=objc -func NewMutableStringWithCharactersNoCopyLengthFreeWhenDone(characters *Unichar, length uint, freeBuffer bool) MutableString { - instance := MutableStringClass.Alloc().InitWithCharactersNoCopyLengthFreeWhenDone(characters, length, freeBuffer) - instance.Autorelease() - return instance -} - -func (mc _MutableStringClass) StringWithFormat(format string, args ...any) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("stringWithFormat:"), append([]any{format}, args...)...) - return rv -} - -// Returns a string created by using a given format string as a template into which the remaining argument values are substituted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497275-stringwithformat?language=objc -func MutableString_StringWithFormat(format string, args ...any) MutableString { - return MutableStringClass.StringWithFormat(format, args...) -} - -func (mc _MutableStringClass) StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, error) - return rv -} - -// Returns a string created by reading data from the file at a given path interpreted using a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497327-stringwithcontentsoffile?language=objc -func MutableString_StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) MutableString { - return MutableStringClass.StringWithContentsOfFileEncodingError(path, enc, error) -} - -func (m_ MutableString) InitWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithContentsOfURL:encoding:error:"), url, enc, error) - return rv -} - -// Returns an NSString object initialized by reading data from a given URL interpreted using a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414463-initwithcontentsofurl?language=objc -func NewMutableStringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) MutableString { - instance := MutableStringClass.Alloc().InitWithContentsOfURLEncodingError(url, enc, error) - instance.Autorelease() - return instance -} - -func (mc _MutableStringClass) StringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error unsafe.Pointer) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfFile:usedEncoding:error:"), path, enc, error) - return rv -} - -// Returns a string created by reading data from the file at a given path and returns by reference the encoding used to interpret the file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497254-stringwithcontentsoffile?language=objc -func MutableString_StringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error unsafe.Pointer) MutableString { - return MutableStringClass.StringWithContentsOfFileUsedEncodingError(path, enc, error) -} - func (m_ MutableString) InitWithFormatLocale(format string, locale objc.IObject, args ...any) MutableString { rv := objc.Call[MutableString](m_, objc.Sel("initWithFormat:locale:"), append([]any{format, locale}, args...)...) return rv @@ -206,18 +102,6 @@ func NewMutableStringWithFormatLocale(format string, locale objc.IObject, args . return instance } -func (mc _MutableStringClass) StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfURL:encoding:error:"), url, enc, error) - return rv -} - -// Returns a string created by reading data from a given URL interpreted using a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497360-stringwithcontentsofurl?language=objc -func MutableString_StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) MutableString { - return MutableStringClass.StringWithContentsOfURLEncodingError(url, enc, error) -} - func (m_ MutableString) InitWithDataEncoding(data []byte, encoding StringEncoding) MutableString { rv := objc.Call[MutableString](m_, objc.Sel("initWithData:encoding:"), data, encoding) return rv @@ -232,70 +116,56 @@ func NewMutableStringWithDataEncoding(data []byte, encoding StringEncoding) Muta return instance } -func (m_ MutableString) InitWithCharactersLength(characters *Unichar, length uint) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithCharacters:length:"), characters, length) +func (mc _MutableStringClass) StringWithFormat(format string, args ...any) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("stringWithFormat:"), append([]any{format}, args...)...) return rv } -// Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units. [Full Topic] +// Returns a string created by using a given format string as a template into which the remaining argument values are substituted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410997-initwithcharacters?language=objc -func NewMutableStringWithCharactersLength(characters *Unichar, length uint) MutableString { - instance := MutableStringClass.Alloc().InitWithCharactersLength(characters, length) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497275-stringwithformat?language=objc +func MutableString_StringWithFormat(format string, args ...any) MutableString { + return MutableStringClass.StringWithFormat(format, args...) } -func (m_ MutableString) InitWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding StringEncoding) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithBytes:length:encoding:"), bytes, len, encoding) +func (m_ MutableString) InitWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithBytesNoCopy:length:encoding:deallocator:"), bytes, len, encoding, deallocator) return rv } -// Returns an initialized NSString object containing a given number of bytes from a given buffer of bytes interpreted in a given encoding. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407339-initwithbytes?language=objc -func NewMutableStringWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding StringEncoding) MutableString { - instance := MutableStringClass.Alloc().InitWithBytesLengthEncoding(bytes, len, encoding) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547179-initwithbytesnocopy?language=objc +func NewMutableStringWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) MutableString { + instance := MutableStringClass.Alloc().InitWithBytesNoCopyLengthEncodingDeallocator(bytes, len, encoding, deallocator) instance.Autorelease() return instance } -func (m_ MutableString) InitWithUTF8String(nullTerminatedCString *uint8) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithUTF8String:"), nullTerminatedCString) +func (m_ MutableString) InitWithString(aString string) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithString:"), aString) return rv } -// Returns an NSString object initialized by copying the characters from a given C array of UTF8-encoded bytes. [Full Topic] +// Returns an NSString object initialized by copying the characters from another given string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412128-initwithutf8string?language=objc -func NewMutableStringWithUTF8String(nullTerminatedCString *uint8) MutableString { - instance := MutableStringClass.Alloc().InitWithUTF8String(nullTerminatedCString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411293-initwithstring?language=objc +func NewMutableStringWithString(aString string) MutableString { + instance := MutableStringClass.Alloc().InitWithString(aString) instance.Autorelease() return instance } -func (mc _MutableStringClass) StringWithCStringEncoding(cString *uint8, enc StringEncoding) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("stringWithCString:encoding:"), cString, enc) - return rv -} - -// Returns a string containing the bytes in a given C array, interpreted according to a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497310-stringwithcstring?language=objc -func MutableString_StringWithCStringEncoding(cString *uint8, enc StringEncoding) MutableString { - return MutableStringClass.StringWithCStringEncoding(cString, enc) -} - -func (m_ MutableString) InitWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error unsafe.Pointer) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithContentsOfFile:usedEncoding:error:"), path, enc, error) +func (m_ MutableString) InitWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding StringEncoding) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithBytes:length:encoding:"), bytes, len, encoding) return rv } -// Returns an NSString object initialized by reading data from the file at a given path and returns by reference the encoding used to interpret the characters. [Full Topic] +// Returns an initialized NSString object containing a given number of bytes from a given buffer of bytes interpreted in a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1418227-initwithcontentsoffile?language=objc -func NewMutableStringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error unsafe.Pointer) MutableString { - instance := MutableStringClass.Alloc().InitWithContentsOfFileUsedEncodingError(path, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407339-initwithbytes?language=objc +func NewMutableStringWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding StringEncoding) MutableString { + instance := MutableStringClass.Alloc().InitWithBytesLengthEncoding(bytes, len, encoding) instance.Autorelease() return instance } @@ -312,60 +182,44 @@ func MutableString_StringWithCharactersLength(characters *Unichar, length uint) return MutableStringClass.StringWithCharactersLength(characters, length) } -func (m_ MutableString) InitWithCharactersNoCopyLengthDeallocator(chars *Unichar, len uint, deallocator func(arg0 *Unichar, arg1 uint)) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithCharactersNoCopy:length:deallocator:"), chars, len, deallocator) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547180-initwithcharactersnocopy?language=objc -func NewMutableStringWithCharactersNoCopyLengthDeallocator(chars *Unichar, len uint, deallocator func(arg0 *Unichar, arg1 uint)) MutableString { - instance := MutableStringClass.Alloc().InitWithCharactersNoCopyLengthDeallocator(chars, len, deallocator) - instance.Autorelease() - return instance -} - -func (m_ MutableString) InitWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithBytesNoCopy:length:encoding:deallocator:"), bytes, len, encoding, deallocator) +func (m_ MutableString) InitWithCharactersLength(characters *Unichar, length uint) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithCharacters:length:"), characters, length) return rv } -// [Full Topic] +// Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547179-initwithbytesnocopy?language=objc -func NewMutableStringWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) MutableString { - instance := MutableStringClass.Alloc().InitWithBytesNoCopyLengthEncodingDeallocator(bytes, len, encoding, deallocator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410997-initwithcharacters?language=objc +func NewMutableStringWithCharactersLength(characters *Unichar, length uint) MutableString { + instance := MutableStringClass.Alloc().InitWithCharactersLength(characters, length) instance.Autorelease() return instance } -func (m_ MutableString) InitWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithContentsOfFile:encoding:error:"), path, enc, error) +func (m_ MutableString) InitWithUTF8String(nullTerminatedCString *uint8) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithUTF8String:"), nullTerminatedCString) return rv } -// Returns an NSString object initialized by reading data from the file at a given path using a given encoding. [Full Topic] +// Returns an NSString object initialized by copying the characters from a given C array of UTF8-encoded bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412610-initwithcontentsoffile?language=objc -func NewMutableStringWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) MutableString { - instance := MutableStringClass.Alloc().InitWithContentsOfFileEncodingError(path, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412128-initwithutf8string?language=objc +func NewMutableStringWithUTF8String(nullTerminatedCString *uint8) MutableString { + instance := MutableStringClass.Alloc().InitWithUTF8String(nullTerminatedCString) instance.Autorelease() return instance } -func (m_ MutableString) InitWithFormat(format string, args ...any) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithFormat:"), append([]any{format}, args...)...) +func (mc _MutableStringClass) LocalizedStringWithFormat(format string, args ...any) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) return rv } -// Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted. [Full Topic] +// Returns a string created by using a given format string as a template into which the remaining argument values are substituted according to the current locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497402-initwithformat?language=objc -func NewMutableStringWithFormat(format string, args ...any) MutableString { - instance := MutableStringClass.Alloc().InitWithFormat(format, args...) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497301-localizedstringwithformat?language=objc +func MutableString_LocalizedStringWithFormat(format string, args ...any) MutableString { + return MutableStringClass.LocalizedStringWithFormat(format, args...) } func (mc _MutableStringClass) StringWithUTF8String(nullTerminatedCString *uint8) MutableString { @@ -380,30 +234,43 @@ func MutableString_StringWithUTF8String(nullTerminatedCString *uint8) MutableStr return MutableStringClass.StringWithUTF8String(nullTerminatedCString) } -func (m_ MutableString) InitWithCStringEncoding(nullTerminatedCString *uint8, encoding StringEncoding) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithCString:encoding:"), nullTerminatedCString, encoding) +func (mc _MutableStringClass) StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfURL:encoding:error:"), url, enc, error) return rv } -// Returns an NSString object initialized using the characters in a given C array, interpreted according to a given encoding. [Full Topic] +// Returns a string created by reading data from a given URL interpreted using a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411950-initwithcstring?language=objc -func NewMutableStringWithCStringEncoding(nullTerminatedCString *uint8, encoding StringEncoding) MutableString { - instance := MutableStringClass.Alloc().InitWithCStringEncoding(nullTerminatedCString, encoding) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497360-stringwithcontentsofurl?language=objc +func MutableString_StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) MutableString { + return MutableStringClass.StringWithContentsOfURLEncodingError(url, enc, error) } -func (mc _MutableStringClass) LocalizedStringWithFormat(format string, args ...any) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) +func (mc _MutableStringClass) StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, error) return rv } -// Returns a string created by using a given format string as a template into which the remaining argument values are substituted according to the current locale. [Full Topic] +// Returns a string created by reading data from the file at a given path interpreted using a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497301-localizedstringwithformat?language=objc -func MutableString_LocalizedStringWithFormat(format string, args ...any) MutableString { - return MutableStringClass.LocalizedStringWithFormat(format, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497327-stringwithcontentsoffile?language=objc +func MutableString_StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) MutableString { + return MutableStringClass.StringWithContentsOfFileEncodingError(path, enc, error) +} + +// Returns an empty NSMutableString object with initial storage for a given number of characters. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1497396-stringwithcapacity?language=objc +func (mc _MutableStringClass) StringWithCapacity(capacity uint) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("stringWithCapacity:"), capacity) + return rv +} + +// Returns an empty NSMutableString object with initial storage for a given number of characters. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1497396-stringwithcapacity?language=objc +func MutableString_StringWithCapacity(capacity uint) MutableString { + return MutableStringClass.StringWithCapacity(capacity) } // Adds a constructed string to the receiver. [Full Topic] @@ -413,11 +280,11 @@ func (m_ MutableString) AppendFormat(format string, args ...any) { objc.Call[objc.Void](m_, objc.Sel("appendFormat:"), append([]any{format}, args...)...) } -// Inserts into the receiver the characters of a given string at a given location. [Full Topic] +// Removes from the receiver the characters in a given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1410999-insertstring?language=objc -func (m_ MutableString) InsertStringAtIndex(aString string, loc uint) { - objc.Call[objc.Void](m_, objc.Sel("insertString:atIndex:"), aString, loc) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1415003-deletecharactersinrange?language=objc +func (m_ MutableString) DeleteCharactersInRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("deleteCharactersInRange:"), range_) } // Transliterates the receiver by applying a specified ICU string transform. [Full Topic] @@ -428,49 +295,33 @@ func (m_ MutableString) ApplyTransformReverseRangeUpdatedRange(transform StringT return rv } -// Replaces the characters of the receiver with those in a given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1409483-setstring?language=objc -func (m_ MutableString) SetString(aString string) { - objc.Call[objc.Void](m_, objc.Sel("setString:"), aString) -} - -// Replaces all occurrences of a given string in a given range with another given string, returning the number of replacements. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1412453-replaceoccurrencesofstring?language=objc -func (m_ MutableString) ReplaceOccurrencesOfStringWithStringOptionsRange(target string, replacement string, options StringCompareOptions, searchRange Range) uint { - rv := objc.Call[uint](m_, objc.Sel("replaceOccurrencesOfString:withString:options:range:"), target, replacement, options, searchRange) - return rv -} - -// Returns an empty NSMutableString object with initial storage for a given number of characters. [Full Topic] +// Returns an NSMutableString object initialized with initial storage for a given number of characters, [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1497396-stringwithcapacity?language=objc -func (mc _MutableStringClass) StringWithCapacity(capacity uint) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("stringWithCapacity:"), capacity) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1416610-initwithcapacity?language=objc +func (m_ MutableString) InitWithCapacity(capacity uint) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithCapacity:"), capacity) return rv } -// Returns an empty NSMutableString object with initial storage for a given number of characters. [Full Topic] +// Inserts into the receiver the characters of a given string at a given location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1497396-stringwithcapacity?language=objc -func MutableString_StringWithCapacity(capacity uint) MutableString { - return MutableStringClass.StringWithCapacity(capacity) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1410999-insertstring?language=objc +func (m_ MutableString) InsertStringAtIndex(aString string, loc uint) { + objc.Call[objc.Void](m_, objc.Sel("insertString:atIndex:"), aString, loc) } -// Removes from the receiver the characters in a given range. [Full Topic] +// Adds to the end of the receiver the characters of a given string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1415003-deletecharactersinrange?language=objc -func (m_ MutableString) DeleteCharactersInRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("deleteCharactersInRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1417883-appendstring?language=objc +func (m_ MutableString) AppendString(aString string) { + objc.Call[objc.Void](m_, objc.Sel("appendString:"), aString) } -// Returns an NSMutableString object initialized with initial storage for a given number of characters, [Full Topic] +// Replaces the characters of the receiver with those in a given string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1416610-initwithcapacity?language=objc -func (m_ MutableString) InitWithCapacity(capacity uint) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithCapacity:"), capacity) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1409483-setstring?language=objc +func (m_ MutableString) SetString(aString string) { + objc.Call[objc.Void](m_, objc.Sel("setString:"), aString) } // Replaces the characters from aRange with those in aString. [Full Topic] @@ -480,9 +331,10 @@ func (m_ MutableString) ReplaceCharactersInRangeWithString(range_ Range, aString objc.Call[objc.Void](m_, objc.Sel("replaceCharactersInRange:withString:"), range_, aString) } -// Adds to the end of the receiver the characters of a given string. [Full Topic] +// Replaces all occurrences of a given string in a given range with another given string, returning the number of replacements. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1417883-appendstring?language=objc -func (m_ MutableString) AppendString(aString string) { - objc.Call[objc.Void](m_, objc.Sel("appendString:"), aString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablestring/1412453-replaceoccurrencesofstring?language=objc +func (m_ MutableString) ReplaceOccurrencesOfStringWithStringOptionsRange(target string, replacement string, options StringCompareOptions, searchRange Range) uint { + rv := objc.Call[uint](m_, objc.Sel("replaceOccurrencesOfString:withString:options:range:"), target, replacement, options, searchRange) + return rv } diff --git a/macos/foundation/mutable_url_request.gen.go b/macos/foundation/mutable_url_request.gen.go index 022ca6ad..2011293a 100644 --- a/macos/foundation/mutable_url_request.gen.go +++ b/macos/foundation/mutable_url_request.gen.go @@ -20,22 +20,22 @@ type IMutableURLRequest interface { IURLRequest AddValueForHTTPHeaderField(value string, field string) SetValueForHTTPHeaderField(value string, field string) + SetAllHTTPHeaderFields(value map[string]string) + SetMainDocumentURL(value IURL) SetHTTPShouldHandleCookies(value bool) + SetHTTPMethod(value string) + SetAllowsCellularAccess(value bool) SetURL(value IURL) + SetHTTPBodyStream(value IInputStream) SetAssumesHTTP3Capable(value bool) - SetNetworkServiceType(value URLRequestNetworkServiceType) SetAllowsExpensiveNetworkAccess(value bool) - SetAllowsCellularAccess(value bool) - SetCachePolicy(value URLRequestCachePolicy) - SetHTTPBody(value []byte) - SetMainDocumentURL(value IURL) + SetAllowsConstrainedNetworkAccess(value bool) SetTimeoutInterval(value TimeInterval) - SetHTTPMethod(value string) - SetHTTPShouldUsePipelining(value bool) SetAttribution(value URLRequestAttribution) - SetAllHTTPHeaderFields(value map[string]string) - SetAllowsConstrainedNetworkAccess(value bool) - SetHTTPBodyStream(value IInputStream) + SetHTTPBody(value []byte) + SetCachePolicy(value URLRequestCachePolicy) + SetNetworkServiceType(value URLRequestNetworkServiceType) + SetHTTPShouldUsePipelining(value bool) } // A mutable URL load request that is independent of protocol or URL scheme. [Full Topic] @@ -71,18 +71,6 @@ func (m_ MutableURLRequest) Init() MutableURLRequest { return rv } -func (mc _MutableURLRequestClass) RequestWithURLCachePolicyTimeoutInterval(URL IURL, cachePolicy URLRequestCachePolicy, timeoutInterval TimeInterval) MutableURLRequest { - rv := objc.Call[MutableURLRequest](mc, objc.Sel("requestWithURL:cachePolicy:timeoutInterval:"), URL, cachePolicy, timeoutInterval) - return rv -} - -// Creates and returns an initialized URL request with specified URL, cache policy, and timeout values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1528579-requestwithurl?language=objc -func MutableURLRequest_RequestWithURLCachePolicyTimeoutInterval(URL IURL, cachePolicy URLRequestCachePolicy, timeoutInterval TimeInterval) MutableURLRequest { - return MutableURLRequestClass.RequestWithURLCachePolicyTimeoutInterval(URL, cachePolicy, timeoutInterval) -} - func (m_ MutableURLRequest) InitWithURL(URL IURL) MutableURLRequest { rv := objc.Call[MutableURLRequest](m_, objc.Sel("initWithURL:"), URL) return rv @@ -109,20 +97,6 @@ func MutableURLRequest_RequestWithURL(URL IURL) MutableURLRequest { return MutableURLRequestClass.RequestWithURL(URL) } -func (m_ MutableURLRequest) InitWithURLCachePolicyTimeoutInterval(URL IURL, cachePolicy URLRequestCachePolicy, timeoutInterval TimeInterval) MutableURLRequest { - rv := objc.Call[MutableURLRequest](m_, objc.Sel("initWithURL:cachePolicy:timeoutInterval:"), URL, cachePolicy, timeoutInterval) - return rv -} - -// Creates a URL request with the specified URL, cache policy, and timeout values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1416292-initwithurl?language=objc -func NewMutableURLRequestWithURLCachePolicyTimeoutInterval(URL IURL, cachePolicy URLRequestCachePolicy, timeoutInterval TimeInterval) MutableURLRequest { - instance := MutableURLRequestClass.Alloc().InitWithURLCachePolicyTimeoutInterval(URL, cachePolicy, timeoutInterval) - instance.Autorelease() - return instance -} - // Adds a value to the header field. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1407676-addvalue?language=objc @@ -137,6 +111,20 @@ func (m_ MutableURLRequest) SetValueForHTTPHeaderField(value string, field strin objc.Call[objc.Void](m_, objc.Sel("setValue:forHTTPHeaderField:"), value, field) } +// A dictionary containing all of the HTTP header fields for a request. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1414617-allhttpheaderfields?language=objc +func (m_ MutableURLRequest) SetAllHTTPHeaderFields(value map[string]string) { + objc.Call[objc.Void](m_, objc.Sel("setAllHTTPHeaderFields:"), value) +} + +// The main document URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1415630-maindocumenturl?language=objc +func (m_ MutableURLRequest) SetMainDocumentURL(value IURL) { + objc.Call[objc.Void](m_, objc.Sel("setMainDocumentURL:"), value) +} + // A Boolean value that indicates whether the request should use the default cookie handling for the request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1415485-httpshouldhandlecookies?language=objc @@ -144,6 +132,20 @@ func (m_ MutableURLRequest) SetHTTPShouldHandleCookies(value bool) { objc.Call[objc.Void](m_, objc.Sel("setHTTPShouldHandleCookies:"), value) } +// The HTTP request method. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1413047-httpmethod?language=objc +func (m_ MutableURLRequest) SetHTTPMethod(value string) { + objc.Call[objc.Void](m_, objc.Sel("setHTTPMethod:"), value) +} + +// A Boolean value that indicates whether a connection can use the device’s cellular network (if present). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1416749-allowscellularaccess?language=objc +func (m_ MutableURLRequest) SetAllowsCellularAccess(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsCellularAccess:"), value) +} + // The URL being requested. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1410342-url?language=objc @@ -151,6 +153,13 @@ func (m_ MutableURLRequest) SetURL(value IURL) { objc.Call[objc.Void](m_, objc.Sel("setURL:"), value) } +// The request body as an input stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1409529-httpbodystream?language=objc +func (m_ MutableURLRequest) SetHTTPBodyStream(value IInputStream) { + objc.Call[objc.Void](m_, objc.Sel("setHTTPBodyStream:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/3735879-assumeshttp3capable?language=objc @@ -158,13 +167,6 @@ func (m_ MutableURLRequest) SetAssumesHTTP3Capable(value bool) { objc.Call[objc.Void](m_, objc.Sel("setAssumesHTTP3Capable:"), value) } -// The network service type of the connection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1412378-networkservicetype?language=objc -func (m_ MutableURLRequest) SetNetworkServiceType(value URLRequestNetworkServiceType) { - objc.Call[objc.Void](m_, objc.Sel("setNetworkServiceType:"), value) -} - // A Boolean value that indicates whether connections may use a network interface that the system considers expensive. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/3325677-allowsexpensivenetworkaccess?language=objc @@ -172,32 +174,11 @@ func (m_ MutableURLRequest) SetAllowsExpensiveNetworkAccess(value bool) { objc.Call[objc.Void](m_, objc.Sel("setAllowsExpensiveNetworkAccess:"), value) } -// A Boolean value that indicates whether a connection can use the device’s cellular network (if present). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1416749-allowscellularaccess?language=objc -func (m_ MutableURLRequest) SetAllowsCellularAccess(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAllowsCellularAccess:"), value) -} - -// The request’s cache policy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1414716-cachepolicy?language=objc -func (m_ MutableURLRequest) SetCachePolicy(value URLRequestCachePolicy) { - objc.Call[objc.Void](m_, objc.Sel("setCachePolicy:"), value) -} - -// The request body. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1409064-httpbody?language=objc -func (m_ MutableURLRequest) SetHTTPBody(value []byte) { - objc.Call[objc.Void](m_, objc.Sel("setHTTPBody:"), value) -} - -// The main document URL. [Full Topic] +// A Boolean value that indicates whether connections may use the network when the user has specified Low Data Mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1415630-maindocumenturl?language=objc -func (m_ MutableURLRequest) SetMainDocumentURL(value IURL) { - objc.Call[objc.Void](m_, objc.Sel("setMainDocumentURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/3325676-allowsconstrainednetworkaccess?language=objc +func (m_ MutableURLRequest) SetAllowsConstrainedNetworkAccess(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsConstrainedNetworkAccess:"), value) } // The request’s timeout interval, in seconds. [Full Topic] @@ -207,20 +188,6 @@ func (m_ MutableURLRequest) SetTimeoutInterval(value TimeInterval) { objc.Call[objc.Void](m_, objc.Sel("setTimeoutInterval:"), value) } -// The HTTP request method. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1413047-httpmethod?language=objc -func (m_ MutableURLRequest) SetHTTPMethod(value string) { - objc.Call[objc.Void](m_, objc.Sel("setHTTPMethod:"), value) -} - -// A Boolean value that indicates whether the request can continue transmitting data before receiving a response from an earlier transmission. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1412705-httpshouldusepipelining?language=objc -func (m_ MutableURLRequest) SetHTTPShouldUsePipelining(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setHTTPShouldUsePipelining:"), value) -} - // The entity that initiates the network request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/3746972-attribution?language=objc @@ -228,23 +195,30 @@ func (m_ MutableURLRequest) SetAttribution(value URLRequestAttribution) { objc.Call[objc.Void](m_, objc.Sel("setAttribution:"), value) } -// A dictionary containing all of the HTTP header fields for a request. [Full Topic] +// The request body. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1414617-allhttpheaderfields?language=objc -func (m_ MutableURLRequest) SetAllHTTPHeaderFields(value map[string]string) { - objc.Call[objc.Void](m_, objc.Sel("setAllHTTPHeaderFields:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1409064-httpbody?language=objc +func (m_ MutableURLRequest) SetHTTPBody(value []byte) { + objc.Call[objc.Void](m_, objc.Sel("setHTTPBody:"), value) } -// A Boolean value that indicates whether connections may use the network when the user has specified Low Data Mode. [Full Topic] +// The request’s cache policy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/3325676-allowsconstrainednetworkaccess?language=objc -func (m_ MutableURLRequest) SetAllowsConstrainedNetworkAccess(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAllowsConstrainedNetworkAccess:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1414716-cachepolicy?language=objc +func (m_ MutableURLRequest) SetCachePolicy(value URLRequestCachePolicy) { + objc.Call[objc.Void](m_, objc.Sel("setCachePolicy:"), value) } -// The request body as an input stream. [Full Topic] +// The network service type of the connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1409529-httpbodystream?language=objc -func (m_ MutableURLRequest) SetHTTPBodyStream(value IInputStream) { - objc.Call[objc.Void](m_, objc.Sel("setHTTPBodyStream:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1412378-networkservicetype?language=objc +func (m_ MutableURLRequest) SetNetworkServiceType(value URLRequestNetworkServiceType) { + objc.Call[objc.Void](m_, objc.Sel("setNetworkServiceType:"), value) +} + +// A Boolean value that indicates whether the request can continue transmitting data before receiving a response from an earlier transmission. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1412705-httpshouldusepipelining?language=objc +func (m_ MutableURLRequest) SetHTTPShouldUsePipelining(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setHTTPShouldUsePipelining:"), value) } diff --git a/macos/foundation/name_specifier.gen.go b/macos/foundation/name_specifier.gen.go index 33892176..0b7709ae 100644 --- a/macos/foundation/name_specifier.gen.go +++ b/macos/foundation/name_specifier.gen.go @@ -40,7 +40,7 @@ func (n_ NameSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyNa return rv } -// Invokes the super class’s [foundation/nsscriptobjectspecifier/initwithcontainerclassdescriptio] method and then sets the name instance variable to name. [Full Topic] +// Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key: method and then sets the name instance variable to name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnamespecifier/1408615-initwithcontainerclassdescriptio?language=objc func NewNameSpecifierWithContainerClassDescriptionContainerSpecifierKeyName(classDesc IScriptClassDescription, container IScriptObjectSpecifier, property string, name string) NameSpecifier { diff --git a/macos/foundation/net_service_browser_delegate.gen.go b/macos/foundation/net_service_browser_delegate.gen.go index c4626cbe..dd4e1868 100644 --- a/macos/foundation/net_service_browser_delegate.gen.go +++ b/macos/foundation/net_service_browser_delegate.gen.go @@ -10,80 +10,26 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate?language=objc type PNetServiceBrowserDelegate interface { - // optional - NetServiceBrowserDidRemoveServiceMoreComing(browser NetServiceBrowser, service NetService, moreComing bool) - HasNetServiceBrowserDidRemoveServiceMoreComing() bool - - // optional - NetServiceBrowserDidNotSearch(browser NetServiceBrowser, errorDict map[string]Number) - HasNetServiceBrowserDidNotSearch() bool - // optional NetServiceBrowserWillSearch(browser NetServiceBrowser) HasNetServiceBrowserWillSearch() bool // optional - NetServiceBrowserDidFindDomainMoreComing(browser NetServiceBrowser, domainString string, moreComing bool) - HasNetServiceBrowserDidFindDomainMoreComing() bool + NetServiceBrowserDidNotSearch(browser NetServiceBrowser, errorDict map[string]Number) + HasNetServiceBrowserDidNotSearch() bool // optional NetServiceBrowserDidStopSearch(browser NetServiceBrowser) HasNetServiceBrowserDidStopSearch() bool - - // optional - NetServiceBrowserDidRemoveDomainMoreComing(browser NetServiceBrowser, domainString string, moreComing bool) - HasNetServiceBrowserDidRemoveDomainMoreComing() bool - - // optional - NetServiceBrowserDidFindServiceMoreComing(browser NetServiceBrowser, service NetService, moreComing bool) - HasNetServiceBrowserDidFindServiceMoreComing() bool } // A delegate implementation builder for the [PNetServiceBrowserDelegate] protocol. type NetServiceBrowserDelegate struct { - _NetServiceBrowserDidRemoveServiceMoreComing func(browser NetServiceBrowser, service NetService, moreComing bool) - _NetServiceBrowserDidNotSearch func(browser NetServiceBrowser, errorDict map[string]Number) - _NetServiceBrowserWillSearch func(browser NetServiceBrowser) - _NetServiceBrowserDidFindDomainMoreComing func(browser NetServiceBrowser, domainString string, moreComing bool) - _NetServiceBrowserDidStopSearch func(browser NetServiceBrowser) - _NetServiceBrowserDidRemoveDomainMoreComing func(browser NetServiceBrowser, domainString string, moreComing bool) - _NetServiceBrowserDidFindServiceMoreComing func(browser NetServiceBrowser, service NetService, moreComing bool) -} - -func (di *NetServiceBrowserDelegate) HasNetServiceBrowserDidRemoveServiceMoreComing() bool { - return di._NetServiceBrowserDidRemoveServiceMoreComing != nil -} - -// Tells the delegate a service has disappeared or has become unavailable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1412917-netservicebrowser?language=objc -func (di *NetServiceBrowserDelegate) SetNetServiceBrowserDidRemoveServiceMoreComing(f func(browser NetServiceBrowser, service NetService, moreComing bool)) { - di._NetServiceBrowserDidRemoveServiceMoreComing = f -} - -// Tells the delegate a service has disappeared or has become unavailable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1412917-netservicebrowser?language=objc -func (di *NetServiceBrowserDelegate) NetServiceBrowserDidRemoveServiceMoreComing(browser NetServiceBrowser, service NetService, moreComing bool) { - di._NetServiceBrowserDidRemoveServiceMoreComing(browser, service, moreComing) -} -func (di *NetServiceBrowserDelegate) HasNetServiceBrowserDidNotSearch() bool { - return di._NetServiceBrowserDidNotSearch != nil + _NetServiceBrowserWillSearch func(browser NetServiceBrowser) + _NetServiceBrowserDidNotSearch func(browser NetServiceBrowser, errorDict map[string]Number) + _NetServiceBrowserDidStopSearch func(browser NetServiceBrowser) } -// Tells the delegate that a search was not successful. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1410567-netservicebrowser?language=objc -func (di *NetServiceBrowserDelegate) SetNetServiceBrowserDidNotSearch(f func(browser NetServiceBrowser, errorDict map[string]Number)) { - di._NetServiceBrowserDidNotSearch = f -} - -// Tells the delegate that a search was not successful. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1410567-netservicebrowser?language=objc -func (di *NetServiceBrowserDelegate) NetServiceBrowserDidNotSearch(browser NetServiceBrowser, errorDict map[string]Number) { - di._NetServiceBrowserDidNotSearch(browser, errorDict) -} func (di *NetServiceBrowserDelegate) HasNetServiceBrowserWillSearch() bool { return di._NetServiceBrowserWillSearch != nil } @@ -101,22 +47,22 @@ func (di *NetServiceBrowserDelegate) SetNetServiceBrowserWillSearch(f func(brows func (di *NetServiceBrowserDelegate) NetServiceBrowserWillSearch(browser NetServiceBrowser) { di._NetServiceBrowserWillSearch(browser) } -func (di *NetServiceBrowserDelegate) HasNetServiceBrowserDidFindDomainMoreComing() bool { - return di._NetServiceBrowserDidFindDomainMoreComing != nil +func (di *NetServiceBrowserDelegate) HasNetServiceBrowserDidNotSearch() bool { + return di._NetServiceBrowserDidNotSearch != nil } -// Tells the delegate the sender found a domain. [Full Topic] +// Tells the delegate that a search was not successful. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1407204-netservicebrowser?language=objc -func (di *NetServiceBrowserDelegate) SetNetServiceBrowserDidFindDomainMoreComing(f func(browser NetServiceBrowser, domainString string, moreComing bool)) { - di._NetServiceBrowserDidFindDomainMoreComing = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1410567-netservicebrowser?language=objc +func (di *NetServiceBrowserDelegate) SetNetServiceBrowserDidNotSearch(f func(browser NetServiceBrowser, errorDict map[string]Number)) { + di._NetServiceBrowserDidNotSearch = f } -// Tells the delegate the sender found a domain. [Full Topic] +// Tells the delegate that a search was not successful. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1407204-netservicebrowser?language=objc -func (di *NetServiceBrowserDelegate) NetServiceBrowserDidFindDomainMoreComing(browser NetServiceBrowser, domainString string, moreComing bool) { - di._NetServiceBrowserDidFindDomainMoreComing(browser, domainString, moreComing) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1410567-netservicebrowser?language=objc +func (di *NetServiceBrowserDelegate) NetServiceBrowserDidNotSearch(browser NetServiceBrowser, errorDict map[string]Number) { + di._NetServiceBrowserDidNotSearch(browser, errorDict) } func (di *NetServiceBrowserDelegate) HasNetServiceBrowserDidStopSearch() bool { return di._NetServiceBrowserDidStopSearch != nil @@ -135,40 +81,6 @@ func (di *NetServiceBrowserDelegate) SetNetServiceBrowserDidStopSearch(f func(br func (di *NetServiceBrowserDelegate) NetServiceBrowserDidStopSearch(browser NetServiceBrowser) { di._NetServiceBrowserDidStopSearch(browser) } -func (di *NetServiceBrowserDelegate) HasNetServiceBrowserDidRemoveDomainMoreComing() bool { - return di._NetServiceBrowserDidRemoveDomainMoreComing != nil -} - -// Tells the delegate the a domain has disappeared or has become unavailable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1412712-netservicebrowser?language=objc -func (di *NetServiceBrowserDelegate) SetNetServiceBrowserDidRemoveDomainMoreComing(f func(browser NetServiceBrowser, domainString string, moreComing bool)) { - di._NetServiceBrowserDidRemoveDomainMoreComing = f -} - -// Tells the delegate the a domain has disappeared or has become unavailable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1412712-netservicebrowser?language=objc -func (di *NetServiceBrowserDelegate) NetServiceBrowserDidRemoveDomainMoreComing(browser NetServiceBrowser, domainString string, moreComing bool) { - di._NetServiceBrowserDidRemoveDomainMoreComing(browser, domainString, moreComing) -} -func (di *NetServiceBrowserDelegate) HasNetServiceBrowserDidFindServiceMoreComing() bool { - return di._NetServiceBrowserDidFindServiceMoreComing != nil -} - -// Tells the delegate the sender found a service. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1417979-netservicebrowser?language=objc -func (di *NetServiceBrowserDelegate) SetNetServiceBrowserDidFindServiceMoreComing(f func(browser NetServiceBrowser, service NetService, moreComing bool)) { - di._NetServiceBrowserDidFindServiceMoreComing = f -} - -// Tells the delegate the sender found a service. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1417979-netservicebrowser?language=objc -func (di *NetServiceBrowserDelegate) NetServiceBrowserDidFindServiceMoreComing(browser NetServiceBrowser, service NetService, moreComing bool) { - di._NetServiceBrowserDidFindServiceMoreComing(browser, service, moreComing) -} // ensure impl type implements protocol interface var _ PNetServiceBrowserDelegate = (*NetServiceBrowserDelegateObject)(nil) @@ -178,28 +90,6 @@ type NetServiceBrowserDelegateObject struct { objc.Object } -func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidRemoveServiceMoreComing() bool { - return n_.RespondsToSelector(objc.Sel("netServiceBrowser:didRemoveService:moreComing:")) -} - -// Tells the delegate a service has disappeared or has become unavailable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1412917-netservicebrowser?language=objc -func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserDidRemoveServiceMoreComing(browser NetServiceBrowser, service NetService, moreComing bool) { - objc.Call[objc.Void](n_, objc.Sel("netServiceBrowser:didRemoveService:moreComing:"), browser, service, moreComing) -} - -func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidNotSearch() bool { - return n_.RespondsToSelector(objc.Sel("netServiceBrowser:didNotSearch:")) -} - -// Tells the delegate that a search was not successful. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1410567-netservicebrowser?language=objc -func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserDidNotSearch(browser NetServiceBrowser, errorDict map[string]Number) { - objc.Call[objc.Void](n_, objc.Sel("netServiceBrowser:didNotSearch:"), browser, errorDict) -} - func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserWillSearch() bool { return n_.RespondsToSelector(objc.Sel("netServiceBrowserWillSearch:")) } @@ -211,15 +101,15 @@ func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserWillSearch(browser Ne objc.Call[objc.Void](n_, objc.Sel("netServiceBrowserWillSearch:"), browser) } -func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidFindDomainMoreComing() bool { - return n_.RespondsToSelector(objc.Sel("netServiceBrowser:didFindDomain:moreComing:")) +func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidNotSearch() bool { + return n_.RespondsToSelector(objc.Sel("netServiceBrowser:didNotSearch:")) } -// Tells the delegate the sender found a domain. [Full Topic] +// Tells the delegate that a search was not successful. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1407204-netservicebrowser?language=objc -func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserDidFindDomainMoreComing(browser NetServiceBrowser, domainString string, moreComing bool) { - objc.Call[objc.Void](n_, objc.Sel("netServiceBrowser:didFindDomain:moreComing:"), browser, domainString, moreComing) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1410567-netservicebrowser?language=objc +func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserDidNotSearch(browser NetServiceBrowser, errorDict map[string]Number) { + objc.Call[objc.Void](n_, objc.Sel("netServiceBrowser:didNotSearch:"), browser, errorDict) } func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidStopSearch() bool { @@ -232,25 +122,3 @@ func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidStopSearch() bo func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserDidStopSearch(browser NetServiceBrowser) { objc.Call[objc.Void](n_, objc.Sel("netServiceBrowserDidStopSearch:"), browser) } - -func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidRemoveDomainMoreComing() bool { - return n_.RespondsToSelector(objc.Sel("netServiceBrowser:didRemoveDomain:moreComing:")) -} - -// Tells the delegate the a domain has disappeared or has become unavailable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1412712-netservicebrowser?language=objc -func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserDidRemoveDomainMoreComing(browser NetServiceBrowser, domainString string, moreComing bool) { - objc.Call[objc.Void](n_, objc.Sel("netServiceBrowser:didRemoveDomain:moreComing:"), browser, domainString, moreComing) -} - -func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidFindServiceMoreComing() bool { - return n_.RespondsToSelector(objc.Sel("netServiceBrowser:didFindService:moreComing:")) -} - -// Tells the delegate the sender found a service. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1417979-netservicebrowser?language=objc -func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserDidFindServiceMoreComing(browser NetServiceBrowser, service NetService, moreComing bool) { - objc.Call[objc.Void](n_, objc.Sel("netServiceBrowser:didFindService:moreComing:"), browser, service, moreComing) -} diff --git a/macos/foundation/net_service_delegate.gen.go b/macos/foundation/net_service_delegate.gen.go index a5ca8476..60e28fe3 100644 --- a/macos/foundation/net_service_delegate.gen.go +++ b/macos/foundation/net_service_delegate.gen.go @@ -10,73 +10,41 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate?language=objc type PNetServiceDelegate interface { - // optional - NetServiceDidNotResolve(sender NetService, errorDict map[string]Number) - HasNetServiceDidNotResolve() bool - // optional NetServiceDidResolveAddress(sender NetService) HasNetServiceDidResolveAddress() bool // optional - NetServiceDidStop(sender NetService) - HasNetServiceDidStop() bool - - // optional - NetServiceDidAcceptConnectionWithInputStreamOutputStream(sender NetService, inputStream InputStream, outputStream OutputStream) - HasNetServiceDidAcceptConnectionWithInputStreamOutputStream() bool + NetServiceWillResolve(sender NetService) + HasNetServiceWillResolve() bool // optional NetServiceDidPublish(sender NetService) HasNetServiceDidPublish() bool - // optional - NetServiceDidUpdateTXTRecordData(sender NetService, data []byte) - HasNetServiceDidUpdateTXTRecordData() bool - // optional NetServiceWillPublish(sender NetService) HasNetServiceWillPublish() bool // optional - NetServiceDidNotPublish(sender NetService, errorDict map[string]Number) - HasNetServiceDidNotPublish() bool + NetServiceDidStop(sender NetService) + HasNetServiceDidStop() bool // optional - NetServiceWillResolve(sender NetService) - HasNetServiceWillResolve() bool + NetServiceDidUpdateTXTRecordData(sender NetService, data []byte) + HasNetServiceDidUpdateTXTRecordData() bool } // A delegate implementation builder for the [PNetServiceDelegate] protocol. type NetServiceDelegate struct { - _NetServiceDidNotResolve func(sender NetService, errorDict map[string]Number) - _NetServiceDidResolveAddress func(sender NetService) - _NetServiceDidStop func(sender NetService) - _NetServiceDidAcceptConnectionWithInputStreamOutputStream func(sender NetService, inputStream InputStream, outputStream OutputStream) - _NetServiceDidPublish func(sender NetService) - _NetServiceDidUpdateTXTRecordData func(sender NetService, data []byte) - _NetServiceWillPublish func(sender NetService) - _NetServiceDidNotPublish func(sender NetService, errorDict map[string]Number) - _NetServiceWillResolve func(sender NetService) + _NetServiceDidResolveAddress func(sender NetService) + _NetServiceWillResolve func(sender NetService) + _NetServiceDidPublish func(sender NetService) + _NetServiceWillPublish func(sender NetService) + _NetServiceDidStop func(sender NetService) + _NetServiceDidUpdateTXTRecordData func(sender NetService, data []byte) } -func (di *NetServiceDelegate) HasNetServiceDidNotResolve() bool { - return di._NetServiceDidNotResolve != nil -} - -// Informs the delegate that an error occurred during resolution of a given service. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1414161-netservice?language=objc -func (di *NetServiceDelegate) SetNetServiceDidNotResolve(f func(sender NetService, errorDict map[string]Number)) { - di._NetServiceDidNotResolve = f -} - -// Informs the delegate that an error occurred during resolution of a given service. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1414161-netservice?language=objc -func (di *NetServiceDelegate) NetServiceDidNotResolve(sender NetService, errorDict map[string]Number) { - di._NetServiceDidNotResolve(sender, errorDict) -} func (di *NetServiceDelegate) HasNetServiceDidResolveAddress() bool { return di._NetServiceDidResolveAddress != nil } @@ -94,39 +62,22 @@ func (di *NetServiceDelegate) SetNetServiceDidResolveAddress(f func(sender NetSe func (di *NetServiceDelegate) NetServiceDidResolveAddress(sender NetService) { di._NetServiceDidResolveAddress(sender) } -func (di *NetServiceDelegate) HasNetServiceDidStop() bool { - return di._NetServiceDidStop != nil -} - -// Informs the delegate that a [foundation/nsnetservice/publish] or [foundation/nsnetservice/resolvewithtimeout] request was stopped. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1409726-netservicedidstop?language=objc -func (di *NetServiceDelegate) SetNetServiceDidStop(f func(sender NetService)) { - di._NetServiceDidStop = f -} - -// Informs the delegate that a [foundation/nsnetservice/publish] or [foundation/nsnetservice/resolvewithtimeout] request was stopped. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1409726-netservicedidstop?language=objc -func (di *NetServiceDelegate) NetServiceDidStop(sender NetService) { - di._NetServiceDidStop(sender) -} -func (di *NetServiceDelegate) HasNetServiceDidAcceptConnectionWithInputStreamOutputStream() bool { - return di._NetServiceDidAcceptConnectionWithInputStreamOutputStream != nil +func (di *NetServiceDelegate) HasNetServiceWillResolve() bool { + return di._NetServiceWillResolve != nil } -// Called when a client connects to a service managed by Bonjour. [Full Topic] +// Notifies the delegate that the network is ready to resolve the service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1407489-netservice?language=objc -func (di *NetServiceDelegate) SetNetServiceDidAcceptConnectionWithInputStreamOutputStream(f func(sender NetService, inputStream InputStream, outputStream OutputStream)) { - di._NetServiceDidAcceptConnectionWithInputStreamOutputStream = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1416022-netservicewillresolve?language=objc +func (di *NetServiceDelegate) SetNetServiceWillResolve(f func(sender NetService)) { + di._NetServiceWillResolve = f } -// Called when a client connects to a service managed by Bonjour. [Full Topic] +// Notifies the delegate that the network is ready to resolve the service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1407489-netservice?language=objc -func (di *NetServiceDelegate) NetServiceDidAcceptConnectionWithInputStreamOutputStream(sender NetService, inputStream InputStream, outputStream OutputStream) { - di._NetServiceDidAcceptConnectionWithInputStreamOutputStream(sender, inputStream, outputStream) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1416022-netservicewillresolve?language=objc +func (di *NetServiceDelegate) NetServiceWillResolve(sender NetService) { + di._NetServiceWillResolve(sender) } func (di *NetServiceDelegate) HasNetServiceDidPublish() bool { return di._NetServiceDidPublish != nil @@ -145,23 +96,6 @@ func (di *NetServiceDelegate) SetNetServiceDidPublish(f func(sender NetService)) func (di *NetServiceDelegate) NetServiceDidPublish(sender NetService) { di._NetServiceDidPublish(sender) } -func (di *NetServiceDelegate) HasNetServiceDidUpdateTXTRecordData() bool { - return di._NetServiceDidUpdateTXTRecordData != nil -} - -// Notifies the delegate that the TXT record for a given service has been updated. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1413199-netservice?language=objc -func (di *NetServiceDelegate) SetNetServiceDidUpdateTXTRecordData(f func(sender NetService, data []byte)) { - di._NetServiceDidUpdateTXTRecordData = f -} - -// Notifies the delegate that the TXT record for a given service has been updated. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1413199-netservice?language=objc -func (di *NetServiceDelegate) NetServiceDidUpdateTXTRecordData(sender NetService, data []byte) { - di._NetServiceDidUpdateTXTRecordData(sender, data) -} func (di *NetServiceDelegate) HasNetServiceWillPublish() bool { return di._NetServiceWillPublish != nil } @@ -179,39 +113,39 @@ func (di *NetServiceDelegate) SetNetServiceWillPublish(f func(sender NetService) func (di *NetServiceDelegate) NetServiceWillPublish(sender NetService) { di._NetServiceWillPublish(sender) } -func (di *NetServiceDelegate) HasNetServiceDidNotPublish() bool { - return di._NetServiceDidNotPublish != nil +func (di *NetServiceDelegate) HasNetServiceDidStop() bool { + return di._NetServiceDidStop != nil } -// Notifies the delegate that a service could not be published. [Full Topic] +// Informs the delegate that a publish or resolveWithTimeout: request was stopped. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1417101-netservice?language=objc -func (di *NetServiceDelegate) SetNetServiceDidNotPublish(f func(sender NetService, errorDict map[string]Number)) { - di._NetServiceDidNotPublish = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1409726-netservicedidstop?language=objc +func (di *NetServiceDelegate) SetNetServiceDidStop(f func(sender NetService)) { + di._NetServiceDidStop = f } -// Notifies the delegate that a service could not be published. [Full Topic] +// Informs the delegate that a publish or resolveWithTimeout: request was stopped. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1417101-netservice?language=objc -func (di *NetServiceDelegate) NetServiceDidNotPublish(sender NetService, errorDict map[string]Number) { - di._NetServiceDidNotPublish(sender, errorDict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1409726-netservicedidstop?language=objc +func (di *NetServiceDelegate) NetServiceDidStop(sender NetService) { + di._NetServiceDidStop(sender) } -func (di *NetServiceDelegate) HasNetServiceWillResolve() bool { - return di._NetServiceWillResolve != nil +func (di *NetServiceDelegate) HasNetServiceDidUpdateTXTRecordData() bool { + return di._NetServiceDidUpdateTXTRecordData != nil } -// Notifies the delegate that the network is ready to resolve the service. [Full Topic] +// Notifies the delegate that the TXT record for a given service has been updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1416022-netservicewillresolve?language=objc -func (di *NetServiceDelegate) SetNetServiceWillResolve(f func(sender NetService)) { - di._NetServiceWillResolve = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1413199-netservice?language=objc +func (di *NetServiceDelegate) SetNetServiceDidUpdateTXTRecordData(f func(sender NetService, data []byte)) { + di._NetServiceDidUpdateTXTRecordData = f } -// Notifies the delegate that the network is ready to resolve the service. [Full Topic] +// Notifies the delegate that the TXT record for a given service has been updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1416022-netservicewillresolve?language=objc -func (di *NetServiceDelegate) NetServiceWillResolve(sender NetService) { - di._NetServiceWillResolve(sender) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1413199-netservice?language=objc +func (di *NetServiceDelegate) NetServiceDidUpdateTXTRecordData(sender NetService, data []byte) { + di._NetServiceDidUpdateTXTRecordData(sender, data) } // ensure impl type implements protocol interface @@ -222,17 +156,6 @@ type NetServiceDelegateObject struct { objc.Object } -func (n_ NetServiceDelegateObject) HasNetServiceDidNotResolve() bool { - return n_.RespondsToSelector(objc.Sel("netService:didNotResolve:")) -} - -// Informs the delegate that an error occurred during resolution of a given service. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1414161-netservice?language=objc -func (n_ NetServiceDelegateObject) NetServiceDidNotResolve(sender NetService, errorDict map[string]Number) { - objc.Call[objc.Void](n_, objc.Sel("netService:didNotResolve:"), sender, errorDict) -} - func (n_ NetServiceDelegateObject) HasNetServiceDidResolveAddress() bool { return n_.RespondsToSelector(objc.Sel("netServiceDidResolveAddress:")) } @@ -244,26 +167,15 @@ func (n_ NetServiceDelegateObject) NetServiceDidResolveAddress(sender NetService objc.Call[objc.Void](n_, objc.Sel("netServiceDidResolveAddress:"), sender) } -func (n_ NetServiceDelegateObject) HasNetServiceDidStop() bool { - return n_.RespondsToSelector(objc.Sel("netServiceDidStop:")) -} - -// Informs the delegate that a [foundation/nsnetservice/publish] or [foundation/nsnetservice/resolvewithtimeout] request was stopped. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1409726-netservicedidstop?language=objc -func (n_ NetServiceDelegateObject) NetServiceDidStop(sender NetService) { - objc.Call[objc.Void](n_, objc.Sel("netServiceDidStop:"), sender) -} - -func (n_ NetServiceDelegateObject) HasNetServiceDidAcceptConnectionWithInputStreamOutputStream() bool { - return n_.RespondsToSelector(objc.Sel("netService:didAcceptConnectionWithInputStream:outputStream:")) +func (n_ NetServiceDelegateObject) HasNetServiceWillResolve() bool { + return n_.RespondsToSelector(objc.Sel("netServiceWillResolve:")) } -// Called when a client connects to a service managed by Bonjour. [Full Topic] +// Notifies the delegate that the network is ready to resolve the service. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1407489-netservice?language=objc -func (n_ NetServiceDelegateObject) NetServiceDidAcceptConnectionWithInputStreamOutputStream(sender NetService, inputStream InputStream, outputStream OutputStream) { - objc.Call[objc.Void](n_, objc.Sel("netService:didAcceptConnectionWithInputStream:outputStream:"), sender, inputStream, outputStream) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1416022-netservicewillresolve?language=objc +func (n_ NetServiceDelegateObject) NetServiceWillResolve(sender NetService) { + objc.Call[objc.Void](n_, objc.Sel("netServiceWillResolve:"), sender) } func (n_ NetServiceDelegateObject) HasNetServiceDidPublish() bool { @@ -277,17 +189,6 @@ func (n_ NetServiceDelegateObject) NetServiceDidPublish(sender NetService) { objc.Call[objc.Void](n_, objc.Sel("netServiceDidPublish:"), sender) } -func (n_ NetServiceDelegateObject) HasNetServiceDidUpdateTXTRecordData() bool { - return n_.RespondsToSelector(objc.Sel("netService:didUpdateTXTRecordData:")) -} - -// Notifies the delegate that the TXT record for a given service has been updated. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1413199-netservice?language=objc -func (n_ NetServiceDelegateObject) NetServiceDidUpdateTXTRecordData(sender NetService, data []byte) { - objc.Call[objc.Void](n_, objc.Sel("netService:didUpdateTXTRecordData:"), sender, data) -} - func (n_ NetServiceDelegateObject) HasNetServiceWillPublish() bool { return n_.RespondsToSelector(objc.Sel("netServiceWillPublish:")) } @@ -299,24 +200,24 @@ func (n_ NetServiceDelegateObject) NetServiceWillPublish(sender NetService) { objc.Call[objc.Void](n_, objc.Sel("netServiceWillPublish:"), sender) } -func (n_ NetServiceDelegateObject) HasNetServiceDidNotPublish() bool { - return n_.RespondsToSelector(objc.Sel("netService:didNotPublish:")) +func (n_ NetServiceDelegateObject) HasNetServiceDidStop() bool { + return n_.RespondsToSelector(objc.Sel("netServiceDidStop:")) } -// Notifies the delegate that a service could not be published. [Full Topic] +// Informs the delegate that a publish or resolveWithTimeout: request was stopped. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1417101-netservice?language=objc -func (n_ NetServiceDelegateObject) NetServiceDidNotPublish(sender NetService, errorDict map[string]Number) { - objc.Call[objc.Void](n_, objc.Sel("netService:didNotPublish:"), sender, errorDict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1409726-netservicedidstop?language=objc +func (n_ NetServiceDelegateObject) NetServiceDidStop(sender NetService) { + objc.Call[objc.Void](n_, objc.Sel("netServiceDidStop:"), sender) } -func (n_ NetServiceDelegateObject) HasNetServiceWillResolve() bool { - return n_.RespondsToSelector(objc.Sel("netServiceWillResolve:")) +func (n_ NetServiceDelegateObject) HasNetServiceDidUpdateTXTRecordData() bool { + return n_.RespondsToSelector(objc.Sel("netService:didUpdateTXTRecordData:")) } -// Notifies the delegate that the network is ready to resolve the service. [Full Topic] +// Notifies the delegate that the TXT record for a given service has been updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1416022-netservicewillresolve?language=objc -func (n_ NetServiceDelegateObject) NetServiceWillResolve(sender NetService) { - objc.Call[objc.Void](n_, objc.Sel("netServiceWillResolve:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1413199-netservice?language=objc +func (n_ NetServiceDelegateObject) NetServiceDidUpdateTXTRecordData(sender NetService, data []byte) { + objc.Call[objc.Void](n_, objc.Sel("netService:didUpdateTXTRecordData:"), sender, data) } diff --git a/macos/foundation/notification.gen.go b/macos/foundation/notification.gen.go index 52175100..564ab354 100644 --- a/macos/foundation/notification.gen.go +++ b/macos/foundation/notification.gen.go @@ -36,11 +36,20 @@ func NotificationFrom(ptr unsafe.Pointer) Notification { } } -func (n_ Notification) Init() Notification { - rv := objc.Call[Notification](n_, objc.Sel("init")) +func (n_ Notification) InitWithNameObjectUserInfo(name NotificationName, object objc.IObject, userInfo Dictionary) Notification { + rv := objc.Call[Notification](n_, objc.Sel("initWithName:object:userInfo:"), name, object, userInfo) return rv } +// Initializes a notification with a specified name, object, and user information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotification/1415764-initwithname?language=objc +func NewNotificationWithNameObjectUserInfo(name NotificationName, object objc.IObject, userInfo Dictionary) Notification { + instance := NotificationClass.Alloc().InitWithNameObjectUserInfo(name, object, userInfo) + instance.Autorelease() + return instance +} + func (nc _NotificationClass) NotificationWithNameObject(aName NotificationName, anObject objc.IObject) Notification { rv := objc.Call[Notification](nc, objc.Sel("notificationWithName:object:"), aName, anObject) return rv @@ -53,32 +62,11 @@ func Notification_NotificationWithNameObject(aName NotificationName, anObject ob return NotificationClass.NotificationWithNameObject(aName, anObject) } -func (nc _NotificationClass) NotificationWithNameObjectUserInfo(aName NotificationName, anObject objc.IObject, aUserInfo Dictionary) Notification { - rv := objc.Call[Notification](nc, objc.Sel("notificationWithName:object:userInfo:"), aName, anObject, aUserInfo) - return rv -} - -// Returns a notification object with a specified name, object, and user information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotification/1574705-notificationwithname?language=objc -func Notification_NotificationWithNameObjectUserInfo(aName NotificationName, anObject objc.IObject, aUserInfo Dictionary) Notification { - return NotificationClass.NotificationWithNameObjectUserInfo(aName, anObject, aUserInfo) -} - -func (n_ Notification) InitWithNameObjectUserInfo(name NotificationName, object objc.IObject, userInfo Dictionary) Notification { - rv := objc.Call[Notification](n_, objc.Sel("initWithName:object:userInfo:"), name, object, userInfo) +func (n_ Notification) Init() Notification { + rv := objc.Call[Notification](n_, objc.Sel("init")) return rv } -// Initializes a notification with a specified name, object, and user information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotification/1415764-initwithname?language=objc -func NewNotificationWithNameObjectUserInfo(name NotificationName, object objc.IObject, userInfo Dictionary) Notification { - instance := NotificationClass.Alloc().InitWithNameObjectUserInfo(name, object, userInfo) - instance.Autorelease() - return instance -} - func (nc _NotificationClass) Alloc() Notification { rv := objc.Call[Notification](nc, objc.Sel("alloc")) return rv diff --git a/macos/foundation/notification_center.gen.go b/macos/foundation/notification_center.gen.go index 23f374d9..55eb845c 100644 --- a/macos/foundation/notification_center.gen.go +++ b/macos/foundation/notification_center.gen.go @@ -18,13 +18,11 @@ type _NotificationCenterClass struct { // An interface definition for the [NotificationCenter] class. type INotificationCenter interface { objc.IObject + PostNotificationNameObjectUserInfo(aName NotificationName, anObject objc.IObject, aUserInfo Dictionary) + AddObserverForNameObjectQueueUsingBlock(name NotificationName, obj objc.IObject, queue IOperationQueue, block func(notification Notification)) objc.Object + RemoveObserverNameObject(observer objc.IObject, aName NotificationName, anObject objc.IObject) AddObserverSelectorNameObject(observer objc.IObject, aSelector objc.Selector, aName NotificationName, anObject objc.IObject) PostNotification(notification INotification) - RemoveObserverNameObject(observer objc.IObject, aName NotificationName, anObject objc.IObject) - RemoveObserver(observer objc.IObject) - AddObserverForNameObjectQueueUsingBlock(name NotificationName, obj objc.IObject, queue IOperationQueue, block func(notification Notification)) objc.Object - PostNotificationNameObject(aName NotificationName, anObject objc.IObject) - PostNotificationNameObjectUserInfo(aName NotificationName, anObject objc.IObject, aUserInfo Dictionary) } // A notification dispatch mechanism that enables the broadcast of information to registered observers. [Full Topic] @@ -60,18 +58,19 @@ func (n_ NotificationCenter) Init() NotificationCenter { return rv } -// Adds an entry to the notification center to call the provided selector with the notification. [Full Topic] +// Creates a notification with a given name, sender, and information and posts it to the notification center. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationcenter/1415360-addobserver?language=objc -func (n_ NotificationCenter) AddObserverSelectorNameObject(observer objc.IObject, aSelector objc.Selector, aName NotificationName, anObject objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("addObserver:selector:name:object:"), observer, aSelector, aName, anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationcenter/1410608-postnotificationname?language=objc +func (n_ NotificationCenter) PostNotificationNameObjectUserInfo(aName NotificationName, anObject objc.IObject, aUserInfo Dictionary) { + objc.Call[objc.Void](n_, objc.Sel("postNotificationName:object:userInfo:"), aName, anObject, aUserInfo) } -// Posts a given notification to the notification center. [Full Topic] +// Adds an entry to the notification center to receive notifications that passed to the provided block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationcenter/1410472-postnotification?language=objc -func (n_ NotificationCenter) PostNotification(notification INotification) { - objc.Call[objc.Void](n_, objc.Sel("postNotification:"), notification) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationcenter/1411723-addobserverforname?language=objc +func (n_ NotificationCenter) AddObserverForNameObjectQueueUsingBlock(name NotificationName, obj objc.IObject, queue IOperationQueue, block func(notification Notification)) objc.Object { + rv := objc.Call[objc.Object](n_, objc.Sel("addObserverForName:object:queue:usingBlock:"), name, obj, queue, block) + return rv } // Removes matching entries from the notification center's dispatch table. [Full Topic] @@ -81,33 +80,18 @@ func (n_ NotificationCenter) RemoveObserverNameObject(observer objc.IObject, aNa objc.Call[objc.Void](n_, objc.Sel("removeObserver:name:object:"), observer, aName, anObject) } -// Removes all entries specifying an observer from the notification center's dispatch table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationcenter/1413994-removeobserver?language=objc -func (n_ NotificationCenter) RemoveObserver(observer objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("removeObserver:"), observer) -} - -// Adds an entry to the notification center to receive notifications that passed to the provided block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationcenter/1411723-addobserverforname?language=objc -func (n_ NotificationCenter) AddObserverForNameObjectQueueUsingBlock(name NotificationName, obj objc.IObject, queue IOperationQueue, block func(notification Notification)) objc.Object { - rv := objc.Call[objc.Object](n_, objc.Sel("addObserverForName:object:queue:usingBlock:"), name, obj, queue, block) - return rv -} - -// Creates a notification with a given name and sender and posts it to the notification center. [Full Topic] +// Adds an entry to the notification center to call the provided selector with the notification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationcenter/1415812-postnotificationname?language=objc -func (n_ NotificationCenter) PostNotificationNameObject(aName NotificationName, anObject objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("postNotificationName:object:"), aName, anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationcenter/1415360-addobserver?language=objc +func (n_ NotificationCenter) AddObserverSelectorNameObject(observer objc.IObject, aSelector objc.Selector, aName NotificationName, anObject objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("addObserver:selector:name:object:"), observer, aSelector, aName, anObject) } -// Creates a notification with a given name, sender, and information and posts it to the notification center. [Full Topic] +// Posts a given notification to the notification center. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationcenter/1410608-postnotificationname?language=objc -func (n_ NotificationCenter) PostNotificationNameObjectUserInfo(aName NotificationName, anObject objc.IObject, aUserInfo Dictionary) { - objc.Call[objc.Void](n_, objc.Sel("postNotificationName:object:userInfo:"), aName, anObject, aUserInfo) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationcenter/1410472-postnotification?language=objc +func (n_ NotificationCenter) PostNotification(notification INotification) { + objc.Call[objc.Void](n_, objc.Sel("postNotification:"), notification) } // The app’s default notification center. [Full Topic] diff --git a/macos/foundation/notification_queue.gen.go b/macos/foundation/notification_queue.gen.go index 394efa18..1e80d46e 100644 --- a/macos/foundation/notification_queue.gen.go +++ b/macos/foundation/notification_queue.gen.go @@ -18,9 +18,8 @@ type _NotificationQueueClass struct { // An interface definition for the [NotificationQueue] class. type INotificationQueue interface { objc.IObject - EnqueueNotificationPostingStyleCoalesceMaskForModes(notification INotification, postingStyle PostingStyle, coalesceMask NotificationCoalescing, modes []RunLoopMode) - EnqueueNotificationPostingStyle(notification INotification, postingStyle PostingStyle) DequeueNotificationsMatchingCoalesceMask(notification INotification, coalesceMask uint) + EnqueueNotificationPostingStyle(notification INotification, postingStyle PostingStyle) } // A notification center buffer. [Full Topic] @@ -70,11 +69,11 @@ func (n_ NotificationQueue) Init() NotificationQueue { return rv } -// Adds a notification to the notification queue with a specified posting style, criteria for coalescing, and run loop mode. [Full Topic] +// Removes all notifications from the queue that match a provided notification using provided matching criteria. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationqueue/1413873-enqueuenotification?language=objc -func (n_ NotificationQueue) EnqueueNotificationPostingStyleCoalesceMaskForModes(notification INotification, postingStyle PostingStyle, coalesceMask NotificationCoalescing, modes []RunLoopMode) { - objc.Call[objc.Void](n_, objc.Sel("enqueueNotification:postingStyle:coalesceMask:forModes:"), notification, postingStyle, coalesceMask, modes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationqueue/1416688-dequeuenotificationsmatching?language=objc +func (n_ NotificationQueue) DequeueNotificationsMatchingCoalesceMask(notification INotification, coalesceMask uint) { + objc.Call[objc.Void](n_, objc.Sel("dequeueNotificationsMatching:coalesceMask:"), notification, coalesceMask) } // Adds a notification to the notification queue with a specified posting style. [Full Topic] @@ -84,13 +83,6 @@ func (n_ NotificationQueue) EnqueueNotificationPostingStyle(notification INotifi objc.Call[objc.Void](n_, objc.Sel("enqueueNotification:postingStyle:"), notification, postingStyle) } -// Removes all notifications from the queue that match a provided notification using provided matching criteria. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationqueue/1416688-dequeuenotificationsmatching?language=objc -func (n_ NotificationQueue) DequeueNotificationsMatchingCoalesceMask(notification INotification, coalesceMask uint) { - objc.Call[objc.Void](n_, objc.Sel("dequeueNotificationsMatching:coalesceMask:"), notification, coalesceMask) -} - // Returns the default notification queue for the current thread. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnotificationqueue/1412392-defaultqueue?language=objc diff --git a/macos/foundation/number.gen.go b/macos/foundation/number.gen.go index 1d56466e..969757b2 100644 --- a/macos/foundation/number.gen.go +++ b/macos/foundation/number.gen.go @@ -18,41 +18,41 @@ type _NumberClass struct { // An interface definition for the [Number] class. type INumber interface { IValue - InitWithUnsignedChar(value uint8) Number - IsEqualToNumber(number INumber) bool - InitWithUnsignedInteger(value uint) Number - InitWithInt(value int) Number - InitWithUnsignedInt(value int) Number - InitWithDouble(value float64) Number - InitWithChar(value uint8) Number + InitWithUnsignedLong(value int32) Number InitWithInteger(value int) Number - InitWithLongLong(value int64) Number - Compare(otherNumber INumber) ComparisonResult InitWithUnsignedShort(value int) Number - InitWithBool(value bool) Number + InitWithLong(value int32) Number InitWithUnsignedLongLong(value int64) Number - InitWithFloat(value float32) Number + InitWithInt(value int) Number + InitWithLongLong(value int64) Number InitWithShort(value int) Number - InitWithUnsignedLong(value int32) Number + InitWithChar(value uint8) Number + InitWithFloat(value float32) Number + InitWithDouble(value float64) Number DescriptionWithLocale(locale objc.IObject) string - InitWithLong(value int32) Number - IntValue() int + InitWithUnsignedChar(value uint8) Number + Compare(otherNumber INumber) ComparisonResult + InitWithBool(value bool) Number + InitWithUnsignedInteger(value uint) Number + InitWithUnsignedInt(value int) Number + IsEqualToNumber(number INumber) bool + IntegerValue() int UnsignedLongLongValue() int64 - StringValue() string - CharValue() uint8 + IntValue() int ShortValue() int - FloatValue() float32 - BoolValue() bool - DecimalValue() Decimal - UnsignedShortValue() int - LongLongValue() int64 - IntegerValue() int UnsignedIntValue() int + StringValue() string + LongLongValue() int64 + UnsignedShortValue() int + DoubleValue() float64 UnsignedLongValue() int32 - UnsignedCharValue() uint8 + CharValue() uint8 + DecimalValue() Decimal + BoolValue() bool + FloatValue() float32 UnsignedIntegerValue() uint + UnsignedCharValue() uint8 LongValue() int32 - DoubleValue() float64 } // An object wrapper for primitive scalar numeric values. [Full Topic] @@ -102,45 +102,67 @@ func NewNumberWithBytesObjCType(value unsafe.Pointer, type_ *uint8) Number { return instance } -// Creates and returns an NSNumber object containing a given value, treating it as an unsigned long long. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as an unsigned long. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551465-numberwithunsignedlonglong?language=objc -func (nc _NumberClass) NumberWithUnsignedLongLong(value int64) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedLongLong:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1410728-initwithunsignedlong?language=objc +func (n_ Number) InitWithUnsignedLong(value int32) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedLong:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as an unsigned long long. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as a signed char. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551465-numberwithunsignedlonglong?language=objc -func Number_NumberWithUnsignedLongLong(value int64) Number { - return NumberClass.NumberWithUnsignedLongLong(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551464-numberwithchar?language=objc +func (nc _NumberClass) NumberWithChar(value uint8) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithChar:"), value) + return rv } -// Returns an NSNumber object initialized to contain a given value, treated as an unsigned char. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as a signed char. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1416533-initwithunsignedchar?language=objc -func (n_ Number) InitWithUnsignedChar(value uint8) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedChar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551464-numberwithchar?language=objc +func Number_NumberWithChar(value uint8) Number { + return NumberClass.NumberWithChar(value) +} + +// Returns an NSNumber object initialized to contain a given value, treated as an NSInteger. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1409397-initwithinteger?language=objc +func (n_ Number) InitWithInteger(value int) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithInteger:"), value) return rv } -// Returns a Boolean value that indicates whether the number object’s value and a given number are equal. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as a double. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1411315-isequaltonumber?language=objc -func (n_ Number) IsEqualToNumber(number INumber) bool { - rv := objc.Call[bool](n_, objc.Sel("isEqualToNumber:"), number) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551463-numberwithdouble?language=objc +func (nc _NumberClass) NumberWithDouble(value float64) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithDouble:"), value) return rv } -// Returns an NSNumber object initialized to contain a given value, treated as an NSUInteger. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as a double. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1412531-initwithunsignedinteger?language=objc -func (n_ Number) InitWithUnsignedInteger(value uint) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedInteger:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551463-numberwithdouble?language=objc +func Number_NumberWithDouble(value float64) Number { + return NumberClass.NumberWithDouble(value) +} + +// Creates and returns an NSNumber object containing a given value, treating it as an unsigned long long. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551465-numberwithunsignedlonglong?language=objc +func (nc _NumberClass) NumberWithUnsignedLongLong(value int64) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedLongLong:"), value) return rv } +// Creates and returns an NSNumber object containing a given value, treating it as an unsigned long long. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551465-numberwithunsignedlonglong?language=objc +func Number_NumberWithUnsignedLongLong(value int64) Number { + return NumberClass.NumberWithUnsignedLongLong(value) +} + // Creates and returns an NSNumber object containing a given value, treating it as an NSInteger. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551473-numberwithinteger?language=objc @@ -156,72 +178,88 @@ func Number_NumberWithInteger(value int) Number { return NumberClass.NumberWithInteger(value) } -// Returns an NSNumber object initialized to contain a given value, treated as a signed int. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as an unsigned short. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407580-initwithint?language=objc -func (n_ Number) InitWithInt(value int) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithInt:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407718-initwithunsignedshort?language=objc +func (n_ Number) InitWithUnsignedShort(value int) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedShort:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as an unsigned short. [Full Topic] +// Creates and returns an NSNumber object containing value, treating it as a signed short. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551467-numberwithunsignedshort?language=objc -func (nc _NumberClass) NumberWithUnsignedShort(value int) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedShort:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551476-numberwithshort?language=objc +func (nc _NumberClass) NumberWithShort(value int) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithShort:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as an unsigned short. [Full Topic] +// Creates and returns an NSNumber object containing value, treating it as a signed short. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551467-numberwithunsignedshort?language=objc -func Number_NumberWithUnsignedShort(value int) Number { - return NumberClass.NumberWithUnsignedShort(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551476-numberwithshort?language=objc +func Number_NumberWithShort(value int) Number { + return NumberClass.NumberWithShort(value) } -// Creates and returns an NSNumber object containing a given value, treating it as a signed int. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as an unsigned long. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551470-numberwithint?language=objc -func (nc _NumberClass) NumberWithInt(value int) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithInt:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551477-numberwithunsignedlong?language=objc +func (nc _NumberClass) NumberWithUnsignedLong(value int32) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedLong:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as a signed int. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as an unsigned long. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551470-numberwithint?language=objc -func Number_NumberWithInt(value int) Number { - return NumberClass.NumberWithInt(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551477-numberwithunsignedlong?language=objc +func Number_NumberWithUnsignedLong(value int32) Number { + return NumberClass.NumberWithUnsignedLong(value) } -// Returns an NSNumber object initialized to contain a given value, treated as an unsigned int. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as a signed long. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1414598-initwithunsignedint?language=objc -func (n_ Number) InitWithUnsignedInt(value int) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedInt:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1410739-initwithlong?language=objc +func (n_ Number) InitWithLong(value int32) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithLong:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as a signed char. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as an unsigned long long. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551464-numberwithchar?language=objc -func (nc _NumberClass) NumberWithChar(value uint8) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithChar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1416550-initwithunsignedlonglong?language=objc +func (n_ Number) InitWithUnsignedLongLong(value int64) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedLongLong:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as a signed char. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as a signed int. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551464-numberwithchar?language=objc -func Number_NumberWithChar(value uint8) Number { - return NumberClass.NumberWithChar(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407580-initwithint?language=objc +func (n_ Number) InitWithInt(value int) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithInt:"), value) + return rv } -// Returns an NSNumber object initialized to contain value, treated as a double. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as a signed int. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407545-initwithdouble?language=objc -func (n_ Number) InitWithDouble(value float64) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithDouble:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551470-numberwithint?language=objc +func (nc _NumberClass) NumberWithInt(value int) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithInt:"), value) + return rv +} + +// Creates and returns an NSNumber object containing a given value, treating it as a signed int. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551470-numberwithint?language=objc +func Number_NumberWithInt(value int) Number { + return NumberClass.NumberWithInt(value) +} + +// Returns an NSNumber object initialized to contain value, treated as a signed long long. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1408171-initwithlonglong?language=objc +func (n_ Number) InitWithLongLong(value int64) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithLongLong:"), value) return rv } @@ -240,34 +278,41 @@ func Number_NumberWithFloat(value float32) Number { return NumberClass.NumberWithFloat(value) } -// Returns an NSNumber object initialized to contain a given value, treated as a signed char. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as an unsigned short. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1409777-initwithchar?language=objc -func (n_ Number) InitWithChar(value uint8) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithChar:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551467-numberwithunsignedshort?language=objc +func (nc _NumberClass) NumberWithUnsignedShort(value int) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedShort:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as an unsigned long. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as an unsigned short. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551477-numberwithunsignedlong?language=objc -func (nc _NumberClass) NumberWithUnsignedLong(value int32) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedLong:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551467-numberwithunsignedshort?language=objc +func Number_NumberWithUnsignedShort(value int) Number { + return NumberClass.NumberWithUnsignedShort(value) +} + +// Creates and returns an NSNumber object containing a given value, treating it as a BOOL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551475-numberwithbool?language=objc +func (nc _NumberClass) NumberWithBool(value bool) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithBool:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as an unsigned long. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as a BOOL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551477-numberwithunsignedlong?language=objc -func Number_NumberWithUnsignedLong(value int32) Number { - return NumberClass.NumberWithUnsignedLong(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551475-numberwithbool?language=objc +func Number_NumberWithBool(value bool) Number { + return NumberClass.NumberWithBool(value) } -// Returns an NSNumber object initialized to contain a given value, treated as an NSInteger. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as a signed short. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1409397-initwithinteger?language=objc -func (n_ Number) InitWithInteger(value int) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithInteger:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1411886-initwithshort?language=objc +func (n_ Number) InitWithShort(value int) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithShort:"), value) return rv } @@ -286,83 +331,45 @@ func Number_NumberWithUnsignedChar(value uint8) Number { return NumberClass.NumberWithUnsignedChar(value) } -// Creates and returns an NSNumber object containing a given value, treating it as an NSUInteger. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as a signed char. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551469-numberwithunsignedinteger?language=objc -func (nc _NumberClass) NumberWithUnsignedInteger(value uint) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedInteger:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1409777-initwithchar?language=objc +func (n_ Number) InitWithChar(value uint8) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithChar:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as an NSUInteger. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as an unsigned int. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551469-numberwithunsignedinteger?language=objc -func Number_NumberWithUnsignedInteger(value uint) Number { - return NumberClass.NumberWithUnsignedInteger(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551472-numberwithunsignedint?language=objc +func (nc _NumberClass) NumberWithUnsignedInt(value int) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedInt:"), value) + return rv } -// Returns an NSNumber object initialized to contain value, treated as a signed long long. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as an unsigned int. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1408171-initwithlonglong?language=objc -func (n_ Number) InitWithLongLong(value int64) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithLongLong:"), value) - return rv -} - -// Creates and returns an NSNumber object containing a given value, treating it as a BOOL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551475-numberwithbool?language=objc -func (nc _NumberClass) NumberWithBool(value bool) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithBool:"), value) - return rv -} - -// Creates and returns an NSNumber object containing a given value, treating it as a BOOL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551475-numberwithbool?language=objc -func Number_NumberWithBool(value bool) Number { - return NumberClass.NumberWithBool(value) -} - -// Returns an NSComparisonResult value that indicates whether the number object’s value is greater than, equal to, or less than a given number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1413562-compare?language=objc -func (n_ Number) Compare(otherNumber INumber) ComparisonResult { - rv := objc.Call[ComparisonResult](n_, objc.Sel("compare:"), otherNumber) - return rv -} - -// Returns an NSNumber object initialized to contain a given value, treated as an unsigned short. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407718-initwithunsignedshort?language=objc -func (n_ Number) InitWithUnsignedShort(value int) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedShort:"), value) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551472-numberwithunsignedint?language=objc +func Number_NumberWithUnsignedInt(value int) Number { + return NumberClass.NumberWithUnsignedInt(value) } -// Returns an NSNumber object initialized to contain a given value, treated as a BOOL. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as a float. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1415728-initwithbool?language=objc -func (n_ Number) InitWithBool(value bool) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithBool:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1412999-initwithfloat?language=objc +func (n_ Number) InitWithFloat(value float32) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithFloat:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as a double. [Full Topic] +// Returns an NSNumber object initialized to contain value, treated as a double. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551463-numberwithdouble?language=objc -func (nc _NumberClass) NumberWithDouble(value float64) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithDouble:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407545-initwithdouble?language=objc +func (n_ Number) InitWithDouble(value float64) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithDouble:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as a double. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551463-numberwithdouble?language=objc -func Number_NumberWithDouble(value float64) Number { - return NumberClass.NumberWithDouble(value) -} - // Creates and returns an NSNumber object containing a given value, treating it as a signed long long. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551462-numberwithlonglong?language=objc @@ -378,50 +385,26 @@ func Number_NumberWithLongLong(value int64) Number { return NumberClass.NumberWithLongLong(value) } -// Returns an NSNumber object initialized to contain a given value, treated as an unsigned long long. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1416550-initwithunsignedlonglong?language=objc -func (n_ Number) InitWithUnsignedLongLong(value int64) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedLongLong:"), value) - return rv -} - -// Returns an NSNumber object initialized to contain a given value, treated as a float. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1412999-initwithfloat?language=objc -func (n_ Number) InitWithFloat(value float32) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithFloat:"), value) - return rv -} - -// Returns an NSNumber object initialized to contain a given value, treated as a signed short. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1411886-initwithshort?language=objc -func (n_ Number) InitWithShort(value int) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithShort:"), value) - return rv -} - -// Creates and returns an NSNumber object containing value, treating it as a signed short. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as an NSUInteger. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551476-numberwithshort?language=objc -func (nc _NumberClass) NumberWithShort(value int) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithShort:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551469-numberwithunsignedinteger?language=objc +func (nc _NumberClass) NumberWithUnsignedInteger(value uint) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedInteger:"), value) return rv } -// Creates and returns an NSNumber object containing value, treating it as a signed short. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as an NSUInteger. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551476-numberwithshort?language=objc -func Number_NumberWithShort(value int) Number { - return NumberClass.NumberWithShort(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551469-numberwithunsignedinteger?language=objc +func Number_NumberWithUnsignedInteger(value uint) Number { + return NumberClass.NumberWithUnsignedInteger(value) } -// Returns an NSNumber object initialized to contain a given value, treated as an unsigned long. [Full Topic] +// Returns a string that represents the contents of the number object for a given locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1410728-initwithunsignedlong?language=objc -func (n_ Number) InitWithUnsignedLong(value int32) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedLong:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1409984-descriptionwithlocale?language=objc +func (n_ Number) DescriptionWithLocale(locale objc.IObject) string { + rv := objc.Call[string](n_, objc.Sel("descriptionWithLocale:"), locale) return rv } @@ -440,66 +423,75 @@ func Number_NumberWithLong(value int32) Number { return NumberClass.NumberWithLong(value) } -// Creates and returns an NSNumber object containing a given value, treating it as an unsigned int. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as an unsigned char. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551472-numberwithunsignedint?language=objc -func (nc _NumberClass) NumberWithUnsignedInt(value int) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedInt:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1416533-initwithunsignedchar?language=objc +func (n_ Number) InitWithUnsignedChar(value uint8) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedChar:"), value) return rv } -// Creates and returns an NSNumber object containing a given value, treating it as an unsigned int. [Full Topic] +// Returns an NSComparisonResult value that indicates whether the number object’s value is greater than, equal to, or less than a given number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551472-numberwithunsignedint?language=objc -func Number_NumberWithUnsignedInt(value int) Number { - return NumberClass.NumberWithUnsignedInt(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1413562-compare?language=objc +func (n_ Number) Compare(otherNumber INumber) ComparisonResult { + rv := objc.Call[ComparisonResult](n_, objc.Sel("compare:"), otherNumber) + return rv } -// Returns a string that represents the contents of the number object for a given locale. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as a BOOL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1409984-descriptionwithlocale?language=objc -func (n_ Number) DescriptionWithLocale(locale objc.IObject) string { - rv := objc.Call[string](n_, objc.Sel("descriptionWithLocale:"), locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1415728-initwithbool?language=objc +func (n_ Number) InitWithBool(value bool) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithBool:"), value) return rv } -// Returns an NSNumber object initialized to contain a given value, treated as a signed long. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as an NSUInteger. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1410739-initwithlong?language=objc -func (n_ Number) InitWithLong(value int32) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithLong:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1412531-initwithunsignedinteger?language=objc +func (n_ Number) InitWithUnsignedInteger(value uint) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedInteger:"), value) return rv } -// The number object's value expressed as an int, converted as necessary. [Full Topic] +// Returns an NSNumber object initialized to contain a given value, treated as an unsigned int. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407153-intvalue?language=objc -func (n_ Number) IntValue() int { - rv := objc.Call[int](n_, objc.Sel("intValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1414598-initwithunsignedint?language=objc +func (n_ Number) InitWithUnsignedInt(value int) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedInt:"), value) return rv } -// The number object’s value expressed as an unsigned long long, converted as necessary. [Full Topic] +// Returns a Boolean value that indicates whether the number object’s value and a given number are equal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1414524-unsignedlonglongvalue?language=objc -func (n_ Number) UnsignedLongLongValue() int64 { - rv := objc.Call[int64](n_, objc.Sel("unsignedLongLongValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1411315-isequaltonumber?language=objc +func (n_ Number) IsEqualToNumber(number INumber) bool { + rv := objc.Call[bool](n_, objc.Sel("isEqualToNumber:"), number) return rv } -// The number object's value expressed as a human-readable string. [Full Topic] +// The number object's value expressed as an NSInteger object, converted as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1415802-stringvalue?language=objc -func (n_ Number) StringValue() string { - rv := objc.Call[string](n_, objc.Sel("stringValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1412554-integervalue?language=objc +func (n_ Number) IntegerValue() int { + rv := objc.Call[int](n_, objc.Sel("integerValue")) return rv } -// The number object's value expressed as a char. [Full Topic] +// The number object’s value expressed as an unsigned long long, converted as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407838-charvalue?language=objc -func (n_ Number) CharValue() uint8 { - rv := objc.Call[uint8](n_, objc.Sel("charValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1414524-unsignedlonglongvalue?language=objc +func (n_ Number) UnsignedLongLongValue() int64 { + rv := objc.Call[int64](n_, objc.Sel("unsignedLongLongValue")) + return rv +} + +// The number object's value expressed as an int, converted as necessary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407153-intvalue?language=objc +func (n_ Number) IntValue() int { + rv := objc.Call[int](n_, objc.Sel("intValue")) return rv } @@ -511,27 +503,27 @@ func (n_ Number) ShortValue() int { return rv } -// The number object's value expressed as a float, converted as necessary. [Full Topic] +// The number object's value expressed as an unsigned int, converted as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1418317-floatvalue?language=objc -func (n_ Number) FloatValue() float32 { - rv := objc.Call[float32](n_, objc.Sel("floatValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1417875-unsignedintvalue?language=objc +func (n_ Number) UnsignedIntValue() int { + rv := objc.Call[int](n_, objc.Sel("unsignedIntValue")) return rv } -// The number object's value expressed as a Boolean value. [Full Topic] +// The number object's value expressed as a human-readable string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1410865-boolvalue?language=objc -func (n_ Number) BoolValue() bool { - rv := objc.Call[bool](n_, objc.Sel("boolValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1415802-stringvalue?language=objc +func (n_ Number) StringValue() string { + rv := objc.Call[string](n_, objc.Sel("stringValue")) return rv } -// The number object's value expressed as an NSDecimal structure. [Full Topic] +// The number object’s value expressed as a long long, converted as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407409-decimalvalue?language=objc -func (n_ Number) DecimalValue() Decimal { - rv := objc.Call[Decimal](n_, objc.Sel("decimalValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1416870-longlongvalue?language=objc +func (n_ Number) LongLongValue() int64 { + rv := objc.Call[int64](n_, objc.Sel("longLongValue")) return rv } @@ -543,43 +535,51 @@ func (n_ Number) UnsignedShortValue() int { return rv } -// The number object’s value expressed as a long long, converted as necessary. [Full Topic] +// The number object's value expressed as a double, converted as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1416870-longlongvalue?language=objc -func (n_ Number) LongLongValue() int64 { - rv := objc.Call[int64](n_, objc.Sel("longLongValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1414104-doublevalue?language=objc +func (n_ Number) DoubleValue() float64 { + rv := objc.Call[float64](n_, objc.Sel("doubleValue")) return rv } -// The number object's value expressed as an NSInteger object, converted as necessary. [Full Topic] +// The number object's value expressed as an unsigned long, converted as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1412554-integervalue?language=objc -func (n_ Number) IntegerValue() int { - rv := objc.Call[int](n_, objc.Sel("integerValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1415252-unsignedlongvalue?language=objc +func (n_ Number) UnsignedLongValue() int32 { + rv := objc.Call[int32](n_, objc.Sel("unsignedLongValue")) return rv } -// The number object's value expressed as an unsigned int, converted as necessary. [Full Topic] +// The number object's value expressed as a char. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1417875-unsignedintvalue?language=objc -func (n_ Number) UnsignedIntValue() int { - rv := objc.Call[int](n_, objc.Sel("unsignedIntValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407838-charvalue?language=objc +func (n_ Number) CharValue() uint8 { + rv := objc.Call[uint8](n_, objc.Sel("charValue")) return rv } -// The number object's value expressed as an unsigned long, converted as necessary. [Full Topic] +// The number object's value expressed as an NSDecimal structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1415252-unsignedlongvalue?language=objc -func (n_ Number) UnsignedLongValue() int32 { - rv := objc.Call[int32](n_, objc.Sel("unsignedLongValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1407409-decimalvalue?language=objc +func (n_ Number) DecimalValue() Decimal { + rv := objc.Call[Decimal](n_, objc.Sel("decimalValue")) return rv } -// The number object's value expressed as an unsigned char, converted as necessary. [Full Topic] +// The number object's value expressed as a Boolean value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1409016-unsignedcharvalue?language=objc -func (n_ Number) UnsignedCharValue() uint8 { - rv := objc.Call[uint8](n_, objc.Sel("unsignedCharValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1410865-boolvalue?language=objc +func (n_ Number) BoolValue() bool { + rv := objc.Call[bool](n_, objc.Sel("boolValue")) + return rv +} + +// The number object's value expressed as a float, converted as necessary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1418317-floatvalue?language=objc +func (n_ Number) FloatValue() float32 { + rv := objc.Call[float32](n_, objc.Sel("floatValue")) return rv } @@ -591,18 +591,18 @@ func (n_ Number) UnsignedIntegerValue() uint { return rv } -// The number object's value expressed as a long, converted as necessary. [Full Topic] +// The number object's value expressed as an unsigned char, converted as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1412566-longvalue?language=objc -func (n_ Number) LongValue() int32 { - rv := objc.Call[int32](n_, objc.Sel("longValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1409016-unsignedcharvalue?language=objc +func (n_ Number) UnsignedCharValue() uint8 { + rv := objc.Call[uint8](n_, objc.Sel("unsignedCharValue")) return rv } -// The number object's value expressed as a double, converted as necessary. [Full Topic] +// The number object's value expressed as a long, converted as necessary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1414104-doublevalue?language=objc -func (n_ Number) DoubleValue() float64 { - rv := objc.Call[float64](n_, objc.Sel("doubleValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1412566-longvalue?language=objc +func (n_ Number) LongValue() int32 { + rv := objc.Call[int32](n_, objc.Sel("longValue")) return rv } diff --git a/macos/foundation/number_formatter.gen.go b/macos/foundation/number_formatter.gen.go index e640cdf0..77ce9d07 100644 --- a/macos/foundation/number_formatter.gen.go +++ b/macos/foundation/number_formatter.gen.go @@ -21,136 +21,136 @@ type INumberFormatter interface { GetObjectValueForStringRangeError(obj unsafe.Pointer, string_ string, rangep *Range, error unsafe.Pointer) bool StringFromNumber(number INumber) string NumberFromString(string_ string) Number - Minimum() Number - SetMinimum(value INumber) - GroupingSeparator() string - SetGroupingSeparator(value string) - GeneratesDecimalNumbers() bool - SetGeneratesDecimalNumbers(value bool) - MinimumFractionDigits() uint - SetMinimumFractionDigits(value uint) + IsLenient() bool + SetLenient(value bool) AlwaysShowsDecimalSeparator() bool SetAlwaysShowsDecimalSeparator(value bool) - DecimalSeparator() string - SetDecimalSeparator(value string) - NegativeSuffix() string - SetNegativeSuffix(value string) - InternationalCurrencySymbol() string - SetInternationalCurrencySymbol(value string) - TextAttributesForZero() map[string]objc.Object - SetTextAttributesForZero(value map[string]objc.IObject) - MaximumFractionDigits() uint - SetMaximumFractionDigits(value uint) - AttributedStringForNotANumber() AttributedString - SetAttributedStringForNotANumber(value IAttributedString) - NegativeFormat() string - SetNegativeFormat(value string) - HasThousandSeparators() bool - SetHasThousandSeparators(value bool) - CurrencyCode() string - SetCurrencyCode(value string) - NegativeInfinitySymbol() string - SetNegativeInfinitySymbol(value string) - ExponentSymbol() string - SetExponentSymbol(value string) - UsesSignificantDigits() bool - SetUsesSignificantDigits(value bool) - PercentSymbol() string - SetPercentSymbol(value string) - PaddingPosition() NumberFormatterPadPosition - SetPaddingPosition(value NumberFormatterPadPosition) + LocalizesFormat() bool + SetLocalizesFormat(value bool) + PlusSign() string + SetPlusSign(value string) CurrencyGroupingSeparator() string SetCurrencyGroupingSeparator(value string) - RoundingBehavior() DecimalNumberHandler - SetRoundingBehavior(value IDecimalNumberHandler) - GroupingSize() uint - SetGroupingSize(value uint) - NilSymbol() string - SetNilSymbol(value string) - NumberStyle() NumberFormatterStyle - SetNumberStyle(value NumberFormatterStyle) - AttributedStringForNil() AttributedString - SetAttributedStringForNil(value IAttributedString) - Format() string - SetFormat(value string) - ThousandSeparator() string - SetThousandSeparator(value string) - PositiveInfinitySymbol() string - SetPositiveInfinitySymbol(value string) - PerMillSymbol() string - SetPerMillSymbol(value string) - TextAttributesForNegativeValues() map[string]objc.Object - SetTextAttributesForNegativeValues(value map[string]objc.IObject) - MaximumSignificantDigits() uint - SetMaximumSignificantDigits(value uint) + UsesSignificantDigits() bool + SetUsesSignificantDigits(value bool) + NegativePrefix() string + SetNegativePrefix(value string) + AllowsFloats() bool + SetAllowsFloats(value bool) + PositiveFormat() string + SetPositiveFormat(value string) + PositivePrefix() string + SetPositivePrefix(value string) + SecondaryGroupingSize() uint + SetSecondaryGroupingSize(value uint) + CurrencyCode() string + SetCurrencyCode(value string) + NegativeFormat() string + SetNegativeFormat(value string) + FormatWidth() uint + SetFormatWidth(value uint) PaddingCharacter() string SetPaddingCharacter(value string) - UsesGroupingSeparator() bool - SetUsesGroupingSeparator(value bool) + PositiveInfinitySymbol() string + SetPositiveInfinitySymbol(value string) Multiplier() Number SetMultiplier(value INumber) - MinusSign() string - SetMinusSign(value string) - TextAttributesForNil() map[string]objc.Object - SetTextAttributesForNil(value map[string]objc.IObject) - RoundingIncrement() Number - SetRoundingIncrement(value INumber) + ExponentSymbol() string + SetExponentSymbol(value string) + FormatterBehavior() NumberFormatterBehavior + SetFormatterBehavior(value NumberFormatterBehavior) + NumberStyle() NumberFormatterStyle + SetNumberStyle(value NumberFormatterStyle) + AttributedStringForNotANumber() AttributedString + SetAttributedStringForNotANumber(value IAttributedString) + InternationalCurrencySymbol() string + SetInternationalCurrencySymbol(value string) MaximumIntegerDigits() uint SetMaximumIntegerDigits(value uint) - FormattingContext() FormattingContext - SetFormattingContext(value FormattingContext) + TextAttributesForPositiveInfinity() map[string]objc.Object + SetTextAttributesForPositiveInfinity(value map[string]objc.IObject) + RoundingIncrement() Number + SetRoundingIncrement(value INumber) TextAttributesForNegativeInfinity() map[string]objc.Object SetTextAttributesForNegativeInfinity(value map[string]objc.IObject) - AllowsFloats() bool - SetAllowsFloats(value bool) + NegativeInfinitySymbol() string + SetNegativeInfinitySymbol(value string) + GeneratesDecimalNumbers() bool + SetGeneratesDecimalNumbers(value bool) + TextAttributesForZero() map[string]objc.Object + SetTextAttributesForZero(value map[string]objc.IObject) + MinimumSignificantDigits() uint + SetMinimumSignificantDigits(value uint) + Locale() Locale + SetLocale(value ILocale) + HasThousandSeparators() bool + SetHasThousandSeparators(value bool) + CurrencyDecimalSeparator() string + SetCurrencyDecimalSeparator(value string) + MaximumFractionDigits() uint + SetMaximumFractionDigits(value uint) + Minimum() Number + SetMinimum(value INumber) + AttributedStringForZero() AttributedString + SetAttributedStringForZero(value IAttributedString) + PerMillSymbol() string + SetPerMillSymbol(value string) + MaximumSignificantDigits() uint + SetMaximumSignificantDigits(value uint) ZeroSymbol() string SetZeroSymbol(value string) - FormatWidth() uint - SetFormatWidth(value uint) + PercentSymbol() string + SetPercentSymbol(value string) + NilSymbol() string + SetNilSymbol(value string) + MinusSign() string + SetMinusSign(value string) + NotANumberSymbol() string + SetNotANumberSymbol(value string) CurrencySymbol() string SetCurrencySymbol(value string) - CurrencyDecimalSeparator() string - SetCurrencyDecimalSeparator(value string) - SecondaryGroupingSize() uint - SetSecondaryGroupingSize(value uint) - PlusSign() string - SetPlusSign(value string) - Locale() Locale - SetLocale(value ILocale) - MinimumSignificantDigits() uint - SetMinimumSignificantDigits(value uint) - FormatterBehavior() NumberFormatterBehavior - SetFormatterBehavior(value NumberFormatterBehavior) + FormattingContext() FormattingContext + SetFormattingContext(value FormattingContext) + DecimalSeparator() string + SetDecimalSeparator(value string) + UsesGroupingSeparator() bool + SetUsesGroupingSeparator(value bool) + IsPartialStringValidationEnabled() bool + SetPartialStringValidationEnabled(value bool) + AttributedStringForNil() AttributedString + SetAttributedStringForNil(value IAttributedString) + ThousandSeparator() string + SetThousandSeparator(value string) TextAttributesForNotANumber() map[string]objc.Object SetTextAttributesForNotANumber(value map[string]objc.IObject) - TextAttributesForPositiveInfinity() map[string]objc.Object - SetTextAttributesForPositiveInfinity(value map[string]objc.IObject) PositiveSuffix() string SetPositiveSuffix(value string) - IsLenient() bool - SetLenient(value bool) - PositiveFormat() string - SetPositiveFormat(value string) - RoundingMode() NumberFormatterRoundingMode - SetRoundingMode(value NumberFormatterRoundingMode) - NegativePrefix() string - SetNegativePrefix(value string) - NotANumberSymbol() string - SetNotANumberSymbol(value string) - PositivePrefix() string - SetPositivePrefix(value string) + TextAttributesForPositiveValues() map[string]objc.Object + SetTextAttributesForPositiveValues(value map[string]objc.IObject) + RoundingBehavior() DecimalNumberHandler + SetRoundingBehavior(value IDecimalNumberHandler) + GroupingSeparator() string + SetGroupingSeparator(value string) + MinimumFractionDigits() uint + SetMinimumFractionDigits(value uint) + Format() string + SetFormat(value string) + TextAttributesForNil() map[string]objc.Object + SetTextAttributesForNil(value map[string]objc.IObject) MinimumIntegerDigits() uint SetMinimumIntegerDigits(value uint) + RoundingMode() NumberFormatterRoundingMode + SetRoundingMode(value NumberFormatterRoundingMode) Maximum() Number SetMaximum(value INumber) - LocalizesFormat() bool - SetLocalizesFormat(value bool) - AttributedStringForZero() AttributedString - SetAttributedStringForZero(value IAttributedString) - IsPartialStringValidationEnabled() bool - SetPartialStringValidationEnabled(value bool) - TextAttributesForPositiveValues() map[string]objc.Object - SetTextAttributesForPositiveValues(value map[string]objc.IObject) + PaddingPosition() NumberFormatterPadPosition + SetPaddingPosition(value NumberFormatterPadPosition) + NegativeSuffix() string + SetNegativeSuffix(value string) + TextAttributesForNegativeValues() map[string]objc.Object + SetTextAttributesForNegativeValues(value map[string]objc.IObject) + GroupingSize() uint + SetGroupingSize(value uint) } // A formatter that converts between numeric values and their textual representations. [Full Topic] @@ -186,6 +186,35 @@ func (n_ NumberFormatter) Init() NumberFormatter { return rv } +// Sets the default formatter behavior for new instances of NSNumberFormatter . [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415422-setdefaultformatterbehavior?language=objc +func (nc _NumberFormatterClass) SetDefaultFormatterBehavior(behavior NumberFormatterBehavior) { + objc.Call[objc.Void](nc, objc.Sel("setDefaultFormatterBehavior:"), behavior) +} + +// Sets the default formatter behavior for new instances of NSNumberFormatter . [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415422-setdefaultformatterbehavior?language=objc +func NumberFormatter_SetDefaultFormatterBehavior(behavior NumberFormatterBehavior) { + NumberFormatterClass.SetDefaultFormatterBehavior(behavior) +} + +// Returns a localized number string with the specified style. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416418-localizedstringfromnumber?language=objc +func (nc _NumberFormatterClass) LocalizedStringFromNumberNumberStyle(num INumber, nstyle NumberFormatterStyle) string { + rv := objc.Call[string](nc, objc.Sel("localizedStringFromNumber:numberStyle:"), num, nstyle) + return rv +} + +// Returns a localized number string with the specified style. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416418-localizedstringfromnumber?language=objc +func NumberFormatter_LocalizedStringFromNumberNumberStyle(num INumber, nstyle NumberFormatterStyle) string { + return NumberFormatterClass.LocalizedStringFromNumberNumberStyle(num, nstyle) +} + // Returns by reference a cell-content object after creating it from a range of characters in a given string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412588-getobjectvalue?language=objc @@ -210,20 +239,6 @@ func (n_ NumberFormatter) NumberFromString(string_ string) Number { return rv } -// Sets the default formatter behavior for new instances of NSNumberFormatter . [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415422-setdefaultformatterbehavior?language=objc -func (nc _NumberFormatterClass) SetDefaultFormatterBehavior(behavior NumberFormatterBehavior) { - objc.Call[objc.Void](nc, objc.Sel("setDefaultFormatterBehavior:"), behavior) -} - -// Sets the default formatter behavior for new instances of NSNumberFormatter . [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415422-setdefaultformatterbehavior?language=objc -func NumberFormatter_SetDefaultFormatterBehavior(behavior NumberFormatterBehavior) { - NumberFormatterClass.SetDefaultFormatterBehavior(behavior) -} - // Returns an NSNumberFormatterBehavior constant that indicates default formatter behavior for new instances of NSNumberFormatter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415137-defaultformatterbehavior?language=objc @@ -239,184 +254,184 @@ func NumberFormatter_DefaultFormatterBehavior() NumberFormatterBehavior { return NumberFormatterClass.DefaultFormatterBehavior() } -// Returns a localized number string with the specified style. [Full Topic] +// Determines whether the receiver will use heuristics to guess at the number which is intended by a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416418-localizedstringfromnumber?language=objc -func (nc _NumberFormatterClass) LocalizedStringFromNumberNumberStyle(num INumber, nstyle NumberFormatterStyle) string { - rv := objc.Call[string](nc, objc.Sel("localizedStringFromNumber:numberStyle:"), num, nstyle) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416953-lenient?language=objc +func (n_ NumberFormatter) IsLenient() bool { + rv := objc.Call[bool](n_, objc.Sel("isLenient")) return rv } -// Returns a localized number string with the specified style. [Full Topic] +// Determines whether the receiver will use heuristics to guess at the number which is intended by a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416418-localizedstringfromnumber?language=objc -func NumberFormatter_LocalizedStringFromNumberNumberStyle(num INumber, nstyle NumberFormatterStyle) string { - return NumberFormatterClass.LocalizedStringFromNumberNumberStyle(num, nstyle) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416953-lenient?language=objc +func (n_ NumberFormatter) SetLenient(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setLenient:"), value) } -// The lowest number allowed as input by the receiver. [Full Topic] +// Determines whether the receiver always shows the decimal separator, even for integer numbers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417228-minimum?language=objc -func (n_ NumberFormatter) Minimum() Number { - rv := objc.Call[Number](n_, objc.Sel("minimum")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408550-alwaysshowsdecimalseparator?language=objc +func (n_ NumberFormatter) AlwaysShowsDecimalSeparator() bool { + rv := objc.Call[bool](n_, objc.Sel("alwaysShowsDecimalSeparator")) return rv } -// The lowest number allowed as input by the receiver. [Full Topic] +// Determines whether the receiver always shows the decimal separator, even for integer numbers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417228-minimum?language=objc -func (n_ NumberFormatter) SetMinimum(value INumber) { - objc.Call[objc.Void](n_, objc.Sel("setMinimum:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408550-alwaysshowsdecimalseparator?language=objc +func (n_ NumberFormatter) SetAlwaysShowsDecimalSeparator(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setAlwaysShowsDecimalSeparator:"), value) } -// The string used by the receiver for a grouping separator. [Full Topic] +// Determines whether the dollar sign character ($), decimal separator character (.), and thousand separator character (,) are converted to appropriately localized characters as specified by the user’s localization preference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412157-groupingseparator?language=objc -func (n_ NumberFormatter) GroupingSeparator() string { - rv := objc.Call[string](n_, objc.Sel("groupingSeparator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408133-localizesformat?language=objc +func (n_ NumberFormatter) LocalizesFormat() bool { + rv := objc.Call[bool](n_, objc.Sel("localizesFormat")) return rv } -// The string used by the receiver for a grouping separator. [Full Topic] +// Determines whether the dollar sign character ($), decimal separator character (.), and thousand separator character (,) are converted to appropriately localized characters as specified by the user’s localization preference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412157-groupingseparator?language=objc -func (n_ NumberFormatter) SetGroupingSeparator(value string) { - objc.Call[objc.Void](n_, objc.Sel("setGroupingSeparator:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408133-localizesformat?language=objc +func (n_ NumberFormatter) SetLocalizesFormat(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setLocalizesFormat:"), value) } -// Determines whether the receiver creates instances of NSDecimalNumber when it converts strings to number objects. [Full Topic] +// The string used to represent a plus sign. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410503-generatesdecimalnumbers?language=objc -func (n_ NumberFormatter) GeneratesDecimalNumbers() bool { - rv := objc.Call[bool](n_, objc.Sel("generatesDecimalNumbers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416423-plussign?language=objc +func (n_ NumberFormatter) PlusSign() string { + rv := objc.Call[string](n_, objc.Sel("plusSign")) return rv } -// Determines whether the receiver creates instances of NSDecimalNumber when it converts strings to number objects. [Full Topic] +// The string used to represent a plus sign. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410503-generatesdecimalnumbers?language=objc -func (n_ NumberFormatter) SetGeneratesDecimalNumbers(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setGeneratesDecimalNumbers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416423-plussign?language=objc +func (n_ NumberFormatter) SetPlusSign(value string) { + objc.Call[objc.Void](n_, objc.Sel("setPlusSign:"), value) } -// The minimum number of digits after the decimal separator. [Full Topic] +// The currency grouping separator for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410459-minimumfractiondigits?language=objc -func (n_ NumberFormatter) MinimumFractionDigits() uint { - rv := objc.Call[uint](n_, objc.Sel("minimumFractionDigits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416213-currencygroupingseparator?language=objc +func (n_ NumberFormatter) CurrencyGroupingSeparator() string { + rv := objc.Call[string](n_, objc.Sel("currencyGroupingSeparator")) return rv } -// The minimum number of digits after the decimal separator. [Full Topic] +// The currency grouping separator for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410459-minimumfractiondigits?language=objc -func (n_ NumberFormatter) SetMinimumFractionDigits(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setMinimumFractionDigits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416213-currencygroupingseparator?language=objc +func (n_ NumberFormatter) SetCurrencyGroupingSeparator(value string) { + objc.Call[objc.Void](n_, objc.Sel("setCurrencyGroupingSeparator:"), value) } -// Determines whether the receiver always shows the decimal separator, even for integer numbers. [Full Topic] +// A Boolean value indicating whether the formatter uses minimum and maximum significant digits when formatting numbers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408550-alwaysshowsdecimalseparator?language=objc -func (n_ NumberFormatter) AlwaysShowsDecimalSeparator() bool { - rv := objc.Call[bool](n_, objc.Sel("alwaysShowsDecimalSeparator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417793-usessignificantdigits?language=objc +func (n_ NumberFormatter) UsesSignificantDigits() bool { + rv := objc.Call[bool](n_, objc.Sel("usesSignificantDigits")) return rv } -// Determines whether the receiver always shows the decimal separator, even for integer numbers. [Full Topic] +// A Boolean value indicating whether the formatter uses minimum and maximum significant digits when formatting numbers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408550-alwaysshowsdecimalseparator?language=objc -func (n_ NumberFormatter) SetAlwaysShowsDecimalSeparator(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setAlwaysShowsDecimalSeparator:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417793-usessignificantdigits?language=objc +func (n_ NumberFormatter) SetUsesSignificantDigits(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setUsesSignificantDigits:"), value) } -// The character the receiver uses as a decimal separator. [Full Topic] +// The string the receiver uses as a prefix for negative values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408029-decimalseparator?language=objc -func (n_ NumberFormatter) DecimalSeparator() string { - rv := objc.Call[string](n_, objc.Sel("decimalSeparator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408096-negativeprefix?language=objc +func (n_ NumberFormatter) NegativePrefix() string { + rv := objc.Call[string](n_, objc.Sel("negativePrefix")) return rv } -// The character the receiver uses as a decimal separator. [Full Topic] +// The string the receiver uses as a prefix for negative values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408029-decimalseparator?language=objc -func (n_ NumberFormatter) SetDecimalSeparator(value string) { - objc.Call[objc.Void](n_, objc.Sel("setDecimalSeparator:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408096-negativeprefix?language=objc +func (n_ NumberFormatter) SetNegativePrefix(value string) { + objc.Call[objc.Void](n_, objc.Sel("setNegativePrefix:"), value) } -// The string the receiver uses as a suffix for negative values. [Full Topic] +// Determines whether the receiver allows as input floating-point values (that is, values that include the period character [.]). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413927-negativesuffix?language=objc -func (n_ NumberFormatter) NegativeSuffix() string { - rv := objc.Call[string](n_, objc.Sel("negativeSuffix")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416119-allowsfloats?language=objc +func (n_ NumberFormatter) AllowsFloats() bool { + rv := objc.Call[bool](n_, objc.Sel("allowsFloats")) return rv } -// The string the receiver uses as a suffix for negative values. [Full Topic] +// Determines whether the receiver allows as input floating-point values (that is, values that include the period character [.]). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413927-negativesuffix?language=objc -func (n_ NumberFormatter) SetNegativeSuffix(value string) { - objc.Call[objc.Void](n_, objc.Sel("setNegativeSuffix:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416119-allowsfloats?language=objc +func (n_ NumberFormatter) SetAllowsFloats(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setAllowsFloats:"), value) } -// The international currency symbol used by the receiver. [Full Topic] +// The format the receiver uses to display positive values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412755-internationalcurrencysymbol?language=objc -func (n_ NumberFormatter) InternationalCurrencySymbol() string { - rv := objc.Call[string](n_, objc.Sel("internationalCurrencySymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410737-positiveformat?language=objc +func (n_ NumberFormatter) PositiveFormat() string { + rv := objc.Call[string](n_, objc.Sel("positiveFormat")) return rv } -// The international currency symbol used by the receiver. [Full Topic] +// The format the receiver uses to display positive values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412755-internationalcurrencysymbol?language=objc -func (n_ NumberFormatter) SetInternationalCurrencySymbol(value string) { - objc.Call[objc.Void](n_, objc.Sel("setInternationalCurrencySymbol:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410737-positiveformat?language=objc +func (n_ NumberFormatter) SetPositiveFormat(value string) { + objc.Call[objc.Void](n_, objc.Sel("setPositiveFormat:"), value) } -// The text attributes used to display a zero value. [Full Topic] +// The string the receiver uses as the prefix for positive values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415971-textattributesforzero?language=objc -func (n_ NumberFormatter) TextAttributesForZero() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForZero")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1414204-positiveprefix?language=objc +func (n_ NumberFormatter) PositivePrefix() string { + rv := objc.Call[string](n_, objc.Sel("positivePrefix")) return rv } -// The text attributes used to display a zero value. [Full Topic] +// The string the receiver uses as the prefix for positive values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415971-textattributesforzero?language=objc -func (n_ NumberFormatter) SetTextAttributesForZero(value map[string]objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForZero:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1414204-positiveprefix?language=objc +func (n_ NumberFormatter) SetPositivePrefix(value string) { + objc.Call[objc.Void](n_, objc.Sel("setPositivePrefix:"), value) } -// The maximum number of digits after the decimal separator. [Full Topic] +// The secondary grouping size of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415364-maximumfractiondigits?language=objc -func (n_ NumberFormatter) MaximumFractionDigits() uint { - rv := objc.Call[uint](n_, objc.Sel("maximumFractionDigits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413348-secondarygroupingsize?language=objc +func (n_ NumberFormatter) SecondaryGroupingSize() uint { + rv := objc.Call[uint](n_, objc.Sel("secondaryGroupingSize")) return rv } -// The maximum number of digits after the decimal separator. [Full Topic] +// The secondary grouping size of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415364-maximumfractiondigits?language=objc -func (n_ NumberFormatter) SetMaximumFractionDigits(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setMaximumFractionDigits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413348-secondarygroupingsize?language=objc +func (n_ NumberFormatter) SetSecondaryGroupingSize(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setSecondaryGroupingSize:"), value) } -// The attributed string the receiver uses to display “not a number” values. [Full Topic] +// The receiver’s currency code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416819-attributedstringfornotanumber?language=objc -func (n_ NumberFormatter) AttributedStringForNotANumber() AttributedString { - rv := objc.Call[AttributedString](n_, objc.Sel("attributedStringForNotANumber")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410463-currencycode?language=objc +func (n_ NumberFormatter) CurrencyCode() string { + rv := objc.Call[string](n_, objc.Sel("currencyCode")) return rv } -// The attributed string the receiver uses to display “not a number” values. [Full Topic] +// The receiver’s currency code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416819-attributedstringfornotanumber?language=objc -func (n_ NumberFormatter) SetAttributedStringForNotANumber(value IAttributedString) { - objc.Call[objc.Void](n_, objc.Sel("setAttributedStringForNotANumber:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410463-currencycode?language=objc +func (n_ NumberFormatter) SetCurrencyCode(value string) { + objc.Call[objc.Void](n_, objc.Sel("setCurrencyCode:"), value) } // The format the receiver uses to display negative values. [Full Topic] @@ -434,49 +449,64 @@ func (n_ NumberFormatter) SetNegativeFormat(value string) { objc.Call[objc.Void](n_, objc.Sel("setNegativeFormat:"), value) } -// Determines whether the receiver uses thousand separators. [Full Topic] +// The format width used by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411919-formatwidth?language=objc +func (n_ NumberFormatter) FormatWidth() uint { + rv := objc.Call[uint](n_, objc.Sel("formatWidth")) + return rv +} + +// The format width used by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411919-formatwidth?language=objc +func (n_ NumberFormatter) SetFormatWidth(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setFormatWidth:"), value) +} + +// The string that the receiver uses to pad numbers in the formatted string representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416451-hasthousandseparators?language=objc -func (n_ NumberFormatter) HasThousandSeparators() bool { - rv := objc.Call[bool](n_, objc.Sel("hasThousandSeparators")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413690-paddingcharacter?language=objc +func (n_ NumberFormatter) PaddingCharacter() string { + rv := objc.Call[string](n_, objc.Sel("paddingCharacter")) return rv } -// Determines whether the receiver uses thousand separators. [Full Topic] +// The string that the receiver uses to pad numbers in the formatted string representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416451-hasthousandseparators?language=objc -func (n_ NumberFormatter) SetHasThousandSeparators(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setHasThousandSeparators:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413690-paddingcharacter?language=objc +func (n_ NumberFormatter) SetPaddingCharacter(value string) { + objc.Call[objc.Void](n_, objc.Sel("setPaddingCharacter:"), value) } -// The receiver’s currency code. [Full Topic] +// The string used to represent a positive infinity symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410463-currencycode?language=objc -func (n_ NumberFormatter) CurrencyCode() string { - rv := objc.Call[string](n_, objc.Sel("currencyCode")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412976-positiveinfinitysymbol?language=objc +func (n_ NumberFormatter) PositiveInfinitySymbol() string { + rv := objc.Call[string](n_, objc.Sel("positiveInfinitySymbol")) return rv } -// The receiver’s currency code. [Full Topic] +// The string used to represent a positive infinity symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410463-currencycode?language=objc -func (n_ NumberFormatter) SetCurrencyCode(value string) { - objc.Call[objc.Void](n_, objc.Sel("setCurrencyCode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412976-positiveinfinitysymbol?language=objc +func (n_ NumberFormatter) SetPositiveInfinitySymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setPositiveInfinitySymbol:"), value) } -// The string used to represent a negative infinity symbol. [Full Topic] +// The multiplier of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417968-negativeinfinitysymbol?language=objc -func (n_ NumberFormatter) NegativeInfinitySymbol() string { - rv := objc.Call[string](n_, objc.Sel("negativeInfinitySymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408601-multiplier?language=objc +func (n_ NumberFormatter) Multiplier() Number { + rv := objc.Call[Number](n_, objc.Sel("multiplier")) return rv } -// The string used to represent a negative infinity symbol. [Full Topic] +// The multiplier of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417968-negativeinfinitysymbol?language=objc -func (n_ NumberFormatter) SetNegativeInfinitySymbol(value string) { - objc.Call[objc.Void](n_, objc.Sel("setNegativeInfinitySymbol:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408601-multiplier?language=objc +func (n_ NumberFormatter) SetMultiplier(value INumber) { + objc.Call[objc.Void](n_, objc.Sel("setMultiplier:"), value) } // The string used to represent an exponent symbol. [Full Topic] @@ -494,409 +524,379 @@ func (n_ NumberFormatter) SetExponentSymbol(value string) { objc.Call[objc.Void](n_, objc.Sel("setExponentSymbol:"), value) } -// A Boolean value indicating whether the formatter uses minimum and maximum significant digits when formatting numbers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417793-usessignificantdigits?language=objc -func (n_ NumberFormatter) UsesSignificantDigits() bool { - rv := objc.Call[bool](n_, objc.Sel("usesSignificantDigits")) - return rv -} - -// A Boolean value indicating whether the formatter uses minimum and maximum significant digits when formatting numbers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417793-usessignificantdigits?language=objc -func (n_ NumberFormatter) SetUsesSignificantDigits(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setUsesSignificantDigits:"), value) -} - -// The string used to represent a percent symbol. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407789-percentsymbol?language=objc -func (n_ NumberFormatter) PercentSymbol() string { - rv := objc.Call[string](n_, objc.Sel("percentSymbol")) - return rv -} - -// The string used to represent a percent symbol. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407789-percentsymbol?language=objc -func (n_ NumberFormatter) SetPercentSymbol(value string) { - objc.Call[objc.Void](n_, objc.Sel("setPercentSymbol:"), value) -} - -// The padding position used by the receiver. [Full Topic] +// The formatter behavior of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411127-paddingposition?language=objc -func (n_ NumberFormatter) PaddingPosition() NumberFormatterPadPosition { - rv := objc.Call[NumberFormatterPadPosition](n_, objc.Sel("paddingPosition")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417642-formatterbehavior?language=objc +func (n_ NumberFormatter) FormatterBehavior() NumberFormatterBehavior { + rv := objc.Call[NumberFormatterBehavior](n_, objc.Sel("formatterBehavior")) return rv } -// The padding position used by the receiver. [Full Topic] +// The formatter behavior of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411127-paddingposition?language=objc -func (n_ NumberFormatter) SetPaddingPosition(value NumberFormatterPadPosition) { - objc.Call[objc.Void](n_, objc.Sel("setPaddingPosition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417642-formatterbehavior?language=objc +func (n_ NumberFormatter) SetFormatterBehavior(value NumberFormatterBehavior) { + objc.Call[objc.Void](n_, objc.Sel("setFormatterBehavior:"), value) } -// The currency grouping separator for the receiver. [Full Topic] +// The number style used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416213-currencygroupingseparator?language=objc -func (n_ NumberFormatter) CurrencyGroupingSeparator() string { - rv := objc.Call[string](n_, objc.Sel("currencyGroupingSeparator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416915-numberstyle?language=objc +func (n_ NumberFormatter) NumberStyle() NumberFormatterStyle { + rv := objc.Call[NumberFormatterStyle](n_, objc.Sel("numberStyle")) return rv } -// The currency grouping separator for the receiver. [Full Topic] +// The number style used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416213-currencygroupingseparator?language=objc -func (n_ NumberFormatter) SetCurrencyGroupingSeparator(value string) { - objc.Call[objc.Void](n_, objc.Sel("setCurrencyGroupingSeparator:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416915-numberstyle?language=objc +func (n_ NumberFormatter) SetNumberStyle(value NumberFormatterStyle) { + objc.Call[objc.Void](n_, objc.Sel("setNumberStyle:"), value) } -// The rounding behavior used by the receiver. [Full Topic] +// The attributed string the receiver uses to display “not a number” values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415880-roundingbehavior?language=objc -func (n_ NumberFormatter) RoundingBehavior() DecimalNumberHandler { - rv := objc.Call[DecimalNumberHandler](n_, objc.Sel("roundingBehavior")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416819-attributedstringfornotanumber?language=objc +func (n_ NumberFormatter) AttributedStringForNotANumber() AttributedString { + rv := objc.Call[AttributedString](n_, objc.Sel("attributedStringForNotANumber")) return rv } -// The rounding behavior used by the receiver. [Full Topic] +// The attributed string the receiver uses to display “not a number” values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415880-roundingbehavior?language=objc -func (n_ NumberFormatter) SetRoundingBehavior(value IDecimalNumberHandler) { - objc.Call[objc.Void](n_, objc.Sel("setRoundingBehavior:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416819-attributedstringfornotanumber?language=objc +func (n_ NumberFormatter) SetAttributedStringForNotANumber(value IAttributedString) { + objc.Call[objc.Void](n_, objc.Sel("setAttributedStringForNotANumber:"), value) } -// The grouping size of the receiver. [Full Topic] +// The international currency symbol used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416167-groupingsize?language=objc -func (n_ NumberFormatter) GroupingSize() uint { - rv := objc.Call[uint](n_, objc.Sel("groupingSize")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412755-internationalcurrencysymbol?language=objc +func (n_ NumberFormatter) InternationalCurrencySymbol() string { + rv := objc.Call[string](n_, objc.Sel("internationalCurrencySymbol")) return rv } -// The grouping size of the receiver. [Full Topic] +// The international currency symbol used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416167-groupingsize?language=objc -func (n_ NumberFormatter) SetGroupingSize(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setGroupingSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412755-internationalcurrencysymbol?language=objc +func (n_ NumberFormatter) SetInternationalCurrencySymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setInternationalCurrencySymbol:"), value) } -// The string used to represent a nil value. [Full Topic] +// The maximum number of digits before the decimal separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412699-nilsymbol?language=objc -func (n_ NumberFormatter) NilSymbol() string { - rv := objc.Call[string](n_, objc.Sel("nilSymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407284-maximumintegerdigits?language=objc +func (n_ NumberFormatter) MaximumIntegerDigits() uint { + rv := objc.Call[uint](n_, objc.Sel("maximumIntegerDigits")) return rv } -// The string used to represent a nil value. [Full Topic] +// The maximum number of digits before the decimal separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412699-nilsymbol?language=objc -func (n_ NumberFormatter) SetNilSymbol(value string) { - objc.Call[objc.Void](n_, objc.Sel("setNilSymbol:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407284-maximumintegerdigits?language=objc +func (n_ NumberFormatter) SetMaximumIntegerDigits(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setMaximumIntegerDigits:"), value) } -// The number style used by the receiver. [Full Topic] +// The text attributes used to display the positive infinity symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416915-numberstyle?language=objc -func (n_ NumberFormatter) NumberStyle() NumberFormatterStyle { - rv := objc.Call[NumberFormatterStyle](n_, objc.Sel("numberStyle")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408176-textattributesforpositiveinfinit?language=objc +func (n_ NumberFormatter) TextAttributesForPositiveInfinity() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForPositiveInfinity")) return rv } -// The number style used by the receiver. [Full Topic] +// The text attributes used to display the positive infinity symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416915-numberstyle?language=objc -func (n_ NumberFormatter) SetNumberStyle(value NumberFormatterStyle) { - objc.Call[objc.Void](n_, objc.Sel("setNumberStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408176-textattributesforpositiveinfinit?language=objc +func (n_ NumberFormatter) SetTextAttributesForPositiveInfinity(value map[string]objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForPositiveInfinity:"), value) } -// The attributed string the receiver uses to display nil values. [Full Topic] +// The rounding increment used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416184-attributedstringfornil?language=objc -func (n_ NumberFormatter) AttributedStringForNil() AttributedString { - rv := objc.Call[AttributedString](n_, objc.Sel("attributedStringForNil")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412561-roundingincrement?language=objc +func (n_ NumberFormatter) RoundingIncrement() Number { + rv := objc.Call[Number](n_, objc.Sel("roundingIncrement")) return rv } -// The attributed string the receiver uses to display nil values. [Full Topic] +// The rounding increment used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416184-attributedstringfornil?language=objc -func (n_ NumberFormatter) SetAttributedStringForNil(value IAttributedString) { - objc.Call[objc.Void](n_, objc.Sel("setAttributedStringForNil:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412561-roundingincrement?language=objc +func (n_ NumberFormatter) SetRoundingIncrement(value INumber) { + objc.Call[objc.Void](n_, objc.Sel("setRoundingIncrement:"), value) } -// The receiver’s format. [Full Topic] +// The text attributes used to display the negative infinity symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410565-format?language=objc -func (n_ NumberFormatter) Format() string { - rv := objc.Call[string](n_, objc.Sel("format")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410417-textattributesfornegativeinfinit?language=objc +func (n_ NumberFormatter) TextAttributesForNegativeInfinity() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForNegativeInfinity")) return rv } -// The receiver’s format. [Full Topic] +// The text attributes used to display the negative infinity symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410565-format?language=objc -func (n_ NumberFormatter) SetFormat(value string) { - objc.Call[objc.Void](n_, objc.Sel("setFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410417-textattributesfornegativeinfinit?language=objc +func (n_ NumberFormatter) SetTextAttributesForNegativeInfinity(value map[string]objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForNegativeInfinity:"), value) } -// The character the receiver uses as a thousand separator. [Full Topic] +// The string used to represent a negative infinity symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412771-thousandseparator?language=objc -func (n_ NumberFormatter) ThousandSeparator() string { - rv := objc.Call[string](n_, objc.Sel("thousandSeparator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417968-negativeinfinitysymbol?language=objc +func (n_ NumberFormatter) NegativeInfinitySymbol() string { + rv := objc.Call[string](n_, objc.Sel("negativeInfinitySymbol")) return rv } -// The character the receiver uses as a thousand separator. [Full Topic] +// The string used to represent a negative infinity symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412771-thousandseparator?language=objc -func (n_ NumberFormatter) SetThousandSeparator(value string) { - objc.Call[objc.Void](n_, objc.Sel("setThousandSeparator:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417968-negativeinfinitysymbol?language=objc +func (n_ NumberFormatter) SetNegativeInfinitySymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setNegativeInfinitySymbol:"), value) } -// The string used to represent a positive infinity symbol. [Full Topic] +// Determines whether the receiver creates instances of NSDecimalNumber when it converts strings to number objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412976-positiveinfinitysymbol?language=objc -func (n_ NumberFormatter) PositiveInfinitySymbol() string { - rv := objc.Call[string](n_, objc.Sel("positiveInfinitySymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410503-generatesdecimalnumbers?language=objc +func (n_ NumberFormatter) GeneratesDecimalNumbers() bool { + rv := objc.Call[bool](n_, objc.Sel("generatesDecimalNumbers")) return rv } -// The string used to represent a positive infinity symbol. [Full Topic] +// Determines whether the receiver creates instances of NSDecimalNumber when it converts strings to number objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412976-positiveinfinitysymbol?language=objc -func (n_ NumberFormatter) SetPositiveInfinitySymbol(value string) { - objc.Call[objc.Void](n_, objc.Sel("setPositiveInfinitySymbol:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410503-generatesdecimalnumbers?language=objc +func (n_ NumberFormatter) SetGeneratesDecimalNumbers(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setGeneratesDecimalNumbers:"), value) } -// The string used to represent a per-mill (per-thousand) symbol. [Full Topic] +// The text attributes used to display a zero value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412399-permillsymbol?language=objc -func (n_ NumberFormatter) PerMillSymbol() string { - rv := objc.Call[string](n_, objc.Sel("perMillSymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415971-textattributesforzero?language=objc +func (n_ NumberFormatter) TextAttributesForZero() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForZero")) return rv } -// The string used to represent a per-mill (per-thousand) symbol. [Full Topic] +// The text attributes used to display a zero value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412399-permillsymbol?language=objc -func (n_ NumberFormatter) SetPerMillSymbol(value string) { - objc.Call[objc.Void](n_, objc.Sel("setPerMillSymbol:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415971-textattributesforzero?language=objc +func (n_ NumberFormatter) SetTextAttributesForZero(value map[string]objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForZero:"), value) } -// The text attributes to be used in displaying negative values. [Full Topic] +// The minimum number of significant digits for the number formatter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1414530-textattributesfornegativevalues?language=objc -func (n_ NumberFormatter) TextAttributesForNegativeValues() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForNegativeValues")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410174-minimumsignificantdigits?language=objc +func (n_ NumberFormatter) MinimumSignificantDigits() uint { + rv := objc.Call[uint](n_, objc.Sel("minimumSignificantDigits")) return rv } -// The text attributes to be used in displaying negative values. [Full Topic] +// The minimum number of significant digits for the number formatter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1414530-textattributesfornegativevalues?language=objc -func (n_ NumberFormatter) SetTextAttributesForNegativeValues(value map[string]objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForNegativeValues:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410174-minimumsignificantdigits?language=objc +func (n_ NumberFormatter) SetMinimumSignificantDigits(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setMinimumSignificantDigits:"), value) } -// The maximum number of significant digits for the number formatter. [Full Topic] +// The locale of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412008-maximumsignificantdigits?language=objc -func (n_ NumberFormatter) MaximumSignificantDigits() uint { - rv := objc.Call[uint](n_, objc.Sel("maximumSignificantDigits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416967-locale?language=objc +func (n_ NumberFormatter) Locale() Locale { + rv := objc.Call[Locale](n_, objc.Sel("locale")) return rv } -// The maximum number of significant digits for the number formatter. [Full Topic] +// The locale of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412008-maximumsignificantdigits?language=objc -func (n_ NumberFormatter) SetMaximumSignificantDigits(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setMaximumSignificantDigits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416967-locale?language=objc +func (n_ NumberFormatter) SetLocale(value ILocale) { + objc.Call[objc.Void](n_, objc.Sel("setLocale:"), value) } -// The string that the receiver uses to pad numbers in the formatted string representation. [Full Topic] +// Determines whether the receiver uses thousand separators. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413690-paddingcharacter?language=objc -func (n_ NumberFormatter) PaddingCharacter() string { - rv := objc.Call[string](n_, objc.Sel("paddingCharacter")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416451-hasthousandseparators?language=objc +func (n_ NumberFormatter) HasThousandSeparators() bool { + rv := objc.Call[bool](n_, objc.Sel("hasThousandSeparators")) return rv } -// The string that the receiver uses to pad numbers in the formatted string representation. [Full Topic] +// Determines whether the receiver uses thousand separators. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413690-paddingcharacter?language=objc -func (n_ NumberFormatter) SetPaddingCharacter(value string) { - objc.Call[objc.Void](n_, objc.Sel("setPaddingCharacter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416451-hasthousandseparators?language=objc +func (n_ NumberFormatter) SetHasThousandSeparators(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setHasThousandSeparators:"), value) } -// Determines whether the receiver displays the group separator. [Full Topic] +// The string used by the receiver as a currency decimal separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409880-usesgroupingseparator?language=objc -func (n_ NumberFormatter) UsesGroupingSeparator() bool { - rv := objc.Call[bool](n_, objc.Sel("usesGroupingSeparator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407247-currencydecimalseparator?language=objc +func (n_ NumberFormatter) CurrencyDecimalSeparator() string { + rv := objc.Call[string](n_, objc.Sel("currencyDecimalSeparator")) return rv } -// Determines whether the receiver displays the group separator. [Full Topic] +// The string used by the receiver as a currency decimal separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409880-usesgroupingseparator?language=objc -func (n_ NumberFormatter) SetUsesGroupingSeparator(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setUsesGroupingSeparator:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407247-currencydecimalseparator?language=objc +func (n_ NumberFormatter) SetCurrencyDecimalSeparator(value string) { + objc.Call[objc.Void](n_, objc.Sel("setCurrencyDecimalSeparator:"), value) } -// The multiplier of the receiver. [Full Topic] +// The maximum number of digits after the decimal separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408601-multiplier?language=objc -func (n_ NumberFormatter) Multiplier() Number { - rv := objc.Call[Number](n_, objc.Sel("multiplier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415364-maximumfractiondigits?language=objc +func (n_ NumberFormatter) MaximumFractionDigits() uint { + rv := objc.Call[uint](n_, objc.Sel("maximumFractionDigits")) return rv } -// The multiplier of the receiver. [Full Topic] +// The maximum number of digits after the decimal separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408601-multiplier?language=objc -func (n_ NumberFormatter) SetMultiplier(value INumber) { - objc.Call[objc.Void](n_, objc.Sel("setMultiplier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415364-maximumfractiondigits?language=objc +func (n_ NumberFormatter) SetMaximumFractionDigits(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setMaximumFractionDigits:"), value) } -// The string used to represent a minus sign. [Full Topic] +// The lowest number allowed as input by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409416-minussign?language=objc -func (n_ NumberFormatter) MinusSign() string { - rv := objc.Call[string](n_, objc.Sel("minusSign")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417228-minimum?language=objc +func (n_ NumberFormatter) Minimum() Number { + rv := objc.Call[Number](n_, objc.Sel("minimum")) return rv } -// The string used to represent a minus sign. [Full Topic] +// The lowest number allowed as input by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409416-minussign?language=objc -func (n_ NumberFormatter) SetMinusSign(value string) { - objc.Call[objc.Void](n_, objc.Sel("setMinusSign:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417228-minimum?language=objc +func (n_ NumberFormatter) SetMinimum(value INumber) { + objc.Call[objc.Void](n_, objc.Sel("setMinimum:"), value) } -// The text attributes used to display the nil symbol. [Full Topic] +// The attributed string that the receiver uses to display zero values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408943-textattributesfornil?language=objc -func (n_ NumberFormatter) TextAttributesForNil() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForNil")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415516-attributedstringforzero?language=objc +func (n_ NumberFormatter) AttributedStringForZero() AttributedString { + rv := objc.Call[AttributedString](n_, objc.Sel("attributedStringForZero")) return rv } -// The text attributes used to display the nil symbol. [Full Topic] +// The attributed string that the receiver uses to display zero values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408943-textattributesfornil?language=objc -func (n_ NumberFormatter) SetTextAttributesForNil(value map[string]objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForNil:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415516-attributedstringforzero?language=objc +func (n_ NumberFormatter) SetAttributedStringForZero(value IAttributedString) { + objc.Call[objc.Void](n_, objc.Sel("setAttributedStringForZero:"), value) } -// The rounding increment used by the receiver. [Full Topic] +// The string used to represent a per-mill (per-thousand) symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412561-roundingincrement?language=objc -func (n_ NumberFormatter) RoundingIncrement() Number { - rv := objc.Call[Number](n_, objc.Sel("roundingIncrement")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412399-permillsymbol?language=objc +func (n_ NumberFormatter) PerMillSymbol() string { + rv := objc.Call[string](n_, objc.Sel("perMillSymbol")) return rv } -// The rounding increment used by the receiver. [Full Topic] +// The string used to represent a per-mill (per-thousand) symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412561-roundingincrement?language=objc -func (n_ NumberFormatter) SetRoundingIncrement(value INumber) { - objc.Call[objc.Void](n_, objc.Sel("setRoundingIncrement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412399-permillsymbol?language=objc +func (n_ NumberFormatter) SetPerMillSymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setPerMillSymbol:"), value) } -// The maximum number of digits before the decimal separator. [Full Topic] +// The maximum number of significant digits for the number formatter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407284-maximumintegerdigits?language=objc -func (n_ NumberFormatter) MaximumIntegerDigits() uint { - rv := objc.Call[uint](n_, objc.Sel("maximumIntegerDigits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412008-maximumsignificantdigits?language=objc +func (n_ NumberFormatter) MaximumSignificantDigits() uint { + rv := objc.Call[uint](n_, objc.Sel("maximumSignificantDigits")) return rv } -// The maximum number of digits before the decimal separator. [Full Topic] +// The maximum number of significant digits for the number formatter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407284-maximumintegerdigits?language=objc -func (n_ NumberFormatter) SetMaximumIntegerDigits(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setMaximumIntegerDigits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412008-maximumsignificantdigits?language=objc +func (n_ NumberFormatter) SetMaximumSignificantDigits(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setMaximumSignificantDigits:"), value) } -// The capitalization formatting context used when formatting a number. [Full Topic] +// The string used to represent a zero value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408543-formattingcontext?language=objc -func (n_ NumberFormatter) FormattingContext() FormattingContext { - rv := objc.Call[FormattingContext](n_, objc.Sel("formattingContext")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410405-zerosymbol?language=objc +func (n_ NumberFormatter) ZeroSymbol() string { + rv := objc.Call[string](n_, objc.Sel("zeroSymbol")) return rv } -// The capitalization formatting context used when formatting a number. [Full Topic] +// The string used to represent a zero value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408543-formattingcontext?language=objc -func (n_ NumberFormatter) SetFormattingContext(value FormattingContext) { - objc.Call[objc.Void](n_, objc.Sel("setFormattingContext:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410405-zerosymbol?language=objc +func (n_ NumberFormatter) SetZeroSymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setZeroSymbol:"), value) } -// The text attributes used to display the negative infinity symbol. [Full Topic] +// The string used to represent a percent symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410417-textattributesfornegativeinfinit?language=objc -func (n_ NumberFormatter) TextAttributesForNegativeInfinity() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForNegativeInfinity")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407789-percentsymbol?language=objc +func (n_ NumberFormatter) PercentSymbol() string { + rv := objc.Call[string](n_, objc.Sel("percentSymbol")) return rv } -// The text attributes used to display the negative infinity symbol. [Full Topic] +// The string used to represent a percent symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410417-textattributesfornegativeinfinit?language=objc -func (n_ NumberFormatter) SetTextAttributesForNegativeInfinity(value map[string]objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForNegativeInfinity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407789-percentsymbol?language=objc +func (n_ NumberFormatter) SetPercentSymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setPercentSymbol:"), value) } -// Determines whether the receiver allows as input floating-point values (that is, values that include the period character [.]). [Full Topic] +// The string used to represent a nil value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416119-allowsfloats?language=objc -func (n_ NumberFormatter) AllowsFloats() bool { - rv := objc.Call[bool](n_, objc.Sel("allowsFloats")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412699-nilsymbol?language=objc +func (n_ NumberFormatter) NilSymbol() string { + rv := objc.Call[string](n_, objc.Sel("nilSymbol")) return rv } -// Determines whether the receiver allows as input floating-point values (that is, values that include the period character [.]). [Full Topic] +// The string used to represent a nil value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416119-allowsfloats?language=objc -func (n_ NumberFormatter) SetAllowsFloats(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setAllowsFloats:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412699-nilsymbol?language=objc +func (n_ NumberFormatter) SetNilSymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setNilSymbol:"), value) } -// The string used to represent a zero value. [Full Topic] +// The string used to represent a minus sign. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410405-zerosymbol?language=objc -func (n_ NumberFormatter) ZeroSymbol() string { - rv := objc.Call[string](n_, objc.Sel("zeroSymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409416-minussign?language=objc +func (n_ NumberFormatter) MinusSign() string { + rv := objc.Call[string](n_, objc.Sel("minusSign")) return rv } -// The string used to represent a zero value. [Full Topic] +// The string used to represent a minus sign. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410405-zerosymbol?language=objc -func (n_ NumberFormatter) SetZeroSymbol(value string) { - objc.Call[objc.Void](n_, objc.Sel("setZeroSymbol:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409416-minussign?language=objc +func (n_ NumberFormatter) SetMinusSign(value string) { + objc.Call[objc.Void](n_, objc.Sel("setMinusSign:"), value) } -// The format width used by the receiver. [Full Topic] +// The string used to represent a NaN (“not a number”) value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411919-formatwidth?language=objc -func (n_ NumberFormatter) FormatWidth() uint { - rv := objc.Call[uint](n_, objc.Sel("formatWidth")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416993-notanumbersymbol?language=objc +func (n_ NumberFormatter) NotANumberSymbol() string { + rv := objc.Call[string](n_, objc.Sel("notANumberSymbol")) return rv } -// The format width used by the receiver. [Full Topic] +// The string used to represent a NaN (“not a number”) value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411919-formatwidth?language=objc -func (n_ NumberFormatter) SetFormatWidth(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setFormatWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416993-notanumbersymbol?language=objc +func (n_ NumberFormatter) SetNotANumberSymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setNotANumberSymbol:"), value) } // The string used by the receiver as a local currency symbol. [Full Topic] @@ -914,94 +914,94 @@ func (n_ NumberFormatter) SetCurrencySymbol(value string) { objc.Call[objc.Void](n_, objc.Sel("setCurrencySymbol:"), value) } -// The string used by the receiver as a currency decimal separator. [Full Topic] +// The capitalization formatting context used when formatting a number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407247-currencydecimalseparator?language=objc -func (n_ NumberFormatter) CurrencyDecimalSeparator() string { - rv := objc.Call[string](n_, objc.Sel("currencyDecimalSeparator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408543-formattingcontext?language=objc +func (n_ NumberFormatter) FormattingContext() FormattingContext { + rv := objc.Call[FormattingContext](n_, objc.Sel("formattingContext")) return rv } -// The string used by the receiver as a currency decimal separator. [Full Topic] +// The capitalization formatting context used when formatting a number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1407247-currencydecimalseparator?language=objc -func (n_ NumberFormatter) SetCurrencyDecimalSeparator(value string) { - objc.Call[objc.Void](n_, objc.Sel("setCurrencyDecimalSeparator:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408543-formattingcontext?language=objc +func (n_ NumberFormatter) SetFormattingContext(value FormattingContext) { + objc.Call[objc.Void](n_, objc.Sel("setFormattingContext:"), value) } -// The secondary grouping size of the receiver. [Full Topic] +// The character the receiver uses as a decimal separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413348-secondarygroupingsize?language=objc -func (n_ NumberFormatter) SecondaryGroupingSize() uint { - rv := objc.Call[uint](n_, objc.Sel("secondaryGroupingSize")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408029-decimalseparator?language=objc +func (n_ NumberFormatter) DecimalSeparator() string { + rv := objc.Call[string](n_, objc.Sel("decimalSeparator")) return rv } -// The secondary grouping size of the receiver. [Full Topic] +// The character the receiver uses as a decimal separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413348-secondarygroupingsize?language=objc -func (n_ NumberFormatter) SetSecondaryGroupingSize(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setSecondaryGroupingSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408029-decimalseparator?language=objc +func (n_ NumberFormatter) SetDecimalSeparator(value string) { + objc.Call[objc.Void](n_, objc.Sel("setDecimalSeparator:"), value) } -// The string used to represent a plus sign. [Full Topic] +// Determines whether the receiver displays the group separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416423-plussign?language=objc -func (n_ NumberFormatter) PlusSign() string { - rv := objc.Call[string](n_, objc.Sel("plusSign")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409880-usesgroupingseparator?language=objc +func (n_ NumberFormatter) UsesGroupingSeparator() bool { + rv := objc.Call[bool](n_, objc.Sel("usesGroupingSeparator")) return rv } -// The string used to represent a plus sign. [Full Topic] +// Determines whether the receiver displays the group separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416423-plussign?language=objc -func (n_ NumberFormatter) SetPlusSign(value string) { - objc.Call[objc.Void](n_, objc.Sel("setPlusSign:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409880-usesgroupingseparator?language=objc +func (n_ NumberFormatter) SetUsesGroupingSeparator(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setUsesGroupingSeparator:"), value) } -// The locale of the receiver. [Full Topic] +// Determines whether partial string validation is enabled for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416967-locale?language=objc -func (n_ NumberFormatter) Locale() Locale { - rv := objc.Call[Locale](n_, objc.Sel("locale")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412244-partialstringvalidationenabled?language=objc +func (n_ NumberFormatter) IsPartialStringValidationEnabled() bool { + rv := objc.Call[bool](n_, objc.Sel("isPartialStringValidationEnabled")) return rv } -// The locale of the receiver. [Full Topic] +// Determines whether partial string validation is enabled for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416967-locale?language=objc -func (n_ NumberFormatter) SetLocale(value ILocale) { - objc.Call[objc.Void](n_, objc.Sel("setLocale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412244-partialstringvalidationenabled?language=objc +func (n_ NumberFormatter) SetPartialStringValidationEnabled(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setPartialStringValidationEnabled:"), value) } -// The minimum number of significant digits for the number formatter. [Full Topic] +// The attributed string the receiver uses to display nil values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410174-minimumsignificantdigits?language=objc -func (n_ NumberFormatter) MinimumSignificantDigits() uint { - rv := objc.Call[uint](n_, objc.Sel("minimumSignificantDigits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416184-attributedstringfornil?language=objc +func (n_ NumberFormatter) AttributedStringForNil() AttributedString { + rv := objc.Call[AttributedString](n_, objc.Sel("attributedStringForNil")) return rv } -// The minimum number of significant digits for the number formatter. [Full Topic] +// The attributed string the receiver uses to display nil values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410174-minimumsignificantdigits?language=objc -func (n_ NumberFormatter) SetMinimumSignificantDigits(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setMinimumSignificantDigits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416184-attributedstringfornil?language=objc +func (n_ NumberFormatter) SetAttributedStringForNil(value IAttributedString) { + objc.Call[objc.Void](n_, objc.Sel("setAttributedStringForNil:"), value) } -// The formatter behavior of the receiver. [Full Topic] +// The character the receiver uses as a thousand separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417642-formatterbehavior?language=objc -func (n_ NumberFormatter) FormatterBehavior() NumberFormatterBehavior { - rv := objc.Call[NumberFormatterBehavior](n_, objc.Sel("formatterBehavior")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412771-thousandseparator?language=objc +func (n_ NumberFormatter) ThousandSeparator() string { + rv := objc.Call[string](n_, objc.Sel("thousandSeparator")) return rv } -// The formatter behavior of the receiver. [Full Topic] +// The character the receiver uses as a thousand separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417642-formatterbehavior?language=objc -func (n_ NumberFormatter) SetFormatterBehavior(value NumberFormatterBehavior) { - objc.Call[objc.Void](n_, objc.Sel("setFormatterBehavior:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412771-thousandseparator?language=objc +func (n_ NumberFormatter) SetThousandSeparator(value string) { + objc.Call[objc.Void](n_, objc.Sel("setThousandSeparator:"), value) } // The text attributes used to display the NaN (“not a number”) string. [Full Topic] @@ -1019,21 +1019,6 @@ func (n_ NumberFormatter) SetTextAttributesForNotANumber(value map[string]objc.I objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForNotANumber:"), value) } -// The text attributes used to display the positive infinity symbol. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408176-textattributesforpositiveinfinit?language=objc -func (n_ NumberFormatter) TextAttributesForPositiveInfinity() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForPositiveInfinity")) - return rv -} - -// The text attributes used to display the positive infinity symbol. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408176-textattributesforpositiveinfinit?language=objc -func (n_ NumberFormatter) SetTextAttributesForPositiveInfinity(value map[string]objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForPositiveInfinity:"), value) -} - // The string the receiver uses as the suffix for positive values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415071-positivesuffix?language=objc @@ -1049,94 +1034,94 @@ func (n_ NumberFormatter) SetPositiveSuffix(value string) { objc.Call[objc.Void](n_, objc.Sel("setPositiveSuffix:"), value) } -// Determines whether the receiver will use heuristics to guess at the number which is intended by a string. [Full Topic] +// The text attributes to be used in displaying positive values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416953-lenient?language=objc -func (n_ NumberFormatter) IsLenient() bool { - rv := objc.Call[bool](n_, objc.Sel("isLenient")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409563-textattributesforpositivevalues?language=objc +func (n_ NumberFormatter) TextAttributesForPositiveValues() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForPositiveValues")) return rv } -// Determines whether the receiver will use heuristics to guess at the number which is intended by a string. [Full Topic] +// The text attributes to be used in displaying positive values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416953-lenient?language=objc -func (n_ NumberFormatter) SetLenient(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setLenient:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409563-textattributesforpositivevalues?language=objc +func (n_ NumberFormatter) SetTextAttributesForPositiveValues(value map[string]objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForPositiveValues:"), value) } -// The format the receiver uses to display positive values. [Full Topic] +// The rounding behavior used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410737-positiveformat?language=objc -func (n_ NumberFormatter) PositiveFormat() string { - rv := objc.Call[string](n_, objc.Sel("positiveFormat")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415880-roundingbehavior?language=objc +func (n_ NumberFormatter) RoundingBehavior() DecimalNumberHandler { + rv := objc.Call[DecimalNumberHandler](n_, objc.Sel("roundingBehavior")) return rv } -// The format the receiver uses to display positive values. [Full Topic] +// The rounding behavior used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410737-positiveformat?language=objc -func (n_ NumberFormatter) SetPositiveFormat(value string) { - objc.Call[objc.Void](n_, objc.Sel("setPositiveFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415880-roundingbehavior?language=objc +func (n_ NumberFormatter) SetRoundingBehavior(value IDecimalNumberHandler) { + objc.Call[objc.Void](n_, objc.Sel("setRoundingBehavior:"), value) } -// The rounding mode used by the receiver. [Full Topic] +// The string used by the receiver for a grouping separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411156-roundingmode?language=objc -func (n_ NumberFormatter) RoundingMode() NumberFormatterRoundingMode { - rv := objc.Call[NumberFormatterRoundingMode](n_, objc.Sel("roundingMode")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412157-groupingseparator?language=objc +func (n_ NumberFormatter) GroupingSeparator() string { + rv := objc.Call[string](n_, objc.Sel("groupingSeparator")) return rv } -// The rounding mode used by the receiver. [Full Topic] +// The string used by the receiver for a grouping separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411156-roundingmode?language=objc -func (n_ NumberFormatter) SetRoundingMode(value NumberFormatterRoundingMode) { - objc.Call[objc.Void](n_, objc.Sel("setRoundingMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412157-groupingseparator?language=objc +func (n_ NumberFormatter) SetGroupingSeparator(value string) { + objc.Call[objc.Void](n_, objc.Sel("setGroupingSeparator:"), value) } -// The string the receiver uses as a prefix for negative values. [Full Topic] +// The minimum number of digits after the decimal separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408096-negativeprefix?language=objc -func (n_ NumberFormatter) NegativePrefix() string { - rv := objc.Call[string](n_, objc.Sel("negativePrefix")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410459-minimumfractiondigits?language=objc +func (n_ NumberFormatter) MinimumFractionDigits() uint { + rv := objc.Call[uint](n_, objc.Sel("minimumFractionDigits")) return rv } -// The string the receiver uses as a prefix for negative values. [Full Topic] +// The minimum number of digits after the decimal separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408096-negativeprefix?language=objc -func (n_ NumberFormatter) SetNegativePrefix(value string) { - objc.Call[objc.Void](n_, objc.Sel("setNegativePrefix:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410459-minimumfractiondigits?language=objc +func (n_ NumberFormatter) SetMinimumFractionDigits(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setMinimumFractionDigits:"), value) } -// The string used to represent a NaN (“not a number”) value. [Full Topic] +// The receiver’s format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416993-notanumbersymbol?language=objc -func (n_ NumberFormatter) NotANumberSymbol() string { - rv := objc.Call[string](n_, objc.Sel("notANumberSymbol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410565-format?language=objc +func (n_ NumberFormatter) Format() string { + rv := objc.Call[string](n_, objc.Sel("format")) return rv } -// The string used to represent a NaN (“not a number”) value. [Full Topic] +// The receiver’s format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416993-notanumbersymbol?language=objc -func (n_ NumberFormatter) SetNotANumberSymbol(value string) { - objc.Call[objc.Void](n_, objc.Sel("setNotANumberSymbol:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1410565-format?language=objc +func (n_ NumberFormatter) SetFormat(value string) { + objc.Call[objc.Void](n_, objc.Sel("setFormat:"), value) } -// The string the receiver uses as the prefix for positive values. [Full Topic] +// The text attributes used to display the nil symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1414204-positiveprefix?language=objc -func (n_ NumberFormatter) PositivePrefix() string { - rv := objc.Call[string](n_, objc.Sel("positivePrefix")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408943-textattributesfornil?language=objc +func (n_ NumberFormatter) TextAttributesForNil() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForNil")) return rv } -// The string the receiver uses as the prefix for positive values. [Full Topic] +// The text attributes used to display the nil symbol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1414204-positiveprefix?language=objc -func (n_ NumberFormatter) SetPositivePrefix(value string) { - objc.Call[objc.Void](n_, objc.Sel("setPositivePrefix:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408943-textattributesfornil?language=objc +func (n_ NumberFormatter) SetTextAttributesForNil(value map[string]objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForNil:"), value) } // The minimum number of digits before the decimal separator. [Full Topic] @@ -1154,6 +1139,21 @@ func (n_ NumberFormatter) SetMinimumIntegerDigits(value uint) { objc.Call[objc.Void](n_, objc.Sel("setMinimumIntegerDigits:"), value) } +// The rounding mode used by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411156-roundingmode?language=objc +func (n_ NumberFormatter) RoundingMode() NumberFormatterRoundingMode { + rv := objc.Call[NumberFormatterRoundingMode](n_, objc.Sel("roundingMode")) + return rv +} + +// The rounding mode used by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411156-roundingmode?language=objc +func (n_ NumberFormatter) SetRoundingMode(value NumberFormatterRoundingMode) { + objc.Call[objc.Void](n_, objc.Sel("setRoundingMode:"), value) +} + // The highest number allowed as input by the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1417787-maximum?language=objc @@ -1169,62 +1169,62 @@ func (n_ NumberFormatter) SetMaximum(value INumber) { objc.Call[objc.Void](n_, objc.Sel("setMaximum:"), value) } -// Determines whether the dollar sign character ($), decimal separator character (.), and thousand separator character (,) are converted to appropriately localized characters as specified by the user’s localization preference. [Full Topic] +// The padding position used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408133-localizesformat?language=objc -func (n_ NumberFormatter) LocalizesFormat() bool { - rv := objc.Call[bool](n_, objc.Sel("localizesFormat")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411127-paddingposition?language=objc +func (n_ NumberFormatter) PaddingPosition() NumberFormatterPadPosition { + rv := objc.Call[NumberFormatterPadPosition](n_, objc.Sel("paddingPosition")) return rv } -// Determines whether the dollar sign character ($), decimal separator character (.), and thousand separator character (,) are converted to appropriately localized characters as specified by the user’s localization preference. [Full Topic] +// The padding position used by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1408133-localizesformat?language=objc -func (n_ NumberFormatter) SetLocalizesFormat(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setLocalizesFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1411127-paddingposition?language=objc +func (n_ NumberFormatter) SetPaddingPosition(value NumberFormatterPadPosition) { + objc.Call[objc.Void](n_, objc.Sel("setPaddingPosition:"), value) } -// The attributed string that the receiver uses to display zero values. [Full Topic] +// The string the receiver uses as a suffix for negative values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415516-attributedstringforzero?language=objc -func (n_ NumberFormatter) AttributedStringForZero() AttributedString { - rv := objc.Call[AttributedString](n_, objc.Sel("attributedStringForZero")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413927-negativesuffix?language=objc +func (n_ NumberFormatter) NegativeSuffix() string { + rv := objc.Call[string](n_, objc.Sel("negativeSuffix")) return rv } -// The attributed string that the receiver uses to display zero values. [Full Topic] +// The string the receiver uses as a suffix for negative values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1415516-attributedstringforzero?language=objc -func (n_ NumberFormatter) SetAttributedStringForZero(value IAttributedString) { - objc.Call[objc.Void](n_, objc.Sel("setAttributedStringForZero:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1413927-negativesuffix?language=objc +func (n_ NumberFormatter) SetNegativeSuffix(value string) { + objc.Call[objc.Void](n_, objc.Sel("setNegativeSuffix:"), value) } -// Determines whether partial string validation is enabled for the receiver. [Full Topic] +// The text attributes to be used in displaying negative values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412244-partialstringvalidationenabled?language=objc -func (n_ NumberFormatter) IsPartialStringValidationEnabled() bool { - rv := objc.Call[bool](n_, objc.Sel("isPartialStringValidationEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1414530-textattributesfornegativevalues?language=objc +func (n_ NumberFormatter) TextAttributesForNegativeValues() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForNegativeValues")) return rv } -// Determines whether partial string validation is enabled for the receiver. [Full Topic] +// The text attributes to be used in displaying negative values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1412244-partialstringvalidationenabled?language=objc -func (n_ NumberFormatter) SetPartialStringValidationEnabled(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setPartialStringValidationEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1414530-textattributesfornegativevalues?language=objc +func (n_ NumberFormatter) SetTextAttributesForNegativeValues(value map[string]objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForNegativeValues:"), value) } -// The text attributes to be used in displaying positive values. [Full Topic] +// The grouping size of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409563-textattributesforpositivevalues?language=objc -func (n_ NumberFormatter) TextAttributesForPositiveValues() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](n_, objc.Sel("textAttributesForPositiveValues")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416167-groupingsize?language=objc +func (n_ NumberFormatter) GroupingSize() uint { + rv := objc.Call[uint](n_, objc.Sel("groupingSize")) return rv } -// The text attributes to be used in displaying positive values. [Full Topic] +// The grouping size of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1409563-textattributesforpositivevalues?language=objc -func (n_ NumberFormatter) SetTextAttributesForPositiveValues(value map[string]objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForPositiveValues:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1416167-groupingsize?language=objc +func (n_ NumberFormatter) SetGroupingSize(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setGroupingSize:"), value) } diff --git a/macos/foundation/operation.gen.go b/macos/foundation/operation.gen.go index 18794e61..3e93717e 100644 --- a/macos/foundation/operation.gen.go +++ b/macos/foundation/operation.gen.go @@ -18,26 +18,26 @@ type _OperationClass struct { // An interface definition for the [Operation] class. type IOperation interface { objc.IObject - Main() + RemoveDependency(op IOperation) AddDependency(op IOperation) + Main() + Start() WaitUntilFinished() Cancel() - Start() - RemoveDependency(op IOperation) - CompletionBlock() func() - SetCompletionBlock(value func()) + IsCancelled() bool IsExecuting() bool Dependencies() []Operation - IsAsynchronous() bool - IsCancelled() bool - QualityOfService() QualityOfService - SetQualityOfService(value QualityOfService) - IsFinished() bool Name() string SetName(value string) + QualityOfService() QualityOfService + SetQualityOfService(value QualityOfService) + IsConcurrent() bool QueuePriority() OperationQueuePriority SetQueuePriority(value OperationQueuePriority) - IsConcurrent() bool + CompletionBlock() func() + SetCompletionBlock(value func()) + IsAsynchronous() bool + IsFinished() bool IsReady() bool } @@ -74,11 +74,11 @@ func (o_ Operation) Init() Operation { return rv } -// Performs the receiver’s non-concurrent task. [Full Topic] +// Removes the receiver’s dependence on the specified operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1407732-main?language=objc -func (o_ Operation) Main() { - objc.Call[objc.Void](o_, objc.Sel("main")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1414945-removedependency?language=objc +func (o_ Operation) RemoveDependency(op IOperation) { + objc.Call[objc.Void](o_, objc.Sel("removeDependency:"), op) } // Makes the receiver dependent on the completion of the specified operation. [Full Topic] @@ -88,18 +88,11 @@ func (o_ Operation) AddDependency(op IOperation) { objc.Call[objc.Void](o_, objc.Sel("addDependency:"), op) } -// Blocks execution of the current thread until the operation object finishes its task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1409256-waituntilfinished?language=objc -func (o_ Operation) WaitUntilFinished() { - objc.Call[objc.Void](o_, objc.Sel("waitUntilFinished")) -} - -// Advises the operation object that it should stop executing its task. [Full Topic] +// Performs the receiver’s non-concurrent task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1411672-cancel?language=objc -func (o_ Operation) Cancel() { - objc.Call[objc.Void](o_, objc.Sel("cancel")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1407732-main?language=objc +func (o_ Operation) Main() { + objc.Call[objc.Void](o_, objc.Sel("main")) } // Begins the execution of the operation. [Full Topic] @@ -109,26 +102,26 @@ func (o_ Operation) Start() { objc.Call[objc.Void](o_, objc.Sel("start")) } -// Removes the receiver’s dependence on the specified operation. [Full Topic] +// Blocks execution of the current thread until the operation object finishes its task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1414945-removedependency?language=objc -func (o_ Operation) RemoveDependency(op IOperation) { - objc.Call[objc.Void](o_, objc.Sel("removeDependency:"), op) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1409256-waituntilfinished?language=objc +func (o_ Operation) WaitUntilFinished() { + objc.Call[objc.Void](o_, objc.Sel("waitUntilFinished")) } -// The block to execute after the operation’s main task is completed. [Full Topic] +// Advises the operation object that it should stop executing its task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1408085-completionblock?language=objc -func (o_ Operation) CompletionBlock() func() { - rv := objc.Call[func()](o_, objc.Sel("completionBlock")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1411672-cancel?language=objc +func (o_ Operation) Cancel() { + objc.Call[objc.Void](o_, objc.Sel("cancel")) } -// The block to execute after the operation’s main task is completed. [Full Topic] +// A Boolean value indicating whether the operation has been cancelled [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1408085-completionblock?language=objc -func (o_ Operation) SetCompletionBlock(value func()) { - objc.Call[objc.Void](o_, objc.Sel("setCompletionBlock:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1408418-cancelled?language=objc +func (o_ Operation) IsCancelled() bool { + rv := objc.Call[bool](o_, objc.Sel("isCancelled")) + return rv } // A Boolean value indicating whether the operation is currently executing. [Full Topic] @@ -147,20 +140,19 @@ func (o_ Operation) Dependencies() []Operation { return rv } -// A Boolean value indicating whether the operation executes its task asynchronously. [Full Topic] +// The name of the operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1408275-asynchronous?language=objc -func (o_ Operation) IsAsynchronous() bool { - rv := objc.Call[bool](o_, objc.Sel("isAsynchronous")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1416089-name?language=objc +func (o_ Operation) Name() string { + rv := objc.Call[string](o_, objc.Sel("name")) return rv } -// A Boolean value indicating whether the operation has been cancelled [Full Topic] +// The name of the operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1408418-cancelled?language=objc -func (o_ Operation) IsCancelled() bool { - rv := objc.Call[bool](o_, objc.Sel("isCancelled")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1416089-name?language=objc +func (o_ Operation) SetName(value string) { + objc.Call[objc.Void](o_, objc.Sel("setName:"), value) } // The relative amount of importance for granting system resources to the operation. [Full Topic] @@ -178,29 +170,14 @@ func (o_ Operation) SetQualityOfService(value QualityOfService) { objc.Call[objc.Void](o_, objc.Sel("setQualityOfService:"), value) } -// A Boolean value indicating whether the operation has finished executing its task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1413540-finished?language=objc -func (o_ Operation) IsFinished() bool { - rv := objc.Call[bool](o_, objc.Sel("isFinished")) - return rv -} - -// The name of the operation. [Full Topic] +// A Boolean value indicating whether the operation executes its task asynchronously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1416089-name?language=objc -func (o_ Operation) Name() string { - rv := objc.Call[string](o_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1411089-concurrent?language=objc +func (o_ Operation) IsConcurrent() bool { + rv := objc.Call[bool](o_, objc.Sel("isConcurrent")) return rv } -// The name of the operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1416089-name?language=objc -func (o_ Operation) SetName(value string) { - objc.Call[objc.Void](o_, objc.Sel("setName:"), value) -} - // The execution priority of the operation in an operation queue. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1411204-queuepriority?language=objc @@ -216,11 +193,34 @@ func (o_ Operation) SetQueuePriority(value OperationQueuePriority) { objc.Call[objc.Void](o_, objc.Sel("setQueuePriority:"), value) } +// The block to execute after the operation’s main task is completed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1408085-completionblock?language=objc +func (o_ Operation) CompletionBlock() func() { + rv := objc.Call[func()](o_, objc.Sel("completionBlock")) + return rv +} + +// The block to execute after the operation’s main task is completed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1408085-completionblock?language=objc +func (o_ Operation) SetCompletionBlock(value func()) { + objc.Call[objc.Void](o_, objc.Sel("setCompletionBlock:"), value) +} + // A Boolean value indicating whether the operation executes its task asynchronously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1411089-concurrent?language=objc -func (o_ Operation) IsConcurrent() bool { - rv := objc.Call[bool](o_, objc.Sel("isConcurrent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1408275-asynchronous?language=objc +func (o_ Operation) IsAsynchronous() bool { + rv := objc.Call[bool](o_, objc.Sel("isAsynchronous")) + return rv +} + +// A Boolean value indicating whether the operation has finished executing its task. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperation/1413540-finished?language=objc +func (o_ Operation) IsFinished() bool { + rv := objc.Call[bool](o_, objc.Sel("isFinished")) return rv } diff --git a/macos/foundation/operation_queue.gen.go b/macos/foundation/operation_queue.gen.go index 5c3a5670..0a0aecfd 100644 --- a/macos/foundation/operation_queue.gen.go +++ b/macos/foundation/operation_queue.gen.go @@ -20,22 +20,22 @@ type _OperationQueueClass struct { type IOperationQueue interface { objc.IObject AddOperation(op IOperation) - AddOperationsWaitUntilFinished(ops []IOperation, wait bool) - CancelAllOperations() AddBarrierBlock(barrier func()) - AddOperationWithBlock(block func()) WaitUntilAllOperationsAreFinished() + AddOperationsWaitUntilFinished(ops []IOperation, wait bool) + AddOperationWithBlock(block func()) + CancelAllOperations() + Name() string + SetName(value string) QualityOfService() QualityOfService SetQualityOfService(value QualityOfService) IsSuspended() bool SetSuspended(value bool) - MaxConcurrentOperationCount() int - SetMaxConcurrentOperationCount(value int) - Name() string - SetName(value string) - Progress() Progress UnderlyingQueue() dispatch.Queue SetUnderlyingQueue(value dispatch.Queue) + Progress() Progress + MaxConcurrentOperationCount() int + SetMaxConcurrentOperationCount(value int) } // A queue that regulates the execution of operations. [Full Topic] @@ -78,6 +78,20 @@ func (o_ OperationQueue) AddOperation(op IOperation) { objc.Call[objc.Void](o_, objc.Sel("addOperation:"), op) } +// Invokes a block when the queue finishes all enqueued operations, and prevents subsequent operations from starting until the block has completed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/3172534-addbarrierblock?language=objc +func (o_ OperationQueue) AddBarrierBlock(barrier func()) { + objc.Call[objc.Void](o_, objc.Sel("addBarrierBlock:"), barrier) +} + +// Blocks the current thread until all the receiver’s queued and executing operations finish executing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1407971-waituntilalloperationsarefinishe?language=objc +func (o_ OperationQueue) WaitUntilAllOperationsAreFinished() { + objc.Call[objc.Void](o_, objc.Sel("waitUntilAllOperationsAreFinished")) +} + // Adds the specified operations to the queue. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1408358-addoperations?language=objc @@ -85,6 +99,13 @@ func (o_ OperationQueue) AddOperationsWaitUntilFinished(ops []IOperation, wait b objc.Call[objc.Void](o_, objc.Sel("addOperations:waitUntilFinished:"), ops, wait) } +// Wraps the specified block in an operation and adds it to the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1412949-addoperationwithblock?language=objc +func (o_ OperationQueue) AddOperationWithBlock(block func()) { + objc.Call[objc.Void](o_, objc.Sel("addOperationWithBlock:"), block) +} + // Cancels all queued and executing operations. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1417849-cancelalloperations?language=objc @@ -92,25 +113,19 @@ func (o_ OperationQueue) CancelAllOperations() { objc.Call[objc.Void](o_, objc.Sel("cancelAllOperations")) } -// Invokes a block when the queue finishes all enqueued operations, and prevents subsequent operations from starting until the block has completed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/3172534-addbarrierblock?language=objc -func (o_ OperationQueue) AddBarrierBlock(barrier func()) { - objc.Call[objc.Void](o_, objc.Sel("addBarrierBlock:"), barrier) -} - -// Wraps the specified block in an operation and adds it to the receiver. [Full Topic] +// The name of the operation queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1412949-addoperationwithblock?language=objc -func (o_ OperationQueue) AddOperationWithBlock(block func()) { - objc.Call[objc.Void](o_, objc.Sel("addOperationWithBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1418063-name?language=objc +func (o_ OperationQueue) Name() string { + rv := objc.Call[string](o_, objc.Sel("name")) + return rv } -// Blocks the current thread until all the receiver’s queued and executing operations finish executing. [Full Topic] +// The name of the operation queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1407971-waituntilalloperationsarefinishe?language=objc -func (o_ OperationQueue) WaitUntilAllOperationsAreFinished() { - objc.Call[objc.Void](o_, objc.Sel("waitUntilAllOperationsAreFinished")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1418063-name?language=objc +func (o_ OperationQueue) SetName(value string) { + objc.Call[objc.Void](o_, objc.Sel("setName:"), value) } // The default service level to apply to operations that the queue invokes. [Full Topic] @@ -158,6 +173,29 @@ func (o_ OperationQueue) SetSuspended(value bool) { objc.Call[objc.Void](o_, objc.Sel("setSuspended:"), value) } +// The dispatch queue that the operation queue uses to invoke operations. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1415344-underlyingqueue?language=objc +func (o_ OperationQueue) UnderlyingQueue() dispatch.Queue { + rv := objc.Call[dispatch.Queue](o_, objc.Sel("underlyingQueue")) + return rv +} + +// The dispatch queue that the operation queue uses to invoke operations. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1415344-underlyingqueue?language=objc +func (o_ OperationQueue) SetUnderlyingQueue(value dispatch.Queue) { + objc.Call[objc.Void](o_, objc.Sel("setUnderlyingQueue:"), value) +} + +// An object that represents the total progress of the operations executing in the queue. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/3172535-progress?language=objc +func (o_ OperationQueue) Progress() Progress { + rv := objc.Call[Progress](o_, objc.Sel("progress")) + return rv +} + // The maximum number of queued operations that can run at the same time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1414982-maxconcurrentoperationcount?language=objc @@ -173,21 +211,6 @@ func (o_ OperationQueue) SetMaxConcurrentOperationCount(value int) { objc.Call[objc.Void](o_, objc.Sel("setMaxConcurrentOperationCount:"), value) } -// The name of the operation queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1418063-name?language=objc -func (o_ OperationQueue) Name() string { - rv := objc.Call[string](o_, objc.Sel("name")) - return rv -} - -// The name of the operation queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1418063-name?language=objc -func (o_ OperationQueue) SetName(value string) { - objc.Call[objc.Void](o_, objc.Sel("setName:"), value) -} - // Returns the operation queue that launched the current operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1413097-currentqueue?language=objc @@ -202,26 +225,3 @@ func (oc _OperationQueueClass) CurrentQueue() OperationQueue { func OperationQueue_CurrentQueue() OperationQueue { return OperationQueueClass.CurrentQueue() } - -// An object that represents the total progress of the operations executing in the queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/3172535-progress?language=objc -func (o_ OperationQueue) Progress() Progress { - rv := objc.Call[Progress](o_, objc.Sel("progress")) - return rv -} - -// The dispatch queue that the operation queue uses to invoke operations. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1415344-underlyingqueue?language=objc -func (o_ OperationQueue) UnderlyingQueue() dispatch.Queue { - rv := objc.Call[dispatch.Queue](o_, objc.Sel("underlyingQueue")) - return rv -} - -// The dispatch queue that the operation queue uses to invoke operations. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoperationqueue/1415344-underlyingqueue?language=objc -func (o_ OperationQueue) SetUnderlyingQueue(value dispatch.Queue) { - objc.Call[objc.Void](o_, objc.Sel("setUnderlyingQueue:"), value) -} diff --git a/macos/foundation/ordered_collection_change.gen.go b/macos/foundation/ordered_collection_change.gen.go index 6ce92bf7..0d1d6002 100644 --- a/macos/foundation/ordered_collection_change.gen.go +++ b/macos/foundation/ordered_collection_change.gen.go @@ -19,9 +19,9 @@ type _OrderedCollectionChangeClass struct { type IOrderedCollectionChange interface { objc.IObject AssociatedIndex() uint - ChangeType() CollectionChangeType - Index() uint Object_() objc.Object + Index() uint + ChangeType() CollectionChangeType } // An object that represents an indexed change within an ordered collection. [Full Topic] @@ -37,20 +37,6 @@ func OrderedCollectionChangeFrom(ptr unsafe.Pointer) OrderedCollectionChange { } } -func (o_ OrderedCollectionChange) InitWithObjectTypeIndex(anObject objc.IObject, type_ CollectionChangeType, index uint) OrderedCollectionChange { - rv := objc.Call[OrderedCollectionChange](o_, objc.Sel("initWithObject:type:index:"), anObject, type_, index) - return rv -} - -// Creates a change object that represents inserting or removing an object from an ordered collection at a specific index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectionchange/3152179-initwithobject?language=objc -func NewOrderedCollectionChangeWithObjectTypeIndex(anObject objc.IObject, type_ CollectionChangeType, index uint) OrderedCollectionChange { - instance := OrderedCollectionChangeClass.Alloc().InitWithObjectTypeIndex(anObject, type_, index) - instance.Autorelease() - return instance -} - func (o_ OrderedCollectionChange) InitWithObjectTypeIndexAssociatedIndex(anObject objc.IObject, type_ CollectionChangeType, index uint, associatedIndex uint) OrderedCollectionChange { rv := objc.Call[OrderedCollectionChange](o_, objc.Sel("initWithObject:type:index:associatedIndex:"), anObject, type_, index, associatedIndex) return rv @@ -100,21 +86,6 @@ func OrderedCollectionChange_ChangeWithObjectTypeIndex(anObject objc.IObject, ty return OrderedCollectionChangeClass.ChangeWithObjectTypeIndex(anObject, type_, index) } -// Creates an change object that represents inserting or removing an object from an ordered collection at a specific index, matched with an associated location that infers a move within the collection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectionchange/3152177-changewithobject?language=objc -func (oc _OrderedCollectionChangeClass) ChangeWithObjectTypeIndexAssociatedIndex(anObject objc.IObject, type_ CollectionChangeType, index uint, associatedIndex uint) OrderedCollectionChange { - rv := objc.Call[OrderedCollectionChange](oc, objc.Sel("changeWithObject:type:index:associatedIndex:"), anObject, type_, index, associatedIndex) - return rv -} - -// Creates an change object that represents inserting or removing an object from an ordered collection at a specific index, matched with an associated location that infers a move within the collection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectionchange/3152177-changewithobject?language=objc -func OrderedCollectionChange_ChangeWithObjectTypeIndexAssociatedIndex(anObject objc.IObject, type_ CollectionChangeType, index uint, associatedIndex uint) OrderedCollectionChange { - return OrderedCollectionChangeClass.ChangeWithObjectTypeIndexAssociatedIndex(anObject, type_, index, associatedIndex) -} - // When this property is set to a value other than [foundation/8f9], the receiver is one half of a move, and this value is the index of the change’s counterpart of the opposite type in the diff. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectionchange/3152174-associatedindex?language=objc @@ -123,11 +94,11 @@ func (o_ OrderedCollectionChange) AssociatedIndex() uint { return rv } -// The type of change. [Full Topic] +// An object the change inserts or removes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectionchange/3152175-changetype?language=objc -func (o_ OrderedCollectionChange) ChangeType() CollectionChangeType { - rv := objc.Call[CollectionChangeType](o_, objc.Sel("changeType")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectionchange/3152181-object?language=objc +func (o_ OrderedCollectionChange) Object_() objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("object")) return rv } @@ -139,10 +110,10 @@ func (o_ OrderedCollectionChange) Index() uint { return rv } -// An object the change inserts or removes. [Full Topic] +// The type of change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectionchange/3152181-object?language=objc -func (o_ OrderedCollectionChange) Object_() objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("object")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectionchange/3152175-changetype?language=objc +func (o_ OrderedCollectionChange) ChangeType() CollectionChangeType { + rv := objc.Call[CollectionChangeType](o_, objc.Sel("changeType")) return rv } diff --git a/macos/foundation/ordered_collection_difference.gen.go b/macos/foundation/ordered_collection_difference.gen.go index bb104991..8e0ab183 100644 --- a/macos/foundation/ordered_collection_difference.gen.go +++ b/macos/foundation/ordered_collection_difference.gen.go @@ -19,8 +19,8 @@ type _OrderedCollectionDifferenceClass struct { type IOrderedCollectionDifference interface { objc.IObject DifferenceByTransformingChangesWithBlock(block func(arg0 OrderedCollectionChange) OrderedCollectionChange) OrderedCollectionDifference - Insertions() []OrderedCollectionChange Removals() []OrderedCollectionChange + Insertions() []OrderedCollectionChange HasChanges() bool } @@ -37,20 +37,6 @@ func OrderedCollectionDifferenceFrom(ptr unsafe.Pointer) OrderedCollectionDiffer } } -func (o_ OrderedCollectionDifference) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjectsAdditionalChanges(inserts IIndexSet, insertedObjects []objc.IObject, removes IIndexSet, removedObjects []objc.IObject, changes []IOrderedCollectionChange) OrderedCollectionDifference { - rv := objc.Call[OrderedCollectionDifference](o_, objc.Sel("initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:"), inserts, insertedObjects, removes, removedObjects, changes) - return rv -} - -// Creates an ordered collection difference from arrays of inserted and removed objects with corresponding sets of indices, in addition to an array of ordered collection changes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectiondifference/3152187-initwithinsertindexes?language=objc -func NewOrderedCollectionDifferenceWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjectsAdditionalChanges(inserts IIndexSet, insertedObjects []objc.IObject, removes IIndexSet, removedObjects []objc.IObject, changes []IOrderedCollectionChange) OrderedCollectionDifference { - instance := OrderedCollectionDifferenceClass.Alloc().InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjectsAdditionalChanges(inserts, insertedObjects, removes, removedObjects, changes) - instance.Autorelease() - return instance -} - func (o_ OrderedCollectionDifference) InitWithChanges(changes []IOrderedCollectionChange) OrderedCollectionDifference { rv := objc.Call[OrderedCollectionDifference](o_, objc.Sel("initWithChanges:"), changes) return rv @@ -121,14 +107,6 @@ func (o_ OrderedCollectionDifference) DifferenceByTransformingChangesWithBlock(b return rv } -// A collection of insertion change objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectiondifference/3152188-insertions?language=objc -func (o_ OrderedCollectionDifference) Insertions() []OrderedCollectionChange { - rv := objc.Call[[]OrderedCollectionChange](o_, objc.Sel("insertions")) - return rv -} - // A collection of removal change objects. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectiondifference/3152189-removals?language=objc @@ -137,6 +115,14 @@ func (o_ OrderedCollectionDifference) Removals() []OrderedCollectionChange { return rv } +// A collection of insertion change objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectiondifference/3152188-insertions?language=objc +func (o_ OrderedCollectionDifference) Insertions() []OrderedCollectionChange { + rv := objc.Call[[]OrderedCollectionChange](o_, objc.Sel("insertions")) + return rv +} + // A Boolean value that indicates if the difference has changes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectiondifference/3152184-haschanges?language=objc diff --git a/macos/foundation/ordered_set.gen.go b/macos/foundation/ordered_set.gen.go index 5c7af1c6..5ea48a9c 100644 --- a/macos/foundation/ordered_set.gen.go +++ b/macos/foundation/ordered_set.gen.go @@ -18,49 +18,44 @@ type _OrderedSetClass struct { // An interface definition for the [OrderedSet] class. type IOrderedSet interface { objc.IObject - ObjectAtIndexedSubscript(idx uint) objc.Object - FilteredOrderedSetUsingPredicate(p IPredicate) OrderedSet + ObjectEnumerator() Enumerator IsEqualToOrderedSet(other IOrderedSet) bool - DescriptionWithLocale(locale objc.IObject) string - OrderedSetByApplyingDifference(difference IOrderedCollectionDifference) OrderedSet - SetValueForKey(value objc.IObject, key string) + SortedArrayWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object + ObjectsAtIndexes(indexes IIndexSet) []objc.Object + EnumerateObjectsUsingBlock(block func(obj objc.Object, idx uint, stop *bool)) + SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object IsSubsetOfOrderedSet(other IOrderedSet) bool + OrderedSetByApplyingDifference(difference IOrderedCollectionDifference) OrderedSet + IntersectsOrderedSet(other IOrderedSet) bool + DifferenceFromOrderedSet(other IOrderedSet) OrderedCollectionDifference + IndexesOfObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet + IndexOfObjectPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) uint ObjectAtIndex(idx uint) objc.Object - EnumerateObjectsAtIndexesOptionsUsingBlock(s IIndexSet, opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) - DescriptionWithLocaleIndent(locale objc.IObject, level uint) string + ObjectAtIndexedSubscript(idx uint) objc.Object + EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) GetObjectsRange(objects unsafe.Pointer, range_ Range) - IndexOfObjectPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) uint ContainsObject(object objc.IObject) bool - IndexesOfObjectsAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet - IsSubsetOfSet(set ISet) bool - ObjectEnumerator() Enumerator - IntersectsOrderedSet(other IOrderedSet) bool - EnumerateObjectsUsingBlock(block func(obj objc.Object, idx uint, stop *bool)) IntersectsSet(set ISet) bool - DifferenceFromOrderedSet(other IOrderedSet) OrderedCollectionDifference - IndexOfObjectInSortedRangeOptionsUsingComparator(object objc.IObject, range_ Range, opts BinarySearchingOptions, cmp Comparator) uint - IndexOfObjectAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint - DifferenceFromOrderedSetWithOptions(other IOrderedSet, options OrderedCollectionDifferenceCalculationOptions) OrderedCollectionDifference - SortedArrayWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object - RemoveObserverForKeyPathContext(observer objc.IObject, keyPath string, context unsafe.Pointer) + FilteredOrderedSetUsingPredicate(p IPredicate) OrderedSet ReverseObjectEnumerator() Enumerator - IndexOfObject(object objc.IObject) uint - SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object - SortedArrayUsingComparator(cmptr Comparator) []objc.Object - ObjectsAtIndexes(indexes IIndexSet) []objc.Object - DifferenceFromOrderedSetWithOptionsUsingEquivalenceTest(other IOrderedSet, options OrderedCollectionDifferenceCalculationOptions, block func(obj1 objc.Object, obj2 objc.Object) bool) OrderedCollectionDifference + IsSubsetOfSet(set ISet) bool + IndexesOfObjectsAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet RemoveObserverForKeyPath(observer objc.IObject, keyPath string) - EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) + DescriptionWithLocale(locale objc.IObject) string + SetValueForKey(value objc.IObject, key string) + IndexesOfObjectsPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet + IndexOfObject(object objc.IObject) uint AddObserverForKeyPathOptionsContext(observer objc.IObject, keyPath string, options KeyValueObservingOptions, context unsafe.Pointer) IndexOfObjectWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint + EnumerateObjectsAtIndexesOptionsUsingBlock(s IIndexSet, opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) ValueForKey(key string) objc.Object - IndexesOfObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet - IndexesOfObjectsPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet - Count() uint + IndexOfObjectAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint + SortedArrayUsingComparator(cmptr Comparator) []objc.Object + Set() Set + LastObject() objc.Object Array() []objc.Object Description() string - LastObject() objc.Object - Set() Set + Count() uint ReversedOrderedSet() OrderedSet FirstObject() objc.Object } @@ -78,42 +73,56 @@ func OrderedSetFrom(ptr unsafe.Pointer) OrderedSet { } } -func (oc _OrderedSetClass) OrderedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) OrderedSet { - rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithObjects:count:"), objects, cnt) +func (oc _OrderedSetClass) OrderedSetWithOrderedSet(set IOrderedSet) OrderedSet { + rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithOrderedSet:"), set) return rv } -// Creates and returns a set containing a specified number of objects from a given C array of objects. [Full Topic] +// Creates and returns an ordered set containing the objects from another ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543334-orderedsetwithobjects?language=objc -func OrderedSet_OrderedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) OrderedSet { - return OrderedSetClass.OrderedSetWithObjectsCount(objects, cnt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543280-orderedsetwithorderedset?language=objc +func OrderedSet_OrderedSetWithOrderedSet(set IOrderedSet) OrderedSet { + return OrderedSetClass.OrderedSetWithOrderedSet(set) } -func (o_ OrderedSet) InitWithSetCopyItems(set ISet, flag bool) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithSet:copyItems:"), set, flag) +func (o_ OrderedSet) InitWithObjects(firstObj objc.IObject, args ...any) OrderedSet { + rv := objc.Call[OrderedSet](o_, objc.Sel("initWithObjects:"), append([]any{firstObj}, args...)...) return rv } -// Initializes a new ordered set with the contents of a set, optionally copying the objects in the set. [Full Topic] +// Initializes a newly allocated set with members taken from the specified list of objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411246-initwithset?language=objc -func NewOrderedSetWithSetCopyItems(set ISet, flag bool) OrderedSet { - instance := OrderedSetClass.Alloc().InitWithSetCopyItems(set, flag) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543287-initwithobjects?language=objc +func NewOrderedSetWithObjects(firstObj objc.IObject, args ...any) OrderedSet { + instance := OrderedSetClass.Alloc().InitWithObjects(firstObj, args...) instance.Autorelease() return instance } -func (oc _OrderedSetClass) OrderedSetWithSetCopyItems(set ISet, flag bool) OrderedSet { - rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithSet:copyItems:"), set, flag) +func (oc _OrderedSetClass) OrderedSetWithObjects(firstObj objc.IObject, args ...any) OrderedSet { + rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithObjects:"), append([]any{firstObj}, args...)...) + return rv +} + +// Creates and returns a ordered set containing the objects in a given argument list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543312-orderedsetwithobjects?language=objc +func OrderedSet_OrderedSetWithObjects(firstObj objc.IObject, args ...any) OrderedSet { + return OrderedSetClass.OrderedSetWithObjects(firstObj, args...) +} + +func (o_ OrderedSet) InitWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) OrderedSet { + rv := objc.Call[OrderedSet](o_, objc.Sel("initWithOrderedSet:range:copyItems:"), set, range_, flag) return rv } -// Creates and returns an ordered set with the contents of a set, optionally copying the items. [Full Topic] +// Initializes a new ordered set with the contents of an ordered set, optionally copying the items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543331-orderedsetwithset?language=objc -func OrderedSet_OrderedSetWithSetCopyItems(set ISet, flag bool) OrderedSet { - return OrderedSetClass.OrderedSetWithSetCopyItems(set, flag) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1417751-initwithorderedset?language=objc +func NewOrderedSetWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) OrderedSet { + instance := OrderedSetClass.Alloc().InitWithOrderedSetRangeCopyItems(set, range_, flag) + instance.Autorelease() + return instance } func (o_ OrderedSet) InitWithObject(object objc.IObject) OrderedSet { @@ -156,37 +165,6 @@ func OrderedSet_OrderedSetWithArray(array []objc.IObject) OrderedSet { return OrderedSetClass.OrderedSetWithArray(array) } -func (o_ OrderedSet) InitWithSet(set ISet) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithSet:"), set) - return rv -} - -// Initializes a new ordered set with the contents of a set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1416344-initwithset?language=objc -func NewOrderedSetWithSet(set ISet) OrderedSet { - instance := OrderedSetClass.Alloc().InitWithSet(set) - instance.Autorelease() - return instance -} - -func (o_ OrderedSet) Init() OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("init")) - return rv -} - -func (oc _OrderedSetClass) OrderedSetWithOrderedSet(set IOrderedSet) OrderedSet { - rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithOrderedSet:"), set) - return rv -} - -// Creates and returns an ordered set containing the objects from another ordered set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543280-orderedsetwithorderedset?language=objc -func OrderedSet_OrderedSetWithOrderedSet(set IOrderedSet) OrderedSet { - return OrderedSetClass.OrderedSetWithOrderedSet(set) -} - func (oc _OrderedSetClass) OrderedSetWithObject(object objc.IObject) OrderedSet { rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithObject:"), object) return rv @@ -199,20 +177,6 @@ func OrderedSet_OrderedSetWithObject(object objc.IObject) OrderedSet { return OrderedSetClass.OrderedSetWithObject(object) } -func (o_ OrderedSet) InitWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithOrderedSet:range:copyItems:"), set, range_, flag) - return rv -} - -// Initializes a new ordered set with the contents of an ordered set, optionally copying the items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1417751-initwithorderedset?language=objc -func NewOrderedSetWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) OrderedSet { - instance := OrderedSetClass.Alloc().InitWithOrderedSetRangeCopyItems(set, range_, flag) - instance.Autorelease() - return instance -} - func (oc _OrderedSetClass) OrderedSet() OrderedSet { rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSet")) return rv @@ -225,112 +189,25 @@ func OrderedSet_OrderedSet() OrderedSet { return OrderedSetClass.OrderedSet() } -func (oc _OrderedSetClass) OrderedSetWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) OrderedSet { - rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithOrderedSet:range:copyItems:"), set, range_, flag) - return rv -} - -// Creates and returns a new ordered set for a specified range of objects in an ordered set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543292-orderedsetwithorderedset?language=objc -func OrderedSet_OrderedSetWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) OrderedSet { - return OrderedSetClass.OrderedSetWithOrderedSetRangeCopyItems(set, range_, flag) -} - -func (oc _OrderedSetClass) OrderedSetWithArrayRangeCopyItems(array []objc.IObject, range_ Range, flag bool) OrderedSet { - rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithArray:range:copyItems:"), array, range_, flag) - return rv -} - -// Creates and returns a new ordered set for a specified range of objects in an array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543321-orderedsetwitharray?language=objc -func OrderedSet_OrderedSetWithArrayRangeCopyItems(array []objc.IObject, range_ Range, flag bool) OrderedSet { - return OrderedSetClass.OrderedSetWithArrayRangeCopyItems(array, range_, flag) -} - -func (o_ OrderedSet) InitWithOrderedSet(set IOrderedSet) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithOrderedSet:"), set) +func (o_ OrderedSet) InitWithSet(set ISet) OrderedSet { + rv := objc.Call[OrderedSet](o_, objc.Sel("initWithSet:"), set) return rv } // Initializes a new ordered set with the contents of a set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1412402-initwithorderedset?language=objc -func NewOrderedSetWithOrderedSet(set IOrderedSet) OrderedSet { - instance := OrderedSetClass.Alloc().InitWithOrderedSet(set) - instance.Autorelease() - return instance -} - -func (o_ OrderedSet) InitWithOrderedSetCopyItems(set IOrderedSet, flag bool) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithOrderedSet:copyItems:"), set, flag) - return rv -} - -// Initializes a new ordered set with the contents of a set, optionally copying the items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411658-initwithorderedset?language=objc -func NewOrderedSetWithOrderedSetCopyItems(set IOrderedSet, flag bool) OrderedSet { - instance := OrderedSetClass.Alloc().InitWithOrderedSetCopyItems(set, flag) - instance.Autorelease() - return instance -} - -func (o_ OrderedSet) InitWithArray(array []objc.IObject) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithArray:"), array) - return rv -} - -// Initializes a newly allocated set with the objects that are contained in a given array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1408623-initwitharray?language=objc -func NewOrderedSetWithArray(array []objc.IObject) OrderedSet { - instance := OrderedSetClass.Alloc().InitWithArray(array) - instance.Autorelease() - return instance -} - -func (o_ OrderedSet) InitWithArrayRangeCopyItems(set []objc.IObject, range_ Range, flag bool) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithArray:range:copyItems:"), set, range_, flag) - return rv -} - -// Initializes a newly allocated set with the objects that are contained in the specified range of an array, optionally copying the items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409272-initwitharray?language=objc -func NewOrderedSetWithArrayRangeCopyItems(set []objc.IObject, range_ Range, flag bool) OrderedSet { - instance := OrderedSetClass.Alloc().InitWithArrayRangeCopyItems(set, range_, flag) - instance.Autorelease() - return instance -} - -func (o_ OrderedSet) InitWithObjects(firstObj objc.IObject, args ...any) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithObjects:"), append([]any{firstObj}, args...)...) - return rv -} - -// Initializes a newly allocated set with members taken from the specified list of objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543287-initwithobjects?language=objc -func NewOrderedSetWithObjects(firstObj objc.IObject, args ...any) OrderedSet { - instance := OrderedSetClass.Alloc().InitWithObjects(firstObj, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1416344-initwithset?language=objc +func NewOrderedSetWithSet(set ISet) OrderedSet { + instance := OrderedSetClass.Alloc().InitWithSet(set) instance.Autorelease() return instance } -func (oc _OrderedSetClass) OrderedSetWithObjects(firstObj objc.IObject, args ...any) OrderedSet { - rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithObjects:"), append([]any{firstObj}, args...)...) +func (o_ OrderedSet) Init() OrderedSet { + rv := objc.Call[OrderedSet](o_, objc.Sel("init")) return rv } -// Creates and returns a ordered set containing the objects in a given argument list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543312-orderedsetwithobjects?language=objc -func OrderedSet_OrderedSetWithObjects(firstObj objc.IObject, args ...any) OrderedSet { - return OrderedSetClass.OrderedSetWithObjects(firstObj, args...) -} - func (oc _OrderedSetClass) OrderedSetWithSet(set ISet) OrderedSet { rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithSet:"), set) return rv @@ -343,20 +220,6 @@ func OrderedSet_OrderedSetWithSet(set ISet) OrderedSet { return OrderedSetClass.OrderedSetWithSet(set) } -func (o_ OrderedSet) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithObjects:count:"), objects, cnt) - return rv -} - -// Initializes a newly allocated set with a specified number of objects from a given C array of objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411910-initwithobjects?language=objc -func NewOrderedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) OrderedSet { - instance := OrderedSetClass.Alloc().InitWithObjectsCount(objects, cnt) - instance.Autorelease() - return instance -} - func (oc _OrderedSetClass) Alloc() OrderedSet { rv := objc.Call[OrderedSet](oc, objc.Sel("alloc")) return rv @@ -372,19 +235,11 @@ func NewOrderedSet() OrderedSet { return OrderedSetClass.New() } -// Returns the object at the specified index of the set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1414253-objectatindexedsubscript?language=objc -func (o_ OrderedSet) ObjectAtIndexedSubscript(idx uint) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("objectAtIndexedSubscript:"), idx) - return rv -} - -// Evaluates a given predicate against each object in the receiving ordered set and returns a new ordered set containing the objects for which the predicate returns true. [Full Topic] +// Returns an enumerator object that lets you access each object in the ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1415807-filteredorderedsetusingpredicate?language=objc -func (o_ OrderedSet) FilteredOrderedSetUsingPredicate(p IPredicate) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("filteredOrderedSetUsingPredicate:"), p) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409430-objectenumerator?language=objc +func (o_ OrderedSet) ObjectEnumerator() Enumerator { + rv := objc.Call[Enumerator](o_, objc.Sel("objectEnumerator")) return rv } @@ -396,27 +251,35 @@ func (o_ OrderedSet) IsEqualToOrderedSet(other IOrderedSet) bool { return rv } -// Returns a string that represents the contents of the ordered set, formatted as a property list. [Full Topic] +// Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1417325-descriptionwithlocale?language=objc -func (o_ OrderedSet) DescriptionWithLocale(locale objc.IObject) string { - rv := objc.Call[string](o_, objc.Sel("descriptionWithLocale:"), locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1414806-sortedarraywithoptions?language=objc +func (o_ OrderedSet) SortedArrayWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object { + rv := objc.Call[[]objc.Object](o_, objc.Sel("sortedArrayWithOptions:usingComparator:"), opts, cmptr) return rv } -// Creates a new ordered set by applying a difference object to an existing ordered set. [Full Topic] +// Returns the objects in the ordered set at the specified indexes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/3152198-orderedsetbyapplyingdifference?language=objc -func (o_ OrderedSet) OrderedSetByApplyingDifference(difference IOrderedCollectionDifference) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("orderedSetByApplyingDifference:"), difference) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1414943-objectsatindexes?language=objc +func (o_ OrderedSet) ObjectsAtIndexes(indexes IIndexSet) []objc.Object { + rv := objc.Call[[]objc.Object](o_, objc.Sel("objectsAtIndexes:"), indexes) return rv } -// Invokes setValue:forKey: on each of the receiver's members using the specified value and key [Full Topic] +// Executes a given block using each object in the ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1413118-setvalue?language=objc -func (o_ OrderedSet) SetValueForKey(value objc.IObject, key string) { - objc.Call[objc.Void](o_, objc.Sel("setValue:forKey:"), value, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1413531-enumerateobjectsusingblock?language=objc +func (o_ OrderedSet) EnumerateObjectsUsingBlock(block func(obj objc.Object, idx uint, stop *bool)) { + objc.Call[objc.Void](o_, objc.Sel("enumerateObjectsUsingBlock:"), block) +} + +// Returns an array of the ordered set’s elements sorted as specified by a given array of sort descriptors. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409953-sortedarrayusingdescriptors?language=objc +func (o_ OrderedSet) SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object { + rv := objc.Call[[]objc.Object](o_, objc.Sel("sortedArrayUsingDescriptors:"), sortDescriptors) + return rv } // Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given ordered set. [Full Topic] @@ -427,34 +290,36 @@ func (o_ OrderedSet) IsSubsetOfOrderedSet(other IOrderedSet) bool { return rv } -// Returns the object at the specified index of the set. [Full Topic] +// Creates a new ordered set by applying a difference object to an existing ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1414734-objectatindex?language=objc -func (o_ OrderedSet) ObjectAtIndex(idx uint) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("objectAtIndex:"), idx) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/3152198-orderedsetbyapplyingdifference?language=objc +func (o_ OrderedSet) OrderedSetByApplyingDifference(difference IOrderedCollectionDifference) OrderedSet { + rv := objc.Call[OrderedSet](o_, objc.Sel("orderedSetByApplyingDifference:"), difference) return rv } -// Executes a given block using the objects in the ordered set at the specified indexes. [Full Topic] +// Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1412332-enumerateobjectsatindexes?language=objc -func (o_ OrderedSet) EnumerateObjectsAtIndexesOptionsUsingBlock(s IIndexSet, opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) { - objc.Call[objc.Void](o_, objc.Sel("enumerateObjectsAtIndexes:options:usingBlock:"), s, opts, block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1414364-intersectsorderedset?language=objc +func (o_ OrderedSet) IntersectsOrderedSet(other IOrderedSet) bool { + rv := objc.Call[bool](o_, objc.Sel("intersectsOrderedSet:"), other) + return rv } -// Returns a string that represents the contents of the ordered set, formatted as a property list. [Full Topic] +// Compares two ordered sets to create a difference object that represents the changes between them. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1416761-descriptionwithlocale?language=objc -func (o_ OrderedSet) DescriptionWithLocaleIndent(locale objc.IObject, level uint) string { - rv := objc.Call[string](o_, objc.Sel("descriptionWithLocale:indent:"), locale, level) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/3152195-differencefromorderedset?language=objc +func (o_ OrderedSet) DifferenceFromOrderedSet(other IOrderedSet) OrderedCollectionDifference { + rv := objc.Call[OrderedCollectionDifference](o_, objc.Sel("differenceFromOrderedSet:"), other) return rv } -// Copies the objects contained in the ordered set that fall within the specified range to objects. [Full Topic] +// Returns the index of an object in the ordered set that passes a test in a given block for a given set of enumeration options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411401-getobjects?language=objc -func (o_ OrderedSet) GetObjectsRange(objects unsafe.Pointer, range_ Range) { - objc.Call[objc.Void](o_, objc.Sel("getObjects:range:"), objects, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1415944-indexesofobjectswithoptions?language=objc +func (o_ OrderedSet) IndexesOfObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet { + rv := objc.Call[IndexSet](o_, objc.Sel("indexesOfObjectsWithOptions:passingTest:"), opts, predicate) + return rv } // Returns the index of the object in the ordered set that passes a test in a given block. [Full Topic] @@ -465,53 +330,44 @@ func (o_ OrderedSet) IndexOfObjectPassingTest(predicate func(obj objc.Object, id return rv } -// Returns a Boolean value that indicates whether a given object is present in the ordered set. [Full Topic] +// Returns the object at the specified index of the set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1408681-containsobject?language=objc -func (o_ OrderedSet) ContainsObject(object objc.IObject) bool { - rv := objc.Call[bool](o_, objc.Sel("containsObject:"), object) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1414734-objectatindex?language=objc +func (o_ OrderedSet) ObjectAtIndex(idx uint) objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("objectAtIndex:"), idx) return rv } -// Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options. [Full Topic] +// Returns the object at the specified index of the set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1413586-indexesofobjectsatindexes?language=objc -func (o_ OrderedSet) IndexesOfObjectsAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet { - rv := objc.Call[IndexSet](o_, objc.Sel("indexesOfObjectsAtIndexes:options:passingTest:"), s, opts, predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1414253-objectatindexedsubscript?language=objc +func (o_ OrderedSet) ObjectAtIndexedSubscript(idx uint) objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("objectAtIndexedSubscript:"), idx) return rv } -// Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given set. [Full Topic] +// Executes a given block using each object in the set, using the specified enumeration options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1418464-issubsetofset?language=objc -func (o_ OrderedSet) IsSubsetOfSet(set ISet) bool { - rv := objc.Call[bool](o_, objc.Sel("isSubsetOfSet:"), set) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409354-enumerateobjectswithoptions?language=objc +func (o_ OrderedSet) EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) { + objc.Call[objc.Void](o_, objc.Sel("enumerateObjectsWithOptions:usingBlock:"), opts, block) } -// Returns an enumerator object that lets you access each object in the ordered set. [Full Topic] +// Copies the objects contained in the ordered set that fall within the specified range to objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409430-objectenumerator?language=objc -func (o_ OrderedSet) ObjectEnumerator() Enumerator { - rv := objc.Call[Enumerator](o_, objc.Sel("objectEnumerator")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411401-getobjects?language=objc +func (o_ OrderedSet) GetObjectsRange(objects unsafe.Pointer, range_ Range) { + objc.Call[objc.Void](o_, objc.Sel("getObjects:range:"), objects, range_) } -// Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given ordered set. [Full Topic] +// Returns a Boolean value that indicates whether a given object is present in the ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1414364-intersectsorderedset?language=objc -func (o_ OrderedSet) IntersectsOrderedSet(other IOrderedSet) bool { - rv := objc.Call[bool](o_, objc.Sel("intersectsOrderedSet:"), other) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1408681-containsobject?language=objc +func (o_ OrderedSet) ContainsObject(object objc.IObject) bool { + rv := objc.Call[bool](o_, objc.Sel("containsObject:"), object) return rv } -// Executes a given block using each object in the ordered set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1413531-enumerateobjectsusingblock?language=objc -func (o_ OrderedSet) EnumerateObjectsUsingBlock(block func(obj objc.Object, idx uint, stop *bool)) { - objc.Call[objc.Void](o_, objc.Sel("enumerateObjectsUsingBlock:"), block) -} - // Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given set. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1408625-intersectsset?language=objc @@ -520,53 +376,14 @@ func (o_ OrderedSet) IntersectsSet(set ISet) bool { return rv } -// Compares two ordered sets to create a difference object that represents the changes between them. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/3152195-differencefromorderedset?language=objc -func (o_ OrderedSet) DifferenceFromOrderedSet(other IOrderedSet) OrderedCollectionDifference { - rv := objc.Call[OrderedCollectionDifference](o_, objc.Sel("differenceFromOrderedSet:"), other) - return rv -} - -// Returns the index, within a specified range, of an object compared with elements in the ordered set using a given NSComparator block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1417701-indexofobject?language=objc -func (o_ OrderedSet) IndexOfObjectInSortedRangeOptionsUsingComparator(object objc.IObject, range_ Range, opts BinarySearchingOptions, cmp Comparator) uint { - rv := objc.Call[uint](o_, objc.Sel("indexOfObject:inSortedRange:options:usingComparator:"), object, range_, opts, cmp) - return rv -} - -// Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1417531-indexofobjectatindexes?language=objc -func (o_ OrderedSet) IndexOfObjectAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint { - rv := objc.Call[uint](o_, objc.Sel("indexOfObjectAtIndexes:options:passingTest:"), s, opts, predicate) - return rv -} - -// Compares two ordered sets, with options, to create a difference object that represents the changes between them. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/3152196-differencefromorderedset?language=objc -func (o_ OrderedSet) DifferenceFromOrderedSetWithOptions(other IOrderedSet, options OrderedCollectionDifferenceCalculationOptions) OrderedCollectionDifference { - rv := objc.Call[OrderedCollectionDifference](o_, objc.Sel("differenceFromOrderedSet:withOptions:"), other, options) - return rv -} - -// Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block. [Full Topic] +// Evaluates a given predicate against each object in the receiving ordered set and returns a new ordered set containing the objects for which the predicate returns true. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1414806-sortedarraywithoptions?language=objc -func (o_ OrderedSet) SortedArrayWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object { - rv := objc.Call[[]objc.Object](o_, objc.Sel("sortedArrayWithOptions:usingComparator:"), opts, cmptr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1415807-filteredorderedsetusingpredicate?language=objc +func (o_ OrderedSet) FilteredOrderedSetUsingPredicate(p IPredicate) OrderedSet { + rv := objc.Call[OrderedSet](o_, objc.Sel("filteredOrderedSetUsingPredicate:"), p) return rv } -// Raises an exception. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1410496-removeobserver?language=objc -func (o_ OrderedSet) RemoveObserverForKeyPathContext(observer objc.IObject, keyPath string, context unsafe.Pointer) { - objc.Call[objc.Void](o_, objc.Sel("removeObserver:forKeyPath:context:"), observer, keyPath, context) -} - // Returns an enumerator object that lets you access each object in the ordered set. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1407607-reverseobjectenumerator?language=objc @@ -575,58 +392,58 @@ func (o_ OrderedSet) ReverseObjectEnumerator() Enumerator { return rv } -// Returns the index of the specified object. [Full Topic] +// Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411856-indexofobject?language=objc -func (o_ OrderedSet) IndexOfObject(object objc.IObject) uint { - rv := objc.Call[uint](o_, objc.Sel("indexOfObject:"), object) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1418464-issubsetofset?language=objc +func (o_ OrderedSet) IsSubsetOfSet(set ISet) bool { + rv := objc.Call[bool](o_, objc.Sel("isSubsetOfSet:"), set) return rv } -// Returns an array of the ordered set’s elements sorted as specified by a given array of sort descriptors. [Full Topic] +// Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409953-sortedarrayusingdescriptors?language=objc -func (o_ OrderedSet) SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object { - rv := objc.Call[[]objc.Object](o_, objc.Sel("sortedArrayUsingDescriptors:"), sortDescriptors) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1413586-indexesofobjectsatindexes?language=objc +func (o_ OrderedSet) IndexesOfObjectsAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet { + rv := objc.Call[IndexSet](o_, objc.Sel("indexesOfObjectsAtIndexes:options:passingTest:"), s, opts, predicate) return rv } -// Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block [Full Topic] +// Raises an exception. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1413383-sortedarrayusingcomparator?language=objc -func (o_ OrderedSet) SortedArrayUsingComparator(cmptr Comparator) []objc.Object { - rv := objc.Call[[]objc.Object](o_, objc.Sel("sortedArrayUsingComparator:"), cmptr) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1412955-removeobserver?language=objc +func (o_ OrderedSet) RemoveObserverForKeyPath(observer objc.IObject, keyPath string) { + objc.Call[objc.Void](o_, objc.Sel("removeObserver:forKeyPath:"), observer, keyPath) } -// Returns the objects in the ordered set at the specified indexes. [Full Topic] +// Returns a string that represents the contents of the ordered set, formatted as a property list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1414943-objectsatindexes?language=objc -func (o_ OrderedSet) ObjectsAtIndexes(indexes IIndexSet) []objc.Object { - rv := objc.Call[[]objc.Object](o_, objc.Sel("objectsAtIndexes:"), indexes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1417325-descriptionwithlocale?language=objc +func (o_ OrderedSet) DescriptionWithLocale(locale objc.IObject) string { + rv := objc.Call[string](o_, objc.Sel("descriptionWithLocale:"), locale) return rv } -// Compares two ordered sets, using the provided block and with options, to create a difference object that represents the changes between them. [Full Topic] +// Invokes setValue:forKey: on each of the receiver's members using the specified value and key [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/3152197-differencefromorderedset?language=objc -func (o_ OrderedSet) DifferenceFromOrderedSetWithOptionsUsingEquivalenceTest(other IOrderedSet, options OrderedCollectionDifferenceCalculationOptions, block func(obj1 objc.Object, obj2 objc.Object) bool) OrderedCollectionDifference { - rv := objc.Call[OrderedCollectionDifference](o_, objc.Sel("differenceFromOrderedSet:withOptions:usingEquivalenceTest:"), other, options, block) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1413118-setvalue?language=objc +func (o_ OrderedSet) SetValueForKey(value objc.IObject, key string) { + objc.Call[objc.Void](o_, objc.Sel("setValue:forKey:"), value, key) } -// Raises an exception. [Full Topic] +// Returns the index of the object in the ordered set that passes a test in a given block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1412955-removeobserver?language=objc -func (o_ OrderedSet) RemoveObserverForKeyPath(observer objc.IObject, keyPath string) { - objc.Call[objc.Void](o_, objc.Sel("removeObserver:forKeyPath:"), observer, keyPath) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411331-indexesofobjectspassingtest?language=objc +func (o_ OrderedSet) IndexesOfObjectsPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet { + rv := objc.Call[IndexSet](o_, objc.Sel("indexesOfObjectsPassingTest:"), predicate) + return rv } -// Executes a given block using each object in the set, using the specified enumeration options. [Full Topic] +// Returns the index of the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409354-enumerateobjectswithoptions?language=objc -func (o_ OrderedSet) EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) { - objc.Call[objc.Void](o_, objc.Sel("enumerateObjectsWithOptions:usingBlock:"), opts, block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411856-indexofobject?language=objc +func (o_ OrderedSet) IndexOfObject(object objc.IObject) uint { + rv := objc.Call[uint](o_, objc.Sel("indexOfObject:"), object) + return rv } // Raises an exception. [Full Topic] @@ -644,6 +461,13 @@ func (o_ OrderedSet) IndexOfObjectWithOptionsPassingTest(opts EnumerationOptions return rv } +// Executes a given block using the objects in the ordered set at the specified indexes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1412332-enumerateobjectsatindexes?language=objc +func (o_ OrderedSet) EnumerateObjectsAtIndexesOptionsUsingBlock(s IIndexSet, opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) { + objc.Call[objc.Void](o_, objc.Sel("enumerateObjectsAtIndexes:options:usingBlock:"), s, opts, block) +} + // Returns an ordered set containing the results of invoking valueForKey: using key on each of the ordered set’s objects. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409378-valueforkey?language=objc @@ -652,27 +476,35 @@ func (o_ OrderedSet) ValueForKey(key string) objc.Object { return rv } -// Returns the index of an object in the ordered set that passes a test in a given block for a given set of enumeration options. [Full Topic] +// Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1415944-indexesofobjectswithoptions?language=objc -func (o_ OrderedSet) IndexesOfObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet { - rv := objc.Call[IndexSet](o_, objc.Sel("indexesOfObjectsWithOptions:passingTest:"), opts, predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1417531-indexofobjectatindexes?language=objc +func (o_ OrderedSet) IndexOfObjectAtIndexesOptionsPassingTest(s IIndexSet, opts EnumerationOptions, predicate func(obj objc.Object, idx uint, stop *bool) bool) uint { + rv := objc.Call[uint](o_, objc.Sel("indexOfObjectAtIndexes:options:passingTest:"), s, opts, predicate) return rv } -// Returns the index of the object in the ordered set that passes a test in a given block. [Full Topic] +// Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411331-indexesofobjectspassingtest?language=objc -func (o_ OrderedSet) IndexesOfObjectsPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) IndexSet { - rv := objc.Call[IndexSet](o_, objc.Sel("indexesOfObjectsPassingTest:"), predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1413383-sortedarrayusingcomparator?language=objc +func (o_ OrderedSet) SortedArrayUsingComparator(cmptr Comparator) []objc.Object { + rv := objc.Call[[]objc.Object](o_, objc.Sel("sortedArrayUsingComparator:"), cmptr) return rv } -// The number of members in the set. [Full Topic] +// A representation of the set containing the contents of the ordered set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1410106-count?language=objc -func (o_ OrderedSet) Count() uint { - rv := objc.Call[uint](o_, objc.Sel("count")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1413944-set?language=objc +func (o_ OrderedSet) Set() Set { + rv := objc.Call[Set](o_, objc.Sel("set")) + return rv +} + +// The last object in the ordered set. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409143-lastobject?language=objc +func (o_ OrderedSet) LastObject() objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("lastObject")) return rv } @@ -692,19 +524,11 @@ func (o_ OrderedSet) Description() string { return rv } -// The last object in the ordered set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1409143-lastobject?language=objc -func (o_ OrderedSet) LastObject() objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("lastObject")) - return rv -} - -// A representation of the set containing the contents of the ordered set. [Full Topic] +// The number of members in the set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1413944-set?language=objc -func (o_ OrderedSet) Set() Set { - rv := objc.Call[Set](o_, objc.Sel("set")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1410106-count?language=objc +func (o_ OrderedSet) Count() uint { + rv := objc.Call[uint](o_, objc.Sel("count")) return rv } diff --git a/macos/foundation/orthography.gen.go b/macos/foundation/orthography.gen.go index dd971111..eae318db 100644 --- a/macos/foundation/orthography.gen.go +++ b/macos/foundation/orthography.gen.go @@ -18,12 +18,12 @@ type _OrthographyClass struct { // An interface definition for the [Orthography] class. type IOrthography interface { objc.IObject - DominantLanguageForScript(script string) string LanguagesForScript(script string) []string + DominantLanguageForScript(script string) string + AllLanguages() []string DominantScript() string AllScripts() []string DominantLanguage() string - AllLanguages() []string LanguageMap() map[string][]string } @@ -98,6 +98,14 @@ func (o_ Orthography) Init() Orthography { return rv } +// Returns the list of languages for the specified script. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorthography/1412606-languagesforscript?language=objc +func (o_ Orthography) LanguagesForScript(script string) []string { + rv := objc.Call[[]string](o_, objc.Sel("languagesForScript:"), script) + return rv +} + // Returns the dominant language for the specified script. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsorthography/1407326-dominantlanguageforscript?language=objc @@ -106,11 +114,11 @@ func (o_ Orthography) DominantLanguageForScript(script string) string { return rv } -// Returns the list of languages for the specified script. [Full Topic] +// The languages appearing in values of the language map. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorthography/1412606-languagesforscript?language=objc -func (o_ Orthography) LanguagesForScript(script string) []string { - rv := objc.Call[[]string](o_, objc.Sel("languagesForScript:"), script) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorthography/1416205-alllanguages?language=objc +func (o_ Orthography) AllLanguages() []string { + rv := objc.Call[[]string](o_, objc.Sel("allLanguages")) return rv } @@ -138,14 +146,6 @@ func (o_ Orthography) DominantLanguage() string { return rv } -// The languages appearing in values of the language map. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorthography/1416205-alllanguages?language=objc -func (o_ Orthography) AllLanguages() []string { - rv := objc.Call[[]string](o_, objc.Sel("allLanguages")) - return rv -} - // A dictionary that maps script tags to arrays of language tags. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsorthography/1409533-languagemap?language=objc diff --git a/macos/foundation/output_stream.gen.go b/macos/foundation/output_stream.gen.go index 4f9298b1..fa5f8bea 100644 --- a/macos/foundation/output_stream.gen.go +++ b/macos/foundation/output_stream.gen.go @@ -35,42 +35,30 @@ func OutputStreamFrom(ptr unsafe.Pointer) OutputStream { } } -func (oc _OutputStreamClass) OutputStreamToFileAtPathAppend(path string, shouldAppend bool) OutputStream { - rv := objc.Call[OutputStream](oc, objc.Sel("outputStreamToFileAtPath:append:"), path, shouldAppend) - return rv -} - -// Creates and returns an initialized output stream for writing to a specified file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1564841-outputstreamtofileatpath?language=objc -func OutputStream_OutputStreamToFileAtPathAppend(path string, shouldAppend bool) OutputStream { - return OutputStreamClass.OutputStreamToFileAtPathAppend(path, shouldAppend) -} - -func (o_ OutputStream) InitToFileAtPathAppend(path string, shouldAppend bool) OutputStream { - rv := objc.Call[OutputStream](o_, objc.Sel("initToFileAtPath:append:"), path, shouldAppend) +func (o_ OutputStream) InitWithURLAppend(url IURL, shouldAppend bool) OutputStream { + rv := objc.Call[OutputStream](o_, objc.Sel("initWithURL:append:"), url, shouldAppend) return rv } -// Returns an initialized output stream for writing to a specified file. [Full Topic] +// Returns an initialized output stream for writing to a specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1416367-inittofileatpath?language=objc -func NewOutputStreamToFileAtPathAppend(path string, shouldAppend bool) OutputStream { - instance := OutputStreamClass.Alloc().InitToFileAtPathAppend(path, shouldAppend) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1414446-initwithurl?language=objc +func NewOutputStreamWithURLAppend(url IURL, shouldAppend bool) OutputStream { + instance := OutputStreamClass.Alloc().InitWithURLAppend(url, shouldAppend) instance.Autorelease() return instance } -func (o_ OutputStream) InitToMemory() OutputStream { - rv := objc.Call[OutputStream](o_, objc.Sel("initToMemory")) +func (o_ OutputStream) InitToBufferCapacity(buffer *uint8, capacity uint) OutputStream { + rv := objc.Call[OutputStream](o_, objc.Sel("initToBuffer:capacity:"), buffer, capacity) return rv } -// Returns an initialized output stream that will write to memory. [Full Topic] +// Returns an initialized output stream that can write to a provided buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1409909-inittomemory?language=objc -func NewOutputStreamToMemory() OutputStream { - instance := OutputStreamClass.Alloc().InitToMemory() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1410805-inittobuffer?language=objc +func NewOutputStreamToBufferCapacity(buffer *uint8, capacity uint) OutputStream { + instance := OutputStreamClass.Alloc().InitToBufferCapacity(buffer, capacity) instance.Autorelease() return instance } @@ -87,46 +75,32 @@ func OutputStream_OutputStreamWithURLAppend(url IURL, shouldAppend bool) OutputS return OutputStreamClass.OutputStreamWithURLAppend(url, shouldAppend) } -func (o_ OutputStream) InitToBufferCapacity(buffer *uint8, capacity uint) OutputStream { - rv := objc.Call[OutputStream](o_, objc.Sel("initToBuffer:capacity:"), buffer, capacity) +func (oc _OutputStreamClass) OutputStreamToBufferCapacity(buffer *uint8, capacity uint) OutputStream { + rv := objc.Call[OutputStream](oc, objc.Sel("outputStreamToBuffer:capacity:"), buffer, capacity) return rv } -// Returns an initialized output stream that can write to a provided buffer. [Full Topic] +// Creates and returns an initialized output stream that can write to a provided buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1410805-inittobuffer?language=objc -func NewOutputStreamToBufferCapacity(buffer *uint8, capacity uint) OutputStream { - instance := OutputStreamClass.Alloc().InitToBufferCapacity(buffer, capacity) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1564837-outputstreamtobuffer?language=objc +func OutputStream_OutputStreamToBufferCapacity(buffer *uint8, capacity uint) OutputStream { + return OutputStreamClass.OutputStreamToBufferCapacity(buffer, capacity) } -func (o_ OutputStream) InitWithURLAppend(url IURL, shouldAppend bool) OutputStream { - rv := objc.Call[OutputStream](o_, objc.Sel("initWithURL:append:"), url, shouldAppend) +func (o_ OutputStream) InitToFileAtPathAppend(path string, shouldAppend bool) OutputStream { + rv := objc.Call[OutputStream](o_, objc.Sel("initToFileAtPath:append:"), path, shouldAppend) return rv } -// Returns an initialized output stream for writing to a specified URL. [Full Topic] +// Returns an initialized output stream for writing to a specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1414446-initwithurl?language=objc -func NewOutputStreamWithURLAppend(url IURL, shouldAppend bool) OutputStream { - instance := OutputStreamClass.Alloc().InitWithURLAppend(url, shouldAppend) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1416367-inittofileatpath?language=objc +func NewOutputStreamToFileAtPathAppend(path string, shouldAppend bool) OutputStream { + instance := OutputStreamClass.Alloc().InitToFileAtPathAppend(path, shouldAppend) instance.Autorelease() return instance } -func (oc _OutputStreamClass) OutputStreamToBufferCapacity(buffer *uint8, capacity uint) OutputStream { - rv := objc.Call[OutputStream](oc, objc.Sel("outputStreamToBuffer:capacity:"), buffer, capacity) - return rv -} - -// Creates and returns an initialized output stream that can write to a provided buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1564837-outputstreamtobuffer?language=objc -func OutputStream_OutputStreamToBufferCapacity(buffer *uint8, capacity uint) OutputStream { - return OutputStreamClass.OutputStreamToBufferCapacity(buffer, capacity) -} - func (oc _OutputStreamClass) OutputStreamToMemory() OutputStream { rv := objc.Call[OutputStream](oc, objc.Sel("outputStreamToMemory")) return rv @@ -139,6 +113,32 @@ func OutputStream_OutputStreamToMemory() OutputStream { return OutputStreamClass.OutputStreamToMemory() } +func (oc _OutputStreamClass) OutputStreamToFileAtPathAppend(path string, shouldAppend bool) OutputStream { + rv := objc.Call[OutputStream](oc, objc.Sel("outputStreamToFileAtPath:append:"), path, shouldAppend) + return rv +} + +// Creates and returns an initialized output stream for writing to a specified file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1564841-outputstreamtofileatpath?language=objc +func OutputStream_OutputStreamToFileAtPathAppend(path string, shouldAppend bool) OutputStream { + return OutputStreamClass.OutputStreamToFileAtPathAppend(path, shouldAppend) +} + +func (o_ OutputStream) InitToMemory() OutputStream { + rv := objc.Call[OutputStream](o_, objc.Sel("initToMemory")) + return rv +} + +// Returns an initialized output stream that will write to memory. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1409909-inittomemory?language=objc +func NewOutputStreamToMemory() OutputStream { + instance := OutputStreamClass.Alloc().InitToMemory() + instance.Autorelease() + return instance +} + func (oc _OutputStreamClass) Alloc() OutputStream { rv := objc.Call[OutputStream](oc, objc.Sel("alloc")) return rv diff --git a/macos/foundation/person_name_components.gen.go b/macos/foundation/person_name_components.gen.go index c0f5f967..aca14fee 100644 --- a/macos/foundation/person_name_components.gen.go +++ b/macos/foundation/person_name_components.gen.go @@ -18,20 +18,20 @@ type _PersonNameComponentsClass struct { // An interface definition for the [PersonNameComponents] class. type IPersonNameComponents interface { objc.IObject - GivenName() string - SetGivenName(value string) PhoneticRepresentation() PersonNameComponents SetPhoneticRepresentation(value IPersonNameComponents) + NamePrefix() string + SetNamePrefix(value string) MiddleName() string SetMiddleName(value string) + GivenName() string + SetGivenName(value string) NameSuffix() string SetNameSuffix(value string) FamilyName() string SetFamilyName(value string) Nickname() string SetNickname(value string) - NamePrefix() string - SetNamePrefix(value string) } // An object that manages the separate parts of a person's name to allow locale-aware formatting. [Full Topic] @@ -67,21 +67,6 @@ func (p_ PersonNameComponents) Init() PersonNameComponents { return rv } -// Name bestowed upon an individual to differentiate them from other members of a group that share a family name (for example, “Johnathan”). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1407259-givenname?language=objc -func (p_ PersonNameComponents) GivenName() string { - rv := objc.Call[string](p_, objc.Sel("givenName")) - return rv -} - -// Name bestowed upon an individual to differentiate them from other members of a group that share a family name (for example, “Johnathan”). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1407259-givenname?language=objc -func (p_ PersonNameComponents) SetGivenName(value string) { - objc.Call[objc.Void](p_, objc.Sel("setGivenName:"), value) -} - // The phonetic representation name components of the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1412193-phoneticrepresentation?language=objc @@ -97,6 +82,21 @@ func (p_ PersonNameComponents) SetPhoneticRepresentation(value IPersonNameCompon objc.Call[objc.Void](p_, objc.Sel("setPhoneticRepresentation:"), value) } +// The portion of a name’s full form of address that precedes the name itself (for example, “Dr.,” “Mr.,” “Ms.”). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1410275-nameprefix?language=objc +func (p_ PersonNameComponents) NamePrefix() string { + rv := objc.Call[string](p_, objc.Sel("namePrefix")) + return rv +} + +// The portion of a name’s full form of address that precedes the name itself (for example, “Dr.,” “Mr.,” “Ms.”). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1410275-nameprefix?language=objc +func (p_ PersonNameComponents) SetNamePrefix(value string) { + objc.Call[objc.Void](p_, objc.Sel("setNamePrefix:"), value) +} + // Secondary name bestowed upon an individual to differentiate them from others that have the same given name (for example, “Maple”). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1418183-middlename?language=objc @@ -112,6 +112,21 @@ func (p_ PersonNameComponents) SetMiddleName(value string) { objc.Call[objc.Void](p_, objc.Sel("setMiddleName:"), value) } +// Name bestowed upon an individual to differentiate them from other members of a group that share a family name (for example, “Johnathan”). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1407259-givenname?language=objc +func (p_ PersonNameComponents) GivenName() string { + rv := objc.Call[string](p_, objc.Sel("givenName")) + return rv +} + +// Name bestowed upon an individual to differentiate them from other members of a group that share a family name (for example, “Johnathan”). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1407259-givenname?language=objc +func (p_ PersonNameComponents) SetGivenName(value string) { + objc.Call[objc.Void](p_, objc.Sel("setGivenName:"), value) +} + // The portion of a name’s full form of address that follows the name itself (for example, “Esq.,” “Jr.,” “Ph.D.”). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1410776-namesuffix?language=objc @@ -156,18 +171,3 @@ func (p_ PersonNameComponents) Nickname() string { func (p_ PersonNameComponents) SetNickname(value string) { objc.Call[objc.Void](p_, objc.Sel("setNickname:"), value) } - -// The portion of a name’s full form of address that precedes the name itself (for example, “Dr.,” “Mr.,” “Ms.”). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1410275-nameprefix?language=objc -func (p_ PersonNameComponents) NamePrefix() string { - rv := objc.Call[string](p_, objc.Sel("namePrefix")) - return rv -} - -// The portion of a name’s full form of address that precedes the name itself (for example, “Dr.,” “Mr.,” “Ms.”). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponents/1410275-nameprefix?language=objc -func (p_ PersonNameComponents) SetNamePrefix(value string) { - objc.Call[objc.Void](p_, objc.Sel("setNamePrefix:"), value) -} diff --git a/macos/foundation/person_name_components_formatter.gen.go b/macos/foundation/person_name_components_formatter.gen.go index 9d7db031..dd600803 100644 --- a/macos/foundation/person_name_components_formatter.gen.go +++ b/macos/foundation/person_name_components_formatter.gen.go @@ -18,13 +18,13 @@ type _PersonNameComponentsFormatterClass struct { // An interface definition for the [PersonNameComponentsFormatter] class. type IPersonNameComponentsFormatter interface { IFormatter + AnnotatedStringFromPersonNameComponents(components IPersonNameComponents) AttributedString StringFromPersonNameComponents(components IPersonNameComponents) string PersonNameComponentsFromString(string_ string) PersonNameComponents - AnnotatedStringFromPersonNameComponents(components IPersonNameComponents) AttributedString - Locale() Locale - SetLocale(value ILocale) Style() PersonNameComponentsFormatterStyle SetStyle(value PersonNameComponentsFormatterStyle) + Locale() Locale + SetLocale(value ILocale) IsPhonetic() bool SetPhonetic(value bool) } @@ -62,6 +62,14 @@ func (p_ PersonNameComponentsFormatter) Init() PersonNameComponentsFormatter { return rv } +// Returns an attributed string formatted for a given NSPersonNameComponents object, with attribute annotations for each component. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter/1408241-annotatedstringfrompersonnamecom?language=objc +func (p_ PersonNameComponentsFormatter) AnnotatedStringFromPersonNameComponents(components IPersonNameComponents) AttributedString { + rv := objc.Call[AttributedString](p_, objc.Sel("annotatedStringFromPersonNameComponents:"), components) + return rv +} + // Returns a string formatted for a given NSPersonNameComponents object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter/1408243-stringfrompersonnamecomponents?language=objc @@ -93,14 +101,21 @@ func (p_ PersonNameComponentsFormatter) PersonNameComponentsFromString(string_ s return rv } -// Returns an attributed string formatted for a given NSPersonNameComponents object, with attribute annotations for each component. [Full Topic] +// The formatting style of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter/1408241-annotatedstringfrompersonnamecom?language=objc -func (p_ PersonNameComponentsFormatter) AnnotatedStringFromPersonNameComponents(components IPersonNameComponents) AttributedString { - rv := objc.Call[AttributedString](p_, objc.Sel("annotatedStringFromPersonNameComponents:"), components) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter/1408260-style?language=objc +func (p_ PersonNameComponentsFormatter) Style() PersonNameComponentsFormatterStyle { + rv := objc.Call[PersonNameComponentsFormatterStyle](p_, objc.Sel("style")) return rv } +// The formatting style of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter/1408260-style?language=objc +func (p_ PersonNameComponentsFormatter) SetStyle(value PersonNameComponentsFormatterStyle) { + objc.Call[objc.Void](p_, objc.Sel("setStyle:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter/3850507-locale?language=objc @@ -116,21 +131,6 @@ func (p_ PersonNameComponentsFormatter) SetLocale(value ILocale) { objc.Call[objc.Void](p_, objc.Sel("setLocale:"), value) } -// The formatting style of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter/1408260-style?language=objc -func (p_ PersonNameComponentsFormatter) Style() PersonNameComponentsFormatterStyle { - rv := objc.Call[PersonNameComponentsFormatterStyle](p_, objc.Sel("style")) - return rv -} - -// The formatting style of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter/1408260-style?language=objc -func (p_ PersonNameComponentsFormatter) SetStyle(value PersonNameComponentsFormatterStyle) { - objc.Call[objc.Void](p_, objc.Sel("setStyle:"), value) -} - // A Boolean value that specifies whether the receiver should use only the phonetic representations of name components. NO by default. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter/1408242-phonetic?language=objc diff --git a/macos/foundation/pointer_array.gen.go b/macos/foundation/pointer_array.gen.go index 3103303d..f8833059 100644 --- a/macos/foundation/pointer_array.gen.go +++ b/macos/foundation/pointer_array.gen.go @@ -18,12 +18,12 @@ type _PointerArrayClass struct { // An interface definition for the [PointerArray] class. type IPointerArray interface { objc.IObject - AddPointer(pointer unsafe.Pointer) - ReplacePointerAtIndexWithPointer(index uint, item unsafe.Pointer) - PointerAtIndex(index uint) unsafe.Pointer - InsertPointerAtIndex(item unsafe.Pointer, index uint) RemovePointerAtIndex(index uint) + PointerAtIndex(index uint) unsafe.Pointer Compact() + InsertPointerAtIndex(item unsafe.Pointer, index uint) + ReplacePointerAtIndexWithPointer(index uint, item unsafe.Pointer) + AddPointer(pointer unsafe.Pointer) PointerFunctions() PointerFunctions Count() uint SetCount(value uint) @@ -91,18 +91,11 @@ func (p_ PointerArray) Init() PointerArray { return rv } -// Adds a given pointer to the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerarray/1411636-addpointer?language=objc -func (p_ PointerArray) AddPointer(pointer unsafe.Pointer) { - objc.Call[objc.Void](p_, objc.Sel("addPointer:"), pointer) -} - -// Replaces the pointer at a given index. [Full Topic] +// Removes the pointer at a given index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerarray/1412654-replacepointeratindex?language=objc -func (p_ PointerArray) ReplacePointerAtIndexWithPointer(index uint, item unsafe.Pointer) { - objc.Call[objc.Void](p_, objc.Sel("replacePointerAtIndex:withPointer:"), index, item) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerarray/1407403-removepointeratindex?language=objc +func (p_ PointerArray) RemovePointerAtIndex(index uint) { + objc.Call[objc.Void](p_, objc.Sel("removePointerAtIndex:"), index) } // Returns a new pointer array initialized to use the given options. [Full Topic] @@ -128,6 +121,13 @@ func (p_ PointerArray) PointerAtIndex(index uint) unsafe.Pointer { return rv } +// Removes NULL values from the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerarray/1413659-compact?language=objc +func (p_ PointerArray) Compact() { + objc.Call[objc.Void](p_, objc.Sel("compact")) +} + // A new pointer array initialized to use the given functions. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerarray/1564844-pointerarraywithpointerfunctions?language=objc @@ -150,11 +150,11 @@ func (p_ PointerArray) InsertPointerAtIndex(item unsafe.Pointer, index uint) { objc.Call[objc.Void](p_, objc.Sel("insertPointer:atIndex:"), item, index) } -// Removes the pointer at a given index. [Full Topic] +// Replaces the pointer at a given index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerarray/1407403-removepointeratindex?language=objc -func (p_ PointerArray) RemovePointerAtIndex(index uint) { - objc.Call[objc.Void](p_, objc.Sel("removePointerAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerarray/1412654-replacepointeratindex?language=objc +func (p_ PointerArray) ReplacePointerAtIndexWithPointer(index uint, item unsafe.Pointer) { + objc.Call[objc.Void](p_, objc.Sel("replacePointerAtIndex:withPointer:"), index, item) } // Returns a new pointer array that maintains weak references to its elements. [Full Topic] @@ -187,11 +187,11 @@ func PointerArray_StrongObjectsPointerArray() PointerArray { return PointerArrayClass.StrongObjectsPointerArray() } -// Removes NULL values from the receiver. [Full Topic] +// Adds a given pointer to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerarray/1413659-compact?language=objc -func (p_ PointerArray) Compact() { - objc.Call[objc.Void](p_, objc.Sel("compact")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerarray/1411636-addpointer?language=objc +func (p_ PointerArray) AddPointer(pointer unsafe.Pointer) { + objc.Call[objc.Void](p_, objc.Sel("addPointer:"), pointer) } // The functions in use by the receiver. [Full Topic] diff --git a/macos/foundation/pointer_functions.gen.go b/macos/foundation/pointer_functions.gen.go index ac40bc6a..92fca698 100644 --- a/macos/foundation/pointer_functions.gen.go +++ b/macos/foundation/pointer_functions.gen.go @@ -18,18 +18,18 @@ type _PointerFunctionsClass struct { // An interface definition for the [PointerFunctions] class. type IPointerFunctions interface { objc.IObject - RelinquishFunction() func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) - SetRelinquishFunction(value func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint)) DescriptionFunction() func(item unsafe.Pointer) string SetDescriptionFunction(value func(item unsafe.Pointer) string) - AcquireFunction() func(src unsafe.Pointer, arg1 func(item unsafe.Pointer) uint, shouldCopy bool) unsafe.Pointer - SetAcquireFunction(value func(src unsafe.Pointer, arg1 func(item unsafe.Pointer) uint, shouldCopy bool) unsafe.Pointer) IsEqualFunction() func(item1 unsafe.Pointer, item2 unsafe.Pointer, arg2 func(item unsafe.Pointer) uint) bool SetIsEqualFunction(value func(item1 unsafe.Pointer, item2 unsafe.Pointer, arg2 func(item unsafe.Pointer) uint) bool) - SizeFunction() func(item unsafe.Pointer) uint - SetSizeFunction(value func(item unsafe.Pointer) uint) HashFunction() func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) uint SetHashFunction(value func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) uint) + SizeFunction() func(item unsafe.Pointer) uint + SetSizeFunction(value func(item unsafe.Pointer) uint) + RelinquishFunction() func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) + SetRelinquishFunction(value func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint)) + AcquireFunction() func(src unsafe.Pointer, arg1 func(item unsafe.Pointer) uint, shouldCopy bool) unsafe.Pointer + SetAcquireFunction(value func(src unsafe.Pointer, arg1 func(item unsafe.Pointer) uint, shouldCopy bool) unsafe.Pointer) } // An instance of NSPointerFunctions defines callout functions appropriate for managing a pointer reference held somewhere else. [Full Topic] @@ -94,21 +94,6 @@ func PointerFunctions_PointerFunctionsWithOptions(options PointerFunctionsOption return PointerFunctionsClass.PointerFunctionsWithOptions(options) } -// The function used to relinquish memory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1408565-relinquishfunction?language=objc -func (p_ PointerFunctions) RelinquishFunction() func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) { - rv := objc.Call[func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint)](p_, objc.Sel("relinquishFunction")) - return rv -} - -// The function used to relinquish memory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1408565-relinquishfunction?language=objc -func (p_ PointerFunctions) SetRelinquishFunction(value func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint)) { - objc.Call[objc.Void](p_, objc.Sel("setRelinquishFunction:"), value) -} - // The function used to describe elements. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1415200-descriptionfunction?language=objc @@ -124,21 +109,6 @@ func (p_ PointerFunctions) SetDescriptionFunction(value func(item unsafe.Pointer objc.Call[objc.Void](p_, objc.Sel("setDescriptionFunction:"), value) } -// The function used to acquire memory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1410537-acquirefunction?language=objc -func (p_ PointerFunctions) AcquireFunction() func(src unsafe.Pointer, arg1 func(item unsafe.Pointer) uint, shouldCopy bool) unsafe.Pointer { - rv := objc.Call[func(src unsafe.Pointer, arg1 func(item unsafe.Pointer) uint, shouldCopy bool) unsafe.Pointer](p_, objc.Sel("acquireFunction")) - return rv -} - -// The function used to acquire memory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1410537-acquirefunction?language=objc -func (p_ PointerFunctions) SetAcquireFunction(value func(src unsafe.Pointer, arg1 func(item unsafe.Pointer) uint, shouldCopy bool) unsafe.Pointer) { - objc.Call[objc.Void](p_, objc.Sel("setAcquireFunction:"), value) -} - // The function used to compare pointers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1413473-isequalfunction?language=objc @@ -154,6 +124,21 @@ func (p_ PointerFunctions) SetIsEqualFunction(value func(item1 unsafe.Pointer, i objc.Call[objc.Void](p_, objc.Sel("setIsEqualFunction:"), value) } +// The hash function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1415939-hashfunction?language=objc +func (p_ PointerFunctions) HashFunction() func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) uint { + rv := objc.Call[func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) uint](p_, objc.Sel("hashFunction")) + return rv +} + +// The hash function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1415939-hashfunction?language=objc +func (p_ PointerFunctions) SetHashFunction(value func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) uint) { + objc.Call[objc.Void](p_, objc.Sel("setHashFunction:"), value) +} + // The function used to determine the size of pointers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1408045-sizefunction?language=objc @@ -169,17 +154,32 @@ func (p_ PointerFunctions) SetSizeFunction(value func(item unsafe.Pointer) uint) objc.Call[objc.Void](p_, objc.Sel("setSizeFunction:"), value) } -// The hash function. [Full Topic] +// The function used to relinquish memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1415939-hashfunction?language=objc -func (p_ PointerFunctions) HashFunction() func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) uint { - rv := objc.Call[func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) uint](p_, objc.Sel("hashFunction")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1408565-relinquishfunction?language=objc +func (p_ PointerFunctions) RelinquishFunction() func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) { + rv := objc.Call[func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint)](p_, objc.Sel("relinquishFunction")) return rv } -// The hash function. [Full Topic] +// The function used to relinquish memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1415939-hashfunction?language=objc -func (p_ PointerFunctions) SetHashFunction(value func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint) uint) { - objc.Call[objc.Void](p_, objc.Sel("setHashFunction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1408565-relinquishfunction?language=objc +func (p_ PointerFunctions) SetRelinquishFunction(value func(item unsafe.Pointer, arg1 func(item unsafe.Pointer) uint)) { + objc.Call[objc.Void](p_, objc.Sel("setRelinquishFunction:"), value) +} + +// The function used to acquire memory. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1410537-acquirefunction?language=objc +func (p_ PointerFunctions) AcquireFunction() func(src unsafe.Pointer, arg1 func(item unsafe.Pointer) uint, shouldCopy bool) unsafe.Pointer { + rv := objc.Call[func(src unsafe.Pointer, arg1 func(item unsafe.Pointer) uint, shouldCopy bool) unsafe.Pointer](p_, objc.Sel("acquireFunction")) + return rv +} + +// The function used to acquire memory. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspointerfunctions/1410537-acquirefunction?language=objc +func (p_ PointerFunctions) SetAcquireFunction(value func(src unsafe.Pointer, arg1 func(item unsafe.Pointer) uint, shouldCopy bool) unsafe.Pointer) { + objc.Call[objc.Void](p_, objc.Sel("setAcquireFunction:"), value) } diff --git a/macos/foundation/port.gen.go b/macos/foundation/port.gen.go index 43dd235d..141390f0 100644 --- a/macos/foundation/port.gen.go +++ b/macos/foundation/port.gen.go @@ -18,13 +18,12 @@ type _PortClass struct { // An interface definition for the [Port] class. type IPort interface { objc.IObject - Delegate() PortDelegateObject - SetDelegate(anObject PPortDelegate) - SetDelegateObject(anObjectObject objc.IObject) ScheduleInRunLoopForMode(runLoop IRunLoop, mode RunLoopMode) RemoveFromRunLoopForMode(runLoop IRunLoop, mode RunLoopMode) + SetDelegate(anObject PPortDelegate) + SetDelegateObject(anObjectObject objc.IObject) SendBeforeDateComponentsFromReserved(limitDate IDate, components IMutableArray, receivePort IPort, headerSpaceReserved uint) bool - SendBeforeDateMsgidComponentsFromReserved(limitDate IDate, msgID uint, components IMutableArray, receivePort IPort, headerSpaceReserved uint) bool + Delegate() PortDelegateObject Invalidate() IsValid() bool ReservedSpaceLength() uint @@ -63,12 +62,18 @@ func (p_ Port) Init() Port { return rv } -// Returns the receiver’s delegate. [Full Topic] +// This method should be implemented by a subclass to set up monitoring of a port when added to a given run loop in a given input mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsport/1399545-delegate?language=objc -func (p_ Port) Delegate() PortDelegateObject { - rv := objc.Call[PortDelegateObject](p_, objc.Sel("delegate")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsport/1399517-scheduleinrunloop?language=objc +func (p_ Port) ScheduleInRunLoopForMode(runLoop IRunLoop, mode RunLoopMode) { + objc.Call[objc.Void](p_, objc.Sel("scheduleInRunLoop:forMode:"), runLoop, mode) +} + +// This method should be implemented by a subclass to stop monitoring of a port when removed from a give run loop in a given input mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsport/1399525-removefromrunloop?language=objc +func (p_ Port) RemoveFromRunLoopForMode(runLoop IRunLoop, mode RunLoopMode) { + objc.Call[objc.Void](p_, objc.Sel("removeFromRunLoop:forMode:"), runLoop, mode) } // Sets the receiver’s delegate to a given object. [Full Topic] @@ -86,20 +91,6 @@ func (p_ Port) SetDelegateObject(anObjectObject objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), anObjectObject) } -// This method should be implemented by a subclass to set up monitoring of a port when added to a given run loop in a given input mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsport/1399517-scheduleinrunloop?language=objc -func (p_ Port) ScheduleInRunLoopForMode(runLoop IRunLoop, mode RunLoopMode) { - objc.Call[objc.Void](p_, objc.Sel("scheduleInRunLoop:forMode:"), runLoop, mode) -} - -// This method should be implemented by a subclass to stop monitoring of a port when removed from a give run loop in a given input mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsport/1399525-removefromrunloop?language=objc -func (p_ Port) RemoveFromRunLoopForMode(runLoop IRunLoop, mode RunLoopMode) { - objc.Call[objc.Void](p_, objc.Sel("removeFromRunLoop:forMode:"), runLoop, mode) -} - // This method is provided for subclasses that have custom types of NSPort. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsport/1399537-sendbeforedate?language=objc @@ -108,11 +99,11 @@ func (p_ Port) SendBeforeDateComponentsFromReserved(limitDate IDate, components return rv } -// This method is provided for subclasses that have custom types of NSPort. [Full Topic] +// Returns the receiver’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsport/1399482-sendbeforedate?language=objc -func (p_ Port) SendBeforeDateMsgidComponentsFromReserved(limitDate IDate, msgID uint, components IMutableArray, receivePort IPort, headerSpaceReserved uint) bool { - rv := objc.Call[bool](p_, objc.Sel("sendBeforeDate:msgid:components:from:reserved:"), limitDate, msgID, components, receivePort, headerSpaceReserved) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsport/1399545-delegate?language=objc +func (p_ Port) Delegate() PortDelegateObject { + rv := objc.Call[PortDelegateObject](p_, objc.Sel("delegate")) return rv } diff --git a/macos/foundation/port_message.gen.go b/macos/foundation/port_message.gen.go index efd36c44..b98024c0 100644 --- a/macos/foundation/port_message.gen.go +++ b/macos/foundation/port_message.gen.go @@ -19,11 +19,11 @@ type _PortMessageClass struct { type IPortMessage interface { objc.IObject SendBeforeDate(date IDate) bool - ReceivePort() Port - SendPort() Port Components() []objc.Object + SendPort() Port Msgid() uint32 SetMsgid(value uint32) + ReceivePort() Port } // A low-level, operating system-independent type for inter-application (and inter-thread) messages. [Full Topic] @@ -81,11 +81,11 @@ func (p_ PortMessage) SendBeforeDate(date IDate) bool { return rv } -// For an outgoing message, returns the port on which replies to the receiver will arrive. For an incoming message, returns the port the receiver did arrive on. [Full Topic] +// Returns the data components of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsportmessage/1413908-receiveport?language=objc -func (p_ PortMessage) ReceivePort() Port { - rv := objc.Call[Port](p_, objc.Sel("receivePort")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsportmessage/1407377-components?language=objc +func (p_ PortMessage) Components() []objc.Object { + rv := objc.Call[[]objc.Object](p_, objc.Sel("components")) return rv } @@ -97,14 +97,6 @@ func (p_ PortMessage) SendPort() Port { return rv } -// Returns the data components of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsportmessage/1407377-components?language=objc -func (p_ PortMessage) Components() []objc.Object { - rv := objc.Call[[]objc.Object](p_, objc.Sel("components")) - return rv -} - // Returns the identifier for the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsportmessage/1407880-msgid?language=objc @@ -119,3 +111,11 @@ func (p_ PortMessage) Msgid() uint32 { func (p_ PortMessage) SetMsgid(value uint32) { objc.Call[objc.Void](p_, objc.Sel("setMsgid:"), value) } + +// For an outgoing message, returns the port on which replies to the receiver will arrive. For an incoming message, returns the port the receiver did arrive on. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsportmessage/1413908-receiveport?language=objc +func (p_ PortMessage) ReceivePort() Port { + rv := objc.Call[Port](p_, objc.Sel("receivePort")) + return rv +} diff --git a/macos/foundation/positional_specifier.gen.go b/macos/foundation/positional_specifier.gen.go index 585a2308..a2bd2533 100644 --- a/macos/foundation/positional_specifier.gen.go +++ b/macos/foundation/positional_specifier.gen.go @@ -18,14 +18,14 @@ type _PositionalSpecifierClass struct { // An interface definition for the [PositionalSpecifier] class. type IPositionalSpecifier interface { objc.IObject - Evaluate() SetInsertionClassDescription(classDescription IScriptClassDescription) + Evaluate() ObjectSpecifier() ScriptObjectSpecifier InsertionContainer() objc.Object - InsertionReplaces() bool - InsertionKey() string InsertionIndex() int Position() InsertionPosition + InsertionReplaces() bool + InsertionKey() string } // A specifier for an insertion point in a container relative to another object in the container. [Full Topic] @@ -75,13 +75,6 @@ func (p_ PositionalSpecifier) Init() PositionalSpecifier { return rv } -// Causes the receiver to evaluate its position. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1417035-evaluate?language=objc -func (p_ PositionalSpecifier) Evaluate() { - objc.Call[objc.Void](p_, objc.Sel("evaluate")) -} - // Sets the class description for the object or objects to be inserted. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1414707-setinsertionclassdescription?language=objc @@ -89,6 +82,13 @@ func (p_ PositionalSpecifier) SetInsertionClassDescription(classDescription IScr objc.Call[objc.Void](p_, objc.Sel("setInsertionClassDescription:"), classDescription) } +// Causes the receiver to evaluate its position. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1417035-evaluate?language=objc +func (p_ PositionalSpecifier) Evaluate() { + objc.Call[objc.Void](p_, objc.Sel("evaluate")) +} + // Returns the object specifier specified at initialization time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1412839-objectspecifier?language=objc @@ -105,22 +105,6 @@ func (p_ PositionalSpecifier) InsertionContainer() objc.Object { return rv } -// Returns a Boolean value that indicates whether evaluation has been successful and the object to be inserted should actually replace the keyed, indexed object in the insertion container. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1411646-insertionreplaces?language=objc -func (p_ PositionalSpecifier) InsertionReplaces() bool { - rv := objc.Call[bool](p_, objc.Sel("insertionReplaces")) - return rv -} - -// Returns the key that identifies the relationship into which the new or copied object or objects should be inserted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1414059-insertionkey?language=objc -func (p_ PositionalSpecifier) InsertionKey() string { - rv := objc.Call[string](p_, objc.Sel("insertionKey")) - return rv -} - // Returns an insertion index that indicates where the new or copied object or objects should be placed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1414703-insertionindex?language=objc @@ -136,3 +120,19 @@ func (p_ PositionalSpecifier) Position() InsertionPosition { rv := objc.Call[InsertionPosition](p_, objc.Sel("position")) return rv } + +// Returns a Boolean value that indicates whether evaluation has been successful and the object to be inserted should actually replace the keyed, indexed object in the insertion container. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1411646-insertionreplaces?language=objc +func (p_ PositionalSpecifier) InsertionReplaces() bool { + rv := objc.Call[bool](p_, objc.Sel("insertionReplaces")) + return rv +} + +// Returns the key that identifies the relationship into which the new or copied object or objects should be inserted. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1414059-insertionkey?language=objc +func (p_ PositionalSpecifier) InsertionKey() string { + rv := objc.Call[string](p_, objc.Sel("insertionKey")) + return rv +} diff --git a/macos/foundation/predicate.gen.go b/macos/foundation/predicate.gen.go index 85e402ea..ecb95eab 100644 --- a/macos/foundation/predicate.gen.go +++ b/macos/foundation/predicate.gen.go @@ -18,9 +18,8 @@ type _PredicateClass struct { // An interface definition for the [Predicate] class. type IPredicate interface { objc.IObject - EvaluateWithObject(object objc.IObject) bool AllowEvaluation() - EvaluateWithObjectSubstitutionVariables(object objc.IObject, bindings map[string]objc.IObject) bool + EvaluateWithObject(object objc.IObject) bool PredicateFormat() string } @@ -71,29 +70,6 @@ func (p_ Predicate) Init() Predicate { return rv } -// Creates and returns a new predicate formed by creating a new string with a specified format and parsing the result. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1587997-predicatewithformat?language=objc -func (pc _PredicateClass) PredicateWithFormat(predicateFormat string, args ...any) Predicate { - rv := objc.Call[Predicate](pc, objc.Sel("predicateWithFormat:"), append([]any{predicateFormat}, args...)...) - return rv -} - -// Creates and returns a new predicate formed by creating a new string with a specified format and parsing the result. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1587997-predicatewithformat?language=objc -func Predicate_PredicateWithFormat(predicateFormat string, args ...any) Predicate { - return PredicateClass.PredicateWithFormat(predicateFormat, args...) -} - -// Returns a Boolean value that indicates whether the specified object matches the conditions that the predicate specifies. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1417924-evaluatewithobject?language=objc -func (p_ Predicate) EvaluateWithObject(object objc.IObject) bool { - rv := objc.Call[bool](p_, objc.Sel("evaluateWithObject:"), object) - return rv -} - // Creates a predicate that evaluates using a specified block object and bindings dictionary. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1416182-predicatewithblock?language=objc @@ -109,19 +85,11 @@ func Predicate_PredicateWithBlock(block func(evaluatedObject objc.Object, bindin return PredicateClass.PredicateWithBlock(block) } -// Creates a predicate with a metadata query string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1417831-predicatefrommetadataquerystring?language=objc -func (pc _PredicateClass) PredicateFromMetadataQueryString(queryString string) Predicate { - rv := objc.Call[Predicate](pc, objc.Sel("predicateFromMetadataQueryString:"), queryString) - return rv -} - -// Creates a predicate with a metadata query string. [Full Topic] +// Forces a securely decoded predicate to allow evaluation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1417831-predicatefrommetadataquerystring?language=objc -func Predicate_PredicateFromMetadataQueryString(queryString string) Predicate { - return PredicateClass.PredicateFromMetadataQueryString(queryString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1416310-allowevaluation?language=objc +func (p_ Predicate) AllowEvaluation() { + objc.Call[objc.Void](p_, objc.Sel("allowEvaluation")) } // Creates and returns a predicate that always evaluates to a specified Boolean value. [Full Topic] @@ -139,34 +107,27 @@ func Predicate_PredicateWithValue(value bool) Predicate { return PredicateClass.PredicateWithValue(value) } -// Forces a securely decoded predicate to allow evaluation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1416310-allowevaluation?language=objc -func (p_ Predicate) AllowEvaluation() { - objc.Call[objc.Void](p_, objc.Sel("allowEvaluation")) -} - -// Returns a Boolean value that indicates whether the specified object matches the conditions that the predicate specifies after substituting in the values from a specified variables dictionary. [Full Topic] +// Returns a Boolean value that indicates whether the specified object matches the conditions that the predicate specifies. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1407759-evaluatewithobject?language=objc -func (p_ Predicate) EvaluateWithObjectSubstitutionVariables(object objc.IObject, bindings map[string]objc.IObject) bool { - rv := objc.Call[bool](p_, objc.Sel("evaluateWithObject:substitutionVariables:"), object, bindings) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1417924-evaluatewithobject?language=objc +func (p_ Predicate) EvaluateWithObject(object objc.IObject) bool { + rv := objc.Call[bool](p_, objc.Sel("evaluateWithObject:"), object) return rv } -// Creates a predicate by substituting the values in a specified array into a format string and parsing the result. [Full Topic] +// Creates a predicate with a metadata query string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1410334-predicatewithformat?language=objc -func (pc _PredicateClass) PredicateWithFormatArgumentArray(predicateFormat string, arguments []objc.IObject) Predicate { - rv := objc.Call[Predicate](pc, objc.Sel("predicateWithFormat:argumentArray:"), predicateFormat, arguments) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1417831-predicatefrommetadataquerystring?language=objc +func (pc _PredicateClass) PredicateFromMetadataQueryString(queryString string) Predicate { + rv := objc.Call[Predicate](pc, objc.Sel("predicateFromMetadataQueryString:"), queryString) return rv } -// Creates a predicate by substituting the values in a specified array into a format string and parsing the result. [Full Topic] +// Creates a predicate with a metadata query string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1410334-predicatewithformat?language=objc -func Predicate_PredicateWithFormatArgumentArray(predicateFormat string, arguments []objc.IObject) Predicate { - return PredicateClass.PredicateWithFormatArgumentArray(predicateFormat, arguments) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1417831-predicatefrommetadataquerystring?language=objc +func Predicate_PredicateFromMetadataQueryString(queryString string) Predicate { + return PredicateClass.PredicateFromMetadataQueryString(queryString) } // The predicate's format string. [Full Topic] diff --git a/macos/foundation/presentation_intent.gen.go b/macos/foundation/presentation_intent.gen.go index aa90c40b..3cc3d197 100644 --- a/macos/foundation/presentation_intent.gen.go +++ b/macos/foundation/presentation_intent.gen.go @@ -19,17 +19,17 @@ type _PresentationIntentClass struct { type IPresentationIntent interface { objc.IObject IsEquivalentToPresentationIntent(other IPresentationIntent) bool - LanguageHint() string - Row() int + IntentKind() PresentationIntentKind + Ordinal() int IndentationLevel() int ColumnCount() int - IntentKind() PresentationIntentKind - ColumnAlignments() []Number + Column() int HeaderLevel() int Identity() int + Row() int + ColumnAlignments() []Number + LanguageHint() string ParentIntent() PresentationIntent - Ordinal() int - Column() int } // The intended presentation for blocks of text, like paragraphs, lists, code blocsk, and parts of tables. [Full Topic] @@ -67,47 +67,32 @@ func (p_ PresentationIntent) Init() PresentationIntent { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793748-orderedlistintentwithidentity?language=objc -func (pc _PresentationIntentClass) OrderedListIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - rv := objc.Call[PresentationIntent](pc, objc.Sel("orderedListIntentWithIdentity:nestedInsideIntent:"), identity, parent) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793748-orderedlistintentwithidentity?language=objc -func PresentationIntent_OrderedListIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - return PresentationIntentClass.OrderedListIntentWithIdentityNestedInsideIntent(identity, parent) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793747-listitemintentwithidentity?language=objc -func (pc _PresentationIntentClass) ListItemIntentWithIdentityOrdinalNestedInsideIntent(identity int, ordinal int, parent IPresentationIntent) PresentationIntent { - rv := objc.Call[PresentationIntent](pc, objc.Sel("listItemIntentWithIdentity:ordinal:nestedInsideIntent:"), identity, ordinal, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793753-tablecellintentwithidentity?language=objc +func (pc _PresentationIntentClass) TableCellIntentWithIdentityColumnNestedInsideIntent(identity int, column int, parent IPresentationIntent) PresentationIntent { + rv := objc.Call[PresentationIntent](pc, objc.Sel("tableCellIntentWithIdentity:column:nestedInsideIntent:"), identity, column, parent) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793747-listitemintentwithidentity?language=objc -func PresentationIntent_ListItemIntentWithIdentityOrdinalNestedInsideIntent(identity int, ordinal int, parent IPresentationIntent) PresentationIntent { - return PresentationIntentClass.ListItemIntentWithIdentityOrdinalNestedInsideIntent(identity, ordinal, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793753-tablecellintentwithidentity?language=objc +func PresentationIntent_TableCellIntentWithIdentityColumnNestedInsideIntent(identity int, column int, parent IPresentationIntent) PresentationIntent { + return PresentationIntentClass.TableCellIntentWithIdentityColumnNestedInsideIntent(identity, column, parent) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793753-tablecellintentwithidentity?language=objc -func (pc _PresentationIntentClass) TableCellIntentWithIdentityColumnNestedInsideIntent(identity int, column int, parent IPresentationIntent) PresentationIntent { - rv := objc.Call[PresentationIntent](pc, objc.Sel("tableCellIntentWithIdentity:column:nestedInsideIntent:"), identity, column, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793755-tableintentwithidentity?language=objc +func (pc _PresentationIntentClass) TableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent(identity int, columnCount int, alignments []INumber, parent IPresentationIntent) PresentationIntent { + rv := objc.Call[PresentationIntent](pc, objc.Sel("tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:"), identity, columnCount, alignments, parent) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793753-tablecellintentwithidentity?language=objc -func PresentationIntent_TableCellIntentWithIdentityColumnNestedInsideIntent(identity int, column int, parent IPresentationIntent) PresentationIntent { - return PresentationIntentClass.TableCellIntentWithIdentityColumnNestedInsideIntent(identity, column, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793755-tableintentwithidentity?language=objc +func PresentationIntent_TableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent(identity int, columnCount int, alignments []INumber, parent IPresentationIntent) PresentationIntent { + return PresentationIntentClass.TableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent(identity, columnCount, alignments, parent) } // [Full Topic] @@ -127,47 +112,47 @@ func PresentationIntent_CodeBlockIntentWithIdentityLanguageHintNestedInsideInten // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793735-blockquoteintentwithidentity?language=objc -func (pc _PresentationIntentClass) BlockQuoteIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - rv := objc.Call[PresentationIntent](pc, objc.Sel("blockQuoteIntentWithIdentity:nestedInsideIntent:"), identity, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793754-tableheaderrowintentwithidentity?language=objc +func (pc _PresentationIntentClass) TableHeaderRowIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + rv := objc.Call[PresentationIntent](pc, objc.Sel("tableHeaderRowIntentWithIdentity:nestedInsideIntent:"), identity, parent) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793735-blockquoteintentwithidentity?language=objc -func PresentationIntent_BlockQuoteIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - return PresentationIntentClass.BlockQuoteIntentWithIdentityNestedInsideIntent(identity, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793754-tableheaderrowintentwithidentity?language=objc +func PresentationIntent_TableHeaderRowIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + return PresentationIntentClass.TableHeaderRowIntentWithIdentityNestedInsideIntent(identity, parent) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793758-unorderedlistintentwithidentity?language=objc -func (pc _PresentationIntentClass) UnorderedListIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - rv := objc.Call[PresentationIntent](pc, objc.Sel("unorderedListIntentWithIdentity:nestedInsideIntent:"), identity, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793747-listitemintentwithidentity?language=objc +func (pc _PresentationIntentClass) ListItemIntentWithIdentityOrdinalNestedInsideIntent(identity int, ordinal int, parent IPresentationIntent) PresentationIntent { + rv := objc.Call[PresentationIntent](pc, objc.Sel("listItemIntentWithIdentity:ordinal:nestedInsideIntent:"), identity, ordinal, parent) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793758-unorderedlistintentwithidentity?language=objc -func PresentationIntent_UnorderedListIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - return PresentationIntentClass.UnorderedListIntentWithIdentityNestedInsideIntent(identity, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793747-listitemintentwithidentity?language=objc +func PresentationIntent_ListItemIntentWithIdentityOrdinalNestedInsideIntent(identity int, ordinal int, parent IPresentationIntent) PresentationIntent { + return PresentationIntentClass.ListItemIntentWithIdentityOrdinalNestedInsideIntent(identity, ordinal, parent) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793755-tableintentwithidentity?language=objc -func (pc _PresentationIntentClass) TableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent(identity int, columnCount int, alignments []INumber, parent IPresentationIntent) PresentationIntent { - rv := objc.Call[PresentationIntent](pc, objc.Sel("tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:"), identity, columnCount, alignments, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793757-thematicbreakintentwithidentity?language=objc +func (pc _PresentationIntentClass) ThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + rv := objc.Call[PresentationIntent](pc, objc.Sel("thematicBreakIntentWithIdentity:nestedInsideIntent:"), identity, parent) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793755-tableintentwithidentity?language=objc -func PresentationIntent_TableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent(identity int, columnCount int, alignments []INumber, parent IPresentationIntent) PresentationIntent { - return PresentationIntentClass.TableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent(identity, columnCount, alignments, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793757-thematicbreakintentwithidentity?language=objc +func PresentationIntent_ThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + return PresentationIntentClass.ThematicBreakIntentWithIdentityNestedInsideIntent(identity, parent) } // [Full Topic] @@ -187,47 +172,40 @@ func PresentationIntent_ParagraphIntentWithIdentityNestedInsideIntent(identity i // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793740-headerintentwithidentity?language=objc -func (pc _PresentationIntentClass) HeaderIntentWithIdentityLevelNestedInsideIntent(identity int, level int, parent IPresentationIntent) PresentationIntent { - rv := objc.Call[PresentationIntent](pc, objc.Sel("headerIntentWithIdentity:level:nestedInsideIntent:"), identity, level, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793758-unorderedlistintentwithidentity?language=objc +func (pc _PresentationIntentClass) UnorderedListIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + rv := objc.Call[PresentationIntent](pc, objc.Sel("unorderedListIntentWithIdentity:nestedInsideIntent:"), identity, parent) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793740-headerintentwithidentity?language=objc -func PresentationIntent_HeaderIntentWithIdentityLevelNestedInsideIntent(identity int, level int, parent IPresentationIntent) PresentationIntent { - return PresentationIntentClass.HeaderIntentWithIdentityLevelNestedInsideIntent(identity, level, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793758-unorderedlistintentwithidentity?language=objc +func PresentationIntent_UnorderedListIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + return PresentationIntentClass.UnorderedListIntentWithIdentityNestedInsideIntent(identity, parent) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793754-tableheaderrowintentwithidentity?language=objc -func (pc _PresentationIntentClass) TableHeaderRowIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - rv := objc.Call[PresentationIntent](pc, objc.Sel("tableHeaderRowIntentWithIdentity:nestedInsideIntent:"), identity, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793745-isequivalenttopresentationintent?language=objc +func (p_ PresentationIntent) IsEquivalentToPresentationIntent(other IPresentationIntent) bool { + rv := objc.Call[bool](p_, objc.Sel("isEquivalentToPresentationIntent:"), other) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793754-tableheaderrowintentwithidentity?language=objc -func PresentationIntent_TableHeaderRowIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - return PresentationIntentClass.TableHeaderRowIntentWithIdentityNestedInsideIntent(identity, parent) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793757-thematicbreakintentwithidentity?language=objc -func (pc _PresentationIntentClass) ThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - rv := objc.Call[PresentationIntent](pc, objc.Sel("thematicBreakIntentWithIdentity:nestedInsideIntent:"), identity, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793735-blockquoteintentwithidentity?language=objc +func (pc _PresentationIntentClass) BlockQuoteIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + rv := objc.Call[PresentationIntent](pc, objc.Sel("blockQuoteIntentWithIdentity:nestedInsideIntent:"), identity, parent) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793757-thematicbreakintentwithidentity?language=objc -func PresentationIntent_ThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - return PresentationIntentClass.ThematicBreakIntentWithIdentityNestedInsideIntent(identity, parent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793735-blockquoteintentwithidentity?language=objc +func PresentationIntent_BlockQuoteIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + return PresentationIntentClass.BlockQuoteIntentWithIdentityNestedInsideIntent(identity, parent) } // [Full Topic] @@ -247,25 +225,47 @@ func PresentationIntent_TableRowIntentWithIdentityRowNestedInsideIntent(identity // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793745-isequivalenttopresentationintent?language=objc -func (p_ PresentationIntent) IsEquivalentToPresentationIntent(other IPresentationIntent) bool { - rv := objc.Call[bool](p_, objc.Sel("isEquivalentToPresentationIntent:"), other) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793740-headerintentwithidentity?language=objc +func (pc _PresentationIntentClass) HeaderIntentWithIdentityLevelNestedInsideIntent(identity int, level int, parent IPresentationIntent) PresentationIntent { + rv := objc.Call[PresentationIntent](pc, objc.Sel("headerIntentWithIdentity:level:nestedInsideIntent:"), identity, level, parent) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793746-languagehint?language=objc -func (p_ PresentationIntent) LanguageHint() string { - rv := objc.Call[string](p_, objc.Sel("languageHint")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793740-headerintentwithidentity?language=objc +func PresentationIntent_HeaderIntentWithIdentityLevelNestedInsideIntent(identity int, level int, parent IPresentationIntent) PresentationIntent { + return PresentationIntentClass.HeaderIntentWithIdentityLevelNestedInsideIntent(identity, level, parent) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793748-orderedlistintentwithidentity?language=objc +func (pc _PresentationIntentClass) OrderedListIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + rv := objc.Call[PresentationIntent](pc, objc.Sel("orderedListIntentWithIdentity:nestedInsideIntent:"), identity, parent) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793752-row?language=objc -func (p_ PresentationIntent) Row() int { - rv := objc.Call[int](p_, objc.Sel("row")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793748-orderedlistintentwithidentity?language=objc +func PresentationIntent_OrderedListIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + return PresentationIntentClass.OrderedListIntentWithIdentityNestedInsideIntent(identity, parent) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793744-intentkind?language=objc +func (p_ PresentationIntent) IntentKind() PresentationIntentKind { + rv := objc.Call[PresentationIntentKind](p_, objc.Sel("intentKind")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793749-ordinal?language=objc +func (p_ PresentationIntent) Ordinal() int { + rv := objc.Call[int](p_, objc.Sel("ordinal")) return rv } @@ -287,17 +287,9 @@ func (p_ PresentationIntent) ColumnCount() int { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793744-intentkind?language=objc -func (p_ PresentationIntent) IntentKind() PresentationIntentKind { - rv := objc.Call[PresentationIntentKind](p_, objc.Sel("intentKind")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793738-columnalignments?language=objc -func (p_ PresentationIntent) ColumnAlignments() []Number { - rv := objc.Call[[]Number](p_, objc.Sel("columnAlignments")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793737-column?language=objc +func (p_ PresentationIntent) Column() int { + rv := objc.Call[int](p_, objc.Sel("column")) return rv } @@ -319,24 +311,32 @@ func (p_ PresentationIntent) Identity() int { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793751-parentintent?language=objc -func (p_ PresentationIntent) ParentIntent() PresentationIntent { - rv := objc.Call[PresentationIntent](p_, objc.Sel("parentIntent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793752-row?language=objc +func (p_ PresentationIntent) Row() int { + rv := objc.Call[int](p_, objc.Sel("row")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793749-ordinal?language=objc -func (p_ PresentationIntent) Ordinal() int { - rv := objc.Call[int](p_, objc.Sel("ordinal")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793738-columnalignments?language=objc +func (p_ PresentationIntent) ColumnAlignments() []Number { + rv := objc.Call[[]Number](p_, objc.Sel("columnAlignments")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793737-column?language=objc -func (p_ PresentationIntent) Column() int { - rv := objc.Call[int](p_, objc.Sel("column")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793746-languagehint?language=objc +func (p_ PresentationIntent) LanguageHint() string { + rv := objc.Call[string](p_, objc.Sel("languageHint")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspresentationintent/3793751-parentintent?language=objc +func (p_ PresentationIntent) ParentIntent() PresentationIntent { + rv := objc.Call[PresentationIntent](p_, objc.Sel("parentIntent")) return rv } diff --git a/macos/foundation/process_info.gen.go b/macos/foundation/process_info.gen.go index 5ccafaf0..649b795e 100644 --- a/macos/foundation/process_info.gen.go +++ b/macos/foundation/process_info.gen.go @@ -18,35 +18,35 @@ type _ProcessInfoClass struct { // An interface definition for the [ProcessInfo] class. type IProcessInfo interface { objc.IObject - EnableSuddenTermination() - DisableSuddenTermination() - DisableAutomaticTermination(reason string) EndActivity(activity objc.IObject) - EnableAutomaticTermination(reason string) - IsOperatingSystemAtLeastVersion(version OperatingSystemVersion) bool BeginActivityWithOptionsReason(options ActivityOptions, reason string) objc.Object + DisableAutomaticTermination(reason string) + IsOperatingSystemAtLeastVersion(version OperatingSystemVersion) bool + EnableAutomaticTermination(reason string) PerformActivityWithOptionsReasonUsingBlock(options ActivityOptions, reason string, block func()) - UserName() string - OperatingSystemVersion() OperatingSystemVersion + EnableSuddenTermination() + DisableSuddenTermination() AutomaticTerminationSupportEnabled() bool SetAutomaticTerminationSupportEnabled(value bool) - IsLowPowerModeEnabled() bool Arguments() []string + OperatingSystemVersionString() string + ThermalState() ProcessInfoThermalState + IsMacCatalystApp() bool SystemUptime() TimeInterval - ProcessIdentifier() int IsiOSAppOnMac() bool - IsMacCatalystApp() bool - Environment() map[string]string ActiveProcessorCount() uint - HostName() string - GloballyUniqueString() string - ProcessorCount() uint - ThermalState() ProcessInfoThermalState - OperatingSystemVersionString() string - FullUserName() string ProcessName() string SetProcessName(value string) + OperatingSystemVersion() OperatingSystemVersion + UserName() string + IsLowPowerModeEnabled() bool PhysicalMemory() int64 + FullUserName() string + GloballyUniqueString() string + HostName() string + ProcessorCount() uint + ProcessIdentifier() int + Environment() map[string]string } // A collection of information about the current process. [Full Topic] @@ -82,18 +82,19 @@ func (p_ ProcessInfo) Init() ProcessInfo { return rv } -// Enables the application for quick killing using sudden termination. [Full Topic] +// Ends the given activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1409836-enablesuddentermination?language=objc -func (p_ ProcessInfo) EnableSuddenTermination() { - objc.Call[objc.Void](p_, objc.Sel("enableSuddenTermination")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1411321-endactivity?language=objc +func (p_ ProcessInfo) EndActivity(activity objc.IObject) { + objc.Call[objc.Void](p_, objc.Sel("endActivity:"), activity) } -// Disables the application for quickly killing using sudden termination. [Full Topic] +// Begin an activity using the given options and reason. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1412841-disablesuddentermination?language=objc -func (p_ ProcessInfo) DisableSuddenTermination() { - objc.Call[objc.Void](p_, objc.Sel("disableSuddenTermination")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1415995-beginactivitywithoptions?language=objc +func (p_ ProcessInfo) BeginActivityWithOptionsReason(options ActivityOptions, reason string) objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("beginActivityWithOptions:reason:"), options, reason) + return rv } // Disables automatic termination for the application. [Full Topic] @@ -103,20 +104,6 @@ func (p_ ProcessInfo) DisableAutomaticTermination(reason string) { objc.Call[objc.Void](p_, objc.Sel("disableAutomaticTermination:"), reason) } -// Ends the given activity. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1411321-endactivity?language=objc -func (p_ ProcessInfo) EndActivity(activity objc.IObject) { - objc.Call[objc.Void](p_, objc.Sel("endActivity:"), activity) -} - -// Enables automatic termination for the application. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1409422-enableautomatictermination?language=objc -func (p_ ProcessInfo) EnableAutomaticTermination(reason string) { - objc.Call[objc.Void](p_, objc.Sel("enableAutomaticTermination:"), reason) -} - // Returns a Boolean value indicating whether the version of the operating system on which the process is executing is the same or later than the given version. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1414876-isoperatingsystematleastversion?language=objc @@ -125,12 +112,11 @@ func (p_ ProcessInfo) IsOperatingSystemAtLeastVersion(version OperatingSystemVer return rv } -// Begin an activity using the given options and reason. [Full Topic] +// Enables automatic termination for the application. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1415995-beginactivitywithoptions?language=objc -func (p_ ProcessInfo) BeginActivityWithOptionsReason(options ActivityOptions, reason string) objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("beginActivityWithOptions:reason:"), options, reason) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1409422-enableautomatictermination?language=objc +func (p_ ProcessInfo) EnableAutomaticTermination(reason string) { + objc.Call[objc.Void](p_, objc.Sel("enableAutomaticTermination:"), reason) } // Synchronously perform an activity defined by a given block using the given options. [Full Topic] @@ -140,20 +126,18 @@ func (p_ ProcessInfo) PerformActivityWithOptionsReasonUsingBlock(options Activit objc.Call[objc.Void](p_, objc.Sel("performActivityWithOptions:reason:usingBlock:"), options, reason, block) } -// Returns the account name of the current user. [Full Topic] +// Enables the application for quick killing using sudden termination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1643193-username?language=objc -func (p_ ProcessInfo) UserName() string { - rv := objc.Call[string](p_, objc.Sel("userName")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1409836-enablesuddentermination?language=objc +func (p_ ProcessInfo) EnableSuddenTermination() { + objc.Call[objc.Void](p_, objc.Sel("enableSuddenTermination")) } -// The version of the operating system on which the process is executing. [Full Topic] +// Disables the application for quickly killing using sudden termination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1410906-operatingsystemversion?language=objc -func (p_ ProcessInfo) OperatingSystemVersion() OperatingSystemVersion { - rv := objc.Call[OperatingSystemVersion](p_, objc.Sel("operatingSystemVersion")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1412841-disablesuddentermination?language=objc +func (p_ ProcessInfo) DisableSuddenTermination() { + objc.Call[objc.Void](p_, objc.Sel("disableSuddenTermination")) } // A Boolean value indicating whether the app supports automatic termination. [Full Topic] @@ -171,14 +155,6 @@ func (p_ ProcessInfo) SetAutomaticTerminationSupportEnabled(value bool) { objc.Call[objc.Void](p_, objc.Sel("setAutomaticTerminationSupportEnabled:"), value) } -// A Boolean value that indicates the current state of Low Power Mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1617047-lowpowermodeenabled?language=objc -func (p_ ProcessInfo) IsLowPowerModeEnabled() bool { - rv := objc.Call[bool](p_, objc.Sel("isLowPowerModeEnabled")) - return rv -} - // Array of strings with the command-line arguments for the process. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1415596-arguments?language=objc @@ -187,27 +163,19 @@ func (p_ ProcessInfo) Arguments() []string { return rv } -// The amount of time the system has been awake since the last time it was restarted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1414553-systemuptime?language=objc -func (p_ ProcessInfo) SystemUptime() TimeInterval { - rv := objc.Call[TimeInterval](p_, objc.Sel("systemUptime")) - return rv -} - -// The identifier of the process (often called process ID). [Full Topic] +// A string containing the version of the operating system on which the process is executing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1415929-processidentifier?language=objc -func (p_ ProcessInfo) ProcessIdentifier() int { - rv := objc.Call[int](p_, objc.Sel("processIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1408730-operatingsystemversionstring?language=objc +func (p_ ProcessInfo) OperatingSystemVersionString() string { + rv := objc.Call[string](p_, objc.Sel("operatingSystemVersionString")) return rv } -// A Boolean value that indicates whether the process is an iPhone or iPad app running on a Mac. [Full Topic] +// The current thermal state of the system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/3608556-iosapponmac?language=objc -func (p_ ProcessInfo) IsiOSAppOnMac() bool { - rv := objc.Call[bool](p_, objc.Sel("isiOSAppOnMac")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1417480-thermalstate?language=objc +func (p_ ProcessInfo) ThermalState() ProcessInfoThermalState { + rv := objc.Call[ProcessInfoThermalState](p_, objc.Sel("thermalState")) return rv } @@ -219,11 +187,19 @@ func (p_ ProcessInfo) IsMacCatalystApp() bool { return rv } -// The variable names (keys) and their values in the environment from which the process was launched. [Full Topic] +// The amount of time the system has been awake since the last time it was restarted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1417911-environment?language=objc -func (p_ ProcessInfo) Environment() map[string]string { - rv := objc.Call[map[string]string](p_, objc.Sel("environment")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1414553-systemuptime?language=objc +func (p_ ProcessInfo) SystemUptime() TimeInterval { + rv := objc.Call[TimeInterval](p_, objc.Sel("systemUptime")) + return rv +} + +// A Boolean value that indicates whether the process is an iPhone or iPad app running on a Mac. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/3608556-iosapponmac?language=objc +func (p_ ProcessInfo) IsiOSAppOnMac() bool { + rv := objc.Call[bool](p_, objc.Sel("isiOSAppOnMac")) return rv } @@ -235,19 +211,26 @@ func (p_ ProcessInfo) ActiveProcessorCount() uint { return rv } -// The name of the host computer on which the process is executing. [Full Topic] +// The name of the process. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1417236-hostname?language=objc -func (p_ ProcessInfo) HostName() string { - rv := objc.Call[string](p_, objc.Sel("hostName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1416428-processname?language=objc +func (p_ ProcessInfo) ProcessName() string { + rv := objc.Call[string](p_, objc.Sel("processName")) return rv } -// Global unique identifier for the process. [Full Topic] +// The name of the process. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1416432-globallyuniquestring?language=objc -func (p_ ProcessInfo) GloballyUniqueString() string { - rv := objc.Call[string](p_, objc.Sel("globallyUniqueString")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1416428-processname?language=objc +func (p_ ProcessInfo) SetProcessName(value string) { + objc.Call[objc.Void](p_, objc.Sel("setProcessName:"), value) +} + +// The version of the operating system on which the process is executing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1410906-operatingsystemversion?language=objc +func (p_ ProcessInfo) OperatingSystemVersion() OperatingSystemVersion { + rv := objc.Call[OperatingSystemVersion](p_, objc.Sel("operatingSystemVersion")) return rv } @@ -266,27 +249,27 @@ func ProcessInfo_ProcessInfo() ProcessInfo { return ProcessInfoClass.ProcessInfo() } -// The number of processing cores available on the computer. [Full Topic] +// Returns the account name of the current user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1415622-processorcount?language=objc -func (p_ ProcessInfo) ProcessorCount() uint { - rv := objc.Call[uint](p_, objc.Sel("processorCount")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1643193-username?language=objc +func (p_ ProcessInfo) UserName() string { + rv := objc.Call[string](p_, objc.Sel("userName")) return rv } -// The current thermal state of the system. [Full Topic] +// A Boolean value that indicates the current state of Low Power Mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1417480-thermalstate?language=objc -func (p_ ProcessInfo) ThermalState() ProcessInfoThermalState { - rv := objc.Call[ProcessInfoThermalState](p_, objc.Sel("thermalState")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1617047-lowpowermodeenabled?language=objc +func (p_ ProcessInfo) IsLowPowerModeEnabled() bool { + rv := objc.Call[bool](p_, objc.Sel("isLowPowerModeEnabled")) return rv } -// A string containing the version of the operating system on which the process is executing. [Full Topic] +// The amount of physical memory on the computer in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1408730-operatingsystemversionstring?language=objc -func (p_ ProcessInfo) OperatingSystemVersionString() string { - rv := objc.Call[string](p_, objc.Sel("operatingSystemVersionString")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1408211-physicalmemory?language=objc +func (p_ ProcessInfo) PhysicalMemory() int64 { + rv := objc.Call[int64](p_, objc.Sel("physicalMemory")) return rv } @@ -298,25 +281,42 @@ func (p_ ProcessInfo) FullUserName() string { return rv } -// The name of the process. [Full Topic] +// Global unique identifier for the process. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1416428-processname?language=objc -func (p_ ProcessInfo) ProcessName() string { - rv := objc.Call[string](p_, objc.Sel("processName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1416432-globallyuniquestring?language=objc +func (p_ ProcessInfo) GloballyUniqueString() string { + rv := objc.Call[string](p_, objc.Sel("globallyUniqueString")) return rv } -// The name of the process. [Full Topic] +// The name of the host computer on which the process is executing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1416428-processname?language=objc -func (p_ ProcessInfo) SetProcessName(value string) { - objc.Call[objc.Void](p_, objc.Sel("setProcessName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1417236-hostname?language=objc +func (p_ ProcessInfo) HostName() string { + rv := objc.Call[string](p_, objc.Sel("hostName")) + return rv } -// The amount of physical memory on the computer in bytes. [Full Topic] +// The number of processing cores available on the computer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1408211-physicalmemory?language=objc -func (p_ ProcessInfo) PhysicalMemory() int64 { - rv := objc.Call[int64](p_, objc.Sel("physicalMemory")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1415622-processorcount?language=objc +func (p_ ProcessInfo) ProcessorCount() uint { + rv := objc.Call[uint](p_, objc.Sel("processorCount")) + return rv +} + +// The identifier of the process (often called process ID). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1415929-processidentifier?language=objc +func (p_ ProcessInfo) ProcessIdentifier() int { + rv := objc.Call[int](p_, objc.Sel("processIdentifier")) + return rv +} + +// The variable names (keys) and their values in the environment from which the process was launched. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/1417911-environment?language=objc +func (p_ ProcessInfo) Environment() map[string]string { + rv := objc.Call[map[string]string](p_, objc.Sel("environment")) return rv } diff --git a/macos/foundation/progress.gen.go b/macos/foundation/progress.gen.go index 0978bb6a..1dc9ee7b 100644 --- a/macos/foundation/progress.gen.go +++ b/macos/foundation/progress.gen.go @@ -18,55 +18,55 @@ type _ProgressClass struct { // An interface definition for the [Progress] class. type IProgress interface { objc.IObject - AddChildWithPendingUnitCount(child IProgress, inUnitCount int64) + Unpublish() BecomeCurrentWithPendingUnitCount(unitCount int64) Publish() - Pause() - PerformAsCurrentWithPendingUnitCountUsingBlock(unitCount int64, work func()) - Cancel() + AddChildWithPendingUnitCount(child IProgress, inUnitCount int64) ResignCurrent() - Resume() SetUserInfoObjectForKey(objectOrNil objc.IObject, key ProgressUserInfoKey) - Unpublish() + Pause() + Resume() + Cancel() + PerformAsCurrentWithPendingUnitCountUsingBlock(unitCount int64, work func()) + IsCancelled() bool + LocalizedAdditionalDescription() string + SetLocalizedAdditionalDescription(value string) + LocalizedDescription() string + SetLocalizedDescription(value string) + FileOperationKind() ProgressFileOperationKind + SetFileOperationKind(value ProgressFileOperationKind) + ResumingHandler() func() + SetResumingHandler(value func()) + EstimatedTimeRemaining() Number + SetEstimatedTimeRemaining(value INumber) FileTotalCount() Number SetFileTotalCount(value INumber) - Kind() ProgressKind - SetKind(value ProgressKind) + IsOld() bool FileURL() URL SetFileURL(value IURL) Throughput() Number SetThroughput(value INumber) - IsCancellable() bool - SetCancellable(value bool) - IsPaused() bool FractionCompleted() float64 TotalUnitCount() int64 SetTotalUnitCount(value int64) + UserInfo() map[ProgressUserInfoKey]objc.Object PausingHandler() func() SetPausingHandler(value func()) - EstimatedTimeRemaining() Number - SetEstimatedTimeRemaining(value INumber) + IsCancellable() bool + SetCancellable(value bool) CompletedUnitCount() int64 SetCompletedUnitCount(value int64) - IsOld() bool + FileCompletedCount() Number + SetFileCompletedCount(value INumber) + CancellationHandler() func() + SetCancellationHandler(value func()) + Kind() ProgressKind + SetKind(value ProgressKind) IsPausable() bool SetPausable(value bool) - FileOperationKind() ProgressFileOperationKind - SetFileOperationKind(value ProgressFileOperationKind) - IsIndeterminate() bool - LocalizedDescription() string - SetLocalizedDescription(value string) - LocalizedAdditionalDescription() string - SetLocalizedAdditionalDescription(value string) + IsPaused() bool IsFinished() bool - ResumingHandler() func() - SetResumingHandler(value func()) - UserInfo() map[ProgressUserInfoKey]objc.Object - CancellationHandler() func() - SetCancellationHandler(value func()) - IsCancelled() bool - FileCompletedCount() Number - SetFileCompletedCount(value INumber) + IsIndeterminate() bool } // An object that conveys ongoing progress to the user for a specified task. [Full Topic] @@ -116,25 +116,11 @@ func (p_ Progress) Init() Progress { return rv } -// Adds a process object as a suboperation of a progress tree. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1417260-addchild?language=objc -func (p_ Progress) AddChildWithPendingUnitCount(child IProgress, inUnitCount int64) { - objc.Call[objc.Void](p_, objc.Sel("addChild:withPendingUnitCount:"), child, inUnitCount) -} - -// Sets the progress object as the current object of the current thread, and assigns the amount of work for the next suboperation progress object to perform. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410103-becomecurrentwithpendingunitcoun?language=objc -func (p_ Progress) BecomeCurrentWithPendingUnitCount(unitCount int64) { - objc.Call[objc.Void](p_, objc.Sel("becomeCurrentWithPendingUnitCount:"), unitCount) -} - -// Publishes the progress object for other processes to observe it. [Full Topic] +// Removes a progress object from publication, making it unobservable by other processes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1416782-publish?language=objc -func (p_ Progress) Publish() { - objc.Call[objc.Void](p_, objc.Sel("publish")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1413268-unpublish?language=objc +func (p_ Progress) Unpublish() { + objc.Call[objc.Void](p_, objc.Sel("unpublish")) } // Returns the progress instance, if any. [Full Topic] @@ -152,6 +138,13 @@ func Progress_CurrentProgress() Progress { return ProgressClass.CurrentProgress() } +// Sets the progress object as the current object of the current thread, and assigns the amount of work for the next suboperation progress object to perform. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410103-becomecurrentwithpendingunitcoun?language=objc +func (p_ Progress) BecomeCurrentWithPendingUnitCount(unitCount int64) { + objc.Call[objc.Void](p_, objc.Sel("becomeCurrentWithPendingUnitCount:"), unitCount) +} + // Creates and returns a progress instance with the specified unit count that isn’t part of any existing progress tree. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410951-discreteprogresswithtotalunitcou?language=objc @@ -182,25 +175,47 @@ func Progress_ProgressWithTotalUnitCount(unitCount int64) Progress { return ProgressClass.ProgressWithTotalUnitCount(unitCount) } -// Pauses progress tracking. [Full Topic] +// Registers a file URL to hear about the progress of a file operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1412377-pause?language=objc -func (p_ Progress) Pause() { - objc.Call[objc.Void](p_, objc.Sel("pause")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1418475-addsubscriberforfileurl?language=objc +func (pc _ProgressClass) AddSubscriberForFileURLWithPublishingHandler(url IURL, publishingHandler ProgressPublishingHandler) objc.Object { + rv := objc.Call[objc.Object](pc, objc.Sel("addSubscriberForFileURL:withPublishingHandler:"), url, publishingHandler) + return rv } -// Retrieves the current thread’s progress object, executes the specified block, and increments the progress object by the specified units of work. [Full Topic] +// Registers a file URL to hear about the progress of a file operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2865587-performascurrentwithpendingunitc?language=objc -func (p_ Progress) PerformAsCurrentWithPendingUnitCountUsingBlock(unitCount int64, work func()) { - objc.Call[objc.Void](p_, objc.Sel("performAsCurrentWithPendingUnitCount:usingBlock:"), unitCount, work) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1418475-addsubscriberforfileurl?language=objc +func Progress_AddSubscriberForFileURLWithPublishingHandler(url IURL, publishingHandler ProgressPublishingHandler) objc.Object { + return ProgressClass.AddSubscriberForFileURLWithPublishingHandler(url, publishingHandler) } -// Cancels progress tracking. [Full Topic] +// Publishes the progress object for other processes to observe it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1413832-cancel?language=objc -func (p_ Progress) Cancel() { - objc.Call[objc.Void](p_, objc.Sel("cancel")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1416782-publish?language=objc +func (p_ Progress) Publish() { + objc.Call[objc.Void](p_, objc.Sel("publish")) +} + +// Removes a proxy progress object that the add subscriber method returns. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410457-removesubscriber?language=objc +func (pc _ProgressClass) RemoveSubscriber(subscriber objc.IObject) { + objc.Call[objc.Void](pc, objc.Sel("removeSubscriber:"), subscriber) +} + +// Removes a proxy progress object that the add subscriber method returns. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410457-removesubscriber?language=objc +func Progress_RemoveSubscriber(subscriber objc.IObject) { + ProgressClass.RemoveSubscriber(subscriber) +} + +// Adds a process object as a suboperation of a progress tree. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1417260-addchild?language=objc +func (p_ Progress) AddChildWithPendingUnitCount(child IProgress, inUnitCount int64) { + objc.Call[objc.Void](p_, objc.Sel("addChild:withPendingUnitCount:"), child, inUnitCount) } // Restores the previous progress object to become the current progress object on the thread. [Full Topic] @@ -210,6 +225,20 @@ func (p_ Progress) ResignCurrent() { objc.Call[objc.Void](p_, objc.Sel("resignCurrent")) } +// Sets a value in the user info dictionary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1407537-setuserinfoobject?language=objc +func (p_ Progress) SetUserInfoObjectForKey(objectOrNil objc.IObject, key ProgressUserInfoKey) { + objc.Call[objc.Void](p_, objc.Sel("setUserInfoObject:forKey:"), objectOrNil, key) +} + +// Pauses progress tracking. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1412377-pause?language=objc +func (p_ Progress) Pause() { + objc.Call[objc.Void](p_, objc.Sel("pause")) +} + // Resumes progress tracking. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1413616-resume?language=objc @@ -217,62 +246,101 @@ func (p_ Progress) Resume() { objc.Call[objc.Void](p_, objc.Sel("resume")) } -// Removes a proxy progress object that the add subscriber method returns. [Full Topic] +// Cancels progress tracking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410457-removesubscriber?language=objc -func (pc _ProgressClass) RemoveSubscriber(subscriber objc.IObject) { - objc.Call[objc.Void](pc, objc.Sel("removeSubscriber:"), subscriber) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1413832-cancel?language=objc +func (p_ Progress) Cancel() { + objc.Call[objc.Void](p_, objc.Sel("cancel")) } -// Removes a proxy progress object that the add subscriber method returns. [Full Topic] +// Retrieves the current thread’s progress object, executes the specified block, and increments the progress object by the specified units of work. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410457-removesubscriber?language=objc -func Progress_RemoveSubscriber(subscriber objc.IObject) { - ProgressClass.RemoveSubscriber(subscriber) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2865587-performascurrentwithpendingunitc?language=objc +func (p_ Progress) PerformAsCurrentWithPendingUnitCountUsingBlock(unitCount int64, work func()) { + objc.Call[objc.Void](p_, objc.Sel("performAsCurrentWithPendingUnitCount:usingBlock:"), unitCount, work) +} + +// A Boolean value that Indicates whether the receiver is tracking canceled work. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1414454-cancelled?language=objc +func (p_ Progress) IsCancelled() bool { + rv := objc.Call[bool](p_, objc.Sel("isCancelled")) + return rv } -// Creates a progress instance for the specified progress object with a unit count that’s a portion of the containing object’s total unit count. [Full Topic] +// A more specific localized description of tracked progress for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1409014-progresswithtotalunitcount?language=objc -func (pc _ProgressClass) ProgressWithTotalUnitCountParentPendingUnitCount(unitCount int64, parent IProgress, portionOfParentTotalUnitCount int64) Progress { - rv := objc.Call[Progress](pc, objc.Sel("progressWithTotalUnitCount:parent:pendingUnitCount:"), unitCount, parent, portionOfParentTotalUnitCount) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1412455-localizedadditionaldescription?language=objc +func (p_ Progress) LocalizedAdditionalDescription() string { + rv := objc.Call[string](p_, objc.Sel("localizedAdditionalDescription")) return rv } -// Creates a progress instance for the specified progress object with a unit count that’s a portion of the containing object’s total unit count. [Full Topic] +// A more specific localized description of tracked progress for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1409014-progresswithtotalunitcount?language=objc -func Progress_ProgressWithTotalUnitCountParentPendingUnitCount(unitCount int64, parent IProgress, portionOfParentTotalUnitCount int64) Progress { - return ProgressClass.ProgressWithTotalUnitCountParentPendingUnitCount(unitCount, parent, portionOfParentTotalUnitCount) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1412455-localizedadditionaldescription?language=objc +func (p_ Progress) SetLocalizedAdditionalDescription(value string) { + objc.Call[objc.Void](p_, objc.Sel("setLocalizedAdditionalDescription:"), value) } -// Sets a value in the user info dictionary. [Full Topic] +// A localized description of tracked progress for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1407537-setuserinfoobject?language=objc -func (p_ Progress) SetUserInfoObjectForKey(objectOrNil objc.IObject, key ProgressUserInfoKey) { - objc.Call[objc.Void](p_, objc.Sel("setUserInfoObject:forKey:"), objectOrNil, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1417251-localizeddescription?language=objc +func (p_ Progress) LocalizedDescription() string { + rv := objc.Call[string](p_, objc.Sel("localizedDescription")) + return rv } -// Removes a progress object from publication, making it unobservable by other processes. [Full Topic] +// A localized description of tracked progress for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1413268-unpublish?language=objc -func (p_ Progress) Unpublish() { - objc.Call[objc.Void](p_, objc.Sel("unpublish")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1417251-localizeddescription?language=objc +func (p_ Progress) SetLocalizedDescription(value string) { + objc.Call[objc.Void](p_, objc.Sel("setLocalizedDescription:"), value) } -// Registers a file URL to hear about the progress of a file operation. [Full Topic] +// The kind of file operation for the progress object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1418475-addsubscriberforfileurl?language=objc -func (pc _ProgressClass) AddSubscriberForFileURLWithPublishingHandler(url IURL, publishingHandler ProgressPublishingHandler) objc.Object { - rv := objc.Call[objc.Object](pc, objc.Sel("addSubscriberForFileURL:withPublishingHandler:"), url, publishingHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2865625-fileoperationkind?language=objc +func (p_ Progress) FileOperationKind() ProgressFileOperationKind { + rv := objc.Call[ProgressFileOperationKind](p_, objc.Sel("fileOperationKind")) return rv } -// Registers a file URL to hear about the progress of a file operation. [Full Topic] +// The kind of file operation for the progress object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1418475-addsubscriberforfileurl?language=objc -func Progress_AddSubscriberForFileURLWithPublishingHandler(url IURL, publishingHandler ProgressPublishingHandler) objc.Object { - return ProgressClass.AddSubscriberForFileURLWithPublishingHandler(url, publishingHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2865625-fileoperationkind?language=objc +func (p_ Progress) SetFileOperationKind(value ProgressFileOperationKind) { + objc.Call[objc.Void](p_, objc.Sel("setFileOperationKind:"), value) +} + +// The block to invoke when progress resumes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410158-resuminghandler?language=objc +func (p_ Progress) ResumingHandler() func() { + rv := objc.Call[func()](p_, objc.Sel("resumingHandler")) + return rv +} + +// The block to invoke when progress resumes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410158-resuminghandler?language=objc +func (p_ Progress) SetResumingHandler(value func()) { + objc.Call[objc.Void](p_, objc.Sel("setResumingHandler:"), value) +} + +// A value that indicates the estimated amount of time remaining to complete the progress. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2868041-estimatedtimeremaining?language=objc +func (p_ Progress) EstimatedTimeRemaining() Number { + rv := objc.Call[Number](p_, objc.Sel("estimatedTimeRemaining")) + return rv +} + +// A value that indicates the estimated amount of time remaining to complete the progress. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2868041-estimatedtimeremaining?language=objc +func (p_ Progress) SetEstimatedTimeRemaining(value INumber) { + objc.Call[objc.Void](p_, objc.Sel("setEstimatedTimeRemaining:"), value) } // The total number of files for a file progress object. [Full Topic] @@ -290,21 +358,14 @@ func (p_ Progress) SetFileTotalCount(value INumber) { objc.Call[objc.Void](p_, objc.Sel("setFileTotalCount:"), value) } -// An object that represents the kind of progress for the progress object. [Full Topic] +// A Boolean value that indicates when the observed progress object invokes the publish method before you subscribe to it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1416139-kind?language=objc -func (p_ Progress) Kind() ProgressKind { - rv := objc.Call[ProgressKind](p_, objc.Sel("kind")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1407931-old?language=objc +func (p_ Progress) IsOld() bool { + rv := objc.Call[bool](p_, objc.Sel("isOld")) return rv } -// An object that represents the kind of progress for the progress object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1416139-kind?language=objc -func (p_ Progress) SetKind(value ProgressKind) { - objc.Call[objc.Void](p_, objc.Sel("setKind:"), value) -} - // A URL that represents the file for the current progress object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2865663-fileurl?language=objc @@ -335,29 +396,6 @@ func (p_ Progress) SetThroughput(value INumber) { objc.Call[objc.Void](p_, objc.Sel("setThroughput:"), value) } -// A Boolean value that indicates whether the receiver is tracking work that you can cancel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1409348-cancellable?language=objc -func (p_ Progress) IsCancellable() bool { - rv := objc.Call[bool](p_, objc.Sel("isCancellable")) - return rv -} - -// A Boolean value that indicates whether the receiver is tracking work that you can cancel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1409348-cancellable?language=objc -func (p_ Progress) SetCancellable(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setCancellable:"), value) -} - -// A Boolean value that indicates whether the receiver is tracking paused work. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1415495-paused?language=objc -func (p_ Progress) IsPaused() bool { - rv := objc.Call[bool](p_, objc.Sel("isPaused")) - return rv -} - // The fraction of the overall work that the progress object completes, including work from its suboperations. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1408579-fractioncompleted?language=objc @@ -381,6 +419,14 @@ func (p_ Progress) SetTotalUnitCount(value int64) { objc.Call[objc.Void](p_, objc.Sel("setTotalUnitCount:"), value) } +// A dictionary of arbitrary values for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1413314-userinfo?language=objc +func (p_ Progress) UserInfo() map[ProgressUserInfoKey]objc.Object { + rv := objc.Call[map[ProgressUserInfoKey]objc.Object](p_, objc.Sel("userInfo")) + return rv +} + // The block to invoke when pausing progress. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1412873-pausinghandler?language=objc @@ -396,19 +442,19 @@ func (p_ Progress) SetPausingHandler(value func()) { objc.Call[objc.Void](p_, objc.Sel("setPausingHandler:"), value) } -// A value that indicates the estimated amount of time remaining to complete the progress. [Full Topic] +// A Boolean value that indicates whether the receiver is tracking work that you can cancel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2868041-estimatedtimeremaining?language=objc -func (p_ Progress) EstimatedTimeRemaining() Number { - rv := objc.Call[Number](p_, objc.Sel("estimatedTimeRemaining")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1409348-cancellable?language=objc +func (p_ Progress) IsCancellable() bool { + rv := objc.Call[bool](p_, objc.Sel("isCancellable")) return rv } -// A value that indicates the estimated amount of time remaining to complete the progress. [Full Topic] +// A Boolean value that indicates whether the receiver is tracking work that you can cancel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2868041-estimatedtimeremaining?language=objc -func (p_ Progress) SetEstimatedTimeRemaining(value INumber) { - objc.Call[objc.Void](p_, objc.Sel("setEstimatedTimeRemaining:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1409348-cancellable?language=objc +func (p_ Progress) SetCancellable(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setCancellable:"), value) } // The number of completed units of work for the current job. [Full Topic] @@ -426,80 +472,72 @@ func (p_ Progress) SetCompletedUnitCount(value int64) { objc.Call[objc.Void](p_, objc.Sel("setCompletedUnitCount:"), value) } -// A Boolean value that indicates when the observed progress object invokes the publish method before you subscribe to it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1407931-old?language=objc -func (p_ Progress) IsOld() bool { - rv := objc.Call[bool](p_, objc.Sel("isOld")) - return rv -} - -// A Boolean value that indicates whether the receiver is tracking work that you can pause. [Full Topic] +// The number of completed files for a file progress object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1417421-pausable?language=objc -func (p_ Progress) IsPausable() bool { - rv := objc.Call[bool](p_, objc.Sel("isPausable")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2868050-filecompletedcount?language=objc +func (p_ Progress) FileCompletedCount() Number { + rv := objc.Call[Number](p_, objc.Sel("fileCompletedCount")) return rv } -// A Boolean value that indicates whether the receiver is tracking work that you can pause. [Full Topic] +// The number of completed files for a file progress object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1417421-pausable?language=objc -func (p_ Progress) SetPausable(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setPausable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2868050-filecompletedcount?language=objc +func (p_ Progress) SetFileCompletedCount(value INumber) { + objc.Call[objc.Void](p_, objc.Sel("setFileCompletedCount:"), value) } -// The kind of file operation for the progress object. [Full Topic] +// The block to invoke when canceling progress. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2865625-fileoperationkind?language=objc -func (p_ Progress) FileOperationKind() ProgressFileOperationKind { - rv := objc.Call[ProgressFileOperationKind](p_, objc.Sel("fileOperationKind")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1408913-cancellationhandler?language=objc +func (p_ Progress) CancellationHandler() func() { + rv := objc.Call[func()](p_, objc.Sel("cancellationHandler")) return rv } -// The kind of file operation for the progress object. [Full Topic] +// The block to invoke when canceling progress. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2865625-fileoperationkind?language=objc -func (p_ Progress) SetFileOperationKind(value ProgressFileOperationKind) { - objc.Call[objc.Void](p_, objc.Sel("setFileOperationKind:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1408913-cancellationhandler?language=objc +func (p_ Progress) SetCancellationHandler(value func()) { + objc.Call[objc.Void](p_, objc.Sel("setCancellationHandler:"), value) } -// A Boolean value that indicates whether the tracked progress is indeterminate. [Full Topic] +// An object that represents the kind of progress for the progress object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1412871-indeterminate?language=objc -func (p_ Progress) IsIndeterminate() bool { - rv := objc.Call[bool](p_, objc.Sel("isIndeterminate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1416139-kind?language=objc +func (p_ Progress) Kind() ProgressKind { + rv := objc.Call[ProgressKind](p_, objc.Sel("kind")) return rv } -// A localized description of tracked progress for the receiver. [Full Topic] +// An object that represents the kind of progress for the progress object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1417251-localizeddescription?language=objc -func (p_ Progress) LocalizedDescription() string { - rv := objc.Call[string](p_, objc.Sel("localizedDescription")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1416139-kind?language=objc +func (p_ Progress) SetKind(value ProgressKind) { + objc.Call[objc.Void](p_, objc.Sel("setKind:"), value) } -// A localized description of tracked progress for the receiver. [Full Topic] +// A Boolean value that indicates whether the receiver is tracking work that you can pause. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1417251-localizeddescription?language=objc -func (p_ Progress) SetLocalizedDescription(value string) { - objc.Call[objc.Void](p_, objc.Sel("setLocalizedDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1417421-pausable?language=objc +func (p_ Progress) IsPausable() bool { + rv := objc.Call[bool](p_, objc.Sel("isPausable")) + return rv } -// A more specific localized description of tracked progress for the receiver. [Full Topic] +// A Boolean value that indicates whether the receiver is tracking work that you can pause. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1412455-localizedadditionaldescription?language=objc -func (p_ Progress) LocalizedAdditionalDescription() string { - rv := objc.Call[string](p_, objc.Sel("localizedAdditionalDescription")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1417421-pausable?language=objc +func (p_ Progress) SetPausable(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setPausable:"), value) } -// A more specific localized description of tracked progress for the receiver. [Full Topic] +// A Boolean value that indicates whether the receiver is tracking paused work. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1412455-localizedadditionaldescription?language=objc -func (p_ Progress) SetLocalizedAdditionalDescription(value string) { - objc.Call[objc.Void](p_, objc.Sel("setLocalizedAdditionalDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1415495-paused?language=objc +func (p_ Progress) IsPaused() bool { + rv := objc.Call[bool](p_, objc.Sel("isPaused")) + return rv } // A Boolean value that indicates the progress object is complete. [Full Topic] @@ -510,63 +548,10 @@ func (p_ Progress) IsFinished() bool { return rv } -// The block to invoke when progress resumes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410158-resuminghandler?language=objc -func (p_ Progress) ResumingHandler() func() { - rv := objc.Call[func()](p_, objc.Sel("resumingHandler")) - return rv -} - -// The block to invoke when progress resumes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1410158-resuminghandler?language=objc -func (p_ Progress) SetResumingHandler(value func()) { - objc.Call[objc.Void](p_, objc.Sel("setResumingHandler:"), value) -} - -// A dictionary of arbitrary values for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1413314-userinfo?language=objc -func (p_ Progress) UserInfo() map[ProgressUserInfoKey]objc.Object { - rv := objc.Call[map[ProgressUserInfoKey]objc.Object](p_, objc.Sel("userInfo")) - return rv -} - -// The block to invoke when canceling progress. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1408913-cancellationhandler?language=objc -func (p_ Progress) CancellationHandler() func() { - rv := objc.Call[func()](p_, objc.Sel("cancellationHandler")) - return rv -} - -// The block to invoke when canceling progress. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1408913-cancellationhandler?language=objc -func (p_ Progress) SetCancellationHandler(value func()) { - objc.Call[objc.Void](p_, objc.Sel("setCancellationHandler:"), value) -} - -// A Boolean value that Indicates whether the receiver is tracking canceled work. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1414454-cancelled?language=objc -func (p_ Progress) IsCancelled() bool { - rv := objc.Call[bool](p_, objc.Sel("isCancelled")) - return rv -} - -// The number of completed files for a file progress object. [Full Topic] +// A Boolean value that indicates whether the tracked progress is indeterminate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2868050-filecompletedcount?language=objc -func (p_ Progress) FileCompletedCount() Number { - rv := objc.Call[Number](p_, objc.Sel("fileCompletedCount")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1412871-indeterminate?language=objc +func (p_ Progress) IsIndeterminate() bool { + rv := objc.Call[bool](p_, objc.Sel("isIndeterminate")) return rv } - -// The number of completed files for a file progress object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2868050-filecompletedcount?language=objc -func (p_ Progress) SetFileCompletedCount(value INumber) { - objc.Call[objc.Void](p_, objc.Sel("setFileCompletedCount:"), value) -} diff --git a/macos/foundation/property_list_serialization.gen.go b/macos/foundation/property_list_serialization.gen.go index 76856f42..bb690de4 100644 --- a/macos/foundation/property_list_serialization.gen.go +++ b/macos/foundation/property_list_serialization.gen.go @@ -53,36 +53,6 @@ func (p_ PropertyListSerialization) Init() PropertyListSerialization { return rv } -// Creates and returns a property list from the specified data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1409678-propertylistwithdata?language=objc -func (pc _PropertyListSerializationClass) PropertyListWithDataOptionsFormatError(data []byte, opt PropertyListReadOptions, format *PropertyListFormat, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](pc, objc.Sel("propertyListWithData:options:format:error:"), data, opt, format, error) - return rv -} - -// Creates and returns a property list from the specified data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1409678-propertylistwithdata?language=objc -func PropertyListSerialization_PropertyListWithDataOptionsFormatError(data []byte, opt PropertyListReadOptions, format *PropertyListFormat, error unsafe.Pointer) objc.Object { - return PropertyListSerializationClass.PropertyListWithDataOptionsFormatError(data, opt, format, error) -} - -// Writes a property list to the specified stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1407862-writepropertylist?language=objc -func (pc _PropertyListSerializationClass) WritePropertyListToStreamFormatOptionsError(plist objc.IObject, stream IOutputStream, format PropertyListFormat, opt PropertyListWriteOptions, error unsafe.Pointer) int { - rv := objc.Call[int](pc, objc.Sel("writePropertyList:toStream:format:options:error:"), plist, stream, format, opt, error) - return rv -} - -// Writes a property list to the specified stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1407862-writepropertylist?language=objc -func PropertyListSerialization_WritePropertyListToStreamFormatOptionsError(plist objc.IObject, stream IOutputStream, format PropertyListFormat, opt PropertyListWriteOptions, error unsafe.Pointer) int { - return PropertyListSerializationClass.WritePropertyListToStreamFormatOptionsError(plist, stream, format, opt, error) -} - // Returns an NSData object containing a given property list in a specified format. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1418309-datawithpropertylist?language=objc @@ -98,6 +68,21 @@ func PropertyListSerialization_DataWithPropertyListFormatOptionsError(plist objc return PropertyListSerializationClass.DataWithPropertyListFormatOptionsError(plist, format, opt, error) } +// Returns a Boolean value that indicates whether a given property list is valid for a given format. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1411020-propertylist?language=objc +func (pc _PropertyListSerializationClass) PropertyListIsValidForFormat(plist objc.IObject, format PropertyListFormat) bool { + rv := objc.Call[bool](pc, objc.Sel("propertyList:isValidForFormat:"), plist, format) + return rv +} + +// Returns a Boolean value that indicates whether a given property list is valid for a given format. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1411020-propertylist?language=objc +func PropertyListSerialization_PropertyListIsValidForFormat(plist objc.IObject, format PropertyListFormat) bool { + return PropertyListSerializationClass.PropertyListIsValidForFormat(plist, format) +} + // Creates and returns a property list by reading from the specified stream. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1415468-propertylistwithstream?language=objc @@ -113,17 +98,32 @@ func PropertyListSerialization_PropertyListWithStreamOptionsFormatError(stream I return PropertyListSerializationClass.PropertyListWithStreamOptionsFormatError(stream, opt, format, error) } -// Returns a Boolean value that indicates whether a given property list is valid for a given format. [Full Topic] +// Creates and returns a property list from the specified data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1411020-propertylist?language=objc -func (pc _PropertyListSerializationClass) PropertyListIsValidForFormat(plist objc.IObject, format PropertyListFormat) bool { - rv := objc.Call[bool](pc, objc.Sel("propertyList:isValidForFormat:"), plist, format) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1409678-propertylistwithdata?language=objc +func (pc _PropertyListSerializationClass) PropertyListWithDataOptionsFormatError(data []byte, opt PropertyListReadOptions, format *PropertyListFormat, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](pc, objc.Sel("propertyListWithData:options:format:error:"), data, opt, format, error) return rv } -// Returns a Boolean value that indicates whether a given property list is valid for a given format. [Full Topic] +// Creates and returns a property list from the specified data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1411020-propertylist?language=objc -func PropertyListSerialization_PropertyListIsValidForFormat(plist objc.IObject, format PropertyListFormat) bool { - return PropertyListSerializationClass.PropertyListIsValidForFormat(plist, format) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1409678-propertylistwithdata?language=objc +func PropertyListSerialization_PropertyListWithDataOptionsFormatError(data []byte, opt PropertyListReadOptions, format *PropertyListFormat, error unsafe.Pointer) objc.Object { + return PropertyListSerializationClass.PropertyListWithDataOptionsFormatError(data, opt, format, error) +} + +// Writes a property list to the specified stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1407862-writepropertylist?language=objc +func (pc _PropertyListSerializationClass) WritePropertyListToStreamFormatOptionsError(plist objc.IObject, stream IOutputStream, format PropertyListFormat, opt PropertyListWriteOptions, error unsafe.Pointer) int { + rv := objc.Call[int](pc, objc.Sel("writePropertyList:toStream:format:options:error:"), plist, stream, format, opt, error) + return rv +} + +// Writes a property list to the specified stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspropertylistserialization/1407862-writepropertylist?language=objc +func PropertyListSerialization_WritePropertyListToStreamFormatOptionsError(plist objc.IObject, stream IOutputStream, format PropertyListFormat, opt PropertyListWriteOptions, error unsafe.Pointer) int { + return PropertyListSerializationClass.WritePropertyListToStreamFormatOptionsError(plist, stream, format, opt, error) } diff --git a/macos/foundation/purgeable_data.gen.go b/macos/foundation/purgeable_data.gen.go index d15985af..53d1d284 100644 --- a/macos/foundation/purgeable_data.gen.go +++ b/macos/foundation/purgeable_data.gen.go @@ -53,32 +53,6 @@ func (p_ PurgeableData) Init() PurgeableData { return rv } -func (p_ PurgeableData) InitWithCapacity(capacity uint) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithCapacity:"), capacity) - return rv -} - -// Returns an initialized mutable data object capable of holding the specified number of bytes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1413350-initwithcapacity?language=objc -func NewPurgeableDataWithCapacity(capacity uint) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithCapacity(capacity) - instance.Autorelease() - return instance -} - -func (pc _PurgeableDataClass) DataWithCapacity(aNumItems uint) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithCapacity:"), aNumItems) - return rv -} - -// Creates and returns a mutable data object capable of holding the specified number of bytes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1547236-datawithcapacity?language=objc -func PurgeableData_DataWithCapacity(aNumItems uint) PurgeableData { - return PurgeableDataClass.DataWithCapacity(aNumItems) -} - func (p_ PurgeableData) InitWithLength(length uint) PurgeableData { rv := objc.Call[PurgeableData](p_, objc.Sel("initWithLength:"), length) return rv @@ -105,92 +79,82 @@ func PurgeableData_DataWithLength(length uint) PurgeableData { return PurgeableDataClass.DataWithLength(length) } -func (pc _PurgeableDataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) - return rv -} - -// Creates a data object by reading every byte from the file at a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547244-datawithcontentsoffile?language=objc -func PurgeableData_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { - return PurgeableDataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) -} - -func (p_ PurgeableData) InitWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBytesNoCopy:length:"), bytes, length) +func (p_ PurgeableData) InitWithCapacity(capacity uint) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithCapacity:"), capacity) return rv } -// Initializes a data object filled with a given number of bytes of data from a given buffer. [Full Topic] +// Returns an initialized mutable data object capable of holding the specified number of bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1409454-initwithbytesnocopy?language=objc -func NewPurgeableDataWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithBytesNoCopyLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1413350-initwithcapacity?language=objc +func NewPurgeableDataWithCapacity(capacity uint) PurgeableData { + instance := PurgeableDataClass.Alloc().InitWithCapacity(capacity) instance.Autorelease() return instance } -func (pc _PurgeableDataClass) DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithBytesNoCopy:length:freeWhenDone:"), bytes, length, b) +func (pc _PurgeableDataClass) DataWithCapacity(aNumItems uint) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithCapacity:"), aNumItems) return rv } -// Creates a data object that holds a given number of bytes from a given buffer. [Full Topic] +// Creates and returns a mutable data object capable of holding the specified number of bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547240-datawithbytesnocopy?language=objc -func PurgeableData_DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) PurgeableData { - return PurgeableDataClass.DataWithBytesNoCopyLengthFreeWhenDone(bytes, length, b) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/1547236-datawithcapacity?language=objc +func PurgeableData_DataWithCapacity(aNumItems uint) PurgeableData { + return PurgeableDataClass.DataWithCapacity(aNumItems) } -func (pc _PurgeableDataClass) DataWithData(data []byte) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithData:"), data) +func (p_ PurgeableData) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) return rv } -// Creates a data object containing the contents of another data object. [Full Topic] +// Initializes a data object with the content of the file at a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547230-datawithdata?language=objc -func PurgeableData_DataWithData(data []byte) PurgeableData { - return PurgeableDataClass.DataWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1411145-initwithcontentsoffile?language=objc +func NewPurgeableDataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { + instance := PurgeableDataClass.Alloc().InitWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) + instance.Autorelease() + return instance } -func (pc _PurgeableDataClass) DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfURL:options:error:"), url, readOptionsMask, errorPtr) +func (p_ PurgeableData) CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, error) return rv } -// Creates a data object containing the data from the location specified by a given URL. [Full Topic] +// Returns a new data object by compressing the data object’s bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547238-datawithcontentsofurl?language=objc -func PurgeableData_DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { - return PurgeableDataClass.DataWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc +func PurgeableData_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) PurgeableData { + instance := PurgeableDataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) + instance.Autorelease() + return instance } -func (p_ PurgeableData) InitWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBase64EncodedString:options:"), base64String, options) +func (pc _PurgeableDataClass) DataWithContentsOfURL(url IURL) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfURL:"), url) return rv } -// Initializes a data object with the given Base64 encoded string. [Full Topic] +// Creates a data object containing the data from the location specified by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1410081-initwithbase64encodedstring?language=objc -func NewPurgeableDataWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithBase64EncodedStringOptions(base64String, options) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547245-datawithcontentsofurl?language=objc +func PurgeableData_DataWithContentsOfURL(url IURL) PurgeableData { + return PurgeableDataClass.DataWithContentsOfURL(url) } -func (p_ PurgeableData) InitWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBytes:length:"), bytes, length) +func (p_ PurgeableData) InitWithData(data []byte) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithData:"), data) return rv } -// Initializes a data object filled with a given number of bytes copied from a given buffer. [Full Topic] +// Initializes a data object with the contents of another data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1412793-initwithbytes?language=objc -func NewPurgeableDataWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithBytesLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417055-initwithdata?language=objc +func NewPurgeableDataWithData(data []byte) PurgeableData { + instance := PurgeableDataClass.Alloc().InitWithData(data) instance.Autorelease() return instance } @@ -209,70 +173,40 @@ func NewPurgeableDataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, len return instance } -func (p_ PurgeableData) InitWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfURL:options:error:"), url, readOptionsMask, errorPtr) - return rv -} - -// Initializes a data object with the data from the location specified by a given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1407864-initwithcontentsofurl?language=objc -func NewPurgeableDataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) - instance.Autorelease() - return instance -} - -func (p_ PurgeableData) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) - return rv -} - -// Initializes a data object with the content of the file at a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1411145-initwithcontentsoffile?language=objc -func NewPurgeableDataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) - instance.Autorelease() - return instance -} - -func (pc _PurgeableDataClass) DataWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithBytesNoCopy:length:"), bytes, length) +func (pc _PurgeableDataClass) DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithBytesNoCopy:length:freeWhenDone:"), bytes, length, b) return rv } // Creates a data object that holds a given number of bytes from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547229-datawithbytesnocopy?language=objc -func PurgeableData_DataWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) PurgeableData { - return PurgeableDataClass.DataWithBytesNoCopyLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547240-datawithbytesnocopy?language=objc +func PurgeableData_DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) PurgeableData { + return PurgeableDataClass.DataWithBytesNoCopyLengthFreeWhenDone(bytes, length, b) } -func (p_ PurgeableData) InitWithContentsOfURL(url IURL) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfURL:"), url) +func (pc _PurgeableDataClass) DataWithData(data []byte) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithData:"), data) return rv } -// Initializes a data object with the data from the location specified by a given URL. [Full Topic] +// Creates a data object containing the contents of another data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1413892-initwithcontentsofurl?language=objc -func NewPurgeableDataWithContentsOfURL(url IURL) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithContentsOfURL(url) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547230-datawithdata?language=objc +func PurgeableData_DataWithData(data []byte) PurgeableData { + return PurgeableDataClass.DataWithData(data) } -func (pc _PurgeableDataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithBytes:length:"), bytes, length) +func (pc _PurgeableDataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, errorPtr) return rv } -// Creates a data object containing a given number of bytes copied from a given buffer. [Full Topic] +// Creates a data object by reading every byte from the file at a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547231-datawithbytes?language=objc -func PurgeableData_DataWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { - return PurgeableDataClass.DataWithBytesLength(bytes, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547244-datawithcontentsoffile?language=objc +func PurgeableData_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr unsafe.Pointer) PurgeableData { + return PurgeableDataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) } func (pc _PurgeableDataClass) Data() PurgeableData { @@ -287,110 +221,84 @@ func PurgeableData_Data() PurgeableData { return PurgeableDataClass.Data() } -func (p_ PurgeableData) InitWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBase64EncodedData:options:"), base64Data, options) +func (p_ PurgeableData) InitWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBytes:length:"), bytes, length) return rv } -// Initializes a data object with the given Base64 encoded data. [Full Topic] +// Initializes a data object filled with a given number of bytes copied from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417833-initwithbase64encodeddata?language=objc -func NewPurgeableDataWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithBase64EncodedDataOptions(base64Data, options) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1412793-initwithbytes?language=objc +func NewPurgeableDataWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { + instance := PurgeableDataClass.Alloc().InitWithBytesLength(bytes, length) instance.Autorelease() return instance } -func (p_ PurgeableData) InitWithContentsOfFile(path string) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfFile:"), path) +func (p_ PurgeableData) InitWithContentsOfURL(url IURL) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfURL:"), url) return rv } -// Initializes a data object with the content of the file at a given path. [Full Topic] +// Initializes a data object with the data from the location specified by a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1408672-initwithcontentsoffile?language=objc -func NewPurgeableDataWithContentsOfFile(path string) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithContentsOfFile(path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1413892-initwithcontentsofurl?language=objc +func NewPurgeableDataWithContentsOfURL(url IURL) PurgeableData { + instance := PurgeableDataClass.Alloc().InitWithContentsOfURL(url) instance.Autorelease() return instance } -func (p_ PurgeableData) InitWithBytesNoCopyLengthDeallocator(bytes unsafe.Pointer, length uint, deallocator func(bytes unsafe.Pointer, length uint)) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBytesNoCopy:length:deallocator:"), bytes, length, deallocator) +func (p_ PurgeableData) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, error) return rv } -// Initializes a data object filled with a given number of bytes of data from a given buffer, with a custom deallocator block. [Full Topic] +// Returns a new data object by decompressing data object’s bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417337-initwithbytesnocopy?language=objc -func NewPurgeableDataWithBytesNoCopyLengthDeallocator(bytes unsafe.Pointer, length uint, deallocator func(bytes unsafe.Pointer, length uint)) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithBytesNoCopyLengthDeallocator(bytes, length, deallocator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174961-decompresseddatausingalgorithm?language=objc +func PurgeableData_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) PurgeableData { + instance := PurgeableDataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) instance.Autorelease() return instance } -func (pc _PurgeableDataClass) DataWithContentsOfFile(path string) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfFile:"), path) - return rv -} - -// Creates a data object by reading every byte from the file at a given path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547226-datawithcontentsoffile?language=objc -func PurgeableData_DataWithContentsOfFile(path string) PurgeableData { - return PurgeableDataClass.DataWithContentsOfFile(path) -} - -func (p_ PurgeableData) InitWithData(data []byte) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithData:"), data) +func (p_ PurgeableData) InitWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBase64EncodedData:options:"), base64Data, options) return rv } -// Initializes a data object with the contents of another data object. [Full Topic] +// Initializes a data object with the given Base64 encoded data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417055-initwithdata?language=objc -func NewPurgeableDataWithData(data []byte) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1417833-initwithbase64encodeddata?language=objc +func NewPurgeableDataWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) PurgeableData { + instance := PurgeableDataClass.Alloc().InitWithBase64EncodedDataOptions(base64Data, options) instance.Autorelease() return instance } -func (pc _PurgeableDataClass) DataWithContentsOfURL(url IURL) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfURL:"), url) - return rv -} - -// Creates a data object containing the data from the location specified by a given URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547245-datawithcontentsofurl?language=objc -func PurgeableData_DataWithContentsOfURL(url IURL) PurgeableData { - return PurgeableDataClass.DataWithContentsOfURL(url) -} - -func (p_ PurgeableData) CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, error) +func (p_ PurgeableData) InitWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBase64EncodedString:options:"), base64String, options) return rv } -// Returns a new data object by compressing the data object’s bytes. [Full Topic] +// Initializes a data object with the given Base64 encoded string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc -func PurgeableData_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) PurgeableData { - instance := PurgeableDataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1410081-initwithbase64encodedstring?language=objc +func NewPurgeableDataWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) PurgeableData { + instance := PurgeableDataClass.Alloc().InitWithBase64EncodedStringOptions(base64String, options) instance.Autorelease() return instance } -func (p_ PurgeableData) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, error) +func (pc _PurgeableDataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithBytes:length:"), bytes, length) return rv } -// Returns a new data object by decompressing data object’s bytes. [Full Topic] +// Creates a data object containing a given number of bytes copied from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174961-decompresseddatausingalgorithm?language=objc -func PurgeableData_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error unsafe.Pointer) PurgeableData { - instance := PurgeableDataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547231-datawithbytes?language=objc +func PurgeableData_DataWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { + return PurgeableDataClass.DataWithBytesLength(bytes, length) } diff --git a/macos/foundation/regular_expression.gen.go b/macos/foundation/regular_expression.gen.go index 08ff092b..1862c4ff 100644 --- a/macos/foundation/regular_expression.gen.go +++ b/macos/foundation/regular_expression.gen.go @@ -18,17 +18,17 @@ type _RegularExpressionClass struct { // An interface definition for the [RegularExpression] class. type IRegularExpression interface { objc.IObject - MatchesInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) []TextCheckingResult - EnumerateMatchesInStringOptionsRangeUsingBlock(string_ string, options MatchingOptions, range_ Range, block func(result TextCheckingResult, flags MatchingFlags, stop *bool)) - StringByReplacingMatchesInStringOptionsRangeWithTemplate(string_ string, options MatchingOptions, range_ Range, templ string) string ReplaceMatchesInStringOptionsRangeWithTemplate(string_ IMutableString, options MatchingOptions, range_ Range, templ string) uint - FirstMatchInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) TextCheckingResult - NumberOfMatchesInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) uint RangeOfFirstMatchInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) Range ReplacementStringForResultInStringOffsetTemplate(result ITextCheckingResult, string_ string, offset int, templ string) string - Pattern() string + FirstMatchInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) TextCheckingResult + NumberOfMatchesInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) uint + StringByReplacingMatchesInStringOptionsRangeWithTemplate(string_ string, options MatchingOptions, range_ Range, templ string) string + MatchesInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) []TextCheckingResult + EnumerateMatchesInStringOptionsRangeUsingBlock(string_ string, options MatchingOptions, range_ Range, block func(result TextCheckingResult, flags MatchingFlags, stop *bool)) Options() RegularExpressionOptions NumberOfCaptureGroups() uint + Pattern() string } // An immutable representation of a compiled regular expression that you apply to Unicode strings. [Full Topic] @@ -78,34 +78,42 @@ func (r_ RegularExpression) Init() RegularExpression { return rv } -// Returns an array containing all the matches of the regular expression in the string. [Full Topic] +// Replaces regular expression matches within the mutable string using the template string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1412446-matchesinstring?language=objc -func (r_ RegularExpression) MatchesInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) []TextCheckingResult { - rv := objc.Call[[]TextCheckingResult](r_, objc.Sel("matchesInString:options:range:"), string_, options, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1411139-replacematchesinstring?language=objc +func (r_ RegularExpression) ReplaceMatchesInStringOptionsRangeWithTemplate(string_ IMutableString, options MatchingOptions, range_ Range, templ string) uint { + rv := objc.Call[uint](r_, objc.Sel("replaceMatchesInString:options:range:withTemplate:"), string_, options, range_, templ) return rv } -// Enumerates the string allowing the Block to handle each regular expression match. [Full Topic] +// Returns the range of the first match of the regular expression within the specified range of the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1409687-enumeratematchesinstring?language=objc -func (r_ RegularExpression) EnumerateMatchesInStringOptionsRangeUsingBlock(string_ string, options MatchingOptions, range_ Range, block func(result TextCheckingResult, flags MatchingFlags, stop *bool)) { - objc.Call[objc.Void](r_, objc.Sel("enumerateMatchesInString:options:range:usingBlock:"), string_, options, range_, block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1411510-rangeoffirstmatchinstring?language=objc +func (r_ RegularExpression) RangeOfFirstMatchInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) Range { + rv := objc.Call[Range](r_, objc.Sel("rangeOfFirstMatchInString:options:range:"), string_, options, range_) + return rv } -// Returns a new string containing matching regular expressions replaced with the template string. [Full Topic] +// Returns a string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1413740-stringbyreplacingmatchesinstring?language=objc -func (r_ RegularExpression) StringByReplacingMatchesInStringOptionsRangeWithTemplate(string_ string, options MatchingOptions, range_ Range, templ string) string { - rv := objc.Call[string](r_, objc.Sel("stringByReplacingMatchesInString:options:range:withTemplate:"), string_, options, range_, templ) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1408386-escapedpatternforstring?language=objc +func (rc _RegularExpressionClass) EscapedPatternForString(string_ string) string { + rv := objc.Call[string](rc, objc.Sel("escapedPatternForString:"), string_) return rv } -// Replaces regular expression matches within the mutable string using the template string. [Full Topic] +// Returns a string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1411139-replacematchesinstring?language=objc -func (r_ RegularExpression) ReplaceMatchesInStringOptionsRangeWithTemplate(string_ IMutableString, options MatchingOptions, range_ Range, templ string) uint { - rv := objc.Call[uint](r_, objc.Sel("replaceMatchesInString:options:range:withTemplate:"), string_, options, range_, templ) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1408386-escapedpatternforstring?language=objc +func RegularExpression_EscapedPatternForString(string_ string) string { + return RegularExpressionClass.EscapedPatternForString(string_) +} + +// Used to perform template substitution for a single result for clients implementing their own replace functionality. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1414859-replacementstringforresult?language=objc +func (r_ RegularExpression) ReplacementStringForResultInStringOffsetTemplate(result ITextCheckingResult, string_ string, offset int, templ string) string { + rv := objc.Call[string](r_, objc.Sel("replacementStringForResult:inString:offset:template:"), result, string_, offset, templ) return rv } @@ -125,6 +133,14 @@ func (r_ RegularExpression) NumberOfMatchesInStringOptionsRange(string_ string, return rv } +// Returns a new string containing matching regular expressions replaced with the template string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1413740-stringbyreplacingmatchesinstring?language=objc +func (r_ RegularExpression) StringByReplacingMatchesInStringOptionsRangeWithTemplate(string_ string, options MatchingOptions, range_ Range, templ string) string { + rv := objc.Call[string](r_, objc.Sel("stringByReplacingMatchesInString:options:range:withTemplate:"), string_, options, range_, templ) + return rv +} + // Returns a template string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1410085-escapedtemplateforstring?language=objc @@ -140,37 +156,14 @@ func RegularExpression_EscapedTemplateForString(string_ string) string { return RegularExpressionClass.EscapedTemplateForString(string_) } -// Returns the range of the first match of the regular expression within the specified range of the string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1411510-rangeoffirstmatchinstring?language=objc -func (r_ RegularExpression) RangeOfFirstMatchInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) Range { - rv := objc.Call[Range](r_, objc.Sel("rangeOfFirstMatchInString:options:range:"), string_, options, range_) - return rv -} - -// Used to perform template substitution for a single result for clients implementing their own replace functionality. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1414859-replacementstringforresult?language=objc -func (r_ RegularExpression) ReplacementStringForResultInStringOffsetTemplate(result ITextCheckingResult, string_ string, offset int, templ string) string { - rv := objc.Call[string](r_, objc.Sel("replacementStringForResult:inString:offset:template:"), result, string_, offset, templ) - return rv -} - -// Returns a string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters. [Full Topic] +// Returns an array containing all the matches of the regular expression in the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1408386-escapedpatternforstring?language=objc -func (rc _RegularExpressionClass) EscapedPatternForString(string_ string) string { - rv := objc.Call[string](rc, objc.Sel("escapedPatternForString:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1412446-matchesinstring?language=objc +func (r_ RegularExpression) MatchesInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) []TextCheckingResult { + rv := objc.Call[[]TextCheckingResult](r_, objc.Sel("matchesInString:options:range:"), string_, options, range_) return rv } -// Returns a string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1408386-escapedpatternforstring?language=objc -func RegularExpression_EscapedPatternForString(string_ string) string { - return RegularExpressionClass.EscapedPatternForString(string_) -} - // Creates an NSRegularExpression instance with the specified regular expression pattern and options. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1557374-regularexpressionwithpattern?language=objc @@ -186,12 +179,11 @@ func RegularExpression_RegularExpressionWithPatternOptionsError(pattern string, return RegularExpressionClass.RegularExpressionWithPatternOptionsError(pattern, options, error) } -// Returns the regular expression pattern. [Full Topic] +// Enumerates the string allowing the Block to handle each regular expression match. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1414932-pattern?language=objc -func (r_ RegularExpression) Pattern() string { - rv := objc.Call[string](r_, objc.Sel("pattern")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1409687-enumeratematchesinstring?language=objc +func (r_ RegularExpression) EnumerateMatchesInStringOptionsRangeUsingBlock(string_ string, options MatchingOptions, range_ Range, block func(result TextCheckingResult, flags MatchingFlags, stop *bool)) { + objc.Call[objc.Void](r_, objc.Sel("enumerateMatchesInString:options:range:usingBlock:"), string_, options, range_, block) } // Returns the options used when the regular expression option was created. [Full Topic] @@ -209,3 +201,11 @@ func (r_ RegularExpression) NumberOfCaptureGroups() uint { rv := objc.Call[uint](r_, objc.Sel("numberOfCaptureGroups")) return rv } + +// Returns the regular expression pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpression/1414932-pattern?language=objc +func (r_ RegularExpression) Pattern() string { + rv := objc.Call[string](r_, objc.Sel("pattern")) + return rv +} diff --git a/macos/foundation/relative_date_time_formatter.gen.go b/macos/foundation/relative_date_time_formatter.gen.go index bee1f3ca..a2a69a14 100644 --- a/macos/foundation/relative_date_time_formatter.gen.go +++ b/macos/foundation/relative_date_time_formatter.gen.go @@ -18,19 +18,19 @@ type _RelativeDateTimeFormatterClass struct { // An interface definition for the [RelativeDateTimeFormatter] class. type IRelativeDateTimeFormatter interface { IFormatter - LocalizedStringForDateRelativeToDate(date IDate, referenceDate IDate) string - LocalizedStringFromDateComponents(dateComponents IDateComponents) string LocalizedStringFromTimeInterval(timeInterval TimeInterval) string - FormattingContext() FormattingContext - SetFormattingContext(value FormattingContext) - DateTimeStyle() RelativeDateTimeFormatterStyle - SetDateTimeStyle(value RelativeDateTimeFormatterStyle) - Calendar() Calendar - SetCalendar(value ICalendar) + LocalizedStringFromDateComponents(dateComponents IDateComponents) string + LocalizedStringForDateRelativeToDate(date IDate, referenceDate IDate) string UnitsStyle() RelativeDateTimeFormatterUnitsStyle SetUnitsStyle(value RelativeDateTimeFormatterUnitsStyle) Locale() Locale SetLocale(value ILocale) + DateTimeStyle() RelativeDateTimeFormatterStyle + SetDateTimeStyle(value RelativeDateTimeFormatterStyle) + FormattingContext() FormattingContext + SetFormattingContext(value FormattingContext) + Calendar() Calendar + SetCalendar(value ICalendar) } // A formatter that creates locale-aware string representations of a relative date or time. [Full Topic] @@ -66,11 +66,11 @@ func (r_ RelativeDateTimeFormatter) Init() RelativeDateTimeFormatter { return rv } -// Formats the date interval from the reference date to the specified date using the formatter’s calendar. [Full Topic] +// Formats the specified time interval using the formatter’s calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130998-localizedstringfordate?language=objc -func (r_ RelativeDateTimeFormatter) LocalizedStringForDateRelativeToDate(date IDate, referenceDate IDate) string { - rv := objc.Call[string](r_, objc.Sel("localizedStringForDate:relativeToDate:"), date, referenceDate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3131000-localizedstringfromtimeinterval?language=objc +func (r_ RelativeDateTimeFormatter) LocalizedStringFromTimeInterval(timeInterval TimeInterval) string { + rv := objc.Call[string](r_, objc.Sel("localizedStringFromTimeInterval:"), timeInterval) return rv } @@ -82,27 +82,42 @@ func (r_ RelativeDateTimeFormatter) LocalizedStringFromDateComponents(dateCompon return rv } -// Formats the specified time interval using the formatter’s calendar. [Full Topic] +// Formats the date interval from the reference date to the specified date using the formatter’s calendar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3131000-localizedstringfromtimeinterval?language=objc -func (r_ RelativeDateTimeFormatter) LocalizedStringFromTimeInterval(timeInterval TimeInterval) string { - rv := objc.Call[string](r_, objc.Sel("localizedStringFromTimeInterval:"), timeInterval) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130998-localizedstringfordate?language=objc +func (r_ RelativeDateTimeFormatter) LocalizedStringForDateRelativeToDate(date IDate, referenceDate IDate) string { + rv := objc.Call[string](r_, objc.Sel("localizedStringForDate:relativeToDate:"), date, referenceDate) return rv } -// A description of where the formatted string will appear, allowing the formatter to capitalize the output appropriately. [Full Topic] +// The style to use when formatting the quantity or the name of the unit, such as “1 day ago” or “one day ago”. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130996-formattingcontext?language=objc -func (r_ RelativeDateTimeFormatter) FormattingContext() FormattingContext { - rv := objc.Call[FormattingContext](r_, objc.Sel("formattingContext")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3131002-unitsstyle?language=objc +func (r_ RelativeDateTimeFormatter) UnitsStyle() RelativeDateTimeFormatterUnitsStyle { + rv := objc.Call[RelativeDateTimeFormatterUnitsStyle](r_, objc.Sel("unitsStyle")) return rv } -// A description of where the formatted string will appear, allowing the formatter to capitalize the output appropriately. [Full Topic] +// The style to use when formatting the quantity or the name of the unit, such as “1 day ago” or “one day ago”. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130996-formattingcontext?language=objc -func (r_ RelativeDateTimeFormatter) SetFormattingContext(value FormattingContext) { - objc.Call[objc.Void](r_, objc.Sel("setFormattingContext:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3131002-unitsstyle?language=objc +func (r_ RelativeDateTimeFormatter) SetUnitsStyle(value RelativeDateTimeFormatterUnitsStyle) { + objc.Call[objc.Void](r_, objc.Sel("setUnitsStyle:"), value) +} + +// The locale to use when formatting the date. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130997-locale?language=objc +func (r_ RelativeDateTimeFormatter) Locale() Locale { + rv := objc.Call[Locale](r_, objc.Sel("locale")) + return rv +} + +// The locale to use when formatting the date. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130997-locale?language=objc +func (r_ RelativeDateTimeFormatter) SetLocale(value ILocale) { + objc.Call[objc.Void](r_, objc.Sel("setLocale:"), value) } // The style to use when describing a relative date, for example “yesterday” or “1 day ago”. [Full Topic] @@ -120,6 +135,21 @@ func (r_ RelativeDateTimeFormatter) SetDateTimeStyle(value RelativeDateTimeForma objc.Call[objc.Void](r_, objc.Sel("setDateTimeStyle:"), value) } +// A description of where the formatted string will appear, allowing the formatter to capitalize the output appropriately. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130996-formattingcontext?language=objc +func (r_ RelativeDateTimeFormatter) FormattingContext() FormattingContext { + rv := objc.Call[FormattingContext](r_, objc.Sel("formattingContext")) + return rv +} + +// A description of where the formatted string will appear, allowing the formatter to capitalize the output appropriately. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130996-formattingcontext?language=objc +func (r_ RelativeDateTimeFormatter) SetFormattingContext(value FormattingContext) { + objc.Call[objc.Void](r_, objc.Sel("setFormattingContext:"), value) +} + // The calendar to use for formatting values that don’t have an inherent calendar of their own. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130994-calendar?language=objc @@ -134,33 +164,3 @@ func (r_ RelativeDateTimeFormatter) Calendar() Calendar { func (r_ RelativeDateTimeFormatter) SetCalendar(value ICalendar) { objc.Call[objc.Void](r_, objc.Sel("setCalendar:"), value) } - -// The style to use when formatting the quantity or the name of the unit, such as “1 day ago” or “one day ago”. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3131002-unitsstyle?language=objc -func (r_ RelativeDateTimeFormatter) UnitsStyle() RelativeDateTimeFormatterUnitsStyle { - rv := objc.Call[RelativeDateTimeFormatterUnitsStyle](r_, objc.Sel("unitsStyle")) - return rv -} - -// The style to use when formatting the quantity or the name of the unit, such as “1 day ago” or “one day ago”. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3131002-unitsstyle?language=objc -func (r_ RelativeDateTimeFormatter) SetUnitsStyle(value RelativeDateTimeFormatterUnitsStyle) { - objc.Call[objc.Void](r_, objc.Sel("setUnitsStyle:"), value) -} - -// The locale to use when formatting the date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130997-locale?language=objc -func (r_ RelativeDateTimeFormatter) Locale() Locale { - rv := objc.Call[Locale](r_, objc.Sel("locale")) - return rv -} - -// The locale to use when formatting the date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter/3130997-locale?language=objc -func (r_ RelativeDateTimeFormatter) SetLocale(value ILocale) { - objc.Call[objc.Void](r_, objc.Sel("setLocale:"), value) -} diff --git a/macos/foundation/relative_specifier.gen.go b/macos/foundation/relative_specifier.gen.go index 11ba28f3..76c65bb9 100644 --- a/macos/foundation/relative_specifier.gen.go +++ b/macos/foundation/relative_specifier.gen.go @@ -18,10 +18,10 @@ type _RelativeSpecifierClass struct { // An interface definition for the [RelativeSpecifier] class. type IRelativeSpecifier interface { IScriptObjectSpecifier - BaseSpecifier() ScriptObjectSpecifier - SetBaseSpecifier(value IScriptObjectSpecifier) RelativePosition() RelativePosition SetRelativePosition(value RelativePosition) + BaseSpecifier() ScriptObjectSpecifier + SetBaseSpecifier(value IScriptObjectSpecifier) } // A specifier that indicates an object in a collection by its position relative to another object. [Full Topic] @@ -42,7 +42,7 @@ func (r_ RelativeSpecifier) InitWithContainerClassDescriptionContainerSpecifierK return rv } -// Invokes the super class’s [foundation/nsscriptobjectspecifier/initwithcontainerclassdescriptio] method and initializes the relative position and base specifier to relPos and baseSpecifier. [Full Topic] +// Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key: method and initializes the relative position and base specifier to relPos and baseSpecifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativespecifier/1409205-initwithcontainerclassdescriptio?language=objc func NewRelativeSpecifierWithContainerClassDescriptionContainerSpecifierKeyRelativePositionBaseSpecifier(classDesc IScriptClassDescription, container IScriptObjectSpecifier, property string, relPos RelativePosition, baseSpecifier IScriptObjectSpecifier) RelativeSpecifier { @@ -99,21 +99,6 @@ func NewRelativeSpecifierWithContainerSpecifierKey(container IScriptObjectSpecif return instance } -// Sets the specifier for the base object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativespecifier/1409071-basespecifier?language=objc -func (r_ RelativeSpecifier) BaseSpecifier() ScriptObjectSpecifier { - rv := objc.Call[ScriptObjectSpecifier](r_, objc.Sel("baseSpecifier")) - return rv -} - -// Sets the specifier for the base object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativespecifier/1409071-basespecifier?language=objc -func (r_ RelativeSpecifier) SetBaseSpecifier(value IScriptObjectSpecifier) { - objc.Call[objc.Void](r_, objc.Sel("setBaseSpecifier:"), value) -} - // Sets the relative position encapsulated by the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativespecifier/1416001-relativeposition?language=objc @@ -128,3 +113,18 @@ func (r_ RelativeSpecifier) RelativePosition() RelativePosition { func (r_ RelativeSpecifier) SetRelativePosition(value RelativePosition) { objc.Call[objc.Void](r_, objc.Sel("setRelativePosition:"), value) } + +// Sets the specifier for the base object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativespecifier/1409071-basespecifier?language=objc +func (r_ RelativeSpecifier) BaseSpecifier() ScriptObjectSpecifier { + rv := objc.Call[ScriptObjectSpecifier](r_, objc.Sel("baseSpecifier")) + return rv +} + +// Sets the specifier for the base object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativespecifier/1409071-basespecifier?language=objc +func (r_ RelativeSpecifier) SetBaseSpecifier(value IScriptObjectSpecifier) { + objc.Call[objc.Void](r_, objc.Sel("setBaseSpecifier:"), value) +} diff --git a/macos/foundation/run_loop.gen.go b/macos/foundation/run_loop.gen.go index 497330e7..2d77461a 100644 --- a/macos/foundation/run_loop.gen.go +++ b/macos/foundation/run_loop.gen.go @@ -19,20 +19,20 @@ type _RunLoopClass struct { // An interface definition for the [RunLoop] class. type IRunLoop interface { objc.IObject + AcceptInputForModeBeforeDate(mode RunLoopMode, limitDate IDate) CancelPerformSelectorTargetArgument(aSelector objc.Selector, target objc.IObject, arg objc.IObject) - LimitDateForMode(mode RunLoopMode) Date - Run() - AddPortForMode(aPort IPort, mode RunLoopMode) - AddTimerForMode(timer ITimer, mode RunLoopMode) - PerformSelectorTargetArgumentOrderModes(aSelector objc.Selector, target objc.IObject, arg objc.IObject, order uint, modes []RunLoopMode) + GetCFRunLoop() corefoundation.RunLoopRef RunModeBeforeDate(mode RunLoopMode, limitDate IDate) bool - PerformInModesBlock(modes []RunLoopMode, block func()) CancelPerformSelectorsWithTarget(target objc.IObject) - AcceptInputForModeBeforeDate(mode RunLoopMode, limitDate IDate) - RemovePortForMode(aPort IPort, mode RunLoopMode) - GetCFRunLoop() corefoundation.RunLoopRef + AddTimerForMode(timer ITimer, mode RunLoopMode) + PerformInModesBlock(modes []RunLoopMode, block func()) + AddPortForMode(aPort IPort, mode RunLoopMode) PerformBlock(block func()) + LimitDateForMode(mode RunLoopMode) Date + PerformSelectorTargetArgumentOrderModes(aSelector objc.Selector, target objc.IObject, arg objc.IObject, order uint, modes []RunLoopMode) RunUntilDate(limitDate IDate) + Run() + RemovePortForMode(aPort IPort, mode RunLoopMode) CurrentMode() RunLoopMode } @@ -69,6 +69,13 @@ func (r_ RunLoop) Init() RunLoop { return rv } +// Runs the loop once or until the specified date, accepting input only for the specified mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1417143-acceptinputformode?language=objc +func (r_ RunLoop) AcceptInputForModeBeforeDate(mode RunLoopMode, limitDate IDate) { + objc.Call[objc.Void](r_, objc.Sel("acceptInputForMode:beforeDate:"), mode, limitDate) +} + // Cancels the sending of a previously scheduled message. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1418077-cancelperformselector?language=objc @@ -76,26 +83,27 @@ func (r_ RunLoop) CancelPerformSelectorTargetArgument(aSelector objc.Selector, t objc.Call[objc.Void](r_, objc.Sel("cancelPerformSelector:target:argument:"), aSelector, target, arg) } -// Performs one pass through the run loop in the specified mode and returns the date at which the next timer is scheduled to fire. [Full Topic] +// Returns the receiver's underlying [corefoundation/cfrunloop] object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1412837-limitdateformode?language=objc -func (r_ RunLoop) LimitDateForMode(mode RunLoopMode) Date { - rv := objc.Call[Date](r_, objc.Sel("limitDateForMode:"), mode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1410140-getcfrunloop?language=objc +func (r_ RunLoop) GetCFRunLoop() corefoundation.RunLoopRef { + rv := objc.Call[corefoundation.RunLoopRef](r_, objc.Sel("getCFRunLoop")) return rv } -// Puts the receiver into a permanent loop, during which time it processes data from all attached input sources. [Full Topic] +// Runs the loop once, blocking for input in the specified mode until a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1412430-run?language=objc -func (r_ RunLoop) Run() { - objc.Call[objc.Void](r_, objc.Sel("run")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1411525-runmode?language=objc +func (r_ RunLoop) RunModeBeforeDate(mode RunLoopMode, limitDate IDate) bool { + rv := objc.Call[bool](r_, objc.Sel("runMode:beforeDate:"), mode, limitDate) + return rv } -// Adds a port as an input source to the specified mode of the run loop. [Full Topic] +// Cancels all outstanding ordered performs scheduled with a given target. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1417637-addport?language=objc -func (r_ RunLoop) AddPortForMode(aPort IPort, mode RunLoopMode) { - objc.Call[objc.Void](r_, objc.Sel("addPort:forMode:"), aPort, mode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1414208-cancelperformselectorswithtarget?language=objc +func (r_ RunLoop) CancelPerformSelectorsWithTarget(target objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("cancelPerformSelectorsWithTarget:"), target) } // Registers a given timer with a given input mode. [Full Topic] @@ -105,21 +113,6 @@ func (r_ RunLoop) AddTimerForMode(timer ITimer, mode RunLoopMode) { objc.Call[objc.Void](r_, objc.Sel("addTimer:forMode:"), timer, mode) } -// Schedules the sending of a message on the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1409310-performselector?language=objc -func (r_ RunLoop) PerformSelectorTargetArgumentOrderModes(aSelector objc.Selector, target objc.IObject, arg objc.IObject, order uint, modes []RunLoopMode) { - objc.Call[objc.Void](r_, objc.Sel("performSelector:target:argument:order:modes:"), aSelector, target, arg, order, modes) -} - -// Runs the loop once, blocking for input in the specified mode until a given date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1411525-runmode?language=objc -func (r_ RunLoop) RunModeBeforeDate(mode RunLoopMode, limitDate IDate) bool { - rv := objc.Call[bool](r_, objc.Sel("runMode:beforeDate:"), mode, limitDate) - return rv -} - // Schedules a block that the run loop invokes when it’s running in any of the specified modes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/2091880-performinmodes?language=objc @@ -127,40 +120,33 @@ func (r_ RunLoop) PerformInModesBlock(modes []RunLoopMode, block func()) { objc.Call[objc.Void](r_, objc.Sel("performInModes:block:"), modes, block) } -// Cancels all outstanding ordered performs scheduled with a given target. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1414208-cancelperformselectorswithtarget?language=objc -func (r_ RunLoop) CancelPerformSelectorsWithTarget(target objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("cancelPerformSelectorsWithTarget:"), target) -} - -// Runs the loop once or until the specified date, accepting input only for the specified mode. [Full Topic] +// Adds a port as an input source to the specified mode of the run loop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1417143-acceptinputformode?language=objc -func (r_ RunLoop) AcceptInputForModeBeforeDate(mode RunLoopMode, limitDate IDate) { - objc.Call[objc.Void](r_, objc.Sel("acceptInputForMode:beforeDate:"), mode, limitDate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1417637-addport?language=objc +func (r_ RunLoop) AddPortForMode(aPort IPort, mode RunLoopMode) { + objc.Call[objc.Void](r_, objc.Sel("addPort:forMode:"), aPort, mode) } -// Removes a port from the specified input mode of the run loop. [Full Topic] +// Schedules a block that the run loop invokes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1414332-removeport?language=objc -func (r_ RunLoop) RemovePortForMode(aPort IPort, mode RunLoopMode) { - objc.Call[objc.Void](r_, objc.Sel("removePort:forMode:"), aPort, mode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/2091881-performblock?language=objc +func (r_ RunLoop) PerformBlock(block func()) { + objc.Call[objc.Void](r_, objc.Sel("performBlock:"), block) } -// Returns the receiver's underlying [corefoundation/cfrunloop] object. [Full Topic] +// Performs one pass through the run loop in the specified mode and returns the date at which the next timer is scheduled to fire. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1410140-getcfrunloop?language=objc -func (r_ RunLoop) GetCFRunLoop() corefoundation.RunLoopRef { - rv := objc.Call[corefoundation.RunLoopRef](r_, objc.Sel("getCFRunLoop")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1412837-limitdateformode?language=objc +func (r_ RunLoop) LimitDateForMode(mode RunLoopMode) Date { + rv := objc.Call[Date](r_, objc.Sel("limitDateForMode:"), mode) return rv } -// Schedules a block that the run loop invokes. [Full Topic] +// Schedules the sending of a message on the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/2091881-performblock?language=objc -func (r_ RunLoop) PerformBlock(block func()) { - objc.Call[objc.Void](r_, objc.Sel("performBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1409310-performselector?language=objc +func (r_ RunLoop) PerformSelectorTargetArgumentOrderModes(aSelector objc.Selector, target objc.IObject, arg objc.IObject, order uint, modes []RunLoopMode) { + objc.Call[objc.Void](r_, objc.Sel("performSelector:target:argument:order:modes:"), aSelector, target, arg, order, modes) } // Runs the loop until the specified date, during which time it processes data from all attached input sources. [Full Topic] @@ -170,6 +156,20 @@ func (r_ RunLoop) RunUntilDate(limitDate IDate) { objc.Call[objc.Void](r_, objc.Sel("runUntilDate:"), limitDate) } +// Puts the receiver into a permanent loop, during which time it processes data from all attached input sources. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1412430-run?language=objc +func (r_ RunLoop) Run() { + objc.Call[objc.Void](r_, objc.Sel("run")) +} + +// Removes a port from the specified input mode of the run loop. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1414332-removeport?language=objc +func (r_ RunLoop) RemovePortForMode(aPort IPort, mode RunLoopMode) { + objc.Call[objc.Void](r_, objc.Sel("removePort:forMode:"), aPort, mode) +} + // Returns the run loop for the current thread. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1412291-currentrunloop?language=objc diff --git a/macos/foundation/scanner.gen.go b/macos/foundation/scanner.gen.go index cdf6be2a..2bd081c1 100644 --- a/macos/foundation/scanner.gen.go +++ b/macos/foundation/scanner.gen.go @@ -18,31 +18,31 @@ type _ScannerClass struct { // An interface definition for the [Scanner] class. type IScanner interface { objc.IObject - ScanUpToStringIntoString(string_ string, result unsafe.Pointer) bool - ScanStringIntoString(string_ string, result unsafe.Pointer) bool - ScanInt(result *int) bool - ScanUpToCharactersFromSetIntoString(set ICharacterSet, result unsafe.Pointer) bool + ScanInteger(result *int) bool + ScanCharactersFromSetIntoString(set ICharacterSet, result unsafe.Pointer) bool + ScanUnsignedLongLong(result *int64) bool ScanDouble(result *float64) bool + ScanDecimal(dcm *Decimal) bool + ScanLongLong(result *int64) bool ScanFloat(result *float32) bool + ScanUpToCharactersFromSetIntoString(set ICharacterSet, result unsafe.Pointer) bool ScanHexLongLong(result *int64) bool - ScanLongLong(result *int64) bool - ScanCharactersFromSetIntoString(set ICharacterSet, result unsafe.Pointer) bool - ScanInteger(result *int) bool ScanHexInt(result *int) bool - ScanUnsignedLongLong(result *int64) bool - ScanHexFloat(result *float32) bool - ScanDecimal(dcm *Decimal) bool ScanHexDouble(result *float64) bool - String() string - CaseSensitive() bool - SetCaseSensitive(value bool) + ScanStringIntoString(string_ string, result unsafe.Pointer) bool + ScanHexFloat(result *float32) bool + ScanUpToStringIntoString(string_ string, result unsafe.Pointer) bool + ScanInt(result *int) bool + CharactersToBeSkipped() CharacterSet + SetCharactersToBeSkipped(value ICharacterSet) ScanLocation() uint SetScanLocation(value uint) - IsAtEnd() bool Locale() objc.Object SetLocale(value objc.IObject) - CharactersToBeSkipped() CharacterSet - SetCharactersToBeSkipped(value ICharacterSet) + IsAtEnd() bool + String() string + CaseSensitive() bool + SetCaseSensitive(value bool) } // A string parser that scans for substrings or characters in a character set, and for numeric values from decimal, hexadecimal, and floating-point representations. [Full Topic] @@ -58,18 +58,6 @@ func ScannerFrom(ptr unsafe.Pointer) Scanner { } } -func (sc _ScannerClass) ScannerWithString(string_ string) Scanner { - rv := objc.Call[Scanner](sc, objc.Sel("scannerWithString:"), string_) - return rv -} - -// Returns an NSScanner object that scans a given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1420483-scannerwithstring?language=objc -func Scanner_ScannerWithString(string_ string) Scanner { - return ScannerClass.ScannerWithString(string_) -} - func (s_ Scanner) InitWithString(string_ string) Scanner { rv := objc.Call[Scanner](s_, objc.Sel("initWithString:"), string_) return rv @@ -84,6 +72,18 @@ func NewScannerWithString(string_ string) Scanner { return instance } +func (sc _ScannerClass) ScannerWithString(string_ string) Scanner { + rv := objc.Call[Scanner](sc, objc.Sel("scannerWithString:"), string_) + return rv +} + +// Returns an NSScanner object that scans a given string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1420483-scannerwithstring?language=objc +func Scanner_ScannerWithString(string_ string) Scanner { + return ScannerClass.ScannerWithString(string_) +} + func (sc _ScannerClass) Alloc() Scanner { rv := objc.Call[Scanner](sc, objc.Sel("alloc")) return rv @@ -104,35 +104,43 @@ func (s_ Scanner) Init() Scanner { return rv } -// Scans the string until a given string is encountered, accumulating characters into a string that’s returned by reference. [Full Topic] +// Scans for an NSInteger value from a decimal representation, returning a found value by reference [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1411971-scanuptostring?language=objc -func (s_ Scanner) ScanUpToStringIntoString(string_ string, result unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("scanUpToString:intoString:"), string_, result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1411082-scaninteger?language=objc +func (s_ Scanner) ScanInteger(result *int) bool { + rv := objc.Call[bool](s_, objc.Sel("scanInteger:"), result) return rv } -// Scans a given string, returning an equivalent string object by reference if a match is found. [Full Topic] +// Scans the string as long as characters from a given character set are encountered, accumulating characters into a string that’s returned by reference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1407591-scanstring?language=objc -func (s_ Scanner) ScanStringIntoString(string_ string, result unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("scanString:intoString:"), string_, result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1417575-scancharactersfromset?language=objc +func (s_ Scanner) ScanCharactersFromSetIntoString(set ICharacterSet, result unsafe.Pointer) bool { + rv := objc.Call[bool](s_, objc.Sel("scanCharactersFromSet:intoString:"), set, result) return rv } -// Scans for an int value from a decimal representation, returning a found value by reference. [Full Topic] +// Scans for an unsigned long long value from a decimal representation, returning a found value by reference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1410914-scanint?language=objc -func (s_ Scanner) ScanInt(result *int) bool { - rv := objc.Call[bool](s_, objc.Sel("scanInt:"), result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1408559-scanunsignedlonglong?language=objc +func (s_ Scanner) ScanUnsignedLongLong(result *int64) bool { + rv := objc.Call[bool](s_, objc.Sel("scanUnsignedLongLong:"), result) return rv } -// Scans the string until a character from a given character set is encountered, accumulating characters into a string that’s returned by reference. [Full Topic] +// Scans for a double value, returning a found value by reference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1413598-scanuptocharactersfromset?language=objc -func (s_ Scanner) ScanUpToCharactersFromSetIntoString(set ICharacterSet, result unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("scanUpToCharactersFromSet:intoString:"), set, result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1415922-scandouble?language=objc +func (s_ Scanner) ScanDouble(result *float64) bool { + rv := objc.Call[bool](s_, objc.Sel("scanDouble:"), result) + return rv +} + +// Scans for an NSDecimal value, returning a found value by reference. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1408025-scandecimal?language=objc +func (s_ Scanner) ScanDecimal(dcm *Decimal) bool { + rv := objc.Call[bool](s_, objc.Sel("scanDecimal:"), dcm) return rv } @@ -151,11 +159,11 @@ func Scanner_LocalizedScannerWithString(string_ string) objc.Object { return ScannerClass.LocalizedScannerWithString(string_) } -// Scans for a double value, returning a found value by reference. [Full Topic] +// Scans for a long long value from a decimal representation, returning a found value by reference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1415922-scandouble?language=objc -func (s_ Scanner) ScanDouble(result *float64) bool { - rv := objc.Call[bool](s_, objc.Sel("scanDouble:"), result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1412629-scanlonglong?language=objc +func (s_ Scanner) ScanLongLong(result *int64) bool { + rv := objc.Call[bool](s_, objc.Sel("scanLongLong:"), result) return rv } @@ -167,35 +175,19 @@ func (s_ Scanner) ScanFloat(result *float32) bool { return rv } -// Scans for a long long value from a hexadecimal representation, returning a found value by reference. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1412759-scanhexlonglong?language=objc -func (s_ Scanner) ScanHexLongLong(result *int64) bool { - rv := objc.Call[bool](s_, objc.Sel("scanHexLongLong:"), result) - return rv -} - -// Scans for a long long value from a decimal representation, returning a found value by reference. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1412629-scanlonglong?language=objc -func (s_ Scanner) ScanLongLong(result *int64) bool { - rv := objc.Call[bool](s_, objc.Sel("scanLongLong:"), result) - return rv -} - -// Scans the string as long as characters from a given character set are encountered, accumulating characters into a string that’s returned by reference. [Full Topic] +// Scans the string until a character from a given character set is encountered, accumulating characters into a string that’s returned by reference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1417575-scancharactersfromset?language=objc -func (s_ Scanner) ScanCharactersFromSetIntoString(set ICharacterSet, result unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("scanCharactersFromSet:intoString:"), set, result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1413598-scanuptocharactersfromset?language=objc +func (s_ Scanner) ScanUpToCharactersFromSetIntoString(set ICharacterSet, result unsafe.Pointer) bool { + rv := objc.Call[bool](s_, objc.Sel("scanUpToCharactersFromSet:intoString:"), set, result) return rv } -// Scans for an NSInteger value from a decimal representation, returning a found value by reference [Full Topic] +// Scans for a long long value from a hexadecimal representation, returning a found value by reference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1411082-scaninteger?language=objc -func (s_ Scanner) ScanInteger(result *int) bool { - rv := objc.Call[bool](s_, objc.Sel("scanInteger:"), result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1412759-scanhexlonglong?language=objc +func (s_ Scanner) ScanHexLongLong(result *int64) bool { + rv := objc.Call[bool](s_, objc.Sel("scanHexLongLong:"), result) return rv } @@ -207,59 +199,59 @@ func (s_ Scanner) ScanHexInt(result *int) bool { return rv } -// Scans for an unsigned long long value from a decimal representation, returning a found value by reference. [Full Topic] +// Scans for a double value from a hexadecimal representation, returning a found value by reference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1408559-scanunsignedlonglong?language=objc -func (s_ Scanner) ScanUnsignedLongLong(result *int64) bool { - rv := objc.Call[bool](s_, objc.Sel("scanUnsignedLongLong:"), result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1411780-scanhexdouble?language=objc +func (s_ Scanner) ScanHexDouble(result *float64) bool { + rv := objc.Call[bool](s_, objc.Sel("scanHexDouble:"), result) return rv } -// Scans for a double value from a hexadecimal representation, returning a found value by reference. [Full Topic] +// Scans a given string, returning an equivalent string object by reference if a match is found. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1411236-scanhexfloat?language=objc -func (s_ Scanner) ScanHexFloat(result *float32) bool { - rv := objc.Call[bool](s_, objc.Sel("scanHexFloat:"), result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1407591-scanstring?language=objc +func (s_ Scanner) ScanStringIntoString(string_ string, result unsafe.Pointer) bool { + rv := objc.Call[bool](s_, objc.Sel("scanString:intoString:"), string_, result) return rv } -// Scans for an NSDecimal value, returning a found value by reference. [Full Topic] +// Scans for a double value from a hexadecimal representation, returning a found value by reference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1408025-scandecimal?language=objc -func (s_ Scanner) ScanDecimal(dcm *Decimal) bool { - rv := objc.Call[bool](s_, objc.Sel("scanDecimal:"), dcm) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1411236-scanhexfloat?language=objc +func (s_ Scanner) ScanHexFloat(result *float32) bool { + rv := objc.Call[bool](s_, objc.Sel("scanHexFloat:"), result) return rv } -// Scans for a double value from a hexadecimal representation, returning a found value by reference. [Full Topic] +// Scans the string until a given string is encountered, accumulating characters into a string that’s returned by reference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1411780-scanhexdouble?language=objc -func (s_ Scanner) ScanHexDouble(result *float64) bool { - rv := objc.Call[bool](s_, objc.Sel("scanHexDouble:"), result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1411971-scanuptostring?language=objc +func (s_ Scanner) ScanUpToStringIntoString(string_ string, result unsafe.Pointer) bool { + rv := objc.Call[bool](s_, objc.Sel("scanUpToString:intoString:"), string_, result) return rv } -// The string the scanner will scan. [Full Topic] +// Scans for an int value from a decimal representation, returning a found value by reference. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1418109-string?language=objc -func (s_ Scanner) String() string { - rv := objc.Call[string](s_, objc.Sel("string")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1410914-scanint?language=objc +func (s_ Scanner) ScanInt(result *int) bool { + rv := objc.Call[bool](s_, objc.Sel("scanInt:"), result) return rv } -// Flag that indicates whether the receiver distinguishes case in the characters it scans. [Full Topic] +// Character set containing the characters the scanner ignores when looking for a scannable element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1409488-casesensitive?language=objc -func (s_ Scanner) CaseSensitive() bool { - rv := objc.Call[bool](s_, objc.Sel("caseSensitive")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1410204-characterstobeskipped?language=objc +func (s_ Scanner) CharactersToBeSkipped() CharacterSet { + rv := objc.Call[CharacterSet](s_, objc.Sel("charactersToBeSkipped")) return rv } -// Flag that indicates whether the receiver distinguishes case in the characters it scans. [Full Topic] +// Character set containing the characters the scanner ignores when looking for a scannable element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1409488-casesensitive?language=objc -func (s_ Scanner) SetCaseSensitive(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setCaseSensitive:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1410204-characterstobeskipped?language=objc +func (s_ Scanner) SetCharactersToBeSkipped(value ICharacterSet) { + objc.Call[objc.Void](s_, objc.Sel("setCharactersToBeSkipped:"), value) } // The character position at which the receiver will begin its next scanning operation. [Full Topic] @@ -277,14 +269,6 @@ func (s_ Scanner) SetScanLocation(value uint) { objc.Call[objc.Void](s_, objc.Sel("setScanLocation:"), value) } -// Flag that indicates whether the receiver has exhausted all significant characters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1412801-atend?language=objc -func (s_ Scanner) IsAtEnd() bool { - rv := objc.Call[bool](s_, objc.Sel("isAtEnd")) - return rv -} - // The locale to use when scanning. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1409531-locale?language=objc @@ -300,17 +284,33 @@ func (s_ Scanner) SetLocale(value objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setLocale:"), value) } -// Character set containing the characters the scanner ignores when looking for a scannable element. [Full Topic] +// Flag that indicates whether the receiver has exhausted all significant characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1410204-characterstobeskipped?language=objc -func (s_ Scanner) CharactersToBeSkipped() CharacterSet { - rv := objc.Call[CharacterSet](s_, objc.Sel("charactersToBeSkipped")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1412801-atend?language=objc +func (s_ Scanner) IsAtEnd() bool { + rv := objc.Call[bool](s_, objc.Sel("isAtEnd")) return rv } -// Character set containing the characters the scanner ignores when looking for a scannable element. [Full Topic] +// The string the scanner will scan. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1410204-characterstobeskipped?language=objc -func (s_ Scanner) SetCharactersToBeSkipped(value ICharacterSet) { - objc.Call[objc.Void](s_, objc.Sel("setCharactersToBeSkipped:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1418109-string?language=objc +func (s_ Scanner) String() string { + rv := objc.Call[string](s_, objc.Sel("string")) + return rv +} + +// Flag that indicates whether the receiver distinguishes case in the characters it scans. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1409488-casesensitive?language=objc +func (s_ Scanner) CaseSensitive() bool { + rv := objc.Call[bool](s_, objc.Sel("caseSensitive")) + return rv +} + +// Flag that indicates whether the receiver distinguishes case in the characters it scans. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1409488-casesensitive?language=objc +func (s_ Scanner) SetCaseSensitive(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setCaseSensitive:"), value) } diff --git a/macos/foundation/script_class_description.gen.go b/macos/foundation/script_class_description.gen.go index f4238daa..4635cf19 100644 --- a/macos/foundation/script_class_description.gen.go +++ b/macos/foundation/script_class_description.gen.go @@ -18,24 +18,24 @@ type _ScriptClassDescriptionClass struct { // An interface definition for the [ScriptClassDescription] class. type IScriptClassDescription interface { IClassDescription - KeyWithAppleEventCode(appleEventCode uint) string + SelectorForCommand(commandDescription IScriptCommandDescription) objc.Selector + MatchesAppleEventCode(appleEventCode uint) bool + SupportsCommand(commandDescription IScriptCommandDescription) bool HasReadablePropertyForKey(key string) bool - HasOrderedToManyRelationshipForKey(key string) bool - IsLocationRequiredToCreateForKey(toManyRelationshipKey string) bool - HasWritablePropertyForKey(key string) bool HasPropertyForKey(key string) bool ClassDescriptionForKey(key string) ScriptClassDescription - MatchesAppleEventCode(appleEventCode uint) bool - SelectorForCommand(commandDescription IScriptCommandDescription) objc.Selector + HasWritablePropertyForKey(key string) bool TypeForKey(key string) string + KeyWithAppleEventCode(appleEventCode uint) string + IsLocationRequiredToCreateForKey(toManyRelationshipKey string) bool AppleEventCodeForKey(key string) uint - SupportsCommand(commandDescription IScriptCommandDescription) bool - SuiteName() string - DefaultSubcontainerAttributeKey() string - ImplementationClassName() string + HasOrderedToManyRelationshipForKey(key string) bool + AppleEventCode() uint SuperclassDescription() ScriptClassDescription + DefaultSubcontainerAttributeKey() string + SuiteName() string ClassName() string - AppleEventCode() uint + ImplementationClassName() string } // A scriptable class that a macOS app supports. [Full Topic] @@ -85,43 +85,35 @@ func (s_ ScriptClassDescription) Init() ScriptClassDescription { return rv } -// Given an Apple event code that identifies a property or element class, returns the key for the corresponding attribute, one-to-one relationship, or one-to-many relationship. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1415315-keywithappleeventcode?language=objc -func (s_ ScriptClassDescription) KeyWithAppleEventCode(appleEventCode uint) string { - rv := objc.Call[string](s_, objc.Sel("keyWithAppleEventCode:"), appleEventCode) - return rv -} - -// Returns a Boolean value indicating whether the described class has a readable property identified by the specified key. [Full Topic] +// Returns the selector associated with the receiver for the specified command description. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1411467-hasreadablepropertyforkey?language=objc -func (s_ ScriptClassDescription) HasReadablePropertyForKey(key string) bool { - rv := objc.Call[bool](s_, objc.Sel("hasReadablePropertyForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1409327-selectorforcommand?language=objc +func (s_ ScriptClassDescription) SelectorForCommand(commandDescription IScriptCommandDescription) objc.Selector { + rv := objc.Call[objc.Selector](s_, objc.Sel("selectorForCommand:"), commandDescription) return rv } -// Returns a Boolean value indicating whether the described class has an ordered to-many relationship identified by the specified key. [Full Topic] +// Returns a Boolean value indicating whether a primary or secondary Apple event code in the receiver matches the passed code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1413542-hasorderedtomanyrelationshipfork?language=objc -func (s_ ScriptClassDescription) HasOrderedToManyRelationshipForKey(key string) bool { - rv := objc.Call[bool](s_, objc.Sel("hasOrderedToManyRelationshipForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1411166-matchesappleeventcode?language=objc +func (s_ ScriptClassDescription) MatchesAppleEventCode(appleEventCode uint) bool { + rv := objc.Call[bool](s_, objc.Sel("matchesAppleEventCode:"), appleEventCode) return rv } -// Returns a Boolean value indicating whether an insertion location must be specified when creating a new object in the specified to-many relationship of the receiver. [Full Topic] +// Returns a Boolean value indicating whether the receiver or any superclass supports the specified command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1416531-islocationrequiredtocreateforkey?language=objc -func (s_ ScriptClassDescription) IsLocationRequiredToCreateForKey(toManyRelationshipKey string) bool { - rv := objc.Call[bool](s_, objc.Sel("isLocationRequiredToCreateForKey:"), toManyRelationshipKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1411902-supportscommand?language=objc +func (s_ ScriptClassDescription) SupportsCommand(commandDescription IScriptCommandDescription) bool { + rv := objc.Call[bool](s_, objc.Sel("supportsCommand:"), commandDescription) return rv } -// Returns a Boolean value indicating whether the described class has a writable property identified by the specified key. [Full Topic] +// Returns a Boolean value indicating whether the described class has a readable property identified by the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1411935-haswritablepropertyforkey?language=objc -func (s_ ScriptClassDescription) HasWritablePropertyForKey(key string) bool { - rv := objc.Call[bool](s_, objc.Sel("hasWritablePropertyForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1411467-hasreadablepropertyforkey?language=objc +func (s_ ScriptClassDescription) HasReadablePropertyForKey(key string) bool { + rv := objc.Call[bool](s_, objc.Sel("hasReadablePropertyForKey:"), key) return rv } @@ -141,19 +133,11 @@ func (s_ ScriptClassDescription) ClassDescriptionForKey(key string) ScriptClassD return rv } -// Returns a Boolean value indicating whether a primary or secondary Apple event code in the receiver matches the passed code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1411166-matchesappleeventcode?language=objc -func (s_ ScriptClassDescription) MatchesAppleEventCode(appleEventCode uint) bool { - rv := objc.Call[bool](s_, objc.Sel("matchesAppleEventCode:"), appleEventCode) - return rv -} - -// Returns the selector associated with the receiver for the specified command description. [Full Topic] +// Returns a Boolean value indicating whether the described class has a writable property identified by the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1409327-selectorforcommand?language=objc -func (s_ ScriptClassDescription) SelectorForCommand(commandDescription IScriptCommandDescription) objc.Selector { - rv := objc.Call[objc.Selector](s_, objc.Sel("selectorForCommand:"), commandDescription) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1411935-haswritablepropertyforkey?language=objc +func (s_ ScriptClassDescription) HasWritablePropertyForKey(key string) bool { + rv := objc.Call[bool](s_, objc.Sel("hasWritablePropertyForKey:"), key) return rv } @@ -165,43 +149,43 @@ func (s_ ScriptClassDescription) TypeForKey(key string) string { return rv } -// Returns the Apple event code for the specified attribute or relationship in the receiver. [Full Topic] +// Given an Apple event code that identifies a property or element class, returns the key for the corresponding attribute, one-to-one relationship, or one-to-many relationship. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1414657-appleeventcodeforkey?language=objc -func (s_ ScriptClassDescription) AppleEventCodeForKey(key string) uint { - rv := objc.Call[uint](s_, objc.Sel("appleEventCodeForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1415315-keywithappleeventcode?language=objc +func (s_ ScriptClassDescription) KeyWithAppleEventCode(appleEventCode uint) string { + rv := objc.Call[string](s_, objc.Sel("keyWithAppleEventCode:"), appleEventCode) return rv } -// Returns a Boolean value indicating whether the receiver or any superclass supports the specified command. [Full Topic] +// Returns a Boolean value indicating whether an insertion location must be specified when creating a new object in the specified to-many relationship of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1411902-supportscommand?language=objc -func (s_ ScriptClassDescription) SupportsCommand(commandDescription IScriptCommandDescription) bool { - rv := objc.Call[bool](s_, objc.Sel("supportsCommand:"), commandDescription) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1416531-islocationrequiredtocreateforkey?language=objc +func (s_ ScriptClassDescription) IsLocationRequiredToCreateForKey(toManyRelationshipKey string) bool { + rv := objc.Call[bool](s_, objc.Sel("isLocationRequiredToCreateForKey:"), toManyRelationshipKey) return rv } -// Returns the name of the receiver’s suite. [Full Topic] +// Returns the Apple event code for the specified attribute or relationship in the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1410782-suitename?language=objc -func (s_ ScriptClassDescription) SuiteName() string { - rv := objc.Call[string](s_, objc.Sel("suiteName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1414657-appleeventcodeforkey?language=objc +func (s_ ScriptClassDescription) AppleEventCodeForKey(key string) uint { + rv := objc.Call[uint](s_, objc.Sel("appleEventCodeForKey:"), key) return rv } -// Returns the value of the DefaultSubcontainerAttribute entry of the class dictionary from which the receiver was instantiated. [Full Topic] +// Returns a Boolean value indicating whether the described class has an ordered to-many relationship identified by the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1410261-defaultsubcontainerattributekey?language=objc -func (s_ ScriptClassDescription) DefaultSubcontainerAttributeKey() string { - rv := objc.Call[string](s_, objc.Sel("defaultSubcontainerAttributeKey")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1413542-hasorderedtomanyrelationshipfork?language=objc +func (s_ ScriptClassDescription) HasOrderedToManyRelationshipForKey(key string) bool { + rv := objc.Call[bool](s_, objc.Sel("hasOrderedToManyRelationshipForKey:"), key) return rv } -// Returns the name of the Objective-C class instantiated to implement the scripting class. [Full Topic] +// Returns the Apple event code associated with the receiver’s class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1409575-implementationclassname?language=objc -func (s_ ScriptClassDescription) ImplementationClassName() string { - rv := objc.Call[string](s_, objc.Sel("implementationClassName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1414920-appleeventcode?language=objc +func (s_ ScriptClassDescription) AppleEventCode() uint { + rv := objc.Call[uint](s_, objc.Sel("appleEventCode")) return rv } @@ -213,6 +197,22 @@ func (s_ ScriptClassDescription) SuperclassDescription() ScriptClassDescription return rv } +// Returns the value of the DefaultSubcontainerAttribute entry of the class dictionary from which the receiver was instantiated. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1410261-defaultsubcontainerattributekey?language=objc +func (s_ ScriptClassDescription) DefaultSubcontainerAttributeKey() string { + rv := objc.Call[string](s_, objc.Sel("defaultSubcontainerAttributeKey")) + return rv +} + +// Returns the name of the receiver’s suite. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1410782-suitename?language=objc +func (s_ ScriptClassDescription) SuiteName() string { + rv := objc.Call[string](s_, objc.Sel("suiteName")) + return rv +} + // Returns the name of the class the receiver describes, as provided at initialization time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1418029-classname?language=objc @@ -221,10 +221,10 @@ func (s_ ScriptClassDescription) ClassName() string { return rv } -// Returns the Apple event code associated with the receiver’s class. [Full Topic] +// Returns the name of the Objective-C class instantiated to implement the scripting class. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1414920-appleeventcode?language=objc -func (s_ ScriptClassDescription) AppleEventCode() uint { - rv := objc.Call[uint](s_, objc.Sel("appleEventCode")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1409575-implementationclassname?language=objc +func (s_ ScriptClassDescription) ImplementationClassName() string { + rv := objc.Call[string](s_, objc.Sel("implementationClassName")) return rv } diff --git a/macos/foundation/script_coercion_handler.gen.go b/macos/foundation/script_coercion_handler.gen.go index 5cd892b8..2b4f4f3b 100644 --- a/macos/foundation/script_coercion_handler.gen.go +++ b/macos/foundation/script_coercion_handler.gen.go @@ -18,8 +18,8 @@ type _ScriptCoercionHandlerClass struct { // An interface definition for the [ScriptCoercionHandler] class. type IScriptCoercionHandler interface { objc.IObject - RegisterCoercerSelectorToConvertFromClassToClass(coercer objc.IObject, selector objc.Selector, fromClass objc.IClass, toClass objc.IClass) CoerceValueToClass(value objc.IObject, toClass objc.IClass) objc.Object + RegisterCoercerSelectorToConvertFromClassToClass(coercer objc.IObject, selector objc.Selector, fromClass objc.IClass, toClass objc.IClass) } // A mechanism for converting one kind of scripting data to another. [Full Topic] @@ -55,11 +55,12 @@ func (s_ ScriptCoercionHandler) Init() ScriptCoercionHandler { return rv } -// Registers a given object (typically a class) to handle coercions (conversions) from one given class to another. [Full Topic] +// Returns an object of a given class representing a given value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcoercionhandler/1413218-registercoercer?language=objc -func (s_ ScriptCoercionHandler) RegisterCoercerSelectorToConvertFromClassToClass(coercer objc.IObject, selector objc.Selector, fromClass objc.IClass, toClass objc.IClass) { - objc.Call[objc.Void](s_, objc.Sel("registerCoercer:selector:toConvertFromClass:toClass:"), coercer, selector, fromClass, toClass) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcoercionhandler/1412034-coercevalue?language=objc +func (s_ ScriptCoercionHandler) CoerceValueToClass(value objc.IObject, toClass objc.IClass) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("coerceValue:toClass:"), value, toClass) + return rv } // Returns the shared NSScriptCoercionHandler for the application. [Full Topic] @@ -77,10 +78,9 @@ func ScriptCoercionHandler_SharedCoercionHandler() ScriptCoercionHandler { return ScriptCoercionHandlerClass.SharedCoercionHandler() } -// Returns an object of a given class representing a given value. [Full Topic] +// Registers a given object (typically a class) to handle coercions (conversions) from one given class to another. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcoercionhandler/1412034-coercevalue?language=objc -func (s_ ScriptCoercionHandler) CoerceValueToClass(value objc.IObject, toClass objc.IClass) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("coerceValue:toClass:"), value, toClass) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcoercionhandler/1413218-registercoercer?language=objc +func (s_ ScriptCoercionHandler) RegisterCoercerSelectorToConvertFromClassToClass(coercer objc.IObject, selector objc.Selector, fromClass objc.IClass, toClass objc.IClass) { + objc.Call[objc.Void](s_, objc.Sel("registerCoercer:selector:toConvertFromClass:toClass:"), coercer, selector, fromClass, toClass) } diff --git a/macos/foundation/script_command.gen.go b/macos/foundation/script_command.gen.go index 91a5dc57..ff50a021 100644 --- a/macos/foundation/script_command.gen.go +++ b/macos/foundation/script_command.gen.go @@ -18,29 +18,29 @@ type _ScriptCommandClass struct { // An interface definition for the [ScriptCommand] class. type IScriptCommand interface { objc.IObject - SuspendExecution() - ResumeExecutionWithResult(result objc.IObject) ExecuteCommand() objc.Object PerformDefaultImplementation() objc.Object - DirectParameter() objc.Object - SetDirectParameter(value objc.IObject) - ScriptErrorOffendingObjectDescriptor() AppleEventDescriptor - SetScriptErrorOffendingObjectDescriptor(value IAppleEventDescriptor) - ScriptErrorString() string - SetScriptErrorString(value string) - ScriptErrorNumber() int - SetScriptErrorNumber(value int) + ResumeExecutionWithResult(result objc.IObject) + SuspendExecution() Arguments() map[string]objc.Object SetArguments(value map[string]objc.IObject) - EvaluatedReceivers() objc.Object ReceiversSpecifier() ScriptObjectSpecifier SetReceiversSpecifier(value IScriptObjectSpecifier) - ScriptErrorExpectedTypeDescriptor() AppleEventDescriptor - SetScriptErrorExpectedTypeDescriptor(value IAppleEventDescriptor) - EvaluatedArguments() map[string]objc.Object + ScriptErrorString() string + SetScriptErrorString(value string) + DirectParameter() objc.Object + SetDirectParameter(value objc.IObject) CommandDescription() ScriptCommandDescription - AppleEvent() AppleEventDescriptor + EvaluatedArguments() map[string]objc.Object + EvaluatedReceivers() objc.Object + ScriptErrorNumber() int + SetScriptErrorNumber(value int) IsWellFormed() bool + AppleEvent() AppleEventDescriptor + ScriptErrorOffendingObjectDescriptor() AppleEventDescriptor + SetScriptErrorOffendingObjectDescriptor(value IAppleEventDescriptor) + ScriptErrorExpectedTypeDescriptor() AppleEventDescriptor + SetScriptErrorExpectedTypeDescriptor(value IAppleEventDescriptor) } // A self-contained scripting statement. [Full Topic] @@ -90,11 +90,12 @@ func (s_ ScriptCommand) Init() ScriptCommand { return rv } -// Suspends the execution of the receiver. [Full Topic] +// Executes the command if it is valid and returns the result, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1417785-suspendexecution?language=objc -func (s_ ScriptCommand) SuspendExecution() { - objc.Call[objc.Void](s_, objc.Sel("suspendExecution")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1414780-executecommand?language=objc +func (s_ ScriptCommand) ExecuteCommand() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("executeCommand")) + return rv } // If a command is being executed in the current thread by Cocoa scripting's built-in Apple event handling, return the command. [Full Topic] @@ -112,57 +113,56 @@ func ScriptCommand_CurrentCommand() ScriptCommand { return ScriptCommandClass.CurrentCommand() } -// If a successful, unmatched, invocation of [foundation/nsscriptcommand/suspendexecution] has been made, resume the execution of the command. [Full Topic] +// Overridden by subclasses to provide a default implementation for the command represented by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1408227-resumeexecutionwithresult?language=objc -func (s_ ScriptCommand) ResumeExecutionWithResult(result objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("resumeExecutionWithResult:"), result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1413379-performdefaultimplementation?language=objc +func (s_ ScriptCommand) PerformDefaultImplementation() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("performDefaultImplementation")) + return rv } -// Executes the command if it is valid and returns the result, if any. [Full Topic] +// If a successful, unmatched, invocation of suspendExecution has been made, resume the execution of the command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1414780-executecommand?language=objc -func (s_ ScriptCommand) ExecuteCommand() objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("executeCommand")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1408227-resumeexecutionwithresult?language=objc +func (s_ ScriptCommand) ResumeExecutionWithResult(result objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("resumeExecutionWithResult:"), result) } -// Overridden by subclasses to provide a default implementation for the command represented by the receiver. [Full Topic] +// Suspends the execution of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1413379-performdefaultimplementation?language=objc -func (s_ ScriptCommand) PerformDefaultImplementation() objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("performDefaultImplementation")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1417785-suspendexecution?language=objc +func (s_ ScriptCommand) SuspendExecution() { + objc.Call[objc.Void](s_, objc.Sel("suspendExecution")) } -// Sets the object that corresponds to the direct parameter of the Apple event from which the receiver derives. [Full Topic] +// Sets the arguments of the command to args. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1410675-directparameter?language=objc -func (s_ ScriptCommand) DirectParameter() objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("directParameter")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1414071-arguments?language=objc +func (s_ ScriptCommand) Arguments() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](s_, objc.Sel("arguments")) return rv } -// Sets the object that corresponds to the direct parameter of the Apple event from which the receiver derives. [Full Topic] +// Sets the arguments of the command to args. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1410675-directparameter?language=objc -func (s_ ScriptCommand) SetDirectParameter(value objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setDirectParameter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1414071-arguments?language=objc +func (s_ ScriptCommand) SetArguments(value map[string]objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("setArguments:"), value) } -// Sets a descriptor for an object that will be put in the reply Apple event if the sender requested a reply, execution of the receiver completes, and an error number was set. [Full Topic] +// Sets the object specifier to receiversSpec that, when evaluated, indicates the receiver or receivers of the command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1417217-scripterroroffendingobjectdescri?language=objc -func (s_ ScriptCommand) ScriptErrorOffendingObjectDescriptor() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](s_, objc.Sel("scriptErrorOffendingObjectDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1417016-receiversspecifier?language=objc +func (s_ ScriptCommand) ReceiversSpecifier() ScriptObjectSpecifier { + rv := objc.Call[ScriptObjectSpecifier](s_, objc.Sel("receiversSpecifier")) return rv } -// Sets a descriptor for an object that will be put in the reply Apple event if the sender requested a reply, execution of the receiver completes, and an error number was set. [Full Topic] +// Sets the object specifier to receiversSpec that, when evaluated, indicates the receiver or receivers of the command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1417217-scripterroroffendingobjectdescri?language=objc -func (s_ ScriptCommand) SetScriptErrorOffendingObjectDescriptor(value IAppleEventDescriptor) { - objc.Call[objc.Void](s_, objc.Sel("setScriptErrorOffendingObjectDescriptor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1417016-receiversspecifier?language=objc +func (s_ ScriptCommand) SetReceiversSpecifier(value IScriptObjectSpecifier) { + objc.Call[objc.Void](s_, objc.Sel("setReceiversSpecifier:"), value) } // Sets a script error string that is associated with execution of the command. [Full Topic] @@ -180,34 +180,35 @@ func (s_ ScriptCommand) SetScriptErrorString(value string) { objc.Call[objc.Void](s_, objc.Sel("setScriptErrorString:"), value) } -// Sets a script error number that is associated with the execution of the command and is returned in the reply Apple event, if a reply was requested by the sender. [Full Topic] +// Sets the object that corresponds to the direct parameter of the Apple event from which the receiver derives. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1411484-scripterrornumber?language=objc -func (s_ ScriptCommand) ScriptErrorNumber() int { - rv := objc.Call[int](s_, objc.Sel("scriptErrorNumber")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1410675-directparameter?language=objc +func (s_ ScriptCommand) DirectParameter() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("directParameter")) return rv } -// Sets a script error number that is associated with the execution of the command and is returned in the reply Apple event, if a reply was requested by the sender. [Full Topic] +// Sets the object that corresponds to the direct parameter of the Apple event from which the receiver derives. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1411484-scripterrornumber?language=objc -func (s_ ScriptCommand) SetScriptErrorNumber(value int) { - objc.Call[objc.Void](s_, objc.Sel("setScriptErrorNumber:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1410675-directparameter?language=objc +func (s_ ScriptCommand) SetDirectParameter(value objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("setDirectParameter:"), value) } -// Sets the arguments of the command to args. [Full Topic] +// Returns the command description for the command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1414071-arguments?language=objc -func (s_ ScriptCommand) Arguments() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](s_, objc.Sel("arguments")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1407452-commanddescription?language=objc +func (s_ ScriptCommand) CommandDescription() ScriptCommandDescription { + rv := objc.Call[ScriptCommandDescription](s_, objc.Sel("commandDescription")) return rv } -// Sets the arguments of the command to args. [Full Topic] +// Returns a dictionary containing the arguments of the command, evaluated from object specifiers to objects if necessary. The keys in the dictionary are the argument names. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1414071-arguments?language=objc -func (s_ ScriptCommand) SetArguments(value map[string]objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setArguments:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1413335-evaluatedarguments?language=objc +func (s_ ScriptCommand) EvaluatedArguments() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](s_, objc.Sel("evaluatedArguments")) + return rv } // Returns the object or objects to which the command is to be sent (called both the “receivers” or “targets” of script commands). [Full Topic] @@ -218,64 +219,63 @@ func (s_ ScriptCommand) EvaluatedReceivers() objc.Object { return rv } -// Sets the object specifier to receiversSpec that, when evaluated, indicates the receiver or receivers of the command. [Full Topic] +// Sets a script error number that is associated with the execution of the command and is returned in the reply Apple event, if a reply was requested by the sender. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1417016-receiversspecifier?language=objc -func (s_ ScriptCommand) ReceiversSpecifier() ScriptObjectSpecifier { - rv := objc.Call[ScriptObjectSpecifier](s_, objc.Sel("receiversSpecifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1411484-scripterrornumber?language=objc +func (s_ ScriptCommand) ScriptErrorNumber() int { + rv := objc.Call[int](s_, objc.Sel("scriptErrorNumber")) return rv } -// Sets the object specifier to receiversSpec that, when evaluated, indicates the receiver or receivers of the command. [Full Topic] +// Sets a script error number that is associated with the execution of the command and is returned in the reply Apple event, if a reply was requested by the sender. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1417016-receiversspecifier?language=objc -func (s_ ScriptCommand) SetReceiversSpecifier(value IScriptObjectSpecifier) { - objc.Call[objc.Void](s_, objc.Sel("setReceiversSpecifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1411484-scripterrornumber?language=objc +func (s_ ScriptCommand) SetScriptErrorNumber(value int) { + objc.Call[objc.Void](s_, objc.Sel("setScriptErrorNumber:"), value) } -// Sets a descriptor for the expected type that will be put in the reply Apple event if the sender requested a reply, execution of the receiver completes, and an error number was set. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1411714-scripterrorexpectedtypedescripto?language=objc -func (s_ ScriptCommand) ScriptErrorExpectedTypeDescriptor() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](s_, objc.Sel("scriptErrorExpectedTypeDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1413090-wellformed?language=objc +func (s_ ScriptCommand) IsWellFormed() bool { + rv := objc.Call[bool](s_, objc.Sel("isWellFormed")) return rv } -// Sets a descriptor for the expected type that will be put in the reply Apple event if the sender requested a reply, execution of the receiver completes, and an error number was set. [Full Topic] +// If the receiver was constructed by Cocoa scripting's built-in Apple event handling, returns the Apple event descriptor from which it was constructed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1411714-scripterrorexpectedtypedescripto?language=objc -func (s_ ScriptCommand) SetScriptErrorExpectedTypeDescriptor(value IAppleEventDescriptor) { - objc.Call[objc.Void](s_, objc.Sel("setScriptErrorExpectedTypeDescriptor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1415626-appleevent?language=objc +func (s_ ScriptCommand) AppleEvent() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](s_, objc.Sel("appleEvent")) + return rv } -// Returns a dictionary containing the arguments of the command, evaluated from object specifiers to objects if necessary. The keys in the dictionary are the argument names. [Full Topic] +// Sets a descriptor for an object that will be put in the reply Apple event if the sender requested a reply, execution of the receiver completes, and an error number was set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1413335-evaluatedarguments?language=objc -func (s_ ScriptCommand) EvaluatedArguments() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](s_, objc.Sel("evaluatedArguments")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1417217-scripterroroffendingobjectdescri?language=objc +func (s_ ScriptCommand) ScriptErrorOffendingObjectDescriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](s_, objc.Sel("scriptErrorOffendingObjectDescriptor")) return rv } -// Returns the command description for the command. [Full Topic] +// Sets a descriptor for an object that will be put in the reply Apple event if the sender requested a reply, execution of the receiver completes, and an error number was set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1407452-commanddescription?language=objc -func (s_ ScriptCommand) CommandDescription() ScriptCommandDescription { - rv := objc.Call[ScriptCommandDescription](s_, objc.Sel("commandDescription")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1417217-scripterroroffendingobjectdescri?language=objc +func (s_ ScriptCommand) SetScriptErrorOffendingObjectDescriptor(value IAppleEventDescriptor) { + objc.Call[objc.Void](s_, objc.Sel("setScriptErrorOffendingObjectDescriptor:"), value) } -// If the receiver was constructed by Cocoa scripting's built-in Apple event handling, returns the Apple event descriptor from which it was constructed. [Full Topic] +// Sets a descriptor for the expected type that will be put in the reply Apple event if the sender requested a reply, execution of the receiver completes, and an error number was set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1415626-appleevent?language=objc -func (s_ ScriptCommand) AppleEvent() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](s_, objc.Sel("appleEvent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1411714-scripterrorexpectedtypedescripto?language=objc +func (s_ ScriptCommand) ScriptErrorExpectedTypeDescriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](s_, objc.Sel("scriptErrorExpectedTypeDescriptor")) return rv } -// [Full Topic] +// Sets a descriptor for the expected type that will be put in the reply Apple event if the sender requested a reply, execution of the receiver completes, and an error number was set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1413090-wellformed?language=objc -func (s_ ScriptCommand) IsWellFormed() bool { - rv := objc.Call[bool](s_, objc.Sel("isWellFormed")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommand/1411714-scripterrorexpectedtypedescripto?language=objc +func (s_ ScriptCommand) SetScriptErrorExpectedTypeDescriptor(value IAppleEventDescriptor) { + objc.Call[objc.Void](s_, objc.Sel("setScriptErrorExpectedTypeDescriptor:"), value) } diff --git a/macos/foundation/script_command_description.gen.go b/macos/foundation/script_command_description.gen.go index d3a31afc..29326bbc 100644 --- a/macos/foundation/script_command_description.gen.go +++ b/macos/foundation/script_command_description.gen.go @@ -18,19 +18,19 @@ type _ScriptCommandDescriptionClass struct { // An interface definition for the [ScriptCommandDescription] class. type IScriptCommandDescription interface { objc.IObject - CreateCommandInstance() ScriptCommand IsOptionalArgumentWithName(argumentName string) bool - TypeForArgumentWithName(argumentName string) string + CreateCommandInstance() ScriptCommand CreateCommandInstanceWithZone(zone unsafe.Pointer) ScriptCommand + TypeForArgumentWithName(argumentName string) string AppleEventCodeForArgumentWithName(argumentName string) uint - AppleEventClassCode() uint + ArgumentNames() []string AppleEventCode() uint + AppleEventClassCode() uint AppleEventCodeForReturnType() uint - ReturnType() string - ArgumentNames() []string - CommandName() string SuiteName() string CommandClassName() string + CommandName() string + ReturnType() string } // A script command that a macOS app supports. [Full Topic] @@ -80,14 +80,6 @@ func (s_ ScriptCommandDescription) Init() ScriptCommandDescription { return rv } -// Creates and returns an instance of the command object described by the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1418415-createcommandinstance?language=objc -func (s_ ScriptCommandDescription) CreateCommandInstance() ScriptCommand { - rv := objc.Call[ScriptCommand](s_, objc.Sel("createCommandInstance")) - return rv -} - // Returns a Boolean value that indicates whether the command argument identified by the specified argument key is an optional argument. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1415798-isoptionalargumentwithname?language=objc @@ -96,11 +88,11 @@ func (s_ ScriptCommandDescription) IsOptionalArgumentWithName(argumentName strin return rv } -// Returns the type of the command argument identified by the specified key. [Full Topic] +// Creates and returns an instance of the command object described by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1416163-typeforargumentwithname?language=objc -func (s_ ScriptCommandDescription) TypeForArgumentWithName(argumentName string) string { - rv := objc.Call[string](s_, objc.Sel("typeForArgumentWithName:"), argumentName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1418415-createcommandinstance?language=objc +func (s_ ScriptCommandDescription) CreateCommandInstance() ScriptCommand { + rv := objc.Call[ScriptCommand](s_, objc.Sel("createCommandInstance")) return rv } @@ -112,6 +104,14 @@ func (s_ ScriptCommandDescription) CreateCommandInstanceWithZone(zone unsafe.Poi return rv } +// Returns the type of the command argument identified by the specified key. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1416163-typeforargumentwithname?language=objc +func (s_ ScriptCommandDescription) TypeForArgumentWithName(argumentName string) string { + rv := objc.Call[string](s_, objc.Sel("typeForArgumentWithName:"), argumentName) + return rv +} + // Returns the Apple event code for the specified command argument of the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1414752-appleeventcodeforargumentwithnam?language=objc @@ -120,11 +120,11 @@ func (s_ ScriptCommandDescription) AppleEventCodeForArgumentWithName(argumentNam return rv } -// Returns the four-character code for the Apple event class of the receiver’s command. [Full Topic] +// Returns the names (or keys) for all arguments of the receiver’s command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1416191-appleeventclasscode?language=objc -func (s_ ScriptCommandDescription) AppleEventClassCode() uint { - rv := objc.Call[uint](s_, objc.Sel("appleEventClassCode")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1409125-argumentnames?language=objc +func (s_ ScriptCommandDescription) ArgumentNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("argumentNames")) return rv } @@ -136,6 +136,14 @@ func (s_ ScriptCommandDescription) AppleEventCode() uint { return rv } +// Returns the four-character code for the Apple event class of the receiver’s command. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1416191-appleeventclasscode?language=objc +func (s_ ScriptCommandDescription) AppleEventClassCode() uint { + rv := objc.Call[uint](s_, objc.Sel("appleEventClassCode")) + return rv +} + // Returns the Apple event code that identifies the command’s return type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1408166-appleeventcodeforreturntype?language=objc @@ -144,19 +152,19 @@ func (s_ ScriptCommandDescription) AppleEventCodeForReturnType() uint { return rv } -// Returns the return type of the command. [Full Topic] +// Returns the name of the suite that contains the command described by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1410754-returntype?language=objc -func (s_ ScriptCommandDescription) ReturnType() string { - rv := objc.Call[string](s_, objc.Sel("returnType")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1413657-suitename?language=objc +func (s_ ScriptCommandDescription) SuiteName() string { + rv := objc.Call[string](s_, objc.Sel("suiteName")) return rv } -// Returns the names (or keys) for all arguments of the receiver’s command. [Full Topic] +// Returns the name of the class that will be instantiated to handle the command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1409125-argumentnames?language=objc -func (s_ ScriptCommandDescription) ArgumentNames() []string { - rv := objc.Call[[]string](s_, objc.Sel("argumentNames")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1417478-commandclassname?language=objc +func (s_ ScriptCommandDescription) CommandClassName() string { + rv := objc.Call[string](s_, objc.Sel("commandClassName")) return rv } @@ -168,18 +176,10 @@ func (s_ ScriptCommandDescription) CommandName() string { return rv } -// Returns the name of the suite that contains the command described by the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1413657-suitename?language=objc -func (s_ ScriptCommandDescription) SuiteName() string { - rv := objc.Call[string](s_, objc.Sel("suiteName")) - return rv -} - -// Returns the name of the class that will be instantiated to handle the command. [Full Topic] +// Returns the return type of the command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1417478-commandclassname?language=objc -func (s_ ScriptCommandDescription) CommandClassName() string { - rv := objc.Call[string](s_, objc.Sel("commandClassName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1410754-returntype?language=objc +func (s_ ScriptCommandDescription) ReturnType() string { + rv := objc.Call[string](s_, objc.Sel("returnType")) return rv } diff --git a/macos/foundation/script_object_specifier.gen.go b/macos/foundation/script_object_specifier.gen.go index 7b7e0e8d..ebf085ac 100644 --- a/macos/foundation/script_object_specifier.gen.go +++ b/macos/foundation/script_object_specifier.gen.go @@ -18,26 +18,26 @@ type _ScriptObjectSpecifierClass struct { // An interface definition for the [ScriptObjectSpecifier] class. type IScriptObjectSpecifier interface { objc.IObject - IndicesOfObjectsByEvaluatingWithContainerCount(container objc.IObject, count *int) *int ObjectsByEvaluatingWithContainers(containers objc.IObject) objc.Object - EvaluationErrorSpecifier() ScriptObjectSpecifier - Descriptor() AppleEventDescriptor - ChildSpecifier() ScriptObjectSpecifier - SetChildSpecifier(value IScriptObjectSpecifier) + IndicesOfObjectsByEvaluatingWithContainerCount(container objc.IObject, count *int) *int + ContainerIsObjectBeingTested() bool + SetContainerIsObjectBeingTested(value bool) + ContainerSpecifier() ScriptObjectSpecifier + SetContainerSpecifier(value IScriptObjectSpecifier) ContainerIsRangeContainerObject() bool SetContainerIsRangeContainerObject(value bool) - ContainerClassDescription() ScriptClassDescription - SetContainerClassDescription(value IScriptClassDescription) Key() string SetKey(value string) KeyClassDescription() ScriptClassDescription - ContainerSpecifier() ScriptObjectSpecifier - SetContainerSpecifier(value IScriptObjectSpecifier) - ContainerIsObjectBeingTested() bool - SetContainerIsObjectBeingTested(value bool) + ContainerClassDescription() ScriptClassDescription + SetContainerClassDescription(value IScriptClassDescription) + EvaluationErrorSpecifier() ScriptObjectSpecifier + ObjectsByEvaluatingSpecifier() objc.Object + ChildSpecifier() ScriptObjectSpecifier + SetChildSpecifier(value IScriptObjectSpecifier) + Descriptor() AppleEventDescriptor EvaluationErrorNumber() int SetEvaluationErrorNumber(value int) - ObjectsByEvaluatingSpecifier() objc.Object } // An abstract class used to represent natural language expressions. [Full Topic] @@ -101,6 +101,14 @@ func (s_ ScriptObjectSpecifier) Init() ScriptObjectSpecifier { return rv } +// Returns the actual object or objects specified by the receiver as evaluated in the context of given container object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1409842-objectsbyevaluatingwithcontainer?language=objc +func (s_ ScriptObjectSpecifier) ObjectsByEvaluatingWithContainers(containers objc.IObject) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("objectsByEvaluatingWithContainers:"), containers) + return rv +} + // Returns a new object specifier for an Apple event descriptor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1409779-objectspecifierwithdescriptor?language=objc @@ -124,43 +132,34 @@ func (s_ ScriptObjectSpecifier) IndicesOfObjectsByEvaluatingWithContainerCount(c return rv } -// Returns the actual object or objects specified by the receiver as evaluated in the context of given container object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1409842-objectsbyevaluatingwithcontainer?language=objc -func (s_ ScriptObjectSpecifier) ObjectsByEvaluatingWithContainers(containers objc.IObject) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("objectsByEvaluatingWithContainers:"), containers) - return rv -} - -// Returns the object specifier in which an evaluation error occurred. [Full Topic] +// Sets whether the receiver’s container should be an object involved in a filter reference or the top-level object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1416385-evaluationerrorspecifier?language=objc -func (s_ ScriptObjectSpecifier) EvaluationErrorSpecifier() ScriptObjectSpecifier { - rv := objc.Call[ScriptObjectSpecifier](s_, objc.Sel("evaluationErrorSpecifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1410887-containerisobjectbeingtested?language=objc +func (s_ ScriptObjectSpecifier) ContainerIsObjectBeingTested() bool { + rv := objc.Call[bool](s_, objc.Sel("containerIsObjectBeingTested")) return rv } -// Returns an Apple event descriptor that represents the receiver. [Full Topic] +// Sets whether the receiver’s container should be an object involved in a filter reference or the top-level object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1410018-descriptor?language=objc -func (s_ ScriptObjectSpecifier) Descriptor() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](s_, objc.Sel("descriptor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1410887-containerisobjectbeingtested?language=objc +func (s_ ScriptObjectSpecifier) SetContainerIsObjectBeingTested(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setContainerIsObjectBeingTested:"), value) } -// Sets the receiver’s child reference. [Full Topic] +// Sets the container specifier of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1409882-childspecifier?language=objc -func (s_ ScriptObjectSpecifier) ChildSpecifier() ScriptObjectSpecifier { - rv := objc.Call[ScriptObjectSpecifier](s_, objc.Sel("childSpecifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1414424-containerspecifier?language=objc +func (s_ ScriptObjectSpecifier) ContainerSpecifier() ScriptObjectSpecifier { + rv := objc.Call[ScriptObjectSpecifier](s_, objc.Sel("containerSpecifier")) return rv } -// Sets the receiver’s child reference. [Full Topic] +// Sets the container specifier of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1409882-childspecifier?language=objc -func (s_ ScriptObjectSpecifier) SetChildSpecifier(value IScriptObjectSpecifier) { - objc.Call[objc.Void](s_, objc.Sel("setChildSpecifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1414424-containerspecifier?language=objc +func (s_ ScriptObjectSpecifier) SetContainerSpecifier(value IScriptObjectSpecifier) { + objc.Call[objc.Void](s_, objc.Sel("setContainerSpecifier:"), value) } // Sets whether the receiver’s container is to be the container for a range specifier or a top-level object. [Full Topic] @@ -178,21 +177,6 @@ func (s_ ScriptObjectSpecifier) SetContainerIsRangeContainerObject(value bool) { objc.Call[objc.Void](s_, objc.Sel("setContainerIsRangeContainerObject:"), value) } -// Sets the class description of the receiver’s container specifier to a given specifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1413179-containerclassdescription?language=objc -func (s_ ScriptObjectSpecifier) ContainerClassDescription() ScriptClassDescription { - rv := objc.Call[ScriptClassDescription](s_, objc.Sel("containerClassDescription")) - return rv -} - -// Sets the class description of the receiver’s container specifier to a given specifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1413179-containerclassdescription?language=objc -func (s_ ScriptObjectSpecifier) SetContainerClassDescription(value IScriptClassDescription) { - objc.Call[objc.Void](s_, objc.Sel("setContainerClassDescription:"), value) -} - // Sets the key of the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1412986-key?language=objc @@ -216,34 +200,58 @@ func (s_ ScriptObjectSpecifier) KeyClassDescription() ScriptClassDescription { return rv } -// Sets the container specifier of the receiver. [Full Topic] +// Sets the class description of the receiver’s container specifier to a given specifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1414424-containerspecifier?language=objc -func (s_ ScriptObjectSpecifier) ContainerSpecifier() ScriptObjectSpecifier { - rv := objc.Call[ScriptObjectSpecifier](s_, objc.Sel("containerSpecifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1413179-containerclassdescription?language=objc +func (s_ ScriptObjectSpecifier) ContainerClassDescription() ScriptClassDescription { + rv := objc.Call[ScriptClassDescription](s_, objc.Sel("containerClassDescription")) return rv } -// Sets the container specifier of the receiver. [Full Topic] +// Sets the class description of the receiver’s container specifier to a given specifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1414424-containerspecifier?language=objc -func (s_ ScriptObjectSpecifier) SetContainerSpecifier(value IScriptObjectSpecifier) { - objc.Call[objc.Void](s_, objc.Sel("setContainerSpecifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1413179-containerclassdescription?language=objc +func (s_ ScriptObjectSpecifier) SetContainerClassDescription(value IScriptClassDescription) { + objc.Call[objc.Void](s_, objc.Sel("setContainerClassDescription:"), value) } -// Sets whether the receiver’s container should be an object involved in a filter reference or the top-level object. [Full Topic] +// Returns the object specifier in which an evaluation error occurred. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1410887-containerisobjectbeingtested?language=objc -func (s_ ScriptObjectSpecifier) ContainerIsObjectBeingTested() bool { - rv := objc.Call[bool](s_, objc.Sel("containerIsObjectBeingTested")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1416385-evaluationerrorspecifier?language=objc +func (s_ ScriptObjectSpecifier) EvaluationErrorSpecifier() ScriptObjectSpecifier { + rv := objc.Call[ScriptObjectSpecifier](s_, objc.Sel("evaluationErrorSpecifier")) return rv } -// Sets whether the receiver’s container should be an object involved in a filter reference or the top-level object. [Full Topic] +// Returns the actual object represented by the nested series of object specifiers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1410887-containerisobjectbeingtested?language=objc -func (s_ ScriptObjectSpecifier) SetContainerIsObjectBeingTested(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setContainerIsObjectBeingTested:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1413391-objectsbyevaluatingspecifier?language=objc +func (s_ ScriptObjectSpecifier) ObjectsByEvaluatingSpecifier() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("objectsByEvaluatingSpecifier")) + return rv +} + +// Sets the receiver’s child reference. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1409882-childspecifier?language=objc +func (s_ ScriptObjectSpecifier) ChildSpecifier() ScriptObjectSpecifier { + rv := objc.Call[ScriptObjectSpecifier](s_, objc.Sel("childSpecifier")) + return rv +} + +// Sets the receiver’s child reference. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1409882-childspecifier?language=objc +func (s_ ScriptObjectSpecifier) SetChildSpecifier(value IScriptObjectSpecifier) { + objc.Call[objc.Void](s_, objc.Sel("setChildSpecifier:"), value) +} + +// Returns an Apple event descriptor that represents the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1410018-descriptor?language=objc +func (s_ ScriptObjectSpecifier) Descriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](s_, objc.Sel("descriptor")) + return rv } // Sets the value of the evaluation error. [Full Topic] @@ -260,11 +268,3 @@ func (s_ ScriptObjectSpecifier) EvaluationErrorNumber() int { func (s_ ScriptObjectSpecifier) SetEvaluationErrorNumber(value int) { objc.Call[objc.Void](s_, objc.Sel("setEvaluationErrorNumber:"), value) } - -// Returns the actual object represented by the nested series of object specifiers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1413391-objectsbyevaluatingspecifier?language=objc -func (s_ ScriptObjectSpecifier) ObjectsByEvaluatingSpecifier() objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("objectsByEvaluatingSpecifier")) - return rv -} diff --git a/macos/foundation/script_suite_registry.gen.go b/macos/foundation/script_suite_registry.gen.go index e72d93cf..b6efa8c2 100644 --- a/macos/foundation/script_suite_registry.gen.go +++ b/macos/foundation/script_suite_registry.gen.go @@ -18,18 +18,18 @@ type _ScriptSuiteRegistryClass struct { // An interface definition for the [ScriptSuiteRegistry] class. type IScriptSuiteRegistry interface { objc.IObject - AppleEventCodeForSuite(suiteName string) uint - ClassDescriptionWithAppleEventCode(appleEventCode uint) ScriptClassDescription - CommandDescriptionWithAppleEventClassAndAppleEventCode(appleEventClassCode uint, appleEventIDCode uint) ScriptCommandDescription - ClassDescriptionsInSuite(suiteName string) map[string]ScriptClassDescription - LoadSuiteWithDictionaryFromBundle(suiteDeclaration Dictionary, bundle IBundle) - CommandDescriptionsInSuite(suiteName string) map[string]ScriptCommandDescription - SuiteForAppleEventCode(appleEventCode uint) string RegisterClassDescription(classDescription IScriptClassDescription) - AeteResource(languageName string) []byte + RegisterCommandDescription(commandDescription IScriptCommandDescription) + SuiteForAppleEventCode(appleEventCode uint) string LoadSuitesFromBundle(bundle IBundle) + CommandDescriptionsInSuite(suiteName string) map[string]ScriptCommandDescription + ClassDescriptionsInSuite(suiteName string) map[string]ScriptClassDescription + ClassDescriptionWithAppleEventCode(appleEventCode uint) ScriptClassDescription + LoadSuiteWithDictionaryFromBundle(suiteDeclaration Dictionary, bundle IBundle) + AppleEventCodeForSuite(suiteName string) uint BundleForSuite(suiteName string) Bundle - RegisterCommandDescription(commandDescription IScriptCommandDescription) + AeteResource(languageName string) []byte + CommandDescriptionWithAppleEventClassAndAppleEventCode(appleEventClassCode uint, appleEventIDCode uint) ScriptCommandDescription SuiteNames() []string } @@ -66,14 +66,6 @@ func (s_ ScriptSuiteRegistry) Init() ScriptSuiteRegistry { return rv } -// Returns the Apple event code associated with the suite named suiteName, such as ‘core’ for the Core suite. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1412492-appleeventcodeforsuite?language=objc -func (s_ ScriptSuiteRegistry) AppleEventCodeForSuite(suiteName string) uint { - rv := objc.Call[uint](s_, objc.Sel("appleEventCodeForSuite:"), suiteName) - return rv -} - // Returns the single, shared instance of NSScriptSuiteRegistry, creating it first if it doesn’t exist. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1417166-sharedscriptsuiteregistry?language=objc @@ -89,33 +81,40 @@ func ScriptSuiteRegistry_SharedScriptSuiteRegistry() ScriptSuiteRegistry { return ScriptSuiteRegistryClass.SharedScriptSuiteRegistry() } -// Returns the class description associated with the given four-character Apple event code, code. [Full Topic] +// Registers class description classDescription for use by Cocoa’s built-in scripting support by storing it in a per-suite internal dictionary under the class name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1411184-classdescriptionwithappleeventco?language=objc -func (s_ ScriptSuiteRegistry) ClassDescriptionWithAppleEventCode(appleEventCode uint) ScriptClassDescription { - rv := objc.Call[ScriptClassDescription](s_, objc.Sel("classDescriptionWithAppleEventCode:"), appleEventCode) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1412869-registerclassdescription?language=objc +func (s_ ScriptSuiteRegistry) RegisterClassDescription(classDescription IScriptClassDescription) { + objc.Call[objc.Void](s_, objc.Sel("registerClassDescription:"), classDescription) } -// Sets the single, shared instance of NSScriptSuiteRegistry to registry. [Full Topic] +// Registers command description commandDesc for use by Cocoa’s built-in scripting support by storing it in a per-suite internal dictionary under the command name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1409955-setsharedscriptsuiteregistry?language=objc -func (sc _ScriptSuiteRegistryClass) SetSharedScriptSuiteRegistry(registry IScriptSuiteRegistry) { - objc.Call[objc.Void](sc, objc.Sel("setSharedScriptSuiteRegistry:"), registry) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1408858-registercommanddescription?language=objc +func (s_ ScriptSuiteRegistry) RegisterCommandDescription(commandDescription IScriptCommandDescription) { + objc.Call[objc.Void](s_, objc.Sel("registerCommandDescription:"), commandDescription) } -// Sets the single, shared instance of NSScriptSuiteRegistry to registry. [Full Topic] +// Returns the name of the suite definition associated with the given four-character Apple event code, code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1409955-setsharedscriptsuiteregistry?language=objc -func ScriptSuiteRegistry_SetSharedScriptSuiteRegistry(registry IScriptSuiteRegistry) { - ScriptSuiteRegistryClass.SetSharedScriptSuiteRegistry(registry) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1415178-suiteforappleeventcode?language=objc +func (s_ ScriptSuiteRegistry) SuiteForAppleEventCode(appleEventCode uint) string { + rv := objc.Call[string](s_, objc.Sel("suiteForAppleEventCode:"), appleEventCode) + return rv } -// Returns the command description identified by a suite’s four-character Apple event code of the class (eventClass) and the four-character Apple event code of the command (commandCode). [Full Topic] +// Loads the suite definitions in bundle aBundle, invoking loadSuiteWithDictionary:fromBundle: for each suite found. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1416734-commanddescriptionwithappleevent?language=objc -func (s_ ScriptSuiteRegistry) CommandDescriptionWithAppleEventClassAndAppleEventCode(appleEventClassCode uint, appleEventIDCode uint) ScriptCommandDescription { - rv := objc.Call[ScriptCommandDescription](s_, objc.Sel("commandDescriptionWithAppleEventClass:andAppleEventCode:"), appleEventClassCode, appleEventIDCode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1410575-loadsuitesfrombundle?language=objc +func (s_ ScriptSuiteRegistry) LoadSuitesFromBundle(bundle IBundle) { + objc.Call[objc.Void](s_, objc.Sel("loadSuitesFromBundle:"), bundle) +} + +// Returns the command descriptions contained in the suite identified by suiteName. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1416396-commanddescriptionsinsuite?language=objc +func (s_ ScriptSuiteRegistry) CommandDescriptionsInSuite(suiteName string) map[string]ScriptCommandDescription { + rv := objc.Call[map[string]ScriptCommandDescription](s_, objc.Sel("commandDescriptionsInSuite:"), suiteName) return rv } @@ -127,6 +126,14 @@ func (s_ ScriptSuiteRegistry) ClassDescriptionsInSuite(suiteName string) map[str return rv } +// Returns the class description associated with the given four-character Apple event code, code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1411184-classdescriptionwithappleeventco?language=objc +func (s_ ScriptSuiteRegistry) ClassDescriptionWithAppleEventCode(appleEventCode uint) ScriptClassDescription { + rv := objc.Call[ScriptClassDescription](s_, objc.Sel("classDescriptionWithAppleEventCode:"), appleEventCode) + return rv +} + // Loads the suite definition encapsulated in dictionary; previously, this suite definition was parsed from a .scriptSuite property list contained in a framework or in bundle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1413397-loadsuitewithdictionary?language=objc @@ -134,29 +141,22 @@ func (s_ ScriptSuiteRegistry) LoadSuiteWithDictionaryFromBundle(suiteDeclaration objc.Call[objc.Void](s_, objc.Sel("loadSuiteWithDictionary:fromBundle:"), suiteDeclaration, bundle) } -// Returns the command descriptions contained in the suite identified by suiteName. [Full Topic] +// Returns the Apple event code associated with the suite named suiteName, such as ‘core’ for the Core suite. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1416396-commanddescriptionsinsuite?language=objc -func (s_ ScriptSuiteRegistry) CommandDescriptionsInSuite(suiteName string) map[string]ScriptCommandDescription { - rv := objc.Call[map[string]ScriptCommandDescription](s_, objc.Sel("commandDescriptionsInSuite:"), suiteName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1412492-appleeventcodeforsuite?language=objc +func (s_ ScriptSuiteRegistry) AppleEventCodeForSuite(suiteName string) uint { + rv := objc.Call[uint](s_, objc.Sel("appleEventCodeForSuite:"), suiteName) return rv } -// Returns the name of the suite definition associated with the given four-character Apple event code, code. [Full Topic] +// Returns the bundle containing the suite-definition property list (extension .scriptSuite) identified by suiteName. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1415178-suiteforappleeventcode?language=objc -func (s_ ScriptSuiteRegistry) SuiteForAppleEventCode(appleEventCode uint) string { - rv := objc.Call[string](s_, objc.Sel("suiteForAppleEventCode:"), appleEventCode) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1414868-bundleforsuite?language=objc +func (s_ ScriptSuiteRegistry) BundleForSuite(suiteName string) Bundle { + rv := objc.Call[Bundle](s_, objc.Sel("bundleForSuite:"), suiteName) return rv } -// Registers class description classDescription for use by Cocoa’s built-in scripting support by storing it in a per-suite internal dictionary under the class name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1412869-registerclassdescription?language=objc -func (s_ ScriptSuiteRegistry) RegisterClassDescription(classDescription IScriptClassDescription) { - objc.Call[objc.Void](s_, objc.Sel("registerClassDescription:"), classDescription) -} - // Returns an NSData object that contains data in 'aete' resource format describing the scriptability information currently known to the application. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1409186-aeteresource?language=objc @@ -165,26 +165,26 @@ func (s_ ScriptSuiteRegistry) AeteResource(languageName string) []byte { return rv } -// Loads the suite definitions in bundle aBundle, invoking [foundation/nsscriptsuiteregistry/loadsuitewithdictionary] for each suite found. [Full Topic] +// Returns the command description identified by a suite’s four-character Apple event code of the class (eventClass) and the four-character Apple event code of the command (commandCode). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1410575-loadsuitesfrombundle?language=objc -func (s_ ScriptSuiteRegistry) LoadSuitesFromBundle(bundle IBundle) { - objc.Call[objc.Void](s_, objc.Sel("loadSuitesFromBundle:"), bundle) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1416734-commanddescriptionwithappleevent?language=objc +func (s_ ScriptSuiteRegistry) CommandDescriptionWithAppleEventClassAndAppleEventCode(appleEventClassCode uint, appleEventIDCode uint) ScriptCommandDescription { + rv := objc.Call[ScriptCommandDescription](s_, objc.Sel("commandDescriptionWithAppleEventClass:andAppleEventCode:"), appleEventClassCode, appleEventIDCode) + return rv } -// Returns the bundle containing the suite-definition property list (extension .scriptSuite) identified by suiteName. [Full Topic] +// Sets the single, shared instance of NSScriptSuiteRegistry to registry. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1414868-bundleforsuite?language=objc -func (s_ ScriptSuiteRegistry) BundleForSuite(suiteName string) Bundle { - rv := objc.Call[Bundle](s_, objc.Sel("bundleForSuite:"), suiteName) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1409955-setsharedscriptsuiteregistry?language=objc +func (sc _ScriptSuiteRegistryClass) SetSharedScriptSuiteRegistry(registry IScriptSuiteRegistry) { + objc.Call[objc.Void](sc, objc.Sel("setSharedScriptSuiteRegistry:"), registry) } -// Registers command description commandDesc for use by Cocoa’s built-in scripting support by storing it in a per-suite internal dictionary under the command name. [Full Topic] +// Sets the single, shared instance of NSScriptSuiteRegistry to registry. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1408858-registercommanddescription?language=objc -func (s_ ScriptSuiteRegistry) RegisterCommandDescription(commandDescription IScriptCommandDescription) { - objc.Call[objc.Void](s_, objc.Sel("registerCommandDescription:"), commandDescription) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1409955-setsharedscriptsuiteregistry?language=objc +func ScriptSuiteRegistry_SetSharedScriptSuiteRegistry(registry IScriptSuiteRegistry) { + ScriptSuiteRegistryClass.SetSharedScriptSuiteRegistry(registry) } // Returns the names of the suite definitions currently loaded by the application. [Full Topic] diff --git a/macos/foundation/set.gen.go b/macos/foundation/set.gen.go index ad6a2da9..ec37ee31 100644 --- a/macos/foundation/set.gen.go +++ b/macos/foundation/set.gen.go @@ -18,34 +18,32 @@ type _SetClass struct { // An interface definition for the [Set] class. type ISet interface { objc.IObject + ObjectEnumerator() Enumerator + ObjectsPassingTest(predicate func(obj objc.Object, stop *bool) bool) Set + EnumerateObjectsUsingBlock(block func(obj objc.Object, stop *bool)) SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object + FilteredSetUsingPredicate(predicate IPredicate) Set Member(object objc.IObject) objc.Object - MakeObjectsPerformSelector(aSelector objc.Selector) - EnumerateIndexPathsWithOptionsUsingBlock(opts EnumerationOptions, block func(indexPath IndexPath, stop *bool)) - SetByAddingObjectsFromSet(other ISet) Set - EnumerateObjectsUsingBlock(block func(obj objc.Object, stop *bool)) IsEqualToSet(otherSet ISet) bool - DescriptionWithLocale(locale objc.IObject) string - SetByAddingObject(anObject objc.IObject) Set - RemoveObserverForKeyPath(observer objc.IObject, keyPath string) - MakeObjectsPerformSelectorWithObject(aSelector objc.Selector, argument objc.IObject) - ValueForKey(key string) objc.Object + SetByAddingObjectsFromArray(other []objc.IObject) Set EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, stop *bool)) - RemoveObserverForKeyPathContext(observer objc.IObject, keyPath string, context unsafe.Pointer) - ObjectsPassingTest(predicate func(obj objc.Object, stop *bool) bool) Set - FilteredSetUsingPredicate(predicate IPredicate) Set - AddObserverForKeyPathOptionsContext(observer objc.IObject, keyPath string, options KeyValueObservingOptions, context unsafe.Pointer) + EnumerateIndexPathsWithOptionsUsingBlock(opts EnumerationOptions, block func(indexPath IndexPath, stop *bool)) + SetByAddingObject(anObject objc.IObject) Set ContainsObject(anObject objc.IObject) bool - ObjectEnumerator() Enumerator - SetValueForKey(value objc.IObject, key string) - IsSubsetOfSet(otherSet ISet) bool - SetByAddingObjectsFromArray(other []objc.IObject) Set + IntersectsSet(otherSet ISet) bool + MakeObjectsPerformSelector(aSelector objc.Selector) ObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, stop *bool) bool) Set + IsSubsetOfSet(otherSet ISet) bool + SetByAddingObjectsFromSet(other ISet) Set + RemoveObserverForKeyPathContext(observer objc.IObject, keyPath string, context unsafe.Pointer) + DescriptionWithLocale(locale objc.IObject) string AnyObject() objc.Object - IntersectsSet(otherSet ISet) bool - AllObjects() []objc.Object + SetValueForKey(value objc.IObject, key string) + AddObserverForKeyPathOptionsContext(observer objc.IObject, keyPath string, options KeyValueObservingOptions, context unsafe.Pointer) + ValueForKey(key string) objc.Object Description() string Count() uint + AllObjects() []objc.Object } // A static, unordered collection of unique objects. [Full Topic] @@ -61,18 +59,16 @@ func SetFrom(ptr unsafe.Pointer) Set { } } -func (s_ Set) InitWithSetCopyItems(set ISet, flag bool) Set { - rv := objc.Call[Set](s_, objc.Sel("initWithSet:copyItems:"), set, flag) +func (sc _SetClass) Set() Set { + rv := objc.Call[Set](sc, objc.Sel("set")) return rv } -// Initializes a newly allocated set and adds to it members of another given set. [Full Topic] +// Creates and returns an empty set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1408407-initwithset?language=objc -func NewSetWithSetCopyItems(set ISet, flag bool) Set { - instance := SetClass.Alloc().InitWithSetCopyItems(set, flag) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574818-set?language=objc +func Set_Set() Set { + return SetClass.Set() } func (s_ Set) InitWithObjects(firstObj objc.IObject, args ...any) Set { @@ -89,54 +85,28 @@ func NewSetWithObjects(firstObj objc.IObject, args ...any) Set { return instance } -func (sc _SetClass) SetWithObject(object objc.IObject) Set { - rv := objc.Call[Set](sc, objc.Sel("setWithObject:"), object) - return rv -} - -// Creates and returns a set that contains a single given object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1415878-setwithobject?language=objc -func Set_SetWithObject(object objc.IObject) Set { - return SetClass.SetWithObject(object) -} - -func (sc _SetClass) SetWithObjects(firstObj objc.IObject, args ...any) Set { - rv := objc.Call[Set](sc, objc.Sel("setWithObjects:"), append([]any{firstObj}, args...)...) - return rv -} - -// Creates and returns a set containing the objects in a given argument list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574825-setwithobjects?language=objc -func Set_SetWithObjects(firstObj objc.IObject, args ...any) Set { - return SetClass.SetWithObjects(firstObj, args...) -} - -func (sc _SetClass) SetWithObjectsCount(objects unsafe.Pointer, cnt uint) Set { - rv := objc.Call[Set](sc, objc.Sel("setWithObjects:count:"), objects, cnt) +func (sc _SetClass) SetWithSet(set ISet) Set { + rv := objc.Call[Set](sc, objc.Sel("setWithSet:"), set) return rv } -// Creates and returns a set containing a specified number of objects from a given C array of objects. [Full Topic] +// Creates and returns a set containing the objects from another set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574824-setwithobjects?language=objc -func Set_SetWithObjectsCount(objects unsafe.Pointer, cnt uint) Set { - return SetClass.SetWithObjectsCount(objects, cnt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574817-setwithset?language=objc +func Set_SetWithSet(set ISet) Set { + return SetClass.SetWithSet(set) } -func (s_ Set) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) Set { - rv := objc.Call[Set](s_, objc.Sel("initWithObjects:count:"), objects, cnt) +func (sc _SetClass) SetWithObject(object objc.IObject) Set { + rv := objc.Call[Set](sc, objc.Sel("setWithObject:"), object) return rv } -// Initializes a newly allocated set with a specified number of objects from a given C array of objects. [Full Topic] +// Creates and returns a set that contains a single given object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1407458-initwithobjects?language=objc -func NewSetWithObjectsCount(objects unsafe.Pointer, cnt uint) Set { - instance := SetClass.Alloc().InitWithObjectsCount(objects, cnt) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1415878-setwithobject?language=objc +func Set_SetWithObject(object objc.IObject) Set { + return SetClass.SetWithObject(object) } func (s_ Set) InitWithArray(array []objc.IObject) Set { @@ -153,20 +123,6 @@ func NewSetWithArray(array []objc.IObject) Set { return instance } -func (s_ Set) InitWithSet(set ISet) Set { - rv := objc.Call[Set](s_, objc.Sel("initWithSet:"), set) - return rv -} - -// Initializes a newly allocated set and adds to it objects from another given set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1410612-initwithset?language=objc -func NewSetWithSet(set ISet) Set { - instance := SetClass.Alloc().InitWithSet(set) - instance.Autorelease() - return instance -} - func (sc _SetClass) SetWithArray(array []objc.IObject) Set { rv := objc.Call[Set](sc, objc.Sel("setWithArray:"), array) return rv @@ -179,57 +135,59 @@ func Set_SetWithArray(array []objc.IObject) Set { return SetClass.SetWithArray(array) } -func (sc _SetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) Set { - rv := objc.Call[Set](sc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) +func (sc _SetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) Set { + rv := objc.Call[Set](sc, objc.Sel("setWithCollectionViewIndexPath:"), indexPath) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528255-setwithcollectionviewindexpaths?language=objc -func Set_SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) Set { - return SetClass.SetWithCollectionViewIndexPaths(indexPaths) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528161-setwithcollectionviewindexpath?language=objc +func Set_SetWithCollectionViewIndexPath(indexPath IIndexPath) Set { + return SetClass.SetWithCollectionViewIndexPath(indexPath) } -func (sc _SetClass) Set() Set { - rv := objc.Call[Set](sc, objc.Sel("set")) +func (sc _SetClass) SetWithObjectsCount(objects unsafe.Pointer, cnt uint) Set { + rv := objc.Call[Set](sc, objc.Sel("setWithObjects:count:"), objects, cnt) return rv } -// Creates and returns an empty set. [Full Topic] +// Creates and returns a set containing a specified number of objects from a given C array of objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574818-set?language=objc -func Set_Set() Set { - return SetClass.Set() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574824-setwithobjects?language=objc +func Set_SetWithObjectsCount(objects unsafe.Pointer, cnt uint) Set { + return SetClass.SetWithObjectsCount(objects, cnt) } -func (sc _SetClass) SetWithSet(set ISet) Set { - rv := objc.Call[Set](sc, objc.Sel("setWithSet:"), set) +func (sc _SetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) Set { + rv := objc.Call[Set](sc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) return rv } -// Creates and returns a set containing the objects from another set. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574817-setwithset?language=objc -func Set_SetWithSet(set ISet) Set { - return SetClass.SetWithSet(set) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528255-setwithcollectionviewindexpaths?language=objc +func Set_SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) Set { + return SetClass.SetWithCollectionViewIndexPaths(indexPaths) } -func (s_ Set) Init() Set { - rv := objc.Call[Set](s_, objc.Sel("init")) +func (s_ Set) InitWithSet(set ISet) Set { + rv := objc.Call[Set](s_, objc.Sel("initWithSet:"), set) return rv } -func (sc _SetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) Set { - rv := objc.Call[Set](sc, objc.Sel("setWithCollectionViewIndexPath:"), indexPath) - return rv +// Initializes a newly allocated set and adds to it objects from another given set. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1410612-initwithset?language=objc +func NewSetWithSet(set ISet) Set { + instance := SetClass.Alloc().InitWithSet(set) + instance.Autorelease() + return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528161-setwithcollectionviewindexpath?language=objc -func Set_SetWithCollectionViewIndexPath(indexPath IIndexPath) Set { - return SetClass.SetWithCollectionViewIndexPath(indexPath) +func (s_ Set) Init() Set { + rv := objc.Call[Set](s_, objc.Sel("init")) + return rv } func (sc _SetClass) Alloc() Set { @@ -247,41 +205,19 @@ func NewSet() Set { return SetClass.New() } -// Returns an array of the set’s content sorted as specified by a given array of sort descriptors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1416427-sortedarrayusingdescriptors?language=objc -func (s_ Set) SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object { - rv := objc.Call[[]objc.Object](s_, objc.Sel("sortedArrayUsingDescriptors:"), sortDescriptors) - return rv -} - -// Determines whether a given object is present in the set, and returns that object if it is. [Full Topic] +// Returns an enumerator object that lets you access each object in the set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1412896-member?language=objc -func (s_ Set) Member(object objc.IObject) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("member:"), object) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1412373-objectenumerator?language=objc +func (s_ Set) ObjectEnumerator() Enumerator { + rv := objc.Call[Enumerator](s_, objc.Sel("objectEnumerator")) return rv } -// Sends a message specified by a given selector to each object in the set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574819-makeobjectsperformselector?language=objc -func (s_ Set) MakeObjectsPerformSelector(aSelector objc.Selector) { - objc.Call[objc.Void](s_, objc.Sel("makeObjectsPerformSelector:"), aSelector) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528216-enumerateindexpathswithoptions?language=objc -func (s_ Set) EnumerateIndexPathsWithOptionsUsingBlock(opts EnumerationOptions, block func(indexPath IndexPath, stop *bool)) { - objc.Call[objc.Void](s_, objc.Sel("enumerateIndexPathsWithOptions:usingBlock:"), opts, block) -} - -// Returns a new set formed by adding the objects in a given set to the receiving set. [Full Topic] +// Returns a set of objects that pass a test in a given block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1408217-setbyaddingobjectsfromset?language=objc -func (s_ Set) SetByAddingObjectsFromSet(other ISet) Set { - rv := objc.Call[Set](s_, objc.Sel("setByAddingObjectsFromSet:"), other) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1414392-objectspassingtest?language=objc +func (s_ Set) ObjectsPassingTest(predicate func(obj objc.Object, stop *bool) bool) Set { + rv := objc.Call[Set](s_, objc.Sel("objectsPassingTest:"), predicate) return rv } @@ -292,49 +228,43 @@ func (s_ Set) EnumerateObjectsUsingBlock(block func(obj objc.Object, stop *bool) objc.Call[objc.Void](s_, objc.Sel("enumerateObjectsUsingBlock:"), block) } -// Compares the receiving set to another set. [Full Topic] +// Returns an array of the set’s content sorted as specified by a given array of sort descriptors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1414829-isequaltoset?language=objc -func (s_ Set) IsEqualToSet(otherSet ISet) bool { - rv := objc.Call[bool](s_, objc.Sel("isEqualToSet:"), otherSet) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1416427-sortedarrayusingdescriptors?language=objc +func (s_ Set) SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object { + rv := objc.Call[[]objc.Object](s_, objc.Sel("sortedArrayUsingDescriptors:"), sortDescriptors) return rv } -// Returns a string that represents the contents of the set, formatted as a property list. [Full Topic] +// Evaluates a given predicate against each object in the receiving set and returns a new set containing the objects for which the predicate returns true. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1417205-descriptionwithlocale?language=objc -func (s_ Set) DescriptionWithLocale(locale objc.IObject) string { - rv := objc.Call[string](s_, objc.Sel("descriptionWithLocale:"), locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1416324-filteredsetusingpredicate?language=objc +func (s_ Set) FilteredSetUsingPredicate(predicate IPredicate) Set { + rv := objc.Call[Set](s_, objc.Sel("filteredSetUsingPredicate:"), predicate) return rv } -// Returns a new set formed by adding a given object to the receiving set. [Full Topic] +// Determines whether a given object is present in the set, and returns that object if it is. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1416316-setbyaddingobject?language=objc -func (s_ Set) SetByAddingObject(anObject objc.IObject) Set { - rv := objc.Call[Set](s_, objc.Sel("setByAddingObject:"), anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1412896-member?language=objc +func (s_ Set) Member(object objc.IObject) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("member:"), object) return rv } -// Raises an exception. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1410212-removeobserver?language=objc -func (s_ Set) RemoveObserverForKeyPath(observer objc.IObject, keyPath string) { - objc.Call[objc.Void](s_, objc.Sel("removeObserver:forKeyPath:"), observer, keyPath) -} - -// Sends a message specified by a given selector to each object in the set. [Full Topic] +// Compares the receiving set to another set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574821-makeobjectsperformselector?language=objc -func (s_ Set) MakeObjectsPerformSelectorWithObject(aSelector objc.Selector, argument objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("makeObjectsPerformSelector:withObject:"), aSelector, argument) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1414829-isequaltoset?language=objc +func (s_ Set) IsEqualToSet(otherSet ISet) bool { + rv := objc.Call[bool](s_, objc.Sel("isEqualToSet:"), otherSet) + return rv } -// Return a set containing the results of invoking valueForKey: on each of the receiving set's members. [Full Topic] +// Returns a new set formed by adding the objects in a given array to the receiving set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1418386-valueforkey?language=objc -func (s_ Set) ValueForKey(key string) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("valueForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1418438-setbyaddingobjectsfromarray?language=objc +func (s_ Set) SetByAddingObjectsFromArray(other []objc.IObject) Set { + rv := objc.Call[Set](s_, objc.Sel("setByAddingObjectsFromArray:"), other) return rv } @@ -345,36 +275,21 @@ func (s_ Set) EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, blo objc.Call[objc.Void](s_, objc.Sel("enumerateObjectsWithOptions:usingBlock:"), opts, block) } -// Raises an exception. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1415413-removeobserver?language=objc -func (s_ Set) RemoveObserverForKeyPathContext(observer objc.IObject, keyPath string, context unsafe.Pointer) { - objc.Call[objc.Void](s_, objc.Sel("removeObserver:forKeyPath:context:"), observer, keyPath, context) -} - -// Returns a set of objects that pass a test in a given block. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1414392-objectspassingtest?language=objc -func (s_ Set) ObjectsPassingTest(predicate func(obj objc.Object, stop *bool) bool) Set { - rv := objc.Call[Set](s_, objc.Sel("objectsPassingTest:"), predicate) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528216-enumerateindexpathswithoptions?language=objc +func (s_ Set) EnumerateIndexPathsWithOptionsUsingBlock(opts EnumerationOptions, block func(indexPath IndexPath, stop *bool)) { + objc.Call[objc.Void](s_, objc.Sel("enumerateIndexPathsWithOptions:usingBlock:"), opts, block) } -// Evaluates a given predicate against each object in the receiving set and returns a new set containing the objects for which the predicate returns true. [Full Topic] +// Returns a new set formed by adding a given object to the receiving set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1416324-filteredsetusingpredicate?language=objc -func (s_ Set) FilteredSetUsingPredicate(predicate IPredicate) Set { - rv := objc.Call[Set](s_, objc.Sel("filteredSetUsingPredicate:"), predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1416316-setbyaddingobject?language=objc +func (s_ Set) SetByAddingObject(anObject objc.IObject) Set { + rv := objc.Call[Set](s_, objc.Sel("setByAddingObject:"), anObject) return rv } -// Raises an exception. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1414043-addobserver?language=objc -func (s_ Set) AddObserverForKeyPathOptionsContext(observer objc.IObject, keyPath string, options KeyValueObservingOptions, context unsafe.Pointer) { - objc.Call[objc.Void](s_, objc.Sel("addObserver:forKeyPath:options:context:"), observer, keyPath, options, context) -} - // Returns a Boolean value that indicates whether a given object is present in the set. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1414555-containsobject?language=objc @@ -383,19 +298,27 @@ func (s_ Set) ContainsObject(anObject objc.IObject) bool { return rv } -// Returns an enumerator object that lets you access each object in the set. [Full Topic] +// Returns a Boolean value that indicates whether at least one object in the receiving set is also present in another given set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1412373-objectenumerator?language=objc -func (s_ Set) ObjectEnumerator() Enumerator { - rv := objc.Call[Enumerator](s_, objc.Sel("objectEnumerator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1417472-intersectsset?language=objc +func (s_ Set) IntersectsSet(otherSet ISet) bool { + rv := objc.Call[bool](s_, objc.Sel("intersectsSet:"), otherSet) return rv } -// Invokes setValue:forKey: on each of the set’s members. [Full Topic] +// Sends a message specified by a given selector to each object in the set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1408322-setvalue?language=objc -func (s_ Set) SetValueForKey(value objc.IObject, key string) { - objc.Call[objc.Void](s_, objc.Sel("setValue:forKey:"), value, key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574819-makeobjectsperformselector?language=objc +func (s_ Set) MakeObjectsPerformSelector(aSelector objc.Selector) { + objc.Call[objc.Void](s_, objc.Sel("makeObjectsPerformSelector:"), aSelector) +} + +// Returns a set of objects that pass a test in a given block, using the specified enumeration options. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1416826-objectswithoptions?language=objc +func (s_ Set) ObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, stop *bool) bool) Set { + rv := objc.Call[Set](s_, objc.Sel("objectsWithOptions:passingTest:"), opts, predicate) + return rv } // Returns a Boolean value that indicates whether every object in the receiving set is also present in another given set. [Full Topic] @@ -406,19 +329,26 @@ func (s_ Set) IsSubsetOfSet(otherSet ISet) bool { return rv } -// Returns a new set formed by adding the objects in a given array to the receiving set. [Full Topic] +// Returns a new set formed by adding the objects in a given set to the receiving set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1418438-setbyaddingobjectsfromarray?language=objc -func (s_ Set) SetByAddingObjectsFromArray(other []objc.IObject) Set { - rv := objc.Call[Set](s_, objc.Sel("setByAddingObjectsFromArray:"), other) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1408217-setbyaddingobjectsfromset?language=objc +func (s_ Set) SetByAddingObjectsFromSet(other ISet) Set { + rv := objc.Call[Set](s_, objc.Sel("setByAddingObjectsFromSet:"), other) return rv } -// Returns a set of objects that pass a test in a given block, using the specified enumeration options. [Full Topic] +// Raises an exception. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1416826-objectswithoptions?language=objc -func (s_ Set) ObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, stop *bool) bool) Set { - rv := objc.Call[Set](s_, objc.Sel("objectsWithOptions:passingTest:"), opts, predicate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1415413-removeobserver?language=objc +func (s_ Set) RemoveObserverForKeyPathContext(observer objc.IObject, keyPath string, context unsafe.Pointer) { + objc.Call[objc.Void](s_, objc.Sel("removeObserver:forKeyPath:context:"), observer, keyPath, context) +} + +// Returns a string that represents the contents of the set, formatted as a property list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1417205-descriptionwithlocale?language=objc +func (s_ Set) DescriptionWithLocale(locale objc.IObject) string { + rv := objc.Call[string](s_, objc.Sel("descriptionWithLocale:"), locale) return rv } @@ -430,19 +360,25 @@ func (s_ Set) AnyObject() objc.Object { return rv } -// Returns a Boolean value that indicates whether at least one object in the receiving set is also present in another given set. [Full Topic] +// Invokes setValue:forKey: on each of the set’s members. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1417472-intersectsset?language=objc -func (s_ Set) IntersectsSet(otherSet ISet) bool { - rv := objc.Call[bool](s_, objc.Sel("intersectsSet:"), otherSet) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1408322-setvalue?language=objc +func (s_ Set) SetValueForKey(value objc.IObject, key string) { + objc.Call[objc.Void](s_, objc.Sel("setValue:forKey:"), value, key) } -// An array containing the set’s members, or an empty array if the set has no members. [Full Topic] +// Raises an exception. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1417653-allobjects?language=objc -func (s_ Set) AllObjects() []objc.Object { - rv := objc.Call[[]objc.Object](s_, objc.Sel("allObjects")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1414043-addobserver?language=objc +func (s_ Set) AddObserverForKeyPathOptionsContext(observer objc.IObject, keyPath string, options KeyValueObservingOptions, context unsafe.Pointer) { + objc.Call[objc.Void](s_, objc.Sel("addObserver:forKeyPath:options:context:"), observer, keyPath, options, context) +} + +// Return a set containing the results of invoking valueForKey: on each of the receiving set's members. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1418386-valueforkey?language=objc +func (s_ Set) ValueForKey(key string) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("valueForKey:"), key) return rv } @@ -461,3 +397,11 @@ func (s_ Set) Count() uint { rv := objc.Call[uint](s_, objc.Sel("count")) return rv } + +// An array containing the set’s members, or an empty array if the set has no members. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1417653-allobjects?language=objc +func (s_ Set) AllObjects() []objc.Object { + rv := objc.Call[[]objc.Object](s_, objc.Sel("allObjects")) + return rv +} diff --git a/macos/foundation/socket_port.gen.go b/macos/foundation/socket_port.gen.go index 34978ab7..103adc9b 100644 --- a/macos/foundation/socket_port.gen.go +++ b/macos/foundation/socket_port.gen.go @@ -18,11 +18,11 @@ type _SocketPortClass struct { // An interface definition for the [SocketPort] class. type ISocketPort interface { IPort - ProtocolFamily() int - Protocol() int + Socket() SocketNativeHandle Address() []byte + ProtocolFamily() int SocketType() int - Socket() SocketNativeHandle + Protocol() int } // A port that represents a BSD socket. [Full Topic] @@ -38,77 +38,63 @@ func SocketPortFrom(ptr unsafe.Pointer) SocketPort { } } -func (s_ SocketPort) InitWithTCPPort(port int) SocketPort { - rv := objc.Call[SocketPort](s_, objc.Sel("initWithTCPPort:"), port) +func (s_ SocketPort) InitWithProtocolFamilySocketTypeProtocolSocket(family int, type_ int, protocol int, sock SocketNativeHandle) SocketPort { + rv := objc.Call[SocketPort](s_, objc.Sel("initWithProtocolFamily:socketType:protocol:socket:"), family, type_, protocol, sock) return rv } -// Initializes the receiver as a local TCP/IP socket of type SOCK_STREAM, listening on a specified port number. [Full Topic] +// Initializes the receiver with a previously created local socket. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399488-initwithtcpport?language=objc -func NewSocketPortWithTCPPort(port int) SocketPort { - instance := SocketPortClass.Alloc().InitWithTCPPort(port) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399484-initwithprotocolfamily?language=objc +func NewSocketPortWithProtocolFamilySocketTypeProtocolSocket(family int, type_ int, protocol int, sock SocketNativeHandle) SocketPort { + instance := SocketPortClass.Alloc().InitWithProtocolFamilySocketTypeProtocolSocket(family, type_, protocol, sock) instance.Autorelease() return instance } -func (s_ SocketPort) Init() SocketPort { - rv := objc.Call[SocketPort](s_, objc.Sel("init")) - return rv -} - -func (s_ SocketPort) InitRemoteWithTCPPortHost(port int, hostName string) SocketPort { - rv := objc.Call[SocketPort](s_, objc.Sel("initRemoteWithTCPPort:host:"), port, hostName) +func (s_ SocketPort) InitRemoteWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address []byte) SocketPort { + rv := objc.Call[SocketPort](s_, objc.Sel("initRemoteWithProtocolFamily:socketType:protocol:address:"), family, type_, protocol, address) return rv } -// Initializes the receiver as a TCP/IP socket of type SOCK_STREAM that can connect to a remote host on a specified port. [Full Topic] +// Initializes the receiver as a remote socket with the provided arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399474-initremotewithtcpport?language=objc -func NewSocketPortRemoteWithTCPPortHost(port int, hostName string) SocketPort { - instance := SocketPortClass.Alloc().InitRemoteWithTCPPortHost(port, hostName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399535-initremotewithprotocolfamily?language=objc +func NewSocketPortRemoteWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address []byte) SocketPort { + instance := SocketPortClass.Alloc().InitRemoteWithProtocolFamilySocketTypeProtocolAddress(family, type_, protocol, address) instance.Autorelease() return instance } -func (s_ SocketPort) InitWithProtocolFamilySocketTypeProtocolSocket(family int, type_ int, protocol int, sock SocketNativeHandle) SocketPort { - rv := objc.Call[SocketPort](s_, objc.Sel("initWithProtocolFamily:socketType:protocol:socket:"), family, type_, protocol, sock) +func (s_ SocketPort) InitWithTCPPort(port int) SocketPort { + rv := objc.Call[SocketPort](s_, objc.Sel("initWithTCPPort:"), port) return rv } -// Initializes the receiver with a previously created local socket. [Full Topic] +// Initializes the receiver as a local TCP/IP socket of type SOCK_STREAM, listening on a specified port number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399484-initwithprotocolfamily?language=objc -func NewSocketPortWithProtocolFamilySocketTypeProtocolSocket(family int, type_ int, protocol int, sock SocketNativeHandle) SocketPort { - instance := SocketPortClass.Alloc().InitWithProtocolFamilySocketTypeProtocolSocket(family, type_, protocol, sock) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399488-initwithtcpport?language=objc +func NewSocketPortWithTCPPort(port int) SocketPort { + instance := SocketPortClass.Alloc().InitWithTCPPort(port) instance.Autorelease() return instance } -func (s_ SocketPort) InitWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address []byte) SocketPort { - rv := objc.Call[SocketPort](s_, objc.Sel("initWithProtocolFamily:socketType:protocol:address:"), family, type_, protocol, address) +func (s_ SocketPort) Init() SocketPort { + rv := objc.Call[SocketPort](s_, objc.Sel("init")) return rv } -// Initializes the receiver as a local socket with the provided arguments. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399497-initwithprotocolfamily?language=objc -func NewSocketPortWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address []byte) SocketPort { - instance := SocketPortClass.Alloc().InitWithProtocolFamilySocketTypeProtocolAddress(family, type_, protocol, address) - instance.Autorelease() - return instance -} - -func (s_ SocketPort) InitRemoteWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address []byte) SocketPort { - rv := objc.Call[SocketPort](s_, objc.Sel("initRemoteWithProtocolFamily:socketType:protocol:address:"), family, type_, protocol, address) +func (s_ SocketPort) InitRemoteWithTCPPortHost(port int, hostName string) SocketPort { + rv := objc.Call[SocketPort](s_, objc.Sel("initRemoteWithTCPPort:host:"), port, hostName) return rv } -// Initializes the receiver as a remote socket with the provided arguments. [Full Topic] +// Initializes the receiver as a TCP/IP socket of type SOCK_STREAM that can connect to a remote host on a specified port. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399535-initremotewithprotocolfamily?language=objc -func NewSocketPortRemoteWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address []byte) SocketPort { - instance := SocketPortClass.Alloc().InitRemoteWithProtocolFamilySocketTypeProtocolAddress(family, type_, protocol, address) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399474-initremotewithtcpport?language=objc +func NewSocketPortRemoteWithTCPPortHost(port int, hostName string) SocketPort { + instance := SocketPortClass.Alloc().InitRemoteWithTCPPortHost(port, hostName) instance.Autorelease() return instance } @@ -128,19 +114,11 @@ func NewSocketPort() SocketPort { return SocketPortClass.New() } -// The protocol family that the receiver uses for communication. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399543-protocolfamily?language=objc -func (s_ SocketPort) ProtocolFamily() int { - rv := objc.Call[int](s_, objc.Sel("protocolFamily")) - return rv -} - -// The protocol that the receiver uses for communication. [Full Topic] +// The receiver’s native socket identifier on the platform. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399557-protocol?language=objc -func (s_ SocketPort) Protocol() int { - rv := objc.Call[int](s_, objc.Sel("protocol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399492-socket?language=objc +func (s_ SocketPort) Socket() SocketNativeHandle { + rv := objc.Call[SocketNativeHandle](s_, objc.Sel("socket")) return rv } @@ -152,6 +130,14 @@ func (s_ SocketPort) Address() []byte { return rv } +// The protocol family that the receiver uses for communication. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399543-protocolfamily?language=objc +func (s_ SocketPort) ProtocolFamily() int { + rv := objc.Call[int](s_, objc.Sel("protocolFamily")) + return rv +} + // The receiver’s socket type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399565-sockettype?language=objc @@ -160,10 +146,10 @@ func (s_ SocketPort) SocketType() int { return rv } -// The receiver’s native socket identifier on the platform. [Full Topic] +// The protocol that the receiver uses for communication. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399492-socket?language=objc -func (s_ SocketPort) Socket() SocketNativeHandle { - rv := objc.Call[SocketNativeHandle](s_, objc.Sel("socket")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399557-protocol?language=objc +func (s_ SocketPort) Protocol() int { + rv := objc.Call[int](s_, objc.Sel("protocol")) return rv } diff --git a/macos/foundation/sort_descriptor.gen.go b/macos/foundation/sort_descriptor.gen.go index df67e4f6..d7b3ea94 100644 --- a/macos/foundation/sort_descriptor.gen.go +++ b/macos/foundation/sort_descriptor.gen.go @@ -20,11 +20,11 @@ type ISortDescriptor interface { objc.IObject AllowEvaluation() CompareObjectToObject(object1 objc.IObject, object2 objc.IObject) ComparisonResult + Comparator() Comparator Key() string - Ascending() bool Selector() objc.Selector ReversedSortDescriptor() objc.Object - Comparator() Comparator + Ascending() bool } // An immutable description of how to order a collection of objects according to a property common to all the objects. [Full Topic] @@ -40,58 +40,6 @@ func SortDescriptorFrom(ptr unsafe.Pointer) SortDescriptor { } } -func (s_ SortDescriptor) InitWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) SortDescriptor { - rv := objc.Call[SortDescriptor](s_, objc.Sel("initWithKey:ascending:selector:"), key, ascending, selector) - return rv -} - -// Creates a sort descriptor with a specified string key path, ordering, and comparison selector. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1412495-initwithkey?language=objc -func NewSortDescriptorWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) SortDescriptor { - instance := SortDescriptorClass.Alloc().InitWithKeyAscendingSelector(key, ascending, selector) - instance.Autorelease() - return instance -} - -func (sc _SortDescriptorClass) SortDescriptorWithKeyAscending(key string, ascending bool) SortDescriptor { - rv := objc.Call[SortDescriptor](sc, objc.Sel("sortDescriptorWithKey:ascending:"), key, ascending) - return rv -} - -// Creates and returns a sort descriptor with the specified key path and ordering. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1503726-sortdescriptorwithkey?language=objc -func SortDescriptor_SortDescriptorWithKeyAscending(key string, ascending bool) SortDescriptor { - return SortDescriptorClass.SortDescriptorWithKeyAscending(key, ascending) -} - -func (sc _SortDescriptorClass) SortDescriptorWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) SortDescriptor { - rv := objc.Call[SortDescriptor](sc, objc.Sel("sortDescriptorWithKey:ascending:selector:"), key, ascending, selector) - return rv -} - -// Creates a sort descriptor with the specified key path, ordering, and comparison selector. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1503730-sortdescriptorwithkey?language=objc -func SortDescriptor_SortDescriptorWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) SortDescriptor { - return SortDescriptorClass.SortDescriptorWithKeyAscendingSelector(key, ascending, selector) -} - -func (s_ SortDescriptor) InitWithKeyAscendingComparator(key string, ascending bool, cmptr Comparator) SortDescriptor { - rv := objc.Call[SortDescriptor](s_, objc.Sel("initWithKey:ascending:comparator:"), key, ascending, cmptr) - return rv -} - -// Creates a sort descriptor with a specified string key path and ordering, and a comparator block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1411607-initwithkey?language=objc -func NewSortDescriptorWithKeyAscendingComparator(key string, ascending bool, cmptr Comparator) SortDescriptor { - instance := SortDescriptorClass.Alloc().InitWithKeyAscendingComparator(key, ascending, cmptr) - instance.Autorelease() - return instance -} - func (sc _SortDescriptorClass) SortDescriptorWithKeyAscendingComparator(key string, ascending bool, cmptr Comparator) SortDescriptor { rv := objc.Call[SortDescriptor](sc, objc.Sel("sortDescriptorWithKey:ascending:comparator:"), key, ascending, cmptr) return rv @@ -153,19 +101,19 @@ func (s_ SortDescriptor) CompareObjectToObject(object1 objc.IObject, object2 obj return rv } -// The key that specifies the property to compare during sorting. [Full Topic] +// The comparator for the sort descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1415022-key?language=objc -func (s_ SortDescriptor) Key() string { - rv := objc.Call[string](s_, objc.Sel("key")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1411426-comparator?language=objc +func (s_ SortDescriptor) Comparator() Comparator { + rv := objc.Call[Comparator](s_, objc.Sel("comparator")) return rv } -// A Boolean value that indicates whether the receiver specifies sorting in ascending order. [Full Topic] +// The key that specifies the property to compare during sorting. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1408931-ascending?language=objc -func (s_ SortDescriptor) Ascending() bool { - rv := objc.Call[bool](s_, objc.Sel("ascending")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1415022-key?language=objc +func (s_ SortDescriptor) Key() string { + rv := objc.Call[string](s_, objc.Sel("key")) return rv } @@ -185,10 +133,10 @@ func (s_ SortDescriptor) ReversedSortDescriptor() objc.Object { return rv } -// The comparator for the sort descriptor. [Full Topic] +// A Boolean value that indicates whether the receiver specifies sorting in ascending order. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1411426-comparator?language=objc -func (s_ SortDescriptor) Comparator() Comparator { - rv := objc.Call[Comparator](s_, objc.Sel("comparator")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1408931-ascending?language=objc +func (s_ SortDescriptor) Ascending() bool { + rv := objc.Call[bool](s_, objc.Sel("ascending")) return rv } diff --git a/macos/foundation/spell_server_delegate.gen.go b/macos/foundation/spell_server_delegate.gen.go index 20fb73c4..5728061e 100644 --- a/macos/foundation/spell_server_delegate.gen.go +++ b/macos/foundation/spell_server_delegate.gen.go @@ -3,8 +3,6 @@ package foundation import ( - "unsafe" - "github.com/progrium/darwinkit/objc" ) @@ -12,136 +10,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate?language=objc type PSpellServerDelegate interface { - // optional - SpellServerSuggestCompletionsForPartialWordRangeInStringLanguage(sender SpellServer, range_ Range, string_ string, language string) []string - HasSpellServerSuggestCompletionsForPartialWordRangeInStringLanguage() bool - - // optional - SpellServerFindMisspelledWordInStringLanguageWordCountCountOnly(sender SpellServer, stringToCheck string, language string, wordCount *int, countOnly bool) Range - HasSpellServerFindMisspelledWordInStringLanguageWordCountCountOnly() bool - - // optional - SpellServerRecordResponseToCorrectionForWordLanguage(sender SpellServer, response uint, correction string, word string, language string) - HasSpellServerRecordResponseToCorrectionForWordLanguage() bool - - // optional - SpellServerSuggestGuessesForWordInLanguage(sender SpellServer, word string, language string) []string - HasSpellServerSuggestGuessesForWordInLanguage() bool - - // optional - SpellServerCheckGrammarInStringLanguageDetails(sender SpellServer, stringToCheck string, language string, details unsafe.Pointer) Range - HasSpellServerCheckGrammarInStringLanguageDetails() bool - // optional SpellServerDidLearnWordInLanguage(sender SpellServer, word string, language string) HasSpellServerDidLearnWordInLanguage() bool - - // optional - SpellServerDidForgetWordInLanguage(sender SpellServer, word string, language string) - HasSpellServerDidForgetWordInLanguage() bool - - // optional - SpellServerCheckStringOffsetTypesOptionsOrthographyWordCount(sender SpellServer, stringToCheck string, offset uint, checkingTypes TextCheckingTypes, options map[string]objc.Object, orthography Orthography, wordCount *int) []TextCheckingResult - HasSpellServerCheckStringOffsetTypesOptionsOrthographyWordCount() bool } // A delegate implementation builder for the [PSpellServerDelegate] protocol. type SpellServerDelegate struct { - _SpellServerSuggestCompletionsForPartialWordRangeInStringLanguage func(sender SpellServer, range_ Range, string_ string, language string) []string - _SpellServerFindMisspelledWordInStringLanguageWordCountCountOnly func(sender SpellServer, stringToCheck string, language string, wordCount *int, countOnly bool) Range - _SpellServerRecordResponseToCorrectionForWordLanguage func(sender SpellServer, response uint, correction string, word string, language string) - _SpellServerSuggestGuessesForWordInLanguage func(sender SpellServer, word string, language string) []string - _SpellServerCheckGrammarInStringLanguageDetails func(sender SpellServer, stringToCheck string, language string, details unsafe.Pointer) Range - _SpellServerDidLearnWordInLanguage func(sender SpellServer, word string, language string) - _SpellServerDidForgetWordInLanguage func(sender SpellServer, word string, language string) - _SpellServerCheckStringOffsetTypesOptionsOrthographyWordCount func(sender SpellServer, stringToCheck string, offset uint, checkingTypes TextCheckingTypes, options map[string]objc.Object, orthography Orthography, wordCount *int) []TextCheckingResult -} - -func (di *SpellServerDelegate) HasSpellServerSuggestCompletionsForPartialWordRangeInStringLanguage() bool { - return di._SpellServerSuggestCompletionsForPartialWordRangeInStringLanguage != nil -} - -// This delegate method returns an array of possible word completions from the spell checker, based on a partially completed string and a given range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1414606-spellserver?language=objc -func (di *SpellServerDelegate) SetSpellServerSuggestCompletionsForPartialWordRangeInStringLanguage(f func(sender SpellServer, range_ Range, string_ string, language string) []string) { - di._SpellServerSuggestCompletionsForPartialWordRangeInStringLanguage = f -} - -// This delegate method returns an array of possible word completions from the spell checker, based on a partially completed string and a given range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1414606-spellserver?language=objc -func (di *SpellServerDelegate) SpellServerSuggestCompletionsForPartialWordRangeInStringLanguage(sender SpellServer, range_ Range, string_ string, language string) []string { - return di._SpellServerSuggestCompletionsForPartialWordRangeInStringLanguage(sender, range_, string_, language) -} -func (di *SpellServerDelegate) HasSpellServerFindMisspelledWordInStringLanguageWordCountCountOnly() bool { - return di._SpellServerFindMisspelledWordInStringLanguageWordCountCountOnly != nil -} - -// Asks the delegate to search for a misspelled word in a given string, using the specified language, and marking the first misspelled word found by returning its range within the string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1413235-spellserver?language=objc -func (di *SpellServerDelegate) SetSpellServerFindMisspelledWordInStringLanguageWordCountCountOnly(f func(sender SpellServer, stringToCheck string, language string, wordCount *int, countOnly bool) Range) { - di._SpellServerFindMisspelledWordInStringLanguageWordCountCountOnly = f -} - -// Asks the delegate to search for a misspelled word in a given string, using the specified language, and marking the first misspelled word found by returning its range within the string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1413235-spellserver?language=objc -func (di *SpellServerDelegate) SpellServerFindMisspelledWordInStringLanguageWordCountCountOnly(sender SpellServer, stringToCheck string, language string, wordCount *int, countOnly bool) Range { - return di._SpellServerFindMisspelledWordInStringLanguageWordCountCountOnly(sender, stringToCheck, language, wordCount, countOnly) -} -func (di *SpellServerDelegate) HasSpellServerRecordResponseToCorrectionForWordLanguage() bool { - return di._SpellServerRecordResponseToCorrectionForWordLanguage != nil -} - -// Notifies the spell checker of the users’s response to a correction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1412894-spellserver?language=objc -func (di *SpellServerDelegate) SetSpellServerRecordResponseToCorrectionForWordLanguage(f func(sender SpellServer, response uint, correction string, word string, language string)) { - di._SpellServerRecordResponseToCorrectionForWordLanguage = f -} - -// Notifies the spell checker of the users’s response to a correction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1412894-spellserver?language=objc -func (di *SpellServerDelegate) SpellServerRecordResponseToCorrectionForWordLanguage(sender SpellServer, response uint, correction string, word string, language string) { - di._SpellServerRecordResponseToCorrectionForWordLanguage(sender, response, correction, word, language) -} -func (di *SpellServerDelegate) HasSpellServerSuggestGuessesForWordInLanguage() bool { - return di._SpellServerSuggestGuessesForWordInLanguage != nil + _SpellServerDidLearnWordInLanguage func(sender SpellServer, word string, language string) } -// Gives the delegate the opportunity to suggest guesses to the sender for the correct spelling of the given misspelled word in the specified language. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1410726-spellserver?language=objc -func (di *SpellServerDelegate) SetSpellServerSuggestGuessesForWordInLanguage(f func(sender SpellServer, word string, language string) []string) { - di._SpellServerSuggestGuessesForWordInLanguage = f -} - -// Gives the delegate the opportunity to suggest guesses to the sender for the correct spelling of the given misspelled word in the specified language. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1410726-spellserver?language=objc -func (di *SpellServerDelegate) SpellServerSuggestGuessesForWordInLanguage(sender SpellServer, word string, language string) []string { - return di._SpellServerSuggestGuessesForWordInLanguage(sender, word, language) -} -func (di *SpellServerDelegate) HasSpellServerCheckGrammarInStringLanguageDetails() bool { - return di._SpellServerCheckGrammarInStringLanguageDetails != nil -} - -// Gives the delegate the opportunity to customize the grammatical analysis of a given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1409242-spellserver?language=objc -func (di *SpellServerDelegate) SetSpellServerCheckGrammarInStringLanguageDetails(f func(sender SpellServer, stringToCheck string, language string, details unsafe.Pointer) Range) { - di._SpellServerCheckGrammarInStringLanguageDetails = f -} - -// Gives the delegate the opportunity to customize the grammatical analysis of a given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1409242-spellserver?language=objc -func (di *SpellServerDelegate) SpellServerCheckGrammarInStringLanguageDetails(sender SpellServer, stringToCheck string, language string, details unsafe.Pointer) Range { - return di._SpellServerCheckGrammarInStringLanguageDetails(sender, stringToCheck, language, details) -} func (di *SpellServerDelegate) HasSpellServerDidLearnWordInLanguage() bool { return di._SpellServerDidLearnWordInLanguage != nil } @@ -159,40 +37,6 @@ func (di *SpellServerDelegate) SetSpellServerDidLearnWordInLanguage(f func(sende func (di *SpellServerDelegate) SpellServerDidLearnWordInLanguage(sender SpellServer, word string, language string) { di._SpellServerDidLearnWordInLanguage(sender, word, language) } -func (di *SpellServerDelegate) HasSpellServerDidForgetWordInLanguage() bool { - return di._SpellServerDidForgetWordInLanguage != nil -} - -// Notifies the delegate that the sender has removed the specified word from the user’s list of acceptable words in the specified language. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1417315-spellserver?language=objc -func (di *SpellServerDelegate) SetSpellServerDidForgetWordInLanguage(f func(sender SpellServer, word string, language string)) { - di._SpellServerDidForgetWordInLanguage = f -} - -// Notifies the delegate that the sender has removed the specified word from the user’s list of acceptable words in the specified language. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1417315-spellserver?language=objc -func (di *SpellServerDelegate) SpellServerDidForgetWordInLanguage(sender SpellServer, word string, language string) { - di._SpellServerDidForgetWordInLanguage(sender, word, language) -} -func (di *SpellServerDelegate) HasSpellServerCheckStringOffsetTypesOptionsOrthographyWordCount() bool { - return di._SpellServerCheckStringOffsetTypesOptionsOrthographyWordCount != nil -} - -// Gives the delegate the opportunity to analyze both the spelling and grammar simultaneously, which is more efficient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1409733-spellserver?language=objc -func (di *SpellServerDelegate) SetSpellServerCheckStringOffsetTypesOptionsOrthographyWordCount(f func(sender SpellServer, stringToCheck string, offset uint, checkingTypes TextCheckingTypes, options map[string]objc.Object, orthography Orthography, wordCount *int) []TextCheckingResult) { - di._SpellServerCheckStringOffsetTypesOptionsOrthographyWordCount = f -} - -// Gives the delegate the opportunity to analyze both the spelling and grammar simultaneously, which is more efficient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1409733-spellserver?language=objc -func (di *SpellServerDelegate) SpellServerCheckStringOffsetTypesOptionsOrthographyWordCount(sender SpellServer, stringToCheck string, offset uint, checkingTypes TextCheckingTypes, options map[string]objc.Object, orthography Orthography, wordCount *int) []TextCheckingResult { - return di._SpellServerCheckStringOffsetTypesOptionsOrthographyWordCount(sender, stringToCheck, offset, checkingTypes, options, orthography, wordCount) -} // ensure impl type implements protocol interface var _ PSpellServerDelegate = (*SpellServerDelegateObject)(nil) @@ -202,65 +46,6 @@ type SpellServerDelegateObject struct { objc.Object } -func (s_ SpellServerDelegateObject) HasSpellServerSuggestCompletionsForPartialWordRangeInStringLanguage() bool { - return s_.RespondsToSelector(objc.Sel("spellServer:suggestCompletionsForPartialWordRange:inString:language:")) -} - -// This delegate method returns an array of possible word completions from the spell checker, based on a partially completed string and a given range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1414606-spellserver?language=objc -func (s_ SpellServerDelegateObject) SpellServerSuggestCompletionsForPartialWordRangeInStringLanguage(sender SpellServer, range_ Range, string_ string, language string) []string { - rv := objc.Call[[]string](s_, objc.Sel("spellServer:suggestCompletionsForPartialWordRange:inString:language:"), sender, range_, string_, language) - return rv -} - -func (s_ SpellServerDelegateObject) HasSpellServerFindMisspelledWordInStringLanguageWordCountCountOnly() bool { - return s_.RespondsToSelector(objc.Sel("spellServer:findMisspelledWordInString:language:wordCount:countOnly:")) -} - -// Asks the delegate to search for a misspelled word in a given string, using the specified language, and marking the first misspelled word found by returning its range within the string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1413235-spellserver?language=objc -func (s_ SpellServerDelegateObject) SpellServerFindMisspelledWordInStringLanguageWordCountCountOnly(sender SpellServer, stringToCheck string, language string, wordCount *int, countOnly bool) Range { - rv := objc.Call[Range](s_, objc.Sel("spellServer:findMisspelledWordInString:language:wordCount:countOnly:"), sender, stringToCheck, language, wordCount, countOnly) - return rv -} - -func (s_ SpellServerDelegateObject) HasSpellServerRecordResponseToCorrectionForWordLanguage() bool { - return s_.RespondsToSelector(objc.Sel("spellServer:recordResponse:toCorrection:forWord:language:")) -} - -// Notifies the spell checker of the users’s response to a correction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1412894-spellserver?language=objc -func (s_ SpellServerDelegateObject) SpellServerRecordResponseToCorrectionForWordLanguage(sender SpellServer, response uint, correction string, word string, language string) { - objc.Call[objc.Void](s_, objc.Sel("spellServer:recordResponse:toCorrection:forWord:language:"), sender, response, correction, word, language) -} - -func (s_ SpellServerDelegateObject) HasSpellServerSuggestGuessesForWordInLanguage() bool { - return s_.RespondsToSelector(objc.Sel("spellServer:suggestGuessesForWord:inLanguage:")) -} - -// Gives the delegate the opportunity to suggest guesses to the sender for the correct spelling of the given misspelled word in the specified language. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1410726-spellserver?language=objc -func (s_ SpellServerDelegateObject) SpellServerSuggestGuessesForWordInLanguage(sender SpellServer, word string, language string) []string { - rv := objc.Call[[]string](s_, objc.Sel("spellServer:suggestGuessesForWord:inLanguage:"), sender, word, language) - return rv -} - -func (s_ SpellServerDelegateObject) HasSpellServerCheckGrammarInStringLanguageDetails() bool { - return s_.RespondsToSelector(objc.Sel("spellServer:checkGrammarInString:language:details:")) -} - -// Gives the delegate the opportunity to customize the grammatical analysis of a given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1409242-spellserver?language=objc -func (s_ SpellServerDelegateObject) SpellServerCheckGrammarInStringLanguageDetails(sender SpellServer, stringToCheck string, language string, details unsafe.Pointer) Range { - rv := objc.Call[Range](s_, objc.Sel("spellServer:checkGrammarInString:language:details:"), sender, stringToCheck, language, details) - return rv -} - func (s_ SpellServerDelegateObject) HasSpellServerDidLearnWordInLanguage() bool { return s_.RespondsToSelector(objc.Sel("spellServer:didLearnWord:inLanguage:")) } @@ -271,26 +56,3 @@ func (s_ SpellServerDelegateObject) HasSpellServerDidLearnWordInLanguage() bool func (s_ SpellServerDelegateObject) SpellServerDidLearnWordInLanguage(sender SpellServer, word string, language string) { objc.Call[objc.Void](s_, objc.Sel("spellServer:didLearnWord:inLanguage:"), sender, word, language) } - -func (s_ SpellServerDelegateObject) HasSpellServerDidForgetWordInLanguage() bool { - return s_.RespondsToSelector(objc.Sel("spellServer:didForgetWord:inLanguage:")) -} - -// Notifies the delegate that the sender has removed the specified word from the user’s list of acceptable words in the specified language. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1417315-spellserver?language=objc -func (s_ SpellServerDelegateObject) SpellServerDidForgetWordInLanguage(sender SpellServer, word string, language string) { - objc.Call[objc.Void](s_, objc.Sel("spellServer:didForgetWord:inLanguage:"), sender, word, language) -} - -func (s_ SpellServerDelegateObject) HasSpellServerCheckStringOffsetTypesOptionsOrthographyWordCount() bool { - return s_.RespondsToSelector(objc.Sel("spellServer:checkString:offset:types:options:orthography:wordCount:")) -} - -// Gives the delegate the opportunity to analyze both the spelling and grammar simultaneously, which is more efficient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1409733-spellserver?language=objc -func (s_ SpellServerDelegateObject) SpellServerCheckStringOffsetTypesOptionsOrthographyWordCount(sender SpellServer, stringToCheck string, offset uint, checkingTypes TextCheckingTypes, options map[string]objc.Object, orthography Orthography, wordCount *int) []TextCheckingResult { - rv := objc.Call[[]TextCheckingResult](s_, objc.Sel("spellServer:checkString:offset:types:options:orthography:wordCount:"), sender, stringToCheck, offset, checkingTypes, options, orthography, wordCount) - return rv -} diff --git a/macos/foundation/stream.gen.go b/macos/foundation/stream.gen.go index f646791f..4e6febc2 100644 --- a/macos/foundation/stream.gen.go +++ b/macos/foundation/stream.gen.go @@ -18,17 +18,17 @@ type _StreamClass struct { // An interface definition for the [Stream] class. type IStream interface { objc.IObject + ScheduleInRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) + RemoveFromRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) + Open() Close() PropertyForKey(key StreamPropertyKey) objc.Object SetPropertyForKey(property objc.IObject, key StreamPropertyKey) bool - Open() - RemoveFromRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) - ScheduleInRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) - StreamStatus() StreamStatus StreamError() Error Delegate() StreamDelegateObject SetDelegate(value PStreamDelegate) SetDelegateObject(valueObject objc.IObject) + StreamStatus() StreamStatus } // An abstract class representing a stream. [Full Topic] @@ -64,6 +64,27 @@ func (s_ Stream) Init() Stream { return rv } +// Schedules the receiver on a given run loop in a given mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1417370-scheduleinrunloop?language=objc +func (s_ Stream) ScheduleInRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) { + objc.Call[objc.Void](s_, objc.Sel("scheduleInRunLoop:forMode:"), aRunLoop, mode) +} + +// Removes the receiver from a given run loop running in a given mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1411285-removefromrunloop?language=objc +func (s_ Stream) RemoveFromRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) { + objc.Call[objc.Void](s_, objc.Sel("removeFromRunLoop:forMode:"), aRunLoop, mode) +} + +// Opens the receiving stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1411963-open?language=objc +func (s_ Stream) Open() { + objc.Call[objc.Void](s_, objc.Sel("open")) +} + // Closes the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1410399-close?language=objc @@ -87,13 +108,6 @@ func (s_ Stream) SetPropertyForKey(property objc.IObject, key StreamPropertyKey) return rv } -// Opens the receiving stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1411963-open?language=objc -func (s_ Stream) Open() { - objc.Call[objc.Void](s_, objc.Sel("open")) -} - // Creates and returns by reference a bound pair of input and output streams. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1412683-getboundstreamswithbuffersize?language=objc @@ -108,28 +122,6 @@ func Stream_GetBoundStreamsWithBufferSizeInputStreamOutputStream(bufferSize uint StreamClass.GetBoundStreamsWithBufferSizeInputStreamOutputStream(bufferSize, inputStream, outputStream) } -// Removes the receiver from a given run loop running in a given mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1411285-removefromrunloop?language=objc -func (s_ Stream) RemoveFromRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) { - objc.Call[objc.Void](s_, objc.Sel("removeFromRunLoop:forMode:"), aRunLoop, mode) -} - -// Schedules the receiver on a given run loop in a given mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1417370-scheduleinrunloop?language=objc -func (s_ Stream) ScheduleInRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) { - objc.Call[objc.Void](s_, objc.Sel("scheduleInRunLoop:forMode:"), aRunLoop, mode) -} - -// Returns the receiver’s status. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1413038-streamstatus?language=objc -func (s_ Stream) StreamStatus() StreamStatus { - rv := objc.Call[StreamStatus](s_, objc.Sel("streamStatus")) - return rv -} - // Returns an NSError object representing the stream error. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1416359-streamerror?language=objc @@ -160,3 +152,11 @@ func (s_ Stream) SetDelegate(value PStreamDelegate) { func (s_ Stream) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), valueObject) } + +// Returns the receiver’s status. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1413038-streamstatus?language=objc +func (s_ Stream) StreamStatus() StreamStatus { + rv := objc.Call[StreamStatus](s_, objc.Sel("streamStatus")) + return rv +} diff --git a/macos/foundation/string.gen.go b/macos/foundation/string.gen.go index 02f66810..81463e6c 100644 --- a/macos/foundation/string.gen.go +++ b/macos/foundation/string.gen.go @@ -5,6 +5,7 @@ package foundation import ( "unsafe" + "github.com/progrium/darwinkit/macos/coregraphics" "github.com/progrium/darwinkit/objc" ) @@ -18,116 +19,96 @@ type _StringClass struct { // An interface definition for the [String] class. type IString interface { objc.IObject - StringByAddingPercentEncodingWithAllowedCharacters(allowedCharacters ICharacterSet) string + IsEqualToString(aString string) bool + HasPrefix(str string) bool + MaximumLengthOfBytesUsingEncoding(enc StringEncoding) uint + LocalizedStandardCompare(string_ string) ComparisonResult + LocalizedStandardContainsString(str string) bool + ComponentsSeparatedByCharactersInSet(separator ICharacterSet) []string + RangeOfComposedCharacterSequenceAtIndex(index uint) Range + LocalizedCaseInsensitiveContainsString(str string) bool CapitalizedStringWithLocale(locale ILocale) string + SubstringFromIndex(from uint) string + CommonPrefixWithStringOptions(str string, mask StringCompareOptions) string + StringByReplacingCharactersInRangeWithString(range_ Range, replacement string) string + LocalizedCaseInsensitiveCompare(string_ string) ComparisonResult + StringByAppendingString(aString string) string + RangeOfCharacterFromSetOptions(searchSet ICharacterSet, mask StringCompareOptions) Range + SubstringWithRange(range_ Range) string + StringByAddingPercentEncodingWithAllowedCharacters(allowedCharacters ICharacterSet) string + VariantFittingPresentationWidth(width int) string + LowercaseStringWithLocale(locale ILocale) string + LineRangeForRange(range_ Range) Range + SubstringToIndex(to uint) string + CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName unsafe.Pointer, flag bool, outputArray unsafe.Pointer, filterTypes []string) uint + ParagraphRangeForRange(range_ Range) Range + StringByAppendingFormat(format string, args ...any) string + DataUsingEncoding(encoding StringEncoding) []byte + SizeWithAttributes(attrs map[AttributedStringKey]objc.IObject) coregraphics.Size StringByReplacingOccurrencesOfStringWithStringOptionsRange(target string, replacement string, options StringCompareOptions, searchRange Range) string + StringByPaddingToLengthWithStringStartingAtIndex(newLength uint, padString string, padIndex uint) string + PropertyList() objc.Object + LengthOfBytesUsingEncoding(enc StringEncoding) uint StringByTrimmingCharactersInSet(set ICharacterSet) string - CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName unsafe.Pointer, flag bool, outputArray unsafe.Pointer, filterTypes []string) uint - RangeOfCharacterFromSetOptionsRange(searchSet ICharacterSet, mask StringCompareOptions, rangeOfReceiverToSearch Range) Range + RangeOfStringOptions(searchString string, mask StringCompareOptions) Range StringByAppendingPathExtension(str string) string - UppercaseStringWithLocale(locale ILocale) string GetLineStartEndContentsEndForRange(startPtr *uint, lineEndPtr *uint, contentsEndPtr *uint, range_ Range) - GetCStringMaxLengthEncoding(buffer *uint8, maxBufferCount uint, encoding StringEncoding) bool - StringByReplacingCharactersInRangeWithString(range_ Range, replacement string) string - StringByAppendingFormat(format string, args ...any) string - PropertyList() objc.Object - RangeOfCharacterFromSet(searchSet ICharacterSet) Range - StringsByAppendingPaths(paths []string) []string - LowercaseStringWithLocale(locale ILocale) string - CharacterAtIndex(index uint) Unichar - RangeOfCharacterFromSetOptions(searchSet ICharacterSet, mask StringCompareOptions) Range - BoundingRectWithSizeOptionsAttributesContext(size Size, options objc.IObject, attributes map[AttributedStringKey]objc.IObject, context objc.IObject) Rect - LocalizedCaseInsensitiveContainsString(str string) bool + GetFileSystemRepresentationMaxLength(cname *uint8, max uint) bool + ContainsString(str string) bool CaseInsensitiveCompare(string_ string) ComparisonResult - EnumerateSubstringsInRangeOptionsUsingBlock(range_ Range, opts StringEnumerationOptions, block func(substring string, substringRange Range, enclosingRange Range, stop *bool)) - CommonPrefixWithStringOptions(str string, mask StringCompareOptions) string - HasSuffix(str string) bool - GetParagraphStartEndContentsEndForRange(startPtr *uint, parEndPtr *uint, contentsEndPtr *uint, range_ Range) - StringByAppendingString(aString string) string - RangeOfComposedCharacterSequencesForRange(range_ Range) Range + PropertyListFromStringsFileFormat() Dictionary + ComponentsSeparatedByString(separator string) []string EnumerateLinesUsingBlock(block func(line string, stop *bool)) - CStringUsingEncoding(encoding StringEncoding) *uint8 - VariantFittingPresentationWidth(width int) string - SubstringWithRange(range_ Range) string + LocalizedStandardRangeOfString(str string) Range GetBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange(buffer unsafe.Pointer, maxBufferCount uint, usedBufferCount *uint, encoding StringEncoding, options StringEncodingConversionOptions, range_ Range, leftover RangePointer) bool - RangeOfString(searchString string) Range - MaximumLengthOfBytesUsingEncoding(enc StringEncoding) uint - StringByPaddingToLengthWithStringStartingAtIndex(newLength uint, padString string, padIndex uint) string - CompareOptionsRangeLocale(string_ string, mask StringCompareOptions, rangeOfReceiverToCompare Range, locale objc.IObject) ComparisonResult - ContainsString(str string) bool - DrawWithRectOptionsAttributesContext(rect Rect, options objc.IObject, attributes map[AttributedStringKey]objc.IObject, context objc.IObject) - SizeWithAttributes(attrs map[AttributedStringKey]objc.IObject) Size - IsEqualToString(aString string) bool - RangeOfStringOptionsRange(searchString string, mask StringCompareOptions, rangeOfReceiverToSearch Range) Range - ParagraphRangeForRange(range_ Range) Range - StringByApplyingTransformReverse(transform StringTransform, reverse bool) string - DrawInRectWithAttributes(rect Rect, attrs map[AttributedStringKey]objc.IObject) - StringByFoldingWithOptionsLocale(options StringCompareOptions, locale ILocale) string - DataUsingEncoding(encoding StringEncoding) []byte - GetCharactersRange(buffer *Unichar, range_ Range) - RangeOfComposedCharacterSequenceAtIndex(index uint) Range - ComponentsSeparatedByCharactersInSet(separator ICharacterSet) []string - LocalizedCaseInsensitiveCompare(string_ string) ComparisonResult - SubstringFromIndex(from uint) string + UppercaseStringWithLocale(locale ILocale) string + StringByAppendingPathExtensionForType(contentType objc.IObject) string CanBeConvertedToEncoding(encoding StringEncoding) bool - PropertyListFromStringsFileFormat() Dictionary - StringByReplacingOccurrencesOfStringWithString(target string, replacement string) string + CStringUsingEncoding(encoding StringEncoding) *uint8 + EnumerateSubstringsInRangeOptionsUsingBlock(range_ Range, opts StringEnumerationOptions, block func(substring string, substringRange Range, enclosingRange Range, stop *bool)) + StringByFoldingWithOptionsLocale(options StringCompareOptions, locale ILocale) string LocalizedCompare(string_ string) ComparisonResult - StringByAppendingPathExtensionForType(contentType objc.IObject) string - Compare(string_ string) ComparisonResult - WriteToFileAtomicallyEncodingError(path string, useAuxiliaryFile bool, enc StringEncoding, error unsafe.Pointer) bool - LocalizedStandardRangeOfString(str string) Range - StringByAppendingPathComponent(str string) string - HasPrefix(str string) bool - LocalizedStandardCompare(string_ string) ComparisonResult - RangeOfStringOptionsRangeLocale(searchString string, mask StringCompareOptions, rangeOfReceiverToSearch Range, locale ILocale) Range - LengthOfBytesUsingEncoding(enc StringEncoding) uint - LineRangeForRange(range_ Range) Range - CompareOptionsRange(string_ string, mask StringCompareOptions, rangeOfReceiverToCompare Range) ComparisonResult - DataUsingEncodingAllowLossyConversion(encoding StringEncoding, lossy bool) []byte - LocalizedStandardContainsString(str string) bool - DrawAtPointWithAttributes(point Point, attrs map[AttributedStringKey]objc.IObject) - WriteToURLAtomicallyEncodingError(url IURL, useAuxiliaryFile bool, enc StringEncoding, error unsafe.Pointer) bool - CompareOptions(string_ string, mask StringCompareOptions) ComparisonResult - GetFileSystemRepresentationMaxLength(cname *uint8, max uint) bool - SubstringToIndex(to uint) string - RangeOfStringOptions(searchString string, mask StringCompareOptions) Range - ComponentsSeparatedByString(separator string) []string + StringsByAppendingPaths(paths []string) []string StringByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) string + Compare(string_ string) ComparisonResult + CharacterAtIndex(index uint) Unichar + HasSuffix(str string) bool + StringByApplyingTransformReverse(transform StringTransform, reverse bool) string + GetParagraphStartEndContentsEndForRange(startPtr *uint, parEndPtr *uint, contentsEndPtr *uint, range_ Range) + IntegerValue() int + StringByDeletingPathExtension() string IntValue() int - DoubleValue() float64 + UppercaseString() string + UTF8String() *uint8 PrecomposedStringWithCanonicalMapping() string - Description() string - CapitalizedString() string - FastestEncoding() StringEncoding + PathComponents() []string StringByExpandingTildeInPath() string - StringByResolvingSymlinksInPath() string - LocalizedCapitalizedString() string + IsAbsolutePath() bool + CapitalizedString() string + LongLongValue() int64 + PrecomposedStringWithCompatibilityMapping() string LocalizedLowercaseString() string - PathExtension() string + LocalizedUppercaseString() string + Description() string + DoubleValue() float64 + SmallestEncoding() StringEncoding + Length() uint + StringByDeletingLastPathComponent() string Hash() uint + DecomposedStringWithCanonicalMapping() string + PathExtension() string + StringByResolvingSymlinksInPath() string StringByAbbreviatingWithTildeInPath() string - PathComponents() []string - PrecomposedStringWithCompatibilityMapping() string - FloatValue() float32 - IntegerValue() int BoolValue() bool - SmallestEncoding() StringEncoding + FastestEncoding() StringEncoding + FloatValue() float32 LastPathComponent() string - UTF8String() *uint8 - Length() uint - StringByStandardizingPath() string - StringByRemovingPercentEncoding() string - FileSystemRepresentation() *uint8 - StringByDeletingLastPathComponent() string DecomposedStringWithCompatibilityMapping() string - StringByDeletingPathExtension() string - LongLongValue() int64 - IsAbsolutePath() bool LowercaseString() string - UppercaseString() string - LocalizedUppercaseString() string - DecomposedStringWithCanonicalMapping() string + FileSystemRepresentation() *uint8 + StringByStandardizingPath() string + StringByRemovingPercentEncoding() string + LocalizedCapitalizedString() string } // A static, plain-text Unicode string object. [Full Topic] @@ -143,28 +124,16 @@ func StringFrom(ptr unsafe.Pointer) String { } } -func (sc _StringClass) StringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error unsafe.Pointer) String { - rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfURL:usedEncoding:error:"), url, enc, error) - return rv -} - -// Returns a string created by reading data from a given URL and returns by reference the encoding used to interpret the data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497408-stringwithcontentsofurl?language=objc -func String_StringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error unsafe.Pointer) String { - return StringClass.StringWithContentsOfURLUsedEncodingError(url, enc, error) -} - -func (s_ String) InitWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error unsafe.Pointer) String { - rv := objc.Call[String](s_, objc.Sel("initWithContentsOfURL:usedEncoding:error:"), url, enc, error) +func (s_ String) InitWithCharactersNoCopyLengthDeallocator(chars *Unichar, len uint, deallocator func(arg0 *Unichar, arg1 uint)) String { + rv := objc.Call[String](s_, objc.Sel("initWithCharactersNoCopy:length:deallocator:"), chars, len, deallocator) return rv } -// Returns an NSString object initialized by reading data from a given URL and returns by reference the encoding used to interpret the data. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414472-initwithcontentsofurl?language=objc -func NewStringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error unsafe.Pointer) String { - instance := StringClass.Alloc().InitWithContentsOfURLUsedEncodingError(url, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547180-initwithcharactersnocopy?language=objc +func NewStringWithCharactersNoCopyLengthDeallocator(chars *Unichar, len uint, deallocator func(arg0 *Unichar, arg1 uint)) String { + instance := StringClass.Alloc().InitWithCharactersNoCopyLengthDeallocator(chars, len, deallocator) instance.Autorelease() return instance } @@ -181,44 +150,30 @@ func String_StringWithString(string_ string) String { return StringClass.StringWithString(string_) } -func (s_ String) InitWithString(aString string) String { - rv := objc.Call[String](s_, objc.Sel("initWithString:"), aString) - return rv -} - -// Returns an NSString object initialized by copying the characters from another given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411293-initwithstring?language=objc -func NewStringWithString(aString string) String { - instance := StringClass.Alloc().InitWithString(aString) - instance.Autorelease() - return instance -} - -func (s_ String) InitWithBytesNoCopyLengthEncodingFreeWhenDone(bytes unsafe.Pointer, len uint, encoding StringEncoding, freeBuffer bool) String { - rv := objc.Call[String](s_, objc.Sel("initWithBytesNoCopy:length:encoding:freeWhenDone:"), bytes, len, encoding, freeBuffer) +func (s_ String) InitWithFormatLocale(format string, locale objc.IObject, args ...any) String { + rv := objc.Call[String](s_, objc.Sel("initWithFormat:locale:"), append([]any{format, locale}, args...)...) return rv } -// Returns an initialized NSString object that contains a given number of bytes from a given buffer of bytes interpreted in a given encoding, and optionally frees the buffer. [Full Topic] +// Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413830-initwithbytesnocopy?language=objc -func NewStringWithBytesNoCopyLengthEncodingFreeWhenDone(bytes unsafe.Pointer, len uint, encoding StringEncoding, freeBuffer bool) String { - instance := StringClass.Alloc().InitWithBytesNoCopyLengthEncodingFreeWhenDone(bytes, len, encoding, freeBuffer) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497317-initwithformat?language=objc +func NewStringWithFormatLocale(format string, locale objc.IObject, args ...any) String { + instance := StringClass.Alloc().InitWithFormatLocale(format, locale, args...) instance.Autorelease() return instance } -func (s_ String) InitWithCharactersNoCopyLengthFreeWhenDone(characters *Unichar, length uint, freeBuffer bool) String { - rv := objc.Call[String](s_, objc.Sel("initWithCharactersNoCopy:length:freeWhenDone:"), characters, length, freeBuffer) +func (s_ String) InitWithDataEncoding(data []byte, encoding StringEncoding) String { + rv := objc.Call[String](s_, objc.Sel("initWithData:encoding:"), data, encoding) return rv } -// Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units. [Full Topic] +// Returns an NSString object initialized by converting given data into UTF-16 code units using a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412121-initwithcharactersnocopy?language=objc -func NewStringWithCharactersNoCopyLengthFreeWhenDone(characters *Unichar, length uint, freeBuffer bool) String { - instance := StringClass.Alloc().InitWithCharactersNoCopyLengthFreeWhenDone(characters, length, freeBuffer) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416374-initwithdata?language=objc +func NewStringWithDataEncoding(data []byte, encoding StringEncoding) String { + instance := StringClass.Alloc().InitWithDataEncoding(data, encoding) instance.Autorelease() return instance } @@ -235,82 +190,58 @@ func String_StringWithFormat(format string, args ...any) String { return StringClass.StringWithFormat(format, args...) } -func (sc _StringClass) StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) String { - rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, error) - return rv -} - -// Returns a string created by reading data from the file at a given path interpreted using a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497327-stringwithcontentsoffile?language=objc -func String_StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) String { - return StringClass.StringWithContentsOfFileEncodingError(path, enc, error) -} - -func (s_ String) InitWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) String { - rv := objc.Call[String](s_, objc.Sel("initWithContentsOfURL:encoding:error:"), url, enc, error) +func (s_ String) InitWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) String { + rv := objc.Call[String](s_, objc.Sel("initWithBytesNoCopy:length:encoding:deallocator:"), bytes, len, encoding, deallocator) return rv } -// Returns an NSString object initialized by reading data from a given URL interpreted using a given encoding. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414463-initwithcontentsofurl?language=objc -func NewStringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) String { - instance := StringClass.Alloc().InitWithContentsOfURLEncodingError(url, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547179-initwithbytesnocopy?language=objc +func NewStringWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) String { + instance := StringClass.Alloc().InitWithBytesNoCopyLengthEncodingDeallocator(bytes, len, encoding, deallocator) instance.Autorelease() return instance } -func (sc _StringClass) StringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error unsafe.Pointer) String { - rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfFile:usedEncoding:error:"), path, enc, error) - return rv -} - -// Returns a string created by reading data from the file at a given path and returns by reference the encoding used to interpret the file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497254-stringwithcontentsoffile?language=objc -func String_StringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error unsafe.Pointer) String { - return StringClass.StringWithContentsOfFileUsedEncodingError(path, enc, error) -} - -func (s_ String) InitWithFormatLocale(format string, locale objc.IObject, args ...any) String { - rv := objc.Call[String](s_, objc.Sel("initWithFormat:locale:"), append([]any{format, locale}, args...)...) +func (s_ String) InitWithString(aString string) String { + rv := objc.Call[String](s_, objc.Sel("initWithString:"), aString) return rv } -// Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale. [Full Topic] +// Returns an NSString object initialized by copying the characters from another given string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497317-initwithformat?language=objc -func NewStringWithFormatLocale(format string, locale objc.IObject, args ...any) String { - instance := StringClass.Alloc().InitWithFormatLocale(format, locale, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411293-initwithstring?language=objc +func NewStringWithString(aString string) String { + instance := StringClass.Alloc().InitWithString(aString) instance.Autorelease() return instance } -func (sc _StringClass) StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) String { - rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfURL:encoding:error:"), url, enc, error) +func (s_ String) InitWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding StringEncoding) String { + rv := objc.Call[String](s_, objc.Sel("initWithBytes:length:encoding:"), bytes, len, encoding) return rv } -// Returns a string created by reading data from a given URL interpreted using a given encoding. [Full Topic] +// Returns an initialized NSString object containing a given number of bytes from a given buffer of bytes interpreted in a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497360-stringwithcontentsofurl?language=objc -func String_StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) String { - return StringClass.StringWithContentsOfURLEncodingError(url, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407339-initwithbytes?language=objc +func NewStringWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding StringEncoding) String { + instance := StringClass.Alloc().InitWithBytesLengthEncoding(bytes, len, encoding) + instance.Autorelease() + return instance } -func (s_ String) InitWithDataEncoding(data []byte, encoding StringEncoding) String { - rv := objc.Call[String](s_, objc.Sel("initWithData:encoding:"), data, encoding) +func (sc _StringClass) StringWithCharactersLength(characters *Unichar, length uint) String { + rv := objc.Call[String](sc, objc.Sel("stringWithCharacters:length:"), characters, length) return rv } -// Returns an NSString object initialized by converting given data into UTF-16 code units using a given encoding. [Full Topic] +// Returns a string containing a given number of characters taken from a given C array of UTF-16 code units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416374-initwithdata?language=objc -func NewStringWithDataEncoding(data []byte, encoding StringEncoding) String { - instance := StringClass.Alloc().InitWithDataEncoding(data, encoding) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497248-stringwithcharacters?language=objc +func String_StringWithCharactersLength(characters *Unichar, length uint) String { + return StringClass.StringWithCharactersLength(characters, length) } func (s_ String) InitWithCharactersLength(characters *Unichar, length uint) String { @@ -327,20 +258,6 @@ func NewStringWithCharactersLength(characters *Unichar, length uint) String { return instance } -func (s_ String) InitWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding StringEncoding) String { - rv := objc.Call[String](s_, objc.Sel("initWithBytes:length:encoding:"), bytes, len, encoding) - return rv -} - -// Returns an initialized NSString object containing a given number of bytes from a given buffer of bytes interpreted in a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407339-initwithbytes?language=objc -func NewStringWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding StringEncoding) String { - instance := StringClass.Alloc().InitWithBytesLengthEncoding(bytes, len, encoding) - instance.Autorelease() - return instance -} - func (s_ String) InitWithUTF8String(nullTerminatedCString *uint8) String { rv := objc.Call[String](s_, objc.Sel("initWithUTF8String:"), nullTerminatedCString) return rv @@ -355,30 +272,16 @@ func NewStringWithUTF8String(nullTerminatedCString *uint8) String { return instance } -func (sc _StringClass) StringWithCStringEncoding(cString *uint8, enc StringEncoding) String { - rv := objc.Call[String](sc, objc.Sel("stringWithCString:encoding:"), cString, enc) +func (sc _StringClass) LocalizedStringWithFormat(format string, args ...any) String { + rv := objc.Call[String](sc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) return rv } -// Returns a string containing the bytes in a given C array, interpreted according to a given encoding. [Full Topic] +// Returns a string created by using a given format string as a template into which the remaining argument values are substituted according to the current locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497310-stringwithcstring?language=objc -func String_StringWithCStringEncoding(cString *uint8, enc StringEncoding) String { - return StringClass.StringWithCStringEncoding(cString, enc) -} - -func (s_ String) InitWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error unsafe.Pointer) String { - rv := objc.Call[String](s_, objc.Sel("initWithContentsOfFile:usedEncoding:error:"), path, enc, error) - return rv -} - -// Returns an NSString object initialized by reading data from the file at a given path and returns by reference the encoding used to interpret the characters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1418227-initwithcontentsoffile?language=objc -func NewStringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error unsafe.Pointer) String { - instance := StringClass.Alloc().InitWithContentsOfFileUsedEncodingError(path, enc, error) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497301-localizedstringwithformat?language=objc +func String_LocalizedStringWithFormat(format string, args ...any) String { + return StringClass.LocalizedStringWithFormat(format, args...) } func (s_ String) Init() String { @@ -386,74 +289,6 @@ func (s_ String) Init() String { return rv } -func (sc _StringClass) StringWithCharactersLength(characters *Unichar, length uint) String { - rv := objc.Call[String](sc, objc.Sel("stringWithCharacters:length:"), characters, length) - return rv -} - -// Returns a string containing a given number of characters taken from a given C array of UTF-16 code units. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497248-stringwithcharacters?language=objc -func String_StringWithCharactersLength(characters *Unichar, length uint) String { - return StringClass.StringWithCharactersLength(characters, length) -} - -func (s_ String) InitWithCharactersNoCopyLengthDeallocator(chars *Unichar, len uint, deallocator func(arg0 *Unichar, arg1 uint)) String { - rv := objc.Call[String](s_, objc.Sel("initWithCharactersNoCopy:length:deallocator:"), chars, len, deallocator) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547180-initwithcharactersnocopy?language=objc -func NewStringWithCharactersNoCopyLengthDeallocator(chars *Unichar, len uint, deallocator func(arg0 *Unichar, arg1 uint)) String { - instance := StringClass.Alloc().InitWithCharactersNoCopyLengthDeallocator(chars, len, deallocator) - instance.Autorelease() - return instance -} - -func (s_ String) InitWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) String { - rv := objc.Call[String](s_, objc.Sel("initWithBytesNoCopy:length:encoding:deallocator:"), bytes, len, encoding, deallocator) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3547179-initwithbytesnocopy?language=objc -func NewStringWithBytesNoCopyLengthEncodingDeallocator(bytes unsafe.Pointer, len uint, encoding StringEncoding, deallocator func(arg0 unsafe.Pointer, arg1 uint)) String { - instance := StringClass.Alloc().InitWithBytesNoCopyLengthEncodingDeallocator(bytes, len, encoding, deallocator) - instance.Autorelease() - return instance -} - -func (s_ String) InitWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) String { - rv := objc.Call[String](s_, objc.Sel("initWithContentsOfFile:encoding:error:"), path, enc, error) - return rv -} - -// Returns an NSString object initialized by reading data from the file at a given path using a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412610-initwithcontentsoffile?language=objc -func NewStringWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) String { - instance := StringClass.Alloc().InitWithContentsOfFileEncodingError(path, enc, error) - instance.Autorelease() - return instance -} - -func (s_ String) InitWithFormat(format string, args ...any) String { - rv := objc.Call[String](s_, objc.Sel("initWithFormat:"), append([]any{format}, args...)...) - return rv -} - -// Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497402-initwithformat?language=objc -func NewStringWithFormat(format string, args ...any) String { - instance := StringClass.Alloc().InitWithFormat(format, args...) - instance.Autorelease() - return instance -} - func (sc _StringClass) StringWithUTF8String(nullTerminatedCString *uint8) String { rv := objc.Call[String](sc, objc.Sel("stringWithUTF8String:"), nullTerminatedCString) return rv @@ -466,30 +301,28 @@ func String_StringWithUTF8String(nullTerminatedCString *uint8) String { return StringClass.StringWithUTF8String(nullTerminatedCString) } -func (s_ String) InitWithCStringEncoding(nullTerminatedCString *uint8, encoding StringEncoding) String { - rv := objc.Call[String](s_, objc.Sel("initWithCString:encoding:"), nullTerminatedCString, encoding) +func (sc _StringClass) StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) String { + rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfURL:encoding:error:"), url, enc, error) return rv } -// Returns an NSString object initialized using the characters in a given C array, interpreted according to a given encoding. [Full Topic] +// Returns a string created by reading data from a given URL interpreted using a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411950-initwithcstring?language=objc -func NewStringWithCStringEncoding(nullTerminatedCString *uint8, encoding StringEncoding) String { - instance := StringClass.Alloc().InitWithCStringEncoding(nullTerminatedCString, encoding) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497360-stringwithcontentsofurl?language=objc +func String_StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error unsafe.Pointer) String { + return StringClass.StringWithContentsOfURLEncodingError(url, enc, error) } -func (sc _StringClass) LocalizedStringWithFormat(format string, args ...any) String { - rv := objc.Call[String](sc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) +func (sc _StringClass) StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) String { + rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, error) return rv } -// Returns a string created by using a given format string as a template into which the remaining argument values are substituted according to the current locale. [Full Topic] +// Returns a string created by reading data from the file at a given path interpreted using a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497301-localizedstringwithformat?language=objc -func String_LocalizedStringWithFormat(format string, args ...any) String { - return StringClass.LocalizedStringWithFormat(format, args...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497327-stringwithcontentsoffile?language=objc +func String_StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error unsafe.Pointer) String { + return StringClass.StringWithContentsOfFileEncodingError(path, enc, error) } func (sc _StringClass) Alloc() String { @@ -507,82 +340,91 @@ func NewString() String { return StringClass.New() } -// Returns a new string made from the receiver by replacing all characters not in the specified set with percent-encoded characters. [Full Topic] +// Returns a Boolean value that indicates whether a given string is equal to the receiver using a literal Unicode-based comparison. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411946-stringbyaddingpercentencodingwit?language=objc -func (s_ String) StringByAddingPercentEncodingWithAllowedCharacters(allowedCharacters ICharacterSet) string { - rv := objc.Call[string](s_, objc.Sel("stringByAddingPercentEncodingWithAllowedCharacters:"), allowedCharacters) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407803-isequaltostring?language=objc +func (s_ String) IsEqualToString(aString string) bool { + rv := objc.Call[bool](s_, objc.Sel("isEqualToString:"), aString) return rv } -// Returns a capitalized representation of the receiver using the specified locale. [Full Topic] +// Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414023-capitalizedstringwithlocale?language=objc -func (s_ String) CapitalizedStringWithLocale(locale ILocale) string { - rv := objc.Call[string](s_, objc.Sel("capitalizedStringWithLocale:"), locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410309-hasprefix?language=objc +func (s_ String) HasPrefix(str string) bool { + rv := objc.Call[bool](s_, objc.Sel("hasPrefix:"), str) return rv } -// Returns a new string in which all occurrences of a target string in a specified range of the receiver are replaced by another given string. [Full Topic] +// Returns the maximum number of bytes needed to store the receiver in a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416484-stringbyreplacingoccurrencesofst?language=objc -func (s_ String) StringByReplacingOccurrencesOfStringWithStringOptionsRange(target string, replacement string, options StringCompareOptions, searchRange Range) string { - rv := objc.Call[string](s_, objc.Sel("stringByReplacingOccurrencesOfString:withString:options:range:"), target, replacement, options, searchRange) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411611-maximumlengthofbytesusingencodin?language=objc +func (s_ String) MaximumLengthOfBytesUsingEncoding(enc StringEncoding) uint { + rv := objc.Call[uint](s_, objc.Sel("maximumLengthOfBytesUsingEncoding:"), enc) return rv } -// Returns a new string made by removing from both ends of the receiver characters contained in a given character set. [Full Topic] +// Compares strings as sorted by the Finder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1415462-stringbytrimmingcharactersinset?language=objc -func (s_ String) StringByTrimmingCharactersInSet(set ICharacterSet) string { - rv := objc.Call[string](s_, objc.Sel("stringByTrimmingCharactersInSet:"), set) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409742-localizedstandardcompare?language=objc +func (s_ String) LocalizedStandardCompare(string_ string) ComparisonResult { + rv := objc.Call[ComparisonResult](s_, objc.Sel("localizedStandardCompare:"), string_) return rv } -// Interprets the receiver as a path in the file system and attempts to perform filename completion, returning a numeric value that indicates whether a match was possible, and by reference the longest path that matches the receiver. [Full Topic] +// Returns a Boolean value indicating whether the string contains a given string by performing a case and diacritic insensitive, locale-aware search. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411841-completepathintostring?language=objc -func (s_ String) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName unsafe.Pointer, flag bool, outputArray unsafe.Pointer, filterTypes []string) uint { - rv := objc.Call[uint](s_, objc.Sel("completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:"), outputName, flag, outputArray, filterTypes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416328-localizedstandardcontainsstring?language=objc +func (s_ String) LocalizedStandardContainsString(str string) bool { + rv := objc.Call[bool](s_, objc.Sel("localizedStandardContainsString:"), str) + return rv +} + +// Returns an array containing substrings from the receiver that have been divided by characters in a given set. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410120-componentsseparatedbycharactersi?language=objc +func (s_ String) ComponentsSeparatedByCharactersInSet(separator ICharacterSet) []string { + rv := objc.Call[[]string](s_, objc.Sel("componentsSeparatedByCharactersInSet:"), separator) return rv } -// Finds and returns the range in the string of the first character from a given character set found in a given range with given options. [Full Topic] +// Returns the range in the receiver of the composed character sequence located at a given index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411461-rangeofcharacterfromset?language=objc -func (s_ String) RangeOfCharacterFromSetOptionsRange(searchSet ICharacterSet, mask StringCompareOptions, rangeOfReceiverToSearch Range) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfCharacterFromSet:options:range:"), searchSet, mask, rangeOfReceiverToSearch) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416036-rangeofcomposedcharactersequence?language=objc +func (s_ String) RangeOfComposedCharacterSequenceAtIndex(index uint) Range { + rv := objc.Call[Range](s_, objc.Sel("rangeOfComposedCharacterSequenceAtIndex:"), index) return rv } -// Returns a new string made by appending to the receiver an extension separator followed by a given extension. [Full Topic] +// Returns a Boolean value indicating whether the string contains a given string by performing a case-insensitive, locale-aware search. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412501-stringbyappendingpathextension?language=objc -func (s_ String) StringByAppendingPathExtension(str string) string { - rv := objc.Call[string](s_, objc.Sel("stringByAppendingPathExtension:"), str) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412098-localizedcaseinsensitivecontains?language=objc +func (s_ String) LocalizedCaseInsensitiveContainsString(str string) bool { + rv := objc.Call[bool](s_, objc.Sel("localizedCaseInsensitiveContainsString:"), str) return rv } -// Returns a version of the string with all letters converted to uppercase, taking into account the specified locale. [Full Topic] +// Returns a capitalized representation of the receiver using the specified locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413316-uppercasestringwithlocale?language=objc -func (s_ String) UppercaseStringWithLocale(locale ILocale) string { - rv := objc.Call[string](s_, objc.Sel("uppercaseStringWithLocale:"), locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414023-capitalizedstringwithlocale?language=objc +func (s_ String) CapitalizedStringWithLocale(locale ILocale) string { + rv := objc.Call[string](s_, objc.Sel("capitalizedStringWithLocale:"), locale) return rv } -// Returns by reference the beginning of the first line and the end of the last line touched by the given range. [Full Topic] +// Returns a new string containing the characters of the receiver from the one at a given index to the end. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1415111-getlinestart?language=objc -func (s_ String) GetLineStartEndContentsEndForRange(startPtr *uint, lineEndPtr *uint, contentsEndPtr *uint, range_ Range) { - objc.Call[objc.Void](s_, objc.Sel("getLineStart:end:contentsEnd:forRange:"), startPtr, lineEndPtr, contentsEndPtr, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414368-substringfromindex?language=objc +func (s_ String) SubstringFromIndex(from uint) string { + rv := objc.Call[string](s_, objc.Sel("substringFromIndex:"), from) + return rv } -// Converts the string to a given encoding and stores it in a buffer. [Full Topic] +// Returns a string containing characters the receiver and a given string have in common, starting from the beginning of each up to the first characters that aren’t equivalent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1415702-getcstring?language=objc -func (s_ String) GetCStringMaxLengthEncoding(buffer *uint8, maxBufferCount uint, encoding StringEncoding) bool { - rv := objc.Call[bool](s_, objc.Sel("getCString:maxLength:encoding:"), buffer, maxBufferCount, encoding) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408169-commonprefixwithstring?language=objc +func (s_ String) CommonPrefixWithStringOptions(str string, mask StringCompareOptions) string { + rv := objc.Call[string](s_, objc.Sel("commonPrefixWithString:options:"), str, mask) return rv } @@ -594,325 +436,262 @@ func (s_ String) StringByReplacingCharactersInRangeWithString(range_ Range, repl return rv } -// Returns a string made by appending to the receiver a string constructed from a given format string and the following arguments. [Full Topic] +// Compares the string with a given string using a case-insensitive, localized, comparison. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497272-stringbyappendingformat?language=objc -func (s_ String) StringByAppendingFormat(format string, args ...any) string { - rv := objc.Call[string](s_, objc.Sel("stringByAppendingFormat:"), append([]any{format}, args...)...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417333-localizedcaseinsensitivecompare?language=objc +func (s_ String) LocalizedCaseInsensitiveCompare(string_ string) ComparisonResult { + rv := objc.Call[ComparisonResult](s_, objc.Sel("localizedCaseInsensitiveCompare:"), string_) return rv } -// Parses the receiver as a text representation of a property list, returning an NSString, NSData, NSArray, or NSDictionary object, according to the topmost element. [Full Topic] +// Returns a new string made by appending a given string to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413115-propertylist?language=objc -func (s_ String) PropertyList() objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("propertyList")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412307-stringbyappendingstring?language=objc +func (s_ String) StringByAppendingString(aString string) string { + rv := objc.Call[string](s_, objc.Sel("stringByAppendingString:"), aString) return rv } -// Finds and returns the range in the string of the first character from a given character set. [Full Topic] +// Finds and returns the range in the string of the first character, using given options, from a given character set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411930-rangeofcharacterfromset?language=objc -func (s_ String) RangeOfCharacterFromSet(searchSet ICharacterSet) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfCharacterFromSet:"), searchSet) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416898-rangeofcharacterfromset?language=objc +func (s_ String) RangeOfCharacterFromSetOptions(searchSet ICharacterSet, mask StringCompareOptions) Range { + rv := objc.Call[Range](s_, objc.Sel("rangeOfCharacterFromSet:options:"), searchSet, mask) return rv } -// Returns an array of strings made by separately appending to the receiver each string in a given array. [Full Topic] +// Returns a string object containing the characters of the receiver that lie within a given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1415100-stringsbyappendingpaths?language=objc -func (s_ String) StringsByAppendingPaths(paths []string) []string { - rv := objc.Call[[]string](s_, objc.Sel("stringsByAppendingPaths:"), paths) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1418469-substringwithrange?language=objc +func (s_ String) SubstringWithRange(range_ Range) string { + rv := objc.Call[string](s_, objc.Sel("substringWithRange:"), range_) return rv } -// Returns a version of the string with all letters converted to lowercase, taking into account the specified locale. [Full Topic] +// Returns a new string made from the receiver by replacing all characters not in the specified set with percent-encoded characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417298-lowercasestringwithlocale?language=objc -func (s_ String) LowercaseStringWithLocale(locale ILocale) string { - rv := objc.Call[string](s_, objc.Sel("lowercaseStringWithLocale:"), locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411946-stringbyaddingpercentencodingwit?language=objc +func (s_ String) StringByAddingPercentEncodingWithAllowedCharacters(allowedCharacters ICharacterSet) string { + rv := objc.Call[string](s_, objc.Sel("stringByAddingPercentEncodingWithAllowedCharacters:"), allowedCharacters) return rv } -// Returns the character at a given UTF-16 code unit index. [Full Topic] +// Returns a localized string intended for display in a notification alert. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414645-characteratindex?language=objc -func (s_ String) CharacterAtIndex(index uint) Unichar { - rv := objc.Call[Unichar](s_, objc.Sel("characterAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1649585-localizedusernotificationstringf?language=objc +func (sc _StringClass) LocalizedUserNotificationStringForKeyArguments(key string, arguments []objc.IObject) string { + rv := objc.Call[string](sc, objc.Sel("localizedUserNotificationStringForKey:arguments:"), key, arguments) return rv } -// Finds and returns the range in the string of the first character, using given options, from a given character set. [Full Topic] +// Returns a localized string intended for display in a notification alert. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416898-rangeofcharacterfromset?language=objc -func (s_ String) RangeOfCharacterFromSetOptions(searchSet ICharacterSet, mask StringCompareOptions) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfCharacterFromSet:options:"), searchSet, mask) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1649585-localizedusernotificationstringf?language=objc +func String_LocalizedUserNotificationStringForKeyArguments(key string, arguments []objc.IObject) string { + return StringClass.LocalizedUserNotificationStringForKeyArguments(key, arguments) } -// Calculates and returns the bounding rect for the receiver drawn using the given options and display characteristics, within the specified rectangle in the current graphics context. [Full Topic] +// Returns a string variation suitable for the specified presentation width. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1524729-boundingrectwithsize?language=objc -func (s_ String) BoundingRectWithSizeOptionsAttributesContext(size Size, options objc.IObject, attributes map[AttributedStringKey]objc.IObject, context objc.IObject) Rect { - rv := objc.Call[Rect](s_, objc.Sel("boundingRectWithSize:options:attributes:context:"), size, options, attributes, context) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413104-variantfittingpresentationwidth?language=objc +func (s_ String) VariantFittingPresentationWidth(width int) string { + rv := objc.Call[string](s_, objc.Sel("variantFittingPresentationWidth:"), width) return rv } -// Returns a Boolean value indicating whether the string contains a given string by performing a case-insensitive, locale-aware search. [Full Topic] +// Returns a version of the string with all letters converted to lowercase, taking into account the specified locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412098-localizedcaseinsensitivecontains?language=objc -func (s_ String) LocalizedCaseInsensitiveContainsString(str string) bool { - rv := objc.Call[bool](s_, objc.Sel("localizedCaseInsensitiveContainsString:"), str) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417298-lowercasestringwithlocale?language=objc +func (s_ String) LowercaseStringWithLocale(locale ILocale) string { + rv := objc.Call[string](s_, objc.Sel("lowercaseStringWithLocale:"), locale) return rv } -// Returns the result of invoking [foundation/nsstring/compare] with NSCaseInsensitiveSearch as the only option. [Full Topic] +// Returns the range of characters representing the line or lines containing a given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414769-caseinsensitivecompare?language=objc -func (s_ String) CaseInsensitiveCompare(string_ string) ComparisonResult { - rv := objc.Call[ComparisonResult](s_, objc.Sel("caseInsensitiveCompare:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407736-linerangeforrange?language=objc +func (s_ String) LineRangeForRange(range_ Range) Range { + rv := objc.Call[Range](s_, objc.Sel("lineRangeForRange:"), range_) return rv } -// Enumerates the substrings of the specified type in the specified range of the string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416774-enumeratesubstringsinrange?language=objc -func (s_ String) EnumerateSubstringsInRangeOptionsUsingBlock(range_ Range, opts StringEnumerationOptions, block func(substring string, substringRange Range, enclosingRange Range, stop *bool)) { - objc.Call[objc.Void](s_, objc.Sel("enumerateSubstringsInRange:options:usingBlock:"), range_, opts, block) -} - -// Returns a string containing characters the receiver and a given string have in common, starting from the beginning of each up to the first characters that aren’t equivalent. [Full Topic] +// Returns a new string containing the characters of the receiver up to, but not including, the one at a given index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408169-commonprefixwithstring?language=objc -func (s_ String) CommonPrefixWithStringOptions(str string, mask StringCompareOptions) string { - rv := objc.Call[string](s_, objc.Sel("commonPrefixWithString:options:"), str, mask) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408017-substringtoindex?language=objc +func (s_ String) SubstringToIndex(to uint) string { + rv := objc.Call[string](s_, objc.Sel("substringToIndex:"), to) return rv } -// Returns a Boolean value that indicates whether a given string matches the ending characters of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416529-hassuffix?language=objc -func (s_ String) HasSuffix(str string) bool { - rv := objc.Call[bool](s_, objc.Sel("hasSuffix:"), str) - return rv -} - -// Returns by reference the beginning of the first paragraph and the end of the last paragraph touched by the given range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416407-getparagraphstart?language=objc -func (s_ String) GetParagraphStartEndContentsEndForRange(startPtr *uint, parEndPtr *uint, contentsEndPtr *uint, range_ Range) { - objc.Call[objc.Void](s_, objc.Sel("getParagraphStart:end:contentsEnd:forRange:"), startPtr, parEndPtr, contentsEndPtr, range_) -} - -// Returns a new string made by appending a given string to the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412307-stringbyappendingstring?language=objc -func (s_ String) StringByAppendingString(aString string) string { - rv := objc.Call[string](s_, objc.Sel("stringByAppendingString:"), aString) - return rv -} - -// Returns the range in the string of the composed character sequences for a given range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410993-rangeofcomposedcharactersequence?language=objc -func (s_ String) RangeOfComposedCharacterSequencesForRange(range_ Range) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfComposedCharacterSequencesForRange:"), range_) - return rv -} - -// Enumerates all the lines in the string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408459-enumeratelinesusingblock?language=objc -func (s_ String) EnumerateLinesUsingBlock(block func(line string, stop *bool)) { - objc.Call[objc.Void](s_, objc.Sel("enumerateLinesUsingBlock:"), block) -} - -// Returns a representation of the string as a C string using a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408489-cstringusingencoding?language=objc -func (s_ String) CStringUsingEncoding(encoding StringEncoding) *uint8 { - rv := objc.Call[*uint8](s_, objc.Sel("cStringUsingEncoding:"), encoding) - return rv -} - -// Returns a string variation suitable for the specified presentation width. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413104-variantfittingpresentationwidth?language=objc -func (s_ String) VariantFittingPresentationWidth(width int) string { - rv := objc.Call[string](s_, objc.Sel("variantFittingPresentationWidth:"), width) - return rv -} - -// Returns a string object containing the characters of the receiver that lie within a given range. [Full Topic] +// Interprets the receiver as a path in the file system and attempts to perform filename completion, returning a numeric value that indicates whether a match was possible, and by reference the longest path that matches the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1418469-substringwithrange?language=objc -func (s_ String) SubstringWithRange(range_ Range) string { - rv := objc.Call[string](s_, objc.Sel("substringWithRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411841-completepathintostring?language=objc +func (s_ String) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName unsafe.Pointer, flag bool, outputArray unsafe.Pointer, filterTypes []string) uint { + rv := objc.Call[uint](s_, objc.Sel("completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:"), outputName, flag, outputArray, filterTypes) return rv } -// Gets a given range of characters as bytes in a specified encoding. [Full Topic] +// Returns the range of characters representing the paragraph or paragraphs containing a given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413453-getbytes?language=objc -func (s_ String) GetBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange(buffer unsafe.Pointer, maxBufferCount uint, usedBufferCount *uint, encoding StringEncoding, options StringEncodingConversionOptions, range_ Range, leftover RangePointer) bool { - rv := objc.Call[bool](s_, objc.Sel("getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"), buffer, maxBufferCount, usedBufferCount, encoding, options, range_, leftover) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408548-paragraphrangeforrange?language=objc +func (s_ String) ParagraphRangeForRange(range_ Range) Range { + rv := objc.Call[Range](s_, objc.Sel("paragraphRangeForRange:"), range_) return rv } -// Finds and returns the range of the first occurrence of a given string within the string. [Full Topic] +// Returns a string built from the strings in a given array by concatenating them with a path separator between each pair. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410144-rangeofstring?language=objc -func (s_ String) RangeOfString(searchString string) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfString:"), searchString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417198-pathwithcomponents?language=objc +func (sc _StringClass) PathWithComponents(components []string) string { + rv := objc.Call[string](sc, objc.Sel("pathWithComponents:"), components) return rv } -// Returns the maximum number of bytes needed to store the receiver in a given encoding. [Full Topic] +// Returns a string built from the strings in a given array by concatenating them with a path separator between each pair. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411611-maximumlengthofbytesusingencodin?language=objc -func (s_ String) MaximumLengthOfBytesUsingEncoding(enc StringEncoding) uint { - rv := objc.Call[uint](s_, objc.Sel("maximumLengthOfBytesUsingEncoding:"), enc) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417198-pathwithcomponents?language=objc +func String_PathWithComponents(components []string) string { + return StringClass.PathWithComponents(components) } -// Returns a new string formed from the receiver by either removing characters from the end, or by appending as many occurrences as necessary of a given pad string. [Full Topic] +// Returns a string made by appending to the receiver a string constructed from a given format string and the following arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416395-stringbypaddingtolength?language=objc -func (s_ String) StringByPaddingToLengthWithStringStartingAtIndex(newLength uint, padString string, padIndex uint) string { - rv := objc.Call[string](s_, objc.Sel("stringByPaddingToLength:withString:startingAtIndex:"), newLength, padString, padIndex) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497272-stringbyappendingformat?language=objc +func (s_ String) StringByAppendingFormat(format string, args ...any) string { + rv := objc.Call[string](s_, objc.Sel("stringByAppendingFormat:"), append([]any{format}, args...)...) return rv } -// Compares the string using the specified options and returns the lexical ordering for the range. [Full Topic] +// Returns an NSData object containing a representation of the receiver encoded using a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414561-compare?language=objc -func (s_ String) CompareOptionsRangeLocale(string_ string, mask StringCompareOptions, rangeOfReceiverToCompare Range, locale objc.IObject) ComparisonResult { - rv := objc.Call[ComparisonResult](s_, objc.Sel("compare:options:range:locale:"), string_, mask, rangeOfReceiverToCompare, locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416696-datausingencoding?language=objc +func (s_ String) DataUsingEncoding(encoding StringEncoding) []byte { + rv := objc.Call[[]byte](s_, objc.Sel("dataUsingEncoding:"), encoding) return rv } -// Returns a Boolean value indicating whether the string contains a given string by performing a case-sensitive, locale-unaware search. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414563-containsstring?language=objc -func (s_ String) ContainsString(str string) bool { - rv := objc.Call[bool](s_, objc.Sel("containsString:"), str) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/2990401-deferredlocalizedintentsstringwi?language=objc +func (sc _StringClass) DeferredLocalizedIntentsStringWithFormat(format string, args ...any) string { + rv := objc.Call[string](sc, objc.Sel("deferredLocalizedIntentsStringWithFormat:"), append([]any{format}, args...)...) return rv } -// Draws the attributed string in the specified bounding rectangle using the provided options. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1530195-drawwithrect?language=objc -func (s_ String) DrawWithRectOptionsAttributesContext(rect Rect, options objc.IObject, attributes map[AttributedStringKey]objc.IObject, context objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("drawWithRect:options:attributes:context:"), rect, options, attributes, context) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/2990401-deferredlocalizedintentsstringwi?language=objc +func String_DeferredLocalizedIntentsStringWithFormat(format string, args ...any) string { + return StringClass.DeferredLocalizedIntentsStringWithFormat(format, args...) } // Returns the bounding box size the receiver occupies when drawn with the given attributes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1531844-sizewithattributes?language=objc -func (s_ String) SizeWithAttributes(attrs map[AttributedStringKey]objc.IObject) Size { - rv := objc.Call[Size](s_, objc.Sel("sizeWithAttributes:"), attrs) +func (s_ String) SizeWithAttributes(attrs map[AttributedStringKey]objc.IObject) coregraphics.Size { + rv := objc.Call[coregraphics.Size](s_, objc.Sel("sizeWithAttributes:"), attrs) return rv } -// Returns a Boolean value that indicates whether a given string is equal to the receiver using a literal Unicode-based comparison. [Full Topic] +// Returns a new string in which all occurrences of a target string in a specified range of the receiver are replaced by another given string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407803-isequaltostring?language=objc -func (s_ String) IsEqualToString(aString string) bool { - rv := objc.Call[bool](s_, objc.Sel("isEqualToString:"), aString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416484-stringbyreplacingoccurrencesofst?language=objc +func (s_ String) StringByReplacingOccurrencesOfStringWithStringOptionsRange(target string, replacement string, options StringCompareOptions, searchRange Range) string { + rv := objc.Call[string](s_, objc.Sel("stringByReplacingOccurrencesOfString:withString:options:range:"), target, replacement, options, searchRange) return rv } -// Finds and returns the range of the first occurrence of a given string, within the given range of the string, subject to given options. [Full Topic] +// Returns the string encoding for the given data as detected by attempting to create a string according to the specified encoding options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1415073-rangeofstring?language=objc -func (s_ String) RangeOfStringOptionsRange(searchString string, mask StringCompareOptions, rangeOfReceiverToSearch Range) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfString:options:range:"), searchString, mask, rangeOfReceiverToSearch) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413576-stringencodingfordata?language=objc +func (sc _StringClass) StringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data []byte, opts map[StringEncodingDetectionOptionsKey]objc.IObject, string_ unsafe.Pointer, usedLossyConversion *bool) StringEncoding { + rv := objc.Call[StringEncoding](sc, objc.Sel("stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"), data, opts, string_, usedLossyConversion) return rv } -// Returns the range of characters representing the paragraph or paragraphs containing a given range. [Full Topic] +// Returns the string encoding for the given data as detected by attempting to create a string according to the specified encoding options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408548-paragraphrangeforrange?language=objc -func (s_ String) ParagraphRangeForRange(range_ Range) Range { - rv := objc.Call[Range](s_, objc.Sel("paragraphRangeForRange:"), range_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413576-stringencodingfordata?language=objc +func String_StringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data []byte, opts map[StringEncodingDetectionOptionsKey]objc.IObject, string_ unsafe.Pointer, usedLossyConversion *bool) StringEncoding { + return StringClass.StringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data, opts, string_, usedLossyConversion) } -// Returns a new string by applying a specified transform to the string. [Full Topic] +// Returns a new string formed from the receiver by either removing characters from the end, or by appending as many occurrences as necessary of a given pad string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407787-stringbyapplyingtransform?language=objc -func (s_ String) StringByApplyingTransformReverse(transform StringTransform, reverse bool) string { - rv := objc.Call[string](s_, objc.Sel("stringByApplyingTransform:reverse:"), transform, reverse) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416395-stringbypaddingtolength?language=objc +func (s_ String) StringByPaddingToLengthWithStringStartingAtIndex(newLength uint, padString string, padIndex uint) string { + rv := objc.Call[string](s_, objc.Sel("stringByPaddingToLength:withString:startingAtIndex:"), newLength, padString, padIndex) return rv } -// Draws the attributed string inside the specified bounding rectangle. [Full Topic] +// Parses the receiver as a text representation of a property list, returning an NSString, NSData, NSArray, or NSDictionary object, according to the topmost element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1529855-drawinrect?language=objc -func (s_ String) DrawInRectWithAttributes(rect Rect, attrs map[AttributedStringKey]objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("drawInRect:withAttributes:"), rect, attrs) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413115-propertylist?language=objc +func (s_ String) PropertyList() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("propertyList")) + return rv } -// Creates a string suitable for comparison by removing the specified character distinctions from a string. [Full Topic] +// Returns the number of bytes required to store the receiver in a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413779-stringbyfoldingwithoptions?language=objc -func (s_ String) StringByFoldingWithOptionsLocale(options StringCompareOptions, locale ILocale) string { - rv := objc.Call[string](s_, objc.Sel("stringByFoldingWithOptions:locale:"), options, locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410710-lengthofbytesusingencoding?language=objc +func (s_ String) LengthOfBytesUsingEncoding(enc StringEncoding) uint { + rv := objc.Call[uint](s_, objc.Sel("lengthOfBytesUsingEncoding:"), enc) return rv } -// Returns an NSData object containing a representation of the receiver encoded using a given encoding. [Full Topic] +// Returns a new string made by removing from both ends of the receiver characters contained in a given character set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416696-datausingencoding?language=objc -func (s_ String) DataUsingEncoding(encoding StringEncoding) []byte { - rv := objc.Call[[]byte](s_, objc.Sel("dataUsingEncoding:"), encoding) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1415462-stringbytrimmingcharactersinset?language=objc +func (s_ String) StringByTrimmingCharactersInSet(set ICharacterSet) string { + rv := objc.Call[string](s_, objc.Sel("stringByTrimmingCharactersInSet:"), set) return rv } -// Copies characters from a given range in the receiver into a given buffer. [Full Topic] +// Finds and returns the range of the first occurrence of a given string within the string, subject to given options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408720-getcharacters?language=objc -func (s_ String) GetCharactersRange(buffer *Unichar, range_ Range) { - objc.Call[objc.Void](s_, objc.Sel("getCharacters:range:"), buffer, range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416849-rangeofstring?language=objc +func (s_ String) RangeOfStringOptions(searchString string, mask StringCompareOptions) Range { + rv := objc.Call[Range](s_, objc.Sel("rangeOfString:options:"), searchString, mask) + return rv } -// Returns the range in the receiver of the composed character sequence located at a given index. [Full Topic] +// Returns a new string made by appending to the receiver an extension separator followed by a given extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416036-rangeofcomposedcharactersequence?language=objc -func (s_ String) RangeOfComposedCharacterSequenceAtIndex(index uint) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfComposedCharacterSequenceAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412501-stringbyappendingpathextension?language=objc +func (s_ String) StringByAppendingPathExtension(str string) string { + rv := objc.Call[string](s_, objc.Sel("stringByAppendingPathExtension:"), str) return rv } -// Returns an array containing substrings from the receiver that have been divided by characters in a given set. [Full Topic] +// Returns by reference the beginning of the first line and the end of the last line touched by the given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410120-componentsseparatedbycharactersi?language=objc -func (s_ String) ComponentsSeparatedByCharactersInSet(separator ICharacterSet) []string { - rv := objc.Call[[]string](s_, objc.Sel("componentsSeparatedByCharactersInSet:"), separator) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1415111-getlinestart?language=objc +func (s_ String) GetLineStartEndContentsEndForRange(startPtr *uint, lineEndPtr *uint, contentsEndPtr *uint, range_ Range) { + objc.Call[objc.Void](s_, objc.Sel("getLineStart:end:contentsEnd:forRange:"), startPtr, lineEndPtr, contentsEndPtr, range_) } -// Compares the string with a given string using a case-insensitive, localized, comparison. [Full Topic] +// Interprets the receiver as a system-independent path and fills a buffer with a C-string in a format and encoding suitable for use with file-system calls. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417333-localizedcaseinsensitivecompare?language=objc -func (s_ String) LocalizedCaseInsensitiveCompare(string_ string) ComparisonResult { - rv := objc.Call[ComparisonResult](s_, objc.Sel("localizedCaseInsensitiveCompare:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410269-getfilesystemrepresentation?language=objc +func (s_ String) GetFileSystemRepresentationMaxLength(cname *uint8, max uint) bool { + rv := objc.Call[bool](s_, objc.Sel("getFileSystemRepresentation:maxLength:"), cname, max) return rv } -// Returns a new string containing the characters of the receiver from the one at a given index to the end. [Full Topic] +// Returns a Boolean value indicating whether the string contains a given string by performing a case-sensitive, locale-unaware search. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414368-substringfromindex?language=objc -func (s_ String) SubstringFromIndex(from uint) string { - rv := objc.Call[string](s_, objc.Sel("substringFromIndex:"), from) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414563-containsstring?language=objc +func (s_ String) ContainsString(str string) bool { + rv := objc.Call[bool](s_, objc.Sel("containsString:"), str) return rv } -// Returns a Boolean value that indicates whether the receiver can be converted to a given encoding without loss of information. [Full Topic] +// Returns the result of invoking compare: with NSCaseInsensitiveSearch as the only option. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409496-canbeconvertedtoencoding?language=objc -func (s_ String) CanBeConvertedToEncoding(encoding StringEncoding) bool { - rv := objc.Call[bool](s_, objc.Sel("canBeConvertedToEncoding:"), encoding) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414769-caseinsensitivecompare?language=objc +func (s_ String) CaseInsensitiveCompare(string_ string) ComparisonResult { + rv := objc.Call[ComparisonResult](s_, objc.Sel("caseInsensitiveCompare:"), string_) return rv } @@ -924,59 +703,19 @@ func (s_ String) PropertyListFromStringsFileFormat() Dictionary { return rv } -// Returns a new string in which all occurrences of a target string in the receiver are replaced by another given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412937-stringbyreplacingoccurrencesofst?language=objc -func (s_ String) StringByReplacingOccurrencesOfStringWithString(target string, replacement string) string { - rv := objc.Call[string](s_, objc.Sel("stringByReplacingOccurrencesOfString:withString:"), target, replacement) - return rv -} - -// Compares the string and a given string using a localized comparison. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416999-localizedcompare?language=objc -func (s_ String) LocalizedCompare(string_ string) ComparisonResult { - rv := objc.Call[ComparisonResult](s_, objc.Sel("localizedCompare:"), string_) - return rv -} - -// Returns a human-readable string giving the name of a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408318-localizednameofstringencoding?language=objc -func (sc _StringClass) LocalizedNameOfStringEncoding(encoding StringEncoding) string { - rv := objc.Call[string](sc, objc.Sel("localizedNameOfStringEncoding:"), encoding) - return rv -} - -// Returns a human-readable string giving the name of a given encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408318-localizednameofstringencoding?language=objc -func String_LocalizedNameOfStringEncoding(encoding StringEncoding) string { - return StringClass.LocalizedNameOfStringEncoding(encoding) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3564809-stringbyappendingpathextensionfo?language=objc -func (s_ String) StringByAppendingPathExtensionForType(contentType objc.IObject) string { - rv := objc.Call[string](s_, objc.Sel("stringByAppendingPathExtensionForType:"), contentType) - return rv -} - -// Returns the result of invoking [foundation/nsstring/compare] with no options and the receiver’s full extent as the range. [Full Topic] +// Returns an array containing substrings from the receiver that have been divided by a given separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414082-compare?language=objc -func (s_ String) Compare(string_ string) ComparisonResult { - rv := objc.Call[ComparisonResult](s_, objc.Sel("compare:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413214-componentsseparatedbystring?language=objc +func (s_ String) ComponentsSeparatedByString(separator string) []string { + rv := objc.Call[[]string](s_, objc.Sel("componentsSeparatedByString:"), separator) return rv } -// Writes the contents of the receiver to a file at a given path using a given encoding. [Full Topic] +// Enumerates all the lines in the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407654-writetofile?language=objc -func (s_ String) WriteToFileAtomicallyEncodingError(path string, useAuxiliaryFile bool, enc StringEncoding, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("writeToFile:atomically:encoding:error:"), path, useAuxiliaryFile, enc, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408459-enumeratelinesusingblock?language=objc +func (s_ String) EnumerateLinesUsingBlock(block func(line string, stop *bool)) { + objc.Call[objc.Void](s_, objc.Sel("enumerateLinesUsingBlock:"), block) } // Finds and returns the range of the first occurrence of a given string within the string by performing a case and diacritic insensitive, locale-aware search. [Full Topic] @@ -987,213 +726,152 @@ func (s_ String) LocalizedStandardRangeOfString(str string) Range { return rv } -// Returns a new string made by appending to the receiver a given string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417069-stringbyappendingpathcomponent?language=objc -func (s_ String) StringByAppendingPathComponent(str string) string { - rv := objc.Call[string](s_, objc.Sel("stringByAppendingPathComponent:"), str) - return rv -} - -// Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410309-hasprefix?language=objc -func (s_ String) HasPrefix(str string) bool { - rv := objc.Call[bool](s_, objc.Sel("hasPrefix:"), str) - return rv -} - -// Returns a string built from the strings in a given array by concatenating them with a path separator between each pair. [Full Topic] +// Gets a given range of characters as bytes in a specified encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417198-pathwithcomponents?language=objc -func (sc _StringClass) PathWithComponents(components []string) string { - rv := objc.Call[string](sc, objc.Sel("pathWithComponents:"), components) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413453-getbytes?language=objc +func (s_ String) GetBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange(buffer unsafe.Pointer, maxBufferCount uint, usedBufferCount *uint, encoding StringEncoding, options StringEncodingConversionOptions, range_ Range, leftover RangePointer) bool { + rv := objc.Call[bool](s_, objc.Sel("getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"), buffer, maxBufferCount, usedBufferCount, encoding, options, range_, leftover) return rv } -// Returns a string built from the strings in a given array by concatenating them with a path separator between each pair. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417198-pathwithcomponents?language=objc -func String_PathWithComponents(components []string) string { - return StringClass.PathWithComponents(components) -} - -// Returns the string encoding for the given data as detected by attempting to create a string according to the specified encoding options. [Full Topic] +// Returns a version of the string with all letters converted to uppercase, taking into account the specified locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413576-stringencodingfordata?language=objc -func (sc _StringClass) StringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data []byte, opts map[StringEncodingDetectionOptionsKey]objc.IObject, string_ unsafe.Pointer, usedLossyConversion *bool) StringEncoding { - rv := objc.Call[StringEncoding](sc, objc.Sel("stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"), data, opts, string_, usedLossyConversion) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413316-uppercasestringwithlocale?language=objc +func (s_ String) UppercaseStringWithLocale(locale ILocale) string { + rv := objc.Call[string](s_, objc.Sel("uppercaseStringWithLocale:"), locale) return rv } -// Returns the string encoding for the given data as detected by attempting to create a string according to the specified encoding options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413576-stringencodingfordata?language=objc -func String_StringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data []byte, opts map[StringEncodingDetectionOptionsKey]objc.IObject, string_ unsafe.Pointer, usedLossyConversion *bool) StringEncoding { - return StringClass.StringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data, opts, string_, usedLossyConversion) -} - -// Compares strings as sorted by the Finder. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409742-localizedstandardcompare?language=objc -func (s_ String) LocalizedStandardCompare(string_ string) ComparisonResult { - rv := objc.Call[ComparisonResult](s_, objc.Sel("localizedStandardCompare:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3564809-stringbyappendingpathextensionfo?language=objc +func (s_ String) StringByAppendingPathExtensionForType(contentType objc.IObject) string { + rv := objc.Call[string](s_, objc.Sel("stringByAppendingPathExtensionForType:"), contentType) return rv } -// Finds and returns the range of the first occurrence of a given string within a given range of the string, subject to given options, using the specified locale, if any. [Full Topic] +// Returns a Boolean value that indicates whether the receiver can be converted to a given encoding without loss of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417348-rangeofstring?language=objc -func (s_ String) RangeOfStringOptionsRangeLocale(searchString string, mask StringCompareOptions, rangeOfReceiverToSearch Range, locale ILocale) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfString:options:range:locale:"), searchString, mask, rangeOfReceiverToSearch, locale) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409496-canbeconvertedtoencoding?language=objc +func (s_ String) CanBeConvertedToEncoding(encoding StringEncoding) bool { + rv := objc.Call[bool](s_, objc.Sel("canBeConvertedToEncoding:"), encoding) return rv } -// Returns the number of bytes required to store the receiver in a given encoding. [Full Topic] +// Returns a representation of the string as a C string using a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410710-lengthofbytesusingencoding?language=objc -func (s_ String) LengthOfBytesUsingEncoding(enc StringEncoding) uint { - rv := objc.Call[uint](s_, objc.Sel("lengthOfBytesUsingEncoding:"), enc) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408489-cstringusingencoding?language=objc +func (s_ String) CStringUsingEncoding(encoding StringEncoding) *uint8 { + rv := objc.Call[*uint8](s_, objc.Sel("cStringUsingEncoding:"), encoding) return rv } -// Returns the range of characters representing the line or lines containing a given range. [Full Topic] +// Enumerates the substrings of the specified type in the specified range of the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407736-linerangeforrange?language=objc -func (s_ String) LineRangeForRange(range_ Range) Range { - rv := objc.Call[Range](s_, objc.Sel("lineRangeForRange:"), range_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416774-enumeratesubstringsinrange?language=objc +func (s_ String) EnumerateSubstringsInRangeOptionsUsingBlock(range_ Range, opts StringEnumerationOptions, block func(substring string, substringRange Range, enclosingRange Range, stop *bool)) { + objc.Call[objc.Void](s_, objc.Sel("enumerateSubstringsInRange:options:usingBlock:"), range_, opts, block) } -// Returns the result of invoking [foundation/nsstring/compare] with a nil locale. [Full Topic] +// Creates a string suitable for comparison by removing the specified character distinctions from a string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408732-compare?language=objc -func (s_ String) CompareOptionsRange(string_ string, mask StringCompareOptions, rangeOfReceiverToCompare Range) ComparisonResult { - rv := objc.Call[ComparisonResult](s_, objc.Sel("compare:options:range:"), string_, mask, rangeOfReceiverToCompare) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413779-stringbyfoldingwithoptions?language=objc +func (s_ String) StringByFoldingWithOptionsLocale(options StringCompareOptions, locale ILocale) string { + rv := objc.Call[string](s_, objc.Sel("stringByFoldingWithOptions:locale:"), options, locale) return rv } -// Returns an NSData object containing a representation of the receiver encoded using a given encoding. [Full Topic] +// Compares the string and a given string using a localized comparison. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413692-datausingencoding?language=objc -func (s_ String) DataUsingEncodingAllowLossyConversion(encoding StringEncoding, lossy bool) []byte { - rv := objc.Call[[]byte](s_, objc.Sel("dataUsingEncoding:allowLossyConversion:"), encoding, lossy) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416999-localizedcompare?language=objc +func (s_ String) LocalizedCompare(string_ string) ComparisonResult { + rv := objc.Call[ComparisonResult](s_, objc.Sel("localizedCompare:"), string_) return rv } -// [Full Topic] +// Returns an array of strings made by separately appending to the receiver each string in a given array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/2990401-deferredlocalizedintentsstringwi?language=objc -func (sc _StringClass) DeferredLocalizedIntentsStringWithFormat(format string, args ...any) string { - rv := objc.Call[string](sc, objc.Sel("deferredLocalizedIntentsStringWithFormat:"), append([]any{format}, args...)...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1415100-stringsbyappendingpaths?language=objc +func (s_ String) StringsByAppendingPaths(paths []string) []string { + rv := objc.Call[[]string](s_, objc.Sel("stringsByAppendingPaths:"), paths) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/2990401-deferredlocalizedintentsstringwi?language=objc -func String_DeferredLocalizedIntentsStringWithFormat(format string, args ...any) string { - return StringClass.DeferredLocalizedIntentsStringWithFormat(format, args...) -} - -// Returns a Boolean value indicating whether the string contains a given string by performing a case and diacritic insensitive, locale-aware search. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416328-localizedstandardcontainsstring?language=objc -func (s_ String) LocalizedStandardContainsString(str string) bool { - rv := objc.Call[bool](s_, objc.Sel("localizedStandardContainsString:"), str) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3564808-stringbyappendingpathcomponent?language=objc +func (s_ String) StringByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) string { + rv := objc.Call[string](s_, objc.Sel("stringByAppendingPathComponent:conformingToType:"), partialName, contentType) return rv } -// Draws the receiver with the font and other display characteristics of the given attributes, at the specified point in the current graphics context. [Full Topic] +// Returns the result of invoking compare: with no options and the receiver’s full extent as the range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1533109-drawatpoint?language=objc -func (s_ String) DrawAtPointWithAttributes(point Point, attrs map[AttributedStringKey]objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("drawAtPoint:withAttributes:"), point, attrs) -} - -// Writes the contents of the receiver to the URL specified by url using the specified encoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417341-writetourl?language=objc -func (s_ String) WriteToURLAtomicallyEncodingError(url IURL, useAuxiliaryFile bool, enc StringEncoding, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("writeToURL:atomically:encoding:error:"), url, useAuxiliaryFile, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414082-compare?language=objc +func (s_ String) Compare(string_ string) ComparisonResult { + rv := objc.Call[ComparisonResult](s_, objc.Sel("compare:"), string_) return rv } -// [Full Topic] +// Returns a human-readable string giving the name of a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/2990402-deferredlocalizedintentsstringwi?language=objc -func (sc _StringClass) DeferredLocalizedIntentsStringWithFormatFromTable(format string, table string, args ...any) string { - rv := objc.Call[string](sc, objc.Sel("deferredLocalizedIntentsStringWithFormat:fromTable:"), append([]any{format, table}, args...)...) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408318-localizednameofstringencoding?language=objc +func (sc _StringClass) LocalizedNameOfStringEncoding(encoding StringEncoding) string { + rv := objc.Call[string](sc, objc.Sel("localizedNameOfStringEncoding:"), encoding) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/2990402-deferredlocalizedintentsstringwi?language=objc -func String_DeferredLocalizedIntentsStringWithFormatFromTable(format string, table string, args ...any) string { - return StringClass.DeferredLocalizedIntentsStringWithFormatFromTable(format, table, args...) -} - -// Compares the string with the specified string using the given options. [Full Topic] +// Returns a human-readable string giving the name of a given encoding. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410893-compare?language=objc -func (s_ String) CompareOptions(string_ string, mask StringCompareOptions) ComparisonResult { - rv := objc.Call[ComparisonResult](s_, objc.Sel("compare:options:"), string_, mask) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408318-localizednameofstringencoding?language=objc +func String_LocalizedNameOfStringEncoding(encoding StringEncoding) string { + return StringClass.LocalizedNameOfStringEncoding(encoding) } -// Interprets the receiver as a system-independent path and fills a buffer with a C-string in a format and encoding suitable for use with file-system calls. [Full Topic] +// Returns the character at a given UTF-16 code unit index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410269-getfilesystemrepresentation?language=objc -func (s_ String) GetFileSystemRepresentationMaxLength(cname *uint8, max uint) bool { - rv := objc.Call[bool](s_, objc.Sel("getFileSystemRepresentation:maxLength:"), cname, max) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414645-characteratindex?language=objc +func (s_ String) CharacterAtIndex(index uint) Unichar { + rv := objc.Call[Unichar](s_, objc.Sel("characterAtIndex:"), index) return rv } -// Returns a new string containing the characters of the receiver up to, but not including, the one at a given index. [Full Topic] +// Returns a Boolean value that indicates whether a given string matches the ending characters of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1408017-substringtoindex?language=objc -func (s_ String) SubstringToIndex(to uint) string { - rv := objc.Call[string](s_, objc.Sel("substringToIndex:"), to) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416529-hassuffix?language=objc +func (s_ String) HasSuffix(str string) bool { + rv := objc.Call[bool](s_, objc.Sel("hasSuffix:"), str) return rv } -// Returns a localized string intended for display in a notification alert. [Full Topic] +// Returns a new string by applying a specified transform to the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1649585-localizedusernotificationstringf?language=objc -func (sc _StringClass) LocalizedUserNotificationStringForKeyArguments(key string, arguments []objc.IObject) string { - rv := objc.Call[string](sc, objc.Sel("localizedUserNotificationStringForKey:arguments:"), key, arguments) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407787-stringbyapplyingtransform?language=objc +func (s_ String) StringByApplyingTransformReverse(transform StringTransform, reverse bool) string { + rv := objc.Call[string](s_, objc.Sel("stringByApplyingTransform:reverse:"), transform, reverse) return rv } -// Returns a localized string intended for display in a notification alert. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1649585-localizedusernotificationstringf?language=objc -func String_LocalizedUserNotificationStringForKeyArguments(key string, arguments []objc.IObject) string { - return StringClass.LocalizedUserNotificationStringForKeyArguments(key, arguments) -} - -// Finds and returns the range of the first occurrence of a given string within the string, subject to given options. [Full Topic] +// Returns by reference the beginning of the first paragraph and the end of the last paragraph touched by the given range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416849-rangeofstring?language=objc -func (s_ String) RangeOfStringOptions(searchString string, mask StringCompareOptions) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfString:options:"), searchString, mask) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416407-getparagraphstart?language=objc +func (s_ String) GetParagraphStartEndContentsEndForRange(startPtr *uint, parEndPtr *uint, contentsEndPtr *uint, range_ Range) { + objc.Call[objc.Void](s_, objc.Sel("getParagraphStart:end:contentsEnd:forRange:"), startPtr, parEndPtr, contentsEndPtr, range_) } -// Returns an array containing substrings from the receiver that have been divided by a given separator. [Full Topic] +// The NSInteger value of the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413214-componentsseparatedbystring?language=objc -func (s_ String) ComponentsSeparatedByString(separator string) []string { - rv := objc.Call[[]string](s_, objc.Sel("componentsSeparatedByString:"), separator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410267-integervalue?language=objc +func (s_ String) IntegerValue() int { + rv := objc.Call[int](s_, objc.Sel("integerValue")) return rv } -// [Full Topic] +// A new string made by deleting the extension (if any, and only the last) from the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/3564808-stringbyappendingpathcomponent?language=objc -func (s_ String) StringByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) string { - rv := objc.Call[string](s_, objc.Sel("stringByAppendingPathComponent:conformingToType:"), partialName, contentType) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1418214-stringbydeletingpathextension?language=objc +func (s_ String) StringByDeletingPathExtension() string { + rv := objc.Call[string](s_, objc.Sel("stringByDeletingPathExtension")) return rv } @@ -1205,11 +883,19 @@ func (s_ String) IntValue() int { return rv } -// The floating-point value of the string as a double. [Full Topic] +// An uppercase representation of the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414031-doublevalue?language=objc -func (s_ String) DoubleValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("doubleValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409855-uppercasestring?language=objc +func (s_ String) UppercaseString() string { + rv := objc.Call[string](s_, objc.Sel("uppercaseString")) + return rv +} + +// A null-terminated UTF8 representation of the string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411189-utf8string?language=objc +func (s_ String) UTF8String() *uint8 { + rv := objc.Call[*uint8](s_, objc.Sel("UTF8String")) return rv } @@ -1221,27 +907,19 @@ func (s_ String) PrecomposedStringWithCanonicalMapping() string { return rv } -// This NSString object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410889-description?language=objc -func (s_ String) Description() string { - rv := objc.Call[string](s_, objc.Sel("description")) - return rv -} - -// A capitalized representation of the string. [Full Topic] +// The file-system path components of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416784-capitalizedstring?language=objc -func (s_ String) CapitalizedString() string { - rv := objc.Call[string](s_, objc.Sel("capitalizedString")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414489-pathcomponents?language=objc +func (s_ String) PathComponents() []string { + rv := objc.Call[[]string](s_, objc.Sel("pathComponents")) return rv } -// The fastest encoding to which the receiver may be converted without loss of information. [Full Topic] +// A new string made by expanding the initial component of the receiver to its full path value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409567-fastestencoding?language=objc -func (s_ String) FastestEncoding() StringEncoding { - rv := objc.Call[StringEncoding](s_, objc.Sel("fastestEncoding")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407716-stringbyexpandingtildeinpath?language=objc +func (s_ String) StringByExpandingTildeInPath() string { + rv := objc.Call[string](s_, objc.Sel("stringByExpandingTildeInPath")) return rv } @@ -1260,67 +938,42 @@ func String_DefaultCStringEncoding() StringEncoding { return StringClass.DefaultCStringEncoding() } -// A new string made by expanding the initial component of the receiver to its full path value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407716-stringbyexpandingtildeinpath?language=objc -func (s_ String) StringByExpandingTildeInPath() string { - rv := objc.Call[string](s_, objc.Sel("stringByExpandingTildeInPath")) - return rv -} - -// A new string made from the receiver by resolving all symbolic links and standardizing path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417783-stringbyresolvingsymlinksinpath?language=objc -func (s_ String) StringByResolvingSymlinksInPath() string { - rv := objc.Call[string](s_, objc.Sel("stringByResolvingSymlinksInPath")) - return rv -} - -// Returns a capitalized representation of the receiver using the current locale. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414885-localizedcapitalizedstring?language=objc -func (s_ String) LocalizedCapitalizedString() string { - rv := objc.Call[string](s_, objc.Sel("localizedCapitalizedString")) - return rv -} - -// Returns a version of the string with all letters converted to lowercase, taking into account the current locale. [Full Topic] +// Returns a zero-terminated list of the encodings string objects support in the application’s environment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414125-localizedlowercasestring?language=objc -func (s_ String) LocalizedLowercaseString() string { - rv := objc.Call[string](s_, objc.Sel("localizedLowercaseString")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417579-availablestringencodings?language=objc +func (sc _StringClass) AvailableStringEncodings() *StringEncoding { + rv := objc.Call[*StringEncoding](sc, objc.Sel("availableStringEncodings")) return rv } -// The path extension, if any, of the string as interpreted as a path. [Full Topic] +// Returns a zero-terminated list of the encodings string objects support in the application’s environment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407801-pathextension?language=objc -func (s_ String) PathExtension() string { - rv := objc.Call[string](s_, objc.Sel("pathExtension")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417579-availablestringencodings?language=objc +func String_AvailableStringEncodings() *StringEncoding { + return StringClass.AvailableStringEncodings() } -// An unsigned integer that can be used as a hash table address. [Full Topic] +// A Boolean value that indicates whether the receiver represents an absolute path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417245-hash?language=objc -func (s_ String) Hash() uint { - rv := objc.Call[uint](s_, objc.Sel("hash")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409068-absolutepath?language=objc +func (s_ String) IsAbsolutePath() bool { + rv := objc.Call[bool](s_, objc.Sel("isAbsolutePath")) return rv } -// A new string that replaces the current home directory portion of the current path with a tilde (~) character. [Full Topic] +// A capitalized representation of the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407943-stringbyabbreviatingwithtildeinp?language=objc -func (s_ String) StringByAbbreviatingWithTildeInPath() string { - rv := objc.Call[string](s_, objc.Sel("stringByAbbreviatingWithTildeInPath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416784-capitalizedstring?language=objc +func (s_ String) CapitalizedString() string { + rv := objc.Call[string](s_, objc.Sel("capitalizedString")) return rv } -// The file-system path components of the receiver. [Full Topic] +// The long long value of the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414489-pathcomponents?language=objc -func (s_ String) PathComponents() []string { - rv := objc.Call[[]string](s_, objc.Sel("pathComponents")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417731-longlongvalue?language=objc +func (s_ String) LongLongValue() int64 { + rv := objc.Call[int64](s_, objc.Sel("longLongValue")) return rv } @@ -1332,27 +985,35 @@ func (s_ String) PrecomposedStringWithCompatibilityMapping() string { return rv } -// The floating-point value of the string as a float. [Full Topic] +// Returns a version of the string with all letters converted to lowercase, taking into account the current locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412321-floatvalue?language=objc -func (s_ String) FloatValue() float32 { - rv := objc.Call[float32](s_, objc.Sel("floatValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414125-localizedlowercasestring?language=objc +func (s_ String) LocalizedLowercaseString() string { + rv := objc.Call[string](s_, objc.Sel("localizedLowercaseString")) return rv } -// The NSInteger value of the string. [Full Topic] +// Returns a version of the string with all letters converted to uppercase, taking into account the current locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410267-integervalue?language=objc -func (s_ String) IntegerValue() int { - rv := objc.Call[int](s_, objc.Sel("integerValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413331-localizeduppercasestring?language=objc +func (s_ String) LocalizedUppercaseString() string { + rv := objc.Call[string](s_, objc.Sel("localizedUppercaseString")) return rv } -// The Boolean value of the string. [Full Topic] +// This NSString object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409420-boolvalue?language=objc -func (s_ String) BoolValue() bool { - rv := objc.Call[bool](s_, objc.Sel("boolValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410889-description?language=objc +func (s_ String) Description() string { + rv := objc.Call[string](s_, objc.Sel("description")) + return rv +} + +// The floating-point value of the string as a double. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414031-doublevalue?language=objc +func (s_ String) DoubleValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("doubleValue")) return rv } @@ -1364,91 +1025,99 @@ func (s_ String) SmallestEncoding() StringEncoding { return rv } -// The last path component of the receiver. [Full Topic] +// The number of UTF-16 code units in the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416528-lastpathcomponent?language=objc -func (s_ String) LastPathComponent() string { - rv := objc.Call[string](s_, objc.Sel("lastPathComponent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414212-length?language=objc +func (s_ String) Length() uint { + rv := objc.Call[uint](s_, objc.Sel("length")) return rv } -// A null-terminated UTF8 representation of the string. [Full Topic] +// A new string made by deleting the last path component from the receiver, along with any final path separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411189-utf8string?language=objc -func (s_ String) UTF8String() *uint8 { - rv := objc.Call[*uint8](s_, objc.Sel("UTF8String")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411141-stringbydeletinglastpathcomponen?language=objc +func (s_ String) StringByDeletingLastPathComponent() string { + rv := objc.Call[string](s_, objc.Sel("stringByDeletingLastPathComponent")) return rv } -// The number of UTF-16 code units in the receiver. [Full Topic] +// An unsigned integer that can be used as a hash table address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414212-length?language=objc -func (s_ String) Length() uint { - rv := objc.Call[uint](s_, objc.Sel("length")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417245-hash?language=objc +func (s_ String) Hash() uint { + rv := objc.Call[uint](s_, objc.Sel("hash")) return rv } -// A new string made by removing extraneous path components from the receiver. [Full Topic] +// A string made by normalizing the string’s contents using the Unicode Normalization Form D. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407194-stringbystandardizingpath?language=objc -func (s_ String) StringByStandardizingPath() string { - rv := objc.Call[string](s_, objc.Sel("stringByStandardizingPath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409474-decomposedstringwithcanonicalmap?language=objc +func (s_ String) DecomposedStringWithCanonicalMapping() string { + rv := objc.Call[string](s_, objc.Sel("decomposedStringWithCanonicalMapping")) return rv } -// Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters. [Full Topic] +// The path extension, if any, of the string as interpreted as a path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409569-stringbyremovingpercentencoding?language=objc -func (s_ String) StringByRemovingPercentEncoding() string { - rv := objc.Call[string](s_, objc.Sel("stringByRemovingPercentEncoding")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407801-pathextension?language=objc +func (s_ String) PathExtension() string { + rv := objc.Call[string](s_, objc.Sel("pathExtension")) return rv } -// A file system-specific representation of the receiver. [Full Topic] +// A new string made from the receiver by resolving all symbolic links and standardizing path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414559-filesystemrepresentation?language=objc -func (s_ String) FileSystemRepresentation() *uint8 { - rv := objc.Call[*uint8](s_, objc.Sel("fileSystemRepresentation")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417783-stringbyresolvingsymlinksinpath?language=objc +func (s_ String) StringByResolvingSymlinksInPath() string { + rv := objc.Call[string](s_, objc.Sel("stringByResolvingSymlinksInPath")) return rv } -// A new string made by deleting the last path component from the receiver, along with any final path separator. [Full Topic] +// A new string that replaces the current home directory portion of the current path with a tilde (~) character. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411141-stringbydeletinglastpathcomponen?language=objc -func (s_ String) StringByDeletingLastPathComponent() string { - rv := objc.Call[string](s_, objc.Sel("stringByDeletingLastPathComponent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407943-stringbyabbreviatingwithtildeinp?language=objc +func (s_ String) StringByAbbreviatingWithTildeInPath() string { + rv := objc.Call[string](s_, objc.Sel("stringByAbbreviatingWithTildeInPath")) return rv } -// A string made by normalizing the receiver’s contents using the Unicode Normalization Form KD. [Full Topic] +// The Boolean value of the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1415417-decomposedstringwithcompatibilit?language=objc -func (s_ String) DecomposedStringWithCompatibilityMapping() string { - rv := objc.Call[string](s_, objc.Sel("decomposedStringWithCompatibilityMapping")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409420-boolvalue?language=objc +func (s_ String) BoolValue() bool { + rv := objc.Call[bool](s_, objc.Sel("boolValue")) return rv } -// A new string made by deleting the extension (if any, and only the last) from the receiver. [Full Topic] +// The fastest encoding to which the receiver may be converted without loss of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1418214-stringbydeletingpathextension?language=objc -func (s_ String) StringByDeletingPathExtension() string { - rv := objc.Call[string](s_, objc.Sel("stringByDeletingPathExtension")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409567-fastestencoding?language=objc +func (s_ String) FastestEncoding() StringEncoding { + rv := objc.Call[StringEncoding](s_, objc.Sel("fastestEncoding")) return rv } -// The long long value of the string. [Full Topic] +// The floating-point value of the string as a float. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417731-longlongvalue?language=objc -func (s_ String) LongLongValue() int64 { - rv := objc.Call[int64](s_, objc.Sel("longLongValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412321-floatvalue?language=objc +func (s_ String) FloatValue() float32 { + rv := objc.Call[float32](s_, objc.Sel("floatValue")) return rv } -// A Boolean value that indicates whether the receiver represents an absolute path. [Full Topic] +// The last path component of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409068-absolutepath?language=objc -func (s_ String) IsAbsolutePath() bool { - rv := objc.Call[bool](s_, objc.Sel("isAbsolutePath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1416528-lastpathcomponent?language=objc +func (s_ String) LastPathComponent() string { + rv := objc.Call[string](s_, objc.Sel("lastPathComponent")) + return rv +} + +// A string made by normalizing the receiver’s contents using the Unicode Normalization Form KD. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1415417-decomposedstringwithcompatibilit?language=objc +func (s_ String) DecomposedStringWithCompatibilityMapping() string { + rv := objc.Call[string](s_, objc.Sel("decomposedStringWithCompatibilityMapping")) return rv } @@ -1460,41 +1129,34 @@ func (s_ String) LowercaseString() string { return rv } -// An uppercase representation of the string. [Full Topic] +// A file system-specific representation of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409855-uppercasestring?language=objc -func (s_ String) UppercaseString() string { - rv := objc.Call[string](s_, objc.Sel("uppercaseString")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414559-filesystemrepresentation?language=objc +func (s_ String) FileSystemRepresentation() *uint8 { + rv := objc.Call[*uint8](s_, objc.Sel("fileSystemRepresentation")) return rv } -// Returns a zero-terminated list of the encodings string objects support in the application’s environment. [Full Topic] +// A new string made by removing extraneous path components from the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417579-availablestringencodings?language=objc -func (sc _StringClass) AvailableStringEncodings() *StringEncoding { - rv := objc.Call[*StringEncoding](sc, objc.Sel("availableStringEncodings")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1407194-stringbystandardizingpath?language=objc +func (s_ String) StringByStandardizingPath() string { + rv := objc.Call[string](s_, objc.Sel("stringByStandardizingPath")) return rv } -// Returns a zero-terminated list of the encodings string objects support in the application’s environment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1417579-availablestringencodings?language=objc -func String_AvailableStringEncodings() *StringEncoding { - return StringClass.AvailableStringEncodings() -} - -// Returns a version of the string with all letters converted to uppercase, taking into account the current locale. [Full Topic] +// Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413331-localizeduppercasestring?language=objc -func (s_ String) LocalizedUppercaseString() string { - rv := objc.Call[string](s_, objc.Sel("localizedUppercaseString")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409569-stringbyremovingpercentencoding?language=objc +func (s_ String) StringByRemovingPercentEncoding() string { + rv := objc.Call[string](s_, objc.Sel("stringByRemovingPercentEncoding")) return rv } -// A string made by normalizing the string’s contents using the Unicode Normalization Form D. [Full Topic] +// Returns a capitalized representation of the receiver using the current locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1409474-decomposedstringwithcanonicalmap?language=objc -func (s_ String) DecomposedStringWithCanonicalMapping() string { - rv := objc.Call[string](s_, objc.Sel("decomposedStringWithCanonicalMapping")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414885-localizedcapitalizedstring?language=objc +func (s_ String) LocalizedCapitalizedString() string { + rv := objc.Call[string](s_, objc.Sel("localizedCapitalizedString")) return rv } diff --git a/macos/foundation/task.gen.go b/macos/foundation/task.gen.go index b35dc7ac..4921708a 100644 --- a/macos/foundation/task.gen.go +++ b/macos/foundation/task.gen.go @@ -18,34 +18,34 @@ type _TaskClass struct { // An interface definition for the [Task] class. type ITask interface { objc.IObject + LaunchAndReturnError(error unsafe.Pointer) bool Suspend() bool Interrupt() + WaitUntilExit() Resume() bool Terminate() - WaitUntilExit() - LaunchAndReturnError(error unsafe.Pointer) bool - StandardInput() objc.Object - SetStandardInput(value objc.IObject) - TerminationReason() TaskTerminationReason + Arguments() []string + SetArguments(value []string) + TerminationStatus() int + IsRunning() bool + ExecutableURL() URL + SetExecutableURL(value IURL) + QualityOfService() QualityOfService + SetQualityOfService(value QualityOfService) StandardOutput() objc.Object SetStandardOutput(value objc.IObject) - TerminationStatus() int + TerminationReason() TaskTerminationReason StandardError() objc.Object SetStandardError(value objc.IObject) + CurrentDirectoryURL() URL + SetCurrentDirectoryURL(value IURL) + TerminationHandler() func(arg0 Task) + SetTerminationHandler(value func(arg0 Task)) ProcessIdentifier() int - IsRunning() bool Environment() map[string]string SetEnvironment(value map[string]string) - Arguments() []string - SetArguments(value []string) - ExecutableURL() URL - SetExecutableURL(value IURL) - TerminationHandler() func(arg0 Task) - SetTerminationHandler(value func(arg0 Task)) - CurrentDirectoryURL() URL - SetCurrentDirectoryURL(value IURL) - QualityOfService() QualityOfService - SetQualityOfService(value QualityOfService) + StandardInput() objc.Object + SetStandardInput(value objc.IObject) } // An object that represents a subprocess of the current process. [Full Topic] @@ -81,21 +81,14 @@ func NewTask() Task { return TaskClass.New() } -// Creates and runs a task with a specified executable and arguments. [Full Topic] +// Runs the process with the current environment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890108-launchedtaskwithexecutableurl?language=objc -func (tc _TaskClass) LaunchedTaskWithExecutableURLArgumentsErrorTerminationHandler(url IURL, arguments []string, error unsafe.Pointer, terminationHandler func(arg0 Task)) Task { - rv := objc.Call[Task](tc, objc.Sel("launchedTaskWithExecutableURL:arguments:error:terminationHandler:"), url, arguments, error, terminationHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890105-launchandreturnerror?language=objc +func (t_ Task) LaunchAndReturnError(error unsafe.Pointer) bool { + rv := objc.Call[bool](t_, objc.Sel("launchAndReturnError:"), error) return rv } -// Creates and runs a task with a specified executable and arguments. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890108-launchedtaskwithexecutableurl?language=objc -func Task_LaunchedTaskWithExecutableURLArgumentsErrorTerminationHandler(url IURL, arguments []string, error unsafe.Pointer, terminationHandler func(arg0 Task)) Task { - return TaskClass.LaunchedTaskWithExecutableURLArgumentsErrorTerminationHandler(url, arguments, error, terminationHandler) -} - // Suspends execution of the receiver task. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1411590-suspend?language=objc @@ -111,6 +104,28 @@ func (t_ Task) Interrupt() { objc.Call[objc.Void](t_, objc.Sel("interrupt")) } +// Creates and runs a task with a specified executable and arguments. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890108-launchedtaskwithexecutableurl?language=objc +func (tc _TaskClass) LaunchedTaskWithExecutableURLArgumentsErrorTerminationHandler(url IURL, arguments []string, error unsafe.Pointer, terminationHandler func(arg0 Task)) Task { + rv := objc.Call[Task](tc, objc.Sel("launchedTaskWithExecutableURL:arguments:error:terminationHandler:"), url, arguments, error, terminationHandler) + return rv +} + +// Creates and runs a task with a specified executable and arguments. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890108-launchedtaskwithexecutableurl?language=objc +func Task_LaunchedTaskWithExecutableURLArgumentsErrorTerminationHandler(url IURL, arguments []string, error unsafe.Pointer, terminationHandler func(arg0 Task)) Task { + return TaskClass.LaunchedTaskWithExecutableURLArgumentsErrorTerminationHandler(url, arguments, error, terminationHandler) +} + +// Blocks the process until the receiver is finished. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415808-waituntilexit?language=objc +func (t_ Task) WaitUntilExit() { + objc.Call[objc.Void](t_, objc.Sel("waitUntilExit")) +} + // Resumes execution of a suspended task. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1407819-resume?language=objc @@ -126,44 +141,67 @@ func (t_ Task) Terminate() { objc.Call[objc.Void](t_, objc.Sel("terminate")) } -// Blocks the process until the receiver is finished. [Full Topic] +// The command arguments that the system uses to launch the executable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415808-waituntilexit?language=objc -func (t_ Task) WaitUntilExit() { - objc.Call[objc.Void](t_, objc.Sel("waitUntilExit")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1408983-arguments?language=objc +func (t_ Task) Arguments() []string { + rv := objc.Call[[]string](t_, objc.Sel("arguments")) + return rv } -// Runs the process with the current environment. [Full Topic] +// The command arguments that the system uses to launch the executable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890105-launchandreturnerror?language=objc -func (t_ Task) LaunchAndReturnError(error unsafe.Pointer) bool { - rv := objc.Call[bool](t_, objc.Sel("launchAndReturnError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1408983-arguments?language=objc +func (t_ Task) SetArguments(value []string) { + objc.Call[objc.Void](t_, objc.Sel("setArguments:"), value) +} + +// The exit status the receiver’s executable returns. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415801-terminationstatus?language=objc +func (t_ Task) TerminationStatus() int { + rv := objc.Call[int](t_, objc.Sel("terminationStatus")) return rv } -// The standard input for the receiver. [Full Topic] +// A status that indicates whether the receiver is still running. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1411576-standardinput?language=objc -func (t_ Task) StandardInput() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("standardInput")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415788-running?language=objc +func (t_ Task) IsRunning() bool { + rv := objc.Call[bool](t_, objc.Sel("isRunning")) return rv } -// The standard input for the receiver. [Full Topic] +// The receiver’s executable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1411576-standardinput?language=objc -func (t_ Task) SetStandardInput(value objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setStandardInput:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890106-executableurl?language=objc +func (t_ Task) ExecutableURL() URL { + rv := objc.Call[URL](t_, objc.Sel("executableURL")) + return rv } -// The reason the system terminated the task. [Full Topic] +// The receiver’s executable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415605-terminationreason?language=objc -func (t_ Task) TerminationReason() TaskTerminationReason { - rv := objc.Call[TaskTerminationReason](t_, objc.Sel("terminationReason")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890106-executableurl?language=objc +func (t_ Task) SetExecutableURL(value IURL) { + objc.Call[objc.Void](t_, objc.Sel("setExecutableURL:"), value) +} + +// The default quality of service level the system applies to operations the task executes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415794-qualityofservice?language=objc +func (t_ Task) QualityOfService() QualityOfService { + rv := objc.Call[QualityOfService](t_, objc.Sel("qualityOfService")) return rv } +// The default quality of service level the system applies to operations the task executes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415794-qualityofservice?language=objc +func (t_ Task) SetQualityOfService(value QualityOfService) { + objc.Call[objc.Void](t_, objc.Sel("setQualityOfService:"), value) +} + // The standard output for the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1407627-standardoutput?language=objc @@ -179,11 +217,11 @@ func (t_ Task) SetStandardOutput(value objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setStandardOutput:"), value) } -// The exit status the receiver’s executable returns. [Full Topic] +// The reason the system terminated the task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415801-terminationstatus?language=objc -func (t_ Task) TerminationStatus() int { - rv := objc.Call[int](t_, objc.Sel("terminationStatus")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415605-terminationreason?language=objc +func (t_ Task) TerminationReason() TaskTerminationReason { + rv := objc.Call[TaskTerminationReason](t_, objc.Sel("terminationReason")) return rv } @@ -202,65 +240,19 @@ func (t_ Task) SetStandardError(value objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setStandardError:"), value) } -// The receiver’s process identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1412022-processidentifier?language=objc -func (t_ Task) ProcessIdentifier() int { - rv := objc.Call[int](t_, objc.Sel("processIdentifier")) - return rv -} - -// A status that indicates whether the receiver is still running. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415788-running?language=objc -func (t_ Task) IsRunning() bool { - rv := objc.Call[bool](t_, objc.Sel("isRunning")) - return rv -} - -// The environment for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1409412-environment?language=objc -func (t_ Task) Environment() map[string]string { - rv := objc.Call[map[string]string](t_, objc.Sel("environment")) - return rv -} - -// The environment for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1409412-environment?language=objc -func (t_ Task) SetEnvironment(value map[string]string) { - objc.Call[objc.Void](t_, objc.Sel("setEnvironment:"), value) -} - -// The command arguments that the system uses to launch the executable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1408983-arguments?language=objc -func (t_ Task) Arguments() []string { - rv := objc.Call[[]string](t_, objc.Sel("arguments")) - return rv -} - -// The command arguments that the system uses to launch the executable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1408983-arguments?language=objc -func (t_ Task) SetArguments(value []string) { - objc.Call[objc.Void](t_, objc.Sel("setArguments:"), value) -} - -// The receiver’s executable. [Full Topic] +// The current directory for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890106-executableurl?language=objc -func (t_ Task) ExecutableURL() URL { - rv := objc.Call[URL](t_, objc.Sel("executableURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890107-currentdirectoryurl?language=objc +func (t_ Task) CurrentDirectoryURL() URL { + rv := objc.Call[URL](t_, objc.Sel("currentDirectoryURL")) return rv } -// The receiver’s executable. [Full Topic] +// The current directory for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890106-executableurl?language=objc -func (t_ Task) SetExecutableURL(value IURL) { - objc.Call[objc.Void](t_, objc.Sel("setExecutableURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890107-currentdirectoryurl?language=objc +func (t_ Task) SetCurrentDirectoryURL(value IURL) { + objc.Call[objc.Void](t_, objc.Sel("setCurrentDirectoryURL:"), value) } // A completion block the system invokes when the task completes. [Full Topic] @@ -278,32 +270,40 @@ func (t_ Task) SetTerminationHandler(value func(arg0 Task)) { objc.Call[objc.Void](t_, objc.Sel("setTerminationHandler:"), value) } -// The current directory for the receiver. [Full Topic] +// The receiver’s process identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890107-currentdirectoryurl?language=objc -func (t_ Task) CurrentDirectoryURL() URL { - rv := objc.Call[URL](t_, objc.Sel("currentDirectoryURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1412022-processidentifier?language=objc +func (t_ Task) ProcessIdentifier() int { + rv := objc.Call[int](t_, objc.Sel("processIdentifier")) return rv } -// The current directory for the receiver. [Full Topic] +// The environment for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890107-currentdirectoryurl?language=objc -func (t_ Task) SetCurrentDirectoryURL(value IURL) { - objc.Call[objc.Void](t_, objc.Sel("setCurrentDirectoryURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1409412-environment?language=objc +func (t_ Task) Environment() map[string]string { + rv := objc.Call[map[string]string](t_, objc.Sel("environment")) + return rv } -// The default quality of service level the system applies to operations the task executes. [Full Topic] +// The environment for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415794-qualityofservice?language=objc -func (t_ Task) QualityOfService() QualityOfService { - rv := objc.Call[QualityOfService](t_, objc.Sel("qualityOfService")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1409412-environment?language=objc +func (t_ Task) SetEnvironment(value map[string]string) { + objc.Call[objc.Void](t_, objc.Sel("setEnvironment:"), value) +} + +// The standard input for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1411576-standardinput?language=objc +func (t_ Task) StandardInput() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("standardInput")) return rv } -// The default quality of service level the system applies to operations the task executes. [Full Topic] +// The standard input for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1415794-qualityofservice?language=objc -func (t_ Task) SetQualityOfService(value QualityOfService) { - objc.Call[objc.Void](t_, objc.Sel("setQualityOfService:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/1411576-standardinput?language=objc +func (t_ Task) SetStandardInput(value objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setStandardInput:"), value) } diff --git a/macos/foundation/text_checking_result.gen.go b/macos/foundation/text_checking_result.gen.go index 6c87cbda..bca48e18 100644 --- a/macos/foundation/text_checking_result.gen.go +++ b/macos/foundation/text_checking_result.gen.go @@ -19,23 +19,23 @@ type _TextCheckingResultClass struct { type ITextCheckingResult interface { objc.IObject RangeWithName(name string) Range - RangeAtIndex(idx uint) Range ResultByAdjustingRangesWithOffset(offset int) TextCheckingResult - URL() URL - ReplacementString() string - Components() map[TextCheckingKey]string + RangeAtIndex(idx uint) Range + PhoneNumber() string RegularExpression() RegularExpression - Duration() TimeInterval - ResultType() TextCheckingType + Date() Date + GrammarDetails() []map[string]objc.Object + NumberOfRanges() uint Range() Range - PhoneNumber() string - AlternativeStrings() []string AddressComponents() map[TextCheckingKey]string Orthography() Orthography TimeZone() TimeZone - Date() Date - NumberOfRanges() uint - GrammarDetails() []map[string]objc.Object + URL() URL + AlternativeStrings() []string + Components() map[TextCheckingKey]string + ReplacementString() string + Duration() TimeInterval + ResultType() TextCheckingType } // An occurrence of textual content found during the analysis of a block of text, such as when matching a regular expression. [Full Topic] @@ -71,89 +71,89 @@ func (t_ TextCheckingResult) Init() TextCheckingResult { return rv } -// [Full Topic] +// Creates and returns a text checking result with the specified orthography. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/2915200-rangewithname?language=objc -func (t_ TextCheckingResult) RangeWithName(name string) Range { - rv := objc.Call[Range](t_, objc.Sel("rangeWithName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415506-orthographycheckingresultwithran?language=objc +func (tc _TextCheckingResultClass) OrthographyCheckingResultWithRangeOrthography(range_ Range, orthography IOrthography) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("orthographyCheckingResultWithRange:orthography:"), range_, orthography) return rv } -// Creates and returns a text checking result after detecting a possible correction. [Full Topic] +// Creates and returns a text checking result with the specified orthography. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415506-orthographycheckingresultwithran?language=objc +func TextCheckingResult_OrthographyCheckingResultWithRangeOrthography(range_ Range, orthography IOrthography) TextCheckingResult { + return TextCheckingResultClass.OrthographyCheckingResultWithRangeOrthography(range_, orthography) +} + +// Creates and returns a text checking result with the specified transit information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415946-correctioncheckingresultwithrang?language=objc -func (tc _TextCheckingResultClass) CorrectionCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("correctionCheckingResultWithRange:replacementString:"), range_, replacementString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1408575-transitinformationcheckingresult?language=objc +func (tc _TextCheckingResultClass) TransitInformationCheckingResultWithRangeComponents(range_ Range, components map[TextCheckingKey]string) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("transitInformationCheckingResultWithRange:components:"), range_, components) return rv } -// Creates and returns a text checking result after detecting a possible correction. [Full Topic] +// Creates and returns a text checking result with the specified transit information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415946-correctioncheckingresultwithrang?language=objc -func TextCheckingResult_CorrectionCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - return TextCheckingResultClass.CorrectionCheckingResultWithRangeReplacementString(range_, replacementString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1408575-transitinformationcheckingresult?language=objc +func TextCheckingResult_TransitInformationCheckingResultWithRangeComponents(range_ Range, components map[TextCheckingKey]string) TextCheckingResult { + return TextCheckingResultClass.TransitInformationCheckingResultWithRangeComponents(range_, components) } -// Creates and returns a text checking result with the specified date. [Full Topic] +// Creates and returns a text checking result with the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1410401-datecheckingresultwithrange?language=objc -func (tc _TextCheckingResultClass) DateCheckingResultWithRangeDate(range_ Range, date IDate) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("dateCheckingResultWithRange:date:"), range_, date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413056-linkcheckingresultwithrange?language=objc +func (tc _TextCheckingResultClass) LinkCheckingResultWithRangeURL(range_ Range, url IURL) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("linkCheckingResultWithRange:URL:"), range_, url) return rv } -// Creates and returns a text checking result with the specified date. [Full Topic] +// Creates and returns a text checking result with the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1410401-datecheckingresultwithrange?language=objc -func TextCheckingResult_DateCheckingResultWithRangeDate(range_ Range, date IDate) TextCheckingResult { - return TextCheckingResultClass.DateCheckingResultWithRangeDate(range_, date) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413056-linkcheckingresultwithrange?language=objc +func TextCheckingResult_LinkCheckingResultWithRangeURL(range_ Range, url IURL) TextCheckingResult { + return TextCheckingResultClass.LinkCheckingResultWithRangeURL(range_, url) } -// Creates and returns a text checking result with the specified dash corrected replacement string. [Full Topic] +// Creates and returns a text checking result with the specified array of grammatical errors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1409525-dashcheckingresultwithrange?language=objc -func (tc _TextCheckingResultClass) DashCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("dashCheckingResultWithRange:replacementString:"), range_, replacementString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1407190-grammarcheckingresultwithrange?language=objc +func (tc _TextCheckingResultClass) GrammarCheckingResultWithRangeDetails(range_ Range, details []map[string]objc.IObject) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("grammarCheckingResultWithRange:details:"), range_, details) return rv } -// Creates and returns a text checking result with the specified dash corrected replacement string. [Full Topic] +// Creates and returns a text checking result with the specified array of grammatical errors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1409525-dashcheckingresultwithrange?language=objc -func TextCheckingResult_DashCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - return TextCheckingResultClass.DashCheckingResultWithRangeReplacementString(range_, replacementString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1407190-grammarcheckingresultwithrange?language=objc +func TextCheckingResult_GrammarCheckingResultWithRangeDetails(range_ Range, details []map[string]objc.IObject) TextCheckingResult { + return TextCheckingResultClass.GrammarCheckingResultWithRangeDetails(range_, details) } -// Creates and returns a text checking result with the range of a misspelled word. [Full Topic] +// Creates and returns a text checking result with the specified quote-balanced replacement string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416255-spellcheckingresultwithrange?language=objc -func (tc _TextCheckingResultClass) SpellCheckingResultWithRange(range_ Range) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("spellCheckingResultWithRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413783-quotecheckingresultwithrange?language=objc +func (tc _TextCheckingResultClass) QuoteCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("quoteCheckingResultWithRange:replacementString:"), range_, replacementString) return rv } -// Creates and returns a text checking result with the range of a misspelled word. [Full Topic] +// Creates and returns a text checking result with the specified quote-balanced replacement string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416255-spellcheckingresultwithrange?language=objc -func TextCheckingResult_SpellCheckingResultWithRange(range_ Range) TextCheckingResult { - return TextCheckingResultClass.SpellCheckingResultWithRange(range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413783-quotecheckingresultwithrange?language=objc +func TextCheckingResult_QuoteCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { + return TextCheckingResultClass.QuoteCheckingResultWithRangeReplacementString(range_, replacementString) } -// Creates and returns a text checking result with the specified replacement string. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416651-replacementcheckingresultwithran?language=objc -func (tc _TextCheckingResultClass) ReplacementCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("replacementCheckingResultWithRange:replacementString:"), range_, replacementString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/2915200-rangewithname?language=objc +func (t_ TextCheckingResult) RangeWithName(name string) Range { + rv := objc.Call[Range](t_, objc.Sel("rangeWithName:"), name) return rv } -// Creates and returns a text checking result with the specified replacement string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416651-replacementcheckingresultwithran?language=objc -func TextCheckingResult_ReplacementCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - return TextCheckingResultClass.ReplacementCheckingResultWithRangeReplacementString(range_, replacementString) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416640-correctioncheckingresultwithrang?language=objc @@ -169,21 +169,14 @@ func TextCheckingResult_CorrectionCheckingResultWithRangeReplacementStringAltern return TextCheckingResultClass.CorrectionCheckingResultWithRangeReplacementStringAlternativeStrings(range_, replacementString, alternativeStrings) } -// Creates and returns a type checking result with the specified regular expression data. [Full Topic] +// Returns a new text checking result after adjusting the ranges as specified by the offset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1412104-regularexpressioncheckingresultw?language=objc -func (tc _TextCheckingResultClass) RegularExpressionCheckingResultWithRangesCountRegularExpression(ranges RangePointer, count uint, regularExpression IRegularExpression) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("regularExpressionCheckingResultWithRanges:count:regularExpression:"), ranges, count, regularExpression) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1417597-resultbyadjustingrangeswithoffse?language=objc +func (t_ TextCheckingResult) ResultByAdjustingRangesWithOffset(offset int) TextCheckingResult { + rv := objc.Call[TextCheckingResult](t_, objc.Sel("resultByAdjustingRangesWithOffset:"), offset) return rv } -// Creates and returns a type checking result with the specified regular expression data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1412104-regularexpressioncheckingresultw?language=objc -func TextCheckingResult_RegularExpressionCheckingResultWithRangesCountRegularExpression(ranges RangePointer, count uint, regularExpression IRegularExpression) TextCheckingResult { - return TextCheckingResultClass.RegularExpressionCheckingResultWithRangesCountRegularExpression(ranges, count, regularExpression) -} - // Returns the result type that the range represents. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416732-rangeatindex?language=objc @@ -192,72 +185,49 @@ func (t_ TextCheckingResult) RangeAtIndex(idx uint) Range { return rv } -// Creates and returns a text checking result with the specified array of grammatical errors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1407190-grammarcheckingresultwithrange?language=objc -func (tc _TextCheckingResultClass) GrammarCheckingResultWithRangeDetails(range_ Range, details []map[string]objc.IObject) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("grammarCheckingResultWithRange:details:"), range_, details) - return rv -} - -// Creates and returns a text checking result with the specified array of grammatical errors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1407190-grammarcheckingresultwithrange?language=objc -func TextCheckingResult_GrammarCheckingResultWithRangeDetails(range_ Range, details []map[string]objc.IObject) TextCheckingResult { - return TextCheckingResultClass.GrammarCheckingResultWithRangeDetails(range_, details) -} - -// Returns a new text checking result after adjusting the ranges as specified by the offset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1417597-resultbyadjustingrangeswithoffse?language=objc -func (t_ TextCheckingResult) ResultByAdjustingRangesWithOffset(offset int) TextCheckingResult { - rv := objc.Call[TextCheckingResult](t_, objc.Sel("resultByAdjustingRangesWithOffset:"), offset) - return rv -} - -// Creates and returns a text checking result with the specified date, time zone, and duration. [Full Topic] +// Creates and returns a text checking result with the specified dash corrected replacement string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416392-datecheckingresultwithrange?language=objc -func (tc _TextCheckingResultClass) DateCheckingResultWithRangeDateTimeZoneDuration(range_ Range, date IDate, timeZone ITimeZone, duration TimeInterval) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("dateCheckingResultWithRange:date:timeZone:duration:"), range_, date, timeZone, duration) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1409525-dashcheckingresultwithrange?language=objc +func (tc _TextCheckingResultClass) DashCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("dashCheckingResultWithRange:replacementString:"), range_, replacementString) return rv } -// Creates and returns a text checking result with the specified date, time zone, and duration. [Full Topic] +// Creates and returns a text checking result with the specified dash corrected replacement string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416392-datecheckingresultwithrange?language=objc -func TextCheckingResult_DateCheckingResultWithRangeDateTimeZoneDuration(range_ Range, date IDate, timeZone ITimeZone, duration TimeInterval) TextCheckingResult { - return TextCheckingResultClass.DateCheckingResultWithRangeDateTimeZoneDuration(range_, date, timeZone, duration) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1409525-dashcheckingresultwithrange?language=objc +func TextCheckingResult_DashCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { + return TextCheckingResultClass.DashCheckingResultWithRangeReplacementString(range_, replacementString) } -// Creates and returns a text checking result with the specified address components. [Full Topic] +// Creates and returns a text checking result with the range of a misspelled word. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413828-addresscheckingresultwithrange?language=objc -func (tc _TextCheckingResultClass) AddressCheckingResultWithRangeComponents(range_ Range, components map[TextCheckingKey]string) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("addressCheckingResultWithRange:components:"), range_, components) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416255-spellcheckingresultwithrange?language=objc +func (tc _TextCheckingResultClass) SpellCheckingResultWithRange(range_ Range) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("spellCheckingResultWithRange:"), range_) return rv } -// Creates and returns a text checking result with the specified address components. [Full Topic] +// Creates and returns a text checking result with the range of a misspelled word. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413828-addresscheckingresultwithrange?language=objc -func TextCheckingResult_AddressCheckingResultWithRangeComponents(range_ Range, components map[TextCheckingKey]string) TextCheckingResult { - return TextCheckingResultClass.AddressCheckingResultWithRangeComponents(range_, components) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416255-spellcheckingresultwithrange?language=objc +func TextCheckingResult_SpellCheckingResultWithRange(range_ Range) TextCheckingResult { + return TextCheckingResultClass.SpellCheckingResultWithRange(range_) } -// Creates and returns a text checking result with the specified orthography. [Full Topic] +// Creates and returns a text checking result with the specified date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415506-orthographycheckingresultwithran?language=objc -func (tc _TextCheckingResultClass) OrthographyCheckingResultWithRangeOrthography(range_ Range, orthography IOrthography) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("orthographyCheckingResultWithRange:orthography:"), range_, orthography) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1410401-datecheckingresultwithrange?language=objc +func (tc _TextCheckingResultClass) DateCheckingResultWithRangeDate(range_ Range, date IDate) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("dateCheckingResultWithRange:date:"), range_, date) return rv } -// Creates and returns a text checking result with the specified orthography. [Full Topic] +// Creates and returns a text checking result with the specified date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415506-orthographycheckingresultwithran?language=objc -func TextCheckingResult_OrthographyCheckingResultWithRangeOrthography(range_ Range, orthography IOrthography) TextCheckingResult { - return TextCheckingResultClass.OrthographyCheckingResultWithRangeOrthography(range_, orthography) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1410401-datecheckingresultwithrange?language=objc +func TextCheckingResult_DateCheckingResultWithRangeDate(range_ Range, date IDate) TextCheckingResult { + return TextCheckingResultClass.DateCheckingResultWithRangeDate(range_, date) } // Creates and returns a text checking result with the specified phone number. [Full Topic] @@ -275,72 +245,56 @@ func TextCheckingResult_PhoneNumberCheckingResultWithRangePhoneNumber(range_ Ran return TextCheckingResultClass.PhoneNumberCheckingResultWithRangePhoneNumber(range_, phoneNumber) } -// Creates and returns a text checking result with the specified quote-balanced replacement string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413783-quotecheckingresultwithrange?language=objc -func (tc _TextCheckingResultClass) QuoteCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("quoteCheckingResultWithRange:replacementString:"), range_, replacementString) - return rv -} - -// Creates and returns a text checking result with the specified quote-balanced replacement string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413783-quotecheckingresultwithrange?language=objc -func TextCheckingResult_QuoteCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - return TextCheckingResultClass.QuoteCheckingResultWithRangeReplacementString(range_, replacementString) -} - -// Creates and returns a text checking result with the specified URL. [Full Topic] +// Creates and returns a type checking result with the specified regular expression data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413056-linkcheckingresultwithrange?language=objc -func (tc _TextCheckingResultClass) LinkCheckingResultWithRangeURL(range_ Range, url IURL) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("linkCheckingResultWithRange:URL:"), range_, url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1412104-regularexpressioncheckingresultw?language=objc +func (tc _TextCheckingResultClass) RegularExpressionCheckingResultWithRangesCountRegularExpression(ranges RangePointer, count uint, regularExpression IRegularExpression) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("regularExpressionCheckingResultWithRanges:count:regularExpression:"), ranges, count, regularExpression) return rv } -// Creates and returns a text checking result with the specified URL. [Full Topic] +// Creates and returns a type checking result with the specified regular expression data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413056-linkcheckingresultwithrange?language=objc -func TextCheckingResult_LinkCheckingResultWithRangeURL(range_ Range, url IURL) TextCheckingResult { - return TextCheckingResultClass.LinkCheckingResultWithRangeURL(range_, url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1412104-regularexpressioncheckingresultw?language=objc +func TextCheckingResult_RegularExpressionCheckingResultWithRangesCountRegularExpression(ranges RangePointer, count uint, regularExpression IRegularExpression) TextCheckingResult { + return TextCheckingResultClass.RegularExpressionCheckingResultWithRangesCountRegularExpression(ranges, count, regularExpression) } -// Creates and returns a text checking result with the specified transit information. [Full Topic] +// Creates and returns a text checking result with the specified address components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1408575-transitinformationcheckingresult?language=objc -func (tc _TextCheckingResultClass) TransitInformationCheckingResultWithRangeComponents(range_ Range, components map[TextCheckingKey]string) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("transitInformationCheckingResultWithRange:components:"), range_, components) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413828-addresscheckingresultwithrange?language=objc +func (tc _TextCheckingResultClass) AddressCheckingResultWithRangeComponents(range_ Range, components map[TextCheckingKey]string) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("addressCheckingResultWithRange:components:"), range_, components) return rv } -// Creates and returns a text checking result with the specified transit information. [Full Topic] +// Creates and returns a text checking result with the specified address components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1408575-transitinformationcheckingresult?language=objc -func TextCheckingResult_TransitInformationCheckingResultWithRangeComponents(range_ Range, components map[TextCheckingKey]string) TextCheckingResult { - return TextCheckingResultClass.TransitInformationCheckingResultWithRangeComponents(range_, components) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413828-addresscheckingresultwithrange?language=objc +func TextCheckingResult_AddressCheckingResultWithRangeComponents(range_ Range, components map[TextCheckingKey]string) TextCheckingResult { + return TextCheckingResultClass.AddressCheckingResultWithRangeComponents(range_, components) } -// The URL of a type checking result. [Full Topic] +// Creates and returns a text checking result with the specified replacement string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1417843-url?language=objc -func (t_ TextCheckingResult) URL() URL { - rv := objc.Call[URL](t_, objc.Sel("URL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416651-replacementcheckingresultwithran?language=objc +func (tc _TextCheckingResultClass) ReplacementCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("replacementCheckingResultWithRange:replacementString:"), range_, replacementString) return rv } -// A replacement string from one of a number of replacement checking results. [Full Topic] +// Creates and returns a text checking result with the specified replacement string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1412681-replacementstring?language=objc -func (t_ TextCheckingResult) ReplacementString() string { - rv := objc.Call[string](t_, objc.Sel("replacementString")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1416651-replacementcheckingresultwithran?language=objc +func TextCheckingResult_ReplacementCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { + return TextCheckingResultClass.ReplacementCheckingResultWithRangeReplacementString(range_, replacementString) } -// A dictionary containing the components of a type checking result. [Full Topic] +// The phone number of a type checking result. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1407367-components?language=objc -func (t_ TextCheckingResult) Components() map[TextCheckingKey]string { - rv := objc.Call[map[TextCheckingKey]string](t_, objc.Sel("components")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415511-phonenumber?language=objc +func (t_ TextCheckingResult) PhoneNumber() string { + rv := objc.Call[string](t_, objc.Sel("phoneNumber")) return rv } @@ -352,43 +306,35 @@ func (t_ TextCheckingResult) RegularExpression() RegularExpression { return rv } -// The duration component of a type checking result. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415044-duration?language=objc -func (t_ TextCheckingResult) Duration() TimeInterval { - rv := objc.Call[TimeInterval](t_, objc.Sel("duration")) - return rv -} - -// Returns the text checking result type that the receiver represents. [Full Topic] +// The date component of a type checking result. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1407779-resulttype?language=objc -func (t_ TextCheckingResult) ResultType() TextCheckingType { - rv := objc.Call[TextCheckingType](t_, objc.Sel("resultType")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1414289-date?language=objc +func (t_ TextCheckingResult) Date() Date { + rv := objc.Call[Date](t_, objc.Sel("date")) return rv } -// Returns the range of the result that the receiver represents. [Full Topic] +// The details of a located grammatical type checking result. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415852-range?language=objc -func (t_ TextCheckingResult) Range() Range { - rv := objc.Call[Range](t_, objc.Sel("range")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1408959-grammardetails?language=objc +func (t_ TextCheckingResult) GrammarDetails() []map[string]objc.Object { + rv := objc.Call[[]map[string]objc.Object](t_, objc.Sel("grammarDetails")) return rv } -// The phone number of a type checking result. [Full Topic] +// Returns the number of ranges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415511-phonenumber?language=objc -func (t_ TextCheckingResult) PhoneNumber() string { - rv := objc.Call[string](t_, objc.Sel("phoneNumber")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1407475-numberofranges?language=objc +func (t_ TextCheckingResult) NumberOfRanges() uint { + rv := objc.Call[uint](t_, objc.Sel("numberOfRanges")) return rv } -// [Full Topic] +// Returns the range of the result that the receiver represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415454-alternativestrings?language=objc -func (t_ TextCheckingResult) AlternativeStrings() []string { - rv := objc.Call[[]string](t_, objc.Sel("alternativeStrings")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415852-range?language=objc +func (t_ TextCheckingResult) Range() Range { + rv := objc.Call[Range](t_, objc.Sel("range")) return rv } @@ -416,26 +362,50 @@ func (t_ TextCheckingResult) TimeZone() TimeZone { return rv } -// The date component of a type checking result. [Full Topic] +// The URL of a type checking result. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1414289-date?language=objc -func (t_ TextCheckingResult) Date() Date { - rv := objc.Call[Date](t_, objc.Sel("date")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1417843-url?language=objc +func (t_ TextCheckingResult) URL() URL { + rv := objc.Call[URL](t_, objc.Sel("URL")) return rv } -// Returns the number of ranges. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1407475-numberofranges?language=objc -func (t_ TextCheckingResult) NumberOfRanges() uint { - rv := objc.Call[uint](t_, objc.Sel("numberOfRanges")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415454-alternativestrings?language=objc +func (t_ TextCheckingResult) AlternativeStrings() []string { + rv := objc.Call[[]string](t_, objc.Sel("alternativeStrings")) return rv } -// The details of a located grammatical type checking result. [Full Topic] +// A dictionary containing the components of a type checking result. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1408959-grammardetails?language=objc -func (t_ TextCheckingResult) GrammarDetails() []map[string]objc.Object { - rv := objc.Call[[]map[string]objc.Object](t_, objc.Sel("grammarDetails")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1407367-components?language=objc +func (t_ TextCheckingResult) Components() map[TextCheckingKey]string { + rv := objc.Call[map[TextCheckingKey]string](t_, objc.Sel("components")) + return rv +} + +// A replacement string from one of a number of replacement checking results. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1412681-replacementstring?language=objc +func (t_ TextCheckingResult) ReplacementString() string { + rv := objc.Call[string](t_, objc.Sel("replacementString")) + return rv +} + +// The duration component of a type checking result. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1415044-duration?language=objc +func (t_ TextCheckingResult) Duration() TimeInterval { + rv := objc.Call[TimeInterval](t_, objc.Sel("duration")) + return rv +} + +// Returns the text checking result type that the receiver represents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1407779-resulttype?language=objc +func (t_ TextCheckingResult) ResultType() TextCheckingType { + rv := objc.Call[TextCheckingType](t_, objc.Sel("resultType")) return rv } diff --git a/macos/foundation/thread.gen.go b/macos/foundation/thread.gen.go index 7925d894..2d7c0dc2 100644 --- a/macos/foundation/thread.gen.go +++ b/macos/foundation/thread.gen.go @@ -21,16 +21,17 @@ type IThread interface { Main() Start() Cancel() + IsCancelled() bool + IsExecuting() bool + Name() string + SetName(value string) QualityOfService() QualityOfService SetQualityOfService(value QualityOfService) IsMainThread() bool - IsExecuting() bool - IsFinished() bool + ThreadPriority() float64 StackSize() uint SetStackSize(value uint) - IsCancelled() bool - Name() string - SetName(value string) + IsFinished() bool ThreadDictionary() MutableDictionary } @@ -47,6 +48,20 @@ func ThreadFrom(ptr unsafe.Pointer) Thread { } } +func (t_ Thread) InitWithBlock(block func()) Thread { + rv := objc.Call[Thread](t_, objc.Sel("initWithBlock:"), block) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/2088561-initwithblock?language=objc +func NewThreadWithBlock(block func()) Thread { + instance := ThreadClass.Alloc().InitWithBlock(block) + instance.Autorelease() + return instance +} + func (t_ Thread) Init() Thread { rv := objc.Call[Thread](t_, objc.Sel("init")) return rv @@ -66,20 +81,6 @@ func NewThreadWithTargetSelectorObject(target objc.IObject, selector objc.Select return instance } -func (t_ Thread) InitWithBlock(block func()) Thread { - rv := objc.Call[Thread](t_, objc.Sel("initWithBlock:"), block) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/2088561-initwithblock?language=objc -func NewThreadWithBlock(block func()) Thread { - instance := ThreadClass.Alloc().InitWithBlock(block) - instance.Autorelease() - return instance -} - func (tc _ThreadClass) Alloc() Thread { rv := objc.Call[Thread](tc, objc.Sel("alloc")) return rv @@ -95,13 +96,6 @@ func NewThread() Thread { return ThreadClass.New() } -// The main entry point routine for the thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1418421-main?language=objc -func (t_ Thread) Main() { - objc.Call[objc.Void](t_, objc.Sel("main")) -} - // Terminates the current thread. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409404-exit?language=objc @@ -130,55 +124,11 @@ func Thread_SleepUntilDate(date IDate) { ThreadClass.SleepUntilDate(date) } -// Sets the current thread’s priority. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1407523-setthreadpriority?language=objc -func (tc _ThreadClass) SetThreadPriority(p float64) bool { - rv := objc.Call[bool](tc, objc.Sel("setThreadPriority:"), p) - return rv -} - -// Sets the current thread’s priority. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1407523-setthreadpriority?language=objc -func Thread_SetThreadPriority(p float64) bool { - return ThreadClass.SetThreadPriority(p) -} - -// Returns the current thread’s priority. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1417675-threadpriority?language=objc -func (tc _ThreadClass) ThreadPriority() float64 { - rv := objc.Call[float64](tc, objc.Sel("threadPriority")) - return rv -} - -// Returns the current thread’s priority. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1417675-threadpriority?language=objc -func Thread_ThreadPriority() float64 { - return ThreadClass.ThreadPriority() -} - -// Starts the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1418166-start?language=objc -func (t_ Thread) Start() { - objc.Call[objc.Void](t_, objc.Sel("start")) -} - -// Detaches a new thread and uses the specified selector as the thread entry point. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1415633-detachnewthreadselector?language=objc -func (tc _ThreadClass) DetachNewThreadSelectorToTargetWithObject(selector objc.Selector, target objc.IObject, argument objc.IObject) { - objc.Call[objc.Void](tc, objc.Sel("detachNewThreadSelector:toTarget:withObject:"), selector, target, argument) -} - -// Detaches a new thread and uses the specified selector as the thread entry point. [Full Topic] +// The main entry point routine for the thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1415633-detachnewthreadselector?language=objc -func Thread_DetachNewThreadSelectorToTargetWithObject(selector objc.Selector, target objc.IObject, argument objc.IObject) { - ThreadClass.DetachNewThreadSelectorToTargetWithObject(selector, target, argument) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1418421-main?language=objc +func (t_ Thread) Main() { + objc.Call[objc.Void](t_, objc.Sel("main")) } // Sleeps the thread for a given time interval. [Full Topic] @@ -195,6 +145,13 @@ func Thread_SleepForTimeInterval(ti TimeInterval) { ThreadClass.SleepForTimeInterval(ti) } +// Starts the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1418166-start?language=objc +func (t_ Thread) Start() { + objc.Call[objc.Void](t_, objc.Sel("start")) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/2088563-detachnewthreadwithblock?language=objc @@ -209,13 +166,6 @@ func Thread_DetachNewThreadWithBlock(block func()) { ThreadClass.DetachNewThreadWithBlock(block) } -// Changes the cancelled state of the receiver to indicate that it should exit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1411303-cancel?language=objc -func (t_ Thread) Cancel() { - objc.Call[objc.Void](t_, objc.Sel("cancel")) -} - // Returns whether the application is multithreaded. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1410702-ismultithreaded?language=objc @@ -231,41 +181,47 @@ func Thread_IsMultiThreaded() bool { return ThreadClass.IsMultiThreaded() } -// [Full Topic] +// Detaches a new thread and uses the specified selector as the thread entry point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409426-qualityofservice?language=objc -func (t_ Thread) QualityOfService() QualityOfService { - rv := objc.Call[QualityOfService](t_, objc.Sel("qualityOfService")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1415633-detachnewthreadselector?language=objc +func (tc _ThreadClass) DetachNewThreadSelectorToTargetWithObject(selector objc.Selector, target objc.IObject, argument objc.IObject) { + objc.Call[objc.Void](tc, objc.Sel("detachNewThreadSelector:toTarget:withObject:"), selector, target, argument) } -// [Full Topic] +// Detaches a new thread and uses the specified selector as the thread entry point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409426-qualityofservice?language=objc -func (t_ Thread) SetQualityOfService(value QualityOfService) { - objc.Call[objc.Void](t_, objc.Sel("setQualityOfService:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1415633-detachnewthreadselector?language=objc +func Thread_DetachNewThreadSelectorToTargetWithObject(selector objc.Selector, target objc.IObject, argument objc.IObject) { + ThreadClass.DetachNewThreadSelectorToTargetWithObject(selector, target, argument) } -// Returns an array containing the call stack symbols. [Full Topic] +// Sets the current thread’s priority. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1414836-callstacksymbols?language=objc -func (tc _ThreadClass) CallStackSymbols() []string { - rv := objc.Call[[]string](tc, objc.Sel("callStackSymbols")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1407523-setthreadpriority?language=objc +func (tc _ThreadClass) SetThreadPriority(p float64) bool { + rv := objc.Call[bool](tc, objc.Sel("setThreadPriority:"), p) return rv } -// Returns an array containing the call stack symbols. [Full Topic] +// Sets the current thread’s priority. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1414836-callstacksymbols?language=objc -func Thread_CallStackSymbols() []string { - return ThreadClass.CallStackSymbols() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1407523-setthreadpriority?language=objc +func Thread_SetThreadPriority(p float64) bool { + return ThreadClass.SetThreadPriority(p) } -// A Boolean value that indicates whether the receiver is the main thread. [Full Topic] +// Changes the cancelled state of the receiver to indicate that it should exit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1408455-ismainthread?language=objc -func (t_ Thread) IsMainThread() bool { - rv := objc.Call[bool](t_, objc.Sel("isMainThread")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1411303-cancel?language=objc +func (t_ Thread) Cancel() { + objc.Call[objc.Void](t_, objc.Sel("cancel")) +} + +// A Boolean value that indicates whether the receiver is cancelled. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1417366-cancelled?language=objc +func (t_ Thread) IsCancelled() bool { + rv := objc.Call[bool](t_, objc.Sel("isCancelled")) return rv } @@ -277,80 +233,95 @@ func (t_ Thread) IsExecuting() bool { return rv } -// A Boolean value that indicates whether the receiver has finished execution. [Full Topic] +// Returns an array containing the call stack return addresses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409297-finished?language=objc -func (t_ Thread) IsFinished() bool { - rv := objc.Call[bool](t_, objc.Sel("isFinished")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409565-callstackreturnaddresses?language=objc +func (tc _ThreadClass) CallStackReturnAddresses() []Number { + rv := objc.Call[[]Number](tc, objc.Sel("callStackReturnAddresses")) return rv } -// The stack size of the receiver, in bytes. [Full Topic] +// Returns an array containing the call stack return addresses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1415190-stacksize?language=objc -func (t_ Thread) StackSize() uint { - rv := objc.Call[uint](t_, objc.Sel("stackSize")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409565-callstackreturnaddresses?language=objc +func Thread_CallStackReturnAddresses() []Number { + return ThreadClass.CallStackReturnAddresses() +} + +// The name of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1414122-name?language=objc +func (t_ Thread) Name() string { + rv := objc.Call[string](t_, objc.Sel("name")) return rv } -// The stack size of the receiver, in bytes. [Full Topic] +// The name of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1415190-stacksize?language=objc -func (t_ Thread) SetStackSize(value uint) { - objc.Call[objc.Void](t_, objc.Sel("setStackSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1414122-name?language=objc +func (t_ Thread) SetName(value string) { + objc.Call[objc.Void](t_, objc.Sel("setName:"), value) } -// Returns the thread object representing the current thread of execution. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1410679-currentthread?language=objc -func (tc _ThreadClass) CurrentThread() Thread { - rv := objc.Call[Thread](tc, objc.Sel("currentThread")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409426-qualityofservice?language=objc +func (t_ Thread) QualityOfService() QualityOfService { + rv := objc.Call[QualityOfService](t_, objc.Sel("qualityOfService")) return rv } -// Returns the thread object representing the current thread of execution. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1410679-currentthread?language=objc -func Thread_CurrentThread() Thread { - return ThreadClass.CurrentThread() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409426-qualityofservice?language=objc +func (t_ Thread) SetQualityOfService(value QualityOfService) { + objc.Call[objc.Void](t_, objc.Sel("setQualityOfService:"), value) } -// Returns an array containing the call stack return addresses. [Full Topic] +// A Boolean value that indicates whether the receiver is the main thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409565-callstackreturnaddresses?language=objc -func (tc _ThreadClass) CallStackReturnAddresses() []Number { - rv := objc.Call[[]Number](tc, objc.Sel("callStackReturnAddresses")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1408455-ismainthread?language=objc +func (t_ Thread) IsMainThread() bool { + rv := objc.Call[bool](t_, objc.Sel("isMainThread")) return rv } -// Returns an array containing the call stack return addresses. [Full Topic] +// The receiver’s priority [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409565-callstackreturnaddresses?language=objc -func Thread_CallStackReturnAddresses() []Number { - return ThreadClass.CallStackReturnAddresses() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1411927-threadpriority?language=objc +func (t_ Thread) ThreadPriority() float64 { + rv := objc.Call[float64](t_, objc.Sel("threadPriority")) + return rv } -// A Boolean value that indicates whether the receiver is cancelled. [Full Topic] +// Returns an array containing the call stack symbols. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1417366-cancelled?language=objc -func (t_ Thread) IsCancelled() bool { - rv := objc.Call[bool](t_, objc.Sel("isCancelled")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1414836-callstacksymbols?language=objc +func (tc _ThreadClass) CallStackSymbols() []string { + rv := objc.Call[[]string](tc, objc.Sel("callStackSymbols")) return rv } -// The name of the receiver. [Full Topic] +// Returns an array containing the call stack symbols. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1414122-name?language=objc -func (t_ Thread) Name() string { - rv := objc.Call[string](t_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1414836-callstacksymbols?language=objc +func Thread_CallStackSymbols() []string { + return ThreadClass.CallStackSymbols() +} + +// The stack size of the receiver, in bytes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1415190-stacksize?language=objc +func (t_ Thread) StackSize() uint { + rv := objc.Call[uint](t_, objc.Sel("stackSize")) return rv } -// The name of the receiver. [Full Topic] +// The stack size of the receiver, in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1414122-name?language=objc -func (t_ Thread) SetName(value string) { - objc.Call[objc.Void](t_, objc.Sel("setName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1415190-stacksize?language=objc +func (t_ Thread) SetStackSize(value uint) { + objc.Call[objc.Void](t_, objc.Sel("setStackSize:"), value) } // Returns the NSThread object representing the main thread. [Full Topic] @@ -368,6 +339,29 @@ func Thread_MainThread() Thread { return ThreadClass.MainThread() } +// A Boolean value that indicates whether the receiver has finished execution. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409297-finished?language=objc +func (t_ Thread) IsFinished() bool { + rv := objc.Call[bool](t_, objc.Sel("isFinished")) + return rv +} + +// Returns the thread object representing the current thread of execution. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1410679-currentthread?language=objc +func (tc _ThreadClass) CurrentThread() Thread { + rv := objc.Call[Thread](tc, objc.Sel("currentThread")) + return rv +} + +// Returns the thread object representing the current thread of execution. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1410679-currentthread?language=objc +func Thread_CurrentThread() Thread { + return ThreadClass.CurrentThread() +} + // The thread object's dictionary. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1411433-threaddictionary?language=objc diff --git a/macos/foundation/time_zone.gen.go b/macos/foundation/time_zone.gen.go index d29dfdab..e1f0d8d1 100644 --- a/macos/foundation/time_zone.gen.go +++ b/macos/foundation/time_zone.gen.go @@ -18,23 +18,20 @@ type _TimeZoneClass struct { // An interface definition for the [TimeZone] class. type ITimeZone interface { objc.IObject - SecondsFromGMTForDate(aDate IDate) int - DaylightSavingTimeOffsetForDate(aDate IDate) TimeInterval - AbbreviationForDate(aDate IDate) string - NextDaylightSavingTimeTransitionAfterDate(aDate IDate) Date IsDaylightSavingTimeForDate(aDate IDate) bool + DaylightSavingTimeOffsetForDate(aDate IDate) TimeInterval LocalizedNameLocale(style TimeZoneNameStyle, locale ILocale) string + SecondsFromGMTForDate(aDate IDate) int + AbbreviationForDate(aDate IDate) string IsEqualToTimeZone(aTimeZone ITimeZone) bool + IsDaylightSavingTime() bool + DaylightSavingTimeOffset() TimeInterval + Name() string + SecondsFromGMT() int NextDaylightSavingTimeTransition() Date - Description() string Data() []byte + Description() string Abbreviation() string - SecondsFromGMT() int - IsDaylightSavingTime() bool - Name() string - DaylightSavingTimeOffset() TimeInterval - AbbreviationDictionary() map[string]string - SetAbbreviationDictionary(value map[string]string) } // Information about standard time conventions associated with a specific geopolitical region. [Full Topic] @@ -50,20 +47,6 @@ func TimeZoneFrom(ptr unsafe.Pointer) TimeZone { } } -func (t_ TimeZone) InitWithName(tzName string) TimeZone { - rv := objc.Call[TimeZone](t_, objc.Sel("initWithName:"), tzName) - return rv -} - -// Returns a time zone initialized with a given identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387215-initwithname?language=objc -func NewTimeZoneWithName(tzName string) TimeZone { - instance := TimeZoneClass.Alloc().InitWithName(tzName) - instance.Autorelease() - return instance -} - func (tc _TimeZoneClass) TimeZoneWithAbbreviation(abbreviation string) TimeZone { rv := objc.Call[TimeZone](tc, objc.Sel("timeZoneWithAbbreviation:"), abbreviation) return rv @@ -76,28 +59,16 @@ func TimeZone_TimeZoneWithAbbreviation(abbreviation string) TimeZone { return TimeZoneClass.TimeZoneWithAbbreviation(abbreviation) } -func (tc _TimeZoneClass) TimeZoneWithNameData(tzName string, aData []byte) TimeZone { - rv := objc.Call[TimeZone](tc, objc.Sel("timeZoneWithName:data:"), tzName, aData) - return rv -} - -// Returns the time zone with a given identifier whose data has been initialized using given data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387219-timezonewithname?language=objc -func TimeZone_TimeZoneWithNameData(tzName string, aData []byte) TimeZone { - return TimeZoneClass.TimeZoneWithNameData(tzName, aData) -} - -func (tc _TimeZoneClass) TimeZoneForSecondsFromGMT(seconds int) TimeZone { - rv := objc.Call[TimeZone](tc, objc.Sel("timeZoneForSecondsFromGMT:"), seconds) +func (tc _TimeZoneClass) TimeZoneWithName(tzName string) TimeZone { + rv := objc.Call[TimeZone](tc, objc.Sel("timeZoneWithName:"), tzName) return rv } -// Returns a time zone object offset from Greenwich Mean Time by a given number of seconds. [Full Topic] +// Returns the time zone object identified by a given identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387199-timezoneforsecondsfromgmt?language=objc -func TimeZone_TimeZoneForSecondsFromGMT(seconds int) TimeZone { - return TimeZoneClass.TimeZoneForSecondsFromGMT(seconds) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387227-timezonewithname?language=objc +func TimeZone_TimeZoneWithName(tzName string) TimeZone { + return TimeZoneClass.TimeZoneWithName(tzName) } func (t_ TimeZone) InitWithNameData(tzName string, aData []byte) TimeZone { @@ -114,16 +85,16 @@ func NewTimeZoneWithNameData(tzName string, aData []byte) TimeZone { return instance } -func (tc _TimeZoneClass) TimeZoneWithName(tzName string) TimeZone { - rv := objc.Call[TimeZone](tc, objc.Sel("timeZoneWithName:"), tzName) +func (tc _TimeZoneClass) TimeZoneForSecondsFromGMT(seconds int) TimeZone { + rv := objc.Call[TimeZone](tc, objc.Sel("timeZoneForSecondsFromGMT:"), seconds) return rv } -// Returns the time zone object identified by a given identifier. [Full Topic] +// Returns a time zone object offset from Greenwich Mean Time by a given number of seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387227-timezonewithname?language=objc -func TimeZone_TimeZoneWithName(tzName string) TimeZone { - return TimeZoneClass.TimeZoneWithName(tzName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387199-timezoneforsecondsfromgmt?language=objc +func TimeZone_TimeZoneForSecondsFromGMT(seconds int) TimeZone { + return TimeZoneClass.TimeZoneForSecondsFromGMT(seconds) } func (tc _TimeZoneClass) Alloc() TimeZone { @@ -146,28 +117,14 @@ func (t_ TimeZone) Init() TimeZone { return rv } -// Returns the difference in seconds between the receiver and Greenwich Mean Time at a given date. [Full Topic] +// Indicates whether the receiver uses daylight saving time on a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387242-secondsfromgmtfordate?language=objc -func (t_ TimeZone) SecondsFromGMTForDate(aDate IDate) int { - rv := objc.Call[int](t_, objc.Sel("secondsFromGMTForDate:"), aDate) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387201-isdaylightsavingtimefordate?language=objc +func (t_ TimeZone) IsDaylightSavingTimeForDate(aDate IDate) bool { + rv := objc.Call[bool](t_, objc.Sel("isDaylightSavingTimeForDate:"), aDate) return rv } -// Clears any time zone value cached for the [foundation/nstimezone/systemtimezone] property. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387189-resetsystemtimezone?language=objc -func (tc _TimeZoneClass) ResetSystemTimeZone() { - objc.Call[objc.Void](tc, objc.Sel("resetSystemTimeZone")) -} - -// Clears any time zone value cached for the [foundation/nstimezone/systemtimezone] property. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387189-resetsystemtimezone?language=objc -func TimeZone_ResetSystemTimeZone() { - TimeZoneClass.ResetSystemTimeZone() -} - // Returns the daylight saving time offset for a given date. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387207-daylightsavingtimeoffsetfordate?language=objc @@ -176,30 +133,6 @@ func (t_ TimeZone) DaylightSavingTimeOffsetForDate(aDate IDate) TimeInterval { return rv } -// Returns the abbreviation for the receiver at a given date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387237-abbreviationfordate?language=objc -func (t_ TimeZone) AbbreviationForDate(aDate IDate) string { - rv := objc.Call[string](t_, objc.Sel("abbreviationForDate:"), aDate) - return rv -} - -// Returns the next daylight saving time transition after a given date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387254-nextdaylightsavingtimetransition?language=objc -func (t_ TimeZone) NextDaylightSavingTimeTransitionAfterDate(aDate IDate) Date { - rv := objc.Call[Date](t_, objc.Sel("nextDaylightSavingTimeTransitionAfterDate:"), aDate) - return rv -} - -// Indicates whether the receiver uses daylight saving time on a given date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387201-isdaylightsavingtimefordate?language=objc -func (t_ TimeZone) IsDaylightSavingTimeForDate(aDate IDate) bool { - rv := objc.Call[bool](t_, objc.Sel("isDaylightSavingTimeForDate:"), aDate) - return rv -} - // Returns the localized name of the time zone. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387193-localizedname?language=objc @@ -208,59 +141,41 @@ func (t_ TimeZone) LocalizedNameLocale(style TimeZoneNameStyle, locale ILocale) return rv } -// Indicates whether the receiver has the same name and data as the specified time zone. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387211-isequaltotimezone?language=objc -func (t_ TimeZone) IsEqualToTimeZone(aTimeZone ITimeZone) bool { - rv := objc.Call[bool](t_, objc.Sel("isEqualToTimeZone:"), aTimeZone) - return rv -} - -// The date of the next daylight saving time transition for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387183-nextdaylightsavingtimetransition?language=objc -func (t_ TimeZone) NextDaylightSavingTimeTransition() Date { - rv := objc.Call[Date](t_, objc.Sel("nextDaylightSavingTimeTransition")) - return rv -} - -// A textual description of the time zone including the name, abbreviation, offset from GMT, and whether or not daylight saving time is currently in effect. [Full Topic] +// Returns the difference in seconds between the receiver and Greenwich Mean Time at a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387217-description?language=objc -func (t_ TimeZone) Description() string { - rv := objc.Call[string](t_, objc.Sel("description")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387242-secondsfromgmtfordate?language=objc +func (t_ TimeZone) SecondsFromGMTForDate(aDate IDate) int { + rv := objc.Call[int](t_, objc.Sel("secondsFromGMTForDate:"), aDate) return rv } -// The data that stores the information used by the receiver. [Full Topic] +// Clears any time zone value cached for the systemTimeZone property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387213-data?language=objc -func (t_ TimeZone) Data() []byte { - rv := objc.Call[[]byte](t_, objc.Sel("data")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387189-resetsystemtimezone?language=objc +func (tc _TimeZoneClass) ResetSystemTimeZone() { + objc.Call[objc.Void](tc, objc.Sel("resetSystemTimeZone")) } -// The abbreviation for the receiver, such as “EDT” (Eastern Daylight Time). [Full Topic] +// Clears any time zone value cached for the systemTimeZone property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387195-abbreviation?language=objc -func (t_ TimeZone) Abbreviation() string { - rv := objc.Call[string](t_, objc.Sel("abbreviation")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387189-resetsystemtimezone?language=objc +func TimeZone_ResetSystemTimeZone() { + TimeZoneClass.ResetSystemTimeZone() } -// The current difference in seconds between the receiver and Greenwich Mean Time. [Full Topic] +// Returns the abbreviation for the receiver at a given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387221-secondsfromgmt?language=objc -func (t_ TimeZone) SecondsFromGMT() int { - rv := objc.Call[int](t_, objc.Sel("secondsFromGMT")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387237-abbreviationfordate?language=objc +func (t_ TimeZone) AbbreviationForDate(aDate IDate) string { + rv := objc.Call[string](t_, objc.Sel("abbreviationForDate:"), aDate) return rv } -// A Boolean value that indicates whether the receiver is currently using daylight saving time. [Full Topic] +// Indicates whether the receiver has the same name and data as the specified time zone. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387191-daylightsavingtime?language=objc -func (t_ TimeZone) IsDaylightSavingTime() bool { - rv := objc.Call[bool](t_, objc.Sel("isDaylightSavingTime")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387211-isequaltotimezone?language=objc +func (t_ TimeZone) IsEqualToTimeZone(aTimeZone ITimeZone) bool { + rv := objc.Call[bool](t_, objc.Sel("isEqualToTimeZone:"), aTimeZone) return rv } @@ -293,14 +208,6 @@ func TimeZone_SetDefaultTimeZone(value ITimeZone) { TimeZoneClass.SetDefaultTimeZone(value) } -// The geopolitical region ID that identifies the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387233-name?language=objc -func (t_ TimeZone) Name() string { - rv := objc.Call[string](t_, objc.Sel("name")) - return rv -} - // An object that tracks the current system time zone. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387209-localtimezone?language=objc @@ -316,6 +223,30 @@ func TimeZone_LocalTimeZone() TimeZone { return TimeZoneClass.LocalTimeZone() } +// A Boolean value that indicates whether the receiver is currently using daylight saving time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387191-daylightsavingtime?language=objc +func (t_ TimeZone) IsDaylightSavingTime() bool { + rv := objc.Call[bool](t_, objc.Sel("isDaylightSavingTime")) + return rv +} + +// The current daylight saving time offset of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387235-daylightsavingtimeoffset?language=objc +func (t_ TimeZone) DaylightSavingTimeOffset() TimeInterval { + rv := objc.Call[TimeInterval](t_, objc.Sel("daylightSavingTimeOffset")) + return rv +} + +// The geopolitical region ID that identifies the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387233-name?language=objc +func (t_ TimeZone) Name() string { + rv := objc.Call[string](t_, objc.Sel("name")) + return rv +} + // Returns an array of strings listing the IDs of all the time zones known to the system. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387223-knowntimezonenames?language=objc @@ -331,6 +262,59 @@ func TimeZone_KnownTimeZoneNames() []string { return TimeZoneClass.KnownTimeZoneNames() } +// The current difference in seconds between the receiver and Greenwich Mean Time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387221-secondsfromgmt?language=objc +func (t_ TimeZone) SecondsFromGMT() int { + rv := objc.Call[int](t_, objc.Sel("secondsFromGMT")) + return rv +} + +// The date of the next daylight saving time transition for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387183-nextdaylightsavingtimetransition?language=objc +func (t_ TimeZone) NextDaylightSavingTimeTransition() Date { + rv := objc.Call[Date](t_, objc.Sel("nextDaylightSavingTimeTransition")) + return rv +} + +// The data that stores the information used by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387213-data?language=objc +func (t_ TimeZone) Data() []byte { + rv := objc.Call[[]byte](t_, objc.Sel("data")) + return rv +} + +// Returns a dictionary holding the mappings of time zone abbreviations to time zone names. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387258-abbreviationdictionary?language=objc +func (tc _TimeZoneClass) AbbreviationDictionary() map[string]string { + rv := objc.Call[map[string]string](tc, objc.Sel("abbreviationDictionary")) + return rv +} + +// Returns a dictionary holding the mappings of time zone abbreviations to time zone names. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387258-abbreviationdictionary?language=objc +func TimeZone_AbbreviationDictionary() map[string]string { + return TimeZoneClass.AbbreviationDictionary() +} + +// Returns a dictionary holding the mappings of time zone abbreviations to time zone names. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387258-abbreviationdictionary?language=objc +func (tc _TimeZoneClass) SetAbbreviationDictionary(value map[string]string) { + objc.Call[objc.Void](tc, objc.Sel("setAbbreviationDictionary:"), value) +} + +// Returns a dictionary holding the mappings of time zone abbreviations to time zone names. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387258-abbreviationdictionary?language=objc +func TimeZone_SetAbbreviationDictionary(value map[string]string) { + TimeZoneClass.SetAbbreviationDictionary(value) +} + // Returns the time zone data version. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387187-timezonedataversion?language=objc @@ -346,6 +330,14 @@ func TimeZone_TimeZoneDataVersion() string { return TimeZoneClass.TimeZoneDataVersion() } +// A textual description of the time zone including the name, abbreviation, offset from GMT, and whether or not daylight saving time is currently in effect. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387217-description?language=objc +func (t_ TimeZone) Description() string { + rv := objc.Call[string](t_, objc.Sel("description")) + return rv +} + // The time zone currently used by the system. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387231-systemtimezone?language=objc @@ -361,25 +353,10 @@ func TimeZone_SystemTimeZone() TimeZone { return TimeZoneClass.SystemTimeZone() } -// The current daylight saving time offset of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387235-daylightsavingtimeoffset?language=objc -func (t_ TimeZone) DaylightSavingTimeOffset() TimeInterval { - rv := objc.Call[TimeInterval](t_, objc.Sel("daylightSavingTimeOffset")) - return rv -} - -// Returns a dictionary holding the mappings of time zone abbreviations to time zone names. [Full Topic] +// The abbreviation for the receiver, such as “EDT” (Eastern Daylight Time). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387258-abbreviationdictionary?language=objc -func (t_ TimeZone) AbbreviationDictionary() map[string]string { - rv := objc.Call[map[string]string](t_, objc.Sel("abbreviationDictionary")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387195-abbreviation?language=objc +func (t_ TimeZone) Abbreviation() string { + rv := objc.Call[string](t_, objc.Sel("abbreviation")) return rv } - -// Returns a dictionary holding the mappings of time zone abbreviations to time zone names. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimezone/1387258-abbreviationdictionary?language=objc -func (t_ TimeZone) SetAbbreviationDictionary(value map[string]string) { - objc.Call[objc.Void](t_, objc.Sel("setAbbreviationDictionary:"), value) -} diff --git a/macos/foundation/timer.gen.go b/macos/foundation/timer.gen.go index 726bcf92..bc3f4a13 100644 --- a/macos/foundation/timer.gen.go +++ b/macos/foundation/timer.gen.go @@ -18,15 +18,15 @@ type _TimerClass struct { // An interface definition for the [Timer] class. type ITimer interface { objc.IObject - Invalidate() Fire() - IsValid() bool - Tolerance() TimeInterval - SetTolerance(value TimeInterval) + Invalidate() TimeInterval() TimeInterval FireDate() Date SetFireDate(value IDate) + Tolerance() TimeInterval + SetTolerance(value TimeInterval) UserInfo() objc.Object + IsValid() bool } // A timer that fires after a certain time interval has elapsed, sending a specified message to a target object. [Full Topic] @@ -56,20 +56,6 @@ func NewTimerWithFireDateIntervalRepeatsBlock(date IDate, interval TimeInterval, return instance } -func (t_ Timer) InitWithFireDateIntervalTargetSelectorUserInfoRepeats(date IDate, ti TimeInterval, t objc.IObject, s objc.Selector, ui objc.IObject, rep bool) Timer { - rv := objc.Call[Timer](t_, objc.Sel("initWithFireDate:interval:target:selector:userInfo:repeats:"), date, ti, t, s, ui, rep) - return rv -} - -// Initializes a timer using the specified object and selector. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1415700-initwithfiredate?language=objc -func NewTimerWithFireDateIntervalTargetSelectorUserInfoRepeats(date IDate, ti TimeInterval, t objc.IObject, s objc.Selector, ui objc.IObject, rep bool) Timer { - instance := TimerClass.Alloc().InitWithFireDateIntervalTargetSelectorUserInfoRepeats(date, ti, t, s, ui, rep) - instance.Autorelease() - return instance -} - func (tc _TimerClass) Alloc() Timer { rv := objc.Call[Timer](tc, objc.Sel("alloc")) return rv @@ -90,88 +76,6 @@ func (t_ Timer) Init() Timer { return rv } -// Initializes a timer object with the specified time interval and block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/2091888-timerwithtimeinterval?language=objc -func (tc _TimerClass) TimerWithTimeIntervalRepeatsBlock(interval TimeInterval, repeats bool, block func(timer Timer)) Timer { - rv := objc.Call[Timer](tc, objc.Sel("timerWithTimeInterval:repeats:block:"), interval, repeats, block) - return rv -} - -// Initializes a timer object with the specified time interval and block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/2091888-timerwithtimeinterval?language=objc -func Timer_TimerWithTimeIntervalRepeatsBlock(interval TimeInterval, repeats bool, block func(timer Timer)) Timer { - return TimerClass.TimerWithTimeIntervalRepeatsBlock(interval, repeats, block) -} - -// Initializes a timer object with the specified object and selector. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1408356-timerwithtimeinterval?language=objc -func (tc _TimerClass) TimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti TimeInterval, aTarget objc.IObject, aSelector objc.Selector, userInfo objc.IObject, yesOrNo bool) Timer { - rv := objc.Call[Timer](tc, objc.Sel("timerWithTimeInterval:target:selector:userInfo:repeats:"), ti, aTarget, aSelector, userInfo, yesOrNo) - return rv -} - -// Initializes a timer object with the specified object and selector. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1408356-timerwithtimeinterval?language=objc -func Timer_TimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti TimeInterval, aTarget objc.IObject, aSelector objc.Selector, userInfo objc.IObject, yesOrNo bool) Timer { - return TimerClass.TimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti, aTarget, aSelector, userInfo, yesOrNo) -} - -// Initializes a timer object with the specified invocation object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1407170-timerwithtimeinterval?language=objc -func (tc _TimerClass) TimerWithTimeIntervalInvocationRepeats(ti TimeInterval, invocation IInvocation, yesOrNo bool) Timer { - rv := objc.Call[Timer](tc, objc.Sel("timerWithTimeInterval:invocation:repeats:"), ti, invocation, yesOrNo) - return rv -} - -// Initializes a timer object with the specified invocation object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1407170-timerwithtimeinterval?language=objc -func Timer_TimerWithTimeIntervalInvocationRepeats(ti TimeInterval, invocation IInvocation, yesOrNo bool) Timer { - return TimerClass.TimerWithTimeIntervalInvocationRepeats(ti, invocation, yesOrNo) -} - -// Creates a new timer and schedules it on the current run loop in the default mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1415941-scheduledtimerwithtimeinterval?language=objc -func (tc _TimerClass) ScheduledTimerWithTimeIntervalInvocationRepeats(ti TimeInterval, invocation IInvocation, yesOrNo bool) Timer { - rv := objc.Call[Timer](tc, objc.Sel("scheduledTimerWithTimeInterval:invocation:repeats:"), ti, invocation, yesOrNo) - return rv -} - -// Creates a new timer and schedules it on the current run loop in the default mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1415941-scheduledtimerwithtimeinterval?language=objc -func Timer_ScheduledTimerWithTimeIntervalInvocationRepeats(ti TimeInterval, invocation IInvocation, yesOrNo bool) Timer { - return TimerClass.ScheduledTimerWithTimeIntervalInvocationRepeats(ti, invocation, yesOrNo) -} - -// Creates a timer and schedules it on the current run loop in the default mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1412416-scheduledtimerwithtimeinterval?language=objc -func (tc _TimerClass) ScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti TimeInterval, aTarget objc.IObject, aSelector objc.Selector, userInfo objc.IObject, yesOrNo bool) Timer { - rv := objc.Call[Timer](tc, objc.Sel("scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"), ti, aTarget, aSelector, userInfo, yesOrNo) - return rv -} - -// Creates a timer and schedules it on the current run loop in the default mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1412416-scheduledtimerwithtimeinterval?language=objc -func Timer_ScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti TimeInterval, aTarget objc.IObject, aSelector objc.Selector, userInfo objc.IObject, yesOrNo bool) Timer { - return TimerClass.ScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti, aTarget, aSelector, userInfo, yesOrNo) -} - -// Stops the timer from ever firing again and requests its removal from its run loop. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1415405-invalidate?language=objc -func (t_ Timer) Invalidate() { - objc.Call[objc.Void](t_, objc.Sel("invalidate")) -} - // Creates a timer and schedules it on the current run loop in the default mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/2091889-scheduledtimerwithtimeinterval?language=objc @@ -194,27 +98,26 @@ func (t_ Timer) Fire() { objc.Call[objc.Void](t_, objc.Sel("fire")) } -// A Boolean value that indicates whether the timer is currently valid. [Full Topic] +// Initializes a timer object with the specified time interval and block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1408249-valid?language=objc -func (t_ Timer) IsValid() bool { - rv := objc.Call[bool](t_, objc.Sel("isValid")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/2091888-timerwithtimeinterval?language=objc +func (tc _TimerClass) TimerWithTimeIntervalRepeatsBlock(interval TimeInterval, repeats bool, block func(timer Timer)) Timer { + rv := objc.Call[Timer](tc, objc.Sel("timerWithTimeInterval:repeats:block:"), interval, repeats, block) return rv } -// The amount of time after the scheduled fire date that the timer may fire. [Full Topic] +// Initializes a timer object with the specified time interval and block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1415085-tolerance?language=objc -func (t_ Timer) Tolerance() TimeInterval { - rv := objc.Call[TimeInterval](t_, objc.Sel("tolerance")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/2091888-timerwithtimeinterval?language=objc +func Timer_TimerWithTimeIntervalRepeatsBlock(interval TimeInterval, repeats bool, block func(timer Timer)) Timer { + return TimerClass.TimerWithTimeIntervalRepeatsBlock(interval, repeats, block) } -// The amount of time after the scheduled fire date that the timer may fire. [Full Topic] +// Stops the timer from ever firing again and requests its removal from its run loop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1415085-tolerance?language=objc -func (t_ Timer) SetTolerance(value TimeInterval) { - objc.Call[objc.Void](t_, objc.Sel("setTolerance:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1415405-invalidate?language=objc +func (t_ Timer) Invalidate() { + objc.Call[objc.Void](t_, objc.Sel("invalidate")) } // The timer’s time interval, in seconds. [Full Topic] @@ -240,6 +143,21 @@ func (t_ Timer) SetFireDate(value IDate) { objc.Call[objc.Void](t_, objc.Sel("setFireDate:"), value) } +// The amount of time after the scheduled fire date that the timer may fire. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1415085-tolerance?language=objc +func (t_ Timer) Tolerance() TimeInterval { + rv := objc.Call[TimeInterval](t_, objc.Sel("tolerance")) + return rv +} + +// The amount of time after the scheduled fire date that the timer may fire. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1415085-tolerance?language=objc +func (t_ Timer) SetTolerance(value TimeInterval) { + objc.Call[objc.Void](t_, objc.Sel("setTolerance:"), value) +} + // The receiver's userInfo object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1408911-userinfo?language=objc @@ -247,3 +165,11 @@ func (t_ Timer) UserInfo() objc.Object { rv := objc.Call[objc.Object](t_, objc.Sel("userInfo")) return rv } + +// A Boolean value that indicates whether the timer is currently valid. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstimer/1408249-valid?language=objc +func (t_ Timer) IsValid() bool { + rv := objc.Call[bool](t_, objc.Sel("isValid")) + return rv +} diff --git a/macos/foundation/ubiquitous_key_value_store.gen.go b/macos/foundation/ubiquitous_key_value_store.gen.go index ce6ae5b0..d5113d18 100644 --- a/macos/foundation/ubiquitous_key_value_store.gen.go +++ b/macos/foundation/ubiquitous_key_value_store.gen.go @@ -18,24 +18,24 @@ type _UbiquitousKeyValueStoreClass struct { // An interface definition for the [UbiquitousKeyValueStore] class. type IUbiquitousKeyValueStore interface { objc.IObject - SetArrayForKey(anArray []objc.IObject, aKey string) + ObjectForKey(aKey string) objc.Object SetLongLongForKey(value int64, aKey string) + SetBoolForKey(value bool, aKey string) + ArrayForKey(aKey string) []objc.Object + StringForKey(aKey string) string BoolForKey(aKey string) bool - ObjectForKey(aKey string) objc.Object - DataForKey(aKey string) []byte + SetDictionaryForKey(aDictionary map[string]objc.IObject, aKey string) + SetStringForKey(aString string, aKey string) + SetObjectForKey(anObject objc.IObject, aKey string) + SetArrayForKey(anArray []objc.IObject, aKey string) SetDoubleForKey(value float64, aKey string) - SetBoolForKey(value bool, aKey string) - LongLongForKey(aKey string) int64 + DataForKey(aKey string) []byte + DoubleForKey(aKey string) float64 SetDataForKey(aData []byte, aKey string) + DictionaryForKey(aKey string) map[string]objc.Object Synchronize() bool - SetObjectForKey(anObject objc.IObject, aKey string) - SetDictionaryForKey(aDictionary map[string]objc.IObject, aKey string) - DoubleForKey(aKey string) float64 RemoveObjectForKey(aKey string) - DictionaryForKey(aKey string) map[string]objc.Object - SetStringForKey(aString string, aKey string) - ArrayForKey(aKey string) []objc.Object - StringForKey(aKey string) string + LongLongForKey(aKey string) int64 DictionaryRepresentation() map[string]objc.Object } @@ -72,11 +72,12 @@ func (u_ UbiquitousKeyValueStore) Init() UbiquitousKeyValueStore { return rv } -// Sets an array object for the specified key in the key-value store. [Full Topic] +// Returns the object associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1417721-setarray?language=objc -func (u_ UbiquitousKeyValueStore) SetArrayForKey(anArray []objc.IObject, aKey string) { - objc.Call[objc.Void](u_, objc.Sel("setArray:forKey:"), anArray, aKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1407436-objectforkey?language=objc +func (u_ UbiquitousKeyValueStore) ObjectForKey(aKey string) objc.Object { + rv := objc.Call[objc.Object](u_, objc.Sel("objectForKey:"), aKey) + return rv } // Sets a long long value for the specified key in the key-value store. [Full Topic] @@ -86,79 +87,78 @@ func (u_ UbiquitousKeyValueStore) SetLongLongForKey(value int64, aKey string) { objc.Call[objc.Void](u_, objc.Sel("setLongLong:forKey:"), value, aKey) } -// Returns the Boolean value associated with the specified key. [Full Topic] +// Sets a Boolean value for the specified key in the key-value store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1417350-boolforkey?language=objc -func (u_ UbiquitousKeyValueStore) BoolForKey(aKey string) bool { - rv := objc.Call[bool](u_, objc.Sel("boolForKey:"), aKey) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1415054-setbool?language=objc +func (u_ UbiquitousKeyValueStore) SetBoolForKey(value bool, aKey string) { + objc.Call[objc.Void](u_, objc.Sel("setBool:forKey:"), value, aKey) } -// Returns the object associated with the specified key. [Full Topic] +// Returns the array associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1407436-objectforkey?language=objc -func (u_ UbiquitousKeyValueStore) ObjectForKey(aKey string) objc.Object { - rv := objc.Call[objc.Object](u_, objc.Sel("objectForKey:"), aKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1412191-arrayforkey?language=objc +func (u_ UbiquitousKeyValueStore) ArrayForKey(aKey string) []objc.Object { + rv := objc.Call[[]objc.Object](u_, objc.Sel("arrayForKey:"), aKey) return rv } -// Returns the data object associated with the specified key. [Full Topic] +// Returns the string associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1417800-dataforkey?language=objc -func (u_ UbiquitousKeyValueStore) DataForKey(aKey string) []byte { - rv := objc.Call[[]byte](u_, objc.Sel("dataForKey:"), aKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1418249-stringforkey?language=objc +func (u_ UbiquitousKeyValueStore) StringForKey(aKey string) string { + rv := objc.Call[string](u_, objc.Sel("stringForKey:"), aKey) return rv } -// Sets a double value for the specified key in the key-value store. [Full Topic] +// Returns the Boolean value associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1412608-setdouble?language=objc -func (u_ UbiquitousKeyValueStore) SetDoubleForKey(value float64, aKey string) { - objc.Call[objc.Void](u_, objc.Sel("setDouble:forKey:"), value, aKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1417350-boolforkey?language=objc +func (u_ UbiquitousKeyValueStore) BoolForKey(aKey string) bool { + rv := objc.Call[bool](u_, objc.Sel("boolForKey:"), aKey) + return rv } -// Sets a Boolean value for the specified key in the key-value store. [Full Topic] +// Sets a dictionary object for the specified key in the key-value store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1415054-setbool?language=objc -func (u_ UbiquitousKeyValueStore) SetBoolForKey(value bool, aKey string) { - objc.Call[objc.Void](u_, objc.Sel("setBool:forKey:"), value, aKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1417155-setdictionary?language=objc +func (u_ UbiquitousKeyValueStore) SetDictionaryForKey(aDictionary map[string]objc.IObject, aKey string) { + objc.Call[objc.Void](u_, objc.Sel("setDictionary:forKey:"), aDictionary, aKey) } -// Returns the long long value associated with the specified key. [Full Topic] +// Sets a string object for the specified key in the key-value store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1413240-longlongforkey?language=objc -func (u_ UbiquitousKeyValueStore) LongLongForKey(aKey string) int64 { - rv := objc.Call[int64](u_, objc.Sel("longLongForKey:"), aKey) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1414610-setstring?language=objc +func (u_ UbiquitousKeyValueStore) SetStringForKey(aString string, aKey string) { + objc.Call[objc.Void](u_, objc.Sel("setString:forKey:"), aString, aKey) } -// Sets a data object for the specified key in the key-value store. [Full Topic] +// Sets an object for the specified key in the key-value store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1416218-setdata?language=objc -func (u_ UbiquitousKeyValueStore) SetDataForKey(aData []byte, aKey string) { - objc.Call[objc.Void](u_, objc.Sel("setData:forKey:"), aData, aKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1416434-setobject?language=objc +func (u_ UbiquitousKeyValueStore) SetObjectForKey(anObject objc.IObject, aKey string) { + objc.Call[objc.Void](u_, objc.Sel("setObject:forKey:"), anObject, aKey) } -// Explicitly synchronizes in-memory keys and values with those stored on disk. [Full Topic] +// Sets an array object for the specified key in the key-value store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1415989-synchronize?language=objc -func (u_ UbiquitousKeyValueStore) Synchronize() bool { - rv := objc.Call[bool](u_, objc.Sel("synchronize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1417721-setarray?language=objc +func (u_ UbiquitousKeyValueStore) SetArrayForKey(anArray []objc.IObject, aKey string) { + objc.Call[objc.Void](u_, objc.Sel("setArray:forKey:"), anArray, aKey) } -// Sets an object for the specified key in the key-value store. [Full Topic] +// Sets a double value for the specified key in the key-value store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1416434-setobject?language=objc -func (u_ UbiquitousKeyValueStore) SetObjectForKey(anObject objc.IObject, aKey string) { - objc.Call[objc.Void](u_, objc.Sel("setObject:forKey:"), anObject, aKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1412608-setdouble?language=objc +func (u_ UbiquitousKeyValueStore) SetDoubleForKey(value float64, aKey string) { + objc.Call[objc.Void](u_, objc.Sel("setDouble:forKey:"), value, aKey) } -// Sets a dictionary object for the specified key in the key-value store. [Full Topic] +// Returns the data object associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1417155-setdictionary?language=objc -func (u_ UbiquitousKeyValueStore) SetDictionaryForKey(aDictionary map[string]objc.IObject, aKey string) { - objc.Call[objc.Void](u_, objc.Sel("setDictionary:forKey:"), aDictionary, aKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1417800-dataforkey?language=objc +func (u_ UbiquitousKeyValueStore) DataForKey(aKey string) []byte { + rv := objc.Call[[]byte](u_, objc.Sel("dataForKey:"), aKey) + return rv } // Returns the double value associated with the specified key. [Full Topic] @@ -169,11 +169,11 @@ func (u_ UbiquitousKeyValueStore) DoubleForKey(aKey string) float64 { return rv } -// Removes the value associated with the specified key from the key-value store. [Full Topic] +// Sets a data object for the specified key in the key-value store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1410916-removeobjectforkey?language=objc -func (u_ UbiquitousKeyValueStore) RemoveObjectForKey(aKey string) { - objc.Call[objc.Void](u_, objc.Sel("removeObjectForKey:"), aKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1416218-setdata?language=objc +func (u_ UbiquitousKeyValueStore) SetDataForKey(aData []byte, aKey string) { + objc.Call[objc.Void](u_, objc.Sel("setData:forKey:"), aData, aKey) } // Returns the dictionary object associated with the specified key. [Full Topic] @@ -184,34 +184,26 @@ func (u_ UbiquitousKeyValueStore) DictionaryForKey(aKey string) map[string]objc. return rv } -// Sets a string object for the specified key in the key-value store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1414610-setstring?language=objc -func (u_ UbiquitousKeyValueStore) SetStringForKey(aString string, aKey string) { - objc.Call[objc.Void](u_, objc.Sel("setString:forKey:"), aString, aKey) -} - -// Returns the array associated with the specified key. [Full Topic] +// Explicitly synchronizes in-memory keys and values with those stored on disk. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1412191-arrayforkey?language=objc -func (u_ UbiquitousKeyValueStore) ArrayForKey(aKey string) []objc.Object { - rv := objc.Call[[]objc.Object](u_, objc.Sel("arrayForKey:"), aKey) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1415989-synchronize?language=objc +func (u_ UbiquitousKeyValueStore) Synchronize() bool { + rv := objc.Call[bool](u_, objc.Sel("synchronize")) return rv } -// Returns the string associated with the specified key. [Full Topic] +// Removes the value associated with the specified key from the key-value store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1418249-stringforkey?language=objc -func (u_ UbiquitousKeyValueStore) StringForKey(aKey string) string { - rv := objc.Call[string](u_, objc.Sel("stringForKey:"), aKey) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1410916-removeobjectforkey?language=objc +func (u_ UbiquitousKeyValueStore) RemoveObjectForKey(aKey string) { + objc.Call[objc.Void](u_, objc.Sel("removeObjectForKey:"), aKey) } -// A dictionary containing all of the key-value pairs in the key-value store. [Full Topic] +// Returns the long long value associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1411129-dictionaryrepresentation?language=objc -func (u_ UbiquitousKeyValueStore) DictionaryRepresentation() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](u_, objc.Sel("dictionaryRepresentation")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1413240-longlongforkey?language=objc +func (u_ UbiquitousKeyValueStore) LongLongForKey(aKey string) int64 { + rv := objc.Call[int64](u_, objc.Sel("longLongForKey:"), aKey) return rv } @@ -229,3 +221,11 @@ func (uc _UbiquitousKeyValueStoreClass) DefaultStore() UbiquitousKeyValueStore { func UbiquitousKeyValueStore_DefaultStore() UbiquitousKeyValueStore { return UbiquitousKeyValueStoreClass.DefaultStore() } + +// A dictionary containing all of the key-value pairs in the key-value store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore/1411129-dictionaryrepresentation?language=objc +func (u_ UbiquitousKeyValueStore) DictionaryRepresentation() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](u_, objc.Sel("dictionaryRepresentation")) + return rv +} diff --git a/macos/foundation/undo_manager.gen.go b/macos/foundation/undo_manager.gen.go index dcfd674a..565202ba 100644 --- a/macos/foundation/undo_manager.gen.go +++ b/macos/foundation/undo_manager.gen.go @@ -18,40 +18,39 @@ type _UndoManagerClass struct { // An interface definition for the [UndoManager] class. type IUndoManager interface { objc.IObject - DisableUndoRegistration() + SetActionName(actionName string) + UndoNestedGroup() + RegisterUndoWithTargetHandler(target objc.IObject, undoHandler func(target objc.Object)) + RedoMenuTitleForUndoActionName(actionName string) string + BeginUndoGrouping() + EnableUndoRegistration() + RemoveAllActionsWithTarget(target objc.IObject) + EndUndoGrouping() + SetActionIsDiscardable(discardable bool) UndoMenuTitleForUndoActionName(actionName string) string - RegisterUndoWithTargetSelectorObject(target objc.IObject, selector objc.Selector, anObject objc.IObject) Undo() - EndUndoGrouping() + DisableUndoRegistration() + RemoveAllActions() PrepareWithInvocationTarget(target objc.IObject) objc.Object - SetActionIsDiscardable(discardable bool) Redo() - RemoveAllActionsWithTarget(target objc.IObject) - RemoveAllActions() - RedoMenuTitleForUndoActionName(actionName string) string - EnableUndoRegistration() - UndoNestedGroup() - BeginUndoGrouping() - SetActionName(actionName string) - RegisterUndoWithTargetHandler(target objc.IObject, undoHandler func(target objc.Object)) - IsRedoing() bool + LevelsOfUndo() uint + SetLevelsOfUndo(value uint) GroupsByEvent() bool SetGroupsByEvent(value bool) - RedoActionName() string + CanUndo() bool RedoActionIsDiscardable() bool - UndoActionIsDiscardable() bool - RedoMenuItemTitle() string - LevelsOfUndo() uint - SetLevelsOfUndo(value uint) - GroupingLevel() int - CanRedo() bool + RedoActionName() string UndoMenuItemTitle() string IsUndoRegistrationEnabled() bool + UndoActionName() string + CanRedo() bool + RedoMenuItemTitle() string RunLoopModes() []RunLoopMode SetRunLoopModes(value []RunLoopMode) - CanUndo() bool - UndoActionName() string IsUndoing() bool + UndoActionIsDiscardable() bool + GroupingLevel() int + IsRedoing() bool } // A general-purpose recorder of operations that enables undo and redo. [Full Topic] @@ -87,33 +86,54 @@ func (u_ UndoManager) Init() UndoManager { return rv } -// Disables the recording of undo operations, whether by [foundation/nsundomanager/registerundowithtarget] or by invocation-based undo. [Full Topic] +// Sets the name of the action associated with the Undo or Redo command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412239-disableundoregistration?language=objc -func (u_ UndoManager) DisableUndoRegistration() { - objc.Call[objc.Void](u_, objc.Sel("disableUndoRegistration")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412915-setactionname?language=objc +func (u_ UndoManager) SetActionName(actionName string) { + objc.Call[objc.Void](u_, objc.Sel("setActionName:"), actionName) } -// Returns the complete, localized title of the Undo menu command for the action identified by the given name. [Full Topic] +// Performs the undo operations in the last undo group (whether top-level or nested), recording the operations on the redo stack as a single group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1413122-undomenutitleforundoactionname?language=objc -func (u_ UndoManager) UndoMenuTitleForUndoActionName(actionName string) string { - rv := objc.Call[string](u_, objc.Sel("undoMenuTitleForUndoActionName:"), actionName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1410826-undonestedgroup?language=objc +func (u_ UndoManager) UndoNestedGroup() { + objc.Call[objc.Void](u_, objc.Sel("undoNestedGroup")) +} + +// Records a single undo operation for a given target so that when an undo is performed, it executes the specified block. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1437863-registerundowithtarget?language=objc +func (u_ UndoManager) RegisterUndoWithTargetHandler(target objc.IObject, undoHandler func(target objc.Object)) { + objc.Call[objc.Void](u_, objc.Sel("registerUndoWithTarget:handler:"), target, undoHandler) +} + +// Returns the complete, localized title of the Redo menu command for the action identified by the given name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1407438-redomenutitleforundoactionname?language=objc +func (u_ UndoManager) RedoMenuTitleForUndoActionName(actionName string) string { + rv := objc.Call[string](u_, objc.Sel("redoMenuTitleForUndoActionName:"), actionName) return rv } -// Registers the selector of the specified target to implement a single undo operation that the target receives. [Full Topic] +// Marks the beginning of an undo group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1414001-registerundowithtarget?language=objc -func (u_ UndoManager) RegisterUndoWithTargetSelectorObject(target objc.IObject, selector objc.Selector, anObject objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("registerUndoWithTarget:selector:object:"), target, selector, anObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409894-beginundogrouping?language=objc +func (u_ UndoManager) BeginUndoGrouping() { + objc.Call[objc.Void](u_, objc.Sel("beginUndoGrouping")) } -// Closes the top-level undo group if necessary and invokes [foundation/nsundomanager/undonestedgroup]. [Full Topic] +// Enables the recording of undo operations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412189-undo?language=objc -func (u_ UndoManager) Undo() { - objc.Call[objc.Void](u_, objc.Sel("undo")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1408957-enableundoregistration?language=objc +func (u_ UndoManager) EnableUndoRegistration() { + objc.Call[objc.Void](u_, objc.Sel("enableUndoRegistration")) +} + +// Clears the undo and redo stacks of all operations involving the specified target as the recipient of the undo message. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409896-removeallactionswithtarget?language=objc +func (u_ UndoManager) RemoveAllActionsWithTarget(target objc.IObject) { + objc.Call[objc.Void](u_, objc.Sel("removeAllActionsWithTarget:"), target) } // Marks the end of an undo group. [Full Topic] @@ -123,14 +143,6 @@ func (u_ UndoManager) EndUndoGrouping() { objc.Call[objc.Void](u_, objc.Sel("endUndoGrouping")) } -// Prepares the undo manager for invocation-based undo with the given target as the subject of the next undo operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409564-preparewithinvocationtarget?language=objc -func (u_ UndoManager) PrepareWithInvocationTarget(target objc.IObject) objc.Object { - rv := objc.Call[objc.Object](u_, objc.Sel("prepareWithInvocationTarget:"), target) - return rv -} - // Sets whether the next undo or redo action is discardable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412159-setactionisdiscardable?language=objc @@ -138,18 +150,26 @@ func (u_ UndoManager) SetActionIsDiscardable(discardable bool) { objc.Call[objc.Void](u_, objc.Sel("setActionIsDiscardable:"), discardable) } -// Performs the operations in the last group on the redo stack, if there are any, recording them on the undo stack as a single group. [Full Topic] +// Returns the complete, localized title of the Undo menu command for the action identified by the given name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1417030-redo?language=objc -func (u_ UndoManager) Redo() { - objc.Call[objc.Void](u_, objc.Sel("redo")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1413122-undomenutitleforundoactionname?language=objc +func (u_ UndoManager) UndoMenuTitleForUndoActionName(actionName string) string { + rv := objc.Call[string](u_, objc.Sel("undoMenuTitleForUndoActionName:"), actionName) + return rv } -// Clears the undo and redo stacks of all operations involving the specified target as the recipient of the undo message. [Full Topic] +// Closes the top-level undo group if necessary and invokes undoNestedGroup. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409896-removeallactionswithtarget?language=objc -func (u_ UndoManager) RemoveAllActionsWithTarget(target objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("removeAllActionsWithTarget:"), target) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412189-undo?language=objc +func (u_ UndoManager) Undo() { + objc.Call[objc.Void](u_, objc.Sel("undo")) +} + +// Disables the recording of undo operations, whether by registerUndoWithTarget:handler: or by invocation-based undo. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412239-disableundoregistration?language=objc +func (u_ UndoManager) DisableUndoRegistration() { + objc.Call[objc.Void](u_, objc.Sel("disableUndoRegistration")) } // Clears the undo and redo stacks and re-enables the receiver. [Full Topic] @@ -159,55 +179,34 @@ func (u_ UndoManager) RemoveAllActions() { objc.Call[objc.Void](u_, objc.Sel("removeAllActions")) } -// Returns the complete, localized title of the Redo menu command for the action identified by the given name. [Full Topic] +// Prepares the undo manager for invocation-based undo with the given target as the subject of the next undo operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1407438-redomenutitleforundoactionname?language=objc -func (u_ UndoManager) RedoMenuTitleForUndoActionName(actionName string) string { - rv := objc.Call[string](u_, objc.Sel("redoMenuTitleForUndoActionName:"), actionName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409564-preparewithinvocationtarget?language=objc +func (u_ UndoManager) PrepareWithInvocationTarget(target objc.IObject) objc.Object { + rv := objc.Call[objc.Object](u_, objc.Sel("prepareWithInvocationTarget:"), target) return rv } -// Enables the recording of undo operations. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1408957-enableundoregistration?language=objc -func (u_ UndoManager) EnableUndoRegistration() { - objc.Call[objc.Void](u_, objc.Sel("enableUndoRegistration")) -} - -// Performs the undo operations in the last undo group (whether top-level or nested), recording the operations on the redo stack as a single group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1410826-undonestedgroup?language=objc -func (u_ UndoManager) UndoNestedGroup() { - objc.Call[objc.Void](u_, objc.Sel("undoNestedGroup")) -} - -// Marks the beginning of an undo group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409894-beginundogrouping?language=objc -func (u_ UndoManager) BeginUndoGrouping() { - objc.Call[objc.Void](u_, objc.Sel("beginUndoGrouping")) -} - -// Sets the name of the action associated with the Undo or Redo command. [Full Topic] +// Performs the operations in the last group on the redo stack, if there are any, recording them on the undo stack as a single group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412915-setactionname?language=objc -func (u_ UndoManager) SetActionName(actionName string) { - objc.Call[objc.Void](u_, objc.Sel("setActionName:"), actionName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1417030-redo?language=objc +func (u_ UndoManager) Redo() { + objc.Call[objc.Void](u_, objc.Sel("redo")) } -// Records a single undo operation for a given target so that when an undo is performed, it executes the specified block. [Full Topic] +// The maximum number of top-level undo groups the receiver holds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1437863-registerundowithtarget?language=objc -func (u_ UndoManager) RegisterUndoWithTargetHandler(target objc.IObject, undoHandler func(target objc.Object)) { - objc.Call[objc.Void](u_, objc.Sel("registerUndoWithTarget:handler:"), target, undoHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409753-levelsofundo?language=objc +func (u_ UndoManager) LevelsOfUndo() uint { + rv := objc.Call[uint](u_, objc.Sel("levelsOfUndo")) + return rv } -// Returns a Boolean value that indicates whether the receiver is in the process of performing its [foundation/nsundomanager/redo] method. [Full Topic] +// The maximum number of top-level undo groups the receiver holds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1411654-redoing?language=objc -func (u_ UndoManager) IsRedoing() bool { - rv := objc.Call[bool](u_, objc.Sel("isRedoing")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409753-levelsofundo?language=objc +func (u_ UndoManager) SetLevelsOfUndo(value uint) { + objc.Call[objc.Void](u_, objc.Sel("setLevelsOfUndo:"), value) } // A Boolean value that indicates whether the receiver automatically creates undo groups around each pass of the run loop. [Full Topic] @@ -225,11 +224,11 @@ func (u_ UndoManager) SetGroupsByEvent(value bool) { objc.Call[objc.Void](u_, objc.Sel("setGroupsByEvent:"), value) } -// The name identifying the redo action. [Full Topic] +// A Boolean value that indicates whether the receiver has any actions to undo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1417487-redoactionname?language=objc -func (u_ UndoManager) RedoActionName() string { - rv := objc.Call[string](u_, objc.Sel("redoActionName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412394-canundo?language=objc +func (u_ UndoManager) CanUndo() bool { + rv := objc.Call[bool](u_, objc.Sel("canUndo")) return rv } @@ -241,42 +240,35 @@ func (u_ UndoManager) RedoActionIsDiscardable() bool { return rv } -// Boolean value that indicates whether the next undo action is discardable. [Full Topic] +// The name identifying the redo action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1415261-undoactionisdiscardable?language=objc -func (u_ UndoManager) UndoActionIsDiscardable() bool { - rv := objc.Call[bool](u_, objc.Sel("undoActionIsDiscardable")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1417487-redoactionname?language=objc +func (u_ UndoManager) RedoActionName() string { + rv := objc.Call[string](u_, objc.Sel("redoActionName")) return rv } -// The complete title of the Redo menu command, for example, “Redo Paste.” [Full Topic] +// The complete title of the Undo menu command, for example, “Undo Paste.” [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409938-redomenuitemtitle?language=objc -func (u_ UndoManager) RedoMenuItemTitle() string { - rv := objc.Call[string](u_, objc.Sel("redoMenuItemTitle")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412953-undomenuitemtitle?language=objc +func (u_ UndoManager) UndoMenuItemTitle() string { + rv := objc.Call[string](u_, objc.Sel("undoMenuItemTitle")) return rv } -// The maximum number of top-level undo groups the receiver holds. [Full Topic] +// A Boolean value that indicates whether the recording of undo operations is enabled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409753-levelsofundo?language=objc -func (u_ UndoManager) LevelsOfUndo() uint { - rv := objc.Call[uint](u_, objc.Sel("levelsOfUndo")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1415464-undoregistrationenabled?language=objc +func (u_ UndoManager) IsUndoRegistrationEnabled() bool { + rv := objc.Call[bool](u_, objc.Sel("isUndoRegistrationEnabled")) return rv } -// The maximum number of top-level undo groups the receiver holds. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409753-levelsofundo?language=objc -func (u_ UndoManager) SetLevelsOfUndo(value uint) { - objc.Call[objc.Void](u_, objc.Sel("setLevelsOfUndo:"), value) -} - -// The number of nested undo groups (or redo groups, if Redo was invoked last) in the current event loop. [Full Topic] +// The name identifying the undo action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409006-groupinglevel?language=objc -func (u_ UndoManager) GroupingLevel() int { - rv := objc.Call[int](u_, objc.Sel("groupingLevel")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1415127-undoactionname?language=objc +func (u_ UndoManager) UndoActionName() string { + rv := objc.Call[string](u_, objc.Sel("undoActionName")) return rv } @@ -288,19 +280,11 @@ func (u_ UndoManager) CanRedo() bool { return rv } -// The complete title of the Undo menu command, for example, “Undo Paste.” [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412953-undomenuitemtitle?language=objc -func (u_ UndoManager) UndoMenuItemTitle() string { - rv := objc.Call[string](u_, objc.Sel("undoMenuItemTitle")) - return rv -} - -// A Boolean value that indicates whether the recording of undo operations is enabled. [Full Topic] +// The complete title of the Redo menu command, for example, “Redo Paste.” [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1415464-undoregistrationenabled?language=objc -func (u_ UndoManager) IsUndoRegistrationEnabled() bool { - rv := objc.Call[bool](u_, objc.Sel("isUndoRegistrationEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409938-redomenuitemtitle?language=objc +func (u_ UndoManager) RedoMenuItemTitle() string { + rv := objc.Call[string](u_, objc.Sel("redoMenuItemTitle")) return rv } @@ -319,26 +303,34 @@ func (u_ UndoManager) SetRunLoopModes(value []RunLoopMode) { objc.Call[objc.Void](u_, objc.Sel("setRunLoopModes:"), value) } -// A Boolean value that indicates whether the receiver has any actions to undo. [Full Topic] +// Returns a Boolean value that indicates whether the receiver is in the process of performing its undo or undoNestedGroup method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1412394-canundo?language=objc -func (u_ UndoManager) CanUndo() bool { - rv := objc.Call[bool](u_, objc.Sel("canUndo")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1407345-undoing?language=objc +func (u_ UndoManager) IsUndoing() bool { + rv := objc.Call[bool](u_, objc.Sel("isUndoing")) return rv } -// The name identifying the undo action. [Full Topic] +// Boolean value that indicates whether the next undo action is discardable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1415127-undoactionname?language=objc -func (u_ UndoManager) UndoActionName() string { - rv := objc.Call[string](u_, objc.Sel("undoActionName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1415261-undoactionisdiscardable?language=objc +func (u_ UndoManager) UndoActionIsDiscardable() bool { + rv := objc.Call[bool](u_, objc.Sel("undoActionIsDiscardable")) return rv } -// Returns a Boolean value that indicates whether the receiver is in the process of performing its [foundation/nsundomanager/undo] or [foundation/nsundomanager/undonestedgroup] method. [Full Topic] +// The number of nested undo groups (or redo groups, if Redo was invoked last) in the current event loop. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1407345-undoing?language=objc -func (u_ UndoManager) IsUndoing() bool { - rv := objc.Call[bool](u_, objc.Sel("isUndoing")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1409006-groupinglevel?language=objc +func (u_ UndoManager) GroupingLevel() int { + rv := objc.Call[int](u_, objc.Sel("groupingLevel")) + return rv +} + +// Returns a Boolean value that indicates whether the receiver is in the process of performing its redo method. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsundomanager/1411654-redoing?language=objc +func (u_ UndoManager) IsRedoing() bool { + rv := objc.Call[bool](u_, objc.Sel("isRedoing")) return rv } diff --git a/macos/foundation/unit_acceleration.gen.go b/macos/foundation/unit_acceleration.gen.go index e2b5ad76..08e21420 100644 --- a/macos/foundation/unit_acceleration.gen.go +++ b/macos/foundation/unit_acceleration.gen.go @@ -53,6 +53,18 @@ func (u_ UnitAcceleration) Init() UnitAcceleration { return rv } +func (uc _UnitAccelerationClass) BaseUnit() UnitAcceleration { + rv := objc.Call[UnitAcceleration](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitAcceleration_BaseUnit() UnitAcceleration { + return UnitAccelerationClass.BaseUnit() +} + func (u_ UnitAcceleration) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitAcceleration { rv := objc.Call[UnitAcceleration](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitAccelerationWithSymbolConverter(symbol string, converter IUnitConver return instance } -func (uc _UnitAccelerationClass) BaseUnit() UnitAcceleration { - rv := objc.Call[UnitAcceleration](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitAcceleration_BaseUnit() UnitAcceleration { - return UnitAccelerationClass.BaseUnit() -} - func (u_ UnitAcceleration) InitWithSymbol(symbol string) UnitAcceleration { rv := objc.Call[UnitAcceleration](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,21 +93,6 @@ func NewUnitAccelerationWithSymbol(symbol string) UnitAcceleration { return instance } -// Returns the gravity unit of acceleration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitacceleration/1690681-gravity?language=objc -func (uc _UnitAccelerationClass) Gravity() UnitAcceleration { - rv := objc.Call[UnitAcceleration](uc, objc.Sel("gravity")) - return rv -} - -// Returns the gravity unit of acceleration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitacceleration/1690681-gravity?language=objc -func UnitAcceleration_Gravity() UnitAcceleration { - return UnitAccelerationClass.Gravity() -} - // Returns the meter per second squared unit of acceleration. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitacceleration/1856015-meterspersecondsquared?language=objc @@ -122,3 +107,18 @@ func (uc _UnitAccelerationClass) MetersPerSecondSquared() UnitAcceleration { func UnitAcceleration_MetersPerSecondSquared() UnitAcceleration { return UnitAccelerationClass.MetersPerSecondSquared() } + +// Returns the gravity unit of acceleration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitacceleration/1690681-gravity?language=objc +func (uc _UnitAccelerationClass) Gravity() UnitAcceleration { + rv := objc.Call[UnitAcceleration](uc, objc.Sel("gravity")) + return rv +} + +// Returns the gravity unit of acceleration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitacceleration/1690681-gravity?language=objc +func UnitAcceleration_Gravity() UnitAcceleration { + return UnitAccelerationClass.Gravity() +} diff --git a/macos/foundation/unit_angle.gen.go b/macos/foundation/unit_angle.gen.go index 9183e4d6..32e2c556 100644 --- a/macos/foundation/unit_angle.gen.go +++ b/macos/foundation/unit_angle.gen.go @@ -53,6 +53,18 @@ func (u_ UnitAngle) Init() UnitAngle { return rv } +func (uc _UnitAngleClass) BaseUnit() UnitAngle { + rv := objc.Call[UnitAngle](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitAngle_BaseUnit() UnitAngle { + return UnitAngleClass.BaseUnit() +} + func (u_ UnitAngle) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitAngle { rv := objc.Call[UnitAngle](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitAngleWithSymbolConverter(symbol string, converter IUnitConverter) Un return instance } -func (uc _UnitAngleClass) BaseUnit() UnitAngle { - rv := objc.Call[UnitAngle](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitAngle_BaseUnit() UnitAngle { - return UnitAngleClass.BaseUnit() -} - func (u_ UnitAngle) InitWithSymbol(symbol string) UnitAngle { rv := objc.Call[UnitAngle](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,6 +93,36 @@ func NewUnitAngleWithSymbol(symbol string) UnitAngle { return instance } +// The revolutions unit of angle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitangle/1855992-revolutions?language=objc +func (uc _UnitAngleClass) Revolutions() UnitAngle { + rv := objc.Call[UnitAngle](uc, objc.Sel("revolutions")) + return rv +} + +// The revolutions unit of angle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitangle/1855992-revolutions?language=objc +func UnitAngle_Revolutions() UnitAngle { + return UnitAngleClass.Revolutions() +} + +// The arc seconds unit of angle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitangle/1856114-arcseconds?language=objc +func (uc _UnitAngleClass) ArcSeconds() UnitAngle { + rv := objc.Call[UnitAngle](uc, objc.Sel("arcSeconds")) + return rv +} + +// The arc seconds unit of angle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitangle/1856114-arcseconds?language=objc +func UnitAngle_ArcSeconds() UnitAngle { + return UnitAngleClass.ArcSeconds() +} + // The arc minutes unit of angle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitangle/1856069-arcminutes?language=objc @@ -123,21 +153,6 @@ func UnitAngle_Gradians() UnitAngle { return UnitAngleClass.Gradians() } -// The revolutions unit of angle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitangle/1855992-revolutions?language=objc -func (uc _UnitAngleClass) Revolutions() UnitAngle { - rv := objc.Call[UnitAngle](uc, objc.Sel("revolutions")) - return rv -} - -// The revolutions unit of angle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitangle/1855992-revolutions?language=objc -func UnitAngle_Revolutions() UnitAngle { - return UnitAngleClass.Revolutions() -} - // The radians unit of angle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitangle/1856062-radians?language=objc @@ -167,18 +182,3 @@ func (uc _UnitAngleClass) Degrees() UnitAngle { func UnitAngle_Degrees() UnitAngle { return UnitAngleClass.Degrees() } - -// The arc seconds unit of angle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitangle/1856114-arcseconds?language=objc -func (uc _UnitAngleClass) ArcSeconds() UnitAngle { - rv := objc.Call[UnitAngle](uc, objc.Sel("arcSeconds")) - return rv -} - -// The arc seconds unit of angle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitangle/1856114-arcseconds?language=objc -func UnitAngle_ArcSeconds() UnitAngle { - return UnitAngleClass.ArcSeconds() -} diff --git a/macos/foundation/unit_area.gen.go b/macos/foundation/unit_area.gen.go index 836cb0a1..04ed9676 100644 --- a/macos/foundation/unit_area.gen.go +++ b/macos/foundation/unit_area.gen.go @@ -53,6 +53,18 @@ func (u_ UnitArea) Init() UnitArea { return rv } +func (uc _UnitAreaClass) BaseUnit() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitArea_BaseUnit() UnitArea { + return UnitAreaClass.BaseUnit() +} + func (u_ UnitArea) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitArea { rv := objc.Call[UnitArea](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitAreaWithSymbolConverter(symbol string, converter IUnitConverter) Uni return instance } -func (uc _UnitAreaClass) BaseUnit() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitArea_BaseUnit() UnitArea { - return UnitAreaClass.BaseUnit() -} - func (u_ UnitArea) InitWithSymbol(symbol string) UnitArea { rv := objc.Call[UnitArea](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,64 +93,64 @@ func NewUnitAreaWithSymbol(symbol string) UnitArea { return instance } -// The square megameters unit of area. [Full Topic] +// The ares unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856008-squaremegameters?language=objc -func (uc _UnitAreaClass) SquareMegameters() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("squareMegameters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856064-ares?language=objc +func (uc _UnitAreaClass) Ares() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("ares")) return rv } -// The square megameters unit of area. [Full Topic] +// The ares unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856008-squaremegameters?language=objc -func UnitArea_SquareMegameters() UnitArea { - return UnitAreaClass.SquareMegameters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856064-ares?language=objc +func UnitArea_Ares() UnitArea { + return UnitAreaClass.Ares() } -// The square nanometers unit of area. [Full Topic] +// The square inches unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856072-squarenanometers?language=objc -func (uc _UnitAreaClass) SquareNanometers() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("squareNanometers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856067-squareinches?language=objc +func (uc _UnitAreaClass) SquareInches() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareInches")) return rv } -// The square nanometers unit of area. [Full Topic] +// The square inches unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856072-squarenanometers?language=objc -func UnitArea_SquareNanometers() UnitArea { - return UnitAreaClass.SquareNanometers() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856067-squareinches?language=objc +func UnitArea_SquareInches() UnitArea { + return UnitAreaClass.SquareInches() } -// The square centimeters unit of area. [Full Topic] +// The square feet unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856030-squarecentimeters?language=objc -func (uc _UnitAreaClass) SquareCentimeters() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("squareCentimeters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856014-squarefeet?language=objc +func (uc _UnitAreaClass) SquareFeet() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareFeet")) return rv } -// The square centimeters unit of area. [Full Topic] +// The square feet unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856030-squarecentimeters?language=objc -func UnitArea_SquareCentimeters() UnitArea { - return UnitAreaClass.SquareCentimeters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856014-squarefeet?language=objc +func UnitArea_SquareFeet() UnitArea { + return UnitAreaClass.SquareFeet() } -// The hectares unit of area. [Full Topic] +// The square millimeters unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856066-hectares?language=objc -func (uc _UnitAreaClass) Hectares() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("hectares")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856039-squaremillimeters?language=objc +func (uc _UnitAreaClass) SquareMillimeters() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareMillimeters")) return rv } -// The hectares unit of area. [Full Topic] +// The square millimeters unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856066-hectares?language=objc -func UnitArea_Hectares() UnitArea { - return UnitAreaClass.Hectares() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856039-squaremillimeters?language=objc +func UnitArea_SquareMillimeters() UnitArea { + return UnitAreaClass.SquareMillimeters() } // The square kilometers unit of area. [Full Topic] @@ -168,49 +168,34 @@ func UnitArea_SquareKilometers() UnitArea { return UnitAreaClass.SquareKilometers() } -// The ares unit of area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856064-ares?language=objc -func (uc _UnitAreaClass) Ares() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("ares")) - return rv -} - -// The ares unit of area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856064-ares?language=objc -func UnitArea_Ares() UnitArea { - return UnitAreaClass.Ares() -} - -// The acres unit of area. [Full Topic] +// The hectares unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856099-acres?language=objc -func (uc _UnitAreaClass) Acres() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("acres")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856066-hectares?language=objc +func (uc _UnitAreaClass) Hectares() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("hectares")) return rv } -// The acres unit of area. [Full Topic] +// The hectares unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856099-acres?language=objc -func UnitArea_Acres() UnitArea { - return UnitAreaClass.Acres() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856066-hectares?language=objc +func UnitArea_Hectares() UnitArea { + return UnitAreaClass.Hectares() } -// The square micrometers unit of area. [Full Topic] +// The square miles unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856041-squaremicrometers?language=objc -func (uc _UnitAreaClass) SquareMicrometers() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("squareMicrometers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856097-squaremiles?language=objc +func (uc _UnitAreaClass) SquareMiles() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareMiles")) return rv } -// The square micrometers unit of area. [Full Topic] +// The square miles unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856041-squaremicrometers?language=objc -func UnitArea_SquareMicrometers() UnitArea { - return UnitAreaClass.SquareMicrometers() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856097-squaremiles?language=objc +func UnitArea_SquareMiles() UnitArea { + return UnitAreaClass.SquareMiles() } // The square yards unit of area. [Full Topic] @@ -228,49 +213,34 @@ func UnitArea_SquareYards() UnitArea { return UnitAreaClass.SquareYards() } -// The square feet unit of area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856014-squarefeet?language=objc -func (uc _UnitAreaClass) SquareFeet() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("squareFeet")) - return rv -} - -// The square feet unit of area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856014-squarefeet?language=objc -func UnitArea_SquareFeet() UnitArea { - return UnitAreaClass.SquareFeet() -} - -// The square millimeters unit of area. [Full Topic] +// The square nanometers unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856039-squaremillimeters?language=objc -func (uc _UnitAreaClass) SquareMillimeters() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("squareMillimeters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856072-squarenanometers?language=objc +func (uc _UnitAreaClass) SquareNanometers() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareNanometers")) return rv } -// The square millimeters unit of area. [Full Topic] +// The square nanometers unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856039-squaremillimeters?language=objc -func UnitArea_SquareMillimeters() UnitArea { - return UnitAreaClass.SquareMillimeters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856072-squarenanometers?language=objc +func UnitArea_SquareNanometers() UnitArea { + return UnitAreaClass.SquareNanometers() } -// The square inches unit of area. [Full Topic] +// The square megameters unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856067-squareinches?language=objc -func (uc _UnitAreaClass) SquareInches() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("squareInches")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856008-squaremegameters?language=objc +func (uc _UnitAreaClass) SquareMegameters() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareMegameters")) return rv } -// The square inches unit of area. [Full Topic] +// The square megameters unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856067-squareinches?language=objc -func UnitArea_SquareInches() UnitArea { - return UnitAreaClass.SquareInches() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856008-squaremegameters?language=objc +func UnitArea_SquareMegameters() UnitArea { + return UnitAreaClass.SquareMegameters() } // The square meters unit of area. [Full Topic] @@ -288,17 +258,47 @@ func UnitArea_SquareMeters() UnitArea { return UnitAreaClass.SquareMeters() } -// The square miles unit of area. [Full Topic] +// The square centimeters unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856097-squaremiles?language=objc -func (uc _UnitAreaClass) SquareMiles() UnitArea { - rv := objc.Call[UnitArea](uc, objc.Sel("squareMiles")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856030-squarecentimeters?language=objc +func (uc _UnitAreaClass) SquareCentimeters() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareCentimeters")) return rv } -// The square miles unit of area. [Full Topic] +// The square centimeters unit of area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856097-squaremiles?language=objc -func UnitArea_SquareMiles() UnitArea { - return UnitAreaClass.SquareMiles() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856030-squarecentimeters?language=objc +func UnitArea_SquareCentimeters() UnitArea { + return UnitAreaClass.SquareCentimeters() +} + +// The square micrometers unit of area. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856041-squaremicrometers?language=objc +func (uc _UnitAreaClass) SquareMicrometers() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareMicrometers")) + return rv +} + +// The square micrometers unit of area. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856041-squaremicrometers?language=objc +func UnitArea_SquareMicrometers() UnitArea { + return UnitAreaClass.SquareMicrometers() +} + +// The acres unit of area. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856099-acres?language=objc +func (uc _UnitAreaClass) Acres() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("acres")) + return rv +} + +// The acres unit of area. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856099-acres?language=objc +func UnitArea_Acres() UnitArea { + return UnitAreaClass.Acres() } diff --git a/macos/foundation/unit_concentration_mass.gen.go b/macos/foundation/unit_concentration_mass.gen.go index 4e9a315b..2e90d7bd 100644 --- a/macos/foundation/unit_concentration_mass.gen.go +++ b/macos/foundation/unit_concentration_mass.gen.go @@ -53,6 +53,18 @@ func (u_ UnitConcentrationMass) Init() UnitConcentrationMass { return rv } +func (uc _UnitConcentrationMassClass) BaseUnit() UnitConcentrationMass { + rv := objc.Call[UnitConcentrationMass](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitConcentrationMass_BaseUnit() UnitConcentrationMass { + return UnitConcentrationMassClass.BaseUnit() +} + func (u_ UnitConcentrationMass) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitConcentrationMass { rv := objc.Call[UnitConcentrationMass](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitConcentrationMassWithSymbolConverter(symbol string, converter IUnitC return instance } -func (uc _UnitConcentrationMassClass) BaseUnit() UnitConcentrationMass { - rv := objc.Call[UnitConcentrationMass](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitConcentrationMass_BaseUnit() UnitConcentrationMass { - return UnitConcentrationMassClass.BaseUnit() -} - func (u_ UnitConcentrationMass) InitWithSymbol(symbol string) UnitConcentrationMass { rv := objc.Call[UnitConcentrationMass](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -108,21 +108,6 @@ func UnitConcentrationMass_MillimolesPerLiterWithGramsPerMole(gramsPerMole float return UnitConcentrationMassClass.MillimolesPerLiterWithGramsPerMole(gramsPerMole) } -// The milligrams per deciliter unit of concentration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconcentrationmass/1856024-milligramsperdeciliter?language=objc -func (uc _UnitConcentrationMassClass) MilligramsPerDeciliter() UnitConcentrationMass { - rv := objc.Call[UnitConcentrationMass](uc, objc.Sel("milligramsPerDeciliter")) - return rv -} - -// The milligrams per deciliter unit of concentration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconcentrationmass/1856024-milligramsperdeciliter?language=objc -func UnitConcentrationMass_MilligramsPerDeciliter() UnitConcentrationMass { - return UnitConcentrationMassClass.MilligramsPerDeciliter() -} - // The grams per liter unit of concentration. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconcentrationmass/1856019-gramsperliter?language=objc @@ -137,3 +122,18 @@ func (uc _UnitConcentrationMassClass) GramsPerLiter() UnitConcentrationMass { func UnitConcentrationMass_GramsPerLiter() UnitConcentrationMass { return UnitConcentrationMassClass.GramsPerLiter() } + +// The milligrams per deciliter unit of concentration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconcentrationmass/1856024-milligramsperdeciliter?language=objc +func (uc _UnitConcentrationMassClass) MilligramsPerDeciliter() UnitConcentrationMass { + rv := objc.Call[UnitConcentrationMass](uc, objc.Sel("milligramsPerDeciliter")) + return rv +} + +// The milligrams per deciliter unit of concentration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconcentrationmass/1856024-milligramsperdeciliter?language=objc +func UnitConcentrationMass_MilligramsPerDeciliter() UnitConcentrationMass { + return UnitConcentrationMassClass.MilligramsPerDeciliter() +} diff --git a/macos/foundation/unit_converter.gen.go b/macos/foundation/unit_converter.gen.go index 4c568d1e..5cf10f55 100644 --- a/macos/foundation/unit_converter.gen.go +++ b/macos/foundation/unit_converter.gen.go @@ -18,8 +18,8 @@ type _UnitConverterClass struct { // An interface definition for the [UnitConverter] class. type IUnitConverter interface { objc.IObject - ValueFromBaseUnitValue(baseUnitValue float64) float64 BaseUnitValueFromValue(value float64) float64 + ValueFromBaseUnitValue(baseUnitValue float64) float64 } // An abstract class that provides a description of how to convert a unit to and from the base unit of its dimension. [Full Topic] @@ -55,14 +55,6 @@ func (u_ UnitConverter) Init() UnitConverter { return rv } -// For a given unit, returns the specified value of the base unit in terms of that unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconverter/1823657-valuefrombaseunitvalue?language=objc -func (u_ UnitConverter) ValueFromBaseUnitValue(baseUnitValue float64) float64 { - rv := objc.Call[float64](u_, objc.Sel("valueFromBaseUnitValue:"), baseUnitValue) - return rv -} - // For a given unit, returns the specified value of that unit in terms of the base unit of its dimension. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconverter/1823668-baseunitvaluefromvalue?language=objc @@ -70,3 +62,11 @@ func (u_ UnitConverter) BaseUnitValueFromValue(value float64) float64 { rv := objc.Call[float64](u_, objc.Sel("baseUnitValueFromValue:"), value) return rv } + +// For a given unit, returns the specified value of the base unit in terms of that unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconverter/1823657-valuefrombaseunitvalue?language=objc +func (u_ UnitConverter) ValueFromBaseUnitValue(baseUnitValue float64) float64 { + rv := objc.Call[float64](u_, objc.Sel("valueFromBaseUnitValue:"), baseUnitValue) + return rv +} diff --git a/macos/foundation/unit_converter_linear.gen.go b/macos/foundation/unit_converter_linear.gen.go index 6de76349..a2da0bb3 100644 --- a/macos/foundation/unit_converter_linear.gen.go +++ b/macos/foundation/unit_converter_linear.gen.go @@ -35,34 +35,6 @@ func UnitConverterLinearFrom(ptr unsafe.Pointer) UnitConverterLinear { } } -func (u_ UnitConverterLinear) InitWithCoefficient(coefficient float64) UnitConverterLinear { - rv := objc.Call[UnitConverterLinear](u_, objc.Sel("initWithCoefficient:"), coefficient) - return rv -} - -// Initializes the unit converter with the coefficient you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconverterlinear/1823611-initwithcoefficient?language=objc -func NewUnitConverterLinearWithCoefficient(coefficient float64) UnitConverterLinear { - instance := UnitConverterLinearClass.Alloc().InitWithCoefficient(coefficient) - instance.Autorelease() - return instance -} - -func (u_ UnitConverterLinear) InitWithCoefficientConstant(coefficient float64, constant float64) UnitConverterLinear { - rv := objc.Call[UnitConverterLinear](u_, objc.Sel("initWithCoefficient:constant:"), coefficient, constant) - return rv -} - -// Creates a unit converter with the coefficient and constant you specify. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconverterlinear/1823577-initwithcoefficient?language=objc -func NewUnitConverterLinearWithCoefficientConstant(coefficient float64, constant float64) UnitConverterLinear { - instance := UnitConverterLinearClass.Alloc().InitWithCoefficientConstant(coefficient, constant) - instance.Autorelease() - return instance -} - func (uc _UnitConverterLinearClass) Alloc() UnitConverterLinear { rv := objc.Call[UnitConverterLinear](uc, objc.Sel("alloc")) return rv diff --git a/macos/foundation/unit_dispersion.gen.go b/macos/foundation/unit_dispersion.gen.go index 0b4d43b8..8e29de85 100644 --- a/macos/foundation/unit_dispersion.gen.go +++ b/macos/foundation/unit_dispersion.gen.go @@ -53,6 +53,18 @@ func (u_ UnitDispersion) Init() UnitDispersion { return rv } +func (uc _UnitDispersionClass) BaseUnit() UnitDispersion { + rv := objc.Call[UnitDispersion](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitDispersion_BaseUnit() UnitDispersion { + return UnitDispersionClass.BaseUnit() +} + func (u_ UnitDispersion) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitDispersion { rv := objc.Call[UnitDispersion](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitDispersionWithSymbolConverter(symbol string, converter IUnitConverte return instance } -func (uc _UnitDispersionClass) BaseUnit() UnitDispersion { - rv := objc.Call[UnitDispersion](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitDispersion_BaseUnit() UnitDispersion { - return UnitDispersionClass.BaseUnit() -} - func (u_ UnitDispersion) InitWithSymbol(symbol string) UnitDispersion { rv := objc.Call[UnitDispersion](u_, objc.Sel("initWithSymbol:"), symbol) return rv diff --git a/macos/foundation/unit_duration.gen.go b/macos/foundation/unit_duration.gen.go index 74a0a769..7c8d8dd9 100644 --- a/macos/foundation/unit_duration.gen.go +++ b/macos/foundation/unit_duration.gen.go @@ -53,6 +53,18 @@ func (u_ UnitDuration) Init() UnitDuration { return rv } +func (uc _UnitDurationClass) BaseUnit() UnitDuration { + rv := objc.Call[UnitDuration](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitDuration_BaseUnit() UnitDuration { + return UnitDurationClass.BaseUnit() +} + func (u_ UnitDuration) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitDuration { rv := objc.Call[UnitDuration](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitDurationWithSymbolConverter(symbol string, converter IUnitConverter) return instance } -func (uc _UnitDurationClass) BaseUnit() UnitDuration { - rv := objc.Call[UnitDuration](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitDuration_BaseUnit() UnitDuration { - return UnitDurationClass.BaseUnit() -} - func (u_ UnitDuration) InitWithSymbol(symbol string) UnitDuration { rv := objc.Call[UnitDuration](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,19 +93,34 @@ func NewUnitDurationWithSymbol(symbol string) UnitDuration { return instance } -// The nanosecond unit of duration. [Full Topic] +// The second unit of duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/3172540-nanoseconds?language=objc -func (uc _UnitDurationClass) Nanoseconds() UnitDuration { - rv := objc.Call[UnitDuration](uc, objc.Sel("nanoseconds")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/1856005-seconds?language=objc +func (uc _UnitDurationClass) Seconds() UnitDuration { + rv := objc.Call[UnitDuration](uc, objc.Sel("seconds")) return rv } -// The nanosecond unit of duration. [Full Topic] +// The second unit of duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/3172540-nanoseconds?language=objc -func UnitDuration_Nanoseconds() UnitDuration { - return UnitDurationClass.Nanoseconds() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/1856005-seconds?language=objc +func UnitDuration_Seconds() UnitDuration { + return UnitDurationClass.Seconds() +} + +// The microsecond unit of duration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/3172538-microseconds?language=objc +func (uc _UnitDurationClass) Microseconds() UnitDuration { + rv := objc.Call[UnitDuration](uc, objc.Sel("microseconds")) + return rv +} + +// The microsecond unit of duration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/3172538-microseconds?language=objc +func UnitDuration_Microseconds() UnitDuration { + return UnitDurationClass.Microseconds() } // The picosecond unit of duration. [Full Topic] @@ -123,6 +138,21 @@ func UnitDuration_Picoseconds() UnitDuration { return UnitDurationClass.Picoseconds() } +// The hour unit of duration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/1855994-hours?language=objc +func (uc _UnitDurationClass) Hours() UnitDuration { + rv := objc.Call[UnitDuration](uc, objc.Sel("hours")) + return rv +} + +// The hour unit of duration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/1855994-hours?language=objc +func UnitDuration_Hours() UnitDuration { + return UnitDurationClass.Hours() +} + // The millisecond unit of duration. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/3172539-milliseconds?language=objc @@ -138,34 +168,19 @@ func UnitDuration_Milliseconds() UnitDuration { return UnitDurationClass.Milliseconds() } -// The microsecond unit of duration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/3172538-microseconds?language=objc -func (uc _UnitDurationClass) Microseconds() UnitDuration { - rv := objc.Call[UnitDuration](uc, objc.Sel("microseconds")) - return rv -} - -// The microsecond unit of duration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/3172538-microseconds?language=objc -func UnitDuration_Microseconds() UnitDuration { - return UnitDurationClass.Microseconds() -} - -// The hour unit of duration. [Full Topic] +// The nanosecond unit of duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/1855994-hours?language=objc -func (uc _UnitDurationClass) Hours() UnitDuration { - rv := objc.Call[UnitDuration](uc, objc.Sel("hours")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/3172540-nanoseconds?language=objc +func (uc _UnitDurationClass) Nanoseconds() UnitDuration { + rv := objc.Call[UnitDuration](uc, objc.Sel("nanoseconds")) return rv } -// The hour unit of duration. [Full Topic] +// The nanosecond unit of duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/1855994-hours?language=objc -func UnitDuration_Hours() UnitDuration { - return UnitDurationClass.Hours() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/3172540-nanoseconds?language=objc +func UnitDuration_Nanoseconds() UnitDuration { + return UnitDurationClass.Nanoseconds() } // The minute unit of duration. [Full Topic] @@ -182,18 +197,3 @@ func (uc _UnitDurationClass) Minutes() UnitDuration { func UnitDuration_Minutes() UnitDuration { return UnitDurationClass.Minutes() } - -// The second unit of duration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/1856005-seconds?language=objc -func (uc _UnitDurationClass) Seconds() UnitDuration { - rv := objc.Call[UnitDuration](uc, objc.Sel("seconds")) - return rv -} - -// The second unit of duration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/1856005-seconds?language=objc -func UnitDuration_Seconds() UnitDuration { - return UnitDurationClass.Seconds() -} diff --git a/macos/foundation/unit_electric_charge.gen.go b/macos/foundation/unit_electric_charge.gen.go index d819b08d..a5888e3f 100644 --- a/macos/foundation/unit_electric_charge.gen.go +++ b/macos/foundation/unit_electric_charge.gen.go @@ -53,6 +53,18 @@ func (u_ UnitElectricCharge) Init() UnitElectricCharge { return rv } +func (uc _UnitElectricChargeClass) BaseUnit() UnitElectricCharge { + rv := objc.Call[UnitElectricCharge](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitElectricCharge_BaseUnit() UnitElectricCharge { + return UnitElectricChargeClass.BaseUnit() +} + func (u_ UnitElectricCharge) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitElectricCharge { rv := objc.Call[UnitElectricCharge](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitElectricChargeWithSymbolConverter(symbol string, converter IUnitConv return instance } -func (uc _UnitElectricChargeClass) BaseUnit() UnitElectricCharge { - rv := objc.Call[UnitElectricCharge](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitElectricCharge_BaseUnit() UnitElectricCharge { - return UnitElectricChargeClass.BaseUnit() -} - func (u_ UnitElectricCharge) InitWithSymbol(symbol string) UnitElectricCharge { rv := objc.Call[UnitElectricCharge](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,19 +93,19 @@ func NewUnitElectricChargeWithSymbol(symbol string) UnitElectricCharge { return instance } -// The ampere hours unit of electric charge. [Full Topic] +// The kiloampere hours unit of electric charge. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccharge/1856117-amperehours?language=objc -func (uc _UnitElectricChargeClass) AmpereHours() UnitElectricCharge { - rv := objc.Call[UnitElectricCharge](uc, objc.Sel("ampereHours")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccharge/1856045-kiloamperehours?language=objc +func (uc _UnitElectricChargeClass) KiloampereHours() UnitElectricCharge { + rv := objc.Call[UnitElectricCharge](uc, objc.Sel("kiloampereHours")) return rv } -// The ampere hours unit of electric charge. [Full Topic] +// The kiloampere hours unit of electric charge. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccharge/1856117-amperehours?language=objc -func UnitElectricCharge_AmpereHours() UnitElectricCharge { - return UnitElectricChargeClass.AmpereHours() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccharge/1856045-kiloamperehours?language=objc +func UnitElectricCharge_KiloampereHours() UnitElectricCharge { + return UnitElectricChargeClass.KiloampereHours() } // The milliampere hours unit of electric charge. [Full Topic] @@ -138,6 +138,21 @@ func UnitElectricCharge_Coulombs() UnitElectricCharge { return UnitElectricChargeClass.Coulombs() } +// The ampere hours unit of electric charge. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccharge/1856117-amperehours?language=objc +func (uc _UnitElectricChargeClass) AmpereHours() UnitElectricCharge { + rv := objc.Call[UnitElectricCharge](uc, objc.Sel("ampereHours")) + return rv +} + +// The ampere hours unit of electric charge. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccharge/1856117-amperehours?language=objc +func UnitElectricCharge_AmpereHours() UnitElectricCharge { + return UnitElectricChargeClass.AmpereHours() +} + // The microampere hours unit of electric charge. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccharge/1856006-microamperehours?language=objc @@ -167,18 +182,3 @@ func (uc _UnitElectricChargeClass) MegaampereHours() UnitElectricCharge { func UnitElectricCharge_MegaampereHours() UnitElectricCharge { return UnitElectricChargeClass.MegaampereHours() } - -// The kiloampere hours unit of electric charge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccharge/1856045-kiloamperehours?language=objc -func (uc _UnitElectricChargeClass) KiloampereHours() UnitElectricCharge { - rv := objc.Call[UnitElectricCharge](uc, objc.Sel("kiloampereHours")) - return rv -} - -// The kiloampere hours unit of electric charge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccharge/1856045-kiloamperehours?language=objc -func UnitElectricCharge_KiloampereHours() UnitElectricCharge { - return UnitElectricChargeClass.KiloampereHours() -} diff --git a/macos/foundation/unit_electric_current.gen.go b/macos/foundation/unit_electric_current.gen.go index dbf3875f..88e37d66 100644 --- a/macos/foundation/unit_electric_current.gen.go +++ b/macos/foundation/unit_electric_current.gen.go @@ -53,6 +53,18 @@ func (u_ UnitElectricCurrent) Init() UnitElectricCurrent { return rv } +func (uc _UnitElectricCurrentClass) BaseUnit() UnitElectricCurrent { + rv := objc.Call[UnitElectricCurrent](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitElectricCurrent_BaseUnit() UnitElectricCurrent { + return UnitElectricCurrentClass.BaseUnit() +} + func (u_ UnitElectricCurrent) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitElectricCurrent { rv := objc.Call[UnitElectricCurrent](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitElectricCurrentWithSymbolConverter(symbol string, converter IUnitCon return instance } -func (uc _UnitElectricCurrentClass) BaseUnit() UnitElectricCurrent { - rv := objc.Call[UnitElectricCurrent](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitElectricCurrent_BaseUnit() UnitElectricCurrent { - return UnitElectricCurrentClass.BaseUnit() -} - func (u_ UnitElectricCurrent) InitWithSymbol(symbol string) UnitElectricCurrent { rv := objc.Call[UnitElectricCurrent](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,6 +93,21 @@ func NewUnitElectricCurrentWithSymbol(symbol string) UnitElectricCurrent { return instance } +// The microamperes unit of electric current. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccurrent/1856047-microamperes?language=objc +func (uc _UnitElectricCurrentClass) Microamperes() UnitElectricCurrent { + rv := objc.Call[UnitElectricCurrent](uc, objc.Sel("microamperes")) + return rv +} + +// The microamperes unit of electric current. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccurrent/1856047-microamperes?language=objc +func UnitElectricCurrent_Microamperes() UnitElectricCurrent { + return UnitElectricCurrentClass.Microamperes() +} + // The amperes unit of electric current. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccurrent/1855973-amperes?language=objc @@ -123,21 +138,6 @@ func UnitElectricCurrent_Kiloamperes() UnitElectricCurrent { return UnitElectricCurrentClass.Kiloamperes() } -// The microamperes unit of electric current. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccurrent/1856047-microamperes?language=objc -func (uc _UnitElectricCurrentClass) Microamperes() UnitElectricCurrent { - rv := objc.Call[UnitElectricCurrent](uc, objc.Sel("microamperes")) - return rv -} - -// The microamperes unit of electric current. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccurrent/1856047-microamperes?language=objc -func UnitElectricCurrent_Microamperes() UnitElectricCurrent { - return UnitElectricCurrentClass.Microamperes() -} - // The megaamperes unit of electric current. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccurrent/1855980-megaamperes?language=objc diff --git a/macos/foundation/unit_electric_potential_difference.gen.go b/macos/foundation/unit_electric_potential_difference.gen.go index c07702cb..257291f2 100644 --- a/macos/foundation/unit_electric_potential_difference.gen.go +++ b/macos/foundation/unit_electric_potential_difference.gen.go @@ -53,6 +53,18 @@ func (u_ UnitElectricPotentialDifference) Init() UnitElectricPotentialDifference return rv } +func (uc _UnitElectricPotentialDifferenceClass) BaseUnit() UnitElectricPotentialDifference { + rv := objc.Call[UnitElectricPotentialDifference](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitElectricPotentialDifference_BaseUnit() UnitElectricPotentialDifference { + return UnitElectricPotentialDifferenceClass.BaseUnit() +} + func (u_ UnitElectricPotentialDifference) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitElectricPotentialDifference { rv := objc.Call[UnitElectricPotentialDifference](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitElectricPotentialDifferenceWithSymbolConverter(symbol string, conver return instance } -func (uc _UnitElectricPotentialDifferenceClass) BaseUnit() UnitElectricPotentialDifference { - rv := objc.Call[UnitElectricPotentialDifference](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitElectricPotentialDifference_BaseUnit() UnitElectricPotentialDifference { - return UnitElectricPotentialDifferenceClass.BaseUnit() -} - func (u_ UnitElectricPotentialDifference) InitWithSymbol(symbol string) UnitElectricPotentialDifference { rv := objc.Call[UnitElectricPotentialDifference](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -123,6 +123,21 @@ func UnitElectricPotentialDifference_Millivolts() UnitElectricPotentialDifferenc return UnitElectricPotentialDifferenceClass.Millivolts() } +// The kilovolts unit of electric potential difference. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricpotentialdifference/1856086-kilovolts?language=objc +func (uc _UnitElectricPotentialDifferenceClass) Kilovolts() UnitElectricPotentialDifference { + rv := objc.Call[UnitElectricPotentialDifference](uc, objc.Sel("kilovolts")) + return rv +} + +// The kilovolts unit of electric potential difference. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricpotentialdifference/1856086-kilovolts?language=objc +func UnitElectricPotentialDifference_Kilovolts() UnitElectricPotentialDifference { + return UnitElectricPotentialDifferenceClass.Kilovolts() +} + // The megavolts unit of electric potential difference. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricpotentialdifference/1855975-megavolts?language=objc @@ -152,18 +167,3 @@ func (uc _UnitElectricPotentialDifferenceClass) Microvolts() UnitElectricPotenti func UnitElectricPotentialDifference_Microvolts() UnitElectricPotentialDifference { return UnitElectricPotentialDifferenceClass.Microvolts() } - -// The kilovolts unit of electric potential difference. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricpotentialdifference/1856086-kilovolts?language=objc -func (uc _UnitElectricPotentialDifferenceClass) Kilovolts() UnitElectricPotentialDifference { - rv := objc.Call[UnitElectricPotentialDifference](uc, objc.Sel("kilovolts")) - return rv -} - -// The kilovolts unit of electric potential difference. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricpotentialdifference/1856086-kilovolts?language=objc -func UnitElectricPotentialDifference_Kilovolts() UnitElectricPotentialDifference { - return UnitElectricPotentialDifferenceClass.Kilovolts() -} diff --git a/macos/foundation/unit_electric_resistance.gen.go b/macos/foundation/unit_electric_resistance.gen.go index 1425a82f..38f0a465 100644 --- a/macos/foundation/unit_electric_resistance.gen.go +++ b/macos/foundation/unit_electric_resistance.gen.go @@ -53,6 +53,18 @@ func (u_ UnitElectricResistance) Init() UnitElectricResistance { return rv } +func (uc _UnitElectricResistanceClass) BaseUnit() UnitElectricResistance { + rv := objc.Call[UnitElectricResistance](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitElectricResistance_BaseUnit() UnitElectricResistance { + return UnitElectricResistanceClass.BaseUnit() +} + func (u_ UnitElectricResistance) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitElectricResistance { rv := objc.Call[UnitElectricResistance](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitElectricResistanceWithSymbolConverter(symbol string, converter IUnit return instance } -func (uc _UnitElectricResistanceClass) BaseUnit() UnitElectricResistance { - rv := objc.Call[UnitElectricResistance](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitElectricResistance_BaseUnit() UnitElectricResistance { - return UnitElectricResistanceClass.BaseUnit() -} - func (u_ UnitElectricResistance) InitWithSymbol(symbol string) UnitElectricResistance { rv := objc.Call[UnitElectricResistance](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,21 +93,6 @@ func NewUnitElectricResistanceWithSymbol(symbol string) UnitElectricResistance { return instance } -// The megaohms unit of electric resistance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricresistance/1856009-megaohms?language=objc -func (uc _UnitElectricResistanceClass) Megaohms() UnitElectricResistance { - rv := objc.Call[UnitElectricResistance](uc, objc.Sel("megaohms")) - return rv -} - -// The megaohms unit of electric resistance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricresistance/1856009-megaohms?language=objc -func UnitElectricResistance_Megaohms() UnitElectricResistance { - return UnitElectricResistanceClass.Megaohms() -} - // The ohms unit of electric resistance. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricresistance/1856110-ohms?language=objc @@ -123,21 +108,6 @@ func UnitElectricResistance_Ohms() UnitElectricResistance { return UnitElectricResistanceClass.Ohms() } -// The kiloohms unit of electric resistance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricresistance/1855981-kiloohms?language=objc -func (uc _UnitElectricResistanceClass) Kiloohms() UnitElectricResistance { - rv := objc.Call[UnitElectricResistance](uc, objc.Sel("kiloohms")) - return rv -} - -// The kiloohms unit of electric resistance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricresistance/1855981-kiloohms?language=objc -func UnitElectricResistance_Kiloohms() UnitElectricResistance { - return UnitElectricResistanceClass.Kiloohms() -} - // The milliohms unit of electric resistance. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricresistance/1856049-milliohms?language=objc @@ -167,3 +137,33 @@ func (uc _UnitElectricResistanceClass) Microohms() UnitElectricResistance { func UnitElectricResistance_Microohms() UnitElectricResistance { return UnitElectricResistanceClass.Microohms() } + +// The kiloohms unit of electric resistance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricresistance/1855981-kiloohms?language=objc +func (uc _UnitElectricResistanceClass) Kiloohms() UnitElectricResistance { + rv := objc.Call[UnitElectricResistance](uc, objc.Sel("kiloohms")) + return rv +} + +// The kiloohms unit of electric resistance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricresistance/1855981-kiloohms?language=objc +func UnitElectricResistance_Kiloohms() UnitElectricResistance { + return UnitElectricResistanceClass.Kiloohms() +} + +// The megaohms unit of electric resistance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricresistance/1856009-megaohms?language=objc +func (uc _UnitElectricResistanceClass) Megaohms() UnitElectricResistance { + rv := objc.Call[UnitElectricResistance](uc, objc.Sel("megaohms")) + return rv +} + +// The megaohms unit of electric resistance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectricresistance/1856009-megaohms?language=objc +func UnitElectricResistance_Megaohms() UnitElectricResistance { + return UnitElectricResistanceClass.Megaohms() +} diff --git a/macos/foundation/unit_energy.gen.go b/macos/foundation/unit_energy.gen.go index 1b79c7c7..a25cba66 100644 --- a/macos/foundation/unit_energy.gen.go +++ b/macos/foundation/unit_energy.gen.go @@ -53,6 +53,18 @@ func (u_ UnitEnergy) Init() UnitEnergy { return rv } +func (uc _UnitEnergyClass) BaseUnit() UnitEnergy { + rv := objc.Call[UnitEnergy](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitEnergy_BaseUnit() UnitEnergy { + return UnitEnergyClass.BaseUnit() +} + func (u_ UnitEnergy) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitEnergy { rv := objc.Call[UnitEnergy](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitEnergyWithSymbolConverter(symbol string, converter IUnitConverter) U return instance } -func (uc _UnitEnergyClass) BaseUnit() UnitEnergy { - rv := objc.Call[UnitEnergy](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitEnergy_BaseUnit() UnitEnergy { - return UnitEnergyClass.BaseUnit() -} - func (u_ UnitEnergy) InitWithSymbol(symbol string) UnitEnergy { rv := objc.Call[UnitEnergy](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,19 +93,19 @@ func NewUnitEnergyWithSymbol(symbol string) UnitEnergy { return instance } -// The kilocalories unit of energy. [Full Topic] +// The kilowatt hours unit of energy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1856028-kilocalories?language=objc -func (uc _UnitEnergyClass) Kilocalories() UnitEnergy { - rv := objc.Call[UnitEnergy](uc, objc.Sel("kilocalories")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1856092-kilowatthours?language=objc +func (uc _UnitEnergyClass) KilowattHours() UnitEnergy { + rv := objc.Call[UnitEnergy](uc, objc.Sel("kilowattHours")) return rv } -// The kilocalories unit of energy. [Full Topic] +// The kilowatt hours unit of energy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1856028-kilocalories?language=objc -func UnitEnergy_Kilocalories() UnitEnergy { - return UnitEnergyClass.Kilocalories() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1856092-kilowatthours?language=objc +func UnitEnergy_KilowattHours() UnitEnergy { + return UnitEnergyClass.KilowattHours() } // The calories unit of energy. [Full Topic] @@ -123,6 +123,21 @@ func UnitEnergy_Calories() UnitEnergy { return UnitEnergyClass.Calories() } +// The kilocalories unit of energy. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1856028-kilocalories?language=objc +func (uc _UnitEnergyClass) Kilocalories() UnitEnergy { + rv := objc.Call[UnitEnergy](uc, objc.Sel("kilocalories")) + return rv +} + +// The kilocalories unit of energy. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1856028-kilocalories?language=objc +func UnitEnergy_Kilocalories() UnitEnergy { + return UnitEnergyClass.Kilocalories() +} + // The kilojoules unit of energy. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1856113-kilojoules?language=objc @@ -138,21 +153,6 @@ func UnitEnergy_Kilojoules() UnitEnergy { return UnitEnergyClass.Kilojoules() } -// The kilowatt hours unit of energy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1856092-kilowatthours?language=objc -func (uc _UnitEnergyClass) KilowattHours() UnitEnergy { - rv := objc.Call[UnitEnergy](uc, objc.Sel("kilowattHours")) - return rv -} - -// The kilowatt hours unit of energy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1856092-kilowatthours?language=objc -func UnitEnergy_KilowattHours() UnitEnergy { - return UnitEnergyClass.KilowattHours() -} - // The joules unit of energy. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1855987-joules?language=objc diff --git a/macos/foundation/unit_frequency.gen.go b/macos/foundation/unit_frequency.gen.go index 8ec1a4b9..74ac1701 100644 --- a/macos/foundation/unit_frequency.gen.go +++ b/macos/foundation/unit_frequency.gen.go @@ -53,6 +53,18 @@ func (u_ UnitFrequency) Init() UnitFrequency { return rv } +func (uc _UnitFrequencyClass) BaseUnit() UnitFrequency { + rv := objc.Call[UnitFrequency](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitFrequency_BaseUnit() UnitFrequency { + return UnitFrequencyClass.BaseUnit() +} + func (u_ UnitFrequency) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitFrequency { rv := objc.Call[UnitFrequency](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitFrequencyWithSymbolConverter(symbol string, converter IUnitConverter return instance } -func (uc _UnitFrequencyClass) BaseUnit() UnitFrequency { - rv := objc.Call[UnitFrequency](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitFrequency_BaseUnit() UnitFrequency { - return UnitFrequencyClass.BaseUnit() -} - func (u_ UnitFrequency) InitWithSymbol(symbol string) UnitFrequency { rv := objc.Call[UnitFrequency](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,49 +93,34 @@ func NewUnitFrequencyWithSymbol(symbol string) UnitFrequency { return instance } -// The nanohertz unit of frequency. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690663-nanohertz?language=objc -func (uc _UnitFrequencyClass) Nanohertz() UnitFrequency { - rv := objc.Call[UnitFrequency](uc, objc.Sel("nanohertz")) - return rv -} - -// The nanohertz unit of frequency. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690663-nanohertz?language=objc -func UnitFrequency_Nanohertz() UnitFrequency { - return UnitFrequencyClass.Nanohertz() -} - -// The gigahertz unit of frequency. [Full Topic] +// The frames per second unit of frequency. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690667-gigahertz?language=objc -func (uc _UnitFrequencyClass) Gigahertz() UnitFrequency { - rv := objc.Call[UnitFrequency](uc, objc.Sel("gigahertz")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/3172542-framespersecond?language=objc +func (uc _UnitFrequencyClass) FramesPerSecond() UnitFrequency { + rv := objc.Call[UnitFrequency](uc, objc.Sel("framesPerSecond")) return rv } -// The gigahertz unit of frequency. [Full Topic] +// The frames per second unit of frequency. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690667-gigahertz?language=objc -func UnitFrequency_Gigahertz() UnitFrequency { - return UnitFrequencyClass.Gigahertz() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/3172542-framespersecond?language=objc +func UnitFrequency_FramesPerSecond() UnitFrequency { + return UnitFrequencyClass.FramesPerSecond() } -// The kilohertz unit of frequency. [Full Topic] +// The terahertz unit of frequency. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690767-kilohertz?language=objc -func (uc _UnitFrequencyClass) Kilohertz() UnitFrequency { - rv := objc.Call[UnitFrequency](uc, objc.Sel("kilohertz")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690717-terahertz?language=objc +func (uc _UnitFrequencyClass) Terahertz() UnitFrequency { + rv := objc.Call[UnitFrequency](uc, objc.Sel("terahertz")) return rv } -// The kilohertz unit of frequency. [Full Topic] +// The terahertz unit of frequency. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690767-kilohertz?language=objc -func UnitFrequency_Kilohertz() UnitFrequency { - return UnitFrequencyClass.Kilohertz() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690717-terahertz?language=objc +func UnitFrequency_Terahertz() UnitFrequency { + return UnitFrequencyClass.Terahertz() } // The millihertz unit of frequency. [Full Topic] @@ -153,6 +138,21 @@ func UnitFrequency_Millihertz() UnitFrequency { return UnitFrequencyClass.Millihertz() } +// The hertz unit of frequency. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690670-hertz?language=objc +func (uc _UnitFrequencyClass) Hertz() UnitFrequency { + rv := objc.Call[UnitFrequency](uc, objc.Sel("hertz")) + return rv +} + +// The hertz unit of frequency. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690670-hertz?language=objc +func UnitFrequency_Hertz() UnitFrequency { + return UnitFrequencyClass.Hertz() +} + // The megahertz unit of frequency. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690707-megahertz?language=objc @@ -168,49 +168,49 @@ func UnitFrequency_Megahertz() UnitFrequency { return UnitFrequencyClass.Megahertz() } -// The hertz unit of frequency. [Full Topic] +// The nanohertz unit of frequency. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690670-hertz?language=objc -func (uc _UnitFrequencyClass) Hertz() UnitFrequency { - rv := objc.Call[UnitFrequency](uc, objc.Sel("hertz")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690663-nanohertz?language=objc +func (uc _UnitFrequencyClass) Nanohertz() UnitFrequency { + rv := objc.Call[UnitFrequency](uc, objc.Sel("nanohertz")) return rv } -// The hertz unit of frequency. [Full Topic] +// The nanohertz unit of frequency. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690670-hertz?language=objc -func UnitFrequency_Hertz() UnitFrequency { - return UnitFrequencyClass.Hertz() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690663-nanohertz?language=objc +func UnitFrequency_Nanohertz() UnitFrequency { + return UnitFrequencyClass.Nanohertz() } -// The frames per second unit of frequency. [Full Topic] +// The kilohertz unit of frequency. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/3172542-framespersecond?language=objc -func (uc _UnitFrequencyClass) FramesPerSecond() UnitFrequency { - rv := objc.Call[UnitFrequency](uc, objc.Sel("framesPerSecond")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690767-kilohertz?language=objc +func (uc _UnitFrequencyClass) Kilohertz() UnitFrequency { + rv := objc.Call[UnitFrequency](uc, objc.Sel("kilohertz")) return rv } -// The frames per second unit of frequency. [Full Topic] +// The kilohertz unit of frequency. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/3172542-framespersecond?language=objc -func UnitFrequency_FramesPerSecond() UnitFrequency { - return UnitFrequencyClass.FramesPerSecond() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690767-kilohertz?language=objc +func UnitFrequency_Kilohertz() UnitFrequency { + return UnitFrequencyClass.Kilohertz() } -// The terahertz unit of frequency. [Full Topic] +// The gigahertz unit of frequency. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690717-terahertz?language=objc -func (uc _UnitFrequencyClass) Terahertz() UnitFrequency { - rv := objc.Call[UnitFrequency](uc, objc.Sel("terahertz")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690667-gigahertz?language=objc +func (uc _UnitFrequencyClass) Gigahertz() UnitFrequency { + rv := objc.Call[UnitFrequency](uc, objc.Sel("gigahertz")) return rv } -// The terahertz unit of frequency. [Full Topic] +// The gigahertz unit of frequency. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690717-terahertz?language=objc -func UnitFrequency_Terahertz() UnitFrequency { - return UnitFrequencyClass.Terahertz() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690667-gigahertz?language=objc +func UnitFrequency_Gigahertz() UnitFrequency { + return UnitFrequencyClass.Gigahertz() } // The microhertz unit of frequency. [Full Topic] diff --git a/macos/foundation/unit_fuel_efficiency.gen.go b/macos/foundation/unit_fuel_efficiency.gen.go index 9d1ef7d8..6bb27b37 100644 --- a/macos/foundation/unit_fuel_efficiency.gen.go +++ b/macos/foundation/unit_fuel_efficiency.gen.go @@ -53,6 +53,18 @@ func (u_ UnitFuelEfficiency) Init() UnitFuelEfficiency { return rv } +func (uc _UnitFuelEfficiencyClass) BaseUnit() UnitFuelEfficiency { + rv := objc.Call[UnitFuelEfficiency](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitFuelEfficiency_BaseUnit() UnitFuelEfficiency { + return UnitFuelEfficiencyClass.BaseUnit() +} + func (u_ UnitFuelEfficiency) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitFuelEfficiency { rv := objc.Call[UnitFuelEfficiency](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitFuelEfficiencyWithSymbolConverter(symbol string, converter IUnitConv return instance } -func (uc _UnitFuelEfficiencyClass) BaseUnit() UnitFuelEfficiency { - rv := objc.Call[UnitFuelEfficiency](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitFuelEfficiency_BaseUnit() UnitFuelEfficiency { - return UnitFuelEfficiencyClass.BaseUnit() -} - func (u_ UnitFuelEfficiency) InitWithSymbol(symbol string) UnitFuelEfficiency { rv := objc.Call[UnitFuelEfficiency](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,6 +93,21 @@ func NewUnitFuelEfficiencyWithSymbol(symbol string) UnitFuelEfficiency { return instance } +// The liters per 100 kilometers unit of fuel efficiency. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfuelefficiency/1856054-litersper100kilometers?language=objc +func (uc _UnitFuelEfficiencyClass) LitersPer100Kilometers() UnitFuelEfficiency { + rv := objc.Call[UnitFuelEfficiency](uc, objc.Sel("litersPer100Kilometers")) + return rv +} + +// The liters per 100 kilometers unit of fuel efficiency. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfuelefficiency/1856054-litersper100kilometers?language=objc +func UnitFuelEfficiency_LitersPer100Kilometers() UnitFuelEfficiency { + return UnitFuelEfficiencyClass.LitersPer100Kilometers() +} + // The miles per imperial gallon unit of fuel efficiency. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfuelefficiency/1856089-milesperimperialgallon?language=objc @@ -122,18 +137,3 @@ func (uc _UnitFuelEfficiencyClass) MilesPerGallon() UnitFuelEfficiency { func UnitFuelEfficiency_MilesPerGallon() UnitFuelEfficiency { return UnitFuelEfficiencyClass.MilesPerGallon() } - -// The liters per 100 kilometers unit of fuel efficiency. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfuelefficiency/1856054-litersper100kilometers?language=objc -func (uc _UnitFuelEfficiencyClass) LitersPer100Kilometers() UnitFuelEfficiency { - rv := objc.Call[UnitFuelEfficiency](uc, objc.Sel("litersPer100Kilometers")) - return rv -} - -// The liters per 100 kilometers unit of fuel efficiency. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfuelefficiency/1856054-litersper100kilometers?language=objc -func UnitFuelEfficiency_LitersPer100Kilometers() UnitFuelEfficiency { - return UnitFuelEfficiencyClass.LitersPer100Kilometers() -} diff --git a/macos/foundation/unit_illuminance.gen.go b/macos/foundation/unit_illuminance.gen.go index 6d3e1123..56773a4c 100644 --- a/macos/foundation/unit_illuminance.gen.go +++ b/macos/foundation/unit_illuminance.gen.go @@ -53,6 +53,18 @@ func (u_ UnitIlluminance) Init() UnitIlluminance { return rv } +func (uc _UnitIlluminanceClass) BaseUnit() UnitIlluminance { + rv := objc.Call[UnitIlluminance](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitIlluminance_BaseUnit() UnitIlluminance { + return UnitIlluminanceClass.BaseUnit() +} + func (u_ UnitIlluminance) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitIlluminance { rv := objc.Call[UnitIlluminance](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitIlluminanceWithSymbolConverter(symbol string, converter IUnitConvert return instance } -func (uc _UnitIlluminanceClass) BaseUnit() UnitIlluminance { - rv := objc.Call[UnitIlluminance](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitIlluminance_BaseUnit() UnitIlluminance { - return UnitIlluminanceClass.BaseUnit() -} - func (u_ UnitIlluminance) InitWithSymbol(symbol string) UnitIlluminance { rv := objc.Call[UnitIlluminance](u_, objc.Sel("initWithSymbol:"), symbol) return rv diff --git a/macos/foundation/unit_information_storage.gen.go b/macos/foundation/unit_information_storage.gen.go index 71e37066..431287be 100644 --- a/macos/foundation/unit_information_storage.gen.go +++ b/macos/foundation/unit_information_storage.gen.go @@ -53,6 +53,18 @@ func (u_ UnitInformationStorage) Init() UnitInformationStorage { return rv } +func (uc _UnitInformationStorageClass) BaseUnit() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitInformationStorage_BaseUnit() UnitInformationStorage { + return UnitInformationStorageClass.BaseUnit() +} + func (u_ UnitInformationStorage) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitInformationStorage { rv := objc.Call[UnitInformationStorage](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitInformationStorageWithSymbolConverter(symbol string, converter IUnit return instance } -func (uc _UnitInformationStorageClass) BaseUnit() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitInformationStorage_BaseUnit() UnitInformationStorage { - return UnitInformationStorageClass.BaseUnit() -} - func (u_ UnitInformationStorage) InitWithSymbol(symbol string) UnitInformationStorage { rv := objc.Call[UnitInformationStorage](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,64 +93,49 @@ func NewUnitInformationStorageWithSymbol(symbol string) UnitInformationStorage { return instance } -// The mebibytes unit of information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172559-mebibytes?language=objc -func (uc _UnitInformationStorageClass) Mebibytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("mebibytes")) - return rv -} - -// The mebibytes unit of information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172559-mebibytes?language=objc -func UnitInformationStorage_Mebibytes() UnitInformationStorage { - return UnitInformationStorageClass.Mebibytes() -} - -// The gigabits unit of information. [Full Topic] +// The gibibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172552-gigabits?language=objc -func (uc _UnitInformationStorageClass) Gigabits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("gigabits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172551-gibibytes?language=objc +func (uc _UnitInformationStorageClass) Gibibytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("gibibytes")) return rv } -// The gigabits unit of information. [Full Topic] +// The gibibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172552-gigabits?language=objc -func UnitInformationStorage_Gigabits() UnitInformationStorage { - return UnitInformationStorageClass.Gigabits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172551-gibibytes?language=objc +func UnitInformationStorage_Gibibytes() UnitInformationStorage { + return UnitInformationStorageClass.Gibibytes() } -// The zettabytes unit of information. [Full Topic] +// The zebibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172578-zettabytes?language=objc -func (uc _UnitInformationStorageClass) Zettabytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("zettabytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172575-zebibits?language=objc +func (uc _UnitInformationStorageClass) Zebibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("zebibits")) return rv } -// The zettabytes unit of information. [Full Topic] +// The zebibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172578-zettabytes?language=objc -func UnitInformationStorage_Zettabytes() UnitInformationStorage { - return UnitInformationStorageClass.Zettabytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172575-zebibits?language=objc +func UnitInformationStorage_Zebibits() UnitInformationStorage { + return UnitInformationStorageClass.Zebibits() } -// The pebibytes unit of information. [Full Topic] +// The petabits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172564-pebibytes?language=objc -func (uc _UnitInformationStorageClass) Pebibytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("pebibytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172565-petabits?language=objc +func (uc _UnitInformationStorageClass) Petabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("petabits")) return rv } -// The pebibytes unit of information. [Full Topic] +// The petabits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172564-pebibytes?language=objc -func UnitInformationStorage_Pebibytes() UnitInformationStorage { - return UnitInformationStorageClass.Pebibytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172565-petabits?language=objc +func UnitInformationStorage_Petabits() UnitInformationStorage { + return UnitInformationStorageClass.Petabits() } // The exbibytes unit of information. [Full Topic] @@ -168,94 +153,79 @@ func UnitInformationStorage_Exbibytes() UnitInformationStorage { return UnitInformationStorageClass.Exbibytes() } -// The petabits unit of information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172565-petabits?language=objc -func (uc _UnitInformationStorageClass) Petabits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("petabits")) - return rv -} - -// The petabits unit of information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172565-petabits?language=objc -func UnitInformationStorage_Petabits() UnitInformationStorage { - return UnitInformationStorageClass.Petabits() -} - -// The megabits unit of information. [Full Topic] +// The nibbles unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172560-megabits?language=objc -func (uc _UnitInformationStorageClass) Megabits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("megabits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172562-nibbles?language=objc +func (uc _UnitInformationStorageClass) Nibbles() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("nibbles")) return rv } -// The megabits unit of information. [Full Topic] +// The nibbles unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172560-megabits?language=objc -func UnitInformationStorage_Megabits() UnitInformationStorage { - return UnitInformationStorageClass.Megabits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172562-nibbles?language=objc +func UnitInformationStorage_Nibbles() UnitInformationStorage { + return UnitInformationStorageClass.Nibbles() } -// The terabits unit of information. [Full Topic] +// The yobibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172569-terabits?language=objc -func (uc _UnitInformationStorageClass) Terabits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("terabits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172571-yobibits?language=objc +func (uc _UnitInformationStorageClass) Yobibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yobibits")) return rv } -// The terabits unit of information. [Full Topic] +// The yobibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172569-terabits?language=objc -func UnitInformationStorage_Terabits() UnitInformationStorage { - return UnitInformationStorageClass.Terabits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172571-yobibits?language=objc +func UnitInformationStorage_Yobibits() UnitInformationStorage { + return UnitInformationStorageClass.Yobibits() } -// The gibibytes unit of information. [Full Topic] +// The zettabits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172551-gibibytes?language=objc -func (uc _UnitInformationStorageClass) Gibibytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("gibibytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172577-zettabits?language=objc +func (uc _UnitInformationStorageClass) Zettabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("zettabits")) return rv } -// The gibibytes unit of information. [Full Topic] +// The zettabits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172551-gibibytes?language=objc -func UnitInformationStorage_Gibibytes() UnitInformationStorage { - return UnitInformationStorageClass.Gibibytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172577-zettabits?language=objc +func UnitInformationStorage_Zettabits() UnitInformationStorage { + return UnitInformationStorageClass.Zettabits() } -// The yottabits unit of information. [Full Topic] +// The bits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172573-yottabits?language=objc -func (uc _UnitInformationStorageClass) Yottabits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yottabits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172544-bits?language=objc +func (uc _UnitInformationStorageClass) Bits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("bits")) return rv } -// The yottabits unit of information. [Full Topic] +// The bits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172573-yottabits?language=objc -func UnitInformationStorage_Yottabits() UnitInformationStorage { - return UnitInformationStorageClass.Yottabits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172544-bits?language=objc +func UnitInformationStorage_Bits() UnitInformationStorage { + return UnitInformationStorageClass.Bits() } -// The zebibytes unit of information. [Full Topic] +// The gigabits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172576-zebibytes?language=objc -func (uc _UnitInformationStorageClass) Zebibytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("zebibytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172552-gigabits?language=objc +func (uc _UnitInformationStorageClass) Gigabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("gigabits")) return rv } -// The zebibytes unit of information. [Full Topic] +// The gigabits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172576-zebibytes?language=objc -func UnitInformationStorage_Zebibytes() UnitInformationStorage { - return UnitInformationStorageClass.Zebibytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172552-gigabits?language=objc +func UnitInformationStorage_Gigabits() UnitInformationStorage { + return UnitInformationStorageClass.Gigabits() } // The kibibytes unit of information. [Full Topic] @@ -273,139 +243,94 @@ func UnitInformationStorage_Kibibytes() UnitInformationStorage { return UnitInformationStorageClass.Kibibytes() } -// The megabytes unit of information. [Full Topic] +// The mebibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172561-megabytes?language=objc -func (uc _UnitInformationStorageClass) Megabytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("megabytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172559-mebibytes?language=objc +func (uc _UnitInformationStorageClass) Mebibytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("mebibytes")) return rv } -// The megabytes unit of information. [Full Topic] +// The mebibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172561-megabytes?language=objc -func UnitInformationStorage_Megabytes() UnitInformationStorage { - return UnitInformationStorageClass.Megabytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172559-mebibytes?language=objc +func UnitInformationStorage_Mebibytes() UnitInformationStorage { + return UnitInformationStorageClass.Mebibytes() } -// The bytes unit of information. [Full Topic] +// The kibibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172545-bytes?language=objc -func (uc _UnitInformationStorageClass) Bytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("bytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172554-kibibits?language=objc +func (uc _UnitInformationStorageClass) Kibibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("kibibits")) return rv } -// The bytes unit of information. [Full Topic] +// The kibibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172545-bytes?language=objc -func UnitInformationStorage_Bytes() UnitInformationStorage { - return UnitInformationStorageClass.Bytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172554-kibibits?language=objc +func UnitInformationStorage_Kibibits() UnitInformationStorage { + return UnitInformationStorageClass.Kibibits() } -// The yobibits unit of information. [Full Topic] +// The terrabytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172571-yobibits?language=objc -func (uc _UnitInformationStorageClass) Yobibits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yobibits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172570-terabytes?language=objc +func (uc _UnitInformationStorageClass) Terabytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("terabytes")) return rv } -// The yobibits unit of information. [Full Topic] +// The terrabytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172571-yobibits?language=objc -func UnitInformationStorage_Yobibits() UnitInformationStorage { - return UnitInformationStorageClass.Yobibits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172570-terabytes?language=objc +func UnitInformationStorage_Terabytes() UnitInformationStorage { + return UnitInformationStorageClass.Terabytes() } -// The tebibits unit of information. [Full Topic] +// The tebibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172567-tebibits?language=objc -func (uc _UnitInformationStorageClass) Tebibits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("tebibits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172568-tebibytes?language=objc +func (uc _UnitInformationStorageClass) Tebibytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("tebibytes")) return rv } -// The tebibits unit of information. [Full Topic] +// The tebibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172567-tebibits?language=objc -func UnitInformationStorage_Tebibits() UnitInformationStorage { - return UnitInformationStorageClass.Tebibits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172568-tebibytes?language=objc +func UnitInformationStorage_Tebibytes() UnitInformationStorage { + return UnitInformationStorageClass.Tebibytes() } -// The zebibits unit of information. [Full Topic] +// The pebibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172575-zebibits?language=objc -func (uc _UnitInformationStorageClass) Zebibits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("zebibits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172563-pebibits?language=objc +func (uc _UnitInformationStorageClass) Pebibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("pebibits")) return rv } -// The zebibits unit of information. [Full Topic] +// The pebibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172575-zebibits?language=objc -func UnitInformationStorage_Zebibits() UnitInformationStorage { - return UnitInformationStorageClass.Zebibits() -} - -// The exabytes unit of information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172547-exabytes?language=objc -func (uc _UnitInformationStorageClass) Exabytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("exabytes")) - return rv -} - -// The exabytes unit of information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172547-exabytes?language=objc -func UnitInformationStorage_Exabytes() UnitInformationStorage { - return UnitInformationStorageClass.Exabytes() -} - -// The nibbles unit of information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172562-nibbles?language=objc -func (uc _UnitInformationStorageClass) Nibbles() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("nibbles")) - return rv -} - -// The nibbles unit of information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172562-nibbles?language=objc -func UnitInformationStorage_Nibbles() UnitInformationStorage { - return UnitInformationStorageClass.Nibbles() -} - -// The exbibits unit of information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172548-exbibits?language=objc -func (uc _UnitInformationStorageClass) Exbibits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("exbibits")) - return rv -} - -// The exbibits unit of information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172548-exbibits?language=objc -func UnitInformationStorage_Exbibits() UnitInformationStorage { - return UnitInformationStorageClass.Exbibits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172563-pebibits?language=objc +func UnitInformationStorage_Pebibits() UnitInformationStorage { + return UnitInformationStorageClass.Pebibits() } -// The exabits unit of information. [Full Topic] +// The yobibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172546-exabits?language=objc -func (uc _UnitInformationStorageClass) Exabits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("exabits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172572-yobibytes?language=objc +func (uc _UnitInformationStorageClass) Yobibytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yobibytes")) return rv } -// The exabits unit of information. [Full Topic] +// The yobibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172546-exabits?language=objc -func UnitInformationStorage_Exabits() UnitInformationStorage { - return UnitInformationStorageClass.Exabits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172572-yobibytes?language=objc +func UnitInformationStorage_Yobibytes() UnitInformationStorage { + return UnitInformationStorageClass.Yobibytes() } // The petabytes unit of information. [Full Topic] @@ -438,109 +363,139 @@ func UnitInformationStorage_Gibibits() UnitInformationStorage { return UnitInformationStorageClass.Gibibits() } -// The yobibytes unit of information. [Full Topic] +// The kilobytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172572-yobibytes?language=objc -func (uc _UnitInformationStorageClass) Yobibytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yobibytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172557-kilobytes?language=objc +func (uc _UnitInformationStorageClass) Kilobytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("kilobytes")) return rv } -// The yobibytes unit of information. [Full Topic] +// The kilobytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172572-yobibytes?language=objc -func UnitInformationStorage_Yobibytes() UnitInformationStorage { - return UnitInformationStorageClass.Yobibytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172557-kilobytes?language=objc +func UnitInformationStorage_Kilobytes() UnitInformationStorage { + return UnitInformationStorageClass.Kilobytes() } -// The zettabits unit of information. [Full Topic] +// The exabytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172577-zettabits?language=objc -func (uc _UnitInformationStorageClass) Zettabits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("zettabits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172547-exabytes?language=objc +func (uc _UnitInformationStorageClass) Exabytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("exabytes")) return rv } -// The zettabits unit of information. [Full Topic] +// The exabytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172577-zettabits?language=objc -func UnitInformationStorage_Zettabits() UnitInformationStorage { - return UnitInformationStorageClass.Zettabits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172547-exabytes?language=objc +func UnitInformationStorage_Exabytes() UnitInformationStorage { + return UnitInformationStorageClass.Exabytes() } -// The tebibytes unit of information. [Full Topic] +// The megabytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172568-tebibytes?language=objc -func (uc _UnitInformationStorageClass) Tebibytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("tebibytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172561-megabytes?language=objc +func (uc _UnitInformationStorageClass) Megabytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("megabytes")) return rv } -// The tebibytes unit of information. [Full Topic] +// The megabytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172568-tebibytes?language=objc -func UnitInformationStorage_Tebibytes() UnitInformationStorage { - return UnitInformationStorageClass.Tebibytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172561-megabytes?language=objc +func UnitInformationStorage_Megabytes() UnitInformationStorage { + return UnitInformationStorageClass.Megabytes() } -// The kibibits unit of information. [Full Topic] +// The mebibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172554-kibibits?language=objc -func (uc _UnitInformationStorageClass) Kibibits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("kibibits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172558-mebibits?language=objc +func (uc _UnitInformationStorageClass) Mebibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("mebibits")) return rv } -// The kibibits unit of information. [Full Topic] +// The mebibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172554-kibibits?language=objc -func UnitInformationStorage_Kibibits() UnitInformationStorage { - return UnitInformationStorageClass.Kibibits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172558-mebibits?language=objc +func UnitInformationStorage_Mebibits() UnitInformationStorage { + return UnitInformationStorageClass.Mebibits() } -// The terrabytes unit of information. [Full Topic] +// The pebibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172570-terabytes?language=objc -func (uc _UnitInformationStorageClass) Terabytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("terabytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172564-pebibytes?language=objc +func (uc _UnitInformationStorageClass) Pebibytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("pebibytes")) return rv } -// The terrabytes unit of information. [Full Topic] +// The pebibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172570-terabytes?language=objc -func UnitInformationStorage_Terabytes() UnitInformationStorage { - return UnitInformationStorageClass.Terabytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172564-pebibytes?language=objc +func UnitInformationStorage_Pebibytes() UnitInformationStorage { + return UnitInformationStorageClass.Pebibytes() } -// The kilobits unit of information. [Full Topic] +// The terabits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172556-kilobits?language=objc -func (uc _UnitInformationStorageClass) Kilobits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("kilobits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172569-terabits?language=objc +func (uc _UnitInformationStorageClass) Terabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("terabits")) return rv } -// The kilobits unit of information. [Full Topic] +// The terabits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172556-kilobits?language=objc -func UnitInformationStorage_Kilobits() UnitInformationStorage { - return UnitInformationStorageClass.Kilobits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172569-terabits?language=objc +func UnitInformationStorage_Terabits() UnitInformationStorage { + return UnitInformationStorageClass.Terabits() } -// The mebibits unit of information. [Full Topic] +// The bytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172558-mebibits?language=objc -func (uc _UnitInformationStorageClass) Mebibits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("mebibits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172545-bytes?language=objc +func (uc _UnitInformationStorageClass) Bytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("bytes")) return rv } -// The mebibits unit of information. [Full Topic] +// The bytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172558-mebibits?language=objc -func UnitInformationStorage_Mebibits() UnitInformationStorage { - return UnitInformationStorageClass.Mebibits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172545-bytes?language=objc +func UnitInformationStorage_Bytes() UnitInformationStorage { + return UnitInformationStorageClass.Bytes() +} + +// The yottabytes unit of information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172574-yottabytes?language=objc +func (uc _UnitInformationStorageClass) Yottabytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yottabytes")) + return rv +} + +// The yottabytes unit of information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172574-yottabytes?language=objc +func UnitInformationStorage_Yottabytes() UnitInformationStorage { + return UnitInformationStorageClass.Yottabytes() +} + +// The yottabits unit of information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172573-yottabits?language=objc +func (uc _UnitInformationStorageClass) Yottabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yottabits")) + return rv +} + +// The yottabits unit of information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172573-yottabits?language=objc +func UnitInformationStorage_Yottabits() UnitInformationStorage { + return UnitInformationStorageClass.Yottabits() } // The gigabytes unit of information. [Full Topic] @@ -558,62 +513,107 @@ func UnitInformationStorage_Gigabytes() UnitInformationStorage { return UnitInformationStorageClass.Gigabytes() } -// The yottabytes unit of information. [Full Topic] +// The zebibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172574-yottabytes?language=objc -func (uc _UnitInformationStorageClass) Yottabytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yottabytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172576-zebibytes?language=objc +func (uc _UnitInformationStorageClass) Zebibytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("zebibytes")) return rv } -// The yottabytes unit of information. [Full Topic] +// The zebibytes unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172574-yottabytes?language=objc -func UnitInformationStorage_Yottabytes() UnitInformationStorage { - return UnitInformationStorageClass.Yottabytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172576-zebibytes?language=objc +func UnitInformationStorage_Zebibytes() UnitInformationStorage { + return UnitInformationStorageClass.Zebibytes() } -// The bits unit of information. [Full Topic] +// The kilobits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172544-bits?language=objc -func (uc _UnitInformationStorageClass) Bits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("bits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172556-kilobits?language=objc +func (uc _UnitInformationStorageClass) Kilobits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("kilobits")) return rv } -// The bits unit of information. [Full Topic] +// The kilobits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172544-bits?language=objc -func UnitInformationStorage_Bits() UnitInformationStorage { - return UnitInformationStorageClass.Bits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172556-kilobits?language=objc +func UnitInformationStorage_Kilobits() UnitInformationStorage { + return UnitInformationStorageClass.Kilobits() } -// The pebibits unit of information. [Full Topic] +// The tebibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172563-pebibits?language=objc -func (uc _UnitInformationStorageClass) Pebibits() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("pebibits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172567-tebibits?language=objc +func (uc _UnitInformationStorageClass) Tebibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("tebibits")) return rv } -// The pebibits unit of information. [Full Topic] +// The tebibits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172563-pebibits?language=objc -func UnitInformationStorage_Pebibits() UnitInformationStorage { - return UnitInformationStorageClass.Pebibits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172567-tebibits?language=objc +func UnitInformationStorage_Tebibits() UnitInformationStorage { + return UnitInformationStorageClass.Tebibits() } -// The kilobytes unit of information. [Full Topic] +// The megabits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172557-kilobytes?language=objc -func (uc _UnitInformationStorageClass) Kilobytes() UnitInformationStorage { - rv := objc.Call[UnitInformationStorage](uc, objc.Sel("kilobytes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172560-megabits?language=objc +func (uc _UnitInformationStorageClass) Megabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("megabits")) return rv } -// The kilobytes unit of information. [Full Topic] +// The megabits unit of information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172557-kilobytes?language=objc -func UnitInformationStorage_Kilobytes() UnitInformationStorage { - return UnitInformationStorageClass.Kilobytes() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172560-megabits?language=objc +func UnitInformationStorage_Megabits() UnitInformationStorage { + return UnitInformationStorageClass.Megabits() +} + +// The exbibits unit of information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172548-exbibits?language=objc +func (uc _UnitInformationStorageClass) Exbibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("exbibits")) + return rv +} + +// The exbibits unit of information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172548-exbibits?language=objc +func UnitInformationStorage_Exbibits() UnitInformationStorage { + return UnitInformationStorageClass.Exbibits() +} + +// The exabits unit of information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172546-exabits?language=objc +func (uc _UnitInformationStorageClass) Exabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("exabits")) + return rv +} + +// The exabits unit of information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172546-exabits?language=objc +func UnitInformationStorage_Exabits() UnitInformationStorage { + return UnitInformationStorageClass.Exabits() +} + +// The zettabytes unit of information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172578-zettabytes?language=objc +func (uc _UnitInformationStorageClass) Zettabytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("zettabytes")) + return rv +} + +// The zettabytes unit of information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172578-zettabytes?language=objc +func UnitInformationStorage_Zettabytes() UnitInformationStorage { + return UnitInformationStorageClass.Zettabytes() } diff --git a/macos/foundation/unit_length.gen.go b/macos/foundation/unit_length.gen.go index 88363573..0de68cb9 100644 --- a/macos/foundation/unit_length.gen.go +++ b/macos/foundation/unit_length.gen.go @@ -53,6 +53,18 @@ func (u_ UnitLength) Init() UnitLength { return rv } +func (uc _UnitLengthClass) BaseUnit() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitLength_BaseUnit() UnitLength { + return UnitLengthClass.BaseUnit() +} + func (u_ UnitLength) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitLength { rv := objc.Call[UnitLength](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitLengthWithSymbolConverter(symbol string, converter IUnitConverter) U return instance } -func (uc _UnitLengthClass) BaseUnit() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitLength_BaseUnit() UnitLength { - return UnitLengthClass.BaseUnit() -} - func (u_ UnitLength) InitWithSymbol(symbol string) UnitLength { rv := objc.Call[UnitLength](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,109 +93,94 @@ func NewUnitLengthWithSymbol(symbol string) UnitLength { return instance } -// The meters unit of length. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855995-meters?language=objc -func (uc _UnitLengthClass) Meters() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("meters")) - return rv -} - -// The meters unit of length. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855995-meters?language=objc -func UnitLength_Meters() UnitLength { - return UnitLengthClass.Meters() -} - -// The furlongs unit of length. [Full Topic] +// The parsecs unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856065-furlongs?language=objc -func (uc _UnitLengthClass) Furlongs() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("furlongs")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856021-parsecs?language=objc +func (uc _UnitLengthClass) Parsecs() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("parsecs")) return rv } -// The furlongs unit of length. [Full Topic] +// The parsecs unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856065-furlongs?language=objc -func UnitLength_Furlongs() UnitLength { - return UnitLengthClass.Furlongs() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856021-parsecs?language=objc +func UnitLength_Parsecs() UnitLength { + return UnitLengthClass.Parsecs() } -// The fathoms unit of length. [Full Topic] +// The astronomical units unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856090-fathoms?language=objc -func (uc _UnitLengthClass) Fathoms() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("fathoms")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856087-astronomicalunits?language=objc +func (uc _UnitLengthClass) AstronomicalUnits() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("astronomicalUnits")) return rv } -// The fathoms unit of length. [Full Topic] +// The astronomical units unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856090-fathoms?language=objc -func UnitLength_Fathoms() UnitLength { - return UnitLengthClass.Fathoms() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856087-astronomicalunits?language=objc +func UnitLength_AstronomicalUnits() UnitLength { + return UnitLengthClass.AstronomicalUnits() } -// The centimeters unit of length. [Full Topic] +// The inches unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856082-centimeters?language=objc -func (uc _UnitLengthClass) Centimeters() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("centimeters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856018-inches?language=objc +func (uc _UnitLengthClass) Inches() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("inches")) return rv } -// The centimeters unit of length. [Full Topic] +// The inches unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856082-centimeters?language=objc -func UnitLength_Centimeters() UnitLength { - return UnitLengthClass.Centimeters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856018-inches?language=objc +func UnitLength_Inches() UnitLength { + return UnitLengthClass.Inches() } -// The decameters unit of length. [Full Topic] +// The nanometers unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856042-decameters?language=objc -func (uc _UnitLengthClass) Decameters() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("decameters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856004-nanometers?language=objc +func (uc _UnitLengthClass) Nanometers() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("nanometers")) return rv } -// The decameters unit of length. [Full Topic] +// The nanometers unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856042-decameters?language=objc -func UnitLength_Decameters() UnitLength { - return UnitLengthClass.Decameters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856004-nanometers?language=objc +func UnitLength_Nanometers() UnitLength { + return UnitLengthClass.Nanometers() } -// The feet unit of length. [Full Topic] +// The hectometers unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855972-feet?language=objc -func (uc _UnitLengthClass) Feet() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("feet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855970-hectometers?language=objc +func (uc _UnitLengthClass) Hectometers() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("hectometers")) return rv } -// The feet unit of length. [Full Topic] +// The hectometers unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855972-feet?language=objc -func UnitLength_Feet() UnitLength { - return UnitLengthClass.Feet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855970-hectometers?language=objc +func UnitLength_Hectometers() UnitLength { + return UnitLengthClass.Hectometers() } -// The picometers unit of length. [Full Topic] +// The megameters unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856012-picometers?language=objc -func (uc _UnitLengthClass) Picometers() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("picometers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856036-megameters?language=objc +func (uc _UnitLengthClass) Megameters() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("megameters")) return rv } -// The picometers unit of length. [Full Topic] +// The megameters unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856012-picometers?language=objc -func UnitLength_Picometers() UnitLength { - return UnitLengthClass.Picometers() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856036-megameters?language=objc +func UnitLength_Megameters() UnitLength { + return UnitLengthClass.Megameters() } // The millimeters unit of length. [Full Topic] @@ -213,34 +198,49 @@ func UnitLength_Millimeters() UnitLength { return UnitLengthClass.Millimeters() } -// The hectometers unit of length. [Full Topic] +// The feet unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855970-hectometers?language=objc -func (uc _UnitLengthClass) Hectometers() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("hectometers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855972-feet?language=objc +func (uc _UnitLengthClass) Feet() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("feet")) return rv } -// The hectometers unit of length. [Full Topic] +// The feet unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855970-hectometers?language=objc -func UnitLength_Hectometers() UnitLength { - return UnitLengthClass.Hectometers() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855972-feet?language=objc +func UnitLength_Feet() UnitLength { + return UnitLengthClass.Feet() } -// The Scandinavian miles unit of length. [Full Topic] +// The furlongs unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856061-scandinavianmiles?language=objc -func (uc _UnitLengthClass) ScandinavianMiles() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("scandinavianMiles")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856065-furlongs?language=objc +func (uc _UnitLengthClass) Furlongs() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("furlongs")) return rv } -// The Scandinavian miles unit of length. [Full Topic] +// The furlongs unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856061-scandinavianmiles?language=objc -func UnitLength_ScandinavianMiles() UnitLength { - return UnitLengthClass.ScandinavianMiles() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856065-furlongs?language=objc +func UnitLength_Furlongs() UnitLength { + return UnitLengthClass.Furlongs() +} + +// The fathoms unit of length. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856090-fathoms?language=objc +func (uc _UnitLengthClass) Fathoms() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("fathoms")) + return rv +} + +// The fathoms unit of length. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856090-fathoms?language=objc +func UnitLength_Fathoms() UnitLength { + return UnitLengthClass.Fathoms() } // The light years unit of length. [Full Topic] @@ -258,167 +258,167 @@ func UnitLength_Lightyears() UnitLength { return UnitLengthClass.Lightyears() } -// The micrometers unit of length. [Full Topic] +// The nautical miles unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855998-micrometers?language=objc -func (uc _UnitLengthClass) Micrometers() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("micrometers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855986-nauticalmiles?language=objc +func (uc _UnitLengthClass) NauticalMiles() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("nauticalMiles")) return rv } -// The micrometers unit of length. [Full Topic] +// The nautical miles unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855998-micrometers?language=objc -func UnitLength_Micrometers() UnitLength { - return UnitLengthClass.Micrometers() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855986-nauticalmiles?language=objc +func UnitLength_NauticalMiles() UnitLength { + return UnitLengthClass.NauticalMiles() } -// The kilometers unit of length. [Full Topic] +// The miles unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856106-kilometers?language=objc -func (uc _UnitLengthClass) Kilometers() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("kilometers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856016-miles?language=objc +func (uc _UnitLengthClass) Miles() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("miles")) return rv } -// The kilometers unit of length. [Full Topic] +// The miles unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856106-kilometers?language=objc -func UnitLength_Kilometers() UnitLength { - return UnitLengthClass.Kilometers() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856016-miles?language=objc +func UnitLength_Miles() UnitLength { + return UnitLengthClass.Miles() } -// The decimeters unit of length. [Full Topic] +// The yards unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856007-decimeters?language=objc -func (uc _UnitLengthClass) Decimeters() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("decimeters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855993-yards?language=objc +func (uc _UnitLengthClass) Yards() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("yards")) return rv } -// The decimeters unit of length. [Full Topic] +// The yards unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856007-decimeters?language=objc -func UnitLength_Decimeters() UnitLength { - return UnitLengthClass.Decimeters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855993-yards?language=objc +func UnitLength_Yards() UnitLength { + return UnitLengthClass.Yards() } -// The inches unit of length. [Full Topic] +// The kilometers unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856018-inches?language=objc -func (uc _UnitLengthClass) Inches() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("inches")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856106-kilometers?language=objc +func (uc _UnitLengthClass) Kilometers() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("kilometers")) return rv } -// The inches unit of length. [Full Topic] +// The kilometers unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856018-inches?language=objc -func UnitLength_Inches() UnitLength { - return UnitLengthClass.Inches() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856106-kilometers?language=objc +func UnitLength_Kilometers() UnitLength { + return UnitLengthClass.Kilometers() } -// The astronomical units unit of length. [Full Topic] +// The meters unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856087-astronomicalunits?language=objc -func (uc _UnitLengthClass) AstronomicalUnits() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("astronomicalUnits")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855995-meters?language=objc +func (uc _UnitLengthClass) Meters() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("meters")) return rv } -// The astronomical units unit of length. [Full Topic] +// The meters unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856087-astronomicalunits?language=objc -func UnitLength_AstronomicalUnits() UnitLength { - return UnitLengthClass.AstronomicalUnits() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855995-meters?language=objc +func UnitLength_Meters() UnitLength { + return UnitLengthClass.Meters() } -// The miles unit of length. [Full Topic] +// The picometers unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856016-miles?language=objc -func (uc _UnitLengthClass) Miles() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("miles")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856012-picometers?language=objc +func (uc _UnitLengthClass) Picometers() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("picometers")) return rv } -// The miles unit of length. [Full Topic] +// The picometers unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856016-miles?language=objc -func UnitLength_Miles() UnitLength { - return UnitLengthClass.Miles() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856012-picometers?language=objc +func UnitLength_Picometers() UnitLength { + return UnitLengthClass.Picometers() } -// The yards unit of length. [Full Topic] +// The micrometers unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855993-yards?language=objc -func (uc _UnitLengthClass) Yards() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("yards")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855998-micrometers?language=objc +func (uc _UnitLengthClass) Micrometers() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("micrometers")) return rv } -// The yards unit of length. [Full Topic] +// The micrometers unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855993-yards?language=objc -func UnitLength_Yards() UnitLength { - return UnitLengthClass.Yards() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855998-micrometers?language=objc +func UnitLength_Micrometers() UnitLength { + return UnitLengthClass.Micrometers() } -// The parsecs unit of length. [Full Topic] +// The centimeters unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856021-parsecs?language=objc -func (uc _UnitLengthClass) Parsecs() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("parsecs")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856082-centimeters?language=objc +func (uc _UnitLengthClass) Centimeters() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("centimeters")) return rv } -// The parsecs unit of length. [Full Topic] +// The centimeters unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856021-parsecs?language=objc -func UnitLength_Parsecs() UnitLength { - return UnitLengthClass.Parsecs() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856082-centimeters?language=objc +func UnitLength_Centimeters() UnitLength { + return UnitLengthClass.Centimeters() } -// The nautical miles unit of length. [Full Topic] +// The decimeters unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855986-nauticalmiles?language=objc -func (uc _UnitLengthClass) NauticalMiles() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("nauticalMiles")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856007-decimeters?language=objc +func (uc _UnitLengthClass) Decimeters() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("decimeters")) return rv } -// The nautical miles unit of length. [Full Topic] +// The decimeters unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1855986-nauticalmiles?language=objc -func UnitLength_NauticalMiles() UnitLength { - return UnitLengthClass.NauticalMiles() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856007-decimeters?language=objc +func UnitLength_Decimeters() UnitLength { + return UnitLengthClass.Decimeters() } -// The nanometers unit of length. [Full Topic] +// The Scandinavian miles unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856004-nanometers?language=objc -func (uc _UnitLengthClass) Nanometers() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("nanometers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856061-scandinavianmiles?language=objc +func (uc _UnitLengthClass) ScandinavianMiles() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("scandinavianMiles")) return rv } -// The nanometers unit of length. [Full Topic] +// The Scandinavian miles unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856004-nanometers?language=objc -func UnitLength_Nanometers() UnitLength { - return UnitLengthClass.Nanometers() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856061-scandinavianmiles?language=objc +func UnitLength_ScandinavianMiles() UnitLength { + return UnitLengthClass.ScandinavianMiles() } -// The megameters unit of length. [Full Topic] +// The decameters unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856036-megameters?language=objc -func (uc _UnitLengthClass) Megameters() UnitLength { - rv := objc.Call[UnitLength](uc, objc.Sel("megameters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856042-decameters?language=objc +func (uc _UnitLengthClass) Decameters() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("decameters")) return rv } -// The megameters unit of length. [Full Topic] +// The decameters unit of length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856036-megameters?language=objc -func UnitLength_Megameters() UnitLength { - return UnitLengthClass.Megameters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856042-decameters?language=objc +func UnitLength_Decameters() UnitLength { + return UnitLengthClass.Decameters() } diff --git a/macos/foundation/unit_mass.gen.go b/macos/foundation/unit_mass.gen.go index 94a3c781..a80e97de 100644 --- a/macos/foundation/unit_mass.gen.go +++ b/macos/foundation/unit_mass.gen.go @@ -53,6 +53,18 @@ func (u_ UnitMass) Init() UnitMass { return rv } +func (uc _UnitMassClass) BaseUnit() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitMass_BaseUnit() UnitMass { + return UnitMassClass.BaseUnit() +} + func (u_ UnitMass) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitMass { rv := objc.Call[UnitMass](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitMassWithSymbolConverter(symbol string, converter IUnitConverter) Uni return instance } -func (uc _UnitMassClass) BaseUnit() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitMass_BaseUnit() UnitMass { - return UnitMassClass.BaseUnit() -} - func (u_ UnitMass) InitWithSymbol(symbol string) UnitMass { rv := objc.Call[UnitMass](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,139 +93,124 @@ func NewUnitMassWithSymbol(symbol string) UnitMass { return instance } -// The kilograms unit of mass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1855996-kilograms?language=objc -func (uc _UnitMassClass) Kilograms() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("kilograms")) - return rv -} - -// The kilograms unit of mass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1855996-kilograms?language=objc -func UnitMass_Kilograms() UnitMass { - return UnitMassClass.Kilograms() -} - -// The centigrams unit of mass. [Full Topic] +// The micrograms unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856116-centigrams?language=objc -func (uc _UnitMassClass) Centigrams() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("centigrams")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856010-micrograms?language=objc +func (uc _UnitMassClass) Micrograms() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("micrograms")) return rv } -// The centigrams unit of mass. [Full Topic] +// The micrograms unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856116-centigrams?language=objc -func UnitMass_Centigrams() UnitMass { - return UnitMassClass.Centigrams() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856010-micrograms?language=objc +func UnitMass_Micrograms() UnitMass { + return UnitMassClass.Micrograms() } -// The metric tons unit of mass. [Full Topic] +// The milligrams unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856076-metrictons?language=objc -func (uc _UnitMassClass) MetricTons() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("metricTons")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856060-milligrams?language=objc +func (uc _UnitMassClass) Milligrams() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("milligrams")) return rv } -// The metric tons unit of mass. [Full Topic] +// The milligrams unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856076-metrictons?language=objc -func UnitMass_MetricTons() UnitMass { - return UnitMassClass.MetricTons() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856060-milligrams?language=objc +func UnitMass_Milligrams() UnitMass { + return UnitMassClass.Milligrams() } -// The micrograms unit of mass. [Full Topic] +// The grams unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856010-micrograms?language=objc -func (uc _UnitMassClass) Micrograms() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("micrograms")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1855976-grams?language=objc +func (uc _UnitMassClass) Grams() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("grams")) return rv } -// The micrograms unit of mass. [Full Topic] +// The grams unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856010-micrograms?language=objc -func UnitMass_Micrograms() UnitMass { - return UnitMassClass.Micrograms() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1855976-grams?language=objc +func UnitMass_Grams() UnitMass { + return UnitMassClass.Grams() } -// The stone unit of mass. [Full Topic] +// The carats unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856033-stones?language=objc -func (uc _UnitMassClass) Stones() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("stones")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856037-carats?language=objc +func (uc _UnitMassClass) Carats() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("carats")) return rv } -// The stone unit of mass. [Full Topic] +// The carats unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856033-stones?language=objc -func UnitMass_Stones() UnitMass { - return UnitMassClass.Stones() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856037-carats?language=objc +func UnitMass_Carats() UnitMass { + return UnitMassClass.Carats() } -// The ounces unit of mass. [Full Topic] +// The short tons unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856056-ounces?language=objc -func (uc _UnitMassClass) Ounces() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("ounces")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856081-shorttons?language=objc +func (uc _UnitMassClass) ShortTons() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("shortTons")) return rv } -// The ounces unit of mass. [Full Topic] +// The short tons unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856056-ounces?language=objc -func UnitMass_Ounces() UnitMass { - return UnitMassClass.Ounces() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856081-shorttons?language=objc +func UnitMass_ShortTons() UnitMass { + return UnitMassClass.ShortTons() } -// The decigrams unit of mass. [Full Topic] +// The nanograms unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856063-decigrams?language=objc -func (uc _UnitMassClass) Decigrams() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("decigrams")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856078-nanograms?language=objc +func (uc _UnitMassClass) Nanograms() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("nanograms")) return rv } -// The decigrams unit of mass. [Full Topic] +// The nanograms unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856063-decigrams?language=objc -func UnitMass_Decigrams() UnitMass { - return UnitMassClass.Decigrams() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856078-nanograms?language=objc +func UnitMass_Nanograms() UnitMass { + return UnitMassClass.Nanograms() } -// The carats unit of mass. [Full Topic] +// The centigrams unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856037-carats?language=objc -func (uc _UnitMassClass) Carats() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("carats")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856116-centigrams?language=objc +func (uc _UnitMassClass) Centigrams() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("centigrams")) return rv } -// The carats unit of mass. [Full Topic] +// The centigrams unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856037-carats?language=objc -func UnitMass_Carats() UnitMass { - return UnitMassClass.Carats() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856116-centigrams?language=objc +func UnitMass_Centigrams() UnitMass { + return UnitMassClass.Centigrams() } -// The slugs unit of mass. [Full Topic] +// The kilograms unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856027-slugs?language=objc -func (uc _UnitMassClass) Slugs() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("slugs")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1855996-kilograms?language=objc +func (uc _UnitMassClass) Kilograms() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("kilograms")) return rv } -// The slugs unit of mass. [Full Topic] +// The kilograms unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856027-slugs?language=objc -func UnitMass_Slugs() UnitMass { - return UnitMassClass.Slugs() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1855996-kilograms?language=objc +func UnitMass_Kilograms() UnitMass { + return UnitMassClass.Kilograms() } // The ounces troy unit of mass. [Full Topic] @@ -243,19 +228,34 @@ func UnitMass_OuncesTroy() UnitMass { return UnitMassClass.OuncesTroy() } -// The milligrams unit of mass. [Full Topic] +// The decigrams unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856060-milligrams?language=objc -func (uc _UnitMassClass) Milligrams() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("milligrams")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856063-decigrams?language=objc +func (uc _UnitMassClass) Decigrams() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("decigrams")) return rv } -// The milligrams unit of mass. [Full Topic] +// The decigrams unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856060-milligrams?language=objc -func UnitMass_Milligrams() UnitMass { - return UnitMassClass.Milligrams() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856063-decigrams?language=objc +func UnitMass_Decigrams() UnitMass { + return UnitMassClass.Decigrams() +} + +// The slugs unit of mass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856027-slugs?language=objc +func (uc _UnitMassClass) Slugs() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("slugs")) + return rv +} + +// The slugs unit of mass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856027-slugs?language=objc +func UnitMass_Slugs() UnitMass { + return UnitMassClass.Slugs() } // The pounds unit of mass. [Full Topic] @@ -273,49 +273,49 @@ func UnitMass_PoundsMass() UnitMass { return UnitMassClass.PoundsMass() } -// The nanograms unit of mass. [Full Topic] +// The ounces unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856078-nanograms?language=objc -func (uc _UnitMassClass) Nanograms() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("nanograms")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856056-ounces?language=objc +func (uc _UnitMassClass) Ounces() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("ounces")) return rv } -// The nanograms unit of mass. [Full Topic] +// The ounces unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856078-nanograms?language=objc -func UnitMass_Nanograms() UnitMass { - return UnitMassClass.Nanograms() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856056-ounces?language=objc +func UnitMass_Ounces() UnitMass { + return UnitMassClass.Ounces() } -// The short tons unit of mass. [Full Topic] +// The stone unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856081-shorttons?language=objc -func (uc _UnitMassClass) ShortTons() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("shortTons")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856033-stones?language=objc +func (uc _UnitMassClass) Stones() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("stones")) return rv } -// The short tons unit of mass. [Full Topic] +// The stone unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856081-shorttons?language=objc -func UnitMass_ShortTons() UnitMass { - return UnitMassClass.ShortTons() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856033-stones?language=objc +func UnitMass_Stones() UnitMass { + return UnitMassClass.Stones() } -// The grams unit of mass. [Full Topic] +// The metric tons unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1855976-grams?language=objc -func (uc _UnitMassClass) Grams() UnitMass { - rv := objc.Call[UnitMass](uc, objc.Sel("grams")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856076-metrictons?language=objc +func (uc _UnitMassClass) MetricTons() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("metricTons")) return rv } -// The grams unit of mass. [Full Topic] +// The metric tons unit of mass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1855976-grams?language=objc -func UnitMass_Grams() UnitMass { - return UnitMassClass.Grams() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856076-metrictons?language=objc +func UnitMass_MetricTons() UnitMass { + return UnitMassClass.MetricTons() } // The picograms unit of mass. [Full Topic] diff --git a/macos/foundation/unit_power.gen.go b/macos/foundation/unit_power.gen.go index 78706490..fe504648 100644 --- a/macos/foundation/unit_power.gen.go +++ b/macos/foundation/unit_power.gen.go @@ -53,6 +53,18 @@ func (u_ UnitPower) Init() UnitPower { return rv } +func (uc _UnitPowerClass) BaseUnit() UnitPower { + rv := objc.Call[UnitPower](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitPower_BaseUnit() UnitPower { + return UnitPowerClass.BaseUnit() +} + func (u_ UnitPower) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitPower { rv := objc.Call[UnitPower](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitPowerWithSymbolConverter(symbol string, converter IUnitConverter) Un return instance } -func (uc _UnitPowerClass) BaseUnit() UnitPower { - rv := objc.Call[UnitPower](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitPower_BaseUnit() UnitPower { - return UnitPowerClass.BaseUnit() -} - func (u_ UnitPower) InitWithSymbol(symbol string) UnitPower { rv := objc.Call[UnitPower](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,34 +93,49 @@ func NewUnitPowerWithSymbol(symbol string) UnitPower { return instance } -// The kilowatts unit of power. [Full Topic] +// The femtowatts unit of power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856084-kilowatts?language=objc -func (uc _UnitPowerClass) Kilowatts() UnitPower { - rv := objc.Call[UnitPower](uc, objc.Sel("kilowatts")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856043-femtowatts?language=objc +func (uc _UnitPowerClass) Femtowatts() UnitPower { + rv := objc.Call[UnitPower](uc, objc.Sel("femtowatts")) return rv } -// The kilowatts unit of power. [Full Topic] +// The femtowatts unit of power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856084-kilowatts?language=objc -func UnitPower_Kilowatts() UnitPower { - return UnitPowerClass.Kilowatts() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856043-femtowatts?language=objc +func UnitPower_Femtowatts() UnitPower { + return UnitPowerClass.Femtowatts() } -// The megawatts unit of power. [Full Topic] +// The picowatts unit of power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856073-megawatts?language=objc -func (uc _UnitPowerClass) Megawatts() UnitPower { - rv := objc.Call[UnitPower](uc, objc.Sel("megawatts")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856104-picowatts?language=objc +func (uc _UnitPowerClass) Picowatts() UnitPower { + rv := objc.Call[UnitPower](uc, objc.Sel("picowatts")) return rv } -// The megawatts unit of power. [Full Topic] +// The picowatts unit of power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856073-megawatts?language=objc -func UnitPower_Megawatts() UnitPower { - return UnitPowerClass.Megawatts() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856104-picowatts?language=objc +func UnitPower_Picowatts() UnitPower { + return UnitPowerClass.Picowatts() +} + +// The terawatts unit of power. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856100-terawatts?language=objc +func (uc _UnitPowerClass) Terawatts() UnitPower { + rv := objc.Call[UnitPower](uc, objc.Sel("terawatts")) + return rv +} + +// The terawatts unit of power. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856100-terawatts?language=objc +func UnitPower_Terawatts() UnitPower { + return UnitPowerClass.Terawatts() } // The milliwatts unit of power. [Full Topic] @@ -138,21 +153,6 @@ func UnitPower_Milliwatts() UnitPower { return UnitPowerClass.Milliwatts() } -// The gigawatts unit of power. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856108-gigawatts?language=objc -func (uc _UnitPowerClass) Gigawatts() UnitPower { - rv := objc.Call[UnitPower](uc, objc.Sel("gigawatts")) - return rv -} - -// The gigawatts unit of power. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856108-gigawatts?language=objc -func UnitPower_Gigawatts() UnitPower { - return UnitPowerClass.Gigawatts() -} - // The watts unit of power. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856075-watts?language=objc @@ -168,21 +168,6 @@ func UnitPower_Watts() UnitPower { return UnitPowerClass.Watts() } -// The microwatts unit of power. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856051-microwatts?language=objc -func (uc _UnitPowerClass) Microwatts() UnitPower { - rv := objc.Call[UnitPower](uc, objc.Sel("microwatts")) - return rv -} - -// The microwatts unit of power. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856051-microwatts?language=objc -func UnitPower_Microwatts() UnitPower { - return UnitPowerClass.Microwatts() -} - // The nanowatts unit of power. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1855999-nanowatts?language=objc @@ -198,34 +183,34 @@ func UnitPower_Nanowatts() UnitPower { return UnitPowerClass.Nanowatts() } -// The femtowatts unit of power. [Full Topic] +// The kilowatts unit of power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856043-femtowatts?language=objc -func (uc _UnitPowerClass) Femtowatts() UnitPower { - rv := objc.Call[UnitPower](uc, objc.Sel("femtowatts")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856084-kilowatts?language=objc +func (uc _UnitPowerClass) Kilowatts() UnitPower { + rv := objc.Call[UnitPower](uc, objc.Sel("kilowatts")) return rv } -// The femtowatts unit of power. [Full Topic] +// The kilowatts unit of power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856043-femtowatts?language=objc -func UnitPower_Femtowatts() UnitPower { - return UnitPowerClass.Femtowatts() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856084-kilowatts?language=objc +func UnitPower_Kilowatts() UnitPower { + return UnitPowerClass.Kilowatts() } -// The picowatts unit of power. [Full Topic] +// The megawatts unit of power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856104-picowatts?language=objc -func (uc _UnitPowerClass) Picowatts() UnitPower { - rv := objc.Call[UnitPower](uc, objc.Sel("picowatts")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856073-megawatts?language=objc +func (uc _UnitPowerClass) Megawatts() UnitPower { + rv := objc.Call[UnitPower](uc, objc.Sel("megawatts")) return rv } -// The picowatts unit of power. [Full Topic] +// The megawatts unit of power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856104-picowatts?language=objc -func UnitPower_Picowatts() UnitPower { - return UnitPowerClass.Picowatts() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856073-megawatts?language=objc +func UnitPower_Megawatts() UnitPower { + return UnitPowerClass.Megawatts() } // The horsepower unit of power. [Full Topic] @@ -243,17 +228,32 @@ func UnitPower_Horsepower() UnitPower { return UnitPowerClass.Horsepower() } -// The terawatts unit of power. [Full Topic] +// The microwatts unit of power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856100-terawatts?language=objc -func (uc _UnitPowerClass) Terawatts() UnitPower { - rv := objc.Call[UnitPower](uc, objc.Sel("terawatts")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856051-microwatts?language=objc +func (uc _UnitPowerClass) Microwatts() UnitPower { + rv := objc.Call[UnitPower](uc, objc.Sel("microwatts")) return rv } -// The terawatts unit of power. [Full Topic] +// The microwatts unit of power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856100-terawatts?language=objc -func UnitPower_Terawatts() UnitPower { - return UnitPowerClass.Terawatts() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856051-microwatts?language=objc +func UnitPower_Microwatts() UnitPower { + return UnitPowerClass.Microwatts() +} + +// The gigawatts unit of power. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856108-gigawatts?language=objc +func (uc _UnitPowerClass) Gigawatts() UnitPower { + rv := objc.Call[UnitPower](uc, objc.Sel("gigawatts")) + return rv +} + +// The gigawatts unit of power. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856108-gigawatts?language=objc +func UnitPower_Gigawatts() UnitPower { + return UnitPowerClass.Gigawatts() } diff --git a/macos/foundation/unit_pressure.gen.go b/macos/foundation/unit_pressure.gen.go index 4318b313..137d8ce3 100644 --- a/macos/foundation/unit_pressure.gen.go +++ b/macos/foundation/unit_pressure.gen.go @@ -53,6 +53,18 @@ func (u_ UnitPressure) Init() UnitPressure { return rv } +func (uc _UnitPressureClass) BaseUnit() UnitPressure { + rv := objc.Call[UnitPressure](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitPressure_BaseUnit() UnitPressure { + return UnitPressureClass.BaseUnit() +} + func (u_ UnitPressure) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitPressure { rv := objc.Call[UnitPressure](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitPressureWithSymbolConverter(symbol string, converter IUnitConverter) return instance } -func (uc _UnitPressureClass) BaseUnit() UnitPressure { - rv := objc.Call[UnitPressure](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitPressure_BaseUnit() UnitPressure { - return UnitPressureClass.BaseUnit() -} - func (u_ UnitPressure) InitWithSymbol(symbol string) UnitPressure { rv := objc.Call[UnitPressure](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -108,6 +108,21 @@ func UnitPressure_Gigapascals() UnitPressure { return UnitPressureClass.Gigapascals() } +// The pounds per square inch unit of pressure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856077-poundsforcepersquareinch?language=objc +func (uc _UnitPressureClass) PoundsForcePerSquareInch() UnitPressure { + rv := objc.Call[UnitPressure](uc, objc.Sel("poundsForcePerSquareInch")) + return rv +} + +// The pounds per square inch unit of pressure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856077-poundsforcepersquareinch?language=objc +func UnitPressure_PoundsForcePerSquareInch() UnitPressure { + return UnitPressureClass.PoundsForcePerSquareInch() +} + // The bars unit of pressure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856109-bars?language=objc @@ -123,6 +138,21 @@ func UnitPressure_Bars() UnitPressure { return UnitPressureClass.Bars() } +// The newtons per square meter unit of pressure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856096-newtonspermeterssquared?language=objc +func (uc _UnitPressureClass) NewtonsPerMetersSquared() UnitPressure { + rv := objc.Call[UnitPressure](uc, objc.Sel("newtonsPerMetersSquared")) + return rv +} + +// The newtons per square meter unit of pressure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856096-newtonspermeterssquared?language=objc +func UnitPressure_NewtonsPerMetersSquared() UnitPressure { + return UnitPressureClass.NewtonsPerMetersSquared() +} + // The millibars unit of pressure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856093-millibars?language=objc @@ -138,21 +168,6 @@ func UnitPressure_Millibars() UnitPressure { return UnitPressureClass.Millibars() } -// The millimeters of mercury unit of pressure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856052-millimetersofmercury?language=objc -func (uc _UnitPressureClass) MillimetersOfMercury() UnitPressure { - rv := objc.Call[UnitPressure](uc, objc.Sel("millimetersOfMercury")) - return rv -} - -// The millimeters of mercury unit of pressure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856052-millimetersofmercury?language=objc -func UnitPressure_MillimetersOfMercury() UnitPressure { - return UnitPressureClass.MillimetersOfMercury() -} - // The hectopascals unit of pressure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856111-hectopascals?language=objc @@ -168,6 +183,21 @@ func UnitPressure_Hectopascals() UnitPressure { return UnitPressureClass.Hectopascals() } +// The millimeters of mercury unit of pressure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856052-millimetersofmercury?language=objc +func (uc _UnitPressureClass) MillimetersOfMercury() UnitPressure { + rv := objc.Call[UnitPressure](uc, objc.Sel("millimetersOfMercury")) + return rv +} + +// The millimeters of mercury unit of pressure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856052-millimetersofmercury?language=objc +func UnitPressure_MillimetersOfMercury() UnitPressure { + return UnitPressureClass.MillimetersOfMercury() +} + // The kilopascals unit of pressure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856057-kilopascals?language=objc @@ -183,36 +213,6 @@ func UnitPressure_Kilopascals() UnitPressure { return UnitPressureClass.Kilopascals() } -// The pounds per square inch unit of pressure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856077-poundsforcepersquareinch?language=objc -func (uc _UnitPressureClass) PoundsForcePerSquareInch() UnitPressure { - rv := objc.Call[UnitPressure](uc, objc.Sel("poundsForcePerSquareInch")) - return rv -} - -// The pounds per square inch unit of pressure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856077-poundsforcepersquareinch?language=objc -func UnitPressure_PoundsForcePerSquareInch() UnitPressure { - return UnitPressureClass.PoundsForcePerSquareInch() -} - -// The newtons per square meter unit of pressure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856096-newtonspermeterssquared?language=objc -func (uc _UnitPressureClass) NewtonsPerMetersSquared() UnitPressure { - rv := objc.Call[UnitPressure](uc, objc.Sel("newtonsPerMetersSquared")) - return rv -} - -// The newtons per square meter unit of pressure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856096-newtonspermeterssquared?language=objc -func UnitPressure_NewtonsPerMetersSquared() UnitPressure { - return UnitPressureClass.NewtonsPerMetersSquared() -} - // The inches of mercury unit of pressure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856074-inchesofmercury?language=objc diff --git a/macos/foundation/unit_speed.gen.go b/macos/foundation/unit_speed.gen.go index d8ff2d59..2aac8758 100644 --- a/macos/foundation/unit_speed.gen.go +++ b/macos/foundation/unit_speed.gen.go @@ -53,6 +53,18 @@ func (u_ UnitSpeed) Init() UnitSpeed { return rv } +func (uc _UnitSpeedClass) BaseUnit() UnitSpeed { + rv := objc.Call[UnitSpeed](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitSpeed_BaseUnit() UnitSpeed { + return UnitSpeedClass.BaseUnit() +} + func (u_ UnitSpeed) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitSpeed { rv := objc.Call[UnitSpeed](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitSpeedWithSymbolConverter(symbol string, converter IUnitConverter) Un return instance } -func (uc _UnitSpeedClass) BaseUnit() UnitSpeed { - rv := objc.Call[UnitSpeed](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitSpeed_BaseUnit() UnitSpeed { - return UnitSpeedClass.BaseUnit() -} - func (u_ UnitSpeed) InitWithSymbol(symbol string) UnitSpeed { rv := objc.Call[UnitSpeed](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,21 +93,6 @@ func NewUnitSpeedWithSymbol(symbol string) UnitSpeed { return instance } -// The miles per hour unit of speed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitspeed/1856098-milesperhour?language=objc -func (uc _UnitSpeedClass) MilesPerHour() UnitSpeed { - rv := objc.Call[UnitSpeed](uc, objc.Sel("milesPerHour")) - return rv -} - -// The miles per hour unit of speed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitspeed/1856098-milesperhour?language=objc -func UnitSpeed_MilesPerHour() UnitSpeed { - return UnitSpeedClass.MilesPerHour() -} - // The knots unit of speed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitspeed/1856050-knots?language=objc @@ -152,3 +137,18 @@ func (uc _UnitSpeedClass) KilometersPerHour() UnitSpeed { func UnitSpeed_KilometersPerHour() UnitSpeed { return UnitSpeedClass.KilometersPerHour() } + +// The miles per hour unit of speed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitspeed/1856098-milesperhour?language=objc +func (uc _UnitSpeedClass) MilesPerHour() UnitSpeed { + rv := objc.Call[UnitSpeed](uc, objc.Sel("milesPerHour")) + return rv +} + +// The miles per hour unit of speed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitspeed/1856098-milesperhour?language=objc +func UnitSpeed_MilesPerHour() UnitSpeed { + return UnitSpeedClass.MilesPerHour() +} diff --git a/macos/foundation/unit_temperature.gen.go b/macos/foundation/unit_temperature.gen.go index d2ee8659..96545e14 100644 --- a/macos/foundation/unit_temperature.gen.go +++ b/macos/foundation/unit_temperature.gen.go @@ -53,6 +53,18 @@ func (u_ UnitTemperature) Init() UnitTemperature { return rv } +func (uc _UnitTemperatureClass) BaseUnit() UnitTemperature { + rv := objc.Call[UnitTemperature](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitTemperature_BaseUnit() UnitTemperature { + return UnitTemperatureClass.BaseUnit() +} + func (u_ UnitTemperature) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitTemperature { rv := objc.Call[UnitTemperature](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitTemperatureWithSymbolConverter(symbol string, converter IUnitConvert return instance } -func (uc _UnitTemperatureClass) BaseUnit() UnitTemperature { - rv := objc.Call[UnitTemperature](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitTemperature_BaseUnit() UnitTemperature { - return UnitTemperatureClass.BaseUnit() -} - func (u_ UnitTemperature) InitWithSymbol(symbol string) UnitTemperature { rv := objc.Call[UnitTemperature](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -108,21 +108,6 @@ func UnitTemperature_Kelvin() UnitTemperature { return UnitTemperatureClass.Kelvin() } -// The degree Fahrenheit unit of temperature. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunittemperature/1690842-fahrenheit?language=objc -func (uc _UnitTemperatureClass) Fahrenheit() UnitTemperature { - rv := objc.Call[UnitTemperature](uc, objc.Sel("fahrenheit")) - return rv -} - -// The degree Fahrenheit unit of temperature. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunittemperature/1690842-fahrenheit?language=objc -func UnitTemperature_Fahrenheit() UnitTemperature { - return UnitTemperatureClass.Fahrenheit() -} - // The degree Celsius unit of temperature. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunittemperature/1690835-celsius?language=objc @@ -137,3 +122,18 @@ func (uc _UnitTemperatureClass) Celsius() UnitTemperature { func UnitTemperature_Celsius() UnitTemperature { return UnitTemperatureClass.Celsius() } + +// The degree Fahrenheit unit of temperature. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunittemperature/1690842-fahrenheit?language=objc +func (uc _UnitTemperatureClass) Fahrenheit() UnitTemperature { + rv := objc.Call[UnitTemperature](uc, objc.Sel("fahrenheit")) + return rv +} + +// The degree Fahrenheit unit of temperature. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunittemperature/1690842-fahrenheit?language=objc +func UnitTemperature_Fahrenheit() UnitTemperature { + return UnitTemperatureClass.Fahrenheit() +} diff --git a/macos/foundation/unit_volume.gen.go b/macos/foundation/unit_volume.gen.go index 8cddc82c..72b84dba 100644 --- a/macos/foundation/unit_volume.gen.go +++ b/macos/foundation/unit_volume.gen.go @@ -53,6 +53,18 @@ func (u_ UnitVolume) Init() UnitVolume { return rv } +func (uc _UnitVolumeClass) BaseUnit() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("baseUnit")) + return rv +} + +// Returns the base unit. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc +func UnitVolume_BaseUnit() UnitVolume { + return UnitVolumeClass.BaseUnit() +} + func (u_ UnitVolume) InitWithSymbolConverter(symbol string, converter IUnitConverter) UnitVolume { rv := objc.Call[UnitVolume](u_, objc.Sel("initWithSymbol:converter:"), symbol, converter) return rv @@ -67,18 +79,6 @@ func NewUnitVolumeWithSymbolConverter(symbol string, converter IUnitConverter) U return instance } -func (uc _UnitVolumeClass) BaseUnit() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("baseUnit")) - return rv -} - -// Returns the base unit. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdimension/1690740-baseunit?language=objc -func UnitVolume_BaseUnit() UnitVolume { - return UnitVolumeClass.BaseUnit() -} - func (u_ UnitVolume) InitWithSymbol(symbol string) UnitVolume { rv := objc.Call[UnitVolume](u_, objc.Sel("initWithSymbol:"), symbol) return rv @@ -93,259 +93,259 @@ func NewUnitVolumeWithSymbol(symbol string) UnitVolume { return instance } -// The cubic miles unit of volume. [Full Topic] +// The megaliters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856002-cubicmiles?language=objc -func (uc _UnitVolumeClass) CubicMiles() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("cubicMiles")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856080-megaliters?language=objc +func (uc _UnitVolumeClass) Megaliters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("megaliters")) return rv } -// The cubic miles unit of volume. [Full Topic] +// The megaliters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856002-cubicmiles?language=objc -func UnitVolume_CubicMiles() UnitVolume { - return UnitVolumeClass.CubicMiles() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856080-megaliters?language=objc +func UnitVolume_Megaliters() UnitVolume { + return UnitVolumeClass.Megaliters() } -// The cups unit of volume. [Full Topic] +// The gallons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855982-cups?language=objc -func (uc _UnitVolumeClass) Cups() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("cups")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856105-gallons?language=objc +func (uc _UnitVolumeClass) Gallons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("gallons")) return rv } -// The cups unit of volume. [Full Topic] +// The gallons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855982-cups?language=objc -func UnitVolume_Cups() UnitVolume { - return UnitVolumeClass.Cups() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856105-gallons?language=objc +func UnitVolume_Gallons() UnitVolume { + return UnitVolumeClass.Gallons() } -// The teaspoons unit of volume. [Full Topic] +// The imperial gallons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855977-teaspoons?language=objc -func (uc _UnitVolumeClass) Teaspoons() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("teaspoons")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855997-imperialgallons?language=objc +func (uc _UnitVolumeClass) ImperialGallons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialGallons")) return rv } -// The teaspoons unit of volume. [Full Topic] +// The imperial gallons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855977-teaspoons?language=objc -func UnitVolume_Teaspoons() UnitVolume { - return UnitVolumeClass.Teaspoons() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855997-imperialgallons?language=objc +func UnitVolume_ImperialGallons() UnitVolume { + return UnitVolumeClass.ImperialGallons() } -// The cubic decimeters unit of volume. [Full Topic] +// The cubic kilometers unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856048-cubicdecimeters?language=objc -func (uc _UnitVolumeClass) CubicDecimeters() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("cubicDecimeters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856034-cubickilometers?language=objc +func (uc _UnitVolumeClass) CubicKilometers() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicKilometers")) return rv } -// The cubic decimeters unit of volume. [Full Topic] +// The cubic kilometers unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856048-cubicdecimeters?language=objc -func UnitVolume_CubicDecimeters() UnitVolume { - return UnitVolumeClass.CubicDecimeters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856034-cubickilometers?language=objc +func UnitVolume_CubicKilometers() UnitVolume { + return UnitVolumeClass.CubicKilometers() } -// The acre feet unit of volume. [Full Topic] +// The teaspoons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855978-acrefeet?language=objc -func (uc _UnitVolumeClass) AcreFeet() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("acreFeet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855977-teaspoons?language=objc +func (uc _UnitVolumeClass) Teaspoons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("teaspoons")) return rv } -// The acre feet unit of volume. [Full Topic] +// The teaspoons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855978-acrefeet?language=objc -func UnitVolume_AcreFeet() UnitVolume { - return UnitVolumeClass.AcreFeet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855977-teaspoons?language=objc +func UnitVolume_Teaspoons() UnitVolume { + return UnitVolumeClass.Teaspoons() } -// The cubic inches unit of volume. [Full Topic] +// The cubic centimeters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856026-cubicinches?language=objc -func (uc _UnitVolumeClass) CubicInches() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("cubicInches")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856112-cubiccentimeters?language=objc +func (uc _UnitVolumeClass) CubicCentimeters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicCentimeters")) return rv } -// The cubic inches unit of volume. [Full Topic] +// The cubic centimeters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856026-cubicinches?language=objc -func UnitVolume_CubicInches() UnitVolume { - return UnitVolumeClass.CubicInches() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856112-cubiccentimeters?language=objc +func UnitVolume_CubicCentimeters() UnitVolume { + return UnitVolumeClass.CubicCentimeters() } -// The liters unit of volume. [Full Topic] +// The cups unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856011-liters?language=objc -func (uc _UnitVolumeClass) Liters() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("liters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855982-cups?language=objc +func (uc _UnitVolumeClass) Cups() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cups")) return rv } -// The liters unit of volume. [Full Topic] +// The cups unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856011-liters?language=objc -func UnitVolume_Liters() UnitVolume { - return UnitVolumeClass.Liters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855982-cups?language=objc +func UnitVolume_Cups() UnitVolume { + return UnitVolumeClass.Cups() } -// The cubic centimeters unit of volume. [Full Topic] +// The cubic decimeters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856112-cubiccentimeters?language=objc -func (uc _UnitVolumeClass) CubicCentimeters() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("cubicCentimeters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856048-cubicdecimeters?language=objc +func (uc _UnitVolumeClass) CubicDecimeters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicDecimeters")) return rv } -// The cubic centimeters unit of volume. [Full Topic] +// The cubic decimeters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856112-cubiccentimeters?language=objc -func UnitVolume_CubicCentimeters() UnitVolume { - return UnitVolumeClass.CubicCentimeters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856048-cubicdecimeters?language=objc +func UnitVolume_CubicDecimeters() UnitVolume { + return UnitVolumeClass.CubicDecimeters() } -// The deciliters unit of volume. [Full Topic] +// The imperial quarts unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856091-deciliters?language=objc -func (uc _UnitVolumeClass) Deciliters() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("deciliters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855971-imperialquarts?language=objc +func (uc _UnitVolumeClass) ImperialQuarts() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialQuarts")) return rv } -// The deciliters unit of volume. [Full Topic] +// The imperial quarts unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856091-deciliters?language=objc -func UnitVolume_Deciliters() UnitVolume { - return UnitVolumeClass.Deciliters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855971-imperialquarts?language=objc +func UnitVolume_ImperialQuarts() UnitVolume { + return UnitVolumeClass.ImperialQuarts() } -// The tablespoons unit of volume. [Full Topic] +// The quarts unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855991-tablespoons?language=objc -func (uc _UnitVolumeClass) Tablespoons() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("tablespoons")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856055-quarts?language=objc +func (uc _UnitVolumeClass) Quarts() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("quarts")) return rv } -// The tablespoons unit of volume. [Full Topic] +// The quarts unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855991-tablespoons?language=objc -func UnitVolume_Tablespoons() UnitVolume { - return UnitVolumeClass.Tablespoons() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856055-quarts?language=objc +func UnitVolume_Quarts() UnitVolume { + return UnitVolumeClass.Quarts() } -// The cubic kilometers unit of volume. [Full Topic] +// The cubic inches unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856034-cubickilometers?language=objc -func (uc _UnitVolumeClass) CubicKilometers() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("cubicKilometers")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856026-cubicinches?language=objc +func (uc _UnitVolumeClass) CubicInches() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicInches")) return rv } -// The cubic kilometers unit of volume. [Full Topic] +// The cubic inches unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856034-cubickilometers?language=objc -func UnitVolume_CubicKilometers() UnitVolume { - return UnitVolumeClass.CubicKilometers() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856026-cubicinches?language=objc +func UnitVolume_CubicInches() UnitVolume { + return UnitVolumeClass.CubicInches() } -// The kiloliters unit of volume. [Full Topic] +// The cubic feet unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856068-kiloliters?language=objc -func (uc _UnitVolumeClass) Kiloliters() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("kiloliters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856017-cubicfeet?language=objc +func (uc _UnitVolumeClass) CubicFeet() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicFeet")) return rv } -// The kiloliters unit of volume. [Full Topic] +// The cubic feet unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856068-kiloliters?language=objc -func UnitVolume_Kiloliters() UnitVolume { - return UnitVolumeClass.Kiloliters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856017-cubicfeet?language=objc +func UnitVolume_CubicFeet() UnitVolume { + return UnitVolumeClass.CubicFeet() } -// The centiliters unit of volume. [Full Topic] +// The milliliters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856040-centiliters?language=objc -func (uc _UnitVolumeClass) Centiliters() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("centiliters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856071-milliliters?language=objc +func (uc _UnitVolumeClass) Milliliters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("milliliters")) return rv } -// The centiliters unit of volume. [Full Topic] +// The milliliters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856040-centiliters?language=objc -func UnitVolume_Centiliters() UnitVolume { - return UnitVolumeClass.Centiliters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856071-milliliters?language=objc +func UnitVolume_Milliliters() UnitVolume { + return UnitVolumeClass.Milliliters() } -// The pints unit of volume. [Full Topic] +// The imperial pints unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856059-pints?language=objc -func (uc _UnitVolumeClass) Pints() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("pints")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855979-imperialpints?language=objc +func (uc _UnitVolumeClass) ImperialPints() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialPints")) return rv } -// The pints unit of volume. [Full Topic] +// The imperial pints unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856059-pints?language=objc -func UnitVolume_Pints() UnitVolume { - return UnitVolumeClass.Pints() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855979-imperialpints?language=objc +func UnitVolume_ImperialPints() UnitVolume { + return UnitVolumeClass.ImperialPints() } -// The imperial teaspoons unit of volume. [Full Topic] +// The cubic miles unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856103-imperialteaspoons?language=objc -func (uc _UnitVolumeClass) ImperialTeaspoons() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("imperialTeaspoons")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856002-cubicmiles?language=objc +func (uc _UnitVolumeClass) CubicMiles() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicMiles")) return rv } -// The imperial teaspoons unit of volume. [Full Topic] +// The cubic miles unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856103-imperialteaspoons?language=objc -func UnitVolume_ImperialTeaspoons() UnitVolume { - return UnitVolumeClass.ImperialTeaspoons() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856002-cubicmiles?language=objc +func UnitVolume_CubicMiles() UnitVolume { + return UnitVolumeClass.CubicMiles() } -// The cubic millimeters unit of volume. [Full Topic] +// The cubic yards unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856013-cubicmillimeters?language=objc -func (uc _UnitVolumeClass) CubicMillimeters() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("cubicMillimeters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856107-cubicyards?language=objc +func (uc _UnitVolumeClass) CubicYards() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicYards")) return rv } -// The cubic millimeters unit of volume. [Full Topic] +// The cubic yards unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856013-cubicmillimeters?language=objc -func UnitVolume_CubicMillimeters() UnitVolume { - return UnitVolumeClass.CubicMillimeters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856107-cubicyards?language=objc +func UnitVolume_CubicYards() UnitVolume { + return UnitVolumeClass.CubicYards() } -// The megaliters unit of volume. [Full Topic] +// The liters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856080-megaliters?language=objc -func (uc _UnitVolumeClass) Megaliters() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("megaliters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856011-liters?language=objc +func (uc _UnitVolumeClass) Liters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("liters")) return rv } -// The megaliters unit of volume. [Full Topic] +// The liters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856080-megaliters?language=objc -func UnitVolume_Megaliters() UnitVolume { - return UnitVolumeClass.Megaliters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856011-liters?language=objc +func UnitVolume_Liters() UnitVolume { + return UnitVolumeClass.Liters() } // The fluid ounces unit of volume. [Full Topic] @@ -363,197 +363,197 @@ func UnitVolume_FluidOunces() UnitVolume { return UnitVolumeClass.FluidOunces() } -// The metric cups unit of volume. [Full Topic] +// The kiloliters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856000-metriccups?language=objc -func (uc _UnitVolumeClass) MetricCups() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("metricCups")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856068-kiloliters?language=objc +func (uc _UnitVolumeClass) Kiloliters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("kiloliters")) return rv } -// The metric cups unit of volume. [Full Topic] +// The kiloliters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856000-metriccups?language=objc -func UnitVolume_MetricCups() UnitVolume { - return UnitVolumeClass.MetricCups() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856068-kiloliters?language=objc +func UnitVolume_Kiloliters() UnitVolume { + return UnitVolumeClass.Kiloliters() } -// The quarts unit of volume. [Full Topic] +// The imperial tablespoons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856055-quarts?language=objc -func (uc _UnitVolumeClass) Quarts() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("quarts")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855989-imperialtablespoons?language=objc +func (uc _UnitVolumeClass) ImperialTablespoons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialTablespoons")) return rv } -// The quarts unit of volume. [Full Topic] +// The imperial tablespoons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856055-quarts?language=objc -func UnitVolume_Quarts() UnitVolume { - return UnitVolumeClass.Quarts() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855989-imperialtablespoons?language=objc +func UnitVolume_ImperialTablespoons() UnitVolume { + return UnitVolumeClass.ImperialTablespoons() } -// The imperial pints unit of volume. [Full Topic] +// The acre feet unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855979-imperialpints?language=objc -func (uc _UnitVolumeClass) ImperialPints() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("imperialPints")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855978-acrefeet?language=objc +func (uc _UnitVolumeClass) AcreFeet() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("acreFeet")) return rv } -// The imperial pints unit of volume. [Full Topic] +// The acre feet unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855979-imperialpints?language=objc -func UnitVolume_ImperialPints() UnitVolume { - return UnitVolumeClass.ImperialPints() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855978-acrefeet?language=objc +func UnitVolume_AcreFeet() UnitVolume { + return UnitVolumeClass.AcreFeet() } -// The cubic meters unit of volume. [Full Topic] +// The tablespoons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856029-cubicmeters?language=objc -func (uc _UnitVolumeClass) CubicMeters() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("cubicMeters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855991-tablespoons?language=objc +func (uc _UnitVolumeClass) Tablespoons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("tablespoons")) return rv } -// The cubic meters unit of volume. [Full Topic] +// The tablespoons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856029-cubicmeters?language=objc -func UnitVolume_CubicMeters() UnitVolume { - return UnitVolumeClass.CubicMeters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855991-tablespoons?language=objc +func UnitVolume_Tablespoons() UnitVolume { + return UnitVolumeClass.Tablespoons() } -// The gallons unit of volume. [Full Topic] +// The imperial teaspoons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856105-gallons?language=objc -func (uc _UnitVolumeClass) Gallons() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("gallons")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856103-imperialteaspoons?language=objc +func (uc _UnitVolumeClass) ImperialTeaspoons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialTeaspoons")) return rv } -// The gallons unit of volume. [Full Topic] +// The imperial teaspoons unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856105-gallons?language=objc -func UnitVolume_Gallons() UnitVolume { - return UnitVolumeClass.Gallons() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856103-imperialteaspoons?language=objc +func UnitVolume_ImperialTeaspoons() UnitVolume { + return UnitVolumeClass.ImperialTeaspoons() } -// The imperial fluid ounces unit of volume. [Full Topic] +// The metric cups unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856101-imperialfluidounces?language=objc -func (uc _UnitVolumeClass) ImperialFluidOunces() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("imperialFluidOunces")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856000-metriccups?language=objc +func (uc _UnitVolumeClass) MetricCups() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("metricCups")) return rv } -// The imperial fluid ounces unit of volume. [Full Topic] +// The metric cups unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856101-imperialfluidounces?language=objc -func UnitVolume_ImperialFluidOunces() UnitVolume { - return UnitVolumeClass.ImperialFluidOunces() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856000-metriccups?language=objc +func UnitVolume_MetricCups() UnitVolume { + return UnitVolumeClass.MetricCups() } -// The milliliters unit of volume. [Full Topic] +// The cubic millimeters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856071-milliliters?language=objc -func (uc _UnitVolumeClass) Milliliters() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("milliliters")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856013-cubicmillimeters?language=objc +func (uc _UnitVolumeClass) CubicMillimeters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicMillimeters")) return rv } -// The milliliters unit of volume. [Full Topic] +// The cubic millimeters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856071-milliliters?language=objc -func UnitVolume_Milliliters() UnitVolume { - return UnitVolumeClass.Milliliters() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856013-cubicmillimeters?language=objc +func UnitVolume_CubicMillimeters() UnitVolume { + return UnitVolumeClass.CubicMillimeters() } -// The cubic yards unit of volume. [Full Topic] +// The cubic meters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856107-cubicyards?language=objc -func (uc _UnitVolumeClass) CubicYards() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("cubicYards")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856029-cubicmeters?language=objc +func (uc _UnitVolumeClass) CubicMeters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicMeters")) return rv } -// The cubic yards unit of volume. [Full Topic] +// The cubic meters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856107-cubicyards?language=objc -func UnitVolume_CubicYards() UnitVolume { - return UnitVolumeClass.CubicYards() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856029-cubicmeters?language=objc +func UnitVolume_CubicMeters() UnitVolume { + return UnitVolumeClass.CubicMeters() } -// The imperial gallons unit of volume. [Full Topic] +// The bushels unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855997-imperialgallons?language=objc -func (uc _UnitVolumeClass) ImperialGallons() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("imperialGallons")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856025-bushels?language=objc +func (uc _UnitVolumeClass) Bushels() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("bushels")) return rv } -// The imperial gallons unit of volume. [Full Topic] +// The bushels unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855997-imperialgallons?language=objc -func UnitVolume_ImperialGallons() UnitVolume { - return UnitVolumeClass.ImperialGallons() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856025-bushels?language=objc +func UnitVolume_Bushels() UnitVolume { + return UnitVolumeClass.Bushels() } -// The imperial tablespoons unit of volume. [Full Topic] +// The centiliters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855989-imperialtablespoons?language=objc -func (uc _UnitVolumeClass) ImperialTablespoons() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("imperialTablespoons")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856040-centiliters?language=objc +func (uc _UnitVolumeClass) Centiliters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("centiliters")) return rv } -// The imperial tablespoons unit of volume. [Full Topic] +// The centiliters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855989-imperialtablespoons?language=objc -func UnitVolume_ImperialTablespoons() UnitVolume { - return UnitVolumeClass.ImperialTablespoons() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856040-centiliters?language=objc +func UnitVolume_Centiliters() UnitVolume { + return UnitVolumeClass.Centiliters() } -// The bushels unit of volume. [Full Topic] +// The pints unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856025-bushels?language=objc -func (uc _UnitVolumeClass) Bushels() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("bushels")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856059-pints?language=objc +func (uc _UnitVolumeClass) Pints() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("pints")) return rv } -// The bushels unit of volume. [Full Topic] +// The pints unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856025-bushels?language=objc -func UnitVolume_Bushels() UnitVolume { - return UnitVolumeClass.Bushels() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856059-pints?language=objc +func UnitVolume_Pints() UnitVolume { + return UnitVolumeClass.Pints() } -// The cubic feet unit of volume. [Full Topic] +// The deciliters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856017-cubicfeet?language=objc -func (uc _UnitVolumeClass) CubicFeet() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("cubicFeet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856091-deciliters?language=objc +func (uc _UnitVolumeClass) Deciliters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("deciliters")) return rv } -// The cubic feet unit of volume. [Full Topic] +// The deciliters unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856017-cubicfeet?language=objc -func UnitVolume_CubicFeet() UnitVolume { - return UnitVolumeClass.CubicFeet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856091-deciliters?language=objc +func UnitVolume_Deciliters() UnitVolume { + return UnitVolumeClass.Deciliters() } -// The imperial quarts unit of volume. [Full Topic] +// The imperial fluid ounces unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855971-imperialquarts?language=objc -func (uc _UnitVolumeClass) ImperialQuarts() UnitVolume { - rv := objc.Call[UnitVolume](uc, objc.Sel("imperialQuarts")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856101-imperialfluidounces?language=objc +func (uc _UnitVolumeClass) ImperialFluidOunces() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialFluidOunces")) return rv } -// The imperial quarts unit of volume. [Full Topic] +// The imperial fluid ounces unit of volume. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1855971-imperialquarts?language=objc -func UnitVolume_ImperialQuarts() UnitVolume { - return UnitVolumeClass.ImperialQuarts() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitvolume/1856101-imperialfluidounces?language=objc +func UnitVolume_ImperialFluidOunces() UnitVolume { + return UnitVolumeClass.ImperialFluidOunces() } diff --git a/macos/foundation/url.gen.go b/macos/foundation/url.gen.go index 9e63d929..2d583c51 100644 --- a/macos/foundation/url.gen.go +++ b/macos/foundation/url.gen.go @@ -18,56 +18,53 @@ type _URLClass struct { // An interface definition for the [URL] class. type IURL interface { objc.IObject + CheckPromisedItemIsReachableAndReturnError(error unsafe.Pointer) bool + GetPromisedItemResourceValueForKeyError(value unsafe.Pointer, key URLResourceKey, error unsafe.Pointer) bool + IsFileReferenceURL() bool + WriteToPasteboard(pasteBoard objc.IObject) + FileReferenceURL() URL + StopAccessingSecurityScopedResource() CheckResourceIsReachableAndReturnError(error unsafe.Pointer) bool + RemoveAllCachedResourceValues() GetFileSystemRepresentationMaxLength(buffer *uint8, maxBufferLength uint) bool - StopAccessingSecurityScopedResource() + URLByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) URL + RemoveCachedResourceValueForKey(key URLResourceKey) SetResourceValueForKeyError(value objc.IObject, key URLResourceKey, error unsafe.Pointer) bool - FileReferenceURL() URL - URLByAppendingPathComponentIsDirectory(pathComponent string, isDirectory bool) URL - GetPromisedItemResourceValueForKeyError(value unsafe.Pointer, key URLResourceKey, error unsafe.Pointer) bool - URLByAppendingPathComponent(pathComponent string) URL - PromisedItemResourceValuesForKeysError(keys []URLResourceKey, error unsafe.Pointer) map[URLResourceKey]objc.Object URLByAppendingPathExtensionForType(contentType objc.IObject) URL - SetResourceValuesError(keyedValues map[URLResourceKey]objc.IObject, error unsafe.Pointer) bool - URLByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) URL - BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options URLBookmarkCreationOptions, keys []URLResourceKey, relativeURL IURL, error unsafe.Pointer) []byte GetResourceValueForKeyError(value unsafe.Pointer, key URLResourceKey, error unsafe.Pointer) bool - WriteToPasteboard(pasteBoard objc.IObject) - SetTemporaryResourceValueForKey(value objc.IObject, key URLResourceKey) - RemoveAllCachedResourceValues() + BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options URLBookmarkCreationOptions, keys []URLResourceKey, relativeURL IURL, error unsafe.Pointer) []byte StartAccessingSecurityScopedResource() bool - ResourceValuesForKeysError(keys []URLResourceKey, error unsafe.Pointer) map[URLResourceKey]objc.Object + SetTemporaryResourceValueForKey(value objc.IObject, key URLResourceKey) + SetResourceValuesError(keyedValues map[URLResourceKey]objc.IObject, error unsafe.Pointer) bool URLByAppendingPathExtension(pathExtension string) URL - RemoveCachedResourceValueForKey(key URLResourceKey) - CheckPromisedItemIsReachableAndReturnError(error unsafe.Pointer) bool - IsFileReferenceURL() bool - PathComponents() []string + PromisedItemResourceValuesForKeysError(keys []URLResourceKey, error unsafe.Pointer) map[URLResourceKey]objc.Object + Password() string Path() string - HasDirectoryPath() bool + BaseURL() URL + ResourceSpecifier() string + Host() string + Scheme() string + PathComponents() []string + AbsoluteString() string + IsFileURL() bool + Query() string URLByResolvingSymlinksInPath() URL + HasDirectoryPath() bool + Fragment() string RelativeString() string - Scheme() string - FileSystemRepresentation() *uint8 User() string - PathExtension() string + URLByStandardizingPath() URL Port() Number - FilePathURL() URL + DataRepresentation() []byte + URLByDeletingLastPathComponent() URL + PathExtension() string + URLByDeletingPathExtension() URL AbsoluteURL() URL - Host() string StandardizedURL() URL - DataRepresentation() []byte LastPathComponent() string - ResourceSpecifier() string - URLByStandardizingPath() URL - URLByDeletingLastPathComponent() URL + FileSystemRepresentation() *uint8 + FilePathURL() URL RelativePath() string - Fragment() string - Password() string - Query() string - BaseURL() URL - IsFileURL() bool - AbsoluteString() string - URLByDeletingPathExtension() URL } // An object that represents the location of a resource, such as an item on a remote server or the path to a local file. [Full Topic] @@ -83,16 +80,16 @@ func URLFrom(ptr unsafe.Pointer) URL { } } -func (u_ URL) InitWithStringRelativeToURL(URLString string, baseURL IURL) URL { - rv := objc.Call[URL](u_, objc.Sel("initWithString:relativeToURL:"), URLString, baseURL) +func (u_ URL) InitAbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + rv := objc.Call[URL](u_, objc.Sel("initAbsoluteURLWithDataRepresentation:relativeToURL:"), data, baseURL) return rv } -// Initializes an NSURL object with a base URL and a relative string. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417949-initwithstring?language=objc -func NewURLWithStringRelativeToURL(URLString string, baseURL IURL) URL { - instance := URLClass.Alloc().InitWithStringRelativeToURL(URLString, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410750-initabsoluteurlwithdatarepresent?language=objc +func NewURLAbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + instance := URLClass.Alloc().InitAbsoluteURLWithDataRepresentationRelativeToURL(data, baseURL) instance.Autorelease() return instance } @@ -111,44 +108,16 @@ func NewURLFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path *uin return instance } -func (u_ URL) InitAbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - rv := objc.Call[URL](u_, objc.Sel("initAbsoluteURLWithDataRepresentation:relativeToURL:"), data, baseURL) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410750-initabsoluteurlwithdatarepresent?language=objc -func NewURLAbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - instance := URLClass.Alloc().InitAbsoluteURLWithDataRepresentationRelativeToURL(data, baseURL) - instance.Autorelease() - return instance -} - -func (u_ URL) InitFileURLWithPathIsDirectoryRelativeToURL(path string, isDir bool, baseURL IURL) URL { - rv := objc.Call[URL](u_, objc.Sel("initFileURLWithPath:isDirectory:relativeToURL:"), path, isDir, baseURL) +func (u_ URL) InitWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + rv := objc.Call[URL](u_, objc.Sel("initWithDataRepresentation:relativeToURL:"), data, baseURL) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417932-initfileurlwithpath?language=objc -func NewURLFileURLWithPathIsDirectoryRelativeToURL(path string, isDir bool, baseURL IURL) URL { - instance := URLClass.Alloc().InitFileURLWithPathIsDirectoryRelativeToURL(path, isDir, baseURL) - instance.Autorelease() - return instance -} - -func (u_ URL) InitFileURLWithPathIsDirectory(path string, isDir bool) URL { - rv := objc.Call[URL](u_, objc.Sel("initFileURLWithPath:isDirectory:"), path, isDir) - return rv -} - -// Initializes a newly created NSURL referencing the local file or directory at path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417505-initfileurlwithpath?language=objc -func NewURLFileURLWithPathIsDirectory(path string, isDir bool) URL { - instance := URLClass.Alloc().InitFileURLWithPathIsDirectory(path, isDir) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1416851-initwithdatarepresentation?language=objc +func NewURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + instance := URLClass.Alloc().InitWithDataRepresentationRelativeToURL(data, baseURL) instance.Autorelease() return instance } @@ -167,16 +136,16 @@ func NewURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(b return instance } -func (u_ URL) InitWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - rv := objc.Call[URL](u_, objc.Sel("initWithDataRepresentation:relativeToURL:"), data, baseURL) +func (u_ URL) InitWithStringRelativeToURL(URLString string, baseURL IURL) URL { + rv := objc.Call[URL](u_, objc.Sel("initWithString:relativeToURL:"), URLString, baseURL) return rv } -// [Full Topic] +// Initializes an NSURL object with a base URL and a relative string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1416851-initwithdatarepresentation?language=objc -func NewURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - instance := URLClass.Alloc().InitWithDataRepresentationRelativeToURL(data, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417949-initwithstring?language=objc +func NewURLWithStringRelativeToURL(URLString string, baseURL IURL) URL { + instance := URLClass.Alloc().InitWithStringRelativeToURL(URLString, baseURL) instance.Autorelease() return instance } @@ -193,44 +162,16 @@ func URL_URLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError( return URLClass.URLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData, options, relativeURL, isStale, error) } -func (u_ URL) InitWithString(URLString string) URL { - rv := objc.Call[URL](u_, objc.Sel("initWithString:"), URLString) - return rv -} - -// Initializes an NSURL object with a provided URL string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413146-initwithstring?language=objc -func NewURLWithString(URLString string) URL { - instance := URLClass.Alloc().InitWithString(URLString) - instance.Autorelease() - return instance -} - -func (u_ URL) InitFileURLWithPath(path string) URL { - rv := objc.Call[URL](u_, objc.Sel("initFileURLWithPath:"), path) - return rv -} - -// Initializes a newly created NSURL referencing the local file or directory at path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410301-initfileurlwithpath?language=objc -func NewURLFileURLWithPath(path string) URL { - instance := URLClass.Alloc().InitFileURLWithPath(path) - instance.Autorelease() - return instance -} - -func (uc _URLClass) URLWithStringRelativeToURL(URLString string, baseURL IURL) URL { - rv := objc.Call[URL](uc, objc.Sel("URLWithString:relativeToURL:"), URLString, baseURL) +func (uc _URLClass) URLByResolvingAliasFileAtURLOptionsError(url IURL, options URLBookmarkResolutionOptions, error unsafe.Pointer) URL { + rv := objc.Call[URL](uc, objc.Sel("URLByResolvingAliasFileAtURL:options:error:"), url, options, error) return rv } -// Creates and returns an NSURL object initialized with a base URL and a relative string. [Full Topic] +// Returns a new URL made by resolving the alias file at url. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1572049-urlwithstring?language=objc -func URL_URLWithStringRelativeToURL(URLString string, baseURL IURL) URL { - return URLClass.URLWithStringRelativeToURL(URLString, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1416404-urlbyresolvingaliasfileaturl?language=objc +func URL_URLByResolvingAliasFileAtURLOptionsError(url IURL, options URLBookmarkResolutionOptions, error unsafe.Pointer) URL { + return URLClass.URLByResolvingAliasFileAtURLOptionsError(url, options, error) } func (uc _URLClass) URLWithString(URLString string) URL { @@ -245,28 +186,16 @@ func URL_URLWithString(URLString string) URL { return URLClass.URLWithString(URLString) } -func (uc _URLClass) URLByResolvingAliasFileAtURLOptionsError(url IURL, options URLBookmarkResolutionOptions, error unsafe.Pointer) URL { - rv := objc.Call[URL](uc, objc.Sel("URLByResolvingAliasFileAtURL:options:error:"), url, options, error) - return rv -} - -// Returns a new URL made by resolving the alias file at url. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1416404-urlbyresolvingaliasfileaturl?language=objc -func URL_URLByResolvingAliasFileAtURLOptionsError(url IURL, options URLBookmarkResolutionOptions, error unsafe.Pointer) URL { - return URLClass.URLByResolvingAliasFileAtURLOptionsError(url, options, error) -} - -func (u_ URL) InitFileURLWithPathRelativeToURL(path string, baseURL IURL) URL { - rv := objc.Call[URL](u_, objc.Sel("initFileURLWithPath:relativeToURL:"), path, baseURL) +func (u_ URL) InitFileURLWithPathIsDirectoryRelativeToURL(path string, isDir bool, baseURL IURL) URL { + rv := objc.Call[URL](u_, objc.Sel("initFileURLWithPath:isDirectory:relativeToURL:"), path, isDir, baseURL) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1415077-initfileurlwithpath?language=objc -func NewURLFileURLWithPathRelativeToURL(path string, baseURL IURL) URL { - instance := URLClass.Alloc().InitFileURLWithPathRelativeToURL(path, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417932-initfileurlwithpath?language=objc +func NewURLFileURLWithPathIsDirectoryRelativeToURL(path string, isDir bool, baseURL IURL) URL { + instance := URLClass.Alloc().InitFileURLWithPathIsDirectoryRelativeToURL(path, isDir, baseURL) instance.Autorelease() return instance } @@ -291,80 +220,80 @@ func (u_ URL) Init() URL { return rv } -// Returns whether the resource pointed to by a file URL can be reached. [Full Topic] +// Creates an alias file on disk at a specified location with specified bookmark data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410597-checkresourceisreachableandretur?language=objc -func (u_ URL) CheckResourceIsReachableAndReturnError(error unsafe.Pointer) bool { - rv := objc.Call[bool](u_, objc.Sel("checkResourceIsReachableAndReturnError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408532-writebookmarkdata?language=objc +func (uc _URLClass) WriteBookmarkDataToURLOptionsError(bookmarkData []byte, bookmarkFileURL IURL, options URLBookmarkFileCreationOptions, error unsafe.Pointer) bool { + rv := objc.Call[bool](uc, objc.Sel("writeBookmarkData:toURL:options:error:"), bookmarkData, bookmarkFileURL, options, error) return rv } -// Fills the provided buffer with a C string representing a local file system path. [Full Topic] +// Creates an alias file on disk at a specified location with specified bookmark data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1415117-getfilesystemrepresentation?language=objc -func (u_ URL) GetFileSystemRepresentationMaxLength(buffer *uint8, maxBufferLength uint) bool { - rv := objc.Call[bool](u_, objc.Sel("getFileSystemRepresentation:maxLength:"), buffer, maxBufferLength) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408532-writebookmarkdata?language=objc +func URL_WriteBookmarkDataToURLOptionsError(bookmarkData []byte, bookmarkFileURL IURL, options URLBookmarkFileCreationOptions, error unsafe.Pointer) bool { + return URLClass.WriteBookmarkDataToURLOptionsError(bookmarkData, bookmarkFileURL, options, error) } -// In an app that adopts App Sandbox, revokes access to the resource pointed to by a security-scoped URL. [Full Topic] +// Returns whether the promised item can be reached. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413736-stopaccessingsecurityscopedresou?language=objc -func (u_ URL) StopAccessingSecurityScopedResource() { - objc.Call[objc.Void](u_, objc.Sel("stopAccessingSecurityScopedResource")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410411-checkpromiseditemisreachableandr?language=objc +func (u_ URL) CheckPromisedItemIsReachableAndReturnError(error unsafe.Pointer) bool { + rv := objc.Call[bool](u_, objc.Sel("checkPromisedItemIsReachableAndReturnError:"), error) + return rv } -// Initializes and returns a newly created NSURL object as a file URL with a specified path. [Full Topic] +// Returns a new URL object initialized with a C string representing a local file system path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410828-fileurlwithpath?language=objc -func (uc _URLClass) FileURLWithPath(path string) URL { - rv := objc.Call[URL](uc, objc.Sel("fileURLWithPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411492-fileurlwithfilesystemrepresentat?language=objc +func (uc _URLClass) FileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path *uint8, isDir bool, baseURL IURL) URL { + rv := objc.Call[URL](uc, objc.Sel("fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"), path, isDir, baseURL) return rv } -// Initializes and returns a newly created NSURL object as a file URL with a specified path. [Full Topic] +// Returns a new URL object initialized with a C string representing a local file system path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410828-fileurlwithpath?language=objc -func URL_FileURLWithPath(path string) URL { - return URLClass.FileURLWithPath(path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411492-fileurlwithfilesystemrepresentat?language=objc +func URL_FileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path *uint8, isDir bool, baseURL IURL) URL { + return URLClass.FileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path, isDir, baseURL) } -// Reads an NSURL object off of the specified pasteboard. [Full Topic] +// Returns the value of the resource property for the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1525106-urlfrompasteboard?language=objc -func (uc _URLClass) URLFromPasteboard(pasteBoard objc.IObject) URL { - rv := objc.Call[URL](uc, objc.Sel("URLFromPasteboard:"), pasteBoard) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414238-getpromiseditemresourcevalue?language=objc +func (u_ URL) GetPromisedItemResourceValueForKeyError(value unsafe.Pointer, key URLResourceKey, error unsafe.Pointer) bool { + rv := objc.Call[bool](u_, objc.Sel("getPromisedItemResourceValue:forKey:error:"), value, key, error) return rv } -// Reads an NSURL object off of the specified pasteboard. [Full Topic] +// Returns whether the URL is a file reference URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1525106-urlfrompasteboard?language=objc -func URL_URLFromPasteboard(pasteBoard objc.IObject) URL { - return URLClass.URLFromPasteboard(pasteBoard) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408507-isfilereferenceurl?language=objc +func (u_ URL) IsFileReferenceURL() bool { + rv := objc.Call[bool](u_, objc.Sel("isFileReferenceURL")) + return rv } -// Initializes and returns a newly created NSURL object as a file URL with a specified path. [Full Topic] +// Writes the URL to the specified pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414650-fileurlwithpath?language=objc -func (uc _URLClass) FileURLWithPathIsDirectory(path string, isDir bool) URL { - rv := objc.Call[URL](uc, objc.Sel("fileURLWithPath:isDirectory:"), path, isDir) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1532980-writetopasteboard?language=objc +func (u_ URL) WriteToPasteboard(pasteBoard objc.IObject) { + objc.Call[objc.Void](u_, objc.Sel("writeToPasteboard:"), pasteBoard) } -// Initializes and returns a newly created NSURL object as a file URL with a specified path. [Full Topic] +// Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414650-fileurlwithpath?language=objc -func URL_FileURLWithPathIsDirectory(path string, isDir bool) URL { - return URLClass.FileURLWithPathIsDirectory(path, isDir) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1418097-resourcevaluesforkeys?language=objc +func (uc _URLClass) ResourceValuesForKeysFromBookmarkData(keys []URLResourceKey, bookmarkData []byte) map[URLResourceKey]objc.Object { + rv := objc.Call[map[URLResourceKey]objc.Object](uc, objc.Sel("resourceValuesForKeys:fromBookmarkData:"), keys, bookmarkData) + return rv } -// Sets the URL’s resource property for a given key to a given value. [Full Topic] +// Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413819-setresourcevalue?language=objc -func (u_ URL) SetResourceValueForKeyError(value objc.IObject, key URLResourceKey, error unsafe.Pointer) bool { - rv := objc.Call[bool](u_, objc.Sel("setResourceValue:forKey:error:"), value, key, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1418097-resourcevaluesforkeys?language=objc +func URL_ResourceValuesForKeysFromBookmarkData(keys []URLResourceKey, bookmarkData []byte) map[URLResourceKey]objc.Object { + return URLClass.ResourceValuesForKeysFromBookmarkData(keys, bookmarkData) } // Returns a new file reference URL that points to the same resource as the receiver. [Full Topic] @@ -375,81 +304,87 @@ func (u_ URL) FileReferenceURL() URL { return rv } -// Creates an alias file on disk at a specified location with specified bookmark data. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408532-writebookmarkdata?language=objc -func (uc _URLClass) WriteBookmarkDataToURLOptionsError(bookmarkData []byte, bookmarkFileURL IURL, options URLBookmarkFileCreationOptions, error unsafe.Pointer) bool { - rv := objc.Call[bool](uc, objc.Sel("writeBookmarkData:toURL:options:error:"), bookmarkData, bookmarkFileURL, options, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413201-fileurlwithpath?language=objc +func (uc _URLClass) FileURLWithPathRelativeToURL(path string, baseURL IURL) URL { + rv := objc.Call[URL](uc, objc.Sel("fileURLWithPath:relativeToURL:"), path, baseURL) return rv } -// Creates an alias file on disk at a specified location with specified bookmark data. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408532-writebookmarkdata?language=objc -func URL_WriteBookmarkDataToURLOptionsError(bookmarkData []byte, bookmarkFileURL IURL, options URLBookmarkFileCreationOptions, error unsafe.Pointer) bool { - return URLClass.WriteBookmarkDataToURLOptionsError(bookmarkData, bookmarkFileURL, options, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413201-fileurlwithpath?language=objc +func URL_FileURLWithPathRelativeToURL(path string, baseURL IURL) URL { + return URLClass.FileURLWithPathRelativeToURL(path, baseURL) } -// Returns a new URL by appending a path component to the original URL, along with a trailing slash if the component is a directory. [Full Topic] +// In an app that adopts App Sandbox, revokes access to the resource pointed to by a security-scoped URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413953-urlbyappendingpathcomponent?language=objc -func (u_ URL) URLByAppendingPathComponentIsDirectory(pathComponent string, isDirectory bool) URL { - rv := objc.Call[URL](u_, objc.Sel("URLByAppendingPathComponent:isDirectory:"), pathComponent, isDirectory) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413736-stopaccessingsecurityscopedresou?language=objc +func (u_ URL) StopAccessingSecurityScopedResource() { + objc.Call[objc.Void](u_, objc.Sel("stopAccessingSecurityScopedResource")) } -// Returns the value of the resource property for the specified key. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414238-getpromiseditemresourcevalue?language=objc -func (u_ URL) GetPromisedItemResourceValueForKeyError(value unsafe.Pointer, key URLResourceKey, error unsafe.Pointer) bool { - rv := objc.Call[bool](u_, objc.Sel("getPromisedItemResourceValue:forKey:error:"), value, key, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412404-absoluteurlwithdatarepresentatio?language=objc +func (uc _URLClass) AbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + rv := objc.Call[URL](uc, objc.Sel("absoluteURLWithDataRepresentation:relativeToURL:"), data, baseURL) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1572042-urlwithdatarepresentation?language=objc -func (uc _URLClass) URLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - rv := objc.Call[URL](uc, objc.Sel("URLWithDataRepresentation:relativeToURL:"), data, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412404-absoluteurlwithdatarepresentatio?language=objc +func URL_AbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + return URLClass.AbsoluteURLWithDataRepresentationRelativeToURL(data, baseURL) +} + +// Returns whether the resource pointed to by a file URL can be reached. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410597-checkresourceisreachableandretur?language=objc +func (u_ URL) CheckResourceIsReachableAndReturnError(error unsafe.Pointer) bool { + rv := objc.Call[bool](u_, objc.Sel("checkResourceIsReachableAndReturnError:"), error) return rv } -// [Full Topic] +// Removes all cached resource values and temporary resource values from the URL object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1572042-urlwithdatarepresentation?language=objc -func URL_URLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - return URLClass.URLWithDataRepresentationRelativeToURL(data, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417078-removeallcachedresourcevalues?language=objc +func (u_ URL) RemoveAllCachedResourceValues() { + objc.Call[objc.Void](u_, objc.Sel("removeAllCachedResourceValues")) } -// Returns a new URL by appending a path component to the original URL. [Full Topic] +// Fills the provided buffer with a C string representing a local file system path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410614-urlbyappendingpathcomponent?language=objc -func (u_ URL) URLByAppendingPathComponent(pathComponent string) URL { - rv := objc.Call[URL](u_, objc.Sel("URLByAppendingPathComponent:"), pathComponent) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1415117-getfilesystemrepresentation?language=objc +func (u_ URL) GetFileSystemRepresentationMaxLength(buffer *uint8, maxBufferLength uint) bool { + rv := objc.Call[bool](u_, objc.Sel("getFileSystemRepresentation:maxLength:"), buffer, maxBufferLength) return rv } -// Returns the resource values for the properties identified by specified array of keys. [Full Topic] +// Returns a URL by appending the specified path component with the file extension for a uniform type identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1407746-promiseditemresourcevaluesforkey?language=objc -func (u_ URL) PromisedItemResourceValuesForKeysError(keys []URLResourceKey, error unsafe.Pointer) map[URLResourceKey]objc.Object { - rv := objc.Call[map[URLResourceKey]objc.Object](u_, objc.Sel("promisedItemResourceValuesForKeys:error:"), keys, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/3564810-urlbyappendingpathcomponent?language=objc +func (u_ URL) URLByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) URL { + rv := objc.Call[URL](u_, objc.Sel("URLByAppendingPathComponent:conformingToType:"), partialName, contentType) return rv } -// Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. [Full Topic] +// Removes the cached resource value identified by a given key from the URL object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1418097-resourcevaluesforkeys?language=objc -func (uc _URLClass) ResourceValuesForKeysFromBookmarkData(keys []URLResourceKey, bookmarkData []byte) map[URLResourceKey]objc.Object { - rv := objc.Call[map[URLResourceKey]objc.Object](uc, objc.Sel("resourceValuesForKeys:fromBookmarkData:"), keys, bookmarkData) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410758-removecachedresourcevalueforkey?language=objc +func (u_ URL) RemoveCachedResourceValueForKey(key URLResourceKey) { + objc.Call[objc.Void](u_, objc.Sel("removeCachedResourceValueForKey:"), key) } -// Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. [Full Topic] +// Sets the URL’s resource property for a given key to a given value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1418097-resourcevaluesforkeys?language=objc -func URL_ResourceValuesForKeysFromBookmarkData(keys []URLResourceKey, bookmarkData []byte) map[URLResourceKey]objc.Object { - return URLClass.ResourceValuesForKeysFromBookmarkData(keys, bookmarkData) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413819-setresourcevalue?language=objc +func (u_ URL) SetResourceValueForKeyError(value objc.IObject, key URLResourceKey, error unsafe.Pointer) bool { + rv := objc.Call[bool](u_, objc.Sel("setResourceValue:forKey:error:"), value, key, error) + return rv } // Returns a URL by appending the path extension for a uniform type identifier. [Full Topic] @@ -460,90 +395,75 @@ func (u_ URL) URLByAppendingPathExtensionForType(contentType objc.IObject) URL { return rv } -// Sets the URL’s resource properties for a given set of keys to a given set of values. [Full Topic] +// Returns the value of the resource property for the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408208-setresourcevalues?language=objc -func (u_ URL) SetResourceValuesError(keyedValues map[URLResourceKey]objc.IObject, error unsafe.Pointer) bool { - rv := objc.Call[bool](u_, objc.Sel("setResourceValues:error:"), keyedValues, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408874-getresourcevalue?language=objc +func (u_ URL) GetResourceValueForKeyError(value unsafe.Pointer, key URLResourceKey, error unsafe.Pointer) bool { + rv := objc.Call[bool](u_, objc.Sel("getResourceValue:forKey:error:"), value, key, error) return rv } -// Returns a URL by appending the specified path component with the file extension for a uniform type identifier. [Full Topic] +// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/3564810-urlbyappendingpathcomponent?language=objc -func (u_ URL) URLByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) URL { - rv := objc.Call[URL](u_, objc.Sel("URLByAppendingPathComponent:conformingToType:"), partialName, contentType) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408344-bookmarkdatawithcontentsofurl?language=objc +func (uc _URLClass) BookmarkDataWithContentsOfURLError(bookmarkFileURL IURL, error unsafe.Pointer) []byte { + rv := objc.Call[[]byte](uc, objc.Sel("bookmarkDataWithContentsOfURL:error:"), bookmarkFileURL, error) return rv } -// Returns a bookmark for the URL, created with specified options and resource values. [Full Topic] +// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417795-bookmarkdatawithoptions?language=objc -func (u_ URL) BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options URLBookmarkCreationOptions, keys []URLResourceKey, relativeURL IURL, error unsafe.Pointer) []byte { - rv := objc.Call[[]byte](u_, objc.Sel("bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"), options, keys, relativeURL, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408344-bookmarkdatawithcontentsofurl?language=objc +func URL_BookmarkDataWithContentsOfURLError(bookmarkFileURL IURL, error unsafe.Pointer) []byte { + return URLClass.BookmarkDataWithContentsOfURLError(bookmarkFileURL, error) } -// Initializes and returns a newly created NSURL object as a file URL with specified path components. [Full Topic] +// Reads an NSURL object off of the specified pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414206-fileurlwithpathcomponents?language=objc -func (uc _URLClass) FileURLWithPathComponents(components []string) URL { - rv := objc.Call[URL](uc, objc.Sel("fileURLWithPathComponents:"), components) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1525106-urlfrompasteboard?language=objc +func (uc _URLClass) URLFromPasteboard(pasteBoard objc.IObject) URL { + rv := objc.Call[URL](uc, objc.Sel("URLFromPasteboard:"), pasteBoard) return rv } -// Initializes and returns a newly created NSURL object as a file URL with specified path components. [Full Topic] +// Reads an NSURL object off of the specified pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414206-fileurlwithpathcomponents?language=objc -func URL_FileURLWithPathComponents(components []string) URL { - return URLClass.FileURLWithPathComponents(components) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1525106-urlfrompasteboard?language=objc +func URL_URLFromPasteboard(pasteBoard objc.IObject) URL { + return URLClass.URLFromPasteboard(pasteBoard) } -// Returns the value of the resource property for the specified key. [Full Topic] +// Returns a bookmark for the URL, created with specified options and resource values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408874-getresourcevalue?language=objc -func (u_ URL) GetResourceValueForKeyError(value unsafe.Pointer, key URLResourceKey, error unsafe.Pointer) bool { - rv := objc.Call[bool](u_, objc.Sel("getResourceValue:forKey:error:"), value, key, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417795-bookmarkdatawithoptions?language=objc +func (u_ URL) BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options URLBookmarkCreationOptions, keys []URLResourceKey, relativeURL IURL, error unsafe.Pointer) []byte { + rv := objc.Call[[]byte](u_, objc.Sel("bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"), options, keys, relativeURL, error) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413020-fileurlwithpath?language=objc -func (uc _URLClass) FileURLWithPathIsDirectoryRelativeToURL(path string, isDir bool, baseURL IURL) URL { - rv := objc.Call[URL](uc, objc.Sel("fileURLWithPath:isDirectory:relativeToURL:"), path, isDir, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1572042-urlwithdatarepresentation?language=objc +func (uc _URLClass) URLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + rv := objc.Call[URL](uc, objc.Sel("URLWithDataRepresentation:relativeToURL:"), data, baseURL) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413020-fileurlwithpath?language=objc -func URL_FileURLWithPathIsDirectoryRelativeToURL(path string, isDir bool, baseURL IURL) URL { - return URLClass.FileURLWithPathIsDirectoryRelativeToURL(path, isDir, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1572042-urlwithdatarepresentation?language=objc +func URL_URLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + return URLClass.URLWithDataRepresentationRelativeToURL(data, baseURL) } -// [Full Topic] +// In an app that has adopted App Sandbox, makes the resource pointed to by a security-scoped URL available to the app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412404-absoluteurlwithdatarepresentatio?language=objc -func (uc _URLClass) AbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - rv := objc.Call[URL](uc, objc.Sel("absoluteURLWithDataRepresentation:relativeToURL:"), data, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417051-startaccessingsecurityscopedreso?language=objc +func (u_ URL) StartAccessingSecurityScopedResource() bool { + rv := objc.Call[bool](u_, objc.Sel("startAccessingSecurityScopedResource")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412404-absoluteurlwithdatarepresentatio?language=objc -func URL_AbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - return URLClass.AbsoluteURLWithDataRepresentationRelativeToURL(data, baseURL) -} - -// Writes the URL to the specified pasteboard. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1532980-writetopasteboard?language=objc -func (u_ URL) WriteToPasteboard(pasteBoard objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("writeToPasteboard:"), pasteBoard) -} - // Sets a temporary resource value on the URL object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411094-settemporaryresourcevalue?language=objc @@ -551,103 +471,91 @@ func (u_ URL) SetTemporaryResourceValueForKey(value objc.IObject, key URLResourc objc.Call[objc.Void](u_, objc.Sel("setTemporaryResourceValue:forKey:"), value, key) } -// [Full Topic] +// Sets the URL’s resource properties for a given set of keys to a given set of values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413201-fileurlwithpath?language=objc -func (uc _URLClass) FileURLWithPathRelativeToURL(path string, baseURL IURL) URL { - rv := objc.Call[URL](uc, objc.Sel("fileURLWithPath:relativeToURL:"), path, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408208-setresourcevalues?language=objc +func (u_ URL) SetResourceValuesError(keyedValues map[URLResourceKey]objc.IObject, error unsafe.Pointer) bool { + rv := objc.Call[bool](u_, objc.Sel("setResourceValues:error:"), keyedValues, error) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413201-fileurlwithpath?language=objc -func URL_FileURLWithPathRelativeToURL(path string, baseURL IURL) URL { - return URLClass.FileURLWithPathRelativeToURL(path, baseURL) -} - -// Removes all cached resource values and temporary resource values from the URL object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417078-removeallcachedresourcevalues?language=objc -func (u_ URL) RemoveAllCachedResourceValues() { - objc.Call[objc.Void](u_, objc.Sel("removeAllCachedResourceValues")) -} - -// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. [Full Topic] +// Initializes and returns a newly created NSURL object as a file URL with specified path components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408344-bookmarkdatawithcontentsofurl?language=objc -func (uc _URLClass) BookmarkDataWithContentsOfURLError(bookmarkFileURL IURL, error unsafe.Pointer) []byte { - rv := objc.Call[[]byte](uc, objc.Sel("bookmarkDataWithContentsOfURL:error:"), bookmarkFileURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414206-fileurlwithpathcomponents?language=objc +func (uc _URLClass) FileURLWithPathComponents(components []string) URL { + rv := objc.Call[URL](uc, objc.Sel("fileURLWithPathComponents:"), components) return rv } -// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. [Full Topic] +// Initializes and returns a newly created NSURL object as a file URL with specified path components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408344-bookmarkdatawithcontentsofurl?language=objc -func URL_BookmarkDataWithContentsOfURLError(bookmarkFileURL IURL, error unsafe.Pointer) []byte { - return URLClass.BookmarkDataWithContentsOfURLError(bookmarkFileURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414206-fileurlwithpathcomponents?language=objc +func URL_FileURLWithPathComponents(components []string) URL { + return URLClass.FileURLWithPathComponents(components) } -// In an app that has adopted App Sandbox, makes the resource pointed to by a security-scoped URL available to the app. [Full Topic] +// Returns a new URL by appending a path extension to the original URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417051-startaccessingsecurityscopedreso?language=objc -func (u_ URL) StartAccessingSecurityScopedResource() bool { - rv := objc.Call[bool](u_, objc.Sel("startAccessingSecurityScopedResource")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417082-urlbyappendingpathextension?language=objc +func (u_ URL) URLByAppendingPathExtension(pathExtension string) URL { + rv := objc.Call[URL](u_, objc.Sel("URLByAppendingPathExtension:"), pathExtension) return rv } // Returns the resource values for the properties identified by specified array of keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417657-resourcevaluesforkeys?language=objc -func (u_ URL) ResourceValuesForKeysError(keys []URLResourceKey, error unsafe.Pointer) map[URLResourceKey]objc.Object { - rv := objc.Call[map[URLResourceKey]objc.Object](u_, objc.Sel("resourceValuesForKeys:error:"), keys, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1407746-promiseditemresourcevaluesforkey?language=objc +func (u_ URL) PromisedItemResourceValuesForKeysError(keys []URLResourceKey, error unsafe.Pointer) map[URLResourceKey]objc.Object { + rv := objc.Call[map[URLResourceKey]objc.Object](u_, objc.Sel("promisedItemResourceValuesForKeys:error:"), keys, error) return rv } -// Returns a new URL by appending a path extension to the original URL. [Full Topic] +// The password conforming to RFC 1808. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417082-urlbyappendingpathextension?language=objc -func (u_ URL) URLByAppendingPathExtension(pathExtension string) URL { - rv := objc.Call[URL](u_, objc.Sel("URLByAppendingPathExtension:"), pathExtension) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412096-password?language=objc +func (u_ URL) Password() string { + rv := objc.Call[string](u_, objc.Sel("password")) return rv } -// Removes the cached resource value identified by a given key from the URL object. [Full Topic] +// The path, conforming to RFC 1808. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410758-removecachedresourcevalueforkey?language=objc -func (u_ URL) RemoveCachedResourceValueForKey(key URLResourceKey) { - objc.Call[objc.Void](u_, objc.Sel("removeCachedResourceValueForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408809-path?language=objc +func (u_ URL) Path() string { + rv := objc.Call[string](u_, objc.Sel("path")) + return rv } -// Returns whether the promised item can be reached. [Full Topic] +// The base URL. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410411-checkpromiseditemisreachableandr?language=objc -func (u_ URL) CheckPromisedItemIsReachableAndReturnError(error unsafe.Pointer) bool { - rv := objc.Call[bool](u_, objc.Sel("checkPromisedItemIsReachableAndReturnError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412311-baseurl?language=objc +func (u_ URL) BaseURL() URL { + rv := objc.Call[URL](u_, objc.Sel("baseURL")) return rv } -// Returns whether the URL is a file reference URL. [Full Topic] +// The resource specifier. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408507-isfilereferenceurl?language=objc -func (u_ URL) IsFileReferenceURL() bool { - rv := objc.Call[bool](u_, objc.Sel("isFileReferenceURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1415309-resourcespecifier?language=objc +func (u_ URL) ResourceSpecifier() string { + rv := objc.Call[string](u_, objc.Sel("resourceSpecifier")) return rv } -// Returns a new URL object initialized with a C string representing a local file system path. [Full Topic] +// The host, conforming to RFC 1808. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411492-fileurlwithfilesystemrepresentat?language=objc -func (uc _URLClass) FileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path *uint8, isDir bool, baseURL IURL) URL { - rv := objc.Call[URL](uc, objc.Sel("fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"), path, isDir, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413640-host?language=objc +func (u_ URL) Host() string { + rv := objc.Call[string](u_, objc.Sel("host")) return rv } -// Returns a new URL object initialized with a C string representing a local file system path. [Full Topic] +// The scheme. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411492-fileurlwithfilesystemrepresentat?language=objc -func URL_FileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path *uint8, isDir bool, baseURL IURL) URL { - return URLClass.FileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path, isDir, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413437-scheme?language=objc +func (u_ URL) Scheme() string { + rv := objc.Call[string](u_, objc.Sel("scheme")) + return rv } // An array containing the path components. (read-only) [Full Topic] @@ -658,19 +566,27 @@ func (u_ URL) PathComponents() []string { return rv } -// The path, conforming to RFC 1808. (read-only) [Full Topic] +// The URL string for the receiver as an absolute URL. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408809-path?language=objc -func (u_ URL) Path() string { - rv := objc.Call[string](u_, objc.Sel("path")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1409868-absolutestring?language=objc +func (u_ URL) AbsoluteString() string { + rv := objc.Call[string](u_, objc.Sel("absoluteString")) return rv } -// A Boolean value that indicates whether the URL string’s path represents a directory. [Full Topic] +// A boolean value that determines whether the receiver is a file URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411475-hasdirectorypath?language=objc -func (u_ URL) HasDirectoryPath() bool { - rv := objc.Call[bool](u_, objc.Sel("hasDirectoryPath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408782-fileurl?language=objc +func (u_ URL) IsFileURL() bool { + rv := objc.Call[bool](u_, objc.Sel("isFileURL")) + return rv +} + +// The query string, conforming to RFC 1808. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1407543-query?language=objc +func (u_ URL) Query() string { + rv := objc.Call[string](u_, objc.Sel("query")) return rv } @@ -682,27 +598,27 @@ func (u_ URL) URLByResolvingSymlinksInPath() URL { return rv } -// A string representation of the relative portion of the URL. (read-only) [Full Topic] +// A Boolean value that indicates whether the URL string’s path represents a directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411417-relativestring?language=objc -func (u_ URL) RelativeString() string { - rv := objc.Call[string](u_, objc.Sel("relativeString")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411475-hasdirectorypath?language=objc +func (u_ URL) HasDirectoryPath() bool { + rv := objc.Call[bool](u_, objc.Sel("hasDirectoryPath")) return rv } -// The scheme. (read-only) [Full Topic] +// The fragment identifier, conforming to RFC 1808. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413437-scheme?language=objc -func (u_ URL) Scheme() string { - rv := objc.Call[string](u_, objc.Sel("scheme")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413775-fragment?language=objc +func (u_ URL) Fragment() string { + rv := objc.Call[string](u_, objc.Sel("fragment")) return rv } -// A C string containing the URL’s file system path. (read-only) [Full Topic] +// A string representation of the relative portion of the URL. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412925-filesystemrepresentation?language=objc -func (u_ URL) FileSystemRepresentation() *uint8 { - rv := objc.Call[*uint8](u_, objc.Sel("fileSystemRepresentation")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411417-relativestring?language=objc +func (u_ URL) RelativeString() string { + rv := objc.Call[string](u_, objc.Sel("relativeString")) return rv } @@ -714,11 +630,11 @@ func (u_ URL) User() string { return rv } -// The path extension. (read-only) [Full Topic] +// A URL that points to the same resource as the original URL using an absolute path. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410208-pathextension?language=objc -func (u_ URL) PathExtension() string { - rv := objc.Call[string](u_, objc.Sel("pathExtension")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414302-urlbystandardizingpath?language=objc +func (u_ URL) URLByStandardizingPath() URL { + rv := objc.Call[URL](u_, objc.Sel("URLByStandardizingPath")) return rv } @@ -730,38 +646,6 @@ func (u_ URL) Port() Number { return rv } -// A file path URL that points to the same resource as the URL object. (read-only) [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408442-filepathurl?language=objc -func (u_ URL) FilePathURL() URL { - rv := objc.Call[URL](u_, objc.Sel("filePathURL")) - return rv -} - -// An absolute URL that refers to the same resource as the receiver. (read-only) [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414266-absoluteurl?language=objc -func (u_ URL) AbsoluteURL() URL { - rv := objc.Call[URL](u_, objc.Sel("absoluteURL")) - return rv -} - -// The host, conforming to RFC 1808. (read-only) [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413640-host?language=objc -func (u_ URL) Host() string { - rv := objc.Call[string](u_, objc.Sel("host")) - return rv -} - -// A copy of the URL with any instances of ".." or "." removed from its path. (read-only) [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411073-standardizedurl?language=objc -func (u_ URL) StandardizedURL() URL { - rv := objc.Call[URL](u_, objc.Sel("standardizedURL")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1407656-datarepresentation?language=objc @@ -770,30 +654,6 @@ func (u_ URL) DataRepresentation() []byte { return rv } -// The last path component. (read-only) [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417444-lastpathcomponent?language=objc -func (u_ URL) LastPathComponent() string { - rv := objc.Call[string](u_, objc.Sel("lastPathComponent")) - return rv -} - -// The resource specifier. (read-only) [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1415309-resourcespecifier?language=objc -func (u_ URL) ResourceSpecifier() string { - rv := objc.Call[string](u_, objc.Sel("resourceSpecifier")) - return rv -} - -// A URL that points to the same resource as the original URL using an absolute path. (read-only) [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414302-urlbystandardizingpath?language=objc -func (u_ URL) URLByStandardizingPath() URL { - rv := objc.Call[URL](u_, objc.Sel("URLByStandardizingPath")) - return rv -} - // A URL you create by removing the last path component from the receiver. (read-only) [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411592-urlbydeletinglastpathcomponent?language=objc @@ -802,66 +662,66 @@ func (u_ URL) URLByDeletingLastPathComponent() URL { return rv } -// The relative path, conforming to RFC 1808. (read-only) [Full Topic] +// The path extension. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410263-relativepath?language=objc -func (u_ URL) RelativePath() string { - rv := objc.Call[string](u_, objc.Sel("relativePath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410208-pathextension?language=objc +func (u_ URL) PathExtension() string { + rv := objc.Call[string](u_, objc.Sel("pathExtension")) return rv } -// The fragment identifier, conforming to RFC 1808. (read-only) [Full Topic] +// A URL you create by removing the path extension from the receiver, if any. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1413775-fragment?language=objc -func (u_ URL) Fragment() string { - rv := objc.Call[string](u_, objc.Sel("fragment")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412357-urlbydeletingpathextension?language=objc +func (u_ URL) URLByDeletingPathExtension() URL { + rv := objc.Call[URL](u_, objc.Sel("URLByDeletingPathExtension")) return rv } -// The password conforming to RFC 1808. (read-only) [Full Topic] +// An absolute URL that refers to the same resource as the receiver. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412096-password?language=objc -func (u_ URL) Password() string { - rv := objc.Call[string](u_, objc.Sel("password")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414266-absoluteurl?language=objc +func (u_ URL) AbsoluteURL() URL { + rv := objc.Call[URL](u_, objc.Sel("absoluteURL")) return rv } -// The query string, conforming to RFC 1808. [Full Topic] +// A copy of the URL with any instances of ".." or "." removed from its path. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1407543-query?language=objc -func (u_ URL) Query() string { - rv := objc.Call[string](u_, objc.Sel("query")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1411073-standardizedurl?language=objc +func (u_ URL) StandardizedURL() URL { + rv := objc.Call[URL](u_, objc.Sel("standardizedURL")) return rv } -// The base URL. (read-only) [Full Topic] +// The last path component. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412311-baseurl?language=objc -func (u_ URL) BaseURL() URL { - rv := objc.Call[URL](u_, objc.Sel("baseURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417444-lastpathcomponent?language=objc +func (u_ URL) LastPathComponent() string { + rv := objc.Call[string](u_, objc.Sel("lastPathComponent")) return rv } -// A boolean value that determines whether the receiver is a file URL. [Full Topic] +// A C string containing the URL’s file system path. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408782-fileurl?language=objc -func (u_ URL) IsFileURL() bool { - rv := objc.Call[bool](u_, objc.Sel("isFileURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412925-filesystemrepresentation?language=objc +func (u_ URL) FileSystemRepresentation() *uint8 { + rv := objc.Call[*uint8](u_, objc.Sel("fileSystemRepresentation")) return rv } -// The URL string for the receiver as an absolute URL. (read-only) [Full Topic] +// A file path URL that points to the same resource as the URL object. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1409868-absolutestring?language=objc -func (u_ URL) AbsoluteString() string { - rv := objc.Call[string](u_, objc.Sel("absoluteString")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408442-filepathurl?language=objc +func (u_ URL) FilePathURL() URL { + rv := objc.Call[URL](u_, objc.Sel("filePathURL")) return rv } -// A URL you create by removing the path extension from the receiver, if any. (read-only) [Full Topic] +// The relative path, conforming to RFC 1808. (read-only) [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1412357-urlbydeletingpathextension?language=objc -func (u_ URL) URLByDeletingPathExtension() URL { - rv := objc.Call[URL](u_, objc.Sel("URLByDeletingPathExtension")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410263-relativepath?language=objc +func (u_ URL) RelativePath() string { + rv := objc.Call[string](u_, objc.Sel("relativePath")) return rv } diff --git a/macos/foundation/url_authentication_challenge.gen.go b/macos/foundation/url_authentication_challenge.gen.go index c4cf2763..ff25baaa 100644 --- a/macos/foundation/url_authentication_challenge.gen.go +++ b/macos/foundation/url_authentication_challenge.gen.go @@ -18,12 +18,12 @@ type _URLAuthenticationChallengeClass struct { // An interface definition for the [URLAuthenticationChallenge] class. type IURLAuthenticationChallenge interface { objc.IObject - ProtectionSpace() URLProtectionSpace - Sender() URLAuthenticationChallengeSenderObject - ProposedCredential() URLCredential Error() Error - PreviousFailureCount() int FailureResponse() URLResponse + ProposedCredential() URLCredential + Sender() URLAuthenticationChallengeSenderObject + ProtectionSpace() URLProtectionSpace + PreviousFailureCount() int } // A challenge from a server requiring authentication from the client. [Full Topic] @@ -89,19 +89,19 @@ func (u_ URLAuthenticationChallenge) Init() URLAuthenticationChallenge { return rv } -// The receiver’s protection space. [Full Topic] +// The error object representing the last authentication failure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1410012-protectionspace?language=objc -func (u_ URLAuthenticationChallenge) ProtectionSpace() URLProtectionSpace { - rv := objc.Call[URLProtectionSpace](u_, objc.Sel("protectionSpace")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1413033-error?language=objc +func (u_ URLAuthenticationChallenge) Error() Error { + rv := objc.Call[Error](u_, objc.Sel("error")) return rv } -// The sender of the challenge. [Full Topic] +// The URL response object representing the last authentication failure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1407533-sender?language=objc -func (u_ URLAuthenticationChallenge) Sender() URLAuthenticationChallengeSenderObject { - rv := objc.Call[URLAuthenticationChallengeSenderObject](u_, objc.Sel("sender")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1414978-failureresponse?language=objc +func (u_ URLAuthenticationChallenge) FailureResponse() URLResponse { + rv := objc.Call[URLResponse](u_, objc.Sel("failureResponse")) return rv } @@ -113,26 +113,26 @@ func (u_ URLAuthenticationChallenge) ProposedCredential() URLCredential { return rv } -// The error object representing the last authentication failure. [Full Topic] +// The sender of the challenge. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1413033-error?language=objc -func (u_ URLAuthenticationChallenge) Error() Error { - rv := objc.Call[Error](u_, objc.Sel("error")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1407533-sender?language=objc +func (u_ URLAuthenticationChallenge) Sender() URLAuthenticationChallengeSenderObject { + rv := objc.Call[URLAuthenticationChallengeSenderObject](u_, objc.Sel("sender")) return rv } -// The receiver’s count of failed authentication attempts. [Full Topic] +// The receiver’s protection space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1416522-previousfailurecount?language=objc -func (u_ URLAuthenticationChallenge) PreviousFailureCount() int { - rv := objc.Call[int](u_, objc.Sel("previousFailureCount")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1410012-protectionspace?language=objc +func (u_ URLAuthenticationChallenge) ProtectionSpace() URLProtectionSpace { + rv := objc.Call[URLProtectionSpace](u_, objc.Sel("protectionSpace")) return rv } -// The URL response object representing the last authentication failure. [Full Topic] +// The receiver’s count of failed authentication attempts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1414978-failureresponse?language=objc -func (u_ URLAuthenticationChallenge) FailureResponse() URLResponse { - rv := objc.Call[URLResponse](u_, objc.Sel("failureResponse")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1416522-previousfailurecount?language=objc +func (u_ URLAuthenticationChallenge) PreviousFailureCount() int { + rv := objc.Call[int](u_, objc.Sel("previousFailureCount")) return rv } diff --git a/macos/foundation/url_authentication_challenge_sender_protocol.gen.go b/macos/foundation/url_authentication_challenge_sender_protocol.gen.go index acd30aef..6723c2c3 100644 --- a/macos/foundation/url_authentication_challenge_sender_protocol.gen.go +++ b/macos/foundation/url_authentication_challenge_sender_protocol.gen.go @@ -18,10 +18,6 @@ type PURLAuthenticationChallengeSender interface { ContinueWithoutCredentialForAuthenticationChallenge(challenge URLAuthenticationChallenge) HasContinueWithoutCredentialForAuthenticationChallenge() bool - // optional - UseCredentialForAuthenticationChallenge(credential URLCredential, challenge URLAuthenticationChallenge) - HasUseCredentialForAuthenticationChallenge() bool - // optional PerformDefaultHandlingForAuthenticationChallenge(challenge URLAuthenticationChallenge) HasPerformDefaultHandlingForAuthenticationChallenge() bool @@ -29,6 +25,10 @@ type PURLAuthenticationChallengeSender interface { // optional RejectProtectionSpaceAndContinueWithChallenge(challenge URLAuthenticationChallenge) HasRejectProtectionSpaceAndContinueWithChallenge() bool + + // optional + UseCredentialForAuthenticationChallenge(credential URLCredential, challenge URLAuthenticationChallenge) + HasUseCredentialForAuthenticationChallenge() bool } // ensure impl type implements protocol interface @@ -61,17 +61,6 @@ func (u_ URLAuthenticationChallengeSenderObject) ContinueWithoutCredentialForAut objc.Call[objc.Void](u_, objc.Sel("continueWithoutCredentialForAuthenticationChallenge:"), challenge) } -func (u_ URLAuthenticationChallengeSenderObject) HasUseCredentialForAuthenticationChallenge() bool { - return u_.RespondsToSelector(objc.Sel("useCredential:forAuthenticationChallenge:")) -} - -// Attempt to use a given credential for a given authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallengesender/1411062-usecredential?language=objc -func (u_ URLAuthenticationChallengeSenderObject) UseCredentialForAuthenticationChallenge(credential URLCredential, challenge URLAuthenticationChallenge) { - objc.Call[objc.Void](u_, objc.Sel("useCredential:forAuthenticationChallenge:"), credential, challenge) -} - func (u_ URLAuthenticationChallengeSenderObject) HasPerformDefaultHandlingForAuthenticationChallenge() bool { return u_.RespondsToSelector(objc.Sel("performDefaultHandlingForAuthenticationChallenge:")) } @@ -93,3 +82,14 @@ func (u_ URLAuthenticationChallengeSenderObject) HasRejectProtectionSpaceAndCont func (u_ URLAuthenticationChallengeSenderObject) RejectProtectionSpaceAndContinueWithChallenge(challenge URLAuthenticationChallenge) { objc.Call[objc.Void](u_, objc.Sel("rejectProtectionSpaceAndContinueWithChallenge:"), challenge) } + +func (u_ URLAuthenticationChallengeSenderObject) HasUseCredentialForAuthenticationChallenge() bool { + return u_.RespondsToSelector(objc.Sel("useCredential:forAuthenticationChallenge:")) +} + +// Attempt to use a given credential for a given authentication challenge. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallengesender/1411062-usecredential?language=objc +func (u_ URLAuthenticationChallengeSenderObject) UseCredentialForAuthenticationChallenge(credential URLCredential, challenge URLAuthenticationChallenge) { + objc.Call[objc.Void](u_, objc.Sel("useCredential:forAuthenticationChallenge:"), credential, challenge) +} diff --git a/macos/foundation/url_cache.gen.go b/macos/foundation/url_cache.gen.go index 05ea88be..e987d8da 100644 --- a/macos/foundation/url_cache.gen.go +++ b/macos/foundation/url_cache.gen.go @@ -18,20 +18,19 @@ type _URLCacheClass struct { // An interface definition for the [URLCache] class. type IURLCache interface { objc.IObject - RemoveCachedResponsesSinceDate(date IDate) - StoreCachedResponseForDataTask(cachedResponse ICachedURLResponse, dataTask IURLSessionDataTask) GetCachedResponseForDataTaskCompletionHandler(dataTask IURLSessionDataTask, completionHandler func(cachedResponse CachedURLResponse)) - StoreCachedResponseForRequest(cachedResponse ICachedURLResponse, request IURLRequest) CachedResponseForRequest(request IURLRequest) CachedURLResponse - RemoveAllCachedResponses() - RemoveCachedResponseForRequest(request IURLRequest) RemoveCachedResponseForDataTask(dataTask IURLSessionDataTask) - MemoryCapacity() uint - SetMemoryCapacity(value uint) + RemoveCachedResponsesSinceDate(date IDate) + RemoveCachedResponseForRequest(request IURLRequest) + StoreCachedResponseForDataTask(cachedResponse ICachedURLResponse, dataTask IURLSessionDataTask) + RemoveAllCachedResponses() DiskCapacity() uint SetDiskCapacity(value uint) - CurrentDiskUsage() uint + MemoryCapacity() uint + SetMemoryCapacity(value uint) CurrentMemoryUsage() uint + CurrentDiskUsage() uint } // An object that maps URL requests to cached response objects. [Full Topic] @@ -81,20 +80,6 @@ func (u_ URLCache) Init() URLCache { return rv } -// Clears the given cache of any cached responses since the provided date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1415231-removecachedresponsessincedate?language=objc -func (u_ URLCache) RemoveCachedResponsesSinceDate(date IDate) { - objc.Call[objc.Void](u_, objc.Sel("removeCachedResponsesSinceDate:"), date) -} - -// Stores a cached URL response for a specified data task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1414434-storecachedresponse?language=objc -func (u_ URLCache) StoreCachedResponseForDataTask(cachedResponse ICachedURLResponse, dataTask IURLSessionDataTask) { - objc.Call[objc.Void](u_, objc.Sel("storeCachedResponse:forDataTask:"), cachedResponse, dataTask) -} - // Gets the cached URL response for a data task, passing it to the provided completion handler. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1409184-getcachedresponsefordatatask?language=objc @@ -102,13 +87,6 @@ func (u_ URLCache) GetCachedResponseForDataTaskCompletionHandler(dataTask IURLSe objc.Call[objc.Void](u_, objc.Sel("getCachedResponseForDataTask:completionHandler:"), dataTask, completionHandler) } -// Stores a cached URL response for a specified request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1410340-storecachedresponse?language=objc -func (u_ URLCache) StoreCachedResponseForRequest(cachedResponse ICachedURLResponse, request IURLRequest) { - objc.Call[objc.Void](u_, objc.Sel("storeCachedResponse:forRequest:"), cachedResponse, request) -} - // Returns the cached URL response in the cache for the specified URL request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1411817-cachedresponseforrequest?language=objc @@ -117,11 +95,18 @@ func (u_ URLCache) CachedResponseForRequest(request IURLRequest) CachedURLRespon return rv } -// Clears the receiver’s cache, removing all stored cached URL responses. [Full Topic] +// Removes the cached URL response for a specified data task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1417802-removeallcachedresponses?language=objc -func (u_ URLCache) RemoveAllCachedResponses() { - objc.Call[objc.Void](u_, objc.Sel("removeAllCachedResponses")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1412258-removecachedresponsefordatatask?language=objc +func (u_ URLCache) RemoveCachedResponseForDataTask(dataTask IURLSessionDataTask) { + objc.Call[objc.Void](u_, objc.Sel("removeCachedResponseForDataTask:"), dataTask) +} + +// Clears the given cache of any cached responses since the provided date. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1415231-removecachedresponsessincedate?language=objc +func (u_ URLCache) RemoveCachedResponsesSinceDate(date IDate) { + objc.Call[objc.Void](u_, objc.Sel("removeCachedResponsesSinceDate:"), date) } // Removes the cached URL response for a specified URL request. [Full Topic] @@ -131,26 +116,18 @@ func (u_ URLCache) RemoveCachedResponseForRequest(request IURLRequest) { objc.Call[objc.Void](u_, objc.Sel("removeCachedResponseForRequest:"), request) } -// Removes the cached URL response for a specified data task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1412258-removecachedresponsefordatatask?language=objc -func (u_ URLCache) RemoveCachedResponseForDataTask(dataTask IURLSessionDataTask) { - objc.Call[objc.Void](u_, objc.Sel("removeCachedResponseForDataTask:"), dataTask) -} - -// The capacity of the in-memory cache, in bytes. [Full Topic] +// Stores a cached URL response for a specified data task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1409781-memorycapacity?language=objc -func (u_ URLCache) MemoryCapacity() uint { - rv := objc.Call[uint](u_, objc.Sel("memoryCapacity")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1414434-storecachedresponse?language=objc +func (u_ URLCache) StoreCachedResponseForDataTask(cachedResponse ICachedURLResponse, dataTask IURLSessionDataTask) { + objc.Call[objc.Void](u_, objc.Sel("storeCachedResponse:forDataTask:"), cachedResponse, dataTask) } -// The capacity of the in-memory cache, in bytes. [Full Topic] +// Clears the receiver’s cache, removing all stored cached URL responses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1409781-memorycapacity?language=objc -func (u_ URLCache) SetMemoryCapacity(value uint) { - objc.Call[objc.Void](u_, objc.Sel("setMemoryCapacity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1417802-removeallcachedresponses?language=objc +func (u_ URLCache) RemoveAllCachedResponses() { + objc.Call[objc.Void](u_, objc.Sel("removeAllCachedResponses")) } // The capacity of the on-disk cache, in bytes. [Full Topic] @@ -168,14 +145,6 @@ func (u_ URLCache) SetDiskCapacity(value uint) { objc.Call[objc.Void](u_, objc.Sel("setDiskCapacity:"), value) } -// The current size of the on-disk cache, in bytes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1407771-currentdiskusage?language=objc -func (u_ URLCache) CurrentDiskUsage() uint { - rv := objc.Call[uint](u_, objc.Sel("currentDiskUsage")) - return rv -} - // The shared URL cache instance. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1413377-sharedurlcache?language=objc @@ -205,6 +174,21 @@ func URLCache_SetSharedURLCache(value IURLCache) { URLCacheClass.SetSharedURLCache(value) } +// The capacity of the in-memory cache, in bytes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1409781-memorycapacity?language=objc +func (u_ URLCache) MemoryCapacity() uint { + rv := objc.Call[uint](u_, objc.Sel("memoryCapacity")) + return rv +} + +// The capacity of the in-memory cache, in bytes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1409781-memorycapacity?language=objc +func (u_ URLCache) SetMemoryCapacity(value uint) { + objc.Call[objc.Void](u_, objc.Sel("setMemoryCapacity:"), value) +} + // The current size of the in-memory cache, in bytes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1408199-currentmemoryusage?language=objc @@ -212,3 +196,11 @@ func (u_ URLCache) CurrentMemoryUsage() uint { rv := objc.Call[uint](u_, objc.Sel("currentMemoryUsage")) return rv } + +// The current size of the on-disk cache, in bytes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcache/1407771-currentdiskusage?language=objc +func (u_ URLCache) CurrentDiskUsage() uint { + rv := objc.Call[uint](u_, objc.Sel("currentDiskUsage")) + return rv +} diff --git a/macos/foundation/url_components.gen.go b/macos/foundation/url_components.gen.go index f1e904a7..08bdb224 100644 --- a/macos/foundation/url_components.gen.go +++ b/macos/foundation/url_components.gen.go @@ -19,46 +19,46 @@ type _URLComponentsClass struct { type IURLComponents interface { objc.IObject URLRelativeToURL(baseURL IURL) URL - Scheme() string - SetScheme(value string) + Password() string + SetPassword(value string) + Path() string + SetPath(value string) + RangeOfPort() Range + PercentEncodedUser() string + SetPercentEncodedUser(value string) PercentEncodedPassword() string SetPercentEncodedPassword(value string) + Host() string + SetHost(value string) + RangeOfPassword() Range + RangeOfScheme() Range + Scheme() string + SetScheme(value string) RangeOfUser() Range + QueryItems() []URLQueryItem + SetQueryItems(value []IURLQueryItem) Query() string SetQuery(value string) - RangeOfPassword() Range + RangeOfFragment() Range + PercentEncodedQuery() string + SetPercentEncodedQuery(value string) + PercentEncodedFragment() string + SetPercentEncodedFragment(value string) + Fragment() string + SetFragment(value string) PercentEncodedQueryItems() []URLQueryItem SetPercentEncodedQueryItems(value []IURLQueryItem) - RangeOfFragment() Range + String() string + PercentEncodedPath() string + SetPercentEncodedPath(value string) + RangeOfQuery() Range User() string SetUser(value string) - RangeOfPath() Range - Path() string - SetPath(value string) - Host() string - SetHost(value string) - RangeOfHost() Range - PercentEncodedUser() string - SetPercentEncodedUser(value string) URL() URL - QueryItems() []URLQueryItem - SetQueryItems(value []IURLQueryItem) - String() string - RangeOfQuery() Range + RangeOfHost() Range Port() Number SetPort(value INumber) - PercentEncodedPath() string - SetPercentEncodedPath(value string) - Password() string - SetPassword(value string) - RangeOfScheme() Range - Fragment() string - SetFragment(value string) - RangeOfPort() Range - PercentEncodedQuery() string - SetPercentEncodedQuery(value string) - PercentEncodedFragment() string - SetPercentEncodedFragment(value string) + RangeOfPath() Range } // An object that parses URLs into and constructs URLs from their constituent parts. [Full Topic] @@ -74,11 +74,18 @@ func URLComponentsFrom(ptr unsafe.Pointer) URLComponents { } } -func (u_ URLComponents) Init() URLComponents { - rv := objc.Call[URLComponents](u_, objc.Sel("init")) +func (uc _URLComponentsClass) ComponentsWithURLResolvingAgainstBaseURL(url IURL, resolve bool) URLComponents { + rv := objc.Call[URLComponents](uc, objc.Sel("componentsWithURL:resolvingAgainstBaseURL:"), url, resolve) return rv } +// Returns a URL components object by parsing the URL from an NSURL object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1572050-componentswithurl?language=objc +func URLComponents_ComponentsWithURLResolvingAgainstBaseURL(url IURL, resolve bool) URLComponents { + return URLComponentsClass.ComponentsWithURLResolvingAgainstBaseURL(url, resolve) +} + func (uc _URLComponentsClass) ComponentsWithString(URLString string) URLComponents { rv := objc.Call[URLComponents](uc, objc.Sel("componentsWithString:"), URLString) return rv @@ -91,18 +98,6 @@ func URLComponents_ComponentsWithString(URLString string) URLComponents { return URLComponentsClass.ComponentsWithString(URLString) } -func (uc _URLComponentsClass) ComponentsWithURLResolvingAgainstBaseURL(url IURL, resolve bool) URLComponents { - rv := objc.Call[URLComponents](uc, objc.Sel("componentsWithURL:resolvingAgainstBaseURL:"), url, resolve) - return rv -} - -// Returns a URL components object by parsing the URL from an NSURL object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1572050-componentswithurl?language=objc -func URLComponents_ComponentsWithURLResolvingAgainstBaseURL(url IURL, resolve bool) URLComponents { - return URLComponentsClass.ComponentsWithURLResolvingAgainstBaseURL(url, resolve) -} - func (u_ URLComponents) InitWithURLResolvingAgainstBaseURL(url IURL, resolve bool) URLComponents { rv := objc.Call[URLComponents](u_, objc.Sel("initWithURL:resolvingAgainstBaseURL:"), url, resolve) return rv @@ -131,6 +126,11 @@ func NewURLComponentsWithString(URLString string) URLComponents { return instance } +func (u_ URLComponents) Init() URLComponents { + rv := objc.Call[URLComponents](u_, objc.Sel("init")) + return rv +} + func (uc _URLComponentsClass) Alloc() URLComponents { rv := objc.Call[URLComponents](uc, objc.Sel("alloc")) return rv @@ -154,19 +154,57 @@ func (u_ URLComponents) URLRelativeToURL(baseURL IURL) URL { return rv } -// The scheme URL component, or nil if not present. [Full Topic] +// The password URL subcomponent, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1407517-scheme?language=objc -func (u_ URLComponents) Scheme() string { - rv := objc.Call[string](u_, objc.Sel("scheme")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415604-password?language=objc +func (u_ URLComponents) Password() string { + rv := objc.Call[string](u_, objc.Sel("password")) return rv } -// The scheme URL component, or nil if not present. [Full Topic] +// The password URL subcomponent, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1407517-scheme?language=objc -func (u_ URLComponents) SetScheme(value string) { - objc.Call[objc.Void](u_, objc.Sel("setScheme:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415604-password?language=objc +func (u_ URLComponents) SetPassword(value string) { + objc.Call[objc.Void](u_, objc.Sel("setPassword:"), value) +} + +// The path URL component, or nil if not present. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1409650-path?language=objc +func (u_ URLComponents) Path() string { + rv := objc.Call[string](u_, objc.Sel("path")) + return rv +} + +// The path URL component, or nil if not present. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1409650-path?language=objc +func (u_ URLComponents) SetPath(value string) { + objc.Call[objc.Void](u_, objc.Sel("setPath:"), value) +} + +// Returns the character range of the port in the string returned by the string property. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1411790-rangeofport?language=objc +func (u_ URLComponents) RangeOfPort() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfPort")) + return rv +} + +// The username URL subcomponent expressed as a URL-encoded string, or nil if not present. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1417767-percentencodeduser?language=objc +func (u_ URLComponents) PercentEncodedUser() string { + rv := objc.Call[string](u_, objc.Sel("percentEncodedUser")) + return rv +} + +// The username URL subcomponent expressed as a URL-encoded string, or nil if not present. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1417767-percentencodeduser?language=objc +func (u_ URLComponents) SetPercentEncodedUser(value string) { + objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedUser:"), value) } // The password URL subcomponent expressed as a URL-encoded string, or nil if not present. [Full Topic] @@ -184,27 +222,19 @@ func (u_ URLComponents) SetPercentEncodedPassword(value string) { objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedPassword:"), value) } -// Returns the character range of the user in the string returned by the string property. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1414961-rangeofuser?language=objc -func (u_ URLComponents) RangeOfUser() Range { - rv := objc.Call[Range](u_, objc.Sel("rangeOfUser")) - return rv -} - -// The query URL component as a string, or nil if not present. [Full Topic] +// The host URL subcomponent, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415452-query?language=objc -func (u_ URLComponents) Query() string { - rv := objc.Call[string](u_, objc.Sel("query")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1411178-host?language=objc +func (u_ URLComponents) Host() string { + rv := objc.Call[string](u_, objc.Sel("host")) return rv } -// The query URL component as a string, or nil if not present. [Full Topic] +// The host URL subcomponent, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415452-query?language=objc -func (u_ URLComponents) SetQuery(value string) { - objc.Call[objc.Void](u_, objc.Sel("setQuery:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1411178-host?language=objc +func (u_ URLComponents) SetHost(value string) { + objc.Call[objc.Void](u_, objc.Sel("setHost:"), value) } // Returns the character range of the password in the string returned by the string property. [Full Topic] @@ -215,157 +245,141 @@ func (u_ URLComponents) RangeOfPassword() Range { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/2865531-percentencodedqueryitems?language=objc -func (u_ URLComponents) PercentEncodedQueryItems() []URLQueryItem { - rv := objc.Call[[]URLQueryItem](u_, objc.Sel("percentEncodedQueryItems")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/2865531-percentencodedqueryitems?language=objc -func (u_ URLComponents) SetPercentEncodedQueryItems(value []IURLQueryItem) { - objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedQueryItems:"), value) -} - -// Returns the character range of the fragment in the string returned by the string property. [Full Topic] +// Returns the character range of the scheme in the string returned by the string property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415180-rangeoffragment?language=objc -func (u_ URLComponents) RangeOfFragment() Range { - rv := objc.Call[Range](u_, objc.Sel("rangeOfFragment")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1410099-rangeofscheme?language=objc +func (u_ URLComponents) RangeOfScheme() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfScheme")) return rv } -// The username URL subcomponent, or nil if not present. [Full Topic] +// The scheme URL component, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415026-user?language=objc -func (u_ URLComponents) User() string { - rv := objc.Call[string](u_, objc.Sel("user")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1407517-scheme?language=objc +func (u_ URLComponents) Scheme() string { + rv := objc.Call[string](u_, objc.Sel("scheme")) return rv } -// The username URL subcomponent, or nil if not present. [Full Topic] +// The scheme URL component, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415026-user?language=objc -func (u_ URLComponents) SetUser(value string) { - objc.Call[objc.Void](u_, objc.Sel("setUser:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1407517-scheme?language=objc +func (u_ URLComponents) SetScheme(value string) { + objc.Call[objc.Void](u_, objc.Sel("setScheme:"), value) } -// Returns the character range of the path in the string returned by the string property. [Full Topic] +// Returns the character range of the user in the string returned by the string property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1418459-rangeofpath?language=objc -func (u_ URLComponents) RangeOfPath() Range { - rv := objc.Call[Range](u_, objc.Sel("rangeOfPath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1414961-rangeofuser?language=objc +func (u_ URLComponents) RangeOfUser() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfUser")) return rv } -// The path URL component, or nil if not present. [Full Topic] +// The query URL component as an array of name/value pairs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1409650-path?language=objc -func (u_ URLComponents) Path() string { - rv := objc.Call[string](u_, objc.Sel("path")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1407752-queryitems?language=objc +func (u_ URLComponents) QueryItems() []URLQueryItem { + rv := objc.Call[[]URLQueryItem](u_, objc.Sel("queryItems")) return rv } -// The path URL component, or nil if not present. [Full Topic] +// The query URL component as an array of name/value pairs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1409650-path?language=objc -func (u_ URLComponents) SetPath(value string) { - objc.Call[objc.Void](u_, objc.Sel("setPath:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1407752-queryitems?language=objc +func (u_ URLComponents) SetQueryItems(value []IURLQueryItem) { + objc.Call[objc.Void](u_, objc.Sel("setQueryItems:"), value) } -// The host URL subcomponent, or nil if not present. [Full Topic] +// The query URL component as a string, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1411178-host?language=objc -func (u_ URLComponents) Host() string { - rv := objc.Call[string](u_, objc.Sel("host")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415452-query?language=objc +func (u_ URLComponents) Query() string { + rv := objc.Call[string](u_, objc.Sel("query")) return rv } -// The host URL subcomponent, or nil if not present. [Full Topic] +// The query URL component as a string, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1411178-host?language=objc -func (u_ URLComponents) SetHost(value string) { - objc.Call[objc.Void](u_, objc.Sel("setHost:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415452-query?language=objc +func (u_ URLComponents) SetQuery(value string) { + objc.Call[objc.Void](u_, objc.Sel("setQuery:"), value) } -// Returns the character range of the host in the string returned by the string property. [Full Topic] +// Returns the character range of the fragment in the string returned by the string property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1408894-rangeofhost?language=objc -func (u_ URLComponents) RangeOfHost() Range { - rv := objc.Call[Range](u_, objc.Sel("rangeOfHost")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415180-rangeoffragment?language=objc +func (u_ URLComponents) RangeOfFragment() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfFragment")) return rv } -// The username URL subcomponent expressed as a URL-encoded string, or nil if not present. [Full Topic] +// The query URL component expressed as a URL-encoded string, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1417767-percentencodeduser?language=objc -func (u_ URLComponents) PercentEncodedUser() string { - rv := objc.Call[string](u_, objc.Sel("percentEncodedUser")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1410395-percentencodedquery?language=objc +func (u_ URLComponents) PercentEncodedQuery() string { + rv := objc.Call[string](u_, objc.Sel("percentEncodedQuery")) return rv } -// The username URL subcomponent expressed as a URL-encoded string, or nil if not present. [Full Topic] +// The query URL component expressed as a URL-encoded string, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1417767-percentencodeduser?language=objc -func (u_ URLComponents) SetPercentEncodedUser(value string) { - objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedUser:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1410395-percentencodedquery?language=objc +func (u_ URLComponents) SetPercentEncodedQuery(value string) { + objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedQuery:"), value) } -// A URL object derived from the components object. [Full Topic] +// The fragment URL component (the part after a # symbol) expressed as a URL-encoded string, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1413469-url?language=objc -func (u_ URLComponents) URL() URL { - rv := objc.Call[URL](u_, objc.Sel("URL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1418392-percentencodedfragment?language=objc +func (u_ URLComponents) PercentEncodedFragment() string { + rv := objc.Call[string](u_, objc.Sel("percentEncodedFragment")) return rv } -// The query URL component as an array of name/value pairs. [Full Topic] +// The fragment URL component (the part after a # symbol) expressed as a URL-encoded string, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1407752-queryitems?language=objc -func (u_ URLComponents) QueryItems() []URLQueryItem { - rv := objc.Call[[]URLQueryItem](u_, objc.Sel("queryItems")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1418392-percentencodedfragment?language=objc +func (u_ URLComponents) SetPercentEncodedFragment(value string) { + objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedFragment:"), value) } -// The query URL component as an array of name/value pairs. [Full Topic] +// The fragment URL component (the part after a # symbol), or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1407752-queryitems?language=objc -func (u_ URLComponents) SetQueryItems(value []IURLQueryItem) { - objc.Call[objc.Void](u_, objc.Sel("setQueryItems:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1417638-fragment?language=objc +func (u_ URLComponents) Fragment() string { + rv := objc.Call[string](u_, objc.Sel("fragment")) + return rv } -// A URL derived from the components object, in string form. [Full Topic] +// The fragment URL component (the part after a # symbol), or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1417970-string?language=objc -func (u_ URLComponents) String() string { - rv := objc.Call[string](u_, objc.Sel("string")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1417638-fragment?language=objc +func (u_ URLComponents) SetFragment(value string) { + objc.Call[objc.Void](u_, objc.Sel("setFragment:"), value) } -// Returns the character range of the query in the string returned by the string property. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1409456-rangeofquery?language=objc -func (u_ URLComponents) RangeOfQuery() Range { - rv := objc.Call[Range](u_, objc.Sel("rangeOfQuery")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/2865531-percentencodedqueryitems?language=objc +func (u_ URLComponents) PercentEncodedQueryItems() []URLQueryItem { + rv := objc.Call[[]URLQueryItem](u_, objc.Sel("percentEncodedQueryItems")) return rv } -// The port number URL component, or nil if not present. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1413451-port?language=objc -func (u_ URLComponents) Port() Number { - rv := objc.Call[Number](u_, objc.Sel("port")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/2865531-percentencodedqueryitems?language=objc +func (u_ URLComponents) SetPercentEncodedQueryItems(value []IURLQueryItem) { + objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedQueryItems:"), value) } -// The port number URL component, or nil if not present. [Full Topic] +// A URL derived from the components object, in string form. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1413451-port?language=objc -func (u_ URLComponents) SetPort(value INumber) { - objc.Call[objc.Void](u_, objc.Sel("setPort:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1417970-string?language=objc +func (u_ URLComponents) String() string { + rv := objc.Call[string](u_, objc.Sel("string")) + return rv } // The path URL component expressed as a URL-encoded string, or nil if not present. [Full Topic] @@ -383,78 +397,64 @@ func (u_ URLComponents) SetPercentEncodedPath(value string) { objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedPath:"), value) } -// The password URL subcomponent, or nil if not present. [Full Topic] +// Returns the character range of the query in the string returned by the string property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415604-password?language=objc -func (u_ URLComponents) Password() string { - rv := objc.Call[string](u_, objc.Sel("password")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1409456-rangeofquery?language=objc +func (u_ URLComponents) RangeOfQuery() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfQuery")) return rv } -// The password URL subcomponent, or nil if not present. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415604-password?language=objc -func (u_ URLComponents) SetPassword(value string) { - objc.Call[objc.Void](u_, objc.Sel("setPassword:"), value) -} - -// Returns the character range of the scheme in the string returned by the string property. [Full Topic] +// The username URL subcomponent, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1410099-rangeofscheme?language=objc -func (u_ URLComponents) RangeOfScheme() Range { - rv := objc.Call[Range](u_, objc.Sel("rangeOfScheme")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415026-user?language=objc +func (u_ URLComponents) User() string { + rv := objc.Call[string](u_, objc.Sel("user")) return rv } -// The fragment URL component (the part after a # symbol), or nil if not present. [Full Topic] +// The username URL subcomponent, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1417638-fragment?language=objc -func (u_ URLComponents) Fragment() string { - rv := objc.Call[string](u_, objc.Sel("fragment")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1415026-user?language=objc +func (u_ URLComponents) SetUser(value string) { + objc.Call[objc.Void](u_, objc.Sel("setUser:"), value) } -// The fragment URL component (the part after a # symbol), or nil if not present. [Full Topic] +// A URL object derived from the components object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1417638-fragment?language=objc -func (u_ URLComponents) SetFragment(value string) { - objc.Call[objc.Void](u_, objc.Sel("setFragment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1413469-url?language=objc +func (u_ URLComponents) URL() URL { + rv := objc.Call[URL](u_, objc.Sel("URL")) + return rv } -// Returns the character range of the port in the string returned by the string property. [Full Topic] +// Returns the character range of the host in the string returned by the string property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1411790-rangeofport?language=objc -func (u_ URLComponents) RangeOfPort() Range { - rv := objc.Call[Range](u_, objc.Sel("rangeOfPort")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1408894-rangeofhost?language=objc +func (u_ URLComponents) RangeOfHost() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfHost")) return rv } -// The query URL component expressed as a URL-encoded string, or nil if not present. [Full Topic] +// The port number URL component, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1410395-percentencodedquery?language=objc -func (u_ URLComponents) PercentEncodedQuery() string { - rv := objc.Call[string](u_, objc.Sel("percentEncodedQuery")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1413451-port?language=objc +func (u_ URLComponents) Port() Number { + rv := objc.Call[Number](u_, objc.Sel("port")) return rv } -// The query URL component expressed as a URL-encoded string, or nil if not present. [Full Topic] +// The port number URL component, or nil if not present. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1410395-percentencodedquery?language=objc -func (u_ URLComponents) SetPercentEncodedQuery(value string) { - objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedQuery:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1413451-port?language=objc +func (u_ URLComponents) SetPort(value INumber) { + objc.Call[objc.Void](u_, objc.Sel("setPort:"), value) } -// The fragment URL component (the part after a # symbol) expressed as a URL-encoded string, or nil if not present. [Full Topic] +// Returns the character range of the path in the string returned by the string property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1418392-percentencodedfragment?language=objc -func (u_ URLComponents) PercentEncodedFragment() string { - rv := objc.Call[string](u_, objc.Sel("percentEncodedFragment")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1418459-rangeofpath?language=objc +func (u_ URLComponents) RangeOfPath() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfPath")) return rv } - -// The fragment URL component (the part after a # symbol) expressed as a URL-encoded string, or nil if not present. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1418392-percentencodedfragment?language=objc -func (u_ URLComponents) SetPercentEncodedFragment(value string) { - objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedFragment:"), value) -} diff --git a/macos/foundation/url_connection.gen.go b/macos/foundation/url_connection.gen.go index 804d70c8..a75a6e09 100644 --- a/macos/foundation/url_connection.gen.go +++ b/macos/foundation/url_connection.gen.go @@ -19,10 +19,10 @@ type _URLConnectionClass struct { type IURLConnection interface { objc.IObject ScheduleInRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) - Cancel() Start() - UnscheduleFromRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) SetDelegateQueue(queue IOperationQueue) + UnscheduleFromRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) + Cancel() CurrentRequest() URLRequest OriginalRequest() URLRequest } @@ -60,6 +60,13 @@ func (u_ URLConnection) Init() URLConnection { return rv } +// Determines the run loop and mode that the connection uses to call methods on its delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnection/1417485-scheduleinrunloop?language=objc +func (u_ URLConnection) ScheduleInRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) { + objc.Call[objc.Void](u_, objc.Sel("scheduleInRunLoop:forMode:"), aRunLoop, mode) +} + // Returns whether a request can be handled based on a preflight evaluation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnection/1413072-canhandlerequest?language=objc @@ -75,20 +82,6 @@ func URLConnection_CanHandleRequest(request IURLRequest) bool { return URLConnectionClass.CanHandleRequest(request) } -// Determines the run loop and mode that the connection uses to call methods on its delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnection/1417485-scheduleinrunloop?language=objc -func (u_ URLConnection) ScheduleInRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) { - objc.Call[objc.Void](u_, objc.Sel("scheduleInRunLoop:forMode:"), aRunLoop, mode) -} - -// Cancels an asynchronous load of a request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnection/1407797-cancel?language=objc -func (u_ URLConnection) Cancel() { - objc.Call[objc.Void](u_, objc.Sel("cancel")) -} - // Causes the connection to begin loading data, if it has not already. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnection/1417345-start?language=objc @@ -96,6 +89,13 @@ func (u_ URLConnection) Start() { objc.Call[objc.Void](u_, objc.Sel("start")) } +// Determines the operation queue that is used to call methods on the connection’s delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnection/1411849-setdelegatequeue?language=objc +func (u_ URLConnection) SetDelegateQueue(queue IOperationQueue) { + objc.Call[objc.Void](u_, objc.Sel("setDelegateQueue:"), queue) +} + // Causes the connection to stop calling delegate methods in the specified run loop and mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnection/1409722-unschedulefromrunloop?language=objc @@ -103,11 +103,11 @@ func (u_ URLConnection) UnscheduleFromRunLoopForMode(aRunLoop IRunLoop, mode Run objc.Call[objc.Void](u_, objc.Sel("unscheduleFromRunLoop:forMode:"), aRunLoop, mode) } -// Determines the operation queue that is used to call methods on the connection’s delegate. [Full Topic] +// Cancels an asynchronous load of a request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnection/1411849-setdelegatequeue?language=objc -func (u_ URLConnection) SetDelegateQueue(queue IOperationQueue) { - objc.Call[objc.Void](u_, objc.Sel("setDelegateQueue:"), queue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnection/1407797-cancel?language=objc +func (u_ URLConnection) Cancel() { + objc.Call[objc.Void](u_, objc.Sel("cancel")) } // The current connection request. [Full Topic] diff --git a/macos/foundation/url_connection_data_delegate.gen.go b/macos/foundation/url_connection_data_delegate.gen.go index b748b0e5..6efa7040 100644 --- a/macos/foundation/url_connection_data_delegate.gen.go +++ b/macos/foundation/url_connection_data_delegate.gen.go @@ -10,97 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate?language=objc type PURLConnectionDataDelegate interface { - // optional - ConnectionDidFinishLoading(connection URLConnection) - HasConnectionDidFinishLoading() bool - - // optional - ConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite(connection URLConnection, bytesWritten int, totalBytesWritten int, totalBytesExpectedToWrite int) - HasConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite() bool - - // optional - ConnectionWillCacheResponse(connection URLConnection, cachedResponse CachedURLResponse) CachedURLResponse - HasConnectionWillCacheResponse() bool - // optional ConnectionDidReceiveData(connection URLConnection, data []byte) HasConnectionDidReceiveData() bool // optional - ConnectionDidReceiveResponse(connection URLConnection, response URLResponse) - HasConnectionDidReceiveResponse() bool - - // optional - ConnectionWillSendRequestRedirectResponse(connection URLConnection, request URLRequest, response URLResponse) URLRequest - HasConnectionWillSendRequestRedirectResponse() bool - - // optional - ConnectionNeedNewBodyStream(connection URLConnection, request URLRequest) InputStream - HasConnectionNeedNewBodyStream() bool + ConnectionDidFinishLoading(connection URLConnection) + HasConnectionDidFinishLoading() bool } // A delegate implementation builder for the [PURLConnectionDataDelegate] protocol. type URLConnectionDataDelegate struct { - _ConnectionDidFinishLoading func(connection URLConnection) - _ConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite func(connection URLConnection, bytesWritten int, totalBytesWritten int, totalBytesExpectedToWrite int) - _ConnectionWillCacheResponse func(connection URLConnection, cachedResponse CachedURLResponse) CachedURLResponse - _ConnectionDidReceiveData func(connection URLConnection, data []byte) - _ConnectionDidReceiveResponse func(connection URLConnection, response URLResponse) - _ConnectionWillSendRequestRedirectResponse func(connection URLConnection, request URLRequest, response URLResponse) URLRequest - _ConnectionNeedNewBodyStream func(connection URLConnection, request URLRequest) InputStream + _ConnectionDidReceiveData func(connection URLConnection, data []byte) + _ConnectionDidFinishLoading func(connection URLConnection) } -func (di *URLConnectionDataDelegate) HasConnectionDidFinishLoading() bool { - return di._ConnectionDidFinishLoading != nil -} - -// Sent when a connection has finished loading successfully. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1416409-connectiondidfinishloading?language=objc -func (di *URLConnectionDataDelegate) SetConnectionDidFinishLoading(f func(connection URLConnection)) { - di._ConnectionDidFinishLoading = f -} - -// Sent when a connection has finished loading successfully. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1416409-connectiondidfinishloading?language=objc -func (di *URLConnectionDataDelegate) ConnectionDidFinishLoading(connection URLConnection) { - di._ConnectionDidFinishLoading(connection) -} -func (di *URLConnectionDataDelegate) HasConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite() bool { - return di._ConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite != nil -} - -// Sent as the body (message data) of a request is transmitted (such as in an HTTP POST request). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1418264-connection?language=objc -func (di *URLConnectionDataDelegate) SetConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite(f func(connection URLConnection, bytesWritten int, totalBytesWritten int, totalBytesExpectedToWrite int)) { - di._ConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite = f -} - -// Sent as the body (message data) of a request is transmitted (such as in an HTTP POST request). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1418264-connection?language=objc -func (di *URLConnectionDataDelegate) ConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite(connection URLConnection, bytesWritten int, totalBytesWritten int, totalBytesExpectedToWrite int) { - di._ConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite(connection, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite) -} -func (di *URLConnectionDataDelegate) HasConnectionWillCacheResponse() bool { - return di._ConnectionWillCacheResponse != nil -} - -// Sent before the connection stores a cached response in the cache, to give the delegate an opportunity to alter it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1414834-connection?language=objc -func (di *URLConnectionDataDelegate) SetConnectionWillCacheResponse(f func(connection URLConnection, cachedResponse CachedURLResponse) CachedURLResponse) { - di._ConnectionWillCacheResponse = f -} - -// Sent before the connection stores a cached response in the cache, to give the delegate an opportunity to alter it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1414834-connection?language=objc -func (di *URLConnectionDataDelegate) ConnectionWillCacheResponse(connection URLConnection, cachedResponse CachedURLResponse) CachedURLResponse { - return di._ConnectionWillCacheResponse(connection, cachedResponse) -} func (di *URLConnectionDataDelegate) HasConnectionDidReceiveData() bool { return di._ConnectionDidReceiveData != nil } @@ -118,56 +42,22 @@ func (di *URLConnectionDataDelegate) SetConnectionDidReceiveData(f func(connecti func (di *URLConnectionDataDelegate) ConnectionDidReceiveData(connection URLConnection, data []byte) { di._ConnectionDidReceiveData(connection, data) } -func (di *URLConnectionDataDelegate) HasConnectionDidReceiveResponse() bool { - return di._ConnectionDidReceiveResponse != nil -} - -// Sent when the connection has received sufficient data to construct the URL response for its request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1407728-connection?language=objc -func (di *URLConnectionDataDelegate) SetConnectionDidReceiveResponse(f func(connection URLConnection, response URLResponse)) { - di._ConnectionDidReceiveResponse = f -} - -// Sent when the connection has received sufficient data to construct the URL response for its request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1407728-connection?language=objc -func (di *URLConnectionDataDelegate) ConnectionDidReceiveResponse(connection URLConnection, response URLResponse) { - di._ConnectionDidReceiveResponse(connection, response) -} -func (di *URLConnectionDataDelegate) HasConnectionWillSendRequestRedirectResponse() bool { - return di._ConnectionWillSendRequestRedirectResponse != nil -} - -// Sent when the connection determines that it must change URLs in order to continue loading a request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1415830-connection?language=objc -func (di *URLConnectionDataDelegate) SetConnectionWillSendRequestRedirectResponse(f func(connection URLConnection, request URLRequest, response URLResponse) URLRequest) { - di._ConnectionWillSendRequestRedirectResponse = f -} - -// Sent when the connection determines that it must change URLs in order to continue loading a request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1415830-connection?language=objc -func (di *URLConnectionDataDelegate) ConnectionWillSendRequestRedirectResponse(connection URLConnection, request URLRequest, response URLResponse) URLRequest { - return di._ConnectionWillSendRequestRedirectResponse(connection, request, response) -} -func (di *URLConnectionDataDelegate) HasConnectionNeedNewBodyStream() bool { - return di._ConnectionNeedNewBodyStream != nil +func (di *URLConnectionDataDelegate) HasConnectionDidFinishLoading() bool { + return di._ConnectionDidFinishLoading != nil } -// Called when an NSURLConnection needs to retransmit a request that has a body stream to provide a new, unopened stream. [Full Topic] +// Sent when a connection has finished loading successfully. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1412892-connection?language=objc -func (di *URLConnectionDataDelegate) SetConnectionNeedNewBodyStream(f func(connection URLConnection, request URLRequest) InputStream) { - di._ConnectionNeedNewBodyStream = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1416409-connectiondidfinishloading?language=objc +func (di *URLConnectionDataDelegate) SetConnectionDidFinishLoading(f func(connection URLConnection)) { + di._ConnectionDidFinishLoading = f } -// Called when an NSURLConnection needs to retransmit a request that has a body stream to provide a new, unopened stream. [Full Topic] +// Sent when a connection has finished loading successfully. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1412892-connection?language=objc -func (di *URLConnectionDataDelegate) ConnectionNeedNewBodyStream(connection URLConnection, request URLRequest) InputStream { - return di._ConnectionNeedNewBodyStream(connection, request) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1416409-connectiondidfinishloading?language=objc +func (di *URLConnectionDataDelegate) ConnectionDidFinishLoading(connection URLConnection) { + di._ConnectionDidFinishLoading(connection) } // ensure impl type implements protocol interface @@ -178,40 +68,6 @@ type URLConnectionDataDelegateObject struct { objc.Object } -func (u_ URLConnectionDataDelegateObject) HasConnectionDidFinishLoading() bool { - return u_.RespondsToSelector(objc.Sel("connectionDidFinishLoading:")) -} - -// Sent when a connection has finished loading successfully. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1416409-connectiondidfinishloading?language=objc -func (u_ URLConnectionDataDelegateObject) ConnectionDidFinishLoading(connection URLConnection) { - objc.Call[objc.Void](u_, objc.Sel("connectionDidFinishLoading:"), connection) -} - -func (u_ URLConnectionDataDelegateObject) HasConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite() bool { - return u_.RespondsToSelector(objc.Sel("connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:")) -} - -// Sent as the body (message data) of a request is transmitted (such as in an HTTP POST request). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1418264-connection?language=objc -func (u_ URLConnectionDataDelegateObject) ConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite(connection URLConnection, bytesWritten int, totalBytesWritten int, totalBytesExpectedToWrite int) { - objc.Call[objc.Void](u_, objc.Sel("connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:"), connection, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite) -} - -func (u_ URLConnectionDataDelegateObject) HasConnectionWillCacheResponse() bool { - return u_.RespondsToSelector(objc.Sel("connection:willCacheResponse:")) -} - -// Sent before the connection stores a cached response in the cache, to give the delegate an opportunity to alter it. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1414834-connection?language=objc -func (u_ URLConnectionDataDelegateObject) ConnectionWillCacheResponse(connection URLConnection, cachedResponse CachedURLResponse) CachedURLResponse { - rv := objc.Call[CachedURLResponse](u_, objc.Sel("connection:willCacheResponse:"), connection, cachedResponse) - return rv -} - func (u_ URLConnectionDataDelegateObject) HasConnectionDidReceiveData() bool { return u_.RespondsToSelector(objc.Sel("connection:didReceiveData:")) } @@ -223,37 +79,13 @@ func (u_ URLConnectionDataDelegateObject) ConnectionDidReceiveData(connection UR objc.Call[objc.Void](u_, objc.Sel("connection:didReceiveData:"), connection, data) } -func (u_ URLConnectionDataDelegateObject) HasConnectionDidReceiveResponse() bool { - return u_.RespondsToSelector(objc.Sel("connection:didReceiveResponse:")) -} - -// Sent when the connection has received sufficient data to construct the URL response for its request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1407728-connection?language=objc -func (u_ URLConnectionDataDelegateObject) ConnectionDidReceiveResponse(connection URLConnection, response URLResponse) { - objc.Call[objc.Void](u_, objc.Sel("connection:didReceiveResponse:"), connection, response) -} - -func (u_ URLConnectionDataDelegateObject) HasConnectionWillSendRequestRedirectResponse() bool { - return u_.RespondsToSelector(objc.Sel("connection:willSendRequest:redirectResponse:")) -} - -// Sent when the connection determines that it must change URLs in order to continue loading a request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1415830-connection?language=objc -func (u_ URLConnectionDataDelegateObject) ConnectionWillSendRequestRedirectResponse(connection URLConnection, request URLRequest, response URLResponse) URLRequest { - rv := objc.Call[URLRequest](u_, objc.Sel("connection:willSendRequest:redirectResponse:"), connection, request, response) - return rv -} - -func (u_ URLConnectionDataDelegateObject) HasConnectionNeedNewBodyStream() bool { - return u_.RespondsToSelector(objc.Sel("connection:needNewBodyStream:")) +func (u_ URLConnectionDataDelegateObject) HasConnectionDidFinishLoading() bool { + return u_.RespondsToSelector(objc.Sel("connectionDidFinishLoading:")) } -// Called when an NSURLConnection needs to retransmit a request that has a body stream to provide a new, unopened stream. [Full Topic] +// Sent when a connection has finished loading successfully. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1412892-connection?language=objc -func (u_ URLConnectionDataDelegateObject) ConnectionNeedNewBodyStream(connection URLConnection, request URLRequest) InputStream { - rv := objc.Call[InputStream](u_, objc.Sel("connection:needNewBodyStream:"), connection, request) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1416409-connectiondidfinishloading?language=objc +func (u_ URLConnectionDataDelegateObject) ConnectionDidFinishLoading(connection URLConnection) { + objc.Call[objc.Void](u_, objc.Sel("connectionDidFinishLoading:"), connection) } diff --git a/macos/foundation/url_connection_delegate.gen.go b/macos/foundation/url_connection_delegate.gen.go index 5ce2b7e7..2117b37f 100644 --- a/macos/foundation/url_connection_delegate.gen.go +++ b/macos/foundation/url_connection_delegate.gen.go @@ -17,17 +17,12 @@ type PURLConnectionDelegate interface { // optional ConnectionDidFailWithError(connection URLConnection, error Error) HasConnectionDidFailWithError() bool - - // optional - ConnectionWillSendRequestForAuthenticationChallenge(connection URLConnection, challenge URLAuthenticationChallenge) - HasConnectionWillSendRequestForAuthenticationChallenge() bool } // A delegate implementation builder for the [PURLConnectionDelegate] protocol. type URLConnectionDelegate struct { - _ConnectionShouldUseCredentialStorage func(connection URLConnection) bool - _ConnectionDidFailWithError func(connection URLConnection, error Error) - _ConnectionWillSendRequestForAuthenticationChallenge func(connection URLConnection, challenge URLAuthenticationChallenge) + _ConnectionShouldUseCredentialStorage func(connection URLConnection) bool + _ConnectionDidFailWithError func(connection URLConnection, error Error) } func (di *URLConnectionDelegate) HasConnectionShouldUseCredentialStorage() bool { @@ -64,23 +59,6 @@ func (di *URLConnectionDelegate) SetConnectionDidFailWithError(f func(connection func (di *URLConnectionDelegate) ConnectionDidFailWithError(connection URLConnection, error Error) { di._ConnectionDidFailWithError(connection, error) } -func (di *URLConnectionDelegate) HasConnectionWillSendRequestForAuthenticationChallenge() bool { - return di._ConnectionWillSendRequestForAuthenticationChallenge != nil -} - -// Tells the delegate that the connection will send a request for an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondelegate/1414078-connection?language=objc -func (di *URLConnectionDelegate) SetConnectionWillSendRequestForAuthenticationChallenge(f func(connection URLConnection, challenge URLAuthenticationChallenge)) { - di._ConnectionWillSendRequestForAuthenticationChallenge = f -} - -// Tells the delegate that the connection will send a request for an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondelegate/1414078-connection?language=objc -func (di *URLConnectionDelegate) ConnectionWillSendRequestForAuthenticationChallenge(connection URLConnection, challenge URLAuthenticationChallenge) { - di._ConnectionWillSendRequestForAuthenticationChallenge(connection, challenge) -} // ensure impl type implements protocol interface var _ PURLConnectionDelegate = (*URLConnectionDelegateObject)(nil) @@ -112,14 +90,3 @@ func (u_ URLConnectionDelegateObject) HasConnectionDidFailWithError() bool { func (u_ URLConnectionDelegateObject) ConnectionDidFailWithError(connection URLConnection, error Error) { objc.Call[objc.Void](u_, objc.Sel("connection:didFailWithError:"), connection, error) } - -func (u_ URLConnectionDelegateObject) HasConnectionWillSendRequestForAuthenticationChallenge() bool { - return u_.RespondsToSelector(objc.Sel("connection:willSendRequestForAuthenticationChallenge:")) -} - -// Tells the delegate that the connection will send a request for an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondelegate/1414078-connection?language=objc -func (u_ URLConnectionDelegateObject) ConnectionWillSendRequestForAuthenticationChallenge(connection URLConnection, challenge URLAuthenticationChallenge) { - objc.Call[objc.Void](u_, objc.Sel("connection:willSendRequestForAuthenticationChallenge:"), connection, challenge) -} diff --git a/macos/foundation/url_connection_download_delegate.gen.go b/macos/foundation/url_connection_download_delegate.gen.go index f2f957d7..59559f97 100644 --- a/macos/foundation/url_connection_download_delegate.gen.go +++ b/macos/foundation/url_connection_download_delegate.gen.go @@ -11,41 +11,41 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate?language=objc type PURLConnectionDownloadDelegate interface { // optional - ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) - HasConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes() bool + ConnectionDidFinishDownloadingDestinationURL(connection URLConnection, destinationURL URL) + HasConnectionDidFinishDownloadingDestinationURL() bool // optional ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes(connection URLConnection, totalBytesWritten int64, expectedTotalBytes int64) HasConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes() bool // optional - ConnectionDidFinishDownloadingDestinationURL(connection URLConnection, destinationURL URL) - HasConnectionDidFinishDownloadingDestinationURL() bool + ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) + HasConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes() bool } // A delegate implementation builder for the [PURLConnectionDownloadDelegate] protocol. type URLConnectionDownloadDelegate struct { - _ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes func(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) - _ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes func(connection URLConnection, totalBytesWritten int64, expectedTotalBytes int64) _ConnectionDidFinishDownloadingDestinationURL func(connection URLConnection, destinationURL URL) + _ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes func(connection URLConnection, totalBytesWritten int64, expectedTotalBytes int64) + _ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes func(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) } -func (di *URLConnectionDownloadDelegate) HasConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes() bool { - return di._ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes != nil +func (di *URLConnectionDownloadDelegate) HasConnectionDidFinishDownloadingDestinationURL() bool { + return di._ConnectionDidFinishDownloadingDestinationURL != nil } -// Sent to the delegate to deliver progress information for a download of a URL asset to a destination file. [Full Topic] +// Sent to the delegate when the URL connection has successfully downloaded the URL asset to a destination file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1418304-connection?language=objc -func (di *URLConnectionDownloadDelegate) SetConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(f func(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64)) { - di._ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1412126-connectiondidfinishdownloading?language=objc +func (di *URLConnectionDownloadDelegate) SetConnectionDidFinishDownloadingDestinationURL(f func(connection URLConnection, destinationURL URL)) { + di._ConnectionDidFinishDownloadingDestinationURL = f } -// Sent to the delegate to deliver progress information for a download of a URL asset to a destination file. [Full Topic] +// Sent to the delegate when the URL connection has successfully downloaded the URL asset to a destination file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1418304-connection?language=objc -func (di *URLConnectionDownloadDelegate) ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) { - di._ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection, bytesWritten, totalBytesWritten, expectedTotalBytes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1412126-connectiondidfinishdownloading?language=objc +func (di *URLConnectionDownloadDelegate) ConnectionDidFinishDownloadingDestinationURL(connection URLConnection, destinationURL URL) { + di._ConnectionDidFinishDownloadingDestinationURL(connection, destinationURL) } func (di *URLConnectionDownloadDelegate) HasConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes() bool { return di._ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes != nil @@ -64,22 +64,22 @@ func (di *URLConnectionDownloadDelegate) SetConnectionDidResumeDownloadingTotalB func (di *URLConnectionDownloadDelegate) ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes(connection URLConnection, totalBytesWritten int64, expectedTotalBytes int64) { di._ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes(connection, totalBytesWritten, expectedTotalBytes) } -func (di *URLConnectionDownloadDelegate) HasConnectionDidFinishDownloadingDestinationURL() bool { - return di._ConnectionDidFinishDownloadingDestinationURL != nil +func (di *URLConnectionDownloadDelegate) HasConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes() bool { + return di._ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes != nil } -// Sent to the delegate when the URL connection has successfully downloaded the URL asset to a destination file. [Full Topic] +// Sent to the delegate to deliver progress information for a download of a URL asset to a destination file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1412126-connectiondidfinishdownloading?language=objc -func (di *URLConnectionDownloadDelegate) SetConnectionDidFinishDownloadingDestinationURL(f func(connection URLConnection, destinationURL URL)) { - di._ConnectionDidFinishDownloadingDestinationURL = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1418304-connection?language=objc +func (di *URLConnectionDownloadDelegate) SetConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(f func(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64)) { + di._ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes = f } -// Sent to the delegate when the URL connection has successfully downloaded the URL asset to a destination file. [Full Topic] +// Sent to the delegate to deliver progress information for a download of a URL asset to a destination file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1412126-connectiondidfinishdownloading?language=objc -func (di *URLConnectionDownloadDelegate) ConnectionDidFinishDownloadingDestinationURL(connection URLConnection, destinationURL URL) { - di._ConnectionDidFinishDownloadingDestinationURL(connection, destinationURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1418304-connection?language=objc +func (di *URLConnectionDownloadDelegate) ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) { + di._ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection, bytesWritten, totalBytesWritten, expectedTotalBytes) } // ensure impl type implements protocol interface @@ -90,15 +90,15 @@ type URLConnectionDownloadDelegateObject struct { objc.Object } -func (u_ URLConnectionDownloadDelegateObject) HasConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes() bool { - return u_.RespondsToSelector(objc.Sel("connection:didWriteData:totalBytesWritten:expectedTotalBytes:")) +func (u_ URLConnectionDownloadDelegateObject) HasConnectionDidFinishDownloadingDestinationURL() bool { + return u_.RespondsToSelector(objc.Sel("connectionDidFinishDownloading:destinationURL:")) } -// Sent to the delegate to deliver progress information for a download of a URL asset to a destination file. [Full Topic] +// Sent to the delegate when the URL connection has successfully downloaded the URL asset to a destination file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1418304-connection?language=objc -func (u_ URLConnectionDownloadDelegateObject) ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) { - objc.Call[objc.Void](u_, objc.Sel("connection:didWriteData:totalBytesWritten:expectedTotalBytes:"), connection, bytesWritten, totalBytesWritten, expectedTotalBytes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1412126-connectiondidfinishdownloading?language=objc +func (u_ URLConnectionDownloadDelegateObject) ConnectionDidFinishDownloadingDestinationURL(connection URLConnection, destinationURL URL) { + objc.Call[objc.Void](u_, objc.Sel("connectionDidFinishDownloading:destinationURL:"), connection, destinationURL) } func (u_ URLConnectionDownloadDelegateObject) HasConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes() bool { @@ -112,13 +112,13 @@ func (u_ URLConnectionDownloadDelegateObject) ConnectionDidResumeDownloadingTota objc.Call[objc.Void](u_, objc.Sel("connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:"), connection, totalBytesWritten, expectedTotalBytes) } -func (u_ URLConnectionDownloadDelegateObject) HasConnectionDidFinishDownloadingDestinationURL() bool { - return u_.RespondsToSelector(objc.Sel("connectionDidFinishDownloading:destinationURL:")) +func (u_ URLConnectionDownloadDelegateObject) HasConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes() bool { + return u_.RespondsToSelector(objc.Sel("connection:didWriteData:totalBytesWritten:expectedTotalBytes:")) } -// Sent to the delegate when the URL connection has successfully downloaded the URL asset to a destination file. [Full Topic] +// Sent to the delegate to deliver progress information for a download of a URL asset to a destination file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1412126-connectiondidfinishdownloading?language=objc -func (u_ URLConnectionDownloadDelegateObject) ConnectionDidFinishDownloadingDestinationURL(connection URLConnection, destinationURL URL) { - objc.Call[objc.Void](u_, objc.Sel("connectionDidFinishDownloading:destinationURL:"), connection, destinationURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1418304-connection?language=objc +func (u_ URLConnectionDownloadDelegateObject) ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) { + objc.Call[objc.Void](u_, objc.Sel("connection:didWriteData:totalBytesWritten:expectedTotalBytes:"), connection, bytesWritten, totalBytesWritten, expectedTotalBytes) } diff --git a/macos/foundation/url_credential.gen.go b/macos/foundation/url_credential.gen.go index ecd18d14..52e76dc0 100644 --- a/macos/foundation/url_credential.gen.go +++ b/macos/foundation/url_credential.gen.go @@ -18,11 +18,11 @@ type _URLCredentialClass struct { // An interface definition for the [URLCredential] class. type IURLCredential interface { objc.IObject - Certificates() []objc.Object - Persistence() URLCredentialPersistence Password() string + Certificates() []objc.Object User() string HasPassword() bool + Persistence() URLCredentialPersistence } // An authentication credential consisting of information specific to the type of credential and the type of persistent storage to use, if any. [Full Topic] @@ -87,22 +87,6 @@ func URLCredential_CredentialWithUserPasswordPersistence(user string, password s return URLCredentialClass.CredentialWithUserPasswordPersistence(user, password, persistence) } -// The intermediate certificates of the credential, if it is a client certificate credential. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredential/1412369-certificates?language=objc -func (u_ URLCredential) Certificates() []objc.Object { - rv := objc.Call[[]objc.Object](u_, objc.Sel("certificates")) - return rv -} - -// The credential’s persistence setting. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredential/1416977-persistence?language=objc -func (u_ URLCredential) Persistence() URLCredentialPersistence { - rv := objc.Call[URLCredentialPersistence](u_, objc.Sel("persistence")) - return rv -} - // The credential’s password. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredential/1417913-password?language=objc @@ -111,6 +95,14 @@ func (u_ URLCredential) Password() string { return rv } +// The intermediate certificates of the credential, if it is a client certificate credential. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredential/1412369-certificates?language=objc +func (u_ URLCredential) Certificates() []objc.Object { + rv := objc.Call[[]objc.Object](u_, objc.Sel("certificates")) + return rv +} + // The credential’s user name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredential/1408654-user?language=objc @@ -126,3 +118,11 @@ func (u_ URLCredential) HasPassword() bool { rv := objc.Call[bool](u_, objc.Sel("hasPassword")) return rv } + +// The credential’s persistence setting. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredential/1416977-persistence?language=objc +func (u_ URLCredential) Persistence() URLCredentialPersistence { + rv := objc.Call[URLCredentialPersistence](u_, objc.Sel("persistence")) + return rv +} diff --git a/macos/foundation/url_credential_storage.gen.go b/macos/foundation/url_credential_storage.gen.go index 5927d9b6..0efd813a 100644 --- a/macos/foundation/url_credential_storage.gen.go +++ b/macos/foundation/url_credential_storage.gen.go @@ -18,17 +18,13 @@ type _URLCredentialStorageClass struct { // An interface definition for the [URLCredentialStorage] class. type IURLCredentialStorage interface { objc.IObject - GetCredentialsForProtectionSpaceTaskCompletionHandler(protectionSpace IURLProtectionSpace, task IURLSessionTask, completionHandler func(credentials map[string]URLCredential)) - SetDefaultCredentialForProtectionSpaceTask(credential IURLCredential, protectionSpace IURLProtectionSpace, task IURLSessionTask) + DefaultCredentialForProtectionSpace(space IURLProtectionSpace) URLCredential SetDefaultCredentialForProtectionSpace(credential IURLCredential, space IURLProtectionSpace) + GetDefaultCredentialForProtectionSpaceTaskCompletionHandler(space IURLProtectionSpace, task IURLSessionTask, completionHandler func(credential URLCredential)) RemoveCredentialForProtectionSpace(credential IURLCredential, space IURLProtectionSpace) - DefaultCredentialForProtectionSpace(space IURLProtectionSpace) URLCredential - RemoveCredentialForProtectionSpaceOptionsTask(credential IURLCredential, protectionSpace IURLProtectionSpace, options map[string]objc.IObject, task IURLSessionTask) - RemoveCredentialForProtectionSpaceOptions(credential IURLCredential, space IURLProtectionSpace, options map[string]objc.IObject) CredentialsForProtectionSpace(space IURLProtectionSpace) map[string]URLCredential - SetCredentialForProtectionSpaceTask(credential IURLCredential, protectionSpace IURLProtectionSpace, task IURLSessionTask) SetCredentialForProtectionSpace(credential IURLCredential, space IURLProtectionSpace) - GetDefaultCredentialForProtectionSpaceTaskCompletionHandler(space IURLProtectionSpace, task IURLSessionTask, completionHandler func(credential URLCredential)) + GetCredentialsForProtectionSpaceTaskCompletionHandler(protectionSpace IURLProtectionSpace, task IURLSessionTask, completionHandler func(credentials map[string]URLCredential)) AllCredentials() Dictionary } @@ -65,18 +61,12 @@ func (u_ URLCredentialStorage) Init() URLCredentialStorage { return rv } -// Gets a dictionary containing the credentials for the specified protection space, on behalf of the given task, and passes the dictionary to the provided completion handler. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1418119-getcredentialsforprotectionspace?language=objc -func (u_ URLCredentialStorage) GetCredentialsForProtectionSpaceTaskCompletionHandler(protectionSpace IURLProtectionSpace, task IURLSessionTask, completionHandler func(credentials map[string]URLCredential)) { - objc.Call[objc.Void](u_, objc.Sel("getCredentialsForProtectionSpace:task:completionHandler:"), protectionSpace, task, completionHandler) -} - -// Sets the default credential for a given protection space, which is being accessed by the given task. [Full Topic] +// Returns the default credential for the specified protection space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1416429-setdefaultcredential?language=objc -func (u_ URLCredentialStorage) SetDefaultCredentialForProtectionSpaceTask(credential IURLCredential, protectionSpace IURLProtectionSpace, task IURLSessionTask) { - objc.Call[objc.Void](u_, objc.Sel("setDefaultCredential:forProtectionSpace:task:"), credential, protectionSpace, task) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1412650-defaultcredentialforprotectionsp?language=objc +func (u_ URLCredentialStorage) DefaultCredentialForProtectionSpace(space IURLProtectionSpace) URLCredential { + rv := objc.Call[URLCredential](u_, objc.Sel("defaultCredentialForProtectionSpace:"), space) + return rv } // Sets the default credential for a specified protection space. [Full Topic] @@ -86,6 +76,13 @@ func (u_ URLCredentialStorage) SetDefaultCredentialForProtectionSpace(credential objc.Call[objc.Void](u_, objc.Sel("setDefaultCredential:forProtectionSpace:"), credential, space) } +// Gets the default credential for the specified protection space, which is being accessed by the given task, and passes it to the provided completion handler. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1411794-getdefaultcredentialforprotectio?language=objc +func (u_ URLCredentialStorage) GetDefaultCredentialForProtectionSpaceTaskCompletionHandler(space IURLProtectionSpace, task IURLSessionTask, completionHandler func(credential URLCredential)) { + objc.Call[objc.Void](u_, objc.Sel("getDefaultCredentialForProtectionSpace:task:completionHandler:"), space, task, completionHandler) +} + // Removes the specified credential from the credential storage for the specified protection space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1408664-removecredential?language=objc @@ -93,28 +90,6 @@ func (u_ URLCredentialStorage) RemoveCredentialForProtectionSpace(credential IUR objc.Call[objc.Void](u_, objc.Sel("removeCredential:forProtectionSpace:"), credential, space) } -// Returns the default credential for the specified protection space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1412650-defaultcredentialforprotectionsp?language=objc -func (u_ URLCredentialStorage) DefaultCredentialForProtectionSpace(space IURLProtectionSpace) URLCredential { - rv := objc.Call[URLCredential](u_, objc.Sel("defaultCredentialForProtectionSpace:"), space) - return rv -} - -// Removes the specified credential from the credential storage for the specified protection space, on behalf of the given task and using the given options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1407237-removecredential?language=objc -func (u_ URLCredentialStorage) RemoveCredentialForProtectionSpaceOptionsTask(credential IURLCredential, protectionSpace IURLProtectionSpace, options map[string]objc.IObject, task IURLSessionTask) { - objc.Call[objc.Void](u_, objc.Sel("removeCredential:forProtectionSpace:options:task:"), credential, protectionSpace, options, task) -} - -// Removes the specified credential from the credential storage for the specified protection space using the given options. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1407695-removecredential?language=objc -func (u_ URLCredentialStorage) RemoveCredentialForProtectionSpaceOptions(credential IURLCredential, space IURLProtectionSpace, options map[string]objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("removeCredential:forProtectionSpace:options:"), credential, space, options) -} - // Returns a dictionary containing the credentials for the specified protection space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1413910-credentialsforprotectionspace?language=objc @@ -123,13 +98,6 @@ func (u_ URLCredentialStorage) CredentialsForProtectionSpace(space IURLProtectio return rv } -// Adds a credential to the credential storage for the specified protection space, on behalf of the specified task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1412703-setcredential?language=objc -func (u_ URLCredentialStorage) SetCredentialForProtectionSpaceTask(credential IURLCredential, protectionSpace IURLProtectionSpace, task IURLSessionTask) { - objc.Call[objc.Void](u_, objc.Sel("setCredential:forProtectionSpace:task:"), credential, protectionSpace, task) -} - // Adds a credential to the credential storage for the specified protection space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1407227-setcredential?language=objc @@ -137,19 +105,11 @@ func (u_ URLCredentialStorage) SetCredentialForProtectionSpace(credential IURLCr objc.Call[objc.Void](u_, objc.Sel("setCredential:forProtectionSpace:"), credential, space) } -// Gets the default credential for the specified protection space, which is being accessed by the given task, and passes it to the provided completion handler. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1411794-getdefaultcredentialforprotectio?language=objc -func (u_ URLCredentialStorage) GetDefaultCredentialForProtectionSpaceTaskCompletionHandler(space IURLProtectionSpace, task IURLSessionTask, completionHandler func(credential URLCredential)) { - objc.Call[objc.Void](u_, objc.Sel("getDefaultCredentialForProtectionSpace:task:completionHandler:"), space, task, completionHandler) -} - -// The credentials for all available protection spaces. [Full Topic] +// Gets a dictionary containing the credentials for the specified protection space, on behalf of the given task, and passes the dictionary to the provided completion handler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1413859-allcredentials?language=objc -func (u_ URLCredentialStorage) AllCredentials() Dictionary { - rv := objc.Call[Dictionary](u_, objc.Sel("allCredentials")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1418119-getcredentialsforprotectionspace?language=objc +func (u_ URLCredentialStorage) GetCredentialsForProtectionSpaceTaskCompletionHandler(protectionSpace IURLProtectionSpace, task IURLSessionTask, completionHandler func(credentials map[string]URLCredential)) { + objc.Call[objc.Void](u_, objc.Sel("getCredentialsForProtectionSpace:task:completionHandler:"), protectionSpace, task, completionHandler) } // The shared URL credential storage instance. [Full Topic] @@ -166,3 +126,11 @@ func (uc _URLCredentialStorageClass) SharedCredentialStorage() URLCredentialStor func URLCredentialStorage_SharedCredentialStorage() URLCredentialStorage { return URLCredentialStorageClass.SharedCredentialStorage() } + +// The credentials for all available protection spaces. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage/1413859-allcredentials?language=objc +func (u_ URLCredentialStorage) AllCredentials() Dictionary { + rv := objc.Call[Dictionary](u_, objc.Sel("allCredentials")) + return rv +} diff --git a/macos/foundation/url_download.gen.go b/macos/foundation/url_download.gen.go index 1a3564eb..4104635f 100644 --- a/macos/foundation/url_download.gen.go +++ b/macos/foundation/url_download.gen.go @@ -59,6 +59,13 @@ func (u_ URLDownload) Init() URLDownload { return rv } +// Sets the destination path of the downloaded file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownload/1412923-setdestination?language=objc +func (u_ URLDownload) SetDestinationAllowOverwrite(path string, allowOverwrite bool) { + objc.Call[objc.Void](u_, objc.Sel("setDestination:allowOverwrite:"), path, allowOverwrite) +} + // Returns whether a URL download object can resume a download that was decoded with the specified MIME type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownload/1409113-canresumedownloaddecodedwithenco?language=objc @@ -74,13 +81,6 @@ func URLDownload_CanResumeDownloadDecodedWithEncodingMIMEType(MIMEType string) b return URLDownloadClass.CanResumeDownloadDecodedWithEncodingMIMEType(MIMEType) } -// Sets the destination path of the downloaded file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownload/1412923-setdestination?language=objc -func (u_ URLDownload) SetDestinationAllowOverwrite(path string, allowOverwrite bool) { - objc.Call[objc.Void](u_, objc.Sel("setDestination:allowOverwrite:"), path, allowOverwrite) -} - // Cancels the receiver’s download and deletes the downloaded file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownload/1415299-cancel?language=objc diff --git a/macos/foundation/url_download_delegate.gen.go b/macos/foundation/url_download_delegate.gen.go index eb8cdf8b..f96b0ae5 100644 --- a/macos/foundation/url_download_delegate.gen.go +++ b/macos/foundation/url_download_delegate.gen.go @@ -10,217 +10,31 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate?language=objc type PURLDownloadDelegate interface { - // optional - DownloadDecideDestinationWithSuggestedFilename(download URLDownload, filename string) - HasDownloadDecideDestinationWithSuggestedFilename() bool - - // optional - DownloadDidReceiveDataOfLength(download URLDownload, length uint) - HasDownloadDidReceiveDataOfLength() bool - - // optional - DownloadShouldUseCredentialStorage(download URLDownload) bool - HasDownloadShouldUseCredentialStorage() bool - - // optional - DownloadDidBegin(download URLDownload) - HasDownloadDidBegin() bool - - // optional - DownloadShouldDecodeSourceDataOfMIMEType(download URLDownload, encodingType string) bool - HasDownloadShouldDecodeSourceDataOfMIMEType() bool - - // optional - DownloadDidReceiveResponse(download URLDownload, response URLResponse) - HasDownloadDidReceiveResponse() bool - - // optional - DownloadDidCancelAuthenticationChallenge(download URLDownload, challenge URLAuthenticationChallenge) - HasDownloadDidCancelAuthenticationChallenge() bool - - // optional - DownloadWillSendRequestRedirectResponse(download URLDownload, request URLRequest, redirectResponse URLResponse) URLRequest - HasDownloadWillSendRequestRedirectResponse() bool - // optional DownloadCanAuthenticateAgainstProtectionSpace(connection URLDownload, protectionSpace URLProtectionSpace) bool HasDownloadCanAuthenticateAgainstProtectionSpace() bool - // optional - DownloadDidFailWithError(download URLDownload, error Error) - HasDownloadDidFailWithError() bool - // optional DownloadDidFinish(download URLDownload) HasDownloadDidFinish() bool // optional - DownloadDidReceiveAuthenticationChallenge(download URLDownload, challenge URLAuthenticationChallenge) - HasDownloadDidReceiveAuthenticationChallenge() bool - - // optional - DownloadWillResumeWithResponseFromByte(download URLDownload, response URLResponse, startingByte int64) - HasDownloadWillResumeWithResponseFromByte() bool + DownloadDidBegin(download URLDownload) + HasDownloadDidBegin() bool // optional - DownloadDidCreateDestination(download URLDownload, path string) - HasDownloadDidCreateDestination() bool + DownloadShouldUseCredentialStorage(download URLDownload) bool + HasDownloadShouldUseCredentialStorage() bool } // A delegate implementation builder for the [PURLDownloadDelegate] protocol. type URLDownloadDelegate struct { - _DownloadDecideDestinationWithSuggestedFilename func(download URLDownload, filename string) - _DownloadDidReceiveDataOfLength func(download URLDownload, length uint) - _DownloadShouldUseCredentialStorage func(download URLDownload) bool - _DownloadDidBegin func(download URLDownload) - _DownloadShouldDecodeSourceDataOfMIMEType func(download URLDownload, encodingType string) bool - _DownloadDidReceiveResponse func(download URLDownload, response URLResponse) - _DownloadDidCancelAuthenticationChallenge func(download URLDownload, challenge URLAuthenticationChallenge) - _DownloadWillSendRequestRedirectResponse func(download URLDownload, request URLRequest, redirectResponse URLResponse) URLRequest - _DownloadCanAuthenticateAgainstProtectionSpace func(connection URLDownload, protectionSpace URLProtectionSpace) bool - _DownloadDidFailWithError func(download URLDownload, error Error) - _DownloadDidFinish func(download URLDownload) - _DownloadDidReceiveAuthenticationChallenge func(download URLDownload, challenge URLAuthenticationChallenge) - _DownloadWillResumeWithResponseFromByte func(download URLDownload, response URLResponse, startingByte int64) - _DownloadDidCreateDestination func(download URLDownload, path string) -} - -func (di *URLDownloadDelegate) HasDownloadDecideDestinationWithSuggestedFilename() bool { - return di._DownloadDecideDestinationWithSuggestedFilename != nil -} - -// The delegate receives this message when download has determined a suggested filename for the downloaded file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1413588-download?language=objc -func (di *URLDownloadDelegate) SetDownloadDecideDestinationWithSuggestedFilename(f func(download URLDownload, filename string)) { - di._DownloadDecideDestinationWithSuggestedFilename = f -} - -// The delegate receives this message when download has determined a suggested filename for the downloaded file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1413588-download?language=objc -func (di *URLDownloadDelegate) DownloadDecideDestinationWithSuggestedFilename(download URLDownload, filename string) { - di._DownloadDecideDestinationWithSuggestedFilename(download, filename) -} -func (di *URLDownloadDelegate) HasDownloadDidReceiveDataOfLength() bool { - return di._DownloadDidReceiveDataOfLength != nil -} - -// Sent as a download object receives data incrementally. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1413663-download?language=objc -func (di *URLDownloadDelegate) SetDownloadDidReceiveDataOfLength(f func(download URLDownload, length uint)) { - di._DownloadDidReceiveDataOfLength = f -} - -// Sent as a download object receives data incrementally. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1413663-download?language=objc -func (di *URLDownloadDelegate) DownloadDidReceiveDataOfLength(download URLDownload, length uint) { - di._DownloadDidReceiveDataOfLength(download, length) -} -func (di *URLDownloadDelegate) HasDownloadShouldUseCredentialStorage() bool { - return di._DownloadShouldUseCredentialStorage != nil -} - -// Sent to determine whether the URL loader should consult the credential storage to authenticate the download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1416506-downloadshouldusecredentialstora?language=objc -func (di *URLDownloadDelegate) SetDownloadShouldUseCredentialStorage(f func(download URLDownload) bool) { - di._DownloadShouldUseCredentialStorage = f -} - -// Sent to determine whether the URL loader should consult the credential storage to authenticate the download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1416506-downloadshouldusecredentialstora?language=objc -func (di *URLDownloadDelegate) DownloadShouldUseCredentialStorage(download URLDownload) bool { - return di._DownloadShouldUseCredentialStorage(download) -} -func (di *URLDownloadDelegate) HasDownloadDidBegin() bool { - return di._DownloadDidBegin != nil -} - -// Sent immediately after a download object begins a download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1409618-downloaddidbegin?language=objc -func (di *URLDownloadDelegate) SetDownloadDidBegin(f func(download URLDownload)) { - di._DownloadDidBegin = f -} - -// Sent immediately after a download object begins a download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1409618-downloaddidbegin?language=objc -func (di *URLDownloadDelegate) DownloadDidBegin(download URLDownload) { - di._DownloadDidBegin(download) -} -func (di *URLDownloadDelegate) HasDownloadShouldDecodeSourceDataOfMIMEType() bool { - return di._DownloadShouldDecodeSourceDataOfMIMEType != nil -} - -// Sent when a download object determines that the downloaded file is encoded to inquire whether the file should be automatically decoded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1408526-download?language=objc -func (di *URLDownloadDelegate) SetDownloadShouldDecodeSourceDataOfMIMEType(f func(download URLDownload, encodingType string) bool) { - di._DownloadShouldDecodeSourceDataOfMIMEType = f + _DownloadCanAuthenticateAgainstProtectionSpace func(connection URLDownload, protectionSpace URLProtectionSpace) bool + _DownloadDidFinish func(download URLDownload) + _DownloadDidBegin func(download URLDownload) + _DownloadShouldUseCredentialStorage func(download URLDownload) bool } -// Sent when a download object determines that the downloaded file is encoded to inquire whether the file should be automatically decoded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1408526-download?language=objc -func (di *URLDownloadDelegate) DownloadShouldDecodeSourceDataOfMIMEType(download URLDownload, encodingType string) bool { - return di._DownloadShouldDecodeSourceDataOfMIMEType(download, encodingType) -} -func (di *URLDownloadDelegate) HasDownloadDidReceiveResponse() bool { - return di._DownloadDidReceiveResponse != nil -} - -// Sent when a download object has received sufficient load data to construct the NSURLResponse object for the download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1415460-download?language=objc -func (di *URLDownloadDelegate) SetDownloadDidReceiveResponse(f func(download URLDownload, response URLResponse)) { - di._DownloadDidReceiveResponse = f -} - -// Sent when a download object has received sufficient load data to construct the NSURLResponse object for the download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1415460-download?language=objc -func (di *URLDownloadDelegate) DownloadDidReceiveResponse(download URLDownload, response URLResponse) { - di._DownloadDidReceiveResponse(download, response) -} -func (di *URLDownloadDelegate) HasDownloadDidCancelAuthenticationChallenge() bool { - return di._DownloadDidCancelAuthenticationChallenge != nil -} - -// Sent if an authentication challenge is canceled due to the protocol implementation encountering an error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1416233-download?language=objc -func (di *URLDownloadDelegate) SetDownloadDidCancelAuthenticationChallenge(f func(download URLDownload, challenge URLAuthenticationChallenge)) { - di._DownloadDidCancelAuthenticationChallenge = f -} - -// Sent if an authentication challenge is canceled due to the protocol implementation encountering an error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1416233-download?language=objc -func (di *URLDownloadDelegate) DownloadDidCancelAuthenticationChallenge(download URLDownload, challenge URLAuthenticationChallenge) { - di._DownloadDidCancelAuthenticationChallenge(download, challenge) -} -func (di *URLDownloadDelegate) HasDownloadWillSendRequestRedirectResponse() bool { - return di._DownloadWillSendRequestRedirectResponse != nil -} - -// Sent when the download object determines that it must change URLs in order to continue loading a request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1412181-download?language=objc -func (di *URLDownloadDelegate) SetDownloadWillSendRequestRedirectResponse(f func(download URLDownload, request URLRequest, redirectResponse URLResponse) URLRequest) { - di._DownloadWillSendRequestRedirectResponse = f -} - -// Sent when the download object determines that it must change URLs in order to continue loading a request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1412181-download?language=objc -func (di *URLDownloadDelegate) DownloadWillSendRequestRedirectResponse(download URLDownload, request URLRequest, redirectResponse URLResponse) URLRequest { - return di._DownloadWillSendRequestRedirectResponse(download, request, redirectResponse) -} func (di *URLDownloadDelegate) HasDownloadCanAuthenticateAgainstProtectionSpace() bool { return di._DownloadCanAuthenticateAgainstProtectionSpace != nil } @@ -238,23 +52,6 @@ func (di *URLDownloadDelegate) SetDownloadCanAuthenticateAgainstProtectionSpace( func (di *URLDownloadDelegate) DownloadCanAuthenticateAgainstProtectionSpace(connection URLDownload, protectionSpace URLProtectionSpace) bool { return di._DownloadCanAuthenticateAgainstProtectionSpace(connection, protectionSpace) } -func (di *URLDownloadDelegate) HasDownloadDidFailWithError() bool { - return di._DownloadDidFailWithError != nil -} - -// Sent if the download fails or if an I/O error occurs when the file is written to disk. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1411640-download?language=objc -func (di *URLDownloadDelegate) SetDownloadDidFailWithError(f func(download URLDownload, error Error)) { - di._DownloadDidFailWithError = f -} - -// Sent if the download fails or if an I/O error occurs when the file is written to disk. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1411640-download?language=objc -func (di *URLDownloadDelegate) DownloadDidFailWithError(download URLDownload, error Error) { - di._DownloadDidFailWithError(download, error) -} func (di *URLDownloadDelegate) HasDownloadDidFinish() bool { return di._DownloadDidFinish != nil } @@ -272,56 +69,39 @@ func (di *URLDownloadDelegate) SetDownloadDidFinish(f func(download URLDownload) func (di *URLDownloadDelegate) DownloadDidFinish(download URLDownload) { di._DownloadDidFinish(download) } -func (di *URLDownloadDelegate) HasDownloadDidReceiveAuthenticationChallenge() bool { - return di._DownloadDidReceiveAuthenticationChallenge != nil -} - -// Sent when the URL download must authenticate a challenge in order to download the request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1411969-download?language=objc -func (di *URLDownloadDelegate) SetDownloadDidReceiveAuthenticationChallenge(f func(download URLDownload, challenge URLAuthenticationChallenge)) { - di._DownloadDidReceiveAuthenticationChallenge = f -} - -// Sent when the URL download must authenticate a challenge in order to download the request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1411969-download?language=objc -func (di *URLDownloadDelegate) DownloadDidReceiveAuthenticationChallenge(download URLDownload, challenge URLAuthenticationChallenge) { - di._DownloadDidReceiveAuthenticationChallenge(download, challenge) -} -func (di *URLDownloadDelegate) HasDownloadWillResumeWithResponseFromByte() bool { - return di._DownloadWillResumeWithResponseFromByte != nil +func (di *URLDownloadDelegate) HasDownloadDidBegin() bool { + return di._DownloadDidBegin != nil } -// Sent when a download object has received a response from the server after attempting to resume a download. [Full Topic] +// Sent immediately after a download object begins a download. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1409514-download?language=objc -func (di *URLDownloadDelegate) SetDownloadWillResumeWithResponseFromByte(f func(download URLDownload, response URLResponse, startingByte int64)) { - di._DownloadWillResumeWithResponseFromByte = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1409618-downloaddidbegin?language=objc +func (di *URLDownloadDelegate) SetDownloadDidBegin(f func(download URLDownload)) { + di._DownloadDidBegin = f } -// Sent when a download object has received a response from the server after attempting to resume a download. [Full Topic] +// Sent immediately after a download object begins a download. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1409514-download?language=objc -func (di *URLDownloadDelegate) DownloadWillResumeWithResponseFromByte(download URLDownload, response URLResponse, startingByte int64) { - di._DownloadWillResumeWithResponseFromByte(download, response, startingByte) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1409618-downloaddidbegin?language=objc +func (di *URLDownloadDelegate) DownloadDidBegin(download URLDownload) { + di._DownloadDidBegin(download) } -func (di *URLDownloadDelegate) HasDownloadDidCreateDestination() bool { - return di._DownloadDidCreateDestination != nil +func (di *URLDownloadDelegate) HasDownloadShouldUseCredentialStorage() bool { + return di._DownloadShouldUseCredentialStorage != nil } -// Sent when the destination file is created. [Full Topic] +// Sent to determine whether the URL loader should consult the credential storage to authenticate the download. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1415265-download?language=objc -func (di *URLDownloadDelegate) SetDownloadDidCreateDestination(f func(download URLDownload, path string)) { - di._DownloadDidCreateDestination = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1416506-downloadshouldusecredentialstora?language=objc +func (di *URLDownloadDelegate) SetDownloadShouldUseCredentialStorage(f func(download URLDownload) bool) { + di._DownloadShouldUseCredentialStorage = f } -// Sent when the destination file is created. [Full Topic] +// Sent to determine whether the URL loader should consult the credential storage to authenticate the download. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1415265-download?language=objc -func (di *URLDownloadDelegate) DownloadDidCreateDestination(download URLDownload, path string) { - di._DownloadDidCreateDestination(download, path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1416506-downloadshouldusecredentialstora?language=objc +func (di *URLDownloadDelegate) DownloadShouldUseCredentialStorage(download URLDownload) bool { + return di._DownloadShouldUseCredentialStorage(download) } // ensure impl type implements protocol interface @@ -332,97 +112,6 @@ type URLDownloadDelegateObject struct { objc.Object } -func (u_ URLDownloadDelegateObject) HasDownloadDecideDestinationWithSuggestedFilename() bool { - return u_.RespondsToSelector(objc.Sel("download:decideDestinationWithSuggestedFilename:")) -} - -// The delegate receives this message when download has determined a suggested filename for the downloaded file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1413588-download?language=objc -func (u_ URLDownloadDelegateObject) DownloadDecideDestinationWithSuggestedFilename(download URLDownload, filename string) { - objc.Call[objc.Void](u_, objc.Sel("download:decideDestinationWithSuggestedFilename:"), download, filename) -} - -func (u_ URLDownloadDelegateObject) HasDownloadDidReceiveDataOfLength() bool { - return u_.RespondsToSelector(objc.Sel("download:didReceiveDataOfLength:")) -} - -// Sent as a download object receives data incrementally. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1413663-download?language=objc -func (u_ URLDownloadDelegateObject) DownloadDidReceiveDataOfLength(download URLDownload, length uint) { - objc.Call[objc.Void](u_, objc.Sel("download:didReceiveDataOfLength:"), download, length) -} - -func (u_ URLDownloadDelegateObject) HasDownloadShouldUseCredentialStorage() bool { - return u_.RespondsToSelector(objc.Sel("downloadShouldUseCredentialStorage:")) -} - -// Sent to determine whether the URL loader should consult the credential storage to authenticate the download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1416506-downloadshouldusecredentialstora?language=objc -func (u_ URLDownloadDelegateObject) DownloadShouldUseCredentialStorage(download URLDownload) bool { - rv := objc.Call[bool](u_, objc.Sel("downloadShouldUseCredentialStorage:"), download) - return rv -} - -func (u_ URLDownloadDelegateObject) HasDownloadDidBegin() bool { - return u_.RespondsToSelector(objc.Sel("downloadDidBegin:")) -} - -// Sent immediately after a download object begins a download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1409618-downloaddidbegin?language=objc -func (u_ URLDownloadDelegateObject) DownloadDidBegin(download URLDownload) { - objc.Call[objc.Void](u_, objc.Sel("downloadDidBegin:"), download) -} - -func (u_ URLDownloadDelegateObject) HasDownloadShouldDecodeSourceDataOfMIMEType() bool { - return u_.RespondsToSelector(objc.Sel("download:shouldDecodeSourceDataOfMIMEType:")) -} - -// Sent when a download object determines that the downloaded file is encoded to inquire whether the file should be automatically decoded. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1408526-download?language=objc -func (u_ URLDownloadDelegateObject) DownloadShouldDecodeSourceDataOfMIMEType(download URLDownload, encodingType string) bool { - rv := objc.Call[bool](u_, objc.Sel("download:shouldDecodeSourceDataOfMIMEType:"), download, encodingType) - return rv -} - -func (u_ URLDownloadDelegateObject) HasDownloadDidReceiveResponse() bool { - return u_.RespondsToSelector(objc.Sel("download:didReceiveResponse:")) -} - -// Sent when a download object has received sufficient load data to construct the NSURLResponse object for the download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1415460-download?language=objc -func (u_ URLDownloadDelegateObject) DownloadDidReceiveResponse(download URLDownload, response URLResponse) { - objc.Call[objc.Void](u_, objc.Sel("download:didReceiveResponse:"), download, response) -} - -func (u_ URLDownloadDelegateObject) HasDownloadDidCancelAuthenticationChallenge() bool { - return u_.RespondsToSelector(objc.Sel("download:didCancelAuthenticationChallenge:")) -} - -// Sent if an authentication challenge is canceled due to the protocol implementation encountering an error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1416233-download?language=objc -func (u_ URLDownloadDelegateObject) DownloadDidCancelAuthenticationChallenge(download URLDownload, challenge URLAuthenticationChallenge) { - objc.Call[objc.Void](u_, objc.Sel("download:didCancelAuthenticationChallenge:"), download, challenge) -} - -func (u_ URLDownloadDelegateObject) HasDownloadWillSendRequestRedirectResponse() bool { - return u_.RespondsToSelector(objc.Sel("download:willSendRequest:redirectResponse:")) -} - -// Sent when the download object determines that it must change URLs in order to continue loading a request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1412181-download?language=objc -func (u_ URLDownloadDelegateObject) DownloadWillSendRequestRedirectResponse(download URLDownload, request URLRequest, redirectResponse URLResponse) URLRequest { - rv := objc.Call[URLRequest](u_, objc.Sel("download:willSendRequest:redirectResponse:"), download, request, redirectResponse) - return rv -} - func (u_ URLDownloadDelegateObject) HasDownloadCanAuthenticateAgainstProtectionSpace() bool { return u_.RespondsToSelector(objc.Sel("download:canAuthenticateAgainstProtectionSpace:")) } @@ -435,17 +124,6 @@ func (u_ URLDownloadDelegateObject) DownloadCanAuthenticateAgainstProtectionSpac return rv } -func (u_ URLDownloadDelegateObject) HasDownloadDidFailWithError() bool { - return u_.RespondsToSelector(objc.Sel("download:didFailWithError:")) -} - -// Sent if the download fails or if an I/O error occurs when the file is written to disk. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1411640-download?language=objc -func (u_ URLDownloadDelegateObject) DownloadDidFailWithError(download URLDownload, error Error) { - objc.Call[objc.Void](u_, objc.Sel("download:didFailWithError:"), download, error) -} - func (u_ URLDownloadDelegateObject) HasDownloadDidFinish() bool { return u_.RespondsToSelector(objc.Sel("downloadDidFinish:")) } @@ -457,35 +135,25 @@ func (u_ URLDownloadDelegateObject) DownloadDidFinish(download URLDownload) { objc.Call[objc.Void](u_, objc.Sel("downloadDidFinish:"), download) } -func (u_ URLDownloadDelegateObject) HasDownloadDidReceiveAuthenticationChallenge() bool { - return u_.RespondsToSelector(objc.Sel("download:didReceiveAuthenticationChallenge:")) -} - -// Sent when the URL download must authenticate a challenge in order to download the request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1411969-download?language=objc -func (u_ URLDownloadDelegateObject) DownloadDidReceiveAuthenticationChallenge(download URLDownload, challenge URLAuthenticationChallenge) { - objc.Call[objc.Void](u_, objc.Sel("download:didReceiveAuthenticationChallenge:"), download, challenge) -} - -func (u_ URLDownloadDelegateObject) HasDownloadWillResumeWithResponseFromByte() bool { - return u_.RespondsToSelector(objc.Sel("download:willResumeWithResponse:fromByte:")) +func (u_ URLDownloadDelegateObject) HasDownloadDidBegin() bool { + return u_.RespondsToSelector(objc.Sel("downloadDidBegin:")) } -// Sent when a download object has received a response from the server after attempting to resume a download. [Full Topic] +// Sent immediately after a download object begins a download. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1409514-download?language=objc -func (u_ URLDownloadDelegateObject) DownloadWillResumeWithResponseFromByte(download URLDownload, response URLResponse, startingByte int64) { - objc.Call[objc.Void](u_, objc.Sel("download:willResumeWithResponse:fromByte:"), download, response, startingByte) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1409618-downloaddidbegin?language=objc +func (u_ URLDownloadDelegateObject) DownloadDidBegin(download URLDownload) { + objc.Call[objc.Void](u_, objc.Sel("downloadDidBegin:"), download) } -func (u_ URLDownloadDelegateObject) HasDownloadDidCreateDestination() bool { - return u_.RespondsToSelector(objc.Sel("download:didCreateDestination:")) +func (u_ URLDownloadDelegateObject) HasDownloadShouldUseCredentialStorage() bool { + return u_.RespondsToSelector(objc.Sel("downloadShouldUseCredentialStorage:")) } -// Sent when the destination file is created. [Full Topic] +// Sent to determine whether the URL loader should consult the credential storage to authenticate the download. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1415265-download?language=objc -func (u_ URLDownloadDelegateObject) DownloadDidCreateDestination(download URLDownload, path string) { - objc.Call[objc.Void](u_, objc.Sel("download:didCreateDestination:"), download, path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1416506-downloadshouldusecredentialstora?language=objc +func (u_ URLDownloadDelegateObject) DownloadShouldUseCredentialStorage(download URLDownload) bool { + rv := objc.Call[bool](u_, objc.Sel("downloadShouldUseCredentialStorage:"), download) + return rv } diff --git a/macos/foundation/url_protection_space.gen.go b/macos/foundation/url_protection_space.gen.go index a7355b67..21b673bd 100644 --- a/macos/foundation/url_protection_space.gen.go +++ b/macos/foundation/url_protection_space.gen.go @@ -18,15 +18,15 @@ type _URLProtectionSpaceClass struct { // An interface definition for the [URLProtectionSpace] class. type IURLProtectionSpace interface { objc.IObject - IsProxy() bool ProxyType() string - Protocol() string - Realm() string - DistinguishedNames() [][]byte Host() string - ReceivesCredentialSecurely() bool + Realm() string + IsProxy() bool Port() int + Protocol() string + DistinguishedNames() [][]byte AuthenticationMethod() string + ReceivesCredentialSecurely() bool } // A server or an area on a server, commonly referred to as a realm, that requires authentication. [Full Topic] @@ -42,30 +42,30 @@ func URLProtectionSpaceFrom(ptr unsafe.Pointer) URLProtectionSpace { } } -func (u_ URLProtectionSpace) InitWithHostPortProtocolRealmAuthenticationMethod(host string, port int, protocol string, realm string, authenticationMethod string) URLProtectionSpace { - rv := objc.Call[URLProtectionSpace](u_, objc.Sel("initWithHost:port:protocol:realm:authenticationMethod:"), host, port, protocol, realm, authenticationMethod) +func (u_ URLProtectionSpace) InitWithProxyHostPortTypeRealmAuthenticationMethod(host string, port int, type_ string, realm string, authenticationMethod string) URLProtectionSpace { + rv := objc.Call[URLProtectionSpace](u_, objc.Sel("initWithProxyHost:port:type:realm:authenticationMethod:"), host, port, type_, realm, authenticationMethod) return rv } -// Creates a protection space object from the given host, port, protocol, realm, and authentication method. [Full Topic] +// Creates a protection space object representing a proxy server. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1414165-initwithhost?language=objc -func NewURLProtectionSpaceWithHostPortProtocolRealmAuthenticationMethod(host string, port int, protocol string, realm string, authenticationMethod string) URLProtectionSpace { - instance := URLProtectionSpaceClass.Alloc().InitWithHostPortProtocolRealmAuthenticationMethod(host, port, protocol, realm, authenticationMethod) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1417998-initwithproxyhost?language=objc +func NewURLProtectionSpaceWithProxyHostPortTypeRealmAuthenticationMethod(host string, port int, type_ string, realm string, authenticationMethod string) URLProtectionSpace { + instance := URLProtectionSpaceClass.Alloc().InitWithProxyHostPortTypeRealmAuthenticationMethod(host, port, type_, realm, authenticationMethod) instance.Autorelease() return instance } -func (u_ URLProtectionSpace) InitWithProxyHostPortTypeRealmAuthenticationMethod(host string, port int, type_ string, realm string, authenticationMethod string) URLProtectionSpace { - rv := objc.Call[URLProtectionSpace](u_, objc.Sel("initWithProxyHost:port:type:realm:authenticationMethod:"), host, port, type_, realm, authenticationMethod) +func (u_ URLProtectionSpace) InitWithHostPortProtocolRealmAuthenticationMethod(host string, port int, protocol string, realm string, authenticationMethod string) URLProtectionSpace { + rv := objc.Call[URLProtectionSpace](u_, objc.Sel("initWithHost:port:protocol:realm:authenticationMethod:"), host, port, protocol, realm, authenticationMethod) return rv } -// Creates a protection space object representing a proxy server. [Full Topic] +// Creates a protection space object from the given host, port, protocol, realm, and authentication method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1417998-initwithproxyhost?language=objc -func NewURLProtectionSpaceWithProxyHostPortTypeRealmAuthenticationMethod(host string, port int, type_ string, realm string, authenticationMethod string) URLProtectionSpace { - instance := URLProtectionSpaceClass.Alloc().InitWithProxyHostPortTypeRealmAuthenticationMethod(host, port, type_, realm, authenticationMethod) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1414165-initwithhost?language=objc +func NewURLProtectionSpaceWithHostPortProtocolRealmAuthenticationMethod(host string, port int, protocol string, realm string, authenticationMethod string) URLProtectionSpace { + instance := URLProtectionSpaceClass.Alloc().InitWithHostPortProtocolRealmAuthenticationMethod(host, port, protocol, realm, authenticationMethod) instance.Autorelease() return instance } @@ -90,14 +90,6 @@ func (u_ URLProtectionSpace) Init() URLProtectionSpace { return rv } -// A Boolean value that indicates whether the receiver represents a proxy server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1561656-isproxy?language=objc -func (u_ URLProtectionSpace) IsProxy() bool { - rv := objc.Call[bool](u_, objc.Sel("isProxy")) - return rv -} - // The receiver's proxy type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1411924-proxytype?language=objc @@ -106,11 +98,11 @@ func (u_ URLProtectionSpace) ProxyType() string { return rv } -// The receiver’s protocol. [Full Topic] +// The receiver’s host. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1411191-protocol?language=objc -func (u_ URLProtectionSpace) Protocol() string { - rv := objc.Call[string](u_, objc.Sel("protocol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1418205-host?language=objc +func (u_ URLProtectionSpace) Host() string { + rv := objc.Call[string](u_, objc.Sel("host")) return rv } @@ -122,35 +114,35 @@ func (u_ URLProtectionSpace) Realm() string { return rv } -// The acceptable certificate-issuing authorities for client certificate authentication. [Full Topic] +// A Boolean value that indicates whether the receiver represents a proxy server. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1417061-distinguishednames?language=objc -func (u_ URLProtectionSpace) DistinguishedNames() [][]byte { - rv := objc.Call[[][]byte](u_, objc.Sel("distinguishedNames")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1561656-isproxy?language=objc +func (u_ URLProtectionSpace) IsProxy() bool { + rv := objc.Call[bool](u_, objc.Sel("isProxy")) return rv } -// The receiver’s host. [Full Topic] +// The receiver’s port. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1418205-host?language=objc -func (u_ URLProtectionSpace) Host() string { - rv := objc.Call[string](u_, objc.Sel("host")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1408716-port?language=objc +func (u_ URLProtectionSpace) Port() int { + rv := objc.Call[int](u_, objc.Sel("port")) return rv } -// A Boolean value that indicates whether the credentials for the protection space can be sent securely. [Full Topic] +// The receiver’s protocol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1415176-receivescredentialsecurely?language=objc -func (u_ URLProtectionSpace) ReceivesCredentialSecurely() bool { - rv := objc.Call[bool](u_, objc.Sel("receivesCredentialSecurely")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1411191-protocol?language=objc +func (u_ URLProtectionSpace) Protocol() string { + rv := objc.Call[string](u_, objc.Sel("protocol")) return rv } -// The receiver’s port. [Full Topic] +// The acceptable certificate-issuing authorities for client certificate authentication. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1408716-port?language=objc -func (u_ URLProtectionSpace) Port() int { - rv := objc.Call[int](u_, objc.Sel("port")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1417061-distinguishednames?language=objc +func (u_ URLProtectionSpace) DistinguishedNames() [][]byte { + rv := objc.Call[[][]byte](u_, objc.Sel("distinguishedNames")) return rv } @@ -161,3 +153,11 @@ func (u_ URLProtectionSpace) AuthenticationMethod() string { rv := objc.Call[string](u_, objc.Sel("authenticationMethod")) return rv } + +// A Boolean value that indicates whether the credentials for the protection space can be sent securely. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotectionspace/1415176-receivescredentialsecurely?language=objc +func (u_ URLProtectionSpace) ReceivesCredentialSecurely() bool { + rv := objc.Call[bool](u_, objc.Sel("receivesCredentialSecurely")) + return rv +} diff --git a/macos/foundation/url_protocol.gen.go b/macos/foundation/url_protocol.gen.go index aedaa561..b82d8a05 100644 --- a/macos/foundation/url_protocol.gen.go +++ b/macos/foundation/url_protocol.gen.go @@ -21,8 +21,8 @@ type IURLProtocol interface { StopLoading() StartLoading() Request() URLRequest - Task() URLSessionTask CachedResponse() CachedURLResponse + Task() URLSessionTask Client() URLProtocolClientObject } @@ -89,40 +89,56 @@ func (u_ URLProtocol) Init() URLProtocol { return rv } -// Attempts to register a subclass of NSURLProtocol, making it visible to the URL loading system. [Full Topic] +// Stops protocol-specific loading of the request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407208-registerclass?language=objc -func (uc _URLProtocolClass) RegisterClass(protocolClass objc.IClass) bool { - rv := objc.Call[bool](uc, objc.Sel("registerClass:"), protocolClass) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1408666-stoploading?language=objc +func (u_ URLProtocol) StopLoading() { + objc.Call[objc.Void](u_, objc.Sel("stopLoading")) +} + +// Fetches the property associated with the specified key in the specified request. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1416521-propertyforkey?language=objc +func (uc _URLProtocolClass) PropertyForKeyInRequest(key string, request IURLRequest) objc.Object { + rv := objc.Call[objc.Object](uc, objc.Sel("propertyForKey:inRequest:"), key, request) return rv } -// Attempts to register a subclass of NSURLProtocol, making it visible to the URL loading system. [Full Topic] +// Fetches the property associated with the specified key in the specified request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407208-registerclass?language=objc -func URLProtocol_RegisterClass(protocolClass objc.IClass) bool { - return URLProtocolClass.RegisterClass(protocolClass) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1416521-propertyforkey?language=objc +func URLProtocol_PropertyForKeyInRequest(key string, request IURLRequest) objc.Object { + return URLProtocolClass.PropertyForKeyInRequest(key, request) } -// Sets the property associated with the specified key in the specified request. [Full Topic] +// Returns a canonical version of the specified request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407897-setproperty?language=objc -func (uc _URLProtocolClass) SetPropertyForKeyInRequest(value objc.IObject, key string, request IMutableURLRequest) { - objc.Call[objc.Void](uc, objc.Sel("setProperty:forKey:inRequest:"), value, key, request) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1408650-canonicalrequestforrequest?language=objc +func (uc _URLProtocolClass) CanonicalRequestForRequest(request IURLRequest) URLRequest { + rv := objc.Call[URLRequest](uc, objc.Sel("canonicalRequestForRequest:"), request) + return rv } -// Sets the property associated with the specified key in the specified request. [Full Topic] +// Returns a canonical version of the specified request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407897-setproperty?language=objc -func URLProtocol_SetPropertyForKeyInRequest(value objc.IObject, key string, request IMutableURLRequest) { - URLProtocolClass.SetPropertyForKeyInRequest(value, key, request) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1408650-canonicalrequestforrequest?language=objc +func URLProtocol_CanonicalRequestForRequest(request IURLRequest) URLRequest { + return URLProtocolClass.CanonicalRequestForRequest(request) } -// Stops protocol-specific loading of the request. [Full Topic] +// Attempts to register a subclass of NSURLProtocol, making it visible to the URL loading system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1408666-stoploading?language=objc -func (u_ URLProtocol) StopLoading() { - objc.Call[objc.Void](u_, objc.Sel("stopLoading")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407208-registerclass?language=objc +func (uc _URLProtocolClass) RegisterClass(protocolClass objc.IClass) bool { + rv := objc.Call[bool](uc, objc.Sel("registerClass:"), protocolClass) + return rv +} + +// Attempts to register a subclass of NSURLProtocol, making it visible to the URL loading system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407208-registerclass?language=objc +func URLProtocol_RegisterClass(protocolClass objc.IClass) bool { + return URLProtocolClass.RegisterClass(protocolClass) } // Determines whether the protocol subclass can handle the specified task. [Full Topic] @@ -140,33 +156,11 @@ func URLProtocol_CanInitWithTask(task IURLSessionTask) bool { return URLProtocolClass.CanInitWithTask(task) } -// A Boolean value indicating whether two requests are equivalent for cache purposes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1410008-requestiscacheequivalent?language=objc -func (uc _URLProtocolClass) RequestIsCacheEquivalentToRequest(a IURLRequest, b IURLRequest) bool { - rv := objc.Call[bool](uc, objc.Sel("requestIsCacheEquivalent:toRequest:"), a, b) - return rv -} - -// A Boolean value indicating whether two requests are equivalent for cache purposes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1410008-requestiscacheequivalent?language=objc -func URLProtocol_RequestIsCacheEquivalentToRequest(a IURLRequest, b IURLRequest) bool { - return URLProtocolClass.RequestIsCacheEquivalentToRequest(a, b) -} - -// Removes the property associated with the specified key in the specified request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407740-removepropertyforkey?language=objc -func (uc _URLProtocolClass) RemovePropertyForKeyInRequest(key string, request IMutableURLRequest) { - objc.Call[objc.Void](uc, objc.Sel("removePropertyForKey:inRequest:"), key, request) -} - -// Removes the property associated with the specified key in the specified request. [Full Topic] +// Starts protocol-specific loading of the request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407740-removepropertyforkey?language=objc -func URLProtocol_RemovePropertyForKeyInRequest(key string, request IMutableURLRequest) { - URLProtocolClass.RemovePropertyForKeyInRequest(key, request) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1408989-startloading?language=objc +func (u_ URLProtocol) StartLoading() { + objc.Call[objc.Void](u_, objc.Sel("startLoading")) } // Unregisters the specified subclass of NSURLProtocol. [Full Topic] @@ -183,21 +177,6 @@ func URLProtocol_UnregisterClass(protocolClass objc.IClass) { URLProtocolClass.UnregisterClass(protocolClass) } -// Fetches the property associated with the specified key in the specified request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1416521-propertyforkey?language=objc -func (uc _URLProtocolClass) PropertyForKeyInRequest(key string, request IURLRequest) objc.Object { - rv := objc.Call[objc.Object](uc, objc.Sel("propertyForKey:inRequest:"), key, request) - return rv -} - -// Fetches the property associated with the specified key in the specified request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1416521-propertyforkey?language=objc -func URLProtocol_PropertyForKeyInRequest(key string, request IURLRequest) objc.Object { - return URLProtocolClass.PropertyForKeyInRequest(key, request) -} - // Determines whether the protocol subclass can handle the specified request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1411389-caninitwithrequest?language=objc @@ -213,26 +192,47 @@ func URLProtocol_CanInitWithRequest(request IURLRequest) bool { return URLProtocolClass.CanInitWithRequest(request) } -// Starts protocol-specific loading of the request. [Full Topic] +// Sets the property associated with the specified key in the specified request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1408989-startloading?language=objc -func (u_ URLProtocol) StartLoading() { - objc.Call[objc.Void](u_, objc.Sel("startLoading")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407897-setproperty?language=objc +func (uc _URLProtocolClass) SetPropertyForKeyInRequest(value objc.IObject, key string, request IMutableURLRequest) { + objc.Call[objc.Void](uc, objc.Sel("setProperty:forKey:inRequest:"), value, key, request) } -// Returns a canonical version of the specified request. [Full Topic] +// Sets the property associated with the specified key in the specified request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1408650-canonicalrequestforrequest?language=objc -func (uc _URLProtocolClass) CanonicalRequestForRequest(request IURLRequest) URLRequest { - rv := objc.Call[URLRequest](uc, objc.Sel("canonicalRequestForRequest:"), request) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407897-setproperty?language=objc +func URLProtocol_SetPropertyForKeyInRequest(value objc.IObject, key string, request IMutableURLRequest) { + URLProtocolClass.SetPropertyForKeyInRequest(value, key, request) +} + +// A Boolean value indicating whether two requests are equivalent for cache purposes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1410008-requestiscacheequivalent?language=objc +func (uc _URLProtocolClass) RequestIsCacheEquivalentToRequest(a IURLRequest, b IURLRequest) bool { + rv := objc.Call[bool](uc, objc.Sel("requestIsCacheEquivalent:toRequest:"), a, b) return rv } -// Returns a canonical version of the specified request. [Full Topic] +// A Boolean value indicating whether two requests are equivalent for cache purposes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1408650-canonicalrequestforrequest?language=objc -func URLProtocol_CanonicalRequestForRequest(request IURLRequest) URLRequest { - return URLProtocolClass.CanonicalRequestForRequest(request) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1410008-requestiscacheequivalent?language=objc +func URLProtocol_RequestIsCacheEquivalentToRequest(a IURLRequest, b IURLRequest) bool { + return URLProtocolClass.RequestIsCacheEquivalentToRequest(a, b) +} + +// Removes the property associated with the specified key in the specified request. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407740-removepropertyforkey?language=objc +func (uc _URLProtocolClass) RemovePropertyForKeyInRequest(key string, request IMutableURLRequest) { + objc.Call[objc.Void](uc, objc.Sel("removePropertyForKey:inRequest:"), key, request) +} + +// Removes the property associated with the specified key in the specified request. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407740-removepropertyforkey?language=objc +func URLProtocol_RemovePropertyForKeyInRequest(key string, request IMutableURLRequest) { + URLProtocolClass.RemovePropertyForKeyInRequest(key, request) } // The protocol’s request. [Full Topic] @@ -243,14 +243,6 @@ func (u_ URLProtocol) Request() URLRequest { return rv } -// The protocol’s task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407649-task?language=objc -func (u_ URLProtocol) Task() URLSessionTask { - rv := objc.Call[URLSessionTask](u_, objc.Sel("task")) - return rv -} - // The protocol’s cached response. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1418409-cachedresponse?language=objc @@ -259,6 +251,14 @@ func (u_ URLProtocol) CachedResponse() CachedURLResponse { return rv } +// The protocol’s task. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407649-task?language=objc +func (u_ URLProtocol) Task() URLSessionTask { + rv := objc.Call[URLSessionTask](u_, objc.Sel("task")) + return rv +} + // The object the protocol uses to communicate with the URL loading system. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1413722-client?language=objc diff --git a/macos/foundation/url_protocol_client_protocol.gen.go b/macos/foundation/url_protocol_client_protocol.gen.go index 73afad93..947e71e0 100644 --- a/macos/foundation/url_protocol_client_protocol.gen.go +++ b/macos/foundation/url_protocol_client_protocol.gen.go @@ -10,37 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient?language=objc type PURLProtocolClient interface { - // optional - URLProtocolCachedResponseIsValid(protocol URLProtocol, cachedResponse CachedURLResponse) - HasURLProtocolCachedResponseIsValid() bool - // optional URLProtocolDidFailWithError(protocol URLProtocol, error Error) HasURLProtocolDidFailWithError() bool - // optional - URLProtocolDidReceiveResponseCacheStoragePolicy(protocol URLProtocol, response URLResponse, policy URLCacheStoragePolicy) - HasURLProtocolDidReceiveResponseCacheStoragePolicy() bool - - // optional - URLProtocolDidReceiveAuthenticationChallenge(protocol URLProtocol, challenge URLAuthenticationChallenge) - HasURLProtocolDidReceiveAuthenticationChallenge() bool - // optional URLProtocolDidFinishLoading(protocol URLProtocol) HasURLProtocolDidFinishLoading() bool - - // optional - URLProtocolDidCancelAuthenticationChallenge(protocol URLProtocol, challenge URLAuthenticationChallenge) - HasURLProtocolDidCancelAuthenticationChallenge() bool - - // optional - URLProtocolWasRedirectedToRequestRedirectResponse(protocol URLProtocol, request URLRequest, redirectResponse URLResponse) - HasURLProtocolWasRedirectedToRequestRedirectResponse() bool - - // optional - URLProtocolDidLoadData(protocol URLProtocol, data []byte) - HasURLProtocolDidLoadData() bool } // ensure impl type implements protocol interface @@ -51,17 +27,6 @@ type URLProtocolClientObject struct { objc.Object } -func (u_ URLProtocolClientObject) HasURLProtocolCachedResponseIsValid() bool { - return u_.RespondsToSelector(objc.Sel("URLProtocol:cachedResponseIsValid:")) -} - -// Tells the client that a cached response is valid. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient/1412327-urlprotocol?language=objc -func (u_ URLProtocolClientObject) URLProtocolCachedResponseIsValid(protocol URLProtocol, cachedResponse CachedURLResponse) { - objc.Call[objc.Void](u_, objc.Sel("URLProtocol:cachedResponseIsValid:"), protocol, cachedResponse) -} - func (u_ URLProtocolClientObject) HasURLProtocolDidFailWithError() bool { return u_.RespondsToSelector(objc.Sel("URLProtocol:didFailWithError:")) } @@ -73,28 +38,6 @@ func (u_ URLProtocolClientObject) URLProtocolDidFailWithError(protocol URLProtoc objc.Call[objc.Void](u_, objc.Sel("URLProtocol:didFailWithError:"), protocol, error) } -func (u_ URLProtocolClientObject) HasURLProtocolDidReceiveResponseCacheStoragePolicy() bool { - return u_.RespondsToSelector(objc.Sel("URLProtocol:didReceiveResponse:cacheStoragePolicy:")) -} - -// Tells the client that the protocol implementation has created a response object for the request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient/1416347-urlprotocol?language=objc -func (u_ URLProtocolClientObject) URLProtocolDidReceiveResponseCacheStoragePolicy(protocol URLProtocol, response URLResponse, policy URLCacheStoragePolicy) { - objc.Call[objc.Void](u_, objc.Sel("URLProtocol:didReceiveResponse:cacheStoragePolicy:"), protocol, response, policy) -} - -func (u_ URLProtocolClientObject) HasURLProtocolDidReceiveAuthenticationChallenge() bool { - return u_.RespondsToSelector(objc.Sel("URLProtocol:didReceiveAuthenticationChallenge:")) -} - -// Tells the client that the URL Loading System received an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient/1413387-urlprotocol?language=objc -func (u_ URLProtocolClientObject) URLProtocolDidReceiveAuthenticationChallenge(protocol URLProtocol, challenge URLAuthenticationChallenge) { - objc.Call[objc.Void](u_, objc.Sel("URLProtocol:didReceiveAuthenticationChallenge:"), protocol, challenge) -} - func (u_ URLProtocolClientObject) HasURLProtocolDidFinishLoading() bool { return u_.RespondsToSelector(objc.Sel("URLProtocolDidFinishLoading:")) } @@ -105,36 +48,3 @@ func (u_ URLProtocolClientObject) HasURLProtocolDidFinishLoading() bool { func (u_ URLProtocolClientObject) URLProtocolDidFinishLoading(protocol URLProtocol) { objc.Call[objc.Void](u_, objc.Sel("URLProtocolDidFinishLoading:"), protocol) } - -func (u_ URLProtocolClientObject) HasURLProtocolDidCancelAuthenticationChallenge() bool { - return u_.RespondsToSelector(objc.Sel("URLProtocol:didCancelAuthenticationChallenge:")) -} - -// Tells the client that an authentication challenge has been canceled. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient/1410932-urlprotocol?language=objc -func (u_ URLProtocolClientObject) URLProtocolDidCancelAuthenticationChallenge(protocol URLProtocol, challenge URLAuthenticationChallenge) { - objc.Call[objc.Void](u_, objc.Sel("URLProtocol:didCancelAuthenticationChallenge:"), protocol, challenge) -} - -func (u_ URLProtocolClientObject) HasURLProtocolWasRedirectedToRequestRedirectResponse() bool { - return u_.RespondsToSelector(objc.Sel("URLProtocol:wasRedirectedToRequest:redirectResponse:")) -} - -// Tells the client that the protocol implementation has been redirected. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient/1415800-urlprotocol?language=objc -func (u_ URLProtocolClientObject) URLProtocolWasRedirectedToRequestRedirectResponse(protocol URLProtocol, request URLRequest, redirectResponse URLResponse) { - objc.Call[objc.Void](u_, objc.Sel("URLProtocol:wasRedirectedToRequest:redirectResponse:"), protocol, request, redirectResponse) -} - -func (u_ URLProtocolClientObject) HasURLProtocolDidLoadData() bool { - return u_.RespondsToSelector(objc.Sel("URLProtocol:didLoadData:")) -} - -// Tells the client that the protocol implementation has loaded some data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient/1411370-urlprotocol?language=objc -func (u_ URLProtocolClientObject) URLProtocolDidLoadData(protocol URLProtocol, data []byte) { - objc.Call[objc.Void](u_, objc.Sel("URLProtocol:didLoadData:"), protocol, data) -} diff --git a/macos/foundation/url_query_item.gen.go b/macos/foundation/url_query_item.gen.go index 904daf6f..acedb7e0 100644 --- a/macos/foundation/url_query_item.gen.go +++ b/macos/foundation/url_query_item.gen.go @@ -18,8 +18,8 @@ type _URLQueryItemClass struct { // An interface definition for the [URLQueryItem] class. type IURLQueryItem interface { objc.IObject - Name() string Value() string + Name() string } // An object representing a single name/value pair for an item in the query portion of a URL. [Full Topic] @@ -81,14 +81,6 @@ func (u_ URLQueryItem) Init() URLQueryItem { return rv } -// The name of the query item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlqueryitem/1407785-name?language=objc -func (u_ URLQueryItem) Name() string { - rv := objc.Call[string](u_, objc.Sel("name")) - return rv -} - // The value for the query item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlqueryitem/1412041-value?language=objc @@ -96,3 +88,11 @@ func (u_ URLQueryItem) Value() string { rv := objc.Call[string](u_, objc.Sel("value")) return rv } + +// The name of the query item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlqueryitem/1407785-name?language=objc +func (u_ URLQueryItem) Name() string { + rv := objc.Call[string](u_, objc.Sel("name")) + return rv +} diff --git a/macos/foundation/url_request.gen.go b/macos/foundation/url_request.gen.go index e078f200..487a9856 100644 --- a/macos/foundation/url_request.gen.go +++ b/macos/foundation/url_request.gen.go @@ -19,22 +19,22 @@ type _URLRequestClass struct { type IURLRequest interface { objc.IObject ValueForHTTPHeaderField(field string) string - AssumesHTTP3Capable() bool - HTTPBodyStream() InputStream - URL() URL AllHTTPHeaderFields() map[string]string - AllowsExpensiveNetworkAccess() bool - NetworkServiceType() URLRequestNetworkServiceType - HTTPShouldUsePipelining() bool - HTTPMethod() string - AllowsConstrainedNetworkAccess() bool MainDocumentURL() URL - CachePolicy() URLRequestCachePolicy - Attribution() URLRequestAttribution HTTPShouldHandleCookies() bool + HTTPMethod() string + AllowsCellularAccess() bool + URL() URL + HTTPBodyStream() InputStream + AssumesHTTP3Capable() bool + AllowsExpensiveNetworkAccess() bool + AllowsConstrainedNetworkAccess() bool TimeoutInterval() TimeInterval + Attribution() URLRequestAttribution HTTPBody() []byte - AllowsCellularAccess() bool + CachePolicy() URLRequestCachePolicy + NetworkServiceType() URLRequestNetworkServiceType + HTTPShouldUsePipelining() bool } // A URL load request that is independent of protocol or URL scheme. [Full Topic] @@ -50,18 +50,6 @@ func URLRequestFrom(ptr unsafe.Pointer) URLRequest { } } -func (uc _URLRequestClass) RequestWithURLCachePolicyTimeoutInterval(URL IURL, cachePolicy URLRequestCachePolicy, timeoutInterval TimeInterval) URLRequest { - rv := objc.Call[URLRequest](uc, objc.Sel("requestWithURL:cachePolicy:timeoutInterval:"), URL, cachePolicy, timeoutInterval) - return rv -} - -// Creates and returns an initialized URL request with specified URL, cache policy, and timeout values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1528579-requestwithurl?language=objc -func URLRequest_RequestWithURLCachePolicyTimeoutInterval(URL IURL, cachePolicy URLRequestCachePolicy, timeoutInterval TimeInterval) URLRequest { - return URLRequestClass.RequestWithURLCachePolicyTimeoutInterval(URL, cachePolicy, timeoutInterval) -} - func (u_ URLRequest) InitWithURL(URL IURL) URLRequest { rv := objc.Call[URLRequest](u_, objc.Sel("initWithURL:"), URL) return rv @@ -88,20 +76,6 @@ func URLRequest_RequestWithURL(URL IURL) URLRequest { return URLRequestClass.RequestWithURL(URL) } -func (u_ URLRequest) InitWithURLCachePolicyTimeoutInterval(URL IURL, cachePolicy URLRequestCachePolicy, timeoutInterval TimeInterval) URLRequest { - rv := objc.Call[URLRequest](u_, objc.Sel("initWithURL:cachePolicy:timeoutInterval:"), URL, cachePolicy, timeoutInterval) - return rv -} - -// Creates a URL request with the specified URL, cache policy, and timeout values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1416292-initwithurl?language=objc -func NewURLRequestWithURLCachePolicyTimeoutInterval(URL IURL, cachePolicy URLRequestCachePolicy, timeoutInterval TimeInterval) URLRequest { - instance := URLRequestClass.Alloc().InitWithURLCachePolicyTimeoutInterval(URL, cachePolicy, timeoutInterval) - instance.Autorelease() - return instance -} - func (uc _URLRequestClass) Alloc() URLRequest { rv := objc.Call[URLRequest](uc, objc.Sel("alloc")) return rv @@ -130,82 +104,75 @@ func (u_ URLRequest) ValueForHTTPHeaderField(field string) string { return rv } -// [Full Topic] +// A dictionary containing all of the HTTP header fields for a request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/3735880-assumeshttp3capable?language=objc -func (u_ URLRequest) AssumesHTTP3Capable() bool { - rv := objc.Call[bool](u_, objc.Sel("assumesHTTP3Capable")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1418477-allhttpheaderfields?language=objc +func (u_ URLRequest) AllHTTPHeaderFields() map[string]string { + rv := objc.Call[map[string]string](u_, objc.Sel("allHTTPHeaderFields")) return rv } -// The request body as an input stream. [Full Topic] +// The main document URL associated with the request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1407341-httpbodystream?language=objc -func (u_ URLRequest) HTTPBodyStream() InputStream { - rv := objc.Call[InputStream](u_, objc.Sel("HTTPBodyStream")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1414134-maindocumenturl?language=objc +func (u_ URLRequest) MainDocumentURL() URL { + rv := objc.Call[URL](u_, objc.Sel("mainDocumentURL")) return rv } -// The URL being requested. [Full Topic] +// A Boolean value that indicates whether the default cookie handling will be used for this request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1408996-url?language=objc -func (u_ URLRequest) URL() URL { - rv := objc.Call[URL](u_, objc.Sel("URL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1418369-httpshouldhandlecookies?language=objc +func (u_ URLRequest) HTTPShouldHandleCookies() bool { + rv := objc.Call[bool](u_, objc.Sel("HTTPShouldHandleCookies")) return rv } -// A dictionary containing all of the HTTP header fields for a request. [Full Topic] +// The HTTP request method. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1418477-allhttpheaderfields?language=objc -func (u_ URLRequest) AllHTTPHeaderFields() map[string]string { - rv := objc.Call[map[string]string](u_, objc.Sel("allHTTPHeaderFields")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1413030-httpmethod?language=objc +func (u_ URLRequest) HTTPMethod() string { + rv := objc.Call[string](u_, objc.Sel("HTTPMethod")) return rv } -// A Boolean value that indicates whether connections may use a network interface that the system considers expensive. [Full Topic] +// A Boolean value that indicates whether the request is allowed to use the cellular radio (if present). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/3325679-allowsexpensivenetworkaccess?language=objc -func (u_ URLRequest) AllowsExpensiveNetworkAccess() bool { - rv := objc.Call[bool](u_, objc.Sel("allowsExpensiveNetworkAccess")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1412032-allowscellularaccess?language=objc +func (u_ URLRequest) AllowsCellularAccess() bool { + rv := objc.Call[bool](u_, objc.Sel("allowsCellularAccess")) return rv } -// The network service type of the request. [Full Topic] +// The URL being requested. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1418333-networkservicetype?language=objc -func (u_ URLRequest) NetworkServiceType() URLRequestNetworkServiceType { - rv := objc.Call[URLRequestNetworkServiceType](u_, objc.Sel("networkServiceType")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1408996-url?language=objc +func (u_ URLRequest) URL() URL { + rv := objc.Call[URL](u_, objc.Sel("URL")) return rv } -// A Boolean value that indicates whether the request should continue transmitting data before receiving a response from an earlier transmission. [Full Topic] +// The request body as an input stream. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1409170-httpshouldusepipelining?language=objc -func (u_ URLRequest) HTTPShouldUsePipelining() bool { - rv := objc.Call[bool](u_, objc.Sel("HTTPShouldUsePipelining")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1407341-httpbodystream?language=objc +func (u_ URLRequest) HTTPBodyStream() InputStream { + rv := objc.Call[InputStream](u_, objc.Sel("HTTPBodyStream")) return rv } -// A Boolean value indicating whether the NSURLRequest implements the NSSecureCoding protocol. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1416510-supportssecurecoding?language=objc -func (uc _URLRequestClass) SupportsSecureCoding() bool { - rv := objc.Call[bool](uc, objc.Sel("supportsSecureCoding")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/3735880-assumeshttp3capable?language=objc +func (u_ URLRequest) AssumesHTTP3Capable() bool { + rv := objc.Call[bool](u_, objc.Sel("assumesHTTP3Capable")) return rv } -// A Boolean value indicating whether the NSURLRequest implements the NSSecureCoding protocol. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1416510-supportssecurecoding?language=objc -func URLRequest_SupportsSecureCoding() bool { - return URLRequestClass.SupportsSecureCoding() -} - -// The HTTP request method. [Full Topic] +// A Boolean value that indicates whether connections may use a network interface that the system considers expensive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1413030-httpmethod?language=objc -func (u_ URLRequest) HTTPMethod() string { - rv := objc.Call[string](u_, objc.Sel("HTTPMethod")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/3325679-allowsexpensivenetworkaccess?language=objc +func (u_ URLRequest) AllowsExpensiveNetworkAccess() bool { + rv := objc.Call[bool](u_, objc.Sel("allowsExpensiveNetworkAccess")) return rv } @@ -217,22 +184,29 @@ func (u_ URLRequest) AllowsConstrainedNetworkAccess() bool { return rv } -// The main document URL associated with the request. [Full Topic] +// The request’s timeout interval, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1414134-maindocumenturl?language=objc -func (u_ URLRequest) MainDocumentURL() URL { - rv := objc.Call[URL](u_, objc.Sel("mainDocumentURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1418229-timeoutinterval?language=objc +func (u_ URLRequest) TimeoutInterval() TimeInterval { + rv := objc.Call[TimeInterval](u_, objc.Sel("timeoutInterval")) return rv } -// The request’s cache policy. [Full Topic] +// A Boolean value indicating whether the NSURLRequest implements the NSSecureCoding protocol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1407944-cachepolicy?language=objc -func (u_ URLRequest) CachePolicy() URLRequestCachePolicy { - rv := objc.Call[URLRequestCachePolicy](u_, objc.Sel("cachePolicy")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1416510-supportssecurecoding?language=objc +func (uc _URLRequestClass) SupportsSecureCoding() bool { + rv := objc.Call[bool](uc, objc.Sel("supportsSecureCoding")) return rv } +// A Boolean value indicating whether the NSURLRequest implements the NSSecureCoding protocol. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1416510-supportssecurecoding?language=objc +func URLRequest_SupportsSecureCoding() bool { + return URLRequestClass.SupportsSecureCoding() +} + // The entity that initiates the network request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/3746973-attribution?language=objc @@ -241,34 +215,34 @@ func (u_ URLRequest) Attribution() URLRequestAttribution { return rv } -// A Boolean value that indicates whether the default cookie handling will be used for this request. [Full Topic] +// The request body. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1418369-httpshouldhandlecookies?language=objc -func (u_ URLRequest) HTTPShouldHandleCookies() bool { - rv := objc.Call[bool](u_, objc.Sel("HTTPShouldHandleCookies")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1411317-httpbody?language=objc +func (u_ URLRequest) HTTPBody() []byte { + rv := objc.Call[[]byte](u_, objc.Sel("HTTPBody")) return rv } -// The request’s timeout interval, in seconds. [Full Topic] +// The request’s cache policy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1418229-timeoutinterval?language=objc -func (u_ URLRequest) TimeoutInterval() TimeInterval { - rv := objc.Call[TimeInterval](u_, objc.Sel("timeoutInterval")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1407944-cachepolicy?language=objc +func (u_ URLRequest) CachePolicy() URLRequestCachePolicy { + rv := objc.Call[URLRequestCachePolicy](u_, objc.Sel("cachePolicy")) return rv } -// The request body. [Full Topic] +// The network service type of the request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1411317-httpbody?language=objc -func (u_ URLRequest) HTTPBody() []byte { - rv := objc.Call[[]byte](u_, objc.Sel("HTTPBody")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1418333-networkservicetype?language=objc +func (u_ URLRequest) NetworkServiceType() URLRequestNetworkServiceType { + rv := objc.Call[URLRequestNetworkServiceType](u_, objc.Sel("networkServiceType")) return rv } -// A Boolean value that indicates whether the request is allowed to use the cellular radio (if present). [Full Topic] +// A Boolean value that indicates whether the request should continue transmitting data before receiving a response from an earlier transmission. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1412032-allowscellularaccess?language=objc -func (u_ URLRequest) AllowsCellularAccess() bool { - rv := objc.Call[bool](u_, objc.Sel("allowsCellularAccess")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlrequest/1409170-httpshouldusepipelining?language=objc +func (u_ URLRequest) HTTPShouldUsePipelining() bool { + rv := objc.Call[bool](u_, objc.Sel("HTTPShouldUsePipelining")) return rv } diff --git a/macos/foundation/url_response.gen.go b/macos/foundation/url_response.gen.go index 3a64177b..370fbc5e 100644 --- a/macos/foundation/url_response.gen.go +++ b/macos/foundation/url_response.gen.go @@ -19,10 +19,10 @@ type _URLResponseClass struct { type IURLResponse interface { objc.IObject ExpectedContentLength() int64 - TextEncodingName() string - SuggestedFilename() string MIMEType() string URL() URL + TextEncodingName() string + SuggestedFilename() string } // The metadata associated with the response to a URL load request, independent of protocol and URL scheme. [Full Topic] @@ -80,22 +80,6 @@ func (u_ URLResponse) ExpectedContentLength() int64 { return rv } -// The name of the text encoding provided by the response’s originating source. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlresponse/1408005-textencodingname?language=objc -func (u_ URLResponse) TextEncodingName() string { - rv := objc.Call[string](u_, objc.Sel("textEncodingName")) - return rv -} - -// A suggested filename for the response data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlresponse/1415924-suggestedfilename?language=objc -func (u_ URLResponse) SuggestedFilename() string { - rv := objc.Call[string](u_, objc.Sel("suggestedFilename")) - return rv -} - // The MIME type of the response. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlresponse/1411613-mimetype?language=objc @@ -111,3 +95,19 @@ func (u_ URLResponse) URL() URL { rv := objc.Call[URL](u_, objc.Sel("URL")) return rv } + +// The name of the text encoding provided by the response’s originating source. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlresponse/1408005-textencodingname?language=objc +func (u_ URLResponse) TextEncodingName() string { + rv := objc.Call[string](u_, objc.Sel("textEncodingName")) + return rv +} + +// A suggested filename for the response data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlresponse/1415924-suggestedfilename?language=objc +func (u_ URLResponse) SuggestedFilename() string { + rv := objc.Call[string](u_, objc.Sel("suggestedFilename")) + return rv +} diff --git a/macos/foundation/url_session.gen.go b/macos/foundation/url_session.gen.go index e6f69303..e092176a 100644 --- a/macos/foundation/url_session.gen.go +++ b/macos/foundation/url_session.gen.go @@ -18,36 +18,27 @@ type _URLSessionClass struct { // An interface definition for the [URLSession] class. type IURLSession interface { objc.IObject - InvalidateAndCancel() - WebSocketTaskWithURLProtocols(url IURL, protocols []string) URLSessionWebSocketTask - DownloadTaskWithURL(url IURL) URLSessionDownloadTask - DownloadTaskWithURLCompletionHandler(url IURL, completionHandler func(location URL, response URLResponse, error Error)) URLSessionDownloadTask - GetAllTasksWithCompletionHandler(completionHandler func(tasks []URLSessionTask)) - DownloadTaskWithRequestCompletionHandler(request IURLRequest, completionHandler func(location URL, response URLResponse, error Error)) URLSessionDownloadTask - DataTaskWithRequestCompletionHandler(request IURLRequest, completionHandler func(data []byte, response URLResponse, error Error)) URLSessionDataTask - FinishTasksAndInvalidate() + ResetWithCompletionHandler(completionHandler func()) + UploadTaskWithRequestFromFile(request IURLRequest, fileURL IURL) URLSessionUploadTask FlushWithCompletionHandler(completionHandler func()) - DataTaskWithURL(url IURL) URLSessionDataTask + WebSocketTaskWithRequest(request IURLRequest) URLSessionWebSocketTask GetTasksWithCompletionHandler(completionHandler func(dataTasks []URLSessionDataTask, uploadTasks []URLSessionUploadTask, downloadTasks []URLSessionDownloadTask)) - UploadTaskWithRequestFromData(request IURLRequest, bodyData []byte) URLSessionUploadTask - DownloadTaskWithResumeData(resumeData []byte) URLSessionDownloadTask - DownloadTaskWithRequest(request IURLRequest) URLSessionDownloadTask - UploadTaskWithRequestFromDataCompletionHandler(request IURLRequest, bodyData []byte, completionHandler func(data []byte, response URLResponse, error Error)) URLSessionUploadTask WebSocketTaskWithURL(url IURL) URLSessionWebSocketTask - DataTaskWithURLCompletionHandler(url IURL, completionHandler func(data []byte, response URLResponse, error Error)) URLSessionDataTask - ResetWithCompletionHandler(completionHandler func()) - UploadTaskWithRequestFromFile(request IURLRequest, fileURL IURL) URLSessionUploadTask - DownloadTaskWithResumeDataCompletionHandler(resumeData []byte, completionHandler func(location URL, response URLResponse, error Error)) URLSessionDownloadTask StreamTaskWithHostNamePort(hostname string, port int) URLSessionStreamTask - WebSocketTaskWithRequest(request IURLRequest) URLSessionWebSocketTask + DownloadTaskWithResumeData(resumeData []byte) URLSessionDownloadTask + DownloadTaskWithRequest(request IURLRequest) URLSessionDownloadTask UploadTaskWithStreamedRequest(request IURLRequest) URLSessionUploadTask + InvalidateAndCancel() DataTaskWithRequest(request IURLRequest) URLSessionDataTask - UploadTaskWithRequestFromFileCompletionHandler(request IURLRequest, fileURL IURL, completionHandler func(data []byte, response URLResponse, error Error)) URLSessionUploadTask + DownloadTaskWithURL(url IURL) URLSessionDownloadTask + GetAllTasksWithCompletionHandler(completionHandler func(tasks []URLSessionTask)) + DataTaskWithURL(url IURL) URLSessionDataTask + FinishTasksAndInvalidate() Delegate() URLSessionDelegateObject - DelegateQueue() OperationQueue + Configuration() URLSessionConfiguration SessionDescription() string SetSessionDescription(value string) - Configuration() URLSessionConfiguration + DelegateQueue() OperationQueue } // An object that coordinates a group of related, network data transfer tasks. [Full Topic] @@ -83,98 +74,21 @@ func (u_ URLSession) Init() URLSession { return rv } -// Cancels all outstanding tasks and then invalidates the session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411538-invalidateandcancel?language=objc -func (u_ URLSession) InvalidateAndCancel() { - objc.Call[objc.Void](u_, objc.Sel("invalidateAndCancel")) -} - -// Creates a session with the specified session configuration, delegate, and operation queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411597-sessionwithconfiguration?language=objc -func (uc _URLSessionClass) SessionWithConfigurationDelegateDelegateQueue(configuration IURLSessionConfiguration, delegate PURLSessionDelegate, queue IOperationQueue) URLSession { - po1 := objc.WrapAsProtocol("NSURLSessionDelegate", delegate) - rv := objc.Call[URLSession](uc, objc.Sel("sessionWithConfiguration:delegate:delegateQueue:"), configuration, po1, queue) - return rv -} - -// Creates a session with the specified session configuration, delegate, and operation queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411597-sessionwithconfiguration?language=objc -func URLSession_SessionWithConfigurationDelegateDelegateQueue(configuration IURLSessionConfiguration, delegate PURLSessionDelegate, queue IOperationQueue) URLSession { - return URLSessionClass.SessionWithConfigurationDelegateDelegateQueue(configuration, delegate, queue) -} - -// Creates a session with the specified session configuration, delegate, and operation queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411597-sessionwithconfiguration?language=objc -func (uc _URLSessionClass) SessionWithConfigurationDelegateObjectDelegateQueue(configuration IURLSessionConfiguration, delegateObject objc.IObject, queue IOperationQueue) URLSession { - rv := objc.Call[URLSession](uc, objc.Sel("sessionWithConfiguration:delegate:delegateQueue:"), configuration, delegateObject, queue) - return rv -} - -// Creates a session with the specified session configuration, delegate, and operation queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411597-sessionwithconfiguration?language=objc -func URLSession_SessionWithConfigurationDelegateObjectDelegateQueue(configuration IURLSessionConfiguration, delegateObject objc.IObject, queue IOperationQueue) URLSession { - return URLSessionClass.SessionWithConfigurationDelegateObjectDelegateQueue(configuration, delegateObject, queue) -} - -// Creates a WebSocket task given a URL and an array of protocols. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/3181172-websockettaskwithurl?language=objc -func (u_ URLSession) WebSocketTaskWithURLProtocols(url IURL, protocols []string) URLSessionWebSocketTask { - rv := objc.Call[URLSessionWebSocketTask](u_, objc.Sel("webSocketTaskWithURL:protocols:"), url, protocols) - return rv -} - -// Creates a download task that retrieves the contents of the specified URL and saves the results to a file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411482-downloadtaskwithurl?language=objc -func (u_ URLSession) DownloadTaskWithURL(url IURL) URLSessionDownloadTask { - rv := objc.Call[URLSessionDownloadTask](u_, objc.Sel("downloadTaskWithURL:"), url) - return rv -} - -// Creates a download task that retrieves the contents of the specified URL, saves the results to a file, and calls a handler upon completion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411608-downloadtaskwithurl?language=objc -func (u_ URLSession) DownloadTaskWithURLCompletionHandler(url IURL, completionHandler func(location URL, response URLResponse, error Error)) URLSessionDownloadTask { - rv := objc.Call[URLSessionDownloadTask](u_, objc.Sel("downloadTaskWithURL:completionHandler:"), url, completionHandler) - return rv -} - -// Asynchronously calls a completion callback with all tasks in a session [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411618-getalltaskswithcompletionhandler?language=objc -func (u_ URLSession) GetAllTasksWithCompletionHandler(completionHandler func(tasks []URLSessionTask)) { - objc.Call[objc.Void](u_, objc.Sel("getAllTasksWithCompletionHandler:"), completionHandler) -} - -// Creates a download task that retrieves the contents of a URL based on the specified URL request object, saves the results to a file, and calls a handler upon completion. [Full Topic] +// Empties all cookies, caches and credential stores, removes disk files, flushes in-progress downloads to disk, and ensures that future requests occur on a new socket. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411511-downloadtaskwithrequest?language=objc -func (u_ URLSession) DownloadTaskWithRequestCompletionHandler(request IURLRequest, completionHandler func(location URL, response URLResponse, error Error)) URLSessionDownloadTask { - rv := objc.Call[URLSessionDownloadTask](u_, objc.Sel("downloadTaskWithRequest:completionHandler:"), request, completionHandler) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411479-resetwithcompletionhandler?language=objc +func (u_ URLSession) ResetWithCompletionHandler(completionHandler func()) { + objc.Call[objc.Void](u_, objc.Sel("resetWithCompletionHandler:"), completionHandler) } -// Creates a task that retrieves the contents of a URL based on the specified URL request object, and calls a handler upon completion. [Full Topic] +// Creates a task that performs an HTTP request for uploading the specified file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1407613-datataskwithrequest?language=objc -func (u_ URLSession) DataTaskWithRequestCompletionHandler(request IURLRequest, completionHandler func(data []byte, response URLResponse, error Error)) URLSessionDataTask { - rv := objc.Call[URLSessionDataTask](u_, objc.Sel("dataTaskWithRequest:completionHandler:"), request, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411550-uploadtaskwithrequest?language=objc +func (u_ URLSession) UploadTaskWithRequestFromFile(request IURLRequest, fileURL IURL) URLSessionUploadTask { + rv := objc.Call[URLSessionUploadTask](u_, objc.Sel("uploadTaskWithRequest:fromFile:"), request, fileURL) return rv } -// Invalidates the session, allowing any outstanding tasks to finish. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1407428-finishtasksandinvalidate?language=objc -func (u_ URLSession) FinishTasksAndInvalidate() { - objc.Call[objc.Void](u_, objc.Sel("finishTasksAndInvalidate")) -} - // Flushes cookies and credentials to disk, clears transient caches, and ensures that future requests occur on a new TCP connection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411622-flushwithcompletionhandler?language=objc @@ -182,11 +96,11 @@ func (u_ URLSession) FlushWithCompletionHandler(completionHandler func()) { objc.Call[objc.Void](u_, objc.Sel("flushWithCompletionHandler:"), completionHandler) } -// Creates a task that retrieves the contents of the specified URL. [Full Topic] +// Creates a WebSocket task for the provided URL request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411554-datataskwithurl?language=objc -func (u_ URLSession) DataTaskWithURL(url IURL) URLSessionDataTask { - rv := objc.Call[URLSessionDataTask](u_, objc.Sel("dataTaskWithURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/3235750-websockettaskwithrequest?language=objc +func (u_ URLSession) WebSocketTaskWithRequest(request IURLRequest) URLSessionWebSocketTask { + rv := objc.Call[URLSessionWebSocketTask](u_, objc.Sel("webSocketTaskWithRequest:"), request) return rv } @@ -197,11 +111,19 @@ func (u_ URLSession) GetTasksWithCompletionHandler(completionHandler func(dataTa objc.Call[objc.Void](u_, objc.Sel("getTasksWithCompletionHandler:"), completionHandler) } -// Creates a task that performs an HTTP request for the specified URL request object and uploads the provided data. [Full Topic] +// Creates a WebSocket task for the provided URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/3181171-websockettaskwithurl?language=objc +func (u_ URLSession) WebSocketTaskWithURL(url IURL) URLSessionWebSocketTask { + rv := objc.Call[URLSessionWebSocketTask](u_, objc.Sel("webSocketTaskWithURL:"), url) + return rv +} + +// Creates a task that establishes a bidirectional TCP/IP connection to a specified hostname and port. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1409763-uploadtaskwithrequest?language=objc -func (u_ URLSession) UploadTaskWithRequestFromData(request IURLRequest, bodyData []byte) URLSessionUploadTask { - rv := objc.Call[URLSessionUploadTask](u_, objc.Sel("uploadTaskWithRequest:fromData:"), request, bodyData) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411587-streamtaskwithhostname?language=objc +func (u_ URLSession) StreamTaskWithHostNamePort(hostname string, port int) URLSessionStreamTask { + rv := objc.Call[URLSessionStreamTask](u_, objc.Sel("streamTaskWithHostName:port:"), hostname, port) return rv } @@ -221,19 +143,26 @@ func (u_ URLSession) DownloadTaskWithRequest(request IURLRequest) URLSessionDown return rv } -// Creates a task that performs an HTTP request for the specified URL request object, uploads the provided data, and calls a handler upon completion. [Full Topic] +// Creates a task that performs an HTTP request for uploading data based on the specified URL request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411518-uploadtaskwithrequest?language=objc -func (u_ URLSession) UploadTaskWithRequestFromDataCompletionHandler(request IURLRequest, bodyData []byte, completionHandler func(data []byte, response URLResponse, error Error)) URLSessionUploadTask { - rv := objc.Call[URLSessionUploadTask](u_, objc.Sel("uploadTaskWithRequest:fromData:completionHandler:"), request, bodyData, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1410934-uploadtaskwithstreamedrequest?language=objc +func (u_ URLSession) UploadTaskWithStreamedRequest(request IURLRequest) URLSessionUploadTask { + rv := objc.Call[URLSessionUploadTask](u_, objc.Sel("uploadTaskWithStreamedRequest:"), request) return rv } -// Creates a WebSocket task for the provided URL. [Full Topic] +// Cancels all outstanding tasks and then invalidates the session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/3181171-websockettaskwithurl?language=objc -func (u_ URLSession) WebSocketTaskWithURL(url IURL) URLSessionWebSocketTask { - rv := objc.Call[URLSessionWebSocketTask](u_, objc.Sel("webSocketTaskWithURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411538-invalidateandcancel?language=objc +func (u_ URLSession) InvalidateAndCancel() { + objc.Call[objc.Void](u_, objc.Sel("invalidateAndCancel")) +} + +// Creates a task that retrieves the contents of a URL based on the specified URL request object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1410592-datataskwithrequest?language=objc +func (u_ URLSession) DataTaskWithRequest(request IURLRequest) URLSessionDataTask { + rv := objc.Call[URLSessionDataTask](u_, objc.Sel("dataTaskWithRequest:"), request) return rv } @@ -252,74 +181,72 @@ func URLSession_SessionWithConfiguration(configuration IURLSessionConfiguration) return URLSessionClass.SessionWithConfiguration(configuration) } -// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion. [Full Topic] +// Creates a download task that retrieves the contents of the specified URL and saves the results to a file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1410330-datataskwithurl?language=objc -func (u_ URLSession) DataTaskWithURLCompletionHandler(url IURL, completionHandler func(data []byte, response URLResponse, error Error)) URLSessionDataTask { - rv := objc.Call[URLSessionDataTask](u_, objc.Sel("dataTaskWithURL:completionHandler:"), url, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411482-downloadtaskwithurl?language=objc +func (u_ URLSession) DownloadTaskWithURL(url IURL) URLSessionDownloadTask { + rv := objc.Call[URLSessionDownloadTask](u_, objc.Sel("downloadTaskWithURL:"), url) return rv } -// Empties all cookies, caches and credential stores, removes disk files, flushes in-progress downloads to disk, and ensures that future requests occur on a new socket. [Full Topic] +// Asynchronously calls a completion callback with all tasks in a session [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411479-resetwithcompletionhandler?language=objc -func (u_ URLSession) ResetWithCompletionHandler(completionHandler func()) { - objc.Call[objc.Void](u_, objc.Sel("resetWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411618-getalltaskswithcompletionhandler?language=objc +func (u_ URLSession) GetAllTasksWithCompletionHandler(completionHandler func(tasks []URLSessionTask)) { + objc.Call[objc.Void](u_, objc.Sel("getAllTasksWithCompletionHandler:"), completionHandler) } -// Creates a task that performs an HTTP request for uploading the specified file. [Full Topic] +// Creates a task that retrieves the contents of the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411550-uploadtaskwithrequest?language=objc -func (u_ URLSession) UploadTaskWithRequestFromFile(request IURLRequest, fileURL IURL) URLSessionUploadTask { - rv := objc.Call[URLSessionUploadTask](u_, objc.Sel("uploadTaskWithRequest:fromFile:"), request, fileURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411554-datataskwithurl?language=objc +func (u_ URLSession) DataTaskWithURL(url IURL) URLSessionDataTask { + rv := objc.Call[URLSessionDataTask](u_, objc.Sel("dataTaskWithURL:"), url) return rv } -// Creates a download task to resume a previously canceled or failed download and calls a handler upon completion. [Full Topic] +// Invalidates the session, allowing any outstanding tasks to finish. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411598-downloadtaskwithresumedata?language=objc -func (u_ URLSession) DownloadTaskWithResumeDataCompletionHandler(resumeData []byte, completionHandler func(location URL, response URLResponse, error Error)) URLSessionDownloadTask { - rv := objc.Call[URLSessionDownloadTask](u_, objc.Sel("downloadTaskWithResumeData:completionHandler:"), resumeData, completionHandler) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1407428-finishtasksandinvalidate?language=objc +func (u_ URLSession) FinishTasksAndInvalidate() { + objc.Call[objc.Void](u_, objc.Sel("finishTasksAndInvalidate")) } -// Creates a task that establishes a bidirectional TCP/IP connection to a specified hostname and port. [Full Topic] +// The delegate assigned when this object was created. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411587-streamtaskwithhostname?language=objc -func (u_ URLSession) StreamTaskWithHostNamePort(hostname string, port int) URLSessionStreamTask { - rv := objc.Call[URLSessionStreamTask](u_, objc.Sel("streamTaskWithHostName:port:"), hostname, port) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411530-delegate?language=objc +func (u_ URLSession) Delegate() URLSessionDelegateObject { + rv := objc.Call[URLSessionDelegateObject](u_, objc.Sel("delegate")) return rv } -// Creates a WebSocket task for the provided URL request. [Full Topic] +// A copy of the configuration object for this session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/3235750-websockettaskwithrequest?language=objc -func (u_ URLSession) WebSocketTaskWithRequest(request IURLRequest) URLSessionWebSocketTask { - rv := objc.Call[URLSessionWebSocketTask](u_, objc.Sel("webSocketTaskWithRequest:"), request) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411477-configuration?language=objc +func (u_ URLSession) Configuration() URLSessionConfiguration { + rv := objc.Call[URLSessionConfiguration](u_, objc.Sel("configuration")) return rv } -// Creates a task that performs an HTTP request for uploading data based on the specified URL request. [Full Topic] +// An app-defined descriptive label for the session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1410934-uploadtaskwithstreamedrequest?language=objc -func (u_ URLSession) UploadTaskWithStreamedRequest(request IURLRequest) URLSessionUploadTask { - rv := objc.Call[URLSessionUploadTask](u_, objc.Sel("uploadTaskWithStreamedRequest:"), request) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1408277-sessiondescription?language=objc +func (u_ URLSession) SessionDescription() string { + rv := objc.Call[string](u_, objc.Sel("sessionDescription")) return rv } -// Creates a task that retrieves the contents of a URL based on the specified URL request object. [Full Topic] +// An app-defined descriptive label for the session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1410592-datataskwithrequest?language=objc -func (u_ URLSession) DataTaskWithRequest(request IURLRequest) URLSessionDataTask { - rv := objc.Call[URLSessionDataTask](u_, objc.Sel("dataTaskWithRequest:"), request) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1408277-sessiondescription?language=objc +func (u_ URLSession) SetSessionDescription(value string) { + objc.Call[objc.Void](u_, objc.Sel("setSessionDescription:"), value) } -// Creates a task that performs an HTTP request for uploading the specified file, then calls a handler upon completion. [Full Topic] +// The operation queue provided when this object was created. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411638-uploadtaskwithrequest?language=objc -func (u_ URLSession) UploadTaskWithRequestFromFileCompletionHandler(request IURLRequest, fileURL IURL, completionHandler func(data []byte, response URLResponse, error Error)) URLSessionUploadTask { - rv := objc.Call[URLSessionUploadTask](u_, objc.Sel("uploadTaskWithRequest:fromFile:completionHandler:"), request, fileURL, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411571-delegatequeue?language=objc +func (u_ URLSession) DelegateQueue() OperationQueue { + rv := objc.Call[OperationQueue](u_, objc.Sel("delegateQueue")) return rv } @@ -337,42 +264,3 @@ func (uc _URLSessionClass) SharedSession() URLSession { func URLSession_SharedSession() URLSession { return URLSessionClass.SharedSession() } - -// The delegate assigned when this object was created. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411530-delegate?language=objc -func (u_ URLSession) Delegate() URLSessionDelegateObject { - rv := objc.Call[URLSessionDelegateObject](u_, objc.Sel("delegate")) - return rv -} - -// The operation queue provided when this object was created. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411571-delegatequeue?language=objc -func (u_ URLSession) DelegateQueue() OperationQueue { - rv := objc.Call[OperationQueue](u_, objc.Sel("delegateQueue")) - return rv -} - -// An app-defined descriptive label for the session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1408277-sessiondescription?language=objc -func (u_ URLSession) SessionDescription() string { - rv := objc.Call[string](u_, objc.Sel("sessionDescription")) - return rv -} - -// An app-defined descriptive label for the session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1408277-sessiondescription?language=objc -func (u_ URLSession) SetSessionDescription(value string) { - objc.Call[objc.Void](u_, objc.Sel("setSessionDescription:"), value) -} - -// A copy of the configuration object for this session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsession/1411477-configuration?language=objc -func (u_ URLSession) Configuration() URLSessionConfiguration { - rv := objc.Call[URLSessionConfiguration](u_, objc.Sel("configuration")) - return rv -} diff --git a/macos/foundation/url_session_configuration.gen.go b/macos/foundation/url_session_configuration.gen.go index 3ecf42bb..4c6eee55 100644 --- a/macos/foundation/url_session_configuration.gen.go +++ b/macos/foundation/url_session_configuration.gen.go @@ -18,51 +18,51 @@ type _URLSessionConfigurationClass struct { // An interface definition for the [URLSessionConfiguration] class. type IURLSessionConfiguration interface { objc.IObject - URLCredentialStorage() URLCredentialStorage - SetURLCredentialStorage(value IURLCredentialStorage) - TimeoutIntervalForRequest() TimeInterval - SetTimeoutIntervalForRequest(value TimeInterval) - AllowsExpensiveNetworkAccess() bool - SetAllowsExpensiveNetworkAccess(value bool) + SharedContainerIdentifier() string + SetSharedContainerIdentifier(value string) WaitsForConnectivity() bool SetWaitsForConnectivity(value bool) - ShouldUseExtendedBackgroundIdleMode() bool - SetShouldUseExtendedBackgroundIdleMode(value bool) - Identifier() string - ProtocolClasses() []objc.Class - SetProtocolClasses(value []objc.IClass) RequestCachePolicy() URLRequestCachePolicy SetRequestCachePolicy(value URLRequestCachePolicy) - HTTPMaximumConnectionsPerHost() int - SetHTTPMaximumConnectionsPerHost(value int) - AllowsConstrainedNetworkAccess() bool - SetAllowsConstrainedNetworkAccess(value bool) - TimeoutIntervalForResource() TimeInterval - SetTimeoutIntervalForResource(value TimeInterval) - NetworkServiceType() URLRequestNetworkServiceType - SetNetworkServiceType(value URLRequestNetworkServiceType) + ShouldUseExtendedBackgroundIdleMode() bool + SetShouldUseExtendedBackgroundIdleMode(value bool) + HTTPAdditionalHeaders() Dictionary + SetHTTPAdditionalHeaders(value Dictionary) AllowsCellularAccess() bool SetAllowsCellularAccess(value bool) - HTTPShouldUsePipelining() bool - SetHTTPShouldUsePipelining(value bool) - HTTPCookieAcceptPolicy() HTTPCookieAcceptPolicy - SetHTTPCookieAcceptPolicy(value HTTPCookieAcceptPolicy) HTTPCookieStorage() HTTPCookieStorage SetHTTPCookieStorage(value IHTTPCookieStorage) - ConnectionProxyDictionary() Dictionary - SetConnectionProxyDictionary(value Dictionary) - SessionSendsLaunchEvents() bool - SetSessionSendsLaunchEvents(value bool) + HTTPCookieAcceptPolicy() HTTPCookieAcceptPolicy + SetHTTPCookieAcceptPolicy(value HTTPCookieAcceptPolicy) URLCache() URLCache SetURLCache(value IURLCache) - HTTPAdditionalHeaders() Dictionary - SetHTTPAdditionalHeaders(value Dictionary) - SharedContainerIdentifier() string - SetSharedContainerIdentifier(value string) - HTTPShouldSetCookies() bool - SetHTTPShouldSetCookies(value bool) + TimeoutIntervalForRequest() TimeInterval + SetTimeoutIntervalForRequest(value TimeInterval) IsDiscretionary() bool SetDiscretionary(value bool) + AllowsExpensiveNetworkAccess() bool + SetAllowsExpensiveNetworkAccess(value bool) + AllowsConstrainedNetworkAccess() bool + SetAllowsConstrainedNetworkAccess(value bool) + ConnectionProxyDictionary() Dictionary + SetConnectionProxyDictionary(value Dictionary) + HTTPShouldSetCookies() bool + SetHTTPShouldSetCookies(value bool) + HTTPMaximumConnectionsPerHost() int + SetHTTPMaximumConnectionsPerHost(value int) + URLCredentialStorage() URLCredentialStorage + SetURLCredentialStorage(value IURLCredentialStorage) + ProtocolClasses() []objc.Class + SetProtocolClasses(value []objc.IClass) + NetworkServiceType() URLRequestNetworkServiceType + SetNetworkServiceType(value URLRequestNetworkServiceType) + HTTPShouldUsePipelining() bool + SetHTTPShouldUsePipelining(value bool) + SessionSendsLaunchEvents() bool + SetSessionSendsLaunchEvents(value bool) + Identifier() string + TimeoutIntervalForResource() TimeInterval + SetTimeoutIntervalForResource(value TimeInterval) } // A configuration object that defines behavior and policies for a URL session. [Full Topic] @@ -113,49 +113,19 @@ func URLSessionConfiguration_BackgroundSessionConfigurationWithIdentifier(identi return URLSessionConfigurationClass.BackgroundSessionConfigurationWithIdentifier(identifier) } -// A credential store that provides credentials for authentication. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410947-urlcredentialstorage?language=objc -func (u_ URLSessionConfiguration) URLCredentialStorage() URLCredentialStorage { - rv := objc.Call[URLCredentialStorage](u_, objc.Sel("URLCredentialStorage")) - return rv -} - -// A credential store that provides credentials for authentication. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410947-urlcredentialstorage?language=objc -func (u_ URLSessionConfiguration) SetURLCredentialStorage(value IURLCredentialStorage) { - objc.Call[objc.Void](u_, objc.Sel("setURLCredentialStorage:"), value) -} - -// The timeout interval to use when waiting for additional data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408259-timeoutintervalforrequest?language=objc -func (u_ URLSessionConfiguration) TimeoutIntervalForRequest() TimeInterval { - rv := objc.Call[TimeInterval](u_, objc.Sel("timeoutIntervalForRequest")) - return rv -} - -// The timeout interval to use when waiting for additional data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408259-timeoutintervalforrequest?language=objc -func (u_ URLSessionConfiguration) SetTimeoutIntervalForRequest(value TimeInterval) { - objc.Call[objc.Void](u_, objc.Sel("setTimeoutIntervalForRequest:"), value) -} - -// A Boolean value that indicates whether connections may use a network interface that the system considers expensive. [Full Topic] +// The identifier for the shared container into which files in background URL sessions should be downloaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/3235752-allowsexpensivenetworkaccess?language=objc -func (u_ URLSessionConfiguration) AllowsExpensiveNetworkAccess() bool { - rv := objc.Call[bool](u_, objc.Sel("allowsExpensiveNetworkAccess")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1409450-sharedcontaineridentifier?language=objc +func (u_ URLSessionConfiguration) SharedContainerIdentifier() string { + rv := objc.Call[string](u_, objc.Sel("sharedContainerIdentifier")) return rv } -// A Boolean value that indicates whether connections may use a network interface that the system considers expensive. [Full Topic] +// The identifier for the shared container into which files in background URL sessions should be downloaded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/3235752-allowsexpensivenetworkaccess?language=objc -func (u_ URLSessionConfiguration) SetAllowsExpensiveNetworkAccess(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setAllowsExpensiveNetworkAccess:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1409450-sharedcontaineridentifier?language=objc +func (u_ URLSessionConfiguration) SetSharedContainerIdentifier(value string) { + objc.Call[objc.Void](u_, objc.Sel("setSharedContainerIdentifier:"), value) } // A Boolean value that indicates whether the session should wait for connectivity to become available, or fail immediately. [Full Topic] @@ -173,6 +143,21 @@ func (u_ URLSessionConfiguration) SetWaitsForConnectivity(value bool) { objc.Call[objc.Void](u_, objc.Sel("setWaitsForConnectivity:"), value) } +// A predefined constant that determines when to return a response from the cache. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411655-requestcachepolicy?language=objc +func (u_ URLSessionConfiguration) RequestCachePolicy() URLRequestCachePolicy { + rv := objc.Call[URLRequestCachePolicy](u_, objc.Sel("requestCachePolicy")) + return rv +} + +// A predefined constant that determines when to return a response from the cache. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411655-requestcachepolicy?language=objc +func (u_ URLSessionConfiguration) SetRequestCachePolicy(value URLRequestCachePolicy) { + objc.Call[objc.Void](u_, objc.Sel("setRequestCachePolicy:"), value) +} + // A Boolean value that indicates whether TCP connections should be kept open when the app moves to the background. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1409517-shoulduseextendedbackgroundidlem?language=objc @@ -188,177 +173,169 @@ func (u_ URLSessionConfiguration) SetShouldUseExtendedBackgroundIdleMode(value b objc.Call[objc.Void](u_, objc.Sel("setShouldUseExtendedBackgroundIdleMode:"), value) } -// The background session identifier of the configuration object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408987-identifier?language=objc -func (u_ URLSessionConfiguration) Identifier() string { - rv := objc.Call[string](u_, objc.Sel("identifier")) - return rv -} - -// An array of extra protocol subclasses that handle requests in a session. [Full Topic] +// A dictionary of additional headers to send with requests. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411050-protocolclasses?language=objc -func (u_ URLSessionConfiguration) ProtocolClasses() []objc.Class { - rv := objc.Call[[]objc.Class](u_, objc.Sel("protocolClasses")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411532-httpadditionalheaders?language=objc +func (u_ URLSessionConfiguration) HTTPAdditionalHeaders() Dictionary { + rv := objc.Call[Dictionary](u_, objc.Sel("HTTPAdditionalHeaders")) return rv } -// An array of extra protocol subclasses that handle requests in a session. [Full Topic] +// A dictionary of additional headers to send with requests. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411050-protocolclasses?language=objc -func (u_ URLSessionConfiguration) SetProtocolClasses(value []objc.IClass) { - objc.Call[objc.Void](u_, objc.Sel("setProtocolClasses:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411532-httpadditionalheaders?language=objc +func (u_ URLSessionConfiguration) SetHTTPAdditionalHeaders(value Dictionary) { + objc.Call[objc.Void](u_, objc.Sel("setHTTPAdditionalHeaders:"), value) } -// A predefined constant that determines when to return a response from the cache. [Full Topic] +// A Boolean value that determines whether connections should be made over a cellular network. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411655-requestcachepolicy?language=objc -func (u_ URLSessionConfiguration) RequestCachePolicy() URLRequestCachePolicy { - rv := objc.Call[URLRequestCachePolicy](u_, objc.Sel("requestCachePolicy")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1409406-allowscellularaccess?language=objc +func (u_ URLSessionConfiguration) AllowsCellularAccess() bool { + rv := objc.Call[bool](u_, objc.Sel("allowsCellularAccess")) return rv } -// A predefined constant that determines when to return a response from the cache. [Full Topic] +// A Boolean value that determines whether connections should be made over a cellular network. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411655-requestcachepolicy?language=objc -func (u_ URLSessionConfiguration) SetRequestCachePolicy(value URLRequestCachePolicy) { - objc.Call[objc.Void](u_, objc.Sel("setRequestCachePolicy:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1409406-allowscellularaccess?language=objc +func (u_ URLSessionConfiguration) SetAllowsCellularAccess(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setAllowsCellularAccess:"), value) } -// The maximum number of simultaneous connections to make to a given host. [Full Topic] +// A default session configuration object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1407597-httpmaximumconnectionsperhost?language=objc -func (u_ URLSessionConfiguration) HTTPMaximumConnectionsPerHost() int { - rv := objc.Call[int](u_, objc.Sel("HTTPMaximumConnectionsPerHost")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411560-defaultsessionconfiguration?language=objc +func (uc _URLSessionConfigurationClass) DefaultSessionConfiguration() URLSessionConfiguration { + rv := objc.Call[URLSessionConfiguration](uc, objc.Sel("defaultSessionConfiguration")) return rv } -// The maximum number of simultaneous connections to make to a given host. [Full Topic] +// A default session configuration object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1407597-httpmaximumconnectionsperhost?language=objc -func (u_ URLSessionConfiguration) SetHTTPMaximumConnectionsPerHost(value int) { - objc.Call[objc.Void](u_, objc.Sel("setHTTPMaximumConnectionsPerHost:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411560-defaultsessionconfiguration?language=objc +func URLSessionConfiguration_DefaultSessionConfiguration() URLSessionConfiguration { + return URLSessionConfigurationClass.DefaultSessionConfiguration() } -// A Boolean value that indicates whether connections may use the network when the user has specified Low Data Mode. [Full Topic] +// The cookie store for storing cookies within this session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/3235751-allowsconstrainednetworkaccess?language=objc -func (u_ URLSessionConfiguration) AllowsConstrainedNetworkAccess() bool { - rv := objc.Call[bool](u_, objc.Sel("allowsConstrainedNetworkAccess")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411599-httpcookiestorage?language=objc +func (u_ URLSessionConfiguration) HTTPCookieStorage() HTTPCookieStorage { + rv := objc.Call[HTTPCookieStorage](u_, objc.Sel("HTTPCookieStorage")) return rv } -// A Boolean value that indicates whether connections may use the network when the user has specified Low Data Mode. [Full Topic] +// The cookie store for storing cookies within this session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/3235751-allowsconstrainednetworkaccess?language=objc -func (u_ URLSessionConfiguration) SetAllowsConstrainedNetworkAccess(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setAllowsConstrainedNetworkAccess:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411599-httpcookiestorage?language=objc +func (u_ URLSessionConfiguration) SetHTTPCookieStorage(value IHTTPCookieStorage) { + objc.Call[objc.Void](u_, objc.Sel("setHTTPCookieStorage:"), value) } -// The maximum amount of time that a resource request should be allowed to take. [Full Topic] +// A policy constant that determines when cookies should be accepted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408153-timeoutintervalforresource?language=objc -func (u_ URLSessionConfiguration) TimeoutIntervalForResource() TimeInterval { - rv := objc.Call[TimeInterval](u_, objc.Sel("timeoutIntervalForResource")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408933-httpcookieacceptpolicy?language=objc +func (u_ URLSessionConfiguration) HTTPCookieAcceptPolicy() HTTPCookieAcceptPolicy { + rv := objc.Call[HTTPCookieAcceptPolicy](u_, objc.Sel("HTTPCookieAcceptPolicy")) return rv } -// The maximum amount of time that a resource request should be allowed to take. [Full Topic] +// A policy constant that determines when cookies should be accepted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408153-timeoutintervalforresource?language=objc -func (u_ URLSessionConfiguration) SetTimeoutIntervalForResource(value TimeInterval) { - objc.Call[objc.Void](u_, objc.Sel("setTimeoutIntervalForResource:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408933-httpcookieacceptpolicy?language=objc +func (u_ URLSessionConfiguration) SetHTTPCookieAcceptPolicy(value HTTPCookieAcceptPolicy) { + objc.Call[objc.Void](u_, objc.Sel("setHTTPCookieAcceptPolicy:"), value) } -// The type of network service for all tasks within network sessions to enable Cellular Network Slicing. [Full Topic] +// The URL cache for providing cached responses to requests within the session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411606-networkservicetype?language=objc -func (u_ URLSessionConfiguration) NetworkServiceType() URLRequestNetworkServiceType { - rv := objc.Call[URLRequestNetworkServiceType](u_, objc.Sel("networkServiceType")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410148-urlcache?language=objc +func (u_ URLSessionConfiguration) URLCache() URLCache { + rv := objc.Call[URLCache](u_, objc.Sel("URLCache")) return rv } -// The type of network service for all tasks within network sessions to enable Cellular Network Slicing. [Full Topic] +// The URL cache for providing cached responses to requests within the session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411606-networkservicetype?language=objc -func (u_ URLSessionConfiguration) SetNetworkServiceType(value URLRequestNetworkServiceType) { - objc.Call[objc.Void](u_, objc.Sel("setNetworkServiceType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410148-urlcache?language=objc +func (u_ URLSessionConfiguration) SetURLCache(value IURLCache) { + objc.Call[objc.Void](u_, objc.Sel("setURLCache:"), value) } -// A default session configuration object. [Full Topic] +// The timeout interval to use when waiting for additional data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411560-defaultsessionconfiguration?language=objc -func (uc _URLSessionConfigurationClass) DefaultSessionConfiguration() URLSessionConfiguration { - rv := objc.Call[URLSessionConfiguration](uc, objc.Sel("defaultSessionConfiguration")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408259-timeoutintervalforrequest?language=objc +func (u_ URLSessionConfiguration) TimeoutIntervalForRequest() TimeInterval { + rv := objc.Call[TimeInterval](u_, objc.Sel("timeoutIntervalForRequest")) return rv } -// A default session configuration object. [Full Topic] +// The timeout interval to use when waiting for additional data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411560-defaultsessionconfiguration?language=objc -func URLSessionConfiguration_DefaultSessionConfiguration() URLSessionConfiguration { - return URLSessionConfigurationClass.DefaultSessionConfiguration() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408259-timeoutintervalforrequest?language=objc +func (u_ URLSessionConfiguration) SetTimeoutIntervalForRequest(value TimeInterval) { + objc.Call[objc.Void](u_, objc.Sel("setTimeoutIntervalForRequest:"), value) } -// A Boolean value that determines whether connections should be made over a cellular network. [Full Topic] +// A Boolean value that determines whether background tasks can be scheduled at the discretion of the system for optimal performance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1409406-allowscellularaccess?language=objc -func (u_ URLSessionConfiguration) AllowsCellularAccess() bool { - rv := objc.Call[bool](u_, objc.Sel("allowsCellularAccess")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411552-discretionary?language=objc +func (u_ URLSessionConfiguration) IsDiscretionary() bool { + rv := objc.Call[bool](u_, objc.Sel("isDiscretionary")) return rv } -// A Boolean value that determines whether connections should be made over a cellular network. [Full Topic] +// A Boolean value that determines whether background tasks can be scheduled at the discretion of the system for optimal performance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1409406-allowscellularaccess?language=objc -func (u_ URLSessionConfiguration) SetAllowsCellularAccess(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setAllowsCellularAccess:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411552-discretionary?language=objc +func (u_ URLSessionConfiguration) SetDiscretionary(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setDiscretionary:"), value) } -// A Boolean value that determines whether the session should use HTTP pipelining. [Full Topic] +// A session configuration that uses no persistent storage for caches, cookies, or credentials. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411657-httpshouldusepipelining?language=objc -func (u_ URLSessionConfiguration) HTTPShouldUsePipelining() bool { - rv := objc.Call[bool](u_, objc.Sel("HTTPShouldUsePipelining")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410529-ephemeralsessionconfiguration?language=objc +func (uc _URLSessionConfigurationClass) EphemeralSessionConfiguration() URLSessionConfiguration { + rv := objc.Call[URLSessionConfiguration](uc, objc.Sel("ephemeralSessionConfiguration")) return rv } -// A Boolean value that determines whether the session should use HTTP pipelining. [Full Topic] +// A session configuration that uses no persistent storage for caches, cookies, or credentials. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411657-httpshouldusepipelining?language=objc -func (u_ URLSessionConfiguration) SetHTTPShouldUsePipelining(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setHTTPShouldUsePipelining:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410529-ephemeralsessionconfiguration?language=objc +func URLSessionConfiguration_EphemeralSessionConfiguration() URLSessionConfiguration { + return URLSessionConfigurationClass.EphemeralSessionConfiguration() } -// A policy constant that determines when cookies should be accepted. [Full Topic] +// A Boolean value that indicates whether connections may use a network interface that the system considers expensive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408933-httpcookieacceptpolicy?language=objc -func (u_ URLSessionConfiguration) HTTPCookieAcceptPolicy() HTTPCookieAcceptPolicy { - rv := objc.Call[HTTPCookieAcceptPolicy](u_, objc.Sel("HTTPCookieAcceptPolicy")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/3235752-allowsexpensivenetworkaccess?language=objc +func (u_ URLSessionConfiguration) AllowsExpensiveNetworkAccess() bool { + rv := objc.Call[bool](u_, objc.Sel("allowsExpensiveNetworkAccess")) return rv } -// A policy constant that determines when cookies should be accepted. [Full Topic] +// A Boolean value that indicates whether connections may use a network interface that the system considers expensive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408933-httpcookieacceptpolicy?language=objc -func (u_ URLSessionConfiguration) SetHTTPCookieAcceptPolicy(value HTTPCookieAcceptPolicy) { - objc.Call[objc.Void](u_, objc.Sel("setHTTPCookieAcceptPolicy:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/3235752-allowsexpensivenetworkaccess?language=objc +func (u_ URLSessionConfiguration) SetAllowsExpensiveNetworkAccess(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setAllowsExpensiveNetworkAccess:"), value) } -// The cookie store for storing cookies within this session. [Full Topic] +// A Boolean value that indicates whether connections may use the network when the user has specified Low Data Mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411599-httpcookiestorage?language=objc -func (u_ URLSessionConfiguration) HTTPCookieStorage() HTTPCookieStorage { - rv := objc.Call[HTTPCookieStorage](u_, objc.Sel("HTTPCookieStorage")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/3235751-allowsconstrainednetworkaccess?language=objc +func (u_ URLSessionConfiguration) AllowsConstrainedNetworkAccess() bool { + rv := objc.Call[bool](u_, objc.Sel("allowsConstrainedNetworkAccess")) return rv } -// The cookie store for storing cookies within this session. [Full Topic] +// A Boolean value that indicates whether connections may use the network when the user has specified Low Data Mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411599-httpcookiestorage?language=objc -func (u_ URLSessionConfiguration) SetHTTPCookieStorage(value IHTTPCookieStorage) { - objc.Call[objc.Void](u_, objc.Sel("setHTTPCookieStorage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/3235751-allowsconstrainednetworkaccess?language=objc +func (u_ URLSessionConfiguration) SetAllowsConstrainedNetworkAccess(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setAllowsConstrainedNetworkAccess:"), value) } // A dictionary containing information about the proxy to use within this session. [Full Topic] @@ -376,107 +353,130 @@ func (u_ URLSessionConfiguration) SetConnectionProxyDictionary(value Dictionary) objc.Call[objc.Void](u_, objc.Sel("setConnectionProxyDictionary:"), value) } -// A Boolean value that indicates whether the app should be resumed or launched in the background when transfers finish. [Full Topic] +// A Boolean value that determines whether requests should contain cookies from the cookie store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1617174-sessionsendslaunchevents?language=objc -func (u_ URLSessionConfiguration) SessionSendsLaunchEvents() bool { - rv := objc.Call[bool](u_, objc.Sel("sessionSendsLaunchEvents")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411589-httpshouldsetcookies?language=objc +func (u_ URLSessionConfiguration) HTTPShouldSetCookies() bool { + rv := objc.Call[bool](u_, objc.Sel("HTTPShouldSetCookies")) return rv } -// A Boolean value that indicates whether the app should be resumed or launched in the background when transfers finish. [Full Topic] +// A Boolean value that determines whether requests should contain cookies from the cookie store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1617174-sessionsendslaunchevents?language=objc -func (u_ URLSessionConfiguration) SetSessionSendsLaunchEvents(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setSessionSendsLaunchEvents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411589-httpshouldsetcookies?language=objc +func (u_ URLSessionConfiguration) SetHTTPShouldSetCookies(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setHTTPShouldSetCookies:"), value) } -// The URL cache for providing cached responses to requests within the session. [Full Topic] +// The maximum number of simultaneous connections to make to a given host. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410148-urlcache?language=objc -func (u_ URLSessionConfiguration) URLCache() URLCache { - rv := objc.Call[URLCache](u_, objc.Sel("URLCache")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1407597-httpmaximumconnectionsperhost?language=objc +func (u_ URLSessionConfiguration) HTTPMaximumConnectionsPerHost() int { + rv := objc.Call[int](u_, objc.Sel("HTTPMaximumConnectionsPerHost")) return rv } -// The URL cache for providing cached responses to requests within the session. [Full Topic] +// The maximum number of simultaneous connections to make to a given host. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410148-urlcache?language=objc -func (u_ URLSessionConfiguration) SetURLCache(value IURLCache) { - objc.Call[objc.Void](u_, objc.Sel("setURLCache:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1407597-httpmaximumconnectionsperhost?language=objc +func (u_ URLSessionConfiguration) SetHTTPMaximumConnectionsPerHost(value int) { + objc.Call[objc.Void](u_, objc.Sel("setHTTPMaximumConnectionsPerHost:"), value) } -// A dictionary of additional headers to send with requests. [Full Topic] +// A credential store that provides credentials for authentication. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411532-httpadditionalheaders?language=objc -func (u_ URLSessionConfiguration) HTTPAdditionalHeaders() Dictionary { - rv := objc.Call[Dictionary](u_, objc.Sel("HTTPAdditionalHeaders")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410947-urlcredentialstorage?language=objc +func (u_ URLSessionConfiguration) URLCredentialStorage() URLCredentialStorage { + rv := objc.Call[URLCredentialStorage](u_, objc.Sel("URLCredentialStorage")) return rv } -// A dictionary of additional headers to send with requests. [Full Topic] +// A credential store that provides credentials for authentication. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411532-httpadditionalheaders?language=objc -func (u_ URLSessionConfiguration) SetHTTPAdditionalHeaders(value Dictionary) { - objc.Call[objc.Void](u_, objc.Sel("setHTTPAdditionalHeaders:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410947-urlcredentialstorage?language=objc +func (u_ URLSessionConfiguration) SetURLCredentialStorage(value IURLCredentialStorage) { + objc.Call[objc.Void](u_, objc.Sel("setURLCredentialStorage:"), value) } -// The identifier for the shared container into which files in background URL sessions should be downloaded. [Full Topic] +// An array of extra protocol subclasses that handle requests in a session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1409450-sharedcontaineridentifier?language=objc -func (u_ URLSessionConfiguration) SharedContainerIdentifier() string { - rv := objc.Call[string](u_, objc.Sel("sharedContainerIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411050-protocolclasses?language=objc +func (u_ URLSessionConfiguration) ProtocolClasses() []objc.Class { + rv := objc.Call[[]objc.Class](u_, objc.Sel("protocolClasses")) return rv } -// The identifier for the shared container into which files in background URL sessions should be downloaded. [Full Topic] +// An array of extra protocol subclasses that handle requests in a session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1409450-sharedcontaineridentifier?language=objc -func (u_ URLSessionConfiguration) SetSharedContainerIdentifier(value string) { - objc.Call[objc.Void](u_, objc.Sel("setSharedContainerIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411050-protocolclasses?language=objc +func (u_ URLSessionConfiguration) SetProtocolClasses(value []objc.IClass) { + objc.Call[objc.Void](u_, objc.Sel("setProtocolClasses:"), value) } -// A Boolean value that determines whether requests should contain cookies from the cookie store. [Full Topic] +// The type of network service for all tasks within sessions based on this configuration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411589-httpshouldsetcookies?language=objc -func (u_ URLSessionConfiguration) HTTPShouldSetCookies() bool { - rv := objc.Call[bool](u_, objc.Sel("HTTPShouldSetCookies")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411606-networkservicetype?language=objc +func (u_ URLSessionConfiguration) NetworkServiceType() URLRequestNetworkServiceType { + rv := objc.Call[URLRequestNetworkServiceType](u_, objc.Sel("networkServiceType")) return rv } -// A Boolean value that determines whether requests should contain cookies from the cookie store. [Full Topic] +// The type of network service for all tasks within sessions based on this configuration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411589-httpshouldsetcookies?language=objc -func (u_ URLSessionConfiguration) SetHTTPShouldSetCookies(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setHTTPShouldSetCookies:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411606-networkservicetype?language=objc +func (u_ URLSessionConfiguration) SetNetworkServiceType(value URLRequestNetworkServiceType) { + objc.Call[objc.Void](u_, objc.Sel("setNetworkServiceType:"), value) } -// A Boolean value that determines whether background tasks can be scheduled at the discretion of the system for optimal performance. [Full Topic] +// A Boolean value that determines whether the session should use HTTP pipelining. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411552-discretionary?language=objc -func (u_ URLSessionConfiguration) IsDiscretionary() bool { - rv := objc.Call[bool](u_, objc.Sel("isDiscretionary")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411657-httpshouldusepipelining?language=objc +func (u_ URLSessionConfiguration) HTTPShouldUsePipelining() bool { + rv := objc.Call[bool](u_, objc.Sel("HTTPShouldUsePipelining")) return rv } -// A Boolean value that determines whether background tasks can be scheduled at the discretion of the system for optimal performance. [Full Topic] +// A Boolean value that determines whether the session should use HTTP pipelining. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411552-discretionary?language=objc -func (u_ URLSessionConfiguration) SetDiscretionary(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setDiscretionary:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411657-httpshouldusepipelining?language=objc +func (u_ URLSessionConfiguration) SetHTTPShouldUsePipelining(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setHTTPShouldUsePipelining:"), value) } -// A session configuration that uses no persistent storage for caches, cookies, or credentials. [Full Topic] +// A Boolean value that indicates whether the app should be resumed or launched in the background when transfers finish. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410529-ephemeralsessionconfiguration?language=objc -func (uc _URLSessionConfigurationClass) EphemeralSessionConfiguration() URLSessionConfiguration { - rv := objc.Call[URLSessionConfiguration](uc, objc.Sel("ephemeralSessionConfiguration")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1617174-sessionsendslaunchevents?language=objc +func (u_ URLSessionConfiguration) SessionSendsLaunchEvents() bool { + rv := objc.Call[bool](u_, objc.Sel("sessionSendsLaunchEvents")) return rv } -// A session configuration that uses no persistent storage for caches, cookies, or credentials. [Full Topic] +// A Boolean value that indicates whether the app should be resumed or launched in the background when transfers finish. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410529-ephemeralsessionconfiguration?language=objc -func URLSessionConfiguration_EphemeralSessionConfiguration() URLSessionConfiguration { - return URLSessionConfigurationClass.EphemeralSessionConfiguration() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1617174-sessionsendslaunchevents?language=objc +func (u_ URLSessionConfiguration) SetSessionSendsLaunchEvents(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setSessionSendsLaunchEvents:"), value) +} + +// The background session identifier of the configuration object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408987-identifier?language=objc +func (u_ URLSessionConfiguration) Identifier() string { + rv := objc.Call[string](u_, objc.Sel("identifier")) + return rv +} + +// The maximum amount of time that a resource request should be allowed to take. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408153-timeoutintervalforresource?language=objc +func (u_ URLSessionConfiguration) TimeoutIntervalForResource() TimeInterval { + rv := objc.Call[TimeInterval](u_, objc.Sel("timeoutIntervalForResource")) + return rv +} + +// The maximum amount of time that a resource request should be allowed to take. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408153-timeoutintervalforresource?language=objc +func (u_ URLSessionConfiguration) SetTimeoutIntervalForResource(value TimeInterval) { + objc.Call[objc.Void](u_, objc.Sel("setTimeoutIntervalForResource:"), value) } diff --git a/macos/foundation/url_session_data_delegate.gen.go b/macos/foundation/url_session_data_delegate.gen.go index 50060788..2b53622f 100644 --- a/macos/foundation/url_session_data_delegate.gen.go +++ b/macos/foundation/url_session_data_delegate.gen.go @@ -10,53 +10,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate?language=objc type PURLSessionDataDelegate interface { - // optional - URLSessionDataTaskWillCacheResponseCompletionHandler(session URLSession, dataTask URLSessionDataTask, proposedResponse CachedURLResponse, completionHandler func(cachedResponse CachedURLResponse)) - HasURLSessionDataTaskWillCacheResponseCompletionHandler() bool - // optional URLSessionDataTaskDidReceiveData(session URLSession, dataTask URLSessionDataTask, data []byte) HasURLSessionDataTaskDidReceiveData() bool - - // optional - URLSessionDataTaskDidReceiveResponseCompletionHandler(session URLSession, dataTask URLSessionDataTask, response URLResponse, completionHandler func(disposition URLSessionResponseDisposition)) - HasURLSessionDataTaskDidReceiveResponseCompletionHandler() bool - - // optional - URLSessionDataTaskDidBecomeStreamTask(session URLSession, dataTask URLSessionDataTask, streamTask URLSessionStreamTask) - HasURLSessionDataTaskDidBecomeStreamTask() bool - - // optional - URLSessionDataTaskDidBecomeDownloadTask(session URLSession, dataTask URLSessionDataTask, downloadTask URLSessionDownloadTask) - HasURLSessionDataTaskDidBecomeDownloadTask() bool } // A delegate implementation builder for the [PURLSessionDataDelegate] protocol. type URLSessionDataDelegate struct { - _URLSessionDataTaskWillCacheResponseCompletionHandler func(session URLSession, dataTask URLSessionDataTask, proposedResponse CachedURLResponse, completionHandler func(cachedResponse CachedURLResponse)) - _URLSessionDataTaskDidReceiveData func(session URLSession, dataTask URLSessionDataTask, data []byte) - _URLSessionDataTaskDidReceiveResponseCompletionHandler func(session URLSession, dataTask URLSessionDataTask, response URLResponse, completionHandler func(disposition URLSessionResponseDisposition)) - _URLSessionDataTaskDidBecomeStreamTask func(session URLSession, dataTask URLSessionDataTask, streamTask URLSessionStreamTask) - _URLSessionDataTaskDidBecomeDownloadTask func(session URLSession, dataTask URLSessionDataTask, downloadTask URLSessionDownloadTask) -} - -func (di *URLSessionDataDelegate) HasURLSessionDataTaskWillCacheResponseCompletionHandler() bool { - return di._URLSessionDataTaskWillCacheResponseCompletionHandler != nil + _URLSessionDataTaskDidReceiveData func(session URLSession, dataTask URLSessionDataTask, data []byte) } -// Asks the delegate whether the data (or upload) task should store the response in the cache. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1411612-urlsession?language=objc -func (di *URLSessionDataDelegate) SetURLSessionDataTaskWillCacheResponseCompletionHandler(f func(session URLSession, dataTask URLSessionDataTask, proposedResponse CachedURLResponse, completionHandler func(cachedResponse CachedURLResponse))) { - di._URLSessionDataTaskWillCacheResponseCompletionHandler = f -} - -// Asks the delegate whether the data (or upload) task should store the response in the cache. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1411612-urlsession?language=objc -func (di *URLSessionDataDelegate) URLSessionDataTaskWillCacheResponseCompletionHandler(session URLSession, dataTask URLSessionDataTask, proposedResponse CachedURLResponse, completionHandler func(cachedResponse CachedURLResponse)) { - di._URLSessionDataTaskWillCacheResponseCompletionHandler(session, dataTask, proposedResponse, completionHandler) -} func (di *URLSessionDataDelegate) HasURLSessionDataTaskDidReceiveData() bool { return di._URLSessionDataTaskDidReceiveData != nil } @@ -74,57 +37,6 @@ func (di *URLSessionDataDelegate) SetURLSessionDataTaskDidReceiveData(f func(ses func (di *URLSessionDataDelegate) URLSessionDataTaskDidReceiveData(session URLSession, dataTask URLSessionDataTask, data []byte) { di._URLSessionDataTaskDidReceiveData(session, dataTask, data) } -func (di *URLSessionDataDelegate) HasURLSessionDataTaskDidReceiveResponseCompletionHandler() bool { - return di._URLSessionDataTaskDidReceiveResponseCompletionHandler != nil -} - -// Tells the delegate that the data task received the initial reply (headers) from the server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1410027-urlsession?language=objc -func (di *URLSessionDataDelegate) SetURLSessionDataTaskDidReceiveResponseCompletionHandler(f func(session URLSession, dataTask URLSessionDataTask, response URLResponse, completionHandler func(disposition URLSessionResponseDisposition))) { - di._URLSessionDataTaskDidReceiveResponseCompletionHandler = f -} - -// Tells the delegate that the data task received the initial reply (headers) from the server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1410027-urlsession?language=objc -func (di *URLSessionDataDelegate) URLSessionDataTaskDidReceiveResponseCompletionHandler(session URLSession, dataTask URLSessionDataTask, response URLResponse, completionHandler func(disposition URLSessionResponseDisposition)) { - di._URLSessionDataTaskDidReceiveResponseCompletionHandler(session, dataTask, response, completionHandler) -} -func (di *URLSessionDataDelegate) HasURLSessionDataTaskDidBecomeStreamTask() bool { - return di._URLSessionDataTaskDidBecomeStreamTask != nil -} - -// Tells the delegate that the data task was changed to a stream task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1411648-urlsession?language=objc -func (di *URLSessionDataDelegate) SetURLSessionDataTaskDidBecomeStreamTask(f func(session URLSession, dataTask URLSessionDataTask, streamTask URLSessionStreamTask)) { - di._URLSessionDataTaskDidBecomeStreamTask = f -} - -// Tells the delegate that the data task was changed to a stream task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1411648-urlsession?language=objc -func (di *URLSessionDataDelegate) URLSessionDataTaskDidBecomeStreamTask(session URLSession, dataTask URLSessionDataTask, streamTask URLSessionStreamTask) { - di._URLSessionDataTaskDidBecomeStreamTask(session, dataTask, streamTask) -} -func (di *URLSessionDataDelegate) HasURLSessionDataTaskDidBecomeDownloadTask() bool { - return di._URLSessionDataTaskDidBecomeDownloadTask != nil -} - -// Tells the delegate that the data task was changed to a download task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1409936-urlsession?language=objc -func (di *URLSessionDataDelegate) SetURLSessionDataTaskDidBecomeDownloadTask(f func(session URLSession, dataTask URLSessionDataTask, downloadTask URLSessionDownloadTask)) { - di._URLSessionDataTaskDidBecomeDownloadTask = f -} - -// Tells the delegate that the data task was changed to a download task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1409936-urlsession?language=objc -func (di *URLSessionDataDelegate) URLSessionDataTaskDidBecomeDownloadTask(session URLSession, dataTask URLSessionDataTask, downloadTask URLSessionDownloadTask) { - di._URLSessionDataTaskDidBecomeDownloadTask(session, dataTask, downloadTask) -} // ensure impl type implements protocol interface var _ PURLSessionDataDelegate = (*URLSessionDataDelegateObject)(nil) @@ -134,17 +46,6 @@ type URLSessionDataDelegateObject struct { objc.Object } -func (u_ URLSessionDataDelegateObject) HasURLSessionDataTaskWillCacheResponseCompletionHandler() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:dataTask:willCacheResponse:completionHandler:")) -} - -// Asks the delegate whether the data (or upload) task should store the response in the cache. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1411612-urlsession?language=objc -func (u_ URLSessionDataDelegateObject) URLSessionDataTaskWillCacheResponseCompletionHandler(session URLSession, dataTask URLSessionDataTask, proposedResponse CachedURLResponse, completionHandler func(cachedResponse CachedURLResponse)) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:dataTask:willCacheResponse:completionHandler:"), session, dataTask, proposedResponse, completionHandler) -} - func (u_ URLSessionDataDelegateObject) HasURLSessionDataTaskDidReceiveData() bool { return u_.RespondsToSelector(objc.Sel("URLSession:dataTask:didReceiveData:")) } @@ -155,36 +56,3 @@ func (u_ URLSessionDataDelegateObject) HasURLSessionDataTaskDidReceiveData() boo func (u_ URLSessionDataDelegateObject) URLSessionDataTaskDidReceiveData(session URLSession, dataTask URLSessionDataTask, data []byte) { objc.Call[objc.Void](u_, objc.Sel("URLSession:dataTask:didReceiveData:"), session, dataTask, data) } - -func (u_ URLSessionDataDelegateObject) HasURLSessionDataTaskDidReceiveResponseCompletionHandler() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:dataTask:didReceiveResponse:completionHandler:")) -} - -// Tells the delegate that the data task received the initial reply (headers) from the server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1410027-urlsession?language=objc -func (u_ URLSessionDataDelegateObject) URLSessionDataTaskDidReceiveResponseCompletionHandler(session URLSession, dataTask URLSessionDataTask, response URLResponse, completionHandler func(disposition URLSessionResponseDisposition)) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:dataTask:didReceiveResponse:completionHandler:"), session, dataTask, response, completionHandler) -} - -func (u_ URLSessionDataDelegateObject) HasURLSessionDataTaskDidBecomeStreamTask() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:dataTask:didBecomeStreamTask:")) -} - -// Tells the delegate that the data task was changed to a stream task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1411648-urlsession?language=objc -func (u_ URLSessionDataDelegateObject) URLSessionDataTaskDidBecomeStreamTask(session URLSession, dataTask URLSessionDataTask, streamTask URLSessionStreamTask) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:dataTask:didBecomeStreamTask:"), session, dataTask, streamTask) -} - -func (u_ URLSessionDataDelegateObject) HasURLSessionDataTaskDidBecomeDownloadTask() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:dataTask:didBecomeDownloadTask:")) -} - -// Tells the delegate that the data task was changed to a download task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1409936-urlsession?language=objc -func (u_ URLSessionDataDelegateObject) URLSessionDataTaskDidBecomeDownloadTask(session URLSession, dataTask URLSessionDataTask, downloadTask URLSessionDownloadTask) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:dataTask:didBecomeDownloadTask:"), session, dataTask, downloadTask) -} diff --git a/macos/foundation/url_session_delegate.gen.go b/macos/foundation/url_session_delegate.gen.go index 97747fef..bcb8abe5 100644 --- a/macos/foundation/url_session_delegate.gen.go +++ b/macos/foundation/url_session_delegate.gen.go @@ -10,60 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate?language=objc type PURLSessionDelegate interface { - // optional - URLSessionDidBecomeInvalidWithError(session URLSession, error Error) - HasURLSessionDidBecomeInvalidWithError() bool - - // optional - URLSessionDidReceiveChallengeCompletionHandler(session URLSession, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential)) - HasURLSessionDidReceiveChallengeCompletionHandler() bool - // optional URLSessionDidFinishEventsForBackgroundURLSession(session URLSession) HasURLSessionDidFinishEventsForBackgroundURLSession() bool + + // optional + URLSessionDidBecomeInvalidWithError(session URLSession, error Error) + HasURLSessionDidBecomeInvalidWithError() bool } // A delegate implementation builder for the [PURLSessionDelegate] protocol. type URLSessionDelegate struct { - _URLSessionDidBecomeInvalidWithError func(session URLSession, error Error) - _URLSessionDidReceiveChallengeCompletionHandler func(session URLSession, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential)) _URLSessionDidFinishEventsForBackgroundURLSession func(session URLSession) + _URLSessionDidBecomeInvalidWithError func(session URLSession, error Error) } -func (di *URLSessionDelegate) HasURLSessionDidBecomeInvalidWithError() bool { - return di._URLSessionDidBecomeInvalidWithError != nil -} - -// Tells the URL session that the session has been invalidated. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate/1407776-urlsession?language=objc -func (di *URLSessionDelegate) SetURLSessionDidBecomeInvalidWithError(f func(session URLSession, error Error)) { - di._URLSessionDidBecomeInvalidWithError = f -} - -// Tells the URL session that the session has been invalidated. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate/1407776-urlsession?language=objc -func (di *URLSessionDelegate) URLSessionDidBecomeInvalidWithError(session URLSession, error Error) { - di._URLSessionDidBecomeInvalidWithError(session, error) -} -func (di *URLSessionDelegate) HasURLSessionDidReceiveChallengeCompletionHandler() bool { - return di._URLSessionDidReceiveChallengeCompletionHandler != nil -} - -// Requests credentials from the delegate in response to a session-level authentication request from the remote server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate/1409308-urlsession?language=objc -func (di *URLSessionDelegate) SetURLSessionDidReceiveChallengeCompletionHandler(f func(session URLSession, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential))) { - di._URLSessionDidReceiveChallengeCompletionHandler = f -} - -// Requests credentials from the delegate in response to a session-level authentication request from the remote server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate/1409308-urlsession?language=objc -func (di *URLSessionDelegate) URLSessionDidReceiveChallengeCompletionHandler(session URLSession, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential)) { - di._URLSessionDidReceiveChallengeCompletionHandler(session, challenge, completionHandler) -} func (di *URLSessionDelegate) HasURLSessionDidFinishEventsForBackgroundURLSession() bool { return di._URLSessionDidFinishEventsForBackgroundURLSession != nil } @@ -81,35 +42,30 @@ func (di *URLSessionDelegate) SetURLSessionDidFinishEventsForBackgroundURLSessio func (di *URLSessionDelegate) URLSessionDidFinishEventsForBackgroundURLSession(session URLSession) { di._URLSessionDidFinishEventsForBackgroundURLSession(session) } - -// ensure impl type implements protocol interface -var _ PURLSessionDelegate = (*URLSessionDelegateObject)(nil) - -// A concrete type for the [PURLSessionDelegate] protocol. -type URLSessionDelegateObject struct { - objc.Object +func (di *URLSessionDelegate) HasURLSessionDidBecomeInvalidWithError() bool { + return di._URLSessionDidBecomeInvalidWithError != nil } -func (u_ URLSessionDelegateObject) HasURLSessionDidBecomeInvalidWithError() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:didBecomeInvalidWithError:")) +// Tells the URL session that the session has been invalidated. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate/1407776-urlsession?language=objc +func (di *URLSessionDelegate) SetURLSessionDidBecomeInvalidWithError(f func(session URLSession, error Error)) { + di._URLSessionDidBecomeInvalidWithError = f } // Tells the URL session that the session has been invalidated. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate/1407776-urlsession?language=objc -func (u_ URLSessionDelegateObject) URLSessionDidBecomeInvalidWithError(session URLSession, error Error) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:didBecomeInvalidWithError:"), session, error) +func (di *URLSessionDelegate) URLSessionDidBecomeInvalidWithError(session URLSession, error Error) { + di._URLSessionDidBecomeInvalidWithError(session, error) } -func (u_ URLSessionDelegateObject) HasURLSessionDidReceiveChallengeCompletionHandler() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:didReceiveChallenge:completionHandler:")) -} +// ensure impl type implements protocol interface +var _ PURLSessionDelegate = (*URLSessionDelegateObject)(nil) -// Requests credentials from the delegate in response to a session-level authentication request from the remote server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate/1409308-urlsession?language=objc -func (u_ URLSessionDelegateObject) URLSessionDidReceiveChallengeCompletionHandler(session URLSession, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential)) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:didReceiveChallenge:completionHandler:"), session, challenge, completionHandler) +// A concrete type for the [PURLSessionDelegate] protocol. +type URLSessionDelegateObject struct { + objc.Object } func (u_ URLSessionDelegateObject) HasURLSessionDidFinishEventsForBackgroundURLSession() bool { @@ -122,3 +78,14 @@ func (u_ URLSessionDelegateObject) HasURLSessionDidFinishEventsForBackgroundURLS func (u_ URLSessionDelegateObject) URLSessionDidFinishEventsForBackgroundURLSession(session URLSession) { objc.Call[objc.Void](u_, objc.Sel("URLSessionDidFinishEventsForBackgroundURLSession:"), session) } + +func (u_ URLSessionDelegateObject) HasURLSessionDidBecomeInvalidWithError() bool { + return u_.RespondsToSelector(objc.Sel("URLSession:didBecomeInvalidWithError:")) +} + +// Tells the URL session that the session has been invalidated. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate/1407776-urlsession?language=objc +func (u_ URLSessionDelegateObject) URLSessionDidBecomeInvalidWithError(session URLSession, error Error) { + objc.Call[objc.Void](u_, objc.Sel("URLSession:didBecomeInvalidWithError:"), session, error) +} diff --git a/macos/foundation/url_session_download_delegate.gen.go b/macos/foundation/url_session_download_delegate.gen.go index cfaf2069..620ea637 100644 --- a/macos/foundation/url_session_download_delegate.gen.go +++ b/macos/foundation/url_session_download_delegate.gen.go @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondownloaddelegate?language=objc type PURLSessionDownloadDelegate interface { - // optional - URLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite(session URLSession, downloadTask URLSessionDownloadTask, bytesWritten int64, totalBytesWritten int64, totalBytesExpectedToWrite int64) - HasURLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite() bool - - // optional - URLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes(session URLSession, downloadTask URLSessionDownloadTask, fileOffset int64, expectedTotalBytes int64) - HasURLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes() bool - // optional URLSessionDownloadTaskDidFinishDownloadingToURL(session URLSession, downloadTask URLSessionDownloadTask, location URL) HasURLSessionDownloadTaskDidFinishDownloadingToURL() bool @@ -25,45 +17,9 @@ type PURLSessionDownloadDelegate interface { // A delegate implementation builder for the [PURLSessionDownloadDelegate] protocol. type URLSessionDownloadDelegate struct { - _URLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite func(session URLSession, downloadTask URLSessionDownloadTask, bytesWritten int64, totalBytesWritten int64, totalBytesExpectedToWrite int64) - _URLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes func(session URLSession, downloadTask URLSessionDownloadTask, fileOffset int64, expectedTotalBytes int64) - _URLSessionDownloadTaskDidFinishDownloadingToURL func(session URLSession, downloadTask URLSessionDownloadTask, location URL) -} - -func (di *URLSessionDownloadDelegate) HasURLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite() bool { - return di._URLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite != nil -} - -// Periodically informs the delegate about the download’s progress. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondownloaddelegate/1409408-urlsession?language=objc -func (di *URLSessionDownloadDelegate) SetURLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite(f func(session URLSession, downloadTask URLSessionDownloadTask, bytesWritten int64, totalBytesWritten int64, totalBytesExpectedToWrite int64)) { - di._URLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite = f -} - -// Periodically informs the delegate about the download’s progress. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondownloaddelegate/1409408-urlsession?language=objc -func (di *URLSessionDownloadDelegate) URLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite(session URLSession, downloadTask URLSessionDownloadTask, bytesWritten int64, totalBytesWritten int64, totalBytesExpectedToWrite int64) { - di._URLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite(session, downloadTask, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite) -} -func (di *URLSessionDownloadDelegate) HasURLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes() bool { - return di._URLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes != nil -} - -// Tells the delegate that the download task has resumed downloading. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondownloaddelegate/1408142-urlsession?language=objc -func (di *URLSessionDownloadDelegate) SetURLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes(f func(session URLSession, downloadTask URLSessionDownloadTask, fileOffset int64, expectedTotalBytes int64)) { - di._URLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes = f + _URLSessionDownloadTaskDidFinishDownloadingToURL func(session URLSession, downloadTask URLSessionDownloadTask, location URL) } -// Tells the delegate that the download task has resumed downloading. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondownloaddelegate/1408142-urlsession?language=objc -func (di *URLSessionDownloadDelegate) URLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes(session URLSession, downloadTask URLSessionDownloadTask, fileOffset int64, expectedTotalBytes int64) { - di._URLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes(session, downloadTask, fileOffset, expectedTotalBytes) -} func (di *URLSessionDownloadDelegate) HasURLSessionDownloadTaskDidFinishDownloadingToURL() bool { return di._URLSessionDownloadTaskDidFinishDownloadingToURL != nil } @@ -90,28 +46,6 @@ type URLSessionDownloadDelegateObject struct { objc.Object } -func (u_ URLSessionDownloadDelegateObject) HasURLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:")) -} - -// Periodically informs the delegate about the download’s progress. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondownloaddelegate/1409408-urlsession?language=objc -func (u_ URLSessionDownloadDelegateObject) URLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite(session URLSession, downloadTask URLSessionDownloadTask, bytesWritten int64, totalBytesWritten int64, totalBytesExpectedToWrite int64) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:"), session, downloadTask, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite) -} - -func (u_ URLSessionDownloadDelegateObject) HasURLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:")) -} - -// Tells the delegate that the download task has resumed downloading. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondownloaddelegate/1408142-urlsession?language=objc -func (u_ URLSessionDownloadDelegateObject) URLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes(session URLSession, downloadTask URLSessionDownloadTask, fileOffset int64, expectedTotalBytes int64) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:"), session, downloadTask, fileOffset, expectedTotalBytes) -} - func (u_ URLSessionDownloadDelegateObject) HasURLSessionDownloadTaskDidFinishDownloadingToURL() bool { return u_.RespondsToSelector(objc.Sel("URLSession:downloadTask:didFinishDownloadingToURL:")) } diff --git a/macos/foundation/url_session_stream_delegate.gen.go b/macos/foundation/url_session_stream_delegate.gen.go index 392c94c6..a0159d3b 100644 --- a/macos/foundation/url_session_stream_delegate.gen.go +++ b/macos/foundation/url_session_stream_delegate.gen.go @@ -10,18 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate?language=objc type PURLSessionStreamDelegate interface { - // optional - URLSessionBetterRouteDiscoveredForStreamTask(session URLSession, streamTask URLSessionStreamTask) - HasURLSessionBetterRouteDiscoveredForStreamTask() bool - - // optional - URLSessionReadClosedForStreamTask(session URLSession, streamTask URLSessionStreamTask) - HasURLSessionReadClosedForStreamTask() bool - - // optional - URLSessionStreamTaskDidBecomeInputStreamOutputStream(session URLSession, streamTask URLSessionStreamTask, inputStream InputStream, outputStream OutputStream) - HasURLSessionStreamTaskDidBecomeInputStreamOutputStream() bool - // optional URLSessionWriteClosedForStreamTask(session URLSession, streamTask URLSessionStreamTask) HasURLSessionWriteClosedForStreamTask() bool @@ -29,63 +17,9 @@ type PURLSessionStreamDelegate interface { // A delegate implementation builder for the [PURLSessionStreamDelegate] protocol. type URLSessionStreamDelegate struct { - _URLSessionBetterRouteDiscoveredForStreamTask func(session URLSession, streamTask URLSessionStreamTask) - _URLSessionReadClosedForStreamTask func(session URLSession, streamTask URLSessionStreamTask) - _URLSessionStreamTaskDidBecomeInputStreamOutputStream func(session URLSession, streamTask URLSessionStreamTask, inputStream InputStream, outputStream OutputStream) - _URLSessionWriteClosedForStreamTask func(session URLSession, streamTask URLSessionStreamTask) -} - -func (di *URLSessionStreamDelegate) HasURLSessionBetterRouteDiscoveredForStreamTask() bool { - return di._URLSessionBetterRouteDiscoveredForStreamTask != nil -} - -// Tells the delegate that a better route to the host has been detected for the stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate/1407527-urlsession?language=objc -func (di *URLSessionStreamDelegate) SetURLSessionBetterRouteDiscoveredForStreamTask(f func(session URLSession, streamTask URLSessionStreamTask)) { - di._URLSessionBetterRouteDiscoveredForStreamTask = f -} - -// Tells the delegate that a better route to the host has been detected for the stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate/1407527-urlsession?language=objc -func (di *URLSessionStreamDelegate) URLSessionBetterRouteDiscoveredForStreamTask(session URLSession, streamTask URLSessionStreamTask) { - di._URLSessionBetterRouteDiscoveredForStreamTask(session, streamTask) -} -func (di *URLSessionStreamDelegate) HasURLSessionReadClosedForStreamTask() bool { - return di._URLSessionReadClosedForStreamTask != nil -} - -// Tells the delegate that the read side of the underlying socket has been closed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate/1411501-urlsession?language=objc -func (di *URLSessionStreamDelegate) SetURLSessionReadClosedForStreamTask(f func(session URLSession, streamTask URLSessionStreamTask)) { - di._URLSessionReadClosedForStreamTask = f -} - -// Tells the delegate that the read side of the underlying socket has been closed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate/1411501-urlsession?language=objc -func (di *URLSessionStreamDelegate) URLSessionReadClosedForStreamTask(session URLSession, streamTask URLSessionStreamTask) { - di._URLSessionReadClosedForStreamTask(session, streamTask) -} -func (di *URLSessionStreamDelegate) HasURLSessionStreamTaskDidBecomeInputStreamOutputStream() bool { - return di._URLSessionStreamTaskDidBecomeInputStreamOutputStream != nil -} - -// Tells the delegate that the stream task has been completed as a result of the stream task calling the [foundation/nsurlsessionstreamtask/capturestreams] method. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate/1411625-urlsession?language=objc -func (di *URLSessionStreamDelegate) SetURLSessionStreamTaskDidBecomeInputStreamOutputStream(f func(session URLSession, streamTask URLSessionStreamTask, inputStream InputStream, outputStream OutputStream)) { - di._URLSessionStreamTaskDidBecomeInputStreamOutputStream = f + _URLSessionWriteClosedForStreamTask func(session URLSession, streamTask URLSessionStreamTask) } -// Tells the delegate that the stream task has been completed as a result of the stream task calling the [foundation/nsurlsessionstreamtask/capturestreams] method. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate/1411625-urlsession?language=objc -func (di *URLSessionStreamDelegate) URLSessionStreamTaskDidBecomeInputStreamOutputStream(session URLSession, streamTask URLSessionStreamTask, inputStream InputStream, outputStream OutputStream) { - di._URLSessionStreamTaskDidBecomeInputStreamOutputStream(session, streamTask, inputStream, outputStream) -} func (di *URLSessionStreamDelegate) HasURLSessionWriteClosedForStreamTask() bool { return di._URLSessionWriteClosedForStreamTask != nil } @@ -112,39 +46,6 @@ type URLSessionStreamDelegateObject struct { objc.Object } -func (u_ URLSessionStreamDelegateObject) HasURLSessionBetterRouteDiscoveredForStreamTask() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:betterRouteDiscoveredForStreamTask:")) -} - -// Tells the delegate that a better route to the host has been detected for the stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate/1407527-urlsession?language=objc -func (u_ URLSessionStreamDelegateObject) URLSessionBetterRouteDiscoveredForStreamTask(session URLSession, streamTask URLSessionStreamTask) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:betterRouteDiscoveredForStreamTask:"), session, streamTask) -} - -func (u_ URLSessionStreamDelegateObject) HasURLSessionReadClosedForStreamTask() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:readClosedForStreamTask:")) -} - -// Tells the delegate that the read side of the underlying socket has been closed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate/1411501-urlsession?language=objc -func (u_ URLSessionStreamDelegateObject) URLSessionReadClosedForStreamTask(session URLSession, streamTask URLSessionStreamTask) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:readClosedForStreamTask:"), session, streamTask) -} - -func (u_ URLSessionStreamDelegateObject) HasURLSessionStreamTaskDidBecomeInputStreamOutputStream() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:streamTask:didBecomeInputStream:outputStream:")) -} - -// Tells the delegate that the stream task has been completed as a result of the stream task calling the [foundation/nsurlsessionstreamtask/capturestreams] method. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate/1411625-urlsession?language=objc -func (u_ URLSessionStreamDelegateObject) URLSessionStreamTaskDidBecomeInputStreamOutputStream(session URLSession, streamTask URLSessionStreamTask, inputStream InputStream, outputStream OutputStream) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:streamTask:didBecomeInputStream:outputStream:"), session, streamTask, inputStream, outputStream) -} - func (u_ URLSessionStreamDelegateObject) HasURLSessionWriteClosedForStreamTask() bool { return u_.RespondsToSelector(objc.Sel("URLSession:writeClosedForStreamTask:")) } diff --git a/macos/foundation/url_session_stream_task.gen.go b/macos/foundation/url_session_stream_task.gen.go index d87e96ca..4b440c8b 100644 --- a/macos/foundation/url_session_stream_task.gen.go +++ b/macos/foundation/url_session_stream_task.gen.go @@ -18,12 +18,12 @@ type _URLSessionStreamTaskClass struct { // An interface definition for the [URLSessionStreamTask] class. type IURLSessionStreamTask interface { IURLSessionTask - StartSecureConnection() CloseWrite() - CaptureStreams() - ReadDataOfMinLengthMaxLengthTimeoutCompletionHandler(minBytes uint, maxBytes uint, timeout TimeInterval, completionHandler func(data []byte, atEOF bool, error Error)) - CloseRead() WriteDataTimeoutCompletionHandler(data []byte, timeout TimeInterval, completionHandler func(error Error)) + CloseRead() + StartSecureConnection() + ReadDataOfMinLengthMaxLengthTimeoutCompletionHandler(minBytes uint, maxBytes uint, timeout TimeInterval, completionHandler func(data []byte, atEOF bool, error Error)) + CaptureStreams() } // A URL session task that is stream-based. [Full Topic] @@ -59,13 +59,6 @@ func (u_ URLSessionStreamTask) Init() URLSessionStreamTask { return rv } -// Completes any enqueued reads and writes, and establishes a secure connection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1411567-startsecureconnection?language=objc -func (u_ URLSessionStreamTask) StartSecureConnection() { - objc.Call[objc.Void](u_, objc.Sel("startSecureConnection")) -} - // Completes any enqueued reads and writes, and then closes the write side of the underlying socket. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1411347-closewrite?language=objc @@ -73,18 +66,11 @@ func (u_ URLSessionStreamTask) CloseWrite() { objc.Call[objc.Void](u_, objc.Sel("closeWrite")) } -// Completes any already enqueued reads and writes, and then invokes the [foundation/nsurlsessionstreamdelegate/urlsession] delegate message. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1410132-capturestreams?language=objc -func (u_ URLSessionStreamTask) CaptureStreams() { - objc.Call[objc.Void](u_, objc.Sel("captureStreams")) -} - -// Asynchronously reads a number of bytes from the stream, and calls a handler upon completion. [Full Topic] +// Asynchronously writes the specified data to the stream, and calls a handler upon completion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1411604-readdataofminlength?language=objc -func (u_ URLSessionStreamTask) ReadDataOfMinLengthMaxLengthTimeoutCompletionHandler(minBytes uint, maxBytes uint, timeout TimeInterval, completionHandler func(data []byte, atEOF bool, error Error)) { - objc.Call[objc.Void](u_, objc.Sel("readDataOfMinLength:maxLength:timeout:completionHandler:"), minBytes, maxBytes, timeout, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1411602-writedata?language=objc +func (u_ URLSessionStreamTask) WriteDataTimeoutCompletionHandler(data []byte, timeout TimeInterval, completionHandler func(error Error)) { + objc.Call[objc.Void](u_, objc.Sel("writeData:timeout:completionHandler:"), data, timeout, completionHandler) } // Completes any enqueued reads and writes, and then closes the read side of the underlying socket. [Full Topic] @@ -94,9 +80,23 @@ func (u_ URLSessionStreamTask) CloseRead() { objc.Call[objc.Void](u_, objc.Sel("closeRead")) } -// Asynchronously writes the specified data to the stream, and calls a handler upon completion. [Full Topic] +// Completes any enqueued reads and writes, and establishes a secure connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1411602-writedata?language=objc -func (u_ URLSessionStreamTask) WriteDataTimeoutCompletionHandler(data []byte, timeout TimeInterval, completionHandler func(error Error)) { - objc.Call[objc.Void](u_, objc.Sel("writeData:timeout:completionHandler:"), data, timeout, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1411567-startsecureconnection?language=objc +func (u_ URLSessionStreamTask) StartSecureConnection() { + objc.Call[objc.Void](u_, objc.Sel("startSecureConnection")) +} + +// Asynchronously reads a number of bytes from the stream, and calls a handler upon completion. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1411604-readdataofminlength?language=objc +func (u_ URLSessionStreamTask) ReadDataOfMinLengthMaxLengthTimeoutCompletionHandler(minBytes uint, maxBytes uint, timeout TimeInterval, completionHandler func(data []byte, atEOF bool, error Error)) { + objc.Call[objc.Void](u_, objc.Sel("readDataOfMinLength:maxLength:timeout:completionHandler:"), minBytes, maxBytes, timeout, completionHandler) +} + +// Completes any already enqueued reads and writes, and then invokes the URLSession:writeClosedForStreamTask: delegate message. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1410132-capturestreams?language=objc +func (u_ URLSessionStreamTask) CaptureStreams() { + objc.Call[objc.Void](u_, objc.Sel("captureStreams")) } diff --git a/macos/foundation/url_session_task.gen.go b/macos/foundation/url_session_task.gen.go index b220fe97..bf5b9f8c 100644 --- a/macos/foundation/url_session_task.gen.go +++ b/macos/foundation/url_session_task.gen.go @@ -18,35 +18,35 @@ type _URLSessionTaskClass struct { // An interface definition for the [URLSessionTask] class. type IURLSessionTask interface { objc.IObject - Resume() Suspend() + Resume() Cancel() + CountOfBytesExpectedToSend() int64 + Priority() float32 + SetPriority(value float32) Error() Error - CurrentRequest() URLRequest + State() URLSessionTaskState + TaskIdentifier() uint CountOfBytesClientExpectsToReceive() int64 SetCountOfBytesClientExpectsToReceive(value int64) - Response() URLResponse - Progress() Progress + CountOfBytesSent() int64 + TaskDescription() string + SetTaskDescription(value string) + PrefersIncrementalDelivery() bool + SetPrefersIncrementalDelivery(value bool) + EarliestBeginDate() Date + SetEarliestBeginDate(value IDate) + CountOfBytesExpectedToReceive() int64 Delegate() URLSessionTaskDelegateObject SetDelegate(value PURLSessionTaskDelegate) SetDelegateObject(valueObject objc.IObject) - CountOfBytesExpectedToReceive() int64 + CountOfBytesReceived() int64 + Progress() Progress + Response() URLResponse CountOfBytesClientExpectsToSend() int64 SetCountOfBytesClientExpectsToSend(value int64) - Priority() float32 - SetPriority(value float32) - State() URLSessionTaskState - PrefersIncrementalDelivery() bool - SetPrefersIncrementalDelivery(value bool) - TaskIdentifier() uint - TaskDescription() string - SetTaskDescription(value string) - CountOfBytesReceived() int64 + CurrentRequest() URLRequest OriginalRequest() URLRequest - CountOfBytesSent() int64 - EarliestBeginDate() Date - SetEarliestBeginDate(value IDate) - CountOfBytesExpectedToSend() int64 } // A task, like downloading a specific resource, performed in a URL session. [Full Topic] @@ -82,13 +82,6 @@ func (u_ URLSessionTask) Init() URLSessionTask { return rv } -// Resumes the task, if it is suspended. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411121-resume?language=objc -func (u_ URLSessionTask) Resume() { - objc.Call[objc.Void](u_, objc.Sel("resume")) -} - // Temporarily suspends a task. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411565-suspend?language=objc @@ -96,6 +89,13 @@ func (u_ URLSessionTask) Suspend() { objc.Call[objc.Void](u_, objc.Sel("suspend")) } +// Resumes the task, if it is suspended. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411121-resume?language=objc +func (u_ URLSessionTask) Resume() { + objc.Call[objc.Void](u_, objc.Sel("resume")) +} + // Cancels the task. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411591-cancel?language=objc @@ -103,158 +103,150 @@ func (u_ URLSessionTask) Cancel() { objc.Call[objc.Void](u_, objc.Sel("cancel")) } -// An error object that indicates why the task failed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1408145-error?language=objc -func (u_ URLSessionTask) Error() Error { - rv := objc.Call[Error](u_, objc.Sel("error")) - return rv -} - -// The URL request object currently being handled by the task. [Full Topic] +// The number of bytes that the task expects to send in the request body. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411649-currentrequest?language=objc -func (u_ URLSessionTask) CurrentRequest() URLRequest { - rv := objc.Call[URLRequest](u_, objc.Sel("currentRequest")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411534-countofbytesexpectedtosend?language=objc +func (u_ URLSessionTask) CountOfBytesExpectedToSend() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfBytesExpectedToSend")) return rv } -// A best-guess upper bound on the number of bytes the client expects to receive. [Full Topic] +// The relative priority at which you’d like a host to handle the task, specified as a floating point value between 0.0 (lowest priority) and 1.0 (highest priority). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873414-countofbytesclientexpectstorecei?language=objc -func (u_ URLSessionTask) CountOfBytesClientExpectsToReceive() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfBytesClientExpectsToReceive")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410569-priority?language=objc +func (u_ URLSessionTask) Priority() float32 { + rv := objc.Call[float32](u_, objc.Sel("priority")) return rv } -// A best-guess upper bound on the number of bytes the client expects to receive. [Full Topic] +// The relative priority at which you’d like a host to handle the task, specified as a floating point value between 0.0 (lowest priority) and 1.0 (highest priority). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873414-countofbytesclientexpectstorecei?language=objc -func (u_ URLSessionTask) SetCountOfBytesClientExpectsToReceive(value int64) { - objc.Call[objc.Void](u_, objc.Sel("setCountOfBytesClientExpectsToReceive:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410569-priority?language=objc +func (u_ URLSessionTask) SetPriority(value float32) { + objc.Call[objc.Void](u_, objc.Sel("setPriority:"), value) } -// The server’s response to the currently active request. [Full Topic] +// An error object that indicates why the task failed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410586-response?language=objc -func (u_ URLSessionTask) Response() URLResponse { - rv := objc.Call[URLResponse](u_, objc.Sel("response")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1408145-error?language=objc +func (u_ URLSessionTask) Error() Error { + rv := objc.Call[Error](u_, objc.Sel("error")) return rv } -// A representation of the overall task progress. [Full Topic] +// The current state of the task—active, suspended, in the process of being canceled, or completed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2908821-progress?language=objc -func (u_ URLSessionTask) Progress() Progress { - rv := objc.Call[Progress](u_, objc.Sel("progress")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1409888-state?language=objc +func (u_ URLSessionTask) State() URLSessionTaskState { + rv := objc.Call[URLSessionTaskState](u_, objc.Sel("state")) return rv } -// A delegate specific to the task. [Full Topic] +// An identifier uniquely identifying the task within a given session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/3746977-delegate?language=objc -func (u_ URLSessionTask) Delegate() URLSessionTaskDelegateObject { - rv := objc.Call[URLSessionTaskDelegateObject](u_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411231-taskidentifier?language=objc +func (u_ URLSessionTask) TaskIdentifier() uint { + rv := objc.Call[uint](u_, objc.Sel("taskIdentifier")) return rv } -// A delegate specific to the task. [Full Topic] +// A best-guess upper bound on the number of bytes the client expects to receive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/3746977-delegate?language=objc -func (u_ URLSessionTask) SetDelegate(value PURLSessionTaskDelegate) { - po0 := objc.WrapAsProtocol("NSURLSessionTaskDelegate", value) - objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873414-countofbytesclientexpectstorecei?language=objc +func (u_ URLSessionTask) CountOfBytesClientExpectsToReceive() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfBytesClientExpectsToReceive")) + return rv } -// A delegate specific to the task. [Full Topic] +// A best-guess upper bound on the number of bytes the client expects to receive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/3746977-delegate?language=objc -func (u_ URLSessionTask) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873414-countofbytesclientexpectstorecei?language=objc +func (u_ URLSessionTask) SetCountOfBytesClientExpectsToReceive(value int64) { + objc.Call[objc.Void](u_, objc.Sel("setCountOfBytesClientExpectsToReceive:"), value) } -// The number of bytes that the task expects to receive in the response body. [Full Topic] +// The number of bytes that the task has sent to the server in the request body. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410663-countofbytesexpectedtoreceive?language=objc -func (u_ URLSessionTask) CountOfBytesExpectedToReceive() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfBytesExpectedToReceive")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410444-countofbytessent?language=objc +func (u_ URLSessionTask) CountOfBytesSent() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfBytesSent")) return rv } -// A best-guess upper bound on the number of bytes the client expects to send. [Full Topic] +// An app-provided string value for the current task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873401-countofbytesclientexpectstosend?language=objc -func (u_ URLSessionTask) CountOfBytesClientExpectsToSend() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfBytesClientExpectsToSend")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1409798-taskdescription?language=objc +func (u_ URLSessionTask) TaskDescription() string { + rv := objc.Call[string](u_, objc.Sel("taskDescription")) return rv } -// A best-guess upper bound on the number of bytes the client expects to send. [Full Topic] +// An app-provided string value for the current task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873401-countofbytesclientexpectstosend?language=objc -func (u_ URLSessionTask) SetCountOfBytesClientExpectsToSend(value int64) { - objc.Call[objc.Void](u_, objc.Sel("setCountOfBytesClientExpectsToSend:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1409798-taskdescription?language=objc +func (u_ URLSessionTask) SetTaskDescription(value string) { + objc.Call[objc.Void](u_, objc.Sel("setTaskDescription:"), value) } -// The relative priority at which you’d like a host to handle the task, specified as a floating point value between 0.0 (lowest priority) and 1.0 (highest priority). [Full Topic] +// A Boolean value that determines whether to deliver a partial response body in increments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410569-priority?language=objc -func (u_ URLSessionTask) Priority() float32 { - rv := objc.Call[float32](u_, objc.Sel("priority")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/3735881-prefersincrementaldelivery?language=objc +func (u_ URLSessionTask) PrefersIncrementalDelivery() bool { + rv := objc.Call[bool](u_, objc.Sel("prefersIncrementalDelivery")) return rv } -// The relative priority at which you’d like a host to handle the task, specified as a floating point value between 0.0 (lowest priority) and 1.0 (highest priority). [Full Topic] +// A Boolean value that determines whether to deliver a partial response body in increments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410569-priority?language=objc -func (u_ URLSessionTask) SetPriority(value float32) { - objc.Call[objc.Void](u_, objc.Sel("setPriority:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/3735881-prefersincrementaldelivery?language=objc +func (u_ URLSessionTask) SetPrefersIncrementalDelivery(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setPrefersIncrementalDelivery:"), value) } -// The current state of the task—active, suspended, in the process of being canceled, or completed. [Full Topic] +// The earliest date at which the network load should begin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1409888-state?language=objc -func (u_ URLSessionTask) State() URLSessionTaskState { - rv := objc.Call[URLSessionTaskState](u_, objc.Sel("state")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873413-earliestbegindate?language=objc +func (u_ URLSessionTask) EarliestBeginDate() Date { + rv := objc.Call[Date](u_, objc.Sel("earliestBeginDate")) return rv } -// A Boolean value that determines whether to deliver a partial response body in increments. [Full Topic] +// The earliest date at which the network load should begin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/3735881-prefersincrementaldelivery?language=objc -func (u_ URLSessionTask) PrefersIncrementalDelivery() bool { - rv := objc.Call[bool](u_, objc.Sel("prefersIncrementalDelivery")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873413-earliestbegindate?language=objc +func (u_ URLSessionTask) SetEarliestBeginDate(value IDate) { + objc.Call[objc.Void](u_, objc.Sel("setEarliestBeginDate:"), value) } -// A Boolean value that determines whether to deliver a partial response body in increments. [Full Topic] +// The number of bytes that the task expects to receive in the response body. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/3735881-prefersincrementaldelivery?language=objc -func (u_ URLSessionTask) SetPrefersIncrementalDelivery(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setPrefersIncrementalDelivery:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410663-countofbytesexpectedtoreceive?language=objc +func (u_ URLSessionTask) CountOfBytesExpectedToReceive() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfBytesExpectedToReceive")) + return rv } -// An identifier uniquely identifying the task within a given session. [Full Topic] +// A delegate specific to the task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411231-taskidentifier?language=objc -func (u_ URLSessionTask) TaskIdentifier() uint { - rv := objc.Call[uint](u_, objc.Sel("taskIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/3746977-delegate?language=objc +func (u_ URLSessionTask) Delegate() URLSessionTaskDelegateObject { + rv := objc.Call[URLSessionTaskDelegateObject](u_, objc.Sel("delegate")) return rv } -// An app-provided string value for the current task. [Full Topic] +// A delegate specific to the task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1409798-taskdescription?language=objc -func (u_ URLSessionTask) TaskDescription() string { - rv := objc.Call[string](u_, objc.Sel("taskDescription")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/3746977-delegate?language=objc +func (u_ URLSessionTask) SetDelegate(value PURLSessionTaskDelegate) { + po0 := objc.WrapAsProtocol("NSURLSessionTaskDelegate", value) + objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), po0) } -// An app-provided string value for the current task. [Full Topic] +// A delegate specific to the task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1409798-taskdescription?language=objc -func (u_ URLSessionTask) SetTaskDescription(value string) { - objc.Call[objc.Void](u_, objc.Sel("setTaskDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/3746977-delegate?language=objc +func (u_ URLSessionTask) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), valueObject) } // The number of bytes that the task has received from the server in the response body. [Full Topic] @@ -265,41 +257,49 @@ func (u_ URLSessionTask) CountOfBytesReceived() int64 { return rv } -// The original request object passed when the task was created. [Full Topic] +// A representation of the overall task progress. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411572-originalrequest?language=objc -func (u_ URLSessionTask) OriginalRequest() URLRequest { - rv := objc.Call[URLRequest](u_, objc.Sel("originalRequest")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2908821-progress?language=objc +func (u_ URLSessionTask) Progress() Progress { + rv := objc.Call[Progress](u_, objc.Sel("progress")) return rv } -// The number of bytes that the task has sent to the server in the request body. [Full Topic] +// The server’s response to the currently active request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410444-countofbytessent?language=objc -func (u_ URLSessionTask) CountOfBytesSent() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfBytesSent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410586-response?language=objc +func (u_ URLSessionTask) Response() URLResponse { + rv := objc.Call[URLResponse](u_, objc.Sel("response")) return rv } -// The earliest date at which the network load should begin. [Full Topic] +// A best-guess upper bound on the number of bytes the client expects to send. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873413-earliestbegindate?language=objc -func (u_ URLSessionTask) EarliestBeginDate() Date { - rv := objc.Call[Date](u_, objc.Sel("earliestBeginDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873401-countofbytesclientexpectstosend?language=objc +func (u_ URLSessionTask) CountOfBytesClientExpectsToSend() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfBytesClientExpectsToSend")) return rv } -// The earliest date at which the network load should begin. [Full Topic] +// A best-guess upper bound on the number of bytes the client expects to send. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873413-earliestbegindate?language=objc -func (u_ URLSessionTask) SetEarliestBeginDate(value IDate) { - objc.Call[objc.Void](u_, objc.Sel("setEarliestBeginDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/2873401-countofbytesclientexpectstosend?language=objc +func (u_ URLSessionTask) SetCountOfBytesClientExpectsToSend(value int64) { + objc.Call[objc.Void](u_, objc.Sel("setCountOfBytesClientExpectsToSend:"), value) } -// The number of bytes that the task expects to send in the request body. [Full Topic] +// The URL request object currently being handled by the task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411534-countofbytesexpectedtosend?language=objc -func (u_ URLSessionTask) CountOfBytesExpectedToSend() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfBytesExpectedToSend")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411649-currentrequest?language=objc +func (u_ URLSessionTask) CurrentRequest() URLRequest { + rv := objc.Call[URLRequest](u_, objc.Sel("currentRequest")) + return rv +} + +// The original request object passed when the task was created. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411572-originalrequest?language=objc +func (u_ URLSessionTask) OriginalRequest() URLRequest { + rv := objc.Call[URLRequest](u_, objc.Sel("originalRequest")) return rv } diff --git a/macos/foundation/url_session_task_delegate.gen.go b/macos/foundation/url_session_task_delegate.gen.go index 4d165425..644c511f 100644 --- a/macos/foundation/url_session_task_delegate.gen.go +++ b/macos/foundation/url_session_task_delegate.gen.go @@ -10,102 +10,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate?language=objc type PURLSessionTaskDelegate interface { - // optional - URLSessionTaskNeedNewBodyStream(session URLSession, task URLSessionTask, completionHandler func(bodyStream InputStream)) - HasURLSessionTaskNeedNewBodyStream() bool - - // optional - URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler(session URLSession, task URLSessionTask, response HTTPURLResponse, request URLRequest, completionHandler func(arg0 URLRequest)) - HasURLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler() bool - - // optional - URLSessionTaskDidReceiveChallengeCompletionHandler(session URLSession, task URLSessionTask, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential)) - HasURLSessionTaskDidReceiveChallengeCompletionHandler() bool - // optional URLSessionTaskDidFinishCollectingMetrics(session URLSession, task URLSessionTask, metrics URLSessionTaskMetrics) HasURLSessionTaskDidFinishCollectingMetrics() bool - - // optional - URLSessionTaskIsWaitingForConnectivity(session URLSession, task URLSessionTask) - HasURLSessionTaskIsWaitingForConnectivity() bool - - // optional - URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend(session URLSession, task URLSessionTask, bytesSent int64, totalBytesSent int64, totalBytesExpectedToSend int64) - HasURLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend() bool - - // optional - URLSessionTaskWillBeginDelayedRequestCompletionHandler(session URLSession, task URLSessionTask, request URLRequest, completionHandler func(disposition URLSessionDelayedRequestDisposition, newRequest URLRequest)) - HasURLSessionTaskWillBeginDelayedRequestCompletionHandler() bool - - // optional - URLSessionTaskDidCompleteWithError(session URLSession, task URLSessionTask, error Error) - HasURLSessionTaskDidCompleteWithError() bool } // A delegate implementation builder for the [PURLSessionTaskDelegate] protocol. type URLSessionTaskDelegate struct { - _URLSessionTaskNeedNewBodyStream func(session URLSession, task URLSessionTask, completionHandler func(bodyStream InputStream)) - _URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler func(session URLSession, task URLSessionTask, response HTTPURLResponse, request URLRequest, completionHandler func(arg0 URLRequest)) - _URLSessionTaskDidReceiveChallengeCompletionHandler func(session URLSession, task URLSessionTask, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential)) - _URLSessionTaskDidFinishCollectingMetrics func(session URLSession, task URLSessionTask, metrics URLSessionTaskMetrics) - _URLSessionTaskIsWaitingForConnectivity func(session URLSession, task URLSessionTask) - _URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend func(session URLSession, task URLSessionTask, bytesSent int64, totalBytesSent int64, totalBytesExpectedToSend int64) - _URLSessionTaskWillBeginDelayedRequestCompletionHandler func(session URLSession, task URLSessionTask, request URLRequest, completionHandler func(disposition URLSessionDelayedRequestDisposition, newRequest URLRequest)) - _URLSessionTaskDidCompleteWithError func(session URLSession, task URLSessionTask, error Error) -} - -func (di *URLSessionTaskDelegate) HasURLSessionTaskNeedNewBodyStream() bool { - return di._URLSessionTaskNeedNewBodyStream != nil -} - -// Tells the delegate when a task requires a new request body stream to send to the remote server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1410001-urlsession?language=objc -func (di *URLSessionTaskDelegate) SetURLSessionTaskNeedNewBodyStream(f func(session URLSession, task URLSessionTask, completionHandler func(bodyStream InputStream))) { - di._URLSessionTaskNeedNewBodyStream = f + _URLSessionTaskDidFinishCollectingMetrics func(session URLSession, task URLSessionTask, metrics URLSessionTaskMetrics) } -// Tells the delegate when a task requires a new request body stream to send to the remote server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1410001-urlsession?language=objc -func (di *URLSessionTaskDelegate) URLSessionTaskNeedNewBodyStream(session URLSession, task URLSessionTask, completionHandler func(bodyStream InputStream)) { - di._URLSessionTaskNeedNewBodyStream(session, task, completionHandler) -} -func (di *URLSessionTaskDelegate) HasURLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler() bool { - return di._URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler != nil -} - -// Tells the delegate that the remote server requested an HTTP redirect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1411626-urlsession?language=objc -func (di *URLSessionTaskDelegate) SetURLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler(f func(session URLSession, task URLSessionTask, response HTTPURLResponse, request URLRequest, completionHandler func(arg0 URLRequest))) { - di._URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler = f -} - -// Tells the delegate that the remote server requested an HTTP redirect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1411626-urlsession?language=objc -func (di *URLSessionTaskDelegate) URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler(session URLSession, task URLSessionTask, response HTTPURLResponse, request URLRequest, completionHandler func(arg0 URLRequest)) { - di._URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler(session, task, response, request, completionHandler) -} -func (di *URLSessionTaskDelegate) HasURLSessionTaskDidReceiveChallengeCompletionHandler() bool { - return di._URLSessionTaskDidReceiveChallengeCompletionHandler != nil -} - -// Requests credentials from the delegate in response to an authentication request from the remote server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1411595-urlsession?language=objc -func (di *URLSessionTaskDelegate) SetURLSessionTaskDidReceiveChallengeCompletionHandler(f func(session URLSession, task URLSessionTask, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential))) { - di._URLSessionTaskDidReceiveChallengeCompletionHandler = f -} - -// Requests credentials from the delegate in response to an authentication request from the remote server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1411595-urlsession?language=objc -func (di *URLSessionTaskDelegate) URLSessionTaskDidReceiveChallengeCompletionHandler(session URLSession, task URLSessionTask, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential)) { - di._URLSessionTaskDidReceiveChallengeCompletionHandler(session, task, challenge, completionHandler) -} func (di *URLSessionTaskDelegate) HasURLSessionTaskDidFinishCollectingMetrics() bool { return di._URLSessionTaskDidFinishCollectingMetrics != nil } @@ -123,74 +37,6 @@ func (di *URLSessionTaskDelegate) SetURLSessionTaskDidFinishCollectingMetrics(f func (di *URLSessionTaskDelegate) URLSessionTaskDidFinishCollectingMetrics(session URLSession, task URLSessionTask, metrics URLSessionTaskMetrics) { di._URLSessionTaskDidFinishCollectingMetrics(session, task, metrics) } -func (di *URLSessionTaskDelegate) HasURLSessionTaskIsWaitingForConnectivity() bool { - return di._URLSessionTaskIsWaitingForConnectivity != nil -} - -// Tells the delegate that the task is waiting until suitable connectivity is available before beginning the network load. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/2908819-urlsession?language=objc -func (di *URLSessionTaskDelegate) SetURLSessionTaskIsWaitingForConnectivity(f func(session URLSession, task URLSessionTask)) { - di._URLSessionTaskIsWaitingForConnectivity = f -} - -// Tells the delegate that the task is waiting until suitable connectivity is available before beginning the network load. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/2908819-urlsession?language=objc -func (di *URLSessionTaskDelegate) URLSessionTaskIsWaitingForConnectivity(session URLSession, task URLSessionTask) { - di._URLSessionTaskIsWaitingForConnectivity(session, task) -} -func (di *URLSessionTaskDelegate) HasURLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend() bool { - return di._URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend != nil -} - -// Periodically informs the delegate of the progress of sending body content to the server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1408299-urlsession?language=objc -func (di *URLSessionTaskDelegate) SetURLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend(f func(session URLSession, task URLSessionTask, bytesSent int64, totalBytesSent int64, totalBytesExpectedToSend int64)) { - di._URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend = f -} - -// Periodically informs the delegate of the progress of sending body content to the server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1408299-urlsession?language=objc -func (di *URLSessionTaskDelegate) URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend(session URLSession, task URLSessionTask, bytesSent int64, totalBytesSent int64, totalBytesExpectedToSend int64) { - di._URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend(session, task, bytesSent, totalBytesSent, totalBytesExpectedToSend) -} -func (di *URLSessionTaskDelegate) HasURLSessionTaskWillBeginDelayedRequestCompletionHandler() bool { - return di._URLSessionTaskWillBeginDelayedRequestCompletionHandler != nil -} - -// Tells the delegate that a delayed URL session task will now begin loading. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/2873415-urlsession?language=objc -func (di *URLSessionTaskDelegate) SetURLSessionTaskWillBeginDelayedRequestCompletionHandler(f func(session URLSession, task URLSessionTask, request URLRequest, completionHandler func(disposition URLSessionDelayedRequestDisposition, newRequest URLRequest))) { - di._URLSessionTaskWillBeginDelayedRequestCompletionHandler = f -} - -// Tells the delegate that a delayed URL session task will now begin loading. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/2873415-urlsession?language=objc -func (di *URLSessionTaskDelegate) URLSessionTaskWillBeginDelayedRequestCompletionHandler(session URLSession, task URLSessionTask, request URLRequest, completionHandler func(disposition URLSessionDelayedRequestDisposition, newRequest URLRequest)) { - di._URLSessionTaskWillBeginDelayedRequestCompletionHandler(session, task, request, completionHandler) -} -func (di *URLSessionTaskDelegate) HasURLSessionTaskDidCompleteWithError() bool { - return di._URLSessionTaskDidCompleteWithError != nil -} - -// Tells the delegate that the task finished transferring data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1411610-urlsession?language=objc -func (di *URLSessionTaskDelegate) SetURLSessionTaskDidCompleteWithError(f func(session URLSession, task URLSessionTask, error Error)) { - di._URLSessionTaskDidCompleteWithError = f -} - -// Tells the delegate that the task finished transferring data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1411610-urlsession?language=objc -func (di *URLSessionTaskDelegate) URLSessionTaskDidCompleteWithError(session URLSession, task URLSessionTask, error Error) { - di._URLSessionTaskDidCompleteWithError(session, task, error) -} // ensure impl type implements protocol interface var _ PURLSessionTaskDelegate = (*URLSessionTaskDelegateObject)(nil) @@ -200,39 +46,6 @@ type URLSessionTaskDelegateObject struct { objc.Object } -func (u_ URLSessionTaskDelegateObject) HasURLSessionTaskNeedNewBodyStream() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:task:needNewBodyStream:")) -} - -// Tells the delegate when a task requires a new request body stream to send to the remote server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1410001-urlsession?language=objc -func (u_ URLSessionTaskDelegateObject) URLSessionTaskNeedNewBodyStream(session URLSession, task URLSessionTask, completionHandler func(bodyStream InputStream)) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:task:needNewBodyStream:"), session, task, completionHandler) -} - -func (u_ URLSessionTaskDelegateObject) HasURLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:")) -} - -// Tells the delegate that the remote server requested an HTTP redirect. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1411626-urlsession?language=objc -func (u_ URLSessionTaskDelegateObject) URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler(session URLSession, task URLSessionTask, response HTTPURLResponse, request URLRequest, completionHandler func(arg0 URLRequest)) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:"), session, task, response, request, completionHandler) -} - -func (u_ URLSessionTaskDelegateObject) HasURLSessionTaskDidReceiveChallengeCompletionHandler() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:task:didReceiveChallenge:completionHandler:")) -} - -// Requests credentials from the delegate in response to an authentication request from the remote server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1411595-urlsession?language=objc -func (u_ URLSessionTaskDelegateObject) URLSessionTaskDidReceiveChallengeCompletionHandler(session URLSession, task URLSessionTask, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential)) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:task:didReceiveChallenge:completionHandler:"), session, task, challenge, completionHandler) -} - func (u_ URLSessionTaskDelegateObject) HasURLSessionTaskDidFinishCollectingMetrics() bool { return u_.RespondsToSelector(objc.Sel("URLSession:task:didFinishCollectingMetrics:")) } @@ -243,47 +56,3 @@ func (u_ URLSessionTaskDelegateObject) HasURLSessionTaskDidFinishCollectingMetri func (u_ URLSessionTaskDelegateObject) URLSessionTaskDidFinishCollectingMetrics(session URLSession, task URLSessionTask, metrics URLSessionTaskMetrics) { objc.Call[objc.Void](u_, objc.Sel("URLSession:task:didFinishCollectingMetrics:"), session, task, metrics) } - -func (u_ URLSessionTaskDelegateObject) HasURLSessionTaskIsWaitingForConnectivity() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:taskIsWaitingForConnectivity:")) -} - -// Tells the delegate that the task is waiting until suitable connectivity is available before beginning the network load. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/2908819-urlsession?language=objc -func (u_ URLSessionTaskDelegateObject) URLSessionTaskIsWaitingForConnectivity(session URLSession, task URLSessionTask) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:taskIsWaitingForConnectivity:"), session, task) -} - -func (u_ URLSessionTaskDelegateObject) HasURLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:")) -} - -// Periodically informs the delegate of the progress of sending body content to the server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1408299-urlsession?language=objc -func (u_ URLSessionTaskDelegateObject) URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend(session URLSession, task URLSessionTask, bytesSent int64, totalBytesSent int64, totalBytesExpectedToSend int64) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:"), session, task, bytesSent, totalBytesSent, totalBytesExpectedToSend) -} - -func (u_ URLSessionTaskDelegateObject) HasURLSessionTaskWillBeginDelayedRequestCompletionHandler() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:task:willBeginDelayedRequest:completionHandler:")) -} - -// Tells the delegate that a delayed URL session task will now begin loading. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/2873415-urlsession?language=objc -func (u_ URLSessionTaskDelegateObject) URLSessionTaskWillBeginDelayedRequestCompletionHandler(session URLSession, task URLSessionTask, request URLRequest, completionHandler func(disposition URLSessionDelayedRequestDisposition, newRequest URLRequest)) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:task:willBeginDelayedRequest:completionHandler:"), session, task, request, completionHandler) -} - -func (u_ URLSessionTaskDelegateObject) HasURLSessionTaskDidCompleteWithError() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:task:didCompleteWithError:")) -} - -// Tells the delegate that the task finished transferring data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1411610-urlsession?language=objc -func (u_ URLSessionTaskDelegateObject) URLSessionTaskDidCompleteWithError(session URLSession, task URLSessionTask, error Error) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:task:didCompleteWithError:"), session, task, error) -} diff --git a/macos/foundation/url_session_task_metrics.gen.go b/macos/foundation/url_session_task_metrics.gen.go index 4a32de94..c9782090 100644 --- a/macos/foundation/url_session_task_metrics.gen.go +++ b/macos/foundation/url_session_task_metrics.gen.go @@ -19,8 +19,8 @@ type _URLSessionTaskMetricsClass struct { type IURLSessionTaskMetrics interface { objc.IObject RedirectCount() uint - TaskInterval() DateInterval TransactionMetrics() []URLSessionTaskTransactionMetrics + TaskInterval() DateInterval } // An object encapsulating the metrics for a session task. [Full Topic] @@ -64,14 +64,6 @@ func (u_ URLSessionTaskMetrics) RedirectCount() uint { return rv } -// The time interval between when a task is instantiated and when the task is completed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskmetrics/1643169-taskinterval?language=objc -func (u_ URLSessionTaskMetrics) TaskInterval() DateInterval { - rv := objc.Call[DateInterval](u_, objc.Sel("taskInterval")) - return rv -} - // An array of metrics for each individual request-response transaction made during the execution of the task. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskmetrics/1642789-transactionmetrics?language=objc @@ -79,3 +71,11 @@ func (u_ URLSessionTaskMetrics) TransactionMetrics() []URLSessionTaskTransaction rv := objc.Call[[]URLSessionTaskTransactionMetrics](u_, objc.Sel("transactionMetrics")) return rv } + +// The time interval between when a task is instantiated and when the task is completed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskmetrics/1643169-taskinterval?language=objc +func (u_ URLSessionTaskMetrics) TaskInterval() DateInterval { + rv := objc.Call[DateInterval](u_, objc.Sel("taskInterval")) + return rv +} diff --git a/macos/foundation/url_session_task_transaction_metrics.gen.go b/macos/foundation/url_session_task_transaction_metrics.gen.go index 6501f548..541f3f11 100644 --- a/macos/foundation/url_session_task_transaction_metrics.gen.go +++ b/macos/foundation/url_session_task_transaction_metrics.gen.go @@ -18,40 +18,40 @@ type _URLSessionTaskTransactionMetricsClass struct { // An interface definition for the [URLSessionTaskTransactionMetrics] class. type IURLSessionTaskTransactionMetrics interface { objc.IObject - ResourceFetchType() URLSessionTaskMetricsResourceFetchType - ResponseStartDate() Date - IsReusedConnection() bool - SecureConnectionStartDate() Date - RequestStartDate() Date - IsMultipath() bool - CountOfRequestHeaderBytesSent() int64 - CountOfResponseBodyBytesAfterDecoding() int64 - NegotiatedTLSProtocolVersion() Number - ResponseEndDate() Date - CountOfResponseHeaderBytesReceived() int64 + IsCellular() bool + DomainResolutionProtocol() URLSessionTaskMetricsDomainResolutionProtocol + Request() URLRequest + IsExpensive() bool NegotiatedTLSCipherSuite() Number - LocalPort() Number ConnectStartDate() Date - FetchStartDate() Date - RequestEndDate() Date + CountOfRequestBodyBytesSent() int64 RemoteAddress() string - RemotePort() Number - IsConstrained() bool + RequestStartDate() Date + DomainLookupStartDate() Date CountOfRequestBodyBytesBeforeEncoding() int64 + CountOfRequestHeaderBytesSent() int64 + RemotePort() Number + CountOfResponseBodyBytesReceived() int64 ConnectEndDate() Date - IsCellular() bool - NetworkProtocolName() string - DomainResolutionProtocol() URLSessionTaskMetricsDomainResolutionProtocol - Response() URLResponse + CountOfResponseHeaderBytesReceived() int64 + SecureConnectionStartDate() Date + CountOfResponseBodyBytesAfterDecoding() int64 LocalAddress() string - CountOfRequestBodyBytesSent() int64 - CountOfResponseBodyBytesReceived() int64 - IsProxyConnection() bool DomainLookupEndDate() Date - DomainLookupStartDate() Date - Request() URLRequest - IsExpensive() bool + IsReusedConnection() bool + ResourceFetchType() URLSessionTaskMetricsResourceFetchType + IsMultipath() bool + ResponseStartDate() Date + NetworkProtocolName() string + LocalPort() Number + FetchStartDate() Date + NegotiatedTLSProtocolVersion() Number + ResponseEndDate() Date + IsConstrained() bool + IsProxyConnection() bool + Response() URLResponse SecureConnectionEndDate() Date + RequestEndDate() Date } // An object that encapsualtes the performance metrics collected by the URL Loading System during the execution of a session task. [Full Topic] @@ -87,267 +87,259 @@ func (u_ URLSessionTaskTransactionMetrics) Init() URLSessionTaskTransactionMetri return rv } -// A value that indicates whether the resource was loaded, pushed, or retrieved from the local cache. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642919-resourcefetchtype?language=objc -func (u_ URLSessionTaskTransactionMetrics) ResourceFetchType() URLSessionTaskMetricsResourceFetchType { - rv := objc.Call[URLSessionTaskMetricsResourceFetchType](u_, objc.Sel("resourceFetchType")) - return rv -} - -// The time immediately after the task received the first byte of the response from the server or from local resources. [Full Topic] +// A Boolean value that indicates whether the connection operates over a cellular interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642966-responsestartdate?language=objc -func (u_ URLSessionTaskTransactionMetrics) ResponseStartDate() Date { - rv := objc.Call[Date](u_, objc.Sel("responseStartDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240627-cellular?language=objc +func (u_ URLSessionTaskTransactionMetrics) IsCellular() bool { + rv := objc.Call[bool](u_, objc.Sel("isCellular")) return rv } -// A Boolean value that indicates whether the task used a persistent connection to fetch the resource. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643233-reusedconnection?language=objc -func (u_ URLSessionTaskTransactionMetrics) IsReusedConnection() bool { - rv := objc.Call[bool](u_, objc.Sel("isReusedConnection")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3674827-domainresolutionprotocol?language=objc +func (u_ URLSessionTaskTransactionMetrics) DomainResolutionProtocol() URLSessionTaskMetricsDomainResolutionProtocol { + rv := objc.Call[URLSessionTaskMetricsDomainResolutionProtocol](u_, objc.Sel("domainResolutionProtocol")) return rv } -// The time immediately before the task started the TLS security handshake to secure the current connection. [Full Topic] +// The transaction request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643219-secureconnectionstartdate?language=objc -func (u_ URLSessionTaskTransactionMetrics) SecureConnectionStartDate() Date { - rv := objc.Call[Date](u_, objc.Sel("secureConnectionStartDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643144-request?language=objc +func (u_ URLSessionTaskTransactionMetrics) Request() URLRequest { + rv := objc.Call[URLRequest](u_, objc.Sel("request")) return rv } -// The time immediately before the task started requesting the resource, regardless of whether it is retrieved from the server or local resources. [Full Topic] +// A Boolean value that indicates whether the connection operates over an expensive interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642906-requeststartdate?language=objc -func (u_ URLSessionTaskTransactionMetrics) RequestStartDate() Date { - rv := objc.Call[Date](u_, objc.Sel("requestStartDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240635-expensive?language=objc +func (u_ URLSessionTaskTransactionMetrics) IsExpensive() bool { + rv := objc.Call[bool](u_, objc.Sel("isExpensive")) return rv } -// A Boolean value that indicates whether the connection uses a successfully negotiated multipath protocol. [Full Topic] +// The TLS cipher suite the task negotiated with the endpoint for the connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240638-multipath?language=objc -func (u_ URLSessionTaskTransactionMetrics) IsMultipath() bool { - rv := objc.Call[bool](u_, objc.Sel("isMultipath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240639-negotiatedtlsciphersuite?language=objc +func (u_ URLSessionTaskTransactionMetrics) NegotiatedTLSCipherSuite() Number { + rv := objc.Call[Number](u_, objc.Sel("negotiatedTLSCipherSuite")) return rv } -// The number of bytes transferred for the request header. [Full Topic] +// The time immediately before the task started establishing a TCP connection to the server. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240631-countofrequestheaderbytessent?language=objc -func (u_ URLSessionTaskTransactionMetrics) CountOfRequestHeaderBytesSent() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfRequestHeaderBytesSent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642815-connectstartdate?language=objc +func (u_ URLSessionTaskTransactionMetrics) ConnectStartDate() Date { + rv := objc.Call[Date](u_, objc.Sel("connectStartDate")) return rv } -// The size of data delivered to your delegate or completion handler. [Full Topic] +// The number of bytes transferred for the request body. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240632-countofresponsebodybytesafterdec?language=objc -func (u_ URLSessionTaskTransactionMetrics) CountOfResponseBodyBytesAfterDecoding() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfResponseBodyBytesAfterDecoding")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240630-countofrequestbodybytessent?language=objc +func (u_ URLSessionTaskTransactionMetrics) CountOfRequestBodyBytesSent() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfRequestBodyBytesSent")) return rv } -// The TLS protocol version the task negotiated with the endpoint for the connection. [Full Topic] +// The IP address string of the remote interface for the connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240640-negotiatedtlsprotocolversion?language=objc -func (u_ URLSessionTaskTransactionMetrics) NegotiatedTLSProtocolVersion() Number { - rv := objc.Call[Number](u_, objc.Sel("negotiatedTLSProtocolVersion")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240642-remoteaddress?language=objc +func (u_ URLSessionTaskTransactionMetrics) RemoteAddress() string { + rv := objc.Call[string](u_, objc.Sel("remoteAddress")) return rv } -// The time immediately after the task received the last byte of the resource. [Full Topic] +// The time immediately before the task started requesting the resource, regardless of whether it is retrieved from the server or local resources. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643300-responseenddate?language=objc -func (u_ URLSessionTaskTransactionMetrics) ResponseEndDate() Date { - rv := objc.Call[Date](u_, objc.Sel("responseEndDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642906-requeststartdate?language=objc +func (u_ URLSessionTaskTransactionMetrics) RequestStartDate() Date { + rv := objc.Call[Date](u_, objc.Sel("requestStartDate")) return rv } -// The number of bytes transferred for the response header. [Full Topic] +// The time immediately before the task started the name lookup for the resource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240634-countofresponseheaderbytesreceiv?language=objc -func (u_ URLSessionTaskTransactionMetrics) CountOfResponseHeaderBytesReceived() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfResponseHeaderBytesReceived")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642859-domainlookupstartdate?language=objc +func (u_ URLSessionTaskTransactionMetrics) DomainLookupStartDate() Date { + rv := objc.Call[Date](u_, objc.Sel("domainLookupStartDate")) return rv } -// The TLS cipher suite the task negotiated with the endpoint for the connection. [Full Topic] +// The size of the upload body data, file, or stream, in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240639-negotiatedtlsciphersuite?language=objc -func (u_ URLSessionTaskTransactionMetrics) NegotiatedTLSCipherSuite() Number { - rv := objc.Call[Number](u_, objc.Sel("negotiatedTLSCipherSuite")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240629-countofrequestbodybytesbeforeenc?language=objc +func (u_ URLSessionTaskTransactionMetrics) CountOfRequestBodyBytesBeforeEncoding() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfRequestBodyBytesBeforeEncoding")) return rv } -// The port number of the local interface for the connection. [Full Topic] +// The number of bytes transferred for the request header. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240637-localport?language=objc -func (u_ URLSessionTaskTransactionMetrics) LocalPort() Number { - rv := objc.Call[Number](u_, objc.Sel("localPort")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240631-countofrequestheaderbytessent?language=objc +func (u_ URLSessionTaskTransactionMetrics) CountOfRequestHeaderBytesSent() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfRequestHeaderBytesSent")) return rv } -// The time immediately before the task started establishing a TCP connection to the server. [Full Topic] +// The port number of the remote interface for the connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642815-connectstartdate?language=objc -func (u_ URLSessionTaskTransactionMetrics) ConnectStartDate() Date { - rv := objc.Call[Date](u_, objc.Sel("connectStartDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240643-remoteport?language=objc +func (u_ URLSessionTaskTransactionMetrics) RemotePort() Number { + rv := objc.Call[Number](u_, objc.Sel("remotePort")) return rv } -// The time when the task started fetching the resource, from the server or locally. [Full Topic] +// The number of bytes transferred for the response body. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643009-fetchstartdate?language=objc -func (u_ URLSessionTaskTransactionMetrics) FetchStartDate() Date { - rv := objc.Call[Date](u_, objc.Sel("fetchStartDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240633-countofresponsebodybytesreceived?language=objc +func (u_ URLSessionTaskTransactionMetrics) CountOfResponseBodyBytesReceived() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfResponseBodyBytesReceived")) return rv } -// The time immediately after the task finished requesting the resource, regardless of whether it was retrieved from the server or local resources. [Full Topic] +// The time immediately after the task finished establishing the connection to the server. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643056-requestenddate?language=objc -func (u_ URLSessionTaskTransactionMetrics) RequestEndDate() Date { - rv := objc.Call[Date](u_, objc.Sel("requestEndDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643239-connectenddate?language=objc +func (u_ URLSessionTaskTransactionMetrics) ConnectEndDate() Date { + rv := objc.Call[Date](u_, objc.Sel("connectEndDate")) return rv } -// The IP address string of the remote interface for the connection. [Full Topic] +// The number of bytes transferred for the response header. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240642-remoteaddress?language=objc -func (u_ URLSessionTaskTransactionMetrics) RemoteAddress() string { - rv := objc.Call[string](u_, objc.Sel("remoteAddress")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240634-countofresponseheaderbytesreceiv?language=objc +func (u_ URLSessionTaskTransactionMetrics) CountOfResponseHeaderBytesReceived() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfResponseHeaderBytesReceived")) return rv } -// The port number of the remote interface for the connection. [Full Topic] +// The time immediately before the task started the TLS security handshake to secure the current connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240643-remoteport?language=objc -func (u_ URLSessionTaskTransactionMetrics) RemotePort() Number { - rv := objc.Call[Number](u_, objc.Sel("remotePort")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643219-secureconnectionstartdate?language=objc +func (u_ URLSessionTaskTransactionMetrics) SecureConnectionStartDate() Date { + rv := objc.Call[Date](u_, objc.Sel("secureConnectionStartDate")) return rv } -// A Boolean value that indicates whether the connection operates over an interface marked as constrained. [Full Topic] +// The size of data delivered to your delegate or completion handler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240628-constrained?language=objc -func (u_ URLSessionTaskTransactionMetrics) IsConstrained() bool { - rv := objc.Call[bool](u_, objc.Sel("isConstrained")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240632-countofresponsebodybytesafterdec?language=objc +func (u_ URLSessionTaskTransactionMetrics) CountOfResponseBodyBytesAfterDecoding() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfResponseBodyBytesAfterDecoding")) return rv } -// The size of the upload body data, file, or stream, in bytes. [Full Topic] +// The IP address string of the local interface for the connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240629-countofrequestbodybytesbeforeenc?language=objc -func (u_ URLSessionTaskTransactionMetrics) CountOfRequestBodyBytesBeforeEncoding() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfRequestBodyBytesBeforeEncoding")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240636-localaddress?language=objc +func (u_ URLSessionTaskTransactionMetrics) LocalAddress() string { + rv := objc.Call[string](u_, objc.Sel("localAddress")) return rv } -// The time immediately after the task finished establishing the connection to the server. [Full Topic] +// The time after the name lookup was completed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643239-connectenddate?language=objc -func (u_ URLSessionTaskTransactionMetrics) ConnectEndDate() Date { - rv := objc.Call[Date](u_, objc.Sel("connectEndDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643173-domainlookupenddate?language=objc +func (u_ URLSessionTaskTransactionMetrics) DomainLookupEndDate() Date { + rv := objc.Call[Date](u_, objc.Sel("domainLookupEndDate")) return rv } -// A Boolean value that indicates whether the connection operates over a cellular interface. [Full Topic] +// A Boolean value that indicates whether the task used a persistent connection to fetch the resource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240627-cellular?language=objc -func (u_ URLSessionTaskTransactionMetrics) IsCellular() bool { - rv := objc.Call[bool](u_, objc.Sel("isCellular")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643233-reusedconnection?language=objc +func (u_ URLSessionTaskTransactionMetrics) IsReusedConnection() bool { + rv := objc.Call[bool](u_, objc.Sel("isReusedConnection")) return rv } -// The network protocol used to fetch the resource. [Full Topic] +// A value that indicates whether the resource was loaded, pushed, or retrieved from the local cache. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643141-networkprotocolname?language=objc -func (u_ URLSessionTaskTransactionMetrics) NetworkProtocolName() string { - rv := objc.Call[string](u_, objc.Sel("networkProtocolName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642919-resourcefetchtype?language=objc +func (u_ URLSessionTaskTransactionMetrics) ResourceFetchType() URLSessionTaskMetricsResourceFetchType { + rv := objc.Call[URLSessionTaskMetricsResourceFetchType](u_, objc.Sel("resourceFetchType")) return rv } -// [Full Topic] +// A Boolean value that indicates whether the connection uses a successfully negotiated multipath protocol. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3674827-domainresolutionprotocol?language=objc -func (u_ URLSessionTaskTransactionMetrics) DomainResolutionProtocol() URLSessionTaskMetricsDomainResolutionProtocol { - rv := objc.Call[URLSessionTaskMetricsDomainResolutionProtocol](u_, objc.Sel("domainResolutionProtocol")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240638-multipath?language=objc +func (u_ URLSessionTaskTransactionMetrics) IsMultipath() bool { + rv := objc.Call[bool](u_, objc.Sel("isMultipath")) return rv } -// The transaction response. [Full Topic] +// The time immediately after the task received the first byte of the response from the server or from local resources. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643172-response?language=objc -func (u_ URLSessionTaskTransactionMetrics) Response() URLResponse { - rv := objc.Call[URLResponse](u_, objc.Sel("response")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642966-responsestartdate?language=objc +func (u_ URLSessionTaskTransactionMetrics) ResponseStartDate() Date { + rv := objc.Call[Date](u_, objc.Sel("responseStartDate")) return rv } -// The IP address string of the local interface for the connection. [Full Topic] +// The network protocol used to fetch the resource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240636-localaddress?language=objc -func (u_ URLSessionTaskTransactionMetrics) LocalAddress() string { - rv := objc.Call[string](u_, objc.Sel("localAddress")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643141-networkprotocolname?language=objc +func (u_ URLSessionTaskTransactionMetrics) NetworkProtocolName() string { + rv := objc.Call[string](u_, objc.Sel("networkProtocolName")) return rv } -// The number of bytes transferred for the request body. [Full Topic] +// The port number of the local interface for the connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240630-countofrequestbodybytessent?language=objc -func (u_ URLSessionTaskTransactionMetrics) CountOfRequestBodyBytesSent() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfRequestBodyBytesSent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240637-localport?language=objc +func (u_ URLSessionTaskTransactionMetrics) LocalPort() Number { + rv := objc.Call[Number](u_, objc.Sel("localPort")) return rv } -// The number of bytes transferred for the response body. [Full Topic] +// The time when the task started fetching the resource, from the server or locally. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240633-countofresponsebodybytesreceived?language=objc -func (u_ URLSessionTaskTransactionMetrics) CountOfResponseBodyBytesReceived() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfResponseBodyBytesReceived")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643009-fetchstartdate?language=objc +func (u_ URLSessionTaskTransactionMetrics) FetchStartDate() Date { + rv := objc.Call[Date](u_, objc.Sel("fetchStartDate")) return rv } -// A Boolean value that indicastes whether the task used a proxy connection to fetch the resource. [Full Topic] +// The TLS protocol version the task negotiated with the endpoint for the connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642917-proxyconnection?language=objc -func (u_ URLSessionTaskTransactionMetrics) IsProxyConnection() bool { - rv := objc.Call[bool](u_, objc.Sel("isProxyConnection")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240640-negotiatedtlsprotocolversion?language=objc +func (u_ URLSessionTaskTransactionMetrics) NegotiatedTLSProtocolVersion() Number { + rv := objc.Call[Number](u_, objc.Sel("negotiatedTLSProtocolVersion")) return rv } -// The time after the name lookup was completed. [Full Topic] +// The time immediately after the task received the last byte of the resource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643173-domainlookupenddate?language=objc -func (u_ URLSessionTaskTransactionMetrics) DomainLookupEndDate() Date { - rv := objc.Call[Date](u_, objc.Sel("domainLookupEndDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643300-responseenddate?language=objc +func (u_ URLSessionTaskTransactionMetrics) ResponseEndDate() Date { + rv := objc.Call[Date](u_, objc.Sel("responseEndDate")) return rv } -// The time immediately before the task started the name lookup for the resource. [Full Topic] +// A Boolean value that indicates whether the connection operates over an interface marked as constrained. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642859-domainlookupstartdate?language=objc -func (u_ URLSessionTaskTransactionMetrics) DomainLookupStartDate() Date { - rv := objc.Call[Date](u_, objc.Sel("domainLookupStartDate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240628-constrained?language=objc +func (u_ URLSessionTaskTransactionMetrics) IsConstrained() bool { + rv := objc.Call[bool](u_, objc.Sel("isConstrained")) return rv } -// The transaction request. [Full Topic] +// A Boolean value that indicastes whether the task used a proxy connection to fetch the resource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643144-request?language=objc -func (u_ URLSessionTaskTransactionMetrics) Request() URLRequest { - rv := objc.Call[URLRequest](u_, objc.Sel("request")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1642917-proxyconnection?language=objc +func (u_ URLSessionTaskTransactionMetrics) IsProxyConnection() bool { + rv := objc.Call[bool](u_, objc.Sel("isProxyConnection")) return rv } -// A Boolean value that indicates whether the connection operates over an expensive interface. [Full Topic] +// The transaction response. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/3240635-expensive?language=objc -func (u_ URLSessionTaskTransactionMetrics) IsExpensive() bool { - rv := objc.Call[bool](u_, objc.Sel("isExpensive")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643172-response?language=objc +func (u_ URLSessionTaskTransactionMetrics) Response() URLResponse { + rv := objc.Call[URLResponse](u_, objc.Sel("response")) return rv } @@ -358,3 +350,11 @@ func (u_ URLSessionTaskTransactionMetrics) SecureConnectionEndDate() Date { rv := objc.Call[Date](u_, objc.Sel("secureConnectionEndDate")) return rv } + +// The time immediately after the task finished requesting the resource, regardless of whether it was retrieved from the server or local resources. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643056-requestenddate?language=objc +func (u_ URLSessionTaskTransactionMetrics) RequestEndDate() Date { + rv := objc.Call[Date](u_, objc.Sel("requestEndDate")) + return rv +} diff --git a/macos/foundation/url_session_web_socket_delegate.gen.go b/macos/foundation/url_session_web_socket_delegate.gen.go index 706611f5..f5598256 100644 --- a/macos/foundation/url_session_web_socket_delegate.gen.go +++ b/macos/foundation/url_session_web_socket_delegate.gen.go @@ -13,16 +13,11 @@ type PURLSessionWebSocketDelegate interface { // optional URLSessionWebSocketTaskDidOpenWithProtocol(session URLSession, webSocketTask URLSessionWebSocketTask, protocol string) HasURLSessionWebSocketTaskDidOpenWithProtocol() bool - - // optional - URLSessionWebSocketTaskDidCloseWithCodeReason(session URLSession, webSocketTask URLSessionWebSocketTask, closeCode URLSessionWebSocketCloseCode, reason []byte) - HasURLSessionWebSocketTaskDidCloseWithCodeReason() bool } // A delegate implementation builder for the [PURLSessionWebSocketDelegate] protocol. type URLSessionWebSocketDelegate struct { - _URLSessionWebSocketTaskDidOpenWithProtocol func(session URLSession, webSocketTask URLSessionWebSocketTask, protocol string) - _URLSessionWebSocketTaskDidCloseWithCodeReason func(session URLSession, webSocketTask URLSessionWebSocketTask, closeCode URLSessionWebSocketCloseCode, reason []byte) + _URLSessionWebSocketTaskDidOpenWithProtocol func(session URLSession, webSocketTask URLSessionWebSocketTask, protocol string) } func (di *URLSessionWebSocketDelegate) HasURLSessionWebSocketTaskDidOpenWithProtocol() bool { @@ -42,23 +37,6 @@ func (di *URLSessionWebSocketDelegate) SetURLSessionWebSocketTaskDidOpenWithProt func (di *URLSessionWebSocketDelegate) URLSessionWebSocketTaskDidOpenWithProtocol(session URLSession, webSocketTask URLSessionWebSocketTask, protocol string) { di._URLSessionWebSocketTaskDidOpenWithProtocol(session, webSocketTask, protocol) } -func (di *URLSessionWebSocketDelegate) HasURLSessionWebSocketTaskDidCloseWithCodeReason() bool { - return di._URLSessionWebSocketTaskDidCloseWithCodeReason != nil -} - -// Tells the delegate that the WebSocket task received a close frame from the server endpoint, optionally including a close code and reason from the server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketdelegate/3181188-urlsession?language=objc -func (di *URLSessionWebSocketDelegate) SetURLSessionWebSocketTaskDidCloseWithCodeReason(f func(session URLSession, webSocketTask URLSessionWebSocketTask, closeCode URLSessionWebSocketCloseCode, reason []byte)) { - di._URLSessionWebSocketTaskDidCloseWithCodeReason = f -} - -// Tells the delegate that the WebSocket task received a close frame from the server endpoint, optionally including a close code and reason from the server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketdelegate/3181188-urlsession?language=objc -func (di *URLSessionWebSocketDelegate) URLSessionWebSocketTaskDidCloseWithCodeReason(session URLSession, webSocketTask URLSessionWebSocketTask, closeCode URLSessionWebSocketCloseCode, reason []byte) { - di._URLSessionWebSocketTaskDidCloseWithCodeReason(session, webSocketTask, closeCode, reason) -} // ensure impl type implements protocol interface var _ PURLSessionWebSocketDelegate = (*URLSessionWebSocketDelegateObject)(nil) @@ -78,14 +56,3 @@ func (u_ URLSessionWebSocketDelegateObject) HasURLSessionWebSocketTaskDidOpenWit func (u_ URLSessionWebSocketDelegateObject) URLSessionWebSocketTaskDidOpenWithProtocol(session URLSession, webSocketTask URLSessionWebSocketTask, protocol string) { objc.Call[objc.Void](u_, objc.Sel("URLSession:webSocketTask:didOpenWithProtocol:"), session, webSocketTask, protocol) } - -func (u_ URLSessionWebSocketDelegateObject) HasURLSessionWebSocketTaskDidCloseWithCodeReason() bool { - return u_.RespondsToSelector(objc.Sel("URLSession:webSocketTask:didCloseWithCode:reason:")) -} - -// Tells the delegate that the WebSocket task received a close frame from the server endpoint, optionally including a close code and reason from the server. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketdelegate/3181188-urlsession?language=objc -func (u_ URLSessionWebSocketDelegateObject) URLSessionWebSocketTaskDidCloseWithCodeReason(session URLSession, webSocketTask URLSessionWebSocketTask, closeCode URLSessionWebSocketCloseCode, reason []byte) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:webSocketTask:didCloseWithCode:reason:"), session, webSocketTask, closeCode, reason) -} diff --git a/macos/foundation/url_session_web_socket_message.gen.go b/macos/foundation/url_session_web_socket_message.gen.go index 8be52c01..e9ecdd33 100644 --- a/macos/foundation/url_session_web_socket_message.gen.go +++ b/macos/foundation/url_session_web_socket_message.gen.go @@ -18,8 +18,8 @@ type _URLSessionWebSocketMessageClass struct { // An interface definition for the [URLSessionWebSocketMessage] class. type IURLSessionWebSocketMessage interface { objc.IObject - String() string Data() []byte + String() string Type() URLSessionWebSocketMessageType } @@ -36,30 +36,30 @@ func URLSessionWebSocketMessageFrom(ptr unsafe.Pointer) URLSessionWebSocketMessa } } -func (u_ URLSessionWebSocketMessage) InitWithString(string_ string) URLSessionWebSocketMessage { - rv := objc.Call[URLSessionWebSocketMessage](u_, objc.Sel("initWithString:"), string_) +func (u_ URLSessionWebSocketMessage) InitWithData(data []byte) URLSessionWebSocketMessage { + rv := objc.Call[URLSessionWebSocketMessage](u_, objc.Sel("initWithData:"), data) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181193-initwithstring?language=objc -func NewURLSessionWebSocketMessageWithString(string_ string) URLSessionWebSocketMessage { - instance := URLSessionWebSocketMessageClass.Alloc().InitWithString(string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181192-initwithdata?language=objc +func NewURLSessionWebSocketMessageWithData(data []byte) URLSessionWebSocketMessage { + instance := URLSessionWebSocketMessageClass.Alloc().InitWithData(data) instance.Autorelease() return instance } -func (u_ URLSessionWebSocketMessage) InitWithData(data []byte) URLSessionWebSocketMessage { - rv := objc.Call[URLSessionWebSocketMessage](u_, objc.Sel("initWithData:"), data) +func (u_ URLSessionWebSocketMessage) InitWithString(string_ string) URLSessionWebSocketMessage { + rv := objc.Call[URLSessionWebSocketMessage](u_, objc.Sel("initWithString:"), string_) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181192-initwithdata?language=objc -func NewURLSessionWebSocketMessageWithData(data []byte) URLSessionWebSocketMessage { - instance := URLSessionWebSocketMessageClass.Alloc().InitWithData(data) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181193-initwithstring?language=objc +func NewURLSessionWebSocketMessageWithString(string_ string) URLSessionWebSocketMessage { + instance := URLSessionWebSocketMessageClass.Alloc().InitWithString(string_) instance.Autorelease() return instance } @@ -86,17 +86,17 @@ func (u_ URLSessionWebSocketMessage) Init() URLSessionWebSocketMessage { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181194-string?language=objc -func (u_ URLSessionWebSocketMessage) String() string { - rv := objc.Call[string](u_, objc.Sel("string")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181191-data?language=objc +func (u_ URLSessionWebSocketMessage) Data() []byte { + rv := objc.Call[[]byte](u_, objc.Sel("data")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181191-data?language=objc -func (u_ URLSessionWebSocketMessage) Data() []byte { - rv := objc.Call[[]byte](u_, objc.Sel("data")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181194-string?language=objc +func (u_ URLSessionWebSocketMessage) String() string { + rv := objc.Call[string](u_, objc.Sel("string")) return rv } diff --git a/macos/foundation/url_session_web_socket_task.gen.go b/macos/foundation/url_session_web_socket_task.gen.go index c1bf3e5a..100097f6 100644 --- a/macos/foundation/url_session_web_socket_task.gen.go +++ b/macos/foundation/url_session_web_socket_task.gen.go @@ -18,14 +18,14 @@ type _URLSessionWebSocketTaskClass struct { // An interface definition for the [URLSessionWebSocketTask] class. type IURLSessionWebSocketTask interface { IURLSessionTask - SendMessageCompletionHandler(message IURLSessionWebSocketMessage, completionHandler func(error Error)) - SendPingWithPongReceiveHandler(pongReceiveHandler func(error Error)) ReceiveMessageWithCompletionHandler(completionHandler func(message URLSessionWebSocketMessage, error Error)) + SendMessageCompletionHandler(message IURLSessionWebSocketMessage, completionHandler func(error Error)) CancelWithCloseCodeReason(closeCode URLSessionWebSocketCloseCode, reason []byte) + SendPingWithPongReceiveHandler(pongReceiveHandler func(error Error)) + CloseReason() []byte MaximumMessageSize() int SetMaximumMessageSize(value int) CloseCode() URLSessionWebSocketCloseCode - CloseReason() []byte } // A URL session task that communicates over the WebSockets protocol standard. [Full Topic] @@ -61,6 +61,13 @@ func (u_ URLSessionWebSocketTask) Init() URLSessionWebSocketTask { return rv } +// Reads a WebSocket message once all the frames of the message are available. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181204-receivemessagewithcompletionhand?language=objc +func (u_ URLSessionWebSocketTask) ReceiveMessageWithCompletionHandler(completionHandler func(message URLSessionWebSocketMessage, error Error)) { + objc.Call[objc.Void](u_, objc.Sel("receiveMessageWithCompletionHandler:"), completionHandler) +} + // Sends a WebSocket message, receiving the result in a completion handler. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181205-sendmessage?language=objc @@ -68,6 +75,13 @@ func (u_ URLSessionWebSocketTask) SendMessageCompletionHandler(message IURLSessi objc.Call[objc.Void](u_, objc.Sel("sendMessage:completionHandler:"), message, completionHandler) } +// Sends a close frame with the given close code and optional close reason. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181200-cancelwithclosecode?language=objc +func (u_ URLSessionWebSocketTask) CancelWithCloseCodeReason(closeCode URLSessionWebSocketCloseCode, reason []byte) { + objc.Call[objc.Void](u_, objc.Sel("cancelWithCloseCode:reason:"), closeCode, reason) +} + // Sends a ping frame from the client side, with a closure to receive the pong from the server endpoint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181206-sendpingwithpongreceivehandler?language=objc @@ -75,18 +89,12 @@ func (u_ URLSessionWebSocketTask) SendPingWithPongReceiveHandler(pongReceiveHand objc.Call[objc.Void](u_, objc.Sel("sendPingWithPongReceiveHandler:"), pongReceiveHandler) } -// Reads a WebSocket message once all the frames of the message are available. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181204-receivemessagewithcompletionhand?language=objc -func (u_ URLSessionWebSocketTask) ReceiveMessageWithCompletionHandler(completionHandler func(message URLSessionWebSocketMessage, error Error)) { - objc.Call[objc.Void](u_, objc.Sel("receiveMessageWithCompletionHandler:"), completionHandler) -} - -// Sends a close frame with the given close code and optional close reason. [Full Topic] +// A block of data that provides further information about why a connection closed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181200-cancelwithclosecode?language=objc -func (u_ URLSessionWebSocketTask) CancelWithCloseCodeReason(closeCode URLSessionWebSocketCloseCode, reason []byte) { - objc.Call[objc.Void](u_, objc.Sel("cancelWithCloseCode:reason:"), closeCode, reason) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181202-closereason?language=objc +func (u_ URLSessionWebSocketTask) CloseReason() []byte { + rv := objc.Call[[]byte](u_, objc.Sel("closeReason")) + return rv } // The maximum number of bytes to buffer before the receive call fails with an error. [Full Topic] @@ -111,11 +119,3 @@ func (u_ URLSessionWebSocketTask) CloseCode() URLSessionWebSocketCloseCode { rv := objc.Call[URLSessionWebSocketCloseCode](u_, objc.Sel("closeCode")) return rv } - -// A block of data that provides further information about why a connection closed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181202-closereason?language=objc -func (u_ URLSessionWebSocketTask) CloseReason() []byte { - rv := objc.Call[[]byte](u_, objc.Sel("closeReason")) - return rv -} diff --git a/macos/foundation/user_activity.gen.go b/macos/foundation/user_activity.gen.go index 3b49e5c4..0946b917 100644 --- a/macos/foundation/user_activity.gen.go +++ b/macos/foundation/user_activity.gen.go @@ -18,50 +18,50 @@ type _UserActivityClass struct { // An interface definition for the [UserActivity] class. type IUserActivity interface { objc.IObject - Invalidate() - GetContinuationStreamsWithCompletionHandler(completionHandler func(inputStream InputStream, outputStream OutputStream, error Error)) BecomeCurrent() - ResignCurrent() AddUserInfoEntriesFromDictionary(otherDictionary Dictionary) - ContextIdentifierPath() []string + GetContinuationStreamsWithCompletionHandler(completionHandler func(inputStream InputStream, outputStream OutputStream, error Error)) + ResignCurrent() + Invalidate() + SupportsContinuationStreams() bool + SetSupportsContinuationStreams(value bool) + IsClassKitDeepLink() bool + ActivityType() string + IsEligibleForHandoff() bool + SetEligibleForHandoff(value bool) UserInfo() Dictionary SetUserInfo(value Dictionary) - NeedsSave() bool - SetNeedsSave(value bool) - ContentAttributeSet() objc.Object - SetContentAttributeSet(value objc.IObject) ExpirationDate() Date SetExpirationDate(value IDate) + Delegate() UserActivityDelegateObject + SetDelegate(value PUserActivityDelegate) + SetDelegateObject(valueObject objc.IObject) + DetectedBarcodeDescriptor() objc.Object TargetContentIdentifier() string SetTargetContentIdentifier(value string) - DetectedBarcodeDescriptor() objc.Object + ContentAttributeSet() objc.Object + SetContentAttributeSet(value objc.IObject) + ContextIdentifierPath() []string + SuggestedInvocationPhrase() string + SetSuggestedInvocationPhrase(value string) + PersistentIdentifier() UserActivityPersistentIdentifier + SetPersistentIdentifier(value UserActivityPersistentIdentifier) + Title() string + SetTitle(value string) RequiredUserInfoKeys() Set SetRequiredUserInfoKeys(value ISet) + WebpageURL() URL + SetWebpageURL(value IURL) IsEligibleForPublicIndexing() bool SetEligibleForPublicIndexing(value bool) - ActivityType() string IsEligibleForSearch() bool SetEligibleForSearch(value bool) - Title() string - SetTitle(value string) - SuggestedInvocationPhrase() string - SetSuggestedInvocationPhrase(value string) + NeedsSave() bool + SetNeedsSave(value bool) Keywords() Set SetKeywords(value ISet) - IsEligibleForHandoff() bool - SetEligibleForHandoff(value bool) ReferrerURL() URL SetReferrerURL(value IURL) - Delegate() UserActivityDelegateObject - SetDelegate(value PUserActivityDelegate) - SetDelegateObject(valueObject objc.IObject) - IsClassKitDeepLink() bool - SupportsContinuationStreams() bool - SetSupportsContinuationStreams(value bool) - PersistentIdentifier() UserActivityPersistentIdentifier - SetPersistentIdentifier(value UserActivityPersistentIdentifier) - WebpageURL() URL - SetWebpageURL(value IURL) } // A representation of the state of your app at a moment in time. [Full Topic] @@ -111,11 +111,18 @@ func (u_ UserActivity) Init() UserActivity { return rv } -// Invalidates an activity and marks it as no longer eligible for continuation. [Full Topic] +// Marks the activity as currently in use by the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1416401-invalidate?language=objc -func (u_ UserActivity) Invalidate() { - objc.Call[objc.Void](u_, objc.Sel("invalidate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1413665-becomecurrent?language=objc +func (u_ UserActivity) BecomeCurrent() { + objc.Call[objc.Void](u_, objc.Sel("becomeCurrent")) +} + +// Adds the contents of the specified dictionary to the user info dictionary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1410066-adduserinfoentriesfromdictionary?language=objc +func (u_ UserActivity) AddUserInfoEntriesFromDictionary(otherDictionary Dictionary) { + objc.Call[objc.Void](u_, objc.Sel("addUserInfoEntriesFromDictionary:"), otherDictionary) } // Requests streams back to the originating app. [Full Topic] @@ -125,11 +132,18 @@ func (u_ UserActivity) GetContinuationStreamsWithCompletionHandler(completionHan objc.Call[objc.Void](u_, objc.Sel("getContinuationStreamsWithCompletionHandler:"), completionHandler) } -// Marks the activity as currently in use by the user. [Full Topic] +// Deletes user activities created by your app that have the specified persistent identifiers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1413665-becomecurrent?language=objc -func (u_ UserActivity) BecomeCurrent() { - objc.Call[objc.Void](u_, objc.Sel("becomeCurrent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2980673-deletesaveduseractivitieswithper?language=objc +func (uc _UserActivityClass) DeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers []UserActivityPersistentIdentifier, handler func()) { + objc.Call[objc.Void](uc, objc.Sel("deleteSavedUserActivitiesWithPersistentIdentifiers:completionHandler:"), persistentIdentifiers, handler) +} + +// Deletes user activities created by your app that have the specified persistent identifiers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2980673-deletesaveduseractivitieswithper?language=objc +func UserActivity_DeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers []UserActivityPersistentIdentifier, handler func()) { + UserActivityClass.DeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers, handler) } // Marks this activity object as inactive without invalidating it. [Full Topic] @@ -139,6 +153,13 @@ func (u_ UserActivity) ResignCurrent() { objc.Call[objc.Void](u_, objc.Sel("resignCurrent")) } +// Invalidates an activity and marks it as no longer eligible for continuation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1416401-invalidate?language=objc +func (u_ UserActivity) Invalidate() { + objc.Call[objc.Void](u_, objc.Sel("invalidate")) +} + // Deletes all user activities created by your app. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2980672-deleteallsaveduseractivitieswith?language=objc @@ -153,35 +174,52 @@ func UserActivity_DeleteAllSavedUserActivitiesWithCompletionHandler(handler func UserActivityClass.DeleteAllSavedUserActivitiesWithCompletionHandler(handler) } -// Adds the contents of the specified dictionary to the user info dictionary. [Full Topic] +// A Boolean value that determines whether the continuing app can request streams to be opened back to the originating app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1410066-adduserinfoentriesfromdictionary?language=objc -func (u_ UserActivity) AddUserInfoEntriesFromDictionary(otherDictionary Dictionary) { - objc.Call[objc.Void](u_, objc.Sel("addUserInfoEntriesFromDictionary:"), otherDictionary) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1409195-supportscontinuationstreams?language=objc +func (u_ UserActivity) SupportsContinuationStreams() bool { + rv := objc.Call[bool](u_, objc.Sel("supportsContinuationStreams")) + return rv } -// Deletes user activities created by your app that have the specified persistent identifiers. [Full Topic] +// A Boolean value that determines whether the continuing app can request streams to be opened back to the originating app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2980673-deletesaveduseractivitieswithper?language=objc -func (uc _UserActivityClass) DeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers []UserActivityPersistentIdentifier, handler func()) { - objc.Call[objc.Void](uc, objc.Sel("deleteSavedUserActivitiesWithPersistentIdentifiers:completionHandler:"), persistentIdentifiers, handler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1409195-supportscontinuationstreams?language=objc +func (u_ UserActivity) SetSupportsContinuationStreams(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setSupportsContinuationStreams:"), value) } -// Deletes user activities created by your app that have the specified persistent identifiers. [Full Topic] +// A Boolean value that indicates whether a user activity represents a ClassKit context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2980673-deletesaveduseractivitieswithper?language=objc -func UserActivity_DeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers []UserActivityPersistentIdentifier, handler func()) { - UserActivityClass.DeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers, handler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2953056-isclasskitdeeplink?language=objc +func (u_ UserActivity) IsClassKitDeepLink() bool { + rv := objc.Call[bool](u_, objc.Sel("isClassKitDeepLink")) + return rv } -// The identifier path associated with a user activity generated by an app that adopts ClassKit. [Full Topic] +// The user activity object’s activity type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2866826-contextidentifierpath?language=objc -func (u_ UserActivity) ContextIdentifierPath() []string { - rv := objc.Call[[]string](u_, objc.Sel("contextIdentifierPath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1409611-activitytype?language=objc +func (u_ UserActivity) ActivityType() string { + rv := objc.Call[string](u_, objc.Sel("activityType")) + return rv +} + +// A Boolean value that indicates whether the activity can be continued on another device using Handoff. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1410971-eligibleforhandoff?language=objc +func (u_ UserActivity) IsEligibleForHandoff() bool { + rv := objc.Call[bool](u_, objc.Sel("isEligibleForHandoff")) return rv } +// A Boolean value that indicates whether the activity can be continued on another device using Handoff. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1410971-eligibleforhandoff?language=objc +func (u_ UserActivity) SetEligibleForHandoff(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setEligibleForHandoff:"), value) +} + // A dictionary containing app-specific state information needed to continue an activity on another device. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1411706-userinfo?language=objc @@ -197,49 +235,51 @@ func (u_ UserActivity) SetUserInfo(value Dictionary) { objc.Call[objc.Void](u_, objc.Sel("setUserInfo:"), value) } -// A Boolean value that indicates whether the state of the activity needs to be updated. [Full Topic] +// The date after which the activity is no longer eligible for Handoff or indexing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1408791-needssave?language=objc -func (u_ UserActivity) NeedsSave() bool { - rv := objc.Call[bool](u_, objc.Sel("needsSave")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1413745-expirationdate?language=objc +func (u_ UserActivity) ExpirationDate() Date { + rv := objc.Call[Date](u_, objc.Sel("expirationDate")) return rv } -// A Boolean value that indicates whether the state of the activity needs to be updated. [Full Topic] +// The date after which the activity is no longer eligible for Handoff or indexing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1408791-needssave?language=objc -func (u_ UserActivity) SetNeedsSave(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setNeedsSave:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1413745-expirationdate?language=objc +func (u_ UserActivity) SetExpirationDate(value IDate) { + objc.Call[objc.Void](u_, objc.Sel("setExpirationDate:"), value) } -// A set of properties that describe the activity. [Full Topic] +// The user activity object’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1616398-contentattributeset?language=objc -func (u_ UserActivity) ContentAttributeSet() objc.Object { - rv := objc.Call[objc.Object](u_, objc.Sel("contentAttributeSet")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1412329-delegate?language=objc +func (u_ UserActivity) Delegate() UserActivityDelegateObject { + rv := objc.Call[UserActivityDelegateObject](u_, objc.Sel("delegate")) return rv } -// A set of properties that describe the activity. [Full Topic] +// The user activity object’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1616398-contentattributeset?language=objc -func (u_ UserActivity) SetContentAttributeSet(value objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("setContentAttributeSet:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1412329-delegate?language=objc +func (u_ UserActivity) SetDelegate(value PUserActivityDelegate) { + po0 := objc.WrapAsProtocol("NSUserActivityDelegate", value) + objc.SetAssociatedObject(u_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), po0) } -// The date after which the activity is no longer eligible for Handoff or indexing. [Full Topic] +// The user activity object’s delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1413745-expirationdate?language=objc -func (u_ UserActivity) ExpirationDate() Date { - rv := objc.Call[Date](u_, objc.Sel("expirationDate")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1412329-delegate?language=objc +func (u_ UserActivity) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), valueObject) } -// The date after which the activity is no longer eligible for Handoff or indexing. [Full Topic] +// The barcode that the system scanner passes in. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1413745-expirationdate?language=objc -func (u_ UserActivity) SetExpirationDate(value IDate) { - objc.Call[objc.Void](u_, objc.Sel("setExpirationDate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2935570-detectedbarcodedescriptor?language=objc +func (u_ UserActivity) DetectedBarcodeDescriptor() objc.Object { + rv := objc.Call[objc.Object](u_, objc.Sel("detectedBarcodeDescriptor")) + return rv } // A string that identifies the user activity’s content. [Full Topic] @@ -257,65 +297,57 @@ func (u_ UserActivity) SetTargetContentIdentifier(value string) { objc.Call[objc.Void](u_, objc.Sel("setTargetContentIdentifier:"), value) } -// The barcode that the system scanner passes in. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2935570-detectedbarcodedescriptor?language=objc -func (u_ UserActivity) DetectedBarcodeDescriptor() objc.Object { - rv := objc.Call[objc.Object](u_, objc.Sel("detectedBarcodeDescriptor")) - return rv -} - -// A set of keys that represent the minimal information about the activity that should be stored for later restoration. [Full Topic] +// A set of properties that describe the activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1417256-requireduserinfokeys?language=objc -func (u_ UserActivity) RequiredUserInfoKeys() Set { - rv := objc.Call[Set](u_, objc.Sel("requiredUserInfoKeys")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1616398-contentattributeset?language=objc +func (u_ UserActivity) ContentAttributeSet() objc.Object { + rv := objc.Call[objc.Object](u_, objc.Sel("contentAttributeSet")) return rv } -// A set of keys that represent the minimal information about the activity that should be stored for later restoration. [Full Topic] +// A set of properties that describe the activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1417256-requireduserinfokeys?language=objc -func (u_ UserActivity) SetRequiredUserInfoKeys(value ISet) { - objc.Call[objc.Void](u_, objc.Sel("setRequiredUserInfoKeys:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1616398-contentattributeset?language=objc +func (u_ UserActivity) SetContentAttributeSet(value objc.IObject) { + objc.Call[objc.Void](u_, objc.Sel("setContentAttributeSet:"), value) } -// A Boolean value that indicates whether the activity can be publicly accessed by all iOS users. [Full Topic] +// The identifier path associated with a user activity generated by an app that adopts ClassKit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1414701-eligibleforpublicindexing?language=objc -func (u_ UserActivity) IsEligibleForPublicIndexing() bool { - rv := objc.Call[bool](u_, objc.Sel("isEligibleForPublicIndexing")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2866826-contextidentifierpath?language=objc +func (u_ UserActivity) ContextIdentifierPath() []string { + rv := objc.Call[[]string](u_, objc.Sel("contextIdentifierPath")) return rv } -// A Boolean value that indicates whether the activity can be publicly accessed by all iOS users. [Full Topic] +// A phrase suggested to the user when they create a shortcut. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1414701-eligibleforpublicindexing?language=objc -func (u_ UserActivity) SetEligibleForPublicIndexing(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setEligibleForPublicIndexing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2976237-suggestedinvocationphrase?language=objc +func (u_ UserActivity) SuggestedInvocationPhrase() string { + rv := objc.Call[string](u_, objc.Sel("suggestedInvocationPhrase")) + return rv } -// The user activity object’s activity type. [Full Topic] +// A phrase suggested to the user when they create a shortcut. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1409611-activitytype?language=objc -func (u_ UserActivity) ActivityType() string { - rv := objc.Call[string](u_, objc.Sel("activityType")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2976237-suggestedinvocationphrase?language=objc +func (u_ UserActivity) SetSuggestedInvocationPhrase(value string) { + objc.Call[objc.Void](u_, objc.Sel("setSuggestedInvocationPhrase:"), value) } -// A Boolean value that indicates whether the activity should be added to the on-device index. [Full Topic] +// A value used to identify the user activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1417761-eligibleforsearch?language=objc -func (u_ UserActivity) IsEligibleForSearch() bool { - rv := objc.Call[bool](u_, objc.Sel("isEligibleForSearch")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2980675-persistentidentifier?language=objc +func (u_ UserActivity) PersistentIdentifier() UserActivityPersistentIdentifier { + rv := objc.Call[UserActivityPersistentIdentifier](u_, objc.Sel("persistentIdentifier")) return rv } -// A Boolean value that indicates whether the activity should be added to the on-device index. [Full Topic] +// A value used to identify the user activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1417761-eligibleforsearch?language=objc -func (u_ UserActivity) SetEligibleForSearch(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setEligibleForSearch:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2980675-persistentidentifier?language=objc +func (u_ UserActivity) SetPersistentIdentifier(value UserActivityPersistentIdentifier) { + objc.Call[objc.Void](u_, objc.Sel("setPersistentIdentifier:"), value) } // An optional, user-visible title for this activity, such as a document name or web page title. [Full Topic] @@ -333,139 +365,107 @@ func (u_ UserActivity) SetTitle(value string) { objc.Call[objc.Void](u_, objc.Sel("setTitle:"), value) } -// A phrase suggested to the user when they create a shortcut. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2976237-suggestedinvocationphrase?language=objc -func (u_ UserActivity) SuggestedInvocationPhrase() string { - rv := objc.Call[string](u_, objc.Sel("suggestedInvocationPhrase")) - return rv -} - -// A phrase suggested to the user when they create a shortcut. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2976237-suggestedinvocationphrase?language=objc -func (u_ UserActivity) SetSuggestedInvocationPhrase(value string) { - objc.Call[objc.Void](u_, objc.Sel("setSuggestedInvocationPhrase:"), value) -} - -// A set of localized keywords that can help users find the activity in search results. [Full Topic] +// A set of keys that represent the minimal information about the activity that should be stored for later restoration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1408023-keywords?language=objc -func (u_ UserActivity) Keywords() Set { - rv := objc.Call[Set](u_, objc.Sel("keywords")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1417256-requireduserinfokeys?language=objc +func (u_ UserActivity) RequiredUserInfoKeys() Set { + rv := objc.Call[Set](u_, objc.Sel("requiredUserInfoKeys")) return rv } -// A set of localized keywords that can help users find the activity in search results. [Full Topic] +// A set of keys that represent the minimal information about the activity that should be stored for later restoration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1408023-keywords?language=objc -func (u_ UserActivity) SetKeywords(value ISet) { - objc.Call[objc.Void](u_, objc.Sel("setKeywords:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1417256-requireduserinfokeys?language=objc +func (u_ UserActivity) SetRequiredUserInfoKeys(value ISet) { + objc.Call[objc.Void](u_, objc.Sel("setRequiredUserInfoKeys:"), value) } -// A Boolean value that indicates whether the activity can be continued on another device using Handoff. [Full Topic] +// The URL of the webpage to load in a browser to continue the activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1410971-eligibleforhandoff?language=objc -func (u_ UserActivity) IsEligibleForHandoff() bool { - rv := objc.Call[bool](u_, objc.Sel("isEligibleForHandoff")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1418086-webpageurl?language=objc +func (u_ UserActivity) WebpageURL() URL { + rv := objc.Call[URL](u_, objc.Sel("webpageURL")) return rv } -// A Boolean value that indicates whether the activity can be continued on another device using Handoff. [Full Topic] +// The URL of the webpage to load in a browser to continue the activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1410971-eligibleforhandoff?language=objc -func (u_ UserActivity) SetEligibleForHandoff(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setEligibleForHandoff:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1418086-webpageurl?language=objc +func (u_ UserActivity) SetWebpageURL(value IURL) { + objc.Call[objc.Void](u_, objc.Sel("setWebpageURL:"), value) } -// The URL of the webpage that linked to the webpage URL. [Full Topic] +// A Boolean value that indicates whether the activity can be publicly accessed by all iOS users. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2875762-referrerurl?language=objc -func (u_ UserActivity) ReferrerURL() URL { - rv := objc.Call[URL](u_, objc.Sel("referrerURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1414701-eligibleforpublicindexing?language=objc +func (u_ UserActivity) IsEligibleForPublicIndexing() bool { + rv := objc.Call[bool](u_, objc.Sel("isEligibleForPublicIndexing")) return rv } -// The URL of the webpage that linked to the webpage URL. [Full Topic] +// A Boolean value that indicates whether the activity can be publicly accessed by all iOS users. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2875762-referrerurl?language=objc -func (u_ UserActivity) SetReferrerURL(value IURL) { - objc.Call[objc.Void](u_, objc.Sel("setReferrerURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1414701-eligibleforpublicindexing?language=objc +func (u_ UserActivity) SetEligibleForPublicIndexing(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setEligibleForPublicIndexing:"), value) } -// The user activity object’s delegate. [Full Topic] +// A Boolean value that indicates whether the activity should be added to the on-device index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1412329-delegate?language=objc -func (u_ UserActivity) Delegate() UserActivityDelegateObject { - rv := objc.Call[UserActivityDelegateObject](u_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1417761-eligibleforsearch?language=objc +func (u_ UserActivity) IsEligibleForSearch() bool { + rv := objc.Call[bool](u_, objc.Sel("isEligibleForSearch")) return rv } -// The user activity object’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1412329-delegate?language=objc -func (u_ UserActivity) SetDelegate(value PUserActivityDelegate) { - po0 := objc.WrapAsProtocol("NSUserActivityDelegate", value) - objc.SetAssociatedObject(u_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), po0) -} - -// The user activity object’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1412329-delegate?language=objc -func (u_ UserActivity) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), valueObject) -} - -// A Boolean value that indicates whether a user activity represents a ClassKit context. [Full Topic] +// A Boolean value that indicates whether the activity should be added to the on-device index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2953056-isclasskitdeeplink?language=objc -func (u_ UserActivity) IsClassKitDeepLink() bool { - rv := objc.Call[bool](u_, objc.Sel("isClassKitDeepLink")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1417761-eligibleforsearch?language=objc +func (u_ UserActivity) SetEligibleForSearch(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setEligibleForSearch:"), value) } -// A Boolean value that determines whether the continuing app can request streams to be opened back to the originating app. [Full Topic] +// A Boolean value that indicates whether the state of the activity needs to be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1409195-supportscontinuationstreams?language=objc -func (u_ UserActivity) SupportsContinuationStreams() bool { - rv := objc.Call[bool](u_, objc.Sel("supportsContinuationStreams")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1408791-needssave?language=objc +func (u_ UserActivity) NeedsSave() bool { + rv := objc.Call[bool](u_, objc.Sel("needsSave")) return rv } -// A Boolean value that determines whether the continuing app can request streams to be opened back to the originating app. [Full Topic] +// A Boolean value that indicates whether the state of the activity needs to be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1409195-supportscontinuationstreams?language=objc -func (u_ UserActivity) SetSupportsContinuationStreams(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setSupportsContinuationStreams:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1408791-needssave?language=objc +func (u_ UserActivity) SetNeedsSave(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setNeedsSave:"), value) } -// A value used to identify the user activity. [Full Topic] +// A set of localized keywords that can help users find the activity in search results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2980675-persistentidentifier?language=objc -func (u_ UserActivity) PersistentIdentifier() UserActivityPersistentIdentifier { - rv := objc.Call[UserActivityPersistentIdentifier](u_, objc.Sel("persistentIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1408023-keywords?language=objc +func (u_ UserActivity) Keywords() Set { + rv := objc.Call[Set](u_, objc.Sel("keywords")) return rv } -// A value used to identify the user activity. [Full Topic] +// A set of localized keywords that can help users find the activity in search results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2980675-persistentidentifier?language=objc -func (u_ UserActivity) SetPersistentIdentifier(value UserActivityPersistentIdentifier) { - objc.Call[objc.Void](u_, objc.Sel("setPersistentIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1408023-keywords?language=objc +func (u_ UserActivity) SetKeywords(value ISet) { + objc.Call[objc.Void](u_, objc.Sel("setKeywords:"), value) } -// The URL of the webpage to load in a browser to continue the activity. [Full Topic] +// The URL of the webpage that linked to the webpage URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1418086-webpageurl?language=objc -func (u_ UserActivity) WebpageURL() URL { - rv := objc.Call[URL](u_, objc.Sel("webpageURL")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2875762-referrerurl?language=objc +func (u_ UserActivity) ReferrerURL() URL { + rv := objc.Call[URL](u_, objc.Sel("referrerURL")) return rv } -// The URL of the webpage to load in a browser to continue the activity. [Full Topic] +// The URL of the webpage that linked to the webpage URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1418086-webpageurl?language=objc -func (u_ UserActivity) SetWebpageURL(value IURL) { - objc.Call[objc.Void](u_, objc.Sel("setWebpageURL:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/2875762-referrerurl?language=objc +func (u_ UserActivity) SetReferrerURL(value IURL) { + objc.Call[objc.Void](u_, objc.Sel("setReferrerURL:"), value) } diff --git a/macos/foundation/user_activity_delegate.gen.go b/macos/foundation/user_activity_delegate.gen.go index ed8d558d..9e245567 100644 --- a/macos/foundation/user_activity_delegate.gen.go +++ b/macos/foundation/user_activity_delegate.gen.go @@ -14,20 +14,20 @@ type PUserActivityDelegate interface { UserActivityWasContinued(userActivity UserActivity) HasUserActivityWasContinued() bool - // optional - UserActivityDidReceiveInputStreamOutputStream(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) - HasUserActivityDidReceiveInputStreamOutputStream() bool - // optional UserActivityWillSave(userActivity UserActivity) HasUserActivityWillSave() bool + + // optional + UserActivityDidReceiveInputStreamOutputStream(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) + HasUserActivityDidReceiveInputStreamOutputStream() bool } // A delegate implementation builder for the [PUserActivityDelegate] protocol. type UserActivityDelegate struct { _UserActivityWasContinued func(userActivity UserActivity) - _UserActivityDidReceiveInputStreamOutputStream func(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) _UserActivityWillSave func(userActivity UserActivity) + _UserActivityDidReceiveInputStreamOutputStream func(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) } func (di *UserActivityDelegate) HasUserActivityWasContinued() bool { @@ -47,23 +47,6 @@ func (di *UserActivityDelegate) SetUserActivityWasContinued(f func(userActivity func (di *UserActivityDelegate) UserActivityWasContinued(userActivity UserActivity) { di._UserActivityWasContinued(userActivity) } -func (di *UserActivityDelegate) HasUserActivityDidReceiveInputStreamOutputStream() bool { - return di._UserActivityDidReceiveInputStreamOutputStream != nil -} - -// Notifies the user activity delegate that an input and output streams are available to open. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivitydelegate/1407386-useractivity?language=objc -func (di *UserActivityDelegate) SetUserActivityDidReceiveInputStreamOutputStream(f func(userActivity UserActivity, inputStream InputStream, outputStream OutputStream)) { - di._UserActivityDidReceiveInputStreamOutputStream = f -} - -// Notifies the user activity delegate that an input and output streams are available to open. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivitydelegate/1407386-useractivity?language=objc -func (di *UserActivityDelegate) UserActivityDidReceiveInputStreamOutputStream(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) { - di._UserActivityDidReceiveInputStreamOutputStream(userActivity, inputStream, outputStream) -} func (di *UserActivityDelegate) HasUserActivityWillSave() bool { return di._UserActivityWillSave != nil } @@ -81,6 +64,23 @@ func (di *UserActivityDelegate) SetUserActivityWillSave(f func(userActivity User func (di *UserActivityDelegate) UserActivityWillSave(userActivity UserActivity) { di._UserActivityWillSave(userActivity) } +func (di *UserActivityDelegate) HasUserActivityDidReceiveInputStreamOutputStream() bool { + return di._UserActivityDidReceiveInputStreamOutputStream != nil +} + +// Notifies the user activity delegate that an input and output streams are available to open. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivitydelegate/1407386-useractivity?language=objc +func (di *UserActivityDelegate) SetUserActivityDidReceiveInputStreamOutputStream(f func(userActivity UserActivity, inputStream InputStream, outputStream OutputStream)) { + di._UserActivityDidReceiveInputStreamOutputStream = f +} + +// Notifies the user activity delegate that an input and output streams are available to open. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivitydelegate/1407386-useractivity?language=objc +func (di *UserActivityDelegate) UserActivityDidReceiveInputStreamOutputStream(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) { + di._UserActivityDidReceiveInputStreamOutputStream(userActivity, inputStream, outputStream) +} // ensure impl type implements protocol interface var _ PUserActivityDelegate = (*UserActivityDelegateObject)(nil) @@ -101,17 +101,6 @@ func (u_ UserActivityDelegateObject) UserActivityWasContinued(userActivity UserA objc.Call[objc.Void](u_, objc.Sel("userActivityWasContinued:"), userActivity) } -func (u_ UserActivityDelegateObject) HasUserActivityDidReceiveInputStreamOutputStream() bool { - return u_.RespondsToSelector(objc.Sel("userActivity:didReceiveInputStream:outputStream:")) -} - -// Notifies the user activity delegate that an input and output streams are available to open. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivitydelegate/1407386-useractivity?language=objc -func (u_ UserActivityDelegateObject) UserActivityDidReceiveInputStreamOutputStream(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) { - objc.Call[objc.Void](u_, objc.Sel("userActivity:didReceiveInputStream:outputStream:"), userActivity, inputStream, outputStream) -} - func (u_ UserActivityDelegateObject) HasUserActivityWillSave() bool { return u_.RespondsToSelector(objc.Sel("userActivityWillSave:")) } @@ -122,3 +111,14 @@ func (u_ UserActivityDelegateObject) HasUserActivityWillSave() bool { func (u_ UserActivityDelegateObject) UserActivityWillSave(userActivity UserActivity) { objc.Call[objc.Void](u_, objc.Sel("userActivityWillSave:"), userActivity) } + +func (u_ UserActivityDelegateObject) HasUserActivityDidReceiveInputStreamOutputStream() bool { + return u_.RespondsToSelector(objc.Sel("userActivity:didReceiveInputStream:outputStream:")) +} + +// Notifies the user activity delegate that an input and output streams are available to open. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivitydelegate/1407386-useractivity?language=objc +func (u_ UserActivityDelegateObject) UserActivityDidReceiveInputStreamOutputStream(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) { + objc.Call[objc.Void](u_, objc.Sel("userActivity:didReceiveInputStream:outputStream:"), userActivity, inputStream, outputStream) +} diff --git a/macos/foundation/user_defaults.gen.go b/macos/foundation/user_defaults.gen.go index da39f203..29a9f61e 100644 --- a/macos/foundation/user_defaults.gen.go +++ b/macos/foundation/user_defaults.gen.go @@ -18,37 +18,36 @@ type _UserDefaultsClass struct { // An interface definition for the [UserDefaults] class. type IUserDefaults interface { objc.IObject - Synchronize() bool - StringArrayForKey(defaultName string) []string - ObjectIsForcedForKey(key string) bool - SetBoolForKey(value bool, defaultName string) - DictionaryRepresentation() map[string]objc.Object URLForKey(defaultName string) URL - SetObjectForKey(value objc.IObject, defaultName string) - FloatForKey(defaultName string) float32 - SetURLForKey(url IURL, defaultName string) - DataForKey(defaultName string) []byte - RemoveSuiteNamed(suiteName string) - PersistentDomainForName(domainName string) map[string]objc.Object - RegisterDefaults(registrationDictionary map[string]objc.IObject) - SetVolatileDomainForName(domain map[string]objc.IObject, domainName string) - BoolForKey(defaultName string) bool - ObjectIsForcedForKeyInDomain(key string, domain string) bool - VolatileDomainForName(domainName string) map[string]objc.Object + ObjectForKey(defaultName string) objc.Object + SetBoolForKey(value bool, defaultName string) ArrayForKey(defaultName string) []objc.Object - DoubleForKey(defaultName string) float64 + StringArrayForKey(defaultName string) []string SetFloatForKey(value float32, defaultName string) - RemoveObjectForKey(defaultName string) - AddSuiteNamed(suiteName string) - RemoveVolatileDomainForName(domainName string) + StringForKey(defaultName string) string + FloatForKey(defaultName string) float32 + BoolForKey(defaultName string) bool RemovePersistentDomainForName(domainName string) + SetObjectForKey(value objc.IObject, defaultName string) + IntegerForKey(defaultName string) int + VolatileDomainForName(domainName string) map[string]objc.Object + ObjectIsForcedForKey(key string) bool SetPersistentDomainForName(domain map[string]objc.IObject, domainName string) + SetDoubleForKey(value float64, defaultName string) + DataForKey(defaultName string) []byte + DoubleForKey(defaultName string) float64 DictionaryForKey(defaultName string) map[string]objc.Object - StringForKey(defaultName string) string - IntegerForKey(defaultName string) int + RegisterDefaults(registrationDictionary map[string]objc.IObject) SetIntegerForKey(value int, defaultName string) - SetDoubleForKey(value float64, defaultName string) - ObjectForKey(defaultName string) objc.Object + RemoveSuiteNamed(suiteName string) + SetURLForKey(url IURL, defaultName string) + RemoveVolatileDomainForName(domainName string) + DictionaryRepresentation() map[string]objc.Object + Synchronize() bool + RemoveObjectForKey(defaultName string) + SetVolatileDomainForName(domain map[string]objc.IObject, domainName string) + PersistentDomainForName(domainName string) map[string]objc.Object + AddSuiteNamed(suiteName string) VolatileDomainNames() []string } @@ -65,11 +64,6 @@ func UserDefaultsFrom(ptr unsafe.Pointer) UserDefaults { } } -func (u_ UserDefaults) Init() UserDefaults { - rv := objc.Call[UserDefaults](u_, objc.Sel("init")) - return rv -} - func (u_ UserDefaults) InitWithSuiteName(suitename string) UserDefaults { rv := objc.Call[UserDefaults](u_, objc.Sel("initWithSuiteName:"), suitename) return rv @@ -84,6 +78,11 @@ func NewUserDefaultsWithSuiteName(suitename string) UserDefaults { return instance } +func (u_ UserDefaults) Init() UserDefaults { + rv := objc.Call[UserDefaults](u_, objc.Sel("init")) + return rv +} + func (uc _UserDefaultsClass) Alloc() UserDefaults { rv := objc.Call[UserDefaults](uc, objc.Sel("alloc")) return rv @@ -99,27 +98,19 @@ func NewUserDefaults() UserDefaults { return UserDefaultsClass.New() } -// Waits for any pending asynchronous updates to the defaults database and returns; this method is unnecessary and shouldn't be used. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1414005-synchronize?language=objc -func (u_ UserDefaults) Synchronize() bool { - rv := objc.Call[bool](u_, objc.Sel("synchronize")) - return rv -} - -// Returns the array of strings associated with the specified key. [Full Topic] +// Returns the URL associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1416414-stringarrayforkey?language=objc -func (u_ UserDefaults) StringArrayForKey(defaultName string) []string { - rv := objc.Call[[]string](u_, objc.Sel("stringArrayForKey:"), defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408648-urlforkey?language=objc +func (u_ UserDefaults) URLForKey(defaultName string) URL { + rv := objc.Call[URL](u_, objc.Sel("URLForKey:"), defaultName) return rv } -// Returns a Boolean value indicating whether the specified key is managed by an administrator. [Full Topic] +// Returns the object associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408635-objectisforcedforkey?language=objc -func (u_ UserDefaults) ObjectIsForcedForKey(key string) bool { - rv := objc.Call[bool](u_, objc.Sel("objectIsForcedForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1410095-objectforkey?language=objc +func (u_ UserDefaults) ObjectForKey(defaultName string) objc.Object { + rv := objc.Call[objc.Object](u_, objc.Sel("objectForKey:"), defaultName) return rv } @@ -130,27 +121,35 @@ func (u_ UserDefaults) SetBoolForKey(value bool, defaultName string) { objc.Call[objc.Void](u_, objc.Sel("setBool:forKey:"), value, defaultName) } -// Returns a dictionary that contains a union of all key-value pairs in the domains in the search list. [Full Topic] +// Returns the array associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1415919-dictionaryrepresentation?language=objc -func (u_ UserDefaults) DictionaryRepresentation() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](u_, objc.Sel("dictionaryRepresentation")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1414792-arrayforkey?language=objc +func (u_ UserDefaults) ArrayForKey(defaultName string) []objc.Object { + rv := objc.Call[[]objc.Object](u_, objc.Sel("arrayForKey:"), defaultName) return rv } -// Returns the URL associated with the specified key. [Full Topic] +// Returns the array of strings associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408648-urlforkey?language=objc -func (u_ UserDefaults) URLForKey(defaultName string) URL { - rv := objc.Call[URL](u_, objc.Sel("URLForKey:"), defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1416414-stringarrayforkey?language=objc +func (u_ UserDefaults) StringArrayForKey(defaultName string) []string { + rv := objc.Call[[]string](u_, objc.Sel("stringArrayForKey:"), defaultName) return rv } -// Sets the value of the specified default key. [Full Topic] +// Sets the value of the specified default key to the specified float value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1414067-setobject?language=objc -func (u_ UserDefaults) SetObjectForKey(value objc.IObject, defaultName string) { - objc.Call[objc.Void](u_, objc.Sel("setObject:forKey:"), value, defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1413320-setfloat?language=objc +func (u_ UserDefaults) SetFloatForKey(value float32, defaultName string) { + objc.Call[objc.Void](u_, objc.Sel("setFloat:forKey:"), value, defaultName) +} + +// Returns the string associated with the specified key. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1416700-stringforkey?language=objc +func (u_ UserDefaults) StringForKey(defaultName string) string { + rv := objc.Call[string](u_, objc.Sel("stringForKey:"), defaultName) + return rv } // Returns the float value associated with the specified key. [Full Topic] @@ -161,79 +160,71 @@ func (u_ UserDefaults) FloatForKey(defaultName string) float32 { return rv } -// Sets the value of the specified default key to the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1414194-seturl?language=objc -func (u_ UserDefaults) SetURLForKey(url IURL, defaultName string) { - objc.Call[objc.Void](u_, objc.Sel("setURL:forKey:"), url, defaultName) -} - -// Returns the data object associated with the specified key. [Full Topic] +// Returns the Boolean value associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1409590-dataforkey?language=objc -func (u_ UserDefaults) DataForKey(defaultName string) []byte { - rv := objc.Call[[]byte](u_, objc.Sel("dataForKey:"), defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1416388-boolforkey?language=objc +func (u_ UserDefaults) BoolForKey(defaultName string) bool { + rv := objc.Call[bool](u_, objc.Sel("boolForKey:"), defaultName) return rv } -// Removes the specified domain name from the receiver’s search list. [Full Topic] +// Removes the contents of the specified persistent domain from the user’s defaults. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408047-removesuitenamed?language=objc -func (u_ UserDefaults) RemoveSuiteNamed(suiteName string) { - objc.Call[objc.Void](u_, objc.Sel("removeSuiteNamed:"), suiteName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1417339-removepersistentdomainforname?language=objc +func (u_ UserDefaults) RemovePersistentDomainForName(domainName string) { + objc.Call[objc.Void](u_, objc.Sel("removePersistentDomainForName:"), domainName) } -// Returns a dictionary representation of the defaults for the specified domain. [Full Topic] +// Sets the value of the specified default key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1412197-persistentdomainforname?language=objc -func (u_ UserDefaults) PersistentDomainForName(domainName string) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](u_, objc.Sel("persistentDomainForName:"), domainName) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1414067-setobject?language=objc +func (u_ UserDefaults) SetObjectForKey(value objc.IObject, defaultName string) { + objc.Call[objc.Void](u_, objc.Sel("setObject:forKey:"), value, defaultName) } -// Adds the contents of the specified dictionary to the registration domain. [Full Topic] +// Returns the integer value associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1417065-registerdefaults?language=objc -func (u_ UserDefaults) RegisterDefaults(registrationDictionary map[string]objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("registerDefaults:"), registrationDictionary) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1407405-integerforkey?language=objc +func (u_ UserDefaults) IntegerForKey(defaultName string) int { + rv := objc.Call[int](u_, objc.Sel("integerForKey:"), defaultName) + return rv } -// Sets the dictionary for the specified volatile domain. [Full Topic] +// Returns the dictionary for the specified volatile domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1413720-setvolatiledomain?language=objc -func (u_ UserDefaults) SetVolatileDomainForName(domain map[string]objc.IObject, domainName string) { - objc.Call[objc.Void](u_, objc.Sel("setVolatileDomain:forName:"), domain, domainName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1409592-volatiledomainforname?language=objc +func (u_ UserDefaults) VolatileDomainForName(domainName string) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](u_, objc.Sel("volatileDomainForName:"), domainName) + return rv } -// Returns the Boolean value associated with the specified key. [Full Topic] +// Returns a Boolean value indicating whether the specified key is managed by an administrator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1416388-boolforkey?language=objc -func (u_ UserDefaults) BoolForKey(defaultName string) bool { - rv := objc.Call[bool](u_, objc.Sel("boolForKey:"), defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408635-objectisforcedforkey?language=objc +func (u_ UserDefaults) ObjectIsForcedForKey(key string) bool { + rv := objc.Call[bool](u_, objc.Sel("objectIsForcedForKey:"), key) return rv } -// Returns a Boolean value indicating whether the key in the specified domain is managed by an administrator. [Full Topic] +// Sets a dictionary for the specified persistent domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1416306-objectisforcedforkey?language=objc -func (u_ UserDefaults) ObjectIsForcedForKeyInDomain(key string, domain string) bool { - rv := objc.Call[bool](u_, objc.Sel("objectIsForcedForKey:inDomain:"), key, domain) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408187-setpersistentdomain?language=objc +func (u_ UserDefaults) SetPersistentDomainForName(domain map[string]objc.IObject, domainName string) { + objc.Call[objc.Void](u_, objc.Sel("setPersistentDomain:forName:"), domain, domainName) } -// Returns the dictionary for the specified volatile domain. [Full Topic] +// Sets the value of the specified default key to the double value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1409592-volatiledomainforname?language=objc -func (u_ UserDefaults) VolatileDomainForName(domainName string) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](u_, objc.Sel("volatileDomainForName:"), domainName) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408646-setdouble?language=objc +func (u_ UserDefaults) SetDoubleForKey(value float64, defaultName string) { + objc.Call[objc.Void](u_, objc.Sel("setDouble:forKey:"), value, defaultName) } -// Returns the array associated with the specified key. [Full Topic] +// Returns the data object associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1414792-arrayforkey?language=objc -func (u_ UserDefaults) ArrayForKey(defaultName string) []objc.Object { - rv := objc.Call[[]objc.Object](u_, objc.Sel("arrayForKey:"), defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1409590-dataforkey?language=objc +func (u_ UserDefaults) DataForKey(defaultName string) []byte { + rv := objc.Call[[]byte](u_, objc.Sel("dataForKey:"), defaultName) return rv } @@ -245,25 +236,40 @@ func (u_ UserDefaults) DoubleForKey(defaultName string) float64 { return rv } -// Sets the value of the specified default key to the specified float value. [Full Topic] +// Returns the dictionary object associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1413320-setfloat?language=objc -func (u_ UserDefaults) SetFloatForKey(value float32, defaultName string) { - objc.Call[objc.Void](u_, objc.Sel("setFloat:forKey:"), value, defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408563-dictionaryforkey?language=objc +func (u_ UserDefaults) DictionaryForKey(defaultName string) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](u_, objc.Sel("dictionaryForKey:"), defaultName) + return rv } -// Removes the value of the specified default key. [Full Topic] +// Adds the contents of the specified dictionary to the registration domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1411182-removeobjectforkey?language=objc -func (u_ UserDefaults) RemoveObjectForKey(defaultName string) { - objc.Call[objc.Void](u_, objc.Sel("removeObjectForKey:"), defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1417065-registerdefaults?language=objc +func (u_ UserDefaults) RegisterDefaults(registrationDictionary map[string]objc.IObject) { + objc.Call[objc.Void](u_, objc.Sel("registerDefaults:"), registrationDictionary) } -// Inserts the specified domain name into the receiver’s search list. [Full Topic] +// Sets the value of the specified default key to the specified integer value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1410294-addsuitenamed?language=objc -func (u_ UserDefaults) AddSuiteNamed(suiteName string) { - objc.Call[objc.Void](u_, objc.Sel("addSuiteNamed:"), suiteName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1413614-setinteger?language=objc +func (u_ UserDefaults) SetIntegerForKey(value int, defaultName string) { + objc.Call[objc.Void](u_, objc.Sel("setInteger:forKey:"), value, defaultName) +} + +// Removes the specified domain name from the receiver’s search list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408047-removesuitenamed?language=objc +func (u_ UserDefaults) RemoveSuiteNamed(suiteName string) { + objc.Call[objc.Void](u_, objc.Sel("removeSuiteNamed:"), suiteName) +} + +// Sets the value of the specified default key to the specified URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1414194-seturl?language=objc +func (u_ UserDefaults) SetURLForKey(url IURL, defaultName string) { + objc.Call[objc.Void](u_, objc.Sel("setURL:forKey:"), url, defaultName) } // Removes the specified volatile domain from the user’s defaults. [Full Topic] @@ -273,11 +279,20 @@ func (u_ UserDefaults) RemoveVolatileDomainForName(domainName string) { objc.Call[objc.Void](u_, objc.Sel("removeVolatileDomainForName:"), domainName) } -// Removes the contents of the specified persistent domain from the user’s defaults. [Full Topic] +// Returns a dictionary that contains a union of all key-value pairs in the domains in the search list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1417339-removepersistentdomainforname?language=objc -func (u_ UserDefaults) RemovePersistentDomainForName(domainName string) { - objc.Call[objc.Void](u_, objc.Sel("removePersistentDomainForName:"), domainName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1415919-dictionaryrepresentation?language=objc +func (u_ UserDefaults) DictionaryRepresentation() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](u_, objc.Sel("dictionaryRepresentation")) + return rv +} + +// Waits for any pending asynchronous updates to the defaults database and returns; this method is unnecessary and shouldn't be used. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1414005-synchronize?language=objc +func (u_ UserDefaults) Synchronize() bool { + rv := objc.Call[bool](u_, objc.Sel("synchronize")) + return rv } // This method has no effect and shouldn't be used. [Full Topic] @@ -294,65 +309,33 @@ func UserDefaults_ResetStandardUserDefaults() { UserDefaultsClass.ResetStandardUserDefaults() } -// Sets a dictionary for the specified persistent domain. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408187-setpersistentdomain?language=objc -func (u_ UserDefaults) SetPersistentDomainForName(domain map[string]objc.IObject, domainName string) { - objc.Call[objc.Void](u_, objc.Sel("setPersistentDomain:forName:"), domain, domainName) -} - -// Returns the dictionary object associated with the specified key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408563-dictionaryforkey?language=objc -func (u_ UserDefaults) DictionaryForKey(defaultName string) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](u_, objc.Sel("dictionaryForKey:"), defaultName) - return rv -} - -// Returns the string associated with the specified key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1416700-stringforkey?language=objc -func (u_ UserDefaults) StringForKey(defaultName string) string { - rv := objc.Call[string](u_, objc.Sel("stringForKey:"), defaultName) - return rv -} - -// Returns the integer value associated with the specified key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1407405-integerforkey?language=objc -func (u_ UserDefaults) IntegerForKey(defaultName string) int { - rv := objc.Call[int](u_, objc.Sel("integerForKey:"), defaultName) - return rv -} - -// Sets the value of the specified default key to the specified integer value. [Full Topic] +// Removes the value of the specified default key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1413614-setinteger?language=objc -func (u_ UserDefaults) SetIntegerForKey(value int, defaultName string) { - objc.Call[objc.Void](u_, objc.Sel("setInteger:forKey:"), value, defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1411182-removeobjectforkey?language=objc +func (u_ UserDefaults) RemoveObjectForKey(defaultName string) { + objc.Call[objc.Void](u_, objc.Sel("removeObjectForKey:"), defaultName) } -// Sets the value of the specified default key to the double value. [Full Topic] +// Sets the dictionary for the specified volatile domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1408646-setdouble?language=objc -func (u_ UserDefaults) SetDoubleForKey(value float64, defaultName string) { - objc.Call[objc.Void](u_, objc.Sel("setDouble:forKey:"), value, defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1413720-setvolatiledomain?language=objc +func (u_ UserDefaults) SetVolatileDomainForName(domain map[string]objc.IObject, domainName string) { + objc.Call[objc.Void](u_, objc.Sel("setVolatileDomain:forName:"), domain, domainName) } -// Returns the object associated with the specified key. [Full Topic] +// Returns a dictionary representation of the defaults for the specified domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1410095-objectforkey?language=objc -func (u_ UserDefaults) ObjectForKey(defaultName string) objc.Object { - rv := objc.Call[objc.Object](u_, objc.Sel("objectForKey:"), defaultName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1412197-persistentdomainforname?language=objc +func (u_ UserDefaults) PersistentDomainForName(domainName string) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](u_, objc.Sel("persistentDomainForName:"), domainName) return rv } -// The current volatile domain names. [Full Topic] +// Inserts the specified domain name into the receiver’s search list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1414231-volatiledomainnames?language=objc -func (u_ UserDefaults) VolatileDomainNames() []string { - rv := objc.Call[[]string](u_, objc.Sel("volatileDomainNames")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1410294-addsuitenamed?language=objc +func (u_ UserDefaults) AddSuiteNamed(suiteName string) { + objc.Call[objc.Void](u_, objc.Sel("addSuiteNamed:"), suiteName) } // Returns the shared defaults object. [Full Topic] @@ -369,3 +352,11 @@ func (uc _UserDefaultsClass) StandardUserDefaults() UserDefaults { func UserDefaults_StandardUserDefaults() UserDefaults { return UserDefaultsClass.StandardUserDefaults() } + +// The current volatile domain names. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1414231-volatiledomainnames?language=objc +func (u_ UserDefaults) VolatileDomainNames() []string { + rv := objc.Call[[]string](u_, objc.Sel("volatileDomainNames")) + return rv +} diff --git a/macos/foundation/user_unix_task.gen.go b/macos/foundation/user_unix_task.gen.go index 0b7acac7..c774a87a 100644 --- a/macos/foundation/user_unix_task.gen.go +++ b/macos/foundation/user_unix_task.gen.go @@ -19,12 +19,12 @@ type _UserUnixTaskClass struct { type IUserUnixTask interface { IUserScriptTask ExecuteWithArgumentsCompletionHandler(arguments []string, handler UserUnixTaskCompletionHandler) - StandardInput() FileHandle - SetStandardInput(value IFileHandle) StandardOutput() FileHandle SetStandardOutput(value IFileHandle) StandardError() FileHandle SetStandardError(value IFileHandle) + StandardInput() FileHandle + SetStandardInput(value IFileHandle) } // An object that executes unix applications. [Full Topic] @@ -81,21 +81,6 @@ func (u_ UserUnixTask) ExecuteWithArgumentsCompletionHandler(arguments []string, objc.Call[objc.Void](u_, objc.Sel("executeWithArguments:completionHandler:"), arguments, handler) } -// The standard input stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserunixtask/1407821-standardinput?language=objc -func (u_ UserUnixTask) StandardInput() FileHandle { - rv := objc.Call[FileHandle](u_, objc.Sel("standardInput")) - return rv -} - -// The standard input stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserunixtask/1407821-standardinput?language=objc -func (u_ UserUnixTask) SetStandardInput(value IFileHandle) { - objc.Call[objc.Void](u_, objc.Sel("setStandardInput:"), value) -} - // The standard output stream. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserunixtask/1418151-standardoutput?language=objc @@ -125,3 +110,18 @@ func (u_ UserUnixTask) StandardError() FileHandle { func (u_ UserUnixTask) SetStandardError(value IFileHandle) { objc.Call[objc.Void](u_, objc.Sel("setStandardError:"), value) } + +// The standard input stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserunixtask/1407821-standardinput?language=objc +func (u_ UserUnixTask) StandardInput() FileHandle { + rv := objc.Call[FileHandle](u_, objc.Sel("standardInput")) + return rv +} + +// The standard input stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserunixtask/1407821-standardinput?language=objc +func (u_ UserUnixTask) SetStandardInput(value IFileHandle) { + objc.Call[objc.Void](u_, objc.Sel("setStandardInput:"), value) +} diff --git a/macos/foundation/uuid.gen.go b/macos/foundation/uuid.gen.go index e9d9fb16..dc95f50b 100644 --- a/macos/foundation/uuid.gen.go +++ b/macos/foundation/uuid.gen.go @@ -50,18 +50,16 @@ func NewUUIDWithUUIDBytes(bytes *uint8) UUID { return instance } -func (u_ UUID) InitWithUUIDString(string_ string) UUID { - rv := objc.Call[UUID](u_, objc.Sel("initWithUUIDString:"), string_) +func (uc _UUIDClass) UUID() UUID { + rv := objc.Call[UUID](uc, objc.Sel("UUID")) return rv } -// Initializes a new UUID with the formatted string. [Full Topic] +// Create and returns a new UUID with RFC 4122 version 4 random bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuuid/1411662-initwithuuidstring?language=objc -func NewUUIDWithUUIDString(string_ string) UUID { - instance := UUIDClass.Alloc().InitWithUUIDString(string_) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuuid/1574571-uuid?language=objc +func UUID_UUID() UUID { + return UUIDClass.UUID() } func (u_ UUID) Init() UUID { @@ -69,16 +67,18 @@ func (u_ UUID) Init() UUID { return rv } -func (uc _UUIDClass) UUID() UUID { - rv := objc.Call[UUID](uc, objc.Sel("UUID")) +func (u_ UUID) InitWithUUIDString(string_ string) UUID { + rv := objc.Call[UUID](u_, objc.Sel("initWithUUIDString:"), string_) return rv } -// Create and returns a new UUID with RFC 4122 version 4 random bytes. [Full Topic] +// Initializes a new UUID with the formatted string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuuid/1574571-uuid?language=objc -func UUID_UUID() UUID { - return UUIDClass.UUID() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuuid/1411662-initwithuuidstring?language=objc +func NewUUIDWithUUIDString(string_ string) UUID { + instance := UUIDClass.Alloc().InitWithUUIDString(string_) + instance.Autorelease() + return instance } func (uc _UUIDClass) Alloc() UUID { diff --git a/macos/foundation/value.gen.go b/macos/foundation/value.gen.go index 0747a910..d285f13d 100644 --- a/macos/foundation/value.gen.go +++ b/macos/foundation/value.gen.go @@ -21,17 +21,17 @@ type IValue interface { objc.IObject GetValueSize(value unsafe.Pointer, size uint) IsEqualToValue(value IValue) bool - PointValue() Point ObjCType() *uint8 - CMTimeMappingValue() coremedia.TimeMapping - RangeValue() Range CMTimeValue() coremedia.Time + PointValue() Point PointerValue() unsafe.Pointer - EdgeInsetsValue() EdgeInsets + CMTimeRangeValue() coremedia.TimeRange SizeValue() Size - NonretainedObjectValue() objc.Object + EdgeInsetsValue() EdgeInsets + RangeValue() Range + CMTimeMappingValue() coremedia.TimeMapping RectValue() Rect - CMTimeRangeValue() coremedia.TimeRange + NonretainedObjectValue() objc.Object } // A simple container for a single C or Objective-C data item. [Full Topic] @@ -81,51 +81,6 @@ func (v_ Value) Init() Value { return rv } -// Creates a value object containing the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1408098-valuewithnonretainedobject?language=objc -func (vc _ValueClass) ValueWithNonretainedObject(anObject objc.IObject) Value { - rv := objc.Call[Value](vc, objc.Sel("valueWithNonretainedObject:"), anObject) - return rv -} - -// Creates a value object containing the specified object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1408098-valuewithnonretainedobject?language=objc -func Value_ValueWithNonretainedObject(anObject objc.IObject) Value { - return ValueClass.ValueWithNonretainedObject(anObject) -} - -// Creates a value object containing the specified pointer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1415975-valuewithpointer?language=objc -func (vc _ValueClass) ValueWithPointer(pointer unsafe.Pointer) Value { - rv := objc.Call[Value](vc, objc.Sel("valueWithPointer:"), pointer) - return rv -} - -// Creates a value object containing the specified pointer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1415975-valuewithpointer?language=objc -func Value_ValueWithPointer(pointer unsafe.Pointer) Value { - return ValueClass.ValueWithPointer(pointer) -} - -// Creates a value object containing the specified value, interpreted with the specified Objective-C type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1551466-valuewithbytes?language=objc -func (vc _ValueClass) ValueWithBytesObjCType(value unsafe.Pointer, type_ *uint8) Value { - rv := objc.Call[Value](vc, objc.Sel("valueWithBytes:objCType:"), value, type_) - return rv -} - -// Creates a value object containing the specified value, interpreted with the specified Objective-C type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1551466-valuewithbytes?language=objc -func Value_ValueWithBytesObjCType(value unsafe.Pointer, type_ *uint8) Value { - return ValueClass.ValueWithBytesObjCType(value, type_) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1391181-valuewithedgeinsets?language=objc @@ -156,6 +111,21 @@ func Value_ValueWithCMTime(time coremedia.Time) Value { return ValueClass.ValueWithCMTime(time) } +// Creates a value object containing the specified value, interpreted with the specified Objective-C type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1417400-value?language=objc +func (vc _ValueClass) ValueWithObjCType(value unsafe.Pointer, type_ *uint8) Value { + rv := objc.Call[Value](vc, objc.Sel("value:withObjCType:"), value, type_) + return rv +} + +// Creates a value object containing the specified value, interpreted with the specified Objective-C type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1417400-value?language=objc +func Value_ValueWithObjCType(value unsafe.Pointer, type_ *uint8) Value { + return ValueClass.ValueWithObjCType(value, type_) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/2919632-getvalue?language=objc @@ -163,19 +133,19 @@ func (v_ Value) GetValueSize(value unsafe.Pointer, size uint) { objc.Call[objc.Void](v_, objc.Sel("getValue:size:"), value, size) } -// Creates a new value object containing the specified Foundation range structure. [Full Topic] +// Creates a new value object containing the specified Foundation rectangle structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1410315-valuewithrange?language=objc -func (vc _ValueClass) ValueWithRange(range_ Range) Value { - rv := objc.Call[Value](vc, objc.Sel("valueWithRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1391281-valuewithrect?language=objc +func (vc _ValueClass) ValueWithRect(rect Rect) Value { + rv := objc.Call[Value](vc, objc.Sel("valueWithRect:"), rect) return rv } -// Creates a new value object containing the specified Foundation range structure. [Full Topic] +// Creates a new value object containing the specified Foundation rectangle structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1410315-valuewithrange?language=objc -func Value_ValueWithRange(range_ Range) Value { - return ValueClass.ValueWithRange(range_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1391281-valuewithrect?language=objc +func Value_ValueWithRect(rect Rect) Value { + return ValueClass.ValueWithRect(rect) } // Returns a Boolean value that indicates whether the value object and another value object are equal. [Full Topic] @@ -186,6 +156,36 @@ func (v_ Value) IsEqualToValue(value IValue) bool { return rv } +// Creates a value object containing the specified object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1408098-valuewithnonretainedobject?language=objc +func (vc _ValueClass) ValueWithNonretainedObject(anObject objc.IObject) Value { + rv := objc.Call[Value](vc, objc.Sel("valueWithNonretainedObject:"), anObject) + return rv +} + +// Creates a value object containing the specified object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1408098-valuewithnonretainedobject?language=objc +func Value_ValueWithNonretainedObject(anObject objc.IObject) Value { + return ValueClass.ValueWithNonretainedObject(anObject) +} + +// Creates a value object containing the specified value, interpreted with the specified Objective-C type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1551466-valuewithbytes?language=objc +func (vc _ValueClass) ValueWithBytesObjCType(value unsafe.Pointer, type_ *uint8) Value { + rv := objc.Call[Value](vc, objc.Sel("valueWithBytes:objCType:"), value, type_) + return rv +} + +// Creates a value object containing the specified value, interpreted with the specified Objective-C type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1551466-valuewithbytes?language=objc +func Value_ValueWithBytesObjCType(value unsafe.Pointer, type_ *uint8) Value { + return ValueClass.ValueWithBytesObjCType(value, type_) +} + // Creates a new value object containing the specified Foundation point structure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1391106-valuewithpoint?language=objc @@ -201,34 +201,34 @@ func Value_ValueWithPoint(point Point) Value { return ValueClass.ValueWithPoint(point) } -// Creates a value object containing the specified value, interpreted with the specified Objective-C type. [Full Topic] +// Creates a new value object containing the specified Foundation range structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1417400-value?language=objc -func (vc _ValueClass) ValueWithObjCType(value unsafe.Pointer, type_ *uint8) Value { - rv := objc.Call[Value](vc, objc.Sel("value:withObjCType:"), value, type_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1410315-valuewithrange?language=objc +func (vc _ValueClass) ValueWithRange(range_ Range) Value { + rv := objc.Call[Value](vc, objc.Sel("valueWithRange:"), range_) return rv } -// Creates a value object containing the specified value, interpreted with the specified Objective-C type. [Full Topic] +// Creates a new value object containing the specified Foundation range structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1417400-value?language=objc -func Value_ValueWithObjCType(value unsafe.Pointer, type_ *uint8) Value { - return ValueClass.ValueWithObjCType(value, type_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1410315-valuewithrange?language=objc +func Value_ValueWithRange(range_ Range) Value { + return ValueClass.ValueWithRange(range_) } -// Creates a new value object containing the specified CoreMedia time mapping structure. [Full Topic] +// Creates a value object containing the specified pointer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1387556-valuewithcmtimemapping?language=objc -func (vc _ValueClass) ValueWithCMTimeMapping(timeMapping coremedia.TimeMapping) Value { - rv := objc.Call[Value](vc, objc.Sel("valueWithCMTimeMapping:"), timeMapping) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1415975-valuewithpointer?language=objc +func (vc _ValueClass) ValueWithPointer(pointer unsafe.Pointer) Value { + rv := objc.Call[Value](vc, objc.Sel("valueWithPointer:"), pointer) return rv } -// Creates a new value object containing the specified CoreMedia time mapping structure. [Full Topic] +// Creates a value object containing the specified pointer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1387556-valuewithcmtimemapping?language=objc -func Value_ValueWithCMTimeMapping(timeMapping coremedia.TimeMapping) Value { - return ValueClass.ValueWithCMTimeMapping(timeMapping) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1415975-valuewithpointer?language=objc +func Value_ValueWithPointer(pointer unsafe.Pointer) Value { + return ValueClass.ValueWithPointer(pointer) } // Creates a new value object containing the specified CoreMedia time range structure. [Full Topic] @@ -246,6 +246,21 @@ func Value_ValueWithCMTimeRange(timeRange coremedia.TimeRange) Value { return ValueClass.ValueWithCMTimeRange(timeRange) } +// Creates a new value object containing the specified CoreMedia time mapping structure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1387556-valuewithcmtimemapping?language=objc +func (vc _ValueClass) ValueWithCMTimeMapping(timeMapping coremedia.TimeMapping) Value { + rv := objc.Call[Value](vc, objc.Sel("valueWithCMTimeMapping:"), timeMapping) + return rv +} + +// Creates a new value object containing the specified CoreMedia time mapping structure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1387556-valuewithcmtimemapping?language=objc +func Value_ValueWithCMTimeMapping(timeMapping coremedia.TimeMapping) Value { + return ValueClass.ValueWithCMTimeMapping(timeMapping) +} + // Creates a new value object containing the specified Foundation size structure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1391199-valuewithsize?language=objc @@ -261,19 +276,20 @@ func Value_ValueWithSize(size Size) Value { return ValueClass.ValueWithSize(size) } -// Creates a new value object containing the specified Foundation rectangle structure. [Full Topic] +// A C string containing the Objective-C type of the data contained in the value object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1391281-valuewithrect?language=objc -func (vc _ValueClass) ValueWithRect(rect Rect) Value { - rv := objc.Call[Value](vc, objc.Sel("valueWithRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1412365-objctype?language=objc +func (v_ Value) ObjCType() *uint8 { + rv := objc.Call[*uint8](v_, objc.Sel("objCType")) return rv } -// Creates a new value object containing the specified Foundation rectangle structure. [Full Topic] +// The CoreMedia time structure representation of the value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1391281-valuewithrect?language=objc -func Value_ValueWithRect(rect Rect) Value { - return ValueClass.ValueWithRect(rect) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1388151-cmtimevalue?language=objc +func (v_ Value) CMTimeValue() coremedia.Time { + rv := objc.Call[coremedia.Time](v_, objc.Sel("CMTimeValue")) + return rv } // The Foundation point structure representation of the value. [Full Topic] @@ -284,43 +300,27 @@ func (v_ Value) PointValue() Point { return rv } -// A C string containing the Objective-C type of the data contained in the value object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1412365-objctype?language=objc -func (v_ Value) ObjCType() *uint8 { - rv := objc.Call[*uint8](v_, objc.Sel("objCType")) - return rv -} - -// The CoreMedia time mapping structure representation of the value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1387277-cmtimemappingvalue?language=objc -func (v_ Value) CMTimeMappingValue() coremedia.TimeMapping { - rv := objc.Call[coremedia.TimeMapping](v_, objc.Sel("CMTimeMappingValue")) - return rv -} - -// The Foundation range structure representation of the value. [Full Topic] +// Returns the value as an untyped pointer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1413902-rangevalue?language=objc -func (v_ Value) RangeValue() Range { - rv := objc.Call[Range](v_, objc.Sel("rangeValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1410668-pointervalue?language=objc +func (v_ Value) PointerValue() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](v_, objc.Sel("pointerValue")) return rv } -// The CoreMedia time structure representation of the value. [Full Topic] +// The CoreMedia time range structure representation of the value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1388151-cmtimevalue?language=objc -func (v_ Value) CMTimeValue() coremedia.Time { - rv := objc.Call[coremedia.Time](v_, objc.Sel("CMTimeValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1385930-cmtimerangevalue?language=objc +func (v_ Value) CMTimeRangeValue() coremedia.TimeRange { + rv := objc.Call[coremedia.TimeRange](v_, objc.Sel("CMTimeRangeValue")) return rv } -// Returns the value as an untyped pointer. [Full Topic] +// The Foundation size structure representation of the value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1410668-pointervalue?language=objc -func (v_ Value) PointerValue() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](v_, objc.Sel("pointerValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1391301-sizevalue?language=objc +func (v_ Value) SizeValue() Size { + rv := objc.Call[Size](v_, objc.Sel("sizeValue")) return rv } @@ -332,19 +332,19 @@ func (v_ Value) EdgeInsetsValue() EdgeInsets { return rv } -// The Foundation size structure representation of the value. [Full Topic] +// The Foundation range structure representation of the value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1391301-sizevalue?language=objc -func (v_ Value) SizeValue() Size { - rv := objc.Call[Size](v_, objc.Sel("sizeValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1413902-rangevalue?language=objc +func (v_ Value) RangeValue() Range { + rv := objc.Call[Range](v_, objc.Sel("rangeValue")) return rv } -// The value as a non-retained pointer to an object. [Full Topic] +// The CoreMedia time mapping structure representation of the value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1412287-nonretainedobjectvalue?language=objc -func (v_ Value) NonretainedObjectValue() objc.Object { - rv := objc.Call[objc.Object](v_, objc.Sel("nonretainedObjectValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1387277-cmtimemappingvalue?language=objc +func (v_ Value) CMTimeMappingValue() coremedia.TimeMapping { + rv := objc.Call[coremedia.TimeMapping](v_, objc.Sel("CMTimeMappingValue")) return rv } @@ -356,10 +356,10 @@ func (v_ Value) RectValue() Rect { return rv } -// The CoreMedia time range structure representation of the value. [Full Topic] +// The value as a non-retained pointer to an object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1385930-cmtimerangevalue?language=objc -func (v_ Value) CMTimeRangeValue() coremedia.TimeRange { - rv := objc.Call[coremedia.TimeRange](v_, objc.Sel("CMTimeRangeValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1412287-nonretainedobjectvalue?language=objc +func (v_ Value) NonretainedObjectValue() objc.Object { + rv := objc.Call[objc.Object](v_, objc.Sel("nonretainedObjectValue")) return rv } diff --git a/macos/foundation/value_transformer.gen.go b/macos/foundation/value_transformer.gen.go index c9982ac5..54ec5b05 100644 --- a/macos/foundation/value_transformer.gen.go +++ b/macos/foundation/value_transformer.gen.go @@ -55,6 +55,14 @@ func (v_ ValueTransformer) Init() ValueTransformer { return rv } +// Returns the result of transforming a given value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402004-transformedvalue?language=objc +func (v_ ValueTransformer) TransformedValue(value objc.IObject) objc.Object { + rv := objc.Call[objc.Object](v_, objc.Sel("transformedValue:"), value) + return rv +} + // Returns the class of the value returned by the receiver for a forward transformation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1401998-transformedvalueclass?language=objc @@ -70,21 +78,6 @@ func ValueTransformer_TransformedValueClass() objc.Class { return ValueTransformerClass.TransformedValueClass() } -// Returns an array of all the registered value transformers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402012-valuetransformernames?language=objc -func (vc _ValueTransformerClass) ValueTransformerNames() []ValueTransformerName { - rv := objc.Call[[]ValueTransformerName](vc, objc.Sel("valueTransformerNames")) - return rv -} - -// Returns an array of all the registered value transformers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402012-valuetransformernames?language=objc -func ValueTransformer_ValueTransformerNames() []ValueTransformerName { - return ValueTransformerClass.ValueTransformerNames() -} - // Returns the value transformer identified by a given identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402010-valuetransformerforname?language=objc @@ -100,35 +93,27 @@ func ValueTransformer_ValueTransformerForName(name ValueTransformerName) ValueTr return ValueTransformerClass.ValueTransformerForName(name) } -// Returns a Boolean value that indicates whether the receiver can reverse a transformation. [Full Topic] +// Returns the result of the reverse transformation of a given value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402016-allowsreversetransformation?language=objc -func (vc _ValueTransformerClass) AllowsReverseTransformation() bool { - rv := objc.Call[bool](vc, objc.Sel("allowsReverseTransformation")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402020-reversetransformedvalue?language=objc +func (v_ ValueTransformer) ReverseTransformedValue(value objc.IObject) objc.Object { + rv := objc.Call[objc.Object](v_, objc.Sel("reverseTransformedValue:"), value) return rv } -// Returns a Boolean value that indicates whether the receiver can reverse a transformation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402016-allowsreversetransformation?language=objc -func ValueTransformer_AllowsReverseTransformation() bool { - return ValueTransformerClass.AllowsReverseTransformation() -} - -// Returns the result of transforming a given value. [Full Topic] +// Returns an array of all the registered value transformers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402004-transformedvalue?language=objc -func (v_ ValueTransformer) TransformedValue(value objc.IObject) objc.Object { - rv := objc.Call[objc.Object](v_, objc.Sel("transformedValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402012-valuetransformernames?language=objc +func (vc _ValueTransformerClass) ValueTransformerNames() []ValueTransformerName { + rv := objc.Call[[]ValueTransformerName](vc, objc.Sel("valueTransformerNames")) return rv } -// Returns the result of the reverse transformation of a given value. [Full Topic] +// Returns an array of all the registered value transformers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402020-reversetransformedvalue?language=objc -func (v_ ValueTransformer) ReverseTransformedValue(value objc.IObject) objc.Object { - rv := objc.Call[objc.Object](v_, objc.Sel("reverseTransformedValue:"), value) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402012-valuetransformernames?language=objc +func ValueTransformer_ValueTransformerNames() []ValueTransformerName { + return ValueTransformerClass.ValueTransformerNames() } // Registers the provided value transformer with a given identifier. [Full Topic] @@ -144,3 +129,18 @@ func (vc _ValueTransformerClass) SetValueTransformerForName(transformer IValueTr func ValueTransformer_SetValueTransformerForName(transformer IValueTransformer, name ValueTransformerName) { ValueTransformerClass.SetValueTransformerForName(transformer, name) } + +// Returns a Boolean value that indicates whether the receiver can reverse a transformation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402016-allowsreversetransformation?language=objc +func (vc _ValueTransformerClass) AllowsReverseTransformation() bool { + rv := objc.Call[bool](vc, objc.Sel("allowsReverseTransformation")) + return rv +} + +// Returns a Boolean value that indicates whether the receiver can reverse a transformation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402016-allowsreversetransformation?language=objc +func ValueTransformer_AllowsReverseTransformation() bool { + return ValueTransformerClass.AllowsReverseTransformation() +} diff --git a/macos/foundation/whose_specifier.gen.go b/macos/foundation/whose_specifier.gen.go index c91c4847..8dcc0f8e 100644 --- a/macos/foundation/whose_specifier.gen.go +++ b/macos/foundation/whose_specifier.gen.go @@ -18,16 +18,16 @@ type _WhoseSpecifierClass struct { // An interface definition for the [WhoseSpecifier] class. type IWhoseSpecifier interface { IScriptObjectSpecifier - StartSubelementIdentifier() WhoseSubelementIdentifier - SetStartSubelementIdentifier(value WhoseSubelementIdentifier) - EndSubelementIdentifier() WhoseSubelementIdentifier - SetEndSubelementIdentifier(value WhoseSubelementIdentifier) StartSubelementIndex() int SetStartSubelementIndex(value int) - EndSubelementIndex() int - SetEndSubelementIndex(value int) + EndSubelementIdentifier() WhoseSubelementIdentifier + SetEndSubelementIdentifier(value WhoseSubelementIdentifier) Test() ScriptWhoseTest SetTest(value IScriptWhoseTest) + EndSubelementIndex() int + SetEndSubelementIndex(value int) + StartSubelementIdentifier() WhoseSubelementIdentifier + SetStartSubelementIdentifier(value WhoseSubelementIdentifier) } // A specifier that indicates every object in a collection matching a condition. [Full Topic] @@ -105,19 +105,19 @@ func NewWhoseSpecifierWithContainerSpecifierKey(container IScriptObjectSpecifier return instance } -// Returns the start sub-element identifier for the receiver. [Full Topic] +// Returns the index position of the first sub-element within the range of objects being tested that pass the receiver's test. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1413408-startsubelementidentifier?language=objc -func (w_ WhoseSpecifier) StartSubelementIdentifier() WhoseSubelementIdentifier { - rv := objc.Call[WhoseSubelementIdentifier](w_, objc.Sel("startSubelementIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1417856-startsubelementindex?language=objc +func (w_ WhoseSpecifier) StartSubelementIndex() int { + rv := objc.Call[int](w_, objc.Sel("startSubelementIndex")) return rv } -// Returns the start sub-element identifier for the receiver. [Full Topic] +// Returns the index position of the first sub-element within the range of objects being tested that pass the receiver's test. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1413408-startsubelementidentifier?language=objc -func (w_ WhoseSpecifier) SetStartSubelementIdentifier(value WhoseSubelementIdentifier) { - objc.Call[objc.Void](w_, objc.Sel("setStartSubelementIdentifier:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1417856-startsubelementindex?language=objc +func (w_ WhoseSpecifier) SetStartSubelementIndex(value int) { + objc.Call[objc.Void](w_, objc.Sel("setStartSubelementIndex:"), value) } // Sets the end sub-element identifier for the specifier to the value of a given sub-element. [Full Topic] @@ -135,19 +135,19 @@ func (w_ WhoseSpecifier) SetEndSubelementIdentifier(value WhoseSubelementIdentif objc.Call[objc.Void](w_, objc.Sel("setEndSubelementIdentifier:"), value) } -// Returns the index position of the first sub-element within the range of objects being tested that pass the receiver's test. [Full Topic] +// Returns the test object encapsulated by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1417856-startsubelementindex?language=objc -func (w_ WhoseSpecifier) StartSubelementIndex() int { - rv := objc.Call[int](w_, objc.Sel("startSubelementIndex")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1412482-test?language=objc +func (w_ WhoseSpecifier) Test() ScriptWhoseTest { + rv := objc.Call[ScriptWhoseTest](w_, objc.Sel("test")) return rv } -// Returns the index position of the first sub-element within the range of objects being tested that pass the receiver's test. [Full Topic] +// Returns the test object encapsulated by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1417856-startsubelementindex?language=objc -func (w_ WhoseSpecifier) SetStartSubelementIndex(value int) { - objc.Call[objc.Void](w_, objc.Sel("setStartSubelementIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1412482-test?language=objc +func (w_ WhoseSpecifier) SetTest(value IScriptWhoseTest) { + objc.Call[objc.Void](w_, objc.Sel("setTest:"), value) } // Sets the index position of the last sub-element within the range of objects being tested that pass the specifier’s test. [Full Topic] @@ -165,17 +165,17 @@ func (w_ WhoseSpecifier) SetEndSubelementIndex(value int) { objc.Call[objc.Void](w_, objc.Sel("setEndSubelementIndex:"), value) } -// Returns the test object encapsulated by the receiver. [Full Topic] +// Returns the start sub-element identifier for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1412482-test?language=objc -func (w_ WhoseSpecifier) Test() ScriptWhoseTest { - rv := objc.Call[ScriptWhoseTest](w_, objc.Sel("test")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1413408-startsubelementidentifier?language=objc +func (w_ WhoseSpecifier) StartSubelementIdentifier() WhoseSubelementIdentifier { + rv := objc.Call[WhoseSubelementIdentifier](w_, objc.Sel("startSubelementIdentifier")) return rv } -// Returns the test object encapsulated by the receiver. [Full Topic] +// Returns the start sub-element identifier for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1412482-test?language=objc -func (w_ WhoseSpecifier) SetTest(value IScriptWhoseTest) { - objc.Call[objc.Void](w_, objc.Sel("setTest:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nswhosespecifier/1413408-startsubelementidentifier?language=objc +func (w_ WhoseSpecifier) SetStartSubelementIdentifier(value WhoseSubelementIdentifier) { + objc.Call[objc.Void](w_, objc.Sel("setStartSubelementIdentifier:"), value) } diff --git a/macos/foundation/xml_document.gen.go b/macos/foundation/xml_document.gen.go index 544e0f01..3db854b6 100644 --- a/macos/foundation/xml_document.gen.go +++ b/macos/foundation/xml_document.gen.go @@ -18,31 +18,31 @@ type _XMLDocumentClass struct { // An interface definition for the [XMLDocument] class. type IXMLDocument interface { IXMLNode - AddChild(child IXMLNode) - SetChildren(children []IXMLNode) - InsertChildAtIndex(child IXMLNode, index uint) - SetRootElement(root IXMLElement) - ObjectByApplyingXSLTArgumentsError(xslt []byte, arguments map[string]string, error unsafe.Pointer) objc.Object - ObjectByApplyingXSLTAtURLArgumentsError(xsltURL IURL, argument map[string]string, error unsafe.Pointer) objc.Object - ValidateAndReturnError(error unsafe.Pointer) bool - XMLDataWithOptions(options XMLNodeOptions) []byte ObjectByApplyingXSLTStringArgumentsError(xslt string, arguments map[string]string, error unsafe.Pointer) objc.Object RootElement() XMLElement - ReplaceChildAtIndexWithNode(index uint, node IXMLNode) - InsertChildrenAtIndex(children []IXMLNode, index uint) RemoveChildAtIndex(index uint) - CharacterEncoding() string - SetCharacterEncoding(value string) + ValidateAndReturnError(error unsafe.Pointer) bool + InsertChildrenAtIndex(children []IXMLNode, index uint) + ObjectByApplyingXSLTArgumentsError(xslt []byte, arguments map[string]string, error unsafe.Pointer) objc.Object + XMLDataWithOptions(options XMLNodeOptions) []byte + SetRootElement(root IXMLElement) + InsertChildAtIndex(child IXMLNode, index uint) + ObjectByApplyingXSLTAtURLArgumentsError(xsltURL IURL, argument map[string]string, error unsafe.Pointer) objc.Object + SetChildren(children []IXMLNode) + AddChild(child IXMLNode) + ReplaceChildAtIndexWithNode(index uint, node IXMLNode) MIMEType() string SetMIMEType(value string) - DTD() XMLDTD - SetDTD(value IXMLDTD) - IsStandalone() bool - SetStandalone(value bool) Version() string SetVersion(value string) + CharacterEncoding() string + SetCharacterEncoding(value string) DocumentContentKind() XMLDocumentContentKind SetDocumentContentKind(value XMLDocumentContentKind) + IsStandalone() bool + SetStandalone(value bool) + DTD() XMLDTD + SetDTD(value IXMLDTD) XMLData() []byte } @@ -59,21 +59,16 @@ func XMLDocumentFrom(ptr unsafe.Pointer) XMLDocument { } } -func (x_ XMLDocument) Init() XMLDocument { - rv := objc.Call[XMLDocument](x_, objc.Sel("init")) - return rv -} - -func (x_ XMLDocument) InitWithXMLStringOptionsError(string_ string, mask XMLNodeOptions, error unsafe.Pointer) XMLDocument { - rv := objc.Call[XMLDocument](x_, objc.Sel("initWithXMLString:options:error:"), string_, mask, error) +func (x_ XMLDocument) InitWithDataOptionsError(data []byte, mask XMLNodeOptions, error unsafe.Pointer) XMLDocument { + rv := objc.Call[XMLDocument](x_, objc.Sel("initWithData:options:error:"), data, mask, error) return rv } -// Initializes and returns an NSXMLDocument object created from a string containing XML markup text. [Full Topic] +// Initializes and returns an NSXMLDocument object created from an NSData object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1416228-initwithxmlstring?language=objc -func NewXMLDocumentWithXMLStringOptionsError(string_ string, mask XMLNodeOptions, error unsafe.Pointer) XMLDocument { - instance := XMLDocumentClass.Alloc().InitWithXMLStringOptionsError(string_, mask, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1413086-initwithdata?language=objc +func NewXMLDocumentWithDataOptionsError(data []byte, mask XMLNodeOptions, error unsafe.Pointer) XMLDocument { + instance := XMLDocumentClass.Alloc().InitWithDataOptionsError(data, mask, error) instance.Autorelease() return instance } @@ -92,6 +87,20 @@ func NewXMLDocumentWithContentsOfURLOptionsError(url IURL, mask XMLNodeOptions, return instance } +func (x_ XMLDocument) InitWithXMLStringOptionsError(string_ string, mask XMLNodeOptions, error unsafe.Pointer) XMLDocument { + rv := objc.Call[XMLDocument](x_, objc.Sel("initWithXMLString:options:error:"), string_, mask, error) + return rv +} + +// Initializes and returns an NSXMLDocument object created from a string containing XML markup text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1416228-initwithxmlstring?language=objc +func NewXMLDocumentWithXMLStringOptionsError(string_ string, mask XMLNodeOptions, error unsafe.Pointer) XMLDocument { + instance := XMLDocumentClass.Alloc().InitWithXMLStringOptionsError(string_, mask, error) + instance.Autorelease() + return instance +} + func (x_ XMLDocument) InitWithRootElement(element IXMLElement) XMLDocument { rv := objc.Call[XMLDocument](x_, objc.Sel("initWithRootElement:"), element) return rv @@ -106,20 +115,11 @@ func NewXMLDocumentWithRootElement(element IXMLElement) XMLDocument { return instance } -func (x_ XMLDocument) InitWithDataOptionsError(data []byte, mask XMLNodeOptions, error unsafe.Pointer) XMLDocument { - rv := objc.Call[XMLDocument](x_, objc.Sel("initWithData:options:error:"), data, mask, error) +func (x_ XMLDocument) Init() XMLDocument { + rv := objc.Call[XMLDocument](x_, objc.Sel("init")) return rv } -// Initializes and returns an NSXMLDocument object created from an NSData object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1413086-initwithdata?language=objc -func NewXMLDocumentWithDataOptionsError(data []byte, mask XMLNodeOptions, error unsafe.Pointer) XMLDocument { - instance := XMLDocumentClass.Alloc().InitWithDataOptionsError(data, mask, error) - instance.Autorelease() - return instance -} - func (xc _XMLDocumentClass) Alloc() XMLDocument { rv := objc.Call[XMLDocument](xc, objc.Sel("alloc")) return rv @@ -135,20 +135,6 @@ func NewXMLDocument() XMLDocument { return XMLDocumentClass.New() } -func (x_ XMLDocument) InitWithKind(kind XMLNodeKind) XMLDocument { - rv := objc.Call[XMLDocument](x_, objc.Sel("initWithKind:"), kind) - return rv -} - -// Returns an NSXMLNode instance initialized with the constant indicating node kind. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409766-initwithkind?language=objc -func NewXMLDocumentWithKind(kind XMLNodeKind) XMLDocument { - instance := XMLDocumentClass.Alloc().InitWithKind(kind) - instance.Autorelease() - return instance -} - func (x_ XMLDocument) InitWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLDocument { rv := objc.Call[XMLDocument](x_, objc.Sel("initWithKind:options:"), kind, options) return rv @@ -163,55 +149,49 @@ func NewXMLDocumentWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XML return instance } -// Adds a child node after the last of the receiver’s existing children. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1415740-addchild?language=objc -func (x_ XMLDocument) AddChild(child IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("addChild:"), child) -} - -// Sets the child nodes of the receiver. [Full Topic] +// Applies the XSLT pattern rules and templates (specified as a string) to the receiver and returns a document object containing transformed XML or HTML markup. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1407550-setchildren?language=objc -func (x_ XMLDocument) SetChildren(children []IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("setChildren:"), children) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1409737-objectbyapplyingxsltstring?language=objc +func (x_ XMLDocument) ObjectByApplyingXSLTStringArgumentsError(xslt string, arguments map[string]string, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("objectByApplyingXSLTString:arguments:error:"), xslt, arguments, error) + return rv } -// Inserts a node object at specified position in the receiver’s array of children. [Full Topic] +// Returns the root element of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1413912-insertchild?language=objc -func (x_ XMLDocument) InsertChildAtIndex(child IXMLNode, index uint) { - objc.Call[objc.Void](x_, objc.Sel("insertChild:atIndex:"), child, index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1411693-rootelement?language=objc +func (x_ XMLDocument) RootElement() XMLElement { + rv := objc.Call[XMLElement](x_, objc.Sel("rootElement")) + return rv } -// Set the root element of the receiver. [Full Topic] +// Removes the child node of the receiver located at a specified position in its array of children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1415610-setrootelement?language=objc -func (x_ XMLDocument) SetRootElement(root IXMLElement) { - objc.Call[objc.Void](x_, objc.Sel("setRootElement:"), root) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1410060-removechildatindex?language=objc +func (x_ XMLDocument) RemoveChildAtIndex(index uint) { + objc.Call[objc.Void](x_, objc.Sel("removeChildAtIndex:"), index) } -// Applies the XSLT pattern rules and templates (specified as a data object) to the receiver and returns a document object containing transformed XML or HTML markup. [Full Topic] +// Validates the document against the governing schema and returns whether the document conforms to the schema. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1415843-objectbyapplyingxslt?language=objc -func (x_ XMLDocument) ObjectByApplyingXSLTArgumentsError(xslt []byte, arguments map[string]string, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("objectByApplyingXSLT:arguments:error:"), xslt, arguments, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1408561-validateandreturnerror?language=objc +func (x_ XMLDocument) ValidateAndReturnError(error unsafe.Pointer) bool { + rv := objc.Call[bool](x_, objc.Sel("validateAndReturnError:"), error) return rv } -// Applies the XSLT pattern rules and templates located at a specified URL to the receiver and returns a document object containing transformed XML markup or an NSData object containing plain text, RTF text, and so on. [Full Topic] +// Inserts an array of children at a specified position in the receiver’s array of children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1410606-objectbyapplyingxsltaturl?language=objc -func (x_ XMLDocument) ObjectByApplyingXSLTAtURLArgumentsError(xsltURL IURL, argument map[string]string, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("objectByApplyingXSLTAtURL:arguments:error:"), xsltURL, argument, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1415612-insertchildren?language=objc +func (x_ XMLDocument) InsertChildrenAtIndex(children []IXMLNode, index uint) { + objc.Call[objc.Void](x_, objc.Sel("insertChildren:atIndex:"), children, index) } -// Validates the document against the governing schema and returns whether the document conforms to the schema. [Full Topic] +// Applies the XSLT pattern rules and templates (specified as a data object) to the receiver and returns a document object containing transformed XML or HTML markup. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1408561-validateandreturnerror?language=objc -func (x_ XMLDocument) ValidateAndReturnError(error unsafe.Pointer) bool { - rv := objc.Call[bool](x_, objc.Sel("validateAndReturnError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1415843-objectbyapplyingxslt?language=objc +func (x_ XMLDocument) ObjectByApplyingXSLTArgumentsError(xslt []byte, arguments map[string]string, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("objectByApplyingXSLT:arguments:error:"), xslt, arguments, error) return rv } @@ -223,41 +203,33 @@ func (x_ XMLDocument) XMLDataWithOptions(options XMLNodeOptions) []byte { return rv } -// Applies the XSLT pattern rules and templates (specified as a string) to the receiver and returns a document object containing transformed XML or HTML markup. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1409737-objectbyapplyingxsltstring?language=objc -func (x_ XMLDocument) ObjectByApplyingXSLTStringArgumentsError(xslt string, arguments map[string]string, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("objectByApplyingXSLTString:arguments:error:"), xslt, arguments, error) - return rv -} - -// Returns the root element of the receiver. [Full Topic] +// Set the root element of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1411693-rootelement?language=objc -func (x_ XMLDocument) RootElement() XMLElement { - rv := objc.Call[XMLElement](x_, objc.Sel("rootElement")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1415610-setrootelement?language=objc +func (x_ XMLDocument) SetRootElement(root IXMLElement) { + objc.Call[objc.Void](x_, objc.Sel("setRootElement:"), root) } -// Replaces the child node of the receiver located at a specified position in its array of children with another node. [Full Topic] +// Inserts a node object at specified position in the receiver’s array of children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1416857-replacechildatindex?language=objc -func (x_ XMLDocument) ReplaceChildAtIndexWithNode(index uint, node IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("replaceChildAtIndex:withNode:"), index, node) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1413912-insertchild?language=objc +func (x_ XMLDocument) InsertChildAtIndex(child IXMLNode, index uint) { + objc.Call[objc.Void](x_, objc.Sel("insertChild:atIndex:"), child, index) } -// Inserts an array of children at a specified position in the receiver’s array of children. [Full Topic] +// Applies the XSLT pattern rules and templates located at a specified URL to the receiver and returns a document object containing transformed XML markup or an NSData object containing plain text, RTF text, and so on. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1415612-insertchildren?language=objc -func (x_ XMLDocument) InsertChildrenAtIndex(children []IXMLNode, index uint) { - objc.Call[objc.Void](x_, objc.Sel("insertChildren:atIndex:"), children, index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1410606-objectbyapplyingxsltaturl?language=objc +func (x_ XMLDocument) ObjectByApplyingXSLTAtURLArgumentsError(xsltURL IURL, argument map[string]string, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("objectByApplyingXSLTAtURL:arguments:error:"), xsltURL, argument, error) + return rv } -// Removes the child node of the receiver located at a specified position in its array of children. [Full Topic] +// Sets the child nodes of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1410060-removechildatindex?language=objc -func (x_ XMLDocument) RemoveChildAtIndex(index uint) { - objc.Call[objc.Void](x_, objc.Sel("removeChildAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1407550-setchildren?language=objc +func (x_ XMLDocument) SetChildren(children []IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("setChildren:"), children) } // Overridden by subclasses to substitute a custom class for an NSXML class that the parser uses to create node instances. [Full Topic] @@ -275,19 +247,18 @@ func XMLDocument_ReplacementClassForClass(cls objc.IClass) objc.Class { return XMLDocumentClass.ReplacementClassForClass(cls) } -// Sets the character encoding of the receiver to encoding, [Full Topic] +// Adds a child node after the last of the receiver’s existing children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1410987-characterencoding?language=objc -func (x_ XMLDocument) CharacterEncoding() string { - rv := objc.Call[string](x_, objc.Sel("characterEncoding")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1415740-addchild?language=objc +func (x_ XMLDocument) AddChild(child IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("addChild:"), child) } -// Sets the character encoding of the receiver to encoding, [Full Topic] +// Replaces the child node of the receiver located at a specified position in its array of children with another node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1410987-characterencoding?language=objc -func (x_ XMLDocument) SetCharacterEncoding(value string) { - objc.Call[objc.Void](x_, objc.Sel("setCharacterEncoding:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1416857-replacechildatindex?language=objc +func (x_ XMLDocument) ReplaceChildAtIndexWithNode(index uint, node IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("replaceChildAtIndex:withNode:"), index, node) } // Returns the MIME type for the receiver. [Full Topic] @@ -305,36 +276,6 @@ func (x_ XMLDocument) SetMIMEType(value string) { objc.Call[objc.Void](x_, objc.Sel("setMIMEType:"), value) } -// Returns an NSXMLDTD object representing the internal DTD associated with the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1418474-dtd?language=objc -func (x_ XMLDocument) DTD() XMLDTD { - rv := objc.Call[XMLDTD](x_, objc.Sel("DTD")) - return rv -} - -// Returns an NSXMLDTD object representing the internal DTD associated with the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1418474-dtd?language=objc -func (x_ XMLDocument) SetDTD(value IXMLDTD) { - objc.Call[objc.Void](x_, objc.Sel("setDTD:"), value) -} - -// Sets a Boolean value that specifies whether the receiver represents a standalone XML document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1413655-standalone?language=objc -func (x_ XMLDocument) IsStandalone() bool { - rv := objc.Call[bool](x_, objc.Sel("isStandalone")) - return rv -} - -// Sets a Boolean value that specifies whether the receiver represents a standalone XML document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1413655-standalone?language=objc -func (x_ XMLDocument) SetStandalone(value bool) { - objc.Call[objc.Void](x_, objc.Sel("setStandalone:"), value) -} - // Sets the version of the receiver’s XML. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1409066-version?language=objc @@ -350,6 +291,21 @@ func (x_ XMLDocument) SetVersion(value string) { objc.Call[objc.Void](x_, objc.Sel("setVersion:"), value) } +// Sets the character encoding of the receiver to encoding, [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1410987-characterencoding?language=objc +func (x_ XMLDocument) CharacterEncoding() string { + rv := objc.Call[string](x_, objc.Sel("characterEncoding")) + return rv +} + +// Sets the character encoding of the receiver to encoding, [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1410987-characterencoding?language=objc +func (x_ XMLDocument) SetCharacterEncoding(value string) { + objc.Call[objc.Void](x_, objc.Sel("setCharacterEncoding:"), value) +} + // Sets the kind of output content for the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1407426-documentcontentkind?language=objc @@ -365,6 +321,36 @@ func (x_ XMLDocument) SetDocumentContentKind(value XMLDocumentContentKind) { objc.Call[objc.Void](x_, objc.Sel("setDocumentContentKind:"), value) } +// Sets a Boolean value that specifies whether the receiver represents a standalone XML document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1413655-standalone?language=objc +func (x_ XMLDocument) IsStandalone() bool { + rv := objc.Call[bool](x_, objc.Sel("isStandalone")) + return rv +} + +// Sets a Boolean value that specifies whether the receiver represents a standalone XML document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1413655-standalone?language=objc +func (x_ XMLDocument) SetStandalone(value bool) { + objc.Call[objc.Void](x_, objc.Sel("setStandalone:"), value) +} + +// Returns an NSXMLDTD object representing the internal DTD associated with the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1418474-dtd?language=objc +func (x_ XMLDocument) DTD() XMLDTD { + rv := objc.Call[XMLDTD](x_, objc.Sel("DTD")) + return rv +} + +// Returns an NSXMLDTD object representing the internal DTD associated with the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1418474-dtd?language=objc +func (x_ XMLDocument) SetDTD(value IXMLDTD) { + objc.Call[objc.Void](x_, objc.Sel("setDTD:"), value) +} + // Returns the XML string representation of the receiver—that is, the entire document—encapsulated in a data object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1411660-xmldata?language=objc diff --git a/macos/foundation/xml_element.gen.go b/macos/foundation/xml_element.gen.go index d04280e7..6c7a4104 100644 --- a/macos/foundation/xml_element.gen.go +++ b/macos/foundation/xml_element.gen.go @@ -18,29 +18,29 @@ type _XMLElementClass struct { // An interface definition for the [XMLElement] class. type IXMLElement interface { IXMLNode - SetAttributesWithDictionary(attributes map[string]string) - RemoveAttributeForName(name string) - AttributeForLocalNameURI(localName string, URI string) XMLNode + RemoveNamespaceForPrefix(name string) NamespaceForPrefix(name string) XMLNode - ElementsForLocalNameURI(localName string, URI string) []XMLElement - AddChild(child IXMLNode) - SetChildren(children []IXMLNode) - ResolveNamespaceForName(name string) XMLNode - InsertChildAtIndex(child IXMLNode, index uint) AttributeForName(name string) XMLNode - NormalizeAdjacentTextNodesPreservingCDATA(preserve bool) - RemoveChildAtIndex(index uint) - AddAttribute(attribute IXMLNode) - ReplaceChildAtIndexWithNode(index uint, node IXMLNode) - RemoveNamespaceForPrefix(name string) AddNamespace(aNamespace IXMLNode) + RemoveChildAtIndex(index uint) + ElementsForLocalNameURI(localName string, URI string) []XMLElement + AttributeForLocalNameURI(localName string, URI string) XMLNode InsertChildrenAtIndex(children []IXMLNode, index uint) + RemoveAttributeForName(name string) ResolvePrefixForNamespaceURI(namespaceURI string) string + InsertChildAtIndex(child IXMLNode, index uint) + ResolveNamespaceForName(name string) XMLNode + SetChildren(children []IXMLNode) + AddAttribute(attribute IXMLNode) + SetAttributesWithDictionary(attributes map[string]string) + AddChild(child IXMLNode) + NormalizeAdjacentTextNodesPreservingCDATA(preserve bool) ElementsForName(name string) []XMLElement - Attributes() []XMLNode - SetAttributes(value []IXMLNode) + ReplaceChildAtIndexWithNode(index uint, node IXMLNode) Namespaces() []XMLNode SetNamespaces(value []IXMLNode) + Attributes() []XMLNode + SetAttributes(value []IXMLNode) } // The element nodes in an XML tree structure. [Full Topic] @@ -56,20 +56,6 @@ func XMLElementFrom(ptr unsafe.Pointer) XMLElement { } } -func (x_ XMLElement) InitWithNameURI(name string, URI string) XMLElement { - rv := objc.Call[XMLElement](x_, objc.Sel("initWithName:URI:"), name, URI) - return rv -} - -// Returns an NSXMLElement object initialized with the specified name and URI. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388348-initwithname?language=objc -func NewXMLElementWithNameURI(name string, URI string) XMLElement { - instance := XMLElementClass.Alloc().InitWithNameURI(name, URI) - instance.Autorelease() - return instance -} - func (x_ XMLElement) InitWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLElement { rv := objc.Call[XMLElement](x_, objc.Sel("initWithKind:options:"), kind, options) return rv @@ -84,20 +70,6 @@ func NewXMLElementWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLE return instance } -func (x_ XMLElement) InitWithXMLStringError(string_ string, error unsafe.Pointer) XMLElement { - rv := objc.Call[XMLElement](x_, objc.Sel("initWithXMLString:error:"), string_, error) - return rv -} - -// Returns an NSXMLElement object created from a specified string containing XML markup. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388325-initwithxmlstring?language=objc -func NewXMLElementWithXMLStringError(string_ string, error unsafe.Pointer) XMLElement { - instance := XMLElementClass.Alloc().InitWithXMLStringError(string_, error) - instance.Autorelease() - return instance -} - func (x_ XMLElement) InitWithNameStringValue(name string, string_ string) XMLElement { rv := objc.Call[XMLElement](x_, objc.Sel("initWithName:stringValue:"), name, string_) return rv @@ -112,16 +84,16 @@ func NewXMLElementWithNameStringValue(name string, string_ string) XMLElement { return instance } -func (x_ XMLElement) InitWithName(name string) XMLElement { - rv := objc.Call[XMLElement](x_, objc.Sel("initWithName:"), name) +func (x_ XMLElement) InitWithXMLStringError(string_ string, error unsafe.Pointer) XMLElement { + rv := objc.Call[XMLElement](x_, objc.Sel("initWithXMLString:error:"), string_, error) return rv } -// Returns an NSXMLElement object initialized with the specified name. [Full Topic] +// Returns an NSXMLElement object created from a specified string containing XML markup. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388319-initwithname?language=objc -func NewXMLElementWithName(name string) XMLElement { - instance := XMLElementClass.Alloc().InitWithName(name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388325-initwithxmlstring?language=objc +func NewXMLElementWithXMLStringError(string_ string, error unsafe.Pointer) XMLElement { + instance := XMLElementClass.Alloc().InitWithXMLStringError(string_, error) instance.Autorelease() return instance } @@ -146,48 +118,41 @@ func (x_ XMLElement) Init() XMLElement { return rv } -func (x_ XMLElement) InitWithKind(kind XMLNodeKind) XMLElement { - rv := objc.Call[XMLElement](x_, objc.Sel("initWithKind:"), kind) - return rv -} - -// Returns an NSXMLNode instance initialized with the constant indicating node kind. [Full Topic] +// Removes a namespace node that is identified by a given prefix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409766-initwithkind?language=objc -func NewXMLElementWithKind(kind XMLNodeKind) XMLElement { - instance := XMLElementClass.Alloc().InitWithKind(kind) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388327-removenamespaceforprefix?language=objc +func (x_ XMLElement) RemoveNamespaceForPrefix(name string) { + objc.Call[objc.Void](x_, objc.Sel("removeNamespaceForPrefix:"), name) } -// Sets the attributes of the receiver based on the key-value pairs specified in the passed dictionary. [Full Topic] +// Returns the namespace node with a specified prefix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388354-setattributeswithdictionary?language=objc -func (x_ XMLElement) SetAttributesWithDictionary(attributes map[string]string) { - objc.Call[objc.Void](x_, objc.Sel("setAttributesWithDictionary:"), attributes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388307-namespaceforprefix?language=objc +func (x_ XMLElement) NamespaceForPrefix(name string) XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("namespaceForPrefix:"), name) + return rv } -// Removes an attribute node identified by name. [Full Topic] +// Returns the attribute node of the receiver with the specified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388338-removeattributeforname?language=objc -func (x_ XMLElement) RemoveAttributeForName(name string) { - objc.Call[objc.Void](x_, objc.Sel("removeAttributeForName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388305-attributeforname?language=objc +func (x_ XMLElement) AttributeForName(name string) XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("attributeForName:"), name) + return rv } -// Returns the attribute node of the receiver that is identified by a local name and URI. [Full Topic] +// Adds a namespace node to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388315-attributeforlocalname?language=objc -func (x_ XMLElement) AttributeForLocalNameURI(localName string, URI string) XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("attributeForLocalName:URI:"), localName, URI) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388358-addnamespace?language=objc +func (x_ XMLElement) AddNamespace(aNamespace IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("addNamespace:"), aNamespace) } -// Returns the namespace node with a specified prefix. [Full Topic] +// Removes the child node of the receiver identified by a given index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388307-namespaceforprefix?language=objc -func (x_ XMLElement) NamespaceForPrefix(name string) XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("namespaceForPrefix:"), name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388311-removechildatindex?language=objc +func (x_ XMLElement) RemoveChildAtIndex(index uint) { + objc.Call[objc.Void](x_, objc.Sel("removeChildAtIndex:"), index) } // Returns the child element nodes (as NSXMLElement objects) of the receiver that are matched with the specified local name and URI. [Full Topic] @@ -198,25 +163,33 @@ func (x_ XMLElement) ElementsForLocalNameURI(localName string, URI string) []XML return rv } -// Adds a child node at the end of the receiver’s current list of children. [Full Topic] +// Returns the attribute node of the receiver that is identified by a local name and URI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388340-addchild?language=objc -func (x_ XMLElement) AddChild(child IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("addChild:"), child) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388315-attributeforlocalname?language=objc +func (x_ XMLElement) AttributeForLocalNameURI(localName string, URI string) XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("attributeForLocalName:URI:"), localName, URI) + return rv } -// Sets all child nodes of the receiver at once, replacing any existing children. [Full Topic] +// Inserts an array of child nodes at a specified location in the receiver’s list of children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388350-setchildren?language=objc -func (x_ XMLElement) SetChildren(children []IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("setChildren:"), children) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388331-insertchildren?language=objc +func (x_ XMLElement) InsertChildrenAtIndex(children []IXMLNode, index uint) { + objc.Call[objc.Void](x_, objc.Sel("insertChildren:atIndex:"), children, index) } -// Returns the namespace node with the prefix matching the given qualified name. [Full Topic] +// Removes an attribute node identified by name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388334-resolvenamespaceforname?language=objc -func (x_ XMLElement) ResolveNamespaceForName(name string) XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("resolveNamespaceForName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388338-removeattributeforname?language=objc +func (x_ XMLElement) RemoveAttributeForName(name string) { + objc.Call[objc.Void](x_, objc.Sel("removeAttributeForName:"), name) +} + +// Returns the prefix associated with the specified URI. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388309-resolveprefixfornamespaceuri?language=objc +func (x_ XMLElement) ResolvePrefixForNamespaceURI(namespaceURI string) string { + rv := objc.Call[string](x_, objc.Sel("resolvePrefixForNamespaceURI:"), namespaceURI) return rv } @@ -227,26 +200,19 @@ func (x_ XMLElement) InsertChildAtIndex(child IXMLNode, index uint) { objc.Call[objc.Void](x_, objc.Sel("insertChild:atIndex:"), child, index) } -// Returns the attribute node of the receiver with the specified name. [Full Topic] +// Returns the namespace node with the prefix matching the given qualified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388305-attributeforname?language=objc -func (x_ XMLElement) AttributeForName(name string) XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("attributeForName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388334-resolvenamespaceforname?language=objc +func (x_ XMLElement) ResolveNamespaceForName(name string) XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("resolveNamespaceForName:"), name) return rv } -// Coalesces adjacent text nodes of the receiver that you have explicitly added, optionally including CDATA sections. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388346-normalizeadjacenttextnodespreser?language=objc -func (x_ XMLElement) NormalizeAdjacentTextNodesPreservingCDATA(preserve bool) { - objc.Call[objc.Void](x_, objc.Sel("normalizeAdjacentTextNodesPreservingCDATA:"), preserve) -} - -// Removes the child node of the receiver identified by a given index. [Full Topic] +// Sets all child nodes of the receiver at once, replacing any existing children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388311-removechildatindex?language=objc -func (x_ XMLElement) RemoveChildAtIndex(index uint) { - objc.Call[objc.Void](x_, objc.Sel("removeChildAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388350-setchildren?language=objc +func (x_ XMLElement) SetChildren(children []IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("setChildren:"), children) } // Adds an attribute node to the receiver. [Full Topic] @@ -256,40 +222,25 @@ func (x_ XMLElement) AddAttribute(attribute IXMLNode) { objc.Call[objc.Void](x_, objc.Sel("addAttribute:"), attribute) } -// Replaces a child node at a specified location with another child node. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388317-replacechildatindex?language=objc -func (x_ XMLElement) ReplaceChildAtIndexWithNode(index uint, node IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("replaceChildAtIndex:withNode:"), index, node) -} - -// Removes a namespace node that is identified by a given prefix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388327-removenamespaceforprefix?language=objc -func (x_ XMLElement) RemoveNamespaceForPrefix(name string) { - objc.Call[objc.Void](x_, objc.Sel("removeNamespaceForPrefix:"), name) -} - -// Adds a namespace node to the receiver. [Full Topic] +// Sets the attributes of the receiver based on the key-value pairs specified in the passed dictionary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388358-addnamespace?language=objc -func (x_ XMLElement) AddNamespace(aNamespace IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("addNamespace:"), aNamespace) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388354-setattributeswithdictionary?language=objc +func (x_ XMLElement) SetAttributesWithDictionary(attributes map[string]string) { + objc.Call[objc.Void](x_, objc.Sel("setAttributesWithDictionary:"), attributes) } -// Inserts an array of child nodes at a specified location in the receiver’s list of children. [Full Topic] +// Adds a child node at the end of the receiver’s current list of children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388331-insertchildren?language=objc -func (x_ XMLElement) InsertChildrenAtIndex(children []IXMLNode, index uint) { - objc.Call[objc.Void](x_, objc.Sel("insertChildren:atIndex:"), children, index) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388340-addchild?language=objc +func (x_ XMLElement) AddChild(child IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("addChild:"), child) } -// Returns the prefix associated with the specified URI. [Full Topic] +// Coalesces adjacent text nodes of the receiver that you have explicitly added, optionally including CDATA sections. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388309-resolveprefixfornamespaceuri?language=objc -func (x_ XMLElement) ResolvePrefixForNamespaceURI(namespaceURI string) string { - rv := objc.Call[string](x_, objc.Sel("resolvePrefixForNamespaceURI:"), namespaceURI) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388346-normalizeadjacenttextnodespreser?language=objc +func (x_ XMLElement) NormalizeAdjacentTextNodesPreservingCDATA(preserve bool) { + objc.Call[objc.Void](x_, objc.Sel("normalizeAdjacentTextNodesPreservingCDATA:"), preserve) } // Returns the child element nodes (as NSXMLElement objects) of the receiver that have a specified name. [Full Topic] @@ -300,19 +251,11 @@ func (x_ XMLElement) ElementsForName(name string) []XMLElement { return rv } -// Sets all attributes of the receiver at once, replacing any existing attribute nodes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388321-attributes?language=objc -func (x_ XMLElement) Attributes() []XMLNode { - rv := objc.Call[[]XMLNode](x_, objc.Sel("attributes")) - return rv -} - -// Sets all attributes of the receiver at once, replacing any existing attribute nodes. [Full Topic] +// Replaces a child node at a specified location with another child node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388321-attributes?language=objc -func (x_ XMLElement) SetAttributes(value []IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("setAttributes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388317-replacechildatindex?language=objc +func (x_ XMLElement) ReplaceChildAtIndexWithNode(index uint, node IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("replaceChildAtIndex:withNode:"), index, node) } // Sets all of the namespace nodes of the receiver at once, replacing any existing namespace nodes. [Full Topic] @@ -329,3 +272,18 @@ func (x_ XMLElement) Namespaces() []XMLNode { func (x_ XMLElement) SetNamespaces(value []IXMLNode) { objc.Call[objc.Void](x_, objc.Sel("setNamespaces:"), value) } + +// Sets all attributes of the receiver at once, replacing any existing attribute nodes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388321-attributes?language=objc +func (x_ XMLElement) Attributes() []XMLNode { + rv := objc.Call[[]XMLNode](x_, objc.Sel("attributes")) + return rv +} + +// Sets all attributes of the receiver at once, replacing any existing attribute nodes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388321-attributes?language=objc +func (x_ XMLElement) SetAttributes(value []IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("setAttributes:"), value) +} diff --git a/macos/foundation/xml_node.gen.go b/macos/foundation/xml_node.gen.go index 104076ac..935d0c3a 100644 --- a/macos/foundation/xml_node.gen.go +++ b/macos/foundation/xml_node.gen.go @@ -18,38 +18,37 @@ type _XMLNodeClass struct { // An interface definition for the [XMLNode] class. type IXMLNode interface { objc.IObject - SetStringValueResolvingEntities(string_ string, resolve bool) - ChildAtIndex(index uint) XMLNode - NodesForXPathError(xpath string, error unsafe.Pointer) []XMLNode CanonicalXMLStringPreservingComments(comments bool) string + NodesForXPathError(xpath string, error unsafe.Pointer) []XMLNode + Detach() XMLStringWithOptions(options XMLNodeOptions) string + SetStringValueResolvingEntities(string_ string, resolve bool) + ChildAtIndex(index uint) XMLNode ObjectsForXQueryError(xquery string, error unsafe.Pointer) []objc.Object - Detach() - ObjectsForXQueryConstantsError(xquery string, constants map[string]objc.IObject, error unsafe.Pointer) []objc.Object - LocalName() string - PreviousSibling() XMLNode - XPath() string - ObjectValue() objc.Object - SetObjectValue(value objc.IObject) RootDocument() XMLDocument - ChildCount() uint NextNode() XMLNode + Level() uint + URI() string + SetURI(value string) + Parent() XMLNode + Name() string + SetName(value string) + LocalName() string StringValue() string SetStringValue(value string) - Children() []XMLNode + XMLString() string + PreviousSibling() XMLNode Description() string - Prefix() string - URI() string - SetURI(value string) + ObjectValue() objc.Object + SetObjectValue(value objc.IObject) Kind() XMLNodeKind - PreviousNode() XMLNode - XMLString() string - Level() uint + XPath() string NextSibling() XMLNode - Name() string - SetName(value string) + Prefix() string Index() uint - Parent() XMLNode + ChildCount() uint + PreviousNode() XMLNode + Children() []XMLNode } // The nodes in the abstract, logical tree structure that represents an XML document. [Full Topic] @@ -65,25 +64,6 @@ func XMLNodeFrom(ptr unsafe.Pointer) XMLNode { } } -func (x_ XMLNode) Init() XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("init")) - return rv -} - -func (x_ XMLNode) InitWithKind(kind XMLNodeKind) XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("initWithKind:"), kind) - return rv -} - -// Returns an NSXMLNode instance initialized with the constant indicating node kind. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409766-initwithkind?language=objc -func NewXMLNodeWithKind(kind XMLNodeKind) XMLNode { - instance := XMLNodeClass.Alloc().InitWithKind(kind) - instance.Autorelease() - return instance -} - func (x_ XMLNode) InitWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLNode { rv := objc.Call[XMLNode](x_, objc.Sel("initWithKind:options:"), kind, options) return rv @@ -98,6 +78,11 @@ func NewXMLNodeWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLNode return instance } +func (x_ XMLNode) Init() XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("init")) + return rv +} + func (xc _XMLNodeClass) Alloc() XMLNode { rv := objc.Call[XMLNode](xc, objc.Sel("alloc")) return rv @@ -113,28 +98,6 @@ func NewXMLNode() XMLNode { return XMLNodeClass.New() } -// Sets the content of the receiver as a string value and, optionally, resolves character references, predefined entities, and user-defined entities as declared in the associated DTD. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409758-setstringvalue?language=objc -func (x_ XMLNode) SetStringValueResolvingEntities(string_ string, resolve bool) { - objc.Call[objc.Void](x_, objc.Sel("setStringValue:resolvingEntities:"), string_, resolve) -} - -// Returns the prefix from the specified qualified name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1407393-prefixforname?language=objc -func (xc _XMLNodeClass) PrefixForName(name string) string { - rv := objc.Call[string](xc, objc.Sel("prefixForName:"), name) - return rv -} - -// Returns the prefix from the specified qualified name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1407393-prefixforname?language=objc -func XMLNode_PrefixForName(name string) string { - return XMLNodeClass.PrefixForName(name) -} - // Returns an NSXMLElement object with a given tag identifier, or name [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409760-elementwithname?language=objc @@ -150,49 +113,80 @@ func XMLNode_ElementWithName(name string) objc.Object { return XMLNodeClass.ElementWithName(name) } -// Returns an NSXMLNode object representing an attribute node with a given name and string. [Full Topic] +// Returns a string object encapsulating the receiver’s XML in canonical form. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409795-attributewithname?language=objc -func (xc _XMLNodeClass) AttributeWithNameStringValue(name string, stringValue string) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("attributeWithName:stringValue:"), name, stringValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409817-canonicalxmlstringpreservingcomm?language=objc +func (x_ XMLNode) CanonicalXMLStringPreservingComments(comments bool) string { + rv := objc.Call[string](x_, objc.Sel("canonicalXMLStringPreservingComments:"), comments) return rv } -// Returns an NSXMLNode object representing an attribute node with a given name and string. [Full Topic] +// Returns an NSXMLNode object representing a processing instruction with a specified name and value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409795-attributewithname?language=objc -func XMLNode_AttributeWithNameStringValue(name string, stringValue string) objc.Object { - return XMLNodeClass.AttributeWithNameStringValue(name, stringValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409784-processinginstructionwithname?language=objc +func (xc _XMLNodeClass) ProcessingInstructionWithNameStringValue(name string, stringValue string) objc.Object { + rv := objc.Call[objc.Object](xc, objc.Sel("processingInstructionWithName:stringValue:"), name, stringValue) + return rv } -// Returns an NSXMLNode object representing a comment node containing given text. [Full Topic] +// Returns an NSXMLNode object representing a processing instruction with a specified name and value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409831-commentwithstringvalue?language=objc -func (xc _XMLNodeClass) CommentWithStringValue(stringValue string) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("commentWithStringValue:"), stringValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409784-processinginstructionwithname?language=objc +func XMLNode_ProcessingInstructionWithNameStringValue(name string, stringValue string) objc.Object { + return XMLNodeClass.ProcessingInstructionWithNameStringValue(name, stringValue) +} + +// Returns the nodes resulting from executing an XPath query upon the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409813-nodesforxpath?language=objc +func (x_ XMLNode) NodesForXPathError(xpath string, error unsafe.Pointer) []XMLNode { + rv := objc.Call[[]XMLNode](x_, objc.Sel("nodesForXPath:error:"), xpath, error) return rv } -// Returns an NSXMLNode object representing a comment node containing given text. [Full Topic] +// Returns the prefix from the specified qualified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409831-commentwithstringvalue?language=objc -func XMLNode_CommentWithStringValue(stringValue string) objc.Object { - return XMLNodeClass.CommentWithStringValue(stringValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1407393-prefixforname?language=objc +func (xc _XMLNodeClass) PrefixForName(name string) string { + rv := objc.Call[string](xc, objc.Sel("prefixForName:"), name) + return rv } -// Returns an element whose fully qualified name is specified. [Full Topic] +// Returns the prefix from the specified qualified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409752-elementwithname?language=objc -func (xc _XMLNodeClass) ElementWithNameURI(name string, URI string) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("elementWithName:URI:"), name, URI) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1407393-prefixforname?language=objc +func XMLNode_PrefixForName(name string) string { + return XMLNodeClass.PrefixForName(name) +} + +// Returns a NSXMLDTDNode object representing the DTD declaration for an element, attribute, entity, or notation based on a given string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409145-dtdnodewithxmlstring?language=objc +func (xc _XMLNodeClass) DTDNodeWithXMLString(string_ string) objc.Object { + rv := objc.Call[objc.Object](xc, objc.Sel("DTDNodeWithXMLString:"), string_) return rv } -// Returns an element whose fully qualified name is specified. [Full Topic] +// Returns a NSXMLDTDNode object representing the DTD declaration for an element, attribute, entity, or notation based on a given string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409145-dtdnodewithxmlstring?language=objc +func XMLNode_DTDNodeWithXMLString(string_ string) objc.Object { + return XMLNodeClass.DTDNodeWithXMLString(string_) +} + +// Detaches the receiver from its parent node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409752-elementwithname?language=objc -func XMLNode_ElementWithNameURI(name string, URI string) objc.Object { - return XMLNodeClass.ElementWithNameURI(name, URI) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409806-detach?language=objc +func (x_ XMLNode) Detach() { + objc.Call[objc.Void](x_, objc.Sel("detach")) +} + +// Returns the string representation of the receiver as it would appear in an XML document, with one or more output options specified. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409778-xmlstringwithoptions?language=objc +func (x_ XMLNode) XMLStringWithOptions(options XMLNodeOptions) string { + rv := objc.Call[string](x_, objc.Sel("XMLStringWithOptions:"), options) + return rv } // Returns an NSXMLNode object representing a namespace with a specified name and URI. [Full Topic] @@ -210,34 +204,19 @@ func XMLNode_NamespaceWithNameStringValue(name string, stringValue string) objc. return XMLNodeClass.NamespaceWithNameStringValue(name, stringValue) } -// Returns an NSXMLElement object with a single text-node child containing the specified text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409460-elementwithname?language=objc -func (xc _XMLNodeClass) ElementWithNameStringValue(name string, string_ string) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("elementWithName:stringValue:"), name, string_) - return rv -} - -// Returns an NSXMLElement object with a single text-node child containing the specified text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409460-elementwithname?language=objc -func XMLNode_ElementWithNameStringValue(name string, string_ string) objc.Object { - return XMLNodeClass.ElementWithNameStringValue(name, string_) -} - -// Returns the local name from the specified qualified name. [Full Topic] +// Returns an NSXMLNode object representing a comment node containing given text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409646-localnameforname?language=objc -func (xc _XMLNodeClass) LocalNameForName(name string) string { - rv := objc.Call[string](xc, objc.Sel("localNameForName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409831-commentwithstringvalue?language=objc +func (xc _XMLNodeClass) CommentWithStringValue(stringValue string) objc.Object { + rv := objc.Call[objc.Object](xc, objc.Sel("commentWithStringValue:"), stringValue) return rv } -// Returns the local name from the specified qualified name. [Full Topic] +// Returns an NSXMLNode object representing a comment node containing given text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409646-localnameforname?language=objc -func XMLNode_LocalNameForName(name string) string { - return XMLNodeClass.LocalNameForName(name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409831-commentwithstringvalue?language=objc +func XMLNode_CommentWithStringValue(stringValue string) objc.Object { + return XMLNodeClass.CommentWithStringValue(stringValue) } // Returns an empty document node. [Full Topic] @@ -255,52 +234,6 @@ func XMLNode_Document() objc.Object { return XMLNodeClass.Document() } -// Returns an NSXMLDocument object initialized with a given root element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409802-documentwithrootelement?language=objc -func (xc _XMLNodeClass) DocumentWithRootElement(element IXMLElement) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("documentWithRootElement:"), element) - return rv -} - -// Returns an NSXMLDocument object initialized with a given root element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409802-documentwithrootelement?language=objc -func XMLNode_DocumentWithRootElement(element IXMLElement) objc.Object { - return XMLNodeClass.DocumentWithRootElement(element) -} - -// Returns an NSXMLElement object with the given tag (name), attributes, and children. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409299-elementwithname?language=objc -func (xc _XMLNodeClass) ElementWithNameChildrenAttributes(name string, children []IXMLNode, attributes []IXMLNode) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("elementWithName:children:attributes:"), name, children, attributes) - return rv -} - -// Returns an NSXMLElement object with the given tag (name), attributes, and children. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409299-elementwithname?language=objc -func XMLNode_ElementWithNameChildrenAttributes(name string, children []IXMLNode, attributes []IXMLNode) objc.Object { - return XMLNodeClass.ElementWithNameChildrenAttributes(name, children, attributes) -} - -// Returns the child node of the receiver at the specified location. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409811-childatindex?language=objc -func (x_ XMLNode) ChildAtIndex(index uint) XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("childAtIndex:"), index) - return rv -} - -// Returns the nodes resulting from executing an XPath query upon the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409813-nodesforxpath?language=objc -func (x_ XMLNode) NodesForXPathError(xpath string, error unsafe.Pointer) []XMLNode { - rv := objc.Call[[]XMLNode](x_, objc.Sel("nodesForXPath:error:"), xpath, error) - return rv -} - // Returns an NSXMLNode object representing a text node with specified content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409754-textwithstringvalue?language=objc @@ -316,165 +249,156 @@ func XMLNode_TextWithStringValue(stringValue string) objc.Object { return XMLNodeClass.TextWithStringValue(stringValue) } -// Returns a string object encapsulating the receiver’s XML in canonical form. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409817-canonicalxmlstringpreservingcomm?language=objc -func (x_ XMLNode) CanonicalXMLStringPreservingComments(comments bool) string { - rv := objc.Call[string](x_, objc.Sel("canonicalXMLStringPreservingComments:"), comments) - return rv -} - -// Returns a NSXMLDTDNode object representing the DTD declaration for an element, attribute, entity, or notation based on a given string. [Full Topic] +// Returns an NSXMLNode object representing one of the predefined namespaces with the specified prefix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409145-dtdnodewithxmlstring?language=objc -func (xc _XMLNodeClass) DTDNodeWithXMLString(string_ string) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("DTDNodeWithXMLString:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409745-predefinednamespaceforprefix?language=objc +func (xc _XMLNodeClass) PredefinedNamespaceForPrefix(name string) XMLNode { + rv := objc.Call[XMLNode](xc, objc.Sel("predefinedNamespaceForPrefix:"), name) return rv } -// Returns a NSXMLDTDNode object representing the DTD declaration for an element, attribute, entity, or notation based on a given string. [Full Topic] +// Returns an NSXMLNode object representing one of the predefined namespaces with the specified prefix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409145-dtdnodewithxmlstring?language=objc -func XMLNode_DTDNodeWithXMLString(string_ string) objc.Object { - return XMLNodeClass.DTDNodeWithXMLString(string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409745-predefinednamespaceforprefix?language=objc +func XMLNode_PredefinedNamespaceForPrefix(name string) XMLNode { + return XMLNodeClass.PredefinedNamespaceForPrefix(name) } -// Returns the string representation of the receiver as it would appear in an XML document, with one or more output options specified. [Full Topic] +// Returns the local name from the specified qualified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409778-xmlstringwithoptions?language=objc -func (x_ XMLNode) XMLStringWithOptions(options XMLNodeOptions) string { - rv := objc.Call[string](x_, objc.Sel("XMLStringWithOptions:"), options) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409646-localnameforname?language=objc +func (xc _XMLNodeClass) LocalNameForName(name string) string { + rv := objc.Call[string](xc, objc.Sel("localNameForName:"), name) return rv } -// Returns the objects resulting from executing an XQuery query upon the receiver. [Full Topic] +// Returns the local name from the specified qualified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409768-objectsforxquery?language=objc -func (x_ XMLNode) ObjectsForXQueryError(xquery string, error unsafe.Pointer) []objc.Object { - rv := objc.Call[[]objc.Object](x_, objc.Sel("objectsForXQuery:error:"), xquery, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409646-localnameforname?language=objc +func XMLNode_LocalNameForName(name string) string { + return XMLNodeClass.LocalNameForName(name) } -// Detaches the receiver from its parent node. [Full Topic] +// Returns an NSXMLDocument object initialized with a given root element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409806-detach?language=objc -func (x_ XMLNode) Detach() { - objc.Call[objc.Void](x_, objc.Sel("detach")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409802-documentwithrootelement?language=objc +func (xc _XMLNodeClass) DocumentWithRootElement(element IXMLElement) objc.Object { + rv := objc.Call[objc.Object](xc, objc.Sel("documentWithRootElement:"), element) + return rv } -// Returns an NSXMLNode object representing a processing instruction with a specified name and value. [Full Topic] +// Returns an NSXMLDocument object initialized with a given root element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409784-processinginstructionwithname?language=objc -func (xc _XMLNodeClass) ProcessingInstructionWithNameStringValue(name string, stringValue string) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("processingInstructionWithName:stringValue:"), name, stringValue) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409802-documentwithrootelement?language=objc +func XMLNode_DocumentWithRootElement(element IXMLElement) objc.Object { + return XMLNodeClass.DocumentWithRootElement(element) } -// Returns an NSXMLNode object representing a processing instruction with a specified name and value. [Full Topic] +// Sets the content of the receiver as a string value and, optionally, resolves character references, predefined entities, and user-defined entities as declared in the associated DTD. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409784-processinginstructionwithname?language=objc -func XMLNode_ProcessingInstructionWithNameStringValue(name string, stringValue string) objc.Object { - return XMLNodeClass.ProcessingInstructionWithNameStringValue(name, stringValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409758-setstringvalue?language=objc +func (x_ XMLNode) SetStringValueResolvingEntities(string_ string, resolve bool) { + objc.Call[objc.Void](x_, objc.Sel("setStringValue:resolvingEntities:"), string_, resolve) } -// Returns an NSXMLNode object representing one of the predefined namespaces with the specified prefix. [Full Topic] +// Returns an NSXMLNode object representing an attribute node with a given name and string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409745-predefinednamespaceforprefix?language=objc -func (xc _XMLNodeClass) PredefinedNamespaceForPrefix(name string) XMLNode { - rv := objc.Call[XMLNode](xc, objc.Sel("predefinedNamespaceForPrefix:"), name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409795-attributewithname?language=objc +func (xc _XMLNodeClass) AttributeWithNameStringValue(name string, stringValue string) objc.Object { + rv := objc.Call[objc.Object](xc, objc.Sel("attributeWithName:stringValue:"), name, stringValue) return rv } -// Returns an NSXMLNode object representing one of the predefined namespaces with the specified prefix. [Full Topic] +// Returns an NSXMLNode object representing an attribute node with a given name and string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409745-predefinednamespaceforprefix?language=objc -func XMLNode_PredefinedNamespaceForPrefix(name string) XMLNode { - return XMLNodeClass.PredefinedNamespaceForPrefix(name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409795-attributewithname?language=objc +func XMLNode_AttributeWithNameStringValue(name string, stringValue string) objc.Object { + return XMLNodeClass.AttributeWithNameStringValue(name, stringValue) } -// Returns an NSXMLNode object representing an attribute node with a given qualified name and string. [Full Topic] +// Returns the child node of the receiver at the specified location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409815-attributewithname?language=objc -func (xc _XMLNodeClass) AttributeWithNameURIStringValue(name string, URI string, stringValue string) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("attributeWithName:URI:stringValue:"), name, URI, stringValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409811-childatindex?language=objc +func (x_ XMLNode) ChildAtIndex(index uint) XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("childAtIndex:"), index) return rv } -// Returns an NSXMLNode object representing an attribute node with a given qualified name and string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409815-attributewithname?language=objc -func XMLNode_AttributeWithNameURIStringValue(name string, URI string, stringValue string) objc.Object { - return XMLNodeClass.AttributeWithNameURIStringValue(name, URI, stringValue) -} - // Returns the objects resulting from executing an XQuery query upon the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409792-objectsforxquery?language=objc -func (x_ XMLNode) ObjectsForXQueryConstantsError(xquery string, constants map[string]objc.IObject, error unsafe.Pointer) []objc.Object { - rv := objc.Call[[]objc.Object](x_, objc.Sel("objectsForXQuery:constants:error:"), xquery, constants, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409768-objectsforxquery?language=objc +func (x_ XMLNode) ObjectsForXQueryError(xquery string, error unsafe.Pointer) []objc.Object { + rv := objc.Call[[]objc.Object](x_, objc.Sel("objectsForXQuery:error:"), xquery, error) return rv } -// Returns the local name of the receiver. [Full Topic] +// Returns the NSXMLDocument object containing the root element and representing the XML document as a whole. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409734-localname?language=objc -func (x_ XMLNode) LocalName() string { - rv := objc.Call[string](x_, objc.Sel("localName")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409830-rootdocument?language=objc +func (x_ XMLNode) RootDocument() XMLDocument { + rv := objc.Call[XMLDocument](x_, objc.Sel("rootDocument")) return rv } -// Returns the previous NSXMLNode object that is a sibling node to the receiver. [Full Topic] +// Returns the next NSXMLNode object in document order. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409764-previoussibling?language=objc -func (x_ XMLNode) PreviousSibling() XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("previousSibling")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409800-nextnode?language=objc +func (x_ XMLNode) NextNode() XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("nextNode")) return rv } -// Returns the XPath expression identifying the receiver’s location in the document tree. [Full Topic] +// Returns the nesting level of the receiver within the tree hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409826-xpath?language=objc -func (x_ XMLNode) XPath() string { - rv := objc.Call[string](x_, objc.Sel("XPath")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1407508-level?language=objc +func (x_ XMLNode) Level() uint { + rv := objc.Call[uint](x_, objc.Sel("level")) return rv } -// Returns the object value of the receiver. [Full Topic] +// Returns the URI associated with the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409756-objectvalue?language=objc -func (x_ XMLNode) ObjectValue() objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("objectValue")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409774-uri?language=objc +func (x_ XMLNode) URI() string { + rv := objc.Call[string](x_, objc.Sel("URI")) return rv } -// Returns the object value of the receiver. [Full Topic] +// Returns the URI associated with the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409756-objectvalue?language=objc -func (x_ XMLNode) SetObjectValue(value objc.IObject) { - objc.Call[objc.Void](x_, objc.Sel("setObjectValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409774-uri?language=objc +func (x_ XMLNode) SetURI(value string) { + objc.Call[objc.Void](x_, objc.Sel("setURI:"), value) } -// Returns the NSXMLDocument object containing the root element and representing the XML document as a whole. [Full Topic] +// Returns the parent node of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409830-rootdocument?language=objc -func (x_ XMLNode) RootDocument() XMLDocument { - rv := objc.Call[XMLDocument](x_, objc.Sel("rootDocument")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409740-parent?language=objc +func (x_ XMLNode) Parent() XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("parent")) return rv } -// Returns the number of child nodes the receiver has. [Full Topic] +// Returns the name of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409808-childcount?language=objc -func (x_ XMLNode) ChildCount() uint { - rv := objc.Call[uint](x_, objc.Sel("childCount")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409770-name?language=objc +func (x_ XMLNode) Name() string { + rv := objc.Call[string](x_, objc.Sel("name")) return rv } -// Returns the next NSXMLNode object in document order. [Full Topic] +// Returns the name of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409800-nextnode?language=objc -func (x_ XMLNode) NextNode() XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("nextNode")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409770-name?language=objc +func (x_ XMLNode) SetName(value string) { + objc.Call[objc.Void](x_, objc.Sel("setName:"), value) +} + +// Returns the local name of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409734-localname?language=objc +func (x_ XMLNode) LocalName() string { + rv := objc.Call[string](x_, objc.Sel("localName")) return rv } @@ -493,43 +417,43 @@ func (x_ XMLNode) SetStringValue(value string) { objc.Call[objc.Void](x_, objc.Sel("setStringValue:"), value) } -// Returns an immutable array containing the child nodes of the receiver (as NSXMLNode objects). [Full Topic] +// Returns the string representation of the receiver as it would appear in an XML document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409828-children?language=objc -func (x_ XMLNode) Children() []XMLNode { - rv := objc.Call[[]XMLNode](x_, objc.Sel("children")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409772-xmlstring?language=objc +func (x_ XMLNode) XMLString() string { + rv := objc.Call[string](x_, objc.Sel("XMLString")) return rv } -// Returns a description of the receiver. [Full Topic] +// Returns the previous NSXMLNode object that is a sibling node to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409788-description?language=objc -func (x_ XMLNode) Description() string { - rv := objc.Call[string](x_, objc.Sel("description")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409764-previoussibling?language=objc +func (x_ XMLNode) PreviousSibling() XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("previousSibling")) return rv } -// Returns the prefix of the receiver’s name. [Full Topic] +// Returns a description of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409797-prefix?language=objc -func (x_ XMLNode) Prefix() string { - rv := objc.Call[string](x_, objc.Sel("prefix")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409788-description?language=objc +func (x_ XMLNode) Description() string { + rv := objc.Call[string](x_, objc.Sel("description")) return rv } -// Returns the URI associated with the receiver. [Full Topic] +// Returns the object value of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409774-uri?language=objc -func (x_ XMLNode) URI() string { - rv := objc.Call[string](x_, objc.Sel("URI")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409756-objectvalue?language=objc +func (x_ XMLNode) ObjectValue() objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("objectValue")) return rv } -// Returns the URI associated with the receiver. [Full Topic] +// Returns the object value of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409774-uri?language=objc -func (x_ XMLNode) SetURI(value string) { - objc.Call[objc.Void](x_, objc.Sel("setURI:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409756-objectvalue?language=objc +func (x_ XMLNode) SetObjectValue(value objc.IObject) { + objc.Call[objc.Void](x_, objc.Sel("setObjectValue:"), value) } // Returns the kind of node the receiver is as a constant of type NSXMLNodeKind. [Full Topic] @@ -540,27 +464,11 @@ func (x_ XMLNode) Kind() XMLNodeKind { return rv } -// Returns the previous NSXMLNode object in document order. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409736-previousnode?language=objc -func (x_ XMLNode) PreviousNode() XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("previousNode")) - return rv -} - -// Returns the string representation of the receiver as it would appear in an XML document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409772-xmlstring?language=objc -func (x_ XMLNode) XMLString() string { - rv := objc.Call[string](x_, objc.Sel("XMLString")) - return rv -} - -// Returns the nesting level of the receiver within the tree hierarchy. [Full Topic] +// Returns the XPath expression identifying the receiver’s location in the document tree. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1407508-level?language=objc -func (x_ XMLNode) Level() uint { - rv := objc.Call[uint](x_, objc.Sel("level")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409826-xpath?language=objc +func (x_ XMLNode) XPath() string { + rv := objc.Call[string](x_, objc.Sel("XPath")) return rv } @@ -572,21 +480,14 @@ func (x_ XMLNode) NextSibling() XMLNode { return rv } -// Returns the name of the receiver. [Full Topic] +// Returns the prefix of the receiver’s name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409770-name?language=objc -func (x_ XMLNode) Name() string { - rv := objc.Call[string](x_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409797-prefix?language=objc +func (x_ XMLNode) Prefix() string { + rv := objc.Call[string](x_, objc.Sel("prefix")) return rv } -// Returns the name of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409770-name?language=objc -func (x_ XMLNode) SetName(value string) { - objc.Call[objc.Void](x_, objc.Sel("setName:"), value) -} - // Returns the index of the receiver identifying its position relative to its sibling nodes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409743-index?language=objc @@ -595,10 +496,26 @@ func (x_ XMLNode) Index() uint { return rv } -// Returns the parent node of the receiver. [Full Topic] +// Returns the number of child nodes the receiver has. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409740-parent?language=objc -func (x_ XMLNode) Parent() XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("parent")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409808-childcount?language=objc +func (x_ XMLNode) ChildCount() uint { + rv := objc.Call[uint](x_, objc.Sel("childCount")) + return rv +} + +// Returns the previous NSXMLNode object in document order. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409736-previousnode?language=objc +func (x_ XMLNode) PreviousNode() XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("previousNode")) + return rv +} + +// Returns an immutable array containing the child nodes of the receiver (as NSXMLNode objects). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409828-children?language=objc +func (x_ XMLNode) Children() []XMLNode { + rv := objc.Call[[]XMLNode](x_, objc.Sel("children")) return rv } diff --git a/macos/foundation/xml_parser.gen.go b/macos/foundation/xml_parser.gen.go index e4e91127..2698891c 100644 --- a/macos/foundation/xml_parser.gen.go +++ b/macos/foundation/xml_parser.gen.go @@ -18,26 +18,26 @@ type _XMLParserClass struct { // An interface definition for the [XMLParser] class. type IXMLParser interface { objc.IObject - Parse() bool AbortParsing() - ShouldProcessNamespaces() bool - SetShouldProcessNamespaces(value bool) + Parse() bool + ColumnNumber() int ExternalEntityResolvingPolicy() XMLParserExternalEntityResolvingPolicy SetExternalEntityResolvingPolicy(value XMLParserExternalEntityResolvingPolicy) - ShouldResolveExternalEntities() bool - SetShouldResolveExternalEntities(value bool) - ParserError() Error - PublicID() string + SystemID() string + ShouldProcessNamespaces() bool + SetShouldProcessNamespaces(value bool) + ShouldReportNamespacePrefixes() bool + SetShouldReportNamespacePrefixes(value bool) Delegate() XMLParserDelegateObject SetDelegate(value PXMLParserDelegate) SetDelegateObject(valueObject objc.IObject) + PublicID() string AllowedExternalEntityURLs() Set SetAllowedExternalEntityURLs(value ISet) - SystemID() string + ParserError() Error + ShouldResolveExternalEntities() bool + SetShouldResolveExternalEntities(value bool) LineNumber() int - ShouldReportNamespacePrefixes() bool - SetShouldReportNamespacePrefixes(value bool) - ColumnNumber() int } // An event driven parser of XML documents (including DTD declarations). [Full Topic] @@ -53,6 +53,20 @@ func XMLParserFrom(ptr unsafe.Pointer) XMLParser { } } +func (x_ XMLParser) InitWithData(data []byte) XMLParser { + rv := objc.Call[XMLParser](x_, objc.Sel("initWithData:"), data) + return rv +} + +// Initializes a parser with the XML contents encapsulated in a given data object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1418103-initwithdata?language=objc +func NewXMLParserWithData(data []byte) XMLParser { + instance := XMLParserClass.Alloc().InitWithData(data) + instance.Autorelease() + return instance +} + func (x_ XMLParser) InitWithContentsOfURL(url IURL) XMLParser { rv := objc.Call[XMLParser](x_, objc.Sel("initWithContentsOfURL:"), url) return rv @@ -81,20 +95,6 @@ func NewXMLParserWithStream(stream IInputStream) XMLParser { return instance } -func (x_ XMLParser) InitWithData(data []byte) XMLParser { - rv := objc.Call[XMLParser](x_, objc.Sel("initWithData:"), data) - return rv -} - -// Initializes a parser with the XML contents encapsulated in a given data object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1418103-initwithdata?language=objc -func NewXMLParserWithData(data []byte) XMLParser { - instance := XMLParserClass.Alloc().InitWithData(data) - instance.Autorelease() - return instance -} - func (xc _XMLParserClass) Alloc() XMLParser { rv := objc.Call[XMLParser](xc, objc.Sel("alloc")) return rv @@ -115,14 +115,6 @@ func (x_ XMLParser) Init() XMLParser { return rv } -// Starts the event-driven parsing operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1411778-parse?language=objc -func (x_ XMLParser) Parse() bool { - rv := objc.Call[bool](x_, objc.Sel("parse")) - return rv -} - // Stops the parser object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1410083-abortparsing?language=objc @@ -130,19 +122,20 @@ func (x_ XMLParser) AbortParsing() { objc.Call[objc.Void](x_, objc.Sel("abortParsing")) } -// A Boolean value that determines whether the parser reports the namespaces and qualified names of elements. [Full Topic] +// Starts the event-driven parsing operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1418380-shouldprocessnamespaces?language=objc -func (x_ XMLParser) ShouldProcessNamespaces() bool { - rv := objc.Call[bool](x_, objc.Sel("shouldProcessNamespaces")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1411778-parse?language=objc +func (x_ XMLParser) Parse() bool { + rv := objc.Call[bool](x_, objc.Sel("parse")) return rv } -// A Boolean value that determines whether the parser reports the namespaces and qualified names of elements. [Full Topic] +// The column number of the XML document being processed by the parser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1418380-shouldprocessnamespaces?language=objc -func (x_ XMLParser) SetShouldProcessNamespaces(value bool) { - objc.Call[objc.Void](x_, objc.Sel("setShouldProcessNamespaces:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1416983-columnnumber?language=objc +func (x_ XMLParser) ColumnNumber() int { + rv := objc.Call[int](x_, objc.Sel("columnNumber")) + return rv } // [Full Topic] @@ -160,37 +153,44 @@ func (x_ XMLParser) SetExternalEntityResolvingPolicy(value XMLParserExternalEnti objc.Call[objc.Void](x_, objc.Sel("setExternalEntityResolvingPolicy:"), value) } -// A Boolean value that determines whether the parser reports declarations of external entities. [Full Topic] +// The system identifier of the external entity referenced in the XML document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1414143-shouldresolveexternalentities?language=objc -func (x_ XMLParser) ShouldResolveExternalEntities() bool { - rv := objc.Call[bool](x_, objc.Sel("shouldResolveExternalEntities")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1411917-systemid?language=objc +func (x_ XMLParser) SystemID() string { + rv := objc.Call[string](x_, objc.Sel("systemID")) return rv } -// A Boolean value that determines whether the parser reports declarations of external entities. [Full Topic] +// A Boolean value that determines whether the parser reports the namespaces and qualified names of elements. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1414143-shouldresolveexternalentities?language=objc -func (x_ XMLParser) SetShouldResolveExternalEntities(value bool) { - objc.Call[objc.Void](x_, objc.Sel("setShouldResolveExternalEntities:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1418380-shouldprocessnamespaces?language=objc +func (x_ XMLParser) ShouldProcessNamespaces() bool { + rv := objc.Call[bool](x_, objc.Sel("shouldProcessNamespaces")) + return rv } -// An NSError object from which you can obtain information about a parsing error. [Full Topic] +// A Boolean value that determines whether the parser reports the namespaces and qualified names of elements. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1417446-parsererror?language=objc -func (x_ XMLParser) ParserError() Error { - rv := objc.Call[Error](x_, objc.Sel("parserError")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1418380-shouldprocessnamespaces?language=objc +func (x_ XMLParser) SetShouldProcessNamespaces(value bool) { + objc.Call[objc.Void](x_, objc.Sel("setShouldProcessNamespaces:"), value) } -// The public identifier of the external entity referenced in the XML document. [Full Topic] +// A Boolean value that determines whether the parser reports the prefixes indicating the scope of namespace declarations. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1414516-publicid?language=objc -func (x_ XMLParser) PublicID() string { - rv := objc.Call[string](x_, objc.Sel("publicID")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1410809-shouldreportnamespaceprefixes?language=objc +func (x_ XMLParser) ShouldReportNamespacePrefixes() bool { + rv := objc.Call[bool](x_, objc.Sel("shouldReportNamespacePrefixes")) return rv } +// A Boolean value that determines whether the parser reports the prefixes indicating the scope of namespace declarations. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1410809-shouldreportnamespaceprefixes?language=objc +func (x_ XMLParser) SetShouldReportNamespacePrefixes(value bool) { + objc.Call[objc.Void](x_, objc.Sel("setShouldReportNamespacePrefixes:"), value) +} + // A delegate object that receives messages about the parsing process. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1416209-delegate?language=objc @@ -214,6 +214,14 @@ func (x_ XMLParser) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](x_, objc.Sel("setDelegate:"), valueObject) } +// The public identifier of the external entity referenced in the XML document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1414516-publicid?language=objc +func (x_ XMLParser) PublicID() string { + rv := objc.Call[string](x_, objc.Sel("publicID")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1412380-allowedexternalentityurls?language=objc @@ -229,41 +237,33 @@ func (x_ XMLParser) SetAllowedExternalEntityURLs(value ISet) { objc.Call[objc.Void](x_, objc.Sel("setAllowedExternalEntityURLs:"), value) } -// The system identifier of the external entity referenced in the XML document. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1411917-systemid?language=objc -func (x_ XMLParser) SystemID() string { - rv := objc.Call[string](x_, objc.Sel("systemID")) - return rv -} - -// The line number of the XML document being processed by the parser. [Full Topic] +// An NSError object from which you can obtain information about a parsing error. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1413404-linenumber?language=objc -func (x_ XMLParser) LineNumber() int { - rv := objc.Call[int](x_, objc.Sel("lineNumber")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1417446-parsererror?language=objc +func (x_ XMLParser) ParserError() Error { + rv := objc.Call[Error](x_, objc.Sel("parserError")) return rv } -// A Boolean value that determines whether the parser reports the prefixes indicating the scope of namespace declarations. [Full Topic] +// A Boolean value that determines whether the parser reports declarations of external entities. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1410809-shouldreportnamespaceprefixes?language=objc -func (x_ XMLParser) ShouldReportNamespacePrefixes() bool { - rv := objc.Call[bool](x_, objc.Sel("shouldReportNamespacePrefixes")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1414143-shouldresolveexternalentities?language=objc +func (x_ XMLParser) ShouldResolveExternalEntities() bool { + rv := objc.Call[bool](x_, objc.Sel("shouldResolveExternalEntities")) return rv } -// A Boolean value that determines whether the parser reports the prefixes indicating the scope of namespace declarations. [Full Topic] +// A Boolean value that determines whether the parser reports declarations of external entities. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1410809-shouldreportnamespaceprefixes?language=objc -func (x_ XMLParser) SetShouldReportNamespacePrefixes(value bool) { - objc.Call[objc.Void](x_, objc.Sel("setShouldReportNamespacePrefixes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1414143-shouldresolveexternalentities?language=objc +func (x_ XMLParser) SetShouldResolveExternalEntities(value bool) { + objc.Call[objc.Void](x_, objc.Sel("setShouldResolveExternalEntities:"), value) } -// The column number of the XML document being processed by the parser. [Full Topic] +// The line number of the XML document being processed by the parser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1416983-columnnumber?language=objc -func (x_ XMLParser) ColumnNumber() int { - rv := objc.Call[int](x_, objc.Sel("columnNumber")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparser/1413404-linenumber?language=objc +func (x_ XMLParser) LineNumber() int { + rv := objc.Call[int](x_, objc.Sel("lineNumber")) return rv } diff --git a/macos/foundation/xml_parser_delegate.gen.go b/macos/foundation/xml_parser_delegate.gen.go index 893a7700..a26dfdda 100644 --- a/macos/foundation/xml_parser_delegate.gen.go +++ b/macos/foundation/xml_parser_delegate.gen.go @@ -10,349 +10,26 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate?language=objc type PXMLParserDelegate interface { - // optional - ParserFoundNotationDeclarationWithNamePublicIDSystemID(parser XMLParser, name string, publicID string, systemID string) - HasParserFoundNotationDeclarationWithNamePublicIDSystemID() bool - - // optional - ParserResolveExternalEntityNameSystemID(parser XMLParser, name string, systemID string) []byte - HasParserResolveExternalEntityNameSystemID() bool - - // optional - ParserFoundComment(parser XMLParser, comment string) - HasParserFoundComment() bool - - // optional - ParserFoundInternalEntityDeclarationWithNameValue(parser XMLParser, name string, value string) - HasParserFoundInternalEntityDeclarationWithNameValue() bool - - // optional - ParserDidEndElementNamespaceURIQualifiedName(parser XMLParser, elementName string, namespaceURI string, qName string) - HasParserDidEndElementNamespaceURIQualifiedName() bool - - // optional - ParserFoundElementDeclarationWithNameModel(parser XMLParser, elementName string, model string) - HasParserFoundElementDeclarationWithNameModel() bool - - // optional - ParserDidStartElementNamespaceURIQualifiedNameAttributes(parser XMLParser, elementName string, namespaceURI string, qName string, attributeDict map[string]string) - HasParserDidStartElementNamespaceURIQualifiedNameAttributes() bool - - // optional - ParserDidEndDocument(parser XMLParser) - HasParserDidEndDocument() bool - - // optional - ParserValidationErrorOccurred(parser XMLParser, validationError Error) - HasParserValidationErrorOccurred() bool - - // optional - ParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName(parser XMLParser, name string, publicID string, systemID string, notationName string) - HasParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName() bool - - // optional - ParserFoundCDATA(parser XMLParser, CDATABlock []byte) - HasParserFoundCDATA() bool - - // optional - ParserFoundProcessingInstructionWithTargetData(parser XMLParser, target string, data string) - HasParserFoundProcessingInstructionWithTargetData() bool - - // optional - ParserFoundIgnorableWhitespace(parser XMLParser, whitespaceString string) - HasParserFoundIgnorableWhitespace() bool - - // optional - ParserFoundExternalEntityDeclarationWithNamePublicIDSystemID(parser XMLParser, name string, publicID string, systemID string) - HasParserFoundExternalEntityDeclarationWithNamePublicIDSystemID() bool - // optional ParserDidStartDocument(parser XMLParser) HasParserDidStartDocument() bool // optional - ParserDidStartMappingPrefixToURI(parser XMLParser, prefix string, namespaceURI string) - HasParserDidStartMappingPrefixToURI() bool - - // optional - ParserDidEndMappingPrefix(parser XMLParser, prefix string) - HasParserDidEndMappingPrefix() bool - - // optional - ParserParseErrorOccurred(parser XMLParser, parseError Error) - HasParserParseErrorOccurred() bool - - // optional - ParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue(parser XMLParser, attributeName string, elementName string, type_ string, defaultValue string) - HasParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue() bool + ParserDidEndDocument(parser XMLParser) + HasParserDidEndDocument() bool // optional - ParserFoundCharacters(parser XMLParser, string_ string) - HasParserFoundCharacters() bool + ParserFoundComment(parser XMLParser, comment string) + HasParserFoundComment() bool } // A delegate implementation builder for the [PXMLParserDelegate] protocol. type XMLParserDelegate struct { - _ParserFoundNotationDeclarationWithNamePublicIDSystemID func(parser XMLParser, name string, publicID string, systemID string) - _ParserResolveExternalEntityNameSystemID func(parser XMLParser, name string, systemID string) []byte - _ParserFoundComment func(parser XMLParser, comment string) - _ParserFoundInternalEntityDeclarationWithNameValue func(parser XMLParser, name string, value string) - _ParserDidEndElementNamespaceURIQualifiedName func(parser XMLParser, elementName string, namespaceURI string, qName string) - _ParserFoundElementDeclarationWithNameModel func(parser XMLParser, elementName string, model string) - _ParserDidStartElementNamespaceURIQualifiedNameAttributes func(parser XMLParser, elementName string, namespaceURI string, qName string, attributeDict map[string]string) - _ParserDidEndDocument func(parser XMLParser) - _ParserValidationErrorOccurred func(parser XMLParser, validationError Error) - _ParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName func(parser XMLParser, name string, publicID string, systemID string, notationName string) - _ParserFoundCDATA func(parser XMLParser, CDATABlock []byte) - _ParserFoundProcessingInstructionWithTargetData func(parser XMLParser, target string, data string) - _ParserFoundIgnorableWhitespace func(parser XMLParser, whitespaceString string) - _ParserFoundExternalEntityDeclarationWithNamePublicIDSystemID func(parser XMLParser, name string, publicID string, systemID string) - _ParserDidStartDocument func(parser XMLParser) - _ParserDidStartMappingPrefixToURI func(parser XMLParser, prefix string, namespaceURI string) - _ParserDidEndMappingPrefix func(parser XMLParser, prefix string) - _ParserParseErrorOccurred func(parser XMLParser, parseError Error) - _ParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue func(parser XMLParser, attributeName string, elementName string, type_ string, defaultValue string) - _ParserFoundCharacters func(parser XMLParser, string_ string) -} - -func (di *XMLParserDelegate) HasParserFoundNotationDeclarationWithNamePublicIDSystemID() bool { - return di._ParserFoundNotationDeclarationWithNamePublicIDSystemID != nil -} - -// Sent by a parser object to its delegate when it encounters a notation declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1411925-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundNotationDeclarationWithNamePublicIDSystemID(f func(parser XMLParser, name string, publicID string, systemID string)) { - di._ParserFoundNotationDeclarationWithNamePublicIDSystemID = f -} - -// Sent by a parser object to its delegate when it encounters a notation declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1411925-parser?language=objc -func (di *XMLParserDelegate) ParserFoundNotationDeclarationWithNamePublicIDSystemID(parser XMLParser, name string, publicID string, systemID string) { - di._ParserFoundNotationDeclarationWithNamePublicIDSystemID(parser, name, publicID, systemID) -} -func (di *XMLParserDelegate) HasParserResolveExternalEntityNameSystemID() bool { - return di._ParserResolveExternalEntityNameSystemID != nil -} - -// Sent by a parser object to its delegate when it encounters a given external entity with a specific system ID. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416221-parser?language=objc -func (di *XMLParserDelegate) SetParserResolveExternalEntityNameSystemID(f func(parser XMLParser, name string, systemID string) []byte) { - di._ParserResolveExternalEntityNameSystemID = f -} - -// Sent by a parser object to its delegate when it encounters a given external entity with a specific system ID. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416221-parser?language=objc -func (di *XMLParserDelegate) ParserResolveExternalEntityNameSystemID(parser XMLParser, name string, systemID string) []byte { - return di._ParserResolveExternalEntityNameSystemID(parser, name, systemID) -} -func (di *XMLParserDelegate) HasParserFoundComment() bool { - return di._ParserFoundComment != nil -} - -// Sent by a parser object to its delegate when it encounters a comment in the XML. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417651-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundComment(f func(parser XMLParser, comment string)) { - di._ParserFoundComment = f -} - -// Sent by a parser object to its delegate when it encounters a comment in the XML. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417651-parser?language=objc -func (di *XMLParserDelegate) ParserFoundComment(parser XMLParser, comment string) { - di._ParserFoundComment(parser, comment) -} -func (di *XMLParserDelegate) HasParserFoundInternalEntityDeclarationWithNameValue() bool { - return di._ParserFoundInternalEntityDeclarationWithNameValue != nil -} - -// Sent by a parser object to the delegate when it encounters an internal entity declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1414803-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundInternalEntityDeclarationWithNameValue(f func(parser XMLParser, name string, value string)) { - di._ParserFoundInternalEntityDeclarationWithNameValue = f -} - -// Sent by a parser object to the delegate when it encounters an internal entity declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1414803-parser?language=objc -func (di *XMLParserDelegate) ParserFoundInternalEntityDeclarationWithNameValue(parser XMLParser, name string, value string) { - di._ParserFoundInternalEntityDeclarationWithNameValue(parser, name, value) -} -func (di *XMLParserDelegate) HasParserDidEndElementNamespaceURIQualifiedName() bool { - return di._ParserDidEndElementNamespaceURIQualifiedName != nil -} - -// Sent by a parser object to its delegate when it encounters an end tag for a specific element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417955-parser?language=objc -func (di *XMLParserDelegate) SetParserDidEndElementNamespaceURIQualifiedName(f func(parser XMLParser, elementName string, namespaceURI string, qName string)) { - di._ParserDidEndElementNamespaceURIQualifiedName = f -} - -// Sent by a parser object to its delegate when it encounters an end tag for a specific element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417955-parser?language=objc -func (di *XMLParserDelegate) ParserDidEndElementNamespaceURIQualifiedName(parser XMLParser, elementName string, namespaceURI string, qName string) { - di._ParserDidEndElementNamespaceURIQualifiedName(parser, elementName, namespaceURI, qName) -} -func (di *XMLParserDelegate) HasParserFoundElementDeclarationWithNameModel() bool { - return di._ParserFoundElementDeclarationWithNameModel != nil -} - -// Sent by a parser object to its delegate when it encounters a declaration of an element with a given model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1411043-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundElementDeclarationWithNameModel(f func(parser XMLParser, elementName string, model string)) { - di._ParserFoundElementDeclarationWithNameModel = f -} - -// Sent by a parser object to its delegate when it encounters a declaration of an element with a given model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1411043-parser?language=objc -func (di *XMLParserDelegate) ParserFoundElementDeclarationWithNameModel(parser XMLParser, elementName string, model string) { - di._ParserFoundElementDeclarationWithNameModel(parser, elementName, model) -} -func (di *XMLParserDelegate) HasParserDidStartElementNamespaceURIQualifiedNameAttributes() bool { - return di._ParserDidStartElementNamespaceURIQualifiedNameAttributes != nil -} - -// Sent by a parser object to its delegate when it encounters a start tag for a given element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1415894-parser?language=objc -func (di *XMLParserDelegate) SetParserDidStartElementNamespaceURIQualifiedNameAttributes(f func(parser XMLParser, elementName string, namespaceURI string, qName string, attributeDict map[string]string)) { - di._ParserDidStartElementNamespaceURIQualifiedNameAttributes = f -} - -// Sent by a parser object to its delegate when it encounters a start tag for a given element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1415894-parser?language=objc -func (di *XMLParserDelegate) ParserDidStartElementNamespaceURIQualifiedNameAttributes(parser XMLParser, elementName string, namespaceURI string, qName string, attributeDict map[string]string) { - di._ParserDidStartElementNamespaceURIQualifiedNameAttributes(parser, elementName, namespaceURI, qName, attributeDict) -} -func (di *XMLParserDelegate) HasParserDidEndDocument() bool { - return di._ParserDidEndDocument != nil -} - -// Sent by the parser object to the delegate when it has successfully completed parsing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1418172-parserdidenddocument?language=objc -func (di *XMLParserDelegate) SetParserDidEndDocument(f func(parser XMLParser)) { - di._ParserDidEndDocument = f -} - -// Sent by the parser object to the delegate when it has successfully completed parsing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1418172-parserdidenddocument?language=objc -func (di *XMLParserDelegate) ParserDidEndDocument(parser XMLParser) { - di._ParserDidEndDocument(parser) -} -func (di *XMLParserDelegate) HasParserValidationErrorOccurred() bool { - return di._ParserValidationErrorOccurred != nil -} - -// Sent by a parser object to its delegate when it encounters a fatal validation error. NSXMLParser currently does not invoke this method and does not perform validation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417838-parser?language=objc -func (di *XMLParserDelegate) SetParserValidationErrorOccurred(f func(parser XMLParser, validationError Error)) { - di._ParserValidationErrorOccurred = f -} - -// Sent by a parser object to its delegate when it encounters a fatal validation error. NSXMLParser currently does not invoke this method and does not perform validation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417838-parser?language=objc -func (di *XMLParserDelegate) ParserValidationErrorOccurred(parser XMLParser, validationError Error) { - di._ParserValidationErrorOccurred(parser, validationError) -} -func (di *XMLParserDelegate) HasParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName() bool { - return di._ParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName != nil -} - -// Sent by a parser object to its delegate when it encounters an unparsed entity declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412907-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName(f func(parser XMLParser, name string, publicID string, systemID string, notationName string)) { - di._ParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName = f -} - -// Sent by a parser object to its delegate when it encounters an unparsed entity declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412907-parser?language=objc -func (di *XMLParserDelegate) ParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName(parser XMLParser, name string, publicID string, systemID string, notationName string) { - di._ParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName(parser, name, publicID, systemID, notationName) -} -func (di *XMLParserDelegate) HasParserFoundCDATA() bool { - return di._ParserFoundCDATA != nil -} - -// Sent by a parser object to its delegate when it encounters a CDATA block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1407687-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundCDATA(f func(parser XMLParser, CDATABlock []byte)) { - di._ParserFoundCDATA = f -} - -// Sent by a parser object to its delegate when it encounters a CDATA block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1407687-parser?language=objc -func (di *XMLParserDelegate) ParserFoundCDATA(parser XMLParser, CDATABlock []byte) { - di._ParserFoundCDATA(parser, CDATABlock) -} -func (di *XMLParserDelegate) HasParserFoundProcessingInstructionWithTargetData() bool { - return di._ParserFoundProcessingInstructionWithTargetData != nil -} - -// Sent by a parser object to its delegate when it encounters a processing instruction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412929-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundProcessingInstructionWithTargetData(f func(parser XMLParser, target string, data string)) { - di._ParserFoundProcessingInstructionWithTargetData = f -} - -// Sent by a parser object to its delegate when it encounters a processing instruction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412929-parser?language=objc -func (di *XMLParserDelegate) ParserFoundProcessingInstructionWithTargetData(parser XMLParser, target string, data string) { - di._ParserFoundProcessingInstructionWithTargetData(parser, target, data) -} -func (di *XMLParserDelegate) HasParserFoundIgnorableWhitespace() bool { - return di._ParserFoundIgnorableWhitespace != nil -} - -// Reported by a parser object to provide its delegate with a string representing all or part of the ignorable whitespace characters of the current element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416470-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundIgnorableWhitespace(f func(parser XMLParser, whitespaceString string)) { - di._ParserFoundIgnorableWhitespace = f -} - -// Reported by a parser object to provide its delegate with a string representing all or part of the ignorable whitespace characters of the current element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416470-parser?language=objc -func (di *XMLParserDelegate) ParserFoundIgnorableWhitespace(parser XMLParser, whitespaceString string) { - di._ParserFoundIgnorableWhitespace(parser, whitespaceString) -} -func (di *XMLParserDelegate) HasParserFoundExternalEntityDeclarationWithNamePublicIDSystemID() bool { - return di._ParserFoundExternalEntityDeclarationWithNamePublicIDSystemID != nil + _ParserDidStartDocument func(parser XMLParser) + _ParserDidEndDocument func(parser XMLParser) + _ParserFoundComment func(parser XMLParser, comment string) } -// Sent by a parser object to its delegate when it encounters an external entity declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1408156-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundExternalEntityDeclarationWithNamePublicIDSystemID(f func(parser XMLParser, name string, publicID string, systemID string)) { - di._ParserFoundExternalEntityDeclarationWithNamePublicIDSystemID = f -} - -// Sent by a parser object to its delegate when it encounters an external entity declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1408156-parser?language=objc -func (di *XMLParserDelegate) ParserFoundExternalEntityDeclarationWithNamePublicIDSystemID(parser XMLParser, name string, publicID string, systemID string) { - di._ParserFoundExternalEntityDeclarationWithNamePublicIDSystemID(parser, name, publicID, systemID) -} func (di *XMLParserDelegate) HasParserDidStartDocument() bool { return di._ParserDidStartDocument != nil } @@ -370,90 +47,39 @@ func (di *XMLParserDelegate) SetParserDidStartDocument(f func(parser XMLParser)) func (di *XMLParserDelegate) ParserDidStartDocument(parser XMLParser) { di._ParserDidStartDocument(parser) } -func (di *XMLParserDelegate) HasParserDidStartMappingPrefixToURI() bool { - return di._ParserDidStartMappingPrefixToURI != nil -} - -// Sent by a parser object to its delegate the first time it encounters a given namespace prefix, which is mapped to a URI. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416738-parser?language=objc -func (di *XMLParserDelegate) SetParserDidStartMappingPrefixToURI(f func(parser XMLParser, prefix string, namespaceURI string)) { - di._ParserDidStartMappingPrefixToURI = f -} - -// Sent by a parser object to its delegate the first time it encounters a given namespace prefix, which is mapped to a URI. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416738-parser?language=objc -func (di *XMLParserDelegate) ParserDidStartMappingPrefixToURI(parser XMLParser, prefix string, namespaceURI string) { - di._ParserDidStartMappingPrefixToURI(parser, prefix, namespaceURI) -} -func (di *XMLParserDelegate) HasParserDidEndMappingPrefix() bool { - return di._ParserDidEndMappingPrefix != nil -} - -// Sent by a parser object to its delegate when a given namespace prefix goes out of scope. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412878-parser?language=objc -func (di *XMLParserDelegate) SetParserDidEndMappingPrefix(f func(parser XMLParser, prefix string)) { - di._ParserDidEndMappingPrefix = f -} - -// Sent by a parser object to its delegate when a given namespace prefix goes out of scope. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412878-parser?language=objc -func (di *XMLParserDelegate) ParserDidEndMappingPrefix(parser XMLParser, prefix string) { - di._ParserDidEndMappingPrefix(parser, prefix) -} -func (di *XMLParserDelegate) HasParserParseErrorOccurred() bool { - return di._ParserParseErrorOccurred != nil -} - -// Sent by a parser object to its delegate when it encounters a fatal error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412379-parser?language=objc -func (di *XMLParserDelegate) SetParserParseErrorOccurred(f func(parser XMLParser, parseError Error)) { - di._ParserParseErrorOccurred = f -} - -// Sent by a parser object to its delegate when it encounters a fatal error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412379-parser?language=objc -func (di *XMLParserDelegate) ParserParseErrorOccurred(parser XMLParser, parseError Error) { - di._ParserParseErrorOccurred(parser, parseError) -} -func (di *XMLParserDelegate) HasParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue() bool { - return di._ParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue != nil +func (di *XMLParserDelegate) HasParserDidEndDocument() bool { + return di._ParserDidEndDocument != nil } -// Sent by a parser object to its delegate when it encounters a declaration of an attribute that is associated with a specific element. [Full Topic] +// Sent by the parser object to the delegate when it has successfully completed parsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416969-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue(f func(parser XMLParser, attributeName string, elementName string, type_ string, defaultValue string)) { - di._ParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1418172-parserdidenddocument?language=objc +func (di *XMLParserDelegate) SetParserDidEndDocument(f func(parser XMLParser)) { + di._ParserDidEndDocument = f } -// Sent by a parser object to its delegate when it encounters a declaration of an attribute that is associated with a specific element. [Full Topic] +// Sent by the parser object to the delegate when it has successfully completed parsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416969-parser?language=objc -func (di *XMLParserDelegate) ParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue(parser XMLParser, attributeName string, elementName string, type_ string, defaultValue string) { - di._ParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue(parser, attributeName, elementName, type_, defaultValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1418172-parserdidenddocument?language=objc +func (di *XMLParserDelegate) ParserDidEndDocument(parser XMLParser) { + di._ParserDidEndDocument(parser) } -func (di *XMLParserDelegate) HasParserFoundCharacters() bool { - return di._ParserFoundCharacters != nil +func (di *XMLParserDelegate) HasParserFoundComment() bool { + return di._ParserFoundComment != nil } -// Sent by a parser object to provide its delegate with a string representing all or part of the characters of the current element. [Full Topic] +// Sent by a parser object to its delegate when it encounters a comment in the XML. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412539-parser?language=objc -func (di *XMLParserDelegate) SetParserFoundCharacters(f func(parser XMLParser, string_ string)) { - di._ParserFoundCharacters = f +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417651-parser?language=objc +func (di *XMLParserDelegate) SetParserFoundComment(f func(parser XMLParser, comment string)) { + di._ParserFoundComment = f } -// Sent by a parser object to provide its delegate with a string representing all or part of the characters of the current element. [Full Topic] +// Sent by a parser object to its delegate when it encounters a comment in the XML. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412539-parser?language=objc -func (di *XMLParserDelegate) ParserFoundCharacters(parser XMLParser, string_ string) { - di._ParserFoundCharacters(parser, string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417651-parser?language=objc +func (di *XMLParserDelegate) ParserFoundComment(parser XMLParser, comment string) { + di._ParserFoundComment(parser, comment) } // ensure impl type implements protocol interface @@ -464,161 +90,6 @@ type XMLParserDelegateObject struct { objc.Object } -func (x_ XMLParserDelegateObject) HasParserFoundNotationDeclarationWithNamePublicIDSystemID() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundNotationDeclarationWithName:publicID:systemID:")) -} - -// Sent by a parser object to its delegate when it encounters a notation declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1411925-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundNotationDeclarationWithNamePublicIDSystemID(parser XMLParser, name string, publicID string, systemID string) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundNotationDeclarationWithName:publicID:systemID:"), parser, name, publicID, systemID) -} - -func (x_ XMLParserDelegateObject) HasParserResolveExternalEntityNameSystemID() bool { - return x_.RespondsToSelector(objc.Sel("parser:resolveExternalEntityName:systemID:")) -} - -// Sent by a parser object to its delegate when it encounters a given external entity with a specific system ID. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416221-parser?language=objc -func (x_ XMLParserDelegateObject) ParserResolveExternalEntityNameSystemID(parser XMLParser, name string, systemID string) []byte { - rv := objc.Call[[]byte](x_, objc.Sel("parser:resolveExternalEntityName:systemID:"), parser, name, systemID) - return rv -} - -func (x_ XMLParserDelegateObject) HasParserFoundComment() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundComment:")) -} - -// Sent by a parser object to its delegate when it encounters a comment in the XML. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417651-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundComment(parser XMLParser, comment string) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundComment:"), parser, comment) -} - -func (x_ XMLParserDelegateObject) HasParserFoundInternalEntityDeclarationWithNameValue() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundInternalEntityDeclarationWithName:value:")) -} - -// Sent by a parser object to the delegate when it encounters an internal entity declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1414803-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundInternalEntityDeclarationWithNameValue(parser XMLParser, name string, value string) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundInternalEntityDeclarationWithName:value:"), parser, name, value) -} - -func (x_ XMLParserDelegateObject) HasParserDidEndElementNamespaceURIQualifiedName() bool { - return x_.RespondsToSelector(objc.Sel("parser:didEndElement:namespaceURI:qualifiedName:")) -} - -// Sent by a parser object to its delegate when it encounters an end tag for a specific element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417955-parser?language=objc -func (x_ XMLParserDelegateObject) ParserDidEndElementNamespaceURIQualifiedName(parser XMLParser, elementName string, namespaceURI string, qName string) { - objc.Call[objc.Void](x_, objc.Sel("parser:didEndElement:namespaceURI:qualifiedName:"), parser, elementName, namespaceURI, qName) -} - -func (x_ XMLParserDelegateObject) HasParserFoundElementDeclarationWithNameModel() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundElementDeclarationWithName:model:")) -} - -// Sent by a parser object to its delegate when it encounters a declaration of an element with a given model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1411043-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundElementDeclarationWithNameModel(parser XMLParser, elementName string, model string) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundElementDeclarationWithName:model:"), parser, elementName, model) -} - -func (x_ XMLParserDelegateObject) HasParserDidStartElementNamespaceURIQualifiedNameAttributes() bool { - return x_.RespondsToSelector(objc.Sel("parser:didStartElement:namespaceURI:qualifiedName:attributes:")) -} - -// Sent by a parser object to its delegate when it encounters a start tag for a given element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1415894-parser?language=objc -func (x_ XMLParserDelegateObject) ParserDidStartElementNamespaceURIQualifiedNameAttributes(parser XMLParser, elementName string, namespaceURI string, qName string, attributeDict map[string]string) { - objc.Call[objc.Void](x_, objc.Sel("parser:didStartElement:namespaceURI:qualifiedName:attributes:"), parser, elementName, namespaceURI, qName, attributeDict) -} - -func (x_ XMLParserDelegateObject) HasParserDidEndDocument() bool { - return x_.RespondsToSelector(objc.Sel("parserDidEndDocument:")) -} - -// Sent by the parser object to the delegate when it has successfully completed parsing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1418172-parserdidenddocument?language=objc -func (x_ XMLParserDelegateObject) ParserDidEndDocument(parser XMLParser) { - objc.Call[objc.Void](x_, objc.Sel("parserDidEndDocument:"), parser) -} - -func (x_ XMLParserDelegateObject) HasParserValidationErrorOccurred() bool { - return x_.RespondsToSelector(objc.Sel("parser:validationErrorOccurred:")) -} - -// Sent by a parser object to its delegate when it encounters a fatal validation error. NSXMLParser currently does not invoke this method and does not perform validation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417838-parser?language=objc -func (x_ XMLParserDelegateObject) ParserValidationErrorOccurred(parser XMLParser, validationError Error) { - objc.Call[objc.Void](x_, objc.Sel("parser:validationErrorOccurred:"), parser, validationError) -} - -func (x_ XMLParserDelegateObject) HasParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:")) -} - -// Sent by a parser object to its delegate when it encounters an unparsed entity declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412907-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName(parser XMLParser, name string, publicID string, systemID string, notationName string) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:"), parser, name, publicID, systemID, notationName) -} - -func (x_ XMLParserDelegateObject) HasParserFoundCDATA() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundCDATA:")) -} - -// Sent by a parser object to its delegate when it encounters a CDATA block. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1407687-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundCDATA(parser XMLParser, CDATABlock []byte) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundCDATA:"), parser, CDATABlock) -} - -func (x_ XMLParserDelegateObject) HasParserFoundProcessingInstructionWithTargetData() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundProcessingInstructionWithTarget:data:")) -} - -// Sent by a parser object to its delegate when it encounters a processing instruction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412929-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundProcessingInstructionWithTargetData(parser XMLParser, target string, data string) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundProcessingInstructionWithTarget:data:"), parser, target, data) -} - -func (x_ XMLParserDelegateObject) HasParserFoundIgnorableWhitespace() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundIgnorableWhitespace:")) -} - -// Reported by a parser object to provide its delegate with a string representing all or part of the ignorable whitespace characters of the current element. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416470-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundIgnorableWhitespace(parser XMLParser, whitespaceString string) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundIgnorableWhitespace:"), parser, whitespaceString) -} - -func (x_ XMLParserDelegateObject) HasParserFoundExternalEntityDeclarationWithNamePublicIDSystemID() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundExternalEntityDeclarationWithName:publicID:systemID:")) -} - -// Sent by a parser object to its delegate when it encounters an external entity declaration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1408156-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundExternalEntityDeclarationWithNamePublicIDSystemID(parser XMLParser, name string, publicID string, systemID string) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundExternalEntityDeclarationWithName:publicID:systemID:"), parser, name, publicID, systemID) -} - func (x_ XMLParserDelegateObject) HasParserDidStartDocument() bool { return x_.RespondsToSelector(objc.Sel("parserDidStartDocument:")) } @@ -630,57 +101,24 @@ func (x_ XMLParserDelegateObject) ParserDidStartDocument(parser XMLParser) { objc.Call[objc.Void](x_, objc.Sel("parserDidStartDocument:"), parser) } -func (x_ XMLParserDelegateObject) HasParserDidStartMappingPrefixToURI() bool { - return x_.RespondsToSelector(objc.Sel("parser:didStartMappingPrefix:toURI:")) -} - -// Sent by a parser object to its delegate the first time it encounters a given namespace prefix, which is mapped to a URI. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416738-parser?language=objc -func (x_ XMLParserDelegateObject) ParserDidStartMappingPrefixToURI(parser XMLParser, prefix string, namespaceURI string) { - objc.Call[objc.Void](x_, objc.Sel("parser:didStartMappingPrefix:toURI:"), parser, prefix, namespaceURI) -} - -func (x_ XMLParserDelegateObject) HasParserDidEndMappingPrefix() bool { - return x_.RespondsToSelector(objc.Sel("parser:didEndMappingPrefix:")) -} - -// Sent by a parser object to its delegate when a given namespace prefix goes out of scope. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412878-parser?language=objc -func (x_ XMLParserDelegateObject) ParserDidEndMappingPrefix(parser XMLParser, prefix string) { - objc.Call[objc.Void](x_, objc.Sel("parser:didEndMappingPrefix:"), parser, prefix) -} - -func (x_ XMLParserDelegateObject) HasParserParseErrorOccurred() bool { - return x_.RespondsToSelector(objc.Sel("parser:parseErrorOccurred:")) -} - -// Sent by a parser object to its delegate when it encounters a fatal error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412379-parser?language=objc -func (x_ XMLParserDelegateObject) ParserParseErrorOccurred(parser XMLParser, parseError Error) { - objc.Call[objc.Void](x_, objc.Sel("parser:parseErrorOccurred:"), parser, parseError) -} - -func (x_ XMLParserDelegateObject) HasParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:")) +func (x_ XMLParserDelegateObject) HasParserDidEndDocument() bool { + return x_.RespondsToSelector(objc.Sel("parserDidEndDocument:")) } -// Sent by a parser object to its delegate when it encounters a declaration of an attribute that is associated with a specific element. [Full Topic] +// Sent by the parser object to the delegate when it has successfully completed parsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1416969-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue(parser XMLParser, attributeName string, elementName string, type_ string, defaultValue string) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:"), parser, attributeName, elementName, type_, defaultValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1418172-parserdidenddocument?language=objc +func (x_ XMLParserDelegateObject) ParserDidEndDocument(parser XMLParser) { + objc.Call[objc.Void](x_, objc.Sel("parserDidEndDocument:"), parser) } -func (x_ XMLParserDelegateObject) HasParserFoundCharacters() bool { - return x_.RespondsToSelector(objc.Sel("parser:foundCharacters:")) +func (x_ XMLParserDelegateObject) HasParserFoundComment() bool { + return x_.RespondsToSelector(objc.Sel("parser:foundComment:")) } -// Sent by a parser object to provide its delegate with a string representing all or part of the characters of the current element. [Full Topic] +// Sent by a parser object to its delegate when it encounters a comment in the XML. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412539-parser?language=objc -func (x_ XMLParserDelegateObject) ParserFoundCharacters(parser XMLParser, string_ string) { - objc.Call[objc.Void](x_, objc.Sel("parser:foundCharacters:"), parser, string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1417651-parser?language=objc +func (x_ XMLParserDelegateObject) ParserFoundComment(parser XMLParser, comment string) { + objc.Call[objc.Void](x_, objc.Sel("parser:foundComment:"), parser, comment) } diff --git a/macos/foundation/xmldtd.gen.go b/macos/foundation/xmldtd.gen.go index 07be6831..aea27d2d 100644 --- a/macos/foundation/xmldtd.gen.go +++ b/macos/foundation/xmldtd.gen.go @@ -18,20 +18,20 @@ type _XMLDTDClass struct { // An interface definition for the [XMLDTD] class. type IXMLDTD interface { IXMLNode + NotationDeclarationForName(name string) XMLDTDNode + RemoveChildAtIndex(index uint) + AttributeDeclarationForNameElementName(name string, elementName string) XMLDTDNode EntityDeclarationForName(name string) XMLDTDNode + ElementDeclarationForName(name string) XMLDTDNode InsertChildrenAtIndex(children []IXMLNode, index uint) InsertChildAtIndex(child IXMLNode, index uint) - NotationDeclarationForName(name string) XMLDTDNode - AttributeDeclarationForNameElementName(name string, elementName string) XMLDTDNode - AddChild(child IXMLNode) SetChildren(children []IXMLNode) - RemoveChildAtIndex(index uint) + AddChild(child IXMLNode) ReplaceChildAtIndexWithNode(index uint, node IXMLNode) - ElementDeclarationForName(name string) XMLDTDNode - PublicID() string - SetPublicID(value string) SystemID() string SetSystemID(value string) + PublicID() string + SetPublicID(value string) } // A representation of a Document Type Definition. [Full Topic] @@ -47,11 +47,6 @@ func XMLDTDFrom(ptr unsafe.Pointer) XMLDTD { } } -func (x_ XMLDTD) Init() XMLDTD { - rv := objc.Call[XMLDTD](x_, objc.Sel("init")) - return rv -} - func (x_ XMLDTD) InitWithDataOptionsError(data []byte, mask XMLNodeOptions, error unsafe.Pointer) XMLDTD { rv := objc.Call[XMLDTD](x_, objc.Sel("initWithData:options:error:"), data, mask, error) return rv @@ -80,6 +75,11 @@ func NewXMLDTDWithContentsOfURLOptionsError(url IURL, mask XMLNodeOptions, error return instance } +func (x_ XMLDTD) Init() XMLDTD { + rv := objc.Call[XMLDTD](x_, objc.Sel("init")) + return rv +} + func (xc _XMLDTDClass) Alloc() XMLDTD { rv := objc.Call[XMLDTD](xc, objc.Sel("alloc")) return rv @@ -95,20 +95,6 @@ func NewXMLDTD() XMLDTD { return XMLDTDClass.New() } -func (x_ XMLDTD) InitWithKind(kind XMLNodeKind) XMLDTD { - rv := objc.Call[XMLDTD](x_, objc.Sel("initWithKind:"), kind) - return rv -} - -// Returns an NSXMLNode instance initialized with the constant indicating node kind. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409766-initwithkind?language=objc -func NewXMLDTDWithKind(kind XMLNodeKind) XMLDTD { - instance := XMLDTDClass.Alloc().InitWithKind(kind) - instance.Autorelease() - return instance -} - func (x_ XMLDTD) InitWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLDTD { rv := objc.Call[XMLDTD](x_, objc.Sel("initWithKind:options:"), kind, options) return rv @@ -123,6 +109,29 @@ func NewXMLDTDWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLDTD { return instance } +// Returns the DTD node representing the notation declaration identified by the specified notation name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1410533-notationdeclarationforname?language=objc +func (x_ XMLDTD) NotationDeclarationForName(name string) XMLDTDNode { + rv := objc.Call[XMLDTDNode](x_, objc.Sel("notationDeclarationForName:"), name) + return rv +} + +// Removes the child node at a particular location in the receiver’s list of children. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1412262-removechildatindex?language=objc +func (x_ XMLDTD) RemoveChildAtIndex(index uint) { + objc.Call[objc.Void](x_, objc.Sel("removeChildAtIndex:"), index) +} + +// Returns the DTD node representing an attribute-list declaration for a given attribute and its element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1411397-attributedeclarationforname?language=objc +func (x_ XMLDTD) AttributeDeclarationForNameElementName(name string, elementName string) XMLDTDNode { + rv := objc.Call[XMLDTDNode](x_, objc.Sel("attributeDeclarationForName:elementName:"), name, elementName) + return rv +} + // Returns the DTD node representing the entity declaration for a specified entity. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1412325-entitydeclarationforname?language=objc @@ -131,6 +140,14 @@ func (x_ XMLDTD) EntityDeclarationForName(name string) XMLDTDNode { return rv } +// Returns the DTD node representing an element declaration for a specified element. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1416067-elementdeclarationforname?language=objc +func (x_ XMLDTD) ElementDeclarationForName(name string) XMLDTDNode { + rv := objc.Call[XMLDTDNode](x_, objc.Sel("elementDeclarationForName:"), name) + return rv +} + // Inserts an array of child nodes at a specified location in the receiver’s list of children. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1413709-insertchildren?language=objc @@ -145,20 +162,18 @@ func (x_ XMLDTD) InsertChildAtIndex(child IXMLNode, index uint) { objc.Call[objc.Void](x_, objc.Sel("insertChild:atIndex:"), child, index) } -// Returns the DTD node representing the notation declaration identified by the specified notation name. [Full Topic] +// Removes all existing children of the receiver and replaces them with an array of new child nodes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1410533-notationdeclarationforname?language=objc -func (x_ XMLDTD) NotationDeclarationForName(name string) XMLDTDNode { - rv := objc.Call[XMLDTDNode](x_, objc.Sel("notationDeclarationForName:"), name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1415145-setchildren?language=objc +func (x_ XMLDTD) SetChildren(children []IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("setChildren:"), children) } -// Returns the DTD node representing an attribute-list declaration for a given attribute and its element. [Full Topic] +// Adds a child node to the end of the list of existing children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1411397-attributedeclarationforname?language=objc -func (x_ XMLDTD) AttributeDeclarationForNameElementName(name string, elementName string) XMLDTDNode { - rv := objc.Call[XMLDTDNode](x_, objc.Sel("attributeDeclarationForName:elementName:"), name, elementName) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1412988-addchild?language=objc +func (x_ XMLDTD) AddChild(child IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("addChild:"), child) } // Returns a DTD node representing the predefined entity declaration with the specified name. [Full Topic] @@ -176,27 +191,6 @@ func XMLDTD_PredefinedEntityDeclarationForName(name string) XMLDTDNode { return XMLDTDClass.PredefinedEntityDeclarationForName(name) } -// Adds a child node to the end of the list of existing children. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1412988-addchild?language=objc -func (x_ XMLDTD) AddChild(child IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("addChild:"), child) -} - -// Removes all existing children of the receiver and replaces them with an array of new child nodes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1415145-setchildren?language=objc -func (x_ XMLDTD) SetChildren(children []IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("setChildren:"), children) -} - -// Removes the child node at a particular location in the receiver’s list of children. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1412262-removechildatindex?language=objc -func (x_ XMLDTD) RemoveChildAtIndex(index uint) { - objc.Call[objc.Void](x_, objc.Sel("removeChildAtIndex:"), index) -} - // Replaces a child at a particular index with another child. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1413890-replacechildatindex?language=objc @@ -204,14 +198,21 @@ func (x_ XMLDTD) ReplaceChildAtIndexWithNode(index uint, node IXMLNode) { objc.Call[objc.Void](x_, objc.Sel("replaceChildAtIndex:withNode:"), index, node) } -// Returns the DTD node representing an element declaration for a specified element. [Full Topic] +// Returns the receiver’s system identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1416067-elementdeclarationforname?language=objc -func (x_ XMLDTD) ElementDeclarationForName(name string) XMLDTDNode { - rv := objc.Call[XMLDTDNode](x_, objc.Sel("elementDeclarationForName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1410949-systemid?language=objc +func (x_ XMLDTD) SystemID() string { + rv := objc.Call[string](x_, objc.Sel("systemID")) return rv } +// Returns the receiver’s system identifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1410949-systemid?language=objc +func (x_ XMLDTD) SetSystemID(value string) { + objc.Call[objc.Void](x_, objc.Sel("setSystemID:"), value) +} + // Returns the receiver’s public identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1408524-publicid?language=objc @@ -226,18 +227,3 @@ func (x_ XMLDTD) PublicID() string { func (x_ XMLDTD) SetPublicID(value string) { objc.Call[objc.Void](x_, objc.Sel("setPublicID:"), value) } - -// Returns the receiver’s system identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1410949-systemid?language=objc -func (x_ XMLDTD) SystemID() string { - rv := objc.Call[string](x_, objc.Sel("systemID")) - return rv -} - -// Returns the receiver’s system identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtd/1410949-systemid?language=objc -func (x_ XMLDTD) SetSystemID(value string) { - objc.Call[objc.Void](x_, objc.Sel("setSystemID:"), value) -} diff --git a/macos/foundation/xmldtd_node.gen.go b/macos/foundation/xmldtd_node.gen.go index b306855a..45295340 100644 --- a/macos/foundation/xmldtd_node.gen.go +++ b/macos/foundation/xmldtd_node.gen.go @@ -18,15 +18,15 @@ type _XMLDTDNodeClass struct { // An interface definition for the [XMLDTDNode] class. type IXMLDTDNode interface { IXMLNode - NotationName() string - SetNotationName(value string) - IsExternal() bool DTDKind() XMLDTDNodeKind SetDTDKind(value XMLDTDNodeKind) SystemID() string SetSystemID(value string) PublicID() string SetPublicID(value string) + NotationName() string + SetNotationName(value string) + IsExternal() bool } // A representation of element, attribute-list, entity, and notation declarations in a Document Type Definition. [Full Topic] @@ -90,43 +90,6 @@ func NewXMLDTDNode() XMLDTDNode { return XMLDTDNodeClass.New() } -func (x_ XMLDTDNode) InitWithKind(kind XMLNodeKind) XMLDTDNode { - rv := objc.Call[XMLDTDNode](x_, objc.Sel("initWithKind:"), kind) - return rv -} - -// Returns an NSXMLNode instance initialized with the constant indicating node kind. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409766-initwithkind?language=objc -func NewXMLDTDNodeWithKind(kind XMLNodeKind) XMLDTDNode { - instance := XMLDTDNodeClass.Alloc().InitWithKind(kind) - instance.Autorelease() - return instance -} - -// Returns the name of the notation associated with the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtdnode/1407292-notationname?language=objc -func (x_ XMLDTDNode) NotationName() string { - rv := objc.Call[string](x_, objc.Sel("notationName")) - return rv -} - -// Returns the name of the notation associated with the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtdnode/1407292-notationname?language=objc -func (x_ XMLDTDNode) SetNotationName(value string) { - objc.Call[objc.Void](x_, objc.Sel("setNotationName:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtdnode/1409467-external?language=objc -func (x_ XMLDTDNode) IsExternal() bool { - rv := objc.Call[bool](x_, objc.Sel("isExternal")) - return rv -} - // Returns the receiver’s DTD kind. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtdnode/1408902-dtdkind?language=objc @@ -171,3 +134,26 @@ func (x_ XMLDTDNode) PublicID() string { func (x_ XMLDTDNode) SetPublicID(value string) { objc.Call[objc.Void](x_, objc.Sel("setPublicID:"), value) } + +// Returns the name of the notation associated with the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtdnode/1407292-notationname?language=objc +func (x_ XMLDTDNode) NotationName() string { + rv := objc.Call[string](x_, objc.Sel("notationName")) + return rv +} + +// Returns the name of the notation associated with the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtdnode/1407292-notationname?language=objc +func (x_ XMLDTDNode) SetNotationName(value string) { + objc.Call[objc.Void](x_, objc.Sel("setNotationName:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtdnode/1409467-external?language=objc +func (x_ XMLDTDNode) IsExternal() bool { + rv := objc.Call[bool](x_, objc.Sel("isExternal")) + return rv +} diff --git a/macos/foundation/xpc_coder.gen.go b/macos/foundation/xpc_coder.gen.go index 600f3767..a96d85e4 100644 --- a/macos/foundation/xpc_coder.gen.go +++ b/macos/foundation/xpc_coder.gen.go @@ -18,9 +18,9 @@ type _XPCCoderClass struct { // An interface definition for the [XPCCoder] class. type IXPCCoder interface { ICoder + Connection() XPCConnection UserInfo() objc.Object SetUserInfo(value objc.IObject) - Connection() XPCConnection } // A coder that encodes and decodes objects that your app sends over an XPC connection. [Full Topic] @@ -56,6 +56,14 @@ func (x_ XPCCoder) Init() XPCCoder { return rv } +// The connection currently performing encoding or decoding. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpccoder/3172580-connection?language=objc +func (x_ XPCCoder) Connection() XPCConnection { + rv := objc.Call[XPCConnection](x_, objc.Sel("connection")) + return rv +} + // An optional user information object associated with the coder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpccoder/3172581-userinfo?language=objc @@ -70,11 +78,3 @@ func (x_ XPCCoder) UserInfo() objc.Object { func (x_ XPCCoder) SetUserInfo(value objc.IObject) { objc.Call[objc.Void](x_, objc.Sel("setUserInfo:"), value) } - -// The connection currently performing encoding or decoding. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpccoder/3172580-connection?language=objc -func (x_ XPCCoder) Connection() XPCConnection { - rv := objc.Call[XPCConnection](x_, objc.Sel("connection")) - return rv -} diff --git a/macos/foundation/xpc_connection.gen.go b/macos/foundation/xpc_connection.gen.go index 2e294232..a63660b1 100644 --- a/macos/foundation/xpc_connection.gen.go +++ b/macos/foundation/xpc_connection.gen.go @@ -19,28 +19,28 @@ type _XPCConnectionClass struct { // An interface definition for the [XPCConnection] class. type IXPCConnection interface { objc.IObject + SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object + Suspend() ScheduleSendBarrierBlock(block func()) RemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object - Suspend() - Invalidate() Resume() - SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object - EffectiveUserIdentifier() kernel.Uid - EffectiveGroupIdentifier() kernel.Gid + Invalidate() InterruptionHandler() func() SetInterruptionHandler(value func()) + ExportedObject() objc.Object + SetExportedObject(value objc.IObject) + RemoteObjectProxy() objc.Object + EffectiveUserIdentifier() kernel.Uid + Endpoint() XPCListenerEndpoint + EffectiveGroupIdentifier() kernel.Gid RemoteObjectInterface() XPCInterface SetRemoteObjectInterface(value IXPCInterface) + ServiceName() string ExportedInterface() XPCInterface SetExportedInterface(value IXPCInterface) - Endpoint() XPCListenerEndpoint - RemoteObjectProxy() objc.Object ProcessIdentifier() kernel.Pid InvalidationHandler() func() SetInvalidationHandler(value func()) - ServiceName() string - ExportedObject() objc.Object - SetExportedObject(value objc.IObject) } // A bidirectional communication channel between two processes. [Full Topic] @@ -118,6 +118,28 @@ func (x_ XPCConnection) Init() XPCConnection { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/2879410-synchronousremoteobjectproxywith?language=objc +func (x_ XPCConnection) SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("synchronousRemoteObjectProxyWithErrorHandler:"), handler) + return rv +} + +// Suspends the connection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1410778-suspend?language=objc +func (x_ XPCConnection) Suspend() { + objc.Call[objc.Void](x_, objc.Sel("suspend")) +} + +// Add a barrier block to execute on the connection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/3172583-schedulesendbarrierblock?language=objc +func (x_ XPCConnection) ScheduleSendBarrierBlock(block func()) { + objc.Call[objc.Void](x_, objc.Sel("scheduleSendBarrierBlock:"), block) +} + // Returns the current connection, in the context of a call to a method on your exported object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/3172582-currentconnection?language=objc @@ -133,13 +155,6 @@ func XPCConnection_CurrentConnection() XPCConnection { return XPCConnectionClass.CurrentConnection() } -// Add a barrier block to execute on the connection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/3172583-schedulesendbarrierblock?language=objc -func (x_ XPCConnection) ScheduleSendBarrierBlock(block func()) { - objc.Call[objc.Void](x_, objc.Sel("scheduleSendBarrierBlock:"), block) -} - // Returns a proxy for the remote object (that is, the object exported from the other side of this connection) with the specified error handler. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1407905-remoteobjectproxywitherrorhandle?language=objc @@ -148,11 +163,11 @@ func (x_ XPCConnection) RemoteObjectProxyWithErrorHandler(handler func(error Err return rv } -// Suspends the connection. [Full Topic] +// Starts or resumes handling of messages on a connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1410778-suspend?language=objc -func (x_ XPCConnection) Suspend() { - objc.Call[objc.Void](x_, objc.Sel("suspend")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1408677-resume?language=objc +func (x_ XPCConnection) Resume() { + objc.Call[objc.Void](x_, objc.Sel("resume")) } // Invalidates the connection. [Full Topic] @@ -162,18 +177,41 @@ func (x_ XPCConnection) Invalidate() { objc.Call[objc.Void](x_, objc.Sel("invalidate")) } -// Starts or resumes handling of messages on a connection. [Full Topic] +// An interruption handler that is called if the remote process exits or crashes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1408677-resume?language=objc -func (x_ XPCConnection) Resume() { - objc.Call[objc.Void](x_, objc.Sel("resume")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1407915-interruptionhandler?language=objc +func (x_ XPCConnection) InterruptionHandler() func() { + rv := objc.Call[func()](x_, objc.Sel("interruptionHandler")) + return rv } -// [Full Topic] +// An interruption handler that is called if the remote process exits or crashes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/2879410-synchronousremoteobjectproxywith?language=objc -func (x_ XPCConnection) SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("synchronousRemoteObjectProxyWithErrorHandler:"), handler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1407915-interruptionhandler?language=objc +func (x_ XPCConnection) SetInterruptionHandler(value func()) { + objc.Call[objc.Void](x_, objc.Sel("setInterruptionHandler:"), value) +} + +// An exported object for the connection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1412016-exportedobject?language=objc +func (x_ XPCConnection) ExportedObject() objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("exportedObject")) + return rv +} + +// An exported object for the connection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1412016-exportedobject?language=objc +func (x_ XPCConnection) SetExportedObject(value objc.IObject) { + objc.Call[objc.Void](x_, objc.Sel("setExportedObject:"), value) +} + +// Returns a proxy for the remote object (that is, the exportedObject from the other side of this connection). [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1411031-remoteobjectproxy?language=objc +func (x_ XPCConnection) RemoteObjectProxy() objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("remoteObjectProxy")) return rv } @@ -185,29 +223,22 @@ func (x_ XPCConnection) EffectiveUserIdentifier() kernel.Uid { return rv } -// The effective group ID (EGID) of the connecting process. [Full Topic] +// If the connection was created with an NSXPCListenerEndpoint object, returns the endpoint object used. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1407793-effectivegroupidentifier?language=objc -func (x_ XPCConnection) EffectiveGroupIdentifier() kernel.Gid { - rv := objc.Call[kernel.Gid](x_, objc.Sel("effectiveGroupIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1411757-endpoint?language=objc +func (x_ XPCConnection) Endpoint() XPCListenerEndpoint { + rv := objc.Call[XPCListenerEndpoint](x_, objc.Sel("endpoint")) return rv } -// An interruption handler that is called if the remote process exits or crashes. [Full Topic] +// The effective group ID (EGID) of the connecting process. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1407915-interruptionhandler?language=objc -func (x_ XPCConnection) InterruptionHandler() func() { - rv := objc.Call[func()](x_, objc.Sel("interruptionHandler")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1407793-effectivegroupidentifier?language=objc +func (x_ XPCConnection) EffectiveGroupIdentifier() kernel.Gid { + rv := objc.Call[kernel.Gid](x_, objc.Sel("effectiveGroupIdentifier")) return rv } -// An interruption handler that is called if the remote process exits or crashes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1407915-interruptionhandler?language=objc -func (x_ XPCConnection) SetInterruptionHandler(value func()) { - objc.Call[objc.Void](x_, objc.Sel("setInterruptionHandler:"), value) -} - // Defines the NSXPCInterface object that describes the protocol for the object represented by the remoteObjectProxy. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1411472-remoteobjectinterface?language=objc @@ -223,6 +254,14 @@ func (x_ XPCConnection) SetRemoteObjectInterface(value IXPCInterface) { objc.Call[objc.Void](x_, objc.Sel("setRemoteObjectInterface:"), value) } +// The name of the XPC service that this connection was configured to connect to. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1413751-servicename?language=objc +func (x_ XPCConnection) ServiceName() string { + rv := objc.Call[string](x_, objc.Sel("serviceName")) + return rv +} + // The NSXPCInterface object that describes the protocol for the exported object on this connection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1408106-exportedinterface?language=objc @@ -238,22 +277,6 @@ func (x_ XPCConnection) SetExportedInterface(value IXPCInterface) { objc.Call[objc.Void](x_, objc.Sel("setExportedInterface:"), value) } -// If the connection was created with an NSXPCListenerEndpoint object, returns the endpoint object used. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1411757-endpoint?language=objc -func (x_ XPCConnection) Endpoint() XPCListenerEndpoint { - rv := objc.Call[XPCListenerEndpoint](x_, objc.Sel("endpoint")) - return rv -} - -// Returns a proxy for the remote object (that is, the exportedObject from the other side of this connection). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1411031-remoteobjectproxy?language=objc -func (x_ XPCConnection) RemoteObjectProxy() objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("remoteObjectProxy")) - return rv -} - // The process ID (PID) of the connecting process. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1411428-processidentifier?language=objc @@ -276,26 +299,3 @@ func (x_ XPCConnection) InvalidationHandler() func() { func (x_ XPCConnection) SetInvalidationHandler(value func()) { objc.Call[objc.Void](x_, objc.Sel("setInvalidationHandler:"), value) } - -// The name of the XPC service that this connection was configured to connect to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1413751-servicename?language=objc -func (x_ XPCConnection) ServiceName() string { - rv := objc.Call[string](x_, objc.Sel("serviceName")) - return rv -} - -// An exported object for the connection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1412016-exportedobject?language=objc -func (x_ XPCConnection) ExportedObject() objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("exportedObject")) - return rv -} - -// An exported object for the connection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1412016-exportedobject?language=objc -func (x_ XPCConnection) SetExportedObject(value objc.IObject) { - objc.Call[objc.Void](x_, objc.Sel("setExportedObject:"), value) -} diff --git a/macos/foundation/xpc_interface.gen.go b/macos/foundation/xpc_interface.gen.go index a03e5b7b..88ec9559 100644 --- a/macos/foundation/xpc_interface.gen.go +++ b/macos/foundation/xpc_interface.gen.go @@ -18,10 +18,10 @@ type _XPCInterfaceClass struct { // An interface definition for the [XPCInterface] class. type IXPCInterface interface { objc.IObject - ClassesForSelectorArgumentIndexOfReply(sel objc.Selector, arg uint, ofReply bool) Set SetClassesForSelectorArgumentIndexOfReply(classes ISet, sel objc.Selector, arg uint, ofReply bool) - SetInterfaceForSelectorArgumentIndexOfReply(ifc IXPCInterface, sel objc.Selector, arg uint, ofReply bool) + ClassesForSelectorArgumentIndexOfReply(sel objc.Selector, arg uint, ofReply bool) Set InterfaceForSelectorArgumentIndexOfReply(sel objc.Selector, arg uint, ofReply bool) XPCInterface + SetInterfaceForSelectorArgumentIndexOfReply(ifc IXPCInterface, sel objc.Selector, arg uint, ofReply bool) Protocol() objc.Protocol SetProtocol(value objc.IProtocol) } @@ -59,14 +59,6 @@ func (x_ XPCInterface) Init() XPCInterface { return rv } -// Returns the current list of allowed classes that can appear within the specified collection object argument to the specified method. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcinterface/1418323-classesforselector?language=objc -func (x_ XPCInterface) ClassesForSelectorArgumentIndexOfReply(sel objc.Selector, arg uint, ofReply bool) Set { - rv := objc.Call[Set](x_, objc.Sel("classesForSelector:argumentIndex:ofReply:"), sel, arg, ofReply) - return rv -} - // Sets the classes that can appear within the (numerically) specified collection object argument to the specified method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcinterface/1415555-setclasses?language=objc @@ -74,21 +66,6 @@ func (x_ XPCInterface) SetClassesForSelectorArgumentIndexOfReply(classes ISet, s objc.Call[objc.Void](x_, objc.Sel("setClasses:forSelector:argumentIndex:ofReply:"), classes, sel, arg, ofReply) } -// Configures a specific parameter of a method to be sent as a proxy object instead of copied. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcinterface/1414293-setinterface?language=objc -func (x_ XPCInterface) SetInterfaceForSelectorArgumentIndexOfReply(ifc IXPCInterface, sel objc.Selector, arg uint, ofReply bool) { - objc.Call[objc.Void](x_, objc.Sel("setInterface:forSelector:argumentIndex:ofReply:"), ifc, sel, arg, ofReply) -} - -// Returns the interface previously set for the specified selector and parameter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcinterface/1409127-interfaceforselector?language=objc -func (x_ XPCInterface) InterfaceForSelectorArgumentIndexOfReply(sel objc.Selector, arg uint, ofReply bool) XPCInterface { - rv := objc.Call[XPCInterface](x_, objc.Sel("interfaceForSelector:argumentIndex:ofReply:"), sel, arg, ofReply) - return rv -} - // Returns an NSXPCInterface instance for a given protocol. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcinterface/1410202-interfacewithprotocol?language=objc @@ -104,6 +81,29 @@ func XPCInterface_InterfaceWithProtocol(protocol objc.IProtocol) XPCInterface { return XPCInterfaceClass.InterfaceWithProtocol(protocol) } +// Returns the current list of allowed classes that can appear within the specified collection object argument to the specified method. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcinterface/1418323-classesforselector?language=objc +func (x_ XPCInterface) ClassesForSelectorArgumentIndexOfReply(sel objc.Selector, arg uint, ofReply bool) Set { + rv := objc.Call[Set](x_, objc.Sel("classesForSelector:argumentIndex:ofReply:"), sel, arg, ofReply) + return rv +} + +// Returns the interface previously set for the specified selector and parameter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcinterface/1409127-interfaceforselector?language=objc +func (x_ XPCInterface) InterfaceForSelectorArgumentIndexOfReply(sel objc.Selector, arg uint, ofReply bool) XPCInterface { + rv := objc.Call[XPCInterface](x_, objc.Sel("interfaceForSelector:argumentIndex:ofReply:"), sel, arg, ofReply) + return rv +} + +// Configures a specific parameter of a method to be sent as a proxy object instead of copied. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcinterface/1414293-setinterface?language=objc +func (x_ XPCInterface) SetInterfaceForSelectorArgumentIndexOfReply(ifc IXPCInterface, sel objc.Selector, arg uint, ofReply bool) { + objc.Call[objc.Void](x_, objc.Sel("setInterface:forSelector:argumentIndex:ofReply:"), ifc, sel, arg, ofReply) +} + // The Objective-C protocol that this interface is based on. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcinterface/1416353-protocol?language=objc diff --git a/macos/foundation/xpc_listener.gen.go b/macos/foundation/xpc_listener.gen.go index 78629262..2c3fb457 100644 --- a/macos/foundation/xpc_listener.gen.go +++ b/macos/foundation/xpc_listener.gen.go @@ -18,13 +18,13 @@ type _XPCListenerClass struct { // An interface definition for the [XPCListener] class. type IXPCListener interface { objc.IObject - Resume() Suspend() + Resume() Invalidate() + Endpoint() XPCListenerEndpoint Delegate() XPCListenerDelegateObject SetDelegate(value PXPCListenerDelegate) SetDelegateObject(valueObject objc.IObject) - Endpoint() XPCListenerEndpoint } // A listener that waits for new incoming connections, configures them, and accepts or rejects them. [Full Topic] @@ -74,11 +74,19 @@ func (x_ XPCListener) Init() XPCListener { return rv } -// Starts processing of incoming requests. [Full Topic] +// Returns a new anonymous listener connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpclistener/1409652-resume?language=objc -func (x_ XPCListener) Resume() { - objc.Call[objc.Void](x_, objc.Sel("resume")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpclistener/1412648-anonymouslistener?language=objc +func (xc _XPCListenerClass) AnonymousListener() XPCListener { + rv := objc.Call[XPCListener](xc, objc.Sel("anonymousListener")) + return rv +} + +// Returns a new anonymous listener connection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpclistener/1412648-anonymouslistener?language=objc +func XPCListener_AnonymousListener() XPCListener { + return XPCListenerClass.AnonymousListener() } // Suspends the listener. [Full Topic] @@ -103,19 +111,11 @@ func XPCListener_ServiceListener() XPCListener { return XPCListenerClass.ServiceListener() } -// Returns a new anonymous listener connection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpclistener/1412648-anonymouslistener?language=objc -func (xc _XPCListenerClass) AnonymousListener() XPCListener { - rv := objc.Call[XPCListener](xc, objc.Sel("anonymousListener")) - return rv -} - -// Returns a new anonymous listener connection. [Full Topic] +// Starts processing of incoming requests. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpclistener/1412648-anonymouslistener?language=objc -func XPCListener_AnonymousListener() XPCListener { - return XPCListenerClass.AnonymousListener() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpclistener/1409652-resume?language=objc +func (x_ XPCListener) Resume() { + objc.Call[objc.Void](x_, objc.Sel("resume")) } // Invalidates the listener. [Full Topic] @@ -125,6 +125,14 @@ func (x_ XPCListener) Invalidate() { objc.Call[objc.Void](x_, objc.Sel("invalidate")) } +// Returns an endpoint object that may be sent over an existing connection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpclistener/1408519-endpoint?language=objc +func (x_ XPCListener) Endpoint() XPCListenerEndpoint { + rv := objc.Call[XPCListenerEndpoint](x_, objc.Sel("endpoint")) + return rv +} + // The delegate for the listener. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpclistener/1408939-delegate?language=objc @@ -148,11 +156,3 @@ func (x_ XPCListener) SetDelegate(value PXPCListenerDelegate) { func (x_ XPCListener) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](x_, objc.Sel("setDelegate:"), valueObject) } - -// Returns an endpoint object that may be sent over an existing connection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpclistener/1408519-endpoint?language=objc -func (x_ XPCListener) Endpoint() XPCListenerEndpoint { - rv := objc.Call[XPCListenerEndpoint](x_, objc.Sel("endpoint")) - return rv -} diff --git a/macos/foundation/xpc_proxy_creating_protocol.gen.go b/macos/foundation/xpc_proxy_creating_protocol.gen.go index 5f60f5ef..86ae7b74 100644 --- a/macos/foundation/xpc_proxy_creating_protocol.gen.go +++ b/macos/foundation/xpc_proxy_creating_protocol.gen.go @@ -10,6 +10,10 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcproxycreating?language=objc type PXPCProxyCreating interface { + // optional + SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object + HasSynchronousRemoteObjectProxyWithErrorHandler() bool + // optional RemoteObjectProxy() objc.Object HasRemoteObjectProxy() bool @@ -17,10 +21,6 @@ type PXPCProxyCreating interface { // optional RemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object HasRemoteObjectProxyWithErrorHandler() bool - - // optional - SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object - HasSynchronousRemoteObjectProxyWithErrorHandler() bool } // ensure impl type implements protocol interface @@ -31,6 +31,18 @@ type XPCProxyCreatingObject struct { objc.Object } +func (x_ XPCProxyCreatingObject) HasSynchronousRemoteObjectProxyWithErrorHandler() bool { + return x_.RespondsToSelector(objc.Sel("synchronousRemoteObjectProxyWithErrorHandler:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcproxycreating/2879411-synchronousremoteobjectproxywith?language=objc +func (x_ XPCProxyCreatingObject) SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("synchronousRemoteObjectProxyWithErrorHandler:"), handler) + return rv +} + func (x_ XPCProxyCreatingObject) HasRemoteObjectProxy() bool { return x_.RespondsToSelector(objc.Sel("remoteObjectProxy")) } @@ -54,15 +66,3 @@ func (x_ XPCProxyCreatingObject) RemoteObjectProxyWithErrorHandler(handler func( rv := objc.Call[objc.Object](x_, objc.Sel("remoteObjectProxyWithErrorHandler:"), handler) return rv } - -func (x_ XPCProxyCreatingObject) HasSynchronousRemoteObjectProxyWithErrorHandler() bool { - return x_.RespondsToSelector(objc.Sel("synchronousRemoteObjectProxyWithErrorHandler:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcproxycreating/2879411-synchronousremoteobjectproxywith?language=objc -func (x_ XPCProxyCreatingObject) SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("synchronousRemoteObjectProxyWithErrorHandler:"), handler) - return rv -} diff --git a/macos/iosurface/io_surface.gen.go b/macos/iosurface/io_surface.gen.go index cdca560d..540a8535 100644 --- a/macos/iosurface/io_surface.gen.go +++ b/macos/iosurface/io_surface.gen.go @@ -18,38 +18,38 @@ type _IOSurfaceClass struct { // An interface definition for the [IOSurface] class. type IIOSurface interface { objc.IObject - WidthOfPlaneAtIndex(planeIndex uint) int - RemoveAttachmentForKey(key string) - DecrementUseCount() - SetAllAttachments(dict map[string]objc.IObject) - SetPurgeableOldState(newState PurgeabilityState, oldState *PurgeabilityState) int - BaseAddressOfPlaneAtIndex(planeIndex uint) unsafe.Pointer - UnlockWithOptionsSeed(options LockOptions, seed *uint32) int - ElementWidthOfPlaneAtIndex(planeIndex uint) int AllAttachments() map[string]objc.Object + ElementHeightOfPlaneAtIndex(planeIndex uint) int + LockWithOptionsSeed(options LockOptions, seed *uint32) int + SetPurgeableOldState(newState PurgeabilityState, oldState *PurgeabilityState) int + HeightOfPlaneAtIndex(planeIndex uint) int + RemoveAttachmentForKey(key string) + IncrementUseCount() SetAttachmentForKey(anObject objc.IObject, key string) + SetAllAttachments(dict map[string]objc.IObject) RemoveAllAttachments() + DecrementUseCount() + UnlockWithOptionsSeed(options LockOptions, seed *uint32) int + BaseAddressOfPlaneAtIndex(planeIndex uint) unsafe.Pointer BytesPerRowOfPlaneAtIndex(planeIndex uint) int - IncrementUseCount() - ElementHeightOfPlaneAtIndex(planeIndex uint) int AttachmentForKey(key string) objc.Object - HeightOfPlaneAtIndex(planeIndex uint) int - LockWithOptionsSeed(options LockOptions, seed *uint32) int + ElementWidthOfPlaneAtIndex(planeIndex uint) int + WidthOfPlaneAtIndex(planeIndex uint) int BytesPerElementOfPlaneAtIndex(planeIndex uint) int + IsInUse() bool Width() int - ElementWidth() int - Seed() uint32 + LocalUseCount() int32 + PlaneCount() uint ElementHeight() int - PixelFormat() uint + ElementWidth() int Height() int - LocalUseCount() int32 - BytesPerElement() int + BytesPerRow() int + BaseAddress() unsafe.Pointer + PixelFormat() uint AllowsPixelSizeCasting() bool + BytesPerElement() int AllocationSize() int - BaseAddress() unsafe.Pointer - BytesPerRow() int - PlaneCount() uint - IsInUse() bool + Seed() uint32 } // Data type representing an IOSurface opaque object. [Full Topic] @@ -101,31 +101,26 @@ func (i_ IOSurface) Init() IOSurface { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092520-widthofplaneatindex?language=objc -func (i_ IOSurface) WidthOfPlaneAtIndex(planeIndex uint) int { - rv := objc.Call[int](i_, objc.Sel("widthOfPlaneAtIndex:"), planeIndex) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092487-allattachments?language=objc +func (i_ IOSurface) AllAttachments() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](i_, objc.Sel("allAttachments")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092541-removeattachmentforkey?language=objc -func (i_ IOSurface) RemoveAttachmentForKey(key string) { - objc.Call[objc.Void](i_, objc.Sel("removeAttachmentForKey:"), key) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092538-decrementusecount?language=objc -func (i_ IOSurface) DecrementUseCount() { - objc.Call[objc.Void](i_, objc.Sel("decrementUseCount")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092515-elementheightofplaneatindex?language=objc +func (i_ IOSurface) ElementHeightOfPlaneAtIndex(planeIndex uint) int { + rv := objc.Call[int](i_, objc.Sel("elementHeightOfPlaneAtIndex:"), planeIndex) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092532-setallattachments?language=objc -func (i_ IOSurface) SetAllAttachments(dict map[string]objc.IObject) { - objc.Call[objc.Void](i_, objc.Sel("setAllAttachments:"), dict) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092522-lockwithoptions?language=objc +func (i_ IOSurface) LockWithOptionsSeed(options LockOptions, seed *uint32) int { + rv := objc.Call[int](i_, objc.Sel("lockWithOptions:seed:"), options, seed) + return rv } // [Full Topic] @@ -138,41 +133,38 @@ func (i_ IOSurface) SetPurgeableOldState(newState PurgeabilityState, oldState *P // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092494-baseaddressofplaneatindex?language=objc -func (i_ IOSurface) BaseAddressOfPlaneAtIndex(planeIndex uint) unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](i_, objc.Sel("baseAddressOfPlaneAtIndex:"), planeIndex) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092493-heightofplaneatindex?language=objc +func (i_ IOSurface) HeightOfPlaneAtIndex(planeIndex uint) int { + rv := objc.Call[int](i_, objc.Sel("heightOfPlaneAtIndex:"), planeIndex) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092530-unlockwithoptions?language=objc -func (i_ IOSurface) UnlockWithOptionsSeed(options LockOptions, seed *uint32) int { - rv := objc.Call[int](i_, objc.Sel("unlockWithOptions:seed:"), options, seed) - return rv +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092541-removeattachmentforkey?language=objc +func (i_ IOSurface) RemoveAttachmentForKey(key string) { + objc.Call[objc.Void](i_, objc.Sel("removeAttachmentForKey:"), key) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092498-elementwidthofplaneatindex?language=objc -func (i_ IOSurface) ElementWidthOfPlaneAtIndex(planeIndex uint) int { - rv := objc.Call[int](i_, objc.Sel("elementWidthOfPlaneAtIndex:"), planeIndex) - return rv +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092506-incrementusecount?language=objc +func (i_ IOSurface) IncrementUseCount() { + objc.Call[objc.Void](i_, objc.Sel("incrementUseCount")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092487-allattachments?language=objc -func (i_ IOSurface) AllAttachments() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](i_, objc.Sel("allAttachments")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092540-setattachment?language=objc +func (i_ IOSurface) SetAttachmentForKey(anObject objc.IObject, key string) { + objc.Call[objc.Void](i_, objc.Sel("setAttachment:forKey:"), anObject, key) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092540-setattachment?language=objc -func (i_ IOSurface) SetAttachmentForKey(anObject objc.IObject, key string) { - objc.Call[objc.Void](i_, objc.Sel("setAttachment:forKey:"), anObject, key) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092532-setallattachments?language=objc +func (i_ IOSurface) SetAllAttachments(dict map[string]objc.IObject) { + objc.Call[objc.Void](i_, objc.Sel("setAllAttachments:"), dict) } // [Full Topic] @@ -184,24 +176,32 @@ func (i_ IOSurface) RemoveAllAttachments() { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092497-bytesperrowofplaneatindex?language=objc -func (i_ IOSurface) BytesPerRowOfPlaneAtIndex(planeIndex uint) int { - rv := objc.Call[int](i_, objc.Sel("bytesPerRowOfPlaneAtIndex:"), planeIndex) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092538-decrementusecount?language=objc +func (i_ IOSurface) DecrementUseCount() { + objc.Call[objc.Void](i_, objc.Sel("decrementUseCount")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092530-unlockwithoptions?language=objc +func (i_ IOSurface) UnlockWithOptionsSeed(options LockOptions, seed *uint32) int { + rv := objc.Call[int](i_, objc.Sel("unlockWithOptions:seed:"), options, seed) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092506-incrementusecount?language=objc -func (i_ IOSurface) IncrementUseCount() { - objc.Call[objc.Void](i_, objc.Sel("incrementUseCount")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092494-baseaddressofplaneatindex?language=objc +func (i_ IOSurface) BaseAddressOfPlaneAtIndex(planeIndex uint) unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](i_, objc.Sel("baseAddressOfPlaneAtIndex:"), planeIndex) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092515-elementheightofplaneatindex?language=objc -func (i_ IOSurface) ElementHeightOfPlaneAtIndex(planeIndex uint) int { - rv := objc.Call[int](i_, objc.Sel("elementHeightOfPlaneAtIndex:"), planeIndex) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092497-bytesperrowofplaneatindex?language=objc +func (i_ IOSurface) BytesPerRowOfPlaneAtIndex(planeIndex uint) int { + rv := objc.Call[int](i_, objc.Sel("bytesPerRowOfPlaneAtIndex:"), planeIndex) return rv } @@ -215,17 +215,17 @@ func (i_ IOSurface) AttachmentForKey(key string) objc.Object { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092493-heightofplaneatindex?language=objc -func (i_ IOSurface) HeightOfPlaneAtIndex(planeIndex uint) int { - rv := objc.Call[int](i_, objc.Sel("heightOfPlaneAtIndex:"), planeIndex) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092498-elementwidthofplaneatindex?language=objc +func (i_ IOSurface) ElementWidthOfPlaneAtIndex(planeIndex uint) int { + rv := objc.Call[int](i_, objc.Sel("elementWidthOfPlaneAtIndex:"), planeIndex) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092522-lockwithoptions?language=objc -func (i_ IOSurface) LockWithOptionsSeed(options LockOptions, seed *uint32) int { - rv := objc.Call[int](i_, objc.Sel("lockWithOptions:seed:"), options, seed) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092520-widthofplaneatindex?language=objc +func (i_ IOSurface) WidthOfPlaneAtIndex(planeIndex uint) int { + rv := objc.Call[int](i_, objc.Sel("widthOfPlaneAtIndex:"), planeIndex) return rv } @@ -237,6 +237,14 @@ func (i_ IOSurface) BytesPerElementOfPlaneAtIndex(planeIndex uint) int { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092504-inuse?language=objc +func (i_ IOSurface) IsInUse() bool { + rv := objc.Call[bool](i_, objc.Sel("isInUse")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092516-width?language=objc @@ -247,17 +255,17 @@ func (i_ IOSurface) Width() int { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092514-elementwidth?language=objc -func (i_ IOSurface) ElementWidth() int { - rv := objc.Call[int](i_, objc.Sel("elementWidth")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092529-localusecount?language=objc +func (i_ IOSurface) LocalUseCount() int32 { + rv := objc.Call[int32](i_, objc.Sel("localUseCount")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092533-seed?language=objc -func (i_ IOSurface) Seed() uint32 { - rv := objc.Call[uint32](i_, objc.Sel("seed")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092508-planecount?language=objc +func (i_ IOSurface) PlaneCount() uint { + rv := objc.Call[uint](i_, objc.Sel("planeCount")) return rv } @@ -271,9 +279,9 @@ func (i_ IOSurface) ElementHeight() int { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092537-pixelformat?language=objc -func (i_ IOSurface) PixelFormat() uint { - rv := objc.Call[uint](i_, objc.Sel("pixelFormat")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092514-elementwidth?language=objc +func (i_ IOSurface) ElementWidth() int { + rv := objc.Call[int](i_, objc.Sel("elementWidth")) return rv } @@ -287,64 +295,56 @@ func (i_ IOSurface) Height() int { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092529-localusecount?language=objc -func (i_ IOSurface) LocalUseCount() int32 { - rv := objc.Call[int32](i_, objc.Sel("localUseCount")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092503-bytesperelement?language=objc -func (i_ IOSurface) BytesPerElement() int { - rv := objc.Call[int](i_, objc.Sel("bytesPerElement")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092502-bytesperrow?language=objc +func (i_ IOSurface) BytesPerRow() int { + rv := objc.Call[int](i_, objc.Sel("bytesPerRow")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092536-allowspixelsizecasting?language=objc -func (i_ IOSurface) AllowsPixelSizeCasting() bool { - rv := objc.Call[bool](i_, objc.Sel("allowsPixelSizeCasting")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092525-baseaddress?language=objc +func (i_ IOSurface) BaseAddress() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](i_, objc.Sel("baseAddress")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092534-allocationsize?language=objc -func (i_ IOSurface) AllocationSize() int { - rv := objc.Call[int](i_, objc.Sel("allocationSize")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092537-pixelformat?language=objc +func (i_ IOSurface) PixelFormat() uint { + rv := objc.Call[uint](i_, objc.Sel("pixelFormat")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092525-baseaddress?language=objc -func (i_ IOSurface) BaseAddress() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](i_, objc.Sel("baseAddress")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092536-allowspixelsizecasting?language=objc +func (i_ IOSurface) AllowsPixelSizeCasting() bool { + rv := objc.Call[bool](i_, objc.Sel("allowsPixelSizeCasting")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092502-bytesperrow?language=objc -func (i_ IOSurface) BytesPerRow() int { - rv := objc.Call[int](i_, objc.Sel("bytesPerRow")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092503-bytesperelement?language=objc +func (i_ IOSurface) BytesPerElement() int { + rv := objc.Call[int](i_, objc.Sel("bytesPerElement")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092508-planecount?language=objc -func (i_ IOSurface) PlaneCount() uint { - rv := objc.Call[uint](i_, objc.Sel("planeCount")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092534-allocationsize?language=objc +func (i_ IOSurface) AllocationSize() int { + rv := objc.Call[int](i_, objc.Sel("allocationSize")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092504-inuse?language=objc -func (i_ IOSurface) IsInUse() bool { - rv := objc.Call[bool](i_, objc.Sel("isInUse")) +// [Full Topic]: https://developer.apple.com/documentation/iosurface/iosurface/2092533-seed?language=objc +func (i_ IOSurface) Seed() uint32 { + rv := objc.Call[uint32](i_, objc.Sel("seed")) return rv } diff --git a/macos/mediaplayer/content_item.gen.go b/macos/mediaplayer/content_item.gen.go index 2e165da7..0b8276d0 100644 --- a/macos/mediaplayer/content_item.gen.go +++ b/macos/mediaplayer/content_item.gen.go @@ -18,23 +18,23 @@ type _ContentItemClass struct { // An interface definition for the [ContentItem] class. type IContentItem interface { objc.IObject - IsStreamingContent() bool - SetStreamingContent(value bool) - IsContainer() bool - SetContainer(value bool) - IsPlayable() bool - SetPlayable(value bool) + Subtitle() string + SetSubtitle(value string) PlaybackProgress() float32 SetPlaybackProgress(value float32) Artwork() MediaItemArtwork SetArtwork(value IMediaItemArtwork) - Subtitle() string - SetSubtitle(value string) + IsStreamingContent() bool + SetStreamingContent(value bool) + IsContainer() bool + SetContainer(value bool) + Title() string + SetTitle(value string) IsExplicitContent() bool SetExplicitContent(value bool) Identifier() string - Title() string - SetTitle(value string) + IsPlayable() bool + SetPlayable(value bool) } // An object that contains the information for a displayed media item. [Full Topic] @@ -84,49 +84,19 @@ func (c_ ContentItem) Init() ContentItem { return rv } -// A Boolean value that indicates whether the content item is streaming content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1771745-streamingcontent?language=objc -func (c_ ContentItem) IsStreamingContent() bool { - rv := objc.Call[bool](c_, objc.Sel("isStreamingContent")) - return rv -} - -// A Boolean value that indicates whether the content item is streaming content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1771745-streamingcontent?language=objc -func (c_ ContentItem) SetStreamingContent(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setStreamingContent:"), value) -} - -// A Boolean value that indicates whether a media item is container of other items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620154-container?language=objc -func (c_ ContentItem) IsContainer() bool { - rv := objc.Call[bool](c_, objc.Sel("isContainer")) - return rv -} - -// A Boolean value that indicates whether a media item is container of other items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620154-container?language=objc -func (c_ ContentItem) SetContainer(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setContainer:"), value) -} - -// A Boolean value that indicates whether a media item is able to be played. [Full Topic] +// A secondary designator for the media item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620158-playable?language=objc -func (c_ ContentItem) IsPlayable() bool { - rv := objc.Call[bool](c_, objc.Sel("isPlayable")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620155-subtitle?language=objc +func (c_ ContentItem) Subtitle() string { + rv := objc.Call[string](c_, objc.Sel("subtitle")) return rv } -// A Boolean value that indicates whether a media item is able to be played. [Full Topic] +// A secondary designator for the media item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620158-playable?language=objc -func (c_ ContentItem) SetPlayable(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setPlayable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620155-subtitle?language=objc +func (c_ ContentItem) SetSubtitle(value string) { + objc.Call[objc.Void](c_, objc.Sel("setSubtitle:"), value) } // The amount of content played for the media item. [Full Topic] @@ -159,19 +129,49 @@ func (c_ ContentItem) SetArtwork(value IMediaItemArtwork) { objc.Call[objc.Void](c_, objc.Sel("setArtwork:"), value) } -// A secondary designator for the media item. [Full Topic] +// A Boolean value that indicates whether the content item is streaming content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620155-subtitle?language=objc -func (c_ ContentItem) Subtitle() string { - rv := objc.Call[string](c_, objc.Sel("subtitle")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1771745-streamingcontent?language=objc +func (c_ ContentItem) IsStreamingContent() bool { + rv := objc.Call[bool](c_, objc.Sel("isStreamingContent")) return rv } -// A secondary designator for the media item. [Full Topic] +// A Boolean value that indicates whether the content item is streaming content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620155-subtitle?language=objc -func (c_ ContentItem) SetSubtitle(value string) { - objc.Call[objc.Void](c_, objc.Sel("setSubtitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1771745-streamingcontent?language=objc +func (c_ ContentItem) SetStreamingContent(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setStreamingContent:"), value) +} + +// A Boolean value that indicates whether a media item is container of other items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620154-container?language=objc +func (c_ ContentItem) IsContainer() bool { + rv := objc.Call[bool](c_, objc.Sel("isContainer")) + return rv +} + +// A Boolean value that indicates whether a media item is container of other items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620154-container?language=objc +func (c_ ContentItem) SetContainer(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setContainer:"), value) +} + +// The public name of the media item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620156-title?language=objc +func (c_ ContentItem) Title() string { + rv := objc.Call[string](c_, objc.Sel("title")) + return rv +} + +// The public name of the media item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620156-title?language=objc +func (c_ ContentItem) SetTitle(value string) { + objc.Call[objc.Void](c_, objc.Sel("setTitle:"), value) } // A Boolean value that indicates whether the media item contains explicit content. [Full Topic] @@ -197,17 +197,17 @@ func (c_ ContentItem) Identifier() string { return rv } -// The public name of the media item. [Full Topic] +// A Boolean value that indicates whether a media item is able to be played. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620156-title?language=objc -func (c_ ContentItem) Title() string { - rv := objc.Call[string](c_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620158-playable?language=objc +func (c_ ContentItem) IsPlayable() bool { + rv := objc.Call[bool](c_, objc.Sel("isPlayable")) return rv } -// The public name of the media item. [Full Topic] +// A Boolean value that indicates whether a media item is able to be played. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620156-title?language=objc -func (c_ ContentItem) SetTitle(value string) { - objc.Call[objc.Void](c_, objc.Sel("setTitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620158-playable?language=objc +func (c_ ContentItem) SetPlayable(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setPlayable:"), value) } diff --git a/macos/mediaplayer/feedback_command.gen.go b/macos/mediaplayer/feedback_command.gen.go index 39d406f9..01759216 100644 --- a/macos/mediaplayer/feedback_command.gen.go +++ b/macos/mediaplayer/feedback_command.gen.go @@ -18,10 +18,10 @@ type _FeedbackCommandClass struct { // An interface definition for the [FeedbackCommand] class. type IFeedbackCommand interface { IRemoteCommand - LocalizedTitle() string - SetLocalizedTitle(value string) IsActive() bool SetActive(value bool) + LocalizedTitle() string + SetLocalizedTitle(value string) LocalizedShortTitle() string SetLocalizedShortTitle(value string) } @@ -59,21 +59,6 @@ func (f_ FeedbackCommand) Init() FeedbackCommand { return rv } -// A localized string used to describe the context of a command. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpfeedbackcommand/1622905-localizedtitle?language=objc -func (f_ FeedbackCommand) LocalizedTitle() string { - rv := objc.Call[string](f_, objc.Sel("localizedTitle")) - return rv -} - -// A localized string used to describe the context of a command. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpfeedbackcommand/1622905-localizedtitle?language=objc -func (f_ FeedbackCommand) SetLocalizedTitle(value string) { - objc.Call[objc.Void](f_, objc.Sel("setLocalizedTitle:"), value) -} - // A Boolean value that indicates whether the feedback’s action is on or off. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpfeedbackcommand/1622900-active?language=objc @@ -89,6 +74,21 @@ func (f_ FeedbackCommand) SetActive(value bool) { objc.Call[objc.Void](f_, objc.Sel("setActive:"), value) } +// A localized string used to describe the context of a command. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpfeedbackcommand/1622905-localizedtitle?language=objc +func (f_ FeedbackCommand) LocalizedTitle() string { + rv := objc.Call[string](f_, objc.Sel("localizedTitle")) + return rv +} + +// A localized string used to describe the context of a command. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpfeedbackcommand/1622905-localizedtitle?language=objc +func (f_ FeedbackCommand) SetLocalizedTitle(value string) { + objc.Call[objc.Void](f_, objc.Sel("setLocalizedTitle:"), value) +} + // A shortened version of the string used to describe the context of a command. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpfeedbackcommand/1622916-localizedshorttitle?language=objc diff --git a/macos/mediaplayer/media_item_artwork.gen.go b/macos/mediaplayer/media_item_artwork.gen.go index f22a1929..e488d84d 100644 --- a/macos/mediaplayer/media_item_artwork.gen.go +++ b/macos/mediaplayer/media_item_artwork.gen.go @@ -21,8 +21,8 @@ type _MediaItemArtworkClass struct { type IMediaItemArtwork interface { objc.IObject ImageWithSize(size coregraphics.Size) appkit.Image - ImageCropRect() coregraphics.Rect Bounds() coregraphics.Rect + ImageCropRect() coregraphics.Rect } // A graphical image, such as music album cover art, associated with a media item. [Full Topic] @@ -80,14 +80,6 @@ func (m_ MediaItemArtwork) ImageWithSize(size coregraphics.Size) appkit.Image { return rv } -// The bounds, in points, of the content area for the full size image associated with the media item artwork. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpmediaitemartwork/1621760-imagecroprect?language=objc -func (m_ MediaItemArtwork) ImageCropRect() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](m_, objc.Sel("imageCropRect")) - return rv -} - // The maximum size, in points, of the image associated with the media item artwork. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpmediaitemartwork/1621723-bounds?language=objc @@ -95,3 +87,11 @@ func (m_ MediaItemArtwork) Bounds() coregraphics.Rect { rv := objc.Call[coregraphics.Rect](m_, objc.Sel("bounds")) return rv } + +// The bounds, in points, of the content area for the full size image associated with the media item artwork. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpmediaitemartwork/1621760-imagecroprect?language=objc +func (m_ MediaItemArtwork) ImageCropRect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](m_, objc.Sel("imageCropRect")) + return rv +} diff --git a/macos/mediaplayer/now_playing_info_language_option.gen.go b/macos/mediaplayer/now_playing_info_language_option.gen.go index 8f3c8012..87e34be8 100644 --- a/macos/mediaplayer/now_playing_info_language_option.gen.go +++ b/macos/mediaplayer/now_playing_info_language_option.gen.go @@ -18,13 +18,13 @@ type _NowPlayingInfoLanguageOptionClass struct { // An interface definition for the [NowPlayingInfoLanguageOption] class. type INowPlayingInfoLanguageOption interface { objc.IObject - IsAutomaticAudibleLanguageOption() bool IsAutomaticLegibleLanguageOption() bool - DisplayName() string + IsAutomaticAudibleLanguageOption() bool + LanguageOptionType() NowPlayingInfoLanguageOptionType LanguageTag() string LanguageOptionCharacteristics() []string + DisplayName() string Identifier() string - LanguageOptionType() NowPlayingInfoLanguageOptionType } // A set of interfaces for setting the language option for the Now Playing item. [Full Topic] @@ -74,14 +74,6 @@ func (n_ NowPlayingInfoLanguageOption) Init() NowPlayingInfoLanguageOption { return rv } -// Returns a Boolean value that determines whether to use the best audible language option based on the system preferences. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623151-isautomaticaudiblelanguageoption?language=objc -func (n_ NowPlayingInfoLanguageOption) IsAutomaticAudibleLanguageOption() bool { - rv := objc.Call[bool](n_, objc.Sel("isAutomaticAudibleLanguageOption")) - return rv -} - // Returns a Boolean value that determines whether to use the best legible language option based on the system preferences. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623144-isautomaticlegiblelanguageoption?language=objc @@ -90,11 +82,19 @@ func (n_ NowPlayingInfoLanguageOption) IsAutomaticLegibleLanguageOption() bool { return rv } -// The display name for a language option. [Full Topic] +// Returns a Boolean value that determines whether to use the best audible language option based on the system preferences. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623145-displayname?language=objc -func (n_ NowPlayingInfoLanguageOption) DisplayName() string { - rv := objc.Call[string](n_, objc.Sel("displayName")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623151-isautomaticaudiblelanguageoption?language=objc +func (n_ NowPlayingInfoLanguageOption) IsAutomaticAudibleLanguageOption() bool { + rv := objc.Call[bool](n_, objc.Sel("isAutomaticAudibleLanguageOption")) + return rv +} + +// The type of language option. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623153-languageoptiontype?language=objc +func (n_ NowPlayingInfoLanguageOption) LanguageOptionType() NowPlayingInfoLanguageOptionType { + rv := objc.Call[NowPlayingInfoLanguageOptionType](n_, objc.Sel("languageOptionType")) return rv } @@ -114,18 +114,18 @@ func (n_ NowPlayingInfoLanguageOption) LanguageOptionCharacteristics() []string return rv } -// The unique identifier for the language option. [Full Topic] +// The display name for a language option. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623135-identifier?language=objc -func (n_ NowPlayingInfoLanguageOption) Identifier() string { - rv := objc.Call[string](n_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623145-displayname?language=objc +func (n_ NowPlayingInfoLanguageOption) DisplayName() string { + rv := objc.Call[string](n_, objc.Sel("displayName")) return rv } -// The type of language option. [Full Topic] +// The unique identifier for the language option. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623153-languageoptiontype?language=objc -func (n_ NowPlayingInfoLanguageOption) LanguageOptionType() NowPlayingInfoLanguageOptionType { - rv := objc.Call[NowPlayingInfoLanguageOptionType](n_, objc.Sel("languageOptionType")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623135-identifier?language=objc +func (n_ NowPlayingInfoLanguageOption) Identifier() string { + rv := objc.Call[string](n_, objc.Sel("identifier")) return rv } diff --git a/macos/mediaplayer/rating_command.gen.go b/macos/mediaplayer/rating_command.gen.go index 9b2f6582..611aefd5 100644 --- a/macos/mediaplayer/rating_command.gen.go +++ b/macos/mediaplayer/rating_command.gen.go @@ -18,10 +18,10 @@ type _RatingCommandClass struct { // An interface definition for the [RatingCommand] class. type IRatingCommand interface { IRemoteCommand - MaximumRating() float32 - SetMaximumRating(value float32) MinimumRating() float32 SetMinimumRating(value float32) + MaximumRating() float32 + SetMaximumRating(value float32) } // An object that provides a detailed rating for the playing item. [Full Topic] @@ -57,21 +57,6 @@ func (r_ RatingCommand) Init() RatingCommand { return rv } -// The maximum rating for a command. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpratingcommand/1622898-maximumrating?language=objc -func (r_ RatingCommand) MaximumRating() float32 { - rv := objc.Call[float32](r_, objc.Sel("maximumRating")) - return rv -} - -// The maximum rating for a command. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpratingcommand/1622898-maximumrating?language=objc -func (r_ RatingCommand) SetMaximumRating(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setMaximumRating:"), value) -} - // The minimum rating for a command. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpratingcommand/1622902-minimumrating?language=objc @@ -86,3 +71,18 @@ func (r_ RatingCommand) MinimumRating() float32 { func (r_ RatingCommand) SetMinimumRating(value float32) { objc.Call[objc.Void](r_, objc.Sel("setMinimumRating:"), value) } + +// The maximum rating for a command. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpratingcommand/1622898-maximumrating?language=objc +func (r_ RatingCommand) MaximumRating() float32 { + rv := objc.Call[float32](r_, objc.Sel("maximumRating")) + return rv +} + +// The maximum rating for a command. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpratingcommand/1622898-maximumrating?language=objc +func (r_ RatingCommand) SetMaximumRating(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setMaximumRating:"), value) +} diff --git a/macos/mediaplayer/remote_command.gen.go b/macos/mediaplayer/remote_command.gen.go index 652d9dd0..964dd5ac 100644 --- a/macos/mediaplayer/remote_command.gen.go +++ b/macos/mediaplayer/remote_command.gen.go @@ -19,9 +19,8 @@ type _RemoteCommandClass struct { type IRemoteCommand interface { objc.IObject AddTargetWithHandler(handler func(event RemoteCommandEvent) RemoteCommandHandlerStatus) objc.Object - AddTargetAction(target objc.IObject, action objc.Selector) - RemoveTargetAction(target objc.IObject, action objc.Selector) RemoveTarget(target objc.IObject) + AddTargetAction(target objc.IObject, action objc.Selector) IsEnabled() bool SetEnabled(value bool) } @@ -67,20 +66,6 @@ func (r_ RemoteCommand) AddTargetWithHandler(handler func(event RemoteCommandEve return rv } -// Adds a target object to be called when an event is received. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommand/1622895-addtarget?language=objc -func (r_ RemoteCommand) AddTargetAction(target objc.IObject, action objc.Selector) { - objc.Call[objc.Void](r_, objc.Sel("addTarget:action:"), target, action) -} - -// Removes a target and action from a remote command object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommand/1622896-removetarget?language=objc -func (r_ RemoteCommand) RemoveTargetAction(target objc.IObject, action objc.Selector) { - objc.Call[objc.Void](r_, objc.Sel("removeTarget:action:"), target, action) -} - // Removes a target from the remote command object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommand/1622903-removetarget?language=objc @@ -88,6 +73,13 @@ func (r_ RemoteCommand) RemoveTarget(target objc.IObject) { objc.Call[objc.Void](r_, objc.Sel("removeTarget:"), target) } +// Adds a target object to be called when an event is received. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommand/1622895-addtarget?language=objc +func (r_ RemoteCommand) AddTargetAction(target objc.IObject, action objc.Selector) { + objc.Call[objc.Void](r_, objc.Sel("addTarget:action:"), target, action) +} + // A Boolean value that indicates whether a user can interact with the displayed element. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommand/1622908-enabled?language=objc diff --git a/macos/mediaplayer/remote_command_center.gen.go b/macos/mediaplayer/remote_command_center.gen.go index 51ff27f8..134b8e67 100644 --- a/macos/mediaplayer/remote_command_center.gen.go +++ b/macos/mediaplayer/remote_command_center.gen.go @@ -18,25 +18,25 @@ type _RemoteCommandCenterClass struct { // An interface definition for the [RemoteCommandCenter] class. type IRemoteCommandCenter interface { objc.IObject - StopCommand() RemoteCommand - NextTrackCommand() RemoteCommand + PlayCommand() RemoteCommand + SkipBackwardCommand() SkipIntervalCommand DisableLanguageOptionCommand() RemoteCommand - PreviousTrackCommand() RemoteCommand + SkipForwardCommand() SkipIntervalCommand ChangeRepeatModeCommand() ChangeRepeatModeCommand - PauseCommand() RemoteCommand - SeekBackwardCommand() RemoteCommand LikeCommand() FeedbackCommand - SkipBackwardCommand() SkipIntervalCommand - DislikeCommand() FeedbackCommand TogglePlayPauseCommand() RemoteCommand - BookmarkCommand() FeedbackCommand + NextTrackCommand() RemoteCommand ChangePlaybackPositionCommand() ChangePlaybackPositionCommand - SeekForwardCommand() RemoteCommand - SkipForwardCommand() SkipIntervalCommand - ChangeShuffleModeCommand() ChangeShuffleModeCommand + BookmarkCommand() FeedbackCommand ChangePlaybackRateCommand() ChangePlaybackRateCommand + PreviousTrackCommand() RemoteCommand EnableLanguageOptionCommand() RemoteCommand - PlayCommand() RemoteCommand + ChangeShuffleModeCommand() ChangeShuffleModeCommand + PauseCommand() RemoteCommand + DislikeCommand() FeedbackCommand + StopCommand() RemoteCommand + SeekBackwardCommand() RemoteCommand + SeekForwardCommand() RemoteCommand RatingCommand() RatingCommand } @@ -88,19 +88,19 @@ func RemoteCommandCenter_SharedCommandCenter() RemoteCommandCenter { return RemoteCommandCenterClass.SharedCommandCenter() } -// The command object for stopping playback of the current item. [Full Topic] +// The command object for starting playback of the current item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618984-stopcommand?language=objc -func (r_ RemoteCommandCenter) StopCommand() RemoteCommand { - rv := objc.Call[RemoteCommand](r_, objc.Sel("stopCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1619000-playcommand?language=objc +func (r_ RemoteCommandCenter) PlayCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("playCommand")) return rv } -// The command object for selecting the next track. [Full Topic] +// The command object for playing a previous point in a media item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618999-nexttrackcommand?language=objc -func (r_ RemoteCommandCenter) NextTrackCommand() RemoteCommand { - rv := objc.Call[RemoteCommand](r_, objc.Sel("nextTrackCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618996-skipbackwardcommand?language=objc +func (r_ RemoteCommandCenter) SkipBackwardCommand() SkipIntervalCommand { + rv := objc.Call[SkipIntervalCommand](r_, objc.Sel("skipBackwardCommand")) return rv } @@ -112,11 +112,11 @@ func (r_ RemoteCommandCenter) DisableLanguageOptionCommand() RemoteCommand { return rv } -// The command object for selecting the previous track. [Full Topic] +// The command object for playing a future point in a media item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618978-previoustrackcommand?language=objc -func (r_ RemoteCommandCenter) PreviousTrackCommand() RemoteCommand { - rv := objc.Call[RemoteCommand](r_, objc.Sel("previousTrackCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618990-skipforwardcommand?language=objc +func (r_ RemoteCommandCenter) SkipForwardCommand() SkipIntervalCommand { + rv := objc.Call[SkipIntervalCommand](r_, objc.Sel("skipForwardCommand")) return rv } @@ -128,22 +128,6 @@ func (r_ RemoteCommandCenter) ChangeRepeatModeCommand() ChangeRepeatModeCommand return rv } -// The command object for pausing playback of the current item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618979-pausecommand?language=objc -func (r_ RemoteCommandCenter) PauseCommand() RemoteCommand { - rv := objc.Call[RemoteCommand](r_, objc.Sel("pauseCommand")) - return rv -} - -// The command object for seeking backward through a single media item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618982-seekbackwardcommand?language=objc -func (r_ RemoteCommandCenter) SeekBackwardCommand() RemoteCommand { - rv := objc.Call[RemoteCommand](r_, objc.Sel("seekBackwardCommand")) - return rv -} - // The command object for indicating that a user likes what is currently playing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618998-likecommand?language=objc @@ -152,27 +136,27 @@ func (r_ RemoteCommandCenter) LikeCommand() FeedbackCommand { return rv } -// The command object for playing a previous point in a media item. [Full Topic] +// The command object for toggling between playing and pausing the current item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618996-skipbackwardcommand?language=objc -func (r_ RemoteCommandCenter) SkipBackwardCommand() SkipIntervalCommand { - rv := objc.Call[SkipIntervalCommand](r_, objc.Sel("skipBackwardCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618992-toggleplaypausecommand?language=objc +func (r_ RemoteCommandCenter) TogglePlayPauseCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("togglePlayPauseCommand")) return rv } -// The command object for indicating that a user dislikes what is currently playing. [Full Topic] +// The command object for selecting the next track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618995-dislikecommand?language=objc -func (r_ RemoteCommandCenter) DislikeCommand() FeedbackCommand { - rv := objc.Call[FeedbackCommand](r_, objc.Sel("dislikeCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618999-nexttrackcommand?language=objc +func (r_ RemoteCommandCenter) NextTrackCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("nextTrackCommand")) return rv } -// The command object for toggling between playing and pausing the current item. [Full Topic] +// The command object for changing the playback position in a media item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618992-toggleplaypausecommand?language=objc -func (r_ RemoteCommandCenter) TogglePlayPauseCommand() RemoteCommand { - rv := objc.Call[RemoteCommand](r_, objc.Sel("togglePlayPauseCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618997-changeplaybackpositioncommand?language=objc +func (r_ RemoteCommandCenter) ChangePlaybackPositionCommand() ChangePlaybackPositionCommand { + rv := objc.Call[ChangePlaybackPositionCommand](r_, objc.Sel("changePlaybackPositionCommand")) return rv } @@ -184,27 +168,27 @@ func (r_ RemoteCommandCenter) BookmarkCommand() FeedbackCommand { return rv } -// The command object for changing the playback position in a media item. [Full Topic] +// The command object for changing the playback rate of the current media item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618997-changeplaybackpositioncommand?language=objc -func (r_ RemoteCommandCenter) ChangePlaybackPositionCommand() ChangePlaybackPositionCommand { - rv := objc.Call[ChangePlaybackPositionCommand](r_, objc.Sel("changePlaybackPositionCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618991-changeplaybackratecommand?language=objc +func (r_ RemoteCommandCenter) ChangePlaybackRateCommand() ChangePlaybackRateCommand { + rv := objc.Call[ChangePlaybackRateCommand](r_, objc.Sel("changePlaybackRateCommand")) return rv } -// The command object for seeking forward through a single media item. [Full Topic] +// The command object for selecting the previous track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618981-seekforwardcommand?language=objc -func (r_ RemoteCommandCenter) SeekForwardCommand() RemoteCommand { - rv := objc.Call[RemoteCommand](r_, objc.Sel("seekForwardCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618978-previoustrackcommand?language=objc +func (r_ RemoteCommandCenter) PreviousTrackCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("previousTrackCommand")) return rv } -// The command object for playing a future point in a media item. [Full Topic] +// The command object for enabling a language option. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618990-skipforwardcommand?language=objc -func (r_ RemoteCommandCenter) SkipForwardCommand() SkipIntervalCommand { - rv := objc.Call[SkipIntervalCommand](r_, objc.Sel("skipForwardCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618980-enablelanguageoptioncommand?language=objc +func (r_ RemoteCommandCenter) EnableLanguageOptionCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("enableLanguageOptionCommand")) return rv } @@ -216,27 +200,43 @@ func (r_ RemoteCommandCenter) ChangeShuffleModeCommand() ChangeShuffleModeComman return rv } -// The command object for changing the playback rate of the current media item. [Full Topic] +// The command object for pausing playback of the current item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618991-changeplaybackratecommand?language=objc -func (r_ RemoteCommandCenter) ChangePlaybackRateCommand() ChangePlaybackRateCommand { - rv := objc.Call[ChangePlaybackRateCommand](r_, objc.Sel("changePlaybackRateCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618979-pausecommand?language=objc +func (r_ RemoteCommandCenter) PauseCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("pauseCommand")) return rv } -// The command object for enabling a language option. [Full Topic] +// The command object for indicating that a user dislikes what is currently playing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618980-enablelanguageoptioncommand?language=objc -func (r_ RemoteCommandCenter) EnableLanguageOptionCommand() RemoteCommand { - rv := objc.Call[RemoteCommand](r_, objc.Sel("enableLanguageOptionCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618995-dislikecommand?language=objc +func (r_ RemoteCommandCenter) DislikeCommand() FeedbackCommand { + rv := objc.Call[FeedbackCommand](r_, objc.Sel("dislikeCommand")) return rv } -// The command object for starting playback of the current item. [Full Topic] +// The command object for stopping playback of the current item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1619000-playcommand?language=objc -func (r_ RemoteCommandCenter) PlayCommand() RemoteCommand { - rv := objc.Call[RemoteCommand](r_, objc.Sel("playCommand")) +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618984-stopcommand?language=objc +func (r_ RemoteCommandCenter) StopCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("stopCommand")) + return rv +} + +// The command object for seeking backward through a single media item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618982-seekbackwardcommand?language=objc +func (r_ RemoteCommandCenter) SeekBackwardCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("seekBackwardCommand")) + return rv +} + +// The command object for seeking forward through a single media item. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618981-seekforwardcommand?language=objc +func (r_ RemoteCommandCenter) SeekForwardCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("seekForwardCommand")) return rv } diff --git a/macos/metal/acceleration_structure_bounding_box_geometry_descriptor.gen.go b/macos/metal/acceleration_structure_bounding_box_geometry_descriptor.gen.go index 3b861006..b2f69ac3 100644 --- a/macos/metal/acceleration_structure_bounding_box_geometry_descriptor.gen.go +++ b/macos/metal/acceleration_structure_bounding_box_geometry_descriptor.gen.go @@ -20,10 +20,10 @@ type IAccelerationStructureBoundingBoxGeometryDescriptor interface { IAccelerationStructureGeometryDescriptor BoundingBoxBufferOffset() uint SetBoundingBoxBufferOffset(value uint) - BoundingBoxCount() uint - SetBoundingBoxCount(value uint) BoundingBoxStride() uint SetBoundingBoxStride(value uint) + BoundingBoxCount() uint + SetBoundingBoxCount(value uint) BoundingBoxBuffer() BufferObject SetBoundingBoxBuffer(value PBuffer) SetBoundingBoxBufferObject(valueObject objc.IObject) @@ -89,21 +89,6 @@ func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) SetBoundingBoxBuffe objc.Call[objc.Void](a_, objc.Sel("setBoundingBoxBufferOffset:"), value) } -// The number of bounding boxes in the bounding box buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructureboundingboxgeometrydescriptor/3553862-boundingboxcount?language=objc -func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) BoundingBoxCount() uint { - rv := objc.Call[uint](a_, objc.Sel("boundingBoxCount")) - return rv -} - -// The number of bounding boxes in the bounding box buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructureboundingboxgeometrydescriptor/3553862-boundingboxcount?language=objc -func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) SetBoundingBoxCount(value uint) { - objc.Call[objc.Void](a_, objc.Sel("setBoundingBoxCount:"), value) -} - // The stride, in bytes, between bounding boxes in the buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructureboundingboxgeometrydescriptor/3553863-boundingboxstride?language=objc @@ -119,6 +104,21 @@ func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) SetBoundingBoxStrid objc.Call[objc.Void](a_, objc.Sel("setBoundingBoxStride:"), value) } +// The number of bounding boxes in the bounding box buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructureboundingboxgeometrydescriptor/3553862-boundingboxcount?language=objc +func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) BoundingBoxCount() uint { + rv := objc.Call[uint](a_, objc.Sel("boundingBoxCount")) + return rv +} + +// The number of bounding boxes in the bounding box buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructureboundingboxgeometrydescriptor/3553862-boundingboxcount?language=objc +func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) SetBoundingBoxCount(value uint) { + objc.Call[objc.Void](a_, objc.Sel("setBoundingBoxCount:"), value) +} + // A buffer that contains bounding box data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructureboundingboxgeometrydescriptor/3553860-boundingboxbuffer?language=objc diff --git a/macos/metal/acceleration_structure_command_encoder_protocol.gen.go b/macos/metal/acceleration_structure_command_encoder_protocol.gen.go index c648366d..d5c3d67d 100644 --- a/macos/metal/acceleration_structure_command_encoder_protocol.gen.go +++ b/macos/metal/acceleration_structure_command_encoder_protocol.gen.go @@ -13,56 +13,52 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder?language=objc type PAccelerationStructureCommandEncoder interface { // optional - RefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset(sourceAccelerationStructure AccelerationStructureObject, descriptor AccelerationStructureDescriptor, destinationAccelerationStructure AccelerationStructureObject, scratchBuffer BufferObject, scratchBufferOffset uint) - HasRefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset() bool - - // optional - UpdateFence(fence FenceObject) - HasUpdateFence() bool - - // optional - WriteCompactedAccelerationStructureSizeToBufferOffsetSizeDataType(accelerationStructure AccelerationStructureObject, buffer BufferObject, offset uint, sizeDataType DataType) - HasWriteCompactedAccelerationStructureSizeToBufferOffsetSizeDataType() bool + UseResourceUsage(resource ResourceObject, usage ResourceUsage) + HasUseResourceUsage() bool // optional CopyAndCompactAccelerationStructureToAccelerationStructure(sourceAccelerationStructure AccelerationStructureObject, destinationAccelerationStructure AccelerationStructureObject) HasCopyAndCompactAccelerationStructureToAccelerationStructure() bool // optional - UseHeapsCount(heaps unsafe.Pointer, count uint) - HasUseHeapsCount() bool + RefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset(sourceAccelerationStructure AccelerationStructureObject, descriptor AccelerationStructureDescriptor, destinationAccelerationStructure AccelerationStructureObject, scratchBuffer BufferObject, scratchBufferOffset uint) + HasRefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset() bool + + // optional + SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) + HasSampleCountersInBufferAtSampleIndexWithBarrier() bool // optional CopyAccelerationStructureToAccelerationStructure(sourceAccelerationStructure AccelerationStructureObject, destinationAccelerationStructure AccelerationStructureObject) HasCopyAccelerationStructureToAccelerationStructure() bool // optional - BuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset(accelerationStructure AccelerationStructureObject, descriptor AccelerationStructureDescriptor, scratchBuffer BufferObject, scratchBufferOffset uint) - HasBuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset() bool + WriteCompactedAccelerationStructureSizeToBufferOffset(accelerationStructure AccelerationStructureObject, buffer BufferObject, offset uint) + HasWriteCompactedAccelerationStructureSizeToBufferOffset() bool // optional UseHeap(heap HeapObject) HasUseHeap() bool // optional - WaitForFence(fence FenceObject) - HasWaitForFence() bool + UseResourcesCountUsage(resources unsafe.Pointer, count uint, usage ResourceUsage) + HasUseResourcesCountUsage() bool // optional - SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) - HasSampleCountersInBufferAtSampleIndexWithBarrier() bool + UseHeapsCount(heaps unsafe.Pointer, count uint) + HasUseHeapsCount() bool // optional - UseResourceUsage(resource ResourceObject, usage ResourceUsage) - HasUseResourceUsage() bool + UpdateFence(fence FenceObject) + HasUpdateFence() bool // optional - UseResourcesCountUsage(resources unsafe.Pointer, count uint, usage ResourceUsage) - HasUseResourcesCountUsage() bool + BuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset(accelerationStructure AccelerationStructureObject, descriptor AccelerationStructureDescriptor, scratchBuffer BufferObject, scratchBufferOffset uint) + HasBuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset() bool // optional - WriteCompactedAccelerationStructureSizeToBufferOffset(accelerationStructure AccelerationStructureObject, buffer BufferObject, offset uint) - HasWriteCompactedAccelerationStructureSizeToBufferOffset() bool + WaitForFence(fence FenceObject) + HasWaitForFence() bool } // ensure impl type implements protocol interface @@ -73,43 +69,16 @@ type AccelerationStructureCommandEncoderObject struct { objc.Object } -func (a_ AccelerationStructureCommandEncoderObject) HasRefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset() bool { - return a_.RespondsToSelector(objc.Sel("refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:")) -} - -// Updates an acceleration structure with new geometry or instance data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553898-refitaccelerationstructure?language=objc -func (a_ AccelerationStructureCommandEncoderObject) RefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset(sourceAccelerationStructure AccelerationStructureObject, descriptor AccelerationStructureDescriptor, destinationAccelerationStructure AccelerationStructureObject, scratchBuffer BufferObject, scratchBufferOffset uint) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", sourceAccelerationStructure) - po2 := objc.WrapAsProtocol("MTLAccelerationStructure", destinationAccelerationStructure) - po3 := objc.WrapAsProtocol("MTLBuffer", scratchBuffer) - objc.Call[objc.Void](a_, objc.Sel("refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:"), po0, descriptor, po2, po3, scratchBufferOffset) -} - -func (a_ AccelerationStructureCommandEncoderObject) HasUpdateFence() bool { - return a_.RespondsToSelector(objc.Sel("updateFence:")) -} - -// Tells the GPU to update the fence after all commands encoded by the encoder have finished executing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553901-updatefence?language=objc -func (a_ AccelerationStructureCommandEncoderObject) UpdateFence(fence FenceObject) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](a_, objc.Sel("updateFence:"), po0) -} - -func (a_ AccelerationStructureCommandEncoderObject) HasWriteCompactedAccelerationStructureSizeToBufferOffsetSizeDataType() bool { - return a_.RespondsToSelector(objc.Sel("writeCompactedAccelerationStructureSize:toBuffer:offset:sizeDataType:")) +func (a_ AccelerationStructureCommandEncoderObject) HasUseResourceUsage() bool { + return a_.RespondsToSelector(objc.Sel("useResource:usage:")) } -// Encodes a command to calculate the compacted size of an acceleration structure, taking into account the size of the output data. [Full Topic] +// Makes a resource available to the acceleration structure pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3750514-writecompactedaccelerationstruct?language=objc -func (a_ AccelerationStructureCommandEncoderObject) WriteCompactedAccelerationStructureSizeToBufferOffsetSizeDataType(accelerationStructure AccelerationStructureObject, buffer BufferObject, offset uint, sizeDataType DataType) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - po1 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](a_, objc.Sel("writeCompactedAccelerationStructureSize:toBuffer:offset:sizeDataType:"), po0, po1, offset, sizeDataType) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553904-useresource?language=objc +func (a_ AccelerationStructureCommandEncoderObject) UseResourceUsage(resource ResourceObject, usage ResourceUsage) { + po0 := objc.WrapAsProtocol("MTLResource", resource) + objc.Call[objc.Void](a_, objc.Sel("useResource:usage:"), po0, usage) } func (a_ AccelerationStructureCommandEncoderObject) HasCopyAndCompactAccelerationStructureToAccelerationStructure() bool { @@ -125,16 +94,30 @@ func (a_ AccelerationStructureCommandEncoderObject) CopyAndCompactAccelerationSt objc.Call[objc.Void](a_, objc.Sel("copyAndCompactAccelerationStructure:toAccelerationStructure:"), po0, po1) } -func (a_ AccelerationStructureCommandEncoderObject) HasUseHeapsCount() bool { - return a_.RespondsToSelector(objc.Sel("useHeaps:count:")) +func (a_ AccelerationStructureCommandEncoderObject) HasRefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset() bool { + return a_.RespondsToSelector(objc.Sel("refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:")) } -// Specifies that an array of heaps containing resources in an argument buffer can be safely used by the acceleration structure pass. [Full Topic] +// Updates an acceleration structure with new geometry or instance data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553903-useheaps?language=objc -func (a_ AccelerationStructureCommandEncoderObject) UseHeapsCount(heaps unsafe.Pointer, count uint) { - po0 := objc.WrapAsProtocol("MTLHeap", heaps) - objc.Call[objc.Void](a_, objc.Sel("useHeaps:count:"), po0, count) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553898-refitaccelerationstructure?language=objc +func (a_ AccelerationStructureCommandEncoderObject) RefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset(sourceAccelerationStructure AccelerationStructureObject, descriptor AccelerationStructureDescriptor, destinationAccelerationStructure AccelerationStructureObject, scratchBuffer BufferObject, scratchBufferOffset uint) { + po0 := objc.WrapAsProtocol("MTLAccelerationStructure", sourceAccelerationStructure) + po2 := objc.WrapAsProtocol("MTLAccelerationStructure", destinationAccelerationStructure) + po3 := objc.WrapAsProtocol("MTLBuffer", scratchBuffer) + objc.Call[objc.Void](a_, objc.Sel("refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:"), po0, descriptor, po2, po3, scratchBufferOffset) +} + +func (a_ AccelerationStructureCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { + return a_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) +} + +// Encodes a command to sample hardware counters at this point in the acceleration structure pass and store the samples into a counter sample buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553899-samplecountersinbuffer?language=objc +func (a_ AccelerationStructureCommandEncoderObject) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) { + po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) + objc.Call[objc.Void](a_, objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:"), po0, sampleIndex, barrier) } func (a_ AccelerationStructureCommandEncoderObject) HasCopyAccelerationStructureToAccelerationStructure() bool { @@ -150,17 +133,17 @@ func (a_ AccelerationStructureCommandEncoderObject) CopyAccelerationStructureToA objc.Call[objc.Void](a_, objc.Sel("copyAccelerationStructure:toAccelerationStructure:"), po0, po1) } -func (a_ AccelerationStructureCommandEncoderObject) HasBuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset() bool { - return a_.RespondsToSelector(objc.Sel("buildAccelerationStructure:descriptor:scratchBuffer:scratchBufferOffset:")) +func (a_ AccelerationStructureCommandEncoderObject) HasWriteCompactedAccelerationStructureSizeToBufferOffset() bool { + return a_.RespondsToSelector(objc.Sel("writeCompactedAccelerationStructureSize:toBuffer:offset:")) } -// Encodes a command to build a new acceleration structure. [Full Topic] +// Encodes a command to calculate the compacted size of an acceleration structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553894-buildaccelerationstructure?language=objc -func (a_ AccelerationStructureCommandEncoderObject) BuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset(accelerationStructure AccelerationStructureObject, descriptor AccelerationStructureDescriptor, scratchBuffer BufferObject, scratchBufferOffset uint) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553907-writecompactedaccelerationstruct?language=objc +func (a_ AccelerationStructureCommandEncoderObject) WriteCompactedAccelerationStructureSizeToBufferOffset(accelerationStructure AccelerationStructureObject, buffer BufferObject, offset uint) { po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - po2 := objc.WrapAsProtocol("MTLBuffer", scratchBuffer) - objc.Call[objc.Void](a_, objc.Sel("buildAccelerationStructure:descriptor:scratchBuffer:scratchBufferOffset:"), po0, descriptor, po2, scratchBufferOffset) + po1 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](a_, objc.Sel("writeCompactedAccelerationStructureSize:toBuffer:offset:"), po0, po1, offset) } func (a_ AccelerationStructureCommandEncoderObject) HasUseHeap() bool { @@ -175,63 +158,63 @@ func (a_ AccelerationStructureCommandEncoderObject) UseHeap(heap HeapObject) { objc.Call[objc.Void](a_, objc.Sel("useHeap:"), po0) } -func (a_ AccelerationStructureCommandEncoderObject) HasWaitForFence() bool { - return a_.RespondsToSelector(objc.Sel("waitForFence:")) +func (a_ AccelerationStructureCommandEncoderObject) HasUseResourcesCountUsage() bool { + return a_.RespondsToSelector(objc.Sel("useResources:count:usage:")) } -// Tells the GPU to wait until the fence is updated before executing any commands encoded by the command encoder. [Full Topic] +// Specifies that an array of resources in an argument buffer can be safely used by the acceleration structure pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553906-waitforfence?language=objc -func (a_ AccelerationStructureCommandEncoderObject) WaitForFence(fence FenceObject) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](a_, objc.Sel("waitForFence:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553905-useresources?language=objc +func (a_ AccelerationStructureCommandEncoderObject) UseResourcesCountUsage(resources unsafe.Pointer, count uint, usage ResourceUsage) { + po0 := objc.WrapAsProtocol("MTLResource", resources) + objc.Call[objc.Void](a_, objc.Sel("useResources:count:usage:"), po0, count, usage) } -func (a_ AccelerationStructureCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { - return a_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) +func (a_ AccelerationStructureCommandEncoderObject) HasUseHeapsCount() bool { + return a_.RespondsToSelector(objc.Sel("useHeaps:count:")) } -// Encodes a command to sample hardware counters at this point in the acceleration structure pass and store the samples into a counter sample buffer. [Full Topic] +// Specifies that an array of heaps containing resources in an argument buffer can be safely used by the acceleration structure pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553899-samplecountersinbuffer?language=objc -func (a_ AccelerationStructureCommandEncoderObject) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) { - po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) - objc.Call[objc.Void](a_, objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:"), po0, sampleIndex, barrier) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553903-useheaps?language=objc +func (a_ AccelerationStructureCommandEncoderObject) UseHeapsCount(heaps unsafe.Pointer, count uint) { + po0 := objc.WrapAsProtocol("MTLHeap", heaps) + objc.Call[objc.Void](a_, objc.Sel("useHeaps:count:"), po0, count) } -func (a_ AccelerationStructureCommandEncoderObject) HasUseResourceUsage() bool { - return a_.RespondsToSelector(objc.Sel("useResource:usage:")) +func (a_ AccelerationStructureCommandEncoderObject) HasUpdateFence() bool { + return a_.RespondsToSelector(objc.Sel("updateFence:")) } -// Makes a resource available to the acceleration structure pass. [Full Topic] +// Tells the GPU to update the fence after all commands encoded by the encoder have finished executing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553904-useresource?language=objc -func (a_ AccelerationStructureCommandEncoderObject) UseResourceUsage(resource ResourceObject, usage ResourceUsage) { - po0 := objc.WrapAsProtocol("MTLResource", resource) - objc.Call[objc.Void](a_, objc.Sel("useResource:usage:"), po0, usage) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553901-updatefence?language=objc +func (a_ AccelerationStructureCommandEncoderObject) UpdateFence(fence FenceObject) { + po0 := objc.WrapAsProtocol("MTLFence", fence) + objc.Call[objc.Void](a_, objc.Sel("updateFence:"), po0) } -func (a_ AccelerationStructureCommandEncoderObject) HasUseResourcesCountUsage() bool { - return a_.RespondsToSelector(objc.Sel("useResources:count:usage:")) +func (a_ AccelerationStructureCommandEncoderObject) HasBuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset() bool { + return a_.RespondsToSelector(objc.Sel("buildAccelerationStructure:descriptor:scratchBuffer:scratchBufferOffset:")) } -// Specifies that an array of resources in an argument buffer can be safely used by the acceleration structure pass. [Full Topic] +// Encodes a command to build a new acceleration structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553905-useresources?language=objc -func (a_ AccelerationStructureCommandEncoderObject) UseResourcesCountUsage(resources unsafe.Pointer, count uint, usage ResourceUsage) { - po0 := objc.WrapAsProtocol("MTLResource", resources) - objc.Call[objc.Void](a_, objc.Sel("useResources:count:usage:"), po0, count, usage) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553894-buildaccelerationstructure?language=objc +func (a_ AccelerationStructureCommandEncoderObject) BuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset(accelerationStructure AccelerationStructureObject, descriptor AccelerationStructureDescriptor, scratchBuffer BufferObject, scratchBufferOffset uint) { + po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) + po2 := objc.WrapAsProtocol("MTLBuffer", scratchBuffer) + objc.Call[objc.Void](a_, objc.Sel("buildAccelerationStructure:descriptor:scratchBuffer:scratchBufferOffset:"), po0, descriptor, po2, scratchBufferOffset) } -func (a_ AccelerationStructureCommandEncoderObject) HasWriteCompactedAccelerationStructureSizeToBufferOffset() bool { - return a_.RespondsToSelector(objc.Sel("writeCompactedAccelerationStructureSize:toBuffer:offset:")) +func (a_ AccelerationStructureCommandEncoderObject) HasWaitForFence() bool { + return a_.RespondsToSelector(objc.Sel("waitForFence:")) } -// Encodes a command to calculate the compacted size of an acceleration structure. [Full Topic] +// Tells the GPU to wait until the fence is updated before executing any commands encoded by the command encoder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553907-writecompactedaccelerationstruct?language=objc -func (a_ AccelerationStructureCommandEncoderObject) WriteCompactedAccelerationStructureSizeToBufferOffset(accelerationStructure AccelerationStructureObject, buffer BufferObject, offset uint) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - po1 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](a_, objc.Sel("writeCompactedAccelerationStructureSize:toBuffer:offset:"), po0, po1, offset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553906-waitforfence?language=objc +func (a_ AccelerationStructureCommandEncoderObject) WaitForFence(fence FenceObject) { + po0 := objc.WrapAsProtocol("MTLFence", fence) + objc.Call[objc.Void](a_, objc.Sel("waitForFence:"), po0) } diff --git a/macos/metal/acceleration_structure_geometry_descriptor.gen.go b/macos/metal/acceleration_structure_geometry_descriptor.gen.go index 55ea973c..6ecd2d6d 100644 --- a/macos/metal/acceleration_structure_geometry_descriptor.gen.go +++ b/macos/metal/acceleration_structure_geometry_descriptor.gen.go @@ -18,14 +18,14 @@ type _AccelerationStructureGeometryDescriptorClass struct { // An interface definition for the [AccelerationStructureGeometryDescriptor] class. type IAccelerationStructureGeometryDescriptor interface { objc.IObject - Label() string - SetLabel(value string) - IntersectionFunctionTableOffset() uint - SetIntersectionFunctionTableOffset(value uint) AllowDuplicateIntersectionFunctionInvocation() bool SetAllowDuplicateIntersectionFunctionInvocation(value bool) Opaque() bool SetOpaque(value bool) + Label() string + SetLabel(value string) + IntersectionFunctionTableOffset() uint + SetIntersectionFunctionTableOffset(value uint) } // A base class for descriptors that contain geometry data to convert into a ray-tracing acceleration structure. [Full Topic] @@ -61,36 +61,6 @@ func (a_ AccelerationStructureGeometryDescriptor) Init() AccelerationStructureGe return rv } -// A label for the geometry structure, suitable for debugging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3750460-label?language=objc -func (a_ AccelerationStructureGeometryDescriptor) Label() string { - rv := objc.Call[string](a_, objc.Sel("label")) - return rv -} - -// A label for the geometry structure, suitable for debugging. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3750460-label?language=objc -func (a_ AccelerationStructureGeometryDescriptor) SetLabel(value string) { - objc.Call[objc.Void](a_, objc.Sel("setLabel:"), value) -} - -// An index into the intersection table for determining which intersection function Metal calls when it intersects a ray with the acceleration structure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3566524-intersectionfunctiontableoffset?language=objc -func (a_ AccelerationStructureGeometryDescriptor) IntersectionFunctionTableOffset() uint { - rv := objc.Call[uint](a_, objc.Sel("intersectionFunctionTableOffset")) - return rv -} - -// An index into the intersection table for determining which intersection function Metal calls when it intersects a ray with the acceleration structure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3566524-intersectionfunctiontableoffset?language=objc -func (a_ AccelerationStructureGeometryDescriptor) SetIntersectionFunctionTableOffset(value uint) { - objc.Call[objc.Void](a_, objc.Sel("setIntersectionFunctionTableOffset:"), value) -} - // A Boolean value that indicates whether Metal calls the ray-intersection test more than once per primitive on the structure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3666578-allowduplicateintersectionfuncti?language=objc @@ -120,3 +90,33 @@ func (a_ AccelerationStructureGeometryDescriptor) Opaque() bool { func (a_ AccelerationStructureGeometryDescriptor) SetOpaque(value bool) { objc.Call[objc.Void](a_, objc.Sel("setOpaque:"), value) } + +// A label for the geometry structure, suitable for debugging. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3750460-label?language=objc +func (a_ AccelerationStructureGeometryDescriptor) Label() string { + rv := objc.Call[string](a_, objc.Sel("label")) + return rv +} + +// A label for the geometry structure, suitable for debugging. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3750460-label?language=objc +func (a_ AccelerationStructureGeometryDescriptor) SetLabel(value string) { + objc.Call[objc.Void](a_, objc.Sel("setLabel:"), value) +} + +// An index into the intersection table for determining which intersection function Metal calls when it intersects a ray with the acceleration structure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3566524-intersectionfunctiontableoffset?language=objc +func (a_ AccelerationStructureGeometryDescriptor) IntersectionFunctionTableOffset() uint { + rv := objc.Call[uint](a_, objc.Sel("intersectionFunctionTableOffset")) + return rv +} + +// An index into the intersection table for determining which intersection function Metal calls when it intersects a ray with the acceleration structure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3566524-intersectionfunctiontableoffset?language=objc +func (a_ AccelerationStructureGeometryDescriptor) SetIntersectionFunctionTableOffset(value uint) { + objc.Call[objc.Void](a_, objc.Sel("setIntersectionFunctionTableOffset:"), value) +} diff --git a/macos/metal/acceleration_structure_motion_triangle_geometry_descriptor.gen.go b/macos/metal/acceleration_structure_motion_triangle_geometry_descriptor.gen.go index af7f615b..c49b97da 100644 --- a/macos/metal/acceleration_structure_motion_triangle_geometry_descriptor.gen.go +++ b/macos/metal/acceleration_structure_motion_triangle_geometry_descriptor.gen.go @@ -18,17 +18,17 @@ type _AccelerationStructureMotionTriangleGeometryDescriptorClass struct { // An interface definition for the [AccelerationStructureMotionTriangleGeometryDescriptor] class. type IAccelerationStructureMotionTriangleGeometryDescriptor interface { IAccelerationStructureGeometryDescriptor - IndexType() IndexType - SetIndexType(value IndexType) + VertexBuffers() []MotionKeyframeData + SetVertexBuffers(value []IMotionKeyframeData) + TriangleCount() uint + SetTriangleCount(value uint) IndexBuffer() BufferObject SetIndexBuffer(value PBuffer) SetIndexBufferObject(valueObject objc.IObject) - TriangleCount() uint - SetTriangleCount(value uint) IndexBufferOffset() uint SetIndexBufferOffset(value uint) - VertexBuffers() []MotionKeyframeData - SetVertexBuffers(value []IMotionKeyframeData) + IndexType() IndexType + SetIndexType(value IndexType) VertexStride() uint SetVertexStride(value uint) } @@ -78,19 +78,34 @@ func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) Init() Accelerat return rv } -// The data type of indices in the index buffer. [Full Topic] +// An array of motion keyframes, each containing triangle data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750486-indextype?language=objc -func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) IndexType() IndexType { - rv := objc.Call[IndexType](a_, objc.Sel("indexType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750488-vertexbuffers?language=objc +func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) VertexBuffers() []MotionKeyframeData { + rv := objc.Call[[]MotionKeyframeData](a_, objc.Sel("vertexBuffers")) return rv } -// The data type of indices in the index buffer. [Full Topic] +// An array of motion keyframes, each containing triangle data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750486-indextype?language=objc -func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) SetIndexType(value IndexType) { - objc.Call[objc.Void](a_, objc.Sel("setIndexType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750488-vertexbuffers?language=objc +func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) SetVertexBuffers(value []IMotionKeyframeData) { + objc.Call[objc.Void](a_, objc.Sel("setVertexBuffers:"), value) +} + +// The number of triangles in the buffers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750487-trianglecount?language=objc +func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) TriangleCount() uint { + rv := objc.Call[uint](a_, objc.Sel("triangleCount")) + return rv +} + +// The number of triangles in the buffers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750487-trianglecount?language=objc +func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) SetTriangleCount(value uint) { + objc.Call[objc.Void](a_, objc.Sel("setTriangleCount:"), value) } // A buffer that contains indices for the vertices that compose the triangle list. [Full Topic] @@ -116,21 +131,6 @@ func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) SetIndexBufferOb objc.Call[objc.Void](a_, objc.Sel("setIndexBuffer:"), valueObject) } -// The number of triangles in the buffers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750487-trianglecount?language=objc -func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) TriangleCount() uint { - rv := objc.Call[uint](a_, objc.Sel("triangleCount")) - return rv -} - -// The number of triangles in the buffers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750487-trianglecount?language=objc -func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) SetTriangleCount(value uint) { - objc.Call[objc.Void](a_, objc.Sel("setTriangleCount:"), value) -} - // The offset, in bytes, to the first index in the buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750485-indexbufferoffset?language=objc @@ -146,19 +146,19 @@ func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) SetIndexBufferOf objc.Call[objc.Void](a_, objc.Sel("setIndexBufferOffset:"), value) } -// An array of motion keyframes, each containing triangle data. [Full Topic] +// The data type of indices in the index buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750488-vertexbuffers?language=objc -func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) VertexBuffers() []MotionKeyframeData { - rv := objc.Call[[]MotionKeyframeData](a_, objc.Sel("vertexBuffers")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750486-indextype?language=objc +func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) IndexType() IndexType { + rv := objc.Call[IndexType](a_, objc.Sel("indexType")) return rv } -// An array of motion keyframes, each containing triangle data. [Full Topic] +// The data type of indices in the index buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750488-vertexbuffers?language=objc -func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) SetVertexBuffers(value []IMotionKeyframeData) { - objc.Call[objc.Void](a_, objc.Sel("setVertexBuffers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750486-indextype?language=objc +func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) SetIndexType(value IndexType) { + objc.Call[objc.Void](a_, objc.Sel("setIndexType:"), value) } // The stride, in bytes, between vertices in each vertex buffer. [Full Topic] diff --git a/macos/metal/acceleration_structure_triangle_geometry_descriptor.gen.go b/macos/metal/acceleration_structure_triangle_geometry_descriptor.gen.go index f662a3f2..4034f768 100644 --- a/macos/metal/acceleration_structure_triangle_geometry_descriptor.gen.go +++ b/macos/metal/acceleration_structure_triangle_geometry_descriptor.gen.go @@ -18,8 +18,9 @@ type _AccelerationStructureTriangleGeometryDescriptorClass struct { // An interface definition for the [AccelerationStructureTriangleGeometryDescriptor] class. type IAccelerationStructureTriangleGeometryDescriptor interface { IAccelerationStructureGeometryDescriptor - IndexType() IndexType - SetIndexType(value IndexType) + VertexBuffer() BufferObject + SetVertexBuffer(value PBuffer) + SetVertexBufferObject(valueObject objc.IObject) TriangleCount() uint SetTriangleCount(value uint) IndexBuffer() BufferObject @@ -27,13 +28,12 @@ type IAccelerationStructureTriangleGeometryDescriptor interface { SetIndexBufferObject(valueObject objc.IObject) IndexBufferOffset() uint SetIndexBufferOffset(value uint) - VertexBufferOffset() uint - SetVertexBufferOffset(value uint) + IndexType() IndexType + SetIndexType(value IndexType) VertexStride() uint SetVertexStride(value uint) - VertexBuffer() BufferObject - SetVertexBuffer(value PBuffer) - SetVertexBufferObject(valueObject objc.IObject) + VertexBufferOffset() uint + SetVertexBufferOffset(value uint) } // A description of a list of triangle primitives to turn into an acceleration structure. [Full Topic] @@ -81,19 +81,27 @@ func (a_ AccelerationStructureTriangleGeometryDescriptor) Init() AccelerationStr return rv } -// The data type of indices in the index buffer. [Full Topic] +// A buffer that contains vertex data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3666587-indextype?language=objc -func (a_ AccelerationStructureTriangleGeometryDescriptor) IndexType() IndexType { - rv := objc.Call[IndexType](a_, objc.Sel("indexType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553876-vertexbuffer?language=objc +func (a_ AccelerationStructureTriangleGeometryDescriptor) VertexBuffer() BufferObject { + rv := objc.Call[BufferObject](a_, objc.Sel("vertexBuffer")) return rv } -// The data type of indices in the index buffer. [Full Topic] +// A buffer that contains vertex data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3666587-indextype?language=objc -func (a_ AccelerationStructureTriangleGeometryDescriptor) SetIndexType(value IndexType) { - objc.Call[objc.Void](a_, objc.Sel("setIndexType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553876-vertexbuffer?language=objc +func (a_ AccelerationStructureTriangleGeometryDescriptor) SetVertexBuffer(value PBuffer) { + po0 := objc.WrapAsProtocol("MTLBuffer", value) + objc.Call[objc.Void](a_, objc.Sel("setVertexBuffer:"), po0) +} + +// A buffer that contains vertex data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553876-vertexbuffer?language=objc +func (a_ AccelerationStructureTriangleGeometryDescriptor) SetVertexBufferObject(valueObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("setVertexBuffer:"), valueObject) } // The number of triangles in the buffers. [Full Topic] @@ -149,19 +157,19 @@ func (a_ AccelerationStructureTriangleGeometryDescriptor) SetIndexBufferOffset(v objc.Call[objc.Void](a_, objc.Sel("setIndexBufferOffset:"), value) } -// The offset, in bytes, for the first vertex in the vertex buffer. [Full Topic] +// The data type of indices in the index buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553877-vertexbufferoffset?language=objc -func (a_ AccelerationStructureTriangleGeometryDescriptor) VertexBufferOffset() uint { - rv := objc.Call[uint](a_, objc.Sel("vertexBufferOffset")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3666587-indextype?language=objc +func (a_ AccelerationStructureTriangleGeometryDescriptor) IndexType() IndexType { + rv := objc.Call[IndexType](a_, objc.Sel("indexType")) return rv } -// The offset, in bytes, for the first vertex in the vertex buffer. [Full Topic] +// The data type of indices in the index buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553877-vertexbufferoffset?language=objc -func (a_ AccelerationStructureTriangleGeometryDescriptor) SetVertexBufferOffset(value uint) { - objc.Call[objc.Void](a_, objc.Sel("setVertexBufferOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3666587-indextype?language=objc +func (a_ AccelerationStructureTriangleGeometryDescriptor) SetIndexType(value IndexType) { + objc.Call[objc.Void](a_, objc.Sel("setIndexType:"), value) } // The stride, in bytes, between vertices in the vertex buffer. [Full Topic] @@ -179,25 +187,17 @@ func (a_ AccelerationStructureTriangleGeometryDescriptor) SetVertexStride(value objc.Call[objc.Void](a_, objc.Sel("setVertexStride:"), value) } -// A buffer that contains vertex data. [Full Topic] +// The offset, in bytes, for the first vertex in the vertex buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553876-vertexbuffer?language=objc -func (a_ AccelerationStructureTriangleGeometryDescriptor) VertexBuffer() BufferObject { - rv := objc.Call[BufferObject](a_, objc.Sel("vertexBuffer")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553877-vertexbufferoffset?language=objc +func (a_ AccelerationStructureTriangleGeometryDescriptor) VertexBufferOffset() uint { + rv := objc.Call[uint](a_, objc.Sel("vertexBufferOffset")) return rv } -// A buffer that contains vertex data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553876-vertexbuffer?language=objc -func (a_ AccelerationStructureTriangleGeometryDescriptor) SetVertexBuffer(value PBuffer) { - po0 := objc.WrapAsProtocol("MTLBuffer", value) - objc.Call[objc.Void](a_, objc.Sel("setVertexBuffer:"), po0) -} - -// A buffer that contains vertex data. [Full Topic] +// The offset, in bytes, for the first vertex in the vertex buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553876-vertexbuffer?language=objc -func (a_ AccelerationStructureTriangleGeometryDescriptor) SetVertexBufferObject(valueObject objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setVertexBuffer:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553877-vertexbufferoffset?language=objc +func (a_ AccelerationStructureTriangleGeometryDescriptor) SetVertexBufferOffset(value uint) { + objc.Call[objc.Void](a_, objc.Sel("setVertexBufferOffset:"), value) } diff --git a/macos/metal/argument_descriptor.gen.go b/macos/metal/argument_descriptor.gen.go index beb36bef..482c8717 100644 --- a/macos/metal/argument_descriptor.gen.go +++ b/macos/metal/argument_descriptor.gen.go @@ -18,18 +18,18 @@ type _ArgumentDescriptorClass struct { // An interface definition for the [ArgumentDescriptor] class. type IArgumentDescriptor interface { objc.IObject - Index() uint - SetIndex(value uint) - DataType() DataType - SetDataType(value DataType) - ConstantBlockAlignment() uint - SetConstantBlockAlignment(value uint) ArrayLength() uint SetArrayLength(value uint) - Access() objc.Object - SetAccess(value objc.IObject) + ConstantBlockAlignment() uint + SetConstantBlockAlignment(value uint) TextureType() TextureType SetTextureType(value TextureType) + Access() objc.Object + SetAccess(value objc.IObject) + DataType() DataType + SetDataType(value DataType) + Index() uint + SetIndex(value uint) } // A representation of an argument within an argument buffer. [Full Topic] @@ -80,34 +80,19 @@ func ArgumentDescriptor_ArgumentDescriptor() ArgumentDescriptor { return ArgumentDescriptorClass.ArgumentDescriptor() } -// The index ID of the argument. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915732-index?language=objc -func (a_ ArgumentDescriptor) Index() uint { - rv := objc.Call[uint](a_, objc.Sel("index")) - return rv -} - -// The index ID of the argument. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915732-index?language=objc -func (a_ ArgumentDescriptor) SetIndex(value uint) { - objc.Call[objc.Void](a_, objc.Sel("setIndex:"), value) -} - -// The data type of the argument. [Full Topic] +// The length of an array argument. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915733-datatype?language=objc -func (a_ ArgumentDescriptor) DataType() DataType { - rv := objc.Call[DataType](a_, objc.Sel("dataType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915734-arraylength?language=objc +func (a_ ArgumentDescriptor) ArrayLength() uint { + rv := objc.Call[uint](a_, objc.Sel("arrayLength")) return rv } -// The data type of the argument. [Full Topic] +// The length of an array argument. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915733-datatype?language=objc -func (a_ ArgumentDescriptor) SetDataType(value DataType) { - objc.Call[objc.Void](a_, objc.Sel("setDataType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915734-arraylength?language=objc +func (a_ ArgumentDescriptor) SetArrayLength(value uint) { + objc.Call[objc.Void](a_, objc.Sel("setArrayLength:"), value) } // The alignment of the constant block. [Full Topic] @@ -125,19 +110,19 @@ func (a_ ArgumentDescriptor) SetConstantBlockAlignment(value uint) { objc.Call[objc.Void](a_, objc.Sel("setConstantBlockAlignment:"), value) } -// The length of an array argument. [Full Topic] +// The texture type of a texture argument. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915734-arraylength?language=objc -func (a_ ArgumentDescriptor) ArrayLength() uint { - rv := objc.Call[uint](a_, objc.Sel("arrayLength")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915741-texturetype?language=objc +func (a_ ArgumentDescriptor) TextureType() TextureType { + rv := objc.Call[TextureType](a_, objc.Sel("textureType")) return rv } -// The length of an array argument. [Full Topic] +// The texture type of a texture argument. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915734-arraylength?language=objc -func (a_ ArgumentDescriptor) SetArrayLength(value uint) { - objc.Call[objc.Void](a_, objc.Sel("setArrayLength:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915741-texturetype?language=objc +func (a_ ArgumentDescriptor) SetTextureType(value TextureType) { + objc.Call[objc.Void](a_, objc.Sel("setTextureType:"), value) } // The access permissions of the argument. [Full Topic] @@ -155,17 +140,32 @@ func (a_ ArgumentDescriptor) SetAccess(value objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("setAccess:"), value) } -// The texture type of a texture argument. [Full Topic] +// The data type of the argument. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915741-texturetype?language=objc -func (a_ ArgumentDescriptor) TextureType() TextureType { - rv := objc.Call[TextureType](a_, objc.Sel("textureType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915733-datatype?language=objc +func (a_ ArgumentDescriptor) DataType() DataType { + rv := objc.Call[DataType](a_, objc.Sel("dataType")) return rv } -// The texture type of a texture argument. [Full Topic] +// The data type of the argument. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915741-texturetype?language=objc -func (a_ ArgumentDescriptor) SetTextureType(value TextureType) { - objc.Call[objc.Void](a_, objc.Sel("setTextureType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915733-datatype?language=objc +func (a_ ArgumentDescriptor) SetDataType(value DataType) { + objc.Call[objc.Void](a_, objc.Sel("setDataType:"), value) +} + +// The index ID of the argument. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915732-index?language=objc +func (a_ ArgumentDescriptor) Index() uint { + rv := objc.Call[uint](a_, objc.Sel("index")) + return rv +} + +// The index ID of the argument. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentdescriptor/2915732-index?language=objc +func (a_ ArgumentDescriptor) SetIndex(value uint) { + objc.Call[objc.Void](a_, objc.Sel("setIndex:"), value) } diff --git a/macos/metal/argument_encoder_protocol.gen.go b/macos/metal/argument_encoder_protocol.gen.go index 66785889..df12f28b 100644 --- a/macos/metal/argument_encoder_protocol.gen.go +++ b/macos/metal/argument_encoder_protocol.gen.go @@ -13,109 +13,105 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder?language=objc type PArgumentEncoder interface { - // optional - SetSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) - HasSetSamplerStatesWithRange() bool - - // optional - SetTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) - HasSetTexturesWithRange() bool - - // optional - SetRenderPipelineStatesWithRange(pipelines unsafe.Pointer, range_ foundation.Range) - HasSetRenderPipelineStatesWithRange() bool - - // optional - SetComputePipelineStatesWithRange(pipelines unsafe.Pointer, range_ foundation.Range) - HasSetComputePipelineStatesWithRange() bool - // optional SetSamplerStateAtIndex(sampler SamplerStateObject, index uint) HasSetSamplerStateAtIndex() bool - // optional - SetAccelerationStructureAtIndex(accelerationStructure AccelerationStructureObject, index uint) - HasSetAccelerationStructureAtIndex() bool - // optional SetComputePipelineStateAtIndex(pipeline ComputePipelineStateObject, index uint) HasSetComputePipelineStateAtIndex() bool // optional - ConstantDataAtIndex(index uint) unsafe.Pointer - HasConstantDataAtIndex() bool - - // optional - SetBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) - HasSetBuffersOffsetsWithRange() bool + SetRenderPipelineStatesWithRange(pipelines unsafe.Pointer, range_ foundation.Range) + HasSetRenderPipelineStatesWithRange() bool // optional SetIndirectCommandBufferAtIndex(indirectCommandBuffer IndirectCommandBufferObject, index uint) HasSetIndirectCommandBufferAtIndex() bool // optional - SetIndirectCommandBuffersWithRange(buffers unsafe.Pointer, range_ foundation.Range) - HasSetIndirectCommandBuffersWithRange() bool - - // optional - SetBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) - HasSetBufferOffsetAtIndex() bool + NewArgumentEncoderForBufferAtIndex(index uint) ArgumentEncoderObject + HasNewArgumentEncoderForBufferAtIndex() bool // optional - SetIntersectionFunctionTablesWithRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) - HasSetIntersectionFunctionTablesWithRange() bool + SetBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) + HasSetBuffersOffsetsWithRange() bool // optional SetVisibleFunctionTableAtIndex(visibleFunctionTable VisibleFunctionTableObject, index uint) HasSetVisibleFunctionTableAtIndex() bool + // optional + SetSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) + HasSetSamplerStatesWithRange() bool + + // optional + SetAccelerationStructureAtIndex(accelerationStructure AccelerationStructureObject, index uint) + HasSetAccelerationStructureAtIndex() bool + // optional SetRenderPipelineStateAtIndex(pipeline RenderPipelineStateObject, index uint) HasSetRenderPipelineStateAtIndex() bool + // optional + SetArgumentBufferOffset(argumentBuffer BufferObject, offset uint) + HasSetArgumentBufferOffset() bool + // optional SetVisibleFunctionTablesWithRange(visibleFunctionTables unsafe.Pointer, range_ foundation.Range) HasSetVisibleFunctionTablesWithRange() bool // optional - SetArgumentBufferOffset(argumentBuffer BufferObject, offset uint) - HasSetArgumentBufferOffset() bool + SetTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) + HasSetTexturesWithRange() bool + + // optional + SetComputePipelineStatesWithRange(pipelines unsafe.Pointer, range_ foundation.Range) + HasSetComputePipelineStatesWithRange() bool // optional SetIntersectionFunctionTableAtIndex(intersectionFunctionTable IntersectionFunctionTableObject, index uint) HasSetIntersectionFunctionTableAtIndex() bool // optional - SetArgumentBufferStartOffsetArrayElement(argumentBuffer BufferObject, startOffset uint, arrayElement uint) - HasSetArgumentBufferStartOffsetArrayElement() bool + SetTextureAtIndex(texture TextureObject, index uint) + HasSetTextureAtIndex() bool // optional - NewArgumentEncoderForBufferAtIndex(index uint) ArgumentEncoderObject - HasNewArgumentEncoderForBufferAtIndex() bool + SetIntersectionFunctionTablesWithRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) + HasSetIntersectionFunctionTablesWithRange() bool // optional - SetTextureAtIndex(texture TextureObject, index uint) - HasSetTextureAtIndex() bool + SetBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) + HasSetBufferOffsetAtIndex() bool // optional - Alignment() uint - HasAlignment() bool + SetIndirectCommandBuffersWithRange(buffers unsafe.Pointer, range_ foundation.Range) + HasSetIndirectCommandBuffersWithRange() bool // optional - SetLabel(value string) - HasSetLabel() bool + ConstantDataAtIndex(index uint) unsafe.Pointer + HasConstantDataAtIndex() bool // optional - Label() string - HasLabel() bool + Alignment() uint + HasAlignment() bool + + // optional + Device() DeviceObject + HasDevice() bool // optional EncodedLength() uint HasEncodedLength() bool // optional - Device() DeviceObject - HasDevice() bool + SetLabel(value string) + HasSetLabel() bool + + // optional + Label() string + HasLabel() bool } // ensure impl type implements protocol interface @@ -126,54 +122,6 @@ type ArgumentEncoderObject struct { objc.Object } -func (a_ ArgumentEncoderObject) HasSetSamplerStatesWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setSamplerStates:withRange:")) -} - -// Encodes an array of samplers into the argument buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915778-setsamplerstates?language=objc -func (a_ ArgumentEncoderObject) SetSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](a_, objc.Sel("setSamplerStates:withRange:"), po0, range_) -} - -func (a_ ArgumentEncoderObject) HasSetTexturesWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setTextures:withRange:")) -} - -// Encodes references to an array of textures into the argument buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915786-settextures?language=objc -func (a_ ArgumentEncoderObject) SetTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLTexture", textures) - objc.Call[objc.Void](a_, objc.Sel("setTextures:withRange:"), po0, range_) -} - -func (a_ ArgumentEncoderObject) HasSetRenderPipelineStatesWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setRenderPipelineStates:withRange:")) -} - -// Encodes references to an array of render pipeline states into the argument buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2966536-setrenderpipelinestates?language=objc -func (a_ ArgumentEncoderObject) SetRenderPipelineStatesWithRange(pipelines unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLRenderPipelineState", pipelines) - objc.Call[objc.Void](a_, objc.Sel("setRenderPipelineStates:withRange:"), po0, range_) -} - -func (a_ ArgumentEncoderObject) HasSetComputePipelineStatesWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setComputePipelineStates:withRange:")) -} - -// Encodes references to an array of compute pipeline states into the argument buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2966534-setcomputepipelinestates?language=objc -func (a_ ArgumentEncoderObject) SetComputePipelineStatesWithRange(pipelines unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLComputePipelineState", pipelines) - objc.Call[objc.Void](a_, objc.Sel("setComputePipelineStates:withRange:"), po0, range_) -} - func (a_ ArgumentEncoderObject) HasSetSamplerStateAtIndex() bool { return a_.RespondsToSelector(objc.Sel("setSamplerState:atIndex:")) } @@ -186,18 +134,6 @@ func (a_ ArgumentEncoderObject) SetSamplerStateAtIndex(sampler SamplerStateObjec objc.Call[objc.Void](a_, objc.Sel("setSamplerState:atIndex:"), po0, index) } -func (a_ ArgumentEncoderObject) HasSetAccelerationStructureAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("setAccelerationStructure:atIndex:")) -} - -// Encodes a reference to an acceleration structure into the argument buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/3553920-setaccelerationstructure?language=objc -func (a_ ArgumentEncoderObject) SetAccelerationStructureAtIndex(accelerationStructure AccelerationStructureObject, index uint) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - objc.Call[objc.Void](a_, objc.Sel("setAccelerationStructure:atIndex:"), po0, index) -} - func (a_ ArgumentEncoderObject) HasSetComputePipelineStateAtIndex() bool { return a_.RespondsToSelector(objc.Sel("setComputePipelineState:atIndex:")) } @@ -210,28 +146,16 @@ func (a_ ArgumentEncoderObject) SetComputePipelineStateAtIndex(pipeline ComputeP objc.Call[objc.Void](a_, objc.Sel("setComputePipelineState:atIndex:"), po0, index) } -func (a_ ArgumentEncoderObject) HasConstantDataAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("constantDataAtIndex:")) -} - -// Returns a pointer for an inlined constant data argument in the argument buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915771-constantdataatindex?language=objc -func (a_ ArgumentEncoderObject) ConstantDataAtIndex(index uint) unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](a_, objc.Sel("constantDataAtIndex:"), index) - return rv -} - -func (a_ ArgumentEncoderObject) HasSetBuffersOffsetsWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setBuffers:offsets:withRange:")) +func (a_ ArgumentEncoderObject) HasSetRenderPipelineStatesWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setRenderPipelineStates:withRange:")) } -// Encodes references to an array of buffers into the argument buffer. [Full Topic] +// Encodes references to an array of render pipeline states into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915772-setbuffers?language=objc -func (a_ ArgumentEncoderObject) SetBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffers) - objc.Call[objc.Void](a_, objc.Sel("setBuffers:offsets:withRange:"), po0, offsets, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2966536-setrenderpipelinestates?language=objc +func (a_ ArgumentEncoderObject) SetRenderPipelineStatesWithRange(pipelines unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLRenderPipelineState", pipelines) + objc.Call[objc.Void](a_, objc.Sel("setRenderPipelineStates:withRange:"), po0, range_) } func (a_ ArgumentEncoderObject) HasSetIndirectCommandBufferAtIndex() bool { @@ -246,40 +170,28 @@ func (a_ ArgumentEncoderObject) SetIndirectCommandBufferAtIndex(indirectCommandB objc.Call[objc.Void](a_, objc.Sel("setIndirectCommandBuffer:atIndex:"), po0, index) } -func (a_ ArgumentEncoderObject) HasSetIndirectCommandBuffersWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setIndirectCommandBuffers:withRange:")) -} - -// Encodes an array of indirect command buffers into the argument buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2967411-setindirectcommandbuffers?language=objc -func (a_ ArgumentEncoderObject) SetIndirectCommandBuffersWithRange(buffers unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", buffers) - objc.Call[objc.Void](a_, objc.Sel("setIndirectCommandBuffers:withRange:"), po0, range_) -} - -func (a_ ArgumentEncoderObject) HasSetBufferOffsetAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) +func (a_ ArgumentEncoderObject) HasNewArgumentEncoderForBufferAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("newArgumentEncoderForBufferAtIndex:")) } -// Encodes a reference to a buffer into the argument buffer. [Full Topic] +// Creates a new argument encoder for a nested argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915785-setbuffer?language=objc -func (a_ ArgumentEncoderObject) SetBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](a_, objc.Sel("setBuffer:offset:atIndex:"), po0, offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915783-newargumentencoderforbufferatind?language=objc +func (a_ ArgumentEncoderObject) NewArgumentEncoderForBufferAtIndex(index uint) ArgumentEncoderObject { + rv := objc.Call[ArgumentEncoderObject](a_, objc.Sel("newArgumentEncoderForBufferAtIndex:"), index) + return rv } -func (a_ ArgumentEncoderObject) HasSetIntersectionFunctionTablesWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setIntersectionFunctionTables:withRange:")) +func (a_ ArgumentEncoderObject) HasSetBuffersOffsetsWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setBuffers:offsets:withRange:")) } -// Encodes references to an array of intersection function tables into the argument buffer. [Full Topic] +// Encodes references to an array of buffers into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/3608167-setintersectionfunctiontables?language=objc -func (a_ ArgumentEncoderObject) SetIntersectionFunctionTablesWithRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) - objc.Call[objc.Void](a_, objc.Sel("setIntersectionFunctionTables:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915772-setbuffers?language=objc +func (a_ ArgumentEncoderObject) SetBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffers) + objc.Call[objc.Void](a_, objc.Sel("setBuffers:offsets:withRange:"), po0, offsets, range_) } func (a_ ArgumentEncoderObject) HasSetVisibleFunctionTableAtIndex() bool { @@ -294,6 +206,30 @@ func (a_ ArgumentEncoderObject) SetVisibleFunctionTableAtIndex(visibleFunctionTa objc.Call[objc.Void](a_, objc.Sel("setVisibleFunctionTable:atIndex:"), po0, index) } +func (a_ ArgumentEncoderObject) HasSetSamplerStatesWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setSamplerStates:withRange:")) +} + +// Encodes an array of samplers into the argument buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915778-setsamplerstates?language=objc +func (a_ ArgumentEncoderObject) SetSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) + objc.Call[objc.Void](a_, objc.Sel("setSamplerStates:withRange:"), po0, range_) +} + +func (a_ ArgumentEncoderObject) HasSetAccelerationStructureAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("setAccelerationStructure:atIndex:")) +} + +// Encodes a reference to an acceleration structure into the argument buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/3553920-setaccelerationstructure?language=objc +func (a_ ArgumentEncoderObject) SetAccelerationStructureAtIndex(accelerationStructure AccelerationStructureObject, index uint) { + po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) + objc.Call[objc.Void](a_, objc.Sel("setAccelerationStructure:atIndex:"), po0, index) +} + func (a_ ArgumentEncoderObject) HasSetRenderPipelineStateAtIndex() bool { return a_.RespondsToSelector(objc.Sel("setRenderPipelineState:atIndex:")) } @@ -306,6 +242,18 @@ func (a_ ArgumentEncoderObject) SetRenderPipelineStateAtIndex(pipeline RenderPip objc.Call[objc.Void](a_, objc.Sel("setRenderPipelineState:atIndex:"), po0, index) } +func (a_ ArgumentEncoderObject) HasSetArgumentBufferOffset() bool { + return a_.RespondsToSelector(objc.Sel("setArgumentBuffer:offset:")) +} + +// Specifies the position in a buffer where the encoder writes argument data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915777-setargumentbuffer?language=objc +func (a_ ArgumentEncoderObject) SetArgumentBufferOffset(argumentBuffer BufferObject, offset uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", argumentBuffer) + objc.Call[objc.Void](a_, objc.Sel("setArgumentBuffer:offset:"), po0, offset) +} + func (a_ ArgumentEncoderObject) HasSetVisibleFunctionTablesWithRange() bool { return a_.RespondsToSelector(objc.Sel("setVisibleFunctionTables:withRange:")) } @@ -318,16 +266,28 @@ func (a_ ArgumentEncoderObject) SetVisibleFunctionTablesWithRange(visibleFunctio objc.Call[objc.Void](a_, objc.Sel("setVisibleFunctionTables:withRange:"), po0, range_) } -func (a_ ArgumentEncoderObject) HasSetArgumentBufferOffset() bool { - return a_.RespondsToSelector(objc.Sel("setArgumentBuffer:offset:")) +func (a_ ArgumentEncoderObject) HasSetTexturesWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setTextures:withRange:")) } -// Specifies the position in a buffer where the encoder writes argument data. [Full Topic] +// Encodes references to an array of textures into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915777-setargumentbuffer?language=objc -func (a_ ArgumentEncoderObject) SetArgumentBufferOffset(argumentBuffer BufferObject, offset uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", argumentBuffer) - objc.Call[objc.Void](a_, objc.Sel("setArgumentBuffer:offset:"), po0, offset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915786-settextures?language=objc +func (a_ ArgumentEncoderObject) SetTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLTexture", textures) + objc.Call[objc.Void](a_, objc.Sel("setTextures:withRange:"), po0, range_) +} + +func (a_ ArgumentEncoderObject) HasSetComputePipelineStatesWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setComputePipelineStates:withRange:")) +} + +// Encodes references to an array of compute pipeline states into the argument buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2966534-setcomputepipelinestates?language=objc +func (a_ ArgumentEncoderObject) SetComputePipelineStatesWithRange(pipelines unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLComputePipelineState", pipelines) + objc.Call[objc.Void](a_, objc.Sel("setComputePipelineStates:withRange:"), po0, range_) } func (a_ ArgumentEncoderObject) HasSetIntersectionFunctionTableAtIndex() bool { @@ -342,40 +302,64 @@ func (a_ ArgumentEncoderObject) SetIntersectionFunctionTableAtIndex(intersection objc.Call[objc.Void](a_, objc.Sel("setIntersectionFunctionTable:atIndex:"), po0, index) } -func (a_ ArgumentEncoderObject) HasSetArgumentBufferStartOffsetArrayElement() bool { - return a_.RespondsToSelector(objc.Sel("setArgumentBuffer:startOffset:arrayElement:")) +func (a_ ArgumentEncoderObject) HasSetTextureAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("setTexture:atIndex:")) } -// Specifies an array element within a buffer where the encoder writes argument data. [Full Topic] +// Encodes a reference to a texture into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915780-setargumentbuffer?language=objc -func (a_ ArgumentEncoderObject) SetArgumentBufferStartOffsetArrayElement(argumentBuffer BufferObject, startOffset uint, arrayElement uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", argumentBuffer) - objc.Call[objc.Void](a_, objc.Sel("setArgumentBuffer:startOffset:arrayElement:"), po0, startOffset, arrayElement) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915776-settexture?language=objc +func (a_ ArgumentEncoderObject) SetTextureAtIndex(texture TextureObject, index uint) { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + objc.Call[objc.Void](a_, objc.Sel("setTexture:atIndex:"), po0, index) } -func (a_ ArgumentEncoderObject) HasNewArgumentEncoderForBufferAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("newArgumentEncoderForBufferAtIndex:")) +func (a_ ArgumentEncoderObject) HasSetIntersectionFunctionTablesWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setIntersectionFunctionTables:withRange:")) } -// Creates a new argument encoder for a nested argument buffer. [Full Topic] +// Encodes references to an array of intersection function tables into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915783-newargumentencoderforbufferatind?language=objc -func (a_ ArgumentEncoderObject) NewArgumentEncoderForBufferAtIndex(index uint) ArgumentEncoderObject { - rv := objc.Call[ArgumentEncoderObject](a_, objc.Sel("newArgumentEncoderForBufferAtIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/3608167-setintersectionfunctiontables?language=objc +func (a_ ArgumentEncoderObject) SetIntersectionFunctionTablesWithRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) + objc.Call[objc.Void](a_, objc.Sel("setIntersectionFunctionTables:withRange:"), po0, range_) } -func (a_ ArgumentEncoderObject) HasSetTextureAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("setTexture:atIndex:")) +func (a_ ArgumentEncoderObject) HasSetBufferOffsetAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) } -// Encodes a reference to a texture into the argument buffer. [Full Topic] +// Encodes a reference to a buffer into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915776-settexture?language=objc -func (a_ ArgumentEncoderObject) SetTextureAtIndex(texture TextureObject, index uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](a_, objc.Sel("setTexture:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915785-setbuffer?language=objc +func (a_ ArgumentEncoderObject) SetBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](a_, objc.Sel("setBuffer:offset:atIndex:"), po0, offset, index) +} + +func (a_ ArgumentEncoderObject) HasSetIndirectCommandBuffersWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setIndirectCommandBuffers:withRange:")) +} + +// Encodes an array of indirect command buffers into the argument buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2967411-setindirectcommandbuffers?language=objc +func (a_ ArgumentEncoderObject) SetIndirectCommandBuffersWithRange(buffers unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", buffers) + objc.Call[objc.Void](a_, objc.Sel("setIndirectCommandBuffers:withRange:"), po0, range_) +} + +func (a_ ArgumentEncoderObject) HasConstantDataAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("constantDataAtIndex:")) +} + +// Returns a pointer for an inlined constant data argument in the argument buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915771-constantdataatindex?language=objc +func (a_ ArgumentEncoderObject) ConstantDataAtIndex(index uint) unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](a_, objc.Sel("constantDataAtIndex:"), index) + return rv } func (a_ ArgumentEncoderObject) HasAlignment() bool { @@ -390,26 +374,15 @@ func (a_ ArgumentEncoderObject) Alignment() uint { return rv } -func (a_ ArgumentEncoderObject) HasSetLabel() bool { - return a_.RespondsToSelector(objc.Sel("setLabel:")) -} - -// A string that identifies the argument buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915773-label?language=objc -func (a_ ArgumentEncoderObject) SetLabel(value string) { - objc.Call[objc.Void](a_, objc.Sel("setLabel:"), value) -} - -func (a_ ArgumentEncoderObject) HasLabel() bool { - return a_.RespondsToSelector(objc.Sel("label")) +func (a_ ArgumentEncoderObject) HasDevice() bool { + return a_.RespondsToSelector(objc.Sel("device")) } -// A string that identifies the argument buffer. [Full Topic] +// The device object that created the argument encoder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915773-label?language=objc -func (a_ ArgumentEncoderObject) Label() string { - rv := objc.Call[string](a_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915779-device?language=objc +func (a_ ArgumentEncoderObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](a_, objc.Sel("device")) return rv } @@ -425,14 +398,25 @@ func (a_ ArgumentEncoderObject) EncodedLength() uint { return rv } -func (a_ ArgumentEncoderObject) HasDevice() bool { - return a_.RespondsToSelector(objc.Sel("device")) +func (a_ ArgumentEncoderObject) HasSetLabel() bool { + return a_.RespondsToSelector(objc.Sel("setLabel:")) } -// The device object that created the argument encoder. [Full Topic] +// A string that identifies the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915779-device?language=objc -func (a_ ArgumentEncoderObject) Device() DeviceObject { - rv := objc.Call[DeviceObject](a_, objc.Sel("device")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915773-label?language=objc +func (a_ ArgumentEncoderObject) SetLabel(value string) { + objc.Call[objc.Void](a_, objc.Sel("setLabel:"), value) +} + +func (a_ ArgumentEncoderObject) HasLabel() bool { + return a_.RespondsToSelector(objc.Sel("label")) +} + +// A string that identifies the argument buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915773-label?language=objc +func (a_ ArgumentEncoderObject) Label() string { + rv := objc.Call[string](a_, objc.Sel("label")) return rv } diff --git a/macos/metal/array_type.gen.go b/macos/metal/array_type.gen.go index 6a166eef..4d307ead 100644 --- a/macos/metal/array_type.gen.go +++ b/macos/metal/array_type.gen.go @@ -18,14 +18,14 @@ type _ArrayTypeClass struct { // An interface definition for the [ArrayType] class. type IArrayType interface { IType - ElementStructType() StructType + ElementPointerType() PointerType ElementArrayType() ArrayType + ElementStructType() StructType ElementTextureReferenceType() TextureReferenceType - ElementPointerType() PointerType - Stride() uint - ElementType() DataType ArgumentIndexStride() uint ArrayLength() uint + Stride() uint + ElementType() DataType } // A description of an array. [Full Topic] @@ -61,11 +61,11 @@ func (a_ ArrayType) Init() ArrayType { return rv } -// Provides a description of the underlying struct type when an array holds structs as its elements. [Full Topic] +// Provides a description of the underlying pointer type when an array holds pointers as its elements. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlarraytype/1461901-elementstructtype?language=objc -func (a_ ArrayType) ElementStructType() StructType { - rv := objc.Call[StructType](a_, objc.Sel("elementStructType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlarraytype/2915749-elementpointertype?language=objc +func (a_ ArrayType) ElementPointerType() PointerType { + rv := objc.Call[PointerType](a_, objc.Sel("elementPointerType")) return rv } @@ -77,6 +77,14 @@ func (a_ ArrayType) ElementArrayType() ArrayType { return rv } +// Provides a description of the underlying struct type when an array holds structs as its elements. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlarraytype/1461901-elementstructtype?language=objc +func (a_ ArrayType) ElementStructType() StructType { + rv := objc.Call[StructType](a_, objc.Sel("elementStructType")) + return rv +} + // Provides a description of the underlying texture type when an array holds textures as its elements. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlarraytype/2915750-elementtexturereferencetype?language=objc @@ -85,11 +93,19 @@ func (a_ ArrayType) ElementTextureReferenceType() TextureReferenceType { return rv } -// Provides a description of the underlying pointer type when an array holds pointers as its elements. [Full Topic] +// The stride, in bytes, between argument indices. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlarraytype/2915749-elementpointertype?language=objc -func (a_ ArrayType) ElementPointerType() PointerType { - rv := objc.Call[PointerType](a_, objc.Sel("elementPointerType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlarraytype/2915752-argumentindexstride?language=objc +func (a_ ArrayType) ArgumentIndexStride() uint { + rv := objc.Call[uint](a_, objc.Sel("argumentIndexStride")) + return rv +} + +// The number of elements in the array. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlarraytype/1462043-arraylength?language=objc +func (a_ ArrayType) ArrayLength() uint { + rv := objc.Call[uint](a_, objc.Sel("arrayLength")) return rv } @@ -108,19 +124,3 @@ func (a_ ArrayType) ElementType() DataType { rv := objc.Call[DataType](a_, objc.Sel("elementType")) return rv } - -// The stride, in bytes, between argument indices. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlarraytype/2915752-argumentindexstride?language=objc -func (a_ ArrayType) ArgumentIndexStride() uint { - rv := objc.Call[uint](a_, objc.Sel("argumentIndexStride")) - return rv -} - -// The number of elements in the array. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlarraytype/1462043-arraylength?language=objc -func (a_ ArrayType) ArrayLength() uint { - rv := objc.Call[uint](a_, objc.Sel("arrayLength")) - return rv -} diff --git a/macos/metal/attribute.gen.go b/macos/metal/attribute.gen.go index 8a61b215..a5ffee39 100644 --- a/macos/metal/attribute.gen.go +++ b/macos/metal/attribute.gen.go @@ -18,12 +18,12 @@ type _AttributeClass struct { // An interface definition for the [Attribute] class. type IAttribute interface { objc.IObject - AttributeIndex() uint - IsPatchData() bool - IsPatchControlPointData() bool Name() string IsActive() bool + IsPatchControlPointData() bool + IsPatchData() bool AttributeType() DataType + AttributeIndex() uint } // An object that describes an attribute defined in the stage-in argument for a shader. [Full Topic] @@ -59,19 +59,19 @@ func (a_ Attribute) Init() Attribute { return rv } -// The index of the attribute, as declared in Metal shader source code. [Full Topic] +// The name of the attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattribute/2097158-attributeindex?language=objc -func (a_ Attribute) AttributeIndex() uint { - rv := objc.Call[uint](a_, objc.Sel("attributeIndex")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattribute/2097161-name?language=objc +func (a_ Attribute) Name() string { + rv := objc.Call[string](a_, objc.Sel("name")) return rv } -// A Boolean value that indicates whether the attribute represents tessellation patch data. [Full Topic] +// A Boolean value that indicates whether the attribute is active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattribute/2097157-patchdata?language=objc -func (a_ Attribute) IsPatchData() bool { - rv := objc.Call[bool](a_, objc.Sel("isPatchData")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattribute/2097160-active?language=objc +func (a_ Attribute) IsActive() bool { + rv := objc.Call[bool](a_, objc.Sel("isActive")) return rv } @@ -83,19 +83,11 @@ func (a_ Attribute) IsPatchControlPointData() bool { return rv } -// The name of the attribute. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattribute/2097161-name?language=objc -func (a_ Attribute) Name() string { - rv := objc.Call[string](a_, objc.Sel("name")) - return rv -} - -// A Boolean value that indicates whether the attribute is active. [Full Topic] +// A Boolean value that indicates whether the attribute represents tessellation patch data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattribute/2097160-active?language=objc -func (a_ Attribute) IsActive() bool { - rv := objc.Call[bool](a_, objc.Sel("isActive")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattribute/2097157-patchdata?language=objc +func (a_ Attribute) IsPatchData() bool { + rv := objc.Call[bool](a_, objc.Sel("isPatchData")) return rv } @@ -106,3 +98,11 @@ func (a_ Attribute) AttributeType() DataType { rv := objc.Call[DataType](a_, objc.Sel("attributeType")) return rv } + +// The index of the attribute, as declared in Metal shader source code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattribute/2097158-attributeindex?language=objc +func (a_ Attribute) AttributeIndex() uint { + rv := objc.Call[uint](a_, objc.Sel("attributeIndex")) + return rv +} diff --git a/macos/metal/attribute_descriptor.gen.go b/macos/metal/attribute_descriptor.gen.go index 8c080a2f..301c3e54 100644 --- a/macos/metal/attribute_descriptor.gen.go +++ b/macos/metal/attribute_descriptor.gen.go @@ -18,12 +18,12 @@ type _AttributeDescriptorClass struct { // An interface definition for the [AttributeDescriptor] class. type IAttributeDescriptor interface { objc.IObject - Format() AttributeFormat - SetFormat(value AttributeFormat) BufferIndex() uint SetBufferIndex(value uint) Offset() uint SetOffset(value uint) + Format() AttributeFormat + SetFormat(value AttributeFormat) } // An object that describes an argument's format and where its data is in memory. [Full Topic] @@ -59,21 +59,6 @@ func (a_ AttributeDescriptor) Init() AttributeDescriptor { return rv } -// The format of the attribute's data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattributedescriptor/2097194-format?language=objc -func (a_ AttributeDescriptor) Format() AttributeFormat { - rv := objc.Call[AttributeFormat](a_, objc.Sel("format")) - return rv -} - -// The format of the attribute's data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattributedescriptor/2097194-format?language=objc -func (a_ AttributeDescriptor) SetFormat(value AttributeFormat) { - objc.Call[objc.Void](a_, objc.Sel("setFormat:"), value) -} - // The index in the argument table for the buffer that contains the data for the attribute. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlattributedescriptor/2097218-bufferindex?language=objc @@ -103,3 +88,18 @@ func (a_ AttributeDescriptor) Offset() uint { func (a_ AttributeDescriptor) SetOffset(value uint) { objc.Call[objc.Void](a_, objc.Sel("setOffset:"), value) } + +// The format of the attribute's data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattributedescriptor/2097194-format?language=objc +func (a_ AttributeDescriptor) Format() AttributeFormat { + rv := objc.Call[AttributeFormat](a_, objc.Sel("format")) + return rv +} + +// The format of the attribute's data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattributedescriptor/2097194-format?language=objc +func (a_ AttributeDescriptor) SetFormat(value AttributeFormat) { + objc.Call[objc.Void](a_, objc.Sel("setFormat:"), value) +} diff --git a/macos/metal/attribute_descriptor_array.gen.go b/macos/metal/attribute_descriptor_array.gen.go index 0832127f..84dbf4de 100644 --- a/macos/metal/attribute_descriptor_array.gen.go +++ b/macos/metal/attribute_descriptor_array.gen.go @@ -18,8 +18,8 @@ type _AttributeDescriptorArrayClass struct { // An interface definition for the [AttributeDescriptorArray] class. type IAttributeDescriptorArray interface { objc.IObject - SetObjectAtIndexedSubscript(attributeDesc IAttributeDescriptor, index uint) ObjectAtIndexedSubscript(index uint) AttributeDescriptor + SetObjectAtIndexedSubscript(attributeDesc IAttributeDescriptor, index uint) } // An array of attribute descriptor objects. [Full Topic] @@ -55,13 +55,6 @@ func (a_ AttributeDescriptorArray) Init() AttributeDescriptorArray { return rv } -// Sets state for the specified attribute. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattributedescriptorarray/2097293-setobject?language=objc -func (a_ AttributeDescriptorArray) SetObjectAtIndexedSubscript(attributeDesc IAttributeDescriptor, index uint) { - objc.Call[objc.Void](a_, objc.Sel("setObject:atIndexedSubscript:"), attributeDesc, index) -} - // Returns the state of the specified attribute. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlattributedescriptorarray/2097215-objectatindexedsubscript?language=objc @@ -69,3 +62,10 @@ func (a_ AttributeDescriptorArray) ObjectAtIndexedSubscript(index uint) Attribut rv := objc.Call[AttributeDescriptor](a_, objc.Sel("objectAtIndexedSubscript:"), index) return rv } + +// Sets state for the specified attribute. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattributedescriptorarray/2097293-setobject?language=objc +func (a_ AttributeDescriptorArray) SetObjectAtIndexedSubscript(attributeDesc IAttributeDescriptor, index uint) { + objc.Call[objc.Void](a_, objc.Sel("setObject:atIndexedSubscript:"), attributeDesc, index) +} diff --git a/macos/metal/binary_archive_protocol.gen.go b/macos/metal/binary_archive_protocol.gen.go index 4343b9a0..56314a6b 100644 --- a/macos/metal/binary_archive_protocol.gen.go +++ b/macos/metal/binary_archive_protocol.gen.go @@ -14,12 +14,8 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive?language=objc type PBinaryArchive interface { // optional - SerializeToURLError(url foundation.URL, error unsafe.Pointer) bool - HasSerializeToURLError() bool - - // optional - AddTileRenderPipelineFunctionsWithDescriptorError(descriptor TileRenderPipelineDescriptor, error unsafe.Pointer) bool - HasAddTileRenderPipelineFunctionsWithDescriptorError() bool + AddFunctionWithDescriptorLibraryError(descriptor FunctionDescriptor, library LibraryObject, error unsafe.Pointer) bool + HasAddFunctionWithDescriptorLibraryError() bool // optional AddComputePipelineFunctionsWithDescriptorError(descriptor ComputePipelineDescriptor, error unsafe.Pointer) bool @@ -30,8 +26,12 @@ type PBinaryArchive interface { HasAddRenderPipelineFunctionsWithDescriptorError() bool // optional - AddFunctionWithDescriptorLibraryError(descriptor FunctionDescriptor, library LibraryObject, error unsafe.Pointer) bool - HasAddFunctionWithDescriptorLibraryError() bool + AddTileRenderPipelineFunctionsWithDescriptorError(descriptor TileRenderPipelineDescriptor, error unsafe.Pointer) bool + HasAddTileRenderPipelineFunctionsWithDescriptorError() bool + + // optional + SerializeToURLError(url foundation.URL, error unsafe.Pointer) bool + HasSerializeToURLError() bool // optional Device() DeviceObject @@ -54,27 +54,16 @@ type BinaryArchiveObject struct { objc.Object } -func (b_ BinaryArchiveObject) HasSerializeToURLError() bool { - return b_.RespondsToSelector(objc.Sel("serializeToURL:error:")) -} - -// Writes the contents of the archive to a file. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3553928-serializetourl?language=objc -func (b_ BinaryArchiveObject) SerializeToURLError(url foundation.URL, error unsafe.Pointer) bool { - rv := objc.Call[bool](b_, objc.Sel("serializeToURL:error:"), url, error) - return rv -} - -func (b_ BinaryArchiveObject) HasAddTileRenderPipelineFunctionsWithDescriptorError() bool { - return b_.RespondsToSelector(objc.Sel("addTileRenderPipelineFunctionsWithDescriptor:error:")) +func (b_ BinaryArchiveObject) HasAddFunctionWithDescriptorLibraryError() bool { + return b_.RespondsToSelector(objc.Sel("addFunctionWithDescriptor:library:error:")) } -// Adds a description of a tile renderer pipeline to the archive. [Full Topic] +// Adds a description of a function to the archive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3564419-addtilerenderpipelinefunctionswi?language=objc -func (b_ BinaryArchiveObject) AddTileRenderPipelineFunctionsWithDescriptorError(descriptor TileRenderPipelineDescriptor, error unsafe.Pointer) bool { - rv := objc.Call[bool](b_, objc.Sel("addTileRenderPipelineFunctionsWithDescriptor:error:"), descriptor, error) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3750523-addfunctionwithdescriptor?language=objc +func (b_ BinaryArchiveObject) AddFunctionWithDescriptorLibraryError(descriptor FunctionDescriptor, library LibraryObject, error unsafe.Pointer) bool { + po1 := objc.WrapAsProtocol("MTLLibrary", library) + rv := objc.Call[bool](b_, objc.Sel("addFunctionWithDescriptor:library:error:"), descriptor, po1, error) return rv } @@ -102,16 +91,27 @@ func (b_ BinaryArchiveObject) AddRenderPipelineFunctionsWithDescriptorError(desc return rv } -func (b_ BinaryArchiveObject) HasAddFunctionWithDescriptorLibraryError() bool { - return b_.RespondsToSelector(objc.Sel("addFunctionWithDescriptor:library:error:")) +func (b_ BinaryArchiveObject) HasAddTileRenderPipelineFunctionsWithDescriptorError() bool { + return b_.RespondsToSelector(objc.Sel("addTileRenderPipelineFunctionsWithDescriptor:error:")) } -// Adds a description of a function to the archive. [Full Topic] +// Adds a description of a tile renderer pipeline to the archive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3750523-addfunctionwithdescriptor?language=objc -func (b_ BinaryArchiveObject) AddFunctionWithDescriptorLibraryError(descriptor FunctionDescriptor, library LibraryObject, error unsafe.Pointer) bool { - po1 := objc.WrapAsProtocol("MTLLibrary", library) - rv := objc.Call[bool](b_, objc.Sel("addFunctionWithDescriptor:library:error:"), descriptor, po1, error) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3564419-addtilerenderpipelinefunctionswi?language=objc +func (b_ BinaryArchiveObject) AddTileRenderPipelineFunctionsWithDescriptorError(descriptor TileRenderPipelineDescriptor, error unsafe.Pointer) bool { + rv := objc.Call[bool](b_, objc.Sel("addTileRenderPipelineFunctionsWithDescriptor:error:"), descriptor, error) + return rv +} + +func (b_ BinaryArchiveObject) HasSerializeToURLError() bool { + return b_.RespondsToSelector(objc.Sel("serializeToURL:error:")) +} + +// Writes the contents of the archive to a file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3553928-serializetourl?language=objc +func (b_ BinaryArchiveObject) SerializeToURLError(url foundation.URL, error unsafe.Pointer) bool { + rv := objc.Call[bool](b_, objc.Sel("serializeToURL:error:"), url, error) return rv } diff --git a/macos/metal/blit_command_encoder_protocol.gen.go b/macos/metal/blit_command_encoder_protocol.gen.go index 8f070822..5f32d9e2 100644 --- a/macos/metal/blit_command_encoder_protocol.gen.go +++ b/macos/metal/blit_command_encoder_protocol.gen.go @@ -12,104 +12,72 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder?language=objc type PBlitCommandEncoder interface { // optional - ResetCommandsInBufferWithRange(buffer IndirectCommandBufferObject, range_ foundation.Range) - HasResetCommandsInBufferWithRange() bool - - // optional - CopyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin(sourceBuffer BufferObject, sourceOffset uint, sourceBytesPerRow uint, sourceBytesPerImage uint, sourceSize Size, destinationTexture TextureObject, destinationSlice uint, destinationLevel uint, destinationOrigin Origin) - HasCopyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin() bool - - // optional - WaitForFence(fence FenceObject) - HasWaitForFence() bool - - // optional - CopyFromTextureSourceSliceSourceLevelToTextureDestinationSliceDestinationLevelSliceCountLevelCount(sourceTexture TextureObject, sourceSlice uint, sourceLevel uint, destinationTexture TextureObject, destinationSlice uint, destinationLevel uint, sliceCount uint, levelCount uint) - HasCopyFromTextureSourceSliceSourceLevelToTextureDestinationSliceDestinationLevelSliceCountLevelCount() bool - - // optional - OptimizeContentsForGPUAccessSliceLevel(texture TextureObject, slice uint, level uint) - HasOptimizeContentsForGPUAccessSliceLevel() bool + CopyIndirectCommandBufferSourceRangeDestinationDestinationIndex(source IndirectCommandBufferObject, sourceRange foundation.Range, destination IndirectCommandBufferObject, destinationIndex uint) + HasCopyIndirectCommandBufferSourceRangeDestinationDestinationIndex() bool // optional - OptimizeContentsForCPUAccess(texture TextureObject) - HasOptimizeContentsForCPUAccess() bool + SynchronizeTextureSliceLevel(texture TextureObject, slice uint, level uint) + HasSynchronizeTextureSliceLevel() bool // optional - CopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImageOptions(sourceTexture TextureObject, sourceSlice uint, sourceLevel uint, sourceOrigin Origin, sourceSize Size, destinationBuffer BufferObject, destinationOffset uint, destinationBytesPerRow uint, destinationBytesPerImage uint, options BlitOption) - HasCopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImageOptions() bool + ResolveCountersInRangeDestinationBufferDestinationOffset(sampleBuffer CounterSampleBufferObject, range_ foundation.Range, destinationBuffer BufferObject, destinationOffset uint) + HasResolveCountersInRangeDestinationBufferDestinationOffset() bool // optional - OptimizeIndirectCommandBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, range_ foundation.Range) - HasOptimizeIndirectCommandBufferWithRange() bool + OptimizeContentsForGPUAccess(texture TextureObject) + HasOptimizeContentsForGPUAccess() bool // optional SynchronizeResource(resource ResourceObject) HasSynchronizeResource() bool // optional - SynchronizeTextureSliceLevel(texture TextureObject, slice uint, level uint) - HasSynchronizeTextureSliceLevel() bool - - // optional - GetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset(texture TextureObject, region Region, mipLevel uint, slice uint, resetCounters bool, countersBuffer BufferObject, countersBufferOffset uint) - HasGetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset() bool + SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) + HasSampleCountersInBufferAtSampleIndexWithBarrier() bool // optional - OptimizeContentsForCPUAccessSliceLevel(texture TextureObject, slice uint, level uint) - HasOptimizeContentsForCPUAccessSliceLevel() bool + ResetTextureAccessCountersRegionMipLevelSlice(texture TextureObject, region Region, mipLevel uint, slice uint) + HasResetTextureAccessCountersRegionMipLevelSlice() bool // optional - CopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImage(sourceTexture TextureObject, sourceSlice uint, sourceLevel uint, sourceOrigin Origin, sourceSize Size, destinationBuffer BufferObject, destinationOffset uint, destinationBytesPerRow uint, destinationBytesPerImage uint) - HasCopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImage() bool + CopyFromBufferSourceOffsetToBufferDestinationOffsetSize(sourceBuffer BufferObject, sourceOffset uint, destinationBuffer BufferObject, destinationOffset uint, size uint) + HasCopyFromBufferSourceOffsetToBufferDestinationOffsetSize() bool // optional - CopyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOriginOptions(sourceBuffer BufferObject, sourceOffset uint, sourceBytesPerRow uint, sourceBytesPerImage uint, sourceSize Size, destinationTexture TextureObject, destinationSlice uint, destinationLevel uint, destinationOrigin Origin, options BlitOption) - HasCopyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOriginOptions() bool + FillBufferRangeValue(buffer BufferObject, range_ foundation.Range, value uint8) + HasFillBufferRangeValue() bool // optional - UpdateFence(fence FenceObject) - HasUpdateFence() bool + OptimizeContentsForCPUAccess(texture TextureObject) + HasOptimizeContentsForCPUAccess() bool // optional - CopyIndirectCommandBufferSourceRangeDestinationDestinationIndex(source IndirectCommandBufferObject, sourceRange foundation.Range, destination IndirectCommandBufferObject, destinationIndex uint) - HasCopyIndirectCommandBufferSourceRangeDestinationDestinationIndex() bool + OptimizeIndirectCommandBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, range_ foundation.Range) + HasOptimizeIndirectCommandBufferWithRange() bool // optional - SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) - HasSampleCountersInBufferAtSampleIndexWithBarrier() bool + ResetCommandsInBufferWithRange(buffer IndirectCommandBufferObject, range_ foundation.Range) + HasResetCommandsInBufferWithRange() bool // optional - FillBufferRangeValue(buffer BufferObject, range_ foundation.Range, value uint8) - HasFillBufferRangeValue() bool + GetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset(texture TextureObject, region Region, mipLevel uint, slice uint, resetCounters bool, countersBuffer BufferObject, countersBufferOffset uint) + HasGetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset() bool // optional GenerateMipmapsForTexture(texture TextureObject) HasGenerateMipmapsForTexture() bool // optional - CopyFromTextureToTexture(sourceTexture TextureObject, destinationTexture TextureObject) - HasCopyFromTextureToTexture() bool - - // optional - CopyFromBufferSourceOffsetToBufferDestinationOffsetSize(sourceBuffer BufferObject, sourceOffset uint, destinationBuffer BufferObject, destinationOffset uint, size uint) - HasCopyFromBufferSourceOffsetToBufferDestinationOffsetSize() bool - - // optional - ResetTextureAccessCountersRegionMipLevelSlice(texture TextureObject, region Region, mipLevel uint, slice uint) - HasResetTextureAccessCountersRegionMipLevelSlice() bool - - // optional - CopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin(sourceTexture TextureObject, sourceSlice uint, sourceLevel uint, sourceOrigin Origin, sourceSize Size, destinationTexture TextureObject, destinationSlice uint, destinationLevel uint, destinationOrigin Origin) - HasCopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin() bool + UpdateFence(fence FenceObject) + HasUpdateFence() bool // optional - OptimizeContentsForGPUAccess(texture TextureObject) - HasOptimizeContentsForGPUAccess() bool + CopyFromTextureToTexture(sourceTexture TextureObject, destinationTexture TextureObject) + HasCopyFromTextureToTexture() bool // optional - ResolveCountersInRangeDestinationBufferDestinationOffset(sampleBuffer CounterSampleBufferObject, range_ foundation.Range, destinationBuffer BufferObject, destinationOffset uint) - HasResolveCountersInRangeDestinationBufferDestinationOffset() bool + WaitForFence(fence FenceObject) + HasWaitForFence() bool } // ensure impl type implements protocol interface @@ -120,103 +88,54 @@ type BlitCommandEncoderObject struct { objc.Object } -func (b_ BlitCommandEncoderObject) HasResetCommandsInBufferWithRange() bool { - return b_.RespondsToSelector(objc.Sel("resetCommandsInBuffer:withRange:")) -} - -// Encodes a command that resets a range of commands in an indirect command buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2967414-resetcommandsinbuffer?language=objc -func (b_ BlitCommandEncoderObject) ResetCommandsInBufferWithRange(buffer IndirectCommandBufferObject, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", buffer) - objc.Call[objc.Void](b_, objc.Sel("resetCommandsInBuffer:withRange:"), po0, range_) -} - -func (b_ BlitCommandEncoderObject) HasCopyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin() bool { - return b_.RespondsToSelector(objc.Sel("copyFromBuffer:sourceOffset:sourceBytesPerRow:sourceBytesPerImage:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:")) -} - -// Encodes a command to copy image data from a source buffer into a destination texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400752-copyfrombuffer?language=objc -func (b_ BlitCommandEncoderObject) CopyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin(sourceBuffer BufferObject, sourceOffset uint, sourceBytesPerRow uint, sourceBytesPerImage uint, sourceSize Size, destinationTexture TextureObject, destinationSlice uint, destinationLevel uint, destinationOrigin Origin) { - po0 := objc.WrapAsProtocol("MTLBuffer", sourceBuffer) - po5 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - objc.Call[objc.Void](b_, objc.Sel("copyFromBuffer:sourceOffset:sourceBytesPerRow:sourceBytesPerImage:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:"), po0, sourceOffset, sourceBytesPerRow, sourceBytesPerImage, sourceSize, po5, destinationSlice, destinationLevel, destinationOrigin) -} - -func (b_ BlitCommandEncoderObject) HasWaitForFence() bool { - return b_.RespondsToSelector(objc.Sel("waitForFence:")) -} - -// Encodes a command that instructs the GPU to wait until a pass updates a fence. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1649358-waitforfence?language=objc -func (b_ BlitCommandEncoderObject) WaitForFence(fence FenceObject) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](b_, objc.Sel("waitForFence:"), po0) -} - -func (b_ BlitCommandEncoderObject) HasCopyFromTextureSourceSliceSourceLevelToTextureDestinationSliceDestinationLevelSliceCountLevelCount() bool { - return b_.RespondsToSelector(objc.Sel("copyFromTexture:sourceSlice:sourceLevel:toTexture:destinationSlice:destinationLevel:sliceCount:levelCount:")) -} - -// Encodes a command that copies slices of a texture to another texture’s slices. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3081674-copyfromtexture?language=objc -func (b_ BlitCommandEncoderObject) CopyFromTextureSourceSliceSourceLevelToTextureDestinationSliceDestinationLevelSliceCountLevelCount(sourceTexture TextureObject, sourceSlice uint, sourceLevel uint, destinationTexture TextureObject, destinationSlice uint, destinationLevel uint, sliceCount uint, levelCount uint) { - po0 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po3 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - objc.Call[objc.Void](b_, objc.Sel("copyFromTexture:sourceSlice:sourceLevel:toTexture:destinationSlice:destinationLevel:sliceCount:levelCount:"), po0, sourceSlice, sourceLevel, po3, destinationSlice, destinationLevel, sliceCount, levelCount) -} - -func (b_ BlitCommandEncoderObject) HasOptimizeContentsForGPUAccessSliceLevel() bool { - return b_.RespondsToSelector(objc.Sel("optimizeContentsForGPUAccess:slice:level:")) +func (b_ BlitCommandEncoderObject) HasCopyIndirectCommandBufferSourceRangeDestinationDestinationIndex() bool { + return b_.RespondsToSelector(objc.Sel("copyIndirectCommandBuffer:sourceRange:destination:destinationIndex:")) } -// Encodes a command that improves the performance of the GPU’s accesses to a specific portion of a texture. [Full Topic] +// Encodes a command that copies commands from one indirect command buffer into another. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2966540-optimizecontentsforgpuaccess?language=objc -func (b_ BlitCommandEncoderObject) OptimizeContentsForGPUAccessSliceLevel(texture TextureObject, slice uint, level uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](b_, objc.Sel("optimizeContentsForGPUAccess:slice:level:"), po0, slice, level) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2967412-copyindirectcommandbuffer?language=objc +func (b_ BlitCommandEncoderObject) CopyIndirectCommandBufferSourceRangeDestinationDestinationIndex(source IndirectCommandBufferObject, sourceRange foundation.Range, destination IndirectCommandBufferObject, destinationIndex uint) { + po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", source) + po2 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", destination) + objc.Call[objc.Void](b_, objc.Sel("copyIndirectCommandBuffer:sourceRange:destination:destinationIndex:"), po0, sourceRange, po2, destinationIndex) } -func (b_ BlitCommandEncoderObject) HasOptimizeContentsForCPUAccess() bool { - return b_.RespondsToSelector(objc.Sel("optimizeContentsForCPUAccess:")) +func (b_ BlitCommandEncoderObject) HasSynchronizeTextureSliceLevel() bool { + return b_.RespondsToSelector(objc.Sel("synchronizeTexture:slice:level:")) } -// Encodes a command that improves the performance of the CPU’s accesses to a texture. [Full Topic] +// Encodes a command that synchronizes a part of the CPU’s copy of a texture so that it matches the GPU’s copy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2966537-optimizecontentsforcpuaccess?language=objc -func (b_ BlitCommandEncoderObject) OptimizeContentsForCPUAccess(texture TextureObject) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400757-synchronizetexture?language=objc +func (b_ BlitCommandEncoderObject) SynchronizeTextureSliceLevel(texture TextureObject, slice uint, level uint) { po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](b_, objc.Sel("optimizeContentsForCPUAccess:"), po0) + objc.Call[objc.Void](b_, objc.Sel("synchronizeTexture:slice:level:"), po0, slice, level) } -func (b_ BlitCommandEncoderObject) HasCopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImageOptions() bool { - return b_.RespondsToSelector(objc.Sel("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:options:")) +func (b_ BlitCommandEncoderObject) HasResolveCountersInRangeDestinationBufferDestinationOffset() bool { + return b_.RespondsToSelector(objc.Sel("resolveCounters:inRange:destinationBuffer:destinationOffset:")) } -// Encodes a command that copies image data from a texture slice to a buffer, and provides options for special texture formats. [Full Topic] +// Encodes a command that resolves the data from the samples in a sample counter buffer and stores the results into a buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400756-copyfromtexture?language=objc -func (b_ BlitCommandEncoderObject) CopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImageOptions(sourceTexture TextureObject, sourceSlice uint, sourceLevel uint, sourceOrigin Origin, sourceSize Size, destinationBuffer BufferObject, destinationOffset uint, destinationBytesPerRow uint, destinationBytesPerImage uint, options BlitOption) { - po0 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po5 := objc.WrapAsProtocol("MTLBuffer", destinationBuffer) - objc.Call[objc.Void](b_, objc.Sel("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:options:"), po0, sourceSlice, sourceLevel, sourceOrigin, sourceSize, po5, destinationOffset, destinationBytesPerRow, destinationBytesPerImage, options) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3194347-resolvecounters?language=objc +func (b_ BlitCommandEncoderObject) ResolveCountersInRangeDestinationBufferDestinationOffset(sampleBuffer CounterSampleBufferObject, range_ foundation.Range, destinationBuffer BufferObject, destinationOffset uint) { + po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) + po2 := objc.WrapAsProtocol("MTLBuffer", destinationBuffer) + objc.Call[objc.Void](b_, objc.Sel("resolveCounters:inRange:destinationBuffer:destinationOffset:"), po0, range_, po2, destinationOffset) } -func (b_ BlitCommandEncoderObject) HasOptimizeIndirectCommandBufferWithRange() bool { - return b_.RespondsToSelector(objc.Sel("optimizeIndirectCommandBuffer:withRange:")) +func (b_ BlitCommandEncoderObject) HasOptimizeContentsForGPUAccess() bool { + return b_.RespondsToSelector(objc.Sel("optimizeContentsForGPUAccess:")) } -// Encodes a command that can improve the performance of a range of commands within an indirect command buffer. [Full Topic] +// Encodes a command that improves the performance of the GPU’s accesses to a texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2967413-optimizeindirectcommandbuffer?language=objc -func (b_ BlitCommandEncoderObject) OptimizeIndirectCommandBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", indirectCommandBuffer) - objc.Call[objc.Void](b_, objc.Sel("optimizeIndirectCommandBuffer:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2966539-optimizecontentsforgpuaccess?language=objc +func (b_ BlitCommandEncoderObject) OptimizeContentsForGPUAccess(texture TextureObject) { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + objc.Call[objc.Void](b_, objc.Sel("optimizeContentsForGPUAccess:"), po0) } func (b_ BlitCommandEncoderObject) HasSynchronizeResource() bool { @@ -231,116 +150,102 @@ func (b_ BlitCommandEncoderObject) SynchronizeResource(resource ResourceObject) objc.Call[objc.Void](b_, objc.Sel("synchronizeResource:"), po0) } -func (b_ BlitCommandEncoderObject) HasSynchronizeTextureSliceLevel() bool { - return b_.RespondsToSelector(objc.Sel("synchronizeTexture:slice:level:")) -} - -// Encodes a command that synchronizes a part of the CPU’s copy of a texture so that it matches the GPU’s copy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400757-synchronizetexture?language=objc -func (b_ BlitCommandEncoderObject) SynchronizeTextureSliceLevel(texture TextureObject, slice uint, level uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](b_, objc.Sel("synchronizeTexture:slice:level:"), po0, slice, level) -} - -func (b_ BlitCommandEncoderObject) HasGetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset() bool { - return b_.RespondsToSelector(objc.Sel("getTextureAccessCounters:region:mipLevel:slice:resetCounters:countersBuffer:countersBufferOffset:")) +func (b_ BlitCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { + return b_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) } -// Encodes a command that retrieves a sparse texture’s access data for a specific region, mipmap level, and slice. [Full Topic] +// Encodes a command that samples the GPU’s hardware counters during a blit pass and stores the data in a counter sample buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3043910-gettextureaccesscounters?language=objc -func (b_ BlitCommandEncoderObject) GetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset(texture TextureObject, region Region, mipLevel uint, slice uint, resetCounters bool, countersBuffer BufferObject, countersBufferOffset uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - po5 := objc.WrapAsProtocol("MTLBuffer", countersBuffer) - objc.Call[objc.Void](b_, objc.Sel("getTextureAccessCounters:region:mipLevel:slice:resetCounters:countersBuffer:countersBufferOffset:"), po0, region, mipLevel, slice, resetCounters, po5, countersBufferOffset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3194348-samplecountersinbuffer?language=objc +func (b_ BlitCommandEncoderObject) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) { + po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) + objc.Call[objc.Void](b_, objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:"), po0, sampleIndex, barrier) } -func (b_ BlitCommandEncoderObject) HasOptimizeContentsForCPUAccessSliceLevel() bool { - return b_.RespondsToSelector(objc.Sel("optimizeContentsForCPUAccess:slice:level:")) +func (b_ BlitCommandEncoderObject) HasResetTextureAccessCountersRegionMipLevelSlice() bool { + return b_.RespondsToSelector(objc.Sel("resetTextureAccessCounters:region:mipLevel:slice:")) } -// Encodes a command that improves the performance of the CPU’s accesses to a specific portion of a texture. [Full Topic] +// Encodes a command that resets a sparse texture’s access data for a specific region, mipmap level, and slice. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2966538-optimizecontentsforcpuaccess?language=objc -func (b_ BlitCommandEncoderObject) OptimizeContentsForCPUAccessSliceLevel(texture TextureObject, slice uint, level uint) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3043911-resettextureaccesscounters?language=objc +func (b_ BlitCommandEncoderObject) ResetTextureAccessCountersRegionMipLevelSlice(texture TextureObject, region Region, mipLevel uint, slice uint) { po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](b_, objc.Sel("optimizeContentsForCPUAccess:slice:level:"), po0, slice, level) + objc.Call[objc.Void](b_, objc.Sel("resetTextureAccessCounters:region:mipLevel:slice:"), po0, region, mipLevel, slice) } -func (b_ BlitCommandEncoderObject) HasCopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImage() bool { - return b_.RespondsToSelector(objc.Sel("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:")) +func (b_ BlitCommandEncoderObject) HasCopyFromBufferSourceOffsetToBufferDestinationOffsetSize() bool { + return b_.RespondsToSelector(objc.Sel("copyFromBuffer:sourceOffset:toBuffer:destinationOffset:size:")) } -// Encodes a command that copies image data from a texture slice to a buffer. [Full Topic] +// Encodes a command that copies data from one buffer into another. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400773-copyfromtexture?language=objc -func (b_ BlitCommandEncoderObject) CopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImage(sourceTexture TextureObject, sourceSlice uint, sourceLevel uint, sourceOrigin Origin, sourceSize Size, destinationBuffer BufferObject, destinationOffset uint, destinationBytesPerRow uint, destinationBytesPerImage uint) { - po0 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po5 := objc.WrapAsProtocol("MTLBuffer", destinationBuffer) - objc.Call[objc.Void](b_, objc.Sel("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:"), po0, sourceSlice, sourceLevel, sourceOrigin, sourceSize, po5, destinationOffset, destinationBytesPerRow, destinationBytesPerImage) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400767-copyfrombuffer?language=objc +func (b_ BlitCommandEncoderObject) CopyFromBufferSourceOffsetToBufferDestinationOffsetSize(sourceBuffer BufferObject, sourceOffset uint, destinationBuffer BufferObject, destinationOffset uint, size uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", sourceBuffer) + po2 := objc.WrapAsProtocol("MTLBuffer", destinationBuffer) + objc.Call[objc.Void](b_, objc.Sel("copyFromBuffer:sourceOffset:toBuffer:destinationOffset:size:"), po0, sourceOffset, po2, destinationOffset, size) } -func (b_ BlitCommandEncoderObject) HasCopyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOriginOptions() bool { - return b_.RespondsToSelector(objc.Sel("copyFromBuffer:sourceOffset:sourceBytesPerRow:sourceBytesPerImage:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:")) +func (b_ BlitCommandEncoderObject) HasFillBufferRangeValue() bool { + return b_.RespondsToSelector(objc.Sel("fillBuffer:range:value:")) } -// Encodes a command to copy image data from a source buffer into a destination texture. [Full Topic] +// Encodes a command that fills a buffer with a constant value for each byte. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400771-copyfrombuffer?language=objc -func (b_ BlitCommandEncoderObject) CopyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOriginOptions(sourceBuffer BufferObject, sourceOffset uint, sourceBytesPerRow uint, sourceBytesPerImage uint, sourceSize Size, destinationTexture TextureObject, destinationSlice uint, destinationLevel uint, destinationOrigin Origin, options BlitOption) { - po0 := objc.WrapAsProtocol("MTLBuffer", sourceBuffer) - po5 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - objc.Call[objc.Void](b_, objc.Sel("copyFromBuffer:sourceOffset:sourceBytesPerRow:sourceBytesPerImage:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:"), po0, sourceOffset, sourceBytesPerRow, sourceBytesPerImage, sourceSize, po5, destinationSlice, destinationLevel, destinationOrigin, options) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400761-fillbuffer?language=objc +func (b_ BlitCommandEncoderObject) FillBufferRangeValue(buffer BufferObject, range_ foundation.Range, value uint8) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](b_, objc.Sel("fillBuffer:range:value:"), po0, range_, value) } -func (b_ BlitCommandEncoderObject) HasUpdateFence() bool { - return b_.RespondsToSelector(objc.Sel("updateFence:")) +func (b_ BlitCommandEncoderObject) HasOptimizeContentsForCPUAccess() bool { + return b_.RespondsToSelector(objc.Sel("optimizeContentsForCPUAccess:")) } -// Encodes a command that instructs the GPU to update a fence, which can signal a pass that’s waiting for it. [Full Topic] +// Encodes a command that improves the performance of the CPU’s accesses to a texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1649359-updatefence?language=objc -func (b_ BlitCommandEncoderObject) UpdateFence(fence FenceObject) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](b_, objc.Sel("updateFence:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2966537-optimizecontentsforcpuaccess?language=objc +func (b_ BlitCommandEncoderObject) OptimizeContentsForCPUAccess(texture TextureObject) { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + objc.Call[objc.Void](b_, objc.Sel("optimizeContentsForCPUAccess:"), po0) } -func (b_ BlitCommandEncoderObject) HasCopyIndirectCommandBufferSourceRangeDestinationDestinationIndex() bool { - return b_.RespondsToSelector(objc.Sel("copyIndirectCommandBuffer:sourceRange:destination:destinationIndex:")) +func (b_ BlitCommandEncoderObject) HasOptimizeIndirectCommandBufferWithRange() bool { + return b_.RespondsToSelector(objc.Sel("optimizeIndirectCommandBuffer:withRange:")) } -// Encodes a command that copies commands from one indirect command buffer into another. [Full Topic] +// Encodes a command that can improve the performance of a range of commands within an indirect command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2967412-copyindirectcommandbuffer?language=objc -func (b_ BlitCommandEncoderObject) CopyIndirectCommandBufferSourceRangeDestinationDestinationIndex(source IndirectCommandBufferObject, sourceRange foundation.Range, destination IndirectCommandBufferObject, destinationIndex uint) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", source) - po2 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", destination) - objc.Call[objc.Void](b_, objc.Sel("copyIndirectCommandBuffer:sourceRange:destination:destinationIndex:"), po0, sourceRange, po2, destinationIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2967413-optimizeindirectcommandbuffer?language=objc +func (b_ BlitCommandEncoderObject) OptimizeIndirectCommandBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", indirectCommandBuffer) + objc.Call[objc.Void](b_, objc.Sel("optimizeIndirectCommandBuffer:withRange:"), po0, range_) } -func (b_ BlitCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { - return b_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) +func (b_ BlitCommandEncoderObject) HasResetCommandsInBufferWithRange() bool { + return b_.RespondsToSelector(objc.Sel("resetCommandsInBuffer:withRange:")) } -// Encodes a command that samples the GPU’s hardware counters during a blit pass and stores the data in a counter sample buffer. [Full Topic] +// Encodes a command that resets a range of commands in an indirect command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3194348-samplecountersinbuffer?language=objc -func (b_ BlitCommandEncoderObject) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) { - po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) - objc.Call[objc.Void](b_, objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:"), po0, sampleIndex, barrier) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2967414-resetcommandsinbuffer?language=objc +func (b_ BlitCommandEncoderObject) ResetCommandsInBufferWithRange(buffer IndirectCommandBufferObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", buffer) + objc.Call[objc.Void](b_, objc.Sel("resetCommandsInBuffer:withRange:"), po0, range_) } -func (b_ BlitCommandEncoderObject) HasFillBufferRangeValue() bool { - return b_.RespondsToSelector(objc.Sel("fillBuffer:range:value:")) +func (b_ BlitCommandEncoderObject) HasGetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset() bool { + return b_.RespondsToSelector(objc.Sel("getTextureAccessCounters:region:mipLevel:slice:resetCounters:countersBuffer:countersBufferOffset:")) } -// Encodes a command that fills a buffer with a constant value for each byte. [Full Topic] +// Encodes a command that retrieves a sparse texture’s access data for a specific region, mipmap level, and slice. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400761-fillbuffer?language=objc -func (b_ BlitCommandEncoderObject) FillBufferRangeValue(buffer BufferObject, range_ foundation.Range, value uint8) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](b_, objc.Sel("fillBuffer:range:value:"), po0, range_, value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3043910-gettextureaccesscounters?language=objc +func (b_ BlitCommandEncoderObject) GetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset(texture TextureObject, region Region, mipLevel uint, slice uint, resetCounters bool, countersBuffer BufferObject, countersBufferOffset uint) { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + po5 := objc.WrapAsProtocol("MTLBuffer", countersBuffer) + objc.Call[objc.Void](b_, objc.Sel("getTextureAccessCounters:region:mipLevel:slice:resetCounters:countersBuffer:countersBufferOffset:"), po0, region, mipLevel, slice, resetCounters, po5, countersBufferOffset) } func (b_ BlitCommandEncoderObject) HasGenerateMipmapsForTexture() bool { @@ -355,6 +260,18 @@ func (b_ BlitCommandEncoderObject) GenerateMipmapsForTexture(texture TextureObje objc.Call[objc.Void](b_, objc.Sel("generateMipmapsForTexture:"), po0) } +func (b_ BlitCommandEncoderObject) HasUpdateFence() bool { + return b_.RespondsToSelector(objc.Sel("updateFence:")) +} + +// Encodes a command that instructs the GPU to update a fence, which can signal a pass that’s waiting for it. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1649359-updatefence?language=objc +func (b_ BlitCommandEncoderObject) UpdateFence(fence FenceObject) { + po0 := objc.WrapAsProtocol("MTLFence", fence) + objc.Call[objc.Void](b_, objc.Sel("updateFence:"), po0) +} + func (b_ BlitCommandEncoderObject) HasCopyFromTextureToTexture() bool { return b_.RespondsToSelector(objc.Sel("copyFromTexture:toTexture:")) } @@ -368,65 +285,14 @@ func (b_ BlitCommandEncoderObject) CopyFromTextureToTexture(sourceTexture Textur objc.Call[objc.Void](b_, objc.Sel("copyFromTexture:toTexture:"), po0, po1) } -func (b_ BlitCommandEncoderObject) HasCopyFromBufferSourceOffsetToBufferDestinationOffsetSize() bool { - return b_.RespondsToSelector(objc.Sel("copyFromBuffer:sourceOffset:toBuffer:destinationOffset:size:")) -} - -// Encodes a command that copies data from one buffer into another. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400767-copyfrombuffer?language=objc -func (b_ BlitCommandEncoderObject) CopyFromBufferSourceOffsetToBufferDestinationOffsetSize(sourceBuffer BufferObject, sourceOffset uint, destinationBuffer BufferObject, destinationOffset uint, size uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", sourceBuffer) - po2 := objc.WrapAsProtocol("MTLBuffer", destinationBuffer) - objc.Call[objc.Void](b_, objc.Sel("copyFromBuffer:sourceOffset:toBuffer:destinationOffset:size:"), po0, sourceOffset, po2, destinationOffset, size) -} - -func (b_ BlitCommandEncoderObject) HasResetTextureAccessCountersRegionMipLevelSlice() bool { - return b_.RespondsToSelector(objc.Sel("resetTextureAccessCounters:region:mipLevel:slice:")) -} - -// Encodes a command that resets a sparse texture’s access data for a specific region, mipmap level, and slice. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3043911-resettextureaccesscounters?language=objc -func (b_ BlitCommandEncoderObject) ResetTextureAccessCountersRegionMipLevelSlice(texture TextureObject, region Region, mipLevel uint, slice uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](b_, objc.Sel("resetTextureAccessCounters:region:mipLevel:slice:"), po0, region, mipLevel, slice) -} - -func (b_ BlitCommandEncoderObject) HasCopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin() bool { - return b_.RespondsToSelector(objc.Sel("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:")) -} - -// Encodes a command that copies image data from a texture’s slice into another slice. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400754-copyfromtexture?language=objc -func (b_ BlitCommandEncoderObject) CopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin(sourceTexture TextureObject, sourceSlice uint, sourceLevel uint, sourceOrigin Origin, sourceSize Size, destinationTexture TextureObject, destinationSlice uint, destinationLevel uint, destinationOrigin Origin) { - po0 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po5 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - objc.Call[objc.Void](b_, objc.Sel("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:"), po0, sourceSlice, sourceLevel, sourceOrigin, sourceSize, po5, destinationSlice, destinationLevel, destinationOrigin) -} - -func (b_ BlitCommandEncoderObject) HasOptimizeContentsForGPUAccess() bool { - return b_.RespondsToSelector(objc.Sel("optimizeContentsForGPUAccess:")) -} - -// Encodes a command that improves the performance of the GPU’s accesses to a texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2966539-optimizecontentsforgpuaccess?language=objc -func (b_ BlitCommandEncoderObject) OptimizeContentsForGPUAccess(texture TextureObject) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](b_, objc.Sel("optimizeContentsForGPUAccess:"), po0) -} - -func (b_ BlitCommandEncoderObject) HasResolveCountersInRangeDestinationBufferDestinationOffset() bool { - return b_.RespondsToSelector(objc.Sel("resolveCounters:inRange:destinationBuffer:destinationOffset:")) +func (b_ BlitCommandEncoderObject) HasWaitForFence() bool { + return b_.RespondsToSelector(objc.Sel("waitForFence:")) } -// Encodes a command that resolves the data from the samples in a sample counter buffer and stores the results into a buffer. [Full Topic] +// Encodes a command that instructs the GPU to wait until a pass updates a fence. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3194347-resolvecounters?language=objc -func (b_ BlitCommandEncoderObject) ResolveCountersInRangeDestinationBufferDestinationOffset(sampleBuffer CounterSampleBufferObject, range_ foundation.Range, destinationBuffer BufferObject, destinationOffset uint) { - po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) - po2 := objc.WrapAsProtocol("MTLBuffer", destinationBuffer) - objc.Call[objc.Void](b_, objc.Sel("resolveCounters:inRange:destinationBuffer:destinationOffset:"), po0, range_, po2, destinationOffset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1649358-waitforfence?language=objc +func (b_ BlitCommandEncoderObject) WaitForFence(fence FenceObject) { + po0 := objc.WrapAsProtocol("MTLFence", fence) + objc.Call[objc.Void](b_, objc.Sel("waitForFence:"), po0) } diff --git a/macos/metal/blit_pass_sample_buffer_attachment_descriptor.gen.go b/macos/metal/blit_pass_sample_buffer_attachment_descriptor.gen.go index dc4cc9fb..a852dee0 100644 --- a/macos/metal/blit_pass_sample_buffer_attachment_descriptor.gen.go +++ b/macos/metal/blit_pass_sample_buffer_attachment_descriptor.gen.go @@ -20,11 +20,11 @@ type IBlitPassSampleBufferAttachmentDescriptor interface { objc.IObject StartOfEncoderSampleIndex() uint SetStartOfEncoderSampleIndex(value uint) + EndOfEncoderSampleIndex() uint + SetEndOfEncoderSampleIndex(value uint) SampleBuffer() CounterSampleBufferObject SetSampleBuffer(value PCounterSampleBuffer) SetSampleBufferObject(valueObject objc.IObject) - EndOfEncoderSampleIndex() uint - SetEndOfEncoderSampleIndex(value uint) } // A configuration that instructs the GPU where to store counter data from the beginning and end of a blit pass. [Full Topic] @@ -75,6 +75,21 @@ func (b_ BlitPassSampleBufferAttachmentDescriptor) SetStartOfEncoderSampleIndex( objc.Call[objc.Void](b_, objc.Sel("setStartOfEncoderSampleIndex:"), value) } +// An index within a counter sample buffer that tells the GPU where to store counter data from the end of a blit pass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitpasssamplebufferattachmentdescriptor/3564424-endofencodersampleindex?language=objc +func (b_ BlitPassSampleBufferAttachmentDescriptor) EndOfEncoderSampleIndex() uint { + rv := objc.Call[uint](b_, objc.Sel("endOfEncoderSampleIndex")) + return rv +} + +// An index within a counter sample buffer that tells the GPU where to store counter data from the end of a blit pass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitpasssamplebufferattachmentdescriptor/3564424-endofencodersampleindex?language=objc +func (b_ BlitPassSampleBufferAttachmentDescriptor) SetEndOfEncoderSampleIndex(value uint) { + objc.Call[objc.Void](b_, objc.Sel("setEndOfEncoderSampleIndex:"), value) +} + // A specialized memory buffer that the GPU uses to store its counter data during the blit pass. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitpasssamplebufferattachmentdescriptor/3564425-samplebuffer?language=objc @@ -97,18 +112,3 @@ func (b_ BlitPassSampleBufferAttachmentDescriptor) SetSampleBuffer(value PCounte func (b_ BlitPassSampleBufferAttachmentDescriptor) SetSampleBufferObject(valueObject objc.IObject) { objc.Call[objc.Void](b_, objc.Sel("setSampleBuffer:"), valueObject) } - -// An index within a counter sample buffer that tells the GPU where to store counter data from the end of a blit pass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitpasssamplebufferattachmentdescriptor/3564424-endofencodersampleindex?language=objc -func (b_ BlitPassSampleBufferAttachmentDescriptor) EndOfEncoderSampleIndex() uint { - rv := objc.Call[uint](b_, objc.Sel("endOfEncoderSampleIndex")) - return rv -} - -// An index within a counter sample buffer that tells the GPU where to store counter data from the end of a blit pass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitpasssamplebufferattachmentdescriptor/3564424-endofencodersampleindex?language=objc -func (b_ BlitPassSampleBufferAttachmentDescriptor) SetEndOfEncoderSampleIndex(value uint) { - objc.Call[objc.Void](b_, objc.Sel("setEndOfEncoderSampleIndex:"), value) -} diff --git a/macos/metal/buffer_layout_descriptor.gen.go b/macos/metal/buffer_layout_descriptor.gen.go index e51f1e5f..b787cf8e 100644 --- a/macos/metal/buffer_layout_descriptor.gen.go +++ b/macos/metal/buffer_layout_descriptor.gen.go @@ -18,12 +18,12 @@ type _BufferLayoutDescriptorClass struct { // An interface definition for the [BufferLayoutDescriptor] class. type IBufferLayoutDescriptor interface { objc.IObject - StepFunction() StepFunction - SetStepFunction(value StepFunction) StepRate() uint SetStepRate(value uint) Stride() uint SetStride(value uint) + StepFunction() StepFunction + SetStepFunction(value StepFunction) } // An object that configures how a function fetches input data for an attribute. [Full Topic] @@ -59,21 +59,6 @@ func (b_ BufferLayoutDescriptor) Init() BufferLayoutDescriptor { return rv } -// Determines which aspect of command execution triggers data fetches. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbufferlayoutdescriptor/2097182-stepfunction?language=objc -func (b_ BufferLayoutDescriptor) StepFunction() StepFunction { - rv := objc.Call[StepFunction](b_, objc.Sel("stepFunction")) - return rv -} - -// Determines which aspect of command execution triggers data fetches. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbufferlayoutdescriptor/2097182-stepfunction?language=objc -func (b_ BufferLayoutDescriptor) SetStepFunction(value StepFunction) { - objc.Call[objc.Void](b_, objc.Sel("setStepFunction:"), value) -} - // The rate at which data is fetched by the step function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbufferlayoutdescriptor/2097164-steprate?language=objc @@ -103,3 +88,18 @@ func (b_ BufferLayoutDescriptor) Stride() uint { func (b_ BufferLayoutDescriptor) SetStride(value uint) { objc.Call[objc.Void](b_, objc.Sel("setStride:"), value) } + +// Determines which aspect of command execution triggers data fetches. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbufferlayoutdescriptor/2097182-stepfunction?language=objc +func (b_ BufferLayoutDescriptor) StepFunction() StepFunction { + rv := objc.Call[StepFunction](b_, objc.Sel("stepFunction")) + return rv +} + +// Determines which aspect of command execution triggers data fetches. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbufferlayoutdescriptor/2097182-stepfunction?language=objc +func (b_ BufferLayoutDescriptor) SetStepFunction(value StepFunction) { + objc.Call[objc.Void](b_, objc.Sel("setStepFunction:"), value) +} diff --git a/macos/metal/buffer_layout_descriptor_array.gen.go b/macos/metal/buffer_layout_descriptor_array.gen.go index bd24de04..6a84d7cd 100644 --- a/macos/metal/buffer_layout_descriptor_array.gen.go +++ b/macos/metal/buffer_layout_descriptor_array.gen.go @@ -18,8 +18,8 @@ type _BufferLayoutDescriptorArrayClass struct { // An interface definition for the [BufferLayoutDescriptorArray] class. type IBufferLayoutDescriptorArray interface { objc.IObject - SetObjectAtIndexedSubscript(bufferDesc IBufferLayoutDescriptor, index uint) ObjectAtIndexedSubscript(index uint) BufferLayoutDescriptor + SetObjectAtIndexedSubscript(bufferDesc IBufferLayoutDescriptor, index uint) } // An array of buffer layout descriptor objects. [Full Topic] @@ -55,13 +55,6 @@ func (b_ BufferLayoutDescriptorArray) Init() BufferLayoutDescriptorArray { return rv } -// Sets the state of the specified buffer layout. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbufferlayoutdescriptorarray/2097295-setobject?language=objc -func (b_ BufferLayoutDescriptorArray) SetObjectAtIndexedSubscript(bufferDesc IBufferLayoutDescriptor, index uint) { - objc.Call[objc.Void](b_, objc.Sel("setObject:atIndexedSubscript:"), bufferDesc, index) -} - // Returns the state of the specified buffer layout. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbufferlayoutdescriptorarray/2097228-objectatindexedsubscript?language=objc @@ -69,3 +62,10 @@ func (b_ BufferLayoutDescriptorArray) ObjectAtIndexedSubscript(index uint) Buffe rv := objc.Call[BufferLayoutDescriptor](b_, objc.Sel("objectAtIndexedSubscript:"), index) return rv } + +// Sets the state of the specified buffer layout. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbufferlayoutdescriptorarray/2097295-setobject?language=objc +func (b_ BufferLayoutDescriptorArray) SetObjectAtIndexedSubscript(bufferDesc IBufferLayoutDescriptor, index uint) { + objc.Call[objc.Void](b_, objc.Sel("setObject:atIndexedSubscript:"), bufferDesc, index) +} diff --git a/macos/metal/buffer_protocol.gen.go b/macos/metal/buffer_protocol.gen.go index 9ff015da..283191d8 100644 --- a/macos/metal/buffer_protocol.gen.go +++ b/macos/metal/buffer_protocol.gen.go @@ -14,28 +14,28 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer?language=objc type PBuffer interface { // optional - Contents() unsafe.Pointer - HasContents() bool + DidModifyRange(range_ foundation.Range) + HasDidModifyRange() bool // optional - NewRemoteBufferViewForDevice(device DeviceObject) BufferObject - HasNewRemoteBufferViewForDevice() bool + NewTextureWithDescriptorOffsetBytesPerRow(descriptor TextureDescriptor, offset uint, bytesPerRow uint) TextureObject + HasNewTextureWithDescriptorOffsetBytesPerRow() bool // optional AddDebugMarkerRange(marker string, range_ foundation.Range) HasAddDebugMarkerRange() bool // optional - NewTextureWithDescriptorOffsetBytesPerRow(descriptor TextureDescriptor, offset uint, bytesPerRow uint) TextureObject - HasNewTextureWithDescriptorOffsetBytesPerRow() bool + Contents() unsafe.Pointer + HasContents() bool // optional - RemoveAllDebugMarkers() - HasRemoveAllDebugMarkers() bool + NewRemoteBufferViewForDevice(device DeviceObject) BufferObject + HasNewRemoteBufferViewForDevice() bool // optional - DidModifyRange(range_ foundation.Range) - HasDidModifyRange() bool + RemoveAllDebugMarkers() + HasRemoveAllDebugMarkers() bool // optional RemoteStorageBuffer() BufferObject @@ -54,28 +54,26 @@ type BufferObject struct { objc.Object } -func (b_ BufferObject) HasContents() bool { - return b_.RespondsToSelector(objc.Sel("contents")) +func (b_ BufferObject) HasDidModifyRange() bool { + return b_.RespondsToSelector(objc.Sel("didModifyRange:")) } -// Gets the system address of the buffer’s storage allocation. [Full Topic] +// Informs the GPU that the CPU has modified a section of the buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/1515716-contents?language=objc -func (b_ BufferObject) Contents() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](b_, objc.Sel("contents")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/1516121-didmodifyrange?language=objc +func (b_ BufferObject) DidModifyRange(range_ foundation.Range) { + objc.Call[objc.Void](b_, objc.Sel("didModifyRange:"), range_) } -func (b_ BufferObject) HasNewRemoteBufferViewForDevice() bool { - return b_.RespondsToSelector(objc.Sel("newRemoteBufferViewForDevice:")) +func (b_ BufferObject) HasNewTextureWithDescriptorOffsetBytesPerRow() bool { + return b_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:offset:bytesPerRow:")) } -// Creates a remote view of the buffer for another GPU in the same peer group. [Full Topic] +// Creates a texture that shares its storage with the buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/2967415-newremotebufferviewfordevice?language=objc -func (b_ BufferObject) NewRemoteBufferViewForDevice(device DeviceObject) BufferObject { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[BufferObject](b_, objc.Sel("newRemoteBufferViewForDevice:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/1613852-newtexturewithdescriptor?language=objc +func (b_ BufferObject) NewTextureWithDescriptorOffsetBytesPerRow(descriptor TextureDescriptor, offset uint, bytesPerRow uint) TextureObject { + rv := objc.Call[TextureObject](b_, objc.Sel("newTextureWithDescriptor:offset:bytesPerRow:"), descriptor, offset, bytesPerRow) return rv } @@ -90,15 +88,28 @@ func (b_ BufferObject) AddDebugMarkerRange(marker string, range_ foundation.Rang objc.Call[objc.Void](b_, objc.Sel("addDebugMarker:range:"), marker, range_) } -func (b_ BufferObject) HasNewTextureWithDescriptorOffsetBytesPerRow() bool { - return b_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:offset:bytesPerRow:")) +func (b_ BufferObject) HasContents() bool { + return b_.RespondsToSelector(objc.Sel("contents")) } -// Creates a texture that shares its storage with the buffer. [Full Topic] +// Gets the system address of the buffer’s storage allocation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/1613852-newtexturewithdescriptor?language=objc -func (b_ BufferObject) NewTextureWithDescriptorOffsetBytesPerRow(descriptor TextureDescriptor, offset uint, bytesPerRow uint) TextureObject { - rv := objc.Call[TextureObject](b_, objc.Sel("newTextureWithDescriptor:offset:bytesPerRow:"), descriptor, offset, bytesPerRow) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/1515716-contents?language=objc +func (b_ BufferObject) Contents() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](b_, objc.Sel("contents")) + return rv +} + +func (b_ BufferObject) HasNewRemoteBufferViewForDevice() bool { + return b_.RespondsToSelector(objc.Sel("newRemoteBufferViewForDevice:")) +} + +// Creates a remote view of the buffer for another GPU in the same peer group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/2967415-newremotebufferviewfordevice?language=objc +func (b_ BufferObject) NewRemoteBufferViewForDevice(device DeviceObject) BufferObject { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[BufferObject](b_, objc.Sel("newRemoteBufferViewForDevice:"), po0) return rv } @@ -113,17 +124,6 @@ func (b_ BufferObject) RemoveAllDebugMarkers() { objc.Call[objc.Void](b_, objc.Sel("removeAllDebugMarkers")) } -func (b_ BufferObject) HasDidModifyRange() bool { - return b_.RespondsToSelector(objc.Sel("didModifyRange:")) -} - -// Informs the GPU that the CPU has modified a section of the buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/1516121-didmodifyrange?language=objc -func (b_ BufferObject) DidModifyRange(range_ foundation.Range) { - objc.Call[objc.Void](b_, objc.Sel("didModifyRange:"), range_) -} - func (b_ BufferObject) HasRemoteStorageBuffer() bool { return b_.RespondsToSelector(objc.Sel("remoteStorageBuffer")) } diff --git a/macos/metal/capture_manager.gen.go b/macos/metal/capture_manager.gen.go index 97d3a106..b425520c 100644 --- a/macos/metal/capture_manager.gen.go +++ b/macos/metal/capture_manager.gen.go @@ -18,17 +18,17 @@ type _CaptureManagerClass struct { // An interface definition for the [CaptureManager] class. type ICaptureManager interface { objc.IObject - StopCapture() NewCaptureScopeWithDevice(device PDevice) CaptureScopeObject NewCaptureScopeWithDeviceObject(deviceObject objc.IObject) CaptureScopeObject + StopCapture() + StartCaptureWithDescriptorError(descriptor ICaptureDescriptor, error unsafe.Pointer) bool NewCaptureScopeWithCommandQueue(commandQueue PCommandQueue) CaptureScopeObject NewCaptureScopeWithCommandQueueObject(commandQueueObject objc.IObject) CaptureScopeObject - StartCaptureWithDescriptorError(descriptor ICaptureDescriptor, error unsafe.Pointer) bool SupportsDestination(destination CaptureDestination) bool - IsCapturing() bool DefaultCaptureScope() CaptureScopeObject SetDefaultCaptureScope(value PCaptureScope) SetDefaultCaptureScopeObject(valueObject objc.IObject) + IsCapturing() bool } // An instance you use to capture Metal command data in your app. [Full Topic] @@ -64,13 +64,6 @@ func (c_ CaptureManager) Init() CaptureManager { return rv } -// Stops capturing Metal commands. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/2869736-stopcapture?language=objc -func (c_ CaptureManager) StopCapture() { - objc.Call[objc.Void](c_, objc.Sel("stopCapture")) -} - // Creates a capture scope for commands submitted to a specific device object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/2869719-newcapturescopewithdevice?language=objc @@ -103,6 +96,21 @@ func CaptureManager_SharedCaptureManager() CaptureManager { return CaptureManagerClass.SharedCaptureManager() } +// Stops capturing Metal commands. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/2869736-stopcapture?language=objc +func (c_ CaptureManager) StopCapture() { + objc.Call[objc.Void](c_, objc.Sel("stopCapture")) +} + +// Starts capturing any of your app’s Metal commands, with the capture session defined by a descriptor object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/3237259-startcapturewithdescriptor?language=objc +func (c_ CaptureManager) StartCaptureWithDescriptorError(descriptor ICaptureDescriptor, error unsafe.Pointer) bool { + rv := objc.Call[bool](c_, objc.Sel("startCaptureWithDescriptor:error:"), descriptor, error) + return rv +} + // Creates a capture scope for commands submitted to a specific command queue. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/2869732-newcapturescopewithcommandqueue?language=objc @@ -120,14 +128,6 @@ func (c_ CaptureManager) NewCaptureScopeWithCommandQueueObject(commandQueueObjec return rv } -// Starts capturing any of your app’s Metal commands, with the capture session defined by a descriptor object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/3237259-startcapturewithdescriptor?language=objc -func (c_ CaptureManager) StartCaptureWithDescriptorError(descriptor ICaptureDescriptor, error unsafe.Pointer) bool { - rv := objc.Call[bool](c_, objc.Sel("startCaptureWithDescriptor:error:"), descriptor, error) - return rv -} - // Checks to see whether a particular capture destination is supported. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/3237260-supportsdestination?language=objc @@ -136,14 +136,6 @@ func (c_ CaptureManager) SupportsDestination(destination CaptureDestination) boo return rv } -// A Boolean value that indicates whether Metal commands are being captured. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/2869727-iscapturing?language=objc -func (c_ CaptureManager) IsCapturing() bool { - rv := objc.Call[bool](c_, objc.Sel("isCapturing")) - return rv -} - // The capture scope to use when a capture is initiated in Xcode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/2887120-defaultcapturescope?language=objc @@ -166,3 +158,11 @@ func (c_ CaptureManager) SetDefaultCaptureScope(value PCaptureScope) { func (c_ CaptureManager) SetDefaultCaptureScopeObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDefaultCaptureScope:"), valueObject) } + +// A Boolean value that indicates whether Metal commands are being captured. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/2869727-iscapturing?language=objc +func (c_ CaptureManager) IsCapturing() bool { + rv := objc.Call[bool](c_, objc.Sel("isCapturing")) + return rv +} diff --git a/macos/metal/capture_scope_protocol.gen.go b/macos/metal/capture_scope_protocol.gen.go index a0600708..38062316 100644 --- a/macos/metal/capture_scope_protocol.gen.go +++ b/macos/metal/capture_scope_protocol.gen.go @@ -10,22 +10,22 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope?language=objc type PCaptureScope interface { - // optional - EndScope() - HasEndScope() bool - // optional BeginScope() HasBeginScope() bool // optional - Device() DeviceObject - HasDevice() bool + EndScope() + HasEndScope() bool // optional CommandQueue() CommandQueueObject HasCommandQueue() bool + // optional + Device() DeviceObject + HasDevice() bool + // optional SetLabel(value string) HasSetLabel() bool @@ -43,17 +43,6 @@ type CaptureScopeObject struct { objc.Object } -func (c_ CaptureScopeObject) HasEndScope() bool { - return c_.RespondsToSelector(objc.Sel("endScope")) -} - -// Tells Metal to stop recording command information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope/2869574-endscope?language=objc -func (c_ CaptureScopeObject) EndScope() { - objc.Call[objc.Void](c_, objc.Sel("endScope")) -} - func (c_ CaptureScopeObject) HasBeginScope() bool { return c_.RespondsToSelector(objc.Sel("beginScope")) } @@ -65,16 +54,15 @@ func (c_ CaptureScopeObject) BeginScope() { objc.Call[objc.Void](c_, objc.Sel("beginScope")) } -func (c_ CaptureScopeObject) HasDevice() bool { - return c_.RespondsToSelector(objc.Sel("device")) +func (c_ CaptureScopeObject) HasEndScope() bool { + return c_.RespondsToSelector(objc.Sel("endScope")) } -// The device object from which you created the capture scope. [Full Topic] +// Tells Metal to stop recording command information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope/2869575-device?language=objc -func (c_ CaptureScopeObject) Device() DeviceObject { - rv := objc.Call[DeviceObject](c_, objc.Sel("device")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope/2869574-endscope?language=objc +func (c_ CaptureScopeObject) EndScope() { + objc.Call[objc.Void](c_, objc.Sel("endScope")) } func (c_ CaptureScopeObject) HasCommandQueue() bool { @@ -89,6 +77,18 @@ func (c_ CaptureScopeObject) CommandQueue() CommandQueueObject { return rv } +func (c_ CaptureScopeObject) HasDevice() bool { + return c_.RespondsToSelector(objc.Sel("device")) +} + +// The device object from which you created the capture scope. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope/2869575-device?language=objc +func (c_ CaptureScopeObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](c_, objc.Sel("device")) + return rv +} + func (c_ CaptureScopeObject) HasSetLabel() bool { return c_.RespondsToSelector(objc.Sel("setLabel:")) } diff --git a/macos/metal/command_buffer_descriptor.gen.go b/macos/metal/command_buffer_descriptor.gen.go index 9391f568..a1bab962 100644 --- a/macos/metal/command_buffer_descriptor.gen.go +++ b/macos/metal/command_buffer_descriptor.gen.go @@ -18,10 +18,10 @@ type _CommandBufferDescriptorClass struct { // An interface definition for the [CommandBufferDescriptor] class. type ICommandBufferDescriptor interface { objc.IObject - ErrorOptions() CommandBufferErrorOption - SetErrorOptions(value CommandBufferErrorOption) RetainedReferences() bool SetRetainedReferences(value bool) + ErrorOptions() CommandBufferErrorOption + SetErrorOptions(value CommandBufferErrorOption) } // A configuration that customizes the behavior for a new command buffer. [Full Topic] @@ -57,21 +57,6 @@ func (c_ CommandBufferDescriptor) Init() CommandBufferDescriptor { return rv } -// The reporting configuration that indicates which information the GPU driver stores in a command buffer’s error property. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbufferdescriptor/3553941-erroroptions?language=objc -func (c_ CommandBufferDescriptor) ErrorOptions() CommandBufferErrorOption { - rv := objc.Call[CommandBufferErrorOption](c_, objc.Sel("errorOptions")) - return rv -} - -// The reporting configuration that indicates which information the GPU driver stores in a command buffer’s error property. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbufferdescriptor/3553941-erroroptions?language=objc -func (c_ CommandBufferDescriptor) SetErrorOptions(value CommandBufferErrorOption) { - objc.Call[objc.Void](c_, objc.Sel("setErrorOptions:"), value) -} - // A Boolean value that indicates whether the command buffer the descriptor creates maintains strong references to the resources it uses. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbufferdescriptor/3553942-retainedreferences?language=objc @@ -86,3 +71,18 @@ func (c_ CommandBufferDescriptor) RetainedReferences() bool { func (c_ CommandBufferDescriptor) SetRetainedReferences(value bool) { objc.Call[objc.Void](c_, objc.Sel("setRetainedReferences:"), value) } + +// The reporting configuration that indicates which information the GPU driver stores in a command buffer’s error property. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbufferdescriptor/3553941-erroroptions?language=objc +func (c_ CommandBufferDescriptor) ErrorOptions() CommandBufferErrorOption { + rv := objc.Call[CommandBufferErrorOption](c_, objc.Sel("errorOptions")) + return rv +} + +// The reporting configuration that indicates which information the GPU driver stores in a command buffer’s error property. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbufferdescriptor/3553941-erroroptions?language=objc +func (c_ CommandBufferDescriptor) SetErrorOptions(value CommandBufferErrorOption) { + objc.Call[objc.Void](c_, objc.Sel("setErrorOptions:"), value) +} diff --git a/macos/metal/command_buffer_protocol.gen.go b/macos/metal/command_buffer_protocol.gen.go index 9bfe410e..f9ca589a 100644 --- a/macos/metal/command_buffer_protocol.gen.go +++ b/macos/metal/command_buffer_protocol.gen.go @@ -12,41 +12,37 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer?language=objc type PCommandBuffer interface { - // optional - PresentDrawable(drawable DrawableObject) - HasPresentDrawable() bool - - // optional - WaitUntilScheduled() - HasWaitUntilScheduled() bool - // optional Enqueue() HasEnqueue() bool // optional - ComputeCommandEncoderWithDispatchType(dispatchType DispatchType) ComputeCommandEncoderObject - HasComputeCommandEncoderWithDispatchType() bool + EncodeSignalEventValue(event EventObject, value uint64) + HasEncodeSignalEventValue() bool // optional - ComputeCommandEncoder() ComputeCommandEncoderObject - HasComputeCommandEncoder() bool + WaitUntilCompleted() + HasWaitUntilCompleted() bool // optional - EncodeSignalEventValue(event EventObject, value uint64) - HasEncodeSignalEventValue() bool + PresentDrawable(drawable DrawableObject) + HasPresentDrawable() bool // optional - Commit() - HasCommit() bool + PushDebugGroup(string_ string) + HasPushDebugGroup() bool // optional - PopDebugGroup() - HasPopDebugGroup() bool + BlitCommandEncoderWithDescriptor(blitPassDescriptor BlitPassDescriptor) BlitCommandEncoderObject + HasBlitCommandEncoderWithDescriptor() bool // optional - ComputeCommandEncoderWithDescriptor(computePassDescriptor ComputePassDescriptor) ComputeCommandEncoderObject - HasComputeCommandEncoderWithDescriptor() bool + BlitCommandEncoder() BlitCommandEncoderObject + HasBlitCommandEncoder() bool + + // optional + ComputeCommandEncoder() ComputeCommandEncoderObject + HasComputeCommandEncoder() bool // optional ParallelRenderCommandEncoderWithDescriptor(renderPassDescriptor RenderPassDescriptor) ParallelRenderCommandEncoderObject @@ -57,104 +53,100 @@ type PCommandBuffer interface { HasEncodeWaitForEventValue() bool // optional - BlitCommandEncoder() BlitCommandEncoderObject - HasBlitCommandEncoder() bool + Commit() + HasCommit() bool // optional - ResourceStateCommandEncoder() ResourceStateCommandEncoderObject - HasResourceStateCommandEncoder() bool + ComputeCommandEncoderWithDescriptor(computePassDescriptor ComputePassDescriptor) ComputeCommandEncoderObject + HasComputeCommandEncoderWithDescriptor() bool // optional - RenderCommandEncoderWithDescriptor(renderPassDescriptor RenderPassDescriptor) RenderCommandEncoderObject - HasRenderCommandEncoderWithDescriptor() bool + ResourceStateCommandEncoder() ResourceStateCommandEncoderObject + HasResourceStateCommandEncoder() bool // optional AddCompletedHandler(block CommandBufferHandler) HasAddCompletedHandler() bool // optional - PresentDrawableAfterMinimumDuration(drawable DrawableObject, duration corefoundation.TimeInterval) - HasPresentDrawableAfterMinimumDuration() bool + AccelerationStructureCommandEncoder() AccelerationStructureCommandEncoderObject + HasAccelerationStructureCommandEncoder() bool // optional - PresentDrawableAtTime(drawable DrawableObject, presentationTime corefoundation.TimeInterval) - HasPresentDrawableAtTime() bool + PopDebugGroup() + HasPopDebugGroup() bool // optional ResourceStateCommandEncoderWithDescriptor(resourceStatePassDescriptor ResourceStatePassDescriptor) ResourceStateCommandEncoderObject HasResourceStateCommandEncoderWithDescriptor() bool // optional - AccelerationStructureCommandEncoder() AccelerationStructureCommandEncoderObject - HasAccelerationStructureCommandEncoder() bool + RenderCommandEncoderWithDescriptor(renderPassDescriptor RenderPassDescriptor) RenderCommandEncoderObject + HasRenderCommandEncoderWithDescriptor() bool // optional AddScheduledHandler(block CommandBufferHandler) HasAddScheduledHandler() bool // optional - WaitUntilCompleted() - HasWaitUntilCompleted() bool - - // optional - PushDebugGroup(string_ string) - HasPushDebugGroup() bool + ComputeCommandEncoderWithDispatchType(dispatchType DispatchType) ComputeCommandEncoderObject + HasComputeCommandEncoderWithDispatchType() bool // optional - BlitCommandEncoderWithDescriptor(blitPassDescriptor BlitPassDescriptor) BlitCommandEncoderObject - HasBlitCommandEncoderWithDescriptor() bool + WaitUntilScheduled() + HasWaitUntilScheduled() bool // optional - Logs() LogContainerObject - HasLogs() bool + RetainedReferences() bool + HasRetainedReferences() bool // optional - SetLabel(value string) - HasSetLabel() bool + GPUStartTime() corefoundation.TimeInterval + HasGPUStartTime() bool // optional - Label() string - HasLabel() bool + CommandQueue() CommandQueueObject + HasCommandQueue() bool // optional - Status() CommandBufferStatus - HasStatus() bool + Error() foundation.Error + HasError() bool // optional - ErrorOptions() CommandBufferErrorOption - HasErrorOptions() bool + GPUEndTime() corefoundation.TimeInterval + HasGPUEndTime() bool // optional - RetainedReferences() bool - HasRetainedReferences() bool + Logs() LogContainerObject + HasLogs() bool // optional - GPUStartTime() corefoundation.TimeInterval - HasGPUStartTime() bool + KernelStartTime() corefoundation.TimeInterval + HasKernelStartTime() bool // optional Device() DeviceObject HasDevice() bool // optional - KernelEndTime() corefoundation.TimeInterval - HasKernelEndTime() bool + ErrorOptions() CommandBufferErrorOption + HasErrorOptions() bool // optional - CommandQueue() CommandQueueObject - HasCommandQueue() bool + KernelEndTime() corefoundation.TimeInterval + HasKernelEndTime() bool // optional - KernelStartTime() corefoundation.TimeInterval - HasKernelStartTime() bool + SetLabel(value string) + HasSetLabel() bool // optional - Error() foundation.Error - HasError() bool + Label() string + HasLabel() bool // optional - GPUEndTime() corefoundation.TimeInterval - HasGPUEndTime() bool + Status() CommandBufferStatus + HasStatus() bool } // ensure impl type implements protocol interface @@ -165,29 +157,6 @@ type CommandBufferObject struct { objc.Object } -func (c_ CommandBufferObject) HasPresentDrawable() bool { - return c_.RespondsToSelector(objc.Sel("presentDrawable:")) -} - -// Presents a drawable as early as possible. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443029-presentdrawable?language=objc -func (c_ CommandBufferObject) PresentDrawable(drawable DrawableObject) { - po0 := objc.WrapAsProtocol("MTLDrawable", drawable) - objc.Call[objc.Void](c_, objc.Sel("presentDrawable:"), po0) -} - -func (c_ CommandBufferObject) HasWaitUntilScheduled() bool { - return c_.RespondsToSelector(objc.Sel("waitUntilScheduled")) -} - -// Blocks the current thread until the command queue schedules the buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443036-waituntilscheduled?language=objc -func (c_ CommandBufferObject) WaitUntilScheduled() { - objc.Call[objc.Void](c_, objc.Sel("waitUntilScheduled")) -} - func (c_ CommandBufferObject) HasEnqueue() bool { return c_.RespondsToSelector(objc.Sel("enqueue")) } @@ -199,73 +168,85 @@ func (c_ CommandBufferObject) Enqueue() { objc.Call[objc.Void](c_, objc.Sel("enqueue")) } -func (c_ CommandBufferObject) HasComputeCommandEncoderWithDispatchType() bool { - return c_.RespondsToSelector(objc.Sel("computeCommandEncoderWithDispatchType:")) +func (c_ CommandBufferObject) HasEncodeSignalEventValue() bool { + return c_.RespondsToSelector(objc.Sel("encodeSignalEvent:value:")) } -// Creates a compute command encoder with a dispatch type. [Full Topic] +// Encodes a command into the command buffer that pauses the GPU from running subsequent passes until the event equals or exceeds a value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2966541-computecommandencoderwithdispatc?language=objc -func (c_ CommandBufferObject) ComputeCommandEncoderWithDispatchType(dispatchType DispatchType) ComputeCommandEncoderObject { - rv := objc.Call[ComputeCommandEncoderObject](c_, objc.Sel("computeCommandEncoderWithDispatchType:"), dispatchType) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2966542-encodesignalevent?language=objc +func (c_ CommandBufferObject) EncodeSignalEventValue(event EventObject, value uint64) { + po0 := objc.WrapAsProtocol("MTLEvent", event) + objc.Call[objc.Void](c_, objc.Sel("encodeSignalEvent:value:"), po0, value) } -func (c_ CommandBufferObject) HasComputeCommandEncoder() bool { - return c_.RespondsToSelector(objc.Sel("computeCommandEncoder")) +func (c_ CommandBufferObject) HasWaitUntilCompleted() bool { + return c_.RespondsToSelector(objc.Sel("waitUntilCompleted")) } -// Creates a compute command encoder that uses default settings. [Full Topic] +// Blocks the current thread until the GPU finishes executing the command buffer and all of its completion handlers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443044-computecommandencoder?language=objc -func (c_ CommandBufferObject) ComputeCommandEncoder() ComputeCommandEncoderObject { - rv := objc.Call[ComputeCommandEncoderObject](c_, objc.Sel("computeCommandEncoder")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443039-waituntilcompleted?language=objc +func (c_ CommandBufferObject) WaitUntilCompleted() { + objc.Call[objc.Void](c_, objc.Sel("waitUntilCompleted")) } -func (c_ CommandBufferObject) HasEncodeSignalEventValue() bool { - return c_.RespondsToSelector(objc.Sel("encodeSignalEvent:value:")) +func (c_ CommandBufferObject) HasPresentDrawable() bool { + return c_.RespondsToSelector(objc.Sel("presentDrawable:")) } -// Encodes a command into the command buffer that pauses the GPU from running subsequent passes until the event equals or exceeds a value. [Full Topic] +// Presents a drawable as early as possible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2966542-encodesignalevent?language=objc -func (c_ CommandBufferObject) EncodeSignalEventValue(event EventObject, value uint64) { - po0 := objc.WrapAsProtocol("MTLEvent", event) - objc.Call[objc.Void](c_, objc.Sel("encodeSignalEvent:value:"), po0, value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443029-presentdrawable?language=objc +func (c_ CommandBufferObject) PresentDrawable(drawable DrawableObject) { + po0 := objc.WrapAsProtocol("MTLDrawable", drawable) + objc.Call[objc.Void](c_, objc.Sel("presentDrawable:"), po0) } -func (c_ CommandBufferObject) HasCommit() bool { - return c_.RespondsToSelector(objc.Sel("commit")) +func (c_ CommandBufferObject) HasPushDebugGroup() bool { + return c_.RespondsToSelector(objc.Sel("pushDebugGroup:")) } -// Submits the command buffer to run on the GPU. [Full Topic] +// Marks the beginning of a debug group and gives it an identifying label, which temporarily replaces the previous group, if applicable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443003-commit?language=objc -func (c_ CommandBufferObject) Commit() { - objc.Call[objc.Void](c_, objc.Sel("commit")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2869550-pushdebuggroup?language=objc +func (c_ CommandBufferObject) PushDebugGroup(string_ string) { + objc.Call[objc.Void](c_, objc.Sel("pushDebugGroup:"), string_) } -func (c_ CommandBufferObject) HasPopDebugGroup() bool { - return c_.RespondsToSelector(objc.Sel("popDebugGroup")) +func (c_ CommandBufferObject) HasBlitCommandEncoderWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("blitCommandEncoderWithDescriptor:")) } -// Marks the end of a debug group and, if applicable, restores the previous group from a stack. [Full Topic] +// Creates a block information transfer (blit) encoder from a descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2869549-popdebuggroup?language=objc -func (c_ CommandBufferObject) PopDebugGroup() { - objc.Call[objc.Void](c_, objc.Sel("popDebugGroup")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3564431-blitcommandencoderwithdescriptor?language=objc +func (c_ CommandBufferObject) BlitCommandEncoderWithDescriptor(blitPassDescriptor BlitPassDescriptor) BlitCommandEncoderObject { + rv := objc.Call[BlitCommandEncoderObject](c_, objc.Sel("blitCommandEncoderWithDescriptor:"), blitPassDescriptor) + return rv } -func (c_ CommandBufferObject) HasComputeCommandEncoderWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("computeCommandEncoderWithDescriptor:")) +func (c_ CommandBufferObject) HasBlitCommandEncoder() bool { + return c_.RespondsToSelector(objc.Sel("blitCommandEncoder")) } -// Creates a compute command encoder from a descriptor. [Full Topic] +// Creates a block information transfer (blit) encoder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3564432-computecommandencoderwithdescrip?language=objc -func (c_ CommandBufferObject) ComputeCommandEncoderWithDescriptor(computePassDescriptor ComputePassDescriptor) ComputeCommandEncoderObject { - rv := objc.Call[ComputeCommandEncoderObject](c_, objc.Sel("computeCommandEncoderWithDescriptor:"), computePassDescriptor) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443001-blitcommandencoder?language=objc +func (c_ CommandBufferObject) BlitCommandEncoder() BlitCommandEncoderObject { + rv := objc.Call[BlitCommandEncoderObject](c_, objc.Sel("blitCommandEncoder")) + return rv +} + +func (c_ CommandBufferObject) HasComputeCommandEncoder() bool { + return c_.RespondsToSelector(objc.Sel("computeCommandEncoder")) +} + +// Creates a compute command encoder that uses default settings. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443044-computecommandencoder?language=objc +func (c_ CommandBufferObject) ComputeCommandEncoder() ComputeCommandEncoderObject { + rv := objc.Call[ComputeCommandEncoderObject](c_, objc.Sel("computeCommandEncoder")) return rv } @@ -293,15 +274,26 @@ func (c_ CommandBufferObject) EncodeWaitForEventValue(event EventObject, value u objc.Call[objc.Void](c_, objc.Sel("encodeWaitForEvent:value:"), po0, value) } -func (c_ CommandBufferObject) HasBlitCommandEncoder() bool { - return c_.RespondsToSelector(objc.Sel("blitCommandEncoder")) +func (c_ CommandBufferObject) HasCommit() bool { + return c_.RespondsToSelector(objc.Sel("commit")) } -// Creates a block information transfer (blit) encoder. [Full Topic] +// Submits the command buffer to run on the GPU. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443001-blitcommandencoder?language=objc -func (c_ CommandBufferObject) BlitCommandEncoder() BlitCommandEncoderObject { - rv := objc.Call[BlitCommandEncoderObject](c_, objc.Sel("blitCommandEncoder")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443003-commit?language=objc +func (c_ CommandBufferObject) Commit() { + objc.Call[objc.Void](c_, objc.Sel("commit")) +} + +func (c_ CommandBufferObject) HasComputeCommandEncoderWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("computeCommandEncoderWithDescriptor:")) +} + +// Creates a compute command encoder from a descriptor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3564432-computecommandencoderwithdescrip?language=objc +func (c_ CommandBufferObject) ComputeCommandEncoderWithDescriptor(computePassDescriptor ComputePassDescriptor) ComputeCommandEncoderObject { + rv := objc.Call[ComputeCommandEncoderObject](c_, objc.Sel("computeCommandEncoderWithDescriptor:"), computePassDescriptor) return rv } @@ -317,18 +309,6 @@ func (c_ CommandBufferObject) ResourceStateCommandEncoder() ResourceStateCommand return rv } -func (c_ CommandBufferObject) HasRenderCommandEncoderWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("renderCommandEncoderWithDescriptor:")) -} - -// Creates a render command encoder from a descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1442999-rendercommandencoderwithdescript?language=objc -func (c_ CommandBufferObject) RenderCommandEncoderWithDescriptor(renderPassDescriptor RenderPassDescriptor) RenderCommandEncoderObject { - rv := objc.Call[RenderCommandEncoderObject](c_, objc.Sel("renderCommandEncoderWithDescriptor:"), renderPassDescriptor) - return rv -} - func (c_ CommandBufferObject) HasAddCompletedHandler() bool { return c_.RespondsToSelector(objc.Sel("addCompletedHandler:")) } @@ -340,28 +320,27 @@ func (c_ CommandBufferObject) AddCompletedHandler(block CommandBufferHandler) { objc.Call[objc.Void](c_, objc.Sel("addCompletedHandler:"), block) } -func (c_ CommandBufferObject) HasPresentDrawableAfterMinimumDuration() bool { - return c_.RespondsToSelector(objc.Sel("presentDrawable:afterMinimumDuration:")) +func (c_ CommandBufferObject) HasAccelerationStructureCommandEncoder() bool { + return c_.RespondsToSelector(objc.Sel("accelerationStructureCommandEncoder")) } -// Presents a drawable after the system presents the previous drawable for an amount of time. [Full Topic] +// Creates a ray-tracing acceleration structure command encoder that uses default settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2806849-presentdrawable?language=objc -func (c_ CommandBufferObject) PresentDrawableAfterMinimumDuration(drawable DrawableObject, duration corefoundation.TimeInterval) { - po0 := objc.WrapAsProtocol("MTLDrawable", drawable) - objc.Call[objc.Void](c_, objc.Sel("presentDrawable:afterMinimumDuration:"), po0, duration) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3553937-accelerationstructurecommandenco?language=objc +func (c_ CommandBufferObject) AccelerationStructureCommandEncoder() AccelerationStructureCommandEncoderObject { + rv := objc.Call[AccelerationStructureCommandEncoderObject](c_, objc.Sel("accelerationStructureCommandEncoder")) + return rv } -func (c_ CommandBufferObject) HasPresentDrawableAtTime() bool { - return c_.RespondsToSelector(objc.Sel("presentDrawable:atTime:")) +func (c_ CommandBufferObject) HasPopDebugGroup() bool { + return c_.RespondsToSelector(objc.Sel("popDebugGroup")) } -// Presents a drawable at a specific time. [Full Topic] +// Marks the end of a debug group and, if applicable, restores the previous group from a stack. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1442989-presentdrawable?language=objc -func (c_ CommandBufferObject) PresentDrawableAtTime(drawable DrawableObject, presentationTime corefoundation.TimeInterval) { - po0 := objc.WrapAsProtocol("MTLDrawable", drawable) - objc.Call[objc.Void](c_, objc.Sel("presentDrawable:atTime:"), po0, presentationTime) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2869549-popdebuggroup?language=objc +func (c_ CommandBufferObject) PopDebugGroup() { + objc.Call[objc.Void](c_, objc.Sel("popDebugGroup")) } func (c_ CommandBufferObject) HasResourceStateCommandEncoderWithDescriptor() bool { @@ -376,15 +355,15 @@ func (c_ CommandBufferObject) ResourceStateCommandEncoderWithDescriptor(resource return rv } -func (c_ CommandBufferObject) HasAccelerationStructureCommandEncoder() bool { - return c_.RespondsToSelector(objc.Sel("accelerationStructureCommandEncoder")) +func (c_ CommandBufferObject) HasRenderCommandEncoderWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("renderCommandEncoderWithDescriptor:")) } -// Creates a ray-tracing acceleration structure command encoder that uses default settings. [Full Topic] +// Creates a render command encoder from a descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3553937-accelerationstructurecommandenco?language=objc -func (c_ CommandBufferObject) AccelerationStructureCommandEncoder() AccelerationStructureCommandEncoderObject { - rv := objc.Call[AccelerationStructureCommandEncoderObject](c_, objc.Sel("accelerationStructureCommandEncoder")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1442999-rendercommandencoderwithdescript?language=objc +func (c_ CommandBufferObject) RenderCommandEncoderWithDescriptor(renderPassDescriptor RenderPassDescriptor) RenderCommandEncoderObject { + rv := objc.Call[RenderCommandEncoderObject](c_, objc.Sel("renderCommandEncoderWithDescriptor:"), renderPassDescriptor) return rv } @@ -399,120 +378,110 @@ func (c_ CommandBufferObject) AddScheduledHandler(block CommandBufferHandler) { objc.Call[objc.Void](c_, objc.Sel("addScheduledHandler:"), block) } -func (c_ CommandBufferObject) HasWaitUntilCompleted() bool { - return c_.RespondsToSelector(objc.Sel("waitUntilCompleted")) +func (c_ CommandBufferObject) HasComputeCommandEncoderWithDispatchType() bool { + return c_.RespondsToSelector(objc.Sel("computeCommandEncoderWithDispatchType:")) } -// Blocks the current thread until the GPU finishes executing the command buffer and all of its completion handlers. [Full Topic] +// Creates a compute command encoder with a dispatch type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443039-waituntilcompleted?language=objc -func (c_ CommandBufferObject) WaitUntilCompleted() { - objc.Call[objc.Void](c_, objc.Sel("waitUntilCompleted")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2966541-computecommandencoderwithdispatc?language=objc +func (c_ CommandBufferObject) ComputeCommandEncoderWithDispatchType(dispatchType DispatchType) ComputeCommandEncoderObject { + rv := objc.Call[ComputeCommandEncoderObject](c_, objc.Sel("computeCommandEncoderWithDispatchType:"), dispatchType) + return rv } -func (c_ CommandBufferObject) HasPushDebugGroup() bool { - return c_.RespondsToSelector(objc.Sel("pushDebugGroup:")) +func (c_ CommandBufferObject) HasWaitUntilScheduled() bool { + return c_.RespondsToSelector(objc.Sel("waitUntilScheduled")) } -// Marks the beginning of a debug group and gives it an identifying label, which temporarily replaces the previous group, if applicable. [Full Topic] +// Blocks the current thread until the command queue schedules the buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2869550-pushdebuggroup?language=objc -func (c_ CommandBufferObject) PushDebugGroup(string_ string) { - objc.Call[objc.Void](c_, objc.Sel("pushDebugGroup:"), string_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443036-waituntilscheduled?language=objc +func (c_ CommandBufferObject) WaitUntilScheduled() { + objc.Call[objc.Void](c_, objc.Sel("waitUntilScheduled")) } -func (c_ CommandBufferObject) HasBlitCommandEncoderWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("blitCommandEncoderWithDescriptor:")) +func (c_ CommandBufferObject) HasRetainedReferences() bool { + return c_.RespondsToSelector(objc.Sel("retainedReferences")) } -// Creates a block information transfer (blit) encoder from a descriptor. [Full Topic] +// A Boolean value that indicates whether the command buffer maintains strong references to the resources it uses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3564431-blitcommandencoderwithdescriptor?language=objc -func (c_ CommandBufferObject) BlitCommandEncoderWithDescriptor(blitPassDescriptor BlitPassDescriptor) BlitCommandEncoderObject { - rv := objc.Call[BlitCommandEncoderObject](c_, objc.Sel("blitCommandEncoderWithDescriptor:"), blitPassDescriptor) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443011-retainedreferences?language=objc +func (c_ CommandBufferObject) RetainedReferences() bool { + rv := objc.Call[bool](c_, objc.Sel("retainedReferences")) return rv } -func (c_ CommandBufferObject) HasLogs() bool { - return c_.RespondsToSelector(objc.Sel("logs")) +func (c_ CommandBufferObject) HasGPUStartTime() bool { + return c_.RespondsToSelector(objc.Sel("GPUStartTime")) } -// The messages the command buffer records as the GPU runs its commands. [Full Topic] +// The host time, in seconds, when the GPU starts command buffer execution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3553939-logs?language=objc -func (c_ CommandBufferObject) Logs() LogContainerObject { - rv := objc.Call[LogContainerObject](c_, objc.Sel("logs")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1639924-gpustarttime?language=objc +func (c_ CommandBufferObject) GPUStartTime() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("GPUStartTime")) return rv } -func (c_ CommandBufferObject) HasSetLabel() bool { - return c_.RespondsToSelector(objc.Sel("setLabel:")) -} - -// An optional name that can help you identify the command buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443031-label?language=objc -func (c_ CommandBufferObject) SetLabel(value string) { - objc.Call[objc.Void](c_, objc.Sel("setLabel:"), value) -} - -func (c_ CommandBufferObject) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ CommandBufferObject) HasCommandQueue() bool { + return c_.RespondsToSelector(objc.Sel("commandQueue")) } -// An optional name that can help you identify the command buffer. [Full Topic] +// The command queue that creates the command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443031-label?language=objc -func (c_ CommandBufferObject) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443015-commandqueue?language=objc +func (c_ CommandBufferObject) CommandQueue() CommandQueueObject { + rv := objc.Call[CommandQueueObject](c_, objc.Sel("commandQueue")) return rv } -func (c_ CommandBufferObject) HasStatus() bool { - return c_.RespondsToSelector(objc.Sel("status")) +func (c_ CommandBufferObject) HasError() bool { + return c_.RespondsToSelector(objc.Sel("error")) } -// The command buffer’s current state. [Full Topic] +// A description of an error when the GPU encounters an issue as it runs the command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443048-status?language=objc -func (c_ CommandBufferObject) Status() CommandBufferStatus { - rv := objc.Call[CommandBufferStatus](c_, objc.Sel("status")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443040-error?language=objc +func (c_ CommandBufferObject) Error() foundation.Error { + rv := objc.Call[foundation.Error](c_, objc.Sel("error")) return rv } -func (c_ CommandBufferObject) HasErrorOptions() bool { - return c_.RespondsToSelector(objc.Sel("errorOptions")) +func (c_ CommandBufferObject) HasGPUEndTime() bool { + return c_.RespondsToSelector(objc.Sel("GPUEndTime")) } -// Settings that determine which information the command buffer records about execution errors, and how it does it. [Full Topic] +// The host time, in seconds, when the GPU finishes execution of the command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3553938-erroroptions?language=objc -func (c_ CommandBufferObject) ErrorOptions() CommandBufferErrorOption { - rv := objc.Call[CommandBufferErrorOption](c_, objc.Sel("errorOptions")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1639926-gpuendtime?language=objc +func (c_ CommandBufferObject) GPUEndTime() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("GPUEndTime")) return rv } -func (c_ CommandBufferObject) HasRetainedReferences() bool { - return c_.RespondsToSelector(objc.Sel("retainedReferences")) +func (c_ CommandBufferObject) HasLogs() bool { + return c_.RespondsToSelector(objc.Sel("logs")) } -// A Boolean value that indicates whether the command buffer maintains strong references to the resources it uses. [Full Topic] +// The messages the command buffer records as the GPU runs its commands. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443011-retainedreferences?language=objc -func (c_ CommandBufferObject) RetainedReferences() bool { - rv := objc.Call[bool](c_, objc.Sel("retainedReferences")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3553939-logs?language=objc +func (c_ CommandBufferObject) Logs() LogContainerObject { + rv := objc.Call[LogContainerObject](c_, objc.Sel("logs")) return rv } -func (c_ CommandBufferObject) HasGPUStartTime() bool { - return c_.RespondsToSelector(objc.Sel("GPUStartTime")) +func (c_ CommandBufferObject) HasKernelStartTime() bool { + return c_.RespondsToSelector(objc.Sel("kernelStartTime")) } -// The host time, in seconds, when the GPU starts command buffer execution. [Full Topic] +// The host time, in seconds, when the CPU begins to schedule the command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1639924-gpustarttime?language=objc -func (c_ CommandBufferObject) GPUStartTime() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("GPUStartTime")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1639925-kernelstarttime?language=objc +func (c_ CommandBufferObject) KernelStartTime() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("kernelStartTime")) return rv } @@ -528,62 +497,61 @@ func (c_ CommandBufferObject) Device() DeviceObject { return rv } -func (c_ CommandBufferObject) HasKernelEndTime() bool { - return c_.RespondsToSelector(objc.Sel("kernelEndTime")) +func (c_ CommandBufferObject) HasErrorOptions() bool { + return c_.RespondsToSelector(objc.Sel("errorOptions")) } -// The host time, in seconds, when the CPU finishes scheduling the command buffer. [Full Topic] +// Settings that determine which information the command buffer records about execution errors, and how it does it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1640027-kernelendtime?language=objc -func (c_ CommandBufferObject) KernelEndTime() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("kernelEndTime")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3553938-erroroptions?language=objc +func (c_ CommandBufferObject) ErrorOptions() CommandBufferErrorOption { + rv := objc.Call[CommandBufferErrorOption](c_, objc.Sel("errorOptions")) return rv } -func (c_ CommandBufferObject) HasCommandQueue() bool { - return c_.RespondsToSelector(objc.Sel("commandQueue")) +func (c_ CommandBufferObject) HasKernelEndTime() bool { + return c_.RespondsToSelector(objc.Sel("kernelEndTime")) } -// The command queue that creates the command buffer. [Full Topic] +// The host time, in seconds, when the CPU finishes scheduling the command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443015-commandqueue?language=objc -func (c_ CommandBufferObject) CommandQueue() CommandQueueObject { - rv := objc.Call[CommandQueueObject](c_, objc.Sel("commandQueue")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1640027-kernelendtime?language=objc +func (c_ CommandBufferObject) KernelEndTime() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("kernelEndTime")) return rv } -func (c_ CommandBufferObject) HasKernelStartTime() bool { - return c_.RespondsToSelector(objc.Sel("kernelStartTime")) +func (c_ CommandBufferObject) HasSetLabel() bool { + return c_.RespondsToSelector(objc.Sel("setLabel:")) } -// The host time, in seconds, when the CPU begins to schedule the command buffer. [Full Topic] +// An optional name that can help you identify the command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1639925-kernelstarttime?language=objc -func (c_ CommandBufferObject) KernelStartTime() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("kernelStartTime")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443031-label?language=objc +func (c_ CommandBufferObject) SetLabel(value string) { + objc.Call[objc.Void](c_, objc.Sel("setLabel:"), value) } -func (c_ CommandBufferObject) HasError() bool { - return c_.RespondsToSelector(objc.Sel("error")) +func (c_ CommandBufferObject) HasLabel() bool { + return c_.RespondsToSelector(objc.Sel("label")) } -// A description of an error when the GPU encounters an issue as it runs the command buffer. [Full Topic] +// An optional name that can help you identify the command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443040-error?language=objc -func (c_ CommandBufferObject) Error() foundation.Error { - rv := objc.Call[foundation.Error](c_, objc.Sel("error")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443031-label?language=objc +func (c_ CommandBufferObject) Label() string { + rv := objc.Call[string](c_, objc.Sel("label")) return rv } -func (c_ CommandBufferObject) HasGPUEndTime() bool { - return c_.RespondsToSelector(objc.Sel("GPUEndTime")) +func (c_ CommandBufferObject) HasStatus() bool { + return c_.RespondsToSelector(objc.Sel("status")) } -// The host time, in seconds, when the GPU finishes execution of the command buffer. [Full Topic] +// The command buffer’s current state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1639926-gpuendtime?language=objc -func (c_ CommandBufferObject) GPUEndTime() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("GPUEndTime")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443048-status?language=objc +func (c_ CommandBufferObject) Status() CommandBufferStatus { + rv := objc.Call[CommandBufferStatus](c_, objc.Sel("status")) return rv } diff --git a/macos/metal/command_encoder_protocol.gen.go b/macos/metal/command_encoder_protocol.gen.go index c985b739..a62a64be 100644 --- a/macos/metal/command_encoder_protocol.gen.go +++ b/macos/metal/command_encoder_protocol.gen.go @@ -10,10 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandencoder?language=objc type PCommandEncoder interface { - // optional - EndEncoding() - HasEndEncoding() bool - // optional PushDebugGroup(string_ string) HasPushDebugGroup() bool @@ -26,6 +22,14 @@ type PCommandEncoder interface { InsertDebugSignpost(string_ string) HasInsertDebugSignpost() bool + // optional + EndEncoding() + HasEndEncoding() bool + + // optional + Device() DeviceObject + HasDevice() bool + // optional SetLabel(value string) HasSetLabel() bool @@ -33,10 +37,6 @@ type PCommandEncoder interface { // optional Label() string HasLabel() bool - - // optional - Device() DeviceObject - HasDevice() bool } // ensure impl type implements protocol interface @@ -47,17 +47,6 @@ type CommandEncoderObject struct { objc.Object } -func (c_ CommandEncoderObject) HasEndEncoding() bool { - return c_.RespondsToSelector(objc.Sel("endEncoding")) -} - -// Declares that all command generation from the encoder is completed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandencoder/1458038-endencoding?language=objc -func (c_ CommandEncoderObject) EndEncoding() { - objc.Call[objc.Void](c_, objc.Sel("endEncoding")) -} - func (c_ CommandEncoderObject) HasPushDebugGroup() bool { return c_.RespondsToSelector(objc.Sel("pushDebugGroup:")) } @@ -91,6 +80,29 @@ func (c_ CommandEncoderObject) InsertDebugSignpost(string_ string) { objc.Call[objc.Void](c_, objc.Sel("insertDebugSignpost:"), string_) } +func (c_ CommandEncoderObject) HasEndEncoding() bool { + return c_.RespondsToSelector(objc.Sel("endEncoding")) +} + +// Declares that all command generation from the encoder is completed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandencoder/1458038-endencoding?language=objc +func (c_ CommandEncoderObject) EndEncoding() { + objc.Call[objc.Void](c_, objc.Sel("endEncoding")) +} + +func (c_ CommandEncoderObject) HasDevice() bool { + return c_.RespondsToSelector(objc.Sel("device")) +} + +// The Metal device from which the command encoder was created. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandencoder/1458032-device?language=objc +func (c_ CommandEncoderObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](c_, objc.Sel("device")) + return rv +} + func (c_ CommandEncoderObject) HasSetLabel() bool { return c_.RespondsToSelector(objc.Sel("setLabel:")) } @@ -113,15 +125,3 @@ func (c_ CommandEncoderObject) Label() string { rv := objc.Call[string](c_, objc.Sel("label")) return rv } - -func (c_ CommandEncoderObject) HasDevice() bool { - return c_.RespondsToSelector(objc.Sel("device")) -} - -// The Metal device from which the command encoder was created. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandencoder/1458032-device?language=objc -func (c_ CommandEncoderObject) Device() DeviceObject { - rv := objc.Call[DeviceObject](c_, objc.Sel("device")) - return rv -} diff --git a/macos/metal/command_queue_protocol.gen.go b/macos/metal/command_queue_protocol.gen.go index cb47c4b4..78fc8b32 100644 --- a/macos/metal/command_queue_protocol.gen.go +++ b/macos/metal/command_queue_protocol.gen.go @@ -14,13 +14,17 @@ type PCommandQueue interface { CommandBuffer() CommandBufferObject HasCommandBuffer() bool + // optional + CommandBufferWithDescriptor(descriptor CommandBufferDescriptor) CommandBufferObject + HasCommandBufferWithDescriptor() bool + // optional CommandBufferWithUnretainedReferences() CommandBufferObject HasCommandBufferWithUnretainedReferences() bool // optional - CommandBufferWithDescriptor(descriptor CommandBufferDescriptor) CommandBufferObject - HasCommandBufferWithDescriptor() bool + Device() DeviceObject + HasDevice() bool // optional SetLabel(value string) @@ -29,10 +33,6 @@ type PCommandQueue interface { // optional Label() string HasLabel() bool - - // optional - Device() DeviceObject - HasDevice() bool } // ensure impl type implements protocol interface @@ -55,6 +55,18 @@ func (c_ CommandQueueObject) CommandBuffer() CommandBufferObject { return rv } +func (c_ CommandQueueObject) HasCommandBufferWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("commandBufferWithDescriptor:")) +} + +// Returns a command buffer from the command queue that you configure with a descriptor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandqueue/3553957-commandbufferwithdescriptor?language=objc +func (c_ CommandQueueObject) CommandBufferWithDescriptor(descriptor CommandBufferDescriptor) CommandBufferObject { + rv := objc.Call[CommandBufferObject](c_, objc.Sel("commandBufferWithDescriptor:"), descriptor) + return rv +} + func (c_ CommandQueueObject) HasCommandBufferWithUnretainedReferences() bool { return c_.RespondsToSelector(objc.Sel("commandBufferWithUnretainedReferences")) } @@ -67,15 +79,15 @@ func (c_ CommandQueueObject) CommandBufferWithUnretainedReferences() CommandBuff return rv } -func (c_ CommandQueueObject) HasCommandBufferWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("commandBufferWithDescriptor:")) +func (c_ CommandQueueObject) HasDevice() bool { + return c_.RespondsToSelector(objc.Sel("device")) } -// Returns a command buffer from the command queue that you configure with a descriptor. [Full Topic] +// The GPU device that creates the command queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandqueue/3553957-commandbufferwithdescriptor?language=objc -func (c_ CommandQueueObject) CommandBufferWithDescriptor(descriptor CommandBufferDescriptor) CommandBufferObject { - rv := objc.Call[CommandBufferObject](c_, objc.Sel("commandBufferWithDescriptor:"), descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandqueue/1508687-device?language=objc +func (c_ CommandQueueObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](c_, objc.Sel("device")) return rv } @@ -101,15 +113,3 @@ func (c_ CommandQueueObject) Label() string { rv := objc.Call[string](c_, objc.Sel("label")) return rv } - -func (c_ CommandQueueObject) HasDevice() bool { - return c_.RespondsToSelector(objc.Sel("device")) -} - -// The GPU device that creates the command queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandqueue/1508687-device?language=objc -func (c_ CommandQueueObject) Device() DeviceObject { - rv := objc.Call[DeviceObject](c_, objc.Sel("device")) - return rv -} diff --git a/macos/metal/compile_options.gen.go b/macos/metal/compile_options.gen.go index 3a44d417..80347e42 100644 --- a/macos/metal/compile_options.gen.go +++ b/macos/metal/compile_options.gen.go @@ -18,20 +18,20 @@ type _CompileOptionsClass struct { // An interface definition for the [CompileOptions] class. type ICompileOptions interface { objc.IObject + InstallName() string + SetInstallName(value string) + LibraryType() LibraryType + SetLibraryType(value LibraryType) PreprocessorMacros() map[string]objc.Object SetPreprocessorMacros(value map[string]objc.IObject) - Libraries() []DynamicLibraryObject - SetLibraries(value []PDynamicLibrary) FastMathEnabled() bool SetFastMathEnabled(value bool) PreserveInvariance() bool SetPreserveInvariance(value bool) - InstallName() string - SetInstallName(value string) LanguageVersion() LanguageVersion SetLanguageVersion(value LanguageVersion) - LibraryType() LibraryType - SetLibraryType(value LibraryType) + Libraries() []DynamicLibraryObject + SetLibraries(value []PDynamicLibrary) } // Compilation settings for a Metal shader library. [Full Topic] @@ -67,6 +67,36 @@ func (c_ CompileOptions) Init() CompileOptions { return rv } +// For a dynamic library, the name to use when installing the library. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554034-installname?language=objc +func (c_ CompileOptions) InstallName() string { + rv := objc.Call[string](c_, objc.Sel("installName")) + return rv +} + +// For a dynamic library, the name to use when installing the library. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554034-installname?language=objc +func (c_ CompileOptions) SetInstallName(value string) { + objc.Call[objc.Void](c_, objc.Sel("setInstallName:"), value) +} + +// The kind of library to create. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554036-librarytype?language=objc +func (c_ CompileOptions) LibraryType() LibraryType { + rv := objc.Call[LibraryType](c_, objc.Sel("libraryType")) + return rv +} + +// The kind of library to create. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554036-librarytype?language=objc +func (c_ CompileOptions) SetLibraryType(value LibraryType) { + objc.Call[objc.Void](c_, objc.Sel("setLibraryType:"), value) +} + // A list of preprocessor macros to apply when compiling the library source. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/1516172-preprocessormacros?language=objc @@ -82,21 +112,6 @@ func (c_ CompileOptions) SetPreprocessorMacros(value map[string]objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setPreprocessorMacros:"), value) } -// An array of dynamic libraries the Metal compiler links against. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554035-libraries?language=objc -func (c_ CompileOptions) Libraries() []DynamicLibraryObject { - rv := objc.Call[[]DynamicLibraryObject](c_, objc.Sel("libraries")) - return rv -} - -// An array of dynamic libraries the Metal compiler links against. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554035-libraries?language=objc -func (c_ CompileOptions) SetLibraries(value []PDynamicLibrary) { - objc.Call[objc.Void](c_, objc.Sel("setLibraries:"), value) -} - // A Boolean value that indicates whether the compiler can perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/1515914-fastmathenabled?language=objc @@ -127,21 +142,6 @@ func (c_ CompileOptions) SetPreserveInvariance(value bool) { objc.Call[objc.Void](c_, objc.Sel("setPreserveInvariance:"), value) } -// For a dynamic library, the name to use when installing the library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554034-installname?language=objc -func (c_ CompileOptions) InstallName() string { - rv := objc.Call[string](c_, objc.Sel("installName")) - return rv -} - -// For a dynamic library, the name to use when installing the library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554034-installname?language=objc -func (c_ CompileOptions) SetInstallName(value string) { - objc.Call[objc.Void](c_, objc.Sel("setInstallName:"), value) -} - // The language version used to interpret the library source code. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/1515494-languageversion?language=objc @@ -157,17 +157,17 @@ func (c_ CompileOptions) SetLanguageVersion(value LanguageVersion) { objc.Call[objc.Void](c_, objc.Sel("setLanguageVersion:"), value) } -// The kind of library to create. [Full Topic] +// An array of dynamic libraries the Metal compiler links against. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554036-librarytype?language=objc -func (c_ CompileOptions) LibraryType() LibraryType { - rv := objc.Call[LibraryType](c_, objc.Sel("libraryType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554035-libraries?language=objc +func (c_ CompileOptions) Libraries() []DynamicLibraryObject { + rv := objc.Call[[]DynamicLibraryObject](c_, objc.Sel("libraries")) return rv } -// The kind of library to create. [Full Topic] +// An array of dynamic libraries the Metal compiler links against. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554036-librarytype?language=objc -func (c_ CompileOptions) SetLibraryType(value LibraryType) { - objc.Call[objc.Void](c_, objc.Sel("setLibraryType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554035-libraries?language=objc +func (c_ CompileOptions) SetLibraries(value []PDynamicLibrary) { + objc.Call[objc.Void](c_, objc.Sel("setLibraries:"), value) } diff --git a/macos/metal/compute_command_encoder_protocol.gen.go b/macos/metal/compute_command_encoder_protocol.gen.go index 2e509344..7b2da583 100644 --- a/macos/metal/compute_command_encoder_protocol.gen.go +++ b/macos/metal/compute_command_encoder_protocol.gen.go @@ -14,140 +14,128 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder?language=objc type PComputeCommandEncoder interface { // optional - MemoryBarrierWithScope(scope BarrierScope) - HasMemoryBarrierWithScope() bool + SetThreadgroupMemoryLengthAtIndex(length uint, index uint) + HasSetThreadgroupMemoryLengthAtIndex() bool // optional - UseHeapsCount(heaps unsafe.Pointer, count uint) - HasUseHeapsCount() bool + SetSamplerStateAtIndex(sampler SamplerStateObject, index uint) + HasSetSamplerStateAtIndex() bool // optional - UseHeap(heap HeapObject) - HasUseHeap() bool + SetComputePipelineState(state ComputePipelineStateObject) + HasSetComputePipelineState() bool // optional - SetBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) - HasSetBufferOffsetAtIndex_() bool + SetStageInRegionWithIndirectBufferIndirectBufferOffset(indirectBuffer BufferObject, indirectBufferOffset uint) + HasSetStageInRegionWithIndirectBufferIndirectBufferOffset() bool // optional - SetBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) - HasSetBytesLengthAtIndex() bool + SetBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) + HasSetBuffersOffsetsWithRange() bool // optional - SetIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) - HasSetIntersectionFunctionTableAtBufferIndex() bool + UseResourceUsage(resource ResourceObject, usage ResourceUsage) + HasUseResourceUsage() bool // optional - SetIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) - HasSetIntersectionFunctionTablesWithBufferRange() bool + SetVisibleFunctionTableAtBufferIndex(visibleFunctionTable VisibleFunctionTableObject, bufferIndex uint) + HasSetVisibleFunctionTableAtBufferIndex() bool // optional - SetTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) - HasSetTexturesWithRange() bool + SetBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) + HasSetBytesLengthAtIndex() bool + + // optional + SetSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) + HasSetSamplerStatesWithRange() bool // optional MemoryBarrierWithResourcesCount(resources unsafe.Pointer, count uint) HasMemoryBarrierWithResourcesCount() bool // optional - DispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup(indirectBuffer BufferObject, indirectBufferOffset uint, threadsPerThreadgroup Size) - HasDispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup() bool + SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) + HasSampleCountersInBufferAtSampleIndexWithBarrier() bool // optional SetAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) HasSetAccelerationStructureAtBufferIndex() bool - // optional - SetSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) - HasSetSamplerStatesWithRange() bool - // optional SetStageInRegion(region Region) HasSetStageInRegion() bool // optional - SetVisibleFunctionTablesWithBufferRange(visibleFunctionTables unsafe.Pointer, range_ foundation.Range) - HasSetVisibleFunctionTablesWithBufferRange() bool + SetBufferOffsetAtIndex(offset uint, index uint) + HasSetBufferOffsetAtIndex() bool // optional - WaitForFence(fence FenceObject) - HasWaitForFence() bool + DispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid Size, threadsPerThreadgroup Size) + HasDispatchThreadgroupsThreadsPerThreadgroup() bool // optional ExecuteCommandsInBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, executionRange foundation.Range) HasExecuteCommandsInBufferWithRange() bool // optional - DispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) - HasDispatchThreadsThreadsPerThreadgroup() bool - - // optional - SetStageInRegionWithIndirectBufferIndirectBufferOffset(indirectBuffer BufferObject, indirectBufferOffset uint) - HasSetStageInRegionWithIndirectBufferIndirectBufferOffset() bool - - // optional - DispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid Size, threadsPerThreadgroup Size) - HasDispatchThreadgroupsThreadsPerThreadgroup() bool + SetVisibleFunctionTablesWithBufferRange(visibleFunctionTables unsafe.Pointer, range_ foundation.Range) + HasSetVisibleFunctionTablesWithBufferRange() bool // optional - SetSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) - HasSetSamplerStatesLodMinClampsLodMaxClampsWithRange() bool + SetTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) + HasSetTexturesWithRange() bool // optional - SetSamplerStateAtIndex(sampler SamplerStateObject, index uint) - HasSetSamplerStateAtIndex() bool + MemoryBarrierWithScope(scope BarrierScope) + HasMemoryBarrierWithScope() bool // optional - UseResourceUsage(resource ResourceObject, usage ResourceUsage) - HasUseResourceUsage() bool + DispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) + HasDispatchThreadsThreadsPerThreadgroup() bool // optional - SetSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float32, lodMaxClamp float32, index uint) - HasSetSamplerStateLodMinClampLodMaxClampAtIndex() bool + SetIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) + HasSetIntersectionFunctionTableAtBufferIndex() bool // optional SetTextureAtIndex(texture TextureObject, index uint) HasSetTextureAtIndex() bool // optional - SetBufferOffsetAtIndex(offset uint, index uint) - HasSetBufferOffsetAtIndex() bool - - // optional - ExecuteCommandsInBufferIndirectBufferIndirectBufferOffset(indirectCommandbuffer IndirectCommandBufferObject, indirectRangeBuffer BufferObject, indirectBufferOffset uint) - HasExecuteCommandsInBufferIndirectBufferIndirectBufferOffset() bool - - // optional - SetVisibleFunctionTableAtBufferIndex(visibleFunctionTable VisibleFunctionTableObject, bufferIndex uint) - HasSetVisibleFunctionTableAtBufferIndex() bool + SetIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) + HasSetIntersectionFunctionTablesWithBufferRange() bool // optional - SetBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) - HasSetBuffersOffsetsWithRange() bool + DispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup(indirectBuffer BufferObject, indirectBufferOffset uint, threadsPerThreadgroup Size) + HasDispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup() bool // optional - SetImageblockWidthHeight(width uint, height uint) - HasSetImageblockWidthHeight() bool + UseHeap(heap HeapObject) + HasUseHeap() bool // optional - SetComputePipelineState(state ComputePipelineStateObject) - HasSetComputePipelineState() bool + SetBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) + HasSetBufferOffsetAtIndex_() bool // optional UseResourcesCountUsage(resources unsafe.Pointer, count uint, usage ResourceUsage) HasUseResourcesCountUsage() bool + // optional + UseHeapsCount(heaps unsafe.Pointer, count uint) + HasUseHeapsCount() bool + // optional UpdateFence(fence FenceObject) HasUpdateFence() bool // optional - SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) - HasSampleCountersInBufferAtSampleIndexWithBarrier() bool + SetImageblockWidthHeight(width uint, height uint) + HasSetImageblockWidthHeight() bool // optional - SetThreadgroupMemoryLengthAtIndex(length uint, index uint) - HasSetThreadgroupMemoryLengthAtIndex() bool + WaitForFence(fence FenceObject) + HasWaitForFence() bool // optional DispatchType() DispatchType @@ -162,98 +150,110 @@ type ComputeCommandEncoderObject struct { objc.Object } -func (c_ ComputeCommandEncoderObject) HasMemoryBarrierWithScope() bool { - return c_.RespondsToSelector(objc.Sel("memoryBarrierWithScope:")) +func (c_ ComputeCommandEncoderObject) HasSetThreadgroupMemoryLengthAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:atIndex:")) } -// Encodes a barrier so that changes to a set of resource types made by commands encoded before the barrier are completed before further commands are executed. [Full Topic] +// Sets the size of a block of threadgroup memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2966553-memorybarrierwithscope?language=objc -func (c_ ComputeCommandEncoderObject) MemoryBarrierWithScope(scope BarrierScope) { - objc.Call[objc.Void](c_, objc.Sel("memoryBarrierWithScope:"), scope) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443142-setthreadgroupmemorylength?language=objc +func (c_ ComputeCommandEncoderObject) SetThreadgroupMemoryLengthAtIndex(length uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setThreadgroupMemoryLength:atIndex:"), length, index) } -func (c_ ComputeCommandEncoderObject) HasUseHeapsCount() bool { - return c_.RespondsToSelector(objc.Sel("useHeaps:count:")) +func (c_ ComputeCommandEncoderObject) HasSetSamplerStateAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("setSamplerState:atIndex:")) } -// Specifies that an array of heaps containing resources in an argument buffer can be safely used by a compute pass. [Full Topic] +// Sets a sampler for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866538-useheaps?language=objc -func (c_ ComputeCommandEncoderObject) UseHeapsCount(heaps unsafe.Pointer, count uint) { - po0 := objc.WrapAsProtocol("MTLHeap", heaps) - objc.Call[objc.Void](c_, objc.Sel("useHeaps:count:"), po0, count) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443144-setsamplerstate?language=objc +func (c_ ComputeCommandEncoderObject) SetSamplerStateAtIndex(sampler SamplerStateObject, index uint) { + po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) + objc.Call[objc.Void](c_, objc.Sel("setSamplerState:atIndex:"), po0, index) } -func (c_ ComputeCommandEncoderObject) HasUseHeap() bool { - return c_.RespondsToSelector(objc.Sel("useHeap:")) +func (c_ ComputeCommandEncoderObject) HasSetComputePipelineState() bool { + return c_.RespondsToSelector(objc.Sel("setComputePipelineState:")) } -// Specifies that a heap containing resources in an argument buffer can be safely used by a compute pass. [Full Topic] +// Sets the current compute pipeline state object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866530-useheap?language=objc -func (c_ ComputeCommandEncoderObject) UseHeap(heap HeapObject) { - po0 := objc.WrapAsProtocol("MTLHeap", heap) - objc.Call[objc.Void](c_, objc.Sel("useHeap:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443140-setcomputepipelinestate?language=objc +func (c_ ComputeCommandEncoderObject) SetComputePipelineState(state ComputePipelineStateObject) { + po0 := objc.WrapAsProtocol("MTLComputePipelineState", state) + objc.Call[objc.Void](c_, objc.Sel("setComputePipelineState:"), po0) } -func (c_ ComputeCommandEncoderObject) HasSetBufferOffsetAtIndex_() bool { - return c_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) +func (c_ ComputeCommandEncoderObject) HasSetStageInRegionWithIndirectBufferIndirectBufferOffset() bool { + return c_.RespondsToSelector(objc.Sel("setStageInRegionWithIndirectBuffer:indirectBufferOffset:")) } -// Sets a buffer for the compute function. [Full Topic] +// Sets the region of the stage-in attributes to apply to the compute kernel using an indirect buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443126-setbuffer?language=objc -func (c_ ComputeCommandEncoderObject) SetBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](c_, objc.Sel("setBuffer:offset:atIndex:"), po0, offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2966554-setstageinregionwithindirectbuff?language=objc +func (c_ ComputeCommandEncoderObject) SetStageInRegionWithIndirectBufferIndirectBufferOffset(indirectBuffer BufferObject, indirectBufferOffset uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) + objc.Call[objc.Void](c_, objc.Sel("setStageInRegionWithIndirectBuffer:indirectBufferOffset:"), po0, indirectBufferOffset) } -func (c_ ComputeCommandEncoderObject) HasSetBytesLengthAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("setBytes:length:atIndex:")) +func (c_ ComputeCommandEncoderObject) HasSetBuffersOffsetsWithRange() bool { + return c_.RespondsToSelector(objc.Sel("setBuffers:offsets:withRange:")) } -// Sets a block of data for the compute shader. [Full Topic] +// Sets an array of buffers for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443159-setbytes?language=objc -func (c_ ComputeCommandEncoderObject) SetBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setBytes:length:atIndex:"), bytes, length, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443134-setbuffers?language=objc +func (c_ ComputeCommandEncoderObject) SetBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffers) + objc.Call[objc.Void](c_, objc.Sel("setBuffers:offsets:withRange:"), po0, offsets, range_) } -func (c_ ComputeCommandEncoderObject) HasSetIntersectionFunctionTableAtBufferIndex() bool { - return c_.RespondsToSelector(objc.Sel("setIntersectionFunctionTable:atBufferIndex:")) +func (c_ ComputeCommandEncoderObject) HasUseResourceUsage() bool { + return c_.RespondsToSelector(objc.Sel("useResource:usage:")) } -// Sets a intersection function table for the compute function. [Full Topic] +// Specifies that a resource in an argument buffer can be safely used by a compute pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566537-setintersectionfunctiontable?language=objc -func (c_ ComputeCommandEncoderObject) SetIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTable) - objc.Call[objc.Void](c_, objc.Sel("setIntersectionFunctionTable:atBufferIndex:"), po0, bufferIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866548-useresource?language=objc +func (c_ ComputeCommandEncoderObject) UseResourceUsage(resource ResourceObject, usage ResourceUsage) { + po0 := objc.WrapAsProtocol("MTLResource", resource) + objc.Call[objc.Void](c_, objc.Sel("useResource:usage:"), po0, usage) } -func (c_ ComputeCommandEncoderObject) HasSetIntersectionFunctionTablesWithBufferRange() bool { - return c_.RespondsToSelector(objc.Sel("setIntersectionFunctionTables:withBufferRange:")) +func (c_ ComputeCommandEncoderObject) HasSetVisibleFunctionTableAtBufferIndex() bool { + return c_.RespondsToSelector(objc.Sel("setVisibleFunctionTable:atBufferIndex:")) } -// Sets an array of intersection function tables for the compute function. [Full Topic] +// Sets a visible function table for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566538-setintersectionfunctiontables?language=objc -func (c_ ComputeCommandEncoderObject) SetIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) - objc.Call[objc.Void](c_, objc.Sel("setIntersectionFunctionTables:withBufferRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566539-setvisiblefunctiontable?language=objc +func (c_ ComputeCommandEncoderObject) SetVisibleFunctionTableAtBufferIndex(visibleFunctionTable VisibleFunctionTableObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", visibleFunctionTable) + objc.Call[objc.Void](c_, objc.Sel("setVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) } -func (c_ ComputeCommandEncoderObject) HasSetTexturesWithRange() bool { - return c_.RespondsToSelector(objc.Sel("setTextures:withRange:")) +func (c_ ComputeCommandEncoderObject) HasSetBytesLengthAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("setBytes:length:atIndex:")) } -// Sets an array of textures for the compute function. [Full Topic] +// Sets a block of data for the compute shader. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443148-settextures?language=objc -func (c_ ComputeCommandEncoderObject) SetTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLTexture", textures) - objc.Call[objc.Void](c_, objc.Sel("setTextures:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443159-setbytes?language=objc +func (c_ ComputeCommandEncoderObject) SetBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setBytes:length:atIndex:"), bytes, length, index) +} + +func (c_ ComputeCommandEncoderObject) HasSetSamplerStatesWithRange() bool { + return c_.RespondsToSelector(objc.Sel("setSamplerStates:withRange:")) +} + +// Sets multiple samplers for the compute function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443155-setsamplerstates?language=objc +func (c_ ComputeCommandEncoderObject) SetSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) + objc.Call[objc.Void](c_, objc.Sel("setSamplerStates:withRange:"), po0, range_) } func (c_ ComputeCommandEncoderObject) HasMemoryBarrierWithResourcesCount() bool { @@ -268,16 +268,16 @@ func (c_ ComputeCommandEncoderObject) MemoryBarrierWithResourcesCount(resources objc.Call[objc.Void](c_, objc.Sel("memoryBarrierWithResources:count:"), po0, count) } -func (c_ ComputeCommandEncoderObject) HasDispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup() bool { - return c_.RespondsToSelector(objc.Sel("dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:")) +func (c_ ComputeCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { + return c_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) } -// Encodes a dispatch call for a compute pass, using an indirect buffer that defines the size of a grid aligned to threadgroup boundaries. [Full Topic] +// Encodes a command to sample hardware counters at this point in the compute pass and store the samples into a counter sample buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443157-dispatchthreadgroupswithindirect?language=objc -func (c_ ComputeCommandEncoderObject) DispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup(indirectBuffer BufferObject, indirectBufferOffset uint, threadsPerThreadgroup Size) { - po0 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) - objc.Call[objc.Void](c_, objc.Sel("dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:"), po0, indirectBufferOffset, threadsPerThreadgroup) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3194349-samplecountersinbuffer?language=objc +func (c_ ComputeCommandEncoderObject) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) { + po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) + objc.Call[objc.Void](c_, objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:"), po0, sampleIndex, barrier) } func (c_ ComputeCommandEncoderObject) HasSetAccelerationStructureAtBufferIndex() bool { @@ -292,18 +292,6 @@ func (c_ ComputeCommandEncoderObject) SetAccelerationStructureAtBufferIndex(acce objc.Call[objc.Void](c_, objc.Sel("setAccelerationStructure:atBufferIndex:"), po0, bufferIndex) } -func (c_ ComputeCommandEncoderObject) HasSetSamplerStatesWithRange() bool { - return c_.RespondsToSelector(objc.Sel("setSamplerStates:withRange:")) -} - -// Sets multiple samplers for the compute function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443155-setsamplerstates?language=objc -func (c_ ComputeCommandEncoderObject) SetSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](c_, objc.Sel("setSamplerStates:withRange:"), po0, range_) -} - func (c_ ComputeCommandEncoderObject) HasSetStageInRegion() bool { return c_.RespondsToSelector(objc.Sel("setStageInRegion:")) } @@ -315,28 +303,26 @@ func (c_ ComputeCommandEncoderObject) SetStageInRegion(region Region) { objc.Call[objc.Void](c_, objc.Sel("setStageInRegion:"), region) } -func (c_ ComputeCommandEncoderObject) HasSetVisibleFunctionTablesWithBufferRange() bool { - return c_.RespondsToSelector(objc.Sel("setVisibleFunctionTables:withBufferRange:")) +func (c_ ComputeCommandEncoderObject) HasSetBufferOffsetAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("setBufferOffset:atIndex:")) } -// Sets an array of visible function tables for the compute function. [Full Topic] +// Sets where the data begins in a buffer already bound to the compute shader. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566540-setvisiblefunctiontables?language=objc -func (c_ ComputeCommandEncoderObject) SetVisibleFunctionTablesWithBufferRange(visibleFunctionTables unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", visibleFunctionTables) - objc.Call[objc.Void](c_, objc.Sel("setVisibleFunctionTables:withBufferRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443146-setbufferoffset?language=objc +func (c_ ComputeCommandEncoderObject) SetBufferOffsetAtIndex(offset uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setBufferOffset:atIndex:"), offset, index) } -func (c_ ComputeCommandEncoderObject) HasWaitForFence() bool { - return c_.RespondsToSelector(objc.Sel("waitForFence:")) +func (c_ ComputeCommandEncoderObject) HasDispatchThreadgroupsThreadsPerThreadgroup() bool { + return c_.RespondsToSelector(objc.Sel("dispatchThreadgroups:threadsPerThreadgroup:")) } -// Tells the GPU to wait until the fence is updated before executing any commands encoded by the compute command encoder. [Full Topic] +// Encodes a compute command using a grid aligned to threadgroup boundaries. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1649790-waitforfence?language=objc -func (c_ ComputeCommandEncoderObject) WaitForFence(fence FenceObject) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](c_, objc.Sel("waitForFence:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443138-dispatchthreadgroups?language=objc +func (c_ ComputeCommandEncoderObject) DispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid Size, threadsPerThreadgroup Size) { + objc.Call[objc.Void](c_, objc.Sel("dispatchThreadgroups:threadsPerThreadgroup:"), threadgroupsPerGrid, threadsPerThreadgroup) } func (c_ ComputeCommandEncoderObject) HasExecuteCommandsInBufferWithRange() bool { @@ -351,86 +337,62 @@ func (c_ ComputeCommandEncoderObject) ExecuteCommandsInBufferWithRange(indirectC objc.Call[objc.Void](c_, objc.Sel("executeCommandsInBuffer:withRange:"), po0, executionRange) } -func (c_ ComputeCommandEncoderObject) HasDispatchThreadsThreadsPerThreadgroup() bool { - return c_.RespondsToSelector(objc.Sel("dispatchThreads:threadsPerThreadgroup:")) -} - -// Encodes a compute command using an arbitrarily sized grid. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866532-dispatchthreads?language=objc -func (c_ ComputeCommandEncoderObject) DispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) { - objc.Call[objc.Void](c_, objc.Sel("dispatchThreads:threadsPerThreadgroup:"), threadsPerGrid, threadsPerThreadgroup) -} - -func (c_ ComputeCommandEncoderObject) HasSetStageInRegionWithIndirectBufferIndirectBufferOffset() bool { - return c_.RespondsToSelector(objc.Sel("setStageInRegionWithIndirectBuffer:indirectBufferOffset:")) -} - -// Sets the region of the stage-in attributes to apply to the compute kernel using an indirect buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2966554-setstageinregionwithindirectbuff?language=objc -func (c_ ComputeCommandEncoderObject) SetStageInRegionWithIndirectBufferIndirectBufferOffset(indirectBuffer BufferObject, indirectBufferOffset uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) - objc.Call[objc.Void](c_, objc.Sel("setStageInRegionWithIndirectBuffer:indirectBufferOffset:"), po0, indirectBufferOffset) -} - -func (c_ ComputeCommandEncoderObject) HasDispatchThreadgroupsThreadsPerThreadgroup() bool { - return c_.RespondsToSelector(objc.Sel("dispatchThreadgroups:threadsPerThreadgroup:")) +func (c_ ComputeCommandEncoderObject) HasSetVisibleFunctionTablesWithBufferRange() bool { + return c_.RespondsToSelector(objc.Sel("setVisibleFunctionTables:withBufferRange:")) } -// Encodes a compute command using a grid aligned to threadgroup boundaries. [Full Topic] +// Sets an array of visible function tables for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443138-dispatchthreadgroups?language=objc -func (c_ ComputeCommandEncoderObject) DispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid Size, threadsPerThreadgroup Size) { - objc.Call[objc.Void](c_, objc.Sel("dispatchThreadgroups:threadsPerThreadgroup:"), threadgroupsPerGrid, threadsPerThreadgroup) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566540-setvisiblefunctiontables?language=objc +func (c_ ComputeCommandEncoderObject) SetVisibleFunctionTablesWithBufferRange(visibleFunctionTables unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", visibleFunctionTables) + objc.Call[objc.Void](c_, objc.Sel("setVisibleFunctionTables:withBufferRange:"), po0, range_) } -func (c_ ComputeCommandEncoderObject) HasSetSamplerStatesLodMinClampsLodMaxClampsWithRange() bool { - return c_.RespondsToSelector(objc.Sel("setSamplerStates:lodMinClamps:lodMaxClamps:withRange:")) +func (c_ ComputeCommandEncoderObject) HasSetTexturesWithRange() bool { + return c_.RespondsToSelector(objc.Sel("setTextures:withRange:")) } -// Sets multiple samplers for the compute function, specifying clamp values for the level of detail of each sampler. [Full Topic] +// Sets an array of textures for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443128-setsamplerstates?language=objc -func (c_ ComputeCommandEncoderObject) SetSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](c_, objc.Sel("setSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443148-settextures?language=objc +func (c_ ComputeCommandEncoderObject) SetTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLTexture", textures) + objc.Call[objc.Void](c_, objc.Sel("setTextures:withRange:"), po0, range_) } -func (c_ ComputeCommandEncoderObject) HasSetSamplerStateAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("setSamplerState:atIndex:")) +func (c_ ComputeCommandEncoderObject) HasMemoryBarrierWithScope() bool { + return c_.RespondsToSelector(objc.Sel("memoryBarrierWithScope:")) } -// Sets a sampler for the compute function. [Full Topic] +// Encodes a barrier so that changes to a set of resource types made by commands encoded before the barrier are completed before further commands are executed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443144-setsamplerstate?language=objc -func (c_ ComputeCommandEncoderObject) SetSamplerStateAtIndex(sampler SamplerStateObject, index uint) { - po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) - objc.Call[objc.Void](c_, objc.Sel("setSamplerState:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2966553-memorybarrierwithscope?language=objc +func (c_ ComputeCommandEncoderObject) MemoryBarrierWithScope(scope BarrierScope) { + objc.Call[objc.Void](c_, objc.Sel("memoryBarrierWithScope:"), scope) } -func (c_ ComputeCommandEncoderObject) HasUseResourceUsage() bool { - return c_.RespondsToSelector(objc.Sel("useResource:usage:")) +func (c_ ComputeCommandEncoderObject) HasDispatchThreadsThreadsPerThreadgroup() bool { + return c_.RespondsToSelector(objc.Sel("dispatchThreads:threadsPerThreadgroup:")) } -// Specifies that a resource in an argument buffer can be safely used by a compute pass. [Full Topic] +// Encodes a compute command using an arbitrarily sized grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866548-useresource?language=objc -func (c_ ComputeCommandEncoderObject) UseResourceUsage(resource ResourceObject, usage ResourceUsage) { - po0 := objc.WrapAsProtocol("MTLResource", resource) - objc.Call[objc.Void](c_, objc.Sel("useResource:usage:"), po0, usage) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866532-dispatchthreads?language=objc +func (c_ ComputeCommandEncoderObject) DispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) { + objc.Call[objc.Void](c_, objc.Sel("dispatchThreads:threadsPerThreadgroup:"), threadsPerGrid, threadsPerThreadgroup) } -func (c_ ComputeCommandEncoderObject) HasSetSamplerStateLodMinClampLodMaxClampAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("setSamplerState:lodMinClamp:lodMaxClamp:atIndex:")) +func (c_ ComputeCommandEncoderObject) HasSetIntersectionFunctionTableAtBufferIndex() bool { + return c_.RespondsToSelector(objc.Sel("setIntersectionFunctionTable:atBufferIndex:")) } -// Sets a sampler for the compute function, specifying clamp values for the level of detail. [Full Topic] +// Sets a intersection function table for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443153-setsamplerstate?language=objc -func (c_ ComputeCommandEncoderObject) SetSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float32, lodMaxClamp float32, index uint) { - po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) - objc.Call[objc.Void](c_, objc.Sel("setSamplerState:lodMinClamp:lodMaxClamp:atIndex:"), po0, lodMinClamp, lodMaxClamp, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566537-setintersectionfunctiontable?language=objc +func (c_ ComputeCommandEncoderObject) SetIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTable) + objc.Call[objc.Void](c_, objc.Sel("setIntersectionFunctionTable:atBufferIndex:"), po0, bufferIndex) } func (c_ ComputeCommandEncoderObject) HasSetTextureAtIndex() bool { @@ -445,75 +407,52 @@ func (c_ ComputeCommandEncoderObject) SetTextureAtIndex(texture TextureObject, i objc.Call[objc.Void](c_, objc.Sel("setTexture:atIndex:"), po0, index) } -func (c_ ComputeCommandEncoderObject) HasSetBufferOffsetAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("setBufferOffset:atIndex:")) -} - -// Sets where the data begins in a buffer already bound to the compute shader. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443146-setbufferoffset?language=objc -func (c_ ComputeCommandEncoderObject) SetBufferOffsetAtIndex(offset uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setBufferOffset:atIndex:"), offset, index) -} - -func (c_ ComputeCommandEncoderObject) HasExecuteCommandsInBufferIndirectBufferIndirectBufferOffset() bool { - return c_.RespondsToSelector(objc.Sel("executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:")) -} - -// Encodes a command to execute commands in an indirect command buffer, specifying the range indirectly. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2967418-executecommandsinbuffer?language=objc -func (c_ ComputeCommandEncoderObject) ExecuteCommandsInBufferIndirectBufferIndirectBufferOffset(indirectCommandbuffer IndirectCommandBufferObject, indirectRangeBuffer BufferObject, indirectBufferOffset uint) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", indirectCommandbuffer) - po1 := objc.WrapAsProtocol("MTLBuffer", indirectRangeBuffer) - objc.Call[objc.Void](c_, objc.Sel("executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:"), po0, po1, indirectBufferOffset) -} - -func (c_ ComputeCommandEncoderObject) HasSetVisibleFunctionTableAtBufferIndex() bool { - return c_.RespondsToSelector(objc.Sel("setVisibleFunctionTable:atBufferIndex:")) +func (c_ ComputeCommandEncoderObject) HasSetIntersectionFunctionTablesWithBufferRange() bool { + return c_.RespondsToSelector(objc.Sel("setIntersectionFunctionTables:withBufferRange:")) } -// Sets a visible function table for the compute function. [Full Topic] +// Sets an array of intersection function tables for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566539-setvisiblefunctiontable?language=objc -func (c_ ComputeCommandEncoderObject) SetVisibleFunctionTableAtBufferIndex(visibleFunctionTable VisibleFunctionTableObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", visibleFunctionTable) - objc.Call[objc.Void](c_, objc.Sel("setVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566538-setintersectionfunctiontables?language=objc +func (c_ ComputeCommandEncoderObject) SetIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) + objc.Call[objc.Void](c_, objc.Sel("setIntersectionFunctionTables:withBufferRange:"), po0, range_) } -func (c_ ComputeCommandEncoderObject) HasSetBuffersOffsetsWithRange() bool { - return c_.RespondsToSelector(objc.Sel("setBuffers:offsets:withRange:")) +func (c_ ComputeCommandEncoderObject) HasDispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup() bool { + return c_.RespondsToSelector(objc.Sel("dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:")) } -// Sets an array of buffers for the compute function. [Full Topic] +// Encodes a dispatch call for a compute pass, using an indirect buffer that defines the size of a grid aligned to threadgroup boundaries. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443134-setbuffers?language=objc -func (c_ ComputeCommandEncoderObject) SetBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffers) - objc.Call[objc.Void](c_, objc.Sel("setBuffers:offsets:withRange:"), po0, offsets, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443157-dispatchthreadgroupswithindirect?language=objc +func (c_ ComputeCommandEncoderObject) DispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup(indirectBuffer BufferObject, indirectBufferOffset uint, threadsPerThreadgroup Size) { + po0 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) + objc.Call[objc.Void](c_, objc.Sel("dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:"), po0, indirectBufferOffset, threadsPerThreadgroup) } -func (c_ ComputeCommandEncoderObject) HasSetImageblockWidthHeight() bool { - return c_.RespondsToSelector(objc.Sel("setImageblockWidth:height:")) +func (c_ ComputeCommandEncoderObject) HasUseHeap() bool { + return c_.RespondsToSelector(objc.Sel("useHeap:")) } -// Sets the size, in pixels, of the imageblock. [Full Topic] +// Specifies that a heap containing resources in an argument buffer can be safely used by a compute pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2928282-setimageblockwidth?language=objc -func (c_ ComputeCommandEncoderObject) SetImageblockWidthHeight(width uint, height uint) { - objc.Call[objc.Void](c_, objc.Sel("setImageblockWidth:height:"), width, height) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866530-useheap?language=objc +func (c_ ComputeCommandEncoderObject) UseHeap(heap HeapObject) { + po0 := objc.WrapAsProtocol("MTLHeap", heap) + objc.Call[objc.Void](c_, objc.Sel("useHeap:"), po0) } -func (c_ ComputeCommandEncoderObject) HasSetComputePipelineState() bool { - return c_.RespondsToSelector(objc.Sel("setComputePipelineState:")) +func (c_ ComputeCommandEncoderObject) HasSetBufferOffsetAtIndex_() bool { + return c_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) } -// Sets the current compute pipeline state object. [Full Topic] +// Sets a buffer for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443140-setcomputepipelinestate?language=objc -func (c_ ComputeCommandEncoderObject) SetComputePipelineState(state ComputePipelineStateObject) { - po0 := objc.WrapAsProtocol("MTLComputePipelineState", state) - objc.Call[objc.Void](c_, objc.Sel("setComputePipelineState:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443126-setbuffer?language=objc +func (c_ ComputeCommandEncoderObject) SetBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](c_, objc.Sel("setBuffer:offset:atIndex:"), po0, offset, index) } func (c_ ComputeCommandEncoderObject) HasUseResourcesCountUsage() bool { @@ -528,6 +467,18 @@ func (c_ ComputeCommandEncoderObject) UseResourcesCountUsage(resources unsafe.Po objc.Call[objc.Void](c_, objc.Sel("useResources:count:usage:"), po0, count, usage) } +func (c_ ComputeCommandEncoderObject) HasUseHeapsCount() bool { + return c_.RespondsToSelector(objc.Sel("useHeaps:count:")) +} + +// Specifies that an array of heaps containing resources in an argument buffer can be safely used by a compute pass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866538-useheaps?language=objc +func (c_ ComputeCommandEncoderObject) UseHeapsCount(heaps unsafe.Pointer, count uint) { + po0 := objc.WrapAsProtocol("MTLHeap", heaps) + objc.Call[objc.Void](c_, objc.Sel("useHeaps:count:"), po0, count) +} + func (c_ ComputeCommandEncoderObject) HasUpdateFence() bool { return c_.RespondsToSelector(objc.Sel("updateFence:")) } @@ -540,27 +491,27 @@ func (c_ ComputeCommandEncoderObject) UpdateFence(fence FenceObject) { objc.Call[objc.Void](c_, objc.Sel("updateFence:"), po0) } -func (c_ ComputeCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { - return c_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) +func (c_ ComputeCommandEncoderObject) HasSetImageblockWidthHeight() bool { + return c_.RespondsToSelector(objc.Sel("setImageblockWidth:height:")) } -// Encodes a command to sample hardware counters at this point in the compute pass and store the samples into a counter sample buffer. [Full Topic] +// Sets the size, in pixels, of the imageblock. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3194349-samplecountersinbuffer?language=objc -func (c_ ComputeCommandEncoderObject) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) { - po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) - objc.Call[objc.Void](c_, objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:"), po0, sampleIndex, barrier) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2928282-setimageblockwidth?language=objc +func (c_ ComputeCommandEncoderObject) SetImageblockWidthHeight(width uint, height uint) { + objc.Call[objc.Void](c_, objc.Sel("setImageblockWidth:height:"), width, height) } -func (c_ ComputeCommandEncoderObject) HasSetThreadgroupMemoryLengthAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:atIndex:")) +func (c_ ComputeCommandEncoderObject) HasWaitForFence() bool { + return c_.RespondsToSelector(objc.Sel("waitForFence:")) } -// Sets the size of a block of threadgroup memory. [Full Topic] +// Tells the GPU to wait until the fence is updated before executing any commands encoded by the compute command encoder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443142-setthreadgroupmemorylength?language=objc -func (c_ ComputeCommandEncoderObject) SetThreadgroupMemoryLengthAtIndex(length uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setThreadgroupMemoryLength:atIndex:"), length, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1649790-waitforfence?language=objc +func (c_ ComputeCommandEncoderObject) WaitForFence(fence FenceObject) { + po0 := objc.WrapAsProtocol("MTLFence", fence) + objc.Call[objc.Void](c_, objc.Sel("waitForFence:"), po0) } func (c_ ComputeCommandEncoderObject) HasDispatchType() bool { diff --git a/macos/metal/compute_pass_sample_buffer_attachment_descriptor.gen.go b/macos/metal/compute_pass_sample_buffer_attachment_descriptor.gen.go index 0ccf49aa..9ae267b1 100644 --- a/macos/metal/compute_pass_sample_buffer_attachment_descriptor.gen.go +++ b/macos/metal/compute_pass_sample_buffer_attachment_descriptor.gen.go @@ -18,10 +18,10 @@ type _ComputePassSampleBufferAttachmentDescriptorClass struct { // An interface definition for the [ComputePassSampleBufferAttachmentDescriptor] class. type IComputePassSampleBufferAttachmentDescriptor interface { objc.IObject - EndOfEncoderSampleIndex() uint - SetEndOfEncoderSampleIndex(value uint) StartOfEncoderSampleIndex() uint SetStartOfEncoderSampleIndex(value uint) + EndOfEncoderSampleIndex() uint + SetEndOfEncoderSampleIndex(value uint) SampleBuffer() CounterSampleBufferObject SetSampleBuffer(value PCounterSampleBuffer) SetSampleBufferObject(valueObject objc.IObject) @@ -60,21 +60,6 @@ func (c_ ComputePassSampleBufferAttachmentDescriptor) Init() ComputePassSampleBu return rv } -// The index the Metal device object uses to store GPU counters when ending the compute pass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepasssamplebufferattachmentdescriptor/3564438-endofencodersampleindex?language=objc -func (c_ ComputePassSampleBufferAttachmentDescriptor) EndOfEncoderSampleIndex() uint { - rv := objc.Call[uint](c_, objc.Sel("endOfEncoderSampleIndex")) - return rv -} - -// The index the Metal device object uses to store GPU counters when ending the compute pass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepasssamplebufferattachmentdescriptor/3564438-endofencodersampleindex?language=objc -func (c_ ComputePassSampleBufferAttachmentDescriptor) SetEndOfEncoderSampleIndex(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setEndOfEncoderSampleIndex:"), value) -} - // The index the Metal device object uses to store GPU counters when starting the compute pass. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepasssamplebufferattachmentdescriptor/3564440-startofencodersampleindex?language=objc @@ -90,6 +75,21 @@ func (c_ ComputePassSampleBufferAttachmentDescriptor) SetStartOfEncoderSampleInd objc.Call[objc.Void](c_, objc.Sel("setStartOfEncoderSampleIndex:"), value) } +// The index the Metal device object uses to store GPU counters when ending the compute pass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepasssamplebufferattachmentdescriptor/3564438-endofencodersampleindex?language=objc +func (c_ ComputePassSampleBufferAttachmentDescriptor) EndOfEncoderSampleIndex() uint { + rv := objc.Call[uint](c_, objc.Sel("endOfEncoderSampleIndex")) + return rv +} + +// The index the Metal device object uses to store GPU counters when ending the compute pass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepasssamplebufferattachmentdescriptor/3564438-endofencodersampleindex?language=objc +func (c_ ComputePassSampleBufferAttachmentDescriptor) SetEndOfEncoderSampleIndex(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setEndOfEncoderSampleIndex:"), value) +} + // A specialized memory buffer that the GPU uses to store its counter data during the compute pass. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepasssamplebufferattachmentdescriptor/3564439-samplebuffer?language=objc diff --git a/macos/metal/compute_pipeline_descriptor.gen.go b/macos/metal/compute_pipeline_descriptor.gen.go index b907ca22..0e1eb764 100644 --- a/macos/metal/compute_pipeline_descriptor.gen.go +++ b/macos/metal/compute_pipeline_descriptor.gen.go @@ -19,30 +19,30 @@ type _ComputePipelineDescriptorClass struct { type IComputePipelineDescriptor interface { objc.IObject Reset() - SupportIndirectCommandBuffers() bool - SetSupportIndirectCommandBuffers(value bool) - ThreadGroupSizeIsMultipleOfThreadExecutionWidth() bool - SetThreadGroupSizeIsMultipleOfThreadExecutionWidth(value bool) - ComputeFunction() FunctionObject - SetComputeFunction(value PFunction) - SetComputeFunctionObject(valueObject objc.IObject) - LinkedFunctions() LinkedFunctions - SetLinkedFunctions(value ILinkedFunctions) - BinaryArchives() []BinaryArchiveObject - SetBinaryArchives(value []PBinaryArchive) + Buffers() PipelineBufferDescriptorArray SupportAddingBinaryFunctions() bool SetSupportAddingBinaryFunctions(value bool) MaxCallStackDepth() uint SetMaxCallStackDepth(value uint) - PreloadedLibraries() []DynamicLibraryObject - SetPreloadedLibraries(value []PDynamicLibrary) + LinkedFunctions() LinkedFunctions + SetLinkedFunctions(value ILinkedFunctions) StageInputDescriptor() StageInputOutputDescriptor SetStageInputDescriptor(value IStageInputOutputDescriptor) - Buffers() PipelineBufferDescriptorArray MaxTotalThreadsPerThreadgroup() uint SetMaxTotalThreadsPerThreadgroup(value uint) + ThreadGroupSizeIsMultipleOfThreadExecutionWidth() bool + SetThreadGroupSizeIsMultipleOfThreadExecutionWidth(value bool) + PreloadedLibraries() []DynamicLibraryObject + SetPreloadedLibraries(value []PDynamicLibrary) Label() string SetLabel(value string) + SupportIndirectCommandBuffers() bool + SetSupportIndirectCommandBuffers(value bool) + BinaryArchives() []BinaryArchiveObject + SetBinaryArchives(value []PBinaryArchive) + ComputeFunction() FunctionObject + SetComputeFunction(value PFunction) + SetComputeFunctionObject(valueObject objc.IObject) } // An object for customizing the compilation of a new compute pipeline state object. [Full Topic] @@ -85,57 +85,42 @@ func (c_ ComputePipelineDescriptor) Reset() { objc.Call[objc.Void](c_, objc.Sel("reset")) } -// A Boolean value that indicates whether you can encode commands that reference the pipeline state object into an indirect command buffer. [Full Topic] +// The buffer mutability options for a compute pipeline's kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2966561-supportindirectcommandbuffers?language=objc -func (c_ ComputePipelineDescriptor) SupportIndirectCommandBuffers() bool { - rv := objc.Call[bool](c_, objc.Sel("supportIndirectCommandBuffers")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2879269-buffers?language=objc +func (c_ ComputePipelineDescriptor) Buffers() PipelineBufferDescriptorArray { + rv := objc.Call[PipelineBufferDescriptorArray](c_, objc.Sel("buffers")) return rv } -// A Boolean value that indicates whether you can encode commands that reference the pipeline state object into an indirect command buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2966561-supportindirectcommandbuffers?language=objc -func (c_ ComputePipelineDescriptor) SetSupportIndirectCommandBuffers(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setSupportIndirectCommandBuffers:"), value) -} - -// A Boolean value that indicates whether the threadgroup size must always be a multiple of the thread execution width. [Full Topic] +// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to its callable functions list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414915-threadgroupsizeismultipleofthrea?language=objc -func (c_ ComputePipelineDescriptor) ThreadGroupSizeIsMultipleOfThreadExecutionWidth() bool { - rv := objc.Call[bool](c_, objc.Sel("threadGroupSizeIsMultipleOfThreadExecutionWidth")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3578132-supportaddingbinaryfunctions?language=objc +func (c_ ComputePipelineDescriptor) SupportAddingBinaryFunctions() bool { + rv := objc.Call[bool](c_, objc.Sel("supportAddingBinaryFunctions")) return rv } -// A Boolean value that indicates whether the threadgroup size must always be a multiple of the thread execution width. [Full Topic] +// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to its callable functions list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414915-threadgroupsizeismultipleofthrea?language=objc -func (c_ ComputePipelineDescriptor) SetThreadGroupSizeIsMultipleOfThreadExecutionWidth(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setThreadGroupSizeIsMultipleOfThreadExecutionWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3578132-supportaddingbinaryfunctions?language=objc +func (c_ ComputePipelineDescriptor) SetSupportAddingBinaryFunctions(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSupportAddingBinaryFunctions:"), value) } -// The compute kernel the pipeline calls. [Full Topic] +// The maximum function call depth from the top-most shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414917-computefunction?language=objc -func (c_ ComputePipelineDescriptor) ComputeFunction() FunctionObject { - rv := objc.Call[FunctionObject](c_, objc.Sel("computeFunction")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3650409-maxcallstackdepth?language=objc +func (c_ ComputePipelineDescriptor) MaxCallStackDepth() uint { + rv := objc.Call[uint](c_, objc.Sel("maxCallStackDepth")) return rv } -// The compute kernel the pipeline calls. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414917-computefunction?language=objc -func (c_ ComputePipelineDescriptor) SetComputeFunction(value PFunction) { - po0 := objc.WrapAsProtocol("MTLFunction", value) - objc.Call[objc.Void](c_, objc.Sel("setComputeFunction:"), po0) -} - -// The compute kernel the pipeline calls. [Full Topic] +// The maximum function call depth from the top-most shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414917-computefunction?language=objc -func (c_ ComputePipelineDescriptor) SetComputeFunctionObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setComputeFunction:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3650409-maxcallstackdepth?language=objc +func (c_ ComputePipelineDescriptor) SetMaxCallStackDepth(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setMaxCallStackDepth:"), value) } // The functions that you can specify as function arguments when encoding commands that use this pipeline. [Full Topic] @@ -153,49 +138,49 @@ func (c_ ComputePipelineDescriptor) SetLinkedFunctions(value ILinkedFunctions) { objc.Call[objc.Void](c_, objc.Sel("setLinkedFunctions:"), value) } -// The binary archives that contain any precompiled shader functions you want to link. [Full Topic] +// The organization of input and output data for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3553961-binaryarchives?language=objc -func (c_ ComputePipelineDescriptor) BinaryArchives() []BinaryArchiveObject { - rv := objc.Call[[]BinaryArchiveObject](c_, objc.Sel("binaryArchives")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2092373-stageinputdescriptor?language=objc +func (c_ ComputePipelineDescriptor) StageInputDescriptor() StageInputOutputDescriptor { + rv := objc.Call[StageInputOutputDescriptor](c_, objc.Sel("stageInputDescriptor")) return rv } -// The binary archives that contain any precompiled shader functions you want to link. [Full Topic] +// The organization of input and output data for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3553961-binaryarchives?language=objc -func (c_ ComputePipelineDescriptor) SetBinaryArchives(value []PBinaryArchive) { - objc.Call[objc.Void](c_, objc.Sel("setBinaryArchives:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2092373-stageinputdescriptor?language=objc +func (c_ ComputePipelineDescriptor) SetStageInputDescriptor(value IStageInputOutputDescriptor) { + objc.Call[objc.Void](c_, objc.Sel("setStageInputDescriptor:"), value) } -// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to its callable functions list. [Full Topic] +// The maximum number of threads in a threadgroup that you can dispatch to the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3578132-supportaddingbinaryfunctions?language=objc -func (c_ ComputePipelineDescriptor) SupportAddingBinaryFunctions() bool { - rv := objc.Call[bool](c_, objc.Sel("supportAddingBinaryFunctions")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2966560-maxtotalthreadsperthreadgroup?language=objc +func (c_ ComputePipelineDescriptor) MaxTotalThreadsPerThreadgroup() uint { + rv := objc.Call[uint](c_, objc.Sel("maxTotalThreadsPerThreadgroup")) return rv } -// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to its callable functions list. [Full Topic] +// The maximum number of threads in a threadgroup that you can dispatch to the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3578132-supportaddingbinaryfunctions?language=objc -func (c_ ComputePipelineDescriptor) SetSupportAddingBinaryFunctions(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setSupportAddingBinaryFunctions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2966560-maxtotalthreadsperthreadgroup?language=objc +func (c_ ComputePipelineDescriptor) SetMaxTotalThreadsPerThreadgroup(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setMaxTotalThreadsPerThreadgroup:"), value) } -// The maximum function call depth from the top-most shader function. [Full Topic] +// A Boolean value that indicates whether the threadgroup size must always be a multiple of the thread execution width. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3650409-maxcallstackdepth?language=objc -func (c_ ComputePipelineDescriptor) MaxCallStackDepth() uint { - rv := objc.Call[uint](c_, objc.Sel("maxCallStackDepth")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414915-threadgroupsizeismultipleofthrea?language=objc +func (c_ ComputePipelineDescriptor) ThreadGroupSizeIsMultipleOfThreadExecutionWidth() bool { + rv := objc.Call[bool](c_, objc.Sel("threadGroupSizeIsMultipleOfThreadExecutionWidth")) return rv } -// The maximum function call depth from the top-most shader function. [Full Topic] +// A Boolean value that indicates whether the threadgroup size must always be a multiple of the thread execution width. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3650409-maxcallstackdepth?language=objc -func (c_ ComputePipelineDescriptor) SetMaxCallStackDepth(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setMaxCallStackDepth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414915-threadgroupsizeismultipleofthrea?language=objc +func (c_ ComputePipelineDescriptor) SetThreadGroupSizeIsMultipleOfThreadExecutionWidth(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setThreadGroupSizeIsMultipleOfThreadExecutionWidth:"), value) } // The dynamic libraries that contain any precompiled shader functions you want to link. [Full Topic] @@ -213,55 +198,70 @@ func (c_ ComputePipelineDescriptor) SetPreloadedLibraries(value []PDynamicLibrar objc.Call[objc.Void](c_, objc.Sel("setPreloadedLibraries:"), value) } -// The organization of input and output data for the compute function. [Full Topic] +// A string that identifies the object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2092373-stageinputdescriptor?language=objc -func (c_ ComputePipelineDescriptor) StageInputDescriptor() StageInputOutputDescriptor { - rv := objc.Call[StageInputOutputDescriptor](c_, objc.Sel("stageInputDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414918-label?language=objc +func (c_ ComputePipelineDescriptor) Label() string { + rv := objc.Call[string](c_, objc.Sel("label")) return rv } -// The organization of input and output data for the compute function. [Full Topic] +// A string that identifies the object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2092373-stageinputdescriptor?language=objc -func (c_ ComputePipelineDescriptor) SetStageInputDescriptor(value IStageInputOutputDescriptor) { - objc.Call[objc.Void](c_, objc.Sel("setStageInputDescriptor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414918-label?language=objc +func (c_ ComputePipelineDescriptor) SetLabel(value string) { + objc.Call[objc.Void](c_, objc.Sel("setLabel:"), value) } -// The buffer mutability options for a compute pipeline's kernel function. [Full Topic] +// A Boolean value that indicates whether you can encode commands that reference the pipeline state object into an indirect command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2879269-buffers?language=objc -func (c_ ComputePipelineDescriptor) Buffers() PipelineBufferDescriptorArray { - rv := objc.Call[PipelineBufferDescriptorArray](c_, objc.Sel("buffers")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2966561-supportindirectcommandbuffers?language=objc +func (c_ ComputePipelineDescriptor) SupportIndirectCommandBuffers() bool { + rv := objc.Call[bool](c_, objc.Sel("supportIndirectCommandBuffers")) return rv } -// The maximum number of threads in a threadgroup that you can dispatch to the compute function. [Full Topic] +// A Boolean value that indicates whether you can encode commands that reference the pipeline state object into an indirect command buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2966560-maxtotalthreadsperthreadgroup?language=objc -func (c_ ComputePipelineDescriptor) MaxTotalThreadsPerThreadgroup() uint { - rv := objc.Call[uint](c_, objc.Sel("maxTotalThreadsPerThreadgroup")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2966561-supportindirectcommandbuffers?language=objc +func (c_ ComputePipelineDescriptor) SetSupportIndirectCommandBuffers(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSupportIndirectCommandBuffers:"), value) +} + +// The binary archives that contain any precompiled shader functions you want to link. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3553961-binaryarchives?language=objc +func (c_ ComputePipelineDescriptor) BinaryArchives() []BinaryArchiveObject { + rv := objc.Call[[]BinaryArchiveObject](c_, objc.Sel("binaryArchives")) return rv } -// The maximum number of threads in a threadgroup that you can dispatch to the compute function. [Full Topic] +// The binary archives that contain any precompiled shader functions you want to link. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/2966560-maxtotalthreadsperthreadgroup?language=objc -func (c_ ComputePipelineDescriptor) SetMaxTotalThreadsPerThreadgroup(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setMaxTotalThreadsPerThreadgroup:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3553961-binaryarchives?language=objc +func (c_ ComputePipelineDescriptor) SetBinaryArchives(value []PBinaryArchive) { + objc.Call[objc.Void](c_, objc.Sel("setBinaryArchives:"), value) } -// A string that identifies the object. [Full Topic] +// The compute kernel the pipeline calls. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414918-label?language=objc -func (c_ ComputePipelineDescriptor) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414917-computefunction?language=objc +func (c_ ComputePipelineDescriptor) ComputeFunction() FunctionObject { + rv := objc.Call[FunctionObject](c_, objc.Sel("computeFunction")) return rv } -// A string that identifies the object. [Full Topic] +// The compute kernel the pipeline calls. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414918-label?language=objc -func (c_ ComputePipelineDescriptor) SetLabel(value string) { - objc.Call[objc.Void](c_, objc.Sel("setLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414917-computefunction?language=objc +func (c_ ComputePipelineDescriptor) SetComputeFunction(value PFunction) { + po0 := objc.WrapAsProtocol("MTLFunction", value) + objc.Call[objc.Void](c_, objc.Sel("setComputeFunction:"), po0) +} + +// The compute kernel the pipeline calls. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414917-computefunction?language=objc +func (c_ ComputePipelineDescriptor) SetComputeFunctionObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setComputeFunction:"), valueObject) } diff --git a/macos/metal/compute_pipeline_state_protocol.gen.go b/macos/metal/compute_pipeline_state_protocol.gen.go index 872e4f3f..83820220 100644 --- a/macos/metal/compute_pipeline_state_protocol.gen.go +++ b/macos/metal/compute_pipeline_state_protocol.gen.go @@ -12,33 +12,29 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate?language=objc type PComputePipelineState interface { - // optional - FunctionHandleWithFunction(function FunctionObject) FunctionHandleObject - HasFunctionHandleWithFunction() bool - // optional NewIntersectionFunctionTableWithDescriptor(descriptor IntersectionFunctionTableDescriptor) IntersectionFunctionTableObject HasNewIntersectionFunctionTableWithDescriptor() bool - // optional - ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint - HasImageblockMemoryLengthForDimensions() bool - // optional NewVisibleFunctionTableWithDescriptor(descriptor VisibleFunctionTableDescriptor) VisibleFunctionTableObject HasNewVisibleFunctionTableWithDescriptor() bool // optional - NewComputePipelineStateWithAdditionalBinaryFunctionsError(functions []FunctionObject, error unsafe.Pointer) ComputePipelineStateObject - HasNewComputePipelineStateWithAdditionalBinaryFunctionsError() bool + FunctionHandleWithFunction(function FunctionObject) FunctionHandleObject + HasFunctionHandleWithFunction() bool // optional - StaticThreadgroupMemoryLength() uint - HasStaticThreadgroupMemoryLength() bool + ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint + HasImageblockMemoryLengthForDimensions() bool // optional - Label() string - HasLabel() bool + NewComputePipelineStateWithAdditionalBinaryFunctionsError(functions []FunctionObject, error unsafe.Pointer) ComputePipelineStateObject + HasNewComputePipelineStateWithAdditionalBinaryFunctionsError() bool + + // optional + Device() DeviceObject + HasDevice() bool // optional MaxTotalThreadsPerThreadgroup() uint @@ -49,12 +45,16 @@ type PComputePipelineState interface { HasThreadExecutionWidth() bool // optional - SupportIndirectCommandBuffers() bool - HasSupportIndirectCommandBuffers() bool + StaticThreadgroupMemoryLength() uint + HasStaticThreadgroupMemoryLength() bool // optional - Device() DeviceObject - HasDevice() bool + Label() string + HasLabel() bool + + // optional + SupportIndirectCommandBuffers() bool + HasSupportIndirectCommandBuffers() bool } // ensure impl type implements protocol interface @@ -65,6 +65,30 @@ type ComputePipelineStateObject struct { objc.Object } +func (c_ ComputePipelineStateObject) HasNewIntersectionFunctionTableWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("newIntersectionFunctionTableWithDescriptor:")) +} + +// Creates a new intersection function table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/3580381-newintersectionfunctiontablewith?language=objc +func (c_ ComputePipelineStateObject) NewIntersectionFunctionTableWithDescriptor(descriptor IntersectionFunctionTableDescriptor) IntersectionFunctionTableObject { + rv := objc.Call[IntersectionFunctionTableObject](c_, objc.Sel("newIntersectionFunctionTableWithDescriptor:"), descriptor) + return rv +} + +func (c_ ComputePipelineStateObject) HasNewVisibleFunctionTableWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("newVisibleFunctionTableWithDescriptor:")) +} + +// Creates a new visible function table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/3566543-newvisiblefunctiontablewithdescr?language=objc +func (c_ ComputePipelineStateObject) NewVisibleFunctionTableWithDescriptor(descriptor VisibleFunctionTableDescriptor) VisibleFunctionTableObject { + rv := objc.Call[VisibleFunctionTableObject](c_, objc.Sel("newVisibleFunctionTableWithDescriptor:"), descriptor) + return rv +} + func (c_ ComputePipelineStateObject) HasFunctionHandleWithFunction() bool { return c_.RespondsToSelector(objc.Sel("functionHandleWithFunction:")) } @@ -78,18 +102,6 @@ func (c_ ComputePipelineStateObject) FunctionHandleWithFunction(function Functio return rv } -func (c_ ComputePipelineStateObject) HasNewIntersectionFunctionTableWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("newIntersectionFunctionTableWithDescriptor:")) -} - -// Creates a new intersection function table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/3580381-newintersectionfunctiontablewith?language=objc -func (c_ ComputePipelineStateObject) NewIntersectionFunctionTableWithDescriptor(descriptor IntersectionFunctionTableDescriptor) IntersectionFunctionTableObject { - rv := objc.Call[IntersectionFunctionTableObject](c_, objc.Sel("newIntersectionFunctionTableWithDescriptor:"), descriptor) - return rv -} - func (c_ ComputePipelineStateObject) HasImageblockMemoryLengthForDimensions() bool { return c_.RespondsToSelector(objc.Sel("imageblockMemoryLengthForDimensions:")) } @@ -102,18 +114,6 @@ func (c_ ComputePipelineStateObject) ImageblockMemoryLengthForDimensions(imagebl return rv } -func (c_ ComputePipelineStateObject) HasNewVisibleFunctionTableWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("newVisibleFunctionTableWithDescriptor:")) -} - -// Creates a new visible function table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/3566543-newvisiblefunctiontablewithdescr?language=objc -func (c_ ComputePipelineStateObject) NewVisibleFunctionTableWithDescriptor(descriptor VisibleFunctionTableDescriptor) VisibleFunctionTableObject { - rv := objc.Call[VisibleFunctionTableObject](c_, objc.Sel("newVisibleFunctionTableWithDescriptor:"), descriptor) - return rv -} - func (c_ ComputePipelineStateObject) HasNewComputePipelineStateWithAdditionalBinaryFunctionsError() bool { return c_.RespondsToSelector(objc.Sel("newComputePipelineStateWithAdditionalBinaryFunctions:error:")) } @@ -126,27 +126,15 @@ func (c_ ComputePipelineStateObject) NewComputePipelineStateWithAdditionalBinary return rv } -func (c_ ComputePipelineStateObject) HasStaticThreadgroupMemoryLength() bool { - return c_.RespondsToSelector(objc.Sel("staticThreadgroupMemoryLength")) -} - -// The length, in bytes, of statically allocated threadgroup memory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/2877435-staticthreadgroupmemorylength?language=objc -func (c_ ComputePipelineStateObject) StaticThreadgroupMemoryLength() uint { - rv := objc.Call[uint](c_, objc.Sel("staticThreadgroupMemoryLength")) - return rv -} - -func (c_ ComputePipelineStateObject) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ ComputePipelineStateObject) HasDevice() bool { + return c_.RespondsToSelector(objc.Sel("device")) } -// A string that identifies the compute pipeline state object. [Full Topic] +// The Metal device object that created the pipeline state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/2880323-label?language=objc -func (c_ ComputePipelineStateObject) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/1414925-device?language=objc +func (c_ ComputePipelineStateObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](c_, objc.Sel("device")) return rv } @@ -174,26 +162,38 @@ func (c_ ComputePipelineStateObject) ThreadExecutionWidth() uint { return rv } -func (c_ ComputePipelineStateObject) HasSupportIndirectCommandBuffers() bool { - return c_.RespondsToSelector(objc.Sel("supportIndirectCommandBuffers")) +func (c_ ComputePipelineStateObject) HasStaticThreadgroupMemoryLength() bool { + return c_.RespondsToSelector(objc.Sel("staticThreadgroupMemoryLength")) } -// A Boolean value that indicates whether the pipeline supports indirect command buffers. [Full Topic] +// The length, in bytes, of statically allocated threadgroup memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/2966562-supportindirectcommandbuffers?language=objc -func (c_ ComputePipelineStateObject) SupportIndirectCommandBuffers() bool { - rv := objc.Call[bool](c_, objc.Sel("supportIndirectCommandBuffers")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/2877435-staticthreadgroupmemorylength?language=objc +func (c_ ComputePipelineStateObject) StaticThreadgroupMemoryLength() uint { + rv := objc.Call[uint](c_, objc.Sel("staticThreadgroupMemoryLength")) return rv } -func (c_ ComputePipelineStateObject) HasDevice() bool { - return c_.RespondsToSelector(objc.Sel("device")) +func (c_ ComputePipelineStateObject) HasLabel() bool { + return c_.RespondsToSelector(objc.Sel("label")) } -// The Metal device object that created the pipeline state. [Full Topic] +// A string that identifies the compute pipeline state object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/1414925-device?language=objc -func (c_ ComputePipelineStateObject) Device() DeviceObject { - rv := objc.Call[DeviceObject](c_, objc.Sel("device")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/2880323-label?language=objc +func (c_ ComputePipelineStateObject) Label() string { + rv := objc.Call[string](c_, objc.Sel("label")) + return rv +} + +func (c_ ComputePipelineStateObject) HasSupportIndirectCommandBuffers() bool { + return c_.RespondsToSelector(objc.Sel("supportIndirectCommandBuffers")) +} + +// A Boolean value that indicates whether the pipeline supports indirect command buffers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/2966562-supportindirectcommandbuffers?language=objc +func (c_ ComputePipelineStateObject) SupportIndirectCommandBuffers() bool { + rv := objc.Call[bool](c_, objc.Sel("supportIndirectCommandBuffers")) return rv } diff --git a/macos/metal/counter_sample_buffer_descriptor.gen.go b/macos/metal/counter_sample_buffer_descriptor.gen.go index 2cb03f45..ddbddff8 100644 --- a/macos/metal/counter_sample_buffer_descriptor.gen.go +++ b/macos/metal/counter_sample_buffer_descriptor.gen.go @@ -18,15 +18,15 @@ type _CounterSampleBufferDescriptorClass struct { // An interface definition for the [CounterSampleBufferDescriptor] class. type ICounterSampleBufferDescriptor interface { objc.IObject + SampleCount() uint + SetSampleCount(value uint) CounterSet() CounterSetObject SetCounterSet(value PCounterSet) SetCounterSetObject(valueObject objc.IObject) - SampleCount() uint - SetSampleCount(value uint) - Label() string - SetLabel(value string) StorageMode() StorageMode SetStorageMode(value StorageMode) + Label() string + SetLabel(value string) } // A group of properties that configures the counter sample buffers you create with it. [Full Topic] @@ -62,6 +62,21 @@ func (c_ CounterSampleBufferDescriptor) Init() CounterSampleBufferDescriptor { return rv } +// The number of instances of a counter set’s data that a counter sample buffer can store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebufferdescriptor/3081732-samplecount?language=objc +func (c_ CounterSampleBufferDescriptor) SampleCount() uint { + rv := objc.Call[uint](c_, objc.Sel("sampleCount")) + return rv +} + +// The number of instances of a counter set’s data that a counter sample buffer can store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebufferdescriptor/3081732-samplecount?language=objc +func (c_ CounterSampleBufferDescriptor) SetSampleCount(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setSampleCount:"), value) +} + // A GPU device’s counter set instance that you want to sample. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebufferdescriptor/3081730-counterset?language=objc @@ -85,19 +100,19 @@ func (c_ CounterSampleBufferDescriptor) SetCounterSetObject(valueObject objc.IOb objc.Call[objc.Void](c_, objc.Sel("setCounterSet:"), valueObject) } -// The number of instances of a counter set’s data that a counter sample buffer can store. [Full Topic] +// The memory storage mode for the counter sample buffers you create with the descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebufferdescriptor/3081732-samplecount?language=objc -func (c_ CounterSampleBufferDescriptor) SampleCount() uint { - rv := objc.Call[uint](c_, objc.Sel("sampleCount")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebufferdescriptor/3081733-storagemode?language=objc +func (c_ CounterSampleBufferDescriptor) StorageMode() StorageMode { + rv := objc.Call[StorageMode](c_, objc.Sel("storageMode")) return rv } -// The number of instances of a counter set’s data that a counter sample buffer can store. [Full Topic] +// The memory storage mode for the counter sample buffers you create with the descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebufferdescriptor/3081732-samplecount?language=objc -func (c_ CounterSampleBufferDescriptor) SetSampleCount(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setSampleCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebufferdescriptor/3081733-storagemode?language=objc +func (c_ CounterSampleBufferDescriptor) SetStorageMode(value StorageMode) { + objc.Call[objc.Void](c_, objc.Sel("setStorageMode:"), value) } // The name for the counter sample buffer you create with the descriptor. [Full Topic] @@ -114,18 +129,3 @@ func (c_ CounterSampleBufferDescriptor) Label() string { func (c_ CounterSampleBufferDescriptor) SetLabel(value string) { objc.Call[objc.Void](c_, objc.Sel("setLabel:"), value) } - -// The memory storage mode for the counter sample buffers you create with the descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebufferdescriptor/3081733-storagemode?language=objc -func (c_ CounterSampleBufferDescriptor) StorageMode() StorageMode { - rv := objc.Call[StorageMode](c_, objc.Sel("storageMode")) - return rv -} - -// The memory storage mode for the counter sample buffers you create with the descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebufferdescriptor/3081733-storagemode?language=objc -func (c_ CounterSampleBufferDescriptor) SetStorageMode(value StorageMode) { - objc.Call[objc.Void](c_, objc.Sel("setStorageMode:"), value) -} diff --git a/macos/metal/counter_sample_buffer_protocol.gen.go b/macos/metal/counter_sample_buffer_protocol.gen.go index 740c8ffa..714cbdec 100644 --- a/macos/metal/counter_sample_buffer_protocol.gen.go +++ b/macos/metal/counter_sample_buffer_protocol.gen.go @@ -15,6 +15,10 @@ type PCounterSampleBuffer interface { ResolveCounterRange(range_ foundation.Range) []byte HasResolveCounterRange() bool + // optional + Device() DeviceObject + HasDevice() bool + // optional SampleCount() uint HasSampleCount() bool @@ -22,10 +26,6 @@ type PCounterSampleBuffer interface { // optional Label() string HasLabel() bool - - // optional - Device() DeviceObject - HasDevice() bool } // ensure impl type implements protocol interface @@ -48,6 +48,18 @@ func (c_ CounterSampleBufferObject) ResolveCounterRange(range_ foundation.Range) return rv } +func (c_ CounterSampleBufferObject) HasDevice() bool { + return c_.RespondsToSelector(objc.Sel("device")) +} + +// The GPU device instance that owns the counter sample buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebuffer/3081726-device?language=objc +func (c_ CounterSampleBufferObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](c_, objc.Sel("device")) + return rv +} + func (c_ CounterSampleBufferObject) HasSampleCount() bool { return c_.RespondsToSelector(objc.Sel("sampleCount")) } @@ -71,15 +83,3 @@ func (c_ CounterSampleBufferObject) Label() string { rv := objc.Call[string](c_, objc.Sel("label")) return rv } - -func (c_ CounterSampleBufferObject) HasDevice() bool { - return c_.RespondsToSelector(objc.Sel("device")) -} - -// The GPU device instance that owns the counter sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebuffer/3081726-device?language=objc -func (c_ CounterSampleBufferObject) Device() DeviceObject { - rv := objc.Call[DeviceObject](c_, objc.Sel("device")) - return rv -} diff --git a/macos/metal/depth_stencil_descriptor.gen.go b/macos/metal/depth_stencil_descriptor.gen.go index 71785499..ab7bbe1c 100644 --- a/macos/metal/depth_stencil_descriptor.gen.go +++ b/macos/metal/depth_stencil_descriptor.gen.go @@ -18,14 +18,14 @@ type _DepthStencilDescriptorClass struct { // An interface definition for the [DepthStencilDescriptor] class. type IDepthStencilDescriptor interface { objc.IObject - DepthCompareFunction() CompareFunction - SetDepthCompareFunction(value CompareFunction) BackFaceStencil() StencilDescriptor SetBackFaceStencil(value IStencilDescriptor) - Label() string - SetLabel(value string) FrontFaceStencil() StencilDescriptor SetFrontFaceStencil(value IStencilDescriptor) + DepthCompareFunction() CompareFunction + SetDepthCompareFunction(value CompareFunction) + Label() string + SetLabel(value string) IsDepthWriteEnabled() bool SetDepthWriteEnabled(value bool) } @@ -63,21 +63,6 @@ func (d_ DepthStencilDescriptor) Init() DepthStencilDescriptor { return rv } -// The comparison that is performed between a fragment’s depth value and the depth value in the attachment, which determines whether to discard the fragment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462463-depthcomparefunction?language=objc -func (d_ DepthStencilDescriptor) DepthCompareFunction() CompareFunction { - rv := objc.Call[CompareFunction](d_, objc.Sel("depthCompareFunction")) - return rv -} - -// The comparison that is performed between a fragment’s depth value and the depth value in the attachment, which determines whether to discard the fragment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462463-depthcomparefunction?language=objc -func (d_ DepthStencilDescriptor) SetDepthCompareFunction(value CompareFunction) { - objc.Call[objc.Void](d_, objc.Sel("setDepthCompareFunction:"), value) -} - // The stencil descriptor for back-facing primitives. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462507-backfacestencil?language=objc @@ -93,21 +78,6 @@ func (d_ DepthStencilDescriptor) SetBackFaceStencil(value IStencilDescriptor) { objc.Call[objc.Void](d_, objc.Sel("setBackFaceStencil:"), value) } -// A string that identifies this object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462483-label?language=objc -func (d_ DepthStencilDescriptor) Label() string { - rv := objc.Call[string](d_, objc.Sel("label")) - return rv -} - -// A string that identifies this object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462483-label?language=objc -func (d_ DepthStencilDescriptor) SetLabel(value string) { - objc.Call[objc.Void](d_, objc.Sel("setLabel:"), value) -} - // The stencil descriptor for front-facing primitives. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462476-frontfacestencil?language=objc @@ -123,6 +93,36 @@ func (d_ DepthStencilDescriptor) SetFrontFaceStencil(value IStencilDescriptor) { objc.Call[objc.Void](d_, objc.Sel("setFrontFaceStencil:"), value) } +// The comparison that is performed between a fragment’s depth value and the depth value in the attachment, which determines whether to discard the fragment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462463-depthcomparefunction?language=objc +func (d_ DepthStencilDescriptor) DepthCompareFunction() CompareFunction { + rv := objc.Call[CompareFunction](d_, objc.Sel("depthCompareFunction")) + return rv +} + +// The comparison that is performed between a fragment’s depth value and the depth value in the attachment, which determines whether to discard the fragment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462463-depthcomparefunction?language=objc +func (d_ DepthStencilDescriptor) SetDepthCompareFunction(value CompareFunction) { + objc.Call[objc.Void](d_, objc.Sel("setDepthCompareFunction:"), value) +} + +// A string that identifies this object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462483-label?language=objc +func (d_ DepthStencilDescriptor) Label() string { + rv := objc.Call[string](d_, objc.Sel("label")) + return rv +} + +// A string that identifies this object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462483-label?language=objc +func (d_ DepthStencilDescriptor) SetLabel(value string) { + objc.Call[objc.Void](d_, objc.Sel("setLabel:"), value) +} + // A Boolean value that indicates whether depth values can be written to the depth attachment. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462501-depthwriteenabled?language=objc diff --git a/macos/metal/depth_stencil_state_protocol.gen.go b/macos/metal/depth_stencil_state_protocol.gen.go index 5c9795e8..95d6cbc4 100644 --- a/macos/metal/depth_stencil_state_protocol.gen.go +++ b/macos/metal/depth_stencil_state_protocol.gen.go @@ -10,13 +10,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencilstate?language=objc type PDepthStencilState interface { - // optional - Label() string - HasLabel() bool - // optional Device() DeviceObject HasDevice() bool + + // optional + Label() string + HasLabel() bool } // ensure impl type implements protocol interface @@ -27,18 +27,6 @@ type DepthStencilStateObject struct { objc.Object } -func (d_ DepthStencilStateObject) HasLabel() bool { - return d_.RespondsToSelector(objc.Sel("label")) -} - -// A string that identifies this object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencilstate/1462472-label?language=objc -func (d_ DepthStencilStateObject) Label() string { - rv := objc.Call[string](d_, objc.Sel("label")) - return rv -} - func (d_ DepthStencilStateObject) HasDevice() bool { return d_.RespondsToSelector(objc.Sel("device")) } @@ -50,3 +38,15 @@ func (d_ DepthStencilStateObject) Device() DeviceObject { rv := objc.Call[DeviceObject](d_, objc.Sel("device")) return rv } + +func (d_ DepthStencilStateObject) HasLabel() bool { + return d_.RespondsToSelector(objc.Sel("label")) +} + +// A string that identifies this object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencilstate/1462472-label?language=objc +func (d_ DepthStencilStateObject) Label() string { + rv := objc.Call[string](d_, objc.Sel("label")) + return rv +} diff --git a/macos/metal/device_protocol.gen.go b/macos/metal/device_protocol.gen.go index 081e9a76..d9be1f2e 100644 --- a/macos/metal/device_protocol.gen.go +++ b/macos/metal/device_protocol.gen.go @@ -7,7 +7,6 @@ import ( "github.com/progrium/darwinkit/dispatch" "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/macos/iosurface" "github.com/progrium/darwinkit/objc" ) @@ -16,396 +15,352 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice?language=objc type PDevice interface { // optional - NewDefaultLibrary() LibraryObject - HasNewDefaultLibrary() bool + SupportsFamily(gpuFamily GPUFamily) bool + HasSupportsFamily() bool // optional - NewBufferWithBytesLengthOptions(pointer unsafe.Pointer, length uint, options ResourceOptions) BufferObject - HasNewBufferWithBytesLengthOptions() bool + MinimumLinearTextureAlignmentForPixelFormat(format PixelFormat) uint + HasMinimumLinearTextureAlignmentForPixelFormat() bool // optional - SupportsVertexAmplificationCount(count uint) bool - HasSupportsVertexAmplificationCount() bool + NewDynamicLibraryError(library LibraryObject, error unsafe.Pointer) DynamicLibraryObject + HasNewDynamicLibraryError() bool // optional - NewLibraryWithSourceOptionsError(source string, options CompileOptions, error unsafe.Pointer) LibraryObject - HasNewLibraryWithSourceOptionsError() bool + SampleTimestampsGpuTimestamp(cpuTimestamp *Timestamp, gpuTimestamp *Timestamp) + HasSampleTimestampsGpuTimestamp() bool // optional - NewSharedEventWithHandle(sharedEventHandle SharedEventHandle) SharedEventObject - HasNewSharedEventWithHandle() bool + NewTextureWithDescriptor(descriptor TextureDescriptor) TextureObject + HasNewTextureWithDescriptor() bool // optional NewBinaryArchiveWithDescriptorError(descriptor BinaryArchiveDescriptor, error unsafe.Pointer) BinaryArchiveObject HasNewBinaryArchiveWithDescriptorError() bool // optional - NewIndirectCommandBufferWithDescriptorMaxCommandCountOptions(descriptor IndirectCommandBufferDescriptor, maxCount uint, options ResourceOptions) IndirectCommandBufferObject - HasNewIndirectCommandBufferWithDescriptorMaxCommandCountOptions() bool - - // optional - NewSharedTextureWithHandle(sharedHandle SharedTextureHandle) TextureObject - HasNewSharedTextureWithHandle() bool + NewAccelerationStructureWithSize(size uint) AccelerationStructureObject + HasNewAccelerationStructureWithSize() bool // optional - NewComputePipelineStateWithFunctionError(computeFunction FunctionObject, error unsafe.Pointer) ComputePipelineStateObject - HasNewComputePipelineStateWithFunctionError() bool + SupportsRasterizationRateMapWithLayerCount(layerCount uint) bool + HasSupportsRasterizationRateMapWithLayerCount() bool // optional - SparseTileSizeWithTextureTypePixelFormatSampleCount(textureType TextureType, pixelFormat PixelFormat, sampleCount uint) Size - HasSparseTileSizeWithTextureTypePixelFormatSampleCount() bool + NewLibraryWithSourceOptionsError(source string, options CompileOptions, error unsafe.Pointer) LibraryObject + HasNewLibraryWithSourceOptionsError() bool // optional - NewLibraryWithURLError(url foundation.URL, error unsafe.Pointer) LibraryObject - HasNewLibraryWithURLError() bool + NewArgumentEncoderWithArguments(arguments []ArgumentDescriptor) ArgumentEncoderObject + HasNewArgumentEncoderWithArguments() bool // optional - NewAccelerationStructureWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureObject - HasNewAccelerationStructureWithDescriptor() bool + NewComputePipelineStateWithDescriptorOptionsCompletionHandler(descriptor ComputePipelineDescriptor, options PipelineOption, completionHandler NewComputePipelineStateWithReflectionCompletionHandler) + HasNewComputePipelineStateWithDescriptorOptionsCompletionHandler() bool // optional - ConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions(tileRegions *Region, pixelRegions *Region, tileSize Size, numRegions uint) - HasConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions() bool + NewCommandQueue() CommandQueueObject + HasNewCommandQueue() bool // optional - NewComputePipelineStateWithFunctionOptionsReflectionError(computeFunction FunctionObject, options PipelineOption, reflection *AutoreleasedComputePipelineReflection, error unsafe.Pointer) ComputePipelineStateObject - HasNewComputePipelineStateWithFunctionOptionsReflectionError() bool + SupportsTextureSampleCount(sampleCount uint) bool + HasSupportsTextureSampleCount() bool // optional - NewHeapWithDescriptor(descriptor HeapDescriptor) HeapObject - HasNewHeapWithDescriptor() bool + MinimumTextureBufferAlignmentForPixelFormat(format PixelFormat) uint + HasMinimumTextureBufferAlignmentForPixelFormat() bool // optional - NewTextureWithDescriptor(descriptor TextureDescriptor) TextureObject - HasNewTextureWithDescriptor() bool + NewFence() FenceObject + HasNewFence() bool // optional GetDefaultSamplePositionsCount(positions *SamplePosition, count uint) HasGetDefaultSamplePositionsCount() bool + // optional + NewRasterizationRateMapWithDescriptor(descriptor RasterizationRateMapDescriptor) RasterizationRateMapObject + HasNewRasterizationRateMapWithDescriptor() bool + // optional NewCounterSampleBufferWithDescriptorError(descriptor CounterSampleBufferDescriptor, error unsafe.Pointer) CounterSampleBufferObject HasNewCounterSampleBufferWithDescriptorError() bool // optional - HeapTextureSizeAndAlignWithDescriptor(desc TextureDescriptor) SizeAndAlign - HasHeapTextureSizeAndAlignWithDescriptor() bool + NewCommandQueueWithMaxCommandBufferCount(maxCommandBufferCount uint) CommandQueueObject + HasNewCommandQueueWithMaxCommandBufferCount() bool // optional - NewDynamicLibraryWithURLError(url foundation.URL, error unsafe.Pointer) DynamicLibraryObject - HasNewDynamicLibraryWithURLError() bool + NewHeapWithDescriptor(descriptor HeapDescriptor) HeapObject + HasNewHeapWithDescriptor() bool // optional - SupportsTextureSampleCount(sampleCount uint) bool - HasSupportsTextureSampleCount() bool + NewSharedTextureWithDescriptor(descriptor TextureDescriptor) TextureObject + HasNewSharedTextureWithDescriptor() bool // optional - NewBufferWithBytesNoCopyLengthOptionsDeallocator(pointer unsafe.Pointer, length uint, options ResourceOptions, deallocator func(pointer unsafe.Pointer, length uint)) BufferObject - HasNewBufferWithBytesNoCopyLengthOptionsDeallocator() bool + ConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions(pixelRegions *Region, tileRegions *Region, tileSize Size, mode SparseTextureRegionAlignmentMode, numRegions uint) + HasConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions() bool // optional - NewRenderPipelineStateWithDescriptorCompletionHandler(descriptor RenderPipelineDescriptor, completionHandler NewRenderPipelineStateCompletionHandler) - HasNewRenderPipelineStateWithDescriptorCompletionHandler() bool + HeapBufferSizeAndAlignWithLengthOptions(length uint, options ResourceOptions) SizeAndAlign + HasHeapBufferSizeAndAlignWithLengthOptions() bool // optional - NewRenderPipelineStateWithDescriptorOptionsReflectionError(descriptor RenderPipelineDescriptor, options PipelineOption, reflection *AutoreleasedRenderPipelineReflection, error unsafe.Pointer) RenderPipelineStateObject - HasNewRenderPipelineStateWithDescriptorOptionsReflectionError() bool + NewIndirectCommandBufferWithDescriptorMaxCommandCountOptions(descriptor IndirectCommandBufferDescriptor, maxCount uint, options ResourceOptions) IndirectCommandBufferObject + HasNewIndirectCommandBufferWithDescriptorMaxCommandCountOptions() bool // optional - NewSharedTextureWithDescriptor(descriptor TextureDescriptor) TextureObject - HasNewSharedTextureWithDescriptor() bool + HeapTextureSizeAndAlignWithDescriptor(desc TextureDescriptor) SizeAndAlign + HasHeapTextureSizeAndAlignWithDescriptor() bool + + // optional + NewLibraryWithDataError(data dispatch.Data, error unsafe.Pointer) LibraryObject + HasNewLibraryWithDataError() bool // optional NewDefaultLibraryWithBundleError(bundle foundation.Bundle, error unsafe.Pointer) LibraryObject HasNewDefaultLibraryWithBundleError() bool // optional - AccelerationStructureSizesWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureSizes - HasAccelerationStructureSizesWithDescriptor() bool + NewLibraryWithStitchedDescriptorCompletionHandler(descriptor StitchedLibraryDescriptor, completionHandler NewLibraryCompletionHandler) + HasNewLibraryWithStitchedDescriptorCompletionHandler() bool // optional - MinimumTextureBufferAlignmentForPixelFormat(format PixelFormat) uint - HasMinimumTextureBufferAlignmentForPixelFormat() bool + NewAccelerationStructureWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureObject + HasNewAccelerationStructureWithDescriptor() bool // optional - NewRenderPipelineStateWithDescriptorOptionsCompletionHandler(descriptor RenderPipelineDescriptor, options PipelineOption, completionHandler NewRenderPipelineStateWithReflectionCompletionHandler) - HasNewRenderPipelineStateWithDescriptorOptionsCompletionHandler() bool + NewBufferWithBytesNoCopyLengthOptionsDeallocator(pointer unsafe.Pointer, length uint, options ResourceOptions, deallocator func(pointer unsafe.Pointer, length uint)) BufferObject + HasNewBufferWithBytesNoCopyLengthOptionsDeallocator() bool // optional - NewCommandQueueWithMaxCommandBufferCount(maxCommandBufferCount uint) CommandQueueObject - HasNewCommandQueueWithMaxCommandBufferCount() bool + NewEvent() EventObject + HasNewEvent() bool // optional - NewLibraryWithStitchedDescriptorError(descriptor StitchedLibraryDescriptor, error unsafe.Pointer) LibraryObject - HasNewLibraryWithStitchedDescriptorError() bool + NewBufferWithLengthOptions(length uint, options ResourceOptions) BufferObject + HasNewBufferWithLengthOptions() bool // optional - NewLibraryWithStitchedDescriptorCompletionHandler(descriptor StitchedLibraryDescriptor, completionHandler NewLibraryCompletionHandler) - HasNewLibraryWithStitchedDescriptorCompletionHandler() bool + NewBufferWithBytesLengthOptions(pointer unsafe.Pointer, length uint, options ResourceOptions) BufferObject + HasNewBufferWithBytesLengthOptions() bool // optional - NewCommandQueue() CommandQueueObject - HasNewCommandQueue() bool + NewSharedEvent() SharedEventObject + HasNewSharedEvent() bool // optional - NewAccelerationStructureWithSize(size uint) AccelerationStructureObject - HasNewAccelerationStructureWithSize() bool + SparseTileSizeWithTextureTypePixelFormatSampleCount(textureType TextureType, pixelFormat PixelFormat, sampleCount uint) Size + HasSparseTileSizeWithTextureTypePixelFormatSampleCount() bool // optional - NewTextureWithDescriptorIosurfacePlane(descriptor TextureDescriptor, iosurface iosurface.Ref, plane uint) TextureObject - HasNewTextureWithDescriptorIosurfacePlane() bool + NewSamplerStateWithDescriptor(descriptor SamplerDescriptor) SamplerStateObject + HasNewSamplerStateWithDescriptor() bool // optional - SupportsFamily(gpuFamily GPUFamily) bool - HasSupportsFamily() bool + NewDynamicLibraryWithURLError(url foundation.URL, error unsafe.Pointer) DynamicLibraryObject + HasNewDynamicLibraryWithURLError() bool // optional NewRenderPipelineStateWithTileDescriptorOptionsCompletionHandler(descriptor TileRenderPipelineDescriptor, options PipelineOption, completionHandler NewRenderPipelineStateWithReflectionCompletionHandler) HasNewRenderPipelineStateWithTileDescriptorOptionsCompletionHandler() bool - // optional - NewSamplerStateWithDescriptor(descriptor SamplerDescriptor) SamplerStateObject - HasNewSamplerStateWithDescriptor() bool - // optional SupportsCounterSampling(samplingPoint CounterSamplingPoint) bool HasSupportsCounterSampling() bool // optional - NewSharedEvent() SharedEventObject - HasNewSharedEvent() bool - - // optional - NewComputePipelineStateWithDescriptorOptionsReflectionError(descriptor ComputePipelineDescriptor, options PipelineOption, reflection *AutoreleasedComputePipelineReflection, error unsafe.Pointer) ComputePipelineStateObject - HasNewComputePipelineStateWithDescriptorOptionsReflectionError() bool + SupportsVertexAmplificationCount(count uint) bool + HasSupportsVertexAmplificationCount() bool // optional - HeapBufferSizeAndAlignWithLengthOptions(length uint, options ResourceOptions) SizeAndAlign - HasHeapBufferSizeAndAlignWithLengthOptions() bool + NewComputePipelineStateWithFunctionCompletionHandler(computeFunction FunctionObject, completionHandler NewComputePipelineStateCompletionHandler) + HasNewComputePipelineStateWithFunctionCompletionHandler() bool // optional - NewRasterizationRateMapWithDescriptor(descriptor RasterizationRateMapDescriptor) RasterizationRateMapObject - HasNewRasterizationRateMapWithDescriptor() bool + AccelerationStructureSizesWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureSizes + HasAccelerationStructureSizesWithDescriptor() bool // optional - NewEvent() EventObject - HasNewEvent() bool + NewDefaultLibrary() LibraryObject + HasNewDefaultLibrary() bool // optional - NewFence() FenceObject - HasNewFence() bool + NewDepthStencilStateWithDescriptor(descriptor DepthStencilDescriptor) DepthStencilStateObject + HasNewDepthStencilStateWithDescriptor() bool // optional - NewComputePipelineStateWithDescriptorOptionsCompletionHandler(descriptor ComputePipelineDescriptor, options PipelineOption, completionHandler NewComputePipelineStateWithReflectionCompletionHandler) - HasNewComputePipelineStateWithDescriptorOptionsCompletionHandler() bool + ConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions(tileRegions *Region, pixelRegions *Region, tileSize Size, numRegions uint) + HasConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions() bool // optional - SampleTimestampsGpuTimestamp(cpuTimestamp *Timestamp, gpuTimestamp *Timestamp) - HasSampleTimestampsGpuTimestamp() bool + NewRenderPipelineStateWithDescriptorCompletionHandler(descriptor RenderPipelineDescriptor, completionHandler NewRenderPipelineStateCompletionHandler) + HasNewRenderPipelineStateWithDescriptorCompletionHandler() bool // optional - SupportsRasterizationRateMapWithLayerCount(layerCount uint) bool - HasSupportsRasterizationRateMapWithLayerCount() bool + NewSharedTextureWithHandle(sharedHandle SharedTextureHandle) TextureObject + HasNewSharedTextureWithHandle() bool // optional - NewArgumentEncoderWithArguments(arguments []ArgumentDescriptor) ArgumentEncoderObject - HasNewArgumentEncoderWithArguments() bool + NewLibraryWithURLError(url foundation.URL, error unsafe.Pointer) LibraryObject + HasNewLibraryWithURLError() bool // optional - MinimumLinearTextureAlignmentForPixelFormat(format PixelFormat) uint - HasMinimumLinearTextureAlignmentForPixelFormat() bool + NewSharedEventWithHandle(sharedEventHandle SharedEventHandle) SharedEventObject + HasNewSharedEventWithHandle() bool // optional - NewDynamicLibraryError(library LibraryObject, error unsafe.Pointer) DynamicLibraryObject - HasNewDynamicLibraryError() bool + SupportsPrimitiveMotionBlur() bool + HasSupportsPrimitiveMotionBlur() bool // optional - ConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions(pixelRegions *Region, tileRegions *Region, tileSize Size, mode SparseTextureRegionAlignmentMode, numRegions uint) - HasConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions() bool + SupportsPullModelInterpolation() bool + HasSupportsPullModelInterpolation() bool // optional - NewComputePipelineStateWithFunctionOptionsCompletionHandler(computeFunction FunctionObject, options PipelineOption, completionHandler NewComputePipelineStateWithReflectionCompletionHandler) - HasNewComputePipelineStateWithFunctionOptionsCompletionHandler() bool + SparseTileSizeInBytes() uint + HasSparseTileSizeInBytes() bool // optional - NewComputePipelineStateWithFunctionCompletionHandler(computeFunction FunctionObject, completionHandler NewComputePipelineStateCompletionHandler) - HasNewComputePipelineStateWithFunctionCompletionHandler() bool + ReadWriteTextureSupport() ReadWriteTextureTier + HasReadWriteTextureSupport() bool // optional - NewRenderPipelineStateWithTileDescriptorOptionsReflectionError(descriptor TileRenderPipelineDescriptor, options PipelineOption, reflection *AutoreleasedRenderPipelineReflection, error unsafe.Pointer) RenderPipelineStateObject - HasNewRenderPipelineStateWithTileDescriptorOptionsReflectionError() bool + Supports32BitFloatFiltering() bool + HasSupports32BitFloatFiltering() bool // optional - NewDepthStencilStateWithDescriptor(descriptor DepthStencilDescriptor) DepthStencilStateObject - HasNewDepthStencilStateWithDescriptor() bool + PeerCount() uint32 + HasPeerCount() bool // optional - NewLibraryWithDataError(data dispatch.Data, error unsafe.Pointer) LibraryObject - HasNewLibraryWithDataError() bool + AreRasterOrderGroupsSupported() bool + HasAreRasterOrderGroupsSupported() bool // optional - NewRenderPipelineStateWithDescriptorError(descriptor RenderPipelineDescriptor, error unsafe.Pointer) RenderPipelineStateObject - HasNewRenderPipelineStateWithDescriptorError() bool + Name() string + HasName() bool // optional - NewBufferWithLengthOptions(length uint, options ResourceOptions) BufferObject - HasNewBufferWithLengthOptions() bool + Location() DeviceLocation + HasLocation() bool // optional - NewLibraryWithSourceOptionsCompletionHandler(source string, options CompileOptions, completionHandler NewLibraryCompletionHandler) - HasNewLibraryWithSourceOptionsCompletionHandler() bool + IsLowPower() bool + HasIsLowPower() bool // optional - Location() DeviceLocation - HasLocation() bool + SupportsBCTextureCompression() bool + HasSupportsBCTextureCompression() bool // optional - IsHeadless() bool - HasIsHeadless() bool + SupportsRaytracing() bool + HasSupportsRaytracing() bool // optional - SupportsPrimitiveMotionBlur() bool - HasSupportsPrimitiveMotionBlur() bool + SupportsShaderBarycentricCoordinates() bool + HasSupportsShaderBarycentricCoordinates() bool // optional RecommendedMaxWorkingSetSize() uint64 HasRecommendedMaxWorkingSetSize() bool // optional - IsRemovable() bool - HasIsRemovable() bool + MaxThreadsPerThreadgroup() Size + HasMaxThreadsPerThreadgroup() bool // optional - MaxTransferRate() uint64 - HasMaxTransferRate() bool + PeerIndex() uint32 + HasPeerIndex() bool // optional - ArgumentBuffersSupport() ArgumentBuffersTier - HasArgumentBuffersSupport() bool + SupportsFunctionPointersFromRender() bool + HasSupportsFunctionPointersFromRender() bool // optional - SupportsShaderBarycentricCoordinates() bool - HasSupportsShaderBarycentricCoordinates() bool + SupportsFunctionPointers() bool + HasSupportsFunctionPointers() bool // optional - ReadWriteTextureSupport() ReadWriteTextureTier - HasReadWriteTextureSupport() bool + CounterSets() []CounterSetObject + HasCounterSets() bool // optional - SupportsRenderDynamicLibraries() bool - HasSupportsRenderDynamicLibraries() bool + IsRemovable() bool + HasIsRemovable() bool // optional - SupportsFunctionPointers() bool - HasSupportsFunctionPointers() bool + AreProgrammableSamplePositionsSupported() bool + HasAreProgrammableSamplePositionsSupported() bool + + // optional + IsDepth24Stencil8PixelFormatSupported() bool + HasIsDepth24Stencil8PixelFormatSupported() bool // optional LocationNumber() uint HasLocationNumber() bool // optional - SparseTileSizeInBytes() uint - HasSparseTileSizeInBytes() bool + RegistryID() uint64 + HasRegistryID() bool + + // optional + Supports32BitMSAA() bool + HasSupports32BitMSAA() bool // optional MaxBufferLength() uint HasMaxBufferLength() bool // optional - AreProgrammableSamplePositionsSupported() bool - HasAreProgrammableSamplePositionsSupported() bool + SupportsRenderDynamicLibraries() bool + HasSupportsRenderDynamicLibraries() bool // optional - SupportsPullModelInterpolation() bool - HasSupportsPullModelInterpolation() bool + PeerGroupID() uint64 + HasPeerGroupID() bool // optional - CurrentAllocatedSize() uint - HasCurrentAllocatedSize() bool + MaxArgumentBufferSamplerCount() uint + HasMaxArgumentBufferSamplerCount() bool // optional - CounterSets() []CounterSetObject - HasCounterSets() bool + IsHeadless() bool + HasIsHeadless() bool // optional - Supports32BitFloatFiltering() bool - HasSupports32BitFloatFiltering() bool + SupportsRaytracingFromRender() bool + HasSupportsRaytracingFromRender() bool // optional - SupportsFunctionPointersFromRender() bool - HasSupportsFunctionPointersFromRender() bool + SupportsQueryTextureLOD() bool + HasSupportsQueryTextureLOD() bool // optional - MaxThreadsPerThreadgroup() Size - HasMaxThreadsPerThreadgroup() bool + MaxTransferRate() uint64 + HasMaxTransferRate() bool // optional - PeerCount() uint32 - HasPeerCount() bool + MaxThreadgroupMemoryLength() uint + HasMaxThreadgroupMemoryLength() bool // optional HasUnifiedMemory() bool HasHasUnifiedMemory() bool - // optional - SupportsBCTextureCompression() bool - HasSupportsBCTextureCompression() bool - - // optional - RegistryID() uint64 - HasRegistryID() bool - - // optional - SupportsRaytracing() bool - HasSupportsRaytracing() bool - - // optional - IsDepth24Stencil8PixelFormatSupported() bool - HasIsDepth24Stencil8PixelFormatSupported() bool - - // optional - IsLowPower() bool - HasIsLowPower() bool - - // optional - MaxThreadgroupMemoryLength() uint - HasMaxThreadgroupMemoryLength() bool - // optional SupportsDynamicLibraries() bool HasSupportsDynamicLibraries() bool // optional - MaxArgumentBufferSamplerCount() uint - HasMaxArgumentBufferSamplerCount() bool - - // optional - PeerIndex() uint32 - HasPeerIndex() bool - - // optional - Supports32BitMSAA() bool - HasSupports32BitMSAA() bool - - // optional - Name() string - HasName() bool - - // optional - SupportsQueryTextureLOD() bool - HasSupportsQueryTextureLOD() bool - - // optional - AreRasterOrderGroupsSupported() bool - HasAreRasterOrderGroupsSupported() bool - - // optional - SupportsRaytracingFromRender() bool - HasSupportsRaytracingFromRender() bool + CurrentAllocatedSize() uint + HasCurrentAllocatedSize() bool // optional - PeerGroupID() uint64 - HasPeerGroupID() bool + ArgumentBuffersSupport() ArgumentBuffersTier + HasArgumentBuffersSupport() bool } // ensure impl type implements protocol interface @@ -416,63 +371,63 @@ type DeviceObject struct { objc.Object } -func (d_ DeviceObject) HasNewDefaultLibrary() bool { - return d_.RespondsToSelector(objc.Sel("newDefaultLibrary")) +func (d_ DeviceObject) HasSupportsFamily() bool { + return d_.RespondsToSelector(objc.Sel("supportsFamily:")) } -// Creates a Metal library instance that contains the functions from your app’s default Metal library. [Full Topic] +// Returns a Boolean value that indicates whether the GPU device supports the feature set of a specific GPU family. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433380-newdefaultlibrary?language=objc -func (d_ DeviceObject) NewDefaultLibrary() LibraryObject { - rv := objc.Call[LibraryObject](d_, objc.Sel("newDefaultLibrary")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3143473-supportsfamily?language=objc +func (d_ DeviceObject) SupportsFamily(gpuFamily GPUFamily) bool { + rv := objc.Call[bool](d_, objc.Sel("supportsFamily:"), gpuFamily) return rv } -func (d_ DeviceObject) HasNewBufferWithBytesLengthOptions() bool { - return d_.RespondsToSelector(objc.Sel("newBufferWithBytes:length:options:")) +func (d_ DeviceObject) HasMinimumLinearTextureAlignmentForPixelFormat() bool { + return d_.RespondsToSelector(objc.Sel("minimumLinearTextureAlignmentForPixelFormat:")) } -// Allocates a new buffer of a given length and initializes its contents by copying existing data into it. [Full Topic] +// Returns the minimum alignment the GPU device requires to create a linear texture from a buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433429-newbufferwithbytes?language=objc -func (d_ DeviceObject) NewBufferWithBytesLengthOptions(pointer unsafe.Pointer, length uint, options ResourceOptions) BufferObject { - rv := objc.Call[BufferObject](d_, objc.Sel("newBufferWithBytes:length:options:"), pointer, length, options) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866126-minimumlineartexturealignmentfor?language=objc +func (d_ DeviceObject) MinimumLinearTextureAlignmentForPixelFormat(format PixelFormat) uint { + rv := objc.Call[uint](d_, objc.Sel("minimumLinearTextureAlignmentForPixelFormat:"), format) return rv } -func (d_ DeviceObject) HasSupportsVertexAmplificationCount() bool { - return d_.RespondsToSelector(objc.Sel("supportsVertexAmplificationCount:")) +func (d_ DeviceObject) HasNewDynamicLibraryError() bool { + return d_.RespondsToSelector(objc.Sel("newDynamicLibrary:error:")) } -// Returns a Boolean value that indicates whether the GPU supports an amplification factor. [Full Topic] +// Creates a Metal dynamic library instance from a Metal library instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3197984-supportsvertexamplificationcount?language=objc -func (d_ DeviceObject) SupportsVertexAmplificationCount(count uint) bool { - rv := objc.Call[bool](d_, objc.Sel("supportsVertexAmplificationCount:"), count) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553974-newdynamiclibrary?language=objc +func (d_ DeviceObject) NewDynamicLibraryError(library LibraryObject, error unsafe.Pointer) DynamicLibraryObject { + po0 := objc.WrapAsProtocol("MTLLibrary", library) + rv := objc.Call[DynamicLibraryObject](d_, objc.Sel("newDynamicLibrary:error:"), po0, error) return rv } -func (d_ DeviceObject) HasNewLibraryWithSourceOptionsError() bool { - return d_.RespondsToSelector(objc.Sel("newLibraryWithSource:options:error:")) +func (d_ DeviceObject) HasSampleTimestampsGpuTimestamp() bool { + return d_.RespondsToSelector(objc.Sel("sampleTimestamps:gpuTimestamp:")) } -// Synchronously creates a Metal library instance by compiling the functions in a source string. [Full Topic] +// Captures and returns a CPU timestamp and a GPU timestamp from the same moment in time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433431-newlibrarywithsource?language=objc -func (d_ DeviceObject) NewLibraryWithSourceOptionsError(source string, options CompileOptions, error unsafe.Pointer) LibraryObject { - rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithSource:options:error:"), source, options, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3194378-sampletimestamps?language=objc +func (d_ DeviceObject) SampleTimestampsGpuTimestamp(cpuTimestamp *Timestamp, gpuTimestamp *Timestamp) { + objc.Call[objc.Void](d_, objc.Sel("sampleTimestamps:gpuTimestamp:"), cpuTimestamp, gpuTimestamp) } -func (d_ DeviceObject) HasNewSharedEventWithHandle() bool { - return d_.RespondsToSelector(objc.Sel("newSharedEventWithHandle:")) +func (d_ DeviceObject) HasNewTextureWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:")) } -// Recreates a shared event from a handle. [Full Topic] +// Creates a new texture instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2981024-newsharedeventwithhandle?language=objc -func (d_ DeviceObject) NewSharedEventWithHandle(sharedEventHandle SharedEventHandle) SharedEventObject { - rv := objc.Call[SharedEventObject](d_, objc.Sel("newSharedEventWithHandle:"), sharedEventHandle) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433425-newtexturewithdescriptor?language=objc +func (d_ DeviceObject) NewTextureWithDescriptor(descriptor TextureDescriptor) TextureObject { + rv := objc.Call[TextureObject](d_, objc.Sel("newTextureWithDescriptor:"), descriptor) return rv } @@ -488,171 +443,74 @@ func (d_ DeviceObject) NewBinaryArchiveWithDescriptorError(descriptor BinaryArch return rv } -func (d_ DeviceObject) HasNewIndirectCommandBufferWithDescriptorMaxCommandCountOptions() bool { - return d_.RespondsToSelector(objc.Sel("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:")) -} - -// Creates an indirect command buffer instance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967420-newindirectcommandbufferwithdesc?language=objc -func (d_ DeviceObject) NewIndirectCommandBufferWithDescriptorMaxCommandCountOptions(descriptor IndirectCommandBufferDescriptor, maxCount uint, options ResourceOptions) IndirectCommandBufferObject { - rv := objc.Call[IndirectCommandBufferObject](d_, objc.Sel("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), descriptor, maxCount, options) - return rv -} - -func (d_ DeviceObject) HasNewSharedTextureWithHandle() bool { - return d_.RespondsToSelector(objc.Sel("newSharedTextureWithHandle:")) -} - -// Creates a texture that references a shared texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967422-newsharedtexturewithhandle?language=objc -func (d_ DeviceObject) NewSharedTextureWithHandle(sharedHandle SharedTextureHandle) TextureObject { - rv := objc.Call[TextureObject](d_, objc.Sel("newSharedTextureWithHandle:"), sharedHandle) - return rv -} - -func (d_ DeviceObject) HasNewComputePipelineStateWithFunctionError() bool { - return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithFunction:error:")) -} - -// Synchronously creates a new compute pipeline state with a function instance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433395-newcomputepipelinestatewithfunct?language=objc -func (d_ DeviceObject) NewComputePipelineStateWithFunctionError(computeFunction FunctionObject, error unsafe.Pointer) ComputePipelineStateObject { - po0 := objc.WrapAsProtocol("MTLFunction", computeFunction) - rv := objc.Call[ComputePipelineStateObject](d_, objc.Sel("newComputePipelineStateWithFunction:error:"), po0, error) - return rv -} - -func (d_ DeviceObject) HasSparseTileSizeWithTextureTypePixelFormatSampleCount() bool { - return d_.RespondsToSelector(objc.Sel("sparseTileSizeWithTextureType:pixelFormat:sampleCount:")) -} - -// Returns the dimensions of a sparse tile for a texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3377856-sparsetilesizewithtexturetype?language=objc -func (d_ DeviceObject) SparseTileSizeWithTextureTypePixelFormatSampleCount(textureType TextureType, pixelFormat PixelFormat, sampleCount uint) Size { - rv := objc.Call[Size](d_, objc.Sel("sparseTileSizeWithTextureType:pixelFormat:sampleCount:"), textureType, pixelFormat, sampleCount) - return rv -} - -func (d_ DeviceObject) HasNewLibraryWithURLError() bool { - return d_.RespondsToSelector(objc.Sel("newLibraryWithURL:error:")) -} - -// Creates a Metal library instance that contains the functions in the Metal library file at a URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2877432-newlibrarywithurl?language=objc -func (d_ DeviceObject) NewLibraryWithURLError(url foundation.URL, error unsafe.Pointer) LibraryObject { - rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithURL:error:"), url, error) - return rv -} - -func (d_ DeviceObject) HasNewAccelerationStructureWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newAccelerationStructureWithDescriptor:")) -} - -// Creates a new ray-tracing acceleration structure from a descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553971-newaccelerationstructurewithdesc?language=objc -func (d_ DeviceObject) NewAccelerationStructureWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureObject { - rv := objc.Call[AccelerationStructureObject](d_, objc.Sel("newAccelerationStructureWithDescriptor:"), descriptor) - return rv -} - -func (d_ DeviceObject) HasConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions() bool { - return d_.RespondsToSelector(objc.Sel("convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:")) -} - -// Converts a list of sparse tile regions to pixel regions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3197983-convertsparsetileregions?language=objc -func (d_ DeviceObject) ConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions(tileRegions *Region, pixelRegions *Region, tileSize Size, numRegions uint) { - objc.Call[objc.Void](d_, objc.Sel("convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:"), tileRegions, pixelRegions, tileSize, numRegions) -} - -func (d_ DeviceObject) HasNewComputePipelineStateWithFunctionOptionsReflectionError() bool { - return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithFunction:options:reflection:error:")) +func (d_ DeviceObject) HasNewAccelerationStructureWithSize() bool { + return d_.RespondsToSelector(objc.Sel("newAccelerationStructureWithSize:")) } -// Synchronously creates a compute pipeline state and reflection with a function instance. [Full Topic] +// Creates a new acceleration structure with a specific size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433419-newcomputepipelinestatewithfunct?language=objc -func (d_ DeviceObject) NewComputePipelineStateWithFunctionOptionsReflectionError(computeFunction FunctionObject, options PipelineOption, reflection *AutoreleasedComputePipelineReflection, error unsafe.Pointer) ComputePipelineStateObject { - po0 := objc.WrapAsProtocol("MTLFunction", computeFunction) - rv := objc.Call[ComputePipelineStateObject](d_, objc.Sel("newComputePipelineStateWithFunction:options:reflection:error:"), po0, options, reflection, error) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553972-newaccelerationstructurewithsize?language=objc +func (d_ DeviceObject) NewAccelerationStructureWithSize(size uint) AccelerationStructureObject { + rv := objc.Call[AccelerationStructureObject](d_, objc.Sel("newAccelerationStructureWithSize:"), size) return rv } -func (d_ DeviceObject) HasNewHeapWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newHeapWithDescriptor:")) +func (d_ DeviceObject) HasSupportsRasterizationRateMapWithLayerCount() bool { + return d_.RespondsToSelector(objc.Sel("supportsRasterizationRateMapWithLayerCount:")) } -// Creates a new GPU heap instance. [Full Topic] +// Returns a Boolean value that indicates whether the GPU can create a rasterization rate map with a specific number of layers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1649928-newheapwithdescriptor?language=objc -func (d_ DeviceObject) NewHeapWithDescriptor(descriptor HeapDescriptor) HeapObject { - rv := objc.Call[HeapObject](d_, objc.Sel("newHeapWithDescriptor:"), descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3131682-supportsrasterizationratemapwith?language=objc +func (d_ DeviceObject) SupportsRasterizationRateMapWithLayerCount(layerCount uint) bool { + rv := objc.Call[bool](d_, objc.Sel("supportsRasterizationRateMapWithLayerCount:"), layerCount) return rv } -func (d_ DeviceObject) HasNewTextureWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:")) +func (d_ DeviceObject) HasNewLibraryWithSourceOptionsError() bool { + return d_.RespondsToSelector(objc.Sel("newLibraryWithSource:options:error:")) } -// Creates a new texture instance. [Full Topic] +// Synchronously creates a Metal library instance by compiling the functions in a source string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433425-newtexturewithdescriptor?language=objc -func (d_ DeviceObject) NewTextureWithDescriptor(descriptor TextureDescriptor) TextureObject { - rv := objc.Call[TextureObject](d_, objc.Sel("newTextureWithDescriptor:"), descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433431-newlibrarywithsource?language=objc +func (d_ DeviceObject) NewLibraryWithSourceOptionsError(source string, options CompileOptions, error unsafe.Pointer) LibraryObject { + rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithSource:options:error:"), source, options, error) return rv } -func (d_ DeviceObject) HasGetDefaultSamplePositionsCount() bool { - return d_.RespondsToSelector(objc.Sel("getDefaultSamplePositions:count:")) -} - -// Retrieves the default sample positions for a specific sample count. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866120-getdefaultsamplepositions?language=objc -func (d_ DeviceObject) GetDefaultSamplePositionsCount(positions *SamplePosition, count uint) { - objc.Call[objc.Void](d_, objc.Sel("getDefaultSamplePositions:count:"), positions, count) -} - -func (d_ DeviceObject) HasNewCounterSampleBufferWithDescriptorError() bool { - return d_.RespondsToSelector(objc.Sel("newCounterSampleBufferWithDescriptor:error:")) +func (d_ DeviceObject) HasNewArgumentEncoderWithArguments() bool { + return d_.RespondsToSelector(objc.Sel("newArgumentEncoderWithArguments:")) } -// Creates a counter sample buffer. [Full Topic] +// Creates a new argument encoder for an array of arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3081741-newcountersamplebufferwithdescri?language=objc -func (d_ DeviceObject) NewCounterSampleBufferWithDescriptorError(descriptor CounterSampleBufferDescriptor, error unsafe.Pointer) CounterSampleBufferObject { - rv := objc.Call[CounterSampleBufferObject](d_, objc.Sel("newCounterSampleBufferWithDescriptor:error:"), descriptor, error) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915744-newargumentencoderwitharguments?language=objc +func (d_ DeviceObject) NewArgumentEncoderWithArguments(arguments []ArgumentDescriptor) ArgumentEncoderObject { + rv := objc.Call[ArgumentEncoderObject](d_, objc.Sel("newArgumentEncoderWithArguments:"), arguments) return rv } -func (d_ DeviceObject) HasHeapTextureSizeAndAlignWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("heapTextureSizeAndAlignWithDescriptor:")) +func (d_ DeviceObject) HasNewComputePipelineStateWithDescriptorOptionsCompletionHandler() bool { + return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithDescriptor:options:completionHandler:")) } -// Returns the size and alignment, in bytes, of a texture if you create it from a heap. [Full Topic] +// Asynchronously creates a compute pipeline state and reflection information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1649927-heaptexturesizeandalignwithdescr?language=objc -func (d_ DeviceObject) HeapTextureSizeAndAlignWithDescriptor(desc TextureDescriptor) SizeAndAlign { - rv := objc.Call[SizeAndAlign](d_, objc.Sel("heapTextureSizeAndAlignWithDescriptor:"), desc) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433403-newcomputepipelinestatewithdescr?language=objc +func (d_ DeviceObject) NewComputePipelineStateWithDescriptorOptionsCompletionHandler(descriptor ComputePipelineDescriptor, options PipelineOption, completionHandler NewComputePipelineStateWithReflectionCompletionHandler) { + objc.Call[objc.Void](d_, objc.Sel("newComputePipelineStateWithDescriptor:options:completionHandler:"), descriptor, options, completionHandler) } -func (d_ DeviceObject) HasNewDynamicLibraryWithURLError() bool { - return d_.RespondsToSelector(objc.Sel("newDynamicLibraryWithURL:error:")) +func (d_ DeviceObject) HasNewCommandQueue() bool { + return d_.RespondsToSelector(objc.Sel("newCommandQueue")) } -// Creates a Metal dynamic library instance that contains the functions in the Metal library file at a URL. [Full Topic] +// Creates a queue you use to submit rendering and computation commands to a GPU. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3564458-newdynamiclibrarywithurl?language=objc -func (d_ DeviceObject) NewDynamicLibraryWithURLError(url foundation.URL, error unsafe.Pointer) DynamicLibraryObject { - rv := objc.Call[DynamicLibraryObject](d_, objc.Sel("newDynamicLibraryWithURL:error:"), url, error) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433388-newcommandqueue?language=objc +func (d_ DeviceObject) NewCommandQueue() CommandQueueObject { + rv := objc.Call[CommandQueueObject](d_, objc.Sel("newCommandQueue")) return rv } @@ -668,77 +526,6 @@ func (d_ DeviceObject) SupportsTextureSampleCount(sampleCount uint) bool { return rv } -func (d_ DeviceObject) HasNewBufferWithBytesNoCopyLengthOptionsDeallocator() bool { - return d_.RespondsToSelector(objc.Sel("newBufferWithBytesNoCopy:length:options:deallocator:")) -} - -// Creates a buffer that wraps an existing contiguous memory allocation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433382-newbufferwithbytesnocopy?language=objc -func (d_ DeviceObject) NewBufferWithBytesNoCopyLengthOptionsDeallocator(pointer unsafe.Pointer, length uint, options ResourceOptions, deallocator func(pointer unsafe.Pointer, length uint)) BufferObject { - rv := objc.Call[BufferObject](d_, objc.Sel("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, options, deallocator) - return rv -} - -func (d_ DeviceObject) HasNewRenderPipelineStateWithDescriptorCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithDescriptor:completionHandler:")) -} - -// Asynchronously creates a render pipeline state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433363-newrenderpipelinestatewithdescri?language=objc -func (d_ DeviceObject) NewRenderPipelineStateWithDescriptorCompletionHandler(descriptor RenderPipelineDescriptor, completionHandler NewRenderPipelineStateCompletionHandler) { - objc.Call[objc.Void](d_, objc.Sel("newRenderPipelineStateWithDescriptor:completionHandler:"), descriptor, completionHandler) -} - -func (d_ DeviceObject) HasNewRenderPipelineStateWithDescriptorOptionsReflectionError() bool { - return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithDescriptor:options:reflection:error:")) -} - -// Synchronously creates a render pipeline state and reflection information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433361-newrenderpipelinestatewithdescri?language=objc -func (d_ DeviceObject) NewRenderPipelineStateWithDescriptorOptionsReflectionError(descriptor RenderPipelineDescriptor, options PipelineOption, reflection *AutoreleasedRenderPipelineReflection, error unsafe.Pointer) RenderPipelineStateObject { - rv := objc.Call[RenderPipelineStateObject](d_, objc.Sel("newRenderPipelineStateWithDescriptor:options:reflection:error:"), descriptor, options, reflection, error) - return rv -} - -func (d_ DeviceObject) HasNewSharedTextureWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newSharedTextureWithDescriptor:")) -} - -// Creates a texture that you can share across process boundaries. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967421-newsharedtexturewithdescriptor?language=objc -func (d_ DeviceObject) NewSharedTextureWithDescriptor(descriptor TextureDescriptor) TextureObject { - rv := objc.Call[TextureObject](d_, objc.Sel("newSharedTextureWithDescriptor:"), descriptor) - return rv -} - -func (d_ DeviceObject) HasNewDefaultLibraryWithBundleError() bool { - return d_.RespondsToSelector(objc.Sel("newDefaultLibraryWithBundle:error:")) -} - -// Creates a Metal library instance that contains the functions in a bundle’s default Metal library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2177054-newdefaultlibrarywithbundle?language=objc -func (d_ DeviceObject) NewDefaultLibraryWithBundleError(bundle foundation.Bundle, error unsafe.Pointer) LibraryObject { - rv := objc.Call[LibraryObject](d_, objc.Sel("newDefaultLibraryWithBundle:error:"), bundle, error) - return rv -} - -func (d_ DeviceObject) HasAccelerationStructureSizesWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("accelerationStructureSizesWithDescriptor:")) -} - -// Returns the buffer sizes the GPU device needs to build, refit, and store an acceleration structure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553970-accelerationstructuresizeswithde?language=objc -func (d_ DeviceObject) AccelerationStructureSizesWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureSizes { - rv := objc.Call[AccelerationStructureSizes](d_, objc.Sel("accelerationStructureSizesWithDescriptor:"), descriptor) - return rv -} - func (d_ DeviceObject) HasMinimumTextureBufferAlignmentForPixelFormat() bool { return d_.RespondsToSelector(objc.Sel("minimumTextureBufferAlignmentForPixelFormat:")) } @@ -751,180 +538,192 @@ func (d_ DeviceObject) MinimumTextureBufferAlignmentForPixelFormat(format PixelF return rv } -func (d_ DeviceObject) HasNewRenderPipelineStateWithDescriptorOptionsCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithDescriptor:options:completionHandler:")) +func (d_ DeviceObject) HasNewFence() bool { + return d_.RespondsToSelector(objc.Sel("newFence")) } -// Asynchronously creates a render pipeline state and reflection information. [Full Topic] +// Creates a new memory fence instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433365-newrenderpipelinestatewithdescri?language=objc -func (d_ DeviceObject) NewRenderPipelineStateWithDescriptorOptionsCompletionHandler(descriptor RenderPipelineDescriptor, options PipelineOption, completionHandler NewRenderPipelineStateWithReflectionCompletionHandler) { - objc.Call[objc.Void](d_, objc.Sel("newRenderPipelineStateWithDescriptor:options:completionHandler:"), descriptor, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1649923-newfence?language=objc +func (d_ DeviceObject) NewFence() FenceObject { + rv := objc.Call[FenceObject](d_, objc.Sel("newFence")) + return rv } -func (d_ DeviceObject) HasNewCommandQueueWithMaxCommandBufferCount() bool { - return d_.RespondsToSelector(objc.Sel("newCommandQueueWithMaxCommandBufferCount:")) +func (d_ DeviceObject) HasGetDefaultSamplePositionsCount() bool { + return d_.RespondsToSelector(objc.Sel("getDefaultSamplePositions:count:")) } -// Creates a queue you use to submit rendering and computation commands to a GPU that has a fixed number of uncompleted command buffers. [Full Topic] +// Retrieves the default sample positions for a specific sample count. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433433-newcommandqueuewithmaxcommandbuf?language=objc -func (d_ DeviceObject) NewCommandQueueWithMaxCommandBufferCount(maxCommandBufferCount uint) CommandQueueObject { - rv := objc.Call[CommandQueueObject](d_, objc.Sel("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866120-getdefaultsamplepositions?language=objc +func (d_ DeviceObject) GetDefaultSamplePositionsCount(positions *SamplePosition, count uint) { + objc.Call[objc.Void](d_, objc.Sel("getDefaultSamplePositions:count:"), positions, count) +} + +func (d_ DeviceObject) HasNewRasterizationRateMapWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newRasterizationRateMapWithDescriptor:")) +} + +// Creates a rasterization rate map instance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3131681-newrasterizationratemapwithdescr?language=objc +func (d_ DeviceObject) NewRasterizationRateMapWithDescriptor(descriptor RasterizationRateMapDescriptor) RasterizationRateMapObject { + rv := objc.Call[RasterizationRateMapObject](d_, objc.Sel("newRasterizationRateMapWithDescriptor:"), descriptor) return rv } -func (d_ DeviceObject) HasNewLibraryWithStitchedDescriptorError() bool { - return d_.RespondsToSelector(objc.Sel("newLibraryWithStitchedDescriptor:error:")) +func (d_ DeviceObject) HasNewCounterSampleBufferWithDescriptorError() bool { + return d_.RespondsToSelector(objc.Sel("newCounterSampleBufferWithDescriptor:error:")) } -// Synchronously creates a Metal library from the function stitching graphs in a descriptor. [Full Topic] +// Creates a counter sample buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3857572-newlibrarywithstitcheddescriptor?language=objc -func (d_ DeviceObject) NewLibraryWithStitchedDescriptorError(descriptor StitchedLibraryDescriptor, error unsafe.Pointer) LibraryObject { - rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithStitchedDescriptor:error:"), descriptor, error) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3081741-newcountersamplebufferwithdescri?language=objc +func (d_ DeviceObject) NewCounterSampleBufferWithDescriptorError(descriptor CounterSampleBufferDescriptor, error unsafe.Pointer) CounterSampleBufferObject { + rv := objc.Call[CounterSampleBufferObject](d_, objc.Sel("newCounterSampleBufferWithDescriptor:error:"), descriptor, error) return rv } -func (d_ DeviceObject) HasNewLibraryWithStitchedDescriptorCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newLibraryWithStitchedDescriptor:completionHandler:")) +func (d_ DeviceObject) HasNewCommandQueueWithMaxCommandBufferCount() bool { + return d_.RespondsToSelector(objc.Sel("newCommandQueueWithMaxCommandBufferCount:")) } -// Asynchronously creates a Metal library from the function stitching graphs in a descriptor. [Full Topic] +// Creates a queue you use to submit rendering and computation commands to a GPU that has a fixed number of uncompleted command buffers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3857571-newlibrarywithstitcheddescriptor?language=objc -func (d_ DeviceObject) NewLibraryWithStitchedDescriptorCompletionHandler(descriptor StitchedLibraryDescriptor, completionHandler NewLibraryCompletionHandler) { - objc.Call[objc.Void](d_, objc.Sel("newLibraryWithStitchedDescriptor:completionHandler:"), descriptor, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433433-newcommandqueuewithmaxcommandbuf?language=objc +func (d_ DeviceObject) NewCommandQueueWithMaxCommandBufferCount(maxCommandBufferCount uint) CommandQueueObject { + rv := objc.Call[CommandQueueObject](d_, objc.Sel("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount) + return rv } -func (d_ DeviceObject) HasNewCommandQueue() bool { - return d_.RespondsToSelector(objc.Sel("newCommandQueue")) +func (d_ DeviceObject) HasNewHeapWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newHeapWithDescriptor:")) } -// Creates a queue you use to submit rendering and computation commands to a GPU. [Full Topic] +// Creates a new GPU heap instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433388-newcommandqueue?language=objc -func (d_ DeviceObject) NewCommandQueue() CommandQueueObject { - rv := objc.Call[CommandQueueObject](d_, objc.Sel("newCommandQueue")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1649928-newheapwithdescriptor?language=objc +func (d_ DeviceObject) NewHeapWithDescriptor(descriptor HeapDescriptor) HeapObject { + rv := objc.Call[HeapObject](d_, objc.Sel("newHeapWithDescriptor:"), descriptor) return rv } -func (d_ DeviceObject) HasNewAccelerationStructureWithSize() bool { - return d_.RespondsToSelector(objc.Sel("newAccelerationStructureWithSize:")) +func (d_ DeviceObject) HasNewSharedTextureWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newSharedTextureWithDescriptor:")) } -// Creates a new acceleration structure with a specific size. [Full Topic] +// Creates a texture that you can share across process boundaries. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553972-newaccelerationstructurewithsize?language=objc -func (d_ DeviceObject) NewAccelerationStructureWithSize(size uint) AccelerationStructureObject { - rv := objc.Call[AccelerationStructureObject](d_, objc.Sel("newAccelerationStructureWithSize:"), size) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967421-newsharedtexturewithdescriptor?language=objc +func (d_ DeviceObject) NewSharedTextureWithDescriptor(descriptor TextureDescriptor) TextureObject { + rv := objc.Call[TextureObject](d_, objc.Sel("newSharedTextureWithDescriptor:"), descriptor) return rv } -func (d_ DeviceObject) HasNewTextureWithDescriptorIosurfacePlane() bool { - return d_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:iosurface:plane:")) +func (d_ DeviceObject) HasConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions() bool { + return d_.RespondsToSelector(objc.Sel("convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:")) } -// Creates a texture instance that uses I/O surface to store its underlying data. [Full Topic] +// Converts a list of sparse pixel regions to tile regions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433378-newtexturewithdescriptor?language=objc -func (d_ DeviceObject) NewTextureWithDescriptorIosurfacePlane(descriptor TextureDescriptor, iosurface iosurface.Ref, plane uint) TextureObject { - rv := objc.Call[TextureObject](d_, objc.Sel("newTextureWithDescriptor:iosurface:plane:"), descriptor, iosurface, plane) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3197982-convertsparsepixelregions?language=objc +func (d_ DeviceObject) ConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions(pixelRegions *Region, tileRegions *Region, tileSize Size, mode SparseTextureRegionAlignmentMode, numRegions uint) { + objc.Call[objc.Void](d_, objc.Sel("convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:"), pixelRegions, tileRegions, tileSize, mode, numRegions) } -func (d_ DeviceObject) HasSupportsFamily() bool { - return d_.RespondsToSelector(objc.Sel("supportsFamily:")) +func (d_ DeviceObject) HasHeapBufferSizeAndAlignWithLengthOptions() bool { + return d_.RespondsToSelector(objc.Sel("heapBufferSizeAndAlignWithLength:options:")) } -// Returns a Boolean value that indicates whether the GPU device supports the feature set of a specific GPU family. [Full Topic] +// Returns the size and alignment, in bytes, of a buffer if you create it from a heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3143473-supportsfamily?language=objc -func (d_ DeviceObject) SupportsFamily(gpuFamily GPUFamily) bool { - rv := objc.Call[bool](d_, objc.Sel("supportsFamily:"), gpuFamily) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1649922-heapbuffersizeandalignwithlength?language=objc +func (d_ DeviceObject) HeapBufferSizeAndAlignWithLengthOptions(length uint, options ResourceOptions) SizeAndAlign { + rv := objc.Call[SizeAndAlign](d_, objc.Sel("heapBufferSizeAndAlignWithLength:options:"), length, options) return rv } -func (d_ DeviceObject) HasNewRenderPipelineStateWithTileDescriptorOptionsCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithTileDescriptor:options:completionHandler:")) +func (d_ DeviceObject) HasNewIndirectCommandBufferWithDescriptorMaxCommandCountOptions() bool { + return d_.RespondsToSelector(objc.Sel("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:")) } -// Asynchronously creates a tile shader’s render pipeline state and reflection information. [Full Topic] +// Creates an indirect command buffer instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866129-newrenderpipelinestatewithtilede?language=objc -func (d_ DeviceObject) NewRenderPipelineStateWithTileDescriptorOptionsCompletionHandler(descriptor TileRenderPipelineDescriptor, options PipelineOption, completionHandler NewRenderPipelineStateWithReflectionCompletionHandler) { - objc.Call[objc.Void](d_, objc.Sel("newRenderPipelineStateWithTileDescriptor:options:completionHandler:"), descriptor, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967420-newindirectcommandbufferwithdesc?language=objc +func (d_ DeviceObject) NewIndirectCommandBufferWithDescriptorMaxCommandCountOptions(descriptor IndirectCommandBufferDescriptor, maxCount uint, options ResourceOptions) IndirectCommandBufferObject { + rv := objc.Call[IndirectCommandBufferObject](d_, objc.Sel("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), descriptor, maxCount, options) + return rv } -func (d_ DeviceObject) HasNewSamplerStateWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newSamplerStateWithDescriptor:")) +func (d_ DeviceObject) HasHeapTextureSizeAndAlignWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("heapTextureSizeAndAlignWithDescriptor:")) } -// Creates a sampler state instance. [Full Topic] +// Returns the size and alignment, in bytes, of a texture if you create it from a heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433408-newsamplerstatewithdescriptor?language=objc -func (d_ DeviceObject) NewSamplerStateWithDescriptor(descriptor SamplerDescriptor) SamplerStateObject { - rv := objc.Call[SamplerStateObject](d_, objc.Sel("newSamplerStateWithDescriptor:"), descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1649927-heaptexturesizeandalignwithdescr?language=objc +func (d_ DeviceObject) HeapTextureSizeAndAlignWithDescriptor(desc TextureDescriptor) SizeAndAlign { + rv := objc.Call[SizeAndAlign](d_, objc.Sel("heapTextureSizeAndAlignWithDescriptor:"), desc) return rv } -func (d_ DeviceObject) HasSupportsCounterSampling() bool { - return d_.RespondsToSelector(objc.Sel("supportsCounterSampling:")) +func (d_ DeviceObject) HasNewLibraryWithDataError() bool { + return d_.RespondsToSelector(objc.Sel("newLibraryWithData:error:")) } -// Returns a Boolean value that indicates whether you can read GPU counters at the specified command boundary. [Full Topic] +// Creates a Metal library instance that contains the functions in a precompiled Metal library. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3564459-supportscountersampling?language=objc -func (d_ DeviceObject) SupportsCounterSampling(samplingPoint CounterSamplingPoint) bool { - rv := objc.Call[bool](d_, objc.Sel("supportsCounterSampling:"), samplingPoint) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433391-newlibrarywithdata?language=objc +func (d_ DeviceObject) NewLibraryWithDataError(data dispatch.Data, error unsafe.Pointer) LibraryObject { + rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithData:error:"), data, error) return rv } -func (d_ DeviceObject) HasNewSharedEvent() bool { - return d_.RespondsToSelector(objc.Sel("newSharedEvent")) +func (d_ DeviceObject) HasNewDefaultLibraryWithBundleError() bool { + return d_.RespondsToSelector(objc.Sel("newDefaultLibraryWithBundle:error:")) } -// Creates a new shared event instance that you can use to synchronize commands and resources across different GPU devices. [Full Topic] +// Creates a Metal library instance that contains the functions in a bundle’s default Metal library. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2966569-newsharedevent?language=objc -func (d_ DeviceObject) NewSharedEvent() SharedEventObject { - rv := objc.Call[SharedEventObject](d_, objc.Sel("newSharedEvent")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2177054-newdefaultlibrarywithbundle?language=objc +func (d_ DeviceObject) NewDefaultLibraryWithBundleError(bundle foundation.Bundle, error unsafe.Pointer) LibraryObject { + rv := objc.Call[LibraryObject](d_, objc.Sel("newDefaultLibraryWithBundle:error:"), bundle, error) return rv } -func (d_ DeviceObject) HasNewComputePipelineStateWithDescriptorOptionsReflectionError() bool { - return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithDescriptor:options:reflection:error:")) +func (d_ DeviceObject) HasNewLibraryWithStitchedDescriptorCompletionHandler() bool { + return d_.RespondsToSelector(objc.Sel("newLibraryWithStitchedDescriptor:completionHandler:")) } -// Synchronously creates a compute pipeline state and reflection information. [Full Topic] +// Asynchronously creates a Metal library from the function stitching graphs in a descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433353-newcomputepipelinestatewithdescr?language=objc -func (d_ DeviceObject) NewComputePipelineStateWithDescriptorOptionsReflectionError(descriptor ComputePipelineDescriptor, options PipelineOption, reflection *AutoreleasedComputePipelineReflection, error unsafe.Pointer) ComputePipelineStateObject { - rv := objc.Call[ComputePipelineStateObject](d_, objc.Sel("newComputePipelineStateWithDescriptor:options:reflection:error:"), descriptor, options, reflection, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3857571-newlibrarywithstitcheddescriptor?language=objc +func (d_ DeviceObject) NewLibraryWithStitchedDescriptorCompletionHandler(descriptor StitchedLibraryDescriptor, completionHandler NewLibraryCompletionHandler) { + objc.Call[objc.Void](d_, objc.Sel("newLibraryWithStitchedDescriptor:completionHandler:"), descriptor, completionHandler) } -func (d_ DeviceObject) HasHeapBufferSizeAndAlignWithLengthOptions() bool { - return d_.RespondsToSelector(objc.Sel("heapBufferSizeAndAlignWithLength:options:")) +func (d_ DeviceObject) HasNewAccelerationStructureWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newAccelerationStructureWithDescriptor:")) } -// Returns the size and alignment, in bytes, of a buffer if you create it from a heap. [Full Topic] +// Creates a new ray-tracing acceleration structure from a descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1649922-heapbuffersizeandalignwithlength?language=objc -func (d_ DeviceObject) HeapBufferSizeAndAlignWithLengthOptions(length uint, options ResourceOptions) SizeAndAlign { - rv := objc.Call[SizeAndAlign](d_, objc.Sel("heapBufferSizeAndAlignWithLength:options:"), length, options) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553971-newaccelerationstructurewithdesc?language=objc +func (d_ DeviceObject) NewAccelerationStructureWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureObject { + rv := objc.Call[AccelerationStructureObject](d_, objc.Sel("newAccelerationStructureWithDescriptor:"), descriptor) return rv } -func (d_ DeviceObject) HasNewRasterizationRateMapWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newRasterizationRateMapWithDescriptor:")) +func (d_ DeviceObject) HasNewBufferWithBytesNoCopyLengthOptionsDeallocator() bool { + return d_.RespondsToSelector(objc.Sel("newBufferWithBytesNoCopy:length:options:deallocator:")) } -// Creates a rasterization rate map instance. [Full Topic] +// Creates a buffer that wraps an existing contiguous memory allocation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3131681-newrasterizationratemapwithdescr?language=objc -func (d_ DeviceObject) NewRasterizationRateMapWithDescriptor(descriptor RasterizationRateMapDescriptor) RasterizationRateMapObject { - rv := objc.Call[RasterizationRateMapObject](d_, objc.Sel("newRasterizationRateMapWithDescriptor:"), descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433382-newbufferwithbytesnocopy?language=objc +func (d_ DeviceObject) NewBufferWithBytesNoCopyLengthOptionsDeallocator(pointer unsafe.Pointer, length uint, options ResourceOptions, deallocator func(pointer unsafe.Pointer, length uint)) BufferObject { + rv := objc.Call[BufferObject](d_, objc.Sel("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, options, deallocator) return rv } @@ -940,133 +739,146 @@ func (d_ DeviceObject) NewEvent() EventObject { return rv } -func (d_ DeviceObject) HasNewFence() bool { - return d_.RespondsToSelector(objc.Sel("newFence")) +func (d_ DeviceObject) HasNewBufferWithLengthOptions() bool { + return d_.RespondsToSelector(objc.Sel("newBufferWithLength:options:")) } -// Creates a new memory fence instance. [Full Topic] +// Creates a buffer the method clears with zero values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1649923-newfence?language=objc -func (d_ DeviceObject) NewFence() FenceObject { - rv := objc.Call[FenceObject](d_, objc.Sel("newFence")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433375-newbufferwithlength?language=objc +func (d_ DeviceObject) NewBufferWithLengthOptions(length uint, options ResourceOptions) BufferObject { + rv := objc.Call[BufferObject](d_, objc.Sel("newBufferWithLength:options:"), length, options) return rv } -func (d_ DeviceObject) HasNewComputePipelineStateWithDescriptorOptionsCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithDescriptor:options:completionHandler:")) +func (d_ DeviceObject) HasNewBufferWithBytesLengthOptions() bool { + return d_.RespondsToSelector(objc.Sel("newBufferWithBytes:length:options:")) } -// Asynchronously creates a compute pipeline state and reflection information. [Full Topic] +// Allocates a new buffer of a given length and initializes its contents by copying existing data into it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433403-newcomputepipelinestatewithdescr?language=objc -func (d_ DeviceObject) NewComputePipelineStateWithDescriptorOptionsCompletionHandler(descriptor ComputePipelineDescriptor, options PipelineOption, completionHandler NewComputePipelineStateWithReflectionCompletionHandler) { - objc.Call[objc.Void](d_, objc.Sel("newComputePipelineStateWithDescriptor:options:completionHandler:"), descriptor, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433429-newbufferwithbytes?language=objc +func (d_ DeviceObject) NewBufferWithBytesLengthOptions(pointer unsafe.Pointer, length uint, options ResourceOptions) BufferObject { + rv := objc.Call[BufferObject](d_, objc.Sel("newBufferWithBytes:length:options:"), pointer, length, options) + return rv } -func (d_ DeviceObject) HasSampleTimestampsGpuTimestamp() bool { - return d_.RespondsToSelector(objc.Sel("sampleTimestamps:gpuTimestamp:")) +func (d_ DeviceObject) HasNewSharedEvent() bool { + return d_.RespondsToSelector(objc.Sel("newSharedEvent")) } -// Captures and returns a CPU timestamp and a GPU timestamp from the same moment in time. [Full Topic] +// Creates a new shared event instance that you can use to synchronize commands and resources across different GPU devices. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3194378-sampletimestamps?language=objc -func (d_ DeviceObject) SampleTimestampsGpuTimestamp(cpuTimestamp *Timestamp, gpuTimestamp *Timestamp) { - objc.Call[objc.Void](d_, objc.Sel("sampleTimestamps:gpuTimestamp:"), cpuTimestamp, gpuTimestamp) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2966569-newsharedevent?language=objc +func (d_ DeviceObject) NewSharedEvent() SharedEventObject { + rv := objc.Call[SharedEventObject](d_, objc.Sel("newSharedEvent")) + return rv } -func (d_ DeviceObject) HasSupportsRasterizationRateMapWithLayerCount() bool { - return d_.RespondsToSelector(objc.Sel("supportsRasterizationRateMapWithLayerCount:")) +func (d_ DeviceObject) HasSparseTileSizeWithTextureTypePixelFormatSampleCount() bool { + return d_.RespondsToSelector(objc.Sel("sparseTileSizeWithTextureType:pixelFormat:sampleCount:")) } -// Returns a Boolean value that indicates whether the GPU can create a rasterization rate map with a specific number of layers. [Full Topic] +// Returns the dimensions of a sparse tile for a texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3131682-supportsrasterizationratemapwith?language=objc -func (d_ DeviceObject) SupportsRasterizationRateMapWithLayerCount(layerCount uint) bool { - rv := objc.Call[bool](d_, objc.Sel("supportsRasterizationRateMapWithLayerCount:"), layerCount) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3377856-sparsetilesizewithtexturetype?language=objc +func (d_ DeviceObject) SparseTileSizeWithTextureTypePixelFormatSampleCount(textureType TextureType, pixelFormat PixelFormat, sampleCount uint) Size { + rv := objc.Call[Size](d_, objc.Sel("sparseTileSizeWithTextureType:pixelFormat:sampleCount:"), textureType, pixelFormat, sampleCount) return rv } -func (d_ DeviceObject) HasNewArgumentEncoderWithArguments() bool { - return d_.RespondsToSelector(objc.Sel("newArgumentEncoderWithArguments:")) +func (d_ DeviceObject) HasNewSamplerStateWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newSamplerStateWithDescriptor:")) } -// Creates a new argument encoder for an array of arguments. [Full Topic] +// Creates a sampler state instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915744-newargumentencoderwitharguments?language=objc -func (d_ DeviceObject) NewArgumentEncoderWithArguments(arguments []ArgumentDescriptor) ArgumentEncoderObject { - rv := objc.Call[ArgumentEncoderObject](d_, objc.Sel("newArgumentEncoderWithArguments:"), arguments) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433408-newsamplerstatewithdescriptor?language=objc +func (d_ DeviceObject) NewSamplerStateWithDescriptor(descriptor SamplerDescriptor) SamplerStateObject { + rv := objc.Call[SamplerStateObject](d_, objc.Sel("newSamplerStateWithDescriptor:"), descriptor) return rv } -func (d_ DeviceObject) HasMinimumLinearTextureAlignmentForPixelFormat() bool { - return d_.RespondsToSelector(objc.Sel("minimumLinearTextureAlignmentForPixelFormat:")) +func (d_ DeviceObject) HasNewDynamicLibraryWithURLError() bool { + return d_.RespondsToSelector(objc.Sel("newDynamicLibraryWithURL:error:")) } -// Returns the minimum alignment the GPU device requires to create a linear texture from a buffer. [Full Topic] +// Creates a Metal dynamic library instance that contains the functions in the Metal library file at a URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866126-minimumlineartexturealignmentfor?language=objc -func (d_ DeviceObject) MinimumLinearTextureAlignmentForPixelFormat(format PixelFormat) uint { - rv := objc.Call[uint](d_, objc.Sel("minimumLinearTextureAlignmentForPixelFormat:"), format) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3564458-newdynamiclibrarywithurl?language=objc +func (d_ DeviceObject) NewDynamicLibraryWithURLError(url foundation.URL, error unsafe.Pointer) DynamicLibraryObject { + rv := objc.Call[DynamicLibraryObject](d_, objc.Sel("newDynamicLibraryWithURL:error:"), url, error) return rv } -func (d_ DeviceObject) HasNewDynamicLibraryError() bool { - return d_.RespondsToSelector(objc.Sel("newDynamicLibrary:error:")) +func (d_ DeviceObject) HasNewRenderPipelineStateWithTileDescriptorOptionsCompletionHandler() bool { + return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithTileDescriptor:options:completionHandler:")) } -// Creates a Metal dynamic library instance from a Metal library instance. [Full Topic] +// Asynchronously creates a tile shader’s render pipeline state and reflection information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553974-newdynamiclibrary?language=objc -func (d_ DeviceObject) NewDynamicLibraryError(library LibraryObject, error unsafe.Pointer) DynamicLibraryObject { - po0 := objc.WrapAsProtocol("MTLLibrary", library) - rv := objc.Call[DynamicLibraryObject](d_, objc.Sel("newDynamicLibrary:error:"), po0, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866129-newrenderpipelinestatewithtilede?language=objc +func (d_ DeviceObject) NewRenderPipelineStateWithTileDescriptorOptionsCompletionHandler(descriptor TileRenderPipelineDescriptor, options PipelineOption, completionHandler NewRenderPipelineStateWithReflectionCompletionHandler) { + objc.Call[objc.Void](d_, objc.Sel("newRenderPipelineStateWithTileDescriptor:options:completionHandler:"), descriptor, options, completionHandler) } -func (d_ DeviceObject) HasConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions() bool { - return d_.RespondsToSelector(objc.Sel("convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:")) +func (d_ DeviceObject) HasSupportsCounterSampling() bool { + return d_.RespondsToSelector(objc.Sel("supportsCounterSampling:")) } -// Converts a list of sparse pixel regions to tile regions. [Full Topic] +// Returns a Boolean value that indicates whether you can read GPU counters at the specified command boundary. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3197982-convertsparsepixelregions?language=objc -func (d_ DeviceObject) ConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions(pixelRegions *Region, tileRegions *Region, tileSize Size, mode SparseTextureRegionAlignmentMode, numRegions uint) { - objc.Call[objc.Void](d_, objc.Sel("convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:"), pixelRegions, tileRegions, tileSize, mode, numRegions) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3564459-supportscountersampling?language=objc +func (d_ DeviceObject) SupportsCounterSampling(samplingPoint CounterSamplingPoint) bool { + rv := objc.Call[bool](d_, objc.Sel("supportsCounterSampling:"), samplingPoint) + return rv } -func (d_ DeviceObject) HasNewComputePipelineStateWithFunctionOptionsCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithFunction:options:completionHandler:")) +func (d_ DeviceObject) HasSupportsVertexAmplificationCount() bool { + return d_.RespondsToSelector(objc.Sel("supportsVertexAmplificationCount:")) } -// Asynchronously creates a compute pipeline state and reflection with a function instance. [Full Topic] +// Returns a Boolean value that indicates whether the GPU supports an amplification factor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433410-newcomputepipelinestatewithfunct?language=objc -func (d_ DeviceObject) NewComputePipelineStateWithFunctionOptionsCompletionHandler(computeFunction FunctionObject, options PipelineOption, completionHandler NewComputePipelineStateWithReflectionCompletionHandler) { - po0 := objc.WrapAsProtocol("MTLFunction", computeFunction) - objc.Call[objc.Void](d_, objc.Sel("newComputePipelineStateWithFunction:options:completionHandler:"), po0, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3197984-supportsvertexamplificationcount?language=objc +func (d_ DeviceObject) SupportsVertexAmplificationCount(count uint) bool { + rv := objc.Call[bool](d_, objc.Sel("supportsVertexAmplificationCount:"), count) + return rv } func (d_ DeviceObject) HasNewComputePipelineStateWithFunctionCompletionHandler() bool { return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithFunction:completionHandler:")) } -// Asynchronously creates a new compute pipeline state with a function instance. [Full Topic] +// Asynchronously creates a new compute pipeline state with a function instance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433427-newcomputepipelinestatewithfunct?language=objc +func (d_ DeviceObject) NewComputePipelineStateWithFunctionCompletionHandler(computeFunction FunctionObject, completionHandler NewComputePipelineStateCompletionHandler) { + po0 := objc.WrapAsProtocol("MTLFunction", computeFunction) + objc.Call[objc.Void](d_, objc.Sel("newComputePipelineStateWithFunction:completionHandler:"), po0, completionHandler) +} + +func (d_ DeviceObject) HasAccelerationStructureSizesWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("accelerationStructureSizesWithDescriptor:")) +} + +// Returns the buffer sizes the GPU device needs to build, refit, and store an acceleration structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433427-newcomputepipelinestatewithfunct?language=objc -func (d_ DeviceObject) NewComputePipelineStateWithFunctionCompletionHandler(computeFunction FunctionObject, completionHandler NewComputePipelineStateCompletionHandler) { - po0 := objc.WrapAsProtocol("MTLFunction", computeFunction) - objc.Call[objc.Void](d_, objc.Sel("newComputePipelineStateWithFunction:completionHandler:"), po0, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553970-accelerationstructuresizeswithde?language=objc +func (d_ DeviceObject) AccelerationStructureSizesWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureSizes { + rv := objc.Call[AccelerationStructureSizes](d_, objc.Sel("accelerationStructureSizesWithDescriptor:"), descriptor) + return rv } -func (d_ DeviceObject) HasNewRenderPipelineStateWithTileDescriptorOptionsReflectionError() bool { - return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithTileDescriptor:options:reflection:error:")) +func (d_ DeviceObject) HasNewDefaultLibrary() bool { + return d_.RespondsToSelector(objc.Sel("newDefaultLibrary")) } -// Synchronously creates a tile shader’s render pipeline state and reflection information. [Full Topic] +// Creates a Metal library instance that contains the functions from your app’s default Metal library. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866134-newrenderpipelinestatewithtilede?language=objc -func (d_ DeviceObject) NewRenderPipelineStateWithTileDescriptorOptionsReflectionError(descriptor TileRenderPipelineDescriptor, options PipelineOption, reflection *AutoreleasedRenderPipelineReflection, error unsafe.Pointer) RenderPipelineStateObject { - rv := objc.Call[RenderPipelineStateObject](d_, objc.Sel("newRenderPipelineStateWithTileDescriptor:options:reflection:error:"), descriptor, options, reflection, error) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433380-newdefaultlibrary?language=objc +func (d_ DeviceObject) NewDefaultLibrary() LibraryObject { + rv := objc.Call[LibraryObject](d_, objc.Sel("newDefaultLibrary")) return rv } @@ -1082,74 +894,61 @@ func (d_ DeviceObject) NewDepthStencilStateWithDescriptor(descriptor DepthStenci return rv } -func (d_ DeviceObject) HasNewLibraryWithDataError() bool { - return d_.RespondsToSelector(objc.Sel("newLibraryWithData:error:")) +func (d_ DeviceObject) HasConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions() bool { + return d_.RespondsToSelector(objc.Sel("convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:")) } -// Creates a Metal library instance that contains the functions in a precompiled Metal library. [Full Topic] +// Converts a list of sparse tile regions to pixel regions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433391-newlibrarywithdata?language=objc -func (d_ DeviceObject) NewLibraryWithDataError(data dispatch.Data, error unsafe.Pointer) LibraryObject { - rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithData:error:"), data, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3197983-convertsparsetileregions?language=objc +func (d_ DeviceObject) ConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions(tileRegions *Region, pixelRegions *Region, tileSize Size, numRegions uint) { + objc.Call[objc.Void](d_, objc.Sel("convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:"), tileRegions, pixelRegions, tileSize, numRegions) } -func (d_ DeviceObject) HasNewRenderPipelineStateWithDescriptorError() bool { - return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithDescriptor:error:")) +func (d_ DeviceObject) HasNewRenderPipelineStateWithDescriptorCompletionHandler() bool { + return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithDescriptor:completionHandler:")) } -// Synchronously creates a render pipeline state. [Full Topic] +// Asynchronously creates a render pipeline state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433369-newrenderpipelinestatewithdescri?language=objc -func (d_ DeviceObject) NewRenderPipelineStateWithDescriptorError(descriptor RenderPipelineDescriptor, error unsafe.Pointer) RenderPipelineStateObject { - rv := objc.Call[RenderPipelineStateObject](d_, objc.Sel("newRenderPipelineStateWithDescriptor:error:"), descriptor, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433363-newrenderpipelinestatewithdescri?language=objc +func (d_ DeviceObject) NewRenderPipelineStateWithDescriptorCompletionHandler(descriptor RenderPipelineDescriptor, completionHandler NewRenderPipelineStateCompletionHandler) { + objc.Call[objc.Void](d_, objc.Sel("newRenderPipelineStateWithDescriptor:completionHandler:"), descriptor, completionHandler) } -func (d_ DeviceObject) HasNewBufferWithLengthOptions() bool { - return d_.RespondsToSelector(objc.Sel("newBufferWithLength:options:")) +func (d_ DeviceObject) HasNewSharedTextureWithHandle() bool { + return d_.RespondsToSelector(objc.Sel("newSharedTextureWithHandle:")) } -// Creates a buffer the method clears with zero values. [Full Topic] +// Creates a texture that references a shared texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433375-newbufferwithlength?language=objc -func (d_ DeviceObject) NewBufferWithLengthOptions(length uint, options ResourceOptions) BufferObject { - rv := objc.Call[BufferObject](d_, objc.Sel("newBufferWithLength:options:"), length, options) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967422-newsharedtexturewithhandle?language=objc +func (d_ DeviceObject) NewSharedTextureWithHandle(sharedHandle SharedTextureHandle) TextureObject { + rv := objc.Call[TextureObject](d_, objc.Sel("newSharedTextureWithHandle:"), sharedHandle) return rv } -func (d_ DeviceObject) HasNewLibraryWithSourceOptionsCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newLibraryWithSource:options:completionHandler:")) -} - -// Asynchronously creates a Metal library instance by compiling the functions in a source string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433351-newlibrarywithsource?language=objc -func (d_ DeviceObject) NewLibraryWithSourceOptionsCompletionHandler(source string, options CompileOptions, completionHandler NewLibraryCompletionHandler) { - objc.Call[objc.Void](d_, objc.Sel("newLibraryWithSource:options:completionHandler:"), source, options, completionHandler) -} - -func (d_ DeviceObject) HasLocation() bool { - return d_.RespondsToSelector(objc.Sel("location")) +func (d_ DeviceObject) HasNewLibraryWithURLError() bool { + return d_.RespondsToSelector(objc.Sel("newLibraryWithURL:error:")) } -// The physical location of the GPU relative to system. [Full Topic] +// Creates a Metal library instance that contains the functions in the Metal library file at a URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3114005-location?language=objc -func (d_ DeviceObject) Location() DeviceLocation { - rv := objc.Call[DeviceLocation](d_, objc.Sel("location")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2877432-newlibrarywithurl?language=objc +func (d_ DeviceObject) NewLibraryWithURLError(url foundation.URL, error unsafe.Pointer) LibraryObject { + rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithURL:error:"), url, error) return rv } -func (d_ DeviceObject) HasIsHeadless() bool { - return d_.RespondsToSelector(objc.Sel("isHeadless")) +func (d_ DeviceObject) HasNewSharedEventWithHandle() bool { + return d_.RespondsToSelector(objc.Sel("newSharedEventWithHandle:")) } -// A Boolean value that indicates whether a GPU device doesn’t have a connection to a display. [Full Topic] +// Recreates a shared event from a handle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433377-headless?language=objc -func (d_ DeviceObject) IsHeadless() bool { - rv := objc.Call[bool](d_, objc.Sel("isHeadless")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2981024-newsharedeventwithhandle?language=objc +func (d_ DeviceObject) NewSharedEventWithHandle(sharedEventHandle SharedEventHandle) SharedEventObject { + rv := objc.Call[SharedEventObject](d_, objc.Sel("newSharedEventWithHandle:"), sharedEventHandle) return rv } @@ -1165,195 +964,183 @@ func (d_ DeviceObject) SupportsPrimitiveMotionBlur() bool { return rv } -func (d_ DeviceObject) HasRecommendedMaxWorkingSetSize() bool { - return d_.RespondsToSelector(objc.Sel("recommendedMaxWorkingSetSize")) -} - -// An approximation of how much memory, in bytes, this GPU device can allocate without affecting its runtime performance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2369280-recommendedmaxworkingsetsize?language=objc -func (d_ DeviceObject) RecommendedMaxWorkingSetSize() uint64 { - rv := objc.Call[uint64](d_, objc.Sel("recommendedMaxWorkingSetSize")) - return rv -} - -func (d_ DeviceObject) HasIsRemovable() bool { - return d_.RespondsToSelector(objc.Sel("isRemovable")) +func (d_ DeviceObject) HasSupportsPullModelInterpolation() bool { + return d_.RespondsToSelector(objc.Sel("supportsPullModelInterpolation")) } -// A Boolean value that indicates whether the GPU is removable. [Full Topic] +// A Boolean value that indicates whether the GPU can compute multiple interpolations of a fragment function’s input. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2889851-removable?language=objc -func (d_ DeviceObject) IsRemovable() bool { - rv := objc.Call[bool](d_, objc.Sel("isRemovable")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3564460-supportspullmodelinterpolation?language=objc +func (d_ DeviceObject) SupportsPullModelInterpolation() bool { + rv := objc.Call[bool](d_, objc.Sel("supportsPullModelInterpolation")) return rv } -func (d_ DeviceObject) HasMaxTransferRate() bool { - return d_.RespondsToSelector(objc.Sel("maxTransferRate")) +func (d_ DeviceObject) HasSparseTileSizeInBytes() bool { + return d_.RespondsToSelector(objc.Sel("sparseTileSizeInBytes")) } -// The highest theoretical rate, in bytes per second, the system can copy between system memory and the GPU’s dedicated memory (VRAM). [Full Topic] +// Returns the size, in bytes, of a sparse tile the GPU device creates using a default page size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3114007-maxtransferrate?language=objc -func (d_ DeviceObject) MaxTransferRate() uint64 { - rv := objc.Call[uint64](d_, objc.Sel("maxTransferRate")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3377855-sparsetilesizeinbytes?language=objc +func (d_ DeviceObject) SparseTileSizeInBytes() uint { + rv := objc.Call[uint](d_, objc.Sel("sparseTileSizeInBytes")) return rv } -func (d_ DeviceObject) HasArgumentBuffersSupport() bool { - return d_.RespondsToSelector(objc.Sel("argumentBuffersSupport")) +func (d_ DeviceObject) HasReadWriteTextureSupport() bool { + return d_.RespondsToSelector(objc.Sel("readWriteTextureSupport")) } -// Returns the GPU device’s support tier for argument buffers. [Full Topic] +// The GPU device’s texture support tier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915742-argumentbufferssupport?language=objc -func (d_ DeviceObject) ArgumentBuffersSupport() ArgumentBuffersTier { - rv := objc.Call[ArgumentBuffersTier](d_, objc.Sel("argumentBuffersSupport")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2887289-readwritetexturesupport?language=objc +func (d_ DeviceObject) ReadWriteTextureSupport() ReadWriteTextureTier { + rv := objc.Call[ReadWriteTextureTier](d_, objc.Sel("readWriteTextureSupport")) return rv } -func (d_ DeviceObject) HasSupportsShaderBarycentricCoordinates() bool { - return d_.RespondsToSelector(objc.Sel("supportsShaderBarycentricCoordinates")) +func (d_ DeviceObject) HasSupports32BitFloatFiltering() bool { + return d_.RespondsToSelector(objc.Sel("supports32BitFloatFiltering")) } -// A Boolean value that indicates whether the GPU supports barycentric coordinates. [Full Topic] +// A Boolean value that indicates whether the GPU can filter a texture with a 32-bit floating-point format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3325837-supportsshaderbarycentriccoordin?language=objc -func (d_ DeviceObject) SupportsShaderBarycentricCoordinates() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsShaderBarycentricCoordinates")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3566545-supports32bitfloatfiltering?language=objc +func (d_ DeviceObject) Supports32BitFloatFiltering() bool { + rv := objc.Call[bool](d_, objc.Sel("supports32BitFloatFiltering")) return rv } -func (d_ DeviceObject) HasReadWriteTextureSupport() bool { - return d_.RespondsToSelector(objc.Sel("readWriteTextureSupport")) +func (d_ DeviceObject) HasPeerCount() bool { + return d_.RespondsToSelector(objc.Sel("peerCount")) } -// The GPU device’s texture support tier. [Full Topic] +// The total number of GPUs in the peer group, if applicable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2887289-readwritetexturesupport?language=objc -func (d_ DeviceObject) ReadWriteTextureSupport() ReadWriteTextureTier { - rv := objc.Call[ReadWriteTextureTier](d_, objc.Sel("readWriteTextureSupport")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967423-peercount?language=objc +func (d_ DeviceObject) PeerCount() uint32 { + rv := objc.Call[uint32](d_, objc.Sel("peerCount")) return rv } -func (d_ DeviceObject) HasSupportsRenderDynamicLibraries() bool { - return d_.RespondsToSelector(objc.Sel("supportsRenderDynamicLibraries")) +func (d_ DeviceObject) HasAreRasterOrderGroupsSupported() bool { + return d_.RespondsToSelector(objc.Sel("areRasterOrderGroupsSupported")) } -// A Boolean value that indicates whether the GPU device can create and use dynamic libraries in render pipelines. [Full Topic] +// A Boolean value that indicates whether the GPU supports raster order groups. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3816767-supportsrenderdynamiclibraries?language=objc -func (d_ DeviceObject) SupportsRenderDynamicLibraries() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsRenderDynamicLibraries")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2887285-rasterordergroupssupported?language=objc +func (d_ DeviceObject) AreRasterOrderGroupsSupported() bool { + rv := objc.Call[bool](d_, objc.Sel("areRasterOrderGroupsSupported")) return rv } -func (d_ DeviceObject) HasSupportsFunctionPointers() bool { - return d_.RespondsToSelector(objc.Sel("supportsFunctionPointers")) +func (d_ DeviceObject) HasName() bool { + return d_.RespondsToSelector(objc.Sel("name")) } -// A Boolean value that indicates whether the GPU device supports pointers to compute kernel functions. [Full Topic] +// The full name of the GPU device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3589487-supportsfunctionpointers?language=objc -func (d_ DeviceObject) SupportsFunctionPointers() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsFunctionPointers")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433359-name?language=objc +func (d_ DeviceObject) Name() string { + rv := objc.Call[string](d_, objc.Sel("name")) return rv } -func (d_ DeviceObject) HasLocationNumber() bool { - return d_.RespondsToSelector(objc.Sel("locationNumber")) +func (d_ DeviceObject) HasLocation() bool { + return d_.RespondsToSelector(objc.Sel("location")) } -// A specific GPU position based on its general location. [Full Topic] +// The physical location of the GPU relative to system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3114006-locationnumber?language=objc -func (d_ DeviceObject) LocationNumber() uint { - rv := objc.Call[uint](d_, objc.Sel("locationNumber")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3114005-location?language=objc +func (d_ DeviceObject) Location() DeviceLocation { + rv := objc.Call[DeviceLocation](d_, objc.Sel("location")) return rv } -func (d_ DeviceObject) HasSparseTileSizeInBytes() bool { - return d_.RespondsToSelector(objc.Sel("sparseTileSizeInBytes")) +func (d_ DeviceObject) HasIsLowPower() bool { + return d_.RespondsToSelector(objc.Sel("isLowPower")) } -// Returns the size, in bytes, of a sparse tile the GPU device creates using a default page size. [Full Topic] +// A Boolean value that indicates whether the GPU lowers its performance to conserve energy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3377855-sparsetilesizeinbytes?language=objc -func (d_ DeviceObject) SparseTileSizeInBytes() uint { - rv := objc.Call[uint](d_, objc.Sel("sparseTileSizeInBytes")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433409-lowpower?language=objc +func (d_ DeviceObject) IsLowPower() bool { + rv := objc.Call[bool](d_, objc.Sel("isLowPower")) return rv } -func (d_ DeviceObject) HasMaxBufferLength() bool { - return d_.RespondsToSelector(objc.Sel("maxBufferLength")) +func (d_ DeviceObject) HasSupportsBCTextureCompression() bool { + return d_.RespondsToSelector(objc.Sel("supportsBCTextureCompression")) } -// The largest amount of memory, in bytes, that a GPU device can allocate to a buffer instance. [Full Topic] +// A Boolean value that indicates whether you can use textures that use BC compression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2966563-maxbufferlength?language=objc -func (d_ DeviceObject) MaxBufferLength() uint { - rv := objc.Call[uint](d_, objc.Sel("maxBufferLength")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3566547-supportsbctexturecompression?language=objc +func (d_ DeviceObject) SupportsBCTextureCompression() bool { + rv := objc.Call[bool](d_, objc.Sel("supportsBCTextureCompression")) return rv } -func (d_ DeviceObject) HasAreProgrammableSamplePositionsSupported() bool { - return d_.RespondsToSelector(objc.Sel("areProgrammableSamplePositionsSupported")) +func (d_ DeviceObject) HasSupportsRaytracing() bool { + return d_.RespondsToSelector(objc.Sel("supportsRaytracing")) } -// A Boolean value that indicates whether the GPU supports programmable sample positions. [Full Topic] +// A Boolean value that indicates whether the GPU device supports ray tracing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866117-programmablesamplepositionssuppo?language=objc -func (d_ DeviceObject) AreProgrammableSamplePositionsSupported() bool { - rv := objc.Call[bool](d_, objc.Sel("areProgrammableSamplePositionsSupported")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3580382-supportsraytracing?language=objc +func (d_ DeviceObject) SupportsRaytracing() bool { + rv := objc.Call[bool](d_, objc.Sel("supportsRaytracing")) return rv } -func (d_ DeviceObject) HasSupportsPullModelInterpolation() bool { - return d_.RespondsToSelector(objc.Sel("supportsPullModelInterpolation")) +func (d_ DeviceObject) HasSupportsShaderBarycentricCoordinates() bool { + return d_.RespondsToSelector(objc.Sel("supportsShaderBarycentricCoordinates")) } -// A Boolean value that indicates whether the GPU can compute multiple interpolations of a fragment function’s input. [Full Topic] +// A Boolean value that indicates whether the GPU supports barycentric coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3564460-supportspullmodelinterpolation?language=objc -func (d_ DeviceObject) SupportsPullModelInterpolation() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsPullModelInterpolation")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3325837-supportsshaderbarycentriccoordin?language=objc +func (d_ DeviceObject) SupportsShaderBarycentricCoordinates() bool { + rv := objc.Call[bool](d_, objc.Sel("supportsShaderBarycentricCoordinates")) return rv } -func (d_ DeviceObject) HasCurrentAllocatedSize() bool { - return d_.RespondsToSelector(objc.Sel("currentAllocatedSize")) +func (d_ DeviceObject) HasRecommendedMaxWorkingSetSize() bool { + return d_.RespondsToSelector(objc.Sel("recommendedMaxWorkingSetSize")) } -// The total amount of memory, in bytes, the GPU device is using for all of its resources. [Full Topic] +// An approximation of how much memory, in bytes, this GPU device can allocate without affecting its runtime performance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915745-currentallocatedsize?language=objc -func (d_ DeviceObject) CurrentAllocatedSize() uint { - rv := objc.Call[uint](d_, objc.Sel("currentAllocatedSize")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2369280-recommendedmaxworkingsetsize?language=objc +func (d_ DeviceObject) RecommendedMaxWorkingSetSize() uint64 { + rv := objc.Call[uint64](d_, objc.Sel("recommendedMaxWorkingSetSize")) return rv } -func (d_ DeviceObject) HasCounterSets() bool { - return d_.RespondsToSelector(objc.Sel("counterSets")) +func (d_ DeviceObject) HasMaxThreadsPerThreadgroup() bool { + return d_.RespondsToSelector(objc.Sel("maxThreadsPerThreadgroup")) } -// The counter sets supported by the device object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3081739-countersets?language=objc -func (d_ DeviceObject) CounterSets() []CounterSetObject { - rv := objc.Call[[]CounterSetObject](d_, objc.Sel("counterSets")) +// The maximum number of threads along each dimension of a threadgroup. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433393-maxthreadsperthreadgroup?language=objc +func (d_ DeviceObject) MaxThreadsPerThreadgroup() Size { + rv := objc.Call[Size](d_, objc.Sel("maxThreadsPerThreadgroup")) return rv } -func (d_ DeviceObject) HasSupports32BitFloatFiltering() bool { - return d_.RespondsToSelector(objc.Sel("supports32BitFloatFiltering")) +func (d_ DeviceObject) HasPeerIndex() bool { + return d_.RespondsToSelector(objc.Sel("peerIndex")) } -// A Boolean value that indicates whether the GPU can filter a texture with a 32-bit floating-point format. [Full Topic] +// The unique identifier for a GPU in a peer group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3566545-supports32bitfloatfiltering?language=objc -func (d_ DeviceObject) Supports32BitFloatFiltering() bool { - rv := objc.Call[bool](d_, objc.Sel("supports32BitFloatFiltering")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967425-peerindex?language=objc +func (d_ DeviceObject) PeerIndex() uint32 { + rv := objc.Call[uint32](d_, objc.Sel("peerIndex")) return rv } @@ -1369,171 +1156,171 @@ func (d_ DeviceObject) SupportsFunctionPointersFromRender() bool { return rv } -func (d_ DeviceObject) HasMaxThreadsPerThreadgroup() bool { - return d_.RespondsToSelector(objc.Sel("maxThreadsPerThreadgroup")) +func (d_ DeviceObject) HasSupportsFunctionPointers() bool { + return d_.RespondsToSelector(objc.Sel("supportsFunctionPointers")) } -// The maximum number of threads along each dimension of a threadgroup. [Full Topic] +// A Boolean value that indicates whether the GPU device supports pointers to compute kernel functions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433393-maxthreadsperthreadgroup?language=objc -func (d_ DeviceObject) MaxThreadsPerThreadgroup() Size { - rv := objc.Call[Size](d_, objc.Sel("maxThreadsPerThreadgroup")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3589487-supportsfunctionpointers?language=objc +func (d_ DeviceObject) SupportsFunctionPointers() bool { + rv := objc.Call[bool](d_, objc.Sel("supportsFunctionPointers")) return rv } -func (d_ DeviceObject) HasPeerCount() bool { - return d_.RespondsToSelector(objc.Sel("peerCount")) +func (d_ DeviceObject) HasCounterSets() bool { + return d_.RespondsToSelector(objc.Sel("counterSets")) } -// The total number of GPUs in the peer group, if applicable. [Full Topic] +// The counter sets supported by the device object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967423-peercount?language=objc -func (d_ DeviceObject) PeerCount() uint32 { - rv := objc.Call[uint32](d_, objc.Sel("peerCount")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3081739-countersets?language=objc +func (d_ DeviceObject) CounterSets() []CounterSetObject { + rv := objc.Call[[]CounterSetObject](d_, objc.Sel("counterSets")) return rv } -func (d_ DeviceObject) HasHasUnifiedMemory() bool { - return d_.RespondsToSelector(objc.Sel("hasUnifiedMemory")) +func (d_ DeviceObject) HasIsRemovable() bool { + return d_.RespondsToSelector(objc.Sel("isRemovable")) } -// A Boolean value that indicates whether the GPU shares all of its memory with the CPU. [Full Topic] +// A Boolean value that indicates whether the GPU is removable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3229025-hasunifiedmemory?language=objc -func (d_ DeviceObject) HasUnifiedMemory() bool { - rv := objc.Call[bool](d_, objc.Sel("hasUnifiedMemory")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2889851-removable?language=objc +func (d_ DeviceObject) IsRemovable() bool { + rv := objc.Call[bool](d_, objc.Sel("isRemovable")) return rv } -func (d_ DeviceObject) HasSupportsBCTextureCompression() bool { - return d_.RespondsToSelector(objc.Sel("supportsBCTextureCompression")) +func (d_ DeviceObject) HasAreProgrammableSamplePositionsSupported() bool { + return d_.RespondsToSelector(objc.Sel("areProgrammableSamplePositionsSupported")) } -// A Boolean value that indicates whether you can use textures that use BC compression. [Full Topic] +// A Boolean value that indicates whether the GPU supports programmable sample positions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3566547-supportsbctexturecompression?language=objc -func (d_ DeviceObject) SupportsBCTextureCompression() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsBCTextureCompression")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866117-programmablesamplepositionssuppo?language=objc +func (d_ DeviceObject) AreProgrammableSamplePositionsSupported() bool { + rv := objc.Call[bool](d_, objc.Sel("areProgrammableSamplePositionsSupported")) return rv } -func (d_ DeviceObject) HasRegistryID() bool { - return d_.RespondsToSelector(objc.Sel("registryID")) +func (d_ DeviceObject) HasIsDepth24Stencil8PixelFormatSupported() bool { + return d_.RespondsToSelector(objc.Sel("isDepth24Stencil8PixelFormatSupported")) } -// The GPU device’s registry identifier. [Full Topic] +// A Boolean value that indicates whether a device supports a packed depth-and-stencil pixel format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915737-registryid?language=objc -func (d_ DeviceObject) RegistryID() uint64 { - rv := objc.Call[uint64](d_, objc.Sel("registryID")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433371-depth24stencil8pixelformatsuppor?language=objc +func (d_ DeviceObject) IsDepth24Stencil8PixelFormatSupported() bool { + rv := objc.Call[bool](d_, objc.Sel("isDepth24Stencil8PixelFormatSupported")) return rv } -func (d_ DeviceObject) HasSupportsRaytracing() bool { - return d_.RespondsToSelector(objc.Sel("supportsRaytracing")) +func (d_ DeviceObject) HasLocationNumber() bool { + return d_.RespondsToSelector(objc.Sel("locationNumber")) } -// A Boolean value that indicates whether the GPU device supports ray tracing. [Full Topic] +// A specific GPU position based on its general location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3580382-supportsraytracing?language=objc -func (d_ DeviceObject) SupportsRaytracing() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsRaytracing")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3114006-locationnumber?language=objc +func (d_ DeviceObject) LocationNumber() uint { + rv := objc.Call[uint](d_, objc.Sel("locationNumber")) return rv } -func (d_ DeviceObject) HasIsDepth24Stencil8PixelFormatSupported() bool { - return d_.RespondsToSelector(objc.Sel("isDepth24Stencil8PixelFormatSupported")) +func (d_ DeviceObject) HasRegistryID() bool { + return d_.RespondsToSelector(objc.Sel("registryID")) } -// A Boolean value that indicates whether a device supports a packed depth-and-stencil pixel format. [Full Topic] +// The GPU device’s registry identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433371-depth24stencil8pixelformatsuppor?language=objc -func (d_ DeviceObject) IsDepth24Stencil8PixelFormatSupported() bool { - rv := objc.Call[bool](d_, objc.Sel("isDepth24Stencil8PixelFormatSupported")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915737-registryid?language=objc +func (d_ DeviceObject) RegistryID() uint64 { + rv := objc.Call[uint64](d_, objc.Sel("registryID")) return rv } -func (d_ DeviceObject) HasIsLowPower() bool { - return d_.RespondsToSelector(objc.Sel("isLowPower")) +func (d_ DeviceObject) HasSupports32BitMSAA() bool { + return d_.RespondsToSelector(objc.Sel("supports32BitMSAA")) } -// A Boolean value that indicates whether the GPU lowers its performance to conserve energy. [Full Topic] +// A Boolean value that indicates whether the GPU can allocate 32-bit integer texture formats and resolve to 32-bit floating-point texture formats. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433409-lowpower?language=objc -func (d_ DeviceObject) IsLowPower() bool { - rv := objc.Call[bool](d_, objc.Sel("isLowPower")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3566546-supports32bitmsaa?language=objc +func (d_ DeviceObject) Supports32BitMSAA() bool { + rv := objc.Call[bool](d_, objc.Sel("supports32BitMSAA")) return rv } -func (d_ DeviceObject) HasMaxThreadgroupMemoryLength() bool { - return d_.RespondsToSelector(objc.Sel("maxThreadgroupMemoryLength")) +func (d_ DeviceObject) HasMaxBufferLength() bool { + return d_.RespondsToSelector(objc.Sel("maxBufferLength")) } -// The maximum threadgroup memory available to a compute kernel, in bytes. [Full Topic] +// The largest amount of memory, in bytes, that a GPU device can allocate to a buffer instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2877429-maxthreadgroupmemorylength?language=objc -func (d_ DeviceObject) MaxThreadgroupMemoryLength() uint { - rv := objc.Call[uint](d_, objc.Sel("maxThreadgroupMemoryLength")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2966563-maxbufferlength?language=objc +func (d_ DeviceObject) MaxBufferLength() uint { + rv := objc.Call[uint](d_, objc.Sel("maxBufferLength")) return rv } -func (d_ DeviceObject) HasSupportsDynamicLibraries() bool { - return d_.RespondsToSelector(objc.Sel("supportsDynamicLibraries")) +func (d_ DeviceObject) HasSupportsRenderDynamicLibraries() bool { + return d_.RespondsToSelector(objc.Sel("supportsRenderDynamicLibraries")) } -// A Boolean value that indicates whether the GPU device can create and use dynamic libraries in compute pipelines. [Full Topic] +// A Boolean value that indicates whether the GPU device can create and use dynamic libraries in render pipelines. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553977-supportsdynamiclibraries?language=objc -func (d_ DeviceObject) SupportsDynamicLibraries() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsDynamicLibraries")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3816767-supportsrenderdynamiclibraries?language=objc +func (d_ DeviceObject) SupportsRenderDynamicLibraries() bool { + rv := objc.Call[bool](d_, objc.Sel("supportsRenderDynamicLibraries")) return rv } -func (d_ DeviceObject) HasMaxArgumentBufferSamplerCount() bool { - return d_.RespondsToSelector(objc.Sel("maxArgumentBufferSamplerCount")) +func (d_ DeviceObject) HasPeerGroupID() bool { + return d_.RespondsToSelector(objc.Sel("peerGroupID")) } -// The maximum number of unique argument buffer samplers per app. [Full Topic] +// The peer group ID the GPU belongs to, if applicable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2977322-maxargumentbuffersamplercount?language=objc -func (d_ DeviceObject) MaxArgumentBufferSamplerCount() uint { - rv := objc.Call[uint](d_, objc.Sel("maxArgumentBufferSamplerCount")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967424-peergroupid?language=objc +func (d_ DeviceObject) PeerGroupID() uint64 { + rv := objc.Call[uint64](d_, objc.Sel("peerGroupID")) return rv } -func (d_ DeviceObject) HasPeerIndex() bool { - return d_.RespondsToSelector(objc.Sel("peerIndex")) +func (d_ DeviceObject) HasMaxArgumentBufferSamplerCount() bool { + return d_.RespondsToSelector(objc.Sel("maxArgumentBufferSamplerCount")) } -// The unique identifier for a GPU in a peer group. [Full Topic] +// The maximum number of unique argument buffer samplers per app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967425-peerindex?language=objc -func (d_ DeviceObject) PeerIndex() uint32 { - rv := objc.Call[uint32](d_, objc.Sel("peerIndex")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2977322-maxargumentbuffersamplercount?language=objc +func (d_ DeviceObject) MaxArgumentBufferSamplerCount() uint { + rv := objc.Call[uint](d_, objc.Sel("maxArgumentBufferSamplerCount")) return rv } -func (d_ DeviceObject) HasSupports32BitMSAA() bool { - return d_.RespondsToSelector(objc.Sel("supports32BitMSAA")) +func (d_ DeviceObject) HasIsHeadless() bool { + return d_.RespondsToSelector(objc.Sel("isHeadless")) } -// A Boolean value that indicates whether the GPU can allocate 32-bit integer texture formats and resolve to 32-bit floating-point texture formats. [Full Topic] +// A Boolean value that indicates whether a GPU device doesn’t have a connection to a display. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3566546-supports32bitmsaa?language=objc -func (d_ DeviceObject) Supports32BitMSAA() bool { - rv := objc.Call[bool](d_, objc.Sel("supports32BitMSAA")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433377-headless?language=objc +func (d_ DeviceObject) IsHeadless() bool { + rv := objc.Call[bool](d_, objc.Sel("isHeadless")) return rv } -func (d_ DeviceObject) HasName() bool { - return d_.RespondsToSelector(objc.Sel("name")) +func (d_ DeviceObject) HasSupportsRaytracingFromRender() bool { + return d_.RespondsToSelector(objc.Sel("supportsRaytracingFromRender")) } -// The full name of the GPU device. [Full Topic] +// A Boolean value that indicates whether you can call ray-tracing functions from a vertex or fragment shader. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433359-name?language=objc -func (d_ DeviceObject) Name() string { - rv := objc.Call[string](d_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3750528-supportsraytracingfromrender?language=objc +func (d_ DeviceObject) SupportsRaytracingFromRender() bool { + rv := objc.Call[bool](d_, objc.Sel("supportsRaytracingFromRender")) return rv } @@ -1549,38 +1336,74 @@ func (d_ DeviceObject) SupportsQueryTextureLOD() bool { return rv } -func (d_ DeviceObject) HasAreRasterOrderGroupsSupported() bool { - return d_.RespondsToSelector(objc.Sel("areRasterOrderGroupsSupported")) +func (d_ DeviceObject) HasMaxTransferRate() bool { + return d_.RespondsToSelector(objc.Sel("maxTransferRate")) } -// A Boolean value that indicates whether the GPU supports raster order groups. [Full Topic] +// The highest theoretical rate, in bytes per second, the system can copy between system memory and the GPU’s dedicated memory (VRAM). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2887285-rasterordergroupssupported?language=objc -func (d_ DeviceObject) AreRasterOrderGroupsSupported() bool { - rv := objc.Call[bool](d_, objc.Sel("areRasterOrderGroupsSupported")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3114007-maxtransferrate?language=objc +func (d_ DeviceObject) MaxTransferRate() uint64 { + rv := objc.Call[uint64](d_, objc.Sel("maxTransferRate")) return rv } -func (d_ DeviceObject) HasSupportsRaytracingFromRender() bool { - return d_.RespondsToSelector(objc.Sel("supportsRaytracingFromRender")) +func (d_ DeviceObject) HasMaxThreadgroupMemoryLength() bool { + return d_.RespondsToSelector(objc.Sel("maxThreadgroupMemoryLength")) } -// A Boolean value that indicates whether you can call ray-tracing functions from a vertex or fragment shader. [Full Topic] +// The maximum threadgroup memory available to a compute kernel, in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3750528-supportsraytracingfromrender?language=objc -func (d_ DeviceObject) SupportsRaytracingFromRender() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsRaytracingFromRender")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2877429-maxthreadgroupmemorylength?language=objc +func (d_ DeviceObject) MaxThreadgroupMemoryLength() uint { + rv := objc.Call[uint](d_, objc.Sel("maxThreadgroupMemoryLength")) return rv } -func (d_ DeviceObject) HasPeerGroupID() bool { - return d_.RespondsToSelector(objc.Sel("peerGroupID")) +func (d_ DeviceObject) HasHasUnifiedMemory() bool { + return d_.RespondsToSelector(objc.Sel("hasUnifiedMemory")) } -// The peer group ID the GPU belongs to, if applicable. [Full Topic] +// A Boolean value that indicates whether the GPU shares all of its memory with the CPU. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967424-peergroupid?language=objc -func (d_ DeviceObject) PeerGroupID() uint64 { - rv := objc.Call[uint64](d_, objc.Sel("peerGroupID")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3229025-hasunifiedmemory?language=objc +func (d_ DeviceObject) HasUnifiedMemory() bool { + rv := objc.Call[bool](d_, objc.Sel("hasUnifiedMemory")) + return rv +} + +func (d_ DeviceObject) HasSupportsDynamicLibraries() bool { + return d_.RespondsToSelector(objc.Sel("supportsDynamicLibraries")) +} + +// A Boolean value that indicates whether the GPU device can create and use dynamic libraries in compute pipelines. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553977-supportsdynamiclibraries?language=objc +func (d_ DeviceObject) SupportsDynamicLibraries() bool { + rv := objc.Call[bool](d_, objc.Sel("supportsDynamicLibraries")) + return rv +} + +func (d_ DeviceObject) HasCurrentAllocatedSize() bool { + return d_.RespondsToSelector(objc.Sel("currentAllocatedSize")) +} + +// The total amount of memory, in bytes, the GPU device is using for all of its resources. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915745-currentallocatedsize?language=objc +func (d_ DeviceObject) CurrentAllocatedSize() uint { + rv := objc.Call[uint](d_, objc.Sel("currentAllocatedSize")) + return rv +} + +func (d_ DeviceObject) HasArgumentBuffersSupport() bool { + return d_.RespondsToSelector(objc.Sel("argumentBuffersSupport")) +} + +// Returns the GPU device’s support tier for argument buffers. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915742-argumentbufferssupport?language=objc +func (d_ DeviceObject) ArgumentBuffersSupport() ArgumentBuffersTier { + rv := objc.Call[ArgumentBuffersTier](d_, objc.Sel("argumentBuffersSupport")) return rv } diff --git a/macos/metal/drawable_protocol.gen.go b/macos/metal/drawable_protocol.gen.go index a5420e25..dda3c9c9 100644 --- a/macos/metal/drawable_protocol.gen.go +++ b/macos/metal/drawable_protocol.gen.go @@ -12,16 +12,16 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawable?language=objc type PDrawable interface { // optional - PresentAfterMinimumDuration(duration corefoundation.TimeInterval) - HasPresentAfterMinimumDuration() bool + AddPresentedHandler(block DrawablePresentedHandler) + HasAddPresentedHandler() bool // optional Present() HasPresent() bool // optional - AddPresentedHandler(block DrawablePresentedHandler) - HasAddPresentedHandler() bool + PresentAfterMinimumDuration(duration corefoundation.TimeInterval) + HasPresentAfterMinimumDuration() bool // optional PresentAtTime(presentationTime corefoundation.TimeInterval) @@ -44,15 +44,15 @@ type DrawableObject struct { objc.Object } -func (d_ DrawableObject) HasPresentAfterMinimumDuration() bool { - return d_.RespondsToSelector(objc.Sel("presentAfterMinimumDuration:")) +func (d_ DrawableObject) HasAddPresentedHandler() bool { + return d_.RespondsToSelector(objc.Sel("addPresentedHandler:")) } -// Presents the drawable onscreen as soon as possible after a previous drawable is visible for the specified duration. [Full Topic] +// Registers a block of code to be called immediately after the drawable is presented. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawable/2806859-presentafterminimumduration?language=objc -func (d_ DrawableObject) PresentAfterMinimumDuration(duration corefoundation.TimeInterval) { - objc.Call[objc.Void](d_, objc.Sel("presentAfterMinimumDuration:"), duration) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawable/2806858-addpresentedhandler?language=objc +func (d_ DrawableObject) AddPresentedHandler(block DrawablePresentedHandler) { + objc.Call[objc.Void](d_, objc.Sel("addPresentedHandler:"), block) } func (d_ DrawableObject) HasPresent() bool { @@ -66,15 +66,15 @@ func (d_ DrawableObject) Present() { objc.Call[objc.Void](d_, objc.Sel("present")) } -func (d_ DrawableObject) HasAddPresentedHandler() bool { - return d_.RespondsToSelector(objc.Sel("addPresentedHandler:")) +func (d_ DrawableObject) HasPresentAfterMinimumDuration() bool { + return d_.RespondsToSelector(objc.Sel("presentAfterMinimumDuration:")) } -// Registers a block of code to be called immediately after the drawable is presented. [Full Topic] +// Presents the drawable onscreen as soon as possible after a previous drawable is visible for the specified duration. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawable/2806858-addpresentedhandler?language=objc -func (d_ DrawableObject) AddPresentedHandler(block DrawablePresentedHandler) { - objc.Call[objc.Void](d_, objc.Sel("addPresentedHandler:"), block) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawable/2806859-presentafterminimumduration?language=objc +func (d_ DrawableObject) PresentAfterMinimumDuration(duration corefoundation.TimeInterval) { + objc.Call[objc.Void](d_, objc.Sel("presentAfterMinimumDuration:"), duration) } func (d_ DrawableObject) HasPresentAtTime() bool { diff --git a/macos/metal/enumtypes.gen.go b/macos/metal/enumtypes.gen.go index cf19bed3..fbefe350 100644 --- a/macos/metal/enumtypes.gen.go +++ b/macos/metal/enumtypes.gen.go @@ -151,7 +151,7 @@ const ( BinaryArchiveErrorUnexpectedElement BinaryArchiveError = 2 ) -// The source and destination blend factors are often needed to complete specification of a blend operation. In most cases, the blend factor for both RGB values (F(rgb)) and alpha values (F(a)) are similar to one another, but in some cases, such as MTLBlendFactorSourceAlphaSaturated, the blend factor is slightly different. Four blend factors (MTLBlendFactorBlendColor, MTLBlendFactorOneMinusBlendColor, MTLBlendFactorBlendAlpha, and MTLBlendFactorOneMinusBlendAlpha) refer to a constant blend color value that is set by the [metal/mtlrendercommandencoder/setblendcolorred] method of MTLRenderCommandEncoder. [Full Topic] +// The source and destination blend factors are often needed to complete specification of a blend operation. In most cases, the blend factor for both RGB values (F(rgb)) and alpha values (F(a)) are similar to one another, but in some cases, such as MTLBlendFactorSourceAlphaSaturated, the blend factor is slightly different. Four blend factors (MTLBlendFactorBlendColor, MTLBlendFactorOneMinusBlendColor, MTLBlendFactorBlendAlpha, and MTLBlendFactorOneMinusBlendAlpha) refer to a constant blend color value that is set by the setBlendColorRed:green:blue:alpha: method of MTLRenderCommandEncoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlblendfactor?language=objc type BlendFactor uint @@ -234,7 +234,7 @@ const ( CaptureErrorNotSupported CaptureError = 1 ) -// Values used to specify a mask to permit or restrict writing to color channels of a color value. The values MTLColorWriteMaskRed, MTLColorWriteMaskGreen, MTLColorWriteMaskBlue, and MTLColorWriteMaskAlpha select one color channel each, and they can be bitwise combined. [Full Topic] +// Values used to specify a mask to permit or restrict writing to color channels of a color value. The values [metal/mtlcolorwritemask/mtlcolorwritemaskred], [metal/mtlcolorwritemask/mtlcolorwritemaskgreen], [metal/mtlcolorwritemask/mtlcolorwritemaskblue], and [metal/mtlcolorwritemask/mtlcolorwritemaskalpha] select one color channel each, and they can be bitwise combined. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcolorwritemask?language=objc type ColorWriteMask uint @@ -1040,7 +1040,7 @@ const ( SamplerAddressModeRepeat SamplerAddressMode = 2 ) -// Values that determine the border color for clamped texture values when the sampler address mode is MTLSamplerAddressModeClampToBorderColor. [Full Topic] +// Values that determine the border color for clamped texture values when the sampler address mode is [metal/mtlsampleraddressmode/mtlsampleraddressmodeclamptobordercolor]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerbordercolor?language=objc type SamplerBorderColor uint diff --git a/macos/metal/event_protocol.gen.go b/macos/metal/event_protocol.gen.go index 69a0c0cb..1136abd1 100644 --- a/macos/metal/event_protocol.gen.go +++ b/macos/metal/event_protocol.gen.go @@ -10,6 +10,10 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlevent?language=objc type PEvent interface { + // optional + Device() DeviceObject + HasDevice() bool + // optional SetLabel(value string) HasSetLabel() bool @@ -17,10 +21,6 @@ type PEvent interface { // optional Label() string HasLabel() bool - - // optional - Device() DeviceObject - HasDevice() bool } // ensure impl type implements protocol interface @@ -31,6 +31,18 @@ type EventObject struct { objc.Object } +func (e_ EventObject) HasDevice() bool { + return e_.RespondsToSelector(objc.Sel("device")) +} + +// The device object that created the event. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlevent/2966571-device?language=objc +func (e_ EventObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](e_, objc.Sel("device")) + return rv +} + func (e_ EventObject) HasSetLabel() bool { return e_.RespondsToSelector(objc.Sel("setLabel:")) } @@ -53,15 +65,3 @@ func (e_ EventObject) Label() string { rv := objc.Call[string](e_, objc.Sel("label")) return rv } - -func (e_ EventObject) HasDevice() bool { - return e_.RespondsToSelector(objc.Sel("device")) -} - -// The device object that created the event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlevent/2966571-device?language=objc -func (e_ EventObject) Device() DeviceObject { - rv := objc.Call[DeviceObject](e_, objc.Sel("device")) - return rv -} diff --git a/macos/metal/function_constant.gen.go b/macos/metal/function_constant.gen.go index 3e475585..7fa8eec4 100644 --- a/macos/metal/function_constant.gen.go +++ b/macos/metal/function_constant.gen.go @@ -18,10 +18,10 @@ type _FunctionConstantClass struct { // An interface definition for the [FunctionConstant] class. type IFunctionConstant interface { objc.IObject - Type() DataType - Index() uint Name() string Required() bool + Type() DataType + Index() uint } // A constant used to specialize the behavior of a shader. [Full Topic] @@ -57,22 +57,6 @@ func (f_ FunctionConstant) Init() FunctionConstant { return rv } -// The data type of the function constant. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionconstant/1639950-type?language=objc -func (f_ FunctionConstant) Type() DataType { - rv := objc.Call[DataType](f_, objc.Sel("type")) - return rv -} - -// The index of the function constant. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionconstant/1639905-index?language=objc -func (f_ FunctionConstant) Index() uint { - rv := objc.Call[uint](f_, objc.Sel("index")) - return rv -} - // The name of the function constant. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionconstant/1639955-name?language=objc @@ -88,3 +72,19 @@ func (f_ FunctionConstant) Required() bool { rv := objc.Call[bool](f_, objc.Sel("required")) return rv } + +// The data type of the function constant. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionconstant/1639950-type?language=objc +func (f_ FunctionConstant) Type() DataType { + rv := objc.Call[DataType](f_, objc.Sel("type")) + return rv +} + +// The index of the function constant. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionconstant/1639905-index?language=objc +func (f_ FunctionConstant) Index() uint { + rv := objc.Call[uint](f_, objc.Sel("index")) + return rv +} diff --git a/macos/metal/function_constant_values.gen.go b/macos/metal/function_constant_values.gen.go index e58ef1aa..e1796e23 100644 --- a/macos/metal/function_constant_values.gen.go +++ b/macos/metal/function_constant_values.gen.go @@ -19,7 +19,6 @@ type _FunctionConstantValuesClass struct { // An interface definition for the [FunctionConstantValues] class. type IFunctionConstantValues interface { objc.IObject - SetConstantValueTypeAtIndex(value unsafe.Pointer, type_ DataType, index uint) SetConstantValueTypeWithName(value unsafe.Pointer, type_ DataType, name string) SetConstantValuesTypeWithRange(values unsafe.Pointer, type_ DataType, range_ foundation.Range) Reset() @@ -58,13 +57,6 @@ func (f_ FunctionConstantValues) Init() FunctionConstantValues { return rv } -// Sets a value for a function constant at a specific index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionconstantvalues/1639531-setconstantvalue?language=objc -func (f_ FunctionConstantValues) SetConstantValueTypeAtIndex(value unsafe.Pointer, type_ DataType, index uint) { - objc.Call[objc.Void](f_, objc.Sel("setConstantValue:type:atIndex:"), value, type_, index) -} - // Sets a value for a function constant with a specific name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionconstantvalues/1639530-setconstantvalue?language=objc diff --git a/macos/metal/function_descriptor.gen.go b/macos/metal/function_descriptor.gen.go index fb14618f..1ff9ec6c 100644 --- a/macos/metal/function_descriptor.gen.go +++ b/macos/metal/function_descriptor.gen.go @@ -18,16 +18,16 @@ type _FunctionDescriptorClass struct { // An interface definition for the [FunctionDescriptor] class. type IFunctionDescriptor interface { objc.IObject - Name() string - SetName(value string) - BinaryArchives() []BinaryArchiveObject - SetBinaryArchives(value []PBinaryArchive) - Options() FunctionOptions - SetOptions(value FunctionOptions) ConstantValues() FunctionConstantValues SetConstantValues(value IFunctionConstantValues) + Options() FunctionOptions + SetOptions(value FunctionOptions) + Name() string + SetName(value string) SpecializedName() string SetSpecializedName(value string) + BinaryArchives() []BinaryArchiveObject + SetBinaryArchives(value []PBinaryArchive) } // A description of a function object to create. [Full Topic] @@ -78,34 +78,19 @@ func FunctionDescriptor_FunctionDescriptor() FunctionDescriptor { return FunctionDescriptorClass.FunctionDescriptor() } -// The name of the function to fetch from the library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553995-name?language=objc -func (f_ FunctionDescriptor) Name() string { - rv := objc.Call[string](f_, objc.Sel("name")) - return rv -} - -// The name of the function to fetch from the library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553995-name?language=objc -func (f_ FunctionDescriptor) SetName(value string) { - objc.Call[objc.Void](f_, objc.Sel("setName:"), value) -} - -// The binary archives to search for a previously-compiled version of this function. [Full Topic] +// The set of constant values assigned to the function constants. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553992-binaryarchives?language=objc -func (f_ FunctionDescriptor) BinaryArchives() []BinaryArchiveObject { - rv := objc.Call[[]BinaryArchiveObject](f_, objc.Sel("binaryArchives")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553993-constantvalues?language=objc +func (f_ FunctionDescriptor) ConstantValues() FunctionConstantValues { + rv := objc.Call[FunctionConstantValues](f_, objc.Sel("constantValues")) return rv } -// The binary archives to search for a previously-compiled version of this function. [Full Topic] +// The set of constant values assigned to the function constants. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553992-binaryarchives?language=objc -func (f_ FunctionDescriptor) SetBinaryArchives(value []PBinaryArchive) { - objc.Call[objc.Void](f_, objc.Sel("setBinaryArchives:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553993-constantvalues?language=objc +func (f_ FunctionDescriptor) SetConstantValues(value IFunctionConstantValues) { + objc.Call[objc.Void](f_, objc.Sel("setConstantValues:"), value) } // Flags specifying how Metal should create the new function object. [Full Topic] @@ -123,19 +108,19 @@ func (f_ FunctionDescriptor) SetOptions(value FunctionOptions) { objc.Call[objc.Void](f_, objc.Sel("setOptions:"), value) } -// The set of constant values assigned to the function constants. [Full Topic] +// The name of the function to fetch from the library. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553993-constantvalues?language=objc -func (f_ FunctionDescriptor) ConstantValues() FunctionConstantValues { - rv := objc.Call[FunctionConstantValues](f_, objc.Sel("constantValues")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553995-name?language=objc +func (f_ FunctionDescriptor) Name() string { + rv := objc.Call[string](f_, objc.Sel("name")) return rv } -// The set of constant values assigned to the function constants. [Full Topic] +// The name of the function to fetch from the library. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553993-constantvalues?language=objc -func (f_ FunctionDescriptor) SetConstantValues(value IFunctionConstantValues) { - objc.Call[objc.Void](f_, objc.Sel("setConstantValues:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553995-name?language=objc +func (f_ FunctionDescriptor) SetName(value string) { + objc.Call[objc.Void](f_, objc.Sel("setName:"), value) } // A new name for the created function object. [Full Topic] @@ -152,3 +137,18 @@ func (f_ FunctionDescriptor) SpecializedName() string { func (f_ FunctionDescriptor) SetSpecializedName(value string) { objc.Call[objc.Void](f_, objc.Sel("setSpecializedName:"), value) } + +// The binary archives to search for a previously-compiled version of this function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553992-binaryarchives?language=objc +func (f_ FunctionDescriptor) BinaryArchives() []BinaryArchiveObject { + rv := objc.Call[[]BinaryArchiveObject](f_, objc.Sel("binaryArchives")) + return rv +} + +// The binary archives to search for a previously-compiled version of this function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctiondescriptor/3553992-binaryarchives?language=objc +func (f_ FunctionDescriptor) SetBinaryArchives(value []PBinaryArchive) { + objc.Call[objc.Void](f_, objc.Sel("setBinaryArchives:"), value) +} diff --git a/macos/metal/function_handle_protocol.gen.go b/macos/metal/function_handle_protocol.gen.go index 17d781de..a64235a9 100644 --- a/macos/metal/function_handle_protocol.gen.go +++ b/macos/metal/function_handle_protocol.gen.go @@ -11,16 +11,16 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionhandle?language=objc type PFunctionHandle interface { // optional - FunctionType() FunctionType - HasFunctionType() bool + Name() string + HasName() bool // optional Device() DeviceObject HasDevice() bool // optional - Name() string - HasName() bool + FunctionType() FunctionType + HasFunctionType() bool } // ensure impl type implements protocol interface @@ -31,15 +31,15 @@ type FunctionHandleObject struct { objc.Object } -func (f_ FunctionHandleObject) HasFunctionType() bool { - return f_.RespondsToSelector(objc.Sel("functionType")) +func (f_ FunctionHandleObject) HasName() bool { + return f_.RespondsToSelector(objc.Sel("name")) } -// The shader function’s type. [Full Topic] +// The function’s name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionhandle/3554003-functiontype?language=objc -func (f_ FunctionHandleObject) FunctionType() FunctionType { - rv := objc.Call[FunctionType](f_, objc.Sel("functionType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionhandle/3554004-name?language=objc +func (f_ FunctionHandleObject) Name() string { + rv := objc.Call[string](f_, objc.Sel("name")) return rv } @@ -55,14 +55,14 @@ func (f_ FunctionHandleObject) Device() DeviceObject { return rv } -func (f_ FunctionHandleObject) HasName() bool { - return f_.RespondsToSelector(objc.Sel("name")) +func (f_ FunctionHandleObject) HasFunctionType() bool { + return f_.RespondsToSelector(objc.Sel("functionType")) } -// The function’s name. [Full Topic] +// The shader function’s type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionhandle/3554004-name?language=objc -func (f_ FunctionHandleObject) Name() string { - rv := objc.Call[string](f_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionhandle/3554003-functiontype?language=objc +func (f_ FunctionHandleObject) FunctionType() FunctionType { + rv := objc.Call[FunctionType](f_, objc.Sel("functionType")) return rv } diff --git a/macos/metal/function_log_debug_location_protocol.gen.go b/macos/metal/function_log_debug_location_protocol.gen.go index ce87af1c..e45342fa 100644 --- a/macos/metal/function_log_debug_location_protocol.gen.go +++ b/macos/metal/function_log_debug_location_protocol.gen.go @@ -11,21 +11,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlogdebuglocation?language=objc type PFunctionLogDebugLocation interface { - // optional - FunctionName() string - HasFunctionName() bool - // optional Line() uint HasLine() bool // optional - URL() foundation.URL - HasURL() bool + FunctionName() string + HasFunctionName() bool // optional Column() uint HasColumn() bool + + // optional + URL() foundation.URL + HasURL() bool } // ensure impl type implements protocol interface @@ -36,18 +36,6 @@ type FunctionLogDebugLocationObject struct { objc.Object } -func (f_ FunctionLogDebugLocationObject) HasFunctionName() bool { - return f_.RespondsToSelector(objc.Sel("functionName")) -} - -// The name of the shader function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlogdebuglocation/3554020-functionname?language=objc -func (f_ FunctionLogDebugLocationObject) FunctionName() string { - rv := objc.Call[string](f_, objc.Sel("functionName")) - return rv -} - func (f_ FunctionLogDebugLocationObject) HasLine() bool { return f_.RespondsToSelector(objc.Sel("line")) } @@ -60,15 +48,15 @@ func (f_ FunctionLogDebugLocationObject) Line() uint { return rv } -func (f_ FunctionLogDebugLocationObject) HasURL() bool { - return f_.RespondsToSelector(objc.Sel("URL")) +func (f_ FunctionLogDebugLocationObject) HasFunctionName() bool { + return f_.RespondsToSelector(objc.Sel("functionName")) } -// The URL of the file that contains the shader function. [Full Topic] +// The name of the shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlogdebuglocation/3554018-url?language=objc -func (f_ FunctionLogDebugLocationObject) URL() foundation.URL { - rv := objc.Call[foundation.URL](f_, objc.Sel("URL")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlogdebuglocation/3554020-functionname?language=objc +func (f_ FunctionLogDebugLocationObject) FunctionName() string { + rv := objc.Call[string](f_, objc.Sel("functionName")) return rv } @@ -83,3 +71,15 @@ func (f_ FunctionLogDebugLocationObject) Column() uint { rv := objc.Call[uint](f_, objc.Sel("column")) return rv } + +func (f_ FunctionLogDebugLocationObject) HasURL() bool { + return f_.RespondsToSelector(objc.Sel("URL")) +} + +// The URL of the file that contains the shader function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlogdebuglocation/3554018-url?language=objc +func (f_ FunctionLogDebugLocationObject) URL() foundation.URL { + rv := objc.Call[foundation.URL](f_, objc.Sel("URL")) + return rv +} diff --git a/macos/metal/function_log_protocol.gen.go b/macos/metal/function_log_protocol.gen.go index 92080f2d..14c1d19e 100644 --- a/macos/metal/function_log_protocol.gen.go +++ b/macos/metal/function_log_protocol.gen.go @@ -15,16 +15,16 @@ type PFunctionLog interface { HasFunction() bool // optional - Type() FunctionLogType - HasType() bool + DebugLocation() FunctionLogDebugLocationObject + HasDebugLocation() bool // optional EncoderLabel() string HasEncoderLabel() bool // optional - DebugLocation() FunctionLogDebugLocationObject - HasDebugLocation() bool + Type() FunctionLogType + HasType() bool } // ensure impl type implements protocol interface @@ -47,15 +47,15 @@ func (f_ FunctionLogObject) Function() FunctionObject { return rv } -func (f_ FunctionLogObject) HasType() bool { - return f_.RespondsToSelector(objc.Sel("type")) +func (f_ FunctionLogObject) HasDebugLocation() bool { + return f_.RespondsToSelector(objc.Sel("debugLocation")) } -// The type of message that was logged. [Full Topic] +// If known, the location of the logging command within a shader source file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlog/3554016-type?language=objc -func (f_ FunctionLogObject) Type() FunctionLogType { - rv := objc.Call[FunctionLogType](f_, objc.Sel("type")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlog/3554007-debuglocation?language=objc +func (f_ FunctionLogObject) DebugLocation() FunctionLogDebugLocationObject { + rv := objc.Call[FunctionLogDebugLocationObject](f_, objc.Sel("debugLocation")) return rv } @@ -71,14 +71,14 @@ func (f_ FunctionLogObject) EncoderLabel() string { return rv } -func (f_ FunctionLogObject) HasDebugLocation() bool { - return f_.RespondsToSelector(objc.Sel("debugLocation")) +func (f_ FunctionLogObject) HasType() bool { + return f_.RespondsToSelector(objc.Sel("type")) } -// If known, the location of the logging command within a shader source file. [Full Topic] +// The type of message that was logged. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlog/3554007-debuglocation?language=objc -func (f_ FunctionLogObject) DebugLocation() FunctionLogDebugLocationObject { - rv := objc.Call[FunctionLogDebugLocationObject](f_, objc.Sel("debugLocation")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlog/3554016-type?language=objc +func (f_ FunctionLogObject) Type() FunctionLogType { + rv := objc.Call[FunctionLogType](f_, objc.Sel("type")) return rv } diff --git a/macos/metal/function_protocol.gen.go b/macos/metal/function_protocol.gen.go index 7047350f..a3882360 100644 --- a/macos/metal/function_protocol.gen.go +++ b/macos/metal/function_protocol.gen.go @@ -15,48 +15,48 @@ type PFunction interface { HasNewArgumentEncoderWithBufferIndex() bool // optional - VertexAttributes() []VertexAttribute - HasVertexAttributes() bool - - // optional - SetLabel(value string) - HasSetLabel() bool + PatchControlPointCount() int + HasPatchControlPointCount() bool // optional - Label() string - HasLabel() bool + PatchType() PatchType + HasPatchType() bool // optional - FunctionType() FunctionType - HasFunctionType() bool + Options() FunctionOptions + HasOptions() bool // optional Name() string HasName() bool // optional - FunctionConstantsDictionary() map[string]FunctionConstant - HasFunctionConstantsDictionary() bool + Device() DeviceObject + HasDevice() bool // optional - PatchControlPointCount() int - HasPatchControlPointCount() bool + StageInputAttributes() []Attribute + HasStageInputAttributes() bool // optional - Device() DeviceObject - HasDevice() bool + VertexAttributes() []VertexAttribute + HasVertexAttributes() bool // optional - PatchType() PatchType - HasPatchType() bool + FunctionConstantsDictionary() map[string]FunctionConstant + HasFunctionConstantsDictionary() bool // optional - Options() FunctionOptions - HasOptions() bool + FunctionType() FunctionType + HasFunctionType() bool // optional - StageInputAttributes() []Attribute - HasStageInputAttributes() bool + SetLabel(value string) + HasSetLabel() bool + + // optional + Label() string + HasLabel() bool } // ensure impl type implements protocol interface @@ -79,50 +79,39 @@ func (f_ FunctionObject) NewArgumentEncoderWithBufferIndex(bufferIndex uint) Arg return rv } -func (f_ FunctionObject) HasVertexAttributes() bool { - return f_.RespondsToSelector(objc.Sel("vertexAttributes")) +func (f_ FunctionObject) HasPatchControlPointCount() bool { + return f_.RespondsToSelector(objc.Sel("patchControlPointCount")) } -// An array that describes the vertex input attributes to a vertex function. [Full Topic] +// The number of patch control points in the post-tessellation vertex function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1515944-vertexattributes?language=objc -func (f_ FunctionObject) VertexAttributes() []VertexAttribute { - rv := objc.Call[[]VertexAttribute](f_, objc.Sel("vertexAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1639890-patchcontrolpointcount?language=objc +func (f_ FunctionObject) PatchControlPointCount() int { + rv := objc.Call[int](f_, objc.Sel("patchControlPointCount")) return rv } -func (f_ FunctionObject) HasSetLabel() bool { - return f_.RespondsToSelector(objc.Sel("setLabel:")) -} - -// A string that identifies the shader function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1640034-label?language=objc -func (f_ FunctionObject) SetLabel(value string) { - objc.Call[objc.Void](f_, objc.Sel("setLabel:"), value) -} - -func (f_ FunctionObject) HasLabel() bool { - return f_.RespondsToSelector(objc.Sel("label")) +func (f_ FunctionObject) HasPatchType() bool { + return f_.RespondsToSelector(objc.Sel("patchType")) } -// A string that identifies the shader function. [Full Topic] +// The tessellation patch type of a post-tessellation vertex function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1640034-label?language=objc -func (f_ FunctionObject) Label() string { - rv := objc.Call[string](f_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1639909-patchtype?language=objc +func (f_ FunctionObject) PatchType() PatchType { + rv := objc.Call[PatchType](f_, objc.Sel("patchType")) return rv } -func (f_ FunctionObject) HasFunctionType() bool { - return f_.RespondsToSelector(objc.Sel("functionType")) +func (f_ FunctionObject) HasOptions() bool { + return f_.RespondsToSelector(objc.Sel("options")) } -// The shader function’s type. [Full Topic] +// The options that Metal used to compile this function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1516042-functiontype?language=objc -func (f_ FunctionObject) FunctionType() FunctionType { - rv := objc.Call[FunctionType](f_, objc.Sel("functionType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/3566558-options?language=objc +func (f_ FunctionObject) Options() FunctionOptions { + rv := objc.Call[FunctionOptions](f_, objc.Sel("options")) return rv } @@ -138,74 +127,85 @@ func (f_ FunctionObject) Name() string { return rv } -func (f_ FunctionObject) HasFunctionConstantsDictionary() bool { - return f_.RespondsToSelector(objc.Sel("functionConstantsDictionary")) +func (f_ FunctionObject) HasDevice() bool { + return f_.RespondsToSelector(objc.Sel("device")) } -// A dictionary of function constants for a specialized function. [Full Topic] +// The device object that created the shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/2314777-functionconstantsdictionary?language=objc -func (f_ FunctionObject) FunctionConstantsDictionary() map[string]FunctionConstant { - rv := objc.Call[map[string]FunctionConstant](f_, objc.Sel("functionConstantsDictionary")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1515496-device?language=objc +func (f_ FunctionObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](f_, objc.Sel("device")) return rv } -func (f_ FunctionObject) HasPatchControlPointCount() bool { - return f_.RespondsToSelector(objc.Sel("patchControlPointCount")) +func (f_ FunctionObject) HasStageInputAttributes() bool { + return f_.RespondsToSelector(objc.Sel("stageInputAttributes")) } -// The number of patch control points in the post-tessellation vertex function. [Full Topic] +// An array that describes the input attributes to the function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1639890-patchcontrolpointcount?language=objc -func (f_ FunctionObject) PatchControlPointCount() int { - rv := objc.Call[int](f_, objc.Sel("patchControlPointCount")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/2097159-stageinputattributes?language=objc +func (f_ FunctionObject) StageInputAttributes() []Attribute { + rv := objc.Call[[]Attribute](f_, objc.Sel("stageInputAttributes")) return rv } -func (f_ FunctionObject) HasDevice() bool { - return f_.RespondsToSelector(objc.Sel("device")) +func (f_ FunctionObject) HasVertexAttributes() bool { + return f_.RespondsToSelector(objc.Sel("vertexAttributes")) } -// The device object that created the shader function. [Full Topic] +// An array that describes the vertex input attributes to a vertex function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1515496-device?language=objc -func (f_ FunctionObject) Device() DeviceObject { - rv := objc.Call[DeviceObject](f_, objc.Sel("device")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1515944-vertexattributes?language=objc +func (f_ FunctionObject) VertexAttributes() []VertexAttribute { + rv := objc.Call[[]VertexAttribute](f_, objc.Sel("vertexAttributes")) return rv } -func (f_ FunctionObject) HasPatchType() bool { - return f_.RespondsToSelector(objc.Sel("patchType")) +func (f_ FunctionObject) HasFunctionConstantsDictionary() bool { + return f_.RespondsToSelector(objc.Sel("functionConstantsDictionary")) } -// The tessellation patch type of a post-tessellation vertex function. [Full Topic] +// A dictionary of function constants for a specialized function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1639909-patchtype?language=objc -func (f_ FunctionObject) PatchType() PatchType { - rv := objc.Call[PatchType](f_, objc.Sel("patchType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/2314777-functionconstantsdictionary?language=objc +func (f_ FunctionObject) FunctionConstantsDictionary() map[string]FunctionConstant { + rv := objc.Call[map[string]FunctionConstant](f_, objc.Sel("functionConstantsDictionary")) return rv } -func (f_ FunctionObject) HasOptions() bool { - return f_.RespondsToSelector(objc.Sel("options")) +func (f_ FunctionObject) HasFunctionType() bool { + return f_.RespondsToSelector(objc.Sel("functionType")) } -// The options that Metal used to compile this function. [Full Topic] +// The shader function’s type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/3566558-options?language=objc -func (f_ FunctionObject) Options() FunctionOptions { - rv := objc.Call[FunctionOptions](f_, objc.Sel("options")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1516042-functiontype?language=objc +func (f_ FunctionObject) FunctionType() FunctionType { + rv := objc.Call[FunctionType](f_, objc.Sel("functionType")) return rv } -func (f_ FunctionObject) HasStageInputAttributes() bool { - return f_.RespondsToSelector(objc.Sel("stageInputAttributes")) +func (f_ FunctionObject) HasSetLabel() bool { + return f_.RespondsToSelector(objc.Sel("setLabel:")) } -// An array that describes the input attributes to the function. [Full Topic] +// A string that identifies the shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/2097159-stageinputattributes?language=objc -func (f_ FunctionObject) StageInputAttributes() []Attribute { - rv := objc.Call[[]Attribute](f_, objc.Sel("stageInputAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1640034-label?language=objc +func (f_ FunctionObject) SetLabel(value string) { + objc.Call[objc.Void](f_, objc.Sel("setLabel:"), value) +} + +func (f_ FunctionObject) HasLabel() bool { + return f_.RespondsToSelector(objc.Sel("label")) +} + +// A string that identifies the shader function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1640034-label?language=objc +func (f_ FunctionObject) Label() string { + rv := objc.Call[string](f_, objc.Sel("label")) return rv } diff --git a/macos/metal/function_stitching_function_node.gen.go b/macos/metal/function_stitching_function_node.gen.go index 15b7b7c8..559368d1 100644 --- a/macos/metal/function_stitching_function_node.gen.go +++ b/macos/metal/function_stitching_function_node.gen.go @@ -18,12 +18,12 @@ type _FunctionStitchingFunctionNodeClass struct { // An interface definition for the [FunctionStitchingFunctionNode] class. type IFunctionStitchingFunctionNode interface { objc.IObject - ControlDependencies() []FunctionStitchingFunctionNode - SetControlDependencies(value []IFunctionStitchingFunctionNode) - Name() string - SetName(value string) Arguments() []FunctionStitchingNodeObject SetArguments(value []PFunctionStitchingNode) + Name() string + SetName(value string) + ControlDependencies() []FunctionStitchingFunctionNode + SetControlDependencies(value []IFunctionStitchingFunctionNode) } // A call graph node that describes a function call and its inputs. [Full Topic] @@ -73,19 +73,19 @@ func (f_ FunctionStitchingFunctionNode) Init() FunctionStitchingFunctionNode { return rv } -// The list of nodes that must execute before executing the node. [Full Topic] +// An ordered list of the nodes that provide the function’s arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchingfunctionnode/3750535-controldependencies?language=objc -func (f_ FunctionStitchingFunctionNode) ControlDependencies() []FunctionStitchingFunctionNode { - rv := objc.Call[[]FunctionStitchingFunctionNode](f_, objc.Sel("controlDependencies")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchingfunctionnode/3750534-arguments?language=objc +func (f_ FunctionStitchingFunctionNode) Arguments() []FunctionStitchingNodeObject { + rv := objc.Call[[]FunctionStitchingNodeObject](f_, objc.Sel("arguments")) return rv } -// The list of nodes that must execute before executing the node. [Full Topic] +// An ordered list of the nodes that provide the function’s arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchingfunctionnode/3750535-controldependencies?language=objc -func (f_ FunctionStitchingFunctionNode) SetControlDependencies(value []IFunctionStitchingFunctionNode) { - objc.Call[objc.Void](f_, objc.Sel("setControlDependencies:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchingfunctionnode/3750534-arguments?language=objc +func (f_ FunctionStitchingFunctionNode) SetArguments(value []PFunctionStitchingNode) { + objc.Call[objc.Void](f_, objc.Sel("setArguments:"), value) } // The name of the function to call. [Full Topic] @@ -103,17 +103,17 @@ func (f_ FunctionStitchingFunctionNode) SetName(value string) { objc.Call[objc.Void](f_, objc.Sel("setName:"), value) } -// An ordered list of the nodes that provide the function’s arguments. [Full Topic] +// The list of nodes that must execute before executing the node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchingfunctionnode/3750534-arguments?language=objc -func (f_ FunctionStitchingFunctionNode) Arguments() []FunctionStitchingNodeObject { - rv := objc.Call[[]FunctionStitchingNodeObject](f_, objc.Sel("arguments")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchingfunctionnode/3750535-controldependencies?language=objc +func (f_ FunctionStitchingFunctionNode) ControlDependencies() []FunctionStitchingFunctionNode { + rv := objc.Call[[]FunctionStitchingFunctionNode](f_, objc.Sel("controlDependencies")) return rv } -// An ordered list of the nodes that provide the function’s arguments. [Full Topic] +// The list of nodes that must execute before executing the node. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchingfunctionnode/3750534-arguments?language=objc -func (f_ FunctionStitchingFunctionNode) SetArguments(value []PFunctionStitchingNode) { - objc.Call[objc.Void](f_, objc.Sel("setArguments:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchingfunctionnode/3750535-controldependencies?language=objc +func (f_ FunctionStitchingFunctionNode) SetControlDependencies(value []IFunctionStitchingFunctionNode) { + objc.Call[objc.Void](f_, objc.Sel("setControlDependencies:"), value) } diff --git a/macos/metal/function_stitching_graph.gen.go b/macos/metal/function_stitching_graph.gen.go index 9f051476..6d553a84 100644 --- a/macos/metal/function_stitching_graph.gen.go +++ b/macos/metal/function_stitching_graph.gen.go @@ -18,14 +18,14 @@ type _FunctionStitchingGraphClass struct { // An interface definition for the [FunctionStitchingGraph] class. type IFunctionStitchingGraph interface { objc.IObject - Attributes() []FunctionStitchingAttributeObject - SetAttributes(value []PFunctionStitchingAttribute) FunctionName() string SetFunctionName(value string) - Nodes() []FunctionStitchingFunctionNode - SetNodes(value []IFunctionStitchingFunctionNode) OutputNode() FunctionStitchingFunctionNode SetOutputNode(value IFunctionStitchingFunctionNode) + Nodes() []FunctionStitchingFunctionNode + SetNodes(value []IFunctionStitchingFunctionNode) + Attributes() []FunctionStitchingAttributeObject + SetAttributes(value []PFunctionStitchingAttribute) } // A description of a new stitched function. [Full Topic] @@ -75,21 +75,6 @@ func (f_ FunctionStitchingGraph) Init() FunctionStitchingGraph { return rv } -// A list of attributes to configure how the Metal device object generates the new stitched function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750539-attributes?language=objc -func (f_ FunctionStitchingGraph) Attributes() []FunctionStitchingAttributeObject { - rv := objc.Call[[]FunctionStitchingAttributeObject](f_, objc.Sel("attributes")) - return rv -} - -// A list of attributes to configure how the Metal device object generates the new stitched function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750539-attributes?language=objc -func (f_ FunctionStitchingGraph) SetAttributes(value []PFunctionStitchingAttribute) { - objc.Call[objc.Void](f_, objc.Sel("setAttributes:"), value) -} - // The name of the new stitched function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750540-functionname?language=objc @@ -105,6 +90,21 @@ func (f_ FunctionStitchingGraph) SetFunctionName(value string) { objc.Call[objc.Void](f_, objc.Sel("setFunctionName:"), value) } +// The node with the output that’s the output of the new stitched function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750543-outputnode?language=objc +func (f_ FunctionStitchingGraph) OutputNode() FunctionStitchingFunctionNode { + rv := objc.Call[FunctionStitchingFunctionNode](f_, objc.Sel("outputNode")) + return rv +} + +// The node with the output that’s the output of the new stitched function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750543-outputnode?language=objc +func (f_ FunctionStitchingGraph) SetOutputNode(value IFunctionStitchingFunctionNode) { + objc.Call[objc.Void](f_, objc.Sel("setOutputNode:"), value) +} + // The nodes in the function’s call graph. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750542-nodes?language=objc @@ -120,17 +120,17 @@ func (f_ FunctionStitchingGraph) SetNodes(value []IFunctionStitchingFunctionNode objc.Call[objc.Void](f_, objc.Sel("setNodes:"), value) } -// The node with the output that’s the output of the new stitched function. [Full Topic] +// A list of attributes to configure how the Metal device object generates the new stitched function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750543-outputnode?language=objc -func (f_ FunctionStitchingGraph) OutputNode() FunctionStitchingFunctionNode { - rv := objc.Call[FunctionStitchingFunctionNode](f_, objc.Sel("outputNode")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750539-attributes?language=objc +func (f_ FunctionStitchingGraph) Attributes() []FunctionStitchingAttributeObject { + rv := objc.Call[[]FunctionStitchingAttributeObject](f_, objc.Sel("attributes")) return rv } -// The node with the output that’s the output of the new stitched function. [Full Topic] +// A list of attributes to configure how the Metal device object generates the new stitched function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750543-outputnode?language=objc -func (f_ FunctionStitchingGraph) SetOutputNode(value IFunctionStitchingFunctionNode) { - objc.Call[objc.Void](f_, objc.Sel("setOutputNode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750539-attributes?language=objc +func (f_ FunctionStitchingGraph) SetAttributes(value []PFunctionStitchingAttribute) { + objc.Call[objc.Void](f_, objc.Sel("setAttributes:"), value) } diff --git a/macos/metal/heap_descriptor.gen.go b/macos/metal/heap_descriptor.gen.go index 3969a6b4..b3b6cc8f 100644 --- a/macos/metal/heap_descriptor.gen.go +++ b/macos/metal/heap_descriptor.gen.go @@ -18,16 +18,16 @@ type _HeapDescriptorClass struct { // An interface definition for the [HeapDescriptor] class. type IHeapDescriptor interface { objc.IObject - ResourceOptions() ResourceOptions - SetResourceOptions(value ResourceOptions) - Size() uint - SetSize(value uint) CpuCacheMode() CPUCacheMode SetCpuCacheMode(value CPUCacheMode) StorageMode() StorageMode SetStorageMode(value StorageMode) + ResourceOptions() ResourceOptions + SetResourceOptions(value ResourceOptions) Type() HeapType SetType(value HeapType) + Size() uint + SetSize(value uint) HazardTrackingMode() HazardTrackingMode SetHazardTrackingMode(value HazardTrackingMode) } @@ -65,36 +65,6 @@ func (h_ HeapDescriptor) Init() HeapDescriptor { return rv } -// The combined behavior for any resources you allocate from the heaps you create with this descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/3131687-resourceoptions?language=objc -func (h_ HeapDescriptor) ResourceOptions() ResourceOptions { - rv := objc.Call[ResourceOptions](h_, objc.Sel("resourceOptions")) - return rv -} - -// The combined behavior for any resources you allocate from the heaps you create with this descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/3131687-resourceoptions?language=objc -func (h_ HeapDescriptor) SetResourceOptions(value ResourceOptions) { - objc.Call[objc.Void](h_, objc.Sel("setResourceOptions:"), value) -} - -// The total amount of memory, in bytes, for the heaps you create with this descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/1649568-size?language=objc -func (h_ HeapDescriptor) Size() uint { - rv := objc.Call[uint](h_, objc.Sel("size")) - return rv -} - -// The total amount of memory, in bytes, for the heaps you create with this descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/1649568-size?language=objc -func (h_ HeapDescriptor) SetSize(value uint) { - objc.Call[objc.Void](h_, objc.Sel("setSize:"), value) -} - // The CPU cache behavior for any resources you allocate from the heaps you create with this descriptor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/1649573-cpucachemode?language=objc @@ -125,6 +95,21 @@ func (h_ HeapDescriptor) SetStorageMode(value StorageMode) { objc.Call[objc.Void](h_, objc.Sel("setStorageMode:"), value) } +// The combined behavior for any resources you allocate from the heaps you create with this descriptor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/3131687-resourceoptions?language=objc +func (h_ HeapDescriptor) ResourceOptions() ResourceOptions { + rv := objc.Call[ResourceOptions](h_, objc.Sel("resourceOptions")) + return rv +} + +// The combined behavior for any resources you allocate from the heaps you create with this descriptor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/3131687-resourceoptions?language=objc +func (h_ HeapDescriptor) SetResourceOptions(value ResourceOptions) { + objc.Call[objc.Void](h_, objc.Sel("setResourceOptions:"), value) +} + // The memory placement strategy for any resources you allocate from the heaps you create with this descriptor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/3043389-type?language=objc @@ -140,6 +125,21 @@ func (h_ HeapDescriptor) SetType(value HeapType) { objc.Call[objc.Void](h_, objc.Sel("setType:"), value) } +// The total amount of memory, in bytes, for the heaps you create with this descriptor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/1649568-size?language=objc +func (h_ HeapDescriptor) Size() uint { + rv := objc.Call[uint](h_, objc.Sel("size")) + return rv +} + +// The total amount of memory, in bytes, for the heaps you create with this descriptor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/1649568-size?language=objc +func (h_ HeapDescriptor) SetSize(value uint) { + objc.Call[objc.Void](h_, objc.Sel("setSize:"), value) +} + // The hazard tracking behavior for any resources you allocate from the heaps you create with this descriptor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlheapdescriptor/3131686-hazardtrackingmode?language=objc diff --git a/macos/metal/heap_protocol.gen.go b/macos/metal/heap_protocol.gen.go index 9bee77fb..df597c96 100644 --- a/macos/metal/heap_protocol.gen.go +++ b/macos/metal/heap_protocol.gen.go @@ -11,12 +11,8 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap?language=objc type PHeap interface { // optional - SetPurgeableState(state PurgeableState) PurgeableState - HasSetPurgeableState() bool - - // optional - NewBufferWithLengthOptionsOffset(length uint, options ResourceOptions, offset uint) BufferObject - HasNewBufferWithLengthOptionsOffset() bool + NewTextureWithDescriptor(descriptor TextureDescriptor) TextureObject + HasNewTextureWithDescriptor() bool // optional NewBufferWithLengthOptions(length uint, options ResourceOptions) BufferObject @@ -27,56 +23,52 @@ type PHeap interface { HasMaxAvailableSizeWithAlignment() bool // optional - NewTextureWithDescriptor(descriptor TextureDescriptor) TextureObject - HasNewTextureWithDescriptor() bool + SetPurgeableState(state PurgeableState) PurgeableState + HasSetPurgeableState() bool // optional - NewTextureWithDescriptorOffset(descriptor TextureDescriptor, offset uint) TextureObject - HasNewTextureWithDescriptorOffset() bool + Device() DeviceObject + HasDevice() bool // optional - HazardTrackingMode() HazardTrackingMode - HasHazardTrackingMode() bool + CpuCacheMode() CPUCacheMode + HasCpuCacheMode() bool // optional - SetLabel(value string) - HasSetLabel() bool + StorageMode() StorageMode + HasStorageMode() bool // optional - Label() string - HasLabel() bool + UsedSize() uint + HasUsedSize() bool // optional - CurrentAllocatedSize() uint - HasCurrentAllocatedSize() bool + ResourceOptions() ResourceOptions + HasResourceOptions() bool // optional Type() HeapType HasType() bool // optional - UsedSize() uint - HasUsedSize() bool + SetLabel(value string) + HasSetLabel() bool // optional - CpuCacheMode() CPUCacheMode - HasCpuCacheMode() bool + Label() string + HasLabel() bool // optional Size() uint HasSize() bool // optional - ResourceOptions() ResourceOptions - HasResourceOptions() bool - - // optional - StorageMode() StorageMode - HasStorageMode() bool + CurrentAllocatedSize() uint + HasCurrentAllocatedSize() bool // optional - Device() DeviceObject - HasDevice() bool + HazardTrackingMode() HazardTrackingMode + HasHazardTrackingMode() bool } // ensure impl type implements protocol interface @@ -87,27 +79,15 @@ type HeapObject struct { objc.Object } -func (h_ HeapObject) HasSetPurgeableState() bool { - return h_.RespondsToSelector(objc.Sel("setPurgeableState:")) -} - -// Sets the purgeable state of the heap. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771281-setpurgeablestate?language=objc -func (h_ HeapObject) SetPurgeableState(state PurgeableState) PurgeableState { - rv := objc.Call[PurgeableState](h_, objc.Sel("setPurgeableState:"), state) - return rv -} - -func (h_ HeapObject) HasNewBufferWithLengthOptionsOffset() bool { - return h_.RespondsToSelector(objc.Sel("newBufferWithLength:options:offset:")) +func (h_ HeapObject) HasNewTextureWithDescriptor() bool { + return h_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:")) } -// Creates a buffer at a specified offset on the heap. [Full Topic] +// Creates a texture on the heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/3152522-newbufferwithlength?language=objc -func (h_ HeapObject) NewBufferWithLengthOptionsOffset(length uint, options ResourceOptions, offset uint) BufferObject { - rv := objc.Call[BufferObject](h_, objc.Sel("newBufferWithLength:options:offset:"), length, options, offset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1649574-newtexturewithdescriptor?language=objc +func (h_ HeapObject) NewTextureWithDescriptor(descriptor TextureDescriptor) TextureObject { + rv := objc.Call[TextureObject](h_, objc.Sel("newTextureWithDescriptor:"), descriptor) return rv } @@ -135,74 +115,75 @@ func (h_ HeapObject) MaxAvailableSizeWithAlignment(alignment uint) uint { return rv } -func (h_ HeapObject) HasNewTextureWithDescriptor() bool { - return h_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:")) +func (h_ HeapObject) HasSetPurgeableState() bool { + return h_.RespondsToSelector(objc.Sel("setPurgeableState:")) } -// Creates a texture on the heap. [Full Topic] +// Sets the purgeable state of the heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1649574-newtexturewithdescriptor?language=objc -func (h_ HeapObject) NewTextureWithDescriptor(descriptor TextureDescriptor) TextureObject { - rv := objc.Call[TextureObject](h_, objc.Sel("newTextureWithDescriptor:"), descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771281-setpurgeablestate?language=objc +func (h_ HeapObject) SetPurgeableState(state PurgeableState) PurgeableState { + rv := objc.Call[PurgeableState](h_, objc.Sel("setPurgeableState:"), state) return rv } -func (h_ HeapObject) HasNewTextureWithDescriptorOffset() bool { - return h_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:offset:")) +func (h_ HeapObject) HasDevice() bool { + return h_.RespondsToSelector(objc.Sel("device")) } -// Creates a texture at a specified offset on the heap. [Full Topic] +// The device object that created the heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/3152523-newtexturewithdescriptor?language=objc -func (h_ HeapObject) NewTextureWithDescriptorOffset(descriptor TextureDescriptor, offset uint) TextureObject { - rv := objc.Call[TextureObject](h_, objc.Sel("newTextureWithDescriptor:offset:"), descriptor, offset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771285-device?language=objc +func (h_ HeapObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](h_, objc.Sel("device")) return rv } -func (h_ HeapObject) HasHazardTrackingMode() bool { - return h_.RespondsToSelector(objc.Sel("hazardTrackingMode")) +func (h_ HeapObject) HasCpuCacheMode() bool { + return h_.RespondsToSelector(objc.Sel("cpuCacheMode")) } -// The heap's hazard tracking mode. [Full Topic] +// The heap's CPU cache mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/3131684-hazardtrackingmode?language=objc -func (h_ HeapObject) HazardTrackingMode() HazardTrackingMode { - rv := objc.Call[HazardTrackingMode](h_, objc.Sel("hazardTrackingMode")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771280-cpucachemode?language=objc +func (h_ HeapObject) CpuCacheMode() CPUCacheMode { + rv := objc.Call[CPUCacheMode](h_, objc.Sel("cpuCacheMode")) return rv } -func (h_ HeapObject) HasSetLabel() bool { - return h_.RespondsToSelector(objc.Sel("setLabel:")) +func (h_ HeapObject) HasStorageMode() bool { + return h_.RespondsToSelector(objc.Sel("storageMode")) } -// A string that identifies the heap. [Full Topic] +// The heap's storage mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771279-label?language=objc -func (h_ HeapObject) SetLabel(value string) { - objc.Call[objc.Void](h_, objc.Sel("setLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771282-storagemode?language=objc +func (h_ HeapObject) StorageMode() StorageMode { + rv := objc.Call[StorageMode](h_, objc.Sel("storageMode")) + return rv } -func (h_ HeapObject) HasLabel() bool { - return h_.RespondsToSelector(objc.Sel("label")) +func (h_ HeapObject) HasUsedSize() bool { + return h_.RespondsToSelector(objc.Sel("usedSize")) } -// A string that identifies the heap. [Full Topic] +// The size of all resources currently in the heap, in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771279-label?language=objc -func (h_ HeapObject) Label() string { - rv := objc.Call[string](h_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/2097557-usedsize?language=objc +func (h_ HeapObject) UsedSize() uint { + rv := objc.Call[uint](h_, objc.Sel("usedSize")) return rv } -func (h_ HeapObject) HasCurrentAllocatedSize() bool { - return h_.RespondsToSelector(objc.Sel("currentAllocatedSize")) +func (h_ HeapObject) HasResourceOptions() bool { + return h_.RespondsToSelector(objc.Sel("resourceOptions")) } -// The size, in bytes, of the current heap allocation. [Full Topic] +// The options for resources created by the heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/2915348-currentallocatedsize?language=objc -func (h_ HeapObject) CurrentAllocatedSize() uint { - rv := objc.Call[uint](h_, objc.Sel("currentAllocatedSize")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/3131685-resourceoptions?language=objc +func (h_ HeapObject) ResourceOptions() ResourceOptions { + rv := objc.Call[ResourceOptions](h_, objc.Sel("resourceOptions")) return rv } @@ -218,27 +199,26 @@ func (h_ HeapObject) Type() HeapType { return rv } -func (h_ HeapObject) HasUsedSize() bool { - return h_.RespondsToSelector(objc.Sel("usedSize")) +func (h_ HeapObject) HasSetLabel() bool { + return h_.RespondsToSelector(objc.Sel("setLabel:")) } -// The size of all resources currently in the heap, in bytes. [Full Topic] +// A string that identifies the heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/2097557-usedsize?language=objc -func (h_ HeapObject) UsedSize() uint { - rv := objc.Call[uint](h_, objc.Sel("usedSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771279-label?language=objc +func (h_ HeapObject) SetLabel(value string) { + objc.Call[objc.Void](h_, objc.Sel("setLabel:"), value) } -func (h_ HeapObject) HasCpuCacheMode() bool { - return h_.RespondsToSelector(objc.Sel("cpuCacheMode")) +func (h_ HeapObject) HasLabel() bool { + return h_.RespondsToSelector(objc.Sel("label")) } -// The heap's CPU cache mode. [Full Topic] +// A string that identifies the heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771280-cpucachemode?language=objc -func (h_ HeapObject) CpuCacheMode() CPUCacheMode { - rv := objc.Call[CPUCacheMode](h_, objc.Sel("cpuCacheMode")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771279-label?language=objc +func (h_ HeapObject) Label() string { + rv := objc.Call[string](h_, objc.Sel("label")) return rv } @@ -254,38 +234,26 @@ func (h_ HeapObject) Size() uint { return rv } -func (h_ HeapObject) HasResourceOptions() bool { - return h_.RespondsToSelector(objc.Sel("resourceOptions")) -} - -// The options for resources created by the heap. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/3131685-resourceoptions?language=objc -func (h_ HeapObject) ResourceOptions() ResourceOptions { - rv := objc.Call[ResourceOptions](h_, objc.Sel("resourceOptions")) - return rv -} - -func (h_ HeapObject) HasStorageMode() bool { - return h_.RespondsToSelector(objc.Sel("storageMode")) +func (h_ HeapObject) HasCurrentAllocatedSize() bool { + return h_.RespondsToSelector(objc.Sel("currentAllocatedSize")) } -// The heap's storage mode. [Full Topic] +// The size, in bytes, of the current heap allocation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771282-storagemode?language=objc -func (h_ HeapObject) StorageMode() StorageMode { - rv := objc.Call[StorageMode](h_, objc.Sel("storageMode")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/2915348-currentallocatedsize?language=objc +func (h_ HeapObject) CurrentAllocatedSize() uint { + rv := objc.Call[uint](h_, objc.Sel("currentAllocatedSize")) return rv } -func (h_ HeapObject) HasDevice() bool { - return h_.RespondsToSelector(objc.Sel("device")) +func (h_ HeapObject) HasHazardTrackingMode() bool { + return h_.RespondsToSelector(objc.Sel("hazardTrackingMode")) } -// The device object that created the heap. [Full Topic] +// The heap's hazard tracking mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771285-device?language=objc -func (h_ HeapObject) Device() DeviceObject { - rv := objc.Call[DeviceObject](h_, objc.Sel("device")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/3131684-hazardtrackingmode?language=objc +func (h_ HeapObject) HazardTrackingMode() HazardTrackingMode { + rv := objc.Call[HazardTrackingMode](h_, objc.Sel("hazardTrackingMode")) return rv } diff --git a/macos/metal/indirect_command_buffer_descriptor.gen.go b/macos/metal/indirect_command_buffer_descriptor.gen.go index 57a15269..ecc7163b 100644 --- a/macos/metal/indirect_command_buffer_descriptor.gen.go +++ b/macos/metal/indirect_command_buffer_descriptor.gen.go @@ -18,18 +18,18 @@ type _IndirectCommandBufferDescriptorClass struct { // An interface definition for the [IndirectCommandBufferDescriptor] class. type IIndirectCommandBufferDescriptor interface { objc.IObject - MaxFragmentBufferBindCount() uint - SetMaxFragmentBufferBindCount(value uint) - MaxKernelBufferBindCount() uint - SetMaxKernelBufferBindCount(value uint) + InheritBuffers() bool + SetInheritBuffers(value bool) MaxVertexBufferBindCount() uint SetMaxVertexBufferBindCount(value uint) InheritPipelineState() bool SetInheritPipelineState(value bool) + MaxFragmentBufferBindCount() uint + SetMaxFragmentBufferBindCount(value uint) CommandTypes() IndirectCommandType SetCommandTypes(value IndirectCommandType) - InheritBuffers() bool - SetInheritBuffers(value bool) + MaxKernelBufferBindCount() uint + SetMaxKernelBufferBindCount(value uint) } // A configuration you create to customize an indirect command buffer. [Full Topic] @@ -65,34 +65,19 @@ func (i_ IndirectCommandBufferDescriptor) Init() IndirectCommandBufferDescriptor return rv } -// The maximum number of buffers that you can set per command for the fragment stage. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2976449-maxfragmentbufferbindcount?language=objc -func (i_ IndirectCommandBufferDescriptor) MaxFragmentBufferBindCount() uint { - rv := objc.Call[uint](i_, objc.Sel("maxFragmentBufferBindCount")) - return rv -} - -// The maximum number of buffers that you can set per command for the fragment stage. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2976449-maxfragmentbufferbindcount?language=objc -func (i_ IndirectCommandBufferDescriptor) SetMaxFragmentBufferBindCount(value uint) { - objc.Call[objc.Void](i_, objc.Sel("setMaxFragmentBufferBindCount:"), value) -} - -// The maximum number of buffers that you can set per command for the compute kernel. [Full Topic] +// A Boolean value that determines where commands in the indirect command buffer get their buffer arguments from when you execute them. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2976450-maxkernelbufferbindcount?language=objc -func (i_ IndirectCommandBufferDescriptor) MaxKernelBufferBindCount() uint { - rv := objc.Call[uint](i_, objc.Sel("maxKernelBufferBindCount")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2967432-inheritbuffers?language=objc +func (i_ IndirectCommandBufferDescriptor) InheritBuffers() bool { + rv := objc.Call[bool](i_, objc.Sel("inheritBuffers")) return rv } -// The maximum number of buffers that you can set per command for the compute kernel. [Full Topic] +// A Boolean value that determines where commands in the indirect command buffer get their buffer arguments from when you execute them. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2976450-maxkernelbufferbindcount?language=objc -func (i_ IndirectCommandBufferDescriptor) SetMaxKernelBufferBindCount(value uint) { - objc.Call[objc.Void](i_, objc.Sel("setMaxKernelBufferBindCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2967432-inheritbuffers?language=objc +func (i_ IndirectCommandBufferDescriptor) SetInheritBuffers(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setInheritBuffers:"), value) } // The maximum number of buffers that you can set per command for the vertex stage. [Full Topic] @@ -125,6 +110,21 @@ func (i_ IndirectCommandBufferDescriptor) SetInheritPipelineState(value bool) { objc.Call[objc.Void](i_, objc.Sel("setInheritPipelineState:"), value) } +// The maximum number of buffers that you can set per command for the fragment stage. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2976449-maxfragmentbufferbindcount?language=objc +func (i_ IndirectCommandBufferDescriptor) MaxFragmentBufferBindCount() uint { + rv := objc.Call[uint](i_, objc.Sel("maxFragmentBufferBindCount")) + return rv +} + +// The maximum number of buffers that you can set per command for the fragment stage. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2976449-maxfragmentbufferbindcount?language=objc +func (i_ IndirectCommandBufferDescriptor) SetMaxFragmentBufferBindCount(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setMaxFragmentBufferBindCount:"), value) +} + // The set of command types that you can encode into the indirect command buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2966582-commandtypes?language=objc @@ -140,17 +140,17 @@ func (i_ IndirectCommandBufferDescriptor) SetCommandTypes(value IndirectCommandT objc.Call[objc.Void](i_, objc.Sel("setCommandTypes:"), value) } -// A Boolean value that determines where commands in the indirect command buffer get their buffer arguments from when you execute them. [Full Topic] +// The maximum number of buffers that you can set per command for the compute kernel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2967432-inheritbuffers?language=objc -func (i_ IndirectCommandBufferDescriptor) InheritBuffers() bool { - rv := objc.Call[bool](i_, objc.Sel("inheritBuffers")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2976450-maxkernelbufferbindcount?language=objc +func (i_ IndirectCommandBufferDescriptor) MaxKernelBufferBindCount() uint { + rv := objc.Call[uint](i_, objc.Sel("maxKernelBufferBindCount")) return rv } -// A Boolean value that determines where commands in the indirect command buffer get their buffer arguments from when you execute them. [Full Topic] +// The maximum number of buffers that you can set per command for the compute kernel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2967432-inheritbuffers?language=objc -func (i_ IndirectCommandBufferDescriptor) SetInheritBuffers(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setInheritBuffers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbufferdescriptor/2976450-maxkernelbufferbindcount?language=objc +func (i_ IndirectCommandBufferDescriptor) SetMaxKernelBufferBindCount(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setMaxKernelBufferBindCount:"), value) } diff --git a/macos/metal/indirect_command_buffer_protocol.gen.go b/macos/metal/indirect_command_buffer_protocol.gen.go index 4c3c0b56..1285c0bb 100644 --- a/macos/metal/indirect_command_buffer_protocol.gen.go +++ b/macos/metal/indirect_command_buffer_protocol.gen.go @@ -11,10 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbuffer?language=objc type PIndirectCommandBuffer interface { - // optional - ResetWithRange(range_ foundation.Range) - HasResetWithRange() bool - // optional IndirectComputeCommandAtIndex(commandIndex uint) IndirectComputeCommandObject HasIndirectComputeCommandAtIndex() bool @@ -23,6 +19,10 @@ type PIndirectCommandBuffer interface { IndirectRenderCommandAtIndex(commandIndex uint) IndirectRenderCommandObject HasIndirectRenderCommandAtIndex() bool + // optional + ResetWithRange(range_ foundation.Range) + HasResetWithRange() bool + // optional Size() uint HasSize() bool @@ -36,17 +36,6 @@ type IndirectCommandBufferObject struct { objc.Object } -func (i_ IndirectCommandBufferObject) HasResetWithRange() bool { - return i_.RespondsToSelector(objc.Sel("resetWithRange:")) -} - -// Resets a range of commands to their default state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbuffer/3012870-resetwithrange?language=objc -func (i_ IndirectCommandBufferObject) ResetWithRange(range_ foundation.Range) { - objc.Call[objc.Void](i_, objc.Sel("resetWithRange:"), range_) -} - func (i_ IndirectCommandBufferObject) HasIndirectComputeCommandAtIndex() bool { return i_.RespondsToSelector(objc.Sel("indirectComputeCommandAtIndex:")) } @@ -71,6 +60,17 @@ func (i_ IndirectCommandBufferObject) IndirectRenderCommandAtIndex(commandIndex return rv } +func (i_ IndirectCommandBufferObject) HasResetWithRange() bool { + return i_.RespondsToSelector(objc.Sel("resetWithRange:")) +} + +// Resets a range of commands to their default state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbuffer/3012870-resetwithrange?language=objc +func (i_ IndirectCommandBufferObject) ResetWithRange(range_ foundation.Range) { + objc.Call[objc.Void](i_, objc.Sel("resetWithRange:"), range_) +} + func (i_ IndirectCommandBufferObject) HasSize() bool { return i_.RespondsToSelector(objc.Sel("size")) } diff --git a/macos/metal/indirect_compute_command_protocol.gen.go b/macos/metal/indirect_compute_command_protocol.gen.go index 53878739..e57c3ce7 100644 --- a/macos/metal/indirect_compute_command_protocol.gen.go +++ b/macos/metal/indirect_compute_command_protocol.gen.go @@ -11,36 +11,28 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand?language=objc type PIndirectComputeCommand interface { // optional - SetStageInRegion(region Region) - HasSetStageInRegion() bool + SetThreadgroupMemoryLengthAtIndex(length uint, index uint) + HasSetThreadgroupMemoryLengthAtIndex() bool // optional - ConcurrentDispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) - HasConcurrentDispatchThreadsThreadsPerThreadgroup() bool + SetComputePipelineState(pipelineState ComputePipelineStateObject) + HasSetComputePipelineState() bool // optional ConcurrentDispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid Size, threadsPerThreadgroup Size) HasConcurrentDispatchThreadgroupsThreadsPerThreadgroup() bool // optional - Reset() - HasReset() bool - - // optional - SetImageblockWidthHeight(width uint, height uint) - HasSetImageblockWidthHeight() bool - - // optional - SetComputePipelineState(pipelineState ComputePipelineStateObject) - HasSetComputePipelineState() bool + SetKernelBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) + HasSetKernelBufferOffsetAtIndex() bool // optional - SetThreadgroupMemoryLengthAtIndex(length uint, index uint) - HasSetThreadgroupMemoryLengthAtIndex() bool + SetStageInRegion(region Region) + HasSetStageInRegion() bool // optional - SetKernelBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) - HasSetKernelBufferOffsetAtIndex() bool + ConcurrentDispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) + HasConcurrentDispatchThreadsThreadsPerThreadgroup() bool // optional ClearBarrier() @@ -49,6 +41,14 @@ type PIndirectComputeCommand interface { // optional SetBarrier() HasSetBarrier() bool + + // optional + SetImageblockWidthHeight(width uint, height uint) + HasSetImageblockWidthHeight() bool + + // optional + Reset() + HasReset() bool } // ensure impl type implements protocol interface @@ -59,26 +59,27 @@ type IndirectComputeCommandObject struct { objc.Object } -func (i_ IndirectComputeCommandObject) HasSetStageInRegion() bool { - return i_.RespondsToSelector(objc.Sel("setStageInRegion:")) +func (i_ IndirectComputeCommandObject) HasSetThreadgroupMemoryLengthAtIndex() bool { + return i_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:atIndex:")) } -// Sets the region of the stage-in attributes to apply to the compute kernel. [Full Topic] +// Sets the size of a block of threadgroup memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2966611-setstageinregion?language=objc -func (i_ IndirectComputeCommandObject) SetStageInRegion(region Region) { - objc.Call[objc.Void](i_, objc.Sel("setStageInRegion:"), region) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2966612-setthreadgroupmemorylength?language=objc +func (i_ IndirectComputeCommandObject) SetThreadgroupMemoryLengthAtIndex(length uint, index uint) { + objc.Call[objc.Void](i_, objc.Sel("setThreadgroupMemoryLength:atIndex:"), length, index) } -func (i_ IndirectComputeCommandObject) HasConcurrentDispatchThreadsThreadsPerThreadgroup() bool { - return i_.RespondsToSelector(objc.Sel("concurrentDispatchThreads:threadsPerThreadgroup:")) +func (i_ IndirectComputeCommandObject) HasSetComputePipelineState() bool { + return i_.RespondsToSelector(objc.Sel("setComputePipelineState:")) } -// Encodes a compute command using an arbitrarily sized grid. [Full Topic] +// Sets the command’s compute pipeline state object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/3043398-concurrentdispatchthreads?language=objc -func (i_ IndirectComputeCommandObject) ConcurrentDispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) { - objc.Call[objc.Void](i_, objc.Sel("concurrentDispatchThreads:threadsPerThreadgroup:"), threadsPerGrid, threadsPerThreadgroup) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2966609-setcomputepipelinestate?language=objc +func (i_ IndirectComputeCommandObject) SetComputePipelineState(pipelineState ComputePipelineStateObject) { + po0 := objc.WrapAsProtocol("MTLComputePipelineState", pipelineState) + objc.Call[objc.Void](i_, objc.Sel("setComputePipelineState:"), po0) } func (i_ IndirectComputeCommandObject) HasConcurrentDispatchThreadgroupsThreadsPerThreadgroup() bool { @@ -92,61 +93,38 @@ func (i_ IndirectComputeCommandObject) ConcurrentDispatchThreadgroupsThreadsPerT objc.Call[objc.Void](i_, objc.Sel("concurrentDispatchThreadgroups:threadsPerThreadgroup:"), threadgroupsPerGrid, threadsPerThreadgroup) } -func (i_ IndirectComputeCommandObject) HasReset() bool { - return i_.RespondsToSelector(objc.Sel("reset")) -} - -// Resets the command to its default state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2981029-reset?language=objc -func (i_ IndirectComputeCommandObject) Reset() { - objc.Call[objc.Void](i_, objc.Sel("reset")) -} - -func (i_ IndirectComputeCommandObject) HasSetImageblockWidthHeight() bool { - return i_.RespondsToSelector(objc.Sel("setImageblockWidth:height:")) -} - -// Sets the size, in pixels, of the imageblock. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/3172768-setimageblockwidth?language=objc -func (i_ IndirectComputeCommandObject) SetImageblockWidthHeight(width uint, height uint) { - objc.Call[objc.Void](i_, objc.Sel("setImageblockWidth:height:"), width, height) -} - -func (i_ IndirectComputeCommandObject) HasSetComputePipelineState() bool { - return i_.RespondsToSelector(objc.Sel("setComputePipelineState:")) +func (i_ IndirectComputeCommandObject) HasSetKernelBufferOffsetAtIndex() bool { + return i_.RespondsToSelector(objc.Sel("setKernelBuffer:offset:atIndex:")) } -// Sets the command’s compute pipeline state object. [Full Topic] +// Sets a buffer for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2966609-setcomputepipelinestate?language=objc -func (i_ IndirectComputeCommandObject) SetComputePipelineState(pipelineState ComputePipelineStateObject) { - po0 := objc.WrapAsProtocol("MTLComputePipelineState", pipelineState) - objc.Call[objc.Void](i_, objc.Sel("setComputePipelineState:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2976452-setkernelbuffer?language=objc +func (i_ IndirectComputeCommandObject) SetKernelBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](i_, objc.Sel("setKernelBuffer:offset:atIndex:"), po0, offset, index) } -func (i_ IndirectComputeCommandObject) HasSetThreadgroupMemoryLengthAtIndex() bool { - return i_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:atIndex:")) +func (i_ IndirectComputeCommandObject) HasSetStageInRegion() bool { + return i_.RespondsToSelector(objc.Sel("setStageInRegion:")) } -// Sets the size of a block of threadgroup memory. [Full Topic] +// Sets the region of the stage-in attributes to apply to the compute kernel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2966612-setthreadgroupmemorylength?language=objc -func (i_ IndirectComputeCommandObject) SetThreadgroupMemoryLengthAtIndex(length uint, index uint) { - objc.Call[objc.Void](i_, objc.Sel("setThreadgroupMemoryLength:atIndex:"), length, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2966611-setstageinregion?language=objc +func (i_ IndirectComputeCommandObject) SetStageInRegion(region Region) { + objc.Call[objc.Void](i_, objc.Sel("setStageInRegion:"), region) } -func (i_ IndirectComputeCommandObject) HasSetKernelBufferOffsetAtIndex() bool { - return i_.RespondsToSelector(objc.Sel("setKernelBuffer:offset:atIndex:")) +func (i_ IndirectComputeCommandObject) HasConcurrentDispatchThreadsThreadsPerThreadgroup() bool { + return i_.RespondsToSelector(objc.Sel("concurrentDispatchThreads:threadsPerThreadgroup:")) } -// Sets a buffer for the compute function. [Full Topic] +// Encodes a compute command using an arbitrarily sized grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2976452-setkernelbuffer?language=objc -func (i_ IndirectComputeCommandObject) SetKernelBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](i_, objc.Sel("setKernelBuffer:offset:atIndex:"), po0, offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/3043398-concurrentdispatchthreads?language=objc +func (i_ IndirectComputeCommandObject) ConcurrentDispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) { + objc.Call[objc.Void](i_, objc.Sel("concurrentDispatchThreads:threadsPerThreadgroup:"), threadsPerGrid, threadsPerThreadgroup) } func (i_ IndirectComputeCommandObject) HasClearBarrier() bool { @@ -170,3 +148,25 @@ func (i_ IndirectComputeCommandObject) HasSetBarrier() bool { func (i_ IndirectComputeCommandObject) SetBarrier() { objc.Call[objc.Void](i_, objc.Sel("setBarrier")) } + +func (i_ IndirectComputeCommandObject) HasSetImageblockWidthHeight() bool { + return i_.RespondsToSelector(objc.Sel("setImageblockWidth:height:")) +} + +// Sets the size, in pixels, of the imageblock. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/3172768-setimageblockwidth?language=objc +func (i_ IndirectComputeCommandObject) SetImageblockWidthHeight(width uint, height uint) { + objc.Call[objc.Void](i_, objc.Sel("setImageblockWidth:height:"), width, height) +} + +func (i_ IndirectComputeCommandObject) HasReset() bool { + return i_.RespondsToSelector(objc.Sel("reset")) +} + +// Resets the command to its default state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2981029-reset?language=objc +func (i_ IndirectComputeCommandObject) Reset() { + objc.Call[objc.Void](i_, objc.Sel("reset")) +} diff --git a/macos/metal/indirect_render_command_protocol.gen.go b/macos/metal/indirect_render_command_protocol.gen.go index d1d51416..d3efa5f8 100644 --- a/macos/metal/indirect_render_command_protocol.gen.go +++ b/macos/metal/indirect_render_command_protocol.gen.go @@ -15,8 +15,8 @@ type PIndirectRenderCommand interface { HasDrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride() bool // optional - Reset() - HasReset() bool + SetVertexBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) + HasSetVertexBufferOffsetAtIndex() bool // optional DrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, instanceCount uint, baseInstance uint, buffer BufferObject, offset uint, instanceStride uint) @@ -27,20 +27,20 @@ type PIndirectRenderCommand interface { HasDrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance() bool // optional - DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint, baseVertex int, baseInstance uint) - HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance() bool + SetFragmentBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) + HasSetFragmentBufferOffsetAtIndex() bool // optional SetRenderPipelineState(pipelineState RenderPipelineStateObject) HasSetRenderPipelineState() bool // optional - SetVertexBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) - HasSetVertexBufferOffsetAtIndex() bool + Reset() + HasReset() bool // optional - SetFragmentBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) - HasSetFragmentBufferOffsetAtIndex() bool + DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint, baseVertex int, baseInstance uint) + HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance() bool } // ensure impl type implements protocol interface @@ -65,15 +65,16 @@ func (i_ IndirectRenderCommandObject) DrawIndexedPatchesPatchStartPatchCountPatc objc.Call[objc.Void](i_, objc.Sel("drawIndexedPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:instanceCount:baseInstance:tessellationFactorBuffer:tessellationFactorBufferOffset:tessellationFactorBufferInstanceStride:"), numberOfPatchControlPoints, patchStart, patchCount, po3, patchIndexBufferOffset, po5, controlPointIndexBufferOffset, instanceCount, baseInstance, po9, offset, instanceStride) } -func (i_ IndirectRenderCommandObject) HasReset() bool { - return i_.RespondsToSelector(objc.Sel("reset")) +func (i_ IndirectRenderCommandObject) HasSetVertexBufferOffsetAtIndex() bool { + return i_.RespondsToSelector(objc.Sel("setVertexBuffer:offset:atIndex:")) } -// Resets the command to its default state. [Full Topic] +// Sets a vertex buffer argument for the command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2981030-reset?language=objc -func (i_ IndirectRenderCommandObject) Reset() { - objc.Call[objc.Void](i_, objc.Sel("reset")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2967438-setvertexbuffer?language=objc +func (i_ IndirectRenderCommandObject) SetVertexBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](i_, objc.Sel("setVertexBuffer:offset:atIndex:"), po0, offset, index) } func (i_ IndirectRenderCommandObject) HasDrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride() bool { @@ -100,16 +101,16 @@ func (i_ IndirectRenderCommandObject) DrawPrimitivesVertexStartVertexCountInstan objc.Call[objc.Void](i_, objc.Sel("drawPrimitives:vertexStart:vertexCount:instanceCount:baseInstance:"), primitiveType, vertexStart, vertexCount, instanceCount, baseInstance) } -func (i_ IndirectRenderCommandObject) HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance() bool { - return i_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance:")) +func (i_ IndirectRenderCommandObject) HasSetFragmentBufferOffsetAtIndex() bool { + return i_.RespondsToSelector(objc.Sel("setFragmentBuffer:offset:atIndex:")) } -// Encodes a command to render a number of instances of primitives using an index list specified in a buffer, starting from the base vertex of the base instance. [Full Topic] +// Sets a fragment buffer argument for the command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2966618-drawindexedprimitives?language=objc -func (i_ IndirectRenderCommandObject) DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint, baseVertex int, baseInstance uint) { - po3 := objc.WrapAsProtocol("MTLBuffer", indexBuffer) - objc.Call[objc.Void](i_, objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance:"), primitiveType, indexCount, indexType, po3, indexBufferOffset, instanceCount, baseVertex, baseInstance) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2967437-setfragmentbuffer?language=objc +func (i_ IndirectRenderCommandObject) SetFragmentBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](i_, objc.Sel("setFragmentBuffer:offset:atIndex:"), po0, offset, index) } func (i_ IndirectRenderCommandObject) HasSetRenderPipelineState() bool { @@ -124,26 +125,25 @@ func (i_ IndirectRenderCommandObject) SetRenderPipelineState(pipelineState Rende objc.Call[objc.Void](i_, objc.Sel("setRenderPipelineState:"), po0) } -func (i_ IndirectRenderCommandObject) HasSetVertexBufferOffsetAtIndex() bool { - return i_.RespondsToSelector(objc.Sel("setVertexBuffer:offset:atIndex:")) +func (i_ IndirectRenderCommandObject) HasReset() bool { + return i_.RespondsToSelector(objc.Sel("reset")) } -// Sets a vertex buffer argument for the command. [Full Topic] +// Resets the command to its default state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2967438-setvertexbuffer?language=objc -func (i_ IndirectRenderCommandObject) SetVertexBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](i_, objc.Sel("setVertexBuffer:offset:atIndex:"), po0, offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2981030-reset?language=objc +func (i_ IndirectRenderCommandObject) Reset() { + objc.Call[objc.Void](i_, objc.Sel("reset")) } -func (i_ IndirectRenderCommandObject) HasSetFragmentBufferOffsetAtIndex() bool { - return i_.RespondsToSelector(objc.Sel("setFragmentBuffer:offset:atIndex:")) +func (i_ IndirectRenderCommandObject) HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance() bool { + return i_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance:")) } -// Sets a fragment buffer argument for the command. [Full Topic] +// Encodes a command to render a number of instances of primitives using an index list specified in a buffer, starting from the base vertex of the base instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2967437-setfragmentbuffer?language=objc -func (i_ IndirectRenderCommandObject) SetFragmentBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](i_, objc.Sel("setFragmentBuffer:offset:atIndex:"), po0, offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2966618-drawindexedprimitives?language=objc +func (i_ IndirectRenderCommandObject) DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint, baseVertex int, baseInstance uint) { + po3 := objc.WrapAsProtocol("MTLBuffer", indexBuffer) + objc.Call[objc.Void](i_, objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance:"), primitiveType, indexCount, indexType, po3, indexBufferOffset, instanceCount, baseVertex, baseInstance) } diff --git a/macos/metal/instance_acceleration_structure_descriptor.gen.go b/macos/metal/instance_acceleration_structure_descriptor.gen.go index 29c668bd..06bb726a 100644 --- a/macos/metal/instance_acceleration_structure_descriptor.gen.go +++ b/macos/metal/instance_acceleration_structure_descriptor.gen.go @@ -18,26 +18,26 @@ type _InstanceAccelerationStructureDescriptorClass struct { // An interface definition for the [InstanceAccelerationStructureDescriptor] class. type IInstanceAccelerationStructureDescriptor interface { IAccelerationStructureDescriptor - InstancedAccelerationStructures() []AccelerationStructureObject - SetInstancedAccelerationStructures(value []PAccelerationStructure) - MotionTransformCount() uint - SetMotionTransformCount(value uint) - InstanceDescriptorBufferOffset() uint - SetInstanceDescriptorBufferOffset(value uint) - MotionTransformBuffer() BufferObject - SetMotionTransformBuffer(value PBuffer) - SetMotionTransformBufferObject(valueObject objc.IObject) InstanceDescriptorBuffer() BufferObject SetInstanceDescriptorBuffer(value PBuffer) SetInstanceDescriptorBufferObject(valueObject objc.IObject) + MotionTransformBuffer() BufferObject + SetMotionTransformBuffer(value PBuffer) + SetMotionTransformBufferObject(valueObject objc.IObject) + InstanceDescriptorType() AccelerationStructureInstanceDescriptorType + SetInstanceDescriptorType(value AccelerationStructureInstanceDescriptorType) + InstanceDescriptorBufferOffset() uint + SetInstanceDescriptorBufferOffset(value uint) + InstancedAccelerationStructures() []AccelerationStructureObject + SetInstancedAccelerationStructures(value []PAccelerationStructure) InstanceDescriptorStride() uint SetInstanceDescriptorStride(value uint) - MotionTransformBufferOffset() uint - SetMotionTransformBufferOffset(value uint) InstanceCount() uint SetInstanceCount(value uint) - InstanceDescriptorType() AccelerationStructureInstanceDescriptorType - SetInstanceDescriptorType(value AccelerationStructureInstanceDescriptorType) + MotionTransformCount() uint + SetMotionTransformCount(value uint) + MotionTransformBufferOffset() uint + SetMotionTransformBufferOffset(value uint) } // A description of an acceleration structure that derives from instances of primitive acceleration structures. [Full Topic] @@ -85,49 +85,27 @@ func (i_ InstanceAccelerationStructureDescriptor) Init() InstanceAccelerationStr return rv } -// The bottom-level acceleration structures that instances use in the instance acceleration structure . [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553889-instancedaccelerationstructures?language=objc -func (i_ InstanceAccelerationStructureDescriptor) InstancedAccelerationStructures() []AccelerationStructureObject { - rv := objc.Call[[]AccelerationStructureObject](i_, objc.Sel("instancedAccelerationStructures")) - return rv -} - -// The bottom-level acceleration structures that instances use in the instance acceleration structure . [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553889-instancedaccelerationstructures?language=objc -func (i_ InstanceAccelerationStructureDescriptor) SetInstancedAccelerationStructures(value []PAccelerationStructure) { - objc.Call[objc.Void](i_, objc.Sel("setInstancedAccelerationStructures:"), value) -} - -// The number of motion transforms in the motion transform buffer. [Full Topic] +// A buffer that contains descriptions of each instance in the acceleration structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750501-motiontransformcount?language=objc -func (i_ InstanceAccelerationStructureDescriptor) MotionTransformCount() uint { - rv := objc.Call[uint](i_, objc.Sel("motionTransformCount")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553886-instancedescriptorbuffer?language=objc +func (i_ InstanceAccelerationStructureDescriptor) InstanceDescriptorBuffer() BufferObject { + rv := objc.Call[BufferObject](i_, objc.Sel("instanceDescriptorBuffer")) return rv } -// The number of motion transforms in the motion transform buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750501-motiontransformcount?language=objc -func (i_ InstanceAccelerationStructureDescriptor) SetMotionTransformCount(value uint) { - objc.Call[objc.Void](i_, objc.Sel("setMotionTransformCount:"), value) -} - -// The offset, in bytes, to the descripton of the first instance. [Full Topic] +// A buffer that contains descriptions of each instance in the acceleration structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553887-instancedescriptorbufferoffset?language=objc -func (i_ InstanceAccelerationStructureDescriptor) InstanceDescriptorBufferOffset() uint { - rv := objc.Call[uint](i_, objc.Sel("instanceDescriptorBufferOffset")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553886-instancedescriptorbuffer?language=objc +func (i_ InstanceAccelerationStructureDescriptor) SetInstanceDescriptorBuffer(value PBuffer) { + po0 := objc.WrapAsProtocol("MTLBuffer", value) + objc.Call[objc.Void](i_, objc.Sel("setInstanceDescriptorBuffer:"), po0) } -// The offset, in bytes, to the descripton of the first instance. [Full Topic] +// A buffer that contains descriptions of each instance in the acceleration structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553887-instancedescriptorbufferoffset?language=objc -func (i_ InstanceAccelerationStructureDescriptor) SetInstanceDescriptorBufferOffset(value uint) { - objc.Call[objc.Void](i_, objc.Sel("setInstanceDescriptorBufferOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553886-instancedescriptorbuffer?language=objc +func (i_ InstanceAccelerationStructureDescriptor) SetInstanceDescriptorBufferObject(valueObject objc.IObject) { + objc.Call[objc.Void](i_, objc.Sel("setInstanceDescriptorBuffer:"), valueObject) } // A buffer that contains descriptions of each motion transform in the acceleration structure. [Full Topic] @@ -153,27 +131,49 @@ func (i_ InstanceAccelerationStructureDescriptor) SetMotionTransformBufferObject objc.Call[objc.Void](i_, objc.Sel("setMotionTransformBuffer:"), valueObject) } -// A buffer that contains descriptions of each instance in the acceleration structure. [Full Topic] +// The format of the instance data in the descriptor buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553886-instancedescriptorbuffer?language=objc -func (i_ InstanceAccelerationStructureDescriptor) InstanceDescriptorBuffer() BufferObject { - rv := objc.Call[BufferObject](i_, objc.Sel("instanceDescriptorBuffer")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750498-instancedescriptortype?language=objc +func (i_ InstanceAccelerationStructureDescriptor) InstanceDescriptorType() AccelerationStructureInstanceDescriptorType { + rv := objc.Call[AccelerationStructureInstanceDescriptorType](i_, objc.Sel("instanceDescriptorType")) return rv } -// A buffer that contains descriptions of each instance in the acceleration structure. [Full Topic] +// The format of the instance data in the descriptor buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553886-instancedescriptorbuffer?language=objc -func (i_ InstanceAccelerationStructureDescriptor) SetInstanceDescriptorBuffer(value PBuffer) { - po0 := objc.WrapAsProtocol("MTLBuffer", value) - objc.Call[objc.Void](i_, objc.Sel("setInstanceDescriptorBuffer:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750498-instancedescriptortype?language=objc +func (i_ InstanceAccelerationStructureDescriptor) SetInstanceDescriptorType(value AccelerationStructureInstanceDescriptorType) { + objc.Call[objc.Void](i_, objc.Sel("setInstanceDescriptorType:"), value) } -// A buffer that contains descriptions of each instance in the acceleration structure. [Full Topic] +// The offset, in bytes, to the descripton of the first instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553886-instancedescriptorbuffer?language=objc -func (i_ InstanceAccelerationStructureDescriptor) SetInstanceDescriptorBufferObject(valueObject objc.IObject) { - objc.Call[objc.Void](i_, objc.Sel("setInstanceDescriptorBuffer:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553887-instancedescriptorbufferoffset?language=objc +func (i_ InstanceAccelerationStructureDescriptor) InstanceDescriptorBufferOffset() uint { + rv := objc.Call[uint](i_, objc.Sel("instanceDescriptorBufferOffset")) + return rv +} + +// The offset, in bytes, to the descripton of the first instance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553887-instancedescriptorbufferoffset?language=objc +func (i_ InstanceAccelerationStructureDescriptor) SetInstanceDescriptorBufferOffset(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setInstanceDescriptorBufferOffset:"), value) +} + +// The bottom-level acceleration structures that instances use in the instance acceleration structure . [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553889-instancedaccelerationstructures?language=objc +func (i_ InstanceAccelerationStructureDescriptor) InstancedAccelerationStructures() []AccelerationStructureObject { + rv := objc.Call[[]AccelerationStructureObject](i_, objc.Sel("instancedAccelerationStructures")) + return rv +} + +// The bottom-level acceleration structures that instances use in the instance acceleration structure . [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553889-instancedaccelerationstructures?language=objc +func (i_ InstanceAccelerationStructureDescriptor) SetInstancedAccelerationStructures(value []PAccelerationStructure) { + objc.Call[objc.Void](i_, objc.Sel("setInstancedAccelerationStructures:"), value) } // The stride, in bytes, between instance descriptions. [Full Topic] @@ -191,21 +191,6 @@ func (i_ InstanceAccelerationStructureDescriptor) SetInstanceDescriptorStride(va objc.Call[objc.Void](i_, objc.Sel("setInstanceDescriptorStride:"), value) } -// The offset, in bytes, to the descripton of the first motion transform. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750500-motiontransformbufferoffset?language=objc -func (i_ InstanceAccelerationStructureDescriptor) MotionTransformBufferOffset() uint { - rv := objc.Call[uint](i_, objc.Sel("motionTransformBufferOffset")) - return rv -} - -// The offset, in bytes, to the descripton of the first motion transform. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750500-motiontransformbufferoffset?language=objc -func (i_ InstanceAccelerationStructureDescriptor) SetMotionTransformBufferOffset(value uint) { - objc.Call[objc.Void](i_, objc.Sel("setMotionTransformBufferOffset:"), value) -} - // The number of instances in the instance descriptor buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553885-instancecount?language=objc @@ -221,17 +206,32 @@ func (i_ InstanceAccelerationStructureDescriptor) SetInstanceCount(value uint) { objc.Call[objc.Void](i_, objc.Sel("setInstanceCount:"), value) } -// The format of the instance data in the descriptor buffer. [Full Topic] +// The number of motion transforms in the motion transform buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750498-instancedescriptortype?language=objc -func (i_ InstanceAccelerationStructureDescriptor) InstanceDescriptorType() AccelerationStructureInstanceDescriptorType { - rv := objc.Call[AccelerationStructureInstanceDescriptorType](i_, objc.Sel("instanceDescriptorType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750501-motiontransformcount?language=objc +func (i_ InstanceAccelerationStructureDescriptor) MotionTransformCount() uint { + rv := objc.Call[uint](i_, objc.Sel("motionTransformCount")) return rv } -// The format of the instance data in the descriptor buffer. [Full Topic] +// The number of motion transforms in the motion transform buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750498-instancedescriptortype?language=objc -func (i_ InstanceAccelerationStructureDescriptor) SetInstanceDescriptorType(value AccelerationStructureInstanceDescriptorType) { - objc.Call[objc.Void](i_, objc.Sel("setInstanceDescriptorType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750501-motiontransformcount?language=objc +func (i_ InstanceAccelerationStructureDescriptor) SetMotionTransformCount(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setMotionTransformCount:"), value) +} + +// The offset, in bytes, to the descripton of the first motion transform. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750500-motiontransformbufferoffset?language=objc +func (i_ InstanceAccelerationStructureDescriptor) MotionTransformBufferOffset() uint { + rv := objc.Call[uint](i_, objc.Sel("motionTransformBufferOffset")) + return rv +} + +// The offset, in bytes, to the descripton of the first motion transform. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750500-motiontransformbufferoffset?language=objc +func (i_ InstanceAccelerationStructureDescriptor) SetMotionTransformBufferOffset(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setMotionTransformBufferOffset:"), value) } diff --git a/macos/metal/intersection_function_table_protocol.gen.go b/macos/metal/intersection_function_table_protocol.gen.go index 03bc2af5..dcb21c9b 100644 --- a/macos/metal/intersection_function_table_protocol.gen.go +++ b/macos/metal/intersection_function_table_protocol.gen.go @@ -13,37 +13,33 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable?language=objc type PIntersectionFunctionTable interface { - // optional - SetBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) - HasSetBufferOffsetAtIndex() bool - - // optional - SetVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) - HasSetVisibleFunctionTableAtBufferIndex() bool - - // optional - SetFunctionsWithRange(functions unsafe.Pointer, range_ foundation.Range) - HasSetFunctionsWithRange() bool - // optional SetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex(signature IntersectionFunctionSignature, index uint) HasSetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex() bool - // optional - SetOpaqueTriangleIntersectionFunctionWithSignatureWithRange(signature IntersectionFunctionSignature, range_ foundation.Range) - HasSetOpaqueTriangleIntersectionFunctionWithSignatureWithRange() bool - // optional SetBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) HasSetBuffersOffsetsWithRange() bool // optional - SetVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, bufferRange foundation.Range) - HasSetVisibleFunctionTablesWithBufferRange() bool + SetVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) + HasSetVisibleFunctionTableAtBufferIndex() bool // optional SetFunctionAtIndex(function FunctionHandleObject, index uint) HasSetFunctionAtIndex() bool + + // optional + SetVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, bufferRange foundation.Range) + HasSetVisibleFunctionTablesWithBufferRange() bool + + // optional + SetFunctionsWithRange(functions unsafe.Pointer, range_ foundation.Range) + HasSetFunctionsWithRange() bool + + // optional + SetBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) + HasSetBufferOffsetAtIndex() bool } // ensure impl type implements protocol interface @@ -54,42 +50,6 @@ type IntersectionFunctionTableObject struct { objc.Object } -func (i_ IntersectionFunctionTableObject) HasSetBufferOffsetAtIndex() bool { - return i_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) -} - -// Sets a buffer for the intersection functions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3578279-setbuffer?language=objc -func (i_ IntersectionFunctionTableObject) SetBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](i_, objc.Sel("setBuffer:offset:atIndex:"), po0, offset, index) -} - -func (i_ IntersectionFunctionTableObject) HasSetVisibleFunctionTableAtBufferIndex() bool { - return i_.RespondsToSelector(objc.Sel("setVisibleFunctionTable:atBufferIndex:")) -} - -// Sets a visible function table for the intersection functions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3674230-setvisiblefunctiontable?language=objc -func (i_ IntersectionFunctionTableObject) SetVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTable) - objc.Call[objc.Void](i_, objc.Sel("setVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) -} - -func (i_ IntersectionFunctionTableObject) HasSetFunctionsWithRange() bool { - return i_.RespondsToSelector(objc.Sel("setFunctions:withRange:")) -} - -// Sets a range of entries in the table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3566555-setfunctions?language=objc -func (i_ IntersectionFunctionTableObject) SetFunctionsWithRange(functions unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLFunctionHandle", functions) - objc.Call[objc.Void](i_, objc.Sel("setFunctions:withRange:"), po0, range_) -} - func (i_ IntersectionFunctionTableObject) HasSetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex() bool { return i_.RespondsToSelector(objc.Sel("setOpaqueTriangleIntersectionFunctionWithSignature:atIndex:")) } @@ -101,17 +61,6 @@ func (i_ IntersectionFunctionTableObject) SetOpaqueTriangleIntersectionFunctionW objc.Call[objc.Void](i_, objc.Sel("setOpaqueTriangleIntersectionFunctionWithSignature:atIndex:"), signature, index) } -func (i_ IntersectionFunctionTableObject) HasSetOpaqueTriangleIntersectionFunctionWithSignatureWithRange() bool { - return i_.RespondsToSelector(objc.Sel("setOpaqueTriangleIntersectionFunctionWithSignature:withRange:")) -} - -// Sets a range of entries in the intersection table to point to a system-defined opaque triangle intersection function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3667485-setopaquetriangleintersectionfun?language=objc -func (i_ IntersectionFunctionTableObject) SetOpaqueTriangleIntersectionFunctionWithSignatureWithRange(signature IntersectionFunctionSignature, range_ foundation.Range) { - objc.Call[objc.Void](i_, objc.Sel("setOpaqueTriangleIntersectionFunctionWithSignature:withRange:"), signature, range_) -} - func (i_ IntersectionFunctionTableObject) HasSetBuffersOffsetsWithRange() bool { return i_.RespondsToSelector(objc.Sel("setBuffers:offsets:withRange:")) } @@ -124,16 +73,16 @@ func (i_ IntersectionFunctionTableObject) SetBuffersOffsetsWithRange(buffers uns objc.Call[objc.Void](i_, objc.Sel("setBuffers:offsets:withRange:"), po0, offsets, range_) } -func (i_ IntersectionFunctionTableObject) HasSetVisibleFunctionTablesWithBufferRange() bool { - return i_.RespondsToSelector(objc.Sel("setVisibleFunctionTables:withBufferRange:")) +func (i_ IntersectionFunctionTableObject) HasSetVisibleFunctionTableAtBufferIndex() bool { + return i_.RespondsToSelector(objc.Sel("setVisibleFunctionTable:atBufferIndex:")) } -// Sets a range of visible function tables for the intersection functions. [Full Topic] +// Sets a visible function table for the intersection functions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3674231-setvisiblefunctiontables?language=objc -func (i_ IntersectionFunctionTableObject) SetVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, bufferRange foundation.Range) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) - objc.Call[objc.Void](i_, objc.Sel("setVisibleFunctionTables:withBufferRange:"), po0, bufferRange) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3674230-setvisiblefunctiontable?language=objc +func (i_ IntersectionFunctionTableObject) SetVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTable) + objc.Call[objc.Void](i_, objc.Sel("setVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) } func (i_ IntersectionFunctionTableObject) HasSetFunctionAtIndex() bool { @@ -147,3 +96,39 @@ func (i_ IntersectionFunctionTableObject) SetFunctionAtIndex(function FunctionHa po0 := objc.WrapAsProtocol("MTLFunctionHandle", function) objc.Call[objc.Void](i_, objc.Sel("setFunction:atIndex:"), po0, index) } + +func (i_ IntersectionFunctionTableObject) HasSetVisibleFunctionTablesWithBufferRange() bool { + return i_.RespondsToSelector(objc.Sel("setVisibleFunctionTables:withBufferRange:")) +} + +// Sets a range of visible function tables for the intersection functions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3674231-setvisiblefunctiontables?language=objc +func (i_ IntersectionFunctionTableObject) SetVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, bufferRange foundation.Range) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) + objc.Call[objc.Void](i_, objc.Sel("setVisibleFunctionTables:withBufferRange:"), po0, bufferRange) +} + +func (i_ IntersectionFunctionTableObject) HasSetFunctionsWithRange() bool { + return i_.RespondsToSelector(objc.Sel("setFunctions:withRange:")) +} + +// Sets a range of entries in the table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3566555-setfunctions?language=objc +func (i_ IntersectionFunctionTableObject) SetFunctionsWithRange(functions unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLFunctionHandle", functions) + objc.Call[objc.Void](i_, objc.Sel("setFunctions:withRange:"), po0, range_) +} + +func (i_ IntersectionFunctionTableObject) HasSetBufferOffsetAtIndex() bool { + return i_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) +} + +// Sets a buffer for the intersection functions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3578279-setbuffer?language=objc +func (i_ IntersectionFunctionTableObject) SetBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](i_, objc.Sel("setBuffer:offset:atIndex:"), po0, offset, index) +} diff --git a/macos/metal/library_protocol.gen.go b/macos/metal/library_protocol.gen.go index bd7929fc..5d9f6dbf 100644 --- a/macos/metal/library_protocol.gen.go +++ b/macos/metal/library_protocol.gen.go @@ -13,57 +13,41 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary?language=objc type PLibrary interface { - // optional - NewFunctionWithNameConstantValuesCompletionHandler(name string, constantValues FunctionConstantValues, completionHandler func(function FunctionObject, error foundation.Error)) - HasNewFunctionWithNameConstantValuesCompletionHandler() bool - - // optional - NewFunctionWithName(functionName string) FunctionObject - HasNewFunctionWithName() bool - // optional NewFunctionWithDescriptorCompletionHandler(descriptor FunctionDescriptor, completionHandler func(function FunctionObject, error foundation.Error)) HasNewFunctionWithDescriptorCompletionHandler() bool - // optional - NewIntersectionFunctionWithDescriptorCompletionHandler(descriptor IntersectionFunctionDescriptor, completionHandler func(function FunctionObject, error foundation.Error)) - HasNewIntersectionFunctionWithDescriptorCompletionHandler() bool - // optional NewIntersectionFunctionWithDescriptorError(descriptor IntersectionFunctionDescriptor, error unsafe.Pointer) FunctionObject HasNewIntersectionFunctionWithDescriptorError() bool - // optional - NewFunctionWithDescriptorError(descriptor FunctionDescriptor, error unsafe.Pointer) FunctionObject - HasNewFunctionWithDescriptorError() bool - // optional NewFunctionWithNameConstantValuesError(name string, constantValues FunctionConstantValues, error unsafe.Pointer) FunctionObject HasNewFunctionWithNameConstantValuesError() bool // optional - SetLabel(value string) - HasSetLabel() bool - - // optional - Label() string - HasLabel() bool + InstallName() string + HasInstallName() bool // optional Device() DeviceObject HasDevice() bool - // optional - FunctionNames() []string - HasFunctionNames() bool - // optional Type() LibraryType HasType() bool // optional - InstallName() string - HasInstallName() bool + SetLabel(value string) + HasSetLabel() bool + + // optional + Label() string + HasLabel() bool + + // optional + FunctionNames() []string + HasFunctionNames() bool } // ensure impl type implements protocol interface @@ -74,29 +58,6 @@ type LibraryObject struct { objc.Object } -func (l_ LibraryObject) HasNewFunctionWithNameConstantValuesCompletionHandler() bool { - return l_.RespondsToSelector(objc.Sel("newFunctionWithName:constantValues:completionHandler:")) -} - -// Asynchronously creates a specialized shader function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1640053-newfunctionwithname?language=objc -func (l_ LibraryObject) NewFunctionWithNameConstantValuesCompletionHandler(name string, constantValues FunctionConstantValues, completionHandler func(function FunctionObject, error foundation.Error)) { - objc.Call[objc.Void](l_, objc.Sel("newFunctionWithName:constantValues:completionHandler:"), name, constantValues, completionHandler) -} - -func (l_ LibraryObject) HasNewFunctionWithName() bool { - return l_.RespondsToSelector(objc.Sel("newFunctionWithName:")) -} - -// Creates an object that represents a shader function in the library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1515524-newfunctionwithname?language=objc -func (l_ LibraryObject) NewFunctionWithName(functionName string) FunctionObject { - rv := objc.Call[FunctionObject](l_, objc.Sel("newFunctionWithName:"), functionName) - return rv -} - func (l_ LibraryObject) HasNewFunctionWithDescriptorCompletionHandler() bool { return l_.RespondsToSelector(objc.Sel("newFunctionWithDescriptor:completionHandler:")) } @@ -108,17 +69,6 @@ func (l_ LibraryObject) NewFunctionWithDescriptorCompletionHandler(descriptor Fu objc.Call[objc.Void](l_, objc.Sel("newFunctionWithDescriptor:completionHandler:"), descriptor, completionHandler) } -func (l_ LibraryObject) HasNewIntersectionFunctionWithDescriptorCompletionHandler() bool { - return l_.RespondsToSelector(objc.Sel("newIntersectionFunctionWithDescriptor:completionHandler:")) -} - -// Asynchronously creates an object representing a ray-tracing intersection function, using the specified descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3578134-newintersectionfunctionwithdescr?language=objc -func (l_ LibraryObject) NewIntersectionFunctionWithDescriptorCompletionHandler(descriptor IntersectionFunctionDescriptor, completionHandler func(function FunctionObject, error foundation.Error)) { - objc.Call[objc.Void](l_, objc.Sel("newIntersectionFunctionWithDescriptor:completionHandler:"), descriptor, completionHandler) -} - func (l_ LibraryObject) HasNewIntersectionFunctionWithDescriptorError() bool { return l_.RespondsToSelector(objc.Sel("newIntersectionFunctionWithDescriptor:error:")) } @@ -131,18 +81,6 @@ func (l_ LibraryObject) NewIntersectionFunctionWithDescriptorError(descriptor In return rv } -func (l_ LibraryObject) HasNewFunctionWithDescriptorError() bool { - return l_.RespondsToSelector(objc.Sel("newFunctionWithDescriptor:error:")) -} - -// Synchronously creates an object representing a shader function, using the specified descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3554041-newfunctionwithdescriptor?language=objc -func (l_ LibraryObject) NewFunctionWithDescriptorError(descriptor FunctionDescriptor, error unsafe.Pointer) FunctionObject { - rv := objc.Call[FunctionObject](l_, objc.Sel("newFunctionWithDescriptor:error:"), descriptor, error) - return rv -} - func (l_ LibraryObject) HasNewFunctionWithNameConstantValuesError() bool { return l_.RespondsToSelector(objc.Sel("newFunctionWithName:constantValues:error:")) } @@ -155,26 +93,15 @@ func (l_ LibraryObject) NewFunctionWithNameConstantValuesError(name string, cons return rv } -func (l_ LibraryObject) HasSetLabel() bool { - return l_.RespondsToSelector(objc.Sel("setLabel:")) -} - -// A string that identifies the library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1516253-label?language=objc -func (l_ LibraryObject) SetLabel(value string) { - objc.Call[objc.Void](l_, objc.Sel("setLabel:"), value) -} - -func (l_ LibraryObject) HasLabel() bool { - return l_.RespondsToSelector(objc.Sel("label")) +func (l_ LibraryObject) HasInstallName() bool { + return l_.RespondsToSelector(objc.Sel("installName")) } -// A string that identifies the library. [Full Topic] +// The installation name for a dynamic library. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1516253-label?language=objc -func (l_ LibraryObject) Label() string { - rv := objc.Call[string](l_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3554039-installname?language=objc +func (l_ LibraryObject) InstallName() string { + rv := objc.Call[string](l_, objc.Sel("installName")) return rv } @@ -190,18 +117,6 @@ func (l_ LibraryObject) Device() DeviceObject { return rv } -func (l_ LibraryObject) HasFunctionNames() bool { - return l_.RespondsToSelector(objc.Sel("functionNames")) -} - -// The names of all public functions in the library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1515651-functionnames?language=objc -func (l_ LibraryObject) FunctionNames() []string { - rv := objc.Call[[]string](l_, objc.Sel("functionNames")) - return rv -} - func (l_ LibraryObject) HasType() bool { return l_.RespondsToSelector(objc.Sel("type")) } @@ -214,14 +129,37 @@ func (l_ LibraryObject) Type() LibraryType { return rv } -func (l_ LibraryObject) HasInstallName() bool { - return l_.RespondsToSelector(objc.Sel("installName")) +func (l_ LibraryObject) HasSetLabel() bool { + return l_.RespondsToSelector(objc.Sel("setLabel:")) } -// The installation name for a dynamic library. [Full Topic] +// A string that identifies the library. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3554039-installname?language=objc -func (l_ LibraryObject) InstallName() string { - rv := objc.Call[string](l_, objc.Sel("installName")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1516253-label?language=objc +func (l_ LibraryObject) SetLabel(value string) { + objc.Call[objc.Void](l_, objc.Sel("setLabel:"), value) +} + +func (l_ LibraryObject) HasLabel() bool { + return l_.RespondsToSelector(objc.Sel("label")) +} + +// A string that identifies the library. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1516253-label?language=objc +func (l_ LibraryObject) Label() string { + rv := objc.Call[string](l_, objc.Sel("label")) + return rv +} + +func (l_ LibraryObject) HasFunctionNames() bool { + return l_.RespondsToSelector(objc.Sel("functionNames")) +} + +// The names of all public functions in the library. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1515651-functionnames?language=objc +func (l_ LibraryObject) FunctionNames() []string { + rv := objc.Call[[]string](l_, objc.Sel("functionNames")) return rv } diff --git a/macos/metal/linked_functions.gen.go b/macos/metal/linked_functions.gen.go index a0f6d970..921081c0 100644 --- a/macos/metal/linked_functions.gen.go +++ b/macos/metal/linked_functions.gen.go @@ -18,14 +18,14 @@ type _LinkedFunctionsClass struct { // An interface definition for the [LinkedFunctions] class. type ILinkedFunctions interface { objc.IObject - Functions() []FunctionObject - SetFunctions(value []PFunction) - BinaryFunctions() []FunctionObject - SetBinaryFunctions(value []PFunction) PrivateFunctions() []FunctionObject SetPrivateFunctions(value []PFunction) + BinaryFunctions() []FunctionObject + SetBinaryFunctions(value []PFunction) Groups() map[string][]FunctionObject SetGroups(value map[string][]PFunction) + Functions() []FunctionObject + SetFunctions(value []PFunction) } // A set of related functions that Metal links to when necessary to create the function object. [Full Topic] @@ -76,19 +76,19 @@ func LinkedFunctions_LinkedFunctions() LinkedFunctions { return LinkedFunctionsClass.LinkedFunctions() } -// An array of function objects to link to the new function. [Full Topic] +// An array of function objects to link to the new function, without exporting the functions publicly. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3554048-functions?language=objc -func (l_ LinkedFunctions) Functions() []FunctionObject { - rv := objc.Call[[]FunctionObject](l_, objc.Sel("functions")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3750551-privatefunctions?language=objc +func (l_ LinkedFunctions) PrivateFunctions() []FunctionObject { + rv := objc.Call[[]FunctionObject](l_, objc.Sel("privateFunctions")) return rv } -// An array of function objects to link to the new function. [Full Topic] +// An array of function objects to link to the new function, without exporting the functions publicly. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3554048-functions?language=objc -func (l_ LinkedFunctions) SetFunctions(value []PFunction) { - objc.Call[objc.Void](l_, objc.Sel("setFunctions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3750551-privatefunctions?language=objc +func (l_ LinkedFunctions) SetPrivateFunctions(value []PFunction) { + objc.Call[objc.Void](l_, objc.Sel("setPrivateFunctions:"), value) } // An array of function objects already compiled to a binary representation to link. [Full Topic] @@ -106,21 +106,6 @@ func (l_ LinkedFunctions) SetBinaryFunctions(value []PFunction) { objc.Call[objc.Void](l_, objc.Sel("setBinaryFunctions:"), value) } -// An array of function objects to link to the new function, without exporting the functions publicly. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3750551-privatefunctions?language=objc -func (l_ LinkedFunctions) PrivateFunctions() []FunctionObject { - rv := objc.Call[[]FunctionObject](l_, objc.Sel("privateFunctions")) - return rv -} - -// An array of function objects to link to the new function, without exporting the functions publicly. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3750551-privatefunctions?language=objc -func (l_ LinkedFunctions) SetPrivateFunctions(value []PFunction) { - objc.Call[objc.Void](l_, objc.Sel("setPrivateFunctions:"), value) -} - // An optional list of groups specifying which functions your shader can call at each call site. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3554049-groups?language=objc @@ -135,3 +120,18 @@ func (l_ LinkedFunctions) Groups() map[string][]FunctionObject { func (l_ LinkedFunctions) SetGroups(value map[string][]PFunction) { objc.Call[objc.Void](l_, objc.Sel("setGroups:"), value) } + +// An array of function objects to link to the new function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3554048-functions?language=objc +func (l_ LinkedFunctions) Functions() []FunctionObject { + rv := objc.Call[[]FunctionObject](l_, objc.Sel("functions")) + return rv +} + +// An array of function objects to link to the new function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3554048-functions?language=objc +func (l_ LinkedFunctions) SetFunctions(value []PFunction) { + objc.Call[objc.Void](l_, objc.Sel("setFunctions:"), value) +} diff --git a/macos/metal/motion_keyframe_data.gen.go b/macos/metal/motion_keyframe_data.gen.go index 478572e3..fb3ce647 100644 --- a/macos/metal/motion_keyframe_data.gen.go +++ b/macos/metal/motion_keyframe_data.gen.go @@ -18,11 +18,11 @@ type _MotionKeyframeDataClass struct { // An interface definition for the [MotionKeyframeData] class. type IMotionKeyframeData interface { objc.IObject - Offset() uint - SetOffset(value uint) Buffer() BufferObject SetBuffer(value PBuffer) SetBufferObject(valueObject objc.IObject) + Offset() uint + SetOffset(value uint) } // Geometry data for a specific keyframe to use in a moving object. [Full Topic] @@ -70,21 +70,6 @@ func (m_ MotionKeyframeData) Init() MotionKeyframeData { return rv } -// The offset, in bytes, to the keyframe data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlmotionkeyframedata/3750508-offset?language=objc -func (m_ MotionKeyframeData) Offset() uint { - rv := objc.Call[uint](m_, objc.Sel("offset")) - return rv -} - -// The offset, in bytes, to the keyframe data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlmotionkeyframedata/3750508-offset?language=objc -func (m_ MotionKeyframeData) SetOffset(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setOffset:"), value) -} - // The buffer that holds the geometry data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlmotionkeyframedata/3750506-buffer?language=objc @@ -107,3 +92,18 @@ func (m_ MotionKeyframeData) SetBuffer(value PBuffer) { func (m_ MotionKeyframeData) SetBufferObject(valueObject objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("setBuffer:"), valueObject) } + +// The offset, in bytes, to the keyframe data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlmotionkeyframedata/3750508-offset?language=objc +func (m_ MotionKeyframeData) Offset() uint { + rv := objc.Call[uint](m_, objc.Sel("offset")) + return rv +} + +// The offset, in bytes, to the keyframe data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlmotionkeyframedata/3750508-offset?language=objc +func (m_ MotionKeyframeData) SetOffset(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setOffset:"), value) +} diff --git a/macos/metal/parallel_render_command_encoder_protocol.gen.go b/macos/metal/parallel_render_command_encoder_protocol.gen.go index 357f6f47..dce3f51d 100644 --- a/macos/metal/parallel_render_command_encoder_protocol.gen.go +++ b/macos/metal/parallel_render_command_encoder_protocol.gen.go @@ -11,32 +11,32 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder?language=objc type PParallelRenderCommandEncoder interface { // optional - RenderCommandEncoder() RenderCommandEncoderObject - HasRenderCommandEncoder() bool + SetDepthStoreAction(storeAction StoreAction) + HasSetDepthStoreAction() bool // optional SetStencilStoreAction(storeAction StoreAction) HasSetStencilStoreAction() bool // optional - SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) - HasSetStencilStoreActionOptions() bool + SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) + HasSetColorStoreActionOptionsAtIndex() bool // optional - SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) - HasSetDepthStoreActionOptions() bool + SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) + HasSetColorStoreActionAtIndex() bool // optional - SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) - HasSetColorStoreActionOptionsAtIndex() bool + SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) + HasSetStencilStoreActionOptions() bool // optional - SetDepthStoreAction(storeAction StoreAction) - HasSetDepthStoreAction() bool + RenderCommandEncoder() RenderCommandEncoderObject + HasRenderCommandEncoder() bool // optional - SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) - HasSetColorStoreActionAtIndex() bool + SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) + HasSetDepthStoreActionOptions() bool } // ensure impl type implements protocol interface @@ -47,80 +47,80 @@ type ParallelRenderCommandEncoderObject struct { objc.Object } -func (p_ ParallelRenderCommandEncoderObject) HasRenderCommandEncoder() bool { - return p_.RespondsToSelector(objc.Sel("renderCommandEncoder")) +func (p_ ParallelRenderCommandEncoderObject) HasSetDepthStoreAction() bool { + return p_.RespondsToSelector(objc.Sel("setDepthStoreAction:")) } -// Create an object that encodes commands that perform graphics rendering operations and may be assigned to a different thread. [Full Topic] +// Specifies a known store action to replace the initial [metal/mtlstoreaction/mtlstoreactionunknown] value specified for a given depth attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/1515911-rendercommandencoder?language=objc -func (p_ ParallelRenderCommandEncoderObject) RenderCommandEncoder() RenderCommandEncoderObject { - rv := objc.Call[RenderCommandEncoderObject](p_, objc.Sel("renderCommandEncoder")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/1639937-setdepthstoreaction?language=objc +func (p_ ParallelRenderCommandEncoderObject) SetDepthStoreAction(storeAction StoreAction) { + objc.Call[objc.Void](p_, objc.Sel("setDepthStoreAction:"), storeAction) } func (p_ ParallelRenderCommandEncoderObject) HasSetStencilStoreAction() bool { return p_.RespondsToSelector(objc.Sel("setStencilStoreAction:")) } -// Specifies a known store action to replace the initial MTLStoreActionUnknown value specified for a given stencil attachment. [Full Topic] +// Specifies a known store action to replace the initial [metal/mtlstoreaction/mtlstoreactionunknown] value specified for a given stencil attachment. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/1640016-setstencilstoreaction?language=objc func (p_ ParallelRenderCommandEncoderObject) SetStencilStoreAction(storeAction StoreAction) { objc.Call[objc.Void](p_, objc.Sel("setStencilStoreAction:"), storeAction) } -func (p_ ParallelRenderCommandEncoderObject) HasSetStencilStoreActionOptions() bool { - return p_.RespondsToSelector(objc.Sel("setStencilStoreActionOptions:")) +func (p_ ParallelRenderCommandEncoderObject) HasSetColorStoreActionOptionsAtIndex() bool { + return p_.RespondsToSelector(objc.Sel("setColorStoreActionOptions:atIndex:")) } -// Specifies known store action options for a given stencil attachment. [Full Topic] +// Specifies known store action options for a given color attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/2919778-setstencilstoreactionoptions?language=objc -func (p_ ParallelRenderCommandEncoderObject) SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) { - objc.Call[objc.Void](p_, objc.Sel("setStencilStoreActionOptions:"), storeActionOptions) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/2919777-setcolorstoreactionoptions?language=objc +func (p_ ParallelRenderCommandEncoderObject) SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) { + objc.Call[objc.Void](p_, objc.Sel("setColorStoreActionOptions:atIndex:"), storeActionOptions, colorAttachmentIndex) } -func (p_ ParallelRenderCommandEncoderObject) HasSetDepthStoreActionOptions() bool { - return p_.RespondsToSelector(objc.Sel("setDepthStoreActionOptions:")) +func (p_ ParallelRenderCommandEncoderObject) HasSetColorStoreActionAtIndex() bool { + return p_.RespondsToSelector(objc.Sel("setColorStoreAction:atIndex:")) } -// Specifies known store action options for a given depth attachment. [Full Topic] +// Specifies a known store action to replace the initial [metal/mtlstoreaction/mtlstoreactionunknown] value specified for a given color attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/2919779-setdepthstoreactionoptions?language=objc -func (p_ ParallelRenderCommandEncoderObject) SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) { - objc.Call[objc.Void](p_, objc.Sel("setDepthStoreActionOptions:"), storeActionOptions) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/1639891-setcolorstoreaction?language=objc +func (p_ ParallelRenderCommandEncoderObject) SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) { + objc.Call[objc.Void](p_, objc.Sel("setColorStoreAction:atIndex:"), storeAction, colorAttachmentIndex) } -func (p_ ParallelRenderCommandEncoderObject) HasSetColorStoreActionOptionsAtIndex() bool { - return p_.RespondsToSelector(objc.Sel("setColorStoreActionOptions:atIndex:")) +func (p_ ParallelRenderCommandEncoderObject) HasSetStencilStoreActionOptions() bool { + return p_.RespondsToSelector(objc.Sel("setStencilStoreActionOptions:")) } -// Specifies known store action options for a given color attachment. [Full Topic] +// Specifies known store action options for a given stencil attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/2919777-setcolorstoreactionoptions?language=objc -func (p_ ParallelRenderCommandEncoderObject) SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) { - objc.Call[objc.Void](p_, objc.Sel("setColorStoreActionOptions:atIndex:"), storeActionOptions, colorAttachmentIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/2919778-setstencilstoreactionoptions?language=objc +func (p_ ParallelRenderCommandEncoderObject) SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) { + objc.Call[objc.Void](p_, objc.Sel("setStencilStoreActionOptions:"), storeActionOptions) } -func (p_ ParallelRenderCommandEncoderObject) HasSetDepthStoreAction() bool { - return p_.RespondsToSelector(objc.Sel("setDepthStoreAction:")) +func (p_ ParallelRenderCommandEncoderObject) HasRenderCommandEncoder() bool { + return p_.RespondsToSelector(objc.Sel("renderCommandEncoder")) } -// Specifies a known store action to replace the initial MTLStoreActionUnknown value specified for a given depth attachment. [Full Topic] +// Create an object that encodes commands that perform graphics rendering operations and may be assigned to a different thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/1639937-setdepthstoreaction?language=objc -func (p_ ParallelRenderCommandEncoderObject) SetDepthStoreAction(storeAction StoreAction) { - objc.Call[objc.Void](p_, objc.Sel("setDepthStoreAction:"), storeAction) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/1515911-rendercommandencoder?language=objc +func (p_ ParallelRenderCommandEncoderObject) RenderCommandEncoder() RenderCommandEncoderObject { + rv := objc.Call[RenderCommandEncoderObject](p_, objc.Sel("renderCommandEncoder")) + return rv } -func (p_ ParallelRenderCommandEncoderObject) HasSetColorStoreActionAtIndex() bool { - return p_.RespondsToSelector(objc.Sel("setColorStoreAction:atIndex:")) +func (p_ ParallelRenderCommandEncoderObject) HasSetDepthStoreActionOptions() bool { + return p_.RespondsToSelector(objc.Sel("setDepthStoreActionOptions:")) } -// Specifies a known store action to replace the initial MTLStoreActionUnknown value specified for a given color attachment. [Full Topic] +// Specifies known store action options for a given depth attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/1639891-setcolorstoreaction?language=objc -func (p_ ParallelRenderCommandEncoderObject) SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) { - objc.Call[objc.Void](p_, objc.Sel("setColorStoreAction:atIndex:"), storeAction, colorAttachmentIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder/2919779-setdepthstoreactionoptions?language=objc +func (p_ ParallelRenderCommandEncoderObject) SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) { + objc.Call[objc.Void](p_, objc.Sel("setDepthStoreActionOptions:"), storeActionOptions) } diff --git a/macos/metal/pipeline_buffer_descriptor_array.gen.go b/macos/metal/pipeline_buffer_descriptor_array.gen.go index e2aa1321..6fe6a004 100644 --- a/macos/metal/pipeline_buffer_descriptor_array.gen.go +++ b/macos/metal/pipeline_buffer_descriptor_array.gen.go @@ -18,8 +18,8 @@ type _PipelineBufferDescriptorArrayClass struct { // An interface definition for the [PipelineBufferDescriptorArray] class. type IPipelineBufferDescriptorArray interface { objc.IObject - SetObjectAtIndexedSubscript(buffer IPipelineBufferDescriptor, bufferIndex uint) ObjectAtIndexedSubscript(bufferIndex uint) PipelineBufferDescriptor + SetObjectAtIndexedSubscript(buffer IPipelineBufferDescriptor, bufferIndex uint) } // An array of pipeline buffer descriptor objects. [Full Topic] @@ -55,13 +55,6 @@ func (p_ PipelineBufferDescriptorArray) Init() PipelineBufferDescriptorArray { return rv } -// Sets a pipeline buffer descriptor at the specified array index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlpipelinebufferdescriptorarray/2879310-setobject?language=objc -func (p_ PipelineBufferDescriptorArray) SetObjectAtIndexedSubscript(buffer IPipelineBufferDescriptor, bufferIndex uint) { - objc.Call[objc.Void](p_, objc.Sel("setObject:atIndexedSubscript:"), buffer, bufferIndex) -} - // Returns the pipeline buffer descriptor at the specified array index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlpipelinebufferdescriptorarray/2879272-objectatindexedsubscript?language=objc @@ -69,3 +62,10 @@ func (p_ PipelineBufferDescriptorArray) ObjectAtIndexedSubscript(bufferIndex uin rv := objc.Call[PipelineBufferDescriptor](p_, objc.Sel("objectAtIndexedSubscript:"), bufferIndex) return rv } + +// Sets a pipeline buffer descriptor at the specified array index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlpipelinebufferdescriptorarray/2879310-setobject?language=objc +func (p_ PipelineBufferDescriptorArray) SetObjectAtIndexedSubscript(buffer IPipelineBufferDescriptor, bufferIndex uint) { + objc.Call[objc.Void](p_, objc.Sel("setObject:atIndexedSubscript:"), buffer, bufferIndex) +} diff --git a/macos/metal/pointer_type.gen.go b/macos/metal/pointer_type.gen.go index 95e9bf9a..7bd77f4d 100644 --- a/macos/metal/pointer_type.gen.go +++ b/macos/metal/pointer_type.gen.go @@ -20,11 +20,11 @@ type IPointerType interface { IType ElementArrayType() ArrayType ElementStructType() StructType - ElementIsArgumentBuffer() bool - DataSize() uint - Access() objc.Object Alignment() uint + DataSize() uint ElementType() DataType + Access() objc.Object + ElementIsArgumentBuffer() bool } // A description of a pointer. [Full Topic] @@ -76,11 +76,11 @@ func (p_ PointerType) ElementStructType() StructType { return rv } -// A Boolean value that indicates whether the element is an argument buffer. [Full Topic] +// The required byte alignment in memory for the element data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlpointertype/2915756-elementisargumentbuffer?language=objc -func (p_ PointerType) ElementIsArgumentBuffer() bool { - rv := objc.Call[bool](p_, objc.Sel("elementIsArgumentBuffer")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlpointertype/2877458-alignment?language=objc +func (p_ PointerType) Alignment() uint { + rv := objc.Call[uint](p_, objc.Sel("alignment")) return rv } @@ -92,26 +92,26 @@ func (p_ PointerType) DataSize() uint { return rv } -// The function’s read/write access to the element data. [Full Topic] +// The data type of the element data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlpointertype/2877452-access?language=objc -func (p_ PointerType) Access() objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("access")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlpointertype/2877457-elementtype?language=objc +func (p_ PointerType) ElementType() DataType { + rv := objc.Call[DataType](p_, objc.Sel("elementType")) return rv } -// The required byte alignment in memory for the element data. [Full Topic] +// The function’s read/write access to the element data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlpointertype/2877458-alignment?language=objc -func (p_ PointerType) Alignment() uint { - rv := objc.Call[uint](p_, objc.Sel("alignment")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlpointertype/2877452-access?language=objc +func (p_ PointerType) Access() objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("access")) return rv } -// The data type of the element data. [Full Topic] +// A Boolean value that indicates whether the element is an argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlpointertype/2877457-elementtype?language=objc -func (p_ PointerType) ElementType() DataType { - rv := objc.Call[DataType](p_, objc.Sel("elementType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlpointertype/2915756-elementisargumentbuffer?language=objc +func (p_ PointerType) ElementIsArgumentBuffer() bool { + rv := objc.Call[bool](p_, objc.Sel("elementIsArgumentBuffer")) return rv } diff --git a/macos/metal/primitive_acceleration_structure_descriptor.gen.go b/macos/metal/primitive_acceleration_structure_descriptor.gen.go index 4e71be32..796edf0f 100644 --- a/macos/metal/primitive_acceleration_structure_descriptor.gen.go +++ b/macos/metal/primitive_acceleration_structure_descriptor.gen.go @@ -18,18 +18,18 @@ type _PrimitiveAccelerationStructureDescriptorClass struct { // An interface definition for the [PrimitiveAccelerationStructureDescriptor] class. type IPrimitiveAccelerationStructureDescriptor interface { IAccelerationStructureDescriptor + MotionEndTime() float32 + SetMotionEndTime(value float32) MotionStartBorderMode() MotionBorderMode SetMotionStartBorderMode(value MotionBorderMode) + MotionEndBorderMode() MotionBorderMode + SetMotionEndBorderMode(value MotionBorderMode) MotionStartTime() float32 SetMotionStartTime(value float32) GeometryDescriptors() []AccelerationStructureGeometryDescriptor SetGeometryDescriptors(value []IAccelerationStructureGeometryDescriptor) - MotionEndBorderMode() MotionBorderMode - SetMotionEndBorderMode(value MotionBorderMode) MotionKeyframeCount() uint SetMotionKeyframeCount(value uint) - MotionEndTime() float32 - SetMotionEndTime(value float32) } // A description of an acceleration structure that contains geometry primitives. [Full Topic] @@ -77,6 +77,21 @@ func (p_ PrimitiveAccelerationStructureDescriptor) Init() PrimitiveAccelerationS return rv } +// The end time for the range of motion that the keyframe data describes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750510-motionendtime?language=objc +func (p_ PrimitiveAccelerationStructureDescriptor) MotionEndTime() float32 { + rv := objc.Call[float32](p_, objc.Sel("motionEndTime")) + return rv +} + +// The end time for the range of motion that the keyframe data describes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750510-motionendtime?language=objc +func (p_ PrimitiveAccelerationStructureDescriptor) SetMotionEndTime(value float32) { + objc.Call[objc.Void](p_, objc.Sel("setMotionEndTime:"), value) +} + // The mode to use when handling timestamps before the start time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750512-motionstartbordermode?language=objc @@ -92,6 +107,21 @@ func (p_ PrimitiveAccelerationStructureDescriptor) SetMotionStartBorderMode(valu objc.Call[objc.Void](p_, objc.Sel("setMotionStartBorderMode:"), value) } +// The mode to use when handling timestamps after the end time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750509-motionendbordermode?language=objc +func (p_ PrimitiveAccelerationStructureDescriptor) MotionEndBorderMode() MotionBorderMode { + rv := objc.Call[MotionBorderMode](p_, objc.Sel("motionEndBorderMode")) + return rv +} + +// The mode to use when handling timestamps after the end time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750509-motionendbordermode?language=objc +func (p_ PrimitiveAccelerationStructureDescriptor) SetMotionEndBorderMode(value MotionBorderMode) { + objc.Call[objc.Void](p_, objc.Sel("setMotionEndBorderMode:"), value) +} + // The start time for the range of motion that the keyframe data describes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750513-motionstarttime?language=objc @@ -122,21 +152,6 @@ func (p_ PrimitiveAccelerationStructureDescriptor) SetGeometryDescriptors(value objc.Call[objc.Void](p_, objc.Sel("setGeometryDescriptors:"), value) } -// The mode to use when handling timestamps after the end time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750509-motionendbordermode?language=objc -func (p_ PrimitiveAccelerationStructureDescriptor) MotionEndBorderMode() MotionBorderMode { - rv := objc.Call[MotionBorderMode](p_, objc.Sel("motionEndBorderMode")) - return rv -} - -// The mode to use when handling timestamps after the end time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750509-motionendbordermode?language=objc -func (p_ PrimitiveAccelerationStructureDescriptor) SetMotionEndBorderMode(value MotionBorderMode) { - objc.Call[objc.Void](p_, objc.Sel("setMotionEndBorderMode:"), value) -} - // The number of keyframes in the geometry data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750511-motionkeyframecount?language=objc @@ -151,18 +166,3 @@ func (p_ PrimitiveAccelerationStructureDescriptor) MotionKeyframeCount() uint { func (p_ PrimitiveAccelerationStructureDescriptor) SetMotionKeyframeCount(value uint) { objc.Call[objc.Void](p_, objc.Sel("setMotionKeyframeCount:"), value) } - -// The end time for the range of motion that the keyframe data describes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750510-motionendtime?language=objc -func (p_ PrimitiveAccelerationStructureDescriptor) MotionEndTime() float32 { - rv := objc.Call[float32](p_, objc.Sel("motionEndTime")) - return rv -} - -// The end time for the range of motion that the keyframe data describes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlprimitiveaccelerationstructuredescriptor/3750510-motionendtime?language=objc -func (p_ PrimitiveAccelerationStructureDescriptor) SetMotionEndTime(value float32) { - objc.Call[objc.Void](p_, objc.Sel("setMotionEndTime:"), value) -} diff --git a/macos/metal/rasterization_rate_layer_descriptor.gen.go b/macos/metal/rasterization_rate_layer_descriptor.gen.go index f2e1dcdb..0f8e4c3d 100644 --- a/macos/metal/rasterization_rate_layer_descriptor.gen.go +++ b/macos/metal/rasterization_rate_layer_descriptor.gen.go @@ -18,12 +18,12 @@ type _RasterizationRateLayerDescriptorClass struct { // An interface definition for the [RasterizationRateLayerDescriptor] class. type IRasterizationRateLayerDescriptor interface { objc.IObject + HorizontalSampleStorage() *float32 VerticalSampleStorage() *float32 SampleCount() Size - Vertical() RasterizationRateSampleArray MaxSampleCount() Size Horizontal() RasterizationRateSampleArray - HorizontalSampleStorage() *float32 + Vertical() RasterizationRateSampleArray } // The minimum rasterization rates to apply to sections of a layer in the render target. [Full Topic] @@ -53,20 +53,6 @@ func NewRasterizationRateLayerDescriptorWithSampleCount(sampleCount Size) Raster return instance } -func (r_ RasterizationRateLayerDescriptor) InitWithSampleCountHorizontalVertical(sampleCount Size, horizontal *float32, vertical *float32) RasterizationRateLayerDescriptor { - rv := objc.Call[RasterizationRateLayerDescriptor](r_, objc.Sel("initWithSampleCount:horizontal:vertical:"), sampleCount, horizontal, vertical) - return rv -} - -// Initializes the layer map with the provided grid size and rasterization rates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratelayerdescriptor/3131701-initwithsamplecount?language=objc -func NewRasterizationRateLayerDescriptorWithSampleCountHorizontalVertical(sampleCount Size, horizontal *float32, vertical *float32) RasterizationRateLayerDescriptor { - instance := RasterizationRateLayerDescriptorClass.Alloc().InitWithSampleCountHorizontalVertical(sampleCount, horizontal, vertical) - instance.Autorelease() - return instance -} - func (rc _RasterizationRateLayerDescriptorClass) Alloc() RasterizationRateLayerDescriptor { rv := objc.Call[RasterizationRateLayerDescriptor](rc, objc.Sel("alloc")) return rv @@ -87,6 +73,14 @@ func (r_ RasterizationRateLayerDescriptor) Init() RasterizationRateLayerDescript return rv } +// A pointer to the storage for the layer map's horizontal rasterization rates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratelayerdescriptor/3088859-horizontalsamplestorage?language=objc +func (r_ RasterizationRateLayerDescriptor) HorizontalSampleStorage() *float32 { + rv := objc.Call[*float32](r_, objc.Sel("horizontalSampleStorage")) + return rv +} + // A pointer to the storage for the layer map's vertical rasterization rates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratelayerdescriptor/3088863-verticalsamplestorage?language=objc @@ -103,14 +97,6 @@ func (r_ RasterizationRateLayerDescriptor) SampleCount() Size { return rv } -// The vertical rasterization rates for the layer map’s rows. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratelayerdescriptor/3088862-vertical?language=objc -func (r_ RasterizationRateLayerDescriptor) Vertical() RasterizationRateSampleArray { - rv := objc.Call[RasterizationRateSampleArray](r_, objc.Sel("vertical")) - return rv -} - // The maximum number of rows and columns in the layer map. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratelayerdescriptor/3750552-maxsamplecount?language=objc @@ -127,10 +113,10 @@ func (r_ RasterizationRateLayerDescriptor) Horizontal() RasterizationRateSampleA return rv } -// A pointer to the storage for the layer map's horizontal rasterization rates. [Full Topic] +// The vertical rasterization rates for the layer map’s rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratelayerdescriptor/3088859-horizontalsamplestorage?language=objc -func (r_ RasterizationRateLayerDescriptor) HorizontalSampleStorage() *float32 { - rv := objc.Call[*float32](r_, objc.Sel("horizontalSampleStorage")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratelayerdescriptor/3088862-vertical?language=objc +func (r_ RasterizationRateLayerDescriptor) Vertical() RasterizationRateSampleArray { + rv := objc.Call[RasterizationRateSampleArray](r_, objc.Sel("vertical")) return rv } diff --git a/macos/metal/rasterization_rate_map_descriptor.gen.go b/macos/metal/rasterization_rate_map_descriptor.gen.go index e4d7c226..e406ec67 100644 --- a/macos/metal/rasterization_rate_map_descriptor.gen.go +++ b/macos/metal/rasterization_rate_map_descriptor.gen.go @@ -22,10 +22,10 @@ type IRasterizationRateMapDescriptor interface { SetLayerAtIndex(layer IRasterizationRateLayerDescriptor, layerIndex uint) ScreenSize() Size SetScreenSize(value Size) - Layers() RasterizationRateLayerArray Label() string SetLabel(value string) LayerCount() uint + Layers() RasterizationRateLayerArray } // An object that you use to configure new rasterization rate maps. [Full Topic] @@ -69,34 +69,11 @@ func (r_ RasterizationRateMapDescriptor) LayerAtIndex(layerIndex uint) Rasteriza return rv } -// Creates a rate map descriptor with a given size and identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemapdescriptor/3131708-rasterizationratemapdescriptorwi?language=objc -func (rc _RasterizationRateMapDescriptorClass) RasterizationRateMapDescriptorWithScreenSize(screenSize Size) RasterizationRateMapDescriptor { - rv := objc.Call[RasterizationRateMapDescriptor](rc, objc.Sel("rasterizationRateMapDescriptorWithScreenSize:"), screenSize) - return rv -} - -// Creates a rate map descriptor with a given size and identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemapdescriptor/3131708-rasterizationratemapdescriptorwi?language=objc -func RasterizationRateMapDescriptor_RasterizationRateMapDescriptorWithScreenSize(screenSize Size) RasterizationRateMapDescriptor { - return RasterizationRateMapDescriptorClass.RasterizationRateMapDescriptorWithScreenSize(screenSize) -} - -// Creates a rate map descriptor with a single rate layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemapdescriptor/3131709-rasterizationratemapdescriptorwi?language=objc -func (rc _RasterizationRateMapDescriptorClass) RasterizationRateMapDescriptorWithScreenSizeLayer(screenSize Size, layer IRasterizationRateLayerDescriptor) RasterizationRateMapDescriptor { - rv := objc.Call[RasterizationRateMapDescriptor](rc, objc.Sel("rasterizationRateMapDescriptorWithScreenSize:layer:"), screenSize, layer) - return rv -} - -// Creates a rate map descriptor with a single rate layer. [Full Topic] +// Sets a configuration for a layer rate map. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemapdescriptor/3131709-rasterizationratemapdescriptorwi?language=objc -func RasterizationRateMapDescriptor_RasterizationRateMapDescriptorWithScreenSizeLayer(screenSize Size, layer IRasterizationRateLayerDescriptor) RasterizationRateMapDescriptor { - return RasterizationRateMapDescriptorClass.RasterizationRateMapDescriptorWithScreenSizeLayer(screenSize, layer) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemapdescriptor/3131712-setlayer?language=objc +func (r_ RasterizationRateMapDescriptor) SetLayerAtIndex(layer IRasterizationRateLayerDescriptor, layerIndex uint) { + objc.Call[objc.Void](r_, objc.Sel("setLayer:atIndex:"), layer, layerIndex) } // Creates a rate map descriptor with a set of layer descriptors. [Full Topic] @@ -114,13 +91,6 @@ func RasterizationRateMapDescriptor_RasterizationRateMapDescriptorWithScreenSize return RasterizationRateMapDescriptorClass.RasterizationRateMapDescriptorWithScreenSizeLayerCountLayers(screenSize, layerCount, layers) } -// Sets a configuration for a layer rate map. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemapdescriptor/3131712-setlayer?language=objc -func (r_ RasterizationRateMapDescriptor) SetLayerAtIndex(layer IRasterizationRateLayerDescriptor, layerIndex uint) { - objc.Call[objc.Void](r_, objc.Sel("setLayer:atIndex:"), layer, layerIndex) -} - // The size of the viewport coordinate system, in logical pixels. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemapdescriptor/3131711-screensize?language=objc @@ -136,14 +106,6 @@ func (r_ RasterizationRateMapDescriptor) SetScreenSize(value Size) { objc.Call[objc.Void](r_, objc.Sel("setScreenSize:"), value) } -// The rasterization rates for one or more layers in the rate map. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemapdescriptor/3131707-layers?language=objc -func (r_ RasterizationRateMapDescriptor) Layers() RasterizationRateLayerArray { - rv := objc.Call[RasterizationRateLayerArray](r_, objc.Sel("layers")) - return rv -} - // A string used to identify the rate map you create with the descriptor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemapdescriptor/3131704-label?language=objc @@ -166,3 +128,11 @@ func (r_ RasterizationRateMapDescriptor) LayerCount() uint { rv := objc.Call[uint](r_, objc.Sel("layerCount")) return rv } + +// The rasterization rates for one or more layers in the rate map. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemapdescriptor/3131707-layers?language=objc +func (r_ RasterizationRateMapDescriptor) Layers() RasterizationRateLayerArray { + rv := objc.Call[RasterizationRateLayerArray](r_, objc.Sel("layers")) + return rv +} diff --git a/macos/metal/rasterization_rate_map_protocol.gen.go b/macos/metal/rasterization_rate_map_protocol.gen.go index e21b7eea..b2043c60 100644 --- a/macos/metal/rasterization_rate_map_protocol.gen.go +++ b/macos/metal/rasterization_rate_map_protocol.gen.go @@ -10,10 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap?language=objc type PRasterizationRateMap interface { - // optional - CopyParameterDataToBufferOffset(buffer BufferObject, offset uint) - HasCopyParameterDataToBufferOffset() bool - // optional MapPhysicalToScreenCoordinatesForLayer(physicalCoordinates Coordinate2D, layerIndex uint) Coordinate2D HasMapPhysicalToScreenCoordinatesForLayer() bool @@ -23,12 +19,12 @@ type PRasterizationRateMap interface { HasPhysicalSizeForLayer() bool // optional - MapScreenToPhysicalCoordinatesForLayer(screenCoordinates Coordinate2D, layerIndex uint) Coordinate2D - HasMapScreenToPhysicalCoordinatesForLayer() bool + CopyParameterDataToBufferOffset(buffer BufferObject, offset uint) + HasCopyParameterDataToBufferOffset() bool // optional - LayerCount() uint - HasLayerCount() bool + MapScreenToPhysicalCoordinatesForLayer(screenCoordinates Coordinate2D, layerIndex uint) Coordinate2D + HasMapScreenToPhysicalCoordinatesForLayer() bool // optional ParameterBufferSizeAndAlign() SizeAndAlign @@ -38,6 +34,10 @@ type PRasterizationRateMap interface { ScreenSize() Size HasScreenSize() bool + // optional + Device() DeviceObject + HasDevice() bool + // optional PhysicalGranularity() Size HasPhysicalGranularity() bool @@ -47,8 +47,8 @@ type PRasterizationRateMap interface { HasLabel() bool // optional - Device() DeviceObject - HasDevice() bool + LayerCount() uint + HasLayerCount() bool } // ensure impl type implements protocol interface @@ -59,18 +59,6 @@ type RasterizationRateMapObject struct { objc.Object } -func (r_ RasterizationRateMapObject) HasCopyParameterDataToBufferOffset() bool { - return r_.RespondsToSelector(objc.Sel("copyParameterDataToBuffer:offset:")) -} - -// Copies the parameter data into the provided buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3153125-copyparameterdatatobuffer?language=objc -func (r_ RasterizationRateMapObject) CopyParameterDataToBufferOffset(buffer BufferObject, offset uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](r_, objc.Sel("copyParameterDataToBuffer:offset:"), po0, offset) -} - func (r_ RasterizationRateMapObject) HasMapPhysicalToScreenCoordinatesForLayer() bool { return r_.RespondsToSelector(objc.Sel("mapPhysicalToScreenCoordinates:forLayer:")) } @@ -95,6 +83,18 @@ func (r_ RasterizationRateMapObject) PhysicalSizeForLayer(layerIndex uint) Size return rv } +func (r_ RasterizationRateMapObject) HasCopyParameterDataToBufferOffset() bool { + return r_.RespondsToSelector(objc.Sel("copyParameterDataToBuffer:offset:")) +} + +// Copies the parameter data into the provided buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3153125-copyparameterdatatobuffer?language=objc +func (r_ RasterizationRateMapObject) CopyParameterDataToBufferOffset(buffer BufferObject, offset uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](r_, objc.Sel("copyParameterDataToBuffer:offset:"), po0, offset) +} + func (r_ RasterizationRateMapObject) HasMapScreenToPhysicalCoordinatesForLayer() bool { return r_.RespondsToSelector(objc.Sel("mapScreenToPhysicalCoordinates:forLayer:")) } @@ -107,18 +107,6 @@ func (r_ RasterizationRateMapObject) MapScreenToPhysicalCoordinatesForLayer(scre return rv } -func (r_ RasterizationRateMapObject) HasLayerCount() bool { - return r_.RespondsToSelector(objc.Sel("layerCount")) -} - -// The number of layers in the rate map. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3088867-layercount?language=objc -func (r_ RasterizationRateMapObject) LayerCount() uint { - rv := objc.Call[uint](r_, objc.Sel("layerCount")) - return rv -} - func (r_ RasterizationRateMapObject) HasParameterBufferSizeAndAlign() bool { return r_.RespondsToSelector(objc.Sel("parameterBufferSizeAndAlign")) } @@ -143,6 +131,18 @@ func (r_ RasterizationRateMapObject) ScreenSize() Size { return rv } +func (r_ RasterizationRateMapObject) HasDevice() bool { + return r_.RespondsToSelector(objc.Sel("device")) +} + +// The device object that created the rate map. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3088866-device?language=objc +func (r_ RasterizationRateMapObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](r_, objc.Sel("device")) + return rv +} + func (r_ RasterizationRateMapObject) HasPhysicalGranularity() bool { return r_.RespondsToSelector(objc.Sel("physicalGranularity")) } @@ -167,14 +167,14 @@ func (r_ RasterizationRateMapObject) Label() string { return rv } -func (r_ RasterizationRateMapObject) HasDevice() bool { - return r_.RespondsToSelector(objc.Sel("device")) +func (r_ RasterizationRateMapObject) HasLayerCount() bool { + return r_.RespondsToSelector(objc.Sel("layerCount")) } -// The device object that created the rate map. [Full Topic] +// The number of layers in the rate map. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3088866-device?language=objc -func (r_ RasterizationRateMapObject) Device() DeviceObject { - rv := objc.Call[DeviceObject](r_, objc.Sel("device")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3088867-layercount?language=objc +func (r_ RasterizationRateMapObject) LayerCount() uint { + rv := objc.Call[uint](r_, objc.Sel("layerCount")) return rv } diff --git a/macos/metal/rasterization_rate_sample_array.gen.go b/macos/metal/rasterization_rate_sample_array.gen.go index 95f6aa82..7521f99d 100644 --- a/macos/metal/rasterization_rate_sample_array.gen.go +++ b/macos/metal/rasterization_rate_sample_array.gen.go @@ -19,8 +19,8 @@ type _RasterizationRateSampleArrayClass struct { // An interface definition for the [RasterizationRateSampleArray] class. type IRasterizationRateSampleArray interface { objc.IObject - SetObjectAtIndexedSubscript(value foundation.INumber, index uint) ObjectAtIndexedSubscript(index uint) foundation.Number + SetObjectAtIndexedSubscript(value foundation.INumber, index uint) } // An array object that contains rasterization rates. [Full Topic] @@ -56,13 +56,6 @@ func (r_ RasterizationRateSampleArray) Init() RasterizationRateSampleArray { return rv } -// Stores a sample value at the specified index. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratesamplearray/3088876-setobject?language=objc -func (r_ RasterizationRateSampleArray) SetObjectAtIndexedSubscript(value foundation.INumber, index uint) { - objc.Call[objc.Void](r_, objc.Sel("setObject:atIndexedSubscript:"), value, index) -} - // Retrieves the sample value at the specified index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratesamplearray/3088875-objectatindexedsubscript?language=objc @@ -70,3 +63,10 @@ func (r_ RasterizationRateSampleArray) ObjectAtIndexedSubscript(index uint) foun rv := objc.Call[foundation.Number](r_, objc.Sel("objectAtIndexedSubscript:"), index) return rv } + +// Stores a sample value at the specified index. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratesamplearray/3088876-setobject?language=objc +func (r_ RasterizationRateSampleArray) SetObjectAtIndexedSubscript(value foundation.INumber, index uint) { + objc.Call[objc.Void](r_, objc.Sel("setObject:atIndexedSubscript:"), value, index) +} diff --git a/macos/metal/render_command_encoder_protocol.gen.go b/macos/metal/render_command_encoder_protocol.gen.go index 1286d037..1caf2148 100644 --- a/macos/metal/render_command_encoder_protocol.gen.go +++ b/macos/metal/render_command_encoder_protocol.gen.go @@ -14,380 +14,308 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder?language=objc type PRenderCommandEncoder interface { // optional - SetDepthStoreAction(storeAction StoreAction) - HasSetDepthStoreAction() bool - - // optional - SetVertexIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) - HasSetVertexIntersectionFunctionTableAtBufferIndex() bool + SetViewportsCount(viewports *Viewport, count uint) + HasSetViewportsCount() bool // optional - SetVertexIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) - HasSetVertexIntersectionFunctionTablesWithBufferRange() bool + SetThreadgroupMemoryLengthOffsetAtIndex(length uint, offset uint, index uint) + HasSetThreadgroupMemoryLengthOffsetAtIndex() bool // optional - SetVertexTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) - HasSetVertexTexturesWithRange() bool + SetFragmentVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) + HasSetFragmentVisibleFunctionTableAtBufferIndex() bool // optional - DrawIndexedPrimitivesIndexTypeIndexBufferIndexBufferOffsetIndirectBufferIndirectBufferOffset(primitiveType PrimitiveType, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) - HasDrawIndexedPrimitivesIndexTypeIndexBufferIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool + SetFragmentTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) + HasSetFragmentTexturesWithRange() bool // optional - DrawPrimitivesIndirectBufferIndirectBufferOffset(primitiveType PrimitiveType, indirectBuffer BufferObject, indirectBufferOffset uint) - HasDrawPrimitivesIndirectBufferIndirectBufferOffset() bool + SetViewport(viewport Viewport) + HasSetViewport() bool // optional - SetTileTextureAtIndex(texture TextureObject, index uint) - HasSetTileTextureAtIndex() bool + DrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, controlPointIndexBuffer BufferObject, controlPointIndexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) + HasDrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool // optional - SetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) - HasSetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange() bool + SetTileSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) + HasSetTileSamplerStatesLodMinClampsLodMaxClampsWithRange() bool // optional - SetDepthStencilState(depthStencilState DepthStencilStateObject) - HasSetDepthStencilState() bool + SetFragmentTextureAtIndex(texture TextureObject, index uint) + HasSetFragmentTextureAtIndex() bool // optional - SetFragmentSamplerStateAtIndex(sampler SamplerStateObject, index uint) - HasSetFragmentSamplerStateAtIndex() bool + SetDepthStoreAction(storeAction StoreAction) + HasSetDepthStoreAction() bool // optional - SetVertexSamplerStateAtIndex(sampler SamplerStateObject, index uint) - HasSetVertexSamplerStateAtIndex() bool + SetFragmentSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) + HasSetFragmentSamplerStatesWithRange() bool // optional - DispatchThreadsPerTile(threadsPerTile Size) - HasDispatchThreadsPerTile() bool + SetVisibilityResultModeOffset(mode VisibilityResultMode, offset uint) + HasSetVisibilityResultModeOffset() bool // optional - SetFragmentSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) - HasSetFragmentSamplerStatesLodMinClampsLodMaxClampsWithRange() bool + SetTileBufferOffsetAtIndex(offset uint, index uint) + HasSetTileBufferOffsetAtIndex() bool // optional - SetStencilFrontReferenceValueBackReferenceValue(frontReferenceValue uint32, backReferenceValue uint32) - HasSetStencilFrontReferenceValueBackReferenceValue() bool + SetFragmentBufferOffsetAtIndex(offset uint, index uint) + HasSetFragmentBufferOffsetAtIndex() bool // optional - SetVertexTextureAtIndex(texture TextureObject, index uint) - HasSetVertexTextureAtIndex() bool + SetVertexBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) + HasSetVertexBufferOffsetAtIndex_() bool // optional - DrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstance(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, instanceCount uint, baseInstance uint) - HasDrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstance() bool + SetVertexIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) + HasSetVertexIntersectionFunctionTableAtBufferIndex() bool // optional - SetTessellationFactorScale(scale float32) - HasSetTessellationFactorScale() bool + SetTileBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) + HasSetTileBufferOffsetAtIndex_() bool // optional - SetVertexBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) - HasSetVertexBufferOffsetAtIndex_() bool + SetTessellationFactorBufferOffsetInstanceStride(buffer BufferObject, offset uint, instanceStride uint) + HasSetTessellationFactorBufferOffsetInstanceStride() bool // optional SetTileVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) HasSetTileVisibleFunctionTableAtBufferIndex() bool // optional - SetVertexAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) - HasSetVertexAccelerationStructureAtBufferIndex() bool - - // optional - SetTileTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) - HasSetTileTexturesWithRange() bool - - // optional - SetFragmentBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) - HasSetFragmentBuffersOffsetsWithRange() bool + DrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) + HasDrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool // optional - SetTileIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) - HasSetTileIntersectionFunctionTableAtBufferIndex() bool + UseResourceUsageStages(resource ResourceObject, usage ResourceUsage, stages RenderStages) + HasUseResourceUsageStages() bool // optional - SetTileBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) - HasSetTileBytesLengthAtIndex() bool + DrawPrimitivesVertexStartVertexCount(primitiveType PrimitiveType, vertexStart uint, vertexCount uint) + HasDrawPrimitivesVertexStartVertexCount() bool // optional - SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) - HasSetStencilStoreActionOptions() bool + SetVertexBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) + HasSetVertexBuffersOffsetsWithRange() bool // optional SetFragmentBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) HasSetFragmentBufferOffsetAtIndex_() bool // optional - ExecuteCommandsInBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, executionRange foundation.Range) - HasExecuteCommandsInBufferWithRange() bool + SetDepthStencilState(depthStencilState DepthStencilStateObject) + HasSetDepthStencilState() bool // optional - SetTileBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) - HasSetTileBufferOffsetAtIndex_() bool + SetVertexAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) + HasSetVertexAccelerationStructureAtBufferIndex() bool // optional - UseResourceUsageStages(resource ResourceObject, usage ResourceUsage, stages RenderStages) - HasUseResourceUsageStages() bool + SetVertexBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) + HasSetVertexBytesLengthAtIndex() bool // optional - SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) - HasSetColorStoreActionOptionsAtIndex() bool + SetVertexAmplificationCountViewMappings(count uint, viewMappings *VertexAmplificationViewMapping) + HasSetVertexAmplificationCountViewMappings() bool // optional - SetFragmentTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) - HasSetFragmentTexturesWithRange() bool + SetScissorRect(rect ScissorRect) + HasSetScissorRect() bool // optional - SetTriangleFillMode(fillMode TriangleFillMode) - HasSetTriangleFillMode() bool + SetTileTextureAtIndex(texture TextureObject, index uint) + HasSetTileTextureAtIndex() bool // optional - SetTileSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) - HasSetTileSamplerStatesWithRange() bool + SetVertexSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float32, lodMaxClamp float32, index uint) + HasSetVertexSamplerStateLodMinClampLodMaxClampAtIndex() bool // optional - DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint) - HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount() bool + SetStencilFrontReferenceValueBackReferenceValue(frontReferenceValue uint32, backReferenceValue uint32) + HasSetStencilFrontReferenceValueBackReferenceValue() bool // optional - SetFragmentBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) - HasSetFragmentBytesLengthAtIndex() bool + SetVertexVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) + HasSetVertexVisibleFunctionTablesWithBufferRange() bool // optional - UseResourcesCountUsageStages(resources unsafe.Pointer, count uint, usage ResourceUsage, stages RenderStages) - HasUseResourcesCountUsageStages() bool + SetStencilStoreAction(storeAction StoreAction) + HasSetStencilStoreAction() bool // optional - SetStencilReferenceValue(referenceValue uint32) - HasSetStencilReferenceValue() bool + SetCullMode(cullMode CullMode) + HasSetCullMode() bool // optional - DrawPrimitivesVertexStartVertexCount(primitiveType PrimitiveType, vertexStart uint, vertexCount uint) - HasDrawPrimitivesVertexStartVertexCount() bool + SetTriangleFillMode(fillMode TriangleFillMode) + HasSetTriangleFillMode() bool // optional - SetThreadgroupMemoryLengthOffsetAtIndex(length uint, offset uint, index uint) - HasSetThreadgroupMemoryLengthOffsetAtIndex() bool + SetTileTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) + HasSetTileTexturesWithRange() bool // optional - SetFragmentSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) - HasSetFragmentSamplerStatesWithRange() bool + MemoryBarrierWithResourcesCountAfterStagesBeforeStages(resources unsafe.Pointer, count uint, after RenderStages, before RenderStages) + HasMemoryBarrierWithResourcesCountAfterStagesBeforeStages() bool // optional - SetFragmentIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) - HasSetFragmentIntersectionFunctionTableAtBufferIndex() bool + SetFragmentAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) + HasSetFragmentAccelerationStructureAtBufferIndex() bool // optional - SetFragmentIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) - HasSetFragmentIntersectionFunctionTablesWithBufferRange() bool + SetDepthBiasSlopeScaleClamp(depthBias float32, slopeScale float32, clamp float32) + HasSetDepthBiasSlopeScaleClamp() bool // optional - DrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, controlPointIndexBuffer BufferObject, controlPointIndexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) - HasDrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool + SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) + HasSampleCountersInBufferAtSampleIndexWithBarrier() bool // optional - SetVertexSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) - HasSetVertexSamplerStatesWithRange() bool + SetTileIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) + HasSetTileIntersectionFunctionTableAtBufferIndex() bool // optional - SetFragmentSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float32, lodMaxClamp float32, index uint) - HasSetFragmentSamplerStateLodMinClampLodMaxClampAtIndex() bool + SetRenderPipelineState(pipelineState RenderPipelineStateObject) + HasSetRenderPipelineState() bool // optional - SetTileBufferOffsetAtIndex(offset uint, index uint) - HasSetTileBufferOffsetAtIndex() bool + SetTileBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) + HasSetTileBytesLengthAtIndex() bool // optional - SetFragmentVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) - HasSetFragmentVisibleFunctionTableAtBufferIndex() bool + ExecuteCommandsInBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, executionRange foundation.Range) + HasExecuteCommandsInBufferWithRange() bool // optional - SetTessellationFactorBufferOffsetInstanceStride(buffer BufferObject, offset uint, instanceStride uint) - HasSetTessellationFactorBufferOffsetInstanceStride() bool + SetFragmentBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) + HasSetFragmentBytesLengthAtIndex() bool // optional - SetVertexSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float32, lodMaxClamp float32, index uint) - HasSetVertexSamplerStateLodMinClampLodMaxClampAtIndex() bool + SetTileBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) + HasSetTileBuffersOffsetsWithRange() bool // optional - SetFragmentVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) - HasSetFragmentVisibleFunctionTablesWithBufferRange() bool + MemoryBarrierWithScopeAfterStagesBeforeStages(scope BarrierScope, after RenderStages, before RenderStages) + HasMemoryBarrierWithScopeAfterStagesBeforeStages() bool // optional - SetStencilStoreAction(storeAction StoreAction) - HasSetStencilStoreAction() bool + SetFragmentIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) + HasSetFragmentIntersectionFunctionTableAtBufferIndex() bool // optional - SetViewportsCount(viewports *Viewport, count uint) - HasSetViewportsCount() bool + DispatchThreadsPerTile(threadsPerTile Size) + HasDispatchThreadsPerTile() bool // optional - SetBlendColorRedGreenBlueAlpha(red float32, green float32, blue float32, alpha float32) - HasSetBlendColorRedGreenBlueAlpha() bool + SetFragmentVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) + HasSetFragmentVisibleFunctionTablesWithBufferRange() bool // optional - SetRenderPipelineState(pipelineState RenderPipelineStateObject) - HasSetRenderPipelineState() bool + SetVertexTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) + HasSetVertexTexturesWithRange() bool // optional - DrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance(primitiveType PrimitiveType, vertexStart uint, vertexCount uint, instanceCount uint, baseInstance uint) - HasDrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance() bool + SetFragmentSamplerStateAtIndex(sampler SamplerStateObject, index uint) + HasSetFragmentSamplerStateAtIndex() bool // optional - UpdateFenceAfterStages(fence FenceObject, stages RenderStages) - HasUpdateFenceAfterStages() bool + SetTileSamplerStateAtIndex(sampler SamplerStateObject, index uint) + HasSetTileSamplerStateAtIndex() bool // optional - DrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) - HasDrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool + SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) + HasSetColorStoreActionOptionsAtIndex() bool // optional - SetTileBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) - HasSetTileBuffersOffsetsWithRange() bool + SetVertexTextureAtIndex(texture TextureObject, index uint) + HasSetVertexTextureAtIndex() bool // optional - MemoryBarrierWithScopeAfterStagesBeforeStages(scope BarrierScope, after RenderStages, before RenderStages) - HasMemoryBarrierWithScopeAfterStagesBeforeStages() bool + SetTessellationFactorScale(scale float32) + HasSetTessellationFactorScale() bool // optional - SetTileAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) - HasSetTileAccelerationStructureAtBufferIndex() bool + UseHeapStages(heap HeapObject, stages RenderStages) + HasUseHeapStages() bool // optional - SetFrontFacingWinding(frontFacingWinding Winding) - HasSetFrontFacingWinding() bool + SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) + HasSetColorStoreActionAtIndex() bool // optional - UseHeapStages(heap HeapObject, stages RenderStages) - HasUseHeapStages() bool + SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) + HasSetStencilStoreActionOptions() bool // optional - SetFragmentAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) - HasSetFragmentAccelerationStructureAtBufferIndex() bool + UseResourcesCountUsageStages(resources unsafe.Pointer, count uint, usage ResourceUsage, stages RenderStages) + HasUseResourcesCountUsageStages() bool // optional - SetTileIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) - HasSetTileIntersectionFunctionTablesWithBufferRange() bool + SetDepthClipMode(depthClipMode DepthClipMode) + HasSetDepthClipMode() bool // optional - DrawPrimitivesVertexStartVertexCountInstanceCount(primitiveType PrimitiveType, vertexStart uint, vertexCount uint, instanceCount uint) - HasDrawPrimitivesVertexStartVertexCountInstanceCount() bool + SetVertexBufferOffsetAtIndex(offset uint, index uint) + HasSetVertexBufferOffsetAtIndex() bool // optional - SetTileSamplerStateAtIndex(sampler SamplerStateObject, index uint) - HasSetTileSamplerStateAtIndex() bool + UseHeapsCountStages(heaps unsafe.Pointer, count uint, stages RenderStages) + HasUseHeapsCountStages() bool // optional - SetDepthBiasSlopeScaleClamp(depthBias float32, slopeScale float32, clamp float32) - HasSetDepthBiasSlopeScaleClamp() bool + SetTileVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) + HasSetTileVisibleFunctionTablesWithBufferRange() bool // optional - SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) - HasSampleCountersInBufferAtSampleIndexWithBarrier() bool + SetBlendColorRedGreenBlueAlpha(red float32, green float32, blue float32, alpha float32) + HasSetBlendColorRedGreenBlueAlpha() bool // optional - SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) - HasSetColorStoreActionAtIndex() bool + SetVertexVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) + HasSetVertexVisibleFunctionTableAtBufferIndex() bool // optional - SetTileSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float32, lodMaxClamp float32, index uint) - HasSetTileSamplerStateLodMinClampLodMaxClampAtIndex() bool + UpdateFenceAfterStages(fence FenceObject, stages RenderStages) + HasUpdateFenceAfterStages() bool // optional SetScissorRectsCount(scissorRects *ScissorRect, count uint) HasSetScissorRectsCount() bool // optional - WaitForFenceBeforeStages(fence FenceObject, stages RenderStages) - HasWaitForFenceBeforeStages() bool + SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) + HasSetDepthStoreActionOptions() bool // optional - UseHeapsCountStages(heaps unsafe.Pointer, count uint, stages RenderStages) - HasUseHeapsCountStages() bool + SetTileAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) + HasSetTileAccelerationStructureAtBufferIndex() bool // optional - SetVertexBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) - HasSetVertexBuffersOffsetsWithRange() bool + SetFragmentBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) + HasSetFragmentBuffersOffsetsWithRange() bool // optional - SetFragmentTextureAtIndex(texture TextureObject, index uint) - HasSetFragmentTextureAtIndex() bool - - // optional - SetVertexAmplificationCountViewMappings(count uint, viewMappings *VertexAmplificationViewMapping) - HasSetVertexAmplificationCountViewMappings() bool - - // optional - SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) - HasSetDepthStoreActionOptions() bool - - // optional - DrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstance(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, controlPointIndexBuffer BufferObject, controlPointIndexBufferOffset uint, instanceCount uint, baseInstance uint) - HasDrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstance() bool - - // optional - SetVisibilityResultModeOffset(mode VisibilityResultMode, offset uint) - HasSetVisibilityResultModeOffset() bool - - // optional - DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint, baseVertex int, baseInstance uint) - HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance() bool - - // optional - SetCullMode(cullMode CullMode) - HasSetCullMode() bool - - // optional - SetViewport(viewport Viewport) - HasSetViewport() bool - - // optional - SetScissorRect(rect ScissorRect) - HasSetScissorRect() bool - - // optional - ExecuteCommandsInBufferIndirectBufferIndirectBufferOffset(indirectCommandbuffer IndirectCommandBufferObject, indirectRangeBuffer BufferObject, indirectBufferOffset uint) - HasExecuteCommandsInBufferIndirectBufferIndirectBufferOffset() bool - - // optional - SetVertexVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) - HasSetVertexVisibleFunctionTableAtBufferIndex() bool - - // optional - SetFragmentBufferOffsetAtIndex(offset uint, index uint) - HasSetFragmentBufferOffsetAtIndex() bool - - // optional - SetVertexVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) - HasSetVertexVisibleFunctionTablesWithBufferRange() bool - - // optional - SetDepthClipMode(depthClipMode DepthClipMode) - HasSetDepthClipMode() bool - - // optional - SetTileVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) - HasSetTileVisibleFunctionTablesWithBufferRange() bool - - // optional - SetTileSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) - HasSetTileSamplerStatesLodMinClampsLodMaxClampsWithRange() bool + SetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) + HasSetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange() bool // optional - MemoryBarrierWithResourcesCountAfterStagesBeforeStages(resources unsafe.Pointer, count uint, after RenderStages, before RenderStages) - HasMemoryBarrierWithResourcesCountAfterStagesBeforeStages() bool + SetFrontFacingWinding(frontFacingWinding Winding) + HasSetFrontFacingWinding() bool // optional - SetVertexBufferOffsetAtIndex(offset uint, index uint) - HasSetVertexBufferOffsetAtIndex() bool + DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint) + HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount() bool // optional - DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffset(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint) - HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffset() bool + SetStencilReferenceValue(referenceValue uint32) + HasSetStencilReferenceValue() bool // optional - SetVertexBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) - HasSetVertexBytesLengthAtIndex() bool + WaitForFenceBeforeStages(fence FenceObject, stages RenderStages) + HasWaitForFenceBeforeStages() bool // optional TileWidth() uint @@ -406,323 +334,179 @@ type RenderCommandEncoderObject struct { objc.Object } -func (r_ RenderCommandEncoderObject) HasSetDepthStoreAction() bool { - return r_.RespondsToSelector(objc.Sel("setDepthStoreAction:")) +func (r_ RenderCommandEncoderObject) HasSetViewportsCount() bool { + return r_.RespondsToSelector(objc.Sel("setViewports:count:")) } -// Configures the store action for the depth attachment. [Full Topic] +// Configures the render pipeline with multiple viewports that apply transformations and clipping rectangles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1640036-setdepthstoreaction?language=objc -func (r_ RenderCommandEncoderObject) SetDepthStoreAction(storeAction StoreAction) { - objc.Call[objc.Void](r_, objc.Sel("setDepthStoreAction:"), storeAction) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2869738-setviewports?language=objc +func (r_ RenderCommandEncoderObject) SetViewportsCount(viewports *Viewport, count uint) { + objc.Call[objc.Void](r_, objc.Sel("setViewports:count:"), viewports, count) } -func (r_ RenderCommandEncoderObject) HasSetVertexIntersectionFunctionTableAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexIntersectionFunctionTable:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasSetThreadgroupMemoryLengthOffsetAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:offset:atIndex:")) } -// Assigns an intersection function table to an entry in the vertex shader argument table. [Full Topic] +// Configures the size of a threadgroup memory buffer for an entry in the fragment or tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750564-setvertexintersectionfunctiontab?language=objc -func (r_ RenderCommandEncoderObject) SetVertexIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTable) - objc.Call[objc.Void](r_, objc.Sel("setVertexIntersectionFunctionTable:atBufferIndex:"), po0, bufferIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866165-setthreadgroupmemorylength?language=objc +func (r_ RenderCommandEncoderObject) SetThreadgroupMemoryLengthOffsetAtIndex(length uint, offset uint, index uint) { + objc.Call[objc.Void](r_, objc.Sel("setThreadgroupMemoryLength:offset:atIndex:"), length, offset, index) } -func (r_ RenderCommandEncoderObject) HasSetVertexIntersectionFunctionTablesWithBufferRange() bool { - return r_.RespondsToSelector(objc.Sel("setVertexIntersectionFunctionTables:withBufferRange:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentVisibleFunctionTableAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentVisibleFunctionTable:atBufferIndex:")) } -// Assigns multiple intersection function tables to a range of entries in the vertex shader argument table. [Full Topic] +// Assigns a visible function table to an entry in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750565-setvertexintersectionfunctiontab?language=objc -func (r_ RenderCommandEncoderObject) SetVertexIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) - objc.Call[objc.Void](r_, objc.Sel("setVertexIntersectionFunctionTables:withBufferRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750556-setfragmentvisiblefunctiontable?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTable) + objc.Call[objc.Void](r_, objc.Sel("setFragmentVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) } -func (r_ RenderCommandEncoderObject) HasSetVertexTexturesWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setVertexTextures:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentTexturesWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentTextures:withRange:")) } -// Assigns multiple textures to a range of entries in the vertex shader argument table. [Full Topic] +// Assigns multiple textures to a range of entries in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516109-setvertextextures?language=objc -func (r_ RenderCommandEncoderObject) SetVertexTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515878-setfragmenttextures?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) { po0 := objc.WrapAsProtocol("MTLTexture", textures) - objc.Call[objc.Void](r_, objc.Sel("setVertexTextures:withRange:"), po0, range_) -} - -func (r_ RenderCommandEncoderObject) HasDrawIndexedPrimitivesIndexTypeIndexBufferIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool { - return r_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexType:indexBuffer:indexBufferOffset:indirectBuffer:indirectBufferOffset:")) -} - -// Encodes a draw command that renders multiple instances of a geometric primitive with indexed vertices and indirect arguments. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515392-drawindexedprimitives?language=objc -func (r_ RenderCommandEncoderObject) DrawIndexedPrimitivesIndexTypeIndexBufferIndexBufferOffsetIndirectBufferIndirectBufferOffset(primitiveType PrimitiveType, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) { - po2 := objc.WrapAsProtocol("MTLBuffer", indexBuffer) - po4 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) - objc.Call[objc.Void](r_, objc.Sel("drawIndexedPrimitives:indexType:indexBuffer:indexBufferOffset:indirectBuffer:indirectBufferOffset:"), primitiveType, indexType, po2, indexBufferOffset, po4, indirectBufferOffset) -} - -func (r_ RenderCommandEncoderObject) HasDrawPrimitivesIndirectBufferIndirectBufferOffset() bool { - return r_.RespondsToSelector(objc.Sel("drawPrimitives:indirectBuffer:indirectBufferOffset:")) -} - -// Encodes a draw command that renders multiple instances of a geometric primitive with indirect arguments. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515467-drawprimitives?language=objc -func (r_ RenderCommandEncoderObject) DrawPrimitivesIndirectBufferIndirectBufferOffset(primitiveType PrimitiveType, indirectBuffer BufferObject, indirectBufferOffset uint) { - po1 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) - objc.Call[objc.Void](r_, objc.Sel("drawPrimitives:indirectBuffer:indirectBufferOffset:"), primitiveType, po1, indirectBufferOffset) -} - -func (r_ RenderCommandEncoderObject) HasSetTileTextureAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileTexture:atIndex:")) -} - -// Assigns a texture to an entry in the tile shader argument table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866173-settiletexture?language=objc -func (r_ RenderCommandEncoderObject) SetTileTextureAtIndex(texture TextureObject, index uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](r_, objc.Sel("setTileTexture:atIndex:"), po0, index) -} - -func (r_ RenderCommandEncoderObject) HasSetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setVertexSamplerStates:lodMinClamps:lodMaxClamps:withRange:")) -} - -// Assigns multiple sampler states and clamp values to a range of entries in the vertex shader argument table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516322-setvertexsamplerstates?language=objc -func (r_ RenderCommandEncoderObject) SetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](r_, objc.Sel("setVertexSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) -} - -func (r_ RenderCommandEncoderObject) HasSetDepthStencilState() bool { - return r_.RespondsToSelector(objc.Sel("setDepthStencilState:")) -} - -// Configures the combined depth and stencil state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516119-setdepthstencilstate?language=objc -func (r_ RenderCommandEncoderObject) SetDepthStencilState(depthStencilState DepthStencilStateObject) { - po0 := objc.WrapAsProtocol("MTLDepthStencilState", depthStencilState) - objc.Call[objc.Void](r_, objc.Sel("setDepthStencilState:"), po0) -} - -func (r_ RenderCommandEncoderObject) HasSetFragmentSamplerStateAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentSamplerState:atIndex:")) -} - -// Assigns a sampler state to an entry in the fragment shader argument table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515577-setfragmentsamplerstate?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentSamplerStateAtIndex(sampler SamplerStateObject, index uint) { - po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) - objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerState:atIndex:"), po0, index) + objc.Call[objc.Void](r_, objc.Sel("setFragmentTextures:withRange:"), po0, range_) } -func (r_ RenderCommandEncoderObject) HasSetVertexSamplerStateAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexSamplerState:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetViewport() bool { + return r_.RespondsToSelector(objc.Sel("setViewport:")) } -// Assigns a sampler state to an entry in the vertex shader argument table. [Full Topic] +// Configures the render pipeline with a viewport that applies a transformation and a clipping rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515537-setvertexsamplerstate?language=objc -func (r_ RenderCommandEncoderObject) SetVertexSamplerStateAtIndex(sampler SamplerStateObject, index uint) { - po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) - objc.Call[objc.Void](r_, objc.Sel("setVertexSamplerState:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515527-setviewport?language=objc +func (r_ RenderCommandEncoderObject) SetViewport(viewport Viewport) { + objc.Call[objc.Void](r_, objc.Sel("setViewport:"), viewport) } -func (r_ RenderCommandEncoderObject) HasDispatchThreadsPerTile() bool { - return r_.RespondsToSelector(objc.Sel("dispatchThreadsPerTile:")) +func (r_ RenderCommandEncoderObject) HasDrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool { + return r_.RespondsToSelector(objc.Sel("drawIndexedPatches:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:indirectBuffer:indirectBufferOffset:")) } -// Encodes a command that invokes GPU functions from the encoder’s current tile render pipeline state. [Full Topic] +// Encodes a draw command that renders multiple instances of tessellated patches with a control point index buffer and indirect arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866171-dispatchthreadspertile?language=objc -func (r_ RenderCommandEncoderObject) DispatchThreadsPerTile(threadsPerTile Size) { - objc.Call[objc.Void](r_, objc.Sel("dispatchThreadsPerTile:"), threadsPerTile) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639949-drawindexedpatches?language=objc +func (r_ RenderCommandEncoderObject) DrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, controlPointIndexBuffer BufferObject, controlPointIndexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) { + po1 := objc.WrapAsProtocol("MTLBuffer", patchIndexBuffer) + po3 := objc.WrapAsProtocol("MTLBuffer", controlPointIndexBuffer) + po5 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) + objc.Call[objc.Void](r_, objc.Sel("drawIndexedPatches:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:indirectBuffer:indirectBufferOffset:"), numberOfPatchControlPoints, po1, patchIndexBufferOffset, po3, controlPointIndexBufferOffset, po5, indirectBufferOffset) } -func (r_ RenderCommandEncoderObject) HasSetFragmentSamplerStatesLodMinClampsLodMaxClampsWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentSamplerStates:lodMinClamps:lodMaxClamps:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetTileSamplerStatesLodMinClampsLodMaxClampsWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setTileSamplerStates:lodMinClamps:lodMaxClamps:withRange:")) } -// Assigns multiple sampler states and clamp values to a range of entries in the fragment shader argument table. [Full Topic] +// Assigns multiple sampler states and clamp values to a range of entries in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515463-setfragmentsamplerstates?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866170-settilesamplerstates?language=objc +func (r_ RenderCommandEncoderObject) SetTileSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) { po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) -} - -func (r_ RenderCommandEncoderObject) HasSetStencilFrontReferenceValueBackReferenceValue() bool { - return r_.RespondsToSelector(objc.Sel("setStencilFrontReferenceValue:backReferenceValue:")) -} - -// Configures different comparison values for front- and back-facing primitives. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515522-setstencilfrontreferencevalue?language=objc -func (r_ RenderCommandEncoderObject) SetStencilFrontReferenceValueBackReferenceValue(frontReferenceValue uint32, backReferenceValue uint32) { - objc.Call[objc.Void](r_, objc.Sel("setStencilFrontReferenceValue:backReferenceValue:"), frontReferenceValue, backReferenceValue) + objc.Call[objc.Void](r_, objc.Sel("setTileSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) } -func (r_ RenderCommandEncoderObject) HasSetVertexTextureAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexTexture:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentTextureAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentTexture:atIndex:")) } -// Assigns a texture to an entry in the vertex shader argument table. [Full Topic] +// Assigns a texture to an entry in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515842-setvertextexture?language=objc -func (r_ RenderCommandEncoderObject) SetVertexTextureAtIndex(texture TextureObject, index uint) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515390-setfragmenttexture?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentTextureAtIndex(texture TextureObject, index uint) { po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](r_, objc.Sel("setVertexTexture:atIndex:"), po0, index) -} - -func (r_ RenderCommandEncoderObject) HasDrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstance() bool { - return r_.RespondsToSelector(objc.Sel("drawPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:instanceCount:baseInstance:")) -} - -// Encodes a draw command that renders multiple instances of tessellated patches. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639984-drawpatches?language=objc -func (r_ RenderCommandEncoderObject) DrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstance(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, instanceCount uint, baseInstance uint) { - po3 := objc.WrapAsProtocol("MTLBuffer", patchIndexBuffer) - objc.Call[objc.Void](r_, objc.Sel("drawPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:instanceCount:baseInstance:"), numberOfPatchControlPoints, patchStart, patchCount, po3, patchIndexBufferOffset, instanceCount, baseInstance) -} - -func (r_ RenderCommandEncoderObject) HasSetTessellationFactorScale() bool { - return r_.RespondsToSelector(objc.Sel("setTessellationFactorScale:")) -} - -// Configures the scale factor for per-patch tessellation factors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639992-settessellationfactorscale?language=objc -func (r_ RenderCommandEncoderObject) SetTessellationFactorScale(scale float32) { - objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorScale:"), scale) -} - -func (r_ RenderCommandEncoderObject) HasSetVertexBufferOffsetAtIndex_() bool { - return r_.RespondsToSelector(objc.Sel("setVertexBuffer:offset:atIndex:")) -} - -// Assigns a buffer to an entry in the vertex shader argument table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515829-setvertexbuffer?language=objc -func (r_ RenderCommandEncoderObject) SetVertexBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](r_, objc.Sel("setVertexBuffer:offset:atIndex:"), po0, offset, index) -} - -func (r_ RenderCommandEncoderObject) HasSetTileVisibleFunctionTableAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileVisibleFunctionTable:atBufferIndex:")) -} - -// Assigns a visible function table to an entry in the tile shader argument table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750561-settilevisiblefunctiontable?language=objc -func (r_ RenderCommandEncoderObject) SetTileVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTable) - objc.Call[objc.Void](r_, objc.Sel("setTileVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) -} - -func (r_ RenderCommandEncoderObject) HasSetVertexAccelerationStructureAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexAccelerationStructure:atBufferIndex:")) -} - -// Assigns an acceleration structure to an entry in the vertex shader argument table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750563-setvertexaccelerationstructure?language=objc -func (r_ RenderCommandEncoderObject) SetVertexAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - objc.Call[objc.Void](r_, objc.Sel("setVertexAccelerationStructure:atBufferIndex:"), po0, bufferIndex) + objc.Call[objc.Void](r_, objc.Sel("setFragmentTexture:atIndex:"), po0, index) } -func (r_ RenderCommandEncoderObject) HasSetTileTexturesWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setTileTextures:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetDepthStoreAction() bool { + return r_.RespondsToSelector(objc.Sel("setDepthStoreAction:")) } -// Assigns multiple textures to a range of entries in the tile shader argument table. [Full Topic] +// Configures the store action for the depth attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866172-settiletextures?language=objc -func (r_ RenderCommandEncoderObject) SetTileTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLTexture", textures) - objc.Call[objc.Void](r_, objc.Sel("setTileTextures:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1640036-setdepthstoreaction?language=objc +func (r_ RenderCommandEncoderObject) SetDepthStoreAction(storeAction StoreAction) { + objc.Call[objc.Void](r_, objc.Sel("setDepthStoreAction:"), storeAction) } -func (r_ RenderCommandEncoderObject) HasSetFragmentBuffersOffsetsWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentBuffers:offsets:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentSamplerStatesWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentSamplerStates:withRange:")) } -// Assigns multiple buffers to a range of entries in the fragment shader argument table. [Full Topic] +// Assigns multiple sampler states to a range of entries in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515724-setfragmentbuffers?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffers) - objc.Call[objc.Void](r_, objc.Sel("setFragmentBuffers:offsets:withRange:"), po0, offsets, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515970-setfragmentsamplerstates?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) + objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerStates:withRange:"), po0, range_) } -func (r_ RenderCommandEncoderObject) HasSetTileIntersectionFunctionTableAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileIntersectionFunctionTable:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasSetVisibilityResultModeOffset() bool { + return r_.RespondsToSelector(objc.Sel("setVisibilityResultMode:offset:")) } -// Assigns an intersection function table to an entry in the tile shader argument table. [Full Topic] +// Configures which visibility test the GPU runs and the destination for any results it generates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750559-settileintersectionfunctiontable?language=objc -func (r_ RenderCommandEncoderObject) SetTileIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTable) - objc.Call[objc.Void](r_, objc.Sel("setTileIntersectionFunctionTable:atBufferIndex:"), po0, bufferIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515556-setvisibilityresultmode?language=objc +func (r_ RenderCommandEncoderObject) SetVisibilityResultModeOffset(mode VisibilityResultMode, offset uint) { + objc.Call[objc.Void](r_, objc.Sel("setVisibilityResultMode:offset:"), mode, offset) } -func (r_ RenderCommandEncoderObject) HasSetTileBytesLengthAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileBytes:length:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetTileBufferOffsetAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileBufferOffset:atIndex:")) } -// Creates a buffer from bytes and assigns it to an entry in the tile shader argument table. [Full Topic] +// Updates an entry in the tile shader argument table with a new location within the entry’s current buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866175-settilebytes?language=objc -func (r_ RenderCommandEncoderObject) SetTileBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) { - objc.Call[objc.Void](r_, objc.Sel("setTileBytes:length:atIndex:"), bytes, length, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866159-settilebufferoffset?language=objc +func (r_ RenderCommandEncoderObject) SetTileBufferOffsetAtIndex(offset uint, index uint) { + objc.Call[objc.Void](r_, objc.Sel("setTileBufferOffset:atIndex:"), offset, index) } - -func (r_ RenderCommandEncoderObject) HasSetStencilStoreActionOptions() bool { - return r_.RespondsToSelector(objc.Sel("setStencilStoreActionOptions:")) + +func (r_ RenderCommandEncoderObject) HasSetFragmentBufferOffsetAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentBufferOffset:atIndex:")) } -// Configures the store action options for the stencil attachment. [Full Topic] +// Updates an entry in the fragment shader argument table with a new location within the entry’s current buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2919771-setstencilstoreactionoptions?language=objc -func (r_ RenderCommandEncoderObject) SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) { - objc.Call[objc.Void](r_, objc.Sel("setStencilStoreActionOptions:"), storeActionOptions) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515917-setfragmentbufferoffset?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentBufferOffsetAtIndex(offset uint, index uint) { + objc.Call[objc.Void](r_, objc.Sel("setFragmentBufferOffset:atIndex:"), offset, index) } -func (r_ RenderCommandEncoderObject) HasSetFragmentBufferOffsetAtIndex_() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentBuffer:offset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetVertexBufferOffsetAtIndex_() bool { + return r_.RespondsToSelector(objc.Sel("setVertexBuffer:offset:atIndex:")) } -// Assigns a buffer to an entry in the fragment shader argument table. [Full Topic] +// Assigns a buffer to an entry in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515470-setfragmentbuffer?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515829-setvertexbuffer?language=objc +func (r_ RenderCommandEncoderObject) SetVertexBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) { po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](r_, objc.Sel("setFragmentBuffer:offset:atIndex:"), po0, offset, index) + objc.Call[objc.Void](r_, objc.Sel("setVertexBuffer:offset:atIndex:"), po0, offset, index) } -func (r_ RenderCommandEncoderObject) HasExecuteCommandsInBufferWithRange() bool { - return r_.RespondsToSelector(objc.Sel("executeCommandsInBuffer:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetVertexIntersectionFunctionTableAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexIntersectionFunctionTable:atBufferIndex:")) } -// Encodes a command that runs a range of commands from an indirect command buffer (ICB). [Full Topic] +// Assigns an intersection function table to an entry in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2967440-executecommandsinbuffer?language=objc -func (r_ RenderCommandEncoderObject) ExecuteCommandsInBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, executionRange foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", indirectCommandBuffer) - objc.Call[objc.Void](r_, objc.Sel("executeCommandsInBuffer:withRange:"), po0, executionRange) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750564-setvertexintersectionfunctiontab?language=objc +func (r_ RenderCommandEncoderObject) SetVertexIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTable) + objc.Call[objc.Void](r_, objc.Sel("setVertexIntersectionFunctionTable:atBufferIndex:"), po0, bufferIndex) } func (r_ RenderCommandEncoderObject) HasSetTileBufferOffsetAtIndex_() bool { @@ -737,296 +521,296 @@ func (r_ RenderCommandEncoderObject) SetTileBufferOffsetAtIndex_(buffer BufferOb objc.Call[objc.Void](r_, objc.Sel("setTileBuffer:offset:atIndex:"), po0, offset, index) } -func (r_ RenderCommandEncoderObject) HasUseResourceUsageStages() bool { - return r_.RespondsToSelector(objc.Sel("useResource:usage:stages:")) +func (r_ RenderCommandEncoderObject) HasSetTessellationFactorBufferOffsetInstanceStride() bool { + return r_.RespondsToSelector(objc.Sel("setTessellationFactorBuffer:offset:instanceStride:")) } -// Ensures the shaders in the render pass’s subsequent draw commands have access to a resource. [Full Topic] +// Configures the per-patch tessellation factors for any subsequent patch-drawing commands. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3043404-useresource?language=objc -func (r_ RenderCommandEncoderObject) UseResourceUsageStages(resource ResourceObject, usage ResourceUsage, stages RenderStages) { - po0 := objc.WrapAsProtocol("MTLResource", resource) - objc.Call[objc.Void](r_, objc.Sel("useResource:usage:stages:"), po0, usage, stages) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1640035-settessellationfactorbuffer?language=objc +func (r_ RenderCommandEncoderObject) SetTessellationFactorBufferOffsetInstanceStride(buffer BufferObject, offset uint, instanceStride uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorBuffer:offset:instanceStride:"), po0, offset, instanceStride) } -func (r_ RenderCommandEncoderObject) HasSetColorStoreActionOptionsAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setColorStoreActionOptions:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetTileVisibleFunctionTableAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileVisibleFunctionTable:atBufferIndex:")) } -// Configures the store action options for a color attachment. [Full Topic] +// Assigns a visible function table to an entry in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2919773-setcolorstoreactionoptions?language=objc -func (r_ RenderCommandEncoderObject) SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) { - objc.Call[objc.Void](r_, objc.Sel("setColorStoreActionOptions:atIndex:"), storeActionOptions, colorAttachmentIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750561-settilevisiblefunctiontable?language=objc +func (r_ RenderCommandEncoderObject) SetTileVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTable) + objc.Call[objc.Void](r_, objc.Sel("setTileVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) } -func (r_ RenderCommandEncoderObject) HasSetFragmentTexturesWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentTextures:withRange:")) +func (r_ RenderCommandEncoderObject) HasDrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool { + return r_.RespondsToSelector(objc.Sel("drawPatches:patchIndexBuffer:patchIndexBufferOffset:indirectBuffer:indirectBufferOffset:")) } -// Assigns multiple textures to a range of entries in the fragment shader argument table. [Full Topic] +// Encodes a draw command that renders multiple instances of tessellated patches with indirect arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515878-setfragmenttextures?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLTexture", textures) - objc.Call[objc.Void](r_, objc.Sel("setFragmentTextures:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639895-drawpatches?language=objc +func (r_ RenderCommandEncoderObject) DrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) { + po1 := objc.WrapAsProtocol("MTLBuffer", patchIndexBuffer) + po3 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) + objc.Call[objc.Void](r_, objc.Sel("drawPatches:patchIndexBuffer:patchIndexBufferOffset:indirectBuffer:indirectBufferOffset:"), numberOfPatchControlPoints, po1, patchIndexBufferOffset, po3, indirectBufferOffset) } -func (r_ RenderCommandEncoderObject) HasSetTriangleFillMode() bool { - return r_.RespondsToSelector(objc.Sel("setTriangleFillMode:")) +func (r_ RenderCommandEncoderObject) HasUseResourceUsageStages() bool { + return r_.RespondsToSelector(objc.Sel("useResource:usage:stages:")) } -// Configures how subsequent draw commands rasterize triangle and triangle strip primitives. [Full Topic] +// Ensures the shaders in the render pass’s subsequent draw commands have access to a resource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516029-settrianglefillmode?language=objc -func (r_ RenderCommandEncoderObject) SetTriangleFillMode(fillMode TriangleFillMode) { - objc.Call[objc.Void](r_, objc.Sel("setTriangleFillMode:"), fillMode) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3043404-useresource?language=objc +func (r_ RenderCommandEncoderObject) UseResourceUsageStages(resource ResourceObject, usage ResourceUsage, stages RenderStages) { + po0 := objc.WrapAsProtocol("MTLResource", resource) + objc.Call[objc.Void](r_, objc.Sel("useResource:usage:stages:"), po0, usage, stages) } -func (r_ RenderCommandEncoderObject) HasSetTileSamplerStatesWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setTileSamplerStates:withRange:")) +func (r_ RenderCommandEncoderObject) HasDrawPrimitivesVertexStartVertexCount() bool { + return r_.RespondsToSelector(objc.Sel("drawPrimitives:vertexStart:vertexCount:")) } -// Assigns multiple sampler states to a range of entries in the tile shader argument table. [Full Topic] +// Encodes a draw command that renders an instance of a geometric primitive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866161-settilesamplerstates?language=objc -func (r_ RenderCommandEncoderObject) SetTileSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](r_, objc.Sel("setTileSamplerStates:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516326-drawprimitives?language=objc +func (r_ RenderCommandEncoderObject) DrawPrimitivesVertexStartVertexCount(primitiveType PrimitiveType, vertexStart uint, vertexCount uint) { + objc.Call[objc.Void](r_, objc.Sel("drawPrimitives:vertexStart:vertexCount:"), primitiveType, vertexStart, vertexCount) } -func (r_ RenderCommandEncoderObject) HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount() bool { - return r_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:")) +func (r_ RenderCommandEncoderObject) HasSetVertexBuffersOffsetsWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setVertexBuffers:offsets:withRange:")) } -// Encodes a draw command that renders multiple instances of a geometric primitive with indexed vertices. [Full Topic] +// Assigns multiple buffers to a range of entries in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515699-drawindexedprimitives?language=objc -func (r_ RenderCommandEncoderObject) DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint) { - po3 := objc.WrapAsProtocol("MTLBuffer", indexBuffer) - objc.Call[objc.Void](r_, objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:"), primitiveType, indexCount, indexType, po3, indexBufferOffset, instanceCount) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515987-setvertexbuffers?language=objc +func (r_ RenderCommandEncoderObject) SetVertexBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffers) + objc.Call[objc.Void](r_, objc.Sel("setVertexBuffers:offsets:withRange:"), po0, offsets, range_) } -func (r_ RenderCommandEncoderObject) HasSetFragmentBytesLengthAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentBytes:length:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentBufferOffsetAtIndex_() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentBuffer:offset:atIndex:")) } -// Creates a buffer from bytes and assigns it to an entry in the fragment shader argument table. [Full Topic] +// Assigns a buffer to an entry in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516192-setfragmentbytes?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) { - objc.Call[objc.Void](r_, objc.Sel("setFragmentBytes:length:atIndex:"), bytes, length, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515470-setfragmentbuffer?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](r_, objc.Sel("setFragmentBuffer:offset:atIndex:"), po0, offset, index) } -func (r_ RenderCommandEncoderObject) HasUseResourcesCountUsageStages() bool { - return r_.RespondsToSelector(objc.Sel("useResources:count:usage:stages:")) +func (r_ RenderCommandEncoderObject) HasSetDepthStencilState() bool { + return r_.RespondsToSelector(objc.Sel("setDepthStencilState:")) } -// Ensures the shaders in the render pass’s subsequent draw commands have access to multiple resources. [Full Topic] +// Configures the combined depth and stencil state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3043405-useresources?language=objc -func (r_ RenderCommandEncoderObject) UseResourcesCountUsageStages(resources unsafe.Pointer, count uint, usage ResourceUsage, stages RenderStages) { - po0 := objc.WrapAsProtocol("MTLResource", resources) - objc.Call[objc.Void](r_, objc.Sel("useResources:count:usage:stages:"), po0, count, usage, stages) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516119-setdepthstencilstate?language=objc +func (r_ RenderCommandEncoderObject) SetDepthStencilState(depthStencilState DepthStencilStateObject) { + po0 := objc.WrapAsProtocol("MTLDepthStencilState", depthStencilState) + objc.Call[objc.Void](r_, objc.Sel("setDepthStencilState:"), po0) } -func (r_ RenderCommandEncoderObject) HasSetStencilReferenceValue() bool { - return r_.RespondsToSelector(objc.Sel("setStencilReferenceValue:")) +func (r_ RenderCommandEncoderObject) HasSetVertexAccelerationStructureAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexAccelerationStructure:atBufferIndex:")) } -// Configures the same comparison value for front- and back-facing primitives. [Full Topic] +// Assigns an acceleration structure to an entry in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515697-setstencilreferencevalue?language=objc -func (r_ RenderCommandEncoderObject) SetStencilReferenceValue(referenceValue uint32) { - objc.Call[objc.Void](r_, objc.Sel("setStencilReferenceValue:"), referenceValue) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750563-setvertexaccelerationstructure?language=objc +func (r_ RenderCommandEncoderObject) SetVertexAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) + objc.Call[objc.Void](r_, objc.Sel("setVertexAccelerationStructure:atBufferIndex:"), po0, bufferIndex) } -func (r_ RenderCommandEncoderObject) HasDrawPrimitivesVertexStartVertexCount() bool { - return r_.RespondsToSelector(objc.Sel("drawPrimitives:vertexStart:vertexCount:")) +func (r_ RenderCommandEncoderObject) HasSetVertexBytesLengthAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexBytes:length:atIndex:")) } -// Encodes a draw command that renders an instance of a geometric primitive. [Full Topic] +// Creates a buffer from bytes and assigns it to an entry in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516326-drawprimitives?language=objc -func (r_ RenderCommandEncoderObject) DrawPrimitivesVertexStartVertexCount(primitiveType PrimitiveType, vertexStart uint, vertexCount uint) { - objc.Call[objc.Void](r_, objc.Sel("drawPrimitives:vertexStart:vertexCount:"), primitiveType, vertexStart, vertexCount) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515846-setvertexbytes?language=objc +func (r_ RenderCommandEncoderObject) SetVertexBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) { + objc.Call[objc.Void](r_, objc.Sel("setVertexBytes:length:atIndex:"), bytes, length, index) } -func (r_ RenderCommandEncoderObject) HasSetThreadgroupMemoryLengthOffsetAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:offset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetVertexAmplificationCountViewMappings() bool { + return r_.RespondsToSelector(objc.Sel("setVertexAmplificationCount:viewMappings:")) } -// Configures the size of a threadgroup memory buffer for an entry in the fragment or tile shader argument table. [Full Topic] +// Configures the number of output vertices the render pipeline produces for each input vertex, optionally with render target and viewport offsets. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866165-setthreadgroupmemorylength?language=objc -func (r_ RenderCommandEncoderObject) SetThreadgroupMemoryLengthOffsetAtIndex(length uint, offset uint, index uint) { - objc.Call[objc.Void](r_, objc.Sel("setThreadgroupMemoryLength:offset:atIndex:"), length, offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3088849-setvertexamplificationcount?language=objc +func (r_ RenderCommandEncoderObject) SetVertexAmplificationCountViewMappings(count uint, viewMappings *VertexAmplificationViewMapping) { + objc.Call[objc.Void](r_, objc.Sel("setVertexAmplificationCount:viewMappings:"), count, viewMappings) } -func (r_ RenderCommandEncoderObject) HasSetFragmentSamplerStatesWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentSamplerStates:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetScissorRect() bool { + return r_.RespondsToSelector(objc.Sel("setScissorRect:")) } -// Assigns multiple sampler states to a range of entries in the fragment shader argument table. [Full Topic] +// Configures a rectangle for the fragment scissor test. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515970-setfragmentsamplerstates?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerStates:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515583-setscissorrect?language=objc +func (r_ RenderCommandEncoderObject) SetScissorRect(rect ScissorRect) { + objc.Call[objc.Void](r_, objc.Sel("setScissorRect:"), rect) } -func (r_ RenderCommandEncoderObject) HasSetFragmentIntersectionFunctionTableAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentIntersectionFunctionTable:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasSetTileTextureAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileTexture:atIndex:")) } -// Assigns an intersection function table to an entry in the fragment shader argument table. [Full Topic] +// Assigns a texture to an entry in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750554-setfragmentintersectionfunctiont?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTable) - objc.Call[objc.Void](r_, objc.Sel("setFragmentIntersectionFunctionTable:atBufferIndex:"), po0, bufferIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866173-settiletexture?language=objc +func (r_ RenderCommandEncoderObject) SetTileTextureAtIndex(texture TextureObject, index uint) { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + objc.Call[objc.Void](r_, objc.Sel("setTileTexture:atIndex:"), po0, index) } -func (r_ RenderCommandEncoderObject) HasSetFragmentIntersectionFunctionTablesWithBufferRange() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentIntersectionFunctionTables:withBufferRange:")) +func (r_ RenderCommandEncoderObject) HasSetVertexSamplerStateLodMinClampLodMaxClampAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexSamplerState:lodMinClamp:lodMaxClamp:atIndex:")) } -// Assigns multiple intersection function tables to a range of entries in the fragment shader argument table. [Full Topic] +// Assigns a sampler state and clamp values to an entry in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750555-setfragmentintersectionfunctiont?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) - objc.Call[objc.Void](r_, objc.Sel("setFragmentIntersectionFunctionTables:withBufferRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515864-setvertexsamplerstate?language=objc +func (r_ RenderCommandEncoderObject) SetVertexSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float32, lodMaxClamp float32, index uint) { + po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) + objc.Call[objc.Void](r_, objc.Sel("setVertexSamplerState:lodMinClamp:lodMaxClamp:atIndex:"), po0, lodMinClamp, lodMaxClamp, index) } -func (r_ RenderCommandEncoderObject) HasDrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool { - return r_.RespondsToSelector(objc.Sel("drawIndexedPatches:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:indirectBuffer:indirectBufferOffset:")) +func (r_ RenderCommandEncoderObject) HasSetStencilFrontReferenceValueBackReferenceValue() bool { + return r_.RespondsToSelector(objc.Sel("setStencilFrontReferenceValue:backReferenceValue:")) } -// Encodes a draw command that renders multiple instances of tessellated patches with a control point index buffer and indirect arguments. [Full Topic] +// Configures different comparison values for front- and back-facing primitives. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639949-drawindexedpatches?language=objc -func (r_ RenderCommandEncoderObject) DrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, controlPointIndexBuffer BufferObject, controlPointIndexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) { - po1 := objc.WrapAsProtocol("MTLBuffer", patchIndexBuffer) - po3 := objc.WrapAsProtocol("MTLBuffer", controlPointIndexBuffer) - po5 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) - objc.Call[objc.Void](r_, objc.Sel("drawIndexedPatches:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:indirectBuffer:indirectBufferOffset:"), numberOfPatchControlPoints, po1, patchIndexBufferOffset, po3, controlPointIndexBufferOffset, po5, indirectBufferOffset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515522-setstencilfrontreferencevalue?language=objc +func (r_ RenderCommandEncoderObject) SetStencilFrontReferenceValueBackReferenceValue(frontReferenceValue uint32, backReferenceValue uint32) { + objc.Call[objc.Void](r_, objc.Sel("setStencilFrontReferenceValue:backReferenceValue:"), frontReferenceValue, backReferenceValue) } -func (r_ RenderCommandEncoderObject) HasSetVertexSamplerStatesWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setVertexSamplerStates:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetVertexVisibleFunctionTablesWithBufferRange() bool { + return r_.RespondsToSelector(objc.Sel("setVertexVisibleFunctionTables:withBufferRange:")) } -// Assigns multiple sampler states to a range of entries in the vertex shader argument table. [Full Topic] +// Assigns multiple visible function tables to a range of entries in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515400-setvertexsamplerstates?language=objc -func (r_ RenderCommandEncoderObject) SetVertexSamplerStatesWithRange(samplers unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](r_, objc.Sel("setVertexSamplerStates:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750567-setvertexvisiblefunctiontables?language=objc +func (r_ RenderCommandEncoderObject) SetVertexVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) + objc.Call[objc.Void](r_, objc.Sel("setVertexVisibleFunctionTables:withBufferRange:"), po0, range_) } -func (r_ RenderCommandEncoderObject) HasSetFragmentSamplerStateLodMinClampLodMaxClampAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentSamplerState:lodMinClamp:lodMaxClamp:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetStencilStoreAction() bool { + return r_.RespondsToSelector(objc.Sel("setStencilStoreAction:")) } -// Assigns a sampler state and clamp values to an entry in the fragment shader argument table. [Full Topic] +// Configures the store action for the stencil attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515485-setfragmentsamplerstate?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float32, lodMaxClamp float32, index uint) { - po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) - objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerState:lodMinClamp:lodMaxClamp:atIndex:"), po0, lodMinClamp, lodMaxClamp, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639936-setstencilstoreaction?language=objc +func (r_ RenderCommandEncoderObject) SetStencilStoreAction(storeAction StoreAction) { + objc.Call[objc.Void](r_, objc.Sel("setStencilStoreAction:"), storeAction) } -func (r_ RenderCommandEncoderObject) HasSetTileBufferOffsetAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileBufferOffset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetCullMode() bool { + return r_.RespondsToSelector(objc.Sel("setCullMode:")) } -// Updates an entry in the tile shader argument table with a new location within the entry’s current buffer. [Full Topic] +// Configures how the render pipeline determines which primitives to remove. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866159-settilebufferoffset?language=objc -func (r_ RenderCommandEncoderObject) SetTileBufferOffsetAtIndex(offset uint, index uint) { - objc.Call[objc.Void](r_, objc.Sel("setTileBufferOffset:atIndex:"), offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515975-setcullmode?language=objc +func (r_ RenderCommandEncoderObject) SetCullMode(cullMode CullMode) { + objc.Call[objc.Void](r_, objc.Sel("setCullMode:"), cullMode) } -func (r_ RenderCommandEncoderObject) HasSetFragmentVisibleFunctionTableAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentVisibleFunctionTable:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasSetTriangleFillMode() bool { + return r_.RespondsToSelector(objc.Sel("setTriangleFillMode:")) } -// Assigns a visible function table to an entry in the fragment shader argument table. [Full Topic] +// Configures how subsequent draw commands rasterize triangle and triangle strip primitives. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750556-setfragmentvisiblefunctiontable?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTable) - objc.Call[objc.Void](r_, objc.Sel("setFragmentVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516029-settrianglefillmode?language=objc +func (r_ RenderCommandEncoderObject) SetTriangleFillMode(fillMode TriangleFillMode) { + objc.Call[objc.Void](r_, objc.Sel("setTriangleFillMode:"), fillMode) } -func (r_ RenderCommandEncoderObject) HasSetTessellationFactorBufferOffsetInstanceStride() bool { - return r_.RespondsToSelector(objc.Sel("setTessellationFactorBuffer:offset:instanceStride:")) +func (r_ RenderCommandEncoderObject) HasSetTileTexturesWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setTileTextures:withRange:")) } -// Configures the per-patch tessellation factors for any subsequent patch-drawing commands. [Full Topic] +// Assigns multiple textures to a range of entries in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1640035-settessellationfactorbuffer?language=objc -func (r_ RenderCommandEncoderObject) SetTessellationFactorBufferOffsetInstanceStride(buffer BufferObject, offset uint, instanceStride uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorBuffer:offset:instanceStride:"), po0, offset, instanceStride) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866172-settiletextures?language=objc +func (r_ RenderCommandEncoderObject) SetTileTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLTexture", textures) + objc.Call[objc.Void](r_, objc.Sel("setTileTextures:withRange:"), po0, range_) } -func (r_ RenderCommandEncoderObject) HasSetVertexSamplerStateLodMinClampLodMaxClampAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexSamplerState:lodMinClamp:lodMaxClamp:atIndex:")) +func (r_ RenderCommandEncoderObject) HasMemoryBarrierWithResourcesCountAfterStagesBeforeStages() bool { + return r_.RespondsToSelector(objc.Sel("memoryBarrierWithResources:count:afterStages:beforeStages:")) } -// Assigns a sampler state and clamp values to an entry in the vertex shader argument table. [Full Topic] +// Creates a memory barrier that enforces the order of write and read operations for specific resources. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515864-setvertexsamplerstate?language=objc -func (r_ RenderCommandEncoderObject) SetVertexSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float32, lodMaxClamp float32, index uint) { - po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) - objc.Call[objc.Void](r_, objc.Sel("setVertexSamplerState:lodMinClamp:lodMaxClamp:atIndex:"), po0, lodMinClamp, lodMaxClamp, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2967441-memorybarrierwithresources?language=objc +func (r_ RenderCommandEncoderObject) MemoryBarrierWithResourcesCountAfterStagesBeforeStages(resources unsafe.Pointer, count uint, after RenderStages, before RenderStages) { + po0 := objc.WrapAsProtocol("MTLResource", resources) + objc.Call[objc.Void](r_, objc.Sel("memoryBarrierWithResources:count:afterStages:beforeStages:"), po0, count, after, before) } -func (r_ RenderCommandEncoderObject) HasSetFragmentVisibleFunctionTablesWithBufferRange() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentVisibleFunctionTables:withBufferRange:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentAccelerationStructureAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentAccelerationStructure:atBufferIndex:")) } -// Assigns multiple visible function tables to a range of entries in the fragment shader argument table. [Full Topic] +// Assigns an acceleration structure to an entry in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750557-setfragmentvisiblefunctiontables?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) - objc.Call[objc.Void](r_, objc.Sel("setFragmentVisibleFunctionTables:withBufferRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750553-setfragmentaccelerationstructure?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) + objc.Call[objc.Void](r_, objc.Sel("setFragmentAccelerationStructure:atBufferIndex:"), po0, bufferIndex) } -func (r_ RenderCommandEncoderObject) HasSetStencilStoreAction() bool { - return r_.RespondsToSelector(objc.Sel("setStencilStoreAction:")) +func (r_ RenderCommandEncoderObject) HasSetDepthBiasSlopeScaleClamp() bool { + return r_.RespondsToSelector(objc.Sel("setDepthBias:slopeScale:clamp:")) } -// Configures the store action for the stencil attachment. [Full Topic] +// Configures the adjustments a render pass applies to depth values from fragment functions by a scaling factor and bias. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639936-setstencilstoreaction?language=objc -func (r_ RenderCommandEncoderObject) SetStencilStoreAction(storeAction StoreAction) { - objc.Call[objc.Void](r_, objc.Sel("setStencilStoreAction:"), storeAction) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516269-setdepthbias?language=objc +func (r_ RenderCommandEncoderObject) SetDepthBiasSlopeScaleClamp(depthBias float32, slopeScale float32, clamp float32) { + objc.Call[objc.Void](r_, objc.Sel("setDepthBias:slopeScale:clamp:"), depthBias, slopeScale, clamp) } -func (r_ RenderCommandEncoderObject) HasSetViewportsCount() bool { - return r_.RespondsToSelector(objc.Sel("setViewports:count:")) +func (r_ RenderCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { + return r_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) } -// Configures the render pipeline with multiple viewports that apply transformations and clipping rectangles. [Full Topic] +// Encodes a command that samples hardware counters during the render pass and stores the data into a counter sample buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2869738-setviewports?language=objc -func (r_ RenderCommandEncoderObject) SetViewportsCount(viewports *Viewport, count uint) { - objc.Call[objc.Void](r_, objc.Sel("setViewports:count:"), viewports, count) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3194379-samplecountersinbuffer?language=objc +func (r_ RenderCommandEncoderObject) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) { + po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) + objc.Call[objc.Void](r_, objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:"), po0, sampleIndex, barrier) } -func (r_ RenderCommandEncoderObject) HasSetBlendColorRedGreenBlueAlpha() bool { - return r_.RespondsToSelector(objc.Sel("setBlendColorRed:green:blue:alpha:")) +func (r_ RenderCommandEncoderObject) HasSetTileIntersectionFunctionTableAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileIntersectionFunctionTable:atBufferIndex:")) } -// Configures each pixel component value, including alpha, for the render pipeline’s constant blend color. [Full Topic] +// Assigns an intersection function table to an entry in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515592-setblendcolorred?language=objc -func (r_ RenderCommandEncoderObject) SetBlendColorRedGreenBlueAlpha(red float32, green float32, blue float32, alpha float32) { - objc.Call[objc.Void](r_, objc.Sel("setBlendColorRed:green:blue:alpha:"), red, green, blue, alpha) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750559-settileintersectionfunctiontable?language=objc +func (r_ RenderCommandEncoderObject) SetTileIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTable) + objc.Call[objc.Void](r_, objc.Sel("setTileIntersectionFunctionTable:atBufferIndex:"), po0, bufferIndex) } func (r_ RenderCommandEncoderObject) HasSetRenderPipelineState() bool { @@ -1041,40 +825,38 @@ func (r_ RenderCommandEncoderObject) SetRenderPipelineState(pipelineState Render objc.Call[objc.Void](r_, objc.Sel("setRenderPipelineState:"), po0) } -func (r_ RenderCommandEncoderObject) HasDrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance() bool { - return r_.RespondsToSelector(objc.Sel("drawPrimitives:vertexStart:vertexCount:instanceCount:baseInstance:")) +func (r_ RenderCommandEncoderObject) HasSetTileBytesLengthAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileBytes:length:atIndex:")) } -// Encodes a draw command that renders multiple instances of a geometric primitive that starts with a custom instance identification number. [Full Topic] +// Creates a buffer from bytes and assigns it to an entry in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515561-drawprimitives?language=objc -func (r_ RenderCommandEncoderObject) DrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance(primitiveType PrimitiveType, vertexStart uint, vertexCount uint, instanceCount uint, baseInstance uint) { - objc.Call[objc.Void](r_, objc.Sel("drawPrimitives:vertexStart:vertexCount:instanceCount:baseInstance:"), primitiveType, vertexStart, vertexCount, instanceCount, baseInstance) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866175-settilebytes?language=objc +func (r_ RenderCommandEncoderObject) SetTileBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) { + objc.Call[objc.Void](r_, objc.Sel("setTileBytes:length:atIndex:"), bytes, length, index) } -func (r_ RenderCommandEncoderObject) HasUpdateFenceAfterStages() bool { - return r_.RespondsToSelector(objc.Sel("updateFence:afterStages:")) +func (r_ RenderCommandEncoderObject) HasExecuteCommandsInBufferWithRange() bool { + return r_.RespondsToSelector(objc.Sel("executeCommandsInBuffer:withRange:")) } -// Encodes a command that instructs the GPU to update a fence after one or more stages, which signals passes waiting on the fence. [Full Topic] +// Encodes a command that runs a range of commands from an indirect command buffer (ICB). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1648377-updatefence?language=objc -func (r_ RenderCommandEncoderObject) UpdateFenceAfterStages(fence FenceObject, stages RenderStages) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](r_, objc.Sel("updateFence:afterStages:"), po0, stages) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2967440-executecommandsinbuffer?language=objc +func (r_ RenderCommandEncoderObject) ExecuteCommandsInBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, executionRange foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", indirectCommandBuffer) + objc.Call[objc.Void](r_, objc.Sel("executeCommandsInBuffer:withRange:"), po0, executionRange) } -func (r_ RenderCommandEncoderObject) HasDrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool { - return r_.RespondsToSelector(objc.Sel("drawPatches:patchIndexBuffer:patchIndexBufferOffset:indirectBuffer:indirectBufferOffset:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentBytesLengthAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentBytes:length:atIndex:")) } -// Encodes a draw command that renders multiple instances of tessellated patches with indirect arguments. [Full Topic] +// Creates a buffer from bytes and assigns it to an entry in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639895-drawpatches?language=objc -func (r_ RenderCommandEncoderObject) DrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) { - po1 := objc.WrapAsProtocol("MTLBuffer", patchIndexBuffer) - po3 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) - objc.Call[objc.Void](r_, objc.Sel("drawPatches:patchIndexBuffer:patchIndexBufferOffset:indirectBuffer:indirectBufferOffset:"), numberOfPatchControlPoints, po1, patchIndexBufferOffset, po3, indirectBufferOffset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516192-setfragmentbytes?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) { + objc.Call[objc.Void](r_, objc.Sel("setFragmentBytes:length:atIndex:"), bytes, length, index) } func (r_ RenderCommandEncoderObject) HasSetTileBuffersOffsetsWithRange() bool { @@ -1100,74 +882,63 @@ func (r_ RenderCommandEncoderObject) MemoryBarrierWithScopeAfterStagesBeforeStag objc.Call[objc.Void](r_, objc.Sel("memoryBarrierWithScope:afterStages:beforeStages:"), scope, after, before) } -func (r_ RenderCommandEncoderObject) HasSetTileAccelerationStructureAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileAccelerationStructure:atBufferIndex:")) -} - -// Assigns an acceleration structure to an entry in the tile shader argument table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750558-settileaccelerationstructure?language=objc -func (r_ RenderCommandEncoderObject) SetTileAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - objc.Call[objc.Void](r_, objc.Sel("setTileAccelerationStructure:atBufferIndex:"), po0, bufferIndex) -} - -func (r_ RenderCommandEncoderObject) HasSetFrontFacingWinding() bool { - return r_.RespondsToSelector(objc.Sel("setFrontFacingWinding:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentIntersectionFunctionTableAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentIntersectionFunctionTable:atBufferIndex:")) } -// Configures which face of a primitive, such as a triangle, is the front. [Full Topic] +// Assigns an intersection function table to an entry in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515499-setfrontfacingwinding?language=objc -func (r_ RenderCommandEncoderObject) SetFrontFacingWinding(frontFacingWinding Winding) { - objc.Call[objc.Void](r_, objc.Sel("setFrontFacingWinding:"), frontFacingWinding) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750554-setfragmentintersectionfunctiont?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTable) + objc.Call[objc.Void](r_, objc.Sel("setFragmentIntersectionFunctionTable:atBufferIndex:"), po0, bufferIndex) } -func (r_ RenderCommandEncoderObject) HasUseHeapStages() bool { - return r_.RespondsToSelector(objc.Sel("useHeap:stages:")) +func (r_ RenderCommandEncoderObject) HasDispatchThreadsPerTile() bool { + return r_.RespondsToSelector(objc.Sel("dispatchThreadsPerTile:")) } -// Ensures the shaders in the render pass’s subsequent draw commands have access to the resources you allocate from a heap. [Full Topic] +// Encodes a command that invokes GPU functions from the encoder’s current tile render pipeline state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3043402-useheap?language=objc -func (r_ RenderCommandEncoderObject) UseHeapStages(heap HeapObject, stages RenderStages) { - po0 := objc.WrapAsProtocol("MTLHeap", heap) - objc.Call[objc.Void](r_, objc.Sel("useHeap:stages:"), po0, stages) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866171-dispatchthreadspertile?language=objc +func (r_ RenderCommandEncoderObject) DispatchThreadsPerTile(threadsPerTile Size) { + objc.Call[objc.Void](r_, objc.Sel("dispatchThreadsPerTile:"), threadsPerTile) } -func (r_ RenderCommandEncoderObject) HasSetFragmentAccelerationStructureAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentAccelerationStructure:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentVisibleFunctionTablesWithBufferRange() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentVisibleFunctionTables:withBufferRange:")) } -// Assigns an acceleration structure to an entry in the fragment shader argument table. [Full Topic] +// Assigns multiple visible function tables to a range of entries in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750553-setfragmentaccelerationstructure?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - objc.Call[objc.Void](r_, objc.Sel("setFragmentAccelerationStructure:atBufferIndex:"), po0, bufferIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750557-setfragmentvisiblefunctiontables?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) + objc.Call[objc.Void](r_, objc.Sel("setFragmentVisibleFunctionTables:withBufferRange:"), po0, range_) } -func (r_ RenderCommandEncoderObject) HasSetTileIntersectionFunctionTablesWithBufferRange() bool { - return r_.RespondsToSelector(objc.Sel("setTileIntersectionFunctionTables:withBufferRange:")) +func (r_ RenderCommandEncoderObject) HasSetVertexTexturesWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setVertexTextures:withRange:")) } -// Assigns multiple intersection function tables to a range of entries in the tile shader argument table. [Full Topic] +// Assigns multiple textures to a range of entries in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750560-settileintersectionfunctiontable?language=objc -func (r_ RenderCommandEncoderObject) SetTileIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) - objc.Call[objc.Void](r_, objc.Sel("setTileIntersectionFunctionTables:withBufferRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516109-setvertextextures?language=objc +func (r_ RenderCommandEncoderObject) SetVertexTexturesWithRange(textures unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLTexture", textures) + objc.Call[objc.Void](r_, objc.Sel("setVertexTextures:withRange:"), po0, range_) } -func (r_ RenderCommandEncoderObject) HasDrawPrimitivesVertexStartVertexCountInstanceCount() bool { - return r_.RespondsToSelector(objc.Sel("drawPrimitives:vertexStart:vertexCount:instanceCount:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentSamplerStateAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentSamplerState:atIndex:")) } -// Encodes a draw command that renders multiple instances of a geometric primitive. [Full Topic] +// Assigns a sampler state to an entry in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515327-drawprimitives?language=objc -func (r_ RenderCommandEncoderObject) DrawPrimitivesVertexStartVertexCountInstanceCount(primitiveType PrimitiveType, vertexStart uint, vertexCount uint, instanceCount uint) { - objc.Call[objc.Void](r_, objc.Sel("drawPrimitives:vertexStart:vertexCount:instanceCount:"), primitiveType, vertexStart, vertexCount, instanceCount) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515577-setfragmentsamplerstate?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentSamplerStateAtIndex(sampler SamplerStateObject, index uint) { + po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) + objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerState:atIndex:"), po0, index) } func (r_ RenderCommandEncoderObject) HasSetTileSamplerStateAtIndex() bool { @@ -1181,214 +952,142 @@ func (r_ RenderCommandEncoderObject) SetTileSamplerStateAtIndex(sampler SamplerS po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) objc.Call[objc.Void](r_, objc.Sel("setTileSamplerState:atIndex:"), po0, index) } - -func (r_ RenderCommandEncoderObject) HasSetDepthBiasSlopeScaleClamp() bool { - return r_.RespondsToSelector(objc.Sel("setDepthBias:slopeScale:clamp:")) -} - -// Configures the adjustments a render pass applies to depth values from fragment functions by a scaling factor and bias. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516269-setdepthbias?language=objc -func (r_ RenderCommandEncoderObject) SetDepthBiasSlopeScaleClamp(depthBias float32, slopeScale float32, clamp float32) { - objc.Call[objc.Void](r_, objc.Sel("setDepthBias:slopeScale:clamp:"), depthBias, slopeScale, clamp) -} - -func (r_ RenderCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { - return r_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) -} - -// Encodes a command that samples hardware counters during the render pass and stores the data into a counter sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3194379-samplecountersinbuffer?language=objc -func (r_ RenderCommandEncoderObject) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) { - po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) - objc.Call[objc.Void](r_, objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:"), po0, sampleIndex, barrier) -} - -func (r_ RenderCommandEncoderObject) HasSetColorStoreActionAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setColorStoreAction:atIndex:")) -} - -// Configures the store action for a color attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1640054-setcolorstoreaction?language=objc -func (r_ RenderCommandEncoderObject) SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) { - objc.Call[objc.Void](r_, objc.Sel("setColorStoreAction:atIndex:"), storeAction, colorAttachmentIndex) -} - -func (r_ RenderCommandEncoderObject) HasSetTileSamplerStateLodMinClampLodMaxClampAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileSamplerState:lodMinClamp:lodMaxClamp:atIndex:")) -} - -// Assigns a sampler state and clamp values to an entry in the tile shader argument table. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866160-settilesamplerstate?language=objc -func (r_ RenderCommandEncoderObject) SetTileSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float32, lodMaxClamp float32, index uint) { - po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) - objc.Call[objc.Void](r_, objc.Sel("setTileSamplerState:lodMinClamp:lodMaxClamp:atIndex:"), po0, lodMinClamp, lodMaxClamp, index) -} - -func (r_ RenderCommandEncoderObject) HasSetScissorRectsCount() bool { - return r_.RespondsToSelector(objc.Sel("setScissorRects:count:")) -} - -// Configures multiple rectangles for the fragment scissor test. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2869722-setscissorrects?language=objc -func (r_ RenderCommandEncoderObject) SetScissorRectsCount(scissorRects *ScissorRect, count uint) { - objc.Call[objc.Void](r_, objc.Sel("setScissorRects:count:"), scissorRects, count) -} - -func (r_ RenderCommandEncoderObject) HasWaitForFenceBeforeStages() bool { - return r_.RespondsToSelector(objc.Sel("waitForFence:beforeStages:")) -} - -// Encodes a command that instructs the GPU to pause before starting one or more stages of the render pass until a pass updates a fence. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1648378-waitforfence?language=objc -func (r_ RenderCommandEncoderObject) WaitForFenceBeforeStages(fence FenceObject, stages RenderStages) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](r_, objc.Sel("waitForFence:beforeStages:"), po0, stages) -} - -func (r_ RenderCommandEncoderObject) HasUseHeapsCountStages() bool { - return r_.RespondsToSelector(objc.Sel("useHeaps:count:stages:")) + +func (r_ RenderCommandEncoderObject) HasSetColorStoreActionOptionsAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setColorStoreActionOptions:atIndex:")) } -// Ensures the shaders in the render pass’s subsequent draw commands have access to the resources you allocate from multiple heaps. [Full Topic] +// Configures the store action options for a color attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3043403-useheaps?language=objc -func (r_ RenderCommandEncoderObject) UseHeapsCountStages(heaps unsafe.Pointer, count uint, stages RenderStages) { - po0 := objc.WrapAsProtocol("MTLHeap", heaps) - objc.Call[objc.Void](r_, objc.Sel("useHeaps:count:stages:"), po0, count, stages) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2919773-setcolorstoreactionoptions?language=objc +func (r_ RenderCommandEncoderObject) SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) { + objc.Call[objc.Void](r_, objc.Sel("setColorStoreActionOptions:atIndex:"), storeActionOptions, colorAttachmentIndex) } -func (r_ RenderCommandEncoderObject) HasSetVertexBuffersOffsetsWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setVertexBuffers:offsets:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetVertexTextureAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexTexture:atIndex:")) } -// Assigns multiple buffers to a range of entries in the vertex shader argument table. [Full Topic] +// Assigns a texture to an entry in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515987-setvertexbuffers?language=objc -func (r_ RenderCommandEncoderObject) SetVertexBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffers) - objc.Call[objc.Void](r_, objc.Sel("setVertexBuffers:offsets:withRange:"), po0, offsets, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515842-setvertextexture?language=objc +func (r_ RenderCommandEncoderObject) SetVertexTextureAtIndex(texture TextureObject, index uint) { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + objc.Call[objc.Void](r_, objc.Sel("setVertexTexture:atIndex:"), po0, index) } -func (r_ RenderCommandEncoderObject) HasSetFragmentTextureAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentTexture:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetTessellationFactorScale() bool { + return r_.RespondsToSelector(objc.Sel("setTessellationFactorScale:")) } -// Assigns a texture to an entry in the fragment shader argument table. [Full Topic] +// Configures the scale factor for per-patch tessellation factors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515390-setfragmenttexture?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentTextureAtIndex(texture TextureObject, index uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](r_, objc.Sel("setFragmentTexture:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639992-settessellationfactorscale?language=objc +func (r_ RenderCommandEncoderObject) SetTessellationFactorScale(scale float32) { + objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorScale:"), scale) } -func (r_ RenderCommandEncoderObject) HasSetVertexAmplificationCountViewMappings() bool { - return r_.RespondsToSelector(objc.Sel("setVertexAmplificationCount:viewMappings:")) +func (r_ RenderCommandEncoderObject) HasUseHeapStages() bool { + return r_.RespondsToSelector(objc.Sel("useHeap:stages:")) } -// Configures the number of output vertices the render pipeline produces for each input vertex, optionally with render target and viewport offsets. [Full Topic] +// Ensures the shaders in the render pass’s subsequent draw commands have access to the resources you allocate from a heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3088849-setvertexamplificationcount?language=objc -func (r_ RenderCommandEncoderObject) SetVertexAmplificationCountViewMappings(count uint, viewMappings *VertexAmplificationViewMapping) { - objc.Call[objc.Void](r_, objc.Sel("setVertexAmplificationCount:viewMappings:"), count, viewMappings) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3043402-useheap?language=objc +func (r_ RenderCommandEncoderObject) UseHeapStages(heap HeapObject, stages RenderStages) { + po0 := objc.WrapAsProtocol("MTLHeap", heap) + objc.Call[objc.Void](r_, objc.Sel("useHeap:stages:"), po0, stages) } -func (r_ RenderCommandEncoderObject) HasSetDepthStoreActionOptions() bool { - return r_.RespondsToSelector(objc.Sel("setDepthStoreActionOptions:")) +func (r_ RenderCommandEncoderObject) HasSetColorStoreActionAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setColorStoreAction:atIndex:")) } -// Configures the store action options for the depth attachment. [Full Topic] +// Configures the store action for a color attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2919772-setdepthstoreactionoptions?language=objc -func (r_ RenderCommandEncoderObject) SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) { - objc.Call[objc.Void](r_, objc.Sel("setDepthStoreActionOptions:"), storeActionOptions) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1640054-setcolorstoreaction?language=objc +func (r_ RenderCommandEncoderObject) SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) { + objc.Call[objc.Void](r_, objc.Sel("setColorStoreAction:atIndex:"), storeAction, colorAttachmentIndex) } -func (r_ RenderCommandEncoderObject) HasDrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstance() bool { - return r_.RespondsToSelector(objc.Sel("drawIndexedPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:instanceCount:baseInstance:")) +func (r_ RenderCommandEncoderObject) HasSetStencilStoreActionOptions() bool { + return r_.RespondsToSelector(objc.Sel("setStencilStoreActionOptions:")) } -// Encodes a draw command that renders multiple instances of tessellated patches with a control point index buffer. [Full Topic] +// Configures the store action options for the stencil attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1640031-drawindexedpatches?language=objc -func (r_ RenderCommandEncoderObject) DrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstance(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, controlPointIndexBuffer BufferObject, controlPointIndexBufferOffset uint, instanceCount uint, baseInstance uint) { - po3 := objc.WrapAsProtocol("MTLBuffer", patchIndexBuffer) - po5 := objc.WrapAsProtocol("MTLBuffer", controlPointIndexBuffer) - objc.Call[objc.Void](r_, objc.Sel("drawIndexedPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:instanceCount:baseInstance:"), numberOfPatchControlPoints, patchStart, patchCount, po3, patchIndexBufferOffset, po5, controlPointIndexBufferOffset, instanceCount, baseInstance) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2919771-setstencilstoreactionoptions?language=objc +func (r_ RenderCommandEncoderObject) SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) { + objc.Call[objc.Void](r_, objc.Sel("setStencilStoreActionOptions:"), storeActionOptions) } -func (r_ RenderCommandEncoderObject) HasSetVisibilityResultModeOffset() bool { - return r_.RespondsToSelector(objc.Sel("setVisibilityResultMode:offset:")) +func (r_ RenderCommandEncoderObject) HasUseResourcesCountUsageStages() bool { + return r_.RespondsToSelector(objc.Sel("useResources:count:usage:stages:")) } -// Configures which visibility test the GPU runs and the destination for any results it generates. [Full Topic] +// Ensures the shaders in the render pass’s subsequent draw commands have access to multiple resources. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515556-setvisibilityresultmode?language=objc -func (r_ RenderCommandEncoderObject) SetVisibilityResultModeOffset(mode VisibilityResultMode, offset uint) { - objc.Call[objc.Void](r_, objc.Sel("setVisibilityResultMode:offset:"), mode, offset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3043405-useresources?language=objc +func (r_ RenderCommandEncoderObject) UseResourcesCountUsageStages(resources unsafe.Pointer, count uint, usage ResourceUsage, stages RenderStages) { + po0 := objc.WrapAsProtocol("MTLResource", resources) + objc.Call[objc.Void](r_, objc.Sel("useResources:count:usage:stages:"), po0, count, usage, stages) } -func (r_ RenderCommandEncoderObject) HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance() bool { - return r_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance:")) +func (r_ RenderCommandEncoderObject) HasSetDepthClipMode() bool { + return r_.RespondsToSelector(objc.Sel("setDepthClipMode:")) } -// Encodes a draw command that renders multiple instances of a geometric primitive with indexed vertices, starting with a custom vertex and instance. [Full Topic] +// Configures how the render pipeline handles fragments outside the near and far planes of the view frustum. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515520-drawindexedprimitives?language=objc -func (r_ RenderCommandEncoderObject) DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint, baseVertex int, baseInstance uint) { - po3 := objc.WrapAsProtocol("MTLBuffer", indexBuffer) - objc.Call[objc.Void](r_, objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance:"), primitiveType, indexCount, indexType, po3, indexBufferOffset, instanceCount, baseVertex, baseInstance) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516267-setdepthclipmode?language=objc +func (r_ RenderCommandEncoderObject) SetDepthClipMode(depthClipMode DepthClipMode) { + objc.Call[objc.Void](r_, objc.Sel("setDepthClipMode:"), depthClipMode) } -func (r_ RenderCommandEncoderObject) HasSetCullMode() bool { - return r_.RespondsToSelector(objc.Sel("setCullMode:")) +func (r_ RenderCommandEncoderObject) HasSetVertexBufferOffsetAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexBufferOffset:atIndex:")) } -// Configures how the render pipeline determines which primitives to remove. [Full Topic] +// Updates an entry in the vertex shader argument table with a new location within the entry’s current buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515975-setcullmode?language=objc -func (r_ RenderCommandEncoderObject) SetCullMode(cullMode CullMode) { - objc.Call[objc.Void](r_, objc.Sel("setCullMode:"), cullMode) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515433-setvertexbufferoffset?language=objc +func (r_ RenderCommandEncoderObject) SetVertexBufferOffsetAtIndex(offset uint, index uint) { + objc.Call[objc.Void](r_, objc.Sel("setVertexBufferOffset:atIndex:"), offset, index) } -func (r_ RenderCommandEncoderObject) HasSetViewport() bool { - return r_.RespondsToSelector(objc.Sel("setViewport:")) +func (r_ RenderCommandEncoderObject) HasUseHeapsCountStages() bool { + return r_.RespondsToSelector(objc.Sel("useHeaps:count:stages:")) } -// Configures the render pipeline with a viewport that applies a transformation and a clipping rectangle. [Full Topic] +// Ensures the shaders in the render pass’s subsequent draw commands have access to the resources you allocate from multiple heaps. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515527-setviewport?language=objc -func (r_ RenderCommandEncoderObject) SetViewport(viewport Viewport) { - objc.Call[objc.Void](r_, objc.Sel("setViewport:"), viewport) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3043403-useheaps?language=objc +func (r_ RenderCommandEncoderObject) UseHeapsCountStages(heaps unsafe.Pointer, count uint, stages RenderStages) { + po0 := objc.WrapAsProtocol("MTLHeap", heaps) + objc.Call[objc.Void](r_, objc.Sel("useHeaps:count:stages:"), po0, count, stages) } -func (r_ RenderCommandEncoderObject) HasSetScissorRect() bool { - return r_.RespondsToSelector(objc.Sel("setScissorRect:")) +func (r_ RenderCommandEncoderObject) HasSetTileVisibleFunctionTablesWithBufferRange() bool { + return r_.RespondsToSelector(objc.Sel("setTileVisibleFunctionTables:withBufferRange:")) } -// Configures a rectangle for the fragment scissor test. [Full Topic] +// Assigns multiple visible function tables to a range of entries in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515583-setscissorrect?language=objc -func (r_ RenderCommandEncoderObject) SetScissorRect(rect ScissorRect) { - objc.Call[objc.Void](r_, objc.Sel("setScissorRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750562-settilevisiblefunctiontables?language=objc +func (r_ RenderCommandEncoderObject) SetTileVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) + objc.Call[objc.Void](r_, objc.Sel("setTileVisibleFunctionTables:withBufferRange:"), po0, range_) } -func (r_ RenderCommandEncoderObject) HasExecuteCommandsInBufferIndirectBufferIndirectBufferOffset() bool { - return r_.RespondsToSelector(objc.Sel("executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:")) +func (r_ RenderCommandEncoderObject) HasSetBlendColorRedGreenBlueAlpha() bool { + return r_.RespondsToSelector(objc.Sel("setBlendColorRed:green:blue:alpha:")) } -// Encodes a command that runs an indirect range of commands from an indirect command buffer (ICB). [Full Topic] +// Configures each pixel component value, including alpha, for the render pipeline’s constant blend color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2967439-executecommandsinbuffer?language=objc -func (r_ RenderCommandEncoderObject) ExecuteCommandsInBufferIndirectBufferIndirectBufferOffset(indirectCommandbuffer IndirectCommandBufferObject, indirectRangeBuffer BufferObject, indirectBufferOffset uint) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", indirectCommandbuffer) - po1 := objc.WrapAsProtocol("MTLBuffer", indirectRangeBuffer) - objc.Call[objc.Void](r_, objc.Sel("executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:"), po0, po1, indirectBufferOffset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515592-setblendcolorred?language=objc +func (r_ RenderCommandEncoderObject) SetBlendColorRedGreenBlueAlpha(red float32, green float32, blue float32, alpha float32) { + objc.Call[objc.Void](r_, objc.Sel("setBlendColorRed:green:blue:alpha:"), red, green, blue, alpha) } func (r_ RenderCommandEncoderObject) HasSetVertexVisibleFunctionTableAtBufferIndex() bool { @@ -1403,108 +1102,120 @@ func (r_ RenderCommandEncoderObject) SetVertexVisibleFunctionTableAtBufferIndex( objc.Call[objc.Void](r_, objc.Sel("setVertexVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) } -func (r_ RenderCommandEncoderObject) HasSetFragmentBufferOffsetAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentBufferOffset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasUpdateFenceAfterStages() bool { + return r_.RespondsToSelector(objc.Sel("updateFence:afterStages:")) } -// Updates an entry in the fragment shader argument table with a new location within the entry’s current buffer. [Full Topic] +// Encodes a command that instructs the GPU to update a fence after one or more stages, which signals passes waiting on the fence. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515917-setfragmentbufferoffset?language=objc -func (r_ RenderCommandEncoderObject) SetFragmentBufferOffsetAtIndex(offset uint, index uint) { - objc.Call[objc.Void](r_, objc.Sel("setFragmentBufferOffset:atIndex:"), offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1648377-updatefence?language=objc +func (r_ RenderCommandEncoderObject) UpdateFenceAfterStages(fence FenceObject, stages RenderStages) { + po0 := objc.WrapAsProtocol("MTLFence", fence) + objc.Call[objc.Void](r_, objc.Sel("updateFence:afterStages:"), po0, stages) } -func (r_ RenderCommandEncoderObject) HasSetVertexVisibleFunctionTablesWithBufferRange() bool { - return r_.RespondsToSelector(objc.Sel("setVertexVisibleFunctionTables:withBufferRange:")) +func (r_ RenderCommandEncoderObject) HasSetScissorRectsCount() bool { + return r_.RespondsToSelector(objc.Sel("setScissorRects:count:")) } -// Assigns multiple visible function tables to a range of entries in the vertex shader argument table. [Full Topic] +// Configures multiple rectangles for the fragment scissor test. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750567-setvertexvisiblefunctiontables?language=objc -func (r_ RenderCommandEncoderObject) SetVertexVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) - objc.Call[objc.Void](r_, objc.Sel("setVertexVisibleFunctionTables:withBufferRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2869722-setscissorrects?language=objc +func (r_ RenderCommandEncoderObject) SetScissorRectsCount(scissorRects *ScissorRect, count uint) { + objc.Call[objc.Void](r_, objc.Sel("setScissorRects:count:"), scissorRects, count) } -func (r_ RenderCommandEncoderObject) HasSetDepthClipMode() bool { - return r_.RespondsToSelector(objc.Sel("setDepthClipMode:")) +func (r_ RenderCommandEncoderObject) HasSetDepthStoreActionOptions() bool { + return r_.RespondsToSelector(objc.Sel("setDepthStoreActionOptions:")) } -// Configures how the render pipeline handles fragments outside the near and far planes of the view frustum. [Full Topic] +// Configures the store action options for the depth attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516267-setdepthclipmode?language=objc -func (r_ RenderCommandEncoderObject) SetDepthClipMode(depthClipMode DepthClipMode) { - objc.Call[objc.Void](r_, objc.Sel("setDepthClipMode:"), depthClipMode) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2919772-setdepthstoreactionoptions?language=objc +func (r_ RenderCommandEncoderObject) SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) { + objc.Call[objc.Void](r_, objc.Sel("setDepthStoreActionOptions:"), storeActionOptions) } -func (r_ RenderCommandEncoderObject) HasSetTileVisibleFunctionTablesWithBufferRange() bool { - return r_.RespondsToSelector(objc.Sel("setTileVisibleFunctionTables:withBufferRange:")) +func (r_ RenderCommandEncoderObject) HasSetTileAccelerationStructureAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileAccelerationStructure:atBufferIndex:")) } -// Assigns multiple visible function tables to a range of entries in the tile shader argument table. [Full Topic] +// Assigns an acceleration structure to an entry in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750562-settilevisiblefunctiontables?language=objc -func (r_ RenderCommandEncoderObject) SetTileVisibleFunctionTablesWithBufferRange(functionTables unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) - objc.Call[objc.Void](r_, objc.Sel("setTileVisibleFunctionTables:withBufferRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750558-settileaccelerationstructure?language=objc +func (r_ RenderCommandEncoderObject) SetTileAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) { + po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) + objc.Call[objc.Void](r_, objc.Sel("setTileAccelerationStructure:atBufferIndex:"), po0, bufferIndex) } -func (r_ RenderCommandEncoderObject) HasSetTileSamplerStatesLodMinClampsLodMaxClampsWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setTileSamplerStates:lodMinClamps:lodMaxClamps:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentBuffersOffsetsWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentBuffers:offsets:withRange:")) } -// Assigns multiple sampler states and clamp values to a range of entries in the tile shader argument table. [Full Topic] +// Assigns multiple buffers to a range of entries in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866170-settilesamplerstates?language=objc -func (r_ RenderCommandEncoderObject) SetTileSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](r_, objc.Sel("setTileSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515724-setfragmentbuffers?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentBuffersOffsetsWithRange(buffers unsafe.Pointer, offsets *uint, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffers) + objc.Call[objc.Void](r_, objc.Sel("setFragmentBuffers:offsets:withRange:"), po0, offsets, range_) } -func (r_ RenderCommandEncoderObject) HasMemoryBarrierWithResourcesCountAfterStagesBeforeStages() bool { - return r_.RespondsToSelector(objc.Sel("memoryBarrierWithResources:count:afterStages:beforeStages:")) +func (r_ RenderCommandEncoderObject) HasSetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setVertexSamplerStates:lodMinClamps:lodMaxClamps:withRange:")) } -// Creates a memory barrier that enforces the order of write and read operations for specific resources. [Full Topic] +// Assigns multiple sampler states and clamp values to a range of entries in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2967441-memorybarrierwithresources?language=objc -func (r_ RenderCommandEncoderObject) MemoryBarrierWithResourcesCountAfterStagesBeforeStages(resources unsafe.Pointer, count uint, after RenderStages, before RenderStages) { - po0 := objc.WrapAsProtocol("MTLResource", resources) - objc.Call[objc.Void](r_, objc.Sel("memoryBarrierWithResources:count:afterStages:beforeStages:"), po0, count, after, before) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516322-setvertexsamplerstates?language=objc +func (r_ RenderCommandEncoderObject) SetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers unsafe.Pointer, lodMinClamps *float32, lodMaxClamps *float32, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) + objc.Call[objc.Void](r_, objc.Sel("setVertexSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) } -func (r_ RenderCommandEncoderObject) HasSetVertexBufferOffsetAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexBufferOffset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetFrontFacingWinding() bool { + return r_.RespondsToSelector(objc.Sel("setFrontFacingWinding:")) } -// Updates an entry in the vertex shader argument table with a new location within the entry’s current buffer. [Full Topic] +// Configures which face of a primitive, such as a triangle, is the front. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515433-setvertexbufferoffset?language=objc -func (r_ RenderCommandEncoderObject) SetVertexBufferOffsetAtIndex(offset uint, index uint) { - objc.Call[objc.Void](r_, objc.Sel("setVertexBufferOffset:atIndex:"), offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515499-setfrontfacingwinding?language=objc +func (r_ RenderCommandEncoderObject) SetFrontFacingWinding(frontFacingWinding Winding) { + objc.Call[objc.Void](r_, objc.Sel("setFrontFacingWinding:"), frontFacingWinding) } -func (r_ RenderCommandEncoderObject) HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffset() bool { - return r_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:")) +func (r_ RenderCommandEncoderObject) HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount() bool { + return r_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:")) } -// Encodes a draw command that renders an instance of a geometric primitive with indexed vertices. [Full Topic] +// Encodes a draw command that renders multiple instances of a geometric primitive with indexed vertices. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515542-drawindexedprimitives?language=objc -func (r_ RenderCommandEncoderObject) DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffset(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515699-drawindexedprimitives?language=objc +func (r_ RenderCommandEncoderObject) DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint) { po3 := objc.WrapAsProtocol("MTLBuffer", indexBuffer) - objc.Call[objc.Void](r_, objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:"), primitiveType, indexCount, indexType, po3, indexBufferOffset) + objc.Call[objc.Void](r_, objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:"), primitiveType, indexCount, indexType, po3, indexBufferOffset, instanceCount) } -func (r_ RenderCommandEncoderObject) HasSetVertexBytesLengthAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexBytes:length:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetStencilReferenceValue() bool { + return r_.RespondsToSelector(objc.Sel("setStencilReferenceValue:")) } -// Creates a buffer from bytes and assigns it to an entry in the vertex shader argument table. [Full Topic] +// Configures the same comparison value for front- and back-facing primitives. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515846-setvertexbytes?language=objc -func (r_ RenderCommandEncoderObject) SetVertexBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) { - objc.Call[objc.Void](r_, objc.Sel("setVertexBytes:length:atIndex:"), bytes, length, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515697-setstencilreferencevalue?language=objc +func (r_ RenderCommandEncoderObject) SetStencilReferenceValue(referenceValue uint32) { + objc.Call[objc.Void](r_, objc.Sel("setStencilReferenceValue:"), referenceValue) +} + +func (r_ RenderCommandEncoderObject) HasWaitForFenceBeforeStages() bool { + return r_.RespondsToSelector(objc.Sel("waitForFence:beforeStages:")) +} + +// Encodes a command that instructs the GPU to pause before starting one or more stages of the render pass until a pass updates a fence. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1648378-waitforfence?language=objc +func (r_ RenderCommandEncoderObject) WaitForFenceBeforeStages(fence FenceObject, stages RenderStages) { + po0 := objc.WrapAsProtocol("MTLFence", fence) + objc.Call[objc.Void](r_, objc.Sel("waitForFence:beforeStages:"), po0, stages) } func (r_ RenderCommandEncoderObject) HasTileWidth() bool { diff --git a/macos/metal/render_pass_attachment_descriptor.gen.go b/macos/metal/render_pass_attachment_descriptor.gen.go index 09d841a3..39707c52 100644 --- a/macos/metal/render_pass_attachment_descriptor.gen.go +++ b/macos/metal/render_pass_attachment_descriptor.gen.go @@ -18,30 +18,30 @@ type _RenderPassAttachmentDescriptorClass struct { // An interface definition for the [RenderPassAttachmentDescriptor] class. type IRenderPassAttachmentDescriptor interface { objc.IObject - StoreActionOptions() StoreActionOptions - SetStoreActionOptions(value StoreActionOptions) ResolveDepthPlane() uint SetResolveDepthPlane(value uint) + ResolveLevel() uint + SetResolveLevel(value uint) + Level() uint + SetLevel(value uint) StoreAction() StoreAction SetStoreAction(value StoreAction) LoadAction() LoadAction SetLoadAction(value LoadAction) - Texture() TextureObject - SetTexture(value PTexture) - SetTextureObject(valueObject objc.IObject) + Slice() uint + SetSlice(value uint) + ResolveSlice() uint + SetResolveSlice(value uint) ResolveTexture() TextureObject SetResolveTexture(value PTexture) SetResolveTextureObject(valueObject objc.IObject) - ResolveLevel() uint - SetResolveLevel(value uint) - Slice() uint - SetSlice(value uint) - Level() uint - SetLevel(value uint) + StoreActionOptions() StoreActionOptions + SetStoreActionOptions(value StoreActionOptions) DepthPlane() uint SetDepthPlane(value uint) - ResolveSlice() uint - SetResolveSlice(value uint) + Texture() TextureObject + SetTexture(value PTexture) + SetTextureObject(valueObject objc.IObject) } // A render target that serves as the output destination for pixels generated by a render pass. [Full Topic] @@ -77,21 +77,6 @@ func (r_ RenderPassAttachmentDescriptor) Init() RenderPassAttachmentDescriptor { return rv } -// The options that modify the store action performed by this attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/2919782-storeactionoptions?language=objc -func (r_ RenderPassAttachmentDescriptor) StoreActionOptions() StoreActionOptions { - rv := objc.Call[StoreActionOptions](r_, objc.Sel("storeActionOptions")) - return rv -} - -// The options that modify the store action performed by this attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/2919782-storeactionoptions?language=objc -func (r_ RenderPassAttachmentDescriptor) SetStoreActionOptions(value StoreActionOptions) { - objc.Call[objc.Void](r_, objc.Sel("setStoreActionOptions:"), value) -} - // The depth plane of the texture used for the multisample resolve action. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437960-resolvedepthplane?language=objc @@ -107,6 +92,36 @@ func (r_ RenderPassAttachmentDescriptor) SetResolveDepthPlane(value uint) { objc.Call[objc.Void](r_, objc.Sel("setResolveDepthPlane:"), value) } +// The mipmap level of the texture used for the multisample resolve action. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437918-resolvelevel?language=objc +func (r_ RenderPassAttachmentDescriptor) ResolveLevel() uint { + rv := objc.Call[uint](r_, objc.Sel("resolveLevel")) + return rv +} + +// The mipmap level of the texture used for the multisample resolve action. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437918-resolvelevel?language=objc +func (r_ RenderPassAttachmentDescriptor) SetResolveLevel(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setResolveLevel:"), value) +} + +// The mipmap level of the texture used for rendering to the attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437984-level?language=objc +func (r_ RenderPassAttachmentDescriptor) Level() uint { + rv := objc.Call[uint](r_, objc.Sel("level")) + return rv +} + +// The mipmap level of the texture used for rendering to the attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437984-level?language=objc +func (r_ RenderPassAttachmentDescriptor) SetLevel(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setLevel:"), value) +} + // The action performed by this attachment at the end of a rendering pass for a render command encoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437956-storeaction?language=objc @@ -137,27 +152,34 @@ func (r_ RenderPassAttachmentDescriptor) SetLoadAction(value LoadAction) { objc.Call[objc.Void](r_, objc.Sel("setLoadAction:"), value) } -// The texture object associated with this attachment. [Full Topic] +// The slice of the texture used for rendering to the attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437958-texture?language=objc -func (r_ RenderPassAttachmentDescriptor) Texture() TextureObject { - rv := objc.Call[TextureObject](r_, objc.Sel("texture")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437914-slice?language=objc +func (r_ RenderPassAttachmentDescriptor) Slice() uint { + rv := objc.Call[uint](r_, objc.Sel("slice")) return rv } -// The texture object associated with this attachment. [Full Topic] +// The slice of the texture used for rendering to the attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437958-texture?language=objc -func (r_ RenderPassAttachmentDescriptor) SetTexture(value PTexture) { - po0 := objc.WrapAsProtocol("MTLTexture", value) - objc.Call[objc.Void](r_, objc.Sel("setTexture:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437914-slice?language=objc +func (r_ RenderPassAttachmentDescriptor) SetSlice(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setSlice:"), value) } -// The texture object associated with this attachment. [Full Topic] +// The slice of the texture used for the multisample resolve action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437958-texture?language=objc -func (r_ RenderPassAttachmentDescriptor) SetTextureObject(valueObject objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("setTexture:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437966-resolveslice?language=objc +func (r_ RenderPassAttachmentDescriptor) ResolveSlice() uint { + rv := objc.Call[uint](r_, objc.Sel("resolveSlice")) + return rv +} + +// The slice of the texture used for the multisample resolve action. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437966-resolveslice?language=objc +func (r_ RenderPassAttachmentDescriptor) SetResolveSlice(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setResolveSlice:"), value) } // The destination texture used when resolving multisampled texture data into single sample values. [Full Topic] @@ -183,49 +205,19 @@ func (r_ RenderPassAttachmentDescriptor) SetResolveTextureObject(valueObject obj objc.Call[objc.Void](r_, objc.Sel("setResolveTexture:"), valueObject) } -// The mipmap level of the texture used for the multisample resolve action. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437918-resolvelevel?language=objc -func (r_ RenderPassAttachmentDescriptor) ResolveLevel() uint { - rv := objc.Call[uint](r_, objc.Sel("resolveLevel")) - return rv -} - -// The mipmap level of the texture used for the multisample resolve action. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437918-resolvelevel?language=objc -func (r_ RenderPassAttachmentDescriptor) SetResolveLevel(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setResolveLevel:"), value) -} - -// The slice of the texture used for rendering to the attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437914-slice?language=objc -func (r_ RenderPassAttachmentDescriptor) Slice() uint { - rv := objc.Call[uint](r_, objc.Sel("slice")) - return rv -} - -// The slice of the texture used for rendering to the attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437914-slice?language=objc -func (r_ RenderPassAttachmentDescriptor) SetSlice(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setSlice:"), value) -} - -// The mipmap level of the texture used for rendering to the attachment. [Full Topic] +// The options that modify the store action performed by this attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437984-level?language=objc -func (r_ RenderPassAttachmentDescriptor) Level() uint { - rv := objc.Call[uint](r_, objc.Sel("level")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/2919782-storeactionoptions?language=objc +func (r_ RenderPassAttachmentDescriptor) StoreActionOptions() StoreActionOptions { + rv := objc.Call[StoreActionOptions](r_, objc.Sel("storeActionOptions")) return rv } -// The mipmap level of the texture used for rendering to the attachment. [Full Topic] +// The options that modify the store action performed by this attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437984-level?language=objc -func (r_ RenderPassAttachmentDescriptor) SetLevel(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/2919782-storeactionoptions?language=objc +func (r_ RenderPassAttachmentDescriptor) SetStoreActionOptions(value StoreActionOptions) { + objc.Call[objc.Void](r_, objc.Sel("setStoreActionOptions:"), value) } // The depth plane of the texture used for rendering to the attachment. [Full Topic] @@ -243,17 +235,25 @@ func (r_ RenderPassAttachmentDescriptor) SetDepthPlane(value uint) { objc.Call[objc.Void](r_, objc.Sel("setDepthPlane:"), value) } -// The slice of the texture used for the multisample resolve action. [Full Topic] +// The texture object associated with this attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437966-resolveslice?language=objc -func (r_ RenderPassAttachmentDescriptor) ResolveSlice() uint { - rv := objc.Call[uint](r_, objc.Sel("resolveSlice")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437958-texture?language=objc +func (r_ RenderPassAttachmentDescriptor) Texture() TextureObject { + rv := objc.Call[TextureObject](r_, objc.Sel("texture")) return rv } -// The slice of the texture used for the multisample resolve action. [Full Topic] +// The texture object associated with this attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437966-resolveslice?language=objc -func (r_ RenderPassAttachmentDescriptor) SetResolveSlice(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setResolveSlice:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437958-texture?language=objc +func (r_ RenderPassAttachmentDescriptor) SetTexture(value PTexture) { + po0 := objc.WrapAsProtocol("MTLTexture", value) + objc.Call[objc.Void](r_, objc.Sel("setTexture:"), po0) +} + +// The texture object associated with this attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437958-texture?language=objc +func (r_ RenderPassAttachmentDescriptor) SetTextureObject(valueObject objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("setTexture:"), valueObject) } diff --git a/macos/metal/render_pass_depth_attachment_descriptor.gen.go b/macos/metal/render_pass_depth_attachment_descriptor.gen.go index 2ea77ff8..a559c99e 100644 --- a/macos/metal/render_pass_depth_attachment_descriptor.gen.go +++ b/macos/metal/render_pass_depth_attachment_descriptor.gen.go @@ -18,10 +18,10 @@ type _RenderPassDepthAttachmentDescriptorClass struct { // An interface definition for the [RenderPassDepthAttachmentDescriptor] class. type IRenderPassDepthAttachmentDescriptor interface { IRenderPassAttachmentDescriptor - ClearDepth() float64 - SetClearDepth(value float64) DepthResolveFilter() MultisampleDepthResolveFilter SetDepthResolveFilter(value MultisampleDepthResolveFilter) + ClearDepth() float64 + SetClearDepth(value float64) } // A depth render target that serves as the output destination for depth pixels generated by a render pass. [Full Topic] @@ -57,21 +57,6 @@ func (r_ RenderPassDepthAttachmentDescriptor) Init() RenderPassDepthAttachmentDe return rv } -// The depth to use when clearing the depth attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdepthattachmentdescriptor/1437933-cleardepth?language=objc -func (r_ RenderPassDepthAttachmentDescriptor) ClearDepth() float64 { - rv := objc.Call[float64](r_, objc.Sel("clearDepth")) - return rv -} - -// The depth to use when clearing the depth attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdepthattachmentdescriptor/1437933-cleardepth?language=objc -func (r_ RenderPassDepthAttachmentDescriptor) SetClearDepth(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setClearDepth:"), value) -} - // The filter used for an MSAA depth resolve operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdepthattachmentdescriptor/1619184-depthresolvefilter?language=objc @@ -86,3 +71,18 @@ func (r_ RenderPassDepthAttachmentDescriptor) DepthResolveFilter() MultisampleDe func (r_ RenderPassDepthAttachmentDescriptor) SetDepthResolveFilter(value MultisampleDepthResolveFilter) { objc.Call[objc.Void](r_, objc.Sel("setDepthResolveFilter:"), value) } + +// The depth to use when clearing the depth attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdepthattachmentdescriptor/1437933-cleardepth?language=objc +func (r_ RenderPassDepthAttachmentDescriptor) ClearDepth() float64 { + rv := objc.Call[float64](r_, objc.Sel("clearDepth")) + return rv +} + +// The depth to use when clearing the depth attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdepthattachmentdescriptor/1437933-cleardepth?language=objc +func (r_ RenderPassDepthAttachmentDescriptor) SetClearDepth(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setClearDepth:"), value) +} diff --git a/macos/metal/render_pass_descriptor.gen.go b/macos/metal/render_pass_descriptor.gen.go index 16c2ae99..97d816a9 100644 --- a/macos/metal/render_pass_descriptor.gen.go +++ b/macos/metal/render_pass_descriptor.gen.go @@ -18,36 +18,36 @@ type _RenderPassDescriptorClass struct { // An interface definition for the [RenderPassDescriptor] class. type IRenderPassDescriptor interface { objc.IObject - GetSamplePositionsCount(positions *SamplePosition, count uint) uint SetSamplePositionsCount(positions *SamplePosition, count uint) - ThreadgroupMemoryLength() uint - SetThreadgroupMemoryLength(value uint) - SampleBufferAttachments() RenderPassSampleBufferAttachmentDescriptorArray - RasterizationRateMap() RasterizationRateMapObject - SetRasterizationRateMap(value PRasterizationRateMap) - SetRasterizationRateMapObject(valueObject objc.IObject) + GetSamplePositionsCount(positions *SamplePosition, count uint) uint VisibilityResultBuffer() BufferObject SetVisibilityResultBuffer(value PBuffer) SetVisibilityResultBufferObject(valueObject objc.IObject) - RenderTargetWidth() uint - SetRenderTargetWidth(value uint) + RasterizationRateMap() RasterizationRateMapObject + SetRasterizationRateMap(value PRasterizationRateMap) + SetRasterizationRateMapObject(valueObject objc.IObject) + ColorAttachments() RenderPassColorAttachmentDescriptorArray RenderTargetArrayLength() uint SetRenderTargetArrayLength(value uint) DepthAttachment() RenderPassDepthAttachmentDescriptor SetDepthAttachment(value IRenderPassDepthAttachmentDescriptor) + TileWidth() uint + SetTileWidth(value uint) + TileHeight() uint + SetTileHeight(value uint) + SampleBufferAttachments() RenderPassSampleBufferAttachmentDescriptorArray + DefaultRasterSampleCount() uint + SetDefaultRasterSampleCount(value uint) + RenderTargetWidth() uint + SetRenderTargetWidth(value uint) + ThreadgroupMemoryLength() uint + SetThreadgroupMemoryLength(value uint) RenderTargetHeight() uint SetRenderTargetHeight(value uint) StencilAttachment() RenderPassStencilAttachmentDescriptor SetStencilAttachment(value IRenderPassStencilAttachmentDescriptor) ImageblockSampleLength() uint SetImageblockSampleLength(value uint) - DefaultRasterSampleCount() uint - SetDefaultRasterSampleCount(value uint) - TileWidth() uint - SetTileWidth(value uint) - ColorAttachments() RenderPassColorAttachmentDescriptorArray - TileHeight() uint - SetTileHeight(value uint) } // A group of render targets that hold the results of a render pass. [Full Topic] @@ -83,6 +83,13 @@ func (r_ RenderPassDescriptor) Init() RenderPassDescriptor { return rv } +// Sets the programmable sample positions for a render pass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866524-setsamplepositions?language=objc +func (r_ RenderPassDescriptor) SetSamplePositionsCount(positions *SamplePosition, count uint) { + objc.Call[objc.Void](r_, objc.Sel("setSamplePositions:count:"), positions, count) +} + // Retrieves the programmable sample positions set for a render pass. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866342-getsamplepositions?language=objc @@ -91,13 +98,6 @@ func (r_ RenderPassDescriptor) GetSamplePositionsCount(positions *SamplePosition return rv } -// Sets the programmable sample positions for a render pass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866524-setsamplepositions?language=objc -func (r_ RenderPassDescriptor) SetSamplePositionsCount(positions *SamplePosition, count uint) { - objc.Call[objc.Void](r_, objc.Sel("setSamplePositions:count:"), positions, count) -} - // Creates a default render pass descriptor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437979-renderpassdescriptor?language=objc @@ -113,27 +113,27 @@ func RenderPassDescriptor_RenderPassDescriptor() RenderPassDescriptor { return RenderPassDescriptorClass.RenderPassDescriptor() } -// The per-tile size, in bytes, of the persistent threadgroup memory allocation. [Full Topic] +// A buffer where the GPU writes visibility test results when fragments pass depth and stencil tests. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866527-threadgroupmemorylength?language=objc -func (r_ RenderPassDescriptor) ThreadgroupMemoryLength() uint { - rv := objc.Call[uint](r_, objc.Sel("threadgroupMemoryLength")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437942-visibilityresultbuffer?language=objc +func (r_ RenderPassDescriptor) VisibilityResultBuffer() BufferObject { + rv := objc.Call[BufferObject](r_, objc.Sel("visibilityResultBuffer")) return rv } -// The per-tile size, in bytes, of the persistent threadgroup memory allocation. [Full Topic] +// A buffer where the GPU writes visibility test results when fragments pass depth and stencil tests. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866527-threadgroupmemorylength?language=objc -func (r_ RenderPassDescriptor) SetThreadgroupMemoryLength(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setThreadgroupMemoryLength:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437942-visibilityresultbuffer?language=objc +func (r_ RenderPassDescriptor) SetVisibilityResultBuffer(value PBuffer) { + po0 := objc.WrapAsProtocol("MTLBuffer", value) + objc.Call[objc.Void](r_, objc.Sel("setVisibilityResultBuffer:"), po0) } -// The array of sample buffers that the render pass can access. [Full Topic] +// A buffer where the GPU writes visibility test results when fragments pass depth and stencil tests. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/3564463-samplebufferattachments?language=objc -func (r_ RenderPassDescriptor) SampleBufferAttachments() RenderPassSampleBufferAttachmentDescriptorArray { - rv := objc.Call[RenderPassSampleBufferAttachmentDescriptorArray](r_, objc.Sel("sampleBufferAttachments")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437942-visibilityresultbuffer?language=objc +func (r_ RenderPassDescriptor) SetVisibilityResultBufferObject(valueObject objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("setVisibilityResultBuffer:"), valueObject) } // The rasterization rate map to use when executing the render pass. [Full Topic] @@ -159,44 +159,14 @@ func (r_ RenderPassDescriptor) SetRasterizationRateMapObject(valueObject objc.IO objc.Call[objc.Void](r_, objc.Sel("setRasterizationRateMap:"), valueObject) } -// A buffer where the GPU writes visibility test results when fragments pass depth and stencil tests. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437942-visibilityresultbuffer?language=objc -func (r_ RenderPassDescriptor) VisibilityResultBuffer() BufferObject { - rv := objc.Call[BufferObject](r_, objc.Sel("visibilityResultBuffer")) - return rv -} - -// A buffer where the GPU writes visibility test results when fragments pass depth and stencil tests. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437942-visibilityresultbuffer?language=objc -func (r_ RenderPassDescriptor) SetVisibilityResultBuffer(value PBuffer) { - po0 := objc.WrapAsProtocol("MTLBuffer", value) - objc.Call[objc.Void](r_, objc.Sel("setVisibilityResultBuffer:"), po0) -} - -// A buffer where the GPU writes visibility test results when fragments pass depth and stencil tests. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437942-visibilityresultbuffer?language=objc -func (r_ RenderPassDescriptor) SetVisibilityResultBufferObject(valueObject objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("setVisibilityResultBuffer:"), valueObject) -} - -// The width, in pixels, to constrain the render target to. [Full Topic] +// An array of state information for attachments that store color data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2879276-rendertargetwidth?language=objc -func (r_ RenderPassDescriptor) RenderTargetWidth() uint { - rv := objc.Call[uint](r_, objc.Sel("renderTargetWidth")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437970-colorattachments?language=objc +func (r_ RenderPassDescriptor) ColorAttachments() RenderPassColorAttachmentDescriptorArray { + rv := objc.Call[RenderPassColorAttachmentDescriptorArray](r_, objc.Sel("colorAttachments")) return rv } -// The width, in pixels, to constrain the render target to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2879276-rendertargetwidth?language=objc -func (r_ RenderPassDescriptor) SetRenderTargetWidth(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setRenderTargetWidth:"), value) -} - // The number of active layers that all attachments must have for layered rendering. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437975-rendertargetarraylength?language=objc @@ -227,51 +197,44 @@ func (r_ RenderPassDescriptor) SetDepthAttachment(value IRenderPassDepthAttachme objc.Call[objc.Void](r_, objc.Sel("setDepthAttachment:"), value) } -// The height, in pixels, to constrain the render target to. [Full Topic] +// The tile width, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2879279-rendertargetheight?language=objc -func (r_ RenderPassDescriptor) RenderTargetHeight() uint { - rv := objc.Call[uint](r_, objc.Sel("renderTargetHeight")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866529-tilewidth?language=objc +func (r_ RenderPassDescriptor) TileWidth() uint { + rv := objc.Call[uint](r_, objc.Sel("tileWidth")) return rv } -// The height, in pixels, to constrain the render target to. [Full Topic] +// The tile width, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2879279-rendertargetheight?language=objc -func (r_ RenderPassDescriptor) SetRenderTargetHeight(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setRenderTargetHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866529-tilewidth?language=objc +func (r_ RenderPassDescriptor) SetTileWidth(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setTileWidth:"), value) } -// State information for an attachment that stores stencil data. [Full Topic] +// The tile height, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437950-stencilattachment?language=objc -func (r_ RenderPassDescriptor) StencilAttachment() RenderPassStencilAttachmentDescriptor { - rv := objc.Call[RenderPassStencilAttachmentDescriptor](r_, objc.Sel("stencilAttachment")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866356-tileheight?language=objc +func (r_ RenderPassDescriptor) TileHeight() uint { + rv := objc.Call[uint](r_, objc.Sel("tileHeight")) return rv } -// State information for an attachment that stores stencil data. [Full Topic] +// The tile height, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437950-stencilattachment?language=objc -func (r_ RenderPassDescriptor) SetStencilAttachment(value IRenderPassStencilAttachmentDescriptor) { - objc.Call[objc.Void](r_, objc.Sel("setStencilAttachment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866356-tileheight?language=objc +func (r_ RenderPassDescriptor) SetTileHeight(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setTileHeight:"), value) } -// The per-sample size, in bytes, of the largest explicit imageblock layout in the render pass. [Full Topic] +// The array of sample buffers that the render pass can access. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2928281-imageblocksamplelength?language=objc -func (r_ RenderPassDescriptor) ImageblockSampleLength() uint { - rv := objc.Call[uint](r_, objc.Sel("imageblockSampleLength")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/3564463-samplebufferattachments?language=objc +func (r_ RenderPassDescriptor) SampleBufferAttachments() RenderPassSampleBufferAttachmentDescriptorArray { + rv := objc.Call[RenderPassSampleBufferAttachmentDescriptorArray](r_, objc.Sel("sampleBufferAttachments")) return rv } -// The per-sample size, in bytes, of the largest explicit imageblock layout in the render pass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2928281-imageblocksamplelength?language=objc -func (r_ RenderPassDescriptor) SetImageblockSampleLength(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setImageblockSampleLength:"), value) -} - // The raster sample count for the render pass when the render pass doesn’t have explicit attachments. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2890260-defaultrastersamplecount?language=objc @@ -287,40 +250,77 @@ func (r_ RenderPassDescriptor) SetDefaultRasterSampleCount(value uint) { objc.Call[objc.Void](r_, objc.Sel("setDefaultRasterSampleCount:"), value) } -// The tile width, in pixels. [Full Topic] +// The width, in pixels, to constrain the render target to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866529-tilewidth?language=objc -func (r_ RenderPassDescriptor) TileWidth() uint { - rv := objc.Call[uint](r_, objc.Sel("tileWidth")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2879276-rendertargetwidth?language=objc +func (r_ RenderPassDescriptor) RenderTargetWidth() uint { + rv := objc.Call[uint](r_, objc.Sel("renderTargetWidth")) return rv } -// The tile width, in pixels. [Full Topic] +// The width, in pixels, to constrain the render target to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866529-tilewidth?language=objc -func (r_ RenderPassDescriptor) SetTileWidth(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setTileWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2879276-rendertargetwidth?language=objc +func (r_ RenderPassDescriptor) SetRenderTargetWidth(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setRenderTargetWidth:"), value) } -// An array of state information for attachments that store color data. [Full Topic] +// The per-tile size, in bytes, of the persistent threadgroup memory allocation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437970-colorattachments?language=objc -func (r_ RenderPassDescriptor) ColorAttachments() RenderPassColorAttachmentDescriptorArray { - rv := objc.Call[RenderPassColorAttachmentDescriptorArray](r_, objc.Sel("colorAttachments")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866527-threadgroupmemorylength?language=objc +func (r_ RenderPassDescriptor) ThreadgroupMemoryLength() uint { + rv := objc.Call[uint](r_, objc.Sel("threadgroupMemoryLength")) return rv } -// The tile height, in pixels. [Full Topic] +// The per-tile size, in bytes, of the persistent threadgroup memory allocation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866356-tileheight?language=objc -func (r_ RenderPassDescriptor) TileHeight() uint { - rv := objc.Call[uint](r_, objc.Sel("tileHeight")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866527-threadgroupmemorylength?language=objc +func (r_ RenderPassDescriptor) SetThreadgroupMemoryLength(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setThreadgroupMemoryLength:"), value) +} + +// The height, in pixels, to constrain the render target to. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2879279-rendertargetheight?language=objc +func (r_ RenderPassDescriptor) RenderTargetHeight() uint { + rv := objc.Call[uint](r_, objc.Sel("renderTargetHeight")) return rv } -// The tile height, in pixels. [Full Topic] +// The height, in pixels, to constrain the render target to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2866356-tileheight?language=objc -func (r_ RenderPassDescriptor) SetTileHeight(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setTileHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2879279-rendertargetheight?language=objc +func (r_ RenderPassDescriptor) SetRenderTargetHeight(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setRenderTargetHeight:"), value) +} + +// State information for an attachment that stores stencil data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437950-stencilattachment?language=objc +func (r_ RenderPassDescriptor) StencilAttachment() RenderPassStencilAttachmentDescriptor { + rv := objc.Call[RenderPassStencilAttachmentDescriptor](r_, objc.Sel("stencilAttachment")) + return rv +} + +// State information for an attachment that stores stencil data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/1437950-stencilattachment?language=objc +func (r_ RenderPassDescriptor) SetStencilAttachment(value IRenderPassStencilAttachmentDescriptor) { + objc.Call[objc.Void](r_, objc.Sel("setStencilAttachment:"), value) +} + +// The per-sample size, in bytes, of the largest explicit imageblock layout in the render pass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2928281-imageblocksamplelength?language=objc +func (r_ RenderPassDescriptor) ImageblockSampleLength() uint { + rv := objc.Call[uint](r_, objc.Sel("imageblockSampleLength")) + return rv +} + +// The per-sample size, in bytes, of the largest explicit imageblock layout in the render pass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/2928281-imageblocksamplelength?language=objc +func (r_ RenderPassDescriptor) SetImageblockSampleLength(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setImageblockSampleLength:"), value) } diff --git a/macos/metal/render_pass_sample_buffer_attachment_descriptor.gen.go b/macos/metal/render_pass_sample_buffer_attachment_descriptor.gen.go index f9168e36..acb4bd24 100644 --- a/macos/metal/render_pass_sample_buffer_attachment_descriptor.gen.go +++ b/macos/metal/render_pass_sample_buffer_attachment_descriptor.gen.go @@ -18,17 +18,17 @@ type _RenderPassSampleBufferAttachmentDescriptorClass struct { // An interface definition for the [RenderPassSampleBufferAttachmentDescriptor] class. type IRenderPassSampleBufferAttachmentDescriptor interface { objc.IObject + EndOfVertexSampleIndex() uint + SetEndOfVertexSampleIndex(value uint) StartOfVertexSampleIndex() uint SetStartOfVertexSampleIndex(value uint) + EndOfFragmentSampleIndex() uint + SetEndOfFragmentSampleIndex(value uint) + StartOfFragmentSampleIndex() uint + SetStartOfFragmentSampleIndex(value uint) SampleBuffer() CounterSampleBufferObject SetSampleBuffer(value PCounterSampleBuffer) SetSampleBufferObject(valueObject objc.IObject) - StartOfFragmentSampleIndex() uint - SetStartOfFragmentSampleIndex(value uint) - EndOfVertexSampleIndex() uint - SetEndOfVertexSampleIndex(value uint) - EndOfFragmentSampleIndex() uint - SetEndOfFragmentSampleIndex(value uint) } // A description of where to store GPU counter information at the start and end of a render pass. [Full Topic] @@ -64,6 +64,21 @@ func (r_ RenderPassSampleBufferAttachmentDescriptor) Init() RenderPassSampleBuff return rv } +// The index the Metal device object should use to store GPU counters when ending the render pass’s vertex stage. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081770-endofvertexsampleindex?language=objc +func (r_ RenderPassSampleBufferAttachmentDescriptor) EndOfVertexSampleIndex() uint { + rv := objc.Call[uint](r_, objc.Sel("endOfVertexSampleIndex")) + return rv +} + +// The index the Metal device object should use to store GPU counters when ending the render pass’s vertex stage. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081770-endofvertexsampleindex?language=objc +func (r_ RenderPassSampleBufferAttachmentDescriptor) SetEndOfVertexSampleIndex(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setEndOfVertexSampleIndex:"), value) +} + // The index the Metal device object should use to store GPU counters when starting the render pass’s vertex stage. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081772-startofvertexsampleindex?language=objc @@ -79,27 +94,19 @@ func (r_ RenderPassSampleBufferAttachmentDescriptor) SetStartOfVertexSampleIndex objc.Call[objc.Void](r_, objc.Sel("setStartOfVertexSampleIndex:"), value) } -// A specialized memory buffer that the GPU uses to store its counter data during the render pass. [Full Topic] +// The index the Metal device object should use to store GPU counters when ending the render pass’s fragment stage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081752-samplebuffer?language=objc -func (r_ RenderPassSampleBufferAttachmentDescriptor) SampleBuffer() CounterSampleBufferObject { - rv := objc.Call[CounterSampleBufferObject](r_, objc.Sel("sampleBuffer")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081769-endoffragmentsampleindex?language=objc +func (r_ RenderPassSampleBufferAttachmentDescriptor) EndOfFragmentSampleIndex() uint { + rv := objc.Call[uint](r_, objc.Sel("endOfFragmentSampleIndex")) return rv } -// A specialized memory buffer that the GPU uses to store its counter data during the render pass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081752-samplebuffer?language=objc -func (r_ RenderPassSampleBufferAttachmentDescriptor) SetSampleBuffer(value PCounterSampleBuffer) { - po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", value) - objc.Call[objc.Void](r_, objc.Sel("setSampleBuffer:"), po0) -} - -// A specialized memory buffer that the GPU uses to store its counter data during the render pass. [Full Topic] +// The index the Metal device object should use to store GPU counters when ending the render pass’s fragment stage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081752-samplebuffer?language=objc -func (r_ RenderPassSampleBufferAttachmentDescriptor) SetSampleBufferObject(valueObject objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("setSampleBuffer:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081769-endoffragmentsampleindex?language=objc +func (r_ RenderPassSampleBufferAttachmentDescriptor) SetEndOfFragmentSampleIndex(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setEndOfFragmentSampleIndex:"), value) } // The index the Metal device object should use to store GPU counters when starting the render pass’s fragment stage. [Full Topic] @@ -117,32 +124,25 @@ func (r_ RenderPassSampleBufferAttachmentDescriptor) SetStartOfFragmentSampleInd objc.Call[objc.Void](r_, objc.Sel("setStartOfFragmentSampleIndex:"), value) } -// The index the Metal device object should use to store GPU counters when ending the render pass’s vertex stage. [Full Topic] +// A specialized memory buffer that the GPU uses to store its counter data during the render pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081770-endofvertexsampleindex?language=objc -func (r_ RenderPassSampleBufferAttachmentDescriptor) EndOfVertexSampleIndex() uint { - rv := objc.Call[uint](r_, objc.Sel("endOfVertexSampleIndex")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081752-samplebuffer?language=objc +func (r_ RenderPassSampleBufferAttachmentDescriptor) SampleBuffer() CounterSampleBufferObject { + rv := objc.Call[CounterSampleBufferObject](r_, objc.Sel("sampleBuffer")) return rv } -// The index the Metal device object should use to store GPU counters when ending the render pass’s vertex stage. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081770-endofvertexsampleindex?language=objc -func (r_ RenderPassSampleBufferAttachmentDescriptor) SetEndOfVertexSampleIndex(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setEndOfVertexSampleIndex:"), value) -} - -// The index the Metal device object should use to store GPU counters when ending the render pass’s fragment stage. [Full Topic] +// A specialized memory buffer that the GPU uses to store its counter data during the render pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081769-endoffragmentsampleindex?language=objc -func (r_ RenderPassSampleBufferAttachmentDescriptor) EndOfFragmentSampleIndex() uint { - rv := objc.Call[uint](r_, objc.Sel("endOfFragmentSampleIndex")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081752-samplebuffer?language=objc +func (r_ RenderPassSampleBufferAttachmentDescriptor) SetSampleBuffer(value PCounterSampleBuffer) { + po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", value) + objc.Call[objc.Void](r_, objc.Sel("setSampleBuffer:"), po0) } -// The index the Metal device object should use to store GPU counters when ending the render pass’s fragment stage. [Full Topic] +// A specialized memory buffer that the GPU uses to store its counter data during the render pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081769-endoffragmentsampleindex?language=objc -func (r_ RenderPassSampleBufferAttachmentDescriptor) SetEndOfFragmentSampleIndex(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setEndOfFragmentSampleIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081752-samplebuffer?language=objc +func (r_ RenderPassSampleBufferAttachmentDescriptor) SetSampleBufferObject(valueObject objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("setSampleBuffer:"), valueObject) } diff --git a/macos/metal/render_pass_sample_buffer_attachment_descriptor_array.gen.go b/macos/metal/render_pass_sample_buffer_attachment_descriptor_array.gen.go index 47e8a208..73b5b21e 100644 --- a/macos/metal/render_pass_sample_buffer_attachment_descriptor_array.gen.go +++ b/macos/metal/render_pass_sample_buffer_attachment_descriptor_array.gen.go @@ -18,8 +18,8 @@ type _RenderPassSampleBufferAttachmentDescriptorArrayClass struct { // An interface definition for the [RenderPassSampleBufferAttachmentDescriptorArray] class. type IRenderPassSampleBufferAttachmentDescriptorArray interface { objc.IObject - SetObjectAtIndexedSubscript(attachment IRenderPassSampleBufferAttachmentDescriptor, attachmentIndex uint) ObjectAtIndexedSubscript(attachmentIndex uint) RenderPassSampleBufferAttachmentDescriptor + SetObjectAtIndexedSubscript(attachment IRenderPassSampleBufferAttachmentDescriptor, attachmentIndex uint) } // An array of sample buffer attachments for a render pass. [Full Topic] @@ -55,13 +55,6 @@ func (r_ RenderPassSampleBufferAttachmentDescriptorArray) Init() RenderPassSampl return rv } -// Sets the descriptor object for the specified sample buffer attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptorarray/3081755-setobject?language=objc -func (r_ RenderPassSampleBufferAttachmentDescriptorArray) SetObjectAtIndexedSubscript(attachment IRenderPassSampleBufferAttachmentDescriptor, attachmentIndex uint) { - objc.Call[objc.Void](r_, objc.Sel("setObject:atIndexedSubscript:"), attachment, attachmentIndex) -} - // Returns the descriptor object for the specified sample buffer attachment. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptorarray/3081754-objectatindexedsubscript?language=objc @@ -69,3 +62,10 @@ func (r_ RenderPassSampleBufferAttachmentDescriptorArray) ObjectAtIndexedSubscri rv := objc.Call[RenderPassSampleBufferAttachmentDescriptor](r_, objc.Sel("objectAtIndexedSubscript:"), attachmentIndex) return rv } + +// Sets the descriptor object for the specified sample buffer attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptorarray/3081755-setobject?language=objc +func (r_ RenderPassSampleBufferAttachmentDescriptorArray) SetObjectAtIndexedSubscript(attachment IRenderPassSampleBufferAttachmentDescriptor, attachmentIndex uint) { + objc.Call[objc.Void](r_, objc.Sel("setObject:atIndexedSubscript:"), attachment, attachmentIndex) +} diff --git a/macos/metal/render_pass_stencil_attachment_descriptor.gen.go b/macos/metal/render_pass_stencil_attachment_descriptor.gen.go index 17ed77fd..523275de 100644 --- a/macos/metal/render_pass_stencil_attachment_descriptor.gen.go +++ b/macos/metal/render_pass_stencil_attachment_descriptor.gen.go @@ -18,10 +18,10 @@ type _RenderPassStencilAttachmentDescriptorClass struct { // An interface definition for the [RenderPassStencilAttachmentDescriptor] class. type IRenderPassStencilAttachmentDescriptor interface { IRenderPassAttachmentDescriptor - ClearStencil() uint32 - SetClearStencil(value uint32) StencilResolveFilter() MultisampleStencilResolveFilter SetStencilResolveFilter(value MultisampleStencilResolveFilter) + ClearStencil() uint32 + SetClearStencil(value uint32) } // A stencil render target that serves as the output destination for stencil pixels generated by a render pass. [Full Topic] @@ -57,21 +57,6 @@ func (r_ RenderPassStencilAttachmentDescriptor) Init() RenderPassStencilAttachme return rv } -// The value to use when clearing the stencil attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassstencilattachmentdescriptor/1437931-clearstencil?language=objc -func (r_ RenderPassStencilAttachmentDescriptor) ClearStencil() uint32 { - rv := objc.Call[uint32](r_, objc.Sel("clearStencil")) - return rv -} - -// The value to use when clearing the stencil attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassstencilattachmentdescriptor/1437931-clearstencil?language=objc -func (r_ RenderPassStencilAttachmentDescriptor) SetClearStencil(value uint32) { - objc.Call[objc.Void](r_, objc.Sel("setClearStencil:"), value) -} - // The filter used for stencil multisample resolve. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassstencilattachmentdescriptor/2967446-stencilresolvefilter?language=objc @@ -86,3 +71,18 @@ func (r_ RenderPassStencilAttachmentDescriptor) StencilResolveFilter() Multisamp func (r_ RenderPassStencilAttachmentDescriptor) SetStencilResolveFilter(value MultisampleStencilResolveFilter) { objc.Call[objc.Void](r_, objc.Sel("setStencilResolveFilter:"), value) } + +// The value to use when clearing the stencil attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassstencilattachmentdescriptor/1437931-clearstencil?language=objc +func (r_ RenderPassStencilAttachmentDescriptor) ClearStencil() uint32 { + rv := objc.Call[uint32](r_, objc.Sel("clearStencil")) + return rv +} + +// The value to use when clearing the stencil attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassstencilattachmentdescriptor/1437931-clearstencil?language=objc +func (r_ RenderPassStencilAttachmentDescriptor) SetClearStencil(value uint32) { + objc.Call[objc.Void](r_, objc.Sel("setClearStencil:"), value) +} diff --git a/macos/metal/render_pipeline_color_attachment_descriptor.gen.go b/macos/metal/render_pipeline_color_attachment_descriptor.gen.go index 6f0c4242..f07d3784 100644 --- a/macos/metal/render_pipeline_color_attachment_descriptor.gen.go +++ b/macos/metal/render_pipeline_color_attachment_descriptor.gen.go @@ -20,22 +20,22 @@ type IRenderPipelineColorAttachmentDescriptor interface { objc.IObject DestinationRGBBlendFactor() BlendFactor SetDestinationRGBBlendFactor(value BlendFactor) - SourceAlphaBlendFactor() BlendFactor - SetSourceAlphaBlendFactor(value BlendFactor) - IsBlendingEnabled() bool - SetBlendingEnabled(value bool) - DestinationAlphaBlendFactor() BlendFactor - SetDestinationAlphaBlendFactor(value BlendFactor) - AlphaBlendOperation() BlendOperation - SetAlphaBlendOperation(value BlendOperation) - PixelFormat() PixelFormat - SetPixelFormat(value PixelFormat) - RgbBlendOperation() BlendOperation - SetRgbBlendOperation(value BlendOperation) SourceRGBBlendFactor() BlendFactor SetSourceRGBBlendFactor(value BlendFactor) + RgbBlendOperation() BlendOperation + SetRgbBlendOperation(value BlendOperation) + AlphaBlendOperation() BlendOperation + SetAlphaBlendOperation(value BlendOperation) WriteMask() ColorWriteMask SetWriteMask(value ColorWriteMask) + IsBlendingEnabled() bool + SetBlendingEnabled(value bool) + PixelFormat() PixelFormat + SetPixelFormat(value PixelFormat) + SourceAlphaBlendFactor() BlendFactor + SetSourceAlphaBlendFactor(value BlendFactor) + DestinationAlphaBlendFactor() BlendFactor + SetDestinationAlphaBlendFactor(value BlendFactor) } // A color render target that specifies the color configuration and color operations for a render pipeline. [Full Topic] @@ -86,49 +86,34 @@ func (r_ RenderPipelineColorAttachmentDescriptor) SetDestinationRGBBlendFactor(v objc.Call[objc.Void](r_, objc.Sel("setDestinationRGBBlendFactor:"), value) } -// The source blend factor (SBF) used by the alpha blend operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514660-sourcealphablendfactor?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) SourceAlphaBlendFactor() BlendFactor { - rv := objc.Call[BlendFactor](r_, objc.Sel("sourceAlphaBlendFactor")) - return rv -} - -// The source blend factor (SBF) used by the alpha blend operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514660-sourcealphablendfactor?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) SetSourceAlphaBlendFactor(value BlendFactor) { - objc.Call[objc.Void](r_, objc.Sel("setSourceAlphaBlendFactor:"), value) -} - -// A Boolean value that determines whether blending is enabled. [Full Topic] +// The source blend factor (SBF) used by the RGB blend operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514642-blendingenabled?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) IsBlendingEnabled() bool { - rv := objc.Call[bool](r_, objc.Sel("isBlendingEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514615-sourcergbblendfactor?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) SourceRGBBlendFactor() BlendFactor { + rv := objc.Call[BlendFactor](r_, objc.Sel("sourceRGBBlendFactor")) return rv } -// A Boolean value that determines whether blending is enabled. [Full Topic] +// The source blend factor (SBF) used by the RGB blend operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514642-blendingenabled?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) SetBlendingEnabled(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setBlendingEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514615-sourcergbblendfactor?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) SetSourceRGBBlendFactor(value BlendFactor) { + objc.Call[objc.Void](r_, objc.Sel("setSourceRGBBlendFactor:"), value) } -// The destination blend factor (DBF) used by the alpha blend operation. [Full Topic] +// The blend operation assigned for the RGB data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514657-destinationalphablendfactor?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) DestinationAlphaBlendFactor() BlendFactor { - rv := objc.Call[BlendFactor](r_, objc.Sel("destinationAlphaBlendFactor")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514659-rgbblendoperation?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) RgbBlendOperation() BlendOperation { + rv := objc.Call[BlendOperation](r_, objc.Sel("rgbBlendOperation")) return rv } -// The destination blend factor (DBF) used by the alpha blend operation. [Full Topic] +// The blend operation assigned for the RGB data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514657-destinationalphablendfactor?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) SetDestinationAlphaBlendFactor(value BlendFactor) { - objc.Call[objc.Void](r_, objc.Sel("setDestinationAlphaBlendFactor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514659-rgbblendoperation?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) SetRgbBlendOperation(value BlendOperation) { + objc.Call[objc.Void](r_, objc.Sel("setRgbBlendOperation:"), value) } // The blend operation assigned for the alpha data. [Full Topic] @@ -146,6 +131,36 @@ func (r_ RenderPipelineColorAttachmentDescriptor) SetAlphaBlendOperation(value B objc.Call[objc.Void](r_, objc.Sel("setAlphaBlendOperation:"), value) } +// A bitmask that restricts which color channels are written into the texture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514619-writemask?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) WriteMask() ColorWriteMask { + rv := objc.Call[ColorWriteMask](r_, objc.Sel("writeMask")) + return rv +} + +// A bitmask that restricts which color channels are written into the texture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514619-writemask?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) SetWriteMask(value ColorWriteMask) { + objc.Call[objc.Void](r_, objc.Sel("setWriteMask:"), value) +} + +// A Boolean value that determines whether blending is enabled. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514642-blendingenabled?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) IsBlendingEnabled() bool { + rv := objc.Call[bool](r_, objc.Sel("isBlendingEnabled")) + return rv +} + +// A Boolean value that determines whether blending is enabled. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514642-blendingenabled?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) SetBlendingEnabled(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setBlendingEnabled:"), value) +} + // The pixel format of the color attachment’s texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514651-pixelformat?language=objc @@ -161,47 +176,32 @@ func (r_ RenderPipelineColorAttachmentDescriptor) SetPixelFormat(value PixelForm objc.Call[objc.Void](r_, objc.Sel("setPixelFormat:"), value) } -// The blend operation assigned for the RGB data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514659-rgbblendoperation?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) RgbBlendOperation() BlendOperation { - rv := objc.Call[BlendOperation](r_, objc.Sel("rgbBlendOperation")) - return rv -} - -// The blend operation assigned for the RGB data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514659-rgbblendoperation?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) SetRgbBlendOperation(value BlendOperation) { - objc.Call[objc.Void](r_, objc.Sel("setRgbBlendOperation:"), value) -} - -// The source blend factor (SBF) used by the RGB blend operation. [Full Topic] +// The source blend factor (SBF) used by the alpha blend operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514615-sourcergbblendfactor?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) SourceRGBBlendFactor() BlendFactor { - rv := objc.Call[BlendFactor](r_, objc.Sel("sourceRGBBlendFactor")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514660-sourcealphablendfactor?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) SourceAlphaBlendFactor() BlendFactor { + rv := objc.Call[BlendFactor](r_, objc.Sel("sourceAlphaBlendFactor")) return rv } -// The source blend factor (SBF) used by the RGB blend operation. [Full Topic] +// The source blend factor (SBF) used by the alpha blend operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514615-sourcergbblendfactor?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) SetSourceRGBBlendFactor(value BlendFactor) { - objc.Call[objc.Void](r_, objc.Sel("setSourceRGBBlendFactor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514660-sourcealphablendfactor?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) SetSourceAlphaBlendFactor(value BlendFactor) { + objc.Call[objc.Void](r_, objc.Sel("setSourceAlphaBlendFactor:"), value) } -// A bitmask that restricts which color channels are written into the texture. [Full Topic] +// The destination blend factor (DBF) used by the alpha blend operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514619-writemask?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) WriteMask() ColorWriteMask { - rv := objc.Call[ColorWriteMask](r_, objc.Sel("writeMask")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514657-destinationalphablendfactor?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) DestinationAlphaBlendFactor() BlendFactor { + rv := objc.Call[BlendFactor](r_, objc.Sel("destinationAlphaBlendFactor")) return rv } -// A bitmask that restricts which color channels are written into the texture. [Full Topic] +// The destination blend factor (DBF) used by the alpha blend operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514619-writemask?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) SetWriteMask(value ColorWriteMask) { - objc.Call[objc.Void](r_, objc.Sel("setWriteMask:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinecolorattachmentdescriptor/1514657-destinationalphablendfactor?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) SetDestinationAlphaBlendFactor(value BlendFactor) { + objc.Call[objc.Void](r_, objc.Sel("setDestinationAlphaBlendFactor:"), value) } diff --git a/macos/metal/render_pipeline_descriptor.gen.go b/macos/metal/render_pipeline_descriptor.gen.go index 354d32b6..ed662a8f 100644 --- a/macos/metal/render_pipeline_descriptor.gen.go +++ b/macos/metal/render_pipeline_descriptor.gen.go @@ -21,67 +21,67 @@ type IRenderPipelineDescriptor interface { Reset() VertexLinkedFunctions() LinkedFunctions SetVertexLinkedFunctions(value ILinkedFunctions) - DepthAttachmentPixelFormat() PixelFormat - SetDepthAttachmentPixelFormat(value PixelFormat) - SupportAddingFragmentBinaryFunctions() bool - SetSupportAddingFragmentBinaryFunctions(value bool) - TessellationFactorStepFunction() TessellationFactorStepFunction - SetTessellationFactorStepFunction(value TessellationFactorStepFunction) - TessellationControlPointIndexType() TessellationControlPointIndexType - SetTessellationControlPointIndexType(value TessellationControlPointIndexType) - SupportIndirectCommandBuffers() bool - SetSupportIndirectCommandBuffers(value bool) - BinaryArchives() []BinaryArchiveObject - SetBinaryArchives(value []PBinaryArchive) - TessellationOutputWindingOrder() Winding - SetTessellationOutputWindingOrder(value Winding) - FragmentPreloadedLibraries() []DynamicLibraryObject - SetFragmentPreloadedLibraries(value []PDynamicLibrary) - IsAlphaToCoverageEnabled() bool - SetAlphaToCoverageEnabled(value bool) FragmentFunction() FunctionObject SetFragmentFunction(value PFunction) SetFragmentFunctionObject(valueObject objc.IObject) + TessellationFactorFormat() TessellationFactorFormat + SetTessellationFactorFormat(value TessellationFactorFormat) + IsRasterizationEnabled() bool + SetRasterizationEnabled(value bool) FragmentLinkedFunctions() LinkedFunctions SetFragmentLinkedFunctions(value ILinkedFunctions) - StencilAttachmentPixelFormat() PixelFormat - SetStencilAttachmentPixelFormat(value PixelFormat) FragmentBuffers() PipelineBufferDescriptorArray - IsTessellationFactorScaleEnabled() bool - SetTessellationFactorScaleEnabled(value bool) - RasterSampleCount() uint - SetRasterSampleCount(value uint) - SupportAddingVertexBinaryFunctions() bool - SetSupportAddingVertexBinaryFunctions(value bool) + MaxFragmentCallStackDepth() uint + SetMaxFragmentCallStackDepth(value uint) InputPrimitiveTopology() PrimitiveTopologyClass SetInputPrimitiveTopology(value PrimitiveTopologyClass) - MaxVertexAmplificationCount() uint - SetMaxVertexAmplificationCount(value uint) ColorAttachments() RenderPipelineColorAttachmentDescriptorArray - Label() string - SetLabel(value string) - TessellationFactorFormat() TessellationFactorFormat - SetTessellationFactorFormat(value TessellationFactorFormat) - MaxFragmentCallStackDepth() uint - SetMaxFragmentCallStackDepth(value uint) IsAlphaToOneEnabled() bool SetAlphaToOneEnabled(value bool) - MaxTessellationFactor() uint - SetMaxTessellationFactor(value uint) + TessellationOutputWindingOrder() Winding + SetTessellationOutputWindingOrder(value Winding) VertexBuffers() PipelineBufferDescriptorArray - IsRasterizationEnabled() bool - SetRasterizationEnabled(value bool) - VertexFunction() FunctionObject - SetVertexFunction(value PFunction) - SetVertexFunctionObject(valueObject objc.IObject) - TessellationPartitionMode() TessellationPartitionMode - SetTessellationPartitionMode(value TessellationPartitionMode) - VertexPreloadedLibraries() []DynamicLibraryObject - SetVertexPreloadedLibraries(value []PDynamicLibrary) + SupportAddingVertexBinaryFunctions() bool + SetSupportAddingVertexBinaryFunctions(value bool) + IsAlphaToCoverageEnabled() bool + SetAlphaToCoverageEnabled(value bool) MaxVertexCallStackDepth() uint SetMaxVertexCallStackDepth(value uint) VertexDescriptor() VertexDescriptor SetVertexDescriptor(value IVertexDescriptor) + FragmentPreloadedLibraries() []DynamicLibraryObject + SetFragmentPreloadedLibraries(value []PDynamicLibrary) + TessellationControlPointIndexType() TessellationControlPointIndexType + SetTessellationControlPointIndexType(value TessellationControlPointIndexType) + IsTessellationFactorScaleEnabled() bool + SetTessellationFactorScaleEnabled(value bool) + RasterSampleCount() uint + SetRasterSampleCount(value uint) + StencilAttachmentPixelFormat() PixelFormat + SetStencilAttachmentPixelFormat(value PixelFormat) + TessellationPartitionMode() TessellationPartitionMode + SetTessellationPartitionMode(value TessellationPartitionMode) + MaxTessellationFactor() uint + SetMaxTessellationFactor(value uint) + VertexPreloadedLibraries() []DynamicLibraryObject + SetVertexPreloadedLibraries(value []PDynamicLibrary) + VertexFunction() FunctionObject + SetVertexFunction(value PFunction) + SetVertexFunctionObject(valueObject objc.IObject) + MaxVertexAmplificationCount() uint + SetMaxVertexAmplificationCount(value uint) + Label() string + SetLabel(value string) + TessellationFactorStepFunction() TessellationFactorStepFunction + SetTessellationFactorStepFunction(value TessellationFactorStepFunction) + SupportAddingFragmentBinaryFunctions() bool + SetSupportAddingFragmentBinaryFunctions(value bool) + DepthAttachmentPixelFormat() PixelFormat + SetDepthAttachmentPixelFormat(value PixelFormat) + SupportIndirectCommandBuffers() bool + SetSupportIndirectCommandBuffers(value bool) + BinaryArchives() []BinaryArchiveObject + SetBinaryArchives(value []PBinaryArchive) } // An argument of options you pass to a GPU device to get a render pipeline state. [Full Topic] @@ -139,94 +139,133 @@ func (r_ RenderPipelineDescriptor) SetVertexLinkedFunctions(value ILinkedFunctio objc.Call[objc.Void](r_, objc.Sel("setVertexLinkedFunctions:"), value) } -// The pixel format of the attachment that stores depth data. [Full Topic] +// The fragment function the pipeline calls to process fragments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514608-depthattachmentpixelformat?language=objc -func (r_ RenderPipelineDescriptor) DepthAttachmentPixelFormat() PixelFormat { - rv := objc.Call[PixelFormat](r_, objc.Sel("depthAttachmentPixelFormat")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514600-fragmentfunction?language=objc +func (r_ RenderPipelineDescriptor) FragmentFunction() FunctionObject { + rv := objc.Call[FunctionObject](r_, objc.Sel("fragmentFunction")) return rv } -// The pixel format of the attachment that stores depth data. [Full Topic] +// The fragment function the pipeline calls to process fragments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514608-depthattachmentpixelformat?language=objc -func (r_ RenderPipelineDescriptor) SetDepthAttachmentPixelFormat(value PixelFormat) { - objc.Call[objc.Void](r_, objc.Sel("setDepthAttachmentPixelFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514600-fragmentfunction?language=objc +func (r_ RenderPipelineDescriptor) SetFragmentFunction(value PFunction) { + po0 := objc.WrapAsProtocol("MTLFunction", value) + objc.Call[objc.Void](r_, objc.Sel("setFragmentFunction:"), po0) } -// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to the fragment shader’s callable functions list. [Full Topic] +// The fragment function the pipeline calls to process fragments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750574-supportaddingfragmentbinaryfunct?language=objc -func (r_ RenderPipelineDescriptor) SupportAddingFragmentBinaryFunctions() bool { - rv := objc.Call[bool](r_, objc.Sel("supportAddingFragmentBinaryFunctions")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514600-fragmentfunction?language=objc +func (r_ RenderPipelineDescriptor) SetFragmentFunctionObject(valueObject objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("setFragmentFunction:"), valueObject) +} + +// The format of the tessellation factors in the tessellation factor buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1639951-tessellationfactorformat?language=objc +func (r_ RenderPipelineDescriptor) TessellationFactorFormat() TessellationFactorFormat { + rv := objc.Call[TessellationFactorFormat](r_, objc.Sel("tessellationFactorFormat")) return rv } -// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to the fragment shader’s callable functions list. [Full Topic] +// The format of the tessellation factors in the tessellation factor buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750574-supportaddingfragmentbinaryfunct?language=objc -func (r_ RenderPipelineDescriptor) SetSupportAddingFragmentBinaryFunctions(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setSupportAddingFragmentBinaryFunctions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1639951-tessellationfactorformat?language=objc +func (r_ RenderPipelineDescriptor) SetTessellationFactorFormat(value TessellationFactorFormat) { + objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorFormat:"), value) } -// The step function for determining the tessellation factors for a patch from the tessellation factor buffer. [Full Topic] +// A Boolean value that determines whether the pipeline rasterizes primitives. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640062-tessellationfactorstepfunction?language=objc -func (r_ RenderPipelineDescriptor) TessellationFactorStepFunction() TessellationFactorStepFunction { - rv := objc.Call[TessellationFactorStepFunction](r_, objc.Sel("tessellationFactorStepFunction")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514708-rasterizationenabled?language=objc +func (r_ RenderPipelineDescriptor) IsRasterizationEnabled() bool { + rv := objc.Call[bool](r_, objc.Sel("isRasterizationEnabled")) return rv } -// The step function for determining the tessellation factors for a patch from the tessellation factor buffer. [Full Topic] +// A Boolean value that determines whether the pipeline rasterizes primitives. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640062-tessellationfactorstepfunction?language=objc -func (r_ RenderPipelineDescriptor) SetTessellationFactorStepFunction(value TessellationFactorStepFunction) { - objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorStepFunction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514708-rasterizationenabled?language=objc +func (r_ RenderPipelineDescriptor) SetRasterizationEnabled(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setRasterizationEnabled:"), value) } -// The size of the control point indices in a control point index buffer. [Full Topic] +// Functions that you can specify as function arguments for the fragment shader when encoding commands that use the pipeline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640059-tessellationcontrolpointindextyp?language=objc -func (r_ RenderPipelineDescriptor) TessellationControlPointIndexType() TessellationControlPointIndexType { - rv := objc.Call[TessellationControlPointIndexType](r_, objc.Sel("tessellationControlPointIndexType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750569-fragmentlinkedfunctions?language=objc +func (r_ RenderPipelineDescriptor) FragmentLinkedFunctions() LinkedFunctions { + rv := objc.Call[LinkedFunctions](r_, objc.Sel("fragmentLinkedFunctions")) return rv } -// The size of the control point indices in a control point index buffer. [Full Topic] +// Functions that you can specify as function arguments for the fragment shader when encoding commands that use the pipeline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640059-tessellationcontrolpointindextyp?language=objc -func (r_ RenderPipelineDescriptor) SetTessellationControlPointIndexType(value TessellationControlPointIndexType) { - objc.Call[objc.Void](r_, objc.Sel("setTessellationControlPointIndexType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750569-fragmentlinkedfunctions?language=objc +func (r_ RenderPipelineDescriptor) SetFragmentLinkedFunctions(value ILinkedFunctions) { + objc.Call[objc.Void](r_, objc.Sel("setFragmentLinkedFunctions:"), value) } -// A Boolean value that determines whether you can encode commands into an indirect command buffer using the render pipeline. [Full Topic] +// An array that contains the buffer mutability options for a render pipeline's fragment function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/2966638-supportindirectcommandbuffers?language=objc -func (r_ RenderPipelineDescriptor) SupportIndirectCommandBuffers() bool { - rv := objc.Call[bool](r_, objc.Sel("supportIndirectCommandBuffers")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/2879275-fragmentbuffers?language=objc +func (r_ RenderPipelineDescriptor) FragmentBuffers() PipelineBufferDescriptorArray { + rv := objc.Call[PipelineBufferDescriptorArray](r_, objc.Sel("fragmentBuffers")) return rv } -// A Boolean value that determines whether you can encode commands into an indirect command buffer using the render pipeline. [Full Topic] +// The maximum function call depth from the top-most fragment shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/2966638-supportindirectcommandbuffers?language=objc -func (r_ RenderPipelineDescriptor) SetSupportIndirectCommandBuffers(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setSupportIndirectCommandBuffers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750572-maxfragmentcallstackdepth?language=objc +func (r_ RenderPipelineDescriptor) MaxFragmentCallStackDepth() uint { + rv := objc.Call[uint](r_, objc.Sel("maxFragmentCallStackDepth")) + return rv } -// An array of binary archives to search for precompiled versions of the shader. [Full Topic] +// The maximum function call depth from the top-most fragment shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3554050-binaryarchives?language=objc -func (r_ RenderPipelineDescriptor) BinaryArchives() []BinaryArchiveObject { - rv := objc.Call[[]BinaryArchiveObject](r_, objc.Sel("binaryArchives")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750572-maxfragmentcallstackdepth?language=objc +func (r_ RenderPipelineDescriptor) SetMaxFragmentCallStackDepth(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setMaxFragmentCallStackDepth:"), value) +} + +// The type of primitive topology the pipeline renders. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514684-inputprimitivetopology?language=objc +func (r_ RenderPipelineDescriptor) InputPrimitiveTopology() PrimitiveTopologyClass { + rv := objc.Call[PrimitiveTopologyClass](r_, objc.Sel("inputPrimitiveTopology")) return rv } -// An array of binary archives to search for precompiled versions of the shader. [Full Topic] +// The type of primitive topology the pipeline renders. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3554050-binaryarchives?language=objc -func (r_ RenderPipelineDescriptor) SetBinaryArchives(value []PBinaryArchive) { - objc.Call[objc.Void](r_, objc.Sel("setBinaryArchives:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514684-inputprimitivetopology?language=objc +func (r_ RenderPipelineDescriptor) SetInputPrimitiveTopology(value PrimitiveTopologyClass) { + objc.Call[objc.Void](r_, objc.Sel("setInputPrimitiveTopology:"), value) +} + +// An array of attachments that store color data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514712-colorattachments?language=objc +func (r_ RenderPipelineDescriptor) ColorAttachments() RenderPipelineColorAttachmentDescriptorArray { + rv := objc.Call[RenderPipelineColorAttachmentDescriptorArray](r_, objc.Sel("colorAttachments")) + return rv +} + +// A Boolean value that indicates whether to force alpha channel values for color attachments to the largest representable value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514697-alphatooneenabled?language=objc +func (r_ RenderPipelineDescriptor) IsAlphaToOneEnabled() bool { + rv := objc.Call[bool](r_, objc.Sel("isAlphaToOneEnabled")) + return rv +} + +// A Boolean value that indicates whether to force alpha channel values for color attachments to the largest representable value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514697-alphatooneenabled?language=objc +func (r_ RenderPipelineDescriptor) SetAlphaToOneEnabled(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setAlphaToOneEnabled:"), value) } // The winding order of triangles from the tessellator. [Full Topic] @@ -244,19 +283,27 @@ func (r_ RenderPipelineDescriptor) SetTessellationOutputWindingOrder(value Windi objc.Call[objc.Void](r_, objc.Sel("setTessellationOutputWindingOrder:"), value) } -// [Full Topic] +// An array that contains the buffer mutability options for a render pipeline's vertex function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3801723-fragmentpreloadedlibraries?language=objc -func (r_ RenderPipelineDescriptor) FragmentPreloadedLibraries() []DynamicLibraryObject { - rv := objc.Call[[]DynamicLibraryObject](r_, objc.Sel("fragmentPreloadedLibraries")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/2879280-vertexbuffers?language=objc +func (r_ RenderPipelineDescriptor) VertexBuffers() PipelineBufferDescriptorArray { + rv := objc.Call[PipelineBufferDescriptorArray](r_, objc.Sel("vertexBuffers")) return rv } -// [Full Topic] +// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to the vertex shader’s callable functions list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3801723-fragmentpreloadedlibraries?language=objc -func (r_ RenderPipelineDescriptor) SetFragmentPreloadedLibraries(value []PDynamicLibrary) { - objc.Call[objc.Void](r_, objc.Sel("setFragmentPreloadedLibraries:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750575-supportaddingvertexbinaryfunctio?language=objc +func (r_ RenderPipelineDescriptor) SupportAddingVertexBinaryFunctions() bool { + rv := objc.Call[bool](r_, objc.Sel("supportAddingVertexBinaryFunctions")) + return rv +} + +// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to the vertex shader’s callable functions list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750575-supportaddingvertexbinaryfunctio?language=objc +func (r_ RenderPipelineDescriptor) SetSupportAddingVertexBinaryFunctions(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setSupportAddingVertexBinaryFunctions:"), value) } // A Boolean value that indicates whether to read and use the alpha channel fragment output for color attachments to compute a sample coverage mask. [Full Topic] @@ -274,67 +321,66 @@ func (r_ RenderPipelineDescriptor) SetAlphaToCoverageEnabled(value bool) { objc.Call[objc.Void](r_, objc.Sel("setAlphaToCoverageEnabled:"), value) } -// The fragment function the pipeline calls to process fragments. [Full Topic] +// The maximum function call depth from the top-most vertex shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514600-fragmentfunction?language=objc -func (r_ RenderPipelineDescriptor) FragmentFunction() FunctionObject { - rv := objc.Call[FunctionObject](r_, objc.Sel("fragmentFunction")) - return rv -} - -// The fragment function the pipeline calls to process fragments. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514600-fragmentfunction?language=objc -func (r_ RenderPipelineDescriptor) SetFragmentFunction(value PFunction) { - po0 := objc.WrapAsProtocol("MTLFunction", value) - objc.Call[objc.Void](r_, objc.Sel("setFragmentFunction:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750573-maxvertexcallstackdepth?language=objc +func (r_ RenderPipelineDescriptor) MaxVertexCallStackDepth() uint { + rv := objc.Call[uint](r_, objc.Sel("maxVertexCallStackDepth")) + return rv } -// The fragment function the pipeline calls to process fragments. [Full Topic] +// The maximum function call depth from the top-most vertex shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514600-fragmentfunction?language=objc -func (r_ RenderPipelineDescriptor) SetFragmentFunctionObject(valueObject objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("setFragmentFunction:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750573-maxvertexcallstackdepth?language=objc +func (r_ RenderPipelineDescriptor) SetMaxVertexCallStackDepth(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setMaxVertexCallStackDepth:"), value) } -// Functions that you can specify as function arguments for the fragment shader when encoding commands that use the pipeline. [Full Topic] +// The organization of vertex data in an attribute’s argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750569-fragmentlinkedfunctions?language=objc -func (r_ RenderPipelineDescriptor) FragmentLinkedFunctions() LinkedFunctions { - rv := objc.Call[LinkedFunctions](r_, objc.Sel("fragmentLinkedFunctions")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514681-vertexdescriptor?language=objc +func (r_ RenderPipelineDescriptor) VertexDescriptor() VertexDescriptor { + rv := objc.Call[VertexDescriptor](r_, objc.Sel("vertexDescriptor")) return rv } -// Functions that you can specify as function arguments for the fragment shader when encoding commands that use the pipeline. [Full Topic] +// The organization of vertex data in an attribute’s argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750569-fragmentlinkedfunctions?language=objc -func (r_ RenderPipelineDescriptor) SetFragmentLinkedFunctions(value ILinkedFunctions) { - objc.Call[objc.Void](r_, objc.Sel("setFragmentLinkedFunctions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514681-vertexdescriptor?language=objc +func (r_ RenderPipelineDescriptor) SetVertexDescriptor(value IVertexDescriptor) { + objc.Call[objc.Void](r_, objc.Sel("setVertexDescriptor:"), value) } -// The pixel format of the attachment that stores stencil data. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514650-stencilattachmentpixelformat?language=objc -func (r_ RenderPipelineDescriptor) StencilAttachmentPixelFormat() PixelFormat { - rv := objc.Call[PixelFormat](r_, objc.Sel("stencilAttachmentPixelFormat")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3801723-fragmentpreloadedlibraries?language=objc +func (r_ RenderPipelineDescriptor) FragmentPreloadedLibraries() []DynamicLibraryObject { + rv := objc.Call[[]DynamicLibraryObject](r_, objc.Sel("fragmentPreloadedLibraries")) return rv } -// The pixel format of the attachment that stores stencil data. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514650-stencilattachmentpixelformat?language=objc -func (r_ RenderPipelineDescriptor) SetStencilAttachmentPixelFormat(value PixelFormat) { - objc.Call[objc.Void](r_, objc.Sel("setStencilAttachmentPixelFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3801723-fragmentpreloadedlibraries?language=objc +func (r_ RenderPipelineDescriptor) SetFragmentPreloadedLibraries(value []PDynamicLibrary) { + objc.Call[objc.Void](r_, objc.Sel("setFragmentPreloadedLibraries:"), value) } -// An array that contains the buffer mutability options for a render pipeline's fragment function. [Full Topic] +// The size of the control point indices in a control point index buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/2879275-fragmentbuffers?language=objc -func (r_ RenderPipelineDescriptor) FragmentBuffers() PipelineBufferDescriptorArray { - rv := objc.Call[PipelineBufferDescriptorArray](r_, objc.Sel("fragmentBuffers")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640059-tessellationcontrolpointindextyp?language=objc +func (r_ RenderPipelineDescriptor) TessellationControlPointIndexType() TessellationControlPointIndexType { + rv := objc.Call[TessellationControlPointIndexType](r_, objc.Sel("tessellationControlPointIndexType")) return rv } +// The size of the control point indices in a control point index buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640059-tessellationcontrolpointindextyp?language=objc +func (r_ RenderPipelineDescriptor) SetTessellationControlPointIndexType(value TessellationControlPointIndexType) { + objc.Call[objc.Void](r_, objc.Sel("setTessellationControlPointIndexType:"), value) +} + // A Boolean value that determines whether the pipeline scales the tessellation factor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640045-tessellationfactorscaleenabled?language=objc @@ -365,117 +411,34 @@ func (r_ RenderPipelineDescriptor) SetRasterSampleCount(value uint) { objc.Call[objc.Void](r_, objc.Sel("setRasterSampleCount:"), value) } -// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to the vertex shader’s callable functions list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750575-supportaddingvertexbinaryfunctio?language=objc -func (r_ RenderPipelineDescriptor) SupportAddingVertexBinaryFunctions() bool { - rv := objc.Call[bool](r_, objc.Sel("supportAddingVertexBinaryFunctions")) - return rv -} - -// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to the vertex shader’s callable functions list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750575-supportaddingvertexbinaryfunctio?language=objc -func (r_ RenderPipelineDescriptor) SetSupportAddingVertexBinaryFunctions(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setSupportAddingVertexBinaryFunctions:"), value) -} - -// The type of primitive topology the pipeline renders. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514684-inputprimitivetopology?language=objc -func (r_ RenderPipelineDescriptor) InputPrimitiveTopology() PrimitiveTopologyClass { - rv := objc.Call[PrimitiveTopologyClass](r_, objc.Sel("inputPrimitiveTopology")) - return rv -} - -// The type of primitive topology the pipeline renders. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514684-inputprimitivetopology?language=objc -func (r_ RenderPipelineDescriptor) SetInputPrimitiveTopology(value PrimitiveTopologyClass) { - objc.Call[objc.Void](r_, objc.Sel("setInputPrimitiveTopology:"), value) -} - -// The maximum vertex amplification count you can set when encoding render commands. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3088854-maxvertexamplificationcount?language=objc -func (r_ RenderPipelineDescriptor) MaxVertexAmplificationCount() uint { - rv := objc.Call[uint](r_, objc.Sel("maxVertexAmplificationCount")) - return rv -} - -// The maximum vertex amplification count you can set when encoding render commands. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3088854-maxvertexamplificationcount?language=objc -func (r_ RenderPipelineDescriptor) SetMaxVertexAmplificationCount(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setMaxVertexAmplificationCount:"), value) -} - -// An array of attachments that store color data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514712-colorattachments?language=objc -func (r_ RenderPipelineDescriptor) ColorAttachments() RenderPipelineColorAttachmentDescriptorArray { - rv := objc.Call[RenderPipelineColorAttachmentDescriptorArray](r_, objc.Sel("colorAttachments")) - return rv -} - -// A string that identifies the render pipeline descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514705-label?language=objc -func (r_ RenderPipelineDescriptor) Label() string { - rv := objc.Call[string](r_, objc.Sel("label")) - return rv -} - -// A string that identifies the render pipeline descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514705-label?language=objc -func (r_ RenderPipelineDescriptor) SetLabel(value string) { - objc.Call[objc.Void](r_, objc.Sel("setLabel:"), value) -} - -// The format of the tessellation factors in the tessellation factor buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1639951-tessellationfactorformat?language=objc -func (r_ RenderPipelineDescriptor) TessellationFactorFormat() TessellationFactorFormat { - rv := objc.Call[TessellationFactorFormat](r_, objc.Sel("tessellationFactorFormat")) - return rv -} - -// The format of the tessellation factors in the tessellation factor buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1639951-tessellationfactorformat?language=objc -func (r_ RenderPipelineDescriptor) SetTessellationFactorFormat(value TessellationFactorFormat) { - objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorFormat:"), value) -} - -// The maximum function call depth from the top-most fragment shader function. [Full Topic] +// The pixel format of the attachment that stores stencil data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750572-maxfragmentcallstackdepth?language=objc -func (r_ RenderPipelineDescriptor) MaxFragmentCallStackDepth() uint { - rv := objc.Call[uint](r_, objc.Sel("maxFragmentCallStackDepth")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514650-stencilattachmentpixelformat?language=objc +func (r_ RenderPipelineDescriptor) StencilAttachmentPixelFormat() PixelFormat { + rv := objc.Call[PixelFormat](r_, objc.Sel("stencilAttachmentPixelFormat")) return rv } -// The maximum function call depth from the top-most fragment shader function. [Full Topic] +// The pixel format of the attachment that stores stencil data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750572-maxfragmentcallstackdepth?language=objc -func (r_ RenderPipelineDescriptor) SetMaxFragmentCallStackDepth(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setMaxFragmentCallStackDepth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514650-stencilattachmentpixelformat?language=objc +func (r_ RenderPipelineDescriptor) SetStencilAttachmentPixelFormat(value PixelFormat) { + objc.Call[objc.Void](r_, objc.Sel("setStencilAttachmentPixelFormat:"), value) } -// A Boolean value that indicates whether to force alpha channel values for color attachments to the largest representable value. [Full Topic] +// The partitioning mode that the tessellator uses to derive the number and spacing of segments for subdividing a corresponding edge. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514697-alphatooneenabled?language=objc -func (r_ RenderPipelineDescriptor) IsAlphaToOneEnabled() bool { - rv := objc.Call[bool](r_, objc.Sel("isAlphaToOneEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1639979-tessellationpartitionmode?language=objc +func (r_ RenderPipelineDescriptor) TessellationPartitionMode() TessellationPartitionMode { + rv := objc.Call[TessellationPartitionMode](r_, objc.Sel("tessellationPartitionMode")) return rv } -// A Boolean value that indicates whether to force alpha channel values for color attachments to the largest representable value. [Full Topic] +// The partitioning mode that the tessellator uses to derive the number and spacing of segments for subdividing a corresponding edge. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514697-alphatooneenabled?language=objc -func (r_ RenderPipelineDescriptor) SetAlphaToOneEnabled(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setAlphaToOneEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1639979-tessellationpartitionmode?language=objc +func (r_ RenderPipelineDescriptor) SetTessellationPartitionMode(value TessellationPartitionMode) { + objc.Call[objc.Void](r_, objc.Sel("setTessellationPartitionMode:"), value) } // The maximum tessellation factor that the tessellator uses when tessellating patches. [Full Topic] @@ -493,27 +456,19 @@ func (r_ RenderPipelineDescriptor) SetMaxTessellationFactor(value uint) { objc.Call[objc.Void](r_, objc.Sel("setMaxTessellationFactor:"), value) } -// An array that contains the buffer mutability options for a render pipeline's vertex function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/2879280-vertexbuffers?language=objc -func (r_ RenderPipelineDescriptor) VertexBuffers() PipelineBufferDescriptorArray { - rv := objc.Call[PipelineBufferDescriptorArray](r_, objc.Sel("vertexBuffers")) - return rv -} - -// A Boolean value that determines whether the pipeline rasterizes primitives. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514708-rasterizationenabled?language=objc -func (r_ RenderPipelineDescriptor) IsRasterizationEnabled() bool { - rv := objc.Call[bool](r_, objc.Sel("isRasterizationEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3801724-vertexpreloadedlibraries?language=objc +func (r_ RenderPipelineDescriptor) VertexPreloadedLibraries() []DynamicLibraryObject { + rv := objc.Call[[]DynamicLibraryObject](r_, objc.Sel("vertexPreloadedLibraries")) return rv } -// A Boolean value that determines whether the pipeline rasterizes primitives. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514708-rasterizationenabled?language=objc -func (r_ RenderPipelineDescriptor) SetRasterizationEnabled(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setRasterizationEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3801724-vertexpreloadedlibraries?language=objc +func (r_ RenderPipelineDescriptor) SetVertexPreloadedLibraries(value []PDynamicLibrary) { + objc.Call[objc.Void](r_, objc.Sel("setVertexPreloadedLibraries:"), value) } // The vertex function the pipeline calls to process vertices. [Full Topic] @@ -539,62 +494,107 @@ func (r_ RenderPipelineDescriptor) SetVertexFunctionObject(valueObject objc.IObj objc.Call[objc.Void](r_, objc.Sel("setVertexFunction:"), valueObject) } -// The partitioning mode that the tessellator uses to derive the number and spacing of segments for subdividing a corresponding edge. [Full Topic] +// The maximum vertex amplification count you can set when encoding render commands. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1639979-tessellationpartitionmode?language=objc -func (r_ RenderPipelineDescriptor) TessellationPartitionMode() TessellationPartitionMode { - rv := objc.Call[TessellationPartitionMode](r_, objc.Sel("tessellationPartitionMode")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3088854-maxvertexamplificationcount?language=objc +func (r_ RenderPipelineDescriptor) MaxVertexAmplificationCount() uint { + rv := objc.Call[uint](r_, objc.Sel("maxVertexAmplificationCount")) return rv } -// The partitioning mode that the tessellator uses to derive the number and spacing of segments for subdividing a corresponding edge. [Full Topic] +// The maximum vertex amplification count you can set when encoding render commands. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1639979-tessellationpartitionmode?language=objc -func (r_ RenderPipelineDescriptor) SetTessellationPartitionMode(value TessellationPartitionMode) { - objc.Call[objc.Void](r_, objc.Sel("setTessellationPartitionMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3088854-maxvertexamplificationcount?language=objc +func (r_ RenderPipelineDescriptor) SetMaxVertexAmplificationCount(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setMaxVertexAmplificationCount:"), value) } -// [Full Topic] +// A string that identifies the render pipeline descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3801724-vertexpreloadedlibraries?language=objc -func (r_ RenderPipelineDescriptor) VertexPreloadedLibraries() []DynamicLibraryObject { - rv := objc.Call[[]DynamicLibraryObject](r_, objc.Sel("vertexPreloadedLibraries")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514705-label?language=objc +func (r_ RenderPipelineDescriptor) Label() string { + rv := objc.Call[string](r_, objc.Sel("label")) return rv } -// [Full Topic] +// A string that identifies the render pipeline descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3801724-vertexpreloadedlibraries?language=objc -func (r_ RenderPipelineDescriptor) SetVertexPreloadedLibraries(value []PDynamicLibrary) { - objc.Call[objc.Void](r_, objc.Sel("setVertexPreloadedLibraries:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514705-label?language=objc +func (r_ RenderPipelineDescriptor) SetLabel(value string) { + objc.Call[objc.Void](r_, objc.Sel("setLabel:"), value) } -// The maximum function call depth from the top-most vertex shader function. [Full Topic] +// The step function for determining the tessellation factors for a patch from the tessellation factor buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750573-maxvertexcallstackdepth?language=objc -func (r_ RenderPipelineDescriptor) MaxVertexCallStackDepth() uint { - rv := objc.Call[uint](r_, objc.Sel("maxVertexCallStackDepth")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640062-tessellationfactorstepfunction?language=objc +func (r_ RenderPipelineDescriptor) TessellationFactorStepFunction() TessellationFactorStepFunction { + rv := objc.Call[TessellationFactorStepFunction](r_, objc.Sel("tessellationFactorStepFunction")) return rv } -// The maximum function call depth from the top-most vertex shader function. [Full Topic] +// The step function for determining the tessellation factors for a patch from the tessellation factor buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750573-maxvertexcallstackdepth?language=objc -func (r_ RenderPipelineDescriptor) SetMaxVertexCallStackDepth(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setMaxVertexCallStackDepth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640062-tessellationfactorstepfunction?language=objc +func (r_ RenderPipelineDescriptor) SetTessellationFactorStepFunction(value TessellationFactorStepFunction) { + objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorStepFunction:"), value) } -// The organization of vertex data in an attribute’s argument table. [Full Topic] +// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to the fragment shader’s callable functions list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514681-vertexdescriptor?language=objc -func (r_ RenderPipelineDescriptor) VertexDescriptor() VertexDescriptor { - rv := objc.Call[VertexDescriptor](r_, objc.Sel("vertexDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750574-supportaddingfragmentbinaryfunct?language=objc +func (r_ RenderPipelineDescriptor) SupportAddingFragmentBinaryFunctions() bool { + rv := objc.Call[bool](r_, objc.Sel("supportAddingFragmentBinaryFunctions")) return rv } -// The organization of vertex data in an attribute’s argument table. [Full Topic] +// A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to the fragment shader’s callable functions list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514681-vertexdescriptor?language=objc -func (r_ RenderPipelineDescriptor) SetVertexDescriptor(value IVertexDescriptor) { - objc.Call[objc.Void](r_, objc.Sel("setVertexDescriptor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3750574-supportaddingfragmentbinaryfunct?language=objc +func (r_ RenderPipelineDescriptor) SetSupportAddingFragmentBinaryFunctions(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setSupportAddingFragmentBinaryFunctions:"), value) +} + +// The pixel format of the attachment that stores depth data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514608-depthattachmentpixelformat?language=objc +func (r_ RenderPipelineDescriptor) DepthAttachmentPixelFormat() PixelFormat { + rv := objc.Call[PixelFormat](r_, objc.Sel("depthAttachmentPixelFormat")) + return rv +} + +// The pixel format of the attachment that stores depth data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514608-depthattachmentpixelformat?language=objc +func (r_ RenderPipelineDescriptor) SetDepthAttachmentPixelFormat(value PixelFormat) { + objc.Call[objc.Void](r_, objc.Sel("setDepthAttachmentPixelFormat:"), value) +} + +// A Boolean value that determines whether you can encode commands into an indirect command buffer using the render pipeline. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/2966638-supportindirectcommandbuffers?language=objc +func (r_ RenderPipelineDescriptor) SupportIndirectCommandBuffers() bool { + rv := objc.Call[bool](r_, objc.Sel("supportIndirectCommandBuffers")) + return rv +} + +// A Boolean value that determines whether you can encode commands into an indirect command buffer using the render pipeline. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/2966638-supportindirectcommandbuffers?language=objc +func (r_ RenderPipelineDescriptor) SetSupportIndirectCommandBuffers(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setSupportIndirectCommandBuffers:"), value) +} + +// An array of binary archives to search for precompiled versions of the shader. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3554050-binaryarchives?language=objc +func (r_ RenderPipelineDescriptor) BinaryArchives() []BinaryArchiveObject { + rv := objc.Call[[]BinaryArchiveObject](r_, objc.Sel("binaryArchives")) + return rv +} + +// An array of binary archives to search for precompiled versions of the shader. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3554050-binaryarchives?language=objc +func (r_ RenderPipelineDescriptor) SetBinaryArchives(value []PBinaryArchive) { + objc.Call[objc.Void](r_, objc.Sel("setBinaryArchives:"), value) } diff --git a/macos/metal/render_pipeline_state_protocol.gen.go b/macos/metal/render_pipeline_state_protocol.gen.go index 9f7a0432..416b0bee 100644 --- a/macos/metal/render_pipeline_state_protocol.gen.go +++ b/macos/metal/render_pipeline_state_protocol.gen.go @@ -12,14 +12,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate?language=objc type PRenderPipelineState interface { - // optional - ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint - HasImageblockMemoryLengthForDimensions() bool - - // optional - FunctionHandleWithFunctionStage(function FunctionObject, stage RenderStages) FunctionHandleObject - HasFunctionHandleWithFunctionStage() bool - // optional NewIntersectionFunctionTableWithDescriptorStage(descriptor IntersectionFunctionTableDescriptor, stage RenderStages) IntersectionFunctionTableObject HasNewIntersectionFunctionTableWithDescriptorStage() bool @@ -33,28 +25,36 @@ type PRenderPipelineState interface { HasNewVisibleFunctionTableWithDescriptorStage() bool // optional - ThreadgroupSizeMatchesTileSize() bool - HasThreadgroupSizeMatchesTileSize() bool + FunctionHandleWithFunctionStage(function FunctionObject, stage RenderStages) FunctionHandleObject + HasFunctionHandleWithFunctionStage() bool // optional - MaxTotalThreadsPerThreadgroup() uint - HasMaxTotalThreadsPerThreadgroup() bool + ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint + HasImageblockMemoryLengthForDimensions() bool // optional Device() DeviceObject HasDevice() bool // optional - ImageblockSampleLength() uint - HasImageblockSampleLength() bool + MaxTotalThreadsPerThreadgroup() uint + HasMaxTotalThreadsPerThreadgroup() bool // optional - SupportIndirectCommandBuffers() bool - HasSupportIndirectCommandBuffers() bool + ThreadgroupSizeMatchesTileSize() bool + HasThreadgroupSizeMatchesTileSize() bool // optional Label() string HasLabel() bool + + // optional + SupportIndirectCommandBuffers() bool + HasSupportIndirectCommandBuffers() bool + + // optional + ImageblockSampleLength() uint + HasImageblockSampleLength() bool } // ensure impl type implements protocol interface @@ -65,31 +65,6 @@ type RenderPipelineStateObject struct { objc.Object } -func (r_ RenderPipelineStateObject) HasImageblockMemoryLengthForDimensions() bool { - return r_.RespondsToSelector(objc.Sel("imageblockMemoryLengthForDimensions:")) -} - -// Returns the length of an imageblock’s memory for the specified imageblock dimensions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2928216-imageblockmemorylengthfordimensi?language=objc -func (r_ RenderPipelineStateObject) ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint { - rv := objc.Call[uint](r_, objc.Sel("imageblockMemoryLengthForDimensions:"), imageblockDimensions) - return rv -} - -func (r_ RenderPipelineStateObject) HasFunctionHandleWithFunctionStage() bool { - return r_.RespondsToSelector(objc.Sel("functionHandleWithFunction:stage:")) -} - -// Creates a function handle for a shader. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/3750581-functionhandlewithfunction?language=objc -func (r_ RenderPipelineStateObject) FunctionHandleWithFunctionStage(function FunctionObject, stage RenderStages) FunctionHandleObject { - po0 := objc.WrapAsProtocol("MTLFunction", function) - rv := objc.Call[FunctionHandleObject](r_, objc.Sel("functionHandleWithFunction:stage:"), po0, stage) - return rv -} - func (r_ RenderPipelineStateObject) HasNewIntersectionFunctionTableWithDescriptorStage() bool { return r_.RespondsToSelector(objc.Sel("newIntersectionFunctionTableWithDescriptor:stage:")) } @@ -126,27 +101,28 @@ func (r_ RenderPipelineStateObject) NewVisibleFunctionTableWithDescriptorStage(d return rv } -func (r_ RenderPipelineStateObject) HasThreadgroupSizeMatchesTileSize() bool { - return r_.RespondsToSelector(objc.Sel("threadgroupSizeMatchesTileSize")) +func (r_ RenderPipelineStateObject) HasFunctionHandleWithFunctionStage() bool { + return r_.RespondsToSelector(objc.Sel("functionHandleWithFunction:stage:")) } -// A Boolean value that indicates whether the pipeline state needs a threadgroup’s size to equal a tile’s size. [Full Topic] +// Creates a function handle for a shader. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2866353-threadgroupsizematchestilesize?language=objc -func (r_ RenderPipelineStateObject) ThreadgroupSizeMatchesTileSize() bool { - rv := objc.Call[bool](r_, objc.Sel("threadgroupSizeMatchesTileSize")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/3750581-functionhandlewithfunction?language=objc +func (r_ RenderPipelineStateObject) FunctionHandleWithFunctionStage(function FunctionObject, stage RenderStages) FunctionHandleObject { + po0 := objc.WrapAsProtocol("MTLFunction", function) + rv := objc.Call[FunctionHandleObject](r_, objc.Sel("functionHandleWithFunction:stage:"), po0, stage) return rv } -func (r_ RenderPipelineStateObject) HasMaxTotalThreadsPerThreadgroup() bool { - return r_.RespondsToSelector(objc.Sel("maxTotalThreadsPerThreadgroup")) +func (r_ RenderPipelineStateObject) HasImageblockMemoryLengthForDimensions() bool { + return r_.RespondsToSelector(objc.Sel("imageblockMemoryLengthForDimensions:")) } -// The largest number of threads the pipeline state can have in a single tile shader threadgroup. [Full Topic] +// Returns the length of an imageblock’s memory for the specified imageblock dimensions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2866352-maxtotalthreadsperthreadgroup?language=objc -func (r_ RenderPipelineStateObject) MaxTotalThreadsPerThreadgroup() uint { - rv := objc.Call[uint](r_, objc.Sel("maxTotalThreadsPerThreadgroup")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2928216-imageblockmemorylengthfordimensi?language=objc +func (r_ RenderPipelineStateObject) ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint { + rv := objc.Call[uint](r_, objc.Sel("imageblockMemoryLengthForDimensions:"), imageblockDimensions) return rv } @@ -162,27 +138,27 @@ func (r_ RenderPipelineStateObject) Device() DeviceObject { return rv } -func (r_ RenderPipelineStateObject) HasImageblockSampleLength() bool { - return r_.RespondsToSelector(objc.Sel("imageblockSampleLength")) +func (r_ RenderPipelineStateObject) HasMaxTotalThreadsPerThreadgroup() bool { + return r_.RespondsToSelector(objc.Sel("maxTotalThreadsPerThreadgroup")) } -// The memory size, in byes, of the render pipeline’s imageblock for a single sample. [Full Topic] +// The largest number of threads the pipeline state can have in a single tile shader threadgroup. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2928215-imageblocksamplelength?language=objc -func (r_ RenderPipelineStateObject) ImageblockSampleLength() uint { - rv := objc.Call[uint](r_, objc.Sel("imageblockSampleLength")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2866352-maxtotalthreadsperthreadgroup?language=objc +func (r_ RenderPipelineStateObject) MaxTotalThreadsPerThreadgroup() uint { + rv := objc.Call[uint](r_, objc.Sel("maxTotalThreadsPerThreadgroup")) return rv } -func (r_ RenderPipelineStateObject) HasSupportIndirectCommandBuffers() bool { - return r_.RespondsToSelector(objc.Sel("supportIndirectCommandBuffers")) +func (r_ RenderPipelineStateObject) HasThreadgroupSizeMatchesTileSize() bool { + return r_.RespondsToSelector(objc.Sel("threadgroupSizeMatchesTileSize")) } -// A Boolean value that indicates whether the render pipeline supports encoding commands into an indirect command buffer. [Full Topic] +// A Boolean value that indicates whether the pipeline state needs a threadgroup’s size to equal a tile’s size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2966639-supportindirectcommandbuffers?language=objc -func (r_ RenderPipelineStateObject) SupportIndirectCommandBuffers() bool { - rv := objc.Call[bool](r_, objc.Sel("supportIndirectCommandBuffers")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2866353-threadgroupsizematchestilesize?language=objc +func (r_ RenderPipelineStateObject) ThreadgroupSizeMatchesTileSize() bool { + rv := objc.Call[bool](r_, objc.Sel("threadgroupSizeMatchesTileSize")) return rv } @@ -197,3 +173,27 @@ func (r_ RenderPipelineStateObject) Label() string { rv := objc.Call[string](r_, objc.Sel("label")) return rv } + +func (r_ RenderPipelineStateObject) HasSupportIndirectCommandBuffers() bool { + return r_.RespondsToSelector(objc.Sel("supportIndirectCommandBuffers")) +} + +// A Boolean value that indicates whether the render pipeline supports encoding commands into an indirect command buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2966639-supportindirectcommandbuffers?language=objc +func (r_ RenderPipelineStateObject) SupportIndirectCommandBuffers() bool { + rv := objc.Call[bool](r_, objc.Sel("supportIndirectCommandBuffers")) + return rv +} + +func (r_ RenderPipelineStateObject) HasImageblockSampleLength() bool { + return r_.RespondsToSelector(objc.Sel("imageblockSampleLength")) +} + +// The memory size, in byes, of the render pipeline’s imageblock for a single sample. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2928215-imageblocksamplelength?language=objc +func (r_ RenderPipelineStateObject) ImageblockSampleLength() uint { + rv := objc.Call[uint](r_, objc.Sel("imageblockSampleLength")) + return rv +} diff --git a/macos/metal/resource_protocol.gen.go b/macos/metal/resource_protocol.gen.go index 5dd326ff..1505fcc8 100644 --- a/macos/metal/resource_protocol.gen.go +++ b/macos/metal/resource_protocol.gen.go @@ -11,48 +11,44 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource?language=objc type PResource interface { // optional - SetPurgeableState(state PurgeableState) PurgeableState - HasSetPurgeableState() bool + IsAliasable() bool + HasIsAliasable() bool // optional MakeAliasable() HasMakeAliasable() bool // optional - IsAliasable() bool - HasIsAliasable() bool + SetPurgeableState(state PurgeableState) PurgeableState + HasSetPurgeableState() bool // optional Device() DeviceObject HasDevice() bool // optional - HazardTrackingMode() HazardTrackingMode - HasHazardTrackingMode() bool + AllocatedSize() uint + HasAllocatedSize() bool // optional - ResourceOptions() ResourceOptions - HasResourceOptions() bool + Heap() HeapObject + HasHeap() bool // optional CpuCacheMode() CPUCacheMode HasCpuCacheMode() bool - // optional - HeapOffset() uint - HasHeapOffset() bool - - // optional - AllocatedSize() uint - HasAllocatedSize() bool - // optional StorageMode() StorageMode HasStorageMode() bool // optional - Heap() HeapObject - HasHeap() bool + ResourceOptions() ResourceOptions + HasResourceOptions() bool + + // optional + HeapOffset() uint + HasHeapOffset() bool // optional SetLabel(value string) @@ -61,6 +57,10 @@ type PResource interface { // optional Label() string HasLabel() bool + + // optional + HazardTrackingMode() HazardTrackingMode + HasHazardTrackingMode() bool } // ensure impl type implements protocol interface @@ -71,15 +71,15 @@ type ResourceObject struct { objc.Object } -func (r_ ResourceObject) HasSetPurgeableState() bool { - return r_.RespondsToSelector(objc.Sel("setPurgeableState:")) +func (r_ ResourceObject) HasIsAliasable() bool { + return r_.RespondsToSelector(objc.Sel("isAliasable")) } -// Specifies or queries the resource’s purgeable state. [Full Topic] +// A Boolean value that indicates whether future heap resource allocations may alias against the resource’s memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1515898-setpurgeablestate?language=objc -func (r_ ResourceObject) SetPurgeableState(state PurgeableState) PurgeableState { - rv := objc.Call[PurgeableState](r_, objc.Sel("setPurgeableState:"), state) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1771702-isaliasable?language=objc +func (r_ ResourceObject) IsAliasable() bool { + rv := objc.Call[bool](r_, objc.Sel("isAliasable")) return rv } @@ -94,15 +94,15 @@ func (r_ ResourceObject) MakeAliasable() { objc.Call[objc.Void](r_, objc.Sel("makeAliasable")) } -func (r_ ResourceObject) HasIsAliasable() bool { - return r_.RespondsToSelector(objc.Sel("isAliasable")) +func (r_ ResourceObject) HasSetPurgeableState() bool { + return r_.RespondsToSelector(objc.Sel("setPurgeableState:")) } -// A Boolean value that indicates whether future heap resource allocations may alias against the resource’s memory. [Full Topic] +// Specifies or queries the resource’s purgeable state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1771702-isaliasable?language=objc -func (r_ ResourceObject) IsAliasable() bool { - rv := objc.Call[bool](r_, objc.Sel("isAliasable")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1515898-setpurgeablestate?language=objc +func (r_ ResourceObject) SetPurgeableState(state PurgeableState) PurgeableState { + rv := objc.Call[PurgeableState](r_, objc.Sel("setPurgeableState:"), state) return rv } @@ -118,27 +118,27 @@ func (r_ ResourceObject) Device() DeviceObject { return rv } -func (r_ ResourceObject) HasHazardTrackingMode() bool { - return r_.RespondsToSelector(objc.Sel("hazardTrackingMode")) +func (r_ ResourceObject) HasAllocatedSize() bool { + return r_.RespondsToSelector(objc.Sel("allocatedSize")) } -// A mode that determines whether Metal tracks and synchronizes resource access. [Full Topic] +// The size of the resource, in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/3131693-hazardtrackingmode?language=objc -func (r_ ResourceObject) HazardTrackingMode() HazardTrackingMode { - rv := objc.Call[HazardTrackingMode](r_, objc.Sel("hazardTrackingMode")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/2915287-allocatedsize?language=objc +func (r_ ResourceObject) AllocatedSize() uint { + rv := objc.Call[uint](r_, objc.Sel("allocatedSize")) return rv } -func (r_ ResourceObject) HasResourceOptions() bool { - return r_.RespondsToSelector(objc.Sel("resourceOptions")) +func (r_ ResourceObject) HasHeap() bool { + return r_.RespondsToSelector(objc.Sel("heap")) } -// The storage mode, CPU cache mode, and hazard tracking mode of the resource. [Full Topic] +// The heap on which the resource is allocated, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/3131694-resourceoptions?language=objc -func (r_ ResourceObject) ResourceOptions() ResourceOptions { - rv := objc.Call[ResourceOptions](r_, objc.Sel("resourceOptions")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1682333-heap?language=objc +func (r_ ResourceObject) Heap() HeapObject { + rv := objc.Call[HeapObject](r_, objc.Sel("heap")) return rv } @@ -154,30 +154,6 @@ func (r_ ResourceObject) CpuCacheMode() CPUCacheMode { return rv } -func (r_ ResourceObject) HasHeapOffset() bool { - return r_.RespondsToSelector(objc.Sel("heapOffset")) -} - -// The distance, in bytes, from the beginning of the heap to the first byte of the resource, if you allocated the resource on a heap. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/3043406-heapoffset?language=objc -func (r_ ResourceObject) HeapOffset() uint { - rv := objc.Call[uint](r_, objc.Sel("heapOffset")) - return rv -} - -func (r_ ResourceObject) HasAllocatedSize() bool { - return r_.RespondsToSelector(objc.Sel("allocatedSize")) -} - -// The size of the resource, in bytes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/2915287-allocatedsize?language=objc -func (r_ ResourceObject) AllocatedSize() uint { - rv := objc.Call[uint](r_, objc.Sel("allocatedSize")) - return rv -} - func (r_ ResourceObject) HasStorageMode() bool { return r_.RespondsToSelector(objc.Sel("storageMode")) } @@ -190,15 +166,27 @@ func (r_ ResourceObject) StorageMode() StorageMode { return rv } -func (r_ ResourceObject) HasHeap() bool { - return r_.RespondsToSelector(objc.Sel("heap")) +func (r_ ResourceObject) HasResourceOptions() bool { + return r_.RespondsToSelector(objc.Sel("resourceOptions")) } -// The heap on which the resource is allocated, if any. [Full Topic] +// The storage mode, CPU cache mode, and hazard tracking mode of the resource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1682333-heap?language=objc -func (r_ ResourceObject) Heap() HeapObject { - rv := objc.Call[HeapObject](r_, objc.Sel("heap")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/3131694-resourceoptions?language=objc +func (r_ ResourceObject) ResourceOptions() ResourceOptions { + rv := objc.Call[ResourceOptions](r_, objc.Sel("resourceOptions")) + return rv +} + +func (r_ ResourceObject) HasHeapOffset() bool { + return r_.RespondsToSelector(objc.Sel("heapOffset")) +} + +// The distance, in bytes, from the beginning of the heap to the first byte of the resource, if you allocated the resource on a heap. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/3043406-heapoffset?language=objc +func (r_ ResourceObject) HeapOffset() uint { + rv := objc.Call[uint](r_, objc.Sel("heapOffset")) return rv } @@ -224,3 +212,15 @@ func (r_ ResourceObject) Label() string { rv := objc.Call[string](r_, objc.Sel("label")) return rv } + +func (r_ ResourceObject) HasHazardTrackingMode() bool { + return r_.RespondsToSelector(objc.Sel("hazardTrackingMode")) +} + +// A mode that determines whether Metal tracks and synchronizes resource access. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/3131693-hazardtrackingmode?language=objc +func (r_ ResourceObject) HazardTrackingMode() HazardTrackingMode { + rv := objc.Call[HazardTrackingMode](r_, objc.Sel("hazardTrackingMode")) + return rv +} diff --git a/macos/metal/resource_state_command_encoder_protocol.gen.go b/macos/metal/resource_state_command_encoder_protocol.gen.go index c21ca073..d6f59847 100644 --- a/macos/metal/resource_state_command_encoder_protocol.gen.go +++ b/macos/metal/resource_state_command_encoder_protocol.gen.go @@ -14,10 +14,6 @@ type PResourceStateCommandEncoder interface { UpdateTextureMappingsModeRegionsMipLevelsSlicesNumRegions(texture TextureObject, mode SparseTextureMappingMode, regions *Region, mipLevels *uint, slices *uint, numRegions uint) HasUpdateTextureMappingsModeRegionsMipLevelsSlicesNumRegions() bool - // optional - WaitForFence(fence FenceObject) - HasWaitForFence() bool - // optional UpdateTextureMappingModeIndirectBufferIndirectBufferOffset(texture TextureObject, mode SparseTextureMappingMode, indirectBuffer BufferObject, indirectBufferOffset uint) HasUpdateTextureMappingModeIndirectBufferIndirectBufferOffset() bool @@ -27,8 +23,8 @@ type PResourceStateCommandEncoder interface { HasUpdateFence() bool // optional - UpdateTextureMappingModeRegionMipLevelSlice(texture TextureObject, mode SparseTextureMappingMode, region Region, mipLevel uint, slice uint) - HasUpdateTextureMappingModeRegionMipLevelSlice() bool + WaitForFence(fence FenceObject) + HasWaitForFence() bool } // ensure impl type implements protocol interface @@ -51,18 +47,6 @@ func (r_ ResourceStateCommandEncoderObject) UpdateTextureMappingsModeRegionsMipL objc.Call[objc.Void](r_, objc.Sel("updateTextureMappings:mode:regions:mipLevels:slices:numRegions:"), po0, mode, regions, mipLevels, slices, numRegions) } -func (r_ ResourceStateCommandEncoderObject) HasWaitForFence() bool { - return r_.RespondsToSelector(objc.Sel("waitForFence:")) -} - -// Prevents the command encoder from enqueuing further GPU commands until the given fence is reached. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatecommandencoder/3114015-waitforfence?language=objc -func (r_ ResourceStateCommandEncoderObject) WaitForFence(fence FenceObject) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](r_, objc.Sel("waitForFence:"), po0) -} - func (r_ ResourceStateCommandEncoderObject) HasUpdateTextureMappingModeIndirectBufferIndirectBufferOffset() bool { return r_.RespondsToSelector(objc.Sel("updateTextureMapping:mode:indirectBuffer:indirectBufferOffset:")) } @@ -88,14 +72,14 @@ func (r_ ResourceStateCommandEncoderObject) UpdateFence(fence FenceObject) { objc.Call[objc.Void](r_, objc.Sel("updateFence:"), po0) } -func (r_ ResourceStateCommandEncoderObject) HasUpdateTextureMappingModeRegionMipLevelSlice() bool { - return r_.RespondsToSelector(objc.Sel("updateTextureMapping:mode:region:mipLevel:slice:")) +func (r_ ResourceStateCommandEncoderObject) HasWaitForFence() bool { + return r_.RespondsToSelector(objc.Sel("waitForFence:")) } -// Encodes a command to update the texture mappings for a region in a single texture mipmap. [Full Topic] +// Prevents the command encoder from enqueuing further GPU commands until the given fence is reached. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatecommandencoder/3043994-updatetexturemapping?language=objc -func (r_ ResourceStateCommandEncoderObject) UpdateTextureMappingModeRegionMipLevelSlice(texture TextureObject, mode SparseTextureMappingMode, region Region, mipLevel uint, slice uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](r_, objc.Sel("updateTextureMapping:mode:region:mipLevel:slice:"), po0, mode, region, mipLevel, slice) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatecommandencoder/3114015-waitforfence?language=objc +func (r_ ResourceStateCommandEncoderObject) WaitForFence(fence FenceObject) { + po0 := objc.WrapAsProtocol("MTLFence", fence) + objc.Call[objc.Void](r_, objc.Sel("waitForFence:"), po0) } diff --git a/macos/metal/resource_state_pass_sample_buffer_attachment_descriptor.gen.go b/macos/metal/resource_state_pass_sample_buffer_attachment_descriptor.gen.go index f79265c9..eb3a8440 100644 --- a/macos/metal/resource_state_pass_sample_buffer_attachment_descriptor.gen.go +++ b/macos/metal/resource_state_pass_sample_buffer_attachment_descriptor.gen.go @@ -18,13 +18,13 @@ type _ResourceStatePassSampleBufferAttachmentDescriptorClass struct { // An interface definition for the [ResourceStatePassSampleBufferAttachmentDescriptor] class. type IResourceStatePassSampleBufferAttachmentDescriptor interface { objc.IObject + StartOfEncoderSampleIndex() uint + SetStartOfEncoderSampleIndex(value uint) + EndOfEncoderSampleIndex() uint + SetEndOfEncoderSampleIndex(value uint) SampleBuffer() CounterSampleBufferObject SetSampleBuffer(value PCounterSampleBuffer) SetSampleBufferObject(valueObject objc.IObject) - EndOfEncoderSampleIndex() uint - SetEndOfEncoderSampleIndex(value uint) - StartOfEncoderSampleIndex() uint - SetStartOfEncoderSampleIndex(value uint) } // A description of where to store GPU counter information at the start and end of a resource state pass. [Full Topic] @@ -60,27 +60,19 @@ func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) Init() ResourceState return rv } -// A specialized memory buffer that the GPU uses to store its counter data during the resource state pass. [Full Topic] +// The index the Metal device object should use to store GPU counters when starting the resource state pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptor/3566567-samplebuffer?language=objc -func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) SampleBuffer() CounterSampleBufferObject { - rv := objc.Call[CounterSampleBufferObject](r_, objc.Sel("sampleBuffer")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptor/3566568-startofencodersampleindex?language=objc +func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) StartOfEncoderSampleIndex() uint { + rv := objc.Call[uint](r_, objc.Sel("startOfEncoderSampleIndex")) return rv } -// A specialized memory buffer that the GPU uses to store its counter data during the resource state pass. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptor/3566567-samplebuffer?language=objc -func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) SetSampleBuffer(value PCounterSampleBuffer) { - po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", value) - objc.Call[objc.Void](r_, objc.Sel("setSampleBuffer:"), po0) -} - -// A specialized memory buffer that the GPU uses to store its counter data during the resource state pass. [Full Topic] +// The index the Metal device object should use to store GPU counters when starting the resource state pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptor/3566567-samplebuffer?language=objc -func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) SetSampleBufferObject(valueObject objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("setSampleBuffer:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptor/3566568-startofencodersampleindex?language=objc +func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) SetStartOfEncoderSampleIndex(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setStartOfEncoderSampleIndex:"), value) } // The index the Metal device object should use to store GPU counters when ending the resource state pass. [Full Topic] @@ -98,17 +90,25 @@ func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) SetEndOfEncoderSampl objc.Call[objc.Void](r_, objc.Sel("setEndOfEncoderSampleIndex:"), value) } -// The index the Metal device object should use to store GPU counters when starting the resource state pass. [Full Topic] +// A specialized memory buffer that the GPU uses to store its counter data during the resource state pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptor/3566568-startofencodersampleindex?language=objc -func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) StartOfEncoderSampleIndex() uint { - rv := objc.Call[uint](r_, objc.Sel("startOfEncoderSampleIndex")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptor/3566567-samplebuffer?language=objc +func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) SampleBuffer() CounterSampleBufferObject { + rv := objc.Call[CounterSampleBufferObject](r_, objc.Sel("sampleBuffer")) return rv } -// The index the Metal device object should use to store GPU counters when starting the resource state pass. [Full Topic] +// A specialized memory buffer that the GPU uses to store its counter data during the resource state pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptor/3566568-startofencodersampleindex?language=objc -func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) SetStartOfEncoderSampleIndex(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setStartOfEncoderSampleIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptor/3566567-samplebuffer?language=objc +func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) SetSampleBuffer(value PCounterSampleBuffer) { + po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", value) + objc.Call[objc.Void](r_, objc.Sel("setSampleBuffer:"), po0) +} + +// A specialized memory buffer that the GPU uses to store its counter data during the resource state pass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptor/3566567-samplebuffer?language=objc +func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) SetSampleBufferObject(valueObject objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("setSampleBuffer:"), valueObject) } diff --git a/macos/metal/resource_state_pass_sample_buffer_attachment_descriptor_array.gen.go b/macos/metal/resource_state_pass_sample_buffer_attachment_descriptor_array.gen.go index c2e8c246..70ebf7da 100644 --- a/macos/metal/resource_state_pass_sample_buffer_attachment_descriptor_array.gen.go +++ b/macos/metal/resource_state_pass_sample_buffer_attachment_descriptor_array.gen.go @@ -18,8 +18,8 @@ type _ResourceStatePassSampleBufferAttachmentDescriptorArrayClass struct { // An interface definition for the [ResourceStatePassSampleBufferAttachmentDescriptorArray] class. type IResourceStatePassSampleBufferAttachmentDescriptorArray interface { objc.IObject - SetObjectAtIndexedSubscript(attachment IResourceStatePassSampleBufferAttachmentDescriptor, attachmentIndex uint) ObjectAtIndexedSubscript(attachmentIndex uint) ResourceStatePassSampleBufferAttachmentDescriptor + SetObjectAtIndexedSubscript(attachment IResourceStatePassSampleBufferAttachmentDescriptor, attachmentIndex uint) } // An array of sample buffer attachments for a resource state pass. [Full Topic] @@ -55,13 +55,6 @@ func (r_ ResourceStatePassSampleBufferAttachmentDescriptorArray) Init() Resource return rv } -// Sets the descriptor object for the specified sample buffer attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptorarray/3566571-setobject?language=objc -func (r_ ResourceStatePassSampleBufferAttachmentDescriptorArray) SetObjectAtIndexedSubscript(attachment IResourceStatePassSampleBufferAttachmentDescriptor, attachmentIndex uint) { - objc.Call[objc.Void](r_, objc.Sel("setObject:atIndexedSubscript:"), attachment, attachmentIndex) -} - // Returns the descriptor object for the specified sample buffer attachment. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptorarray/3566570-objectatindexedsubscript?language=objc @@ -69,3 +62,10 @@ func (r_ ResourceStatePassSampleBufferAttachmentDescriptorArray) ObjectAtIndexed rv := objc.Call[ResourceStatePassSampleBufferAttachmentDescriptor](r_, objc.Sel("objectAtIndexedSubscript:"), attachmentIndex) return rv } + +// Sets the descriptor object for the specified sample buffer attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatepasssamplebufferattachmentdescriptorarray/3566571-setobject?language=objc +func (r_ ResourceStatePassSampleBufferAttachmentDescriptorArray) SetObjectAtIndexedSubscript(attachment IResourceStatePassSampleBufferAttachmentDescriptor, attachmentIndex uint) { + objc.Call[objc.Void](r_, objc.Sel("setObject:atIndexedSubscript:"), attachment, attachmentIndex) +} diff --git a/macos/metal/sampler_descriptor.gen.go b/macos/metal/sampler_descriptor.gen.go index 1b12f1f3..0e270663 100644 --- a/macos/metal/sampler_descriptor.gen.go +++ b/macos/metal/sampler_descriptor.gen.go @@ -18,34 +18,34 @@ type _SamplerDescriptorClass struct { // An interface definition for the [SamplerDescriptor] class. type ISamplerDescriptor interface { objc.IObject - Label() string - SetLabel(value string) + NormalizedCoordinates() bool + SetNormalizedCoordinates(value bool) + MagFilter() SamplerMinMagFilter + SetMagFilter(value SamplerMinMagFilter) + LodMinClamp() float32 + SetLodMinClamp(value float32) + MipFilter() SamplerMipFilter + SetMipFilter(value SamplerMipFilter) + MinFilter() SamplerMinMagFilter + SetMinFilter(value SamplerMinMagFilter) + TAddressMode() SamplerAddressMode + SetTAddressMode(value SamplerAddressMode) + SAddressMode() SamplerAddressMode + SetSAddressMode(value SamplerAddressMode) LodMaxClamp() float32 SetLodMaxClamp(value float32) + RAddressMode() SamplerAddressMode + SetRAddressMode(value SamplerAddressMode) BorderColor() SamplerBorderColor SetBorderColor(value SamplerBorderColor) CompareFunction() CompareFunction SetCompareFunction(value CompareFunction) - MagFilter() SamplerMinMagFilter - SetMagFilter(value SamplerMinMagFilter) + Label() string + SetLabel(value string) LodAverage() bool SetLodAverage(value bool) - SAddressMode() SamplerAddressMode - SetSAddressMode(value SamplerAddressMode) - LodMinClamp() float32 - SetLodMinClamp(value float32) - RAddressMode() SamplerAddressMode - SetRAddressMode(value SamplerAddressMode) - NormalizedCoordinates() bool - SetNormalizedCoordinates(value bool) MaxAnisotropy() uint SetMaxAnisotropy(value uint) - MinFilter() SamplerMinMagFilter - SetMinFilter(value SamplerMinMagFilter) - MipFilter() SamplerMipFilter - SetMipFilter(value SamplerMipFilter) - TAddressMode() SamplerAddressMode - SetTAddressMode(value SamplerAddressMode) SupportArgumentBuffers() bool SetSupportArgumentBuffers(value bool) } @@ -83,94 +83,94 @@ func (s_ SamplerDescriptor) Init() SamplerDescriptor { return rv } -// A string that identifies the sampler. [Full Topic] +// A Boolean value that indicates whether texture coordinates are normalized to the range [0.0, 1.0]. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515771-label?language=objc -func (s_ SamplerDescriptor) Label() string { - rv := objc.Call[string](s_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516289-normalizedcoordinates?language=objc +func (s_ SamplerDescriptor) NormalizedCoordinates() bool { + rv := objc.Call[bool](s_, objc.Sel("normalizedCoordinates")) return rv } -// A string that identifies the sampler. [Full Topic] +// A Boolean value that indicates whether texture coordinates are normalized to the range [0.0, 1.0]. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515771-label?language=objc -func (s_ SamplerDescriptor) SetLabel(value string) { - objc.Call[objc.Void](s_, objc.Sel("setLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516289-normalizedcoordinates?language=objc +func (s_ SamplerDescriptor) SetNormalizedCoordinates(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setNormalizedCoordinates:"), value) } -// The maximum level of detail (LOD) to use when sampling from a texture. [Full Topic] +// The filtering operation for combining pixels within one mipmap level when the sample footprint is smaller than a pixel (magnification). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516234-lodmaxclamp?language=objc -func (s_ SamplerDescriptor) LodMaxClamp() float32 { - rv := objc.Call[float32](s_, objc.Sel("lodMaxClamp")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515926-magfilter?language=objc +func (s_ SamplerDescriptor) MagFilter() SamplerMinMagFilter { + rv := objc.Call[SamplerMinMagFilter](s_, objc.Sel("magFilter")) return rv } -// The maximum level of detail (LOD) to use when sampling from a texture. [Full Topic] +// The filtering operation for combining pixels within one mipmap level when the sample footprint is smaller than a pixel (magnification). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516234-lodmaxclamp?language=objc -func (s_ SamplerDescriptor) SetLodMaxClamp(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setLodMaxClamp:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515926-magfilter?language=objc +func (s_ SamplerDescriptor) SetMagFilter(value SamplerMinMagFilter) { + objc.Call[objc.Void](s_, objc.Sel("setMagFilter:"), value) } -// The border color for clamped texture values. [Full Topic] +// The minimum level of detail (LOD) to use when sampling from a texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/2092299-bordercolor?language=objc -func (s_ SamplerDescriptor) BorderColor() SamplerBorderColor { - rv := objc.Call[SamplerBorderColor](s_, objc.Sel("borderColor")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515629-lodminclamp?language=objc +func (s_ SamplerDescriptor) LodMinClamp() float32 { + rv := objc.Call[float32](s_, objc.Sel("lodMinClamp")) return rv } -// The border color for clamped texture values. [Full Topic] +// The minimum level of detail (LOD) to use when sampling from a texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/2092299-bordercolor?language=objc -func (s_ SamplerDescriptor) SetBorderColor(value SamplerBorderColor) { - objc.Call[objc.Void](s_, objc.Sel("setBorderColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515629-lodminclamp?language=objc +func (s_ SamplerDescriptor) SetLodMinClamp(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setLodMinClamp:"), value) } -// The sampler comparison function used when performing a sample compare operation on a depth texture. [Full Topic] +// The filtering option for combining pixels between two mipmap levels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516001-comparefunction?language=objc -func (s_ SamplerDescriptor) CompareFunction() CompareFunction { - rv := objc.Call[CompareFunction](s_, objc.Sel("compareFunction")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515553-mipfilter?language=objc +func (s_ SamplerDescriptor) MipFilter() SamplerMipFilter { + rv := objc.Call[SamplerMipFilter](s_, objc.Sel("mipFilter")) return rv } -// The sampler comparison function used when performing a sample compare operation on a depth texture. [Full Topic] +// The filtering option for combining pixels between two mipmap levels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516001-comparefunction?language=objc -func (s_ SamplerDescriptor) SetCompareFunction(value CompareFunction) { - objc.Call[objc.Void](s_, objc.Sel("setCompareFunction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515553-mipfilter?language=objc +func (s_ SamplerDescriptor) SetMipFilter(value SamplerMipFilter) { + objc.Call[objc.Void](s_, objc.Sel("setMipFilter:"), value) } -// The filtering operation for combining pixels within one mipmap level when the sample footprint is smaller than a pixel (magnification). [Full Topic] +// The filtering option for combining pixels within one mipmap level when the sample footprint is larger than a pixel (minification). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515926-magfilter?language=objc -func (s_ SamplerDescriptor) MagFilter() SamplerMinMagFilter { - rv := objc.Call[SamplerMinMagFilter](s_, objc.Sel("magFilter")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515792-minfilter?language=objc +func (s_ SamplerDescriptor) MinFilter() SamplerMinMagFilter { + rv := objc.Call[SamplerMinMagFilter](s_, objc.Sel("minFilter")) return rv } -// The filtering operation for combining pixels within one mipmap level when the sample footprint is smaller than a pixel (magnification). [Full Topic] +// The filtering option for combining pixels within one mipmap level when the sample footprint is larger than a pixel (minification). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515926-magfilter?language=objc -func (s_ SamplerDescriptor) SetMagFilter(value SamplerMinMagFilter) { - objc.Call[objc.Void](s_, objc.Sel("setMagFilter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515792-minfilter?language=objc +func (s_ SamplerDescriptor) SetMinFilter(value SamplerMinMagFilter) { + objc.Call[objc.Void](s_, objc.Sel("setMinFilter:"), value) } -// A Boolean value that specifies whether the GPU can use an average level of detail (LOD) when sampling from a texture. [Full Topic] +// The address mode for the texture height (t) coordinate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1615844-lodaverage?language=objc -func (s_ SamplerDescriptor) LodAverage() bool { - rv := objc.Call[bool](s_, objc.Sel("lodAverage")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515900-taddressmode?language=objc +func (s_ SamplerDescriptor) TAddressMode() SamplerAddressMode { + rv := objc.Call[SamplerAddressMode](s_, objc.Sel("tAddressMode")) return rv } -// A Boolean value that specifies whether the GPU can use an average level of detail (LOD) when sampling from a texture. [Full Topic] +// The address mode for the texture height (t) coordinate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1615844-lodaverage?language=objc -func (s_ SamplerDescriptor) SetLodAverage(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setLodAverage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515900-taddressmode?language=objc +func (s_ SamplerDescriptor) SetTAddressMode(value SamplerAddressMode) { + objc.Call[objc.Void](s_, objc.Sel("setTAddressMode:"), value) } // The address mode for the texture width (s) coordinate. [Full Topic] @@ -188,19 +188,19 @@ func (s_ SamplerDescriptor) SetSAddressMode(value SamplerAddressMode) { objc.Call[objc.Void](s_, objc.Sel("setSAddressMode:"), value) } -// The minimum level of detail (LOD) to use when sampling from a texture. [Full Topic] +// The maximum level of detail (LOD) to use when sampling from a texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515629-lodminclamp?language=objc -func (s_ SamplerDescriptor) LodMinClamp() float32 { - rv := objc.Call[float32](s_, objc.Sel("lodMinClamp")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516234-lodmaxclamp?language=objc +func (s_ SamplerDescriptor) LodMaxClamp() float32 { + rv := objc.Call[float32](s_, objc.Sel("lodMaxClamp")) return rv } -// The minimum level of detail (LOD) to use when sampling from a texture. [Full Topic] +// The maximum level of detail (LOD) to use when sampling from a texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515629-lodminclamp?language=objc -func (s_ SamplerDescriptor) SetLodMinClamp(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setLodMinClamp:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516234-lodmaxclamp?language=objc +func (s_ SamplerDescriptor) SetLodMaxClamp(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setLodMaxClamp:"), value) } // The address mode for the texture depth (r) coordinate. [Full Topic] @@ -218,79 +218,79 @@ func (s_ SamplerDescriptor) SetRAddressMode(value SamplerAddressMode) { objc.Call[objc.Void](s_, objc.Sel("setRAddressMode:"), value) } -// A Boolean value that indicates whether texture coordinates are normalized to the range [0.0, 1.0]. [Full Topic] +// The border color for clamped texture values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516289-normalizedcoordinates?language=objc -func (s_ SamplerDescriptor) NormalizedCoordinates() bool { - rv := objc.Call[bool](s_, objc.Sel("normalizedCoordinates")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/2092299-bordercolor?language=objc +func (s_ SamplerDescriptor) BorderColor() SamplerBorderColor { + rv := objc.Call[SamplerBorderColor](s_, objc.Sel("borderColor")) return rv } -// A Boolean value that indicates whether texture coordinates are normalized to the range [0.0, 1.0]. [Full Topic] +// The border color for clamped texture values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516289-normalizedcoordinates?language=objc -func (s_ SamplerDescriptor) SetNormalizedCoordinates(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setNormalizedCoordinates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/2092299-bordercolor?language=objc +func (s_ SamplerDescriptor) SetBorderColor(value SamplerBorderColor) { + objc.Call[objc.Void](s_, objc.Sel("setBorderColor:"), value) } -// The number of samples that can be taken to improve the quality of sample footprints that are anisotropic. [Full Topic] +// The sampler comparison function used when performing a sample compare operation on a depth texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516164-maxanisotropy?language=objc -func (s_ SamplerDescriptor) MaxAnisotropy() uint { - rv := objc.Call[uint](s_, objc.Sel("maxAnisotropy")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516001-comparefunction?language=objc +func (s_ SamplerDescriptor) CompareFunction() CompareFunction { + rv := objc.Call[CompareFunction](s_, objc.Sel("compareFunction")) return rv } -// The number of samples that can be taken to improve the quality of sample footprints that are anisotropic. [Full Topic] +// The sampler comparison function used when performing a sample compare operation on a depth texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516164-maxanisotropy?language=objc -func (s_ SamplerDescriptor) SetMaxAnisotropy(value uint) { - objc.Call[objc.Void](s_, objc.Sel("setMaxAnisotropy:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516001-comparefunction?language=objc +func (s_ SamplerDescriptor) SetCompareFunction(value CompareFunction) { + objc.Call[objc.Void](s_, objc.Sel("setCompareFunction:"), value) } -// The filtering option for combining pixels within one mipmap level when the sample footprint is larger than a pixel (minification). [Full Topic] +// A string that identifies the sampler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515792-minfilter?language=objc -func (s_ SamplerDescriptor) MinFilter() SamplerMinMagFilter { - rv := objc.Call[SamplerMinMagFilter](s_, objc.Sel("minFilter")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515771-label?language=objc +func (s_ SamplerDescriptor) Label() string { + rv := objc.Call[string](s_, objc.Sel("label")) return rv } -// The filtering option for combining pixels within one mipmap level when the sample footprint is larger than a pixel (minification). [Full Topic] +// A string that identifies the sampler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515792-minfilter?language=objc -func (s_ SamplerDescriptor) SetMinFilter(value SamplerMinMagFilter) { - objc.Call[objc.Void](s_, objc.Sel("setMinFilter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515771-label?language=objc +func (s_ SamplerDescriptor) SetLabel(value string) { + objc.Call[objc.Void](s_, objc.Sel("setLabel:"), value) } -// The filtering option for combining pixels between two mipmap levels. [Full Topic] +// A Boolean value that specifies whether the GPU can use an average level of detail (LOD) when sampling from a texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515553-mipfilter?language=objc -func (s_ SamplerDescriptor) MipFilter() SamplerMipFilter { - rv := objc.Call[SamplerMipFilter](s_, objc.Sel("mipFilter")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1615844-lodaverage?language=objc +func (s_ SamplerDescriptor) LodAverage() bool { + rv := objc.Call[bool](s_, objc.Sel("lodAverage")) return rv } -// The filtering option for combining pixels between two mipmap levels. [Full Topic] +// A Boolean value that specifies whether the GPU can use an average level of detail (LOD) when sampling from a texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515553-mipfilter?language=objc -func (s_ SamplerDescriptor) SetMipFilter(value SamplerMipFilter) { - objc.Call[objc.Void](s_, objc.Sel("setMipFilter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1615844-lodaverage?language=objc +func (s_ SamplerDescriptor) SetLodAverage(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setLodAverage:"), value) } -// The address mode for the texture height (t) coordinate. [Full Topic] +// The number of samples that can be taken to improve the quality of sample footprints that are anisotropic. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515900-taddressmode?language=objc -func (s_ SamplerDescriptor) TAddressMode() SamplerAddressMode { - rv := objc.Call[SamplerAddressMode](s_, objc.Sel("tAddressMode")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516164-maxanisotropy?language=objc +func (s_ SamplerDescriptor) MaxAnisotropy() uint { + rv := objc.Call[uint](s_, objc.Sel("maxAnisotropy")) return rv } -// The address mode for the texture height (t) coordinate. [Full Topic] +// The number of samples that can be taken to improve the quality of sample footprints that are anisotropic. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515900-taddressmode?language=objc -func (s_ SamplerDescriptor) SetTAddressMode(value SamplerAddressMode) { - objc.Call[objc.Void](s_, objc.Sel("setTAddressMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1516164-maxanisotropy?language=objc +func (s_ SamplerDescriptor) SetMaxAnisotropy(value uint) { + objc.Call[objc.Void](s_, objc.Sel("setMaxAnisotropy:"), value) } // A Boolean value that specifies whether the sampler can be encoded into an argument buffer. [Full Topic] diff --git a/macos/metal/stage_input_output_descriptor.gen.go b/macos/metal/stage_input_output_descriptor.gen.go index 0f4ecc75..f27da2f2 100644 --- a/macos/metal/stage_input_output_descriptor.gen.go +++ b/macos/metal/stage_input_output_descriptor.gen.go @@ -19,12 +19,12 @@ type _StageInputOutputDescriptorClass struct { type IStageInputOutputDescriptor interface { objc.IObject Reset() - Layouts() BufferLayoutDescriptorArray - Attributes() AttributeDescriptorArray - IndexBufferIndex() uint - SetIndexBufferIndex(value uint) IndexType() IndexType SetIndexType(value IndexType) + IndexBufferIndex() uint + SetIndexBufferIndex(value uint) + Layouts() BufferLayoutDescriptorArray + Attributes() AttributeDescriptorArray } // An object that describes the input and output data of a function. [Full Topic] @@ -82,20 +82,19 @@ func (s_ StageInputOutputDescriptor) Reset() { objc.Call[objc.Void](s_, objc.Sel("reset")) } -// An array that describes how data is fetched for the function. [Full Topic] +// The data type of the indices stored in the index buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstageinputoutputdescriptor/2097202-layouts?language=objc -func (s_ StageInputOutputDescriptor) Layouts() BufferLayoutDescriptorArray { - rv := objc.Call[BufferLayoutDescriptorArray](s_, objc.Sel("layouts")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstageinputoutputdescriptor/2097184-indextype?language=objc +func (s_ StageInputOutputDescriptor) IndexType() IndexType { + rv := objc.Call[IndexType](s_, objc.Sel("indexType")) return rv } -// An array that describes where and how to fetch data for the function. [Full Topic] +// The data type of the indices stored in the index buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstageinputoutputdescriptor/2097206-attributes?language=objc -func (s_ StageInputOutputDescriptor) Attributes() AttributeDescriptorArray { - rv := objc.Call[AttributeDescriptorArray](s_, objc.Sel("attributes")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstageinputoutputdescriptor/2097184-indextype?language=objc +func (s_ StageInputOutputDescriptor) SetIndexType(value IndexType) { + objc.Call[objc.Void](s_, objc.Sel("setIndexType:"), value) } // The location of the index buffer for a compute function using indexed thread addressing. [Full Topic] @@ -113,17 +112,18 @@ func (s_ StageInputOutputDescriptor) SetIndexBufferIndex(value uint) { objc.Call[objc.Void](s_, objc.Sel("setIndexBufferIndex:"), value) } -// The data type of the indices stored in the index buffer. [Full Topic] +// An array that describes how data is fetched for the function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstageinputoutputdescriptor/2097184-indextype?language=objc -func (s_ StageInputOutputDescriptor) IndexType() IndexType { - rv := objc.Call[IndexType](s_, objc.Sel("indexType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstageinputoutputdescriptor/2097202-layouts?language=objc +func (s_ StageInputOutputDescriptor) Layouts() BufferLayoutDescriptorArray { + rv := objc.Call[BufferLayoutDescriptorArray](s_, objc.Sel("layouts")) return rv } -// The data type of the indices stored in the index buffer. [Full Topic] +// An array that describes where and how to fetch data for the function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstageinputoutputdescriptor/2097184-indextype?language=objc -func (s_ StageInputOutputDescriptor) SetIndexType(value IndexType) { - objc.Call[objc.Void](s_, objc.Sel("setIndexType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstageinputoutputdescriptor/2097206-attributes?language=objc +func (s_ StageInputOutputDescriptor) Attributes() AttributeDescriptorArray { + rv := objc.Call[AttributeDescriptorArray](s_, objc.Sel("attributes")) + return rv } diff --git a/macos/metal/stencil_descriptor.gen.go b/macos/metal/stencil_descriptor.gen.go index 1a547c3e..eab9930b 100644 --- a/macos/metal/stencil_descriptor.gen.go +++ b/macos/metal/stencil_descriptor.gen.go @@ -24,10 +24,10 @@ type IStencilDescriptor interface { SetDepthFailureOperation(value StencilOperation) WriteMask() uint32 SetWriteMask(value uint32) - StencilCompareFunction() CompareFunction - SetStencilCompareFunction(value CompareFunction) ReadMask() uint32 SetReadMask(value uint32) + StencilCompareFunction() CompareFunction + SetStencilCompareFunction(value CompareFunction) DepthStencilPassOperation() StencilOperation SetDepthStencilPassOperation(value StencilOperation) } @@ -110,21 +110,6 @@ func (s_ StencilDescriptor) SetWriteMask(value uint32) { objc.Call[objc.Void](s_, objc.Sel("setWriteMask:"), value) } -// The comparison that is performed between the masked reference value and a masked value in the stencil attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstencildescriptor/1462455-stencilcomparefunction?language=objc -func (s_ StencilDescriptor) StencilCompareFunction() CompareFunction { - rv := objc.Call[CompareFunction](s_, objc.Sel("stencilCompareFunction")) - return rv -} - -// The comparison that is performed between the masked reference value and a masked value in the stencil attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstencildescriptor/1462455-stencilcomparefunction?language=objc -func (s_ StencilDescriptor) SetStencilCompareFunction(value CompareFunction) { - objc.Call[objc.Void](s_, objc.Sel("setStencilCompareFunction:"), value) -} - // A bitmask that determines from which bits that stencil comparison tests can read. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlstencildescriptor/1462465-readmask?language=objc @@ -140,6 +125,21 @@ func (s_ StencilDescriptor) SetReadMask(value uint32) { objc.Call[objc.Void](s_, objc.Sel("setReadMask:"), value) } +// The comparison that is performed between the masked reference value and a masked value in the stencil attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstencildescriptor/1462455-stencilcomparefunction?language=objc +func (s_ StencilDescriptor) StencilCompareFunction() CompareFunction { + rv := objc.Call[CompareFunction](s_, objc.Sel("stencilCompareFunction")) + return rv +} + +// The comparison that is performed between the masked reference value and a masked value in the stencil attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstencildescriptor/1462455-stencilcomparefunction?language=objc +func (s_ StencilDescriptor) SetStencilCompareFunction(value CompareFunction) { + objc.Call[objc.Void](s_, objc.Sel("setStencilCompareFunction:"), value) +} + // The operation that is performed to update the values in the stencil attachment when both the stencil test and the depth test pass. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlstencildescriptor/1462486-depthstencilpassoperation?language=objc diff --git a/macos/metal/stitched_library_descriptor.gen.go b/macos/metal/stitched_library_descriptor.gen.go index 6c6b29d0..ffeeb7e4 100644 --- a/macos/metal/stitched_library_descriptor.gen.go +++ b/macos/metal/stitched_library_descriptor.gen.go @@ -18,10 +18,10 @@ type _StitchedLibraryDescriptorClass struct { // An interface definition for the [StitchedLibraryDescriptor] class. type IStitchedLibraryDescriptor interface { objc.IObject - Functions() []FunctionObject - SetFunctions(value []PFunction) FunctionGraphs() []FunctionStitchingGraph SetFunctionGraphs(value []IFunctionStitchingGraph) + Functions() []FunctionObject + SetFunctions(value []PFunction) } // A description of a new library of procedurally generated functions. [Full Topic] @@ -57,21 +57,6 @@ func (s_ StitchedLibraryDescriptor) Init() StitchedLibraryDescriptor { return rv } -// The list of functions for creating the stitched library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstitchedlibrarydescriptor/3750550-functions?language=objc -func (s_ StitchedLibraryDescriptor) Functions() []FunctionObject { - rv := objc.Call[[]FunctionObject](s_, objc.Sel("functions")) - return rv -} - -// The list of functions for creating the stitched library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstitchedlibrarydescriptor/3750550-functions?language=objc -func (s_ StitchedLibraryDescriptor) SetFunctions(value []PFunction) { - objc.Call[objc.Void](s_, objc.Sel("setFunctions:"), value) -} - // The function graphs that define the new stitched library’s functions. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlstitchedlibrarydescriptor/3750549-functiongraphs?language=objc @@ -86,3 +71,18 @@ func (s_ StitchedLibraryDescriptor) FunctionGraphs() []FunctionStitchingGraph { func (s_ StitchedLibraryDescriptor) SetFunctionGraphs(value []IFunctionStitchingGraph) { objc.Call[objc.Void](s_, objc.Sel("setFunctionGraphs:"), value) } + +// The list of functions for creating the stitched library. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstitchedlibrarydescriptor/3750550-functions?language=objc +func (s_ StitchedLibraryDescriptor) Functions() []FunctionObject { + rv := objc.Call[[]FunctionObject](s_, objc.Sel("functions")) + return rv +} + +// The list of functions for creating the stitched library. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstitchedlibrarydescriptor/3750550-functions?language=objc +func (s_ StitchedLibraryDescriptor) SetFunctions(value []PFunction) { + objc.Call[objc.Void](s_, objc.Sel("setFunctions:"), value) +} diff --git a/macos/metal/struct_member.gen.go b/macos/metal/struct_member.gen.go index f770b993..d1c1b2b8 100644 --- a/macos/metal/struct_member.gen.go +++ b/macos/metal/struct_member.gen.go @@ -19,13 +19,13 @@ type _StructMemberClass struct { type IStructMember interface { objc.IObject ArrayType() ArrayType + PointerType() PointerType StructType() StructType TextureReferenceType() TextureReferenceType - PointerType() PointerType Name() string + ArgumentIndex() uint Offset() uint DataType() DataType - ArgumentIndex() uint } // An object that provides information about a field in a structure. [Full Topic] @@ -69,6 +69,14 @@ func (s_ StructMember) ArrayType() ArrayType { return rv } +// Provides a description of the underlying pointer when the struct member holds a pointer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstructmember/2915751-pointertype?language=objc +func (s_ StructMember) PointerType() PointerType { + rv := objc.Call[PointerType](s_, objc.Sel("pointerType")) + return rv +} + // Provides a description of the underlying struct when the struct member holds a struct. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlstructmember/1462011-structtype?language=objc @@ -85,14 +93,6 @@ func (s_ StructMember) TextureReferenceType() TextureReferenceType { return rv } -// Provides a description of the underlying pointer when the struct member holds a pointer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstructmember/2915751-pointertype?language=objc -func (s_ StructMember) PointerType() PointerType { - rv := objc.Call[PointerType](s_, objc.Sel("pointerType")) - return rv -} - // The name of the struct member. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlstructmember/1461944-name?language=objc @@ -101,6 +101,14 @@ func (s_ StructMember) Name() string { return rv } +// The index in the argument table that corresponds to the struct member. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstructmember/2915754-argumentindex?language=objc +func (s_ StructMember) ArgumentIndex() uint { + rv := objc.Call[uint](s_, objc.Sel("argumentIndex")) + return rv +} + // The location of this member relative to the start of its struct, in bytes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlstructmember/1461970-offset?language=objc @@ -116,11 +124,3 @@ func (s_ StructMember) DataType() DataType { rv := objc.Call[DataType](s_, objc.Sel("dataType")) return rv } - -// The index in the argument table that corresponds to the struct member. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstructmember/2915754-argumentindex?language=objc -func (s_ StructMember) ArgumentIndex() uint { - rv := objc.Call[uint](s_, objc.Sel("argumentIndex")) - return rv -} diff --git a/macos/metal/texture_descriptor.gen.go b/macos/metal/texture_descriptor.gen.go index 41f3a333..ecbb9867 100644 --- a/macos/metal/texture_descriptor.gen.go +++ b/macos/metal/texture_descriptor.gen.go @@ -18,38 +18,38 @@ type _TextureDescriptorClass struct { // An interface definition for the [TextureDescriptor] class. type ITextureDescriptor interface { objc.IObject - TextureType() TextureType - SetTextureType(value TextureType) + Width() uint + SetWidth(value uint) MipmapLevelCount() uint SetMipmapLevelCount(value uint) - ResourceOptions() ResourceOptions - SetResourceOptions(value ResourceOptions) - PixelFormat() PixelFormat - SetPixelFormat(value PixelFormat) - Swizzle() TextureSwizzleChannels - SetSwizzle(value TextureSwizzleChannels) - HazardTrackingMode() HazardTrackingMode - SetHazardTrackingMode(value HazardTrackingMode) ArrayLength() uint SetArrayLength(value uint) - AllowGPUOptimizedContents() bool - SetAllowGPUOptimizedContents(value bool) + Usage() TextureUsage + SetUsage(value TextureUsage) + Swizzle() TextureSwizzleChannels + SetSwizzle(value TextureSwizzleChannels) + SampleCount() uint + SetSampleCount(value uint) Height() uint SetHeight(value uint) - StorageMode() StorageMode - SetStorageMode(value StorageMode) - Width() uint - SetWidth(value uint) + CompressionType() TextureCompressionType + SetCompressionType(value TextureCompressionType) CpuCacheMode() CPUCacheMode SetCpuCacheMode(value CPUCacheMode) - Usage() TextureUsage - SetUsage(value TextureUsage) + TextureType() TextureType + SetTextureType(value TextureType) + AllowGPUOptimizedContents() bool + SetAllowGPUOptimizedContents(value bool) + PixelFormat() PixelFormat + SetPixelFormat(value PixelFormat) Depth() uint SetDepth(value uint) - CompressionType() TextureCompressionType - SetCompressionType(value TextureCompressionType) - SampleCount() uint - SetSampleCount(value uint) + StorageMode() StorageMode + SetStorageMode(value StorageMode) + ResourceOptions() ResourceOptions + SetResourceOptions(value ResourceOptions) + HazardTrackingMode() HazardTrackingMode + SetHazardTrackingMode(value HazardTrackingMode) } // An object that you use to configure new Metal texture objects. [Full Topic] @@ -85,19 +85,19 @@ func (t_ TextureDescriptor) Init() TextureDescriptor { return rv } -// Creates a texture descriptor object for a cube texture. [Full Topic] +// Creates a texture descriptor object for a texture buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516090-texturecubedescriptorwithpixelfo?language=objc -func (tc _TextureDescriptorClass) TextureCubeDescriptorWithPixelFormatSizeMipmapped(pixelFormat PixelFormat, size uint, mipmapped bool) TextureDescriptor { - rv := objc.Call[TextureDescriptor](tc, objc.Sel("textureCubeDescriptorWithPixelFormat:size:mipmapped:"), pixelFormat, size, mipmapped) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/2966642-texturebufferdescriptorwithpixel?language=objc +func (tc _TextureDescriptorClass) TextureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(pixelFormat PixelFormat, width uint, resourceOptions ResourceOptions, usage TextureUsage) TextureDescriptor { + rv := objc.Call[TextureDescriptor](tc, objc.Sel("textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage:"), pixelFormat, width, resourceOptions, usage) return rv } -// Creates a texture descriptor object for a cube texture. [Full Topic] +// Creates a texture descriptor object for a texture buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516090-texturecubedescriptorwithpixelfo?language=objc -func TextureDescriptor_TextureCubeDescriptorWithPixelFormatSizeMipmapped(pixelFormat PixelFormat, size uint, mipmapped bool) TextureDescriptor { - return TextureDescriptorClass.TextureCubeDescriptorWithPixelFormatSizeMipmapped(pixelFormat, size, mipmapped) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/2966642-texturebufferdescriptorwithpixel?language=objc +func TextureDescriptor_TextureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(pixelFormat PixelFormat, width uint, resourceOptions ResourceOptions, usage TextureUsage) TextureDescriptor { + return TextureDescriptorClass.TextureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(pixelFormat, width, resourceOptions, usage) } // Creates a texture descriptor object for a 2D texture. [Full Topic] @@ -115,34 +115,34 @@ func TextureDescriptor_Texture2DDescriptorWithPixelFormatWidthHeightMipmapped(pi return TextureDescriptorClass.Texture2DDescriptorWithPixelFormatWidthHeightMipmapped(pixelFormat, width, height, mipmapped) } -// Creates a texture descriptor object for a texture buffer. [Full Topic] +// Creates a texture descriptor object for a cube texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/2966642-texturebufferdescriptorwithpixel?language=objc -func (tc _TextureDescriptorClass) TextureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(pixelFormat PixelFormat, width uint, resourceOptions ResourceOptions, usage TextureUsage) TextureDescriptor { - rv := objc.Call[TextureDescriptor](tc, objc.Sel("textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage:"), pixelFormat, width, resourceOptions, usage) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516090-texturecubedescriptorwithpixelfo?language=objc +func (tc _TextureDescriptorClass) TextureCubeDescriptorWithPixelFormatSizeMipmapped(pixelFormat PixelFormat, size uint, mipmapped bool) TextureDescriptor { + rv := objc.Call[TextureDescriptor](tc, objc.Sel("textureCubeDescriptorWithPixelFormat:size:mipmapped:"), pixelFormat, size, mipmapped) return rv } -// Creates a texture descriptor object for a texture buffer. [Full Topic] +// Creates a texture descriptor object for a cube texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/2966642-texturebufferdescriptorwithpixel?language=objc -func TextureDescriptor_TextureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(pixelFormat PixelFormat, width uint, resourceOptions ResourceOptions, usage TextureUsage) TextureDescriptor { - return TextureDescriptorClass.TextureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(pixelFormat, width, resourceOptions, usage) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516090-texturecubedescriptorwithpixelfo?language=objc +func TextureDescriptor_TextureCubeDescriptorWithPixelFormatSizeMipmapped(pixelFormat PixelFormat, size uint, mipmapped bool) TextureDescriptor { + return TextureDescriptorClass.TextureCubeDescriptorWithPixelFormatSizeMipmapped(pixelFormat, size, mipmapped) } -// The dimension and arrangement of texture image data. [Full Topic] +// The width of the texture image for the base level mipmap, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516228-texturetype?language=objc -func (t_ TextureDescriptor) TextureType() TextureType { - rv := objc.Call[TextureType](t_, objc.Sel("textureType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515649-width?language=objc +func (t_ TextureDescriptor) Width() uint { + rv := objc.Call[uint](t_, objc.Sel("width")) return rv } -// The dimension and arrangement of texture image data. [Full Topic] +// The width of the texture image for the base level mipmap, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516228-texturetype?language=objc -func (t_ TextureDescriptor) SetTextureType(value TextureType) { - objc.Call[objc.Void](t_, objc.Sel("setTextureType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515649-width?language=objc +func (t_ TextureDescriptor) SetWidth(value uint) { + objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) } // The number of mipmap levels for this texture. [Full Topic] @@ -160,34 +160,34 @@ func (t_ TextureDescriptor) SetMipmapLevelCount(value uint) { objc.Call[objc.Void](t_, objc.Sel("setMipmapLevelCount:"), value) } -// The behavior of a new memory allocation. [Full Topic] +// The number of array elements for this texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515776-resourceoptions?language=objc -func (t_ TextureDescriptor) ResourceOptions() ResourceOptions { - rv := objc.Call[ResourceOptions](t_, objc.Sel("resourceOptions")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515331-arraylength?language=objc +func (t_ TextureDescriptor) ArrayLength() uint { + rv := objc.Call[uint](t_, objc.Sel("arrayLength")) return rv } -// The behavior of a new memory allocation. [Full Topic] +// The number of array elements for this texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515776-resourceoptions?language=objc -func (t_ TextureDescriptor) SetResourceOptions(value ResourceOptions) { - objc.Call[objc.Void](t_, objc.Sel("setResourceOptions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515331-arraylength?language=objc +func (t_ TextureDescriptor) SetArrayLength(value uint) { + objc.Call[objc.Void](t_, objc.Sel("setArrayLength:"), value) } -// The size and bit layout of all pixels in the texture. [Full Topic] +// Options that determine how you can use the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515450-pixelformat?language=objc -func (t_ TextureDescriptor) PixelFormat() PixelFormat { - rv := objc.Call[PixelFormat](t_, objc.Sel("pixelFormat")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515783-usage?language=objc +func (t_ TextureDescriptor) Usage() TextureUsage { + rv := objc.Call[TextureUsage](t_, objc.Sel("usage")) return rv } -// The size and bit layout of all pixels in the texture. [Full Topic] +// Options that determine how you can use the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515450-pixelformat?language=objc -func (t_ TextureDescriptor) SetPixelFormat(value PixelFormat) { - objc.Call[objc.Void](t_, objc.Sel("setPixelFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515783-usage?language=objc +func (t_ TextureDescriptor) SetUsage(value TextureUsage) { + objc.Call[objc.Void](t_, objc.Sel("setUsage:"), value) } // The pattern you want the GPU to apply to pixels when you read or sample pixels from the texture. [Full Topic] @@ -205,49 +205,19 @@ func (t_ TextureDescriptor) SetSwizzle(value TextureSwizzleChannels) { objc.Call[objc.Void](t_, objc.Sel("setSwizzle:"), value) } -// The texture's hazard tracking mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/3131697-hazardtrackingmode?language=objc -func (t_ TextureDescriptor) HazardTrackingMode() HazardTrackingMode { - rv := objc.Call[HazardTrackingMode](t_, objc.Sel("hazardTrackingMode")) - return rv -} - -// The texture's hazard tracking mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/3131697-hazardtrackingmode?language=objc -func (t_ TextureDescriptor) SetHazardTrackingMode(value HazardTrackingMode) { - objc.Call[objc.Void](t_, objc.Sel("setHazardTrackingMode:"), value) -} - -// The number of array elements for this texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515331-arraylength?language=objc -func (t_ TextureDescriptor) ArrayLength() uint { - rv := objc.Call[uint](t_, objc.Sel("arrayLength")) - return rv -} - -// The number of array elements for this texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515331-arraylength?language=objc -func (t_ TextureDescriptor) SetArrayLength(value uint) { - objc.Call[objc.Void](t_, objc.Sel("setArrayLength:"), value) -} - -// A Boolean value indicating whether the GPU is allowed to adjust the texture's contents to improve GPU performance. [Full Topic] +// The number of samples in each fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/2966641-allowgpuoptimizedcontents?language=objc -func (t_ TextureDescriptor) AllowGPUOptimizedContents() bool { - rv := objc.Call[bool](t_, objc.Sel("allowGPUOptimizedContents")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516260-samplecount?language=objc +func (t_ TextureDescriptor) SampleCount() uint { + rv := objc.Call[uint](t_, objc.Sel("sampleCount")) return rv } -// A Boolean value indicating whether the GPU is allowed to adjust the texture's contents to improve GPU performance. [Full Topic] +// The number of samples in each fragment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/2966641-allowgpuoptimizedcontents?language=objc -func (t_ TextureDescriptor) SetAllowGPUOptimizedContents(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowGPUOptimizedContents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516260-samplecount?language=objc +func (t_ TextureDescriptor) SetSampleCount(value uint) { + objc.Call[objc.Void](t_, objc.Sel("setSampleCount:"), value) } // The height of the texture image for the base level mipmap, in pixels. [Full Topic] @@ -265,34 +235,19 @@ func (t_ TextureDescriptor) SetHeight(value uint) { objc.Call[objc.Void](t_, objc.Sel("setHeight:"), value) } -// The location and access permissions of the texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516262-storagemode?language=objc -func (t_ TextureDescriptor) StorageMode() StorageMode { - rv := objc.Call[StorageMode](t_, objc.Sel("storageMode")) - return rv -} - -// The location and access permissions of the texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516262-storagemode?language=objc -func (t_ TextureDescriptor) SetStorageMode(value StorageMode) { - objc.Call[objc.Void](t_, objc.Sel("setStorageMode:"), value) -} - -// The width of the texture image for the base level mipmap, in pixels. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515649-width?language=objc -func (t_ TextureDescriptor) Width() uint { - rv := objc.Call[uint](t_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/3763055-compressiontype?language=objc +func (t_ TextureDescriptor) CompressionType() TextureCompressionType { + rv := objc.Call[TextureCompressionType](t_, objc.Sel("compressionType")) return rv } -// The width of the texture image for the base level mipmap, in pixels. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515649-width?language=objc -func (t_ TextureDescriptor) SetWidth(value uint) { - objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/3763055-compressiontype?language=objc +func (t_ TextureDescriptor) SetCompressionType(value TextureCompressionType) { + objc.Call[objc.Void](t_, objc.Sel("setCompressionType:"), value) } // The CPU cache mode used for the CPU mapping of the texture. [Full Topic] @@ -310,19 +265,49 @@ func (t_ TextureDescriptor) SetCpuCacheMode(value CPUCacheMode) { objc.Call[objc.Void](t_, objc.Sel("setCpuCacheMode:"), value) } -// Options that determine how you can use the texture. [Full Topic] +// The dimension and arrangement of texture image data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515783-usage?language=objc -func (t_ TextureDescriptor) Usage() TextureUsage { - rv := objc.Call[TextureUsage](t_, objc.Sel("usage")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516228-texturetype?language=objc +func (t_ TextureDescriptor) TextureType() TextureType { + rv := objc.Call[TextureType](t_, objc.Sel("textureType")) return rv } -// Options that determine how you can use the texture. [Full Topic] +// The dimension and arrangement of texture image data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515783-usage?language=objc -func (t_ TextureDescriptor) SetUsage(value TextureUsage) { - objc.Call[objc.Void](t_, objc.Sel("setUsage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516228-texturetype?language=objc +func (t_ TextureDescriptor) SetTextureType(value TextureType) { + objc.Call[objc.Void](t_, objc.Sel("setTextureType:"), value) +} + +// A Boolean value indicating whether the GPU is allowed to adjust the texture's contents to improve GPU performance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/2966641-allowgpuoptimizedcontents?language=objc +func (t_ TextureDescriptor) AllowGPUOptimizedContents() bool { + rv := objc.Call[bool](t_, objc.Sel("allowGPUOptimizedContents")) + return rv +} + +// A Boolean value indicating whether the GPU is allowed to adjust the texture's contents to improve GPU performance. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/2966641-allowgpuoptimizedcontents?language=objc +func (t_ TextureDescriptor) SetAllowGPUOptimizedContents(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowGPUOptimizedContents:"), value) +} + +// The size and bit layout of all pixels in the texture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515450-pixelformat?language=objc +func (t_ TextureDescriptor) PixelFormat() PixelFormat { + rv := objc.Call[PixelFormat](t_, objc.Sel("pixelFormat")) + return rv +} + +// The size and bit layout of all pixels in the texture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515450-pixelformat?language=objc +func (t_ TextureDescriptor) SetPixelFormat(value PixelFormat) { + objc.Call[objc.Void](t_, objc.Sel("setPixelFormat:"), value) } // The depth of the texture image for the base level mipmap, in pixels. [Full Topic] @@ -340,32 +325,47 @@ func (t_ TextureDescriptor) SetDepth(value uint) { objc.Call[objc.Void](t_, objc.Sel("setDepth:"), value) } -// [Full Topic] +// The location and access permissions of the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/3763055-compressiontype?language=objc -func (t_ TextureDescriptor) CompressionType() TextureCompressionType { - rv := objc.Call[TextureCompressionType](t_, objc.Sel("compressionType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516262-storagemode?language=objc +func (t_ TextureDescriptor) StorageMode() StorageMode { + rv := objc.Call[StorageMode](t_, objc.Sel("storageMode")) return rv } -// [Full Topic] +// The location and access permissions of the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/3763055-compressiontype?language=objc -func (t_ TextureDescriptor) SetCompressionType(value TextureCompressionType) { - objc.Call[objc.Void](t_, objc.Sel("setCompressionType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516262-storagemode?language=objc +func (t_ TextureDescriptor) SetStorageMode(value StorageMode) { + objc.Call[objc.Void](t_, objc.Sel("setStorageMode:"), value) } -// The number of samples in each fragment. [Full Topic] +// The behavior of a new memory allocation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516260-samplecount?language=objc -func (t_ TextureDescriptor) SampleCount() uint { - rv := objc.Call[uint](t_, objc.Sel("sampleCount")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515776-resourceoptions?language=objc +func (t_ TextureDescriptor) ResourceOptions() ResourceOptions { + rv := objc.Call[ResourceOptions](t_, objc.Sel("resourceOptions")) return rv } -// The number of samples in each fragment. [Full Topic] +// The behavior of a new memory allocation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1516260-samplecount?language=objc -func (t_ TextureDescriptor) SetSampleCount(value uint) { - objc.Call[objc.Void](t_, objc.Sel("setSampleCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515776-resourceoptions?language=objc +func (t_ TextureDescriptor) SetResourceOptions(value ResourceOptions) { + objc.Call[objc.Void](t_, objc.Sel("setResourceOptions:"), value) +} + +// The texture's hazard tracking mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/3131697-hazardtrackingmode?language=objc +func (t_ TextureDescriptor) HazardTrackingMode() HazardTrackingMode { + rv := objc.Call[HazardTrackingMode](t_, objc.Sel("hazardTrackingMode")) + return rv +} + +// The texture's hazard tracking mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/3131697-hazardtrackingmode?language=objc +func (t_ TextureDescriptor) SetHazardTrackingMode(value HazardTrackingMode) { + objc.Call[objc.Void](t_, objc.Sel("setHazardTrackingMode:"), value) } diff --git a/macos/metal/texture_protocol.gen.go b/macos/metal/texture_protocol.gen.go index 9631afcf..96980af4 100644 --- a/macos/metal/texture_protocol.gen.go +++ b/macos/metal/texture_protocol.gen.go @@ -15,56 +15,40 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture?language=objc type PTexture interface { // optional - GetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice(pixelBytes unsafe.Pointer, bytesPerRow uint, bytesPerImage uint, region Region, level uint, slice uint) - HasGetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice() bool - - // optional - GetBytesBytesPerRowFromRegionMipmapLevel(pixelBytes unsafe.Pointer, bytesPerRow uint, region Region, level uint) - HasGetBytesBytesPerRowFromRegionMipmapLevel() bool - - // optional - NewTextureViewWithPixelFormat(pixelFormat PixelFormat) TextureObject - HasNewTextureViewWithPixelFormat() bool - - // optional - NewTextureViewWithPixelFormatTextureTypeLevelsSlices(pixelFormat PixelFormat, textureType TextureType, levelRange foundation.Range, sliceRange foundation.Range) TextureObject - HasNewTextureViewWithPixelFormatTextureTypeLevelsSlices() bool + ReplaceRegionMipmapLevelWithBytesBytesPerRow(region Region, level uint, pixelBytes unsafe.Pointer, bytesPerRow uint) + HasReplaceRegionMipmapLevelWithBytesBytesPerRow() bool // optional - ReplaceRegionMipmapLevelSliceWithBytesBytesPerRowBytesPerImage(region Region, level uint, slice uint, pixelBytes unsafe.Pointer, bytesPerRow uint, bytesPerImage uint) - HasReplaceRegionMipmapLevelSliceWithBytesBytesPerRowBytesPerImage() bool + NewRemoteTextureViewForDevice(device DeviceObject) TextureObject + HasNewRemoteTextureViewForDevice() bool // optional NewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle(pixelFormat PixelFormat, textureType TextureType, levelRange foundation.Range, sliceRange foundation.Range, swizzle TextureSwizzleChannels) TextureObject HasNewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle() bool // optional - NewSharedTextureHandle() SharedTextureHandle - HasNewSharedTextureHandle() bool - - // optional - NewRemoteTextureViewForDevice(device DeviceObject) TextureObject - HasNewRemoteTextureViewForDevice() bool + GetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice(pixelBytes unsafe.Pointer, bytesPerRow uint, bytesPerImage uint, region Region, level uint, slice uint) + HasGetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice() bool // optional - ReplaceRegionMipmapLevelWithBytesBytesPerRow(region Region, level uint, pixelBytes unsafe.Pointer, bytesPerRow uint) - HasReplaceRegionMipmapLevelWithBytesBytesPerRow() bool + NewSharedTextureHandle() SharedTextureHandle + HasNewSharedTextureHandle() bool // optional - Height() uint - HasHeight() bool + Width() uint + HasWidth() bool // optional - AllowGPUOptimizedContents() bool - HasAllowGPUOptimizedContents() bool + MipmapLevelCount() uint + HasMipmapLevelCount() bool // optional - SampleCount() uint - HasSampleCount() bool + ArrayLength() uint + HasArrayLength() bool // optional - Swizzle() TextureSwizzleChannels - HasSwizzle() bool + RemoteStorageTexture() TextureObject + HasRemoteStorageTexture() bool // optional IsFramebufferOnly() bool @@ -75,84 +59,84 @@ type PTexture interface { HasUsage() bool // optional - Depth() uint - HasDepth() bool + IosurfacePlane() uint + HasIosurfacePlane() bool + + // optional + ParentRelativeLevel() uint + HasParentRelativeLevel() bool + + // optional + IsShareable() bool + HasIsShareable() bool // optional Buffer() BufferObject HasBuffer() bool // optional - ArrayLength() uint - HasArrayLength() bool + Swizzle() TextureSwizzleChannels + HasSwizzle() bool // optional FirstMipmapInTail() uint HasFirstMipmapInTail() bool // optional - BufferOffset() uint - HasBufferOffset() bool - - // optional - ParentRelativeLevel() uint - HasParentRelativeLevel() bool + ParentRelativeSlice() uint + HasParentRelativeSlice() bool // optional - RemoteStorageTexture() TextureObject - HasRemoteStorageTexture() bool + SampleCount() uint + HasSampleCount() bool // optional - ParentRelativeSlice() uint - HasParentRelativeSlice() bool + Height() uint + HasHeight() bool // optional CompressionType() TextureCompressionType HasCompressionType() bool // optional - PixelFormat() PixelFormat - HasPixelFormat() bool - - // optional - BufferBytesPerRow() uint - HasBufferBytesPerRow() bool + TextureType() TextureType + HasTextureType() bool // optional - Width() uint - HasWidth() bool + BufferOffset() uint + HasBufferOffset() bool // optional - IsShareable() bool - HasIsShareable() bool + IsSparse() bool + HasIsSparse() bool // optional - TailSizeInBytes() uint - HasTailSizeInBytes() bool + AllowGPUOptimizedContents() bool + HasAllowGPUOptimizedContents() bool // optional ParentTexture() TextureObject HasParentTexture() bool // optional - TextureType() TextureType - HasTextureType() bool + PixelFormat() PixelFormat + HasPixelFormat() bool // optional - MipmapLevelCount() uint - HasMipmapLevelCount() bool + Depth() uint + HasDepth() bool // optional Iosurface() iosurface.Ref HasIosurface() bool // optional - IsSparse() bool - HasIsSparse() bool + BufferBytesPerRow() uint + HasBufferBytesPerRow() bool // optional - IosurfacePlane() uint - HasIosurfacePlane() bool + TailSizeInBytes() uint + HasTailSizeInBytes() bool } // ensure impl type implements protocol interface @@ -163,63 +147,30 @@ type TextureObject struct { objc.Object } -func (t_ TextureObject) HasGetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice() bool { - return t_.RespondsToSelector(objc.Sel("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")) -} - -// Copies pixel data from the texture to a buffer in system memory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1516318-getbytes?language=objc -func (t_ TextureObject) GetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice(pixelBytes unsafe.Pointer, bytesPerRow uint, bytesPerImage uint, region Region, level uint, slice uint) { - objc.Call[objc.Void](t_, objc.Sel("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:"), pixelBytes, bytesPerRow, bytesPerImage, region, level, slice) -} - -func (t_ TextureObject) HasGetBytesBytesPerRowFromRegionMipmapLevel() bool { - return t_.RespondsToSelector(objc.Sel("getBytes:bytesPerRow:fromRegion:mipmapLevel:")) -} - -// Copies pixel data from the first slice of the texture to a buffer in system memory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515751-getbytes?language=objc -func (t_ TextureObject) GetBytesBytesPerRowFromRegionMipmapLevel(pixelBytes unsafe.Pointer, bytesPerRow uint, region Region, level uint) { - objc.Call[objc.Void](t_, objc.Sel("getBytes:bytesPerRow:fromRegion:mipmapLevel:"), pixelBytes, bytesPerRow, region, level) -} - -func (t_ TextureObject) HasNewTextureViewWithPixelFormat() bool { - return t_.RespondsToSelector(objc.Sel("newTextureViewWithPixelFormat:")) +func (t_ TextureObject) HasReplaceRegionMipmapLevelWithBytesBytesPerRow() bool { + return t_.RespondsToSelector(objc.Sel("replaceRegion:mipmapLevel:withBytes:bytesPerRow:")) } -// Creates a new view of the texture, reinterpreting its data using a different pixel format. [Full Topic] +// Copies a block of pixels into a section of texture slice 0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515598-newtextureviewwithpixelformat?language=objc -func (t_ TextureObject) NewTextureViewWithPixelFormat(pixelFormat PixelFormat) TextureObject { - rv := objc.Call[TextureObject](t_, objc.Sel("newTextureViewWithPixelFormat:"), pixelFormat) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515464-replaceregion?language=objc +func (t_ TextureObject) ReplaceRegionMipmapLevelWithBytesBytesPerRow(region Region, level uint, pixelBytes unsafe.Pointer, bytesPerRow uint) { + objc.Call[objc.Void](t_, objc.Sel("replaceRegion:mipmapLevel:withBytes:bytesPerRow:"), region, level, pixelBytes, bytesPerRow) } -func (t_ TextureObject) HasNewTextureViewWithPixelFormatTextureTypeLevelsSlices() bool { - return t_.RespondsToSelector(objc.Sel("newTextureViewWithPixelFormat:textureType:levels:slices:")) +func (t_ TextureObject) HasNewRemoteTextureViewForDevice() bool { + return t_.RespondsToSelector(objc.Sel("newRemoteTextureViewForDevice:")) } -// Creates a new view of the texture, reinterpreting a subset of its data using a different type and pixel format. [Full Topic] +// Creates a remote texture view for another GPU in the same peer group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515409-newtextureviewwithpixelformat?language=objc -func (t_ TextureObject) NewTextureViewWithPixelFormatTextureTypeLevelsSlices(pixelFormat PixelFormat, textureType TextureType, levelRange foundation.Range, sliceRange foundation.Range) TextureObject { - rv := objc.Call[TextureObject](t_, objc.Sel("newTextureViewWithPixelFormat:textureType:levels:slices:"), pixelFormat, textureType, levelRange, sliceRange) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2967449-newremotetextureviewfordevice?language=objc +func (t_ TextureObject) NewRemoteTextureViewForDevice(device DeviceObject) TextureObject { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[TextureObject](t_, objc.Sel("newRemoteTextureViewForDevice:"), po0) return rv } -func (t_ TextureObject) HasReplaceRegionMipmapLevelSliceWithBytesBytesPerRowBytesPerImage() bool { - return t_.RespondsToSelector(objc.Sel("replaceRegion:mipmapLevel:slice:withBytes:bytesPerRow:bytesPerImage:")) -} - -// Copies pixel data into a section of a texture slice. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515679-replaceregion?language=objc -func (t_ TextureObject) ReplaceRegionMipmapLevelSliceWithBytesBytesPerRowBytesPerImage(region Region, level uint, slice uint, pixelBytes unsafe.Pointer, bytesPerRow uint, bytesPerImage uint) { - objc.Call[objc.Void](t_, objc.Sel("replaceRegion:mipmapLevel:slice:withBytes:bytesPerRow:bytesPerImage:"), region, level, slice, pixelBytes, bytesPerRow, bytesPerImage) -} - func (t_ TextureObject) HasNewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle() bool { return t_.RespondsToSelector(objc.Sel("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:")) } @@ -232,6 +183,17 @@ func (t_ TextureObject) NewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwiz return rv } +func (t_ TextureObject) HasGetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice() bool { + return t_.RespondsToSelector(objc.Sel("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")) +} + +// Copies pixel data from the texture to a buffer in system memory. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1516318-getbytes?language=objc +func (t_ TextureObject) GetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice(pixelBytes unsafe.Pointer, bytesPerRow uint, bytesPerImage uint, region Region, level uint, slice uint) { + objc.Call[objc.Void](t_, objc.Sel("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:"), pixelBytes, bytesPerRow, bytesPerImage, region, level, slice) +} + func (t_ TextureObject) HasNewSharedTextureHandle() bool { return t_.RespondsToSelector(objc.Sel("newSharedTextureHandle")) } @@ -244,75 +206,51 @@ func (t_ TextureObject) NewSharedTextureHandle() SharedTextureHandle { return rv } -func (t_ TextureObject) HasNewRemoteTextureViewForDevice() bool { - return t_.RespondsToSelector(objc.Sel("newRemoteTextureViewForDevice:")) -} - -// Creates a remote texture view for another GPU in the same peer group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2967449-newremotetextureviewfordevice?language=objc -func (t_ TextureObject) NewRemoteTextureViewForDevice(device DeviceObject) TextureObject { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[TextureObject](t_, objc.Sel("newRemoteTextureViewForDevice:"), po0) - return rv -} - -func (t_ TextureObject) HasReplaceRegionMipmapLevelWithBytesBytesPerRow() bool { - return t_.RespondsToSelector(objc.Sel("replaceRegion:mipmapLevel:withBytes:bytesPerRow:")) -} - -// Copies a block of pixels into a section of texture slice 0. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515464-replaceregion?language=objc -func (t_ TextureObject) ReplaceRegionMipmapLevelWithBytesBytesPerRow(region Region, level uint, pixelBytes unsafe.Pointer, bytesPerRow uint) { - objc.Call[objc.Void](t_, objc.Sel("replaceRegion:mipmapLevel:withBytes:bytesPerRow:"), region, level, pixelBytes, bytesPerRow) -} - -func (t_ TextureObject) HasHeight() bool { - return t_.RespondsToSelector(objc.Sel("height")) +func (t_ TextureObject) HasWidth() bool { + return t_.RespondsToSelector(objc.Sel("width")) } -// The height of the texture image for the base level mipmap, in pixels. [Full Topic] +// The width of the texture image for the base level mipmap, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515938-height?language=objc -func (t_ TextureObject) Height() uint { - rv := objc.Call[uint](t_, objc.Sel("height")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515339-width?language=objc +func (t_ TextureObject) Width() uint { + rv := objc.Call[uint](t_, objc.Sel("width")) return rv } -func (t_ TextureObject) HasAllowGPUOptimizedContents() bool { - return t_.RespondsToSelector(objc.Sel("allowGPUOptimizedContents")) +func (t_ TextureObject) HasMipmapLevelCount() bool { + return t_.RespondsToSelector(objc.Sel("mipmapLevelCount")) } -// A Boolean value indicating whether the GPU is allowed to adjust the contents of the texture to improve GPU performance. [Full Topic] +// The number of mipmap levels in the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2966640-allowgpuoptimizedcontents?language=objc -func (t_ TextureObject) AllowGPUOptimizedContents() bool { - rv := objc.Call[bool](t_, objc.Sel("allowGPUOptimizedContents")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515677-mipmaplevelcount?language=objc +func (t_ TextureObject) MipmapLevelCount() uint { + rv := objc.Call[uint](t_, objc.Sel("mipmapLevelCount")) return rv } -func (t_ TextureObject) HasSampleCount() bool { - return t_.RespondsToSelector(objc.Sel("sampleCount")) +func (t_ TextureObject) HasArrayLength() bool { + return t_.RespondsToSelector(objc.Sel("arrayLength")) } -// The number of samples in each pixel. [Full Topic] +// The number of slices in the texture array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515443-samplecount?language=objc -func (t_ TextureObject) SampleCount() uint { - rv := objc.Call[uint](t_, objc.Sel("sampleCount")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515382-arraylength?language=objc +func (t_ TextureObject) ArrayLength() uint { + rv := objc.Call[uint](t_, objc.Sel("arrayLength")) return rv } -func (t_ TextureObject) HasSwizzle() bool { - return t_.RespondsToSelector(objc.Sel("swizzle")) +func (t_ TextureObject) HasRemoteStorageTexture() bool { + return t_.RespondsToSelector(objc.Sel("remoteStorageTexture")) } -// The pattern that the GPU applies to pixels when you read or sample pixels from the texture. [Full Topic] +// The texture on another GPU that the texture was created from, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3114304-swizzle?language=objc -func (t_ TextureObject) Swizzle() TextureSwizzleChannels { - rv := objc.Call[TextureSwizzleChannels](t_, objc.Sel("swizzle")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2967451-remotestoragetexture?language=objc +func (t_ TextureObject) RemoteStorageTexture() TextureObject { + rv := objc.Call[TextureObject](t_, objc.Sel("remoteStorageTexture")) return rv } @@ -340,15 +278,39 @@ func (t_ TextureObject) Usage() TextureUsage { return rv } -func (t_ TextureObject) HasDepth() bool { - return t_.RespondsToSelector(objc.Sel("depth")) +func (t_ TextureObject) HasIosurfacePlane() bool { + return t_.RespondsToSelector(objc.Sel("iosurfacePlane")) } -// The depth of the texture image for the base level mipmap, in pixels. [Full Topic] +// The plane of the IOSurface to reference if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515942-depth?language=objc -func (t_ TextureObject) Depth() uint { - rv := objc.Call[uint](t_, objc.Sel("depth")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515986-iosurfaceplane?language=objc +func (t_ TextureObject) IosurfacePlane() uint { + rv := objc.Call[uint](t_, objc.Sel("iosurfacePlane")) + return rv +} + +func (t_ TextureObject) HasParentRelativeLevel() bool { + return t_.RespondsToSelector(objc.Sel("parentRelativeLevel")) +} + +// The base level of the parent texture that the texture was created from, if any. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1516265-parentrelativelevel?language=objc +func (t_ TextureObject) ParentRelativeLevel() uint { + rv := objc.Call[uint](t_, objc.Sel("parentRelativeLevel")) + return rv +} + +func (t_ TextureObject) HasIsShareable() bool { + return t_.RespondsToSelector(objc.Sel("isShareable")) +} + +// A Boolean indicating whether this texture can be shared with other processes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2998889-shareable?language=objc +func (t_ TextureObject) IsShareable() bool { + rv := objc.Call[bool](t_, objc.Sel("isShareable")) return rv } @@ -356,7 +318,7 @@ func (t_ TextureObject) HasBuffer() bool { return t_.RespondsToSelector(objc.Sel("buffer")) } -// The source buffer used to create this texture, if any. [Full Topic] +// The source buffer that the texture was created from, if any. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1619090-buffer?language=objc func (t_ TextureObject) Buffer() BufferObject { @@ -364,15 +326,15 @@ func (t_ TextureObject) Buffer() BufferObject { return rv } -func (t_ TextureObject) HasArrayLength() bool { - return t_.RespondsToSelector(objc.Sel("arrayLength")) +func (t_ TextureObject) HasSwizzle() bool { + return t_.RespondsToSelector(objc.Sel("swizzle")) } -// The number of slices in the texture array. [Full Topic] +// The pattern that the GPU applies to pixels when you read or sample pixels from the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515382-arraylength?language=objc -func (t_ TextureObject) ArrayLength() uint { - rv := objc.Call[uint](t_, objc.Sel("arrayLength")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3114304-swizzle?language=objc +func (t_ TextureObject) Swizzle() TextureSwizzleChannels { + rv := objc.Call[TextureSwizzleChannels](t_, objc.Sel("swizzle")) return rv } @@ -388,51 +350,39 @@ func (t_ TextureObject) FirstMipmapInTail() uint { return rv } -func (t_ TextureObject) HasBufferOffset() bool { - return t_.RespondsToSelector(objc.Sel("bufferOffset")) -} - -// The offset in the source buffer where the texture’s data comes from. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1619019-bufferoffset?language=objc -func (t_ TextureObject) BufferOffset() uint { - rv := objc.Call[uint](t_, objc.Sel("bufferOffset")) - return rv -} - -func (t_ TextureObject) HasParentRelativeLevel() bool { - return t_.RespondsToSelector(objc.Sel("parentRelativeLevel")) +func (t_ TextureObject) HasParentRelativeSlice() bool { + return t_.RespondsToSelector(objc.Sel("parentRelativeSlice")) } -// The base level of the parent texture used to create this texture. [Full Topic] +// The base slice of the parent texture that the texture was created from, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1516265-parentrelativelevel?language=objc -func (t_ TextureObject) ParentRelativeLevel() uint { - rv := objc.Call[uint](t_, objc.Sel("parentRelativeLevel")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1516221-parentrelativeslice?language=objc +func (t_ TextureObject) ParentRelativeSlice() uint { + rv := objc.Call[uint](t_, objc.Sel("parentRelativeSlice")) return rv } -func (t_ TextureObject) HasRemoteStorageTexture() bool { - return t_.RespondsToSelector(objc.Sel("remoteStorageTexture")) +func (t_ TextureObject) HasSampleCount() bool { + return t_.RespondsToSelector(objc.Sel("sampleCount")) } -// The texture on another GPU that the texture was created from, if any. [Full Topic] +// The number of samples in each pixel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2967451-remotestoragetexture?language=objc -func (t_ TextureObject) RemoteStorageTexture() TextureObject { - rv := objc.Call[TextureObject](t_, objc.Sel("remoteStorageTexture")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515443-samplecount?language=objc +func (t_ TextureObject) SampleCount() uint { + rv := objc.Call[uint](t_, objc.Sel("sampleCount")) return rv } -func (t_ TextureObject) HasParentRelativeSlice() bool { - return t_.RespondsToSelector(objc.Sel("parentRelativeSlice")) +func (t_ TextureObject) HasHeight() bool { + return t_.RespondsToSelector(objc.Sel("height")) } -// The base slice of the parent texture used to create this texture. [Full Topic] +// The height of the texture image for the base level mipmap, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1516221-parentrelativeslice?language=objc -func (t_ TextureObject) ParentRelativeSlice() uint { - rv := objc.Call[uint](t_, objc.Sel("parentRelativeSlice")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515938-height?language=objc +func (t_ TextureObject) Height() uint { + rv := objc.Call[uint](t_, objc.Sel("height")) return rv } @@ -448,63 +398,51 @@ func (t_ TextureObject) CompressionType() TextureCompressionType { return rv } -func (t_ TextureObject) HasPixelFormat() bool { - return t_.RespondsToSelector(objc.Sel("pixelFormat")) +func (t_ TextureObject) HasTextureType() bool { + return t_.RespondsToSelector(objc.Sel("textureType")) } -// The format of pixels in the texture. [Full Topic] +// The dimension and arrangement of the texture image data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515344-pixelformat?language=objc -func (t_ TextureObject) PixelFormat() PixelFormat { - rv := objc.Call[PixelFormat](t_, objc.Sel("pixelFormat")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515517-texturetype?language=objc +func (t_ TextureObject) TextureType() TextureType { + rv := objc.Call[TextureType](t_, objc.Sel("textureType")) return rv } -func (t_ TextureObject) HasBufferBytesPerRow() bool { - return t_.RespondsToSelector(objc.Sel("bufferBytesPerRow")) +func (t_ TextureObject) HasBufferOffset() bool { + return t_.RespondsToSelector(objc.Sel("bufferOffset")) } -// The number of bytes in each row of the texture’s source buffer. [Full Topic] +// The offset in the source buffer where the texture's data comes from. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1619175-bufferbytesperrow?language=objc -func (t_ TextureObject) BufferBytesPerRow() uint { - rv := objc.Call[uint](t_, objc.Sel("bufferBytesPerRow")) - return rv -} - -func (t_ TextureObject) HasWidth() bool { - return t_.RespondsToSelector(objc.Sel("width")) -} - -// The width of the texture image for the base level mipmap, in pixels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515339-width?language=objc -func (t_ TextureObject) Width() uint { - rv := objc.Call[uint](t_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1619019-bufferoffset?language=objc +func (t_ TextureObject) BufferOffset() uint { + rv := objc.Call[uint](t_, objc.Sel("bufferOffset")) return rv } -func (t_ TextureObject) HasIsShareable() bool { - return t_.RespondsToSelector(objc.Sel("isShareable")) +func (t_ TextureObject) HasIsSparse() bool { + return t_.RespondsToSelector(objc.Sel("isSparse")) } -// A Boolean indicating whether this texture can be shared with other processes. [Full Topic] +// A Boolean value that indicates whether this is a sparse texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2998889-shareable?language=objc -func (t_ TextureObject) IsShareable() bool { - rv := objc.Call[bool](t_, objc.Sel("isShareable")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3153124-issparse?language=objc +func (t_ TextureObject) IsSparse() bool { + rv := objc.Call[bool](t_, objc.Sel("isSparse")) return rv } -func (t_ TextureObject) HasTailSizeInBytes() bool { - return t_.RespondsToSelector(objc.Sel("tailSizeInBytes")) +func (t_ TextureObject) HasAllowGPUOptimizedContents() bool { + return t_.RespondsToSelector(objc.Sel("allowGPUOptimizedContents")) } -// The size of the sparse texture tail, in bytes. [Full Topic] +// A Boolean value indicating whether the GPU is allowed to adjust the contents of the texture to improve GPU performance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3044002-tailsizeinbytes?language=objc -func (t_ TextureObject) TailSizeInBytes() uint { - rv := objc.Call[uint](t_, objc.Sel("tailSizeInBytes")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2966640-allowgpuoptimizedcontents?language=objc +func (t_ TextureObject) AllowGPUOptimizedContents() bool { + rv := objc.Call[bool](t_, objc.Sel("allowGPUOptimizedContents")) return rv } @@ -512,7 +450,7 @@ func (t_ TextureObject) HasParentTexture() bool { return t_.RespondsToSelector(objc.Sel("parentTexture")) } -// The parent texture used to create this texture, if any. [Full Topic] +// The parent texture that the texture was created from, if any. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515372-parenttexture?language=objc func (t_ TextureObject) ParentTexture() TextureObject { @@ -520,27 +458,27 @@ func (t_ TextureObject) ParentTexture() TextureObject { return rv } -func (t_ TextureObject) HasTextureType() bool { - return t_.RespondsToSelector(objc.Sel("textureType")) +func (t_ TextureObject) HasPixelFormat() bool { + return t_.RespondsToSelector(objc.Sel("pixelFormat")) } -// The dimension and arrangement of the texture image data. [Full Topic] +// The format of pixels in the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515517-texturetype?language=objc -func (t_ TextureObject) TextureType() TextureType { - rv := objc.Call[TextureType](t_, objc.Sel("textureType")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515344-pixelformat?language=objc +func (t_ TextureObject) PixelFormat() PixelFormat { + rv := objc.Call[PixelFormat](t_, objc.Sel("pixelFormat")) return rv } -func (t_ TextureObject) HasMipmapLevelCount() bool { - return t_.RespondsToSelector(objc.Sel("mipmapLevelCount")) +func (t_ TextureObject) HasDepth() bool { + return t_.RespondsToSelector(objc.Sel("depth")) } -// The number of mipmap levels in the texture. [Full Topic] +// The depth of the texture image for the base level mipmap, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515677-mipmaplevelcount?language=objc -func (t_ TextureObject) MipmapLevelCount() uint { - rv := objc.Call[uint](t_, objc.Sel("mipmapLevelCount")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515942-depth?language=objc +func (t_ TextureObject) Depth() uint { + rv := objc.Call[uint](t_, objc.Sel("depth")) return rv } @@ -556,26 +494,26 @@ func (t_ TextureObject) Iosurface() iosurface.Ref { return rv } -func (t_ TextureObject) HasIsSparse() bool { - return t_.RespondsToSelector(objc.Sel("isSparse")) +func (t_ TextureObject) HasBufferBytesPerRow() bool { + return t_.RespondsToSelector(objc.Sel("bufferBytesPerRow")) } -// A Boolean value that indicates whether this is a sparse texture. [Full Topic] +// The number of bytes in each row of the texture’s source buffer, if applicable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3153124-issparse?language=objc -func (t_ TextureObject) IsSparse() bool { - rv := objc.Call[bool](t_, objc.Sel("isSparse")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1619175-bufferbytesperrow?language=objc +func (t_ TextureObject) BufferBytesPerRow() uint { + rv := objc.Call[uint](t_, objc.Sel("bufferBytesPerRow")) return rv } -func (t_ TextureObject) HasIosurfacePlane() bool { - return t_.RespondsToSelector(objc.Sel("iosurfacePlane")) +func (t_ TextureObject) HasTailSizeInBytes() bool { + return t_.RespondsToSelector(objc.Sel("tailSizeInBytes")) } -// The plane of the IOSurface to reference if any. [Full Topic] +// The size of the sparse texture tail, in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515986-iosurfaceplane?language=objc -func (t_ TextureObject) IosurfacePlane() uint { - rv := objc.Call[uint](t_, objc.Sel("iosurfacePlane")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3044002-tailsizeinbytes?language=objc +func (t_ TextureObject) TailSizeInBytes() uint { + rv := objc.Call[uint](t_, objc.Sel("tailSizeInBytes")) return rv } diff --git a/macos/metal/texture_reference_type.gen.go b/macos/metal/texture_reference_type.gen.go index 9ee2fddd..61638a24 100644 --- a/macos/metal/texture_reference_type.gen.go +++ b/macos/metal/texture_reference_type.gen.go @@ -18,10 +18,10 @@ type _TextureReferenceTypeClass struct { // An interface definition for the [TextureReferenceType] class. type ITextureReferenceType interface { IType - TextureDataType() DataType TextureType() TextureType - IsDepthTexture() bool Access() objc.Object + IsDepthTexture() bool + TextureDataType() DataType } // A description of a texture. [Full Topic] @@ -57,14 +57,6 @@ func (t_ TextureReferenceType) Init() TextureReferenceType { return rv } -// The data type of the texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturereferencetype/2877443-texturedatatype?language=objc -func (t_ TextureReferenceType) TextureDataType() DataType { - rv := objc.Call[DataType](t_, objc.Sel("textureDataType")) - return rv -} - // The texture type of the texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturereferencetype/2877442-texturetype?language=objc @@ -73,6 +65,14 @@ func (t_ TextureReferenceType) TextureType() TextureType { return rv } +// The texture's read/write access to the argument. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturereferencetype/2877456-access?language=objc +func (t_ TextureReferenceType) Access() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("access")) + return rv +} + // A Boolean value that indicates whether the texture is a depth texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturereferencetype/2877449-isdepthtexture?language=objc @@ -81,10 +81,10 @@ func (t_ TextureReferenceType) IsDepthTexture() bool { return rv } -// The texture's read/write access to the argument. [Full Topic] +// The data type of the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturereferencetype/2877456-access?language=objc -func (t_ TextureReferenceType) Access() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("access")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturereferencetype/2877443-texturedatatype?language=objc +func (t_ TextureReferenceType) TextureDataType() DataType { + rv := objc.Call[DataType](t_, objc.Sel("textureDataType")) return rv } diff --git a/macos/metal/tile_render_pipeline_color_attachment_descriptor_array.gen.go b/macos/metal/tile_render_pipeline_color_attachment_descriptor_array.gen.go index e9d7417c..30013715 100644 --- a/macos/metal/tile_render_pipeline_color_attachment_descriptor_array.gen.go +++ b/macos/metal/tile_render_pipeline_color_attachment_descriptor_array.gen.go @@ -18,8 +18,8 @@ type _TileRenderPipelineColorAttachmentDescriptorArrayClass struct { // An interface definition for the [TileRenderPipelineColorAttachmentDescriptorArray] class. type ITileRenderPipelineColorAttachmentDescriptorArray interface { objc.IObject - SetObjectAtIndexedSubscript(attachment ITileRenderPipelineColorAttachmentDescriptor, attachmentIndex uint) ObjectAtIndexedSubscript(attachmentIndex uint) TileRenderPipelineColorAttachmentDescriptor + SetObjectAtIndexedSubscript(attachment ITileRenderPipelineColorAttachmentDescriptor, attachmentIndex uint) } // An array of color attachment descriptors for the tile render pipeline. [Full Topic] @@ -55,13 +55,6 @@ func (t_ TileRenderPipelineColorAttachmentDescriptorArray) Init() TileRenderPipe return rv } -// Sets the render pipeline state for a specified color attachment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinecolorattachmentdescriptorarray/2867636-setobject?language=objc -func (t_ TileRenderPipelineColorAttachmentDescriptorArray) SetObjectAtIndexedSubscript(attachment ITileRenderPipelineColorAttachmentDescriptor, attachmentIndex uint) { - objc.Call[objc.Void](t_, objc.Sel("setObject:atIndexedSubscript:"), attachment, attachmentIndex) -} - // Returns the render pipeline state for the specified color attachment. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinecolorattachmentdescriptorarray/2866392-objectatindexedsubscript?language=objc @@ -69,3 +62,10 @@ func (t_ TileRenderPipelineColorAttachmentDescriptorArray) ObjectAtIndexedSubscr rv := objc.Call[TileRenderPipelineColorAttachmentDescriptor](t_, objc.Sel("objectAtIndexedSubscript:"), attachmentIndex) return rv } + +// Sets the render pipeline state for a specified color attachment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinecolorattachmentdescriptorarray/2867636-setobject?language=objc +func (t_ TileRenderPipelineColorAttachmentDescriptorArray) SetObjectAtIndexedSubscript(attachment ITileRenderPipelineColorAttachmentDescriptor, attachmentIndex uint) { + objc.Call[objc.Void](t_, objc.Sel("setObject:atIndexedSubscript:"), attachment, attachmentIndex) +} diff --git a/macos/metal/tile_render_pipeline_descriptor.gen.go b/macos/metal/tile_render_pipeline_descriptor.gen.go index 2d308f00..23012923 100644 --- a/macos/metal/tile_render_pipeline_descriptor.gen.go +++ b/macos/metal/tile_render_pipeline_descriptor.gen.go @@ -19,29 +19,29 @@ type _TileRenderPipelineDescriptorClass struct { type ITileRenderPipelineDescriptor interface { objc.IObject Reset() - MaxTotalThreadsPerThreadgroup() uint - SetMaxTotalThreadsPerThreadgroup(value uint) + ColorAttachments() TileRenderPipelineColorAttachmentDescriptorArray + TileBuffers() PipelineBufferDescriptorArray SupportAddingBinaryFunctions() bool SetSupportAddingBinaryFunctions(value bool) - ThreadgroupSizeMatchesTileSize() bool - SetThreadgroupSizeMatchesTileSize(value bool) + MaxCallStackDepth() uint + SetMaxCallStackDepth(value uint) + LinkedFunctions() LinkedFunctions + SetLinkedFunctions(value ILinkedFunctions) TileFunction() FunctionObject SetTileFunction(value PFunction) SetTileFunctionObject(valueObject objc.IObject) - LinkedFunctions() LinkedFunctions - SetLinkedFunctions(value ILinkedFunctions) - ColorAttachments() TileRenderPipelineColorAttachmentDescriptorArray - Label() string - SetLabel(value string) - BinaryArchives() []BinaryArchiveObject - SetBinaryArchives(value []PBinaryArchive) - MaxCallStackDepth() uint - SetMaxCallStackDepth(value uint) + MaxTotalThreadsPerThreadgroup() uint + SetMaxTotalThreadsPerThreadgroup(value uint) RasterSampleCount() uint SetRasterSampleCount(value uint) - TileBuffers() PipelineBufferDescriptorArray + ThreadgroupSizeMatchesTileSize() bool + SetThreadgroupSizeMatchesTileSize(value bool) PreloadedLibraries() []DynamicLibraryObject SetPreloadedLibraries(value []PDynamicLibrary) + Label() string + SetLabel(value string) + BinaryArchives() []BinaryArchiveObject + SetBinaryArchives(value []PBinaryArchive) } // An object that configures new render pipeline state objects for tile shading. [Full Topic] @@ -84,19 +84,20 @@ func (t_ TileRenderPipelineDescriptor) Reset() { objc.Call[objc.Void](t_, objc.Sel("reset")) } -// The maximum number of threads in a threadgroup when dispatching a command using the pipeline. [Full Topic] +// An array of attachments that store color data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2990998-maxtotalthreadsperthreadgroup?language=objc -func (t_ TileRenderPipelineDescriptor) MaxTotalThreadsPerThreadgroup() uint { - rv := objc.Call[uint](t_, objc.Sel("maxTotalThreadsPerThreadgroup")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866554-colorattachments?language=objc +func (t_ TileRenderPipelineDescriptor) ColorAttachments() TileRenderPipelineColorAttachmentDescriptorArray { + rv := objc.Call[TileRenderPipelineColorAttachmentDescriptorArray](t_, objc.Sel("colorAttachments")) return rv } -// The maximum number of threads in a threadgroup when dispatching a command using the pipeline. [Full Topic] +// An array that contains the buffer mutability options for a render pipeline’s tile function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2990998-maxtotalthreadsperthreadgroup?language=objc -func (t_ TileRenderPipelineDescriptor) SetMaxTotalThreadsPerThreadgroup(value uint) { - objc.Call[objc.Void](t_, objc.Sel("setMaxTotalThreadsPerThreadgroup:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2928217-tilebuffers?language=objc +func (t_ TileRenderPipelineDescriptor) TileBuffers() PipelineBufferDescriptorArray { + rv := objc.Call[PipelineBufferDescriptorArray](t_, objc.Sel("tileBuffers")) + return rv } // A Boolean value that indicates whether you can use the pipeline to create new pipelines by adding binary functions to its callable functions list. [Full Topic] @@ -114,42 +115,19 @@ func (t_ TileRenderPipelineDescriptor) SetSupportAddingBinaryFunctions(value boo objc.Call[objc.Void](t_, objc.Sel("setSupportAddingBinaryFunctions:"), value) } -// A Boolean value that indicates whether all threadgroups for this pipeline completely cover tiles. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866359-threadgroupsizematchestilesize?language=objc -func (t_ TileRenderPipelineDescriptor) ThreadgroupSizeMatchesTileSize() bool { - rv := objc.Call[bool](t_, objc.Sel("threadgroupSizeMatchesTileSize")) - return rv -} - -// A Boolean value that indicates whether all threadgroups for this pipeline completely cover tiles. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866359-threadgroupsizematchestilesize?language=objc -func (t_ TileRenderPipelineDescriptor) SetThreadgroupSizeMatchesTileSize(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setThreadgroupSizeMatchesTileSize:"), value) -} - -// The compute kernel or fragment function the pipeline calls. [Full Topic] +// The maximum function call depth from the top-most shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866354-tilefunction?language=objc -func (t_ TileRenderPipelineDescriptor) TileFunction() FunctionObject { - rv := objc.Call[FunctionObject](t_, objc.Sel("tileFunction")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/3750587-maxcallstackdepth?language=objc +func (t_ TileRenderPipelineDescriptor) MaxCallStackDepth() uint { + rv := objc.Call[uint](t_, objc.Sel("maxCallStackDepth")) return rv } -// The compute kernel or fragment function the pipeline calls. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866354-tilefunction?language=objc -func (t_ TileRenderPipelineDescriptor) SetTileFunction(value PFunction) { - po0 := objc.WrapAsProtocol("MTLFunction", value) - objc.Call[objc.Void](t_, objc.Sel("setTileFunction:"), po0) -} - -// The compute kernel or fragment function the pipeline calls. [Full Topic] +// The maximum function call depth from the top-most shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866354-tilefunction?language=objc -func (t_ TileRenderPipelineDescriptor) SetTileFunctionObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setTileFunction:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/3750587-maxcallstackdepth?language=objc +func (t_ TileRenderPipelineDescriptor) SetMaxCallStackDepth(value uint) { + objc.Call[objc.Void](t_, objc.Sel("setMaxCallStackDepth:"), value) } // Functions that you can specify as function arguments for the tile shader when encoding commands that use the pipeline. [Full Topic] @@ -167,57 +145,42 @@ func (t_ TileRenderPipelineDescriptor) SetLinkedFunctions(value ILinkedFunctions objc.Call[objc.Void](t_, objc.Sel("setLinkedFunctions:"), value) } -// An array of attachments that store color data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866554-colorattachments?language=objc -func (t_ TileRenderPipelineDescriptor) ColorAttachments() TileRenderPipelineColorAttachmentDescriptorArray { - rv := objc.Call[TileRenderPipelineColorAttachmentDescriptorArray](t_, objc.Sel("colorAttachments")) - return rv -} - -// A string that identifies the tile pipeline descriptor. [Full Topic] +// The compute kernel or fragment function the pipeline calls. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866523-label?language=objc -func (t_ TileRenderPipelineDescriptor) Label() string { - rv := objc.Call[string](t_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866354-tilefunction?language=objc +func (t_ TileRenderPipelineDescriptor) TileFunction() FunctionObject { + rv := objc.Call[FunctionObject](t_, objc.Sel("tileFunction")) return rv } -// A string that identifies the tile pipeline descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866523-label?language=objc -func (t_ TileRenderPipelineDescriptor) SetLabel(value string) { - objc.Call[objc.Void](t_, objc.Sel("setLabel:"), value) -} - -// An array of binary archives to search for precompiled versions of the shader. [Full Topic] +// The compute kernel or fragment function the pipeline calls. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/3564464-binaryarchives?language=objc -func (t_ TileRenderPipelineDescriptor) BinaryArchives() []BinaryArchiveObject { - rv := objc.Call[[]BinaryArchiveObject](t_, objc.Sel("binaryArchives")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866354-tilefunction?language=objc +func (t_ TileRenderPipelineDescriptor) SetTileFunction(value PFunction) { + po0 := objc.WrapAsProtocol("MTLFunction", value) + objc.Call[objc.Void](t_, objc.Sel("setTileFunction:"), po0) } -// An array of binary archives to search for precompiled versions of the shader. [Full Topic] +// The compute kernel or fragment function the pipeline calls. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/3564464-binaryarchives?language=objc -func (t_ TileRenderPipelineDescriptor) SetBinaryArchives(value []PBinaryArchive) { - objc.Call[objc.Void](t_, objc.Sel("setBinaryArchives:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866354-tilefunction?language=objc +func (t_ TileRenderPipelineDescriptor) SetTileFunctionObject(valueObject objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setTileFunction:"), valueObject) } -// The maximum function call depth from the top-most shader function. [Full Topic] +// The maximum number of threads in a threadgroup when dispatching a command using the pipeline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/3750587-maxcallstackdepth?language=objc -func (t_ TileRenderPipelineDescriptor) MaxCallStackDepth() uint { - rv := objc.Call[uint](t_, objc.Sel("maxCallStackDepth")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2990998-maxtotalthreadsperthreadgroup?language=objc +func (t_ TileRenderPipelineDescriptor) MaxTotalThreadsPerThreadgroup() uint { + rv := objc.Call[uint](t_, objc.Sel("maxTotalThreadsPerThreadgroup")) return rv } -// The maximum function call depth from the top-most shader function. [Full Topic] +// The maximum number of threads in a threadgroup when dispatching a command using the pipeline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/3750587-maxcallstackdepth?language=objc -func (t_ TileRenderPipelineDescriptor) SetMaxCallStackDepth(value uint) { - objc.Call[objc.Void](t_, objc.Sel("setMaxCallStackDepth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2990998-maxtotalthreadsperthreadgroup?language=objc +func (t_ TileRenderPipelineDescriptor) SetMaxTotalThreadsPerThreadgroup(value uint) { + objc.Call[objc.Void](t_, objc.Sel("setMaxTotalThreadsPerThreadgroup:"), value) } // The number of samples in each fragment. [Full Topic] @@ -235,14 +198,21 @@ func (t_ TileRenderPipelineDescriptor) SetRasterSampleCount(value uint) { objc.Call[objc.Void](t_, objc.Sel("setRasterSampleCount:"), value) } -// An array that contains the buffer mutability options for a render pipeline’s tile function. [Full Topic] +// A Boolean value that indicates whether all threadgroups for this pipeline completely cover tiles. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2928217-tilebuffers?language=objc -func (t_ TileRenderPipelineDescriptor) TileBuffers() PipelineBufferDescriptorArray { - rv := objc.Call[PipelineBufferDescriptorArray](t_, objc.Sel("tileBuffers")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866359-threadgroupsizematchestilesize?language=objc +func (t_ TileRenderPipelineDescriptor) ThreadgroupSizeMatchesTileSize() bool { + rv := objc.Call[bool](t_, objc.Sel("threadgroupSizeMatchesTileSize")) return rv } +// A Boolean value that indicates whether all threadgroups for this pipeline completely cover tiles. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866359-threadgroupsizematchestilesize?language=objc +func (t_ TileRenderPipelineDescriptor) SetThreadgroupSizeMatchesTileSize(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setThreadgroupSizeMatchesTileSize:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/3801725-preloadedlibraries?language=objc @@ -257,3 +227,33 @@ func (t_ TileRenderPipelineDescriptor) PreloadedLibraries() []DynamicLibraryObje func (t_ TileRenderPipelineDescriptor) SetPreloadedLibraries(value []PDynamicLibrary) { objc.Call[objc.Void](t_, objc.Sel("setPreloadedLibraries:"), value) } + +// A string that identifies the tile pipeline descriptor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866523-label?language=objc +func (t_ TileRenderPipelineDescriptor) Label() string { + rv := objc.Call[string](t_, objc.Sel("label")) + return rv +} + +// A string that identifies the tile pipeline descriptor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866523-label?language=objc +func (t_ TileRenderPipelineDescriptor) SetLabel(value string) { + objc.Call[objc.Void](t_, objc.Sel("setLabel:"), value) +} + +// An array of binary archives to search for precompiled versions of the shader. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/3564464-binaryarchives?language=objc +func (t_ TileRenderPipelineDescriptor) BinaryArchives() []BinaryArchiveObject { + rv := objc.Call[[]BinaryArchiveObject](t_, objc.Sel("binaryArchives")) + return rv +} + +// An array of binary archives to search for precompiled versions of the shader. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/3564464-binaryarchives?language=objc +func (t_ TileRenderPipelineDescriptor) SetBinaryArchives(value []PBinaryArchive) { + objc.Call[objc.Void](t_, objc.Sel("setBinaryArchives:"), value) +} diff --git a/macos/metal/vertex_attribute.gen.go b/macos/metal/vertex_attribute.gen.go index 47c1c9c6..d91f9151 100644 --- a/macos/metal/vertex_attribute.gen.go +++ b/macos/metal/vertex_attribute.gen.go @@ -18,12 +18,12 @@ type _VertexAttributeClass struct { // An interface definition for the [VertexAttribute] class. type IVertexAttribute interface { objc.IObject - IsPatchData() bool - IsPatchControlPointData() bool - IsActive() bool - AttributeIndex() uint Name() string + IsActive() bool + IsPatchControlPointData() bool + IsPatchData() bool AttributeType() DataType + AttributeIndex() uint } // An object that represents an attribute of a vertex function. [Full Topic] @@ -59,19 +59,11 @@ func (v_ VertexAttribute) Init() VertexAttribute { return rv } -// A Boolean value that indicates whether this vertex attribute represents patch data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattribute/1640002-patchdata?language=objc -func (v_ VertexAttribute) IsPatchData() bool { - rv := objc.Call[bool](v_, objc.Sel("isPatchData")) - return rv -} - -// A Boolean value that indicates whether this vertex attribute represents control point data. [Full Topic] +// The name of the attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattribute/1640013-patchcontrolpointdata?language=objc -func (v_ VertexAttribute) IsPatchControlPointData() bool { - rv := objc.Call[bool](v_, objc.Sel("isPatchControlPointData")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattribute/1515447-name?language=objc +func (v_ VertexAttribute) Name() string { + rv := objc.Call[string](v_, objc.Sel("name")) return rv } @@ -83,19 +75,19 @@ func (v_ VertexAttribute) IsActive() bool { return rv } -// The index of the attribute, as declared in Metal shader source code. [Full Topic] +// A Boolean value that indicates whether this vertex attribute represents control point data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattribute/1516285-attributeindex?language=objc -func (v_ VertexAttribute) AttributeIndex() uint { - rv := objc.Call[uint](v_, objc.Sel("attributeIndex")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattribute/1640013-patchcontrolpointdata?language=objc +func (v_ VertexAttribute) IsPatchControlPointData() bool { + rv := objc.Call[bool](v_, objc.Sel("isPatchControlPointData")) return rv } -// The name of the attribute. [Full Topic] +// A Boolean value that indicates whether this vertex attribute represents patch data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattribute/1515447-name?language=objc -func (v_ VertexAttribute) Name() string { - rv := objc.Call[string](v_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattribute/1640002-patchdata?language=objc +func (v_ VertexAttribute) IsPatchData() bool { + rv := objc.Call[bool](v_, objc.Sel("isPatchData")) return rv } @@ -106,3 +98,11 @@ func (v_ VertexAttribute) AttributeType() DataType { rv := objc.Call[DataType](v_, objc.Sel("attributeType")) return rv } + +// The index of the attribute, as declared in Metal shader source code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattribute/1516285-attributeindex?language=objc +func (v_ VertexAttribute) AttributeIndex() uint { + rv := objc.Call[uint](v_, objc.Sel("attributeIndex")) + return rv +} diff --git a/macos/metal/vertex_attribute_descriptor.gen.go b/macos/metal/vertex_attribute_descriptor.gen.go index 2bf1a73d..1e00c0e6 100644 --- a/macos/metal/vertex_attribute_descriptor.gen.go +++ b/macos/metal/vertex_attribute_descriptor.gen.go @@ -18,12 +18,12 @@ type _VertexAttributeDescriptorClass struct { // An interface definition for the [VertexAttributeDescriptor] class. type IVertexAttributeDescriptor interface { objc.IObject + BufferIndex() uint + SetBufferIndex(value uint) Offset() uint SetOffset(value uint) Format() VertexFormat SetFormat(value VertexFormat) - BufferIndex() uint - SetBufferIndex(value uint) } // An object that determines how to store attribute data in memory and map it to the arguments of a vertex function. [Full Topic] @@ -59,6 +59,21 @@ func (v_ VertexAttributeDescriptor) Init() VertexAttributeDescriptor { return rv } +// The index in the argument table for the associated vertex buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattributedescriptor/1515502-bufferindex?language=objc +func (v_ VertexAttributeDescriptor) BufferIndex() uint { + rv := objc.Call[uint](v_, objc.Sel("bufferIndex")) + return rv +} + +// The index in the argument table for the associated vertex buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattributedescriptor/1515502-bufferindex?language=objc +func (v_ VertexAttributeDescriptor) SetBufferIndex(value uint) { + objc.Call[objc.Void](v_, objc.Sel("setBufferIndex:"), value) +} + // The location of an attribute in vertex data, determined by the byte offset from the start of the vertex data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattributedescriptor/1515785-offset?language=objc @@ -88,18 +103,3 @@ func (v_ VertexAttributeDescriptor) Format() VertexFormat { func (v_ VertexAttributeDescriptor) SetFormat(value VertexFormat) { objc.Call[objc.Void](v_, objc.Sel("setFormat:"), value) } - -// The index in the argument table for the associated vertex buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattributedescriptor/1515502-bufferindex?language=objc -func (v_ VertexAttributeDescriptor) BufferIndex() uint { - rv := objc.Call[uint](v_, objc.Sel("bufferIndex")) - return rv -} - -// The index in the argument table for the associated vertex buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexattributedescriptor/1515502-bufferindex?language=objc -func (v_ VertexAttributeDescriptor) SetBufferIndex(value uint) { - objc.Call[objc.Void](v_, objc.Sel("setBufferIndex:"), value) -} diff --git a/macos/metal/vertex_buffer_layout_descriptor.gen.go b/macos/metal/vertex_buffer_layout_descriptor.gen.go index 5253480e..c0954682 100644 --- a/macos/metal/vertex_buffer_layout_descriptor.gen.go +++ b/macos/metal/vertex_buffer_layout_descriptor.gen.go @@ -18,12 +18,12 @@ type _VertexBufferLayoutDescriptorClass struct { // An interface definition for the [VertexBufferLayoutDescriptor] class. type IVertexBufferLayoutDescriptor interface { objc.IObject - StepFunction() VertexStepFunction - SetStepFunction(value VertexStepFunction) StepRate() uint SetStepRate(value uint) Stride() uint SetStride(value uint) + StepFunction() VertexStepFunction + SetStepFunction(value VertexStepFunction) } // An object that configures how a render pipeline fetches data to send to the vertex function. [Full Topic] @@ -59,21 +59,6 @@ func (v_ VertexBufferLayoutDescriptor) Init() VertexBufferLayoutDescriptor { return rv } -// The circumstances under which the vertex and its attributes are presented to the vertex function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexbufferlayoutdescriptor/1515341-stepfunction?language=objc -func (v_ VertexBufferLayoutDescriptor) StepFunction() VertexStepFunction { - rv := objc.Call[VertexStepFunction](v_, objc.Sel("stepFunction")) - return rv -} - -// The circumstances under which the vertex and its attributes are presented to the vertex function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexbufferlayoutdescriptor/1515341-stepfunction?language=objc -func (v_ VertexBufferLayoutDescriptor) SetStepFunction(value VertexStepFunction) { - objc.Call[objc.Void](v_, objc.Sel("setStepFunction:"), value) -} - // The interval at which the vertex and its attributes are presented to the vertex function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexbufferlayoutdescriptor/1516148-steprate?language=objc @@ -103,3 +88,18 @@ func (v_ VertexBufferLayoutDescriptor) Stride() uint { func (v_ VertexBufferLayoutDescriptor) SetStride(value uint) { objc.Call[objc.Void](v_, objc.Sel("setStride:"), value) } + +// The circumstances under which the vertex and its attributes are presented to the vertex function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexbufferlayoutdescriptor/1515341-stepfunction?language=objc +func (v_ VertexBufferLayoutDescriptor) StepFunction() VertexStepFunction { + rv := objc.Call[VertexStepFunction](v_, objc.Sel("stepFunction")) + return rv +} + +// The circumstances under which the vertex and its attributes are presented to the vertex function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexbufferlayoutdescriptor/1515341-stepfunction?language=objc +func (v_ VertexBufferLayoutDescriptor) SetStepFunction(value VertexStepFunction) { + objc.Call[objc.Void](v_, objc.Sel("setStepFunction:"), value) +} diff --git a/macos/metal/vertex_descriptor.gen.go b/macos/metal/vertex_descriptor.gen.go index 3d0e1e9f..bcc0a5eb 100644 --- a/macos/metal/vertex_descriptor.gen.go +++ b/macos/metal/vertex_descriptor.gen.go @@ -19,8 +19,8 @@ type _VertexDescriptorClass struct { type IVertexDescriptor interface { objc.IObject Reset() - Attributes() VertexAttributeDescriptorArray Layouts() VertexBufferLayoutDescriptorArray + Attributes() VertexAttributeDescriptorArray } // An object that describes how to organize and map data to a vertex function. [Full Topic] @@ -78,14 +78,6 @@ func (v_ VertexDescriptor) Reset() { objc.Call[objc.Void](v_, objc.Sel("reset")) } -// An array of state data that describes how vertex attribute data is stored in memory and is mapped to arguments for a vertex shader function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexdescriptor/1515921-attributes?language=objc -func (v_ VertexDescriptor) Attributes() VertexAttributeDescriptorArray { - rv := objc.Call[VertexAttributeDescriptorArray](v_, objc.Sel("attributes")) - return rv -} - // An array of state data that describes how data are fetched by a vertex shader function when rendering primitives. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexdescriptor/1515480-layouts?language=objc @@ -93,3 +85,11 @@ func (v_ VertexDescriptor) Layouts() VertexBufferLayoutDescriptorArray { rv := objc.Call[VertexBufferLayoutDescriptorArray](v_, objc.Sel("layouts")) return rv } + +// An array of state data that describes how vertex attribute data is stored in memory and is mapped to arguments for a vertex shader function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvertexdescriptor/1515921-attributes?language=objc +func (v_ VertexDescriptor) Attributes() VertexAttributeDescriptorArray { + rv := objc.Call[VertexAttributeDescriptorArray](v_, objc.Sel("attributes")) + return rv +} diff --git a/macos/metal/visible_function_table_protocol.gen.go b/macos/metal/visible_function_table_protocol.gen.go index 8c14a905..1da2123f 100644 --- a/macos/metal/visible_function_table_protocol.gen.go +++ b/macos/metal/visible_function_table_protocol.gen.go @@ -13,13 +13,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlvisiblefunctiontable?language=objc type PVisibleFunctionTable interface { - // optional - SetFunctionsWithRange(functions unsafe.Pointer, range_ foundation.Range) - HasSetFunctionsWithRange() bool - // optional SetFunctionAtIndex(function FunctionHandleObject, index uint) HasSetFunctionAtIndex() bool + + // optional + SetFunctionsWithRange(functions unsafe.Pointer, range_ foundation.Range) + HasSetFunctionsWithRange() bool } // ensure impl type implements protocol interface @@ -30,18 +30,6 @@ type VisibleFunctionTableObject struct { objc.Object } -func (v_ VisibleFunctionTableObject) HasSetFunctionsWithRange() bool { - return v_.RespondsToSelector(objc.Sel("setFunctions:withRange:")) -} - -// Sets a range of table entries to point to an array of callable functions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvisiblefunctiontable/3554057-setfunctions?language=objc -func (v_ VisibleFunctionTableObject) SetFunctionsWithRange(functions unsafe.Pointer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLFunctionHandle", functions) - objc.Call[objc.Void](v_, objc.Sel("setFunctions:withRange:"), po0, range_) -} - func (v_ VisibleFunctionTableObject) HasSetFunctionAtIndex() bool { return v_.RespondsToSelector(objc.Sel("setFunction:atIndex:")) } @@ -53,3 +41,15 @@ func (v_ VisibleFunctionTableObject) SetFunctionAtIndex(function FunctionHandleO po0 := objc.WrapAsProtocol("MTLFunctionHandle", function) objc.Call[objc.Void](v_, objc.Sel("setFunction:atIndex:"), po0, index) } + +func (v_ VisibleFunctionTableObject) HasSetFunctionsWithRange() bool { + return v_.RespondsToSelector(objc.Sel("setFunctions:withRange:")) +} + +// Sets a range of table entries to point to an array of callable functions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvisiblefunctiontable/3554057-setfunctions?language=objc +func (v_ VisibleFunctionTableObject) SetFunctionsWithRange(functions unsafe.Pointer, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLFunctionHandle", functions) + objc.Call[objc.Void](v_, objc.Sel("setFunctions:withRange:"), po0, range_) +} diff --git a/macos/mps/acceleration_structure.gen.go b/macos/mps/acceleration_structure.gen.go index 69af31fa..a83dea47 100644 --- a/macos/mps/acceleration_structure.gen.go +++ b/macos/mps/acceleration_structure.gen.go @@ -54,32 +54,32 @@ func (a_ AccelerationStructure) Init() AccelerationStructure { return rv } -func (a_ AccelerationStructure) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) AccelerationStructure { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[AccelerationStructure](a_, objc.Sel("copyWithZone:device:"), zone, po1) +func (a_ AccelerationStructure) InitWithDevice(device metal.PDevice) AccelerationStructure { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[AccelerationStructure](a_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func AccelerationStructure_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) AccelerationStructure { - instance := AccelerationStructureClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewAccelerationStructureWithDevice(device metal.PDevice) AccelerationStructure { + instance := AccelerationStructureClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (a_ AccelerationStructure) InitWithDevice(device metal.PDevice) AccelerationStructure { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[AccelerationStructure](a_, objc.Sel("initWithDevice:"), po0) +func (a_ AccelerationStructure) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) AccelerationStructure { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[AccelerationStructure](a_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewAccelerationStructureWithDevice(device metal.PDevice) AccelerationStructure { - instance := AccelerationStructureClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func AccelerationStructure_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) AccelerationStructure { + instance := AccelerationStructureClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/binary_image_kernel.gen.go b/macos/mps/binary_image_kernel.gen.go index 3920a99d..895a5cd5 100644 --- a/macos/mps/binary_image_kernel.gen.go +++ b/macos/mps/binary_image_kernel.gen.go @@ -19,26 +19,20 @@ type _BinaryImageKernelClass struct { // An interface definition for the [BinaryImageKernel] class. type IBinaryImageKernel interface { IKernel + SecondarySourceRegionForDestinationSize(destinationSize metal.Size) Region EncodeToCommandBufferPrimaryImageSecondaryImageDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, destinationImage IImage) EncodeToCommandBufferObjectPrimaryImageSecondaryImageDestinationImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, destinationImage IImage) - SecondarySourceRegionForDestinationSize(destinationSize metal.Size) Region - EncodeToCommandBufferPrimaryTextureInPlaceSecondaryTextureFallbackCopyAllocator(commandBuffer metal.PCommandBuffer, primaryTexture metal.PTexture, inPlaceSecondaryTexture unsafe.Pointer, copyAllocator CopyAllocator) bool - EncodeToCommandBufferObjectPrimaryTextureObjectInPlaceSecondaryTextureObjectFallbackCopyAllocator(commandBufferObject objc.IObject, primaryTextureObject objc.IObject, inPlaceSecondaryTextureObject objc.IObject, copyAllocator CopyAllocator) bool - EncodeToCommandBufferPrimaryTextureSecondaryTextureDestinationTexture(commandBuffer metal.PCommandBuffer, primaryTexture metal.PTexture, secondaryTexture metal.PTexture, destinationTexture metal.PTexture) - EncodeToCommandBufferObjectPrimaryTextureObjectSecondaryTextureObjectDestinationTextureObject(commandBufferObject objc.IObject, primaryTextureObject objc.IObject, secondaryTextureObject objc.IObject, destinationTextureObject objc.IObject) - EncodeToCommandBufferInPlacePrimaryTextureSecondaryTextureFallbackCopyAllocator(commandBuffer metal.PCommandBuffer, inPlacePrimaryTexture unsafe.Pointer, secondaryTexture metal.PTexture, copyAllocator CopyAllocator) bool - EncodeToCommandBufferObjectInPlacePrimaryTextureObjectSecondaryTextureObjectFallbackCopyAllocator(commandBufferObject objc.IObject, inPlacePrimaryTextureObject objc.IObject, secondaryTextureObject objc.IObject, copyAllocator CopyAllocator) bool PrimarySourceRegionForDestinationSize(destinationSize metal.Size) Region - PrimaryEdgeMode() ImageEdgeMode - SetPrimaryEdgeMode(value ImageEdgeMode) - ClipRect() metal.Region - SetClipRect(value metal.Region) SecondaryEdgeMode() ImageEdgeMode SetSecondaryEdgeMode(value ImageEdgeMode) + PrimaryEdgeMode() ImageEdgeMode + SetPrimaryEdgeMode(value ImageEdgeMode) PrimaryOffset() Offset SetPrimaryOffset(value Offset) SecondaryOffset() Offset SetSecondaryOffset(value Offset) + ClipRect() metal.Region + SetClipRect(value metal.Region) } // A kernel that consumes two textures and produces one texture. [Full Topic] @@ -104,21 +98,6 @@ func BinaryImageKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/2866330-encodetocommandbuffer?language=objc -func (b_ BinaryImageKernel) EncodeToCommandBufferPrimaryImageSecondaryImageDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, destinationImage IImage) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](b_, objc.Sel("encodeToCommandBuffer:primaryImage:secondaryImage:destinationImage:"), po0, primaryImage, secondaryImage, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/2866330-encodetocommandbuffer?language=objc -func (b_ BinaryImageKernel) EncodeToCommandBufferObjectPrimaryImageSecondaryImageDestinationImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, destinationImage IImage) { - objc.Call[objc.Void](b_, objc.Sel("encodeToCommandBuffer:primaryImage:secondaryImage:destinationImage:"), commandBufferObject, primaryImage, secondaryImage, destinationImage) -} - // Determines the region of the secondary source texture that will be read for an encode operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618838-secondarysourceregionfordestinat?language=objc @@ -127,68 +106,42 @@ func (b_ BinaryImageKernel) SecondarySourceRegionForDestinationSize(destinationS return rv } -// This method attempts to apply a kernel in place on a texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618890-encodetocommandbuffer?language=objc -func (b_ BinaryImageKernel) EncodeToCommandBufferPrimaryTextureInPlaceSecondaryTextureFallbackCopyAllocator(commandBuffer metal.PCommandBuffer, primaryTexture metal.PTexture, inPlaceSecondaryTexture unsafe.Pointer, copyAllocator CopyAllocator) bool { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", primaryTexture) - po2 := objc.WrapAsProtocol("MTLTexture", inPlaceSecondaryTexture) - rv := objc.Call[bool](b_, objc.Sel("encodeToCommandBuffer:primaryTexture:inPlaceSecondaryTexture:fallbackCopyAllocator:"), po0, po1, po2, copyAllocator) - return rv -} - -// This method attempts to apply a kernel in place on a texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618890-encodetocommandbuffer?language=objc -func (b_ BinaryImageKernel) EncodeToCommandBufferObjectPrimaryTextureObjectInPlaceSecondaryTextureObjectFallbackCopyAllocator(commandBufferObject objc.IObject, primaryTextureObject objc.IObject, inPlaceSecondaryTextureObject objc.IObject, copyAllocator CopyAllocator) bool { - rv := objc.Call[bool](b_, objc.Sel("encodeToCommandBuffer:primaryTexture:inPlaceSecondaryTexture:fallbackCopyAllocator:"), commandBufferObject, primaryTextureObject, inPlaceSecondaryTextureObject, copyAllocator) - return rv -} - -// Encodes a kernel into a command buffer, out-of-place. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618871-encodetocommandbuffer?language=objc -func (b_ BinaryImageKernel) EncodeToCommandBufferPrimaryTextureSecondaryTextureDestinationTexture(commandBuffer metal.PCommandBuffer, primaryTexture metal.PTexture, secondaryTexture metal.PTexture, destinationTexture metal.PTexture) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/2866330-encodetocommandbuffer?language=objc +func (b_ BinaryImageKernel) EncodeToCommandBufferPrimaryImageSecondaryImageDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, destinationImage IImage) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", primaryTexture) - po2 := objc.WrapAsProtocol("MTLTexture", secondaryTexture) - po3 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - objc.Call[objc.Void](b_, objc.Sel("encodeToCommandBuffer:primaryTexture:secondaryTexture:destinationTexture:"), po0, po1, po2, po3) + objc.Call[objc.Void](b_, objc.Sel("encodeToCommandBuffer:primaryImage:secondaryImage:destinationImage:"), po0, primaryImage, secondaryImage, destinationImage) } -// Encodes a kernel into a command buffer, out-of-place. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618871-encodetocommandbuffer?language=objc -func (b_ BinaryImageKernel) EncodeToCommandBufferObjectPrimaryTextureObjectSecondaryTextureObjectDestinationTextureObject(commandBufferObject objc.IObject, primaryTextureObject objc.IObject, secondaryTextureObject objc.IObject, destinationTextureObject objc.IObject) { - objc.Call[objc.Void](b_, objc.Sel("encodeToCommandBuffer:primaryTexture:secondaryTexture:destinationTexture:"), commandBufferObject, primaryTextureObject, secondaryTextureObject, destinationTextureObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/2866330-encodetocommandbuffer?language=objc +func (b_ BinaryImageKernel) EncodeToCommandBufferObjectPrimaryImageSecondaryImageDestinationImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, destinationImage IImage) { + objc.Call[objc.Void](b_, objc.Sel("encodeToCommandBuffer:primaryImage:secondaryImage:destinationImage:"), commandBufferObject, primaryImage, secondaryImage, destinationImage) } -// This method attempts to apply a kernel in place on a texture. [Full Topic] +// Determines the region of the primary source texture that will be read for an encode operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618771-encodetocommandbuffer?language=objc -func (b_ BinaryImageKernel) EncodeToCommandBufferInPlacePrimaryTextureSecondaryTextureFallbackCopyAllocator(commandBuffer metal.PCommandBuffer, inPlacePrimaryTexture unsafe.Pointer, secondaryTexture metal.PTexture, copyAllocator CopyAllocator) bool { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", inPlacePrimaryTexture) - po2 := objc.WrapAsProtocol("MTLTexture", secondaryTexture) - rv := objc.Call[bool](b_, objc.Sel("encodeToCommandBuffer:inPlacePrimaryTexture:secondaryTexture:fallbackCopyAllocator:"), po0, po1, po2, copyAllocator) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618900-primarysourceregionfordestinatio?language=objc +func (b_ BinaryImageKernel) PrimarySourceRegionForDestinationSize(destinationSize metal.Size) Region { + rv := objc.Call[Region](b_, objc.Sel("primarySourceRegionForDestinationSize:"), destinationSize) return rv } -// This method attempts to apply a kernel in place on a texture. [Full Topic] +// The edge mode to use when texture reads stray off the edge of the secondary source image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618771-encodetocommandbuffer?language=objc -func (b_ BinaryImageKernel) EncodeToCommandBufferObjectInPlacePrimaryTextureObjectSecondaryTextureObjectFallbackCopyAllocator(commandBufferObject objc.IObject, inPlacePrimaryTextureObject objc.IObject, secondaryTextureObject objc.IObject, copyAllocator CopyAllocator) bool { - rv := objc.Call[bool](b_, objc.Sel("encodeToCommandBuffer:inPlacePrimaryTexture:secondaryTexture:fallbackCopyAllocator:"), commandBufferObject, inPlacePrimaryTextureObject, secondaryTextureObject, copyAllocator) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618848-secondaryedgemode?language=objc +func (b_ BinaryImageKernel) SecondaryEdgeMode() ImageEdgeMode { + rv := objc.Call[ImageEdgeMode](b_, objc.Sel("secondaryEdgeMode")) return rv } -// Determines the region of the primary source texture that will be read for an encode operation. [Full Topic] +// The edge mode to use when texture reads stray off the edge of the secondary source image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618900-primarysourceregionfordestinatio?language=objc -func (b_ BinaryImageKernel) PrimarySourceRegionForDestinationSize(destinationSize metal.Size) Region { - rv := objc.Call[Region](b_, objc.Sel("primarySourceRegionForDestinationSize:"), destinationSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618848-secondaryedgemode?language=objc +func (b_ BinaryImageKernel) SetSecondaryEdgeMode(value ImageEdgeMode) { + objc.Call[objc.Void](b_, objc.Sel("setSecondaryEdgeMode:"), value) } // The edge mode to use when texture reads stray off the edge of the primary source image. [Full Topic] @@ -206,36 +159,6 @@ func (b_ BinaryImageKernel) SetPrimaryEdgeMode(value ImageEdgeMode) { objc.Call[objc.Void](b_, objc.Sel("setPrimaryEdgeMode:"), value) } -// An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618879-cliprect?language=objc -func (b_ BinaryImageKernel) ClipRect() metal.Region { - rv := objc.Call[metal.Region](b_, objc.Sel("clipRect")) - return rv -} - -// An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618879-cliprect?language=objc -func (b_ BinaryImageKernel) SetClipRect(value metal.Region) { - objc.Call[objc.Void](b_, objc.Sel("setClipRect:"), value) -} - -// The edge mode to use when texture reads stray off the edge of the secondary source image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618848-secondaryedgemode?language=objc -func (b_ BinaryImageKernel) SecondaryEdgeMode() ImageEdgeMode { - rv := objc.Call[ImageEdgeMode](b_, objc.Sel("secondaryEdgeMode")) - return rv -} - -// The edge mode to use when texture reads stray off the edge of the secondary source image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618848-secondaryedgemode?language=objc -func (b_ BinaryImageKernel) SetSecondaryEdgeMode(value ImageEdgeMode) { - objc.Call[objc.Void](b_, objc.Sel("setSecondaryEdgeMode:"), value) -} - // The position of the destination clip rectangle origin relative to the primary source buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618880-primaryoffset?language=objc @@ -265,3 +188,18 @@ func (b_ BinaryImageKernel) SecondaryOffset() Offset { func (b_ BinaryImageKernel) SetSecondaryOffset(value Offset) { objc.Call[objc.Void](b_, objc.Sel("setSecondaryOffset:"), value) } + +// An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618879-cliprect?language=objc +func (b_ BinaryImageKernel) ClipRect() metal.Region { + rv := objc.Call[metal.Region](b_, objc.Sel("clipRect")) + return rv +} + +// An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618879-cliprect?language=objc +func (b_ BinaryImageKernel) SetClipRect(value metal.Region) { + objc.Call[objc.Void](b_, objc.Sel("setClipRect:"), value) +} diff --git a/macos/mps/cnn_arithmetic.gen.go b/macos/mps/cnn_arithmetic.gen.go index 3f15ae29..d38f9352 100644 --- a/macos/mps/cnn_arithmetic.gen.go +++ b/macos/mps/cnn_arithmetic.gen.go @@ -24,20 +24,20 @@ type ICNNArithmetic interface { EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImagesDestinationStatesDestinationImages(commandBufferObject objc.IObject, primaryImages *foundation.Array, secondaryImages *foundation.Array, destinationStates *foundation.Array, destinationImages *foundation.Array) EncodeToCommandBufferPrimaryImageSecondaryImageDestinationStateDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, destinationState ICNNArithmeticGradientState, destinationImage IImage) EncodeToCommandBufferObjectPrimaryImageSecondaryImageDestinationStateDestinationImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, destinationState ICNNArithmeticGradientState, destinationImage IImage) - PrimaryScale() float32 - SetPrimaryScale(value float32) - PrimaryStrideInFeatureChannels() uint - SetPrimaryStrideInFeatureChannels(value uint) SecondaryScale() float32 SetSecondaryScale(value float32) - MinimumValue() float32 - SetMinimumValue(value float32) MaximumValue() float32 SetMaximumValue(value float32) - SecondaryStrideInFeatureChannels() uint - SetSecondaryStrideInFeatureChannels(value uint) + PrimaryScale() float32 + SetPrimaryScale(value float32) + MinimumValue() float32 + SetMinimumValue(value float32) Bias() float32 SetBias(value float32) + SecondaryStrideInFeatureChannels() uint + SetSecondaryStrideInFeatureChannels(value uint) + PrimaryStrideInFeatureChannels() uint + SetPrimaryStrideInFeatureChannels(value uint) } // The base class for arithmetic operators. [Full Topic] @@ -135,47 +135,47 @@ func (c_ CNNArithmetic) EncodeToCommandBufferObjectPrimaryImageSecondaryImageDes // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942509-primaryscale?language=objc -func (c_ CNNArithmetic) PrimaryScale() float32 { - rv := objc.Call[float32](c_, objc.Sel("primaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942497-secondaryscale?language=objc +func (c_ CNNArithmetic) SecondaryScale() float32 { + rv := objc.Call[float32](c_, objc.Sel("secondaryScale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942509-primaryscale?language=objc -func (c_ CNNArithmetic) SetPrimaryScale(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setPrimaryScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942497-secondaryscale?language=objc +func (c_ CNNArithmetic) SetSecondaryScale(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setSecondaryScale:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2947963-primarystrideinfeaturechannels?language=objc -func (c_ CNNArithmetic) PrimaryStrideInFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("primaryStrideInFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942498-maximumvalue?language=objc +func (c_ CNNArithmetic) MaximumValue() float32 { + rv := objc.Call[float32](c_, objc.Sel("maximumValue")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2947963-primarystrideinfeaturechannels?language=objc -func (c_ CNNArithmetic) SetPrimaryStrideInFeatureChannels(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setPrimaryStrideInFeatureChannels:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942498-maximumvalue?language=objc +func (c_ CNNArithmetic) SetMaximumValue(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setMaximumValue:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942497-secondaryscale?language=objc -func (c_ CNNArithmetic) SecondaryScale() float32 { - rv := objc.Call[float32](c_, objc.Sel("secondaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942509-primaryscale?language=objc +func (c_ CNNArithmetic) PrimaryScale() float32 { + rv := objc.Call[float32](c_, objc.Sel("primaryScale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942497-secondaryscale?language=objc -func (c_ CNNArithmetic) SetSecondaryScale(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setSecondaryScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942509-primaryscale?language=objc +func (c_ CNNArithmetic) SetPrimaryScale(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setPrimaryScale:"), value) } // [Full Topic] @@ -195,17 +195,17 @@ func (c_ CNNArithmetic) SetMinimumValue(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942498-maximumvalue?language=objc -func (c_ CNNArithmetic) MaximumValue() float32 { - rv := objc.Call[float32](c_, objc.Sel("maximumValue")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942499-bias?language=objc +func (c_ CNNArithmetic) Bias() float32 { + rv := objc.Call[float32](c_, objc.Sel("bias")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942498-maximumvalue?language=objc -func (c_ CNNArithmetic) SetMaximumValue(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setMaximumValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942499-bias?language=objc +func (c_ CNNArithmetic) SetBias(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setBias:"), value) } // [Full Topic] @@ -225,15 +225,15 @@ func (c_ CNNArithmetic) SetSecondaryStrideInFeatureChannels(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942499-bias?language=objc -func (c_ CNNArithmetic) Bias() float32 { - rv := objc.Call[float32](c_, objc.Sel("bias")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2947963-primarystrideinfeaturechannels?language=objc +func (c_ CNNArithmetic) PrimaryStrideInFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("primaryStrideInFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942499-bias?language=objc -func (c_ CNNArithmetic) SetBias(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2947963-primarystrideinfeaturechannels?language=objc +func (c_ CNNArithmetic) SetPrimaryStrideInFeatureChannels(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPrimaryStrideInFeatureChannels:"), value) } diff --git a/macos/mps/cnn_arithmetic_gradient.gen.go b/macos/mps/cnn_arithmetic_gradient.gen.go index 9004621c..a2cf9b23 100644 --- a/macos/mps/cnn_arithmetic_gradient.gen.go +++ b/macos/mps/cnn_arithmetic_gradient.gen.go @@ -19,19 +19,19 @@ type _CNNArithmeticGradientClass struct { // An interface definition for the [CNNArithmeticGradient] class. type ICNNArithmeticGradient interface { ICNNGradientKernel - Bias() float32 - SetBias(value float32) - SecondaryStrideInFeatureChannels() uint - SetSecondaryStrideInFeatureChannels(value uint) - MinimumValue() float32 - SetMinimumValue(value float32) - IsSecondarySourceFilter() bool SecondaryScale() float32 SetSecondaryScale(value float32) + IsSecondarySourceFilter() bool MaximumValue() float32 SetMaximumValue(value float32) PrimaryScale() float32 SetPrimaryScale(value float32) + MinimumValue() float32 + SetMinimumValue(value float32) + Bias() float32 + SetBias(value float32) + SecondaryStrideInFeatureChannels() uint + SetSecondaryStrideInFeatureChannels(value uint) } // The base class for gradient arithmetic operators. [Full Topic] @@ -99,98 +99,98 @@ func CNNArithmeticGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal. // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951855-bias?language=objc -func (c_ CNNArithmeticGradient) Bias() float32 { - rv := objc.Call[float32](c_, objc.Sel("bias")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951856-secondaryscale?language=objc +func (c_ CNNArithmeticGradient) SecondaryScale() float32 { + rv := objc.Call[float32](c_, objc.Sel("secondaryScale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951855-bias?language=objc -func (c_ CNNArithmeticGradient) SetBias(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951856-secondaryscale?language=objc +func (c_ CNNArithmeticGradient) SetSecondaryScale(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setSecondaryScale:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951853-secondarystrideinfeaturechannels?language=objc -func (c_ CNNArithmeticGradient) SecondaryStrideInFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("secondaryStrideInFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951852-issecondarysourcefilter?language=objc +func (c_ CNNArithmeticGradient) IsSecondarySourceFilter() bool { + rv := objc.Call[bool](c_, objc.Sel("isSecondarySourceFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951853-secondarystrideinfeaturechannels?language=objc -func (c_ CNNArithmeticGradient) SetSecondaryStrideInFeatureChannels(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setSecondaryStrideInFeatureChannels:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951854-maximumvalue?language=objc +func (c_ CNNArithmeticGradient) MaximumValue() float32 { + rv := objc.Call[float32](c_, objc.Sel("maximumValue")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951858-minimumvalue?language=objc -func (c_ CNNArithmeticGradient) MinimumValue() float32 { - rv := objc.Call[float32](c_, objc.Sel("minimumValue")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951854-maximumvalue?language=objc +func (c_ CNNArithmeticGradient) SetMaximumValue(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setMaximumValue:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951858-minimumvalue?language=objc -func (c_ CNNArithmeticGradient) SetMinimumValue(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setMinimumValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951861-primaryscale?language=objc +func (c_ CNNArithmeticGradient) PrimaryScale() float32 { + rv := objc.Call[float32](c_, objc.Sel("primaryScale")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951852-issecondarysourcefilter?language=objc -func (c_ CNNArithmeticGradient) IsSecondarySourceFilter() bool { - rv := objc.Call[bool](c_, objc.Sel("isSecondarySourceFilter")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951861-primaryscale?language=objc +func (c_ CNNArithmeticGradient) SetPrimaryScale(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setPrimaryScale:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951856-secondaryscale?language=objc -func (c_ CNNArithmeticGradient) SecondaryScale() float32 { - rv := objc.Call[float32](c_, objc.Sel("secondaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951858-minimumvalue?language=objc +func (c_ CNNArithmeticGradient) MinimumValue() float32 { + rv := objc.Call[float32](c_, objc.Sel("minimumValue")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951856-secondaryscale?language=objc -func (c_ CNNArithmeticGradient) SetSecondaryScale(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setSecondaryScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951858-minimumvalue?language=objc +func (c_ CNNArithmeticGradient) SetMinimumValue(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setMinimumValue:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951854-maximumvalue?language=objc -func (c_ CNNArithmeticGradient) MaximumValue() float32 { - rv := objc.Call[float32](c_, objc.Sel("maximumValue")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951855-bias?language=objc +func (c_ CNNArithmeticGradient) Bias() float32 { + rv := objc.Call[float32](c_, objc.Sel("bias")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951854-maximumvalue?language=objc -func (c_ CNNArithmeticGradient) SetMaximumValue(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setMaximumValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951855-bias?language=objc +func (c_ CNNArithmeticGradient) SetBias(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setBias:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951861-primaryscale?language=objc -func (c_ CNNArithmeticGradient) PrimaryScale() float32 { - rv := objc.Call[float32](c_, objc.Sel("primaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951853-secondarystrideinfeaturechannels?language=objc +func (c_ CNNArithmeticGradient) SecondaryStrideInFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("secondaryStrideInFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951861-primaryscale?language=objc -func (c_ CNNArithmeticGradient) SetPrimaryScale(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setPrimaryScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951853-secondarystrideinfeaturechannels?language=objc +func (c_ CNNArithmeticGradient) SetSecondaryStrideInFeatureChannels(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setSecondaryStrideInFeatureChannels:"), value) } diff --git a/macos/mps/cnn_arithmetic_gradient_state.gen.go b/macos/mps/cnn_arithmetic_gradient_state.gen.go index 045208af..106ad23e 100644 --- a/macos/mps/cnn_arithmetic_gradient_state.gen.go +++ b/macos/mps/cnn_arithmetic_gradient_state.gen.go @@ -54,45 +54,16 @@ func (c_ CNNArithmeticGradientState) Init() CNNArithmeticGradientState { return rv } -func (cc _CNNArithmeticGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNArithmeticGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNArithmeticGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNArithmeticGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNArithmeticGradientState { - return CNNArithmeticGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNArithmeticGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNArithmeticGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNArithmeticGradientState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNArithmeticGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNArithmeticGradientState { - instance := CNNArithmeticGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNArithmeticGradientState) InitWithResource(resource metal.PResource) CNNArithmeticGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNArithmeticGradientState](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNArithmeticGradientState) InitWithResources(resources []metal.PResource) CNNArithmeticGradientState { + rv := objc.Call[CNNArithmeticGradientState](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNArithmeticGradientStateWithResource(resource metal.PResource) CNNArithmeticGradientState { - instance := CNNArithmeticGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNArithmeticGradientStateWithResources(resources []metal.PResource) CNNArithmeticGradientState { + instance := CNNArithmeticGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -112,70 +83,30 @@ func NewCNNArithmeticGradientStateWithDeviceBufferSize(device metal.PDevice, buf return instance } -func (c_ CNNArithmeticGradientState) InitWithResources(resources []metal.PResource) CNNArithmeticGradientState { - rv := objc.Call[CNNArithmeticGradientState](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNArithmeticGradientState) InitWithResource(resource metal.PResource) CNNArithmeticGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNArithmeticGradientState](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNArithmeticGradientStateWithResources(resources []metal.PResource) CNNArithmeticGradientState { - instance := CNNArithmeticGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNArithmeticGradientStateWithResource(resource metal.PResource) CNNArithmeticGradientState { + instance := CNNArithmeticGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNArithmeticGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNArithmeticGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNArithmeticGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNArithmeticGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNArithmeticGradientState { - return CNNArithmeticGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNArithmeticGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNArithmeticGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNArithmeticGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNArithmeticGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNArithmeticGradientState { - return CNNArithmeticGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNArithmeticGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNArithmeticGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNArithmeticGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNArithmeticGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNArithmeticGradientState { - return CNNArithmeticGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNArithmeticGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNArithmeticGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNArithmeticGradientState](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (cc _CNNArithmeticGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNArithmeticGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNArithmeticGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNArithmeticGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNArithmeticGradientState { - instance := CNNArithmeticGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNArithmeticGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNArithmeticGradientState { + return CNNArithmeticGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } diff --git a/macos/mps/cnn_batch_normalization.gen.go b/macos/mps/cnn_batch_normalization.gen.go index fdf5c9a0..5ebe521c 100644 --- a/macos/mps/cnn_batch_normalization.gen.go +++ b/macos/mps/cnn_batch_normalization.gen.go @@ -20,20 +20,20 @@ type _CNNBatchNormalizationClass struct { // An interface definition for the [CNNBatchNormalization] class. type ICNNBatchNormalization interface { ICNNKernel + ReloadMeanAndVarianceFromDataSource() ReloadGammaAndBetaFromDataSource() EncodeBatchToCommandBufferSourceImagesBatchNormalizationStateDestinationImages(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, batchNormalizationState ICNNBatchNormalizationState, destinationImages *foundation.Array) EncodeBatchToCommandBufferObjectSourceImagesBatchNormalizationStateDestinationImages(commandBufferObject objc.IObject, sourceImages *foundation.Array, batchNormalizationState ICNNBatchNormalizationState, destinationImages *foundation.Array) - ReloadMeanAndVarianceFromDataSource() ReloadGammaAndBetaWithCommandBufferGammaAndBetaState(commandBuffer metal.PCommandBuffer, gammaAndBetaState ICNNNormalizationGammaAndBetaState) ReloadGammaAndBetaWithCommandBufferObjectGammaAndBetaState(commandBufferObject objc.IObject, gammaAndBetaState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferSourceImageBatchNormalizationStateDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationImage IImage) - EncodeToCommandBufferObjectSourceImageBatchNormalizationStateDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationImage IImage) ReloadMeanAndVarianceWithCommandBufferMeanAndVarianceState(commandBuffer metal.PCommandBuffer, meanAndVarianceState ICNNNormalizationMeanAndVarianceState) ReloadMeanAndVarianceWithCommandBufferObjectMeanAndVarianceState(commandBufferObject objc.IObject, meanAndVarianceState ICNNNormalizationMeanAndVarianceState) - NumberOfFeatureChannels() uint + EncodeToCommandBufferSourceImageBatchNormalizationStateDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationImage IImage) + EncodeToCommandBufferObjectSourceImageBatchNormalizationStateDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationImage IImage) + DataSource() CNNBatchNormalizationDataSourceObject Epsilon() float32 SetEpsilon(value float32) - DataSource() CNNBatchNormalizationDataSourceObject + NumberOfFeatureChannels() uint } // A batch normalization kernel. [Full Topic] @@ -65,22 +65,6 @@ func NewCNNBatchNormalizationWithDeviceDataSource(device metal.PDevice, dataSour return instance } -func (c_ CNNBatchNormalization) InitWithDeviceDataSourceFusedNeuronDescriptor(device metal.PDevice, dataSource PCNNBatchNormalizationDataSource, fusedNeuronDescriptor INNNeuronDescriptor) CNNBatchNormalization { - po0 := objc.WrapAsProtocol("MTLDevice", device) - po1 := objc.WrapAsProtocol("MPSCNNBatchNormalizationDataSource", dataSource) - rv := objc.Call[CNNBatchNormalization](c_, objc.Sel("initWithDevice:dataSource:fusedNeuronDescriptor:"), po0, po1, fusedNeuronDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/3013771-initwithdevice?language=objc -func NewCNNBatchNormalizationWithDeviceDataSourceFusedNeuronDescriptor(device metal.PDevice, dataSource PCNNBatchNormalizationDataSource, fusedNeuronDescriptor INNNeuronDescriptor) CNNBatchNormalization { - instance := CNNBatchNormalizationClass.Alloc().InitWithDeviceDataSourceFusedNeuronDescriptor(device, dataSource, fusedNeuronDescriptor) - instance.Autorelease() - return instance -} - func (cc _CNNBatchNormalizationClass) Alloc() CNNBatchNormalization { rv := objc.Call[CNNBatchNormalization](cc, objc.Sel("alloc")) return rv @@ -131,6 +115,13 @@ func CNNBatchNormalization_CopyWithZoneDevice(zone unsafe.Pointer, device metal. return instance } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/3002358-reloadmeanandvariancefromdatasou?language=objc +func (c_ CNNBatchNormalization) ReloadMeanAndVarianceFromDataSource() { + objc.Call[objc.Void](c_, objc.Sel("reloadMeanAndVarianceFromDataSource")) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2976464-reloadgammaandbetafromdatasource?language=objc @@ -153,13 +144,6 @@ func (c_ CNNBatchNormalization) EncodeBatchToCommandBufferObjectSourceImagesBatc objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:batchNormalizationState:destinationImages:"), commandBufferObject, sourceImages, batchNormalizationState, destinationImages) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/3002358-reloadmeanandvariancefromdatasou?language=objc -func (c_ CNNBatchNormalization) ReloadMeanAndVarianceFromDataSource() { - objc.Call[objc.Void](c_, objc.Sel("reloadMeanAndVarianceFromDataSource")) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2953965-reloadgammaandbetawithcommandbuf?language=objc @@ -177,39 +161,39 @@ func (c_ CNNBatchNormalization) ReloadGammaAndBetaWithCommandBufferObjectGammaAn // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2942591-encodetocommandbuffer?language=objc -func (c_ CNNBatchNormalization) EncodeToCommandBufferSourceImageBatchNormalizationStateDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationImage IImage) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/3002359-reloadmeanandvariancewithcommand?language=objc +func (c_ CNNBatchNormalization) ReloadMeanAndVarianceWithCommandBufferMeanAndVarianceState(commandBuffer metal.PCommandBuffer, meanAndVarianceState ICNNNormalizationMeanAndVarianceState) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:batchNormalizationState:destinationImage:"), po0, sourceImage, batchNormalizationState, destinationImage) + objc.Call[objc.Void](c_, objc.Sel("reloadMeanAndVarianceWithCommandBuffer:meanAndVarianceState:"), po0, meanAndVarianceState) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2942591-encodetocommandbuffer?language=objc -func (c_ CNNBatchNormalization) EncodeToCommandBufferObjectSourceImageBatchNormalizationStateDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationImage IImage) { - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:batchNormalizationState:destinationImage:"), commandBufferObject, sourceImage, batchNormalizationState, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/3002359-reloadmeanandvariancewithcommand?language=objc +func (c_ CNNBatchNormalization) ReloadMeanAndVarianceWithCommandBufferObjectMeanAndVarianceState(commandBufferObject objc.IObject, meanAndVarianceState ICNNNormalizationMeanAndVarianceState) { + objc.Call[objc.Void](c_, objc.Sel("reloadMeanAndVarianceWithCommandBuffer:meanAndVarianceState:"), commandBufferObject, meanAndVarianceState) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/3002359-reloadmeanandvariancewithcommand?language=objc -func (c_ CNNBatchNormalization) ReloadMeanAndVarianceWithCommandBufferMeanAndVarianceState(commandBuffer metal.PCommandBuffer, meanAndVarianceState ICNNNormalizationMeanAndVarianceState) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2942591-encodetocommandbuffer?language=objc +func (c_ CNNBatchNormalization) EncodeToCommandBufferSourceImageBatchNormalizationStateDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationImage IImage) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("reloadMeanAndVarianceWithCommandBuffer:meanAndVarianceState:"), po0, meanAndVarianceState) + objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:batchNormalizationState:destinationImage:"), po0, sourceImage, batchNormalizationState, destinationImage) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/3002359-reloadmeanandvariancewithcommand?language=objc -func (c_ CNNBatchNormalization) ReloadMeanAndVarianceWithCommandBufferObjectMeanAndVarianceState(commandBufferObject objc.IObject, meanAndVarianceState ICNNNormalizationMeanAndVarianceState) { - objc.Call[objc.Void](c_, objc.Sel("reloadMeanAndVarianceWithCommandBuffer:meanAndVarianceState:"), commandBufferObject, meanAndVarianceState) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2942591-encodetocommandbuffer?language=objc +func (c_ CNNBatchNormalization) EncodeToCommandBufferObjectSourceImageBatchNormalizationStateDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationImage IImage) { + objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:batchNormalizationState:destinationImage:"), commandBufferObject, sourceImage, batchNormalizationState, destinationImage) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2942604-numberoffeaturechannels?language=objc -func (c_ CNNBatchNormalization) NumberOfFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2953967-datasource?language=objc +func (c_ CNNBatchNormalization) DataSource() CNNBatchNormalizationDataSourceObject { + rv := objc.Call[CNNBatchNormalizationDataSourceObject](c_, objc.Sel("dataSource")) return rv } @@ -230,8 +214,8 @@ func (c_ CNNBatchNormalization) SetEpsilon(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2953967-datasource?language=objc -func (c_ CNNBatchNormalization) DataSource() CNNBatchNormalizationDataSourceObject { - rv := objc.Call[CNNBatchNormalizationDataSourceObject](c_, objc.Sel("dataSource")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2942604-numberoffeaturechannels?language=objc +func (c_ CNNBatchNormalization) NumberOfFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("numberOfFeatureChannels")) return rv } diff --git a/macos/mps/cnn_batch_normalization_data_source_protocol.gen.go b/macos/mps/cnn_batch_normalization_data_source_protocol.gen.go index c8deadf9..ea614c1a 100644 --- a/macos/mps/cnn_batch_normalization_data_source_protocol.gen.go +++ b/macos/mps/cnn_batch_normalization_data_source_protocol.gen.go @@ -15,36 +15,36 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource?language=objc type PCNNBatchNormalizationDataSource interface { // optional - EncodeWithCoder(aCoder foundation.Coder) - HasEncodeWithCoder() bool + UpdateGammaAndBetaWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferObject, batchNormalizationState CNNBatchNormalizationState) CNNNormalizationGammaAndBetaState + HasUpdateGammaAndBetaWithCommandBufferBatchNormalizationState() bool // optional - Gamma() *float32 - HasGamma() bool + Beta() *float32 + HasBeta() bool // optional - CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object - HasCopyWithZoneDevice() bool + Epsilon() float32 + HasEpsilon() bool // optional - Purge() - HasPurge() bool + EncodeWithCoder(aCoder foundation.Coder) + HasEncodeWithCoder() bool // optional UpdateGammaAndBetaWithBatchNormalizationState(batchNormalizationState CNNBatchNormalizationState) bool HasUpdateGammaAndBetaWithBatchNormalizationState() bool // optional - UpdateMeanAndVarianceWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferObject, batchNormalizationState CNNBatchNormalizationState) CNNNormalizationMeanAndVarianceState - HasUpdateMeanAndVarianceWithCommandBufferBatchNormalizationState() bool + InitWithCoder(aDecoder foundation.Coder) objc.Object + HasInitWithCoder() bool // optional - Label() string - HasLabel() bool + Gamma() *float32 + HasGamma() bool // optional - NumberOfFeatureChannels() uint - HasNumberOfFeatureChannels() bool + Purge() + HasPurge() bool // optional UpdateMeanAndVarianceWithBatchNormalizationState(batchNormalizationState CNNBatchNormalizationState) bool @@ -55,28 +55,28 @@ type PCNNBatchNormalizationDataSource interface { HasVariance() bool // optional - UpdateGammaAndBetaWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferObject, batchNormalizationState CNNBatchNormalizationState) CNNNormalizationGammaAndBetaState - HasUpdateGammaAndBetaWithCommandBufferBatchNormalizationState() bool + CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object + HasCopyWithZoneDevice() bool // optional Load() bool HasLoad() bool // optional - Epsilon() float32 - HasEpsilon() bool + Label() string + HasLabel() bool // optional - Mean() *float32 - HasMean() bool + UpdateMeanAndVarianceWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferObject, batchNormalizationState CNNBatchNormalizationState) CNNNormalizationMeanAndVarianceState + HasUpdateMeanAndVarianceWithCommandBufferBatchNormalizationState() bool // optional - InitWithCoder(aDecoder foundation.Coder) objc.Object - HasInitWithCoder() bool + Mean() *float32 + HasMean() bool // optional - Beta() *float32 - HasBeta() bool + NumberOfFeatureChannels() uint + HasNumberOfFeatureChannels() bool } // ensure impl type implements protocol interface @@ -87,51 +87,52 @@ type CNNBatchNormalizationDataSourceObject struct { objc.Object } -func (c_ CNNBatchNormalizationDataSourceObject) HasEncodeWithCoder() bool { - return c_.RespondsToSelector(objc.Sel("encodeWithCoder:")) +func (c_ CNNBatchNormalizationDataSourceObject) HasUpdateGammaAndBetaWithCommandBufferBatchNormalizationState() bool { + return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithCommandBuffer:batchNormalizationState:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2951882-encodewithcoder?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) EncodeWithCoder(aCoder foundation.Coder) { - objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), aCoder) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2951891-updategammaandbetawithcommandbuf?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) UpdateGammaAndBetaWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferObject, batchNormalizationState CNNBatchNormalizationState) CNNNormalizationGammaAndBetaState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("updateGammaAndBetaWithCommandBuffer:batchNormalizationState:"), po0, batchNormalizationState) + return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasGamma() bool { - return c_.RespondsToSelector(objc.Sel("gamma")) +func (c_ CNNBatchNormalizationDataSourceObject) HasBeta() bool { + return c_.RespondsToSelector(objc.Sel("beta")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942605-gamma?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) Gamma() *float32 { - rv := objc.Call[*float32](c_, objc.Sel("gamma")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942586-beta?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) Beta() *float32 { + rv := objc.Call[*float32](c_, objc.Sel("beta")) return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasCopyWithZoneDevice() bool { - return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) +func (c_ CNNBatchNormalizationDataSourceObject) HasEpsilon() bool { + return c_.RespondsToSelector(objc.Sel("epsilon")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/3013773-copywithzone?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[objc.Object](c_, objc.Sel("copyWithZone:device:"), zone, po1) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2947917-epsilon?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) Epsilon() float32 { + rv := objc.Call[float32](c_, objc.Sel("epsilon")) return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasPurge() bool { - return c_.RespondsToSelector(objc.Sel("purge")) +func (c_ CNNBatchNormalizationDataSourceObject) HasEncodeWithCoder() bool { + return c_.RespondsToSelector(objc.Sel("encodeWithCoder:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942607-purge?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) Purge() { - objc.Call[objc.Void](c_, objc.Sel("purge")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2951882-encodewithcoder?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) EncodeWithCoder(aCoder foundation.Coder) { + objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), aCoder) } func (c_ CNNBatchNormalizationDataSourceObject) HasUpdateGammaAndBetaWithBatchNormalizationState() bool { @@ -146,41 +147,39 @@ func (c_ CNNBatchNormalizationDataSourceObject) UpdateGammaAndBetaWithBatchNorma return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasUpdateMeanAndVarianceWithCommandBufferBatchNormalizationState() bool { - return c_.RespondsToSelector(objc.Sel("updateMeanAndVarianceWithCommandBuffer:batchNormalizationState:")) +func (c_ CNNBatchNormalizationDataSourceObject) HasInitWithCoder() bool { + return c_.RespondsToSelector(objc.Sel("initWithCoder:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/3002361-updatemeanandvariancewithcommand?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) UpdateMeanAndVarianceWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferObject, batchNormalizationState CNNBatchNormalizationState) CNNNormalizationMeanAndVarianceState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNNormalizationMeanAndVarianceState](c_, objc.Sel("updateMeanAndVarianceWithCommandBuffer:batchNormalizationState:"), po0, batchNormalizationState) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2951886-initwithcoder?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) InitWithCoder(aDecoder foundation.Coder) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("initWithCoder:"), aDecoder) return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ CNNBatchNormalizationDataSourceObject) HasGamma() bool { + return c_.RespondsToSelector(objc.Sel("gamma")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2953128-label?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942605-gamma?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) Gamma() *float32 { + rv := objc.Call[*float32](c_, objc.Sel("gamma")) return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasNumberOfFeatureChannels() bool { - return c_.RespondsToSelector(objc.Sel("numberOfFeatureChannels")) +func (c_ CNNBatchNormalizationDataSourceObject) HasPurge() bool { + return c_.RespondsToSelector(objc.Sel("purge")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942596-numberoffeaturechannels?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) NumberOfFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfFeatureChannels")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942607-purge?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) Purge() { + objc.Call[objc.Void](c_, objc.Sel("purge")) } func (c_ CNNBatchNormalizationDataSourceObject) HasUpdateMeanAndVarianceWithBatchNormalizationState() bool { @@ -207,16 +206,16 @@ func (c_ CNNBatchNormalizationDataSourceObject) Variance() *float32 { return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasUpdateGammaAndBetaWithCommandBufferBatchNormalizationState() bool { - return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithCommandBuffer:batchNormalizationState:")) +func (c_ CNNBatchNormalizationDataSourceObject) HasCopyWithZoneDevice() bool { + return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2951891-updategammaandbetawithcommandbuf?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) UpdateGammaAndBetaWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferObject, batchNormalizationState CNNBatchNormalizationState) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("updateGammaAndBetaWithCommandBuffer:batchNormalizationState:"), po0, batchNormalizationState) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/3013773-copywithzone?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[objc.Object](c_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } @@ -232,50 +231,51 @@ func (c_ CNNBatchNormalizationDataSourceObject) Load() bool { return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasEpsilon() bool { - return c_.RespondsToSelector(objc.Sel("epsilon")) +func (c_ CNNBatchNormalizationDataSourceObject) HasLabel() bool { + return c_.RespondsToSelector(objc.Sel("label")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2947917-epsilon?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) Epsilon() float32 { - rv := objc.Call[float32](c_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2953128-label?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) Label() string { + rv := objc.Call[string](c_, objc.Sel("label")) return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasMean() bool { - return c_.RespondsToSelector(objc.Sel("mean")) +func (c_ CNNBatchNormalizationDataSourceObject) HasUpdateMeanAndVarianceWithCommandBufferBatchNormalizationState() bool { + return c_.RespondsToSelector(objc.Sel("updateMeanAndVarianceWithCommandBuffer:batchNormalizationState:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942589-mean?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) Mean() *float32 { - rv := objc.Call[*float32](c_, objc.Sel("mean")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/3002361-updatemeanandvariancewithcommand?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) UpdateMeanAndVarianceWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferObject, batchNormalizationState CNNBatchNormalizationState) CNNNormalizationMeanAndVarianceState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNNormalizationMeanAndVarianceState](c_, objc.Sel("updateMeanAndVarianceWithCommandBuffer:batchNormalizationState:"), po0, batchNormalizationState) return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasInitWithCoder() bool { - return c_.RespondsToSelector(objc.Sel("initWithCoder:")) +func (c_ CNNBatchNormalizationDataSourceObject) HasMean() bool { + return c_.RespondsToSelector(objc.Sel("mean")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2951886-initwithcoder?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) InitWithCoder(aDecoder foundation.Coder) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("initWithCoder:"), aDecoder) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942589-mean?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) Mean() *float32 { + rv := objc.Call[*float32](c_, objc.Sel("mean")) return rv } -func (c_ CNNBatchNormalizationDataSourceObject) HasBeta() bool { - return c_.RespondsToSelector(objc.Sel("beta")) +func (c_ CNNBatchNormalizationDataSourceObject) HasNumberOfFeatureChannels() bool { + return c_.RespondsToSelector(objc.Sel("numberOfFeatureChannels")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942586-beta?language=objc -func (c_ CNNBatchNormalizationDataSourceObject) Beta() *float32 { - rv := objc.Call[*float32](c_, objc.Sel("beta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942596-numberoffeaturechannels?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) NumberOfFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("numberOfFeatureChannels")) return rv } diff --git a/macos/mps/cnn_batch_normalization_gradient.gen.go b/macos/mps/cnn_batch_normalization_gradient.gen.go index fde6a7a8..9907c35b 100644 --- a/macos/mps/cnn_batch_normalization_gradient.gen.go +++ b/macos/mps/cnn_batch_normalization_gradient.gen.go @@ -22,10 +22,6 @@ type ICNNBatchNormalizationGradient interface { ICNNGradientKernel EncodeBatchToCommandBufferSourceGradientsSourceImagesBatchNormalizationState(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, batchNormalizationState ICNNBatchNormalizationState) *foundation.Array EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesBatchNormalizationState(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, batchNormalizationState ICNNBatchNormalizationState) *foundation.Array - EncodeToCommandBufferSourceGradientSourceImageBatchNormalizationStateDestinationGradient(commandBuffer metal.PCommandBuffer, sourceGradient IImage, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationGradient IImage) - EncodeToCommandBufferObjectSourceGradientSourceImageBatchNormalizationStateDestinationGradient(commandBufferObject objc.IObject, sourceGradient IImage, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationGradient IImage) - EncodeBatchToCommandBufferSourceGradientsSourceImagesBatchNormalizationStateDestinationGradients(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, batchNormalizationState ICNNBatchNormalizationState, destinationGradients *foundation.Array) - EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesBatchNormalizationStateDestinationGradients(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, batchNormalizationState ICNNBatchNormalizationState, destinationGradients *foundation.Array) EncodeToCommandBufferSourceGradientSourceImageBatchNormalizationState(commandBuffer metal.PCommandBuffer, sourceGradient IImage, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState) Image EncodeToCommandBufferObjectSourceGradientSourceImageBatchNormalizationState(commandBufferObject objc.IObject, sourceGradient IImage, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState) Image } @@ -125,36 +121,6 @@ func (c_ CNNBatchNormalizationGradient) EncodeBatchToCommandBufferObjectSourceGr return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationgradient/2951895-encodetocommandbuffer?language=objc -func (c_ CNNBatchNormalizationGradient) EncodeToCommandBufferSourceGradientSourceImageBatchNormalizationStateDestinationGradient(commandBuffer metal.PCommandBuffer, sourceGradient IImage, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationGradient IImage) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceGradient:sourceImage:batchNormalizationState:destinationGradient:"), po0, sourceGradient, sourceImage, batchNormalizationState, destinationGradient) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationgradient/2951895-encodetocommandbuffer?language=objc -func (c_ CNNBatchNormalizationGradient) EncodeToCommandBufferObjectSourceGradientSourceImageBatchNormalizationStateDestinationGradient(commandBufferObject objc.IObject, sourceGradient IImage, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationGradient IImage) { - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceGradient:sourceImage:batchNormalizationState:destinationGradient:"), commandBufferObject, sourceGradient, sourceImage, batchNormalizationState, destinationGradient) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationgradient/2942608-encodebatchtocommandbuffer?language=objc -func (c_ CNNBatchNormalizationGradient) EncodeBatchToCommandBufferSourceGradientsSourceImagesBatchNormalizationStateDestinationGradients(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, batchNormalizationState ICNNBatchNormalizationState, destinationGradients *foundation.Array) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceGradients:sourceImages:batchNormalizationState:destinationGradients:"), po0, sourceGradients, sourceImages, batchNormalizationState, destinationGradients) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationgradient/2942608-encodebatchtocommandbuffer?language=objc -func (c_ CNNBatchNormalizationGradient) EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesBatchNormalizationStateDestinationGradients(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, batchNormalizationState ICNNBatchNormalizationState, destinationGradients *foundation.Array) { - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceGradients:sourceImages:batchNormalizationState:destinationGradients:"), commandBufferObject, sourceGradients, sourceImages, batchNormalizationState, destinationGradients) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationgradient/2951885-encodetocommandbuffer?language=objc diff --git a/macos/mps/cnn_batch_normalization_node.gen.go b/macos/mps/cnn_batch_normalization_node.gen.go index b2602027..50d55105 100644 --- a/macos/mps/cnn_batch_normalization_node.gen.go +++ b/macos/mps/cnn_batch_normalization_node.gen.go @@ -37,32 +37,32 @@ func CNNBatchNormalizationNodeFrom(ptr unsafe.Pointer) CNNBatchNormalizationNode } } -func (c_ CNNBatchNormalizationNode) InitWithSourceDataSource(source INNImageNode, dataSource PCNNBatchNormalizationDataSource) CNNBatchNormalizationNode { +func (cc _CNNBatchNormalizationNodeClass) NodeWithSourceDataSource(source INNImageNode, dataSource PCNNBatchNormalizationDataSource) CNNBatchNormalizationNode { po1 := objc.WrapAsProtocol("MPSCNNBatchNormalizationDataSource", dataSource) - rv := objc.Call[CNNBatchNormalizationNode](c_, objc.Sel("initWithSource:dataSource:"), source, po1) + rv := objc.Call[CNNBatchNormalizationNode](cc, objc.Sel("nodeWithSource:dataSource:"), source, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationnode/2948004-initwithsource?language=objc -func NewCNNBatchNormalizationNodeWithSourceDataSource(source INNImageNode, dataSource PCNNBatchNormalizationDataSource) CNNBatchNormalizationNode { - instance := CNNBatchNormalizationNodeClass.Alloc().InitWithSourceDataSource(source, dataSource) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationnode/2948033-nodewithsource?language=objc +func CNNBatchNormalizationNode_NodeWithSourceDataSource(source INNImageNode, dataSource PCNNBatchNormalizationDataSource) CNNBatchNormalizationNode { + return CNNBatchNormalizationNodeClass.NodeWithSourceDataSource(source, dataSource) } -func (cc _CNNBatchNormalizationNodeClass) NodeWithSourceDataSource(source INNImageNode, dataSource PCNNBatchNormalizationDataSource) CNNBatchNormalizationNode { +func (c_ CNNBatchNormalizationNode) InitWithSourceDataSource(source INNImageNode, dataSource PCNNBatchNormalizationDataSource) CNNBatchNormalizationNode { po1 := objc.WrapAsProtocol("MPSCNNBatchNormalizationDataSource", dataSource) - rv := objc.Call[CNNBatchNormalizationNode](cc, objc.Sel("nodeWithSource:dataSource:"), source, po1) + rv := objc.Call[CNNBatchNormalizationNode](c_, objc.Sel("initWithSource:dataSource:"), source, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationnode/2948033-nodewithsource?language=objc -func CNNBatchNormalizationNode_NodeWithSourceDataSource(source INNImageNode, dataSource PCNNBatchNormalizationDataSource) CNNBatchNormalizationNode { - return CNNBatchNormalizationNodeClass.NodeWithSourceDataSource(source, dataSource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationnode/2948004-initwithsource?language=objc +func NewCNNBatchNormalizationNodeWithSourceDataSource(source INNImageNode, dataSource PCNNBatchNormalizationDataSource) CNNBatchNormalizationNode { + instance := CNNBatchNormalizationNodeClass.Alloc().InitWithSourceDataSource(source, dataSource) + instance.Autorelease() + return instance } func (cc _CNNBatchNormalizationNodeClass) Alloc() CNNBatchNormalizationNode { diff --git a/macos/mps/cnn_batch_normalization_state.gen.go b/macos/mps/cnn_batch_normalization_state.gen.go index 859c823c..7984d492 100644 --- a/macos/mps/cnn_batch_normalization_state.gen.go +++ b/macos/mps/cnn_batch_normalization_state.gen.go @@ -19,13 +19,13 @@ type _CNNBatchNormalizationStateClass struct { // An interface definition for the [CNNBatchNormalizationState] class. type ICNNBatchNormalizationState interface { INNGradientState - Mean() metal.BufferObject GradientForGamma() metal.BufferObject - Reset() Beta() metal.BufferObject - GradientForBeta() metal.BufferObject Gamma() metal.BufferObject + GradientForBeta() metal.BufferObject Variance() metal.BufferObject + Reset() + Mean() metal.BufferObject BatchNormalization() CNNBatchNormalization } @@ -62,45 +62,16 @@ func (c_ CNNBatchNormalizationState) Init() CNNBatchNormalizationState { return rv } -func (cc _CNNBatchNormalizationStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNBatchNormalizationState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNBatchNormalizationState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNBatchNormalizationState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNBatchNormalizationState { - return CNNBatchNormalizationStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNBatchNormalizationState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNBatchNormalizationState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNBatchNormalizationState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNBatchNormalizationStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNBatchNormalizationState { - instance := CNNBatchNormalizationStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNBatchNormalizationState) InitWithResource(resource metal.PResource) CNNBatchNormalizationState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNBatchNormalizationState](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNBatchNormalizationState) InitWithResources(resources []metal.PResource) CNNBatchNormalizationState { + rv := objc.Call[CNNBatchNormalizationState](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNBatchNormalizationStateWithResource(resource metal.PResource) CNNBatchNormalizationState { - instance := CNNBatchNormalizationStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNBatchNormalizationStateWithResources(resources []metal.PResource) CNNBatchNormalizationState { + instance := CNNBatchNormalizationStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -120,87 +91,71 @@ func NewCNNBatchNormalizationStateWithDeviceBufferSize(device metal.PDevice, buf return instance } -func (c_ CNNBatchNormalizationState) InitWithResources(resources []metal.PResource) CNNBatchNormalizationState { - rv := objc.Call[CNNBatchNormalizationState](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNBatchNormalizationState) InitWithResource(resource metal.PResource) CNNBatchNormalizationState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNBatchNormalizationState](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNBatchNormalizationStateWithResources(resources []metal.PResource) CNNBatchNormalizationState { - instance := CNNBatchNormalizationStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNBatchNormalizationStateWithResource(resource metal.PResource) CNNBatchNormalizationState { + instance := CNNBatchNormalizationStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNBatchNormalizationStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNBatchNormalizationState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNBatchNormalizationState](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) +func (cc _CNNBatchNormalizationStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNBatchNormalizationState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNBatchNormalizationState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNBatchNormalizationState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNBatchNormalizationState { - return CNNBatchNormalizationStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNBatchNormalizationStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNBatchNormalizationState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNBatchNormalizationState](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNBatchNormalizationState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNBatchNormalizationState { + return CNNBatchNormalizationStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNBatchNormalizationState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNBatchNormalizationState { - return CNNBatchNormalizationStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNBatchNormalizationStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNBatchNormalizationState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNBatchNormalizationState](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951893-gradientforgamma?language=objc +func (c_ CNNBatchNormalizationState) GradientForGamma() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForGamma")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNBatchNormalizationState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNBatchNormalizationState { - return CNNBatchNormalizationStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNBatchNormalizationState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNBatchNormalizationState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNBatchNormalizationState](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951888-beta?language=objc +func (c_ CNNBatchNormalizationState) Beta() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("beta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNBatchNormalizationStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNBatchNormalizationState { - instance := CNNBatchNormalizationStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951892-gamma?language=objc +func (c_ CNNBatchNormalizationState) Gamma() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gamma")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2942612-mean?language=objc -func (c_ CNNBatchNormalizationState) Mean() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("mean")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951890-gradientforbeta?language=objc +func (c_ CNNBatchNormalizationState) GradientForBeta() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForBeta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951893-gradientforgamma?language=objc -func (c_ CNNBatchNormalizationState) GradientForGamma() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForGamma")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2942603-variance?language=objc +func (c_ CNNBatchNormalizationState) Variance() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("variance")) return rv } @@ -213,33 +168,9 @@ func (c_ CNNBatchNormalizationState) Reset() { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951888-beta?language=objc -func (c_ CNNBatchNormalizationState) Beta() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("beta")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951890-gradientforbeta?language=objc -func (c_ CNNBatchNormalizationState) GradientForBeta() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForBeta")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951892-gamma?language=objc -func (c_ CNNBatchNormalizationState) Gamma() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("gamma")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2942603-variance?language=objc -func (c_ CNNBatchNormalizationState) Variance() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("variance")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2942612-mean?language=objc +func (c_ CNNBatchNormalizationState) Mean() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("mean")) return rv } diff --git a/macos/mps/cnn_binary_convolution.gen.go b/macos/mps/cnn_binary_convolution.gen.go index 8dc4e95a..521d1928 100644 --- a/macos/mps/cnn_binary_convolution.gen.go +++ b/macos/mps/cnn_binary_convolution.gen.go @@ -36,22 +36,6 @@ func CNNBinaryConvolutionFrom(ptr unsafe.Pointer) CNNBinaryConvolution { } } -func (c_ CNNBinaryConvolution) InitWithDeviceConvolutionDataOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(device metal.PDevice, convolutionData PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolution { - po0 := objc.WrapAsProtocol("MTLDevice", device) - po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", convolutionData) - rv := objc.Call[CNNBinaryConvolution](c_, objc.Sel("initWithDevice:convolutionData:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:"), po0, po1, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) - return rv -} - -// Initializes a binary convolution kernel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryconvolution/2866978-initwithdevice?language=objc -func NewCNNBinaryConvolutionWithDeviceConvolutionDataOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(device metal.PDevice, convolutionData PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolution { - instance := CNNBinaryConvolutionClass.Alloc().InitWithDeviceConvolutionDataOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(device, convolutionData, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) - instance.Autorelease() - return instance -} - func (c_ CNNBinaryConvolution) InitWithDeviceConvolutionDataScaleValueTypeFlags(device metal.PDevice, convolutionData PCNNConvolutionDataSource, scaleValue float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolution { po0 := objc.WrapAsProtocol("MTLDevice", device) po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", convolutionData) diff --git a/macos/mps/cnn_binary_convolution_node.gen.go b/macos/mps/cnn_binary_convolution_node.gen.go index a05421ce..1b924320 100644 --- a/macos/mps/cnn_binary_convolution_node.gen.go +++ b/macos/mps/cnn_binary_convolution_node.gen.go @@ -33,21 +33,6 @@ func CNNBinaryConvolutionNodeFrom(ptr unsafe.Pointer) CNNBinaryConvolutionNode { } } -func (c_ CNNBinaryConvolutionNode) InitWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { - po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNBinaryConvolutionNode](c_, objc.Sel("initWithSource:weights:scaleValue:type:flags:"), sourceNode, po1, scaleValue, type_, flags) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryconvolutionnode/2866509-initwithsource?language=objc -func NewCNNBinaryConvolutionNodeWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { - instance := CNNBinaryConvolutionNodeClass.Alloc().InitWithSourceWeightsScaleValueTypeFlags(sourceNode, weights, scaleValue, type_, flags) - instance.Autorelease() - return instance -} - func (cc _CNNBinaryConvolutionNodeClass) NodeWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) rv := objc.Call[CNNBinaryConvolutionNode](cc, objc.Sel("nodeWithSource:weights:scaleValue:type:flags:"), sourceNode, po1, scaleValue, type_, flags) @@ -61,34 +46,21 @@ func CNNBinaryConvolutionNode_NodeWithSourceWeightsScaleValueTypeFlags(sourceNod return CNNBinaryConvolutionNodeClass.NodeWithSourceWeightsScaleValueTypeFlags(sourceNode, weights, scaleValue, type_, flags) } -func (c_ CNNBinaryConvolutionNode) InitWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { +func (c_ CNNBinaryConvolutionNode) InitWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNBinaryConvolutionNode](c_, objc.Sel("initWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:"), sourceNode, po1, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) + rv := objc.Call[CNNBinaryConvolutionNode](c_, objc.Sel("initWithSource:weights:scaleValue:type:flags:"), sourceNode, po1, scaleValue, type_, flags) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryconvolutionnode/2942631-initwithsource?language=objc -func NewCNNBinaryConvolutionNodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { - instance := CNNBinaryConvolutionNodeClass.Alloc().InitWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode, weights, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryconvolutionnode/2866509-initwithsource?language=objc +func NewCNNBinaryConvolutionNodeWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { + instance := CNNBinaryConvolutionNodeClass.Alloc().InitWithSourceWeightsScaleValueTypeFlags(sourceNode, weights, scaleValue, type_, flags) instance.Autorelease() return instance } -func (cc _CNNBinaryConvolutionNodeClass) NodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { - po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNBinaryConvolutionNode](cc, objc.Sel("nodeWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:"), sourceNode, po1, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryconvolutionnode/2942632-nodewithsource?language=objc -func CNNBinaryConvolutionNode_NodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { - return CNNBinaryConvolutionNodeClass.NodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode, weights, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) -} - func (cc _CNNBinaryConvolutionNodeClass) Alloc() CNNBinaryConvolutionNode { rv := objc.Call[CNNBinaryConvolutionNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_binary_fully_connected.gen.go b/macos/mps/cnn_binary_fully_connected.gen.go index ca84dd65..253c666b 100644 --- a/macos/mps/cnn_binary_fully_connected.gen.go +++ b/macos/mps/cnn_binary_fully_connected.gen.go @@ -50,22 +50,6 @@ func NewCNNBinaryFullyConnectedWithDeviceConvolutionDataScaleValueTypeFlags(devi return instance } -func (c_ CNNBinaryFullyConnected) InitWithDeviceConvolutionDataOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(device metal.PDevice, convolutionData PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnected { - po0 := objc.WrapAsProtocol("MTLDevice", device) - po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", convolutionData) - rv := objc.Call[CNNBinaryFullyConnected](c_, objc.Sel("initWithDevice:convolutionData:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:"), po0, po1, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) - return rv -} - -// Initializes a fully connected convolution layer with binary weights. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryfullyconnected/2867059-initwithdevice?language=objc -func NewCNNBinaryFullyConnectedWithDeviceConvolutionDataOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(device metal.PDevice, convolutionData PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnected { - instance := CNNBinaryFullyConnectedClass.Alloc().InitWithDeviceConvolutionDataOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(device, convolutionData, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) - instance.Autorelease() - return instance -} - func (cc _CNNBinaryFullyConnectedClass) Alloc() CNNBinaryFullyConnected { rv := objc.Call[CNNBinaryFullyConnected](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_binary_fully_connected_node.gen.go b/macos/mps/cnn_binary_fully_connected_node.gen.go index c73b9cab..5e0e6cb9 100644 --- a/macos/mps/cnn_binary_fully_connected_node.gen.go +++ b/macos/mps/cnn_binary_fully_connected_node.gen.go @@ -46,21 +46,6 @@ func CNNBinaryFullyConnectedNode_NodeWithSourceWeightsScaleValueTypeFlags(source return CNNBinaryFullyConnectedNodeClass.NodeWithSourceWeightsScaleValueTypeFlags(sourceNode, weights, scaleValue, type_, flags) } -func (c_ CNNBinaryFullyConnectedNode) InitWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnectedNode { - po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNBinaryFullyConnectedNode](c_, objc.Sel("initWithSource:weights:scaleValue:type:flags:"), sourceNode, po1, scaleValue, type_, flags) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryfullyconnectednode/2866443-initwithsource?language=objc -func NewCNNBinaryFullyConnectedNodeWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnectedNode { - instance := CNNBinaryFullyConnectedNodeClass.Alloc().InitWithSourceWeightsScaleValueTypeFlags(sourceNode, weights, scaleValue, type_, flags) - instance.Autorelease() - return instance -} - func (c_ CNNBinaryFullyConnectedNode) InitWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnectedNode { po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) rv := objc.Call[CNNBinaryFullyConnectedNode](c_, objc.Sel("initWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:"), sourceNode, po1, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) @@ -76,19 +61,6 @@ func NewCNNBinaryFullyConnectedNodeWithSourceWeightsOutputBiasTermsOutputScaleTe return instance } -func (cc _CNNBinaryFullyConnectedNodeClass) NodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnectedNode { - po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNBinaryFullyConnectedNode](cc, objc.Sel("nodeWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:"), sourceNode, po1, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryfullyconnectednode/2942635-nodewithsource?language=objc -func CNNBinaryFullyConnectedNode_NodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float32, outputScaleTerms *float32, inputBiasTerms *float32, inputScaleTerms *float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnectedNode { - return CNNBinaryFullyConnectedNodeClass.NodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode, weights, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) -} - func (cc _CNNBinaryFullyConnectedNodeClass) Alloc() CNNBinaryFullyConnectedNode { rv := objc.Call[CNNBinaryFullyConnectedNode](cc, objc.Sel("alloc")) return rv @@ -109,6 +81,21 @@ func (c_ CNNBinaryFullyConnectedNode) Init() CNNBinaryFullyConnectedNode { return rv } +func (c_ CNNBinaryFullyConnectedNode) InitWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnectedNode { + po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) + rv := objc.Call[CNNBinaryFullyConnectedNode](c_, objc.Sel("initWithSource:weights:scaleValue:type:flags:"), sourceNode, po1, scaleValue, type_, flags) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryconvolutionnode/2866509-initwithsource?language=objc +func NewCNNBinaryFullyConnectedNodeWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float32, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnectedNode { + instance := CNNBinaryFullyConnectedNodeClass.Alloc().InitWithSourceWeightsScaleValueTypeFlags(sourceNode, weights, scaleValue, type_, flags) + instance.Autorelease() + return instance +} + func (cc _CNNBinaryFullyConnectedNodeClass) NodeWithSourceWeights(sourceNode INNImageNode, weights PCNNConvolutionDataSource) CNNBinaryFullyConnectedNode { po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) rv := objc.Call[CNNBinaryFullyConnectedNode](cc, objc.Sel("nodeWithSource:weights:"), sourceNode, po1) diff --git a/macos/mps/cnn_binary_kernel.gen.go b/macos/mps/cnn_binary_kernel.gen.go index 53bc7ae2..93192b8c 100644 --- a/macos/mps/cnn_binary_kernel.gen.go +++ b/macos/mps/cnn_binary_kernel.gen.go @@ -20,73 +20,65 @@ type _CNNBinaryKernelClass struct { // An interface definition for the [CNNBinaryKernel] class. type ICNNBinaryKernel interface { IKernel - IsResultStateReusedAcrossBatch() bool + BatchEncodingStorageSizeForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint + TemporaryResultStateForCommandBufferPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State + TemporaryResultStateForCommandBufferObjectPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State + ResultStateForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State AppendBatchBarrier() bool - DestinationImageDescriptorForSourceImagesSourceStates(sourceImages []IImage, sourceStates []IState) ImageDescriptor TemporaryResultStateBatchForCommandBufferPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array TemporaryResultStateBatchForCommandBufferObjectPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBufferObject objc.IObject, primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array - EncodeBatchToCommandBufferPrimaryImagesSecondaryImages(commandBuffer metal.PCommandBuffer, primaryImage *foundation.Array, secondaryImage *foundation.Array) *foundation.Array - EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImages(commandBufferObject objc.IObject, primaryImage *foundation.Array, secondaryImage *foundation.Array) *foundation.Array - EncodeToCommandBufferPrimaryImageSecondaryImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage) Image - EncodeToCommandBufferObjectPrimaryImageSecondaryImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage) Image - ResultStateForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State + DestinationImageDescriptorForSourceImagesSourceStates(sourceImages []IImage, sourceStates []IState) ImageDescriptor + EncodeBatchToCommandBufferPrimaryImagesSecondaryImagesDestinationImages(commandBuffer metal.PCommandBuffer, primaryImages *foundation.Array, secondaryImages *foundation.Array, destinationImages *foundation.Array) + EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImagesDestinationImages(commandBufferObject objc.IObject, primaryImages *foundation.Array, secondaryImages *foundation.Array, destinationImages *foundation.Array) ResultStateBatchForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array - TemporaryResultStateForCommandBufferPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State - TemporaryResultStateForCommandBufferObjectPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State - BatchEncodingStorageSizeForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint + EncodingStorageSizeForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) uint EncodeToCommandBufferPrimaryImageSecondaryImageDestinationStateDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, outState unsafe.Pointer, isTemporary bool) Image EncodeToCommandBufferObjectPrimaryImageSecondaryImageDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, outState unsafe.Pointer, isTemporary bool) Image - EncodingStorageSizeForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) uint - EncodeToCommandBufferPrimaryImageSecondaryImageDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, destinationImage IImage) - EncodeToCommandBufferObjectPrimaryImageSecondaryImageDestinationImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, destinationImage IImage) - EncodeBatchToCommandBufferPrimaryImagesSecondaryImagesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, primaryImages *foundation.Array, secondaryImages *foundation.Array, outState unsafe.Pointer, isTemporary bool) *foundation.Array - EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, primaryImages *foundation.Array, secondaryImages *foundation.Array, outState unsafe.Pointer, isTemporary bool) *foundation.Array - EncodeBatchToCommandBufferPrimaryImagesSecondaryImagesDestinationImages(commandBuffer metal.PCommandBuffer, primaryImages *foundation.Array, secondaryImages *foundation.Array, destinationImages *foundation.Array) - EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImagesDestinationImages(commandBufferObject objc.IObject, primaryImages *foundation.Array, secondaryImages *foundation.Array, destinationImages *foundation.Array) - PrimaryKernelWidth() uint - SecondaryDilationRateX() uint - PrimaryOffset() Offset - SetPrimaryOffset(value Offset) - Padding() NNPaddingObject - SetPadding(value PNNPadding) - SetPaddingObject(valueObject objc.IObject) + IsResultStateReusedAcrossBatch() bool + SecondaryKernelHeight() uint + PrimarySourceFeatureChannelOffset() uint + SetPrimarySourceFeatureChannelOffset(value uint) + IsStateModified() bool SecondaryEdgeMode() ImageEdgeMode SetSecondaryEdgeMode(value ImageEdgeMode) - DestinationImageAllocator() ImageAllocatorObject - SetDestinationImageAllocator(value PImageAllocator) - SetDestinationImageAllocatorObject(valueObject objc.IObject) + PrimaryKernelHeight() uint SecondaryStrideInPixelsY() uint SetSecondaryStrideInPixelsY(value uint) - ClipRect() metal.Region - SetClipRect(value metal.Region) - IsBackwards() bool - PrimarySourceFeatureChannelMaxCount() uint - SetPrimarySourceFeatureChannelMaxCount(value uint) - SecondaryStrideInPixelsX() uint - SetSecondaryStrideInPixelsX(value uint) - PrimaryDilationRateX() uint - PrimaryEdgeMode() ImageEdgeMode - SetPrimaryEdgeMode(value ImageEdgeMode) + SecondarySourceFeatureChannelOffset() uint + SetSecondarySourceFeatureChannelOffset(value uint) SecondaryDilationRateY() uint PrimaryDilationRateY() uint SecondaryKernelWidth() uint - DestinationFeatureChannelOffset() uint - SetDestinationFeatureChannelOffset(value uint) - PrimaryStrideInPixelsY() uint - SetPrimaryStrideInPixelsY(value uint) - IsStateModified() bool - PrimarySourceFeatureChannelOffset() uint - SetPrimarySourceFeatureChannelOffset(value uint) - SecondaryKernelHeight() uint - SecondaryOffset() Offset - SetSecondaryOffset(value Offset) - SecondarySourceFeatureChannelOffset() uint - SetSecondarySourceFeatureChannelOffset(value uint) + PrimaryEdgeMode() ImageEdgeMode + SetPrimaryEdgeMode(value ImageEdgeMode) + PrimaryDilationRateX() uint + Padding() NNPaddingObject + SetPadding(value PNNPadding) + SetPaddingObject(valueObject objc.IObject) SecondarySourceFeatureChannelMaxCount() uint SetSecondarySourceFeatureChannelMaxCount(value uint) - PrimaryKernelHeight() uint + SecondaryDilationRateX() uint + SecondaryStrideInPixelsX() uint + SetSecondaryStrideInPixelsX(value uint) + PrimarySourceFeatureChannelMaxCount() uint + SetPrimarySourceFeatureChannelMaxCount(value uint) + PrimaryStrideInPixelsY() uint + SetPrimaryStrideInPixelsY(value uint) + PrimaryOffset() Offset + SetPrimaryOffset(value Offset) PrimaryStrideInPixelsX() uint SetPrimaryStrideInPixelsX(value uint) + IsBackwards() bool + SecondaryOffset() Offset + SetSecondaryOffset(value Offset) + ClipRect() metal.Region + SetClipRect(value metal.Region) + DestinationImageAllocator() ImageAllocatorObject + SetDestinationImageAllocator(value PImageAllocator) + SetDestinationImageAllocatorObject(valueObject objc.IObject) + PrimaryKernelWidth() uint + DestinationFeatureChannelOffset() uint + SetDestinationFeatureChannelOffset(value uint) } // A convolution neural network kernel. [Full Topic] @@ -154,85 +146,83 @@ func CNNBinaryKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevic // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942659-isresultstatereusedacrossbatch?language=objc -func (c_ CNNBinaryKernel) IsResultStateReusedAcrossBatch() bool { - rv := objc.Call[bool](c_, objc.Sel("isResultStateReusedAcrossBatch")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/3237261-batchencodingstoragesizeforprima?language=objc +func (c_ CNNBinaryKernel) BatchEncodingStorageSizeForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint { + rv := objc.Call[uint](c_, objc.Sel("batchEncodingStorageSizeForPrimaryImage:secondaryImage:sourceStates:destinationImage:"), primaryImage, secondaryImage, sourceStates, destinationImage) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942642-appendbatchbarrier?language=objc -func (c_ CNNBinaryKernel) AppendBatchBarrier() bool { - rv := objc.Call[bool](c_, objc.Sel("appendBatchBarrier")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947938-temporaryresultstateforcommandbu?language=objc +func (c_ CNNBinaryKernel) TemporaryResultStateForCommandBufferPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[State](c_, objc.Sel("temporaryResultStateForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:"), po0, primaryImage, secondaryImage, sourceStates, destinationImage) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942686-destinationimagedescriptorforsou?language=objc -func (c_ CNNBinaryKernel) DestinationImageDescriptorForSourceImagesSourceStates(sourceImages []IImage, sourceStates []IState) ImageDescriptor { - rv := objc.Call[ImageDescriptor](c_, objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:"), sourceImages, sourceStates) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947938-temporaryresultstateforcommandbu?language=objc +func (c_ CNNBinaryKernel) TemporaryResultStateForCommandBufferObjectPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State { + rv := objc.Call[State](c_, objc.Sel("temporaryResultStateForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:"), commandBufferObject, primaryImage, secondaryImage, sourceStates, destinationImage) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947933-temporaryresultstatebatchforcomm?language=objc -func (c_ CNNBinaryKernel) TemporaryResultStateBatchForCommandBufferPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("temporaryResultStateBatchForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:"), po0, primaryImage, secondaryImage, sourceStates, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947935-resultstateforprimaryimage?language=objc +func (c_ CNNBinaryKernel) ResultStateForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State { + rv := objc.Call[State](c_, objc.Sel("resultStateForPrimaryImage:secondaryImage:sourceStates:destinationImage:"), primaryImage, secondaryImage, sourceStates, destinationImage) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947933-temporaryresultstatebatchforcomm?language=objc -func (c_ CNNBinaryKernel) TemporaryResultStateBatchForCommandBufferObjectPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBufferObject objc.IObject, primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("temporaryResultStateBatchForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:"), commandBufferObject, primaryImage, secondaryImage, sourceStates, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942642-appendbatchbarrier?language=objc +func (c_ CNNBinaryKernel) AppendBatchBarrier() bool { + rv := objc.Call[bool](c_, objc.Sel("appendBatchBarrier")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942650-encodebatchtocommandbuffer?language=objc -func (c_ CNNBinaryKernel) EncodeBatchToCommandBufferPrimaryImagesSecondaryImages(commandBuffer metal.PCommandBuffer, primaryImage *foundation.Array, secondaryImage *foundation.Array) *foundation.Array { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947933-temporaryresultstatebatchforcomm?language=objc +func (c_ CNNBinaryKernel) TemporaryResultStateBatchForCommandBufferPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:primaryImages:secondaryImages:"), po0, primaryImage, secondaryImage) + rv := objc.Call[*foundation.Array](c_, objc.Sel("temporaryResultStateBatchForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:"), po0, primaryImage, secondaryImage, sourceStates, destinationImage) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942650-encodebatchtocommandbuffer?language=objc -func (c_ CNNBinaryKernel) EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImages(commandBufferObject objc.IObject, primaryImage *foundation.Array, secondaryImage *foundation.Array) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:primaryImages:secondaryImages:"), commandBufferObject, primaryImage, secondaryImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947933-temporaryresultstatebatchforcomm?language=objc +func (c_ CNNBinaryKernel) TemporaryResultStateBatchForCommandBufferObjectPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBufferObject objc.IObject, primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("temporaryResultStateBatchForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:"), commandBufferObject, primaryImage, secondaryImage, sourceStates, destinationImage) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865632-encodetocommandbuffer?language=objc -func (c_ CNNBinaryKernel) EncodeToCommandBufferPrimaryImageSecondaryImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage) Image { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:primaryImage:secondaryImage:"), po0, primaryImage, secondaryImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942686-destinationimagedescriptorforsou?language=objc +func (c_ CNNBinaryKernel) DestinationImageDescriptorForSourceImagesSourceStates(sourceImages []IImage, sourceStates []IState) ImageDescriptor { + rv := objc.Call[ImageDescriptor](c_, objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:"), sourceImages, sourceStates) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865632-encodetocommandbuffer?language=objc -func (c_ CNNBinaryKernel) EncodeToCommandBufferObjectPrimaryImageSecondaryImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage) Image { - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:primaryImage:secondaryImage:"), commandBufferObject, primaryImage, secondaryImage) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942670-encodebatchtocommandbuffer?language=objc +func (c_ CNNBinaryKernel) EncodeBatchToCommandBufferPrimaryImagesSecondaryImagesDestinationImages(commandBuffer metal.PCommandBuffer, primaryImages *foundation.Array, secondaryImages *foundation.Array, destinationImages *foundation.Array) { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:primaryImages:secondaryImages:destinationImages:"), po0, primaryImages, secondaryImages, destinationImages) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947935-resultstateforprimaryimage?language=objc -func (c_ CNNBinaryKernel) ResultStateForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State { - rv := objc.Call[State](c_, objc.Sel("resultStateForPrimaryImage:secondaryImage:sourceStates:destinationImage:"), primaryImage, secondaryImage, sourceStates, destinationImage) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942670-encodebatchtocommandbuffer?language=objc +func (c_ CNNBinaryKernel) EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImagesDestinationImages(commandBufferObject objc.IObject, primaryImages *foundation.Array, secondaryImages *foundation.Array, destinationImages *foundation.Array) { + objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:primaryImages:secondaryImages:destinationImages:"), commandBufferObject, primaryImages, secondaryImages, destinationImages) } // [Full Topic] @@ -245,26 +235,9 @@ func (c_ CNNBinaryKernel) ResultStateBatchForPrimaryImageSecondaryImageSourceSta // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947938-temporaryresultstateforcommandbu?language=objc -func (c_ CNNBinaryKernel) TemporaryResultStateForCommandBufferPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[State](c_, objc.Sel("temporaryResultStateForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:"), po0, primaryImage, secondaryImage, sourceStates, destinationImage) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947938-temporaryresultstateforcommandbu?language=objc -func (c_ CNNBinaryKernel) TemporaryResultStateForCommandBufferObjectPrimaryImageSecondaryImageSourceStatesDestinationImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) State { - rv := objc.Call[State](c_, objc.Sel("temporaryResultStateForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:"), commandBufferObject, primaryImage, secondaryImage, sourceStates, destinationImage) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/3237261-batchencodingstoragesizeforprima?language=objc -func (c_ CNNBinaryKernel) BatchEncodingStorageSizeForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint { - rv := objc.Call[uint](c_, objc.Sel("batchEncodingStorageSizeForPrimaryImage:secondaryImage:sourceStates:destinationImage:"), primaryImage, secondaryImage, sourceStates, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/3237262-encodingstoragesizeforprimaryima?language=objc +func (c_ CNNBinaryKernel) EncodingStorageSizeForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) uint { + rv := objc.Call[uint](c_, objc.Sel("encodingStorageSizeForPrimaryImage:secondaryImage:sourceStates:destinationImage:"), primaryImage, secondaryImage, sourceStates, destinationImage) return rv } @@ -287,113 +260,43 @@ func (c_ CNNBinaryKernel) EncodeToCommandBufferObjectPrimaryImageSecondaryImageD // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/3237262-encodingstoragesizeforprimaryima?language=objc -func (c_ CNNBinaryKernel) EncodingStorageSizeForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) uint { - rv := objc.Call[uint](c_, objc.Sel("encodingStorageSizeForPrimaryImage:secondaryImage:sourceStates:destinationImage:"), primaryImage, secondaryImage, sourceStates, destinationImage) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865636-encodetocommandbuffer?language=objc -func (c_ CNNBinaryKernel) EncodeToCommandBufferPrimaryImageSecondaryImageDestinationImage(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, destinationImage IImage) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:primaryImage:secondaryImage:destinationImage:"), po0, primaryImage, secondaryImage, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865636-encodetocommandbuffer?language=objc -func (c_ CNNBinaryKernel) EncodeToCommandBufferObjectPrimaryImageSecondaryImageDestinationImage(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, destinationImage IImage) { - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:primaryImage:secondaryImage:destinationImage:"), commandBufferObject, primaryImage, secondaryImage, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947934-encodebatchtocommandbuffer?language=objc -func (c_ CNNBinaryKernel) EncodeBatchToCommandBufferPrimaryImagesSecondaryImagesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, primaryImages *foundation.Array, secondaryImages *foundation.Array, outState unsafe.Pointer, isTemporary bool) *foundation.Array { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:primaryImages:secondaryImages:destinationStates:destinationStateIsTemporary:"), po0, primaryImages, secondaryImages, outState, isTemporary) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2947934-encodebatchtocommandbuffer?language=objc -func (c_ CNNBinaryKernel) EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, primaryImages *foundation.Array, secondaryImages *foundation.Array, outState unsafe.Pointer, isTemporary bool) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:primaryImages:secondaryImages:destinationStates:destinationStateIsTemporary:"), commandBufferObject, primaryImages, secondaryImages, outState, isTemporary) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942670-encodebatchtocommandbuffer?language=objc -func (c_ CNNBinaryKernel) EncodeBatchToCommandBufferPrimaryImagesSecondaryImagesDestinationImages(commandBuffer metal.PCommandBuffer, primaryImages *foundation.Array, secondaryImages *foundation.Array, destinationImages *foundation.Array) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:primaryImages:secondaryImages:destinationImages:"), po0, primaryImages, secondaryImages, destinationImages) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942670-encodebatchtocommandbuffer?language=objc -func (c_ CNNBinaryKernel) EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImagesDestinationImages(commandBufferObject objc.IObject, primaryImages *foundation.Array, secondaryImages *foundation.Array, destinationImages *foundation.Array) { - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:primaryImages:secondaryImages:destinationImages:"), commandBufferObject, primaryImages, secondaryImages, destinationImages) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942666-primarykernelwidth?language=objc -func (c_ CNNBinaryKernel) PrimaryKernelWidth() uint { - rv := objc.Call[uint](c_, objc.Sel("primaryKernelWidth")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942659-isresultstatereusedacrossbatch?language=objc +func (c_ CNNBinaryKernel) IsResultStateReusedAcrossBatch() bool { + rv := objc.Call[bool](c_, objc.Sel("isResultStateReusedAcrossBatch")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942645-secondarydilationratex?language=objc -func (c_ CNNBinaryKernel) SecondaryDilationRateX() uint { - rv := objc.Call[uint](c_, objc.Sel("secondaryDilationRateX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942664-secondarykernelheight?language=objc +func (c_ CNNBinaryKernel) SecondaryKernelHeight() uint { + rv := objc.Call[uint](c_, objc.Sel("secondaryKernelHeight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865645-primaryoffset?language=objc -func (c_ CNNBinaryKernel) PrimaryOffset() Offset { - rv := objc.Call[Offset](c_, objc.Sel("primaryOffset")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942656-primarysourcefeaturechanneloffse?language=objc +func (c_ CNNBinaryKernel) PrimarySourceFeatureChannelOffset() uint { + rv := objc.Call[uint](c_, objc.Sel("primarySourceFeatureChannelOffset")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865645-primaryoffset?language=objc -func (c_ CNNBinaryKernel) SetPrimaryOffset(value Offset) { - objc.Call[objc.Void](c_, objc.Sel("setPrimaryOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942656-primarysourcefeaturechanneloffse?language=objc +func (c_ CNNBinaryKernel) SetPrimarySourceFeatureChannelOffset(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPrimarySourceFeatureChannelOffset:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865630-padding?language=objc -func (c_ CNNBinaryKernel) Padding() NNPaddingObject { - rv := objc.Call[NNPaddingObject](c_, objc.Sel("padding")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942660-isstatemodified?language=objc +func (c_ CNNBinaryKernel) IsStateModified() bool { + rv := objc.Call[bool](c_, objc.Sel("isStateModified")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865630-padding?language=objc -func (c_ CNNBinaryKernel) SetPadding(value PNNPadding) { - po0 := objc.WrapAsProtocol("MPSNNPadding", value) - objc.Call[objc.Void](c_, objc.Sel("setPadding:"), po0) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865630-padding?language=objc -func (c_ CNNBinaryKernel) SetPaddingObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setPadding:"), valueObject) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865631-secondaryedgemode?language=objc @@ -411,27 +314,12 @@ func (c_ CNNBinaryKernel) SetSecondaryEdgeMode(value ImageEdgeMode) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865651-destinationimageallocator?language=objc -func (c_ CNNBinaryKernel) DestinationImageAllocator() ImageAllocatorObject { - rv := objc.Call[ImageAllocatorObject](c_, objc.Sel("destinationImageAllocator")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942648-primarykernelheight?language=objc +func (c_ CNNBinaryKernel) PrimaryKernelHeight() uint { + rv := objc.Call[uint](c_, objc.Sel("primaryKernelHeight")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865651-destinationimageallocator?language=objc -func (c_ CNNBinaryKernel) SetDestinationImageAllocator(value PImageAllocator) { - po0 := objc.WrapAsProtocol("MPSImageAllocator", value) - objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), po0) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865651-destinationimageallocator?language=objc -func (c_ CNNBinaryKernel) SetDestinationImageAllocatorObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), valueObject) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865639-secondarystrideinpixelsy?language=objc @@ -449,55 +337,56 @@ func (c_ CNNBinaryKernel) SetSecondaryStrideInPixelsY(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865641-cliprect?language=objc -func (c_ CNNBinaryKernel) ClipRect() metal.Region { - rv := objc.Call[metal.Region](c_, objc.Sel("clipRect")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942654-secondarysourcefeaturechanneloff?language=objc +func (c_ CNNBinaryKernel) SecondarySourceFeatureChannelOffset() uint { + rv := objc.Call[uint](c_, objc.Sel("secondarySourceFeatureChannelOffset")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865641-cliprect?language=objc -func (c_ CNNBinaryKernel) SetClipRect(value metal.Region) { - objc.Call[objc.Void](c_, objc.Sel("setClipRect:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942654-secondarysourcefeaturechanneloff?language=objc +func (c_ CNNBinaryKernel) SetSecondarySourceFeatureChannelOffset(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setSecondarySourceFeatureChannelOffset:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865652-isbackwards?language=objc -func (c_ CNNBinaryKernel) IsBackwards() bool { - rv := objc.Call[bool](c_, objc.Sel("isBackwards")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942667-secondarydilationratey?language=objc +func (c_ CNNBinaryKernel) SecondaryDilationRateY() uint { + rv := objc.Call[uint](c_, objc.Sel("secondaryDilationRateY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2951919-primarysourcefeaturechannelmaxco?language=objc -func (c_ CNNBinaryKernel) PrimarySourceFeatureChannelMaxCount() uint { - rv := objc.Call[uint](c_, objc.Sel("primarySourceFeatureChannelMaxCount")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942662-primarydilationratey?language=objc +func (c_ CNNBinaryKernel) PrimaryDilationRateY() uint { + rv := objc.Call[uint](c_, objc.Sel("primaryDilationRateY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2951919-primarysourcefeaturechannelmaxco?language=objc -func (c_ CNNBinaryKernel) SetPrimarySourceFeatureChannelMaxCount(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setPrimarySourceFeatureChannelMaxCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942658-secondarykernelwidth?language=objc +func (c_ CNNBinaryKernel) SecondaryKernelWidth() uint { + rv := objc.Call[uint](c_, objc.Sel("secondaryKernelWidth")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865649-secondarystrideinpixelsx?language=objc -func (c_ CNNBinaryKernel) SecondaryStrideInPixelsX() uint { - rv := objc.Call[uint](c_, objc.Sel("secondaryStrideInPixelsX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865646-primaryedgemode?language=objc +func (c_ CNNBinaryKernel) PrimaryEdgeMode() ImageEdgeMode { + rv := objc.Call[ImageEdgeMode](c_, objc.Sel("primaryEdgeMode")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865649-secondarystrideinpixelsx?language=objc -func (c_ CNNBinaryKernel) SetSecondaryStrideInPixelsX(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setSecondaryStrideInPixelsX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865646-primaryedgemode?language=objc +func (c_ CNNBinaryKernel) SetPrimaryEdgeMode(value ImageEdgeMode) { + objc.Call[objc.Void](c_, objc.Sel("setPrimaryEdgeMode:"), value) } // [Full Topic] @@ -510,56 +399,78 @@ func (c_ CNNBinaryKernel) PrimaryDilationRateX() uint { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865646-primaryedgemode?language=objc -func (c_ CNNBinaryKernel) PrimaryEdgeMode() ImageEdgeMode { - rv := objc.Call[ImageEdgeMode](c_, objc.Sel("primaryEdgeMode")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865630-padding?language=objc +func (c_ CNNBinaryKernel) Padding() NNPaddingObject { + rv := objc.Call[NNPaddingObject](c_, objc.Sel("padding")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865646-primaryedgemode?language=objc -func (c_ CNNBinaryKernel) SetPrimaryEdgeMode(value ImageEdgeMode) { - objc.Call[objc.Void](c_, objc.Sel("setPrimaryEdgeMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865630-padding?language=objc +func (c_ CNNBinaryKernel) SetPadding(value PNNPadding) { + po0 := objc.WrapAsProtocol("MPSNNPadding", value) + objc.Call[objc.Void](c_, objc.Sel("setPadding:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942667-secondarydilationratey?language=objc -func (c_ CNNBinaryKernel) SecondaryDilationRateY() uint { - rv := objc.Call[uint](c_, objc.Sel("secondaryDilationRateY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865630-padding?language=objc +func (c_ CNNBinaryKernel) SetPaddingObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setPadding:"), valueObject) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2951918-secondarysourcefeaturechannelmax?language=objc +func (c_ CNNBinaryKernel) SecondarySourceFeatureChannelMaxCount() uint { + rv := objc.Call[uint](c_, objc.Sel("secondarySourceFeatureChannelMaxCount")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942662-primarydilationratey?language=objc -func (c_ CNNBinaryKernel) PrimaryDilationRateY() uint { - rv := objc.Call[uint](c_, objc.Sel("primaryDilationRateY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2951918-secondarysourcefeaturechannelmax?language=objc +func (c_ CNNBinaryKernel) SetSecondarySourceFeatureChannelMaxCount(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setSecondarySourceFeatureChannelMaxCount:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942645-secondarydilationratex?language=objc +func (c_ CNNBinaryKernel) SecondaryDilationRateX() uint { + rv := objc.Call[uint](c_, objc.Sel("secondaryDilationRateX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942658-secondarykernelwidth?language=objc -func (c_ CNNBinaryKernel) SecondaryKernelWidth() uint { - rv := objc.Call[uint](c_, objc.Sel("secondaryKernelWidth")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865649-secondarystrideinpixelsx?language=objc +func (c_ CNNBinaryKernel) SecondaryStrideInPixelsX() uint { + rv := objc.Call[uint](c_, objc.Sel("secondaryStrideInPixelsX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865643-destinationfeaturechanneloffset?language=objc -func (c_ CNNBinaryKernel) DestinationFeatureChannelOffset() uint { - rv := objc.Call[uint](c_, objc.Sel("destinationFeatureChannelOffset")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865649-secondarystrideinpixelsx?language=objc +func (c_ CNNBinaryKernel) SetSecondaryStrideInPixelsX(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setSecondaryStrideInPixelsX:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2951919-primarysourcefeaturechannelmaxco?language=objc +func (c_ CNNBinaryKernel) PrimarySourceFeatureChannelMaxCount() uint { + rv := objc.Call[uint](c_, objc.Sel("primarySourceFeatureChannelMaxCount")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865643-destinationfeaturechanneloffset?language=objc -func (c_ CNNBinaryKernel) SetDestinationFeatureChannelOffset(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setDestinationFeatureChannelOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2951919-primarysourcefeaturechannelmaxco?language=objc +func (c_ CNNBinaryKernel) SetPrimarySourceFeatureChannelMaxCount(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPrimarySourceFeatureChannelMaxCount:"), value) } // [Full Topic] @@ -579,32 +490,39 @@ func (c_ CNNBinaryKernel) SetPrimaryStrideInPixelsY(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942660-isstatemodified?language=objc -func (c_ CNNBinaryKernel) IsStateModified() bool { - rv := objc.Call[bool](c_, objc.Sel("isStateModified")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865645-primaryoffset?language=objc +func (c_ CNNBinaryKernel) PrimaryOffset() Offset { + rv := objc.Call[Offset](c_, objc.Sel("primaryOffset")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942656-primarysourcefeaturechanneloffse?language=objc -func (c_ CNNBinaryKernel) PrimarySourceFeatureChannelOffset() uint { - rv := objc.Call[uint](c_, objc.Sel("primarySourceFeatureChannelOffset")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865645-primaryoffset?language=objc +func (c_ CNNBinaryKernel) SetPrimaryOffset(value Offset) { + objc.Call[objc.Void](c_, objc.Sel("setPrimaryOffset:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865658-primarystrideinpixelsx?language=objc +func (c_ CNNBinaryKernel) PrimaryStrideInPixelsX() uint { + rv := objc.Call[uint](c_, objc.Sel("primaryStrideInPixelsX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942656-primarysourcefeaturechanneloffse?language=objc -func (c_ CNNBinaryKernel) SetPrimarySourceFeatureChannelOffset(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setPrimarySourceFeatureChannelOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865658-primarystrideinpixelsx?language=objc +func (c_ CNNBinaryKernel) SetPrimaryStrideInPixelsX(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPrimaryStrideInPixelsX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942664-secondarykernelheight?language=objc -func (c_ CNNBinaryKernel) SecondaryKernelHeight() uint { - rv := objc.Call[uint](c_, objc.Sel("secondaryKernelHeight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865652-isbackwards?language=objc +func (c_ CNNBinaryKernel) IsBackwards() bool { + rv := objc.Call[bool](c_, objc.Sel("isBackwards")) return rv } @@ -625,53 +543,61 @@ func (c_ CNNBinaryKernel) SetSecondaryOffset(value Offset) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942654-secondarysourcefeaturechanneloff?language=objc -func (c_ CNNBinaryKernel) SecondarySourceFeatureChannelOffset() uint { - rv := objc.Call[uint](c_, objc.Sel("secondarySourceFeatureChannelOffset")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865641-cliprect?language=objc +func (c_ CNNBinaryKernel) ClipRect() metal.Region { + rv := objc.Call[metal.Region](c_, objc.Sel("clipRect")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942654-secondarysourcefeaturechanneloff?language=objc -func (c_ CNNBinaryKernel) SetSecondarySourceFeatureChannelOffset(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setSecondarySourceFeatureChannelOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865641-cliprect?language=objc +func (c_ CNNBinaryKernel) SetClipRect(value metal.Region) { + objc.Call[objc.Void](c_, objc.Sel("setClipRect:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2951918-secondarysourcefeaturechannelmax?language=objc -func (c_ CNNBinaryKernel) SecondarySourceFeatureChannelMaxCount() uint { - rv := objc.Call[uint](c_, objc.Sel("secondarySourceFeatureChannelMaxCount")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865651-destinationimageallocator?language=objc +func (c_ CNNBinaryKernel) DestinationImageAllocator() ImageAllocatorObject { + rv := objc.Call[ImageAllocatorObject](c_, objc.Sel("destinationImageAllocator")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2951918-secondarysourcefeaturechannelmax?language=objc -func (c_ CNNBinaryKernel) SetSecondarySourceFeatureChannelMaxCount(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setSecondarySourceFeatureChannelMaxCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865651-destinationimageallocator?language=objc +func (c_ CNNBinaryKernel) SetDestinationImageAllocator(value PImageAllocator) { + po0 := objc.WrapAsProtocol("MPSImageAllocator", value) + objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942648-primarykernelheight?language=objc -func (c_ CNNBinaryKernel) PrimaryKernelHeight() uint { - rv := objc.Call[uint](c_, objc.Sel("primaryKernelHeight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865651-destinationimageallocator?language=objc +func (c_ CNNBinaryKernel) SetDestinationImageAllocatorObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), valueObject) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2942666-primarykernelwidth?language=objc +func (c_ CNNBinaryKernel) PrimaryKernelWidth() uint { + rv := objc.Call[uint](c_, objc.Sel("primaryKernelWidth")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865658-primarystrideinpixelsx?language=objc -func (c_ CNNBinaryKernel) PrimaryStrideInPixelsX() uint { - rv := objc.Call[uint](c_, objc.Sel("primaryStrideInPixelsX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865643-destinationfeaturechanneloffset?language=objc +func (c_ CNNBinaryKernel) DestinationFeatureChannelOffset() uint { + rv := objc.Call[uint](c_, objc.Sel("destinationFeatureChannelOffset")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865658-primarystrideinpixelsx?language=objc -func (c_ CNNBinaryKernel) SetPrimaryStrideInPixelsX(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setPrimaryStrideInPixelsX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865643-destinationfeaturechanneloffset?language=objc +func (c_ CNNBinaryKernel) SetDestinationFeatureChannelOffset(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setDestinationFeatureChannelOffset:"), value) } diff --git a/macos/mps/cnn_convolution.gen.go b/macos/mps/cnn_convolution.gen.go index f16e566c..565e6ba5 100644 --- a/macos/mps/cnn_convolution.gen.go +++ b/macos/mps/cnn_convolution.gen.go @@ -24,15 +24,15 @@ type ICNNConvolution interface { ReloadWeightsAndBiasesWithCommandBufferObjectState(commandBufferObject objc.IObject, state ICNNConvolutionWeightsAndBiasesState) ExportWeightsAndBiasesWithCommandBufferResultStateCanBeTemporary(commandBuffer metal.PCommandBuffer, resultStateCanBeTemporary bool) CNNConvolutionWeightsAndBiasesState ExportWeightsAndBiasesWithCommandBufferObjectResultStateCanBeTemporary(commandBufferObject objc.IObject, resultStateCanBeTemporary bool) CNNConvolutionWeightsAndBiasesState - Neuron() CNNNeuron - Groups() uint + DataSource() CNNConvolutionDataSourceObject ChannelMultiplier() uint OutputFeatureChannels() uint + InputFeatureChannels() uint + Neuron() CNNNeuron + Groups() uint + SubPixelScaleFactor() uint AccumulatorPrecisionOption() NNConvolutionAccumulatorPrecisionOption SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) - SubPixelScaleFactor() uint - InputFeatureChannels() uint - DataSource() CNNConvolutionDataSourceObject FusedNeuronDescriptor() NNNeuronDescriptor } @@ -65,21 +65,6 @@ func NewCNNConvolutionWithDeviceWeights(device metal.PDevice, weights PCNNConvol return instance } -func (c_ CNNConvolution) InitWithDeviceConvolutionDescriptorKernelWeightsBiasTermsFlags(device metal.PDevice, convolutionDescriptor ICNNConvolutionDescriptor, kernelWeights *float32, biasTerms *float32, flags CNNConvolutionFlags) CNNConvolution { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNConvolution](c_, objc.Sel("initWithDevice:convolutionDescriptor:kernelWeights:biasTerms:flags:"), po0, convolutionDescriptor, kernelWeights, biasTerms, flags) - return rv -} - -// Initializes a convolution kernel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/1648861-initwithdevice?language=objc -func NewCNNConvolutionWithDeviceConvolutionDescriptorKernelWeightsBiasTermsFlags(device metal.PDevice, convolutionDescriptor ICNNConvolutionDescriptor, kernelWeights *float32, biasTerms *float32, flags CNNConvolutionFlags) CNNConvolution { - instance := CNNConvolutionClass.Alloc().InitWithDeviceConvolutionDescriptorKernelWeightsBiasTermsFlags(device, convolutionDescriptor, kernelWeights, biasTerms, flags) - instance.Autorelease() - return instance -} - func (cc _CNNConvolutionClass) Alloc() CNNConvolution { rv := objc.Call[CNNConvolution](cc, objc.Sel("alloc")) return rv @@ -169,19 +154,11 @@ func (c_ CNNConvolution) ExportWeightsAndBiasesWithCommandBufferObjectResultStat return rv } -// The neuron filter to be applied as part of the convolution operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/1845274-neuron?language=objc -func (c_ CNNConvolution) Neuron() CNNNeuron { - rv := objc.Call[CNNNeuron](c_, objc.Sel("neuron")) - return rv -} - -// The number of groups that the input and output channels are divided into. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/1845269-groups?language=objc -func (c_ CNNConvolution) Groups() uint { - rv := objc.Call[uint](c_, objc.Sel("groups")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/2953961-datasource?language=objc +func (c_ CNNConvolution) DataSource() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](c_, objc.Sel("dataSource")) return rv } @@ -201,19 +178,28 @@ func (c_ CNNConvolution) OutputFeatureChannels() uint { return rv } -// [Full Topic] +// The number of feature channels per pixel in the input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/2942410-accumulatorprecisionoption?language=objc -func (c_ CNNConvolution) AccumulatorPrecisionOption() NNConvolutionAccumulatorPrecisionOption { - rv := objc.Call[NNConvolutionAccumulatorPrecisionOption](c_, objc.Sel("accumulatorPrecisionOption")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/1845268-inputfeaturechannels?language=objc +func (c_ CNNConvolution) InputFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("inputFeatureChannels")) return rv } -// [Full Topic] +// The neuron filter to be applied as part of the convolution operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/2942410-accumulatorprecisionoption?language=objc -func (c_ CNNConvolution) SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) { - objc.Call[objc.Void](c_, objc.Sel("setAccumulatorPrecisionOption:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/1845274-neuron?language=objc +func (c_ CNNConvolution) Neuron() CNNNeuron { + rv := objc.Call[CNNNeuron](c_, objc.Sel("neuron")) + return rv +} + +// The number of groups that the input and output channels are divided into. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/1845269-groups?language=objc +func (c_ CNNConvolution) Groups() uint { + rv := objc.Call[uint](c_, objc.Sel("groups")) + return rv } // [Full Topic] @@ -224,20 +210,19 @@ func (c_ CNNConvolution) SubPixelScaleFactor() uint { return rv } -// The number of feature channels per pixel in the input image. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/1845268-inputfeaturechannels?language=objc -func (c_ CNNConvolution) InputFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("inputFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/2942410-accumulatorprecisionoption?language=objc +func (c_ CNNConvolution) AccumulatorPrecisionOption() NNConvolutionAccumulatorPrecisionOption { + rv := objc.Call[NNConvolutionAccumulatorPrecisionOption](c_, objc.Sel("accumulatorPrecisionOption")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/2953961-datasource?language=objc -func (c_ CNNConvolution) DataSource() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](c_, objc.Sel("dataSource")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/2942410-accumulatorprecisionoption?language=objc +func (c_ CNNConvolution) SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) { + objc.Call[objc.Void](c_, objc.Sel("setAccumulatorPrecisionOption:"), value) } // [Full Topic] diff --git a/macos/mps/cnn_convolution_data_source_protocol.gen.go b/macos/mps/cnn_convolution_data_source_protocol.gen.go index 58b1cf28..4ae28208 100644 --- a/macos/mps/cnn_convolution_data_source_protocol.gen.go +++ b/macos/mps/cnn_convolution_data_source_protocol.gen.go @@ -15,48 +15,40 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource?language=objc type PCNNConvolutionDataSource interface { // optional - BiasTerms() *float32 - HasBiasTerms() bool - - // optional - WeightsQuantizationType() CNNWeightsQuantizationType - HasWeightsQuantizationType() bool - - // optional - Label() string - HasLabel() bool - - // optional - Purge() - HasPurge() bool + RangesForUInt8Kernel() *kernel.Vector_float2 + HasRangesForUInt8Kernel() bool // optional - UpdateWithCommandBufferGradientStateSourceState(commandBuffer metal.CommandBufferObject, gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) CNNConvolutionWeightsAndBiasesState - HasUpdateWithCommandBufferGradientStateSourceState() bool + UpdateWithGradientStateSourceState(gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) bool + HasUpdateWithGradientStateSourceState() bool // optional - DataType() DataType - HasDataType() bool + WeightsLayout() CNNConvolutionWeightsLayout + HasWeightsLayout() bool // optional Weights() unsafe.Pointer HasWeights() bool // optional - Load() bool - HasLoad() bool + WeightsQuantizationType() CNNWeightsQuantizationType + HasWeightsQuantizationType() bool // optional - UpdateWithGradientStateSourceState(gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) bool - HasUpdateWithGradientStateSourceState() bool + LookupTableForUInt8Kernel() *float32 + HasLookupTableForUInt8Kernel() bool // optional - WeightsLayout() CNNConvolutionWeightsLayout - HasWeightsLayout() bool + BiasTerms() *float32 + HasBiasTerms() bool // optional - LookupTableForUInt8Kernel() *float32 - HasLookupTableForUInt8Kernel() bool + Purge() + HasPurge() bool + + // optional + DataType() DataType + HasDataType() bool // optional Descriptor() CNNConvolutionDescriptor @@ -67,8 +59,16 @@ type PCNNConvolutionDataSource interface { HasCopyWithZoneDevice() bool // optional - RangesForUInt8Kernel() *kernel.Vector_float2 - HasRangesForUInt8Kernel() bool + Load() bool + HasLoad() bool + + // optional + Label() string + HasLabel() bool + + // optional + UpdateWithCommandBufferGradientStateSourceState(commandBuffer metal.CommandBufferObject, gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) CNNConvolutionWeightsAndBiasesState + HasUpdateWithCommandBufferGradientStateSourceState() bool // optional KernelWeightsDataType() DataType @@ -83,172 +83,172 @@ type CNNConvolutionDataSourceObject struct { objc.Object } -func (c_ CNNConvolutionDataSourceObject) HasBiasTerms() bool { - return c_.RespondsToSelector(objc.Sel("biasTerms")) +func (c_ CNNConvolutionDataSourceObject) HasRangesForUInt8Kernel() bool { + return c_.RespondsToSelector(objc.Sel("rangesForUInt8Kernel")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867023-biasterms?language=objc -func (c_ CNNConvolutionDataSourceObject) BiasTerms() *float32 { - rv := objc.Call[*float32](c_, objc.Sel("biasTerms")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867145-rangesforuint8kernel?language=objc +func (c_ CNNConvolutionDataSourceObject) RangesForUInt8Kernel() *kernel.Vector_float2 { + rv := objc.Call[*kernel.Vector_float2](c_, objc.Sel("rangesForUInt8Kernel")) return rv } -func (c_ CNNConvolutionDataSourceObject) HasWeightsQuantizationType() bool { - return c_.RespondsToSelector(objc.Sel("weightsQuantizationType")) +func (c_ CNNConvolutionDataSourceObject) HasUpdateWithGradientStateSourceState() bool { + return c_.RespondsToSelector(objc.Sel("updateWithGradientState:sourceState:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2976466-weightsquantizationtype?language=objc -func (c_ CNNConvolutionDataSourceObject) WeightsQuantizationType() CNNWeightsQuantizationType { - rv := objc.Call[CNNWeightsQuantizationType](c_, objc.Sel("weightsQuantizationType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2953009-updatewithgradientstate?language=objc +func (c_ CNNConvolutionDataSourceObject) UpdateWithGradientStateSourceState(gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) bool { + rv := objc.Call[bool](c_, objc.Sel("updateWithGradientState:sourceState:"), gradientState, sourceState) return rv } -func (c_ CNNConvolutionDataSourceObject) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ CNNConvolutionDataSourceObject) HasWeightsLayout() bool { + return c_.RespondsToSelector(objc.Sel("weightsLayout")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2881197-label?language=objc -func (c_ CNNConvolutionDataSourceObject) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/3325840-weightslayout?language=objc +func (c_ CNNConvolutionDataSourceObject) WeightsLayout() CNNConvolutionWeightsLayout { + rv := objc.Call[CNNConvolutionWeightsLayout](c_, objc.Sel("weightsLayout")) return rv } -func (c_ CNNConvolutionDataSourceObject) HasPurge() bool { - return c_.RespondsToSelector(objc.Sel("purge")) +func (c_ CNNConvolutionDataSourceObject) HasWeights() bool { + return c_.RespondsToSelector(objc.Sel("weights")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867134-purge?language=objc -func (c_ CNNConvolutionDataSourceObject) Purge() { - objc.Call[objc.Void](c_, objc.Sel("purge")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867187-weights?language=objc +func (c_ CNNConvolutionDataSourceObject) Weights() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](c_, objc.Sel("weights")) + return rv } -func (c_ CNNConvolutionDataSourceObject) HasUpdateWithCommandBufferGradientStateSourceState() bool { - return c_.RespondsToSelector(objc.Sel("updateWithCommandBuffer:gradientState:sourceState:")) +func (c_ CNNConvolutionDataSourceObject) HasWeightsQuantizationType() bool { + return c_.RespondsToSelector(objc.Sel("weightsQuantizationType")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2953007-updatewithcommandbuffer?language=objc -func (c_ CNNConvolutionDataSourceObject) UpdateWithCommandBufferGradientStateSourceState(commandBuffer metal.CommandBufferObject, gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("updateWithCommandBuffer:gradientState:sourceState:"), po0, gradientState, sourceState) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2976466-weightsquantizationtype?language=objc +func (c_ CNNConvolutionDataSourceObject) WeightsQuantizationType() CNNWeightsQuantizationType { + rv := objc.Call[CNNWeightsQuantizationType](c_, objc.Sel("weightsQuantizationType")) return rv } -func (c_ CNNConvolutionDataSourceObject) HasDataType() bool { - return c_.RespondsToSelector(objc.Sel("dataType")) +func (c_ CNNConvolutionDataSourceObject) HasLookupTableForUInt8Kernel() bool { + return c_.RespondsToSelector(objc.Sel("lookupTableForUInt8Kernel")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867139-datatype?language=objc -func (c_ CNNConvolutionDataSourceObject) DataType() DataType { - rv := objc.Call[DataType](c_, objc.Sel("dataType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867186-lookuptableforuint8kernel?language=objc +func (c_ CNNConvolutionDataSourceObject) LookupTableForUInt8Kernel() *float32 { + rv := objc.Call[*float32](c_, objc.Sel("lookupTableForUInt8Kernel")) return rv } -func (c_ CNNConvolutionDataSourceObject) HasWeights() bool { - return c_.RespondsToSelector(objc.Sel("weights")) +func (c_ CNNConvolutionDataSourceObject) HasBiasTerms() bool { + return c_.RespondsToSelector(objc.Sel("biasTerms")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867187-weights?language=objc -func (c_ CNNConvolutionDataSourceObject) Weights() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](c_, objc.Sel("weights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867023-biasterms?language=objc +func (c_ CNNConvolutionDataSourceObject) BiasTerms() *float32 { + rv := objc.Call[*float32](c_, objc.Sel("biasTerms")) return rv } -func (c_ CNNConvolutionDataSourceObject) HasLoad() bool { - return c_.RespondsToSelector(objc.Sel("load")) +func (c_ CNNConvolutionDataSourceObject) HasPurge() bool { + return c_.RespondsToSelector(objc.Sel("purge")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867049-load?language=objc -func (c_ CNNConvolutionDataSourceObject) Load() bool { - rv := objc.Call[bool](c_, objc.Sel("load")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867134-purge?language=objc +func (c_ CNNConvolutionDataSourceObject) Purge() { + objc.Call[objc.Void](c_, objc.Sel("purge")) } -func (c_ CNNConvolutionDataSourceObject) HasUpdateWithGradientStateSourceState() bool { - return c_.RespondsToSelector(objc.Sel("updateWithGradientState:sourceState:")) +func (c_ CNNConvolutionDataSourceObject) HasDataType() bool { + return c_.RespondsToSelector(objc.Sel("dataType")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2953009-updatewithgradientstate?language=objc -func (c_ CNNConvolutionDataSourceObject) UpdateWithGradientStateSourceState(gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) bool { - rv := objc.Call[bool](c_, objc.Sel("updateWithGradientState:sourceState:"), gradientState, sourceState) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867139-datatype?language=objc +func (c_ CNNConvolutionDataSourceObject) DataType() DataType { + rv := objc.Call[DataType](c_, objc.Sel("dataType")) return rv } -func (c_ CNNConvolutionDataSourceObject) HasWeightsLayout() bool { - return c_.RespondsToSelector(objc.Sel("weightsLayout")) +func (c_ CNNConvolutionDataSourceObject) HasDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("descriptor")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/3325840-weightslayout?language=objc -func (c_ CNNConvolutionDataSourceObject) WeightsLayout() CNNConvolutionWeightsLayout { - rv := objc.Call[CNNConvolutionWeightsLayout](c_, objc.Sel("weightsLayout")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867050-descriptor?language=objc +func (c_ CNNConvolutionDataSourceObject) Descriptor() CNNConvolutionDescriptor { + rv := objc.Call[CNNConvolutionDescriptor](c_, objc.Sel("descriptor")) return rv } -func (c_ CNNConvolutionDataSourceObject) HasLookupTableForUInt8Kernel() bool { - return c_.RespondsToSelector(objc.Sel("lookupTableForUInt8Kernel")) +func (c_ CNNConvolutionDataSourceObject) HasCopyWithZoneDevice() bool { + return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867186-lookuptableforuint8kernel?language=objc -func (c_ CNNConvolutionDataSourceObject) LookupTableForUInt8Kernel() *float32 { - rv := objc.Call[*float32](c_, objc.Sel("lookupTableForUInt8Kernel")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/3013778-copywithzone?language=objc +func (c_ CNNConvolutionDataSourceObject) CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[objc.Object](c_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -func (c_ CNNConvolutionDataSourceObject) HasDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("descriptor")) +func (c_ CNNConvolutionDataSourceObject) HasLoad() bool { + return c_.RespondsToSelector(objc.Sel("load")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867050-descriptor?language=objc -func (c_ CNNConvolutionDataSourceObject) Descriptor() CNNConvolutionDescriptor { - rv := objc.Call[CNNConvolutionDescriptor](c_, objc.Sel("descriptor")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867049-load?language=objc +func (c_ CNNConvolutionDataSourceObject) Load() bool { + rv := objc.Call[bool](c_, objc.Sel("load")) return rv } -func (c_ CNNConvolutionDataSourceObject) HasCopyWithZoneDevice() bool { - return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) +func (c_ CNNConvolutionDataSourceObject) HasLabel() bool { + return c_.RespondsToSelector(objc.Sel("label")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/3013778-copywithzone?language=objc -func (c_ CNNConvolutionDataSourceObject) CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[objc.Object](c_, objc.Sel("copyWithZone:device:"), zone, po1) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2881197-label?language=objc +func (c_ CNNConvolutionDataSourceObject) Label() string { + rv := objc.Call[string](c_, objc.Sel("label")) return rv } -func (c_ CNNConvolutionDataSourceObject) HasRangesForUInt8Kernel() bool { - return c_.RespondsToSelector(objc.Sel("rangesForUInt8Kernel")) +func (c_ CNNConvolutionDataSourceObject) HasUpdateWithCommandBufferGradientStateSourceState() bool { + return c_.RespondsToSelector(objc.Sel("updateWithCommandBuffer:gradientState:sourceState:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867145-rangesforuint8kernel?language=objc -func (c_ CNNConvolutionDataSourceObject) RangesForUInt8Kernel() *kernel.Vector_float2 { - rv := objc.Call[*kernel.Vector_float2](c_, objc.Sel("rangesForUInt8Kernel")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2953007-updatewithcommandbuffer?language=objc +func (c_ CNNConvolutionDataSourceObject) UpdateWithCommandBufferGradientStateSourceState(commandBuffer metal.CommandBufferObject, gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) CNNConvolutionWeightsAndBiasesState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("updateWithCommandBuffer:gradientState:sourceState:"), po0, gradientState, sourceState) return rv } diff --git a/macos/mps/cnn_convolution_descriptor.gen.go b/macos/mps/cnn_convolution_descriptor.gen.go index 54792d69..e584a905 100644 --- a/macos/mps/cnn_convolution_descriptor.gen.go +++ b/macos/mps/cnn_convolution_descriptor.gen.go @@ -19,30 +19,30 @@ type _CNNConvolutionDescriptorClass struct { // An interface definition for the [CNNConvolutionDescriptor] class. type ICNNConvolutionDescriptor interface { objc.IObject - SetBatchNormalizationParametersForInferenceWithMeanVarianceGammaBetaEpsilon(mean *float32, variance *float32, gamma *float32, beta *float32, epsilon float32) EncodeWithCoder(aCoder foundation.ICoder) - KernelWidth() uint - SetKernelWidth(value uint) + SetBatchNormalizationParametersForInferenceWithMeanVarianceGammaBetaEpsilon(mean *float32, variance *float32, gamma *float32, beta *float32, epsilon float32) OutputFeatureChannels() uint SetOutputFeatureChannels(value uint) - Neuron() CNNNeuron - SetNeuron(value ICNNNeuron) InputFeatureChannels() uint SetInputFeatureChannels(value uint) + Neuron() CNNNeuron + SetNeuron(value ICNNNeuron) StrideInPixelsY() uint SetStrideInPixelsY(value uint) StrideInPixelsX() uint SetStrideInPixelsX(value uint) Groups() uint SetGroups(value uint) + DilationRateY() uint + SetDilationRateY(value uint) KernelHeight() uint SetKernelHeight(value uint) - DilationRateX() uint - SetDilationRateX(value uint) + KernelWidth() uint + SetKernelWidth(value uint) FusedNeuronDescriptor() NNNeuronDescriptor SetFusedNeuronDescriptor(value INNNeuronDescriptor) - DilationRateY() uint - SetDilationRateY(value uint) + DilationRateX() uint + SetDilationRateX(value uint) } // A description of the attributes of a convolution kernel. [Full Topic] @@ -70,18 +70,6 @@ func CNNConvolutionDescriptor_CnnConvolutionDescriptorWithKernelWidthKernelHeigh return CNNConvolutionDescriptorClass.CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannels(kernelWidth, kernelHeight, inputFeatureChannels, outputFeatureChannels) } -func (cc _CNNConvolutionDescriptorClass) CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannelsNeuronFilter(kernelWidth uint, kernelHeight uint, inputFeatureChannels uint, outputFeatureChannels uint, neuronFilter ICNNNeuron) CNNConvolutionDescriptor { - rv := objc.Call[CNNConvolutionDescriptor](cc, objc.Sel("cnnConvolutionDescriptorWithKernelWidth:kernelHeight:inputFeatureChannels:outputFeatureChannels:neuronFilter:"), kernelWidth, kernelHeight, inputFeatureChannels, outputFeatureChannels, neuronFilter) - return rv -} - -// Creates a convolution descriptor with an optional neuron filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1648876-cnnconvolutiondescriptorwithkern?language=objc -func CNNConvolutionDescriptor_CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannelsNeuronFilter(kernelWidth uint, kernelHeight uint, inputFeatureChannels uint, outputFeatureChannels uint, neuronFilter ICNNNeuron) CNNConvolutionDescriptor { - return CNNConvolutionDescriptorClass.CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannelsNeuronFilter(kernelWidth, kernelHeight, inputFeatureChannels, outputFeatureChannels, neuronFilter) -} - func (cc _CNNConvolutionDescriptorClass) Alloc() CNNConvolutionDescriptor { rv := objc.Call[CNNConvolutionDescriptor](cc, objc.Sel("alloc")) return rv @@ -102,13 +90,6 @@ func (c_ CNNConvolutionDescriptor) Init() CNNConvolutionDescriptor { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2867057-setbatchnormalizationparametersf?language=objc -func (c_ CNNConvolutionDescriptor) SetBatchNormalizationParametersForInferenceWithMeanVarianceGammaBetaEpsilon(mean *float32, variance *float32, gamma *float32, beta *float32, epsilon float32) { - objc.Call[objc.Void](c_, objc.Sel("setBatchNormalizationParametersForInferenceWithMean:variance:gamma:beta:epsilon:"), mean, variance, gamma, beta, epsilon) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2866972-encodewithcoder?language=objc @@ -116,19 +97,11 @@ func (c_ CNNConvolutionDescriptor) EncodeWithCoder(aCoder foundation.ICoder) { objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), aCoder) } -// The width of the kernel window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1648959-kernelwidth?language=objc -func (c_ CNNConvolutionDescriptor) KernelWidth() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) - return rv -} - -// The width of the kernel window. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1648959-kernelwidth?language=objc -func (c_ CNNConvolutionDescriptor) SetKernelWidth(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setKernelWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2867057-setbatchnormalizationparametersf?language=objc +func (c_ CNNConvolutionDescriptor) SetBatchNormalizationParametersForInferenceWithMeanVarianceGammaBetaEpsilon(mean *float32, variance *float32, gamma *float32, beta *float32, epsilon float32) { + objc.Call[objc.Void](c_, objc.Sel("setBatchNormalizationParametersForInferenceWithMean:variance:gamma:beta:epsilon:"), mean, variance, gamma, beta, epsilon) } // The number of feature channels per pixel in the output image. [Full Topic] @@ -146,21 +119,6 @@ func (c_ CNNConvolutionDescriptor) SetOutputFeatureChannels(value uint) { objc.Call[objc.Void](c_, objc.Sel("setOutputFeatureChannels:"), value) } -// The neuron filter to be applied as part of the convolution operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1829442-neuron?language=objc -func (c_ CNNConvolutionDescriptor) Neuron() CNNNeuron { - rv := objc.Call[CNNNeuron](c_, objc.Sel("neuron")) - return rv -} - -// The neuron filter to be applied as part of the convolution operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1829442-neuron?language=objc -func (c_ CNNConvolutionDescriptor) SetNeuron(value ICNNNeuron) { - objc.Call[objc.Void](c_, objc.Sel("setNeuron:"), value) -} - // The number of feature channels per pixel in the input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1648934-inputfeaturechannels?language=objc @@ -176,19 +134,19 @@ func (c_ CNNConvolutionDescriptor) SetInputFeatureChannels(value uint) { objc.Call[objc.Void](c_, objc.Sel("setInputFeatureChannels:"), value) } -// [Full Topic] +// The neuron filter to be applied as part of the convolution operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2867154-supportssecurecoding?language=objc -func (cc _CNNConvolutionDescriptorClass) SupportsSecureCoding() bool { - rv := objc.Call[bool](cc, objc.Sel("supportsSecureCoding")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1829442-neuron?language=objc +func (c_ CNNConvolutionDescriptor) Neuron() CNNNeuron { + rv := objc.Call[CNNNeuron](c_, objc.Sel("neuron")) return rv } -// [Full Topic] +// The neuron filter to be applied as part of the convolution operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2867154-supportssecurecoding?language=objc -func CNNConvolutionDescriptor_SupportsSecureCoding() bool { - return CNNConvolutionDescriptorClass.SupportsSecureCoding() +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1829442-neuron?language=objc +func (c_ CNNConvolutionDescriptor) SetNeuron(value ICNNNeuron) { + objc.Call[objc.Void](c_, objc.Sel("setNeuron:"), value) } // The output stride (downsampling factor) in the y dimension. [Full Topic] @@ -236,6 +194,36 @@ func (c_ CNNConvolutionDescriptor) SetGroups(value uint) { objc.Call[objc.Void](c_, objc.Sel("setGroups:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2881196-dilationratey?language=objc +func (c_ CNNConvolutionDescriptor) DilationRateY() uint { + rv := objc.Call[uint](c_, objc.Sel("dilationRateY")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2881196-dilationratey?language=objc +func (c_ CNNConvolutionDescriptor) SetDilationRateY(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setDilationRateY:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2867154-supportssecurecoding?language=objc +func (cc _CNNConvolutionDescriptorClass) SupportsSecureCoding() bool { + rv := objc.Call[bool](cc, objc.Sel("supportsSecureCoding")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2867154-supportssecurecoding?language=objc +func CNNConvolutionDescriptor_SupportsSecureCoding() bool { + return CNNConvolutionDescriptorClass.SupportsSecureCoding() +} + // The height of the kernel window. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1648904-kernelheight?language=objc @@ -251,19 +239,19 @@ func (c_ CNNConvolutionDescriptor) SetKernelHeight(value uint) { objc.Call[objc.Void](c_, objc.Sel("setKernelHeight:"), value) } -// [Full Topic] +// The width of the kernel window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2881195-dilationratex?language=objc -func (c_ CNNConvolutionDescriptor) DilationRateX() uint { - rv := objc.Call[uint](c_, objc.Sel("dilationRateX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1648959-kernelwidth?language=objc +func (c_ CNNConvolutionDescriptor) KernelWidth() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) return rv } -// [Full Topic] +// The width of the kernel window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2881195-dilationratex?language=objc -func (c_ CNNConvolutionDescriptor) SetDilationRateX(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setDilationRateX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1648959-kernelwidth?language=objc +func (c_ CNNConvolutionDescriptor) SetKernelWidth(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setKernelWidth:"), value) } // [Full Topic] @@ -283,15 +271,15 @@ func (c_ CNNConvolutionDescriptor) SetFusedNeuronDescriptor(value INNNeuronDescr // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2881196-dilationratey?language=objc -func (c_ CNNConvolutionDescriptor) DilationRateY() uint { - rv := objc.Call[uint](c_, objc.Sel("dilationRateY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2881195-dilationratex?language=objc +func (c_ CNNConvolutionDescriptor) DilationRateX() uint { + rv := objc.Call[uint](c_, objc.Sel("dilationRateX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2881196-dilationratey?language=objc -func (c_ CNNConvolutionDescriptor) SetDilationRateY(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setDilationRateY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2881195-dilationratex?language=objc +func (c_ CNNConvolutionDescriptor) SetDilationRateX(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setDilationRateX:"), value) } diff --git a/macos/mps/cnn_convolution_gradient.gen.go b/macos/mps/cnn_convolution_gradient.gen.go index bdedb846..3690c03d 100644 --- a/macos/mps/cnn_convolution_gradient.gen.go +++ b/macos/mps/cnn_convolution_gradient.gen.go @@ -23,12 +23,12 @@ type ICNNConvolutionGradient interface { ReloadWeightsAndBiasesWithCommandBufferState(commandBuffer metal.PCommandBuffer, state ICNNConvolutionWeightsAndBiasesState) ReloadWeightsAndBiasesWithCommandBufferObjectState(commandBufferObject objc.IObject, state ICNNConvolutionWeightsAndBiasesState) DataSource() CNNConvolutionDataSourceObject + SourceImageFeatureChannels() uint ChannelMultiplier() uint - Groups() uint GradientOption() CNNConvolutionGradientOption SetGradientOption(value CNNConvolutionGradientOption) - SourceImageFeatureChannels() uint SourceGradientFeatureChannels() uint + Groups() uint } // A gradient convolution kernel. [Full Topic] @@ -142,17 +142,17 @@ func (c_ CNNConvolutionGradient) DataSource() CNNConvolutionDataSourceObject { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradient/2966658-channelmultiplier?language=objc -func (c_ CNNConvolutionGradient) ChannelMultiplier() uint { - rv := objc.Call[uint](c_, objc.Sel("channelMultiplier")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradient/2947882-sourceimagefeaturechannels?language=objc +func (c_ CNNConvolutionGradient) SourceImageFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("sourceImageFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradient/2942430-groups?language=objc -func (c_ CNNConvolutionGradient) Groups() uint { - rv := objc.Call[uint](c_, objc.Sel("groups")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradient/2966658-channelmultiplier?language=objc +func (c_ CNNConvolutionGradient) ChannelMultiplier() uint { + rv := objc.Call[uint](c_, objc.Sel("channelMultiplier")) return rv } @@ -173,16 +173,16 @@ func (c_ CNNConvolutionGradient) SetGradientOption(value CNNConvolutionGradientO // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradient/2947882-sourceimagefeaturechannels?language=objc -func (c_ CNNConvolutionGradient) SourceImageFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("sourceImageFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradient/2947880-sourcegradientfeaturechannels?language=objc +func (c_ CNNConvolutionGradient) SourceGradientFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("sourceGradientFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradient/2947880-sourcegradientfeaturechannels?language=objc -func (c_ CNNConvolutionGradient) SourceGradientFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("sourceGradientFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradient/2942430-groups?language=objc +func (c_ CNNConvolutionGradient) Groups() uint { + rv := objc.Call[uint](c_, objc.Sel("groups")) return rv } diff --git a/macos/mps/cnn_convolution_gradient_node.gen.go b/macos/mps/cnn_convolution_gradient_node.gen.go index faa35c4e..211a3976 100644 --- a/macos/mps/cnn_convolution_gradient_node.gen.go +++ b/macos/mps/cnn_convolution_gradient_node.gen.go @@ -33,32 +33,32 @@ func CNNConvolutionGradientNodeFrom(ptr unsafe.Pointer) CNNConvolutionGradientNo } } -func (cc _CNNConvolutionGradientNodeClass) NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionGradientNode { +func (c_ CNNConvolutionGradientNode) InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionGradientNode { po3 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNConvolutionGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) + rv := objc.Call[CNNConvolutionGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientnode/2947984-nodewithsourcegradient?language=objc -func CNNConvolutionGradientNode_NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionGradientNode { - return CNNConvolutionGradientNodeClass.NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientnode/2947999-initwithsourcegradient?language=objc +func NewCNNConvolutionGradientNodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionGradientNode { + instance := CNNConvolutionGradientNodeClass.Alloc().InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) + instance.Autorelease() + return instance } -func (c_ CNNConvolutionGradientNode) InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionGradientNode { +func (cc _CNNConvolutionGradientNodeClass) NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionGradientNode { po3 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNConvolutionGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) + rv := objc.Call[CNNConvolutionGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientnode/2947999-initwithsourcegradient?language=objc -func NewCNNConvolutionGradientNodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionGradientNode { - instance := CNNConvolutionGradientNodeClass.Alloc().InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientnode/2947984-nodewithsourcegradient?language=objc +func CNNConvolutionGradientNode_NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionGradientNode { + return CNNConvolutionGradientNodeClass.NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) } func (cc _CNNConvolutionGradientNodeClass) Alloc() CNNConvolutionGradientNode { diff --git a/macos/mps/cnn_convolution_gradient_state.gen.go b/macos/mps/cnn_convolution_gradient_state.gen.go index 35a78a1c..80a46892 100644 --- a/macos/mps/cnn_convolution_gradient_state.gen.go +++ b/macos/mps/cnn_convolution_gradient_state.gen.go @@ -20,9 +20,9 @@ type _CNNConvolutionGradientStateClass struct { type ICNNConvolutionGradientState interface { INNGradientState GradientForWeightsLayout() CNNConvolutionWeightsLayout - GradientForBiases() metal.BufferObject - GradientForWeights() metal.BufferObject Convolution() CNNConvolution + GradientForWeights() metal.BufferObject + GradientForBiases() metal.BufferObject } // An object that exposes a gradient convolution kernel's gradient with respect to weights and biases. [Full Topic] @@ -58,45 +58,16 @@ func (c_ CNNConvolutionGradientState) Init() CNNConvolutionGradientState { return rv } -func (cc _CNNConvolutionGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNConvolutionGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionGradientState { - return CNNConvolutionGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNConvolutionGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNConvolutionGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNConvolutionGradientState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNConvolutionGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNConvolutionGradientState { - instance := CNNConvolutionGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNConvolutionGradientState) InitWithResource(resource metal.PResource) CNNConvolutionGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNConvolutionGradientState](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNConvolutionGradientState) InitWithResources(resources []metal.PResource) CNNConvolutionGradientState { + rv := objc.Call[CNNConvolutionGradientState](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNConvolutionGradientStateWithResource(resource metal.PResource) CNNConvolutionGradientState { - instance := CNNConvolutionGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNConvolutionGradientStateWithResources(resources []metal.PResource) CNNConvolutionGradientState { + instance := CNNConvolutionGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -116,72 +87,32 @@ func NewCNNConvolutionGradientStateWithDeviceBufferSize(device metal.PDevice, bu return instance } -func (c_ CNNConvolutionGradientState) InitWithResources(resources []metal.PResource) CNNConvolutionGradientState { - rv := objc.Call[CNNConvolutionGradientState](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNConvolutionGradientState) InitWithResource(resource metal.PResource) CNNConvolutionGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNConvolutionGradientState](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNConvolutionGradientStateWithResources(resources []metal.PResource) CNNConvolutionGradientState { - instance := CNNConvolutionGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNConvolutionGradientStateWithResource(resource metal.PResource) CNNConvolutionGradientState { + instance := CNNConvolutionGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNConvolutionGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNConvolutionGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNConvolutionGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNConvolutionGradientState { - return CNNConvolutionGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNConvolutionGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNConvolutionGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNConvolutionGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNConvolutionGradientState { - return CNNConvolutionGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNConvolutionGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNConvolutionGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNConvolutionGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNConvolutionGradientState { - return CNNConvolutionGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNConvolutionGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNConvolutionGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNConvolutionGradientState](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (cc _CNNConvolutionGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNConvolutionGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNConvolutionGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNConvolutionGradientState { - instance := CNNConvolutionGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNConvolutionGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionGradientState { + return CNNConvolutionGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] @@ -194,9 +125,9 @@ func (c_ CNNConvolutionGradientState) GradientForWeightsLayout() CNNConvolutionW // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientstate/2947887-gradientforbiases?language=objc -func (c_ CNNConvolutionGradientState) GradientForBiases() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForBiases")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientstate/2953958-convolution?language=objc +func (c_ CNNConvolutionGradientState) Convolution() CNNConvolution { + rv := objc.Call[CNNConvolution](c_, objc.Sel("convolution")) return rv } @@ -210,8 +141,8 @@ func (c_ CNNConvolutionGradientState) GradientForWeights() metal.BufferObject { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientstate/2953958-convolution?language=objc -func (c_ CNNConvolutionGradientState) Convolution() CNNConvolution { - rv := objc.Call[CNNConvolution](c_, objc.Sel("convolution")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientstate/2947887-gradientforbiases?language=objc +func (c_ CNNConvolutionGradientState) GradientForBiases() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForBiases")) return rv } diff --git a/macos/mps/cnn_convolution_node.gen.go b/macos/mps/cnn_convolution_node.gen.go index 0a5f8b8e..bdbc483a 100644 --- a/macos/mps/cnn_convolution_node.gen.go +++ b/macos/mps/cnn_convolution_node.gen.go @@ -18,9 +18,9 @@ type _CNNConvolutionNodeClass struct { // An interface definition for the [CNNConvolutionNode] class. type ICNNConvolutionNode interface { INNFilterNode + ConvolutionGradientState() CNNConvolutionGradientStateNode TrainingStyle() NNTrainingStyle SetTrainingStyle(value NNTrainingStyle) - ConvolutionGradientState() CNNConvolutionGradientStateNode AccumulatorPrecision() NNConvolutionAccumulatorPrecisionOption SetAccumulatorPrecision(value NNConvolutionAccumulatorPrecisionOption) } @@ -86,6 +86,14 @@ func (c_ CNNConvolutionNode) Init() CNNConvolutionNode { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionnode/2942634-convolutiongradientstate?language=objc +func (c_ CNNConvolutionNode) ConvolutionGradientState() CNNConvolutionGradientStateNode { + rv := objc.Call[CNNConvolutionGradientStateNode](c_, objc.Sel("convolutionGradientState")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionnode/3197822-trainingstyle?language=objc @@ -101,14 +109,6 @@ func (c_ CNNConvolutionNode) SetTrainingStyle(value NNTrainingStyle) { objc.Call[objc.Void](c_, objc.Sel("setTrainingStyle:"), value) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionnode/2942634-convolutiongradientstate?language=objc -func (c_ CNNConvolutionNode) ConvolutionGradientState() CNNConvolutionGradientStateNode { - rv := objc.Call[CNNConvolutionGradientStateNode](c_, objc.Sel("convolutionGradientState")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionnode/2980757-accumulatorprecision?language=objc diff --git a/macos/mps/cnn_convolution_transpose.gen.go b/macos/mps/cnn_convolution_transpose.gen.go index a9c43385..e1a22eb3 100644 --- a/macos/mps/cnn_convolution_transpose.gen.go +++ b/macos/mps/cnn_convolution_transpose.gen.go @@ -20,33 +20,25 @@ type _CNNConvolutionTransposeClass struct { // An interface definition for the [CNNConvolutionTranspose] class. type ICNNConvolutionTranspose interface { ICNNKernel + ReloadWeightsAndBiasesFromDataSource() + EncodeBatchToCommandBufferSourceImagesConvolutionGradientStates(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, convolutionGradientState *foundation.Array) *foundation.Array + EncodeBatchToCommandBufferObjectSourceImagesConvolutionGradientStates(commandBufferObject objc.IObject, sourceImage *foundation.Array, convolutionGradientState *foundation.Array) *foundation.Array ReloadWeightsAndBiasesWithCommandBufferState(commandBuffer metal.PCommandBuffer, state ICNNConvolutionWeightsAndBiasesState) ReloadWeightsAndBiasesWithCommandBufferObjectState(commandBufferObject objc.IObject, state ICNNConvolutionWeightsAndBiasesState) - EncodeToCommandBufferSourceImageConvolutionGradientStateDestinationStateDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState, outState unsafe.Pointer, isTemporary bool) Image - EncodeToCommandBufferObjectSourceImageConvolutionGradientStateDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState, outState unsafe.Pointer, isTemporary bool) Image - EncodeBatchToCommandBufferSourceImagesConvolutionGradientStatesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, convolutionGradientStates *foundation.Array, outStates unsafe.Pointer, isTemporary bool) *foundation.Array - EncodeBatchToCommandBufferObjectSourceImagesConvolutionGradientStatesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages *foundation.Array, convolutionGradientStates *foundation.Array, outStates unsafe.Pointer, isTemporary bool) *foundation.Array - EncodeToCommandBufferSourceImageConvolutionGradientState(commandBuffer metal.PCommandBuffer, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState) Image - EncodeToCommandBufferObjectSourceImageConvolutionGradientState(commandBufferObject objc.IObject, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState) Image ExportWeightsAndBiasesWithCommandBufferResultStateCanBeTemporary(commandBuffer metal.PCommandBuffer, resultStateCanBeTemporary bool) CNNConvolutionWeightsAndBiasesState ExportWeightsAndBiasesWithCommandBufferObjectResultStateCanBeTemporary(commandBufferObject objc.IObject, resultStateCanBeTemporary bool) CNNConvolutionWeightsAndBiasesState - ReloadWeightsAndBiasesFromDataSource() - EncodeToCommandBufferSourceImageConvolutionGradientStateDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState, destinationImage IImage) - EncodeToCommandBufferObjectSourceImageConvolutionGradientStateDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState, destinationImage IImage) - EncodeBatchToCommandBufferSourceImagesConvolutionGradientStatesDestinationImages(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, convolutionGradientState *foundation.Array, destinationImage *foundation.Array) - EncodeBatchToCommandBufferObjectSourceImagesConvolutionGradientStatesDestinationImages(commandBufferObject objc.IObject, sourceImage *foundation.Array, convolutionGradientState *foundation.Array, destinationImage *foundation.Array) - EncodeBatchToCommandBufferSourceImagesConvolutionGradientStates(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, convolutionGradientState *foundation.Array) *foundation.Array - EncodeBatchToCommandBufferObjectSourceImagesConvolutionGradientStates(commandBufferObject objc.IObject, sourceImage *foundation.Array, convolutionGradientState *foundation.Array) *foundation.Array + EncodeToCommandBufferSourceImageConvolutionGradientState(commandBuffer metal.PCommandBuffer, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState) Image + EncodeToCommandBufferObjectSourceImageConvolutionGradientState(commandBufferObject objc.IObject, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState) Image + DataSource() CNNConvolutionDataSourceObject OutputFeatureChannels() uint - AccumulatorPrecisionOption() NNConvolutionAccumulatorPrecisionOption - SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) - KernelOffsetY() int - SetKernelOffsetY(value int) + InputFeatureChannels() uint KernelOffsetX() int SetKernelOffsetX(value int) - DataSource() CNNConvolutionDataSourceObject Groups() uint - InputFeatureChannels() uint + KernelOffsetY() int + SetKernelOffsetY(value int) + AccumulatorPrecisionOption() NNConvolutionAccumulatorPrecisionOption + SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) } // A transposed convolution kernel. [Full Topic] @@ -130,68 +122,41 @@ func CNNConvolutionTranspose_CopyWithZoneDevice(zone unsafe.Pointer, device meta // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131774-reloadweightsandbiaseswithcomman?language=objc -func (c_ CNNConvolutionTranspose) ReloadWeightsAndBiasesWithCommandBufferState(commandBuffer metal.PCommandBuffer, state ICNNConvolutionWeightsAndBiasesState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("reloadWeightsAndBiasesWithCommandBuffer:state:"), po0, state) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131774-reloadweightsandbiaseswithcomman?language=objc -func (c_ CNNConvolutionTranspose) ReloadWeightsAndBiasesWithCommandBufferObjectState(commandBufferObject objc.IObject, state ICNNConvolutionWeightsAndBiasesState) { - objc.Call[objc.Void](c_, objc.Sel("reloadWeightsAndBiasesWithCommandBuffer:state:"), commandBufferObject, state) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131771-encodetocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeToCommandBufferSourceImageConvolutionGradientStateDestinationStateDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState, outState unsafe.Pointer, isTemporary bool) Image { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:destinationState:destinationStateIsTemporary:"), po0, sourceImage, convolutionGradientState, outState, isTemporary) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131771-encodetocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeToCommandBufferObjectSourceImageConvolutionGradientStateDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState, outState unsafe.Pointer, isTemporary bool) Image { - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:destinationState:destinationStateIsTemporary:"), commandBufferObject, sourceImage, convolutionGradientState, outState, isTemporary) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131773-reloadweightsandbiasesfromdataso?language=objc +func (c_ CNNConvolutionTranspose) ReloadWeightsAndBiasesFromDataSource() { + objc.Call[objc.Void](c_, objc.Sel("reloadWeightsAndBiasesFromDataSource")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131770-encodebatchtocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeBatchToCommandBufferSourceImagesConvolutionGradientStatesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, convolutionGradientStates *foundation.Array, outStates unsafe.Pointer, isTemporary bool) *foundation.Array { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942406-encodebatchtocommandbuffer?language=objc +func (c_ CNNConvolutionTranspose) EncodeBatchToCommandBufferSourceImagesConvolutionGradientStates(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, convolutionGradientState *foundation.Array) *foundation.Array { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:destinationStates:destinationStateIsTemporary:"), po0, sourceImages, convolutionGradientStates, outStates, isTemporary) + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:"), po0, sourceImage, convolutionGradientState) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131770-encodebatchtocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeBatchToCommandBufferObjectSourceImagesConvolutionGradientStatesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages *foundation.Array, convolutionGradientStates *foundation.Array, outStates unsafe.Pointer, isTemporary bool) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:destinationStates:destinationStateIsTemporary:"), commandBufferObject, sourceImages, convolutionGradientStates, outStates, isTemporary) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942406-encodebatchtocommandbuffer?language=objc +func (c_ CNNConvolutionTranspose) EncodeBatchToCommandBufferObjectSourceImagesConvolutionGradientStates(commandBufferObject objc.IObject, sourceImage *foundation.Array, convolutionGradientState *foundation.Array) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:"), commandBufferObject, sourceImage, convolutionGradientState) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942409-encodetocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeToCommandBufferSourceImageConvolutionGradientState(commandBuffer metal.PCommandBuffer, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState) Image { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131774-reloadweightsandbiaseswithcomman?language=objc +func (c_ CNNConvolutionTranspose) ReloadWeightsAndBiasesWithCommandBufferState(commandBuffer metal.PCommandBuffer, state ICNNConvolutionWeightsAndBiasesState) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:"), po0, sourceImage, convolutionGradientState) - return rv + objc.Call[objc.Void](c_, objc.Sel("reloadWeightsAndBiasesWithCommandBuffer:state:"), po0, state) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942409-encodetocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeToCommandBufferObjectSourceImageConvolutionGradientState(commandBufferObject objc.IObject, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState) Image { - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:"), commandBufferObject, sourceImage, convolutionGradientState) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131774-reloadweightsandbiaseswithcomman?language=objc +func (c_ CNNConvolutionTranspose) ReloadWeightsAndBiasesWithCommandBufferObjectState(commandBufferObject objc.IObject, state ICNNConvolutionWeightsAndBiasesState) { + objc.Call[objc.Void](c_, objc.Sel("reloadWeightsAndBiasesWithCommandBuffer:state:"), commandBufferObject, state) } // [Full Topic] @@ -213,79 +178,66 @@ func (c_ CNNConvolutionTranspose) ExportWeightsAndBiasesWithCommandBufferObjectR // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131773-reloadweightsandbiasesfromdataso?language=objc -func (c_ CNNConvolutionTranspose) ReloadWeightsAndBiasesFromDataSource() { - objc.Call[objc.Void](c_, objc.Sel("reloadWeightsAndBiasesFromDataSource")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942429-encodetocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeToCommandBufferSourceImageConvolutionGradientStateDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState, destinationImage IImage) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942409-encodetocommandbuffer?language=objc +func (c_ CNNConvolutionTranspose) EncodeToCommandBufferSourceImageConvolutionGradientState(commandBuffer metal.PCommandBuffer, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState) Image { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:destinationImage:"), po0, sourceImage, convolutionGradientState, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942429-encodetocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeToCommandBufferObjectSourceImageConvolutionGradientStateDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState, destinationImage IImage) { - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:destinationImage:"), commandBufferObject, sourceImage, convolutionGradientState, destinationImage) + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:"), po0, sourceImage, convolutionGradientState) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942411-encodebatchtocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeBatchToCommandBufferSourceImagesConvolutionGradientStatesDestinationImages(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, convolutionGradientState *foundation.Array, destinationImage *foundation.Array) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:destinationImages:"), po0, sourceImage, convolutionGradientState, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942409-encodetocommandbuffer?language=objc +func (c_ CNNConvolutionTranspose) EncodeToCommandBufferObjectSourceImageConvolutionGradientState(commandBufferObject objc.IObject, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState) Image { + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:"), commandBufferObject, sourceImage, convolutionGradientState) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942411-encodebatchtocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeBatchToCommandBufferObjectSourceImagesConvolutionGradientStatesDestinationImages(commandBufferObject objc.IObject, sourceImage *foundation.Array, convolutionGradientState *foundation.Array, destinationImage *foundation.Array) { - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:destinationImages:"), commandBufferObject, sourceImage, convolutionGradientState, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131769-datasource?language=objc +func (c_ CNNConvolutionTranspose) DataSource() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](c_, objc.Sel("dataSource")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942406-encodebatchtocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeBatchToCommandBufferSourceImagesConvolutionGradientStates(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, convolutionGradientState *foundation.Array) *foundation.Array { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:"), po0, sourceImage, convolutionGradientState) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867016-outputfeaturechannels?language=objc +func (c_ CNNConvolutionTranspose) OutputFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("outputFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2942406-encodebatchtocommandbuffer?language=objc -func (c_ CNNConvolutionTranspose) EncodeBatchToCommandBufferObjectSourceImagesConvolutionGradientStates(commandBufferObject objc.IObject, sourceImage *foundation.Array, convolutionGradientState *foundation.Array) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:"), commandBufferObject, sourceImage, convolutionGradientState) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867174-inputfeaturechannels?language=objc +func (c_ CNNConvolutionTranspose) InputFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("inputFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867016-outputfeaturechannels?language=objc -func (c_ CNNConvolutionTranspose) OutputFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("outputFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867176-kerneloffsetx?language=objc +func (c_ CNNConvolutionTranspose) KernelOffsetX() int { + rv := objc.Call[int](c_, objc.Sel("kernelOffsetX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2951924-accumulatorprecisionoption?language=objc -func (c_ CNNConvolutionTranspose) AccumulatorPrecisionOption() NNConvolutionAccumulatorPrecisionOption { - rv := objc.Call[NNConvolutionAccumulatorPrecisionOption](c_, objc.Sel("accumulatorPrecisionOption")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867176-kerneloffsetx?language=objc +func (c_ CNNConvolutionTranspose) SetKernelOffsetX(value int) { + objc.Call[objc.Void](c_, objc.Sel("setKernelOffsetX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2951924-accumulatorprecisionoption?language=objc -func (c_ CNNConvolutionTranspose) SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) { - objc.Call[objc.Void](c_, objc.Sel("setAccumulatorPrecisionOption:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867099-groups?language=objc +func (c_ CNNConvolutionTranspose) Groups() uint { + rv := objc.Call[uint](c_, objc.Sel("groups")) + return rv } // [Full Topic] @@ -305,39 +257,15 @@ func (c_ CNNConvolutionTranspose) SetKernelOffsetY(value int) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867176-kerneloffsetx?language=objc -func (c_ CNNConvolutionTranspose) KernelOffsetX() int { - rv := objc.Call[int](c_, objc.Sel("kernelOffsetX")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867176-kerneloffsetx?language=objc -func (c_ CNNConvolutionTranspose) SetKernelOffsetX(value int) { - objc.Call[objc.Void](c_, objc.Sel("setKernelOffsetX:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131769-datasource?language=objc -func (c_ CNNConvolutionTranspose) DataSource() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](c_, objc.Sel("dataSource")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867099-groups?language=objc -func (c_ CNNConvolutionTranspose) Groups() uint { - rv := objc.Call[uint](c_, objc.Sel("groups")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2951924-accumulatorprecisionoption?language=objc +func (c_ CNNConvolutionTranspose) AccumulatorPrecisionOption() NNConvolutionAccumulatorPrecisionOption { + rv := objc.Call[NNConvolutionAccumulatorPrecisionOption](c_, objc.Sel("accumulatorPrecisionOption")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867174-inputfeaturechannels?language=objc -func (c_ CNNConvolutionTranspose) InputFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("inputFeatureChannels")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2951924-accumulatorprecisionoption?language=objc +func (c_ CNNConvolutionTranspose) SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) { + objc.Call[objc.Void](c_, objc.Sel("setAccumulatorPrecisionOption:"), value) } diff --git a/macos/mps/cnn_convolution_transpose_gradient.gen.go b/macos/mps/cnn_convolution_transpose_gradient.gen.go index f996aa2c..40af307d 100644 --- a/macos/mps/cnn_convolution_transpose_gradient.gen.go +++ b/macos/mps/cnn_convolution_transpose_gradient.gen.go @@ -19,15 +19,15 @@ type _CNNConvolutionTransposeGradientClass struct { // An interface definition for the [CNNConvolutionTransposeGradient] class. type ICNNConvolutionTransposeGradient interface { ICNNGradientKernel + ReloadWeightsAndBiasesFromDataSource() ReloadWeightsAndBiasesWithCommandBufferState(commandBuffer metal.PCommandBuffer, state ICNNConvolutionWeightsAndBiasesState) ReloadWeightsAndBiasesWithCommandBufferObjectState(commandBufferObject objc.IObject, state ICNNConvolutionWeightsAndBiasesState) - ReloadWeightsAndBiasesFromDataSource() + DataSource() CNNConvolutionDataSourceObject SourceImageFeatureChannels() uint GradientOption() CNNConvolutionGradientOption SetGradientOption(value CNNConvolutionGradientOption) SourceGradientFeatureChannels() uint Groups() uint - DataSource() CNNConvolutionDataSourceObject } // [Full Topic] @@ -109,6 +109,13 @@ func CNNConvolutionTransposeGradient_CopyWithZoneDevice(zone unsafe.Pointer, dev return instance } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposegradient/3131785-reloadweightsandbiasesfromdataso?language=objc +func (c_ CNNConvolutionTransposeGradient) ReloadWeightsAndBiasesFromDataSource() { + objc.Call[objc.Void](c_, objc.Sel("reloadWeightsAndBiasesFromDataSource")) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposegradient/3131786-reloadweightsandbiaseswithcomman?language=objc @@ -126,9 +133,10 @@ func (c_ CNNConvolutionTransposeGradient) ReloadWeightsAndBiasesWithCommandBuffe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposegradient/3131785-reloadweightsandbiasesfromdataso?language=objc -func (c_ CNNConvolutionTransposeGradient) ReloadWeightsAndBiasesFromDataSource() { - objc.Call[objc.Void](c_, objc.Sel("reloadWeightsAndBiasesFromDataSource")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposegradient/3131780-datasource?language=objc +func (c_ CNNConvolutionTransposeGradient) DataSource() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](c_, objc.Sel("dataSource")) + return rv } // [Full Topic] @@ -169,11 +177,3 @@ func (c_ CNNConvolutionTransposeGradient) Groups() uint { rv := objc.Call[uint](c_, objc.Sel("groups")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposegradient/3131780-datasource?language=objc -func (c_ CNNConvolutionTransposeGradient) DataSource() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](c_, objc.Sel("dataSource")) - return rv -} diff --git a/macos/mps/cnn_convolution_transpose_gradient_node.gen.go b/macos/mps/cnn_convolution_transpose_gradient_node.gen.go index 31e68d14..3fac7d3f 100644 --- a/macos/mps/cnn_convolution_transpose_gradient_node.gen.go +++ b/macos/mps/cnn_convolution_transpose_gradient_node.gen.go @@ -33,32 +33,32 @@ func CNNConvolutionTransposeGradientNodeFrom(ptr unsafe.Pointer) CNNConvolutionT } } -func (cc _CNNConvolutionTransposeGradientNodeClass) NodeWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionTransposeGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { +func (c_ CNNConvolutionTransposeGradientNode) InitWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionTransposeGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { po3 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNConvolutionTransposeGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionTransposeGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) + rv := objc.Call[CNNConvolutionTransposeGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionTransposeGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposegradientnode/3143551-nodewithsourcegradient?language=objc -func CNNConvolutionTransposeGradientNode_NodeWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionTransposeGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { - return CNNConvolutionTransposeGradientNodeClass.NodeWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposegradientnode/3143550-initwithsourcegradient?language=objc +func NewCNNConvolutionTransposeGradientNodeWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionTransposeGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { + instance := CNNConvolutionTransposeGradientNodeClass.Alloc().InitWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) + instance.Autorelease() + return instance } -func (c_ CNNConvolutionTransposeGradientNode) InitWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionTransposeGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { +func (cc _CNNConvolutionTransposeGradientNodeClass) NodeWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionTransposeGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { po3 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNConvolutionTransposeGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionTransposeGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) + rv := objc.Call[CNNConvolutionTransposeGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionTransposeGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposegradientnode/3143550-initwithsourcegradient?language=objc -func NewCNNConvolutionTransposeGradientNodeWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionTransposeGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { - instance := CNNConvolutionTransposeGradientNodeClass.Alloc().InitWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposegradientnode/3143551-nodewithsourcegradient?language=objc +func CNNConvolutionTransposeGradientNode_NodeWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionTransposeGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { + return CNNConvolutionTransposeGradientNodeClass.NodeWithSourceGradientSourceImageConvolutionTransposeGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) } func (cc _CNNConvolutionTransposeGradientNodeClass) Alloc() CNNConvolutionTransposeGradientNode { @@ -81,30 +81,30 @@ func (c_ CNNConvolutionTransposeGradientNode) Init() CNNConvolutionTransposeGrad return rv } -func (cc _CNNConvolutionTransposeGradientNodeClass) NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { +func (c_ CNNConvolutionTransposeGradientNode) InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { po3 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNConvolutionTransposeGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) + rv := objc.Call[CNNConvolutionTransposeGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientnode/2947984-nodewithsourcegradient?language=objc -func CNNConvolutionTransposeGradientNode_NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { - return CNNConvolutionTransposeGradientNodeClass.NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientnode/2947999-initwithsourcegradient?language=objc +func NewCNNConvolutionTransposeGradientNodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { + instance := CNNConvolutionTransposeGradientNodeClass.Alloc().InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) + instance.Autorelease() + return instance } -func (c_ CNNConvolutionTransposeGradientNode) InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { +func (cc _CNNConvolutionTransposeGradientNodeClass) NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { po3 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNConvolutionTransposeGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) + rv := objc.Call[CNNConvolutionTransposeGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientnode/2947999-initwithsourcegradient?language=objc -func NewCNNConvolutionTransposeGradientNodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { - instance := CNNConvolutionTransposeGradientNodeClass.Alloc().InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientnode/2947984-nodewithsourcegradient?language=objc +func CNNConvolutionTransposeGradientNode_NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeGradientNode { + return CNNConvolutionTransposeGradientNodeClass.NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) } diff --git a/macos/mps/cnn_convolution_transpose_gradient_state.gen.go b/macos/mps/cnn_convolution_transpose_gradient_state.gen.go index 44025a67..931dd35b 100644 --- a/macos/mps/cnn_convolution_transpose_gradient_state.gen.go +++ b/macos/mps/cnn_convolution_transpose_gradient_state.gen.go @@ -55,45 +55,16 @@ func (c_ CNNConvolutionTransposeGradientState) Init() CNNConvolutionTransposeGra return rv } -func (cc _CNNConvolutionTransposeGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionTransposeGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNConvolutionTransposeGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionTransposeGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionTransposeGradientState { - return CNNConvolutionTransposeGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNConvolutionTransposeGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNConvolutionTransposeGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNConvolutionTransposeGradientState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNConvolutionTransposeGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNConvolutionTransposeGradientState { - instance := CNNConvolutionTransposeGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNConvolutionTransposeGradientState) InitWithResource(resource metal.PResource) CNNConvolutionTransposeGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNConvolutionTransposeGradientState](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNConvolutionTransposeGradientState) InitWithResources(resources []metal.PResource) CNNConvolutionTransposeGradientState { + rv := objc.Call[CNNConvolutionTransposeGradientState](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNConvolutionTransposeGradientStateWithResource(resource metal.PResource) CNNConvolutionTransposeGradientState { - instance := CNNConvolutionTransposeGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNConvolutionTransposeGradientStateWithResources(resources []metal.PResource) CNNConvolutionTransposeGradientState { + instance := CNNConvolutionTransposeGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -113,72 +84,32 @@ func NewCNNConvolutionTransposeGradientStateWithDeviceBufferSize(device metal.PD return instance } -func (c_ CNNConvolutionTransposeGradientState) InitWithResources(resources []metal.PResource) CNNConvolutionTransposeGradientState { - rv := objc.Call[CNNConvolutionTransposeGradientState](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNConvolutionTransposeGradientState) InitWithResource(resource metal.PResource) CNNConvolutionTransposeGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNConvolutionTransposeGradientState](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNConvolutionTransposeGradientStateWithResources(resources []metal.PResource) CNNConvolutionTransposeGradientState { - instance := CNNConvolutionTransposeGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNConvolutionTransposeGradientStateWithResource(resource metal.PResource) CNNConvolutionTransposeGradientState { + instance := CNNConvolutionTransposeGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNConvolutionTransposeGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNConvolutionTransposeGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNConvolutionTransposeGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionTransposeGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNConvolutionTransposeGradientState { - return CNNConvolutionTransposeGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNConvolutionTransposeGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNConvolutionTransposeGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNConvolutionTransposeGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionTransposeGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNConvolutionTransposeGradientState { - return CNNConvolutionTransposeGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNConvolutionTransposeGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNConvolutionTransposeGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNConvolutionTransposeGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionTransposeGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNConvolutionTransposeGradientState { - return CNNConvolutionTransposeGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNConvolutionTransposeGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNConvolutionTransposeGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNConvolutionTransposeGradientState](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (cc _CNNConvolutionTransposeGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionTransposeGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNConvolutionTransposeGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNConvolutionTransposeGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNConvolutionTransposeGradientState { - instance := CNNConvolutionTransposeGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNConvolutionTransposeGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionTransposeGradientState { + return CNNConvolutionTransposeGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] diff --git a/macos/mps/cnn_convolution_transpose_node.gen.go b/macos/mps/cnn_convolution_transpose_node.gen.go index 95435a2b..87957a05 100644 --- a/macos/mps/cnn_convolution_transpose_node.gen.go +++ b/macos/mps/cnn_convolution_transpose_node.gen.go @@ -33,32 +33,32 @@ func CNNConvolutionTransposeNodeFrom(ptr unsafe.Pointer) CNNConvolutionTranspose } } -func (c_ CNNConvolutionTransposeNode) InitWithSourceConvolutionGradientStateWeights(sourceNode INNImageNode, convolutionGradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeNode { +func (cc _CNNConvolutionTransposeNodeClass) NodeWithSourceConvolutionGradientStateWeights(sourceNode INNImageNode, convolutionGradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeNode { po2 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNConvolutionTransposeNode](c_, objc.Sel("initWithSource:convolutionGradientState:weights:"), sourceNode, convolutionGradientState, po2) + rv := objc.Call[CNNConvolutionTransposeNode](cc, objc.Sel("nodeWithSource:convolutionGradientState:weights:"), sourceNode, convolutionGradientState, po2) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposenode/2942641-initwithsource?language=objc -func NewCNNConvolutionTransposeNodeWithSourceConvolutionGradientStateWeights(sourceNode INNImageNode, convolutionGradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeNode { - instance := CNNConvolutionTransposeNodeClass.Alloc().InitWithSourceConvolutionGradientStateWeights(sourceNode, convolutionGradientState, weights) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposenode/2942636-nodewithsource?language=objc +func CNNConvolutionTransposeNode_NodeWithSourceConvolutionGradientStateWeights(sourceNode INNImageNode, convolutionGradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeNode { + return CNNConvolutionTransposeNodeClass.NodeWithSourceConvolutionGradientStateWeights(sourceNode, convolutionGradientState, weights) } -func (cc _CNNConvolutionTransposeNodeClass) NodeWithSourceConvolutionGradientStateWeights(sourceNode INNImageNode, convolutionGradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeNode { +func (c_ CNNConvolutionTransposeNode) InitWithSourceConvolutionGradientStateWeights(sourceNode INNImageNode, convolutionGradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeNode { po2 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNConvolutionTransposeNode](cc, objc.Sel("nodeWithSource:convolutionGradientState:weights:"), sourceNode, convolutionGradientState, po2) + rv := objc.Call[CNNConvolutionTransposeNode](c_, objc.Sel("initWithSource:convolutionGradientState:weights:"), sourceNode, convolutionGradientState, po2) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposenode/2942636-nodewithsource?language=objc -func CNNConvolutionTransposeNode_NodeWithSourceConvolutionGradientStateWeights(sourceNode INNImageNode, convolutionGradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeNode { - return CNNConvolutionTransposeNodeClass.NodeWithSourceConvolutionGradientStateWeights(sourceNode, convolutionGradientState, weights) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposenode/2942641-initwithsource?language=objc +func NewCNNConvolutionTransposeNodeWithSourceConvolutionGradientStateWeights(sourceNode INNImageNode, convolutionGradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNConvolutionTransposeNode { + instance := CNNConvolutionTransposeNodeClass.Alloc().InitWithSourceConvolutionGradientStateWeights(sourceNode, convolutionGradientState, weights) + instance.Autorelease() + return instance } func (cc _CNNConvolutionTransposeNodeClass) Alloc() CNNConvolutionTransposeNode { diff --git a/macos/mps/cnn_convolution_weights_and_biases_state.gen.go b/macos/mps/cnn_convolution_weights_and_biases_state.gen.go index b16bc051..dae2c7c4 100644 --- a/macos/mps/cnn_convolution_weights_and_biases_state.gen.go +++ b/macos/mps/cnn_convolution_weights_and_biases_state.gen.go @@ -19,10 +19,10 @@ type _CNNConvolutionWeightsAndBiasesStateClass struct { // An interface definition for the [CNNConvolutionWeightsAndBiasesState] class. type ICNNConvolutionWeightsAndBiasesState interface { IState - BiasesOffset() uint WeightsOffset() uint - Biases() metal.BufferObject Weights() metal.BufferObject + BiasesOffset() uint + Biases() metal.BufferObject } // A class that stores weights and biases. [Full Topic] @@ -38,49 +38,33 @@ func CNNConvolutionWeightsAndBiasesStateFrom(ptr unsafe.Pointer) CNNConvolutionW } } -func (c_ CNNConvolutionWeightsAndBiasesState) InitWithWeightsBiases(weights metal.PBuffer, biases metal.PBuffer) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLBuffer", weights) - po1 := objc.WrapAsProtocol("MTLBuffer", biases) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithWeights:biases:"), po0, po1) +func (c_ CNNConvolutionWeightsAndBiasesState) InitWithDeviceCnnConvolutionDescriptor(device metal.PDevice, descriptor ICNNConvolutionDescriptor) CNNConvolutionWeightsAndBiasesState { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithDevice:cnnConvolutionDescriptor:"), po0, descriptor) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/2953008-initwithweights?language=objc -func NewCNNConvolutionWeightsAndBiasesStateWithWeightsBiases(weights metal.PBuffer, biases metal.PBuffer) CNNConvolutionWeightsAndBiasesState { - instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithWeightsBiases(weights, biases) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/2953004-initwithdevice?language=objc +func NewCNNConvolutionWeightsAndBiasesStateWithDeviceCnnConvolutionDescriptor(device metal.PDevice, descriptor ICNNConvolutionDescriptor) CNNConvolutionWeightsAndBiasesState { + instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithDeviceCnnConvolutionDescriptor(device, descriptor) instance.Autorelease() return instance } -func (c_ CNNConvolutionWeightsAndBiasesState) InitWithWeightsWeightsOffsetBiasesBiasesOffsetCnnConvolutionDescriptor(weights metal.PBuffer, weightsOffset uint, biases metal.PBuffer, biasesOffset uint, descriptor ICNNConvolutionDescriptor) CNNConvolutionWeightsAndBiasesState { +func (c_ CNNConvolutionWeightsAndBiasesState) InitWithWeightsBiases(weights metal.PBuffer, biases metal.PBuffer) CNNConvolutionWeightsAndBiasesState { po0 := objc.WrapAsProtocol("MTLBuffer", weights) - po2 := objc.WrapAsProtocol("MTLBuffer", biases) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithWeights:weightsOffset:biases:biasesOffset:cnnConvolutionDescriptor:"), po0, weightsOffset, po2, biasesOffset, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/3325843-initwithweights?language=objc -func NewCNNConvolutionWeightsAndBiasesStateWithWeightsWeightsOffsetBiasesBiasesOffsetCnnConvolutionDescriptor(weights metal.PBuffer, weightsOffset uint, biases metal.PBuffer, biasesOffset uint, descriptor ICNNConvolutionDescriptor) CNNConvolutionWeightsAndBiasesState { - instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithWeightsWeightsOffsetBiasesBiasesOffsetCnnConvolutionDescriptor(weights, weightsOffset, biases, biasesOffset, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNConvolutionWeightsAndBiasesState) InitWithDeviceCnnConvolutionDescriptor(device metal.PDevice, descriptor ICNNConvolutionDescriptor) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithDevice:cnnConvolutionDescriptor:"), po0, descriptor) + po1 := objc.WrapAsProtocol("MTLBuffer", biases) + rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithWeights:biases:"), po0, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/2953004-initwithdevice?language=objc -func NewCNNConvolutionWeightsAndBiasesStateWithDeviceCnnConvolutionDescriptor(device metal.PDevice, descriptor ICNNConvolutionDescriptor) CNNConvolutionWeightsAndBiasesState { - instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithDeviceCnnConvolutionDescriptor(device, descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/2953008-initwithweights?language=objc +func NewCNNConvolutionWeightsAndBiasesStateWithWeightsBiases(weights metal.PBuffer, biases metal.PBuffer) CNNConvolutionWeightsAndBiasesState { + instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithWeightsBiases(weights, biases) instance.Autorelease() return instance } @@ -118,45 +102,16 @@ func (c_ CNNConvolutionWeightsAndBiasesState) Init() CNNConvolutionWeightsAndBia return rv } -func (cc _CNNConvolutionWeightsAndBiasesStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionWeightsAndBiasesState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionWeightsAndBiasesState { - return CNNConvolutionWeightsAndBiasesStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNConvolutionWeightsAndBiasesState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNConvolutionWeightsAndBiasesStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNConvolutionWeightsAndBiasesState { - instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNConvolutionWeightsAndBiasesState) InitWithResource(resource metal.PResource) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNConvolutionWeightsAndBiasesState) InitWithResources(resources []metal.PResource) CNNConvolutionWeightsAndBiasesState { + rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNConvolutionWeightsAndBiasesStateWithResource(resource metal.PResource) CNNConvolutionWeightsAndBiasesState { - instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNConvolutionWeightsAndBiasesStateWithResources(resources []metal.PResource) CNNConvolutionWeightsAndBiasesState { + instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -176,74 +131,50 @@ func NewCNNConvolutionWeightsAndBiasesStateWithDeviceBufferSize(device metal.PDe return instance } -func (c_ CNNConvolutionWeightsAndBiasesState) InitWithResources(resources []metal.PResource) CNNConvolutionWeightsAndBiasesState { - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNConvolutionWeightsAndBiasesState) InitWithResource(resource metal.PResource) CNNConvolutionWeightsAndBiasesState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNConvolutionWeightsAndBiasesStateWithResources(resources []metal.PResource) CNNConvolutionWeightsAndBiasesState { - instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNConvolutionWeightsAndBiasesStateWithResource(resource metal.PResource) CNNConvolutionWeightsAndBiasesState { + instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNConvolutionWeightsAndBiasesStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) +func (cc _CNNConvolutionWeightsAndBiasesStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionWeightsAndBiasesState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNConvolutionWeightsAndBiasesState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionWeightsAndBiasesState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNConvolutionWeightsAndBiasesState { - return CNNConvolutionWeightsAndBiasesStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNConvolutionWeightsAndBiasesStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNConvolutionWeightsAndBiasesState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionWeightsAndBiasesState { + return CNNConvolutionWeightsAndBiasesStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionWeightsAndBiasesState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNConvolutionWeightsAndBiasesState { - return CNNConvolutionWeightsAndBiasesStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNConvolutionWeightsAndBiasesStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/3325844-weightsoffset?language=objc +func (c_ CNNConvolutionWeightsAndBiasesState) WeightsOffset() uint { + rv := objc.Call[uint](c_, objc.Sel("weightsOffset")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionWeightsAndBiasesState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNConvolutionWeightsAndBiasesState { - return CNNConvolutionWeightsAndBiasesStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNConvolutionWeightsAndBiasesState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/2953006-weights?language=objc +func (c_ CNNConvolutionWeightsAndBiasesState) Weights() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("weights")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNConvolutionWeightsAndBiasesStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNConvolutionWeightsAndBiasesState { - instance := CNNConvolutionWeightsAndBiasesStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/3325842-biasesoffset?language=objc @@ -252,14 +183,6 @@ func (c_ CNNConvolutionWeightsAndBiasesState) BiasesOffset() uint { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/3325844-weightsoffset?language=objc -func (c_ CNNConvolutionWeightsAndBiasesState) WeightsOffset() uint { - rv := objc.Call[uint](c_, objc.Sel("weightsOffset")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/2953002-biases?language=objc @@ -267,11 +190,3 @@ func (c_ CNNConvolutionWeightsAndBiasesState) Biases() metal.BufferObject { rv := objc.Call[metal.BufferObject](c_, objc.Sel("biases")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/2953006-weights?language=objc -func (c_ CNNConvolutionWeightsAndBiasesState) Weights() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("weights")) - return rv -} diff --git a/macos/mps/cnn_cross_channel_normalization.gen.go b/macos/mps/cnn_cross_channel_normalization.gen.go index 7b325241..2801de82 100644 --- a/macos/mps/cnn_cross_channel_normalization.gen.go +++ b/macos/mps/cnn_cross_channel_normalization.gen.go @@ -19,13 +19,13 @@ type _CNNCrossChannelNormalizationClass struct { // An interface definition for the [CNNCrossChannelNormalization] class. type ICNNCrossChannelNormalization interface { ICNNKernel + KernelSize() uint Beta() float32 SetBeta(value float32) - Alpha() float32 - SetAlpha(value float32) - KernelSize() uint Delta() float32 SetDelta(value float32) + Alpha() float32 + SetAlpha(value float32) } // A normalization kernel applied across feature channels. [Full Topic] @@ -106,6 +106,14 @@ func CNNCrossChannelNormalization_CopyWithZoneDevice(zone unsafe.Pointer, device return instance } +// The size of the square kernel window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalization/1648811-kernelsize?language=objc +func (c_ CNNCrossChannelNormalization) KernelSize() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelSize")) + return rv +} + // The "beta" variable of the kernel function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalization/1648879-beta?language=objc @@ -121,29 +129,6 @@ func (c_ CNNCrossChannelNormalization) SetBeta(value float32) { objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) } -// The "alpha" variable of the kernel function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalization/1648896-alpha?language=objc -func (c_ CNNCrossChannelNormalization) Alpha() float32 { - rv := objc.Call[float32](c_, objc.Sel("alpha")) - return rv -} - -// The "alpha" variable of the kernel function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalization/1648896-alpha?language=objc -func (c_ CNNCrossChannelNormalization) SetAlpha(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) -} - -// The size of the square kernel window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalization/1648811-kernelsize?language=objc -func (c_ CNNCrossChannelNormalization) KernelSize() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelSize")) - return rv -} - // The "delta" variable of the kernel function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalization/1648881-delta?language=objc @@ -158,3 +143,18 @@ func (c_ CNNCrossChannelNormalization) Delta() float32 { func (c_ CNNCrossChannelNormalization) SetDelta(value float32) { objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } + +// The "alpha" variable of the kernel function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalization/1648896-alpha?language=objc +func (c_ CNNCrossChannelNormalization) Alpha() float32 { + rv := objc.Call[float32](c_, objc.Sel("alpha")) + return rv +} + +// The "alpha" variable of the kernel function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalization/1648896-alpha?language=objc +func (c_ CNNCrossChannelNormalization) SetAlpha(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +} diff --git a/macos/mps/cnn_cross_channel_normalization_gradient.gen.go b/macos/mps/cnn_cross_channel_normalization_gradient.gen.go index 6931d173..0a7f6355 100644 --- a/macos/mps/cnn_cross_channel_normalization_gradient.gen.go +++ b/macos/mps/cnn_cross_channel_normalization_gradient.gen.go @@ -19,13 +19,13 @@ type _CNNCrossChannelNormalizationGradientClass struct { // An interface definition for the [CNNCrossChannelNormalizationGradient] class. type ICNNCrossChannelNormalizationGradient interface { ICNNGradientKernel - Alpha() float32 - SetAlpha(value float32) + KernelSize() uint Beta() float32 SetBeta(value float32) Delta() float32 SetDelta(value float32) - KernelSize() uint + Alpha() float32 + SetAlpha(value float32) } // A gradient normalization kernel applied across feature channels. [Full Topic] @@ -108,19 +108,12 @@ func CNNCrossChannelNormalizationGradient_CopyWithZoneDevice(zone unsafe.Pointer // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalizationgradient/2942464-alpha?language=objc -func (c_ CNNCrossChannelNormalizationGradient) Alpha() float32 { - rv := objc.Call[float32](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalizationgradient/2942468-kernelsize?language=objc +func (c_ CNNCrossChannelNormalizationGradient) KernelSize() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelSize")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalizationgradient/2942464-alpha?language=objc -func (c_ CNNCrossChannelNormalizationGradient) SetAlpha(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalizationgradient/2942477-beta?language=objc @@ -153,8 +146,15 @@ func (c_ CNNCrossChannelNormalizationGradient) SetDelta(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalizationgradient/2942468-kernelsize?language=objc -func (c_ CNNCrossChannelNormalizationGradient) KernelSize() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelSize")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalizationgradient/2942464-alpha?language=objc +func (c_ CNNCrossChannelNormalizationGradient) Alpha() float32 { + rv := objc.Call[float32](c_, objc.Sel("alpha")) return rv } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalizationgradient/2942464-alpha?language=objc +func (c_ CNNCrossChannelNormalizationGradient) SetAlpha(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +} diff --git a/macos/mps/cnn_cross_channel_normalization_node.gen.go b/macos/mps/cnn_cross_channel_normalization_node.gen.go index 11b3a406..51ecc7a8 100644 --- a/macos/mps/cnn_cross_channel_normalization_node.gen.go +++ b/macos/mps/cnn_cross_channel_normalization_node.gen.go @@ -61,20 +61,6 @@ func NewCNNCrossChannelNormalizationNodeWithSource(sourceNode INNImageNode) CNNC return instance } -func (c_ CNNCrossChannelNormalizationNode) InitWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNCrossChannelNormalizationNode { - rv := objc.Call[CNNCrossChannelNormalizationNode](c_, objc.Sel("initWithSource:kernelSize:"), sourceNode, kernelSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalizationnode/2866456-initwithsource?language=objc -func NewCNNCrossChannelNormalizationNodeWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNCrossChannelNormalizationNode { - instance := CNNCrossChannelNormalizationNodeClass.Alloc().InitWithSourceKernelSize(sourceNode, kernelSize) - instance.Autorelease() - return instance -} - func (cc _CNNCrossChannelNormalizationNodeClass) Alloc() CNNCrossChannelNormalizationNode { rv := objc.Call[CNNCrossChannelNormalizationNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_depth_wise_convolution_descriptor.gen.go b/macos/mps/cnn_depth_wise_convolution_descriptor.gen.go index 50e8d078..11f9d294 100644 --- a/macos/mps/cnn_depth_wise_convolution_descriptor.gen.go +++ b/macos/mps/cnn_depth_wise_convolution_descriptor.gen.go @@ -66,18 +66,6 @@ func CNNDepthWiseConvolutionDescriptor_CnnConvolutionDescriptorWithKernelWidthKe return CNNDepthWiseConvolutionDescriptorClass.CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannels(kernelWidth, kernelHeight, inputFeatureChannels, outputFeatureChannels) } -func (cc _CNNDepthWiseConvolutionDescriptorClass) CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannelsNeuronFilter(kernelWidth uint, kernelHeight uint, inputFeatureChannels uint, outputFeatureChannels uint, neuronFilter ICNNNeuron) CNNDepthWiseConvolutionDescriptor { - rv := objc.Call[CNNDepthWiseConvolutionDescriptor](cc, objc.Sel("cnnConvolutionDescriptorWithKernelWidth:kernelHeight:inputFeatureChannels:outputFeatureChannels:neuronFilter:"), kernelWidth, kernelHeight, inputFeatureChannels, outputFeatureChannels, neuronFilter) - return rv -} - -// Creates a convolution descriptor with an optional neuron filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1648876-cnnconvolutiondescriptorwithkern?language=objc -func CNNDepthWiseConvolutionDescriptor_CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannelsNeuronFilter(kernelWidth uint, kernelHeight uint, inputFeatureChannels uint, outputFeatureChannels uint, neuronFilter ICNNNeuron) CNNDepthWiseConvolutionDescriptor { - return CNNDepthWiseConvolutionDescriptorClass.CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannelsNeuronFilter(kernelWidth, kernelHeight, inputFeatureChannels, outputFeatureChannels, neuronFilter) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndepthwiseconvolutiondescriptor/2919731-channelmultiplier?language=objc diff --git a/macos/mps/cnn_dilated_pooling_max.gen.go b/macos/mps/cnn_dilated_pooling_max.gen.go index 79abfb1c..1df05d32 100644 --- a/macos/mps/cnn_dilated_pooling_max.gen.go +++ b/macos/mps/cnn_dilated_pooling_max.gen.go @@ -84,21 +84,6 @@ func NewCNNDilatedPoolingMaxWithDeviceKernelWidthKernelHeightStrideInPixelsXStri return instance } -func (c_ CNNDilatedPoolingMax) InitWithDeviceKernelWidthKernelHeight(device metal.PDevice, kernelWidth uint, kernelHeight uint) CNNDilatedPoolingMax { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNDilatedPoolingMax](c_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:"), po0, kernelWidth, kernelHeight) - return rv -} - -// Initializes a pooling filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpooling/1648887-initwithdevice?language=objc -func NewCNNDilatedPoolingMaxWithDeviceKernelWidthKernelHeight(device metal.PDevice, kernelWidth uint, kernelHeight uint) CNNDilatedPoolingMax { - instance := CNNDilatedPoolingMaxClass.Alloc().InitWithDeviceKernelWidthKernelHeight(device, kernelWidth, kernelHeight) - instance.Autorelease() - return instance -} - func (c_ CNNDilatedPoolingMax) InitWithDevice(device metal.PDevice) CNNDilatedPoolingMax { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNDilatedPoolingMax](c_, objc.Sel("initWithDevice:"), po0) diff --git a/macos/mps/cnn_dilated_pooling_max_gradient.gen.go b/macos/mps/cnn_dilated_pooling_max_gradient.gen.go index d677ec5e..8e7c82e0 100644 --- a/macos/mps/cnn_dilated_pooling_max_gradient.gen.go +++ b/macos/mps/cnn_dilated_pooling_max_gradient.gen.go @@ -84,21 +84,6 @@ func NewCNNDilatedPoolingMaxGradientWithDeviceKernelWidthKernelHeight(device met return instance } -func (c_ CNNDilatedPoolingMaxGradient) InitWithDeviceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(device metal.PDevice, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNDilatedPoolingMaxGradient { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNDilatedPoolingMaxGradient](c_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:"), po0, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolinggradient/2942347-initwithdevice?language=objc -func NewCNNDilatedPoolingMaxGradientWithDeviceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(device metal.PDevice, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNDilatedPoolingMaxGradient { - instance := CNNDilatedPoolingMaxGradientClass.Alloc().InitWithDeviceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(device, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - instance.Autorelease() - return instance -} - func (c_ CNNDilatedPoolingMaxGradient) InitWithDevice(device metal.PDevice) CNNDilatedPoolingMaxGradient { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNDilatedPoolingMaxGradient](c_, objc.Sel("initWithDevice:"), po0) diff --git a/macos/mps/cnn_dilated_pooling_max_gradient_node.gen.go b/macos/mps/cnn_dilated_pooling_max_gradient_node.gen.go index 77e6de5f..e5c69d1e 100644 --- a/macos/mps/cnn_dilated_pooling_max_gradient_node.gen.go +++ b/macos/mps/cnn_dilated_pooling_max_gradient_node.gen.go @@ -35,18 +35,6 @@ func CNNDilatedPoolingMaxGradientNodeFrom(ptr unsafe.Pointer) CNNDilatedPoolingM } } -func (cc _CNNDilatedPoolingMaxGradientNodeClass) NodeWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint, dilationRateX uint, dilationRateY uint) CNNDilatedPoolingMaxGradientNode { - rv := objc.Call[CNNDilatedPoolingMaxGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:dilationRateX:dilationRateY:"), sourceGradient, sourceImage, gradientState, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndilatedpoolingmaxgradientnode/2948012-nodewithsourcegradient?language=objc -func CNNDilatedPoolingMaxGradientNode_NodeWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint, dilationRateX uint, dilationRateY uint) CNNDilatedPoolingMaxGradientNode { - return CNNDilatedPoolingMaxGradientNodeClass.NodeWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient, sourceImage, gradientState, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) -} - func (c_ CNNDilatedPoolingMaxGradientNode) InitWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint, dilationRateX uint, dilationRateY uint) CNNDilatedPoolingMaxGradientNode { rv := objc.Call[CNNDilatedPoolingMaxGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:dilationRateX:dilationRateY:"), sourceGradient, sourceImage, gradientState, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) return rv @@ -61,6 +49,18 @@ func NewCNNDilatedPoolingMaxGradientNodeWithSourceGradientSourceImageGradientSta return instance } +func (cc _CNNDilatedPoolingMaxGradientNodeClass) NodeWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint, dilationRateX uint, dilationRateY uint) CNNDilatedPoolingMaxGradientNode { + rv := objc.Call[CNNDilatedPoolingMaxGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:dilationRateX:dilationRateY:"), sourceGradient, sourceImage, gradientState, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndilatedpoolingmaxgradientnode/2948012-nodewithsourcegradient?language=objc +func CNNDilatedPoolingMaxGradientNode_NodeWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint, dilationRateX uint, dilationRateY uint) CNNDilatedPoolingMaxGradientNode { + return CNNDilatedPoolingMaxGradientNodeClass.NodeWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient, sourceImage, gradientState, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) +} + func (cc _CNNDilatedPoolingMaxGradientNodeClass) Alloc() CNNDilatedPoolingMaxGradientNode { rv := objc.Call[CNNDilatedPoolingMaxGradientNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_dilated_pooling_max_node.gen.go b/macos/mps/cnn_dilated_pooling_max_node.gen.go index 62678a7c..9a6063e7 100644 --- a/macos/mps/cnn_dilated_pooling_max_node.gen.go +++ b/macos/mps/cnn_dilated_pooling_max_node.gen.go @@ -35,46 +35,6 @@ func CNNDilatedPoolingMaxNodeFrom(ptr unsafe.Pointer) CNNDilatedPoolingMaxNode { } } -func (c_ CNNDilatedPoolingMaxNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNDilatedPoolingMaxNode { - rv := objc.Call[CNNDilatedPoolingMaxNode](c_, objc.Sel("initWithSource:filterSize:"), sourceNode, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndilatedpoolingmaxnode/2873240-initwithsource?language=objc -func NewCNNDilatedPoolingMaxNodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNDilatedPoolingMaxNode { - instance := CNNDilatedPoolingMaxNodeClass.Alloc().InitWithSourceFilterSize(sourceNode, size) - instance.Autorelease() - return instance -} - -func (cc _CNNDilatedPoolingMaxNodeClass) NodeWithSourceFilterSizeStrideDilationRate(sourceNode INNImageNode, size uint, stride uint, dilationRate uint) CNNDilatedPoolingMaxNode { - rv := objc.Call[CNNDilatedPoolingMaxNode](cc, objc.Sel("nodeWithSource:filterSize:stride:dilationRate:"), sourceNode, size, stride, dilationRate) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndilatedpoolingmaxnode/2919744-nodewithsource?language=objc -func CNNDilatedPoolingMaxNode_NodeWithSourceFilterSizeStrideDilationRate(sourceNode INNImageNode, size uint, stride uint, dilationRate uint) CNNDilatedPoolingMaxNode { - return CNNDilatedPoolingMaxNodeClass.NodeWithSourceFilterSizeStrideDilationRate(sourceNode, size, stride, dilationRate) -} - -func (c_ CNNDilatedPoolingMaxNode) InitWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceNode INNImageNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint, dilationRateX uint, dilationRateY uint) CNNDilatedPoolingMaxNode { - rv := objc.Call[CNNDilatedPoolingMaxNode](c_, objc.Sel("initWithSource:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:dilationRateX:dilationRateY:"), sourceNode, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndilatedpoolingmaxnode/2887339-initwithsource?language=objc -func NewCNNDilatedPoolingMaxNodeWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceNode INNImageNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint, dilationRateX uint, dilationRateY uint) CNNDilatedPoolingMaxNode { - instance := CNNDilatedPoolingMaxNodeClass.Alloc().InitWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceNode, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) - instance.Autorelease() - return instance -} - func (cc _CNNDilatedPoolingMaxNodeClass) NodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNDilatedPoolingMaxNode { rv := objc.Call[CNNDilatedPoolingMaxNode](cc, objc.Sel("nodeWithSource:filterSize:"), sourceNode, size) return rv @@ -87,16 +47,16 @@ func CNNDilatedPoolingMaxNode_NodeWithSourceFilterSize(sourceNode INNImageNode, return CNNDilatedPoolingMaxNodeClass.NodeWithSourceFilterSize(sourceNode, size) } -func (c_ CNNDilatedPoolingMaxNode) InitWithSourceFilterSizeStrideDilationRate(sourceNode INNImageNode, size uint, stride uint, dilationRate uint) CNNDilatedPoolingMaxNode { - rv := objc.Call[CNNDilatedPoolingMaxNode](c_, objc.Sel("initWithSource:filterSize:stride:dilationRate:"), sourceNode, size, stride, dilationRate) +func (c_ CNNDilatedPoolingMaxNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNDilatedPoolingMaxNode { + rv := objc.Call[CNNDilatedPoolingMaxNode](c_, objc.Sel("initWithSource:filterSize:"), sourceNode, size) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndilatedpoolingmaxnode/2887340-initwithsource?language=objc -func NewCNNDilatedPoolingMaxNodeWithSourceFilterSizeStrideDilationRate(sourceNode INNImageNode, size uint, stride uint, dilationRate uint) CNNDilatedPoolingMaxNode { - instance := CNNDilatedPoolingMaxNodeClass.Alloc().InitWithSourceFilterSizeStrideDilationRate(sourceNode, size, stride, dilationRate) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndilatedpoolingmaxnode/2873240-initwithsource?language=objc +func NewCNNDilatedPoolingMaxNodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNDilatedPoolingMaxNode { + instance := CNNDilatedPoolingMaxNodeClass.Alloc().InitWithSourceFilterSize(sourceNode, size) instance.Autorelease() return instance } diff --git a/macos/mps/cnn_dropout_gradient.gen.go b/macos/mps/cnn_dropout_gradient.gen.go index 074ecbc1..8c3484d2 100644 --- a/macos/mps/cnn_dropout_gradient.gen.go +++ b/macos/mps/cnn_dropout_gradient.gen.go @@ -19,8 +19,8 @@ type _CNNDropoutGradientClass struct { // An interface definition for the [CNNDropoutGradient] class. type ICNNDropoutGradient interface { ICNNGradientKernel - MaskStrideInPixels() metal.Size KeepProbability() float32 + MaskStrideInPixels() metal.Size Seed() uint } @@ -104,17 +104,17 @@ func CNNDropoutGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutgradient/2942515-maskstrideinpixels?language=objc -func (c_ CNNDropoutGradient) MaskStrideInPixels() metal.Size { - rv := objc.Call[metal.Size](c_, objc.Sel("maskStrideInPixels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutgradient/2942520-keepprobability?language=objc +func (c_ CNNDropoutGradient) KeepProbability() float32 { + rv := objc.Call[float32](c_, objc.Sel("keepProbability")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutgradient/2942520-keepprobability?language=objc -func (c_ CNNDropoutGradient) KeepProbability() float32 { - rv := objc.Call[float32](c_, objc.Sel("keepProbability")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutgradient/2942515-maskstrideinpixels?language=objc +func (c_ CNNDropoutGradient) MaskStrideInPixels() metal.Size { + rv := objc.Call[metal.Size](c_, objc.Sel("maskStrideInPixels")) return rv } diff --git a/macos/mps/cnn_dropout_gradient_node.gen.go b/macos/mps/cnn_dropout_gradient_node.gen.go index b940eea0..64df9931 100644 --- a/macos/mps/cnn_dropout_gradient_node.gen.go +++ b/macos/mps/cnn_dropout_gradient_node.gen.go @@ -20,8 +20,8 @@ type _CNNDropoutGradientNodeClass struct { type ICNNDropoutGradientNode interface { INNGradientFilterNode KeepProbability() float32 - Seed() uint MaskStrideInPixels() metal.Size + Seed() uint } // A representation of a gradient dropout filter. [Full Topic] @@ -93,16 +93,16 @@ func (c_ CNNDropoutGradientNode) KeepProbability() float32 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutgradientnode/2948003-seed?language=objc -func (c_ CNNDropoutGradientNode) Seed() uint { - rv := objc.Call[uint](c_, objc.Sel("seed")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutgradientnode/2947972-maskstrideinpixels?language=objc +func (c_ CNNDropoutGradientNode) MaskStrideInPixels() metal.Size { + rv := objc.Call[metal.Size](c_, objc.Sel("maskStrideInPixels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutgradientnode/2947972-maskstrideinpixels?language=objc -func (c_ CNNDropoutGradientNode) MaskStrideInPixels() metal.Size { - rv := objc.Call[metal.Size](c_, objc.Sel("maskStrideInPixels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutgradientnode/2948003-seed?language=objc +func (c_ CNNDropoutGradientNode) Seed() uint { + rv := objc.Call[uint](c_, objc.Sel("seed")) return rv } diff --git a/macos/mps/cnn_dropout_gradient_state.gen.go b/macos/mps/cnn_dropout_gradient_state.gen.go index bd84eadd..8a891617 100644 --- a/macos/mps/cnn_dropout_gradient_state.gen.go +++ b/macos/mps/cnn_dropout_gradient_state.gen.go @@ -55,45 +55,16 @@ func (c_ CNNDropoutGradientState) Init() CNNDropoutGradientState { return rv } -func (cc _CNNDropoutGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNDropoutGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNDropoutGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNDropoutGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNDropoutGradientState { - return CNNDropoutGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNDropoutGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNDropoutGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNDropoutGradientState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNDropoutGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNDropoutGradientState { - instance := CNNDropoutGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNDropoutGradientState) InitWithResource(resource metal.PResource) CNNDropoutGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNDropoutGradientState](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNDropoutGradientState) InitWithResources(resources []metal.PResource) CNNDropoutGradientState { + rv := objc.Call[CNNDropoutGradientState](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNDropoutGradientStateWithResource(resource metal.PResource) CNNDropoutGradientState { - instance := CNNDropoutGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNDropoutGradientStateWithResources(resources []metal.PResource) CNNDropoutGradientState { + instance := CNNDropoutGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -113,72 +84,32 @@ func NewCNNDropoutGradientStateWithDeviceBufferSize(device metal.PDevice, buffer return instance } -func (c_ CNNDropoutGradientState) InitWithResources(resources []metal.PResource) CNNDropoutGradientState { - rv := objc.Call[CNNDropoutGradientState](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNDropoutGradientState) InitWithResource(resource metal.PResource) CNNDropoutGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNDropoutGradientState](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNDropoutGradientStateWithResources(resources []metal.PResource) CNNDropoutGradientState { - instance := CNNDropoutGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNDropoutGradientStateWithResource(resource metal.PResource) CNNDropoutGradientState { + instance := CNNDropoutGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNDropoutGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNDropoutGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNDropoutGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNDropoutGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNDropoutGradientState { - return CNNDropoutGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNDropoutGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNDropoutGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNDropoutGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNDropoutGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNDropoutGradientState { - return CNNDropoutGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNDropoutGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNDropoutGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNDropoutGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNDropoutGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNDropoutGradientState { - return CNNDropoutGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNDropoutGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNDropoutGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNDropoutGradientState](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (cc _CNNDropoutGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNDropoutGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNDropoutGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNDropoutGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNDropoutGradientState { - instance := CNNDropoutGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNDropoutGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNDropoutGradientState { + return CNNDropoutGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] diff --git a/macos/mps/cnn_dropout_node.gen.go b/macos/mps/cnn_dropout_node.gen.go index abb12c30..c5b565d0 100644 --- a/macos/mps/cnn_dropout_node.gen.go +++ b/macos/mps/cnn_dropout_node.gen.go @@ -37,16 +37,16 @@ func CNNDropoutNodeFrom(ptr unsafe.Pointer) CNNDropoutNode { } } -func (cc _CNNDropoutNodeClass) NodeWithSourceKeepProbability(source INNImageNode, keepProbability float32) CNNDropoutNode { - rv := objc.Call[CNNDropoutNode](cc, objc.Sel("nodeWithSource:keepProbability:"), source, keepProbability) +func (cc _CNNDropoutNodeClass) NodeWithSource(source INNImageNode) CNNDropoutNode { + rv := objc.Call[CNNDropoutNode](cc, objc.Sel("nodeWithSource:"), source) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutnode/2947975-nodewithsource?language=objc -func CNNDropoutNode_NodeWithSourceKeepProbability(source INNImageNode, keepProbability float32) CNNDropoutNode { - return CNNDropoutNodeClass.NodeWithSourceKeepProbability(source, keepProbability) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutnode/2948007-nodewithsource?language=objc +func CNNDropoutNode_NodeWithSource(source INNImageNode) CNNDropoutNode { + return CNNDropoutNodeClass.NodeWithSource(source) } func (c_ CNNDropoutNode) InitWithSourceKeepProbability(source INNImageNode, keepProbability float32) CNNDropoutNode { @@ -63,58 +63,6 @@ func NewCNNDropoutNodeWithSourceKeepProbability(source INNImageNode, keepProbabi return instance } -func (c_ CNNDropoutNode) InitWithSourceKeepProbabilitySeedMaskStrideInPixels(source INNImageNode, keepProbability float32, seed uint, maskStrideInPixels metal.Size) CNNDropoutNode { - rv := objc.Call[CNNDropoutNode](c_, objc.Sel("initWithSource:keepProbability:seed:maskStrideInPixels:"), source, keepProbability, seed, maskStrideInPixels) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutnode/2947990-initwithsource?language=objc -func NewCNNDropoutNodeWithSourceKeepProbabilitySeedMaskStrideInPixels(source INNImageNode, keepProbability float32, seed uint, maskStrideInPixels metal.Size) CNNDropoutNode { - instance := CNNDropoutNodeClass.Alloc().InitWithSourceKeepProbabilitySeedMaskStrideInPixels(source, keepProbability, seed, maskStrideInPixels) - instance.Autorelease() - return instance -} - -func (c_ CNNDropoutNode) InitWithSource(source INNImageNode) CNNDropoutNode { - rv := objc.Call[CNNDropoutNode](c_, objc.Sel("initWithSource:"), source) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutnode/2947969-initwithsource?language=objc -func NewCNNDropoutNodeWithSource(source INNImageNode) CNNDropoutNode { - instance := CNNDropoutNodeClass.Alloc().InitWithSource(source) - instance.Autorelease() - return instance -} - -func (cc _CNNDropoutNodeClass) NodeWithSourceKeepProbabilitySeedMaskStrideInPixels(source INNImageNode, keepProbability float32, seed uint, maskStrideInPixels metal.Size) CNNDropoutNode { - rv := objc.Call[CNNDropoutNode](cc, objc.Sel("nodeWithSource:keepProbability:seed:maskStrideInPixels:"), source, keepProbability, seed, maskStrideInPixels) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutnode/2947989-nodewithsource?language=objc -func CNNDropoutNode_NodeWithSourceKeepProbabilitySeedMaskStrideInPixels(source INNImageNode, keepProbability float32, seed uint, maskStrideInPixels metal.Size) CNNDropoutNode { - return CNNDropoutNodeClass.NodeWithSourceKeepProbabilitySeedMaskStrideInPixels(source, keepProbability, seed, maskStrideInPixels) -} - -func (cc _CNNDropoutNodeClass) NodeWithSource(source INNImageNode) CNNDropoutNode { - rv := objc.Call[CNNDropoutNode](cc, objc.Sel("nodeWithSource:"), source) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutnode/2948007-nodewithsource?language=objc -func CNNDropoutNode_NodeWithSource(source INNImageNode) CNNDropoutNode { - return CNNDropoutNodeClass.NodeWithSource(source) -} - func (cc _CNNDropoutNodeClass) Alloc() CNNDropoutNode { rv := objc.Call[CNNDropoutNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_fully_connected.gen.go b/macos/mps/cnn_fully_connected.gen.go index 9177d1c7..a4776c60 100644 --- a/macos/mps/cnn_fully_connected.gen.go +++ b/macos/mps/cnn_fully_connected.gen.go @@ -70,21 +70,6 @@ func (c_ CNNFullyConnected) Init() CNNFullyConnected { return rv } -func (c_ CNNFullyConnected) InitWithDeviceConvolutionDescriptorKernelWeightsBiasTermsFlags(device metal.PDevice, convolutionDescriptor ICNNConvolutionDescriptor, kernelWeights *float32, biasTerms *float32, flags CNNConvolutionFlags) CNNFullyConnected { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNFullyConnected](c_, objc.Sel("initWithDevice:convolutionDescriptor:kernelWeights:biasTerms:flags:"), po0, convolutionDescriptor, kernelWeights, biasTerms, flags) - return rv -} - -// Initializes a convolution kernel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolution/1648861-initwithdevice?language=objc -func NewCNNFullyConnectedWithDeviceConvolutionDescriptorKernelWeightsBiasTermsFlags(device metal.PDevice, convolutionDescriptor ICNNConvolutionDescriptor, kernelWeights *float32, biasTerms *float32, flags CNNConvolutionFlags) CNNFullyConnected { - instance := CNNFullyConnectedClass.Alloc().InitWithDeviceConvolutionDescriptorKernelWeightsBiasTermsFlags(device, convolutionDescriptor, kernelWeights, biasTerms, flags) - instance.Autorelease() - return instance -} - func (c_ CNNFullyConnected) InitWithDevice(device metal.PDevice) CNNFullyConnected { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNFullyConnected](c_, objc.Sel("initWithDevice:"), po0) diff --git a/macos/mps/cnn_fully_connected_gradient_node.gen.go b/macos/mps/cnn_fully_connected_gradient_node.gen.go index dae9dd54..9b84a221 100644 --- a/macos/mps/cnn_fully_connected_gradient_node.gen.go +++ b/macos/mps/cnn_fully_connected_gradient_node.gen.go @@ -33,32 +33,32 @@ func CNNFullyConnectedGradientNodeFrom(ptr unsafe.Pointer) CNNFullyConnectedGrad } } -func (cc _CNNFullyConnectedGradientNodeClass) NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNFullyConnectedGradientNode { +func (c_ CNNFullyConnectedGradientNode) InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNFullyConnectedGradientNode { po3 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNFullyConnectedGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) + rv := objc.Call[CNNFullyConnectedGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnfullyconnectedgradientnode/3152567-nodewithsourcegradient?language=objc -func CNNFullyConnectedGradientNode_NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNFullyConnectedGradientNode { - return CNNFullyConnectedGradientNodeClass.NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnfullyconnectedgradientnode/3152566-initwithsourcegradient?language=objc +func NewCNNFullyConnectedGradientNodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNFullyConnectedGradientNode { + instance := CNNFullyConnectedGradientNodeClass.Alloc().InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) + instance.Autorelease() + return instance } -func (c_ CNNFullyConnectedGradientNode) InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNFullyConnectedGradientNode { +func (cc _CNNFullyConnectedGradientNodeClass) NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNFullyConnectedGradientNode { po3 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNFullyConnectedGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) + rv := objc.Call[CNNFullyConnectedGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionGradientState:weights:"), sourceGradient, sourceImage, gradientState, po3) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnfullyconnectedgradientnode/3152566-initwithsourcegradient?language=objc -func NewCNNFullyConnectedGradientNodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNFullyConnectedGradientNode { - instance := CNNFullyConnectedGradientNodeClass.Alloc().InitWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnfullyconnectedgradientnode/3152567-nodewithsourcegradient?language=objc +func CNNFullyConnectedGradientNode_NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState ICNNConvolutionGradientStateNode, weights PCNNConvolutionDataSource) CNNFullyConnectedGradientNode { + return CNNFullyConnectedGradientNodeClass.NodeWithSourceGradientSourceImageConvolutionGradientStateWeights(sourceGradient, sourceImage, gradientState, weights) } func (cc _CNNFullyConnectedGradientNodeClass) Alloc() CNNFullyConnectedGradientNode { diff --git a/macos/mps/cnn_fully_connected_node.gen.go b/macos/mps/cnn_fully_connected_node.gen.go index 658b13c8..9691a4c3 100644 --- a/macos/mps/cnn_fully_connected_node.gen.go +++ b/macos/mps/cnn_fully_connected_node.gen.go @@ -33,32 +33,32 @@ func CNNFullyConnectedNodeFrom(ptr unsafe.Pointer) CNNFullyConnectedNode { } } -func (c_ CNNFullyConnectedNode) InitWithSourceWeights(sourceNode INNImageNode, weights PCNNConvolutionDataSource) CNNFullyConnectedNode { +func (cc _CNNFullyConnectedNodeClass) NodeWithSourceWeights(sourceNode INNImageNode, weights PCNNConvolutionDataSource) CNNFullyConnectedNode { po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNFullyConnectedNode](c_, objc.Sel("initWithSource:weights:"), sourceNode, po1) + rv := objc.Call[CNNFullyConnectedNode](cc, objc.Sel("nodeWithSource:weights:"), sourceNode, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnfullyconnectednode/2866412-initwithsource?language=objc -func NewCNNFullyConnectedNodeWithSourceWeights(sourceNode INNImageNode, weights PCNNConvolutionDataSource) CNNFullyConnectedNode { - instance := CNNFullyConnectedNodeClass.Alloc().InitWithSourceWeights(sourceNode, weights) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnfullyconnectednode/2866458-nodewithsource?language=objc +func CNNFullyConnectedNode_NodeWithSourceWeights(sourceNode INNImageNode, weights PCNNConvolutionDataSource) CNNFullyConnectedNode { + return CNNFullyConnectedNodeClass.NodeWithSourceWeights(sourceNode, weights) } -func (cc _CNNFullyConnectedNodeClass) NodeWithSourceWeights(sourceNode INNImageNode, weights PCNNConvolutionDataSource) CNNFullyConnectedNode { +func (c_ CNNFullyConnectedNode) InitWithSourceWeights(sourceNode INNImageNode, weights PCNNConvolutionDataSource) CNNFullyConnectedNode { po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNFullyConnectedNode](cc, objc.Sel("nodeWithSource:weights:"), sourceNode, po1) + rv := objc.Call[CNNFullyConnectedNode](c_, objc.Sel("initWithSource:weights:"), sourceNode, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnfullyconnectednode/2866458-nodewithsource?language=objc -func CNNFullyConnectedNode_NodeWithSourceWeights(sourceNode INNImageNode, weights PCNNConvolutionDataSource) CNNFullyConnectedNode { - return CNNFullyConnectedNodeClass.NodeWithSourceWeights(sourceNode, weights) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnfullyconnectednode/2866412-initwithsource?language=objc +func NewCNNFullyConnectedNodeWithSourceWeights(sourceNode INNImageNode, weights PCNNConvolutionDataSource) CNNFullyConnectedNode { + instance := CNNFullyConnectedNodeClass.Alloc().InitWithSourceWeights(sourceNode, weights) + instance.Autorelease() + return instance } func (cc _CNNFullyConnectedNodeClass) Alloc() CNNFullyConnectedNode { diff --git a/macos/mps/cnn_gradient_kernel.gen.go b/macos/mps/cnn_gradient_kernel.gen.go index ddeef53a..182eaa80 100644 --- a/macos/mps/cnn_gradient_kernel.gen.go +++ b/macos/mps/cnn_gradient_kernel.gen.go @@ -20,14 +20,10 @@ type _CNNGradientKernelClass struct { // An interface definition for the [CNNGradientKernel] class. type ICNNGradientKernel interface { ICNNBinaryKernel - EncodeToCommandBufferSourceGradientSourceImageGradientState(commandBuffer metal.PCommandBuffer, sourceGradient IImage, sourceImage IImage, gradientState IState) Image - EncodeToCommandBufferObjectSourceGradientSourceImageGradientState(commandBufferObject objc.IObject, sourceGradient IImage, sourceImage IImage, gradientState IState) Image - EncodeToCommandBufferSourceGradientSourceImageGradientStateDestinationGradient(commandBuffer metal.PCommandBuffer, sourceGradient IImage, sourceImage IImage, gradientState IState, destinationGradient IImage) - EncodeToCommandBufferObjectSourceGradientSourceImageGradientStateDestinationGradient(commandBufferObject objc.IObject, sourceGradient IImage, sourceImage IImage, gradientState IState, destinationGradient IImage) - EncodeBatchToCommandBufferSourceGradientsSourceImagesGradientStatesDestinationGradients(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, gradientStates *foundation.Array, destinationGradients *foundation.Array) - EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesGradientStatesDestinationGradients(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, gradientStates *foundation.Array, destinationGradients *foundation.Array) EncodeBatchToCommandBufferSourceGradientsSourceImagesGradientStates(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, gradientStates *foundation.Array) *foundation.Array EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesGradientStates(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, gradientStates *foundation.Array) *foundation.Array + EncodeToCommandBufferSourceGradientSourceImageGradientState(commandBuffer metal.PCommandBuffer, sourceGradient IImage, sourceImage IImage, gradientState IState) Image + EncodeToCommandBufferObjectSourceGradientSourceImageGradientState(commandBufferObject objc.IObject, sourceGradient IImage, sourceImage IImage, gradientState IState) Image KernelOffsetX() int SetKernelOffsetX(value int) KernelOffsetY() int @@ -99,65 +95,35 @@ func CNNGradientKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942663-encodetocommandbuffer?language=objc -func (c_ CNNGradientKernel) EncodeToCommandBufferSourceGradientSourceImageGradientState(commandBuffer metal.PCommandBuffer, sourceGradient IImage, sourceImage IImage, gradientState IState) Image { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942668-encodebatchtocommandbuffer?language=objc +func (c_ CNNGradientKernel) EncodeBatchToCommandBufferSourceGradientsSourceImagesGradientStates(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, gradientStates *foundation.Array) *foundation.Array { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceGradient:sourceImage:gradientState:"), po0, sourceGradient, sourceImage, gradientState) + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceGradients:sourceImages:gradientStates:"), po0, sourceGradients, sourceImages, gradientStates) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942663-encodetocommandbuffer?language=objc -func (c_ CNNGradientKernel) EncodeToCommandBufferObjectSourceGradientSourceImageGradientState(commandBufferObject objc.IObject, sourceGradient IImage, sourceImage IImage, gradientState IState) Image { - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceGradient:sourceImage:gradientState:"), commandBufferObject, sourceGradient, sourceImage, gradientState) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942668-encodebatchtocommandbuffer?language=objc +func (c_ CNNGradientKernel) EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesGradientStates(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, gradientStates *foundation.Array) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceGradients:sourceImages:gradientStates:"), commandBufferObject, sourceGradients, sourceImages, gradientStates) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942675-encodetocommandbuffer?language=objc -func (c_ CNNGradientKernel) EncodeToCommandBufferSourceGradientSourceImageGradientStateDestinationGradient(commandBuffer metal.PCommandBuffer, sourceGradient IImage, sourceImage IImage, gradientState IState, destinationGradient IImage) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceGradient:sourceImage:gradientState:destinationGradient:"), po0, sourceGradient, sourceImage, gradientState, destinationGradient) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942675-encodetocommandbuffer?language=objc -func (c_ CNNGradientKernel) EncodeToCommandBufferObjectSourceGradientSourceImageGradientStateDestinationGradient(commandBufferObject objc.IObject, sourceGradient IImage, sourceImage IImage, gradientState IState, destinationGradient IImage) { - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceGradient:sourceImage:gradientState:destinationGradient:"), commandBufferObject, sourceGradient, sourceImage, gradientState, destinationGradient) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942653-encodebatchtocommandbuffer?language=objc -func (c_ CNNGradientKernel) EncodeBatchToCommandBufferSourceGradientsSourceImagesGradientStatesDestinationGradients(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, gradientStates *foundation.Array, destinationGradients *foundation.Array) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceGradients:sourceImages:gradientStates:destinationGradients:"), po0, sourceGradients, sourceImages, gradientStates, destinationGradients) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942653-encodebatchtocommandbuffer?language=objc -func (c_ CNNGradientKernel) EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesGradientStatesDestinationGradients(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, gradientStates *foundation.Array, destinationGradients *foundation.Array) { - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceGradients:sourceImages:gradientStates:destinationGradients:"), commandBufferObject, sourceGradients, sourceImages, gradientStates, destinationGradients) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942668-encodebatchtocommandbuffer?language=objc -func (c_ CNNGradientKernel) EncodeBatchToCommandBufferSourceGradientsSourceImagesGradientStates(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, gradientStates *foundation.Array) *foundation.Array { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942663-encodetocommandbuffer?language=objc +func (c_ CNNGradientKernel) EncodeToCommandBufferSourceGradientSourceImageGradientState(commandBuffer metal.PCommandBuffer, sourceGradient IImage, sourceImage IImage, gradientState IState) Image { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceGradients:sourceImages:gradientStates:"), po0, sourceGradients, sourceImages, gradientStates) + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceGradient:sourceImage:gradientState:"), po0, sourceGradient, sourceImage, gradientState) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942668-encodebatchtocommandbuffer?language=objc -func (c_ CNNGradientKernel) EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesGradientStates(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, gradientStates *foundation.Array) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceGradients:sourceImages:gradientStates:"), commandBufferObject, sourceGradients, sourceImages, gradientStates) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngradientkernel/2942663-encodetocommandbuffer?language=objc +func (c_ CNNGradientKernel) EncodeToCommandBufferObjectSourceGradientSourceImageGradientState(commandBufferObject objc.IObject, sourceGradient IImage, sourceImage IImage, gradientState IState) Image { + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceGradient:sourceImage:gradientState:"), commandBufferObject, sourceGradient, sourceImage, gradientState) return rv } diff --git a/macos/mps/cnn_group_normalization.gen.go b/macos/mps/cnn_group_normalization.gen.go index 27b7083a..87e4f1b3 100644 --- a/macos/mps/cnn_group_normalization.gen.go +++ b/macos/mps/cnn_group_normalization.gen.go @@ -22,9 +22,9 @@ type ICNNGroupNormalization interface { ReloadGammaAndBetaFromDataSource() ReloadGammaAndBetaWithCommandBufferGammaAndBetaState(commandBuffer metal.PCommandBuffer, gammaAndBetaState ICNNNormalizationGammaAndBetaState) ReloadGammaAndBetaWithCommandBufferObjectGammaAndBetaState(commandBufferObject objc.IObject, gammaAndBetaState ICNNNormalizationGammaAndBetaState) + DataSource() CNNGroupNormalizationDataSourceObject Epsilon() float32 SetEpsilon(value float32) - DataSource() CNNGroupNormalizationDataSourceObject } // [Full Topic] @@ -128,6 +128,14 @@ func (c_ CNNGroupNormalization) ReloadGammaAndBetaWithCommandBufferObjectGammaAn objc.Call[objc.Void](c_, objc.Sel("reloadGammaAndBetaWithCommandBuffer:gammaAndBetaState:"), commandBufferObject, gammaAndBetaState) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalization/3152534-datasource?language=objc +func (c_ CNNGroupNormalization) DataSource() CNNGroupNormalizationDataSourceObject { + rv := objc.Call[CNNGroupNormalizationDataSourceObject](c_, objc.Sel("dataSource")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalization/3152535-epsilon?language=objc @@ -142,11 +150,3 @@ func (c_ CNNGroupNormalization) Epsilon() float32 { func (c_ CNNGroupNormalization) SetEpsilon(value float32) { objc.Call[objc.Void](c_, objc.Sel("setEpsilon:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalization/3152534-datasource?language=objc -func (c_ CNNGroupNormalization) DataSource() CNNGroupNormalizationDataSourceObject { - rv := objc.Call[CNNGroupNormalizationDataSourceObject](c_, objc.Sel("dataSource")) - return rv -} diff --git a/macos/mps/cnn_group_normalization_data_source_protocol.gen.go b/macos/mps/cnn_group_normalization_data_source_protocol.gen.go index 116bc088..06a5d6d0 100644 --- a/macos/mps/cnn_group_normalization_data_source_protocol.gen.go +++ b/macos/mps/cnn_group_normalization_data_source_protocol.gen.go @@ -23,12 +23,12 @@ type PCNNGroupNormalizationDataSource interface { HasBeta() bool // optional - CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object - HasCopyWithZoneDevice() bool + Epsilon() float32 + HasEpsilon() bool // optional - Gamma() *float32 - HasGamma() bool + EncodeWithCoder(aCoder foundation.Coder) + HasEncodeWithCoder() bool // optional UpdateGammaAndBetaWithGroupNormalizationStateBatch(groupNormalizationStateBatch *foundation.Array) bool @@ -39,20 +39,16 @@ type PCNNGroupNormalizationDataSource interface { HasInitWithCoder() bool // optional - Epsilon() float32 - HasEpsilon() bool - - // optional - Label() string - HasLabel() bool + Gamma() *float32 + HasGamma() bool // optional - EncodeWithCoder(aCoder foundation.Coder) - HasEncodeWithCoder() bool + CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object + HasCopyWithZoneDevice() bool // optional - NumberOfFeatureChannels() uint - HasNumberOfFeatureChannels() bool + Label() string + HasLabel() bool // optional SetNumberOfGroups(value uint) @@ -61,6 +57,10 @@ type PCNNGroupNormalizationDataSource interface { // optional NumberOfGroups() uint HasNumberOfGroups() bool + + // optional + NumberOfFeatureChannels() uint + HasNumberOfFeatureChannels() bool } // ensure impl type implements protocol interface @@ -96,29 +96,27 @@ func (c_ CNNGroupNormalizationDataSourceObject) Beta() *float32 { return rv } -func (c_ CNNGroupNormalizationDataSourceObject) HasCopyWithZoneDevice() bool { - return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) +func (c_ CNNGroupNormalizationDataSourceObject) HasEpsilon() bool { + return c_.RespondsToSelector(objc.Sel("epsilon")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152544-copywithzone?language=objc -func (c_ CNNGroupNormalizationDataSourceObject) CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[objc.Object](c_, objc.Sel("copyWithZone:device:"), zone, po1) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152546-epsilon?language=objc +func (c_ CNNGroupNormalizationDataSourceObject) Epsilon() float32 { + rv := objc.Call[float32](c_, objc.Sel("epsilon")) return rv } -func (c_ CNNGroupNormalizationDataSourceObject) HasGamma() bool { - return c_.RespondsToSelector(objc.Sel("gamma")) +func (c_ CNNGroupNormalizationDataSourceObject) HasEncodeWithCoder() bool { + return c_.RespondsToSelector(objc.Sel("encodeWithCoder:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152547-gamma?language=objc -func (c_ CNNGroupNormalizationDataSourceObject) Gamma() *float32 { - rv := objc.Call[*float32](c_, objc.Sel("gamma")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152545-encodewithcoder?language=objc +func (c_ CNNGroupNormalizationDataSourceObject) EncodeWithCoder(aCoder foundation.Coder) { + objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), aCoder) } func (c_ CNNGroupNormalizationDataSourceObject) HasUpdateGammaAndBetaWithGroupNormalizationStateBatch() bool { @@ -145,50 +143,40 @@ func (c_ CNNGroupNormalizationDataSourceObject) InitWithCoder(aDecoder foundatio return rv } -func (c_ CNNGroupNormalizationDataSourceObject) HasEpsilon() bool { - return c_.RespondsToSelector(objc.Sel("epsilon")) +func (c_ CNNGroupNormalizationDataSourceObject) HasGamma() bool { + return c_.RespondsToSelector(objc.Sel("gamma")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152546-epsilon?language=objc -func (c_ CNNGroupNormalizationDataSourceObject) Epsilon() float32 { - rv := objc.Call[float32](c_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152547-gamma?language=objc +func (c_ CNNGroupNormalizationDataSourceObject) Gamma() *float32 { + rv := objc.Call[*float32](c_, objc.Sel("gamma")) return rv } -func (c_ CNNGroupNormalizationDataSourceObject) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ CNNGroupNormalizationDataSourceObject) HasCopyWithZoneDevice() bool { + return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152549-label?language=objc -func (c_ CNNGroupNormalizationDataSourceObject) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152544-copywithzone?language=objc +func (c_ CNNGroupNormalizationDataSourceObject) CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[objc.Object](c_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -func (c_ CNNGroupNormalizationDataSourceObject) HasEncodeWithCoder() bool { - return c_.RespondsToSelector(objc.Sel("encodeWithCoder:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152545-encodewithcoder?language=objc -func (c_ CNNGroupNormalizationDataSourceObject) EncodeWithCoder(aCoder foundation.Coder) { - objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), aCoder) -} - -func (c_ CNNGroupNormalizationDataSourceObject) HasNumberOfFeatureChannels() bool { - return c_.RespondsToSelector(objc.Sel("numberOfFeatureChannels")) +func (c_ CNNGroupNormalizationDataSourceObject) HasLabel() bool { + return c_.RespondsToSelector(objc.Sel("label")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152550-numberoffeaturechannels?language=objc -func (c_ CNNGroupNormalizationDataSourceObject) NumberOfFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152549-label?language=objc +func (c_ CNNGroupNormalizationDataSourceObject) Label() string { + rv := objc.Call[string](c_, objc.Sel("label")) return rv } @@ -214,3 +202,15 @@ func (c_ CNNGroupNormalizationDataSourceObject) NumberOfGroups() uint { rv := objc.Call[uint](c_, objc.Sel("numberOfGroups")) return rv } + +func (c_ CNNGroupNormalizationDataSourceObject) HasNumberOfFeatureChannels() bool { + return c_.RespondsToSelector(objc.Sel("numberOfFeatureChannels")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152550-numberoffeaturechannels?language=objc +func (c_ CNNGroupNormalizationDataSourceObject) NumberOfFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("numberOfFeatureChannels")) + return rv +} diff --git a/macos/mps/cnn_group_normalization_gradient_state.gen.go b/macos/mps/cnn_group_normalization_gradient_state.gen.go index 4f2ed817..7a42f3e1 100644 --- a/macos/mps/cnn_group_normalization_gradient_state.gen.go +++ b/macos/mps/cnn_group_normalization_gradient_state.gen.go @@ -19,11 +19,11 @@ type _CNNGroupNormalizationGradientStateClass struct { // An interface definition for the [CNNGroupNormalizationGradientState] class. type ICNNGroupNormalizationGradientState interface { INNGradientState + GroupNormalization() CNNGroupNormalization GradientForGamma() metal.BufferObject Beta() metal.BufferObject - GroupNormalization() CNNGroupNormalization - GradientForBeta() metal.BufferObject Gamma() metal.BufferObject + GradientForBeta() metal.BufferObject } // [Full Topic] @@ -59,45 +59,16 @@ func (c_ CNNGroupNormalizationGradientState) Init() CNNGroupNormalizationGradien return rv } -func (cc _CNNGroupNormalizationGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNGroupNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNGroupNormalizationGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNGroupNormalizationGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNGroupNormalizationGradientState { - return CNNGroupNormalizationGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNGroupNormalizationGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNGroupNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNGroupNormalizationGradientState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNGroupNormalizationGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNGroupNormalizationGradientState { - instance := CNNGroupNormalizationGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNGroupNormalizationGradientState) InitWithResource(resource metal.PResource) CNNGroupNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNGroupNormalizationGradientState](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNGroupNormalizationGradientState) InitWithResources(resources []metal.PResource) CNNGroupNormalizationGradientState { + rv := objc.Call[CNNGroupNormalizationGradientState](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNGroupNormalizationGradientStateWithResource(resource metal.PResource) CNNGroupNormalizationGradientState { - instance := CNNGroupNormalizationGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNGroupNormalizationGradientStateWithResources(resources []metal.PResource) CNNGroupNormalizationGradientState { + instance := CNNGroupNormalizationGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -117,74 +88,42 @@ func NewCNNGroupNormalizationGradientStateWithDeviceBufferSize(device metal.PDev return instance } -func (c_ CNNGroupNormalizationGradientState) InitWithResources(resources []metal.PResource) CNNGroupNormalizationGradientState { - rv := objc.Call[CNNGroupNormalizationGradientState](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNGroupNormalizationGradientState) InitWithResource(resource metal.PResource) CNNGroupNormalizationGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNGroupNormalizationGradientState](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNGroupNormalizationGradientStateWithResources(resources []metal.PResource) CNNGroupNormalizationGradientState { - instance := CNNGroupNormalizationGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNGroupNormalizationGradientStateWithResource(resource metal.PResource) CNNGroupNormalizationGradientState { + instance := CNNGroupNormalizationGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNGroupNormalizationGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNGroupNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNGroupNormalizationGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNGroupNormalizationGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNGroupNormalizationGradientState { - return CNNGroupNormalizationGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNGroupNormalizationGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNGroupNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNGroupNormalizationGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) +func (cc _CNNGroupNormalizationGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNGroupNormalizationGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNGroupNormalizationGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNGroupNormalizationGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNGroupNormalizationGradientState { - return CNNGroupNormalizationGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNGroupNormalizationGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNGroupNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNGroupNormalizationGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNGroupNormalizationGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNGroupNormalizationGradientState { + return CNNGroupNormalizationGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNGroupNormalizationGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNGroupNormalizationGradientState { - return CNNGroupNormalizationGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNGroupNormalizationGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNGroupNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNGroupNormalizationGradientState](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationgradientstate/3152561-groupnormalization?language=objc +func (c_ CNNGroupNormalizationGradientState) GroupNormalization() CNNGroupNormalization { + rv := objc.Call[CNNGroupNormalization](c_, objc.Sel("groupNormalization")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNGroupNormalizationGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNGroupNormalizationGradientState { - instance := CNNGroupNormalizationGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationgradientstate/3152560-gradientforgamma?language=objc @@ -203,9 +142,9 @@ func (c_ CNNGroupNormalizationGradientState) Beta() metal.BufferObject { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationgradientstate/3152561-groupnormalization?language=objc -func (c_ CNNGroupNormalizationGradientState) GroupNormalization() CNNGroupNormalization { - rv := objc.Call[CNNGroupNormalization](c_, objc.Sel("groupNormalization")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationgradientstate/3152558-gamma?language=objc +func (c_ CNNGroupNormalizationGradientState) Gamma() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gamma")) return rv } @@ -216,11 +155,3 @@ func (c_ CNNGroupNormalizationGradientState) GradientForBeta() metal.BufferObjec rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForBeta")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationgradientstate/3152558-gamma?language=objc -func (c_ CNNGroupNormalizationGradientState) Gamma() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("gamma")) - return rv -} diff --git a/macos/mps/cnn_group_normalization_node.gen.go b/macos/mps/cnn_group_normalization_node.gen.go index 9a753ffb..4ad415f1 100644 --- a/macos/mps/cnn_group_normalization_node.gen.go +++ b/macos/mps/cnn_group_normalization_node.gen.go @@ -35,32 +35,32 @@ func CNNGroupNormalizationNodeFrom(ptr unsafe.Pointer) CNNGroupNormalizationNode } } -func (c_ CNNGroupNormalizationNode) InitWithSourceDataSource(source INNImageNode, dataSource PCNNGroupNormalizationDataSource) CNNGroupNormalizationNode { +func (cc _CNNGroupNormalizationNodeClass) NodeWithSourceDataSource(source INNImageNode, dataSource PCNNGroupNormalizationDataSource) CNNGroupNormalizationNode { po1 := objc.WrapAsProtocol("MPSCNNGroupNormalizationDataSource", dataSource) - rv := objc.Call[CNNGroupNormalizationNode](c_, objc.Sel("initWithSource:dataSource:"), source, po1) + rv := objc.Call[CNNGroupNormalizationNode](cc, objc.Sel("nodeWithSource:dataSource:"), source, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationnode/3152572-initwithsource?language=objc -func NewCNNGroupNormalizationNodeWithSourceDataSource(source INNImageNode, dataSource PCNNGroupNormalizationDataSource) CNNGroupNormalizationNode { - instance := CNNGroupNormalizationNodeClass.Alloc().InitWithSourceDataSource(source, dataSource) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationnode/3152573-nodewithsource?language=objc +func CNNGroupNormalizationNode_NodeWithSourceDataSource(source INNImageNode, dataSource PCNNGroupNormalizationDataSource) CNNGroupNormalizationNode { + return CNNGroupNormalizationNodeClass.NodeWithSourceDataSource(source, dataSource) } -func (cc _CNNGroupNormalizationNodeClass) NodeWithSourceDataSource(source INNImageNode, dataSource PCNNGroupNormalizationDataSource) CNNGroupNormalizationNode { +func (c_ CNNGroupNormalizationNode) InitWithSourceDataSource(source INNImageNode, dataSource PCNNGroupNormalizationDataSource) CNNGroupNormalizationNode { po1 := objc.WrapAsProtocol("MPSCNNGroupNormalizationDataSource", dataSource) - rv := objc.Call[CNNGroupNormalizationNode](cc, objc.Sel("nodeWithSource:dataSource:"), source, po1) + rv := objc.Call[CNNGroupNormalizationNode](c_, objc.Sel("initWithSource:dataSource:"), source, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationnode/3152573-nodewithsource?language=objc -func CNNGroupNormalizationNode_NodeWithSourceDataSource(source INNImageNode, dataSource PCNNGroupNormalizationDataSource) CNNGroupNormalizationNode { - return CNNGroupNormalizationNodeClass.NodeWithSourceDataSource(source, dataSource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationnode/3152572-initwithsource?language=objc +func NewCNNGroupNormalizationNodeWithSourceDataSource(source INNImageNode, dataSource PCNNGroupNormalizationDataSource) CNNGroupNormalizationNode { + instance := CNNGroupNormalizationNodeClass.Alloc().InitWithSourceDataSource(source, dataSource) + instance.Autorelease() + return instance } func (cc _CNNGroupNormalizationNodeClass) Alloc() CNNGroupNormalizationNode { diff --git a/macos/mps/cnn_instance_normalization.gen.go b/macos/mps/cnn_instance_normalization.gen.go index 61d24057..2bcb4835 100644 --- a/macos/mps/cnn_instance_normalization.gen.go +++ b/macos/mps/cnn_instance_normalization.gen.go @@ -19,12 +19,12 @@ type _CNNInstanceNormalizationClass struct { // An interface definition for the [CNNInstanceNormalization] class. type ICNNInstanceNormalization interface { ICNNKernel + ReloadGammaAndBetaFromDataSource() ReloadGammaAndBetaWithCommandBufferGammaAndBetaState(commandBuffer metal.PCommandBuffer, gammaAndBetaState ICNNNormalizationGammaAndBetaState) ReloadGammaAndBetaWithCommandBufferObjectGammaAndBetaState(commandBufferObject objc.IObject, gammaAndBetaState ICNNNormalizationGammaAndBetaState) - ReloadGammaAndBetaFromDataSource() + DataSource() CNNInstanceNormalizationDataSourceObject Epsilon() float32 SetEpsilon(value float32) - DataSource() CNNInstanceNormalizationDataSourceObject } // An instance normalization kernel. [Full Topic] @@ -106,6 +106,13 @@ func CNNInstanceNormalization_CopyWithZoneDevice(zone unsafe.Pointer, device met return instance } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalization/2976471-reloadgammaandbetafromdatasource?language=objc +func (c_ CNNInstanceNormalization) ReloadGammaAndBetaFromDataSource() { + objc.Call[objc.Void](c_, objc.Sel("reloadGammaAndBetaFromDataSource")) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalization/2953921-reloadgammaandbetawithcommandbuf?language=objc @@ -123,9 +130,10 @@ func (c_ CNNInstanceNormalization) ReloadGammaAndBetaWithCommandBufferObjectGamm // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalization/2976471-reloadgammaandbetafromdatasource?language=objc -func (c_ CNNInstanceNormalization) ReloadGammaAndBetaFromDataSource() { - objc.Call[objc.Void](c_, objc.Sel("reloadGammaAndBetaFromDataSource")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalization/2953927-datasource?language=objc +func (c_ CNNInstanceNormalization) DataSource() CNNInstanceNormalizationDataSourceObject { + rv := objc.Call[CNNInstanceNormalizationDataSourceObject](c_, objc.Sel("dataSource")) + return rv } // [Full Topic] @@ -142,11 +150,3 @@ func (c_ CNNInstanceNormalization) Epsilon() float32 { func (c_ CNNInstanceNormalization) SetEpsilon(value float32) { objc.Call[objc.Void](c_, objc.Sel("setEpsilon:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalization/2953927-datasource?language=objc -func (c_ CNNInstanceNormalization) DataSource() CNNInstanceNormalizationDataSourceObject { - rv := objc.Call[CNNInstanceNormalizationDataSourceObject](c_, objc.Sel("dataSource")) - return rv -} diff --git a/macos/mps/cnn_instance_normalization_data_source_protocol.gen.go b/macos/mps/cnn_instance_normalization_data_source_protocol.gen.go index 0f99f069..24cccb52 100644 --- a/macos/mps/cnn_instance_normalization_data_source_protocol.gen.go +++ b/macos/mps/cnn_instance_normalization_data_source_protocol.gen.go @@ -15,49 +15,49 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource?language=objc type PCNNInstanceNormalizationDataSource interface { // optional - InitWithCoder(aDecoder foundation.Coder) objc.Object - HasInitWithCoder() bool + UpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch(commandBuffer metal.CommandBufferObject, instanceNormalizationStateBatch *foundation.Array) CNNNormalizationGammaAndBetaState + HasUpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch() bool // optional - UpdateGammaAndBetaWithInstanceNormalizationStateBatch(instanceNormalizationStateBatch *foundation.Array) bool - HasUpdateGammaAndBetaWithInstanceNormalizationStateBatch() bool + Beta() *float32 + HasBeta() bool // optional - Gamma() *float32 - HasGamma() bool + Epsilon() float32 + HasEpsilon() bool // optional EncodeWithCoder(aCoder foundation.Coder) HasEncodeWithCoder() bool // optional - Epsilon() float32 - HasEpsilon() bool + UpdateGammaAndBetaWithInstanceNormalizationStateBatch(instanceNormalizationStateBatch *foundation.Array) bool + HasUpdateGammaAndBetaWithInstanceNormalizationStateBatch() bool // optional - Purge() - HasPurge() bool + InitWithCoder(aDecoder foundation.Coder) objc.Object + HasInitWithCoder() bool // optional - Label() string - HasLabel() bool + Gamma() *float32 + HasGamma() bool // optional - Beta() *float32 - HasBeta() bool + Purge() + HasPurge() bool // optional CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object HasCopyWithZoneDevice() bool - // optional - UpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch(commandBuffer metal.CommandBufferObject, instanceNormalizationStateBatch *foundation.Array) CNNNormalizationGammaAndBetaState - HasUpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch() bool - // optional Load() bool HasLoad() bool + // optional + Label() string + HasLabel() bool + // optional NumberOfFeatureChannels() uint HasNumberOfFeatureChannels() bool @@ -71,39 +71,40 @@ type CNNInstanceNormalizationDataSourceObject struct { objc.Object } -func (c_ CNNInstanceNormalizationDataSourceObject) HasInitWithCoder() bool { - return c_.RespondsToSelector(objc.Sel("initWithCoder:")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasUpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch() bool { + return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithCommandBuffer:instanceNormalizationStateBatch:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2947957-initwithcoder?language=objc -func (c_ CNNInstanceNormalizationDataSourceObject) InitWithCoder(aDecoder foundation.Coder) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("initWithCoder:"), aDecoder) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953926-updategammaandbetawithcommandbuf?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) UpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch(commandBuffer metal.CommandBufferObject, instanceNormalizationStateBatch *foundation.Array) CNNNormalizationGammaAndBetaState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("updateGammaAndBetaWithCommandBuffer:instanceNormalizationStateBatch:"), po0, instanceNormalizationStateBatch) return rv } -func (c_ CNNInstanceNormalizationDataSourceObject) HasUpdateGammaAndBetaWithInstanceNormalizationStateBatch() bool { - return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithInstanceNormalizationStateBatch:")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasBeta() bool { + return c_.RespondsToSelector(objc.Sel("beta")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953931-updategammaandbetawithinstanceno?language=objc -func (c_ CNNInstanceNormalizationDataSourceObject) UpdateGammaAndBetaWithInstanceNormalizationStateBatch(instanceNormalizationStateBatch *foundation.Array) bool { - rv := objc.Call[bool](c_, objc.Sel("updateGammaAndBetaWithInstanceNormalizationStateBatch:"), instanceNormalizationStateBatch) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953922-beta?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) Beta() *float32 { + rv := objc.Call[*float32](c_, objc.Sel("beta")) return rv } -func (c_ CNNInstanceNormalizationDataSourceObject) HasGamma() bool { - return c_.RespondsToSelector(objc.Sel("gamma")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasEpsilon() bool { + return c_.RespondsToSelector(objc.Sel("epsilon")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953923-gamma?language=objc -func (c_ CNNInstanceNormalizationDataSourceObject) Gamma() *float32 { - rv := objc.Call[*float32](c_, objc.Sel("gamma")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953925-epsilon?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) Epsilon() float32 { + rv := objc.Call[float32](c_, objc.Sel("epsilon")) return rv } @@ -118,51 +119,51 @@ func (c_ CNNInstanceNormalizationDataSourceObject) EncodeWithCoder(aCoder founda objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), aCoder) } -func (c_ CNNInstanceNormalizationDataSourceObject) HasEpsilon() bool { - return c_.RespondsToSelector(objc.Sel("epsilon")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasUpdateGammaAndBetaWithInstanceNormalizationStateBatch() bool { + return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithInstanceNormalizationStateBatch:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953925-epsilon?language=objc -func (c_ CNNInstanceNormalizationDataSourceObject) Epsilon() float32 { - rv := objc.Call[float32](c_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953931-updategammaandbetawithinstanceno?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) UpdateGammaAndBetaWithInstanceNormalizationStateBatch(instanceNormalizationStateBatch *foundation.Array) bool { + rv := objc.Call[bool](c_, objc.Sel("updateGammaAndBetaWithInstanceNormalizationStateBatch:"), instanceNormalizationStateBatch) return rv } -func (c_ CNNInstanceNormalizationDataSourceObject) HasPurge() bool { - return c_.RespondsToSelector(objc.Sel("purge")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasInitWithCoder() bool { + return c_.RespondsToSelector(objc.Sel("initWithCoder:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/3088879-purge?language=objc -func (c_ CNNInstanceNormalizationDataSourceObject) Purge() { - objc.Call[objc.Void](c_, objc.Sel("purge")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2947957-initwithcoder?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) InitWithCoder(aDecoder foundation.Coder) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("initWithCoder:"), aDecoder) + return rv } -func (c_ CNNInstanceNormalizationDataSourceObject) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasGamma() bool { + return c_.RespondsToSelector(objc.Sel("gamma")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2952998-label?language=objc -func (c_ CNNInstanceNormalizationDataSourceObject) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953923-gamma?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) Gamma() *float32 { + rv := objc.Call[*float32](c_, objc.Sel("gamma")) return rv } -func (c_ CNNInstanceNormalizationDataSourceObject) HasBeta() bool { - return c_.RespondsToSelector(objc.Sel("beta")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasPurge() bool { + return c_.RespondsToSelector(objc.Sel("purge")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953922-beta?language=objc -func (c_ CNNInstanceNormalizationDataSourceObject) Beta() *float32 { - rv := objc.Call[*float32](c_, objc.Sel("beta")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/3088879-purge?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) Purge() { + objc.Call[objc.Void](c_, objc.Sel("purge")) } func (c_ CNNInstanceNormalizationDataSourceObject) HasCopyWithZoneDevice() bool { @@ -178,28 +179,27 @@ func (c_ CNNInstanceNormalizationDataSourceObject) CopyWithZoneDevice(zone unsaf return rv } -func (c_ CNNInstanceNormalizationDataSourceObject) HasUpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch() bool { - return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithCommandBuffer:instanceNormalizationStateBatch:")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasLoad() bool { + return c_.RespondsToSelector(objc.Sel("load")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953926-updategammaandbetawithcommandbuf?language=objc -func (c_ CNNInstanceNormalizationDataSourceObject) UpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch(commandBuffer metal.CommandBufferObject, instanceNormalizationStateBatch *foundation.Array) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("updateGammaAndBetaWithCommandBuffer:instanceNormalizationStateBatch:"), po0, instanceNormalizationStateBatch) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/3088878-load?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) Load() bool { + rv := objc.Call[bool](c_, objc.Sel("load")) return rv } -func (c_ CNNInstanceNormalizationDataSourceObject) HasLoad() bool { - return c_.RespondsToSelector(objc.Sel("load")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasLabel() bool { + return c_.RespondsToSelector(objc.Sel("label")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/3088878-load?language=objc -func (c_ CNNInstanceNormalizationDataSourceObject) Load() bool { - rv := objc.Call[bool](c_, objc.Sel("load")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2952998-label?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) Label() string { + rv := objc.Call[string](c_, objc.Sel("label")) return rv } diff --git a/macos/mps/cnn_instance_normalization_gradient_state.gen.go b/macos/mps/cnn_instance_normalization_gradient_state.gen.go index d99128b7..ef748113 100644 --- a/macos/mps/cnn_instance_normalization_gradient_state.gen.go +++ b/macos/mps/cnn_instance_normalization_gradient_state.gen.go @@ -19,11 +19,11 @@ type _CNNInstanceNormalizationGradientStateClass struct { // An interface definition for the [CNNInstanceNormalizationGradientState] class. type ICNNInstanceNormalizationGradientState interface { INNGradientState - Beta() metal.BufferObject InstanceNormalization() CNNInstanceNormalization - GradientForBeta() metal.BufferObject - Gamma() metal.BufferObject GradientForGamma() metal.BufferObject + Beta() metal.BufferObject + Gamma() metal.BufferObject + GradientForBeta() metal.BufferObject } // An object that stores information required to execute a gradient pass for instance normalization. [Full Topic] @@ -59,45 +59,16 @@ func (c_ CNNInstanceNormalizationGradientState) Init() CNNInstanceNormalizationG return rv } -func (cc _CNNInstanceNormalizationGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNInstanceNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNInstanceNormalizationGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNInstanceNormalizationGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNInstanceNormalizationGradientState { - return CNNInstanceNormalizationGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNInstanceNormalizationGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNInstanceNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNInstanceNormalizationGradientState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNInstanceNormalizationGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNInstanceNormalizationGradientState { - instance := CNNInstanceNormalizationGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNInstanceNormalizationGradientState) InitWithResource(resource metal.PResource) CNNInstanceNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNInstanceNormalizationGradientState](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNInstanceNormalizationGradientState) InitWithResources(resources []metal.PResource) CNNInstanceNormalizationGradientState { + rv := objc.Call[CNNInstanceNormalizationGradientState](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNInstanceNormalizationGradientStateWithResource(resource metal.PResource) CNNInstanceNormalizationGradientState { - instance := CNNInstanceNormalizationGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNInstanceNormalizationGradientStateWithResources(resources []metal.PResource) CNNInstanceNormalizationGradientState { + instance := CNNInstanceNormalizationGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -117,74 +88,50 @@ func NewCNNInstanceNormalizationGradientStateWithDeviceBufferSize(device metal.P return instance } -func (c_ CNNInstanceNormalizationGradientState) InitWithResources(resources []metal.PResource) CNNInstanceNormalizationGradientState { - rv := objc.Call[CNNInstanceNormalizationGradientState](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNInstanceNormalizationGradientState) InitWithResource(resource metal.PResource) CNNInstanceNormalizationGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNInstanceNormalizationGradientState](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNInstanceNormalizationGradientStateWithResources(resources []metal.PResource) CNNInstanceNormalizationGradientState { - instance := CNNInstanceNormalizationGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNInstanceNormalizationGradientStateWithResource(resource metal.PResource) CNNInstanceNormalizationGradientState { + instance := CNNInstanceNormalizationGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNInstanceNormalizationGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNInstanceNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNInstanceNormalizationGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) +func (cc _CNNInstanceNormalizationGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNInstanceNormalizationGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNInstanceNormalizationGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNInstanceNormalizationGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNInstanceNormalizationGradientState { - return CNNInstanceNormalizationGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNInstanceNormalizationGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNInstanceNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNInstanceNormalizationGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNInstanceNormalizationGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNInstanceNormalizationGradientState { + return CNNInstanceNormalizationGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNInstanceNormalizationGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNInstanceNormalizationGradientState { - return CNNInstanceNormalizationGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNInstanceNormalizationGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNInstanceNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNInstanceNormalizationGradientState](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationgradientstate/2953924-instancenormalization?language=objc +func (c_ CNNInstanceNormalizationGradientState) InstanceNormalization() CNNInstanceNormalization { + rv := objc.Call[CNNInstanceNormalization](c_, objc.Sel("instanceNormalization")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNInstanceNormalizationGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNInstanceNormalizationGradientState { - return CNNInstanceNormalizationGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNInstanceNormalizationGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNInstanceNormalizationGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNInstanceNormalizationGradientState](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationgradientstate/2953928-gradientforgamma?language=objc +func (c_ CNNInstanceNormalizationGradientState) GradientForGamma() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForGamma")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNInstanceNormalizationGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNInstanceNormalizationGradientState { - instance := CNNInstanceNormalizationGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationgradientstate/2956162-beta?language=objc @@ -193,22 +140,6 @@ func (c_ CNNInstanceNormalizationGradientState) Beta() metal.BufferObject { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationgradientstate/2953924-instancenormalization?language=objc -func (c_ CNNInstanceNormalizationGradientState) InstanceNormalization() CNNInstanceNormalization { - rv := objc.Call[CNNInstanceNormalization](c_, objc.Sel("instanceNormalization")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationgradientstate/2953930-gradientforbeta?language=objc -func (c_ CNNInstanceNormalizationGradientState) GradientForBeta() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForBeta")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationgradientstate/2956161-gamma?language=objc @@ -219,8 +150,8 @@ func (c_ CNNInstanceNormalizationGradientState) Gamma() metal.BufferObject { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationgradientstate/2953928-gradientforgamma?language=objc -func (c_ CNNInstanceNormalizationGradientState) GradientForGamma() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForGamma")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationgradientstate/2953930-gradientforbeta?language=objc +func (c_ CNNInstanceNormalizationGradientState) GradientForBeta() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForBeta")) return rv } diff --git a/macos/mps/cnn_kernel.gen.go b/macos/mps/cnn_kernel.gen.go index 36b96875..e777a2bb 100644 --- a/macos/mps/cnn_kernel.gen.go +++ b/macos/mps/cnn_kernel.gen.go @@ -20,59 +20,47 @@ type _CNNKernelClass struct { // An interface definition for the [CNNKernel] class. type ICNNKernel interface { IKernel - EncodeToCommandBufferSourceImageDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, destinationImage IImage) - EncodeToCommandBufferObjectSourceImageDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, destinationImage IImage) + BatchEncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint TemporaryResultStateForCommandBufferSourceImageSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, sourceStates []IState, destinationImage IImage) State TemporaryResultStateForCommandBufferObjectSourceImageSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, sourceStates []IState, destinationImage IImage) State - EncodeToCommandBufferSourceImageDestinationStateDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, destinationState IState, destinationImage IImage) - EncodeToCommandBufferObjectSourceImageDestinationStateDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, destinationState IState, destinationImage IImage) - EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationImages(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, destinationStates *foundation.Array, destinationImages *foundation.Array) - EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationImages(commandBufferObject objc.IObject, sourceImages *foundation.Array, destinationStates *foundation.Array, destinationImages *foundation.Array) - EncodeBatchToCommandBufferSourceImagesDestinationImages(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, destinationImages *foundation.Array) - EncodeBatchToCommandBufferObjectSourceImagesDestinationImages(commandBufferObject objc.IObject, sourceImages *foundation.Array, destinationImages *foundation.Array) - EncodeToCommandBufferSourceImageDestinationStateDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImage IImage, outState unsafe.Pointer, isTemporary bool) Image - EncodeToCommandBufferObjectSourceImageDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImage IImage, outState unsafe.Pointer, isTemporary bool) Image + AppendBatchBarrier() bool TemporaryResultStateBatchForCommandBufferSourceImageSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array TemporaryResultStateBatchForCommandBufferObjectSourceImageSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array DestinationImageDescriptorForSourceImagesSourceStates(sourceImages []IImage, sourceStates []IState) ImageDescriptor - BatchEncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint - ResultStateForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) State - IsResultStateReusedAcrossBatch() bool + EncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) uint EncodeBatchToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array) *foundation.Array EncodeBatchToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages *foundation.Array) *foundation.Array - AppendBatchBarrier() bool - EncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) uint - EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, outStates unsafe.Pointer, isTemporary bool) *foundation.Array - EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages *foundation.Array, outStates unsafe.Pointer, isTemporary bool) *foundation.Array + ResultStateBatchForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array EncodeToCommandBufferSourceImage(commandBuffer metal.PCommandBuffer, sourceImage IImage) Image EncodeToCommandBufferObjectSourceImage(commandBufferObject objc.IObject, sourceImage IImage) Image - ResultStateBatchForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array - StrideInPixelsY() uint - KernelHeight() uint - KernelWidth() uint - DestinationFeatureChannelOffset() uint - SetDestinationFeatureChannelOffset(value uint) - DestinationImageAllocator() ImageAllocatorObject - SetDestinationImageAllocator(value PImageAllocator) - SetDestinationImageAllocatorObject(valueObject objc.IObject) + IsResultStateReusedAcrossBatch() bool + ResultStateForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) State SourceFeatureChannelMaxCount() uint SetSourceFeatureChannelMaxCount(value uint) - DilationRateY() uint - ClipRect() metal.Region - SetClipRect(value metal.Region) - DilationRateX() uint - StrideInPixelsX() uint IsStateModified() bool + Padding() NNPaddingObject + SetPadding(value PNNPadding) + SetPaddingObject(valueObject objc.IObject) SourceFeatureChannelOffset() uint SetSourceFeatureChannelOffset(value uint) + StrideInPixelsY() uint + StrideInPixelsX() uint EdgeMode() ImageEdgeMode SetEdgeMode(value ImageEdgeMode) - IsBackwards() bool - Padding() NNPaddingObject - SetPadding(value PNNPadding) - SetPaddingObject(valueObject objc.IObject) Offset() Offset SetOffset(value Offset) + IsBackwards() bool + DilationRateY() uint + KernelHeight() uint + ClipRect() metal.Region + SetClipRect(value metal.Region) + KernelWidth() uint + DestinationImageAllocator() ImageAllocatorObject + SetDestinationImageAllocator(value PImageAllocator) + SetDestinationImageAllocatorObject(valueObject objc.IObject) + DestinationFeatureChannelOffset() uint + SetDestinationFeatureChannelOffset(value uint) + DilationRateX() uint } // Base class for neural network layers. [Full Topic] @@ -138,19 +126,12 @@ func CNNKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNN return instance } -// Encodes a kernel into a command buffer. The ensuing operation proceeds out-of-place. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648919-encodetocommandbuffer?language=objc -func (c_ CNNKernel) EncodeToCommandBufferSourceImageDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, destinationImage IImage) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationImage:"), po0, sourceImage, destinationImage) -} - -// Encodes a kernel into a command buffer. The ensuing operation proceeds out-of-place. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648919-encodetocommandbuffer?language=objc -func (c_ CNNKernel) EncodeToCommandBufferObjectSourceImageDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, destinationImage IImage) { - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationImage:"), commandBufferObject, sourceImage, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/3237263-batchencodingstoragesizeforsourc?language=objc +func (c_ CNNKernel) BatchEncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint { + rv := objc.Call[uint](c_, objc.Sel("batchEncodingStorageSizeForSourceImage:sourceStates:destinationImage:"), sourceImage, sourceStates, destinationImage) + return rv } // [Full Topic] @@ -172,63 +153,9 @@ func (c_ CNNKernel) TemporaryResultStateForCommandBufferObjectSourceImageSourceS // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942672-encodetocommandbuffer?language=objc -func (c_ CNNKernel) EncodeToCommandBufferSourceImageDestinationStateDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, destinationState IState, destinationImage IImage) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationState:destinationImage:"), po0, sourceImage, destinationState, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942672-encodetocommandbuffer?language=objc -func (c_ CNNKernel) EncodeToCommandBufferObjectSourceImageDestinationStateDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, destinationState IState, destinationImage IImage) { - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationState:destinationImage:"), commandBufferObject, sourceImage, destinationState, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942649-encodebatchtocommandbuffer?language=objc -func (c_ CNNKernel) EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationImages(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, destinationStates *foundation.Array, destinationImages *foundation.Array) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationImages:"), po0, sourceImages, destinationStates, destinationImages) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942649-encodebatchtocommandbuffer?language=objc -func (c_ CNNKernel) EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationImages(commandBufferObject objc.IObject, sourceImages *foundation.Array, destinationStates *foundation.Array, destinationImages *foundation.Array) { - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationImages:"), commandBufferObject, sourceImages, destinationStates, destinationImages) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942681-encodebatchtocommandbuffer?language=objc -func (c_ CNNKernel) EncodeBatchToCommandBufferSourceImagesDestinationImages(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, destinationImages *foundation.Array) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationImages:"), po0, sourceImages, destinationImages) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942681-encodebatchtocommandbuffer?language=objc -func (c_ CNNKernel) EncodeBatchToCommandBufferObjectSourceImagesDestinationImages(commandBufferObject objc.IObject, sourceImages *foundation.Array, destinationImages *foundation.Array) { - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationImages:"), commandBufferObject, sourceImages, destinationImages) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942680-encodetocommandbuffer?language=objc -func (c_ CNNKernel) EncodeToCommandBufferSourceImageDestinationStateDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImage IImage, outState unsafe.Pointer, isTemporary bool) Image { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:"), po0, sourceImage, outState, isTemporary) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942680-encodetocommandbuffer?language=objc -func (c_ CNNKernel) EncodeToCommandBufferObjectSourceImageDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImage IImage, outState unsafe.Pointer, isTemporary bool) Image { - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:"), commandBufferObject, sourceImage, outState, isTemporary) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942671-appendbatchbarrier?language=objc +func (c_ CNNKernel) AppendBatchBarrier() bool { + rv := objc.Call[bool](c_, objc.Sel("appendBatchBarrier")) return rv } @@ -259,25 +186,9 @@ func (c_ CNNKernel) DestinationImageDescriptorForSourceImagesSourceStates(source // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/3237263-batchencodingstoragesizeforsourc?language=objc -func (c_ CNNKernel) BatchEncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint { - rv := objc.Call[uint](c_, objc.Sel("batchEncodingStorageSizeForSourceImage:sourceStates:destinationImage:"), sourceImage, sourceStates, destinationImage) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2947932-resultstateforsourceimage?language=objc -func (c_ CNNKernel) ResultStateForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) State { - rv := objc.Call[State](c_, objc.Sel("resultStateForSourceImage:sourceStates:destinationImage:"), sourceImage, sourceStates, destinationImage) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942665-isresultstatereusedacrossbatch?language=objc -func (c_ CNNKernel) IsResultStateReusedAcrossBatch() bool { - rv := objc.Call[bool](c_, objc.Sel("isResultStateReusedAcrossBatch")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/3237264-encodingstoragesizeforsourceimag?language=objc +func (c_ CNNKernel) EncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) uint { + rv := objc.Call[uint](c_, objc.Sel("encodingStorageSizeForSourceImage:sourceStates:destinationImage:"), sourceImage, sourceStates, destinationImage) return rv } @@ -300,34 +211,9 @@ func (c_ CNNKernel) EncodeBatchToCommandBufferObjectSourceImages(commandBufferOb // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942671-appendbatchbarrier?language=objc -func (c_ CNNKernel) AppendBatchBarrier() bool { - rv := objc.Call[bool](c_, objc.Sel("appendBatchBarrier")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/3237264-encodingstoragesizeforsourceimag?language=objc -func (c_ CNNKernel) EncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) uint { - rv := objc.Call[uint](c_, objc.Sel("encodingStorageSizeForSourceImage:sourceStates:destinationImage:"), sourceImage, sourceStates, destinationImage) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942646-encodebatchtocommandbuffer?language=objc -func (c_ CNNKernel) EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, outStates unsafe.Pointer, isTemporary bool) *foundation.Array { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:"), po0, sourceImages, outStates, isTemporary) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942646-encodebatchtocommandbuffer?language=objc -func (c_ CNNKernel) EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages *foundation.Array, outStates unsafe.Pointer, isTemporary bool) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:"), commandBufferObject, sourceImages, outStates, isTemporary) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2947931-resultstatebatchforsourceimage?language=objc +func (c_ CNNKernel) ResultStateBatchForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("resultStateBatchForSourceImage:sourceStates:destinationImage:"), sourceImage, sourceStates, destinationImage) return rv } @@ -350,208 +236,216 @@ func (c_ CNNKernel) EncodeToCommandBufferObjectSourceImage(commandBufferObject o // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2947931-resultstatebatchforsourceimage?language=objc -func (c_ CNNKernel) ResultStateBatchForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("resultStateBatchForSourceImage:sourceStates:destinationImage:"), sourceImage, sourceStates, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942665-isresultstatereusedacrossbatch?language=objc +func (c_ CNNKernel) IsResultStateReusedAcrossBatch() bool { + rv := objc.Call[bool](c_, objc.Sel("isResultStateReusedAcrossBatch")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865644-strideinpixelsy?language=objc -func (c_ CNNKernel) StrideInPixelsY() uint { - rv := objc.Call[uint](c_, objc.Sel("strideInPixelsY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2947932-resultstateforsourceimage?language=objc +func (c_ CNNKernel) ResultStateForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) State { + rv := objc.Call[State](c_, objc.Sel("resultStateForSourceImage:sourceStates:destinationImage:"), sourceImage, sourceStates, destinationImage) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865648-kernelheight?language=objc -func (c_ CNNKernel) KernelHeight() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelHeight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2951917-sourcefeaturechannelmaxcount?language=objc +func (c_ CNNKernel) SourceFeatureChannelMaxCount() uint { + rv := objc.Call[uint](c_, objc.Sel("sourceFeatureChannelMaxCount")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865637-kernelwidth?language=objc -func (c_ CNNKernel) KernelWidth() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2951917-sourcefeaturechannelmaxcount?language=objc +func (c_ CNNKernel) SetSourceFeatureChannelMaxCount(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setSourceFeatureChannelMaxCount:"), value) } -// The number of channels in the destination image to skip before writing output data. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2097550-destinationfeaturechanneloffset?language=objc -func (c_ CNNKernel) DestinationFeatureChannelOffset() uint { - rv := objc.Call[uint](c_, objc.Sel("destinationFeatureChannelOffset")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942673-isstatemodified?language=objc +func (c_ CNNKernel) IsStateModified() bool { + rv := objc.Call[bool](c_, objc.Sel("isStateModified")) return rv } -// The number of channels in the destination image to skip before writing output data. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2097550-destinationfeaturechanneloffset?language=objc -func (c_ CNNKernel) SetDestinationFeatureChannelOffset(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setDestinationFeatureChannelOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865657-padding?language=objc +func (c_ CNNKernel) Padding() NNPaddingObject { + rv := objc.Call[NNPaddingObject](c_, objc.Sel("padding")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865650-destinationimageallocator?language=objc -func (c_ CNNKernel) DestinationImageAllocator() ImageAllocatorObject { - rv := objc.Call[ImageAllocatorObject](c_, objc.Sel("destinationImageAllocator")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865657-padding?language=objc +func (c_ CNNKernel) SetPadding(value PNNPadding) { + po0 := objc.WrapAsProtocol("MPSNNPadding", value) + objc.Call[objc.Void](c_, objc.Sel("setPadding:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865650-destinationimageallocator?language=objc -func (c_ CNNKernel) SetDestinationImageAllocator(value PImageAllocator) { - po0 := objc.WrapAsProtocol("MPSImageAllocator", value) - objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865657-padding?language=objc +func (c_ CNNKernel) SetPaddingObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setPadding:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865650-destinationimageallocator?language=objc -func (c_ CNNKernel) SetDestinationImageAllocatorObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942682-sourcefeaturechanneloffset?language=objc +func (c_ CNNKernel) SourceFeatureChannelOffset() uint { + rv := objc.Call[uint](c_, objc.Sel("sourceFeatureChannelOffset")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2951917-sourcefeaturechannelmaxcount?language=objc -func (c_ CNNKernel) SourceFeatureChannelMaxCount() uint { - rv := objc.Call[uint](c_, objc.Sel("sourceFeatureChannelMaxCount")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942682-sourcefeaturechanneloffset?language=objc +func (c_ CNNKernel) SetSourceFeatureChannelOffset(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setSourceFeatureChannelOffset:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2951917-sourcefeaturechannelmaxcount?language=objc -func (c_ CNNKernel) SetSourceFeatureChannelMaxCount(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setSourceFeatureChannelMaxCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865644-strideinpixelsy?language=objc +func (c_ CNNKernel) StrideInPixelsY() uint { + rv := objc.Call[uint](c_, objc.Sel("strideInPixelsY")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942679-dilationratey?language=objc -func (c_ CNNKernel) DilationRateY() uint { - rv := objc.Call[uint](c_, objc.Sel("dilationRateY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865654-strideinpixelsx?language=objc +func (c_ CNNKernel) StrideInPixelsX() uint { + rv := objc.Call[uint](c_, objc.Sel("strideInPixelsX")) return rv } -// An optional clip rectangle to use when writing data. Only the pixels in the clip rectangle will be overwritten. [Full Topic] +// The edge mode to use when texture reads stray off the edge of an image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648911-cliprect?language=objc -func (c_ CNNKernel) ClipRect() metal.Region { - rv := objc.Call[metal.Region](c_, objc.Sel("clipRect")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648826-edgemode?language=objc +func (c_ CNNKernel) EdgeMode() ImageEdgeMode { + rv := objc.Call[ImageEdgeMode](c_, objc.Sel("edgeMode")) return rv } -// An optional clip rectangle to use when writing data. Only the pixels in the clip rectangle will be overwritten. [Full Topic] +// The edge mode to use when texture reads stray off the edge of an image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648911-cliprect?language=objc -func (c_ CNNKernel) SetClipRect(value metal.Region) { - objc.Call[objc.Void](c_, objc.Sel("setClipRect:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648826-edgemode?language=objc +func (c_ CNNKernel) SetEdgeMode(value ImageEdgeMode) { + objc.Call[objc.Void](c_, objc.Sel("setEdgeMode:"), value) } -// [Full Topic] +// The position of the destination image's clip rectangle origin, relative to the source image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942669-dilationratex?language=objc -func (c_ CNNKernel) DilationRateX() uint { - rv := objc.Call[uint](c_, objc.Sel("dilationRateX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648835-offset?language=objc +func (c_ CNNKernel) Offset() Offset { + rv := objc.Call[Offset](c_, objc.Sel("offset")) return rv } -// [Full Topic] +// The position of the destination image's clip rectangle origin, relative to the source image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865654-strideinpixelsx?language=objc -func (c_ CNNKernel) StrideInPixelsX() uint { - rv := objc.Call[uint](c_, objc.Sel("strideInPixelsX")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648835-offset?language=objc +func (c_ CNNKernel) SetOffset(value Offset) { + objc.Call[objc.Void](c_, objc.Sel("setOffset:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942673-isstatemodified?language=objc -func (c_ CNNKernel) IsStateModified() bool { - rv := objc.Call[bool](c_, objc.Sel("isStateModified")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865634-isbackwards?language=objc +func (c_ CNNKernel) IsBackwards() bool { + rv := objc.Call[bool](c_, objc.Sel("isBackwards")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942682-sourcefeaturechanneloffset?language=objc -func (c_ CNNKernel) SourceFeatureChannelOffset() uint { - rv := objc.Call[uint](c_, objc.Sel("sourceFeatureChannelOffset")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942679-dilationratey?language=objc +func (c_ CNNKernel) DilationRateY() uint { + rv := objc.Call[uint](c_, objc.Sel("dilationRateY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942682-sourcefeaturechanneloffset?language=objc -func (c_ CNNKernel) SetSourceFeatureChannelOffset(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setSourceFeatureChannelOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865648-kernelheight?language=objc +func (c_ CNNKernel) KernelHeight() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelHeight")) + return rv } -// The edge mode to use when texture reads stray off the edge of an image. [Full Topic] +// An optional clip rectangle to use when writing data. Only the pixels in the clip rectangle will be overwritten. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648826-edgemode?language=objc -func (c_ CNNKernel) EdgeMode() ImageEdgeMode { - rv := objc.Call[ImageEdgeMode](c_, objc.Sel("edgeMode")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648911-cliprect?language=objc +func (c_ CNNKernel) ClipRect() metal.Region { + rv := objc.Call[metal.Region](c_, objc.Sel("clipRect")) return rv } -// The edge mode to use when texture reads stray off the edge of an image. [Full Topic] +// An optional clip rectangle to use when writing data. Only the pixels in the clip rectangle will be overwritten. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648826-edgemode?language=objc -func (c_ CNNKernel) SetEdgeMode(value ImageEdgeMode) { - objc.Call[objc.Void](c_, objc.Sel("setEdgeMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648911-cliprect?language=objc +func (c_ CNNKernel) SetClipRect(value metal.Region) { + objc.Call[objc.Void](c_, objc.Sel("setClipRect:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865634-isbackwards?language=objc -func (c_ CNNKernel) IsBackwards() bool { - rv := objc.Call[bool](c_, objc.Sel("isBackwards")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865637-kernelwidth?language=objc +func (c_ CNNKernel) KernelWidth() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865657-padding?language=objc -func (c_ CNNKernel) Padding() NNPaddingObject { - rv := objc.Call[NNPaddingObject](c_, objc.Sel("padding")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865650-destinationimageallocator?language=objc +func (c_ CNNKernel) DestinationImageAllocator() ImageAllocatorObject { + rv := objc.Call[ImageAllocatorObject](c_, objc.Sel("destinationImageAllocator")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865657-padding?language=objc -func (c_ CNNKernel) SetPadding(value PNNPadding) { - po0 := objc.WrapAsProtocol("MPSNNPadding", value) - objc.Call[objc.Void](c_, objc.Sel("setPadding:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865650-destinationimageallocator?language=objc +func (c_ CNNKernel) SetDestinationImageAllocator(value PImageAllocator) { + po0 := objc.WrapAsProtocol("MPSImageAllocator", value) + objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865657-padding?language=objc -func (c_ CNNKernel) SetPaddingObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setPadding:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2865650-destinationimageallocator?language=objc +func (c_ CNNKernel) SetDestinationImageAllocatorObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), valueObject) } -// The position of the destination image's clip rectangle origin, relative to the source image. [Full Topic] +// The number of channels in the destination image to skip before writing output data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648835-offset?language=objc -func (c_ CNNKernel) Offset() Offset { - rv := objc.Call[Offset](c_, objc.Sel("offset")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2097550-destinationfeaturechanneloffset?language=objc +func (c_ CNNKernel) DestinationFeatureChannelOffset() uint { + rv := objc.Call[uint](c_, objc.Sel("destinationFeatureChannelOffset")) return rv } -// The position of the destination image's clip rectangle origin, relative to the source image. [Full Topic] +// The number of channels in the destination image to skip before writing output data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/1648835-offset?language=objc -func (c_ CNNKernel) SetOffset(value Offset) { - objc.Call[objc.Void](c_, objc.Sel("setOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2097550-destinationfeaturechanneloffset?language=objc +func (c_ CNNKernel) SetDestinationFeatureChannelOffset(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setDestinationFeatureChannelOffset:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnkernel/2942669-dilationratex?language=objc +func (c_ CNNKernel) DilationRateX() uint { + rv := objc.Call[uint](c_, objc.Sel("dilationRateX")) + return rv } diff --git a/macos/mps/cnn_local_contrast_normalization.gen.go b/macos/mps/cnn_local_contrast_normalization.gen.go index b8574fa8..34b5412b 100644 --- a/macos/mps/cnn_local_contrast_normalization.gen.go +++ b/macos/mps/cnn_local_contrast_normalization.gen.go @@ -19,18 +19,18 @@ type _CNNLocalContrastNormalizationClass struct { // An interface definition for the [CNNLocalContrastNormalization] class. type ICNNLocalContrastNormalization interface { ICNNKernel - Delta() float32 - SetDelta(value float32) - Alpha() float32 - SetAlpha(value float32) - Pm() float32 - SetPm(value float32) - P0() float32 - SetP0(value float32) Ps() float32 SetPs(value float32) + P0() float32 + SetP0(value float32) Beta() float32 SetBeta(value float32) + Delta() float32 + SetDelta(value float32) + Pm() float32 + SetPm(value float32) + Alpha() float32 + SetAlpha(value float32) } // A local-contrast normalization kernel. [Full Topic] @@ -111,92 +111,92 @@ func CNNLocalContrastNormalization_CopyWithZoneDevice(zone unsafe.Pointer, devic return instance } -// The "delta" variable of the kernel function. [Full Topic] +// The "ps" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648812-delta?language=objc -func (c_ CNNLocalContrastNormalization) Delta() float32 { - rv := objc.Call[float32](c_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648942-ps?language=objc +func (c_ CNNLocalContrastNormalization) Ps() float32 { + rv := objc.Call[float32](c_, objc.Sel("ps")) return rv } -// The "delta" variable of the kernel function. [Full Topic] +// The "ps" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648812-delta?language=objc -func (c_ CNNLocalContrastNormalization) SetDelta(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648942-ps?language=objc +func (c_ CNNLocalContrastNormalization) SetPs(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setPs:"), value) } -// The "alpha" variable of the kernel function. [Full Topic] +// The "p0" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648923-alpha?language=objc -func (c_ CNNLocalContrastNormalization) Alpha() float32 { - rv := objc.Call[float32](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648953-p0?language=objc +func (c_ CNNLocalContrastNormalization) P0() float32 { + rv := objc.Call[float32](c_, objc.Sel("p0")) return rv } -// The "alpha" variable of the kernel function. [Full Topic] +// The "p0" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648923-alpha?language=objc -func (c_ CNNLocalContrastNormalization) SetAlpha(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648953-p0?language=objc +func (c_ CNNLocalContrastNormalization) SetP0(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) } -// The "pm" variable of the kernel function. [Full Topic] +// The "beta" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648907-pm?language=objc -func (c_ CNNLocalContrastNormalization) Pm() float32 { - rv := objc.Call[float32](c_, objc.Sel("pm")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648905-beta?language=objc +func (c_ CNNLocalContrastNormalization) Beta() float32 { + rv := objc.Call[float32](c_, objc.Sel("beta")) return rv } -// The "pm" variable of the kernel function. [Full Topic] +// The "beta" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648907-pm?language=objc -func (c_ CNNLocalContrastNormalization) SetPm(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648905-beta?language=objc +func (c_ CNNLocalContrastNormalization) SetBeta(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) } -// The "p0" variable of the kernel function. [Full Topic] +// The "delta" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648953-p0?language=objc -func (c_ CNNLocalContrastNormalization) P0() float32 { - rv := objc.Call[float32](c_, objc.Sel("p0")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648812-delta?language=objc +func (c_ CNNLocalContrastNormalization) Delta() float32 { + rv := objc.Call[float32](c_, objc.Sel("delta")) return rv } -// The "p0" variable of the kernel function. [Full Topic] +// The "delta" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648953-p0?language=objc -func (c_ CNNLocalContrastNormalization) SetP0(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648812-delta?language=objc +func (c_ CNNLocalContrastNormalization) SetDelta(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } -// The "ps" variable of the kernel function. [Full Topic] +// The "pm" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648942-ps?language=objc -func (c_ CNNLocalContrastNormalization) Ps() float32 { - rv := objc.Call[float32](c_, objc.Sel("ps")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648907-pm?language=objc +func (c_ CNNLocalContrastNormalization) Pm() float32 { + rv := objc.Call[float32](c_, objc.Sel("pm")) return rv } -// The "ps" variable of the kernel function. [Full Topic] +// The "pm" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648942-ps?language=objc -func (c_ CNNLocalContrastNormalization) SetPs(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setPs:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648907-pm?language=objc +func (c_ CNNLocalContrastNormalization) SetPm(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) } -// The "beta" variable of the kernel function. [Full Topic] +// The "alpha" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648905-beta?language=objc -func (c_ CNNLocalContrastNormalization) Beta() float32 { - rv := objc.Call[float32](c_, objc.Sel("beta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648923-alpha?language=objc +func (c_ CNNLocalContrastNormalization) Alpha() float32 { + rv := objc.Call[float32](c_, objc.Sel("alpha")) return rv } -// The "beta" variable of the kernel function. [Full Topic] +// The "alpha" variable of the kernel function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648905-beta?language=objc -func (c_ CNNLocalContrastNormalization) SetBeta(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648923-alpha?language=objc +func (c_ CNNLocalContrastNormalization) SetAlpha(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } diff --git a/macos/mps/cnn_local_contrast_normalization_gradient.gen.go b/macos/mps/cnn_local_contrast_normalization_gradient.gen.go index d69ac637..a8e1b7ac 100644 --- a/macos/mps/cnn_local_contrast_normalization_gradient.gen.go +++ b/macos/mps/cnn_local_contrast_normalization_gradient.gen.go @@ -19,18 +19,18 @@ type _CNNLocalContrastNormalizationGradientClass struct { // An interface definition for the [CNNLocalContrastNormalizationGradient] class. type ICNNLocalContrastNormalizationGradient interface { ICNNGradientKernel - Pm() float32 - SetPm(value float32) + Ps() float32 + SetPs(value float32) P0() float32 SetP0(value float32) - Alpha() float32 - SetAlpha(value float32) Beta() float32 SetBeta(value float32) - Ps() float32 - SetPs(value float32) Delta() float32 SetDelta(value float32) + Pm() float32 + SetPm(value float32) + Alpha() float32 + SetAlpha(value float32) } // A gradient local-contrast normalization kernel. [Full Topic] @@ -113,17 +113,17 @@ func CNNLocalContrastNormalizationGradient_CopyWithZoneDevice(zone unsafe.Pointe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942485-pm?language=objc -func (c_ CNNLocalContrastNormalizationGradient) Pm() float32 { - rv := objc.Call[float32](c_, objc.Sel("pm")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942466-ps?language=objc +func (c_ CNNLocalContrastNormalizationGradient) Ps() float32 { + rv := objc.Call[float32](c_, objc.Sel("ps")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942485-pm?language=objc -func (c_ CNNLocalContrastNormalizationGradient) SetPm(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942466-ps?language=objc +func (c_ CNNLocalContrastNormalizationGradient) SetPs(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setPs:"), value) } // [Full Topic] @@ -143,60 +143,60 @@ func (c_ CNNLocalContrastNormalizationGradient) SetP0(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942471-alpha?language=objc -func (c_ CNNLocalContrastNormalizationGradient) Alpha() float32 { - rv := objc.Call[float32](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942484-beta?language=objc +func (c_ CNNLocalContrastNormalizationGradient) Beta() float32 { + rv := objc.Call[float32](c_, objc.Sel("beta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942471-alpha?language=objc -func (c_ CNNLocalContrastNormalizationGradient) SetAlpha(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942484-beta?language=objc +func (c_ CNNLocalContrastNormalizationGradient) SetBeta(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942484-beta?language=objc -func (c_ CNNLocalContrastNormalizationGradient) Beta() float32 { - rv := objc.Call[float32](c_, objc.Sel("beta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942482-delta?language=objc +func (c_ CNNLocalContrastNormalizationGradient) Delta() float32 { + rv := objc.Call[float32](c_, objc.Sel("delta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942484-beta?language=objc -func (c_ CNNLocalContrastNormalizationGradient) SetBeta(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942482-delta?language=objc +func (c_ CNNLocalContrastNormalizationGradient) SetDelta(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942466-ps?language=objc -func (c_ CNNLocalContrastNormalizationGradient) Ps() float32 { - rv := objc.Call[float32](c_, objc.Sel("ps")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942485-pm?language=objc +func (c_ CNNLocalContrastNormalizationGradient) Pm() float32 { + rv := objc.Call[float32](c_, objc.Sel("pm")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942466-ps?language=objc -func (c_ CNNLocalContrastNormalizationGradient) SetPs(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setPs:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942485-pm?language=objc +func (c_ CNNLocalContrastNormalizationGradient) SetPm(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942482-delta?language=objc -func (c_ CNNLocalContrastNormalizationGradient) Delta() float32 { - rv := objc.Call[float32](c_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942471-alpha?language=objc +func (c_ CNNLocalContrastNormalizationGradient) Alpha() float32 { + rv := objc.Call[float32](c_, objc.Sel("alpha")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942482-delta?language=objc -func (c_ CNNLocalContrastNormalizationGradient) SetDelta(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942471-alpha?language=objc +func (c_ CNNLocalContrastNormalizationGradient) SetAlpha(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } diff --git a/macos/mps/cnn_local_contrast_normalization_gradient_node.gen.go b/macos/mps/cnn_local_contrast_normalization_gradient_node.gen.go index 37919bc7..7d9ad534 100644 --- a/macos/mps/cnn_local_contrast_normalization_gradient_node.gen.go +++ b/macos/mps/cnn_local_contrast_normalization_gradient_node.gen.go @@ -18,20 +18,20 @@ type _CNNLocalContrastNormalizationGradientNodeClass struct { // An interface definition for the [CNNLocalContrastNormalizationGradientNode] class. type ICNNLocalContrastNormalizationGradientNode interface { INNGradientFilterNode - Pm() float32 - SetPm(value float32) - Beta() float32 - SetBeta(value float32) - KernelWidth() uint - Alpha() float32 - SetAlpha(value float32) + Ps() float32 + SetPs(value float32) P0() float32 SetP0(value float32) + Beta() float32 + SetBeta(value float32) Delta() float32 SetDelta(value float32) + Pm() float32 + SetPm(value float32) + Alpha() float32 + SetAlpha(value float32) KernelHeight() uint - Ps() float32 - SetPs(value float32) + KernelWidth() uint } // A representation of a gradient local-contrast normalization kernel. [Full Topic] @@ -95,17 +95,32 @@ func (c_ CNNLocalContrastNormalizationGradientNode) Init() CNNLocalContrastNorma // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948053-pm?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) Pm() float32 { - rv := objc.Call[float32](c_, objc.Sel("pm")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948008-ps?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) Ps() float32 { + rv := objc.Call[float32](c_, objc.Sel("ps")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948053-pm?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) SetPm(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948008-ps?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) SetPs(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setPs:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948017-p0?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) P0() float32 { + rv := objc.Call[float32](c_, objc.Sel("p0")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948017-p0?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) SetP0(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) } // [Full Topic] @@ -125,55 +140,47 @@ func (c_ CNNLocalContrastNormalizationGradientNode) SetBeta(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2947965-kernelwidth?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) KernelWidth() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2947973-alpha?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) Alpha() float32 { - rv := objc.Call[float32](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948014-delta?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) Delta() float32 { + rv := objc.Call[float32](c_, objc.Sel("delta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2947973-alpha?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) SetAlpha(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948014-delta?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) SetDelta(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948017-p0?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) P0() float32 { - rv := objc.Call[float32](c_, objc.Sel("p0")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948053-pm?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) Pm() float32 { + rv := objc.Call[float32](c_, objc.Sel("pm")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948017-p0?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) SetP0(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948053-pm?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) SetPm(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948014-delta?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) Delta() float32 { - rv := objc.Call[float32](c_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2947973-alpha?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) Alpha() float32 { + rv := objc.Call[float32](c_, objc.Sel("alpha")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948014-delta?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) SetDelta(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2947973-alpha?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) SetAlpha(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } // [Full Topic] @@ -186,15 +193,8 @@ func (c_ CNNLocalContrastNormalizationGradientNode) KernelHeight() uint { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948008-ps?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) Ps() float32 { - rv := objc.Call[float32](c_, objc.Sel("ps")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2947965-kernelwidth?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) KernelWidth() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948008-ps?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) SetPs(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setPs:"), value) -} diff --git a/macos/mps/cnn_local_contrast_normalization_node.gen.go b/macos/mps/cnn_local_contrast_normalization_node.gen.go index 6b9dfdfc..37763505 100644 --- a/macos/mps/cnn_local_contrast_normalization_node.gen.go +++ b/macos/mps/cnn_local_contrast_normalization_node.gen.go @@ -18,16 +18,16 @@ type _CNNLocalContrastNormalizationNodeClass struct { // An interface definition for the [CNNLocalContrastNormalizationNode] class. type ICNNLocalContrastNormalizationNode interface { ICNNNormalizationNode - P0() float32 - SetP0(value float32) Ps() float32 SetPs(value float32) - KernelWidth() uint - SetKernelWidth(value uint) + P0() float32 + SetP0(value float32) Pm() float32 SetPm(value float32) KernelHeight() uint SetKernelHeight(value uint) + KernelWidth() uint + SetKernelWidth(value uint) } // A representation of a local-contrast normalization kernel. [Full Topic] @@ -55,20 +55,6 @@ func CNNLocalContrastNormalizationNode_NodeWithSourceKernelSize(sourceNode INNIm return CNNLocalContrastNormalizationNodeClass.NodeWithSourceKernelSize(sourceNode, kernelSize) } -func (c_ CNNLocalContrastNormalizationNode) InitWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNLocalContrastNormalizationNode { - rv := objc.Call[CNNLocalContrastNormalizationNode](c_, objc.Sel("initWithSource:kernelSize:"), sourceNode, kernelSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866473-initwithsource?language=objc -func NewCNNLocalContrastNormalizationNodeWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNLocalContrastNormalizationNode { - instance := CNNLocalContrastNormalizationNodeClass.Alloc().InitWithSourceKernelSize(sourceNode, kernelSize) - instance.Autorelease() - return instance -} - func (c_ CNNLocalContrastNormalizationNode) InitWithSource(sourceNode INNImageNode) CNNLocalContrastNormalizationNode { rv := objc.Call[CNNLocalContrastNormalizationNode](c_, objc.Sel("initWithSource:"), sourceNode) return rv @@ -115,21 +101,6 @@ func CNNLocalContrastNormalizationNode_NodeWithSource(sourceNode INNImageNode) C return CNNLocalContrastNormalizationNodeClass.NodeWithSource(sourceNode) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866510-p0?language=objc -func (c_ CNNLocalContrastNormalizationNode) P0() float32 { - rv := objc.Call[float32](c_, objc.Sel("p0")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866510-p0?language=objc -func (c_ CNNLocalContrastNormalizationNode) SetP0(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866500-ps?language=objc @@ -147,17 +118,17 @@ func (c_ CNNLocalContrastNormalizationNode) SetPs(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866441-kernelwidth?language=objc -func (c_ CNNLocalContrastNormalizationNode) KernelWidth() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866510-p0?language=objc +func (c_ CNNLocalContrastNormalizationNode) P0() float32 { + rv := objc.Call[float32](c_, objc.Sel("p0")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866441-kernelwidth?language=objc -func (c_ CNNLocalContrastNormalizationNode) SetKernelWidth(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setKernelWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866510-p0?language=objc +func (c_ CNNLocalContrastNormalizationNode) SetP0(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) } // [Full Topic] @@ -189,3 +160,18 @@ func (c_ CNNLocalContrastNormalizationNode) KernelHeight() uint { func (c_ CNNLocalContrastNormalizationNode) SetKernelHeight(value uint) { objc.Call[objc.Void](c_, objc.Sel("setKernelHeight:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866441-kernelwidth?language=objc +func (c_ CNNLocalContrastNormalizationNode) KernelWidth() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866441-kernelwidth?language=objc +func (c_ CNNLocalContrastNormalizationNode) SetKernelWidth(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setKernelWidth:"), value) +} diff --git a/macos/mps/cnn_log_soft_max_gradient_node.gen.go b/macos/mps/cnn_log_soft_max_gradient_node.gen.go index 2305610b..8eb053eb 100644 --- a/macos/mps/cnn_log_soft_max_gradient_node.gen.go +++ b/macos/mps/cnn_log_soft_max_gradient_node.gen.go @@ -33,18 +33,6 @@ func CNNLogSoftMaxGradientNodeFrom(ptr unsafe.Pointer) CNNLogSoftMaxGradientNode } } -func (cc _CNNLogSoftMaxGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { - rv := objc.Call[CNNLogSoftMaxGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlogsoftmaxgradientnode/2947974-nodewithsourcegradient?language=objc -func CNNLogSoftMaxGradientNode_NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { - return CNNLogSoftMaxGradientNodeClass.NodeWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) -} - func (c_ CNNLogSoftMaxGradientNode) InitWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { rv := objc.Call[CNNLogSoftMaxGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) return rv @@ -59,6 +47,18 @@ func NewCNNLogSoftMaxGradientNodeWithSourceGradientSourceImageGradientState(sour return instance } +func (cc _CNNLogSoftMaxGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { + rv := objc.Call[CNNLogSoftMaxGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlogsoftmaxgradientnode/2947974-nodewithsourcegradient?language=objc +func CNNLogSoftMaxGradientNode_NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { + return CNNLogSoftMaxGradientNodeClass.NodeWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) +} + func (cc _CNNLogSoftMaxGradientNodeClass) Alloc() CNNLogSoftMaxGradientNode { rv := objc.Call[CNNLogSoftMaxGradientNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_loss.gen.go b/macos/mps/cnn_loss.gen.go index 98c8d9c7..e993d4d1 100644 --- a/macos/mps/cnn_loss.gen.go +++ b/macos/mps/cnn_loss.gen.go @@ -22,20 +22,16 @@ type ICNNLoss interface { ICNNKernel EncodeBatchToCommandBufferSourceImagesLabels(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, labels *foundation.Array) *foundation.Array EncodeBatchToCommandBufferObjectSourceImagesLabels(commandBufferObject objc.IObject, sourceImage *foundation.Array, labels *foundation.Array) *foundation.Array - EncodeToCommandBufferSourceImageLabelsDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, labels ICNNLossLabels, destinationImage IImage) - EncodeToCommandBufferObjectSourceImageLabelsDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, labels ICNNLossLabels, destinationImage IImage) - EncodeBatchToCommandBufferSourceImagesLabelsDestinationImages(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, labels *foundation.Array, destinationImage *foundation.Array) - EncodeBatchToCommandBufferObjectSourceImagesLabelsDestinationImages(commandBufferObject objc.IObject, sourceImage *foundation.Array, labels *foundation.Array, destinationImage *foundation.Array) EncodeToCommandBufferSourceImageLabels(commandBuffer metal.PCommandBuffer, sourceImage IImage, labels ICNNLossLabels) Image EncodeToCommandBufferObjectSourceImageLabels(commandBufferObject objc.IObject, sourceImage IImage, labels ICNNLossLabels) Image - LossType() CNNLossType - ReductionType() CNNReductionType NumberOfClasses() uint - Delta() float32 Weight() float32 - LabelSmoothing() float32 Epsilon() float32 + Delta() float32 + ReductionType() CNNReductionType ReduceAcrossBatch() bool + LossType() CNNLossType + LabelSmoothing() float32 } // A kernel that computes the loss and loss gradient between specified predictions and labels. [Full Topic] @@ -133,36 +129,6 @@ func (c_ CNNLoss) EncodeBatchToCommandBufferObjectSourceImagesLabels(commandBuff return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2951843-encodetocommandbuffer?language=objc -func (c_ CNNLoss) EncodeToCommandBufferSourceImageLabelsDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, labels ICNNLossLabels, destinationImage IImage) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:labels:destinationImage:"), po0, sourceImage, labels, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2951843-encodetocommandbuffer?language=objc -func (c_ CNNLoss) EncodeToCommandBufferObjectSourceImageLabelsDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, labels ICNNLossLabels, destinationImage IImage) { - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:labels:destinationImage:"), commandBufferObject, sourceImage, labels, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2951846-encodebatchtocommandbuffer?language=objc -func (c_ CNNLoss) EncodeBatchToCommandBufferSourceImagesLabelsDestinationImages(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, labels *foundation.Array, destinationImage *foundation.Array) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:labels:destinationImages:"), po0, sourceImage, labels, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2951846-encodebatchtocommandbuffer?language=objc -func (c_ CNNLoss) EncodeBatchToCommandBufferObjectSourceImagesLabelsDestinationImages(commandBufferObject objc.IObject, sourceImage *foundation.Array, labels *foundation.Array, destinationImage *foundation.Array) { - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:labels:destinationImages:"), commandBufferObject, sourceImage, labels, destinationImage) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2951838-encodetocommandbuffer?language=objc @@ -182,25 +148,25 @@ func (c_ CNNLoss) EncodeToCommandBufferObjectSourceImageLabels(commandBufferObje // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942359-losstype?language=objc -func (c_ CNNLoss) LossType() CNNLossType { - rv := objc.Call[CNNLossType](c_, objc.Sel("lossType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942389-numberofclasses?language=objc +func (c_ CNNLoss) NumberOfClasses() uint { + rv := objc.Call[uint](c_, objc.Sel("numberOfClasses")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942365-reductiontype?language=objc -func (c_ CNNLoss) ReductionType() CNNReductionType { - rv := objc.Call[CNNReductionType](c_, objc.Sel("reductionType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942387-weight?language=objc +func (c_ CNNLoss) Weight() float32 { + rv := objc.Call[float32](c_, objc.Sel("weight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942389-numberofclasses?language=objc -func (c_ CNNLoss) NumberOfClasses() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfClasses")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942371-epsilon?language=objc +func (c_ CNNLoss) Epsilon() float32 { + rv := objc.Call[float32](c_, objc.Sel("epsilon")) return rv } @@ -214,32 +180,32 @@ func (c_ CNNLoss) Delta() float32 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942387-weight?language=objc -func (c_ CNNLoss) Weight() float32 { - rv := objc.Call[float32](c_, objc.Sel("weight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942365-reductiontype?language=objc +func (c_ CNNLoss) ReductionType() CNNReductionType { + rv := objc.Call[CNNReductionType](c_, objc.Sel("reductionType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942358-labelsmoothing?language=objc -func (c_ CNNLoss) LabelSmoothing() float32 { - rv := objc.Call[float32](c_, objc.Sel("labelSmoothing")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/3547981-reduceacrossbatch?language=objc +func (c_ CNNLoss) ReduceAcrossBatch() bool { + rv := objc.Call[bool](c_, objc.Sel("reduceAcrossBatch")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942371-epsilon?language=objc -func (c_ CNNLoss) Epsilon() float32 { - rv := objc.Call[float32](c_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942359-losstype?language=objc +func (c_ CNNLoss) LossType() CNNLossType { + rv := objc.Call[CNNLossType](c_, objc.Sel("lossType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/3547981-reduceacrossbatch?language=objc -func (c_ CNNLoss) ReduceAcrossBatch() bool { - rv := objc.Call[bool](c_, objc.Sel("reduceAcrossBatch")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942358-labelsmoothing?language=objc +func (c_ CNNLoss) LabelSmoothing() float32 { + rv := objc.Call[float32](c_, objc.Sel("labelSmoothing")) return rv } diff --git a/macos/mps/cnn_loss_data_descriptor.gen.go b/macos/mps/cnn_loss_data_descriptor.gen.go index f5ce84d5..8ff082f4 100644 --- a/macos/mps/cnn_loss_data_descriptor.gen.go +++ b/macos/mps/cnn_loss_data_descriptor.gen.go @@ -19,12 +19,12 @@ type _CNNLossDataDescriptorClass struct { // An interface definition for the [CNNLossDataDescriptor] class. type ICNNLossDataDescriptor interface { objc.IObject - Layout() DataLayout + BytesPerRow() uint + SetBytesPerRow(value uint) BytesPerImage() uint SetBytesPerImage(value uint) + Layout() DataLayout Size() metal.Size - BytesPerRow() uint - SetBytesPerRow(value uint) } // An object that specifies properties used by a loss data descriptor. [Full Topic] @@ -77,12 +77,19 @@ func CNNLossDataDescriptor_CnnLossDataDescriptorWithDataLayoutSize(data []byte, // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdatadescriptor/2951842-layout?language=objc -func (c_ CNNLossDataDescriptor) Layout() DataLayout { - rv := objc.Call[DataLayout](c_, objc.Sel("layout")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdatadescriptor/2951849-bytesperrow?language=objc +func (c_ CNNLossDataDescriptor) BytesPerRow() uint { + rv := objc.Call[uint](c_, objc.Sel("bytesPerRow")) return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdatadescriptor/2951849-bytesperrow?language=objc +func (c_ CNNLossDataDescriptor) SetBytesPerRow(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setBytesPerRow:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdatadescriptor/2951847-bytesperimage?language=objc @@ -100,23 +107,16 @@ func (c_ CNNLossDataDescriptor) SetBytesPerImage(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdatadescriptor/2951848-size?language=objc -func (c_ CNNLossDataDescriptor) Size() metal.Size { - rv := objc.Call[metal.Size](c_, objc.Sel("size")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdatadescriptor/2951842-layout?language=objc +func (c_ CNNLossDataDescriptor) Layout() DataLayout { + rv := objc.Call[DataLayout](c_, objc.Sel("layout")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdatadescriptor/2951849-bytesperrow?language=objc -func (c_ CNNLossDataDescriptor) BytesPerRow() uint { - rv := objc.Call[uint](c_, objc.Sel("bytesPerRow")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdatadescriptor/2951848-size?language=objc +func (c_ CNNLossDataDescriptor) Size() metal.Size { + rv := objc.Call[metal.Size](c_, objc.Sel("size")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdatadescriptor/2951849-bytesperrow?language=objc -func (c_ CNNLossDataDescriptor) SetBytesPerRow(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setBytesPerRow:"), value) -} diff --git a/macos/mps/cnn_loss_descriptor.gen.go b/macos/mps/cnn_loss_descriptor.gen.go index 6655398e..12b3b61c 100644 --- a/macos/mps/cnn_loss_descriptor.gen.go +++ b/macos/mps/cnn_loss_descriptor.gen.go @@ -20,20 +20,20 @@ type ICNNLossDescriptor interface { objc.IObject NumberOfClasses() uint SetNumberOfClasses(value uint) - LabelSmoothing() float32 - SetLabelSmoothing(value float32) - ReductionType() CNNReductionType - SetReductionType(value CNNReductionType) - Delta() float32 - SetDelta(value float32) Weight() float32 SetWeight(value float32) + Epsilon() float32 + SetEpsilon(value float32) + Delta() float32 + SetDelta(value float32) + ReductionType() CNNReductionType + SetReductionType(value CNNReductionType) ReduceAcrossBatch() bool SetReduceAcrossBatch(value bool) LossType() CNNLossType SetLossType(value CNNLossType) - Epsilon() float32 - SetEpsilon(value float32) + LabelSmoothing() float32 + SetLabelSmoothing(value float32) } // An object that specifies properties used by a loss kernel. [Full Topic] @@ -101,32 +101,32 @@ func (c_ CNNLossDescriptor) SetNumberOfClasses(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942369-labelsmoothing?language=objc -func (c_ CNNLossDescriptor) LabelSmoothing() float32 { - rv := objc.Call[float32](c_, objc.Sel("labelSmoothing")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942367-weight?language=objc +func (c_ CNNLossDescriptor) Weight() float32 { + rv := objc.Call[float32](c_, objc.Sel("weight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942369-labelsmoothing?language=objc -func (c_ CNNLossDescriptor) SetLabelSmoothing(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setLabelSmoothing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942367-weight?language=objc +func (c_ CNNLossDescriptor) SetWeight(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setWeight:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942388-reductiontype?language=objc -func (c_ CNNLossDescriptor) ReductionType() CNNReductionType { - rv := objc.Call[CNNReductionType](c_, objc.Sel("reductionType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942362-epsilon?language=objc +func (c_ CNNLossDescriptor) Epsilon() float32 { + rv := objc.Call[float32](c_, objc.Sel("epsilon")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942388-reductiontype?language=objc -func (c_ CNNLossDescriptor) SetReductionType(value CNNReductionType) { - objc.Call[objc.Void](c_, objc.Sel("setReductionType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942362-epsilon?language=objc +func (c_ CNNLossDescriptor) SetEpsilon(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setEpsilon:"), value) } // [Full Topic] @@ -146,17 +146,17 @@ func (c_ CNNLossDescriptor) SetDelta(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942367-weight?language=objc -func (c_ CNNLossDescriptor) Weight() float32 { - rv := objc.Call[float32](c_, objc.Sel("weight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942388-reductiontype?language=objc +func (c_ CNNLossDescriptor) ReductionType() CNNReductionType { + rv := objc.Call[CNNReductionType](c_, objc.Sel("reductionType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942367-weight?language=objc -func (c_ CNNLossDescriptor) SetWeight(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setWeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942388-reductiontype?language=objc +func (c_ CNNLossDescriptor) SetReductionType(value CNNReductionType) { + objc.Call[objc.Void](c_, objc.Sel("setReductionType:"), value) } // [Full Topic] @@ -191,15 +191,15 @@ func (c_ CNNLossDescriptor) SetLossType(value CNNLossType) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942362-epsilon?language=objc -func (c_ CNNLossDescriptor) Epsilon() float32 { - rv := objc.Call[float32](c_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942369-labelsmoothing?language=objc +func (c_ CNNLossDescriptor) LabelSmoothing() float32 { + rv := objc.Call[float32](c_, objc.Sel("labelSmoothing")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942362-epsilon?language=objc -func (c_ CNNLossDescriptor) SetEpsilon(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setEpsilon:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942369-labelsmoothing?language=objc +func (c_ CNNLossDescriptor) SetLabelSmoothing(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setLabelSmoothing:"), value) } diff --git a/macos/mps/cnn_loss_labels.gen.go b/macos/mps/cnn_loss_labels.gen.go index f661c4b4..a89b25f6 100644 --- a/macos/mps/cnn_loss_labels.gen.go +++ b/macos/mps/cnn_loss_labels.gen.go @@ -19,9 +19,9 @@ type _CNNLossLabelsClass struct { // An interface definition for the [CNNLossLabels] class. type ICNNLossLabels interface { IState - LabelsImage() Image WeightsImage() Image LossImage() Image + LabelsImage() Image } // A class that stores the per-element weight buffer used by loss and gradient loss kernels. [Full Topic] @@ -37,36 +37,6 @@ func CNNLossLabelsFrom(ptr unsafe.Pointer) CNNLossLabels { } } -func (c_ CNNLossLabels) InitWithDeviceLossImageSizeLabelsDescriptorWeightsDescriptor(device metal.PDevice, lossImageSize metal.Size, labelsDescriptor ICNNLossDataDescriptor, weightsDescriptor ICNNLossDataDescriptor) CNNLossLabels { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNLossLabels](c_, objc.Sel("initWithDevice:lossImageSize:labelsDescriptor:weightsDescriptor:"), po0, lossImageSize, labelsDescriptor, weightsDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlosslabels/2951841-initwithdevice?language=objc -func NewCNNLossLabelsWithDeviceLossImageSizeLabelsDescriptorWeightsDescriptor(device metal.PDevice, lossImageSize metal.Size, labelsDescriptor ICNNLossDataDescriptor, weightsDescriptor ICNNLossDataDescriptor) CNNLossLabels { - instance := CNNLossLabelsClass.Alloc().InitWithDeviceLossImageSizeLabelsDescriptorWeightsDescriptor(device, lossImageSize, labelsDescriptor, weightsDescriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNLossLabels) InitWithDeviceLossImageSizeLabelsImageWeightsImage(device metal.PDevice, lossImageSize metal.Size, labelsImage IImage, weightsImage IImage) CNNLossLabels { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNLossLabels](c_, objc.Sel("initWithDevice:lossImageSize:labelsImage:weightsImage:"), po0, lossImageSize, labelsImage, weightsImage) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlosslabels/3114086-initwithdevice?language=objc -func NewCNNLossLabelsWithDeviceLossImageSizeLabelsImageWeightsImage(device metal.PDevice, lossImageSize metal.Size, labelsImage IImage, weightsImage IImage) CNNLossLabels { - instance := CNNLossLabelsClass.Alloc().InitWithDeviceLossImageSizeLabelsImageWeightsImage(device, lossImageSize, labelsImage, weightsImage) - instance.Autorelease() - return instance -} - func (c_ CNNLossLabels) InitWithDeviceLabelsDescriptor(device metal.PDevice, labelsDescriptor ICNNLossDataDescriptor) CNNLossLabels { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNLossLabels](c_, objc.Sel("initWithDevice:labelsDescriptor:"), po0, labelsDescriptor) @@ -102,45 +72,16 @@ func (c_ CNNLossLabels) Init() CNNLossLabels { return rv } -func (cc _CNNLossLabelsClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNLossLabels { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNLossLabels](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNLossLabels_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNLossLabels { - return CNNLossLabelsClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNLossLabels) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNLossLabels { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNLossLabels](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNLossLabelsWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNLossLabels { - instance := CNNLossLabelsClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNLossLabels) InitWithResource(resource metal.PResource) CNNLossLabels { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNLossLabels](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNLossLabels) InitWithResources(resources []metal.PResource) CNNLossLabels { + rv := objc.Call[CNNLossLabels](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNLossLabelsWithResource(resource metal.PResource) CNNLossLabels { - instance := CNNLossLabelsClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNLossLabelsWithResources(resources []metal.PResource) CNNLossLabels { + instance := CNNLossLabelsClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -160,74 +101,50 @@ func NewCNNLossLabelsWithDeviceBufferSize(device metal.PDevice, bufferSize uint) return instance } -func (c_ CNNLossLabels) InitWithResources(resources []metal.PResource) CNNLossLabels { - rv := objc.Call[CNNLossLabels](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNLossLabels) InitWithResource(resource metal.PResource) CNNLossLabels { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNLossLabels](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNLossLabelsWithResources(resources []metal.PResource) CNNLossLabels { - instance := CNNLossLabelsClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNLossLabelsWithResource(resource metal.PResource) CNNLossLabels { + instance := CNNLossLabelsClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNLossLabelsClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNLossLabels { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNLossLabels](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) +func (cc _CNNLossLabelsClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNLossLabels { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNLossLabels](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNLossLabels_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNLossLabels { - return CNNLossLabelsClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNLossLabelsClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNLossLabels { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNLossLabels](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNLossLabels_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNLossLabels { + return CNNLossLabelsClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNLossLabels_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNLossLabels { - return CNNLossLabelsClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNLossLabelsClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNLossLabels { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNLossLabels](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlosslabels/2976473-weightsimage?language=objc +func (c_ CNNLossLabels) WeightsImage() Image { + rv := objc.Call[Image](c_, objc.Sel("weightsImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNLossLabels_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNLossLabels { - return CNNLossLabelsClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNLossLabels) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNLossLabels { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNLossLabels](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlosslabels/2951845-lossimage?language=objc +func (c_ CNNLossLabels) LossImage() Image { + rv := objc.Call[Image](c_, objc.Sel("lossImage")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNLossLabelsWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNLossLabels { - instance := CNNLossLabelsClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlosslabels/2976472-labelsimage?language=objc @@ -235,19 +152,3 @@ func (c_ CNNLossLabels) LabelsImage() Image { rv := objc.Call[Image](c_, objc.Sel("labelsImage")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlosslabels/2976473-weightsimage?language=objc -func (c_ CNNLossLabels) WeightsImage() Image { - rv := objc.Call[Image](c_, objc.Sel("weightsImage")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlosslabels/2951845-lossimage?language=objc -func (c_ CNNLossLabels) LossImage() Image { - rv := objc.Call[Image](c_, objc.Sel("lossImage")) - return rv -} diff --git a/macos/mps/cnn_multiary_kernel.gen.go b/macos/mps/cnn_multiary_kernel.gen.go index ca8bedfc..de87e0b8 100644 --- a/macos/mps/cnn_multiary_kernel.gen.go +++ b/macos/mps/cnn_multiary_kernel.gen.go @@ -20,58 +20,50 @@ type _CNNMultiaryKernelClass struct { // An interface definition for the [CNNMultiaryKernel] class. type ICNNMultiaryKernel interface { IKernel - SetKernelHeightAtIndex(height uint, index uint) - StrideInPixelsYatIndex(index uint) uint + EdgeModeAtIndex(index uint) ImageEdgeMode + StrideInPixelsXatIndex(index uint) uint + TemporaryResultStateForCommandBufferSourceImagesSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage []IImage, sourceStates []IState, destinationImage IImage) State + TemporaryResultStateForCommandBufferObjectSourceImagesSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage []IImage, sourceStates []IState, destinationImage IImage) State + ResultStateForSourceImagesSourceStatesDestinationImage(sourceImages []IImage, sourceStates []IState, destinationImage IImage) State + AppendBatchBarrier() bool + TemporaryResultStateBatchForCommandBufferSourceImagesSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array + TemporaryResultStateBatchForCommandBufferObjectSourceImagesSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array DestinationImageDescriptorForSourceImagesSourceStates(sourceImages []IImage, sourceStates []IState) ImageDescriptor - SetSourceFeatureChannelOffsetAtIndex(offset uint, index uint) EncodeBatchToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImageBatches []*foundation.Array) *foundation.Array EncodeBatchToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImageBatches []*foundation.Array) *foundation.Array - OffsetAtIndex(index uint) Offset - SetOffsetAtIndex(offset Offset, index uint) - ResultStateForSourceImagesSourceStatesDestinationImage(sourceImages []IImage, sourceStates []IState, destinationImage IImage) State + SetStrideInPixelsYAtIndex(stride uint, index uint) SetKernelWidthAtIndex(width uint, index uint) - EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImageBatches []*foundation.Array, outState unsafe.Pointer, isTemporary bool) *foundation.Array - EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImageBatches []*foundation.Array, outState unsafe.Pointer, isTemporary bool) *foundation.Array - SetEdgeModeAtIndex(edgeMode ImageEdgeMode, index uint) - SourceFeatureChannelOffsetAtIndex(index uint) uint - SetDilationRateYAtIndex(dilationRate uint, index uint) - SetStrideInPixelsXAtIndex(stride uint, index uint) - SetSourceFeatureChannelMaxCountAtIndex(count uint, index uint) ResultStateBatchForSourceImagesSourceStatesDestinationImage(sourceImages []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array - EncodeBatchToCommandBufferSourceImagesDestinationImages(commandBuffer metal.PCommandBuffer, sourceImages []*foundation.Array, destinationImages *foundation.Array) - EncodeBatchToCommandBufferObjectSourceImagesDestinationImages(commandBufferObject objc.IObject, sourceImages []*foundation.Array, destinationImages *foundation.Array) - StrideInPixelsXatIndex(index uint) uint + SetOffsetAtIndex(offset Offset, index uint) + SetSourceFeatureChannelMaxCountAtIndex(count uint, index uint) + SetStrideInPixelsXAtIndex(stride uint, index uint) DilationRateXatIndex(index uint) uint + SetDilationRateXAtIndex(dilationRate uint, index uint) + OffsetAtIndex(index uint) Offset + StrideInPixelsYatIndex(index uint) uint + SetDilationRateYAtIndex(dilationRate uint, index uint) SourceFeatureChannelMaxCountAtIndex(index uint) uint - KernelHeightAtIndex(index uint) uint - EdgeModeAtIndex(index uint) ImageEdgeMode + DilationRateYatIndex(index uint) uint + KernelWidthAtIndex(index uint) uint EncodeToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages []IImage) Image EncodeToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages []IImage) Image - AppendBatchBarrier() bool - TemporaryResultStateBatchForCommandBufferSourceImagesSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array - TemporaryResultStateBatchForCommandBufferObjectSourceImagesSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array + SetKernelHeightAtIndex(height uint, index uint) IsResultStateReusedAcrossBatch() bool - TemporaryResultStateForCommandBufferSourceImagesSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage []IImage, sourceStates []IState, destinationImage IImage) State - TemporaryResultStateForCommandBufferObjectSourceImagesSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage []IImage, sourceStates []IState, destinationImage IImage) State - EncodeToCommandBufferSourceImagesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImages []IImage, destinationImage IImage) - EncodeToCommandBufferObjectSourceImagesDestinationImage(commandBufferObject objc.IObject, sourceImages []IImage, destinationImage IImage) - SetDilationRateXAtIndex(dilationRate uint, index uint) - DilationRateYatIndex(index uint) uint - EncodeToCommandBufferSourceImagesDestinationStateDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages []IImage, outState unsafe.Pointer, isTemporary bool) Image - EncodeToCommandBufferObjectSourceImagesDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages []IImage, outState unsafe.Pointer, isTemporary bool) Image - SetStrideInPixelsYAtIndex(stride uint, index uint) - KernelWidthAtIndex(index uint) uint - ClipRect() metal.Region - SetClipRect(value metal.Region) - SourceCount() uint - IsBackwards() bool + SetEdgeModeAtIndex(edgeMode ImageEdgeMode, index uint) + KernelHeightAtIndex(index uint) uint + SetSourceFeatureChannelOffsetAtIndex(offset uint, index uint) + SourceFeatureChannelOffsetAtIndex(index uint) uint + IsStateModified() bool Padding() NNPaddingObject SetPadding(value PNNPadding) SetPaddingObject(valueObject objc.IObject) + SourceCount() uint + IsBackwards() bool + ClipRect() metal.Region + SetClipRect(value metal.Region) DestinationImageAllocator() ImageAllocatorObject SetDestinationImageAllocator(value PImageAllocator) SetDestinationImageAllocatorObject(valueObject objc.IObject) - IsStateModified() bool DestinationFeatureChannelOffset() uint SetDestinationFeatureChannelOffset(value uint) } @@ -124,21 +116,6 @@ func (c_ CNNMultiaryKernel) Init() CNNMultiaryKernel { return rv } -func (c_ CNNMultiaryKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNMultiaryKernel { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNMultiaryKernel](c_, objc.Sel("copyWithZone:device:"), zone, po1) - return rv -} - -// Makes a copy of this kernel object for a new device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func CNNMultiaryKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNMultiaryKernel { - instance := CNNMultiaryKernelClass.Alloc().CopyWithZoneDevice(zone, device) - instance.Autorelease() - return instance -} - func (c_ CNNMultiaryKernel) InitWithDevice(device metal.PDevice) CNNMultiaryKernel { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNMultiaryKernel](c_, objc.Sel("initWithDevice:"), po0) @@ -154,66 +131,52 @@ func NewCNNMultiaryKernelWithDevice(device metal.PDevice) CNNMultiaryKernel { return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043439-setkernelheight?language=objc -func (c_ CNNMultiaryKernel) SetKernelHeightAtIndex(height uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setKernelHeight:atIndex:"), height, index) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043450-strideinpixelsyatindex?language=objc -func (c_ CNNMultiaryKernel) StrideInPixelsYatIndex(index uint) uint { - rv := objc.Call[uint](c_, objc.Sel("strideInPixelsYatIndex:"), index) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043415-destinationimagedescriptorforsou?language=objc -func (c_ CNNMultiaryKernel) DestinationImageDescriptorForSourceImagesSourceStates(sourceImages []IImage, sourceStates []IState) ImageDescriptor { - rv := objc.Call[ImageDescriptor](c_, objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:"), sourceImages, sourceStates) +func (c_ CNNMultiaryKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNMultiaryKernel { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[CNNMultiaryKernel](c_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043443-setsourcefeaturechanneloffset?language=objc -func (c_ CNNMultiaryKernel) SetSourceFeatureChannelOffsetAtIndex(offset uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setSourceFeatureChannelOffset:atIndex:"), offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func CNNMultiaryKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNMultiaryKernel { + instance := CNNMultiaryKernelClass.Alloc().CopyWithZoneDevice(zone, device) + instance.Autorelease() + return instance } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043419-encodebatchtocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeBatchToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImageBatches []*foundation.Array) *foundation.Array { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:"), po0, sourceImageBatches) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043418-edgemodeatindex?language=objc +func (c_ CNNMultiaryKernel) EdgeModeAtIndex(index uint) ImageEdgeMode { + rv := objc.Call[ImageEdgeMode](c_, objc.Sel("edgeModeAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043419-encodebatchtocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeBatchToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImageBatches []*foundation.Array) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:"), commandBufferObject, sourceImageBatches) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043449-strideinpixelsxatindex?language=objc +func (c_ CNNMultiaryKernel) StrideInPixelsXatIndex(index uint) uint { + rv := objc.Call[uint](c_, objc.Sel("strideInPixelsXatIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043432-offsetatindex?language=objc -func (c_ CNNMultiaryKernel) OffsetAtIndex(index uint) Offset { - rv := objc.Call[Offset](c_, objc.Sel("offsetAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043452-temporaryresultstateforcommandbu?language=objc +func (c_ CNNMultiaryKernel) TemporaryResultStateForCommandBufferSourceImagesSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage []IImage, sourceStates []IState, destinationImage IImage) State { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[State](c_, objc.Sel("temporaryResultStateForCommandBuffer:sourceImages:sourceStates:destinationImage:"), po0, sourceImage, sourceStates, destinationImage) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043441-setoffset?language=objc -func (c_ CNNMultiaryKernel) SetOffsetAtIndex(offset Offset, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setOffset:atIndex:"), offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043452-temporaryresultstateforcommandbu?language=objc +func (c_ CNNMultiaryKernel) TemporaryResultStateForCommandBufferObjectSourceImagesSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage []IImage, sourceStates []IState, destinationImage IImage) State { + rv := objc.Call[State](c_, objc.Sel("temporaryResultStateForCommandBuffer:sourceImages:sourceStates:destinationImage:"), commandBufferObject, sourceImage, sourceStates, destinationImage) + return rv } // [Full Topic] @@ -226,62 +189,66 @@ func (c_ CNNMultiaryKernel) ResultStateForSourceImagesSourceStatesDestinationIma // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043440-setkernelwidth?language=objc -func (c_ CNNMultiaryKernel) SetKernelWidthAtIndex(width uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setKernelWidth:atIndex:"), width, index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043411-appendbatchbarrier?language=objc +func (c_ CNNMultiaryKernel) AppendBatchBarrier() bool { + rv := objc.Call[bool](c_, objc.Sel("appendBatchBarrier")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043421-encodebatchtocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImageBatches []*foundation.Array, outState unsafe.Pointer, isTemporary bool) *foundation.Array { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043451-temporaryresultstatebatchforcomm?language=objc +func (c_ CNNMultiaryKernel) TemporaryResultStateBatchForCommandBufferSourceImagesSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:"), po0, sourceImageBatches, outState, isTemporary) + rv := objc.Call[*foundation.Array](c_, objc.Sel("temporaryResultStateBatchForCommandBuffer:sourceImages:sourceStates:destinationImage:"), po0, sourceImage, sourceStates, destinationImage) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043421-encodebatchtocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImageBatches []*foundation.Array, outState unsafe.Pointer, isTemporary bool) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:"), commandBufferObject, sourceImageBatches, outState, isTemporary) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043451-temporaryresultstatebatchforcomm?language=objc +func (c_ CNNMultiaryKernel) TemporaryResultStateBatchForCommandBufferObjectSourceImagesSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("temporaryResultStateBatchForCommandBuffer:sourceImages:sourceStates:destinationImage:"), commandBufferObject, sourceImage, sourceStates, destinationImage) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043438-setedgemode?language=objc -func (c_ CNNMultiaryKernel) SetEdgeModeAtIndex(edgeMode ImageEdgeMode, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setEdgeMode:atIndex:"), edgeMode, index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043415-destinationimagedescriptorforsou?language=objc +func (c_ CNNMultiaryKernel) DestinationImageDescriptorForSourceImagesSourceStates(sourceImages []IImage, sourceStates []IState) ImageDescriptor { + rv := objc.Call[ImageDescriptor](c_, objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:"), sourceImages, sourceStates) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043448-sourcefeaturechanneloffsetatinde?language=objc -func (c_ CNNMultiaryKernel) SourceFeatureChannelOffsetAtIndex(index uint) uint { - rv := objc.Call[uint](c_, objc.Sel("sourceFeatureChannelOffsetAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043419-encodebatchtocommandbuffer?language=objc +func (c_ CNNMultiaryKernel) EncodeBatchToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImageBatches []*foundation.Array) *foundation.Array { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:"), po0, sourceImageBatches) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043437-setdilationratey?language=objc -func (c_ CNNMultiaryKernel) SetDilationRateYAtIndex(dilationRate uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setDilationRateY:atIndex:"), dilationRate, index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043419-encodebatchtocommandbuffer?language=objc +func (c_ CNNMultiaryKernel) EncodeBatchToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImageBatches []*foundation.Array) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:"), commandBufferObject, sourceImageBatches) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043444-setstrideinpixelsx?language=objc -func (c_ CNNMultiaryKernel) SetStrideInPixelsXAtIndex(stride uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setStrideInPixelsX:atIndex:"), stride, index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043445-setstrideinpixelsy?language=objc +func (c_ CNNMultiaryKernel) SetStrideInPixelsYAtIndex(stride uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setStrideInPixelsY:atIndex:"), stride, index) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043442-setsourcefeaturechannelmaxcount?language=objc -func (c_ CNNMultiaryKernel) SetSourceFeatureChannelMaxCountAtIndex(count uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setSourceFeatureChannelMaxCount:atIndex:"), count, index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043440-setkernelwidth?language=objc +func (c_ CNNMultiaryKernel) SetKernelWidthAtIndex(width uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setKernelWidth:atIndex:"), width, index) } // [Full Topic] @@ -294,25 +261,23 @@ func (c_ CNNMultiaryKernel) ResultStateBatchForSourceImagesSourceStatesDestinati // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043420-encodebatchtocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeBatchToCommandBufferSourceImagesDestinationImages(commandBuffer metal.PCommandBuffer, sourceImages []*foundation.Array, destinationImages *foundation.Array) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationImages:"), po0, sourceImages, destinationImages) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043441-setoffset?language=objc +func (c_ CNNMultiaryKernel) SetOffsetAtIndex(offset Offset, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setOffset:atIndex:"), offset, index) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043420-encodebatchtocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeBatchToCommandBufferObjectSourceImagesDestinationImages(commandBufferObject objc.IObject, sourceImages []*foundation.Array, destinationImages *foundation.Array) { - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationImages:"), commandBufferObject, sourceImages, destinationImages) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043442-setsourcefeaturechannelmaxcount?language=objc +func (c_ CNNMultiaryKernel) SetSourceFeatureChannelMaxCountAtIndex(count uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setSourceFeatureChannelMaxCount:atIndex:"), count, index) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043449-strideinpixelsxatindex?language=objc -func (c_ CNNMultiaryKernel) StrideInPixelsXatIndex(index uint) uint { - rv := objc.Call[uint](c_, objc.Sel("strideInPixelsXatIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043444-setstrideinpixelsx?language=objc +func (c_ CNNMultiaryKernel) SetStrideInPixelsXAtIndex(stride uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setStrideInPixelsX:atIndex:"), stride, index) } // [Full Topic] @@ -325,170 +290,149 @@ func (c_ CNNMultiaryKernel) DilationRateXatIndex(index uint) uint { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043447-sourcefeaturechannelmaxcountatin?language=objc -func (c_ CNNMultiaryKernel) SourceFeatureChannelMaxCountAtIndex(index uint) uint { - rv := objc.Call[uint](c_, objc.Sel("sourceFeatureChannelMaxCountAtIndex:"), index) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043430-kernelheightatindex?language=objc -func (c_ CNNMultiaryKernel) KernelHeightAtIndex(index uint) uint { - rv := objc.Call[uint](c_, objc.Sel("kernelHeightAtIndex:"), index) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043418-edgemodeatindex?language=objc -func (c_ CNNMultiaryKernel) EdgeModeAtIndex(index uint) ImageEdgeMode { - rv := objc.Call[ImageEdgeMode](c_, objc.Sel("edgeModeAtIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043436-setdilationratex?language=objc +func (c_ CNNMultiaryKernel) SetDilationRateXAtIndex(dilationRate uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setDilationRateX:atIndex:"), dilationRate, index) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043422-encodetocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages []IImage) Image { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImages:"), po0, sourceImages) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043432-offsetatindex?language=objc +func (c_ CNNMultiaryKernel) OffsetAtIndex(index uint) Offset { + rv := objc.Call[Offset](c_, objc.Sel("offsetAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043422-encodetocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages []IImage) Image { - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImages:"), commandBufferObject, sourceImages) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043450-strideinpixelsyatindex?language=objc +func (c_ CNNMultiaryKernel) StrideInPixelsYatIndex(index uint) uint { + rv := objc.Call[uint](c_, objc.Sel("strideInPixelsYatIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043411-appendbatchbarrier?language=objc -func (c_ CNNMultiaryKernel) AppendBatchBarrier() bool { - rv := objc.Call[bool](c_, objc.Sel("appendBatchBarrier")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043437-setdilationratey?language=objc +func (c_ CNNMultiaryKernel) SetDilationRateYAtIndex(dilationRate uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setDilationRateY:atIndex:"), dilationRate, index) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043451-temporaryresultstatebatchforcomm?language=objc -func (c_ CNNMultiaryKernel) TemporaryResultStateBatchForCommandBufferSourceImagesSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("temporaryResultStateBatchForCommandBuffer:sourceImages:sourceStates:destinationImage:"), po0, sourceImage, sourceStates, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043447-sourcefeaturechannelmaxcountatin?language=objc +func (c_ CNNMultiaryKernel) SourceFeatureChannelMaxCountAtIndex(index uint) uint { + rv := objc.Call[uint](c_, objc.Sel("sourceFeatureChannelMaxCountAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043451-temporaryresultstatebatchforcomm?language=objc -func (c_ CNNMultiaryKernel) TemporaryResultStateBatchForCommandBufferObjectSourceImagesSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("temporaryResultStateBatchForCommandBuffer:sourceImages:sourceStates:destinationImage:"), commandBufferObject, sourceImage, sourceStates, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043417-dilationrateyatindex?language=objc +func (c_ CNNMultiaryKernel) DilationRateYatIndex(index uint) uint { + rv := objc.Call[uint](c_, objc.Sel("dilationRateYatIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043428-isresultstatereusedacrossbatch?language=objc -func (c_ CNNMultiaryKernel) IsResultStateReusedAcrossBatch() bool { - rv := objc.Call[bool](c_, objc.Sel("isResultStateReusedAcrossBatch")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043431-kernelwidthatindex?language=objc +func (c_ CNNMultiaryKernel) KernelWidthAtIndex(index uint) uint { + rv := objc.Call[uint](c_, objc.Sel("kernelWidthAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043452-temporaryresultstateforcommandbu?language=objc -func (c_ CNNMultiaryKernel) TemporaryResultStateForCommandBufferSourceImagesSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage []IImage, sourceStates []IState, destinationImage IImage) State { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043422-encodetocommandbuffer?language=objc +func (c_ CNNMultiaryKernel) EncodeToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages []IImage) Image { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[State](c_, objc.Sel("temporaryResultStateForCommandBuffer:sourceImages:sourceStates:destinationImage:"), po0, sourceImage, sourceStates, destinationImage) + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImages:"), po0, sourceImages) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043452-temporaryresultstateforcommandbu?language=objc -func (c_ CNNMultiaryKernel) TemporaryResultStateForCommandBufferObjectSourceImagesSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage []IImage, sourceStates []IState, destinationImage IImage) State { - rv := objc.Call[State](c_, objc.Sel("temporaryResultStateForCommandBuffer:sourceImages:sourceStates:destinationImage:"), commandBufferObject, sourceImage, sourceStates, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043422-encodetocommandbuffer?language=objc +func (c_ CNNMultiaryKernel) EncodeToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages []IImage) Image { + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImages:"), commandBufferObject, sourceImages) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043423-encodetocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeToCommandBufferSourceImagesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImages []IImage, destinationImage IImage) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImages:destinationImage:"), po0, sourceImages, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043439-setkernelheight?language=objc +func (c_ CNNMultiaryKernel) SetKernelHeightAtIndex(height uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setKernelHeight:atIndex:"), height, index) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043423-encodetocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeToCommandBufferObjectSourceImagesDestinationImage(commandBufferObject objc.IObject, sourceImages []IImage, destinationImage IImage) { - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImages:destinationImage:"), commandBufferObject, sourceImages, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043428-isresultstatereusedacrossbatch?language=objc +func (c_ CNNMultiaryKernel) IsResultStateReusedAcrossBatch() bool { + rv := objc.Call[bool](c_, objc.Sel("isResultStateReusedAcrossBatch")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043436-setdilationratex?language=objc -func (c_ CNNMultiaryKernel) SetDilationRateXAtIndex(dilationRate uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setDilationRateX:atIndex:"), dilationRate, index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043438-setedgemode?language=objc +func (c_ CNNMultiaryKernel) SetEdgeModeAtIndex(edgeMode ImageEdgeMode, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setEdgeMode:atIndex:"), edgeMode, index) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043417-dilationrateyatindex?language=objc -func (c_ CNNMultiaryKernel) DilationRateYatIndex(index uint) uint { - rv := objc.Call[uint](c_, objc.Sel("dilationRateYatIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043430-kernelheightatindex?language=objc +func (c_ CNNMultiaryKernel) KernelHeightAtIndex(index uint) uint { + rv := objc.Call[uint](c_, objc.Sel("kernelHeightAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043424-encodetocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeToCommandBufferSourceImagesDestinationStateDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages []IImage, outState unsafe.Pointer, isTemporary bool) Image { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImages:destinationState:destinationStateIsTemporary:"), po0, sourceImages, outState, isTemporary) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043443-setsourcefeaturechanneloffset?language=objc +func (c_ CNNMultiaryKernel) SetSourceFeatureChannelOffsetAtIndex(offset uint, index uint) { + objc.Call[objc.Void](c_, objc.Sel("setSourceFeatureChannelOffset:atIndex:"), offset, index) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043424-encodetocommandbuffer?language=objc -func (c_ CNNMultiaryKernel) EncodeToCommandBufferObjectSourceImagesDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages []IImage, outState unsafe.Pointer, isTemporary bool) Image { - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImages:destinationState:destinationStateIsTemporary:"), commandBufferObject, sourceImages, outState, isTemporary) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043448-sourcefeaturechanneloffsetatinde?language=objc +func (c_ CNNMultiaryKernel) SourceFeatureChannelOffsetAtIndex(index uint) uint { + rv := objc.Call[uint](c_, objc.Sel("sourceFeatureChannelOffsetAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043445-setstrideinpixelsy?language=objc -func (c_ CNNMultiaryKernel) SetStrideInPixelsYAtIndex(stride uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setStrideInPixelsY:atIndex:"), stride, index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043429-isstatemodified?language=objc +func (c_ CNNMultiaryKernel) IsStateModified() bool { + rv := objc.Call[bool](c_, objc.Sel("isStateModified")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043431-kernelwidthatindex?language=objc -func (c_ CNNMultiaryKernel) KernelWidthAtIndex(index uint) uint { - rv := objc.Call[uint](c_, objc.Sel("kernelWidthAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043433-padding?language=objc +func (c_ CNNMultiaryKernel) Padding() NNPaddingObject { + rv := objc.Call[NNPaddingObject](c_, objc.Sel("padding")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043412-cliprect?language=objc -func (c_ CNNMultiaryKernel) ClipRect() metal.Region { - rv := objc.Call[metal.Region](c_, objc.Sel("clipRect")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043433-padding?language=objc +func (c_ CNNMultiaryKernel) SetPadding(value PNNPadding) { + po0 := objc.WrapAsProtocol("MPSNNPadding", value) + objc.Call[objc.Void](c_, objc.Sel("setPadding:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043412-cliprect?language=objc -func (c_ CNNMultiaryKernel) SetClipRect(value metal.Region) { - objc.Call[objc.Void](c_, objc.Sel("setClipRect:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043433-padding?language=objc +func (c_ CNNMultiaryKernel) SetPaddingObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setPadding:"), valueObject) } // [Full Topic] @@ -509,25 +453,17 @@ func (c_ CNNMultiaryKernel) IsBackwards() bool { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043433-padding?language=objc -func (c_ CNNMultiaryKernel) Padding() NNPaddingObject { - rv := objc.Call[NNPaddingObject](c_, objc.Sel("padding")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043412-cliprect?language=objc +func (c_ CNNMultiaryKernel) ClipRect() metal.Region { + rv := objc.Call[metal.Region](c_, objc.Sel("clipRect")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043433-padding?language=objc -func (c_ CNNMultiaryKernel) SetPadding(value PNNPadding) { - po0 := objc.WrapAsProtocol("MPSNNPadding", value) - objc.Call[objc.Void](c_, objc.Sel("setPadding:"), po0) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043433-padding?language=objc -func (c_ CNNMultiaryKernel) SetPaddingObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setPadding:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043412-cliprect?language=objc +func (c_ CNNMultiaryKernel) SetClipRect(value metal.Region) { + objc.Call[objc.Void](c_, objc.Sel("setClipRect:"), value) } // [Full Topic] @@ -553,14 +489,6 @@ func (c_ CNNMultiaryKernel) SetDestinationImageAllocatorObject(valueObject objc. objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), valueObject) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043429-isstatemodified?language=objc -func (c_ CNNMultiaryKernel) IsStateModified() bool { - rv := objc.Call[bool](c_, objc.Sel("isStateModified")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043413-destinationfeaturechanneloffset?language=objc diff --git a/macos/mps/cnn_neuron.gen.go b/macos/mps/cnn_neuron.gen.go index 99ba6ad3..a50efac4 100644 --- a/macos/mps/cnn_neuron.gen.go +++ b/macos/mps/cnn_neuron.gen.go @@ -20,10 +20,10 @@ type _CNNNeuronClass struct { type ICNNNeuron interface { ICNNKernel A() float32 - B() float32 Data() []byte - C() float32 NeuronType() CNNNeuronType + C() float32 + B() float32 } // A filter that applies a neuron activation function. [Full Topic] @@ -114,17 +114,17 @@ func (c_ CNNNeuron) A() float32 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuron/2942306-b?language=objc -func (c_ CNNNeuron) B() float32 { - rv := objc.Call[float32](c_, objc.Sel("b")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuron/2942308-data?language=objc +func (c_ CNNNeuron) Data() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("data")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuron/2942308-data?language=objc -func (c_ CNNNeuron) Data() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("data")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuron/2942309-neurontype?language=objc +func (c_ CNNNeuron) NeuronType() CNNNeuronType { + rv := objc.Call[CNNNeuronType](c_, objc.Sel("neuronType")) return rv } @@ -138,8 +138,8 @@ func (c_ CNNNeuron) C() float32 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuron/2942309-neurontype?language=objc -func (c_ CNNNeuron) NeuronType() CNNNeuronType { - rv := objc.Call[CNNNeuronType](c_, objc.Sel("neuronType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuron/2942306-b?language=objc +func (c_ CNNNeuron) B() float32 { + rv := objc.Call[float32](c_, objc.Sel("b")) return rv } diff --git a/macos/mps/cnn_neuron_elu_node.gen.go b/macos/mps/cnn_neuron_elu_node.gen.go index e263c723..8893079f 100644 --- a/macos/mps/cnn_neuron_elu_node.gen.go +++ b/macos/mps/cnn_neuron_elu_node.gen.go @@ -33,32 +33,6 @@ func CNNNeuronELUNodeFrom(ptr unsafe.Pointer) CNNNeuronELUNode { } } -func (cc _CNNNeuronELUNodeClass) NodeWithSourceA(sourceNode INNImageNode, a float32) CNNNeuronELUNode { - rv := objc.Call[CNNNeuronELUNode](cc, objc.Sel("nodeWithSource:a:"), sourceNode, a) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronelunode/2866463-nodewithsource?language=objc -func CNNNeuronELUNode_NodeWithSourceA(sourceNode INNImageNode, a float32) CNNNeuronELUNode { - return CNNNeuronELUNodeClass.NodeWithSourceA(sourceNode, a) -} - -func (c_ CNNNeuronELUNode) InitWithSourceA(sourceNode INNImageNode, a float32) CNNNeuronELUNode { - rv := objc.Call[CNNNeuronELUNode](c_, objc.Sel("initWithSource:a:"), sourceNode, a) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronelunode/2921454-initwithsource?language=objc -func NewCNNNeuronELUNodeWithSourceA(sourceNode INNImageNode, a float32) CNNNeuronELUNode { - instance := CNNNeuronELUNodeClass.Alloc().InitWithSourceA(sourceNode, a) - instance.Autorelease() - return instance -} - func (cc _CNNNeuronELUNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronELUNode { rv := objc.Call[CNNNeuronELUNode](cc, objc.Sel("nodeWithSource:"), sourceNode) return rv diff --git a/macos/mps/cnn_neuron_exponential_node.gen.go b/macos/mps/cnn_neuron_exponential_node.gen.go index 408420f5..c901c1a5 100644 --- a/macos/mps/cnn_neuron_exponential_node.gen.go +++ b/macos/mps/cnn_neuron_exponential_node.gen.go @@ -33,18 +33,6 @@ func CNNNeuronExponentialNodeFrom(ptr unsafe.Pointer) CNNNeuronExponentialNode { } } -func (cc _CNNNeuronExponentialNodeClass) NodeWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronExponentialNode { - rv := objc.Call[CNNNeuronExponentialNode](cc, objc.Sel("nodeWithSource:a:b:c:"), sourceNode, a, b, c) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronexponentialnode/2951959-nodewithsource?language=objc -func CNNNeuronExponentialNode_NodeWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronExponentialNode { - return CNNNeuronExponentialNodeClass.NodeWithSourceABC(sourceNode, a, b, c) -} - func (cc _CNNNeuronExponentialNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronExponentialNode { rv := objc.Call[CNNNeuronExponentialNode](cc, objc.Sel("nodeWithSource:"), sourceNode) return rv @@ -71,20 +59,6 @@ func NewCNNNeuronExponentialNodeWithSource(sourceNode INNImageNode) CNNNeuronExp return instance } -func (c_ CNNNeuronExponentialNode) InitWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronExponentialNode { - rv := objc.Call[CNNNeuronExponentialNode](c_, objc.Sel("initWithSource:a:b:c:"), sourceNode, a, b, c) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronexponentialnode/2951933-initwithsource?language=objc -func NewCNNNeuronExponentialNodeWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronExponentialNode { - instance := CNNNeuronExponentialNodeClass.Alloc().InitWithSourceABC(sourceNode, a, b, c) - instance.Autorelease() - return instance -} - func (cc _CNNNeuronExponentialNodeClass) Alloc() CNNNeuronExponentialNode { rv := objc.Call[CNNNeuronExponentialNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_neuron_ge_lu_node.gen.go b/macos/mps/cnn_neuron_ge_lu_node.gen.go index 246aea38..c1a45a3e 100644 --- a/macos/mps/cnn_neuron_ge_lu_node.gen.go +++ b/macos/mps/cnn_neuron_ge_lu_node.gen.go @@ -33,30 +33,30 @@ func CNNNeuronGeLUNodeFrom(ptr unsafe.Pointer) CNNNeuronGeLUNode { } } -func (c_ CNNNeuronGeLUNode) InitWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { - rv := objc.Call[CNNNeuronGeLUNode](c_, objc.Sel("initWithSource:"), sourceNode) +func (cc _CNNNeuronGeLUNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { + rv := objc.Call[CNNNeuronGeLUNode](cc, objc.Sel("nodeWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongelunode/3237266-initwithsource?language=objc -func NewCNNNeuronGeLUNodeWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { - instance := CNNNeuronGeLUNodeClass.Alloc().InitWithSource(sourceNode) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongelunode/3237267-nodewithsource?language=objc +func CNNNeuronGeLUNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { + return CNNNeuronGeLUNodeClass.NodeWithSource(sourceNode) } -func (cc _CNNNeuronGeLUNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { - rv := objc.Call[CNNNeuronGeLUNode](cc, objc.Sel("nodeWithSource:"), sourceNode) +func (c_ CNNNeuronGeLUNode) InitWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { + rv := objc.Call[CNNNeuronGeLUNode](c_, objc.Sel("initWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongelunode/3237267-nodewithsource?language=objc -func CNNNeuronGeLUNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { - return CNNNeuronGeLUNodeClass.NodeWithSource(sourceNode) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongelunode/3237266-initwithsource?language=objc +func NewCNNNeuronGeLUNodeWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { + instance := CNNNeuronGeLUNodeClass.Alloc().InitWithSource(sourceNode) + instance.Autorelease() + return instance } func (cc _CNNNeuronGeLUNodeClass) Alloc() CNNNeuronGeLUNode { diff --git a/macos/mps/cnn_neuron_gradient.gen.go b/macos/mps/cnn_neuron_gradient.gen.go index e66b028f..8e06fb4b 100644 --- a/macos/mps/cnn_neuron_gradient.gen.go +++ b/macos/mps/cnn_neuron_gradient.gen.go @@ -19,11 +19,11 @@ type _CNNNeuronGradientClass struct { // An interface definition for the [CNNNeuronGradient] class. type ICNNNeuronGradient interface { ICNNGradientKernel - C() float32 + A() float32 Data() []byte - B() float32 NeuronType() CNNNeuronType - A() float32 + C() float32 + B() float32 } // A gradient neuron filter. [Full Topic] @@ -106,9 +106,9 @@ func CNNNeuronGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942310-c?language=objc -func (c_ CNNNeuronGradient) C() float32 { - rv := objc.Call[float32](c_, objc.Sel("c")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942312-a?language=objc +func (c_ CNNNeuronGradient) A() float32 { + rv := objc.Call[float32](c_, objc.Sel("a")) return rv } @@ -122,24 +122,24 @@ func (c_ CNNNeuronGradient) Data() []byte { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942313-b?language=objc -func (c_ CNNNeuronGradient) B() float32 { - rv := objc.Call[float32](c_, objc.Sel("b")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942300-neurontype?language=objc +func (c_ CNNNeuronGradient) NeuronType() CNNNeuronType { + rv := objc.Call[CNNNeuronType](c_, objc.Sel("neuronType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942300-neurontype?language=objc -func (c_ CNNNeuronGradient) NeuronType() CNNNeuronType { - rv := objc.Call[CNNNeuronType](c_, objc.Sel("neuronType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942310-c?language=objc +func (c_ CNNNeuronGradient) C() float32 { + rv := objc.Call[float32](c_, objc.Sel("c")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942312-a?language=objc -func (c_ CNNNeuronGradient) A() float32 { - rv := objc.Call[float32](c_, objc.Sel("a")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942313-b?language=objc +func (c_ CNNNeuronGradient) B() float32 { + rv := objc.Call[float32](c_, objc.Sel("b")) return rv } diff --git a/macos/mps/cnn_neuron_gradient_node.gen.go b/macos/mps/cnn_neuron_gradient_node.gen.go index 2fe210d4..37907421 100644 --- a/macos/mps/cnn_neuron_gradient_node.gen.go +++ b/macos/mps/cnn_neuron_gradient_node.gen.go @@ -34,18 +34,6 @@ func CNNNeuronGradientNodeFrom(ptr unsafe.Pointer) CNNNeuronGradientNode { } } -func (cc _CNNNeuronGradientNodeClass) NodeWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, descriptor INNNeuronDescriptor) CNNNeuronGradientNode { - rv := objc.Call[CNNNeuronGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:descriptor:"), sourceGradient, sourceImage, gradientState, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradientnode/2948028-nodewithsourcegradient?language=objc -func CNNNeuronGradientNode_NodeWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, descriptor INNNeuronDescriptor) CNNNeuronGradientNode { - return CNNNeuronGradientNodeClass.NodeWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient, sourceImage, gradientState, descriptor) -} - func (c_ CNNNeuronGradientNode) InitWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, descriptor INNNeuronDescriptor) CNNNeuronGradientNode { rv := objc.Call[CNNNeuronGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:descriptor:"), sourceGradient, sourceImage, gradientState, descriptor) return rv @@ -60,6 +48,18 @@ func NewCNNNeuronGradientNodeWithSourceGradientSourceImageGradientStateDescripto return instance } +func (cc _CNNNeuronGradientNodeClass) NodeWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, descriptor INNNeuronDescriptor) CNNNeuronGradientNode { + rv := objc.Call[CNNNeuronGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:descriptor:"), sourceGradient, sourceImage, gradientState, descriptor) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradientnode/2948028-nodewithsourcegradient?language=objc +func CNNNeuronGradientNode_NodeWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, descriptor INNNeuronDescriptor) CNNNeuronGradientNode { + return CNNNeuronGradientNodeClass.NodeWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient, sourceImage, gradientState, descriptor) +} + func (cc _CNNNeuronGradientNodeClass) Alloc() CNNNeuronGradientNode { rv := objc.Call[CNNNeuronGradientNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_neuron_hard_sigmoid_node.gen.go b/macos/mps/cnn_neuron_hard_sigmoid_node.gen.go index 432f55eb..25b2e15f 100644 --- a/macos/mps/cnn_neuron_hard_sigmoid_node.gen.go +++ b/macos/mps/cnn_neuron_hard_sigmoid_node.gen.go @@ -33,30 +33,16 @@ func CNNNeuronHardSigmoidNodeFrom(ptr unsafe.Pointer) CNNNeuronHardSigmoidNode { } } -func (c_ CNNNeuronHardSigmoidNode) InitWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronHardSigmoidNode { - rv := objc.Call[CNNNeuronHardSigmoidNode](c_, objc.Sel("initWithSource:a:b:"), sourceNode, a, b) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronhardsigmoidnode/2875181-initwithsource?language=objc -func NewCNNNeuronHardSigmoidNodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronHardSigmoidNode { - instance := CNNNeuronHardSigmoidNodeClass.Alloc().InitWithSourceAB(sourceNode, a, b) - instance.Autorelease() - return instance -} - -func (cc _CNNNeuronHardSigmoidNodeClass) NodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronHardSigmoidNode { - rv := objc.Call[CNNNeuronHardSigmoidNode](cc, objc.Sel("nodeWithSource:a:b:"), sourceNode, a, b) +func (cc _CNNNeuronHardSigmoidNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronHardSigmoidNode { + rv := objc.Call[CNNNeuronHardSigmoidNode](cc, objc.Sel("nodeWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronhardsigmoidnode/2875986-nodewithsource?language=objc -func CNNNeuronHardSigmoidNode_NodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronHardSigmoidNode { - return CNNNeuronHardSigmoidNodeClass.NodeWithSourceAB(sourceNode, a, b) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronhardsigmoidnode/2921453-nodewithsource?language=objc +func CNNNeuronHardSigmoidNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronHardSigmoidNode { + return CNNNeuronHardSigmoidNodeClass.NodeWithSource(sourceNode) } func (c_ CNNNeuronHardSigmoidNode) InitWithSource(sourceNode INNImageNode) CNNNeuronHardSigmoidNode { @@ -73,18 +59,6 @@ func NewCNNNeuronHardSigmoidNodeWithSource(sourceNode INNImageNode) CNNNeuronHar return instance } -func (cc _CNNNeuronHardSigmoidNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronHardSigmoidNode { - rv := objc.Call[CNNNeuronHardSigmoidNode](cc, objc.Sel("nodeWithSource:"), sourceNode) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronhardsigmoidnode/2921453-nodewithsource?language=objc -func CNNNeuronHardSigmoidNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronHardSigmoidNode { - return CNNNeuronHardSigmoidNodeClass.NodeWithSource(sourceNode) -} - func (cc _CNNNeuronHardSigmoidNodeClass) Alloc() CNNNeuronHardSigmoidNode { rv := objc.Call[CNNNeuronHardSigmoidNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_neuron_linear_node.gen.go b/macos/mps/cnn_neuron_linear_node.gen.go index 2e83b748..df539aa8 100644 --- a/macos/mps/cnn_neuron_linear_node.gen.go +++ b/macos/mps/cnn_neuron_linear_node.gen.go @@ -33,18 +33,16 @@ func CNNNeuronLinearNodeFrom(ptr unsafe.Pointer) CNNNeuronLinearNode { } } -func (c_ CNNNeuronLinearNode) InitWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronLinearNode { - rv := objc.Call[CNNNeuronLinearNode](c_, objc.Sel("initWithSource:a:b:"), sourceNode, a, b) +func (cc _CNNNeuronLinearNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronLinearNode { + rv := objc.Call[CNNNeuronLinearNode](cc, objc.Sel("nodeWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlinearnode/2866495-initwithsource?language=objc -func NewCNNNeuronLinearNodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronLinearNode { - instance := CNNNeuronLinearNodeClass.Alloc().InitWithSourceAB(sourceNode, a, b) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlinearnode/2921450-nodewithsource?language=objc +func CNNNeuronLinearNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronLinearNode { + return CNNNeuronLinearNodeClass.NodeWithSource(sourceNode) } func (c_ CNNNeuronLinearNode) InitWithSource(sourceNode INNImageNode) CNNNeuronLinearNode { @@ -61,30 +59,6 @@ func NewCNNNeuronLinearNodeWithSource(sourceNode INNImageNode) CNNNeuronLinearNo return instance } -func (cc _CNNNeuronLinearNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronLinearNode { - rv := objc.Call[CNNNeuronLinearNode](cc, objc.Sel("nodeWithSource:"), sourceNode) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlinearnode/2921450-nodewithsource?language=objc -func CNNNeuronLinearNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronLinearNode { - return CNNNeuronLinearNodeClass.NodeWithSource(sourceNode) -} - -func (cc _CNNNeuronLinearNodeClass) NodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronLinearNode { - rv := objc.Call[CNNNeuronLinearNode](cc, objc.Sel("nodeWithSource:a:b:"), sourceNode, a, b) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlinearnode/2866445-nodewithsource?language=objc -func CNNNeuronLinearNode_NodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronLinearNode { - return CNNNeuronLinearNodeClass.NodeWithSourceAB(sourceNode, a, b) -} - func (cc _CNNNeuronLinearNodeClass) Alloc() CNNNeuronLinearNode { rv := objc.Call[CNNNeuronLinearNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_neuron_logarithm_node.gen.go b/macos/mps/cnn_neuron_logarithm_node.gen.go index 31135ecb..c9e2b081 100644 --- a/macos/mps/cnn_neuron_logarithm_node.gen.go +++ b/macos/mps/cnn_neuron_logarithm_node.gen.go @@ -33,16 +33,16 @@ func CNNNeuronLogarithmNodeFrom(ptr unsafe.Pointer) CNNNeuronLogarithmNode { } } -func (cc _CNNNeuronLogarithmNodeClass) NodeWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronLogarithmNode { - rv := objc.Call[CNNNeuronLogarithmNode](cc, objc.Sel("nodeWithSource:a:b:c:"), sourceNode, a, b, c) +func (cc _CNNNeuronLogarithmNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronLogarithmNode { + rv := objc.Call[CNNNeuronLogarithmNode](cc, objc.Sel("nodeWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlogarithmnode/2951943-nodewithsource?language=objc -func CNNNeuronLogarithmNode_NodeWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronLogarithmNode { - return CNNNeuronLogarithmNodeClass.NodeWithSourceABC(sourceNode, a, b, c) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlogarithmnode/2951931-nodewithsource?language=objc +func CNNNeuronLogarithmNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronLogarithmNode { + return CNNNeuronLogarithmNodeClass.NodeWithSource(sourceNode) } func (c_ CNNNeuronLogarithmNode) InitWithSource(sourceNode INNImageNode) CNNNeuronLogarithmNode { @@ -59,32 +59,6 @@ func NewCNNNeuronLogarithmNodeWithSource(sourceNode INNImageNode) CNNNeuronLogar return instance } -func (c_ CNNNeuronLogarithmNode) InitWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronLogarithmNode { - rv := objc.Call[CNNNeuronLogarithmNode](c_, objc.Sel("initWithSource:a:b:c:"), sourceNode, a, b, c) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlogarithmnode/2951939-initwithsource?language=objc -func NewCNNNeuronLogarithmNodeWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronLogarithmNode { - instance := CNNNeuronLogarithmNodeClass.Alloc().InitWithSourceABC(sourceNode, a, b, c) - instance.Autorelease() - return instance -} - -func (cc _CNNNeuronLogarithmNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronLogarithmNode { - rv := objc.Call[CNNNeuronLogarithmNode](cc, objc.Sel("nodeWithSource:"), sourceNode) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlogarithmnode/2951931-nodewithsource?language=objc -func CNNNeuronLogarithmNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronLogarithmNode { - return CNNNeuronLogarithmNodeClass.NodeWithSource(sourceNode) -} - func (cc _CNNNeuronLogarithmNodeClass) Alloc() CNNNeuronLogarithmNode { rv := objc.Call[CNNNeuronLogarithmNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_neuron_node.gen.go b/macos/mps/cnn_neuron_node.gen.go index 2b2d1cca..3710b574 100644 --- a/macos/mps/cnn_neuron_node.gen.go +++ b/macos/mps/cnn_neuron_node.gen.go @@ -18,9 +18,9 @@ type _CNNNeuronNodeClass struct { // An interface definition for the [CNNNeuronNode] class. type ICNNNeuronNode interface { INNFilterNode + A() float32 C() float32 B() float32 - A() float32 } // The virtual base class for MPS CNN neuron nodes. [Full Topic] @@ -68,6 +68,14 @@ func (c_ CNNNeuronNode) Init() CNNNeuronNode { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronnode/2921459-a?language=objc +func (c_ CNNNeuronNode) A() float32 { + rv := objc.Call[float32](c_, objc.Sel("a")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronnode/2935553-c?language=objc @@ -83,11 +91,3 @@ func (c_ CNNNeuronNode) B() float32 { rv := objc.Call[float32](c_, objc.Sel("b")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronnode/2921459-a?language=objc -func (c_ CNNNeuronNode) A() float32 { - rv := objc.Call[float32](c_, objc.Sel("a")) - return rv -} diff --git a/macos/mps/cnn_neuron_power_node.gen.go b/macos/mps/cnn_neuron_power_node.gen.go index 96cf2d27..0197ab74 100644 --- a/macos/mps/cnn_neuron_power_node.gen.go +++ b/macos/mps/cnn_neuron_power_node.gen.go @@ -45,32 +45,6 @@ func CNNNeuronPowerNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronPowerNo return CNNNeuronPowerNodeClass.NodeWithSource(sourceNode) } -func (cc _CNNNeuronPowerNodeClass) NodeWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronPowerNode { - rv := objc.Call[CNNNeuronPowerNode](cc, objc.Sel("nodeWithSource:a:b:c:"), sourceNode, a, b, c) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronpowernode/2951951-nodewithsource?language=objc -func CNNNeuronPowerNode_NodeWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronPowerNode { - return CNNNeuronPowerNodeClass.NodeWithSourceABC(sourceNode, a, b, c) -} - -func (c_ CNNNeuronPowerNode) InitWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronPowerNode { - rv := objc.Call[CNNNeuronPowerNode](c_, objc.Sel("initWithSource:a:b:c:"), sourceNode, a, b, c) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronpowernode/2951946-initwithsource?language=objc -func NewCNNNeuronPowerNodeWithSourceABC(sourceNode INNImageNode, a float32, b float32, c float32) CNNNeuronPowerNode { - instance := CNNNeuronPowerNodeClass.Alloc().InitWithSourceABC(sourceNode, a, b, c) - instance.Autorelease() - return instance -} - func (c_ CNNNeuronPowerNode) InitWithSource(sourceNode INNImageNode) CNNNeuronPowerNode { rv := objc.Call[CNNNeuronPowerNode](c_, objc.Sel("initWithSource:"), sourceNode) return rv diff --git a/macos/mps/cnn_neuron_re_lu_node.gen.go b/macos/mps/cnn_neuron_re_lu_node.gen.go index c4bd02a4..882eaffa 100644 --- a/macos/mps/cnn_neuron_re_lu_node.gen.go +++ b/macos/mps/cnn_neuron_re_lu_node.gen.go @@ -59,32 +59,6 @@ func NewCNNNeuronReLUNodeWithSource(sourceNode INNImageNode) CNNNeuronReLUNode { return instance } -func (cc _CNNNeuronReLUNodeClass) NodeWithSourceA(sourceNode INNImageNode, a float32) CNNNeuronReLUNode { - rv := objc.Call[CNNNeuronReLUNode](cc, objc.Sel("nodeWithSource:a:"), sourceNode, a) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronrelunode/2866494-nodewithsource?language=objc -func CNNNeuronReLUNode_NodeWithSourceA(sourceNode INNImageNode, a float32) CNNNeuronReLUNode { - return CNNNeuronReLUNodeClass.NodeWithSourceA(sourceNode, a) -} - -func (c_ CNNNeuronReLUNode) InitWithSourceA(sourceNode INNImageNode, a float32) CNNNeuronReLUNode { - rv := objc.Call[CNNNeuronReLUNode](c_, objc.Sel("initWithSource:a:"), sourceNode, a) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronrelunode/2921462-initwithsource?language=objc -func NewCNNNeuronReLUNodeWithSourceA(sourceNode INNImageNode, a float32) CNNNeuronReLUNode { - instance := CNNNeuronReLUNodeClass.Alloc().InitWithSourceA(sourceNode, a) - instance.Autorelease() - return instance -} - func (cc _CNNNeuronReLUNodeClass) Alloc() CNNNeuronReLUNode { rv := objc.Call[CNNNeuronReLUNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_neuron_re_lun_node.gen.go b/macos/mps/cnn_neuron_re_lun_node.gen.go index 71b7d9af..fe1414f9 100644 --- a/macos/mps/cnn_neuron_re_lun_node.gen.go +++ b/macos/mps/cnn_neuron_re_lun_node.gen.go @@ -45,32 +45,6 @@ func CNNNeuronReLUNNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronReLUNNo return CNNNeuronReLUNNodeClass.NodeWithSource(sourceNode) } -func (cc _CNNNeuronReLUNNodeClass) NodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronReLUNNode { - rv := objc.Call[CNNNeuronReLUNNode](cc, objc.Sel("nodeWithSource:a:b:"), sourceNode, a, b) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronrelunnode/2921590-nodewithsource?language=objc -func CNNNeuronReLUNNode_NodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronReLUNNode { - return CNNNeuronReLUNNodeClass.NodeWithSourceAB(sourceNode, a, b) -} - -func (c_ CNNNeuronReLUNNode) InitWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronReLUNNode { - rv := objc.Call[CNNNeuronReLUNNode](c_, objc.Sel("initWithSource:a:b:"), sourceNode, a, b) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronrelunnode/2921596-initwithsource?language=objc -func NewCNNNeuronReLUNNodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronReLUNNode { - instance := CNNNeuronReLUNNodeClass.Alloc().InitWithSourceAB(sourceNode, a, b) - instance.Autorelease() - return instance -} - func (c_ CNNNeuronReLUNNode) InitWithSource(sourceNode INNImageNode) CNNNeuronReLUNNode { rv := objc.Call[CNNNeuronReLUNNode](c_, objc.Sel("initWithSource:"), sourceNode) return rv diff --git a/macos/mps/cnn_neuron_soft_plus_node.gen.go b/macos/mps/cnn_neuron_soft_plus_node.gen.go index 396aba49..98da3895 100644 --- a/macos/mps/cnn_neuron_soft_plus_node.gen.go +++ b/macos/mps/cnn_neuron_soft_plus_node.gen.go @@ -33,30 +33,16 @@ func CNNNeuronSoftPlusNodeFrom(ptr unsafe.Pointer) CNNNeuronSoftPlusNode { } } -func (c_ CNNNeuronSoftPlusNode) InitWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronSoftPlusNode { - rv := objc.Call[CNNNeuronSoftPlusNode](c_, objc.Sel("initWithSource:a:b:"), sourceNode, a, b) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronsoftplusnode/2866413-initwithsource?language=objc -func NewCNNNeuronSoftPlusNodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronSoftPlusNode { - instance := CNNNeuronSoftPlusNodeClass.Alloc().InitWithSourceAB(sourceNode, a, b) - instance.Autorelease() - return instance -} - -func (cc _CNNNeuronSoftPlusNodeClass) NodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronSoftPlusNode { - rv := objc.Call[CNNNeuronSoftPlusNode](cc, objc.Sel("nodeWithSource:a:b:"), sourceNode, a, b) +func (cc _CNNNeuronSoftPlusNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronSoftPlusNode { + rv := objc.Call[CNNNeuronSoftPlusNode](cc, objc.Sel("nodeWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronsoftplusnode/2866450-nodewithsource?language=objc -func CNNNeuronSoftPlusNode_NodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronSoftPlusNode { - return CNNNeuronSoftPlusNodeClass.NodeWithSourceAB(sourceNode, a, b) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronsoftplusnode/2921449-nodewithsource?language=objc +func CNNNeuronSoftPlusNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronSoftPlusNode { + return CNNNeuronSoftPlusNodeClass.NodeWithSource(sourceNode) } func (c_ CNNNeuronSoftPlusNode) InitWithSource(sourceNode INNImageNode) CNNNeuronSoftPlusNode { @@ -73,18 +59,6 @@ func NewCNNNeuronSoftPlusNodeWithSource(sourceNode INNImageNode) CNNNeuronSoftPl return instance } -func (cc _CNNNeuronSoftPlusNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronSoftPlusNode { - rv := objc.Call[CNNNeuronSoftPlusNode](cc, objc.Sel("nodeWithSource:"), sourceNode) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronsoftplusnode/2921449-nodewithsource?language=objc -func CNNNeuronSoftPlusNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronSoftPlusNode { - return CNNNeuronSoftPlusNodeClass.NodeWithSource(sourceNode) -} - func (cc _CNNNeuronSoftPlusNodeClass) Alloc() CNNNeuronSoftPlusNode { rv := objc.Call[CNNNeuronSoftPlusNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_neuron_tan_h_node.gen.go b/macos/mps/cnn_neuron_tan_h_node.gen.go index 6d7d73e0..3ef4d5da 100644 --- a/macos/mps/cnn_neuron_tan_h_node.gen.go +++ b/macos/mps/cnn_neuron_tan_h_node.gen.go @@ -33,34 +33,6 @@ func CNNNeuronTanHNodeFrom(ptr unsafe.Pointer) CNNNeuronTanHNode { } } -func (c_ CNNNeuronTanHNode) InitWithSource(sourceNode INNImageNode) CNNNeuronTanHNode { - rv := objc.Call[CNNNeuronTanHNode](c_, objc.Sel("initWithSource:"), sourceNode) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurontanhnode/2921465-initwithsource?language=objc -func NewCNNNeuronTanHNodeWithSource(sourceNode INNImageNode) CNNNeuronTanHNode { - instance := CNNNeuronTanHNodeClass.Alloc().InitWithSource(sourceNode) - instance.Autorelease() - return instance -} - -func (c_ CNNNeuronTanHNode) InitWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronTanHNode { - rv := objc.Call[CNNNeuronTanHNode](c_, objc.Sel("initWithSource:a:b:"), sourceNode, a, b) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurontanhnode/2866481-initwithsource?language=objc -func NewCNNNeuronTanHNodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronTanHNode { - instance := CNNNeuronTanHNodeClass.Alloc().InitWithSourceAB(sourceNode, a, b) - instance.Autorelease() - return instance -} - func (cc _CNNNeuronTanHNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronTanHNode { rv := objc.Call[CNNNeuronTanHNode](cc, objc.Sel("nodeWithSource:"), sourceNode) return rv @@ -73,16 +45,18 @@ func CNNNeuronTanHNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronTanHNode return CNNNeuronTanHNodeClass.NodeWithSource(sourceNode) } -func (cc _CNNNeuronTanHNodeClass) NodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronTanHNode { - rv := objc.Call[CNNNeuronTanHNode](cc, objc.Sel("nodeWithSource:a:b:"), sourceNode, a, b) +func (c_ CNNNeuronTanHNode) InitWithSource(sourceNode INNImageNode) CNNNeuronTanHNode { + rv := objc.Call[CNNNeuronTanHNode](c_, objc.Sel("initWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurontanhnode/2866416-nodewithsource?language=objc -func CNNNeuronTanHNode_NodeWithSourceAB(sourceNode INNImageNode, a float32, b float32) CNNNeuronTanHNode { - return CNNNeuronTanHNodeClass.NodeWithSourceAB(sourceNode, a, b) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurontanhnode/2921465-initwithsource?language=objc +func NewCNNNeuronTanHNodeWithSource(sourceNode INNImageNode) CNNNeuronTanHNode { + instance := CNNNeuronTanHNodeClass.Alloc().InitWithSource(sourceNode) + instance.Autorelease() + return instance } func (cc _CNNNeuronTanHNodeClass) Alloc() CNNNeuronTanHNode { diff --git a/macos/mps/cnn_normalization_gamma_and_beta_state.gen.go b/macos/mps/cnn_normalization_gamma_and_beta_state.gen.go index 474b852e..a597b6c4 100644 --- a/macos/mps/cnn_normalization_gamma_and_beta_state.gen.go +++ b/macos/mps/cnn_normalization_gamma_and_beta_state.gen.go @@ -36,19 +36,6 @@ func CNNNormalizationGammaAndBetaStateFrom(ptr unsafe.Pointer) CNNNormalizationG } } -func (cc _CNNNormalizationGammaAndBetaStateClass) TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer metal.PCommandBuffer, numberOfFeatureChannels uint) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNNormalizationGammaAndBetaState](cc, objc.Sel("temporaryStateWithCommandBuffer:numberOfFeatureChannels:"), po0, numberOfFeatureChannels) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationgammaandbetastate/2953937-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationGammaAndBetaState_TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer metal.PCommandBuffer, numberOfFeatureChannels uint) CNNNormalizationGammaAndBetaState { - return CNNNormalizationGammaAndBetaStateClass.TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer, numberOfFeatureChannels) -} - func (c_ CNNNormalizationGammaAndBetaState) InitWithGammaBeta(gamma metal.PBuffer, beta metal.PBuffer) CNNNormalizationGammaAndBetaState { po0 := objc.WrapAsProtocol("MTLBuffer", gamma) po1 := objc.WrapAsProtocol("MTLBuffer", beta) @@ -65,6 +52,19 @@ func NewCNNNormalizationGammaAndBetaStateWithGammaBeta(gamma metal.PBuffer, beta return instance } +func (cc _CNNNormalizationGammaAndBetaStateClass) TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer metal.PCommandBuffer, numberOfFeatureChannels uint) CNNNormalizationGammaAndBetaState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNNormalizationGammaAndBetaState](cc, objc.Sel("temporaryStateWithCommandBuffer:numberOfFeatureChannels:"), po0, numberOfFeatureChannels) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationgammaandbetastate/2953937-temporarystatewithcommandbuffer?language=objc +func CNNNormalizationGammaAndBetaState_TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer metal.PCommandBuffer, numberOfFeatureChannels uint) CNNNormalizationGammaAndBetaState { + return CNNNormalizationGammaAndBetaStateClass.TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer, numberOfFeatureChannels) +} + func (cc _CNNNormalizationGammaAndBetaStateClass) Alloc() CNNNormalizationGammaAndBetaState { rv := objc.Call[CNNNormalizationGammaAndBetaState](cc, objc.Sel("alloc")) return rv @@ -85,45 +85,16 @@ func (c_ CNNNormalizationGammaAndBetaState) Init() CNNNormalizationGammaAndBetaS return rv } -func (cc _CNNNormalizationGammaAndBetaStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNNormalizationGammaAndBetaState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationGammaAndBetaState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNNormalizationGammaAndBetaState { - return CNNNormalizationGammaAndBetaStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNNormalizationGammaAndBetaState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNNormalizationGammaAndBetaStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNNormalizationGammaAndBetaState { - instance := CNNNormalizationGammaAndBetaStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNNormalizationGammaAndBetaState) InitWithResource(resource metal.PResource) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNNormalizationGammaAndBetaState) InitWithResources(resources []metal.PResource) CNNNormalizationGammaAndBetaState { + rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNNormalizationGammaAndBetaStateWithResource(resource metal.PResource) CNNNormalizationGammaAndBetaState { - instance := CNNNormalizationGammaAndBetaStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNNormalizationGammaAndBetaStateWithResources(resources []metal.PResource) CNNNormalizationGammaAndBetaState { + instance := CNNNormalizationGammaAndBetaStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -143,72 +114,32 @@ func NewCNNNormalizationGammaAndBetaStateWithDeviceBufferSize(device metal.PDevi return instance } -func (c_ CNNNormalizationGammaAndBetaState) InitWithResources(resources []metal.PResource) CNNNormalizationGammaAndBetaState { - rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNNormalizationGammaAndBetaState) InitWithResource(resource metal.PResource) CNNNormalizationGammaAndBetaState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNNormalizationGammaAndBetaStateWithResources(resources []metal.PResource) CNNNormalizationGammaAndBetaState { - instance := CNNNormalizationGammaAndBetaStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNNormalizationGammaAndBetaStateWithResource(resource metal.PResource) CNNNormalizationGammaAndBetaState { + instance := CNNNormalizationGammaAndBetaStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNNormalizationGammaAndBetaStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNNormalizationGammaAndBetaState](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationGammaAndBetaState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNNormalizationGammaAndBetaState { - return CNNNormalizationGammaAndBetaStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNNormalizationGammaAndBetaStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNNormalizationGammaAndBetaState](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationGammaAndBetaState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNNormalizationGammaAndBetaState { - return CNNNormalizationGammaAndBetaStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNNormalizationGammaAndBetaStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNNormalizationGammaAndBetaState](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationGammaAndBetaState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNNormalizationGammaAndBetaState { - return CNNNormalizationGammaAndBetaStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNNormalizationGammaAndBetaState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (cc _CNNNormalizationGammaAndBetaStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNNormalizationGammaAndBetaState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNNormalizationGammaAndBetaState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNNormalizationGammaAndBetaStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNNormalizationGammaAndBetaState { - instance := CNNNormalizationGammaAndBetaStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNNormalizationGammaAndBetaState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNNormalizationGammaAndBetaState { + return CNNNormalizationGammaAndBetaStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] diff --git a/macos/mps/cnn_normalization_mean_and_variance_state.gen.go b/macos/mps/cnn_normalization_mean_and_variance_state.gen.go index 2e5bfb3b..a394f9e1 100644 --- a/macos/mps/cnn_normalization_mean_and_variance_state.gen.go +++ b/macos/mps/cnn_normalization_mean_and_variance_state.gen.go @@ -19,8 +19,8 @@ type _CNNNormalizationMeanAndVarianceStateClass struct { // An interface definition for the [CNNNormalizationMeanAndVarianceState] class. type ICNNNormalizationMeanAndVarianceState interface { IState - Mean() metal.BufferObject Variance() metal.BufferObject + Mean() metal.BufferObject } // An object that stores mean and variance terms used to execute batch normalization. [Full Topic] @@ -36,19 +36,6 @@ func CNNNormalizationMeanAndVarianceStateFrom(ptr unsafe.Pointer) CNNNormalizati } } -func (cc _CNNNormalizationMeanAndVarianceStateClass) TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer metal.PCommandBuffer, numberOfFeatureChannels uint) CNNNormalizationMeanAndVarianceState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNNormalizationMeanAndVarianceState](cc, objc.Sel("temporaryStateWithCommandBuffer:numberOfFeatureChannels:"), po0, numberOfFeatureChannels) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationmeanandvariancestate/3002365-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationMeanAndVarianceState_TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer metal.PCommandBuffer, numberOfFeatureChannels uint) CNNNormalizationMeanAndVarianceState { - return CNNNormalizationMeanAndVarianceStateClass.TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer, numberOfFeatureChannels) -} - func (c_ CNNNormalizationMeanAndVarianceState) InitWithMeanVariance(mean metal.PBuffer, variance metal.PBuffer) CNNNormalizationMeanAndVarianceState { po0 := objc.WrapAsProtocol("MTLBuffer", mean) po1 := objc.WrapAsProtocol("MTLBuffer", variance) @@ -65,6 +52,19 @@ func NewCNNNormalizationMeanAndVarianceStateWithMeanVariance(mean metal.PBuffer, return instance } +func (cc _CNNNormalizationMeanAndVarianceStateClass) TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer metal.PCommandBuffer, numberOfFeatureChannels uint) CNNNormalizationMeanAndVarianceState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNNormalizationMeanAndVarianceState](cc, objc.Sel("temporaryStateWithCommandBuffer:numberOfFeatureChannels:"), po0, numberOfFeatureChannels) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationmeanandvariancestate/3002365-temporarystatewithcommandbuffer?language=objc +func CNNNormalizationMeanAndVarianceState_TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer metal.PCommandBuffer, numberOfFeatureChannels uint) CNNNormalizationMeanAndVarianceState { + return CNNNormalizationMeanAndVarianceStateClass.TemporaryStateWithCommandBufferNumberOfFeatureChannels(commandBuffer, numberOfFeatureChannels) +} + func (cc _CNNNormalizationMeanAndVarianceStateClass) Alloc() CNNNormalizationMeanAndVarianceState { rv := objc.Call[CNNNormalizationMeanAndVarianceState](cc, objc.Sel("alloc")) return rv @@ -85,45 +85,16 @@ func (c_ CNNNormalizationMeanAndVarianceState) Init() CNNNormalizationMeanAndVar return rv } -func (cc _CNNNormalizationMeanAndVarianceStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNNormalizationMeanAndVarianceState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNNormalizationMeanAndVarianceState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationMeanAndVarianceState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNNormalizationMeanAndVarianceState { - return CNNNormalizationMeanAndVarianceStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (c_ CNNNormalizationMeanAndVarianceState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNNormalizationMeanAndVarianceState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNNormalizationMeanAndVarianceState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewCNNNormalizationMeanAndVarianceStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNNormalizationMeanAndVarianceState { - instance := CNNNormalizationMeanAndVarianceStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (c_ CNNNormalizationMeanAndVarianceState) InitWithResource(resource metal.PResource) CNNNormalizationMeanAndVarianceState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[CNNNormalizationMeanAndVarianceState](c_, objc.Sel("initWithResource:"), po0) +func (c_ CNNNormalizationMeanAndVarianceState) InitWithResources(resources []metal.PResource) CNNNormalizationMeanAndVarianceState { + rv := objc.Call[CNNNormalizationMeanAndVarianceState](c_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewCNNNormalizationMeanAndVarianceStateWithResource(resource metal.PResource) CNNNormalizationMeanAndVarianceState { - instance := CNNNormalizationMeanAndVarianceStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewCNNNormalizationMeanAndVarianceStateWithResources(resources []metal.PResource) CNNNormalizationMeanAndVarianceState { + instance := CNNNormalizationMeanAndVarianceStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -143,74 +114,42 @@ func NewCNNNormalizationMeanAndVarianceStateWithDeviceBufferSize(device metal.PD return instance } -func (c_ CNNNormalizationMeanAndVarianceState) InitWithResources(resources []metal.PResource) CNNNormalizationMeanAndVarianceState { - rv := objc.Call[CNNNormalizationMeanAndVarianceState](c_, objc.Sel("initWithResources:"), resources) +func (c_ CNNNormalizationMeanAndVarianceState) InitWithResource(resource metal.PResource) CNNNormalizationMeanAndVarianceState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[CNNNormalizationMeanAndVarianceState](c_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewCNNNormalizationMeanAndVarianceStateWithResources(resources []metal.PResource) CNNNormalizationMeanAndVarianceState { - instance := CNNNormalizationMeanAndVarianceStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewCNNNormalizationMeanAndVarianceStateWithResource(resource metal.PResource) CNNNormalizationMeanAndVarianceState { + instance := CNNNormalizationMeanAndVarianceStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (cc _CNNNormalizationMeanAndVarianceStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNNormalizationMeanAndVarianceState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNNormalizationMeanAndVarianceState](cc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationMeanAndVarianceState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) CNNNormalizationMeanAndVarianceState { - return CNNNormalizationMeanAndVarianceStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (cc _CNNNormalizationMeanAndVarianceStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNNormalizationMeanAndVarianceState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNNormalizationMeanAndVarianceState](cc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) +func (cc _CNNNormalizationMeanAndVarianceStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNNormalizationMeanAndVarianceState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[CNNNormalizationMeanAndVarianceState](cc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationMeanAndVarianceState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) CNNNormalizationMeanAndVarianceState { - return CNNNormalizationMeanAndVarianceStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (cc _CNNNormalizationMeanAndVarianceStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNNormalizationMeanAndVarianceState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[CNNNormalizationMeanAndVarianceState](cc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func CNNNormalizationMeanAndVarianceState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNNormalizationMeanAndVarianceState { + return CNNNormalizationMeanAndVarianceStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationMeanAndVarianceState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) CNNNormalizationMeanAndVarianceState { - return CNNNormalizationMeanAndVarianceStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (c_ CNNNormalizationMeanAndVarianceState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNNormalizationMeanAndVarianceState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNNormalizationMeanAndVarianceState](c_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationmeanandvariancestate/3002366-variance?language=objc +func (c_ CNNNormalizationMeanAndVarianceState) Variance() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("variance")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewCNNNormalizationMeanAndVarianceStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) CNNNormalizationMeanAndVarianceState { - instance := CNNNormalizationMeanAndVarianceStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationmeanandvariancestate/3002364-mean?language=objc @@ -218,11 +157,3 @@ func (c_ CNNNormalizationMeanAndVarianceState) Mean() metal.BufferObject { rv := objc.Call[metal.BufferObject](c_, objc.Sel("mean")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationmeanandvariancestate/3002366-variance?language=objc -func (c_ CNNNormalizationMeanAndVarianceState) Variance() metal.BufferObject { - rv := objc.Call[metal.BufferObject](c_, objc.Sel("variance")) - return rv -} diff --git a/macos/mps/cnn_normalization_node.gen.go b/macos/mps/cnn_normalization_node.gen.go index 0d56e920..3f6e2c33 100644 --- a/macos/mps/cnn_normalization_node.gen.go +++ b/macos/mps/cnn_normalization_node.gen.go @@ -20,10 +20,10 @@ type ICNNNormalizationNode interface { INNFilterNode Beta() float32 SetBeta(value float32) - Alpha() float32 - SetAlpha(value float32) Delta() float32 SetDelta(value float32) + Alpha() float32 + SetAlpha(value float32) } // Virtual base class for CNN normalization nodes. [Full Topic] @@ -39,30 +39,30 @@ func CNNNormalizationNodeFrom(ptr unsafe.Pointer) CNNNormalizationNode { } } -func (c_ CNNNormalizationNode) InitWithSource(sourceNode INNImageNode) CNNNormalizationNode { - rv := objc.Call[CNNNormalizationNode](c_, objc.Sel("initWithSource:"), sourceNode) +func (cc _CNNNormalizationNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNormalizationNode { + rv := objc.Call[CNNNormalizationNode](cc, objc.Sel("nodeWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866425-initwithsource?language=objc -func NewCNNNormalizationNodeWithSource(sourceNode INNImageNode) CNNNormalizationNode { - instance := CNNNormalizationNodeClass.Alloc().InitWithSource(sourceNode) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866460-nodewithsource?language=objc +func CNNNormalizationNode_NodeWithSource(sourceNode INNImageNode) CNNNormalizationNode { + return CNNNormalizationNodeClass.NodeWithSource(sourceNode) } -func (cc _CNNNormalizationNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNormalizationNode { - rv := objc.Call[CNNNormalizationNode](cc, objc.Sel("nodeWithSource:"), sourceNode) +func (c_ CNNNormalizationNode) InitWithSource(sourceNode INNImageNode) CNNNormalizationNode { + rv := objc.Call[CNNNormalizationNode](c_, objc.Sel("initWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866460-nodewithsource?language=objc -func CNNNormalizationNode_NodeWithSource(sourceNode INNImageNode) CNNNormalizationNode { - return CNNNormalizationNodeClass.NodeWithSource(sourceNode) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866425-initwithsource?language=objc +func NewCNNNormalizationNodeWithSource(sourceNode INNImageNode) CNNNormalizationNode { + instance := CNNNormalizationNodeClass.Alloc().InitWithSource(sourceNode) + instance.Autorelease() + return instance } func (cc _CNNNormalizationNodeClass) Alloc() CNNNormalizationNode { @@ -102,30 +102,30 @@ func (c_ CNNNormalizationNode) SetBeta(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866474-alpha?language=objc -func (c_ CNNNormalizationNode) Alpha() float32 { - rv := objc.Call[float32](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866482-delta?language=objc +func (c_ CNNNormalizationNode) Delta() float32 { + rv := objc.Call[float32](c_, objc.Sel("delta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866474-alpha?language=objc -func (c_ CNNNormalizationNode) SetAlpha(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866482-delta?language=objc +func (c_ CNNNormalizationNode) SetDelta(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866482-delta?language=objc -func (c_ CNNNormalizationNode) Delta() float32 { - rv := objc.Call[float32](c_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866474-alpha?language=objc +func (c_ CNNNormalizationNode) Alpha() float32 { + rv := objc.Call[float32](c_, objc.Sel("alpha")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866482-delta?language=objc -func (c_ CNNNormalizationNode) SetDelta(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866474-alpha?language=objc +func (c_ CNNNormalizationNode) SetAlpha(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } diff --git a/macos/mps/cnn_pooling.gen.go b/macos/mps/cnn_pooling.gen.go index 29d0ed39..bd1294ac 100644 --- a/macos/mps/cnn_pooling.gen.go +++ b/macos/mps/cnn_pooling.gen.go @@ -49,21 +49,6 @@ func NewCNNPoolingWithDeviceKernelWidthKernelHeightStrideInPixelsXStrideInPixels return instance } -func (c_ CNNPooling) InitWithDeviceKernelWidthKernelHeight(device metal.PDevice, kernelWidth uint, kernelHeight uint) CNNPooling { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNPooling](c_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:"), po0, kernelWidth, kernelHeight) - return rv -} - -// Initializes a pooling filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpooling/1648887-initwithdevice?language=objc -func NewCNNPoolingWithDeviceKernelWidthKernelHeight(device metal.PDevice, kernelWidth uint, kernelHeight uint) CNNPooling { - instance := CNNPoolingClass.Alloc().InitWithDeviceKernelWidthKernelHeight(device, kernelWidth, kernelHeight) - instance.Autorelease() - return instance -} - func (cc _CNNPoolingClass) Alloc() CNNPooling { rv := objc.Call[CNNPooling](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_pooling_average.gen.go b/macos/mps/cnn_pooling_average.gen.go index 5d49840a..3dde8258 100644 --- a/macos/mps/cnn_pooling_average.gen.go +++ b/macos/mps/cnn_pooling_average.gen.go @@ -19,10 +19,10 @@ type _CNNPoolingAverageClass struct { // An interface definition for the [CNNPoolingAverage] class. type ICNNPoolingAverage interface { ICNNPooling - ZeroPadSizeY() uint - SetZeroPadSizeY(value uint) ZeroPadSizeX() uint SetZeroPadSizeX(value uint) + ZeroPadSizeY() uint + SetZeroPadSizeY(value uint) } // An average pooling filter. [Full Topic] @@ -73,21 +73,6 @@ func (c_ CNNPoolingAverage) Init() CNNPoolingAverage { return rv } -func (c_ CNNPoolingAverage) InitWithDeviceKernelWidthKernelHeight(device metal.PDevice, kernelWidth uint, kernelHeight uint) CNNPoolingAverage { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNPoolingAverage](c_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:"), po0, kernelWidth, kernelHeight) - return rv -} - -// Initializes a pooling filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpooling/1648887-initwithdevice?language=objc -func NewCNNPoolingAverageWithDeviceKernelWidthKernelHeight(device metal.PDevice, kernelWidth uint, kernelHeight uint) CNNPoolingAverage { - instance := CNNPoolingAverageClass.Alloc().InitWithDeviceKernelWidthKernelHeight(device, kernelWidth, kernelHeight) - instance.Autorelease() - return instance -} - func (c_ CNNPoolingAverage) InitWithDevice(device metal.PDevice) CNNPoolingAverage { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPoolingAverage](c_, objc.Sel("initWithDevice:"), po0) @@ -120,30 +105,30 @@ func CNNPoolingAverage_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingaverage/2875221-zeropadsizey?language=objc -func (c_ CNNPoolingAverage) ZeroPadSizeY() uint { - rv := objc.Call[uint](c_, objc.Sel("zeroPadSizeY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingaverage/2875207-zeropadsizex?language=objc +func (c_ CNNPoolingAverage) ZeroPadSizeX() uint { + rv := objc.Call[uint](c_, objc.Sel("zeroPadSizeX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingaverage/2875221-zeropadsizey?language=objc -func (c_ CNNPoolingAverage) SetZeroPadSizeY(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setZeroPadSizeY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingaverage/2875207-zeropadsizex?language=objc +func (c_ CNNPoolingAverage) SetZeroPadSizeX(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setZeroPadSizeX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingaverage/2875207-zeropadsizex?language=objc -func (c_ CNNPoolingAverage) ZeroPadSizeX() uint { - rv := objc.Call[uint](c_, objc.Sel("zeroPadSizeX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingaverage/2875221-zeropadsizey?language=objc +func (c_ CNNPoolingAverage) ZeroPadSizeY() uint { + rv := objc.Call[uint](c_, objc.Sel("zeroPadSizeY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingaverage/2875207-zeropadsizex?language=objc -func (c_ CNNPoolingAverage) SetZeroPadSizeX(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setZeroPadSizeX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingaverage/2875221-zeropadsizey?language=objc +func (c_ CNNPoolingAverage) SetZeroPadSizeY(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setZeroPadSizeY:"), value) } diff --git a/macos/mps/cnn_pooling_average_node.gen.go b/macos/mps/cnn_pooling_average_node.gen.go index ed99debe..16622243 100644 --- a/macos/mps/cnn_pooling_average_node.gen.go +++ b/macos/mps/cnn_pooling_average_node.gen.go @@ -53,32 +53,6 @@ func (c_ CNNPoolingAverageNode) Init() CNNPoolingAverageNode { return rv } -func (c_ CNNPoolingAverageNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingAverageNode { - rv := objc.Call[CNNPoolingAverageNode](c_, objc.Sel("initWithSource:filterSize:"), sourceNode, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866488-initwithsource?language=objc -func NewCNNPoolingAverageNodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingAverageNode { - instance := CNNPoolingAverageNodeClass.Alloc().InitWithSourceFilterSize(sourceNode, size) - instance.Autorelease() - return instance -} - -func (cc _CNNPoolingAverageNodeClass) NodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingAverageNode { - rv := objc.Call[CNNPoolingAverageNode](cc, objc.Sel("nodeWithSource:filterSize:stride:"), sourceNode, size, stride) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2890831-nodewithsource?language=objc -func CNNPoolingAverageNode_NodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingAverageNode { - return CNNPoolingAverageNodeClass.NodeWithSourceFilterSizeStride(sourceNode, size, stride) -} - func (cc _CNNPoolingAverageNodeClass) NodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingAverageNode { rv := objc.Call[CNNPoolingAverageNode](cc, objc.Sel("nodeWithSource:filterSize:"), sourceNode, size) return rv @@ -91,30 +65,16 @@ func CNNPoolingAverageNode_NodeWithSourceFilterSize(sourceNode INNImageNode, siz return CNNPoolingAverageNodeClass.NodeWithSourceFilterSize(sourceNode, size) } -func (c_ CNNPoolingAverageNode) InitWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode INNImageNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNPoolingAverageNode { - rv := objc.Call[CNNPoolingAverageNode](c_, objc.Sel("initWithSource:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:"), sourceNode, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866471-initwithsource?language=objc -func NewCNNPoolingAverageNodeWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode INNImageNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNPoolingAverageNode { - instance := CNNPoolingAverageNodeClass.Alloc().InitWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - instance.Autorelease() - return instance -} - -func (c_ CNNPoolingAverageNode) InitWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingAverageNode { - rv := objc.Call[CNNPoolingAverageNode](c_, objc.Sel("initWithSource:filterSize:stride:"), sourceNode, size, stride) +func (c_ CNNPoolingAverageNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingAverageNode { + rv := objc.Call[CNNPoolingAverageNode](c_, objc.Sel("initWithSource:filterSize:"), sourceNode, size) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866444-initwithsource?language=objc -func NewCNNPoolingAverageNodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingAverageNode { - instance := CNNPoolingAverageNodeClass.Alloc().InitWithSourceFilterSizeStride(sourceNode, size, stride) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866488-initwithsource?language=objc +func NewCNNPoolingAverageNodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingAverageNode { + instance := CNNPoolingAverageNodeClass.Alloc().InitWithSourceFilterSize(sourceNode, size) instance.Autorelease() return instance } diff --git a/macos/mps/cnn_pooling_gradient.gen.go b/macos/mps/cnn_pooling_gradient.gen.go index 1859b802..bf368106 100644 --- a/macos/mps/cnn_pooling_gradient.gen.go +++ b/macos/mps/cnn_pooling_gradient.gen.go @@ -51,21 +51,6 @@ func NewCNNPoolingGradientWithDeviceKernelWidthKernelHeight(device metal.PDevice return instance } -func (c_ CNNPoolingGradient) InitWithDeviceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(device metal.PDevice, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNPoolingGradient { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNPoolingGradient](c_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:"), po0, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolinggradient/2942347-initwithdevice?language=objc -func NewCNNPoolingGradientWithDeviceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(device metal.PDevice, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNPoolingGradient { - instance := CNNPoolingGradientClass.Alloc().InitWithDeviceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(device, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - instance.Autorelease() - return instance -} - func (cc _CNNPoolingGradientClass) Alloc() CNNPoolingGradient { rv := objc.Call[CNNPoolingGradient](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_pooling_gradient_node.gen.go b/macos/mps/cnn_pooling_gradient_node.gen.go index 3563f2cb..60c217fa 100644 --- a/macos/mps/cnn_pooling_gradient_node.gen.go +++ b/macos/mps/cnn_pooling_gradient_node.gen.go @@ -18,9 +18,9 @@ type _CNNPoolingGradientNodeClass struct { // An interface definition for the [CNNPoolingGradientNode] class. type ICNNPoolingGradientNode interface { INNGradientFilterNode - KernelHeight() uint StrideInPixelsY() uint StrideInPixelsX() uint + KernelHeight() uint KernelWidth() uint } @@ -85,14 +85,6 @@ func (c_ CNNPoolingGradientNode) Init() CNNPoolingGradientNode { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolinggradientnode/2947992-kernelheight?language=objc -func (c_ CNNPoolingGradientNode) KernelHeight() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelHeight")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolinggradientnode/2948048-strideinpixelsy?language=objc @@ -109,6 +101,14 @@ func (c_ CNNPoolingGradientNode) StrideInPixelsX() uint { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolinggradientnode/2947992-kernelheight?language=objc +func (c_ CNNPoolingGradientNode) KernelHeight() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelHeight")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolinggradientnode/2948034-kernelwidth?language=objc diff --git a/macos/mps/cnn_pooling_l2_norm.gen.go b/macos/mps/cnn_pooling_l2_norm.gen.go index f8a221d7..a7c10dec 100644 --- a/macos/mps/cnn_pooling_l2_norm.gen.go +++ b/macos/mps/cnn_pooling_l2_norm.gen.go @@ -69,21 +69,6 @@ func (c_ CNNPoolingL2Norm) Init() CNNPoolingL2Norm { return rv } -func (c_ CNNPoolingL2Norm) InitWithDeviceKernelWidthKernelHeight(device metal.PDevice, kernelWidth uint, kernelHeight uint) CNNPoolingL2Norm { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNPoolingL2Norm](c_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:"), po0, kernelWidth, kernelHeight) - return rv -} - -// Initializes a pooling filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpooling/1648887-initwithdevice?language=objc -func NewCNNPoolingL2NormWithDeviceKernelWidthKernelHeight(device metal.PDevice, kernelWidth uint, kernelHeight uint) CNNPoolingL2Norm { - instance := CNNPoolingL2NormClass.Alloc().InitWithDeviceKernelWidthKernelHeight(device, kernelWidth, kernelHeight) - instance.Autorelease() - return instance -} - func (c_ CNNPoolingL2Norm) InitWithDevice(device metal.PDevice) CNNPoolingL2Norm { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPoolingL2Norm](c_, objc.Sel("initWithDevice:"), po0) diff --git a/macos/mps/cnn_pooling_l2_norm_node.gen.go b/macos/mps/cnn_pooling_l2_norm_node.gen.go index e08c99e9..aaae9043 100644 --- a/macos/mps/cnn_pooling_l2_norm_node.gen.go +++ b/macos/mps/cnn_pooling_l2_norm_node.gen.go @@ -53,32 +53,6 @@ func (c_ CNNPoolingL2NormNode) Init() CNNPoolingL2NormNode { return rv } -func (c_ CNNPoolingL2NormNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingL2NormNode { - rv := objc.Call[CNNPoolingL2NormNode](c_, objc.Sel("initWithSource:filterSize:"), sourceNode, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866488-initwithsource?language=objc -func NewCNNPoolingL2NormNodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingL2NormNode { - instance := CNNPoolingL2NormNodeClass.Alloc().InitWithSourceFilterSize(sourceNode, size) - instance.Autorelease() - return instance -} - -func (cc _CNNPoolingL2NormNodeClass) NodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingL2NormNode { - rv := objc.Call[CNNPoolingL2NormNode](cc, objc.Sel("nodeWithSource:filterSize:stride:"), sourceNode, size, stride) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2890831-nodewithsource?language=objc -func CNNPoolingL2NormNode_NodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingL2NormNode { - return CNNPoolingL2NormNodeClass.NodeWithSourceFilterSizeStride(sourceNode, size, stride) -} - func (cc _CNNPoolingL2NormNodeClass) NodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingL2NormNode { rv := objc.Call[CNNPoolingL2NormNode](cc, objc.Sel("nodeWithSource:filterSize:"), sourceNode, size) return rv @@ -91,30 +65,16 @@ func CNNPoolingL2NormNode_NodeWithSourceFilterSize(sourceNode INNImageNode, size return CNNPoolingL2NormNodeClass.NodeWithSourceFilterSize(sourceNode, size) } -func (c_ CNNPoolingL2NormNode) InitWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode INNImageNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNPoolingL2NormNode { - rv := objc.Call[CNNPoolingL2NormNode](c_, objc.Sel("initWithSource:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:"), sourceNode, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866471-initwithsource?language=objc -func NewCNNPoolingL2NormNodeWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode INNImageNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNPoolingL2NormNode { - instance := CNNPoolingL2NormNodeClass.Alloc().InitWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - instance.Autorelease() - return instance -} - -func (c_ CNNPoolingL2NormNode) InitWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingL2NormNode { - rv := objc.Call[CNNPoolingL2NormNode](c_, objc.Sel("initWithSource:filterSize:stride:"), sourceNode, size, stride) +func (c_ CNNPoolingL2NormNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingL2NormNode { + rv := objc.Call[CNNPoolingL2NormNode](c_, objc.Sel("initWithSource:filterSize:"), sourceNode, size) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866444-initwithsource?language=objc -func NewCNNPoolingL2NormNodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingL2NormNode { - instance := CNNPoolingL2NormNodeClass.Alloc().InitWithSourceFilterSizeStride(sourceNode, size, stride) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866488-initwithsource?language=objc +func NewCNNPoolingL2NormNodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingL2NormNode { + instance := CNNPoolingL2NormNodeClass.Alloc().InitWithSourceFilterSize(sourceNode, size) instance.Autorelease() return instance } diff --git a/macos/mps/cnn_pooling_max.gen.go b/macos/mps/cnn_pooling_max.gen.go index 71dc44cf..cb8403bf 100644 --- a/macos/mps/cnn_pooling_max.gen.go +++ b/macos/mps/cnn_pooling_max.gen.go @@ -69,21 +69,6 @@ func (c_ CNNPoolingMax) Init() CNNPoolingMax { return rv } -func (c_ CNNPoolingMax) InitWithDeviceKernelWidthKernelHeight(device metal.PDevice, kernelWidth uint, kernelHeight uint) CNNPoolingMax { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNPoolingMax](c_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:"), po0, kernelWidth, kernelHeight) - return rv -} - -// Initializes a pooling filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpooling/1648887-initwithdevice?language=objc -func NewCNNPoolingMaxWithDeviceKernelWidthKernelHeight(device metal.PDevice, kernelWidth uint, kernelHeight uint) CNNPoolingMax { - instance := CNNPoolingMaxClass.Alloc().InitWithDeviceKernelWidthKernelHeight(device, kernelWidth, kernelHeight) - instance.Autorelease() - return instance -} - func (c_ CNNPoolingMax) InitWithDevice(device metal.PDevice) CNNPoolingMax { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPoolingMax](c_, objc.Sel("initWithDevice:"), po0) diff --git a/macos/mps/cnn_pooling_max_node.gen.go b/macos/mps/cnn_pooling_max_node.gen.go index 65022beb..00ad9022 100644 --- a/macos/mps/cnn_pooling_max_node.gen.go +++ b/macos/mps/cnn_pooling_max_node.gen.go @@ -53,32 +53,6 @@ func (c_ CNNPoolingMaxNode) Init() CNNPoolingMaxNode { return rv } -func (c_ CNNPoolingMaxNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingMaxNode { - rv := objc.Call[CNNPoolingMaxNode](c_, objc.Sel("initWithSource:filterSize:"), sourceNode, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866488-initwithsource?language=objc -func NewCNNPoolingMaxNodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingMaxNode { - instance := CNNPoolingMaxNodeClass.Alloc().InitWithSourceFilterSize(sourceNode, size) - instance.Autorelease() - return instance -} - -func (cc _CNNPoolingMaxNodeClass) NodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingMaxNode { - rv := objc.Call[CNNPoolingMaxNode](cc, objc.Sel("nodeWithSource:filterSize:stride:"), sourceNode, size, stride) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2890831-nodewithsource?language=objc -func CNNPoolingMaxNode_NodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingMaxNode { - return CNNPoolingMaxNodeClass.NodeWithSourceFilterSizeStride(sourceNode, size, stride) -} - func (cc _CNNPoolingMaxNodeClass) NodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingMaxNode { rv := objc.Call[CNNPoolingMaxNode](cc, objc.Sel("nodeWithSource:filterSize:"), sourceNode, size) return rv @@ -91,30 +65,16 @@ func CNNPoolingMaxNode_NodeWithSourceFilterSize(sourceNode INNImageNode, size ui return CNNPoolingMaxNodeClass.NodeWithSourceFilterSize(sourceNode, size) } -func (c_ CNNPoolingMaxNode) InitWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode INNImageNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNPoolingMaxNode { - rv := objc.Call[CNNPoolingMaxNode](c_, objc.Sel("initWithSource:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:"), sourceNode, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866471-initwithsource?language=objc -func NewCNNPoolingMaxNodeWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode INNImageNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNPoolingMaxNode { - instance := CNNPoolingMaxNodeClass.Alloc().InitWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - instance.Autorelease() - return instance -} - -func (c_ CNNPoolingMaxNode) InitWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingMaxNode { - rv := objc.Call[CNNPoolingMaxNode](c_, objc.Sel("initWithSource:filterSize:stride:"), sourceNode, size, stride) +func (c_ CNNPoolingMaxNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingMaxNode { + rv := objc.Call[CNNPoolingMaxNode](c_, objc.Sel("initWithSource:filterSize:"), sourceNode, size) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866444-initwithsource?language=objc -func NewCNNPoolingMaxNodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingMaxNode { - instance := CNNPoolingMaxNodeClass.Alloc().InitWithSourceFilterSizeStride(sourceNode, size, stride) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866488-initwithsource?language=objc +func NewCNNPoolingMaxNodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingMaxNode { + instance := CNNPoolingMaxNodeClass.Alloc().InitWithSourceFilterSize(sourceNode, size) instance.Autorelease() return instance } diff --git a/macos/mps/cnn_pooling_node.gen.go b/macos/mps/cnn_pooling_node.gen.go index 5e7db37c..f2c1d96a 100644 --- a/macos/mps/cnn_pooling_node.gen.go +++ b/macos/mps/cnn_pooling_node.gen.go @@ -18,9 +18,9 @@ type _CNNPoolingNodeClass struct { // An interface definition for the [CNNPoolingNode] class. type ICNNPoolingNode interface { INNFilterNode + StrideInPixelsY() uint StrideInPixelsX() uint KernelHeight() uint - StrideInPixelsY() uint KernelWidth() uint } @@ -37,32 +37,6 @@ func CNNPoolingNodeFrom(ptr unsafe.Pointer) CNNPoolingNode { } } -func (c_ CNNPoolingNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingNode { - rv := objc.Call[CNNPoolingNode](c_, objc.Sel("initWithSource:filterSize:"), sourceNode, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866488-initwithsource?language=objc -func NewCNNPoolingNodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingNode { - instance := CNNPoolingNodeClass.Alloc().InitWithSourceFilterSize(sourceNode, size) - instance.Autorelease() - return instance -} - -func (cc _CNNPoolingNodeClass) NodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingNode { - rv := objc.Call[CNNPoolingNode](cc, objc.Sel("nodeWithSource:filterSize:stride:"), sourceNode, size, stride) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2890831-nodewithsource?language=objc -func CNNPoolingNode_NodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingNode { - return CNNPoolingNodeClass.NodeWithSourceFilterSizeStride(sourceNode, size, stride) -} - func (cc _CNNPoolingNodeClass) NodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingNode { rv := objc.Call[CNNPoolingNode](cc, objc.Sel("nodeWithSource:filterSize:"), sourceNode, size) return rv @@ -75,30 +49,16 @@ func CNNPoolingNode_NodeWithSourceFilterSize(sourceNode INNImageNode, size uint) return CNNPoolingNodeClass.NodeWithSourceFilterSize(sourceNode, size) } -func (c_ CNNPoolingNode) InitWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode INNImageNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNPoolingNode { - rv := objc.Call[CNNPoolingNode](c_, objc.Sel("initWithSource:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:"), sourceNode, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866471-initwithsource?language=objc -func NewCNNPoolingNodeWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode INNImageNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint) CNNPoolingNode { - instance := CNNPoolingNodeClass.Alloc().InitWithSourceKernelWidthKernelHeightStrideInPixelsXStrideInPixelsY(sourceNode, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) - instance.Autorelease() - return instance -} - -func (c_ CNNPoolingNode) InitWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingNode { - rv := objc.Call[CNNPoolingNode](c_, objc.Sel("initWithSource:filterSize:stride:"), sourceNode, size, stride) +func (c_ CNNPoolingNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingNode { + rv := objc.Call[CNNPoolingNode](c_, objc.Sel("initWithSource:filterSize:"), sourceNode, size) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866444-initwithsource?language=objc -func NewCNNPoolingNodeWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingNode { - instance := CNNPoolingNodeClass.Alloc().InitWithSourceFilterSizeStride(sourceNode, size, stride) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2866488-initwithsource?language=objc +func NewCNNPoolingNodeWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingNode { + instance := CNNPoolingNodeClass.Alloc().InitWithSourceFilterSize(sourceNode, size) instance.Autorelease() return instance } @@ -123,6 +83,14 @@ func (c_ CNNPoolingNode) Init() CNNPoolingNode { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2993004-strideinpixelsy?language=objc +func (c_ CNNPoolingNode) StrideInPixelsY() uint { + rv := objc.Call[uint](c_, objc.Sel("strideInPixelsY")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2993003-strideinpixelsx?language=objc @@ -139,14 +107,6 @@ func (c_ CNNPoolingNode) KernelHeight() uint { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2993004-strideinpixelsy?language=objc -func (c_ CNNPoolingNode) StrideInPixelsY() uint { - rv := objc.Call[uint](c_, objc.Sel("strideInPixelsY")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpoolingnode/2993002-kernelwidth?language=objc diff --git a/macos/mps/cnn_soft_max_gradient_node.gen.go b/macos/mps/cnn_soft_max_gradient_node.gen.go index ddaa4ac6..c2f662f5 100644 --- a/macos/mps/cnn_soft_max_gradient_node.gen.go +++ b/macos/mps/cnn_soft_max_gradient_node.gen.go @@ -33,18 +33,6 @@ func CNNSoftMaxGradientNodeFrom(ptr unsafe.Pointer) CNNSoftMaxGradientNode { } } -func (cc _CNNSoftMaxGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { - rv := objc.Call[CNNSoftMaxGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnsoftmaxgradientnode/2947995-nodewithsourcegradient?language=objc -func CNNSoftMaxGradientNode_NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { - return CNNSoftMaxGradientNodeClass.NodeWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) -} - func (c_ CNNSoftMaxGradientNode) InitWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { rv := objc.Call[CNNSoftMaxGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) return rv @@ -59,6 +47,18 @@ func NewCNNSoftMaxGradientNodeWithSourceGradientSourceImageGradientState(sourceG return instance } +func (cc _CNNSoftMaxGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { + rv := objc.Call[CNNSoftMaxGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnsoftmaxgradientnode/2947995-nodewithsourcegradient?language=objc +func CNNSoftMaxGradientNode_NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { + return CNNSoftMaxGradientNodeClass.NodeWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) +} + func (cc _CNNSoftMaxGradientNodeClass) Alloc() CNNSoftMaxGradientNode { rv := objc.Call[CNNSoftMaxGradientNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_soft_max_node.gen.go b/macos/mps/cnn_soft_max_node.gen.go index 232567d9..fef6820e 100644 --- a/macos/mps/cnn_soft_max_node.gen.go +++ b/macos/mps/cnn_soft_max_node.gen.go @@ -33,30 +33,30 @@ func CNNSoftMaxNodeFrom(ptr unsafe.Pointer) CNNSoftMaxNode { } } -func (c_ CNNSoftMaxNode) InitWithSource(sourceNode INNImageNode) CNNSoftMaxNode { - rv := objc.Call[CNNSoftMaxNode](c_, objc.Sel("initWithSource:"), sourceNode) +func (cc _CNNSoftMaxNodeClass) NodeWithSource(sourceNode INNImageNode) CNNSoftMaxNode { + rv := objc.Call[CNNSoftMaxNode](cc, objc.Sel("nodeWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnsoftmaxnode/2866408-initwithsource?language=objc -func NewCNNSoftMaxNodeWithSource(sourceNode INNImageNode) CNNSoftMaxNode { - instance := CNNSoftMaxNodeClass.Alloc().InitWithSource(sourceNode) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnsoftmaxnode/2866455-nodewithsource?language=objc +func CNNSoftMaxNode_NodeWithSource(sourceNode INNImageNode) CNNSoftMaxNode { + return CNNSoftMaxNodeClass.NodeWithSource(sourceNode) } -func (cc _CNNSoftMaxNodeClass) NodeWithSource(sourceNode INNImageNode) CNNSoftMaxNode { - rv := objc.Call[CNNSoftMaxNode](cc, objc.Sel("nodeWithSource:"), sourceNode) +func (c_ CNNSoftMaxNode) InitWithSource(sourceNode INNImageNode) CNNSoftMaxNode { + rv := objc.Call[CNNSoftMaxNode](c_, objc.Sel("initWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnsoftmaxnode/2866455-nodewithsource?language=objc -func CNNSoftMaxNode_NodeWithSource(sourceNode INNImageNode) CNNSoftMaxNode { - return CNNSoftMaxNodeClass.NodeWithSource(sourceNode) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnsoftmaxnode/2866408-initwithsource?language=objc +func NewCNNSoftMaxNodeWithSource(sourceNode INNImageNode) CNNSoftMaxNode { + instance := CNNSoftMaxNodeClass.Alloc().InitWithSource(sourceNode) + instance.Autorelease() + return instance } func (cc _CNNSoftMaxNodeClass) Alloc() CNNSoftMaxNode { diff --git a/macos/mps/cnn_spatial_normalization.gen.go b/macos/mps/cnn_spatial_normalization.gen.go index 626726e9..ecfdac26 100644 --- a/macos/mps/cnn_spatial_normalization.gen.go +++ b/macos/mps/cnn_spatial_normalization.gen.go @@ -19,12 +19,12 @@ type _CNNSpatialNormalizationClass struct { // An interface definition for the [CNNSpatialNormalization] class. type ICNNSpatialNormalization interface { ICNNKernel + Beta() float32 + SetBeta(value float32) Delta() float32 SetDelta(value float32) Alpha() float32 SetAlpha(value float32) - Beta() float32 - SetBeta(value float32) } // A spatial normalization kernel. [Full Topic] @@ -105,6 +105,21 @@ func CNNSpatialNormalization_CopyWithZoneDevice(zone unsafe.Pointer, device meta return instance } +// The "beta" variable of the kernel function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalization/1648936-beta?language=objc +func (c_ CNNSpatialNormalization) Beta() float32 { + rv := objc.Call[float32](c_, objc.Sel("beta")) + return rv +} + +// The "beta" variable of the kernel function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalization/1648936-beta?language=objc +func (c_ CNNSpatialNormalization) SetBeta(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) +} + // The "delta" variable of the kernel function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalization/1648933-delta?language=objc @@ -134,18 +149,3 @@ func (c_ CNNSpatialNormalization) Alpha() float32 { func (c_ CNNSpatialNormalization) SetAlpha(value float32) { objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } - -// The "beta" variable of the kernel function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalization/1648936-beta?language=objc -func (c_ CNNSpatialNormalization) Beta() float32 { - rv := objc.Call[float32](c_, objc.Sel("beta")) - return rv -} - -// The "beta" variable of the kernel function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalization/1648936-beta?language=objc -func (c_ CNNSpatialNormalization) SetBeta(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) -} diff --git a/macos/mps/cnn_spatial_normalization_gradient.gen.go b/macos/mps/cnn_spatial_normalization_gradient.gen.go index 3836d4c8..b9e0c309 100644 --- a/macos/mps/cnn_spatial_normalization_gradient.gen.go +++ b/macos/mps/cnn_spatial_normalization_gradient.gen.go @@ -19,12 +19,12 @@ type _CNNSpatialNormalizationGradientClass struct { // An interface definition for the [CNNSpatialNormalizationGradient] class. type ICNNSpatialNormalizationGradient interface { ICNNGradientKernel - Alpha() float32 - SetAlpha(value float32) Beta() float32 SetBeta(value float32) Delta() float32 SetDelta(value float32) + Alpha() float32 + SetAlpha(value float32) } // A gradient spatial normalization kernel. [Full Topic] @@ -105,21 +105,6 @@ func CNNSpatialNormalizationGradient_CopyWithZoneDevice(zone unsafe.Pointer, dev return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradient/2942478-alpha?language=objc -func (c_ CNNSpatialNormalizationGradient) Alpha() float32 { - rv := objc.Call[float32](c_, objc.Sel("alpha")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradient/2942478-alpha?language=objc -func (c_ CNNSpatialNormalizationGradient) SetAlpha(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradient/2942470-beta?language=objc @@ -149,3 +134,18 @@ func (c_ CNNSpatialNormalizationGradient) Delta() float32 { func (c_ CNNSpatialNormalizationGradient) SetDelta(value float32) { objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradient/2942478-alpha?language=objc +func (c_ CNNSpatialNormalizationGradient) Alpha() float32 { + rv := objc.Call[float32](c_, objc.Sel("alpha")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradient/2942478-alpha?language=objc +func (c_ CNNSpatialNormalizationGradient) SetAlpha(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +} diff --git a/macos/mps/cnn_spatial_normalization_gradient_node.gen.go b/macos/mps/cnn_spatial_normalization_gradient_node.gen.go index ef136066..75311fd6 100644 --- a/macos/mps/cnn_spatial_normalization_gradient_node.gen.go +++ b/macos/mps/cnn_spatial_normalization_gradient_node.gen.go @@ -18,16 +18,16 @@ type _CNNSpatialNormalizationGradientNodeClass struct { // An interface definition for the [CNNSpatialNormalizationGradientNode] class. type ICNNSpatialNormalizationGradientNode interface { INNGradientFilterNode - KernelWidth() uint - SetKernelWidth(value uint) - KernelHeight() uint - SetKernelHeight(value uint) Beta() float32 SetBeta(value float32) - Alpha() float32 - SetAlpha(value float32) Delta() float32 SetDelta(value float32) + Alpha() float32 + SetAlpha(value float32) + KernelHeight() uint + SetKernelHeight(value uint) + KernelWidth() uint + SetKernelWidth(value uint) } // A representation of a gradient spatial normalization kernel. [Full Topic] @@ -91,75 +91,75 @@ func (c_ CNNSpatialNormalizationGradientNode) Init() CNNSpatialNormalizationGrad // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948013-kernelwidth?language=objc -func (c_ CNNSpatialNormalizationGradientNode) KernelWidth() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948006-beta?language=objc +func (c_ CNNSpatialNormalizationGradientNode) Beta() float32 { + rv := objc.Call[float32](c_, objc.Sel("beta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948013-kernelwidth?language=objc -func (c_ CNNSpatialNormalizationGradientNode) SetKernelWidth(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setKernelWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948006-beta?language=objc +func (c_ CNNSpatialNormalizationGradientNode) SetBeta(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948020-kernelheight?language=objc -func (c_ CNNSpatialNormalizationGradientNode) KernelHeight() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelHeight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2947968-delta?language=objc +func (c_ CNNSpatialNormalizationGradientNode) Delta() float32 { + rv := objc.Call[float32](c_, objc.Sel("delta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948020-kernelheight?language=objc -func (c_ CNNSpatialNormalizationGradientNode) SetKernelHeight(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setKernelHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2947968-delta?language=objc +func (c_ CNNSpatialNormalizationGradientNode) SetDelta(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948006-beta?language=objc -func (c_ CNNSpatialNormalizationGradientNode) Beta() float32 { - rv := objc.Call[float32](c_, objc.Sel("beta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948027-alpha?language=objc +func (c_ CNNSpatialNormalizationGradientNode) Alpha() float32 { + rv := objc.Call[float32](c_, objc.Sel("alpha")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948006-beta?language=objc -func (c_ CNNSpatialNormalizationGradientNode) SetBeta(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948027-alpha?language=objc +func (c_ CNNSpatialNormalizationGradientNode) SetAlpha(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948027-alpha?language=objc -func (c_ CNNSpatialNormalizationGradientNode) Alpha() float32 { - rv := objc.Call[float32](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948020-kernelheight?language=objc +func (c_ CNNSpatialNormalizationGradientNode) KernelHeight() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelHeight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948027-alpha?language=objc -func (c_ CNNSpatialNormalizationGradientNode) SetAlpha(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948020-kernelheight?language=objc +func (c_ CNNSpatialNormalizationGradientNode) SetKernelHeight(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setKernelHeight:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2947968-delta?language=objc -func (c_ CNNSpatialNormalizationGradientNode) Delta() float32 { - rv := objc.Call[float32](c_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948013-kernelwidth?language=objc +func (c_ CNNSpatialNormalizationGradientNode) KernelWidth() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2947968-delta?language=objc -func (c_ CNNSpatialNormalizationGradientNode) SetDelta(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948013-kernelwidth?language=objc +func (c_ CNNSpatialNormalizationGradientNode) SetKernelWidth(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setKernelWidth:"), value) } diff --git a/macos/mps/cnn_spatial_normalization_node.gen.go b/macos/mps/cnn_spatial_normalization_node.gen.go index 6277814e..2ccebf75 100644 --- a/macos/mps/cnn_spatial_normalization_node.gen.go +++ b/macos/mps/cnn_spatial_normalization_node.gen.go @@ -37,46 +37,32 @@ func CNNSpatialNormalizationNodeFrom(ptr unsafe.Pointer) CNNSpatialNormalization } } -func (c_ CNNSpatialNormalizationNode) InitWithSource(sourceNode INNImageNode) CNNSpatialNormalizationNode { - rv := objc.Call[CNNSpatialNormalizationNode](c_, objc.Sel("initWithSource:"), sourceNode) +func (cc _CNNSpatialNormalizationNodeClass) NodeWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNSpatialNormalizationNode { + rv := objc.Call[CNNSpatialNormalizationNode](cc, objc.Sel("nodeWithSource:kernelSize:"), sourceNode, kernelSize) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationnode/2866502-initwithsource?language=objc -func NewCNNSpatialNormalizationNodeWithSource(sourceNode INNImageNode) CNNSpatialNormalizationNode { - instance := CNNSpatialNormalizationNodeClass.Alloc().InitWithSource(sourceNode) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationnode/2866401-nodewithsource?language=objc +func CNNSpatialNormalizationNode_NodeWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNSpatialNormalizationNode { + return CNNSpatialNormalizationNodeClass.NodeWithSourceKernelSize(sourceNode, kernelSize) } -func (c_ CNNSpatialNormalizationNode) InitWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNSpatialNormalizationNode { - rv := objc.Call[CNNSpatialNormalizationNode](c_, objc.Sel("initWithSource:kernelSize:"), sourceNode, kernelSize) +func (c_ CNNSpatialNormalizationNode) InitWithSource(sourceNode INNImageNode) CNNSpatialNormalizationNode { + rv := objc.Call[CNNSpatialNormalizationNode](c_, objc.Sel("initWithSource:"), sourceNode) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationnode/2866438-initwithsource?language=objc -func NewCNNSpatialNormalizationNodeWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNSpatialNormalizationNode { - instance := CNNSpatialNormalizationNodeClass.Alloc().InitWithSourceKernelSize(sourceNode, kernelSize) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationnode/2866502-initwithsource?language=objc +func NewCNNSpatialNormalizationNodeWithSource(sourceNode INNImageNode) CNNSpatialNormalizationNode { + instance := CNNSpatialNormalizationNodeClass.Alloc().InitWithSource(sourceNode) instance.Autorelease() return instance } -func (cc _CNNSpatialNormalizationNodeClass) NodeWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNSpatialNormalizationNode { - rv := objc.Call[CNNSpatialNormalizationNode](cc, objc.Sel("nodeWithSource:kernelSize:"), sourceNode, kernelSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationnode/2866401-nodewithsource?language=objc -func CNNSpatialNormalizationNode_NodeWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNSpatialNormalizationNode { - return CNNSpatialNormalizationNodeClass.NodeWithSourceKernelSize(sourceNode, kernelSize) -} - func (cc _CNNSpatialNormalizationNodeClass) Alloc() CNNSpatialNormalizationNode { rv := objc.Call[CNNSpatialNormalizationNode](cc, objc.Sel("alloc")) return rv diff --git a/macos/mps/cnn_sub_pixel_convolution_descriptor.gen.go b/macos/mps/cnn_sub_pixel_convolution_descriptor.gen.go index caaf9a59..8cf176e4 100644 --- a/macos/mps/cnn_sub_pixel_convolution_descriptor.gen.go +++ b/macos/mps/cnn_sub_pixel_convolution_descriptor.gen.go @@ -67,18 +67,6 @@ func CNNSubPixelConvolutionDescriptor_CnnConvolutionDescriptorWithKernelWidthKer return CNNSubPixelConvolutionDescriptorClass.CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannels(kernelWidth, kernelHeight, inputFeatureChannels, outputFeatureChannels) } -func (cc _CNNSubPixelConvolutionDescriptorClass) CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannelsNeuronFilter(kernelWidth uint, kernelHeight uint, inputFeatureChannels uint, outputFeatureChannels uint, neuronFilter ICNNNeuron) CNNSubPixelConvolutionDescriptor { - rv := objc.Call[CNNSubPixelConvolutionDescriptor](cc, objc.Sel("cnnConvolutionDescriptorWithKernelWidth:kernelHeight:inputFeatureChannels:outputFeatureChannels:neuronFilter:"), kernelWidth, kernelHeight, inputFeatureChannels, outputFeatureChannels, neuronFilter) - return rv -} - -// Creates a convolution descriptor with an optional neuron filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/1648876-cnnconvolutiondescriptorwithkern?language=objc -func CNNSubPixelConvolutionDescriptor_CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannelsNeuronFilter(kernelWidth uint, kernelHeight uint, inputFeatureChannels uint, outputFeatureChannels uint, neuronFilter ICNNNeuron) CNNSubPixelConvolutionDescriptor { - return CNNSubPixelConvolutionDescriptorClass.CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannelsNeuronFilter(kernelWidth, kernelHeight, inputFeatureChannels, outputFeatureChannels, neuronFilter) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnsubpixelconvolutiondescriptor/2875156-subpixelscalefactor?language=objc diff --git a/macos/mps/cnn_upsampling_bilinear.gen.go b/macos/mps/cnn_upsampling_bilinear.gen.go index b5d1168a..08f0f750 100644 --- a/macos/mps/cnn_upsampling_bilinear.gen.go +++ b/macos/mps/cnn_upsampling_bilinear.gen.go @@ -34,21 +34,6 @@ func CNNUpsamplingBilinearFrom(ptr unsafe.Pointer) CNNUpsamplingBilinear { } } -func (c_ CNNUpsamplingBilinear) InitWithDeviceIntegerScaleFactorXIntegerScaleFactorYAlignCorners(device metal.PDevice, integerScaleFactorX uint, integerScaleFactorY uint, alignCorners bool) CNNUpsamplingBilinear { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNUpsamplingBilinear](c_, objc.Sel("initWithDevice:integerScaleFactorX:integerScaleFactorY:alignCorners:"), po0, integerScaleFactorX, integerScaleFactorY, alignCorners) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilinear/2966661-initwithdevice?language=objc -func NewCNNUpsamplingBilinearWithDeviceIntegerScaleFactorXIntegerScaleFactorYAlignCorners(device metal.PDevice, integerScaleFactorX uint, integerScaleFactorY uint, alignCorners bool) CNNUpsamplingBilinear { - instance := CNNUpsamplingBilinearClass.Alloc().InitWithDeviceIntegerScaleFactorXIntegerScaleFactorYAlignCorners(device, integerScaleFactorX, integerScaleFactorY, alignCorners) - instance.Autorelease() - return instance -} - func (c_ CNNUpsamplingBilinear) InitWithDeviceIntegerScaleFactorXIntegerScaleFactorY(device metal.PDevice, integerScaleFactorX uint, integerScaleFactorY uint) CNNUpsamplingBilinear { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNUpsamplingBilinear](c_, objc.Sel("initWithDevice:integerScaleFactorX:integerScaleFactorY:"), po0, integerScaleFactorX, integerScaleFactorY) diff --git a/macos/mps/cnn_upsampling_bilinear_gradient_node.gen.go b/macos/mps/cnn_upsampling_bilinear_gradient_node.gen.go index 1f739880..a8dc5e06 100644 --- a/macos/mps/cnn_upsampling_bilinear_gradient_node.gen.go +++ b/macos/mps/cnn_upsampling_bilinear_gradient_node.gen.go @@ -18,8 +18,8 @@ type _CNNUpsamplingBilinearGradientNodeClass struct { // An interface definition for the [CNNUpsamplingBilinearGradientNode] class. type ICNNUpsamplingBilinearGradientNode interface { INNGradientFilterNode - ScaleFactorX() float64 ScaleFactorY() float64 + ScaleFactorX() float64 } // A representation of a gradient bilinear spatial upsampling filter. [Full Topic] @@ -83,16 +83,16 @@ func (c_ CNNUpsamplingBilinearGradientNode) Init() CNNUpsamplingBilinearGradient // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilineargradientnode/2948051-scalefactorx?language=objc -func (c_ CNNUpsamplingBilinearGradientNode) ScaleFactorX() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleFactorX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilineargradientnode/2948054-scalefactory?language=objc +func (c_ CNNUpsamplingBilinearGradientNode) ScaleFactorY() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleFactorY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilineargradientnode/2948054-scalefactory?language=objc -func (c_ CNNUpsamplingBilinearGradientNode) ScaleFactorY() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleFactorY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilineargradientnode/2948051-scalefactorx?language=objc +func (c_ CNNUpsamplingBilinearGradientNode) ScaleFactorX() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleFactorX")) return rv } diff --git a/macos/mps/cnn_upsampling_bilinear_node.gen.go b/macos/mps/cnn_upsampling_bilinear_node.gen.go index ee982711..8aa5977b 100644 --- a/macos/mps/cnn_upsampling_bilinear_node.gen.go +++ b/macos/mps/cnn_upsampling_bilinear_node.gen.go @@ -19,8 +19,8 @@ type _CNNUpsamplingBilinearNodeClass struct { type ICNNUpsamplingBilinearNode interface { INNFilterNode AlignCorners() bool - ScaleFactorX() float64 ScaleFactorY() float64 + ScaleFactorX() float64 } // A representation of a bilinear spatial upsampling filter. [Full Topic] @@ -36,18 +36,6 @@ func CNNUpsamplingBilinearNodeFrom(ptr unsafe.Pointer) CNNUpsamplingBilinearNode } } -func (cc _CNNUpsamplingBilinearNodeClass) NodeWithSourceIntegerScaleFactorXIntegerScaleFactorYAlignCorners(sourceNode INNImageNode, integerScaleFactorX uint, integerScaleFactorY uint, alignCorners bool) CNNUpsamplingBilinearNode { - rv := objc.Call[CNNUpsamplingBilinearNode](cc, objc.Sel("nodeWithSource:integerScaleFactorX:integerScaleFactorY:alignCorners:"), sourceNode, integerScaleFactorX, integerScaleFactorY, alignCorners) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilinearnode/2966689-nodewithsource?language=objc -func CNNUpsamplingBilinearNode_NodeWithSourceIntegerScaleFactorXIntegerScaleFactorYAlignCorners(sourceNode INNImageNode, integerScaleFactorX uint, integerScaleFactorY uint, alignCorners bool) CNNUpsamplingBilinearNode { - return CNNUpsamplingBilinearNodeClass.NodeWithSourceIntegerScaleFactorXIntegerScaleFactorYAlignCorners(sourceNode, integerScaleFactorX, integerScaleFactorY, alignCorners) -} - func (cc _CNNUpsamplingBilinearNodeClass) NodeWithSourceIntegerScaleFactorXIntegerScaleFactorY(sourceNode INNImageNode, integerScaleFactorX uint, integerScaleFactorY uint) CNNUpsamplingBilinearNode { rv := objc.Call[CNNUpsamplingBilinearNode](cc, objc.Sel("nodeWithSource:integerScaleFactorX:integerScaleFactorY:"), sourceNode, integerScaleFactorX, integerScaleFactorY) return rv @@ -60,20 +48,6 @@ func CNNUpsamplingBilinearNode_NodeWithSourceIntegerScaleFactorXIntegerScaleFact return CNNUpsamplingBilinearNodeClass.NodeWithSourceIntegerScaleFactorXIntegerScaleFactorY(sourceNode, integerScaleFactorX, integerScaleFactorY) } -func (c_ CNNUpsamplingBilinearNode) InitWithSourceIntegerScaleFactorXIntegerScaleFactorYAlignCorners(sourceNode INNImageNode, integerScaleFactorX uint, integerScaleFactorY uint, alignCorners bool) CNNUpsamplingBilinearNode { - rv := objc.Call[CNNUpsamplingBilinearNode](c_, objc.Sel("initWithSource:integerScaleFactorX:integerScaleFactorY:alignCorners:"), sourceNode, integerScaleFactorX, integerScaleFactorY, alignCorners) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilinearnode/2966688-initwithsource?language=objc -func NewCNNUpsamplingBilinearNodeWithSourceIntegerScaleFactorXIntegerScaleFactorYAlignCorners(sourceNode INNImageNode, integerScaleFactorX uint, integerScaleFactorY uint, alignCorners bool) CNNUpsamplingBilinearNode { - instance := CNNUpsamplingBilinearNodeClass.Alloc().InitWithSourceIntegerScaleFactorXIntegerScaleFactorYAlignCorners(sourceNode, integerScaleFactorX, integerScaleFactorY, alignCorners) - instance.Autorelease() - return instance -} - func (c_ CNNUpsamplingBilinearNode) InitWithSourceIntegerScaleFactorXIntegerScaleFactorY(sourceNode INNImageNode, integerScaleFactorX uint, integerScaleFactorY uint) CNNUpsamplingBilinearNode { rv := objc.Call[CNNUpsamplingBilinearNode](c_, objc.Sel("initWithSource:integerScaleFactorX:integerScaleFactorY:"), sourceNode, integerScaleFactorX, integerScaleFactorY) return rv @@ -118,16 +92,16 @@ func (c_ CNNUpsamplingBilinearNode) AlignCorners() bool { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilinearnode/2875153-scalefactorx?language=objc -func (c_ CNNUpsamplingBilinearNode) ScaleFactorX() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleFactorX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilinearnode/2875150-scalefactory?language=objc +func (c_ CNNUpsamplingBilinearNode) ScaleFactorY() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleFactorY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilinearnode/2875150-scalefactory?language=objc -func (c_ CNNUpsamplingBilinearNode) ScaleFactorY() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleFactorY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingbilinearnode/2875153-scalefactorx?language=objc +func (c_ CNNUpsamplingBilinearNode) ScaleFactorX() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleFactorX")) return rv } diff --git a/macos/mps/cnn_upsampling_gradient.gen.go b/macos/mps/cnn_upsampling_gradient.gen.go index ab366e0d..4fad5a2b 100644 --- a/macos/mps/cnn_upsampling_gradient.gen.go +++ b/macos/mps/cnn_upsampling_gradient.gen.go @@ -19,8 +19,8 @@ type _CNNUpsamplingGradientClass struct { // An interface definition for the [CNNUpsamplingGradient] class. type ICNNUpsamplingGradient interface { ICNNGradientKernel - ScaleFactorX() float64 ScaleFactorY() float64 + ScaleFactorX() float64 } // A gradient filter that upsamples an existing Metal Performance Shaders image. [Full Topic] @@ -88,16 +88,16 @@ func CNNUpsamplingGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal. // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplinggradient/2942630-scalefactorx?language=objc -func (c_ CNNUpsamplingGradient) ScaleFactorX() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleFactorX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplinggradient/2942628-scalefactory?language=objc +func (c_ CNNUpsamplingGradient) ScaleFactorY() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleFactorY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplinggradient/2942628-scalefactory?language=objc -func (c_ CNNUpsamplingGradient) ScaleFactorY() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleFactorY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplinggradient/2942630-scalefactorx?language=objc +func (c_ CNNUpsamplingGradient) ScaleFactorX() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleFactorX")) return rv } diff --git a/macos/mps/cnn_upsampling_nearest_gradient_node.gen.go b/macos/mps/cnn_upsampling_nearest_gradient_node.gen.go index b28dc4bf..69bd6908 100644 --- a/macos/mps/cnn_upsampling_nearest_gradient_node.gen.go +++ b/macos/mps/cnn_upsampling_nearest_gradient_node.gen.go @@ -18,8 +18,8 @@ type _CNNUpsamplingNearestGradientNodeClass struct { // An interface definition for the [CNNUpsamplingNearestGradientNode] class. type ICNNUpsamplingNearestGradientNode interface { INNGradientFilterNode - ScaleFactorX() float64 ScaleFactorY() float64 + ScaleFactorX() float64 } // A representation of a gradient nearest spatial upsampling filter. [Full Topic] @@ -83,16 +83,16 @@ func (c_ CNNUpsamplingNearestGradientNode) Init() CNNUpsamplingNearestGradientNo // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingnearestgradientnode/2948024-scalefactorx?language=objc -func (c_ CNNUpsamplingNearestGradientNode) ScaleFactorX() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleFactorX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingnearestgradientnode/2948035-scalefactory?language=objc +func (c_ CNNUpsamplingNearestGradientNode) ScaleFactorY() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleFactorY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingnearestgradientnode/2948035-scalefactory?language=objc -func (c_ CNNUpsamplingNearestGradientNode) ScaleFactorY() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleFactorY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingnearestgradientnode/2948024-scalefactorx?language=objc +func (c_ CNNUpsamplingNearestGradientNode) ScaleFactorX() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleFactorX")) return rv } diff --git a/macos/mps/cnn_upsampling_nearest_node.gen.go b/macos/mps/cnn_upsampling_nearest_node.gen.go index aaef7067..11902480 100644 --- a/macos/mps/cnn_upsampling_nearest_node.gen.go +++ b/macos/mps/cnn_upsampling_nearest_node.gen.go @@ -18,8 +18,8 @@ type _CNNUpsamplingNearestNodeClass struct { // An interface definition for the [CNNUpsamplingNearestNode] class. type ICNNUpsamplingNearestNode interface { INNFilterNode - ScaleFactorX() float64 ScaleFactorY() float64 + ScaleFactorX() float64 } // A representation of a nearest spatial upsampling filter. [Full Topic] @@ -83,16 +83,16 @@ func (c_ CNNUpsamplingNearestNode) Init() CNNUpsamplingNearestNode { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingnearestnode/2875209-scalefactorx?language=objc -func (c_ CNNUpsamplingNearestNode) ScaleFactorX() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleFactorX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingnearestnode/2875155-scalefactory?language=objc +func (c_ CNNUpsamplingNearestNode) ScaleFactorY() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleFactorY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingnearestnode/2875155-scalefactory?language=objc -func (c_ CNNUpsamplingNearestNode) ScaleFactorY() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleFactorY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnupsamplingnearestnode/2875209-scalefactorx?language=objc +func (c_ CNNUpsamplingNearestNode) ScaleFactorX() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleFactorX")) return rv } diff --git a/macos/mps/cnnyolo_loss.gen.go b/macos/mps/cnnyolo_loss.gen.go index d2972c09..ed2afbb7 100644 --- a/macos/mps/cnnyolo_loss.gen.go +++ b/macos/mps/cnnyolo_loss.gen.go @@ -22,27 +22,23 @@ type ICNNYOLOLoss interface { ICNNKernel EncodeBatchToCommandBufferSourceImagesLabels(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, labels *foundation.Array) *foundation.Array EncodeBatchToCommandBufferObjectSourceImagesLabels(commandBufferObject objc.IObject, sourceImage *foundation.Array, labels *foundation.Array) *foundation.Array - EncodeToCommandBufferSourceImageLabelsDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, labels ICNNLossLabels, destinationImage IImage) - EncodeToCommandBufferObjectSourceImageLabelsDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, labels ICNNLossLabels, destinationImage IImage) - EncodeBatchToCommandBufferSourceImagesLabelsDestinationImages(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, labels *foundation.Array, destinationImage *foundation.Array) - EncodeBatchToCommandBufferObjectSourceImagesLabelsDestinationImages(commandBufferObject objc.IObject, sourceImage *foundation.Array, labels *foundation.Array, destinationImage *foundation.Array) EncodeToCommandBufferSourceImageLabels(commandBuffer metal.PCommandBuffer, sourceImage IImage, labels ICNNLossLabels) Image EncodeToCommandBufferObjectSourceImageLabels(commandBufferObject objc.IObject, sourceImage IImage, labels ICNNLossLabels) Image - NumberOfAnchorBoxes() uint - ScaleNoObject() float32 - ScaleObject() float32 - LossWH() CNNLoss - ScaleWH() float32 LossClasses() CNNLoss - AnchorBoxes() []byte - MaxIOUForObjectAbsence() float32 + ScaleWH() float32 + MinIOUForObjectPresence() float32 ScaleXY() float32 + ScaleObject() float32 + MaxIOUForObjectAbsence() float32 + AnchorBoxes() []byte ReductionType() CNNReductionType - LossXY() CNNLoss ReduceAcrossBatch() bool ScaleClass() float32 LossConfidence() CNNLoss - MinIOUForObjectPresence() float32 + ScaleNoObject() float32 + LossXY() CNNLoss + LossWH() CNNLoss + NumberOfAnchorBoxes() uint } // A kernel that computes the YOLO loss and loss gradient between specified predictions and labels. [Full Topic] @@ -140,36 +136,6 @@ func (c_ CNNYOLOLoss) EncodeBatchToCommandBufferObjectSourceImagesLabels(command return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976479-encodetocommandbuffer?language=objc -func (c_ CNNYOLOLoss) EncodeToCommandBufferSourceImageLabelsDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, labels ICNNLossLabels, destinationImage IImage) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:labels:destinationImage:"), po0, sourceImage, labels, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976479-encodetocommandbuffer?language=objc -func (c_ CNNYOLOLoss) EncodeToCommandBufferObjectSourceImageLabelsDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, labels ICNNLossLabels, destinationImage IImage) { - objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:labels:destinationImage:"), commandBufferObject, sourceImage, labels, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976477-encodebatchtocommandbuffer?language=objc -func (c_ CNNYOLOLoss) EncodeBatchToCommandBufferSourceImagesLabelsDestinationImages(commandBuffer metal.PCommandBuffer, sourceImage *foundation.Array, labels *foundation.Array, destinationImage *foundation.Array) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:labels:destinationImages:"), po0, sourceImage, labels, destinationImage) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976477-encodebatchtocommandbuffer?language=objc -func (c_ CNNYOLOLoss) EncodeBatchToCommandBufferObjectSourceImagesLabelsDestinationImages(commandBufferObject objc.IObject, sourceImage *foundation.Array, labels *foundation.Array, destinationImage *foundation.Array) { - objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:labels:destinationImages:"), commandBufferObject, sourceImage, labels, destinationImage) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976478-encodetocommandbuffer?language=objc @@ -189,49 +155,49 @@ func (c_ CNNYOLOLoss) EncodeToCommandBufferObjectSourceImageLabels(commandBuffer // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976488-numberofanchorboxes?language=objc -func (c_ CNNYOLOLoss) NumberOfAnchorBoxes() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfAnchorBoxes")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976482-lossclasses?language=objc +func (c_ CNNYOLOLoss) LossClasses() CNNLoss { + rv := objc.Call[CNNLoss](c_, objc.Sel("lossClasses")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976491-scalenoobject?language=objc -func (c_ CNNYOLOLoss) ScaleNoObject() float32 { - rv := objc.Call[float32](c_, objc.Sel("scaleNoObject")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976493-scalewh?language=objc +func (c_ CNNYOLOLoss) ScaleWH() float32 { + rv := objc.Call[float32](c_, objc.Sel("scaleWH")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976492-scaleobject?language=objc -func (c_ CNNYOLOLoss) ScaleObject() float32 { - rv := objc.Call[float32](c_, objc.Sel("scaleObject")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976487-miniouforobjectpresence?language=objc +func (c_ CNNYOLOLoss) MinIOUForObjectPresence() float32 { + rv := objc.Call[float32](c_, objc.Sel("minIOUForObjectPresence")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976484-losswh?language=objc -func (c_ CNNYOLOLoss) LossWH() CNNLoss { - rv := objc.Call[CNNLoss](c_, objc.Sel("lossWH")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976494-scalexy?language=objc +func (c_ CNNYOLOLoss) ScaleXY() float32 { + rv := objc.Call[float32](c_, objc.Sel("scaleXY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976493-scalewh?language=objc -func (c_ CNNYOLOLoss) ScaleWH() float32 { - rv := objc.Call[float32](c_, objc.Sel("scaleWH")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976492-scaleobject?language=objc +func (c_ CNNYOLOLoss) ScaleObject() float32 { + rv := objc.Call[float32](c_, objc.Sel("scaleObject")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976482-lossclasses?language=objc -func (c_ CNNYOLOLoss) LossClasses() CNNLoss { - rv := objc.Call[CNNLoss](c_, objc.Sel("lossClasses")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976486-maxiouforobjectabsence?language=objc +func (c_ CNNYOLOLoss) MaxIOUForObjectAbsence() float32 { + rv := objc.Call[float32](c_, objc.Sel("maxIOUForObjectAbsence")) return rv } @@ -245,64 +211,64 @@ func (c_ CNNYOLOLoss) AnchorBoxes() []byte { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976486-maxiouforobjectabsence?language=objc -func (c_ CNNYOLOLoss) MaxIOUForObjectAbsence() float32 { - rv := objc.Call[float32](c_, objc.Sel("maxIOUForObjectAbsence")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976489-reductiontype?language=objc +func (c_ CNNYOLOLoss) ReductionType() CNNReductionType { + rv := objc.Call[CNNReductionType](c_, objc.Sel("reductionType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976494-scalexy?language=objc -func (c_ CNNYOLOLoss) ScaleXY() float32 { - rv := objc.Call[float32](c_, objc.Sel("scaleXY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/3547983-reduceacrossbatch?language=objc +func (c_ CNNYOLOLoss) ReduceAcrossBatch() bool { + rv := objc.Call[bool](c_, objc.Sel("reduceAcrossBatch")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976489-reductiontype?language=objc -func (c_ CNNYOLOLoss) ReductionType() CNNReductionType { - rv := objc.Call[CNNReductionType](c_, objc.Sel("reductionType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976490-scaleclass?language=objc +func (c_ CNNYOLOLoss) ScaleClass() float32 { + rv := objc.Call[float32](c_, objc.Sel("scaleClass")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976485-lossxy?language=objc -func (c_ CNNYOLOLoss) LossXY() CNNLoss { - rv := objc.Call[CNNLoss](c_, objc.Sel("lossXY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976483-lossconfidence?language=objc +func (c_ CNNYOLOLoss) LossConfidence() CNNLoss { + rv := objc.Call[CNNLoss](c_, objc.Sel("lossConfidence")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/3547983-reduceacrossbatch?language=objc -func (c_ CNNYOLOLoss) ReduceAcrossBatch() bool { - rv := objc.Call[bool](c_, objc.Sel("reduceAcrossBatch")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976491-scalenoobject?language=objc +func (c_ CNNYOLOLoss) ScaleNoObject() float32 { + rv := objc.Call[float32](c_, objc.Sel("scaleNoObject")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976490-scaleclass?language=objc -func (c_ CNNYOLOLoss) ScaleClass() float32 { - rv := objc.Call[float32](c_, objc.Sel("scaleClass")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976485-lossxy?language=objc +func (c_ CNNYOLOLoss) LossXY() CNNLoss { + rv := objc.Call[CNNLoss](c_, objc.Sel("lossXY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976483-lossconfidence?language=objc -func (c_ CNNYOLOLoss) LossConfidence() CNNLoss { - rv := objc.Call[CNNLoss](c_, objc.Sel("lossConfidence")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976484-losswh?language=objc +func (c_ CNNYOLOLoss) LossWH() CNNLoss { + rv := objc.Call[CNNLoss](c_, objc.Sel("lossWH")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976487-miniouforobjectpresence?language=objc -func (c_ CNNYOLOLoss) MinIOUForObjectPresence() float32 { - rv := objc.Call[float32](c_, objc.Sel("minIOUForObjectPresence")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976488-numberofanchorboxes?language=objc +func (c_ CNNYOLOLoss) NumberOfAnchorBoxes() uint { + rv := objc.Call[uint](c_, objc.Sel("numberOfAnchorBoxes")) return rv } diff --git a/macos/mps/cnnyolo_loss_descriptor.gen.go b/macos/mps/cnnyolo_loss_descriptor.gen.go index 27730e3a..c954657a 100644 --- a/macos/mps/cnnyolo_loss_descriptor.gen.go +++ b/macos/mps/cnnyolo_loss_descriptor.gen.go @@ -18,38 +18,38 @@ type _CNNYOLOLossDescriptorClass struct { // An interface definition for the [CNNYOLOLossDescriptor] class. type ICNNYOLOLossDescriptor interface { objc.IObject - ConfidenceLossDescriptor() CNNLossDescriptor - SetConfidenceLossDescriptor(value ICNNLossDescriptor) - XYLossDescriptor() CNNLossDescriptor - SetXYLossDescriptor(value ICNNLossDescriptor) - ScaleXY() float32 - SetScaleXY(value float32) ScaleWH() float32 SetScaleWH(value float32) - MaxIOUForObjectAbsence() float32 - SetMaxIOUForObjectAbsence(value float32) - ScaleClass() float32 - SetScaleClass(value float32) MinIOUForObjectPresence() float32 SetMinIOUForObjectPresence(value float32) + ScaleXY() float32 + SetScaleXY(value float32) ScaleObject() float32 SetScaleObject(value float32) + MaxIOUForObjectAbsence() float32 + SetMaxIOUForObjectAbsence(value float32) AnchorBoxes() []byte SetAnchorBoxes(value []byte) - NumberOfAnchorBoxes() uint - SetNumberOfAnchorBoxes(value uint) - WHLossDescriptor() CNNLossDescriptor - SetWHLossDescriptor(value ICNNLossDescriptor) + Rescore() bool + SetRescore(value bool) ReductionType() CNNReductionType SetReductionType(value CNNReductionType) - ScaleNoObject() float32 - SetScaleNoObject(value float32) ReduceAcrossBatch() bool SetReduceAcrossBatch(value bool) - Rescore() bool - SetRescore(value bool) + ConfidenceLossDescriptor() CNNLossDescriptor + SetConfidenceLossDescriptor(value ICNNLossDescriptor) + WHLossDescriptor() CNNLossDescriptor + SetWHLossDescriptor(value ICNNLossDescriptor) + ScaleClass() float32 + SetScaleClass(value float32) + XYLossDescriptor() CNNLossDescriptor + SetXYLossDescriptor(value ICNNLossDescriptor) + ScaleNoObject() float32 + SetScaleNoObject(value float32) ClassesLossDescriptor() CNNLossDescriptor SetClassesLossDescriptor(value ICNNLossDescriptor) + NumberOfAnchorBoxes() uint + SetNumberOfAnchorBoxes(value uint) } // An object that specifies properties used by a YOLO loss kernel. [Full Topic] @@ -102,32 +102,32 @@ func CNNYOLOLossDescriptor_CnnLossDescriptorWithXYLossTypeWHLossTypeConfidenceLo // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976501-confidencelossdescriptor?language=objc -func (c_ CNNYOLOLossDescriptor) ConfidenceLossDescriptor() CNNLossDescriptor { - rv := objc.Call[CNNLossDescriptor](c_, objc.Sel("confidenceLossDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976510-scalewh?language=objc +func (c_ CNNYOLOLossDescriptor) ScaleWH() float32 { + rv := objc.Call[float32](c_, objc.Sel("scaleWH")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976501-confidencelossdescriptor?language=objc -func (c_ CNNYOLOLossDescriptor) SetConfidenceLossDescriptor(value ICNNLossDescriptor) { - objc.Call[objc.Void](c_, objc.Sel("setConfidenceLossDescriptor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976510-scalewh?language=objc +func (c_ CNNYOLOLossDescriptor) SetScaleWH(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setScaleWH:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976497-xylossdescriptor?language=objc -func (c_ CNNYOLOLossDescriptor) XYLossDescriptor() CNNLossDescriptor { - rv := objc.Call[CNNLossDescriptor](c_, objc.Sel("XYLossDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976503-miniouforobjectpresence?language=objc +func (c_ CNNYOLOLossDescriptor) MinIOUForObjectPresence() float32 { + rv := objc.Call[float32](c_, objc.Sel("minIOUForObjectPresence")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976497-xylossdescriptor?language=objc -func (c_ CNNYOLOLossDescriptor) SetXYLossDescriptor(value ICNNLossDescriptor) { - objc.Call[objc.Void](c_, objc.Sel("setXYLossDescriptor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976503-miniouforobjectpresence?language=objc +func (c_ CNNYOLOLossDescriptor) SetMinIOUForObjectPresence(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setMinIOUForObjectPresence:"), value) } // [Full Topic] @@ -147,17 +147,17 @@ func (c_ CNNYOLOLossDescriptor) SetScaleXY(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976510-scalewh?language=objc -func (c_ CNNYOLOLossDescriptor) ScaleWH() float32 { - rv := objc.Call[float32](c_, objc.Sel("scaleWH")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976509-scaleobject?language=objc +func (c_ CNNYOLOLossDescriptor) ScaleObject() float32 { + rv := objc.Call[float32](c_, objc.Sel("scaleObject")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976510-scalewh?language=objc -func (c_ CNNYOLOLossDescriptor) SetScaleWH(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setScaleWH:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976509-scaleobject?language=objc +func (c_ CNNYOLOLossDescriptor) SetScaleObject(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setScaleObject:"), value) } // [Full Topic] @@ -177,77 +177,77 @@ func (c_ CNNYOLOLossDescriptor) SetMaxIOUForObjectAbsence(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976507-scaleclass?language=objc -func (c_ CNNYOLOLossDescriptor) ScaleClass() float32 { - rv := objc.Call[float32](c_, objc.Sel("scaleClass")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976498-anchorboxes?language=objc +func (c_ CNNYOLOLossDescriptor) AnchorBoxes() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("anchorBoxes")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976507-scaleclass?language=objc -func (c_ CNNYOLOLossDescriptor) SetScaleClass(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setScaleClass:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976498-anchorboxes?language=objc +func (c_ CNNYOLOLossDescriptor) SetAnchorBoxes(value []byte) { + objc.Call[objc.Void](c_, objc.Sel("setAnchorBoxes:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976503-miniouforobjectpresence?language=objc -func (c_ CNNYOLOLossDescriptor) MinIOUForObjectPresence() float32 { - rv := objc.Call[float32](c_, objc.Sel("minIOUForObjectPresence")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976506-rescore?language=objc +func (c_ CNNYOLOLossDescriptor) Rescore() bool { + rv := objc.Call[bool](c_, objc.Sel("rescore")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976503-miniouforobjectpresence?language=objc -func (c_ CNNYOLOLossDescriptor) SetMinIOUForObjectPresence(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setMinIOUForObjectPresence:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976506-rescore?language=objc +func (c_ CNNYOLOLossDescriptor) SetRescore(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setRescore:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976509-scaleobject?language=objc -func (c_ CNNYOLOLossDescriptor) ScaleObject() float32 { - rv := objc.Call[float32](c_, objc.Sel("scaleObject")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976505-reductiontype?language=objc +func (c_ CNNYOLOLossDescriptor) ReductionType() CNNReductionType { + rv := objc.Call[CNNReductionType](c_, objc.Sel("reductionType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976509-scaleobject?language=objc -func (c_ CNNYOLOLossDescriptor) SetScaleObject(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setScaleObject:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976505-reductiontype?language=objc +func (c_ CNNYOLOLossDescriptor) SetReductionType(value CNNReductionType) { + objc.Call[objc.Void](c_, objc.Sel("setReductionType:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976498-anchorboxes?language=objc -func (c_ CNNYOLOLossDescriptor) AnchorBoxes() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("anchorBoxes")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/3547984-reduceacrossbatch?language=objc +func (c_ CNNYOLOLossDescriptor) ReduceAcrossBatch() bool { + rv := objc.Call[bool](c_, objc.Sel("reduceAcrossBatch")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976498-anchorboxes?language=objc -func (c_ CNNYOLOLossDescriptor) SetAnchorBoxes(value []byte) { - objc.Call[objc.Void](c_, objc.Sel("setAnchorBoxes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/3547984-reduceacrossbatch?language=objc +func (c_ CNNYOLOLossDescriptor) SetReduceAcrossBatch(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setReduceAcrossBatch:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976504-numberofanchorboxes?language=objc -func (c_ CNNYOLOLossDescriptor) NumberOfAnchorBoxes() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfAnchorBoxes")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976501-confidencelossdescriptor?language=objc +func (c_ CNNYOLOLossDescriptor) ConfidenceLossDescriptor() CNNLossDescriptor { + rv := objc.Call[CNNLossDescriptor](c_, objc.Sel("confidenceLossDescriptor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976504-numberofanchorboxes?language=objc -func (c_ CNNYOLOLossDescriptor) SetNumberOfAnchorBoxes(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setNumberOfAnchorBoxes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976501-confidencelossdescriptor?language=objc +func (c_ CNNYOLOLossDescriptor) SetConfidenceLossDescriptor(value ICNNLossDescriptor) { + objc.Call[objc.Void](c_, objc.Sel("setConfidenceLossDescriptor:"), value) } // [Full Topic] @@ -267,75 +267,75 @@ func (c_ CNNYOLOLossDescriptor) SetWHLossDescriptor(value ICNNLossDescriptor) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976505-reductiontype?language=objc -func (c_ CNNYOLOLossDescriptor) ReductionType() CNNReductionType { - rv := objc.Call[CNNReductionType](c_, objc.Sel("reductionType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976507-scaleclass?language=objc +func (c_ CNNYOLOLossDescriptor) ScaleClass() float32 { + rv := objc.Call[float32](c_, objc.Sel("scaleClass")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976505-reductiontype?language=objc -func (c_ CNNYOLOLossDescriptor) SetReductionType(value CNNReductionType) { - objc.Call[objc.Void](c_, objc.Sel("setReductionType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976507-scaleclass?language=objc +func (c_ CNNYOLOLossDescriptor) SetScaleClass(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setScaleClass:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976508-scalenoobject?language=objc -func (c_ CNNYOLOLossDescriptor) ScaleNoObject() float32 { - rv := objc.Call[float32](c_, objc.Sel("scaleNoObject")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976497-xylossdescriptor?language=objc +func (c_ CNNYOLOLossDescriptor) XYLossDescriptor() CNNLossDescriptor { + rv := objc.Call[CNNLossDescriptor](c_, objc.Sel("XYLossDescriptor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976508-scalenoobject?language=objc -func (c_ CNNYOLOLossDescriptor) SetScaleNoObject(value float32) { - objc.Call[objc.Void](c_, objc.Sel("setScaleNoObject:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976497-xylossdescriptor?language=objc +func (c_ CNNYOLOLossDescriptor) SetXYLossDescriptor(value ICNNLossDescriptor) { + objc.Call[objc.Void](c_, objc.Sel("setXYLossDescriptor:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/3547984-reduceacrossbatch?language=objc -func (c_ CNNYOLOLossDescriptor) ReduceAcrossBatch() bool { - rv := objc.Call[bool](c_, objc.Sel("reduceAcrossBatch")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976508-scalenoobject?language=objc +func (c_ CNNYOLOLossDescriptor) ScaleNoObject() float32 { + rv := objc.Call[float32](c_, objc.Sel("scaleNoObject")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/3547984-reduceacrossbatch?language=objc -func (c_ CNNYOLOLossDescriptor) SetReduceAcrossBatch(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setReduceAcrossBatch:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976508-scalenoobject?language=objc +func (c_ CNNYOLOLossDescriptor) SetScaleNoObject(value float32) { + objc.Call[objc.Void](c_, objc.Sel("setScaleNoObject:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976506-rescore?language=objc -func (c_ CNNYOLOLossDescriptor) Rescore() bool { - rv := objc.Call[bool](c_, objc.Sel("rescore")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976499-classeslossdescriptor?language=objc +func (c_ CNNYOLOLossDescriptor) ClassesLossDescriptor() CNNLossDescriptor { + rv := objc.Call[CNNLossDescriptor](c_, objc.Sel("classesLossDescriptor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976506-rescore?language=objc -func (c_ CNNYOLOLossDescriptor) SetRescore(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setRescore:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976499-classeslossdescriptor?language=objc +func (c_ CNNYOLOLossDescriptor) SetClassesLossDescriptor(value ICNNLossDescriptor) { + objc.Call[objc.Void](c_, objc.Sel("setClassesLossDescriptor:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976499-classeslossdescriptor?language=objc -func (c_ CNNYOLOLossDescriptor) ClassesLossDescriptor() CNNLossDescriptor { - rv := objc.Call[CNNLossDescriptor](c_, objc.Sel("classesLossDescriptor")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976504-numberofanchorboxes?language=objc +func (c_ CNNYOLOLossDescriptor) NumberOfAnchorBoxes() uint { + rv := objc.Call[uint](c_, objc.Sel("numberOfAnchorBoxes")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976499-classeslossdescriptor?language=objc -func (c_ CNNYOLOLossDescriptor) SetClassesLossDescriptor(value ICNNLossDescriptor) { - objc.Call[objc.Void](c_, objc.Sel("setClassesLossDescriptor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976504-numberofanchorboxes?language=objc +func (c_ CNNYOLOLossDescriptor) SetNumberOfAnchorBoxes(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setNumberOfAnchorBoxes:"), value) } diff --git a/macos/mps/command_buffer.gen.go b/macos/mps/command_buffer.gen.go index 2f0ff0f0..73c62062 100644 --- a/macos/mps/command_buffer.gen.go +++ b/macos/mps/command_buffer.gen.go @@ -19,15 +19,15 @@ type _CommandBufferClass struct { // An interface definition for the [CommandBuffer] class. type ICommandBuffer interface { objc.IObject - CommitAndContinue() PrefetchHeapForWorkloadSize(size uint) + CommitAndContinue() + RootCommandBuffer() metal.CommandBufferObject CommandBuffer() metal.CommandBufferObject Predicate() Predicate SetPredicate(value IPredicate) HeapProvider() HeapProviderObject SetHeapProvider(value PHeapProvider) SetHeapProviderObject(valueObject objc.IObject) - RootCommandBuffer() metal.CommandBufferObject } // [Full Topic] @@ -104,6 +104,13 @@ func (c_ CommandBuffer) Init() CommandBuffer { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscommandbuffer/3229858-prefetchheapforworkloadsize?language=objc +func (c_ CommandBuffer) PrefetchHeapForWorkloadSize(size uint) { + objc.Call[objc.Void](c_, objc.Sel("prefetchHeapForWorkloadSize:"), size) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscommandbuffer/3152524-commitandcontinue?language=objc @@ -113,9 +120,10 @@ func (c_ CommandBuffer) CommitAndContinue() { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscommandbuffer/3229858-prefetchheapforworkloadsize?language=objc -func (c_ CommandBuffer) PrefetchHeapForWorkloadSize(size uint) { - objc.Call[objc.Void](c_, objc.Sel("prefetchHeapForWorkloadSize:"), size) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscommandbuffer/3166772-rootcommandbuffer?language=objc +func (c_ CommandBuffer) RootCommandBuffer() metal.CommandBufferObject { + rv := objc.Call[metal.CommandBufferObject](c_, objc.Sel("rootCommandBuffer")) + return rv } // [Full Topic] @@ -163,11 +171,3 @@ func (c_ CommandBuffer) SetHeapProvider(value PHeapProvider) { func (c_ CommandBuffer) SetHeapProviderObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setHeapProvider:"), valueObject) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscommandbuffer/3166772-rootcommandbuffer?language=objc -func (c_ CommandBuffer) RootCommandBuffer() metal.CommandBufferObject { - rv := objc.Call[metal.CommandBufferObject](c_, objc.Sel("rootCommandBuffer")) - return rv -} diff --git a/macos/mps/gru_descriptor.gen.go b/macos/mps/gru_descriptor.gen.go index 26415667..95de1bd5 100644 --- a/macos/mps/gru_descriptor.gen.go +++ b/macos/mps/gru_descriptor.gen.go @@ -18,31 +18,31 @@ type _GRUDescriptorClass struct { // An interface definition for the [GRUDescriptor] class. type IGRUDescriptor interface { IRNNDescriptor - FlipOutputGates() bool - SetFlipOutputGates(value bool) - OutputGateRecurrentWeights() CNNConvolutionDataSourceObject - SetOutputGateRecurrentWeights(value PCNNConvolutionDataSource) - SetOutputGateRecurrentWeightsObject(valueObject objc.IObject) - OutputGateInputGateWeights() CNNConvolutionDataSourceObject - SetOutputGateInputGateWeights(value PCNNConvolutionDataSource) - SetOutputGateInputGateWeightsObject(valueObject objc.IObject) - OutputGateInputWeights() CNNConvolutionDataSourceObject - SetOutputGateInputWeights(value PCNNConvolutionDataSource) - SetOutputGateInputWeightsObject(valueObject objc.IObject) InputGateInputWeights() CNNConvolutionDataSourceObject SetInputGateInputWeights(value PCNNConvolutionDataSource) SetInputGateInputWeightsObject(valueObject objc.IObject) RecurrentGateRecurrentWeights() CNNConvolutionDataSourceObject SetRecurrentGateRecurrentWeights(value PCNNConvolutionDataSource) SetRecurrentGateRecurrentWeightsObject(valueObject objc.IObject) + OutputGateInputGateWeights() CNNConvolutionDataSourceObject + SetOutputGateInputGateWeights(value PCNNConvolutionDataSource) + SetOutputGateInputGateWeightsObject(valueObject objc.IObject) + GatePnormValue() float32 + SetGatePnormValue(value float32) + OutputGateRecurrentWeights() CNNConvolutionDataSourceObject + SetOutputGateRecurrentWeights(value PCNNConvolutionDataSource) + SetOutputGateRecurrentWeightsObject(valueObject objc.IObject) + FlipOutputGates() bool + SetFlipOutputGates(value bool) RecurrentGateInputWeights() CNNConvolutionDataSourceObject SetRecurrentGateInputWeights(value PCNNConvolutionDataSource) SetRecurrentGateInputWeightsObject(valueObject objc.IObject) - GatePnormValue() float32 - SetGatePnormValue(value float32) InputGateRecurrentWeights() CNNConvolutionDataSourceObject SetInputGateRecurrentWeights(value PCNNConvolutionDataSource) SetInputGateRecurrentWeightsObject(valueObject objc.IObject) + OutputGateInputWeights() CNNConvolutionDataSourceObject + SetOutputGateInputWeights(value PCNNConvolutionDataSource) + SetOutputGateInputWeightsObject(valueObject objc.IObject) } // A description of a gated recurrent unit block or layer. [Full Topic] @@ -92,40 +92,48 @@ func (g_ GRUDescriptor) Init() GRUDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2878271-flipoutputgates?language=objc -func (g_ GRUDescriptor) FlipOutputGates() bool { - rv := objc.Call[bool](g_, objc.Sel("flipOutputGates")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865690-inputgateinputweights?language=objc +func (g_ GRUDescriptor) InputGateInputWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("inputGateInputWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2878271-flipoutputgates?language=objc -func (g_ GRUDescriptor) SetFlipOutputGates(value bool) { - objc.Call[objc.Void](g_, objc.Sel("setFlipOutputGates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865690-inputgateinputweights?language=objc +func (g_ GRUDescriptor) SetInputGateInputWeights(value PCNNConvolutionDataSource) { + po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) + objc.Call[objc.Void](g_, objc.Sel("setInputGateInputWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865699-outputgaterecurrentweights?language=objc -func (g_ GRUDescriptor) OutputGateRecurrentWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("outputGateRecurrentWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865690-inputgateinputweights?language=objc +func (g_ GRUDescriptor) SetInputGateInputWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](g_, objc.Sel("setInputGateInputWeights:"), valueObject) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865695-recurrentgaterecurrentweights?language=objc +func (g_ GRUDescriptor) RecurrentGateRecurrentWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("recurrentGateRecurrentWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865699-outputgaterecurrentweights?language=objc -func (g_ GRUDescriptor) SetOutputGateRecurrentWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865695-recurrentgaterecurrentweights?language=objc +func (g_ GRUDescriptor) SetRecurrentGateRecurrentWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](g_, objc.Sel("setOutputGateRecurrentWeights:"), po0) + objc.Call[objc.Void](g_, objc.Sel("setRecurrentGateRecurrentWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865699-outputgaterecurrentweights?language=objc -func (g_ GRUDescriptor) SetOutputGateRecurrentWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](g_, objc.Sel("setOutputGateRecurrentWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865695-recurrentgaterecurrentweights?language=objc +func (g_ GRUDescriptor) SetRecurrentGateRecurrentWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](g_, objc.Sel("setRecurrentGateRecurrentWeights:"), valueObject) } // [Full Topic] @@ -153,71 +161,55 @@ func (g_ GRUDescriptor) SetOutputGateInputGateWeightsObject(valueObject objc.IOb // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865722-outputgateinputweights?language=objc -func (g_ GRUDescriptor) OutputGateInputWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("outputGateInputWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2873332-gatepnormvalue?language=objc +func (g_ GRUDescriptor) GatePnormValue() float32 { + rv := objc.Call[float32](g_, objc.Sel("gatePnormValue")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865722-outputgateinputweights?language=objc -func (g_ GRUDescriptor) SetOutputGateInputWeights(value PCNNConvolutionDataSource) { - po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](g_, objc.Sel("setOutputGateInputWeights:"), po0) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865722-outputgateinputweights?language=objc -func (g_ GRUDescriptor) SetOutputGateInputWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](g_, objc.Sel("setOutputGateInputWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2873332-gatepnormvalue?language=objc +func (g_ GRUDescriptor) SetGatePnormValue(value float32) { + objc.Call[objc.Void](g_, objc.Sel("setGatePnormValue:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865690-inputgateinputweights?language=objc -func (g_ GRUDescriptor) InputGateInputWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("inputGateInputWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865699-outputgaterecurrentweights?language=objc +func (g_ GRUDescriptor) OutputGateRecurrentWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("outputGateRecurrentWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865690-inputgateinputweights?language=objc -func (g_ GRUDescriptor) SetInputGateInputWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865699-outputgaterecurrentweights?language=objc +func (g_ GRUDescriptor) SetOutputGateRecurrentWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](g_, objc.Sel("setInputGateInputWeights:"), po0) + objc.Call[objc.Void](g_, objc.Sel("setOutputGateRecurrentWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865690-inputgateinputweights?language=objc -func (g_ GRUDescriptor) SetInputGateInputWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](g_, objc.Sel("setInputGateInputWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865699-outputgaterecurrentweights?language=objc +func (g_ GRUDescriptor) SetOutputGateRecurrentWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](g_, objc.Sel("setOutputGateRecurrentWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865695-recurrentgaterecurrentweights?language=objc -func (g_ GRUDescriptor) RecurrentGateRecurrentWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("recurrentGateRecurrentWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2878271-flipoutputgates?language=objc +func (g_ GRUDescriptor) FlipOutputGates() bool { + rv := objc.Call[bool](g_, objc.Sel("flipOutputGates")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865695-recurrentgaterecurrentweights?language=objc -func (g_ GRUDescriptor) SetRecurrentGateRecurrentWeights(value PCNNConvolutionDataSource) { - po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](g_, objc.Sel("setRecurrentGateRecurrentWeights:"), po0) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865695-recurrentgaterecurrentweights?language=objc -func (g_ GRUDescriptor) SetRecurrentGateRecurrentWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](g_, objc.Sel("setRecurrentGateRecurrentWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2878271-flipoutputgates?language=objc +func (g_ GRUDescriptor) SetFlipOutputGates(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setFlipOutputGates:"), value) } // [Full Topic] @@ -245,38 +237,46 @@ func (g_ GRUDescriptor) SetRecurrentGateInputWeightsObject(valueObject objc.IObj // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2873332-gatepnormvalue?language=objc -func (g_ GRUDescriptor) GatePnormValue() float32 { - rv := objc.Call[float32](g_, objc.Sel("gatePnormValue")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865724-inputgaterecurrentweights?language=objc +func (g_ GRUDescriptor) InputGateRecurrentWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("inputGateRecurrentWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2873332-gatepnormvalue?language=objc -func (g_ GRUDescriptor) SetGatePnormValue(value float32) { - objc.Call[objc.Void](g_, objc.Sel("setGatePnormValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865724-inputgaterecurrentweights?language=objc +func (g_ GRUDescriptor) SetInputGateRecurrentWeights(value PCNNConvolutionDataSource) { + po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) + objc.Call[objc.Void](g_, objc.Sel("setInputGateRecurrentWeights:"), po0) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865724-inputgaterecurrentweights?language=objc -func (g_ GRUDescriptor) InputGateRecurrentWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("inputGateRecurrentWeights")) +func (g_ GRUDescriptor) SetInputGateRecurrentWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](g_, objc.Sel("setInputGateRecurrentWeights:"), valueObject) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865722-outputgateinputweights?language=objc +func (g_ GRUDescriptor) OutputGateInputWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("outputGateInputWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865724-inputgaterecurrentweights?language=objc -func (g_ GRUDescriptor) SetInputGateRecurrentWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865722-outputgateinputweights?language=objc +func (g_ GRUDescriptor) SetOutputGateInputWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](g_, objc.Sel("setInputGateRecurrentWeights:"), po0) + objc.Call[objc.Void](g_, objc.Sel("setOutputGateInputWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865724-inputgaterecurrentweights?language=objc -func (g_ GRUDescriptor) SetInputGateRecurrentWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](g_, objc.Sel("setInputGateRecurrentWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865722-outputgateinputweights?language=objc +func (g_ GRUDescriptor) SetOutputGateInputWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](g_, objc.Sel("setOutputGateInputWeights:"), valueObject) } diff --git a/macos/mps/heap_provider_protocol.gen.go b/macos/mps/heap_provider_protocol.gen.go index 7c5b4a8d..a8dc606a 100644 --- a/macos/mps/heap_provider_protocol.gen.go +++ b/macos/mps/heap_provider_protocol.gen.go @@ -11,13 +11,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsheapprovider?language=objc type PHeapProvider interface { - // optional - NewHeapWithDescriptor(descriptor metal.HeapDescriptor) metal.HeapObject - HasNewHeapWithDescriptor() bool - // optional RetireHeapCacheDelay(heap metal.HeapObject, seconds float64) HasRetireHeapCacheDelay() bool + + // optional + NewHeapWithDescriptor(descriptor metal.HeapDescriptor) metal.HeapObject + HasNewHeapWithDescriptor() bool } // ensure impl type implements protocol interface @@ -28,18 +28,6 @@ type HeapProviderObject struct { objc.Object } -func (h_ HeapProviderObject) HasNewHeapWithDescriptor() bool { - return h_.RespondsToSelector(objc.Sel("newHeapWithDescriptor:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsheapprovider/3229861-newheapwithdescriptor?language=objc -func (h_ HeapProviderObject) NewHeapWithDescriptor(descriptor metal.HeapDescriptor) metal.HeapObject { - rv := objc.Call[metal.HeapObject](h_, objc.Sel("newHeapWithDescriptor:"), descriptor) - return rv -} - func (h_ HeapProviderObject) HasRetireHeapCacheDelay() bool { return h_.RespondsToSelector(objc.Sel("retireHeap:cacheDelay:")) } @@ -51,3 +39,15 @@ func (h_ HeapProviderObject) RetireHeapCacheDelay(heap metal.HeapObject, seconds po0 := objc.WrapAsProtocol("MTLHeap", heap) objc.Call[objc.Void](h_, objc.Sel("retireHeap:cacheDelay:"), po0, seconds) } + +func (h_ HeapProviderObject) HasNewHeapWithDescriptor() bool { + return h_.RespondsToSelector(objc.Sel("newHeapWithDescriptor:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsheapprovider/3229861-newheapwithdescriptor?language=objc +func (h_ HeapProviderObject) NewHeapWithDescriptor(descriptor metal.HeapDescriptor) metal.HeapObject { + rv := objc.Call[metal.HeapObject](h_, objc.Sel("newHeapWithDescriptor:"), descriptor) + return rv +} diff --git a/macos/mps/image.gen.go b/macos/mps/image.gen.go index 9f1b108f..08c75272 100644 --- a/macos/mps/image.gen.go +++ b/macos/mps/image.gen.go @@ -20,35 +20,30 @@ type _ImageClass struct { // An interface definition for the [Image] class. type IImage interface { objc.IObject - SetPurgeableState(state PurgeableState) PurgeableState - WriteBytesDataLayoutBytesPerRowBytesPerImageRegionFeatureChannelInfoImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, bytesPerRow uint, bytesPerImage uint, region metal.Region, featureChannelInfo ImageReadWriteParams, imageIndex uint) - SubImageWithFeatureChannelRange(range_ foundation.Range) Image - WriteBytesDataLayoutBytesPerColumnBytesPerRowBytesPerImageRegionFeatureChannelInfoImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, bytesPerColumn uint, bytesPerRow uint, bytesPerImage uint, region metal.Region, featureChannelInfo ImageReadWriteParams, imageIndex uint) - BatchRepresentation() *foundation.Array - ReadBytesDataLayoutBytesPerRowBytesPerImageRegionFeatureChannelInfoImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, bytesPerRow uint, bytesPerImage uint, region metal.Region, featureChannelInfo ImageReadWriteParams, imageIndex uint) - SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) - SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) - ReadBytesDataLayoutBytesPerRowRegionFeatureChannelInfoImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, bytesPerRow uint, region metal.Region, featureChannelInfo ImageReadWriteParams, imageIndex uint) BatchRepresentationWithSubRange(subRange foundation.Range) *foundation.Array ResourceSize() uint - ReadBytesDataLayoutImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, imageIndex uint) - WriteBytesDataLayoutBytesPerRowRegionFeatureChannelInfoImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, bytesPerRow uint, region metal.Region, featureChannelInfo ImageReadWriteParams, imageIndex uint) + BatchRepresentation() *foundation.Array WriteBytesDataLayoutImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, imageIndex uint) + ReadBytesDataLayoutImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, imageIndex uint) + SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) + SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) + SubImageWithFeatureChannelRange(range_ foundation.Range) Image + SetPurgeableState(state PurgeableState) PurgeableState + Width() uint + Usage() metal.TextureUsage + Parent() Image + Device() metal.DeviceObject + NumberOfImages() uint Height() uint + FeatureChannelFormat() ImageFeatureChannelFormat + TextureType() metal.TextureType PixelFormat() metal.PixelFormat - NumberOfImages() uint FeatureChannels() uint - FeatureChannelFormat() ImageFeatureChannelFormat - PixelSize() uint - Usage() metal.TextureUsage - Texture() metal.TextureObject - Width() uint - Parent() Image - Precision() uint Label() string SetLabel(value string) - TextureType() metal.TextureType - Device() metal.DeviceObject + Texture() metal.TextureObject + Precision() uint + PixelSize() uint } // A texture that may have more than four channels for use in convolutional neural networks. [Full Topic] @@ -64,6 +59,20 @@ func ImageFrom(ptr unsafe.Pointer) Image { } } +func (i_ Image) InitWithParentImageSliceRangeFeatureChannels(parent IImage, sliceRange foundation.Range, featureChannels uint) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithParentImage:sliceRange:featureChannels:"), parent, sliceRange, featureChannels) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942493-initwithparentimage?language=objc +func NewImageWithParentImageSliceRangeFeatureChannels(parent IImage, sliceRange foundation.Range, featureChannels uint) Image { + instance := ImageClass.Alloc().InitWithParentImageSliceRangeFeatureChannels(parent, sliceRange, featureChannels) + instance.Autorelease() + return instance +} + func (i_ Image) InitWithTextureFeatureChannels(texture metal.PTexture, featureChannels uint) Image { po0 := objc.WrapAsProtocol("MTLTexture", texture) rv := objc.Call[Image](i_, objc.Sel("initWithTexture:featureChannels:"), po0, featureChannels) @@ -94,20 +103,6 @@ func NewImageWithDeviceImageDescriptor(device metal.PDevice, imageDescriptor IIm return instance } -func (i_ Image) InitWithParentImageSliceRangeFeatureChannels(parent IImage, sliceRange foundation.Range, featureChannels uint) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithParentImage:sliceRange:featureChannels:"), parent, sliceRange, featureChannels) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942493-initwithparentimage?language=objc -func NewImageWithParentImageSliceRangeFeatureChannels(parent IImage, sliceRange foundation.Range, featureChannels uint) Image { - instance := ImageClass.Alloc().InitWithParentImageSliceRangeFeatureChannels(parent, sliceRange, featureChannels) - instance.Autorelease() - return instance -} - func (ic _ImageClass) Alloc() Image { rv := objc.Call[Image](ic, objc.Sel("alloc")) return rv @@ -128,34 +123,20 @@ func (i_ Image) Init() Image { return rv } -// Set (or query) the purgeable state of the image’s underlying texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648820-setpurgeablestate?language=objc -func (i_ Image) SetPurgeableState(state PurgeableState) PurgeableState { - rv := objc.Call[PurgeableState](i_, objc.Sel("setPurgeableState:"), state) - return rv -} - // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2951915-writebytes?language=objc -func (i_ Image) WriteBytesDataLayoutBytesPerRowBytesPerImageRegionFeatureChannelInfoImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, bytesPerRow uint, bytesPerImage uint, region metal.Region, featureChannelInfo ImageReadWriteParams, imageIndex uint) { - objc.Call[objc.Void](i_, objc.Sel("writeBytes:dataLayout:bytesPerRow:bytesPerImage:region:featureChannelInfo:imageIndex:"), dataBytes, dataLayout, bytesPerRow, bytesPerImage, region, featureChannelInfo, imageIndex) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942488-subimagewithfeaturechannelrange?language=objc -func (i_ Image) SubImageWithFeatureChannelRange(range_ foundation.Range) Image { - rv := objc.Call[Image](i_, objc.Sel("subImageWithFeatureChannelRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942492-batchrepresentationwithsubrange?language=objc +func (i_ Image) BatchRepresentationWithSubRange(subRange foundation.Range) *foundation.Array { + rv := objc.Call[*foundation.Array](i_, objc.Sel("batchRepresentationWithSubRange:"), subRange) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/3143488-writebytes?language=objc -func (i_ Image) WriteBytesDataLayoutBytesPerColumnBytesPerRowBytesPerImageRegionFeatureChannelInfoImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, bytesPerColumn uint, bytesPerRow uint, bytesPerImage uint, region metal.Region, featureChannelInfo ImageReadWriteParams, imageIndex uint) { - objc.Call[objc.Void](i_, objc.Sel("writeBytes:dataLayout:bytesPerColumn:bytesPerRow:bytesPerImage:region:featureChannelInfo:imageIndex:"), dataBytes, dataLayout, bytesPerColumn, bytesPerRow, bytesPerImage, region, featureChannelInfo, imageIndex) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942494-resourcesize?language=objc +func (i_ Image) ResourceSize() uint { + rv := objc.Call[uint](i_, objc.Sel("resourceSize")) + return rv } // [Full Topic] @@ -168,9 +149,16 @@ func (i_ Image) BatchRepresentation() *foundation.Array { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2951914-readbytes?language=objc -func (i_ Image) ReadBytesDataLayoutBytesPerRowBytesPerImageRegionFeatureChannelInfoImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, bytesPerRow uint, bytesPerImage uint, region metal.Region, featureChannelInfo ImageReadWriteParams, imageIndex uint) { - objc.Call[objc.Void](i_, objc.Sel("readBytes:dataLayout:bytesPerRow:bytesPerImage:region:featureChannelInfo:imageIndex:"), dataBytes, dataLayout, bytesPerRow, bytesPerImage, region, featureChannelInfo, imageIndex) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867189-writebytes?language=objc +func (i_ Image) WriteBytesDataLayoutImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, imageIndex uint) { + objc.Call[objc.Void](i_, objc.Sel("writeBytes:dataLayout:imageIndex:"), dataBytes, dataLayout, imageIndex) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867188-readbytes?language=objc +func (i_ Image) ReadBytesDataLayoutImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, imageIndex uint) { + objc.Call[objc.Void](i_, objc.Sel("readBytes:dataLayout:imageIndex:"), dataBytes, dataLayout, imageIndex) } // [Full Topic] @@ -190,76 +178,64 @@ func (i_ Image) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObjec // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867105-readbytes?language=objc -func (i_ Image) ReadBytesDataLayoutBytesPerRowRegionFeatureChannelInfoImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, bytesPerRow uint, region metal.Region, featureChannelInfo ImageReadWriteParams, imageIndex uint) { - objc.Call[objc.Void](i_, objc.Sel("readBytes:dataLayout:bytesPerRow:region:featureChannelInfo:imageIndex:"), dataBytes, dataLayout, bytesPerRow, region, featureChannelInfo, imageIndex) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942492-batchrepresentationwithsubrange?language=objc -func (i_ Image) BatchRepresentationWithSubRange(subRange foundation.Range) *foundation.Array { - rv := objc.Call[*foundation.Array](i_, objc.Sel("batchRepresentationWithSubRange:"), subRange) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867148-defaultallocator?language=objc +func (ic _ImageClass) DefaultAllocator() ImageAllocatorObject { + rv := objc.Call[ImageAllocatorObject](ic, objc.Sel("defaultAllocator")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942494-resourcesize?language=objc -func (i_ Image) ResourceSize() uint { - rv := objc.Call[uint](i_, objc.Sel("resourceSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867148-defaultallocator?language=objc +func Image_DefaultAllocator() ImageAllocatorObject { + return ImageClass.DefaultAllocator() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867188-readbytes?language=objc -func (i_ Image) ReadBytesDataLayoutImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, imageIndex uint) { - objc.Call[objc.Void](i_, objc.Sel("readBytes:dataLayout:imageIndex:"), dataBytes, dataLayout, imageIndex) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942488-subimagewithfeaturechannelrange?language=objc +func (i_ Image) SubImageWithFeatureChannelRange(range_ foundation.Range) Image { + rv := objc.Call[Image](i_, objc.Sel("subImageWithFeatureChannelRange:"), range_) + return rv } -// [Full Topic] +// Set (or query) the purgeable state of the image’s underlying texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867148-defaultallocator?language=objc -func (ic _ImageClass) DefaultAllocator() ImageAllocatorObject { - rv := objc.Call[ImageAllocatorObject](ic, objc.Sel("defaultAllocator")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648820-setpurgeablestate?language=objc +func (i_ Image) SetPurgeableState(state PurgeableState) PurgeableState { + rv := objc.Call[PurgeableState](i_, objc.Sel("setPurgeableState:"), state) return rv } -// [Full Topic] +// The formal width of the image, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867148-defaultallocator?language=objc -func Image_DefaultAllocator() ImageAllocatorObject { - return ImageClass.DefaultAllocator() +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648884-width?language=objc +func (i_ Image) Width() uint { + rv := objc.Call[uint](i_, objc.Sel("width")) + return rv } -// [Full Topic] +// The intended usage of the underlying texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867055-writebytes?language=objc -func (i_ Image) WriteBytesDataLayoutBytesPerRowRegionFeatureChannelInfoImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, bytesPerRow uint, region metal.Region, featureChannelInfo ImageReadWriteParams, imageIndex uint) { - objc.Call[objc.Void](i_, objc.Sel("writeBytes:dataLayout:bytesPerRow:region:featureChannelInfo:imageIndex:"), dataBytes, dataLayout, bytesPerRow, region, featureChannelInfo, imageIndex) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648828-usage?language=objc +func (i_ Image) Usage() metal.TextureUsage { + rv := objc.Call[metal.TextureUsage](i_, objc.Sel("usage")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867189-writebytes?language=objc -func (i_ Image) WriteBytesDataLayoutImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, imageIndex uint) { - objc.Call[objc.Void](i_, objc.Sel("writeBytes:dataLayout:imageIndex:"), dataBytes, dataLayout, imageIndex) -} - -// The formal height of the image, in pixels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648952-height?language=objc -func (i_ Image) Height() uint { - rv := objc.Call[uint](i_, objc.Sel("height")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942490-parent?language=objc +func (i_ Image) Parent() Image { + rv := objc.Call[Image](i_, objc.Sel("parent")) return rv } -// The pixel format of the underlying texture. [Full Topic] +// The device on which the image will be used. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648844-pixelformat?language=objc -func (i_ Image) PixelFormat() metal.PixelFormat { - rv := objc.Call[metal.PixelFormat](i_, objc.Sel("pixelFormat")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648857-device?language=objc +func (i_ Image) Device() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](i_, objc.Sel("device")) return rv } @@ -271,11 +247,11 @@ func (i_ Image) NumberOfImages() uint { return rv } -// The number of feature channels per pixel. [Full Topic] +// The formal height of the image, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648901-featurechannels?language=objc -func (i_ Image) FeatureChannels() uint { - rv := objc.Call[uint](i_, objc.Sel("featureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648952-height?language=objc +func (i_ Image) Height() uint { + rv := objc.Call[uint](i_, objc.Sel("height")) return rv } @@ -287,51 +263,27 @@ func (i_ Image) FeatureChannelFormat() ImageFeatureChannelFormat { return rv } -// The number of bytes from the first byte of one pixel to the first byte of the next pixel, in storage order. (Includes padding.) [Full Topic] +// The type of the underlying texture, typically [metal/mtltexturetype/mtltexturetype2d] or [metal/mtltexturetype/mtltexturetype2darray]. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648854-pixelsize?language=objc -func (i_ Image) PixelSize() uint { - rv := objc.Call[uint](i_, objc.Sel("pixelSize")) - return rv -} - -// The intended usage of the underlying texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648828-usage?language=objc -func (i_ Image) Usage() metal.TextureUsage { - rv := objc.Call[metal.TextureUsage](i_, objc.Sel("usage")) - return rv -} - -// The underlying texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648903-texture?language=objc -func (i_ Image) Texture() metal.TextureObject { - rv := objc.Call[metal.TextureObject](i_, objc.Sel("texture")) - return rv -} - -// The formal width of the image, in pixels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648884-width?language=objc -func (i_ Image) Width() uint { - rv := objc.Call[uint](i_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648948-texturetype?language=objc +func (i_ Image) TextureType() metal.TextureType { + rv := objc.Call[metal.TextureType](i_, objc.Sel("textureType")) return rv } -// [Full Topic] +// The pixel format of the underlying texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942490-parent?language=objc -func (i_ Image) Parent() Image { - rv := objc.Call[Image](i_, objc.Sel("parent")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648844-pixelformat?language=objc +func (i_ Image) PixelFormat() metal.PixelFormat { + rv := objc.Call[metal.PixelFormat](i_, objc.Sel("pixelFormat")) return rv } -// The number of bits of numeric precision available for each feature channel. [Full Topic] +// The number of feature channels per pixel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648880-precision?language=objc -func (i_ Image) Precision() uint { - rv := objc.Call[uint](i_, objc.Sel("precision")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648901-featurechannels?language=objc +func (i_ Image) FeatureChannels() uint { + rv := objc.Call[uint](i_, objc.Sel("featureChannels")) return rv } @@ -350,18 +302,26 @@ func (i_ Image) SetLabel(value string) { objc.Call[objc.Void](i_, objc.Sel("setLabel:"), value) } -// The type of the underlying texture, typically MTLTextureType2D or MTLTextureType2DArray. [Full Topic] +// The underlying texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648948-texturetype?language=objc -func (i_ Image) TextureType() metal.TextureType { - rv := objc.Call[metal.TextureType](i_, objc.Sel("textureType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648903-texture?language=objc +func (i_ Image) Texture() metal.TextureObject { + rv := objc.Call[metal.TextureObject](i_, objc.Sel("texture")) return rv } -// The device on which the image will be used. [Full Topic] +// The number of bits of numeric precision available for each feature channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648857-device?language=objc -func (i_ Image) Device() metal.DeviceObject { - rv := objc.Call[metal.DeviceObject](i_, objc.Sel("device")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648880-precision?language=objc +func (i_ Image) Precision() uint { + rv := objc.Call[uint](i_, objc.Sel("precision")) + return rv +} + +// The number of bytes from the first byte of one pixel to the first byte of the next pixel, in storage order. (Includes padding.) [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648854-pixelsize?language=objc +func (i_ Image) PixelSize() uint { + rv := objc.Call[uint](i_, objc.Sel("pixelSize")) return rv } diff --git a/macos/mps/image_allocator_protocol.gen.go b/macos/mps/image_allocator_protocol.gen.go index ef501d9b..6f9fb598 100644 --- a/macos/mps/image_allocator_protocol.gen.go +++ b/macos/mps/image_allocator_protocol.gen.go @@ -12,13 +12,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageallocator?language=objc type PImageAllocator interface { - // optional - ImageBatchForCommandBufferImageDescriptorKernelCount(cmdBuf metal.CommandBufferObject, descriptor ImageDescriptor, kernel Kernel, count uint) *foundation.Array - HasImageBatchForCommandBufferImageDescriptorKernelCount() bool - // optional ImageForCommandBufferImageDescriptorKernel(cmdBuf metal.CommandBufferObject, descriptor ImageDescriptor, kernel Kernel) Image HasImageForCommandBufferImageDescriptorKernel() bool + + // optional + ImageBatchForCommandBufferImageDescriptorKernelCount(cmdBuf metal.CommandBufferObject, descriptor ImageDescriptor, kernel Kernel, count uint) *foundation.Array + HasImageBatchForCommandBufferImageDescriptorKernelCount() bool } // ensure impl type implements protocol interface @@ -29,28 +29,28 @@ type ImageAllocatorObject struct { objc.Object } -func (i_ ImageAllocatorObject) HasImageBatchForCommandBufferImageDescriptorKernelCount() bool { - return i_.RespondsToSelector(objc.Sel("imageBatchForCommandBuffer:imageDescriptor:kernel:count:")) +func (i_ ImageAllocatorObject) HasImageForCommandBufferImageDescriptorKernel() bool { + return i_.RespondsToSelector(objc.Sel("imageForCommandBuffer:imageDescriptor:kernel:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageallocator/3020685-imagebatchforcommandbuffer?language=objc -func (i_ ImageAllocatorObject) ImageBatchForCommandBufferImageDescriptorKernelCount(cmdBuf metal.CommandBufferObject, descriptor ImageDescriptor, kernel Kernel, count uint) *foundation.Array { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageallocator/2866966-imageforcommandbuffer?language=objc +func (i_ ImageAllocatorObject) ImageForCommandBufferImageDescriptorKernel(cmdBuf metal.CommandBufferObject, descriptor ImageDescriptor, kernel Kernel) Image { po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[*foundation.Array](i_, objc.Sel("imageBatchForCommandBuffer:imageDescriptor:kernel:count:"), po0, descriptor, kernel, count) + rv := objc.Call[Image](i_, objc.Sel("imageForCommandBuffer:imageDescriptor:kernel:"), po0, descriptor, kernel) return rv } -func (i_ ImageAllocatorObject) HasImageForCommandBufferImageDescriptorKernel() bool { - return i_.RespondsToSelector(objc.Sel("imageForCommandBuffer:imageDescriptor:kernel:")) +func (i_ ImageAllocatorObject) HasImageBatchForCommandBufferImageDescriptorKernelCount() bool { + return i_.RespondsToSelector(objc.Sel("imageBatchForCommandBuffer:imageDescriptor:kernel:count:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageallocator/2866966-imageforcommandbuffer?language=objc -func (i_ ImageAllocatorObject) ImageForCommandBufferImageDescriptorKernel(cmdBuf metal.CommandBufferObject, descriptor ImageDescriptor, kernel Kernel) Image { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageallocator/3020685-imagebatchforcommandbuffer?language=objc +func (i_ ImageAllocatorObject) ImageBatchForCommandBufferImageDescriptorKernelCount(cmdBuf metal.CommandBufferObject, descriptor ImageDescriptor, kernel Kernel, count uint) *foundation.Array { po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[Image](i_, objc.Sel("imageForCommandBuffer:imageDescriptor:kernel:"), po0, descriptor, kernel) + rv := objc.Call[*foundation.Array](i_, objc.Sel("imageBatchForCommandBuffer:imageDescriptor:kernel:count:"), po0, descriptor, kernel, count) return rv } diff --git a/macos/mps/image_area_max.gen.go b/macos/mps/image_area_max.gen.go index a95dcfd7..6fc13c9a 100644 --- a/macos/mps/image_area_max.gen.go +++ b/macos/mps/image_area_max.gen.go @@ -19,8 +19,8 @@ type _ImageAreaMaxClass struct { // An interface definition for the [ImageAreaMax] class. type IImageAreaMax interface { IUnaryImageKernel - KernelWidth() uint KernelHeight() uint + KernelWidth() uint } // A filter that finds the maximum pixel value in a rectangular region centered around each pixel in the source image. [Full Topic] @@ -101,14 +101,6 @@ func ImageAreaMax_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) return instance } -// The width of the filter window. Must be an odd number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageareamax/1618282-kernelwidth?language=objc -func (i_ ImageAreaMax) KernelWidth() uint { - rv := objc.Call[uint](i_, objc.Sel("kernelWidth")) - return rv -} - // The height of the filter window. Must be an odd number. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageareamax/1618277-kernelheight?language=objc @@ -116,3 +108,11 @@ func (i_ ImageAreaMax) KernelHeight() uint { rv := objc.Call[uint](i_, objc.Sel("kernelHeight")) return rv } + +// The width of the filter window. Must be an odd number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageareamax/1618282-kernelwidth?language=objc +func (i_ ImageAreaMax) KernelWidth() uint { + rv := objc.Call[uint](i_, objc.Sel("kernelWidth")) + return rv +} diff --git a/macos/mps/image_arithmetic.gen.go b/macos/mps/image_arithmetic.gen.go index b6d5106d..fb32000a 100644 --- a/macos/mps/image_arithmetic.gen.go +++ b/macos/mps/image_arithmetic.gen.go @@ -21,18 +21,18 @@ type IImageArithmetic interface { IBinaryImageKernel SecondaryScale() float32 SetSecondaryScale(value float32) - SecondaryStrideInPixels() metal.Size - SetSecondaryStrideInPixels(value metal.Size) - PrimaryScale() float32 - SetPrimaryScale(value float32) PrimaryStrideInPixels() metal.Size SetPrimaryStrideInPixels(value metal.Size) - Bias() float32 - SetBias(value float32) + SecondaryStrideInPixels() metal.Size + SetSecondaryStrideInPixels(value metal.Size) MaximumValue() float32 SetMaximumValue(value float32) + PrimaryScale() float32 + SetPrimaryScale(value float32) MinimumValue() float32 SetMinimumValue(value float32) + Bias() float32 + SetBias(value float32) } // Base class for basic arithmetic nodes [Full Topic] @@ -113,36 +113,6 @@ func (i_ ImageArithmetic) SetSecondaryScale(value float32) { objc.Call[objc.Void](i_, objc.Sel("setSecondaryScale:"), value) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2889865-secondarystrideinpixels?language=objc -func (i_ ImageArithmetic) SecondaryStrideInPixels() metal.Size { - rv := objc.Call[metal.Size](i_, objc.Sel("secondaryStrideInPixels")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2889865-secondarystrideinpixels?language=objc -func (i_ ImageArithmetic) SetSecondaryStrideInPixels(value metal.Size) { - objc.Call[objc.Void](i_, objc.Sel("setSecondaryStrideInPixels:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2866602-primaryscale?language=objc -func (i_ ImageArithmetic) PrimaryScale() float32 { - rv := objc.Call[float32](i_, objc.Sel("primaryScale")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2866602-primaryscale?language=objc -func (i_ ImageArithmetic) SetPrimaryScale(value float32) { - objc.Call[objc.Void](i_, objc.Sel("setPrimaryScale:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2889864-primarystrideinpixels?language=objc @@ -160,17 +130,17 @@ func (i_ ImageArithmetic) SetPrimaryStrideInPixels(value metal.Size) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2866609-bias?language=objc -func (i_ ImageArithmetic) Bias() float32 { - rv := objc.Call[float32](i_, objc.Sel("bias")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2889865-secondarystrideinpixels?language=objc +func (i_ ImageArithmetic) SecondaryStrideInPixels() metal.Size { + rv := objc.Call[metal.Size](i_, objc.Sel("secondaryStrideInPixels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2866609-bias?language=objc -func (i_ ImageArithmetic) SetBias(value float32) { - objc.Call[objc.Void](i_, objc.Sel("setBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2889865-secondarystrideinpixels?language=objc +func (i_ ImageArithmetic) SetSecondaryStrideInPixels(value metal.Size) { + objc.Call[objc.Void](i_, objc.Sel("setSecondaryStrideInPixels:"), value) } // [Full Topic] @@ -188,6 +158,21 @@ func (i_ ImageArithmetic) SetMaximumValue(value float32) { objc.Call[objc.Void](i_, objc.Sel("setMaximumValue:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2866602-primaryscale?language=objc +func (i_ ImageArithmetic) PrimaryScale() float32 { + rv := objc.Call[float32](i_, objc.Sel("primaryScale")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2866602-primaryscale?language=objc +func (i_ ImageArithmetic) SetPrimaryScale(value float32) { + objc.Call[objc.Void](i_, objc.Sel("setPrimaryScale:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2942357-minimumvalue?language=objc @@ -202,3 +187,18 @@ func (i_ ImageArithmetic) MinimumValue() float32 { func (i_ ImageArithmetic) SetMinimumValue(value float32) { objc.Call[objc.Void](i_, objc.Sel("setMinimumValue:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2866609-bias?language=objc +func (i_ ImageArithmetic) Bias() float32 { + rv := objc.Call[float32](i_, objc.Sel("bias")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2866609-bias?language=objc +func (i_ ImageArithmetic) SetBias(value float32) { + objc.Call[objc.Void](i_, objc.Sel("setBias:"), value) +} diff --git a/macos/mps/image_box.gen.go b/macos/mps/image_box.gen.go index d93a2911..904dea25 100644 --- a/macos/mps/image_box.gen.go +++ b/macos/mps/image_box.gen.go @@ -19,8 +19,8 @@ type _ImageBoxClass struct { // An interface definition for the [ImageBox] class. type IImageBox interface { IUnaryImageKernel - KernelWidth() uint KernelHeight() uint + KernelWidth() uint } // A filter that convolves an image with a given kernel of odd width and height. [Full Topic] @@ -101,14 +101,6 @@ func ImageBox_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) Imag return instance } -// The width of the filter window. Must be an odd number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagebox/1618834-kernelwidth?language=objc -func (i_ ImageBox) KernelWidth() uint { - rv := objc.Call[uint](i_, objc.Sel("kernelWidth")) - return rv -} - // The height of the filter window. Must be an odd number. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagebox/1618739-kernelheight?language=objc @@ -116,3 +108,11 @@ func (i_ ImageBox) KernelHeight() uint { rv := objc.Call[uint](i_, objc.Sel("kernelHeight")) return rv } + +// The width of the filter window. Must be an odd number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagebox/1618834-kernelwidth?language=objc +func (i_ ImageBox) KernelWidth() uint { + rv := objc.Call[uint](i_, objc.Sel("kernelWidth")) + return rv +} diff --git a/macos/mps/image_canny.gen.go b/macos/mps/image_canny.gen.go index d79c96cc..327fc156 100644 --- a/macos/mps/image_canny.gen.go +++ b/macos/mps/image_canny.gen.go @@ -19,14 +19,14 @@ type _ImageCannyClass struct { // An interface definition for the [ImageCanny] class. type IImageCanny interface { IUnaryImageKernel - Sigma() float32 LowThreshold() float32 SetLowThreshold(value float32) + ColorTransform() *float32 UseFastMode() bool SetUseFastMode(value bool) + Sigma() float32 HighThreshold() float32 SetHighThreshold(value float32) - ColorTransform() *float32 } // [Full Topic] @@ -42,21 +42,6 @@ func ImageCannyFrom(ptr unsafe.Pointer) ImageCanny { } } -func (i_ ImageCanny) InitWithDeviceLinearToGrayScaleTransformSigma(device metal.PDevice, transform *float32, sigma float32) ImageCanny { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageCanny](i_, objc.Sel("initWithDevice:linearToGrayScaleTransform:sigma:"), po0, transform, sigma) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547973-initwithdevice?language=objc -func NewImageCannyWithDeviceLinearToGrayScaleTransformSigma(device metal.PDevice, transform *float32, sigma float32) ImageCanny { - instance := ImageCannyClass.Alloc().InitWithDeviceLinearToGrayScaleTransformSigma(device, transform, sigma) - instance.Autorelease() - return instance -} - func (i_ ImageCanny) InitWithDevice(device metal.PDevice) ImageCanny { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageCanny](i_, objc.Sel("initWithDevice:"), po0) @@ -107,14 +92,6 @@ func ImageCanny_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) Im return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547975-sigma?language=objc -func (i_ ImageCanny) Sigma() float32 { - rv := objc.Call[float32](i_, objc.Sel("sigma")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547974-lowthreshold?language=objc @@ -130,6 +107,14 @@ func (i_ ImageCanny) SetLowThreshold(value float32) { objc.Call[objc.Void](i_, objc.Sel("setLowThreshold:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547969-colortransform?language=objc +func (i_ ImageCanny) ColorTransform() *float32 { + rv := objc.Call[*float32](i_, objc.Sel("colorTransform")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547976-usefastmode?language=objc @@ -145,6 +130,14 @@ func (i_ ImageCanny) SetUseFastMode(value bool) { objc.Call[objc.Void](i_, objc.Sel("setUseFastMode:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547975-sigma?language=objc +func (i_ ImageCanny) Sigma() float32 { + rv := objc.Call[float32](i_, objc.Sel("sigma")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547970-highthreshold?language=objc @@ -159,11 +152,3 @@ func (i_ ImageCanny) HighThreshold() float32 { func (i_ ImageCanny) SetHighThreshold(value float32) { objc.Call[objc.Void](i_, objc.Sel("setHighThreshold:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547969-colortransform?language=objc -func (i_ ImageCanny) ColorTransform() *float32 { - rv := objc.Call[*float32](i_, objc.Sel("colorTransform")) - return rv -} diff --git a/macos/mps/image_conversion.gen.go b/macos/mps/image_conversion.gen.go index 7adc3ab9..3464ed5f 100644 --- a/macos/mps/image_conversion.gen.go +++ b/macos/mps/image_conversion.gen.go @@ -20,8 +20,8 @@ type _ImageConversionClass struct { // An interface definition for the [ImageConversion] class. type IImageConversion interface { IUnaryImageKernel - DestinationAlpha() AlphaType SourceAlpha() AlphaType + DestinationAlpha() AlphaType } // A filter that performs a conversion of color space, alpha, or pixel format. [Full Topic] @@ -102,14 +102,6 @@ func ImageConversion_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevic return instance } -// Premultiplication description for the destination texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageconversion/1648515-destinationalpha?language=objc -func (i_ ImageConversion) DestinationAlpha() AlphaType { - rv := objc.Call[AlphaType](i_, objc.Sel("destinationAlpha")) - return rv -} - // Premultiplication description for the source texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageconversion/1648518-sourcealpha?language=objc @@ -117,3 +109,11 @@ func (i_ ImageConversion) SourceAlpha() AlphaType { rv := objc.Call[AlphaType](i_, objc.Sel("sourceAlpha")) return rv } + +// Premultiplication description for the destination texture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageconversion/1648515-destinationalpha?language=objc +func (i_ ImageConversion) DestinationAlpha() AlphaType { + rv := objc.Call[AlphaType](i_, objc.Sel("destinationAlpha")) + return rv +} diff --git a/macos/mps/image_convolution.gen.go b/macos/mps/image_convolution.gen.go index b0b06ba1..2450ee54 100644 --- a/macos/mps/image_convolution.gen.go +++ b/macos/mps/image_convolution.gen.go @@ -19,10 +19,10 @@ type _ImageConvolutionClass struct { // An interface definition for the [ImageConvolution] class. type IImageConvolution interface { IUnaryImageKernel + KernelHeight() uint Bias() float32 SetBias(value float32) KernelWidth() uint - KernelHeight() uint } // A filter that convolves an image with a given kernel of odd width and height. [Full Topic] @@ -103,6 +103,14 @@ func ImageConvolution_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevi return instance } +// The height of the filter window. Must be an odd number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageconvolution/1618842-kernelheight?language=objc +func (i_ ImageConvolution) KernelHeight() uint { + rv := objc.Call[uint](i_, objc.Sel("kernelHeight")) + return rv +} + // The value added to a convolved pixel before it is converted back to its intended storage format. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageconvolution/1618841-bias?language=objc @@ -125,11 +133,3 @@ func (i_ ImageConvolution) KernelWidth() uint { rv := objc.Call[uint](i_, objc.Sel("kernelWidth")) return rv } - -// The height of the filter window. Must be an odd number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageconvolution/1618842-kernelheight?language=objc -func (i_ ImageConvolution) KernelHeight() uint { - rv := objc.Call[uint](i_, objc.Sel("kernelHeight")) - return rv -} diff --git a/macos/mps/image_copy_to_matrix.gen.go b/macos/mps/image_copy_to_matrix.gen.go index 66b267f6..2a8b58a0 100644 --- a/macos/mps/image_copy_to_matrix.gen.go +++ b/macos/mps/image_copy_to_matrix.gen.go @@ -20,15 +20,15 @@ type _ImageCopyToMatrixClass struct { // An interface definition for the [ImageCopyToMatrix] class. type IImageCopyToMatrix interface { IKernel - EncodeToCommandBufferSourceImageDestinationMatrix(commandBuffer metal.PCommandBuffer, sourceImage IImage, destinationMatrix IMatrix) - EncodeToCommandBufferObjectSourceImageDestinationMatrix(commandBufferObject objc.IObject, sourceImage IImage, destinationMatrix IMatrix) EncodeBatchToCommandBufferSourceImagesDestinationMatrix(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, destinationMatrix IMatrix) EncodeBatchToCommandBufferObjectSourceImagesDestinationMatrix(commandBufferObject objc.IObject, sourceImages *foundation.Array, destinationMatrix IMatrix) + EncodeToCommandBufferSourceImageDestinationMatrix(commandBuffer metal.PCommandBuffer, sourceImage IImage, destinationMatrix IMatrix) + EncodeToCommandBufferObjectSourceImageDestinationMatrix(commandBufferObject objc.IObject, sourceImage IImage, destinationMatrix IMatrix) + DestinationMatrixBatchIndex() uint + SetDestinationMatrixBatchIndex(value uint) DataLayout() DataLayout DestinationMatrixOrigin() metal.Origin SetDestinationMatrixOrigin(value metal.Origin) - DestinationMatrixBatchIndex() uint - SetDestinationMatrixBatchIndex(value uint) } // A class that copies image data to a matrix. [Full Topic] @@ -79,6 +79,21 @@ func (i_ ImageCopyToMatrix) Init() ImageCopyToMatrix { return rv } +func (i_ ImageCopyToMatrix) InitWithDevice(device metal.PDevice) ImageCopyToMatrix { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[ImageCopyToMatrix](i_, objc.Sel("initWithDevice:"), po0) + return rv +} + +// Initializes a new kernel object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewImageCopyToMatrixWithDevice(device metal.PDevice) ImageCopyToMatrix { + instance := ImageCopyToMatrixClass.Alloc().InitWithDevice(device) + instance.Autorelease() + return instance +} + func (i_ ImageCopyToMatrix) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageCopyToMatrix { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageCopyToMatrix](i_, objc.Sel("copyWithZone:device:"), zone, po1) @@ -94,19 +109,19 @@ func ImageCopyToMatrix_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev return instance } -func (i_ ImageCopyToMatrix) InitWithDevice(device metal.PDevice) ImageCopyToMatrix { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageCopyToMatrix](i_, objc.Sel("initWithDevice:"), po0) - return rv +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecopytomatrix/3013769-encodebatchtocommandbuffer?language=objc +func (i_ ImageCopyToMatrix) EncodeBatchToCommandBufferSourceImagesDestinationMatrix(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, destinationMatrix IMatrix) { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + objc.Call[objc.Void](i_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationMatrix:"), po0, sourceImages, destinationMatrix) } -// Initializes a new kernel object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewImageCopyToMatrixWithDevice(device metal.PDevice) ImageCopyToMatrix { - instance := ImageCopyToMatrixClass.Alloc().InitWithDevice(device) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecopytomatrix/3013769-encodebatchtocommandbuffer?language=objc +func (i_ ImageCopyToMatrix) EncodeBatchToCommandBufferObjectSourceImagesDestinationMatrix(commandBufferObject objc.IObject, sourceImages *foundation.Array, destinationMatrix IMatrix) { + objc.Call[objc.Void](i_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationMatrix:"), commandBufferObject, sourceImages, destinationMatrix) } // [Full Topic] @@ -126,17 +141,17 @@ func (i_ ImageCopyToMatrix) EncodeToCommandBufferObjectSourceImageDestinationMat // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecopytomatrix/3013769-encodebatchtocommandbuffer?language=objc -func (i_ ImageCopyToMatrix) EncodeBatchToCommandBufferSourceImagesDestinationMatrix(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, destinationMatrix IMatrix) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](i_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationMatrix:"), po0, sourceImages, destinationMatrix) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecopytomatrix/2873211-destinationmatrixbatchindex?language=objc +func (i_ ImageCopyToMatrix) DestinationMatrixBatchIndex() uint { + rv := objc.Call[uint](i_, objc.Sel("destinationMatrixBatchIndex")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecopytomatrix/3013769-encodebatchtocommandbuffer?language=objc -func (i_ ImageCopyToMatrix) EncodeBatchToCommandBufferObjectSourceImagesDestinationMatrix(commandBufferObject objc.IObject, sourceImages *foundation.Array, destinationMatrix IMatrix) { - objc.Call[objc.Void](i_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationMatrix:"), commandBufferObject, sourceImages, destinationMatrix) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecopytomatrix/2873211-destinationmatrixbatchindex?language=objc +func (i_ ImageCopyToMatrix) SetDestinationMatrixBatchIndex(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setDestinationMatrixBatchIndex:"), value) } // [Full Topic] @@ -161,18 +176,3 @@ func (i_ ImageCopyToMatrix) DestinationMatrixOrigin() metal.Origin { func (i_ ImageCopyToMatrix) SetDestinationMatrixOrigin(value metal.Origin) { objc.Call[objc.Void](i_, objc.Sel("setDestinationMatrixOrigin:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecopytomatrix/2873211-destinationmatrixbatchindex?language=objc -func (i_ ImageCopyToMatrix) DestinationMatrixBatchIndex() uint { - rv := objc.Call[uint](i_, objc.Sel("destinationMatrixBatchIndex")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecopytomatrix/2873211-destinationmatrixbatchindex?language=objc -func (i_ ImageCopyToMatrix) SetDestinationMatrixBatchIndex(value uint) { - objc.Call[objc.Void](i_, objc.Sel("setDestinationMatrixBatchIndex:"), value) -} diff --git a/macos/mps/image_descriptor.gen.go b/macos/mps/image_descriptor.gen.go index 037b6401..14cb8d2e 100644 --- a/macos/mps/image_descriptor.gen.go +++ b/macos/mps/image_descriptor.gen.go @@ -19,23 +19,23 @@ type _ImageDescriptorClass struct { // An interface definition for the [ImageDescriptor] class. type IImageDescriptor interface { objc.IObject - PixelFormat() metal.PixelFormat + Width() uint + SetWidth(value uint) + Usage() metal.TextureUsage + SetUsage(value metal.TextureUsage) + NumberOfImages() uint + SetNumberOfImages(value uint) Height() uint SetHeight(value uint) - FeatureChannels() uint - SetFeatureChannels(value uint) CpuCacheMode() metal.CPUCacheMode SetCpuCacheMode(value metal.CPUCacheMode) + PixelFormat() metal.PixelFormat StorageMode() metal.StorageMode SetStorageMode(value metal.StorageMode) + FeatureChannels() uint + SetFeatureChannels(value uint) ChannelFormat() ImageFeatureChannelFormat SetChannelFormat(value ImageFeatureChannelFormat) - Usage() metal.TextureUsage - SetUsage(value metal.TextureUsage) - NumberOfImages() uint - SetNumberOfImages(value uint) - Width() uint - SetWidth(value uint) } // A description of the attributes used to create an MPSImage. [Full Topic] @@ -51,18 +51,6 @@ func ImageDescriptorFrom(ptr unsafe.Pointer) ImageDescriptor { } } -func (ic _ImageDescriptorClass) ImageDescriptorWithChannelFormatWidthHeightFeatureChannelsNumberOfImagesUsage(channelFormat ImageFeatureChannelFormat, width uint, height uint, featureChannels uint, numberOfImages uint, usage metal.TextureUsage) ImageDescriptor { - rv := objc.Call[ImageDescriptor](ic, objc.Sel("imageDescriptorWithChannelFormat:width:height:featureChannels:numberOfImages:usage:"), channelFormat, width, height, featureChannels, numberOfImages, usage) - return rv -} - -// Creates an image descriptor for an image container with options to set texture usage and batch size (number of images). [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648893-imagedescriptorwithchannelformat?language=objc -func ImageDescriptor_ImageDescriptorWithChannelFormatWidthHeightFeatureChannelsNumberOfImagesUsage(channelFormat ImageFeatureChannelFormat, width uint, height uint, featureChannels uint, numberOfImages uint, usage metal.TextureUsage) ImageDescriptor { - return ImageDescriptorClass.ImageDescriptorWithChannelFormatWidthHeightFeatureChannelsNumberOfImagesUsage(channelFormat, width, height, featureChannels, numberOfImages, usage) -} - func (ic _ImageDescriptorClass) ImageDescriptorWithChannelFormatWidthHeightFeatureChannels(channelFormat ImageFeatureChannelFormat, width uint, height uint, featureChannels uint) ImageDescriptor { rv := objc.Call[ImageDescriptor](ic, objc.Sel("imageDescriptorWithChannelFormat:width:height:featureChannels:"), channelFormat, width, height, featureChannels) return rv @@ -109,14 +97,51 @@ func (i_ ImageDescriptor) Init() ImageDescriptor { return rv } -// The pixel format for the underlying texture. [Full Topic] +// The width of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648913-pixelformat?language=objc -func (i_ ImageDescriptor) PixelFormat() metal.PixelFormat { - rv := objc.Call[metal.PixelFormat](i_, objc.Sel("pixelFormat")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648830-width?language=objc +func (i_ ImageDescriptor) Width() uint { + rv := objc.Call[uint](i_, objc.Sel("width")) + return rv +} + +// The width of the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648830-width?language=objc +func (i_ ImageDescriptor) SetWidth(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setWidth:"), value) +} + +// Options to specify the intended usage of the underlying texture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648937-usage?language=objc +func (i_ ImageDescriptor) Usage() metal.TextureUsage { + rv := objc.Call[metal.TextureUsage](i_, objc.Sel("usage")) + return rv +} + +// Options to specify the intended usage of the underlying texture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648937-usage?language=objc +func (i_ ImageDescriptor) SetUsage(value metal.TextureUsage) { + objc.Call[objc.Void](i_, objc.Sel("setUsage:"), value) +} + +// The number of images for batch processing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648846-numberofimages?language=objc +func (i_ ImageDescriptor) NumberOfImages() uint { + rv := objc.Call[uint](i_, objc.Sel("numberOfImages")) return rv } +// The number of images for batch processing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648846-numberofimages?language=objc +func (i_ ImageDescriptor) SetNumberOfImages(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setNumberOfImages:"), value) +} + // The height of the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648947-height?language=objc @@ -132,21 +157,6 @@ func (i_ ImageDescriptor) SetHeight(value uint) { objc.Call[objc.Void](i_, objc.Sel("setHeight:"), value) } -// The number of feature channels per pixel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648918-featurechannels?language=objc -func (i_ ImageDescriptor) FeatureChannels() uint { - rv := objc.Call[uint](i_, objc.Sel("featureChannels")) - return rv -} - -// The number of feature channels per pixel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648918-featurechannels?language=objc -func (i_ ImageDescriptor) SetFeatureChannels(value uint) { - objc.Call[objc.Void](i_, objc.Sel("setFeatureChannels:"), value) -} - // The CPU cache mode of the underlying texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648930-cpucachemode?language=objc @@ -162,6 +172,14 @@ func (i_ ImageDescriptor) SetCpuCacheMode(value metal.CPUCacheMode) { objc.Call[objc.Void](i_, objc.Sel("setCpuCacheMode:"), value) } +// The pixel format for the underlying texture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648913-pixelformat?language=objc +func (i_ ImageDescriptor) PixelFormat() metal.PixelFormat { + rv := objc.Call[metal.PixelFormat](i_, objc.Sel("pixelFormat")) + return rv +} + // The storage mode of underlying texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648955-storagemode?language=objc @@ -177,6 +195,21 @@ func (i_ ImageDescriptor) SetStorageMode(value metal.StorageMode) { objc.Call[objc.Void](i_, objc.Sel("setStorageMode:"), value) } +// The number of feature channels per pixel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648918-featurechannels?language=objc +func (i_ ImageDescriptor) FeatureChannels() uint { + rv := objc.Call[uint](i_, objc.Sel("featureChannels")) + return rv +} + +// The number of feature channels per pixel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648918-featurechannels?language=objc +func (i_ ImageDescriptor) SetFeatureChannels(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setFeatureChannels:"), value) +} + // The storage format to use for each channel in the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648818-channelformat?language=objc @@ -191,48 +224,3 @@ func (i_ ImageDescriptor) ChannelFormat() ImageFeatureChannelFormat { func (i_ ImageDescriptor) SetChannelFormat(value ImageFeatureChannelFormat) { objc.Call[objc.Void](i_, objc.Sel("setChannelFormat:"), value) } - -// Options to specify the intended usage of the underlying texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648937-usage?language=objc -func (i_ ImageDescriptor) Usage() metal.TextureUsage { - rv := objc.Call[metal.TextureUsage](i_, objc.Sel("usage")) - return rv -} - -// Options to specify the intended usage of the underlying texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648937-usage?language=objc -func (i_ ImageDescriptor) SetUsage(value metal.TextureUsage) { - objc.Call[objc.Void](i_, objc.Sel("setUsage:"), value) -} - -// The number of images for batch processing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648846-numberofimages?language=objc -func (i_ ImageDescriptor) NumberOfImages() uint { - rv := objc.Call[uint](i_, objc.Sel("numberOfImages")) - return rv -} - -// The number of images for batch processing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648846-numberofimages?language=objc -func (i_ ImageDescriptor) SetNumberOfImages(value uint) { - objc.Call[objc.Void](i_, objc.Sel("setNumberOfImages:"), value) -} - -// The width of the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648830-width?language=objc -func (i_ ImageDescriptor) Width() uint { - rv := objc.Call[uint](i_, objc.Sel("width")) - return rv -} - -// The width of the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedescriptor/1648830-width?language=objc -func (i_ ImageDescriptor) SetWidth(value uint) { - objc.Call[objc.Void](i_, objc.Sel("setWidth:"), value) -} diff --git a/macos/mps/image_dilate.gen.go b/macos/mps/image_dilate.gen.go index 779427a1..caf7e5e0 100644 --- a/macos/mps/image_dilate.gen.go +++ b/macos/mps/image_dilate.gen.go @@ -19,8 +19,8 @@ type _ImageDilateClass struct { // An interface definition for the [ImageDilate] class. type IImageDilate interface { IUnaryImageKernel - KernelWidth() uint KernelHeight() uint + KernelWidth() uint } // A filter that finds the maximum pixel value in a rectangular region by applying a dilation function. [Full Topic] @@ -101,14 +101,6 @@ func ImageDilate_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) I return instance } -// The width of the filter window which must be an odd number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedilate/1618279-kernelwidth?language=objc -func (i_ ImageDilate) KernelWidth() uint { - rv := objc.Call[uint](i_, objc.Sel("kernelWidth")) - return rv -} - // The height of the filter window. which must be an odd number. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedilate/1618280-kernelheight?language=objc @@ -116,3 +108,11 @@ func (i_ ImageDilate) KernelHeight() uint { rv := objc.Call[uint](i_, objc.Sel("kernelHeight")) return rv } + +// The width of the filter window which must be an odd number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagedilate/1618279-kernelwidth?language=objc +func (i_ ImageDilate) KernelWidth() uint { + rv := objc.Call[uint](i_, objc.Sel("kernelWidth")) + return rv +} diff --git a/macos/mps/image_ed_lines.gen.go b/macos/mps/image_ed_lines.gen.go index 43fe3030..defe180d 100644 --- a/macos/mps/image_ed_lines.gen.go +++ b/macos/mps/image_ed_lines.gen.go @@ -21,21 +21,21 @@ type IImageEDLines interface { IKernel EncodeToCommandBufferSourceTextureDestinationTextureEndpointBufferEndpointOffset(commandBuffer metal.PCommandBuffer, source metal.PTexture, dest metal.PTexture, endpointBuffer metal.PBuffer, endpointOffset uint) EncodeToCommandBufferObjectSourceTextureObjectDestinationTextureObjectEndpointBufferObjectEndpointOffset(commandBufferObject objc.IObject, sourceObject objc.IObject, destObject objc.IObject, endpointBufferObject objc.IObject, endpointOffset uint) + MaxLines() uint + SetMaxLines(value uint) + MinLineLength() int + SetMinLineLength(value int) + LineErrorThreshold() float32 + SetLineErrorThreshold(value float32) + GaussianSigma() float32 + DetailRatio() int + SetDetailRatio(value int) GradientThreshold() float32 SetGradientThreshold(value float32) ClipRectSource() metal.Region SetClipRectSource(value metal.Region) - DetailRatio() int - SetDetailRatio(value int) - LineErrorThreshold() float32 - SetLineErrorThreshold(value float32) MergeLocalityThreshold() float32 SetMergeLocalityThreshold(value float32) - MinLineLength() int - SetMinLineLength(value int) - MaxLines() uint - SetMaxLines(value uint) - GaussianSigma() float32 } // [Full Topic] @@ -86,32 +86,32 @@ func (i_ ImageEDLines) Init() ImageEDLines { return rv } -func (i_ ImageEDLines) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageEDLines { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageEDLines](i_, objc.Sel("copyWithZone:device:"), zone, po1) +func (i_ ImageEDLines) InitWithDevice(device metal.PDevice) ImageEDLines { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[ImageEDLines](i_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func ImageEDLines_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageEDLines { - instance := ImageEDLinesClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewImageEDLinesWithDevice(device metal.PDevice) ImageEDLines { + instance := ImageEDLinesClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (i_ ImageEDLines) InitWithDevice(device metal.PDevice) ImageEDLines { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageEDLines](i_, objc.Sel("initWithDevice:"), po0) +func (i_ ImageEDLines) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageEDLines { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[ImageEDLines](i_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewImageEDLinesWithDevice(device metal.PDevice) ImageEDLines { - instance := ImageEDLinesClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func ImageEDLines_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageEDLines { + instance := ImageEDLinesClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -136,47 +136,32 @@ func (i_ ImageEDLines) EncodeToCommandBufferObjectSourceTextureObjectDestination // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618919-gradientthreshold?language=objc -func (i_ ImageEDLines) GradientThreshold() float32 { - rv := objc.Call[float32](i_, objc.Sel("gradientThreshold")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618919-gradientthreshold?language=objc -func (i_ ImageEDLines) SetGradientThreshold(value float32) { - objc.Call[objc.Void](i_, objc.Sel("setGradientThreshold:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618915-cliprectsource?language=objc -func (i_ ImageEDLines) ClipRectSource() metal.Region { - rv := objc.Call[metal.Region](i_, objc.Sel("clipRectSource")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618923-maxlines?language=objc +func (i_ ImageEDLines) MaxLines() uint { + rv := objc.Call[uint](i_, objc.Sel("maxLines")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618915-cliprectsource?language=objc -func (i_ ImageEDLines) SetClipRectSource(value metal.Region) { - objc.Call[objc.Void](i_, objc.Sel("setClipRectSource:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618923-maxlines?language=objc +func (i_ ImageEDLines) SetMaxLines(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setMaxLines:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618916-detailratio?language=objc -func (i_ ImageEDLines) DetailRatio() int { - rv := objc.Call[int](i_, objc.Sel("detailRatio")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618925-minlinelength?language=objc +func (i_ ImageEDLines) MinLineLength() int { + rv := objc.Call[int](i_, objc.Sel("minLineLength")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618916-detailratio?language=objc -func (i_ ImageEDLines) SetDetailRatio(value int) { - objc.Call[objc.Void](i_, objc.Sel("setDetailRatio:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618925-minlinelength?language=objc +func (i_ ImageEDLines) SetMinLineLength(value int) { + objc.Call[objc.Void](i_, objc.Sel("setMinLineLength:"), value) } // [Full Topic] @@ -196,53 +181,68 @@ func (i_ ImageEDLines) SetLineErrorThreshold(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618924-mergelocalitythreshold?language=objc -func (i_ ImageEDLines) MergeLocalityThreshold() float32 { - rv := objc.Call[float32](i_, objc.Sel("mergeLocalityThreshold")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618918-gaussiansigma?language=objc +func (i_ ImageEDLines) GaussianSigma() float32 { + rv := objc.Call[float32](i_, objc.Sel("gaussianSigma")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618924-mergelocalitythreshold?language=objc -func (i_ ImageEDLines) SetMergeLocalityThreshold(value float32) { - objc.Call[objc.Void](i_, objc.Sel("setMergeLocalityThreshold:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618916-detailratio?language=objc +func (i_ ImageEDLines) DetailRatio() int { + rv := objc.Call[int](i_, objc.Sel("detailRatio")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618925-minlinelength?language=objc -func (i_ ImageEDLines) MinLineLength() int { - rv := objc.Call[int](i_, objc.Sel("minLineLength")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618916-detailratio?language=objc +func (i_ ImageEDLines) SetDetailRatio(value int) { + objc.Call[objc.Void](i_, objc.Sel("setDetailRatio:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618919-gradientthreshold?language=objc +func (i_ ImageEDLines) GradientThreshold() float32 { + rv := objc.Call[float32](i_, objc.Sel("gradientThreshold")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618925-minlinelength?language=objc -func (i_ ImageEDLines) SetMinLineLength(value int) { - objc.Call[objc.Void](i_, objc.Sel("setMinLineLength:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618919-gradientthreshold?language=objc +func (i_ ImageEDLines) SetGradientThreshold(value float32) { + objc.Call[objc.Void](i_, objc.Sel("setGradientThreshold:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618923-maxlines?language=objc -func (i_ ImageEDLines) MaxLines() uint { - rv := objc.Call[uint](i_, objc.Sel("maxLines")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618915-cliprectsource?language=objc +func (i_ ImageEDLines) ClipRectSource() metal.Region { + rv := objc.Call[metal.Region](i_, objc.Sel("clipRectSource")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618923-maxlines?language=objc -func (i_ ImageEDLines) SetMaxLines(value uint) { - objc.Call[objc.Void](i_, objc.Sel("setMaxLines:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618915-cliprectsource?language=objc +func (i_ ImageEDLines) SetClipRectSource(value metal.Region) { + objc.Call[objc.Void](i_, objc.Sel("setClipRectSource:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618918-gaussiansigma?language=objc -func (i_ ImageEDLines) GaussianSigma() float32 { - rv := objc.Call[float32](i_, objc.Sel("gaussianSigma")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618924-mergelocalitythreshold?language=objc +func (i_ ImageEDLines) MergeLocalityThreshold() float32 { + rv := objc.Call[float32](i_, objc.Sel("mergeLocalityThreshold")) return rv } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618924-mergelocalitythreshold?language=objc +func (i_ ImageEDLines) SetMergeLocalityThreshold(value float32) { + objc.Call[objc.Void](i_, objc.Sel("setMergeLocalityThreshold:"), value) +} diff --git a/macos/mps/image_find_keypoints.gen.go b/macos/mps/image_find_keypoints.gen.go index 9d151dff..1b1ed316 100644 --- a/macos/mps/image_find_keypoints.gen.go +++ b/macos/mps/image_find_keypoints.gen.go @@ -72,32 +72,32 @@ func (i_ ImageFindKeypoints) Init() ImageFindKeypoints { return rv } -func (i_ ImageFindKeypoints) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageFindKeypoints { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageFindKeypoints](i_, objc.Sel("copyWithZone:device:"), zone, po1) +func (i_ ImageFindKeypoints) InitWithDevice(device metal.PDevice) ImageFindKeypoints { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[ImageFindKeypoints](i_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func ImageFindKeypoints_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageFindKeypoints { - instance := ImageFindKeypointsClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewImageFindKeypointsWithDevice(device metal.PDevice) ImageFindKeypoints { + instance := ImageFindKeypointsClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (i_ ImageFindKeypoints) InitWithDevice(device metal.PDevice) ImageFindKeypoints { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageFindKeypoints](i_, objc.Sel("initWithDevice:"), po0) +func (i_ ImageFindKeypoints) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageFindKeypoints { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[ImageFindKeypoints](i_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewImageFindKeypointsWithDevice(device metal.PDevice) ImageFindKeypoints { - instance := ImageFindKeypointsClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func ImageFindKeypoints_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageFindKeypoints { + instance := ImageFindKeypointsClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/image_gaussian_pyramid.gen.go b/macos/mps/image_gaussian_pyramid.gen.go index 9df6b6e3..aba997b3 100644 --- a/macos/mps/image_gaussian_pyramid.gen.go +++ b/macos/mps/image_gaussian_pyramid.gen.go @@ -69,36 +69,6 @@ func NewImageGaussianPyramidWithDevice(device metal.PDevice) ImageGaussianPyrami return instance } -func (i_ ImageGaussianPyramid) InitWithDeviceCenterWeight(device metal.PDevice, centerWeight float32) ImageGaussianPyramid { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageGaussianPyramid](i_, objc.Sel("initWithDevice:centerWeight:"), po0, centerWeight) - return rv -} - -// Initialize a downwards 5-tap image pyramid with a central weight parameter and device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648889-initwithdevice?language=objc -func NewImageGaussianPyramidWithDeviceCenterWeight(device metal.PDevice, centerWeight float32) ImageGaussianPyramid { - instance := ImageGaussianPyramidClass.Alloc().InitWithDeviceCenterWeight(device, centerWeight) - instance.Autorelease() - return instance -} - -func (i_ ImageGaussianPyramid) InitWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float32) ImageGaussianPyramid { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageGaussianPyramid](i_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:weights:"), po0, kernelWidth, kernelHeight, kernelWeights) - return rv -} - -// Initialize a downwards n-tap image pyramid with a custom filter kernel and device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648821-initwithdevice?language=objc -func NewImageGaussianPyramidWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float32) ImageGaussianPyramid { - instance := ImageGaussianPyramidClass.Alloc().InitWithDeviceKernelWidthKernelHeightWeights(device, kernelWidth, kernelHeight, kernelWeights) - instance.Autorelease() - return instance -} - func (i_ ImageGaussianPyramid) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageGaussianPyramid { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageGaussianPyramid](i_, objc.Sel("copyWithZone:device:"), zone, po1) diff --git a/macos/mps/image_guided_filter.gen.go b/macos/mps/image_guided_filter.gen.go index 8cb50a4b..4ac1e170 100644 --- a/macos/mps/image_guided_filter.gen.go +++ b/macos/mps/image_guided_filter.gen.go @@ -19,21 +19,17 @@ type _ImageGuidedFilterClass struct { // An interface definition for the [ImageGuidedFilter] class. type IImageGuidedFilter interface { IKernel - EncodeRegressionToCommandBufferSourceTextureGuidanceTextureWeightsTextureDestinationCoefficientsTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, guidanceTexture metal.PTexture, weightsTexture metal.PTexture, destinationCoefficientsTexture metal.PTexture) - EncodeRegressionToCommandBufferObjectSourceTextureObjectGuidanceTextureObjectWeightsTextureObjectDestinationCoefficientsTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, guidanceTextureObject objc.IObject, weightsTextureObject objc.IObject, destinationCoefficientsTextureObject objc.IObject) - EncodeRegressionToCommandBufferSourceTextureGuidanceTextureWeightsTextureDestinationCoefficientsTextureADestinationCoefficientsTextureB(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, guidanceTexture metal.PTexture, weightsTexture metal.PTexture, destinationCoefficientsTextureA metal.PTexture, destinationCoefficientsTextureB metal.PTexture) - EncodeRegressionToCommandBufferObjectSourceTextureObjectGuidanceTextureObjectWeightsTextureObjectDestinationCoefficientsTextureAObjectDestinationCoefficientsTextureBObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, guidanceTextureObject objc.IObject, weightsTextureObject objc.IObject, destinationCoefficientsTextureAObject objc.IObject, destinationCoefficientsTextureBObject objc.IObject) - EncodeReconstructionToCommandBufferGuidanceTextureCoefficientsTextureACoefficientsTextureBDestinationTexture(commandBuffer metal.PCommandBuffer, guidanceTexture metal.PTexture, coefficientsTextureA metal.PTexture, coefficientsTextureB metal.PTexture, destinationTexture metal.PTexture) - EncodeReconstructionToCommandBufferObjectGuidanceTextureObjectCoefficientsTextureAObjectCoefficientsTextureBObjectDestinationTextureObject(commandBufferObject objc.IObject, guidanceTextureObject objc.IObject, coefficientsTextureAObject objc.IObject, coefficientsTextureBObject objc.IObject, destinationTextureObject objc.IObject) EncodeReconstructionToCommandBufferGuidanceTextureCoefficientsTextureDestinationTexture(commandBuffer metal.PCommandBuffer, guidanceTexture metal.PTexture, coefficientsTexture metal.PTexture, destinationTexture metal.PTexture) EncodeReconstructionToCommandBufferObjectGuidanceTextureObjectCoefficientsTextureObjectDestinationTextureObject(commandBufferObject objc.IObject, guidanceTextureObject objc.IObject, coefficientsTextureObject objc.IObject, destinationTextureObject objc.IObject) - ReconstructScale() float32 - SetReconstructScale(value float32) - KernelDiameter() uint + EncodeRegressionToCommandBufferSourceTextureGuidanceTextureWeightsTextureDestinationCoefficientsTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, guidanceTexture metal.PTexture, weightsTexture metal.PTexture, destinationCoefficientsTexture metal.PTexture) + EncodeRegressionToCommandBufferObjectSourceTextureObjectGuidanceTextureObjectWeightsTextureObjectDestinationCoefficientsTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, guidanceTextureObject objc.IObject, weightsTextureObject objc.IObject, destinationCoefficientsTextureObject objc.IObject) ReconstructOffset() float32 SetReconstructOffset(value float32) Epsilon() float32 SetEpsilon(value float32) + ReconstructScale() float32 + SetReconstructScale(value float32) + KernelDiameter() uint } // A filter that performs edge-aware filtering on an image. [Full Topic] @@ -84,6 +80,21 @@ func (i_ ImageGuidedFilter) Init() ImageGuidedFilter { return rv } +func (i_ ImageGuidedFilter) InitWithDevice(device metal.PDevice) ImageGuidedFilter { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[ImageGuidedFilter](i_, objc.Sel("initWithDevice:"), po0) + return rv +} + +// Initializes a new kernel object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewImageGuidedFilterWithDevice(device metal.PDevice) ImageGuidedFilter { + instance := ImageGuidedFilterClass.Alloc().InitWithDevice(device) + instance.Autorelease() + return instance +} + func (i_ ImageGuidedFilter) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageGuidedFilter { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageGuidedFilter](i_, objc.Sel("copyWithZone:device:"), zone, po1) @@ -99,19 +110,22 @@ func ImageGuidedFilter_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev return instance } -func (i_ ImageGuidedFilter) InitWithDevice(device metal.PDevice) ImageGuidedFilter { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageGuidedFilter](i_, objc.Sel("initWithDevice:"), po0) - return rv +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2951906-encodereconstructiontocommandbuf?language=objc +func (i_ ImageGuidedFilter) EncodeReconstructionToCommandBufferGuidanceTextureCoefficientsTextureDestinationTexture(commandBuffer metal.PCommandBuffer, guidanceTexture metal.PTexture, coefficientsTexture metal.PTexture, destinationTexture metal.PTexture) { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + po1 := objc.WrapAsProtocol("MTLTexture", guidanceTexture) + po2 := objc.WrapAsProtocol("MTLTexture", coefficientsTexture) + po3 := objc.WrapAsProtocol("MTLTexture", destinationTexture) + objc.Call[objc.Void](i_, objc.Sel("encodeReconstructionToCommandBuffer:guidanceTexture:coefficientsTexture:destinationTexture:"), po0, po1, po2, po3) } -// Initializes a new kernel object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewImageGuidedFilterWithDevice(device metal.PDevice) ImageGuidedFilter { - instance := ImageGuidedFilterClass.Alloc().InitWithDevice(device) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2951906-encodereconstructiontocommandbuf?language=objc +func (i_ ImageGuidedFilter) EncodeReconstructionToCommandBufferObjectGuidanceTextureObjectCoefficientsTextureObjectDestinationTextureObject(commandBufferObject objc.IObject, guidanceTextureObject objc.IObject, coefficientsTextureObject objc.IObject, destinationTextureObject objc.IObject) { + objc.Call[objc.Void](i_, objc.Sel("encodeReconstructionToCommandBuffer:guidanceTexture:coefficientsTexture:destinationTexture:"), commandBufferObject, guidanceTextureObject, coefficientsTextureObject, destinationTextureObject) } // [Full Topic] @@ -135,59 +149,32 @@ func (i_ ImageGuidedFilter) EncodeRegressionToCommandBufferObjectSourceTextureOb // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/3516399-encoderegressiontocommandbuffer?language=objc -func (i_ ImageGuidedFilter) EncodeRegressionToCommandBufferSourceTextureGuidanceTextureWeightsTextureDestinationCoefficientsTextureADestinationCoefficientsTextureB(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, guidanceTexture metal.PTexture, weightsTexture metal.PTexture, destinationCoefficientsTextureA metal.PTexture, destinationCoefficientsTextureB metal.PTexture) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po2 := objc.WrapAsProtocol("MTLTexture", guidanceTexture) - po3 := objc.WrapAsProtocol("MTLTexture", weightsTexture) - po4 := objc.WrapAsProtocol("MTLTexture", destinationCoefficientsTextureA) - po5 := objc.WrapAsProtocol("MTLTexture", destinationCoefficientsTextureB) - objc.Call[objc.Void](i_, objc.Sel("encodeRegressionToCommandBuffer:sourceTexture:guidanceTexture:weightsTexture:destinationCoefficientsTextureA:destinationCoefficientsTextureB:"), po0, po1, po2, po3, po4, po5) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/3516399-encoderegressiontocommandbuffer?language=objc -func (i_ ImageGuidedFilter) EncodeRegressionToCommandBufferObjectSourceTextureObjectGuidanceTextureObjectWeightsTextureObjectDestinationCoefficientsTextureAObjectDestinationCoefficientsTextureBObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, guidanceTextureObject objc.IObject, weightsTextureObject objc.IObject, destinationCoefficientsTextureAObject objc.IObject, destinationCoefficientsTextureBObject objc.IObject) { - objc.Call[objc.Void](i_, objc.Sel("encodeRegressionToCommandBuffer:sourceTexture:guidanceTexture:weightsTexture:destinationCoefficientsTextureA:destinationCoefficientsTextureB:"), commandBufferObject, sourceTextureObject, guidanceTextureObject, weightsTextureObject, destinationCoefficientsTextureAObject, destinationCoefficientsTextureBObject) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/3516398-encodereconstructiontocommandbuf?language=objc -func (i_ ImageGuidedFilter) EncodeReconstructionToCommandBufferGuidanceTextureCoefficientsTextureACoefficientsTextureBDestinationTexture(commandBuffer metal.PCommandBuffer, guidanceTexture metal.PTexture, coefficientsTextureA metal.PTexture, coefficientsTextureB metal.PTexture, destinationTexture metal.PTexture) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", guidanceTexture) - po2 := objc.WrapAsProtocol("MTLTexture", coefficientsTextureA) - po3 := objc.WrapAsProtocol("MTLTexture", coefficientsTextureB) - po4 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - objc.Call[objc.Void](i_, objc.Sel("encodeReconstructionToCommandBuffer:guidanceTexture:coefficientsTextureA:coefficientsTextureB:destinationTexture:"), po0, po1, po2, po3, po4) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2953079-reconstructoffset?language=objc +func (i_ ImageGuidedFilter) ReconstructOffset() float32 { + rv := objc.Call[float32](i_, objc.Sel("reconstructOffset")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/3516398-encodereconstructiontocommandbuf?language=objc -func (i_ ImageGuidedFilter) EncodeReconstructionToCommandBufferObjectGuidanceTextureObjectCoefficientsTextureAObjectCoefficientsTextureBObjectDestinationTextureObject(commandBufferObject objc.IObject, guidanceTextureObject objc.IObject, coefficientsTextureAObject objc.IObject, coefficientsTextureBObject objc.IObject, destinationTextureObject objc.IObject) { - objc.Call[objc.Void](i_, objc.Sel("encodeReconstructionToCommandBuffer:guidanceTexture:coefficientsTextureA:coefficientsTextureB:destinationTexture:"), commandBufferObject, guidanceTextureObject, coefficientsTextureAObject, coefficientsTextureBObject, destinationTextureObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2953079-reconstructoffset?language=objc +func (i_ ImageGuidedFilter) SetReconstructOffset(value float32) { + objc.Call[objc.Void](i_, objc.Sel("setReconstructOffset:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2951906-encodereconstructiontocommandbuf?language=objc -func (i_ ImageGuidedFilter) EncodeReconstructionToCommandBufferGuidanceTextureCoefficientsTextureDestinationTexture(commandBuffer metal.PCommandBuffer, guidanceTexture metal.PTexture, coefficientsTexture metal.PTexture, destinationTexture metal.PTexture) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", guidanceTexture) - po2 := objc.WrapAsProtocol("MTLTexture", coefficientsTexture) - po3 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - objc.Call[objc.Void](i_, objc.Sel("encodeReconstructionToCommandBuffer:guidanceTexture:coefficientsTexture:destinationTexture:"), po0, po1, po2, po3) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2951908-epsilon?language=objc +func (i_ ImageGuidedFilter) Epsilon() float32 { + rv := objc.Call[float32](i_, objc.Sel("epsilon")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2951906-encodereconstructiontocommandbuf?language=objc -func (i_ ImageGuidedFilter) EncodeReconstructionToCommandBufferObjectGuidanceTextureObjectCoefficientsTextureObjectDestinationTextureObject(commandBufferObject objc.IObject, guidanceTextureObject objc.IObject, coefficientsTextureObject objc.IObject, destinationTextureObject objc.IObject) { - objc.Call[objc.Void](i_, objc.Sel("encodeReconstructionToCommandBuffer:guidanceTexture:coefficientsTexture:destinationTexture:"), commandBufferObject, guidanceTextureObject, coefficientsTextureObject, destinationTextureObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2951908-epsilon?language=objc +func (i_ ImageGuidedFilter) SetEpsilon(value float32) { + objc.Call[objc.Void](i_, objc.Sel("setEpsilon:"), value) } // [Full Topic] @@ -212,33 +199,3 @@ func (i_ ImageGuidedFilter) KernelDiameter() uint { rv := objc.Call[uint](i_, objc.Sel("kernelDiameter")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2953079-reconstructoffset?language=objc -func (i_ ImageGuidedFilter) ReconstructOffset() float32 { - rv := objc.Call[float32](i_, objc.Sel("reconstructOffset")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2953079-reconstructoffset?language=objc -func (i_ ImageGuidedFilter) SetReconstructOffset(value float32) { - objc.Call[objc.Void](i_, objc.Sel("setReconstructOffset:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2951908-epsilon?language=objc -func (i_ ImageGuidedFilter) Epsilon() float32 { - rv := objc.Call[float32](i_, objc.Sel("epsilon")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2951908-epsilon?language=objc -func (i_ ImageGuidedFilter) SetEpsilon(value float32) { - objc.Call[objc.Void](i_, objc.Sel("setEpsilon:"), value) -} diff --git a/macos/mps/image_histogram.gen.go b/macos/mps/image_histogram.gen.go index 9c99e68e..b5ecb248 100644 --- a/macos/mps/image_histogram.gen.go +++ b/macos/mps/image_histogram.gen.go @@ -20,14 +20,14 @@ type _ImageHistogramClass struct { // An interface definition for the [ImageHistogram] class. type IImageHistogram interface { IKernel + HistogramSizeForSourceFormat(sourceFormat metal.PixelFormat) uint EncodeToCommandBufferSourceTextureHistogramHistogramOffset(commandBuffer metal.PCommandBuffer, source metal.PTexture, histogram metal.PBuffer, histogramOffset uint) EncodeToCommandBufferObjectSourceTextureObjectHistogramObjectHistogramOffset(commandBufferObject objc.IObject, sourceObject objc.IObject, histogramObject objc.IObject, histogramOffset uint) - HistogramSizeForSourceFormat(sourceFormat metal.PixelFormat) uint - ZeroHistogram() bool - SetZeroHistogram(value bool) + HistogramInfo() ImageHistogramInfo MinPixelThresholdValue() kernel.Vector_float4 SetMinPixelThresholdValue(value kernel.Vector_float4) - HistogramInfo() ImageHistogramInfo + ZeroHistogram() bool + SetZeroHistogram(value bool) ClipRectSource() metal.Region SetClipRectSource(value metal.Region) } @@ -80,6 +80,21 @@ func (i_ ImageHistogram) Init() ImageHistogram { return rv } +func (i_ ImageHistogram) InitWithDevice(device metal.PDevice) ImageHistogram { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[ImageHistogram](i_, objc.Sel("initWithDevice:"), po0) + return rv +} + +// Initializes a new kernel object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewImageHistogramWithDevice(device metal.PDevice) ImageHistogram { + instance := ImageHistogramClass.Alloc().InitWithDevice(device) + instance.Autorelease() + return instance +} + func (i_ ImageHistogram) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageHistogram { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageHistogram](i_, objc.Sel("copyWithZone:device:"), zone, po1) @@ -95,19 +110,12 @@ func ImageHistogram_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice return instance } -func (i_ ImageHistogram) InitWithDevice(device metal.PDevice) ImageHistogram { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageHistogram](i_, objc.Sel("initWithDevice:"), po0) - return rv -} - -// Initializes a new kernel object. [Full Topic] +// The amount of space the histogram will take up in the output buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewImageHistogramWithDevice(device metal.PDevice) ImageHistogram { - instance := ImageHistogramClass.Alloc().InitWithDevice(device) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/1618839-histogramsizeforsourceformat?language=objc +func (i_ ImageHistogram) HistogramSizeForSourceFormat(sourceFormat metal.PixelFormat) uint { + rv := objc.Call[uint](i_, objc.Sel("histogramSizeForSourceFormat:"), sourceFormat) + return rv } // Encodes the filter to a command buffer using a compute command encoder. [Full Topic] @@ -127,29 +135,14 @@ func (i_ ImageHistogram) EncodeToCommandBufferObjectSourceTextureObjectHistogram objc.Call[objc.Void](i_, objc.Sel("encodeToCommandBuffer:sourceTexture:histogram:histogramOffset:"), commandBufferObject, sourceObject, histogramObject, histogramOffset) } -// The amount of space the histogram will take up in the output buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/1618839-histogramsizeforsourceformat?language=objc -func (i_ ImageHistogram) HistogramSizeForSourceFormat(sourceFormat metal.PixelFormat) uint { - rv := objc.Call[uint](i_, objc.Sel("histogramSizeForSourceFormat:"), sourceFormat) - return rv -} - -// Determines whether to zero-initialize the histogram results. [Full Topic] +// A structure describing the histogram content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/1618891-zerohistogram?language=objc -func (i_ ImageHistogram) ZeroHistogram() bool { - rv := objc.Call[bool](i_, objc.Sel("zeroHistogram")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/1618844-histograminfo?language=objc +func (i_ ImageHistogram) HistogramInfo() ImageHistogramInfo { + rv := objc.Call[ImageHistogramInfo](i_, objc.Sel("histogramInfo")) return rv } -// Determines whether to zero-initialize the histogram results. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/1618891-zerohistogram?language=objc -func (i_ ImageHistogram) SetZeroHistogram(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setZeroHistogram:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/2867008-minpixelthresholdvalue?language=objc @@ -165,14 +158,21 @@ func (i_ ImageHistogram) SetMinPixelThresholdValue(value kernel.Vector_float4) { objc.Call[objc.Void](i_, objc.Sel("setMinPixelThresholdValue:"), value) } -// A structure describing the histogram content. [Full Topic] +// Determines whether to zero-initialize the histogram results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/1618844-histograminfo?language=objc -func (i_ ImageHistogram) HistogramInfo() ImageHistogramInfo { - rv := objc.Call[ImageHistogramInfo](i_, objc.Sel("histogramInfo")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/1618891-zerohistogram?language=objc +func (i_ ImageHistogram) ZeroHistogram() bool { + rv := objc.Call[bool](i_, objc.Sel("zeroHistogram")) return rv } +// Determines whether to zero-initialize the histogram results. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/1618891-zerohistogram?language=objc +func (i_ ImageHistogram) SetZeroHistogram(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setZeroHistogram:"), value) +} + // The source rectangle to use when reading data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/1618765-cliprectsource?language=objc diff --git a/macos/mps/image_laplacian_pyramid.gen.go b/macos/mps/image_laplacian_pyramid.gen.go index feb483e6..64c47a50 100644 --- a/macos/mps/image_laplacian_pyramid.gen.go +++ b/macos/mps/image_laplacian_pyramid.gen.go @@ -73,36 +73,6 @@ func NewImageLaplacianPyramidWithDevice(device metal.PDevice) ImageLaplacianPyra return instance } -func (i_ ImageLaplacianPyramid) InitWithDeviceCenterWeight(device metal.PDevice, centerWeight float32) ImageLaplacianPyramid { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageLaplacianPyramid](i_, objc.Sel("initWithDevice:centerWeight:"), po0, centerWeight) - return rv -} - -// Initialize a downwards 5-tap image pyramid with a central weight parameter and device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648889-initwithdevice?language=objc -func NewImageLaplacianPyramidWithDeviceCenterWeight(device metal.PDevice, centerWeight float32) ImageLaplacianPyramid { - instance := ImageLaplacianPyramidClass.Alloc().InitWithDeviceCenterWeight(device, centerWeight) - instance.Autorelease() - return instance -} - -func (i_ ImageLaplacianPyramid) InitWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float32) ImageLaplacianPyramid { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageLaplacianPyramid](i_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:weights:"), po0, kernelWidth, kernelHeight, kernelWeights) - return rv -} - -// Initialize a downwards n-tap image pyramid with a custom filter kernel and device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648821-initwithdevice?language=objc -func NewImageLaplacianPyramidWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float32) ImageLaplacianPyramid { - instance := ImageLaplacianPyramidClass.Alloc().InitWithDeviceKernelWidthKernelHeightWeights(device, kernelWidth, kernelHeight, kernelWeights) - instance.Autorelease() - return instance -} - func (i_ ImageLaplacianPyramid) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageLaplacianPyramid { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageLaplacianPyramid](i_, objc.Sel("copyWithZone:device:"), zone, po1) diff --git a/macos/mps/image_laplacian_pyramid_add.gen.go b/macos/mps/image_laplacian_pyramid_add.gen.go index f1f27536..d6abd0c7 100644 --- a/macos/mps/image_laplacian_pyramid_add.gen.go +++ b/macos/mps/image_laplacian_pyramid_add.gen.go @@ -69,36 +69,6 @@ func NewImageLaplacianPyramidAddWithDevice(device metal.PDevice) ImageLaplacianP return instance } -func (i_ ImageLaplacianPyramidAdd) InitWithDeviceCenterWeight(device metal.PDevice, centerWeight float32) ImageLaplacianPyramidAdd { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageLaplacianPyramidAdd](i_, objc.Sel("initWithDevice:centerWeight:"), po0, centerWeight) - return rv -} - -// Initialize a downwards 5-tap image pyramid with a central weight parameter and device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648889-initwithdevice?language=objc -func NewImageLaplacianPyramidAddWithDeviceCenterWeight(device metal.PDevice, centerWeight float32) ImageLaplacianPyramidAdd { - instance := ImageLaplacianPyramidAddClass.Alloc().InitWithDeviceCenterWeight(device, centerWeight) - instance.Autorelease() - return instance -} - -func (i_ ImageLaplacianPyramidAdd) InitWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float32) ImageLaplacianPyramidAdd { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageLaplacianPyramidAdd](i_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:weights:"), po0, kernelWidth, kernelHeight, kernelWeights) - return rv -} - -// Initialize a downwards n-tap image pyramid with a custom filter kernel and device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648821-initwithdevice?language=objc -func NewImageLaplacianPyramidAddWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float32) ImageLaplacianPyramidAdd { - instance := ImageLaplacianPyramidAddClass.Alloc().InitWithDeviceKernelWidthKernelHeightWeights(device, kernelWidth, kernelHeight, kernelWeights) - instance.Autorelease() - return instance -} - func (i_ ImageLaplacianPyramidAdd) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageLaplacianPyramidAdd { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageLaplacianPyramidAdd](i_, objc.Sel("copyWithZone:device:"), zone, po1) diff --git a/macos/mps/image_laplacian_pyramid_subtract.gen.go b/macos/mps/image_laplacian_pyramid_subtract.gen.go index d27fb1bf..bd7b4c5e 100644 --- a/macos/mps/image_laplacian_pyramid_subtract.gen.go +++ b/macos/mps/image_laplacian_pyramid_subtract.gen.go @@ -69,36 +69,6 @@ func NewImageLaplacianPyramidSubtractWithDevice(device metal.PDevice) ImageLapla return instance } -func (i_ ImageLaplacianPyramidSubtract) InitWithDeviceCenterWeight(device metal.PDevice, centerWeight float32) ImageLaplacianPyramidSubtract { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageLaplacianPyramidSubtract](i_, objc.Sel("initWithDevice:centerWeight:"), po0, centerWeight) - return rv -} - -// Initialize a downwards 5-tap image pyramid with a central weight parameter and device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648889-initwithdevice?language=objc -func NewImageLaplacianPyramidSubtractWithDeviceCenterWeight(device metal.PDevice, centerWeight float32) ImageLaplacianPyramidSubtract { - instance := ImageLaplacianPyramidSubtractClass.Alloc().InitWithDeviceCenterWeight(device, centerWeight) - instance.Autorelease() - return instance -} - -func (i_ ImageLaplacianPyramidSubtract) InitWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float32) ImageLaplacianPyramidSubtract { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageLaplacianPyramidSubtract](i_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:weights:"), po0, kernelWidth, kernelHeight, kernelWeights) - return rv -} - -// Initialize a downwards n-tap image pyramid with a custom filter kernel and device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648821-initwithdevice?language=objc -func NewImageLaplacianPyramidSubtractWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float32) ImageLaplacianPyramidSubtract { - instance := ImageLaplacianPyramidSubtractClass.Alloc().InitWithDeviceKernelWidthKernelHeightWeights(device, kernelWidth, kernelHeight, kernelWeights) - instance.Autorelease() - return instance -} - func (i_ ImageLaplacianPyramidSubtract) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageLaplacianPyramidSubtract { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageLaplacianPyramidSubtract](i_, objc.Sel("copyWithZone:device:"), zone, po1) diff --git a/macos/mps/image_median.gen.go b/macos/mps/image_median.gen.go index e6369de2..ef0e456c 100644 --- a/macos/mps/image_median.gen.go +++ b/macos/mps/image_median.gen.go @@ -100,21 +100,6 @@ func ImageMedian_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) I return instance } -// Queries the maximum diameter, in pixels, of the filter window supported by the median filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagemedian/1618830-maxkerneldiameter?language=objc -func (ic _ImageMedianClass) MaxKernelDiameter() uint { - rv := objc.Call[uint](ic, objc.Sel("maxKernelDiameter")) - return rv -} - -// Queries the maximum diameter, in pixels, of the filter window supported by the median filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagemedian/1618830-maxkerneldiameter?language=objc -func ImageMedian_MaxKernelDiameter() uint { - return ImageMedianClass.MaxKernelDiameter() -} - // Queries the minimum diameter, in pixels, of the filter window supported by the median filter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagemedian/1618864-minkerneldiameter?language=objc @@ -130,6 +115,21 @@ func ImageMedian_MinKernelDiameter() uint { return ImageMedianClass.MinKernelDiameter() } +// Queries the maximum diameter, in pixels, of the filter window supported by the median filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagemedian/1618830-maxkerneldiameter?language=objc +func (ic _ImageMedianClass) MaxKernelDiameter() uint { + rv := objc.Call[uint](ic, objc.Sel("maxKernelDiameter")) + return rv +} + +// Queries the maximum diameter, in pixels, of the filter window supported by the median filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagemedian/1618830-maxkerneldiameter?language=objc +func ImageMedian_MaxKernelDiameter() uint { + return ImageMedianClass.MaxKernelDiameter() +} + // The diameter, in pixels, of the filter window. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagemedian/1618909-kerneldiameter?language=objc diff --git a/macos/mps/image_normalized_histogram.gen.go b/macos/mps/image_normalized_histogram.gen.go index 0e52d24b..7a85de66 100644 --- a/macos/mps/image_normalized_histogram.gen.go +++ b/macos/mps/image_normalized_histogram.gen.go @@ -19,14 +19,14 @@ type _ImageNormalizedHistogramClass struct { // An interface definition for the [ImageNormalizedHistogram] class. type IImageNormalizedHistogram interface { IKernel + HistogramSizeForSourceFormat(sourceFormat metal.PixelFormat) uint EncodeToCommandBufferSourceTextureMinmaxTextureHistogramHistogramOffset(commandBuffer metal.PCommandBuffer, source metal.PTexture, minmaxTexture metal.PTexture, histogram metal.PBuffer, histogramOffset uint) EncodeToCommandBufferObjectSourceTextureObjectMinmaxTextureObjectHistogramObjectHistogramOffset(commandBufferObject objc.IObject, sourceObject objc.IObject, minmaxTextureObject objc.IObject, histogramObject objc.IObject, histogramOffset uint) - HistogramSizeForSourceFormat(sourceFormat metal.PixelFormat) uint - ClipRectSource() metal.Region - SetClipRectSource(value metal.Region) + HistogramInfo() ImageHistogramInfo ZeroHistogram() bool SetZeroHistogram(value bool) - HistogramInfo() ImageHistogramInfo + ClipRectSource() metal.Region + SetClipRectSource(value metal.Region) } // A filter that computes the normalized histogram of an image. [Full Topic] @@ -77,6 +77,21 @@ func (i_ ImageNormalizedHistogram) Init() ImageNormalizedHistogram { return rv } +func (i_ ImageNormalizedHistogram) InitWithDevice(device metal.PDevice) ImageNormalizedHistogram { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[ImageNormalizedHistogram](i_, objc.Sel("initWithDevice:"), po0) + return rv +} + +// Initializes a new kernel object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewImageNormalizedHistogramWithDevice(device metal.PDevice) ImageNormalizedHistogram { + instance := ImageNormalizedHistogramClass.Alloc().InitWithDevice(device) + instance.Autorelease() + return instance +} + func (i_ ImageNormalizedHistogram) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageNormalizedHistogram { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageNormalizedHistogram](i_, objc.Sel("copyWithZone:device:"), zone, po1) @@ -92,19 +107,12 @@ func ImageNormalizedHistogram_CopyWithZoneDevice(zone unsafe.Pointer, device met return instance } -func (i_ ImageNormalizedHistogram) InitWithDevice(device metal.PDevice) ImageNormalizedHistogram { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageNormalizedHistogram](i_, objc.Sel("initWithDevice:"), po0) - return rv -} - -// Initializes a new kernel object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewImageNormalizedHistogramWithDevice(device metal.PDevice) ImageNormalizedHistogram { - instance := ImageNormalizedHistogramClass.Alloc().InitWithDevice(device) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagenormalizedhistogram/3019324-histogramsizeforsourceformat?language=objc +func (i_ ImageNormalizedHistogram) HistogramSizeForSourceFormat(sourceFormat metal.PixelFormat) uint { + rv := objc.Call[uint](i_, objc.Sel("histogramSizeForSourceFormat:"), sourceFormat) + return rv } // [Full Topic] @@ -127,27 +135,12 @@ func (i_ ImageNormalizedHistogram) EncodeToCommandBufferObjectSourceTextureObjec // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagenormalizedhistogram/3019324-histogramsizeforsourceformat?language=objc -func (i_ ImageNormalizedHistogram) HistogramSizeForSourceFormat(sourceFormat metal.PixelFormat) uint { - rv := objc.Call[uint](i_, objc.Sel("histogramSizeForSourceFormat:"), sourceFormat) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagenormalizedhistogram/3019321-cliprectsource?language=objc -func (i_ ImageNormalizedHistogram) ClipRectSource() metal.Region { - rv := objc.Call[metal.Region](i_, objc.Sel("clipRectSource")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagenormalizedhistogram/3019323-histograminfo?language=objc +func (i_ ImageNormalizedHistogram) HistogramInfo() ImageHistogramInfo { + rv := objc.Call[ImageHistogramInfo](i_, objc.Sel("histogramInfo")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagenormalizedhistogram/3019321-cliprectsource?language=objc -func (i_ ImageNormalizedHistogram) SetClipRectSource(value metal.Region) { - objc.Call[objc.Void](i_, objc.Sel("setClipRectSource:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagenormalizedhistogram/3019327-zerohistogram?language=objc @@ -165,8 +158,15 @@ func (i_ ImageNormalizedHistogram) SetZeroHistogram(value bool) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagenormalizedhistogram/3019323-histograminfo?language=objc -func (i_ ImageNormalizedHistogram) HistogramInfo() ImageHistogramInfo { - rv := objc.Call[ImageHistogramInfo](i_, objc.Sel("histogramInfo")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagenormalizedhistogram/3019321-cliprectsource?language=objc +func (i_ ImageNormalizedHistogram) ClipRectSource() metal.Region { + rv := objc.Call[metal.Region](i_, objc.Sel("clipRectSource")) return rv } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagenormalizedhistogram/3019321-cliprectsource?language=objc +func (i_ ImageNormalizedHistogram) SetClipRectSource(value metal.Region) { + objc.Call[objc.Void](i_, objc.Sel("setClipRectSource:"), value) +} diff --git a/macos/mps/image_pyramid.gen.go b/macos/mps/image_pyramid.gen.go index 903253b8..53579d42 100644 --- a/macos/mps/image_pyramid.gen.go +++ b/macos/mps/image_pyramid.gen.go @@ -19,8 +19,8 @@ type _ImagePyramidClass struct { // An interface definition for the [ImagePyramid] class. type IImagePyramid interface { IUnaryImageKernel - KernelWidth() uint KernelHeight() uint + KernelWidth() uint } // A base class for creating different kinds of pyramid images. [Full Topic] @@ -51,36 +51,6 @@ func NewImagePyramidWithDevice(device metal.PDevice) ImagePyramid { return instance } -func (i_ ImagePyramid) InitWithDeviceCenterWeight(device metal.PDevice, centerWeight float32) ImagePyramid { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImagePyramid](i_, objc.Sel("initWithDevice:centerWeight:"), po0, centerWeight) - return rv -} - -// Initialize a downwards 5-tap image pyramid with a central weight parameter and device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648889-initwithdevice?language=objc -func NewImagePyramidWithDeviceCenterWeight(device metal.PDevice, centerWeight float32) ImagePyramid { - instance := ImagePyramidClass.Alloc().InitWithDeviceCenterWeight(device, centerWeight) - instance.Autorelease() - return instance -} - -func (i_ ImagePyramid) InitWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float32) ImagePyramid { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImagePyramid](i_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:weights:"), po0, kernelWidth, kernelHeight, kernelWeights) - return rv -} - -// Initialize a downwards n-tap image pyramid with a custom filter kernel and device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648821-initwithdevice?language=objc -func NewImagePyramidWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float32) ImagePyramid { - instance := ImagePyramidClass.Alloc().InitWithDeviceKernelWidthKernelHeightWeights(device, kernelWidth, kernelHeight, kernelWeights) - instance.Autorelease() - return instance -} - func (ic _ImagePyramidClass) Alloc() ImagePyramid { rv := objc.Call[ImagePyramid](ic, objc.Sel("alloc")) return rv @@ -116,14 +86,6 @@ func ImagePyramid_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) return instance } -// The width of the filter window. Must be an odd number. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648842-kernelwidth?language=objc -func (i_ ImagePyramid) KernelWidth() uint { - rv := objc.Call[uint](i_, objc.Sel("kernelWidth")) - return rv -} - // The height of the filter window. Must be an odd number. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648863-kernelheight?language=objc @@ -131,3 +93,11 @@ func (i_ ImagePyramid) KernelHeight() uint { rv := objc.Call[uint](i_, objc.Sel("kernelHeight")) return rv } + +// The width of the filter window. Must be an odd number. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagepyramid/1648842-kernelwidth?language=objc +func (i_ ImagePyramid) KernelWidth() uint { + rv := objc.Call[uint](i_, objc.Sel("kernelWidth")) + return rv +} diff --git a/macos/mps/image_sobel.gen.go b/macos/mps/image_sobel.gen.go index c5126be0..1baf7dfc 100644 --- a/macos/mps/image_sobel.gen.go +++ b/macos/mps/image_sobel.gen.go @@ -35,21 +35,6 @@ func ImageSobelFrom(ptr unsafe.Pointer) ImageSobel { } } -func (i_ ImageSobel) InitWithDeviceLinearGrayColorTransform(device metal.PDevice, transform *float32) ImageSobel { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[ImageSobel](i_, objc.Sel("initWithDevice:linearGrayColorTransform:"), po0, transform) - return rv -} - -// Initializes a Sobel filter on a given device using a specific color transform. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagesobel/1618899-initwithdevice?language=objc -func NewImageSobelWithDeviceLinearGrayColorTransform(device metal.PDevice, transform *float32) ImageSobel { - instance := ImageSobelClass.Alloc().InitWithDeviceLinearGrayColorTransform(device, transform) - instance.Autorelease() - return instance -} - func (i_ ImageSobel) InitWithDevice(device metal.PDevice) ImageSobel { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageSobel](i_, objc.Sel("initWithDevice:"), po0) diff --git a/macos/mps/image_threshold_truncate.gen.go b/macos/mps/image_threshold_truncate.gen.go index 98470ae6..ba802546 100644 --- a/macos/mps/image_threshold_truncate.gen.go +++ b/macos/mps/image_threshold_truncate.gen.go @@ -19,8 +19,8 @@ type _ImageThresholdTruncateClass struct { // An interface definition for the [ImageThresholdTruncate] class. type IImageThresholdTruncate interface { IUnaryImageKernel - ThresholdValue() float32 Transform() *float32 + ThresholdValue() float32 } // A filter that clamps the return value to an upper specified value. [Full Topic] @@ -101,14 +101,6 @@ func ImageThresholdTruncate_CopyWithZoneDevice(zone unsafe.Pointer, device metal return instance } -// The threshold value used to initialize the threshold filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagethresholdtruncate/1618882-thresholdvalue?language=objc -func (i_ ImageThresholdTruncate) ThresholdValue() float32 { - rv := objc.Call[float32](i_, objc.Sel("thresholdValue")) - return rv -} - // The color transform used to initialize the threshold filter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagethresholdtruncate/1618787-transform?language=objc @@ -116,3 +108,11 @@ func (i_ ImageThresholdTruncate) Transform() *float32 { rv := objc.Call[*float32](i_, objc.Sel("transform")) return rv } + +// The threshold value used to initialize the threshold filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagethresholdtruncate/1618882-thresholdvalue?language=objc +func (i_ ImageThresholdTruncate) ThresholdValue() float32 { + rv := objc.Call[float32](i_, objc.Sel("thresholdValue")) + return rv +} diff --git a/macos/mps/instance_acceleration_structure.gen.go b/macos/mps/instance_acceleration_structure.gen.go index b2d29ce9..ba49d340 100644 --- a/macos/mps/instance_acceleration_structure.gen.go +++ b/macos/mps/instance_acceleration_structure.gen.go @@ -54,32 +54,32 @@ func (i_ InstanceAccelerationStructure) Init() InstanceAccelerationStructure { return rv } -func (i_ InstanceAccelerationStructure) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) InstanceAccelerationStructure { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[InstanceAccelerationStructure](i_, objc.Sel("copyWithZone:device:"), zone, po1) +func (i_ InstanceAccelerationStructure) InitWithDevice(device metal.PDevice) InstanceAccelerationStructure { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[InstanceAccelerationStructure](i_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func InstanceAccelerationStructure_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) InstanceAccelerationStructure { - instance := InstanceAccelerationStructureClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewInstanceAccelerationStructureWithDevice(device metal.PDevice) InstanceAccelerationStructure { + instance := InstanceAccelerationStructureClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (i_ InstanceAccelerationStructure) InitWithDevice(device metal.PDevice) InstanceAccelerationStructure { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[InstanceAccelerationStructure](i_, objc.Sel("initWithDevice:"), po0) +func (i_ InstanceAccelerationStructure) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) InstanceAccelerationStructure { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[InstanceAccelerationStructure](i_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewInstanceAccelerationStructureWithDevice(device metal.PDevice) InstanceAccelerationStructure { - instance := InstanceAccelerationStructureClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func InstanceAccelerationStructure_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) InstanceAccelerationStructure { + instance := InstanceAccelerationStructureClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/kernel.gen.go b/macos/mps/kernel.gen.go index aa6b771c..e6910469 100644 --- a/macos/mps/kernel.gen.go +++ b/macos/mps/kernel.gen.go @@ -19,9 +19,9 @@ type _KernelClass struct { // An interface definition for the [Kernel] class. type IKernel interface { objc.IObject - Device() metal.DeviceObject Options() KernelOptions SetOptions(value KernelOptions) + Device() metal.DeviceObject Label() string SetLabel(value string) } @@ -39,32 +39,32 @@ func KernelFrom(ptr unsafe.Pointer) Kernel { } } -func (k_ Kernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) Kernel { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[Kernel](k_, objc.Sel("copyWithZone:device:"), zone, po1) +func (k_ Kernel) InitWithDevice(device metal.PDevice) Kernel { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[Kernel](k_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func Kernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) Kernel { - instance := KernelClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewKernelWithDevice(device metal.PDevice) Kernel { + instance := KernelClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (k_ Kernel) InitWithDevice(device metal.PDevice) Kernel { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[Kernel](k_, objc.Sel("initWithDevice:"), po0) +func (k_ Kernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) Kernel { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[Kernel](k_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewKernelWithDevice(device metal.PDevice) Kernel { - instance := KernelClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func Kernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) Kernel { + instance := KernelClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -89,14 +89,6 @@ func (k_ Kernel) Init() Kernel { return rv } -// The device on which the kernel will be used. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618824-device?language=objc -func (k_ Kernel) Device() metal.DeviceObject { - rv := objc.Call[metal.DeviceObject](k_, objc.Sel("device")) - return rv -} - // The set of options used to run the kernel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618889-options?language=objc @@ -112,6 +104,14 @@ func (k_ Kernel) SetOptions(value KernelOptions) { objc.Call[objc.Void](k_, objc.Sel("setOptions:"), value) } +// The device on which the kernel will be used. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618824-device?language=objc +func (k_ Kernel) Device() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](k_, objc.Sel("device")) + return rv +} + // The string that identifies the kernel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618803-label?language=objc diff --git a/macos/mps/keyed_unarchiver.gen.go b/macos/mps/keyed_unarchiver.gen.go index 36f71898..05e2138f 100644 --- a/macos/mps/keyed_unarchiver.gen.go +++ b/macos/mps/keyed_unarchiver.gen.go @@ -87,70 +87,70 @@ func NewKeyedUnarchiverForReadingFromDataError(data []byte, error unsafe.Pointer // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976454-unarchivedobjectofclasses?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassesFromDataDeviceError(classes foundation.ISet, data []byte, device metal.PDevice, error unsafe.Pointer) objc.Object { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976453-unarchivedobjectofclass?language=objc +func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassFromDataDeviceError(cls objc.IClass, data []byte, device metal.PDevice, error unsafe.Pointer) objc.Object { po2 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:device:error:"), classes, data, po2, error) + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:device:error:"), cls, data, po2, error) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976454-unarchivedobjectofclasses?language=objc -func KeyedUnarchiver_UnarchivedObjectOfClassesFromDataDeviceError(classes foundation.ISet, data []byte, device metal.PDevice, error unsafe.Pointer) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataDeviceError(classes, data, device, error) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976453-unarchivedobjectofclass?language=objc +func KeyedUnarchiver_UnarchivedObjectOfClassFromDataDeviceError(cls objc.IClass, data []byte, device metal.PDevice, error unsafe.Pointer) objc.Object { + return KeyedUnarchiverClass.UnarchivedObjectOfClassFromDataDeviceError(cls, data, device, error) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976454-unarchivedobjectofclasses?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassesFromDataDeviceObjectError(classes foundation.ISet, data []byte, deviceObject objc.IObject, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:device:error:"), classes, data, deviceObject, error) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976453-unarchivedobjectofclass?language=objc +func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassFromDataDeviceObjectError(cls objc.IClass, data []byte, deviceObject objc.IObject, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:device:error:"), cls, data, deviceObject, error) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976454-unarchivedobjectofclasses?language=objc -func KeyedUnarchiver_UnarchivedObjectOfClassesFromDataDeviceObjectError(classes foundation.ISet, data []byte, deviceObject objc.IObject, error unsafe.Pointer) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataDeviceObjectError(classes, data, deviceObject, error) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976453-unarchivedobjectofclass?language=objc +func KeyedUnarchiver_UnarchivedObjectOfClassFromDataDeviceObjectError(cls objc.IClass, data []byte, deviceObject objc.IObject, error unsafe.Pointer) objc.Object { + return KeyedUnarchiverClass.UnarchivedObjectOfClassFromDataDeviceObjectError(cls, data, deviceObject, error) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2951880-mpsmtldevice?language=objc -func (k_ KeyedUnarchiver) MpsMTLDevice() metal.DeviceObject { - rv := objc.Call[metal.DeviceObject](k_, objc.Sel("mpsMTLDevice")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976454-unarchivedobjectofclasses?language=objc +func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassesFromDataDeviceError(classes foundation.ISet, data []byte, device metal.PDevice, error unsafe.Pointer) objc.Object { + po2 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:device:error:"), classes, data, po2, error) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976453-unarchivedobjectofclass?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassFromDataDeviceError(cls objc.IClass, data []byte, device metal.PDevice, error unsafe.Pointer) objc.Object { - po2 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:device:error:"), cls, data, po2, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976454-unarchivedobjectofclasses?language=objc +func KeyedUnarchiver_UnarchivedObjectOfClassesFromDataDeviceError(classes foundation.ISet, data []byte, device metal.PDevice, error unsafe.Pointer) objc.Object { + return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataDeviceError(classes, data, device, error) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976453-unarchivedobjectofclass?language=objc -func KeyedUnarchiver_UnarchivedObjectOfClassFromDataDeviceError(cls objc.IClass, data []byte, device metal.PDevice, error unsafe.Pointer) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassFromDataDeviceError(cls, data, device, error) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976454-unarchivedobjectofclasses?language=objc +func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassesFromDataDeviceObjectError(classes foundation.ISet, data []byte, deviceObject objc.IObject, error unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:device:error:"), classes, data, deviceObject, error) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976453-unarchivedobjectofclass?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassFromDataDeviceObjectError(cls objc.IClass, data []byte, deviceObject objc.IObject, error unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:device:error:"), cls, data, deviceObject, error) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976454-unarchivedobjectofclasses?language=objc +func KeyedUnarchiver_UnarchivedObjectOfClassesFromDataDeviceObjectError(classes foundation.ISet, data []byte, deviceObject objc.IObject, error unsafe.Pointer) objc.Object { + return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataDeviceObjectError(classes, data, deviceObject, error) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2976453-unarchivedobjectofclass?language=objc -func KeyedUnarchiver_UnarchivedObjectOfClassFromDataDeviceObjectError(cls objc.IClass, data []byte, deviceObject objc.IObject, error unsafe.Pointer) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassFromDataDeviceObjectError(cls, data, deviceObject, error) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2951880-mpsmtldevice?language=objc +func (k_ KeyedUnarchiver) MpsMTLDevice() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](k_, objc.Sel("mpsMTLDevice")) + return rv } diff --git a/macos/mps/lstm_descriptor.gen.go b/macos/mps/lstm_descriptor.gen.go index 338330ec..518e739f 100644 --- a/macos/mps/lstm_descriptor.gen.go +++ b/macos/mps/lstm_descriptor.gen.go @@ -18,52 +18,52 @@ type _LSTMDescriptorClass struct { // An interface definition for the [LSTMDescriptor] class. type ILSTMDescriptor interface { IRNNDescriptor - CellGateRecurrentWeights() CNNConvolutionDataSourceObject - SetCellGateRecurrentWeights(value PCNNConvolutionDataSource) - SetCellGateRecurrentWeightsObject(valueObject objc.IObject) - CellToOutputNeuronParamC() float32 - SetCellToOutputNeuronParamC(value float32) + InputGateInputWeights() CNNConvolutionDataSourceObject + SetInputGateInputWeights(value PCNNConvolutionDataSource) + SetInputGateInputWeightsObject(valueObject objc.IObject) + CellToOutputNeuronParamA() float32 + SetCellToOutputNeuronParamA(value float32) + ForgetGateInputWeights() CNNConvolutionDataSourceObject + SetForgetGateInputWeights(value PCNNConvolutionDataSource) + SetForgetGateInputWeightsObject(valueObject objc.IObject) + MemoryWeightsAreDiagonal() bool + SetMemoryWeightsAreDiagonal(value bool) + CellGateMemoryWeights() CNNConvolutionDataSourceObject + SetCellGateMemoryWeights(value PCNNConvolutionDataSource) + SetCellGateMemoryWeightsObject(valueObject objc.IObject) ForgetGateRecurrentWeights() CNNConvolutionDataSourceObject SetForgetGateRecurrentWeights(value PCNNConvolutionDataSource) SetForgetGateRecurrentWeightsObject(valueObject objc.IObject) - InputGateRecurrentWeights() CNNConvolutionDataSourceObject - SetInputGateRecurrentWeights(value PCNNConvolutionDataSource) - SetInputGateRecurrentWeightsObject(valueObject objc.IObject) - CellToOutputNeuronParamB() float32 - SetCellToOutputNeuronParamB(value float32) - CellGateInputWeights() CNNConvolutionDataSourceObject - SetCellGateInputWeights(value PCNNConvolutionDataSource) - SetCellGateInputWeightsObject(valueObject objc.IObject) - CellToOutputNeuronType() CNNNeuronType - SetCellToOutputNeuronType(value CNNNeuronType) - CellToOutputNeuronParamA() float32 - SetCellToOutputNeuronParamA(value float32) - OutputGateInputWeights() CNNConvolutionDataSourceObject - SetOutputGateInputWeights(value PCNNConvolutionDataSource) - SetOutputGateInputWeightsObject(valueObject objc.IObject) ForgetGateMemoryWeights() CNNConvolutionDataSourceObject SetForgetGateMemoryWeights(value PCNNConvolutionDataSource) SetForgetGateMemoryWeightsObject(valueObject objc.IObject) + CellToOutputNeuronType() CNNNeuronType + SetCellToOutputNeuronType(value CNNNeuronType) + CellGateInputWeights() CNNConvolutionDataSourceObject + SetCellGateInputWeights(value PCNNConvolutionDataSource) + SetCellGateInputWeightsObject(valueObject objc.IObject) OutputGateRecurrentWeights() CNNConvolutionDataSourceObject SetOutputGateRecurrentWeights(value PCNNConvolutionDataSource) SetOutputGateRecurrentWeightsObject(valueObject objc.IObject) - CellGateMemoryWeights() CNNConvolutionDataSourceObject - SetCellGateMemoryWeights(value PCNNConvolutionDataSource) - SetCellGateMemoryWeightsObject(valueObject objc.IObject) - ForgetGateInputWeights() CNNConvolutionDataSourceObject - SetForgetGateInputWeights(value PCNNConvolutionDataSource) - SetForgetGateInputWeightsObject(valueObject objc.IObject) - InputGateInputWeights() CNNConvolutionDataSourceObject - SetInputGateInputWeights(value PCNNConvolutionDataSource) - SetInputGateInputWeightsObject(valueObject objc.IObject) InputGateMemoryWeights() CNNConvolutionDataSourceObject SetInputGateMemoryWeights(value PCNNConvolutionDataSource) SetInputGateMemoryWeightsObject(valueObject objc.IObject) - MemoryWeightsAreDiagonal() bool - SetMemoryWeightsAreDiagonal(value bool) + InputGateRecurrentWeights() CNNConvolutionDataSourceObject + SetInputGateRecurrentWeights(value PCNNConvolutionDataSource) + SetInputGateRecurrentWeightsObject(valueObject objc.IObject) + CellToOutputNeuronParamC() float32 + SetCellToOutputNeuronParamC(value float32) + CellGateRecurrentWeights() CNNConvolutionDataSourceObject + SetCellGateRecurrentWeights(value PCNNConvolutionDataSource) + SetCellGateRecurrentWeightsObject(valueObject objc.IObject) OutputGateMemoryWeights() CNNConvolutionDataSourceObject SetOutputGateMemoryWeights(value PCNNConvolutionDataSource) SetOutputGateMemoryWeightsObject(valueObject objc.IObject) + OutputGateInputWeights() CNNConvolutionDataSourceObject + SetOutputGateInputWeights(value PCNNConvolutionDataSource) + SetOutputGateInputWeightsObject(valueObject objc.IObject) + CellToOutputNeuronParamB() float32 + SetCellToOutputNeuronParamB(value float32) } // A description of a long short-term memory block or layer. [Full Topic] @@ -113,200 +113,185 @@ func (l_ LSTMDescriptor) Init() LSTMDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865679-cellgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) CellGateRecurrentWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("cellGateRecurrentWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865684-inputgateinputweights?language=objc +func (l_ LSTMDescriptor) InputGateInputWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("inputGateInputWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865679-cellgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) SetCellGateRecurrentWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865684-inputgateinputweights?language=objc +func (l_ LSTMDescriptor) SetInputGateInputWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setCellGateRecurrentWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setInputGateInputWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865679-cellgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) SetCellGateRecurrentWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setCellGateRecurrentWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865684-inputgateinputweights?language=objc +func (l_ LSTMDescriptor) SetInputGateInputWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setInputGateInputWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2935551-celltooutputneuronparamc?language=objc -func (l_ LSTMDescriptor) CellToOutputNeuronParamC() float32 { - rv := objc.Call[float32](l_, objc.Sel("cellToOutputNeuronParamC")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865744-celltooutputneuronparama?language=objc +func (l_ LSTMDescriptor) CellToOutputNeuronParamA() float32 { + rv := objc.Call[float32](l_, objc.Sel("cellToOutputNeuronParamA")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2935551-celltooutputneuronparamc?language=objc -func (l_ LSTMDescriptor) SetCellToOutputNeuronParamC(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamC:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865744-celltooutputneuronparama?language=objc +func (l_ LSTMDescriptor) SetCellToOutputNeuronParamA(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamA:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865735-forgetgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) ForgetGateRecurrentWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("forgetGateRecurrentWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865734-forgetgateinputweights?language=objc +func (l_ LSTMDescriptor) ForgetGateInputWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("forgetGateInputWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865735-forgetgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) SetForgetGateRecurrentWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865734-forgetgateinputweights?language=objc +func (l_ LSTMDescriptor) SetForgetGateInputWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setForgetGateRecurrentWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setForgetGateInputWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865735-forgetgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) SetForgetGateRecurrentWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setForgetGateRecurrentWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865734-forgetgateinputweights?language=objc +func (l_ LSTMDescriptor) SetForgetGateInputWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setForgetGateInputWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865747-inputgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) InputGateRecurrentWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("inputGateRecurrentWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865712-memoryweightsarediagonal?language=objc +func (l_ LSTMDescriptor) MemoryWeightsAreDiagonal() bool { + rv := objc.Call[bool](l_, objc.Sel("memoryWeightsAreDiagonal")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865747-inputgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) SetInputGateRecurrentWeights(value PCNNConvolutionDataSource) { - po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setInputGateRecurrentWeights:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865712-memoryweightsarediagonal?language=objc +func (l_ LSTMDescriptor) SetMemoryWeightsAreDiagonal(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setMemoryWeightsAreDiagonal:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865747-inputgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) SetInputGateRecurrentWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setInputGateRecurrentWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865683-cellgatememoryweights?language=objc +func (l_ LSTMDescriptor) CellGateMemoryWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("cellGateMemoryWeights")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865694-celltooutputneuronparamb?language=objc -func (l_ LSTMDescriptor) CellToOutputNeuronParamB() float32 { - rv := objc.Call[float32](l_, objc.Sel("cellToOutputNeuronParamB")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865683-cellgatememoryweights?language=objc +func (l_ LSTMDescriptor) SetCellGateMemoryWeights(value PCNNConvolutionDataSource) { + po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) + objc.Call[objc.Void](l_, objc.Sel("setCellGateMemoryWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865694-celltooutputneuronparamb?language=objc -func (l_ LSTMDescriptor) SetCellToOutputNeuronParamB(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamB:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865683-cellgatememoryweights?language=objc +func (l_ LSTMDescriptor) SetCellGateMemoryWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setCellGateMemoryWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865741-cellgateinputweights?language=objc -func (l_ LSTMDescriptor) CellGateInputWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("cellGateInputWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865735-forgetgaterecurrentweights?language=objc +func (l_ LSTMDescriptor) ForgetGateRecurrentWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("forgetGateRecurrentWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865741-cellgateinputweights?language=objc -func (l_ LSTMDescriptor) SetCellGateInputWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865735-forgetgaterecurrentweights?language=objc +func (l_ LSTMDescriptor) SetForgetGateRecurrentWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setCellGateInputWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setForgetGateRecurrentWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865741-cellgateinputweights?language=objc -func (l_ LSTMDescriptor) SetCellGateInputWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setCellGateInputWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865735-forgetgaterecurrentweights?language=objc +func (l_ LSTMDescriptor) SetForgetGateRecurrentWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setForgetGateRecurrentWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865736-celltooutputneurontype?language=objc -func (l_ LSTMDescriptor) CellToOutputNeuronType() CNNNeuronType { - rv := objc.Call[CNNNeuronType](l_, objc.Sel("cellToOutputNeuronType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865689-forgetgatememoryweights?language=objc +func (l_ LSTMDescriptor) ForgetGateMemoryWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("forgetGateMemoryWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865736-celltooutputneurontype?language=objc -func (l_ LSTMDescriptor) SetCellToOutputNeuronType(value CNNNeuronType) { - objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronType:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865744-celltooutputneuronparama?language=objc -func (l_ LSTMDescriptor) CellToOutputNeuronParamA() float32 { - rv := objc.Call[float32](l_, objc.Sel("cellToOutputNeuronParamA")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865689-forgetgatememoryweights?language=objc +func (l_ LSTMDescriptor) SetForgetGateMemoryWeights(value PCNNConvolutionDataSource) { + po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) + objc.Call[objc.Void](l_, objc.Sel("setForgetGateMemoryWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865744-celltooutputneuronparama?language=objc -func (l_ LSTMDescriptor) SetCellToOutputNeuronParamA(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamA:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865689-forgetgatememoryweights?language=objc +func (l_ LSTMDescriptor) SetForgetGateMemoryWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setForgetGateMemoryWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865701-outputgateinputweights?language=objc -func (l_ LSTMDescriptor) OutputGateInputWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("outputGateInputWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865736-celltooutputneurontype?language=objc +func (l_ LSTMDescriptor) CellToOutputNeuronType() CNNNeuronType { + rv := objc.Call[CNNNeuronType](l_, objc.Sel("cellToOutputNeuronType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865701-outputgateinputweights?language=objc -func (l_ LSTMDescriptor) SetOutputGateInputWeights(value PCNNConvolutionDataSource) { - po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setOutputGateInputWeights:"), po0) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865701-outputgateinputweights?language=objc -func (l_ LSTMDescriptor) SetOutputGateInputWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setOutputGateInputWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865736-celltooutputneurontype?language=objc +func (l_ LSTMDescriptor) SetCellToOutputNeuronType(value CNNNeuronType) { + objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronType:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865689-forgetgatememoryweights?language=objc -func (l_ LSTMDescriptor) ForgetGateMemoryWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("forgetGateMemoryWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865741-cellgateinputweights?language=objc +func (l_ LSTMDescriptor) CellGateInputWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("cellGateInputWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865689-forgetgatememoryweights?language=objc -func (l_ LSTMDescriptor) SetForgetGateMemoryWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865741-cellgateinputweights?language=objc +func (l_ LSTMDescriptor) SetCellGateInputWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setForgetGateMemoryWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setCellGateInputWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865689-forgetgatememoryweights?language=objc -func (l_ LSTMDescriptor) SetForgetGateMemoryWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setForgetGateMemoryWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865741-cellgateinputweights?language=objc +func (l_ LSTMDescriptor) SetCellGateInputWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setCellGateInputWeights:"), valueObject) } // [Full Topic] @@ -334,130 +319,145 @@ func (l_ LSTMDescriptor) SetOutputGateRecurrentWeightsObject(valueObject objc.IO // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865683-cellgatememoryweights?language=objc -func (l_ LSTMDescriptor) CellGateMemoryWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("cellGateMemoryWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865731-inputgatememoryweights?language=objc +func (l_ LSTMDescriptor) InputGateMemoryWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("inputGateMemoryWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865683-cellgatememoryweights?language=objc -func (l_ LSTMDescriptor) SetCellGateMemoryWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865731-inputgatememoryweights?language=objc +func (l_ LSTMDescriptor) SetInputGateMemoryWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setCellGateMemoryWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setInputGateMemoryWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865683-cellgatememoryweights?language=objc -func (l_ LSTMDescriptor) SetCellGateMemoryWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setCellGateMemoryWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865731-inputgatememoryweights?language=objc +func (l_ LSTMDescriptor) SetInputGateMemoryWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setInputGateMemoryWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865734-forgetgateinputweights?language=objc -func (l_ LSTMDescriptor) ForgetGateInputWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("forgetGateInputWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865747-inputgaterecurrentweights?language=objc +func (l_ LSTMDescriptor) InputGateRecurrentWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("inputGateRecurrentWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865734-forgetgateinputweights?language=objc -func (l_ LSTMDescriptor) SetForgetGateInputWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865747-inputgaterecurrentweights?language=objc +func (l_ LSTMDescriptor) SetInputGateRecurrentWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setForgetGateInputWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setInputGateRecurrentWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865734-forgetgateinputweights?language=objc -func (l_ LSTMDescriptor) SetForgetGateInputWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setForgetGateInputWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865747-inputgaterecurrentweights?language=objc +func (l_ LSTMDescriptor) SetInputGateRecurrentWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setInputGateRecurrentWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865684-inputgateinputweights?language=objc -func (l_ LSTMDescriptor) InputGateInputWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("inputGateInputWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2935551-celltooutputneuronparamc?language=objc +func (l_ LSTMDescriptor) CellToOutputNeuronParamC() float32 { + rv := objc.Call[float32](l_, objc.Sel("cellToOutputNeuronParamC")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865684-inputgateinputweights?language=objc -func (l_ LSTMDescriptor) SetInputGateInputWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2935551-celltooutputneuronparamc?language=objc +func (l_ LSTMDescriptor) SetCellToOutputNeuronParamC(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamC:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865679-cellgaterecurrentweights?language=objc +func (l_ LSTMDescriptor) CellGateRecurrentWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("cellGateRecurrentWeights")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865679-cellgaterecurrentweights?language=objc +func (l_ LSTMDescriptor) SetCellGateRecurrentWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setInputGateInputWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setCellGateRecurrentWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865684-inputgateinputweights?language=objc -func (l_ LSTMDescriptor) SetInputGateInputWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setInputGateInputWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865679-cellgaterecurrentweights?language=objc +func (l_ LSTMDescriptor) SetCellGateRecurrentWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setCellGateRecurrentWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865731-inputgatememoryweights?language=objc -func (l_ LSTMDescriptor) InputGateMemoryWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("inputGateMemoryWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865688-outputgatememoryweights?language=objc +func (l_ LSTMDescriptor) OutputGateMemoryWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("outputGateMemoryWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865731-inputgatememoryweights?language=objc -func (l_ LSTMDescriptor) SetInputGateMemoryWeights(value PCNNConvolutionDataSource) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865688-outputgatememoryweights?language=objc +func (l_ LSTMDescriptor) SetOutputGateMemoryWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setInputGateMemoryWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setOutputGateMemoryWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865731-inputgatememoryweights?language=objc -func (l_ LSTMDescriptor) SetInputGateMemoryWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setInputGateMemoryWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865688-outputgatememoryweights?language=objc +func (l_ LSTMDescriptor) SetOutputGateMemoryWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setOutputGateMemoryWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865712-memoryweightsarediagonal?language=objc -func (l_ LSTMDescriptor) MemoryWeightsAreDiagonal() bool { - rv := objc.Call[bool](l_, objc.Sel("memoryWeightsAreDiagonal")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865701-outputgateinputweights?language=objc +func (l_ LSTMDescriptor) OutputGateInputWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("outputGateInputWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865712-memoryweightsarediagonal?language=objc -func (l_ LSTMDescriptor) SetMemoryWeightsAreDiagonal(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setMemoryWeightsAreDiagonal:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865701-outputgateinputweights?language=objc +func (l_ LSTMDescriptor) SetOutputGateInputWeights(value PCNNConvolutionDataSource) { + po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) + objc.Call[objc.Void](l_, objc.Sel("setOutputGateInputWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865688-outputgatememoryweights?language=objc -func (l_ LSTMDescriptor) OutputGateMemoryWeights() CNNConvolutionDataSourceObject { - rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("outputGateMemoryWeights")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865701-outputgateinputweights?language=objc +func (l_ LSTMDescriptor) SetOutputGateInputWeightsObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setOutputGateInputWeights:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865688-outputgatememoryweights?language=objc -func (l_ LSTMDescriptor) SetOutputGateMemoryWeights(value PCNNConvolutionDataSource) { - po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setOutputGateMemoryWeights:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865694-celltooutputneuronparamb?language=objc +func (l_ LSTMDescriptor) CellToOutputNeuronParamB() float32 { + rv := objc.Call[float32](l_, objc.Sel("cellToOutputNeuronParamB")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865688-outputgatememoryweights?language=objc -func (l_ LSTMDescriptor) SetOutputGateMemoryWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setOutputGateMemoryWeights:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865694-celltooutputneuronparamb?language=objc +func (l_ LSTMDescriptor) SetCellToOutputNeuronParamB(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamB:"), value) } diff --git a/macos/mps/matrix.gen.go b/macos/mps/matrix.gen.go index 5e16e876..2dd54d80 100644 --- a/macos/mps/matrix.gen.go +++ b/macos/mps/matrix.gen.go @@ -22,14 +22,14 @@ type IMatrix interface { ResourceSize() uint SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) - Rows() uint - Data() metal.BufferObject - RowBytes() uint Device() metal.DeviceObject - DataType() DataType + RowBytes() uint Columns() uint - Matrices() uint + Data() metal.BufferObject Offset() uint + DataType() DataType + Rows() uint + Matrices() uint MatrixBytes() uint } @@ -46,47 +46,32 @@ func MatrixFrom(ptr unsafe.Pointer) Matrix { } } -func (m_ Matrix) InitWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IMatrixDescriptor) Matrix { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[Matrix](m_, objc.Sel("initWithBuffer:offset:descriptor:"), po0, offset, descriptor) +func (m_ Matrix) InitWithDeviceDescriptor(device metal.PDevice, descriptor IMatrixDescriptor) Matrix { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[Matrix](m_, objc.Sel("initWithDevice:descriptor:"), po0, descriptor) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/3229863-initwithbuffer?language=objc -func NewMatrixWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IMatrixDescriptor) Matrix { - instance := MatrixClass.Alloc().InitWithBufferOffsetDescriptor(buffer, offset, descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2942567-initwithdevice?language=objc +func NewMatrixWithDeviceDescriptor(device metal.PDevice, descriptor IMatrixDescriptor) Matrix { + instance := MatrixClass.Alloc().InitWithDeviceDescriptor(device, descriptor) instance.Autorelease() return instance } -func (m_ Matrix) InitWithBufferDescriptor(buffer metal.PBuffer, descriptor IMatrixDescriptor) Matrix { +func (m_ Matrix) InitWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IMatrixDescriptor) Matrix { po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[Matrix](m_, objc.Sel("initWithBuffer:descriptor:"), po0, descriptor) - return rv -} - -// Initializes a matrix with a buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143201-initwithbuffer?language=objc -func NewMatrixWithBufferDescriptor(buffer metal.PBuffer, descriptor IMatrixDescriptor) Matrix { - instance := MatrixClass.Alloc().InitWithBufferDescriptor(buffer, descriptor) - instance.Autorelease() - return instance -} - -func (m_ Matrix) InitWithDeviceDescriptor(device metal.PDevice, descriptor IMatrixDescriptor) Matrix { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[Matrix](m_, objc.Sel("initWithDevice:descriptor:"), po0, descriptor) + rv := objc.Call[Matrix](m_, objc.Sel("initWithBuffer:offset:descriptor:"), po0, offset, descriptor) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2942567-initwithdevice?language=objc -func NewMatrixWithDeviceDescriptor(device metal.PDevice, descriptor IMatrixDescriptor) Matrix { - instance := MatrixClass.Alloc().InitWithDeviceDescriptor(device, descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/3229863-initwithbuffer?language=objc +func NewMatrixWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IMatrixDescriptor) Matrix { + instance := MatrixClass.Alloc().InitWithBufferOffsetDescriptor(buffer, offset, descriptor) instance.Autorelease() return instance } @@ -134,19 +119,11 @@ func (m_ Matrix) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObje objc.Call[objc.Void](m_, objc.Sel("synchronizeOnCommandBuffer:"), commandBufferObject) } -// The number of rows in the matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143210-rows?language=objc -func (m_ Matrix) Rows() uint { - rv := objc.Call[uint](m_, objc.Sel("rows")) - return rv -} - -// The buffer that stores the matrix data. [Full Topic] +// The device on which the matrix will be used. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143205-data?language=objc -func (m_ Matrix) Data() metal.BufferObject { - rv := objc.Call[metal.BufferObject](m_, objc.Sel("data")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143209-device?language=objc +func (m_ Matrix) Device() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](m_, objc.Sel("device")) return rv } @@ -158,11 +135,27 @@ func (m_ Matrix) RowBytes() uint { return rv } -// The device on which the matrix will be used. [Full Topic] +// The number of columns in the matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143209-device?language=objc -func (m_ Matrix) Device() metal.DeviceObject { - rv := objc.Call[metal.DeviceObject](m_, objc.Sel("device")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143207-columns?language=objc +func (m_ Matrix) Columns() uint { + rv := objc.Call[uint](m_, objc.Sel("columns")) + return rv +} + +// The buffer that stores the matrix data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143205-data?language=objc +func (m_ Matrix) Data() metal.BufferObject { + rv := objc.Call[metal.BufferObject](m_, objc.Sel("data")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/3375740-offset?language=objc +func (m_ Matrix) Offset() uint { + rv := objc.Call[uint](m_, objc.Sel("offset")) return rv } @@ -174,11 +167,11 @@ func (m_ Matrix) DataType() DataType { return rv } -// The number of columns in the matrix. [Full Topic] +// The number of rows in the matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143207-columns?language=objc -func (m_ Matrix) Columns() uint { - rv := objc.Call[uint](m_, objc.Sel("columns")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143210-rows?language=objc +func (m_ Matrix) Rows() uint { + rv := objc.Call[uint](m_, objc.Sel("rows")) return rv } @@ -190,14 +183,6 @@ func (m_ Matrix) Matrices() uint { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/3375740-offset?language=objc -func (m_ Matrix) Offset() uint { - rv := objc.Call[uint](m_, objc.Sel("offset")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2873344-matrixbytes?language=objc diff --git a/macos/mps/matrix_batch_normalization.gen.go b/macos/mps/matrix_batch_normalization.gen.go index 113dc8e7..b26ebc02 100644 --- a/macos/mps/matrix_batch_normalization.gen.go +++ b/macos/mps/matrix_batch_normalization.gen.go @@ -19,21 +19,21 @@ type _MatrixBatchNormalizationClass struct { // An interface definition for the [MatrixBatchNormalization] class. type IMatrixBatchNormalization interface { IMatrixUnaryKernel - NeuronParameterC() float32 + NeuronParameterA() float32 + NeuronType() CNNNeuronType SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) + NeuronParameterB() float32 EncodeToCommandBufferInputMatrixMeanVectorVarianceVectorGammaVectorBetaVectorResultMatrix(commandBuffer metal.PCommandBuffer, inputMatrix IMatrix, meanVector IVector, varianceVector IVector, gammaVector IVector, betaVector IVector, resultMatrix IMatrix) EncodeToCommandBufferObjectInputMatrixMeanVectorVarianceVectorGammaVectorBetaVectorResultMatrix(commandBufferObject objc.IObject, inputMatrix IMatrix, meanVector IVector, varianceVector IVector, gammaVector IVector, betaVector IVector, resultMatrix IMatrix) - NeuronParameterA() float32 - NeuronParameterB() float32 - NeuronType() CNNNeuronType - SourceInputFeatureChannels() uint - SetSourceInputFeatureChannels(value uint) - Epsilon() float32 - SetEpsilon(value float32) + NeuronParameterC() float32 ComputeStatistics() bool SetComputeStatistics(value bool) + Epsilon() float32 + SetEpsilon(value float32) SourceNumberOfFeatureVectors() uint SetSourceNumberOfFeatureVectors(value uint) + SourceInputFeatureChannels() uint + SetSourceInputFeatureChannels(value uint) } // A batch normalization kernel that operates on matrices. [Full Topic] @@ -49,32 +49,32 @@ func MatrixBatchNormalizationFrom(ptr unsafe.Pointer) MatrixBatchNormalization { } } -func (m_ MatrixBatchNormalization) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixBatchNormalization { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixBatchNormalization](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixBatchNormalization) InitWithDevice(device metal.PDevice) MatrixBatchNormalization { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixBatchNormalization](m_, objc.Sel("initWithDevice:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980731-copywithzone?language=objc -func MatrixBatchNormalization_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixBatchNormalization { - instance := MatrixBatchNormalizationClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980735-initwithdevice?language=objc +func NewMatrixBatchNormalizationWithDevice(device metal.PDevice) MatrixBatchNormalization { + instance := MatrixBatchNormalizationClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixBatchNormalization) InitWithDevice(device metal.PDevice) MatrixBatchNormalization { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixBatchNormalization](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixBatchNormalization) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixBatchNormalization { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixBatchNormalization](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980735-initwithdevice?language=objc -func NewMatrixBatchNormalizationWithDevice(device metal.PDevice) MatrixBatchNormalization { - instance := MatrixBatchNormalizationClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980731-copywithzone?language=objc +func MatrixBatchNormalization_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixBatchNormalization { + instance := MatrixBatchNormalizationClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -101,9 +101,17 @@ func (m_ MatrixBatchNormalization) Init() MatrixBatchNormalization { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980738-neuronparameterc?language=objc -func (m_ MatrixBatchNormalization) NeuronParameterC() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterC")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980736-neuronparametera?language=objc +func (m_ MatrixBatchNormalization) NeuronParameterA() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980739-neurontype?language=objc +func (m_ MatrixBatchNormalization) NeuronType() CNNNeuronType { + rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) return rv } @@ -114,6 +122,14 @@ func (m_ MatrixBatchNormalization) SetNeuronTypeParameterAParameterBParameterC(n objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980737-neuronparameterb?language=objc +func (m_ MatrixBatchNormalization) NeuronParameterB() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterB")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980732-encodetocommandbuffer?language=objc @@ -131,41 +147,25 @@ func (m_ MatrixBatchNormalization) EncodeToCommandBufferObjectInputMatrixMeanVec // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980736-neuronparametera?language=objc -func (m_ MatrixBatchNormalization) NeuronParameterA() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980737-neuronparameterb?language=objc -func (m_ MatrixBatchNormalization) NeuronParameterB() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterB")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980739-neurontype?language=objc -func (m_ MatrixBatchNormalization) NeuronType() CNNNeuronType { - rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980738-neuronparameterc?language=objc +func (m_ MatrixBatchNormalization) NeuronParameterC() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterC")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980741-sourceinputfeaturechannels?language=objc -func (m_ MatrixBatchNormalization) SourceInputFeatureChannels() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceInputFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980730-computestatistics?language=objc +func (m_ MatrixBatchNormalization) ComputeStatistics() bool { + rv := objc.Call[bool](m_, objc.Sel("computeStatistics")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980741-sourceinputfeaturechannels?language=objc -func (m_ MatrixBatchNormalization) SetSourceInputFeatureChannels(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceInputFeatureChannels:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980730-computestatistics?language=objc +func (m_ MatrixBatchNormalization) SetComputeStatistics(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setComputeStatistics:"), value) } // [Full Topic] @@ -185,30 +185,30 @@ func (m_ MatrixBatchNormalization) SetEpsilon(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980730-computestatistics?language=objc -func (m_ MatrixBatchNormalization) ComputeStatistics() bool { - rv := objc.Call[bool](m_, objc.Sel("computeStatistics")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980742-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixBatchNormalization) SourceNumberOfFeatureVectors() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceNumberOfFeatureVectors")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980730-computestatistics?language=objc -func (m_ MatrixBatchNormalization) SetComputeStatistics(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setComputeStatistics:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980742-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixBatchNormalization) SetSourceNumberOfFeatureVectors(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980742-sourcenumberoffeaturevectors?language=objc -func (m_ MatrixBatchNormalization) SourceNumberOfFeatureVectors() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceNumberOfFeatureVectors")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980741-sourceinputfeaturechannels?language=objc +func (m_ MatrixBatchNormalization) SourceInputFeatureChannels() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceInputFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980742-sourcenumberoffeaturevectors?language=objc -func (m_ MatrixBatchNormalization) SetSourceNumberOfFeatureVectors(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980741-sourceinputfeaturechannels?language=objc +func (m_ MatrixBatchNormalization) SetSourceInputFeatureChannels(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceInputFeatureChannels:"), value) } diff --git a/macos/mps/matrix_batch_normalization_gradient.gen.go b/macos/mps/matrix_batch_normalization_gradient.gen.go index 5bea04db..56d5257f 100644 --- a/macos/mps/matrix_batch_normalization_gradient.gen.go +++ b/macos/mps/matrix_batch_normalization_gradient.gen.go @@ -19,17 +19,17 @@ type _MatrixBatchNormalizationGradientClass struct { // An interface definition for the [MatrixBatchNormalizationGradient] class. type IMatrixBatchNormalizationGradient interface { IMatrixBinaryKernel - SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) - NeuronParameterB() float32 NeuronParameterA() float32 - NeuronParameterC() float32 NeuronType() CNNNeuronType + SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) + NeuronParameterB() float32 EncodeToCommandBufferGradientMatrixInputMatrixMeanVectorVarianceVectorGammaVectorBetaVectorResultGradientForDataMatrixResultGradientForGammaVectorResultGradientForBetaVector(commandBuffer metal.PCommandBuffer, gradientMatrix IMatrix, inputMatrix IMatrix, meanVector IVector, varianceVector IVector, gammaVector IVector, betaVector IVector, resultGradientForDataMatrix IMatrix, resultGradientForGammaVector IVector, resultGradientForBetaVector IVector) EncodeToCommandBufferObjectGradientMatrixInputMatrixMeanVectorVarianceVectorGammaVectorBetaVectorResultGradientForDataMatrixResultGradientForGammaVectorResultGradientForBetaVector(commandBufferObject objc.IObject, gradientMatrix IMatrix, inputMatrix IMatrix, meanVector IVector, varianceVector IVector, gammaVector IVector, betaVector IVector, resultGradientForDataMatrix IMatrix, resultGradientForGammaVector IVector, resultGradientForBetaVector IVector) - SourceNumberOfFeatureVectors() uint - SetSourceNumberOfFeatureVectors(value uint) + NeuronParameterC() float32 Epsilon() float32 SetEpsilon(value float32) + SourceNumberOfFeatureVectors() uint + SetSourceNumberOfFeatureVectors(value uint) SourceInputFeatureChannels() uint SetSourceInputFeatureChannels(value uint) } @@ -99,40 +99,32 @@ func (m_ MatrixBatchNormalizationGradient) Init() MatrixBatchNormalizationGradie // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980753-setneurontype?language=objc -func (m_ MatrixBatchNormalizationGradient) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) { - objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980750-neuronparameterb?language=objc -func (m_ MatrixBatchNormalizationGradient) NeuronParameterB() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterB")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980749-neuronparametera?language=objc +func (m_ MatrixBatchNormalizationGradient) NeuronParameterA() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980749-neuronparametera?language=objc -func (m_ MatrixBatchNormalizationGradient) NeuronParameterA() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980752-neurontype?language=objc +func (m_ MatrixBatchNormalizationGradient) NeuronType() CNNNeuronType { + rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980751-neuronparameterc?language=objc -func (m_ MatrixBatchNormalizationGradient) NeuronParameterC() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterC")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980753-setneurontype?language=objc +func (m_ MatrixBatchNormalizationGradient) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) { + objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980752-neurontype?language=objc -func (m_ MatrixBatchNormalizationGradient) NeuronType() CNNNeuronType { - rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980750-neuronparameterb?language=objc +func (m_ MatrixBatchNormalizationGradient) NeuronParameterB() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterB")) return rv } @@ -153,19 +145,12 @@ func (m_ MatrixBatchNormalizationGradient) EncodeToCommandBufferObjectGradientMa // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980755-sourcenumberoffeaturevectors?language=objc -func (m_ MatrixBatchNormalizationGradient) SourceNumberOfFeatureVectors() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceNumberOfFeatureVectors")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980751-neuronparameterc?language=objc +func (m_ MatrixBatchNormalizationGradient) NeuronParameterC() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterC")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980755-sourcenumberoffeaturevectors?language=objc -func (m_ MatrixBatchNormalizationGradient) SetSourceNumberOfFeatureVectors(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980746-epsilon?language=objc @@ -181,6 +166,21 @@ func (m_ MatrixBatchNormalizationGradient) SetEpsilon(value float32) { objc.Call[objc.Void](m_, objc.Sel("setEpsilon:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980755-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixBatchNormalizationGradient) SourceNumberOfFeatureVectors() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceNumberOfFeatureVectors")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980755-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixBatchNormalizationGradient) SetSourceNumberOfFeatureVectors(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980754-sourceinputfeaturechannels?language=objc diff --git a/macos/mps/matrix_binary_kernel.gen.go b/macos/mps/matrix_binary_kernel.gen.go index acb91e9a..53ad5c36 100644 --- a/macos/mps/matrix_binary_kernel.gen.go +++ b/macos/mps/matrix_binary_kernel.gen.go @@ -19,16 +19,16 @@ type _MatrixBinaryKernelClass struct { // An interface definition for the [MatrixBinaryKernel] class. type IMatrixBinaryKernel interface { IKernel - SecondarySourceMatrixOrigin() metal.Origin - SetSecondarySourceMatrixOrigin(value metal.Origin) - BatchSize() uint - SetBatchSize(value uint) ResultMatrixOrigin() metal.Origin SetResultMatrixOrigin(value metal.Origin) - PrimarySourceMatrixOrigin() metal.Origin - SetPrimarySourceMatrixOrigin(value metal.Origin) BatchStart() uint SetBatchStart(value uint) + BatchSize() uint + SetBatchSize(value uint) + SecondarySourceMatrixOrigin() metal.Origin + SetSecondarySourceMatrixOrigin(value metal.Origin) + PrimarySourceMatrixOrigin() metal.Origin + SetPrimarySourceMatrixOrigin(value metal.Origin) } // A kernel that consumes two matrices and produces one matrix. [Full Topic] @@ -64,6 +64,21 @@ func (m_ MatrixBinaryKernel) Init() MatrixBinaryKernel { return rv } +func (m_ MatrixBinaryKernel) InitWithDevice(device metal.PDevice) MatrixBinaryKernel { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixBinaryKernel](m_, objc.Sel("initWithDevice:"), po0) + return rv +} + +// Initializes a new kernel object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixBinaryKernelWithDevice(device metal.PDevice) MatrixBinaryKernel { + instance := MatrixBinaryKernelClass.Alloc().InitWithDevice(device) + instance.Autorelease() + return instance +} + func (m_ MatrixBinaryKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixBinaryKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixBinaryKernel](m_, objc.Sel("copyWithZone:device:"), zone, po1) @@ -79,34 +94,34 @@ func MatrixBinaryKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDe return instance } -func (m_ MatrixBinaryKernel) InitWithDevice(device metal.PDevice) MatrixBinaryKernel { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixBinaryKernel](m_, objc.Sel("initWithDevice:"), po0) +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867193-resultmatrixorigin?language=objc +func (m_ MatrixBinaryKernel) ResultMatrixOrigin() metal.Origin { + rv := objc.Call[metal.Origin](m_, objc.Sel("resultMatrixOrigin")) return rv } -// Initializes a new kernel object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixBinaryKernelWithDevice(device metal.PDevice) MatrixBinaryKernel { - instance := MatrixBinaryKernelClass.Alloc().InitWithDevice(device) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867193-resultmatrixorigin?language=objc +func (m_ MatrixBinaryKernel) SetResultMatrixOrigin(value metal.Origin) { + objc.Call[objc.Void](m_, objc.Sel("setResultMatrixOrigin:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867096-secondarysourcematrixorigin?language=objc -func (m_ MatrixBinaryKernel) SecondarySourceMatrixOrigin() metal.Origin { - rv := objc.Call[metal.Origin](m_, objc.Sel("secondarySourceMatrixOrigin")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867152-batchstart?language=objc +func (m_ MatrixBinaryKernel) BatchStart() uint { + rv := objc.Call[uint](m_, objc.Sel("batchStart")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867096-secondarysourcematrixorigin?language=objc -func (m_ MatrixBinaryKernel) SetSecondarySourceMatrixOrigin(value metal.Origin) { - objc.Call[objc.Void](m_, objc.Sel("setSecondarySourceMatrixOrigin:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867152-batchstart?language=objc +func (m_ MatrixBinaryKernel) SetBatchStart(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setBatchStart:"), value) } // [Full Topic] @@ -126,17 +141,17 @@ func (m_ MatrixBinaryKernel) SetBatchSize(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867193-resultmatrixorigin?language=objc -func (m_ MatrixBinaryKernel) ResultMatrixOrigin() metal.Origin { - rv := objc.Call[metal.Origin](m_, objc.Sel("resultMatrixOrigin")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867096-secondarysourcematrixorigin?language=objc +func (m_ MatrixBinaryKernel) SecondarySourceMatrixOrigin() metal.Origin { + rv := objc.Call[metal.Origin](m_, objc.Sel("secondarySourceMatrixOrigin")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867193-resultmatrixorigin?language=objc -func (m_ MatrixBinaryKernel) SetResultMatrixOrigin(value metal.Origin) { - objc.Call[objc.Void](m_, objc.Sel("setResultMatrixOrigin:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867096-secondarysourcematrixorigin?language=objc +func (m_ MatrixBinaryKernel) SetSecondarySourceMatrixOrigin(value metal.Origin) { + objc.Call[objc.Void](m_, objc.Sel("setSecondarySourceMatrixOrigin:"), value) } // [Full Topic] @@ -153,18 +168,3 @@ func (m_ MatrixBinaryKernel) PrimarySourceMatrixOrigin() metal.Origin { func (m_ MatrixBinaryKernel) SetPrimarySourceMatrixOrigin(value metal.Origin) { objc.Call[objc.Void](m_, objc.Sel("setPrimarySourceMatrixOrigin:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867152-batchstart?language=objc -func (m_ MatrixBinaryKernel) BatchStart() uint { - rv := objc.Call[uint](m_, objc.Sel("batchStart")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbinarykernel/2867152-batchstart?language=objc -func (m_ MatrixBinaryKernel) SetBatchStart(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setBatchStart:"), value) -} diff --git a/macos/mps/matrix_copy.gen.go b/macos/mps/matrix_copy.gen.go index c3b07164..c81337c2 100644 --- a/macos/mps/matrix_copy.gen.go +++ b/macos/mps/matrix_copy.gen.go @@ -21,12 +21,10 @@ type IMatrixCopy interface { IKernel EncodeToCommandBufferCopyDescriptor(commandBuffer metal.PCommandBuffer, copyDescriptor IMatrixCopyDescriptor) EncodeToCommandBufferObjectCopyDescriptor(commandBufferObject objc.IObject, copyDescriptor IMatrixCopyDescriptor) - EncodeToCommandBufferCopyDescriptorRowPermuteIndicesRowPermuteOffsetColumnPermuteIndicesColumnPermuteOffset(commandBuffer metal.PCommandBuffer, copyDescriptor IMatrixCopyDescriptor, rowPermuteIndices IVector, rowPermuteOffset uint, columnPermuteIndices IVector, columnPermuteOffset uint) - EncodeToCommandBufferObjectCopyDescriptorRowPermuteIndicesRowPermuteOffsetColumnPermuteIndicesColumnPermuteOffset(commandBufferObject objc.IObject, copyDescriptor IMatrixCopyDescriptor, rowPermuteIndices IVector, rowPermuteOffset uint, columnPermuteIndices IVector, columnPermuteOffset uint) - CopyColumns() uint - DestinationsAreTransposed() bool SourcesAreTransposed() bool + DestinationsAreTransposed() bool CopyRows() uint + CopyColumns() uint } // A class that can perform multiple matrix copy operations. [Full Topic] @@ -77,32 +75,32 @@ func (m_ MatrixCopy) Init() MatrixCopy { return rv } -func (m_ MatrixCopy) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixCopy { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixCopy](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixCopy) InitWithDevice(device metal.PDevice) MatrixCopy { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixCopy](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixCopy_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixCopy { - instance := MatrixCopyClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixCopyWithDevice(device metal.PDevice) MatrixCopy { + instance := MatrixCopyClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixCopy) InitWithDevice(device metal.PDevice) MatrixCopy { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixCopy](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixCopy) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixCopy { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixCopy](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixCopyWithDevice(device metal.PDevice) MatrixCopy { - instance := MatrixCopyClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixCopy_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixCopy { + instance := MatrixCopyClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -124,24 +122,9 @@ func (m_ MatrixCopy) EncodeToCommandBufferObjectCopyDescriptor(commandBufferObje // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopy/2935558-encodetocommandbuffer?language=objc -func (m_ MatrixCopy) EncodeToCommandBufferCopyDescriptorRowPermuteIndicesRowPermuteOffsetColumnPermuteIndicesColumnPermuteOffset(commandBuffer metal.PCommandBuffer, copyDescriptor IMatrixCopyDescriptor, rowPermuteIndices IVector, rowPermuteOffset uint, columnPermuteIndices IVector, columnPermuteOffset uint) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:copyDescriptor:rowPermuteIndices:rowPermuteOffset:columnPermuteIndices:columnPermuteOffset:"), po0, copyDescriptor, rowPermuteIndices, rowPermuteOffset, columnPermuteIndices, columnPermuteOffset) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopy/2935558-encodetocommandbuffer?language=objc -func (m_ MatrixCopy) EncodeToCommandBufferObjectCopyDescriptorRowPermuteIndicesRowPermuteOffsetColumnPermuteIndicesColumnPermuteOffset(commandBufferObject objc.IObject, copyDescriptor IMatrixCopyDescriptor, rowPermuteIndices IVector, rowPermuteOffset uint, columnPermuteIndices IVector, columnPermuteOffset uint) { - objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:copyDescriptor:rowPermuteIndices:rowPermuteOffset:columnPermuteIndices:columnPermuteOffset:"), commandBufferObject, copyDescriptor, rowPermuteIndices, rowPermuteOffset, columnPermuteIndices, columnPermuteOffset) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopy/2915325-copycolumns?language=objc -func (m_ MatrixCopy) CopyColumns() uint { - rv := objc.Call[uint](m_, objc.Sel("copyColumns")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopy/2915340-sourcesaretransposed?language=objc +func (m_ MatrixCopy) SourcesAreTransposed() bool { + rv := objc.Call[bool](m_, objc.Sel("sourcesAreTransposed")) return rv } @@ -155,16 +138,16 @@ func (m_ MatrixCopy) DestinationsAreTransposed() bool { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopy/2915340-sourcesaretransposed?language=objc -func (m_ MatrixCopy) SourcesAreTransposed() bool { - rv := objc.Call[bool](m_, objc.Sel("sourcesAreTransposed")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopy/2915342-copyrows?language=objc +func (m_ MatrixCopy) CopyRows() uint { + rv := objc.Call[uint](m_, objc.Sel("copyRows")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopy/2915342-copyrows?language=objc -func (m_ MatrixCopy) CopyRows() uint { - rv := objc.Call[uint](m_, objc.Sel("copyRows")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopy/2915325-copycolumns?language=objc +func (m_ MatrixCopy) CopyColumns() uint { + rv := objc.Call[uint](m_, objc.Sel("copyColumns")) return rv } diff --git a/macos/mps/matrix_copy_descriptor.gen.go b/macos/mps/matrix_copy_descriptor.gen.go index 1a020dab..b2d313a2 100644 --- a/macos/mps/matrix_copy_descriptor.gen.go +++ b/macos/mps/matrix_copy_descriptor.gen.go @@ -47,31 +47,31 @@ func MatrixCopyDescriptor_DescriptorWithSourceMatrixDestinationMatrixOffsets(sou return MatrixCopyDescriptorClass.DescriptorWithSourceMatrixDestinationMatrixOffsets(sourceMatrix, destinationMatrix, offsets) } -func (m_ MatrixCopyDescriptor) InitWithSourceMatricesDestinationMatricesOffsetVectorOffset(sourceMatrices []IMatrix, destinationMatrices []IMatrix, offsets IVector, byteOffset uint) MatrixCopyDescriptor { - rv := objc.Call[MatrixCopyDescriptor](m_, objc.Sel("initWithSourceMatrices:destinationMatrices:offsetVector:offset:"), sourceMatrices, destinationMatrices, offsets, byteOffset) +func (m_ MatrixCopyDescriptor) InitWithDeviceCount(device metal.PDevice, count uint) MatrixCopyDescriptor { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixCopyDescriptor](m_, objc.Sel("initWithDevice:count:"), po0, count) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopydescriptor/2915344-initwithsourcematrices?language=objc -func NewMatrixCopyDescriptorWithSourceMatricesDestinationMatricesOffsetVectorOffset(sourceMatrices []IMatrix, destinationMatrices []IMatrix, offsets IVector, byteOffset uint) MatrixCopyDescriptor { - instance := MatrixCopyDescriptorClass.Alloc().InitWithSourceMatricesDestinationMatricesOffsetVectorOffset(sourceMatrices, destinationMatrices, offsets, byteOffset) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopydescriptor/2915324-initwithdevice?language=objc +func NewMatrixCopyDescriptorWithDeviceCount(device metal.PDevice, count uint) MatrixCopyDescriptor { + instance := MatrixCopyDescriptorClass.Alloc().InitWithDeviceCount(device, count) instance.Autorelease() return instance } -func (m_ MatrixCopyDescriptor) InitWithDeviceCount(device metal.PDevice, count uint) MatrixCopyDescriptor { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixCopyDescriptor](m_, objc.Sel("initWithDevice:count:"), po0, count) +func (m_ MatrixCopyDescriptor) InitWithSourceMatricesDestinationMatricesOffsetVectorOffset(sourceMatrices []IMatrix, destinationMatrices []IMatrix, offsets IVector, byteOffset uint) MatrixCopyDescriptor { + rv := objc.Call[MatrixCopyDescriptor](m_, objc.Sel("initWithSourceMatrices:destinationMatrices:offsetVector:offset:"), sourceMatrices, destinationMatrices, offsets, byteOffset) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopydescriptor/2915324-initwithdevice?language=objc -func NewMatrixCopyDescriptorWithDeviceCount(device metal.PDevice, count uint) MatrixCopyDescriptor { - instance := MatrixCopyDescriptorClass.Alloc().InitWithDeviceCount(device, count) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopydescriptor/2915344-initwithsourcematrices?language=objc +func NewMatrixCopyDescriptorWithSourceMatricesDestinationMatricesOffsetVectorOffset(sourceMatrices []IMatrix, destinationMatrices []IMatrix, offsets IVector, byteOffset uint) MatrixCopyDescriptor { + instance := MatrixCopyDescriptorClass.Alloc().InitWithSourceMatricesDestinationMatricesOffsetVectorOffset(sourceMatrices, destinationMatrices, offsets, byteOffset) instance.Autorelease() return instance } diff --git a/macos/mps/matrix_copy_to_image.gen.go b/macos/mps/matrix_copy_to_image.gen.go index e19ced78..988f2d1b 100644 --- a/macos/mps/matrix_copy_to_image.gen.go +++ b/macos/mps/matrix_copy_to_image.gen.go @@ -24,11 +24,11 @@ type IMatrixCopyToImage interface { EncodeBatchToCommandBufferObjectSourceMatrixDestinationImages(commandBufferObject objc.IObject, sourceMatrix IMatrix, destinationImages *foundation.Array) EncodeToCommandBufferSourceMatrixDestinationImage(commandBuffer metal.PCommandBuffer, sourceMatrix IMatrix, destinationImage IImage) EncodeToCommandBufferObjectSourceMatrixDestinationImage(commandBufferObject objc.IObject, sourceMatrix IMatrix, destinationImage IImage) + DataLayout() DataLayout SourceMatrixBatchIndex() uint SetSourceMatrixBatchIndex(value uint) SourceMatrixOrigin() metal.Origin SetSourceMatrixOrigin(value metal.Origin) - DataLayout() DataLayout } // A kernel that copies matrix data to a Metal Performance Shaders image. [Full Topic] @@ -79,32 +79,32 @@ func (m_ MatrixCopyToImage) Init() MatrixCopyToImage { return rv } -func (m_ MatrixCopyToImage) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixCopyToImage { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixCopyToImage](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixCopyToImage) InitWithDevice(device metal.PDevice) MatrixCopyToImage { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixCopyToImage](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixCopyToImage_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixCopyToImage { - instance := MatrixCopyToImageClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixCopyToImageWithDevice(device metal.PDevice) MatrixCopyToImage { + instance := MatrixCopyToImageClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixCopyToImage) InitWithDevice(device metal.PDevice) MatrixCopyToImage { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixCopyToImage](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixCopyToImage) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixCopyToImage { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixCopyToImage](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixCopyToImageWithDevice(device metal.PDevice) MatrixCopyToImage { - instance := MatrixCopyToImageClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixCopyToImage_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixCopyToImage { + instance := MatrixCopyToImageClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -139,6 +139,14 @@ func (m_ MatrixCopyToImage) EncodeToCommandBufferObjectSourceMatrixDestinationIm objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:sourceMatrix:destinationImage:"), commandBufferObject, sourceMatrix, destinationImage) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopytoimage/2976457-datalayout?language=objc +func (m_ MatrixCopyToImage) DataLayout() DataLayout { + rv := objc.Call[DataLayout](m_, objc.Sel("dataLayout")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopytoimage/2976461-sourcematrixbatchindex?language=objc @@ -168,11 +176,3 @@ func (m_ MatrixCopyToImage) SourceMatrixOrigin() metal.Origin { func (m_ MatrixCopyToImage) SetSourceMatrixOrigin(value metal.Origin) { objc.Call[objc.Void](m_, objc.Sel("setSourceMatrixOrigin:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixcopytoimage/2976457-datalayout?language=objc -func (m_ MatrixCopyToImage) DataLayout() DataLayout { - rv := objc.Call[DataLayout](m_, objc.Sel("dataLayout")) - return rv -} diff --git a/macos/mps/matrix_decomposition_cholesky.gen.go b/macos/mps/matrix_decomposition_cholesky.gen.go index 347c1b62..b760ef0e 100644 --- a/macos/mps/matrix_decomposition_cholesky.gen.go +++ b/macos/mps/matrix_decomposition_cholesky.gen.go @@ -71,32 +71,32 @@ func (m_ MatrixDecompositionCholesky) Init() MatrixDecompositionCholesky { return rv } -func (m_ MatrixDecompositionCholesky) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixDecompositionCholesky { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixDecompositionCholesky](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixDecompositionCholesky) InitWithDevice(device metal.PDevice) MatrixDecompositionCholesky { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixDecompositionCholesky](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixDecompositionCholesky_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixDecompositionCholesky { - instance := MatrixDecompositionCholeskyClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixDecompositionCholeskyWithDevice(device metal.PDevice) MatrixDecompositionCholesky { + instance := MatrixDecompositionCholeskyClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixDecompositionCholesky) InitWithDevice(device metal.PDevice) MatrixDecompositionCholesky { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixDecompositionCholesky](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixDecompositionCholesky) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixDecompositionCholesky { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixDecompositionCholesky](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixDecompositionCholeskyWithDevice(device metal.PDevice) MatrixDecompositionCholesky { - instance := MatrixDecompositionCholeskyClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixDecompositionCholesky_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixDecompositionCholesky { + instance := MatrixDecompositionCholeskyClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/matrix_decomposition_lu.gen.go b/macos/mps/matrix_decomposition_lu.gen.go index 24d6cdfa..8c586639 100644 --- a/macos/mps/matrix_decomposition_lu.gen.go +++ b/macos/mps/matrix_decomposition_lu.gen.go @@ -71,32 +71,32 @@ func (m_ MatrixDecompositionLU) Init() MatrixDecompositionLU { return rv } -func (m_ MatrixDecompositionLU) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixDecompositionLU { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixDecompositionLU](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixDecompositionLU) InitWithDevice(device metal.PDevice) MatrixDecompositionLU { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixDecompositionLU](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixDecompositionLU_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixDecompositionLU { - instance := MatrixDecompositionLUClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixDecompositionLUWithDevice(device metal.PDevice) MatrixDecompositionLU { + instance := MatrixDecompositionLUClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixDecompositionLU) InitWithDevice(device metal.PDevice) MatrixDecompositionLU { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixDecompositionLU](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixDecompositionLU) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixDecompositionLU { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixDecompositionLU](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixDecompositionLUWithDevice(device metal.PDevice) MatrixDecompositionLU { - instance := MatrixDecompositionLUClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixDecompositionLU_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixDecompositionLU { + instance := MatrixDecompositionLUClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/matrix_descriptor.gen.go b/macos/mps/matrix_descriptor.gen.go index 9829b833..23ebd357 100644 --- a/macos/mps/matrix_descriptor.gen.go +++ b/macos/mps/matrix_descriptor.gen.go @@ -20,14 +20,14 @@ type IMatrixDescriptor interface { objc.IObject RowBytes() uint SetRowBytes(value uint) - Matrices() uint - Rows() uint - SetRows(value uint) Columns() uint SetColumns(value uint) - MatrixBytes() uint DataType() DataType SetDataType(value DataType) + Rows() uint + SetRows(value uint) + Matrices() uint + MatrixBytes() uint } // A description of attributes used to create an MPS matrix. [Full Topic] @@ -43,16 +43,16 @@ func MatrixDescriptorFrom(ptr unsafe.Pointer) MatrixDescriptor { } } -func (mc _MatrixDescriptorClass) MatrixDescriptorWithRowsColumnsRowBytesDataType(rows uint, columns uint, rowBytes uint, dataType DataType) MatrixDescriptor { - rv := objc.Call[MatrixDescriptor](mc, objc.Sel("matrixDescriptorWithRows:columns:rowBytes:dataType:"), rows, columns, rowBytes, dataType) +func (mc _MatrixDescriptorClass) MatrixDescriptorWithDimensionsColumnsRowBytesDataType(rows uint, columns uint, rowBytes uint, dataType DataType) MatrixDescriptor { + rv := objc.Call[MatrixDescriptor](mc, objc.Sel("matrixDescriptorWithDimensions:columns:rowBytes:dataType:"), rows, columns, rowBytes, dataType) return rv } -// [Full Topic] +// Creates a matrix descriptor with the specified dimensions and data type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2873331-matrixdescriptorwithrows?language=objc -func MatrixDescriptor_MatrixDescriptorWithRowsColumnsRowBytesDataType(rows uint, columns uint, rowBytes uint, dataType DataType) MatrixDescriptor { - return MatrixDescriptorClass.MatrixDescriptorWithRowsColumnsRowBytesDataType(rows, columns, rowBytes, dataType) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143206-matrixdescriptorwithdimensions?language=objc +func MatrixDescriptor_MatrixDescriptorWithDimensionsColumnsRowBytesDataType(rows uint, columns uint, rowBytes uint, dataType DataType) MatrixDescriptor { + return MatrixDescriptorClass.MatrixDescriptorWithDimensionsColumnsRowBytesDataType(rows, columns, rowBytes, dataType) } func (mc _MatrixDescriptorClass) MatrixDescriptorWithRowsColumnsMatricesRowBytesMatrixBytesDataType(rows uint, columns uint, matrices uint, rowBytes uint, matrixBytes uint, dataType DataType) MatrixDescriptor { @@ -67,18 +67,6 @@ func MatrixDescriptor_MatrixDescriptorWithRowsColumnsMatricesRowBytesMatrixBytes return MatrixDescriptorClass.MatrixDescriptorWithRowsColumnsMatricesRowBytesMatrixBytesDataType(rows, columns, matrices, rowBytes, matrixBytes, dataType) } -func (mc _MatrixDescriptorClass) MatrixDescriptorWithDimensionsColumnsRowBytesDataType(rows uint, columns uint, rowBytes uint, dataType DataType) MatrixDescriptor { - rv := objc.Call[MatrixDescriptor](mc, objc.Sel("matrixDescriptorWithDimensions:columns:rowBytes:dataType:"), rows, columns, rowBytes, dataType) - return rv -} - -// Creates a matrix descriptor with the specified dimensions and data type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143206-matrixdescriptorwithdimensions?language=objc -func MatrixDescriptor_MatrixDescriptorWithDimensionsColumnsRowBytesDataType(rows uint, columns uint, rowBytes uint, dataType DataType) MatrixDescriptor { - return MatrixDescriptorClass.MatrixDescriptorWithDimensionsColumnsRowBytesDataType(rows, columns, rowBytes, dataType) -} - func (mc _MatrixDescriptorClass) Alloc() MatrixDescriptor { rv := objc.Call[MatrixDescriptor](mc, objc.Sel("alloc")) return rv @@ -99,21 +87,6 @@ func (m_ MatrixDescriptor) Init() MatrixDescriptor { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2873394-rowbytesforcolumns?language=objc -func (mc _MatrixDescriptorClass) RowBytesForColumnsDataType(columns uint, dataType DataType) uint { - rv := objc.Call[uint](mc, objc.Sel("rowBytesForColumns:dataType:"), columns, dataType) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2873394-rowbytesforcolumns?language=objc -func MatrixDescriptor_RowBytesForColumnsDataType(columns uint, dataType DataType) uint { - return MatrixDescriptorClass.RowBytesForColumnsDataType(columns, dataType) -} - // Determines the recommended matrix row stride, in bytes, for a given number of columns. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143204-rowbytesfromcolumns?language=objc @@ -129,6 +102,21 @@ func MatrixDescriptor_RowBytesFromColumnsDataType(columns uint, dataType DataTyp return MatrixDescriptorClass.RowBytesFromColumnsDataType(columns, dataType) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2873394-rowbytesforcolumns?language=objc +func (mc _MatrixDescriptorClass) RowBytesForColumnsDataType(columns uint, dataType DataType) uint { + rv := objc.Call[uint](mc, objc.Sel("rowBytesForColumns:dataType:"), columns, dataType) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2873394-rowbytesforcolumns?language=objc +func MatrixDescriptor_RowBytesForColumnsDataType(columns uint, dataType DataType) uint { + return MatrixDescriptorClass.RowBytesForColumnsDataType(columns, dataType) +} + // The stride, in bytes, between corresponding elements of consecutive rows in the matrix. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143199-rowbytes?language=objc @@ -144,14 +132,36 @@ func (m_ MatrixDescriptor) SetRowBytes(value uint) { objc.Call[objc.Void](m_, objc.Sel("setRowBytes:"), value) } -// [Full Topic] +// The number of columns in the matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2873351-matrices?language=objc -func (m_ MatrixDescriptor) Matrices() uint { - rv := objc.Call[uint](m_, objc.Sel("matrices")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143196-columns?language=objc +func (m_ MatrixDescriptor) Columns() uint { + rv := objc.Call[uint](m_, objc.Sel("columns")) return rv } +// The number of columns in the matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143196-columns?language=objc +func (m_ MatrixDescriptor) SetColumns(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setColumns:"), value) +} + +// The type of the values in the matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143202-datatype?language=objc +func (m_ MatrixDescriptor) DataType() DataType { + rv := objc.Call[DataType](m_, objc.Sel("dataType")) + return rv +} + +// The type of the values in the matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143202-datatype?language=objc +func (m_ MatrixDescriptor) SetDataType(value DataType) { + objc.Call[objc.Void](m_, objc.Sel("setDataType:"), value) +} + // The number of rows in the matrix. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143203-rows?language=objc @@ -167,21 +177,14 @@ func (m_ MatrixDescriptor) SetRows(value uint) { objc.Call[objc.Void](m_, objc.Sel("setRows:"), value) } -// The number of columns in the matrix. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143196-columns?language=objc -func (m_ MatrixDescriptor) Columns() uint { - rv := objc.Call[uint](m_, objc.Sel("columns")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2873351-matrices?language=objc +func (m_ MatrixDescriptor) Matrices() uint { + rv := objc.Call[uint](m_, objc.Sel("matrices")) return rv } -// The number of columns in the matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143196-columns?language=objc -func (m_ MatrixDescriptor) SetColumns(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setColumns:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2873387-matrixbytes?language=objc @@ -189,18 +192,3 @@ func (m_ MatrixDescriptor) MatrixBytes() uint { rv := objc.Call[uint](m_, objc.Sel("matrixBytes")) return rv } - -// The type of the values in the matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143202-datatype?language=objc -func (m_ MatrixDescriptor) DataType() DataType { - rv := objc.Call[DataType](m_, objc.Sel("dataType")) - return rv -} - -// The type of the values in the matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2143202-datatype?language=objc -func (m_ MatrixDescriptor) SetDataType(value DataType) { - objc.Call[objc.Void](m_, objc.Sel("setDataType:"), value) -} diff --git a/macos/mps/matrix_find_top_k.gen.go b/macos/mps/matrix_find_top_k.gen.go index 5f49c9cb..cfec272e 100644 --- a/macos/mps/matrix_find_top_k.gen.go +++ b/macos/mps/matrix_find_top_k.gen.go @@ -21,14 +21,14 @@ type IMatrixFindTopK interface { IMatrixUnaryKernel EncodeToCommandBufferInputMatrixResultIndexMatrixResultValueMatrix(commandBuffer metal.PCommandBuffer, inputMatrix IMatrix, resultIndexMatrix IMatrix, resultValueMatrix IMatrix) EncodeToCommandBufferObjectInputMatrixResultIndexMatrixResultValueMatrix(commandBufferObject objc.IObject, inputMatrix IMatrix, resultIndexMatrix IMatrix, resultValueMatrix IMatrix) - NumberOfTopKValues() uint - SetNumberOfTopKValues(value uint) - IndexOffset() uint - SetIndexOffset(value uint) SourceRows() uint SetSourceRows(value uint) SourceColumns() uint SetSourceColumns(value uint) + NumberOfTopKValues() uint + SetNumberOfTopKValues(value uint) + IndexOffset() uint + SetIndexOffset(value uint) } // A kernel for computing the top-K values and their corresponding indices in a matrix. [Full Topic] @@ -126,60 +126,60 @@ func (m_ MatrixFindTopK) EncodeToCommandBufferObjectInputMatrixResultIndexMatrix // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935577-numberoftopkvalues?language=objc -func (m_ MatrixFindTopK) NumberOfTopKValues() uint { - rv := objc.Call[uint](m_, objc.Sel("numberOfTopKValues")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935580-sourcerows?language=objc +func (m_ MatrixFindTopK) SourceRows() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceRows")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935577-numberoftopkvalues?language=objc -func (m_ MatrixFindTopK) SetNumberOfTopKValues(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setNumberOfTopKValues:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935580-sourcerows?language=objc +func (m_ MatrixFindTopK) SetSourceRows(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceRows:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935574-indexoffset?language=objc -func (m_ MatrixFindTopK) IndexOffset() uint { - rv := objc.Call[uint](m_, objc.Sel("indexOffset")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935573-sourcecolumns?language=objc +func (m_ MatrixFindTopK) SourceColumns() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceColumns")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935574-indexoffset?language=objc -func (m_ MatrixFindTopK) SetIndexOffset(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setIndexOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935573-sourcecolumns?language=objc +func (m_ MatrixFindTopK) SetSourceColumns(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceColumns:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935580-sourcerows?language=objc -func (m_ MatrixFindTopK) SourceRows() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceRows")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935577-numberoftopkvalues?language=objc +func (m_ MatrixFindTopK) NumberOfTopKValues() uint { + rv := objc.Call[uint](m_, objc.Sel("numberOfTopKValues")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935580-sourcerows?language=objc -func (m_ MatrixFindTopK) SetSourceRows(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceRows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935577-numberoftopkvalues?language=objc +func (m_ MatrixFindTopK) SetNumberOfTopKValues(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setNumberOfTopKValues:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935573-sourcecolumns?language=objc -func (m_ MatrixFindTopK) SourceColumns() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceColumns")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935574-indexoffset?language=objc +func (m_ MatrixFindTopK) IndexOffset() uint { + rv := objc.Call[uint](m_, objc.Sel("indexOffset")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935573-sourcecolumns?language=objc -func (m_ MatrixFindTopK) SetSourceColumns(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceColumns:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfindtopk/2935574-indexoffset?language=objc +func (m_ MatrixFindTopK) SetIndexOffset(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setIndexOffset:"), value) } diff --git a/macos/mps/matrix_fully_connected.gen.go b/macos/mps/matrix_fully_connected.gen.go index c83939ab..abf9217d 100644 --- a/macos/mps/matrix_fully_connected.gen.go +++ b/macos/mps/matrix_fully_connected.gen.go @@ -19,21 +19,21 @@ type _MatrixFullyConnectedClass struct { // An interface definition for the [MatrixFullyConnected] class. type IMatrixFullyConnected interface { IMatrixBinaryKernel - SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) - NeuronParameterC() float32 - NeuronParameterB() float32 NeuronParameterA() float32 NeuronType() CNNNeuronType + SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) + NeuronParameterB() float32 EncodeToCommandBufferInputMatrixWeightMatrixBiasVectorResultMatrix(commandBuffer metal.PCommandBuffer, inputMatrix IMatrix, weightMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) EncodeToCommandBufferObjectInputMatrixWeightMatrixBiasVectorResultMatrix(commandBufferObject objc.IObject, inputMatrix IMatrix, weightMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) + NeuronParameterC() float32 + SourceOutputFeatureChannels() uint + SetSourceOutputFeatureChannels(value uint) Alpha() float64 SetAlpha(value float64) SourceNumberOfFeatureVectors() uint SetSourceNumberOfFeatureVectors(value uint) SourceInputFeatureChannels() uint SetSourceInputFeatureChannels(value uint) - SourceOutputFeatureChannels() uint - SetSourceOutputFeatureChannels(value uint) } // A kernel for applying a fully connected neural network layer. [Full Topic] @@ -49,32 +49,32 @@ func MatrixFullyConnectedFrom(ptr unsafe.Pointer) MatrixFullyConnected { } } -func (m_ MatrixFullyConnected) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixFullyConnected { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixFullyConnected](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixFullyConnected) InitWithDevice(device metal.PDevice) MatrixFullyConnected { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixFullyConnected](m_, objc.Sel("initWithDevice:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935595-copywithzone?language=objc -func MatrixFullyConnected_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixFullyConnected { - instance := MatrixFullyConnectedClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935584-initwithdevice?language=objc +func NewMatrixFullyConnectedWithDevice(device metal.PDevice) MatrixFullyConnected { + instance := MatrixFullyConnectedClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixFullyConnected) InitWithDevice(device metal.PDevice) MatrixFullyConnected { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixFullyConnected](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixFullyConnected) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixFullyConnected { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixFullyConnected](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935584-initwithdevice?language=objc -func NewMatrixFullyConnectedWithDevice(device metal.PDevice) MatrixFullyConnected { - instance := MatrixFullyConnectedClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935595-copywithzone?language=objc +func MatrixFullyConnected_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixFullyConnected { + instance := MatrixFullyConnectedClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -101,40 +101,32 @@ func (m_ MatrixFullyConnected) Init() MatrixFullyConnected { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935593-setneurontype?language=objc -func (m_ MatrixFullyConnected) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) { - objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935594-neuronparameterc?language=objc -func (m_ MatrixFullyConnected) NeuronParameterC() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterC")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935602-neuronparametera?language=objc +func (m_ MatrixFullyConnected) NeuronParameterA() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935591-neuronparameterb?language=objc -func (m_ MatrixFullyConnected) NeuronParameterB() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterB")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935588-neurontype?language=objc +func (m_ MatrixFullyConnected) NeuronType() CNNNeuronType { + rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935602-neuronparametera?language=objc -func (m_ MatrixFullyConnected) NeuronParameterA() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935593-setneurontype?language=objc +func (m_ MatrixFullyConnected) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) { + objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935588-neurontype?language=objc -func (m_ MatrixFullyConnected) NeuronType() CNNNeuronType { - rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935591-neuronparameterb?language=objc +func (m_ MatrixFullyConnected) NeuronParameterB() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterB")) return rv } @@ -153,6 +145,29 @@ func (m_ MatrixFullyConnected) EncodeToCommandBufferObjectInputMatrixWeightMatri objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:inputMatrix:weightMatrix:biasVector:resultMatrix:"), commandBufferObject, inputMatrix, weightMatrix, biasVector, resultMatrix) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935594-neuronparameterc?language=objc +func (m_ MatrixFullyConnected) NeuronParameterC() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterC")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935592-sourceoutputfeaturechannels?language=objc +func (m_ MatrixFullyConnected) SourceOutputFeatureChannels() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceOutputFeatureChannels")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935592-sourceoutputfeaturechannels?language=objc +func (m_ MatrixFullyConnected) SetSourceOutputFeatureChannels(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceOutputFeatureChannels:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935608-alpha?language=objc @@ -197,18 +212,3 @@ func (m_ MatrixFullyConnected) SourceInputFeatureChannels() uint { func (m_ MatrixFullyConnected) SetSourceInputFeatureChannels(value uint) { objc.Call[objc.Void](m_, objc.Sel("setSourceInputFeatureChannels:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935592-sourceoutputfeaturechannels?language=objc -func (m_ MatrixFullyConnected) SourceOutputFeatureChannels() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceOutputFeatureChannels")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935592-sourceoutputfeaturechannels?language=objc -func (m_ MatrixFullyConnected) SetSourceOutputFeatureChannels(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceOutputFeatureChannels:"), value) -} diff --git a/macos/mps/matrix_fully_connected_gradient.gen.go b/macos/mps/matrix_fully_connected_gradient.gen.go index e71074ac..353a3519 100644 --- a/macos/mps/matrix_fully_connected_gradient.gen.go +++ b/macos/mps/matrix_fully_connected_gradient.gen.go @@ -23,14 +23,14 @@ type IMatrixFullyConnectedGradient interface { EncodeGradientForWeightsAndBiasToCommandBufferObjectGradientMatrixInputMatrixResultGradientForWeightMatrixResultGradientForBiasVector(commandBufferObject objc.IObject, gradientMatrix IMatrix, inputMatrix IMatrix, resultGradientForWeightMatrix IMatrix, resultGradientForBiasVector IVector) EncodeGradientForDataToCommandBufferGradientMatrixWeightMatrixResultGradientForDataMatrix(commandBuffer metal.PCommandBuffer, gradientMatrix IMatrix, weightMatrix IMatrix, resultGradientForDataMatrix IMatrix) EncodeGradientForDataToCommandBufferObjectGradientMatrixWeightMatrixResultGradientForDataMatrix(commandBufferObject objc.IObject, gradientMatrix IMatrix, weightMatrix IMatrix, resultGradientForDataMatrix IMatrix) - SourceInputFeatureChannels() uint - SetSourceInputFeatureChannels(value uint) - SourceNumberOfFeatureVectors() uint - SetSourceNumberOfFeatureVectors(value uint) SourceOutputFeatureChannels() uint SetSourceOutputFeatureChannels(value uint) Alpha() float64 SetAlpha(value float64) + SourceNumberOfFeatureVectors() uint + SetSourceNumberOfFeatureVectors(value uint) + SourceInputFeatureChannels() uint + SetSourceInputFeatureChannels(value uint) } // A kernel for applying a fully gradient connected neural network layer. [Full Topic] @@ -128,60 +128,60 @@ func (m_ MatrixFullyConnectedGradient) EncodeGradientForDataToCommandBufferObjec // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966669-sourceinputfeaturechannels?language=objc -func (m_ MatrixFullyConnectedGradient) SourceInputFeatureChannels() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceInputFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966671-sourceoutputfeaturechannels?language=objc +func (m_ MatrixFullyConnectedGradient) SourceOutputFeatureChannels() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceOutputFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966669-sourceinputfeaturechannels?language=objc -func (m_ MatrixFullyConnectedGradient) SetSourceInputFeatureChannels(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceInputFeatureChannels:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966671-sourceoutputfeaturechannels?language=objc +func (m_ MatrixFullyConnectedGradient) SetSourceOutputFeatureChannels(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceOutputFeatureChannels:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966670-sourcenumberoffeaturevectors?language=objc -func (m_ MatrixFullyConnectedGradient) SourceNumberOfFeatureVectors() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceNumberOfFeatureVectors")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966663-alpha?language=objc +func (m_ MatrixFullyConnectedGradient) Alpha() float64 { + rv := objc.Call[float64](m_, objc.Sel("alpha")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966670-sourcenumberoffeaturevectors?language=objc -func (m_ MatrixFullyConnectedGradient) SetSourceNumberOfFeatureVectors(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966663-alpha?language=objc +func (m_ MatrixFullyConnectedGradient) SetAlpha(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setAlpha:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966671-sourceoutputfeaturechannels?language=objc -func (m_ MatrixFullyConnectedGradient) SourceOutputFeatureChannels() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceOutputFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966670-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixFullyConnectedGradient) SourceNumberOfFeatureVectors() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceNumberOfFeatureVectors")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966671-sourceoutputfeaturechannels?language=objc -func (m_ MatrixFullyConnectedGradient) SetSourceOutputFeatureChannels(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceOutputFeatureChannels:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966670-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixFullyConnectedGradient) SetSourceNumberOfFeatureVectors(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966663-alpha?language=objc -func (m_ MatrixFullyConnectedGradient) Alpha() float64 { - rv := objc.Call[float64](m_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966669-sourceinputfeaturechannels?language=objc +func (m_ MatrixFullyConnectedGradient) SourceInputFeatureChannels() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceInputFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966663-alpha?language=objc -func (m_ MatrixFullyConnectedGradient) SetAlpha(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnectedgradient/2966669-sourceinputfeaturechannels?language=objc +func (m_ MatrixFullyConnectedGradient) SetSourceInputFeatureChannels(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceInputFeatureChannels:"), value) } diff --git a/macos/mps/matrix_log_soft_max_gradient.gen.go b/macos/mps/matrix_log_soft_max_gradient.gen.go index 22e09bd7..9d3af741 100644 --- a/macos/mps/matrix_log_soft_max_gradient.gen.go +++ b/macos/mps/matrix_log_soft_max_gradient.gen.go @@ -54,32 +54,32 @@ func (m_ MatrixLogSoftMaxGradient) Init() MatrixLogSoftMaxGradient { return rv } -func (m_ MatrixLogSoftMaxGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixLogSoftMaxGradient { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixLogSoftMaxGradient](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixLogSoftMaxGradient) InitWithDevice(device metal.PDevice) MatrixLogSoftMaxGradient { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixLogSoftMaxGradient](m_, objc.Sel("initWithDevice:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966651-copywithzone?language=objc -func MatrixLogSoftMaxGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixLogSoftMaxGradient { - instance := MatrixLogSoftMaxGradientClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966654-initwithdevice?language=objc +func NewMatrixLogSoftMaxGradientWithDevice(device metal.PDevice) MatrixLogSoftMaxGradient { + instance := MatrixLogSoftMaxGradientClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixLogSoftMaxGradient) InitWithDevice(device metal.PDevice) MatrixLogSoftMaxGradient { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixLogSoftMaxGradient](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixLogSoftMaxGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixLogSoftMaxGradient { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixLogSoftMaxGradient](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966654-initwithdevice?language=objc -func NewMatrixLogSoftMaxGradientWithDevice(device metal.PDevice) MatrixLogSoftMaxGradient { - instance := MatrixLogSoftMaxGradientClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966651-copywithzone?language=objc +func MatrixLogSoftMaxGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixLogSoftMaxGradient { + instance := MatrixLogSoftMaxGradientClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/matrix_multiplication.gen.go b/macos/mps/matrix_multiplication.gen.go index 5293c1f0..4df324fd 100644 --- a/macos/mps/matrix_multiplication.gen.go +++ b/macos/mps/matrix_multiplication.gen.go @@ -21,16 +21,16 @@ type IMatrixMultiplication interface { IKernel EncodeToCommandBufferLeftMatrixRightMatrixResultMatrix(commandBuffer metal.PCommandBuffer, leftMatrix IMatrix, rightMatrix IMatrix, resultMatrix IMatrix) EncodeToCommandBufferObjectLeftMatrixRightMatrixResultMatrix(commandBufferObject objc.IObject, leftMatrix IMatrix, rightMatrix IMatrix, resultMatrix IMatrix) + ResultMatrixOrigin() metal.Origin + SetResultMatrixOrigin(value metal.Origin) RightMatrixOrigin() metal.Origin SetRightMatrixOrigin(value metal.Origin) BatchStart() uint SetBatchStart(value uint) - LeftMatrixOrigin() metal.Origin - SetLeftMatrixOrigin(value metal.Origin) BatchSize() uint SetBatchSize(value uint) - ResultMatrixOrigin() metal.Origin - SetResultMatrixOrigin(value metal.Origin) + LeftMatrixOrigin() metal.Origin + SetLeftMatrixOrigin(value metal.Origin) } // A matrix multiplication kernel. [Full Topic] @@ -46,21 +46,6 @@ func MatrixMultiplicationFrom(ptr unsafe.Pointer) MatrixMultiplication { } } -func (m_ MatrixMultiplication) InitWithDeviceTransposeLeftTransposeRightResultRowsResultColumnsInteriorColumnsAlphaBeta(device metal.PDevice, transposeLeft bool, transposeRight bool, resultRows uint, resultColumns uint, interiorColumns uint, alpha float64, beta float64) MatrixMultiplication { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixMultiplication](m_, objc.Sel("initWithDevice:transposeLeft:transposeRight:resultRows:resultColumns:interiorColumns:alpha:beta:"), po0, transposeLeft, transposeRight, resultRows, resultColumns, interiorColumns, alpha, beta) - return rv -} - -// Initializes a matrix multiplication kernel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2147845-initwithdevice?language=objc -func NewMatrixMultiplicationWithDeviceTransposeLeftTransposeRightResultRowsResultColumnsInteriorColumnsAlphaBeta(device metal.PDevice, transposeLeft bool, transposeRight bool, resultRows uint, resultColumns uint, interiorColumns uint, alpha float64, beta float64) MatrixMultiplication { - instance := MatrixMultiplicationClass.Alloc().InitWithDeviceTransposeLeftTransposeRightResultRowsResultColumnsInteriorColumnsAlphaBeta(device, transposeLeft, transposeRight, resultRows, resultColumns, interiorColumns, alpha, beta) - instance.Autorelease() - return instance -} - func (m_ MatrixMultiplication) InitWithDeviceResultRowsResultColumnsInteriorColumns(device metal.PDevice, resultRows uint, resultColumns uint, interiorColumns uint) MatrixMultiplication { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixMultiplication](m_, objc.Sel("initWithDevice:resultRows:resultColumns:interiorColumns:"), po0, resultRows, resultColumns, interiorColumns) @@ -96,32 +81,32 @@ func (m_ MatrixMultiplication) Init() MatrixMultiplication { return rv } -func (m_ MatrixMultiplication) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixMultiplication { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixMultiplication](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixMultiplication) InitWithDevice(device metal.PDevice) MatrixMultiplication { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixMultiplication](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixMultiplication_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixMultiplication { - instance := MatrixMultiplicationClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixMultiplicationWithDevice(device metal.PDevice) MatrixMultiplication { + instance := MatrixMultiplicationClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixMultiplication) InitWithDevice(device metal.PDevice) MatrixMultiplication { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixMultiplication](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixMultiplication) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixMultiplication { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixMultiplication](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixMultiplicationWithDevice(device metal.PDevice) MatrixMultiplication { - instance := MatrixMultiplicationClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixMultiplication_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixMultiplication { + instance := MatrixMultiplicationClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -141,6 +126,21 @@ func (m_ MatrixMultiplication) EncodeToCommandBufferObjectLeftMatrixRightMatrixR objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:leftMatrix:rightMatrix:resultMatrix:"), commandBufferObject, leftMatrix, rightMatrix, resultMatrix) } +// The origin of the result matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2147847-resultmatrixorigin?language=objc +func (m_ MatrixMultiplication) ResultMatrixOrigin() metal.Origin { + rv := objc.Call[metal.Origin](m_, objc.Sel("resultMatrixOrigin")) + return rv +} + +// The origin of the result matrix. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2147847-resultmatrixorigin?language=objc +func (m_ MatrixMultiplication) SetResultMatrixOrigin(value metal.Origin) { + objc.Call[objc.Void](m_, objc.Sel("setResultMatrixOrigin:"), value) +} + // The origin of the right input matrix. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2147851-rightmatrixorigin?language=objc @@ -171,21 +171,6 @@ func (m_ MatrixMultiplication) SetBatchStart(value uint) { objc.Call[objc.Void](m_, objc.Sel("setBatchStart:"), value) } -// The origin of the left input matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2147846-leftmatrixorigin?language=objc -func (m_ MatrixMultiplication) LeftMatrixOrigin() metal.Origin { - rv := objc.Call[metal.Origin](m_, objc.Sel("leftMatrixOrigin")) - return rv -} - -// The origin of the left input matrix. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2147846-leftmatrixorigin?language=objc -func (m_ MatrixMultiplication) SetLeftMatrixOrigin(value metal.Origin) { - objc.Call[objc.Void](m_, objc.Sel("setLeftMatrixOrigin:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2873082-batchsize?language=objc @@ -201,17 +186,17 @@ func (m_ MatrixMultiplication) SetBatchSize(value uint) { objc.Call[objc.Void](m_, objc.Sel("setBatchSize:"), value) } -// The origin of the result matrix. [Full Topic] +// The origin of the left input matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2147847-resultmatrixorigin?language=objc -func (m_ MatrixMultiplication) ResultMatrixOrigin() metal.Origin { - rv := objc.Call[metal.Origin](m_, objc.Sel("resultMatrixOrigin")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2147846-leftmatrixorigin?language=objc +func (m_ MatrixMultiplication) LeftMatrixOrigin() metal.Origin { + rv := objc.Call[metal.Origin](m_, objc.Sel("leftMatrixOrigin")) return rv } -// The origin of the result matrix. [Full Topic] +// The origin of the left input matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2147847-resultmatrixorigin?language=objc -func (m_ MatrixMultiplication) SetResultMatrixOrigin(value metal.Origin) { - objc.Call[objc.Void](m_, objc.Sel("setResultMatrixOrigin:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixmultiplication/2147846-leftmatrixorigin?language=objc +func (m_ MatrixMultiplication) SetLeftMatrixOrigin(value metal.Origin) { + objc.Call[objc.Void](m_, objc.Sel("setLeftMatrixOrigin:"), value) } diff --git a/macos/mps/matrix_neuron.gen.go b/macos/mps/matrix_neuron.gen.go index 967059c5..3ab87d35 100644 --- a/macos/mps/matrix_neuron.gen.go +++ b/macos/mps/matrix_neuron.gen.go @@ -19,18 +19,18 @@ type _MatrixNeuronClass struct { // An interface definition for the [MatrixNeuron] class. type IMatrixNeuron interface { IMatrixUnaryKernel - EncodeToCommandBufferInputMatrixBiasVectorResultMatrix(commandBuffer metal.PCommandBuffer, inputMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) - EncodeToCommandBufferObjectInputMatrixBiasVectorResultMatrix(commandBufferObject objc.IObject, inputMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) - NeuronParameterC() float32 - SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) NeuronParameterA() float32 - NeuronParameterB() float32 NeuronType() CNNNeuronType + SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) + NeuronParameterB() float32 + EncodeToCommandBufferInputMatrixBiasVectorResultMatrix(commandBuffer metal.PCommandBuffer, inputMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) + EncodeToCommandBufferObjectInputMatrixBiasVectorResultMatrix(commandBufferObject objc.IObject, inputMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) SetNeuronToPReLUWithParametersA(A []byte) - SourceNumberOfFeatureVectors() uint - SetSourceNumberOfFeatureVectors(value uint) + NeuronParameterC() float32 Alpha() float64 SetAlpha(value float64) + SourceNumberOfFeatureVectors() uint + SetSourceNumberOfFeatureVectors(value uint) SourceInputFeatureChannels() uint SetSourceInputFeatureChannels(value uint) } @@ -100,24 +100,17 @@ func (m_ MatrixNeuron) Init() MatrixNeuron { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935606-encodetocommandbuffer?language=objc -func (m_ MatrixNeuron) EncodeToCommandBufferInputMatrixBiasVectorResultMatrix(commandBuffer metal.PCommandBuffer, inputMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:inputMatrix:biasVector:resultMatrix:"), po0, inputMatrix, biasVector, resultMatrix) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935606-encodetocommandbuffer?language=objc -func (m_ MatrixNeuron) EncodeToCommandBufferObjectInputMatrixBiasVectorResultMatrix(commandBufferObject objc.IObject, inputMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) { - objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:inputMatrix:biasVector:resultMatrix:"), commandBufferObject, inputMatrix, biasVector, resultMatrix) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935583-neuronparametera?language=objc +func (m_ MatrixNeuron) NeuronParameterA() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935598-neuronparameterc?language=objc -func (m_ MatrixNeuron) NeuronParameterC() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterC")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935587-neurontype?language=objc +func (m_ MatrixNeuron) NeuronType() CNNNeuronType { + rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) return rv } @@ -130,26 +123,25 @@ func (m_ MatrixNeuron) SetNeuronTypeParameterAParameterBParameterC(neuronType CN // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935583-neuronparametera?language=objc -func (m_ MatrixNeuron) NeuronParameterA() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935585-neuronparameterb?language=objc +func (m_ MatrixNeuron) NeuronParameterB() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterB")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935585-neuronparameterb?language=objc -func (m_ MatrixNeuron) NeuronParameterB() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterB")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935606-encodetocommandbuffer?language=objc +func (m_ MatrixNeuron) EncodeToCommandBufferInputMatrixBiasVectorResultMatrix(commandBuffer metal.PCommandBuffer, inputMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:inputMatrix:biasVector:resultMatrix:"), po0, inputMatrix, biasVector, resultMatrix) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935587-neurontype?language=objc -func (m_ MatrixNeuron) NeuronType() CNNNeuronType { - rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935606-encodetocommandbuffer?language=objc +func (m_ MatrixNeuron) EncodeToCommandBufferObjectInputMatrixBiasVectorResultMatrix(commandBufferObject objc.IObject, inputMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) { + objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:inputMatrix:biasVector:resultMatrix:"), commandBufferObject, inputMatrix, biasVector, resultMatrix) } // [Full Topic] @@ -161,19 +153,12 @@ func (m_ MatrixNeuron) SetNeuronToPReLUWithParametersA(A []byte) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935607-sourcenumberoffeaturevectors?language=objc -func (m_ MatrixNeuron) SourceNumberOfFeatureVectors() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceNumberOfFeatureVectors")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935598-neuronparameterc?language=objc +func (m_ MatrixNeuron) NeuronParameterC() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterC")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935607-sourcenumberoffeaturevectors?language=objc -func (m_ MatrixNeuron) SetSourceNumberOfFeatureVectors(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935605-alpha?language=objc @@ -189,6 +174,21 @@ func (m_ MatrixNeuron) SetAlpha(value float64) { objc.Call[objc.Void](m_, objc.Sel("setAlpha:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935607-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixNeuron) SourceNumberOfFeatureVectors() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceNumberOfFeatureVectors")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935607-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixNeuron) SetSourceNumberOfFeatureVectors(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935599-sourceinputfeaturechannels?language=objc diff --git a/macos/mps/matrix_neuron_gradient.gen.go b/macos/mps/matrix_neuron_gradient.gen.go index 50b4536d..e5295065 100644 --- a/macos/mps/matrix_neuron_gradient.gen.go +++ b/macos/mps/matrix_neuron_gradient.gen.go @@ -19,18 +19,18 @@ type _MatrixNeuronGradientClass struct { // An interface definition for the [MatrixNeuronGradient] class. type IMatrixNeuronGradient interface { IMatrixBinaryKernel + NeuronParameterA() float32 + NeuronType() CNNNeuronType + SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) + NeuronParameterB() float32 EncodeToCommandBufferGradientMatrixInputMatrixBiasVectorResultGradientForDataMatrixResultGradientForBiasVector(commandBuffer metal.PCommandBuffer, gradientMatrix IMatrix, inputMatrix IMatrix, biasVector IVector, resultGradientForDataMatrix IMatrix, resultGradientForBiasVector IVector) EncodeToCommandBufferObjectGradientMatrixInputMatrixBiasVectorResultGradientForDataMatrixResultGradientForBiasVector(commandBufferObject objc.IObject, gradientMatrix IMatrix, inputMatrix IMatrix, biasVector IVector, resultGradientForDataMatrix IMatrix, resultGradientForBiasVector IVector) SetNeuronToPReLUWithParametersA(A []byte) - NeuronParameterB() float32 - SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) - NeuronParameterA() float32 - NeuronType() CNNNeuronType NeuronParameterC() float32 - SourceNumberOfFeatureVectors() uint - SetSourceNumberOfFeatureVectors(value uint) Alpha() float64 SetAlpha(value float64) + SourceNumberOfFeatureVectors() uint + SetSourceNumberOfFeatureVectors(value uint) SourceInputFeatureChannels() uint SetSourceInputFeatureChannels(value uint) } @@ -48,32 +48,32 @@ func MatrixNeuronGradientFrom(ptr unsafe.Pointer) MatrixNeuronGradient { } } -func (m_ MatrixNeuronGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixNeuronGradient { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixNeuronGradient](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixNeuronGradient) InitWithDevice(device metal.PDevice) MatrixNeuronGradient { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixNeuronGradient](m_, objc.Sel("initWithDevice:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966674-copywithzone?language=objc -func MatrixNeuronGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixNeuronGradient { - instance := MatrixNeuronGradientClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966677-initwithdevice?language=objc +func NewMatrixNeuronGradientWithDevice(device metal.PDevice) MatrixNeuronGradient { + instance := MatrixNeuronGradientClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixNeuronGradient) InitWithDevice(device metal.PDevice) MatrixNeuronGradient { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixNeuronGradient](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixNeuronGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixNeuronGradient { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixNeuronGradient](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966677-initwithdevice?language=objc -func NewMatrixNeuronGradientWithDevice(device metal.PDevice) MatrixNeuronGradient { - instance := MatrixNeuronGradientClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966674-copywithzone?language=objc +func MatrixNeuronGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixNeuronGradient { + instance := MatrixNeuronGradientClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -100,24 +100,25 @@ func (m_ MatrixNeuronGradient) Init() MatrixNeuronGradient { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966675-encodetocommandbuffer?language=objc -func (m_ MatrixNeuronGradient) EncodeToCommandBufferGradientMatrixInputMatrixBiasVectorResultGradientForDataMatrixResultGradientForBiasVector(commandBuffer metal.PCommandBuffer, gradientMatrix IMatrix, inputMatrix IMatrix, biasVector IVector, resultGradientForDataMatrix IMatrix, resultGradientForBiasVector IVector) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:gradientMatrix:inputMatrix:biasVector:resultGradientForDataMatrix:resultGradientForBiasVector:"), po0, gradientMatrix, inputMatrix, biasVector, resultGradientForDataMatrix, resultGradientForBiasVector) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966678-neuronparametera?language=objc +func (m_ MatrixNeuronGradient) NeuronParameterA() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966675-encodetocommandbuffer?language=objc -func (m_ MatrixNeuronGradient) EncodeToCommandBufferObjectGradientMatrixInputMatrixBiasVectorResultGradientForDataMatrixResultGradientForBiasVector(commandBufferObject objc.IObject, gradientMatrix IMatrix, inputMatrix IMatrix, biasVector IVector, resultGradientForDataMatrix IMatrix, resultGradientForBiasVector IVector) { - objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:gradientMatrix:inputMatrix:biasVector:resultGradientForDataMatrix:resultGradientForBiasVector:"), commandBufferObject, gradientMatrix, inputMatrix, biasVector, resultGradientForDataMatrix, resultGradientForBiasVector) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966681-neurontype?language=objc +func (m_ MatrixNeuronGradient) NeuronType() CNNNeuronType { + rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966682-setneurontopreluwithparametersa?language=objc -func (m_ MatrixNeuronGradient) SetNeuronToPReLUWithParametersA(A []byte) { - objc.Call[objc.Void](m_, objc.Sel("setNeuronToPReLUWithParametersA:"), A) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966683-setneurontype?language=objc +func (m_ MatrixNeuronGradient) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) { + objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) } // [Full Topic] @@ -130,25 +131,24 @@ func (m_ MatrixNeuronGradient) NeuronParameterB() float32 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966683-setneurontype?language=objc -func (m_ MatrixNeuronGradient) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) { - objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966675-encodetocommandbuffer?language=objc +func (m_ MatrixNeuronGradient) EncodeToCommandBufferGradientMatrixInputMatrixBiasVectorResultGradientForDataMatrixResultGradientForBiasVector(commandBuffer metal.PCommandBuffer, gradientMatrix IMatrix, inputMatrix IMatrix, biasVector IVector, resultGradientForDataMatrix IMatrix, resultGradientForBiasVector IVector) { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:gradientMatrix:inputMatrix:biasVector:resultGradientForDataMatrix:resultGradientForBiasVector:"), po0, gradientMatrix, inputMatrix, biasVector, resultGradientForDataMatrix, resultGradientForBiasVector) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966678-neuronparametera?language=objc -func (m_ MatrixNeuronGradient) NeuronParameterA() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966675-encodetocommandbuffer?language=objc +func (m_ MatrixNeuronGradient) EncodeToCommandBufferObjectGradientMatrixInputMatrixBiasVectorResultGradientForDataMatrixResultGradientForBiasVector(commandBufferObject objc.IObject, gradientMatrix IMatrix, inputMatrix IMatrix, biasVector IVector, resultGradientForDataMatrix IMatrix, resultGradientForBiasVector IVector) { + objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:gradientMatrix:inputMatrix:biasVector:resultGradientForDataMatrix:resultGradientForBiasVector:"), commandBufferObject, gradientMatrix, inputMatrix, biasVector, resultGradientForDataMatrix, resultGradientForBiasVector) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966681-neurontype?language=objc -func (m_ MatrixNeuronGradient) NeuronType() CNNNeuronType { - rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966682-setneurontopreluwithparametersa?language=objc +func (m_ MatrixNeuronGradient) SetNeuronToPReLUWithParametersA(A []byte) { + objc.Call[objc.Void](m_, objc.Sel("setNeuronToPReLUWithParametersA:"), A) } // [Full Topic] @@ -161,32 +161,32 @@ func (m_ MatrixNeuronGradient) NeuronParameterC() float32 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966685-sourcenumberoffeaturevectors?language=objc -func (m_ MatrixNeuronGradient) SourceNumberOfFeatureVectors() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceNumberOfFeatureVectors")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966673-alpha?language=objc +func (m_ MatrixNeuronGradient) Alpha() float64 { + rv := objc.Call[float64](m_, objc.Sel("alpha")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966685-sourcenumberoffeaturevectors?language=objc -func (m_ MatrixNeuronGradient) SetSourceNumberOfFeatureVectors(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966673-alpha?language=objc +func (m_ MatrixNeuronGradient) SetAlpha(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setAlpha:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966673-alpha?language=objc -func (m_ MatrixNeuronGradient) Alpha() float64 { - rv := objc.Call[float64](m_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966685-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixNeuronGradient) SourceNumberOfFeatureVectors() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceNumberOfFeatureVectors")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966673-alpha?language=objc -func (m_ MatrixNeuronGradient) SetAlpha(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966685-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixNeuronGradient) SetSourceNumberOfFeatureVectors(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) } // [Full Topic] diff --git a/macos/mps/matrix_random.gen.go b/macos/mps/matrix_random.gen.go index d1ff1aa9..47f8119e 100644 --- a/macos/mps/matrix_random.gen.go +++ b/macos/mps/matrix_random.gen.go @@ -21,12 +21,10 @@ type IMatrixRandom interface { IKernel EncodeToCommandBufferDestinationMatrix(commandBuffer metal.PCommandBuffer, destinationMatrix IMatrix) EncodeToCommandBufferObjectDestinationMatrix(commandBufferObject objc.IObject, destinationMatrix IMatrix) - EncodeToCommandBufferDestinationVector(commandBuffer metal.PCommandBuffer, destinationVector IVector) - EncodeToCommandBufferObjectDestinationVector(commandBufferObject objc.IObject, destinationVector IVector) - BatchStart() uint - SetBatchStart(value uint) DistributionType() MatrixRandomDistribution DestinationDataType() DataType + BatchStart() uint + SetBatchStart(value uint) BatchSize() uint SetBatchSize(value uint) } @@ -64,32 +62,32 @@ func (m_ MatrixRandom) Init() MatrixRandom { return rv } -func (m_ MatrixRandom) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixRandom { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixRandom](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixRandom) InitWithDevice(device metal.PDevice) MatrixRandom { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixRandom](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixRandom_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixRandom { - instance := MatrixRandomClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixRandomWithDevice(device metal.PDevice) MatrixRandom { + instance := MatrixRandomClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixRandom) InitWithDevice(device metal.PDevice) MatrixRandom { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixRandom](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixRandom) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixRandom { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixRandom](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixRandomWithDevice(device metal.PDevice) MatrixRandom { - instance := MatrixRandomClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixRandom_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixRandom { + instance := MatrixRandomClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -111,17 +109,18 @@ func (m_ MatrixRandom) EncodeToCommandBufferObjectDestinationMatrix(commandBuffe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandom/3242851-encodetocommandbuffer?language=objc -func (m_ MatrixRandom) EncodeToCommandBufferDestinationVector(commandBuffer metal.PCommandBuffer, destinationVector IVector) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:destinationVector:"), po0, destinationVector) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandom/3242850-distributiontype?language=objc +func (m_ MatrixRandom) DistributionType() MatrixRandomDistribution { + rv := objc.Call[MatrixRandomDistribution](m_, objc.Sel("distributionType")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandom/3242851-encodetocommandbuffer?language=objc -func (m_ MatrixRandom) EncodeToCommandBufferObjectDestinationVector(commandBufferObject objc.IObject, destinationVector IVector) { - objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:destinationVector:"), commandBufferObject, destinationVector) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandom/3242849-destinationdatatype?language=objc +func (m_ MatrixRandom) DestinationDataType() DataType { + rv := objc.Call[DataType](m_, objc.Sel("destinationDataType")) + return rv } // [Full Topic] @@ -139,22 +138,6 @@ func (m_ MatrixRandom) SetBatchStart(value uint) { objc.Call[objc.Void](m_, objc.Sel("setBatchStart:"), value) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandom/3242850-distributiontype?language=objc -func (m_ MatrixRandom) DistributionType() MatrixRandomDistribution { - rv := objc.Call[MatrixRandomDistribution](m_, objc.Sel("distributionType")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandom/3242849-destinationdatatype?language=objc -func (m_ MatrixRandom) DestinationDataType() DataType { - rv := objc.Call[DataType](m_, objc.Sel("destinationDataType")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandom/3242847-batchsize?language=objc diff --git a/macos/mps/matrix_random_distribution_descriptor.gen.go b/macos/mps/matrix_random_distribution_descriptor.gen.go index 5da3fc2f..8a3a7fd9 100644 --- a/macos/mps/matrix_random_distribution_descriptor.gen.go +++ b/macos/mps/matrix_random_distribution_descriptor.gen.go @@ -18,16 +18,16 @@ type _MatrixRandomDistributionDescriptorClass struct { // An interface definition for the [MatrixRandomDistributionDescriptor] class. type IMatrixRandomDistributionDescriptor interface { objc.IObject - Maximum() float32 - SetMaximum(value float32) DistributionType() MatrixRandomDistribution SetDistributionType(value MatrixRandomDistribution) - Mean() float32 - SetMean(value float32) Minimum() float32 SetMinimum(value float32) StandardDeviation() float32 SetStandardDeviation(value float32) + Maximum() float32 + SetMaximum(value float32) + Mean() float32 + SetMean(value float32) } // [Full Topic] @@ -63,21 +63,6 @@ func (m_ MatrixRandomDistributionDescriptor) Init() MatrixRandomDistributionDesc return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3547979-normaldistributiondescriptorwith?language=objc -func (mc _MatrixRandomDistributionDescriptorClass) NormalDistributionDescriptorWithMeanStandardDeviation(mean float32, standardDeviation float32) MatrixRandomDistributionDescriptor { - rv := objc.Call[MatrixRandomDistributionDescriptor](mc, objc.Sel("normalDistributionDescriptorWithMean:standardDeviation:"), mean, standardDeviation) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3547979-normaldistributiondescriptorwith?language=objc -func MatrixRandomDistributionDescriptor_NormalDistributionDescriptorWithMeanStandardDeviation(mean float32, standardDeviation float32) MatrixRandomDistributionDescriptor { - return MatrixRandomDistributionDescriptorClass.NormalDistributionDescriptorWithMeanStandardDeviation(mean, standardDeviation) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242862-uniformdistributiondescriptorwit?language=objc @@ -95,17 +80,17 @@ func MatrixRandomDistributionDescriptor_UniformDistributionDescriptorWithMinimum // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3547980-normaldistributiondescriptorwith?language=objc -func (mc _MatrixRandomDistributionDescriptorClass) NormalDistributionDescriptorWithMeanStandardDeviationMinimumMaximum(mean float32, standardDeviation float32, minimum float32, maximum float32) MatrixRandomDistributionDescriptor { - rv := objc.Call[MatrixRandomDistributionDescriptor](mc, objc.Sel("normalDistributionDescriptorWithMean:standardDeviation:minimum:maximum:"), mean, standardDeviation, minimum, maximum) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3547979-normaldistributiondescriptorwith?language=objc +func (mc _MatrixRandomDistributionDescriptorClass) NormalDistributionDescriptorWithMeanStandardDeviation(mean float32, standardDeviation float32) MatrixRandomDistributionDescriptor { + rv := objc.Call[MatrixRandomDistributionDescriptor](mc, objc.Sel("normalDistributionDescriptorWithMean:standardDeviation:"), mean, standardDeviation) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3547980-normaldistributiondescriptorwith?language=objc -func MatrixRandomDistributionDescriptor_NormalDistributionDescriptorWithMeanStandardDeviationMinimumMaximum(mean float32, standardDeviation float32, minimum float32, maximum float32) MatrixRandomDistributionDescriptor { - return MatrixRandomDistributionDescriptorClass.NormalDistributionDescriptorWithMeanStandardDeviationMinimumMaximum(mean, standardDeviation, minimum, maximum) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3547979-normaldistributiondescriptorwith?language=objc +func MatrixRandomDistributionDescriptor_NormalDistributionDescriptorWithMeanStandardDeviation(mean float32, standardDeviation float32) MatrixRandomDistributionDescriptor { + return MatrixRandomDistributionDescriptorClass.NormalDistributionDescriptorWithMeanStandardDeviation(mean, standardDeviation) } // [Full Topic] @@ -123,21 +108,6 @@ func MatrixRandomDistributionDescriptor_DefaultDistributionDescriptor() MatrixRa return MatrixRandomDistributionDescriptorClass.DefaultDistributionDescriptor() } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242858-maximum?language=objc -func (m_ MatrixRandomDistributionDescriptor) Maximum() float32 { - rv := objc.Call[float32](m_, objc.Sel("maximum")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242858-maximum?language=objc -func (m_ MatrixRandomDistributionDescriptor) SetMaximum(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setMaximum:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242857-distributiontype?language=objc @@ -153,21 +123,6 @@ func (m_ MatrixRandomDistributionDescriptor) SetDistributionType(value MatrixRan objc.Call[objc.Void](m_, objc.Sel("setDistributionType:"), value) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242859-mean?language=objc -func (m_ MatrixRandomDistributionDescriptor) Mean() float32 { - rv := objc.Call[float32](m_, objc.Sel("mean")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242859-mean?language=objc -func (m_ MatrixRandomDistributionDescriptor) SetMean(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setMean:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242860-minimum?language=objc @@ -197,3 +152,33 @@ func (m_ MatrixRandomDistributionDescriptor) StandardDeviation() float32 { func (m_ MatrixRandomDistributionDescriptor) SetStandardDeviation(value float32) { objc.Call[objc.Void](m_, objc.Sel("setStandardDeviation:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242858-maximum?language=objc +func (m_ MatrixRandomDistributionDescriptor) Maximum() float32 { + rv := objc.Call[float32](m_, objc.Sel("maximum")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242858-maximum?language=objc +func (m_ MatrixRandomDistributionDescriptor) SetMaximum(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setMaximum:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242859-mean?language=objc +func (m_ MatrixRandomDistributionDescriptor) Mean() float32 { + rv := objc.Call[float32](m_, objc.Sel("mean")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242859-mean?language=objc +func (m_ MatrixRandomDistributionDescriptor) SetMean(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setMean:"), value) +} diff --git a/macos/mps/matrix_random_mtg_p32.gen.go b/macos/mps/matrix_random_mtg_p32.gen.go index 2df2a84f..1f2fc5c3 100644 --- a/macos/mps/matrix_random_mtg_p32.gen.go +++ b/macos/mps/matrix_random_mtg_p32.gen.go @@ -51,36 +51,6 @@ func NewMatrixRandomMTGP32WithDevice(device metal.PDevice) MatrixRandomMTGP32 { return instance } -func (m_ MatrixRandomMTGP32) InitWithDeviceDestinationDataTypeSeed(device metal.PDevice, destinationDataType DataType, seed uint) MatrixRandomMTGP32 { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixRandomMTGP32](m_, objc.Sel("initWithDevice:destinationDataType:seed:"), po0, destinationDataType, seed) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandommtgp32/3242866-initwithdevice?language=objc -func NewMatrixRandomMTGP32WithDeviceDestinationDataTypeSeed(device metal.PDevice, destinationDataType DataType, seed uint) MatrixRandomMTGP32 { - instance := MatrixRandomMTGP32Class.Alloc().InitWithDeviceDestinationDataTypeSeed(device, destinationDataType, seed) - instance.Autorelease() - return instance -} - -func (m_ MatrixRandomMTGP32) InitWithDeviceDestinationDataTypeSeedDistributionDescriptor(device metal.PDevice, destinationDataType DataType, seed uint, distributionDescriptor IMatrixRandomDistributionDescriptor) MatrixRandomMTGP32 { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixRandomMTGP32](m_, objc.Sel("initWithDevice:destinationDataType:seed:distributionDescriptor:"), po0, destinationDataType, seed, distributionDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandommtgp32/3242867-initwithdevice?language=objc -func NewMatrixRandomMTGP32WithDeviceDestinationDataTypeSeedDistributionDescriptor(device metal.PDevice, destinationDataType DataType, seed uint, distributionDescriptor IMatrixRandomDistributionDescriptor) MatrixRandomMTGP32 { - instance := MatrixRandomMTGP32Class.Alloc().InitWithDeviceDestinationDataTypeSeedDistributionDescriptor(device, destinationDataType, seed, distributionDescriptor) - instance.Autorelease() - return instance -} - func (mc _MatrixRandomMTGP32Class) Alloc() MatrixRandomMTGP32 { rv := objc.Call[MatrixRandomMTGP32](mc, objc.Sel("alloc")) return rv diff --git a/macos/mps/matrix_random_philox.gen.go b/macos/mps/matrix_random_philox.gen.go index e4a35c13..e3b10da5 100644 --- a/macos/mps/matrix_random_philox.gen.go +++ b/macos/mps/matrix_random_philox.gen.go @@ -34,36 +34,6 @@ func MatrixRandomPhiloxFrom(ptr unsafe.Pointer) MatrixRandomPhilox { } } -func (m_ MatrixRandomPhilox) InitWithDeviceDestinationDataTypeSeedDistributionDescriptor(device metal.PDevice, destinationDataType DataType, seed uint, distributionDescriptor IMatrixRandomDistributionDescriptor) MatrixRandomPhilox { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixRandomPhilox](m_, objc.Sel("initWithDevice:destinationDataType:seed:distributionDescriptor:"), po0, destinationDataType, seed, distributionDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomphilox/3242873-initwithdevice?language=objc -func NewMatrixRandomPhiloxWithDeviceDestinationDataTypeSeedDistributionDescriptor(device metal.PDevice, destinationDataType DataType, seed uint, distributionDescriptor IMatrixRandomDistributionDescriptor) MatrixRandomPhilox { - instance := MatrixRandomPhiloxClass.Alloc().InitWithDeviceDestinationDataTypeSeedDistributionDescriptor(device, destinationDataType, seed, distributionDescriptor) - instance.Autorelease() - return instance -} - -func (m_ MatrixRandomPhilox) InitWithDeviceDestinationDataTypeSeed(device metal.PDevice, destinationDataType DataType, seed uint) MatrixRandomPhilox { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixRandomPhilox](m_, objc.Sel("initWithDevice:destinationDataType:seed:"), po0, destinationDataType, seed) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomphilox/3242872-initwithdevice?language=objc -func NewMatrixRandomPhiloxWithDeviceDestinationDataTypeSeed(device metal.PDevice, destinationDataType DataType, seed uint) MatrixRandomPhilox { - instance := MatrixRandomPhiloxClass.Alloc().InitWithDeviceDestinationDataTypeSeed(device, destinationDataType, seed) - instance.Autorelease() - return instance -} - func (m_ MatrixRandomPhilox) InitWithDevice(device metal.PDevice) MatrixRandomPhilox { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixRandomPhilox](m_, objc.Sel("initWithDevice:"), po0) diff --git a/macos/mps/matrix_soft_max_gradient.gen.go b/macos/mps/matrix_soft_max_gradient.gen.go index 66b916bd..d8794387 100644 --- a/macos/mps/matrix_soft_max_gradient.gen.go +++ b/macos/mps/matrix_soft_max_gradient.gen.go @@ -21,10 +21,10 @@ type IMatrixSoftMaxGradient interface { IMatrixBinaryKernel EncodeToCommandBufferGradientMatrixForwardOutputMatrixResultMatrix(commandBuffer metal.PCommandBuffer, gradientMatrix IMatrix, forwardOutputMatrix IMatrix, resultMatrix IMatrix) EncodeToCommandBufferObjectGradientMatrixForwardOutputMatrixResultMatrix(commandBufferObject objc.IObject, gradientMatrix IMatrix, forwardOutputMatrix IMatrix, resultMatrix IMatrix) - SourceColumns() uint - SetSourceColumns(value uint) SourceRows() uint SetSourceRows(value uint) + SourceColumns() uint + SetSourceColumns(value uint) } // A gradient softmax kernel that operates on matrices. [Full Topic] @@ -40,32 +40,32 @@ func MatrixSoftMaxGradientFrom(ptr unsafe.Pointer) MatrixSoftMaxGradient { } } -func (m_ MatrixSoftMaxGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSoftMaxGradient { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixSoftMaxGradient](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixSoftMaxGradient) InitWithDevice(device metal.PDevice) MatrixSoftMaxGradient { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixSoftMaxGradient](m_, objc.Sel("initWithDevice:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966651-copywithzone?language=objc -func MatrixSoftMaxGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSoftMaxGradient { - instance := MatrixSoftMaxGradientClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966654-initwithdevice?language=objc +func NewMatrixSoftMaxGradientWithDevice(device metal.PDevice) MatrixSoftMaxGradient { + instance := MatrixSoftMaxGradientClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixSoftMaxGradient) InitWithDevice(device metal.PDevice) MatrixSoftMaxGradient { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixSoftMaxGradient](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixSoftMaxGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSoftMaxGradient { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixSoftMaxGradient](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966654-initwithdevice?language=objc -func NewMatrixSoftMaxGradientWithDevice(device metal.PDevice) MatrixSoftMaxGradient { - instance := MatrixSoftMaxGradientClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966651-copywithzone?language=objc +func MatrixSoftMaxGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSoftMaxGradient { + instance := MatrixSoftMaxGradientClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -107,30 +107,30 @@ func (m_ MatrixSoftMaxGradient) EncodeToCommandBufferObjectGradientMatrixForward // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966655-sourcecolumns?language=objc -func (m_ MatrixSoftMaxGradient) SourceColumns() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceColumns")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966656-sourcerows?language=objc +func (m_ MatrixSoftMaxGradient) SourceRows() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceRows")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966655-sourcecolumns?language=objc -func (m_ MatrixSoftMaxGradient) SetSourceColumns(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceColumns:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966656-sourcerows?language=objc +func (m_ MatrixSoftMaxGradient) SetSourceRows(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceRows:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966656-sourcerows?language=objc -func (m_ MatrixSoftMaxGradient) SourceRows() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceRows")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966655-sourcecolumns?language=objc +func (m_ MatrixSoftMaxGradient) SourceColumns() uint { + rv := objc.Call[uint](m_, objc.Sel("sourceColumns")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966656-sourcerows?language=objc -func (m_ MatrixSoftMaxGradient) SetSourceRows(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setSourceRows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsoftmaxgradient/2966655-sourcecolumns?language=objc +func (m_ MatrixSoftMaxGradient) SetSourceColumns(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceColumns:"), value) } diff --git a/macos/mps/matrix_solve_cholesky.gen.go b/macos/mps/matrix_solve_cholesky.gen.go index 824c34a6..0d16d60b 100644 --- a/macos/mps/matrix_solve_cholesky.gen.go +++ b/macos/mps/matrix_solve_cholesky.gen.go @@ -71,32 +71,32 @@ func (m_ MatrixSolveCholesky) Init() MatrixSolveCholesky { return rv } -func (m_ MatrixSolveCholesky) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveCholesky { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixSolveCholesky](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixSolveCholesky) InitWithDevice(device metal.PDevice) MatrixSolveCholesky { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixSolveCholesky](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixSolveCholesky_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveCholesky { - instance := MatrixSolveCholeskyClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixSolveCholeskyWithDevice(device metal.PDevice) MatrixSolveCholesky { + instance := MatrixSolveCholeskyClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixSolveCholesky) InitWithDevice(device metal.PDevice) MatrixSolveCholesky { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixSolveCholesky](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixSolveCholesky) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveCholesky { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixSolveCholesky](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixSolveCholeskyWithDevice(device metal.PDevice) MatrixSolveCholesky { - instance := MatrixSolveCholeskyClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixSolveCholesky_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveCholesky { + instance := MatrixSolveCholeskyClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/matrix_solve_lu.gen.go b/macos/mps/matrix_solve_lu.gen.go index 42f0b0da..6e9bcd65 100644 --- a/macos/mps/matrix_solve_lu.gen.go +++ b/macos/mps/matrix_solve_lu.gen.go @@ -71,32 +71,32 @@ func (m_ MatrixSolveLU) Init() MatrixSolveLU { return rv } -func (m_ MatrixSolveLU) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveLU { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixSolveLU](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixSolveLU) InitWithDevice(device metal.PDevice) MatrixSolveLU { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixSolveLU](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixSolveLU_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveLU { - instance := MatrixSolveLUClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixSolveLUWithDevice(device metal.PDevice) MatrixSolveLU { + instance := MatrixSolveLUClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixSolveLU) InitWithDevice(device metal.PDevice) MatrixSolveLU { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixSolveLU](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixSolveLU) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveLU { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixSolveLU](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixSolveLUWithDevice(device metal.PDevice) MatrixSolveLU { - instance := MatrixSolveLUClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixSolveLU_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveLU { + instance := MatrixSolveLUClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/matrix_solve_triangular.gen.go b/macos/mps/matrix_solve_triangular.gen.go index 5db2f8e8..aa23ab0a 100644 --- a/macos/mps/matrix_solve_triangular.gen.go +++ b/macos/mps/matrix_solve_triangular.gen.go @@ -71,32 +71,32 @@ func (m_ MatrixSolveTriangular) Init() MatrixSolveTriangular { return rv } -func (m_ MatrixSolveTriangular) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveTriangular { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixSolveTriangular](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixSolveTriangular) InitWithDevice(device metal.PDevice) MatrixSolveTriangular { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixSolveTriangular](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixSolveTriangular_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveTriangular { - instance := MatrixSolveTriangularClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixSolveTriangularWithDevice(device metal.PDevice) MatrixSolveTriangular { + instance := MatrixSolveTriangularClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixSolveTriangular) InitWithDevice(device metal.PDevice) MatrixSolveTriangular { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixSolveTriangular](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixSolveTriangular) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveTriangular { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixSolveTriangular](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixSolveTriangularWithDevice(device metal.PDevice) MatrixSolveTriangular { - instance := MatrixSolveTriangularClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixSolveTriangular_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSolveTriangular { + instance := MatrixSolveTriangularClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/matrix_sum.gen.go b/macos/mps/matrix_sum.gen.go index 6ceadc88..cebd0bd9 100644 --- a/macos/mps/matrix_sum.gen.go +++ b/macos/mps/matrix_sum.gen.go @@ -19,19 +19,19 @@ type _MatrixSumClass struct { // An interface definition for the [MatrixSum] class. type IMatrixSum interface { IKernel - SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) NeuronType() CNNNeuronType + SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) EncodeToCommandBufferSourceMatricesResultMatrixScaleVectorOffsetVectorBiasVectorStartIndex(buffer metal.PCommandBuffer, sourceMatrices []IMatrix, resultMatrix IMatrix, scaleVector IVector, offsetVector IVector, biasVector IVector, startIndex uint) EncodeToCommandBufferObjectSourceMatricesResultMatrixScaleVectorOffsetVectorBiasVectorStartIndex(bufferObject objc.IObject, sourceMatrices []IMatrix, resultMatrix IMatrix, scaleVector IVector, offsetVector IVector, biasVector IVector, startIndex uint) - NeuronParameterC() float32 - Transpose() bool - NeuronParameterB() float32 NeuronParameterA() float32 - Columns() uint ResultMatrixOrigin() metal.Origin SetResultMatrixOrigin(value metal.Origin) - Rows() uint + Transpose() bool + Columns() uint Count() uint + Rows() uint + NeuronParameterB() float32 + NeuronParameterC() float32 } // A kernel for performing a pointwise summation of a matrix. [Full Topic] @@ -82,21 +82,6 @@ func (m_ MatrixSum) Init() MatrixSum { return rv } -func (m_ MatrixSum) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSum { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixSum](m_, objc.Sel("copyWithZone:device:"), zone, po1) - return rv -} - -// Makes a copy of this kernel object for a new device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixSum_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSum { - instance := MatrixSumClass.Alloc().CopyWithZoneDevice(zone, device) - instance.Autorelease() - return instance -} - func (m_ MatrixSum) InitWithDevice(device metal.PDevice) MatrixSum { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixSum](m_, objc.Sel("initWithDevice:"), po0) @@ -112,11 +97,19 @@ func NewMatrixSumWithDevice(device metal.PDevice) MatrixSum { return instance } -// [Full Topic] +func (m_ MatrixSum) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSum { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixSum](m_, objc.Sel("copyWithZone:device:"), zone, po1) + return rv +} + +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935617-setneurontype?language=objc -func (m_ MatrixSum) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) { - objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixSum_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSum { + instance := MatrixSumClass.Alloc().CopyWithZoneDevice(zone, device) + instance.Autorelease() + return instance } // [Full Topic] @@ -127,6 +120,13 @@ func (m_ MatrixSum) NeuronType() CNNNeuronType { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935617-setneurontype?language=objc +func (m_ MatrixSum) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float32, parameterB float32, parameterC float32) { + objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935613-encodetocommandbuffer?language=objc @@ -144,33 +144,32 @@ func (m_ MatrixSum) EncodeToCommandBufferObjectSourceMatricesResultMatrixScaleVe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935618-neuronparameterc?language=objc -func (m_ MatrixSum) NeuronParameterC() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterC")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935624-neuronparametera?language=objc +func (m_ MatrixSum) NeuronParameterA() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935621-transpose?language=objc -func (m_ MatrixSum) Transpose() bool { - rv := objc.Call[bool](m_, objc.Sel("transpose")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/3152564-resultmatrixorigin?language=objc +func (m_ MatrixSum) ResultMatrixOrigin() metal.Origin { + rv := objc.Call[metal.Origin](m_, objc.Sel("resultMatrixOrigin")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935616-neuronparameterb?language=objc -func (m_ MatrixSum) NeuronParameterB() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterB")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/3152564-resultmatrixorigin?language=objc +func (m_ MatrixSum) SetResultMatrixOrigin(value metal.Origin) { + objc.Call[objc.Void](m_, objc.Sel("setResultMatrixOrigin:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935624-neuronparametera?language=objc -func (m_ MatrixSum) NeuronParameterA() float32 { - rv := objc.Call[float32](m_, objc.Sel("neuronParameterA")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935621-transpose?language=objc +func (m_ MatrixSum) Transpose() bool { + rv := objc.Call[bool](m_, objc.Sel("transpose")) return rv } @@ -184,31 +183,32 @@ func (m_ MatrixSum) Columns() uint { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/3152564-resultmatrixorigin?language=objc -func (m_ MatrixSum) ResultMatrixOrigin() metal.Origin { - rv := objc.Call[metal.Origin](m_, objc.Sel("resultMatrixOrigin")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935620-count?language=objc +func (m_ MatrixSum) Count() uint { + rv := objc.Call[uint](m_, objc.Sel("count")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/3152564-resultmatrixorigin?language=objc -func (m_ MatrixSum) SetResultMatrixOrigin(value metal.Origin) { - objc.Call[objc.Void](m_, objc.Sel("setResultMatrixOrigin:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935622-rows?language=objc +func (m_ MatrixSum) Rows() uint { + rv := objc.Call[uint](m_, objc.Sel("rows")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935622-rows?language=objc -func (m_ MatrixSum) Rows() uint { - rv := objc.Call[uint](m_, objc.Sel("rows")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935616-neuronparameterb?language=objc +func (m_ MatrixSum) NeuronParameterB() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterB")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935620-count?language=objc -func (m_ MatrixSum) Count() uint { - rv := objc.Call[uint](m_, objc.Sel("count")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935618-neuronparameterc?language=objc +func (m_ MatrixSum) NeuronParameterC() float32 { + rv := objc.Call[float32](m_, objc.Sel("neuronParameterC")) return rv } diff --git a/macos/mps/matrix_unary_kernel.gen.go b/macos/mps/matrix_unary_kernel.gen.go index aa7c25a8..5b85ea9a 100644 --- a/macos/mps/matrix_unary_kernel.gen.go +++ b/macos/mps/matrix_unary_kernel.gen.go @@ -21,12 +21,12 @@ type IMatrixUnaryKernel interface { IKernel ResultMatrixOrigin() metal.Origin SetResultMatrixOrigin(value metal.Origin) + BatchStart() uint + SetBatchStart(value uint) BatchSize() uint SetBatchSize(value uint) SourceMatrixOrigin() metal.Origin SetSourceMatrixOrigin(value metal.Origin) - BatchStart() uint - SetBatchStart(value uint) } // A kernel that consumes one matrix and produces one matrix. [Full Topic] @@ -62,32 +62,32 @@ func (m_ MatrixUnaryKernel) Init() MatrixUnaryKernel { return rv } -func (m_ MatrixUnaryKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixUnaryKernel { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixUnaryKernel](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixUnaryKernel) InitWithDevice(device metal.PDevice) MatrixUnaryKernel { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixUnaryKernel](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixUnaryKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixUnaryKernel { - instance := MatrixUnaryKernelClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixUnaryKernelWithDevice(device metal.PDevice) MatrixUnaryKernel { + instance := MatrixUnaryKernelClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixUnaryKernel) InitWithDevice(device metal.PDevice) MatrixUnaryKernel { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixUnaryKernel](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixUnaryKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixUnaryKernel { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixUnaryKernel](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixUnaryKernelWithDevice(device metal.PDevice) MatrixUnaryKernel { - instance := MatrixUnaryKernelClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixUnaryKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixUnaryKernel { + instance := MatrixUnaryKernelClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -107,6 +107,21 @@ func (m_ MatrixUnaryKernel) SetResultMatrixOrigin(value metal.Origin) { objc.Call[objc.Void](m_, objc.Sel("setResultMatrixOrigin:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixunarykernel/2866990-batchstart?language=objc +func (m_ MatrixUnaryKernel) BatchStart() uint { + rv := objc.Call[uint](m_, objc.Sel("batchStart")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixunarykernel/2866990-batchstart?language=objc +func (m_ MatrixUnaryKernel) SetBatchStart(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setBatchStart:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixunarykernel/2867118-batchsize?language=objc @@ -136,18 +151,3 @@ func (m_ MatrixUnaryKernel) SourceMatrixOrigin() metal.Origin { func (m_ MatrixUnaryKernel) SetSourceMatrixOrigin(value metal.Origin) { objc.Call[objc.Void](m_, objc.Sel("setSourceMatrixOrigin:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixunarykernel/2866990-batchstart?language=objc -func (m_ MatrixUnaryKernel) BatchStart() uint { - rv := objc.Call[uint](m_, objc.Sel("batchStart")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixunarykernel/2866990-batchstart?language=objc -func (m_ MatrixUnaryKernel) SetBatchStart(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setBatchStart:"), value) -} diff --git a/macos/mps/matrix_vector_multiplication.gen.go b/macos/mps/matrix_vector_multiplication.gen.go index 46dac225..caaf0504 100644 --- a/macos/mps/matrix_vector_multiplication.gen.go +++ b/macos/mps/matrix_vector_multiplication.gen.go @@ -36,21 +36,6 @@ func MatrixVectorMultiplicationFrom(ptr unsafe.Pointer) MatrixVectorMultiplicati } } -func (m_ MatrixVectorMultiplication) InitWithDeviceTransposeRowsColumnsAlphaBeta(device metal.PDevice, transpose bool, rows uint, columns uint, alpha float64, beta float64) MatrixVectorMultiplication { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixVectorMultiplication](m_, objc.Sel("initWithDevice:transpose:rows:columns:alpha:beta:"), po0, transpose, rows, columns, alpha, beta) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixvectormultiplication/2873083-initwithdevice?language=objc -func NewMatrixVectorMultiplicationWithDeviceTransposeRowsColumnsAlphaBeta(device metal.PDevice, transpose bool, rows uint, columns uint, alpha float64, beta float64) MatrixVectorMultiplication { - instance := MatrixVectorMultiplicationClass.Alloc().InitWithDeviceTransposeRowsColumnsAlphaBeta(device, transpose, rows, columns, alpha, beta) - instance.Autorelease() - return instance -} - func (m_ MatrixVectorMultiplication) InitWithDeviceRowsColumns(device metal.PDevice, rows uint, columns uint) MatrixVectorMultiplication { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixVectorMultiplication](m_, objc.Sel("initWithDevice:rows:columns:"), po0, rows, columns) @@ -86,32 +71,32 @@ func (m_ MatrixVectorMultiplication) Init() MatrixVectorMultiplication { return rv } -func (m_ MatrixVectorMultiplication) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixVectorMultiplication { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixVectorMultiplication](m_, objc.Sel("copyWithZone:device:"), zone, po1) +func (m_ MatrixVectorMultiplication) InitWithDevice(device metal.PDevice) MatrixVectorMultiplication { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixVectorMultiplication](m_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func MatrixVectorMultiplication_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixVectorMultiplication { - instance := MatrixVectorMultiplicationClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixVectorMultiplicationWithDevice(device metal.PDevice) MatrixVectorMultiplication { + instance := MatrixVectorMultiplicationClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (m_ MatrixVectorMultiplication) InitWithDevice(device metal.PDevice) MatrixVectorMultiplication { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[MatrixVectorMultiplication](m_, objc.Sel("initWithDevice:"), po0) +func (m_ MatrixVectorMultiplication) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixVectorMultiplication { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixVectorMultiplication](m_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewMatrixVectorMultiplicationWithDevice(device metal.PDevice) MatrixVectorMultiplication { - instance := MatrixVectorMultiplicationClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func MatrixVectorMultiplication_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixVectorMultiplication { + instance := MatrixVectorMultiplicationClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/nd_array.gen.go b/macos/mps/nd_array.gen.go index 56b8e316..540c6174 100644 --- a/macos/mps/nd_array.gen.go +++ b/macos/mps/nd_array.gen.go @@ -20,30 +20,26 @@ type _NDArrayClass struct { // An interface definition for the [NDArray] class. type INDArray interface { objc.IObject - LengthOfDimension(dimensionIndex uint) uint - Descriptor() NDArrayDescriptor + ArrayViewWithCommandBufferDescriptorAliasing(cmdBuf metal.PCommandBuffer, descriptor INDArrayDescriptor, aliasing AliasingStrategy) NDArray + ArrayViewWithCommandBufferObjectDescriptorAliasing(cmdBufObject objc.IObject, descriptor INDArrayDescriptor, aliasing AliasingStrategy) NDArray ResourceSize() uint - ImportDataWithCommandBufferFromImagesOffset(cmdBuf metal.PCommandBuffer, images *foundation.Array, offset ImageCoordinate) - ImportDataWithCommandBufferObjectFromImagesOffset(cmdBufObject objc.IObject, images *foundation.Array, offset ImageCoordinate) - ExportDataWithCommandBufferToBufferDestinationDataTypeOffsetRowStrides(cmdBuf metal.PCommandBuffer, buffer metal.PBuffer, destinationDataType DataType, offset uint, rowStrides *int) - ExportDataWithCommandBufferObjectToBufferObjectDestinationDataTypeOffsetRowStrides(cmdBufObject objc.IObject, bufferObject objc.IObject, destinationDataType DataType, offset uint, rowStrides *int) - SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) - SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) WriteBytesStrideBytes(buffer unsafe.Pointer, strideBytesPerDimension *int) + LengthOfDimension(dimensionIndex uint) uint + ReadBytesStrideBytes(buffer unsafe.Pointer, strideBytesPerDimension *int) ExportDataWithCommandBufferToImagesOffset(cmdBuf metal.PCommandBuffer, images *foundation.Array, offset ImageCoordinate) ExportDataWithCommandBufferObjectToImagesOffset(cmdBufObject objc.IObject, images *foundation.Array, offset ImageCoordinate) - ReadBytesStrideBytes(buffer unsafe.Pointer, strideBytesPerDimension *int) - ArrayViewWithCommandBufferDescriptorAliasing(cmdBuf metal.PCommandBuffer, descriptor INDArrayDescriptor, aliasing AliasingStrategy) NDArray - ArrayViewWithCommandBufferObjectDescriptorAliasing(cmdBufObject objc.IObject, descriptor INDArrayDescriptor, aliasing AliasingStrategy) NDArray - ImportDataWithCommandBufferFromBufferSourceDataTypeOffsetRowStrides(cmdBuf metal.PCommandBuffer, buffer metal.PBuffer, sourceDataType DataType, offset uint, rowStrides *int) - ImportDataWithCommandBufferObjectFromBufferObjectSourceDataTypeOffsetRowStrides(cmdBufObject objc.IObject, bufferObject objc.IObject, sourceDataType DataType, offset uint, rowStrides *int) - DataTypeSize() uint - NumberOfDimensions() uint + SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) + SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) + Descriptor() NDArrayDescriptor + ImportDataWithCommandBufferFromImagesOffset(cmdBuf metal.PCommandBuffer, images *foundation.Array, offset ImageCoordinate) + ImportDataWithCommandBufferObjectFromImagesOffset(cmdBufObject objc.IObject, images *foundation.Array, offset ImageCoordinate) Parent() NDArray - DataType() DataType Device() metal.DeviceObject + DataTypeSize() uint + DataType() DataType Label() string SetLabel(value string) + NumberOfDimensions() uint } // [Full Topic] @@ -74,21 +70,6 @@ func NewNDArrayWithDeviceScalar(device metal.PDevice, value float64) NDArray { return instance } -func (n_ NDArray) InitWithDeviceDescriptor(device metal.PDevice, descriptor INDArrayDescriptor) NDArray { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NDArray](n_, objc.Sel("initWithDevice:descriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114049-initwithdevice?language=objc -func NewNDArrayWithDeviceDescriptor(device metal.PDevice, descriptor INDArrayDescriptor) NDArray { - instance := NDArrayClass.Alloc().InitWithDeviceDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - func (nc _NDArrayClass) Alloc() NDArray { rv := objc.Call[NDArray](nc, objc.Sel("alloc")) return rv @@ -111,72 +92,64 @@ func (n_ NDArray) Init() NDArray { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114053-lengthofdimension?language=objc -func (n_ NDArray) LengthOfDimension(dimensionIndex uint) uint { - rv := objc.Call[uint](n_, objc.Sel("lengthOfDimension:"), dimensionIndex) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114040-arrayviewwithcommandbuffer?language=objc +func (n_ NDArray) ArrayViewWithCommandBufferDescriptorAliasing(cmdBuf metal.PCommandBuffer, descriptor INDArrayDescriptor, aliasing AliasingStrategy) NDArray { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) + rv := objc.Call[NDArray](n_, objc.Sel("arrayViewWithCommandBuffer:descriptor:aliasing:"), po0, descriptor, aliasing) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114044-descriptor?language=objc -func (n_ NDArray) Descriptor() NDArrayDescriptor { - rv := objc.Call[NDArrayDescriptor](n_, objc.Sel("descriptor")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114040-arrayviewwithcommandbuffer?language=objc +func (n_ NDArray) ArrayViewWithCommandBufferObjectDescriptorAliasing(cmdBufObject objc.IObject, descriptor INDArrayDescriptor, aliasing AliasingStrategy) NDArray { + rv := objc.Call[NDArray](n_, objc.Sel("arrayViewWithCommandBuffer:descriptor:aliasing:"), cmdBufObject, descriptor, aliasing) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3131728-defaultallocator?language=objc -func (nc _NDArrayClass) DefaultAllocator() NDArrayAllocatorObject { - rv := objc.Call[NDArrayAllocatorObject](nc, objc.Sel("defaultAllocator")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114058-resourcesize?language=objc +func (n_ NDArray) ResourceSize() uint { + rv := objc.Call[uint](n_, objc.Sel("resourceSize")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3131728-defaultallocator?language=objc -func NDArray_DefaultAllocator() NDArrayAllocatorObject { - return NDArrayClass.DefaultAllocator() +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114060-writebytes?language=objc +func (n_ NDArray) WriteBytesStrideBytes(buffer unsafe.Pointer, strideBytesPerDimension *int) { + objc.Call[objc.Void](n_, objc.Sel("writeBytes:strideBytes:"), buffer, strideBytesPerDimension) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114058-resourcesize?language=objc -func (n_ NDArray) ResourceSize() uint { - rv := objc.Call[uint](n_, objc.Sel("resourceSize")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114053-lengthofdimension?language=objc +func (n_ NDArray) LengthOfDimension(dimensionIndex uint) uint { + rv := objc.Call[uint](n_, objc.Sel("lengthOfDimension:"), dimensionIndex) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3152527-importdatawithcommandbuffer?language=objc -func (n_ NDArray) ImportDataWithCommandBufferFromImagesOffset(cmdBuf metal.PCommandBuffer, images *foundation.Array, offset ImageCoordinate) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("importDataWithCommandBuffer:fromImages:offset:"), po0, images, offset) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3152527-importdatawithcommandbuffer?language=objc -func (n_ NDArray) ImportDataWithCommandBufferObjectFromImagesOffset(cmdBufObject objc.IObject, images *foundation.Array, offset ImageCoordinate) { - objc.Call[objc.Void](n_, objc.Sel("importDataWithCommandBuffer:fromImages:offset:"), cmdBufObject, images, offset) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114057-readbytes?language=objc +func (n_ NDArray) ReadBytesStrideBytes(buffer unsafe.Pointer, strideBytesPerDimension *int) { + objc.Call[objc.Void](n_, objc.Sel("readBytes:strideBytes:"), buffer, strideBytesPerDimension) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3131729-exportdatawithcommandbuffer?language=objc -func (n_ NDArray) ExportDataWithCommandBufferToBufferDestinationDataTypeOffsetRowStrides(cmdBuf metal.PCommandBuffer, buffer metal.PBuffer, destinationDataType DataType, offset uint, rowStrides *int) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3152526-exportdatawithcommandbuffer?language=objc +func (n_ NDArray) ExportDataWithCommandBufferToImagesOffset(cmdBuf metal.PCommandBuffer, images *foundation.Array, offset ImageCoordinate) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - po1 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](n_, objc.Sel("exportDataWithCommandBuffer:toBuffer:destinationDataType:offset:rowStrides:"), po0, po1, destinationDataType, offset, rowStrides) + objc.Call[objc.Void](n_, objc.Sel("exportDataWithCommandBuffer:toImages:offset:"), po0, images, offset) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3131729-exportdatawithcommandbuffer?language=objc -func (n_ NDArray) ExportDataWithCommandBufferObjectToBufferObjectDestinationDataTypeOffsetRowStrides(cmdBufObject objc.IObject, bufferObject objc.IObject, destinationDataType DataType, offset uint, rowStrides *int) { - objc.Call[objc.Void](n_, objc.Sel("exportDataWithCommandBuffer:toBuffer:destinationDataType:offset:rowStrides:"), cmdBufObject, bufferObject, destinationDataType, offset, rowStrides) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3152526-exportdatawithcommandbuffer?language=objc +func (n_ NDArray) ExportDataWithCommandBufferObjectToImagesOffset(cmdBufObject objc.IObject, images *foundation.Array, offset ImageCoordinate) { + objc.Call[objc.Void](n_, objc.Sel("exportDataWithCommandBuffer:toImages:offset:"), cmdBufObject, images, offset) } // [Full Topic] @@ -196,64 +169,56 @@ func (n_ NDArray) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObj // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114060-writebytes?language=objc -func (n_ NDArray) WriteBytesStrideBytes(buffer unsafe.Pointer, strideBytesPerDimension *int) { - objc.Call[objc.Void](n_, objc.Sel("writeBytes:strideBytes:"), buffer, strideBytesPerDimension) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114044-descriptor?language=objc +func (n_ NDArray) Descriptor() NDArrayDescriptor { + rv := objc.Call[NDArrayDescriptor](n_, objc.Sel("descriptor")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3152526-exportdatawithcommandbuffer?language=objc -func (n_ NDArray) ExportDataWithCommandBufferToImagesOffset(cmdBuf metal.PCommandBuffer, images *foundation.Array, offset ImageCoordinate) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3152527-importdatawithcommandbuffer?language=objc +func (n_ NDArray) ImportDataWithCommandBufferFromImagesOffset(cmdBuf metal.PCommandBuffer, images *foundation.Array, offset ImageCoordinate) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("exportDataWithCommandBuffer:toImages:offset:"), po0, images, offset) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3152526-exportdatawithcommandbuffer?language=objc -func (n_ NDArray) ExportDataWithCommandBufferObjectToImagesOffset(cmdBufObject objc.IObject, images *foundation.Array, offset ImageCoordinate) { - objc.Call[objc.Void](n_, objc.Sel("exportDataWithCommandBuffer:toImages:offset:"), cmdBufObject, images, offset) + objc.Call[objc.Void](n_, objc.Sel("importDataWithCommandBuffer:fromImages:offset:"), po0, images, offset) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114057-readbytes?language=objc -func (n_ NDArray) ReadBytesStrideBytes(buffer unsafe.Pointer, strideBytesPerDimension *int) { - objc.Call[objc.Void](n_, objc.Sel("readBytes:strideBytes:"), buffer, strideBytesPerDimension) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3152527-importdatawithcommandbuffer?language=objc +func (n_ NDArray) ImportDataWithCommandBufferObjectFromImagesOffset(cmdBufObject objc.IObject, images *foundation.Array, offset ImageCoordinate) { + objc.Call[objc.Void](n_, objc.Sel("importDataWithCommandBuffer:fromImages:offset:"), cmdBufObject, images, offset) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114040-arrayviewwithcommandbuffer?language=objc -func (n_ NDArray) ArrayViewWithCommandBufferDescriptorAliasing(cmdBuf metal.PCommandBuffer, descriptor INDArrayDescriptor, aliasing AliasingStrategy) NDArray { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArray](n_, objc.Sel("arrayViewWithCommandBuffer:descriptor:aliasing:"), po0, descriptor, aliasing) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3131728-defaultallocator?language=objc +func (nc _NDArrayClass) DefaultAllocator() NDArrayAllocatorObject { + rv := objc.Call[NDArrayAllocatorObject](nc, objc.Sel("defaultAllocator")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114040-arrayviewwithcommandbuffer?language=objc -func (n_ NDArray) ArrayViewWithCommandBufferObjectDescriptorAliasing(cmdBufObject objc.IObject, descriptor INDArrayDescriptor, aliasing AliasingStrategy) NDArray { - rv := objc.Call[NDArray](n_, objc.Sel("arrayViewWithCommandBuffer:descriptor:aliasing:"), cmdBufObject, descriptor, aliasing) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3131728-defaultallocator?language=objc +func NDArray_DefaultAllocator() NDArrayAllocatorObject { + return NDArrayClass.DefaultAllocator() } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3131730-importdatawithcommandbuffer?language=objc -func (n_ NDArray) ImportDataWithCommandBufferFromBufferSourceDataTypeOffsetRowStrides(cmdBuf metal.PCommandBuffer, buffer metal.PBuffer, sourceDataType DataType, offset uint, rowStrides *int) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - po1 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](n_, objc.Sel("importDataWithCommandBuffer:fromBuffer:sourceDataType:offset:rowStrides:"), po0, po1, sourceDataType, offset, rowStrides) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114056-parent?language=objc +func (n_ NDArray) Parent() NDArray { + rv := objc.Call[NDArray](n_, objc.Sel("parent")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3131730-importdatawithcommandbuffer?language=objc -func (n_ NDArray) ImportDataWithCommandBufferObjectFromBufferObjectSourceDataTypeOffsetRowStrides(cmdBufObject objc.IObject, bufferObject objc.IObject, sourceDataType DataType, offset uint, rowStrides *int) { - objc.Call[objc.Void](n_, objc.Sel("importDataWithCommandBuffer:fromBuffer:sourceDataType:offset:rowStrides:"), cmdBufObject, bufferObject, sourceDataType, offset, rowStrides) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114045-device?language=objc +func (n_ NDArray) Device() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](n_, objc.Sel("device")) + return rv } // [Full Topic] @@ -264,22 +229,6 @@ func (n_ NDArray) DataTypeSize() uint { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114055-numberofdimensions?language=objc -func (n_ NDArray) NumberOfDimensions() uint { - rv := objc.Call[uint](n_, objc.Sel("numberOfDimensions")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114056-parent?language=objc -func (n_ NDArray) Parent() NDArray { - rv := objc.Call[NDArray](n_, objc.Sel("parent")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114041-datatype?language=objc @@ -288,14 +237,6 @@ func (n_ NDArray) DataType() DataType { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114045-device?language=objc -func (n_ NDArray) Device() metal.DeviceObject { - rv := objc.Call[metal.DeviceObject](n_, objc.Sel("device")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114052-label?language=objc @@ -310,3 +251,11 @@ func (n_ NDArray) Label() string { func (n_ NDArray) SetLabel(value string) { objc.Call[objc.Void](n_, objc.Sel("setLabel:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114055-numberofdimensions?language=objc +func (n_ NDArray) NumberOfDimensions() uint { + rv := objc.Call[uint](n_, objc.Sel("numberOfDimensions")) + return rv +} diff --git a/macos/mps/nd_array_binary_kernel.gen.go b/macos/mps/nd_array_binary_kernel.gen.go index abf27a80..84ab7b53 100644 --- a/macos/mps/nd_array_binary_kernel.gen.go +++ b/macos/mps/nd_array_binary_kernel.gen.go @@ -21,12 +21,6 @@ type INDArrayBinaryKernel interface { INDArrayMultiaryKernel EncodeToCommandBufferPrimarySourceArraySecondarySourceArrayResultStateDestinationArray(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, outGradientState IState, destination INDArray) EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArrayResultStateDestinationArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, outGradientState IState, destination INDArray) - EncodeToCommandBufferPrimarySourceArraySecondarySourceArrayDestinationArray(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, destination INDArray) - EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArrayDestinationArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, destination INDArray) - EncodeToCommandBufferPrimarySourceArraySecondarySourceArrayResultStateOutputStateIsTemporary(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray - EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArrayResultStateOutputStateIsTemporary(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray - EncodeToCommandBufferPrimarySourceArraySecondarySourceArray(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray) NDArray - EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray) NDArray } // [Full Topic] @@ -121,52 +115,3 @@ func (n_ NDArrayBinaryKernel) EncodeToCommandBufferPrimarySourceArraySecondarySo func (n_ NDArrayBinaryKernel) EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArrayResultStateDestinationArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, outGradientState IState, destination INDArray) { objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:resultState:destinationArray:"), cmdBufObject, primarySourceArray, secondarySourceArray, outGradientState, destination) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinarykernel/3143498-encodetocommandbuffer?language=objc -func (n_ NDArrayBinaryKernel) EncodeToCommandBufferPrimarySourceArraySecondarySourceArrayDestinationArray(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, destination INDArray) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:destinationArray:"), po0, primarySourceArray, secondarySourceArray, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinarykernel/3143498-encodetocommandbuffer?language=objc -func (n_ NDArrayBinaryKernel) EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArrayDestinationArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, destination INDArray) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:destinationArray:"), cmdBufObject, primarySourceArray, secondarySourceArray, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinarykernel/3143500-encodetocommandbuffer?language=objc -func (n_ NDArrayBinaryKernel) EncodeToCommandBufferPrimarySourceArraySecondarySourceArrayResultStateOutputStateIsTemporary(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:resultState:outputStateIsTemporary:"), po0, primarySourceArray, secondarySourceArray, outGradientState, outputStateIsTemporary) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinarykernel/3143500-encodetocommandbuffer?language=objc -func (n_ NDArrayBinaryKernel) EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArrayResultStateOutputStateIsTemporary(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray { - rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:resultState:outputStateIsTemporary:"), cmdBufObject, primarySourceArray, secondarySourceArray, outGradientState, outputStateIsTemporary) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinarykernel/3143497-encodetocommandbuffer?language=objc -func (n_ NDArrayBinaryKernel) EncodeToCommandBufferPrimarySourceArraySecondarySourceArray(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray) NDArray { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:"), po0, primarySourceArray, secondarySourceArray) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinarykernel/3143497-encodetocommandbuffer?language=objc -func (n_ NDArrayBinaryKernel) EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray) NDArray { - rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:"), cmdBufObject, primarySourceArray, secondarySourceArray) - return rv -} diff --git a/macos/mps/nd_array_binary_primary_gradient_kernel.gen.go b/macos/mps/nd_array_binary_primary_gradient_kernel.gen.go index 69c201ac..113dae6c 100644 --- a/macos/mps/nd_array_binary_primary_gradient_kernel.gen.go +++ b/macos/mps/nd_array_binary_primary_gradient_kernel.gen.go @@ -21,8 +21,6 @@ type INDArrayBinaryPrimaryGradientKernel interface { INDArrayMultiaryGradientKernel EncodeToCommandBufferPrimarySourceArraySecondarySourceArraySourceGradientGradientState(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState) NDArray EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArraySourceGradientGradientState(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState) NDArray - EncodeToCommandBufferPrimarySourceArraySecondarySourceArraySourceGradientGradientStateDestinationArray(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState, destination INDArray) - EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArraySourceGradientGradientStateDestinationArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState, destination INDArray) } // [Full Topic] @@ -134,18 +132,3 @@ func (n_ NDArrayBinaryPrimaryGradientKernel) EncodeToCommandBufferObjectPrimaryS rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:sourceGradient:gradientState:"), cmdBufObject, primarySourceArray, secondarySourceArray, gradient, state) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinaryprimarygradientkernel/3143514-encodetocommandbuffer?language=objc -func (n_ NDArrayBinaryPrimaryGradientKernel) EncodeToCommandBufferPrimarySourceArraySecondarySourceArraySourceGradientGradientStateDestinationArray(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState, destination INDArray) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:sourceGradient:gradientState:destinationArray:"), po0, primarySourceArray, secondarySourceArray, gradient, state, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinaryprimarygradientkernel/3143514-encodetocommandbuffer?language=objc -func (n_ NDArrayBinaryPrimaryGradientKernel) EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArraySourceGradientGradientStateDestinationArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState, destination INDArray) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:sourceGradient:gradientState:destinationArray:"), cmdBufObject, primarySourceArray, secondarySourceArray, gradient, state, destination) -} diff --git a/macos/mps/nd_array_binary_secondary_gradient_kernel.gen.go b/macos/mps/nd_array_binary_secondary_gradient_kernel.gen.go index 7782dfa6..dacbf0c4 100644 --- a/macos/mps/nd_array_binary_secondary_gradient_kernel.gen.go +++ b/macos/mps/nd_array_binary_secondary_gradient_kernel.gen.go @@ -19,8 +19,6 @@ type _NDArrayBinarySecondaryGradientKernelClass struct { // An interface definition for the [NDArrayBinarySecondaryGradientKernel] class. type INDArrayBinarySecondaryGradientKernel interface { INDArrayMultiaryGradientKernel - EncodeToCommandBufferPrimarySourceArraySecondarySourceArraySourceGradientGradientStateDestinationArray(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState, destination INDArray) - EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArraySourceGradientGradientStateDestinationArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState, destination INDArray) EncodeToCommandBufferPrimarySourceArraySecondarySourceArraySourceGradientGradientState(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState) NDArray EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArraySourceGradientGradientState(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState) NDArray } @@ -118,21 +116,6 @@ func NDArrayBinarySecondaryGradientKernel_CopyWithZoneDevice(zone unsafe.Pointer return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinarysecondarygradientkernel/3143518-encodetocommandbuffer?language=objc -func (n_ NDArrayBinarySecondaryGradientKernel) EncodeToCommandBufferPrimarySourceArraySecondarySourceArraySourceGradientGradientStateDestinationArray(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState, destination INDArray) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:sourceGradient:gradientState:destinationArray:"), po0, primarySourceArray, secondarySourceArray, gradient, state, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinarysecondarygradientkernel/3143518-encodetocommandbuffer?language=objc -func (n_ NDArrayBinarySecondaryGradientKernel) EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArraySourceGradientGradientStateDestinationArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, gradient INDArray, state IState, destination INDArray) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:sourceGradient:gradientState:destinationArray:"), cmdBufObject, primarySourceArray, secondarySourceArray, gradient, state, destination) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraybinarysecondarygradientkernel/3143517-encodetocommandbuffer?language=objc diff --git a/macos/mps/nd_array_descriptor.gen.go b/macos/mps/nd_array_descriptor.gen.go index a62e3389..2c29976b 100644 --- a/macos/mps/nd_array_descriptor.gen.go +++ b/macos/mps/nd_array_descriptor.gen.go @@ -20,17 +20,17 @@ type _NDArrayDescriptorClass struct { // An interface definition for the [NDArrayDescriptor] class. type INDArrayDescriptor interface { objc.IObject - SliceRangeForDimension(dimensionIndex uint) DimensionSlice - LengthOfDimension(dimensionIndex uint) uint - ReshapeWithShape(shape []foundation.INumber) - TransposeDimensionWithDimension(dimensionIndex uint, dimensionIndex2 uint) SliceDimensionWithSubrange(dimensionIndex uint, subRange DimensionSlice) + TransposeDimensionWithDimension(dimensionIndex uint, dimensionIndex2 uint) + SliceRangeForDimension(dimensionIndex uint) DimensionSlice DimensionOrder() kernel.Vector_uchar16 + LengthOfDimension(dimensionIndex uint) uint ReshapeWithDimensionCountDimensionSizes(numberOfDimensions uint, dimensionSizes *uint) - NumberOfDimensions() uint - SetNumberOfDimensions(value uint) + ReshapeWithShape(shape []foundation.INumber) DataType() DataType SetDataType(value DataType) + NumberOfDimensions() uint + SetNumberOfDimensions(value uint) } // [Full Topic] @@ -46,30 +46,6 @@ func NDArrayDescriptorFrom(ptr unsafe.Pointer) NDArrayDescriptor { } } -func (nc _NDArrayDescriptorClass) DescriptorWithDataTypeDimensionCountDimensionSizes(dataType DataType, numberOfDimensions uint, dimensionSizes *uint) NDArrayDescriptor { - rv := objc.Call[NDArrayDescriptor](nc, objc.Sel("descriptorWithDataType:dimensionCount:dimensionSizes:"), dataType, numberOfDimensions, dimensionSizes) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114063-descriptorwithdatatype?language=objc -func NDArrayDescriptor_DescriptorWithDataTypeDimensionCountDimensionSizes(dataType DataType, numberOfDimensions uint, dimensionSizes *uint) NDArrayDescriptor { - return NDArrayDescriptorClass.DescriptorWithDataTypeDimensionCountDimensionSizes(dataType, numberOfDimensions, dimensionSizes) -} - -func (nc _NDArrayDescriptorClass) DescriptorWithDataTypeShape(dataType DataType, shape []foundation.INumber) NDArrayDescriptor { - rv := objc.Call[NDArrayDescriptor](nc, objc.Sel("descriptorWithDataType:shape:"), dataType, shape) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3143491-descriptorwithdatatype?language=objc -func NDArrayDescriptor_DescriptorWithDataTypeShape(dataType DataType, shape []foundation.INumber) NDArrayDescriptor { - return NDArrayDescriptorClass.DescriptorWithDataTypeShape(dataType, shape) -} - func (nc _NDArrayDescriptorClass) DescriptorWithDataTypeDimensionSizes(dataType DataType, dimension0 uint, args ...any) NDArrayDescriptor { rv := objc.Call[NDArrayDescriptor](nc, objc.Sel("descriptorWithDataType:dimensionSizes:"), append([]any{dataType, dimension0}, args...)...) return rv @@ -104,25 +80,9 @@ func (n_ NDArrayDescriptor) Init() NDArrayDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114070-slicerangefordimension?language=objc -func (n_ NDArrayDescriptor) SliceRangeForDimension(dimensionIndex uint) DimensionSlice { - rv := objc.Call[DimensionSlice](n_, objc.Sel("sliceRangeForDimension:"), dimensionIndex) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114066-lengthofdimension?language=objc -func (n_ NDArrayDescriptor) LengthOfDimension(dimensionIndex uint) uint { - rv := objc.Call[uint](n_, objc.Sel("lengthOfDimension:"), dimensionIndex) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3143493-reshapewithshape?language=objc -func (n_ NDArrayDescriptor) ReshapeWithShape(shape []foundation.INumber) { - objc.Call[objc.Void](n_, objc.Sel("reshapeWithShape:"), shape) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114069-slicedimension?language=objc +func (n_ NDArrayDescriptor) SliceDimensionWithSubrange(dimensionIndex uint, subRange DimensionSlice) { + objc.Call[objc.Void](n_, objc.Sel("sliceDimension:withSubrange:"), dimensionIndex, subRange) } // [Full Topic] @@ -134,9 +94,10 @@ func (n_ NDArrayDescriptor) TransposeDimensionWithDimension(dimensionIndex uint, // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114069-slicedimension?language=objc -func (n_ NDArrayDescriptor) SliceDimensionWithSubrange(dimensionIndex uint, subRange DimensionSlice) { - objc.Call[objc.Void](n_, objc.Sel("sliceDimension:withSubrange:"), dimensionIndex, subRange) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114070-slicerangefordimension?language=objc +func (n_ NDArrayDescriptor) SliceRangeForDimension(dimensionIndex uint) DimensionSlice { + rv := objc.Call[DimensionSlice](n_, objc.Sel("sliceRangeForDimension:"), dimensionIndex) + return rv } // [Full Topic] @@ -149,24 +110,24 @@ func (n_ NDArrayDescriptor) DimensionOrder() kernel.Vector_uchar16 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3143492-reshapewithdimensioncount?language=objc -func (n_ NDArrayDescriptor) ReshapeWithDimensionCountDimensionSizes(numberOfDimensions uint, dimensionSizes *uint) { - objc.Call[objc.Void](n_, objc.Sel("reshapeWithDimensionCount:dimensionSizes:"), numberOfDimensions, dimensionSizes) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114066-lengthofdimension?language=objc +func (n_ NDArrayDescriptor) LengthOfDimension(dimensionIndex uint) uint { + rv := objc.Call[uint](n_, objc.Sel("lengthOfDimension:"), dimensionIndex) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114067-numberofdimensions?language=objc -func (n_ NDArrayDescriptor) NumberOfDimensions() uint { - rv := objc.Call[uint](n_, objc.Sel("numberOfDimensions")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3143492-reshapewithdimensioncount?language=objc +func (n_ NDArrayDescriptor) ReshapeWithDimensionCountDimensionSizes(numberOfDimensions uint, dimensionSizes *uint) { + objc.Call[objc.Void](n_, objc.Sel("reshapeWithDimensionCount:dimensionSizes:"), numberOfDimensions, dimensionSizes) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114067-numberofdimensions?language=objc -func (n_ NDArrayDescriptor) SetNumberOfDimensions(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setNumberOfDimensions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3143493-reshapewithshape?language=objc +func (n_ NDArrayDescriptor) ReshapeWithShape(shape []foundation.INumber) { + objc.Call[objc.Void](n_, objc.Sel("reshapeWithShape:"), shape) } // [Full Topic] @@ -183,3 +144,18 @@ func (n_ NDArrayDescriptor) DataType() DataType { func (n_ NDArrayDescriptor) SetDataType(value DataType) { objc.Call[objc.Void](n_, objc.Sel("setDataType:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114067-numberofdimensions?language=objc +func (n_ NDArrayDescriptor) NumberOfDimensions() uint { + rv := objc.Call[uint](n_, objc.Sel("numberOfDimensions")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraydescriptor/3114067-numberofdimensions?language=objc +func (n_ NDArrayDescriptor) SetNumberOfDimensions(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setNumberOfDimensions:"), value) +} diff --git a/macos/mps/nd_array_gather_gradient_state.gen.go b/macos/mps/nd_array_gather_gradient_state.gen.go index afb6339b..a22cb164 100644 --- a/macos/mps/nd_array_gather_gradient_state.gen.go +++ b/macos/mps/nd_array_gather_gradient_state.gen.go @@ -54,45 +54,16 @@ func (n_ NDArrayGatherGradientState) Init() NDArrayGatherGradientState { return rv } -func (nc _NDArrayGatherGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NDArrayGatherGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[NDArrayGatherGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func NDArrayGatherGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NDArrayGatherGradientState { - return NDArrayGatherGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (n_ NDArrayGatherGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) NDArrayGatherGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NDArrayGatherGradientState](n_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewNDArrayGatherGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) NDArrayGatherGradientState { - instance := NDArrayGatherGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (n_ NDArrayGatherGradientState) InitWithResource(resource metal.PResource) NDArrayGatherGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[NDArrayGatherGradientState](n_, objc.Sel("initWithResource:"), po0) +func (n_ NDArrayGatherGradientState) InitWithResources(resources []metal.PResource) NDArrayGatherGradientState { + rv := objc.Call[NDArrayGatherGradientState](n_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewNDArrayGatherGradientStateWithResource(resource metal.PResource) NDArrayGatherGradientState { - instance := NDArrayGatherGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewNDArrayGatherGradientStateWithResources(resources []metal.PResource) NDArrayGatherGradientState { + instance := NDArrayGatherGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -112,70 +83,30 @@ func NewNDArrayGatherGradientStateWithDeviceBufferSize(device metal.PDevice, buf return instance } -func (n_ NDArrayGatherGradientState) InitWithResources(resources []metal.PResource) NDArrayGatherGradientState { - rv := objc.Call[NDArrayGatherGradientState](n_, objc.Sel("initWithResources:"), resources) +func (n_ NDArrayGatherGradientState) InitWithResource(resource metal.PResource) NDArrayGatherGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[NDArrayGatherGradientState](n_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewNDArrayGatherGradientStateWithResources(resources []metal.PResource) NDArrayGatherGradientState { - instance := NDArrayGatherGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewNDArrayGatherGradientStateWithResource(resource metal.PResource) NDArrayGatherGradientState { + instance := NDArrayGatherGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (nc _NDArrayGatherGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) NDArrayGatherGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArrayGatherGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func NDArrayGatherGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) NDArrayGatherGradientState { - return NDArrayGatherGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (nc _NDArrayGatherGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) NDArrayGatherGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArrayGatherGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func NDArrayGatherGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) NDArrayGatherGradientState { - return NDArrayGatherGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (nc _NDArrayGatherGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) NDArrayGatherGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArrayGatherGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func NDArrayGatherGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) NDArrayGatherGradientState { - return NDArrayGatherGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (n_ NDArrayGatherGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) NDArrayGatherGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NDArrayGatherGradientState](n_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (nc _NDArrayGatherGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NDArrayGatherGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[NDArrayGatherGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewNDArrayGatherGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) NDArrayGatherGradientState { - instance := NDArrayGatherGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func NDArrayGatherGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NDArrayGatherGradientState { + return NDArrayGatherGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } diff --git a/macos/mps/nd_array_gradient_state.gen.go b/macos/mps/nd_array_gradient_state.gen.go index 5b7b2bf9..3d9bc521 100644 --- a/macos/mps/nd_array_gradient_state.gen.go +++ b/macos/mps/nd_array_gradient_state.gen.go @@ -54,45 +54,16 @@ func (n_ NDArrayGradientState) Init() NDArrayGradientState { return rv } -func (nc _NDArrayGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NDArrayGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[NDArrayGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func NDArrayGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NDArrayGradientState { - return NDArrayGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (n_ NDArrayGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) NDArrayGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NDArrayGradientState](n_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewNDArrayGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) NDArrayGradientState { - instance := NDArrayGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (n_ NDArrayGradientState) InitWithResource(resource metal.PResource) NDArrayGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[NDArrayGradientState](n_, objc.Sel("initWithResource:"), po0) +func (n_ NDArrayGradientState) InitWithResources(resources []metal.PResource) NDArrayGradientState { + rv := objc.Call[NDArrayGradientState](n_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewNDArrayGradientStateWithResource(resource metal.PResource) NDArrayGradientState { - instance := NDArrayGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewNDArrayGradientStateWithResources(resources []metal.PResource) NDArrayGradientState { + instance := NDArrayGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -112,70 +83,30 @@ func NewNDArrayGradientStateWithDeviceBufferSize(device metal.PDevice, bufferSiz return instance } -func (n_ NDArrayGradientState) InitWithResources(resources []metal.PResource) NDArrayGradientState { - rv := objc.Call[NDArrayGradientState](n_, objc.Sel("initWithResources:"), resources) +func (n_ NDArrayGradientState) InitWithResource(resource metal.PResource) NDArrayGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[NDArrayGradientState](n_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewNDArrayGradientStateWithResources(resources []metal.PResource) NDArrayGradientState { - instance := NDArrayGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewNDArrayGradientStateWithResource(resource metal.PResource) NDArrayGradientState { + instance := NDArrayGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (nc _NDArrayGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) NDArrayGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArrayGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func NDArrayGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) NDArrayGradientState { - return NDArrayGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (nc _NDArrayGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) NDArrayGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArrayGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func NDArrayGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) NDArrayGradientState { - return NDArrayGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (nc _NDArrayGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) NDArrayGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArrayGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func NDArrayGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) NDArrayGradientState { - return NDArrayGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (n_ NDArrayGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) NDArrayGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NDArrayGradientState](n_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (nc _NDArrayGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NDArrayGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[NDArrayGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewNDArrayGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) NDArrayGradientState { - instance := NDArrayGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func NDArrayGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NDArrayGradientState { + return NDArrayGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } diff --git a/macos/mps/nd_array_matrix_multiplication.gen.go b/macos/mps/nd_array_matrix_multiplication.gen.go index a3e5b1d9..a69f6732 100644 --- a/macos/mps/nd_array_matrix_multiplication.gen.go +++ b/macos/mps/nd_array_matrix_multiplication.gen.go @@ -19,10 +19,10 @@ type _NDArrayMatrixMultiplicationClass struct { // An interface definition for the [NDArrayMatrixMultiplication] class. type INDArrayMatrixMultiplication interface { INDArrayMultiaryKernel - Alpha() float64 - SetAlpha(value float64) Beta() float64 SetBeta(value float64) + Alpha() float64 + SetAlpha(value float64) } // [Full Topic] @@ -105,30 +105,30 @@ func NewNDArrayMatrixMultiplicationWithDevice(device metal.PDevice) NDArrayMatri // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymatrixmultiplication/3131760-alpha?language=objc -func (n_ NDArrayMatrixMultiplication) Alpha() float64 { - rv := objc.Call[float64](n_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymatrixmultiplication/3131761-beta?language=objc +func (n_ NDArrayMatrixMultiplication) Beta() float64 { + rv := objc.Call[float64](n_, objc.Sel("beta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymatrixmultiplication/3131760-alpha?language=objc -func (n_ NDArrayMatrixMultiplication) SetAlpha(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymatrixmultiplication/3131761-beta?language=objc +func (n_ NDArrayMatrixMultiplication) SetBeta(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setBeta:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymatrixmultiplication/3131761-beta?language=objc -func (n_ NDArrayMatrixMultiplication) Beta() float64 { - rv := objc.Call[float64](n_, objc.Sel("beta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymatrixmultiplication/3131760-alpha?language=objc +func (n_ NDArrayMatrixMultiplication) Alpha() float64 { + rv := objc.Call[float64](n_, objc.Sel("alpha")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymatrixmultiplication/3131761-beta?language=objc -func (n_ NDArrayMatrixMultiplication) SetBeta(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setBeta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymatrixmultiplication/3131760-alpha?language=objc +func (n_ NDArrayMatrixMultiplication) SetAlpha(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setAlpha:"), value) } diff --git a/macos/mps/nd_array_multiary_gradient_kernel.gen.go b/macos/mps/nd_array_multiary_gradient_kernel.gen.go index 950ea42b..d1ac3971 100644 --- a/macos/mps/nd_array_multiary_gradient_kernel.gen.go +++ b/macos/mps/nd_array_multiary_gradient_kernel.gen.go @@ -21,8 +21,6 @@ type INDArrayMultiaryGradientKernel interface { INDArrayMultiaryBase EncodeToCommandBufferSourceArraysSourceGradientGradientState(cmdBuf metal.PCommandBuffer, sources []INDArray, gradient INDArray, state IState) NDArray EncodeToCommandBufferObjectSourceArraysSourceGradientGradientState(cmdBufObject objc.IObject, sources []INDArray, gradient INDArray, state IState) NDArray - EncodeToCommandBufferSourceArraysSourceGradientGradientStateDestinationArray(cmdBuf metal.PCommandBuffer, sources []INDArray, gradient INDArray, state IState, destination INDArray) - EncodeToCommandBufferObjectSourceArraysSourceGradientGradientStateDestinationArray(cmdBufObject objc.IObject, sources []INDArray, gradient INDArray, state IState, destination INDArray) } // [Full Topic] @@ -134,18 +132,3 @@ func (n_ NDArrayMultiaryGradientKernel) EncodeToCommandBufferObjectSourceArraysS rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:sourceGradient:gradientState:"), cmdBufObject, sources, gradient, state) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarygradientkernel/3143523-encodetocommandbuffer?language=objc -func (n_ NDArrayMultiaryGradientKernel) EncodeToCommandBufferSourceArraysSourceGradientGradientStateDestinationArray(cmdBuf metal.PCommandBuffer, sources []INDArray, gradient INDArray, state IState, destination INDArray) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:sourceGradient:gradientState:destinationArray:"), po0, sources, gradient, state, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarygradientkernel/3143523-encodetocommandbuffer?language=objc -func (n_ NDArrayMultiaryGradientKernel) EncodeToCommandBufferObjectSourceArraysSourceGradientGradientStateDestinationArray(cmdBufObject objc.IObject, sources []INDArray, gradient INDArray, state IState, destination INDArray) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:sourceGradient:gradientState:destinationArray:"), cmdBufObject, sources, gradient, state, destination) -} diff --git a/macos/mps/nd_array_multiary_kernel.gen.go b/macos/mps/nd_array_multiary_kernel.gen.go index 3e70376a..d123e1fb 100644 --- a/macos/mps/nd_array_multiary_kernel.gen.go +++ b/macos/mps/nd_array_multiary_kernel.gen.go @@ -19,14 +19,8 @@ type _NDArrayMultiaryKernelClass struct { // An interface definition for the [NDArrayMultiaryKernel] class. type INDArrayMultiaryKernel interface { INDArrayMultiaryBase - EncodeToCommandBufferSourceArraysDestinationArray(cmdBuf metal.PCommandBuffer, sourceArrays []INDArray, destination INDArray) - EncodeToCommandBufferObjectSourceArraysDestinationArray(cmdBufObject objc.IObject, sourceArrays []INDArray, destination INDArray) - EncodeToCommandBufferSourceArraysResultStateDestinationArray(cmdBuf metal.PCommandBuffer, sourceArrays []INDArray, outGradientState IState, destination INDArray) - EncodeToCommandBufferObjectSourceArraysResultStateDestinationArray(cmdBufObject objc.IObject, sourceArrays []INDArray, outGradientState IState, destination INDArray) EncodeToCommandBufferSourceArrays(cmdBuf metal.PCommandBuffer, sourceArrays []INDArray) NDArray EncodeToCommandBufferObjectSourceArrays(cmdBufObject objc.IObject, sourceArrays []INDArray) NDArray - EncodeToCommandBufferSourceArraysResultStateOutputStateIsTemporary(cmdBuf metal.PCommandBuffer, sourceArrays []INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray - EncodeToCommandBufferObjectSourceArraysResultStateOutputStateIsTemporary(cmdBufObject objc.IObject, sourceArrays []INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray } // [Full Topic] @@ -107,36 +101,6 @@ func NewNDArrayMultiaryKernelWithDevice(device metal.PDevice) NDArrayMultiaryKer return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarykernel/3143526-encodetocommandbuffer?language=objc -func (n_ NDArrayMultiaryKernel) EncodeToCommandBufferSourceArraysDestinationArray(cmdBuf metal.PCommandBuffer, sourceArrays []INDArray, destination INDArray) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:destinationArray:"), po0, sourceArrays, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarykernel/3143526-encodetocommandbuffer?language=objc -func (n_ NDArrayMultiaryKernel) EncodeToCommandBufferObjectSourceArraysDestinationArray(cmdBufObject objc.IObject, sourceArrays []INDArray, destination INDArray) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:destinationArray:"), cmdBufObject, sourceArrays, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarykernel/3143527-encodetocommandbuffer?language=objc -func (n_ NDArrayMultiaryKernel) EncodeToCommandBufferSourceArraysResultStateDestinationArray(cmdBuf metal.PCommandBuffer, sourceArrays []INDArray, outGradientState IState, destination INDArray) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:resultState:destinationArray:"), po0, sourceArrays, outGradientState, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarykernel/3143527-encodetocommandbuffer?language=objc -func (n_ NDArrayMultiaryKernel) EncodeToCommandBufferObjectSourceArraysResultStateDestinationArray(cmdBufObject objc.IObject, sourceArrays []INDArray, outGradientState IState, destination INDArray) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:resultState:destinationArray:"), cmdBufObject, sourceArrays, outGradientState, destination) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarykernel/3143525-encodetocommandbuffer?language=objc @@ -153,20 +117,3 @@ func (n_ NDArrayMultiaryKernel) EncodeToCommandBufferObjectSourceArrays(cmdBufOb rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:"), cmdBufObject, sourceArrays) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarykernel/3143528-encodetocommandbuffer?language=objc -func (n_ NDArrayMultiaryKernel) EncodeToCommandBufferSourceArraysResultStateOutputStateIsTemporary(cmdBuf metal.PCommandBuffer, sourceArrays []INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:resultState:outputStateIsTemporary:"), po0, sourceArrays, outGradientState, outputStateIsTemporary) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarykernel/3143528-encodetocommandbuffer?language=objc -func (n_ NDArrayMultiaryKernel) EncodeToCommandBufferObjectSourceArraysResultStateOutputStateIsTemporary(cmdBufObject objc.IObject, sourceArrays []INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray { - rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:resultState:outputStateIsTemporary:"), cmdBufObject, sourceArrays, outGradientState, outputStateIsTemporary) - return rv -} diff --git a/macos/mps/nd_array_unary_gradient_kernel.gen.go b/macos/mps/nd_array_unary_gradient_kernel.gen.go index f21a848b..5213d75b 100644 --- a/macos/mps/nd_array_unary_gradient_kernel.gen.go +++ b/macos/mps/nd_array_unary_gradient_kernel.gen.go @@ -21,8 +21,6 @@ type INDArrayUnaryGradientKernel interface { INDArrayMultiaryGradientKernel EncodeToCommandBufferSourceArraySourceGradientGradientState(cmdBuf metal.PCommandBuffer, sourceArray INDArray, gradient INDArray, state IState) NDArray EncodeToCommandBufferObjectSourceArraySourceGradientGradientState(cmdBufObject objc.IObject, sourceArray INDArray, gradient INDArray, state IState) NDArray - EncodeToCommandBufferSourceArraySourceGradientGradientStateDestinationArray(cmdBuf metal.PCommandBuffer, sourceArray INDArray, gradient INDArray, state IState, destination INDArray) - EncodeToCommandBufferObjectSourceArraySourceGradientGradientStateDestinationArray(cmdBufObject objc.IObject, sourceArray INDArray, gradient INDArray, state IState, destination INDArray) } // [Full Topic] @@ -134,18 +132,3 @@ func (n_ NDArrayUnaryGradientKernel) EncodeToCommandBufferObjectSourceArraySourc rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArray:sourceGradient:gradientState:"), cmdBufObject, sourceArray, gradient, state) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayunarygradientkernel/3143531-encodetocommandbuffer?language=objc -func (n_ NDArrayUnaryGradientKernel) EncodeToCommandBufferSourceArraySourceGradientGradientStateDestinationArray(cmdBuf metal.PCommandBuffer, sourceArray INDArray, gradient INDArray, state IState, destination INDArray) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArray:sourceGradient:gradientState:destinationArray:"), po0, sourceArray, gradient, state, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayunarygradientkernel/3143531-encodetocommandbuffer?language=objc -func (n_ NDArrayUnaryGradientKernel) EncodeToCommandBufferObjectSourceArraySourceGradientGradientStateDestinationArray(cmdBufObject objc.IObject, sourceArray INDArray, gradient INDArray, state IState, destination INDArray) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArray:sourceGradient:gradientState:destinationArray:"), cmdBufObject, sourceArray, gradient, state, destination) -} diff --git a/macos/mps/nd_array_unary_kernel.gen.go b/macos/mps/nd_array_unary_kernel.gen.go index a97a22d0..c58e830f 100644 --- a/macos/mps/nd_array_unary_kernel.gen.go +++ b/macos/mps/nd_array_unary_kernel.gen.go @@ -19,14 +19,8 @@ type _NDArrayUnaryKernelClass struct { // An interface definition for the [NDArrayUnaryKernel] class. type INDArrayUnaryKernel interface { INDArrayMultiaryKernel - EncodeToCommandBufferSourceArrayDestinationArray(cmdBuf metal.PCommandBuffer, sourceArray INDArray, destination INDArray) - EncodeToCommandBufferObjectSourceArrayDestinationArray(cmdBufObject objc.IObject, sourceArray INDArray, destination INDArray) - EncodeToCommandBufferSourceArray(cmdBuf metal.PCommandBuffer, sourceArray INDArray) NDArray - EncodeToCommandBufferObjectSourceArray(cmdBufObject objc.IObject, sourceArray INDArray) NDArray EncodeToCommandBufferSourceArrayResultStateDestinationArray(cmdBuf metal.PCommandBuffer, sourceArray INDArray, outGradientState IState, destination INDArray) EncodeToCommandBufferObjectSourceArrayResultStateDestinationArray(cmdBufObject objc.IObject, sourceArray INDArray, outGradientState IState, destination INDArray) - EncodeToCommandBufferSourceArrayResultStateOutputStateIsTemporary(cmdBuf metal.PCommandBuffer, sourceArray INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray - EncodeToCommandBufferObjectSourceArrayResultStateOutputStateIsTemporary(cmdBufObject objc.IObject, sourceArray INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray } // [Full Topic] @@ -107,38 +101,6 @@ func NDArrayUnaryKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDe return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayunarykernel/3143537-encodetocommandbuffer?language=objc -func (n_ NDArrayUnaryKernel) EncodeToCommandBufferSourceArrayDestinationArray(cmdBuf metal.PCommandBuffer, sourceArray INDArray, destination INDArray) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArray:destinationArray:"), po0, sourceArray, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayunarykernel/3143537-encodetocommandbuffer?language=objc -func (n_ NDArrayUnaryKernel) EncodeToCommandBufferObjectSourceArrayDestinationArray(cmdBufObject objc.IObject, sourceArray INDArray, destination INDArray) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArray:destinationArray:"), cmdBufObject, sourceArray, destination) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayunarykernel/3143536-encodetocommandbuffer?language=objc -func (n_ NDArrayUnaryKernel) EncodeToCommandBufferSourceArray(cmdBuf metal.PCommandBuffer, sourceArray INDArray) NDArray { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArray:"), po0, sourceArray) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayunarykernel/3143536-encodetocommandbuffer?language=objc -func (n_ NDArrayUnaryKernel) EncodeToCommandBufferObjectSourceArray(cmdBufObject objc.IObject, sourceArray INDArray) NDArray { - rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArray:"), cmdBufObject, sourceArray) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayunarykernel/3143538-encodetocommandbuffer?language=objc @@ -153,20 +115,3 @@ func (n_ NDArrayUnaryKernel) EncodeToCommandBufferSourceArrayResultStateDestinat func (n_ NDArrayUnaryKernel) EncodeToCommandBufferObjectSourceArrayResultStateDestinationArray(cmdBufObject objc.IObject, sourceArray INDArray, outGradientState IState, destination INDArray) { objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:sourceArray:resultState:destinationArray:"), cmdBufObject, sourceArray, outGradientState, destination) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayunarykernel/3143539-encodetocommandbuffer?language=objc -func (n_ NDArrayUnaryKernel) EncodeToCommandBufferSourceArrayResultStateOutputStateIsTemporary(cmdBuf metal.PCommandBuffer, sourceArray INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArray:resultState:outputStateIsTemporary:"), po0, sourceArray, outGradientState, outputStateIsTemporary) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayunarykernel/3143539-encodetocommandbuffer?language=objc -func (n_ NDArrayUnaryKernel) EncodeToCommandBufferObjectSourceArrayResultStateOutputStateIsTemporary(cmdBufObject objc.IObject, sourceArray INDArray, outGradientState unsafe.Pointer, outputStateIsTemporary bool) NDArray { - rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArray:resultState:outputStateIsTemporary:"), cmdBufObject, sourceArray, outGradientState, outputStateIsTemporary) - return rv -} diff --git a/macos/mps/nn_addition_node.gen.go b/macos/mps/nn_addition_node.gen.go index e3b03025..a37fe1d5 100644 --- a/macos/mps/nn_addition_node.gen.go +++ b/macos/mps/nn_addition_node.gen.go @@ -65,20 +65,6 @@ func NNAdditionNode_NodeWithSources(sourceNodes []INNImageNode) NNAdditionNode { return NNAdditionNodeClass.NodeWithSources(sourceNodes) } -func (n_ NNAdditionNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNAdditionNode { - rv := objc.Call[NNAdditionNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc -func NewNNAdditionNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNAdditionNode { - instance := NNAdditionNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) - instance.Autorelease() - return instance -} - func (nc _NNAdditionNodeClass) NodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNAdditionNode { rv := objc.Call[NNAdditionNode](nc, objc.Sel("nodeWithLeftSource:rightSource:"), left, right) return rv @@ -104,3 +90,17 @@ func NewNNAdditionNodeWithSources(sourceNodes []INNImageNode) NNAdditionNode { instance.Autorelease() return instance } + +func (n_ NNAdditionNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNAdditionNode { + rv := objc.Call[NNAdditionNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc +func NewNNAdditionNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNAdditionNode { + instance := NNAdditionNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) + instance.Autorelease() + return instance +} diff --git a/macos/mps/nn_arithmetic_gradient_node.gen.go b/macos/mps/nn_arithmetic_gradient_node.gen.go index 6c1e35a8..c80a1866 100644 --- a/macos/mps/nn_arithmetic_gradient_node.gen.go +++ b/macos/mps/nn_arithmetic_gradient_node.gen.go @@ -18,23 +18,23 @@ type _NNArithmeticGradientNodeClass struct { // An interface definition for the [NNArithmeticGradientNode] class. type INNArithmeticGradientNode interface { INNGradientFilterNode - MaximumValue() float32 - SetMaximumValue(value float32) + SecondaryScale() float32 + SetSecondaryScale(value float32) + IsSecondarySourceFilter() bool SecondaryStrideInPixelsY() uint SetSecondaryStrideInPixelsY(value uint) SecondaryStrideInPixelsX() uint SetSecondaryStrideInPixelsX(value uint) - SecondaryScale() float32 - SetSecondaryScale(value float32) - Bias() float32 - SetBias(value float32) + MaximumValue() float32 + SetMaximumValue(value float32) + PrimaryScale() float32 + SetPrimaryScale(value float32) MinimumValue() float32 SetMinimumValue(value float32) - IsSecondarySourceFilter() bool + Bias() float32 + SetBias(value float32) SecondaryStrideInFeatureChannels() uint SetSecondaryStrideInFeatureChannels(value uint) - PrimaryScale() float32 - SetPrimaryScale(value float32) } // A representation of the base class for gradient arithmetic operators. [Full Topic] @@ -112,17 +112,25 @@ func (n_ NNArithmeticGradientNode) Init() NNArithmeticGradientNode { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952986-maximumvalue?language=objc -func (n_ NNArithmeticGradientNode) MaximumValue() float32 { - rv := objc.Call[float32](n_, objc.Sel("maximumValue")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952981-secondaryscale?language=objc +func (n_ NNArithmeticGradientNode) SecondaryScale() float32 { + rv := objc.Call[float32](n_, objc.Sel("secondaryScale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952986-maximumvalue?language=objc -func (n_ NNArithmeticGradientNode) SetMaximumValue(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setMaximumValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952981-secondaryscale?language=objc +func (n_ NNArithmeticGradientNode) SetSecondaryScale(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setSecondaryScale:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952987-issecondarysourcefilter?language=objc +func (n_ NNArithmeticGradientNode) IsSecondarySourceFilter() bool { + rv := objc.Call[bool](n_, objc.Sel("isSecondarySourceFilter")) + return rv } // [Full Topic] @@ -157,32 +165,32 @@ func (n_ NNArithmeticGradientNode) SetSecondaryStrideInPixelsX(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952981-secondaryscale?language=objc -func (n_ NNArithmeticGradientNode) SecondaryScale() float32 { - rv := objc.Call[float32](n_, objc.Sel("secondaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952986-maximumvalue?language=objc +func (n_ NNArithmeticGradientNode) MaximumValue() float32 { + rv := objc.Call[float32](n_, objc.Sel("maximumValue")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952981-secondaryscale?language=objc -func (n_ NNArithmeticGradientNode) SetSecondaryScale(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setSecondaryScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952986-maximumvalue?language=objc +func (n_ NNArithmeticGradientNode) SetMaximumValue(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setMaximumValue:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952988-bias?language=objc -func (n_ NNArithmeticGradientNode) Bias() float32 { - rv := objc.Call[float32](n_, objc.Sel("bias")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952993-primaryscale?language=objc +func (n_ NNArithmeticGradientNode) PrimaryScale() float32 { + rv := objc.Call[float32](n_, objc.Sel("primaryScale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952988-bias?language=objc -func (n_ NNArithmeticGradientNode) SetBias(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952993-primaryscale?language=objc +func (n_ NNArithmeticGradientNode) SetPrimaryScale(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setPrimaryScale:"), value) } // [Full Topic] @@ -202,12 +210,19 @@ func (n_ NNArithmeticGradientNode) SetMinimumValue(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952987-issecondarysourcefilter?language=objc -func (n_ NNArithmeticGradientNode) IsSecondarySourceFilter() bool { - rv := objc.Call[bool](n_, objc.Sel("isSecondarySourceFilter")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952988-bias?language=objc +func (n_ NNArithmeticGradientNode) Bias() float32 { + rv := objc.Call[float32](n_, objc.Sel("bias")) return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952988-bias?language=objc +func (n_ NNArithmeticGradientNode) SetBias(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setBias:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952984-secondarystrideinfeaturechannels?language=objc @@ -222,18 +237,3 @@ func (n_ NNArithmeticGradientNode) SecondaryStrideInFeatureChannels() uint { func (n_ NNArithmeticGradientNode) SetSecondaryStrideInFeatureChannels(value uint) { objc.Call[objc.Void](n_, objc.Sel("setSecondaryStrideInFeatureChannels:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952993-primaryscale?language=objc -func (n_ NNArithmeticGradientNode) PrimaryScale() float32 { - rv := objc.Call[float32](n_, objc.Sel("primaryScale")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952993-primaryscale?language=objc -func (n_ NNArithmeticGradientNode) SetPrimaryScale(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setPrimaryScale:"), value) -} diff --git a/macos/mps/nn_bilinear_scale_node.gen.go b/macos/mps/nn_bilinear_scale_node.gen.go index edb33f2a..1ada5617 100644 --- a/macos/mps/nn_bilinear_scale_node.gen.go +++ b/macos/mps/nn_bilinear_scale_node.gen.go @@ -54,35 +54,6 @@ func (n_ NNBilinearScaleNode) Init() NNBilinearScaleNode { return rv } -func (n_ NNBilinearScaleNode) InitWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNBilinearScaleNode { - rv := objc.Call[NNBilinearScaleNode](n_, objc.Sel("initWithSource:outputSize:"), sourceNode, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915285-initwithsource?language=objc -func NewNNBilinearScaleNodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNBilinearScaleNode { - instance := NNBilinearScaleNodeClass.Alloc().InitWithSourceOutputSize(sourceNode, size) - instance.Autorelease() - return instance -} - -func (n_ NNBilinearScaleNode) InitWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNBilinearScaleNode { - po1 := objc.WrapAsProtocol("MPSImageTransformProvider", transformProvider) - rv := objc.Call[NNBilinearScaleNode](n_, objc.Sel("initWithSource:transformProvider:outputSize:"), sourceNode, po1, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915278-initwithsource?language=objc -func NewNNBilinearScaleNodeWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNBilinearScaleNode { - instance := NNBilinearScaleNodeClass.Alloc().InitWithSourceTransformProviderOutputSize(sourceNode, transformProvider, size) - instance.Autorelease() - return instance -} - func (nc _NNBilinearScaleNodeClass) NodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNBilinearScaleNode { rv := objc.Call[NNBilinearScaleNode](nc, objc.Sel("nodeWithSource:outputSize:"), sourceNode, size) return rv @@ -95,15 +66,16 @@ func NNBilinearScaleNode_NodeWithSourceOutputSize(sourceNode INNImageNode, size return NNBilinearScaleNodeClass.NodeWithSourceOutputSize(sourceNode, size) } -func (nc _NNBilinearScaleNodeClass) NodeWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNBilinearScaleNode { - po1 := objc.WrapAsProtocol("MPSImageTransformProvider", transformProvider) - rv := objc.Call[NNBilinearScaleNode](nc, objc.Sel("nodeWithSource:transformProvider:outputSize:"), sourceNode, po1, size) +func (n_ NNBilinearScaleNode) InitWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNBilinearScaleNode { + rv := objc.Call[NNBilinearScaleNode](n_, objc.Sel("initWithSource:outputSize:"), sourceNode, size) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915286-nodewithsource?language=objc -func NNBilinearScaleNode_NodeWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNBilinearScaleNode { - return NNBilinearScaleNodeClass.NodeWithSourceTransformProviderOutputSize(sourceNode, transformProvider, size) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915285-initwithsource?language=objc +func NewNNBilinearScaleNodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNBilinearScaleNode { + instance := NNBilinearScaleNodeClass.Alloc().InitWithSourceOutputSize(sourceNode, size) + instance.Autorelease() + return instance } diff --git a/macos/mps/nn_binary_arithmetic_node.gen.go b/macos/mps/nn_binary_arithmetic_node.gen.go index fc2d5eb7..594c822b 100644 --- a/macos/mps/nn_binary_arithmetic_node.gen.go +++ b/macos/mps/nn_binary_arithmetic_node.gen.go @@ -19,28 +19,28 @@ type _NNBinaryArithmeticNodeClass struct { type INNBinaryArithmeticNode interface { INNFilterNode GradientClass() objc.Class - PrimaryScale() float32 - SetPrimaryScale(value float32) - SecondaryStrideInPixelsY() uint - SetSecondaryStrideInPixelsY(value uint) - MaximumValue() float32 - SetMaximumValue(value float32) SecondaryScale() float32 SetSecondaryScale(value float32) + SecondaryStrideInPixelsY() uint + SetSecondaryStrideInPixelsY(value uint) SecondaryStrideInPixelsX() uint SetSecondaryStrideInPixelsX(value uint) - SecondaryStrideInFeatureChannels() uint - SetSecondaryStrideInFeatureChannels(value uint) - PrimaryStrideInFeatureChannels() uint - SetPrimaryStrideInFeatureChannels(value uint) + PrimaryStrideInPixelsY() uint + SetPrimaryStrideInPixelsY(value uint) + MaximumValue() float32 + SetMaximumValue(value float32) + PrimaryStrideInPixelsX() uint + SetPrimaryStrideInPixelsX(value uint) + PrimaryScale() float32 + SetPrimaryScale(value float32) MinimumValue() float32 SetMinimumValue(value float32) Bias() float32 SetBias(value float32) - PrimaryStrideInPixelsX() uint - SetPrimaryStrideInPixelsX(value uint) - PrimaryStrideInPixelsY() uint - SetPrimaryStrideInPixelsY(value uint) + SecondaryStrideInFeatureChannels() uint + SetSecondaryStrideInFeatureChannels(value uint) + PrimaryStrideInFeatureChannels() uint + SetPrimaryStrideInFeatureChannels(value uint) } // Virtual base class for basic arithmetic nodes. [Full Topic] @@ -68,20 +68,6 @@ func NNBinaryArithmeticNode_NodeWithSources(sourceNodes []INNImageNode) NNBinary return NNBinaryArithmeticNodeClass.NodeWithSources(sourceNodes) } -func (n_ NNBinaryArithmeticNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNBinaryArithmeticNode { - rv := objc.Call[NNBinaryArithmeticNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc -func NewNNBinaryArithmeticNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNBinaryArithmeticNode { - instance := NNBinaryArithmeticNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) - instance.Autorelease() - return instance -} - func (nc _NNBinaryArithmeticNodeClass) NodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNBinaryArithmeticNode { rv := objc.Call[NNBinaryArithmeticNode](nc, objc.Sel("nodeWithLeftSource:rightSource:"), left, right) return rv @@ -108,6 +94,20 @@ func NewNNBinaryArithmeticNodeWithSources(sourceNodes []INNImageNode) NNBinaryAr return instance } +func (n_ NNBinaryArithmeticNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNBinaryArithmeticNode { + rv := objc.Call[NNBinaryArithmeticNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc +func NewNNBinaryArithmeticNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNBinaryArithmeticNode { + instance := NNBinaryArithmeticNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) + instance.Autorelease() + return instance +} + func (nc _NNBinaryArithmeticNodeClass) Alloc() NNBinaryArithmeticNode { rv := objc.Call[NNBinaryArithmeticNode](nc, objc.Sel("alloc")) return rv @@ -138,17 +138,17 @@ func (n_ NNBinaryArithmeticNode) GradientClass() objc.Class { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952966-primaryscale?language=objc -func (n_ NNBinaryArithmeticNode) PrimaryScale() float32 { - rv := objc.Call[float32](n_, objc.Sel("primaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952976-secondaryscale?language=objc +func (n_ NNBinaryArithmeticNode) SecondaryScale() float32 { + rv := objc.Call[float32](n_, objc.Sel("secondaryScale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952966-primaryscale?language=objc -func (n_ NNBinaryArithmeticNode) SetPrimaryScale(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setPrimaryScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952976-secondaryscale?language=objc +func (n_ NNBinaryArithmeticNode) SetSecondaryScale(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setSecondaryScale:"), value) } // [Full Topic] @@ -168,77 +168,77 @@ func (n_ NNBinaryArithmeticNode) SetSecondaryStrideInPixelsY(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952979-maximumvalue?language=objc -func (n_ NNBinaryArithmeticNode) MaximumValue() float32 { - rv := objc.Call[float32](n_, objc.Sel("maximumValue")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952972-secondarystrideinpixelsx?language=objc +func (n_ NNBinaryArithmeticNode) SecondaryStrideInPixelsX() uint { + rv := objc.Call[uint](n_, objc.Sel("secondaryStrideInPixelsX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952979-maximumvalue?language=objc -func (n_ NNBinaryArithmeticNode) SetMaximumValue(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setMaximumValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952972-secondarystrideinpixelsx?language=objc +func (n_ NNBinaryArithmeticNode) SetSecondaryStrideInPixelsX(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setSecondaryStrideInPixelsX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952976-secondaryscale?language=objc -func (n_ NNBinaryArithmeticNode) SecondaryScale() float32 { - rv := objc.Call[float32](n_, objc.Sel("secondaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952996-primarystrideinpixelsy?language=objc +func (n_ NNBinaryArithmeticNode) PrimaryStrideInPixelsY() uint { + rv := objc.Call[uint](n_, objc.Sel("primaryStrideInPixelsY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952976-secondaryscale?language=objc -func (n_ NNBinaryArithmeticNode) SetSecondaryScale(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setSecondaryScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952996-primarystrideinpixelsy?language=objc +func (n_ NNBinaryArithmeticNode) SetPrimaryStrideInPixelsY(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setPrimaryStrideInPixelsY:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952972-secondarystrideinpixelsx?language=objc -func (n_ NNBinaryArithmeticNode) SecondaryStrideInPixelsX() uint { - rv := objc.Call[uint](n_, objc.Sel("secondaryStrideInPixelsX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952979-maximumvalue?language=objc +func (n_ NNBinaryArithmeticNode) MaximumValue() float32 { + rv := objc.Call[float32](n_, objc.Sel("maximumValue")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952972-secondarystrideinpixelsx?language=objc -func (n_ NNBinaryArithmeticNode) SetSecondaryStrideInPixelsX(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setSecondaryStrideInPixelsX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952979-maximumvalue?language=objc +func (n_ NNBinaryArithmeticNode) SetMaximumValue(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setMaximumValue:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952974-secondarystrideinfeaturechannels?language=objc -func (n_ NNBinaryArithmeticNode) SecondaryStrideInFeatureChannels() uint { - rv := objc.Call[uint](n_, objc.Sel("secondaryStrideInFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952973-primarystrideinpixelsx?language=objc +func (n_ NNBinaryArithmeticNode) PrimaryStrideInPixelsX() uint { + rv := objc.Call[uint](n_, objc.Sel("primaryStrideInPixelsX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952974-secondarystrideinfeaturechannels?language=objc -func (n_ NNBinaryArithmeticNode) SetSecondaryStrideInFeatureChannels(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setSecondaryStrideInFeatureChannels:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952973-primarystrideinpixelsx?language=objc +func (n_ NNBinaryArithmeticNode) SetPrimaryStrideInPixelsX(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setPrimaryStrideInPixelsX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952983-primarystrideinfeaturechannels?language=objc -func (n_ NNBinaryArithmeticNode) PrimaryStrideInFeatureChannels() uint { - rv := objc.Call[uint](n_, objc.Sel("primaryStrideInFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952966-primaryscale?language=objc +func (n_ NNBinaryArithmeticNode) PrimaryScale() float32 { + rv := objc.Call[float32](n_, objc.Sel("primaryScale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952983-primarystrideinfeaturechannels?language=objc -func (n_ NNBinaryArithmeticNode) SetPrimaryStrideInFeatureChannels(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setPrimaryStrideInFeatureChannels:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952966-primaryscale?language=objc +func (n_ NNBinaryArithmeticNode) SetPrimaryScale(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setPrimaryScale:"), value) } // [Full Topic] @@ -273,30 +273,30 @@ func (n_ NNBinaryArithmeticNode) SetBias(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952973-primarystrideinpixelsx?language=objc -func (n_ NNBinaryArithmeticNode) PrimaryStrideInPixelsX() uint { - rv := objc.Call[uint](n_, objc.Sel("primaryStrideInPixelsX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952974-secondarystrideinfeaturechannels?language=objc +func (n_ NNBinaryArithmeticNode) SecondaryStrideInFeatureChannels() uint { + rv := objc.Call[uint](n_, objc.Sel("secondaryStrideInFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952973-primarystrideinpixelsx?language=objc -func (n_ NNBinaryArithmeticNode) SetPrimaryStrideInPixelsX(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setPrimaryStrideInPixelsX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952974-secondarystrideinfeaturechannels?language=objc +func (n_ NNBinaryArithmeticNode) SetSecondaryStrideInFeatureChannels(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setSecondaryStrideInFeatureChannels:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952996-primarystrideinpixelsy?language=objc -func (n_ NNBinaryArithmeticNode) PrimaryStrideInPixelsY() uint { - rv := objc.Call[uint](n_, objc.Sel("primaryStrideInPixelsY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952983-primarystrideinfeaturechannels?language=objc +func (n_ NNBinaryArithmeticNode) PrimaryStrideInFeatureChannels() uint { + rv := objc.Call[uint](n_, objc.Sel("primaryStrideInFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952996-primarystrideinpixelsy?language=objc -func (n_ NNBinaryArithmeticNode) SetPrimaryStrideInPixelsY(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setPrimaryStrideInPixelsY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952983-primarystrideinfeaturechannels?language=objc +func (n_ NNBinaryArithmeticNode) SetPrimaryStrideInFeatureChannels(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setPrimaryStrideInFeatureChannels:"), value) } diff --git a/macos/mps/nn_binary_gradient_state.gen.go b/macos/mps/nn_binary_gradient_state.gen.go index ea24c57a..49a207db 100644 --- a/macos/mps/nn_binary_gradient_state.gen.go +++ b/macos/mps/nn_binary_gradient_state.gen.go @@ -54,45 +54,16 @@ func (n_ NNBinaryGradientState) Init() NNBinaryGradientState { return rv } -func (nc _NNBinaryGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNBinaryGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[NNBinaryGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func NNBinaryGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNBinaryGradientState { - return NNBinaryGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (n_ NNBinaryGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) NNBinaryGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNBinaryGradientState](n_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewNNBinaryGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) NNBinaryGradientState { - instance := NNBinaryGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (n_ NNBinaryGradientState) InitWithResource(resource metal.PResource) NNBinaryGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[NNBinaryGradientState](n_, objc.Sel("initWithResource:"), po0) +func (n_ NNBinaryGradientState) InitWithResources(resources []metal.PResource) NNBinaryGradientState { + rv := objc.Call[NNBinaryGradientState](n_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewNNBinaryGradientStateWithResource(resource metal.PResource) NNBinaryGradientState { - instance := NNBinaryGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewNNBinaryGradientStateWithResources(resources []metal.PResource) NNBinaryGradientState { + instance := NNBinaryGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -112,70 +83,30 @@ func NewNNBinaryGradientStateWithDeviceBufferSize(device metal.PDevice, bufferSi return instance } -func (n_ NNBinaryGradientState) InitWithResources(resources []metal.PResource) NNBinaryGradientState { - rv := objc.Call[NNBinaryGradientState](n_, objc.Sel("initWithResources:"), resources) +func (n_ NNBinaryGradientState) InitWithResource(resource metal.PResource) NNBinaryGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[NNBinaryGradientState](n_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewNNBinaryGradientStateWithResources(resources []metal.PResource) NNBinaryGradientState { - instance := NNBinaryGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewNNBinaryGradientStateWithResource(resource metal.PResource) NNBinaryGradientState { + instance := NNBinaryGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (nc _NNBinaryGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) NNBinaryGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NNBinaryGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func NNBinaryGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) NNBinaryGradientState { - return NNBinaryGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (nc _NNBinaryGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) NNBinaryGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NNBinaryGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func NNBinaryGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) NNBinaryGradientState { - return NNBinaryGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (nc _NNBinaryGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) NNBinaryGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NNBinaryGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func NNBinaryGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) NNBinaryGradientState { - return NNBinaryGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (n_ NNBinaryGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) NNBinaryGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNBinaryGradientState](n_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (nc _NNBinaryGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNBinaryGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[NNBinaryGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewNNBinaryGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) NNBinaryGradientState { - instance := NNBinaryGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func NNBinaryGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNBinaryGradientState { + return NNBinaryGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } diff --git a/macos/mps/nn_compare.gen.go b/macos/mps/nn_compare.gen.go index 84cd7232..25a3cc70 100644 --- a/macos/mps/nn_compare.gen.go +++ b/macos/mps/nn_compare.gen.go @@ -19,10 +19,10 @@ type _NNCompareClass struct { // An interface definition for the [NNCompare] class. type INNCompare interface { ICNNArithmetic - Threshold() float32 - SetThreshold(value float32) ComparisonType() NNComparisonType SetComparisonType(value NNComparisonType) + Threshold() float32 + SetThreshold(value float32) } // [Full Topic] @@ -90,30 +90,30 @@ func NNCompare_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNC // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncompare/3037376-threshold?language=objc -func (n_ NNCompare) Threshold() float32 { - rv := objc.Call[float32](n_, objc.Sel("threshold")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncompare/3037374-comparisontype?language=objc +func (n_ NNCompare) ComparisonType() NNComparisonType { + rv := objc.Call[NNComparisonType](n_, objc.Sel("comparisonType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncompare/3037376-threshold?language=objc -func (n_ NNCompare) SetThreshold(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setThreshold:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncompare/3037374-comparisontype?language=objc +func (n_ NNCompare) SetComparisonType(value NNComparisonType) { + objc.Call[objc.Void](n_, objc.Sel("setComparisonType:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncompare/3037374-comparisontype?language=objc -func (n_ NNCompare) ComparisonType() NNComparisonType { - rv := objc.Call[NNComparisonType](n_, objc.Sel("comparisonType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncompare/3037376-threshold?language=objc +func (n_ NNCompare) Threshold() float32 { + rv := objc.Call[float32](n_, objc.Sel("threshold")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncompare/3037374-comparisontype?language=objc -func (n_ NNCompare) SetComparisonType(value NNComparisonType) { - objc.Call[objc.Void](n_, objc.Sel("setComparisonType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncompare/3037376-threshold?language=objc +func (n_ NNCompare) SetThreshold(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setThreshold:"), value) } diff --git a/macos/mps/nn_comparison_node.gen.go b/macos/mps/nn_comparison_node.gen.go index b331bda2..30b1ebb3 100644 --- a/macos/mps/nn_comparison_node.gen.go +++ b/macos/mps/nn_comparison_node.gen.go @@ -67,20 +67,6 @@ func NNComparisonNode_NodeWithSources(sourceNodes []INNImageNode) NNComparisonNo return NNComparisonNodeClass.NodeWithSources(sourceNodes) } -func (n_ NNComparisonNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNComparisonNode { - rv := objc.Call[NNComparisonNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc -func NewNNComparisonNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNComparisonNode { - instance := NNComparisonNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) - instance.Autorelease() - return instance -} - func (nc _NNComparisonNodeClass) NodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNComparisonNode { rv := objc.Call[NNComparisonNode](nc, objc.Sel("nodeWithLeftSource:rightSource:"), left, right) return rv @@ -107,6 +93,20 @@ func NewNNComparisonNodeWithSources(sourceNodes []INNImageNode) NNComparisonNode return instance } +func (n_ NNComparisonNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNComparisonNode { + rv := objc.Call[NNComparisonNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc +func NewNNComparisonNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNComparisonNode { + instance := NNComparisonNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) + instance.Autorelease() + return instance +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncomparisonnode/3037389-comparisontype?language=objc diff --git a/macos/mps/nn_concatenation_node.gen.go b/macos/mps/nn_concatenation_node.gen.go index 326b3b6f..3dec9dcd 100644 --- a/macos/mps/nn_concatenation_node.gen.go +++ b/macos/mps/nn_concatenation_node.gen.go @@ -33,30 +33,30 @@ func NNConcatenationNodeFrom(ptr unsafe.Pointer) NNConcatenationNode { } } -func (n_ NNConcatenationNode) InitWithSources(sourceNodes []INNImageNode) NNConcatenationNode { - rv := objc.Call[NNConcatenationNode](n_, objc.Sel("initWithSources:"), sourceNodes) +func (nc _NNConcatenationNodeClass) NodeWithSources(sourceNodes []INNImageNode) NNConcatenationNode { + rv := objc.Call[NNConcatenationNode](nc, objc.Sel("nodeWithSources:"), sourceNodes) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnconcatenationnode/2866423-initwithsources?language=objc -func NewNNConcatenationNodeWithSources(sourceNodes []INNImageNode) NNConcatenationNode { - instance := NNConcatenationNodeClass.Alloc().InitWithSources(sourceNodes) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnconcatenationnode/2866432-nodewithsources?language=objc +func NNConcatenationNode_NodeWithSources(sourceNodes []INNImageNode) NNConcatenationNode { + return NNConcatenationNodeClass.NodeWithSources(sourceNodes) } -func (nc _NNConcatenationNodeClass) NodeWithSources(sourceNodes []INNImageNode) NNConcatenationNode { - rv := objc.Call[NNConcatenationNode](nc, objc.Sel("nodeWithSources:"), sourceNodes) +func (n_ NNConcatenationNode) InitWithSources(sourceNodes []INNImageNode) NNConcatenationNode { + rv := objc.Call[NNConcatenationNode](n_, objc.Sel("initWithSources:"), sourceNodes) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnconcatenationnode/2866432-nodewithsources?language=objc -func NNConcatenationNode_NodeWithSources(sourceNodes []INNImageNode) NNConcatenationNode { - return NNConcatenationNodeClass.NodeWithSources(sourceNodes) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnconcatenationnode/2866423-initwithsources?language=objc +func NewNNConcatenationNodeWithSources(sourceNodes []INNImageNode) NNConcatenationNode { + instance := NNConcatenationNodeClass.Alloc().InitWithSources(sourceNodes) + instance.Autorelease() + return instance } func (nc _NNConcatenationNodeClass) Alloc() NNConcatenationNode { diff --git a/macos/mps/nn_crop_and_resize_bilinear.gen.go b/macos/mps/nn_crop_and_resize_bilinear.gen.go index 704e94c4..bbf05508 100644 --- a/macos/mps/nn_crop_and_resize_bilinear.gen.go +++ b/macos/mps/nn_crop_and_resize_bilinear.gen.go @@ -19,10 +19,10 @@ type _NNCropAndResizeBilinearClass struct { // An interface definition for the [NNCropAndResizeBilinear] class. type INNCropAndResizeBilinear interface { ICNNKernel - Regions() *Region ResizeHeight() uint - NumberOfRegions() uint ResizeWidth() uint + Regions() *Region + NumberOfRegions() uint } // A cropping and bilinear resizing filter. [Full Topic] @@ -105,32 +105,32 @@ func NNCropAndResizeBilinear_CopyWithZoneDevice(zone unsafe.Pointer, device meta // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncropandresizebilinear/3013791-regions?language=objc -func (n_ NNCropAndResizeBilinear) Regions() *Region { - rv := objc.Call[*Region](n_, objc.Sel("regions")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncropandresizebilinear/3013792-resizeheight?language=objc +func (n_ NNCropAndResizeBilinear) ResizeHeight() uint { + rv := objc.Call[uint](n_, objc.Sel("resizeHeight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncropandresizebilinear/3013792-resizeheight?language=objc -func (n_ NNCropAndResizeBilinear) ResizeHeight() uint { - rv := objc.Call[uint](n_, objc.Sel("resizeHeight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncropandresizebilinear/3013793-resizewidth?language=objc +func (n_ NNCropAndResizeBilinear) ResizeWidth() uint { + rv := objc.Call[uint](n_, objc.Sel("resizeWidth")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncropandresizebilinear/3013790-numberofregions?language=objc -func (n_ NNCropAndResizeBilinear) NumberOfRegions() uint { - rv := objc.Call[uint](n_, objc.Sel("numberOfRegions")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncropandresizebilinear/3013791-regions?language=objc +func (n_ NNCropAndResizeBilinear) Regions() *Region { + rv := objc.Call[*Region](n_, objc.Sel("regions")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncropandresizebilinear/3013793-resizewidth?language=objc -func (n_ NNCropAndResizeBilinear) ResizeWidth() uint { - rv := objc.Call[uint](n_, objc.Sel("resizeWidth")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncropandresizebilinear/3013790-numberofregions?language=objc +func (n_ NNCropAndResizeBilinear) NumberOfRegions() uint { + rv := objc.Call[uint](n_, objc.Sel("numberOfRegions")) return rv } diff --git a/macos/mps/nn_default_padding.gen.go b/macos/mps/nn_default_padding.gen.go index e3c77a79..c7cd5fe3 100644 --- a/macos/mps/nn_default_padding.gen.go +++ b/macos/mps/nn_default_padding.gen.go @@ -34,16 +34,16 @@ func NNDefaultPaddingFrom(ptr unsafe.Pointer) NNDefaultPadding { } } -func (nc _NNDefaultPaddingClass) PaddingForTensorflowAveragePoolingValidOnly() NNDefaultPadding { - rv := objc.Call[NNDefaultPadding](nc, objc.Sel("paddingForTensorflowAveragePoolingValidOnly")) +func (nc _NNDefaultPaddingClass) PaddingForTensorflowAveragePooling() NNDefaultPadding { + rv := objc.Call[NNDefaultPadding](nc, objc.Sel("paddingForTensorflowAveragePooling")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnndefaultpadding/2947962-paddingfortensorflowaveragepooli?language=objc -func NNDefaultPadding_PaddingForTensorflowAveragePoolingValidOnly() NNDefaultPadding { - return NNDefaultPaddingClass.PaddingForTensorflowAveragePoolingValidOnly() +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnndefaultpadding/2867164-paddingfortensorflowaveragepooli?language=objc +func NNDefaultPadding_PaddingForTensorflowAveragePooling() NNDefaultPadding { + return NNDefaultPaddingClass.PaddingForTensorflowAveragePooling() } func (nc _NNDefaultPaddingClass) PaddingWithMethod(method NNPaddingMethod) NNDefaultPadding { @@ -58,18 +58,6 @@ func NNDefaultPadding_PaddingWithMethod(method NNPaddingMethod) NNDefaultPadding return NNDefaultPaddingClass.PaddingWithMethod(method) } -func (nc _NNDefaultPaddingClass) PaddingForTensorflowAveragePooling() NNDefaultPadding { - rv := objc.Call[NNDefaultPadding](nc, objc.Sel("paddingForTensorflowAveragePooling")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnndefaultpadding/2867164-paddingfortensorflowaveragepooli?language=objc -func NNDefaultPadding_PaddingForTensorflowAveragePooling() NNDefaultPadding { - return NNDefaultPaddingClass.PaddingForTensorflowAveragePooling() -} - func (nc _NNDefaultPaddingClass) Alloc() NNDefaultPadding { rv := objc.Call[NNDefaultPadding](nc, objc.Sel("alloc")) return rv diff --git a/macos/mps/nn_division_node.gen.go b/macos/mps/nn_division_node.gen.go index 8b93e245..44d50d14 100644 --- a/macos/mps/nn_division_node.gen.go +++ b/macos/mps/nn_division_node.gen.go @@ -65,20 +65,6 @@ func NNDivisionNode_NodeWithSources(sourceNodes []INNImageNode) NNDivisionNode { return NNDivisionNodeClass.NodeWithSources(sourceNodes) } -func (n_ NNDivisionNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNDivisionNode { - rv := objc.Call[NNDivisionNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc -func NewNNDivisionNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNDivisionNode { - instance := NNDivisionNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) - instance.Autorelease() - return instance -} - func (nc _NNDivisionNodeClass) NodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNDivisionNode { rv := objc.Call[NNDivisionNode](nc, objc.Sel("nodeWithLeftSource:rightSource:"), left, right) return rv @@ -104,3 +90,17 @@ func NewNNDivisionNodeWithSources(sourceNodes []INNImageNode) NNDivisionNode { instance.Autorelease() return instance } + +func (n_ NNDivisionNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNDivisionNode { + rv := objc.Call[NNDivisionNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc +func NewNNDivisionNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNDivisionNode { + instance := NNDivisionNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) + instance.Autorelease() + return instance +} diff --git a/macos/mps/nn_filter_node.gen.go b/macos/mps/nn_filter_node.gen.go index c91eabd2..67162ddd 100644 --- a/macos/mps/nn_filter_node.gen.go +++ b/macos/mps/nn_filter_node.gen.go @@ -18,17 +18,17 @@ type _NNFilterNodeClass struct { // An interface definition for the [NNFilterNode] class. type INNFilterNode interface { objc.IObject - GradientFilterWithSources(gradientImages []INNImageNode) NNGradientFilterNode GradientFiltersWithSources(gradientImages []INNImageNode) []NNGradientFilterNode - TrainingGraphWithSourceGradientNodeHandler(gradientImage INNImageNode, nodeHandler GradientNodeBlock) []NNFilterNode GradientFiltersWithSource(gradientImage INNImageNode) []NNGradientFilterNode GradientFilterWithSource(gradientImage INNImageNode) NNGradientFilterNode + TrainingGraphWithSourceGradientNodeHandler(gradientImage INNImageNode, nodeHandler GradientNodeBlock) []NNFilterNode + GradientFilterWithSources(gradientImages []INNImageNode) NNGradientFilterNode + ResultState() NNStateNode ResultImage() NNImageNode + ResultStates() []NNStateNode PaddingPolicy() NNPaddingObject SetPaddingPolicy(value PNNPadding) SetPaddingPolicyObject(valueObject objc.IObject) - ResultState() NNStateNode - ResultStates() []NNStateNode Label() string SetLabel(value string) } @@ -68,17 +68,25 @@ func (n_ NNFilterNode) Init() NNFilterNode { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2948052-gradientfilterwithsources?language=objc -func (n_ NNFilterNode) GradientFilterWithSources(gradientImages []INNImageNode) NNGradientFilterNode { - rv := objc.Call[NNGradientFilterNode](n_, objc.Sel("gradientFilterWithSources:"), gradientImages) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2951955-gradientfilterswithsources?language=objc +func (n_ NNFilterNode) GradientFiltersWithSources(gradientImages []INNImageNode) []NNGradientFilterNode { + rv := objc.Call[[]NNGradientFilterNode](n_, objc.Sel("gradientFiltersWithSources:"), gradientImages) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2951955-gradientfilterswithsources?language=objc -func (n_ NNFilterNode) GradientFiltersWithSources(gradientImages []INNImageNode) []NNGradientFilterNode { - rv := objc.Call[[]NNGradientFilterNode](n_, objc.Sel("gradientFiltersWithSources:"), gradientImages) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2953944-gradientfilterswithsource?language=objc +func (n_ NNFilterNode) GradientFiltersWithSource(gradientImage INNImageNode) []NNGradientFilterNode { + rv := objc.Call[[]NNGradientFilterNode](n_, objc.Sel("gradientFiltersWithSource:"), gradientImage) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2953941-gradientfilterwithsource?language=objc +func (n_ NNFilterNode) GradientFilterWithSource(gradientImage INNImageNode) NNGradientFilterNode { + rv := objc.Call[NNGradientFilterNode](n_, objc.Sel("gradientFilterWithSource:"), gradientImage) return rv } @@ -92,17 +100,17 @@ func (n_ NNFilterNode) TrainingGraphWithSourceGradientNodeHandler(gradientImage // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2953944-gradientfilterswithsource?language=objc -func (n_ NNFilterNode) GradientFiltersWithSource(gradientImage INNImageNode) []NNGradientFilterNode { - rv := objc.Call[[]NNGradientFilterNode](n_, objc.Sel("gradientFiltersWithSource:"), gradientImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2948052-gradientfilterwithsources?language=objc +func (n_ NNFilterNode) GradientFilterWithSources(gradientImages []INNImageNode) NNGradientFilterNode { + rv := objc.Call[NNGradientFilterNode](n_, objc.Sel("gradientFilterWithSources:"), gradientImages) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2953941-gradientfilterwithsource?language=objc -func (n_ NNFilterNode) GradientFilterWithSource(gradientImage INNImageNode) NNGradientFilterNode { - rv := objc.Call[NNGradientFilterNode](n_, objc.Sel("gradientFilterWithSource:"), gradientImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2866503-resultstate?language=objc +func (n_ NNFilterNode) ResultState() NNStateNode { + rv := objc.Call[NNStateNode](n_, objc.Sel("resultState")) return rv } @@ -114,6 +122,14 @@ func (n_ NNFilterNode) ResultImage() NNImageNode { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2866486-resultstates?language=objc +func (n_ NNFilterNode) ResultStates() []NNStateNode { + rv := objc.Call[[]NNStateNode](n_, objc.Sel("resultStates")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2866496-paddingpolicy?language=objc @@ -137,22 +153,6 @@ func (n_ NNFilterNode) SetPaddingPolicyObject(valueObject objc.IObject) { objc.Call[objc.Void](n_, objc.Sel("setPaddingPolicy:"), valueObject) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2866503-resultstate?language=objc -func (n_ NNFilterNode) ResultState() NNStateNode { - rv := objc.Call[NNStateNode](n_, objc.Sel("resultState")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2866486-resultstates?language=objc -func (n_ NNFilterNode) ResultStates() []NNStateNode { - rv := objc.Call[[]NNStateNode](n_, objc.Sel("resultStates")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnfilternode/2866465-label?language=objc diff --git a/macos/mps/nn_forward_loss.gen.go b/macos/mps/nn_forward_loss.gen.go index dd0bd153..cafb8ed9 100644 --- a/macos/mps/nn_forward_loss.gen.go +++ b/macos/mps/nn_forward_loss.gen.go @@ -22,20 +22,18 @@ type INNForwardLoss interface { ICNNKernel EncodeBatchToCommandBufferSourceImagesLabelsWeightsDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, outStates unsafe.Pointer, isTemporary bool) *foundation.Array EncodeBatchToCommandBufferObjectSourceImagesLabelsWeightsDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, outStates unsafe.Pointer, isTemporary bool) *foundation.Array - EncodeBatchToCommandBufferSourceImagesLabelsWeightsDestinationStatesDestinationImages(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, destinationStates *foundation.Array, destinationImages *foundation.Array) - EncodeBatchToCommandBufferObjectSourceImagesLabelsWeightsDestinationStatesDestinationImages(commandBufferObject objc.IObject, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, destinationStates *foundation.Array, destinationImages *foundation.Array) NumberOfClasses() uint - LossType() CNNLossType - LabelSmoothing() float32 - SetLabelSmoothing(value float32) - ReduceAcrossBatch() bool Weight() float32 SetWeight(value float32) - ReductionType() CNNReductionType Epsilon() float32 SetEpsilon(value float32) Delta() float32 SetDelta(value float32) + ReductionType() CNNReductionType + ReduceAcrossBatch() bool + LossType() CNNLossType + LabelSmoothing() float32 + SetLabelSmoothing(value float32) } // [Full Topic] @@ -133,21 +131,6 @@ func (n_ NNForwardLoss) EncodeBatchToCommandBufferObjectSourceImagesLabelsWeight return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131798-encodebatchtocommandbuffer?language=objc -func (n_ NNForwardLoss) EncodeBatchToCommandBufferSourceImagesLabelsWeightsDestinationStatesDestinationImages(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, destinationStates *foundation.Array, destinationImages *foundation.Array) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:labels:weights:destinationStates:destinationImages:"), po0, sourceImages, labels, weights, destinationStates, destinationImages) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131798-encodebatchtocommandbuffer?language=objc -func (n_ NNForwardLoss) EncodeBatchToCommandBufferObjectSourceImagesLabelsWeightsDestinationStatesDestinationImages(commandBufferObject objc.IObject, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, destinationStates *foundation.Array, destinationImages *foundation.Array) { - objc.Call[objc.Void](n_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:labels:weights:destinationStates:destinationImages:"), commandBufferObject, sourceImages, labels, weights, destinationStates, destinationImages) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131805-numberofclasses?language=objc @@ -158,48 +141,47 @@ func (n_ NNForwardLoss) NumberOfClasses() uint { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131804-losstype?language=objc -func (n_ NNForwardLoss) LossType() CNNLossType { - rv := objc.Call[CNNLossType](n_, objc.Sel("lossType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131807-weight?language=objc +func (n_ NNForwardLoss) Weight() float32 { + rv := objc.Call[float32](n_, objc.Sel("weight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131803-labelsmoothing?language=objc -func (n_ NNForwardLoss) LabelSmoothing() float32 { - rv := objc.Call[float32](n_, objc.Sel("labelSmoothing")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131807-weight?language=objc +func (n_ NNForwardLoss) SetWeight(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setWeight:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131803-labelsmoothing?language=objc -func (n_ NNForwardLoss) SetLabelSmoothing(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setLabelSmoothing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131800-epsilon?language=objc +func (n_ NNForwardLoss) Epsilon() float32 { + rv := objc.Call[float32](n_, objc.Sel("epsilon")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3547985-reduceacrossbatch?language=objc -func (n_ NNForwardLoss) ReduceAcrossBatch() bool { - rv := objc.Call[bool](n_, objc.Sel("reduceAcrossBatch")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131800-epsilon?language=objc +func (n_ NNForwardLoss) SetEpsilon(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setEpsilon:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131807-weight?language=objc -func (n_ NNForwardLoss) Weight() float32 { - rv := objc.Call[float32](n_, objc.Sel("weight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131797-delta?language=objc +func (n_ NNForwardLoss) Delta() float32 { + rv := objc.Call[float32](n_, objc.Sel("delta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131807-weight?language=objc -func (n_ NNForwardLoss) SetWeight(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setWeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131797-delta?language=objc +func (n_ NNForwardLoss) SetDelta(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setDelta:"), value) } // [Full Topic] @@ -212,30 +194,31 @@ func (n_ NNForwardLoss) ReductionType() CNNReductionType { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131800-epsilon?language=objc -func (n_ NNForwardLoss) Epsilon() float32 { - rv := objc.Call[float32](n_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3547985-reduceacrossbatch?language=objc +func (n_ NNForwardLoss) ReduceAcrossBatch() bool { + rv := objc.Call[bool](n_, objc.Sel("reduceAcrossBatch")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131800-epsilon?language=objc -func (n_ NNForwardLoss) SetEpsilon(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setEpsilon:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131804-losstype?language=objc +func (n_ NNForwardLoss) LossType() CNNLossType { + rv := objc.Call[CNNLossType](n_, objc.Sel("lossType")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131797-delta?language=objc -func (n_ NNForwardLoss) Delta() float32 { - rv := objc.Call[float32](n_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131803-labelsmoothing?language=objc +func (n_ NNForwardLoss) LabelSmoothing() float32 { + rv := objc.Call[float32](n_, objc.Sel("labelSmoothing")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131797-delta?language=objc -func (n_ NNForwardLoss) SetDelta(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setDelta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131803-labelsmoothing?language=objc +func (n_ NNForwardLoss) SetLabelSmoothing(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setLabelSmoothing:"), value) } diff --git a/macos/mps/nn_forward_loss_node.gen.go b/macos/mps/nn_forward_loss_node.gen.go index bb7af27c..f1ac0820 100644 --- a/macos/mps/nn_forward_loss_node.gen.go +++ b/macos/mps/nn_forward_loss_node.gen.go @@ -18,17 +18,17 @@ type _NNForwardLossNodeClass struct { // An interface definition for the [NNForwardLossNode] class. type INNForwardLossNode interface { INNFilterNode - Delta() float32 + NumberOfClasses() uint + Weight() float32 PropertyCallBack() NNLossCallbackObject SetPropertyCallBack(value PNNLossCallback) SetPropertyCallBackObject(valueObject objc.IObject) - NumberOfClasses() uint Epsilon() float32 + Delta() float32 ReductionType() CNNReductionType - LabelSmoothing() float32 ReduceAcrossBatch() bool - Weight() float32 LossType() CNNLossType + LabelSmoothing() float32 } // [Full Topic] @@ -44,6 +44,18 @@ func NNForwardLossNodeFrom(ptr unsafe.Pointer) NNForwardLossNode { } } +func (nc _NNForwardLossNodeClass) NodeWithSourcesLossDescriptor(sourceNodes []INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { + rv := objc.Call[NNForwardLossNode](nc, objc.Sel("nodeWithSources:lossDescriptor:"), sourceNodes, descriptor) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131839-nodewithsources?language=objc +func NNForwardLossNode_NodeWithSourcesLossDescriptor(sourceNodes []INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { + return NNForwardLossNodeClass.NodeWithSourcesLossDescriptor(sourceNodes, descriptor) +} + func (nc _NNForwardLossNodeClass) NodeWithSourceLabelsLossDescriptor(source INNImageNode, labels INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { rv := objc.Call[NNForwardLossNode](nc, objc.Sel("nodeWithSource:labels:lossDescriptor:"), source, labels, descriptor) return rv @@ -70,32 +82,6 @@ func NewNNForwardLossNodeWithSourcesLossDescriptor(sourceNodes []INNImageNode, d return instance } -func (n_ NNForwardLossNode) InitWithSourceLabelsWeightsLossDescriptor(source INNImageNode, labels INNImageNode, weights INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { - rv := objc.Call[NNForwardLossNode](n_, objc.Sel("initWithSource:labels:weights:lossDescriptor:"), source, labels, weights, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131833-initwithsource?language=objc -func NewNNForwardLossNodeWithSourceLabelsWeightsLossDescriptor(source INNImageNode, labels INNImageNode, weights INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { - instance := NNForwardLossNodeClass.Alloc().InitWithSourceLabelsWeightsLossDescriptor(source, labels, weights, descriptor) - instance.Autorelease() - return instance -} - -func (nc _NNForwardLossNodeClass) NodeWithSourcesLossDescriptor(sourceNodes []INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { - rv := objc.Call[NNForwardLossNode](nc, objc.Sel("nodeWithSources:lossDescriptor:"), sourceNodes, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131839-nodewithsources?language=objc -func NNForwardLossNode_NodeWithSourcesLossDescriptor(sourceNodes []INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { - return NNForwardLossNodeClass.NodeWithSourcesLossDescriptor(sourceNodes, descriptor) -} - func (n_ NNForwardLossNode) InitWithSourceLabelsLossDescriptor(source INNImageNode, labels INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { rv := objc.Call[NNForwardLossNode](n_, objc.Sel("initWithSource:labels:lossDescriptor:"), source, labels, descriptor) return rv @@ -110,18 +96,6 @@ func NewNNForwardLossNodeWithSourceLabelsLossDescriptor(source INNImageNode, lab return instance } -func (nc _NNForwardLossNodeClass) NodeWithSourceLabelsWeightsLossDescriptor(source INNImageNode, labels INNImageNode, weights INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { - rv := objc.Call[NNForwardLossNode](nc, objc.Sel("nodeWithSource:labels:weights:lossDescriptor:"), source, labels, weights, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131838-nodewithsource?language=objc -func NNForwardLossNode_NodeWithSourceLabelsWeightsLossDescriptor(source INNImageNode, labels INNImageNode, weights INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { - return NNForwardLossNodeClass.NodeWithSourceLabelsWeightsLossDescriptor(source, labels, weights, descriptor) -} - func (nc _NNForwardLossNodeClass) Alloc() NNForwardLossNode { rv := objc.Call[NNForwardLossNode](nc, objc.Sel("alloc")) return rv @@ -144,9 +118,17 @@ func (n_ NNForwardLossNode) Init() NNForwardLossNode { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131826-delta?language=objc -func (n_ NNForwardLossNode) Delta() float32 { - rv := objc.Call[float32](n_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131840-numberofclasses?language=objc +func (n_ NNForwardLossNode) NumberOfClasses() uint { + rv := objc.Call[uint](n_, objc.Sel("numberOfClasses")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131843-weight?language=objc +func (n_ NNForwardLossNode) Weight() float32 { + rv := objc.Call[float32](n_, objc.Sel("weight")) return rv } @@ -173,14 +155,6 @@ func (n_ NNForwardLossNode) SetPropertyCallBackObject(valueObject objc.IObject) objc.Call[objc.Void](n_, objc.Sel("setPropertyCallBack:"), valueObject) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131840-numberofclasses?language=objc -func (n_ NNForwardLossNode) NumberOfClasses() uint { - rv := objc.Call[uint](n_, objc.Sel("numberOfClasses")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131827-epsilon?language=objc @@ -191,17 +165,17 @@ func (n_ NNForwardLossNode) Epsilon() float32 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131842-reductiontype?language=objc -func (n_ NNForwardLossNode) ReductionType() CNNReductionType { - rv := objc.Call[CNNReductionType](n_, objc.Sel("reductionType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131826-delta?language=objc +func (n_ NNForwardLossNode) Delta() float32 { + rv := objc.Call[float32](n_, objc.Sel("delta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131835-labelsmoothing?language=objc -func (n_ NNForwardLossNode) LabelSmoothing() float32 { - rv := objc.Call[float32](n_, objc.Sel("labelSmoothing")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131842-reductiontype?language=objc +func (n_ NNForwardLossNode) ReductionType() CNNReductionType { + rv := objc.Call[CNNReductionType](n_, objc.Sel("reductionType")) return rv } @@ -215,16 +189,16 @@ func (n_ NNForwardLossNode) ReduceAcrossBatch() bool { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131843-weight?language=objc -func (n_ NNForwardLossNode) Weight() float32 { - rv := objc.Call[float32](n_, objc.Sel("weight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131836-losstype?language=objc +func (n_ NNForwardLossNode) LossType() CNNLossType { + rv := objc.Call[CNNLossType](n_, objc.Sel("lossType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131836-losstype?language=objc -func (n_ NNForwardLossNode) LossType() CNNLossType { - rv := objc.Call[CNNLossType](n_, objc.Sel("lossType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131835-labelsmoothing?language=objc +func (n_ NNForwardLossNode) LabelSmoothing() float32 { + rv := objc.Call[float32](n_, objc.Sel("labelSmoothing")) return rv } diff --git a/macos/mps/nn_gradient_state.gen.go b/macos/mps/nn_gradient_state.gen.go index 48359ac8..1e0fa4d6 100644 --- a/macos/mps/nn_gradient_state.gen.go +++ b/macos/mps/nn_gradient_state.gen.go @@ -54,45 +54,16 @@ func (n_ NNGradientState) Init() NNGradientState { return rv } -func (nc _NNGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[NNGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func NNGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNGradientState { - return NNGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (n_ NNGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) NNGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNGradientState](n_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewNNGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) NNGradientState { - instance := NNGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (n_ NNGradientState) InitWithResource(resource metal.PResource) NNGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[NNGradientState](n_, objc.Sel("initWithResource:"), po0) +func (n_ NNGradientState) InitWithResources(resources []metal.PResource) NNGradientState { + rv := objc.Call[NNGradientState](n_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewNNGradientStateWithResource(resource metal.PResource) NNGradientState { - instance := NNGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewNNGradientStateWithResources(resources []metal.PResource) NNGradientState { + instance := NNGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -112,70 +83,30 @@ func NewNNGradientStateWithDeviceBufferSize(device metal.PDevice, bufferSize uin return instance } -func (n_ NNGradientState) InitWithResources(resources []metal.PResource) NNGradientState { - rv := objc.Call[NNGradientState](n_, objc.Sel("initWithResources:"), resources) +func (n_ NNGradientState) InitWithResource(resource metal.PResource) NNGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[NNGradientState](n_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewNNGradientStateWithResources(resources []metal.PResource) NNGradientState { - instance := NNGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewNNGradientStateWithResource(resource metal.PResource) NNGradientState { + instance := NNGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (nc _NNGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) NNGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NNGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func NNGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) NNGradientState { - return NNGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (nc _NNGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) NNGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NNGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func NNGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) NNGradientState { - return NNGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (nc _NNGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) NNGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NNGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func NNGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) NNGradientState { - return NNGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (n_ NNGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) NNGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNGradientState](n_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (nc _NNGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[NNGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewNNGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) NNGradientState { - instance := NNGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func NNGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNGradientState { + return NNGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } diff --git a/macos/mps/nn_gram_matrix_calculation.gen.go b/macos/mps/nn_gram_matrix_calculation.gen.go index 46c44b8e..8cebe999 100644 --- a/macos/mps/nn_gram_matrix_calculation.gen.go +++ b/macos/mps/nn_gram_matrix_calculation.gen.go @@ -51,21 +51,6 @@ func NewNNGramMatrixCalculationWithDevice(device metal.PDevice) NNGramMatrixCalc return instance } -func (n_ NNGramMatrixCalculation) InitWithDeviceAlpha(device metal.PDevice, alpha float32) NNGramMatrixCalculation { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNGramMatrixCalculation](n_, objc.Sel("initWithDevice:alpha:"), po0, alpha) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculation/3114080-initwithdevice?language=objc -func NewNNGramMatrixCalculationWithDeviceAlpha(device metal.PDevice, alpha float32) NNGramMatrixCalculation { - instance := NNGramMatrixCalculationClass.Alloc().InitWithDeviceAlpha(device, alpha) - instance.Autorelease() - return instance -} - func (nc _NNGramMatrixCalculationClass) Alloc() NNGramMatrixCalculation { rv := objc.Call[NNGramMatrixCalculation](nc, objc.Sel("alloc")) return rv diff --git a/macos/mps/nn_gram_matrix_calculation_gradient.gen.go b/macos/mps/nn_gram_matrix_calculation_gradient.gen.go index a4864143..cc890333 100644 --- a/macos/mps/nn_gram_matrix_calculation_gradient.gen.go +++ b/macos/mps/nn_gram_matrix_calculation_gradient.gen.go @@ -51,21 +51,6 @@ func NewNNGramMatrixCalculationGradientWithDevice(device metal.PDevice) NNGramMa return instance } -func (n_ NNGramMatrixCalculationGradient) InitWithDeviceAlpha(device metal.PDevice, alpha float32) NNGramMatrixCalculationGradient { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNGramMatrixCalculationGradient](n_, objc.Sel("initWithDevice:alpha:"), po0, alpha) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationgradient/3114085-initwithdevice?language=objc -func NewNNGramMatrixCalculationGradientWithDeviceAlpha(device metal.PDevice, alpha float32) NNGramMatrixCalculationGradient { - instance := NNGramMatrixCalculationGradientClass.Alloc().InitWithDeviceAlpha(device, alpha) - instance.Autorelease() - return instance -} - func (nc _NNGramMatrixCalculationGradientClass) Alloc() NNGramMatrixCalculationGradient { rv := objc.Call[NNGramMatrixCalculationGradient](nc, objc.Sel("alloc")) return rv diff --git a/macos/mps/nn_gram_matrix_calculation_gradient_node.gen.go b/macos/mps/nn_gram_matrix_calculation_gradient_node.gen.go index 4e14ffba..3ff1b4e1 100644 --- a/macos/mps/nn_gram_matrix_calculation_gradient_node.gen.go +++ b/macos/mps/nn_gram_matrix_calculation_gradient_node.gen.go @@ -34,30 +34,6 @@ func NNGramMatrixCalculationGradientNodeFrom(ptr unsafe.Pointer) NNGramMatrixCal } } -func (nc _NNGramMatrixCalculationGradientNodeClass) NodeWithSourceGradientSourceImageGradientStateAlpha(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, alpha float32) NNGramMatrixCalculationGradientNode { - rv := objc.Call[NNGramMatrixCalculationGradientNode](nc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:alpha:"), sourceGradient, sourceImage, gradientState, alpha) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationgradientnode/3114092-nodewithsourcegradient?language=objc -func NNGramMatrixCalculationGradientNode_NodeWithSourceGradientSourceImageGradientStateAlpha(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, alpha float32) NNGramMatrixCalculationGradientNode { - return NNGramMatrixCalculationGradientNodeClass.NodeWithSourceGradientSourceImageGradientStateAlpha(sourceGradient, sourceImage, gradientState, alpha) -} - -func (nc _NNGramMatrixCalculationGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNGramMatrixCalculationGradientNode { - rv := objc.Call[NNGramMatrixCalculationGradientNode](nc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationgradientnode/3114091-nodewithsourcegradient?language=objc -func NNGramMatrixCalculationGradientNode_NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNGramMatrixCalculationGradientNode { - return NNGramMatrixCalculationGradientNodeClass.NodeWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) -} - func (n_ NNGramMatrixCalculationGradientNode) InitWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNGramMatrixCalculationGradientNode { rv := objc.Call[NNGramMatrixCalculationGradientNode](n_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) return rv @@ -72,18 +48,16 @@ func NewNNGramMatrixCalculationGradientNodeWithSourceGradientSourceImageGradient return instance } -func (n_ NNGramMatrixCalculationGradientNode) InitWithSourceGradientSourceImageGradientStateAlpha(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, alpha float32) NNGramMatrixCalculationGradientNode { - rv := objc.Call[NNGramMatrixCalculationGradientNode](n_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:alpha:"), sourceGradient, sourceImage, gradientState, alpha) +func (nc _NNGramMatrixCalculationGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNGramMatrixCalculationGradientNode { + rv := objc.Call[NNGramMatrixCalculationGradientNode](nc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationgradientnode/3114090-initwithsourcegradient?language=objc -func NewNNGramMatrixCalculationGradientNodeWithSourceGradientSourceImageGradientStateAlpha(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, alpha float32) NNGramMatrixCalculationGradientNode { - instance := NNGramMatrixCalculationGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientStateAlpha(sourceGradient, sourceImage, gradientState, alpha) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationgradientnode/3114091-nodewithsourcegradient?language=objc +func NNGramMatrixCalculationGradientNode_NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNGramMatrixCalculationGradientNode { + return NNGramMatrixCalculationGradientNodeClass.NodeWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) } func (nc _NNGramMatrixCalculationGradientNodeClass) Alloc() NNGramMatrixCalculationGradientNode { diff --git a/macos/mps/nn_gram_matrix_calculation_node.gen.go b/macos/mps/nn_gram_matrix_calculation_node.gen.go index 69e546e7..1a367cb9 100644 --- a/macos/mps/nn_gram_matrix_calculation_node.gen.go +++ b/macos/mps/nn_gram_matrix_calculation_node.gen.go @@ -18,10 +18,10 @@ type _NNGramMatrixCalculationNodeClass struct { // An interface definition for the [NNGramMatrixCalculationNode] class. type INNGramMatrixCalculationNode interface { INNFilterNode - Alpha() float32 PropertyCallBack() NNGramMatrixCallbackObject SetPropertyCallBack(value PNNGramMatrixCallback) SetPropertyCallBackObject(valueObject objc.IObject) + Alpha() float32 } // [Full Topic] @@ -63,32 +63,6 @@ func NewNNGramMatrixCalculationNodeWithSource(sourceNode INNImageNode) NNGramMat return instance } -func (n_ NNGramMatrixCalculationNode) InitWithSourceAlpha(sourceNode INNImageNode, alpha float32) NNGramMatrixCalculationNode { - rv := objc.Call[NNGramMatrixCalculationNode](n_, objc.Sel("initWithSource:alpha:"), sourceNode, alpha) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationnode/3114096-initwithsource?language=objc -func NewNNGramMatrixCalculationNodeWithSourceAlpha(sourceNode INNImageNode, alpha float32) NNGramMatrixCalculationNode { - instance := NNGramMatrixCalculationNodeClass.Alloc().InitWithSourceAlpha(sourceNode, alpha) - instance.Autorelease() - return instance -} - -func (nc _NNGramMatrixCalculationNodeClass) NodeWithSourceAlpha(sourceNode INNImageNode, alpha float32) NNGramMatrixCalculationNode { - rv := objc.Call[NNGramMatrixCalculationNode](nc, objc.Sel("nodeWithSource:alpha:"), sourceNode, alpha) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationnode/3114098-nodewithsource?language=objc -func NNGramMatrixCalculationNode_NodeWithSourceAlpha(sourceNode INNImageNode, alpha float32) NNGramMatrixCalculationNode { - return NNGramMatrixCalculationNodeClass.NodeWithSourceAlpha(sourceNode, alpha) -} - func (nc _NNGramMatrixCalculationNodeClass) Alloc() NNGramMatrixCalculationNode { rv := objc.Call[NNGramMatrixCalculationNode](nc, objc.Sel("alloc")) return rv @@ -109,14 +83,6 @@ func (n_ NNGramMatrixCalculationNode) Init() NNGramMatrixCalculationNode { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationnode/3114094-alpha?language=objc -func (n_ NNGramMatrixCalculationNode) Alpha() float32 { - rv := objc.Call[float32](n_, objc.Sel("alpha")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationnode/3131844-propertycallback?language=objc @@ -139,3 +105,11 @@ func (n_ NNGramMatrixCalculationNode) SetPropertyCallBack(value PNNGramMatrixCal func (n_ NNGramMatrixCalculationNode) SetPropertyCallBackObject(valueObject objc.IObject) { objc.Call[objc.Void](n_, objc.Sel("setPropertyCallBack:"), valueObject) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationnode/3114094-alpha?language=objc +func (n_ NNGramMatrixCalculationNode) Alpha() float32 { + rv := objc.Call[float32](n_, objc.Sel("alpha")) + return rv +} diff --git a/macos/mps/nn_graph.gen.go b/macos/mps/nn_graph.gen.go index ad9b5444..337caa63 100644 --- a/macos/mps/nn_graph.gen.go +++ b/macos/mps/nn_graph.gen.go @@ -20,31 +20,27 @@ type _NNGraphClass struct { // An interface definition for the [NNGraph] class. type INNGraph interface { IKernel - EncodeToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages []IImage) Image - EncodeToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages []IImage) Image EncodeBatchToCommandBufferSourceImagesSourceStates(commandBuffer metal.PCommandBuffer, sourceImages []*foundation.Array, sourceStates []*foundation.Array) *foundation.Array EncodeBatchToCommandBufferObjectSourceImagesSourceStates(commandBufferObject objc.IObject, sourceImages []*foundation.Array, sourceStates []*foundation.Array) *foundation.Array - EncodeToCommandBufferSourceImagesSourceStatesIntermediateImagesDestinationStates(commandBuffer metal.PCommandBuffer, sourceImages []IImage, sourceStates []IState, intermediateImages foundation.IMutableArray, destinationStates foundation.IMutableArray) Image - EncodeToCommandBufferObjectSourceImagesSourceStatesIntermediateImagesDestinationStates(commandBufferObject objc.IObject, sourceImages []IImage, sourceStates []IState, intermediateImages foundation.IMutableArray, destinationStates foundation.IMutableArray) Image - ReloadFromDataSources() ReadCountForSourceStateAtIndex(index uint) uint - ExecuteAsyncWithSourceImagesCompletionHandler(sourceImages []IImage, handler NNGraphCompletionHandler) Image ReadCountForSourceImageAtIndex(index uint) uint - EncodeBatchToCommandBufferSourceImagesSourceStatesIntermediateImagesDestinationStates(commandBuffer metal.PCommandBuffer, sourceImages []*foundation.Array, sourceStates []*foundation.Array, intermediateImages foundation.IMutableArray, destinationStates foundation.IMutableArray) *foundation.Array - EncodeBatchToCommandBufferObjectSourceImagesSourceStatesIntermediateImagesDestinationStates(commandBufferObject objc.IObject, sourceImages []*foundation.Array, sourceStates []*foundation.Array, intermediateImages foundation.IMutableArray, destinationStates foundation.IMutableArray) *foundation.Array + ExecuteAsyncWithSourceImagesCompletionHandler(sourceImages []IImage, handler NNGraphCompletionHandler) Image + EncodeToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages []IImage) Image + EncodeToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages []IImage) Image + ReloadFromDataSources() + IntermediateImageHandles() []HandleObject + SourceStateHandles() []HandleObject ResultStateHandles() []HandleObject + SourceImageHandles() []HandleObject + ResultHandle() HandleObject DestinationImageAllocator() ImageAllocatorObject SetDestinationImageAllocator(value PImageAllocator) SetDestinationImageAllocatorObject(valueObject objc.IObject) - SourceStateHandles() []HandleObject - OutputStateIsTemporary() bool - SetOutputStateIsTemporary(value bool) - IntermediateImageHandles() []HandleObject - ResultHandle() HandleObject - SourceImageHandles() []HandleObject + ResultImageIsNeeded() bool Format() ImageFeatureChannelFormat SetFormat(value ImageFeatureChannelFormat) - ResultImageIsNeeded() bool + OutputStateIsTemporary() bool + SetOutputStateIsTemporary(value bool) } // An optimized representation of a graph of neural network image and filter nodes. [Full Topic] @@ -60,62 +56,6 @@ func NNGraphFrom(ptr unsafe.Pointer) NNGraph { } } -func (n_ NNGraph) InitWithDeviceResultImageResultImageIsNeeded(device metal.PDevice, resultImage INNImageNode, resultIsNeeded bool) NNGraph { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNGraph](n_, objc.Sel("initWithDevice:resultImage:resultImageIsNeeded:"), po0, resultImage, resultIsNeeded) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2953955-initwithdevice?language=objc -func NewNNGraphWithDeviceResultImageResultImageIsNeeded(device metal.PDevice, resultImage INNImageNode, resultIsNeeded bool) NNGraph { - instance := NNGraphClass.Alloc().InitWithDeviceResultImageResultImageIsNeeded(device, resultImage, resultIsNeeded) - instance.Autorelease() - return instance -} - -func (nc _NNGraphClass) GraphWithDeviceResultImagesResultsAreNeeded(device metal.PDevice, resultImages []INNImageNode, areResultsNeeded *bool) NNGraph { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNGraph](nc, objc.Sel("graphWithDevice:resultImages:resultsAreNeeded:"), po0, resultImages, areResultsNeeded) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/3037384-graphwithdevice?language=objc -func NNGraph_GraphWithDeviceResultImagesResultsAreNeeded(device metal.PDevice, resultImages []INNImageNode, areResultsNeeded *bool) NNGraph { - return NNGraphClass.GraphWithDeviceResultImagesResultsAreNeeded(device, resultImages, areResultsNeeded) -} - -func (nc _NNGraphClass) GraphWithDeviceResultImageResultImageIsNeeded(device metal.PDevice, resultImage INNImageNode, resultIsNeeded bool) NNGraph { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNGraph](nc, objc.Sel("graphWithDevice:resultImage:resultImageIsNeeded:"), po0, resultImage, resultIsNeeded) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2953956-graphwithdevice?language=objc -func NNGraph_GraphWithDeviceResultImageResultImageIsNeeded(device metal.PDevice, resultImage INNImageNode, resultIsNeeded bool) NNGraph { - return NNGraphClass.GraphWithDeviceResultImageResultImageIsNeeded(device, resultImage, resultIsNeeded) -} - -func (n_ NNGraph) InitWithDeviceResultImagesResultsAreNeeded(device metal.PDevice, resultImages []INNImageNode, areResultsNeeded *bool) NNGraph { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNGraph](n_, objc.Sel("initWithDevice:resultImages:resultsAreNeeded:"), po0, resultImages, areResultsNeeded) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/3037385-initwithdevice?language=objc -func NewNNGraphWithDeviceResultImagesResultsAreNeeded(device metal.PDevice, resultImages []INNImageNode, areResultsNeeded *bool) NNGraph { - instance := NNGraphClass.Alloc().InitWithDeviceResultImagesResultsAreNeeded(device, resultImages, areResultsNeeded) - instance.Autorelease() - return instance -} - func (nc _NNGraphClass) Alloc() NNGraph { rv := objc.Call[NNGraph](nc, objc.Sel("alloc")) return rv @@ -136,21 +76,6 @@ func (n_ NNGraph) Init() NNGraph { return rv } -func (n_ NNGraph) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNGraph { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNGraph](n_, objc.Sel("copyWithZone:device:"), zone, po1) - return rv -} - -// Makes a copy of this kernel object for a new device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func NNGraph_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNGraph { - instance := NNGraphClass.Alloc().CopyWithZoneDevice(zone, device) - instance.Autorelease() - return instance -} - func (n_ NNGraph) InitWithDevice(device metal.PDevice) NNGraph { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNGraph](n_, objc.Sel("initWithDevice:"), po0) @@ -166,21 +91,19 @@ func NewNNGraphWithDevice(device metal.PDevice) NNGraph { return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867036-encodetocommandbuffer?language=objc -func (n_ NNGraph) EncodeToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages []IImage) Image { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImages:"), po0, sourceImages) +func (n_ NNGraph) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNGraph { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNGraph](n_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867036-encodetocommandbuffer?language=objc -func (n_ NNGraph) EncodeToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages []IImage) Image { - rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImages:"), commandBufferObject, sourceImages) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func NNGraph_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNGraph { + instance := NNGraphClass.Alloc().CopyWithZoneDevice(zone, device) + instance.Autorelease() + return instance } // [Full Topic] @@ -202,66 +125,65 @@ func (n_ NNGraph) EncodeBatchToCommandBufferObjectSourceImagesSourceStates(comma // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867011-encodetocommandbuffer?language=objc -func (n_ NNGraph) EncodeToCommandBufferSourceImagesSourceStatesIntermediateImagesDestinationStates(commandBuffer metal.PCommandBuffer, sourceImages []IImage, sourceStates []IState, intermediateImages foundation.IMutableArray, destinationStates foundation.IMutableArray) Image { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImages:sourceStates:intermediateImages:destinationStates:"), po0, sourceImages, sourceStates, intermediateImages, destinationStates) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/3037387-readcountforsourcestateatindex?language=objc +func (n_ NNGraph) ReadCountForSourceStateAtIndex(index uint) uint { + rv := objc.Call[uint](n_, objc.Sel("readCountForSourceStateAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867011-encodetocommandbuffer?language=objc -func (n_ NNGraph) EncodeToCommandBufferObjectSourceImagesSourceStatesIntermediateImagesDestinationStates(commandBufferObject objc.IObject, sourceImages []IImage, sourceStates []IState, intermediateImages foundation.IMutableArray, destinationStates foundation.IMutableArray) Image { - rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImages:sourceStates:intermediateImages:destinationStates:"), commandBufferObject, sourceImages, sourceStates, intermediateImages, destinationStates) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/3037386-readcountforsourceimageatindex?language=objc +func (n_ NNGraph) ReadCountForSourceImageAtIndex(index uint) uint { + rv := objc.Call[uint](n_, objc.Sel("readCountForSourceImageAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2976512-reloadfromdatasources?language=objc -func (n_ NNGraph) ReloadFromDataSources() { - objc.Call[objc.Void](n_, objc.Sel("reloadFromDataSources")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2890826-executeasyncwithsourceimages?language=objc +func (n_ NNGraph) ExecuteAsyncWithSourceImagesCompletionHandler(sourceImages []IImage, handler NNGraphCompletionHandler) Image { + rv := objc.Call[Image](n_, objc.Sel("executeAsyncWithSourceImages:completionHandler:"), sourceImages, handler) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/3037387-readcountforsourcestateatindex?language=objc -func (n_ NNGraph) ReadCountForSourceStateAtIndex(index uint) uint { - rv := objc.Call[uint](n_, objc.Sel("readCountForSourceStateAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867036-encodetocommandbuffer?language=objc +func (n_ NNGraph) EncodeToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages []IImage) Image { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImages:"), po0, sourceImages) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2890826-executeasyncwithsourceimages?language=objc -func (n_ NNGraph) ExecuteAsyncWithSourceImagesCompletionHandler(sourceImages []IImage, handler NNGraphCompletionHandler) Image { - rv := objc.Call[Image](n_, objc.Sel("executeAsyncWithSourceImages:completionHandler:"), sourceImages, handler) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867036-encodetocommandbuffer?language=objc +func (n_ NNGraph) EncodeToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages []IImage) Image { + rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImages:"), commandBufferObject, sourceImages) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/3037386-readcountforsourceimageatindex?language=objc -func (n_ NNGraph) ReadCountForSourceImageAtIndex(index uint) uint { - rv := objc.Call[uint](n_, objc.Sel("readCountForSourceImageAtIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2976512-reloadfromdatasources?language=objc +func (n_ NNGraph) ReloadFromDataSources() { + objc.Call[objc.Void](n_, objc.Sel("reloadFromDataSources")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2942459-encodebatchtocommandbuffer?language=objc -func (n_ NNGraph) EncodeBatchToCommandBufferSourceImagesSourceStatesIntermediateImagesDestinationStates(commandBuffer metal.PCommandBuffer, sourceImages []*foundation.Array, sourceStates []*foundation.Array, intermediateImages foundation.IMutableArray, destinationStates foundation.IMutableArray) *foundation.Array { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](n_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:sourceStates:intermediateImages:destinationStates:"), po0, sourceImages, sourceStates, intermediateImages, destinationStates) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867000-intermediateimagehandles?language=objc +func (n_ NNGraph) IntermediateImageHandles() []HandleObject { + rv := objc.Call[[]HandleObject](n_, objc.Sel("intermediateImageHandles")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2942459-encodebatchtocommandbuffer?language=objc -func (n_ NNGraph) EncodeBatchToCommandBufferObjectSourceImagesSourceStatesIntermediateImagesDestinationStates(commandBufferObject objc.IObject, sourceImages []*foundation.Array, sourceStates []*foundation.Array, intermediateImages foundation.IMutableArray, destinationStates foundation.IMutableArray) *foundation.Array { - rv := objc.Call[*foundation.Array](n_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:sourceStates:intermediateImages:destinationStates:"), commandBufferObject, sourceImages, sourceStates, intermediateImages, destinationStates) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867056-sourcestatehandles?language=objc +func (n_ NNGraph) SourceStateHandles() []HandleObject { + rv := objc.Call[[]HandleObject](n_, objc.Sel("sourceStateHandles")) return rv } @@ -275,71 +197,48 @@ func (n_ NNGraph) ResultStateHandles() []HandleObject { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2866998-destinationimageallocator?language=objc -func (n_ NNGraph) DestinationImageAllocator() ImageAllocatorObject { - rv := objc.Call[ImageAllocatorObject](n_, objc.Sel("destinationImageAllocator")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867012-sourceimagehandles?language=objc +func (n_ NNGraph) SourceImageHandles() []HandleObject { + rv := objc.Call[[]HandleObject](n_, objc.Sel("sourceImageHandles")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2866998-destinationimageallocator?language=objc -func (n_ NNGraph) SetDestinationImageAllocator(value PImageAllocator) { - po0 := objc.WrapAsProtocol("MPSImageAllocator", value) - objc.Call[objc.Void](n_, objc.Sel("setDestinationImageAllocator:"), po0) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2866998-destinationimageallocator?language=objc -func (n_ NNGraph) SetDestinationImageAllocatorObject(valueObject objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setDestinationImageAllocator:"), valueObject) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867056-sourcestatehandles?language=objc -func (n_ NNGraph) SourceStateHandles() []HandleObject { - rv := objc.Call[[]HandleObject](n_, objc.Sel("sourceStateHandles")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867123-resulthandle?language=objc +func (n_ NNGraph) ResultHandle() HandleObject { + rv := objc.Call[HandleObject](n_, objc.Sel("resultHandle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867094-outputstateistemporary?language=objc -func (n_ NNGraph) OutputStateIsTemporary() bool { - rv := objc.Call[bool](n_, objc.Sel("outputStateIsTemporary")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2866998-destinationimageallocator?language=objc +func (n_ NNGraph) DestinationImageAllocator() ImageAllocatorObject { + rv := objc.Call[ImageAllocatorObject](n_, objc.Sel("destinationImageAllocator")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867094-outputstateistemporary?language=objc -func (n_ NNGraph) SetOutputStateIsTemporary(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setOutputStateIsTemporary:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867000-intermediateimagehandles?language=objc -func (n_ NNGraph) IntermediateImageHandles() []HandleObject { - rv := objc.Call[[]HandleObject](n_, objc.Sel("intermediateImageHandles")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2866998-destinationimageallocator?language=objc +func (n_ NNGraph) SetDestinationImageAllocator(value PImageAllocator) { + po0 := objc.WrapAsProtocol("MPSImageAllocator", value) + objc.Call[objc.Void](n_, objc.Sel("setDestinationImageAllocator:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867123-resulthandle?language=objc -func (n_ NNGraph) ResultHandle() HandleObject { - rv := objc.Call[HandleObject](n_, objc.Sel("resultHandle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2866998-destinationimageallocator?language=objc +func (n_ NNGraph) SetDestinationImageAllocatorObject(valueObject objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setDestinationImageAllocator:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867012-sourceimagehandles?language=objc -func (n_ NNGraph) SourceImageHandles() []HandleObject { - rv := objc.Call[[]HandleObject](n_, objc.Sel("sourceImageHandles")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2953954-resultimageisneeded?language=objc +func (n_ NNGraph) ResultImageIsNeeded() bool { + rv := objc.Call[bool](n_, objc.Sel("resultImageIsNeeded")) return rv } @@ -360,8 +259,15 @@ func (n_ NNGraph) SetFormat(value ImageFeatureChannelFormat) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2953954-resultimageisneeded?language=objc -func (n_ NNGraph) ResultImageIsNeeded() bool { - rv := objc.Call[bool](n_, objc.Sel("resultImageIsNeeded")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867094-outputstateistemporary?language=objc +func (n_ NNGraph) OutputStateIsTemporary() bool { + rv := objc.Call[bool](n_, objc.Sel("outputStateIsTemporary")) return rv } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867094-outputstateistemporary?language=objc +func (n_ NNGraph) SetOutputStateIsTemporary(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setOutputStateIsTemporary:"), value) +} diff --git a/macos/mps/nn_image_node.gen.go b/macos/mps/nn_image_node.gen.go index df148668..9031065a 100644 --- a/macos/mps/nn_image_node.gen.go +++ b/macos/mps/nn_image_node.gen.go @@ -18,20 +18,20 @@ type _NNImageNodeClass struct { // An interface definition for the [NNImageNode] class. type INNImageNode interface { objc.IObject - Format() ImageFeatureChannelFormat - SetFormat(value ImageFeatureChannelFormat) - ImageAllocator() ImageAllocatorObject - SetImageAllocator(value PImageAllocator) - SetImageAllocatorObject(valueObject objc.IObject) Handle() HandleObject SetHandle(value PHandle) SetHandleObject(valueObject objc.IObject) - SynchronizeResource() bool - SetSynchronizeResource(value bool) ExportFromGraph() bool SetExportFromGraph(value bool) StopGradient() bool SetStopGradient(value bool) + SynchronizeResource() bool + SetSynchronizeResource(value bool) + ImageAllocator() ImageAllocatorObject + SetImageAllocator(value PImageAllocator) + SetImageAllocatorObject(valueObject objc.IObject) + Format() ImageFeatureChannelFormat + SetFormat(value ImageFeatureChannelFormat) } // A placeholder node denoting the position of a neural network image in a graph. [Full Topic] @@ -59,30 +59,30 @@ func NNImageNode_ExportedNodeWithHandle(handle objc.IObject) NNImageNode { return NNImageNodeClass.ExportedNodeWithHandle(handle) } -func (n_ NNImageNode) InitWithHandle(handle objc.IObject) NNImageNode { - rv := objc.Call[NNImageNode](n_, objc.Sel("initWithHandle:"), handle) +func (nc _NNImageNodeClass) NodeWithHandle(handle objc.IObject) NNImageNode { + rv := objc.Call[NNImageNode](nc, objc.Sel("nodeWithHandle:"), handle) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866483-initwithhandle?language=objc -func NewNNImageNodeWithHandle(handle objc.IObject) NNImageNode { - instance := NNImageNodeClass.Alloc().InitWithHandle(handle) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866447-nodewithhandle?language=objc +func NNImageNode_NodeWithHandle(handle objc.IObject) NNImageNode { + return NNImageNodeClass.NodeWithHandle(handle) } -func (nc _NNImageNodeClass) NodeWithHandle(handle objc.IObject) NNImageNode { - rv := objc.Call[NNImageNode](nc, objc.Sel("nodeWithHandle:"), handle) +func (n_ NNImageNode) InitWithHandle(handle objc.IObject) NNImageNode { + rv := objc.Call[NNImageNode](n_, objc.Sel("initWithHandle:"), handle) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866447-nodewithhandle?language=objc -func NNImageNode_NodeWithHandle(handle objc.IObject) NNImageNode { - return NNImageNodeClass.NodeWithHandle(handle) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866483-initwithhandle?language=objc +func NewNNImageNodeWithHandle(handle objc.IObject) NNImageNode { + instance := NNImageNodeClass.Alloc().InitWithHandle(handle) + instance.Autorelease() + return instance } func (nc _NNImageNodeClass) Alloc() NNImageNode { @@ -107,63 +107,55 @@ func (n_ NNImageNode) Init() NNImageNode { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866498-format?language=objc -func (n_ NNImageNode) Format() ImageFeatureChannelFormat { - rv := objc.Call[ImageFeatureChannelFormat](n_, objc.Sel("format")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866406-handle?language=objc +func (n_ NNImageNode) Handle() HandleObject { + rv := objc.Call[HandleObject](n_, objc.Sel("handle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866498-format?language=objc -func (n_ NNImageNode) SetFormat(value ImageFeatureChannelFormat) { - objc.Call[objc.Void](n_, objc.Sel("setFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866406-handle?language=objc +func (n_ NNImageNode) SetHandle(value PHandle) { + po0 := objc.WrapAsProtocol("MPSHandle", value) + objc.Call[objc.Void](n_, objc.Sel("setHandle:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866490-imageallocator?language=objc -func (n_ NNImageNode) ImageAllocator() ImageAllocatorObject { - rv := objc.Call[ImageAllocatorObject](n_, objc.Sel("imageAllocator")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866406-handle?language=objc +func (n_ NNImageNode) SetHandleObject(valueObject objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setHandle:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866490-imageallocator?language=objc -func (n_ NNImageNode) SetImageAllocator(value PImageAllocator) { - po0 := objc.WrapAsProtocol("MPSImageAllocator", value) - objc.Call[objc.Void](n_, objc.Sel("setImageAllocator:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866478-exportfromgraph?language=objc +func (n_ NNImageNode) ExportFromGraph() bool { + rv := objc.Call[bool](n_, objc.Sel("exportFromGraph")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866490-imageallocator?language=objc -func (n_ NNImageNode) SetImageAllocatorObject(valueObject objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setImageAllocator:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866478-exportfromgraph?language=objc +func (n_ NNImageNode) SetExportFromGraph(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setExportFromGraph:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866406-handle?language=objc -func (n_ NNImageNode) Handle() HandleObject { - rv := objc.Call[HandleObject](n_, objc.Sel("handle")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/3020689-stopgradient?language=objc +func (n_ NNImageNode) StopGradient() bool { + rv := objc.Call[bool](n_, objc.Sel("stopGradient")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866406-handle?language=objc -func (n_ NNImageNode) SetHandle(value PHandle) { - po0 := objc.WrapAsProtocol("MPSHandle", value) - objc.Call[objc.Void](n_, objc.Sel("setHandle:"), po0) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866406-handle?language=objc -func (n_ NNImageNode) SetHandleObject(valueObject objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setHandle:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/3020689-stopgradient?language=objc +func (n_ NNImageNode) SetStopGradient(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setStopGradient:"), value) } // [Full Topic] @@ -183,30 +175,38 @@ func (n_ NNImageNode) SetSynchronizeResource(value bool) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866478-exportfromgraph?language=objc -func (n_ NNImageNode) ExportFromGraph() bool { - rv := objc.Call[bool](n_, objc.Sel("exportFromGraph")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866490-imageallocator?language=objc +func (n_ NNImageNode) ImageAllocator() ImageAllocatorObject { + rv := objc.Call[ImageAllocatorObject](n_, objc.Sel("imageAllocator")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866478-exportfromgraph?language=objc -func (n_ NNImageNode) SetExportFromGraph(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setExportFromGraph:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866490-imageallocator?language=objc +func (n_ NNImageNode) SetImageAllocator(value PImageAllocator) { + po0 := objc.WrapAsProtocol("MPSImageAllocator", value) + objc.Call[objc.Void](n_, objc.Sel("setImageAllocator:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/3020689-stopgradient?language=objc -func (n_ NNImageNode) StopGradient() bool { - rv := objc.Call[bool](n_, objc.Sel("stopGradient")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866490-imageallocator?language=objc +func (n_ NNImageNode) SetImageAllocatorObject(valueObject objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setImageAllocator:"), valueObject) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866498-format?language=objc +func (n_ NNImageNode) Format() ImageFeatureChannelFormat { + rv := objc.Call[ImageFeatureChannelFormat](n_, objc.Sel("format")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/3020689-stopgradient?language=objc -func (n_ NNImageNode) SetStopGradient(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setStopGradient:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866498-format?language=objc +func (n_ NNImageNode) SetFormat(value ImageFeatureChannelFormat) { + objc.Call[objc.Void](n_, objc.Sel("setFormat:"), value) } diff --git a/macos/mps/nn_initial_gradient_node.gen.go b/macos/mps/nn_initial_gradient_node.gen.go index 15034fbb..4b9545fb 100644 --- a/macos/mps/nn_initial_gradient_node.gen.go +++ b/macos/mps/nn_initial_gradient_node.gen.go @@ -33,30 +33,30 @@ func NNInitialGradientNodeFrom(ptr unsafe.Pointer) NNInitialGradientNode { } } -func (n_ NNInitialGradientNode) InitWithSource(source INNImageNode) NNInitialGradientNode { - rv := objc.Call[NNInitialGradientNode](n_, objc.Sel("initWithSource:"), source) +func (nc _NNInitialGradientNodeClass) NodeWithSource(source INNImageNode) NNInitialGradientNode { + rv := objc.Call[NNInitialGradientNode](nc, objc.Sel("nodeWithSource:"), source) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnninitialgradientnode/3131848-initwithsource?language=objc -func NewNNInitialGradientNodeWithSource(source INNImageNode) NNInitialGradientNode { - instance := NNInitialGradientNodeClass.Alloc().InitWithSource(source) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnninitialgradientnode/3131849-nodewithsource?language=objc +func NNInitialGradientNode_NodeWithSource(source INNImageNode) NNInitialGradientNode { + return NNInitialGradientNodeClass.NodeWithSource(source) } -func (nc _NNInitialGradientNodeClass) NodeWithSource(source INNImageNode) NNInitialGradientNode { - rv := objc.Call[NNInitialGradientNode](nc, objc.Sel("nodeWithSource:"), source) +func (n_ NNInitialGradientNode) InitWithSource(source INNImageNode) NNInitialGradientNode { + rv := objc.Call[NNInitialGradientNode](n_, objc.Sel("initWithSource:"), source) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnninitialgradientnode/3131849-nodewithsource?language=objc -func NNInitialGradientNode_NodeWithSource(source INNImageNode) NNInitialGradientNode { - return NNInitialGradientNodeClass.NodeWithSource(source) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnninitialgradientnode/3131848-initwithsource?language=objc +func NewNNInitialGradientNodeWithSource(source INNImageNode) NNInitialGradientNode { + instance := NNInitialGradientNodeClass.Alloc().InitWithSource(source) + instance.Autorelease() + return instance } func (nc _NNInitialGradientNodeClass) Alloc() NNInitialGradientNode { diff --git a/macos/mps/nn_lanczos_scale_node.gen.go b/macos/mps/nn_lanczos_scale_node.gen.go index 01e80cad..6214735f 100644 --- a/macos/mps/nn_lanczos_scale_node.gen.go +++ b/macos/mps/nn_lanczos_scale_node.gen.go @@ -54,35 +54,6 @@ func (n_ NNLanczosScaleNode) Init() NNLanczosScaleNode { return rv } -func (n_ NNLanczosScaleNode) InitWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNLanczosScaleNode { - rv := objc.Call[NNLanczosScaleNode](n_, objc.Sel("initWithSource:outputSize:"), sourceNode, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915285-initwithsource?language=objc -func NewNNLanczosScaleNodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNLanczosScaleNode { - instance := NNLanczosScaleNodeClass.Alloc().InitWithSourceOutputSize(sourceNode, size) - instance.Autorelease() - return instance -} - -func (n_ NNLanczosScaleNode) InitWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNLanczosScaleNode { - po1 := objc.WrapAsProtocol("MPSImageTransformProvider", transformProvider) - rv := objc.Call[NNLanczosScaleNode](n_, objc.Sel("initWithSource:transformProvider:outputSize:"), sourceNode, po1, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915278-initwithsource?language=objc -func NewNNLanczosScaleNodeWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNLanczosScaleNode { - instance := NNLanczosScaleNodeClass.Alloc().InitWithSourceTransformProviderOutputSize(sourceNode, transformProvider, size) - instance.Autorelease() - return instance -} - func (nc _NNLanczosScaleNodeClass) NodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNLanczosScaleNode { rv := objc.Call[NNLanczosScaleNode](nc, objc.Sel("nodeWithSource:outputSize:"), sourceNode, size) return rv @@ -95,15 +66,16 @@ func NNLanczosScaleNode_NodeWithSourceOutputSize(sourceNode INNImageNode, size m return NNLanczosScaleNodeClass.NodeWithSourceOutputSize(sourceNode, size) } -func (nc _NNLanczosScaleNodeClass) NodeWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNLanczosScaleNode { - po1 := objc.WrapAsProtocol("MPSImageTransformProvider", transformProvider) - rv := objc.Call[NNLanczosScaleNode](nc, objc.Sel("nodeWithSource:transformProvider:outputSize:"), sourceNode, po1, size) +func (n_ NNLanczosScaleNode) InitWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNLanczosScaleNode { + rv := objc.Call[NNLanczosScaleNode](n_, objc.Sel("initWithSource:outputSize:"), sourceNode, size) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915286-nodewithsource?language=objc -func NNLanczosScaleNode_NodeWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNLanczosScaleNode { - return NNLanczosScaleNodeClass.NodeWithSourceTransformProviderOutputSize(sourceNode, transformProvider, size) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915285-initwithsource?language=objc +func NewNNLanczosScaleNodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNLanczosScaleNode { + instance := NNLanczosScaleNodeClass.Alloc().InitWithSourceOutputSize(sourceNode, size) + instance.Autorelease() + return instance } diff --git a/macos/mps/nn_local_correlation.gen.go b/macos/mps/nn_local_correlation.gen.go index 2d8fe540..30181c79 100644 --- a/macos/mps/nn_local_correlation.gen.go +++ b/macos/mps/nn_local_correlation.gen.go @@ -19,14 +19,14 @@ type _NNLocalCorrelationClass struct { // An interface definition for the [NNLocalCorrelation] class. type INNLocalCorrelation interface { INNReduceBinary - WindowInY() uint - SetWindowInY(value uint) - WindowInX() uint - SetWindowInX(value uint) StrideInX() uint SetStrideInX(value uint) StrideInY() uint SetStrideInY(value uint) + WindowInX() uint + SetWindowInX(value uint) + WindowInY() uint + SetWindowInY(value uint) } // [Full Topic] @@ -57,21 +57,6 @@ func NewNNLocalCorrelationWithDevice(device metal.PDevice) NNLocalCorrelation { return instance } -func (n_ NNLocalCorrelation) InitWithDeviceWindowInXWindowInYStrideInXStrideInY(device metal.PDevice, windowInX uint, windowInY uint, strideInX uint, strideInY uint) NNLocalCorrelation { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNLocalCorrelation](n_, objc.Sel("initWithDevice:windowInX:windowInY:strideInX:strideInY:"), po0, windowInX, windowInY, strideInX, strideInY) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131876-initwithdevice?language=objc -func NewNNLocalCorrelationWithDeviceWindowInXWindowInYStrideInXStrideInY(device metal.PDevice, windowInX uint, windowInY uint, strideInX uint, strideInY uint) NNLocalCorrelation { - instance := NNLocalCorrelationClass.Alloc().InitWithDeviceWindowInXWindowInYStrideInXStrideInY(device, windowInX, windowInY, strideInX, strideInY) - instance.Autorelease() - return instance -} - func (nc _NNLocalCorrelationClass) Alloc() NNLocalCorrelation { rv := objc.Call[NNLocalCorrelation](nc, objc.Sel("alloc")) return rv @@ -109,60 +94,60 @@ func NNLocalCorrelation_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131880-windowiny?language=objc -func (n_ NNLocalCorrelation) WindowInY() uint { - rv := objc.Call[uint](n_, objc.Sel("windowInY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131877-strideinx?language=objc +func (n_ NNLocalCorrelation) StrideInX() uint { + rv := objc.Call[uint](n_, objc.Sel("strideInX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131880-windowiny?language=objc -func (n_ NNLocalCorrelation) SetWindowInY(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setWindowInY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131877-strideinx?language=objc +func (n_ NNLocalCorrelation) SetStrideInX(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setStrideInX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131879-windowinx?language=objc -func (n_ NNLocalCorrelation) WindowInX() uint { - rv := objc.Call[uint](n_, objc.Sel("windowInX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131878-strideiny?language=objc +func (n_ NNLocalCorrelation) StrideInY() uint { + rv := objc.Call[uint](n_, objc.Sel("strideInY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131879-windowinx?language=objc -func (n_ NNLocalCorrelation) SetWindowInX(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setWindowInX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131878-strideiny?language=objc +func (n_ NNLocalCorrelation) SetStrideInY(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setStrideInY:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131877-strideinx?language=objc -func (n_ NNLocalCorrelation) StrideInX() uint { - rv := objc.Call[uint](n_, objc.Sel("strideInX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131879-windowinx?language=objc +func (n_ NNLocalCorrelation) WindowInX() uint { + rv := objc.Call[uint](n_, objc.Sel("windowInX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131877-strideinx?language=objc -func (n_ NNLocalCorrelation) SetStrideInX(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setStrideInX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131879-windowinx?language=objc +func (n_ NNLocalCorrelation) SetWindowInX(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setWindowInX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131878-strideiny?language=objc -func (n_ NNLocalCorrelation) StrideInY() uint { - rv := objc.Call[uint](n_, objc.Sel("strideInY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131880-windowiny?language=objc +func (n_ NNLocalCorrelation) WindowInY() uint { + rv := objc.Call[uint](n_, objc.Sel("windowInY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131878-strideiny?language=objc -func (n_ NNLocalCorrelation) SetStrideInY(value uint) { - objc.Call[objc.Void](n_, objc.Sel("setStrideInY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlocalcorrelation/3131880-windowiny?language=objc +func (n_ NNLocalCorrelation) SetWindowInY(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setWindowInY:"), value) } diff --git a/macos/mps/nn_loss_gradient.gen.go b/macos/mps/nn_loss_gradient.gen.go index 616aeaa9..45889e54 100644 --- a/macos/mps/nn_loss_gradient.gen.go +++ b/macos/mps/nn_loss_gradient.gen.go @@ -22,22 +22,20 @@ type INNLossGradient interface { ICNNBinaryKernel EncodeBatchToCommandBufferSourceGradientsSourceImagesLabelsWeightsSourceStatesDestinationGradients(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, sourceStates *foundation.Array, destinationGradients *foundation.Array) EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesLabelsWeightsSourceStatesDestinationGradients(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, sourceStates *foundation.Array, destinationGradients *foundation.Array) - EncodeBatchToCommandBufferSourceGradientsSourceImagesLabelsWeightsSourceStates(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, sourceStates *foundation.Array) *foundation.Array - EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesLabelsWeightsSourceStates(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, sourceStates *foundation.Array) *foundation.Array - LossType() CNNLossType + NumberOfClasses() uint Weight() float32 SetWeight(value float32) - NumberOfClasses() uint - ReductionType() CNNReductionType + Epsilon() float32 + SetEpsilon(value float32) + Delta() float32 + SetDelta(value float32) ComputeLabelGradients() bool SetComputeLabelGradients(value bool) + ReductionType() CNNReductionType + ReduceAcrossBatch() bool + LossType() CNNLossType LabelSmoothing() float32 SetLabelSmoothing(value float32) - Delta() float32 - SetDelta(value float32) - Epsilon() float32 - SetEpsilon(value float32) - ReduceAcrossBatch() bool } // [Full Topic] @@ -135,58 +133,55 @@ func (n_ NNLossGradient) EncodeBatchToCommandBufferObjectSourceGradientsSourceIm // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131813-encodebatchtocommandbuffer?language=objc -func (n_ NNLossGradient) EncodeBatchToCommandBufferSourceGradientsSourceImagesLabelsWeightsSourceStates(commandBuffer metal.PCommandBuffer, sourceGradients *foundation.Array, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, sourceStates *foundation.Array) *foundation.Array { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](n_, objc.Sel("encodeBatchToCommandBuffer:sourceGradients:sourceImages:labels:weights:sourceStates:"), po0, sourceGradients, sourceImages, labels, weights, sourceStates) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131820-numberofclasses?language=objc +func (n_ NNLossGradient) NumberOfClasses() uint { + rv := objc.Call[uint](n_, objc.Sel("numberOfClasses")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131813-encodebatchtocommandbuffer?language=objc -func (n_ NNLossGradient) EncodeBatchToCommandBufferObjectSourceGradientsSourceImagesLabelsWeightsSourceStates(commandBufferObject objc.IObject, sourceGradients *foundation.Array, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, sourceStates *foundation.Array) *foundation.Array { - rv := objc.Call[*foundation.Array](n_, objc.Sel("encodeBatchToCommandBuffer:sourceGradients:sourceImages:labels:weights:sourceStates:"), commandBufferObject, sourceGradients, sourceImages, labels, weights, sourceStates) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131822-weight?language=objc +func (n_ NNLossGradient) Weight() float32 { + rv := objc.Call[float32](n_, objc.Sel("weight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131819-losstype?language=objc -func (n_ NNLossGradient) LossType() CNNLossType { - rv := objc.Call[CNNLossType](n_, objc.Sel("lossType")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131822-weight?language=objc +func (n_ NNLossGradient) SetWeight(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setWeight:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131822-weight?language=objc -func (n_ NNLossGradient) Weight() float32 { - rv := objc.Call[float32](n_, objc.Sel("weight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131815-epsilon?language=objc +func (n_ NNLossGradient) Epsilon() float32 { + rv := objc.Call[float32](n_, objc.Sel("epsilon")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131822-weight?language=objc -func (n_ NNLossGradient) SetWeight(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setWeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131815-epsilon?language=objc +func (n_ NNLossGradient) SetEpsilon(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setEpsilon:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131820-numberofclasses?language=objc -func (n_ NNLossGradient) NumberOfClasses() uint { - rv := objc.Call[uint](n_, objc.Sel("numberOfClasses")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131812-delta?language=objc +func (n_ NNLossGradient) Delta() float32 { + rv := objc.Call[float32](n_, objc.Sel("delta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131821-reductiontype?language=objc -func (n_ NNLossGradient) ReductionType() CNNReductionType { - rv := objc.Call[CNNReductionType](n_, objc.Sel("reductionType")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131812-delta?language=objc +func (n_ NNLossGradient) SetDelta(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setDelta:"), value) } // [Full Topic] @@ -206,53 +201,39 @@ func (n_ NNLossGradient) SetComputeLabelGradients(value bool) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131818-labelsmoothing?language=objc -func (n_ NNLossGradient) LabelSmoothing() float32 { - rv := objc.Call[float32](n_, objc.Sel("labelSmoothing")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131821-reductiontype?language=objc +func (n_ NNLossGradient) ReductionType() CNNReductionType { + rv := objc.Call[CNNReductionType](n_, objc.Sel("reductionType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131818-labelsmoothing?language=objc -func (n_ NNLossGradient) SetLabelSmoothing(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setLabelSmoothing:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131812-delta?language=objc -func (n_ NNLossGradient) Delta() float32 { - rv := objc.Call[float32](n_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3547986-reduceacrossbatch?language=objc +func (n_ NNLossGradient) ReduceAcrossBatch() bool { + rv := objc.Call[bool](n_, objc.Sel("reduceAcrossBatch")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131812-delta?language=objc -func (n_ NNLossGradient) SetDelta(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setDelta:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131815-epsilon?language=objc -func (n_ NNLossGradient) Epsilon() float32 { - rv := objc.Call[float32](n_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131819-losstype?language=objc +func (n_ NNLossGradient) LossType() CNNLossType { + rv := objc.Call[CNNLossType](n_, objc.Sel("lossType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131815-epsilon?language=objc -func (n_ NNLossGradient) SetEpsilon(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setEpsilon:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131818-labelsmoothing?language=objc +func (n_ NNLossGradient) LabelSmoothing() float32 { + rv := objc.Call[float32](n_, objc.Sel("labelSmoothing")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3547986-reduceacrossbatch?language=objc -func (n_ NNLossGradient) ReduceAcrossBatch() bool { - rv := objc.Call[bool](n_, objc.Sel("reduceAcrossBatch")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131818-labelsmoothing?language=objc +func (n_ NNLossGradient) SetLabelSmoothing(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setLabelSmoothing:"), value) } diff --git a/macos/mps/nn_loss_gradient_node.gen.go b/macos/mps/nn_loss_gradient_node.gen.go index 60a9f21c..84013eb0 100644 --- a/macos/mps/nn_loss_gradient_node.gen.go +++ b/macos/mps/nn_loss_gradient_node.gen.go @@ -18,17 +18,17 @@ type _NNLossGradientNodeClass struct { // An interface definition for the [NNLossGradientNode] class. type INNLossGradientNode interface { INNGradientFilterNode + NumberOfClasses() uint + Weight() float32 + IsLabelsGradientFilter() bool PropertyCallBack() NNLossCallbackObject SetPropertyCallBack(value PNNLossCallback) SetPropertyCallBackObject(valueObject objc.IObject) - LossType() CNNLossType - NumberOfClasses() uint - IsLabelsGradientFilter() bool - Weight() float32 - ReductionType() CNNReductionType - Delta() float32 Epsilon() float32 + Delta() float32 + ReductionType() CNNReductionType ReduceAcrossBatch() bool + LossType() CNNLossType LabelSmoothing() float32 } @@ -45,6 +45,18 @@ func NNLossGradientNodeFrom(ptr unsafe.Pointer) NNLossGradientNode { } } +func (nc _NNLossGradientNodeClass) NodeWithSourcesGradientStateLossDescriptorIsLabelsGradientFilter(sourceNodes []INNImageNode, gradientState INNGradientStateNode, descriptor ICNNLossDescriptor, isLabelsGradientFilter bool) NNLossGradientNode { + rv := objc.Call[NNLossGradientNode](nc, objc.Sel("nodeWithSources:gradientState:lossDescriptor:isLabelsGradientFilter:"), sourceNodes, gradientState, descriptor, isLabelsGradientFilter) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131863-nodewithsources?language=objc +func NNLossGradientNode_NodeWithSourcesGradientStateLossDescriptorIsLabelsGradientFilter(sourceNodes []INNImageNode, gradientState INNGradientStateNode, descriptor ICNNLossDescriptor, isLabelsGradientFilter bool) NNLossGradientNode { + return NNLossGradientNodeClass.NodeWithSourcesGradientStateLossDescriptorIsLabelsGradientFilter(sourceNodes, gradientState, descriptor, isLabelsGradientFilter) +} + func (n_ NNLossGradientNode) InitWithSourceGradientSourceImageLabelsGradientStateLossDescriptorIsLabelsGradientFilter(sourceGradient INNImageNode, sourceImage INNImageNode, labels INNImageNode, gradientState INNGradientStateNode, descriptor ICNNLossDescriptor, isLabelsGradientFilter bool) NNLossGradientNode { rv := objc.Call[NNLossGradientNode](n_, objc.Sel("initWithSourceGradient:sourceImage:labels:gradientState:lossDescriptor:isLabelsGradientFilter:"), sourceGradient, sourceImage, labels, gradientState, descriptor, isLabelsGradientFilter) return rv @@ -71,44 +83,6 @@ func NNLossGradientNode_NodeWithSourceGradientSourceImageLabelsGradientStateLoss return NNLossGradientNodeClass.NodeWithSourceGradientSourceImageLabelsGradientStateLossDescriptorIsLabelsGradientFilter(sourceGradient, sourceImage, labels, gradientState, descriptor, isLabelsGradientFilter) } -func (n_ NNLossGradientNode) InitWithSourceGradientSourceImageLabelsWeightsGradientStateLossDescriptorIsLabelsGradientFilter(sourceGradient INNImageNode, sourceImage INNImageNode, labels INNImageNode, weights INNImageNode, gradientState INNGradientStateNode, descriptor ICNNLossDescriptor, isLabelsGradientFilter bool) NNLossGradientNode { - rv := objc.Call[NNLossGradientNode](n_, objc.Sel("initWithSourceGradient:sourceImage:labels:weights:gradientState:lossDescriptor:isLabelsGradientFilter:"), sourceGradient, sourceImage, labels, weights, gradientState, descriptor, isLabelsGradientFilter) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131856-initwithsourcegradient?language=objc -func NewNNLossGradientNodeWithSourceGradientSourceImageLabelsWeightsGradientStateLossDescriptorIsLabelsGradientFilter(sourceGradient INNImageNode, sourceImage INNImageNode, labels INNImageNode, weights INNImageNode, gradientState INNGradientStateNode, descriptor ICNNLossDescriptor, isLabelsGradientFilter bool) NNLossGradientNode { - instance := NNLossGradientNodeClass.Alloc().InitWithSourceGradientSourceImageLabelsWeightsGradientStateLossDescriptorIsLabelsGradientFilter(sourceGradient, sourceImage, labels, weights, gradientState, descriptor, isLabelsGradientFilter) - instance.Autorelease() - return instance -} - -func (nc _NNLossGradientNodeClass) NodeWithSourceGradientSourceImageLabelsWeightsGradientStateLossDescriptorIsLabelsGradientFilter(sourceGradient INNImageNode, sourceImage INNImageNode, labels INNImageNode, weights INNImageNode, gradientState INNGradientStateNode, descriptor ICNNLossDescriptor, isLabelsGradientFilter bool) NNLossGradientNode { - rv := objc.Call[NNLossGradientNode](nc, objc.Sel("nodeWithSourceGradient:sourceImage:labels:weights:gradientState:lossDescriptor:isLabelsGradientFilter:"), sourceGradient, sourceImage, labels, weights, gradientState, descriptor, isLabelsGradientFilter) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131862-nodewithsourcegradient?language=objc -func NNLossGradientNode_NodeWithSourceGradientSourceImageLabelsWeightsGradientStateLossDescriptorIsLabelsGradientFilter(sourceGradient INNImageNode, sourceImage INNImageNode, labels INNImageNode, weights INNImageNode, gradientState INNGradientStateNode, descriptor ICNNLossDescriptor, isLabelsGradientFilter bool) NNLossGradientNode { - return NNLossGradientNodeClass.NodeWithSourceGradientSourceImageLabelsWeightsGradientStateLossDescriptorIsLabelsGradientFilter(sourceGradient, sourceImage, labels, weights, gradientState, descriptor, isLabelsGradientFilter) -} - -func (nc _NNLossGradientNodeClass) NodeWithSourcesGradientStateLossDescriptorIsLabelsGradientFilter(sourceNodes []INNImageNode, gradientState INNGradientStateNode, descriptor ICNNLossDescriptor, isLabelsGradientFilter bool) NNLossGradientNode { - rv := objc.Call[NNLossGradientNode](nc, objc.Sel("nodeWithSources:gradientState:lossDescriptor:isLabelsGradientFilter:"), sourceNodes, gradientState, descriptor, isLabelsGradientFilter) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131863-nodewithsources?language=objc -func NNLossGradientNode_NodeWithSourcesGradientStateLossDescriptorIsLabelsGradientFilter(sourceNodes []INNImageNode, gradientState INNGradientStateNode, descriptor ICNNLossDescriptor, isLabelsGradientFilter bool) NNLossGradientNode { - return NNLossGradientNodeClass.NodeWithSourcesGradientStateLossDescriptorIsLabelsGradientFilter(sourceNodes, gradientState, descriptor, isLabelsGradientFilter) -} - func (n_ NNLossGradientNode) InitWithSourcesGradientStateLossDescriptorIsLabelsGradientFilter(sourceNodes []INNImageNode, gradientState INNGradientStateNode, descriptor ICNNLossDescriptor, isLabelsGradientFilter bool) NNLossGradientNode { rv := objc.Call[NNLossGradientNode](n_, objc.Sel("initWithSources:gradientState:lossDescriptor:isLabelsGradientFilter:"), sourceNodes, gradientState, descriptor, isLabelsGradientFilter) return rv @@ -145,64 +119,56 @@ func (n_ NNLossGradientNode) Init() NNLossGradientNode { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131865-propertycallback?language=objc -func (n_ NNLossGradientNode) PropertyCallBack() NNLossCallbackObject { - rv := objc.Call[NNLossCallbackObject](n_, objc.Sel("propertyCallBack")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131864-numberofclasses?language=objc +func (n_ NNLossGradientNode) NumberOfClasses() uint { + rv := objc.Call[uint](n_, objc.Sel("numberOfClasses")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131865-propertycallback?language=objc -func (n_ NNLossGradientNode) SetPropertyCallBack(value PNNLossCallback) { - po0 := objc.WrapAsProtocol("MPSNNLossCallback", value) - objc.Call[objc.Void](n_, objc.Sel("setPropertyCallBack:"), po0) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131865-propertycallback?language=objc -func (n_ NNLossGradientNode) SetPropertyCallBackObject(valueObject objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setPropertyCallBack:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131867-weight?language=objc +func (n_ NNLossGradientNode) Weight() float32 { + rv := objc.Call[float32](n_, objc.Sel("weight")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131860-losstype?language=objc -func (n_ NNLossGradientNode) LossType() CNNLossType { - rv := objc.Call[CNNLossType](n_, objc.Sel("lossType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131858-islabelsgradientfilter?language=objc +func (n_ NNLossGradientNode) IsLabelsGradientFilter() bool { + rv := objc.Call[bool](n_, objc.Sel("isLabelsGradientFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131864-numberofclasses?language=objc -func (n_ NNLossGradientNode) NumberOfClasses() uint { - rv := objc.Call[uint](n_, objc.Sel("numberOfClasses")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131865-propertycallback?language=objc +func (n_ NNLossGradientNode) PropertyCallBack() NNLossCallbackObject { + rv := objc.Call[NNLossCallbackObject](n_, objc.Sel("propertyCallBack")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131858-islabelsgradientfilter?language=objc -func (n_ NNLossGradientNode) IsLabelsGradientFilter() bool { - rv := objc.Call[bool](n_, objc.Sel("isLabelsGradientFilter")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131865-propertycallback?language=objc +func (n_ NNLossGradientNode) SetPropertyCallBack(value PNNLossCallback) { + po0 := objc.WrapAsProtocol("MPSNNLossCallback", value) + objc.Call[objc.Void](n_, objc.Sel("setPropertyCallBack:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131867-weight?language=objc -func (n_ NNLossGradientNode) Weight() float32 { - rv := objc.Call[float32](n_, objc.Sel("weight")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131865-propertycallback?language=objc +func (n_ NNLossGradientNode) SetPropertyCallBackObject(valueObject objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setPropertyCallBack:"), valueObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131866-reductiontype?language=objc -func (n_ NNLossGradientNode) ReductionType() CNNReductionType { - rv := objc.Call[CNNReductionType](n_, objc.Sel("reductionType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131854-epsilon?language=objc +func (n_ NNLossGradientNode) Epsilon() float32 { + rv := objc.Call[float32](n_, objc.Sel("epsilon")) return rv } @@ -216,9 +182,9 @@ func (n_ NNLossGradientNode) Delta() float32 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131854-epsilon?language=objc -func (n_ NNLossGradientNode) Epsilon() float32 { - rv := objc.Call[float32](n_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131866-reductiontype?language=objc +func (n_ NNLossGradientNode) ReductionType() CNNReductionType { + rv := objc.Call[CNNReductionType](n_, objc.Sel("reductionType")) return rv } @@ -230,6 +196,14 @@ func (n_ NNLossGradientNode) ReduceAcrossBatch() bool { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131860-losstype?language=objc +func (n_ NNLossGradientNode) LossType() CNNLossType { + rv := objc.Call[CNNLossType](n_, objc.Sel("lossType")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131859-labelsmoothing?language=objc diff --git a/macos/mps/nn_multiary_gradient_state.gen.go b/macos/mps/nn_multiary_gradient_state.gen.go index 3c5cd0ac..d5cea550 100644 --- a/macos/mps/nn_multiary_gradient_state.gen.go +++ b/macos/mps/nn_multiary_gradient_state.gen.go @@ -54,45 +54,16 @@ func (n_ NNMultiaryGradientState) Init() NNMultiaryGradientState { return rv } -func (nc _NNMultiaryGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNMultiaryGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[NNMultiaryGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func NNMultiaryGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNMultiaryGradientState { - return NNMultiaryGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (n_ NNMultiaryGradientState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) NNMultiaryGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNMultiaryGradientState](n_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewNNMultiaryGradientStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) NNMultiaryGradientState { - instance := NNMultiaryGradientStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (n_ NNMultiaryGradientState) InitWithResource(resource metal.PResource) NNMultiaryGradientState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[NNMultiaryGradientState](n_, objc.Sel("initWithResource:"), po0) +func (n_ NNMultiaryGradientState) InitWithResources(resources []metal.PResource) NNMultiaryGradientState { + rv := objc.Call[NNMultiaryGradientState](n_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewNNMultiaryGradientStateWithResource(resource metal.PResource) NNMultiaryGradientState { - instance := NNMultiaryGradientStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewNNMultiaryGradientStateWithResources(resources []metal.PResource) NNMultiaryGradientState { + instance := NNMultiaryGradientStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -112,70 +83,30 @@ func NewNNMultiaryGradientStateWithDeviceBufferSize(device metal.PDevice, buffer return instance } -func (n_ NNMultiaryGradientState) InitWithResources(resources []metal.PResource) NNMultiaryGradientState { - rv := objc.Call[NNMultiaryGradientState](n_, objc.Sel("initWithResources:"), resources) +func (n_ NNMultiaryGradientState) InitWithResource(resource metal.PResource) NNMultiaryGradientState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[NNMultiaryGradientState](n_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewNNMultiaryGradientStateWithResources(resources []metal.PResource) NNMultiaryGradientState { - instance := NNMultiaryGradientStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewNNMultiaryGradientStateWithResource(resource metal.PResource) NNMultiaryGradientState { + instance := NNMultiaryGradientStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (nc _NNMultiaryGradientStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) NNMultiaryGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NNMultiaryGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func NNMultiaryGradientState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) NNMultiaryGradientState { - return NNMultiaryGradientStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (nc _NNMultiaryGradientStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) NNMultiaryGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NNMultiaryGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func NNMultiaryGradientState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) NNMultiaryGradientState { - return NNMultiaryGradientStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (nc _NNMultiaryGradientStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) NNMultiaryGradientState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[NNMultiaryGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func NNMultiaryGradientState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) NNMultiaryGradientState { - return NNMultiaryGradientStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (n_ NNMultiaryGradientState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) NNMultiaryGradientState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNMultiaryGradientState](n_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (nc _NNMultiaryGradientStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNMultiaryGradientState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[NNMultiaryGradientState](nc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewNNMultiaryGradientStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) NNMultiaryGradientState { - instance := NNMultiaryGradientStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func NNMultiaryGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNMultiaryGradientState { + return NNMultiaryGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } diff --git a/macos/mps/nn_multiplication_node.gen.go b/macos/mps/nn_multiplication_node.gen.go index 3cd16127..33528974 100644 --- a/macos/mps/nn_multiplication_node.gen.go +++ b/macos/mps/nn_multiplication_node.gen.go @@ -65,20 +65,6 @@ func NNMultiplicationNode_NodeWithSources(sourceNodes []INNImageNode) NNMultipli return NNMultiplicationNodeClass.NodeWithSources(sourceNodes) } -func (n_ NNMultiplicationNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNMultiplicationNode { - rv := objc.Call[NNMultiplicationNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc -func NewNNMultiplicationNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNMultiplicationNode { - instance := NNMultiplicationNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) - instance.Autorelease() - return instance -} - func (nc _NNMultiplicationNodeClass) NodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNMultiplicationNode { rv := objc.Call[NNMultiplicationNode](nc, objc.Sel("nodeWithLeftSource:rightSource:"), left, right) return rv @@ -104,3 +90,17 @@ func NewNNMultiplicationNodeWithSources(sourceNodes []INNImageNode) NNMultiplica instance.Autorelease() return instance } + +func (n_ NNMultiplicationNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNMultiplicationNode { + rv := objc.Call[NNMultiplicationNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc +func NewNNMultiplicationNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNMultiplicationNode { + instance := NNMultiplicationNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) + instance.Autorelease() + return instance +} diff --git a/macos/mps/nn_neuron_descriptor.gen.go b/macos/mps/nn_neuron_descriptor.gen.go index f42f4f55..e818295e 100644 --- a/macos/mps/nn_neuron_descriptor.gen.go +++ b/macos/mps/nn_neuron_descriptor.gen.go @@ -18,16 +18,16 @@ type _NNNeuronDescriptorClass struct { // An interface definition for the [NNNeuronDescriptor] class. type INNNeuronDescriptor interface { objc.IObject - B() float32 - SetB(value float32) A() float32 SetA(value float32) + Data() []byte + SetData(value []byte) NeuronType() CNNNeuronType SetNeuronType(value CNNNeuronType) C() float32 SetC(value float32) - Data() []byte - SetData(value []byte) + B() float32 + SetB(value float32) } // An object that specifies properties used by a neuron kernel. [Full Topic] @@ -65,17 +65,17 @@ func (n_ NNNeuronDescriptor) Init() NNNeuronDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942301-cnnneurondescriptorwithtype?language=objc -func (nc _NNNeuronDescriptorClass) CnnNeuronDescriptorWithTypeA(neuronType CNNNeuronType, a float32) NNNeuronDescriptor { - rv := objc.Call[NNNeuronDescriptor](nc, objc.Sel("cnnNeuronDescriptorWithType:a:"), neuronType, a) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942307-cnnneurondescriptorwithtype?language=objc +func (nc _NNNeuronDescriptorClass) CnnNeuronDescriptorWithType(neuronType CNNNeuronType) NNNeuronDescriptor { + rv := objc.Call[NNNeuronDescriptor](nc, objc.Sel("cnnNeuronDescriptorWithType:"), neuronType) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942301-cnnneurondescriptorwithtype?language=objc -func NNNeuronDescriptor_CnnNeuronDescriptorWithTypeA(neuronType CNNNeuronType, a float32) NNNeuronDescriptor { - return NNNeuronDescriptorClass.CnnNeuronDescriptorWithTypeA(neuronType, a) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942307-cnnneurondescriptorwithtype?language=objc +func NNNeuronDescriptor_CnnNeuronDescriptorWithType(neuronType CNNNeuronType) NNNeuronDescriptor { + return NNNeuronDescriptorClass.CnnNeuronDescriptorWithType(neuronType) } // [Full Topic] @@ -95,77 +95,32 @@ func NNNeuronDescriptor_CnnNeuronPReLUDescriptorWithDataNoCopy(data []byte, noCo // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942295-cnnneurondescriptorwithtype?language=objc -func (nc _NNNeuronDescriptorClass) CnnNeuronDescriptorWithTypeAB(neuronType CNNNeuronType, a float32, b float32) NNNeuronDescriptor { - rv := objc.Call[NNNeuronDescriptor](nc, objc.Sel("cnnNeuronDescriptorWithType:a:b:"), neuronType, a, b) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942295-cnnneurondescriptorwithtype?language=objc -func NNNeuronDescriptor_CnnNeuronDescriptorWithTypeAB(neuronType CNNNeuronType, a float32, b float32) NNNeuronDescriptor { - return NNNeuronDescriptorClass.CnnNeuronDescriptorWithTypeAB(neuronType, a, b) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942296-cnnneurondescriptorwithtype?language=objc -func (nc _NNNeuronDescriptorClass) CnnNeuronDescriptorWithTypeABC(neuronType CNNNeuronType, a float32, b float32, c float32) NNNeuronDescriptor { - rv := objc.Call[NNNeuronDescriptor](nc, objc.Sel("cnnNeuronDescriptorWithType:a:b:c:"), neuronType, a, b, c) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942296-cnnneurondescriptorwithtype?language=objc -func NNNeuronDescriptor_CnnNeuronDescriptorWithTypeABC(neuronType CNNNeuronType, a float32, b float32, c float32) NNNeuronDescriptor { - return NNNeuronDescriptorClass.CnnNeuronDescriptorWithTypeABC(neuronType, a, b, c) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942307-cnnneurondescriptorwithtype?language=objc -func (nc _NNNeuronDescriptorClass) CnnNeuronDescriptorWithType(neuronType CNNNeuronType) NNNeuronDescriptor { - rv := objc.Call[NNNeuronDescriptor](nc, objc.Sel("cnnNeuronDescriptorWithType:"), neuronType) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942307-cnnneurondescriptorwithtype?language=objc -func NNNeuronDescriptor_CnnNeuronDescriptorWithType(neuronType CNNNeuronType) NNNeuronDescriptor { - return NNNeuronDescriptorClass.CnnNeuronDescriptorWithType(neuronType) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942302-b?language=objc -func (n_ NNNeuronDescriptor) B() float32 { - rv := objc.Call[float32](n_, objc.Sel("b")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942316-a?language=objc +func (n_ NNNeuronDescriptor) A() float32 { + rv := objc.Call[float32](n_, objc.Sel("a")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942302-b?language=objc -func (n_ NNNeuronDescriptor) SetB(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setB:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942316-a?language=objc +func (n_ NNNeuronDescriptor) SetA(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setA:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942316-a?language=objc -func (n_ NNNeuronDescriptor) A() float32 { - rv := objc.Call[float32](n_, objc.Sel("a")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942299-data?language=objc +func (n_ NNNeuronDescriptor) Data() []byte { + rv := objc.Call[[]byte](n_, objc.Sel("data")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942316-a?language=objc -func (n_ NNNeuronDescriptor) SetA(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setA:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942299-data?language=objc +func (n_ NNNeuronDescriptor) SetData(value []byte) { + objc.Call[objc.Void](n_, objc.Sel("setData:"), value) } // [Full Topic] @@ -200,15 +155,15 @@ func (n_ NNNeuronDescriptor) SetC(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942299-data?language=objc -func (n_ NNNeuronDescriptor) Data() []byte { - rv := objc.Call[[]byte](n_, objc.Sel("data")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942302-b?language=objc +func (n_ NNNeuronDescriptor) B() float32 { + rv := objc.Call[float32](n_, objc.Sel("b")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942299-data?language=objc -func (n_ NNNeuronDescriptor) SetData(value []byte) { - objc.Call[objc.Void](n_, objc.Sel("setData:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942302-b?language=objc +func (n_ NNNeuronDescriptor) SetB(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setB:"), value) } diff --git a/macos/mps/nn_optimizer.gen.go b/macos/mps/nn_optimizer.gen.go index 71e44d13..734b1ebd 100644 --- a/macos/mps/nn_optimizer.gen.go +++ b/macos/mps/nn_optimizer.gen.go @@ -20,14 +20,14 @@ type _NNOptimizerClass struct { type INNOptimizer interface { IKernel SetLearningRate(newLearningRate float32) + GradientRescale() float32 + ApplyGradientClipping() bool + SetApplyGradientClipping(value bool) RegularizationScale() float32 GradientClipMax() float32 - LearningRate() float32 RegularizationType() NNRegularizationType + LearningRate() float32 GradientClipMin() float32 - ApplyGradientClipping() bool - SetApplyGradientClipping(value bool) - GradientRescale() float32 } // The base class for optimization layers. [Full Topic] @@ -63,32 +63,32 @@ func (n_ NNOptimizer) Init() NNOptimizer { return rv } -func (n_ NNOptimizer) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizer { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNOptimizer](n_, objc.Sel("copyWithZone:device:"), zone, po1) +func (n_ NNOptimizer) InitWithDevice(device metal.PDevice) NNOptimizer { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNOptimizer](n_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func NNOptimizer_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizer { - instance := NNOptimizerClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewNNOptimizerWithDevice(device metal.PDevice) NNOptimizer { + instance := NNOptimizerClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (n_ NNOptimizer) InitWithDevice(device metal.PDevice) NNOptimizer { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNOptimizer](n_, objc.Sel("initWithDevice:"), po0) +func (n_ NNOptimizer) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizer { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNOptimizer](n_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewNNOptimizerWithDevice(device metal.PDevice) NNOptimizer { - instance := NNOptimizerClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func NNOptimizer_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizer { + instance := NNOptimizerClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -102,63 +102,63 @@ func (n_ NNOptimizer) SetLearningRate(newLearningRate float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966710-regularizationscale?language=objc -func (n_ NNOptimizer) RegularizationScale() float32 { - rv := objc.Call[float32](n_, objc.Sel("regularizationScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966708-gradientrescale?language=objc +func (n_ NNOptimizer) GradientRescale() float32 { + rv := objc.Call[float32](n_, objc.Sel("gradientRescale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966706-gradientclipmax?language=objc -func (n_ NNOptimizer) GradientClipMax() float32 { - rv := objc.Call[float32](n_, objc.Sel("gradientClipMax")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966705-applygradientclipping?language=objc +func (n_ NNOptimizer) ApplyGradientClipping() bool { + rv := objc.Call[bool](n_, objc.Sel("applyGradientClipping")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966709-learningrate?language=objc -func (n_ NNOptimizer) LearningRate() float32 { - rv := objc.Call[float32](n_, objc.Sel("learningRate")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966705-applygradientclipping?language=objc +func (n_ NNOptimizer) SetApplyGradientClipping(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setApplyGradientClipping:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966711-regularizationtype?language=objc -func (n_ NNOptimizer) RegularizationType() NNRegularizationType { - rv := objc.Call[NNRegularizationType](n_, objc.Sel("regularizationType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966710-regularizationscale?language=objc +func (n_ NNOptimizer) RegularizationScale() float32 { + rv := objc.Call[float32](n_, objc.Sel("regularizationScale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966707-gradientclipmin?language=objc -func (n_ NNOptimizer) GradientClipMin() float32 { - rv := objc.Call[float32](n_, objc.Sel("gradientClipMin")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966706-gradientclipmax?language=objc +func (n_ NNOptimizer) GradientClipMax() float32 { + rv := objc.Call[float32](n_, objc.Sel("gradientClipMax")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966705-applygradientclipping?language=objc -func (n_ NNOptimizer) ApplyGradientClipping() bool { - rv := objc.Call[bool](n_, objc.Sel("applyGradientClipping")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966711-regularizationtype?language=objc +func (n_ NNOptimizer) RegularizationType() NNRegularizationType { + rv := objc.Call[NNRegularizationType](n_, objc.Sel("regularizationType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966705-applygradientclipping?language=objc -func (n_ NNOptimizer) SetApplyGradientClipping(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setApplyGradientClipping:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966709-learningrate?language=objc +func (n_ NNOptimizer) LearningRate() float32 { + rv := objc.Call[float32](n_, objc.Sel("learningRate")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966708-gradientrescale?language=objc -func (n_ NNOptimizer) GradientRescale() float32 { - rv := objc.Call[float32](n_, objc.Sel("gradientRescale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966707-gradientclipmin?language=objc +func (n_ NNOptimizer) GradientClipMin() float32 { + rv := objc.Call[float32](n_, objc.Sel("gradientClipMin")) return rv } diff --git a/macos/mps/nn_optimizer_adam.gen.go b/macos/mps/nn_optimizer_adam.gen.go index 1d2d6a79..d774e08c 100644 --- a/macos/mps/nn_optimizer_adam.gen.go +++ b/macos/mps/nn_optimizer_adam.gen.go @@ -19,28 +19,10 @@ type _NNOptimizerAdamClass struct { // An interface definition for the [NNOptimizerAdam] class. type INNOptimizerAdam interface { INNOptimizer - EncodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorMaximumVelocityVectorResultValuesVector(commandBuffer metal.PCommandBuffer, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, inputVelocityVector IVector, maximumVelocityVector IVector, resultValuesVector IVector) - EncodeToCommandBufferObjectInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorMaximumVelocityVectorResultValuesVector(commandBufferObject objc.IObject, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, inputVelocityVector IVector, maximumVelocityVector IVector, resultValuesVector IVector) - EncodeToCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixMaximumVelocityMatrixResultValuesMatrix(commandBuffer metal.PCommandBuffer, inputGradientMatrix IMatrix, inputValuesMatrix IMatrix, inputMomentumMatrix IMatrix, inputVelocityMatrix IMatrix, maximumVelocityMatrix IMatrix, resultValuesMatrix IMatrix) - EncodeToCommandBufferObjectInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixMaximumVelocityMatrixResultValuesMatrix(commandBufferObject objc.IObject, inputGradientMatrix IMatrix, inputValuesMatrix IMatrix, inputMomentumMatrix IMatrix, inputVelocityMatrix IMatrix, maximumVelocityMatrix IMatrix, resultValuesMatrix IMatrix) - EncodeToCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferObjectBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsResultState(commandBufferObject objc.IObject, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) - EncodeToCommandBufferObjectConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsResultState(commandBufferObject objc.IObject, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) - EncodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorResultValuesVector(commandBuffer metal.PCommandBuffer, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, inputVelocityVector IVector, resultValuesVector IVector) - EncodeToCommandBufferObjectInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorResultValuesVector(commandBufferObject objc.IObject, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, inputVelocityVector IVector, resultValuesVector IVector) EncodeToCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixResultValuesMatrix(commandBuffer metal.PCommandBuffer, inputGradientMatrix IMatrix, inputValuesMatrix IMatrix, inputMomentumMatrix IMatrix, inputVelocityMatrix IMatrix, resultValuesMatrix IMatrix) EncodeToCommandBufferObjectInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixResultValuesMatrix(commandBufferObject objc.IObject, inputGradientMatrix IMatrix, inputValuesMatrix IMatrix, inputMomentumMatrix IMatrix, inputVelocityMatrix IMatrix, resultValuesMatrix IMatrix) - EncodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) - EncodeToCommandBufferObjectConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBufferObject objc.IObject, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) - EncodeToCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferObjectBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBufferObject objc.IObject, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferObjectBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsResultState(commandBufferObject objc.IObject, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferObjectBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBufferObject objc.IObject, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - Beta2() float64 Epsilon() float32 + Beta2() float64 Beta1() float64 TimeStep() uint SetTimeStep(value uint) @@ -74,21 +56,6 @@ func NewNNOptimizerAdamWithDeviceLearningRate(device metal.PDevice, learningRate return instance } -func (n_ NNOptimizerAdam) InitWithDeviceBeta1Beta2EpsilonTimeStepOptimizerDescriptor(device metal.PDevice, beta1 float64, beta2 float64, epsilon float32, timeStep uint, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerAdam { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNOptimizerAdam](n_, objc.Sel("initWithDevice:beta1:beta2:epsilon:timeStep:optimizerDescriptor:"), po0, beta1, beta2, epsilon, timeStep, optimizerDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/2966718-initwithdevice?language=objc -func NewNNOptimizerAdamWithDeviceBeta1Beta2EpsilonTimeStepOptimizerDescriptor(device metal.PDevice, beta1 float64, beta2 float64, epsilon float32, timeStep uint, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerAdam { - instance := NNOptimizerAdamClass.Alloc().InitWithDeviceBeta1Beta2EpsilonTimeStepOptimizerDescriptor(device, beta1, beta2, epsilon, timeStep, optimizerDescriptor) - instance.Autorelease() - return instance -} - func (nc _NNOptimizerAdamClass) Alloc() NNOptimizerAdam { rv := objc.Call[NNOptimizerAdam](nc, objc.Sel("alloc")) return rv @@ -109,21 +76,6 @@ func (n_ NNOptimizerAdam) Init() NNOptimizerAdam { return rv } -func (n_ NNOptimizerAdam) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerAdam { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNOptimizerAdam](n_, objc.Sel("copyWithZone:device:"), zone, po1) - return rv -} - -// Makes a copy of this kernel object for a new device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func NNOptimizerAdam_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerAdam { - instance := NNOptimizerAdamClass.Alloc().CopyWithZoneDevice(zone, device) - instance.Autorelease() - return instance -} - func (n_ NNOptimizerAdam) InitWithDevice(device metal.PDevice) NNOptimizerAdam { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNOptimizerAdam](n_, objc.Sel("initWithDevice:"), po0) @@ -139,79 +91,19 @@ func NewNNOptimizerAdamWithDevice(device metal.PDevice) NNOptimizerAdam { return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3175016-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorMaximumVelocityVectorResultValuesVector(commandBuffer metal.PCommandBuffer, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, inputVelocityVector IVector, maximumVelocityVector IVector, resultValuesVector IVector) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:inputGradientVector:inputValuesVector:inputMomentumVector:inputVelocityVector:maximumVelocityVector:resultValuesVector:"), po0, inputGradientVector, inputValuesVector, inputMomentumVector, inputVelocityVector, maximumVelocityVector, resultValuesVector) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3175016-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorMaximumVelocityVectorResultValuesVector(commandBufferObject objc.IObject, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, inputVelocityVector IVector, maximumVelocityVector IVector, resultValuesVector IVector) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:inputGradientVector:inputValuesVector:inputMomentumVector:inputVelocityVector:maximumVelocityVector:resultValuesVector:"), commandBufferObject, inputGradientVector, inputValuesVector, inputMomentumVector, inputVelocityVector, maximumVelocityVector, resultValuesVector) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3197825-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixMaximumVelocityMatrixResultValuesMatrix(commandBuffer metal.PCommandBuffer, inputGradientMatrix IMatrix, inputValuesMatrix IMatrix, inputMomentumMatrix IMatrix, inputVelocityMatrix IMatrix, maximumVelocityMatrix IMatrix, resultValuesMatrix IMatrix) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:inputGradientMatrix:inputValuesMatrix:inputMomentumMatrix:inputVelocityMatrix:maximumVelocityMatrix:resultValuesMatrix:"), po0, inputGradientMatrix, inputValuesMatrix, inputMomentumMatrix, inputVelocityMatrix, maximumVelocityMatrix, resultValuesMatrix) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3197825-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixMaximumVelocityMatrixResultValuesMatrix(commandBufferObject objc.IObject, inputGradientMatrix IMatrix, inputValuesMatrix IMatrix, inputMomentumMatrix IMatrix, inputVelocityMatrix IMatrix, maximumVelocityMatrix IMatrix, resultValuesMatrix IMatrix) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:inputGradientMatrix:inputValuesMatrix:inputMomentumMatrix:inputVelocityMatrix:maximumVelocityMatrix:resultValuesMatrix:"), commandBufferObject, inputGradientMatrix, inputValuesMatrix, inputMomentumMatrix, inputVelocityMatrix, maximumVelocityMatrix, resultValuesMatrix) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3019334-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationState:inputMomentumVectors:inputVelocityVectors:resultState:"), po0, batchNormalizationState, inputMomentumVectors, inputVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3019334-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsResultState(commandBufferObject objc.IObject, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationState:inputMomentumVectors:inputVelocityVectors:resultState:"), commandBufferObject, batchNormalizationState, inputMomentumVectors, inputVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3013782-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:convolutionGradientState:convolutionSourceState:inputMomentumVectors:inputVelocityVectors:resultState:"), po0, convolutionGradientState, convolutionSourceState, inputMomentumVectors, inputVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3013782-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsResultState(commandBufferObject objc.IObject, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:convolutionGradientState:convolutionSourceState:inputMomentumVectors:inputVelocityVectors:resultState:"), commandBufferObject, convolutionGradientState, convolutionSourceState, inputMomentumVectors, inputVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/2966716-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorResultValuesVector(commandBuffer metal.PCommandBuffer, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, inputVelocityVector IVector, resultValuesVector IVector) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:inputGradientVector:inputValuesVector:inputMomentumVector:inputVelocityVector:resultValuesVector:"), po0, inputGradientVector, inputValuesVector, inputMomentumVector, inputVelocityVector, resultValuesVector) +func (n_ NNOptimizerAdam) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerAdam { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNOptimizerAdam](n_, objc.Sel("copyWithZone:device:"), zone, po1) + return rv } -// [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/2966716-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorResultValuesVector(commandBufferObject objc.IObject, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, inputVelocityVector IVector, resultValuesVector IVector) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:inputGradientVector:inputValuesVector:inputMomentumVector:inputVelocityVector:resultValuesVector:"), commandBufferObject, inputGradientVector, inputValuesVector, inputMomentumVector, inputVelocityVector, resultValuesVector) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func NNOptimizerAdam_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerAdam { + instance := NNOptimizerAdamClass.Alloc().CopyWithZoneDevice(zone, device) + instance.Autorelease() + return instance } // [Full Topic] @@ -231,62 +123,10 @@ func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectInputGradientMatrixInputVal // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3175015-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:convolutionGradientState:convolutionSourceState:inputMomentumVectors:inputVelocityVectors:maximumVelocityVectors:resultState:"), po0, convolutionGradientState, convolutionSourceState, inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3175015-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBufferObject objc.IObject, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:convolutionGradientState:convolutionSourceState:inputMomentumVectors:inputVelocityVectors:maximumVelocityVectors:resultState:"), commandBufferObject, convolutionGradientState, convolutionSourceState, inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3175014-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationState:inputMomentumVectors:inputVelocityVectors:maximumVelocityVectors:resultState:"), po0, batchNormalizationState, inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3175014-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBufferObject objc.IObject, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationState:inputMomentumVectors:inputVelocityVectors:maximumVelocityVectors:resultState:"), commandBufferObject, batchNormalizationState, inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3013781-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationGradientState:batchNormalizationSourceState:inputMomentumVectors:inputVelocityVectors:resultState:"), po0, batchNormalizationGradientState, batchNormalizationSourceState, inputMomentumVectors, inputVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3013781-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsResultState(commandBufferObject objc.IObject, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationGradientState:batchNormalizationSourceState:inputMomentumVectors:inputVelocityVectors:resultState:"), commandBufferObject, batchNormalizationGradientState, batchNormalizationSourceState, inputMomentumVectors, inputVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3175013-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationGradientState:batchNormalizationSourceState:inputMomentumVectors:inputVelocityVectors:maximumVelocityVectors:resultState:"), po0, batchNormalizationGradientState, batchNormalizationSourceState, inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/3175013-encodetocommandbuffer?language=objc -func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(commandBufferObject objc.IObject, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, inputVelocityVectors []IVector, maximumVelocityVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationGradientState:batchNormalizationSourceState:inputMomentumVectors:inputVelocityVectors:maximumVelocityVectors:resultState:"), commandBufferObject, batchNormalizationGradientState, batchNormalizationSourceState, inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, resultState) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/2966717-epsilon?language=objc +func (n_ NNOptimizerAdam) Epsilon() float32 { + rv := objc.Call[float32](n_, objc.Sel("epsilon")) + return rv } // [Full Topic] @@ -297,14 +137,6 @@ func (n_ NNOptimizerAdam) Beta2() float64 { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/2966717-epsilon?language=objc -func (n_ NNOptimizerAdam) Epsilon() float32 { - rv := objc.Call[float32](n_, objc.Sel("epsilon")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/2966714-beta1?language=objc diff --git a/macos/mps/nn_optimizer_descriptor.gen.go b/macos/mps/nn_optimizer_descriptor.gen.go index 9178fe55..87c91e32 100644 --- a/macos/mps/nn_optimizer_descriptor.gen.go +++ b/macos/mps/nn_optimizer_descriptor.gen.go @@ -18,20 +18,20 @@ type _NNOptimizerDescriptorClass struct { // An interface definition for the [NNOptimizerDescriptor] class. type INNOptimizerDescriptor interface { objc.IObject + GradientRescale() float32 + SetGradientRescale(value float32) ApplyGradientClipping() bool SetApplyGradientClipping(value bool) RegularizationScale() float32 SetRegularizationScale(value float32) GradientClipMax() float32 SetGradientClipMax(value float32) - GradientRescale() float32 - SetGradientRescale(value float32) - GradientClipMin() float32 - SetGradientClipMin(value float32) - LearningRate() float32 - SetLearningRate(value float32) RegularizationType() NNRegularizationType SetRegularizationType(value NNRegularizationType) + LearningRate() float32 + SetLearningRate(value float32) + GradientClipMin() float32 + SetGradientClipMin(value float32) } // An object that specifies properties used by an optimizer kernel. [Full Topic] @@ -47,32 +47,6 @@ func NNOptimizerDescriptorFrom(ptr unsafe.Pointer) NNOptimizerDescriptor { } } -func (n_ NNOptimizerDescriptor) InitWithLearningRateGradientRescaleApplyGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale(learningRate float32, gradientRescale float32, applyGradientClipping bool, gradientClipMax float32, gradientClipMin float32, regularizationType NNRegularizationType, regularizationScale float32) NNOptimizerDescriptor { - rv := objc.Call[NNOptimizerDescriptor](n_, objc.Sel("initWithLearningRate:gradientRescale:applyGradientClipping:gradientClipMax:gradientClipMin:regularizationType:regularizationScale:"), learningRate, gradientRescale, applyGradientClipping, gradientClipMax, gradientClipMin, regularizationType, regularizationScale) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966726-initwithlearningrate?language=objc -func NewNNOptimizerDescriptorWithLearningRateGradientRescaleApplyGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale(learningRate float32, gradientRescale float32, applyGradientClipping bool, gradientClipMax float32, gradientClipMin float32, regularizationType NNRegularizationType, regularizationScale float32) NNOptimizerDescriptor { - instance := NNOptimizerDescriptorClass.Alloc().InitWithLearningRateGradientRescaleApplyGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale(learningRate, gradientRescale, applyGradientClipping, gradientClipMax, gradientClipMin, regularizationType, regularizationScale) - instance.Autorelease() - return instance -} - -func (nc _NNOptimizerDescriptorClass) OptimizerDescriptorWithLearningRateGradientRescaleApplyGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale(learningRate float32, gradientRescale float32, applyGradientClipping bool, gradientClipMax float32, gradientClipMin float32, regularizationType NNRegularizationType, regularizationScale float32) NNOptimizerDescriptor { - rv := objc.Call[NNOptimizerDescriptor](nc, objc.Sel("optimizerDescriptorWithLearningRate:gradientRescale:applyGradientClipping:gradientClipMax:gradientClipMin:regularizationType:regularizationScale:"), learningRate, gradientRescale, applyGradientClipping, gradientClipMax, gradientClipMin, regularizationType, regularizationScale) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966729-optimizerdescriptorwithlearningr?language=objc -func NNOptimizerDescriptor_OptimizerDescriptorWithLearningRateGradientRescaleApplyGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale(learningRate float32, gradientRescale float32, applyGradientClipping bool, gradientClipMax float32, gradientClipMin float32, regularizationType NNRegularizationType, regularizationScale float32) NNOptimizerDescriptor { - return NNOptimizerDescriptorClass.OptimizerDescriptorWithLearningRateGradientRescaleApplyGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale(learningRate, gradientRescale, applyGradientClipping, gradientClipMax, gradientClipMin, regularizationType, regularizationScale) -} - func (n_ NNOptimizerDescriptor) InitWithLearningRateGradientRescaleRegularizationTypeRegularizationScale(learningRate float32, gradientRescale float32, regularizationType NNRegularizationType, regularizationScale float32) NNOptimizerDescriptor { rv := objc.Call[NNOptimizerDescriptor](n_, objc.Sel("initWithLearningRate:gradientRescale:regularizationType:regularizationScale:"), learningRate, gradientRescale, regularizationType, regularizationScale) return rv @@ -119,6 +93,21 @@ func (n_ NNOptimizerDescriptor) Init() NNOptimizerDescriptor { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966725-gradientrescale?language=objc +func (n_ NNOptimizerDescriptor) GradientRescale() float32 { + rv := objc.Call[float32](n_, objc.Sel("gradientRescale")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966725-gradientrescale?language=objc +func (n_ NNOptimizerDescriptor) SetGradientRescale(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setGradientRescale:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966722-applygradientclipping?language=objc @@ -166,32 +155,17 @@ func (n_ NNOptimizerDescriptor) SetGradientClipMax(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966725-gradientrescale?language=objc -func (n_ NNOptimizerDescriptor) GradientRescale() float32 { - rv := objc.Call[float32](n_, objc.Sel("gradientRescale")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966725-gradientrescale?language=objc -func (n_ NNOptimizerDescriptor) SetGradientRescale(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setGradientRescale:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966724-gradientclipmin?language=objc -func (n_ NNOptimizerDescriptor) GradientClipMin() float32 { - rv := objc.Call[float32](n_, objc.Sel("gradientClipMin")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966732-regularizationtype?language=objc +func (n_ NNOptimizerDescriptor) RegularizationType() NNRegularizationType { + rv := objc.Call[NNRegularizationType](n_, objc.Sel("regularizationType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966724-gradientclipmin?language=objc -func (n_ NNOptimizerDescriptor) SetGradientClipMin(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setGradientClipMin:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966732-regularizationtype?language=objc +func (n_ NNOptimizerDescriptor) SetRegularizationType(value NNRegularizationType) { + objc.Call[objc.Void](n_, objc.Sel("setRegularizationType:"), value) } // [Full Topic] @@ -211,15 +185,15 @@ func (n_ NNOptimizerDescriptor) SetLearningRate(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966732-regularizationtype?language=objc -func (n_ NNOptimizerDescriptor) RegularizationType() NNRegularizationType { - rv := objc.Call[NNRegularizationType](n_, objc.Sel("regularizationType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966724-gradientclipmin?language=objc +func (n_ NNOptimizerDescriptor) GradientClipMin() float32 { + rv := objc.Call[float32](n_, objc.Sel("gradientClipMin")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966732-regularizationtype?language=objc -func (n_ NNOptimizerDescriptor) SetRegularizationType(value NNRegularizationType) { - objc.Call[objc.Void](n_, objc.Sel("setRegularizationType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966724-gradientclipmin?language=objc +func (n_ NNOptimizerDescriptor) SetGradientClipMin(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setGradientClipMin:"), value) } diff --git a/macos/mps/nn_optimizer_rms_prop.gen.go b/macos/mps/nn_optimizer_rms_prop.gen.go index 97e020b8..cd73ce3d 100644 --- a/macos/mps/nn_optimizer_rms_prop.gen.go +++ b/macos/mps/nn_optimizer_rms_prop.gen.go @@ -19,14 +19,6 @@ type _NNOptimizerRMSPropClass struct { // An interface definition for the [NNOptimizerRMSProp] class. type INNOptimizerRMSProp interface { INNOptimizer - EncodeToCommandBufferBatchNormalizationStateInputSumOfSquaresVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationState ICNNBatchNormalizationState, inputSumOfSquaresVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferObjectBatchNormalizationStateInputSumOfSquaresVectorsResultState(commandBufferObject objc.IObject, batchNormalizationState ICNNBatchNormalizationState, inputSumOfSquaresVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputSumOfSquaresVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputSumOfSquaresVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferObjectBatchNormalizationGradientStateBatchNormalizationSourceStateInputSumOfSquaresVectorsResultState(commandBufferObject objc.IObject, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputSumOfSquaresVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputSumOfSquaresVectorsResultState(commandBuffer metal.PCommandBuffer, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputSumOfSquaresVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) - EncodeToCommandBufferObjectConvolutionGradientStateConvolutionSourceStateInputSumOfSquaresVectorsResultState(commandBufferObject objc.IObject, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputSumOfSquaresVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) - EncodeToCommandBufferInputGradientVectorInputValuesVectorInputSumOfSquaresVectorResultValuesVector(commandBuffer metal.PCommandBuffer, inputGradientVector IVector, inputValuesVector IVector, inputSumOfSquaresVector IVector, resultValuesVector IVector) - EncodeToCommandBufferObjectInputGradientVectorInputValuesVectorInputSumOfSquaresVectorResultValuesVector(commandBufferObject objc.IObject, inputGradientVector IVector, inputValuesVector IVector, inputSumOfSquaresVector IVector, resultValuesVector IVector) EncodeToCommandBufferInputGradientMatrixInputValuesMatrixInputSumOfSquaresMatrixResultValuesMatrix(commandBuffer metal.PCommandBuffer, inputGradientMatrix IMatrix, inputValuesMatrix IMatrix, inputSumOfSquaresMatrix IMatrix, resultValuesMatrix IMatrix) EncodeToCommandBufferObjectInputGradientMatrixInputValuesMatrixInputSumOfSquaresMatrixResultValuesMatrix(commandBufferObject objc.IObject, inputGradientMatrix IMatrix, inputValuesMatrix IMatrix, inputSumOfSquaresMatrix IMatrix, resultValuesMatrix IMatrix) Decay() float64 @@ -46,21 +38,6 @@ func NNOptimizerRMSPropFrom(ptr unsafe.Pointer) NNOptimizerRMSProp { } } -func (n_ NNOptimizerRMSProp) InitWithDeviceDecayEpsilonOptimizerDescriptor(device metal.PDevice, decay float64, epsilon float32, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerRMSProp { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNOptimizerRMSProp](n_, objc.Sel("initWithDevice:decay:epsilon:optimizerDescriptor:"), po0, decay, epsilon, optimizerDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerrmsprop/2966737-initwithdevice?language=objc -func NewNNOptimizerRMSPropWithDeviceDecayEpsilonOptimizerDescriptor(device metal.PDevice, decay float64, epsilon float32, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerRMSProp { - instance := NNOptimizerRMSPropClass.Alloc().InitWithDeviceDecayEpsilonOptimizerDescriptor(device, decay, epsilon, optimizerDescriptor) - instance.Autorelease() - return instance -} - func (n_ NNOptimizerRMSProp) InitWithDeviceLearningRate(device metal.PDevice, learningRate float32) NNOptimizerRMSProp { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNOptimizerRMSProp](n_, objc.Sel("initWithDevice:learningRate:"), po0, learningRate) @@ -96,21 +73,6 @@ func (n_ NNOptimizerRMSProp) Init() NNOptimizerRMSProp { return rv } -func (n_ NNOptimizerRMSProp) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerRMSProp { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNOptimizerRMSProp](n_, objc.Sel("copyWithZone:device:"), zone, po1) - return rv -} - -// Makes a copy of this kernel object for a new device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func NNOptimizerRMSProp_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerRMSProp { - instance := NNOptimizerRMSPropClass.Alloc().CopyWithZoneDevice(zone, device) - instance.Autorelease() - return instance -} - func (n_ NNOptimizerRMSProp) InitWithDevice(device metal.PDevice) NNOptimizerRMSProp { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNOptimizerRMSProp](n_, objc.Sel("initWithDevice:"), po0) @@ -126,64 +88,19 @@ func NewNNOptimizerRMSPropWithDevice(device metal.PDevice) NNOptimizerRMSProp { return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerrmsprop/3019335-encodetocommandbuffer?language=objc -func (n_ NNOptimizerRMSProp) EncodeToCommandBufferBatchNormalizationStateInputSumOfSquaresVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationState ICNNBatchNormalizationState, inputSumOfSquaresVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationState:inputSumOfSquaresVectors:resultState:"), po0, batchNormalizationState, inputSumOfSquaresVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerrmsprop/3019335-encodetocommandbuffer?language=objc -func (n_ NNOptimizerRMSProp) EncodeToCommandBufferObjectBatchNormalizationStateInputSumOfSquaresVectorsResultState(commandBufferObject objc.IObject, batchNormalizationState ICNNBatchNormalizationState, inputSumOfSquaresVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationState:inputSumOfSquaresVectors:resultState:"), commandBufferObject, batchNormalizationState, inputSumOfSquaresVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerrmsprop/3013783-encodetocommandbuffer?language=objc -func (n_ NNOptimizerRMSProp) EncodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputSumOfSquaresVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputSumOfSquaresVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationGradientState:batchNormalizationSourceState:inputSumOfSquaresVectors:resultState:"), po0, batchNormalizationGradientState, batchNormalizationSourceState, inputSumOfSquaresVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerrmsprop/3013783-encodetocommandbuffer?language=objc -func (n_ NNOptimizerRMSProp) EncodeToCommandBufferObjectBatchNormalizationGradientStateBatchNormalizationSourceStateInputSumOfSquaresVectorsResultState(commandBufferObject objc.IObject, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputSumOfSquaresVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationGradientState:batchNormalizationSourceState:inputSumOfSquaresVectors:resultState:"), commandBufferObject, batchNormalizationGradientState, batchNormalizationSourceState, inputSumOfSquaresVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerrmsprop/3013784-encodetocommandbuffer?language=objc -func (n_ NNOptimizerRMSProp) EncodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputSumOfSquaresVectorsResultState(commandBuffer metal.PCommandBuffer, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputSumOfSquaresVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:convolutionGradientState:convolutionSourceState:inputSumOfSquaresVectors:resultState:"), po0, convolutionGradientState, convolutionSourceState, inputSumOfSquaresVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerrmsprop/3013784-encodetocommandbuffer?language=objc -func (n_ NNOptimizerRMSProp) EncodeToCommandBufferObjectConvolutionGradientStateConvolutionSourceStateInputSumOfSquaresVectorsResultState(commandBufferObject objc.IObject, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputSumOfSquaresVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:convolutionGradientState:convolutionSourceState:inputSumOfSquaresVectors:resultState:"), commandBufferObject, convolutionGradientState, convolutionSourceState, inputSumOfSquaresVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerrmsprop/2966735-encodetocommandbuffer?language=objc -func (n_ NNOptimizerRMSProp) EncodeToCommandBufferInputGradientVectorInputValuesVectorInputSumOfSquaresVectorResultValuesVector(commandBuffer metal.PCommandBuffer, inputGradientVector IVector, inputValuesVector IVector, inputSumOfSquaresVector IVector, resultValuesVector IVector) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:inputGradientVector:inputValuesVector:inputSumOfSquaresVector:resultValuesVector:"), po0, inputGradientVector, inputValuesVector, inputSumOfSquaresVector, resultValuesVector) +func (n_ NNOptimizerRMSProp) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerRMSProp { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNOptimizerRMSProp](n_, objc.Sel("copyWithZone:device:"), zone, po1) + return rv } -// [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerrmsprop/2966735-encodetocommandbuffer?language=objc -func (n_ NNOptimizerRMSProp) EncodeToCommandBufferObjectInputGradientVectorInputValuesVectorInputSumOfSquaresVectorResultValuesVector(commandBufferObject objc.IObject, inputGradientVector IVector, inputValuesVector IVector, inputSumOfSquaresVector IVector, resultValuesVector IVector) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:inputGradientVector:inputValuesVector:inputSumOfSquaresVector:resultValuesVector:"), commandBufferObject, inputGradientVector, inputValuesVector, inputSumOfSquaresVector, resultValuesVector) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func NNOptimizerRMSProp_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerRMSProp { + instance := NNOptimizerRMSPropClass.Alloc().CopyWithZoneDevice(zone, device) + instance.Autorelease() + return instance } // [Full Topic] diff --git a/macos/mps/nn_optimizer_stochastic_gradient_descent.gen.go b/macos/mps/nn_optimizer_stochastic_gradient_descent.gen.go index e0ab9b1a..752457b2 100644 --- a/macos/mps/nn_optimizer_stochastic_gradient_descent.gen.go +++ b/macos/mps/nn_optimizer_stochastic_gradient_descent.gen.go @@ -19,19 +19,11 @@ type _NNOptimizerStochasticGradientDescentClass struct { // An interface definition for the [NNOptimizerStochasticGradientDescent] class. type INNOptimizerStochasticGradientDescent interface { INNOptimizer - EncodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferObjectBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsResultState(commandBufferObject objc.IObject, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) EncodeToCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixResultValuesMatrix(commandBuffer metal.PCommandBuffer, inputGradientMatrix IMatrix, inputValuesMatrix IMatrix, inputMomentumMatrix IMatrix, resultValuesMatrix IMatrix) EncodeToCommandBufferObjectInputGradientMatrixInputValuesMatrixInputMomentumMatrixResultValuesMatrix(commandBufferObject objc.IObject, inputGradientMatrix IMatrix, inputValuesMatrix IMatrix, inputMomentumMatrix IMatrix, resultValuesMatrix IMatrix) - EncodeToCommandBufferBatchNormalizationStateInputMomentumVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferObjectBatchNormalizationStateInputMomentumVectorsResultState(commandBufferObject objc.IObject, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) - EncodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsResultState(commandBuffer metal.PCommandBuffer, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) - EncodeToCommandBufferObjectConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsResultState(commandBufferObject objc.IObject, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) - EncodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorResultValuesVector(commandBuffer metal.PCommandBuffer, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, resultValuesVector IVector) - EncodeToCommandBufferObjectInputGradientVectorInputValuesVectorInputMomentumVectorResultValuesVector(commandBufferObject objc.IObject, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, resultValuesVector IVector) + UseNesterovMomentum() bool MomentumScale() float32 UseNestrovMomentum() bool - UseNesterovMomentum() bool } // An optimization layer that performs a gradient descent with an optional momentum update. [Full Topic] @@ -62,36 +54,6 @@ func NewNNOptimizerStochasticGradientDescentWithDeviceLearningRate(device metal. return instance } -func (n_ NNOptimizerStochasticGradientDescent) InitWithDeviceMomentumScaleUseNestrovMomentumOptimizerDescriptor(device metal.PDevice, momentumScale float32, useNestrovMomentum bool, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerStochasticGradientDescent { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNOptimizerStochasticGradientDescent](n_, objc.Sel("initWithDevice:momentumScale:useNestrovMomentum:optimizerDescriptor:"), po0, momentumScale, useNestrovMomentum, optimizerDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/2966742-initwithdevice?language=objc -func NewNNOptimizerStochasticGradientDescentWithDeviceMomentumScaleUseNestrovMomentumOptimizerDescriptor(device metal.PDevice, momentumScale float32, useNestrovMomentum bool, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerStochasticGradientDescent { - instance := NNOptimizerStochasticGradientDescentClass.Alloc().InitWithDeviceMomentumScaleUseNestrovMomentumOptimizerDescriptor(device, momentumScale, useNestrovMomentum, optimizerDescriptor) - instance.Autorelease() - return instance -} - -func (n_ NNOptimizerStochasticGradientDescent) InitWithDeviceMomentumScaleUseNesterovMomentumOptimizerDescriptor(device metal.PDevice, momentumScale float32, useNesterovMomentum bool, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerStochasticGradientDescent { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNOptimizerStochasticGradientDescent](n_, objc.Sel("initWithDevice:momentumScale:useNesterovMomentum:optimizerDescriptor:"), po0, momentumScale, useNesterovMomentum, optimizerDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/3675591-initwithdevice?language=objc -func NewNNOptimizerStochasticGradientDescentWithDeviceMomentumScaleUseNesterovMomentumOptimizerDescriptor(device metal.PDevice, momentumScale float32, useNesterovMomentum bool, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerStochasticGradientDescent { - instance := NNOptimizerStochasticGradientDescentClass.Alloc().InitWithDeviceMomentumScaleUseNesterovMomentumOptimizerDescriptor(device, momentumScale, useNesterovMomentum, optimizerDescriptor) - instance.Autorelease() - return instance -} - func (nc _NNOptimizerStochasticGradientDescentClass) Alloc() NNOptimizerStochasticGradientDescent { rv := objc.Call[NNOptimizerStochasticGradientDescent](nc, objc.Sel("alloc")) return rv @@ -112,21 +74,6 @@ func (n_ NNOptimizerStochasticGradientDescent) Init() NNOptimizerStochasticGradi return rv } -func (n_ NNOptimizerStochasticGradientDescent) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerStochasticGradientDescent { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNOptimizerStochasticGradientDescent](n_, objc.Sel("copyWithZone:device:"), zone, po1) - return rv -} - -// Makes a copy of this kernel object for a new device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func NNOptimizerStochasticGradientDescent_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerStochasticGradientDescent { - instance := NNOptimizerStochasticGradientDescentClass.Alloc().CopyWithZoneDevice(zone, device) - instance.Autorelease() - return instance -} - func (n_ NNOptimizerStochasticGradientDescent) InitWithDevice(device metal.PDevice) NNOptimizerStochasticGradientDescent { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNOptimizerStochasticGradientDescent](n_, objc.Sel("initWithDevice:"), po0) @@ -142,19 +89,19 @@ func NewNNOptimizerStochasticGradientDescentWithDevice(device metal.PDevice) NNO return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/3013785-encodetocommandbuffer?language=objc -func (n_ NNOptimizerStochasticGradientDescent) EncodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationGradientState:batchNormalizationSourceState:inputMomentumVectors:resultState:"), po0, batchNormalizationGradientState, batchNormalizationSourceState, inputMomentumVectors, resultState) +func (n_ NNOptimizerStochasticGradientDescent) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerStochasticGradientDescent { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNOptimizerStochasticGradientDescent](n_, objc.Sel("copyWithZone:device:"), zone, po1) + return rv } -// [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/3013785-encodetocommandbuffer?language=objc -func (n_ NNOptimizerStochasticGradientDescent) EncodeToCommandBufferObjectBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsResultState(commandBufferObject objc.IObject, batchNormalizationGradientState ICNNBatchNormalizationState, batchNormalizationSourceState ICNNBatchNormalizationState, inputMomentumVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationGradientState:batchNormalizationSourceState:inputMomentumVectors:resultState:"), commandBufferObject, batchNormalizationGradientState, batchNormalizationSourceState, inputMomentumVectors, resultState) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func NNOptimizerStochasticGradientDescent_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNOptimizerStochasticGradientDescent { + instance := NNOptimizerStochasticGradientDescentClass.Alloc().CopyWithZoneDevice(zone, device) + instance.Autorelease() + return instance } // [Full Topic] @@ -174,47 +121,10 @@ func (n_ NNOptimizerStochasticGradientDescent) EncodeToCommandBufferObjectInputG // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/3019336-encodetocommandbuffer?language=objc -func (n_ NNOptimizerStochasticGradientDescent) EncodeToCommandBufferBatchNormalizationStateInputMomentumVectorsResultState(commandBuffer metal.PCommandBuffer, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationState:inputMomentumVectors:resultState:"), po0, batchNormalizationState, inputMomentumVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/3019336-encodetocommandbuffer?language=objc -func (n_ NNOptimizerStochasticGradientDescent) EncodeToCommandBufferObjectBatchNormalizationStateInputMomentumVectorsResultState(commandBufferObject objc.IObject, batchNormalizationState ICNNBatchNormalizationState, inputMomentumVectors []IVector, resultState ICNNNormalizationGammaAndBetaState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:batchNormalizationState:inputMomentumVectors:resultState:"), commandBufferObject, batchNormalizationState, inputMomentumVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/3013786-encodetocommandbuffer?language=objc -func (n_ NNOptimizerStochasticGradientDescent) EncodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsResultState(commandBuffer metal.PCommandBuffer, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:convolutionGradientState:convolutionSourceState:inputMomentumVectors:resultState:"), po0, convolutionGradientState, convolutionSourceState, inputMomentumVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/3013786-encodetocommandbuffer?language=objc -func (n_ NNOptimizerStochasticGradientDescent) EncodeToCommandBufferObjectConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsResultState(commandBufferObject objc.IObject, convolutionGradientState ICNNConvolutionGradientState, convolutionSourceState ICNNConvolutionWeightsAndBiasesState, inputMomentumVectors []IVector, resultState ICNNConvolutionWeightsAndBiasesState) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:convolutionGradientState:convolutionSourceState:inputMomentumVectors:resultState:"), commandBufferObject, convolutionGradientState, convolutionSourceState, inputMomentumVectors, resultState) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/2966740-encodetocommandbuffer?language=objc -func (n_ NNOptimizerStochasticGradientDescent) EncodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorResultValuesVector(commandBuffer metal.PCommandBuffer, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, resultValuesVector IVector) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:inputGradientVector:inputValuesVector:inputMomentumVector:resultValuesVector:"), po0, inputGradientVector, inputValuesVector, inputMomentumVector, resultValuesVector) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/2966740-encodetocommandbuffer?language=objc -func (n_ NNOptimizerStochasticGradientDescent) EncodeToCommandBufferObjectInputGradientVectorInputValuesVectorInputMomentumVectorResultValuesVector(commandBufferObject objc.IObject, inputGradientVector IVector, inputValuesVector IVector, inputMomentumVector IVector, resultValuesVector IVector) { - objc.Call[objc.Void](n_, objc.Sel("encodeToCommandBuffer:inputGradientVector:inputValuesVector:inputMomentumVector:resultValuesVector:"), commandBufferObject, inputGradientVector, inputValuesVector, inputMomentumVector, resultValuesVector) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/3675592-usenesterovmomentum?language=objc +func (n_ NNOptimizerStochasticGradientDescent) UseNesterovMomentum() bool { + rv := objc.Call[bool](n_, objc.Sel("useNesterovMomentum")) + return rv } // [Full Topic] @@ -232,11 +142,3 @@ func (n_ NNOptimizerStochasticGradientDescent) UseNestrovMomentum() bool { rv := objc.Call[bool](n_, objc.Sel("useNestrovMomentum")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/3675592-usenesterovmomentum?language=objc -func (n_ NNOptimizerStochasticGradientDescent) UseNesterovMomentum() bool { - rv := objc.Call[bool](n_, objc.Sel("useNesterovMomentum")) - return rv -} diff --git a/macos/mps/nn_pad.gen.go b/macos/mps/nn_pad.gen.go index 33007f10..286efe86 100644 --- a/macos/mps/nn_pad.gen.go +++ b/macos/mps/nn_pad.gen.go @@ -19,12 +19,12 @@ type _NNPadClass struct { // An interface definition for the [NNPad] class. type INNPad interface { ICNNKernel - FillValue() float32 - SetFillValue(value float32) PaddingSizeBefore() ImageCoordinate SetPaddingSizeBefore(value ImageCoordinate) PaddingSizeAfter() ImageCoordinate SetPaddingSizeAfter(value ImageCoordinate) + FillValue() float32 + SetFillValue(value float32) } // [Full Topic] @@ -40,21 +40,6 @@ func NNPadFrom(ptr unsafe.Pointer) NNPad { } } -func (n_ NNPad) InitWithDevicePaddingSizeBeforePaddingSizeAfterFillValueArray(device metal.PDevice, paddingSizeBefore ImageCoordinate, paddingSizeAfter ImageCoordinate, fillValueArray []byte) NNPad { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNPad](n_, objc.Sel("initWithDevice:paddingSizeBefore:paddingSizeAfter:fillValueArray:"), po0, paddingSizeBefore, paddingSizeAfter, fillValueArray) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpad/3037431-initwithdevice?language=objc -func NewNNPadWithDevicePaddingSizeBeforePaddingSizeAfterFillValueArray(device metal.PDevice, paddingSizeBefore ImageCoordinate, paddingSizeAfter ImageCoordinate, fillValueArray []byte) NNPad { - instance := NNPadClass.Alloc().InitWithDevicePaddingSizeBeforePaddingSizeAfterFillValueArray(device, paddingSizeBefore, paddingSizeAfter, fillValueArray) - instance.Autorelease() - return instance -} - func (n_ NNPad) InitWithDevice(device metal.PDevice) NNPad { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNPad](n_, objc.Sel("initWithDevice:"), po0) @@ -70,21 +55,6 @@ func NewNNPadWithDevice(device metal.PDevice) NNPad { return instance } -func (n_ NNPad) InitWithDevicePaddingSizeBeforePaddingSizeAfter(device metal.PDevice, paddingSizeBefore ImageCoordinate, paddingSizeAfter ImageCoordinate) NNPad { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNPad](n_, objc.Sel("initWithDevice:paddingSizeBefore:paddingSizeAfter:"), po0, paddingSizeBefore, paddingSizeAfter) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpad/3037430-initwithdevice?language=objc -func NewNNPadWithDevicePaddingSizeBeforePaddingSizeAfter(device metal.PDevice, paddingSizeBefore ImageCoordinate, paddingSizeAfter ImageCoordinate) NNPad { - instance := NNPadClass.Alloc().InitWithDevicePaddingSizeBeforePaddingSizeAfter(device, paddingSizeBefore, paddingSizeAfter) - instance.Autorelease() - return instance -} - func (nc _NNPadClass) Alloc() NNPad { rv := objc.Call[NNPad](nc, objc.Sel("alloc")) return rv @@ -120,21 +90,6 @@ func NNPad_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNPad { return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpad/3037427-fillvalue?language=objc -func (n_ NNPad) FillValue() float32 { - rv := objc.Call[float32](n_, objc.Sel("fillValue")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpad/3037427-fillvalue?language=objc -func (n_ NNPad) SetFillValue(value float32) { - objc.Call[objc.Void](n_, objc.Sel("setFillValue:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpad/3037433-paddingsizebefore?language=objc @@ -164,3 +119,18 @@ func (n_ NNPad) PaddingSizeAfter() ImageCoordinate { func (n_ NNPad) SetPaddingSizeAfter(value ImageCoordinate) { objc.Call[objc.Void](n_, objc.Sel("setPaddingSizeAfter:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpad/3037427-fillvalue?language=objc +func (n_ NNPad) FillValue() float32 { + rv := objc.Call[float32](n_, objc.Sel("fillValue")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpad/3037427-fillvalue?language=objc +func (n_ NNPad) SetFillValue(value float32) { + objc.Call[objc.Void](n_, objc.Sel("setFillValue:"), value) +} diff --git a/macos/mps/nn_pad_gradient_node.gen.go b/macos/mps/nn_pad_gradient_node.gen.go index c511467c..049fd269 100644 --- a/macos/mps/nn_pad_gradient_node.gen.go +++ b/macos/mps/nn_pad_gradient_node.gen.go @@ -33,18 +33,6 @@ func NNPadGradientNodeFrom(ptr unsafe.Pointer) NNPadGradientNode { } } -func (nc _NNPadGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { - rv := objc.Call[NNPadGradientNode](nc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadgradientnode/3037392-nodewithsourcegradient?language=objc -func NNPadGradientNode_NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { - return NNPadGradientNodeClass.NodeWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) -} - func (n_ NNPadGradientNode) InitWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { rv := objc.Call[NNPadGradientNode](n_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) return rv @@ -59,6 +47,18 @@ func NewNNPadGradientNodeWithSourceGradientSourceImageGradientState(sourceGradie return instance } +func (nc _NNPadGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { + rv := objc.Call[NNPadGradientNode](nc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), sourceGradient, sourceImage, gradientState) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadgradientnode/3037392-nodewithsourcegradient?language=objc +func NNPadGradientNode_NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { + return NNPadGradientNodeClass.NodeWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) +} + func (nc _NNPadGradientNodeClass) Alloc() NNPadGradientNode { rv := objc.Call[NNPadGradientNode](nc, objc.Sel("alloc")) return rv diff --git a/macos/mps/nn_padding_protocol.gen.go b/macos/mps/nn_padding_protocol.gen.go index b198c863..1f916095 100644 --- a/macos/mps/nn_padding_protocol.gen.go +++ b/macos/mps/nn_padding_protocol.gen.go @@ -10,21 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadding?language=objc type PNNPadding interface { - // optional - PaddingMethod() NNPaddingMethod - HasPaddingMethod() bool - // optional DestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor(sourceImages []Image, sourceStates []State, kernel Kernel, inDescriptor ImageDescriptor) ImageDescriptor HasDestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor() bool // optional - Label() string - HasLabel() bool + PaddingMethod() NNPaddingMethod + HasPaddingMethod() bool // optional Inverse() objc.Object HasInverse() bool + + // optional + Label() string + HasLabel() bool } // ensure impl type implements protocol interface @@ -35,18 +35,6 @@ type NNPaddingObject struct { objc.Object } -func (n_ NNPaddingObject) HasPaddingMethod() bool { - return n_.RespondsToSelector(objc.Sel("paddingMethod")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadding/2866950-paddingmethod?language=objc -func (n_ NNPaddingObject) PaddingMethod() NNPaddingMethod { - rv := objc.Call[NNPaddingMethod](n_, objc.Sel("paddingMethod")) - return rv -} - func (n_ NNPaddingObject) HasDestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor() bool { return n_.RespondsToSelector(objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor:")) } @@ -59,15 +47,15 @@ func (n_ NNPaddingObject) DestinationImageDescriptorForSourceImagesSourceStatesF return rv } -func (n_ NNPaddingObject) HasLabel() bool { - return n_.RespondsToSelector(objc.Sel("label")) +func (n_ NNPaddingObject) HasPaddingMethod() bool { + return n_.RespondsToSelector(objc.Sel("paddingMethod")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadding/2889870-label?language=objc -func (n_ NNPaddingObject) Label() string { - rv := objc.Call[string](n_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadding/2866950-paddingmethod?language=objc +func (n_ NNPaddingObject) PaddingMethod() NNPaddingMethod { + rv := objc.Call[NNPaddingMethod](n_, objc.Sel("paddingMethod")) return rv } @@ -82,3 +70,15 @@ func (n_ NNPaddingObject) Inverse() objc.Object { rv := objc.Call[objc.Object](n_, objc.Sel("inverse")) return rv } + +func (n_ NNPaddingObject) HasLabel() bool { + return n_.RespondsToSelector(objc.Sel("label")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadding/2889870-label?language=objc +func (n_ NNPaddingObject) Label() string { + rv := objc.Call[string](n_, objc.Sel("label")) + return rv +} diff --git a/macos/mps/nn_reduce_feature_channels_and_weights_sum.gen.go b/macos/mps/nn_reduce_feature_channels_and_weights_sum.gen.go index f5114fde..f46830fb 100644 --- a/macos/mps/nn_reduce_feature_channels_and_weights_sum.gen.go +++ b/macos/mps/nn_reduce_feature_channels_and_weights_sum.gen.go @@ -50,21 +50,6 @@ func NewNNReduceFeatureChannelsAndWeightsSumWithDevice(device metal.PDevice) NNR return instance } -func (n_ NNReduceFeatureChannelsAndWeightsSum) InitWithDeviceDoWeightedSumByNonZeroWeights(device metal.PDevice, doWeightedSumByNonZeroWeights bool) NNReduceFeatureChannelsAndWeightsSum { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[NNReduceFeatureChannelsAndWeightsSum](n_, objc.Sel("initWithDevice:doWeightedSumByNonZeroWeights:"), po0, doWeightedSumByNonZeroWeights) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreducefeaturechannelsandweightssum/2942551-initwithdevice?language=objc -func NewNNReduceFeatureChannelsAndWeightsSumWithDeviceDoWeightedSumByNonZeroWeights(device metal.PDevice, doWeightedSumByNonZeroWeights bool) NNReduceFeatureChannelsAndWeightsSum { - instance := NNReduceFeatureChannelsAndWeightsSumClass.Alloc().InitWithDeviceDoWeightedSumByNonZeroWeights(device, doWeightedSumByNonZeroWeights) - instance.Autorelease() - return instance -} - func (nc _NNReduceFeatureChannelsAndWeightsSumClass) Alloc() NNReduceFeatureChannelsAndWeightsSum { rv := objc.Call[NNReduceFeatureChannelsAndWeightsSum](nc, objc.Sel("alloc")) return rv diff --git a/macos/mps/nn_reshape.gen.go b/macos/mps/nn_reshape.gen.go index ef91db37..8123dbd2 100644 --- a/macos/mps/nn_reshape.gen.go +++ b/macos/mps/nn_reshape.gen.go @@ -20,14 +20,10 @@ type _NNReshapeClass struct { // An interface definition for the [NNReshape] class. type INNReshape interface { ICNNKernel - EncodeToCommandBufferSourceImageReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer metal.PCommandBuffer, sourceImage IImage, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image - EncodeToCommandBufferObjectSourceImageReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImage IImage, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image - EncodeToCommandBufferSourceImageDestinationStateDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer metal.PCommandBuffer, sourceImage IImage, outState unsafe.Pointer, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image - EncodeToCommandBufferObjectSourceImageDestinationStateDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImage IImage, outState unsafe.Pointer, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image EncodeBatchToCommandBufferSourceImagesReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) *foundation.Array EncodeBatchToCommandBufferObjectSourceImagesReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImages *foundation.Array, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) *foundation.Array - EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, outStates unsafe.Pointer, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) *foundation.Array - EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImages *foundation.Array, outStates unsafe.Pointer, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) *foundation.Array + EncodeToCommandBufferSourceImageReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer metal.PCommandBuffer, sourceImage IImage, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image + EncodeToCommandBufferObjectSourceImageReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImage IImage, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image } // The base class for reshape operations. [Full Topic] @@ -93,40 +89,6 @@ func NNReshape_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNR return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547992-encodetocommandbuffer?language=objc -func (n_ NNReshape) EncodeToCommandBufferSourceImageReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer metal.PCommandBuffer, sourceImage IImage, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImage:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), po0, sourceImage, reshapedWidth, reshapedHeight, reshapedFeatureChannels) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547992-encodetocommandbuffer?language=objc -func (n_ NNReshape) EncodeToCommandBufferObjectSourceImageReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImage IImage, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image { - rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImage:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), commandBufferObject, sourceImage, reshapedWidth, reshapedHeight, reshapedFeatureChannels) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547991-encodetocommandbuffer?language=objc -func (n_ NNReshape) EncodeToCommandBufferSourceImageDestinationStateDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer metal.PCommandBuffer, sourceImage IImage, outState unsafe.Pointer, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), po0, sourceImage, outState, isTemporary, reshapedWidth, reshapedHeight, reshapedFeatureChannels) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547991-encodetocommandbuffer?language=objc -func (n_ NNReshape) EncodeToCommandBufferObjectSourceImageDestinationStateDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImage IImage, outState unsafe.Pointer, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image { - rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), commandBufferObject, sourceImage, outState, isTemporary, reshapedWidth, reshapedHeight, reshapedFeatureChannels) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547990-encodebatchtocommandbuffer?language=objc @@ -146,17 +108,17 @@ func (n_ NNReshape) EncodeBatchToCommandBufferObjectSourceImagesReshapedWidthRes // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547989-encodebatchtocommandbuffer?language=objc -func (n_ NNReshape) EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, outStates unsafe.Pointer, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) *foundation.Array { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547992-encodetocommandbuffer?language=objc +func (n_ NNReshape) EncodeToCommandBufferSourceImageReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer metal.PCommandBuffer, sourceImage IImage, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](n_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), po0, sourceImages, outStates, isTemporary, reshapedWidth, reshapedHeight, reshapedFeatureChannels) + rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImage:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), po0, sourceImage, reshapedWidth, reshapedHeight, reshapedFeatureChannels) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547989-encodebatchtocommandbuffer?language=objc -func (n_ NNReshape) EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImages *foundation.Array, outStates unsafe.Pointer, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) *foundation.Array { - rv := objc.Call[*foundation.Array](n_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), commandBufferObject, sourceImages, outStates, isTemporary, reshapedWidth, reshapedHeight, reshapedFeatureChannels) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547992-encodetocommandbuffer?language=objc +func (n_ NNReshape) EncodeToCommandBufferObjectSourceImageReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImage IImage, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image { + rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImage:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), commandBufferObject, sourceImage, reshapedWidth, reshapedHeight, reshapedFeatureChannels) return rv } diff --git a/macos/mps/nn_resize_bilinear.gen.go b/macos/mps/nn_resize_bilinear.gen.go index 713482ac..492cf8a7 100644 --- a/macos/mps/nn_resize_bilinear.gen.go +++ b/macos/mps/nn_resize_bilinear.gen.go @@ -19,9 +19,9 @@ type _NNResizeBilinearClass struct { // An interface definition for the [NNResizeBilinear] class. type INNResizeBilinear interface { ICNNKernel + ResizeHeight() uint AlignCorners() bool ResizeWidth() uint - ResizeHeight() uint } // A bilinear resizing filter. [Full Topic] @@ -102,6 +102,14 @@ func NNResizeBilinear_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevi return instance } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnresizebilinear/3012968-resizeheight?language=objc +func (n_ NNResizeBilinear) ResizeHeight() uint { + rv := objc.Call[uint](n_, objc.Sel("resizeHeight")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnresizebilinear/3012965-aligncorners?language=objc @@ -117,11 +125,3 @@ func (n_ NNResizeBilinear) ResizeWidth() uint { rv := objc.Call[uint](n_, objc.Sel("resizeWidth")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnresizebilinear/3012968-resizeheight?language=objc -func (n_ NNResizeBilinear) ResizeHeight() uint { - rv := objc.Call[uint](n_, objc.Sel("resizeHeight")) - return rv -} diff --git a/macos/mps/nn_scale_node.gen.go b/macos/mps/nn_scale_node.gen.go index 792bb366..3c227377 100644 --- a/macos/mps/nn_scale_node.gen.go +++ b/macos/mps/nn_scale_node.gen.go @@ -34,35 +34,6 @@ func NNScaleNodeFrom(ptr unsafe.Pointer) NNScaleNode { } } -func (n_ NNScaleNode) InitWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNScaleNode { - rv := objc.Call[NNScaleNode](n_, objc.Sel("initWithSource:outputSize:"), sourceNode, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915285-initwithsource?language=objc -func NewNNScaleNodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNScaleNode { - instance := NNScaleNodeClass.Alloc().InitWithSourceOutputSize(sourceNode, size) - instance.Autorelease() - return instance -} - -func (n_ NNScaleNode) InitWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNScaleNode { - po1 := objc.WrapAsProtocol("MPSImageTransformProvider", transformProvider) - rv := objc.Call[NNScaleNode](n_, objc.Sel("initWithSource:transformProvider:outputSize:"), sourceNode, po1, size) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915278-initwithsource?language=objc -func NewNNScaleNodeWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNScaleNode { - instance := NNScaleNodeClass.Alloc().InitWithSourceTransformProviderOutputSize(sourceNode, transformProvider, size) - instance.Autorelease() - return instance -} - func (nc _NNScaleNodeClass) NodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNScaleNode { rv := objc.Call[NNScaleNode](nc, objc.Sel("nodeWithSource:outputSize:"), sourceNode, size) return rv @@ -75,17 +46,18 @@ func NNScaleNode_NodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Si return NNScaleNodeClass.NodeWithSourceOutputSize(sourceNode, size) } -func (nc _NNScaleNodeClass) NodeWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNScaleNode { - po1 := objc.WrapAsProtocol("MPSImageTransformProvider", transformProvider) - rv := objc.Call[NNScaleNode](nc, objc.Sel("nodeWithSource:transformProvider:outputSize:"), sourceNode, po1, size) +func (n_ NNScaleNode) InitWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNScaleNode { + rv := objc.Call[NNScaleNode](n_, objc.Sel("initWithSource:outputSize:"), sourceNode, size) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915286-nodewithsource?language=objc -func NNScaleNode_NodeWithSourceTransformProviderOutputSize(sourceNode INNImageNode, transformProvider PImageTransformProvider, size metal.Size) NNScaleNode { - return NNScaleNodeClass.NodeWithSourceTransformProviderOutputSize(sourceNode, transformProvider, size) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnscalenode/2915285-initwithsource?language=objc +func NewNNScaleNodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNScaleNode { + instance := NNScaleNodeClass.Alloc().InitWithSourceOutputSize(sourceNode, size) + instance.Autorelease() + return instance } func (nc _NNScaleNodeClass) Alloc() NNScaleNode { diff --git a/macos/mps/nn_subtraction_node.gen.go b/macos/mps/nn_subtraction_node.gen.go index abaae268..414adbbe 100644 --- a/macos/mps/nn_subtraction_node.gen.go +++ b/macos/mps/nn_subtraction_node.gen.go @@ -65,20 +65,6 @@ func NNSubtractionNode_NodeWithSources(sourceNodes []INNImageNode) NNSubtraction return NNSubtractionNodeClass.NodeWithSources(sourceNodes) } -func (n_ NNSubtractionNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNSubtractionNode { - rv := objc.Call[NNSubtractionNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc -func NewNNSubtractionNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNSubtractionNode { - instance := NNSubtractionNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) - instance.Autorelease() - return instance -} - func (nc _NNSubtractionNodeClass) NodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNSubtractionNode { rv := objc.Call[NNSubtractionNode](nc, objc.Sel("nodeWithLeftSource:rightSource:"), left, right) return rv @@ -104,3 +90,17 @@ func NewNNSubtractionNodeWithSources(sourceNodes []INNImageNode) NNSubtractionNo instance.Autorelease() return instance } + +func (n_ NNSubtractionNode) InitWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNSubtractionNode { + rv := objc.Call[NNSubtractionNode](n_, objc.Sel("initWithLeftSource:rightSource:"), left, right) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2890825-initwithleftsource?language=objc +func NewNNSubtractionNodeWithLeftSourceRightSource(left INNImageNode, right INNImageNode) NNSubtractionNode { + instance := NNSubtractionNodeClass.Alloc().InitWithLeftSourceRightSource(left, right) + instance.Autorelease() + return instance +} diff --git a/macos/mps/polygon_acceleration_structure.gen.go b/macos/mps/polygon_acceleration_structure.gen.go index a24a1b80..cbc6f2a7 100644 --- a/macos/mps/polygon_acceleration_structure.gen.go +++ b/macos/mps/polygon_acceleration_structure.gen.go @@ -54,32 +54,32 @@ func (p_ PolygonAccelerationStructure) Init() PolygonAccelerationStructure { return rv } -func (p_ PolygonAccelerationStructure) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) PolygonAccelerationStructure { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[PolygonAccelerationStructure](p_, objc.Sel("copyWithZone:device:"), zone, po1) +func (p_ PolygonAccelerationStructure) InitWithDevice(device metal.PDevice) PolygonAccelerationStructure { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[PolygonAccelerationStructure](p_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func PolygonAccelerationStructure_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) PolygonAccelerationStructure { - instance := PolygonAccelerationStructureClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewPolygonAccelerationStructureWithDevice(device metal.PDevice) PolygonAccelerationStructure { + instance := PolygonAccelerationStructureClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (p_ PolygonAccelerationStructure) InitWithDevice(device metal.PDevice) PolygonAccelerationStructure { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[PolygonAccelerationStructure](p_, objc.Sel("initWithDevice:"), po0) +func (p_ PolygonAccelerationStructure) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) PolygonAccelerationStructure { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[PolygonAccelerationStructure](p_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewPolygonAccelerationStructureWithDevice(device metal.PDevice) PolygonAccelerationStructure { - instance := PolygonAccelerationStructureClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func PolygonAccelerationStructure_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) PolygonAccelerationStructure { + instance := PolygonAccelerationStructureClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/predicate.gen.go b/macos/mps/predicate.gen.go index 7d340bb3..ede08e6a 100644 --- a/macos/mps/predicate.gen.go +++ b/macos/mps/predicate.gen.go @@ -51,32 +51,32 @@ func NewPredicateWithDevice(device metal.PDevice) Predicate { return instance } -func (p_ Predicate) InitWithBufferOffset(buffer metal.PBuffer, offset uint) Predicate { +func (pc _PredicateClass) PredicateWithBufferOffset(buffer metal.PBuffer, offset uint) Predicate { po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[Predicate](p_, objc.Sel("initWithBuffer:offset:"), po0, offset) + rv := objc.Call[Predicate](pc, objc.Sel("predicateWithBuffer:offset:"), po0, offset) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpspredicate/3114034-initwithbuffer?language=objc -func NewPredicateWithBufferOffset(buffer metal.PBuffer, offset uint) Predicate { - instance := PredicateClass.Alloc().InitWithBufferOffset(buffer, offset) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpspredicate/3114038-predicatewithbuffer?language=objc +func Predicate_PredicateWithBufferOffset(buffer metal.PBuffer, offset uint) Predicate { + return PredicateClass.PredicateWithBufferOffset(buffer, offset) } -func (pc _PredicateClass) PredicateWithBufferOffset(buffer metal.PBuffer, offset uint) Predicate { +func (p_ Predicate) InitWithBufferOffset(buffer metal.PBuffer, offset uint) Predicate { po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[Predicate](pc, objc.Sel("predicateWithBuffer:offset:"), po0, offset) + rv := objc.Call[Predicate](p_, objc.Sel("initWithBuffer:offset:"), po0, offset) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpspredicate/3114038-predicatewithbuffer?language=objc -func Predicate_PredicateWithBufferOffset(buffer metal.PBuffer, offset uint) Predicate { - return PredicateClass.PredicateWithBufferOffset(buffer, offset) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpspredicate/3114034-initwithbuffer?language=objc +func NewPredicateWithBufferOffset(buffer metal.PBuffer, offset uint) Predicate { + instance := PredicateClass.Alloc().InitWithBufferOffset(buffer, offset) + instance.Autorelease() + return instance } func (pc _PredicateClass) Alloc() Predicate { diff --git a/macos/mps/quadrilateral_acceleration_structure.gen.go b/macos/mps/quadrilateral_acceleration_structure.gen.go index a8402e6b..3bc4324f 100644 --- a/macos/mps/quadrilateral_acceleration_structure.gen.go +++ b/macos/mps/quadrilateral_acceleration_structure.gen.go @@ -54,32 +54,32 @@ func (q_ QuadrilateralAccelerationStructure) Init() QuadrilateralAccelerationStr return rv } -func (q_ QuadrilateralAccelerationStructure) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) QuadrilateralAccelerationStructure { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[QuadrilateralAccelerationStructure](q_, objc.Sel("copyWithZone:device:"), zone, po1) +func (q_ QuadrilateralAccelerationStructure) InitWithDevice(device metal.PDevice) QuadrilateralAccelerationStructure { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[QuadrilateralAccelerationStructure](q_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func QuadrilateralAccelerationStructure_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) QuadrilateralAccelerationStructure { - instance := QuadrilateralAccelerationStructureClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewQuadrilateralAccelerationStructureWithDevice(device metal.PDevice) QuadrilateralAccelerationStructure { + instance := QuadrilateralAccelerationStructureClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (q_ QuadrilateralAccelerationStructure) InitWithDevice(device metal.PDevice) QuadrilateralAccelerationStructure { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[QuadrilateralAccelerationStructure](q_, objc.Sel("initWithDevice:"), po0) +func (q_ QuadrilateralAccelerationStructure) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) QuadrilateralAccelerationStructure { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[QuadrilateralAccelerationStructure](q_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewQuadrilateralAccelerationStructureWithDevice(device metal.PDevice) QuadrilateralAccelerationStructure { - instance := QuadrilateralAccelerationStructureClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func QuadrilateralAccelerationStructure_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) QuadrilateralAccelerationStructure { + instance := QuadrilateralAccelerationStructureClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/ray_intersector.gen.go b/macos/mps/ray_intersector.gen.go index b78ad265..cdf35451 100644 --- a/macos/mps/ray_intersector.gen.go +++ b/macos/mps/ray_intersector.gen.go @@ -54,32 +54,32 @@ func (r_ RayIntersector) Init() RayIntersector { return rv } -func (r_ RayIntersector) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) RayIntersector { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RayIntersector](r_, objc.Sel("copyWithZone:device:"), zone, po1) +func (r_ RayIntersector) InitWithDevice(device metal.PDevice) RayIntersector { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[RayIntersector](r_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func RayIntersector_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) RayIntersector { - instance := RayIntersectorClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewRayIntersectorWithDevice(device metal.PDevice) RayIntersector { + instance := RayIntersectorClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (r_ RayIntersector) InitWithDevice(device metal.PDevice) RayIntersector { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RayIntersector](r_, objc.Sel("initWithDevice:"), po0) +func (r_ RayIntersector) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) RayIntersector { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[RayIntersector](r_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewRayIntersectorWithDevice(device metal.PDevice) RayIntersector { - instance := RayIntersectorClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func RayIntersector_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) RayIntersector { + instance := RayIntersectorClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/rnn_descriptor.gen.go b/macos/mps/rnn_descriptor.gen.go index d1193da2..51d6bcc1 100644 --- a/macos/mps/rnn_descriptor.gen.go +++ b/macos/mps/rnn_descriptor.gen.go @@ -18,16 +18,16 @@ type _RNNDescriptorClass struct { // An interface definition for the [RNNDescriptor] class. type IRNNDescriptor interface { objc.IObject + LayerSequenceDirection() RNNSequenceDirection + SetLayerSequenceDirection(value RNNSequenceDirection) + OutputFeatureChannels() uint + SetOutputFeatureChannels(value uint) UseLayerInputUnitTransformMode() bool SetUseLayerInputUnitTransformMode(value bool) InputFeatureChannels() uint SetInputFeatureChannels(value uint) UseFloat32Weights() bool SetUseFloat32Weights(value bool) - OutputFeatureChannels() uint - SetOutputFeatureChannels(value uint) - LayerSequenceDirection() RNNSequenceDirection - SetLayerSequenceDirection(value RNNSequenceDirection) } // A description of a recursive neural network block or layer. [Full Topic] @@ -65,75 +65,75 @@ func (r_ RNNDescriptor) Init() RNNDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865687-uselayerinputunittransformmode?language=objc -func (r_ RNNDescriptor) UseLayerInputUnitTransformMode() bool { - rv := objc.Call[bool](r_, objc.Sel("useLayerInputUnitTransformMode")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865730-layersequencedirection?language=objc +func (r_ RNNDescriptor) LayerSequenceDirection() RNNSequenceDirection { + rv := objc.Call[RNNSequenceDirection](r_, objc.Sel("layerSequenceDirection")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865687-uselayerinputunittransformmode?language=objc -func (r_ RNNDescriptor) SetUseLayerInputUnitTransformMode(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setUseLayerInputUnitTransformMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865730-layersequencedirection?language=objc +func (r_ RNNDescriptor) SetLayerSequenceDirection(value RNNSequenceDirection) { + objc.Call[objc.Void](r_, objc.Sel("setLayerSequenceDirection:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865707-inputfeaturechannels?language=objc -func (r_ RNNDescriptor) InputFeatureChannels() uint { - rv := objc.Call[uint](r_, objc.Sel("inputFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865702-outputfeaturechannels?language=objc +func (r_ RNNDescriptor) OutputFeatureChannels() uint { + rv := objc.Call[uint](r_, objc.Sel("outputFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865707-inputfeaturechannels?language=objc -func (r_ RNNDescriptor) SetInputFeatureChannels(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setInputFeatureChannels:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865702-outputfeaturechannels?language=objc +func (r_ RNNDescriptor) SetOutputFeatureChannels(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setOutputFeatureChannels:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2881202-usefloat32weights?language=objc -func (r_ RNNDescriptor) UseFloat32Weights() bool { - rv := objc.Call[bool](r_, objc.Sel("useFloat32Weights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865687-uselayerinputunittransformmode?language=objc +func (r_ RNNDescriptor) UseLayerInputUnitTransformMode() bool { + rv := objc.Call[bool](r_, objc.Sel("useLayerInputUnitTransformMode")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2881202-usefloat32weights?language=objc -func (r_ RNNDescriptor) SetUseFloat32Weights(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setUseFloat32Weights:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865687-uselayerinputunittransformmode?language=objc +func (r_ RNNDescriptor) SetUseLayerInputUnitTransformMode(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setUseLayerInputUnitTransformMode:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865702-outputfeaturechannels?language=objc -func (r_ RNNDescriptor) OutputFeatureChannels() uint { - rv := objc.Call[uint](r_, objc.Sel("outputFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865707-inputfeaturechannels?language=objc +func (r_ RNNDescriptor) InputFeatureChannels() uint { + rv := objc.Call[uint](r_, objc.Sel("inputFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865702-outputfeaturechannels?language=objc -func (r_ RNNDescriptor) SetOutputFeatureChannels(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setOutputFeatureChannels:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865707-inputfeaturechannels?language=objc +func (r_ RNNDescriptor) SetInputFeatureChannels(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setInputFeatureChannels:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865730-layersequencedirection?language=objc -func (r_ RNNDescriptor) LayerSequenceDirection() RNNSequenceDirection { - rv := objc.Call[RNNSequenceDirection](r_, objc.Sel("layerSequenceDirection")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2881202-usefloat32weights?language=objc +func (r_ RNNDescriptor) UseFloat32Weights() bool { + rv := objc.Call[bool](r_, objc.Sel("useFloat32Weights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2865730-layersequencedirection?language=objc -func (r_ RNNDescriptor) SetLayerSequenceDirection(value RNNSequenceDirection) { - objc.Call[objc.Void](r_, objc.Sel("setLayerSequenceDirection:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnndescriptor/2881202-usefloat32weights?language=objc +func (r_ RNNDescriptor) SetUseFloat32Weights(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setUseFloat32Weights:"), value) } diff --git a/macos/mps/rnn_image_inference_layer.gen.go b/macos/mps/rnn_image_inference_layer.gen.go index 8ac7a5ca..6ea831f8 100644 --- a/macos/mps/rnn_image_inference_layer.gen.go +++ b/macos/mps/rnn_image_inference_layer.gen.go @@ -24,15 +24,15 @@ type IRNNImageInferenceLayer interface { EncodeBidirectionalSequenceToCommandBufferObjectSourceSequenceDestinationForwardImagesDestinationBackwardImages(commandBufferObject objc.IObject, sourceSequence []IImage, destinationForwardImages []IImage, destinationBackwardImages []IImage) EncodeSequenceToCommandBufferSourceImagesDestinationImagesRecurrentInputStateRecurrentOutputStates(commandBuffer metal.PCommandBuffer, sourceImages []IImage, destinationImages []IImage, recurrentInputState IRNNRecurrentImageState, recurrentOutputStates foundation.IMutableArray) EncodeSequenceToCommandBufferObjectSourceImagesDestinationImagesRecurrentInputStateRecurrentOutputStates(commandBufferObject objc.IObject, sourceImages []IImage, destinationImages []IImage, recurrentInputState IRNNRecurrentImageState, recurrentOutputStates foundation.IMutableArray) - NumberOfLayers() uint - BidirectionalCombineMode() RNNBidirectionalCombineMode - SetBidirectionalCombineMode(value RNNBidirectionalCombineMode) + RecurrentOutputIsTemporary() bool + SetRecurrentOutputIsTemporary(value bool) OutputFeatureChannels() uint InputFeatureChannels() uint + BidirectionalCombineMode() RNNBidirectionalCombineMode + SetBidirectionalCombineMode(value RNNBidirectionalCombineMode) StoreAllIntermediateStates() bool SetStoreAllIntermediateStates(value bool) - RecurrentOutputIsTemporary() bool - SetRecurrentOutputIsTemporary(value bool) + NumberOfLayers() uint } // A recurrent neural network layer for inference on Metal Performance Shaders images. [Full Topic] @@ -48,17 +48,17 @@ func RNNImageInferenceLayerFrom(ptr unsafe.Pointer) RNNImageInferenceLayer { } } -func (r_ RNNImageInferenceLayer) InitWithDeviceRnnDescriptors(device metal.PDevice, rnnDescriptors []IRNNDescriptor) RNNImageInferenceLayer { +func (r_ RNNImageInferenceLayer) InitWithDeviceRnnDescriptor(device metal.PDevice, rnnDescriptor IRNNDescriptor) RNNImageInferenceLayer { po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RNNImageInferenceLayer](r_, objc.Sel("initWithDevice:rnnDescriptors:"), po0, rnnDescriptors) + rv := objc.Call[RNNImageInferenceLayer](r_, objc.Sel("initWithDevice:rnnDescriptor:"), po0, rnnDescriptor) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865682-initwithdevice?language=objc -func NewRNNImageInferenceLayerWithDeviceRnnDescriptors(device metal.PDevice, rnnDescriptors []IRNNDescriptor) RNNImageInferenceLayer { - instance := RNNImageInferenceLayerClass.Alloc().InitWithDeviceRnnDescriptors(device, rnnDescriptors) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865691-initwithdevice?language=objc +func NewRNNImageInferenceLayerWithDeviceRnnDescriptor(device metal.PDevice, rnnDescriptor IRNNDescriptor) RNNImageInferenceLayer { + instance := RNNImageInferenceLayerClass.Alloc().InitWithDeviceRnnDescriptor(device, rnnDescriptor) instance.Autorelease() return instance } @@ -78,21 +78,6 @@ func RNNImageInferenceLayer_CopyWithZoneDevice(zone unsafe.Pointer, device metal return instance } -func (r_ RNNImageInferenceLayer) InitWithDeviceRnnDescriptor(device metal.PDevice, rnnDescriptor IRNNDescriptor) RNNImageInferenceLayer { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RNNImageInferenceLayer](r_, objc.Sel("initWithDevice:rnnDescriptor:"), po0, rnnDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865691-initwithdevice?language=objc -func NewRNNImageInferenceLayerWithDeviceRnnDescriptor(device metal.PDevice, rnnDescriptor IRNNDescriptor) RNNImageInferenceLayer { - instance := RNNImageInferenceLayerClass.Alloc().InitWithDeviceRnnDescriptor(device, rnnDescriptor) - instance.Autorelease() - return instance -} - func (rc _RNNImageInferenceLayerClass) Alloc() RNNImageInferenceLayer { rv := objc.Call[RNNImageInferenceLayer](rc, objc.Sel("alloc")) return rv @@ -160,25 +145,17 @@ func (r_ RNNImageInferenceLayer) EncodeSequenceToCommandBufferObjectSourceImages // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865697-numberoflayers?language=objc -func (r_ RNNImageInferenceLayer) NumberOfLayers() uint { - rv := objc.Call[uint](r_, objc.Sel("numberOfLayers")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865737-bidirectionalcombinemode?language=objc -func (r_ RNNImageInferenceLayer) BidirectionalCombineMode() RNNBidirectionalCombineMode { - rv := objc.Call[RNNBidirectionalCombineMode](r_, objc.Sel("bidirectionalCombineMode")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865749-recurrentoutputistemporary?language=objc +func (r_ RNNImageInferenceLayer) RecurrentOutputIsTemporary() bool { + rv := objc.Call[bool](r_, objc.Sel("recurrentOutputIsTemporary")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865737-bidirectionalcombinemode?language=objc -func (r_ RNNImageInferenceLayer) SetBidirectionalCombineMode(value RNNBidirectionalCombineMode) { - objc.Call[objc.Void](r_, objc.Sel("setBidirectionalCombineMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865749-recurrentoutputistemporary?language=objc +func (r_ RNNImageInferenceLayer) SetRecurrentOutputIsTemporary(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setRecurrentOutputIsTemporary:"), value) } // [Full Topic] @@ -197,6 +174,21 @@ func (r_ RNNImageInferenceLayer) InputFeatureChannels() uint { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865737-bidirectionalcombinemode?language=objc +func (r_ RNNImageInferenceLayer) BidirectionalCombineMode() RNNBidirectionalCombineMode { + rv := objc.Call[RNNBidirectionalCombineMode](r_, objc.Sel("bidirectionalCombineMode")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865737-bidirectionalcombinemode?language=objc +func (r_ RNNImageInferenceLayer) SetBidirectionalCombineMode(value RNNBidirectionalCombineMode) { + objc.Call[objc.Void](r_, objc.Sel("setBidirectionalCombineMode:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865706-storeallintermediatestates?language=objc @@ -214,15 +206,8 @@ func (r_ RNNImageInferenceLayer) SetStoreAllIntermediateStates(value bool) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865749-recurrentoutputistemporary?language=objc -func (r_ RNNImageInferenceLayer) RecurrentOutputIsTemporary() bool { - rv := objc.Call[bool](r_, objc.Sel("recurrentOutputIsTemporary")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865697-numberoflayers?language=objc +func (r_ RNNImageInferenceLayer) NumberOfLayers() uint { + rv := objc.Call[uint](r_, objc.Sel("numberOfLayers")) return rv } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnimageinferencelayer/2865749-recurrentoutputistemporary?language=objc -func (r_ RNNImageInferenceLayer) SetRecurrentOutputIsTemporary(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setRecurrentOutputIsTemporary:"), value) -} diff --git a/macos/mps/rnn_matrix_inference_layer.gen.go b/macos/mps/rnn_matrix_inference_layer.gen.go index 5063d798..7708a743 100644 --- a/macos/mps/rnn_matrix_inference_layer.gen.go +++ b/macos/mps/rnn_matrix_inference_layer.gen.go @@ -20,21 +20,19 @@ type _RNNMatrixInferenceLayerClass struct { // An interface definition for the [RNNMatrixInferenceLayer] class. type IRNNMatrixInferenceLayer interface { IKernel - EncodeSequenceToCommandBufferSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsRecurrentInputStateRecurrentOutputStates(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) - EncodeSequenceToCommandBufferObjectSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsRecurrentInputStateRecurrentOutputStates(commandBufferObject objc.IObject, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) - EncodeSequenceToCommandBufferSourceMatricesDestinationMatricesRecurrentInputStateRecurrentOutputStates(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, destinationMatrices []IMatrix, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) - EncodeSequenceToCommandBufferObjectSourceMatricesDestinationMatricesRecurrentInputStateRecurrentOutputStates(commandBufferObject objc.IObject, sourceMatrices []IMatrix, destinationMatrices []IMatrix, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) EncodeBidirectionalSequenceToCommandBufferSourceSequenceDestinationForwardMatricesDestinationBackwardMatrices(commandBuffer metal.PCommandBuffer, sourceSequence []IMatrix, destinationForwardMatrices []IMatrix, destinationBackwardMatrices []IMatrix) EncodeBidirectionalSequenceToCommandBufferObjectSourceSequenceDestinationForwardMatricesDestinationBackwardMatrices(commandBufferObject objc.IObject, sourceSequence []IMatrix, destinationForwardMatrices []IMatrix, destinationBackwardMatrices []IMatrix) - BidirectionalCombineMode() RNNBidirectionalCombineMode - SetBidirectionalCombineMode(value RNNBidirectionalCombineMode) + EncodeSequenceToCommandBufferSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsRecurrentInputStateRecurrentOutputStates(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) + EncodeSequenceToCommandBufferObjectSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsRecurrentInputStateRecurrentOutputStates(commandBufferObject objc.IObject, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) RecurrentOutputIsTemporary() bool SetRecurrentOutputIsTemporary(value bool) - NumberOfLayers() uint OutputFeatureChannels() uint InputFeatureChannels() uint + BidirectionalCombineMode() RNNBidirectionalCombineMode + SetBidirectionalCombineMode(value RNNBidirectionalCombineMode) StoreAllIntermediateStates() bool SetStoreAllIntermediateStates(value bool) + NumberOfLayers() uint } // A recurrent neural network layer for inference on Metal Performance Shaders matrices. [Full Topic] @@ -50,21 +48,6 @@ func RNNMatrixInferenceLayerFrom(ptr unsafe.Pointer) RNNMatrixInferenceLayer { } } -func (r_ RNNMatrixInferenceLayer) InitWithDeviceRnnDescriptor(device metal.PDevice, rnnDescriptor IRNNDescriptor) RNNMatrixInferenceLayer { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RNNMatrixInferenceLayer](r_, objc.Sel("initWithDevice:rnnDescriptor:"), po0, rnnDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2865704-initwithdevice?language=objc -func NewRNNMatrixInferenceLayerWithDeviceRnnDescriptor(device metal.PDevice, rnnDescriptor IRNNDescriptor) RNNMatrixInferenceLayer { - instance := RNNMatrixInferenceLayerClass.Alloc().InitWithDeviceRnnDescriptor(device, rnnDescriptor) - instance.Autorelease() - return instance -} - func (r_ RNNMatrixInferenceLayer) InitWithDeviceRnnDescriptors(device metal.PDevice, rnnDescriptors []IRNNDescriptor) RNNMatrixInferenceLayer { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[RNNMatrixInferenceLayer](r_, objc.Sel("initWithDevice:rnnDescriptors:"), po0, rnnDescriptors) @@ -130,36 +113,6 @@ func NewRNNMatrixInferenceLayerWithDevice(device metal.PDevice) RNNMatrixInferen return instance } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2966781-encodesequencetocommandbuffer?language=objc -func (r_ RNNMatrixInferenceLayer) EncodeSequenceToCommandBufferSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsRecurrentInputStateRecurrentOutputStates(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](r_, objc.Sel("encodeSequenceToCommandBuffer:sourceMatrices:sourceOffsets:destinationMatrices:destinationOffsets:recurrentInputState:recurrentOutputStates:"), po0, sourceMatrices, sourceOffsets, destinationMatrices, destinationOffsets, recurrentInputState, recurrentOutputStates) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2966781-encodesequencetocommandbuffer?language=objc -func (r_ RNNMatrixInferenceLayer) EncodeSequenceToCommandBufferObjectSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsRecurrentInputStateRecurrentOutputStates(commandBufferObject objc.IObject, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) { - objc.Call[objc.Void](r_, objc.Sel("encodeSequenceToCommandBuffer:sourceMatrices:sourceOffsets:destinationMatrices:destinationOffsets:recurrentInputState:recurrentOutputStates:"), commandBufferObject, sourceMatrices, sourceOffsets, destinationMatrices, destinationOffsets, recurrentInputState, recurrentOutputStates) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2865705-encodesequencetocommandbuffer?language=objc -func (r_ RNNMatrixInferenceLayer) EncodeSequenceToCommandBufferSourceMatricesDestinationMatricesRecurrentInputStateRecurrentOutputStates(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, destinationMatrices []IMatrix, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](r_, objc.Sel("encodeSequenceToCommandBuffer:sourceMatrices:destinationMatrices:recurrentInputState:recurrentOutputStates:"), po0, sourceMatrices, destinationMatrices, recurrentInputState, recurrentOutputStates) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2865705-encodesequencetocommandbuffer?language=objc -func (r_ RNNMatrixInferenceLayer) EncodeSequenceToCommandBufferObjectSourceMatricesDestinationMatricesRecurrentInputStateRecurrentOutputStates(commandBufferObject objc.IObject, sourceMatrices []IMatrix, destinationMatrices []IMatrix, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) { - objc.Call[objc.Void](r_, objc.Sel("encodeSequenceToCommandBuffer:sourceMatrices:destinationMatrices:recurrentInputState:recurrentOutputStates:"), commandBufferObject, sourceMatrices, destinationMatrices, recurrentInputState, recurrentOutputStates) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2865698-encodebidirectionalsequencetocom?language=objc @@ -177,17 +130,17 @@ func (r_ RNNMatrixInferenceLayer) EncodeBidirectionalSequenceToCommandBufferObje // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2865739-bidirectionalcombinemode?language=objc -func (r_ RNNMatrixInferenceLayer) BidirectionalCombineMode() RNNBidirectionalCombineMode { - rv := objc.Call[RNNBidirectionalCombineMode](r_, objc.Sel("bidirectionalCombineMode")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2966781-encodesequencetocommandbuffer?language=objc +func (r_ RNNMatrixInferenceLayer) EncodeSequenceToCommandBufferSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsRecurrentInputStateRecurrentOutputStates(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + objc.Call[objc.Void](r_, objc.Sel("encodeSequenceToCommandBuffer:sourceMatrices:sourceOffsets:destinationMatrices:destinationOffsets:recurrentInputState:recurrentOutputStates:"), po0, sourceMatrices, sourceOffsets, destinationMatrices, destinationOffsets, recurrentInputState, recurrentOutputStates) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2865739-bidirectionalcombinemode?language=objc -func (r_ RNNMatrixInferenceLayer) SetBidirectionalCombineMode(value RNNBidirectionalCombineMode) { - objc.Call[objc.Void](r_, objc.Sel("setBidirectionalCombineMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2966781-encodesequencetocommandbuffer?language=objc +func (r_ RNNMatrixInferenceLayer) EncodeSequenceToCommandBufferObjectSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsRecurrentInputStateRecurrentOutputStates(commandBufferObject objc.IObject, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray) { + objc.Call[objc.Void](r_, objc.Sel("encodeSequenceToCommandBuffer:sourceMatrices:sourceOffsets:destinationMatrices:destinationOffsets:recurrentInputState:recurrentOutputStates:"), commandBufferObject, sourceMatrices, sourceOffsets, destinationMatrices, destinationOffsets, recurrentInputState, recurrentOutputStates) } // [Full Topic] @@ -205,14 +158,6 @@ func (r_ RNNMatrixInferenceLayer) SetRecurrentOutputIsTemporary(value bool) { objc.Call[objc.Void](r_, objc.Sel("setRecurrentOutputIsTemporary:"), value) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2873347-numberoflayers?language=objc -func (r_ RNNMatrixInferenceLayer) NumberOfLayers() uint { - rv := objc.Call[uint](r_, objc.Sel("numberOfLayers")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2890142-outputfeaturechannels?language=objc @@ -229,6 +174,21 @@ func (r_ RNNMatrixInferenceLayer) InputFeatureChannels() uint { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2865739-bidirectionalcombinemode?language=objc +func (r_ RNNMatrixInferenceLayer) BidirectionalCombineMode() RNNBidirectionalCombineMode { + rv := objc.Call[RNNBidirectionalCombineMode](r_, objc.Sel("bidirectionalCombineMode")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2865739-bidirectionalcombinemode?language=objc +func (r_ RNNMatrixInferenceLayer) SetBidirectionalCombineMode(value RNNBidirectionalCombineMode) { + objc.Call[objc.Void](r_, objc.Sel("setBidirectionalCombineMode:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2865729-storeallintermediatestates?language=objc @@ -243,3 +203,11 @@ func (r_ RNNMatrixInferenceLayer) StoreAllIntermediateStates() bool { func (r_ RNNMatrixInferenceLayer) SetStoreAllIntermediateStates(value bool) { objc.Call[objc.Void](r_, objc.Sel("setStoreAllIntermediateStates:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2873347-numberoflayers?language=objc +func (r_ RNNMatrixInferenceLayer) NumberOfLayers() uint { + rv := objc.Call[uint](r_, objc.Sel("numberOfLayers")) + return rv +} diff --git a/macos/mps/rnn_matrix_training_layer.gen.go b/macos/mps/rnn_matrix_training_layer.gen.go index 525a754a..ccb7b5c5 100644 --- a/macos/mps/rnn_matrix_training_layer.gen.go +++ b/macos/mps/rnn_matrix_training_layer.gen.go @@ -20,30 +20,26 @@ type _RNNMatrixTrainingLayerClass struct { // An interface definition for the [RNNMatrixTrainingLayer] class. type IRNNMatrixTrainingLayer interface { IKernel - CreateWeightMatrices(matricesOut foundation.IMutableArray) - EncodeForwardSequenceToCommandBufferSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsTrainingStatesRecurrentInputStateRecurrentOutputStatesWeights(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, trainingStates foundation.IMutableArray, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray, weights []IMatrix) - EncodeForwardSequenceToCommandBufferObjectSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsTrainingStatesRecurrentInputStateRecurrentOutputStatesWeights(commandBufferObject objc.IObject, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, trainingStates foundation.IMutableArray, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray, weights []IMatrix) - EncodeForwardSequenceToCommandBufferSourceMatricesDestinationMatricesTrainingStatesWeights(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, destinationMatrices []IMatrix, trainingStates foundation.IMutableArray, weights []IMatrix) - EncodeForwardSequenceToCommandBufferObjectSourceMatricesDestinationMatricesTrainingStatesWeights(commandBufferObject objc.IObject, sourceMatrices []IMatrix, destinationMatrices []IMatrix, trainingStates foundation.IMutableArray, weights []IMatrix) - EncodeCopyWeightsToCommandBufferWeightsMatrixIdMatrixCopyFromWeightsToMatrixMatrixOffset(commandBuffer metal.PCommandBuffer, weights []IMatrix, matrixId RNNMatrixId, matrix IMatrix, copyFromWeightsToMatrix bool, matrixOffset metal.Origin) - EncodeCopyWeightsToCommandBufferObjectWeightsMatrixIdMatrixCopyFromWeightsToMatrixMatrixOffset(commandBufferObject objc.IObject, weights []IMatrix, matrixId RNNMatrixId, matrix IMatrix, copyFromWeightsToMatrix bool, matrixOffset metal.Origin) CreateTemporaryWeightGradientMatricesDataTypeCommandBuffer(matricesOut foundation.IMutableArray, dataType DataType, commandBuffer metal.PCommandBuffer) CreateTemporaryWeightGradientMatricesDataTypeCommandBufferObject(matricesOut foundation.IMutableArray, dataType DataType, commandBufferObject objc.IObject) - EncodeGradientSequenceToCommandBufferForwardSourcesForwardSourceOffsetsSourceGradientsSourceGradientOffsetsDestinationGradientsDestinationOffsetsWeightGradientsTrainingStatesRecurrentInputStateRecurrentOutputStatesWeights(commandBuffer metal.PCommandBuffer, forwardSources []IMatrix, forwardSourceOffsets *uint, sourceGradients []IMatrix, sourceGradientOffsets *uint, destinationGradients []IMatrix, destinationOffsets *uint, weightGradients []IMatrix, trainingStates []IRNNMatrixTrainingState, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray, weights []IMatrix) - EncodeGradientSequenceToCommandBufferObjectForwardSourcesForwardSourceOffsetsSourceGradientsSourceGradientOffsetsDestinationGradientsDestinationOffsetsWeightGradientsTrainingStatesRecurrentInputStateRecurrentOutputStatesWeights(commandBufferObject objc.IObject, forwardSources []IMatrix, forwardSourceOffsets *uint, sourceGradients []IMatrix, sourceGradientOffsets *uint, destinationGradients []IMatrix, destinationOffsets *uint, weightGradients []IMatrix, trainingStates []IRNNMatrixTrainingState, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray, weights []IMatrix) - CreateWeightGradientMatricesDataType(matricesOut foundation.IMutableArray, dataType DataType) + EncodeCopyWeightsToCommandBufferWeightsMatrixIdMatrixCopyFromWeightsToMatrixMatrixOffset(commandBuffer metal.PCommandBuffer, weights []IMatrix, matrixId RNNMatrixId, matrix IMatrix, copyFromWeightsToMatrix bool, matrixOffset metal.Origin) + EncodeCopyWeightsToCommandBufferObjectWeightsMatrixIdMatrixCopyFromWeightsToMatrixMatrixOffset(commandBufferObject objc.IObject, weights []IMatrix, matrixId RNNMatrixId, matrix IMatrix, copyFromWeightsToMatrix bool, matrixOffset metal.Origin) + EncodeForwardSequenceToCommandBufferSourceMatricesDestinationMatricesTrainingStatesWeights(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, destinationMatrices []IMatrix, trainingStates foundation.IMutableArray, weights []IMatrix) + EncodeForwardSequenceToCommandBufferObjectSourceMatricesDestinationMatricesTrainingStatesWeights(commandBufferObject objc.IObject, sourceMatrices []IMatrix, destinationMatrices []IMatrix, trainingStates foundation.IMutableArray, weights []IMatrix) EncodeGradientSequenceToCommandBufferForwardSourcesSourceGradientsDestinationGradientsWeightGradientsTrainingStatesWeights(commandBuffer metal.PCommandBuffer, forwardSources []IMatrix, sourceGradients []IMatrix, destinationGradients []IMatrix, weightGradients []IMatrix, trainingStates []IRNNMatrixTrainingState, weights []IMatrix) EncodeGradientSequenceToCommandBufferObjectForwardSourcesSourceGradientsDestinationGradientsWeightGradientsTrainingStatesWeights(commandBufferObject objc.IObject, forwardSources []IMatrix, sourceGradients []IMatrix, destinationGradients []IMatrix, weightGradients []IMatrix, trainingStates []IRNNMatrixTrainingState, weights []IMatrix) - AccumulateWeightGradients() bool - SetAccumulateWeightGradients(value bool) + CreateWeightMatrices(matricesOut foundation.IMutableArray) + CreateWeightGradientMatricesDataType(matricesOut foundation.IMutableArray, dataType DataType) RecurrentOutputIsTemporary() bool SetRecurrentOutputIsTemporary(value bool) - StoreAllIntermediateStates() bool - SetStoreAllIntermediateStates(value bool) - InputFeatureChannels() uint + AccumulateWeightGradients() bool + SetAccumulateWeightGradients(value bool) OutputFeatureChannels() uint + InputFeatureChannels() uint TrainingStateIsTemporary() bool SetTrainingStateIsTemporary(value bool) + StoreAllIntermediateStates() bool + SetStoreAllIntermediateStates(value bool) } // A layer for training recurrent neural networks on Metal Performance Shaders matrices. [Full Topic] @@ -126,39 +122,17 @@ func NewRNNMatrixTrainingLayerWithDevice(device metal.PDevice) RNNMatrixTraining // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966787-createweightmatrices?language=objc -func (r_ RNNMatrixTrainingLayer) CreateWeightMatrices(matricesOut foundation.IMutableArray) { - objc.Call[objc.Void](r_, objc.Sel("createWeightMatrices:"), matricesOut) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966790-encodeforwardsequencetocommandbu?language=objc -func (r_ RNNMatrixTrainingLayer) EncodeForwardSequenceToCommandBufferSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsTrainingStatesRecurrentInputStateRecurrentOutputStatesWeights(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, trainingStates foundation.IMutableArray, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray, weights []IMatrix) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](r_, objc.Sel("encodeForwardSequenceToCommandBuffer:sourceMatrices:sourceOffsets:destinationMatrices:destinationOffsets:trainingStates:recurrentInputState:recurrentOutputStates:weights:"), po0, sourceMatrices, sourceOffsets, destinationMatrices, destinationOffsets, trainingStates, recurrentInputState, recurrentOutputStates, weights) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966790-encodeforwardsequencetocommandbu?language=objc -func (r_ RNNMatrixTrainingLayer) EncodeForwardSequenceToCommandBufferObjectSourceMatricesSourceOffsetsDestinationMatricesDestinationOffsetsTrainingStatesRecurrentInputStateRecurrentOutputStatesWeights(commandBufferObject objc.IObject, sourceMatrices []IMatrix, sourceOffsets *uint, destinationMatrices []IMatrix, destinationOffsets *uint, trainingStates foundation.IMutableArray, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray, weights []IMatrix) { - objc.Call[objc.Void](r_, objc.Sel("encodeForwardSequenceToCommandBuffer:sourceMatrices:sourceOffsets:destinationMatrices:destinationOffsets:trainingStates:recurrentInputState:recurrentOutputStates:weights:"), commandBufferObject, sourceMatrices, sourceOffsets, destinationMatrices, destinationOffsets, trainingStates, recurrentInputState, recurrentOutputStates, weights) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966789-encodeforwardsequencetocommandbu?language=objc -func (r_ RNNMatrixTrainingLayer) EncodeForwardSequenceToCommandBufferSourceMatricesDestinationMatricesTrainingStatesWeights(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, destinationMatrices []IMatrix, trainingStates foundation.IMutableArray, weights []IMatrix) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](r_, objc.Sel("encodeForwardSequenceToCommandBuffer:sourceMatrices:destinationMatrices:trainingStates:weights:"), po0, sourceMatrices, destinationMatrices, trainingStates, weights) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966785-createtemporaryweightgradientmat?language=objc +func (r_ RNNMatrixTrainingLayer) CreateTemporaryWeightGradientMatricesDataTypeCommandBuffer(matricesOut foundation.IMutableArray, dataType DataType, commandBuffer metal.PCommandBuffer) { + po2 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + objc.Call[objc.Void](r_, objc.Sel("createTemporaryWeightGradientMatrices:dataType:commandBuffer:"), matricesOut, dataType, po2) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966789-encodeforwardsequencetocommandbu?language=objc -func (r_ RNNMatrixTrainingLayer) EncodeForwardSequenceToCommandBufferObjectSourceMatricesDestinationMatricesTrainingStatesWeights(commandBufferObject objc.IObject, sourceMatrices []IMatrix, destinationMatrices []IMatrix, trainingStates foundation.IMutableArray, weights []IMatrix) { - objc.Call[objc.Void](r_, objc.Sel("encodeForwardSequenceToCommandBuffer:sourceMatrices:destinationMatrices:trainingStates:weights:"), commandBufferObject, sourceMatrices, destinationMatrices, trainingStates, weights) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966785-createtemporaryweightgradientmat?language=objc +func (r_ RNNMatrixTrainingLayer) CreateTemporaryWeightGradientMatricesDataTypeCommandBufferObject(matricesOut foundation.IMutableArray, dataType DataType, commandBufferObject objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("createTemporaryWeightGradientMatrices:dataType:commandBuffer:"), matricesOut, dataType, commandBufferObject) } // [Full Topic] @@ -178,39 +152,17 @@ func (r_ RNNMatrixTrainingLayer) EncodeCopyWeightsToCommandBufferObjectWeightsMa // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966785-createtemporaryweightgradientmat?language=objc -func (r_ RNNMatrixTrainingLayer) CreateTemporaryWeightGradientMatricesDataTypeCommandBuffer(matricesOut foundation.IMutableArray, dataType DataType, commandBuffer metal.PCommandBuffer) { - po2 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](r_, objc.Sel("createTemporaryWeightGradientMatrices:dataType:commandBuffer:"), matricesOut, dataType, po2) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966785-createtemporaryweightgradientmat?language=objc -func (r_ RNNMatrixTrainingLayer) CreateTemporaryWeightGradientMatricesDataTypeCommandBufferObject(matricesOut foundation.IMutableArray, dataType DataType, commandBufferObject objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("createTemporaryWeightGradientMatrices:dataType:commandBuffer:"), matricesOut, dataType, commandBufferObject) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966791-encodegradientsequencetocommandb?language=objc -func (r_ RNNMatrixTrainingLayer) EncodeGradientSequenceToCommandBufferForwardSourcesForwardSourceOffsetsSourceGradientsSourceGradientOffsetsDestinationGradientsDestinationOffsetsWeightGradientsTrainingStatesRecurrentInputStateRecurrentOutputStatesWeights(commandBuffer metal.PCommandBuffer, forwardSources []IMatrix, forwardSourceOffsets *uint, sourceGradients []IMatrix, sourceGradientOffsets *uint, destinationGradients []IMatrix, destinationOffsets *uint, weightGradients []IMatrix, trainingStates []IRNNMatrixTrainingState, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray, weights []IMatrix) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966789-encodeforwardsequencetocommandbu?language=objc +func (r_ RNNMatrixTrainingLayer) EncodeForwardSequenceToCommandBufferSourceMatricesDestinationMatricesTrainingStatesWeights(commandBuffer metal.PCommandBuffer, sourceMatrices []IMatrix, destinationMatrices []IMatrix, trainingStates foundation.IMutableArray, weights []IMatrix) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](r_, objc.Sel("encodeGradientSequenceToCommandBuffer:forwardSources:forwardSourceOffsets:sourceGradients:sourceGradientOffsets:destinationGradients:destinationOffsets:weightGradients:trainingStates:recurrentInputState:recurrentOutputStates:weights:"), po0, forwardSources, forwardSourceOffsets, sourceGradients, sourceGradientOffsets, destinationGradients, destinationOffsets, weightGradients, trainingStates, recurrentInputState, recurrentOutputStates, weights) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966791-encodegradientsequencetocommandb?language=objc -func (r_ RNNMatrixTrainingLayer) EncodeGradientSequenceToCommandBufferObjectForwardSourcesForwardSourceOffsetsSourceGradientsSourceGradientOffsetsDestinationGradientsDestinationOffsetsWeightGradientsTrainingStatesRecurrentInputStateRecurrentOutputStatesWeights(commandBufferObject objc.IObject, forwardSources []IMatrix, forwardSourceOffsets *uint, sourceGradients []IMatrix, sourceGradientOffsets *uint, destinationGradients []IMatrix, destinationOffsets *uint, weightGradients []IMatrix, trainingStates []IRNNMatrixTrainingState, recurrentInputState IRNNRecurrentMatrixState, recurrentOutputStates foundation.IMutableArray, weights []IMatrix) { - objc.Call[objc.Void](r_, objc.Sel("encodeGradientSequenceToCommandBuffer:forwardSources:forwardSourceOffsets:sourceGradients:sourceGradientOffsets:destinationGradients:destinationOffsets:weightGradients:trainingStates:recurrentInputState:recurrentOutputStates:weights:"), commandBufferObject, forwardSources, forwardSourceOffsets, sourceGradients, sourceGradientOffsets, destinationGradients, destinationOffsets, weightGradients, trainingStates, recurrentInputState, recurrentOutputStates, weights) + objc.Call[objc.Void](r_, objc.Sel("encodeForwardSequenceToCommandBuffer:sourceMatrices:destinationMatrices:trainingStates:weights:"), po0, sourceMatrices, destinationMatrices, trainingStates, weights) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966786-createweightgradientmatrices?language=objc -func (r_ RNNMatrixTrainingLayer) CreateWeightGradientMatricesDataType(matricesOut foundation.IMutableArray, dataType DataType) { - objc.Call[objc.Void](r_, objc.Sel("createWeightGradientMatrices:dataType:"), matricesOut, dataType) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966789-encodeforwardsequencetocommandbu?language=objc +func (r_ RNNMatrixTrainingLayer) EncodeForwardSequenceToCommandBufferObjectSourceMatricesDestinationMatricesTrainingStatesWeights(commandBufferObject objc.IObject, sourceMatrices []IMatrix, destinationMatrices []IMatrix, trainingStates foundation.IMutableArray, weights []IMatrix) { + objc.Call[objc.Void](r_, objc.Sel("encodeForwardSequenceToCommandBuffer:sourceMatrices:destinationMatrices:trainingStates:weights:"), commandBufferObject, sourceMatrices, destinationMatrices, trainingStates, weights) } // [Full Topic] @@ -230,17 +182,16 @@ func (r_ RNNMatrixTrainingLayer) EncodeGradientSequenceToCommandBufferObjectForw // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966783-accumulateweightgradients?language=objc -func (r_ RNNMatrixTrainingLayer) AccumulateWeightGradients() bool { - rv := objc.Call[bool](r_, objc.Sel("accumulateWeightGradients")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966787-createweightmatrices?language=objc +func (r_ RNNMatrixTrainingLayer) CreateWeightMatrices(matricesOut foundation.IMutableArray) { + objc.Call[objc.Void](r_, objc.Sel("createWeightMatrices:"), matricesOut) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966783-accumulateweightgradients?language=objc -func (r_ RNNMatrixTrainingLayer) SetAccumulateWeightGradients(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setAccumulateWeightGradients:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966786-createweightgradientmatrices?language=objc +func (r_ RNNMatrixTrainingLayer) CreateWeightGradientMatricesDataType(matricesOut foundation.IMutableArray, dataType DataType) { + objc.Call[objc.Void](r_, objc.Sel("createWeightGradientMatrices:dataType:"), matricesOut, dataType) } // [Full Topic] @@ -260,32 +211,32 @@ func (r_ RNNMatrixTrainingLayer) SetRecurrentOutputIsTemporary(value bool) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966798-storeallintermediatestates?language=objc -func (r_ RNNMatrixTrainingLayer) StoreAllIntermediateStates() bool { - rv := objc.Call[bool](r_, objc.Sel("storeAllIntermediateStates")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966783-accumulateweightgradients?language=objc +func (r_ RNNMatrixTrainingLayer) AccumulateWeightGradients() bool { + rv := objc.Call[bool](r_, objc.Sel("accumulateWeightGradients")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966798-storeallintermediatestates?language=objc -func (r_ RNNMatrixTrainingLayer) SetStoreAllIntermediateStates(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setStoreAllIntermediateStates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966783-accumulateweightgradients?language=objc +func (r_ RNNMatrixTrainingLayer) SetAccumulateWeightGradients(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setAccumulateWeightGradients:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966795-inputfeaturechannels?language=objc -func (r_ RNNMatrixTrainingLayer) InputFeatureChannels() uint { - rv := objc.Call[uint](r_, objc.Sel("inputFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966796-outputfeaturechannels?language=objc +func (r_ RNNMatrixTrainingLayer) OutputFeatureChannels() uint { + rv := objc.Call[uint](r_, objc.Sel("outputFeatureChannels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966796-outputfeaturechannels?language=objc -func (r_ RNNMatrixTrainingLayer) OutputFeatureChannels() uint { - rv := objc.Call[uint](r_, objc.Sel("outputFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966795-inputfeaturechannels?language=objc +func (r_ RNNMatrixTrainingLayer) InputFeatureChannels() uint { + rv := objc.Call[uint](r_, objc.Sel("inputFeatureChannels")) return rv } @@ -303,3 +254,18 @@ func (r_ RNNMatrixTrainingLayer) TrainingStateIsTemporary() bool { func (r_ RNNMatrixTrainingLayer) SetTrainingStateIsTemporary(value bool) { objc.Call[objc.Void](r_, objc.Sel("setTrainingStateIsTemporary:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966798-storeallintermediatestates?language=objc +func (r_ RNNMatrixTrainingLayer) StoreAllIntermediateStates() bool { + rv := objc.Call[bool](r_, objc.Sel("storeAllIntermediateStates")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixtraininglayer/2966798-storeallintermediatestates?language=objc +func (r_ RNNMatrixTrainingLayer) SetStoreAllIntermediateStates(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setStoreAllIntermediateStates:"), value) +} diff --git a/macos/mps/rnn_matrix_training_state.gen.go b/macos/mps/rnn_matrix_training_state.gen.go index 97382c5a..37b172da 100644 --- a/macos/mps/rnn_matrix_training_state.gen.go +++ b/macos/mps/rnn_matrix_training_state.gen.go @@ -54,45 +54,16 @@ func (r_ RNNMatrixTrainingState) Init() RNNMatrixTrainingState { return rv } -func (rc _RNNMatrixTrainingStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNMatrixTrainingState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[RNNMatrixTrainingState](rc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func RNNMatrixTrainingState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNMatrixTrainingState { - return RNNMatrixTrainingStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (r_ RNNMatrixTrainingState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) RNNMatrixTrainingState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RNNMatrixTrainingState](r_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewRNNMatrixTrainingStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) RNNMatrixTrainingState { - instance := RNNMatrixTrainingStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (r_ RNNMatrixTrainingState) InitWithResource(resource metal.PResource) RNNMatrixTrainingState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[RNNMatrixTrainingState](r_, objc.Sel("initWithResource:"), po0) +func (r_ RNNMatrixTrainingState) InitWithResources(resources []metal.PResource) RNNMatrixTrainingState { + rv := objc.Call[RNNMatrixTrainingState](r_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewRNNMatrixTrainingStateWithResource(resource metal.PResource) RNNMatrixTrainingState { - instance := RNNMatrixTrainingStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewRNNMatrixTrainingStateWithResources(resources []metal.PResource) RNNMatrixTrainingState { + instance := RNNMatrixTrainingStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -112,70 +83,30 @@ func NewRNNMatrixTrainingStateWithDeviceBufferSize(device metal.PDevice, bufferS return instance } -func (r_ RNNMatrixTrainingState) InitWithResources(resources []metal.PResource) RNNMatrixTrainingState { - rv := objc.Call[RNNMatrixTrainingState](r_, objc.Sel("initWithResources:"), resources) +func (r_ RNNMatrixTrainingState) InitWithResource(resource metal.PResource) RNNMatrixTrainingState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[RNNMatrixTrainingState](r_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewRNNMatrixTrainingStateWithResources(resources []metal.PResource) RNNMatrixTrainingState { - instance := RNNMatrixTrainingStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewRNNMatrixTrainingStateWithResource(resource metal.PResource) RNNMatrixTrainingState { + instance := RNNMatrixTrainingStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (rc _RNNMatrixTrainingStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) RNNMatrixTrainingState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[RNNMatrixTrainingState](rc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func RNNMatrixTrainingState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) RNNMatrixTrainingState { - return RNNMatrixTrainingStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (rc _RNNMatrixTrainingStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) RNNMatrixTrainingState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[RNNMatrixTrainingState](rc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func RNNMatrixTrainingState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) RNNMatrixTrainingState { - return RNNMatrixTrainingStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (rc _RNNMatrixTrainingStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) RNNMatrixTrainingState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[RNNMatrixTrainingState](rc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func RNNMatrixTrainingState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) RNNMatrixTrainingState { - return RNNMatrixTrainingStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (r_ RNNMatrixTrainingState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) RNNMatrixTrainingState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RNNMatrixTrainingState](r_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (rc _RNNMatrixTrainingStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNMatrixTrainingState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[RNNMatrixTrainingState](rc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewRNNMatrixTrainingStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) RNNMatrixTrainingState { - instance := RNNMatrixTrainingStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func RNNMatrixTrainingState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNMatrixTrainingState { + return RNNMatrixTrainingStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } diff --git a/macos/mps/rnn_recurrent_image_state.gen.go b/macos/mps/rnn_recurrent_image_state.gen.go index bf39f970..3970fc30 100644 --- a/macos/mps/rnn_recurrent_image_state.gen.go +++ b/macos/mps/rnn_recurrent_image_state.gen.go @@ -56,45 +56,16 @@ func (r_ RNNRecurrentImageState) Init() RNNRecurrentImageState { return rv } -func (rc _RNNRecurrentImageStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNRecurrentImageState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[RNNRecurrentImageState](rc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func RNNRecurrentImageState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNRecurrentImageState { - return RNNRecurrentImageStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (r_ RNNRecurrentImageState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) RNNRecurrentImageState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RNNRecurrentImageState](r_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewRNNRecurrentImageStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) RNNRecurrentImageState { - instance := RNNRecurrentImageStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (r_ RNNRecurrentImageState) InitWithResource(resource metal.PResource) RNNRecurrentImageState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[RNNRecurrentImageState](r_, objc.Sel("initWithResource:"), po0) +func (r_ RNNRecurrentImageState) InitWithResources(resources []metal.PResource) RNNRecurrentImageState { + rv := objc.Call[RNNRecurrentImageState](r_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewRNNRecurrentImageStateWithResource(resource metal.PResource) RNNRecurrentImageState { - instance := RNNRecurrentImageStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewRNNRecurrentImageStateWithResources(resources []metal.PResource) RNNRecurrentImageState { + instance := RNNRecurrentImageStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -114,72 +85,32 @@ func NewRNNRecurrentImageStateWithDeviceBufferSize(device metal.PDevice, bufferS return instance } -func (r_ RNNRecurrentImageState) InitWithResources(resources []metal.PResource) RNNRecurrentImageState { - rv := objc.Call[RNNRecurrentImageState](r_, objc.Sel("initWithResources:"), resources) +func (r_ RNNRecurrentImageState) InitWithResource(resource metal.PResource) RNNRecurrentImageState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[RNNRecurrentImageState](r_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewRNNRecurrentImageStateWithResources(resources []metal.PResource) RNNRecurrentImageState { - instance := RNNRecurrentImageStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewRNNRecurrentImageStateWithResource(resource metal.PResource) RNNRecurrentImageState { + instance := RNNRecurrentImageStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (rc _RNNRecurrentImageStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) RNNRecurrentImageState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[RNNRecurrentImageState](rc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func RNNRecurrentImageState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) RNNRecurrentImageState { - return RNNRecurrentImageStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (rc _RNNRecurrentImageStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) RNNRecurrentImageState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[RNNRecurrentImageState](rc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func RNNRecurrentImageState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) RNNRecurrentImageState { - return RNNRecurrentImageStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (rc _RNNRecurrentImageStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) RNNRecurrentImageState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[RNNRecurrentImageState](rc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func RNNRecurrentImageState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) RNNRecurrentImageState { - return RNNRecurrentImageStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (r_ RNNRecurrentImageState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) RNNRecurrentImageState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RNNRecurrentImageState](r_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (rc _RNNRecurrentImageStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNRecurrentImageState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[RNNRecurrentImageState](rc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewRNNRecurrentImageStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) RNNRecurrentImageState { - instance := RNNRecurrentImageStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func RNNRecurrentImageState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNRecurrentImageState { + return RNNRecurrentImageStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] diff --git a/macos/mps/rnn_recurrent_matrix_state.gen.go b/macos/mps/rnn_recurrent_matrix_state.gen.go index ccbe1ee6..2bcb53a8 100644 --- a/macos/mps/rnn_recurrent_matrix_state.gen.go +++ b/macos/mps/rnn_recurrent_matrix_state.gen.go @@ -56,45 +56,16 @@ func (r_ RNNRecurrentMatrixState) Init() RNNRecurrentMatrixState { return rv } -func (rc _RNNRecurrentMatrixStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNRecurrentMatrixState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[RNNRecurrentMatrixState](rc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func RNNRecurrentMatrixState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNRecurrentMatrixState { - return RNNRecurrentMatrixStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (r_ RNNRecurrentMatrixState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) RNNRecurrentMatrixState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RNNRecurrentMatrixState](r_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewRNNRecurrentMatrixStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) RNNRecurrentMatrixState { - instance := RNNRecurrentMatrixStateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (r_ RNNRecurrentMatrixState) InitWithResource(resource metal.PResource) RNNRecurrentMatrixState { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[RNNRecurrentMatrixState](r_, objc.Sel("initWithResource:"), po0) +func (r_ RNNRecurrentMatrixState) InitWithResources(resources []metal.PResource) RNNRecurrentMatrixState { + rv := objc.Call[RNNRecurrentMatrixState](r_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewRNNRecurrentMatrixStateWithResource(resource metal.PResource) RNNRecurrentMatrixState { - instance := RNNRecurrentMatrixStateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewRNNRecurrentMatrixStateWithResources(resources []metal.PResource) RNNRecurrentMatrixState { + instance := RNNRecurrentMatrixStateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -114,72 +85,32 @@ func NewRNNRecurrentMatrixStateWithDeviceBufferSize(device metal.PDevice, buffer return instance } -func (r_ RNNRecurrentMatrixState) InitWithResources(resources []metal.PResource) RNNRecurrentMatrixState { - rv := objc.Call[RNNRecurrentMatrixState](r_, objc.Sel("initWithResources:"), resources) +func (r_ RNNRecurrentMatrixState) InitWithResource(resource metal.PResource) RNNRecurrentMatrixState { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[RNNRecurrentMatrixState](r_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewRNNRecurrentMatrixStateWithResources(resources []metal.PResource) RNNRecurrentMatrixState { - instance := RNNRecurrentMatrixStateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewRNNRecurrentMatrixStateWithResource(resource metal.PResource) RNNRecurrentMatrixState { + instance := RNNRecurrentMatrixStateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (rc _RNNRecurrentMatrixStateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) RNNRecurrentMatrixState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[RNNRecurrentMatrixState](rc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func RNNRecurrentMatrixState_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) RNNRecurrentMatrixState { - return RNNRecurrentMatrixStateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (rc _RNNRecurrentMatrixStateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) RNNRecurrentMatrixState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[RNNRecurrentMatrixState](rc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func RNNRecurrentMatrixState_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) RNNRecurrentMatrixState { - return RNNRecurrentMatrixStateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (rc _RNNRecurrentMatrixStateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) RNNRecurrentMatrixState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[RNNRecurrentMatrixState](rc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func RNNRecurrentMatrixState_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) RNNRecurrentMatrixState { - return RNNRecurrentMatrixStateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (r_ RNNRecurrentMatrixState) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) RNNRecurrentMatrixState { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RNNRecurrentMatrixState](r_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (rc _RNNRecurrentMatrixStateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNRecurrentMatrixState { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[RNNRecurrentMatrixState](rc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewRNNRecurrentMatrixStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) RNNRecurrentMatrixState { - instance := RNNRecurrentMatrixStateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func RNNRecurrentMatrixState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNRecurrentMatrixState { + return RNNRecurrentMatrixStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } // [Full Topic] diff --git a/macos/mps/state.gen.go b/macos/mps/state.gen.go index 63ba51b9..78372b5b 100644 --- a/macos/mps/state.gen.go +++ b/macos/mps/state.gen.go @@ -20,19 +20,19 @@ type _StateClass struct { type IState interface { objc.IObject ResourceTypeAtIndex(index uint) StateResourceType - SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) - SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) - ResourceAtIndexAllocateMemory(index uint, allocateMemory bool) metal.ResourceObject - BufferSizeAtIndex(index uint) uint DestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor(sourceImages []IImage, sourceStates []IState, kernel IKernel, inDescriptor IImageDescriptor) ImageDescriptor - TextureInfoAtIndex(index uint) StateTextureInfo + BufferSizeAtIndex(index uint) uint ResourceSize() uint + TextureInfoAtIndex(index uint) StateTextureInfo + ResourceAtIndexAllocateMemory(index uint, allocateMemory bool) metal.ResourceObject + SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) + SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) ResourceCount() uint + IsTemporary() bool ReadCount() uint SetReadCount(value uint) Label() string SetLabel(value string) - IsTemporary() bool } // An opaque data container for large storage in MPS CNN filters. [Full Topic] @@ -48,45 +48,16 @@ func StateFrom(ptr unsafe.Pointer) State { } } -func (sc _StateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) State { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[State](sc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc -func State_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) State { - return StateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) -} - -func (s_ State) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) State { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[State](s_, objc.Sel("initWithDevice:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942400-initwithdevice?language=objc -func NewStateWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) State { - instance := StateClass.Alloc().InitWithDeviceTextureDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - -func (s_ State) InitWithResource(resource metal.PResource) State { - po0 := objc.WrapAsProtocol("MTLResource", resource) - rv := objc.Call[State](s_, objc.Sel("initWithResource:"), po0) +func (s_ State) InitWithResources(resources []metal.PResource) State { + rv := objc.Call[State](s_, objc.Sel("initWithResources:"), resources) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc -func NewStateWithResource(resource metal.PResource) State { - instance := StateClass.Alloc().InitWithResource(resource) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc +func NewStateWithResources(resources []metal.PResource) State { + instance := StateClass.Alloc().InitWithResources(resources) instance.Autorelease() return instance } @@ -106,72 +77,32 @@ func NewStateWithDeviceBufferSize(device metal.PDevice, bufferSize uint) State { return instance } -func (s_ State) InitWithResources(resources []metal.PResource) State { - rv := objc.Call[State](s_, objc.Sel("initWithResources:"), resources) +func (s_ State) InitWithResource(resource metal.PResource) State { + po0 := objc.WrapAsProtocol("MTLResource", resource) + rv := objc.Call[State](s_, objc.Sel("initWithResource:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947895-initwithresources?language=objc -func NewStateWithResources(resources []metal.PResource) State { - instance := StateClass.Alloc().InitWithResources(resources) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942390-initwithresource?language=objc +func NewStateWithResource(resource metal.PResource) State { + instance := StateClass.Alloc().InitWithResource(resource) instance.Autorelease() return instance } -func (sc _StateClass) TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) State { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[State](sc, objc.Sel("temporaryStateWithCommandBuffer:bufferSize:"), po0, bufferSize) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942391-temporarystatewithcommandbuffer?language=objc -func State_TemporaryStateWithCommandBufferBufferSize(cmdBuf metal.PCommandBuffer, bufferSize uint) State { - return StateClass.TemporaryStateWithCommandBufferBufferSize(cmdBuf, bufferSize) -} - -func (sc _StateClass) TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) State { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[State](sc, objc.Sel("temporaryStateWithCommandBuffer:"), po0) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942393-temporarystatewithcommandbuffer?language=objc -func State_TemporaryStateWithCommandBuffer(cmdBuf metal.PCommandBuffer) State { - return StateClass.TemporaryStateWithCommandBuffer(cmdBuf) -} - -func (sc _StateClass) TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) State { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - rv := objc.Call[State](sc, objc.Sel("temporaryStateWithCommandBuffer:textureDescriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942395-temporarystatewithcommandbuffer?language=objc -func State_TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf metal.PCommandBuffer, descriptor metal.ITextureDescriptor) State { - return StateClass.TemporaryStateWithCommandBufferTextureDescriptor(cmdBuf, descriptor) -} - -func (s_ State) InitWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) State { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[State](s_, objc.Sel("initWithDevice:resourceList:"), po0, resourceList) +func (sc _StateClass) TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) State { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[State](sc, objc.Sel("temporaryStateWithCommandBuffer:resourceList:"), po0, resourceList) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947908-initwithdevice?language=objc -func NewStateWithDeviceResourceList(device metal.PDevice, resourceList IStateResourceList) State { - instance := StateClass.Alloc().InitWithDeviceResourceList(device, resourceList) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947915-temporarystatewithcommandbuffer?language=objc +func State_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) State { + return StateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) } func (sc _StateClass) Alloc() State { @@ -204,24 +135,9 @@ func (s_ State) ResourceTypeAtIndex(index uint) StateResourceType { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942396-synchronizeoncommandbuffer?language=objc -func (s_ State) SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](s_, objc.Sel("synchronizeOnCommandBuffer:"), po0) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942396-synchronizeoncommandbuffer?language=objc -func (s_ State) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("synchronizeOnCommandBuffer:"), commandBufferObject) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947916-resourceatindex?language=objc -func (s_ State) ResourceAtIndexAllocateMemory(index uint, allocateMemory bool) metal.ResourceObject { - rv := objc.Call[metal.ResourceObject](s_, objc.Sel("resourceAtIndex:allocateMemory:"), index, allocateMemory) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942394-destinationimagedescriptorforsou?language=objc +func (s_ State) DestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor(sourceImages []IImage, sourceStates []IState, kernel IKernel, inDescriptor IImageDescriptor) ImageDescriptor { + rv := objc.Call[ImageDescriptor](s_, objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor:"), sourceImages, sourceStates, kernel, inDescriptor) return rv } @@ -235,9 +151,9 @@ func (s_ State) BufferSizeAtIndex(index uint) uint { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942394-destinationimagedescriptorforsou?language=objc -func (s_ State) DestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor(sourceImages []IImage, sourceStates []IState, kernel IKernel, inDescriptor IImageDescriptor) ImageDescriptor { - rv := objc.Call[ImageDescriptor](s_, objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor:"), sourceImages, sourceStates, kernel, inDescriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942397-resourcesize?language=objc +func (s_ State) ResourceSize() uint { + rv := objc.Call[uint](s_, objc.Sel("resourceSize")) return rv } @@ -251,12 +167,27 @@ func (s_ State) TextureInfoAtIndex(index uint) StateTextureInfo { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942397-resourcesize?language=objc -func (s_ State) ResourceSize() uint { - rv := objc.Call[uint](s_, objc.Sel("resourceSize")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947916-resourceatindex?language=objc +func (s_ State) ResourceAtIndexAllocateMemory(index uint, allocateMemory bool) metal.ResourceObject { + rv := objc.Call[metal.ResourceObject](s_, objc.Sel("resourceAtIndex:allocateMemory:"), index, allocateMemory) return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942396-synchronizeoncommandbuffer?language=objc +func (s_ State) SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + objc.Call[objc.Void](s_, objc.Sel("synchronizeOnCommandBuffer:"), po0) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942396-synchronizeoncommandbuffer?language=objc +func (s_ State) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("synchronizeOnCommandBuffer:"), commandBufferObject) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947900-resourcecount?language=objc @@ -265,6 +196,14 @@ func (s_ State) ResourceCount() uint { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2867114-istemporary?language=objc +func (s_ State) IsTemporary() bool { + rv := objc.Call[bool](s_, objc.Sel("isTemporary")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2867042-readcount?language=objc @@ -294,11 +233,3 @@ func (s_ State) Label() string { func (s_ State) SetLabel(value string) { objc.Call[objc.Void](s_, objc.Sel("setLabel:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2867114-istemporary?language=objc -func (s_ State) IsTemporary() bool { - rv := objc.Call[bool](s_, objc.Sel("isTemporary")) - return rv -} diff --git a/macos/mps/state_resource_list.gen.go b/macos/mps/state_resource_list.gen.go index fb6fb0b3..bf0add7f 100644 --- a/macos/mps/state_resource_list.gen.go +++ b/macos/mps/state_resource_list.gen.go @@ -19,8 +19,8 @@ type _StateResourceListClass struct { // An interface definition for the [StateResourceList] class. type IStateResourceList interface { objc.IObject - AppendBuffer(size uint) AppendTexture(descriptor metal.ITextureDescriptor) + AppendBuffer(size uint) } // An interface for objects that define resources for Metal Performance Shaders state containers. [Full Topic] @@ -48,16 +48,16 @@ func StateResourceList_ResourceList() StateResourceList { return StateResourceListClass.ResourceList() } -func (sc _StateResourceListClass) ResourceListWithBufferSizes(firstSize uint, args ...any) StateResourceList { - rv := objc.Call[StateResourceList](sc, objc.Sel("resourceListWithBufferSizes:"), append([]any{firstSize}, args...)...) +func (sc _StateResourceListClass) ResourceListWithTextureDescriptors(d metal.ITextureDescriptor, args ...any) StateResourceList { + rv := objc.Call[StateResourceList](sc, objc.Sel("resourceListWithTextureDescriptors:"), append([]any{d}, args...)...) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstateresourcelist/2947903-resourcelistwithbuffersizes?language=objc -func StateResourceList_ResourceListWithBufferSizes(firstSize uint, args ...any) StateResourceList { - return StateResourceListClass.ResourceListWithBufferSizes(firstSize, args...) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstateresourcelist/2947890-resourcelistwithtexturedescripto?language=objc +func StateResourceList_ResourceListWithTextureDescriptors(d metal.ITextureDescriptor, args ...any) StateResourceList { + return StateResourceListClass.ResourceListWithTextureDescriptors(d, args...) } func (s_ StateResourceList) Init() StateResourceList { @@ -65,16 +65,16 @@ func (s_ StateResourceList) Init() StateResourceList { return rv } -func (sc _StateResourceListClass) ResourceListWithTextureDescriptors(d metal.ITextureDescriptor, args ...any) StateResourceList { - rv := objc.Call[StateResourceList](sc, objc.Sel("resourceListWithTextureDescriptors:"), append([]any{d}, args...)...) +func (sc _StateResourceListClass) ResourceListWithBufferSizes(firstSize uint, args ...any) StateResourceList { + rv := objc.Call[StateResourceList](sc, objc.Sel("resourceListWithBufferSizes:"), append([]any{firstSize}, args...)...) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstateresourcelist/2947890-resourcelistwithtexturedescripto?language=objc -func StateResourceList_ResourceListWithTextureDescriptors(d metal.ITextureDescriptor, args ...any) StateResourceList { - return StateResourceListClass.ResourceListWithTextureDescriptors(d, args...) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstateresourcelist/2947903-resourcelistwithbuffersizes?language=objc +func StateResourceList_ResourceListWithBufferSizes(firstSize uint, args ...any) StateResourceList { + return StateResourceListClass.ResourceListWithBufferSizes(firstSize, args...) } func (sc _StateResourceListClass) Alloc() StateResourceList { @@ -94,14 +94,14 @@ func NewStateResourceList() StateResourceList { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstateresourcelist/2947905-appendbuffer?language=objc -func (s_ StateResourceList) AppendBuffer(size uint) { - objc.Call[objc.Void](s_, objc.Sel("appendBuffer:"), size) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstateresourcelist/2947894-appendtexture?language=objc +func (s_ StateResourceList) AppendTexture(descriptor metal.ITextureDescriptor) { + objc.Call[objc.Void](s_, objc.Sel("appendTexture:"), descriptor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstateresourcelist/2947894-appendtexture?language=objc -func (s_ StateResourceList) AppendTexture(descriptor metal.ITextureDescriptor) { - objc.Call[objc.Void](s_, objc.Sel("appendTexture:"), descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstateresourcelist/2947905-appendbuffer?language=objc +func (s_ StateResourceList) AppendBuffer(size uint) { + objc.Call[objc.Void](s_, objc.Sel("appendBuffer:"), size) } diff --git a/macos/mps/svgf.gen.go b/macos/mps/svgf.gen.go index 2a7e0cb3..b927a856 100644 --- a/macos/mps/svgf.gen.go +++ b/macos/mps/svgf.gen.go @@ -20,49 +20,43 @@ type _SVGFClass struct { // An interface definition for the [SVGF] class. type ISVGF interface { IKernel - EncodeReprojectionToCommandBufferSourceTexturePreviousTextureDestinationTexturePreviousLuminanceMomentsTextureDestinationLuminanceMomentsTextureSourceTexture2PreviousTexture2DestinationTexture2PreviousLuminanceMomentsTexture2DestinationLuminanceMomentsTexture2PreviousFrameCountTextureDestinationFrameCountTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, previousTexture metal.PTexture, destinationTexture metal.PTexture, previousLuminanceMomentsTexture metal.PTexture, destinationLuminanceMomentsTexture metal.PTexture, sourceTexture2 metal.PTexture, previousTexture2 metal.PTexture, destinationTexture2 metal.PTexture, previousLuminanceMomentsTexture2 metal.PTexture, destinationLuminanceMomentsTexture2 metal.PTexture, previousFrameCountTexture metal.PTexture, destinationFrameCountTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) - EncodeReprojectionToCommandBufferObjectSourceTextureObjectPreviousTextureObjectDestinationTextureObjectPreviousLuminanceMomentsTextureObjectDestinationLuminanceMomentsTextureObjectSourceTexture2ObjectPreviousTexture2ObjectDestinationTexture2ObjectPreviousLuminanceMomentsTexture2ObjectDestinationLuminanceMomentsTexture2ObjectPreviousFrameCountTextureObjectDestinationFrameCountTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, previousTextureObject objc.IObject, destinationTextureObject objc.IObject, previousLuminanceMomentsTextureObject objc.IObject, destinationLuminanceMomentsTextureObject objc.IObject, sourceTexture2Object objc.IObject, previousTexture2Object objc.IObject, destinationTexture2Object objc.IObject, previousLuminanceMomentsTexture2Object objc.IObject, destinationLuminanceMomentsTexture2Object objc.IObject, previousFrameCountTextureObject objc.IObject, destinationFrameCountTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) - EncodeVarianceEstimationToCommandBufferSourceTextureLuminanceMomentsTextureDestinationTextureSourceTexture2LuminanceMomentsTexture2DestinationTexture2FrameCountTextureDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, luminanceMomentsTexture metal.PTexture, destinationTexture metal.PTexture, sourceTexture2 metal.PTexture, luminanceMomentsTexture2 metal.PTexture, destinationTexture2 metal.PTexture, frameCountTexture metal.PTexture, depthNormalTexture metal.PTexture) - EncodeVarianceEstimationToCommandBufferObjectSourceTextureObjectLuminanceMomentsTextureObjectDestinationTextureObjectSourceTexture2ObjectLuminanceMomentsTexture2ObjectDestinationTexture2ObjectFrameCountTextureObjectDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, luminanceMomentsTextureObject objc.IObject, destinationTextureObject objc.IObject, sourceTexture2Object objc.IObject, luminanceMomentsTexture2Object objc.IObject, destinationTexture2Object objc.IObject, frameCountTextureObject objc.IObject, depthNormalTextureObject objc.IObject) - EncodeWithCoder(coder foundation.ICoder) EncodeBilateralFilterToCommandBufferStepDistanceSourceTextureDestinationTextureDepthNormalTexture(commandBuffer metal.PCommandBuffer, stepDistance uint, sourceTexture metal.PTexture, destinationTexture metal.PTexture, depthNormalTexture metal.PTexture) EncodeBilateralFilterToCommandBufferObjectStepDistanceSourceTextureObjectDestinationTextureObjectDepthNormalTextureObject(commandBufferObject objc.IObject, stepDistance uint, sourceTextureObject objc.IObject, destinationTextureObject objc.IObject, depthNormalTextureObject objc.IObject) - EncodeReprojectionToCommandBufferSourceTexturePreviousTextureDestinationTexturePreviousLuminanceMomentsTextureDestinationLuminanceMomentsTexturePreviousFrameCountTextureDestinationFrameCountTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, previousTexture metal.PTexture, destinationTexture metal.PTexture, previousLuminanceMomentsTexture metal.PTexture, destinationLuminanceMomentsTexture metal.PTexture, previousFrameCountTexture metal.PTexture, destinationFrameCountTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) - EncodeReprojectionToCommandBufferObjectSourceTextureObjectPreviousTextureObjectDestinationTextureObjectPreviousLuminanceMomentsTextureObjectDestinationLuminanceMomentsTextureObjectPreviousFrameCountTextureObjectDestinationFrameCountTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, previousTextureObject objc.IObject, destinationTextureObject objc.IObject, previousLuminanceMomentsTextureObject objc.IObject, destinationLuminanceMomentsTextureObject objc.IObject, previousFrameCountTextureObject objc.IObject, destinationFrameCountTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) + EncodeWithCoder(coder foundation.ICoder) EncodeVarianceEstimationToCommandBufferSourceTextureLuminanceMomentsTextureDestinationTextureFrameCountTextureDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, luminanceMomentsTexture metal.PTexture, destinationTexture metal.PTexture, frameCountTexture metal.PTexture, depthNormalTexture metal.PTexture) EncodeVarianceEstimationToCommandBufferObjectSourceTextureObjectLuminanceMomentsTextureObjectDestinationTextureObjectFrameCountTextureObjectDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, luminanceMomentsTextureObject objc.IObject, destinationTextureObject objc.IObject, frameCountTextureObject objc.IObject, depthNormalTextureObject objc.IObject) - EncodeBilateralFilterToCommandBufferStepDistanceSourceTextureDestinationTextureSourceTexture2DestinationTexture2DepthNormalTexture(commandBuffer metal.PCommandBuffer, stepDistance uint, sourceTexture metal.PTexture, destinationTexture metal.PTexture, sourceTexture2 metal.PTexture, destinationTexture2 metal.PTexture, depthNormalTexture metal.PTexture) - EncodeBilateralFilterToCommandBufferObjectStepDistanceSourceTextureObjectDestinationTextureObjectSourceTexture2ObjectDestinationTexture2ObjectDepthNormalTextureObject(commandBufferObject objc.IObject, stepDistance uint, sourceTextureObject objc.IObject, destinationTextureObject objc.IObject, sourceTexture2Object objc.IObject, destinationTexture2Object objc.IObject, depthNormalTextureObject objc.IObject) - TemporalWeighting() TemporalWeighting - SetTemporalWeighting(value TemporalWeighting) + EncodeReprojectionToCommandBufferSourceTexturePreviousTextureDestinationTexturePreviousLuminanceMomentsTextureDestinationLuminanceMomentsTexturePreviousFrameCountTextureDestinationFrameCountTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, previousTexture metal.PTexture, destinationTexture metal.PTexture, previousLuminanceMomentsTexture metal.PTexture, destinationLuminanceMomentsTexture metal.PTexture, previousFrameCountTexture metal.PTexture, destinationFrameCountTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) + EncodeReprojectionToCommandBufferObjectSourceTextureObjectPreviousTextureObjectDestinationTextureObjectPreviousLuminanceMomentsTextureObjectDestinationLuminanceMomentsTextureObjectPreviousFrameCountTextureObjectDestinationFrameCountTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, previousTextureObject objc.IObject, destinationTextureObject objc.IObject, previousLuminanceMomentsTextureObject objc.IObject, destinationLuminanceMomentsTextureObject objc.IObject, previousFrameCountTextureObject objc.IObject, destinationFrameCountTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) + ChannelCount() uint + SetChannelCount(value uint) VarianceEstimationSigma() float32 SetVarianceEstimationSigma(value float32) - NormalWeight() float32 - SetNormalWeight(value float32) - TemporalReprojectionBlendFactor() float32 - SetTemporalReprojectionBlendFactor(value float32) - MinimumFramesForVarianceEstimation() uint - SetMinimumFramesForVarianceEstimation(value uint) - VarianceEstimationRadius() uint - SetVarianceEstimationRadius(value uint) BilateralFilterSigma() float32 SetBilateralFilterSigma(value float32) - ReprojectionThreshold() float32 - SetReprojectionThreshold(value float32) - VariancePrefilterRadius() uint - SetVariancePrefilterRadius(value uint) + MinimumFramesForVarianceEstimation() uint + SetMinimumFramesForVarianceEstimation(value uint) BilateralFilterRadius() uint SetBilateralFilterRadius(value uint) ChannelCount2() uint SetChannelCount2(value uint) + VariancePrefilterRadius() uint + SetVariancePrefilterRadius(value uint) + TemporalReprojectionBlendFactor() float32 + SetTemporalReprojectionBlendFactor(value float32) LuminanceWeight() float32 SetLuminanceWeight(value float32) - DepthWeight() float32 - SetDepthWeight(value float32) + NormalWeight() float32 + SetNormalWeight(value float32) + TemporalWeighting() TemporalWeighting + SetTemporalWeighting(value TemporalWeighting) + VarianceEstimationRadius() uint + SetVarianceEstimationRadius(value uint) VariancePrefilterSigma() float32 SetVariancePrefilterSigma(value float32) - ChannelCount() uint - SetChannelCount(value uint) + DepthWeight() float32 + SetDepthWeight(value float32) + ReprojectionThreshold() float32 + SetReprojectionThreshold(value float32) } // [Full Topic] @@ -78,32 +72,32 @@ func SVGFFrom(ptr unsafe.Pointer) SVGF { } } -func (s_ SVGF) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) SVGF { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[SVGF](s_, objc.Sel("copyWithZone:device:"), zone, po1) +func (s_ SVGF) InitWithDevice(device metal.PDevice) SVGF { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[SVGF](s_, objc.Sel("initWithDevice:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143559-copywithzone?language=objc -func SVGF_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) SVGF { - instance := SVGFClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143566-initwithdevice?language=objc +func NewSVGFWithDevice(device metal.PDevice) SVGF { + instance := SVGFClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (s_ SVGF) InitWithDevice(device metal.PDevice) SVGF { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[SVGF](s_, objc.Sel("initWithDevice:"), po0) +func (s_ SVGF) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) SVGF { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[SVGF](s_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143566-initwithdevice?language=objc -func NewSVGFWithDevice(device metal.PDevice) SVGF { - instance := SVGFClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143559-copywithzone?language=objc +func SVGF_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) SVGF { + instance := SVGFClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } @@ -128,66 +122,6 @@ func (s_ SVGF) Init() SVGF { return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143562-encodereprojectiontocommandbuffe?language=objc -func (s_ SVGF) EncodeReprojectionToCommandBufferSourceTexturePreviousTextureDestinationTexturePreviousLuminanceMomentsTextureDestinationLuminanceMomentsTextureSourceTexture2PreviousTexture2DestinationTexture2PreviousLuminanceMomentsTexture2DestinationLuminanceMomentsTexture2PreviousFrameCountTextureDestinationFrameCountTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, previousTexture metal.PTexture, destinationTexture metal.PTexture, previousLuminanceMomentsTexture metal.PTexture, destinationLuminanceMomentsTexture metal.PTexture, sourceTexture2 metal.PTexture, previousTexture2 metal.PTexture, destinationTexture2 metal.PTexture, previousLuminanceMomentsTexture2 metal.PTexture, destinationLuminanceMomentsTexture2 metal.PTexture, previousFrameCountTexture metal.PTexture, destinationFrameCountTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po2 := objc.WrapAsProtocol("MTLTexture", previousTexture) - po3 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - po4 := objc.WrapAsProtocol("MTLTexture", previousLuminanceMomentsTexture) - po5 := objc.WrapAsProtocol("MTLTexture", destinationLuminanceMomentsTexture) - po6 := objc.WrapAsProtocol("MTLTexture", sourceTexture2) - po7 := objc.WrapAsProtocol("MTLTexture", previousTexture2) - po8 := objc.WrapAsProtocol("MTLTexture", destinationTexture2) - po9 := objc.WrapAsProtocol("MTLTexture", previousLuminanceMomentsTexture2) - po10 := objc.WrapAsProtocol("MTLTexture", destinationLuminanceMomentsTexture2) - po11 := objc.WrapAsProtocol("MTLTexture", previousFrameCountTexture) - po12 := objc.WrapAsProtocol("MTLTexture", destinationFrameCountTexture) - po13 := objc.WrapAsProtocol("MTLTexture", motionVectorTexture) - po14 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) - po15 := objc.WrapAsProtocol("MTLTexture", previousDepthNormalTexture) - objc.Call[objc.Void](s_, objc.Sel("encodeReprojectionToCommandBuffer:sourceTexture:previousTexture:destinationTexture:previousLuminanceMomentsTexture:destinationLuminanceMomentsTexture:sourceTexture2:previousTexture2:destinationTexture2:previousLuminanceMomentsTexture2:destinationLuminanceMomentsTexture2:previousFrameCountTexture:destinationFrameCountTexture:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), po0, po1, po2, po3, po4, po5, po6, po7, po8, po9, po10, po11, po12, po13, po14, po15) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143562-encodereprojectiontocommandbuffe?language=objc -func (s_ SVGF) EncodeReprojectionToCommandBufferObjectSourceTextureObjectPreviousTextureObjectDestinationTextureObjectPreviousLuminanceMomentsTextureObjectDestinationLuminanceMomentsTextureObjectSourceTexture2ObjectPreviousTexture2ObjectDestinationTexture2ObjectPreviousLuminanceMomentsTexture2ObjectDestinationLuminanceMomentsTexture2ObjectPreviousFrameCountTextureObjectDestinationFrameCountTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, previousTextureObject objc.IObject, destinationTextureObject objc.IObject, previousLuminanceMomentsTextureObject objc.IObject, destinationLuminanceMomentsTextureObject objc.IObject, sourceTexture2Object objc.IObject, previousTexture2Object objc.IObject, destinationTexture2Object objc.IObject, previousLuminanceMomentsTexture2Object objc.IObject, destinationLuminanceMomentsTexture2Object objc.IObject, previousFrameCountTextureObject objc.IObject, destinationFrameCountTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("encodeReprojectionToCommandBuffer:sourceTexture:previousTexture:destinationTexture:previousLuminanceMomentsTexture:destinationLuminanceMomentsTexture:sourceTexture2:previousTexture2:destinationTexture2:previousLuminanceMomentsTexture2:destinationLuminanceMomentsTexture2:previousFrameCountTexture:destinationFrameCountTexture:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), commandBufferObject, sourceTextureObject, previousTextureObject, destinationTextureObject, previousLuminanceMomentsTextureObject, destinationLuminanceMomentsTextureObject, sourceTexture2Object, previousTexture2Object, destinationTexture2Object, previousLuminanceMomentsTexture2Object, destinationLuminanceMomentsTexture2Object, previousFrameCountTextureObject, destinationFrameCountTextureObject, motionVectorTextureObject, depthNormalTextureObject, previousDepthNormalTextureObject) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143563-encodevarianceestimationtocomman?language=objc -func (s_ SVGF) EncodeVarianceEstimationToCommandBufferSourceTextureLuminanceMomentsTextureDestinationTextureSourceTexture2LuminanceMomentsTexture2DestinationTexture2FrameCountTextureDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, luminanceMomentsTexture metal.PTexture, destinationTexture metal.PTexture, sourceTexture2 metal.PTexture, luminanceMomentsTexture2 metal.PTexture, destinationTexture2 metal.PTexture, frameCountTexture metal.PTexture, depthNormalTexture metal.PTexture) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po2 := objc.WrapAsProtocol("MTLTexture", luminanceMomentsTexture) - po3 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - po4 := objc.WrapAsProtocol("MTLTexture", sourceTexture2) - po5 := objc.WrapAsProtocol("MTLTexture", luminanceMomentsTexture2) - po6 := objc.WrapAsProtocol("MTLTexture", destinationTexture2) - po7 := objc.WrapAsProtocol("MTLTexture", frameCountTexture) - po8 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) - objc.Call[objc.Void](s_, objc.Sel("encodeVarianceEstimationToCommandBuffer:sourceTexture:luminanceMomentsTexture:destinationTexture:sourceTexture2:luminanceMomentsTexture2:destinationTexture2:frameCountTexture:depthNormalTexture:"), po0, po1, po2, po3, po4, po5, po6, po7, po8) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143563-encodevarianceestimationtocomman?language=objc -func (s_ SVGF) EncodeVarianceEstimationToCommandBufferObjectSourceTextureObjectLuminanceMomentsTextureObjectDestinationTextureObjectSourceTexture2ObjectLuminanceMomentsTexture2ObjectDestinationTexture2ObjectFrameCountTextureObjectDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, luminanceMomentsTextureObject objc.IObject, destinationTextureObject objc.IObject, sourceTexture2Object objc.IObject, luminanceMomentsTexture2Object objc.IObject, destinationTexture2Object objc.IObject, frameCountTextureObject objc.IObject, depthNormalTextureObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("encodeVarianceEstimationToCommandBuffer:sourceTexture:luminanceMomentsTexture:destinationTexture:sourceTexture2:luminanceMomentsTexture2:destinationTexture2:frameCountTexture:depthNormalTexture:"), commandBufferObject, sourceTextureObject, luminanceMomentsTextureObject, destinationTextureObject, sourceTexture2Object, luminanceMomentsTexture2Object, destinationTexture2Object, frameCountTextureObject, depthNormalTextureObject) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143564-encodewithcoder?language=objc -func (s_ SVGF) EncodeWithCoder(coder foundation.ICoder) { - objc.Call[objc.Void](s_, objc.Sel("encodeWithCoder:"), coder) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242891-encodebilateralfiltertocommandbu?language=objc @@ -208,27 +142,9 @@ func (s_ SVGF) EncodeBilateralFilterToCommandBufferObjectStepDistanceSourceTextu // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242892-encodereprojectiontocommandbuffe?language=objc -func (s_ SVGF) EncodeReprojectionToCommandBufferSourceTexturePreviousTextureDestinationTexturePreviousLuminanceMomentsTextureDestinationLuminanceMomentsTexturePreviousFrameCountTextureDestinationFrameCountTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, previousTexture metal.PTexture, destinationTexture metal.PTexture, previousLuminanceMomentsTexture metal.PTexture, destinationLuminanceMomentsTexture metal.PTexture, previousFrameCountTexture metal.PTexture, destinationFrameCountTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po2 := objc.WrapAsProtocol("MTLTexture", previousTexture) - po3 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - po4 := objc.WrapAsProtocol("MTLTexture", previousLuminanceMomentsTexture) - po5 := objc.WrapAsProtocol("MTLTexture", destinationLuminanceMomentsTexture) - po6 := objc.WrapAsProtocol("MTLTexture", previousFrameCountTexture) - po7 := objc.WrapAsProtocol("MTLTexture", destinationFrameCountTexture) - po8 := objc.WrapAsProtocol("MTLTexture", motionVectorTexture) - po9 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) - po10 := objc.WrapAsProtocol("MTLTexture", previousDepthNormalTexture) - objc.Call[objc.Void](s_, objc.Sel("encodeReprojectionToCommandBuffer:sourceTexture:previousTexture:destinationTexture:previousLuminanceMomentsTexture:destinationLuminanceMomentsTexture:previousFrameCountTexture:destinationFrameCountTexture:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), po0, po1, po2, po3, po4, po5, po6, po7, po8, po9, po10) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242892-encodereprojectiontocommandbuffe?language=objc -func (s_ SVGF) EncodeReprojectionToCommandBufferObjectSourceTextureObjectPreviousTextureObjectDestinationTextureObjectPreviousLuminanceMomentsTextureObjectDestinationLuminanceMomentsTextureObjectPreviousFrameCountTextureObjectDestinationFrameCountTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, previousTextureObject objc.IObject, destinationTextureObject objc.IObject, previousLuminanceMomentsTextureObject objc.IObject, destinationLuminanceMomentsTextureObject objc.IObject, previousFrameCountTextureObject objc.IObject, destinationFrameCountTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("encodeReprojectionToCommandBuffer:sourceTexture:previousTexture:destinationTexture:previousLuminanceMomentsTexture:destinationLuminanceMomentsTexture:previousFrameCountTexture:destinationFrameCountTexture:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), commandBufferObject, sourceTextureObject, previousTextureObject, destinationTextureObject, previousLuminanceMomentsTextureObject, destinationLuminanceMomentsTextureObject, previousFrameCountTextureObject, destinationFrameCountTextureObject, motionVectorTextureObject, depthNormalTextureObject, previousDepthNormalTextureObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143564-encodewithcoder?language=objc +func (s_ SVGF) EncodeWithCoder(coder foundation.ICoder) { + objc.Call[objc.Void](s_, objc.Sel("encodeWithCoder:"), coder) } // [Full Topic] @@ -253,37 +169,42 @@ func (s_ SVGF) EncodeVarianceEstimationToCommandBufferObjectSourceTextureObjectL // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143561-encodebilateralfiltertocommandbu?language=objc -func (s_ SVGF) EncodeBilateralFilterToCommandBufferStepDistanceSourceTextureDestinationTextureSourceTexture2DestinationTexture2DepthNormalTexture(commandBuffer metal.PCommandBuffer, stepDistance uint, sourceTexture metal.PTexture, destinationTexture metal.PTexture, sourceTexture2 metal.PTexture, destinationTexture2 metal.PTexture, depthNormalTexture metal.PTexture) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242892-encodereprojectiontocommandbuffe?language=objc +func (s_ SVGF) EncodeReprojectionToCommandBufferSourceTexturePreviousTextureDestinationTexturePreviousLuminanceMomentsTextureDestinationLuminanceMomentsTexturePreviousFrameCountTextureDestinationFrameCountTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, previousTexture metal.PTexture, destinationTexture metal.PTexture, previousLuminanceMomentsTexture metal.PTexture, destinationLuminanceMomentsTexture metal.PTexture, previousFrameCountTexture metal.PTexture, destinationFrameCountTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po2 := objc.WrapAsProtocol("MTLTexture", sourceTexture) + po1 := objc.WrapAsProtocol("MTLTexture", sourceTexture) + po2 := objc.WrapAsProtocol("MTLTexture", previousTexture) po3 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - po4 := objc.WrapAsProtocol("MTLTexture", sourceTexture2) - po5 := objc.WrapAsProtocol("MTLTexture", destinationTexture2) - po6 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) - objc.Call[objc.Void](s_, objc.Sel("encodeBilateralFilterToCommandBuffer:stepDistance:sourceTexture:destinationTexture:sourceTexture2:destinationTexture2:depthNormalTexture:"), po0, stepDistance, po2, po3, po4, po5, po6) + po4 := objc.WrapAsProtocol("MTLTexture", previousLuminanceMomentsTexture) + po5 := objc.WrapAsProtocol("MTLTexture", destinationLuminanceMomentsTexture) + po6 := objc.WrapAsProtocol("MTLTexture", previousFrameCountTexture) + po7 := objc.WrapAsProtocol("MTLTexture", destinationFrameCountTexture) + po8 := objc.WrapAsProtocol("MTLTexture", motionVectorTexture) + po9 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) + po10 := objc.WrapAsProtocol("MTLTexture", previousDepthNormalTexture) + objc.Call[objc.Void](s_, objc.Sel("encodeReprojectionToCommandBuffer:sourceTexture:previousTexture:destinationTexture:previousLuminanceMomentsTexture:destinationLuminanceMomentsTexture:previousFrameCountTexture:destinationFrameCountTexture:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), po0, po1, po2, po3, po4, po5, po6, po7, po8, po9, po10) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143561-encodebilateralfiltertocommandbu?language=objc -func (s_ SVGF) EncodeBilateralFilterToCommandBufferObjectStepDistanceSourceTextureObjectDestinationTextureObjectSourceTexture2ObjectDestinationTexture2ObjectDepthNormalTextureObject(commandBufferObject objc.IObject, stepDistance uint, sourceTextureObject objc.IObject, destinationTextureObject objc.IObject, sourceTexture2Object objc.IObject, destinationTexture2Object objc.IObject, depthNormalTextureObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("encodeBilateralFilterToCommandBuffer:stepDistance:sourceTexture:destinationTexture:sourceTexture2:destinationTexture2:depthNormalTexture:"), commandBufferObject, stepDistance, sourceTextureObject, destinationTextureObject, sourceTexture2Object, destinationTexture2Object, depthNormalTextureObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242892-encodereprojectiontocommandbuffe?language=objc +func (s_ SVGF) EncodeReprojectionToCommandBufferObjectSourceTextureObjectPreviousTextureObjectDestinationTextureObjectPreviousLuminanceMomentsTextureObjectDestinationLuminanceMomentsTextureObjectPreviousFrameCountTextureObjectDestinationFrameCountTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, previousTextureObject objc.IObject, destinationTextureObject objc.IObject, previousLuminanceMomentsTextureObject objc.IObject, destinationLuminanceMomentsTextureObject objc.IObject, previousFrameCountTextureObject objc.IObject, destinationFrameCountTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("encodeReprojectionToCommandBuffer:sourceTexture:previousTexture:destinationTexture:previousLuminanceMomentsTexture:destinationLuminanceMomentsTexture:previousFrameCountTexture:destinationFrameCountTexture:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), commandBufferObject, sourceTextureObject, previousTextureObject, destinationTextureObject, previousLuminanceMomentsTextureObject, destinationLuminanceMomentsTextureObject, previousFrameCountTextureObject, destinationFrameCountTextureObject, motionVectorTextureObject, depthNormalTextureObject, previousDepthNormalTextureObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143572-temporalweighting?language=objc -func (s_ SVGF) TemporalWeighting() TemporalWeighting { - rv := objc.Call[TemporalWeighting](s_, objc.Sel("temporalWeighting")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143557-channelcount?language=objc +func (s_ SVGF) ChannelCount() uint { + rv := objc.Call[uint](s_, objc.Sel("channelCount")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143572-temporalweighting?language=objc -func (s_ SVGF) SetTemporalWeighting(value TemporalWeighting) { - objc.Call[objc.Void](s_, objc.Sel("setTemporalWeighting:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143557-channelcount?language=objc +func (s_ SVGF) SetChannelCount(value uint) { + objc.Call[objc.Void](s_, objc.Sel("setChannelCount:"), value) } // [Full Topic] @@ -303,32 +224,17 @@ func (s_ SVGF) SetVarianceEstimationSigma(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143569-normalweight?language=objc -func (s_ SVGF) NormalWeight() float32 { - rv := objc.Call[float32](s_, objc.Sel("normalWeight")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143569-normalweight?language=objc -func (s_ SVGF) SetNormalWeight(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setNormalWeight:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143571-temporalreprojectionblendfactor?language=objc -func (s_ SVGF) TemporalReprojectionBlendFactor() float32 { - rv := objc.Call[float32](s_, objc.Sel("temporalReprojectionBlendFactor")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143556-bilateralfiltersigma?language=objc +func (s_ SVGF) BilateralFilterSigma() float32 { + rv := objc.Call[float32](s_, objc.Sel("bilateralFilterSigma")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143571-temporalreprojectionblendfactor?language=objc -func (s_ SVGF) SetTemporalReprojectionBlendFactor(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setTemporalReprojectionBlendFactor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143556-bilateralfiltersigma?language=objc +func (s_ SVGF) SetBilateralFilterSigma(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setBilateralFilterSigma:"), value) } // [Full Topic] @@ -348,122 +254,122 @@ func (s_ SVGF) SetMinimumFramesForVarianceEstimation(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143573-varianceestimationradius?language=objc -func (s_ SVGF) VarianceEstimationRadius() uint { - rv := objc.Call[uint](s_, objc.Sel("varianceEstimationRadius")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143555-bilateralfilterradius?language=objc +func (s_ SVGF) BilateralFilterRadius() uint { + rv := objc.Call[uint](s_, objc.Sel("bilateralFilterRadius")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143573-varianceestimationradius?language=objc -func (s_ SVGF) SetVarianceEstimationRadius(value uint) { - objc.Call[objc.Void](s_, objc.Sel("setVarianceEstimationRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143555-bilateralfilterradius?language=objc +func (s_ SVGF) SetBilateralFilterRadius(value uint) { + objc.Call[objc.Void](s_, objc.Sel("setBilateralFilterRadius:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143556-bilateralfiltersigma?language=objc -func (s_ SVGF) BilateralFilterSigma() float32 { - rv := objc.Call[float32](s_, objc.Sel("bilateralFilterSigma")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143558-channelcount2?language=objc +func (s_ SVGF) ChannelCount2() uint { + rv := objc.Call[uint](s_, objc.Sel("channelCount2")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143556-bilateralfiltersigma?language=objc -func (s_ SVGF) SetBilateralFilterSigma(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setBilateralFilterSigma:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143558-channelcount2?language=objc +func (s_ SVGF) SetChannelCount2(value uint) { + objc.Call[objc.Void](s_, objc.Sel("setChannelCount2:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143570-reprojectionthreshold?language=objc -func (s_ SVGF) ReprojectionThreshold() float32 { - rv := objc.Call[float32](s_, objc.Sel("reprojectionThreshold")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143575-varianceprefilterradius?language=objc +func (s_ SVGF) VariancePrefilterRadius() uint { + rv := objc.Call[uint](s_, objc.Sel("variancePrefilterRadius")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143570-reprojectionthreshold?language=objc -func (s_ SVGF) SetReprojectionThreshold(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setReprojectionThreshold:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143575-varianceprefilterradius?language=objc +func (s_ SVGF) SetVariancePrefilterRadius(value uint) { + objc.Call[objc.Void](s_, objc.Sel("setVariancePrefilterRadius:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143575-varianceprefilterradius?language=objc -func (s_ SVGF) VariancePrefilterRadius() uint { - rv := objc.Call[uint](s_, objc.Sel("variancePrefilterRadius")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143571-temporalreprojectionblendfactor?language=objc +func (s_ SVGF) TemporalReprojectionBlendFactor() float32 { + rv := objc.Call[float32](s_, objc.Sel("temporalReprojectionBlendFactor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143575-varianceprefilterradius?language=objc -func (s_ SVGF) SetVariancePrefilterRadius(value uint) { - objc.Call[objc.Void](s_, objc.Sel("setVariancePrefilterRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143571-temporalreprojectionblendfactor?language=objc +func (s_ SVGF) SetTemporalReprojectionBlendFactor(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setTemporalReprojectionBlendFactor:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143555-bilateralfilterradius?language=objc -func (s_ SVGF) BilateralFilterRadius() uint { - rv := objc.Call[uint](s_, objc.Sel("bilateralFilterRadius")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143567-luminanceweight?language=objc +func (s_ SVGF) LuminanceWeight() float32 { + rv := objc.Call[float32](s_, objc.Sel("luminanceWeight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143555-bilateralfilterradius?language=objc -func (s_ SVGF) SetBilateralFilterRadius(value uint) { - objc.Call[objc.Void](s_, objc.Sel("setBilateralFilterRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143567-luminanceweight?language=objc +func (s_ SVGF) SetLuminanceWeight(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setLuminanceWeight:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143558-channelcount2?language=objc -func (s_ SVGF) ChannelCount2() uint { - rv := objc.Call[uint](s_, objc.Sel("channelCount2")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143569-normalweight?language=objc +func (s_ SVGF) NormalWeight() float32 { + rv := objc.Call[float32](s_, objc.Sel("normalWeight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143558-channelcount2?language=objc -func (s_ SVGF) SetChannelCount2(value uint) { - objc.Call[objc.Void](s_, objc.Sel("setChannelCount2:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143569-normalweight?language=objc +func (s_ SVGF) SetNormalWeight(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setNormalWeight:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143567-luminanceweight?language=objc -func (s_ SVGF) LuminanceWeight() float32 { - rv := objc.Call[float32](s_, objc.Sel("luminanceWeight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143572-temporalweighting?language=objc +func (s_ SVGF) TemporalWeighting() TemporalWeighting { + rv := objc.Call[TemporalWeighting](s_, objc.Sel("temporalWeighting")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143567-luminanceweight?language=objc -func (s_ SVGF) SetLuminanceWeight(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setLuminanceWeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143572-temporalweighting?language=objc +func (s_ SVGF) SetTemporalWeighting(value TemporalWeighting) { + objc.Call[objc.Void](s_, objc.Sel("setTemporalWeighting:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143560-depthweight?language=objc -func (s_ SVGF) DepthWeight() float32 { - rv := objc.Call[float32](s_, objc.Sel("depthWeight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143573-varianceestimationradius?language=objc +func (s_ SVGF) VarianceEstimationRadius() uint { + rv := objc.Call[uint](s_, objc.Sel("varianceEstimationRadius")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143560-depthweight?language=objc -func (s_ SVGF) SetDepthWeight(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setDepthWeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143573-varianceestimationradius?language=objc +func (s_ SVGF) SetVarianceEstimationRadius(value uint) { + objc.Call[objc.Void](s_, objc.Sel("setVarianceEstimationRadius:"), value) } // [Full Topic] @@ -483,15 +389,30 @@ func (s_ SVGF) SetVariancePrefilterSigma(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143557-channelcount?language=objc -func (s_ SVGF) ChannelCount() uint { - rv := objc.Call[uint](s_, objc.Sel("channelCount")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143560-depthweight?language=objc +func (s_ SVGF) DepthWeight() float32 { + rv := objc.Call[float32](s_, objc.Sel("depthWeight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143557-channelcount?language=objc -func (s_ SVGF) SetChannelCount(value uint) { - objc.Call[objc.Void](s_, objc.Sel("setChannelCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143560-depthweight?language=objc +func (s_ SVGF) SetDepthWeight(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setDepthWeight:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143570-reprojectionthreshold?language=objc +func (s_ SVGF) ReprojectionThreshold() float32 { + rv := objc.Call[float32](s_, objc.Sel("reprojectionThreshold")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143570-reprojectionthreshold?language=objc +func (s_ SVGF) SetReprojectionThreshold(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setReprojectionThreshold:"), value) } diff --git a/macos/mps/svgf_default_texture_allocator.gen.go b/macos/mps/svgf_default_texture_allocator.gen.go index dee98739..80504a06 100644 --- a/macos/mps/svgf_default_texture_allocator.gen.go +++ b/macos/mps/svgf_default_texture_allocator.gen.go @@ -19,10 +19,10 @@ type _SVGFDefaultTextureAllocatorClass struct { // An interface definition for the [SVGFDefaultTextureAllocator] class. type ISVGFDefaultTextureAllocator interface { objc.IObject - Reset() - TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureObject ReturnTexture(texture metal.PTexture) ReturnTextureObject(textureObject objc.IObject) + TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureObject + Reset() Device() metal.DeviceObject AllocatedTextureCount() uint } @@ -77,32 +77,32 @@ func (s_ SVGFDefaultTextureAllocator) Init() SVGFDefaultTextureAllocator { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdefaulttextureallocator/3242898-reset?language=objc -func (s_ SVGFDefaultTextureAllocator) Reset() { - objc.Call[objc.Void](s_, objc.Sel("reset")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdefaulttextureallocator/3242899-returntexture?language=objc +func (s_ SVGFDefaultTextureAllocator) ReturnTexture(texture metal.PTexture) { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + objc.Call[objc.Void](s_, objc.Sel("returnTexture:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdefaulttextureallocator/3242900-texturewithpixelformat?language=objc -func (s_ SVGFDefaultTextureAllocator) TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureObject { - rv := objc.Call[metal.TextureObject](s_, objc.Sel("textureWithPixelFormat:width:height:"), pixelFormat, width, height) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdefaulttextureallocator/3242899-returntexture?language=objc +func (s_ SVGFDefaultTextureAllocator) ReturnTextureObject(textureObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("returnTexture:"), textureObject) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdefaulttextureallocator/3242899-returntexture?language=objc -func (s_ SVGFDefaultTextureAllocator) ReturnTexture(texture metal.PTexture) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](s_, objc.Sel("returnTexture:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdefaulttextureallocator/3242900-texturewithpixelformat?language=objc +func (s_ SVGFDefaultTextureAllocator) TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureObject { + rv := objc.Call[metal.TextureObject](s_, objc.Sel("textureWithPixelFormat:width:height:"), pixelFormat, width, height) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdefaulttextureallocator/3242899-returntexture?language=objc -func (s_ SVGFDefaultTextureAllocator) ReturnTextureObject(textureObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("returnTexture:"), textureObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdefaulttextureallocator/3242898-reset?language=objc +func (s_ SVGFDefaultTextureAllocator) Reset() { + objc.Call[objc.Void](s_, objc.Sel("reset")) } // [Full Topic] diff --git a/macos/mps/svgf_denoiser.gen.go b/macos/mps/svgf_denoiser.gen.go index 6d7502f1..0928f796 100644 --- a/macos/mps/svgf_denoiser.gen.go +++ b/macos/mps/svgf_denoiser.gen.go @@ -19,16 +19,14 @@ type _SVGFDenoiserClass struct { // An interface definition for the [SVGFDenoiser] class. type ISVGFDenoiser interface { objc.IObject - EncodeToCommandBufferSourceTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) metal.TextureObject - EncodeToCommandBufferObjectSourceTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) metal.TextureObject ClearTemporalHistory() ReleaseTemporaryTextures() - EncodeToCommandBufferSourceTextureDestinationTextureSourceTexture2DestinationTexture2MotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, destinationTexture unsafe.Pointer, sourceTexture2 metal.PTexture, destinationTexture2 unsafe.Pointer, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) - EncodeToCommandBufferObjectSourceTextureObjectDestinationTextureObjectSourceTexture2ObjectDestinationTexture2ObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, destinationTextureObject objc.IObject, sourceTexture2Object objc.IObject, destinationTexture2Object objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) + EncodeToCommandBufferSourceTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) metal.TextureObject + EncodeToCommandBufferObjectSourceTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) metal.TextureObject + TextureAllocator() SVGFTextureAllocatorObject Svgf() SVGF BilateralFilterIterations() uint SetBilateralFilterIterations(value uint) - TextureAllocator() SVGFTextureAllocatorObject } // [Full Topic] @@ -94,6 +92,20 @@ func (s_ SVGFDenoiser) Init() SVGFDenoiser { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3242903-cleartemporalhistory?language=objc +func (s_ SVGFDenoiser) ClearTemporalHistory() { + objc.Call[objc.Void](s_, objc.Sel("clearTemporalHistory")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3242911-releasetemporarytextures?language=objc +func (s_ SVGFDenoiser) ReleaseTemporaryTextures() { + objc.Call[objc.Void](s_, objc.Sel("releaseTemporaryTextures")) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3353093-encodetocommandbuffer?language=objc @@ -117,38 +129,10 @@ func (s_ SVGFDenoiser) EncodeToCommandBufferObjectSourceTextureObjectMotionVecto // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3242903-cleartemporalhistory?language=objc -func (s_ SVGFDenoiser) ClearTemporalHistory() { - objc.Call[objc.Void](s_, objc.Sel("clearTemporalHistory")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3242911-releasetemporarytextures?language=objc -func (s_ SVGFDenoiser) ReleaseTemporaryTextures() { - objc.Call[objc.Void](s_, objc.Sel("releaseTemporaryTextures")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3353092-encodetocommandbuffer?language=objc -func (s_ SVGFDenoiser) EncodeToCommandBufferSourceTextureDestinationTextureSourceTexture2DestinationTexture2MotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, destinationTexture unsafe.Pointer, sourceTexture2 metal.PTexture, destinationTexture2 unsafe.Pointer, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po2 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - po3 := objc.WrapAsProtocol("MTLTexture", sourceTexture2) - po4 := objc.WrapAsProtocol("MTLTexture", destinationTexture2) - po5 := objc.WrapAsProtocol("MTLTexture", motionVectorTexture) - po6 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) - po7 := objc.WrapAsProtocol("MTLTexture", previousDepthNormalTexture) - objc.Call[objc.Void](s_, objc.Sel("encodeToCommandBuffer:sourceTexture:destinationTexture:sourceTexture2:destinationTexture2:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), po0, po1, po2, po3, po4, po5, po6, po7) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3353092-encodetocommandbuffer?language=objc -func (s_ SVGFDenoiser) EncodeToCommandBufferObjectSourceTextureObjectDestinationTextureObjectSourceTexture2ObjectDestinationTexture2ObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, destinationTextureObject objc.IObject, sourceTexture2Object objc.IObject, destinationTexture2Object objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("encodeToCommandBuffer:sourceTexture:destinationTexture:sourceTexture2:destinationTexture2:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), commandBufferObject, sourceTextureObject, destinationTextureObject, sourceTexture2Object, destinationTexture2Object, motionVectorTextureObject, depthNormalTextureObject, previousDepthNormalTextureObject) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3242915-textureallocator?language=objc +func (s_ SVGFDenoiser) TextureAllocator() SVGFTextureAllocatorObject { + rv := objc.Call[SVGFTextureAllocatorObject](s_, objc.Sel("textureAllocator")) + return rv } // [Full Topic] @@ -173,11 +157,3 @@ func (s_ SVGFDenoiser) BilateralFilterIterations() uint { func (s_ SVGFDenoiser) SetBilateralFilterIterations(value uint) { objc.Call[objc.Void](s_, objc.Sel("setBilateralFilterIterations:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3242915-textureallocator?language=objc -func (s_ SVGFDenoiser) TextureAllocator() SVGFTextureAllocatorObject { - rv := objc.Call[SVGFTextureAllocatorObject](s_, objc.Sel("textureAllocator")) - return rv -} diff --git a/macos/mps/svgf_texture_allocator_protocol.gen.go b/macos/mps/svgf_texture_allocator_protocol.gen.go index d856b175..a4702bd6 100644 --- a/macos/mps/svgf_texture_allocator_protocol.gen.go +++ b/macos/mps/svgf_texture_allocator_protocol.gen.go @@ -11,13 +11,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgftextureallocator?language=objc type PSVGFTextureAllocator interface { - // optional - TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureObject - HasTextureWithPixelFormatWidthHeight() bool - // optional ReturnTexture(texture metal.TextureObject) HasReturnTexture() bool + + // optional + TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureObject + HasTextureWithPixelFormatWidthHeight() bool } // ensure impl type implements protocol interface @@ -28,18 +28,6 @@ type SVGFTextureAllocatorObject struct { objc.Object } -func (s_ SVGFTextureAllocatorObject) HasTextureWithPixelFormatWidthHeight() bool { - return s_.RespondsToSelector(objc.Sel("textureWithPixelFormat:width:height:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgftextureallocator/3242918-texturewithpixelformat?language=objc -func (s_ SVGFTextureAllocatorObject) TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureObject { - rv := objc.Call[metal.TextureObject](s_, objc.Sel("textureWithPixelFormat:width:height:"), pixelFormat, width, height) - return rv -} - func (s_ SVGFTextureAllocatorObject) HasReturnTexture() bool { return s_.RespondsToSelector(objc.Sel("returnTexture:")) } @@ -51,3 +39,15 @@ func (s_ SVGFTextureAllocatorObject) ReturnTexture(texture metal.TextureObject) po0 := objc.WrapAsProtocol("MTLTexture", texture) objc.Call[objc.Void](s_, objc.Sel("returnTexture:"), po0) } + +func (s_ SVGFTextureAllocatorObject) HasTextureWithPixelFormatWidthHeight() bool { + return s_.RespondsToSelector(objc.Sel("textureWithPixelFormat:width:height:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgftextureallocator/3242918-texturewithpixelformat?language=objc +func (s_ SVGFTextureAllocatorObject) TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureObject { + rv := objc.Call[metal.TextureObject](s_, objc.Sel("textureWithPixelFormat:width:height:"), pixelFormat, width, height) + return rv +} diff --git a/macos/mps/temporal_aa.gen.go b/macos/mps/temporal_aa.gen.go index 97296eb4..3f3bc8c7 100644 --- a/macos/mps/temporal_aa.gen.go +++ b/macos/mps/temporal_aa.gen.go @@ -40,32 +40,32 @@ func TemporalAAFrom(ptr unsafe.Pointer) TemporalAA { } } -func (t_ TemporalAA) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) TemporalAA { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[TemporalAA](t_, objc.Sel("copyWithZone:device:"), zone, po1) +func (t_ TemporalAA) InitWithDevice(device metal.PDevice) TemporalAA { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[TemporalAA](t_, objc.Sel("initWithDevice:"), po0) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpstemporalaa/3143583-copywithzone?language=objc -func TemporalAA_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) TemporalAA { - instance := TemporalAAClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpstemporalaa/3143587-initwithdevice?language=objc +func NewTemporalAAWithDevice(device metal.PDevice) TemporalAA { + instance := TemporalAAClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (t_ TemporalAA) InitWithDevice(device metal.PDevice) TemporalAA { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[TemporalAA](t_, objc.Sel("initWithDevice:"), po0) +func (t_ TemporalAA) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) TemporalAA { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[TemporalAA](t_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpstemporalaa/3143587-initwithdevice?language=objc -func NewTemporalAAWithDevice(device metal.PDevice) TemporalAA { - instance := TemporalAAClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpstemporalaa/3143583-copywithzone?language=objc +func TemporalAA_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) TemporalAA { + instance := TemporalAAClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/temporary_image.gen.go b/macos/mps/temporary_image.gen.go index a327cd4d..47ed41ee 100644 --- a/macos/mps/temporary_image.gen.go +++ b/macos/mps/temporary_image.gen.go @@ -50,32 +50,6 @@ func TemporaryImage_TemporaryImageWithCommandBufferTextureDescriptorFeatureChann return TemporaryImageClass.TemporaryImageWithCommandBufferTextureDescriptorFeatureChannels(commandBuffer, textureDescriptor, featureChannels) } -func (tc _TemporaryImageClass) TemporaryImageWithCommandBufferImageDescriptor(commandBuffer metal.PCommandBuffer, imageDescriptor IImageDescriptor) TemporaryImage { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[TemporaryImage](tc, objc.Sel("temporaryImageWithCommandBuffer:imageDescriptor:"), po0, imageDescriptor) - return rv -} - -// Initializes a temporary image for use on a command buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpstemporaryimage/2097545-temporaryimagewithcommandbuffer?language=objc -func TemporaryImage_TemporaryImageWithCommandBufferImageDescriptor(commandBuffer metal.PCommandBuffer, imageDescriptor IImageDescriptor) TemporaryImage { - return TemporaryImageClass.TemporaryImageWithCommandBufferImageDescriptor(commandBuffer, imageDescriptor) -} - -func (tc _TemporaryImageClass) TemporaryImageWithCommandBufferTextureDescriptor(commandBuffer metal.PCommandBuffer, textureDescriptor metal.ITextureDescriptor) TemporaryImage { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[TemporaryImage](tc, objc.Sel("temporaryImageWithCommandBuffer:textureDescriptor:"), po0, textureDescriptor) - return rv -} - -// Low-level interface for creating a temporary image using a texture descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpstemporaryimage/2097543-temporaryimagewithcommandbuffer?language=objc -func TemporaryImage_TemporaryImageWithCommandBufferTextureDescriptor(commandBuffer metal.PCommandBuffer, textureDescriptor metal.ITextureDescriptor) TemporaryImage { - return TemporaryImageClass.TemporaryImageWithCommandBufferTextureDescriptor(commandBuffer, textureDescriptor) -} - func (tc _TemporaryImageClass) Alloc() TemporaryImage { rv := objc.Call[TemporaryImage](tc, objc.Sel("alloc")) return rv @@ -96,6 +70,20 @@ func (t_ TemporaryImage) Init() TemporaryImage { return rv } +func (t_ TemporaryImage) InitWithParentImageSliceRangeFeatureChannels(parent IImage, sliceRange foundation.Range, featureChannels uint) TemporaryImage { + rv := objc.Call[TemporaryImage](t_, objc.Sel("initWithParentImage:sliceRange:featureChannels:"), parent, sliceRange, featureChannels) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942493-initwithparentimage?language=objc +func NewTemporaryImageWithParentImageSliceRangeFeatureChannels(parent IImage, sliceRange foundation.Range, featureChannels uint) TemporaryImage { + instance := TemporaryImageClass.Alloc().InitWithParentImageSliceRangeFeatureChannels(parent, sliceRange, featureChannels) + instance.Autorelease() + return instance +} + func (t_ TemporaryImage) InitWithTextureFeatureChannels(texture metal.PTexture, featureChannels uint) TemporaryImage { po0 := objc.WrapAsProtocol("MTLTexture", texture) rv := objc.Call[TemporaryImage](t_, objc.Sel("initWithTexture:featureChannels:"), po0, featureChannels) @@ -126,20 +114,6 @@ func NewTemporaryImageWithDeviceImageDescriptor(device metal.PDevice, imageDescr return instance } -func (t_ TemporaryImage) InitWithParentImageSliceRangeFeatureChannels(parent IImage, sliceRange foundation.Range, featureChannels uint) TemporaryImage { - rv := objc.Call[TemporaryImage](t_, objc.Sel("initWithParentImage:sliceRange:featureChannels:"), parent, sliceRange, featureChannels) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2942493-initwithparentimage?language=objc -func NewTemporaryImageWithParentImageSliceRangeFeatureChannels(parent IImage, sliceRange foundation.Range, featureChannels uint) TemporaryImage { - instance := TemporaryImageClass.Alloc().InitWithParentImageSliceRangeFeatureChannels(parent, sliceRange, featureChannels) - instance.Autorelease() - return instance -} - // A method that helps the framework decide which allocations to make ahead of time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpstemporaryimage/2097544-prefetchstoragewithcommandbuffer?language=objc diff --git a/macos/mps/temporary_matrix.gen.go b/macos/mps/temporary_matrix.gen.go index cc85f95d..d3a958df 100644 --- a/macos/mps/temporary_matrix.gen.go +++ b/macos/mps/temporary_matrix.gen.go @@ -69,47 +69,32 @@ func (t_ TemporaryMatrix) Init() TemporaryMatrix { return rv } -func (t_ TemporaryMatrix) InitWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IMatrixDescriptor) TemporaryMatrix { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[TemporaryMatrix](t_, objc.Sel("initWithBuffer:offset:descriptor:"), po0, offset, descriptor) +func (t_ TemporaryMatrix) InitWithDeviceDescriptor(device metal.PDevice, descriptor IMatrixDescriptor) TemporaryMatrix { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[TemporaryMatrix](t_, objc.Sel("initWithDevice:descriptor:"), po0, descriptor) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/3229863-initwithbuffer?language=objc -func NewTemporaryMatrixWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IMatrixDescriptor) TemporaryMatrix { - instance := TemporaryMatrixClass.Alloc().InitWithBufferOffsetDescriptor(buffer, offset, descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2942567-initwithdevice?language=objc +func NewTemporaryMatrixWithDeviceDescriptor(device metal.PDevice, descriptor IMatrixDescriptor) TemporaryMatrix { + instance := TemporaryMatrixClass.Alloc().InitWithDeviceDescriptor(device, descriptor) instance.Autorelease() return instance } -func (t_ TemporaryMatrix) InitWithBufferDescriptor(buffer metal.PBuffer, descriptor IMatrixDescriptor) TemporaryMatrix { +func (t_ TemporaryMatrix) InitWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IMatrixDescriptor) TemporaryMatrix { po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[TemporaryMatrix](t_, objc.Sel("initWithBuffer:descriptor:"), po0, descriptor) - return rv -} - -// Initializes a matrix with a buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143201-initwithbuffer?language=objc -func NewTemporaryMatrixWithBufferDescriptor(buffer metal.PBuffer, descriptor IMatrixDescriptor) TemporaryMatrix { - instance := TemporaryMatrixClass.Alloc().InitWithBufferDescriptor(buffer, descriptor) - instance.Autorelease() - return instance -} - -func (t_ TemporaryMatrix) InitWithDeviceDescriptor(device metal.PDevice, descriptor IMatrixDescriptor) TemporaryMatrix { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[TemporaryMatrix](t_, objc.Sel("initWithDevice:descriptor:"), po0, descriptor) + rv := objc.Call[TemporaryMatrix](t_, objc.Sel("initWithBuffer:offset:descriptor:"), po0, offset, descriptor) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2942567-initwithdevice?language=objc -func NewTemporaryMatrixWithDeviceDescriptor(device metal.PDevice, descriptor IMatrixDescriptor) TemporaryMatrix { - instance := TemporaryMatrixClass.Alloc().InitWithDeviceDescriptor(device, descriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/3229863-initwithbuffer?language=objc +func NewTemporaryMatrixWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IMatrixDescriptor) TemporaryMatrix { + instance := TemporaryMatrixClass.Alloc().InitWithBufferOffsetDescriptor(buffer, offset, descriptor) instance.Autorelease() return instance } diff --git a/macos/mps/temporary_nd_array.gen.go b/macos/mps/temporary_nd_array.gen.go index a6cdc136..b3ca3ce8 100644 --- a/macos/mps/temporary_nd_array.gen.go +++ b/macos/mps/temporary_nd_array.gen.go @@ -84,21 +84,6 @@ func NewTemporaryNDArrayWithDeviceScalar(device metal.PDevice, value float64) Te return instance } -func (t_ TemporaryNDArray) InitWithDeviceDescriptor(device metal.PDevice, descriptor INDArrayDescriptor) TemporaryNDArray { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[TemporaryNDArray](t_, objc.Sel("initWithDevice:descriptor:"), po0, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114049-initwithdevice?language=objc -func NewTemporaryNDArrayWithDeviceDescriptor(device metal.PDevice, descriptor INDArrayDescriptor) TemporaryNDArray { - instance := TemporaryNDArrayClass.Alloc().InitWithDeviceDescriptor(device, descriptor) - instance.Autorelease() - return instance -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpstemporaryndarray/3114074-readcount?language=objc diff --git a/macos/mps/temporary_vector.gen.go b/macos/mps/temporary_vector.gen.go index fbbace11..038b3005 100644 --- a/macos/mps/temporary_vector.gen.go +++ b/macos/mps/temporary_vector.gen.go @@ -69,21 +69,6 @@ func (t_ TemporaryVector) Init() TemporaryVector { return rv } -func (t_ TemporaryVector) InitWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IVectorDescriptor) TemporaryVector { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[TemporaryVector](t_, objc.Sel("initWithBuffer:offset:descriptor:"), po0, offset, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/3229864-initwithbuffer?language=objc -func NewTemporaryVectorWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IVectorDescriptor) TemporaryVector { - instance := TemporaryVectorClass.Alloc().InitWithBufferOffsetDescriptor(buffer, offset, descriptor) - instance.Autorelease() - return instance -} - func (t_ TemporaryVector) InitWithDeviceDescriptor(device metal.PDevice, descriptor IVectorDescriptor) TemporaryVector { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[TemporaryVector](t_, objc.Sel("initWithDevice:descriptor:"), po0, descriptor) diff --git a/macos/mps/triangle_acceleration_structure.gen.go b/macos/mps/triangle_acceleration_structure.gen.go index c4c81d3f..2fa9cdd7 100644 --- a/macos/mps/triangle_acceleration_structure.gen.go +++ b/macos/mps/triangle_acceleration_structure.gen.go @@ -54,32 +54,32 @@ func (t_ TriangleAccelerationStructure) Init() TriangleAccelerationStructure { return rv } -func (t_ TriangleAccelerationStructure) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) TriangleAccelerationStructure { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[TriangleAccelerationStructure](t_, objc.Sel("copyWithZone:device:"), zone, po1) +func (t_ TriangleAccelerationStructure) InitWithDevice(device metal.PDevice) TriangleAccelerationStructure { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[TriangleAccelerationStructure](t_, objc.Sel("initWithDevice:"), po0) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// Initializes a new kernel object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc -func TriangleAccelerationStructure_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) TriangleAccelerationStructure { - instance := TriangleAccelerationStructureClass.Alloc().CopyWithZoneDevice(zone, device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc +func NewTriangleAccelerationStructureWithDevice(device metal.PDevice) TriangleAccelerationStructure { + instance := TriangleAccelerationStructureClass.Alloc().InitWithDevice(device) instance.Autorelease() return instance } -func (t_ TriangleAccelerationStructure) InitWithDevice(device metal.PDevice) TriangleAccelerationStructure { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[TriangleAccelerationStructure](t_, objc.Sel("initWithDevice:"), po0) +func (t_ TriangleAccelerationStructure) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) TriangleAccelerationStructure { + po1 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[TriangleAccelerationStructure](t_, objc.Sel("copyWithZone:device:"), zone, po1) return rv } -// Initializes a new kernel object. [Full Topic] +// Makes a copy of this kernel object for a new device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618763-initwithdevice?language=objc -func NewTriangleAccelerationStructureWithDevice(device metal.PDevice) TriangleAccelerationStructure { - instance := TriangleAccelerationStructureClass.Alloc().InitWithDevice(device) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskernel/1618912-copywithzone?language=objc +func TriangleAccelerationStructure_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) TriangleAccelerationStructure { + instance := TriangleAccelerationStructureClass.Alloc().CopyWithZoneDevice(zone, device) instance.Autorelease() return instance } diff --git a/macos/mps/unary_image_kernel.gen.go b/macos/mps/unary_image_kernel.gen.go index fd62882d..4fe9ec85 100644 --- a/macos/mps/unary_image_kernel.gen.go +++ b/macos/mps/unary_image_kernel.gen.go @@ -19,19 +19,15 @@ type _UnaryImageKernelClass struct { // An interface definition for the [UnaryImageKernel] class. type IUnaryImageKernel interface { IKernel - EncodeToCommandBufferSourceTextureDestinationTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, destinationTexture metal.PTexture) - EncodeToCommandBufferObjectSourceTextureObjectDestinationTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, destinationTextureObject objc.IObject) SourceRegionForDestinationSize(destinationSize metal.Size) Region - EncodeToCommandBufferInPlaceTextureFallbackCopyAllocator(commandBuffer metal.PCommandBuffer, texture unsafe.Pointer, copyAllocator CopyAllocator) bool - EncodeToCommandBufferObjectInPlaceTextureObjectFallbackCopyAllocator(commandBufferObject objc.IObject, textureObject objc.IObject, copyAllocator CopyAllocator) bool EncodeToCommandBufferSourceImageDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, destinationImage IImage) EncodeToCommandBufferObjectSourceImageDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, destinationImage IImage) - ClipRect() metal.Region - SetClipRect(value metal.Region) EdgeMode() ImageEdgeMode SetEdgeMode(value ImageEdgeMode) Offset() Offset SetOffset(value Offset) + ClipRect() metal.Region + SetClipRect(value metal.Region) } // A kernel that consumes one texture and produces one texture. [Full Topic] @@ -97,23 +93,6 @@ func UnaryImageKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevi return instance } -// Encodes a kernel into a command buffer, out of place. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/1618741-encodetocommandbuffer?language=objc -func (u_ UnaryImageKernel) EncodeToCommandBufferSourceTextureDestinationTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, destinationTexture metal.PTexture) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po2 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - objc.Call[objc.Void](u_, objc.Sel("encodeToCommandBuffer:sourceTexture:destinationTexture:"), po0, po1, po2) -} - -// Encodes a kernel into a command buffer, out of place. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/1618741-encodetocommandbuffer?language=objc -func (u_ UnaryImageKernel) EncodeToCommandBufferObjectSourceTextureObjectDestinationTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, destinationTextureObject objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("encodeToCommandBuffer:sourceTexture:destinationTexture:"), commandBufferObject, sourceTextureObject, destinationTextureObject) -} - // Determines the region of the source texture that will be read for an encode operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/1618754-sourceregionfordestinationsize?language=objc @@ -122,24 +101,6 @@ func (u_ UnaryImageKernel) SourceRegionForDestinationSize(destinationSize metal. return rv } -// This method attempts to apply a kernel in place on a texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/1618873-encodetocommandbuffer?language=objc -func (u_ UnaryImageKernel) EncodeToCommandBufferInPlaceTextureFallbackCopyAllocator(commandBuffer metal.PCommandBuffer, texture unsafe.Pointer, copyAllocator CopyAllocator) bool { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", texture) - rv := objc.Call[bool](u_, objc.Sel("encodeToCommandBuffer:inPlaceTexture:fallbackCopyAllocator:"), po0, po1, copyAllocator) - return rv -} - -// This method attempts to apply a kernel in place on a texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/1618873-encodetocommandbuffer?language=objc -func (u_ UnaryImageKernel) EncodeToCommandBufferObjectInPlaceTextureObjectFallbackCopyAllocator(commandBufferObject objc.IObject, textureObject objc.IObject, copyAllocator CopyAllocator) bool { - rv := objc.Call[bool](u_, objc.Sel("encodeToCommandBuffer:inPlaceTexture:fallbackCopyAllocator:"), commandBufferObject, textureObject, copyAllocator) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/2866328-encodetocommandbuffer?language=objc @@ -155,21 +116,6 @@ func (u_ UnaryImageKernel) EncodeToCommandBufferObjectSourceImageDestinationImag objc.Call[objc.Void](u_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationImage:"), commandBufferObject, sourceImage, destinationImage) } -// An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/1618859-cliprect?language=objc -func (u_ UnaryImageKernel) ClipRect() metal.Region { - rv := objc.Call[metal.Region](u_, objc.Sel("clipRect")) - return rv -} - -// An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/1618859-cliprect?language=objc -func (u_ UnaryImageKernel) SetClipRect(value metal.Region) { - objc.Call[objc.Void](u_, objc.Sel("setClipRect:"), value) -} - // The edge mode to use when texture reads stray off the edge of an image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/1618812-edgemode?language=objc @@ -199,3 +145,18 @@ func (u_ UnaryImageKernel) Offset() Offset { func (u_ UnaryImageKernel) SetOffset(value Offset) { objc.Call[objc.Void](u_, objc.Sel("setOffset:"), value) } + +// An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/1618859-cliprect?language=objc +func (u_ UnaryImageKernel) ClipRect() metal.Region { + rv := objc.Call[metal.Region](u_, objc.Sel("clipRect")) + return rv +} + +// An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/1618859-cliprect?language=objc +func (u_ UnaryImageKernel) SetClipRect(value metal.Region) { + objc.Call[objc.Void](u_, objc.Sel("setClipRect:"), value) +} diff --git a/macos/mps/vector.gen.go b/macos/mps/vector.gen.go index 5a728a33..0141dd35 100644 --- a/macos/mps/vector.gen.go +++ b/macos/mps/vector.gen.go @@ -19,16 +19,16 @@ type _VectorClass struct { // An interface definition for the [Vector] class. type IVector interface { objc.IObject + ResourceSize() uint SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) - ResourceSize() uint - DataType() DataType - Offset() uint - Data() metal.BufferObject - Length() uint + Device() metal.DeviceObject VectorBytes() uint + Data() metal.BufferObject Vectors() uint - Device() metal.DeviceObject + Length() uint + Offset() uint + DataType() DataType } // A 1D array of data that stores the data's values. [Full Topic] @@ -44,21 +44,6 @@ func VectorFrom(ptr unsafe.Pointer) Vector { } } -func (v_ Vector) InitWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IVectorDescriptor) Vector { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[Vector](v_, objc.Sel("initWithBuffer:offset:descriptor:"), po0, offset, descriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/3229864-initwithbuffer?language=objc -func NewVectorWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IVectorDescriptor) Vector { - instance := VectorClass.Alloc().InitWithBufferOffsetDescriptor(buffer, offset, descriptor) - instance.Autorelease() - return instance -} - func (v_ Vector) InitWithDeviceDescriptor(device metal.PDevice, descriptor IVectorDescriptor) Vector { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[Vector](v_, objc.Sel("initWithDevice:descriptor:"), po0, descriptor) @@ -109,6 +94,14 @@ func (v_ Vector) Init() Vector { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2942570-resourcesize?language=objc +func (v_ Vector) ResourceSize() uint { + rv := objc.Call[uint](v_, objc.Sel("resourceSize")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2942568-synchronizeoncommandbuffer?language=objc @@ -126,25 +119,17 @@ func (v_ Vector) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObje // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2942570-resourcesize?language=objc -func (v_ Vector) ResourceSize() uint { - rv := objc.Call[uint](v_, objc.Sel("resourceSize")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873336-datatype?language=objc -func (v_ Vector) DataType() DataType { - rv := objc.Call[DataType](v_, objc.Sel("dataType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873338-device?language=objc +func (v_ Vector) Device() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](v_, objc.Sel("device")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/3375741-offset?language=objc -func (v_ Vector) Offset() uint { - rv := objc.Call[uint](v_, objc.Sel("offset")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873340-vectorbytes?language=objc +func (v_ Vector) VectorBytes() uint { + rv := objc.Call[uint](v_, objc.Sel("vectorBytes")) return rv } @@ -158,32 +143,32 @@ func (v_ Vector) Data() metal.BufferObject { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873392-length?language=objc -func (v_ Vector) Length() uint { - rv := objc.Call[uint](v_, objc.Sel("length")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873388-vectors?language=objc +func (v_ Vector) Vectors() uint { + rv := objc.Call[uint](v_, objc.Sel("vectors")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873340-vectorbytes?language=objc -func (v_ Vector) VectorBytes() uint { - rv := objc.Call[uint](v_, objc.Sel("vectorBytes")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873392-length?language=objc +func (v_ Vector) Length() uint { + rv := objc.Call[uint](v_, objc.Sel("length")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873388-vectors?language=objc -func (v_ Vector) Vectors() uint { - rv := objc.Call[uint](v_, objc.Sel("vectors")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/3375741-offset?language=objc +func (v_ Vector) Offset() uint { + rv := objc.Call[uint](v_, objc.Sel("offset")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873338-device?language=objc -func (v_ Vector) Device() metal.DeviceObject { - rv := objc.Call[metal.DeviceObject](v_, objc.Sel("device")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873336-datatype?language=objc +func (v_ Vector) DataType() DataType { + rv := objc.Call[DataType](v_, objc.Sel("dataType")) return rv } diff --git a/macos/mps/vector_descriptor.gen.go b/macos/mps/vector_descriptor.gen.go index 80b1897f..c93293ee 100644 --- a/macos/mps/vector_descriptor.gen.go +++ b/macos/mps/vector_descriptor.gen.go @@ -20,10 +20,10 @@ type IVectorDescriptor interface { objc.IObject VectorBytes() uint Vectors() uint - DataType() DataType - SetDataType(value DataType) Length() uint SetLength(value uint) + DataType() DataType + SetDataType(value DataType) } // A description of the length and data type of a vector. [Full Topic] @@ -51,18 +51,6 @@ func VectorDescriptor_VectorDescriptorWithLengthDataType(length uint, dataType D return VectorDescriptorClass.VectorDescriptorWithLengthDataType(length, dataType) } -func (vc _VectorDescriptorClass) VectorDescriptorWithLengthVectorsVectorBytesDataType(length uint, vectors uint, vectorBytes uint, dataType DataType) VectorDescriptor { - rv := objc.Call[VectorDescriptor](vc, objc.Sel("vectorDescriptorWithLength:vectors:vectorBytes:dataType:"), length, vectors, vectorBytes, dataType) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvectordescriptor/2873348-vectordescriptorwithlength?language=objc -func VectorDescriptor_VectorDescriptorWithLengthVectorsVectorBytesDataType(length uint, vectors uint, vectorBytes uint, dataType DataType) VectorDescriptor { - return VectorDescriptorClass.VectorDescriptorWithLengthVectorsVectorBytesDataType(length, vectors, vectorBytes, dataType) -} - func (vc _VectorDescriptorClass) Alloc() VectorDescriptor { rv := objc.Call[VectorDescriptor](vc, objc.Sel("alloc")) return rv @@ -116,30 +104,30 @@ func (v_ VectorDescriptor) Vectors() uint { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvectordescriptor/2873362-datatype?language=objc -func (v_ VectorDescriptor) DataType() DataType { - rv := objc.Call[DataType](v_, objc.Sel("dataType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvectordescriptor/2873345-length?language=objc +func (v_ VectorDescriptor) Length() uint { + rv := objc.Call[uint](v_, objc.Sel("length")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvectordescriptor/2873362-datatype?language=objc -func (v_ VectorDescriptor) SetDataType(value DataType) { - objc.Call[objc.Void](v_, objc.Sel("setDataType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvectordescriptor/2873345-length?language=objc +func (v_ VectorDescriptor) SetLength(value uint) { + objc.Call[objc.Void](v_, objc.Sel("setLength:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvectordescriptor/2873345-length?language=objc -func (v_ VectorDescriptor) Length() uint { - rv := objc.Call[uint](v_, objc.Sel("length")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvectordescriptor/2873362-datatype?language=objc +func (v_ VectorDescriptor) DataType() DataType { + rv := objc.Call[DataType](v_, objc.Sel("dataType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvectordescriptor/2873345-length?language=objc -func (v_ VectorDescriptor) SetLength(value uint) { - objc.Call[objc.Void](v_, objc.Sel("setLength:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvectordescriptor/2873362-datatype?language=objc +func (v_ VectorDescriptor) SetDataType(value DataType) { + objc.Call[objc.Void](v_, objc.Sel("setDataType:"), value) } diff --git a/macos/mpsgraph/convolution2_d_op_descriptor.gen.go b/macos/mpsgraph/convolution2_d_op_descriptor.gen.go index 26e73079..614ef8ff 100644 --- a/macos/mpsgraph/convolution2_d_op_descriptor.gen.go +++ b/macos/mpsgraph/convolution2_d_op_descriptor.gen.go @@ -19,30 +19,30 @@ type _Convolution2DOpDescriptorClass struct { type IConvolution2DOpDescriptor interface { objc.IObject SetExplicitPaddingWithPaddingLeftPaddingRightPaddingTopPaddingBottom(paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint) - Groups() uint - SetGroups(value uint) - DilationRateInY() uint - SetDilationRateInY(value uint) - DataLayout() TensorNamedDataLayout - SetDataLayout(value TensorNamedDataLayout) + StrideInX() uint + SetStrideInX(value uint) PaddingStyle() PaddingStyle SetPaddingStyle(value PaddingStyle) PaddingBottom() uint SetPaddingBottom(value uint) - WeightsLayout() TensorNamedDataLayout - SetWeightsLayout(value TensorNamedDataLayout) PaddingTop() uint SetPaddingTop(value uint) - StrideInX() uint - SetStrideInX(value uint) StrideInY() uint SetStrideInY(value uint) + WeightsLayout() TensorNamedDataLayout + SetWeightsLayout(value TensorNamedDataLayout) PaddingLeft() uint SetPaddingLeft(value uint) - PaddingRight() uint - SetPaddingRight(value uint) DilationRateInX() uint SetDilationRateInX(value uint) + DataLayout() TensorNamedDataLayout + SetDataLayout(value TensorNamedDataLayout) + Groups() uint + SetGroups(value uint) + DilationRateInY() uint + SetDilationRateInY(value uint) + PaddingRight() uint + SetPaddingRight(value uint) } // [Full Topic] @@ -70,18 +70,6 @@ func Convolution2DOpDescriptor_DescriptorWithStrideInXStrideInYDilationRateInXDi return Convolution2DOpDescriptorClass.DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYGroupsPaddingStyleDataLayoutWeightsLayout(strideInX, strideInY, dilationRateInX, dilationRateInY, groups, paddingStyle, dataLayout, weightsLayout) } -func (cc _Convolution2DOpDescriptorClass) DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYGroupsPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout(strideInX uint, strideInY uint, dilationRateInX uint, dilationRateInY uint, groups uint, paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint, paddingStyle PaddingStyle, dataLayout TensorNamedDataLayout, weightsLayout TensorNamedDataLayout) Convolution2DOpDescriptor { - rv := objc.Call[Convolution2DOpDescriptor](cc, objc.Sel("descriptorWithStrideInX:strideInY:dilationRateInX:dilationRateInY:groups:paddingLeft:paddingRight:paddingTop:paddingBottom:paddingStyle:dataLayout:weightsLayout:"), strideInX, strideInY, dilationRateInX, dilationRateInY, groups, paddingLeft, paddingRight, paddingTop, paddingBottom, paddingStyle, dataLayout, weightsLayout) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564599-descriptorwithstrideinx?language=objc -func Convolution2DOpDescriptor_DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYGroupsPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout(strideInX uint, strideInY uint, dilationRateInX uint, dilationRateInY uint, groups uint, paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint, paddingStyle PaddingStyle, dataLayout TensorNamedDataLayout, weightsLayout TensorNamedDataLayout) Convolution2DOpDescriptor { - return Convolution2DOpDescriptorClass.DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYGroupsPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout(strideInX, strideInY, dilationRateInX, dilationRateInY, groups, paddingLeft, paddingRight, paddingTop, paddingBottom, paddingStyle, dataLayout, weightsLayout) -} - func (cc _Convolution2DOpDescriptorClass) Alloc() Convolution2DOpDescriptor { rv := objc.Call[Convolution2DOpDescriptor](cc, objc.Sel("alloc")) return rv @@ -111,77 +99,77 @@ func (c_ Convolution2DOpDescriptor) SetExplicitPaddingWithPaddingLeftPaddingRigh // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564603-groups?language=objc -func (c_ Convolution2DOpDescriptor) Groups() uint { - rv := objc.Call[uint](c_, objc.Sel("groups")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564610-strideinx?language=objc +func (c_ Convolution2DOpDescriptor) StrideInX() uint { + rv := objc.Call[uint](c_, objc.Sel("strideInX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564603-groups?language=objc -func (c_ Convolution2DOpDescriptor) SetGroups(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setGroups:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564610-strideinx?language=objc +func (c_ Convolution2DOpDescriptor) SetStrideInX(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setStrideInX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564602-dilationrateiny?language=objc -func (c_ Convolution2DOpDescriptor) DilationRateInY() uint { - rv := objc.Call[uint](c_, objc.Sel("dilationRateInY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564607-paddingstyle?language=objc +func (c_ Convolution2DOpDescriptor) PaddingStyle() PaddingStyle { + rv := objc.Call[PaddingStyle](c_, objc.Sel("paddingStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564602-dilationrateiny?language=objc -func (c_ Convolution2DOpDescriptor) SetDilationRateInY(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setDilationRateInY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564607-paddingstyle?language=objc +func (c_ Convolution2DOpDescriptor) SetPaddingStyle(value PaddingStyle) { + objc.Call[objc.Void](c_, objc.Sel("setPaddingStyle:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564598-datalayout?language=objc -func (c_ Convolution2DOpDescriptor) DataLayout() TensorNamedDataLayout { - rv := objc.Call[TensorNamedDataLayout](c_, objc.Sel("dataLayout")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564604-paddingbottom?language=objc +func (c_ Convolution2DOpDescriptor) PaddingBottom() uint { + rv := objc.Call[uint](c_, objc.Sel("paddingBottom")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564598-datalayout?language=objc -func (c_ Convolution2DOpDescriptor) SetDataLayout(value TensorNamedDataLayout) { - objc.Call[objc.Void](c_, objc.Sel("setDataLayout:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564604-paddingbottom?language=objc +func (c_ Convolution2DOpDescriptor) SetPaddingBottom(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPaddingBottom:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564607-paddingstyle?language=objc -func (c_ Convolution2DOpDescriptor) PaddingStyle() PaddingStyle { - rv := objc.Call[PaddingStyle](c_, objc.Sel("paddingStyle")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564608-paddingtop?language=objc +func (c_ Convolution2DOpDescriptor) PaddingTop() uint { + rv := objc.Call[uint](c_, objc.Sel("paddingTop")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564607-paddingstyle?language=objc -func (c_ Convolution2DOpDescriptor) SetPaddingStyle(value PaddingStyle) { - objc.Call[objc.Void](c_, objc.Sel("setPaddingStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564608-paddingtop?language=objc +func (c_ Convolution2DOpDescriptor) SetPaddingTop(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPaddingTop:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564604-paddingbottom?language=objc -func (c_ Convolution2DOpDescriptor) PaddingBottom() uint { - rv := objc.Call[uint](c_, objc.Sel("paddingBottom")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564611-strideiny?language=objc +func (c_ Convolution2DOpDescriptor) StrideInY() uint { + rv := objc.Call[uint](c_, objc.Sel("strideInY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564604-paddingbottom?language=objc -func (c_ Convolution2DOpDescriptor) SetPaddingBottom(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setPaddingBottom:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564611-strideiny?language=objc +func (c_ Convolution2DOpDescriptor) SetStrideInY(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setStrideInY:"), value) } // [Full Topic] @@ -201,90 +189,90 @@ func (c_ Convolution2DOpDescriptor) SetWeightsLayout(value TensorNamedDataLayout // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564608-paddingtop?language=objc -func (c_ Convolution2DOpDescriptor) PaddingTop() uint { - rv := objc.Call[uint](c_, objc.Sel("paddingTop")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564605-paddingleft?language=objc +func (c_ Convolution2DOpDescriptor) PaddingLeft() uint { + rv := objc.Call[uint](c_, objc.Sel("paddingLeft")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564608-paddingtop?language=objc -func (c_ Convolution2DOpDescriptor) SetPaddingTop(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setPaddingTop:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564605-paddingleft?language=objc +func (c_ Convolution2DOpDescriptor) SetPaddingLeft(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPaddingLeft:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564610-strideinx?language=objc -func (c_ Convolution2DOpDescriptor) StrideInX() uint { - rv := objc.Call[uint](c_, objc.Sel("strideInX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564601-dilationrateinx?language=objc +func (c_ Convolution2DOpDescriptor) DilationRateInX() uint { + rv := objc.Call[uint](c_, objc.Sel("dilationRateInX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564610-strideinx?language=objc -func (c_ Convolution2DOpDescriptor) SetStrideInX(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setStrideInX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564601-dilationrateinx?language=objc +func (c_ Convolution2DOpDescriptor) SetDilationRateInX(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setDilationRateInX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564611-strideiny?language=objc -func (c_ Convolution2DOpDescriptor) StrideInY() uint { - rv := objc.Call[uint](c_, objc.Sel("strideInY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564598-datalayout?language=objc +func (c_ Convolution2DOpDescriptor) DataLayout() TensorNamedDataLayout { + rv := objc.Call[TensorNamedDataLayout](c_, objc.Sel("dataLayout")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564611-strideiny?language=objc -func (c_ Convolution2DOpDescriptor) SetStrideInY(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setStrideInY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564598-datalayout?language=objc +func (c_ Convolution2DOpDescriptor) SetDataLayout(value TensorNamedDataLayout) { + objc.Call[objc.Void](c_, objc.Sel("setDataLayout:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564605-paddingleft?language=objc -func (c_ Convolution2DOpDescriptor) PaddingLeft() uint { - rv := objc.Call[uint](c_, objc.Sel("paddingLeft")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564603-groups?language=objc +func (c_ Convolution2DOpDescriptor) Groups() uint { + rv := objc.Call[uint](c_, objc.Sel("groups")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564605-paddingleft?language=objc -func (c_ Convolution2DOpDescriptor) SetPaddingLeft(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setPaddingLeft:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564603-groups?language=objc +func (c_ Convolution2DOpDescriptor) SetGroups(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setGroups:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564606-paddingright?language=objc -func (c_ Convolution2DOpDescriptor) PaddingRight() uint { - rv := objc.Call[uint](c_, objc.Sel("paddingRight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564602-dilationrateiny?language=objc +func (c_ Convolution2DOpDescriptor) DilationRateInY() uint { + rv := objc.Call[uint](c_, objc.Sel("dilationRateInY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564606-paddingright?language=objc -func (c_ Convolution2DOpDescriptor) SetPaddingRight(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setPaddingRight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564602-dilationrateiny?language=objc +func (c_ Convolution2DOpDescriptor) SetDilationRateInY(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setDilationRateInY:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564601-dilationrateinx?language=objc -func (c_ Convolution2DOpDescriptor) DilationRateInX() uint { - rv := objc.Call[uint](c_, objc.Sel("dilationRateInX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564606-paddingright?language=objc +func (c_ Convolution2DOpDescriptor) PaddingRight() uint { + rv := objc.Call[uint](c_, objc.Sel("paddingRight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564601-dilationrateinx?language=objc -func (c_ Convolution2DOpDescriptor) SetDilationRateInX(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setDilationRateInX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/3564606-paddingright?language=objc +func (c_ Convolution2DOpDescriptor) SetPaddingRight(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPaddingRight:"), value) } diff --git a/macos/mpsgraph/depthwise_convolution2_d_op_descriptor.gen.go b/macos/mpsgraph/depthwise_convolution2_d_op_descriptor.gen.go index beaf440e..995c1492 100644 --- a/macos/mpsgraph/depthwise_convolution2_d_op_descriptor.gen.go +++ b/macos/mpsgraph/depthwise_convolution2_d_op_descriptor.gen.go @@ -19,28 +19,28 @@ type _DepthwiseConvolution2DOpDescriptorClass struct { type IDepthwiseConvolution2DOpDescriptor interface { objc.IObject SetExplicitPaddingWithPaddingLeftPaddingRightPaddingTopPaddingBottom(paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint) - WeightsLayout() TensorNamedDataLayout - SetWeightsLayout(value TensorNamedDataLayout) - PaddingRight() uint - SetPaddingRight(value uint) - StrideInY() uint - SetStrideInY(value uint) StrideInX() uint SetStrideInX(value uint) - DilationRateInY() uint - SetDilationRateInY(value uint) - DataLayout() TensorNamedDataLayout - SetDataLayout(value TensorNamedDataLayout) - PaddingLeft() uint - SetPaddingLeft(value uint) - PaddingBottom() uint - SetPaddingBottom(value uint) - DilationRateInX() uint - SetDilationRateInX(value uint) PaddingStyle() PaddingStyle SetPaddingStyle(value PaddingStyle) + PaddingBottom() uint + SetPaddingBottom(value uint) PaddingTop() uint SetPaddingTop(value uint) + StrideInY() uint + SetStrideInY(value uint) + WeightsLayout() TensorNamedDataLayout + SetWeightsLayout(value TensorNamedDataLayout) + PaddingLeft() uint + SetPaddingLeft(value uint) + DilationRateInX() uint + SetDilationRateInX(value uint) + DataLayout() TensorNamedDataLayout + SetDataLayout(value TensorNamedDataLayout) + DilationRateInY() uint + SetDilationRateInY(value uint) + PaddingRight() uint + SetPaddingRight(value uint) } // [Full Topic] @@ -56,28 +56,28 @@ func DepthwiseConvolution2DOpDescriptorFrom(ptr unsafe.Pointer) DepthwiseConvolu } } -func (dc _DepthwiseConvolution2DOpDescriptorClass) DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout(strideInX uint, strideInY uint, dilationRateInX uint, dilationRateInY uint, paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint, paddingStyle PaddingStyle, dataLayout TensorNamedDataLayout, weightsLayout TensorNamedDataLayout) DepthwiseConvolution2DOpDescriptor { - rv := objc.Call[DepthwiseConvolution2DOpDescriptor](dc, objc.Sel("descriptorWithStrideInX:strideInY:dilationRateInX:dilationRateInY:paddingLeft:paddingRight:paddingTop:paddingBottom:paddingStyle:dataLayout:weightsLayout:"), strideInX, strideInY, dilationRateInX, dilationRateInY, paddingLeft, paddingRight, paddingTop, paddingBottom, paddingStyle, dataLayout, weightsLayout) +func (dc _DepthwiseConvolution2DOpDescriptorClass) DescriptorWithDataLayoutWeightsLayout(dataLayout TensorNamedDataLayout, weightsLayout TensorNamedDataLayout) DepthwiseConvolution2DOpDescriptor { + rv := objc.Call[DepthwiseConvolution2DOpDescriptor](dc, objc.Sel("descriptorWithDataLayout:weightsLayout:"), dataLayout, weightsLayout) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667493-descriptorwithstrideinx?language=objc -func DepthwiseConvolution2DOpDescriptor_DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout(strideInX uint, strideInY uint, dilationRateInX uint, dilationRateInY uint, paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint, paddingStyle PaddingStyle, dataLayout TensorNamedDataLayout, weightsLayout TensorNamedDataLayout) DepthwiseConvolution2DOpDescriptor { - return DepthwiseConvolution2DOpDescriptorClass.DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout(strideInX, strideInY, dilationRateInX, dilationRateInY, paddingLeft, paddingRight, paddingTop, paddingBottom, paddingStyle, dataLayout, weightsLayout) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667492-descriptorwithdatalayout?language=objc +func DepthwiseConvolution2DOpDescriptor_DescriptorWithDataLayoutWeightsLayout(dataLayout TensorNamedDataLayout, weightsLayout TensorNamedDataLayout) DepthwiseConvolution2DOpDescriptor { + return DepthwiseConvolution2DOpDescriptorClass.DescriptorWithDataLayoutWeightsLayout(dataLayout, weightsLayout) } -func (dc _DepthwiseConvolution2DOpDescriptorClass) DescriptorWithDataLayoutWeightsLayout(dataLayout TensorNamedDataLayout, weightsLayout TensorNamedDataLayout) DepthwiseConvolution2DOpDescriptor { - rv := objc.Call[DepthwiseConvolution2DOpDescriptor](dc, objc.Sel("descriptorWithDataLayout:weightsLayout:"), dataLayout, weightsLayout) +func (dc _DepthwiseConvolution2DOpDescriptorClass) DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout(strideInX uint, strideInY uint, dilationRateInX uint, dilationRateInY uint, paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint, paddingStyle PaddingStyle, dataLayout TensorNamedDataLayout, weightsLayout TensorNamedDataLayout) DepthwiseConvolution2DOpDescriptor { + rv := objc.Call[DepthwiseConvolution2DOpDescriptor](dc, objc.Sel("descriptorWithStrideInX:strideInY:dilationRateInX:dilationRateInY:paddingLeft:paddingRight:paddingTop:paddingBottom:paddingStyle:dataLayout:weightsLayout:"), strideInX, strideInY, dilationRateInX, dilationRateInY, paddingLeft, paddingRight, paddingTop, paddingBottom, paddingStyle, dataLayout, weightsLayout) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667492-descriptorwithdatalayout?language=objc -func DepthwiseConvolution2DOpDescriptor_DescriptorWithDataLayoutWeightsLayout(dataLayout TensorNamedDataLayout, weightsLayout TensorNamedDataLayout) DepthwiseConvolution2DOpDescriptor { - return DepthwiseConvolution2DOpDescriptorClass.DescriptorWithDataLayoutWeightsLayout(dataLayout, weightsLayout) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667493-descriptorwithstrideinx?language=objc +func DepthwiseConvolution2DOpDescriptor_DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout(strideInX uint, strideInY uint, dilationRateInX uint, dilationRateInY uint, paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint, paddingStyle PaddingStyle, dataLayout TensorNamedDataLayout, weightsLayout TensorNamedDataLayout) DepthwiseConvolution2DOpDescriptor { + return DepthwiseConvolution2DOpDescriptorClass.DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout(strideInX, strideInY, dilationRateInX, dilationRateInY, paddingLeft, paddingRight, paddingTop, paddingBottom, paddingStyle, dataLayout, weightsLayout) } func (dc _DepthwiseConvolution2DOpDescriptorClass) Alloc() DepthwiseConvolution2DOpDescriptor { @@ -109,92 +109,92 @@ func (d_ DepthwiseConvolution2DOpDescriptor) SetExplicitPaddingWithPaddingLeftPa // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667504-weightslayout?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) WeightsLayout() TensorNamedDataLayout { - rv := objc.Call[TensorNamedDataLayout](d_, objc.Sel("weightsLayout")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667502-strideinx?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) StrideInX() uint { + rv := objc.Call[uint](d_, objc.Sel("strideInX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667504-weightslayout?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) SetWeightsLayout(value TensorNamedDataLayout) { - objc.Call[objc.Void](d_, objc.Sel("setWeightsLayout:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667502-strideinx?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetStrideInX(value uint) { + objc.Call[objc.Void](d_, objc.Sel("setStrideInX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667498-paddingright?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) PaddingRight() uint { - rv := objc.Call[uint](d_, objc.Sel("paddingRight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667499-paddingstyle?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) PaddingStyle() PaddingStyle { + rv := objc.Call[PaddingStyle](d_, objc.Sel("paddingStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667498-paddingright?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingRight(value uint) { - objc.Call[objc.Void](d_, objc.Sel("setPaddingRight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667499-paddingstyle?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingStyle(value PaddingStyle) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingStyle:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667503-strideiny?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) StrideInY() uint { - rv := objc.Call[uint](d_, objc.Sel("strideInY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667496-paddingbottom?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) PaddingBottom() uint { + rv := objc.Call[uint](d_, objc.Sel("paddingBottom")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667503-strideiny?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) SetStrideInY(value uint) { - objc.Call[objc.Void](d_, objc.Sel("setStrideInY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667496-paddingbottom?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingBottom(value uint) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingBottom:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667502-strideinx?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) StrideInX() uint { - rv := objc.Call[uint](d_, objc.Sel("strideInX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667500-paddingtop?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) PaddingTop() uint { + rv := objc.Call[uint](d_, objc.Sel("paddingTop")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667502-strideinx?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) SetStrideInX(value uint) { - objc.Call[objc.Void](d_, objc.Sel("setStrideInX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667500-paddingtop?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingTop(value uint) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingTop:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667495-dilationrateiny?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) DilationRateInY() uint { - rv := objc.Call[uint](d_, objc.Sel("dilationRateInY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667503-strideiny?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) StrideInY() uint { + rv := objc.Call[uint](d_, objc.Sel("strideInY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667495-dilationrateiny?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) SetDilationRateInY(value uint) { - objc.Call[objc.Void](d_, objc.Sel("setDilationRateInY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667503-strideiny?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetStrideInY(value uint) { + objc.Call[objc.Void](d_, objc.Sel("setStrideInY:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667491-datalayout?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) DataLayout() TensorNamedDataLayout { - rv := objc.Call[TensorNamedDataLayout](d_, objc.Sel("dataLayout")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667504-weightslayout?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) WeightsLayout() TensorNamedDataLayout { + rv := objc.Call[TensorNamedDataLayout](d_, objc.Sel("weightsLayout")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667491-datalayout?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) SetDataLayout(value TensorNamedDataLayout) { - objc.Call[objc.Void](d_, objc.Sel("setDataLayout:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667504-weightslayout?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetWeightsLayout(value TensorNamedDataLayout) { + objc.Call[objc.Void](d_, objc.Sel("setWeightsLayout:"), value) } // [Full Topic] @@ -214,60 +214,60 @@ func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingLeft(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667496-paddingbottom?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) PaddingBottom() uint { - rv := objc.Call[uint](d_, objc.Sel("paddingBottom")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667494-dilationrateinx?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) DilationRateInX() uint { + rv := objc.Call[uint](d_, objc.Sel("dilationRateInX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667496-paddingbottom?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingBottom(value uint) { - objc.Call[objc.Void](d_, objc.Sel("setPaddingBottom:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667494-dilationrateinx?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetDilationRateInX(value uint) { + objc.Call[objc.Void](d_, objc.Sel("setDilationRateInX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667494-dilationrateinx?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) DilationRateInX() uint { - rv := objc.Call[uint](d_, objc.Sel("dilationRateInX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667491-datalayout?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) DataLayout() TensorNamedDataLayout { + rv := objc.Call[TensorNamedDataLayout](d_, objc.Sel("dataLayout")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667494-dilationrateinx?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) SetDilationRateInX(value uint) { - objc.Call[objc.Void](d_, objc.Sel("setDilationRateInX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667491-datalayout?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetDataLayout(value TensorNamedDataLayout) { + objc.Call[objc.Void](d_, objc.Sel("setDataLayout:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667499-paddingstyle?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) PaddingStyle() PaddingStyle { - rv := objc.Call[PaddingStyle](d_, objc.Sel("paddingStyle")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667495-dilationrateiny?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) DilationRateInY() uint { + rv := objc.Call[uint](d_, objc.Sel("dilationRateInY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667499-paddingstyle?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingStyle(value PaddingStyle) { - objc.Call[objc.Void](d_, objc.Sel("setPaddingStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667495-dilationrateiny?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetDilationRateInY(value uint) { + objc.Call[objc.Void](d_, objc.Sel("setDilationRateInY:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667500-paddingtop?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) PaddingTop() uint { - rv := objc.Call[uint](d_, objc.Sel("paddingTop")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667498-paddingright?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) PaddingRight() uint { + rv := objc.Call[uint](d_, objc.Sel("paddingRight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667500-paddingtop?language=objc -func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingTop(value uint) { - objc.Call[objc.Void](d_, objc.Sel("setPaddingTop:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/3667498-paddingright?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingRight(value uint) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingRight:"), value) } diff --git a/macos/mpsgraph/depthwise_convolution3_d_op_descriptor.gen.go b/macos/mpsgraph/depthwise_convolution3_d_op_descriptor.gen.go index ac1b35b5..92ef6e60 100644 --- a/macos/mpsgraph/depthwise_convolution3_d_op_descriptor.gen.go +++ b/macos/mpsgraph/depthwise_convolution3_d_op_descriptor.gen.go @@ -19,16 +19,16 @@ type _DepthwiseConvolution3DOpDescriptorClass struct { // An interface definition for the [DepthwiseConvolution3DOpDescriptor] class. type IDepthwiseConvolution3DOpDescriptor interface { objc.IObject + PaddingStyle() PaddingStyle + SetPaddingStyle(value PaddingStyle) ChannelDimensionIndex() int SetChannelDimensionIndex(value int) + PaddingValues() []foundation.Number + SetPaddingValues(value []foundation.INumber) DilationRates() []foundation.Number SetDilationRates(value []foundation.INumber) Strides() []foundation.Number SetStrides(value []foundation.INumber) - PaddingValues() []foundation.Number - SetPaddingValues(value []foundation.INumber) - PaddingStyle() PaddingStyle - SetPaddingStyle(value PaddingStyle) } // [Full Topic] @@ -90,75 +90,75 @@ func (d_ DepthwiseConvolution3DOpDescriptor) Init() DepthwiseConvolution3DOpDesc // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3787589-channeldimensionindex?language=objc -func (d_ DepthwiseConvolution3DOpDescriptor) ChannelDimensionIndex() int { - rv := objc.Call[int](d_, objc.Sel("channelDimensionIndex")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750686-paddingstyle?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) PaddingStyle() PaddingStyle { + rv := objc.Call[PaddingStyle](d_, objc.Sel("paddingStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3787589-channeldimensionindex?language=objc -func (d_ DepthwiseConvolution3DOpDescriptor) SetChannelDimensionIndex(value int) { - objc.Call[objc.Void](d_, objc.Sel("setChannelDimensionIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750686-paddingstyle?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) SetPaddingStyle(value PaddingStyle) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingStyle:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750685-dilationrates?language=objc -func (d_ DepthwiseConvolution3DOpDescriptor) DilationRates() []foundation.Number { - rv := objc.Call[[]foundation.Number](d_, objc.Sel("dilationRates")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3787589-channeldimensionindex?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) ChannelDimensionIndex() int { + rv := objc.Call[int](d_, objc.Sel("channelDimensionIndex")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750685-dilationrates?language=objc -func (d_ DepthwiseConvolution3DOpDescriptor) SetDilationRates(value []foundation.INumber) { - objc.Call[objc.Void](d_, objc.Sel("setDilationRates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3787589-channeldimensionindex?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) SetChannelDimensionIndex(value int) { + objc.Call[objc.Void](d_, objc.Sel("setChannelDimensionIndex:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750688-strides?language=objc -func (d_ DepthwiseConvolution3DOpDescriptor) Strides() []foundation.Number { - rv := objc.Call[[]foundation.Number](d_, objc.Sel("strides")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750687-paddingvalues?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) PaddingValues() []foundation.Number { + rv := objc.Call[[]foundation.Number](d_, objc.Sel("paddingValues")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750688-strides?language=objc -func (d_ DepthwiseConvolution3DOpDescriptor) SetStrides(value []foundation.INumber) { - objc.Call[objc.Void](d_, objc.Sel("setStrides:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750687-paddingvalues?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) SetPaddingValues(value []foundation.INumber) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingValues:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750687-paddingvalues?language=objc -func (d_ DepthwiseConvolution3DOpDescriptor) PaddingValues() []foundation.Number { - rv := objc.Call[[]foundation.Number](d_, objc.Sel("paddingValues")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750685-dilationrates?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) DilationRates() []foundation.Number { + rv := objc.Call[[]foundation.Number](d_, objc.Sel("dilationRates")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750687-paddingvalues?language=objc -func (d_ DepthwiseConvolution3DOpDescriptor) SetPaddingValues(value []foundation.INumber) { - objc.Call[objc.Void](d_, objc.Sel("setPaddingValues:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750685-dilationrates?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) SetDilationRates(value []foundation.INumber) { + objc.Call[objc.Void](d_, objc.Sel("setDilationRates:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750686-paddingstyle?language=objc -func (d_ DepthwiseConvolution3DOpDescriptor) PaddingStyle() PaddingStyle { - rv := objc.Call[PaddingStyle](d_, objc.Sel("paddingStyle")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750688-strides?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) Strides() []foundation.Number { + rv := objc.Call[[]foundation.Number](d_, objc.Sel("strides")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750686-paddingstyle?language=objc -func (d_ DepthwiseConvolution3DOpDescriptor) SetPaddingStyle(value PaddingStyle) { - objc.Call[objc.Void](d_, objc.Sel("setPaddingStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3750688-strides?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) SetStrides(value []foundation.INumber) { + objc.Call[objc.Void](d_, objc.Sel("setStrides:"), value) } diff --git a/macos/mpsgraph/executable.gen.go b/macos/mpsgraph/executable.gen.go index 1c2c5d06..0fd779e7 100644 --- a/macos/mpsgraph/executable.gen.go +++ b/macos/mpsgraph/executable.gen.go @@ -28,8 +28,8 @@ type IExecutable interface { EncodeToCommandBufferInputsArrayResultsArrayExecutionDescriptor(commandBuffer mps.ICommandBuffer, inputsArray []ITensorData, resultsArray []ITensorData, executionDescriptor IExecutableExecutionDescriptor) []TensorData Options() Options SetOptions(value Options) - TargetTensors() []Tensor FeedTensors() []Tensor + TargetTensors() []Tensor } // [Full Topic] @@ -131,16 +131,16 @@ func (e_ Executable) SetOptions(value Options) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutable/3787597-targettensors?language=objc -func (e_ Executable) TargetTensors() []Tensor { - rv := objc.Call[[]Tensor](e_, objc.Sel("targetTensors")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutable/3787592-feedtensors?language=objc +func (e_ Executable) FeedTensors() []Tensor { + rv := objc.Call[[]Tensor](e_, objc.Sel("feedTensors")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutable/3787592-feedtensors?language=objc -func (e_ Executable) FeedTensors() []Tensor { - rv := objc.Call[[]Tensor](e_, objc.Sel("feedTensors")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutable/3787597-targettensors?language=objc +func (e_ Executable) TargetTensors() []Tensor { + rv := objc.Call[[]Tensor](e_, objc.Sel("targetTensors")) return rv } diff --git a/macos/mpsgraph/executable_execution_descriptor.gen.go b/macos/mpsgraph/executable_execution_descriptor.gen.go index 1cd9c7a2..2051c7bb 100644 --- a/macos/mpsgraph/executable_execution_descriptor.gen.go +++ b/macos/mpsgraph/executable_execution_descriptor.gen.go @@ -18,12 +18,12 @@ type _ExecutableExecutionDescriptorClass struct { // An interface definition for the [ExecutableExecutionDescriptor] class. type IExecutableExecutionDescriptor interface { objc.IObject + ScheduledHandler() ExecutableScheduledHandler + SetScheduledHandler(value ExecutableScheduledHandler) WaitUntilCompleted() bool SetWaitUntilCompleted(value bool) CompletionHandler() ExecutableCompletionHandler SetCompletionHandler(value ExecutableCompletionHandler) - ScheduledHandler() ExecutableScheduledHandler - SetScheduledHandler(value ExecutableScheduledHandler) } // [Full Topic] @@ -59,6 +59,21 @@ func (e_ ExecutableExecutionDescriptor) Init() ExecutableExecutionDescriptor { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutableexecutiondescriptor/3787601-scheduledhandler?language=objc +func (e_ ExecutableExecutionDescriptor) ScheduledHandler() ExecutableScheduledHandler { + rv := objc.Call[ExecutableScheduledHandler](e_, objc.Sel("scheduledHandler")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutableexecutiondescriptor/3787601-scheduledhandler?language=objc +func (e_ ExecutableExecutionDescriptor) SetScheduledHandler(value ExecutableScheduledHandler) { + objc.Call[objc.Void](e_, objc.Sel("setScheduledHandler:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutableexecutiondescriptor/3787602-waituntilcompleted?language=objc @@ -88,18 +103,3 @@ func (e_ ExecutableExecutionDescriptor) CompletionHandler() ExecutableCompletion func (e_ ExecutableExecutionDescriptor) SetCompletionHandler(value ExecutableCompletionHandler) { objc.Call[objc.Void](e_, objc.Sel("setCompletionHandler:"), value) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutableexecutiondescriptor/3787601-scheduledhandler?language=objc -func (e_ ExecutableExecutionDescriptor) ScheduledHandler() ExecutableScheduledHandler { - rv := objc.Call[ExecutableScheduledHandler](e_, objc.Sel("scheduledHandler")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutableexecutiondescriptor/3787601-scheduledhandler?language=objc -func (e_ ExecutableExecutionDescriptor) SetScheduledHandler(value ExecutableScheduledHandler) { - objc.Call[objc.Void](e_, objc.Sel("setScheduledHandler:"), value) -} diff --git a/macos/mpsgraph/execution_descriptor.gen.go b/macos/mpsgraph/execution_descriptor.gen.go index d6d4a6f6..7fb6b26e 100644 --- a/macos/mpsgraph/execution_descriptor.gen.go +++ b/macos/mpsgraph/execution_descriptor.gen.go @@ -18,10 +18,10 @@ type _ExecutionDescriptorClass struct { // An interface definition for the [ExecutionDescriptor] class. type IExecutionDescriptor interface { objc.IObject - WaitUntilCompleted() bool - SetWaitUntilCompleted(value bool) ScheduledHandler() ScheduledHandler SetScheduledHandler(value ScheduledHandler) + WaitUntilCompleted() bool + SetWaitUntilCompleted(value bool) CompilationDescriptor() CompilationDescriptor SetCompilationDescriptor(value ICompilationDescriptor) CompletionHandler() CompletionHandler @@ -63,32 +63,32 @@ func (e_ ExecutionDescriptor) Init() ExecutionDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutiondescriptor/3564628-waituntilcompleted?language=objc -func (e_ ExecutionDescriptor) WaitUntilCompleted() bool { - rv := objc.Call[bool](e_, objc.Sel("waitUntilCompleted")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutiondescriptor/3564627-scheduledhandler?language=objc +func (e_ ExecutionDescriptor) ScheduledHandler() ScheduledHandler { + rv := objc.Call[ScheduledHandler](e_, objc.Sel("scheduledHandler")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutiondescriptor/3564628-waituntilcompleted?language=objc -func (e_ ExecutionDescriptor) SetWaitUntilCompleted(value bool) { - objc.Call[objc.Void](e_, objc.Sel("setWaitUntilCompleted:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutiondescriptor/3564627-scheduledhandler?language=objc +func (e_ ExecutionDescriptor) SetScheduledHandler(value ScheduledHandler) { + objc.Call[objc.Void](e_, objc.Sel("setScheduledHandler:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutiondescriptor/3564627-scheduledhandler?language=objc -func (e_ ExecutionDescriptor) ScheduledHandler() ScheduledHandler { - rv := objc.Call[ScheduledHandler](e_, objc.Sel("scheduledHandler")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutiondescriptor/3564628-waituntilcompleted?language=objc +func (e_ ExecutionDescriptor) WaitUntilCompleted() bool { + rv := objc.Call[bool](e_, objc.Sel("waitUntilCompleted")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutiondescriptor/3564627-scheduledhandler?language=objc -func (e_ ExecutionDescriptor) SetScheduledHandler(value ScheduledHandler) { - objc.Call[objc.Void](e_, objc.Sel("setScheduledHandler:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphexecutiondescriptor/3564628-waituntilcompleted?language=objc +func (e_ ExecutionDescriptor) SetWaitUntilCompleted(value bool) { + objc.Call[objc.Void](e_, objc.Sel("setWaitUntilCompleted:"), value) } // [Full Topic] diff --git a/macos/mpsgraph/graph.gen.go b/macos/mpsgraph/graph.gen.go index 14975bad..9770129a 100644 --- a/macos/mpsgraph/graph.gen.go +++ b/macos/mpsgraph/graph.gen.go @@ -21,1454 +21,797 @@ type _GraphClass struct { // An interface definition for the [Graph] class. type IGraph interface { objc.IObject - RoundWithTensorName(tensor ITensor, name string) Tensor - DepthwiseConvolution3DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor - SoftMaxWithTensorAxisName(tensor ITensor, axis int, name string) Tensor - TopKWithSourceTensorKTensorName(source ITensor, kTensor ITensor, name string) []Tensor - CastTensorToTypeName(tensor ITensor, type_ mps.DataType, name string) Tensor - AtanWithTensorName(tensor ITensor, name string) Tensor - AvgPooling2DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor - IdentityWithTensorName(tensor ITensor, name string) Tensor - PlaceholderWithShapeDataTypeName(shape *foundation.Array, dataType mps.DataType, name string) Tensor - ReductionMaximumPropagateNaNWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - DepthwiseConvolution2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor - ScatterWithUpdatesTensorIndicesTensorShapeAxisModeName(updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, axis int, mode ScatterMode, name string) Tensor - SigmoidGradientWithIncomingGradientSourceTensorName(gradient ITensor, source ITensor, name string) Tensor - FloorWithTensorName(tensor ITensor, name string) Tensor - ReductionMaximumPropagateNaNWithTensorAxisName(tensor ITensor, axis int, name string) Tensor - Atan2WithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - GreaterThanOrEqualToWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - GradientForPrimaryTensorWithTensorsName(primaryTensor ITensor, tensors []ITensor, name string) foundation.Dictionary - RunAsyncWithMTLCommandQueueFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) - RunAsyncWithMTLCommandQueueObjectFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) - DivisionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - PowerWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - GatherAlongAxisTensorWithUpdatesTensorIndicesTensorName(axisTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, name string) Tensor - Convolution2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeForwardConvolutionDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor - AcosWithTensorName(tensor ITensor, name string) Tensor - MeanOfTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor + MaxPooling2DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor + AvgPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor LessThanOrEqualToWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - SingleGateRNNGradientsWithSourceTensorRecurrentWeightSourceGradientZStateInputWeightBiasInitStateMaskDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, inputWeight ITensor, bias ITensor, initState ITensor, mask ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor - SliceTensorDimensionStartLengthName(tensor ITensor, dimensionIndex uint, start int, length int, name string) Tensor - SliceTensorStartsEndsStridesStartMaskEndMaskSqueezeMaskName(tensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, startMask uint32, endMask uint32, squeezeMask uint32, name string) Tensor - NormalizationBetaGradientWithIncomingGradientTensorSourceTensorReductionAxesName(incomingGradientTensor ITensor, sourceTensor ITensor, axes []foundation.INumber, name string) Tensor - ExpandDimsOfTensorAxesTensorName(tensor ITensor, axesTensor ITensor, name string) Tensor - RandomTensorWithShapeDescriptorStateTensorName(shape *foundation.Array, descriptor IRandomOpDescriptor, state ITensor, name string) []Tensor - SingleGateRNNGradientsWithSourceTensorRecurrentWeightSourceGradientZStateStateGradientInputWeightBiasInitStateMaskDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, stateGradient ITensor, inputWeight ITensor, bias ITensor, initState ITensor, mask ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor + DepthwiseConvolution2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor + SparseTensorWithDescriptorTensorsShapeName(sparseDescriptor ICreateSparseOpDescriptor, inputTensorArray []ITensor, shape *foundation.Array, name string) Tensor + LSTMWithSourceTensorRecurrentWeightInitStateInitCellDescriptorName(source ITensor, recurrentWeight ITensor, initState ITensor, initCell ITensor, descriptor ILSTMDescriptor, name string) []Tensor Convolution2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeTensorForwardConvolutionDescriptorName(gradient ITensor, weights ITensor, outputShapeTensor ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor - NormalizationGammaGradientWithIncomingGradientTensorSourceTensorMeanTensorVarianceTensorReductionAxesEpsilonName(incomingGradientTensor ITensor, sourceTensor ITensor, meanTensor ITensor, varianceTensor ITensor, axes []foundation.INumber, epsilon float32, name string) Tensor - CompileWithDeviceFeedsTargetTensorsTargetOperationsCompilationDescriptor(device IDevice, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, compilationDescriptor ICompilationDescriptor) Executable - Flatten2DTensorAxisName(tensor ITensor, axis int, name string) Tensor - LogicalXNORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - ConcatTensorsDimensionInterleaveName(tensors []ITensor, dimensionIndex int, interleave bool, name string) Tensor - RunWithFeedsTargetTensorsTargetOperations(feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation) *foundation.Dictionary - ControlDependencyWithOperationsDependentBlockName(operations []IOperation, dependentBlock ControlFlowDependencyBlock, name string) []Tensor - ReverseTensorAxesTensorName(tensor ITensor, axesTensor ITensor, name string) Tensor - AvgPooling2DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor - OneHotWithIndicesTensorDepthAxisName(indicesTensor ITensor, depth uint, axis uint, name string) Tensor - SignWithTensorName(tensor ITensor, name string) Tensor + RunWithMTLCommandQueueFeedsTargetOperationsResultsDictionary(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary) + RunWithMTLCommandQueueObjectFeedsTargetOperationsResultsDictionary(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary) + ExpandDimsOfTensorAxesTensorName(tensor ITensor, axesTensor ITensor, name string) Tensor + ReductionAndWithTensorAxisName(tensor ITensor, axis int, name string) Tensor + ResizeTensorSizeTensorModeCenterResultAlignCornersLayoutName(imagesTensor ITensor, size ITensor, mode ResizeMode, centerResult bool, alignCorners bool, layout TensorNamedDataLayout, name string) Tensor + TanWithTensorName(tensor ITensor, name string) Tensor + FloorModuloWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + ConvolutionTranspose2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeTensorForwardConvolutionDescriptorName(incomingGradientTensor ITensor, source ITensor, outputShape ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor CoordinateAlongAxisTensorWithShapeTensorName(axisTensor ITensor, shapeTensor ITensor, name string) Tensor - ExponentBase2WithTensorName(tensor ITensor, name string) Tensor - ReductionMinimumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - DepthwiseConvolution3DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor - IsNaNWithTensorName(tensor ITensor, name string) Tensor - LogicalORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - ForLoopWithLowerBoundUpperBoundStepInitialBodyArgumentsBodyName(lowerBound ITensor, upperBound ITensor, step ITensor, initialBodyArguments []ITensor, body ForLoopBodyBlock, name string) []Tensor - ReductionOrWithTensorAxisName(tensor ITensor, axis int, name string) Tensor - RandomPhiloxStateTensorWithSeedName(seed uint, name string) Tensor - RandomTensorWithShapeTensorDescriptorSeedName(shapeTensor ITensor, descriptor IRandomOpDescriptor, seed uint, name string) Tensor - MaxPooling2DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor - ReLUWithTensorName(tensor ITensor, name string) Tensor - TileTensorWithMultiplierName(tensor ITensor, multiplier *foundation.Array, name string) Tensor - LogicalANDWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - StochasticGradientDescentWithLearningRateTensorValuesTensorGradientTensorName(learningRateTensor ITensor, valuesTensor ITensor, gradientTensor ITensor, name string) Tensor - TopKWithSourceTensorKName(source ITensor, k uint, name string) []Tensor - EqualWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - AvgPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor - LessThanWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - RunWithMTLCommandQueueFeedsTargetTensorsTargetOperations(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation) *foundation.Dictionary - RunWithMTLCommandQueueObjectFeedsTargetTensorsTargetOperations(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation) *foundation.Dictionary - ReductionMaximumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor + ReductionProductWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor + AssignVariableWithValueOfTensorName(variable ITensor, tensor ITensor, name string) Operation + RandomUniformTensorWithShapeTensorName(shapeTensor ITensor, name string) Tensor + PadTensorWithPaddingModeLeftPaddingRightPaddingConstantValueName(tensor ITensor, paddingMode PaddingMode, leftPadding *foundation.Array, rightPadding *foundation.Array, constantValue float64, name string) Tensor + ApplyStochasticGradientDescentWithLearningRateTensorVariableGradientTensorName(learningRateTensor ITensor, variable IVariableOp, gradientTensor ITensor, name string) Operation + SelectWithPredicateTensorTruePredicateTensorFalsePredicateTensorName(predicateTensor ITensor, truePredicateTensor ITensor, falseSelectTensor ITensor, name string) Tensor + DepthwiseConvolution3DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeDescriptorName(incomingGradient ITensor, source ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor LeakyReLUWithTensorAlphaName(tensor ITensor, alpha float64, name string) Tensor - LSTMWithSourceTensorRecurrentWeightInitStateInitCellDescriptorName(source ITensor, recurrentWeight ITensor, initState ITensor, initCell ITensor, descriptor ILSTMDescriptor, name string) []Tensor + LogicalNORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + ScatterNDWithDataTensorUpdatesTensorIndicesTensorBatchDimensionsModeName(dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, batchDimensions uint, mode ScatterMode, name string) Tensor SquareWithTensorName(tensor ITensor, name string) Tensor + ForLoopWithNumberOfIterationsInitialBodyArgumentsBodyName(numberOfIterations ITensor, initialBodyArguments []ITensor, body ForLoopBodyBlock, name string) []Tensor + LogicalORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + ReductionOrWithTensorAxisName(tensor ITensor, axis int, name string) Tensor + DepthToSpace2DTensorWidthAxisHeightAxisDepthAxisBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxis uint, heightAxis uint, depthAxis uint, blockSize uint, usePixelShuffleOrder bool, name string) Tensor + MaxPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor + AsinWithTensorName(tensor ITensor, name string) Tensor + SigmoidWithTensorName(tensor ITensor, name string) Tensor + TileGradientWithIncomingGradientTensorSourceTensorWithMultiplierName(incomingGradientTensor ITensor, sourceTensor ITensor, multiplier *foundation.Array, name string) Tensor + ScatterWithUpdatesTensorIndicesTensorShapeAxisModeName(updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, axis int, mode ScatterMode, name string) Tensor ErfWithTensorName(tensor ITensor, name string) Tensor - ReductionMaximumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - ExpandDimsOfTensorAxisName(tensor ITensor, axis int, name string) Tensor - OneHotWithIndicesTensorDepthDataTypeOnValueOffValueName(indicesTensor ITensor, depth uint, dataType mps.DataType, onValue float64, offValue float64, name string) Tensor - AsinhWithTensorName(tensor ITensor, name string) Tensor - MultiplicationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - DepthwiseConvolution2DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor - RandomUniformTensorWithShapeTensorName(shapeTensor ITensor, name string) Tensor - WhileWithInitialInputsBeforeAfterName(initialInputs []ITensor, before WhileBeforeBlock, after WhileAfterBlock, name string) []Tensor + TanhWithTensorName(tensor ITensor, name string) Tensor + BandPartWithTensorNumLowerTensorNumUpperTensorName(inputTensor ITensor, numLowerTensor ITensor, numUpperTensor ITensor, name string) Tensor + DepthwiseConvolution2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeDescriptorName(incomingGradient ITensor, source ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor + SoftMaxCrossEntropyWithSourceTensorLabelsTensorAxisReductionTypeName(sourceTensor ITensor, labelsTensor ITensor, axis int, reductionType LossReductionType, name string) Tensor + SignbitWithTensorName(tensor ITensor, name string) Tensor StencilWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IStencilOpDescriptor, name string) Tensor - SliceGradientTensorFwdInShapeTensorStartsEndsStridesName(inputGradientTensor ITensor, fwdInShapeTensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, name string) Tensor - SqueezeTensorAxisName(tensor ITensor, axis int, name string) Tensor - RandomTensorWithShapeTensorDescriptorName(shapeTensor ITensor, descriptor IRandomOpDescriptor, name string) Tensor - ConstantWithScalarShapeDataType(scalar float64, shape *foundation.Array, dataType mps.DataType) Tensor - ScatterNDWithUpdatesTensorIndicesTensorShapeBatchDimensionsName(updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, batchDimensions uint, name string) Tensor - TileGradientWithIncomingGradientTensorSourceTensorWithMultiplierName(incomingGradientTensor ITensor, sourceTensor ITensor, multiplier *foundation.Array, name string) Tensor - ReductionMinimumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor - VarianceOfTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - ClampWithTensorMinValueTensorMaxValueTensorName(tensor ITensor, minValueTensor ITensor, maxValueTensor ITensor, name string) Tensor - SigmoidWithTensorName(tensor ITensor, name string) Tensor - SinhWithTensorName(tensor ITensor, name string) Tensor - MaxPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor - ScatterWithDataTensorUpdatesTensorIndicesTensorAxisModeName(dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, axis int, mode ScatterMode, name string) Tensor + AvgPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor + Convolution2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeTensorForwardConvolutionDescriptorName(gradient ITensor, source ITensor, outputShapeTensor ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor + RandomTensorWithShapeDescriptorName(shape *foundation.Array, descriptor IRandomOpDescriptor, name string) Tensor + AtanhWithTensorName(tensor ITensor, name string) Tensor + ReductionArgMinimumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor + ConvolutionTranspose2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeTensorForwardConvolutionDescriptorName(incomingGradient ITensor, weights ITensor, outputShape ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor + IsNaNWithTensorName(tensor ITensor, name string) Tensor + MaximumWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + MaxPooling2DReturnIndicesWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) []Tensor + IfWithPredicateTensorThenBlockElseBlockName(predicateTensor ITensor, thenBlock IfThenElseBlock, elseBlock IfThenElseBlock, name string) []Tensor + LessThanWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + ScatterAlongAxisWithDataTensorUpdatesTensorIndicesTensorModeName(axis int, dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, mode ScatterMode, name string) Tensor + LogarithmBase10WithTensorName(tensor ITensor, name string) Tensor SpaceToDepth2DTensorWidthAxisHeightAxisDepthAxisBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxis uint, heightAxis uint, depthAxis uint, blockSize uint, usePixelShuffleOrder bool, name string) Tensor - LogicalNANDWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - AssignVariableWithValueOfTensorName(variable ITensor, tensor ITensor, name string) Operation - ReductionSumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - ScatterAlongAxisWithUpdatesTensorIndicesTensorShapeModeName(axis int, updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, mode ScatterMode, name string) Tensor - SplitTensorNumSplitsAxisName(tensor ITensor, numSplits uint, axis int, name string) []Tensor - ConvolutionTranspose2DWithSourceTensorWeightsTensorOutputShapeDescriptorName(source ITensor, weights ITensor, outputShape *foundation.Array, descriptor IConvolution2DOpDescriptor, name string) Tensor - SignbitWithTensorName(tensor ITensor, name string) Tensor - DropoutTensorRateTensorName(tensor ITensor, rate ITensor, name string) Tensor - NotEqualWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - FloorModuloWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - CoordinateAlongAxisTensorWithShapeName(axisTensor ITensor, shape *foundation.Array, name string) Tensor - NotWithTensorName(tensor ITensor, name string) Tensor - ConvolutionTranspose2DWithSourceTensorWeightsTensorOutputShapeTensorDescriptorName(source ITensor, weights ITensor, outputShape ITensor, descriptor IConvolution2DOpDescriptor, name string) Tensor - DepthToSpace2DTensorWidthAxisHeightAxisDepthAxisBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxis uint, heightAxis uint, depthAxis uint, blockSize uint, usePixelShuffleOrder bool, name string) Tensor + AdditionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + TileTensorWithMultiplierName(tensor ITensor, multiplier *foundation.Array, name string) Tensor + ExponentWithTensorName(tensor ITensor, name string) Tensor + CastTensorToTypeName(tensor ITensor, type_ mps.DataType, name string) Tensor + MeanOfTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor + ReverseSquareRootWithTensorName(tensor ITensor, name string) Tensor + ScatterNDWithUpdatesTensorIndicesTensorShapeBatchDimensionsModeName(updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, batchDimensions uint, mode ScatterMode, name string) Tensor + CoordinateAlongAxisWithShapeTensorName(axis int, shapeTensor ITensor, name string) Tensor + GatherAlongAxisWithUpdatesTensorIndicesTensorName(axis int, updatesTensor ITensor, indicesTensor ITensor, name string) Tensor + LogicalXORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + FloorWithTensorName(tensor ITensor, name string) Tensor + DepthwiseConvolution3DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor + LSTMGradientsWithSourceTensorRecurrentWeightSourceGradientZStateCellOutputFwdDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, cellOutputFwd ITensor, descriptor ILSTMDescriptor, name string) []Tensor + SplitTensorSplitSizesTensorAxisName(tensor ITensor, splitSizesTensor ITensor, axis int, name string) []Tensor + TopKWithGradientTensorSourceKTensorName(gradient ITensor, source ITensor, kTensor ITensor, name string) Tensor + IsFiniteWithTensorName(tensor ITensor, name string) Tensor + SubtractionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + ReadVariableName(variable ITensor, name string) Tensor + LeakyReLUGradientWithIncomingGradientSourceTensorAlphaTensorName(gradient ITensor, source ITensor, alphaTensor ITensor, name string) Tensor + SqueezeTensorName(tensor ITensor, name string) Tensor + NormalizationGradientWithIncomingGradientTensorSourceTensorMeanTensorVarianceTensorGammaTensorGammaGradientTensorBetaGradientTensorReductionAxesEpsilonName(incomingGradientTensor ITensor, sourceTensor ITensor, meanTensor ITensor, varianceTensor ITensor, gamma ITensor, gammaGradient ITensor, betaGradient ITensor, axes []foundation.INumber, epsilon float32, name string) Tensor Convolution2DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IConvolution2DOpDescriptor, name string) Tensor ReLUGradientWithIncomingGradientSourceTensorName(gradient ITensor, source ITensor, name string) Tensor - RunWithMTLCommandQueueFeedsTargetOperationsResultsDictionary(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary) - RunWithMTLCommandQueueObjectFeedsTargetOperationsResultsDictionary(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary) - LeakyReLUGradientWithIncomingGradientSourceTensorAlphaTensorName(gradient ITensor, source ITensor, alphaTensor ITensor, name string) Tensor + Flatten2DTensorAxisTensorName(tensor ITensor, axisTensor ITensor, name string) Tensor OneHotWithIndicesTensorDepthName(indicesTensor ITensor, depth uint, name string) Tensor + ConcatTensorsDimensionInterleaveName(tensors []ITensor, dimensionIndex int, interleave bool, name string) Tensor + ReductionMinimumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor + ReductionMaximumPropagateNaNWithTensorAxisName(tensor ITensor, axis int, name string) Tensor + RintWithTensorName(tensor ITensor, name string) Tensor + Atan2WithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + CosWithTensorName(tensor ITensor, name string) Tensor MaxPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor - GatherNDWithUpdatesTensorIndicesTensorBatchDimensionsName(updatesTensor ITensor, indicesTensor ITensor, batchDimensions uint, name string) Tensor - PadTensorWithPaddingModeLeftPaddingRightPaddingConstantValueName(tensor ITensor, paddingMode PaddingMode, leftPadding *foundation.Array, rightPadding *foundation.Array, constantValue float64, name string) Tensor - ReductionArgMaximumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor - LogarithmBase10WithTensorName(tensor ITensor, name string) Tensor - LogicalNORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - MaxPooling2DReturnIndicesWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) []Tensor - MaxPooling2DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor - ResizeTensorSizeTensorModeCenterResultAlignCornersLayoutName(imagesTensor ITensor, size ITensor, mode ResizeMode, centerResult bool, alignCorners bool, layout TensorNamedDataLayout, name string) Tensor - SparseTensorWithDescriptorTensorsShapeName(sparseDescriptor ICreateSparseOpDescriptor, inputTensorArray []ITensor, shape *foundation.Array, name string) Tensor - LogicalXORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + RunAsyncWithMTLCommandQueueFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) + RunAsyncWithMTLCommandQueueObjectFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) + ForLoopWithLowerBoundUpperBoundStepInitialBodyArgumentsBodyName(lowerBound ITensor, upperBound ITensor, step ITensor, initialBodyArguments []ITensor, body ForLoopBodyBlock, name string) []Tensor + ReLUWithTensorName(tensor ITensor, name string) Tensor + SigmoidGradientWithIncomingGradientSourceTensorName(gradient ITensor, source ITensor, name string) Tensor + SliceGradientTensorFwdInShapeTensorStartsEndsStridesName(inputGradientTensor ITensor, fwdInShapeTensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, name string) Tensor + AvgPooling2DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor + ConstantWithScalarDataType(scalar float64, dataType mps.DataType) Tensor ReshapeTensorWithShapeTensorName(tensor ITensor, shapeTensor ITensor, name string) Tensor - BandPartWithTensorNumLowerNumUpperName(inputTensor ITensor, numLower int, numUpper int, name string) Tensor - TopKWithGradientTensorSourceKName(gradient ITensor, source ITensor, k uint, name string) Tensor - SqueezeTensorName(tensor ITensor, name string) Tensor - AbsoluteWithTensorName(tensor ITensor, name string) Tensor - SquareRootWithTensorName(tensor ITensor, name string) Tensor - ResizeTensorSizeModeCenterResultAlignCornersLayoutName(imagesTensor ITensor, size *foundation.Array, mode ResizeMode, centerResult bool, alignCorners bool, layout TensorNamedDataLayout, name string) Tensor - ReductionArgMinimumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor - SqueezeTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - ExponentWithTensorName(tensor ITensor, name string) Tensor - GreaterThanWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - RandomTensorWithShapeTensorDescriptorStateTensorName(shapeTensor ITensor, descriptor IRandomOpDescriptor, state ITensor, name string) []Tensor - LSTMWithSourceTensorRecurrentWeightInputWeightBiasInitStateInitCellMaskPeepholeDescriptorName(source ITensor, recurrentWeight ITensor, inputWeight ITensor, bias ITensor, initState ITensor, initCell ITensor, mask ITensor, peephole ITensor, descriptor ILSTMDescriptor, name string) []Tensor - SingleGateRNNWithSourceTensorRecurrentWeightInitStateDescriptorName(source ITensor, recurrentWeight ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor - ShapeOfTensorName(tensor ITensor, name string) Tensor - ReductionAndWithTensorAxisName(tensor ITensor, axis int, name string) Tensor - SplitTensorSplitSizesAxisName(tensor ITensor, splitSizes []foundation.INumber, axis int, name string) []Tensor - DropoutTensorRateName(tensor ITensor, rate float64, name string) Tensor - TopKWithGradientTensorSourceKTensorName(gradient ITensor, source ITensor, kTensor ITensor, name string) Tensor + MatrixMultiplicationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + ControlDependencyWithOperationsDependentBlockName(operations []IOperation, dependentBlock ControlFlowDependencyBlock, name string) []Tensor + LogicalXNORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + GatherWithUpdatesTensorIndicesTensorAxisBatchDimensionsName(updatesTensor ITensor, indicesTensor ITensor, axis uint, batchDimensions uint, name string) Tensor CoshWithTensorName(tensor ITensor, name string) Tensor + AvgPooling2DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor + ReductionMinimumPropagateNaNWithTensorAxisName(tensor ITensor, axis int, name string) Tensor RandomUniformTensorWithShapeName(shape *foundation.Array, name string) Tensor - ForLoopWithNumberOfIterationsInitialBodyArgumentsBodyName(numberOfIterations ITensor, initialBodyArguments []ITensor, body ForLoopBodyBlock, name string) []Tensor - EncodeToCommandBufferFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandBuffer mps.ICommandBuffer, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) LogarithmWithTensorName(tensor ITensor, name string) Tensor - NormalizationGradientWithIncomingGradientTensorSourceTensorMeanTensorVarianceTensorGammaTensorGammaGradientTensorBetaGradientTensorReductionAxesEpsilonName(incomingGradientTensor ITensor, sourceTensor ITensor, meanTensor ITensor, varianceTensor ITensor, gamma ITensor, gammaGradient ITensor, betaGradient ITensor, axes []foundation.INumber, epsilon float32, name string) Tensor - ConcatTensorWithTensorDimensionName(tensor ITensor, tensor2 ITensor, dimensionIndex int, name string) Tensor - ConstantWithScalarDataType(scalar float64, dataType mps.DataType) Tensor - ReductionMinimumPropagateNaNWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - IfWithPredicateTensorThenBlockElseBlockName(predicateTensor ITensor, thenBlock IfThenElseBlock, elseBlock IfThenElseBlock, name string) []Tensor - SingleGateRNNGradientsWithSourceTensorRecurrentWeightSourceGradientZStateInputWeightBiasInitStateDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, inputWeight ITensor, bias ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor - NegativeWithTensorName(tensor ITensor, name string) Tensor - SingleGateRNNGradientsWithSourceTensorRecurrentWeightSourceGradientZStateInitStateDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor - SoftMaxCrossEntropyWithSourceTensorLabelsTensorAxisReductionTypeName(sourceTensor ITensor, labelsTensor ITensor, axis int, reductionType LossReductionType, name string) Tensor - ScatterNDWithUpdatesTensorIndicesTensorShapeBatchDimensionsModeName(updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, batchDimensions uint, mode ScatterMode, name string) Tensor - ReductionMinimumPropagateNaNWithTensorAxisName(tensor ITensor, axis int, name string) Tensor - AsinWithTensorName(tensor ITensor, name string) Tensor - ExpandDimsOfTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - GatherWithUpdatesTensorIndicesTensorAxisBatchDimensionsName(updatesTensor ITensor, indicesTensor ITensor, axis uint, batchDimensions uint, name string) Tensor - PadGradientWithIncomingGradientTensorSourceTensorPaddingModeLeftPaddingRightPaddingName(incomingGradientTensor ITensor, sourceTensor ITensor, paddingMode PaddingMode, leftPadding *foundation.Array, rightPadding *foundation.Array, name string) Tensor - IsInfiniteWithTensorName(tensor ITensor, name string) Tensor - SpaceToDepth2DTensorWidthAxisTensorHeightAxisTensorDepthAxisTensorBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxisTensor ITensor, heightAxisTensor ITensor, depthAxisTensor ITensor, blockSize uint, usePixelShuffleOrder bool, name string) Tensor - ReadVariableName(variable ITensor, name string) Tensor - OneHotWithIndicesTensorDepthDataTypeName(indicesTensor ITensor, depth uint, dataType mps.DataType, name string) Tensor - RandomUniformTensorWithShapeStateTensorName(shape *foundation.Array, state ITensor, name string) []Tensor - MatrixMultiplicationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - BroadcastTensorToShapeName(tensor ITensor, shape *foundation.Array, name string) Tensor - DepthwiseConvolution3DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeDescriptorName(incomingGradient ITensor, source ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor - CeilWithTensorName(tensor ITensor, name string) Tensor - ReverseSquareRootWithTensorName(tensor ITensor, name string) Tensor - EncodeToCommandBufferFeedsTargetTensorsTargetOperationsExecutionDescriptor(commandBuffer mps.ICommandBuffer, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, executionDescriptor IExecutionDescriptor) *foundation.Dictionary - TanWithTensorName(tensor ITensor, name string) Tensor - ReductionAndWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - SoftMaxCrossEntropyGradientWithIncomingGradientTensorSourceTensorLabelsTensorAxisReductionTypeName(gradientTensor ITensor, sourceTensor ITensor, labelsTensor ITensor, axis int, reductionType LossReductionType, name string) Tensor - ConcatTensorsDimensionName(tensors []ITensor, dimensionIndex int, name string) Tensor - ReverseTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - RandomTensorWithShapeDescriptorName(shape *foundation.Array, descriptor IRandomOpDescriptor, name string) Tensor - LSTMGradientsWithSourceTensorRecurrentWeightSourceGradientZStateCellOutputFwdDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, cellOutputFwd ITensor, descriptor ILSTMDescriptor, name string) []Tensor - VarianceOfTensorMeanTensorAxesName(tensor ITensor, meanTensor ITensor, axes []foundation.INumber, name string) Tensor - ReductionProductWithTensorAxisName(tensor ITensor, axis int, name string) Tensor - ReductionSumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor - LSTMWithSourceTensorRecurrentWeightInputWeightBiasInitStateInitCellDescriptorName(source ITensor, recurrentWeight ITensor, inputWeight ITensor, bias ITensor, initState ITensor, initCell ITensor, descriptor ILSTMDescriptor, name string) []Tensor - MaxPooling4DReturnIndicesWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) []Tensor - SqueezeTensorAxesTensorName(tensor ITensor, axesTensor ITensor, name string) Tensor - ScatterNDWithDataTensorUpdatesTensorIndicesTensorBatchDimensionsModeName(dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, batchDimensions uint, mode ScatterMode, name string) Tensor - MaximumWithNaNPropagationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - SingleGateRNNWithSourceTensorRecurrentWeightInputWeightBiasInitStateMaskDescriptorName(source ITensor, recurrentWeight ITensor, inputWeight ITensor, bias ITensor, initState ITensor, mask ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor - MinimumWithNaNPropagationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - CoordinateAlongAxisWithShapeTensorName(axis int, shapeTensor ITensor, name string) Tensor - LSTMGradientsWithSourceTensorRecurrentWeightSourceGradientZStateCellOutputFwdStateGradientCellGradientInputWeightBiasInitStateInitCellMaskPeepholeDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, cellOutputFwd ITensor, stateGradient ITensor, cellGradient ITensor, inputWeight ITensor, bias ITensor, initState ITensor, initCell ITensor, mask ITensor, peephole ITensor, descriptor ILSTMDescriptor, name string) []Tensor - TanhWithTensorName(tensor ITensor, name string) Tensor - RintWithTensorName(tensor ITensor, name string) Tensor - GatherAlongAxisWithUpdatesTensorIndicesTensorName(axis int, updatesTensor ITensor, indicesTensor ITensor, name string) Tensor - LogarithmBase2WithTensorName(tensor ITensor, name string) Tensor SparseTensorWithTypeTensorsShapeDataTypeName(sparseStorageType SparseStorageType, inputTensorArray []ITensor, shape *foundation.Array, dataType mps.DataType, name string) Tensor - ConvolutionTranspose2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeTensorForwardConvolutionDescriptorName(incomingGradient ITensor, weights ITensor, outputShape ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor - ReverseTensorName(tensor ITensor, name string) Tensor - ScatterAlongAxisTensorWithDataTensorUpdatesTensorIndicesTensorModeName(axisTensor ITensor, dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, mode ScatterMode, name string) Tensor - BandPartWithTensorNumLowerTensorNumUpperTensorName(inputTensor ITensor, numLowerTensor ITensor, numUpperTensor ITensor, name string) Tensor - RunAsyncWithFeedsTargetTensorsTargetOperationsExecutionDescriptor(feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, executionDescriptor IExecutionDescriptor) *foundation.Dictionary - SplitTensorSplitSizesTensorAxisName(tensor ITensor, splitSizesTensor ITensor, axis int, name string) []Tensor - SelectWithPredicateTensorTruePredicateTensorFalsePredicateTensorName(predicateTensor ITensor, truePredicateTensor ITensor, falseSelectTensor ITensor, name string) Tensor - SingleGateRNNWithSourceTensorRecurrentWeightInputWeightBiasInitStateDescriptorName(source ITensor, recurrentWeight ITensor, inputWeight ITensor, bias ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor - OneHotWithIndicesTensorDepthAxisDataTypeOnValueOffValueName(indicesTensor ITensor, depth uint, axis uint, dataType mps.DataType, onValue float64, offValue float64, name string) Tensor - AdditionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + AbsoluteWithTensorName(tensor ITensor, name string) Tensor + ConvolutionTranspose2DWithSourceTensorWeightsTensorOutputShapeTensorDescriptorName(source ITensor, weights ITensor, outputShape ITensor, descriptor IConvolution2DOpDescriptor, name string) Tensor DivisionNoNaNWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - SliceTensorStartsEndsStridesName(tensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, name string) Tensor - RandomUniformTensorWithShapeTensorStateTensorName(shapeTensor ITensor, state ITensor, name string) []Tensor - ApplyStochasticGradientDescentWithLearningRateTensorVariableGradientTensorName(learningRateTensor ITensor, variable IVariableOp, gradientTensor ITensor, name string) Operation - AtanhWithTensorName(tensor ITensor, name string) Tensor - ModuloWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - DepthwiseConvolution2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeDescriptorName(incomingGradient ITensor, source ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor - ConvolutionTranspose2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeForwardConvolutionDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor - ReductionProductWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - AcoshWithTensorName(tensor ITensor, name string) Tensor - RandomUniformTensorWithShapeTensorSeedName(shapeTensor ITensor, seed uint, name string) Tensor - RandomTensorWithShapeDescriptorSeedName(shape *foundation.Array, descriptor IRandomOpDescriptor, seed uint, name string) Tensor - NormalizationWithTensorMeanTensorVarianceTensorGammaTensorBetaTensorEpsilonName(tensor ITensor, mean ITensor, variance ITensor, gamma ITensor, beta ITensor, epsilon float32, name string) Tensor - CoordinateAlongAxisWithShapeName(axis int, shape *foundation.Array, name string) Tensor - ReciprocalWithTensorName(tensor ITensor, name string) Tensor - RandomUniformTensorWithShapeSeedName(shape *foundation.Array, seed uint, name string) Tensor - Convolution2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeForwardConvolutionDescriptorName(incomingGradient ITensor, source ITensor, outputShape *foundation.Array, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor - RandomPhiloxStateTensorWithCounterLowCounterHighKeyName(counterLow uint, counterHigh uint, key uint, name string) Tensor - Flatten2DTensorAxisTensorName(tensor ITensor, axisTensor ITensor, name string) Tensor - Convolution2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeTensorForwardConvolutionDescriptorName(gradient ITensor, source ITensor, outputShapeTensor ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor - ScatterAlongAxisWithDataTensorUpdatesTensorIndicesTensorModeName(axis int, dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, mode ScatterMode, name string) Tensor - ConvolutionTranspose2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeForwardConvolutionDescriptorName(incomingGradientTensor ITensor, source ITensor, outputShape *foundation.Array, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor - ResizeWithGradientTensorInputModeCenterResultAlignCornersLayoutName(gradient ITensor, input ITensor, mode ResizeMode, centerResult bool, alignCorners bool, layout TensorNamedDataLayout, name string) Tensor - RunAsyncWithMTLCommandQueueFeedsTargetTensorsTargetOperationsExecutionDescriptor(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, executionDescriptor IExecutionDescriptor) *foundation.Dictionary - RunAsyncWithMTLCommandQueueObjectFeedsTargetTensorsTargetOperationsExecutionDescriptor(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, executionDescriptor IExecutionDescriptor) *foundation.Dictionary - SubtractionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + AcosWithTensorName(tensor ITensor, name string) Tensor + MaxPooling4DReturnIndicesWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) []Tensor + RandomTensorWithShapeTensorDescriptorName(shapeTensor ITensor, descriptor IRandomOpDescriptor, name string) Tensor ConstantWithDataShapeDataType(data []byte, shape *foundation.Array, dataType mps.DataType) Tensor + RandomPhiloxStateTensorWithSeedName(seed uint, name string) Tensor L2NormPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor - SoftMaxGradientWithIncomingGradientSourceTensorAxisName(gradient ITensor, source ITensor, axis int, name string) Tensor - ExponentBase10WithTensorName(tensor ITensor, name string) Tensor - ConvolutionTranspose2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeTensorForwardConvolutionDescriptorName(incomingGradientTensor ITensor, source ITensor, outputShape ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor - SinWithTensorName(tensor ITensor, name string) Tensor - TransposeTensorDimensionWithDimensionName(tensor ITensor, dimensionIndex uint, dimensionIndex2 uint, name string) Tensor - IsFiniteWithTensorName(tensor ITensor, name string) Tensor - MaximumWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - L2NormPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor + ResizeWithGradientTensorInputModeCenterResultAlignCornersLayoutName(gradient ITensor, input ITensor, mode ResizeMode, centerResult bool, alignCorners bool, layout TensorNamedDataLayout, name string) Tensor VariableWithDataShapeDataTypeName(data []byte, shape *foundation.Array, dataType mps.DataType, name string) Tensor - CosWithTensorName(tensor ITensor, name string) Tensor - OneHotWithIndicesTensorDepthAxisDataTypeName(indicesTensor ITensor, depth uint, axis uint, dataType mps.DataType, name string) Tensor + GreaterThanOrEqualToWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + GradientForPrimaryTensorWithTensorsName(primaryTensor ITensor, tensors []ITensor, name string) foundation.Dictionary + CeilWithTensorName(tensor ITensor, name string) Tensor + ReverseTensorName(tensor ITensor, name string) Tensor + ExponentBase2WithTensorName(tensor ITensor, name string) Tensor + MinimumWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + IsInfiniteWithTensorName(tensor ITensor, name string) Tensor + DepthwiseConvolution3DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor + TopKWithSourceTensorKTensorName(source ITensor, kTensor ITensor, name string) []Tensor + GatherNDWithUpdatesTensorIndicesTensorBatchDimensionsName(updatesTensor ITensor, indicesTensor ITensor, batchDimensions uint, name string) Tensor + RunAsyncWithFeedsTargetTensorsTargetOperationsExecutionDescriptor(feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, executionDescriptor IExecutionDescriptor) *foundation.Dictionary + MultiplicationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + SinhWithTensorName(tensor ITensor, name string) Tensor + DropoutTensorRateName(tensor ITensor, rate float64, name string) Tensor + SingleGateRNNWithSourceTensorRecurrentWeightInitStateDescriptorName(source ITensor, recurrentWeight ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor + MinimumWithNaNPropagationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + LogarithmBase2WithTensorName(tensor ITensor, name string) Tensor PlaceholderWithShapeName(shape *foundation.Array, name string) Tensor - LeakyReLUWithTensorAlphaTensorName(tensor ITensor, alphaTensor ITensor, name string) Tensor - SliceGradientTensorFwdInShapeTensorStartsEndsStridesStartMaskEndMaskSqueezeMaskName(inputGradientTensor ITensor, fwdInShapeTensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, startMask uint32, endMask uint32, squeezeMask uint32, name string) Tensor + NegativeWithTensorName(tensor ITensor, name string) Tensor + ShapeOfTensorName(tensor ITensor, name string) Tensor + ExponentBase10WithTensorName(tensor ITensor, name string) Tensor + RunWithFeedsTargetTensorsTargetOperations(feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation) *foundation.Dictionary + MaximumWithNaNPropagationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + ScatterWithDataTensorUpdatesTensorIndicesTensorAxisModeName(dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, axis int, mode ScatterMode, name string) Tensor + GreaterThanWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + RoundWithTensorName(tensor ITensor, name string) Tensor + LogicalANDWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + ReductionMaximumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor + SignWithTensorName(tensor ITensor, name string) Tensor + EqualWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + AsinhWithTensorName(tensor ITensor, name string) Tensor + DepthwiseConvolution2DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor + VarianceOfTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor + PadGradientWithIncomingGradientTensorSourceTensorPaddingModeLeftPaddingRightPaddingName(incomingGradientTensor ITensor, sourceTensor ITensor, paddingMode PaddingMode, leftPadding *foundation.Array, rightPadding *foundation.Array, name string) Tensor + NormalizationWithTensorMeanTensorVarianceTensorGammaTensorBetaTensorEpsilonName(tensor ITensor, mean ITensor, variance ITensor, gamma ITensor, beta ITensor, epsilon float32, name string) Tensor + DivisionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + SingleGateRNNGradientsWithSourceTensorRecurrentWeightSourceGradientZStateInitStateDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor + EncodeToCommandBufferFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandBuffer mps.ICommandBuffer, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) + CompileWithDeviceFeedsTargetTensorsTargetOperationsCompilationDescriptor(device IDevice, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, compilationDescriptor ICompilationDescriptor) Executable + StochasticGradientDescentWithLearningRateTensorValuesTensorGradientTensorName(learningRateTensor ITensor, valuesTensor ITensor, gradientTensor ITensor, name string) Tensor + ReciprocalWithTensorName(tensor ITensor, name string) Tensor + SquareRootWithTensorName(tensor ITensor, name string) Tensor + NotWithTensorName(tensor ITensor, name string) Tensor + SinWithTensorName(tensor ITensor, name string) Tensor + NotEqualWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + SliceTensorStartsEndsStridesName(tensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, name string) Tensor + PowerWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + LogicalNANDWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + NormalizationBetaGradientWithIncomingGradientTensorSourceTensorReductionAxesName(incomingGradientTensor ITensor, sourceTensor ITensor, axes []foundation.INumber, name string) Tensor + AcoshWithTensorName(tensor ITensor, name string) Tensor StackTensorsAxisName(inputTensors []ITensor, axis int, name string) Tensor - LSTMGradientsWithSourceTensorRecurrentWeightSourceGradientZStateCellOutputFwdInputWeightBiasInitStateInitCellDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, cellOutputFwd ITensor, inputWeight ITensor, bias ITensor, initState ITensor, initCell ITensor, descriptor ILSTMDescriptor, name string) []Tensor - LSTMGradientsWithSourceTensorRecurrentWeightSourceGradientZStateCellOutputFwdInputWeightBiasInitStateInitCellMaskDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, cellOutputFwd ITensor, inputWeight ITensor, bias ITensor, initState ITensor, initCell ITensor, mask ITensor, descriptor ILSTMDescriptor, name string) []Tensor - ScatterAlongAxisTensorWithUpdatesTensorIndicesTensorShapeModeName(axisTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, mode ScatterMode, name string) Tensor - BroadcastTensorToShapeTensorName(tensor ITensor, shapeTensor ITensor, name string) Tensor - AvgPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor - MinimumWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor - ReshapeTensorWithShapeName(tensor ITensor, shape *foundation.Array, name string) Tensor - DepthToSpace2DTensorWidthAxisTensorHeightAxisTensorDepthAxisTensorBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxisTensor ITensor, heightAxisTensor ITensor, depthAxisTensor ITensor, blockSize uint, usePixelShuffleOrder bool, name string) Tensor - ReductionOrWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor - Options() Options - SetOptions(value Options) - PlaceholderTensors() []Tensor -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph?language=objc -type Graph struct { - objc.Object -} - -func GraphFrom(ptr unsafe.Pointer) Graph { - return Graph{ - Object: objc.ObjectFrom(ptr), - } -} - -func (gc _GraphClass) New() Graph { - rv := objc.Call[Graph](gc, objc.Sel("new")) - rv.Autorelease() - return rv -} - -func NewGraph() Graph { - return GraphClass.New() -} - -func (g_ Graph) Init() Graph { - rv := objc.Call[Graph](g_, objc.Sel("init")) - return rv -} - -func (gc _GraphClass) Alloc() Graph { - rv := objc.Call[Graph](gc, objc.Sel("alloc")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564582-roundwithtensor?language=objc -func (g_ Graph) RoundWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("roundWithTensor:name:"), tensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750679-depthwiseconvolution3ddatagradie?language=objc -func (g_ Graph) DepthwiseConvolution3DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution3DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:descriptor:name:"), incomingGradient, weights, outputShape, descriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580387-softmaxwithtensor?language=objc -func (g_ Graph) SoftMaxWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("softMaxWithTensor:axis:name:"), tensor, axis, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867084-topkwithsourcetensor?language=objc -func (g_ Graph) TopKWithSourceTensorKTensorName(source ITensor, kTensor ITensor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("topKWithSourceTensor:kTensor:name:"), source, kTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867078-casttensor?language=objc -func (g_ Graph) CastTensorToTypeName(tensor ITensor, type_ mps.DataType, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("castTensor:toType:name:"), tensor, type_, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656159-atanwithtensor?language=objc -func (g_ Graph) AtanWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("atanWithTensor:name:"), tensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564705-avgpooling2dgradientwithgradient?language=objc -func (g_ Graph) AvgPooling2DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("avgPooling2DGradientWithGradientTensor:sourceTensor:descriptor:name:"), gradient, source, descriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564555-identitywithtensor?language=objc -func (g_ Graph) IdentityWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("identityWithTensor:name:"), tensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564688-placeholderwithshape?language=objc -func (g_ Graph) PlaceholderWithShapeDataTypeName(shape *foundation.Array, dataType mps.DataType, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("placeholderWithShape:dataType:name:"), shape, dataType, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901508-reductionmaximumpropagatenanwith?language=objc -func (g_ Graph) ReductionMaximumPropagateNaNWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionMaximumPropagateNaNWithTensor:axes:name:"), tensor, axes, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3667487-depthwiseconvolution2ddatagradie?language=objc -func (g_ Graph) DepthwiseConvolution2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:descriptor:name:"), incomingGradient, weights, outputShape, descriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867075-scatterwithupdatestensor?language=objc -func (g_ Graph) ScatterWithUpdatesTensorIndicesTensorShapeAxisModeName(updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, axis int, mode ScatterMode, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("scatterWithUpdatesTensor:indicesTensor:shape:axis:mode:name:"), updatesTensor, indicesTensor, shape, axis, mode, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564470-sigmoidgradientwithincominggradi?language=objc -func (g_ Graph) SigmoidGradientWithIncomingGradientSourceTensorName(gradient ITensor, source ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sigmoidGradientWithIncomingGradient:sourceTensor:name:"), gradient, source, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564552-floorwithtensor?language=objc -func (g_ Graph) FloorWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("floorWithTensor:name:"), tensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901509-reductionmaximumpropagatenanwith?language=objc -func (g_ Graph) ReductionMaximumPropagateNaNWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionMaximumPropagateNaNWithTensor:axis:name:"), tensor, axis, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656158-atan2withprimarytensor?language=objc -func (g_ Graph) Atan2WithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("atan2WithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564553-greaterthanorequaltowithprimaryt?language=objc -func (g_ Graph) GreaterThanOrEqualToWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("greaterThanOrEqualToWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580451-gradientforprimarytensor?language=objc -func (g_ Graph) GradientForPrimaryTensorWithTensorsName(primaryTensor ITensor, tensors []ITensor, name string) foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](g_, objc.Sel("gradientForPrimaryTensor:withTensors:name:"), primaryTensor, tensors, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564619-runasyncwithmtlcommandqueue?language=objc -func (g_ Graph) RunAsyncWithMTLCommandQueueFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) { - po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) - objc.Call[objc.Void](g_, objc.Sel("runAsyncWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:executionDescriptor:"), po0, feeds, targetOperations, resultsDictionary, executionDescriptor) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564619-runasyncwithmtlcommandqueue?language=objc -func (g_ Graph) RunAsyncWithMTLCommandQueueObjectFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) { - objc.Call[objc.Void](g_, objc.Sel("runAsyncWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:executionDescriptor:"), commandQueueObject, feeds, targetOperations, resultsDictionary, executionDescriptor) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564546-divisionwithprimarytensor?language=objc -func (g_ Graph) DivisionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("divisionWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564578-powerwithprimarytensor?language=objc -func (g_ Graph) PowerWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("powerWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3928154-gatheralongaxistensor?language=objc -func (g_ Graph) GatherAlongAxisTensorWithUpdatesTensorIndicesTensorName(axisTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("gatherAlongAxisTensor:withUpdatesTensor:indicesTensor:name:"), axisTensor, updatesTensor, indicesTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618927-convolution2ddatagradientwithinc?language=objc -func (g_ Graph) Convolution2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeForwardConvolutionDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:forwardConvolutionDescriptor:name:"), incomingGradient, weights, outputShape, forwardConvolutionDescriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656154-acoswithtensor?language=objc -func (g_ Graph) AcosWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("acosWithTensor:name:"), tensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656162-meanoftensor?language=objc -func (g_ Graph) MeanOfTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("meanOfTensor:axes:name:"), tensor, axes, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564559-lessthanorequaltowithprimarytens?language=objc -func (g_ Graph) LessThanOrEqualToWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("lessThanOrEqualToWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919760-singlegaternngradientswithsource?language=objc -func (g_ Graph) SingleGateRNNGradientsWithSourceTensorRecurrentWeightSourceGradientZStateInputWeightBiasInitStateMaskDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, inputWeight ITensor, bias ITensor, initState ITensor, mask ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:inputWeight:bias:initState:mask:descriptor:name:"), source, recurrentWeight, sourceGradient, zState, inputWeight, bias, initState, mask, descriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564733-slicetensor?language=objc -func (g_ Graph) SliceTensorDimensionStartLengthName(tensor ITensor, dimensionIndex uint, start int, length int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sliceTensor:dimension:start:length:name:"), tensor, dimensionIndex, start, length, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3728136-slicetensor?language=objc -func (g_ Graph) SliceTensorStartsEndsStridesStartMaskEndMaskSqueezeMaskName(tensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, startMask uint32, endMask uint32, squeezeMask uint32, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sliceTensor:starts:ends:strides:startMask:endMask:squeezeMask:name:"), tensor, starts, ends, strides, startMask, endMask, squeezeMask, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618933-normalizationbetagradientwithinc?language=objc -func (g_ Graph) NormalizationBetaGradientWithIncomingGradientTensorSourceTensorReductionAxesName(incomingGradientTensor ITensor, sourceTensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("normalizationBetaGradientWithIncomingGradientTensor:sourceTensor:reductionAxes:name:"), incomingGradientTensor, sourceTensor, axes, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925453-expanddimsoftensor?language=objc -func (g_ Graph) ExpandDimsOfTensorAxesTensorName(tensor ITensor, axesTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("expandDimsOfTensor:axesTensor:name:"), tensor, axesTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901480-randomtensorwithshape?language=objc -func (g_ Graph) RandomTensorWithShapeDescriptorStateTensorName(shape *foundation.Array, descriptor IRandomOpDescriptor, state ITensor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("randomTensorWithShape:descriptor:stateTensor:name:"), shape, descriptor, state, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919761-singlegaternngradientswithsource?language=objc -func (g_ Graph) SingleGateRNNGradientsWithSourceTensorRecurrentWeightSourceGradientZStateStateGradientInputWeightBiasInitStateMaskDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, stateGradient ITensor, inputWeight ITensor, bias ITensor, initState ITensor, mask ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:stateGradient:inputWeight:bias:initState:mask:descriptor:name:"), source, recurrentWeight, sourceGradient, zState, stateGradient, inputWeight, bias, initState, mask, descriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867067-convolution2ddatagradientwithinc?language=objc -func (g_ Graph) Convolution2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeTensorForwardConvolutionDescriptorName(gradient ITensor, weights ITensor, outputShapeTensor ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShapeTensor:forwardConvolutionDescriptor:name:"), gradient, weights, outputShapeTensor, forwardConvolutionDescriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618934-normalizationgammagradientwithin?language=objc -func (g_ Graph) NormalizationGammaGradientWithIncomingGradientTensorSourceTensorMeanTensorVarianceTensorReductionAxesEpsilonName(incomingGradientTensor ITensor, sourceTensor ITensor, meanTensor ITensor, varianceTensor ITensor, axes []foundation.INumber, epsilon float32, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("normalizationGammaGradientWithIncomingGradientTensor:sourceTensor:meanTensor:varianceTensor:reductionAxes:epsilon:name:"), incomingGradientTensor, sourceTensor, meanTensor, varianceTensor, axes, epsilon, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3787575-compilewithdevice?language=objc -func (g_ Graph) CompileWithDeviceFeedsTargetTensorsTargetOperationsCompilationDescriptor(device IDevice, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, compilationDescriptor ICompilationDescriptor) Executable { - rv := objc.Call[Executable](g_, objc.Sel("compileWithDevice:feeds:targetTensors:targetOperations:compilationDescriptor:"), device, feeds, targetTensors, targetOperations, compilationDescriptor) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750711-flatten2dtensor?language=objc -func (g_ Graph) Flatten2DTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("flatten2DTensor:axis:name:"), tensor, axis, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564568-logicalxnorwithprimarytensor?language=objc -func (g_ Graph) LogicalXNORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("logicalXNORWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750708-concattensors?language=objc -func (g_ Graph) ConcatTensorsDimensionInterleaveName(tensors []ITensor, dimensionIndex int, interleave bool, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("concatTensors:dimension:interleave:name:"), tensors, dimensionIndex, interleave, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564621-runwithfeeds?language=objc -func (g_ Graph) RunWithFeedsTargetTensorsTargetOperations(feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation) *foundation.Dictionary { - rv := objc.Call[*foundation.Dictionary](g_, objc.Sel("runWithFeeds:targetTensors:targetOperations:"), feeds, targetTensors, targetOperations) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750667-controldependencywithoperations?language=objc -func (g_ Graph) ControlDependencyWithOperationsDependentBlockName(operations []IOperation, dependentBlock ControlFlowDependencyBlock, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("controlDependencyWithOperations:dependentBlock:name:"), operations, dependentBlock, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750714-reversetensor?language=objc -func (g_ Graph) ReverseTensorAxesTensorName(tensor ITensor, axesTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reverseTensor:axesTensor:name:"), tensor, axesTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564706-avgpooling2dwithsourcetensor?language=objc -func (g_ Graph) AvgPooling2DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("avgPooling2DWithSourceTensor:descriptor:name:"), source, descriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580483-onehotwithindicestensor?language=objc -func (g_ Graph) OneHotWithIndicesTensorDepthAxisName(indicesTensor ITensor, depth uint, axis uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("oneHotWithIndicesTensor:depth:axis:name:"), indicesTensor, depth, axis, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564584-signwithtensor?language=objc -func (g_ Graph) SignWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("signWithTensor:name:"), tensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925451-coordinatealongaxistensor?language=objc -func (g_ Graph) CoordinateAlongAxisTensorWithShapeTensorName(axisTensor ITensor, shapeTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("coordinateAlongAxisTensor:withShapeTensor:name:"), axisTensor, shapeTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564550-exponentbase2withtensor?language=objc -func (g_ Graph) ExponentBase2WithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("exponentBase2WithTensor:name:"), tensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589367-reductionminimumwithtensor?language=objc -func (g_ Graph) ReductionMinimumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionMinimumWithTensor:axes:name:"), tensor, axes, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750681-depthwiseconvolution3dwithsource?language=objc -func (g_ Graph) DepthwiseConvolution3DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution3DWithSourceTensor:weightsTensor:descriptor:name:"), source, weights, descriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564558-isnanwithtensor?language=objc -func (g_ Graph) IsNaNWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("isNaNWithTensor:name:"), tensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564567-logicalorwithprimarytensor?language=objc -func (g_ Graph) LogicalORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("logicalORWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3816769-forloopwithlowerbound?language=objc -func (g_ Graph) ForLoopWithLowerBoundUpperBoundStepInitialBodyArgumentsBodyName(lowerBound ITensor, upperBound ITensor, step ITensor, initialBodyArguments []ITensor, body ForLoopBodyBlock, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("forLoopWithLowerBound:upperBound:step:initialBodyArguments:body:name:"), lowerBound, upperBound, step, initialBodyArguments, body, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919780-reductionorwithtensor?language=objc -func (g_ Graph) ReductionOrWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionOrWithTensor:axis:name:"), tensor, axis, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901477-randomphiloxstatetensorwithseed?language=objc -func (g_ Graph) RandomPhiloxStateTensorWithSeedName(seed uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("randomPhiloxStateTensorWithSeed:name:"), seed, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901482-randomtensorwithshapetensor?language=objc -func (g_ Graph) RandomTensorWithShapeTensorDescriptorSeedName(shapeTensor ITensor, descriptor IRandomOpDescriptor, seed uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("randomTensorWithShapeTensor:descriptor:seed:name:"), shapeTensor, descriptor, seed, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564708-maxpooling2dwithsourcetensor?language=objc -func (g_ Graph) MaxPooling2DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("maxPooling2DWithSourceTensor:descriptor:name:"), source, descriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564469-reluwithtensor?language=objc -func (g_ Graph) ReLUWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reLUWithTensor:name:"), tensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564735-tiletensor?language=objc -func (g_ Graph) TileTensorWithMultiplierName(tensor ITensor, multiplier *foundation.Array, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("tileTensor:withMultiplier:name:"), tensor, multiplier, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564564-logicalandwithprimarytensor?language=objc -func (g_ Graph) LogicalANDWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("logicalANDWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618937-stochasticgradientdescentwithlea?language=objc -func (g_ Graph) StochasticGradientDescentWithLearningRateTensorValuesTensorGradientTensorName(learningRateTensor ITensor, valuesTensor ITensor, gradientTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("stochasticGradientDescentWithLearningRateTensor:valuesTensor:gradientTensor:name:"), learningRateTensor, valuesTensor, gradientTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867083-topkwithsourcetensor?language=objc -func (g_ Graph) TopKWithSourceTensorKName(source ITensor, k uint, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("topKWithSourceTensor:k:name:"), source, k, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564547-equalwithprimarytensor?language=objc -func (g_ Graph) EqualWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("equalWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750692-avgpooling4dgradientwithgradient?language=objc -func (g_ Graph) AvgPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("avgPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:"), gradient, source, descriptor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564560-lessthanwithprimarytensor?language=objc -func (g_ Graph) LessThanWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("lessThanWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564623-runwithmtlcommandqueue?language=objc -func (g_ Graph) RunWithMTLCommandQueueFeedsTargetTensorsTargetOperations(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation) *foundation.Dictionary { - po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) - rv := objc.Call[*foundation.Dictionary](g_, objc.Sel("runWithMTLCommandQueue:feeds:targetTensors:targetOperations:"), po0, feeds, targetTensors, targetOperations) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564623-runwithmtlcommandqueue?language=objc -func (g_ Graph) RunWithMTLCommandQueueObjectFeedsTargetTensorsTargetOperations(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation) *foundation.Dictionary { - rv := objc.Call[*foundation.Dictionary](g_, objc.Sel("runWithMTLCommandQueue:feeds:targetTensors:targetOperations:"), commandQueueObject, feeds, targetTensors, targetOperations) - return rv + SoftMaxCrossEntropyGradientWithIncomingGradientTensorSourceTensorLabelsTensorAxisReductionTypeName(gradientTensor ITensor, sourceTensor ITensor, labelsTensor ITensor, axis int, reductionType LossReductionType, name string) Tensor + ReductionArgMaximumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor + ConcatTensorWithTensorDimensionName(tensor ITensor, tensor2 ITensor, dimensionIndex int, name string) Tensor + L2NormPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor + GatherAlongAxisTensorWithUpdatesTensorIndicesTensorName(axisTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, name string) Tensor + ScatterAlongAxisTensorWithDataTensorUpdatesTensorIndicesTensorModeName(axisTensor ITensor, dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, mode ScatterMode, name string) Tensor + TransposeTensorDimensionWithDimensionName(tensor ITensor, dimensionIndex uint, dimensionIndex2 uint, name string) Tensor + BroadcastTensorToShapeTensorName(tensor ITensor, shapeTensor ITensor, name string) Tensor + SoftMaxGradientWithIncomingGradientSourceTensorAxisName(gradient ITensor, source ITensor, axis int, name string) Tensor + ClampWithTensorMinValueTensorMaxValueTensorName(tensor ITensor, minValueTensor ITensor, maxValueTensor ITensor, name string) Tensor + MaxPooling2DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor + ReductionSumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor + ModuloWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + RandomPhiloxStateTensorWithCounterLowCounterHighKeyName(counterLow uint, counterHigh uint, key uint, name string) Tensor + IdentityWithTensorName(tensor ITensor, name string) Tensor + WhileWithInitialInputsBeforeAfterName(initialInputs []ITensor, before WhileBeforeBlock, after WhileAfterBlock, name string) []Tensor + AtanWithTensorName(tensor ITensor, name string) Tensor + NormalizationGammaGradientWithIncomingGradientTensorSourceTensorMeanTensorVarianceTensorReductionAxesEpsilonName(incomingGradientTensor ITensor, sourceTensor ITensor, meanTensor ITensor, varianceTensor ITensor, axes []foundation.INumber, epsilon float32, name string) Tensor + SoftMaxWithTensorAxisName(tensor ITensor, axis int, name string) Tensor + Options() Options + SetOptions(value Options) + PlaceholderTensors() []Tensor } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564726-reductionmaximumwithtensor?language=objc -func (g_ Graph) ReductionMaximumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionMaximumWithTensor:axis:name:"), tensor, axis, name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph?language=objc +type Graph struct { + objc.Object } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867065-leakyreluwithtensor?language=objc -func (g_ Graph) LeakyReLUWithTensorAlphaName(tensor ITensor, alpha float64, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("leakyReLUWithTensor:alpha:name:"), tensor, alpha, name) - return rv +func GraphFrom(ptr unsafe.Pointer) Graph { + return Graph{ + Object: objc.ObjectFrom(ptr), + } } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925432-lstmwithsourcetensor?language=objc -func (g_ Graph) LSTMWithSourceTensorRecurrentWeightInitStateInitCellDescriptorName(source ITensor, recurrentWeight ITensor, initState ITensor, initCell ITensor, descriptor ILSTMDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("LSTMWithSourceTensor:recurrentWeight:initState:initCell:descriptor:name:"), source, recurrentWeight, initState, initCell, descriptor, name) +func (gc _GraphClass) New() Graph { + rv := objc.Call[Graph](gc, objc.Sel("new")) + rv.Autorelease() return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564589-squarewithtensor?language=objc -func (g_ Graph) SquareWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("squareWithTensor:name:"), tensor, name) - return rv +func NewGraph() Graph { + return GraphClass.New() } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564548-erfwithtensor?language=objc -func (g_ Graph) ErfWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("erfWithTensor:name:"), tensor, name) +func (g_ Graph) Init() Graph { + rv := objc.Call[Graph](g_, objc.Sel("init")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589366-reductionmaximumwithtensor?language=objc -func (g_ Graph) ReductionMaximumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionMaximumWithTensor:axes:name:"), tensor, axes, name) +func (gc _GraphClass) Alloc() Graph { + rv := objc.Call[Graph](gc, objc.Sel("alloc")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925454-expanddimsoftensor?language=objc -func (g_ Graph) ExpandDimsOfTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("expandDimsOfTensor:axis:name:"), tensor, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564708-maxpooling2dwithsourcetensor?language=objc +func (g_ Graph) MaxPooling2DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("maxPooling2DWithSourceTensor:descriptor:name:"), source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580485-onehotwithindicestensor?language=objc -func (g_ Graph) OneHotWithIndicesTensorDepthDataTypeOnValueOffValueName(indicesTensor ITensor, depth uint, dataType mps.DataType, onValue float64, offValue float64, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("oneHotWithIndicesTensor:depth:dataType:onValue:offValue:name:"), indicesTensor, depth, dataType, onValue, offValue, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750693-avgpooling4dwithsourcetensor?language=objc +func (g_ Graph) AvgPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("avgPooling4DWithSourceTensor:descriptor:name:"), source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656157-asinhwithtensor?language=objc -func (g_ Graph) AsinhWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("asinhWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564559-lessthanorequaltowithprimarytens?language=objc +func (g_ Graph) LessThanOrEqualToWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("lessThanOrEqualToWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564574-multiplicationwithprimarytensor?language=objc -func (g_ Graph) MultiplicationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("multiplicationWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3667487-depthwiseconvolution2ddatagradie?language=objc +func (g_ Graph) DepthwiseConvolution2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:descriptor:name:"), incomingGradient, weights, outputShape, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3667489-depthwiseconvolution2dwithsource?language=objc -func (g_ Graph) DepthwiseConvolution2DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution2DWithSourceTensor:weightsTensor:descriptor:name:"), source, weights, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3763057-sparsetensorwithdescriptor?language=objc +func (g_ Graph) SparseTensorWithDescriptorTensorsShapeName(sparseDescriptor ICreateSparseOpDescriptor, inputTensorArray []ITensor, shape *foundation.Array, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("sparseTensorWithDescriptor:tensors:shape:name:"), sparseDescriptor, inputTensorArray, shape, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901487-randomuniformtensorwithshapetens?language=objc -func (g_ Graph) RandomUniformTensorWithShapeTensorName(shapeTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("randomUniformTensorWithShapeTensor:name:"), shapeTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925432-lstmwithsourcetensor?language=objc +func (g_ Graph) LSTMWithSourceTensorRecurrentWeightInitStateInitCellDescriptorName(source ITensor, recurrentWeight ITensor, initState ITensor, initCell ITensor, descriptor ILSTMDescriptor, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("LSTMWithSourceTensor:recurrentWeight:initState:initCell:descriptor:name:"), source, recurrentWeight, initState, initCell, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750670-whilewithinitialinputs?language=objc -func (g_ Graph) WhileWithInitialInputsBeforeAfterName(initialInputs []ITensor, before WhileBeforeBlock, after WhileAfterBlock, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("whileWithInitialInputs:before:after:name:"), initialInputs, before, after, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867067-convolution2ddatagradientwithinc?language=objc +func (g_ Graph) Convolution2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeTensorForwardConvolutionDescriptorName(gradient ITensor, weights ITensor, outputShapeTensor ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("convolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShapeTensor:forwardConvolutionDescriptor:name:"), gradient, weights, outputShapeTensor, forwardConvolutionDescriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3787605-stencilwithsourcetensor?language=objc -func (g_ Graph) StencilWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IStencilOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("stencilWithSourceTensor:weightsTensor:descriptor:name:"), source, weights, descriptor, name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564622-runwithmtlcommandqueue?language=objc +func (g_ Graph) RunWithMTLCommandQueueFeedsTargetOperationsResultsDictionary(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary) { + po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) + objc.Call[objc.Void](g_, objc.Sel("runWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:"), po0, feeds, targetOperations, resultsDictionary) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3728133-slicegradienttensor?language=objc -func (g_ Graph) SliceGradientTensorFwdInShapeTensorStartsEndsStridesName(inputGradientTensor ITensor, fwdInShapeTensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sliceGradientTensor:fwdInShapeTensor:starts:ends:strides:name:"), inputGradientTensor, fwdInShapeTensor, starts, ends, strides, name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564622-runwithmtlcommandqueue?language=objc +func (g_ Graph) RunWithMTLCommandQueueObjectFeedsTargetOperationsResultsDictionary(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary) { + objc.Call[objc.Void](g_, objc.Sel("runWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:"), commandQueueObject, feeds, targetOperations, resultsDictionary) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925457-squeezetensor?language=objc -func (g_ Graph) SqueezeTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("squeezeTensor:axis:name:"), tensor, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925453-expanddimsoftensor?language=objc +func (g_ Graph) ExpandDimsOfTensorAxesTensorName(tensor ITensor, axesTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("expandDimsOfTensor:axesTensor:name:"), tensor, axesTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901481-randomtensorwithshapetensor?language=objc -func (g_ Graph) RandomTensorWithShapeTensorDescriptorName(shapeTensor ITensor, descriptor IRandomOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("randomTensorWithShapeTensor:descriptor:name:"), shapeTensor, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919778-reductionandwithtensor?language=objc +func (g_ Graph) ReductionAndWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reductionAndWithTensor:axis:name:"), tensor, axis, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580475-constantwithscalar?language=objc -func (g_ Graph) ConstantWithScalarShapeDataType(scalar float64, shape *foundation.Array, dataType mps.DataType) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("constantWithScalar:shape:dataType:"), scalar, shape, dataType) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867072-resizetensor?language=objc +func (g_ Graph) ResizeTensorSizeTensorModeCenterResultAlignCornersLayoutName(imagesTensor ITensor, size ITensor, mode ResizeMode, centerResult bool, alignCorners bool, layout TensorNamedDataLayout, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("resizeTensor:sizeTensor:mode:centerResult:alignCorners:layout:name:"), imagesTensor, size, mode, centerResult, alignCorners, layout, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589369-scatterndwithupdatestensor?language=objc -func (g_ Graph) ScatterNDWithUpdatesTensorIndicesTensorShapeBatchDimensionsName(updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, batchDimensions uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("scatterNDWithUpdatesTensor:indicesTensor:shape:batchDimensions:name:"), updatesTensor, indicesTensor, shape, batchDimensions, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564591-tanwithtensor?language=objc +func (g_ Graph) TanWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("tanWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618939-tilegradientwithincominggradient?language=objc -func (g_ Graph) TileGradientWithIncomingGradientTensorSourceTensorWithMultiplierName(incomingGradientTensor ITensor, sourceTensor ITensor, multiplier *foundation.Array, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("tileGradientWithIncomingGradientTensor:sourceTensor:withMultiplier:name:"), incomingGradientTensor, sourceTensor, multiplier, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3675594-floormodulowithprimarytensor?language=objc +func (g_ Graph) FloorModuloWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("floorModuloWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564727-reductionminimumwithtensor?language=objc -func (g_ Graph) ReductionMinimumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionMinimumWithTensor:axis:name:"), tensor, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867070-convolutiontranspose2dweightsgra?language=objc +func (g_ Graph) ConvolutionTranspose2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeTensorForwardConvolutionDescriptorName(incomingGradientTensor ITensor, source ITensor, outputShape ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("convolutionTranspose2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShapeTensor:forwardConvolutionDescriptor:name:"), incomingGradientTensor, source, outputShape, forwardConvolutionDescriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656163-varianceoftensor?language=objc -func (g_ Graph) VarianceOfTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("varianceOfTensor:axes:name:"), tensor, axes, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925451-coordinatealongaxistensor?language=objc +func (g_ Graph) CoordinateAlongAxisTensorWithShapeTensorName(axisTensor ITensor, shapeTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("coordinateAlongAxisTensor:withShapeTensor:name:"), axisTensor, shapeTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564543-clampwithtensor?language=objc -func (g_ Graph) ClampWithTensorMinValueTensorMaxValueTensorName(tensor ITensor, minValueTensor ITensor, maxValueTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("clampWithTensor:minValueTensor:maxValueTensor:name:"), tensor, minValueTensor, maxValueTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589368-reductionproductwithtensor?language=objc +func (g_ Graph) ReductionProductWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reductionProductWithTensor:axes:name:"), tensor, axes, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564471-sigmoidwithtensor?language=objc -func (g_ Graph) SigmoidWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sigmoidWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564686-assignvariable?language=objc +func (g_ Graph) AssignVariableWithValueOfTensorName(variable ITensor, tensor ITensor, name string) Operation { + rv := objc.Call[Operation](g_, objc.Sel("assignVariable:withValueOfTensor:name:"), variable, tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564587-sinhwithtensor?language=objc -func (g_ Graph) SinhWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sinhWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901487-randomuniformtensorwithshapetens?language=objc +func (g_ Graph) RandomUniformTensorWithShapeTensorName(shapeTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("randomUniformTensorWithShapeTensor:name:"), shapeTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750694-maxpooling4dgradientwithgradient?language=objc -func (g_ Graph) MaxPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("maxPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:"), gradient, source, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580502-padtensor?language=objc +func (g_ Graph) PadTensorWithPaddingModeLeftPaddingRightPaddingConstantValueName(tensor ITensor, paddingMode PaddingMode, leftPadding *foundation.Array, rightPadding *foundation.Array, constantValue float64, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("padTensor:withPaddingMode:leftPadding:rightPadding:constantValue:name:"), tensor, paddingMode, leftPadding, rightPadding, constantValue, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867074-scatterwithdatatensor?language=objc -func (g_ Graph) ScatterWithDataTensorUpdatesTensorIndicesTensorAxisModeName(dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, axis int, mode ScatterMode, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("scatterWithDataTensor:updatesTensor:indicesTensor:axis:mode:name:"), dataTensor, updatesTensor, indicesTensor, axis, mode, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618936-applystochasticgradientdescentwi?language=objc +func (g_ Graph) ApplyStochasticGradientDescentWithLearningRateTensorVariableGradientTensorName(learningRateTensor ITensor, variable IVariableOp, gradientTensor ITensor, name string) Operation { + rv := objc.Call[Operation](g_, objc.Sel("applyStochasticGradientDescentWithLearningRateTensor:variable:gradientTensor:name:"), learningRateTensor, variable, gradientTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750716-spacetodepth2dtensor?language=objc -func (g_ Graph) SpaceToDepth2DTensorWidthAxisHeightAxisDepthAxisBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxis uint, heightAxis uint, depthAxis uint, blockSize uint, usePixelShuffleOrder bool, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("spaceToDepth2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:"), tensor, widthAxis, heightAxis, depthAxis, blockSize, usePixelShuffleOrder, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564583-selectwithpredicatetensor?language=objc +func (g_ Graph) SelectWithPredicateTensorTruePredicateTensorFalsePredicateTensorName(predicateTensor ITensor, truePredicateTensor ITensor, falseSelectTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("selectWithPredicateTensor:truePredicateTensor:falsePredicateTensor:name:"), predicateTensor, truePredicateTensor, falseSelectTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564565-logicalnandwithprimarytensor?language=objc -func (g_ Graph) LogicalNANDWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("logicalNANDWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750680-depthwiseconvolution3dweightsgra?language=objc +func (g_ Graph) DepthwiseConvolution3DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeDescriptorName(incomingGradient ITensor, source ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution3DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:descriptor:name:"), incomingGradient, source, outputShape, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564686-assignvariable?language=objc -func (g_ Graph) AssignVariableWithValueOfTensorName(variable ITensor, tensor ITensor, name string) Operation { - rv := objc.Call[Operation](g_, objc.Sel("assignVariable:withValueOfTensor:name:"), variable, tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867065-leakyreluwithtensor?language=objc +func (g_ Graph) LeakyReLUWithTensorAlphaName(tensor ITensor, alpha float64, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("leakyReLUWithTensor:alpha:name:"), tensor, alpha, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580494-reductionsumwithtensor?language=objc -func (g_ Graph) ReductionSumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionSumWithTensor:axes:name:"), tensor, axes, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564566-logicalnorwithprimarytensor?language=objc +func (g_ Graph) LogicalNORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("logicalNORWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3928156-scatteralongaxis?language=objc -func (g_ Graph) ScatterAlongAxisWithUpdatesTensorIndicesTensorShapeModeName(axis int, updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, mode ScatterMode, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("scatterAlongAxis:withUpdatesTensor:indicesTensor:shape:mode:name:"), axis, updatesTensor, indicesTensor, shape, mode, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867073-scatterndwithdatatensor?language=objc +func (g_ Graph) ScatterNDWithDataTensorUpdatesTensorIndicesTensorBatchDimensionsModeName(dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, batchDimensions uint, mode ScatterMode, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("scatterNDWithDataTensor:updatesTensor:indicesTensor:batchDimensions:mode:name:"), dataTensor, updatesTensor, indicesTensor, batchDimensions, mode, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3923673-splittensor?language=objc -func (g_ Graph) SplitTensorNumSplitsAxisName(tensor ITensor, numSplits uint, axis int, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("splitTensor:numSplits:axis:name:"), tensor, numSplits, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564589-squarewithtensor?language=objc +func (g_ Graph) SquareWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("squareWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618931-convolutiontranspose2dwithsource?language=objc -func (g_ Graph) ConvolutionTranspose2DWithSourceTensorWeightsTensorOutputShapeDescriptorName(source ITensor, weights ITensor, outputShape *foundation.Array, descriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolutionTranspose2DWithSourceTensor:weightsTensor:outputShape:descriptor:name:"), source, weights, outputShape, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3816770-forloopwithnumberofiterations?language=objc +func (g_ Graph) ForLoopWithNumberOfIterationsInitialBodyArgumentsBodyName(numberOfIterations ITensor, initialBodyArguments []ITensor, body ForLoopBodyBlock, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("forLoopWithNumberOfIterations:initialBodyArguments:body:name:"), numberOfIterations, initialBodyArguments, body, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564585-signbitwithtensor?language=objc -func (g_ Graph) SignbitWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("signbitWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564567-logicalorwithprimarytensor?language=objc +func (g_ Graph) LogicalORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("logicalORWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3626199-dropouttensor?language=objc -func (g_ Graph) DropoutTensorRateTensorName(tensor ITensor, rate ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("dropoutTensor:rateTensor:name:"), tensor, rate, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919780-reductionorwithtensor?language=objc +func (g_ Graph) ReductionOrWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reductionOrWithTensor:axis:name:"), tensor, axis, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564576-notequalwithprimarytensor?language=objc -func (g_ Graph) NotEqualWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("notEqualWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750709-depthtospace2dtensor?language=objc +func (g_ Graph) DepthToSpace2DTensorWidthAxisHeightAxisDepthAxisBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxis uint, heightAxis uint, depthAxis uint, blockSize uint, usePixelShuffleOrder bool, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("depthToSpace2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:"), tensor, widthAxis, heightAxis, depthAxis, blockSize, usePixelShuffleOrder, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3675594-floormodulowithprimarytensor?language=objc -func (g_ Graph) FloorModuloWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("floorModuloWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750694-maxpooling4dgradientwithgradient?language=objc +func (g_ Graph) MaxPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("maxPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:"), gradient, source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925450-coordinatealongaxistensor?language=objc -func (g_ Graph) CoordinateAlongAxisTensorWithShapeName(axisTensor ITensor, shape *foundation.Array, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("coordinateAlongAxisTensor:withShape:name:"), axisTensor, shape, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656156-asinwithtensor?language=objc +func (g_ Graph) AsinWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("asinWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564577-notwithtensor?language=objc -func (g_ Graph) NotWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("notWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564471-sigmoidwithtensor?language=objc +func (g_ Graph) SigmoidWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("sigmoidWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867071-convolutiontranspose2dwithsource?language=objc -func (g_ Graph) ConvolutionTranspose2DWithSourceTensorWeightsTensorOutputShapeTensorDescriptorName(source ITensor, weights ITensor, outputShape ITensor, descriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolutionTranspose2DWithSourceTensor:weightsTensor:outputShapeTensor:descriptor:name:"), source, weights, outputShape, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618939-tilegradientwithincominggradient?language=objc +func (g_ Graph) TileGradientWithIncomingGradientTensorSourceTensorWithMultiplierName(incomingGradientTensor ITensor, sourceTensor ITensor, multiplier *foundation.Array, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("tileGradientWithIncomingGradientTensor:sourceTensor:withMultiplier:name:"), incomingGradientTensor, sourceTensor, multiplier, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750709-depthtospace2dtensor?language=objc -func (g_ Graph) DepthToSpace2DTensorWidthAxisHeightAxisDepthAxisBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxis uint, heightAxis uint, depthAxis uint, blockSize uint, usePixelShuffleOrder bool, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("depthToSpace2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:"), tensor, widthAxis, heightAxis, depthAxis, blockSize, usePixelShuffleOrder, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867075-scatterwithupdatestensor?language=objc +func (g_ Graph) ScatterWithUpdatesTensorIndicesTensorShapeAxisModeName(updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, axis int, mode ScatterMode, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("scatterWithUpdatesTensor:indicesTensor:shape:axis:mode:name:"), updatesTensor, indicesTensor, shape, axis, mode, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564596-convolution2dwithsourcetensor?language=objc -func (g_ Graph) Convolution2DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolution2DWithSourceTensor:weightsTensor:descriptor:name:"), source, weights, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564548-erfwithtensor?language=objc +func (g_ Graph) ErfWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("erfWithTensor:name:"), tensor, name) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564468-relugradientwithincominggradient?language=objc -func (g_ Graph) ReLUGradientWithIncomingGradientSourceTensorName(gradient ITensor, source ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reLUGradientWithIncomingGradient:sourceTensor:name:"), gradient, source, name) +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564592-tanhwithtensor?language=objc +func (g_ Graph) TanhWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("tanhWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564622-runwithmtlcommandqueue?language=objc -func (g_ Graph) RunWithMTLCommandQueueFeedsTargetOperationsResultsDictionary(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary) { - po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) - objc.Call[objc.Void](g_, objc.Sel("runWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:"), po0, feeds, targetOperations, resultsDictionary) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925427-bandpartwithtensor?language=objc +func (g_ Graph) BandPartWithTensorNumLowerTensorNumUpperTensorName(inputTensor ITensor, numLowerTensor ITensor, numUpperTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("bandPartWithTensor:numLowerTensor:numUpperTensor:name:"), inputTensor, numLowerTensor, numUpperTensor, name) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564622-runwithmtlcommandqueue?language=objc -func (g_ Graph) RunWithMTLCommandQueueObjectFeedsTargetOperationsResultsDictionary(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary) { - objc.Call[objc.Void](g_, objc.Sel("runWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:"), commandQueueObject, feeds, targetOperations, resultsDictionary) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3667488-depthwiseconvolution2dweightsgra?language=objc +func (g_ Graph) DepthwiseConvolution2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeDescriptorName(incomingGradient ITensor, source ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:descriptor:name:"), incomingGradient, source, outputShape, descriptor, name) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867064-leakyrelugradientwithincominggra?language=objc -func (g_ Graph) LeakyReLUGradientWithIncomingGradientSourceTensorAlphaTensorName(gradient ITensor, source ITensor, alphaTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("leakyReLUGradientWithIncomingGradient:sourceTensor:alphaTensor:name:"), gradient, source, alphaTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656161-softmaxcrossentropywithsourceten?language=objc +func (g_ Graph) SoftMaxCrossEntropyWithSourceTensorLabelsTensorAxisReductionTypeName(sourceTensor ITensor, labelsTensor ITensor, axis int, reductionType LossReductionType, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("softMaxCrossEntropyWithSourceTensor:labelsTensor:axis:reductionType:name:"), sourceTensor, labelsTensor, axis, reductionType, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580486-onehotwithindicestensor?language=objc -func (g_ Graph) OneHotWithIndicesTensorDepthName(indicesTensor ITensor, depth uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("oneHotWithIndicesTensor:depth:name:"), indicesTensor, depth, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564585-signbitwithtensor?language=objc +func (g_ Graph) SignbitWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("signbitWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750695-maxpooling4dwithsourcetensor?language=objc -func (g_ Graph) MaxPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("maxPooling4DWithSourceTensor:descriptor:name:"), source, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3787605-stencilwithsourcetensor?language=objc +func (g_ Graph) StencilWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IStencilOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("stencilWithSourceTensor:weightsTensor:descriptor:name:"), source, weights, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589362-gatherndwithupdatestensor?language=objc -func (g_ Graph) GatherNDWithUpdatesTensorIndicesTensorBatchDimensionsName(updatesTensor ITensor, indicesTensor ITensor, batchDimensions uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("gatherNDWithUpdatesTensor:indicesTensor:batchDimensions:name:"), updatesTensor, indicesTensor, batchDimensions, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750692-avgpooling4dgradientwithgradient?language=objc +func (g_ Graph) AvgPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("avgPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:"), gradient, source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580502-padtensor?language=objc -func (g_ Graph) PadTensorWithPaddingModeLeftPaddingRightPaddingConstantValueName(tensor ITensor, paddingMode PaddingMode, leftPadding *foundation.Array, rightPadding *foundation.Array, constantValue float64, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("padTensor:withPaddingMode:leftPadding:rightPadding:constantValue:name:"), tensor, paddingMode, leftPadding, rightPadding, constantValue, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867068-convolution2dweightsgradientwith?language=objc +func (g_ Graph) Convolution2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeTensorForwardConvolutionDescriptorName(gradient ITensor, source ITensor, outputShapeTensor ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("convolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShapeTensor:forwardConvolutionDescriptor:name:"), gradient, source, outputShapeTensor, forwardConvolutionDescriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750706-reductionargmaximumwithtensor?language=objc -func (g_ Graph) ReductionArgMaximumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionArgMaximumWithTensor:axis:name:"), tensor, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901478-randomtensorwithshape?language=objc +func (g_ Graph) RandomTensorWithShapeDescriptorName(shape *foundation.Array, descriptor IRandomOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("randomTensorWithShape:descriptor:name:"), shape, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564561-logarithmbase10withtensor?language=objc -func (g_ Graph) LogarithmBase10WithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("logarithmBase10WithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656160-atanhwithtensor?language=objc +func (g_ Graph) AtanhWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("atanhWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564566-logicalnorwithprimarytensor?language=objc -func (g_ Graph) LogicalNORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("logicalNORWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750707-reductionargminimumwithtensor?language=objc +func (g_ Graph) ReductionArgMinimumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reductionArgMinimumWithTensor:axis:name:"), tensor, axis, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919742-maxpooling2dreturnindiceswithsou?language=objc -func (g_ Graph) MaxPooling2DReturnIndicesWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("maxPooling2DReturnIndicesWithSourceTensor:descriptor:name:"), source, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867069-convolutiontranspose2ddatagradie?language=objc +func (g_ Graph) ConvolutionTranspose2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeTensorForwardConvolutionDescriptorName(incomingGradient ITensor, weights ITensor, outputShape ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("convolutionTranspose2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShapeTensor:forwardConvolutionDescriptor:name:"), incomingGradient, weights, outputShape, forwardConvolutionDescriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564707-maxpooling2dgradientwithgradient?language=objc -func (g_ Graph) MaxPooling2DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("maxPooling2DGradientWithGradientTensor:sourceTensor:descriptor:name:"), gradient, source, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564558-isnanwithtensor?language=objc +func (g_ Graph) IsNaNWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("isNaNWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867072-resizetensor?language=objc -func (g_ Graph) ResizeTensorSizeTensorModeCenterResultAlignCornersLayoutName(imagesTensor ITensor, size ITensor, mode ResizeMode, centerResult bool, alignCorners bool, layout TensorNamedDataLayout, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("resizeTensor:sizeTensor:mode:centerResult:alignCorners:layout:name:"), imagesTensor, size, mode, centerResult, alignCorners, layout, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564571-maximumwithprimarytensor?language=objc +func (g_ Graph) MaximumWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("maximumWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3763057-sparsetensorwithdescriptor?language=objc -func (g_ Graph) SparseTensorWithDescriptorTensorsShapeName(sparseDescriptor ICreateSparseOpDescriptor, inputTensorArray []ITensor, shape *foundation.Array, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sparseTensorWithDescriptor:tensors:shape:name:"), sparseDescriptor, inputTensorArray, shape, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919742-maxpooling2dreturnindiceswithsou?language=objc +func (g_ Graph) MaxPooling2DReturnIndicesWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("maxPooling2DReturnIndicesWithSourceTensor:descriptor:name:"), source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564569-logicalxorwithprimarytensor?language=objc -func (g_ Graph) LogicalXORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("logicalXORWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750669-ifwithpredicatetensor?language=objc +func (g_ Graph) IfWithPredicateTensorThenBlockElseBlockName(predicateTensor ITensor, thenBlock IfThenElseBlock, elseBlock IfThenElseBlock, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("ifWithPredicateTensor:thenBlock:elseBlock:name:"), predicateTensor, thenBlock, elseBlock, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867079-reshapetensor?language=objc -func (g_ Graph) ReshapeTensorWithShapeTensorName(tensor ITensor, shapeTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reshapeTensor:withShapeTensor:name:"), tensor, shapeTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564560-lessthanwithprimarytensor?language=objc +func (g_ Graph) LessThanWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("lessThanWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925426-bandpartwithtensor?language=objc -func (g_ Graph) BandPartWithTensorNumLowerNumUpperName(inputTensor ITensor, numLower int, numUpper int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("bandPartWithTensor:numLower:numUpper:name:"), inputTensor, numLower, numUpper, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3928155-scatteralongaxis?language=objc +func (g_ Graph) ScatterAlongAxisWithDataTensorUpdatesTensorIndicesTensorModeName(axis int, dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, mode ScatterMode, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("scatterAlongAxis:withDataTensor:updatesTensor:indicesTensor:mode:name:"), axis, dataTensor, updatesTensor, indicesTensor, mode, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867081-topkwithgradienttensor?language=objc -func (g_ Graph) TopKWithGradientTensorSourceKName(gradient ITensor, source ITensor, k uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("topKWithGradientTensor:source:k:name:"), gradient, source, k, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564561-logarithmbase10withtensor?language=objc +func (g_ Graph) LogarithmBase10WithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("logarithmBase10WithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925458-squeezetensor?language=objc -func (g_ Graph) SqueezeTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("squeezeTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750716-spacetodepth2dtensor?language=objc +func (g_ Graph) SpaceToDepth2DTensorWidthAxisHeightAxisDepthAxisBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxis uint, heightAxis uint, depthAxis uint, blockSize uint, usePixelShuffleOrder bool, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("spaceToDepth2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:"), tensor, widthAxis, heightAxis, depthAxis, blockSize, usePixelShuffleOrder, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564540-absolutewithtensor?language=objc -func (g_ Graph) AbsoluteWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("absoluteWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564541-additionwithprimarytensor?language=objc +func (g_ Graph) AdditionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("additionWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564588-squarerootwithtensor?language=objc -func (g_ Graph) SquareRootWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("squareRootWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564735-tiletensor?language=objc +func (g_ Graph) TileTensorWithMultiplierName(tensor ITensor, multiplier *foundation.Array, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("tileTensor:withMultiplier:name:"), tensor, multiplier, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580496-resizetensor?language=objc -func (g_ Graph) ResizeTensorSizeModeCenterResultAlignCornersLayoutName(imagesTensor ITensor, size *foundation.Array, mode ResizeMode, centerResult bool, alignCorners bool, layout TensorNamedDataLayout, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("resizeTensor:size:mode:centerResult:alignCorners:layout:name:"), imagesTensor, size, mode, centerResult, alignCorners, layout, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564551-exponentwithtensor?language=objc +func (g_ Graph) ExponentWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("exponentWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750707-reductionargminimumwithtensor?language=objc -func (g_ Graph) ReductionArgMinimumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionArgMinimumWithTensor:axis:name:"), tensor, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867078-casttensor?language=objc +func (g_ Graph) CastTensorToTypeName(tensor ITensor, type_ mps.DataType, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("castTensor:toType:name:"), tensor, type_, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925455-squeezetensor?language=objc -func (g_ Graph) SqueezeTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("squeezeTensor:axes:name:"), tensor, axes, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656162-meanoftensor?language=objc +func (g_ Graph) MeanOfTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("meanOfTensor:axes:name:"), tensor, axes, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564551-exponentwithtensor?language=objc -func (g_ Graph) ExponentWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("exponentWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564580-reversesquarerootwithtensor?language=objc +func (g_ Graph) ReverseSquareRootWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reverseSquareRootWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564554-greaterthanwithprimarytensor?language=objc -func (g_ Graph) GreaterThanWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("greaterThanWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3728124-scatterndwithupdatestensor?language=objc +func (g_ Graph) ScatterNDWithUpdatesTensorIndicesTensorShapeBatchDimensionsModeName(updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, batchDimensions uint, mode ScatterMode, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("scatterNDWithUpdatesTensor:indicesTensor:shape:batchDimensions:mode:name:"), updatesTensor, indicesTensor, shape, batchDimensions, mode, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901483-randomtensorwithshapetensor?language=objc -func (g_ Graph) RandomTensorWithShapeTensorDescriptorStateTensorName(shapeTensor ITensor, descriptor IRandomOpDescriptor, state ITensor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("randomTensorWithShapeTensor:descriptor:stateTensor:name:"), shapeTensor, descriptor, state, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925449-coordinatealongaxis?language=objc +func (g_ Graph) CoordinateAlongAxisWithShapeTensorName(axis int, shapeTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("coordinateAlongAxis:withShapeTensor:name:"), axis, shapeTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925434-lstmwithsourcetensor?language=objc -func (g_ Graph) LSTMWithSourceTensorRecurrentWeightInputWeightBiasInitStateInitCellMaskPeepholeDescriptorName(source ITensor, recurrentWeight ITensor, inputWeight ITensor, bias ITensor, initState ITensor, initCell ITensor, mask ITensor, peephole ITensor, descriptor ILSTMDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("LSTMWithSourceTensor:recurrentWeight:inputWeight:bias:initState:initCell:mask:peephole:descriptor:name:"), source, recurrentWeight, inputWeight, bias, initState, initCell, mask, peephole, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3928153-gatheralongaxis?language=objc +func (g_ Graph) GatherAlongAxisWithUpdatesTensorIndicesTensorName(axis int, updatesTensor ITensor, indicesTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("gatherAlongAxis:withUpdatesTensor:indicesTensor:name:"), axis, updatesTensor, indicesTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919762-singlegaternnwithsourcetensor?language=objc -func (g_ Graph) SingleGateRNNWithSourceTensorRecurrentWeightInitStateDescriptorName(source ITensor, recurrentWeight ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("singleGateRNNWithSourceTensor:recurrentWeight:initState:descriptor:name:"), source, recurrentWeight, initState, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564569-logicalxorwithprimarytensor?language=objc +func (g_ Graph) LogicalXORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("logicalXORWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867080-shapeoftensor?language=objc -func (g_ Graph) ShapeOfTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("shapeOfTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564552-floorwithtensor?language=objc +func (g_ Graph) FloorWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("floorWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919778-reductionandwithtensor?language=objc -func (g_ Graph) ReductionAndWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionAndWithTensor:axis:name:"), tensor, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750679-depthwiseconvolution3ddatagradie?language=objc +func (g_ Graph) DepthwiseConvolution3DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution3DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:descriptor:name:"), incomingGradient, weights, outputShape, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3923674-splittensor?language=objc -func (g_ Graph) SplitTensorSplitSizesAxisName(tensor ITensor, splitSizes []foundation.INumber, axis int, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("splitTensor:splitSizes:axis:name:"), tensor, splitSizes, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925428-lstmgradientswithsourcetensor?language=objc +func (g_ Graph) LSTMGradientsWithSourceTensorRecurrentWeightSourceGradientZStateCellOutputFwdDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, cellOutputFwd ITensor, descriptor ILSTMDescriptor, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:descriptor:name:"), source, recurrentWeight, sourceGradient, zState, cellOutputFwd, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3626198-dropouttensor?language=objc -func (g_ Graph) DropoutTensorRateName(tensor ITensor, rate float64, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("dropoutTensor:rate:name:"), tensor, rate, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3923675-splittensor?language=objc +func (g_ Graph) SplitTensorSplitSizesTensorAxisName(tensor ITensor, splitSizesTensor ITensor, axis int, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("splitTensor:splitSizesTensor:axis:name:"), tensor, splitSizesTensor, axis, name) return rv } @@ -1482,40 +825,41 @@ func (g_ Graph) TopKWithGradientTensorSourceKTensorName(gradient ITensor, source // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564545-coshwithtensor?language=objc -func (g_ Graph) CoshWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("coshWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564556-isfinitewithtensor?language=objc +func (g_ Graph) IsFiniteWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("isFiniteWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901484-randomuniformtensorwithshape?language=objc -func (g_ Graph) RandomUniformTensorWithShapeName(shape *foundation.Array, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("randomUniformTensorWithShape:name:"), shape, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564590-subtractionwithprimarytensor?language=objc +func (g_ Graph) SubtractionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("subtractionWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3816770-forloopwithnumberofiterations?language=objc -func (g_ Graph) ForLoopWithNumberOfIterationsInitialBodyArgumentsBodyName(numberOfIterations ITensor, initialBodyArguments []ITensor, body ForLoopBodyBlock, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("forLoopWithNumberOfIterations:initialBodyArguments:body:name:"), numberOfIterations, initialBodyArguments, body, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564690-readvariable?language=objc +func (g_ Graph) ReadVariableName(variable ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("readVariable:name:"), variable, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580383-encodetocommandbuffer?language=objc -func (g_ Graph) EncodeToCommandBufferFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandBuffer mps.ICommandBuffer, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) { - objc.Call[objc.Void](g_, objc.Sel("encodeToCommandBuffer:feeds:targetOperations:resultsDictionary:executionDescriptor:"), commandBuffer, feeds, targetOperations, resultsDictionary, executionDescriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867064-leakyrelugradientwithincominggra?language=objc +func (g_ Graph) LeakyReLUGradientWithIncomingGradientSourceTensorAlphaTensorName(gradient ITensor, source ITensor, alphaTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("leakyReLUGradientWithIncomingGradient:sourceTensor:alphaTensor:name:"), gradient, source, alphaTensor, name) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564563-logarithmwithtensor?language=objc -func (g_ Graph) LogarithmWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("logarithmWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925458-squeezetensor?language=objc +func (g_ Graph) SqueezeTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("squeezeTensor:name:"), tensor, name) return rv } @@ -1529,153 +873,160 @@ func (g_ Graph) NormalizationGradientWithIncomingGradientTensorSourceTensorMeanT // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564731-concattensor?language=objc -func (g_ Graph) ConcatTensorWithTensorDimensionName(tensor ITensor, tensor2 ITensor, dimensionIndex int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("concatTensor:withTensor:dimension:name:"), tensor, tensor2, dimensionIndex, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564596-convolution2dwithsourcetensor?language=objc +func (g_ Graph) Convolution2DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IConvolution2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("convolution2DWithSourceTensor:weightsTensor:descriptor:name:"), source, weights, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3686986-constantwithscalar?language=objc -func (g_ Graph) ConstantWithScalarDataType(scalar float64, dataType mps.DataType) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("constantWithScalar:dataType:"), scalar, dataType) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564468-relugradientwithincominggradient?language=objc +func (g_ Graph) ReLUGradientWithIncomingGradientSourceTensorName(gradient ITensor, source ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reLUGradientWithIncomingGradient:sourceTensor:name:"), gradient, source, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901510-reductionminimumpropagatenanwith?language=objc -func (g_ Graph) ReductionMinimumPropagateNaNWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionMinimumPropagateNaNWithTensor:axes:name:"), tensor, axes, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750712-flatten2dtensor?language=objc +func (g_ Graph) Flatten2DTensorAxisTensorName(tensor ITensor, axisTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("flatten2DTensor:axisTensor:name:"), tensor, axisTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750669-ifwithpredicatetensor?language=objc -func (g_ Graph) IfWithPredicateTensorThenBlockElseBlockName(predicateTensor ITensor, thenBlock IfThenElseBlock, elseBlock IfThenElseBlock, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("ifWithPredicateTensor:thenBlock:elseBlock:name:"), predicateTensor, thenBlock, elseBlock, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580486-onehotwithindicestensor?language=objc +func (g_ Graph) OneHotWithIndicesTensorDepthName(indicesTensor ITensor, depth uint, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("oneHotWithIndicesTensor:depth:name:"), indicesTensor, depth, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919759-singlegaternngradientswithsource?language=objc -func (g_ Graph) SingleGateRNNGradientsWithSourceTensorRecurrentWeightSourceGradientZStateInputWeightBiasInitStateDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, inputWeight ITensor, bias ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:inputWeight:bias:initState:descriptor:name:"), source, recurrentWeight, sourceGradient, zState, inputWeight, bias, initState, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750708-concattensors?language=objc +func (g_ Graph) ConcatTensorsDimensionInterleaveName(tensors []ITensor, dimensionIndex int, interleave bool, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("concatTensors:dimension:interleave:name:"), tensors, dimensionIndex, interleave, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564575-negativewithtensor?language=objc -func (g_ Graph) NegativeWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("negativeWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589367-reductionminimumwithtensor?language=objc +func (g_ Graph) ReductionMinimumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reductionMinimumWithTensor:axes:name:"), tensor, axes, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919758-singlegaternngradientswithsource?language=objc -func (g_ Graph) SingleGateRNNGradientsWithSourceTensorRecurrentWeightSourceGradientZStateInitStateDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:initState:descriptor:name:"), source, recurrentWeight, sourceGradient, zState, initState, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901509-reductionmaximumpropagatenanwith?language=objc +func (g_ Graph) ReductionMaximumPropagateNaNWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reductionMaximumPropagateNaNWithTensor:axis:name:"), tensor, axis, name) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564581-rintwithtensor?language=objc +func (g_ Graph) RintWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("rintWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656161-softmaxcrossentropywithsourceten?language=objc -func (g_ Graph) SoftMaxCrossEntropyWithSourceTensorLabelsTensorAxisReductionTypeName(sourceTensor ITensor, labelsTensor ITensor, axis int, reductionType LossReductionType, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("softMaxCrossEntropyWithSourceTensor:labelsTensor:axis:reductionType:name:"), sourceTensor, labelsTensor, axis, reductionType, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656158-atan2withprimarytensor?language=objc +func (g_ Graph) Atan2WithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("atan2WithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3728124-scatterndwithupdatestensor?language=objc -func (g_ Graph) ScatterNDWithUpdatesTensorIndicesTensorShapeBatchDimensionsModeName(updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, batchDimensions uint, mode ScatterMode, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("scatterNDWithUpdatesTensor:indicesTensor:shape:batchDimensions:mode:name:"), updatesTensor, indicesTensor, shape, batchDimensions, mode, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564544-coswithtensor?language=objc +func (g_ Graph) CosWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("cosWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901511-reductionminimumpropagatenanwith?language=objc -func (g_ Graph) ReductionMinimumPropagateNaNWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionMinimumPropagateNaNWithTensor:axis:name:"), tensor, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750695-maxpooling4dwithsourcetensor?language=objc +func (g_ Graph) MaxPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("maxPooling4DWithSourceTensor:descriptor:name:"), source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656156-asinwithtensor?language=objc -func (g_ Graph) AsinWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("asinWithTensor:name:"), tensor, name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564619-runasyncwithmtlcommandqueue?language=objc +func (g_ Graph) RunAsyncWithMTLCommandQueueFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) { + po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) + objc.Call[objc.Void](g_, objc.Sel("runAsyncWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:executionDescriptor:"), po0, feeds, targetOperations, resultsDictionary, executionDescriptor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925452-expanddimsoftensor?language=objc -func (g_ Graph) ExpandDimsOfTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("expandDimsOfTensor:axes:name:"), tensor, axes, name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564619-runasyncwithmtlcommandqueue?language=objc +func (g_ Graph) RunAsyncWithMTLCommandQueueObjectFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) { + objc.Call[objc.Void](g_, objc.Sel("runAsyncWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:executionDescriptor:"), commandQueueObject, feeds, targetOperations, resultsDictionary, executionDescriptor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589364-gatherwithupdatestensor?language=objc -func (g_ Graph) GatherWithUpdatesTensorIndicesTensorAxisBatchDimensionsName(updatesTensor ITensor, indicesTensor ITensor, axis uint, batchDimensions uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("gatherWithUpdatesTensor:indicesTensor:axis:batchDimensions:name:"), updatesTensor, indicesTensor, axis, batchDimensions, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3816769-forloopwithlowerbound?language=objc +func (g_ Graph) ForLoopWithLowerBoundUpperBoundStepInitialBodyArgumentsBodyName(lowerBound ITensor, upperBound ITensor, step ITensor, initialBodyArguments []ITensor, body ForLoopBodyBlock, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("forLoopWithLowerBound:upperBound:step:initialBodyArguments:body:name:"), lowerBound, upperBound, step, initialBodyArguments, body, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618938-padgradientwithincominggradientt?language=objc -func (g_ Graph) PadGradientWithIncomingGradientTensorSourceTensorPaddingModeLeftPaddingRightPaddingName(incomingGradientTensor ITensor, sourceTensor ITensor, paddingMode PaddingMode, leftPadding *foundation.Array, rightPadding *foundation.Array, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("padGradientWithIncomingGradientTensor:sourceTensor:paddingMode:leftPadding:rightPadding:name:"), incomingGradientTensor, sourceTensor, paddingMode, leftPadding, rightPadding, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564469-reluwithtensor?language=objc +func (g_ Graph) ReLUWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reLUWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564557-isinfinitewithtensor?language=objc -func (g_ Graph) IsInfiniteWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("isInfiniteWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564470-sigmoidgradientwithincominggradi?language=objc +func (g_ Graph) SigmoidGradientWithIncomingGradientSourceTensorName(gradient ITensor, source ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("sigmoidGradientWithIncomingGradient:sourceTensor:name:"), gradient, source, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750717-spacetodepth2dtensor?language=objc -func (g_ Graph) SpaceToDepth2DTensorWidthAxisTensorHeightAxisTensorDepthAxisTensorBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxisTensor ITensor, heightAxisTensor ITensor, depthAxisTensor ITensor, blockSize uint, usePixelShuffleOrder bool, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("spaceToDepth2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:"), tensor, widthAxisTensor, heightAxisTensor, depthAxisTensor, blockSize, usePixelShuffleOrder, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3728133-slicegradienttensor?language=objc +func (g_ Graph) SliceGradientTensorFwdInShapeTensorStartsEndsStridesName(inputGradientTensor ITensor, fwdInShapeTensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("sliceGradientTensor:fwdInShapeTensor:starts:ends:strides:name:"), inputGradientTensor, fwdInShapeTensor, starts, ends, strides, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564690-readvariable?language=objc -func (g_ Graph) ReadVariableName(variable ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("readVariable:name:"), variable, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564706-avgpooling2dwithsourcetensor?language=objc +func (g_ Graph) AvgPooling2DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("avgPooling2DWithSourceTensor:descriptor:name:"), source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580484-onehotwithindicestensor?language=objc -func (g_ Graph) OneHotWithIndicesTensorDepthDataTypeName(indicesTensor ITensor, depth uint, dataType mps.DataType, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("oneHotWithIndicesTensor:depth:dataType:name:"), indicesTensor, depth, dataType, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3686986-constantwithscalar?language=objc +func (g_ Graph) ConstantWithScalarDataType(scalar float64, dataType mps.DataType) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("constantWithScalar:dataType:"), scalar, dataType) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901486-randomuniformtensorwithshape?language=objc -func (g_ Graph) RandomUniformTensorWithShapeStateTensorName(shape *foundation.Array, state ITensor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("randomUniformTensorWithShape:stateTensor:name:"), shape, state, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867079-reshapetensor?language=objc +func (g_ Graph) ReshapeTensorWithShapeTensorName(tensor ITensor, shapeTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reshapeTensor:withShapeTensor:name:"), tensor, shapeTensor, name) return rv } @@ -1689,594 +1040,592 @@ func (g_ Graph) MatrixMultiplicationWithPrimaryTensorSecondaryTensorName(primary // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867076-broadcasttensor?language=objc -func (g_ Graph) BroadcastTensorToShapeName(tensor ITensor, shape *foundation.Array, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("broadcastTensor:toShape:name:"), tensor, shape, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750667-controldependencywithoperations?language=objc +func (g_ Graph) ControlDependencyWithOperationsDependentBlockName(operations []IOperation, dependentBlock ControlFlowDependencyBlock, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("controlDependencyWithOperations:dependentBlock:name:"), operations, dependentBlock, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750680-depthwiseconvolution3dweightsgra?language=objc -func (g_ Graph) DepthwiseConvolution3DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeDescriptorName(incomingGradient ITensor, source ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution3DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:descriptor:name:"), incomingGradient, source, outputShape, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564568-logicalxnorwithprimarytensor?language=objc +func (g_ Graph) LogicalXNORWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("logicalXNORWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564542-ceilwithtensor?language=objc -func (g_ Graph) CeilWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("ceilWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589364-gatherwithupdatestensor?language=objc +func (g_ Graph) GatherWithUpdatesTensorIndicesTensorAxisBatchDimensionsName(updatesTensor ITensor, indicesTensor ITensor, axis uint, batchDimensions uint, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("gatherWithUpdatesTensor:indicesTensor:axis:batchDimensions:name:"), updatesTensor, indicesTensor, axis, batchDimensions, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564580-reversesquarerootwithtensor?language=objc -func (g_ Graph) ReverseSquareRootWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reverseSquareRootWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564545-coshwithtensor?language=objc +func (g_ Graph) CoshWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("coshWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580384-encodetocommandbuffer?language=objc -func (g_ Graph) EncodeToCommandBufferFeedsTargetTensorsTargetOperationsExecutionDescriptor(commandBuffer mps.ICommandBuffer, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, executionDescriptor IExecutionDescriptor) *foundation.Dictionary { - rv := objc.Call[*foundation.Dictionary](g_, objc.Sel("encodeToCommandBuffer:feeds:targetTensors:targetOperations:executionDescriptor:"), commandBuffer, feeds, targetTensors, targetOperations, executionDescriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564705-avgpooling2dgradientwithgradient?language=objc +func (g_ Graph) AvgPooling2DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("avgPooling2DGradientWithGradientTensor:sourceTensor:descriptor:name:"), gradient, source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564591-tanwithtensor?language=objc -func (g_ Graph) TanWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("tanWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901511-reductionminimumpropagatenanwith?language=objc +func (g_ Graph) ReductionMinimumPropagateNaNWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reductionMinimumPropagateNaNWithTensor:axis:name:"), tensor, axis, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919777-reductionandwithtensor?language=objc -func (g_ Graph) ReductionAndWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionAndWithTensor:axes:name:"), tensor, axes, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901484-randomuniformtensorwithshape?language=objc +func (g_ Graph) RandomUniformTensorWithShapeName(shape *foundation.Array, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("randomUniformTensorWithShape:name:"), shape, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580468-softmaxcrossentropygradientwithi?language=objc -func (g_ Graph) SoftMaxCrossEntropyGradientWithIncomingGradientTensorSourceTensorLabelsTensorAxisReductionTypeName(gradientTensor ITensor, sourceTensor ITensor, labelsTensor ITensor, axis int, reductionType LossReductionType, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("softMaxCrossEntropyGradientWithIncomingGradientTensor:sourceTensor:labelsTensor:axis:reductionType:name:"), gradientTensor, sourceTensor, labelsTensor, axis, reductionType, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564563-logarithmwithtensor?language=objc +func (g_ Graph) LogarithmWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("logarithmWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589371-concattensors?language=objc -func (g_ Graph) ConcatTensorsDimensionName(tensors []ITensor, dimensionIndex int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("concatTensors:dimension:name:"), tensors, dimensionIndex, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3763058-sparsetensorwithtype?language=objc +func (g_ Graph) SparseTensorWithTypeTensorsShapeDataTypeName(sparseStorageType SparseStorageType, inputTensorArray []ITensor, shape *foundation.Array, dataType mps.DataType, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("sparseTensorWithType:tensors:shape:dataType:name:"), sparseStorageType, inputTensorArray, shape, dataType, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750713-reversetensor?language=objc -func (g_ Graph) ReverseTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reverseTensor:axes:name:"), tensor, axes, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564540-absolutewithtensor?language=objc +func (g_ Graph) AbsoluteWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("absoluteWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901478-randomtensorwithshape?language=objc -func (g_ Graph) RandomTensorWithShapeDescriptorName(shape *foundation.Array, descriptor IRandomOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("randomTensorWithShape:descriptor:name:"), shape, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867071-convolutiontranspose2dwithsource?language=objc +func (g_ Graph) ConvolutionTranspose2DWithSourceTensorWeightsTensorOutputShapeTensorDescriptorName(source ITensor, weights ITensor, outputShape ITensor, descriptor IConvolution2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("convolutionTranspose2DWithSourceTensor:weightsTensor:outputShapeTensor:descriptor:name:"), source, weights, outputShape, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925428-lstmgradientswithsourcetensor?language=objc -func (g_ Graph) LSTMGradientsWithSourceTensorRecurrentWeightSourceGradientZStateCellOutputFwdDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, cellOutputFwd ITensor, descriptor ILSTMDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:descriptor:name:"), source, recurrentWeight, sourceGradient, zState, cellOutputFwd, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3675593-divisionnonanwithprimarytensor?language=objc +func (g_ Graph) DivisionNoNaNWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("divisionNoNaNWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656164-varianceoftensor?language=objc -func (g_ Graph) VarianceOfTensorMeanTensorAxesName(tensor ITensor, meanTensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("varianceOfTensor:meanTensor:axes:name:"), tensor, meanTensor, axes, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656154-acoswithtensor?language=objc +func (g_ Graph) AcosWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("acosWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564728-reductionproductwithtensor?language=objc -func (g_ Graph) ReductionProductWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionProductWithTensor:axis:name:"), tensor, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919743-maxpooling4dreturnindiceswithsou?language=objc +func (g_ Graph) MaxPooling4DReturnIndicesWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("maxPooling4DReturnIndicesWithSourceTensor:descriptor:name:"), source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564729-reductionsumwithtensor?language=objc -func (g_ Graph) ReductionSumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionSumWithTensor:axis:name:"), tensor, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901481-randomtensorwithshapetensor?language=objc +func (g_ Graph) RandomTensorWithShapeTensorDescriptorName(shapeTensor ITensor, descriptor IRandomOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("randomTensorWithShapeTensor:descriptor:name:"), shapeTensor, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925433-lstmwithsourcetensor?language=objc -func (g_ Graph) LSTMWithSourceTensorRecurrentWeightInputWeightBiasInitStateInitCellDescriptorName(source ITensor, recurrentWeight ITensor, inputWeight ITensor, bias ITensor, initState ITensor, initCell ITensor, descriptor ILSTMDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("LSTMWithSourceTensor:recurrentWeight:inputWeight:bias:initState:initCell:descriptor:name:"), source, recurrentWeight, inputWeight, bias, initState, initCell, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564687-constantwithdata?language=objc +func (g_ Graph) ConstantWithDataShapeDataType(data []byte, shape *foundation.Array, dataType mps.DataType) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("constantWithData:shape:dataType:"), data, shape, dataType) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919743-maxpooling4dreturnindiceswithsou?language=objc -func (g_ Graph) MaxPooling4DReturnIndicesWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("maxPooling4DReturnIndicesWithSourceTensor:descriptor:name:"), source, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901477-randomphiloxstatetensorwithseed?language=objc +func (g_ Graph) RandomPhiloxStateTensorWithSeedName(seed uint, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("randomPhiloxStateTensorWithSeed:name:"), seed, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925456-squeezetensor?language=objc -func (g_ Graph) SqueezeTensorAxesTensorName(tensor ITensor, axesTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("squeezeTensor:axesTensor:name:"), tensor, axesTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750690-l2normpooling4dgradientwithgradi?language=objc +func (g_ Graph) L2NormPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("L2NormPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:"), gradient, source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867073-scatterndwithdatatensor?language=objc -func (g_ Graph) ScatterNDWithDataTensorUpdatesTensorIndicesTensorBatchDimensionsModeName(dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, batchDimensions uint, mode ScatterMode, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("scatterNDWithDataTensor:updatesTensor:indicesTensor:batchDimensions:mode:name:"), dataTensor, updatesTensor, indicesTensor, batchDimensions, mode, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3667506-resizewithgradienttensor?language=objc +func (g_ Graph) ResizeWithGradientTensorInputModeCenterResultAlignCornersLayoutName(gradient ITensor, input ITensor, mode ResizeMode, centerResult bool, alignCorners bool, layout TensorNamedDataLayout, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("resizeWithGradientTensor:input:mode:centerResult:alignCorners:layout:name:"), gradient, input, mode, centerResult, alignCorners, layout, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3857573-maximumwithnanpropagationwithpri?language=objc -func (g_ Graph) MaximumWithNaNPropagationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("maximumWithNaNPropagationWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564691-variablewithdata?language=objc +func (g_ Graph) VariableWithDataShapeDataTypeName(data []byte, shape *foundation.Array, dataType mps.DataType, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("variableWithData:shape:dataType:name:"), data, shape, dataType, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919764-singlegaternnwithsourcetensor?language=objc -func (g_ Graph) SingleGateRNNWithSourceTensorRecurrentWeightInputWeightBiasInitStateMaskDescriptorName(source ITensor, recurrentWeight ITensor, inputWeight ITensor, bias ITensor, initState ITensor, mask ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("singleGateRNNWithSourceTensor:recurrentWeight:inputWeight:bias:initState:mask:descriptor:name:"), source, recurrentWeight, inputWeight, bias, initState, mask, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564553-greaterthanorequaltowithprimaryt?language=objc +func (g_ Graph) GreaterThanOrEqualToWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("greaterThanOrEqualToWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3857574-minimumwithnanpropagationwithpri?language=objc -func (g_ Graph) MinimumWithNaNPropagationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("minimumWithNaNPropagationWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580451-gradientforprimarytensor?language=objc +func (g_ Graph) GradientForPrimaryTensorWithTensorsName(primaryTensor ITensor, tensors []ITensor, name string) foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](g_, objc.Sel("gradientForPrimaryTensor:withTensors:name:"), primaryTensor, tensors, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925449-coordinatealongaxis?language=objc -func (g_ Graph) CoordinateAlongAxisWithShapeTensorName(axis int, shapeTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("coordinateAlongAxis:withShapeTensor:name:"), axis, shapeTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564542-ceilwithtensor?language=objc +func (g_ Graph) CeilWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("ceilWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925431-lstmgradientswithsourcetensor?language=objc -func (g_ Graph) LSTMGradientsWithSourceTensorRecurrentWeightSourceGradientZStateCellOutputFwdStateGradientCellGradientInputWeightBiasInitStateInitCellMaskPeepholeDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, cellOutputFwd ITensor, stateGradient ITensor, cellGradient ITensor, inputWeight ITensor, bias ITensor, initState ITensor, initCell ITensor, mask ITensor, peephole ITensor, descriptor ILSTMDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:stateGradient:cellGradient:inputWeight:bias:initState:initCell:mask:peephole:descriptor:name:"), source, recurrentWeight, sourceGradient, zState, cellOutputFwd, stateGradient, cellGradient, inputWeight, bias, initState, initCell, mask, peephole, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750715-reversetensor?language=objc +func (g_ Graph) ReverseTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reverseTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564592-tanhwithtensor?language=objc -func (g_ Graph) TanhWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("tanhWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564550-exponentbase2withtensor?language=objc +func (g_ Graph) ExponentBase2WithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("exponentBase2WithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564581-rintwithtensor?language=objc -func (g_ Graph) RintWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("rintWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564572-minimumwithprimarytensor?language=objc +func (g_ Graph) MinimumWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("minimumWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3928153-gatheralongaxis?language=objc -func (g_ Graph) GatherAlongAxisWithUpdatesTensorIndicesTensorName(axis int, updatesTensor ITensor, indicesTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("gatherAlongAxis:withUpdatesTensor:indicesTensor:name:"), axis, updatesTensor, indicesTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564557-isinfinitewithtensor?language=objc +func (g_ Graph) IsInfiniteWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("isInfiniteWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564562-logarithmbase2withtensor?language=objc -func (g_ Graph) LogarithmBase2WithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("logarithmBase2WithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750681-depthwiseconvolution3dwithsource?language=objc +func (g_ Graph) DepthwiseConvolution3DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IDepthwiseConvolution3DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution3DWithSourceTensor:weightsTensor:descriptor:name:"), source, weights, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3763058-sparsetensorwithtype?language=objc -func (g_ Graph) SparseTensorWithTypeTensorsShapeDataTypeName(sparseStorageType SparseStorageType, inputTensorArray []ITensor, shape *foundation.Array, dataType mps.DataType, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sparseTensorWithType:tensors:shape:dataType:name:"), sparseStorageType, inputTensorArray, shape, dataType, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867084-topkwithsourcetensor?language=objc +func (g_ Graph) TopKWithSourceTensorKTensorName(source ITensor, kTensor ITensor, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("topKWithSourceTensor:kTensor:name:"), source, kTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867069-convolutiontranspose2ddatagradie?language=objc -func (g_ Graph) ConvolutionTranspose2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeTensorForwardConvolutionDescriptorName(incomingGradient ITensor, weights ITensor, outputShape ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolutionTranspose2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShapeTensor:forwardConvolutionDescriptor:name:"), incomingGradient, weights, outputShape, forwardConvolutionDescriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589362-gatherndwithupdatestensor?language=objc +func (g_ Graph) GatherNDWithUpdatesTensorIndicesTensorBatchDimensionsName(updatesTensor ITensor, indicesTensor ITensor, batchDimensions uint, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("gatherNDWithUpdatesTensor:indicesTensor:batchDimensions:name:"), updatesTensor, indicesTensor, batchDimensions, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750715-reversetensor?language=objc -func (g_ Graph) ReverseTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reverseTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564618-runasyncwithfeeds?language=objc +func (g_ Graph) RunAsyncWithFeedsTargetTensorsTargetOperationsExecutionDescriptor(feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, executionDescriptor IExecutionDescriptor) *foundation.Dictionary { + rv := objc.Call[*foundation.Dictionary](g_, objc.Sel("runAsyncWithFeeds:targetTensors:targetOperations:executionDescriptor:"), feeds, targetTensors, targetOperations, executionDescriptor) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3928157-scatteralongaxistensor?language=objc -func (g_ Graph) ScatterAlongAxisTensorWithDataTensorUpdatesTensorIndicesTensorModeName(axisTensor ITensor, dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, mode ScatterMode, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("scatterAlongAxisTensor:withDataTensor:updatesTensor:indicesTensor:mode:name:"), axisTensor, dataTensor, updatesTensor, indicesTensor, mode, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564574-multiplicationwithprimarytensor?language=objc +func (g_ Graph) MultiplicationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("multiplicationWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925427-bandpartwithtensor?language=objc -func (g_ Graph) BandPartWithTensorNumLowerTensorNumUpperTensorName(inputTensor ITensor, numLowerTensor ITensor, numUpperTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("bandPartWithTensor:numLowerTensor:numUpperTensor:name:"), inputTensor, numLowerTensor, numUpperTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564587-sinhwithtensor?language=objc +func (g_ Graph) SinhWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("sinhWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564618-runasyncwithfeeds?language=objc -func (g_ Graph) RunAsyncWithFeedsTargetTensorsTargetOperationsExecutionDescriptor(feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, executionDescriptor IExecutionDescriptor) *foundation.Dictionary { - rv := objc.Call[*foundation.Dictionary](g_, objc.Sel("runAsyncWithFeeds:targetTensors:targetOperations:executionDescriptor:"), feeds, targetTensors, targetOperations, executionDescriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3626198-dropouttensor?language=objc +func (g_ Graph) DropoutTensorRateName(tensor ITensor, rate float64, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("dropoutTensor:rate:name:"), tensor, rate, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3923675-splittensor?language=objc -func (g_ Graph) SplitTensorSplitSizesTensorAxisName(tensor ITensor, splitSizesTensor ITensor, axis int, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("splitTensor:splitSizesTensor:axis:name:"), tensor, splitSizesTensor, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919762-singlegaternnwithsourcetensor?language=objc +func (g_ Graph) SingleGateRNNWithSourceTensorRecurrentWeightInitStateDescriptorName(source ITensor, recurrentWeight ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("singleGateRNNWithSourceTensor:recurrentWeight:initState:descriptor:name:"), source, recurrentWeight, initState, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564583-selectwithpredicatetensor?language=objc -func (g_ Graph) SelectWithPredicateTensorTruePredicateTensorFalsePredicateTensorName(predicateTensor ITensor, truePredicateTensor ITensor, falseSelectTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("selectWithPredicateTensor:truePredicateTensor:falsePredicateTensor:name:"), predicateTensor, truePredicateTensor, falseSelectTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3857574-minimumwithnanpropagationwithpri?language=objc +func (g_ Graph) MinimumWithNaNPropagationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("minimumWithNaNPropagationWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919763-singlegaternnwithsourcetensor?language=objc -func (g_ Graph) SingleGateRNNWithSourceTensorRecurrentWeightInputWeightBiasInitStateDescriptorName(source ITensor, recurrentWeight ITensor, inputWeight ITensor, bias ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("singleGateRNNWithSourceTensor:recurrentWeight:inputWeight:bias:initState:descriptor:name:"), source, recurrentWeight, inputWeight, bias, initState, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564562-logarithmbase2withtensor?language=objc +func (g_ Graph) LogarithmBase2WithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("logarithmBase2WithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580482-onehotwithindicestensor?language=objc -func (g_ Graph) OneHotWithIndicesTensorDepthAxisDataTypeOnValueOffValueName(indicesTensor ITensor, depth uint, axis uint, dataType mps.DataType, onValue float64, offValue float64, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("oneHotWithIndicesTensor:depth:axis:dataType:onValue:offValue:name:"), indicesTensor, depth, axis, dataType, onValue, offValue, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564689-placeholderwithshape?language=objc +func (g_ Graph) PlaceholderWithShapeName(shape *foundation.Array, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("placeholderWithShape:name:"), shape, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564541-additionwithprimarytensor?language=objc -func (g_ Graph) AdditionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("additionWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564575-negativewithtensor?language=objc +func (g_ Graph) NegativeWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("negativeWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3675593-divisionnonanwithprimarytensor?language=objc -func (g_ Graph) DivisionNoNaNWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("divisionNoNaNWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867080-shapeoftensor?language=objc +func (g_ Graph) ShapeOfTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("shapeOfTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3728135-slicetensor?language=objc -func (g_ Graph) SliceTensorStartsEndsStridesName(tensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sliceTensor:starts:ends:strides:name:"), tensor, starts, ends, strides, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564549-exponentbase10withtensor?language=objc +func (g_ Graph) ExponentBase10WithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("exponentBase10WithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901489-randomuniformtensorwithshapetens?language=objc -func (g_ Graph) RandomUniformTensorWithShapeTensorStateTensorName(shapeTensor ITensor, state ITensor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("randomUniformTensorWithShapeTensor:stateTensor:name:"), shapeTensor, state, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564621-runwithfeeds?language=objc +func (g_ Graph) RunWithFeedsTargetTensorsTargetOperations(feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation) *foundation.Dictionary { + rv := objc.Call[*foundation.Dictionary](g_, objc.Sel("runWithFeeds:targetTensors:targetOperations:"), feeds, targetTensors, targetOperations) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618936-applystochasticgradientdescentwi?language=objc -func (g_ Graph) ApplyStochasticGradientDescentWithLearningRateTensorVariableGradientTensorName(learningRateTensor ITensor, variable IVariableOp, gradientTensor ITensor, name string) Operation { - rv := objc.Call[Operation](g_, objc.Sel("applyStochasticGradientDescentWithLearningRateTensor:variable:gradientTensor:name:"), learningRateTensor, variable, gradientTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3857573-maximumwithnanpropagationwithpri?language=objc +func (g_ Graph) MaximumWithNaNPropagationWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("maximumWithNaNPropagationWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656160-atanhwithtensor?language=objc -func (g_ Graph) AtanhWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("atanhWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867074-scatterwithdatatensor?language=objc +func (g_ Graph) ScatterWithDataTensorUpdatesTensorIndicesTensorAxisModeName(dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, axis int, mode ScatterMode, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("scatterWithDataTensor:updatesTensor:indicesTensor:axis:mode:name:"), dataTensor, updatesTensor, indicesTensor, axis, mode, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564573-modulowithprimarytensor?language=objc -func (g_ Graph) ModuloWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("moduloWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564554-greaterthanwithprimarytensor?language=objc +func (g_ Graph) GreaterThanWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("greaterThanWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3667488-depthwiseconvolution2dweightsgra?language=objc -func (g_ Graph) DepthwiseConvolution2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeDescriptorName(incomingGradient ITensor, source ITensor, outputShape *foundation.Array, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:descriptor:name:"), incomingGradient, source, outputShape, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564582-roundwithtensor?language=objc +func (g_ Graph) RoundWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("roundWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618929-convolutiontranspose2ddatagradie?language=objc -func (g_ Graph) ConvolutionTranspose2DDataGradientWithIncomingGradientTensorWeightsTensorOutputShapeForwardConvolutionDescriptorName(incomingGradient ITensor, weights ITensor, outputShape *foundation.Array, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolutionTranspose2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:forwardConvolutionDescriptor:name:"), incomingGradient, weights, outputShape, forwardConvolutionDescriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564564-logicalandwithprimarytensor?language=objc +func (g_ Graph) LogicalANDWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("logicalANDWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589368-reductionproductwithtensor?language=objc -func (g_ Graph) ReductionProductWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionProductWithTensor:axes:name:"), tensor, axes, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3589366-reductionmaximumwithtensor?language=objc +func (g_ Graph) ReductionMaximumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reductionMaximumWithTensor:axes:name:"), tensor, axes, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656155-acoshwithtensor?language=objc -func (g_ Graph) AcoshWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("acoshWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564584-signwithtensor?language=objc +func (g_ Graph) SignWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("signWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901488-randomuniformtensorwithshapetens?language=objc -func (g_ Graph) RandomUniformTensorWithShapeTensorSeedName(shapeTensor ITensor, seed uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("randomUniformTensorWithShapeTensor:seed:name:"), shapeTensor, seed, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564547-equalwithprimarytensor?language=objc +func (g_ Graph) EqualWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("equalWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901479-randomtensorwithshape?language=objc -func (g_ Graph) RandomTensorWithShapeDescriptorSeedName(shape *foundation.Array, descriptor IRandomOpDescriptor, seed uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("randomTensorWithShape:descriptor:seed:name:"), shape, descriptor, seed, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656157-asinhwithtensor?language=objc +func (g_ Graph) AsinhWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("asinhWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564699-normalizationwithtensor?language=objc -func (g_ Graph) NormalizationWithTensorMeanTensorVarianceTensorGammaTensorBetaTensorEpsilonName(tensor ITensor, mean ITensor, variance ITensor, gamma ITensor, beta ITensor, epsilon float32, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("normalizationWithTensor:meanTensor:varianceTensor:gammaTensor:betaTensor:epsilon:name:"), tensor, mean, variance, gamma, beta, epsilon, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3667489-depthwiseconvolution2dwithsource?language=objc +func (g_ Graph) DepthwiseConvolution2DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IDepthwiseConvolution2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("depthwiseConvolution2DWithSourceTensor:weightsTensor:descriptor:name:"), source, weights, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925448-coordinatealongaxis?language=objc -func (g_ Graph) CoordinateAlongAxisWithShapeName(axis int, shape *foundation.Array, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("coordinateAlongAxis:withShape:name:"), axis, shape, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656163-varianceoftensor?language=objc +func (g_ Graph) VarianceOfTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("varianceOfTensor:axes:name:"), tensor, axes, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564579-reciprocalwithtensor?language=objc -func (g_ Graph) ReciprocalWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reciprocalWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618938-padgradientwithincominggradientt?language=objc +func (g_ Graph) PadGradientWithIncomingGradientTensorSourceTensorPaddingModeLeftPaddingRightPaddingName(incomingGradientTensor ITensor, sourceTensor ITensor, paddingMode PaddingMode, leftPadding *foundation.Array, rightPadding *foundation.Array, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("padGradientWithIncomingGradientTensor:sourceTensor:paddingMode:leftPadding:rightPadding:name:"), incomingGradientTensor, sourceTensor, paddingMode, leftPadding, rightPadding, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901485-randomuniformtensorwithshape?language=objc -func (g_ Graph) RandomUniformTensorWithShapeSeedName(shape *foundation.Array, seed uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("randomUniformTensorWithShape:seed:name:"), shape, seed, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564699-normalizationwithtensor?language=objc +func (g_ Graph) NormalizationWithTensorMeanTensorVarianceTensorGammaTensorBetaTensorEpsilonName(tensor ITensor, mean ITensor, variance ITensor, gamma ITensor, beta ITensor, epsilon float32, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("normalizationWithTensor:meanTensor:varianceTensor:gammaTensor:betaTensor:epsilon:name:"), tensor, mean, variance, gamma, beta, epsilon, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618928-convolution2dweightsgradientwith?language=objc -func (g_ Graph) Convolution2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeForwardConvolutionDescriptorName(incomingGradient ITensor, source ITensor, outputShape *foundation.Array, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:forwardConvolutionDescriptor:name:"), incomingGradient, source, outputShape, forwardConvolutionDescriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564546-divisionwithprimarytensor?language=objc +func (g_ Graph) DivisionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("divisionWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901476-randomphiloxstatetensorwithcount?language=objc -func (g_ Graph) RandomPhiloxStateTensorWithCounterLowCounterHighKeyName(counterLow uint, counterHigh uint, key uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("randomPhiloxStateTensorWithCounterLow:counterHigh:key:name:"), counterLow, counterHigh, key, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919758-singlegaternngradientswithsource?language=objc +func (g_ Graph) SingleGateRNNGradientsWithSourceTensorRecurrentWeightSourceGradientZStateInitStateDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, initState ITensor, descriptor ISingleGateRNNDescriptor, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:initState:descriptor:name:"), source, recurrentWeight, sourceGradient, zState, initState, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750712-flatten2dtensor?language=objc -func (g_ Graph) Flatten2DTensorAxisTensorName(tensor ITensor, axisTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("flatten2DTensor:axisTensor:name:"), tensor, axisTensor, name) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580383-encodetocommandbuffer?language=objc +func (g_ Graph) EncodeToCommandBufferFeedsTargetOperationsResultsDictionaryExecutionDescriptor(commandBuffer mps.ICommandBuffer, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary, executionDescriptor IExecutionDescriptor) { + objc.Call[objc.Void](g_, objc.Sel("encodeToCommandBuffer:feeds:targetOperations:resultsDictionary:executionDescriptor:"), commandBuffer, feeds, targetOperations, resultsDictionary, executionDescriptor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867068-convolution2dweightsgradientwith?language=objc -func (g_ Graph) Convolution2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeTensorForwardConvolutionDescriptorName(gradient ITensor, source ITensor, outputShapeTensor ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShapeTensor:forwardConvolutionDescriptor:name:"), gradient, source, outputShapeTensor, forwardConvolutionDescriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3787575-compilewithdevice?language=objc +func (g_ Graph) CompileWithDeviceFeedsTargetTensorsTargetOperationsCompilationDescriptor(device IDevice, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, compilationDescriptor ICompilationDescriptor) Executable { + rv := objc.Call[Executable](g_, objc.Sel("compileWithDevice:feeds:targetTensors:targetOperations:compilationDescriptor:"), device, feeds, targetTensors, targetOperations, compilationDescriptor) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3928155-scatteralongaxis?language=objc -func (g_ Graph) ScatterAlongAxisWithDataTensorUpdatesTensorIndicesTensorModeName(axis int, dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, mode ScatterMode, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("scatterAlongAxis:withDataTensor:updatesTensor:indicesTensor:mode:name:"), axis, dataTensor, updatesTensor, indicesTensor, mode, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618937-stochasticgradientdescentwithlea?language=objc +func (g_ Graph) StochasticGradientDescentWithLearningRateTensorValuesTensorGradientTensorName(learningRateTensor ITensor, valuesTensor ITensor, gradientTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("stochasticGradientDescentWithLearningRateTensor:valuesTensor:gradientTensor:name:"), learningRateTensor, valuesTensor, gradientTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618930-convolutiontranspose2dweightsgra?language=objc -func (g_ Graph) ConvolutionTranspose2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeForwardConvolutionDescriptorName(incomingGradientTensor ITensor, source ITensor, outputShape *foundation.Array, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolutionTranspose2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:forwardConvolutionDescriptor:name:"), incomingGradientTensor, source, outputShape, forwardConvolutionDescriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564579-reciprocalwithtensor?language=objc +func (g_ Graph) ReciprocalWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reciprocalWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3667506-resizewithgradienttensor?language=objc -func (g_ Graph) ResizeWithGradientTensorInputModeCenterResultAlignCornersLayoutName(gradient ITensor, input ITensor, mode ResizeMode, centerResult bool, alignCorners bool, layout TensorNamedDataLayout, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("resizeWithGradientTensor:input:mode:centerResult:alignCorners:layout:name:"), gradient, input, mode, centerResult, alignCorners, layout, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564588-squarerootwithtensor?language=objc +func (g_ Graph) SquareRootWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("squareRootWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564620-runasyncwithmtlcommandqueue?language=objc -func (g_ Graph) RunAsyncWithMTLCommandQueueFeedsTargetTensorsTargetOperationsExecutionDescriptor(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, executionDescriptor IExecutionDescriptor) *foundation.Dictionary { - po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) - rv := objc.Call[*foundation.Dictionary](g_, objc.Sel("runAsyncWithMTLCommandQueue:feeds:targetTensors:targetOperations:executionDescriptor:"), po0, feeds, targetTensors, targetOperations, executionDescriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564577-notwithtensor?language=objc +func (g_ Graph) NotWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("notWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564620-runasyncwithmtlcommandqueue?language=objc -func (g_ Graph) RunAsyncWithMTLCommandQueueObjectFeedsTargetTensorsTargetOperationsExecutionDescriptor(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetTensors []ITensor, targetOperations []IOperation, executionDescriptor IExecutionDescriptor) *foundation.Dictionary { - rv := objc.Call[*foundation.Dictionary](g_, objc.Sel("runAsyncWithMTLCommandQueue:feeds:targetTensors:targetOperations:executionDescriptor:"), commandQueueObject, feeds, targetTensors, targetOperations, executionDescriptor) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564586-sinwithtensor?language=objc +func (g_ Graph) SinWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("sinWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564590-subtractionwithprimarytensor?language=objc -func (g_ Graph) SubtractionWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("subtractionWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564576-notequalwithprimarytensor?language=objc +func (g_ Graph) NotEqualWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("notEqualWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564687-constantwithdata?language=objc -func (g_ Graph) ConstantWithDataShapeDataType(data []byte, shape *foundation.Array, dataType mps.DataType) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("constantWithData:shape:dataType:"), data, shape, dataType) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3728135-slicetensor?language=objc +func (g_ Graph) SliceTensorStartsEndsStridesName(tensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("sliceTensor:starts:ends:strides:name:"), tensor, starts, ends, strides, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750690-l2normpooling4dgradientwithgradi?language=objc -func (g_ Graph) L2NormPooling4DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("L2NormPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:"), gradient, source, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564578-powerwithprimarytensor?language=objc +func (g_ Graph) PowerWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("powerWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580386-softmaxgradientwithincominggradi?language=objc -func (g_ Graph) SoftMaxGradientWithIncomingGradientSourceTensorAxisName(gradient ITensor, source ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("softMaxGradientWithIncomingGradient:sourceTensor:axis:name:"), gradient, source, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564565-logicalnandwithprimarytensor?language=objc +func (g_ Graph) LogicalNANDWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("logicalNANDWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564549-exponentbase10withtensor?language=objc -func (g_ Graph) ExponentBase10WithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("exponentBase10WithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618933-normalizationbetagradientwithinc?language=objc +func (g_ Graph) NormalizationBetaGradientWithIncomingGradientTensorSourceTensorReductionAxesName(incomingGradientTensor ITensor, sourceTensor ITensor, axes []foundation.INumber, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("normalizationBetaGradientWithIncomingGradientTensor:sourceTensor:reductionAxes:name:"), incomingGradientTensor, sourceTensor, axes, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867070-convolutiontranspose2dweightsgra?language=objc -func (g_ Graph) ConvolutionTranspose2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeTensorForwardConvolutionDescriptorName(incomingGradientTensor ITensor, source ITensor, outputShape ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("convolutionTranspose2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShapeTensor:forwardConvolutionDescriptor:name:"), incomingGradientTensor, source, outputShape, forwardConvolutionDescriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656155-acoshwithtensor?language=objc +func (g_ Graph) AcoshWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("acoshWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564586-sinwithtensor?language=objc -func (g_ Graph) SinWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sinWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3923676-stacktensors?language=objc +func (g_ Graph) StackTensorsAxisName(inputTensors []ITensor, axis int, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("stackTensors:axis:name:"), inputTensors, axis, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564736-transposetensor?language=objc -func (g_ Graph) TransposeTensorDimensionWithDimensionName(tensor ITensor, dimensionIndex uint, dimensionIndex2 uint, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("transposeTensor:dimension:withDimension:name:"), tensor, dimensionIndex, dimensionIndex2, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580468-softmaxcrossentropygradientwithi?language=objc +func (g_ Graph) SoftMaxCrossEntropyGradientWithIncomingGradientTensorSourceTensorLabelsTensorAxisReductionTypeName(gradientTensor ITensor, sourceTensor ITensor, labelsTensor ITensor, axis int, reductionType LossReductionType, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("softMaxCrossEntropyGradientWithIncomingGradientTensor:sourceTensor:labelsTensor:axis:reductionType:name:"), gradientTensor, sourceTensor, labelsTensor, axis, reductionType, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564556-isfinitewithtensor?language=objc -func (g_ Graph) IsFiniteWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("isFiniteWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750706-reductionargmaximumwithtensor?language=objc +func (g_ Graph) ReductionArgMaximumWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reductionArgMaximumWithTensor:axis:name:"), tensor, axis, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564571-maximumwithprimarytensor?language=objc -func (g_ Graph) MaximumWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("maximumWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564731-concattensor?language=objc +func (g_ Graph) ConcatTensorWithTensorDimensionName(tensor ITensor, tensor2 ITensor, dimensionIndex int, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("concatTensor:withTensor:dimension:name:"), tensor, tensor2, dimensionIndex, name) return rv } @@ -2290,129 +1639,121 @@ func (g_ Graph) L2NormPooling4DWithSourceTensorDescriptorName(source ITensor, de // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564691-variablewithdata?language=objc -func (g_ Graph) VariableWithDataShapeDataTypeName(data []byte, shape *foundation.Array, dataType mps.DataType, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("variableWithData:shape:dataType:name:"), data, shape, dataType, name) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564544-coswithtensor?language=objc -func (g_ Graph) CosWithTensorName(tensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("cosWithTensor:name:"), tensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3928154-gatheralongaxistensor?language=objc +func (g_ Graph) GatherAlongAxisTensorWithUpdatesTensorIndicesTensorName(axisTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("gatherAlongAxisTensor:withUpdatesTensor:indicesTensor:name:"), axisTensor, updatesTensor, indicesTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580481-onehotwithindicestensor?language=objc -func (g_ Graph) OneHotWithIndicesTensorDepthAxisDataTypeName(indicesTensor ITensor, depth uint, axis uint, dataType mps.DataType, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("oneHotWithIndicesTensor:depth:axis:dataType:name:"), indicesTensor, depth, axis, dataType, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3928157-scatteralongaxistensor?language=objc +func (g_ Graph) ScatterAlongAxisTensorWithDataTensorUpdatesTensorIndicesTensorModeName(axisTensor ITensor, dataTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, mode ScatterMode, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("scatterAlongAxisTensor:withDataTensor:updatesTensor:indicesTensor:mode:name:"), axisTensor, dataTensor, updatesTensor, indicesTensor, mode, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564689-placeholderwithshape?language=objc -func (g_ Graph) PlaceholderWithShapeName(shape *foundation.Array, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("placeholderWithShape:name:"), shape, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564736-transposetensor?language=objc +func (g_ Graph) TransposeTensorDimensionWithDimensionName(tensor ITensor, dimensionIndex uint, dimensionIndex2 uint, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("transposeTensor:dimension:withDimension:name:"), tensor, dimensionIndex, dimensionIndex2, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867066-leakyreluwithtensor?language=objc -func (g_ Graph) LeakyReLUWithTensorAlphaTensorName(tensor ITensor, alphaTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("leakyReLUWithTensor:alphaTensor:name:"), tensor, alphaTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867077-broadcasttensor?language=objc +func (g_ Graph) BroadcastTensorToShapeTensorName(tensor ITensor, shapeTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("broadcastTensor:toShapeTensor:name:"), tensor, shapeTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3728134-slicegradienttensor?language=objc -func (g_ Graph) SliceGradientTensorFwdInShapeTensorStartsEndsStridesStartMaskEndMaskSqueezeMaskName(inputGradientTensor ITensor, fwdInShapeTensor ITensor, starts []foundation.INumber, ends []foundation.INumber, strides []foundation.INumber, startMask uint32, endMask uint32, squeezeMask uint32, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("sliceGradientTensor:fwdInShapeTensor:starts:ends:strides:startMask:endMask:squeezeMask:name:"), inputGradientTensor, fwdInShapeTensor, starts, ends, strides, startMask, endMask, squeezeMask, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580386-softmaxgradientwithincominggradi?language=objc +func (g_ Graph) SoftMaxGradientWithIncomingGradientSourceTensorAxisName(gradient ITensor, source ITensor, axis int, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("softMaxGradientWithIncomingGradient:sourceTensor:axis:name:"), gradient, source, axis, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3923676-stacktensors?language=objc -func (g_ Graph) StackTensorsAxisName(inputTensors []ITensor, axis int, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("stackTensors:axis:name:"), inputTensors, axis, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564543-clampwithtensor?language=objc +func (g_ Graph) ClampWithTensorMinValueTensorMaxValueTensorName(tensor ITensor, minValueTensor ITensor, maxValueTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("clampWithTensor:minValueTensor:maxValueTensor:name:"), tensor, minValueTensor, maxValueTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925429-lstmgradientswithsourcetensor?language=objc -func (g_ Graph) LSTMGradientsWithSourceTensorRecurrentWeightSourceGradientZStateCellOutputFwdInputWeightBiasInitStateInitCellDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, cellOutputFwd ITensor, inputWeight ITensor, bias ITensor, initState ITensor, initCell ITensor, descriptor ILSTMDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:inputWeight:bias:initState:initCell:descriptor:name:"), source, recurrentWeight, sourceGradient, zState, cellOutputFwd, inputWeight, bias, initState, initCell, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564707-maxpooling2dgradientwithgradient?language=objc +func (g_ Graph) MaxPooling2DGradientWithGradientTensorSourceTensorDescriptorName(gradient ITensor, source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("maxPooling2DGradientWithGradientTensor:sourceTensor:descriptor:name:"), gradient, source, descriptor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3925430-lstmgradientswithsourcetensor?language=objc -func (g_ Graph) LSTMGradientsWithSourceTensorRecurrentWeightSourceGradientZStateCellOutputFwdInputWeightBiasInitStateInitCellMaskDescriptorName(source ITensor, recurrentWeight ITensor, sourceGradient ITensor, zState ITensor, cellOutputFwd ITensor, inputWeight ITensor, bias ITensor, initState ITensor, initCell ITensor, mask ITensor, descriptor ILSTMDescriptor, name string) []Tensor { - rv := objc.Call[[]Tensor](g_, objc.Sel("LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:inputWeight:bias:initState:initCell:mask:descriptor:name:"), source, recurrentWeight, sourceGradient, zState, cellOutputFwd, inputWeight, bias, initState, initCell, mask, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580494-reductionsumwithtensor?language=objc +func (g_ Graph) ReductionSumWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("reductionSumWithTensor:axes:name:"), tensor, axes, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3928158-scatteralongaxistensor?language=objc -func (g_ Graph) ScatterAlongAxisTensorWithUpdatesTensorIndicesTensorShapeModeName(axisTensor ITensor, updatesTensor ITensor, indicesTensor ITensor, shape *foundation.Array, mode ScatterMode, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("scatterAlongAxisTensor:withUpdatesTensor:indicesTensor:shape:mode:name:"), axisTensor, updatesTensor, indicesTensor, shape, mode, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564573-modulowithprimarytensor?language=objc +func (g_ Graph) ModuloWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("moduloWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3867077-broadcasttensor?language=objc -func (g_ Graph) BroadcastTensorToShapeTensorName(tensor ITensor, shapeTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("broadcastTensor:toShapeTensor:name:"), tensor, shapeTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3901476-randomphiloxstatetensorwithcount?language=objc +func (g_ Graph) RandomPhiloxStateTensorWithCounterLowCounterHighKeyName(counterLow uint, counterHigh uint, key uint, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("randomPhiloxStateTensorWithCounterLow:counterHigh:key:name:"), counterLow, counterHigh, key, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750693-avgpooling4dwithsourcetensor?language=objc -func (g_ Graph) AvgPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("avgPooling4DWithSourceTensor:descriptor:name:"), source, descriptor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564555-identitywithtensor?language=objc +func (g_ Graph) IdentityWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("identityWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564572-minimumwithprimarytensor?language=objc -func (g_ Graph) MinimumWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("minimumWithPrimaryTensor:secondaryTensor:name:"), primaryTensor, secondaryTensor, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750670-whilewithinitialinputs?language=objc +func (g_ Graph) WhileWithInitialInputsBeforeAfterName(initialInputs []ITensor, before WhileBeforeBlock, after WhileAfterBlock, name string) []Tensor { + rv := objc.Call[[]Tensor](g_, objc.Sel("whileWithInitialInputs:before:after:name:"), initialInputs, before, after, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3564732-reshapetensor?language=objc -func (g_ Graph) ReshapeTensorWithShapeName(tensor ITensor, shape *foundation.Array, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reshapeTensor:withShape:name:"), tensor, shape, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3656159-atanwithtensor?language=objc +func (g_ Graph) AtanWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("atanWithTensor:name:"), tensor, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3750710-depthtospace2dtensor?language=objc -func (g_ Graph) DepthToSpace2DTensorWidthAxisTensorHeightAxisTensorDepthAxisTensorBlockSizeUsePixelShuffleOrderName(tensor ITensor, widthAxisTensor ITensor, heightAxisTensor ITensor, depthAxisTensor ITensor, blockSize uint, usePixelShuffleOrder bool, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("depthToSpace2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:"), tensor, widthAxisTensor, heightAxisTensor, depthAxisTensor, blockSize, usePixelShuffleOrder, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3618934-normalizationgammagradientwithin?language=objc +func (g_ Graph) NormalizationGammaGradientWithIncomingGradientTensorSourceTensorMeanTensorVarianceTensorReductionAxesEpsilonName(incomingGradientTensor ITensor, sourceTensor ITensor, meanTensor ITensor, varianceTensor ITensor, axes []foundation.INumber, epsilon float32, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("normalizationGammaGradientWithIncomingGradientTensor:sourceTensor:meanTensor:varianceTensor:reductionAxes:epsilon:name:"), incomingGradientTensor, sourceTensor, meanTensor, varianceTensor, axes, epsilon, name) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3919779-reductionorwithtensor?language=objc -func (g_ Graph) ReductionOrWithTensorAxesName(tensor ITensor, axes []foundation.INumber, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("reductionOrWithTensor:axes:name:"), tensor, axes, name) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph/3580387-softmaxwithtensor?language=objc +func (g_ Graph) SoftMaxWithTensorAxisName(tensor ITensor, axis int, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("softMaxWithTensor:axis:name:"), tensor, axis, name) return rv } diff --git a/macos/mpsgraph/lstm_descriptor.gen.go b/macos/mpsgraph/lstm_descriptor.gen.go index 28253af1..35c8d6ae 100644 --- a/macos/mpsgraph/lstm_descriptor.gen.go +++ b/macos/mpsgraph/lstm_descriptor.gen.go @@ -18,26 +18,26 @@ type _LSTMDescriptorClass struct { // An interface definition for the [LSTMDescriptor] class. type ILSTMDescriptor interface { objc.IObject + Activation() RNNActivation + SetActivation(value RNNActivation) + Training() bool + SetTraining(value bool) ProduceCell() bool SetProduceCell(value bool) + CellGateActivation() RNNActivation + SetCellGateActivation(value RNNActivation) + OutputGateActivation() RNNActivation + SetOutputGateActivation(value RNNActivation) ForgetGateLast() bool SetForgetGateLast(value bool) Bidirectional() bool SetBidirectional(value bool) ForgetGateActivation() RNNActivation SetForgetGateActivation(value RNNActivation) - Activation() RNNActivation - SetActivation(value RNNActivation) - CellGateActivation() RNNActivation - SetCellGateActivation(value RNNActivation) Reverse() bool SetReverse(value bool) InputGateActivation() RNNActivation SetInputGateActivation(value RNNActivation) - OutputGateActivation() RNNActivation - SetOutputGateActivation(value RNNActivation) - Training() bool - SetTraining(value bool) } // [Full Topic] @@ -87,150 +87,150 @@ func (l_ LSTMDescriptor) Init() LSTMDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925444-producecell?language=objc -func (l_ LSTMDescriptor) ProduceCell() bool { - rv := objc.Call[bool](l_, objc.Sel("produceCell")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925436-activation?language=objc +func (l_ LSTMDescriptor) Activation() RNNActivation { + rv := objc.Call[RNNActivation](l_, objc.Sel("activation")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925444-producecell?language=objc -func (l_ LSTMDescriptor) SetProduceCell(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setProduceCell:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925436-activation?language=objc +func (l_ LSTMDescriptor) SetActivation(value RNNActivation) { + objc.Call[objc.Void](l_, objc.Sel("setActivation:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925441-forgetgatelast?language=objc -func (l_ LSTMDescriptor) ForgetGateLast() bool { - rv := objc.Call[bool](l_, objc.Sel("forgetGateLast")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925446-training?language=objc +func (l_ LSTMDescriptor) Training() bool { + rv := objc.Call[bool](l_, objc.Sel("training")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925441-forgetgatelast?language=objc -func (l_ LSTMDescriptor) SetForgetGateLast(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setForgetGateLast:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925446-training?language=objc +func (l_ LSTMDescriptor) SetTraining(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setTraining:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925437-bidirectional?language=objc -func (l_ LSTMDescriptor) Bidirectional() bool { - rv := objc.Call[bool](l_, objc.Sel("bidirectional")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925444-producecell?language=objc +func (l_ LSTMDescriptor) ProduceCell() bool { + rv := objc.Call[bool](l_, objc.Sel("produceCell")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925437-bidirectional?language=objc -func (l_ LSTMDescriptor) SetBidirectional(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setBidirectional:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925444-producecell?language=objc +func (l_ LSTMDescriptor) SetProduceCell(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setProduceCell:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925440-forgetgateactivation?language=objc -func (l_ LSTMDescriptor) ForgetGateActivation() RNNActivation { - rv := objc.Call[RNNActivation](l_, objc.Sel("forgetGateActivation")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925438-cellgateactivation?language=objc +func (l_ LSTMDescriptor) CellGateActivation() RNNActivation { + rv := objc.Call[RNNActivation](l_, objc.Sel("cellGateActivation")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925440-forgetgateactivation?language=objc -func (l_ LSTMDescriptor) SetForgetGateActivation(value RNNActivation) { - objc.Call[objc.Void](l_, objc.Sel("setForgetGateActivation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925438-cellgateactivation?language=objc +func (l_ LSTMDescriptor) SetCellGateActivation(value RNNActivation) { + objc.Call[objc.Void](l_, objc.Sel("setCellGateActivation:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925436-activation?language=objc -func (l_ LSTMDescriptor) Activation() RNNActivation { - rv := objc.Call[RNNActivation](l_, objc.Sel("activation")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925443-outputgateactivation?language=objc +func (l_ LSTMDescriptor) OutputGateActivation() RNNActivation { + rv := objc.Call[RNNActivation](l_, objc.Sel("outputGateActivation")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925436-activation?language=objc -func (l_ LSTMDescriptor) SetActivation(value RNNActivation) { - objc.Call[objc.Void](l_, objc.Sel("setActivation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925443-outputgateactivation?language=objc +func (l_ LSTMDescriptor) SetOutputGateActivation(value RNNActivation) { + objc.Call[objc.Void](l_, objc.Sel("setOutputGateActivation:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925438-cellgateactivation?language=objc -func (l_ LSTMDescriptor) CellGateActivation() RNNActivation { - rv := objc.Call[RNNActivation](l_, objc.Sel("cellGateActivation")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925441-forgetgatelast?language=objc +func (l_ LSTMDescriptor) ForgetGateLast() bool { + rv := objc.Call[bool](l_, objc.Sel("forgetGateLast")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925438-cellgateactivation?language=objc -func (l_ LSTMDescriptor) SetCellGateActivation(value RNNActivation) { - objc.Call[objc.Void](l_, objc.Sel("setCellGateActivation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925441-forgetgatelast?language=objc +func (l_ LSTMDescriptor) SetForgetGateLast(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setForgetGateLast:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925445-reverse?language=objc -func (l_ LSTMDescriptor) Reverse() bool { - rv := objc.Call[bool](l_, objc.Sel("reverse")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925437-bidirectional?language=objc +func (l_ LSTMDescriptor) Bidirectional() bool { + rv := objc.Call[bool](l_, objc.Sel("bidirectional")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925445-reverse?language=objc -func (l_ LSTMDescriptor) SetReverse(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setReverse:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925437-bidirectional?language=objc +func (l_ LSTMDescriptor) SetBidirectional(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setBidirectional:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925442-inputgateactivation?language=objc -func (l_ LSTMDescriptor) InputGateActivation() RNNActivation { - rv := objc.Call[RNNActivation](l_, objc.Sel("inputGateActivation")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925440-forgetgateactivation?language=objc +func (l_ LSTMDescriptor) ForgetGateActivation() RNNActivation { + rv := objc.Call[RNNActivation](l_, objc.Sel("forgetGateActivation")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925442-inputgateactivation?language=objc -func (l_ LSTMDescriptor) SetInputGateActivation(value RNNActivation) { - objc.Call[objc.Void](l_, objc.Sel("setInputGateActivation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925440-forgetgateactivation?language=objc +func (l_ LSTMDescriptor) SetForgetGateActivation(value RNNActivation) { + objc.Call[objc.Void](l_, objc.Sel("setForgetGateActivation:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925443-outputgateactivation?language=objc -func (l_ LSTMDescriptor) OutputGateActivation() RNNActivation { - rv := objc.Call[RNNActivation](l_, objc.Sel("outputGateActivation")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925445-reverse?language=objc +func (l_ LSTMDescriptor) Reverse() bool { + rv := objc.Call[bool](l_, objc.Sel("reverse")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925443-outputgateactivation?language=objc -func (l_ LSTMDescriptor) SetOutputGateActivation(value RNNActivation) { - objc.Call[objc.Void](l_, objc.Sel("setOutputGateActivation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925445-reverse?language=objc +func (l_ LSTMDescriptor) SetReverse(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setReverse:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925446-training?language=objc -func (l_ LSTMDescriptor) Training() bool { - rv := objc.Call[bool](l_, objc.Sel("training")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925442-inputgateactivation?language=objc +func (l_ LSTMDescriptor) InputGateActivation() RNNActivation { + rv := objc.Call[RNNActivation](l_, objc.Sel("inputGateActivation")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925446-training?language=objc -func (l_ LSTMDescriptor) SetTraining(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setTraining:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphlstmdescriptor/3925442-inputgateactivation?language=objc +func (l_ LSTMDescriptor) SetInputGateActivation(value RNNActivation) { + objc.Call[objc.Void](l_, objc.Sel("setInputGateActivation:"), value) } diff --git a/macos/mpsgraph/operation.gen.go b/macos/mpsgraph/operation.gen.go index 60bd6606..7ccdb125 100644 --- a/macos/mpsgraph/operation.gen.go +++ b/macos/mpsgraph/operation.gen.go @@ -18,11 +18,11 @@ type _OperationClass struct { // An interface definition for the [Operation] class. type IOperation interface { objc.IObject - OutputTensors() []Tensor - Graph() Graph - InputTensors() []Tensor - ControlDependencies() []Operation Name() string + ControlDependencies() []Operation + InputTensors() []Tensor + Graph() Graph + OutputTensors() []Tensor } // [Full Topic] @@ -60,17 +60,17 @@ func (o_ Operation) Init() Operation { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphoperation/3564660-outputtensors?language=objc -func (o_ Operation) OutputTensors() []Tensor { - rv := objc.Call[[]Tensor](o_, objc.Sel("outputTensors")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphoperation/3564659-name?language=objc +func (o_ Operation) Name() string { + rv := objc.Call[string](o_, objc.Sel("name")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphoperation/3580488-graph?language=objc -func (o_ Operation) Graph() Graph { - rv := objc.Call[Graph](o_, objc.Sel("graph")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphoperation/3564657-controldependencies?language=objc +func (o_ Operation) ControlDependencies() []Operation { + rv := objc.Call[[]Operation](o_, objc.Sel("controlDependencies")) return rv } @@ -84,16 +84,16 @@ func (o_ Operation) InputTensors() []Tensor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphoperation/3564657-controldependencies?language=objc -func (o_ Operation) ControlDependencies() []Operation { - rv := objc.Call[[]Operation](o_, objc.Sel("controlDependencies")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphoperation/3580488-graph?language=objc +func (o_ Operation) Graph() Graph { + rv := objc.Call[Graph](o_, objc.Sel("graph")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphoperation/3564659-name?language=objc -func (o_ Operation) Name() string { - rv := objc.Call[string](o_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphoperation/3564660-outputtensors?language=objc +func (o_ Operation) OutputTensors() []Tensor { + rv := objc.Call[[]Tensor](o_, objc.Sel("outputTensors")) return rv } diff --git a/macos/mpsgraph/pooling2_d_op_descriptor.gen.go b/macos/mpsgraph/pooling2_d_op_descriptor.gen.go index 3ed8829e..48f15f42 100644 --- a/macos/mpsgraph/pooling2_d_op_descriptor.gen.go +++ b/macos/mpsgraph/pooling2_d_op_descriptor.gen.go @@ -20,38 +20,38 @@ type _Pooling2DOpDescriptorClass struct { type IPooling2DOpDescriptor interface { objc.IObject SetExplicitPaddingWithPaddingLeftPaddingRightPaddingTopPaddingBottom(paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint) - KernelWidth() uint - SetKernelWidth(value uint) - StrideInY() uint - SetStrideInY(value uint) StrideInX() uint SetStrideInX(value uint) - DilationRateInY() uint - SetDilationRateInY(value uint) + PaddingStyle() PaddingStyle + SetPaddingStyle(value PaddingStyle) PaddingBottom() uint SetPaddingBottom(value uint) - IncludeZeroPadToAverage() bool - SetIncludeZeroPadToAverage(value bool) - KernelHeight() uint - SetKernelHeight(value uint) PaddingTop() uint SetPaddingTop(value uint) - ReturnIndicesMode() PoolingReturnIndicesMode - SetReturnIndicesMode(value PoolingReturnIndicesMode) - DataLayout() TensorNamedDataLayout - SetDataLayout(value TensorNamedDataLayout) - PaddingRight() uint - SetPaddingRight(value uint) - DilationRateInX() uint - SetDilationRateInX(value uint) - PaddingStyle() PaddingStyle - SetPaddingStyle(value PaddingStyle) + StrideInY() uint + SetStrideInY(value uint) CeilMode() bool SetCeilMode(value bool) PaddingLeft() uint SetPaddingLeft(value uint) + DilationRateInX() uint + SetDilationRateInX(value uint) + ReturnIndicesMode() PoolingReturnIndicesMode + SetReturnIndicesMode(value PoolingReturnIndicesMode) + DataLayout() TensorNamedDataLayout + SetDataLayout(value TensorNamedDataLayout) ReturnIndicesDataType() mps.DataType SetReturnIndicesDataType(value mps.DataType) + DilationRateInY() uint + SetDilationRateInY(value uint) + KernelHeight() uint + SetKernelHeight(value uint) + IncludeZeroPadToAverage() bool + SetIncludeZeroPadToAverage(value bool) + KernelWidth() uint + SetKernelWidth(value uint) + PaddingRight() uint + SetPaddingRight(value uint) } // [Full Topic] @@ -67,18 +67,6 @@ func Pooling2DOpDescriptorFrom(ptr unsafe.Pointer) Pooling2DOpDescriptor { } } -func (pc _Pooling2DOpDescriptorClass) DescriptorWithKernelWidthKernelHeightStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayout(kernelWidth uint, kernelHeight uint, strideInX uint, strideInY uint, dilationRateInX uint, dilationRateInY uint, paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint, paddingStyle PaddingStyle, dataLayout TensorNamedDataLayout) Pooling2DOpDescriptor { - rv := objc.Call[Pooling2DOpDescriptor](pc, objc.Sel("descriptorWithKernelWidth:kernelHeight:strideInX:strideInY:dilationRateInX:dilationRateInY:paddingLeft:paddingRight:paddingTop:paddingBottom:paddingStyle:dataLayout:"), kernelWidth, kernelHeight, strideInX, strideInY, dilationRateInX, dilationRateInY, paddingLeft, paddingRight, paddingTop, paddingBottom, paddingStyle, dataLayout) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564711-descriptorwithkernelwidth?language=objc -func Pooling2DOpDescriptor_DescriptorWithKernelWidthKernelHeightStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayout(kernelWidth uint, kernelHeight uint, strideInX uint, strideInY uint, dilationRateInX uint, dilationRateInY uint, paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint, paddingStyle PaddingStyle, dataLayout TensorNamedDataLayout) Pooling2DOpDescriptor { - return Pooling2DOpDescriptorClass.DescriptorWithKernelWidthKernelHeightStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayout(kernelWidth, kernelHeight, strideInX, strideInY, dilationRateInX, dilationRateInY, paddingLeft, paddingRight, paddingTop, paddingBottom, paddingStyle, dataLayout) -} - func (pc _Pooling2DOpDescriptorClass) DescriptorWithKernelWidthKernelHeightStrideInXStrideInYPaddingStyleDataLayout(kernelWidth uint, kernelHeight uint, strideInX uint, strideInY uint, paddingStyle PaddingStyle, dataLayout TensorNamedDataLayout) Pooling2DOpDescriptor { rv := objc.Call[Pooling2DOpDescriptor](pc, objc.Sel("descriptorWithKernelWidth:kernelHeight:strideInX:strideInY:paddingStyle:dataLayout:"), kernelWidth, kernelHeight, strideInX, strideInY, paddingStyle, dataLayout) return rv @@ -120,122 +108,122 @@ func (p_ Pooling2DOpDescriptor) SetExplicitPaddingWithPaddingLeftPaddingRightPad // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564716-kernelwidth?language=objc -func (p_ Pooling2DOpDescriptor) KernelWidth() uint { - rv := objc.Call[uint](p_, objc.Sel("kernelWidth")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564723-strideinx?language=objc +func (p_ Pooling2DOpDescriptor) StrideInX() uint { + rv := objc.Call[uint](p_, objc.Sel("strideInX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564716-kernelwidth?language=objc -func (p_ Pooling2DOpDescriptor) SetKernelWidth(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setKernelWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564723-strideinx?language=objc +func (p_ Pooling2DOpDescriptor) SetStrideInX(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setStrideInX:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564724-strideiny?language=objc -func (p_ Pooling2DOpDescriptor) StrideInY() uint { - rv := objc.Call[uint](p_, objc.Sel("strideInY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564720-paddingstyle?language=objc +func (p_ Pooling2DOpDescriptor) PaddingStyle() PaddingStyle { + rv := objc.Call[PaddingStyle](p_, objc.Sel("paddingStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564724-strideiny?language=objc -func (p_ Pooling2DOpDescriptor) SetStrideInY(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setStrideInY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564720-paddingstyle?language=objc +func (p_ Pooling2DOpDescriptor) SetPaddingStyle(value PaddingStyle) { + objc.Call[objc.Void](p_, objc.Sel("setPaddingStyle:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564723-strideinx?language=objc -func (p_ Pooling2DOpDescriptor) StrideInX() uint { - rv := objc.Call[uint](p_, objc.Sel("strideInX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564717-paddingbottom?language=objc +func (p_ Pooling2DOpDescriptor) PaddingBottom() uint { + rv := objc.Call[uint](p_, objc.Sel("paddingBottom")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564723-strideinx?language=objc -func (p_ Pooling2DOpDescriptor) SetStrideInX(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setStrideInX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564717-paddingbottom?language=objc +func (p_ Pooling2DOpDescriptor) SetPaddingBottom(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setPaddingBottom:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564714-dilationrateiny?language=objc -func (p_ Pooling2DOpDescriptor) DilationRateInY() uint { - rv := objc.Call[uint](p_, objc.Sel("dilationRateInY")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564721-paddingtop?language=objc +func (p_ Pooling2DOpDescriptor) PaddingTop() uint { + rv := objc.Call[uint](p_, objc.Sel("paddingTop")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564714-dilationrateiny?language=objc -func (p_ Pooling2DOpDescriptor) SetDilationRateInY(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setDilationRateInY:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564721-paddingtop?language=objc +func (p_ Pooling2DOpDescriptor) SetPaddingTop(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setPaddingTop:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564717-paddingbottom?language=objc -func (p_ Pooling2DOpDescriptor) PaddingBottom() uint { - rv := objc.Call[uint](p_, objc.Sel("paddingBottom")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564724-strideiny?language=objc +func (p_ Pooling2DOpDescriptor) StrideInY() uint { + rv := objc.Call[uint](p_, objc.Sel("strideInY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564717-paddingbottom?language=objc -func (p_ Pooling2DOpDescriptor) SetPaddingBottom(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setPaddingBottom:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564724-strideiny?language=objc +func (p_ Pooling2DOpDescriptor) SetStrideInY(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setStrideInY:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3861843-includezeropadtoaverage?language=objc -func (p_ Pooling2DOpDescriptor) IncludeZeroPadToAverage() bool { - rv := objc.Call[bool](p_, objc.Sel("includeZeroPadToAverage")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3861842-ceilmode?language=objc +func (p_ Pooling2DOpDescriptor) CeilMode() bool { + rv := objc.Call[bool](p_, objc.Sel("ceilMode")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3861843-includezeropadtoaverage?language=objc -func (p_ Pooling2DOpDescriptor) SetIncludeZeroPadToAverage(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setIncludeZeroPadToAverage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3861842-ceilmode?language=objc +func (p_ Pooling2DOpDescriptor) SetCeilMode(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setCeilMode:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564715-kernelheight?language=objc -func (p_ Pooling2DOpDescriptor) KernelHeight() uint { - rv := objc.Call[uint](p_, objc.Sel("kernelHeight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564718-paddingleft?language=objc +func (p_ Pooling2DOpDescriptor) PaddingLeft() uint { + rv := objc.Call[uint](p_, objc.Sel("paddingLeft")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564715-kernelheight?language=objc -func (p_ Pooling2DOpDescriptor) SetKernelHeight(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setKernelHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564718-paddingleft?language=objc +func (p_ Pooling2DOpDescriptor) SetPaddingLeft(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setPaddingLeft:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564721-paddingtop?language=objc -func (p_ Pooling2DOpDescriptor) PaddingTop() uint { - rv := objc.Call[uint](p_, objc.Sel("paddingTop")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564713-dilationrateinx?language=objc +func (p_ Pooling2DOpDescriptor) DilationRateInX() uint { + rv := objc.Call[uint](p_, objc.Sel("dilationRateInX")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564721-paddingtop?language=objc -func (p_ Pooling2DOpDescriptor) SetPaddingTop(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setPaddingTop:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564713-dilationrateinx?language=objc +func (p_ Pooling2DOpDescriptor) SetDilationRateInX(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setDilationRateInX:"), value) } // [Full Topic] @@ -270,90 +258,90 @@ func (p_ Pooling2DOpDescriptor) SetDataLayout(value TensorNamedDataLayout) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564719-paddingright?language=objc -func (p_ Pooling2DOpDescriptor) PaddingRight() uint { - rv := objc.Call[uint](p_, objc.Sel("paddingRight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3919744-returnindicesdatatype?language=objc +func (p_ Pooling2DOpDescriptor) ReturnIndicesDataType() mps.DataType { + rv := objc.Call[mps.DataType](p_, objc.Sel("returnIndicesDataType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564719-paddingright?language=objc -func (p_ Pooling2DOpDescriptor) SetPaddingRight(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setPaddingRight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3919744-returnindicesdatatype?language=objc +func (p_ Pooling2DOpDescriptor) SetReturnIndicesDataType(value mps.DataType) { + objc.Call[objc.Void](p_, objc.Sel("setReturnIndicesDataType:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564713-dilationrateinx?language=objc -func (p_ Pooling2DOpDescriptor) DilationRateInX() uint { - rv := objc.Call[uint](p_, objc.Sel("dilationRateInX")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564714-dilationrateiny?language=objc +func (p_ Pooling2DOpDescriptor) DilationRateInY() uint { + rv := objc.Call[uint](p_, objc.Sel("dilationRateInY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564713-dilationrateinx?language=objc -func (p_ Pooling2DOpDescriptor) SetDilationRateInX(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setDilationRateInX:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564714-dilationrateiny?language=objc +func (p_ Pooling2DOpDescriptor) SetDilationRateInY(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setDilationRateInY:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564720-paddingstyle?language=objc -func (p_ Pooling2DOpDescriptor) PaddingStyle() PaddingStyle { - rv := objc.Call[PaddingStyle](p_, objc.Sel("paddingStyle")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564715-kernelheight?language=objc +func (p_ Pooling2DOpDescriptor) KernelHeight() uint { + rv := objc.Call[uint](p_, objc.Sel("kernelHeight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564720-paddingstyle?language=objc -func (p_ Pooling2DOpDescriptor) SetPaddingStyle(value PaddingStyle) { - objc.Call[objc.Void](p_, objc.Sel("setPaddingStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564715-kernelheight?language=objc +func (p_ Pooling2DOpDescriptor) SetKernelHeight(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setKernelHeight:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3861842-ceilmode?language=objc -func (p_ Pooling2DOpDescriptor) CeilMode() bool { - rv := objc.Call[bool](p_, objc.Sel("ceilMode")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3861843-includezeropadtoaverage?language=objc +func (p_ Pooling2DOpDescriptor) IncludeZeroPadToAverage() bool { + rv := objc.Call[bool](p_, objc.Sel("includeZeroPadToAverage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3861842-ceilmode?language=objc -func (p_ Pooling2DOpDescriptor) SetCeilMode(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setCeilMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3861843-includezeropadtoaverage?language=objc +func (p_ Pooling2DOpDescriptor) SetIncludeZeroPadToAverage(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setIncludeZeroPadToAverage:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564718-paddingleft?language=objc -func (p_ Pooling2DOpDescriptor) PaddingLeft() uint { - rv := objc.Call[uint](p_, objc.Sel("paddingLeft")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564716-kernelwidth?language=objc +func (p_ Pooling2DOpDescriptor) KernelWidth() uint { + rv := objc.Call[uint](p_, objc.Sel("kernelWidth")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564718-paddingleft?language=objc -func (p_ Pooling2DOpDescriptor) SetPaddingLeft(value uint) { - objc.Call[objc.Void](p_, objc.Sel("setPaddingLeft:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564716-kernelwidth?language=objc +func (p_ Pooling2DOpDescriptor) SetKernelWidth(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setKernelWidth:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3919744-returnindicesdatatype?language=objc -func (p_ Pooling2DOpDescriptor) ReturnIndicesDataType() mps.DataType { - rv := objc.Call[mps.DataType](p_, objc.Sel("returnIndicesDataType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564719-paddingright?language=objc +func (p_ Pooling2DOpDescriptor) PaddingRight() uint { + rv := objc.Call[uint](p_, objc.Sel("paddingRight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3919744-returnindicesdatatype?language=objc -func (p_ Pooling2DOpDescriptor) SetReturnIndicesDataType(value mps.DataType) { - objc.Call[objc.Void](p_, objc.Sel("setReturnIndicesDataType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/3564719-paddingright?language=objc +func (p_ Pooling2DOpDescriptor) SetPaddingRight(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setPaddingRight:"), value) } diff --git a/macos/mpsgraph/pooling4_d_op_descriptor.gen.go b/macos/mpsgraph/pooling4_d_op_descriptor.gen.go index 98e5c3d5..c73c90db 100644 --- a/macos/mpsgraph/pooling4_d_op_descriptor.gen.go +++ b/macos/mpsgraph/pooling4_d_op_descriptor.gen.go @@ -20,24 +20,24 @@ type _Pooling4DOpDescriptorClass struct { // An interface definition for the [Pooling4DOpDescriptor] class. type IPooling4DOpDescriptor interface { objc.IObject - Strides() []foundation.Number - SetStrides(value []foundation.INumber) - IncludeZeroPadToAverage() bool - SetIncludeZeroPadToAverage(value bool) - ReturnIndicesDataType() mps.DataType - SetReturnIndicesDataType(value mps.DataType) - KernelSizes() []foundation.Number - SetKernelSizes(value []foundation.INumber) - DilationRates() []foundation.Number - SetDilationRates(value []foundation.INumber) PaddingStyle() PaddingStyle SetPaddingStyle(value PaddingStyle) CeilMode() bool SetCeilMode(value bool) + KernelSizes() []foundation.Number + SetKernelSizes(value []foundation.INumber) PaddingValues() []foundation.Number SetPaddingValues(value []foundation.INumber) + DilationRates() []foundation.Number + SetDilationRates(value []foundation.INumber) ReturnIndicesMode() PoolingReturnIndicesMode SetReturnIndicesMode(value PoolingReturnIndicesMode) + ReturnIndicesDataType() mps.DataType + SetReturnIndicesDataType(value mps.DataType) + IncludeZeroPadToAverage() bool + SetIncludeZeroPadToAverage(value bool) + Strides() []foundation.Number + SetStrides(value []foundation.INumber) } // [Full Topic] @@ -65,18 +65,6 @@ func Pooling4DOpDescriptor_DescriptorWithKernelSizesPaddingStyle(kernelSizes []f return Pooling4DOpDescriptorClass.DescriptorWithKernelSizesPaddingStyle(kernelSizes, paddingStyle) } -func (pc _Pooling4DOpDescriptorClass) DescriptorWithKernelSizesStridesDilationRatesPaddingValuesPaddingStyle(kernelSizes []foundation.INumber, strides []foundation.INumber, dilationRates []foundation.INumber, paddingValues []foundation.INumber, paddingStyle PaddingStyle) Pooling4DOpDescriptor { - rv := objc.Call[Pooling4DOpDescriptor](pc, objc.Sel("descriptorWithKernelSizes:strides:dilationRates:paddingValues:paddingStyle:"), kernelSizes, strides, dilationRates, paddingValues, paddingStyle) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750699-descriptorwithkernelsizes?language=objc -func Pooling4DOpDescriptor_DescriptorWithKernelSizesStridesDilationRatesPaddingValuesPaddingStyle(kernelSizes []foundation.INumber, strides []foundation.INumber, dilationRates []foundation.INumber, paddingValues []foundation.INumber, paddingStyle PaddingStyle) Pooling4DOpDescriptor { - return Pooling4DOpDescriptorClass.DescriptorWithKernelSizesStridesDilationRatesPaddingValuesPaddingStyle(kernelSizes, strides, dilationRates, paddingValues, paddingStyle) -} - func (pc _Pooling4DOpDescriptorClass) Alloc() Pooling4DOpDescriptor { rv := objc.Call[Pooling4DOpDescriptor](pc, objc.Sel("alloc")) return rv @@ -99,62 +87,62 @@ func (p_ Pooling4DOpDescriptor) Init() Pooling4DOpDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750705-strides?language=objc -func (p_ Pooling4DOpDescriptor) Strides() []foundation.Number { - rv := objc.Call[[]foundation.Number](p_, objc.Sel("strides")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750703-paddingstyle?language=objc +func (p_ Pooling4DOpDescriptor) PaddingStyle() PaddingStyle { + rv := objc.Call[PaddingStyle](p_, objc.Sel("paddingStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750705-strides?language=objc -func (p_ Pooling4DOpDescriptor) SetStrides(value []foundation.INumber) { - objc.Call[objc.Void](p_, objc.Sel("setStrides:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750703-paddingstyle?language=objc +func (p_ Pooling4DOpDescriptor) SetPaddingStyle(value PaddingStyle) { + objc.Call[objc.Void](p_, objc.Sel("setPaddingStyle:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750701-includezeropadtoaverage?language=objc -func (p_ Pooling4DOpDescriptor) IncludeZeroPadToAverage() bool { - rv := objc.Call[bool](p_, objc.Sel("includeZeroPadToAverage")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750697-ceilmode?language=objc +func (p_ Pooling4DOpDescriptor) CeilMode() bool { + rv := objc.Call[bool](p_, objc.Sel("ceilMode")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750701-includezeropadtoaverage?language=objc -func (p_ Pooling4DOpDescriptor) SetIncludeZeroPadToAverage(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setIncludeZeroPadToAverage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750697-ceilmode?language=objc +func (p_ Pooling4DOpDescriptor) SetCeilMode(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setCeilMode:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3919746-returnindicesdatatype?language=objc -func (p_ Pooling4DOpDescriptor) ReturnIndicesDataType() mps.DataType { - rv := objc.Call[mps.DataType](p_, objc.Sel("returnIndicesDataType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750702-kernelsizes?language=objc +func (p_ Pooling4DOpDescriptor) KernelSizes() []foundation.Number { + rv := objc.Call[[]foundation.Number](p_, objc.Sel("kernelSizes")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3919746-returnindicesdatatype?language=objc -func (p_ Pooling4DOpDescriptor) SetReturnIndicesDataType(value mps.DataType) { - objc.Call[objc.Void](p_, objc.Sel("setReturnIndicesDataType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750702-kernelsizes?language=objc +func (p_ Pooling4DOpDescriptor) SetKernelSizes(value []foundation.INumber) { + objc.Call[objc.Void](p_, objc.Sel("setKernelSizes:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750702-kernelsizes?language=objc -func (p_ Pooling4DOpDescriptor) KernelSizes() []foundation.Number { - rv := objc.Call[[]foundation.Number](p_, objc.Sel("kernelSizes")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750704-paddingvalues?language=objc +func (p_ Pooling4DOpDescriptor) PaddingValues() []foundation.Number { + rv := objc.Call[[]foundation.Number](p_, objc.Sel("paddingValues")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750702-kernelsizes?language=objc -func (p_ Pooling4DOpDescriptor) SetKernelSizes(value []foundation.INumber) { - objc.Call[objc.Void](p_, objc.Sel("setKernelSizes:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750704-paddingvalues?language=objc +func (p_ Pooling4DOpDescriptor) SetPaddingValues(value []foundation.INumber) { + objc.Call[objc.Void](p_, objc.Sel("setPaddingValues:"), value) } // [Full Topic] @@ -174,60 +162,60 @@ func (p_ Pooling4DOpDescriptor) SetDilationRates(value []foundation.INumber) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750703-paddingstyle?language=objc -func (p_ Pooling4DOpDescriptor) PaddingStyle() PaddingStyle { - rv := objc.Call[PaddingStyle](p_, objc.Sel("paddingStyle")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3919747-returnindicesmode?language=objc +func (p_ Pooling4DOpDescriptor) ReturnIndicesMode() PoolingReturnIndicesMode { + rv := objc.Call[PoolingReturnIndicesMode](p_, objc.Sel("returnIndicesMode")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750703-paddingstyle?language=objc -func (p_ Pooling4DOpDescriptor) SetPaddingStyle(value PaddingStyle) { - objc.Call[objc.Void](p_, objc.Sel("setPaddingStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3919747-returnindicesmode?language=objc +func (p_ Pooling4DOpDescriptor) SetReturnIndicesMode(value PoolingReturnIndicesMode) { + objc.Call[objc.Void](p_, objc.Sel("setReturnIndicesMode:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750697-ceilmode?language=objc -func (p_ Pooling4DOpDescriptor) CeilMode() bool { - rv := objc.Call[bool](p_, objc.Sel("ceilMode")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3919746-returnindicesdatatype?language=objc +func (p_ Pooling4DOpDescriptor) ReturnIndicesDataType() mps.DataType { + rv := objc.Call[mps.DataType](p_, objc.Sel("returnIndicesDataType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750697-ceilmode?language=objc -func (p_ Pooling4DOpDescriptor) SetCeilMode(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setCeilMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3919746-returnindicesdatatype?language=objc +func (p_ Pooling4DOpDescriptor) SetReturnIndicesDataType(value mps.DataType) { + objc.Call[objc.Void](p_, objc.Sel("setReturnIndicesDataType:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750704-paddingvalues?language=objc -func (p_ Pooling4DOpDescriptor) PaddingValues() []foundation.Number { - rv := objc.Call[[]foundation.Number](p_, objc.Sel("paddingValues")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750701-includezeropadtoaverage?language=objc +func (p_ Pooling4DOpDescriptor) IncludeZeroPadToAverage() bool { + rv := objc.Call[bool](p_, objc.Sel("includeZeroPadToAverage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750704-paddingvalues?language=objc -func (p_ Pooling4DOpDescriptor) SetPaddingValues(value []foundation.INumber) { - objc.Call[objc.Void](p_, objc.Sel("setPaddingValues:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750701-includezeropadtoaverage?language=objc +func (p_ Pooling4DOpDescriptor) SetIncludeZeroPadToAverage(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setIncludeZeroPadToAverage:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3919747-returnindicesmode?language=objc -func (p_ Pooling4DOpDescriptor) ReturnIndicesMode() PoolingReturnIndicesMode { - rv := objc.Call[PoolingReturnIndicesMode](p_, objc.Sel("returnIndicesMode")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750705-strides?language=objc +func (p_ Pooling4DOpDescriptor) Strides() []foundation.Number { + rv := objc.Call[[]foundation.Number](p_, objc.Sel("strides")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3919747-returnindicesmode?language=objc -func (p_ Pooling4DOpDescriptor) SetReturnIndicesMode(value PoolingReturnIndicesMode) { - objc.Call[objc.Void](p_, objc.Sel("setReturnIndicesMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/3750705-strides?language=objc +func (p_ Pooling4DOpDescriptor) SetStrides(value []foundation.INumber) { + objc.Call[objc.Void](p_, objc.Sel("setStrides:"), value) } diff --git a/macos/mpsgraph/random_op_descriptor.gen.go b/macos/mpsgraph/random_op_descriptor.gen.go index 412eca92..18b594bd 100644 --- a/macos/mpsgraph/random_op_descriptor.gen.go +++ b/macos/mpsgraph/random_op_descriptor.gen.go @@ -19,24 +19,24 @@ type _RandomOpDescriptorClass struct { // An interface definition for the [RandomOpDescriptor] class. type IRandomOpDescriptor interface { objc.IObject - DataType() mps.DataType - SetDataType(value mps.DataType) - Mean() float32 - SetMean(value float32) - SamplingMethod() RandomNormalSamplingMethod - SetSamplingMethod(value RandomNormalSamplingMethod) + Distribution() RandomDistribution + SetDistribution(value RandomDistribution) MinInteger() int SetMinInteger(value int) Min() float32 SetMin(value float32) - Distribution() RandomDistribution - SetDistribution(value RandomDistribution) + Max() float32 + SetMax(value float32) StandardDeviation() float32 SetStandardDeviation(value float32) + DataType() mps.DataType + SetDataType(value mps.DataType) MaxInteger() int SetMaxInteger(value int) - Max() float32 - SetMax(value float32) + SamplingMethod() RandomNormalSamplingMethod + SetSamplingMethod(value RandomNormalSamplingMethod) + Mean() float32 + SetMean(value float32) } // [Full Topic] @@ -86,47 +86,17 @@ func (r_ RandomOpDescriptor) Init() RandomOpDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901498-datatype?language=objc -func (r_ RandomOpDescriptor) DataType() mps.DataType { - rv := objc.Call[mps.DataType](r_, objc.Sel("dataType")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901498-datatype?language=objc -func (r_ RandomOpDescriptor) SetDataType(value mps.DataType) { - objc.Call[objc.Void](r_, objc.Sel("setDataType:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901503-mean?language=objc -func (r_ RandomOpDescriptor) Mean() float32 { - rv := objc.Call[float32](r_, objc.Sel("mean")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901503-mean?language=objc -func (r_ RandomOpDescriptor) SetMean(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setMean:"), value) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901506-samplingmethod?language=objc -func (r_ RandomOpDescriptor) SamplingMethod() RandomNormalSamplingMethod { - rv := objc.Call[RandomNormalSamplingMethod](r_, objc.Sel("samplingMethod")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901500-distribution?language=objc +func (r_ RandomOpDescriptor) Distribution() RandomDistribution { + rv := objc.Call[RandomDistribution](r_, objc.Sel("distribution")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901506-samplingmethod?language=objc -func (r_ RandomOpDescriptor) SetSamplingMethod(value RandomNormalSamplingMethod) { - objc.Call[objc.Void](r_, objc.Sel("setSamplingMethod:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901500-distribution?language=objc +func (r_ RandomOpDescriptor) SetDistribution(value RandomDistribution) { + objc.Call[objc.Void](r_, objc.Sel("setDistribution:"), value) } // [Full Topic] @@ -161,17 +131,17 @@ func (r_ RandomOpDescriptor) SetMin(value float32) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901500-distribution?language=objc -func (r_ RandomOpDescriptor) Distribution() RandomDistribution { - rv := objc.Call[RandomDistribution](r_, objc.Sel("distribution")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901501-max?language=objc +func (r_ RandomOpDescriptor) Max() float32 { + rv := objc.Call[float32](r_, objc.Sel("max")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901500-distribution?language=objc -func (r_ RandomOpDescriptor) SetDistribution(value RandomDistribution) { - objc.Call[objc.Void](r_, objc.Sel("setDistribution:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901501-max?language=objc +func (r_ RandomOpDescriptor) SetMax(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setMax:"), value) } // [Full Topic] @@ -189,6 +159,21 @@ func (r_ RandomOpDescriptor) SetStandardDeviation(value float32) { objc.Call[objc.Void](r_, objc.Sel("setStandardDeviation:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901498-datatype?language=objc +func (r_ RandomOpDescriptor) DataType() mps.DataType { + rv := objc.Call[mps.DataType](r_, objc.Sel("dataType")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901498-datatype?language=objc +func (r_ RandomOpDescriptor) SetDataType(value mps.DataType) { + objc.Call[objc.Void](r_, objc.Sel("setDataType:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901502-maxinteger?language=objc @@ -206,15 +191,30 @@ func (r_ RandomOpDescriptor) SetMaxInteger(value int) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901501-max?language=objc -func (r_ RandomOpDescriptor) Max() float32 { - rv := objc.Call[float32](r_, objc.Sel("max")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901506-samplingmethod?language=objc +func (r_ RandomOpDescriptor) SamplingMethod() RandomNormalSamplingMethod { + rv := objc.Call[RandomNormalSamplingMethod](r_, objc.Sel("samplingMethod")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901501-max?language=objc -func (r_ RandomOpDescriptor) SetMax(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setMax:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901506-samplingmethod?language=objc +func (r_ RandomOpDescriptor) SetSamplingMethod(value RandomNormalSamplingMethod) { + objc.Call[objc.Void](r_, objc.Sel("setSamplingMethod:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901503-mean?language=objc +func (r_ RandomOpDescriptor) Mean() float32 { + rv := objc.Call[float32](r_, objc.Sel("mean")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901503-mean?language=objc +func (r_ RandomOpDescriptor) SetMean(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setMean:"), value) } diff --git a/macos/mpsgraph/shaped_type.gen.go b/macos/mpsgraph/shaped_type.gen.go index c8f69ef2..fd72e4fd 100644 --- a/macos/mpsgraph/shaped_type.gen.go +++ b/macos/mpsgraph/shaped_type.gen.go @@ -21,10 +21,10 @@ type _ShapedTypeClass struct { type IShapedType interface { IType IsEqualTo(object IShapedType) bool - DataType() mps.DataType - SetDataType(value mps.DataType) Shape() *foundation.Array SetShape(value *foundation.Array) + DataType() mps.DataType + SetDataType(value mps.DataType) } // [Full Topic] @@ -84,30 +84,30 @@ func (s_ ShapedType) IsEqualTo(object IShapedType) bool { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphshapedtype/3600279-datatype?language=objc -func (s_ ShapedType) DataType() mps.DataType { - rv := objc.Call[mps.DataType](s_, objc.Sel("dataType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphshapedtype/3600282-shape?language=objc +func (s_ ShapedType) Shape() *foundation.Array { + rv := objc.Call[*foundation.Array](s_, objc.Sel("shape")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphshapedtype/3600279-datatype?language=objc -func (s_ ShapedType) SetDataType(value mps.DataType) { - objc.Call[objc.Void](s_, objc.Sel("setDataType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphshapedtype/3600282-shape?language=objc +func (s_ ShapedType) SetShape(value *foundation.Array) { + objc.Call[objc.Void](s_, objc.Sel("setShape:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphshapedtype/3600282-shape?language=objc -func (s_ ShapedType) Shape() *foundation.Array { - rv := objc.Call[*foundation.Array](s_, objc.Sel("shape")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphshapedtype/3600279-datatype?language=objc +func (s_ ShapedType) DataType() mps.DataType { + rv := objc.Call[mps.DataType](s_, objc.Sel("dataType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphshapedtype/3600282-shape?language=objc -func (s_ ShapedType) SetShape(value *foundation.Array) { - objc.Call[objc.Void](s_, objc.Sel("setShape:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphshapedtype/3600279-datatype?language=objc +func (s_ ShapedType) SetDataType(value mps.DataType) { + objc.Call[objc.Void](s_, objc.Sel("setDataType:"), value) } diff --git a/macos/mpsgraph/single_gate_rnn_descriptor.gen.go b/macos/mpsgraph/single_gate_rnn_descriptor.gen.go index fc7d1722..2c3a4b6a 100644 --- a/macos/mpsgraph/single_gate_rnn_descriptor.gen.go +++ b/macos/mpsgraph/single_gate_rnn_descriptor.gen.go @@ -18,12 +18,12 @@ type _SingleGateRNNDescriptorClass struct { // An interface definition for the [SingleGateRNNDescriptor] class. type ISingleGateRNNDescriptor interface { objc.IObject - Bidirectional() bool - SetBidirectional(value bool) - Training() bool - SetTraining(value bool) Activation() RNNActivation SetActivation(value RNNActivation) + Training() bool + SetTraining(value bool) + Bidirectional() bool + SetBidirectional(value bool) Reverse() bool SetReverse(value bool) } @@ -75,17 +75,17 @@ func (s_ SingleGateRNNDescriptor) Init() SingleGateRNNDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphsinglegaternndescriptor/3919773-bidirectional?language=objc -func (s_ SingleGateRNNDescriptor) Bidirectional() bool { - rv := objc.Call[bool](s_, objc.Sel("bidirectional")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphsinglegaternndescriptor/3919772-activation?language=objc +func (s_ SingleGateRNNDescriptor) Activation() RNNActivation { + rv := objc.Call[RNNActivation](s_, objc.Sel("activation")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphsinglegaternndescriptor/3919773-bidirectional?language=objc -func (s_ SingleGateRNNDescriptor) SetBidirectional(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setBidirectional:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphsinglegaternndescriptor/3919772-activation?language=objc +func (s_ SingleGateRNNDescriptor) SetActivation(value RNNActivation) { + objc.Call[objc.Void](s_, objc.Sel("setActivation:"), value) } // [Full Topic] @@ -105,17 +105,17 @@ func (s_ SingleGateRNNDescriptor) SetTraining(value bool) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphsinglegaternndescriptor/3919772-activation?language=objc -func (s_ SingleGateRNNDescriptor) Activation() RNNActivation { - rv := objc.Call[RNNActivation](s_, objc.Sel("activation")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphsinglegaternndescriptor/3919773-bidirectional?language=objc +func (s_ SingleGateRNNDescriptor) Bidirectional() bool { + rv := objc.Call[bool](s_, objc.Sel("bidirectional")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphsinglegaternndescriptor/3919772-activation?language=objc -func (s_ SingleGateRNNDescriptor) SetActivation(value RNNActivation) { - objc.Call[objc.Void](s_, objc.Sel("setActivation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphsinglegaternndescriptor/3919773-bidirectional?language=objc +func (s_ SingleGateRNNDescriptor) SetBidirectional(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setBidirectional:"), value) } // [Full Topic] diff --git a/macos/mpsgraph/stencil_op_descriptor.gen.go b/macos/mpsgraph/stencil_op_descriptor.gen.go index e94227cb..ddd560bc 100644 --- a/macos/mpsgraph/stencil_op_descriptor.gen.go +++ b/macos/mpsgraph/stencil_op_descriptor.gen.go @@ -19,22 +19,22 @@ type _StencilOpDescriptorClass struct { // An interface definition for the [StencilOpDescriptor] class. type IStencilOpDescriptor interface { objc.IObject - Strides() *foundation.Array - SetStrides(value *foundation.Array) + PaddingConstant() float32 + SetPaddingConstant(value float32) + Offsets() *foundation.Array + SetOffsets(value *foundation.Array) PaddingStyle() PaddingStyle SetPaddingStyle(value PaddingStyle) + DilationRates() *foundation.Array + SetDilationRates(value *foundation.Array) ExplicitPadding() *foundation.Array SetExplicitPadding(value *foundation.Array) BoundaryMode() PaddingMode SetBoundaryMode(value PaddingMode) - PaddingConstant() float32 - SetPaddingConstant(value float32) - Offsets() *foundation.Array - SetOffsets(value *foundation.Array) ReductionMode() ReductionMode SetReductionMode(value ReductionMode) - DilationRates() *foundation.Array - SetDilationRates(value *foundation.Array) + Strides() *foundation.Array + SetStrides(value *foundation.Array) } // [Full Topic] @@ -62,28 +62,28 @@ func StencilOpDescriptor_DescriptorWithOffsetsExplicitPadding(offsets *foundatio return StencilOpDescriptorClass.DescriptorWithOffsetsExplicitPadding(offsets, explicitPadding) } -func (sc _StencilOpDescriptorClass) DescriptorWithReductionModeOffsetsStridesDilationRatesExplicitPaddingBoundaryModePaddingStylePaddingConstant(reductionMode ReductionMode, offsets *foundation.Array, strides *foundation.Array, dilationRates *foundation.Array, explicitPadding *foundation.Array, boundaryMode PaddingMode, paddingStyle PaddingStyle, paddingConstant float32) StencilOpDescriptor { - rv := objc.Call[StencilOpDescriptor](sc, objc.Sel("descriptorWithReductionMode:offsets:strides:dilationRates:explicitPadding:boundaryMode:paddingStyle:paddingConstant:"), reductionMode, offsets, strides, dilationRates, explicitPadding, boundaryMode, paddingStyle, paddingConstant) +func (sc _StencilOpDescriptorClass) DescriptorWithExplicitPadding(explicitPadding *foundation.Array) StencilOpDescriptor { + rv := objc.Call[StencilOpDescriptor](sc, objc.Sel("descriptorWithExplicitPadding:"), explicitPadding) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787611-descriptorwithreductionmode?language=objc -func StencilOpDescriptor_DescriptorWithReductionModeOffsetsStridesDilationRatesExplicitPaddingBoundaryModePaddingStylePaddingConstant(reductionMode ReductionMode, offsets *foundation.Array, strides *foundation.Array, dilationRates *foundation.Array, explicitPadding *foundation.Array, boundaryMode PaddingMode, paddingStyle PaddingStyle, paddingConstant float32) StencilOpDescriptor { - return StencilOpDescriptorClass.DescriptorWithReductionModeOffsetsStridesDilationRatesExplicitPaddingBoundaryModePaddingStylePaddingConstant(reductionMode, offsets, strides, dilationRates, explicitPadding, boundaryMode, paddingStyle, paddingConstant) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787608-descriptorwithexplicitpadding?language=objc +func StencilOpDescriptor_DescriptorWithExplicitPadding(explicitPadding *foundation.Array) StencilOpDescriptor { + return StencilOpDescriptorClass.DescriptorWithExplicitPadding(explicitPadding) } -func (sc _StencilOpDescriptorClass) DescriptorWithExplicitPadding(explicitPadding *foundation.Array) StencilOpDescriptor { - rv := objc.Call[StencilOpDescriptor](sc, objc.Sel("descriptorWithExplicitPadding:"), explicitPadding) +func (sc _StencilOpDescriptorClass) DescriptorWithReductionModeOffsetsStridesDilationRatesExplicitPaddingBoundaryModePaddingStylePaddingConstant(reductionMode ReductionMode, offsets *foundation.Array, strides *foundation.Array, dilationRates *foundation.Array, explicitPadding *foundation.Array, boundaryMode PaddingMode, paddingStyle PaddingStyle, paddingConstant float32) StencilOpDescriptor { + rv := objc.Call[StencilOpDescriptor](sc, objc.Sel("descriptorWithReductionMode:offsets:strides:dilationRates:explicitPadding:boundaryMode:paddingStyle:paddingConstant:"), reductionMode, offsets, strides, dilationRates, explicitPadding, boundaryMode, paddingStyle, paddingConstant) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787608-descriptorwithexplicitpadding?language=objc -func StencilOpDescriptor_DescriptorWithExplicitPadding(explicitPadding *foundation.Array) StencilOpDescriptor { - return StencilOpDescriptorClass.DescriptorWithExplicitPadding(explicitPadding) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787611-descriptorwithreductionmode?language=objc +func StencilOpDescriptor_DescriptorWithReductionModeOffsetsStridesDilationRatesExplicitPaddingBoundaryModePaddingStylePaddingConstant(reductionMode ReductionMode, offsets *foundation.Array, strides *foundation.Array, dilationRates *foundation.Array, explicitPadding *foundation.Array, boundaryMode PaddingMode, paddingStyle PaddingStyle, paddingConstant float32) StencilOpDescriptor { + return StencilOpDescriptorClass.DescriptorWithReductionModeOffsetsStridesDilationRatesExplicitPaddingBoundaryModePaddingStylePaddingConstant(reductionMode, offsets, strides, dilationRates, explicitPadding, boundaryMode, paddingStyle, paddingConstant) } func (sc _StencilOpDescriptorClass) DescriptorWithPaddingStyle(paddingStyle PaddingStyle) StencilOpDescriptor { @@ -120,92 +120,92 @@ func (s_ StencilOpDescriptor) Init() StencilOpDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787618-strides?language=objc -func (s_ StencilOpDescriptor) Strides() *foundation.Array { - rv := objc.Call[*foundation.Array](s_, objc.Sel("strides")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787615-paddingconstant?language=objc +func (s_ StencilOpDescriptor) PaddingConstant() float32 { + rv := objc.Call[float32](s_, objc.Sel("paddingConstant")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787618-strides?language=objc -func (s_ StencilOpDescriptor) SetStrides(value *foundation.Array) { - objc.Call[objc.Void](s_, objc.Sel("setStrides:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787615-paddingconstant?language=objc +func (s_ StencilOpDescriptor) SetPaddingConstant(value float32) { + objc.Call[objc.Void](s_, objc.Sel("setPaddingConstant:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787616-paddingstyle?language=objc -func (s_ StencilOpDescriptor) PaddingStyle() PaddingStyle { - rv := objc.Call[PaddingStyle](s_, objc.Sel("paddingStyle")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787614-offsets?language=objc +func (s_ StencilOpDescriptor) Offsets() *foundation.Array { + rv := objc.Call[*foundation.Array](s_, objc.Sel("offsets")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787616-paddingstyle?language=objc -func (s_ StencilOpDescriptor) SetPaddingStyle(value PaddingStyle) { - objc.Call[objc.Void](s_, objc.Sel("setPaddingStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787614-offsets?language=objc +func (s_ StencilOpDescriptor) SetOffsets(value *foundation.Array) { + objc.Call[objc.Void](s_, objc.Sel("setOffsets:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787613-explicitpadding?language=objc -func (s_ StencilOpDescriptor) ExplicitPadding() *foundation.Array { - rv := objc.Call[*foundation.Array](s_, objc.Sel("explicitPadding")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787616-paddingstyle?language=objc +func (s_ StencilOpDescriptor) PaddingStyle() PaddingStyle { + rv := objc.Call[PaddingStyle](s_, objc.Sel("paddingStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787613-explicitpadding?language=objc -func (s_ StencilOpDescriptor) SetExplicitPadding(value *foundation.Array) { - objc.Call[objc.Void](s_, objc.Sel("setExplicitPadding:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787616-paddingstyle?language=objc +func (s_ StencilOpDescriptor) SetPaddingStyle(value PaddingStyle) { + objc.Call[objc.Void](s_, objc.Sel("setPaddingStyle:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787607-boundarymode?language=objc -func (s_ StencilOpDescriptor) BoundaryMode() PaddingMode { - rv := objc.Call[PaddingMode](s_, objc.Sel("boundaryMode")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787612-dilationrates?language=objc +func (s_ StencilOpDescriptor) DilationRates() *foundation.Array { + rv := objc.Call[*foundation.Array](s_, objc.Sel("dilationRates")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787607-boundarymode?language=objc -func (s_ StencilOpDescriptor) SetBoundaryMode(value PaddingMode) { - objc.Call[objc.Void](s_, objc.Sel("setBoundaryMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787612-dilationrates?language=objc +func (s_ StencilOpDescriptor) SetDilationRates(value *foundation.Array) { + objc.Call[objc.Void](s_, objc.Sel("setDilationRates:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787615-paddingconstant?language=objc -func (s_ StencilOpDescriptor) PaddingConstant() float32 { - rv := objc.Call[float32](s_, objc.Sel("paddingConstant")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787613-explicitpadding?language=objc +func (s_ StencilOpDescriptor) ExplicitPadding() *foundation.Array { + rv := objc.Call[*foundation.Array](s_, objc.Sel("explicitPadding")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787615-paddingconstant?language=objc -func (s_ StencilOpDescriptor) SetPaddingConstant(value float32) { - objc.Call[objc.Void](s_, objc.Sel("setPaddingConstant:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787613-explicitpadding?language=objc +func (s_ StencilOpDescriptor) SetExplicitPadding(value *foundation.Array) { + objc.Call[objc.Void](s_, objc.Sel("setExplicitPadding:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787614-offsets?language=objc -func (s_ StencilOpDescriptor) Offsets() *foundation.Array { - rv := objc.Call[*foundation.Array](s_, objc.Sel("offsets")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787607-boundarymode?language=objc +func (s_ StencilOpDescriptor) BoundaryMode() PaddingMode { + rv := objc.Call[PaddingMode](s_, objc.Sel("boundaryMode")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787614-offsets?language=objc -func (s_ StencilOpDescriptor) SetOffsets(value *foundation.Array) { - objc.Call[objc.Void](s_, objc.Sel("setOffsets:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787607-boundarymode?language=objc +func (s_ StencilOpDescriptor) SetBoundaryMode(value PaddingMode) { + objc.Call[objc.Void](s_, objc.Sel("setBoundaryMode:"), value) } // [Full Topic] @@ -225,15 +225,15 @@ func (s_ StencilOpDescriptor) SetReductionMode(value ReductionMode) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787612-dilationrates?language=objc -func (s_ StencilOpDescriptor) DilationRates() *foundation.Array { - rv := objc.Call[*foundation.Array](s_, objc.Sel("dilationRates")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787618-strides?language=objc +func (s_ StencilOpDescriptor) Strides() *foundation.Array { + rv := objc.Call[*foundation.Array](s_, objc.Sel("strides")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787612-dilationrates?language=objc -func (s_ StencilOpDescriptor) SetDilationRates(value *foundation.Array) { - objc.Call[objc.Void](s_, objc.Sel("setDilationRates:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787618-strides?language=objc +func (s_ StencilOpDescriptor) SetStrides(value *foundation.Array) { + objc.Call[objc.Void](s_, objc.Sel("setStrides:"), value) } diff --git a/macos/mpsgraph/tensor.gen.go b/macos/mpsgraph/tensor.gen.go index e5d64879..6afb73cb 100644 --- a/macos/mpsgraph/tensor.gen.go +++ b/macos/mpsgraph/tensor.gen.go @@ -21,8 +21,8 @@ type _TensorClass struct { type ITensor interface { objc.IObject Shape() *foundation.Array - Operation() Operation DataType() mps.DataType + Operation() Operation } // [Full Topic] @@ -68,16 +68,16 @@ func (t_ Tensor) Shape() *foundation.Array { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensor/3564665-operation?language=objc -func (t_ Tensor) Operation() Operation { - rv := objc.Call[Operation](t_, objc.Sel("operation")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensor/3564663-datatype?language=objc +func (t_ Tensor) DataType() mps.DataType { + rv := objc.Call[mps.DataType](t_, objc.Sel("dataType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensor/3564663-datatype?language=objc -func (t_ Tensor) DataType() mps.DataType { - rv := objc.Call[mps.DataType](t_, objc.Sel("dataType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensor/3564665-operation?language=objc +func (t_ Tensor) Operation() Operation { + rv := objc.Call[Operation](t_, objc.Sel("operation")) return rv } diff --git a/macos/mpsgraph/tensor_data.gen.go b/macos/mpsgraph/tensor_data.gen.go index 4ee477ee..4b0e2732 100644 --- a/macos/mpsgraph/tensor_data.gen.go +++ b/macos/mpsgraph/tensor_data.gen.go @@ -40,30 +40,31 @@ func TensorDataFrom(ptr unsafe.Pointer) TensorData { } } -func (t_ TensorData) InitWithMPSImageBatch(imageBatch *foundation.Array) TensorData { - rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSImageBatch:"), imageBatch) +func (t_ TensorData) InitWithMTLBufferShapeDataType(buffer metal.PBuffer, shape *foundation.Array, dataType mps.DataType) TensorData { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + rv := objc.Call[TensorData](t_, objc.Sel("initWithMTLBuffer:shape:dataType:"), po0, shape, dataType) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensordata/3564672-initwithmpsimagebatch?language=objc -func NewTensorDataWithMPSImageBatch(imageBatch *foundation.Array) TensorData { - instance := TensorDataClass.Alloc().InitWithMPSImageBatch(imageBatch) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensordata/3564676-initwithmtlbuffer?language=objc +func NewTensorDataWithMTLBufferShapeDataType(buffer metal.PBuffer, shape *foundation.Array, dataType mps.DataType) TensorData { + instance := TensorDataClass.Alloc().InitWithMTLBufferShapeDataType(buffer, shape, dataType) instance.Autorelease() return instance } -func (t_ TensorData) InitWithMPSVector(vector mps.IVector) TensorData { - rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSVector:"), vector) +func (t_ TensorData) InitWithMPSImageBatch(imageBatch *foundation.Array) TensorData { + rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSImageBatch:"), imageBatch) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensordata/3564675-initwithmpsvector?language=objc -func NewTensorDataWithMPSVector(vector mps.IVector) TensorData { - instance := TensorDataClass.Alloc().InitWithMPSVector(vector) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensordata/3564672-initwithmpsimagebatch?language=objc +func NewTensorDataWithMPSImageBatch(imageBatch *foundation.Array) TensorData { + instance := TensorDataClass.Alloc().InitWithMPSImageBatch(imageBatch) instance.Autorelease() return instance } @@ -82,21 +83,6 @@ func NewTensorDataWithMPSMatrix(matrix mps.IMatrix) TensorData { return instance } -func (t_ TensorData) InitWithMTLBufferShapeDataType(buffer metal.PBuffer, shape *foundation.Array, dataType mps.DataType) TensorData { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[TensorData](t_, objc.Sel("initWithMTLBuffer:shape:dataType:"), po0, shape, dataType) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensordata/3564676-initwithmtlbuffer?language=objc -func NewTensorDataWithMTLBufferShapeDataType(buffer metal.PBuffer, shape *foundation.Array, dataType mps.DataType) TensorData { - instance := TensorDataClass.Alloc().InitWithMTLBufferShapeDataType(buffer, shape, dataType) - instance.Autorelease() - return instance -} - func (t_ TensorData) InitWithDeviceDataShapeDataType(device IDevice, data []byte, shape *foundation.Array, dataType mps.DataType) TensorData { rv := objc.Call[TensorData](t_, objc.Sel("initWithDevice:data:shape:dataType:"), device, data, shape, dataType) return rv @@ -111,35 +97,6 @@ func NewTensorDataWithDeviceDataShapeDataType(device IDevice, data []byte, shape return instance } -func (t_ TensorData) InitWithMTLBufferShapeDataTypeRowBytes(buffer metal.PBuffer, shape *foundation.Array, dataType mps.DataType, rowBytes uint) TensorData { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[TensorData](t_, objc.Sel("initWithMTLBuffer:shape:dataType:rowBytes:"), po0, shape, dataType, rowBytes) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensordata/3925447-initwithmtlbuffer?language=objc -func NewTensorDataWithMTLBufferShapeDataTypeRowBytes(buffer metal.PBuffer, shape *foundation.Array, dataType mps.DataType, rowBytes uint) TensorData { - instance := TensorDataClass.Alloc().InitWithMTLBufferShapeDataTypeRowBytes(buffer, shape, dataType, rowBytes) - instance.Autorelease() - return instance -} - -func (t_ TensorData) InitWithMPSMatrixRank(matrix mps.IMatrix, rank uint) TensorData { - rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSMatrix:rank:"), matrix, rank) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensordata/3667507-initwithmpsmatrix?language=objc -func NewTensorDataWithMPSMatrixRank(matrix mps.IMatrix, rank uint) TensorData { - instance := TensorDataClass.Alloc().InitWithMPSMatrixRank(matrix, rank) - instance.Autorelease() - return instance -} - func (t_ TensorData) InitWithMPSNDArray(ndarray mps.INDArray) TensorData { rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSNDArray:"), ndarray) return rv @@ -154,16 +111,16 @@ func NewTensorDataWithMPSNDArray(ndarray mps.INDArray) TensorData { return instance } -func (t_ TensorData) InitWithMPSVectorRank(vector mps.IVector, rank uint) TensorData { - rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSVector:rank:"), vector, rank) +func (t_ TensorData) InitWithMPSVector(vector mps.IVector) TensorData { + rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSVector:"), vector) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensordata/3667508-initwithmpsvector?language=objc -func NewTensorDataWithMPSVectorRank(vector mps.IVector, rank uint) TensorData { - instance := TensorDataClass.Alloc().InitWithMPSVectorRank(vector, rank) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphtensordata/3564675-initwithmpsvector?language=objc +func NewTensorDataWithMPSVector(vector mps.IVector) TensorData { + instance := TensorDataClass.Alloc().InitWithMPSVector(vector) instance.Autorelease() return instance } diff --git a/macos/mpsgraph/variable_op.gen.go b/macos/mpsgraph/variable_op.gen.go index a8390468..b45d69aa 100644 --- a/macos/mpsgraph/variable_op.gen.go +++ b/macos/mpsgraph/variable_op.gen.go @@ -20,8 +20,8 @@ type _VariableOpClass struct { // An interface definition for the [VariableOp] class. type IVariableOp interface { IOperation - DataType() mps.DataType Shape() *foundation.Array + DataType() mps.DataType } // [Full Topic] @@ -59,16 +59,16 @@ func (v_ VariableOp) Init() VariableOp { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphvariableop/3564693-datatype?language=objc -func (v_ VariableOp) DataType() mps.DataType { - rv := objc.Call[mps.DataType](v_, objc.Sel("dataType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphvariableop/3564695-shape?language=objc +func (v_ VariableOp) Shape() *foundation.Array { + rv := objc.Call[*foundation.Array](v_, objc.Sel("shape")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphvariableop/3564695-shape?language=objc -func (v_ VariableOp) Shape() *foundation.Array { - rv := objc.Call[*foundation.Array](v_, objc.Sel("shape")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphvariableop/3564693-datatype?language=objc +func (v_ VariableOp) DataType() mps.DataType { + rv := objc.Call[mps.DataType](v_, objc.Sel("dataType")) return rv } diff --git a/macos/quartz/camera_device_view.gen.go b/macos/quartz/camera_device_view.gen.go index 1a076850..40bc57e7 100644 --- a/macos/quartz/camera_device_view.gen.go +++ b/macos/quartz/camera_device_view.gen.go @@ -20,46 +20,46 @@ type _CameraDeviceViewClass struct { // An interface definition for the [CameraDeviceView] class. type ICameraDeviceView interface { appkit.IView - SelectedIndexes() foundation.IndexSet - SetCustomDeleteControl(control appkit.ISegmentedControl) - RotateRight(sender objc.IObject) objc.Object - DownloadSelectedItems(sender objc.IObject) objc.Object - SetCustomRotateControl(control appkit.ISegmentedControl) SetShowStatusInfoAsWindowSubtitle(value bool) - DownloadAllItems(sender objc.IObject) objc.Object + RotateRight(sender objc.IObject) objc.Object SelectIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) - SetCustomIconSizeSlider(slider appkit.ISlider) - SetCustomActionControl(control appkit.ISegmentedControl) - DeleteSelectedItems(sender objc.IObject) objc.Object SetCustomModeControl(control appkit.ISegmentedControl) + DownloadAllItems(sender objc.IObject) objc.Object + SetCustomActionControl(control appkit.ISegmentedControl) RotateLeft(sender objc.IObject) objc.Object - CanDownloadSelectedItems() bool - Mode() CameraDeviceViewDisplayMode - SetMode(value CameraDeviceViewDisplayMode) + DeleteSelectedItems(sender objc.IObject) objc.Object + SetCustomDeleteControl(control appkit.ISegmentedControl) + SetCustomIconSizeSlider(slider appkit.ISlider) + SetCustomRotateControl(control appkit.ISegmentedControl) + SelectedIndexes() foundation.IndexSet + DownloadSelectedItems(sender objc.IObject) objc.Object + DownloadsDirectory() foundation.URL + SetDownloadsDirectory(value foundation.IURL) DownloadSelectedControlLabel() string SetDownloadSelectedControlLabel(value string) - HasDisplayModeIcon() bool - SetHasDisplayModeIcon(value bool) - Delegate() CameraDeviceViewDelegateObject - SetDelegate(value PCameraDeviceViewDelegate) - SetDelegateObject(valueObject objc.IObject) - CanRotateSelectedItemsRight() bool - PostProcessApplication() foundation.URL - SetPostProcessApplication(value foundation.IURL) + DisplaysDownloadsDirectoryControl() bool + SetDisplaysDownloadsDirectoryControl(value bool) + CanDownloadSelectedItems() bool CanRotateSelectedItemsLeft() bool DisplaysPostProcessApplicationControl() bool SetDisplaysPostProcessApplicationControl(value bool) - DisplaysDownloadsDirectoryControl() bool - SetDisplaysDownloadsDirectoryControl(value bool) - TransferMode() CameraDeviceViewTransferMode - SetTransferMode(value CameraDeviceViewTransferMode) DownloadAllControlLabel() string SetDownloadAllControlLabel(value string) IconSize() uint SetIconSize(value uint) + TransferMode() CameraDeviceViewTransferMode + SetTransferMode(value CameraDeviceViewTransferMode) + Delegate() CameraDeviceViewDelegateObject + SetDelegate(value PCameraDeviceViewDelegate) + SetDelegateObject(valueObject objc.IObject) + PostProcessApplication() foundation.URL + SetPostProcessApplication(value foundation.IURL) + HasDisplayModeIcon() bool + SetHasDisplayModeIcon(value bool) + Mode() CameraDeviceViewDisplayMode + SetMode(value CameraDeviceViewDisplayMode) + CanRotateSelectedItemsRight() bool CanDeleteSelectedItems() bool - DownloadsDirectory() foundation.URL - SetDownloadsDirectory(value foundation.IURL) HasDisplayModeTable() bool SetHasDisplayModeTable(value bool) } @@ -111,19 +111,11 @@ func NewCameraDeviceViewWithFrame(frameRect foundation.Rect) CameraDeviceView { return instance } -// The selected indexes of the camera files. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504546-selectedindexes?language=objc -func (c_ CameraDeviceView) SelectedIndexes() foundation.IndexSet { - rv := objc.Call[foundation.IndexSet](c_, objc.Sel("selectedIndexes")) - return rv -} - // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852624-setcustomdeletecontrol?language=objc -func (c_ CameraDeviceView) SetCustomDeleteControl(control appkit.ISegmentedControl) { - objc.Call[objc.Void](c_, objc.Sel("setCustomDeleteControl:"), control) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852628-setshowstatusinfoaswindowsubtitl?language=objc +func (c_ CameraDeviceView) SetShowStatusInfoAsWindowSubtitle(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setShowStatusInfoAsWindowSubtitle:"), value) } // Rotates the selected image to the right. [Full Topic] @@ -134,26 +126,18 @@ func (c_ CameraDeviceView) RotateRight(sender objc.IObject) objc.Object { return rv } -// Deletes the selected items from the camera. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504833-downloadselecteditems?language=objc -func (c_ CameraDeviceView) DownloadSelectedItems(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("downloadSelectedItems:"), sender) - return rv -} - -// [Full Topic] +// Invoked to select the specified files, extending the selection if specified. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852627-setcustomrotatecontrol?language=objc -func (c_ CameraDeviceView) SetCustomRotateControl(control appkit.ISegmentedControl) { - objc.Call[objc.Void](c_, objc.Sel("setCustomRotateControl:"), control) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503804-selectindexes?language=objc +func (c_ CameraDeviceView) SelectIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) { + objc.Call[objc.Void](c_, objc.Sel("selectIndexes:byExtendingSelection:"), indexes, extend) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852628-setshowstatusinfoaswindowsubtitl?language=objc -func (c_ CameraDeviceView) SetShowStatusInfoAsWindowSubtitle(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setShowStatusInfoAsWindowSubtitle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852626-setcustommodecontrol?language=objc +func (c_ CameraDeviceView) SetCustomModeControl(control appkit.ISegmentedControl) { + objc.Call[objc.Void](c_, objc.Sel("setCustomModeControl:"), control) } // Downloads all the items. [Full Topic] @@ -164,20 +148,6 @@ func (c_ CameraDeviceView) DownloadAllItems(sender objc.IObject) objc.Object { return rv } -// Invoked to select the specified files, extending the selection if specified. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503804-selectindexes?language=objc -func (c_ CameraDeviceView) SelectIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) { - objc.Call[objc.Void](c_, objc.Sel("selectIndexes:byExtendingSelection:"), indexes, extend) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852625-setcustomiconsizeslider?language=objc -func (c_ CameraDeviceView) SetCustomIconSizeSlider(slider appkit.ISlider) { - objc.Call[objc.Void](c_, objc.Sel("setCustomIconSizeSlider:"), slider) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852623-setcustomactioncontrol?language=objc @@ -185,6 +155,14 @@ func (c_ CameraDeviceView) SetCustomActionControl(control appkit.ISegmentedContr objc.Call[objc.Void](c_, objc.Sel("setCustomActionControl:"), control) } +// Rotates the selected image to the left. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503662-rotateleft?language=objc +func (c_ CameraDeviceView) RotateLeft(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("rotateLeft:"), sender) + return rv +} + // Deletes the currently selected items. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504333-deleteselecteditems?language=objc @@ -195,40 +173,54 @@ func (c_ CameraDeviceView) DeleteSelectedItems(sender objc.IObject) objc.Object // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852626-setcustommodecontrol?language=objc -func (c_ CameraDeviceView) SetCustomModeControl(control appkit.ISegmentedControl) { - objc.Call[objc.Void](c_, objc.Sel("setCustomModeControl:"), control) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852624-setcustomdeletecontrol?language=objc +func (c_ CameraDeviceView) SetCustomDeleteControl(control appkit.ISegmentedControl) { + objc.Call[objc.Void](c_, objc.Sel("setCustomDeleteControl:"), control) } -// Rotates the selected image to the left. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503662-rotateleft?language=objc -func (c_ CameraDeviceView) RotateLeft(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("rotateLeft:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852625-setcustomiconsizeslider?language=objc +func (c_ CameraDeviceView) SetCustomIconSizeSlider(slider appkit.ISlider) { + objc.Call[objc.Void](c_, objc.Sel("setCustomIconSizeSlider:"), slider) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852627-setcustomrotatecontrol?language=objc +func (c_ CameraDeviceView) SetCustomRotateControl(control appkit.ISegmentedControl) { + objc.Call[objc.Void](c_, objc.Sel("setCustomRotateControl:"), control) +} + +// The selected indexes of the camera files. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504546-selectedindexes?language=objc +func (c_ CameraDeviceView) SelectedIndexes() foundation.IndexSet { + rv := objc.Call[foundation.IndexSet](c_, objc.Sel("selectedIndexes")) return rv } -// Returns whether the selected items can be downloaded [Full Topic] +// Deletes the selected items from the camera. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504639-candownloadselecteditems?language=objc -func (c_ CameraDeviceView) CanDownloadSelectedItems() bool { - rv := objc.Call[bool](c_, objc.Sel("canDownloadSelectedItems")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504833-downloadselecteditems?language=objc +func (c_ CameraDeviceView) DownloadSelectedItems(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("downloadSelectedItems:"), sender) return rv } -// Specifies the display mode of the camera device view. [Full Topic] +// Specifies the directory where files are downloaded [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504881-mode?language=objc -func (c_ CameraDeviceView) Mode() CameraDeviceViewDisplayMode { - rv := objc.Call[CameraDeviceViewDisplayMode](c_, objc.Sel("mode")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503702-downloadsdirectory?language=objc +func (c_ CameraDeviceView) DownloadsDirectory() foundation.URL { + rv := objc.Call[foundation.URL](c_, objc.Sel("downloadsDirectory")) return rv } -// Specifies the display mode of the camera device view. [Full Topic] +// Specifies the directory where files are downloaded [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504881-mode?language=objc -func (c_ CameraDeviceView) SetMode(value CameraDeviceViewDisplayMode) { - objc.Call[objc.Void](c_, objc.Sel("setMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503702-downloadsdirectory?language=objc +func (c_ CameraDeviceView) SetDownloadsDirectory(value foundation.IURL) { + objc.Call[objc.Void](c_, objc.Sel("setDownloadsDirectory:"), value) } // Allows the “Download Selected” control to be renamed. [Full Topic] @@ -246,67 +238,29 @@ func (c_ CameraDeviceView) SetDownloadSelectedControlLabel(value string) { objc.Call[objc.Void](c_, objc.Sel("setDownloadSelectedControlLabel:"), value) } -// Returns whether the device view is being displayed in icon mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504417-hasdisplaymodeicon?language=objc -func (c_ CameraDeviceView) HasDisplayModeIcon() bool { - rv := objc.Call[bool](c_, objc.Sel("hasDisplayModeIcon")) - return rv -} - -// Returns whether the device view is being displayed in icon mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504417-hasdisplaymodeicon?language=objc -func (c_ CameraDeviceView) SetHasDisplayModeIcon(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setHasDisplayModeIcon:"), value) -} - -// The camera device view delegate. [Full Topic] +// Specifies whether the downloads directory control should be displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504315-delegate?language=objc -func (c_ CameraDeviceView) Delegate() CameraDeviceViewDelegateObject { - rv := objc.Call[CameraDeviceViewDelegateObject](c_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1505006-displaysdownloadsdirectorycontro?language=objc +func (c_ CameraDeviceView) DisplaysDownloadsDirectoryControl() bool { + rv := objc.Call[bool](c_, objc.Sel("displaysDownloadsDirectoryControl")) return rv } -// The camera device view delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504315-delegate?language=objc -func (c_ CameraDeviceView) SetDelegate(value PCameraDeviceViewDelegate) { - po0 := objc.WrapAsProtocol("IKCameraDeviceViewDelegate", value) - objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), po0) -} - -// The camera device view delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504315-delegate?language=objc -func (c_ CameraDeviceView) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), valueObject) -} - -// Returns whether the selected items can be rotated right. [Full Topic] +// Specifies whether the downloads directory control should be displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503525-canrotateselecteditemsright?language=objc -func (c_ CameraDeviceView) CanRotateSelectedItemsRight() bool { - rv := objc.Call[bool](c_, objc.Sel("canRotateSelectedItemsRight")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1505006-displaysdownloadsdirectorycontro?language=objc +func (c_ CameraDeviceView) SetDisplaysDownloadsDirectoryControl(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setDisplaysDownloadsDirectoryControl:"), value) } -// The URL of the application used to post process the image. [Full Topic] +// Returns whether the selected items can be downloaded [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504227-postprocessapplication?language=objc -func (c_ CameraDeviceView) PostProcessApplication() foundation.URL { - rv := objc.Call[foundation.URL](c_, objc.Sel("postProcessApplication")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504639-candownloadselecteditems?language=objc +func (c_ CameraDeviceView) CanDownloadSelectedItems() bool { + rv := objc.Call[bool](c_, objc.Sel("canDownloadSelectedItems")) return rv } -// The URL of the application used to post process the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504227-postprocessapplication?language=objc -func (c_ CameraDeviceView) SetPostProcessApplication(value foundation.IURL) { - objc.Call[objc.Void](c_, objc.Sel("setPostProcessApplication:"), value) -} - // Returns whether the selected items can be rotated left. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503947-canrotateselecteditemsleft?language=objc @@ -330,19 +284,34 @@ func (c_ CameraDeviceView) SetDisplaysPostProcessApplicationControl(value bool) objc.Call[objc.Void](c_, objc.Sel("setDisplaysPostProcessApplicationControl:"), value) } -// Specifies whether the downloads directory control should be displayed. [Full Topic] +// Allows the “Download All” control to be renamed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1505006-displaysdownloadsdirectorycontro?language=objc -func (c_ CameraDeviceView) DisplaysDownloadsDirectoryControl() bool { - rv := objc.Call[bool](c_, objc.Sel("displaysDownloadsDirectoryControl")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504281-downloadallcontrollabel?language=objc +func (c_ CameraDeviceView) DownloadAllControlLabel() string { + rv := objc.Call[string](c_, objc.Sel("downloadAllControlLabel")) return rv } -// Specifies whether the downloads directory control should be displayed. [Full Topic] +// Allows the “Download All” control to be renamed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1505006-displaysdownloadsdirectorycontro?language=objc -func (c_ CameraDeviceView) SetDisplaysDownloadsDirectoryControl(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setDisplaysDownloadsDirectoryControl:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504281-downloadallcontrollabel?language=objc +func (c_ CameraDeviceView) SetDownloadAllControlLabel(value string) { + objc.Call[objc.Void](c_, objc.Sel("setDownloadAllControlLabel:"), value) +} + +// Specifies the icon size. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504002-iconsize?language=objc +func (c_ CameraDeviceView) IconSize() uint { + rv := objc.Call[uint](c_, objc.Sel("iconSize")) + return rv +} + +// Specifies the icon size. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504002-iconsize?language=objc +func (c_ CameraDeviceView) SetIconSize(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setIconSize:"), value) } // Determines how the contents are saved by the delegate. [Full Topic] @@ -360,57 +329,88 @@ func (c_ CameraDeviceView) SetTransferMode(value CameraDeviceViewTransferMode) { objc.Call[objc.Void](c_, objc.Sel("setTransferMode:"), value) } -// Allows the “Download All” control to be renamed. [Full Topic] +// The camera device view delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504281-downloadallcontrollabel?language=objc -func (c_ CameraDeviceView) DownloadAllControlLabel() string { - rv := objc.Call[string](c_, objc.Sel("downloadAllControlLabel")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504315-delegate?language=objc +func (c_ CameraDeviceView) Delegate() CameraDeviceViewDelegateObject { + rv := objc.Call[CameraDeviceViewDelegateObject](c_, objc.Sel("delegate")) return rv } -// Allows the “Download All” control to be renamed. [Full Topic] +// The camera device view delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504281-downloadallcontrollabel?language=objc -func (c_ CameraDeviceView) SetDownloadAllControlLabel(value string) { - objc.Call[objc.Void](c_, objc.Sel("setDownloadAllControlLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504315-delegate?language=objc +func (c_ CameraDeviceView) SetDelegate(value PCameraDeviceViewDelegate) { + po0 := objc.WrapAsProtocol("IKCameraDeviceViewDelegate", value) + objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), po0) } -// Specifies the icon size. [Full Topic] +// The camera device view delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504002-iconsize?language=objc -func (c_ CameraDeviceView) IconSize() uint { - rv := objc.Call[uint](c_, objc.Sel("iconSize")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504315-delegate?language=objc +func (c_ CameraDeviceView) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), valueObject) +} + +// The URL of the application used to post process the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504227-postprocessapplication?language=objc +func (c_ CameraDeviceView) PostProcessApplication() foundation.URL { + rv := objc.Call[foundation.URL](c_, objc.Sel("postProcessApplication")) return rv } -// Specifies the icon size. [Full Topic] +// The URL of the application used to post process the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504002-iconsize?language=objc -func (c_ CameraDeviceView) SetIconSize(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setIconSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504227-postprocessapplication?language=objc +func (c_ CameraDeviceView) SetPostProcessApplication(value foundation.IURL) { + objc.Call[objc.Void](c_, objc.Sel("setPostProcessApplication:"), value) } -// Returns whether the selected items can be deleted. [Full Topic] +// Returns whether the device view is being displayed in icon mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504949-candeleteselecteditems?language=objc -func (c_ CameraDeviceView) CanDeleteSelectedItems() bool { - rv := objc.Call[bool](c_, objc.Sel("canDeleteSelectedItems")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504417-hasdisplaymodeicon?language=objc +func (c_ CameraDeviceView) HasDisplayModeIcon() bool { + rv := objc.Call[bool](c_, objc.Sel("hasDisplayModeIcon")) return rv } -// Specifies the directory where files are downloaded [Full Topic] +// Returns whether the device view is being displayed in icon mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503702-downloadsdirectory?language=objc -func (c_ CameraDeviceView) DownloadsDirectory() foundation.URL { - rv := objc.Call[foundation.URL](c_, objc.Sel("downloadsDirectory")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504417-hasdisplaymodeicon?language=objc +func (c_ CameraDeviceView) SetHasDisplayModeIcon(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setHasDisplayModeIcon:"), value) +} + +// Specifies the display mode of the camera device view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504881-mode?language=objc +func (c_ CameraDeviceView) Mode() CameraDeviceViewDisplayMode { + rv := objc.Call[CameraDeviceViewDisplayMode](c_, objc.Sel("mode")) return rv } -// Specifies the directory where files are downloaded [Full Topic] +// Specifies the display mode of the camera device view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503702-downloadsdirectory?language=objc -func (c_ CameraDeviceView) SetDownloadsDirectory(value foundation.IURL) { - objc.Call[objc.Void](c_, objc.Sel("setDownloadsDirectory:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504881-mode?language=objc +func (c_ CameraDeviceView) SetMode(value CameraDeviceViewDisplayMode) { + objc.Call[objc.Void](c_, objc.Sel("setMode:"), value) +} + +// Returns whether the selected items can be rotated right. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1503525-canrotateselecteditemsright?language=objc +func (c_ CameraDeviceView) CanRotateSelectedItemsRight() bool { + rv := objc.Call[bool](c_, objc.Sel("canRotateSelectedItemsRight")) + return rv +} + +// Returns whether the selected items can be deleted. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504949-candeleteselecteditems?language=objc +func (c_ CameraDeviceView) CanDeleteSelectedItems() bool { + rv := objc.Call[bool](c_, objc.Sel("canDeleteSelectedItems")) + return rv } // Returns whether the device view is being displayed in table mode. [Full Topic] diff --git a/macos/quartz/camera_device_view_delegate.gen.go b/macos/quartz/camera_device_view_delegate.gen.go index bd9b4db5..9f229bfe 100644 --- a/macos/quartz/camera_device_view_delegate.gen.go +++ b/macos/quartz/camera_device_view_delegate.gen.go @@ -15,10 +15,6 @@ type PCameraDeviceViewDelegate interface { CameraDeviceViewDidEncounterError(cameraDeviceView CameraDeviceView, error foundation.Error) HasCameraDeviceViewDidEncounterError() bool - // optional - CameraDeviceViewDidDownloadFileLocationFileDataError(cameraDeviceView CameraDeviceView, file objc.Object, url foundation.URL, data []byte, error foundation.Error) - HasCameraDeviceViewDidDownloadFileLocationFileDataError() bool - // optional CameraDeviceViewSelectionDidChange(cameraDeviceView CameraDeviceView) HasCameraDeviceViewSelectionDidChange() bool @@ -26,9 +22,8 @@ type PCameraDeviceViewDelegate interface { // A delegate implementation builder for the [PCameraDeviceViewDelegate] protocol. type CameraDeviceViewDelegate struct { - _CameraDeviceViewDidEncounterError func(cameraDeviceView CameraDeviceView, error foundation.Error) - _CameraDeviceViewDidDownloadFileLocationFileDataError func(cameraDeviceView CameraDeviceView, file objc.Object, url foundation.URL, data []byte, error foundation.Error) - _CameraDeviceViewSelectionDidChange func(cameraDeviceView CameraDeviceView) + _CameraDeviceViewDidEncounterError func(cameraDeviceView CameraDeviceView, error foundation.Error) + _CameraDeviceViewSelectionDidChange func(cameraDeviceView CameraDeviceView) } func (di *CameraDeviceViewDelegate) HasCameraDeviceViewDidEncounterError() bool { @@ -48,23 +43,6 @@ func (di *CameraDeviceViewDelegate) SetCameraDeviceViewDidEncounterError(f func( func (di *CameraDeviceViewDelegate) CameraDeviceViewDidEncounterError(cameraDeviceView CameraDeviceView, error foundation.Error) { di._CameraDeviceViewDidEncounterError(cameraDeviceView, error) } -func (di *CameraDeviceViewDelegate) HasCameraDeviceViewDidDownloadFileLocationFileDataError() bool { - return di._CameraDeviceViewDidDownloadFileLocationFileDataError != nil -} - -// Invoked for each file that is downloaded from the camera device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceviewdelegate/1503524-cameradeviceview?language=objc -func (di *CameraDeviceViewDelegate) SetCameraDeviceViewDidDownloadFileLocationFileDataError(f func(cameraDeviceView CameraDeviceView, file objc.Object, url foundation.URL, data []byte, error foundation.Error)) { - di._CameraDeviceViewDidDownloadFileLocationFileDataError = f -} - -// Invoked for each file that is downloaded from the camera device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceviewdelegate/1503524-cameradeviceview?language=objc -func (di *CameraDeviceViewDelegate) CameraDeviceViewDidDownloadFileLocationFileDataError(cameraDeviceView CameraDeviceView, file objc.Object, url foundation.URL, data []byte, error foundation.Error) { - di._CameraDeviceViewDidDownloadFileLocationFileDataError(cameraDeviceView, file, url, data, error) -} func (di *CameraDeviceViewDelegate) HasCameraDeviceViewSelectionDidChange() bool { return di._CameraDeviceViewSelectionDidChange != nil } @@ -102,17 +80,6 @@ func (c_ CameraDeviceViewDelegateObject) CameraDeviceViewDidEncounterError(camer objc.Call[objc.Void](c_, objc.Sel("cameraDeviceView:didEncounterError:"), cameraDeviceView, error) } -func (c_ CameraDeviceViewDelegateObject) HasCameraDeviceViewDidDownloadFileLocationFileDataError() bool { - return c_.RespondsToSelector(objc.Sel("cameraDeviceView:didDownloadFile:location:fileData:error:")) -} - -// Invoked for each file that is downloaded from the camera device. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceviewdelegate/1503524-cameradeviceview?language=objc -func (c_ CameraDeviceViewDelegateObject) CameraDeviceViewDidDownloadFileLocationFileDataError(cameraDeviceView CameraDeviceView, file objc.Object, url foundation.URL, data []byte, error foundation.Error) { - objc.Call[objc.Void](c_, objc.Sel("cameraDeviceView:didDownloadFile:location:fileData:error:"), cameraDeviceView, file, url, data, error) -} - func (c_ CameraDeviceViewDelegateObject) HasCameraDeviceViewSelectionDidChange() bool { return c_.RespondsToSelector(objc.Sel("cameraDeviceViewSelectionDidChange:")) } diff --git a/macos/quartz/composition_layer.gen.go b/macos/quartz/composition_layer.gen.go index 24b0ca3b..9588d36e 100644 --- a/macos/quartz/composition_layer.gen.go +++ b/macos/quartz/composition_layer.gen.go @@ -54,56 +54,56 @@ func (c_ CompositionLayer) Init() CompositionLayer { return rv } -func (c_ CompositionLayer) ModelLayer() CompositionLayer { - rv := objc.Call[CompositionLayer](c_, objc.Sel("modelLayer")) +func (cc _CompositionLayerClass) Layer() CompositionLayer { + rv := objc.Call[CompositionLayer](cc, objc.Sel("layer")) return rv } -// Returns the model layer object associated with the receiver, if any. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc -func CompositionLayer_ModelLayer() CompositionLayer { - instance := CompositionLayerClass.Alloc().ModelLayer() - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func CompositionLayer_Layer() CompositionLayer { + return CompositionLayerClass.Layer() } -func (c_ CompositionLayer) PresentationLayer() CompositionLayer { - rv := objc.Call[CompositionLayer](c_, objc.Sel("presentationLayer")) +func (c_ CompositionLayer) InitWithLayer(layer objc.IObject) CompositionLayer { + rv := objc.Call[CompositionLayer](c_, objc.Sel("initWithLayer:"), layer) return rv } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] +// Override to copy or initialize custom fields of the specified layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc -func CompositionLayer_PresentationLayer() CompositionLayer { - instance := CompositionLayerClass.Alloc().PresentationLayer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewCompositionLayerWithLayer(layer objc.IObject) CompositionLayer { + instance := CompositionLayerClass.Alloc().InitWithLayer(layer) instance.Autorelease() return instance } -func (c_ CompositionLayer) InitWithLayer(layer objc.IObject) CompositionLayer { - rv := objc.Call[CompositionLayer](c_, objc.Sel("initWithLayer:"), layer) +func (c_ CompositionLayer) ModelLayer() CompositionLayer { + rv := objc.Call[CompositionLayer](c_, objc.Sel("modelLayer")) return rv } -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewCompositionLayerWithLayer(layer objc.IObject) CompositionLayer { - instance := CompositionLayerClass.Alloc().InitWithLayer(layer) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc +func CompositionLayer_ModelLayer() CompositionLayer { + instance := CompositionLayerClass.Alloc().ModelLayer() instance.Autorelease() return instance } -func (cc _CompositionLayerClass) Layer() CompositionLayer { - rv := objc.Call[CompositionLayer](cc, objc.Sel("layer")) +func (c_ CompositionLayer) PresentationLayer() CompositionLayer { + rv := objc.Call[CompositionLayer](c_, objc.Sel("presentationLayer")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func CompositionLayer_Layer() CompositionLayer { - return CompositionLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc +func CompositionLayer_PresentationLayer() CompositionLayer { + instance := CompositionLayerClass.Alloc().PresentationLayer() + instance.Autorelease() + return instance } diff --git a/macos/quartz/composition_picker_panel.gen.go b/macos/quartz/composition_picker_panel.gen.go index 91f8b0f3..5064da17 100644 --- a/macos/quartz/composition_picker_panel.gen.go +++ b/macos/quartz/composition_picker_panel.gen.go @@ -80,17 +80,3 @@ func NewCompositionPickerPanelWithContentRectStyleMaskBackingDeferScreen(content instance.Autorelease() return instance } - -func (c_ CompositionPickerPanel) InitWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style appkit.WindowStyleMask, backingStoreType appkit.BackingStoreType, flag bool) CompositionPickerPanel { - rv := objc.Call[CompositionPickerPanel](c_, objc.Sel("initWithContentRect:styleMask:backing:defer:"), contentRect, style, backingStoreType, flag) - return rv -} - -// Initializes the window with the specified values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc -func NewCompositionPickerPanelWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style appkit.WindowStyleMask, backingStoreType appkit.BackingStoreType, flag bool) CompositionPickerPanel { - instance := CompositionPickerPanelClass.Alloc().InitWithContentRectStyleMaskBackingDefer(contentRect, style, backingStoreType, flag) - instance.Autorelease() - return instance -} diff --git a/macos/quartz/device_browser_view.gen.go b/macos/quartz/device_browser_view.gen.go index 053a14a9..5bbc2b9b 100644 --- a/macos/quartz/device_browser_view.gen.go +++ b/macos/quartz/device_browser_view.gen.go @@ -20,19 +20,19 @@ type _DeviceBrowserViewClass struct { // An interface definition for the [DeviceBrowserView] class. type IDeviceBrowserView interface { appkit.IView + DisplaysNetworkCameras() bool + SetDisplaysNetworkCameras(value bool) Delegate() DeviceBrowserViewDelegateObject SetDelegate(value PDeviceBrowserViewDelegate) SetDelegateObject(valueObject objc.IObject) - DisplaysLocalCameras() bool - SetDisplaysLocalCameras(value bool) DisplaysNetworkScanners() bool SetDisplaysNetworkScanners(value bool) - DisplaysNetworkCameras() bool - SetDisplaysNetworkCameras(value bool) - DisplaysLocalScanners() bool - SetDisplaysLocalScanners(value bool) + DisplaysLocalCameras() bool + SetDisplaysLocalCameras(value bool) Mode() DeviceBrowserViewDisplayMode SetMode(value DeviceBrowserViewDisplayMode) + DisplaysLocalScanners() bool + SetDisplaysLocalScanners(value bool) } // The IKDeviceBrowserView allows you to select a camera or scanner from a list of the available devices. [Full Topic] @@ -82,6 +82,21 @@ func NewDeviceBrowserViewWithFrame(frameRect foundation.Rect) DeviceBrowserView return instance } +// Specifies whether network cameras are displayed by the browser. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443056-displaysnetworkcameras?language=objc +func (d_ DeviceBrowserView) DisplaysNetworkCameras() bool { + rv := objc.Call[bool](d_, objc.Sel("displaysNetworkCameras")) + return rv +} + +// Specifies whether network cameras are displayed by the browser. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443056-displaysnetworkcameras?language=objc +func (d_ DeviceBrowserView) SetDisplaysNetworkCameras(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setDisplaysNetworkCameras:"), value) +} + // Specifies the delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443054-delegate?language=objc @@ -105,21 +120,6 @@ func (d_ DeviceBrowserView) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), valueObject) } -// Specifies whether local cameras are displayed by the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443061-displayslocalcameras?language=objc -func (d_ DeviceBrowserView) DisplaysLocalCameras() bool { - rv := objc.Call[bool](d_, objc.Sel("displaysLocalCameras")) - return rv -} - -// Specifies whether local cameras are displayed by the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443061-displayslocalcameras?language=objc -func (d_ DeviceBrowserView) SetDisplaysLocalCameras(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setDisplaysLocalCameras:"), value) -} - // Specifies whether network scanners are displayed by the browser. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443078-displaysnetworkscanners?language=objc @@ -135,34 +135,19 @@ func (d_ DeviceBrowserView) SetDisplaysNetworkScanners(value bool) { objc.Call[objc.Void](d_, objc.Sel("setDisplaysNetworkScanners:"), value) } -// Specifies whether network cameras are displayed by the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443056-displaysnetworkcameras?language=objc -func (d_ DeviceBrowserView) DisplaysNetworkCameras() bool { - rv := objc.Call[bool](d_, objc.Sel("displaysNetworkCameras")) - return rv -} - -// Specifies whether network cameras are displayed by the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443056-displaysnetworkcameras?language=objc -func (d_ DeviceBrowserView) SetDisplaysNetworkCameras(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setDisplaysNetworkCameras:"), value) -} - -// Specifies whether local scanners are displayed by the browser. [Full Topic] +// Specifies whether local cameras are displayed by the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443052-displayslocalscanners?language=objc -func (d_ DeviceBrowserView) DisplaysLocalScanners() bool { - rv := objc.Call[bool](d_, objc.Sel("displaysLocalScanners")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443061-displayslocalcameras?language=objc +func (d_ DeviceBrowserView) DisplaysLocalCameras() bool { + rv := objc.Call[bool](d_, objc.Sel("displaysLocalCameras")) return rv } -// Specifies whether local scanners are displayed by the browser. [Full Topic] +// Specifies whether local cameras are displayed by the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443052-displayslocalscanners?language=objc -func (d_ DeviceBrowserView) SetDisplaysLocalScanners(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setDisplaysLocalScanners:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443061-displayslocalcameras?language=objc +func (d_ DeviceBrowserView) SetDisplaysLocalCameras(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setDisplaysLocalCameras:"), value) } // Specifies the browser display mode. [Full Topic] @@ -179,3 +164,18 @@ func (d_ DeviceBrowserView) Mode() DeviceBrowserViewDisplayMode { func (d_ DeviceBrowserView) SetMode(value DeviceBrowserViewDisplayMode) { objc.Call[objc.Void](d_, objc.Sel("setMode:"), value) } + +// Specifies whether local scanners are displayed by the browser. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443052-displayslocalscanners?language=objc +func (d_ DeviceBrowserView) DisplaysLocalScanners() bool { + rv := objc.Call[bool](d_, objc.Sel("displaysLocalScanners")) + return rv +} + +// Specifies whether local scanners are displayed by the browser. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443052-displayslocalscanners?language=objc +func (d_ DeviceBrowserView) SetDisplaysLocalScanners(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setDisplaysLocalScanners:"), value) +} diff --git a/macos/quartz/device_browser_view_delegate.gen.go b/macos/quartz/device_browser_view_delegate.gen.go index dbf7f75d..85eb4eee 100644 --- a/macos/quartz/device_browser_view_delegate.gen.go +++ b/macos/quartz/device_browser_view_delegate.gen.go @@ -3,7 +3,6 @@ package quartz import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -11,32 +10,10 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserviewdelegate?language=objc type PDeviceBrowserViewDelegate interface { - // optional - DeviceBrowserViewDidEncounterError(deviceBrowserView DeviceBrowserView, error foundation.Error) - HasDeviceBrowserViewDidEncounterError() bool } // A delegate implementation builder for the [PDeviceBrowserViewDelegate] protocol. type DeviceBrowserViewDelegate struct { - _DeviceBrowserViewDidEncounterError func(deviceBrowserView DeviceBrowserView, error foundation.Error) -} - -func (di *DeviceBrowserViewDelegate) HasDeviceBrowserViewDidEncounterError() bool { - return di._DeviceBrowserViewDidEncounterError != nil -} - -// Invoked when the device browser encounters an error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserviewdelegate/1443076-devicebrowserview?language=objc -func (di *DeviceBrowserViewDelegate) SetDeviceBrowserViewDidEncounterError(f func(deviceBrowserView DeviceBrowserView, error foundation.Error)) { - di._DeviceBrowserViewDidEncounterError = f -} - -// Invoked when the device browser encounters an error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserviewdelegate/1443076-devicebrowserview?language=objc -func (di *DeviceBrowserViewDelegate) DeviceBrowserViewDidEncounterError(deviceBrowserView DeviceBrowserView, error foundation.Error) { - di._DeviceBrowserViewDidEncounterError(deviceBrowserView, error) } // ensure impl type implements protocol interface @@ -46,14 +23,3 @@ var _ PDeviceBrowserViewDelegate = (*DeviceBrowserViewDelegateObject)(nil) type DeviceBrowserViewDelegateObject struct { objc.Object } - -func (d_ DeviceBrowserViewDelegateObject) HasDeviceBrowserViewDidEncounterError() bool { - return d_.RespondsToSelector(objc.Sel("deviceBrowserView:didEncounterError:")) -} - -// Invoked when the device browser encounters an error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserviewdelegate/1443076-devicebrowserview?language=objc -func (d_ DeviceBrowserViewDelegateObject) DeviceBrowserViewDidEncounterError(deviceBrowserView DeviceBrowserView, error foundation.Error) { - objc.Call[objc.Void](d_, objc.Sel("deviceBrowserView:didEncounterError:"), deviceBrowserView, error) -} diff --git a/macos/quartz/enumtypes.gen.go b/macos/quartz/enumtypes.gen.go index d752e3d4..f0ececbe 100644 --- a/macos/quartz/enumtypes.gen.go +++ b/macos/quartz/enumtypes.gen.go @@ -2,7 +2,7 @@ package quartz -// These constants specify the display mode used by the camera view. These constants are used by [quartz/ikcameradeviceview/mode]. [Full Topic] +// These constants specify the display mode used by the camera view. These constants are used by mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceviewdisplaymode?language=objc type CameraDeviceViewDisplayMode int @@ -13,7 +13,7 @@ const ( CameraDeviceViewDisplayModeTable CameraDeviceViewDisplayMode = 0 ) -// These constants specify the transfer mode used by the camera view. These constants are used by [quartz/ikcameradeviceview/mode]. [Full Topic] +// These constants specify the transfer mode used by the camera view. These constants are used by mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceviewtransfermode?language=objc type CameraDeviceViewTransferMode int @@ -34,7 +34,7 @@ const ( DeviceBrowserViewDisplayModeTable DeviceBrowserViewDisplayMode = 0 ) -// The possible states for the browser cell. These values are used by the [quartz/ikimagebrowsercell/cellstate] method. [Full Topic] +// The possible states for the browser cell. These values are used by the cellState method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercellstate?language=objc type ImageBrowserCellState int @@ -45,7 +45,7 @@ const ( ImageStateReady ImageBrowserCellState = 2 ) -// These constants specify the locations for dropping items onto the browser view. Used by the method [quartz/ikimagebrowserview/setdropindex]. [Full Topic] +// These constants specify the locations for dropping items onto the browser view. Used by the method setDropIndex:dropOperation:. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowserdropoperation?language=objc type ImageBrowserDropOperation int @@ -55,7 +55,7 @@ const ( ImageBrowserDropOn ImageBrowserDropOperation = 0 ) -// These constants specify the display mode the scanner view will use. They are used by the [quartz/ikscannerdeviceview/mode] property. [Full Topic] +// These constants specify the display mode the scanner view will use. They are used by the mode property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdisplaymode?language=objc type ScannerDeviceViewDisplayMode int @@ -66,7 +66,7 @@ const ( ScannerDeviceViewDisplayModeSimple ScannerDeviceViewDisplayMode = 0 ) -// These constants determine how the scanner data is returned to the delegate. They are used by the [quartz/ikscannerdeviceview/transfermode] property. [Full Topic] +// These constants determine how the scanner data is returned to the delegate. They are used by the transferMode property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewtransfermode?language=objc type ScannerDeviceViewTransferMode int diff --git a/macos/quartz/filter_browser_panel.gen.go b/macos/quartz/filter_browser_panel.gen.go index 297b3fd8..d228393a 100644 --- a/macos/quartz/filter_browser_panel.gen.go +++ b/macos/quartz/filter_browser_panel.gen.go @@ -20,12 +20,12 @@ type _FilterBrowserPanelClass struct { // An interface definition for the [FilterBrowserPanel] class. type IFilterBrowserPanel interface { appkit.IPanel - FilterName() string BeginWithOptionsModelessDelegateDidEndSelectorContextInfo(inOptions foundation.Dictionary, modelessDelegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) + FilterBrowserViewWithOptions(inOptions foundation.Dictionary) FilterBrowserView + FilterName() string BeginSheetWithOptionsModalForWindowModalDelegateDidEndSelectorContextInfo(inOptions foundation.Dictionary, docWindow appkit.IWindow, modalDelegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) Finish(sender objc.IObject) RunModalWithOptions(inOptions foundation.Dictionary) int - FilterBrowserViewWithOptions(inOptions foundation.Dictionary) FilterBrowserView } // The IKFilterBrowserPanel class provides a user interface that allows users to browse Core Image filters (CIFilter), to preview a filter, and to get additional information about the filter, such as its description. [Full Topic] @@ -87,18 +87,19 @@ func NewFilterBrowserPanelWithContentRectStyleMaskBackingDeferScreen(contentRect return instance } -func (f_ FilterBrowserPanel) InitWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style appkit.WindowStyleMask, backingStoreType appkit.BackingStoreType, flag bool) FilterBrowserPanel { - rv := objc.Call[FilterBrowserPanel](f_, objc.Sel("initWithContentRect:styleMask:backing:defer:"), contentRect, style, backingStoreType, flag) - return rv +// Displays the filter browser in a new utility window, unless the filter browser is already open. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilterbrowserpanel/1504894-beginwithoptions?language=objc +func (f_ FilterBrowserPanel) BeginWithOptionsModelessDelegateDidEndSelectorContextInfo(inOptions foundation.Dictionary, modelessDelegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](f_, objc.Sel("beginWithOptions:modelessDelegate:didEndSelector:contextInfo:"), inOptions, modelessDelegate, didEndSelector, contextInfo) } -// Initializes the window with the specified values. [Full Topic] +// Returns a view that contains a filter browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc -func NewFilterBrowserPanelWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style appkit.WindowStyleMask, backingStoreType appkit.BackingStoreType, flag bool) FilterBrowserPanel { - instance := FilterBrowserPanelClass.Alloc().InitWithContentRectStyleMaskBackingDefer(contentRect, style, backingStoreType, flag) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilterbrowserpanel/1503992-filterbrowserviewwithoptions?language=objc +func (f_ FilterBrowserPanel) FilterBrowserViewWithOptions(inOptions foundation.Dictionary) FilterBrowserView { + rv := objc.Call[FilterBrowserView](f_, objc.Sel("filterBrowserViewWithOptions:"), inOptions) + return rv } // Creates a shared instance of the IKFilterBrowserPanel class. [Full Topic] @@ -124,13 +125,6 @@ func (f_ FilterBrowserPanel) FilterName() string { return rv } -// Displays the filter browser in a new utility window, unless the filter browser is already open. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilterbrowserpanel/1504894-beginwithoptions?language=objc -func (f_ FilterBrowserPanel) BeginWithOptionsModelessDelegateDidEndSelectorContextInfo(inOptions foundation.Dictionary, modelessDelegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](f_, objc.Sel("beginWithOptions:modelessDelegate:didEndSelector:contextInfo:"), inOptions, modelessDelegate, didEndSelector, contextInfo) -} - // Displays the filter browser in a sheet—that is, a dialog that is attached to its parent window and must be dismissed by the user. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilterbrowserpanel/1504636-beginsheetwithoptions?language=objc @@ -152,11 +146,3 @@ func (f_ FilterBrowserPanel) RunModalWithOptions(inOptions foundation.Dictionary rv := objc.Call[int](f_, objc.Sel("runModalWithOptions:"), inOptions) return rv } - -// Returns a view that contains a filter browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilterbrowserpanel/1503992-filterbrowserviewwithoptions?language=objc -func (f_ FilterBrowserPanel) FilterBrowserViewWithOptions(inOptions foundation.Dictionary) FilterBrowserView { - rv := objc.Call[FilterBrowserView](f_, objc.Sel("filterBrowserViewWithOptions:"), inOptions) - return rv -} diff --git a/macos/quartz/filter_ui_view.gen.go b/macos/quartz/filter_ui_view.gen.go index 69b2b23e..4052f0e7 100644 --- a/macos/quartz/filter_ui_view.gen.go +++ b/macos/quartz/filter_ui_view.gen.go @@ -21,9 +21,9 @@ type _FilterUIViewClass struct { // An interface definition for the [FilterUIView] class. type IFilterUIView interface { appkit.IView - InitWithFrameFilter(frameRect foundation.Rect, inFilter coreimage.IFilter) objc.Object - Filter() coreimage.Filter ObjectController() appkit.ObjectController + Filter() coreimage.Filter + InitWithFrameFilter(frameRect foundation.Rect, inFilter coreimage.IFilter) objc.Object } // The IKFilterUIView class provides a view that contains input parameter controls for a Core Image filter (CIFilter). You need to use this class when providing a user interface for a custom filter. The class creates a view that has an object controller for the given filter. It also retains the filter. [Full Topic] @@ -73,19 +73,20 @@ func NewFilterUIViewWithFrame(frameRect foundation.Rect) FilterUIView { return instance } -// Creates a view that contains controls for the input parameters of a filter. [Full Topic] +// Returns the object controller for the bindings between the filter and its view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilteruiview/1504872-viewwithframe?language=objc -func (fc _FilterUIViewClass) ViewWithFrameFilter(frameRect foundation.Rect, inFilter coreimage.IFilter) objc.Object { - rv := objc.Call[objc.Object](fc, objc.Sel("viewWithFrame:filter:"), frameRect, inFilter) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilteruiview/1504206-objectcontroller?language=objc +func (f_ FilterUIView) ObjectController() appkit.ObjectController { + rv := objc.Call[appkit.ObjectController](f_, objc.Sel("objectController")) return rv } -// Creates a view that contains controls for the input parameters of a filter. [Full Topic] +// Returns the Core Image filter associated with the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilteruiview/1504872-viewwithframe?language=objc -func FilterUIView_ViewWithFrameFilter(frameRect foundation.Rect, inFilter coreimage.IFilter) objc.Object { - return FilterUIViewClass.ViewWithFrameFilter(frameRect, inFilter) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilteruiview/1504622-filter?language=objc +func (f_ FilterUIView) Filter() coreimage.Filter { + rv := objc.Call[coreimage.Filter](f_, objc.Sel("filter")) + return rv } // Initializes a view that contains controls for the input parameters of a filter. [Full Topic] @@ -96,18 +97,17 @@ func (f_ FilterUIView) InitWithFrameFilter(frameRect foundation.Rect, inFilter c return rv } -// Returns the Core Image filter associated with the view. [Full Topic] +// Creates a view that contains controls for the input parameters of a filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilteruiview/1504622-filter?language=objc -func (f_ FilterUIView) Filter() coreimage.Filter { - rv := objc.Call[coreimage.Filter](f_, objc.Sel("filter")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilteruiview/1504872-viewwithframe?language=objc +func (fc _FilterUIViewClass) ViewWithFrameFilter(frameRect foundation.Rect, inFilter coreimage.IFilter) objc.Object { + rv := objc.Call[objc.Object](fc, objc.Sel("viewWithFrame:filter:"), frameRect, inFilter) return rv } -// Returns the object controller for the bindings between the filter and its view. [Full Topic] +// Creates a view that contains controls for the input parameters of a filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilteruiview/1504206-objectcontroller?language=objc -func (f_ FilterUIView) ObjectController() appkit.ObjectController { - rv := objc.Call[appkit.ObjectController](f_, objc.Sel("objectController")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikfilteruiview/1504872-viewwithframe?language=objc +func FilterUIView_ViewWithFrameFilter(frameRect foundation.Rect, inFilter coreimage.IFilter) objc.Object { + return FilterUIViewClass.ViewWithFrameFilter(frameRect, inFilter) } diff --git a/macos/quartz/image_browser_cell.gen.go b/macos/quartz/image_browser_cell.gen.go index 7775e120..9729aa96 100644 --- a/macos/quartz/image_browser_cell.gen.go +++ b/macos/quartz/image_browser_cell.gen.go @@ -21,20 +21,20 @@ type _ImageBrowserCellClass struct { // An interface definition for the [ImageBrowserCell] class. type IImageBrowserCell interface { objc.IObject - ImageBrowserView() ImageBrowserView - Opacity() float64 - SelectionFrame() foundation.Rect ImageAlignment() appkit.ImageAlignment - ImageFrame() foundation.Rect - SubtitleFrame() foundation.Rect - IsSelected() bool + Opacity() float64 IndexOfRepresentedItem() uint + IsSelected() bool ImageContainerFrame() foundation.Rect + CellState() ImageBrowserCellState RepresentedItem() objc.Object + ImageFrame() foundation.Rect TitleFrame() foundation.Rect Frame() foundation.Rect + ImageBrowserView() ImageBrowserView + SubtitleFrame() foundation.Rect LayerForType(type_ string) quartzcore.Layer - CellState() ImageBrowserCellState + SelectionFrame() foundation.Rect } // A class that is used to display a cell conforming to the [quartz/imagekit/ikimagebrowseritem_protocol] in an IKImageBrowserView. [Full Topic] @@ -70,30 +70,6 @@ func (i_ ImageBrowserCell) Init() ImageBrowserCell { return rv } -// Returns the view the receiver uses to display the cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500049-imagebrowserview?language=objc -func (i_ ImageBrowserCell) ImageBrowserView() ImageBrowserView { - rv := objc.Call[ImageBrowserView](i_, objc.Sel("imageBrowserView")) - return rv -} - -// Returns the opacity of the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500060-opacity?language=objc -func (i_ ImageBrowserCell) Opacity() float64 { - rv := objc.Call[float64](i_, objc.Sel("opacity")) - return rv -} - -// Returns the receiver’s selection frame rectangle, which defines the position of the selection rectangle in its IKImageBrowserView. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500070-selectionframe?language=objc -func (i_ ImageBrowserCell) SelectionFrame() foundation.Rect { - rv := objc.Call[foundation.Rect](i_, objc.Sel("selectionFrame")) - return rv -} - // Returns the position of the cell’s image in the frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500042-imagealignment?language=objc @@ -102,19 +78,19 @@ func (i_ ImageBrowserCell) ImageAlignment() appkit.ImageAlignment { return rv } -// Returns the receiver’s image frame rectangle, which defines the position of the thumbnail in its IKImageBrowserView. [Full Topic] +// Returns the opacity of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500052-imageframe?language=objc -func (i_ ImageBrowserCell) ImageFrame() foundation.Rect { - rv := objc.Call[foundation.Rect](i_, objc.Sel("imageFrame")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500060-opacity?language=objc +func (i_ ImageBrowserCell) Opacity() float64 { + rv := objc.Call[float64](i_, objc.Sel("opacity")) return rv } -// Returns the receiver’s subtitle frame rectangle. [Full Topic] +// Returns the index of the receiver’s represented object in the datasource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500074-subtitleframe?language=objc -func (i_ ImageBrowserCell) SubtitleFrame() foundation.Rect { - rv := objc.Call[foundation.Rect](i_, objc.Sel("subtitleFrame")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500047-indexofrepresenteditem?language=objc +func (i_ ImageBrowserCell) IndexOfRepresentedItem() uint { + rv := objc.Call[uint](i_, objc.Sel("indexOfRepresentedItem")) return rv } @@ -126,14 +102,6 @@ func (i_ ImageBrowserCell) IsSelected() bool { return rv } -// Returns the index of the receiver’s represented object in the datasource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500047-indexofrepresenteditem?language=objc -func (i_ ImageBrowserCell) IndexOfRepresentedItem() uint { - rv := objc.Call[uint](i_, objc.Sel("indexOfRepresentedItem")) - return rv -} - // Returns the receiver’s image container frame rectangle, which defines the position of the container of the thumbnail. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500064-imagecontainerframe?language=objc @@ -142,6 +110,14 @@ func (i_ ImageBrowserCell) ImageContainerFrame() foundation.Rect { return rv } +// Returns the current cell state of the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500062-cellstate?language=objc +func (i_ ImageBrowserCell) CellState() ImageBrowserCellState { + rv := objc.Call[ImageBrowserCellState](i_, objc.Sel("cellState")) + return rv +} + // Returns the receiver’s represented object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500071-representeditem?language=objc @@ -150,6 +126,14 @@ func (i_ ImageBrowserCell) RepresentedItem() objc.Object { return rv } +// Returns the receiver’s image frame rectangle, which defines the position of the thumbnail in its IKImageBrowserView. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500052-imageframe?language=objc +func (i_ ImageBrowserCell) ImageFrame() foundation.Rect { + rv := objc.Call[foundation.Rect](i_, objc.Sel("imageFrame")) + return rv +} + // Returns the receiver’s title frame rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500069-titleframe?language=objc @@ -166,6 +150,22 @@ func (i_ ImageBrowserCell) Frame() foundation.Rect { return rv } +// Returns the view the receiver uses to display the cell. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500049-imagebrowserview?language=objc +func (i_ ImageBrowserCell) ImageBrowserView() ImageBrowserView { + rv := objc.Call[ImageBrowserView](i_, objc.Sel("imageBrowserView")) + return rv +} + +// Returns the receiver’s subtitle frame rectangle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500074-subtitleframe?language=objc +func (i_ ImageBrowserCell) SubtitleFrame() foundation.Rect { + rv := objc.Call[foundation.Rect](i_, objc.Sel("subtitleFrame")) + return rv +} + // Returns a layer for the specified position. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500045-layerfortype?language=objc @@ -174,10 +174,10 @@ func (i_ ImageBrowserCell) LayerForType(type_ string) quartzcore.Layer { return rv } -// Returns the current cell state of the receiver. [Full Topic] +// Returns the receiver’s selection frame rectangle, which defines the position of the selection rectangle in its IKImageBrowserView. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500062-cellstate?language=objc -func (i_ ImageBrowserCell) CellState() ImageBrowserCellState { - rv := objc.Call[ImageBrowserCellState](i_, objc.Sel("cellState")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500070-selectionframe?language=objc +func (i_ ImageBrowserCell) SelectionFrame() foundation.Rect { + rv := objc.Call[foundation.Rect](i_, objc.Sel("selectionFrame")) return rv } diff --git a/macos/quartz/image_edit_panel.gen.go b/macos/quartz/image_edit_panel.gen.go index b37e7314..663adf63 100644 --- a/macos/quartz/image_edit_panel.gen.go +++ b/macos/quartz/image_edit_panel.gen.go @@ -21,10 +21,10 @@ type _ImageEditPanelClass struct { type IImageEditPanel interface { appkit.IPanel ReloadData() - FilterArray() []objc.Object DataSource() ImageEditPanelDataSourceObject SetDataSource(value PImageEditPanelDataSource) SetDataSourceObject(valueObject objc.IObject) + FilterArray() []objc.Object } // The IKImageEditPanel class provides a panel, that is, a utility window that floats on top of document windows, optimized for image editing. [Full Topic] @@ -86,27 +86,6 @@ func NewImageEditPanelWithContentRectStyleMaskBackingDeferScreen(contentRect fou return instance } -func (i_ ImageEditPanel) InitWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style appkit.WindowStyleMask, backingStoreType appkit.BackingStoreType, flag bool) ImageEditPanel { - rv := objc.Call[ImageEditPanel](i_, objc.Sel("initWithContentRect:styleMask:backing:defer:"), contentRect, style, backingStoreType, flag) - return rv -} - -// Initializes the window with the specified values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc -func NewImageEditPanelWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style appkit.WindowStyleMask, backingStoreType appkit.BackingStoreType, flag bool) ImageEditPanel { - instance := ImageEditPanelClass.Alloc().InitWithContentRectStyleMaskBackingDefer(contentRect, style, backingStoreType, flag) - instance.Autorelease() - return instance -} - -// Reloads the data from the data associated with an image editing panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageeditpanel/1503419-reloaddata?language=objc -func (i_ ImageEditPanel) ReloadData() { - objc.Call[objc.Void](i_, objc.Sel("reloadData")) -} - // Creates a shared instance of an image editing panel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageeditpanel/1503827-sharedimageeditpanel?language=objc @@ -122,12 +101,11 @@ func ImageEditPanel_SharedImageEditPanel() ImageEditPanel { return ImageEditPanelClass.SharedImageEditPanel() } -// Returns the current array of user adjustments to effects. [Full Topic] +// Reloads the data from the data associated with an image editing panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageeditpanel/1504436-filterarray?language=objc -func (i_ ImageEditPanel) FilterArray() []objc.Object { - rv := objc.Call[[]objc.Object](i_, objc.Sel("filterArray")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageeditpanel/1503419-reloaddata?language=objc +func (i_ ImageEditPanel) ReloadData() { + objc.Call[objc.Void](i_, objc.Sel("reloadData")) } // Specifies the edit panel’s dataSource. [Full Topic] @@ -152,3 +130,11 @@ func (i_ ImageEditPanel) SetDataSource(value PImageEditPanelDataSource) { func (i_ ImageEditPanel) SetDataSourceObject(valueObject objc.IObject) { objc.Call[objc.Void](i_, objc.Sel("setDataSource:"), valueObject) } + +// Returns the current array of user adjustments to effects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageeditpanel/1504436-filterarray?language=objc +func (i_ ImageEditPanel) FilterArray() []objc.Object { + rv := objc.Call[[]objc.Object](i_, objc.Sel("filterArray")) + return rv +} diff --git a/macos/quartz/image_view.gen.go b/macos/quartz/image_view.gen.go index 6dc200f5..a0512cc2 100644 --- a/macos/quartz/image_view.gen.go +++ b/macos/quartz/image_view.gen.go @@ -23,57 +23,57 @@ type _ImageViewClass struct { // An interface definition for the [ImageView] class. type IImageView interface { appkit.IView - ScrollToPoint(point foundation.Point) - Image() coregraphics.ImageRef - ZoomImageToFit(sender objc.IObject) objc.Object ConvertViewPointToImagePoint(viewPoint foundation.Point) foundation.Point - SetRotationAngleCenterPoint(rotationAngle float64, centerPoint foundation.Point) - SetOverlayForType(layer quartzcore.ILayer, layerType string) - FlipImageVertical(sender objc.IObject) objc.Object + ZoomImageToFit(sender objc.IObject) objc.Object RotateImageRight(sender objc.IObject) objc.Object - ScrollToRect(rect foundation.Rect) - Crop(sender objc.IObject) objc.Object + ZoomImageToActualSize(sender objc.IObject) objc.Object + ImageSize() foundation.Size + RotateImageLeft(sender objc.IObject) objc.Object ConvertViewRectToImageRect(viewRect foundation.Rect) foundation.Rect + ConvertImagePointToViewPoint(imagePoint foundation.Point) foundation.Point SetImageImageProperties(image coregraphics.ImageRef, metaData foundation.Dictionary) - RotateImageLeft(sender objc.IObject) objc.Object - ImageProperties() foundation.Dictionary + ScrollToPoint(point foundation.Point) + Crop(sender objc.IObject) objc.Object + ZoomIn(sender objc.IObject) objc.Object OverlayForType(layerType string) quartzcore.Layer - ConvertImagePointToViewPoint(imagePoint foundation.Point) foundation.Point + SetOverlayForType(layer quartzcore.ILayer, layerType string) + ConvertImageRectToViewRect(imageRect foundation.Rect) foundation.Rect + ImageProperties() foundation.Dictionary + ScrollToRect(rect foundation.Rect) + FlipImageVertical(sender objc.IObject) objc.Object ZoomOut(sender objc.IObject) objc.Object - ZoomImageToActualSize(sender objc.IObject) objc.Object + SetRotationAngleCenterPoint(rotationAngle float64, centerPoint foundation.Point) FlipImageHorizontal(sender objc.IObject) objc.Object SetImageZoomFactorCenterPoint(zoomFactor float64, centerPoint foundation.Point) - ImageSize() foundation.Size - ZoomIn(sender objc.IObject) objc.Object - SetImageWithURL(url foundation.IURL) + Image() coregraphics.ImageRef ZoomImageToRect(rect foundation.Rect) - ConvertImageRectToViewRect(imageRect foundation.Rect) foundation.Rect - ZoomFactor() float64 - SetZoomFactor(value float64) - Autoresizes() bool - SetAutoresizes(value bool) - AutohidesScrollers() bool - SetAutohidesScrollers(value bool) - Editable() bool - SetEditable(value bool) - HasHorizontalScroller() bool - SetHasHorizontalScroller(value bool) - RotationAngle() float64 - SetRotationAngle(value float64) + SetImageWithURL(url foundation.IURL) HasVerticalScroller() bool SetHasVerticalScroller(value bool) - DoubleClickOpensImageEditPanel() bool - SetDoubleClickOpensImageEditPanel(value bool) + Editable() bool + SetEditable(value bool) CurrentToolMode() string SetCurrentToolMode(value string) + Autoresizes() bool + SetAutoresizes(value bool) Delegate() objc.Object SetDelegate(value objc.IObject) - ImageCorrection() coreimage.Filter - SetImageCorrection(value coreimage.IFilter) BackgroundColor() appkit.Color SetBackgroundColor(value appkit.IColor) + ImageCorrection() coreimage.Filter + SetImageCorrection(value coreimage.IFilter) + AutohidesScrollers() bool + SetAutohidesScrollers(value bool) SupportsDragAndDrop() bool SetSupportsDragAndDrop(value bool) + RotationAngle() float64 + SetRotationAngle(value float64) + HasHorizontalScroller() bool + SetHasHorizontalScroller(value bool) + ZoomFactor() float64 + SetZoomFactor(value float64) + DoubleClickOpensImageEditPanel() bool + SetDoubleClickOpensImageEditPanel(value bool) } // The IKImageView class provides an efficient way to display images in a view while at the same time supporting a number of image editing operations such as rotating, zooming, and cropping. It supports drag and drop for the NSFilenamesPboardType flavor so that the user can drag an image to the view. If possible, image rendering uses hardware acceleration to achieve optimal performance. The IKImageView class is implemented as a subclass of NSView. Similar to NSImageView, the IKImageView class is used to display a single image. [Full Topic] @@ -123,29 +123,6 @@ func NewImageViewWithFrame(frameRect foundation.Rect) ImageView { return instance } -// Scrolls the view to the specified point. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503677-scrolltopoint?language=objc -func (i_ ImageView) ScrollToPoint(point foundation.Point) { - objc.Call[objc.Void](i_, objc.Sel("scrollToPoint:"), point) -} - -// Returns the image associated with the view, after any image corrections. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504371-image?language=objc -func (i_ ImageView) Image() coregraphics.ImageRef { - rv := objc.Call[coregraphics.ImageRef](i_, objc.Sel("image")) - return rv -} - -// Zooms the image so that it fits in the image view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504450-zoomimagetofit?language=objc -func (i_ ImageView) ZoomImageToFit(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("zoomImageToFit:"), sender) - return rv -} - // Converts an image view coordinate to an image coordinate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503743-convertviewpointtoimagepoint?language=objc @@ -154,25 +131,11 @@ func (i_ ImageView) ConvertViewPointToImagePoint(viewPoint foundation.Point) fou return rv } -// Sets the rotation angle at the provided origin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503535-setrotationangle?language=objc -func (i_ ImageView) SetRotationAngleCenterPoint(rotationAngle float64, centerPoint foundation.Point) { - objc.Call[objc.Void](i_, objc.Sel("setRotationAngle:centerPoint:"), rotationAngle, centerPoint) -} - -// Sets an overlay type for a Core Animation layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504283-setoverlay?language=objc -func (i_ ImageView) SetOverlayForType(layer quartzcore.ILayer, layerType string) { - objc.Call[objc.Void](i_, objc.Sel("setOverlay:forType:"), layer, layerType) -} - -// Flips an image along the vertical axis. [Full Topic] +// Zooms the image so that it fits in the image view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503836-flipimagevertical?language=objc -func (i_ ImageView) FlipImageVertical(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("flipImageVertical:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504450-zoomimagetofit?language=objc +func (i_ ImageView) ZoomImageToFit(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("zoomImageToFit:"), sender) return rv } @@ -184,36 +147,22 @@ func (i_ ImageView) RotateImageRight(sender objc.IObject) objc.Object { return rv } -// Scrolls the view so that it includes the provided rectangular area. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504366-scrolltorect?language=objc -func (i_ ImageView) ScrollToRect(rect foundation.Rect) { - objc.Call[objc.Void](i_, objc.Sel("scrollToRect:"), rect) -} - -// Crops the image using the current selection. [Full Topic] +// Zooms the image so that it is displayed using its true size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503855-crop?language=objc -func (i_ ImageView) Crop(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("crop:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504415-zoomimagetoactualsize?language=objc +func (i_ ImageView) ZoomImageToActualSize(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("zoomImageToActualSize:"), sender) return rv } -// Converts an image view rectangle to an image rectangle. [Full Topic] +// Returns the size of the image in the image view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504464-convertviewrecttoimagerect?language=objc -func (i_ ImageView) ConvertViewRectToImageRect(viewRect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](i_, objc.Sel("convertViewRectToImageRect:"), viewRect) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504005-imagesize?language=objc +func (i_ ImageView) ImageSize() foundation.Size { + rv := objc.Call[foundation.Size](i_, objc.Sel("imageSize")) return rv } -// Sets the image to display in an image view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503915-setimage?language=objc -func (i_ ImageView) SetImageImageProperties(image coregraphics.ImageRef, metaData foundation.Dictionary) { - objc.Call[objc.Void](i_, objc.Sel("setImage:imageProperties:"), image, metaData) -} - // Rotates the image left (counter-clockwise). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503769-rotateimageleft?language=objc @@ -222,19 +171,11 @@ func (i_ ImageView) RotateImageLeft(sender objc.IObject) objc.Object { return rv } -// Returns the metadata for the image in the view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503845-imageproperties?language=objc -func (i_ ImageView) ImageProperties() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](i_, objc.Sel("imageProperties")) - return rv -} - -// Returns the Core Animation layer associated with a layer type. [Full Topic] +// Converts an image view rectangle to an image rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504236-overlayfortype?language=objc -func (i_ ImageView) OverlayForType(layerType string) quartzcore.Layer { - rv := objc.Call[quartzcore.Layer](i_, objc.Sel("overlayForType:"), layerType) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504464-convertviewrecttoimagerect?language=objc +func (i_ ImageView) ConvertViewRectToImageRect(viewRect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](i_, objc.Sel("convertViewRectToImageRect:"), viewRect) return rv } @@ -246,42 +187,25 @@ func (i_ ImageView) ConvertImagePointToViewPoint(imagePoint foundation.Point) fo return rv } -// Zooms the image out. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503436-zoomout?language=objc -func (i_ ImageView) ZoomOut(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("zoomOut:"), sender) - return rv -} - -// Zooms the image so that it is displayed using its true size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504415-zoomimagetoactualsize?language=objc -func (i_ ImageView) ZoomImageToActualSize(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("zoomImageToActualSize:"), sender) - return rv -} - -// Flips an image along the horizontal axis. [Full Topic] +// Sets the image to display in an image view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1505282-flipimagehorizontal?language=objc -func (i_ ImageView) FlipImageHorizontal(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("flipImageHorizontal:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503915-setimage?language=objc +func (i_ ImageView) SetImageImageProperties(image coregraphics.ImageRef, metaData foundation.Dictionary) { + objc.Call[objc.Void](i_, objc.Sel("setImage:imageProperties:"), image, metaData) } -// Sets the zoom factor at the provided origin. [Full Topic] +// Scrolls the view to the specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503762-setimagezoomfactor?language=objc -func (i_ ImageView) SetImageZoomFactorCenterPoint(zoomFactor float64, centerPoint foundation.Point) { - objc.Call[objc.Void](i_, objc.Sel("setImageZoomFactor:centerPoint:"), zoomFactor, centerPoint) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503677-scrolltopoint?language=objc +func (i_ ImageView) ScrollToPoint(point foundation.Point) { + objc.Call[objc.Void](i_, objc.Sel("scrollToPoint:"), point) } -// Returns the size of the image in the image view. [Full Topic] +// Crops the image using the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504005-imagesize?language=objc -func (i_ ImageView) ImageSize() foundation.Size { - rv := objc.Call[foundation.Size](i_, objc.Sel("imageSize")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503855-crop?language=objc +func (i_ ImageView) Crop(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("crop:"), sender) return rv } @@ -293,18 +217,19 @@ func (i_ ImageView) ZoomIn(sender objc.IObject) objc.Object { return rv } -// Initializes an image view with the image specified by a URL. [Full Topic] +// Returns the Core Animation layer associated with a layer type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1505314-setimagewithurl?language=objc -func (i_ ImageView) SetImageWithURL(url foundation.IURL) { - objc.Call[objc.Void](i_, objc.Sel("setImageWithURL:"), url) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504236-overlayfortype?language=objc +func (i_ ImageView) OverlayForType(layerType string) quartzcore.Layer { + rv := objc.Call[quartzcore.Layer](i_, objc.Sel("overlayForType:"), layerType) + return rv } -// Zooms the image so that it fits in the specified rectangle. [Full Topic] +// Sets an overlay type for a Core Animation layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504460-zoomimagetorect?language=objc -func (i_ ImageView) ZoomImageToRect(rect foundation.Rect) { - objc.Call[objc.Void](i_, objc.Sel("zoomImageToRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504283-setoverlay?language=objc +func (i_ ImageView) SetOverlayForType(layer quartzcore.ILayer, layerType string) { + objc.Call[objc.Void](i_, objc.Sel("setOverlay:forType:"), layer, layerType) } // Converts an image rectangle to an image view rectangle. [Full Topic] @@ -315,94 +240,79 @@ func (i_ ImageView) ConvertImageRectToViewRect(imageRect foundation.Rect) founda return rv } -// Specifies the zoom factor for the image view. [Full Topic] +// Returns the metadata for the image in the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504496-zoomfactor?language=objc -func (i_ ImageView) ZoomFactor() float64 { - rv := objc.Call[float64](i_, objc.Sel("zoomFactor")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503845-imageproperties?language=objc +func (i_ ImageView) ImageProperties() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](i_, objc.Sel("imageProperties")) return rv } -// Specifies the zoom factor for the image view. [Full Topic] +// Scrolls the view so that it includes the provided rectangular area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504496-zoomfactor?language=objc -func (i_ ImageView) SetZoomFactor(value float64) { - objc.Call[objc.Void](i_, objc.Sel("setZoomFactor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504366-scrolltorect?language=objc +func (i_ ImageView) ScrollToRect(rect foundation.Rect) { + objc.Call[objc.Void](i_, objc.Sel("scrollToRect:"), rect) } -// Specifies the automatic resizing state for the image view. [Full Topic] +// Flips an image along the vertical axis. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503709-autoresizes?language=objc -func (i_ ImageView) Autoresizes() bool { - rv := objc.Call[bool](i_, objc.Sel("autoresizes")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503836-flipimagevertical?language=objc +func (i_ ImageView) FlipImageVertical(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("flipImageVertical:"), sender) return rv } -// Specifies the automatic resizing state for the image view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503709-autoresizes?language=objc -func (i_ ImageView) SetAutoresizes(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setAutoresizes:"), value) -} - -// Specifies the automatic-hiding scroll bar state for the image view. [Full Topic] +// Zooms the image out. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503469-autohidesscrollers?language=objc -func (i_ ImageView) AutohidesScrollers() bool { - rv := objc.Call[bool](i_, objc.Sel("autohidesScrollers")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503436-zoomout?language=objc +func (i_ ImageView) ZoomOut(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("zoomOut:"), sender) return rv } -// Specifies the automatic-hiding scroll bar state for the image view. [Full Topic] +// Sets the rotation angle at the provided origin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503469-autohidesscrollers?language=objc -func (i_ ImageView) SetAutohidesScrollers(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setAutohidesScrollers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503535-setrotationangle?language=objc +func (i_ ImageView) SetRotationAngleCenterPoint(rotationAngle float64, centerPoint foundation.Point) { + objc.Call[objc.Void](i_, objc.Sel("setRotationAngle:centerPoint:"), rotationAngle, centerPoint) } -// Specifies the editable state for the image view. [Full Topic] +// Flips an image along the horizontal axis. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1505302-editable?language=objc -func (i_ ImageView) Editable() bool { - rv := objc.Call[bool](i_, objc.Sel("editable")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1505282-flipimagehorizontal?language=objc +func (i_ ImageView) FlipImageHorizontal(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("flipImageHorizontal:"), sender) return rv } -// Specifies the editable state for the image view. [Full Topic] +// Sets the zoom factor at the provided origin. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1505302-editable?language=objc -func (i_ ImageView) SetEditable(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setEditable:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503762-setimagezoomfactor?language=objc +func (i_ ImageView) SetImageZoomFactorCenterPoint(zoomFactor float64, centerPoint foundation.Point) { + objc.Call[objc.Void](i_, objc.Sel("setImageZoomFactor:centerPoint:"), zoomFactor, centerPoint) } -// Specifies the horizontal scroll bar state for the image view. [Full Topic] +// Returns the image associated with the view, after any image corrections. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503565-hashorizontalscroller?language=objc -func (i_ ImageView) HasHorizontalScroller() bool { - rv := objc.Call[bool](i_, objc.Sel("hasHorizontalScroller")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504371-image?language=objc +func (i_ ImageView) Image() coregraphics.ImageRef { + rv := objc.Call[coregraphics.ImageRef](i_, objc.Sel("image")) return rv } -// Specifies the horizontal scroll bar state for the image view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503565-hashorizontalscroller?language=objc -func (i_ ImageView) SetHasHorizontalScroller(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setHasHorizontalScroller:"), value) -} - -// Specifies the rotation angle for the image view. [Full Topic] +// Zooms the image so that it fits in the specified rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504691-rotationangle?language=objc -func (i_ ImageView) RotationAngle() float64 { - rv := objc.Call[float64](i_, objc.Sel("rotationAngle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504460-zoomimagetorect?language=objc +func (i_ ImageView) ZoomImageToRect(rect foundation.Rect) { + objc.Call[objc.Void](i_, objc.Sel("zoomImageToRect:"), rect) } -// Specifies the rotation angle for the image view. [Full Topic] +// Initializes an image view with the image specified by a URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504691-rotationangle?language=objc -func (i_ ImageView) SetRotationAngle(value float64) { - objc.Call[objc.Void](i_, objc.Sel("setRotationAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1505314-setimagewithurl?language=objc +func (i_ ImageView) SetImageWithURL(url foundation.IURL) { + objc.Call[objc.Void](i_, objc.Sel("setImageWithURL:"), url) } // Specifies the vertical scroll bar state for the image view. [Full Topic] @@ -420,19 +330,19 @@ func (i_ ImageView) SetHasVerticalScroller(value bool) { objc.Call[objc.Void](i_, objc.Sel("setHasVerticalScroller:"), value) } -// Specifies the image-opening state of the editing pane in the image view. [Full Topic] +// Specifies the editable state for the image view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504092-doubleclickopensimageeditpanel?language=objc -func (i_ ImageView) DoubleClickOpensImageEditPanel() bool { - rv := objc.Call[bool](i_, objc.Sel("doubleClickOpensImageEditPanel")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1505302-editable?language=objc +func (i_ ImageView) Editable() bool { + rv := objc.Call[bool](i_, objc.Sel("editable")) return rv } -// Specifies the image-opening state of the editing pane in the image view. [Full Topic] +// Specifies the editable state for the image view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504092-doubleclickopensimageeditpanel?language=objc -func (i_ ImageView) SetDoubleClickOpensImageEditPanel(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setDoubleClickOpensImageEditPanel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1505302-editable?language=objc +func (i_ ImageView) SetEditable(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setEditable:"), value) } // Specifies the current tool mode for the image view. [Full Topic] @@ -450,6 +360,21 @@ func (i_ ImageView) SetCurrentToolMode(value string) { objc.Call[objc.Void](i_, objc.Sel("setCurrentToolMode:"), value) } +// Specifies the automatic resizing state for the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503709-autoresizes?language=objc +func (i_ ImageView) Autoresizes() bool { + rv := objc.Call[bool](i_, objc.Sel("autoresizes")) + return rv +} + +// Specifies the automatic resizing state for the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503709-autoresizes?language=objc +func (i_ ImageView) SetAutoresizes(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setAutoresizes:"), value) +} + // Specifies the delegate object of the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504032-delegate?language=objc @@ -465,6 +390,21 @@ func (i_ ImageView) SetDelegate(value objc.IObject) { objc.Call[objc.Void](i_, objc.Sel("setDelegate:"), value) } +// Specifies the background color for the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503567-backgroundcolor?language=objc +func (i_ ImageView) BackgroundColor() appkit.Color { + rv := objc.Call[appkit.Color](i_, objc.Sel("backgroundColor")) + return rv +} + +// Specifies the background color for the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503567-backgroundcolor?language=objc +func (i_ ImageView) SetBackgroundColor(value appkit.IColor) { + objc.Call[objc.Void](i_, objc.Sel("setBackgroundColor:"), value) +} + // Specifies a Core Image filter for image correction. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503698-imagecorrection?language=objc @@ -480,19 +420,19 @@ func (i_ ImageView) SetImageCorrection(value coreimage.IFilter) { objc.Call[objc.Void](i_, objc.Sel("setImageCorrection:"), value) } -// Specifies the background color for the image view. [Full Topic] +// Specifies the automatic-hiding scroll bar state for the image view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503567-backgroundcolor?language=objc -func (i_ ImageView) BackgroundColor() appkit.Color { - rv := objc.Call[appkit.Color](i_, objc.Sel("backgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503469-autohidesscrollers?language=objc +func (i_ ImageView) AutohidesScrollers() bool { + rv := objc.Call[bool](i_, objc.Sel("autohidesScrollers")) return rv } -// Specifies the background color for the image view. [Full Topic] +// Specifies the automatic-hiding scroll bar state for the image view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503567-backgroundcolor?language=objc -func (i_ ImageView) SetBackgroundColor(value appkit.IColor) { - objc.Call[objc.Void](i_, objc.Sel("setBackgroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503469-autohidesscrollers?language=objc +func (i_ ImageView) SetAutohidesScrollers(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setAutohidesScrollers:"), value) } // Specifies the drag-and-drop support state for the image view. [Full Topic] @@ -509,3 +449,63 @@ func (i_ ImageView) SupportsDragAndDrop() bool { func (i_ ImageView) SetSupportsDragAndDrop(value bool) { objc.Call[objc.Void](i_, objc.Sel("setSupportsDragAndDrop:"), value) } + +// Specifies the rotation angle for the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504691-rotationangle?language=objc +func (i_ ImageView) RotationAngle() float64 { + rv := objc.Call[float64](i_, objc.Sel("rotationAngle")) + return rv +} + +// Specifies the rotation angle for the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504691-rotationangle?language=objc +func (i_ ImageView) SetRotationAngle(value float64) { + objc.Call[objc.Void](i_, objc.Sel("setRotationAngle:"), value) +} + +// Specifies the horizontal scroll bar state for the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503565-hashorizontalscroller?language=objc +func (i_ ImageView) HasHorizontalScroller() bool { + rv := objc.Call[bool](i_, objc.Sel("hasHorizontalScroller")) + return rv +} + +// Specifies the horizontal scroll bar state for the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503565-hashorizontalscroller?language=objc +func (i_ ImageView) SetHasHorizontalScroller(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setHasHorizontalScroller:"), value) +} + +// Specifies the zoom factor for the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504496-zoomfactor?language=objc +func (i_ ImageView) ZoomFactor() float64 { + rv := objc.Call[float64](i_, objc.Sel("zoomFactor")) + return rv +} + +// Specifies the zoom factor for the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504496-zoomfactor?language=objc +func (i_ ImageView) SetZoomFactor(value float64) { + objc.Call[objc.Void](i_, objc.Sel("setZoomFactor:"), value) +} + +// Specifies the image-opening state of the editing pane in the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504092-doubleclickopensimageeditpanel?language=objc +func (i_ ImageView) DoubleClickOpensImageEditPanel() bool { + rv := objc.Call[bool](i_, objc.Sel("doubleClickOpensImageEditPanel")) + return rv +} + +// Specifies the image-opening state of the editing pane in the image view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1504092-doubleclickopensimageeditpanel?language=objc +func (i_ ImageView) SetDoubleClickOpensImageEditPanel(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setDoubleClickOpensImageEditPanel:"), value) +} diff --git a/macos/quartz/picture_taker.gen.go b/macos/quartz/picture_taker.gen.go index ab16a381..dcd6ad0c 100644 --- a/macos/quartz/picture_taker.gen.go +++ b/macos/quartz/picture_taker.gen.go @@ -20,15 +20,15 @@ type _PictureTakerClass struct { // An interface definition for the [PictureTaker] class. type IPictureTaker interface { appkit.IPanel - Mirroring() bool - SetMirroring(b bool) - InputImage() appkit.Image - BeginPictureTakerSheetForWindowWithDelegateDidEndSelectorContextInfo(aWindow appkit.IWindow, delegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) PopUpRecentsMenuForViewWithDelegateDidEndSelectorContextInfo(aView appkit.IView, delegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) + InputImage() appkit.Image + Mirroring() bool SetInputImage(image appkit.IImage) - OutputImage() appkit.Image RunModal() int BeginPictureTakerWithDelegateDidEndSelectorContextInfo(delegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) + BeginPictureTakerSheetForWindowWithDelegateDidEndSelectorContextInfo(aWindow appkit.IWindow, delegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) + SetMirroring(b bool) + OutputImage() appkit.Image } // The IKPictureTaker class represents a panel that allows users to choose images by browsing the file system. The picture taker panel provides an Open Recent menu, supports image cropping, and supports taking snapshots from an iSight or other digital camera. [Full Topic] @@ -90,18 +90,19 @@ func NewPictureTakerWithContentRectStyleMaskBackingDeferScreen(contentRect found return instance } -func (p_ PictureTaker) InitWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style appkit.WindowStyleMask, backingStoreType appkit.BackingStoreType, flag bool) PictureTaker { - rv := objc.Call[PictureTaker](p_, objc.Sel("initWithContentRect:styleMask:backing:defer:"), contentRect, style, backingStoreType, flag) - return rv +// Displays the Open Recent popup menu associated with the picture taker. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1504753-popuprecentsmenuforview?language=objc +func (p_ PictureTaker) PopUpRecentsMenuForViewWithDelegateDidEndSelectorContextInfo(aView appkit.IView, delegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](p_, objc.Sel("popUpRecentsMenuForView:withDelegate:didEndSelector:contextInfo:"), aView, delegate, didEndSelector, contextInfo) } -// Initializes the window with the specified values. [Full Topic] +// Returns the input image associated with the picture taker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc -func NewPictureTakerWithContentRectStyleMaskBackingDefer(contentRect foundation.Rect, style appkit.WindowStyleMask, backingStoreType appkit.BackingStoreType, flag bool) PictureTaker { - instance := PictureTakerClass.Alloc().InitWithContentRectStyleMaskBackingDefer(contentRect, style, backingStoreType, flag) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1505220-inputimage?language=objc +func (p_ PictureTaker) InputImage() appkit.Image { + rv := objc.Call[appkit.Image](p_, objc.Sel("inputImage")) + return rv } // Returns whether video mirroring is enabled during snapshots. [Full Topic] @@ -112,21 +113,28 @@ func (p_ PictureTaker) Mirroring() bool { return rv } -// Controls whether the receiver enables video mirroring during snapshots. [Full Topic] +// Set the image input for the picture taker. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1504915-setmirroring?language=objc -func (p_ PictureTaker) SetMirroring(b bool) { - objc.Call[objc.Void](p_, objc.Sel("setMirroring:"), b) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1503724-setinputimage?language=objc +func (p_ PictureTaker) SetInputImage(image appkit.IImage) { + objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), image) } -// Returns the input image associated with the picture taker. [Full Topic] +// Opens a modal picture taker dialog. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1505220-inputimage?language=objc -func (p_ PictureTaker) InputImage() appkit.Image { - rv := objc.Call[appkit.Image](p_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1503911-runmodal?language=objc +func (p_ PictureTaker) RunModal() int { + rv := objc.Call[int](p_, objc.Sel("runModal")) return rv } +// Opens a picture taker pane. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1503448-beginpicturetakerwithdelegate?language=objc +func (p_ PictureTaker) BeginPictureTakerWithDelegateDidEndSelectorContextInfo(delegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) { + objc.Call[objc.Void](p_, objc.Sel("beginPictureTakerWithDelegate:didEndSelector:contextInfo:"), delegate, didEndSelector, contextInfo) +} + // Opens a picture taker as a sheet whose parent is the specified window. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1504302-beginpicturetakersheetforwindow?language=objc @@ -134,11 +142,11 @@ func (p_ PictureTaker) BeginPictureTakerSheetForWindowWithDelegateDidEndSelector objc.Call[objc.Void](p_, objc.Sel("beginPictureTakerSheetForWindow:withDelegate:didEndSelector:contextInfo:"), aWindow, delegate, didEndSelector, contextInfo) } -// Displays the Open Recent popup menu associated with the picture taker. [Full Topic] +// Controls whether the receiver enables video mirroring during snapshots. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1504753-popuprecentsmenuforview?language=objc -func (p_ PictureTaker) PopUpRecentsMenuForViewWithDelegateDidEndSelectorContextInfo(aView appkit.IView, delegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](p_, objc.Sel("popUpRecentsMenuForView:withDelegate:didEndSelector:contextInfo:"), aView, delegate, didEndSelector, contextInfo) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1504915-setmirroring?language=objc +func (p_ PictureTaker) SetMirroring(b bool) { + objc.Call[objc.Void](p_, objc.Sel("setMirroring:"), b) } // Returns a shared IKPictureTaker instance, creating it if necessary. [Full Topic] @@ -156,13 +164,6 @@ func PictureTaker_PictureTaker() PictureTaker { return PictureTakerClass.PictureTaker() } -// Set the image input for the picture taker. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1503724-setinputimage?language=objc -func (p_ PictureTaker) SetInputImage(image appkit.IImage) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), image) -} - // Returns the edited image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1504563-outputimage?language=objc @@ -170,18 +171,3 @@ func (p_ PictureTaker) OutputImage() appkit.Image { rv := objc.Call[appkit.Image](p_, objc.Sel("outputImage")) return rv } - -// Opens a modal picture taker dialog. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1503911-runmodal?language=objc -func (p_ PictureTaker) RunModal() int { - rv := objc.Call[int](p_, objc.Sel("runModal")) - return rv -} - -// Opens a picture taker pane. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1503448-beginpicturetakerwithdelegate?language=objc -func (p_ PictureTaker) BeginPictureTakerWithDelegateDidEndSelectorContextInfo(delegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) { - objc.Call[objc.Void](p_, objc.Sel("beginPictureTakerWithDelegate:didEndSelector:contextInfo:"), delegate, didEndSelector, contextInfo) -} diff --git a/macos/quartz/plug_in_context_protocol.gen.go b/macos/quartz/plug_in_context_protocol.gen.go index 42852586..da472c93 100644 --- a/macos/quartz/plug_in_context_protocol.gen.go +++ b/macos/quartz/plug_in_context_protocol.gen.go @@ -6,7 +6,7 @@ import ( "github.com/progrium/darwinkit/objc" ) -// The QCPlugInContext protocol defines methods that you use only from within the execution method ([quartz/qcplugin/execute]) of a QCPlugIn object. [Full Topic] +// The QCPlugInContext protocol defines methods that you use only from within the execution method (execute:atTime:withArguments:) of a QCPlugIn object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/qcplugincontext?language=objc type PPlugInContext interface { diff --git a/macos/quartz/quartz_filter.gen.go b/macos/quartz/quartz_filter.gen.go index 15b16433..48564169 100644 --- a/macos/quartz/quartz_filter.gen.go +++ b/macos/quartz/quartz_filter.gen.go @@ -20,11 +20,11 @@ type _QuartzFilterClass struct { // An interface definition for the [QuartzFilter] class. type IQuartzFilter interface { objc.IObject - Properties() foundation.Dictionary - Url() foundation.URL + ApplyToContext(aContext coregraphics.ContextRef) bool RemoveFromContext(aContext coregraphics.ContextRef) LocalizedName() string - ApplyToContext(aContext coregraphics.ContextRef) bool + Properties() foundation.Dictionary + Url() foundation.URL } // [Full Topic] @@ -62,84 +62,84 @@ func (q_ QuartzFilter) Init() QuartzFilter { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433673-quartzfilterwithproperties?language=objc -func (qc _QuartzFilterClass) QuartzFilterWithProperties(properties foundation.Dictionary) QuartzFilter { - rv := objc.Call[QuartzFilter](qc, objc.Sel("quartzFilterWithProperties:"), properties) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433684-applytocontext?language=objc +func (q_ QuartzFilter) ApplyToContext(aContext coregraphics.ContextRef) bool { + rv := objc.Call[bool](q_, objc.Sel("applyToContext:"), aContext) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433673-quartzfilterwithproperties?language=objc -func QuartzFilter_QuartzFilterWithProperties(properties foundation.Dictionary) QuartzFilter { - return QuartzFilterClass.QuartzFilterWithProperties(properties) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433679-removefromcontext?language=objc +func (q_ QuartzFilter) RemoveFromContext(aContext coregraphics.ContextRef) { + objc.Call[objc.Void](q_, objc.Sel("removeFromContext:"), aContext) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433675-quartzfilterwithoutputintents?language=objc -func (qc _QuartzFilterClass) QuartzFilterWithOutputIntents(outputIntents []objc.IObject) QuartzFilter { - rv := objc.Call[QuartzFilter](qc, objc.Sel("quartzFilterWithOutputIntents:"), outputIntents) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433671-quartzfilterwithurl?language=objc +func (qc _QuartzFilterClass) QuartzFilterWithURL(aURL foundation.IURL) QuartzFilter { + rv := objc.Call[QuartzFilter](qc, objc.Sel("quartzFilterWithURL:"), aURL) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433675-quartzfilterwithoutputintents?language=objc -func QuartzFilter_QuartzFilterWithOutputIntents(outputIntents []objc.IObject) QuartzFilter { - return QuartzFilterClass.QuartzFilterWithOutputIntents(outputIntents) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433671-quartzfilterwithurl?language=objc +func QuartzFilter_QuartzFilterWithURL(aURL foundation.IURL) QuartzFilter { + return QuartzFilterClass.QuartzFilterWithURL(aURL) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433686-properties?language=objc -func (q_ QuartzFilter) Properties() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](q_, objc.Sel("properties")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433675-quartzfilterwithoutputintents?language=objc +func (qc _QuartzFilterClass) QuartzFilterWithOutputIntents(outputIntents []objc.IObject) QuartzFilter { + rv := objc.Call[QuartzFilter](qc, objc.Sel("quartzFilterWithOutputIntents:"), outputIntents) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433677-url?language=objc -func (q_ QuartzFilter) Url() foundation.URL { - rv := objc.Call[foundation.URL](q_, objc.Sel("url")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433675-quartzfilterwithoutputintents?language=objc +func QuartzFilter_QuartzFilterWithOutputIntents(outputIntents []objc.IObject) QuartzFilter { + return QuartzFilterClass.QuartzFilterWithOutputIntents(outputIntents) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433671-quartzfilterwithurl?language=objc -func (qc _QuartzFilterClass) QuartzFilterWithURL(aURL foundation.IURL) QuartzFilter { - rv := objc.Call[QuartzFilter](qc, objc.Sel("quartzFilterWithURL:"), aURL) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433673-quartzfilterwithproperties?language=objc +func (qc _QuartzFilterClass) QuartzFilterWithProperties(properties foundation.Dictionary) QuartzFilter { + rv := objc.Call[QuartzFilter](qc, objc.Sel("quartzFilterWithProperties:"), properties) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433671-quartzfilterwithurl?language=objc -func QuartzFilter_QuartzFilterWithURL(aURL foundation.IURL) QuartzFilter { - return QuartzFilterClass.QuartzFilterWithURL(aURL) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433673-quartzfilterwithproperties?language=objc +func QuartzFilter_QuartzFilterWithProperties(properties foundation.Dictionary) QuartzFilter { + return QuartzFilterClass.QuartzFilterWithProperties(properties) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433679-removefromcontext?language=objc -func (q_ QuartzFilter) RemoveFromContext(aContext coregraphics.ContextRef) { - objc.Call[objc.Void](q_, objc.Sel("removeFromContext:"), aContext) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433682-localizedname?language=objc +func (q_ QuartzFilter) LocalizedName() string { + rv := objc.Call[string](q_, objc.Sel("localizedName")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433682-localizedname?language=objc -func (q_ QuartzFilter) LocalizedName() string { - rv := objc.Call[string](q_, objc.Sel("localizedName")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433686-properties?language=objc +func (q_ QuartzFilter) Properties() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](q_, objc.Sel("properties")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433684-applytocontext?language=objc -func (q_ QuartzFilter) ApplyToContext(aContext coregraphics.ContextRef) bool { - rv := objc.Call[bool](q_, objc.Sel("applyToContext:"), aContext) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfilter/1433677-url?language=objc +func (q_ QuartzFilter) Url() foundation.URL { + rv := objc.Call[foundation.URL](q_, objc.Sel("url")) return rv } diff --git a/macos/quartz/quartz_filter_manager.gen.go b/macos/quartz/quartz_filter_manager.gen.go index 761a6813..561ed307 100644 --- a/macos/quartz/quartz_filter_manager.gen.go +++ b/macos/quartz/quartz_filter_manager.gen.go @@ -21,11 +21,11 @@ type _QuartzFilterManagerClass struct { type IQuartzFilterManager interface { objc.IObject SetDelegate(aDelegate objc.IObject) - Delegate() objc.Object - SelectedFilter() QuartzFilter SelectFilter(filter IQuartzFilter) bool - FilterView() QuartzFilterView FilterPanel() appkit.Panel + Delegate() objc.Object + FilterView() QuartzFilterView + SelectedFilter() QuartzFilter ImportFilter(filterProperties foundation.Dictionary) QuartzFilter } @@ -71,17 +71,18 @@ func (q_ QuartzFilterManager) SetDelegate(aDelegate objc.IObject) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1503432-filtersindomains?language=objc -func (qc _QuartzFilterManagerClass) FiltersInDomains(domains []objc.IObject) []objc.Object { - rv := objc.Call[[]objc.Object](qc, objc.Sel("filtersInDomains:"), domains) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1503913-selectfilter?language=objc +func (q_ QuartzFilterManager) SelectFilter(filter IQuartzFilter) bool { + rv := objc.Call[bool](q_, objc.Sel("selectFilter:"), filter) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1503432-filtersindomains?language=objc -func QuartzFilterManager_FiltersInDomains(domains []objc.IObject) []objc.Object { - return QuartzFilterManagerClass.FiltersInDomains(domains) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1505297-filterpanel?language=objc +func (q_ QuartzFilterManager) FilterPanel() appkit.Panel { + rv := objc.Call[appkit.Panel](q_, objc.Sel("filterPanel")) + return rv } // [Full Topic] @@ -92,6 +93,14 @@ func (q_ QuartzFilterManager) Delegate() objc.Object { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1505290-filterview?language=objc +func (q_ QuartzFilterManager) FilterView() QuartzFilterView { + rv := objc.Call[QuartzFilterView](q_, objc.Sel("filterView")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1518336-filtermanager?language=objc @@ -109,33 +118,24 @@ func QuartzFilterManager_FilterManager() QuartzFilterManager { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1504816-selectedfilter?language=objc -func (q_ QuartzFilterManager) SelectedFilter() QuartzFilter { - rv := objc.Call[QuartzFilter](q_, objc.Sel("selectedFilter")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1503913-selectfilter?language=objc -func (q_ QuartzFilterManager) SelectFilter(filter IQuartzFilter) bool { - rv := objc.Call[bool](q_, objc.Sel("selectFilter:"), filter) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1503432-filtersindomains?language=objc +func (qc _QuartzFilterManagerClass) FiltersInDomains(domains []objc.IObject) []objc.Object { + rv := objc.Call[[]objc.Object](qc, objc.Sel("filtersInDomains:"), domains) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1505290-filterview?language=objc -func (q_ QuartzFilterManager) FilterView() QuartzFilterView { - rv := objc.Call[QuartzFilterView](q_, objc.Sel("filterView")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1503432-filtersindomains?language=objc +func QuartzFilterManager_FiltersInDomains(domains []objc.IObject) []objc.Object { + return QuartzFilterManagerClass.FiltersInDomains(domains) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1505297-filterpanel?language=objc -func (q_ QuartzFilterManager) FilterPanel() appkit.Panel { - rv := objc.Call[appkit.Panel](q_, objc.Sel("filterPanel")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/quartzfiltermanager/1504816-selectedfilter?language=objc +func (q_ QuartzFilterManager) SelectedFilter() QuartzFilter { + rv := objc.Call[QuartzFilter](q_, objc.Sel("selectedFilter")) return rv } diff --git a/macos/quartz/save_options.gen.go b/macos/quartz/save_options.gen.go index eaffb5cc..bffaf55e 100644 --- a/macos/quartz/save_options.gen.go +++ b/macos/quartz/save_options.gen.go @@ -22,11 +22,11 @@ type ISaveOptions interface { objc.IObject AddSaveOptionsToView(view appkit.IView) AddSaveOptionsAccessoryViewToSavePanel(savePanel appkit.ISavePanel) - UserSelection() foundation.Dictionary ImageUTType() string - ImageProperties() foundation.Dictionary Delegate() objc.Object SetDelegate(value objc.IObject) + ImageProperties() foundation.Dictionary + UserSelection() foundation.Dictionary RememberLastSetting() bool SetRememberLastSetting(value bool) } @@ -92,14 +92,6 @@ func (s_ SaveOptions) AddSaveOptionsAccessoryViewToSavePanel(savePanel appkit.IS objc.Call[objc.Void](s_, objc.Sel("addSaveOptionsAccessoryViewToSavePanel:"), savePanel) } -// Returns a dictionary that contains the save options selected by the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/iksaveoptions/1504791-userselection?language=objc -func (s_ SaveOptions) UserSelection() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](s_, objc.Sel("userSelection")) - return rv -} - // Returns the uniform type identifier that reflects the user’s selection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/iksaveoptions/1504388-imageuttype?language=objc @@ -108,14 +100,6 @@ func (s_ SaveOptions) ImageUTType() string { return rv } -// Returns a dictionary of updated image properties that reflects the user’s selection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/iksaveoptions/1505299-imageproperties?language=objc -func (s_ SaveOptions) ImageProperties() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](s_, objc.Sel("imageProperties")) - return rv -} - // Specifies the delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/iksaveoptions/1503653-delegate?language=objc @@ -131,6 +115,22 @@ func (s_ SaveOptions) SetDelegate(value objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), value) } +// Returns a dictionary of updated image properties that reflects the user’s selection. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/iksaveoptions/1505299-imageproperties?language=objc +func (s_ SaveOptions) ImageProperties() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](s_, objc.Sel("imageProperties")) + return rv +} + +// Returns a dictionary that contains the save options selected by the user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/iksaveoptions/1504791-userselection?language=objc +func (s_ SaveOptions) UserSelection() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](s_, objc.Sel("userSelection")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/iksaveoptions/3738462-rememberlastsetting?language=objc diff --git a/macos/quartz/scanner_device_view.gen.go b/macos/quartz/scanner_device_view.gen.go index 668c6fac..e60dcd3b 100644 --- a/macos/quartz/scanner_device_view.gen.go +++ b/macos/quartz/scanner_device_view.gen.go @@ -20,29 +20,29 @@ type _ScannerDeviceViewClass struct { // An interface definition for the [ScannerDeviceView] class. type IScannerDeviceView interface { appkit.IView - OverviewControlLabel() string - SetOverviewControlLabel(value string) + DownloadsDirectory() foundation.URL + SetDownloadsDirectory(value foundation.IURL) + ScanControlLabel() string + SetScanControlLabel(value string) + HasDisplayModeSimple() bool + SetHasDisplayModeSimple(value bool) DisplaysDownloadsDirectoryControl() bool SetDisplaysDownloadsDirectoryControl(value bool) + DisplaysPostProcessApplicationControl() bool + SetDisplaysPostProcessApplicationControl(value bool) + TransferMode() ScannerDeviceViewTransferMode + SetTransferMode(value ScannerDeviceViewTransferMode) Delegate() ScannerDeviceViewDelegateObject SetDelegate(value PScannerDeviceViewDelegate) SetDelegateObject(valueObject objc.IObject) - DocumentName() string - SetDocumentName(value string) PostProcessApplication() foundation.URL SetPostProcessApplication(value foundation.IURL) - ScanControlLabel() string - SetScanControlLabel(value string) - TransferMode() ScannerDeviceViewTransferMode - SetTransferMode(value ScannerDeviceViewTransferMode) + DocumentName() string + SetDocumentName(value string) Mode() ScannerDeviceViewDisplayMode SetMode(value ScannerDeviceViewDisplayMode) - HasDisplayModeSimple() bool - SetHasDisplayModeSimple(value bool) - DownloadsDirectory() foundation.URL - SetDownloadsDirectory(value foundation.IURL) - DisplaysPostProcessApplicationControl() bool - SetDisplaysPostProcessApplicationControl(value bool) + OverviewControlLabel() string + SetOverviewControlLabel(value string) HasDisplayModeAdvanced() bool SetHasDisplayModeAdvanced(value bool) } @@ -94,19 +94,49 @@ func NewScannerDeviceViewWithFrame(frameRect foundation.Rect) ScannerDeviceView return instance } -// Allows customization of the “Overview” label. [Full Topic] +// The directory where scans are saved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504055-overviewcontrollabel?language=objc -func (s_ ScannerDeviceView) OverviewControlLabel() string { - rv := objc.Call[string](s_, objc.Sel("overviewControlLabel")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1503585-downloadsdirectory?language=objc +func (s_ ScannerDeviceView) DownloadsDirectory() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("downloadsDirectory")) return rv } -// Allows customization of the “Overview” label. [Full Topic] +// The directory where scans are saved. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504055-overviewcontrollabel?language=objc -func (s_ ScannerDeviceView) SetOverviewControlLabel(value string) { - objc.Call[objc.Void](s_, objc.Sel("setOverviewControlLabel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1503585-downloadsdirectory?language=objc +func (s_ ScannerDeviceView) SetDownloadsDirectory(value foundation.IURL) { + objc.Call[objc.Void](s_, objc.Sel("setDownloadsDirectory:"), value) +} + +// Allows customization of the “Scan” label. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504143-scancontrollabel?language=objc +func (s_ ScannerDeviceView) ScanControlLabel() string { + rv := objc.Call[string](s_, objc.Sel("scanControlLabel")) + return rv +} + +// Allows customization of the “Scan” label. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504143-scancontrollabel?language=objc +func (s_ ScannerDeviceView) SetScanControlLabel(value string) { + objc.Call[objc.Void](s_, objc.Sel("setScanControlLabel:"), value) +} + +// The property that determines whether the scanner view uses the simple display mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504506-hasdisplaymodesimple?language=objc +func (s_ ScannerDeviceView) HasDisplayModeSimple() bool { + rv := objc.Call[bool](s_, objc.Sel("hasDisplayModeSimple")) + return rv +} + +// The property that determines whether the scanner view uses the simple display mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504506-hasdisplaymodesimple?language=objc +func (s_ ScannerDeviceView) SetHasDisplayModeSimple(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setHasDisplayModeSimple:"), value) } // Determines whether the downloads directory control is displayed. [Full Topic] @@ -124,6 +154,36 @@ func (s_ ScannerDeviceView) SetDisplaysDownloadsDirectoryControl(value bool) { objc.Call[objc.Void](s_, objc.Sel("setDisplaysDownloadsDirectoryControl:"), value) } +// Specifies whether the post processing application control is displayed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1505053-displayspostprocessapplicationco?language=objc +func (s_ ScannerDeviceView) DisplaysPostProcessApplicationControl() bool { + rv := objc.Call[bool](s_, objc.Sel("displaysPostProcessApplicationControl")) + return rv +} + +// Specifies whether the post processing application control is displayed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1505053-displayspostprocessapplicationco?language=objc +func (s_ ScannerDeviceView) SetDisplaysPostProcessApplicationControl(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setDisplaysPostProcessApplicationControl:"), value) +} + +// Determines how the scanned content is provided to the delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1505017-transfermode?language=objc +func (s_ ScannerDeviceView) TransferMode() ScannerDeviceViewTransferMode { + rv := objc.Call[ScannerDeviceViewTransferMode](s_, objc.Sel("transferMode")) + return rv +} + +// Determines how the scanned content is provided to the delegate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1505017-transfermode?language=objc +func (s_ ScannerDeviceView) SetTransferMode(value ScannerDeviceViewTransferMode) { + objc.Call[objc.Void](s_, objc.Sel("setTransferMode:"), value) +} + // The scanner device delegate [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504170-delegate?language=objc @@ -147,21 +207,6 @@ func (s_ ScannerDeviceView) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), valueObject) } -// Returns the document name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1503744-documentname?language=objc -func (s_ ScannerDeviceView) DocumentName() string { - rv := objc.Call[string](s_, objc.Sel("documentName")) - return rv -} - -// Returns the document name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1503744-documentname?language=objc -func (s_ ScannerDeviceView) SetDocumentName(value string) { - objc.Call[objc.Void](s_, objc.Sel("setDocumentName:"), value) -} - // The URL of the application to use for post processing of the scan. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1505215-postprocessapplication?language=objc @@ -177,34 +222,19 @@ func (s_ ScannerDeviceView) SetPostProcessApplication(value foundation.IURL) { objc.Call[objc.Void](s_, objc.Sel("setPostProcessApplication:"), value) } -// Allows customization of the “Scan” label. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504143-scancontrollabel?language=objc -func (s_ ScannerDeviceView) ScanControlLabel() string { - rv := objc.Call[string](s_, objc.Sel("scanControlLabel")) - return rv -} - -// Allows customization of the “Scan” label. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504143-scancontrollabel?language=objc -func (s_ ScannerDeviceView) SetScanControlLabel(value string) { - objc.Call[objc.Void](s_, objc.Sel("setScanControlLabel:"), value) -} - -// Determines how the scanned content is provided to the delegate. [Full Topic] +// Returns the document name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1505017-transfermode?language=objc -func (s_ ScannerDeviceView) TransferMode() ScannerDeviceViewTransferMode { - rv := objc.Call[ScannerDeviceViewTransferMode](s_, objc.Sel("transferMode")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1503744-documentname?language=objc +func (s_ ScannerDeviceView) DocumentName() string { + rv := objc.Call[string](s_, objc.Sel("documentName")) return rv } -// Determines how the scanned content is provided to the delegate. [Full Topic] +// Returns the document name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1505017-transfermode?language=objc -func (s_ ScannerDeviceView) SetTransferMode(value ScannerDeviceViewTransferMode) { - objc.Call[objc.Void](s_, objc.Sel("setTransferMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1503744-documentname?language=objc +func (s_ ScannerDeviceView) SetDocumentName(value string) { + objc.Call[objc.Void](s_, objc.Sel("setDocumentName:"), value) } // The display mode used by the device view. [Full Topic] @@ -222,49 +252,19 @@ func (s_ ScannerDeviceView) SetMode(value ScannerDeviceViewDisplayMode) { objc.Call[objc.Void](s_, objc.Sel("setMode:"), value) } -// The property that determines whether the scanner view uses the simple display mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504506-hasdisplaymodesimple?language=objc -func (s_ ScannerDeviceView) HasDisplayModeSimple() bool { - rv := objc.Call[bool](s_, objc.Sel("hasDisplayModeSimple")) - return rv -} - -// The property that determines whether the scanner view uses the simple display mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504506-hasdisplaymodesimple?language=objc -func (s_ ScannerDeviceView) SetHasDisplayModeSimple(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setHasDisplayModeSimple:"), value) -} - -// The directory where scans are saved. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1503585-downloadsdirectory?language=objc -func (s_ ScannerDeviceView) DownloadsDirectory() foundation.URL { - rv := objc.Call[foundation.URL](s_, objc.Sel("downloadsDirectory")) - return rv -} - -// The directory where scans are saved. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1503585-downloadsdirectory?language=objc -func (s_ ScannerDeviceView) SetDownloadsDirectory(value foundation.IURL) { - objc.Call[objc.Void](s_, objc.Sel("setDownloadsDirectory:"), value) -} - -// Specifies whether the post processing application control is displayed. [Full Topic] +// Allows customization of the “Overview” label. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1505053-displayspostprocessapplicationco?language=objc -func (s_ ScannerDeviceView) DisplaysPostProcessApplicationControl() bool { - rv := objc.Call[bool](s_, objc.Sel("displaysPostProcessApplicationControl")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504055-overviewcontrollabel?language=objc +func (s_ ScannerDeviceView) OverviewControlLabel() string { + rv := objc.Call[string](s_, objc.Sel("overviewControlLabel")) return rv } -// Specifies whether the post processing application control is displayed. [Full Topic] +// Allows customization of the “Overview” label. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1505053-displayspostprocessapplicationco?language=objc -func (s_ ScannerDeviceView) SetDisplaysPostProcessApplicationControl(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setDisplaysPostProcessApplicationControl:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceview/1504055-overviewcontrollabel?language=objc +func (s_ ScannerDeviceView) SetOverviewControlLabel(value string) { + objc.Call[objc.Void](s_, objc.Sel("setOverviewControlLabel:"), value) } // The property that determines whether the scanner view uses the advanced display mode. [Full Topic] diff --git a/macos/quartz/scanner_device_view_delegate.gen.go b/macos/quartz/scanner_device_view_delegate.gen.go index 6f1c5344..193bc412 100644 --- a/macos/quartz/scanner_device_view_delegate.gen.go +++ b/macos/quartz/scanner_device_view_delegate.gen.go @@ -14,26 +14,11 @@ type PScannerDeviceViewDelegate interface { // optional ScannerDeviceViewDidScanToURLError(scannerDeviceView ScannerDeviceView, url foundation.URL, error foundation.Error) HasScannerDeviceViewDidScanToURLError() bool - - // optional - ScannerDeviceViewDidEncounterError(scannerDeviceView ScannerDeviceView, error foundation.Error) - HasScannerDeviceViewDidEncounterError() bool - - // optional - ScannerDeviceViewDidScanToURLFileDataError(scannerDeviceView ScannerDeviceView, url foundation.URL, data []byte, error foundation.Error) - HasScannerDeviceViewDidScanToURLFileDataError() bool - - // optional - ScannerDeviceViewDidScanToBandDataScanInfoError(scannerDeviceView ScannerDeviceView, data objc.Object, scanInfo foundation.Dictionary, error foundation.Error) - HasScannerDeviceViewDidScanToBandDataScanInfoError() bool } // A delegate implementation builder for the [PScannerDeviceViewDelegate] protocol. type ScannerDeviceViewDelegate struct { - _ScannerDeviceViewDidScanToURLError func(scannerDeviceView ScannerDeviceView, url foundation.URL, error foundation.Error) - _ScannerDeviceViewDidEncounterError func(scannerDeviceView ScannerDeviceView, error foundation.Error) - _ScannerDeviceViewDidScanToURLFileDataError func(scannerDeviceView ScannerDeviceView, url foundation.URL, data []byte, error foundation.Error) - _ScannerDeviceViewDidScanToBandDataScanInfoError func(scannerDeviceView ScannerDeviceView, data objc.Object, scanInfo foundation.Dictionary, error foundation.Error) + _ScannerDeviceViewDidScanToURLError func(scannerDeviceView ScannerDeviceView, url foundation.URL, error foundation.Error) } func (di *ScannerDeviceViewDelegate) HasScannerDeviceViewDidScanToURLError() bool { @@ -53,57 +38,6 @@ func (di *ScannerDeviceViewDelegate) SetScannerDeviceViewDidScanToURLError(f fun func (di *ScannerDeviceViewDelegate) ScannerDeviceViewDidScanToURLError(scannerDeviceView ScannerDeviceView, url foundation.URL, error foundation.Error) { di._ScannerDeviceViewDidScanToURLError(scannerDeviceView, url, error) } -func (di *ScannerDeviceViewDelegate) HasScannerDeviceViewDidEncounterError() bool { - return di._ScannerDeviceViewDidEncounterError != nil -} - -// Invoked whenever the scanner encounters an error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdelegate/1503476-scannerdeviceview?language=objc -func (di *ScannerDeviceViewDelegate) SetScannerDeviceViewDidEncounterError(f func(scannerDeviceView ScannerDeviceView, error foundation.Error)) { - di._ScannerDeviceViewDidEncounterError = f -} - -// Invoked whenever the scanner encounters an error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdelegate/1503476-scannerdeviceview?language=objc -func (di *ScannerDeviceViewDelegate) ScannerDeviceViewDidEncounterError(scannerDeviceView ScannerDeviceView, error foundation.Error) { - di._ScannerDeviceViewDidEncounterError(scannerDeviceView, error) -} -func (di *ScannerDeviceViewDelegate) HasScannerDeviceViewDidScanToURLFileDataError() bool { - return di._ScannerDeviceViewDidScanToURLFileDataError != nil -} - -// Invoked when the scan has completed and the data is available. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdelegate/1504462-scannerdeviceview?language=objc -func (di *ScannerDeviceViewDelegate) SetScannerDeviceViewDidScanToURLFileDataError(f func(scannerDeviceView ScannerDeviceView, url foundation.URL, data []byte, error foundation.Error)) { - di._ScannerDeviceViewDidScanToURLFileDataError = f -} - -// Invoked when the scan has completed and the data is available. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdelegate/1504462-scannerdeviceview?language=objc -func (di *ScannerDeviceViewDelegate) ScannerDeviceViewDidScanToURLFileDataError(scannerDeviceView ScannerDeviceView, url foundation.URL, data []byte, error foundation.Error) { - di._ScannerDeviceViewDidScanToURLFileDataError(scannerDeviceView, url, data, error) -} -func (di *ScannerDeviceViewDelegate) HasScannerDeviceViewDidScanToBandDataScanInfoError() bool { - return di._ScannerDeviceViewDidScanToBandDataScanInfoError != nil -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdelegate/1503867-scannerdeviceview?language=objc -func (di *ScannerDeviceViewDelegate) SetScannerDeviceViewDidScanToBandDataScanInfoError(f func(scannerDeviceView ScannerDeviceView, data objc.Object, scanInfo foundation.Dictionary, error foundation.Error)) { - di._ScannerDeviceViewDidScanToBandDataScanInfoError = f -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdelegate/1503867-scannerdeviceview?language=objc -func (di *ScannerDeviceViewDelegate) ScannerDeviceViewDidScanToBandDataScanInfoError(scannerDeviceView ScannerDeviceView, data objc.Object, scanInfo foundation.Dictionary, error foundation.Error) { - di._ScannerDeviceViewDidScanToBandDataScanInfoError(scannerDeviceView, data, scanInfo, error) -} // ensure impl type implements protocol interface var _ PScannerDeviceViewDelegate = (*ScannerDeviceViewDelegateObject)(nil) @@ -123,36 +57,3 @@ func (s_ ScannerDeviceViewDelegateObject) HasScannerDeviceViewDidScanToURLError( func (s_ ScannerDeviceViewDelegateObject) ScannerDeviceViewDidScanToURLError(scannerDeviceView ScannerDeviceView, url foundation.URL, error foundation.Error) { objc.Call[objc.Void](s_, objc.Sel("scannerDeviceView:didScanToURL:error:"), scannerDeviceView, url, error) } - -func (s_ ScannerDeviceViewDelegateObject) HasScannerDeviceViewDidEncounterError() bool { - return s_.RespondsToSelector(objc.Sel("scannerDeviceView:didEncounterError:")) -} - -// Invoked whenever the scanner encounters an error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdelegate/1503476-scannerdeviceview?language=objc -func (s_ ScannerDeviceViewDelegateObject) ScannerDeviceViewDidEncounterError(scannerDeviceView ScannerDeviceView, error foundation.Error) { - objc.Call[objc.Void](s_, objc.Sel("scannerDeviceView:didEncounterError:"), scannerDeviceView, error) -} - -func (s_ ScannerDeviceViewDelegateObject) HasScannerDeviceViewDidScanToURLFileDataError() bool { - return s_.RespondsToSelector(objc.Sel("scannerDeviceView:didScanToURL:fileData:error:")) -} - -// Invoked when the scan has completed and the data is available. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdelegate/1504462-scannerdeviceview?language=objc -func (s_ ScannerDeviceViewDelegateObject) ScannerDeviceViewDidScanToURLFileDataError(scannerDeviceView ScannerDeviceView, url foundation.URL, data []byte, error foundation.Error) { - objc.Call[objc.Void](s_, objc.Sel("scannerDeviceView:didScanToURL:fileData:error:"), scannerDeviceView, url, data, error) -} - -func (s_ ScannerDeviceViewDelegateObject) HasScannerDeviceViewDidScanToBandDataScanInfoError() bool { - return s_.RespondsToSelector(objc.Sel("scannerDeviceView:didScanToBandData:scanInfo:error:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdelegate/1503867-scannerdeviceview?language=objc -func (s_ ScannerDeviceViewDelegateObject) ScannerDeviceViewDidScanToBandDataScanInfoError(scannerDeviceView ScannerDeviceView, data objc.Object, scanInfo foundation.Dictionary, error foundation.Error) { - objc.Call[objc.Void](s_, objc.Sel("scannerDeviceView:didScanToBandData:scanInfo:error:"), scannerDeviceView, data, scanInfo, error) -} diff --git a/macos/quartz/slideshow.gen.go b/macos/quartz/slideshow.gen.go index 7083e597..c353a57e 100644 --- a/macos/quartz/slideshow.gen.go +++ b/macos/quartz/slideshow.gen.go @@ -19,12 +19,12 @@ type _SlideshowClass struct { // An interface definition for the [Slideshow] class. type ISlideshow interface { objc.IObject - ReloadSlideshowItemAtIndex(index uint) - ReloadData() + IndexOfCurrentSlideshowItem() uint RunSlideshowWithDataSourceInModeOptions(dataSource PSlideshowDataSource, slideshowMode string, slideshowOptions foundation.Dictionary) RunSlideshowWithDataSourceObjectInModeOptions(dataSourceObject objc.IObject, slideshowMode string, slideshowOptions foundation.Dictionary) StopSlideshow(sender objc.IObject) - IndexOfCurrentSlideshowItem() uint + ReloadSlideshowItemAtIndex(index uint) + ReloadData() AutoPlayDelay() foundation.TimeInterval SetAutoPlayDelay(value foundation.TimeInterval) } @@ -62,35 +62,28 @@ func (s_ Slideshow) Init() Slideshow { return rv } -// Reloads the data for a slideshow, starting at the specified index. [Full Topic] +// Exports a slideshow item to the application that has the provided bundle identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504713-reloadslideshowitematindex?language=objc -func (s_ Slideshow) ReloadSlideshowItemAtIndex(index uint) { - objc.Call[objc.Void](s_, objc.Sel("reloadSlideshowItemAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1503513-exportslideshowitem?language=objc +func (sc _SlideshowClass) ExportSlideshowItemToApplication(item objc.IObject, applicationBundleIdentifier string) { + objc.Call[objc.Void](sc, objc.Sel("exportSlideshowItem:toApplication:"), item, applicationBundleIdentifier) } -// Reloads the data for a slideshow. [Full Topic] +// Exports a slideshow item to the application that has the provided bundle identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504298-reloaddata?language=objc -func (s_ Slideshow) ReloadData() { - objc.Call[objc.Void](s_, objc.Sel("reloadData")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1503513-exportslideshowitem?language=objc +func Slideshow_ExportSlideshowItemToApplication(item objc.IObject, applicationBundleIdentifier string) { + SlideshowClass.ExportSlideshowItemToApplication(item, applicationBundleIdentifier) } -// Returns a shared instance of a slideshow. [Full Topic] +// Returns the index of the current slideshow item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504883-sharedslideshow?language=objc -func (sc _SlideshowClass) SharedSlideshow() Slideshow { - rv := objc.Call[Slideshow](sc, objc.Sel("sharedSlideshow")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1503700-indexofcurrentslideshowitem?language=objc +func (s_ Slideshow) IndexOfCurrentSlideshowItem() uint { + rv := objc.Call[uint](s_, objc.Sel("indexOfCurrentSlideshowItem")) return rv } -// Returns a shared instance of a slideshow. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504883-sharedslideshow?language=objc -func Slideshow_SharedSlideshow() Slideshow { - return SlideshowClass.SharedSlideshow() -} - // Runs a slideshow that contains the specified kind of items, provided from a data source. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504036-runslideshowwithdatasource?language=objc @@ -106,6 +99,13 @@ func (s_ Slideshow) RunSlideshowWithDataSourceObjectInModeOptions(dataSourceObje objc.Call[objc.Void](s_, objc.Sel("runSlideshowWithDataSource:inMode:options:"), dataSourceObject, slideshowMode, slideshowOptions) } +// Stops a slideshow. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1503801-stopslideshow?language=objc +func (s_ Slideshow) StopSlideshow(sender objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("stopSlideshow:"), sender) +} + // Finds out whether the slideshow can export its contents to an application. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504783-canexporttoapplication?language=objc @@ -121,33 +121,33 @@ func Slideshow_CanExportToApplication(applicationBundleIdentifier string) bool { return SlideshowClass.CanExportToApplication(applicationBundleIdentifier) } -// Exports a slideshow item to the application that has the provided bundle identifier. [Full Topic] +// Reloads the data for a slideshow, starting at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1503513-exportslideshowitem?language=objc -func (sc _SlideshowClass) ExportSlideshowItemToApplication(item objc.IObject, applicationBundleIdentifier string) { - objc.Call[objc.Void](sc, objc.Sel("exportSlideshowItem:toApplication:"), item, applicationBundleIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504713-reloadslideshowitematindex?language=objc +func (s_ Slideshow) ReloadSlideshowItemAtIndex(index uint) { + objc.Call[objc.Void](s_, objc.Sel("reloadSlideshowItemAtIndex:"), index) } -// Exports a slideshow item to the application that has the provided bundle identifier. [Full Topic] +// Returns a shared instance of a slideshow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1503513-exportslideshowitem?language=objc -func Slideshow_ExportSlideshowItemToApplication(item objc.IObject, applicationBundleIdentifier string) { - SlideshowClass.ExportSlideshowItemToApplication(item, applicationBundleIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504883-sharedslideshow?language=objc +func (sc _SlideshowClass) SharedSlideshow() Slideshow { + rv := objc.Call[Slideshow](sc, objc.Sel("sharedSlideshow")) + return rv } -// Stops a slideshow. [Full Topic] +// Returns a shared instance of a slideshow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1503801-stopslideshow?language=objc -func (s_ Slideshow) StopSlideshow(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("stopSlideshow:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504883-sharedslideshow?language=objc +func Slideshow_SharedSlideshow() Slideshow { + return SlideshowClass.SharedSlideshow() } -// Returns the index of the current slideshow item. [Full Topic] +// Reloads the data for a slideshow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1503700-indexofcurrentslideshowitem?language=objc -func (s_ Slideshow) IndexOfCurrentSlideshowItem() uint { - rv := objc.Call[uint](s_, objc.Sel("indexOfCurrentSlideshowItem")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504298-reloaddata?language=objc +func (s_ Slideshow) ReloadData() { + objc.Call[objc.Void](s_, objc.Sel("reloadData")) } // Controls the interval of time before a slideshow starts to play automatically. [Full Topic] diff --git a/macos/quartz/slideshow_data_source_protocol.gen.go b/macos/quartz/slideshow_data_source_protocol.gen.go index 057b242d..1fe98750 100644 --- a/macos/quartz/slideshow_data_source_protocol.gen.go +++ b/macos/quartz/slideshow_data_source_protocol.gen.go @@ -11,29 +11,29 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource?language=objc type PSlideshowDataSource interface { // optional - NumberOfSlideshowItems() uint - HasNumberOfSlideshowItems() bool - - // optional - SlideshowWillStart() - HasSlideshowWillStart() bool + CanExportSlideshowItemAtIndexToApplication(index uint, applicationBundleIdentifier string) bool + HasCanExportSlideshowItemAtIndexToApplication() bool // optional NameOfSlideshowItemAtIndex(index uint) string HasNameOfSlideshowItemAtIndex() bool // optional - CanExportSlideshowItemAtIndexToApplication(index uint, applicationBundleIdentifier string) bool - HasCanExportSlideshowItemAtIndexToApplication() bool + NumberOfSlideshowItems() uint + HasNumberOfSlideshowItems() bool // optional - SlideshowItemAtIndex(index uint) objc.Object - HasSlideshowItemAtIndex() bool + SlideshowWillStart() + HasSlideshowWillStart() bool // optional SlideshowDidStop() HasSlideshowDidStop() bool + // optional + SlideshowItemAtIndex(index uint) objc.Object + HasSlideshowItemAtIndex() bool + // optional SlideshowDidChangeCurrentIndex(newIndex uint) HasSlideshowDidChangeCurrentIndex() bool @@ -47,29 +47,18 @@ type SlideshowDataSourceObject struct { objc.Object } -func (s_ SlideshowDataSourceObject) HasNumberOfSlideshowItems() bool { - return s_.RespondsToSelector(objc.Sel("numberOfSlideshowItems")) +func (s_ SlideshowDataSourceObject) HasCanExportSlideshowItemAtIndexToApplication() bool { + return s_.RespondsToSelector(objc.Sel("canExportSlideshowItemAtIndex:toApplication:")) } -// Returns the number of items in a slideshow. [Full Topic] +// Reports whether the export button should be enabled for a slideshow item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1503441-numberofslideshowitems?language=objc -func (s_ SlideshowDataSourceObject) NumberOfSlideshowItems() uint { - rv := objc.Call[uint](s_, objc.Sel("numberOfSlideshowItems")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1505226-canexportslideshowitematindex?language=objc +func (s_ SlideshowDataSourceObject) CanExportSlideshowItemAtIndexToApplication(index uint, applicationBundleIdentifier string) bool { + rv := objc.Call[bool](s_, objc.Sel("canExportSlideshowItemAtIndex:toApplication:"), index, applicationBundleIdentifier) return rv } -func (s_ SlideshowDataSourceObject) HasSlideshowWillStart() bool { - return s_.RespondsToSelector(objc.Sel("slideshowWillStart")) -} - -// Performs custom tasks when the slideshow is about to start. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1504337-slideshowwillstart?language=objc -func (s_ SlideshowDataSourceObject) SlideshowWillStart() { - objc.Call[objc.Void](s_, objc.Sel("slideshowWillStart")) -} - func (s_ SlideshowDataSourceObject) HasNameOfSlideshowItemAtIndex() bool { return s_.RespondsToSelector(objc.Sel("nameOfSlideshowItemAtIndex:")) } @@ -82,28 +71,27 @@ func (s_ SlideshowDataSourceObject) NameOfSlideshowItemAtIndex(index uint) strin return rv } -func (s_ SlideshowDataSourceObject) HasCanExportSlideshowItemAtIndexToApplication() bool { - return s_.RespondsToSelector(objc.Sel("canExportSlideshowItemAtIndex:toApplication:")) +func (s_ SlideshowDataSourceObject) HasNumberOfSlideshowItems() bool { + return s_.RespondsToSelector(objc.Sel("numberOfSlideshowItems")) } -// Reports whether the export button should be enabled for a slideshow item. [Full Topic] +// Returns the number of items in a slideshow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1505226-canexportslideshowitematindex?language=objc -func (s_ SlideshowDataSourceObject) CanExportSlideshowItemAtIndexToApplication(index uint, applicationBundleIdentifier string) bool { - rv := objc.Call[bool](s_, objc.Sel("canExportSlideshowItemAtIndex:toApplication:"), index, applicationBundleIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1503441-numberofslideshowitems?language=objc +func (s_ SlideshowDataSourceObject) NumberOfSlideshowItems() uint { + rv := objc.Call[uint](s_, objc.Sel("numberOfSlideshowItems")) return rv } -func (s_ SlideshowDataSourceObject) HasSlideshowItemAtIndex() bool { - return s_.RespondsToSelector(objc.Sel("slideshowItemAtIndex:")) +func (s_ SlideshowDataSourceObject) HasSlideshowWillStart() bool { + return s_.RespondsToSelector(objc.Sel("slideshowWillStart")) } -// Returns the item for a given index [Full Topic] +// Performs custom tasks when the slideshow is about to start. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1503729-slideshowitematindex?language=objc -func (s_ SlideshowDataSourceObject) SlideshowItemAtIndex(index uint) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("slideshowItemAtIndex:"), index) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1504337-slideshowwillstart?language=objc +func (s_ SlideshowDataSourceObject) SlideshowWillStart() { + objc.Call[objc.Void](s_, objc.Sel("slideshowWillStart")) } func (s_ SlideshowDataSourceObject) HasSlideshowDidStop() bool { @@ -117,6 +105,18 @@ func (s_ SlideshowDataSourceObject) SlideshowDidStop() { objc.Call[objc.Void](s_, objc.Sel("slideshowDidStop")) } +func (s_ SlideshowDataSourceObject) HasSlideshowItemAtIndex() bool { + return s_.RespondsToSelector(objc.Sel("slideshowItemAtIndex:")) +} + +// Returns the item for a given index [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1503729-slideshowitematindex?language=objc +func (s_ SlideshowDataSourceObject) SlideshowItemAtIndex(index uint) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("slideshowItemAtIndex:"), index) + return rv +} + func (s_ SlideshowDataSourceObject) HasSlideshowDidChangeCurrentIndex() bool { return s_.RespondsToSelector(objc.Sel("slideshowDidChangeCurrentIndex:")) } diff --git a/macos/quartzcore/animation.gen.go b/macos/quartzcore/animation.gen.go index f9b4e600..dd76dad5 100644 --- a/macos/quartzcore/animation.gen.go +++ b/macos/quartzcore/animation.gen.go @@ -19,21 +19,21 @@ type _AnimationClass struct { type IAnimation interface { objc.IObject ShouldArchiveValueForKey(key string) bool - TimingFunction() MediaTimingFunction - SetTimingFunction(value IMediaTimingFunction) - FadeInDuration() float64 - SetFadeInDuration(value float64) + IsRemovedOnCompletion() bool + SetRemovedOnCompletion(value bool) + UsesSceneTimeBase() bool + SetUsesSceneTimeBase(value bool) Delegate() AnimationDelegateObject SetDelegate(value PAnimationDelegate) SetDelegateObject(valueObject objc.IObject) - PreferredFrameRateRange() FrameRateRange - SetPreferredFrameRateRange(value FrameRateRange) + FadeInDuration() float64 + SetFadeInDuration(value float64) FadeOutDuration() float64 SetFadeOutDuration(value float64) - IsRemovedOnCompletion() bool - SetRemovedOnCompletion(value bool) - UsesSceneTimeBase() bool - SetUsesSceneTimeBase(value bool) + TimingFunction() MediaTimingFunction + SetTimingFunction(value IMediaTimingFunction) + PreferredFrameRateRange() FrameRateRange + SetPreferredFrameRateRange(value FrameRateRange) } // The abstract superclass for animations in Core Animation. [Full Topic] @@ -104,34 +104,34 @@ func (a_ Animation) ShouldArchiveValueForKey(key string) bool { return rv } -// An optional timing function defining the pacing of the animation. [Full Topic] +// Determines if the animation is removed from the target layer’s animations upon completion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1412456-timingfunction?language=objc -func (a_ Animation) TimingFunction() MediaTimingFunction { - rv := objc.Call[MediaTimingFunction](a_, objc.Sel("timingFunction")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1412458-removedoncompletion?language=objc +func (a_ Animation) IsRemovedOnCompletion() bool { + rv := objc.Call[bool](a_, objc.Sel("isRemovedOnCompletion")) return rv } -// An optional timing function defining the pacing of the animation. [Full Topic] +// Determines if the animation is removed from the target layer’s animations upon completion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1412456-timingfunction?language=objc -func (a_ Animation) SetTimingFunction(value IMediaTimingFunction) { - objc.Call[objc.Void](a_, objc.Sel("setTimingFunction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1412458-removedoncompletion?language=objc +func (a_ Animation) SetRemovedOnCompletion(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setRemovedOnCompletion:"), value) } -// For animations attached to SceneKit objects, the duration for transitioning into the animation’s effect as it begins. [Full Topic] +// For animations attached to SceneKit objects, a Boolean value that determines whether the animation is evaluated using the scene time or the system time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1523370-fadeinduration?language=objc -func (a_ Animation) FadeInDuration() float64 { - rv := objc.Call[float64](a_, objc.Sel("fadeInDuration")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1523819-usesscenetimebase?language=objc +func (a_ Animation) UsesSceneTimeBase() bool { + rv := objc.Call[bool](a_, objc.Sel("usesSceneTimeBase")) return rv } -// For animations attached to SceneKit objects, the duration for transitioning into the animation’s effect as it begins. [Full Topic] +// For animations attached to SceneKit objects, a Boolean value that determines whether the animation is evaluated using the scene time or the system time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1523370-fadeinduration?language=objc -func (a_ Animation) SetFadeInDuration(value float64) { - objc.Call[objc.Void](a_, objc.Sel("setFadeInDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1523819-usesscenetimebase?language=objc +func (a_ Animation) SetUsesSceneTimeBase(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setUsesSceneTimeBase:"), value) } // Specifies the receiver’s delegate object. [Full Topic] @@ -157,19 +157,19 @@ func (a_ Animation) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), valueObject) } -// [Full Topic] +// For animations attached to SceneKit objects, the duration for transitioning into the animation’s effect as it begins. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/3875342-preferredframeraterange?language=objc -func (a_ Animation) PreferredFrameRateRange() FrameRateRange { - rv := objc.Call[FrameRateRange](a_, objc.Sel("preferredFrameRateRange")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1523370-fadeinduration?language=objc +func (a_ Animation) FadeInDuration() float64 { + rv := objc.Call[float64](a_, objc.Sel("fadeInDuration")) return rv } -// [Full Topic] +// For animations attached to SceneKit objects, the duration for transitioning into the animation’s effect as it begins. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/3875342-preferredframeraterange?language=objc -func (a_ Animation) SetPreferredFrameRateRange(value FrameRateRange) { - objc.Call[objc.Void](a_, objc.Sel("setPreferredFrameRateRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1523370-fadeinduration?language=objc +func (a_ Animation) SetFadeInDuration(value float64) { + objc.Call[objc.Void](a_, objc.Sel("setFadeInDuration:"), value) } // For animations attached to SceneKit objects, the duration for transitioning out of the animation’s effect as it ends. [Full Topic] @@ -187,32 +187,32 @@ func (a_ Animation) SetFadeOutDuration(value float64) { objc.Call[objc.Void](a_, objc.Sel("setFadeOutDuration:"), value) } -// Determines if the animation is removed from the target layer’s animations upon completion. [Full Topic] +// An optional timing function defining the pacing of the animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1412458-removedoncompletion?language=objc -func (a_ Animation) IsRemovedOnCompletion() bool { - rv := objc.Call[bool](a_, objc.Sel("isRemovedOnCompletion")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1412456-timingfunction?language=objc +func (a_ Animation) TimingFunction() MediaTimingFunction { + rv := objc.Call[MediaTimingFunction](a_, objc.Sel("timingFunction")) return rv } -// Determines if the animation is removed from the target layer’s animations upon completion. [Full Topic] +// An optional timing function defining the pacing of the animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1412458-removedoncompletion?language=objc -func (a_ Animation) SetRemovedOnCompletion(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setRemovedOnCompletion:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1412456-timingfunction?language=objc +func (a_ Animation) SetTimingFunction(value IMediaTimingFunction) { + objc.Call[objc.Void](a_, objc.Sel("setTimingFunction:"), value) } -// For animations attached to SceneKit objects, a Boolean value that determines whether the animation is evaluated using the scene time or the system time. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1523819-usesscenetimebase?language=objc -func (a_ Animation) UsesSceneTimeBase() bool { - rv := objc.Call[bool](a_, objc.Sel("usesSceneTimeBase")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/3875342-preferredframeraterange?language=objc +func (a_ Animation) PreferredFrameRateRange() FrameRateRange { + rv := objc.Call[FrameRateRange](a_, objc.Sel("preferredFrameRateRange")) return rv } -// For animations attached to SceneKit objects, a Boolean value that determines whether the animation is evaluated using the scene time or the system time. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1523819-usesscenetimebase?language=objc -func (a_ Animation) SetUsesSceneTimeBase(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setUsesSceneTimeBase:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/3875342-preferredframeraterange?language=objc +func (a_ Animation) SetPreferredFrameRateRange(value FrameRateRange) { + objc.Call[objc.Void](a_, objc.Sel("setPreferredFrameRateRange:"), value) } diff --git a/macos/quartzcore/basic_animation.gen.go b/macos/quartzcore/basic_animation.gen.go index dc6e86dc..c9736765 100644 --- a/macos/quartzcore/basic_animation.gen.go +++ b/macos/quartzcore/basic_animation.gen.go @@ -18,12 +18,12 @@ type _BasicAnimationClass struct { // An interface definition for the [BasicAnimation] class. type IBasicAnimation interface { IPropertyAnimation - ToValue() objc.Object - SetToValue(value objc.IObject) - FromValue() objc.Object - SetFromValue(value objc.IObject) ByValue() objc.Object SetByValue(value objc.IObject) + FromValue() objc.Object + SetFromValue(value objc.IObject) + ToValue() objc.Object + SetToValue(value objc.IObject) } // An object that provides basic, single-keyframe animation capabilities for a layer property. [Full Topic] @@ -83,19 +83,19 @@ func BasicAnimation_Animation() BasicAnimation { return BasicAnimationClass.Animation() } -// Defines the value the receiver uses to end interpolation. [Full Topic] +// Defines the value the receiver uses to perform relative interpolation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cabasicanimation/1412523-tovalue?language=objc -func (b_ BasicAnimation) ToValue() objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("toValue")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cabasicanimation/1412445-byvalue?language=objc +func (b_ BasicAnimation) ByValue() objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("byValue")) return rv } -// Defines the value the receiver uses to end interpolation. [Full Topic] +// Defines the value the receiver uses to perform relative interpolation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cabasicanimation/1412523-tovalue?language=objc -func (b_ BasicAnimation) SetToValue(value objc.IObject) { - objc.Call[objc.Void](b_, objc.Sel("setToValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cabasicanimation/1412445-byvalue?language=objc +func (b_ BasicAnimation) SetByValue(value objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("setByValue:"), value) } // Defines the value the receiver uses to start interpolation. [Full Topic] @@ -113,17 +113,17 @@ func (b_ BasicAnimation) SetFromValue(value objc.IObject) { objc.Call[objc.Void](b_, objc.Sel("setFromValue:"), value) } -// Defines the value the receiver uses to perform relative interpolation. [Full Topic] +// Defines the value the receiver uses to end interpolation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cabasicanimation/1412445-byvalue?language=objc -func (b_ BasicAnimation) ByValue() objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("byValue")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cabasicanimation/1412523-tovalue?language=objc +func (b_ BasicAnimation) ToValue() objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("toValue")) return rv } -// Defines the value the receiver uses to perform relative interpolation. [Full Topic] +// Defines the value the receiver uses to end interpolation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cabasicanimation/1412445-byvalue?language=objc -func (b_ BasicAnimation) SetByValue(value objc.IObject) { - objc.Call[objc.Void](b_, objc.Sel("setByValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cabasicanimation/1412523-tovalue?language=objc +func (b_ BasicAnimation) SetToValue(value objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("setToValue:"), value) } diff --git a/macos/quartzcore/constraint.gen.go b/macos/quartzcore/constraint.gen.go index 117df1e7..a45d970a 100644 --- a/macos/quartzcore/constraint.gen.go +++ b/macos/quartzcore/constraint.gen.go @@ -18,11 +18,11 @@ type _ConstraintClass struct { // An interface definition for the [Constraint] class. type IConstraint interface { objc.IObject - Attribute() ConstraintAttribute Scale() float64 - SourceAttribute() ConstraintAttribute + Attribute() ConstraintAttribute SourceName() string Offset() float64 + SourceAttribute() ConstraintAttribute } // A representation of a single layout constraint between two layers. [Full Topic] @@ -64,30 +64,6 @@ func NewConstraintWithAttributeRelativeToAttributeScaleOffset(attr ConstraintAtt return instance } -func (cc _ConstraintClass) ConstraintWithAttributeRelativeToAttributeOffset(attr ConstraintAttribute, srcId string, srcAttr ConstraintAttribute, c float64) Constraint { - rv := objc.Call[Constraint](cc, objc.Sel("constraintWithAttribute:relativeTo:attribute:offset:"), attr, srcId, srcAttr, c) - return rv -} - -// Creates and returns an CAConstraint object with the specified parameters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caconstraint/1522328-constraintwithattribute?language=objc -func Constraint_ConstraintWithAttributeRelativeToAttributeOffset(attr ConstraintAttribute, srcId string, srcAttr ConstraintAttribute, c float64) Constraint { - return ConstraintClass.ConstraintWithAttributeRelativeToAttributeOffset(attr, srcId, srcAttr, c) -} - -func (cc _ConstraintClass) ConstraintWithAttributeRelativeToAttributeScaleOffset(attr ConstraintAttribute, srcId string, srcAttr ConstraintAttribute, m float64, c float64) Constraint { - rv := objc.Call[Constraint](cc, objc.Sel("constraintWithAttribute:relativeTo:attribute:scale:offset:"), attr, srcId, srcAttr, m, c) - return rv -} - -// Creates and returns an CAConstraint object with the specified parameters. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caconstraint/1574941-constraintwithattribute?language=objc -func Constraint_ConstraintWithAttributeRelativeToAttributeScaleOffset(attr ConstraintAttribute, srcId string, srcAttr ConstraintAttribute, m float64, c float64) Constraint { - return ConstraintClass.ConstraintWithAttributeRelativeToAttributeScaleOffset(attr, srcId, srcAttr, m, c) -} - func (cc _ConstraintClass) Alloc() Constraint { rv := objc.Call[Constraint](cc, objc.Sel("alloc")) return rv @@ -108,14 +84,6 @@ func (c_ Constraint) Init() Constraint { return rv } -// The attribute the constraint affects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caconstraint/1522186-attribute?language=objc -func (c_ Constraint) Attribute() ConstraintAttribute { - rv := objc.Call[ConstraintAttribute](c_, objc.Sel("attribute")) - return rv -} - // Scale factor of the constraint attribute. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caconstraint/1521911-scale?language=objc @@ -124,11 +92,11 @@ func (c_ Constraint) Scale() float64 { return rv } -// The constraint attribute of the layer the receiver is calculated relative to [Full Topic] +// The attribute the constraint affects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caconstraint/1522385-sourceattribute?language=objc -func (c_ Constraint) SourceAttribute() ConstraintAttribute { - rv := objc.Call[ConstraintAttribute](c_, objc.Sel("sourceAttribute")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caconstraint/1522186-attribute?language=objc +func (c_ Constraint) Attribute() ConstraintAttribute { + rv := objc.Call[ConstraintAttribute](c_, objc.Sel("attribute")) return rv } @@ -147,3 +115,11 @@ func (c_ Constraint) Offset() float64 { rv := objc.Call[float64](c_, objc.Sel("offset")) return rv } + +// The constraint attribute of the layer the receiver is calculated relative to [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caconstraint/1522385-sourceattribute?language=objc +func (c_ Constraint) SourceAttribute() ConstraintAttribute { + rv := objc.Call[ConstraintAttribute](c_, objc.Sel("sourceAttribute")) + return rv +} diff --git a/macos/quartzcore/edr_metadata.gen.go b/macos/quartzcore/edr_metadata.gen.go index 21b02527..e84959fe 100644 --- a/macos/quartzcore/edr_metadata.gen.go +++ b/macos/quartzcore/edr_metadata.gen.go @@ -53,21 +53,6 @@ func (e_ EDRMetadata) Init() EDRMetadata { return rv } -// Creates EDR metadata for HDR10 content based on mastering display color information and content light levels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caedrmetadata/3194382-hdr10metadatawithdisplayinfo?language=objc -func (ec _EDRMetadataClass) HDR10MetadataWithDisplayInfoContentInfoOpticalOutputScale(displayData []byte, contentData []byte, scale float32) EDRMetadata { - rv := objc.Call[EDRMetadata](ec, objc.Sel("HDR10MetadataWithDisplayInfo:contentInfo:opticalOutputScale:"), displayData, contentData, scale) - return rv -} - -// Creates EDR metadata for HDR10 content based on mastering display color information and content light levels. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caedrmetadata/3194382-hdr10metadatawithdisplayinfo?language=objc -func EDRMetadata_HDR10MetadataWithDisplayInfoContentInfoOpticalOutputScale(displayData []byte, contentData []byte, scale float32) EDRMetadata { - return EDRMetadataClass.HDR10MetadataWithDisplayInfoContentInfoOpticalOutputScale(displayData, contentData, scale) -} - // Creates EDR metadata for HDR10 content based on the luminance characteristics of a mastering display. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caedrmetadata/3194383-hdr10metadatawithminluminance?language=objc @@ -83,6 +68,21 @@ func EDRMetadata_HDR10MetadataWithMinLuminanceMaxLuminanceOpticalOutputScale(min return EDRMetadataClass.HDR10MetadataWithMinLuminanceMaxLuminanceOpticalOutputScale(minNits, maxNits, scale) } +// Creates EDR metadata for HDR10 content based on mastering display color information and content light levels. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caedrmetadata/3194382-hdr10metadatawithdisplayinfo?language=objc +func (ec _EDRMetadataClass) HDR10MetadataWithDisplayInfoContentInfoOpticalOutputScale(displayData []byte, contentData []byte, scale float32) EDRMetadata { + rv := objc.Call[EDRMetadata](ec, objc.Sel("HDR10MetadataWithDisplayInfo:contentInfo:opticalOutputScale:"), displayData, contentData, scale) + return rv +} + +// Creates EDR metadata for HDR10 content based on mastering display color information and content light levels. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caedrmetadata/3194382-hdr10metadatawithdisplayinfo?language=objc +func EDRMetadata_HDR10MetadataWithDisplayInfoContentInfoOpticalOutputScale(displayData []byte, contentData []byte, scale float32) EDRMetadata { + return EDRMetadataClass.HDR10MetadataWithDisplayInfoContentInfoOpticalOutputScale(displayData, contentData, scale) +} + // Extended dynamic range (EDR) metadata for the Hybrid Log-Gamma (HLG) transfer function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caedrmetadata/3194384-hlgmetadata?language=objc diff --git a/macos/quartzcore/emitter_cell.gen.go b/macos/quartzcore/emitter_cell.gen.go index 131632fd..f4a91fde 100644 --- a/macos/quartzcore/emitter_cell.gen.go +++ b/macos/quartzcore/emitter_cell.gen.go @@ -21,76 +21,76 @@ type _EmitterCellClass struct { type IEmitterCell interface { objc.IObject ShouldArchiveValueForKey(key string) bool - SpinRange() float64 - SetSpinRange(value float64) - GreenRange() float32 - SetGreenRange(value float32) - MagnificationFilter() string - SetMagnificationFilter(value string) XAcceleration() float64 SetXAcceleration(value float64) + Color() coregraphics.ColorRef + SetColor(value coregraphics.ColorRef) + VelocityRange() float64 + SetVelocityRange(value float64) + Scale() float64 + SetScale(value float64) + GreenRange() float32 + SetGreenRange(value float32) AlphaRange() float32 SetAlphaRange(value float32) - ScaleSpeed() float64 - SetScaleSpeed(value float64) - Contents() objc.Object - SetContents(value objc.IObject) BirthRate() float32 SetBirthRate(value float32) - EmitterCells() []EmitterCell - SetEmitterCells(value []IEmitterCell) + AlphaSpeed() float32 + SetAlphaSpeed(value float32) + GreenSpeed() float32 + SetGreenSpeed(value float32) + Name() string + SetName(value string) + EmissionLatitude() float64 + SetEmissionLatitude(value float64) + YAcceleration() float64 + SetYAcceleration(value float64) + MinificationFilter() string + SetMinificationFilter(value string) ContentsScale() float64 SetContentsScale(value float64) - BlueRange() float32 - SetBlueRange(value float32) - MinificationFilterBias() float32 - SetMinificationFilterBias(value float32) + SpinRange() float64 + SetSpinRange(value float64) + ScaleSpeed() float64 + SetScaleSpeed(value float64) + ContentsRect() coregraphics.Rect + SetContentsRect(value coregraphics.Rect) + Style() foundation.Dictionary + SetStyle(value foundation.Dictionary) ScaleRange() float64 SetScaleRange(value float64) - YAcceleration() float64 - SetYAcceleration(value float64) - VelocityRange() float64 - SetVelocityRange(value float64) - Name() string - SetName(value string) - Spin() float64 - SetSpin(value float64) - EmissionLongitude() float64 - SetEmissionLongitude(value float64) - Color() coregraphics.ColorRef - SetColor(value coregraphics.ColorRef) - BlueSpeed() float32 - SetBlueSpeed(value float32) - RedRange() float32 - SetRedRange(value float32) ZAcceleration() float64 SetZAcceleration(value float64) LifetimeRange() float32 SetLifetimeRange(value float32) - ContentsRect() coregraphics.Rect - SetContentsRect(value coregraphics.Rect) - Velocity() float64 - SetVelocity(value float64) - MinificationFilter() string - SetMinificationFilter(value string) - IsEnabled() bool - SetEnabled(value bool) - EmissionLatitude() float64 - SetEmissionLatitude(value float64) - Scale() float64 - SetScale(value float64) - RedSpeed() float32 - SetRedSpeed(value float32) + Contents() objc.Object + SetContents(value objc.IObject) + RedRange() float32 + SetRedRange(value float32) EmissionRange() float64 SetEmissionRange(value float64) - AlphaSpeed() float32 - SetAlphaSpeed(value float32) + MagnificationFilter() string + SetMagnificationFilter(value string) Lifetime() float32 SetLifetime(value float32) - Style() foundation.Dictionary - SetStyle(value foundation.Dictionary) - GreenSpeed() float32 - SetGreenSpeed(value float32) + EmitterCells() []EmitterCell + SetEmitterCells(value []IEmitterCell) + Spin() float64 + SetSpin(value float64) + BlueSpeed() float32 + SetBlueSpeed(value float32) + IsEnabled() bool + SetEnabled(value bool) + EmissionLongitude() float64 + SetEmissionLongitude(value float64) + RedSpeed() float32 + SetRedSpeed(value float32) + Velocity() float64 + SetVelocity(value float64) + BlueRange() float32 + SetBlueRange(value float32) + MinificationFilterBias() float32 + SetMinificationFilterBias(value float32) } // The definition of a particle emitted by a CAEmitterLayer. [Full Topic] @@ -161,64 +161,79 @@ func (e_ EmitterCell) ShouldArchiveValueForKey(key string) bool { return rv } -// The amount by which the spin of the cell can vary over its lifetime. Animatable. [Full Topic] +// The x component of an acceleration vector applied to cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522084-spinrange?language=objc -func (e_ EmitterCell) SpinRange() float64 { - rv := objc.Call[float64](e_, objc.Sel("spinRange")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521879-xacceleration?language=objc +func (e_ EmitterCell) XAcceleration() float64 { + rv := objc.Call[float64](e_, objc.Sel("xAcceleration")) return rv } -// The amount by which the spin of the cell can vary over its lifetime. Animatable. [Full Topic] +// The x component of an acceleration vector applied to cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522084-spinrange?language=objc -func (e_ EmitterCell) SetSpinRange(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setSpinRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521879-xacceleration?language=objc +func (e_ EmitterCell) SetXAcceleration(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setXAcceleration:"), value) } -// The amount by which the green color component of the cell can vary. Animatable. [Full Topic] +// The color of each emitted object. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521867-greenrange?language=objc -func (e_ EmitterCell) GreenRange() float32 { - rv := objc.Call[float32](e_, objc.Sel("greenRange")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522322-color?language=objc +func (e_ EmitterCell) Color() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](e_, objc.Sel("color")) return rv } -// The amount by which the green color component of the cell can vary. Animatable. [Full Topic] +// The color of each emitted object. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521867-greenrange?language=objc -func (e_ EmitterCell) SetGreenRange(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setGreenRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522322-color?language=objc +func (e_ EmitterCell) SetColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](e_, objc.Sel("setColor:"), value) } -// The filter used when increasing the size of the content. [Full Topic] +// The amount by which the velocity of the cell can vary. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522228-magnificationfilter?language=objc -func (e_ EmitterCell) MagnificationFilter() string { - rv := objc.Call[string](e_, objc.Sel("magnificationFilter")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522330-velocityrange?language=objc +func (e_ EmitterCell) VelocityRange() float64 { + rv := objc.Call[float64](e_, objc.Sel("velocityRange")) return rv } -// The filter used when increasing the size of the content. [Full Topic] +// The amount by which the velocity of the cell can vary. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522228-magnificationfilter?language=objc -func (e_ EmitterCell) SetMagnificationFilter(value string) { - objc.Call[objc.Void](e_, objc.Sel("setMagnificationFilter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522330-velocityrange?language=objc +func (e_ EmitterCell) SetVelocityRange(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setVelocityRange:"), value) } -// The x component of an acceleration vector applied to cell. [Full Topic] +// Specifies the scale factor applied to the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521879-xacceleration?language=objc -func (e_ EmitterCell) XAcceleration() float64 { - rv := objc.Call[float64](e_, objc.Sel("xAcceleration")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522287-scale?language=objc +func (e_ EmitterCell) Scale() float64 { + rv := objc.Call[float64](e_, objc.Sel("scale")) return rv } -// The x component of an acceleration vector applied to cell. [Full Topic] +// Specifies the scale factor applied to the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521879-xacceleration?language=objc -func (e_ EmitterCell) SetXAcceleration(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setXAcceleration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522287-scale?language=objc +func (e_ EmitterCell) SetScale(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setScale:"), value) +} + +// The amount by which the green color component of the cell can vary. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521867-greenrange?language=objc +func (e_ EmitterCell) GreenRange() float32 { + rv := objc.Call[float32](e_, objc.Sel("greenRange")) + return rv +} + +// The amount by which the green color component of the cell can vary. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521867-greenrange?language=objc +func (e_ EmitterCell) SetGreenRange(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setGreenRange:"), value) } // The amount by which the alpha component of the cell can vary. Animatable. [Full Topic] @@ -236,36 +251,6 @@ func (e_ EmitterCell) SetAlphaRange(value float32) { objc.Call[objc.Void](e_, objc.Sel("setAlphaRange:"), value) } -// The speed at which the scale changes over the lifetime of the cell. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522241-scalespeed?language=objc -func (e_ EmitterCell) ScaleSpeed() float64 { - rv := objc.Call[float64](e_, objc.Sel("scaleSpeed")) - return rv -} - -// The speed at which the scale changes over the lifetime of the cell. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522241-scalespeed?language=objc -func (e_ EmitterCell) SetScaleSpeed(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setScaleSpeed:"), value) -} - -// An object that provides the contents of the layer. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522109-contents?language=objc -func (e_ EmitterCell) Contents() objc.Object { - rv := objc.Call[objc.Object](e_, objc.Sel("contents")) - return rv -} - -// An object that provides the contents of the layer. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522109-contents?language=objc -func (e_ EmitterCell) SetContents(value objc.IObject) { - objc.Call[objc.Void](e_, objc.Sel("setContents:"), value) -} - // The number of emitted objects created every second. Animatable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522100-birthrate?language=objc @@ -281,79 +266,64 @@ func (e_ EmitterCell) SetBirthRate(value float32) { objc.Call[objc.Void](e_, objc.Sel("setBirthRate:"), value) } -// An optional array containing the sub-cells of this cell. [Full Topic] +// The speed, in seconds, at which the alpha component changes over the lifetime of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521866-emittercells?language=objc -func (e_ EmitterCell) EmitterCells() []EmitterCell { - rv := objc.Call[[]EmitterCell](e_, objc.Sel("emitterCells")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522120-alphaspeed?language=objc +func (e_ EmitterCell) AlphaSpeed() float32 { + rv := objc.Call[float32](e_, objc.Sel("alphaSpeed")) return rv } -// An optional array containing the sub-cells of this cell. [Full Topic] +// The speed, in seconds, at which the alpha component changes over the lifetime of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521866-emittercells?language=objc -func (e_ EmitterCell) SetEmitterCells(value []IEmitterCell) { - objc.Call[objc.Void](e_, objc.Sel("setEmitterCells:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522120-alphaspeed?language=objc +func (e_ EmitterCell) SetAlphaSpeed(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setAlphaSpeed:"), value) } -// The scale factor of the cell contents. [Full Topic] +// The speed, in seconds, at which the green color component changes over the lifetime of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522197-contentsscale?language=objc -func (e_ EmitterCell) ContentsScale() float64 { - rv := objc.Call[float64](e_, objc.Sel("contentsScale")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521946-greenspeed?language=objc +func (e_ EmitterCell) GreenSpeed() float32 { + rv := objc.Call[float32](e_, objc.Sel("greenSpeed")) return rv } -// The scale factor of the cell contents. [Full Topic] +// The speed, in seconds, at which the green color component changes over the lifetime of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522197-contentsscale?language=objc -func (e_ EmitterCell) SetContentsScale(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setContentsScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521946-greenspeed?language=objc +func (e_ EmitterCell) SetGreenSpeed(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setGreenSpeed:"), value) } -// The amount by which the blue color component of the cell can vary. Animatable. [Full Topic] +// The name of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522158-bluerange?language=objc -func (e_ EmitterCell) BlueRange() float32 { - rv := objc.Call[float32](e_, objc.Sel("blueRange")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521909-name?language=objc +func (e_ EmitterCell) Name() string { + rv := objc.Call[string](e_, objc.Sel("name")) return rv } -// The amount by which the blue color component of the cell can vary. Animatable. [Full Topic] +// The name of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522158-bluerange?language=objc -func (e_ EmitterCell) SetBlueRange(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setBlueRange:"), value) -} - -// The bias factor used by the minification filter to determine the levels of detail. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521907-minificationfilterbias?language=objc -func (e_ EmitterCell) MinificationFilterBias() float32 { - rv := objc.Call[float32](e_, objc.Sel("minificationFilterBias")) - return rv -} - -// The bias factor used by the minification filter to determine the levels of detail. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521907-minificationfilterbias?language=objc -func (e_ EmitterCell) SetMinificationFilterBias(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setMinificationFilterBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521909-name?language=objc +func (e_ EmitterCell) SetName(value string) { + objc.Call[objc.Void](e_, objc.Sel("setName:"), value) } -// Specifies the range over which the scale value can vary. Animatable. [Full Topic] +// The latitudinal orientation of the emission angle. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521915-scalerange?language=objc -func (e_ EmitterCell) ScaleRange() float64 { - rv := objc.Call[float64](e_, objc.Sel("scaleRange")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521857-emissionlatitude?language=objc +func (e_ EmitterCell) EmissionLatitude() float64 { + rv := objc.Call[float64](e_, objc.Sel("emissionLatitude")) return rv } -// Specifies the range over which the scale value can vary. Animatable. [Full Topic] +// The latitudinal orientation of the emission angle. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521915-scalerange?language=objc -func (e_ EmitterCell) SetScaleRange(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setScaleRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521857-emissionlatitude?language=objc +func (e_ EmitterCell) SetEmissionLatitude(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setEmissionLatitude:"), value) } // The y component of an acceleration vector applied to cell. [Full Topic] @@ -371,109 +341,109 @@ func (e_ EmitterCell) SetYAcceleration(value float64) { objc.Call[objc.Void](e_, objc.Sel("setYAcceleration:"), value) } -// The amount by which the velocity of the cell can vary. Animatable. [Full Topic] +// The filter used when reducing the size of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522330-velocityrange?language=objc -func (e_ EmitterCell) VelocityRange() float64 { - rv := objc.Call[float64](e_, objc.Sel("velocityRange")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522222-minificationfilter?language=objc +func (e_ EmitterCell) MinificationFilter() string { + rv := objc.Call[string](e_, objc.Sel("minificationFilter")) return rv } -// The amount by which the velocity of the cell can vary. Animatable. [Full Topic] +// The filter used when reducing the size of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522330-velocityrange?language=objc -func (e_ EmitterCell) SetVelocityRange(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setVelocityRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522222-minificationfilter?language=objc +func (e_ EmitterCell) SetMinificationFilter(value string) { + objc.Call[objc.Void](e_, objc.Sel("setMinificationFilter:"), value) } -// The name of the cell. [Full Topic] +// The scale factor of the cell contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521909-name?language=objc -func (e_ EmitterCell) Name() string { - rv := objc.Call[string](e_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522197-contentsscale?language=objc +func (e_ EmitterCell) ContentsScale() float64 { + rv := objc.Call[float64](e_, objc.Sel("contentsScale")) return rv } -// The name of the cell. [Full Topic] +// The scale factor of the cell contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521909-name?language=objc -func (e_ EmitterCell) SetName(value string) { - objc.Call[objc.Void](e_, objc.Sel("setName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522197-contentsscale?language=objc +func (e_ EmitterCell) SetContentsScale(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setContentsScale:"), value) } -// The rotational velocity, measured in radians per second, to apply to the cell. Animatable. [Full Topic] +// The amount by which the spin of the cell can vary over its lifetime. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522361-spin?language=objc -func (e_ EmitterCell) Spin() float64 { - rv := objc.Call[float64](e_, objc.Sel("spin")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522084-spinrange?language=objc +func (e_ EmitterCell) SpinRange() float64 { + rv := objc.Call[float64](e_, objc.Sel("spinRange")) return rv } -// The rotational velocity, measured in radians per second, to apply to the cell. Animatable. [Full Topic] +// The amount by which the spin of the cell can vary over its lifetime. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522361-spin?language=objc -func (e_ EmitterCell) SetSpin(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setSpin:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522084-spinrange?language=objc +func (e_ EmitterCell) SetSpinRange(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setSpinRange:"), value) } -// The longitudinal orientation of the emission angle. Animatable. [Full Topic] +// The speed at which the scale changes over the lifetime of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522013-emissionlongitude?language=objc -func (e_ EmitterCell) EmissionLongitude() float64 { - rv := objc.Call[float64](e_, objc.Sel("emissionLongitude")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522241-scalespeed?language=objc +func (e_ EmitterCell) ScaleSpeed() float64 { + rv := objc.Call[float64](e_, objc.Sel("scaleSpeed")) return rv } -// The longitudinal orientation of the emission angle. Animatable. [Full Topic] +// The speed at which the scale changes over the lifetime of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522013-emissionlongitude?language=objc -func (e_ EmitterCell) SetEmissionLongitude(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setEmissionLongitude:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522241-scalespeed?language=objc +func (e_ EmitterCell) SetScaleSpeed(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setScaleSpeed:"), value) } -// The color of each emitted object. Animatable. [Full Topic] +// A rectangle (in the unit coordinate space) that specifies the portion of contents that the receiver should draw. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522322-color?language=objc -func (e_ EmitterCell) Color() coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](e_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522124-contentsrect?language=objc +func (e_ EmitterCell) ContentsRect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](e_, objc.Sel("contentsRect")) return rv } -// The color of each emitted object. Animatable. [Full Topic] +// A rectangle (in the unit coordinate space) that specifies the portion of contents that the receiver should draw. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522322-color?language=objc -func (e_ EmitterCell) SetColor(value coregraphics.ColorRef) { - objc.Call[objc.Void](e_, objc.Sel("setColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522124-contentsrect?language=objc +func (e_ EmitterCell) SetContentsRect(value coregraphics.Rect) { + objc.Call[objc.Void](e_, objc.Sel("setContentsRect:"), value) } -// The speed, in seconds, at which the blue color component changes over the lifetime of the cell. Animatable. [Full Topic] +// An optional dictionary containing additional style values that are not explicitly defined by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522082-bluespeed?language=objc -func (e_ EmitterCell) BlueSpeed() float32 { - rv := objc.Call[float32](e_, objc.Sel("blueSpeed")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521925-style?language=objc +func (e_ EmitterCell) Style() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](e_, objc.Sel("style")) return rv } -// The speed, in seconds, at which the blue color component changes over the lifetime of the cell. Animatable. [Full Topic] +// An optional dictionary containing additional style values that are not explicitly defined by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522082-bluespeed?language=objc -func (e_ EmitterCell) SetBlueSpeed(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setBlueSpeed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521925-style?language=objc +func (e_ EmitterCell) SetStyle(value foundation.Dictionary) { + objc.Call[objc.Void](e_, objc.Sel("setStyle:"), value) } -// The amount by which the red color component of the cell can vary. Animatable. [Full Topic] +// Specifies the range over which the scale value can vary. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522176-redrange?language=objc -func (e_ EmitterCell) RedRange() float32 { - rv := objc.Call[float32](e_, objc.Sel("redRange")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521915-scalerange?language=objc +func (e_ EmitterCell) ScaleRange() float64 { + rv := objc.Call[float64](e_, objc.Sel("scaleRange")) return rv } -// The amount by which the red color component of the cell can vary. Animatable. [Full Topic] +// Specifies the range over which the scale value can vary. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522176-redrange?language=objc -func (e_ EmitterCell) SetRedRange(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setRedRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521915-scalerange?language=objc +func (e_ EmitterCell) SetScaleRange(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setScaleRange:"), value) } // The z component of an acceleration vector applied to cell. [Full Topic] @@ -491,7 +461,7 @@ func (e_ EmitterCell) SetZAcceleration(value float64) { objc.Call[objc.Void](e_, objc.Sel("setZAcceleration:"), value) } -// The mean value by which the [quartzcore/caemittercell/lifetime] of the cell can vary. Animatable. [Full Topic] +// The mean value by which the lifetime of the cell can vary. Animatable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522101-lifetimerange?language=objc func (e_ EmitterCell) LifetimeRange() float32 { @@ -499,189 +469,219 @@ func (e_ EmitterCell) LifetimeRange() float32 { return rv } -// The mean value by which the [quartzcore/caemittercell/lifetime] of the cell can vary. Animatable. [Full Topic] +// The mean value by which the lifetime of the cell can vary. Animatable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522101-lifetimerange?language=objc func (e_ EmitterCell) SetLifetimeRange(value float32) { objc.Call[objc.Void](e_, objc.Sel("setLifetimeRange:"), value) } -// A rectangle (in the unit coordinate space) that specifies the portion of [quartzcore/caemittercell/contents] that the receiver should draw. Animatable. [Full Topic] +// An object that provides the contents of the layer. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522124-contentsrect?language=objc -func (e_ EmitterCell) ContentsRect() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](e_, objc.Sel("contentsRect")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522109-contents?language=objc +func (e_ EmitterCell) Contents() objc.Object { + rv := objc.Call[objc.Object](e_, objc.Sel("contents")) return rv } -// A rectangle (in the unit coordinate space) that specifies the portion of [quartzcore/caemittercell/contents] that the receiver should draw. Animatable. [Full Topic] +// An object that provides the contents of the layer. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522124-contentsrect?language=objc -func (e_ EmitterCell) SetContentsRect(value coregraphics.Rect) { - objc.Call[objc.Void](e_, objc.Sel("setContentsRect:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522109-contents?language=objc +func (e_ EmitterCell) SetContents(value objc.IObject) { + objc.Call[objc.Void](e_, objc.Sel("setContents:"), value) } -// The initial velocity of the cell. Animatable. [Full Topic] +// The amount by which the red color component of the cell can vary. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521837-velocity?language=objc -func (e_ EmitterCell) Velocity() float64 { - rv := objc.Call[float64](e_, objc.Sel("velocity")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522176-redrange?language=objc +func (e_ EmitterCell) RedRange() float32 { + rv := objc.Call[float32](e_, objc.Sel("redRange")) return rv } -// The initial velocity of the cell. Animatable. [Full Topic] +// The amount by which the red color component of the cell can vary. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521837-velocity?language=objc -func (e_ EmitterCell) SetVelocity(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setVelocity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522176-redrange?language=objc +func (e_ EmitterCell) SetRedRange(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setRedRange:"), value) } -// The filter used when reducing the size of the content. [Full Topic] +// The angle, in radians, defining a cone around the emission angle. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522222-minificationfilter?language=objc -func (e_ EmitterCell) MinificationFilter() string { - rv := objc.Call[string](e_, objc.Sel("minificationFilter")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521847-emissionrange?language=objc +func (e_ EmitterCell) EmissionRange() float64 { + rv := objc.Call[float64](e_, objc.Sel("emissionRange")) return rv } -// The filter used when reducing the size of the content. [Full Topic] +// The angle, in radians, defining a cone around the emission angle. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522222-minificationfilter?language=objc -func (e_ EmitterCell) SetMinificationFilter(value string) { - objc.Call[objc.Void](e_, objc.Sel("setMinificationFilter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521847-emissionrange?language=objc +func (e_ EmitterCell) SetEmissionRange(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setEmissionRange:"), value) } -// A Boolean value indicating whether or not cells from this emitter are rendered. [Full Topic] +// The filter used when increasing the size of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521831-enabled?language=objc -func (e_ EmitterCell) IsEnabled() bool { - rv := objc.Call[bool](e_, objc.Sel("isEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522228-magnificationfilter?language=objc +func (e_ EmitterCell) MagnificationFilter() string { + rv := objc.Call[string](e_, objc.Sel("magnificationFilter")) return rv } -// A Boolean value indicating whether or not cells from this emitter are rendered. [Full Topic] +// The filter used when increasing the size of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521831-enabled?language=objc -func (e_ EmitterCell) SetEnabled(value bool) { - objc.Call[objc.Void](e_, objc.Sel("setEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522228-magnificationfilter?language=objc +func (e_ EmitterCell) SetMagnificationFilter(value string) { + objc.Call[objc.Void](e_, objc.Sel("setMagnificationFilter:"), value) } -// The latitudinal orientation of the emission angle. Animatable. [Full Topic] +// The lifetime of the cell, in seconds. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521857-emissionlatitude?language=objc -func (e_ EmitterCell) EmissionLatitude() float64 { - rv := objc.Call[float64](e_, objc.Sel("emissionLatitude")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522075-lifetime?language=objc +func (e_ EmitterCell) Lifetime() float32 { + rv := objc.Call[float32](e_, objc.Sel("lifetime")) return rv } -// The latitudinal orientation of the emission angle. Animatable. [Full Topic] +// The lifetime of the cell, in seconds. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521857-emissionlatitude?language=objc -func (e_ EmitterCell) SetEmissionLatitude(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setEmissionLatitude:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522075-lifetime?language=objc +func (e_ EmitterCell) SetLifetime(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setLifetime:"), value) } -// Specifies the scale factor applied to the cell. Animatable. [Full Topic] +// An optional array containing the sub-cells of this cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522287-scale?language=objc -func (e_ EmitterCell) Scale() float64 { - rv := objc.Call[float64](e_, objc.Sel("scale")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521866-emittercells?language=objc +func (e_ EmitterCell) EmitterCells() []EmitterCell { + rv := objc.Call[[]EmitterCell](e_, objc.Sel("emitterCells")) return rv } -// Specifies the scale factor applied to the cell. Animatable. [Full Topic] +// An optional array containing the sub-cells of this cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522287-scale?language=objc -func (e_ EmitterCell) SetScale(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521866-emittercells?language=objc +func (e_ EmitterCell) SetEmitterCells(value []IEmitterCell) { + objc.Call[objc.Void](e_, objc.Sel("setEmitterCells:"), value) } -// The speed, in seconds, at which the red color component changes over the lifetime of the cell. Animatable. [Full Topic] +// The rotational velocity, measured in radians per second, to apply to the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521859-redspeed?language=objc -func (e_ EmitterCell) RedSpeed() float32 { - rv := objc.Call[float32](e_, objc.Sel("redSpeed")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522361-spin?language=objc +func (e_ EmitterCell) Spin() float64 { + rv := objc.Call[float64](e_, objc.Sel("spin")) return rv } -// The speed, in seconds, at which the red color component changes over the lifetime of the cell. Animatable. [Full Topic] +// The rotational velocity, measured in radians per second, to apply to the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521859-redspeed?language=objc -func (e_ EmitterCell) SetRedSpeed(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setRedSpeed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522361-spin?language=objc +func (e_ EmitterCell) SetSpin(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setSpin:"), value) } -// The angle, in radians, defining a cone around the emission angle. Animatable. [Full Topic] +// The speed, in seconds, at which the blue color component changes over the lifetime of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521847-emissionrange?language=objc -func (e_ EmitterCell) EmissionRange() float64 { - rv := objc.Call[float64](e_, objc.Sel("emissionRange")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522082-bluespeed?language=objc +func (e_ EmitterCell) BlueSpeed() float32 { + rv := objc.Call[float32](e_, objc.Sel("blueSpeed")) return rv } -// The angle, in radians, defining a cone around the emission angle. Animatable. [Full Topic] +// The speed, in seconds, at which the blue color component changes over the lifetime of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521847-emissionrange?language=objc -func (e_ EmitterCell) SetEmissionRange(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setEmissionRange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522082-bluespeed?language=objc +func (e_ EmitterCell) SetBlueSpeed(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setBlueSpeed:"), value) } -// The speed, in seconds, at which the alpha component changes over the lifetime of the cell. Animatable. [Full Topic] +// A Boolean value indicating whether or not cells from this emitter are rendered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522120-alphaspeed?language=objc -func (e_ EmitterCell) AlphaSpeed() float32 { - rv := objc.Call[float32](e_, objc.Sel("alphaSpeed")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521831-enabled?language=objc +func (e_ EmitterCell) IsEnabled() bool { + rv := objc.Call[bool](e_, objc.Sel("isEnabled")) return rv } -// The speed, in seconds, at which the alpha component changes over the lifetime of the cell. Animatable. [Full Topic] +// A Boolean value indicating whether or not cells from this emitter are rendered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522120-alphaspeed?language=objc -func (e_ EmitterCell) SetAlphaSpeed(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setAlphaSpeed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521831-enabled?language=objc +func (e_ EmitterCell) SetEnabled(value bool) { + objc.Call[objc.Void](e_, objc.Sel("setEnabled:"), value) } -// The lifetime of the cell, in seconds. Animatable. [Full Topic] +// The longitudinal orientation of the emission angle. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522075-lifetime?language=objc -func (e_ EmitterCell) Lifetime() float32 { - rv := objc.Call[float32](e_, objc.Sel("lifetime")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522013-emissionlongitude?language=objc +func (e_ EmitterCell) EmissionLongitude() float64 { + rv := objc.Call[float64](e_, objc.Sel("emissionLongitude")) return rv } -// The lifetime of the cell, in seconds. Animatable. [Full Topic] +// The longitudinal orientation of the emission angle. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522075-lifetime?language=objc -func (e_ EmitterCell) SetLifetime(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setLifetime:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522013-emissionlongitude?language=objc +func (e_ EmitterCell) SetEmissionLongitude(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setEmissionLongitude:"), value) } -// An optional dictionary containing additional style values that are not explicitly defined by the receiver. [Full Topic] +// The speed, in seconds, at which the red color component changes over the lifetime of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521925-style?language=objc -func (e_ EmitterCell) Style() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](e_, objc.Sel("style")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521859-redspeed?language=objc +func (e_ EmitterCell) RedSpeed() float32 { + rv := objc.Call[float32](e_, objc.Sel("redSpeed")) return rv } -// An optional dictionary containing additional style values that are not explicitly defined by the receiver. [Full Topic] +// The speed, in seconds, at which the red color component changes over the lifetime of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521925-style?language=objc -func (e_ EmitterCell) SetStyle(value foundation.Dictionary) { - objc.Call[objc.Void](e_, objc.Sel("setStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521859-redspeed?language=objc +func (e_ EmitterCell) SetRedSpeed(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setRedSpeed:"), value) } -// The speed, in seconds, at which the green color component changes over the lifetime of the cell. Animatable. [Full Topic] +// The initial velocity of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521946-greenspeed?language=objc -func (e_ EmitterCell) GreenSpeed() float32 { - rv := objc.Call[float32](e_, objc.Sel("greenSpeed")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521837-velocity?language=objc +func (e_ EmitterCell) Velocity() float64 { + rv := objc.Call[float64](e_, objc.Sel("velocity")) return rv } -// The speed, in seconds, at which the green color component changes over the lifetime of the cell. Animatable. [Full Topic] +// The initial velocity of the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521946-greenspeed?language=objc -func (e_ EmitterCell) SetGreenSpeed(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setGreenSpeed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521837-velocity?language=objc +func (e_ EmitterCell) SetVelocity(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setVelocity:"), value) +} + +// The amount by which the blue color component of the cell can vary. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522158-bluerange?language=objc +func (e_ EmitterCell) BlueRange() float32 { + rv := objc.Call[float32](e_, objc.Sel("blueRange")) + return rv +} + +// The amount by which the blue color component of the cell can vary. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522158-bluerange?language=objc +func (e_ EmitterCell) SetBlueRange(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setBlueRange:"), value) +} + +// The bias factor used by the minification filter to determine the levels of detail. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521907-minificationfilterbias?language=objc +func (e_ EmitterCell) MinificationFilterBias() float32 { + rv := objc.Call[float32](e_, objc.Sel("minificationFilterBias")) + return rv +} + +// The bias factor used by the minification filter to determine the levels of detail. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521907-minificationfilterbias?language=objc +func (e_ EmitterCell) SetMinificationFilterBias(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setMinificationFilterBias:"), value) } diff --git a/macos/quartzcore/emitter_layer.gen.go b/macos/quartzcore/emitter_layer.gen.go index a7e4aa26..fbfff728 100644 --- a/macos/quartzcore/emitter_layer.gen.go +++ b/macos/quartzcore/emitter_layer.gen.go @@ -19,36 +19,36 @@ type _EmitterLayerClass struct { // An interface definition for the [EmitterLayer] class. type IEmitterLayer interface { ILayer - EmitterSize() coregraphics.Size - SetEmitterSize(value coregraphics.Size) - Lifetime() float32 - SetLifetime(value float32) - RenderMode() EmitterLayerRenderMode - SetRenderMode(value EmitterLayerRenderMode) - EmitterDepth() float64 - SetEmitterDepth(value float64) - EmitterPosition() coregraphics.Point - SetEmitterPosition(value coregraphics.Point) Scale() float32 SetScale(value float32) - EmitterShape() EmitterLayerEmitterShape - SetEmitterShape(value EmitterLayerEmitterShape) - Spin() float32 - SetSpin(value float32) - Seed() int - SetSeed(value int) EmitterMode() EmitterLayerEmitterMode SetEmitterMode(value EmitterLayerEmitterMode) + BirthRate() float32 + SetBirthRate(value float32) EmitterZPosition() float64 SetEmitterZPosition(value float64) - PreservesDepth() bool - SetPreservesDepth(value bool) - Velocity() float32 - SetVelocity(value float32) + EmitterDepth() float64 + SetEmitterDepth(value float64) + EmitterSize() coregraphics.Size + SetEmitterSize(value coregraphics.Size) + EmitterPosition() coregraphics.Point + SetEmitterPosition(value coregraphics.Point) + Lifetime() float32 + SetLifetime(value float32) EmitterCells() []EmitterCell SetEmitterCells(value []IEmitterCell) - BirthRate() float32 - SetBirthRate(value float32) + Spin() float32 + SetSpin(value float32) + Velocity() float32 + SetVelocity(value float32) + PreservesDepth() bool + SetPreservesDepth(value bool) + RenderMode() EmitterLayerRenderMode + SetRenderMode(value EmitterLayerRenderMode) + Seed() int + SetSeed(value int) + EmitterShape() EmitterLayerEmitterShape + SetEmitterShape(value EmitterLayerEmitterShape) } // A layer that emits, animates, and renders a particle system. [Full Topic] @@ -84,6 +84,32 @@ func (e_ EmitterLayer) Init() EmitterLayer { return rv } +func (ec _EmitterLayerClass) Layer() EmitterLayer { + rv := objc.Call[EmitterLayer](ec, objc.Sel("layer")) + return rv +} + +// Creates and returns an instance of the layer object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func EmitterLayer_Layer() EmitterLayer { + return EmitterLayerClass.Layer() +} + +func (e_ EmitterLayer) InitWithLayer(layer objc.IObject) EmitterLayer { + rv := objc.Call[EmitterLayer](e_, objc.Sel("initWithLayer:"), layer) + return rv +} + +// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewEmitterLayerWithLayer(layer objc.IObject) EmitterLayer { + instance := EmitterLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + func (e_ EmitterLayer) ModelLayer() EmitterLayer { rv := objc.Call[EmitterLayer](e_, objc.Sel("modelLayer")) return rv @@ -112,75 +138,64 @@ func EmitterLayer_PresentationLayer() EmitterLayer { return instance } -func (e_ EmitterLayer) InitWithLayer(layer objc.IObject) EmitterLayer { - rv := objc.Call[EmitterLayer](e_, objc.Sel("initWithLayer:"), layer) - return rv -} - -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Defines a multiplier applied to the cell-defined particle scale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewEmitterLayerWithLayer(layer objc.IObject) EmitterLayer { - instance := EmitterLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - -func (ec _EmitterLayerClass) Layer() EmitterLayer { - rv := objc.Call[EmitterLayer](ec, objc.Sel("layer")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521841-scale?language=objc +func (e_ EmitterLayer) Scale() float32 { + rv := objc.Call[float32](e_, objc.Sel("scale")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Defines a multiplier applied to the cell-defined particle scale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func EmitterLayer_Layer() EmitterLayer { - return EmitterLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521841-scale?language=objc +func (e_ EmitterLayer) SetScale(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setScale:"), value) } -// Determines the size of the particle emitter shape. Animatable. [Full Topic] +// Specifies the emitter mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521869-emittersize?language=objc -func (e_ EmitterLayer) EmitterSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](e_, objc.Sel("emitterSize")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522128-emittermode?language=objc +func (e_ EmitterLayer) EmitterMode() EmitterLayerEmitterMode { + rv := objc.Call[EmitterLayerEmitterMode](e_, objc.Sel("emitterMode")) return rv } -// Determines the size of the particle emitter shape. Animatable. [Full Topic] +// Specifies the emitter mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521869-emittersize?language=objc -func (e_ EmitterLayer) SetEmitterSize(value coregraphics.Size) { - objc.Call[objc.Void](e_, objc.Sel("setEmitterSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522128-emittermode?language=objc +func (e_ EmitterLayer) SetEmitterMode(value EmitterLayerEmitterMode) { + objc.Call[objc.Void](e_, objc.Sel("setEmitterMode:"), value) } -// Defines a multiplier applied to the cell-defined lifetime range when particles are created. Animatable. [Full Topic] +// Defines a multiplier that is applied to the cell-defined birth rate. Animatable [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522144-lifetime?language=objc -func (e_ EmitterLayer) Lifetime() float32 { - rv := objc.Call[float32](e_, objc.Sel("lifetime")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521976-birthrate?language=objc +func (e_ EmitterLayer) BirthRate() float32 { + rv := objc.Call[float32](e_, objc.Sel("birthRate")) return rv } -// Defines a multiplier applied to the cell-defined lifetime range when particles are created. Animatable. [Full Topic] +// Defines a multiplier that is applied to the cell-defined birth rate. Animatable [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522144-lifetime?language=objc -func (e_ EmitterLayer) SetLifetime(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setLifetime:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521976-birthrate?language=objc +func (e_ EmitterLayer) SetBirthRate(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setBirthRate:"), value) } -// Defines how particle cells are rendered into the layer. [Full Topic] +// Specifies the center of the particle emitter shape along the z-axis. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522104-rendermode?language=objc -func (e_ EmitterLayer) RenderMode() EmitterLayerRenderMode { - rv := objc.Call[EmitterLayerRenderMode](e_, objc.Sel("renderMode")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522169-emitterzposition?language=objc +func (e_ EmitterLayer) EmitterZPosition() float64 { + rv := objc.Call[float64](e_, objc.Sel("emitterZPosition")) return rv } -// Defines how particle cells are rendered into the layer. [Full Topic] +// Specifies the center of the particle emitter shape along the z-axis. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522104-rendermode?language=objc -func (e_ EmitterLayer) SetRenderMode(value EmitterLayerRenderMode) { - objc.Call[objc.Void](e_, objc.Sel("setRenderMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522169-emitterzposition?language=objc +func (e_ EmitterLayer) SetEmitterZPosition(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setEmitterZPosition:"), value) } // Determines the depth of the emitter shape. [Full Topic] @@ -198,6 +213,21 @@ func (e_ EmitterLayer) SetEmitterDepth(value float64) { objc.Call[objc.Void](e_, objc.Sel("setEmitterDepth:"), value) } +// Determines the size of the particle emitter shape. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521869-emittersize?language=objc +func (e_ EmitterLayer) EmitterSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](e_, objc.Sel("emitterSize")) + return rv +} + +// Determines the size of the particle emitter shape. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521869-emittersize?language=objc +func (e_ EmitterLayer) SetEmitterSize(value coregraphics.Size) { + objc.Call[objc.Void](e_, objc.Sel("setEmitterSize:"), value) +} + // The position of the center of the particle emitter. Animatable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522289-emitterposition?language=objc @@ -213,34 +243,34 @@ func (e_ EmitterLayer) SetEmitterPosition(value coregraphics.Point) { objc.Call[objc.Void](e_, objc.Sel("setEmitterPosition:"), value) } -// Defines a multiplier applied to the cell-defined particle scale. [Full Topic] +// Defines a multiplier applied to the cell-defined lifetime range when particles are created. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521841-scale?language=objc -func (e_ EmitterLayer) Scale() float32 { - rv := objc.Call[float32](e_, objc.Sel("scale")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522144-lifetime?language=objc +func (e_ EmitterLayer) Lifetime() float32 { + rv := objc.Call[float32](e_, objc.Sel("lifetime")) return rv } -// Defines a multiplier applied to the cell-defined particle scale. [Full Topic] +// Defines a multiplier applied to the cell-defined lifetime range when particles are created. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521841-scale?language=objc -func (e_ EmitterLayer) SetScale(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522144-lifetime?language=objc +func (e_ EmitterLayer) SetLifetime(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setLifetime:"), value) } -// Specifies the emitter shape. [Full Topic] +// The array emitter cells attached to the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521919-emittershape?language=objc -func (e_ EmitterLayer) EmitterShape() EmitterLayerEmitterShape { - rv := objc.Call[EmitterLayerEmitterShape](e_, objc.Sel("emitterShape")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521923-emittercells?language=objc +func (e_ EmitterLayer) EmitterCells() []EmitterCell { + rv := objc.Call[[]EmitterCell](e_, objc.Sel("emitterCells")) return rv } -// Specifies the emitter shape. [Full Topic] +// The array emitter cells attached to the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521919-emittershape?language=objc -func (e_ EmitterLayer) SetEmitterShape(value EmitterLayerEmitterShape) { - objc.Call[objc.Void](e_, objc.Sel("setEmitterShape:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521923-emittercells?language=objc +func (e_ EmitterLayer) SetEmitterCells(value []IEmitterCell) { + objc.Call[objc.Void](e_, objc.Sel("setEmitterCells:"), value) } // Defines a multiplier applied to the cell-defined particle spin. Animatable. [Full Topic] @@ -258,49 +288,19 @@ func (e_ EmitterLayer) SetSpin(value float32) { objc.Call[objc.Void](e_, objc.Sel("setSpin:"), value) } -// Specifies the seed used to initialize the random number generator. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522079-seed?language=objc -func (e_ EmitterLayer) Seed() int { - rv := objc.Call[int](e_, objc.Sel("seed")) - return rv -} - -// Specifies the seed used to initialize the random number generator. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522079-seed?language=objc -func (e_ EmitterLayer) SetSeed(value int) { - objc.Call[objc.Void](e_, objc.Sel("setSeed:"), value) -} - -// Specifies the emitter mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522128-emittermode?language=objc -func (e_ EmitterLayer) EmitterMode() EmitterLayerEmitterMode { - rv := objc.Call[EmitterLayerEmitterMode](e_, objc.Sel("emitterMode")) - return rv -} - -// Specifies the emitter mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522128-emittermode?language=objc -func (e_ EmitterLayer) SetEmitterMode(value EmitterLayerEmitterMode) { - objc.Call[objc.Void](e_, objc.Sel("setEmitterMode:"), value) -} - -// Specifies the center of the particle emitter shape along the z-axis. Animatable. [Full Topic] +// Defines a multiplier applied to the cell-defined particle velocity. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522169-emitterzposition?language=objc -func (e_ EmitterLayer) EmitterZPosition() float64 { - rv := objc.Call[float64](e_, objc.Sel("emitterZPosition")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522015-velocity?language=objc +func (e_ EmitterLayer) Velocity() float32 { + rv := objc.Call[float32](e_, objc.Sel("velocity")) return rv } -// Specifies the center of the particle emitter shape along the z-axis. Animatable. [Full Topic] +// Defines a multiplier applied to the cell-defined particle velocity. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522169-emitterzposition?language=objc -func (e_ EmitterLayer) SetEmitterZPosition(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setEmitterZPosition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522015-velocity?language=objc +func (e_ EmitterLayer) SetVelocity(value float32) { + objc.Call[objc.Void](e_, objc.Sel("setVelocity:"), value) } // Defines whether the layer flattens the particles into its plane. [Full Topic] @@ -318,47 +318,47 @@ func (e_ EmitterLayer) SetPreservesDepth(value bool) { objc.Call[objc.Void](e_, objc.Sel("setPreservesDepth:"), value) } -// Defines a multiplier applied to the cell-defined particle velocity. Animatable. [Full Topic] +// Defines how particle cells are rendered into the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522015-velocity?language=objc -func (e_ EmitterLayer) Velocity() float32 { - rv := objc.Call[float32](e_, objc.Sel("velocity")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522104-rendermode?language=objc +func (e_ EmitterLayer) RenderMode() EmitterLayerRenderMode { + rv := objc.Call[EmitterLayerRenderMode](e_, objc.Sel("renderMode")) return rv } -// Defines a multiplier applied to the cell-defined particle velocity. Animatable. [Full Topic] +// Defines how particle cells are rendered into the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522015-velocity?language=objc -func (e_ EmitterLayer) SetVelocity(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setVelocity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522104-rendermode?language=objc +func (e_ EmitterLayer) SetRenderMode(value EmitterLayerRenderMode) { + objc.Call[objc.Void](e_, objc.Sel("setRenderMode:"), value) } -// The array emitter cells attached to the layer. [Full Topic] +// Specifies the seed used to initialize the random number generator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521923-emittercells?language=objc -func (e_ EmitterLayer) EmitterCells() []EmitterCell { - rv := objc.Call[[]EmitterCell](e_, objc.Sel("emitterCells")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522079-seed?language=objc +func (e_ EmitterLayer) Seed() int { + rv := objc.Call[int](e_, objc.Sel("seed")) return rv } -// The array emitter cells attached to the layer. [Full Topic] +// Specifies the seed used to initialize the random number generator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521923-emittercells?language=objc -func (e_ EmitterLayer) SetEmitterCells(value []IEmitterCell) { - objc.Call[objc.Void](e_, objc.Sel("setEmitterCells:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522079-seed?language=objc +func (e_ EmitterLayer) SetSeed(value int) { + objc.Call[objc.Void](e_, objc.Sel("setSeed:"), value) } -// Defines a multiplier that is applied to the cell-defined birth rate. Animatable [Full Topic] +// Specifies the emitter shape. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521976-birthrate?language=objc -func (e_ EmitterLayer) BirthRate() float32 { - rv := objc.Call[float32](e_, objc.Sel("birthRate")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521919-emittershape?language=objc +func (e_ EmitterLayer) EmitterShape() EmitterLayerEmitterShape { + rv := objc.Call[EmitterLayerEmitterShape](e_, objc.Sel("emitterShape")) return rv } -// Defines a multiplier that is applied to the cell-defined birth rate. Animatable [Full Topic] +// Specifies the emitter shape. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521976-birthrate?language=objc -func (e_ EmitterLayer) SetBirthRate(value float32) { - objc.Call[objc.Void](e_, objc.Sel("setBirthRate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521919-emittershape?language=objc +func (e_ EmitterLayer) SetEmitterShape(value EmitterLayerEmitterShape) { + objc.Call[objc.Void](e_, objc.Sel("setEmitterShape:"), value) } diff --git a/macos/quartzcore/enumtypes.gen.go b/macos/quartzcore/enumtypes.gen.go index a6b0bfe9..59c76608 100644 --- a/macos/quartzcore/enumtypes.gen.go +++ b/macos/quartzcore/enumtypes.gen.go @@ -25,7 +25,7 @@ const ( KAnimationRotateAutoReverse AnimationRotationMode = "autoReverse" ) -// These constants are used by the [quartzcore/calayer/autoresizingmask] property. [Full Topic] +// These constants are used by the autoresizingMask property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caautoresizingmask?language=objc type AutoresizingMask int @@ -68,7 +68,7 @@ const ( KLayerMinXMinYCorner CornerMask = 1 ) -// This mask is used by the [quartzcore/calayer/edgeantialiasingmask] property. [Full Topic] +// This mask is used by the edgeAntialiasingMask property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caedgeantialiasingmask?language=objc type EdgeAntialiasingMask int diff --git a/macos/quartzcore/gradient_layer.gen.go b/macos/quartzcore/gradient_layer.gen.go index bfd8e5c7..ca847fd7 100644 --- a/macos/quartzcore/gradient_layer.gen.go +++ b/macos/quartzcore/gradient_layer.gen.go @@ -20,16 +20,16 @@ type _GradientLayerClass struct { // An interface definition for the [GradientLayer] class. type IGradientLayer interface { ILayer + Locations() []foundation.Number + SetLocations(value []foundation.INumber) EndPoint() coregraphics.Point SetEndPoint(value coregraphics.Point) - Type() GradientLayerType - SetType(value GradientLayerType) StartPoint() coregraphics.Point SetStartPoint(value coregraphics.Point) + Type() GradientLayerType + SetType(value GradientLayerType) Colors() []objc.Object SetColors(value []objc.IObject) - Locations() []foundation.Number - SetLocations(value []foundation.INumber) } // A layer that draws a color gradient over its background color, filling the shape of the layer (including rounded corners) [Full Topic] @@ -65,6 +65,32 @@ func (g_ GradientLayer) Init() GradientLayer { return rv } +func (gc _GradientLayerClass) Layer() GradientLayer { + rv := objc.Call[GradientLayer](gc, objc.Sel("layer")) + return rv +} + +// Creates and returns an instance of the layer object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func GradientLayer_Layer() GradientLayer { + return GradientLayerClass.Layer() +} + +func (g_ GradientLayer) InitWithLayer(layer objc.IObject) GradientLayer { + rv := objc.Call[GradientLayer](g_, objc.Sel("initWithLayer:"), layer) + return rv +} + +// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewGradientLayerWithLayer(layer objc.IObject) GradientLayer { + instance := GradientLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + func (g_ GradientLayer) ModelLayer() GradientLayer { rv := objc.Call[GradientLayer](g_, objc.Sel("modelLayer")) return rv @@ -93,30 +119,19 @@ func GradientLayer_PresentationLayer() GradientLayer { return instance } -func (g_ GradientLayer) InitWithLayer(layer objc.IObject) GradientLayer { - rv := objc.Call[GradientLayer](g_, objc.Sel("initWithLayer:"), layer) - return rv -} - -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// An optional array of NSNumber objects defining the location of each gradient stop. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewGradientLayerWithLayer(layer objc.IObject) GradientLayer { - instance := GradientLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - -func (gc _GradientLayerClass) Layer() GradientLayer { - rv := objc.Call[GradientLayer](gc, objc.Sel("layer")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cagradientlayer/1462410-locations?language=objc +func (g_ GradientLayer) Locations() []foundation.Number { + rv := objc.Call[[]foundation.Number](g_, objc.Sel("locations")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// An optional array of NSNumber objects defining the location of each gradient stop. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func GradientLayer_Layer() GradientLayer { - return GradientLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cagradientlayer/1462410-locations?language=objc +func (g_ GradientLayer) SetLocations(value []foundation.INumber) { + objc.Call[objc.Void](g_, objc.Sel("setLocations:"), value) } // The end point of the gradient when drawn in the layer’s coordinate space. Animatable. [Full Topic] @@ -134,21 +149,6 @@ func (g_ GradientLayer) SetEndPoint(value coregraphics.Point) { objc.Call[objc.Void](g_, objc.Sel("setEndPoint:"), value) } -// Style of gradient drawn by the layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cagradientlayer/1462413-type?language=objc -func (g_ GradientLayer) Type() GradientLayerType { - rv := objc.Call[GradientLayerType](g_, objc.Sel("type")) - return rv -} - -// Style of gradient drawn by the layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cagradientlayer/1462413-type?language=objc -func (g_ GradientLayer) SetType(value GradientLayerType) { - objc.Call[objc.Void](g_, objc.Sel("setType:"), value) -} - // The start point of the gradient when drawn in the layer’s coordinate space. Animatable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/cagradientlayer/1462408-startpoint?language=objc @@ -164,6 +164,21 @@ func (g_ GradientLayer) SetStartPoint(value coregraphics.Point) { objc.Call[objc.Void](g_, objc.Sel("setStartPoint:"), value) } +// Style of gradient drawn by the layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cagradientlayer/1462413-type?language=objc +func (g_ GradientLayer) Type() GradientLayerType { + rv := objc.Call[GradientLayerType](g_, objc.Sel("type")) + return rv +} + +// Style of gradient drawn by the layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cagradientlayer/1462413-type?language=objc +func (g_ GradientLayer) SetType(value GradientLayerType) { + objc.Call[objc.Void](g_, objc.Sel("setType:"), value) +} + // An array of CGColorRef objects defining the color of each gradient stop. Animatable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/cagradientlayer/1462403-colors?language=objc @@ -178,18 +193,3 @@ func (g_ GradientLayer) Colors() []objc.Object { func (g_ GradientLayer) SetColors(value []objc.IObject) { objc.Call[objc.Void](g_, objc.Sel("setColors:"), value) } - -// An optional array of NSNumber objects defining the location of each gradient stop. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cagradientlayer/1462410-locations?language=objc -func (g_ GradientLayer) Locations() []foundation.Number { - rv := objc.Call[[]foundation.Number](g_, objc.Sel("locations")) - return rv -} - -// An optional array of NSNumber objects defining the location of each gradient stop. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cagradientlayer/1462410-locations?language=objc -func (g_ GradientLayer) SetLocations(value []foundation.INumber) { - objc.Call[objc.Void](g_, objc.Sel("setLocations:"), value) -} diff --git a/macos/quartzcore/keyframe_animation.gen.go b/macos/quartzcore/keyframe_animation.gen.go index b1fc974e..028c3fcb 100644 --- a/macos/quartzcore/keyframe_animation.gen.go +++ b/macos/quartzcore/keyframe_animation.gen.go @@ -19,24 +19,24 @@ type _KeyframeAnimationClass struct { // An interface definition for the [KeyframeAnimation] class. type IKeyframeAnimation interface { IPropertyAnimation - CalculationMode() AnimationCalculationMode - SetCalculationMode(value AnimationCalculationMode) + Path() unsafe.Pointer + SetPath(value unsafe.Pointer) + RotationMode() AnimationRotationMode + SetRotationMode(value AnimationRotationMode) BiasValues() []foundation.Number SetBiasValues(value []foundation.INumber) TensionValues() []foundation.Number SetTensionValues(value []foundation.INumber) KeyTimes() []foundation.Number SetKeyTimes(value []foundation.INumber) + CalculationMode() AnimationCalculationMode + SetCalculationMode(value AnimationCalculationMode) ContinuityValues() []foundation.Number SetContinuityValues(value []foundation.INumber) - RotationMode() AnimationRotationMode - SetRotationMode(value AnimationRotationMode) - TimingFunctions() []MediaTimingFunction - SetTimingFunctions(value []IMediaTimingFunction) Values() []objc.Object SetValues(value []objc.IObject) - Path() unsafe.Pointer - SetPath(value unsafe.Pointer) + TimingFunctions() []MediaTimingFunction + SetTimingFunctions(value []IMediaTimingFunction) } // An object that provides keyframe animation capabilities for a layer object. [Full Topic] @@ -96,19 +96,34 @@ func KeyframeAnimation_Animation() KeyframeAnimation { return KeyframeAnimationClass.Animation() } -// Specifies how intermediate keyframe values are calculated by the receiver. [Full Topic] +// The path for a point-based property to follow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412500-calculationmode?language=objc -func (k_ KeyframeAnimation) CalculationMode() AnimationCalculationMode { - rv := objc.Call[AnimationCalculationMode](k_, objc.Sel("calculationMode")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412474-path?language=objc +func (k_ KeyframeAnimation) Path() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](k_, objc.Sel("path")) return rv } -// Specifies how intermediate keyframe values are calculated by the receiver. [Full Topic] +// The path for a point-based property to follow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412500-calculationmode?language=objc -func (k_ KeyframeAnimation) SetCalculationMode(value AnimationCalculationMode) { - objc.Call[objc.Void](k_, objc.Sel("setCalculationMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412474-path?language=objc +func (k_ KeyframeAnimation) SetPath(value unsafe.Pointer) { + objc.Call[objc.Void](k_, objc.Sel("setPath:"), value) +} + +// Determines whether objects animating along the path rotate to match the path tangent. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412454-rotationmode?language=objc +func (k_ KeyframeAnimation) RotationMode() AnimationRotationMode { + rv := objc.Call[AnimationRotationMode](k_, objc.Sel("rotationMode")) + return rv +} + +// Determines whether objects animating along the path rotate to match the path tangent. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412454-rotationmode?language=objc +func (k_ KeyframeAnimation) SetRotationMode(value AnimationRotationMode) { + objc.Call[objc.Void](k_, objc.Sel("setRotationMode:"), value) } // An array of NSNumber objects that define the position of the curve relative to a control point. [Full Topic] @@ -156,6 +171,21 @@ func (k_ KeyframeAnimation) SetKeyTimes(value []foundation.INumber) { objc.Call[objc.Void](k_, objc.Sel("setKeyTimes:"), value) } +// Specifies how intermediate keyframe values are calculated by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412500-calculationmode?language=objc +func (k_ KeyframeAnimation) CalculationMode() AnimationCalculationMode { + rv := objc.Call[AnimationCalculationMode](k_, objc.Sel("calculationMode")) + return rv +} + +// Specifies how intermediate keyframe values are calculated by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412500-calculationmode?language=objc +func (k_ KeyframeAnimation) SetCalculationMode(value AnimationCalculationMode) { + objc.Call[objc.Void](k_, objc.Sel("setCalculationMode:"), value) +} + // An array of NSNumber objects that define the sharpness of the timing curve’s corners. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412491-continuityvalues?language=objc @@ -171,36 +201,6 @@ func (k_ KeyframeAnimation) SetContinuityValues(value []foundation.INumber) { objc.Call[objc.Void](k_, objc.Sel("setContinuityValues:"), value) } -// Determines whether objects animating along the path rotate to match the path tangent. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412454-rotationmode?language=objc -func (k_ KeyframeAnimation) RotationMode() AnimationRotationMode { - rv := objc.Call[AnimationRotationMode](k_, objc.Sel("rotationMode")) - return rv -} - -// Determines whether objects animating along the path rotate to match the path tangent. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412454-rotationmode?language=objc -func (k_ KeyframeAnimation) SetRotationMode(value AnimationRotationMode) { - objc.Call[objc.Void](k_, objc.Sel("setRotationMode:"), value) -} - -// An optional array of CAMediaTimingFunction objects that define the pacing for each keyframe segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412465-timingfunctions?language=objc -func (k_ KeyframeAnimation) TimingFunctions() []MediaTimingFunction { - rv := objc.Call[[]MediaTimingFunction](k_, objc.Sel("timingFunctions")) - return rv -} - -// An optional array of CAMediaTimingFunction objects that define the pacing for each keyframe segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412465-timingfunctions?language=objc -func (k_ KeyframeAnimation) SetTimingFunctions(value []IMediaTimingFunction) { - objc.Call[objc.Void](k_, objc.Sel("setTimingFunctions:"), value) -} - // An array of objects that specify the keyframe values to use for the animation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412498-values?language=objc @@ -216,17 +216,17 @@ func (k_ KeyframeAnimation) SetValues(value []objc.IObject) { objc.Call[objc.Void](k_, objc.Sel("setValues:"), value) } -// The path for a point-based property to follow. [Full Topic] +// An optional array of CAMediaTimingFunction objects that define the pacing for each keyframe segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412474-path?language=objc -func (k_ KeyframeAnimation) Path() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](k_, objc.Sel("path")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412465-timingfunctions?language=objc +func (k_ KeyframeAnimation) TimingFunctions() []MediaTimingFunction { + rv := objc.Call[[]MediaTimingFunction](k_, objc.Sel("timingFunctions")) return rv } -// The path for a point-based property to follow. [Full Topic] +// An optional array of CAMediaTimingFunction objects that define the pacing for each keyframe segment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412474-path?language=objc -func (k_ KeyframeAnimation) SetPath(value unsafe.Pointer) { - objc.Call[objc.Void](k_, objc.Sel("setPath:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412465-timingfunctions?language=objc +func (k_ KeyframeAnimation) SetTimingFunctions(value []IMediaTimingFunction) { + objc.Call[objc.Void](k_, objc.Sel("setTimingFunctions:"), value) } diff --git a/macos/quartzcore/layer.gen.go b/macos/quartzcore/layer.gen.go index bb28b4f6..2d37b2de 100644 --- a/macos/quartzcore/layer.gen.go +++ b/macos/quartzcore/layer.gen.go @@ -21,157 +21,152 @@ type _LayerClass struct { // An interface definition for the [Layer] class. type ILayer interface { objc.IObject + AddConstraint(c IConstraint) + AddSublayer(layer ILayer) + ReplaceSublayerWith(oldLayer ILayer, newLayer ILayer) RenderInContext(ctx coregraphics.ContextRef) - SetNeedsDisplayInRect(r coregraphics.Rect) + LayoutSublayers() + HitTest(p coregraphics.Point) Layer + NeedsLayout() bool + ResizeWithOldSuperlayerSize(size coregraphics.Size) + ScrollRectToVisible(r coregraphics.Rect) + ActionForKey(event string) ActionObject + ScrollPoint(p coregraphics.Point) + ContainsPoint(p coregraphics.Point) bool RemoveFromSuperlayer() + ConvertRectFromLayer(r coregraphics.Rect, l ILayer) coregraphics.Rect + InsertSublayerAtIndex(layer ILayer, idx int) + RemoveAllAnimations() AnimationKeys() []string - DisplayIfNeeded() + AffineTransform() coregraphics.AffineTransform Display() - PreferredFrameSize() coregraphics.Size - SetAffineTransform(m coregraphics.AffineTransform) - ConvertPointFromLayer(p coregraphics.Point, l ILayer) coregraphics.Point - HitTest(p coregraphics.Point) Layer - LayoutSublayers() DrawInContext(ctx coregraphics.ContextRef) + AnimationForKey(key string) Animation ConvertTimeFromLayer(t corefoundation.TimeInterval, l ILayer) corefoundation.TimeInterval - AddSublayer(layer ILayer) - NeedsDisplay() bool - AddConstraint(c IConstraint) - AffineTransform() coregraphics.AffineTransform - InsertSublayerAtIndex(layer ILayer, idx int) + ResizeSublayersWithOldSize(size coregraphics.Size) ContentsAreFlipped() bool - ContainsPoint(p coregraphics.Point) bool - ReplaceSublayerWith(oldLayer ILayer, newLayer ILayer) - ScrollPoint(p coregraphics.Point) - AddAnimationForKey(anim IAnimation, key string) - RemoveAllAnimations() - ConvertPointToLayer(p coregraphics.Point, l ILayer) coregraphics.Point - SetNeedsDisplay() - AnimationForKey(key string) Animation - ConvertRectFromLayer(r coregraphics.Rect, l ILayer) coregraphics.Rect - ActionForKey(event string) ActionObject - LayoutIfNeeded() - SetNeedsLayout() - NeedsLayout() bool - ResizeWithOldSuperlayerSize(size coregraphics.Size) - InsertSublayerBelow(layer ILayer, sibling ILayer) - ScrollRectToVisible(r coregraphics.Rect) - ConvertTimeToLayer(t corefoundation.TimeInterval, l ILayer) corefoundation.TimeInterval - InsertSublayerAbove(layer ILayer, sibling ILayer) ShouldArchiveValueForKey(key string) bool + SetAffineTransform(m coregraphics.AffineTransform) + SetNeedsLayout() RemoveAnimationForKey(key string) - ResizeSublayersWithOldSize(size coregraphics.Size) - ConvertRectToLayer(r coregraphics.Rect, l ILayer) coregraphics.Rect - NeedsDisplayOnBoundsChange() bool - SetNeedsDisplayOnBoundsChange(value bool) - MasksToBounds() bool - SetMasksToBounds(value bool) - SublayerTransform() Transform3D - SetSublayerTransform(value Transform3D) + PreferredFrameSize() coregraphics.Size + SetNeedsDisplayInRect(r coregraphics.Rect) + SetNeedsDisplay() + LayoutIfNeeded() + AddAnimationForKey(anim IAnimation, key string) + DisplayIfNeeded() + NeedsDisplay() bool + ConvertPointToLayer(p coregraphics.Point, l ILayer) coregraphics.Point + IsGeometryFlipped() bool + SetGeometryFlipped(value bool) + Opacity() float32 + SetOpacity(value float32) + VisibleRect() coregraphics.Rect ShadowPath() unsafe.Pointer SetShadowPath(value unsafe.Pointer) - MagnificationFilter() LayerContentsFilter - SetMagnificationFilter(value LayerContentsFilter) - Superlayer() Layer - Filters() []objc.Object - SetFilters(value []objc.IObject) - Style() foundation.Dictionary - SetStyle(value foundation.Dictionary) + IsHidden() bool + SetHidden(value bool) AnchorPoint() coregraphics.Point SetAnchorPoint(value coregraphics.Point) - BorderColor() coregraphics.ColorRef - SetBorderColor(value coregraphics.ColorRef) - AllowsEdgeAntialiasing() bool - SetAllowsEdgeAntialiasing(value bool) - BorderWidth() float64 - SetBorderWidth(value float64) - Constraints() []Constraint - SetConstraints(value []IConstraint) - BackgroundColor() coregraphics.ColorRef - SetBackgroundColor(value coregraphics.ColorRef) - ContentsFormat() LayerContentsFormat - SetContentsFormat(value LayerContentsFormat) - CornerRadius() float64 - SetCornerRadius(value float64) - Bounds() coregraphics.Rect - SetBounds(value coregraphics.Rect) - Position() coregraphics.Point - SetPosition(value coregraphics.Point) - EdgeAntialiasingMask() EdgeAntialiasingMask - SetEdgeAntialiasingMask(value EdgeAntialiasingMask) - Opacity() float32 - SetOpacity(value float32) + Name() string + SetName(value string) + ContentsGravity() LayerContentsGravity + SetContentsGravity(value LayerContentsGravity) MinificationFilter() LayerContentsFilter SetMinificationFilter(value LayerContentsFilter) - BackgroundFilters() []objc.Object - SetBackgroundFilters(value []objc.IObject) - CompositingFilter() objc.Object - SetCompositingFilter(value objc.IObject) + ContentsScale() float64 + SetContentsScale(value float64) + ShadowOffset() coregraphics.Size + SetShadowOffset(value coregraphics.Size) + ShouldRasterize() bool + SetShouldRasterize(value bool) + ZPosition() float64 + SetZPosition(value float64) + RasterizationScale() float64 + SetRasterizationScale(value float64) + AllowsGroupOpacity() bool + SetAllowsGroupOpacity(value bool) ContentsRect() coregraphics.Rect SetContentsRect(value coregraphics.Rect) - ShadowRadius() float64 - SetShadowRadius(value float64) - Actions() foundation.Dictionary - SetActions(value foundation.Dictionary) - Name() string - SetName(value string) - Contents() objc.Object - SetContents(value objc.IObject) - IsHidden() bool - SetHidden(value bool) + AnchorPointZ() float64 + SetAnchorPointZ(value float64) + Style() foundation.Dictionary + SetStyle(value foundation.Dictionary) Sublayers() []Layer SetSublayers(value []ILayer) + CornerRadius() float64 + SetCornerRadius(value float64) + Bounds() coregraphics.Rect + SetBounds(value coregraphics.Rect) + SublayerTransform() Transform3D + SetSublayerTransform(value Transform3D) + Delegate() LayerDelegateObject + SetDelegate(value PLayerDelegate) + SetDelegateObject(valueObject objc.IObject) + ShadowRadius() float64 + SetShadowRadius(value float64) + Position() coregraphics.Point + SetPosition(value coregraphics.Point) + BackgroundColor() coregraphics.ColorRef + SetBackgroundColor(value coregraphics.ColorRef) + Superlayer() Layer IsOpaque() bool SetOpaque(value bool) - AllowsGroupOpacity() bool - SetAllowsGroupOpacity(value bool) - ContentsCenter() coregraphics.Rect - SetContentsCenter(value coregraphics.Rect) LayoutManager() LayoutManagerObject SetLayoutManager(value PLayoutManager) SetLayoutManagerObject(valueObject objc.IObject) - ContentsScale() float64 - SetContentsScale(value float64) - ShouldRasterize() bool - SetShouldRasterize(value bool) - MinificationFilterBias() float32 - SetMinificationFilterBias(value float32) - MaskedCorners() CornerMask - SetMaskedCorners(value CornerMask) - IsGeometryFlipped() bool - SetGeometryFlipped(value bool) - AutoresizingMask() AutoresizingMask - SetAutoresizingMask(value AutoresizingMask) - ContentsGravity() LayerContentsGravity - SetContentsGravity(value LayerContentsGravity) - ZPosition() float64 - SetZPosition(value float64) - ShadowColor() coregraphics.ColorRef - SetShadowColor(value coregraphics.ColorRef) - Transform() Transform3D - SetTransform(value Transform3D) - ShadowOffset() coregraphics.Size - SetShadowOffset(value coregraphics.Size) DrawsAsynchronously() bool SetDrawsAsynchronously(value bool) - Frame() coregraphics.Rect - SetFrame(value coregraphics.Rect) - VisibleRect() coregraphics.Rect - AnchorPointZ() float64 - SetAnchorPointZ(value float64) + MaskedCorners() CornerMask + SetMaskedCorners(value CornerMask) + IsDoubleSided() bool + SetDoubleSided(value bool) Mask() Layer SetMask(value ILayer) - RasterizationScale() float64 - SetRasterizationScale(value float64) - CornerCurve() LayerCornerCurve - SetCornerCurve(value LayerCornerCurve) + MasksToBounds() bool + SetMasksToBounds(value bool) ShadowOpacity() float32 SetShadowOpacity(value float32) - Delegate() LayerDelegateObject - SetDelegate(value PLayerDelegate) - SetDelegateObject(valueObject objc.IObject) - IsDoubleSided() bool - SetDoubleSided(value bool) + Contents() objc.Object + SetContents(value objc.IObject) + Filters() []objc.Object + SetFilters(value []objc.IObject) + CornerCurve() LayerCornerCurve + SetCornerCurve(value LayerCornerCurve) + Frame() coregraphics.Rect + SetFrame(value coregraphics.Rect) + ShadowColor() coregraphics.ColorRef + SetShadowColor(value coregraphics.ColorRef) + ContentsFormat() LayerContentsFormat + SetContentsFormat(value LayerContentsFormat) + MagnificationFilter() LayerContentsFilter + SetMagnificationFilter(value LayerContentsFilter) + CompositingFilter() objc.Object + SetCompositingFilter(value objc.IObject) + Transform() Transform3D + SetTransform(value Transform3D) + AllowsEdgeAntialiasing() bool + SetAllowsEdgeAntialiasing(value bool) + BorderColor() coregraphics.ColorRef + SetBorderColor(value coregraphics.ColorRef) + NeedsDisplayOnBoundsChange() bool + SetNeedsDisplayOnBoundsChange(value bool) + ContentsCenter() coregraphics.Rect + SetContentsCenter(value coregraphics.Rect) + EdgeAntialiasingMask() EdgeAntialiasingMask + SetEdgeAntialiasingMask(value EdgeAntialiasingMask) + AutoresizingMask() AutoresizingMask + SetAutoresizingMask(value AutoresizingMask) + BackgroundFilters() []objc.Object + SetBackgroundFilters(value []objc.IObject) + BorderWidth() float64 + SetBorderWidth(value float64) + Constraints() []Constraint + SetConstraints(value []IConstraint) + Actions() foundation.Dictionary + SetActions(value foundation.Dictionary) + MinificationFilterBias() float32 + SetMinificationFilterBias(value float32) } // An object that manages image-based content and allows you to perform animations on that content. [Full Topic] @@ -187,16 +182,28 @@ func LayerFrom(ptr unsafe.Pointer) Layer { } } -func (l_ Layer) ModelLayer() Layer { - rv := objc.Call[Layer](l_, objc.Sel("modelLayer")) +func (lc _LayerClass) Layer() Layer { + rv := objc.Call[Layer](lc, objc.Sel("layer")) return rv } -// Returns the model layer object associated with the receiver, if any. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc -func Layer_ModelLayer() Layer { - instance := LayerClass.Alloc().ModelLayer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func Layer_Layer() Layer { + return LayerClass.Layer() +} + +func (l_ Layer) InitWithLayer(layer objc.IObject) Layer { + rv := objc.Call[Layer](l_, objc.Sel("initWithLayer:"), layer) + return rv +} + +// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewLayerWithLayer(layer objc.IObject) Layer { + instance := LayerClass.Alloc().InitWithLayer(layer) instance.Autorelease() return instance } @@ -206,46 +213,34 @@ func (l_ Layer) Init() Layer { return rv } -func (l_ Layer) PresentationLayer() Layer { - rv := objc.Call[Layer](l_, objc.Sel("presentationLayer")) +func (l_ Layer) ModelLayer() Layer { + rv := objc.Call[Layer](l_, objc.Sel("modelLayer")) return rv } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc -func Layer_PresentationLayer() Layer { - instance := LayerClass.Alloc().PresentationLayer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc +func Layer_ModelLayer() Layer { + instance := LayerClass.Alloc().ModelLayer() instance.Autorelease() return instance } -func (l_ Layer) InitWithLayer(layer objc.IObject) Layer { - rv := objc.Call[Layer](l_, objc.Sel("initWithLayer:"), layer) +func (l_ Layer) PresentationLayer() Layer { + rv := objc.Call[Layer](l_, objc.Sel("presentationLayer")) return rv } -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewLayerWithLayer(layer objc.IObject) Layer { - instance := LayerClass.Alloc().InitWithLayer(layer) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc +func Layer_PresentationLayer() Layer { + instance := LayerClass.Alloc().PresentationLayer() instance.Autorelease() return instance } -func (lc _LayerClass) Layer() Layer { - rv := objc.Call[Layer](lc, objc.Sel("layer")) - return rv -} - -// Creates and returns an instance of the layer object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func Layer_Layer() Layer { - return LayerClass.Layer() -} - func (lc _LayerClass) Alloc() Layer { rv := objc.Call[Layer](lc, objc.Sel("alloc")) return rv @@ -261,108 +256,32 @@ func NewLayer() Layer { return LayerClass.New() } -// Renders the layer and its sublayers into the specified context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410909-renderincontext?language=objc -func (l_ Layer) RenderInContext(ctx coregraphics.ContextRef) { - objc.Call[objc.Void](l_, objc.Sel("renderInContext:"), ctx) -} - -// Marks the region within the specified rectangle as needing to be updated. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410800-setneedsdisplayinrect?language=objc -func (l_ Layer) SetNeedsDisplayInRect(r coregraphics.Rect) { - objc.Call[objc.Void](l_, objc.Sel("setNeedsDisplayInRect:"), r) -} - -// Detaches the layer from its parent layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410767-removefromsuperlayer?language=objc -func (l_ Layer) RemoveFromSuperlayer() { - objc.Call[objc.Void](l_, objc.Sel("removeFromSuperlayer")) -} - -// Returns an array of strings that identify the animations currently attached to the layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410937-animationkeys?language=objc -func (l_ Layer) AnimationKeys() []string { - rv := objc.Call[[]string](l_, objc.Sel("animationKeys")) - return rv -} - -// Initiates the update process for a layer if it is currently marked as needing an update. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410813-displayifneeded?language=objc -func (l_ Layer) DisplayIfNeeded() { - objc.Call[objc.Void](l_, objc.Sel("displayIfNeeded")) -} - -// Initializes a layer with a remote client ID. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1522119-layerwithremoteclientid?language=objc -func (lc _LayerClass) LayerWithRemoteClientId(client_id uint32) Layer { - rv := objc.Call[Layer](lc, objc.Sel("layerWithRemoteClientId:"), client_id) - return rv -} - -// Initializes a layer with a remote client ID. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1522119-layerwithremoteclientid?language=objc -func Layer_LayerWithRemoteClientId(client_id uint32) Layer { - return LayerClass.LayerWithRemoteClientId(client_id) -} - -// Reloads the content of this layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410926-display?language=objc -func (l_ Layer) Display() { - objc.Call[objc.Void](l_, objc.Sel("display")) -} - -// Returns the preferred size of the layer in the coordinate space of its superlayer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410980-preferredframesize?language=objc -func (l_ Layer) PreferredFrameSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](l_, objc.Sel("preferredFrameSize")) - return rv -} - -// Sets the layer’s transform to the specified affine transform. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410868-setaffinetransform?language=objc -func (l_ Layer) SetAffineTransform(m coregraphics.AffineTransform) { - objc.Call[objc.Void](l_, objc.Sel("setAffineTransform:"), m) -} - -// Converts the point from the specified layer’s coordinate system to the receiver’s coordinate system. [Full Topic] +// Adds the specified constraint to the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410825-convertpoint?language=objc -func (l_ Layer) ConvertPointFromLayer(p coregraphics.Point, l ILayer) coregraphics.Point { - rv := objc.Call[coregraphics.Point](l_, objc.Sel("convertPoint:fromLayer:"), p, l) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1521899-addconstraint?language=objc +func (l_ Layer) AddConstraint(c IConstraint) { + objc.Call[objc.Void](l_, objc.Sel("addConstraint:"), c) } -// Returns a Boolean indicating whether changes to the specified key require the layer to be redisplayed. [Full Topic] +// Appends the layer to the layer’s list of sublayers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410769-needsdisplayforkey?language=objc -func (lc _LayerClass) NeedsDisplayForKey(key string) bool { - rv := objc.Call[bool](lc, objc.Sel("needsDisplayForKey:"), key) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410833-addsublayer?language=objc +func (l_ Layer) AddSublayer(layer ILayer) { + objc.Call[objc.Void](l_, objc.Sel("addSublayer:"), layer) } -// Returns a Boolean indicating whether changes to the specified key require the layer to be redisplayed. [Full Topic] +// Replaces the specified sublayer with a different layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410769-needsdisplayforkey?language=objc -func Layer_NeedsDisplayForKey(key string) bool { - return LayerClass.NeedsDisplayForKey(key) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410820-replacesublayer?language=objc +func (l_ Layer) ReplaceSublayerWith(oldLayer ILayer, newLayer ILayer) { + objc.Call[objc.Void](l_, objc.Sel("replaceSublayer:with:"), oldLayer, newLayer) } -// Returns the farthest descendant of the receiver in the layer hierarchy (including itself) that contains the specified point. [Full Topic] +// Renders the layer and its sublayers into the specified context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410972-hittest?language=objc -func (l_ Layer) HitTest(p coregraphics.Point) Layer { - rv := objc.Call[Layer](l_, objc.Sel("hitTest:"), p) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410909-renderincontext?language=objc +func (l_ Layer) RenderInContext(ctx coregraphics.ContextRef) { + objc.Call[objc.Void](l_, objc.Sel("renderInContext:"), ctx) } // Tells the layer to update its layout. [Full Topic] @@ -372,79 +291,57 @@ func (l_ Layer) LayoutSublayers() { objc.Call[objc.Void](l_, objc.Sel("layoutSublayers")) } -// Draws the layer’s content using the specified graphics context. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410757-drawincontext?language=objc -func (l_ Layer) DrawInContext(ctx coregraphics.ContextRef) { - objc.Call[objc.Void](l_, objc.Sel("drawInContext:"), ctx) -} - -// Converts the time interval from the specified layer’s time space to the receiver’s time space. [Full Topic] +// Returns the farthest descendant of the receiver in the layer hierarchy (including itself) that contains the specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410821-converttime?language=objc -func (l_ Layer) ConvertTimeFromLayer(t corefoundation.TimeInterval, l ILayer) corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](l_, objc.Sel("convertTime:fromLayer:"), t, l) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410972-hittest?language=objc +func (l_ Layer) HitTest(p coregraphics.Point) Layer { + rv := objc.Call[Layer](l_, objc.Sel("hitTest:"), p) return rv } -// Appends the layer to the layer’s list of sublayers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410833-addsublayer?language=objc -func (l_ Layer) AddSublayer(layer ILayer) { - objc.Call[objc.Void](l_, objc.Sel("addSublayer:"), layer) -} - -// Returns a Boolean indicating whether the layer has been marked as needing an update. [Full Topic] +// Returns a Boolean indicating whether the layer has been marked as needing a layout update. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410958-needsdisplay?language=objc -func (l_ Layer) NeedsDisplay() bool { - rv := objc.Call[bool](l_, objc.Sel("needsDisplay")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410956-needslayout?language=objc +func (l_ Layer) NeedsLayout() bool { + rv := objc.Call[bool](l_, objc.Sel("needsLayout")) return rv } -// Adds the specified constraint to the layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1521899-addconstraint?language=objc -func (l_ Layer) AddConstraint(c IConstraint) { - objc.Call[objc.Void](l_, objc.Sel("addConstraint:"), c) -} - -// Returns an affine version of the layer’s transform. [Full Topic] +// Informs the receiver that the size of its superlayer changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410882-affinetransform?language=objc -func (l_ Layer) AffineTransform() coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](l_, objc.Sel("affineTransform")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410894-resizewitholdsuperlayersize?language=objc +func (l_ Layer) ResizeWithOldSuperlayerSize(size coregraphics.Size) { + objc.Call[objc.Void](l_, objc.Sel("resizeWithOldSuperlayerSize:"), size) } -// Inserts the specified layer into the receiver’s list of sublayers at the specified index. [Full Topic] +// Initiates a scroll in the layer’s closest ancestor scroll layer so that the specified rectangle becomes visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410944-insertsublayer?language=objc -func (l_ Layer) InsertSublayerAtIndex(layer ILayer, idx int) { - objc.Call[objc.Void](l_, objc.Sel("insertSublayer:atIndex:"), layer, idx) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1522139-scrollrecttovisible?language=objc +func (l_ Layer) ScrollRectToVisible(r coregraphics.Rect) { + objc.Call[objc.Void](l_, objc.Sel("scrollRectToVisible:"), r) } -// Returns a Boolean indicating whether the layer content is implicitly flipped when rendered. [Full Topic] +// Returns the action object assigned to the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410777-contentsareflipped?language=objc -func (l_ Layer) ContentsAreFlipped() bool { - rv := objc.Call[bool](l_, objc.Sel("contentsAreFlipped")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410844-actionforkey?language=objc +func (l_ Layer) ActionForKey(event string) ActionObject { + rv := objc.Call[ActionObject](l_, objc.Sel("actionForKey:"), event) return rv } -// Returns whether the receiver contains a specified point. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410857-containspoint?language=objc -func (l_ Layer) ContainsPoint(p coregraphics.Point) bool { - rv := objc.Call[bool](l_, objc.Sel("containsPoint:"), p) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/3152597-cornercurveexpansionfactor?language=objc +func (lc _LayerClass) CornerCurveExpansionFactor(curve LayerCornerCurve) float64 { + rv := objc.Call[float64](lc, objc.Sel("cornerCurveExpansionFactor:"), curve) return rv } -// Replaces the specified sublayer with a different layer object. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410820-replacesublayer?language=objc -func (l_ Layer) ReplaceSublayerWith(oldLayer ILayer, newLayer ILayer) { - objc.Call[objc.Void](l_, objc.Sel("replaceSublayer:with:"), oldLayer, newLayer) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/3152597-cornercurveexpansionfactor?language=objc +func Layer_CornerCurveExpansionFactor(curve LayerCornerCurve) float64 { + return LayerClass.CornerCurveExpansionFactor(curve) } // Initiates a scroll in the layer’s closest ancestor scroll layer so that the specified point lies at the origin of the scroll layer. [Full Topic] @@ -454,41 +351,34 @@ func (l_ Layer) ScrollPoint(p coregraphics.Point) { objc.Call[objc.Void](l_, objc.Sel("scrollPoint:"), p) } -// Add the specified animation object to the layer’s render tree. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410848-addanimation?language=objc -func (l_ Layer) AddAnimationForKey(anim IAnimation, key string) { - objc.Call[objc.Void](l_, objc.Sel("addAnimation:forKey:"), anim, key) -} - -// Remove all animations attached to the layer. [Full Topic] +// Returns whether the receiver contains a specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410810-removeallanimations?language=objc -func (l_ Layer) RemoveAllAnimations() { - objc.Call[objc.Void](l_, objc.Sel("removeAllAnimations")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410857-containspoint?language=objc +func (l_ Layer) ContainsPoint(p coregraphics.Point) bool { + rv := objc.Call[bool](l_, objc.Sel("containsPoint:"), p) + return rv } -// Converts the point from the receiver’s coordinate system to the specified layer’s coordinate system. [Full Topic] +// Returns a Boolean indicating whether changes to the specified key require the layer to be redisplayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410881-convertpoint?language=objc -func (l_ Layer) ConvertPointToLayer(p coregraphics.Point, l ILayer) coregraphics.Point { - rv := objc.Call[coregraphics.Point](l_, objc.Sel("convertPoint:toLayer:"), p, l) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410769-needsdisplayforkey?language=objc +func (lc _LayerClass) NeedsDisplayForKey(key string) bool { + rv := objc.Call[bool](lc, objc.Sel("needsDisplayForKey:"), key) return rv } -// Marks the layer’s contents as needing to be updated. [Full Topic] +// Returns a Boolean indicating whether changes to the specified key require the layer to be redisplayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410855-setneedsdisplay?language=objc -func (l_ Layer) SetNeedsDisplay() { - objc.Call[objc.Void](l_, objc.Sel("setNeedsDisplay")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410769-needsdisplayforkey?language=objc +func Layer_NeedsDisplayForKey(key string) bool { + return LayerClass.NeedsDisplayForKey(key) } -// Returns the animation object with the specified identifier. [Full Topic] +// Detaches the layer from its parent layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410808-animationforkey?language=objc -func (l_ Layer) AnimationForKey(key string) Animation { - rv := objc.Call[Animation](l_, objc.Sel("animationForKey:"), key) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410767-removefromsuperlayer?language=objc +func (l_ Layer) RemoveFromSuperlayer() { + objc.Call[objc.Void](l_, objc.Sel("removeFromSuperlayer")) } // Converts the rectangle from the specified layer’s coordinate system to the receiver’s coordinate system. [Full Topic] @@ -514,85 +404,94 @@ func Layer_DefaultValueForKey(key string) objc.Object { return LayerClass.DefaultValueForKey(key) } -// Returns the action object assigned to the specified key. [Full Topic] +// Inserts the specified layer into the receiver’s list of sublayers at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410844-actionforkey?language=objc -func (l_ Layer) ActionForKey(event string) ActionObject { - rv := objc.Call[ActionObject](l_, objc.Sel("actionForKey:"), event) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410944-insertsublayer?language=objc +func (l_ Layer) InsertSublayerAtIndex(layer ILayer, idx int) { + objc.Call[objc.Void](l_, objc.Sel("insertSublayer:atIndex:"), layer, idx) } -// [Full Topic] +// Remove all animations attached to the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/3152597-cornercurveexpansionfactor?language=objc -func (lc _LayerClass) CornerCurveExpansionFactor(curve LayerCornerCurve) float64 { - rv := objc.Call[float64](lc, objc.Sel("cornerCurveExpansionFactor:"), curve) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410810-removeallanimations?language=objc +func (l_ Layer) RemoveAllAnimations() { + objc.Call[objc.Void](l_, objc.Sel("removeAllAnimations")) +} + +// Returns an array of strings that identify the animations currently attached to the layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410937-animationkeys?language=objc +func (l_ Layer) AnimationKeys() []string { + rv := objc.Call[[]string](l_, objc.Sel("animationKeys")) return rv } -// [Full Topic] +// Returns an affine version of the layer’s transform. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/3152597-cornercurveexpansionfactor?language=objc -func Layer_CornerCurveExpansionFactor(curve LayerCornerCurve) float64 { - return LayerClass.CornerCurveExpansionFactor(curve) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410882-affinetransform?language=objc +func (l_ Layer) AffineTransform() coregraphics.AffineTransform { + rv := objc.Call[coregraphics.AffineTransform](l_, objc.Sel("affineTransform")) + return rv } -// Recalculate the receiver’s layout, if required. [Full Topic] +// Reloads the content of this layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410873-layoutifneeded?language=objc -func (l_ Layer) LayoutIfNeeded() { - objc.Call[objc.Void](l_, objc.Sel("layoutIfNeeded")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410926-display?language=objc +func (l_ Layer) Display() { + objc.Call[objc.Void](l_, objc.Sel("display")) } -// Invalidates the layer’s layout and marks it as needing an update. [Full Topic] +// Draws the layer’s content using the specified graphics context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410946-setneedslayout?language=objc -func (l_ Layer) SetNeedsLayout() { - objc.Call[objc.Void](l_, objc.Sel("setNeedsLayout")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410757-drawincontext?language=objc +func (l_ Layer) DrawInContext(ctx coregraphics.ContextRef) { + objc.Call[objc.Void](l_, objc.Sel("drawInContext:"), ctx) } -// Returns a Boolean indicating whether the layer has been marked as needing a layout update. [Full Topic] +// Returns the animation object with the specified identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410956-needslayout?language=objc -func (l_ Layer) NeedsLayout() bool { - rv := objc.Call[bool](l_, objc.Sel("needsLayout")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410808-animationforkey?language=objc +func (l_ Layer) AnimationForKey(key string) Animation { + rv := objc.Call[Animation](l_, objc.Sel("animationForKey:"), key) return rv } -// Informs the receiver that the size of its superlayer changed. [Full Topic] +// Converts the time interval from the specified layer’s time space to the receiver’s time space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410894-resizewitholdsuperlayersize?language=objc -func (l_ Layer) ResizeWithOldSuperlayerSize(size coregraphics.Size) { - objc.Call[objc.Void](l_, objc.Sel("resizeWithOldSuperlayerSize:"), size) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410821-converttime?language=objc +func (l_ Layer) ConvertTimeFromLayer(t corefoundation.TimeInterval, l ILayer) corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](l_, objc.Sel("convertTime:fromLayer:"), t, l) + return rv } -// Inserts the specified sublayer below a different sublayer that already belongs to the receiver. [Full Topic] +// Informs the receiver’s sublayers that the receiver’s size has changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410840-insertsublayer?language=objc -func (l_ Layer) InsertSublayerBelow(layer ILayer, sibling ILayer) { - objc.Call[objc.Void](l_, objc.Sel("insertSublayer:below:"), layer, sibling) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410929-resizesublayerswitholdsize?language=objc +func (l_ Layer) ResizeSublayersWithOldSize(size coregraphics.Size) { + objc.Call[objc.Void](l_, objc.Sel("resizeSublayersWithOldSize:"), size) } -// Initiates a scroll in the layer’s closest ancestor scroll layer so that the specified rectangle becomes visible. [Full Topic] +// Initializes a layer with a remote client ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1522139-scrollrecttovisible?language=objc -func (l_ Layer) ScrollRectToVisible(r coregraphics.Rect) { - objc.Call[objc.Void](l_, objc.Sel("scrollRectToVisible:"), r) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1522119-layerwithremoteclientid?language=objc +func (lc _LayerClass) LayerWithRemoteClientId(client_id uint32) Layer { + rv := objc.Call[Layer](lc, objc.Sel("layerWithRemoteClientId:"), client_id) + return rv } -// Converts the time interval from the receiver’s time space to the specified layer’s time space [Full Topic] +// Initializes a layer with a remote client ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410823-converttime?language=objc -func (l_ Layer) ConvertTimeToLayer(t corefoundation.TimeInterval, l ILayer) corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](l_, objc.Sel("convertTime:toLayer:"), t, l) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1522119-layerwithremoteclientid?language=objc +func Layer_LayerWithRemoteClientId(client_id uint32) Layer { + return LayerClass.LayerWithRemoteClientId(client_id) } -// Inserts the specified sublayer above a different sublayer that already belongs to the receiver. [Full Topic] +// Returns a Boolean indicating whether the layer content is implicitly flipped when rendered. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410798-insertsublayer?language=objc -func (l_ Layer) InsertSublayerAbove(layer ILayer, sibling ILayer) { - objc.Call[objc.Void](l_, objc.Sel("insertSublayer:above:"), layer, sibling) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410777-contentsareflipped?language=objc +func (l_ Layer) ContentsAreFlipped() bool { + rv := objc.Call[bool](l_, objc.Sel("contentsAreFlipped")) + return rv } // Returns a Boolean indicating whether the value of the specified key should be archived. [Full Topic] @@ -603,6 +502,20 @@ func (l_ Layer) ShouldArchiveValueForKey(key string) bool { return rv } +// Sets the layer’s transform to the specified affine transform. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410868-setaffinetransform?language=objc +func (l_ Layer) SetAffineTransform(m coregraphics.AffineTransform) { + objc.Call[objc.Void](l_, objc.Sel("setAffineTransform:"), m) +} + +// Invalidates the layer’s layout and marks it as needing an update. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410946-setneedslayout?language=objc +func (l_ Layer) SetNeedsLayout() { + objc.Call[objc.Void](l_, objc.Sel("setNeedsLayout")) +} + // Remove the animation object with the specified key. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410939-removeanimationforkey?language=objc @@ -610,11 +523,12 @@ func (l_ Layer) RemoveAnimationForKey(key string) { objc.Call[objc.Void](l_, objc.Sel("removeAnimationForKey:"), key) } -// Informs the receiver’s sublayers that the receiver’s size has changed. [Full Topic] +// Returns the preferred size of the layer in the coordinate space of its superlayer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410929-resizesublayerswitholdsize?language=objc -func (l_ Layer) ResizeSublayersWithOldSize(size coregraphics.Size) { - objc.Call[objc.Void](l_, objc.Sel("resizeSublayersWithOldSize:"), size) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410980-preferredframesize?language=objc +func (l_ Layer) PreferredFrameSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](l_, objc.Sel("preferredFrameSize")) + return rv } // Returns the default action for the current class. [Full Topic] @@ -632,57 +546,93 @@ func Layer_DefaultActionForKey(event string) ActionObject { return LayerClass.DefaultActionForKey(event) } -// Converts the rectangle from the receiver’s coordinate system to the specified layer’s coordinate system. [Full Topic] +// Marks the region within the specified rectangle as needing to be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410742-convertrect?language=objc -func (l_ Layer) ConvertRectToLayer(r coregraphics.Rect, l ILayer) coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](l_, objc.Sel("convertRect:toLayer:"), r, l) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410800-setneedsdisplayinrect?language=objc +func (l_ Layer) SetNeedsDisplayInRect(r coregraphics.Rect) { + objc.Call[objc.Void](l_, objc.Sel("setNeedsDisplayInRect:"), r) } -// A Boolean indicating whether the layer contents must be updated when its bounds rectangle changes. [Full Topic] +// Marks the layer’s contents as needing to be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410923-needsdisplayonboundschange?language=objc -func (l_ Layer) NeedsDisplayOnBoundsChange() bool { - rv := objc.Call[bool](l_, objc.Sel("needsDisplayOnBoundsChange")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410855-setneedsdisplay?language=objc +func (l_ Layer) SetNeedsDisplay() { + objc.Call[objc.Void](l_, objc.Sel("setNeedsDisplay")) +} + +// Recalculate the receiver’s layout, if required. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410873-layoutifneeded?language=objc +func (l_ Layer) LayoutIfNeeded() { + objc.Call[objc.Void](l_, objc.Sel("layoutIfNeeded")) +} + +// Add the specified animation object to the layer’s render tree. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410848-addanimation?language=objc +func (l_ Layer) AddAnimationForKey(anim IAnimation, key string) { + objc.Call[objc.Void](l_, objc.Sel("addAnimation:forKey:"), anim, key) +} + +// Initiates the update process for a layer if it is currently marked as needing an update. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410813-displayifneeded?language=objc +func (l_ Layer) DisplayIfNeeded() { + objc.Call[objc.Void](l_, objc.Sel("displayIfNeeded")) +} + +// Returns a Boolean indicating whether the layer has been marked as needing an update. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410958-needsdisplay?language=objc +func (l_ Layer) NeedsDisplay() bool { + rv := objc.Call[bool](l_, objc.Sel("needsDisplay")) return rv } -// A Boolean indicating whether the layer contents must be updated when its bounds rectangle changes. [Full Topic] +// Converts the point from the receiver’s coordinate system to the specified layer’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410923-needsdisplayonboundschange?language=objc -func (l_ Layer) SetNeedsDisplayOnBoundsChange(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setNeedsDisplayOnBoundsChange:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410881-convertpoint?language=objc +func (l_ Layer) ConvertPointToLayer(p coregraphics.Point, l ILayer) coregraphics.Point { + rv := objc.Call[coregraphics.Point](l_, objc.Sel("convertPoint:toLayer:"), p, l) + return rv } -// A Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable. [Full Topic] +// A Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410896-maskstobounds?language=objc -func (l_ Layer) MasksToBounds() bool { - rv := objc.Call[bool](l_, objc.Sel("masksToBounds")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410960-geometryflipped?language=objc +func (l_ Layer) IsGeometryFlipped() bool { + rv := objc.Call[bool](l_, objc.Sel("isGeometryFlipped")) return rv } -// A Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable. [Full Topic] +// A Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410896-maskstobounds?language=objc -func (l_ Layer) SetMasksToBounds(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setMasksToBounds:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410960-geometryflipped?language=objc +func (l_ Layer) SetGeometryFlipped(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setGeometryFlipped:"), value) } -// Specifies the transform to apply to sublayers when rendering. Animatable. [Full Topic] +// The opacity of the receiver. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410888-sublayertransform?language=objc -func (l_ Layer) SublayerTransform() Transform3D { - rv := objc.Call[Transform3D](l_, objc.Sel("sublayerTransform")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410933-opacity?language=objc +func (l_ Layer) Opacity() float32 { + rv := objc.Call[float32](l_, objc.Sel("opacity")) return rv } -// Specifies the transform to apply to sublayers when rendering. Animatable. [Full Topic] +// The opacity of the receiver. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410888-sublayertransform?language=objc -func (l_ Layer) SetSublayerTransform(value Transform3D) { - objc.Call[objc.Void](l_, objc.Sel("setSublayerTransform:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410933-opacity?language=objc +func (l_ Layer) SetOpacity(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setOpacity:"), value) +} + +// The visible region of the layer in its own coordinate space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1521892-visiblerect?language=objc +func (l_ Layer) VisibleRect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("visibleRect")) + return rv } // The shape of the layer’s shadow. Animatable. [Full Topic] @@ -700,297 +650,298 @@ func (l_ Layer) SetShadowPath(value unsafe.Pointer) { objc.Call[objc.Void](l_, objc.Sel("setShadowPath:"), value) } -// The filter used when increasing the size of the content. [Full Topic] +// A Boolean indicating whether the layer is displayed. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410907-magnificationfilter?language=objc -func (l_ Layer) MagnificationFilter() LayerContentsFilter { - rv := objc.Call[LayerContentsFilter](l_, objc.Sel("magnificationFilter")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410838-hidden?language=objc +func (l_ Layer) IsHidden() bool { + rv := objc.Call[bool](l_, objc.Sel("isHidden")) return rv } -// The filter used when increasing the size of the content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410907-magnificationfilter?language=objc -func (l_ Layer) SetMagnificationFilter(value LayerContentsFilter) { - objc.Call[objc.Void](l_, objc.Sel("setMagnificationFilter:"), value) -} - -// The superlayer of the layer. [Full Topic] +// A Boolean indicating whether the layer is displayed. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410761-superlayer?language=objc -func (l_ Layer) Superlayer() Layer { - rv := objc.Call[Layer](l_, objc.Sel("superlayer")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410838-hidden?language=objc +func (l_ Layer) SetHidden(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setHidden:"), value) } -// An array of Core Image filters to apply to the contents of the layer and its sublayers. Animatable. [Full Topic] +// Defines the anchor point of the layer's bounds rectangle. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410901-filters?language=objc -func (l_ Layer) Filters() []objc.Object { - rv := objc.Call[[]objc.Object](l_, objc.Sel("filters")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410817-anchorpoint?language=objc +func (l_ Layer) AnchorPoint() coregraphics.Point { + rv := objc.Call[coregraphics.Point](l_, objc.Sel("anchorPoint")) return rv } -// An array of Core Image filters to apply to the contents of the layer and its sublayers. Animatable. [Full Topic] +// Defines the anchor point of the layer's bounds rectangle. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410901-filters?language=objc -func (l_ Layer) SetFilters(value []objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setFilters:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410817-anchorpoint?language=objc +func (l_ Layer) SetAnchorPoint(value coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("setAnchorPoint:"), value) } -// An optional dictionary used to store property values that aren't explicitly defined by the layer. [Full Topic] +// The name of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410875-style?language=objc -func (l_ Layer) Style() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](l_, objc.Sel("style")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410879-name?language=objc +func (l_ Layer) Name() string { + rv := objc.Call[string](l_, objc.Sel("name")) return rv } -// An optional dictionary used to store property values that aren't explicitly defined by the layer. [Full Topic] +// The name of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410875-style?language=objc -func (l_ Layer) SetStyle(value foundation.Dictionary) { - objc.Call[objc.Void](l_, objc.Sel("setStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410879-name?language=objc +func (l_ Layer) SetName(value string) { + objc.Call[objc.Void](l_, objc.Sel("setName:"), value) } -// Defines the anchor point of the layer's bounds rectangle. Animatable. [Full Topic] +// A constant that specifies how the layer's contents are positioned or scaled within its bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410817-anchorpoint?language=objc -func (l_ Layer) AnchorPoint() coregraphics.Point { - rv := objc.Call[coregraphics.Point](l_, objc.Sel("anchorPoint")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410872-contentsgravity?language=objc +func (l_ Layer) ContentsGravity() LayerContentsGravity { + rv := objc.Call[LayerContentsGravity](l_, objc.Sel("contentsGravity")) return rv } -// Defines the anchor point of the layer's bounds rectangle. Animatable. [Full Topic] +// A constant that specifies how the layer's contents are positioned or scaled within its bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410817-anchorpoint?language=objc -func (l_ Layer) SetAnchorPoint(value coregraphics.Point) { - objc.Call[objc.Void](l_, objc.Sel("setAnchorPoint:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410872-contentsgravity?language=objc +func (l_ Layer) SetContentsGravity(value LayerContentsGravity) { + objc.Call[objc.Void](l_, objc.Sel("setContentsGravity:"), value) } -// The color of the layer’s border. Animatable. [Full Topic] +// The filter used when reducing the size of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410903-bordercolor?language=objc -func (l_ Layer) BorderColor() coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](l_, objc.Sel("borderColor")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410898-minificationfilter?language=objc +func (l_ Layer) MinificationFilter() LayerContentsFilter { + rv := objc.Call[LayerContentsFilter](l_, objc.Sel("minificationFilter")) return rv } -// The color of the layer’s border. Animatable. [Full Topic] +// The filter used when reducing the size of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410903-bordercolor?language=objc -func (l_ Layer) SetBorderColor(value coregraphics.ColorRef) { - objc.Call[objc.Void](l_, objc.Sel("setBorderColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410898-minificationfilter?language=objc +func (l_ Layer) SetMinificationFilter(value LayerContentsFilter) { + objc.Call[objc.Void](l_, objc.Sel("setMinificationFilter:"), value) } -// A Boolean indicating whether the layer is allowed to perform edge antialiasing. [Full Topic] +// The scale factor applied to the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1621285-allowsedgeantialiasing?language=objc -func (l_ Layer) AllowsEdgeAntialiasing() bool { - rv := objc.Call[bool](l_, objc.Sel("allowsEdgeAntialiasing")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410746-contentsscale?language=objc +func (l_ Layer) ContentsScale() float64 { + rv := objc.Call[float64](l_, objc.Sel("contentsScale")) return rv } -// A Boolean indicating whether the layer is allowed to perform edge antialiasing. [Full Topic] +// The scale factor applied to the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1621285-allowsedgeantialiasing?language=objc -func (l_ Layer) SetAllowsEdgeAntialiasing(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setAllowsEdgeAntialiasing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410746-contentsscale?language=objc +func (l_ Layer) SetContentsScale(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setContentsScale:"), value) } -// The width of the layer’s border. Animatable. [Full Topic] +// The offset (in points) of the layer’s shadow. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410917-borderwidth?language=objc -func (l_ Layer) BorderWidth() float64 { - rv := objc.Call[float64](l_, objc.Sel("borderWidth")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410970-shadowoffset?language=objc +func (l_ Layer) ShadowOffset() coregraphics.Size { + rv := objc.Call[coregraphics.Size](l_, objc.Sel("shadowOffset")) return rv } -// The width of the layer’s border. Animatable. [Full Topic] +// The offset (in points) of the layer’s shadow. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410917-borderwidth?language=objc -func (l_ Layer) SetBorderWidth(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setBorderWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410970-shadowoffset?language=objc +func (l_ Layer) SetShadowOffset(value coregraphics.Size) { + objc.Call[objc.Void](l_, objc.Sel("setShadowOffset:"), value) } -// The constraints used to position current layer’s sublayers. [Full Topic] +// A Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1521906-constraints?language=objc -func (l_ Layer) Constraints() []Constraint { - rv := objc.Call[[]Constraint](l_, objc.Sel("constraints")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410905-shouldrasterize?language=objc +func (l_ Layer) ShouldRasterize() bool { + rv := objc.Call[bool](l_, objc.Sel("shouldRasterize")) return rv } -// The constraints used to position current layer’s sublayers. [Full Topic] +// A Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1521906-constraints?language=objc -func (l_ Layer) SetConstraints(value []IConstraint) { - objc.Call[objc.Void](l_, objc.Sel("setConstraints:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410905-shouldrasterize?language=objc +func (l_ Layer) SetShouldRasterize(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setShouldRasterize:"), value) } -// The background color of the receiver. Animatable. [Full Topic] +// The layer’s position on the z axis. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410966-backgroundcolor?language=objc -func (l_ Layer) BackgroundColor() coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](l_, objc.Sel("backgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410884-zposition?language=objc +func (l_ Layer) ZPosition() float64 { + rv := objc.Call[float64](l_, objc.Sel("zPosition")) return rv } -// The background color of the receiver. Animatable. [Full Topic] +// The layer’s position on the z axis. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410966-backgroundcolor?language=objc -func (l_ Layer) SetBackgroundColor(value coregraphics.ColorRef) { - objc.Call[objc.Void](l_, objc.Sel("setBackgroundColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410884-zposition?language=objc +func (l_ Layer) SetZPosition(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setZPosition:"), value) } -// A hint for the desired storage format of the layer contents. [Full Topic] +// The scale at which to rasterize content, relative to the coordinate space of the layer. Animatable [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1792104-contentsformat?language=objc -func (l_ Layer) ContentsFormat() LayerContentsFormat { - rv := objc.Call[LayerContentsFormat](l_, objc.Sel("contentsFormat")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410801-rasterizationscale?language=objc +func (l_ Layer) RasterizationScale() float64 { + rv := objc.Call[float64](l_, objc.Sel("rasterizationScale")) return rv } -// A hint for the desired storage format of the layer contents. [Full Topic] +// The scale at which to rasterize content, relative to the coordinate space of the layer. Animatable [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1792104-contentsformat?language=objc -func (l_ Layer) SetContentsFormat(value LayerContentsFormat) { - objc.Call[objc.Void](l_, objc.Sel("setContentsFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410801-rasterizationscale?language=objc +func (l_ Layer) SetRasterizationScale(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setRasterizationScale:"), value) } -// The radius to use when drawing rounded corners for the layer’s background. Animatable. [Full Topic] +// A Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410818-cornerradius?language=objc -func (l_ Layer) CornerRadius() float64 { - rv := objc.Call[float64](l_, objc.Sel("cornerRadius")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1621277-allowsgroupopacity?language=objc +func (l_ Layer) AllowsGroupOpacity() bool { + rv := objc.Call[bool](l_, objc.Sel("allowsGroupOpacity")) return rv } -// The radius to use when drawing rounded corners for the layer’s background. Animatable. [Full Topic] +// A Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410818-cornerradius?language=objc -func (l_ Layer) SetCornerRadius(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setCornerRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1621277-allowsgroupopacity?language=objc +func (l_ Layer) SetAllowsGroupOpacity(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setAllowsGroupOpacity:"), value) } -// The layer’s bounds rectangle. Animatable. [Full Topic] +// The rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410915-bounds?language=objc -func (l_ Layer) Bounds() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](l_, objc.Sel("bounds")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410866-contentsrect?language=objc +func (l_ Layer) ContentsRect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("contentsRect")) return rv } -// The layer’s bounds rectangle. Animatable. [Full Topic] +// The rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410915-bounds?language=objc -func (l_ Layer) SetBounds(value coregraphics.Rect) { - objc.Call[objc.Void](l_, objc.Sel("setBounds:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410866-contentsrect?language=objc +func (l_ Layer) SetContentsRect(value coregraphics.Rect) { + objc.Call[objc.Void](l_, objc.Sel("setContentsRect:"), value) } -// The layer’s position in its superlayer’s coordinate space. Animatable. [Full Topic] +// The anchor point for the layer’s position along the z axis. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410791-position?language=objc -func (l_ Layer) Position() coregraphics.Point { - rv := objc.Call[coregraphics.Point](l_, objc.Sel("position")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410796-anchorpointz?language=objc +func (l_ Layer) AnchorPointZ() float64 { + rv := objc.Call[float64](l_, objc.Sel("anchorPointZ")) return rv } -// The layer’s position in its superlayer’s coordinate space. Animatable. [Full Topic] +// The anchor point for the layer’s position along the z axis. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410791-position?language=objc -func (l_ Layer) SetPosition(value coregraphics.Point) { - objc.Call[objc.Void](l_, objc.Sel("setPosition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410796-anchorpointz?language=objc +func (l_ Layer) SetAnchorPointZ(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setAnchorPointZ:"), value) } -// A bitmask defining how the edges of the receiver are rasterized. [Full Topic] +// An optional dictionary used to store property values that aren't explicitly defined by the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410892-edgeantialiasingmask?language=objc -func (l_ Layer) EdgeAntialiasingMask() EdgeAntialiasingMask { - rv := objc.Call[EdgeAntialiasingMask](l_, objc.Sel("edgeAntialiasingMask")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410875-style?language=objc +func (l_ Layer) Style() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](l_, objc.Sel("style")) return rv } -// A bitmask defining how the edges of the receiver are rasterized. [Full Topic] +// An optional dictionary used to store property values that aren't explicitly defined by the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410892-edgeantialiasingmask?language=objc -func (l_ Layer) SetEdgeAntialiasingMask(value EdgeAntialiasingMask) { - objc.Call[objc.Void](l_, objc.Sel("setEdgeAntialiasingMask:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410875-style?language=objc +func (l_ Layer) SetStyle(value foundation.Dictionary) { + objc.Call[objc.Void](l_, objc.Sel("setStyle:"), value) } -// The opacity of the receiver. Animatable. [Full Topic] +// An array containing the layer’s sublayers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410933-opacity?language=objc -func (l_ Layer) Opacity() float32 { - rv := objc.Call[float32](l_, objc.Sel("opacity")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410802-sublayers?language=objc +func (l_ Layer) Sublayers() []Layer { + rv := objc.Call[[]Layer](l_, objc.Sel("sublayers")) return rv } -// The opacity of the receiver. Animatable. [Full Topic] +// An array containing the layer’s sublayers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410933-opacity?language=objc -func (l_ Layer) SetOpacity(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setOpacity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410802-sublayers?language=objc +func (l_ Layer) SetSublayers(value []ILayer) { + objc.Call[objc.Void](l_, objc.Sel("setSublayers:"), value) } -// The filter used when reducing the size of the content. [Full Topic] +// The radius to use when drawing rounded corners for the layer’s background. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410898-minificationfilter?language=objc -func (l_ Layer) MinificationFilter() LayerContentsFilter { - rv := objc.Call[LayerContentsFilter](l_, objc.Sel("minificationFilter")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410818-cornerradius?language=objc +func (l_ Layer) CornerRadius() float64 { + rv := objc.Call[float64](l_, objc.Sel("cornerRadius")) return rv } -// The filter used when reducing the size of the content. [Full Topic] +// The radius to use when drawing rounded corners for the layer’s background. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410898-minificationfilter?language=objc -func (l_ Layer) SetMinificationFilter(value LayerContentsFilter) { - objc.Call[objc.Void](l_, objc.Sel("setMinificationFilter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410818-cornerradius?language=objc +func (l_ Layer) SetCornerRadius(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setCornerRadius:"), value) } -// An array of Core Image filters to apply to the content immediately behind the layer. Animatable. [Full Topic] +// The layer’s bounds rectangle. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410827-backgroundfilters?language=objc -func (l_ Layer) BackgroundFilters() []objc.Object { - rv := objc.Call[[]objc.Object](l_, objc.Sel("backgroundFilters")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410915-bounds?language=objc +func (l_ Layer) Bounds() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("bounds")) return rv } -// An array of Core Image filters to apply to the content immediately behind the layer. Animatable. [Full Topic] +// The layer’s bounds rectangle. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410827-backgroundfilters?language=objc -func (l_ Layer) SetBackgroundFilters(value []objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setBackgroundFilters:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410915-bounds?language=objc +func (l_ Layer) SetBounds(value coregraphics.Rect) { + objc.Call[objc.Void](l_, objc.Sel("setBounds:"), value) } -// A CoreImage filter used to composite the layer and the content behind it. Animatable. [Full Topic] +// Specifies the transform to apply to sublayers when rendering. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410748-compositingfilter?language=objc -func (l_ Layer) CompositingFilter() objc.Object { - rv := objc.Call[objc.Object](l_, objc.Sel("compositingFilter")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410888-sublayertransform?language=objc +func (l_ Layer) SublayerTransform() Transform3D { + rv := objc.Call[Transform3D](l_, objc.Sel("sublayerTransform")) return rv } -// A CoreImage filter used to composite the layer and the content behind it. Animatable. [Full Topic] +// Specifies the transform to apply to sublayers when rendering. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410748-compositingfilter?language=objc -func (l_ Layer) SetCompositingFilter(value objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setCompositingFilter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410888-sublayertransform?language=objc +func (l_ Layer) SetSublayerTransform(value Transform3D) { + objc.Call[objc.Void](l_, objc.Sel("setSublayerTransform:"), value) +} + +// The layer’s delegate object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410984-delegate?language=objc +func (l_ Layer) Delegate() LayerDelegateObject { + rv := objc.Call[LayerDelegateObject](l_, objc.Sel("delegate")) + return rv } -// The rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable. [Full Topic] +// The layer’s delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410866-contentsrect?language=objc -func (l_ Layer) ContentsRect() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](l_, objc.Sel("contentsRect")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410984-delegate?language=objc +func (l_ Layer) SetDelegate(value PLayerDelegate) { + po0 := objc.WrapAsProtocol("CALayerDelegate", value) + objc.SetAssociatedObject(l_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), po0) } -// The rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable. [Full Topic] +// The layer’s delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410866-contentsrect?language=objc -func (l_ Layer) SetContentsRect(value coregraphics.Rect) { - objc.Call[objc.Void](l_, objc.Sel("setContentsRect:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410984-delegate?language=objc +func (l_ Layer) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), valueObject) } // The blur radius (in points) used to render the layer’s shadow. Animatable. [Full Topic] @@ -1008,282 +959,290 @@ func (l_ Layer) SetShadowRadius(value float64) { objc.Call[objc.Void](l_, objc.Sel("setShadowRadius:"), value) } -// A dictionary containing layer actions. [Full Topic] +// The layer’s position in its superlayer’s coordinate space. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410789-actions?language=objc -func (l_ Layer) Actions() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](l_, objc.Sel("actions")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410791-position?language=objc +func (l_ Layer) Position() coregraphics.Point { + rv := objc.Call[coregraphics.Point](l_, objc.Sel("position")) return rv } -// A dictionary containing layer actions. [Full Topic] +// The layer’s position in its superlayer’s coordinate space. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410789-actions?language=objc -func (l_ Layer) SetActions(value foundation.Dictionary) { - objc.Call[objc.Void](l_, objc.Sel("setActions:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410791-position?language=objc +func (l_ Layer) SetPosition(value coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("setPosition:"), value) } -// The name of the receiver. [Full Topic] +// The background color of the receiver. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410879-name?language=objc -func (l_ Layer) Name() string { - rv := objc.Call[string](l_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410966-backgroundcolor?language=objc +func (l_ Layer) BackgroundColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](l_, objc.Sel("backgroundColor")) return rv } -// The name of the receiver. [Full Topic] +// The background color of the receiver. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410879-name?language=objc -func (l_ Layer) SetName(value string) { - objc.Call[objc.Void](l_, objc.Sel("setName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410966-backgroundcolor?language=objc +func (l_ Layer) SetBackgroundColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](l_, objc.Sel("setBackgroundColor:"), value) } -// An object that provides the contents of the layer. Animatable. [Full Topic] +// The superlayer of the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410773-contents?language=objc -func (l_ Layer) Contents() objc.Object { - rv := objc.Call[objc.Object](l_, objc.Sel("contents")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410761-superlayer?language=objc +func (l_ Layer) Superlayer() Layer { + rv := objc.Call[Layer](l_, objc.Sel("superlayer")) return rv } -// An object that provides the contents of the layer. Animatable. [Full Topic] +// A Boolean value indicating whether the layer contains completely opaque content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410773-contents?language=objc -func (l_ Layer) SetContents(value objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setContents:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410763-opaque?language=objc +func (l_ Layer) IsOpaque() bool { + rv := objc.Call[bool](l_, objc.Sel("isOpaque")) + return rv } -// A Boolean indicating whether the layer is displayed. Animatable. [Full Topic] +// A Boolean value indicating whether the layer contains completely opaque content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410838-hidden?language=objc -func (l_ Layer) IsHidden() bool { - rv := objc.Call[bool](l_, objc.Sel("isHidden")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410763-opaque?language=objc +func (l_ Layer) SetOpaque(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setOpaque:"), value) } -// A Boolean indicating whether the layer is displayed. Animatable. [Full Topic] +// The object responsible for laying out the layer’s sublayers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410838-hidden?language=objc -func (l_ Layer) SetHidden(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setHidden:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410749-layoutmanager?language=objc +func (l_ Layer) LayoutManager() LayoutManagerObject { + rv := objc.Call[LayoutManagerObject](l_, objc.Sel("layoutManager")) + return rv } -// An array containing the layer’s sublayers. [Full Topic] +// The object responsible for laying out the layer’s sublayers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410802-sublayers?language=objc -func (l_ Layer) Sublayers() []Layer { - rv := objc.Call[[]Layer](l_, objc.Sel("sublayers")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410749-layoutmanager?language=objc +func (l_ Layer) SetLayoutManager(value PLayoutManager) { + po0 := objc.WrapAsProtocol("CALayoutManager", value) + objc.Call[objc.Void](l_, objc.Sel("setLayoutManager:"), po0) } -// An array containing the layer’s sublayers. [Full Topic] +// The object responsible for laying out the layer’s sublayers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410802-sublayers?language=objc -func (l_ Layer) SetSublayers(value []ILayer) { - objc.Call[objc.Void](l_, objc.Sel("setSublayers:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410749-layoutmanager?language=objc +func (l_ Layer) SetLayoutManagerObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setLayoutManager:"), valueObject) } -// A Boolean value indicating whether the layer contains completely opaque content. [Full Topic] +// A Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410763-opaque?language=objc -func (l_ Layer) IsOpaque() bool { - rv := objc.Call[bool](l_, objc.Sel("isOpaque")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410974-drawsasynchronously?language=objc +func (l_ Layer) DrawsAsynchronously() bool { + rv := objc.Call[bool](l_, objc.Sel("drawsAsynchronously")) return rv } -// A Boolean value indicating whether the layer contains completely opaque content. [Full Topic] +// A Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410763-opaque?language=objc -func (l_ Layer) SetOpaque(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setOpaque:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410974-drawsasynchronously?language=objc +func (l_ Layer) SetDrawsAsynchronously(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setDrawsAsynchronously:"), value) } -// A Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1621277-allowsgroupopacity?language=objc -func (l_ Layer) AllowsGroupOpacity() bool { - rv := objc.Call[bool](l_, objc.Sel("allowsGroupOpacity")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/2877488-maskedcorners?language=objc +func (l_ Layer) MaskedCorners() CornerMask { + rv := objc.Call[CornerMask](l_, objc.Sel("maskedCorners")) return rv } -// A Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1621277-allowsgroupopacity?language=objc -func (l_ Layer) SetAllowsGroupOpacity(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setAllowsGroupOpacity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/2877488-maskedcorners?language=objc +func (l_ Layer) SetMaskedCorners(value CornerMask) { + objc.Call[objc.Void](l_, objc.Sel("setMaskedCorners:"), value) } -// The rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable. [Full Topic] +// A Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410740-contentscenter?language=objc -func (l_ Layer) ContentsCenter() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](l_, objc.Sel("contentsCenter")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410924-doublesided?language=objc +func (l_ Layer) IsDoubleSided() bool { + rv := objc.Call[bool](l_, objc.Sel("isDoubleSided")) return rv } -// The rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable. [Full Topic] +// A Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410740-contentscenter?language=objc -func (l_ Layer) SetContentsCenter(value coregraphics.Rect) { - objc.Call[objc.Void](l_, objc.Sel("setContentsCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410924-doublesided?language=objc +func (l_ Layer) SetDoubleSided(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setDoubleSided:"), value) } -// The object responsible for laying out the layer’s sublayers. [Full Topic] +// An optional layer whose alpha channel is used to mask the layer’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410749-layoutmanager?language=objc -func (l_ Layer) LayoutManager() LayoutManagerObject { - rv := objc.Call[LayoutManagerObject](l_, objc.Sel("layoutManager")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410861-mask?language=objc +func (l_ Layer) Mask() Layer { + rv := objc.Call[Layer](l_, objc.Sel("mask")) return rv } -// The object responsible for laying out the layer’s sublayers. [Full Topic] +// An optional layer whose alpha channel is used to mask the layer’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410749-layoutmanager?language=objc -func (l_ Layer) SetLayoutManager(value PLayoutManager) { - po0 := objc.WrapAsProtocol("CALayoutManager", value) - objc.Call[objc.Void](l_, objc.Sel("setLayoutManager:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410861-mask?language=objc +func (l_ Layer) SetMask(value ILayer) { + objc.Call[objc.Void](l_, objc.Sel("setMask:"), value) } -// The object responsible for laying out the layer’s sublayers. [Full Topic] +// A Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410749-layoutmanager?language=objc -func (l_ Layer) SetLayoutManagerObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setLayoutManager:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410896-maskstobounds?language=objc +func (l_ Layer) MasksToBounds() bool { + rv := objc.Call[bool](l_, objc.Sel("masksToBounds")) + return rv } -// The scale factor applied to the layer. [Full Topic] +// A Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410746-contentsscale?language=objc -func (l_ Layer) ContentsScale() float64 { - rv := objc.Call[float64](l_, objc.Sel("contentsScale")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410896-maskstobounds?language=objc +func (l_ Layer) SetMasksToBounds(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setMasksToBounds:"), value) +} + +// The opacity of the layer’s shadow. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410751-shadowopacity?language=objc +func (l_ Layer) ShadowOpacity() float32 { + rv := objc.Call[float32](l_, objc.Sel("shadowOpacity")) return rv } -// The scale factor applied to the layer. [Full Topic] +// The opacity of the layer’s shadow. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410746-contentsscale?language=objc -func (l_ Layer) SetContentsScale(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setContentsScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410751-shadowopacity?language=objc +func (l_ Layer) SetShadowOpacity(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setShadowOpacity:"), value) } -// A Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable [Full Topic] +// An object that provides the contents of the layer. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410905-shouldrasterize?language=objc -func (l_ Layer) ShouldRasterize() bool { - rv := objc.Call[bool](l_, objc.Sel("shouldRasterize")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410773-contents?language=objc +func (l_ Layer) Contents() objc.Object { + rv := objc.Call[objc.Object](l_, objc.Sel("contents")) return rv } -// A Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable [Full Topic] +// An object that provides the contents of the layer. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410905-shouldrasterize?language=objc -func (l_ Layer) SetShouldRasterize(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setShouldRasterize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410773-contents?language=objc +func (l_ Layer) SetContents(value objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setContents:"), value) } -// The bias factor used by the minification filter to determine the levels of detail. [Full Topic] +// An array of Core Image filters to apply to the contents of the layer and its sublayers. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410775-minificationfilterbias?language=objc -func (l_ Layer) MinificationFilterBias() float32 { - rv := objc.Call[float32](l_, objc.Sel("minificationFilterBias")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410901-filters?language=objc +func (l_ Layer) Filters() []objc.Object { + rv := objc.Call[[]objc.Object](l_, objc.Sel("filters")) return rv } -// The bias factor used by the minification filter to determine the levels of detail. [Full Topic] +// An array of Core Image filters to apply to the contents of the layer and its sublayers. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410775-minificationfilterbias?language=objc -func (l_ Layer) SetMinificationFilterBias(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setMinificationFilterBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410901-filters?language=objc +func (l_ Layer) SetFilters(value []objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setFilters:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/2877488-maskedcorners?language=objc -func (l_ Layer) MaskedCorners() CornerMask { - rv := objc.Call[CornerMask](l_, objc.Sel("maskedCorners")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/3152596-cornercurve?language=objc +func (l_ Layer) CornerCurve() LayerCornerCurve { + rv := objc.Call[LayerCornerCurve](l_, objc.Sel("cornerCurve")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/2877488-maskedcorners?language=objc -func (l_ Layer) SetMaskedCorners(value CornerMask) { - objc.Call[objc.Void](l_, objc.Sel("setMaskedCorners:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/3152596-cornercurve?language=objc +func (l_ Layer) SetCornerCurve(value LayerCornerCurve) { + objc.Call[objc.Void](l_, objc.Sel("setCornerCurve:"), value) } -// A Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically. [Full Topic] +// The layer’s frame rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410960-geometryflipped?language=objc -func (l_ Layer) IsGeometryFlipped() bool { - rv := objc.Call[bool](l_, objc.Sel("isGeometryFlipped")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410779-frame?language=objc +func (l_ Layer) Frame() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("frame")) return rv } -// A Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically. [Full Topic] +// The layer’s frame rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410960-geometryflipped?language=objc -func (l_ Layer) SetGeometryFlipped(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setGeometryFlipped:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410779-frame?language=objc +func (l_ Layer) SetFrame(value coregraphics.Rect) { + objc.Call[objc.Void](l_, objc.Sel("setFrame:"), value) } -// A bitmask defining how the layer is resized when the bounds of its superlayer changes. [Full Topic] +// The color of the layer’s shadow. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410877-autoresizingmask?language=objc -func (l_ Layer) AutoresizingMask() AutoresizingMask { - rv := objc.Call[AutoresizingMask](l_, objc.Sel("autoresizingMask")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410829-shadowcolor?language=objc +func (l_ Layer) ShadowColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](l_, objc.Sel("shadowColor")) return rv } -// A bitmask defining how the layer is resized when the bounds of its superlayer changes. [Full Topic] +// The color of the layer’s shadow. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410877-autoresizingmask?language=objc -func (l_ Layer) SetAutoresizingMask(value AutoresizingMask) { - objc.Call[objc.Void](l_, objc.Sel("setAutoresizingMask:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410829-shadowcolor?language=objc +func (l_ Layer) SetShadowColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](l_, objc.Sel("setShadowColor:"), value) } -// A constant that specifies how the layer's contents are positioned or scaled within its bounds. [Full Topic] +// A hint for the desired storage format of the layer contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410872-contentsgravity?language=objc -func (l_ Layer) ContentsGravity() LayerContentsGravity { - rv := objc.Call[LayerContentsGravity](l_, objc.Sel("contentsGravity")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1792104-contentsformat?language=objc +func (l_ Layer) ContentsFormat() LayerContentsFormat { + rv := objc.Call[LayerContentsFormat](l_, objc.Sel("contentsFormat")) return rv } -// A constant that specifies how the layer's contents are positioned or scaled within its bounds. [Full Topic] +// A hint for the desired storage format of the layer contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410872-contentsgravity?language=objc -func (l_ Layer) SetContentsGravity(value LayerContentsGravity) { - objc.Call[objc.Void](l_, objc.Sel("setContentsGravity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1792104-contentsformat?language=objc +func (l_ Layer) SetContentsFormat(value LayerContentsFormat) { + objc.Call[objc.Void](l_, objc.Sel("setContentsFormat:"), value) } -// The layer’s position on the z axis. Animatable. [Full Topic] +// The filter used when increasing the size of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410884-zposition?language=objc -func (l_ Layer) ZPosition() float64 { - rv := objc.Call[float64](l_, objc.Sel("zPosition")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410907-magnificationfilter?language=objc +func (l_ Layer) MagnificationFilter() LayerContentsFilter { + rv := objc.Call[LayerContentsFilter](l_, objc.Sel("magnificationFilter")) return rv } -// The layer’s position on the z axis. Animatable. [Full Topic] +// The filter used when increasing the size of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410884-zposition?language=objc -func (l_ Layer) SetZPosition(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setZPosition:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410907-magnificationfilter?language=objc +func (l_ Layer) SetMagnificationFilter(value LayerContentsFilter) { + objc.Call[objc.Void](l_, objc.Sel("setMagnificationFilter:"), value) } -// The color of the layer’s shadow. Animatable. [Full Topic] +// A CoreImage filter used to composite the layer and the content behind it. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410829-shadowcolor?language=objc -func (l_ Layer) ShadowColor() coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](l_, objc.Sel("shadowColor")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410748-compositingfilter?language=objc +func (l_ Layer) CompositingFilter() objc.Object { + rv := objc.Call[objc.Object](l_, objc.Sel("compositingFilter")) return rv } -// The color of the layer’s shadow. Animatable. [Full Topic] +// A CoreImage filter used to composite the layer and the content behind it. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410829-shadowcolor?language=objc -func (l_ Layer) SetShadowColor(value coregraphics.ColorRef) { - objc.Call[objc.Void](l_, objc.Sel("setShadowColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410748-compositingfilter?language=objc +func (l_ Layer) SetCompositingFilter(value objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setCompositingFilter:"), value) } // The transform applied to the layer’s contents. Animatable. [Full Topic] @@ -1301,169 +1260,167 @@ func (l_ Layer) SetTransform(value Transform3D) { objc.Call[objc.Void](l_, objc.Sel("setTransform:"), value) } -// The offset (in points) of the layer’s shadow. Animatable. [Full Topic] +// A Boolean indicating whether the layer is allowed to perform edge antialiasing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410970-shadowoffset?language=objc -func (l_ Layer) ShadowOffset() coregraphics.Size { - rv := objc.Call[coregraphics.Size](l_, objc.Sel("shadowOffset")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1621285-allowsedgeantialiasing?language=objc +func (l_ Layer) AllowsEdgeAntialiasing() bool { + rv := objc.Call[bool](l_, objc.Sel("allowsEdgeAntialiasing")) return rv } -// The offset (in points) of the layer’s shadow. Animatable. [Full Topic] +// A Boolean indicating whether the layer is allowed to perform edge antialiasing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410970-shadowoffset?language=objc -func (l_ Layer) SetShadowOffset(value coregraphics.Size) { - objc.Call[objc.Void](l_, objc.Sel("setShadowOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1621285-allowsedgeantialiasing?language=objc +func (l_ Layer) SetAllowsEdgeAntialiasing(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setAllowsEdgeAntialiasing:"), value) } -// A Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread. [Full Topic] +// The color of the layer’s border. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410974-drawsasynchronously?language=objc -func (l_ Layer) DrawsAsynchronously() bool { - rv := objc.Call[bool](l_, objc.Sel("drawsAsynchronously")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410903-bordercolor?language=objc +func (l_ Layer) BorderColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](l_, objc.Sel("borderColor")) return rv } -// A Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread. [Full Topic] +// The color of the layer’s border. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410974-drawsasynchronously?language=objc -func (l_ Layer) SetDrawsAsynchronously(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setDrawsAsynchronously:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410903-bordercolor?language=objc +func (l_ Layer) SetBorderColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](l_, objc.Sel("setBorderColor:"), value) } -// The layer’s frame rectangle. [Full Topic] +// A Boolean indicating whether the layer contents must be updated when its bounds rectangle changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410779-frame?language=objc -func (l_ Layer) Frame() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](l_, objc.Sel("frame")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410923-needsdisplayonboundschange?language=objc +func (l_ Layer) NeedsDisplayOnBoundsChange() bool { + rv := objc.Call[bool](l_, objc.Sel("needsDisplayOnBoundsChange")) return rv } -// The layer’s frame rectangle. [Full Topic] +// A Boolean indicating whether the layer contents must be updated when its bounds rectangle changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410779-frame?language=objc -func (l_ Layer) SetFrame(value coregraphics.Rect) { - objc.Call[objc.Void](l_, objc.Sel("setFrame:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410923-needsdisplayonboundschange?language=objc +func (l_ Layer) SetNeedsDisplayOnBoundsChange(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setNeedsDisplayOnBoundsChange:"), value) } -// The visible region of the layer in its own coordinate space. [Full Topic] +// The rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1521892-visiblerect?language=objc -func (l_ Layer) VisibleRect() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](l_, objc.Sel("visibleRect")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410740-contentscenter?language=objc +func (l_ Layer) ContentsCenter() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("contentsCenter")) return rv } -// The anchor point for the layer’s position along the z axis. Animatable. [Full Topic] +// The rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410796-anchorpointz?language=objc -func (l_ Layer) AnchorPointZ() float64 { - rv := objc.Call[float64](l_, objc.Sel("anchorPointZ")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410740-contentscenter?language=objc +func (l_ Layer) SetContentsCenter(value coregraphics.Rect) { + objc.Call[objc.Void](l_, objc.Sel("setContentsCenter:"), value) +} + +// A bitmask defining how the edges of the receiver are rasterized. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410892-edgeantialiasingmask?language=objc +func (l_ Layer) EdgeAntialiasingMask() EdgeAntialiasingMask { + rv := objc.Call[EdgeAntialiasingMask](l_, objc.Sel("edgeAntialiasingMask")) return rv } -// The anchor point for the layer’s position along the z axis. Animatable. [Full Topic] +// A bitmask defining how the edges of the receiver are rasterized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410796-anchorpointz?language=objc -func (l_ Layer) SetAnchorPointZ(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setAnchorPointZ:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410892-edgeantialiasingmask?language=objc +func (l_ Layer) SetEdgeAntialiasingMask(value EdgeAntialiasingMask) { + objc.Call[objc.Void](l_, objc.Sel("setEdgeAntialiasingMask:"), value) } -// An optional layer whose alpha channel is used to mask the layer’s content. [Full Topic] +// A bitmask defining how the layer is resized when the bounds of its superlayer changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410861-mask?language=objc -func (l_ Layer) Mask() Layer { - rv := objc.Call[Layer](l_, objc.Sel("mask")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410877-autoresizingmask?language=objc +func (l_ Layer) AutoresizingMask() AutoresizingMask { + rv := objc.Call[AutoresizingMask](l_, objc.Sel("autoresizingMask")) return rv } -// An optional layer whose alpha channel is used to mask the layer’s content. [Full Topic] +// A bitmask defining how the layer is resized when the bounds of its superlayer changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410861-mask?language=objc -func (l_ Layer) SetMask(value ILayer) { - objc.Call[objc.Void](l_, objc.Sel("setMask:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410877-autoresizingmask?language=objc +func (l_ Layer) SetAutoresizingMask(value AutoresizingMask) { + objc.Call[objc.Void](l_, objc.Sel("setAutoresizingMask:"), value) } -// The scale at which to rasterize content, relative to the coordinate space of the layer. Animatable [Full Topic] +// An array of Core Image filters to apply to the content immediately behind the layer. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410801-rasterizationscale?language=objc -func (l_ Layer) RasterizationScale() float64 { - rv := objc.Call[float64](l_, objc.Sel("rasterizationScale")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410827-backgroundfilters?language=objc +func (l_ Layer) BackgroundFilters() []objc.Object { + rv := objc.Call[[]objc.Object](l_, objc.Sel("backgroundFilters")) return rv } -// The scale at which to rasterize content, relative to the coordinate space of the layer. Animatable [Full Topic] +// An array of Core Image filters to apply to the content immediately behind the layer. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410801-rasterizationscale?language=objc -func (l_ Layer) SetRasterizationScale(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setRasterizationScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410827-backgroundfilters?language=objc +func (l_ Layer) SetBackgroundFilters(value []objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setBackgroundFilters:"), value) } -// [Full Topic] +// The width of the layer’s border. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/3152596-cornercurve?language=objc -func (l_ Layer) CornerCurve() LayerCornerCurve { - rv := objc.Call[LayerCornerCurve](l_, objc.Sel("cornerCurve")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410917-borderwidth?language=objc +func (l_ Layer) BorderWidth() float64 { + rv := objc.Call[float64](l_, objc.Sel("borderWidth")) return rv } -// [Full Topic] +// The width of the layer’s border. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/3152596-cornercurve?language=objc -func (l_ Layer) SetCornerCurve(value LayerCornerCurve) { - objc.Call[objc.Void](l_, objc.Sel("setCornerCurve:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410917-borderwidth?language=objc +func (l_ Layer) SetBorderWidth(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setBorderWidth:"), value) } -// The opacity of the layer’s shadow. Animatable. [Full Topic] +// The constraints used to position current layer’s sublayers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410751-shadowopacity?language=objc -func (l_ Layer) ShadowOpacity() float32 { - rv := objc.Call[float32](l_, objc.Sel("shadowOpacity")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1521906-constraints?language=objc +func (l_ Layer) Constraints() []Constraint { + rv := objc.Call[[]Constraint](l_, objc.Sel("constraints")) return rv } -// The opacity of the layer’s shadow. Animatable. [Full Topic] +// The constraints used to position current layer’s sublayers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410751-shadowopacity?language=objc -func (l_ Layer) SetShadowOpacity(value float32) { - objc.Call[objc.Void](l_, objc.Sel("setShadowOpacity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1521906-constraints?language=objc +func (l_ Layer) SetConstraints(value []IConstraint) { + objc.Call[objc.Void](l_, objc.Sel("setConstraints:"), value) } -// The layer’s delegate object. [Full Topic] +// A dictionary containing layer actions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410984-delegate?language=objc -func (l_ Layer) Delegate() LayerDelegateObject { - rv := objc.Call[LayerDelegateObject](l_, objc.Sel("delegate")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410789-actions?language=objc +func (l_ Layer) Actions() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](l_, objc.Sel("actions")) return rv } -// The layer’s delegate object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410984-delegate?language=objc -func (l_ Layer) SetDelegate(value PLayerDelegate) { - po0 := objc.WrapAsProtocol("CALayerDelegate", value) - objc.SetAssociatedObject(l_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), po0) -} - -// The layer’s delegate object. [Full Topic] +// A dictionary containing layer actions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410984-delegate?language=objc -func (l_ Layer) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410789-actions?language=objc +func (l_ Layer) SetActions(value foundation.Dictionary) { + objc.Call[objc.Void](l_, objc.Sel("setActions:"), value) } -// A Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable. [Full Topic] +// The bias factor used by the minification filter to determine the levels of detail. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410924-doublesided?language=objc -func (l_ Layer) IsDoubleSided() bool { - rv := objc.Call[bool](l_, objc.Sel("isDoubleSided")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410775-minificationfilterbias?language=objc +func (l_ Layer) MinificationFilterBias() float32 { + rv := objc.Call[float32](l_, objc.Sel("minificationFilterBias")) return rv } -// A Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable. [Full Topic] +// The bias factor used by the minification filter to determine the levels of detail. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410924-doublesided?language=objc -func (l_ Layer) SetDoubleSided(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setDoubleSided:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410775-minificationfilterbias?language=objc +func (l_ Layer) SetMinificationFilterBias(value float32) { + objc.Call[objc.Void](l_, objc.Sel("setMinificationFilterBias:"), value) } diff --git a/macos/quartzcore/layer_delegate.gen.go b/macos/quartzcore/layer_delegate.gen.go index 66abdb6e..c36c45e9 100644 --- a/macos/quartzcore/layer_delegate.gen.go +++ b/macos/quartzcore/layer_delegate.gen.go @@ -15,10 +15,6 @@ type PLayerDelegate interface { DrawLayerInContext(layer Layer, ctx coregraphics.ContextRef) HasDrawLayerInContext() bool - // optional - DisplayLayer(layer Layer) - HasDisplayLayer() bool - // optional LayoutSublayersOfLayer(layer Layer) HasLayoutSublayersOfLayer() bool @@ -30,15 +26,19 @@ type PLayerDelegate interface { // optional LayerWillDraw(layer Layer) HasLayerWillDraw() bool + + // optional + DisplayLayer(layer Layer) + HasDisplayLayer() bool } // A delegate implementation builder for the [PLayerDelegate] protocol. type LayerDelegate struct { _DrawLayerInContext func(layer Layer, ctx coregraphics.ContextRef) - _DisplayLayer func(layer Layer) _LayoutSublayersOfLayer func(layer Layer) _ActionForLayerForKey func(layer Layer, event string) ActionObject _LayerWillDraw func(layer Layer) + _DisplayLayer func(layer Layer) } func (di *LayerDelegate) HasDrawLayerInContext() bool { @@ -58,23 +58,6 @@ func (di *LayerDelegate) SetDrawLayerInContext(f func(layer Layer, ctx coregraph func (di *LayerDelegate) DrawLayerInContext(layer Layer, ctx coregraphics.ContextRef) { di._DrawLayerInContext(layer, ctx) } -func (di *LayerDelegate) HasDisplayLayer() bool { - return di._DisplayLayer != nil -} - -// Tells the delegate to implement the display process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097261-displaylayer?language=objc -func (di *LayerDelegate) SetDisplayLayer(f func(layer Layer)) { - di._DisplayLayer = f -} - -// Tells the delegate to implement the display process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097261-displaylayer?language=objc -func (di *LayerDelegate) DisplayLayer(layer Layer) { - di._DisplayLayer(layer) -} func (di *LayerDelegate) HasLayoutSublayersOfLayer() bool { return di._LayoutSublayersOfLayer != nil } @@ -96,14 +79,14 @@ func (di *LayerDelegate) HasActionForLayerForKey() bool { return di._ActionForLayerForKey != nil } -// Returns the default action of the [quartzcore/calayer/actionforkey] method. [Full Topic] +// Returns the default action of the actionForKey: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097264-actionforlayer?language=objc func (di *LayerDelegate) SetActionForLayerForKey(f func(layer Layer, event string) ActionObject) { di._ActionForLayerForKey = f } -// Returns the default action of the [quartzcore/calayer/actionforkey] method. [Full Topic] +// Returns the default action of the actionForKey: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097264-actionforlayer?language=objc func (di *LayerDelegate) ActionForLayerForKey(layer Layer, event string) ActionObject { @@ -126,6 +109,23 @@ func (di *LayerDelegate) SetLayerWillDraw(f func(layer Layer)) { func (di *LayerDelegate) LayerWillDraw(layer Layer) { di._LayerWillDraw(layer) } +func (di *LayerDelegate) HasDisplayLayer() bool { + return di._DisplayLayer != nil +} + +// Tells the delegate to implement the display process. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097261-displaylayer?language=objc +func (di *LayerDelegate) SetDisplayLayer(f func(layer Layer)) { + di._DisplayLayer = f +} + +// Tells the delegate to implement the display process. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097261-displaylayer?language=objc +func (di *LayerDelegate) DisplayLayer(layer Layer) { + di._DisplayLayer(layer) +} // ensure impl type implements protocol interface var _ PLayerDelegate = (*LayerDelegateObject)(nil) @@ -146,17 +146,6 @@ func (l_ LayerDelegateObject) DrawLayerInContext(layer Layer, ctx coregraphics.C objc.Call[objc.Void](l_, objc.Sel("drawLayer:inContext:"), layer, ctx) } -func (l_ LayerDelegateObject) HasDisplayLayer() bool { - return l_.RespondsToSelector(objc.Sel("displayLayer:")) -} - -// Tells the delegate to implement the display process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097261-displaylayer?language=objc -func (l_ LayerDelegateObject) DisplayLayer(layer Layer) { - objc.Call[objc.Void](l_, objc.Sel("displayLayer:"), layer) -} - func (l_ LayerDelegateObject) HasLayoutSublayersOfLayer() bool { return l_.RespondsToSelector(objc.Sel("layoutSublayersOfLayer:")) } @@ -172,7 +161,7 @@ func (l_ LayerDelegateObject) HasActionForLayerForKey() bool { return l_.RespondsToSelector(objc.Sel("actionForLayer:forKey:")) } -// Returns the default action of the [quartzcore/calayer/actionforkey] method. [Full Topic] +// Returns the default action of the actionForKey: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097264-actionforlayer?language=objc func (l_ LayerDelegateObject) ActionForLayerForKey(layer Layer, event string) ActionObject { @@ -190,3 +179,14 @@ func (l_ LayerDelegateObject) HasLayerWillDraw() bool { func (l_ LayerDelegateObject) LayerWillDraw(layer Layer) { objc.Call[objc.Void](l_, objc.Sel("layerWillDraw:"), layer) } + +func (l_ LayerDelegateObject) HasDisplayLayer() bool { + return l_.RespondsToSelector(objc.Sel("displayLayer:")) +} + +// Tells the delegate to implement the display process. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097261-displaylayer?language=objc +func (l_ LayerDelegateObject) DisplayLayer(layer Layer) { + objc.Call[objc.Void](l_, objc.Sel("displayLayer:"), layer) +} diff --git a/macos/quartzcore/layout_manager_protocol.gen.go b/macos/quartzcore/layout_manager_protocol.gen.go index 50f1b21c..cd5ae304 100644 --- a/macos/quartzcore/layout_manager_protocol.gen.go +++ b/macos/quartzcore/layout_manager_protocol.gen.go @@ -15,13 +15,13 @@ type PLayoutManager interface { LayoutSublayersOfLayer(layer Layer) HasLayoutSublayersOfLayer() bool - // optional - PreferredSizeOfLayer(layer Layer) coregraphics.Size - HasPreferredSizeOfLayer() bool - // optional InvalidateLayoutOfLayer(layer Layer) HasInvalidateLayoutOfLayer() bool + + // optional + PreferredSizeOfLayer(layer Layer) coregraphics.Size + HasPreferredSizeOfLayer() bool } // ensure impl type implements protocol interface @@ -43,6 +43,17 @@ func (l_ LayoutManagerObject) LayoutSublayersOfLayer(layer Layer) { objc.Call[objc.Void](l_, objc.Sel("layoutSublayersOfLayer:"), layer) } +func (l_ LayoutManagerObject) HasInvalidateLayoutOfLayer() bool { + return l_.RespondsToSelector(objc.Sel("invalidateLayoutOfLayer:")) +} + +// Invalidates the layout of a layer so it knows to refresh its content on the next frame. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayoutmanager/2097258-invalidatelayoutoflayer?language=objc +func (l_ LayoutManagerObject) InvalidateLayoutOfLayer(layer Layer) { + objc.Call[objc.Void](l_, objc.Sel("invalidateLayoutOfLayer:"), layer) +} + func (l_ LayoutManagerObject) HasPreferredSizeOfLayer() bool { return l_.RespondsToSelector(objc.Sel("preferredSizeOfLayer:")) } @@ -54,14 +65,3 @@ func (l_ LayoutManagerObject) PreferredSizeOfLayer(layer Layer) coregraphics.Siz rv := objc.Call[coregraphics.Size](l_, objc.Sel("preferredSizeOfLayer:"), layer) return rv } - -func (l_ LayoutManagerObject) HasInvalidateLayoutOfLayer() bool { - return l_.RespondsToSelector(objc.Sel("invalidateLayoutOfLayer:")) -} - -// Invalidates the layout of a layer so it knows to refresh its content on the next frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayoutmanager/2097258-invalidatelayoutoflayer?language=objc -func (l_ LayoutManagerObject) InvalidateLayoutOfLayer(layer Layer) { - objc.Call[objc.Void](l_, objc.Sel("invalidateLayoutOfLayer:"), layer) -} diff --git a/macos/quartzcore/media_timing_function.gen.go b/macos/quartzcore/media_timing_function.gen.go index 536f1273..ceb1344e 100644 --- a/macos/quartzcore/media_timing_function.gen.go +++ b/macos/quartzcore/media_timing_function.gen.go @@ -34,6 +34,18 @@ func MediaTimingFunctionFrom(ptr unsafe.Pointer) MediaTimingFunction { } } +func (mc _MediaTimingFunctionClass) FunctionWithName(name MediaTimingFunctionName) MediaTimingFunction { + rv := objc.Call[MediaTimingFunction](mc, objc.Sel("functionWithName:"), name) + return rv +} + +// Creates and returns a new instance of CAMediaTimingFunction configured with the predefined timing function specified by name. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatimingfunction/1521979-functionwithname?language=objc +func MediaTimingFunction_FunctionWithName(name MediaTimingFunctionName) MediaTimingFunction { + return MediaTimingFunctionClass.FunctionWithName(name) +} + func (m_ MediaTimingFunction) InitWithControlPoints(c1x float32) MediaTimingFunction { rv := objc.Call[MediaTimingFunction](m_, objc.Sel("initWithControlPoints:"), c1x) return rv @@ -48,18 +60,6 @@ func NewMediaTimingFunctionWithControlPoints(c1x float32) MediaTimingFunction { return instance } -func (mc _MediaTimingFunctionClass) FunctionWithName(name MediaTimingFunctionName) MediaTimingFunction { - rv := objc.Call[MediaTimingFunction](mc, objc.Sel("functionWithName:"), name) - return rv -} - -// Creates and returns a new instance of CAMediaTimingFunction configured with the predefined timing function specified by name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatimingfunction/1521979-functionwithname?language=objc -func MediaTimingFunction_FunctionWithName(name MediaTimingFunctionName) MediaTimingFunction { - return MediaTimingFunctionClass.FunctionWithName(name) -} - func (mc _MediaTimingFunctionClass) FunctionWithControlPoints(c1x float32) MediaTimingFunction { rv := objc.Call[MediaTimingFunction](mc, objc.Sel("functionWithControlPoints:"), c1x) return rv diff --git a/macos/quartzcore/media_timing_protocol.gen.go b/macos/quartzcore/media_timing_protocol.gen.go index f0c9d48d..c42c6491 100644 --- a/macos/quartzcore/media_timing_protocol.gen.go +++ b/macos/quartzcore/media_timing_protocol.gen.go @@ -20,12 +20,12 @@ type PMediaTiming interface { HasTimeOffset() bool // optional - SetDuration(value corefoundation.TimeInterval) - HasSetDuration() bool + SetAutoreverses(value bool) + HasSetAutoreverses() bool // optional - Duration() corefoundation.TimeInterval - HasDuration() bool + Autoreverses() bool + HasAutoreverses() bool // optional SetRepeatDuration(value corefoundation.TimeInterval) @@ -36,20 +36,12 @@ type PMediaTiming interface { HasRepeatDuration() bool // optional - SetRepeatCount(value float32) - HasSetRepeatCount() bool - - // optional - RepeatCount() float32 - HasRepeatCount() bool - - // optional - SetBeginTime(value corefoundation.TimeInterval) - HasSetBeginTime() bool + SetFillMode(value MediaTimingFillMode) + HasSetFillMode() bool // optional - BeginTime() corefoundation.TimeInterval - HasBeginTime() bool + FillMode() MediaTimingFillMode + HasFillMode() bool // optional SetSpeed(value float32) @@ -60,20 +52,28 @@ type PMediaTiming interface { HasSpeed() bool // optional - SetAutoreverses(value bool) - HasSetAutoreverses() bool + SetRepeatCount(value float32) + HasSetRepeatCount() bool // optional - Autoreverses() bool - HasAutoreverses() bool + RepeatCount() float32 + HasRepeatCount() bool // optional - SetFillMode(value MediaTimingFillMode) - HasSetFillMode() bool + SetBeginTime(value corefoundation.TimeInterval) + HasSetBeginTime() bool // optional - FillMode() MediaTimingFillMode - HasFillMode() bool + BeginTime() corefoundation.TimeInterval + HasBeginTime() bool + + // optional + SetDuration(value corefoundation.TimeInterval) + HasSetDuration() bool + + // optional + Duration() corefoundation.TimeInterval + HasDuration() bool } // ensure impl type implements protocol interface @@ -107,26 +107,26 @@ func (m_ MediaTimingObject) TimeOffset() corefoundation.TimeInterval { return rv } -func (m_ MediaTimingObject) HasSetDuration() bool { - return m_.RespondsToSelector(objc.Sel("setDuration:")) +func (m_ MediaTimingObject) HasSetAutoreverses() bool { + return m_.RespondsToSelector(objc.Sel("setAutoreverses:")) } -// Specifies the basic duration of the animation, in seconds. [Full Topic] +// Determines if the receiver plays in the reverse upon completion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427652-duration?language=objc -func (m_ MediaTimingObject) SetDuration(value corefoundation.TimeInterval) { - objc.Call[objc.Void](m_, objc.Sel("setDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427645-autoreverses?language=objc +func (m_ MediaTimingObject) SetAutoreverses(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAutoreverses:"), value) } -func (m_ MediaTimingObject) HasDuration() bool { - return m_.RespondsToSelector(objc.Sel("duration")) +func (m_ MediaTimingObject) HasAutoreverses() bool { + return m_.RespondsToSelector(objc.Sel("autoreverses")) } -// Specifies the basic duration of the animation, in seconds. [Full Topic] +// Determines if the receiver plays in the reverse upon completion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427652-duration?language=objc -func (m_ MediaTimingObject) Duration() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](m_, objc.Sel("duration")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427645-autoreverses?language=objc +func (m_ MediaTimingObject) Autoreverses() bool { + rv := objc.Call[bool](m_, objc.Sel("autoreverses")) return rv } @@ -153,6 +153,52 @@ func (m_ MediaTimingObject) RepeatDuration() corefoundation.TimeInterval { return rv } +func (m_ MediaTimingObject) HasSetFillMode() bool { + return m_.RespondsToSelector(objc.Sel("setFillMode:")) +} + +// Determines if the receiver’s presentation is frozen or removed once its active duration has completed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427656-fillmode?language=objc +func (m_ MediaTimingObject) SetFillMode(value MediaTimingFillMode) { + objc.Call[objc.Void](m_, objc.Sel("setFillMode:"), value) +} + +func (m_ MediaTimingObject) HasFillMode() bool { + return m_.RespondsToSelector(objc.Sel("fillMode")) +} + +// Determines if the receiver’s presentation is frozen or removed once its active duration has completed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427656-fillmode?language=objc +func (m_ MediaTimingObject) FillMode() MediaTimingFillMode { + rv := objc.Call[MediaTimingFillMode](m_, objc.Sel("fillMode")) + return rv +} + +func (m_ MediaTimingObject) HasSetSpeed() bool { + return m_.RespondsToSelector(objc.Sel("setSpeed:")) +} + +// Specifies how time is mapped to receiver’s time space from the parent time space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427647-speed?language=objc +func (m_ MediaTimingObject) SetSpeed(value float32) { + objc.Call[objc.Void](m_, objc.Sel("setSpeed:"), value) +} + +func (m_ MediaTimingObject) HasSpeed() bool { + return m_.RespondsToSelector(objc.Sel("speed")) +} + +// Specifies how time is mapped to receiver’s time space from the parent time space. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427647-speed?language=objc +func (m_ MediaTimingObject) Speed() float32 { + rv := objc.Call[float32](m_, objc.Sel("speed")) + return rv +} + func (m_ MediaTimingObject) HasSetRepeatCount() bool { return m_.RespondsToSelector(objc.Sel("setRepeatCount:")) } @@ -199,71 +245,25 @@ func (m_ MediaTimingObject) BeginTime() corefoundation.TimeInterval { return rv } -func (m_ MediaTimingObject) HasSetSpeed() bool { - return m_.RespondsToSelector(objc.Sel("setSpeed:")) -} - -// Specifies how time is mapped to receiver’s time space from the parent time space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427647-speed?language=objc -func (m_ MediaTimingObject) SetSpeed(value float32) { - objc.Call[objc.Void](m_, objc.Sel("setSpeed:"), value) -} - -func (m_ MediaTimingObject) HasSpeed() bool { - return m_.RespondsToSelector(objc.Sel("speed")) -} - -// Specifies how time is mapped to receiver’s time space from the parent time space. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427647-speed?language=objc -func (m_ MediaTimingObject) Speed() float32 { - rv := objc.Call[float32](m_, objc.Sel("speed")) - return rv -} - -func (m_ MediaTimingObject) HasSetAutoreverses() bool { - return m_.RespondsToSelector(objc.Sel("setAutoreverses:")) -} - -// Determines if the receiver plays in the reverse upon completion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427645-autoreverses?language=objc -func (m_ MediaTimingObject) SetAutoreverses(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAutoreverses:"), value) -} - -func (m_ MediaTimingObject) HasAutoreverses() bool { - return m_.RespondsToSelector(objc.Sel("autoreverses")) -} - -// Determines if the receiver plays in the reverse upon completion. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427645-autoreverses?language=objc -func (m_ MediaTimingObject) Autoreverses() bool { - rv := objc.Call[bool](m_, objc.Sel("autoreverses")) - return rv -} - -func (m_ MediaTimingObject) HasSetFillMode() bool { - return m_.RespondsToSelector(objc.Sel("setFillMode:")) +func (m_ MediaTimingObject) HasSetDuration() bool { + return m_.RespondsToSelector(objc.Sel("setDuration:")) } -// Determines if the receiver’s presentation is frozen or removed once its active duration has completed. [Full Topic] +// Specifies the basic duration of the animation, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427656-fillmode?language=objc -func (m_ MediaTimingObject) SetFillMode(value MediaTimingFillMode) { - objc.Call[objc.Void](m_, objc.Sel("setFillMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427652-duration?language=objc +func (m_ MediaTimingObject) SetDuration(value corefoundation.TimeInterval) { + objc.Call[objc.Void](m_, objc.Sel("setDuration:"), value) } -func (m_ MediaTimingObject) HasFillMode() bool { - return m_.RespondsToSelector(objc.Sel("fillMode")) +func (m_ MediaTimingObject) HasDuration() bool { + return m_.RespondsToSelector(objc.Sel("duration")) } -// Determines if the receiver’s presentation is frozen or removed once its active duration has completed. [Full Topic] +// Specifies the basic duration of the animation, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427656-fillmode?language=objc -func (m_ MediaTimingObject) FillMode() MediaTimingFillMode { - rv := objc.Call[MediaTimingFillMode](m_, objc.Sel("fillMode")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427652-duration?language=objc +func (m_ MediaTimingObject) Duration() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](m_, objc.Sel("duration")) return rv } diff --git a/macos/quartzcore/metal_drawable_protocol.gen.go b/macos/quartzcore/metal_drawable_protocol.gen.go index 49d665f9..731d4581 100644 --- a/macos/quartzcore/metal_drawable_protocol.gen.go +++ b/macos/quartzcore/metal_drawable_protocol.gen.go @@ -11,13 +11,13 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametaldrawable?language=objc type PMetalDrawable interface { - // optional - Texture() metal.TextureObject - HasTexture() bool - // optional Layer() MetalLayer HasLayer() bool + + // optional + Texture() metal.TextureObject + HasTexture() bool } // ensure impl type implements protocol interface @@ -28,18 +28,6 @@ type MetalDrawableObject struct { objc.Object } -func (m_ MetalDrawableObject) HasTexture() bool { - return m_.RespondsToSelector(objc.Sel("texture")) -} - -// A Metal texture object that contains the drawable’s contents. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametaldrawable/1478159-texture?language=objc -func (m_ MetalDrawableObject) Texture() metal.TextureObject { - rv := objc.Call[metal.TextureObject](m_, objc.Sel("texture")) - return rv -} - func (m_ MetalDrawableObject) HasLayer() bool { return m_.RespondsToSelector(objc.Sel("layer")) } @@ -51,3 +39,15 @@ func (m_ MetalDrawableObject) Layer() MetalLayer { rv := objc.Call[MetalLayer](m_, objc.Sel("layer")) return rv } + +func (m_ MetalDrawableObject) HasTexture() bool { + return m_.RespondsToSelector(objc.Sel("texture")) +} + +// A Metal texture object that contains the drawable’s contents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametaldrawable/1478159-texture?language=objc +func (m_ MetalDrawableObject) Texture() metal.TextureObject { + rv := objc.Call[metal.TextureObject](m_, objc.Sel("texture")) + return rv +} diff --git a/macos/quartzcore/metal_layer.gen.go b/macos/quartzcore/metal_layer.gen.go index f9873131..d7950630 100644 --- a/macos/quartzcore/metal_layer.gen.go +++ b/macos/quartzcore/metal_layer.gen.go @@ -21,28 +21,28 @@ type _MetalLayerClass struct { type IMetalLayer interface { ILayer NextDrawable() MetalDrawableObject - AllowsNextDrawableTimeout() bool - SetAllowsNextDrawableTimeout(value bool) - PreferredDevice() metal.DeviceObject - PixelFormat() metal.PixelFormat - SetPixelFormat(value metal.PixelFormat) - DisplaySyncEnabled() bool - SetDisplaySyncEnabled(value bool) + WantsExtendedDynamicRangeContent() bool + SetWantsExtendedDynamicRangeContent(value bool) + FramebufferOnly() bool + SetFramebufferOnly(value bool) PresentsWithTransaction() bool SetPresentsWithTransaction(value bool) + Device() metal.DeviceObject + SetDevice(value metal.PDevice) + SetDeviceObject(valueObject objc.IObject) EDRMetadata() EDRMetadata SetEDRMetadata(value IEDRMetadata) Colorspace() coregraphics.ColorSpaceRef SetColorspace(value coregraphics.ColorSpaceRef) - WantsExtendedDynamicRangeContent() bool - SetWantsExtendedDynamicRangeContent(value bool) + PreferredDevice() metal.DeviceObject + AllowsNextDrawableTimeout() bool + SetAllowsNextDrawableTimeout(value bool) + DisplaySyncEnabled() bool + SetDisplaySyncEnabled(value bool) + PixelFormat() metal.PixelFormat + SetPixelFormat(value metal.PixelFormat) MaximumDrawableCount() uint SetMaximumDrawableCount(value uint) - Device() metal.DeviceObject - SetDevice(value metal.PDevice) - SetDeviceObject(valueObject objc.IObject) - FramebufferOnly() bool - SetFramebufferOnly(value bool) DrawableSize() coregraphics.Size SetDrawableSize(value coregraphics.Size) } @@ -80,32 +80,16 @@ func (m_ MetalLayer) Init() MetalLayer { return rv } -func (m_ MetalLayer) ModelLayer() MetalLayer { - rv := objc.Call[MetalLayer](m_, objc.Sel("modelLayer")) - return rv -} - -// Returns the model layer object associated with the receiver, if any. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc -func MetalLayer_ModelLayer() MetalLayer { - instance := MetalLayerClass.Alloc().ModelLayer() - instance.Autorelease() - return instance -} - -func (m_ MetalLayer) PresentationLayer() MetalLayer { - rv := objc.Call[MetalLayer](m_, objc.Sel("presentationLayer")) +func (mc _MetalLayerClass) Layer() MetalLayer { + rv := objc.Call[MetalLayer](mc, objc.Sel("layer")) return rv } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc -func MetalLayer_PresentationLayer() MetalLayer { - instance := MetalLayerClass.Alloc().PresentationLayer() - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func MetalLayer_Layer() MetalLayer { + return MetalLayerClass.Layer() } func (m_ MetalLayer) InitWithLayer(layer objc.IObject) MetalLayer { @@ -122,77 +106,70 @@ func NewMetalLayerWithLayer(layer objc.IObject) MetalLayer { return instance } -func (mc _MetalLayerClass) Layer() MetalLayer { - rv := objc.Call[MetalLayer](mc, objc.Sel("layer")) +func (m_ MetalLayer) ModelLayer() MetalLayer { + rv := objc.Call[MetalLayer](m_, objc.Sel("modelLayer")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func MetalLayer_Layer() MetalLayer { - return MetalLayerClass.Layer() -} - -// Waits until a Metal drawable is available, and then returns it. [Full Topic] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478172-nextdrawable?language=objc -func (m_ MetalLayer) NextDrawable() MetalDrawableObject { - rv := objc.Call[MetalDrawableObject](m_, objc.Sel("nextDrawable")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc +func MetalLayer_ModelLayer() MetalLayer { + instance := MetalLayerClass.Alloc().ModelLayer() + instance.Autorelease() + return instance } -// A Boolean value that determines whether requests for a new buffer expire if the system can’t satisfy them. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2887086-allowsnextdrawabletimeout?language=objc -func (m_ MetalLayer) AllowsNextDrawableTimeout() bool { - rv := objc.Call[bool](m_, objc.Sel("allowsNextDrawableTimeout")) +func (m_ MetalLayer) PresentationLayer() MetalLayer { + rv := objc.Call[MetalLayer](m_, objc.Sel("presentationLayer")) return rv } -// A Boolean value that determines whether requests for a new buffer expire if the system can’t satisfy them. [Full Topic] +// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2887086-allowsnextdrawabletimeout?language=objc -func (m_ MetalLayer) SetAllowsNextDrawableTimeout(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAllowsNextDrawableTimeout:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc +func MetalLayer_PresentationLayer() MetalLayer { + instance := MetalLayerClass.Alloc().PresentationLayer() + instance.Autorelease() + return instance } -// The device object that the system recommends using for this layer. [Full Topic] +// Waits until a Metal drawable is available, and then returns it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/3175021-preferreddevice?language=objc -func (m_ MetalLayer) PreferredDevice() metal.DeviceObject { - rv := objc.Call[metal.DeviceObject](m_, objc.Sel("preferredDevice")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478172-nextdrawable?language=objc +func (m_ MetalLayer) NextDrawable() MetalDrawableObject { + rv := objc.Call[MetalDrawableObject](m_, objc.Sel("nextDrawable")) return rv } -// The pixel format of the layer’s textures. [Full Topic] +// Enables extended dynamic range values onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478155-pixelformat?language=objc -func (m_ MetalLayer) PixelFormat() metal.PixelFormat { - rv := objc.Call[metal.PixelFormat](m_, objc.Sel("pixelFormat")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478161-wantsextendeddynamicrangecontent?language=objc +func (m_ MetalLayer) WantsExtendedDynamicRangeContent() bool { + rv := objc.Call[bool](m_, objc.Sel("wantsExtendedDynamicRangeContent")) return rv } -// The pixel format of the layer’s textures. [Full Topic] +// Enables extended dynamic range values onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478155-pixelformat?language=objc -func (m_ MetalLayer) SetPixelFormat(value metal.PixelFormat) { - objc.Call[objc.Void](m_, objc.Sel("setPixelFormat:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478161-wantsextendeddynamicrangecontent?language=objc +func (m_ MetalLayer) SetWantsExtendedDynamicRangeContent(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setWantsExtendedDynamicRangeContent:"), value) } -// A Boolean value that determines whether the layer synchronizes its updates to the display’s refresh rate. [Full Topic] +// A Boolean value that determines whether the layer’s textures are used only for rendering. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2887087-displaysyncenabled?language=objc -func (m_ MetalLayer) DisplaySyncEnabled() bool { - rv := objc.Call[bool](m_, objc.Sel("displaySyncEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478168-framebufferonly?language=objc +func (m_ MetalLayer) FramebufferOnly() bool { + rv := objc.Call[bool](m_, objc.Sel("framebufferOnly")) return rv } -// A Boolean value that determines whether the layer synchronizes its updates to the display’s refresh rate. [Full Topic] +// A Boolean value that determines whether the layer’s textures are used only for rendering. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2887087-displaysyncenabled?language=objc -func (m_ MetalLayer) SetDisplaySyncEnabled(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setDisplaySyncEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478168-framebufferonly?language=objc +func (m_ MetalLayer) SetFramebufferOnly(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setFramebufferOnly:"), value) } // A Boolean value that determines whether the layer presents its content using a Core Animation transaction. [Full Topic] @@ -210,6 +187,29 @@ func (m_ MetalLayer) SetPresentsWithTransaction(value bool) { objc.Call[objc.Void](m_, objc.Sel("setPresentsWithTransaction:"), value) } +// The Metal device responsible for the layer’s drawable resources. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478163-device?language=objc +func (m_ MetalLayer) Device() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](m_, objc.Sel("device")) + return rv +} + +// The Metal device responsible for the layer’s drawable resources. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478163-device?language=objc +func (m_ MetalLayer) SetDevice(value metal.PDevice) { + po0 := objc.WrapAsProtocol("MTLDevice", value) + objc.Call[objc.Void](m_, objc.Sel("setDevice:"), po0) +} + +// The Metal device responsible for the layer’s drawable resources. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478163-device?language=objc +func (m_ MetalLayer) SetDeviceObject(valueObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setDevice:"), valueObject) +} + // Metadata describing the tone mapping to apply to the extended dynamic range (EDR) values in the layer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/3182052-edrmetadata?language=objc @@ -240,72 +240,72 @@ func (m_ MetalLayer) SetColorspace(value coregraphics.ColorSpaceRef) { objc.Call[objc.Void](m_, objc.Sel("setColorspace:"), value) } -// Enables extended dynamic range values onscreen. [Full Topic] +// The device object that the system recommends using for this layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478161-wantsextendeddynamicrangecontent?language=objc -func (m_ MetalLayer) WantsExtendedDynamicRangeContent() bool { - rv := objc.Call[bool](m_, objc.Sel("wantsExtendedDynamicRangeContent")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/3175021-preferreddevice?language=objc +func (m_ MetalLayer) PreferredDevice() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](m_, objc.Sel("preferredDevice")) return rv } -// Enables extended dynamic range values onscreen. [Full Topic] +// A Boolean value that determines whether requests for a new buffer expire if the system can’t satisfy them. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478161-wantsextendeddynamicrangecontent?language=objc -func (m_ MetalLayer) SetWantsExtendedDynamicRangeContent(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setWantsExtendedDynamicRangeContent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2887086-allowsnextdrawabletimeout?language=objc +func (m_ MetalLayer) AllowsNextDrawableTimeout() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsNextDrawableTimeout")) + return rv } -// The number of Metal drawables in the resource pool managed by Core Animation. [Full Topic] +// A Boolean value that determines whether requests for a new buffer expire if the system can’t satisfy them. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2938720-maximumdrawablecount?language=objc -func (m_ MetalLayer) MaximumDrawableCount() uint { - rv := objc.Call[uint](m_, objc.Sel("maximumDrawableCount")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2887086-allowsnextdrawabletimeout?language=objc +func (m_ MetalLayer) SetAllowsNextDrawableTimeout(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsNextDrawableTimeout:"), value) } -// The number of Metal drawables in the resource pool managed by Core Animation. [Full Topic] +// A Boolean value that determines whether the layer synchronizes its updates to the display’s refresh rate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2938720-maximumdrawablecount?language=objc -func (m_ MetalLayer) SetMaximumDrawableCount(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setMaximumDrawableCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2887087-displaysyncenabled?language=objc +func (m_ MetalLayer) DisplaySyncEnabled() bool { + rv := objc.Call[bool](m_, objc.Sel("displaySyncEnabled")) + return rv } -// The Metal device responsible for the layer’s drawable resources. [Full Topic] +// A Boolean value that determines whether the layer synchronizes its updates to the display’s refresh rate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478163-device?language=objc -func (m_ MetalLayer) Device() metal.DeviceObject { - rv := objc.Call[metal.DeviceObject](m_, objc.Sel("device")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2887087-displaysyncenabled?language=objc +func (m_ MetalLayer) SetDisplaySyncEnabled(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setDisplaySyncEnabled:"), value) } -// The Metal device responsible for the layer’s drawable resources. [Full Topic] +// The pixel format of the layer’s textures. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478163-device?language=objc -func (m_ MetalLayer) SetDevice(value metal.PDevice) { - po0 := objc.WrapAsProtocol("MTLDevice", value) - objc.Call[objc.Void](m_, objc.Sel("setDevice:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478155-pixelformat?language=objc +func (m_ MetalLayer) PixelFormat() metal.PixelFormat { + rv := objc.Call[metal.PixelFormat](m_, objc.Sel("pixelFormat")) + return rv } -// The Metal device responsible for the layer’s drawable resources. [Full Topic] +// The pixel format of the layer’s textures. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478163-device?language=objc -func (m_ MetalLayer) SetDeviceObject(valueObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setDevice:"), valueObject) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478155-pixelformat?language=objc +func (m_ MetalLayer) SetPixelFormat(value metal.PixelFormat) { + objc.Call[objc.Void](m_, objc.Sel("setPixelFormat:"), value) } -// A Boolean value that determines whether the layer’s textures are used only for rendering. [Full Topic] +// The number of Metal drawables in the resource pool managed by Core Animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478168-framebufferonly?language=objc -func (m_ MetalLayer) FramebufferOnly() bool { - rv := objc.Call[bool](m_, objc.Sel("framebufferOnly")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2938720-maximumdrawablecount?language=objc +func (m_ MetalLayer) MaximumDrawableCount() uint { + rv := objc.Call[uint](m_, objc.Sel("maximumDrawableCount")) return rv } -// A Boolean value that determines whether the layer’s textures are used only for rendering. [Full Topic] +// The number of Metal drawables in the resource pool managed by Core Animation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/1478168-framebufferonly?language=objc -func (m_ MetalLayer) SetFramebufferOnly(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setFramebufferOnly:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/2938720-maximumdrawablecount?language=objc +func (m_ MetalLayer) SetMaximumDrawableCount(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setMaximumDrawableCount:"), value) } // The size, in pixels, of textures for rendering layer content. [Full Topic] diff --git a/macos/quartzcore/open_gl_layer.gen.go b/macos/quartzcore/open_gl_layer.gen.go index 525916ca..8d5001b9 100644 --- a/macos/quartzcore/open_gl_layer.gen.go +++ b/macos/quartzcore/open_gl_layer.gen.go @@ -53,56 +53,56 @@ func (o_ OpenGLLayer) Init() OpenGLLayer { return rv } -func (o_ OpenGLLayer) ModelLayer() OpenGLLayer { - rv := objc.Call[OpenGLLayer](o_, objc.Sel("modelLayer")) +func (oc _OpenGLLayerClass) Layer() OpenGLLayer { + rv := objc.Call[OpenGLLayer](oc, objc.Sel("layer")) return rv } -// Returns the model layer object associated with the receiver, if any. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc -func OpenGLLayer_ModelLayer() OpenGLLayer { - instance := OpenGLLayerClass.Alloc().ModelLayer() - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func OpenGLLayer_Layer() OpenGLLayer { + return OpenGLLayerClass.Layer() } -func (o_ OpenGLLayer) PresentationLayer() OpenGLLayer { - rv := objc.Call[OpenGLLayer](o_, objc.Sel("presentationLayer")) +func (o_ OpenGLLayer) InitWithLayer(layer objc.IObject) OpenGLLayer { + rv := objc.Call[OpenGLLayer](o_, objc.Sel("initWithLayer:"), layer) return rv } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] +// Override to copy or initialize custom fields of the specified layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc -func OpenGLLayer_PresentationLayer() OpenGLLayer { - instance := OpenGLLayerClass.Alloc().PresentationLayer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewOpenGLLayerWithLayer(layer objc.IObject) OpenGLLayer { + instance := OpenGLLayerClass.Alloc().InitWithLayer(layer) instance.Autorelease() return instance } -func (o_ OpenGLLayer) InitWithLayer(layer objc.IObject) OpenGLLayer { - rv := objc.Call[OpenGLLayer](o_, objc.Sel("initWithLayer:"), layer) +func (o_ OpenGLLayer) ModelLayer() OpenGLLayer { + rv := objc.Call[OpenGLLayer](o_, objc.Sel("modelLayer")) return rv } -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewOpenGLLayerWithLayer(layer objc.IObject) OpenGLLayer { - instance := OpenGLLayerClass.Alloc().InitWithLayer(layer) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc +func OpenGLLayer_ModelLayer() OpenGLLayer { + instance := OpenGLLayerClass.Alloc().ModelLayer() instance.Autorelease() return instance } -func (oc _OpenGLLayerClass) Layer() OpenGLLayer { - rv := objc.Call[OpenGLLayer](oc, objc.Sel("layer")) +func (o_ OpenGLLayer) PresentationLayer() OpenGLLayer { + rv := objc.Call[OpenGLLayer](o_, objc.Sel("presentationLayer")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func OpenGLLayer_Layer() OpenGLLayer { - return OpenGLLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc +func OpenGLLayer_PresentationLayer() OpenGLLayer { + instance := OpenGLLayerClass.Alloc().PresentationLayer() + instance.Autorelease() + return instance } diff --git a/macos/quartzcore/property_animation.gen.go b/macos/quartzcore/property_animation.gen.go index 69517d7a..54a6712c 100644 --- a/macos/quartzcore/property_animation.gen.go +++ b/macos/quartzcore/property_animation.gen.go @@ -18,14 +18,14 @@ type _PropertyAnimationClass struct { // An interface definition for the [PropertyAnimation] class. type IPropertyAnimation interface { IAnimation - ValueFunction() ValueFunction - SetValueFunction(value IValueFunction) + KeyPath() string + SetKeyPath(value string) IsCumulative() bool SetCumulative(value bool) IsAdditive() bool SetAdditive(value bool) - KeyPath() string - SetKeyPath(value string) + ValueFunction() ValueFunction + SetValueFunction(value IValueFunction) } // An abstract subclass of CAAnimation for creating animations that manipulate the value of layer properties. [Full Topic] @@ -85,19 +85,19 @@ func PropertyAnimation_Animation() PropertyAnimation { return PropertyAnimationClass.Animation() } -// An optional value function that is applied to interpolated values. [Full Topic] +// Specifies the key path the receiver animates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/capropertyanimation/1412447-valuefunction?language=objc -func (p_ PropertyAnimation) ValueFunction() ValueFunction { - rv := objc.Call[ValueFunction](p_, objc.Sel("valueFunction")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/capropertyanimation/1412496-keypath?language=objc +func (p_ PropertyAnimation) KeyPath() string { + rv := objc.Call[string](p_, objc.Sel("keyPath")) return rv } -// An optional value function that is applied to interpolated values. [Full Topic] +// Specifies the key path the receiver animates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/capropertyanimation/1412447-valuefunction?language=objc -func (p_ PropertyAnimation) SetValueFunction(value IValueFunction) { - objc.Call[objc.Void](p_, objc.Sel("setValueFunction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/capropertyanimation/1412496-keypath?language=objc +func (p_ PropertyAnimation) SetKeyPath(value string) { + objc.Call[objc.Void](p_, objc.Sel("setKeyPath:"), value) } // Determines if the value of the property is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle. [Full Topic] @@ -130,17 +130,17 @@ func (p_ PropertyAnimation) SetAdditive(value bool) { objc.Call[objc.Void](p_, objc.Sel("setAdditive:"), value) } -// Specifies the key path the receiver animates. [Full Topic] +// An optional value function that is applied to interpolated values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/capropertyanimation/1412496-keypath?language=objc -func (p_ PropertyAnimation) KeyPath() string { - rv := objc.Call[string](p_, objc.Sel("keyPath")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/capropertyanimation/1412447-valuefunction?language=objc +func (p_ PropertyAnimation) ValueFunction() ValueFunction { + rv := objc.Call[ValueFunction](p_, objc.Sel("valueFunction")) return rv } -// Specifies the key path the receiver animates. [Full Topic] +// An optional value function that is applied to interpolated values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/capropertyanimation/1412496-keypath?language=objc -func (p_ PropertyAnimation) SetKeyPath(value string) { - objc.Call[objc.Void](p_, objc.Sel("setKeyPath:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/capropertyanimation/1412447-valuefunction?language=objc +func (p_ PropertyAnimation) SetValueFunction(value IValueFunction) { + objc.Call[objc.Void](p_, objc.Sel("setValueFunction:"), value) } diff --git a/macos/quartzcore/remote_layer_client.gen.go b/macos/quartzcore/remote_layer_client.gen.go index 3b56e30c..5302ef4b 100644 --- a/macos/quartzcore/remote_layer_client.gen.go +++ b/macos/quartzcore/remote_layer_client.gen.go @@ -19,9 +19,9 @@ type _RemoteLayerClientClass struct { type IRemoteLayerClient interface { objc.IObject Invalidate() - ClientId() uint32 Layer() Layer SetLayer(value ILayer) + ClientId() uint32 } // [Full Topic] @@ -64,14 +64,6 @@ func (r_ RemoteLayerClient) Invalidate() { objc.Call[objc.Void](r_, objc.Sel("invalidate")) } -// The ID of the remote layer client. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caremotelayerclient/1418375-clientid?language=objc -func (r_ RemoteLayerClient) ClientId() uint32 { - rv := objc.Call[uint32](r_, objc.Sel("clientId")) - return rv -} - // The layer associated with the remote client. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caremotelayerclient/1418373-layer?language=objc @@ -86,3 +78,11 @@ func (r_ RemoteLayerClient) Layer() Layer { func (r_ RemoteLayerClient) SetLayer(value ILayer) { objc.Call[objc.Void](r_, objc.Sel("setLayer:"), value) } + +// The ID of the remote layer client. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caremotelayerclient/1418375-clientid?language=objc +func (r_ RemoteLayerClient) ClientId() uint32 { + rv := objc.Call[uint32](r_, objc.Sel("clientId")) + return rv +} diff --git a/macos/quartzcore/renderer.gen.go b/macos/quartzcore/renderer.gen.go index 9c8dff80..9086b0ca 100644 --- a/macos/quartzcore/renderer.gen.go +++ b/macos/quartzcore/renderer.gen.go @@ -23,18 +23,18 @@ type _RendererClass struct { // An interface definition for the [Renderer] class. type IRenderer interface { objc.IObject - BeginFrameAtTimeTimeStamp(t corefoundation.TimeInterval, ts *corevideo.TimeStamp) - EndFrame() - UpdateBounds() coregraphics.Rect - AddUpdateRect(r coregraphics.Rect) NextFrameTime() corefoundation.TimeInterval - Render() SetDestination(tex metal.PTexture) SetDestinationObject(texObject objc.IObject) - Bounds() coregraphics.Rect - SetBounds(value coregraphics.Rect) + Render() + UpdateBounds() coregraphics.Rect + EndFrame() + AddUpdateRect(r coregraphics.Rect) + BeginFrameAtTimeTimeStamp(t corefoundation.TimeInterval, ts *corevideo.TimeStamp) Layer() Layer SetLayer(value ILayer) + Bounds() coregraphics.Rect + SetBounds(value coregraphics.Rect) } // A layer that allows an application to render a layer tree into a Core OpenGL context. [Full Topic] @@ -70,26 +70,34 @@ func (r_ Renderer) Init() Renderer { return rv } -// Begin rendering a frame at the specified time. [Full Topic] +// Returns the time at which the next update should happen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519595-beginframeattime?language=objc -func (r_ Renderer) BeginFrameAtTimeTimeStamp(t corefoundation.TimeInterval, ts *corevideo.TimeStamp) { - objc.Call[objc.Void](r_, objc.Sel("beginFrameAtTime:timeStamp:"), t, ts) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519592-nextframetime?language=objc +func (r_ Renderer) NextFrameTime() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](r_, objc.Sel("nextFrameTime")) + return rv } -// Release any data associated with the current frame. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519593-endframe?language=objc -func (r_ Renderer) EndFrame() { - objc.Call[objc.Void](r_, objc.Sel("endFrame")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/2998892-setdestination?language=objc +func (r_ Renderer) SetDestination(tex metal.PTexture) { + po0 := objc.WrapAsProtocol("MTLTexture", tex) + objc.Call[objc.Void](r_, objc.Sel("setDestination:"), po0) } -// Returns the bounds of the update region that contains all pixels that will be rendered by the current frame. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519594-updatebounds?language=objc -func (r_ Renderer) UpdateBounds() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](r_, objc.Sel("updateBounds")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/2998892-setdestination?language=objc +func (r_ Renderer) SetDestinationObject(texObject objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("setDestination:"), texObject) +} + +// Render the update region of the current frame to the target context. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519582-render?language=objc +func (r_ Renderer) Render() { + objc.Call[objc.Void](r_, objc.Sel("render")) } // Creates a layer renderer from a Metal texture. [Full Topic] @@ -108,6 +116,21 @@ func Renderer_RendererWithMTLTextureOptions(tex metal.PTexture, dict foundation. return RendererClass.RendererWithMTLTextureOptions(tex, dict) } +// Returns the bounds of the update region that contains all pixels that will be rendered by the current frame. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519594-updatebounds?language=objc +func (r_ Renderer) UpdateBounds() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](r_, objc.Sel("updateBounds")) + return rv +} + +// Release any data associated with the current frame. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519593-endframe?language=objc +func (r_ Renderer) EndFrame() { + objc.Call[objc.Void](r_, objc.Sel("endFrame")) +} + // Adds the rectangle to the update region of the current frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519585-addupdaterect?language=objc @@ -115,34 +138,26 @@ func (r_ Renderer) AddUpdateRect(r coregraphics.Rect) { objc.Call[objc.Void](r_, objc.Sel("addUpdateRect:"), r) } -// Returns the time at which the next update should happen. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519592-nextframetime?language=objc -func (r_ Renderer) NextFrameTime() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](r_, objc.Sel("nextFrameTime")) - return rv -} - -// Render the update region of the current frame to the target context. [Full Topic] +// Begin rendering a frame at the specified time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519582-render?language=objc -func (r_ Renderer) Render() { - objc.Call[objc.Void](r_, objc.Sel("render")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519595-beginframeattime?language=objc +func (r_ Renderer) BeginFrameAtTimeTimeStamp(t corefoundation.TimeInterval, ts *corevideo.TimeStamp) { + objc.Call[objc.Void](r_, objc.Sel("beginFrameAtTime:timeStamp:"), t, ts) } -// [Full Topic] +// The root layer of the layer-tree the receiver should render. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/2998892-setdestination?language=objc -func (r_ Renderer) SetDestination(tex metal.PTexture) { - po0 := objc.WrapAsProtocol("MTLTexture", tex) - objc.Call[objc.Void](r_, objc.Sel("setDestination:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519583-layer?language=objc +func (r_ Renderer) Layer() Layer { + rv := objc.Call[Layer](r_, objc.Sel("layer")) + return rv } -// [Full Topic] +// The root layer of the layer-tree the receiver should render. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/2998892-setdestination?language=objc -func (r_ Renderer) SetDestinationObject(texObject objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("setDestination:"), texObject) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519583-layer?language=objc +func (r_ Renderer) SetLayer(value ILayer) { + objc.Call[objc.Void](r_, objc.Sel("setLayer:"), value) } // The bounds of the receiver. [Full Topic] @@ -159,18 +174,3 @@ func (r_ Renderer) Bounds() coregraphics.Rect { func (r_ Renderer) SetBounds(value coregraphics.Rect) { objc.Call[objc.Void](r_, objc.Sel("setBounds:"), value) } - -// The root layer of the layer-tree the receiver should render. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519583-layer?language=objc -func (r_ Renderer) Layer() Layer { - rv := objc.Call[Layer](r_, objc.Sel("layer")) - return rv -} - -// The root layer of the layer-tree the receiver should render. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/carenderer/1519583-layer?language=objc -func (r_ Renderer) SetLayer(value ILayer) { - objc.Call[objc.Void](r_, objc.Sel("setLayer:"), value) -} diff --git a/macos/quartzcore/replicator_layer.gen.go b/macos/quartzcore/replicator_layer.gen.go index 94c98344..e8635827 100644 --- a/macos/quartzcore/replicator_layer.gen.go +++ b/macos/quartzcore/replicator_layer.gen.go @@ -20,24 +20,24 @@ type _ReplicatorLayerClass struct { // An interface definition for the [ReplicatorLayer] class. type IReplicatorLayer interface { ILayer - InstanceRedOffset() float32 - SetInstanceRedOffset(value float32) InstanceBlueOffset() float32 SetInstanceBlueOffset(value float32) + InstanceRedOffset() float32 + SetInstanceRedOffset(value float32) + InstanceColor() coregraphics.ColorRef + SetInstanceColor(value coregraphics.ColorRef) + InstanceTransform() Transform3D + SetInstanceTransform(value Transform3D) + InstanceAlphaOffset() float32 + SetInstanceAlphaOffset(value float32) + InstanceGreenOffset() float32 + SetInstanceGreenOffset(value float32) InstanceDelay() corefoundation.TimeInterval SetInstanceDelay(value corefoundation.TimeInterval) InstanceCount() int SetInstanceCount(value int) - InstanceAlphaOffset() float32 - SetInstanceAlphaOffset(value float32) - InstanceColor() coregraphics.ColorRef - SetInstanceColor(value coregraphics.ColorRef) PreservesDepth() bool SetPreservesDepth(value bool) - InstanceGreenOffset() float32 - SetInstanceGreenOffset(value float32) - InstanceTransform() Transform3D - SetInstanceTransform(value Transform3D) } // A layer that creates a specified number of sublayer copies with varying geometric, temporal, and color transformations. [Full Topic] @@ -73,6 +73,32 @@ func (r_ ReplicatorLayer) Init() ReplicatorLayer { return rv } +func (rc _ReplicatorLayerClass) Layer() ReplicatorLayer { + rv := objc.Call[ReplicatorLayer](rc, objc.Sel("layer")) + return rv +} + +// Creates and returns an instance of the layer object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func ReplicatorLayer_Layer() ReplicatorLayer { + return ReplicatorLayerClass.Layer() +} + +func (r_ ReplicatorLayer) InitWithLayer(layer objc.IObject) ReplicatorLayer { + rv := objc.Call[ReplicatorLayer](r_, objc.Sel("initWithLayer:"), layer) + return rv +} + +// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewReplicatorLayerWithLayer(layer objc.IObject) ReplicatorLayer { + instance := ReplicatorLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + func (r_ ReplicatorLayer) ModelLayer() ReplicatorLayer { rv := objc.Call[ReplicatorLayer](r_, objc.Sel("modelLayer")) return rv @@ -101,30 +127,19 @@ func ReplicatorLayer_PresentationLayer() ReplicatorLayer { return instance } -func (r_ ReplicatorLayer) InitWithLayer(layer objc.IObject) ReplicatorLayer { - rv := objc.Call[ReplicatorLayer](r_, objc.Sel("initWithLayer:"), layer) - return rv -} - -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Defines the offset added to the blue component of the color for each replicated instance. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewReplicatorLayerWithLayer(layer objc.IObject) ReplicatorLayer { - instance := ReplicatorLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - -func (rc _ReplicatorLayerClass) Layer() ReplicatorLayer { - rv := objc.Call[ReplicatorLayer](rc, objc.Sel("layer")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522267-instanceblueoffset?language=objc +func (r_ ReplicatorLayer) InstanceBlueOffset() float32 { + rv := objc.Call[float32](r_, objc.Sel("instanceBlueOffset")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Defines the offset added to the blue component of the color for each replicated instance. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func ReplicatorLayer_Layer() ReplicatorLayer { - return ReplicatorLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522267-instanceblueoffset?language=objc +func (r_ ReplicatorLayer) SetInstanceBlueOffset(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setInstanceBlueOffset:"), value) } // Defines the offset added to the red component of the color for each replicated instance. Animatable. [Full Topic] @@ -142,49 +157,34 @@ func (r_ ReplicatorLayer) SetInstanceRedOffset(value float32) { objc.Call[objc.Void](r_, objc.Sel("setInstanceRedOffset:"), value) } -// Defines the offset added to the blue component of the color for each replicated instance. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522267-instanceblueoffset?language=objc -func (r_ ReplicatorLayer) InstanceBlueOffset() float32 { - rv := objc.Call[float32](r_, objc.Sel("instanceBlueOffset")) - return rv -} - -// Defines the offset added to the blue component of the color for each replicated instance. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522267-instanceblueoffset?language=objc -func (r_ ReplicatorLayer) SetInstanceBlueOffset(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setInstanceBlueOffset:"), value) -} - -// Specifies the delay, in seconds, between replicated copies. Animatable. [Full Topic] +// Defines the color used to multiply the source object. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522391-instancedelay?language=objc -func (r_ ReplicatorLayer) InstanceDelay() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](r_, objc.Sel("instanceDelay")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522154-instancecolor?language=objc +func (r_ ReplicatorLayer) InstanceColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](r_, objc.Sel("instanceColor")) return rv } -// Specifies the delay, in seconds, between replicated copies. Animatable. [Full Topic] +// Defines the color used to multiply the source object. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522391-instancedelay?language=objc -func (r_ ReplicatorLayer) SetInstanceDelay(value corefoundation.TimeInterval) { - objc.Call[objc.Void](r_, objc.Sel("setInstanceDelay:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522154-instancecolor?language=objc +func (r_ ReplicatorLayer) SetInstanceColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](r_, objc.Sel("setInstanceColor:"), value) } -// The number of copies to create, including the source layers. [Full Topic] +// The transform matrix applied to the previous instance to produce the current instance. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1521883-instancecount?language=objc -func (r_ ReplicatorLayer) InstanceCount() int { - rv := objc.Call[int](r_, objc.Sel("instanceCount")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522312-instancetransform?language=objc +func (r_ ReplicatorLayer) InstanceTransform() Transform3D { + rv := objc.Call[Transform3D](r_, objc.Sel("instanceTransform")) return rv } -// The number of copies to create, including the source layers. [Full Topic] +// The transform matrix applied to the previous instance to produce the current instance. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1521883-instancecount?language=objc -func (r_ ReplicatorLayer) SetInstanceCount(value int) { - objc.Call[objc.Void](r_, objc.Sel("setInstanceCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522312-instancetransform?language=objc +func (r_ ReplicatorLayer) SetInstanceTransform(value Transform3D) { + objc.Call[objc.Void](r_, objc.Sel("setInstanceTransform:"), value) } // Defines the offset added to the alpha component of the color for each replicated instance. Animatable. [Full Topic] @@ -202,62 +202,62 @@ func (r_ ReplicatorLayer) SetInstanceAlphaOffset(value float32) { objc.Call[objc.Void](r_, objc.Sel("setInstanceAlphaOffset:"), value) } -// Defines the color used to multiply the source object. Animatable. [Full Topic] +// Defines the offset added to the green component of the color for each replicated instance. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522154-instancecolor?language=objc -func (r_ ReplicatorLayer) InstanceColor() coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](r_, objc.Sel("instanceColor")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522032-instancegreenoffset?language=objc +func (r_ ReplicatorLayer) InstanceGreenOffset() float32 { + rv := objc.Call[float32](r_, objc.Sel("instanceGreenOffset")) return rv } -// Defines the color used to multiply the source object. Animatable. [Full Topic] +// Defines the offset added to the green component of the color for each replicated instance. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522154-instancecolor?language=objc -func (r_ ReplicatorLayer) SetInstanceColor(value coregraphics.ColorRef) { - objc.Call[objc.Void](r_, objc.Sel("setInstanceColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522032-instancegreenoffset?language=objc +func (r_ ReplicatorLayer) SetInstanceGreenOffset(value float32) { + objc.Call[objc.Void](r_, objc.Sel("setInstanceGreenOffset:"), value) } -// Defines whether this layer flattens its sublayers into its plane. [Full Topic] +// Specifies the delay, in seconds, between replicated copies. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522095-preservesdepth?language=objc -func (r_ ReplicatorLayer) PreservesDepth() bool { - rv := objc.Call[bool](r_, objc.Sel("preservesDepth")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522391-instancedelay?language=objc +func (r_ ReplicatorLayer) InstanceDelay() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](r_, objc.Sel("instanceDelay")) return rv } -// Defines whether this layer flattens its sublayers into its plane. [Full Topic] +// Specifies the delay, in seconds, between replicated copies. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522095-preservesdepth?language=objc -func (r_ ReplicatorLayer) SetPreservesDepth(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setPreservesDepth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522391-instancedelay?language=objc +func (r_ ReplicatorLayer) SetInstanceDelay(value corefoundation.TimeInterval) { + objc.Call[objc.Void](r_, objc.Sel("setInstanceDelay:"), value) } -// Defines the offset added to the green component of the color for each replicated instance. Animatable. [Full Topic] +// The number of copies to create, including the source layers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522032-instancegreenoffset?language=objc -func (r_ ReplicatorLayer) InstanceGreenOffset() float32 { - rv := objc.Call[float32](r_, objc.Sel("instanceGreenOffset")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1521883-instancecount?language=objc +func (r_ ReplicatorLayer) InstanceCount() int { + rv := objc.Call[int](r_, objc.Sel("instanceCount")) return rv } -// Defines the offset added to the green component of the color for each replicated instance. Animatable. [Full Topic] +// The number of copies to create, including the source layers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522032-instancegreenoffset?language=objc -func (r_ ReplicatorLayer) SetInstanceGreenOffset(value float32) { - objc.Call[objc.Void](r_, objc.Sel("setInstanceGreenOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1521883-instancecount?language=objc +func (r_ ReplicatorLayer) SetInstanceCount(value int) { + objc.Call[objc.Void](r_, objc.Sel("setInstanceCount:"), value) } -// The transform matrix applied to the previous instance to produce the current instance. Animatable. [Full Topic] +// Defines whether this layer flattens its sublayers into its plane. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522312-instancetransform?language=objc -func (r_ ReplicatorLayer) InstanceTransform() Transform3D { - rv := objc.Call[Transform3D](r_, objc.Sel("instanceTransform")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522095-preservesdepth?language=objc +func (r_ ReplicatorLayer) PreservesDepth() bool { + rv := objc.Call[bool](r_, objc.Sel("preservesDepth")) return rv } -// The transform matrix applied to the previous instance to produce the current instance. Animatable. [Full Topic] +// Defines whether this layer flattens its sublayers into its plane. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522312-instancetransform?language=objc -func (r_ ReplicatorLayer) SetInstanceTransform(value Transform3D) { - objc.Call[objc.Void](r_, objc.Sel("setInstanceTransform:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522095-preservesdepth?language=objc +func (r_ ReplicatorLayer) SetPreservesDepth(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setPreservesDepth:"), value) } diff --git a/macos/quartzcore/scroll_layer.gen.go b/macos/quartzcore/scroll_layer.gen.go index 0a54e391..d7a9c7dc 100644 --- a/macos/quartzcore/scroll_layer.gen.go +++ b/macos/quartzcore/scroll_layer.gen.go @@ -58,58 +58,58 @@ func (s_ ScrollLayer) Init() ScrollLayer { return rv } -func (s_ ScrollLayer) ModelLayer() ScrollLayer { - rv := objc.Call[ScrollLayer](s_, objc.Sel("modelLayer")) +func (sc _ScrollLayerClass) Layer() ScrollLayer { + rv := objc.Call[ScrollLayer](sc, objc.Sel("layer")) return rv } -// Returns the model layer object associated with the receiver, if any. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc -func ScrollLayer_ModelLayer() ScrollLayer { - instance := ScrollLayerClass.Alloc().ModelLayer() - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func ScrollLayer_Layer() ScrollLayer { + return ScrollLayerClass.Layer() } -func (s_ ScrollLayer) PresentationLayer() ScrollLayer { - rv := objc.Call[ScrollLayer](s_, objc.Sel("presentationLayer")) +func (s_ ScrollLayer) InitWithLayer(layer objc.IObject) ScrollLayer { + rv := objc.Call[ScrollLayer](s_, objc.Sel("initWithLayer:"), layer) return rv } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] +// Override to copy or initialize custom fields of the specified layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc -func ScrollLayer_PresentationLayer() ScrollLayer { - instance := ScrollLayerClass.Alloc().PresentationLayer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewScrollLayerWithLayer(layer objc.IObject) ScrollLayer { + instance := ScrollLayerClass.Alloc().InitWithLayer(layer) instance.Autorelease() return instance } -func (s_ ScrollLayer) InitWithLayer(layer objc.IObject) ScrollLayer { - rv := objc.Call[ScrollLayer](s_, objc.Sel("initWithLayer:"), layer) +func (s_ ScrollLayer) ModelLayer() ScrollLayer { + rv := objc.Call[ScrollLayer](s_, objc.Sel("modelLayer")) return rv } -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewScrollLayerWithLayer(layer objc.IObject) ScrollLayer { - instance := ScrollLayerClass.Alloc().InitWithLayer(layer) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc +func ScrollLayer_ModelLayer() ScrollLayer { + instance := ScrollLayerClass.Alloc().ModelLayer() instance.Autorelease() return instance } -func (sc _ScrollLayerClass) Layer() ScrollLayer { - rv := objc.Call[ScrollLayer](sc, objc.Sel("layer")) +func (s_ ScrollLayer) PresentationLayer() ScrollLayer { + rv := objc.Call[ScrollLayer](s_, objc.Sel("presentationLayer")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func ScrollLayer_Layer() ScrollLayer { - return ScrollLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc +func ScrollLayer_PresentationLayer() ScrollLayer { + instance := ScrollLayerClass.Alloc().PresentationLayer() + instance.Autorelease() + return instance } // Changes the origin of the receiver to the specified point. [Full Topic] diff --git a/macos/quartzcore/shape_layer.gen.go b/macos/quartzcore/shape_layer.gen.go index 8a937c65..2b533503 100644 --- a/macos/quartzcore/shape_layer.gen.go +++ b/macos/quartzcore/shape_layer.gen.go @@ -20,30 +20,30 @@ type _ShapeLayerClass struct { // An interface definition for the [ShapeLayer] class. type IShapeLayer interface { ILayer - LineCap() ShapeLayerLineCap - SetLineCap(value ShapeLayerLineCap) - LineDashPattern() []foundation.Number - SetLineDashPattern(value []foundation.INumber) - StrokeColor() coregraphics.ColorRef - SetStrokeColor(value coregraphics.ColorRef) + Path() unsafe.Pointer + SetPath(value unsafe.Pointer) + LineWidth() float64 + SetLineWidth(value float64) + StrokeStart() float64 + SetStrokeStart(value float64) + LineDashPhase() float64 + SetLineDashPhase(value float64) MiterLimit() float64 SetMiterLimit(value float64) StrokeEnd() float64 SetStrokeEnd(value float64) LineJoin() ShapeLayerLineJoin SetLineJoin(value ShapeLayerLineJoin) - StrokeStart() float64 - SetStrokeStart(value float64) + LineDashPattern() []foundation.Number + SetLineDashPattern(value []foundation.INumber) + StrokeColor() coregraphics.ColorRef + SetStrokeColor(value coregraphics.ColorRef) FillColor() coregraphics.ColorRef SetFillColor(value coregraphics.ColorRef) - LineWidth() float64 - SetLineWidth(value float64) - LineDashPhase() float64 - SetLineDashPhase(value float64) + LineCap() ShapeLayerLineCap + SetLineCap(value ShapeLayerLineCap) FillRule() ShapeLayerFillRule SetFillRule(value ShapeLayerFillRule) - Path() unsafe.Pointer - SetPath(value unsafe.Pointer) } // A layer that draws a cubic Bezier spline in its coordinate space. [Full Topic] @@ -79,6 +79,32 @@ func (s_ ShapeLayer) Init() ShapeLayer { return rv } +func (sc _ShapeLayerClass) Layer() ShapeLayer { + rv := objc.Call[ShapeLayer](sc, objc.Sel("layer")) + return rv +} + +// Creates and returns an instance of the layer object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func ShapeLayer_Layer() ShapeLayer { + return ShapeLayerClass.Layer() +} + +func (s_ ShapeLayer) InitWithLayer(layer objc.IObject) ShapeLayer { + rv := objc.Call[ShapeLayer](s_, objc.Sel("initWithLayer:"), layer) + return rv +} + +// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewShapeLayerWithLayer(layer objc.IObject) ShapeLayer { + instance := ShapeLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + func (s_ ShapeLayer) ModelLayer() ShapeLayer { rv := objc.Call[ShapeLayer](s_, objc.Sel("modelLayer")) return rv @@ -107,75 +133,64 @@ func ShapeLayer_PresentationLayer() ShapeLayer { return instance } -func (s_ ShapeLayer) InitWithLayer(layer objc.IObject) ShapeLayer { - rv := objc.Call[ShapeLayer](s_, objc.Sel("initWithLayer:"), layer) - return rv -} - -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// The path defining the shape to be rendered. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewShapeLayerWithLayer(layer objc.IObject) ShapeLayer { - instance := ShapeLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - -func (sc _ShapeLayerClass) Layer() ShapeLayer { - rv := objc.Call[ShapeLayer](sc, objc.Sel("layer")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521904-path?language=objc +func (s_ ShapeLayer) Path() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](s_, objc.Sel("path")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// The path defining the shape to be rendered. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func ShapeLayer_Layer() ShapeLayer { - return ShapeLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521904-path?language=objc +func (s_ ShapeLayer) SetPath(value unsafe.Pointer) { + objc.Call[objc.Void](s_, objc.Sel("setPath:"), value) } -// Specifies the line cap style for the shape’s path. [Full Topic] +// Specifies the line width of the shape’s path. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521905-linecap?language=objc -func (s_ ShapeLayer) LineCap() ShapeLayerLineCap { - rv := objc.Call[ShapeLayerLineCap](s_, objc.Sel("lineCap")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521890-linewidth?language=objc +func (s_ ShapeLayer) LineWidth() float64 { + rv := objc.Call[float64](s_, objc.Sel("lineWidth")) return rv } -// Specifies the line cap style for the shape’s path. [Full Topic] +// Specifies the line width of the shape’s path. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521905-linecap?language=objc -func (s_ ShapeLayer) SetLineCap(value ShapeLayerLineCap) { - objc.Call[objc.Void](s_, objc.Sel("setLineCap:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521890-linewidth?language=objc +func (s_ ShapeLayer) SetLineWidth(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setLineWidth:"), value) } -// The dash pattern applied to the shape’s path when stroked. [Full Topic] +// The relative location at which to begin stroking the path. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521921-linedashpattern?language=objc -func (s_ ShapeLayer) LineDashPattern() []foundation.Number { - rv := objc.Call[[]foundation.Number](s_, objc.Sel("lineDashPattern")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521929-strokestart?language=objc +func (s_ ShapeLayer) StrokeStart() float64 { + rv := objc.Call[float64](s_, objc.Sel("strokeStart")) return rv } -// The dash pattern applied to the shape’s path when stroked. [Full Topic] +// The relative location at which to begin stroking the path. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521921-linedashpattern?language=objc -func (s_ ShapeLayer) SetLineDashPattern(value []foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setLineDashPattern:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521929-strokestart?language=objc +func (s_ ShapeLayer) SetStrokeStart(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setStrokeStart:"), value) } -// The color used to stroke the shape’s path. Animatable. [Full Topic] +// The dash phase applied to the shape’s path when stroked. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521897-strokecolor?language=objc -func (s_ ShapeLayer) StrokeColor() coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](s_, objc.Sel("strokeColor")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521856-linedashphase?language=objc +func (s_ ShapeLayer) LineDashPhase() float64 { + rv := objc.Call[float64](s_, objc.Sel("lineDashPhase")) return rv } -// The color used to stroke the shape’s path. Animatable. [Full Topic] +// The dash phase applied to the shape’s path when stroked. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521897-strokecolor?language=objc -func (s_ ShapeLayer) SetStrokeColor(value coregraphics.ColorRef) { - objc.Call[objc.Void](s_, objc.Sel("setStrokeColor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521856-linedashphase?language=objc +func (s_ ShapeLayer) SetLineDashPhase(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setLineDashPhase:"), value) } // The miter limit used when stroking the shape’s path. Animatable. [Full Topic] @@ -223,19 +238,34 @@ func (s_ ShapeLayer) SetLineJoin(value ShapeLayerLineJoin) { objc.Call[objc.Void](s_, objc.Sel("setLineJoin:"), value) } -// The relative location at which to begin stroking the path. Animatable. [Full Topic] +// The dash pattern applied to the shape’s path when stroked. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521929-strokestart?language=objc -func (s_ ShapeLayer) StrokeStart() float64 { - rv := objc.Call[float64](s_, objc.Sel("strokeStart")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521921-linedashpattern?language=objc +func (s_ ShapeLayer) LineDashPattern() []foundation.Number { + rv := objc.Call[[]foundation.Number](s_, objc.Sel("lineDashPattern")) return rv } -// The relative location at which to begin stroking the path. Animatable. [Full Topic] +// The dash pattern applied to the shape’s path when stroked. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521929-strokestart?language=objc -func (s_ ShapeLayer) SetStrokeStart(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setStrokeStart:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521921-linedashpattern?language=objc +func (s_ ShapeLayer) SetLineDashPattern(value []foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setLineDashPattern:"), value) +} + +// The color used to stroke the shape’s path. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521897-strokecolor?language=objc +func (s_ ShapeLayer) StrokeColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](s_, objc.Sel("strokeColor")) + return rv +} + +// The color used to stroke the shape’s path. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521897-strokecolor?language=objc +func (s_ ShapeLayer) SetStrokeColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](s_, objc.Sel("setStrokeColor:"), value) } // The color used to fill the shape’s path. Animatable. [Full Topic] @@ -253,34 +283,19 @@ func (s_ ShapeLayer) SetFillColor(value coregraphics.ColorRef) { objc.Call[objc.Void](s_, objc.Sel("setFillColor:"), value) } -// Specifies the line width of the shape’s path. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521890-linewidth?language=objc -func (s_ ShapeLayer) LineWidth() float64 { - rv := objc.Call[float64](s_, objc.Sel("lineWidth")) - return rv -} - -// Specifies the line width of the shape’s path. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521890-linewidth?language=objc -func (s_ ShapeLayer) SetLineWidth(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setLineWidth:"), value) -} - -// The dash phase applied to the shape’s path when stroked. Animatable. [Full Topic] +// Specifies the line cap style for the shape’s path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521856-linedashphase?language=objc -func (s_ ShapeLayer) LineDashPhase() float64 { - rv := objc.Call[float64](s_, objc.Sel("lineDashPhase")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521905-linecap?language=objc +func (s_ ShapeLayer) LineCap() ShapeLayerLineCap { + rv := objc.Call[ShapeLayerLineCap](s_, objc.Sel("lineCap")) return rv } -// The dash phase applied to the shape’s path when stroked. Animatable. [Full Topic] +// Specifies the line cap style for the shape’s path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521856-linedashphase?language=objc -func (s_ ShapeLayer) SetLineDashPhase(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setLineDashPhase:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521905-linecap?language=objc +func (s_ ShapeLayer) SetLineCap(value ShapeLayerLineCap) { + objc.Call[objc.Void](s_, objc.Sel("setLineCap:"), value) } // The fill rule used when filling the shape’s path. [Full Topic] @@ -297,18 +312,3 @@ func (s_ ShapeLayer) FillRule() ShapeLayerFillRule { func (s_ ShapeLayer) SetFillRule(value ShapeLayerFillRule) { objc.Call[objc.Void](s_, objc.Sel("setFillRule:"), value) } - -// The path defining the shape to be rendered. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521904-path?language=objc -func (s_ ShapeLayer) Path() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](s_, objc.Sel("path")) - return rv -} - -// The path defining the shape to be rendered. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cashapelayer/1521904-path?language=objc -func (s_ ShapeLayer) SetPath(value unsafe.Pointer) { - objc.Call[objc.Void](s_, objc.Sel("setPath:"), value) -} diff --git a/macos/quartzcore/spring_animation.gen.go b/macos/quartzcore/spring_animation.gen.go index 2016bd48..9c1ed54e 100644 --- a/macos/quartzcore/spring_animation.gen.go +++ b/macos/quartzcore/spring_animation.gen.go @@ -19,15 +19,15 @@ type _SpringAnimationClass struct { // An interface definition for the [SpringAnimation] class. type ISpringAnimation interface { IBasicAnimation - SettlingDuration() corefoundation.TimeInterval Stiffness() float64 SetStiffness(value float64) - Damping() float64 - SetDamping(value float64) - Mass() float64 - SetMass(value float64) InitialVelocity() float64 SetInitialVelocity(value float64) + Mass() float64 + SetMass(value float64) + Damping() float64 + SetDamping(value float64) + SettlingDuration() corefoundation.TimeInterval } // An animation that applies a spring-like force to a layer's properties. [Full Topic] @@ -87,14 +87,6 @@ func SpringAnimation_Animation() SpringAnimation { return SpringAnimationClass.Animation() } -// The estimated duration required for the spring system to be considered at rest. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412524-settlingduration?language=objc -func (s_ SpringAnimation) SettlingDuration() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](s_, objc.Sel("settlingDuration")) - return rv -} - // The spring stiffness coefficient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412515-stiffness?language=objc @@ -110,19 +102,19 @@ func (s_ SpringAnimation) SetStiffness(value float64) { objc.Call[objc.Void](s_, objc.Sel("setStiffness:"), value) } -// Defines how the spring’s motion should be damped due to the forces of friction. [Full Topic] +// The initial velocity of the object attached to the spring. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412532-damping?language=objc -func (s_ SpringAnimation) Damping() float64 { - rv := objc.Call[float64](s_, objc.Sel("damping")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412443-initialvelocity?language=objc +func (s_ SpringAnimation) InitialVelocity() float64 { + rv := objc.Call[float64](s_, objc.Sel("initialVelocity")) return rv } -// Defines how the spring’s motion should be damped due to the forces of friction. [Full Topic] +// The initial velocity of the object attached to the spring. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412532-damping?language=objc -func (s_ SpringAnimation) SetDamping(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setDamping:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412443-initialvelocity?language=objc +func (s_ SpringAnimation) SetInitialVelocity(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setInitialVelocity:"), value) } // The mass of the object attached to the end of the spring. [Full Topic] @@ -140,17 +132,25 @@ func (s_ SpringAnimation) SetMass(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMass:"), value) } -// The initial velocity of the object attached to the spring. [Full Topic] +// Defines how the spring’s motion should be damped due to the forces of friction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412443-initialvelocity?language=objc -func (s_ SpringAnimation) InitialVelocity() float64 { - rv := objc.Call[float64](s_, objc.Sel("initialVelocity")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412532-damping?language=objc +func (s_ SpringAnimation) Damping() float64 { + rv := objc.Call[float64](s_, objc.Sel("damping")) return rv } -// The initial velocity of the object attached to the spring. [Full Topic] +// Defines how the spring’s motion should be damped due to the forces of friction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412443-initialvelocity?language=objc -func (s_ SpringAnimation) SetInitialVelocity(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setInitialVelocity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412532-damping?language=objc +func (s_ SpringAnimation) SetDamping(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setDamping:"), value) +} + +// The estimated duration required for the spring system to be considered at rest. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caspringanimation/1412524-settlingduration?language=objc +func (s_ SpringAnimation) SettlingDuration() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](s_, objc.Sel("settlingDuration")) + return rv } diff --git a/macos/quartzcore/text_layer.gen.go b/macos/quartzcore/text_layer.gen.go index e994e480..c0685d8d 100644 --- a/macos/quartzcore/text_layer.gen.go +++ b/macos/quartzcore/text_layer.gen.go @@ -20,22 +20,22 @@ type _TextLayerClass struct { // An interface definition for the [TextLayer] class. type ITextLayer interface { ILayer + FontSize() float64 + SetFontSize(value float64) + IsWrapped() bool + SetWrapped(value bool) AlignmentMode() TextLayerAlignmentMode SetAlignmentMode(value TextLayerAlignmentMode) + ForegroundColor() coregraphics.ColorRef + SetForegroundColor(value coregraphics.ColorRef) String() objc.Object SetString(value objc.IObject) Font() corefoundation.TypeRef SetFont(value corefoundation.TypeRef) - FontSize() float64 - SetFontSize(value float64) AllowsFontSubpixelQuantization() bool SetAllowsFontSubpixelQuantization(value bool) - IsWrapped() bool - SetWrapped(value bool) TruncationMode() TextLayerTruncationMode SetTruncationMode(value TextLayerTruncationMode) - ForegroundColor() coregraphics.ColorRef - SetForegroundColor(value coregraphics.ColorRef) } // A layer that provides simple text layout and rendering of plain or attributed strings. [Full Topic] @@ -71,6 +71,32 @@ func (t_ TextLayer) Init() TextLayer { return rv } +func (tc _TextLayerClass) Layer() TextLayer { + rv := objc.Call[TextLayer](tc, objc.Sel("layer")) + return rv +} + +// Creates and returns an instance of the layer object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func TextLayer_Layer() TextLayer { + return TextLayerClass.Layer() +} + +func (t_ TextLayer) InitWithLayer(layer objc.IObject) TextLayer { + rv := objc.Call[TextLayer](t_, objc.Sel("initWithLayer:"), layer) + return rv +} + +// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewTextLayerWithLayer(layer objc.IObject) TextLayer { + instance := TextLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + func (t_ TextLayer) ModelLayer() TextLayer { rv := objc.Call[TextLayer](t_, objc.Sel("modelLayer")) return rv @@ -99,30 +125,34 @@ func TextLayer_PresentationLayer() TextLayer { return instance } -func (t_ TextLayer) InitWithLayer(layer objc.IObject) TextLayer { - rv := objc.Call[TextLayer](t_, objc.Sel("initWithLayer:"), layer) +// The font size used to render the receiver’s text. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515290-fontsize?language=objc +func (t_ TextLayer) FontSize() float64 { + rv := objc.Call[float64](t_, objc.Sel("fontSize")) return rv } -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// The font size used to render the receiver’s text. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewTextLayerWithLayer(layer objc.IObject) TextLayer { - instance := TextLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515290-fontsize?language=objc +func (t_ TextLayer) SetFontSize(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setFontSize:"), value) } -func (tc _TextLayerClass) Layer() TextLayer { - rv := objc.Call[TextLayer](tc, objc.Sel("layer")) +// Determines whether the text is wrapped to fit within the receiver’s bounds. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515302-wrapped?language=objc +func (t_ TextLayer) IsWrapped() bool { + rv := objc.Call[bool](t_, objc.Sel("isWrapped")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Determines whether the text is wrapped to fit within the receiver’s bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func TextLayer_Layer() TextLayer { - return TextLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515302-wrapped?language=objc +func (t_ TextLayer) SetWrapped(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setWrapped:"), value) } // Determines how individual lines of text are horizontally aligned within the receiver’s bounds. [Full Topic] @@ -140,6 +170,21 @@ func (t_ TextLayer) SetAlignmentMode(value TextLayerAlignmentMode) { objc.Call[objc.Void](t_, objc.Sel("setAlignmentMode:"), value) } +// The color used to render the receiver’s text. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515305-foregroundcolor?language=objc +func (t_ TextLayer) ForegroundColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](t_, objc.Sel("foregroundColor")) + return rv +} + +// The color used to render the receiver’s text. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515305-foregroundcolor?language=objc +func (t_ TextLayer) SetForegroundColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](t_, objc.Sel("setForegroundColor:"), value) +} + // The text to be rendered by the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515295-string?language=objc @@ -170,21 +215,6 @@ func (t_ TextLayer) SetFont(value corefoundation.TypeRef) { objc.Call[objc.Void](t_, objc.Sel("setFont:"), value) } -// The font size used to render the receiver’s text. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515290-fontsize?language=objc -func (t_ TextLayer) FontSize() float64 { - rv := objc.Call[float64](t_, objc.Sel("fontSize")) - return rv -} - -// The font size used to render the receiver’s text. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515290-fontsize?language=objc -func (t_ TextLayer) SetFontSize(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setFontSize:"), value) -} - // Determines whether to allow subpixel quantization for the graphics context used for text rendering. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515300-allowsfontsubpixelquantization?language=objc @@ -200,21 +230,6 @@ func (t_ TextLayer) SetAllowsFontSubpixelQuantization(value bool) { objc.Call[objc.Void](t_, objc.Sel("setAllowsFontSubpixelQuantization:"), value) } -// Determines whether the text is wrapped to fit within the receiver’s bounds. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515302-wrapped?language=objc -func (t_ TextLayer) IsWrapped() bool { - rv := objc.Call[bool](t_, objc.Sel("isWrapped")) - return rv -} - -// Determines whether the text is wrapped to fit within the receiver’s bounds. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515302-wrapped?language=objc -func (t_ TextLayer) SetWrapped(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setWrapped:"), value) -} - // Determines how the text is truncated to fit within the receiver’s bounds. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515296-truncationmode?language=objc @@ -229,18 +244,3 @@ func (t_ TextLayer) TruncationMode() TextLayerTruncationMode { func (t_ TextLayer) SetTruncationMode(value TextLayerTruncationMode) { objc.Call[objc.Void](t_, objc.Sel("setTruncationMode:"), value) } - -// The color used to render the receiver’s text. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515305-foregroundcolor?language=objc -func (t_ TextLayer) ForegroundColor() coregraphics.ColorRef { - rv := objc.Call[coregraphics.ColorRef](t_, objc.Sel("foregroundColor")) - return rv -} - -// The color used to render the receiver’s text. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catextlayer/1515305-foregroundcolor?language=objc -func (t_ TextLayer) SetForegroundColor(value coregraphics.ColorRef) { - objc.Call[objc.Void](t_, objc.Sel("setForegroundColor:"), value) -} diff --git a/macos/quartzcore/tiled_layer.gen.go b/macos/quartzcore/tiled_layer.gen.go index d72b6aea..ed639b61 100644 --- a/macos/quartzcore/tiled_layer.gen.go +++ b/macos/quartzcore/tiled_layer.gen.go @@ -20,10 +20,10 @@ type _TiledLayerClass struct { // An interface definition for the [TiledLayer] class. type ITiledLayer interface { ILayer - LevelsOfDetail() uint - SetLevelsOfDetail(value uint) TileSize() coregraphics.Size SetTileSize(value coregraphics.Size) + LevelsOfDetail() uint + SetLevelsOfDetail(value uint) LevelsOfDetailBias() uint SetLevelsOfDetailBias(value uint) } @@ -61,58 +61,58 @@ func (t_ TiledLayer) Init() TiledLayer { return rv } -func (t_ TiledLayer) ModelLayer() TiledLayer { - rv := objc.Call[TiledLayer](t_, objc.Sel("modelLayer")) +func (tc _TiledLayerClass) Layer() TiledLayer { + rv := objc.Call[TiledLayer](tc, objc.Sel("layer")) return rv } -// Returns the model layer object associated with the receiver, if any. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc -func TiledLayer_ModelLayer() TiledLayer { - instance := TiledLayerClass.Alloc().ModelLayer() - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func TiledLayer_Layer() TiledLayer { + return TiledLayerClass.Layer() } -func (t_ TiledLayer) PresentationLayer() TiledLayer { - rv := objc.Call[TiledLayer](t_, objc.Sel("presentationLayer")) +func (t_ TiledLayer) InitWithLayer(layer objc.IObject) TiledLayer { + rv := objc.Call[TiledLayer](t_, objc.Sel("initWithLayer:"), layer) return rv } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] +// Override to copy or initialize custom fields of the specified layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc -func TiledLayer_PresentationLayer() TiledLayer { - instance := TiledLayerClass.Alloc().PresentationLayer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewTiledLayerWithLayer(layer objc.IObject) TiledLayer { + instance := TiledLayerClass.Alloc().InitWithLayer(layer) instance.Autorelease() return instance } -func (t_ TiledLayer) InitWithLayer(layer objc.IObject) TiledLayer { - rv := objc.Call[TiledLayer](t_, objc.Sel("initWithLayer:"), layer) +func (t_ TiledLayer) ModelLayer() TiledLayer { + rv := objc.Call[TiledLayer](t_, objc.Sel("modelLayer")) return rv } -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewTiledLayerWithLayer(layer objc.IObject) TiledLayer { - instance := TiledLayerClass.Alloc().InitWithLayer(layer) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc +func TiledLayer_ModelLayer() TiledLayer { + instance := TiledLayerClass.Alloc().ModelLayer() instance.Autorelease() return instance } -func (tc _TiledLayerClass) Layer() TiledLayer { - rv := objc.Call[TiledLayer](tc, objc.Sel("layer")) +func (t_ TiledLayer) PresentationLayer() TiledLayer { + rv := objc.Call[TiledLayer](t_, objc.Sel("presentationLayer")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func TiledLayer_Layer() TiledLayer { - return TiledLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc +func TiledLayer_PresentationLayer() TiledLayer { + instance := TiledLayerClass.Alloc().PresentationLayer() + instance.Autorelease() + return instance } // The time, in seconds, that newly added images take to "fade-in" to the rendered representation of the tiled layer. [Full Topic] @@ -130,21 +130,6 @@ func TiledLayer_FadeDuration() corefoundation.TimeInterval { return TiledLayerClass.FadeDuration() } -// The number of levels of detail maintained by this layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catiledlayer/1522244-levelsofdetail?language=objc -func (t_ TiledLayer) LevelsOfDetail() uint { - rv := objc.Call[uint](t_, objc.Sel("levelsOfDetail")) - return rv -} - -// The number of levels of detail maintained by this layer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catiledlayer/1522244-levelsofdetail?language=objc -func (t_ TiledLayer) SetLevelsOfDetail(value uint) { - objc.Call[objc.Void](t_, objc.Sel("setLevelsOfDetail:"), value) -} - // The maximum size of each tile used to create the layer's content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/catiledlayer/1522114-tilesize?language=objc @@ -160,6 +145,21 @@ func (t_ TiledLayer) SetTileSize(value coregraphics.Size) { objc.Call[objc.Void](t_, objc.Sel("setTileSize:"), value) } +// The number of levels of detail maintained by this layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catiledlayer/1522244-levelsofdetail?language=objc +func (t_ TiledLayer) LevelsOfDetail() uint { + rv := objc.Call[uint](t_, objc.Sel("levelsOfDetail")) + return rv +} + +// The number of levels of detail maintained by this layer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catiledlayer/1522244-levelsofdetail?language=objc +func (t_ TiledLayer) SetLevelsOfDetail(value uint) { + objc.Call[objc.Void](t_, objc.Sel("setLevelsOfDetail:"), value) +} + // The number of magnified levels of detail for this layer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/catiledlayer/1522099-levelsofdetailbias?language=objc diff --git a/macos/quartzcore/transaction.gen.go b/macos/quartzcore/transaction.gen.go index bfc6b560..4a7f27f2 100644 --- a/macos/quartzcore/transaction.gen.go +++ b/macos/quartzcore/transaction.gen.go @@ -54,148 +54,132 @@ func (t_ Transaction) Init() Transaction { return rv } -// Sets the timing function used for all animations within this transaction group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448279-setanimationtimingfunction?language=objc -func (tc _TransactionClass) SetAnimationTimingFunction(function IMediaTimingFunction) { - objc.Call[objc.Void](tc, objc.Sel("setAnimationTimingFunction:"), function) -} - -// Sets the timing function used for all animations within this transaction group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448279-setanimationtimingfunction?language=objc -func Transaction_SetAnimationTimingFunction(function IMediaTimingFunction) { - TransactionClass.SetAnimationTimingFunction(function) -} - -// Commit all changes made during the current transaction. [Full Topic] +// Returns the timing function used for all animations within this transaction group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448255-commit?language=objc -func (tc _TransactionClass) Commit() { - objc.Call[objc.Void](tc, objc.Sel("commit")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448269-animationtimingfunction?language=objc +func (tc _TransactionClass) AnimationTimingFunction() MediaTimingFunction { + rv := objc.Call[MediaTimingFunction](tc, objc.Sel("animationTimingFunction")) + return rv } -// Commit all changes made during the current transaction. [Full Topic] +// Returns the timing function used for all animations within this transaction group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448255-commit?language=objc -func Transaction_Commit() { - TransactionClass.Commit() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448269-animationtimingfunction?language=objc +func Transaction_AnimationTimingFunction() MediaTimingFunction { + return TransactionClass.AnimationTimingFunction() } -// Relinquishes a previously acquired transaction lock. [Full Topic] +// Sets the completion block object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448285-unlock?language=objc -func (tc _TransactionClass) Unlock() { - objc.Call[objc.Void](tc, objc.Sel("unlock")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448281-setcompletionblock?language=objc +func (tc _TransactionClass) SetCompletionBlock(block func()) { + objc.Call[objc.Void](tc, objc.Sel("setCompletionBlock:"), block) } -// Relinquishes a previously acquired transaction lock. [Full Topic] +// Sets the completion block object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448285-unlock?language=objc -func Transaction_Unlock() { - TransactionClass.Unlock() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448281-setcompletionblock?language=objc +func Transaction_SetCompletionBlock(block func()) { + TransactionClass.SetCompletionBlock(block) } -// Flushes any extant implicit transaction. [Full Topic] +// Begin a new transaction for the current thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448270-flush?language=objc -func (tc _TransactionClass) Flush() { - objc.Call[objc.Void](tc, objc.Sel("flush")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448282-begin?language=objc +func (tc _TransactionClass) Begin() { + objc.Call[objc.Void](tc, objc.Sel("begin")) } -// Flushes any extant implicit transaction. [Full Topic] +// Begin a new transaction for the current thread. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448270-flush?language=objc -func Transaction_Flush() { - TransactionClass.Flush() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448282-begin?language=objc +func Transaction_Begin() { + TransactionClass.Begin() } -// Returns the completion block object. [Full Topic] +// Attempts to acquire a recursive spin-lock lock, ensuring that returned layer values are valid until unlocked. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448280-completionblock?language=objc -func (tc _TransactionClass) CompletionBlock() func() { - rv := objc.Call[func()](tc, objc.Sel("completionBlock")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448267-lock?language=objc +func (tc _TransactionClass) Lock() { + objc.Call[objc.Void](tc, objc.Sel("lock")) } -// Returns the completion block object. [Full Topic] +// Attempts to acquire a recursive spin-lock lock, ensuring that returned layer values are valid until unlocked. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448280-completionblock?language=objc -func Transaction_CompletionBlock() func() { - return TransactionClass.CompletionBlock() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448267-lock?language=objc +func Transaction_Lock() { + TransactionClass.Lock() } -// Returns the animation duration used by all animations within this transaction group. [Full Topic] +// Returns whether actions triggered as a result of property changes made within this transaction group are suppressed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448263-animationduration?language=objc -func (tc _TransactionClass) AnimationDuration() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](tc, objc.Sel("animationDuration")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448276-disableactions?language=objc +func (tc _TransactionClass) DisableActions() bool { + rv := objc.Call[bool](tc, objc.Sel("disableActions")) return rv } -// Returns the animation duration used by all animations within this transaction group. [Full Topic] +// Returns whether actions triggered as a result of property changes made within this transaction group are suppressed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448263-animationduration?language=objc -func Transaction_AnimationDuration() corefoundation.TimeInterval { - return TransactionClass.AnimationDuration() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448276-disableactions?language=objc +func Transaction_DisableActions() bool { + return TransactionClass.DisableActions() } -// Returns the arbitrary keyed-data specified by the given key. [Full Topic] +// Commit all changes made during the current transaction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448259-valueforkey?language=objc -func (tc _TransactionClass) ValueForKey(key string) objc.Object { - rv := objc.Call[objc.Object](tc, objc.Sel("valueForKey:"), key) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448255-commit?language=objc +func (tc _TransactionClass) Commit() { + objc.Call[objc.Void](tc, objc.Sel("commit")) } -// Returns the arbitrary keyed-data specified by the given key. [Full Topic] +// Commit all changes made during the current transaction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448259-valueforkey?language=objc -func Transaction_ValueForKey(key string) objc.Object { - return TransactionClass.ValueForKey(key) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448255-commit?language=objc +func Transaction_Commit() { + TransactionClass.Commit() } -// Returns the timing function used for all animations within this transaction group. [Full Topic] +// Flushes any extant implicit transaction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448269-animationtimingfunction?language=objc -func (tc _TransactionClass) AnimationTimingFunction() MediaTimingFunction { - rv := objc.Call[MediaTimingFunction](tc, objc.Sel("animationTimingFunction")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448270-flush?language=objc +func (tc _TransactionClass) Flush() { + objc.Call[objc.Void](tc, objc.Sel("flush")) } -// Returns the timing function used for all animations within this transaction group. [Full Topic] +// Flushes any extant implicit transaction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448269-animationtimingfunction?language=objc -func Transaction_AnimationTimingFunction() MediaTimingFunction { - return TransactionClass.AnimationTimingFunction() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448270-flush?language=objc +func Transaction_Flush() { + TransactionClass.Flush() } -// Sets the completion block object. [Full Topic] +// Sets the timing function used for all animations within this transaction group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448281-setcompletionblock?language=objc -func (tc _TransactionClass) SetCompletionBlock(block func()) { - objc.Call[objc.Void](tc, objc.Sel("setCompletionBlock:"), block) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448279-setanimationtimingfunction?language=objc +func (tc _TransactionClass) SetAnimationTimingFunction(function IMediaTimingFunction) { + objc.Call[objc.Void](tc, objc.Sel("setAnimationTimingFunction:"), function) } -// Sets the completion block object. [Full Topic] +// Sets the timing function used for all animations within this transaction group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448281-setcompletionblock?language=objc -func Transaction_SetCompletionBlock(block func()) { - TransactionClass.SetCompletionBlock(block) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448279-setanimationtimingfunction?language=objc +func Transaction_SetAnimationTimingFunction(function IMediaTimingFunction) { + TransactionClass.SetAnimationTimingFunction(function) } -// Attempts to acquire a recursive spin-lock lock, ensuring that returned layer values are valid until unlocked. [Full Topic] +// Sets the animation duration used by all animations within this transaction group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448267-lock?language=objc -func (tc _TransactionClass) Lock() { - objc.Call[objc.Void](tc, objc.Sel("lock")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448283-setanimationduration?language=objc +func (tc _TransactionClass) SetAnimationDuration(dur corefoundation.TimeInterval) { + objc.Call[objc.Void](tc, objc.Sel("setAnimationDuration:"), dur) } -// Attempts to acquire a recursive spin-lock lock, ensuring that returned layer values are valid until unlocked. [Full Topic] +// Sets the animation duration used by all animations within this transaction group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448267-lock?language=objc -func Transaction_Lock() { - TransactionClass.Lock() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448283-setanimationduration?language=objc +func Transaction_SetAnimationDuration(dur corefoundation.TimeInterval) { + TransactionClass.SetAnimationDuration(dur) } // Sets whether actions triggered as a result of property changes made within this transaction group are suppressed. [Full Topic] @@ -212,18 +196,33 @@ func Transaction_SetDisableActions(flag bool) { TransactionClass.SetDisableActions(flag) } -// Sets the animation duration used by all animations within this transaction group. [Full Topic] +// Returns the completion block object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448283-setanimationduration?language=objc -func (tc _TransactionClass) SetAnimationDuration(dur corefoundation.TimeInterval) { - objc.Call[objc.Void](tc, objc.Sel("setAnimationDuration:"), dur) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448280-completionblock?language=objc +func (tc _TransactionClass) CompletionBlock() func() { + rv := objc.Call[func()](tc, objc.Sel("completionBlock")) + return rv } -// Sets the animation duration used by all animations within this transaction group. [Full Topic] +// Returns the completion block object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448283-setanimationduration?language=objc -func Transaction_SetAnimationDuration(dur corefoundation.TimeInterval) { - TransactionClass.SetAnimationDuration(dur) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448280-completionblock?language=objc +func Transaction_CompletionBlock() func() { + return TransactionClass.CompletionBlock() +} + +// Relinquishes a previously acquired transaction lock. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448285-unlock?language=objc +func (tc _TransactionClass) Unlock() { + objc.Call[objc.Void](tc, objc.Sel("unlock")) +} + +// Relinquishes a previously acquired transaction lock. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448285-unlock?language=objc +func Transaction_Unlock() { + TransactionClass.Unlock() } // Sets the arbitrary keyed-data for the specified key. [Full Topic] @@ -240,31 +239,32 @@ func Transaction_SetValueForKey(anObject objc.IObject, key string) { TransactionClass.SetValueForKey(anObject, key) } -// Returns whether actions triggered as a result of property changes made within this transaction group are suppressed. [Full Topic] +// Returns the animation duration used by all animations within this transaction group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448276-disableactions?language=objc -func (tc _TransactionClass) DisableActions() bool { - rv := objc.Call[bool](tc, objc.Sel("disableActions")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448263-animationduration?language=objc +func (tc _TransactionClass) AnimationDuration() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](tc, objc.Sel("animationDuration")) return rv } -// Returns whether actions triggered as a result of property changes made within this transaction group are suppressed. [Full Topic] +// Returns the animation duration used by all animations within this transaction group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448276-disableactions?language=objc -func Transaction_DisableActions() bool { - return TransactionClass.DisableActions() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448263-animationduration?language=objc +func Transaction_AnimationDuration() corefoundation.TimeInterval { + return TransactionClass.AnimationDuration() } -// Begin a new transaction for the current thread. [Full Topic] +// Returns the arbitrary keyed-data specified by the given key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448282-begin?language=objc -func (tc _TransactionClass) Begin() { - objc.Call[objc.Void](tc, objc.Sel("begin")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448259-valueforkey?language=objc +func (tc _TransactionClass) ValueForKey(key string) objc.Object { + rv := objc.Call[objc.Object](tc, objc.Sel("valueForKey:"), key) + return rv } -// Begin a new transaction for the current thread. [Full Topic] +// Returns the arbitrary keyed-data specified by the given key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448282-begin?language=objc -func Transaction_Begin() { - TransactionClass.Begin() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448259-valueforkey?language=objc +func Transaction_ValueForKey(key string) objc.Object { + return TransactionClass.ValueForKey(key) } diff --git a/macos/quartzcore/transform_layer.gen.go b/macos/quartzcore/transform_layer.gen.go index effd169d..ceaf0aa3 100644 --- a/macos/quartzcore/transform_layer.gen.go +++ b/macos/quartzcore/transform_layer.gen.go @@ -53,56 +53,56 @@ func (t_ TransformLayer) Init() TransformLayer { return rv } -func (t_ TransformLayer) ModelLayer() TransformLayer { - rv := objc.Call[TransformLayer](t_, objc.Sel("modelLayer")) +func (tc _TransformLayerClass) Layer() TransformLayer { + rv := objc.Call[TransformLayer](tc, objc.Sel("layer")) return rv } -// Returns the model layer object associated with the receiver, if any. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc -func TransformLayer_ModelLayer() TransformLayer { - instance := TransformLayerClass.Alloc().ModelLayer() - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func TransformLayer_Layer() TransformLayer { + return TransformLayerClass.Layer() } -func (t_ TransformLayer) PresentationLayer() TransformLayer { - rv := objc.Call[TransformLayer](t_, objc.Sel("presentationLayer")) +func (t_ TransformLayer) InitWithLayer(layer objc.IObject) TransformLayer { + rv := objc.Call[TransformLayer](t_, objc.Sel("initWithLayer:"), layer) return rv } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] +// Override to copy or initialize custom fields of the specified layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc -func TransformLayer_PresentationLayer() TransformLayer { - instance := TransformLayerClass.Alloc().PresentationLayer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc +func NewTransformLayerWithLayer(layer objc.IObject) TransformLayer { + instance := TransformLayerClass.Alloc().InitWithLayer(layer) instance.Autorelease() return instance } -func (t_ TransformLayer) InitWithLayer(layer objc.IObject) TransformLayer { - rv := objc.Call[TransformLayer](t_, objc.Sel("initWithLayer:"), layer) +func (t_ TransformLayer) ModelLayer() TransformLayer { + rv := objc.Call[TransformLayer](t_, objc.Sel("modelLayer")) return rv } -// Override to copy or initialize custom fields of the specified layer. [Full Topic] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc -func NewTransformLayerWithLayer(layer objc.IObject) TransformLayer { - instance := TransformLayerClass.Alloc().InitWithLayer(layer) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc +func TransformLayer_ModelLayer() TransformLayer { + instance := TransformLayerClass.Alloc().ModelLayer() instance.Autorelease() return instance } -func (tc _TransformLayerClass) Layer() TransformLayer { - rv := objc.Call[TransformLayer](tc, objc.Sel("layer")) +func (t_ TransformLayer) PresentationLayer() TransformLayer { + rv := objc.Call[TransformLayer](t_, objc.Sel("presentationLayer")) return rv } -// Creates and returns an instance of the layer object. [Full Topic] +// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func TransformLayer_Layer() TransformLayer { - return TransformLayerClass.Layer() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc +func TransformLayer_PresentationLayer() TransformLayer { + instance := TransformLayerClass.Alloc().PresentationLayer() + instance.Autorelease() + return instance } diff --git a/macos/quartzcore/transition.gen.go b/macos/quartzcore/transition.gen.go index 656e2cd2..e747faa0 100644 --- a/macos/quartzcore/transition.gen.go +++ b/macos/quartzcore/transition.gen.go @@ -18,16 +18,16 @@ type _TransitionClass struct { // An interface definition for the [Transition] class. type ITransition interface { IAnimation - StartProgress() float32 - SetStartProgress(value float32) + Filter() objc.Object + SetFilter(value objc.IObject) EndProgress() float32 SetEndProgress(value float32) Subtype() TransitionSubtype SetSubtype(value TransitionSubtype) - Filter() objc.Object - SetFilter(value objc.IObject) Type() TransitionType SetType(value TransitionType) + StartProgress() float32 + SetStartProgress(value float32) } // An object that provides an animated transition between a layer's states. [Full Topic] @@ -75,19 +75,19 @@ func Transition_Animation() Transition { return TransitionClass.Animation() } -// Indicates the start point of the receiver as a fraction of the entire transition. [Full Topic] +// An optional Core Image filter object that provides the transition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412511-startprogress?language=objc -func (t_ Transition) StartProgress() float32 { - rv := objc.Call[float32](t_, objc.Sel("startProgress")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412506-filter?language=objc +func (t_ Transition) Filter() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("filter")) return rv } -// Indicates the start point of the receiver as a fraction of the entire transition. [Full Topic] +// An optional Core Image filter object that provides the transition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412511-startprogress?language=objc -func (t_ Transition) SetStartProgress(value float32) { - objc.Call[objc.Void](t_, objc.Sel("setStartProgress:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412506-filter?language=objc +func (t_ Transition) SetFilter(value objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setFilter:"), value) } // Indicates the end point of the receiver as a fraction of the entire transition. [Full Topic] @@ -120,21 +120,6 @@ func (t_ Transition) SetSubtype(value TransitionSubtype) { objc.Call[objc.Void](t_, objc.Sel("setSubtype:"), value) } -// An optional Core Image filter object that provides the transition. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412506-filter?language=objc -func (t_ Transition) Filter() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("filter")) - return rv -} - -// An optional Core Image filter object that provides the transition. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412506-filter?language=objc -func (t_ Transition) SetFilter(value objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setFilter:"), value) -} - // Specifies the predefined transition type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412502-type?language=objc @@ -149,3 +134,18 @@ func (t_ Transition) Type() TransitionType { func (t_ Transition) SetType(value TransitionType) { objc.Call[objc.Void](t_, objc.Sel("setType:"), value) } + +// Indicates the start point of the receiver as a fraction of the entire transition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412511-startprogress?language=objc +func (t_ Transition) StartProgress() float32 { + rv := objc.Call[float32](t_, objc.Sel("startProgress")) + return rv +} + +// Indicates the start point of the receiver as a fraction of the entire transition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412511-startprogress?language=objc +func (t_ Transition) SetStartProgress(value float32) { + objc.Call[objc.Void](t_, objc.Sel("setStartProgress:"), value) +} diff --git a/macos/uti/type.gen.go b/macos/uti/type.gen.go index 13a30dcd..ff45e35c 100644 --- a/macos/uti/type.gen.go +++ b/macos/uti/type.gen.go @@ -19,20 +19,20 @@ type _TypeClass struct { // An interface definition for the [Type] class. type IType interface { objc.IObject + IsSupertypeOfType(type_ IType) bool ConformsToType(type_ IType) bool IsSubtypeOfType(type_ IType) bool - IsSupertypeOfType(type_ IType) bool - Identifier() string - IsPublicType() bool - Supertypes() foundation.Set + LocalizedDescription() string Version() foundation.Number - ReferenceURL() foundation.URL - Tags() map[string][]string PreferredFilenameExtension() string - PreferredMIMEType() string + Supertypes() foundation.Set IsDynamic() bool - LocalizedDescription() string + IsPublicType() bool + ReferenceURL() foundation.URL + PreferredMIMEType() string IsDeclared() bool + Tags() map[string][]string + Identifier() string } // An object that represents a type of data to load, send, or receive. [Full Topic] @@ -48,18 +48,6 @@ func TypeFrom(ptr unsafe.Pointer) Type { } } -func (tc _TypeClass) TypeWithIdentifier(identifier string) Type { - rv := objc.Call[Type](tc, objc.Sel("typeWithIdentifier:"), identifier) - return rv -} - -// Creates a type based on an identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548218-typewithidentifier?language=objc -func Type_TypeWithIdentifier(identifier string) Type { - return TypeClass.TypeWithIdentifier(identifier) -} - func (tc _TypeClass) TypeWithMIMEType(mimeType string) Type { rv := objc.Call[Type](tc, objc.Sel("typeWithMIMEType:"), mimeType) return rv @@ -72,52 +60,40 @@ func Type_TypeWithMIMEType(mimeType string) Type { return TypeClass.TypeWithMIMEType(mimeType) } -func (tc _TypeClass) TypeWithTagTagClassConformingToType(tag string, tagClass string, supertype IType) Type { - rv := objc.Call[Type](tc, objc.Sel("typeWithTag:tagClass:conformingToType:"), tag, tagClass, supertype) - return rv -} - -// Creates a type that represents the specified tag and tag class and which conforms to an existing type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548221-typewithtag?language=objc -func Type_TypeWithTagTagClassConformingToType(tag string, tagClass string, supertype IType) Type { - return TypeClass.TypeWithTagTagClassConformingToType(tag, tagClass, supertype) -} - -func (tc _TypeClass) TypeWithMIMETypeConformingToType(mimeType string, supertype IType) Type { - rv := objc.Call[Type](tc, objc.Sel("typeWithMIMEType:conformingToType:"), mimeType, supertype) +func (tc _TypeClass) TypeWithFilenameExtension(filenameExtension string) Type { + rv := objc.Call[Type](tc, objc.Sel("typeWithFilenameExtension:"), filenameExtension) return rv } -// Creates a type based on a MIME type and a supertype that it conforms to. [Full Topic] +// Creates a type that represents the specified filename extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548220-typewithmimetype?language=objc -func Type_TypeWithMIMETypeConformingToType(mimeType string, supertype IType) Type { - return TypeClass.TypeWithMIMETypeConformingToType(mimeType, supertype) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548216-typewithfilenameextension?language=objc +func Type_TypeWithFilenameExtension(filenameExtension string) Type { + return TypeClass.TypeWithFilenameExtension(filenameExtension) } -func (tc _TypeClass) TypeWithFilenameExtensionConformingToType(filenameExtension string, supertype IType) Type { - rv := objc.Call[Type](tc, objc.Sel("typeWithFilenameExtension:conformingToType:"), filenameExtension, supertype) +func (tc _TypeClass) TypeWithTagTagClassConformingToType(tag string, tagClass string, supertype IType) Type { + rv := objc.Call[Type](tc, objc.Sel("typeWithTag:tagClass:conformingToType:"), tag, tagClass, supertype) return rv } -// Creates a type that represents the specified filename extension and conforms to an existing type. [Full Topic] +// Creates a type that represents the specified tag and tag class and which conforms to an existing type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548217-typewithfilenameextension?language=objc -func Type_TypeWithFilenameExtensionConformingToType(filenameExtension string, supertype IType) Type { - return TypeClass.TypeWithFilenameExtensionConformingToType(filenameExtension, supertype) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548221-typewithtag?language=objc +func Type_TypeWithTagTagClassConformingToType(tag string, tagClass string, supertype IType) Type { + return TypeClass.TypeWithTagTagClassConformingToType(tag, tagClass, supertype) } -func (tc _TypeClass) TypeWithFilenameExtension(filenameExtension string) Type { - rv := objc.Call[Type](tc, objc.Sel("typeWithFilenameExtension:"), filenameExtension) +func (tc _TypeClass) TypeWithIdentifier(identifier string) Type { + rv := objc.Call[Type](tc, objc.Sel("typeWithIdentifier:"), identifier) return rv } -// Creates a type that represents the specified filename extension. [Full Topic] +// Creates a type based on an identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548216-typewithfilenameextension?language=objc -func Type_TypeWithFilenameExtension(filenameExtension string) Type { - return TypeClass.TypeWithFilenameExtension(filenameExtension) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548218-typewithidentifier?language=objc +func Type_TypeWithIdentifier(identifier string) Type { + return TypeClass.TypeWithIdentifier(identifier) } func (tc _TypeClass) Alloc() Type { @@ -140,6 +116,29 @@ func (t_ Type) Init() Type { return rv } +// Returns a Boolean value that indicates whether a type is lower in a hierarchy than the type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548208-issupertypeoftype?language=objc +func (t_ Type) IsSupertypeOfType(type_ IType) bool { + rv := objc.Call[bool](t_, objc.Sel("isSupertypeOfType:"), type_) + return rv +} + +// Creates a type your app uses, but doesn’t own, based on an identifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3600610-importedtypewithidentifier?language=objc +func (tc _TypeClass) ImportedTypeWithIdentifier(identifier string) Type { + rv := objc.Call[Type](tc, objc.Sel("importedTypeWithIdentifier:"), identifier) + return rv +} + +// Creates a type your app uses, but doesn’t own, based on an identifier. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3600610-importedtypewithidentifier?language=objc +func Type_ImportedTypeWithIdentifier(identifier string) Type { + return TypeClass.ImportedTypeWithIdentifier(identifier) +} + // Creates a type your app owns based on an identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3600608-exportedtypewithidentifier?language=objc @@ -163,51 +162,6 @@ func (t_ Type) ConformsToType(type_ IType) bool { return rv } -// Creates a type your app uses, but doesn’t own, based on an identifier and a supertype that it conforms to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3600611-importedtypewithidentifier?language=objc -func (tc _TypeClass) ImportedTypeWithIdentifierConformingToType(identifier string, parentType IType) Type { - rv := objc.Call[Type](tc, objc.Sel("importedTypeWithIdentifier:conformingToType:"), identifier, parentType) - return rv -} - -// Creates a type your app uses, but doesn’t own, based on an identifier and a supertype that it conforms to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3600611-importedtypewithidentifier?language=objc -func Type_ImportedTypeWithIdentifierConformingToType(identifier string, parentType IType) Type { - return TypeClass.ImportedTypeWithIdentifierConformingToType(identifier, parentType) -} - -// Creates a type your app owns based on an identifier and a supertype that it conforms to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3600609-exportedtypewithidentifier?language=objc -func (tc _TypeClass) ExportedTypeWithIdentifierConformingToType(identifier string, parentType IType) Type { - rv := objc.Call[Type](tc, objc.Sel("exportedTypeWithIdentifier:conformingToType:"), identifier, parentType) - return rv -} - -// Creates a type your app owns based on an identifier and a supertype that it conforms to. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3600609-exportedtypewithidentifier?language=objc -func Type_ExportedTypeWithIdentifierConformingToType(identifier string, parentType IType) Type { - return TypeClass.ExportedTypeWithIdentifierConformingToType(identifier, parentType) -} - -// Creates a type your app uses, but doesn’t own, based on an identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3600610-importedtypewithidentifier?language=objc -func (tc _TypeClass) ImportedTypeWithIdentifier(identifier string) Type { - rv := objc.Call[Type](tc, objc.Sel("importedTypeWithIdentifier:"), identifier) - return rv -} - -// Creates a type your app uses, but doesn’t own, based on an identifier. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3600610-importedtypewithidentifier?language=objc -func Type_ImportedTypeWithIdentifier(identifier string) Type { - return TypeClass.ImportedTypeWithIdentifier(identifier) -} - // Returns a Boolean value that indicates whether a type is higher in a hierarchy than the type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548207-issubtypeoftype?language=objc @@ -216,14 +170,6 @@ func (t_ Type) IsSubtypeOfType(type_ IType) bool { return rv } -// Returns a Boolean value that indicates whether a type is lower in a hierarchy than the type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548208-issupertypeoftype?language=objc -func (t_ Type) IsSupertypeOfType(type_ IType) bool { - rv := objc.Call[bool](t_, objc.Sel("isSupertypeOfType:"), type_) - return rv -} - // Returns an array of types from the provided tag and tag class. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548222-typeswithtag?language=objc @@ -239,59 +185,59 @@ func Type_TypesWithTagTagClassConformingToType(tag string, tagClass string, supe return TypeClass.TypesWithTagTagClassConformingToType(tag, tagClass, supertype) } -// The string that represents the type. [Full Topic] +// A localized description of the type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548206-identifier?language=objc -func (t_ Type) Identifier() string { - rv := objc.Call[string](t_, objc.Sel("identifier")) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548209-localizeddescription?language=objc +func (t_ Type) LocalizedDescription() string { + rv := objc.Call[string](t_, objc.Sel("localizedDescription")) return rv } -// A Boolean value that indicates whether the type is in the public domain. [Full Topic] +// The type’s version, if available. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548212-publictype?language=objc -func (t_ Type) IsPublicType() bool { - rv := objc.Call[bool](t_, objc.Sel("isPublicType")) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548223-version?language=objc +func (t_ Type) Version() foundation.Number { + rv := objc.Call[foundation.Number](t_, objc.Sel("version")) return rv } -// The set of types the type directly or indirectly conforms to. [Full Topic] +// The preferred filename extension for the type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548214-supertypes?language=objc -func (t_ Type) Supertypes() foundation.Set { - rv := objc.Call[foundation.Set](t_, objc.Sel("supertypes")) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548210-preferredfilenameextension?language=objc +func (t_ Type) PreferredFilenameExtension() string { + rv := objc.Call[string](t_, objc.Sel("preferredFilenameExtension")) return rv } -// The type’s version, if available. [Full Topic] +// The set of types the type directly or indirectly conforms to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548223-version?language=objc -func (t_ Type) Version() foundation.Number { - rv := objc.Call[foundation.Number](t_, objc.Sel("version")) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548214-supertypes?language=objc +func (t_ Type) Supertypes() foundation.Set { + rv := objc.Call[foundation.Set](t_, objc.Sel("supertypes")) return rv } -// The reference URL for the type. [Full Topic] +// A Boolean value that indicates whether the system generates the type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548213-referenceurl?language=objc -func (t_ Type) ReferenceURL() foundation.URL { - rv := objc.Call[foundation.URL](t_, objc.Sel("referenceURL")) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548205-dynamic?language=objc +func (t_ Type) IsDynamic() bool { + rv := objc.Call[bool](t_, objc.Sel("isDynamic")) return rv } -// The tag specification dictionary of the type. [Full Topic] +// A Boolean value that indicates whether the type is in the public domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548215-tags?language=objc -func (t_ Type) Tags() map[string][]string { - rv := objc.Call[map[string][]string](t_, objc.Sel("tags")) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548212-publictype?language=objc +func (t_ Type) IsPublicType() bool { + rv := objc.Call[bool](t_, objc.Sel("isPublicType")) return rv } -// The preferred filename extension for the type. [Full Topic] +// The reference URL for the type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548210-preferredfilenameextension?language=objc -func (t_ Type) PreferredFilenameExtension() string { - rv := objc.Call[string](t_, objc.Sel("preferredFilenameExtension")) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548213-referenceurl?language=objc +func (t_ Type) ReferenceURL() foundation.URL { + rv := objc.Call[foundation.URL](t_, objc.Sel("referenceURL")) return rv } @@ -303,26 +249,26 @@ func (t_ Type) PreferredMIMEType() string { return rv } -// A Boolean value that indicates whether the system generates the type. [Full Topic] +// A Boolean value that indicates whether the system declares the type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548205-dynamic?language=objc -func (t_ Type) IsDynamic() bool { - rv := objc.Call[bool](t_, objc.Sel("isDynamic")) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548204-declared?language=objc +func (t_ Type) IsDeclared() bool { + rv := objc.Call[bool](t_, objc.Sel("isDeclared")) return rv } -// A localized description of the type. [Full Topic] +// The tag specification dictionary of the type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548209-localizeddescription?language=objc -func (t_ Type) LocalizedDescription() string { - rv := objc.Call[string](t_, objc.Sel("localizedDescription")) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548215-tags?language=objc +func (t_ Type) Tags() map[string][]string { + rv := objc.Call[map[string][]string](t_, objc.Sel("tags")) return rv } -// A Boolean value that indicates whether the system declares the type. [Full Topic] +// The string that represents the type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548204-declared?language=objc -func (t_ Type) IsDeclared() bool { - rv := objc.Call[bool](t_, objc.Sel("isDeclared")) +// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548206-identifier?language=objc +func (t_ Type) Identifier() string { + rv := objc.Call[string](t_, objc.Sel("identifier")) return rv } diff --git a/macos/vision/barcode_observation.gen.go b/macos/vision/barcode_observation.gen.go index 60751033..57636034 100644 --- a/macos/vision/barcode_observation.gen.go +++ b/macos/vision/barcode_observation.gen.go @@ -20,9 +20,9 @@ type _BarcodeObservationClass struct { // An interface definition for the [BarcodeObservation] class. type IBarcodeObservation interface { IRectangleObservation - Symbology() BarcodeSymbology - BarcodeDescriptor() coreimage.BarcodeDescriptor PayloadStringValue() string + BarcodeDescriptor() coreimage.BarcodeDescriptor + Symbology() BarcodeSymbology } // An object that represents barcode information that an image analysis request detects. [Full Topic] @@ -82,11 +82,11 @@ func BarcodeObservation_ObservationWithRequestRevisionBoundingBox(requestRevisio return BarcodeObservationClass.ObservationWithRequestRevisionBoundingBox(requestRevision, boundingBox) } -// The symbology of the observed barcode. [Full Topic] +// A string value that represents the barcode payload. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnbarcodeobservation/2869611-symbology?language=objc -func (b_ BarcodeObservation) Symbology() BarcodeSymbology { - rv := objc.Call[BarcodeSymbology](b_, objc.Sel("symbology")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnbarcodeobservation/2923485-payloadstringvalue?language=objc +func (b_ BarcodeObservation) PayloadStringValue() string { + rv := objc.Call[string](b_, objc.Sel("payloadStringValue")) return rv } @@ -98,10 +98,10 @@ func (b_ BarcodeObservation) BarcodeDescriptor() coreimage.BarcodeDescriptor { return rv } -// A string value that represents the barcode payload. [Full Topic] +// The symbology of the observed barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnbarcodeobservation/2923485-payloadstringvalue?language=objc -func (b_ BarcodeObservation) PayloadStringValue() string { - rv := objc.Call[string](b_, objc.Sel("payloadStringValue")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnbarcodeobservation/2869611-symbology?language=objc +func (b_ BarcodeObservation) Symbology() BarcodeSymbology { + rv := objc.Call[BarcodeSymbology](b_, objc.Sel("symbology")) return rv } diff --git a/macos/vision/circle.gen.go b/macos/vision/circle.gen.go index f5e3fcec..a1ada24f 100644 --- a/macos/vision/circle.gen.go +++ b/macos/vision/circle.gen.go @@ -18,10 +18,9 @@ type _CircleClass struct { // An interface definition for the [Circle] class. type ICircle interface { objc.IObject - ContainsPointInCircumferentialRingOfWidth(point IPoint, ringWidth float64) bool ContainsPoint(point IPoint) bool - Diameter() float64 Radius() float64 + Diameter() float64 Center() Point } @@ -52,20 +51,6 @@ func NewCircleWithCenterRadius(center IPoint, radius float64) Circle { return instance } -func (c_ Circle) InitWithCenterDiameter(center IPoint, diameter float64) Circle { - rv := objc.Call[Circle](c_, objc.Sel("initWithCenter:diameter:"), center, diameter) - return rv -} - -// Creates a circle with the specified center and diameter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncircle/3548316-initwithcenter?language=objc -func NewCircleWithCenterDiameter(center IPoint, diameter float64) Circle { - instance := CircleClass.Alloc().InitWithCenterDiameter(center, diameter) - instance.Autorelease() - return instance -} - func (cc _CircleClass) Alloc() Circle { rv := objc.Call[Circle](cc, objc.Sel("alloc")) return rv @@ -86,14 +71,6 @@ func (c_ Circle) Init() Circle { return rv } -// Determines if a ring around this circle’s circumference contains the specified point. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncircle/3548314-containspoint?language=objc -func (c_ Circle) ContainsPointInCircumferentialRingOfWidth(point IPoint, ringWidth float64) bool { - rv := objc.Call[bool](c_, objc.Sel("containsPoint:inCircumferentialRingOfWidth:"), point, ringWidth) - return rv -} - // Determines if this circle, including its boundary, contains the specified point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vncircle/3548313-containspoint?language=objc @@ -102,6 +79,14 @@ func (c_ Circle) ContainsPoint(point IPoint) bool { return rv } +// The circle’s radius. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vncircle/3548318-radius?language=objc +func (c_ Circle) Radius() float64 { + rv := objc.Call[float64](c_, objc.Sel("radius")) + return rv +} + // The circle’s diameter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vncircle/3548315-diameter?language=objc @@ -125,14 +110,6 @@ func Circle_ZeroCircle() Circle { return CircleClass.ZeroCircle() } -// The circle’s radius. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncircle/3548318-radius?language=objc -func (c_ Circle) Radius() float64 { - rv := objc.Call[float64](c_, objc.Sel("radius")) - return rv -} - // The circle’s center point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vncircle/3548312-center?language=objc diff --git a/macos/vision/classification_observation.gen.go b/macos/vision/classification_observation.gen.go index e117d319..d48322f7 100644 --- a/macos/vision/classification_observation.gen.go +++ b/macos/vision/classification_observation.gen.go @@ -20,8 +20,8 @@ type IClassificationObservation interface { IObservation HasMinimumRecallForPrecision(minimumRecall float32, precision float32) bool HasMinimumPrecisionForRecall(minimumPrecision float32, recall float32) bool - Identifier() string HasPrecisionRecallCurve() bool + Identifier() string } // An object that represents classification information that an image analysis request produces. [Full Topic] @@ -73,14 +73,6 @@ func (c_ ClassificationObservation) HasMinimumPrecisionForRecall(minimumPrecisio return rv } -// Classification label identifying the type of observation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnclassificationobservation/2867259-identifier?language=objc -func (c_ ClassificationObservation) Identifier() string { - rv := objc.Call[string](c_, objc.Sel("identifier")) - return rv -} - // A Boolean variable indicating whether the observation contains precision and recall curves. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnclassificationobservation/3152626-hasprecisionrecallcurve?language=objc @@ -88,3 +80,11 @@ func (c_ ClassificationObservation) HasPrecisionRecallCurve() bool { rv := objc.Call[bool](c_, objc.Sel("hasPrecisionRecallCurve")) return rv } + +// Classification label identifying the type of observation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnclassificationobservation/2867259-identifier?language=objc +func (c_ ClassificationObservation) Identifier() string { + rv := objc.Call[string](c_, objc.Sel("identifier")) + return rv +} diff --git a/macos/vision/contour.gen.go b/macos/vision/contour.gen.go index b6a06574..7ef9adf4 100644 --- a/macos/vision/contour.gen.go +++ b/macos/vision/contour.gen.go @@ -21,12 +21,12 @@ type IContour interface { objc.IObject PolygonApproximationWithEpsilonError(epsilon float32, error unsafe.Pointer) Contour ChildContourAtIndexError(childContourIndex uint, error unsafe.Pointer) Contour - NormalizedPoints() objc.Object - AspectRatio() float32 - IndexPath() foundation.IndexPath ChildContours() []Contour + NormalizedPoints() objc.Object PointCount() int NormalizedPath() unsafe.Pointer + IndexPath() foundation.IndexPath + AspectRatio() float32 ChildContourCount() int } @@ -79,30 +79,6 @@ func (c_ Contour) ChildContourAtIndexError(childContourIndex uint, error unsafe. return rv } -// The contour’s array of points in normalized coordinates. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548326-normalizedpoints?language=objc -func (c_ Contour) NormalizedPoints() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("normalizedPoints")) - return rv -} - -// The aspect ratio of the contour. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3600614-aspectratio?language=objc -func (c_ Contour) AspectRatio() float32 { - rv := objc.Call[float32](c_, objc.Sel("aspectRatio")) - return rv -} - -// The contour object’s index path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548324-indexpath?language=objc -func (c_ Contour) IndexPath() foundation.IndexPath { - rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPath")) - return rv -} - // An array of contours that this contour encloses. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548323-childcontours?language=objc @@ -111,6 +87,14 @@ func (c_ Contour) ChildContours() []Contour { return rv } +// The contour’s array of points in normalized coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548326-normalizedpoints?language=objc +func (c_ Contour) NormalizedPoints() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("normalizedPoints")) + return rv +} + // The contour’s number of points. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548327-pointcount?language=objc @@ -127,6 +111,22 @@ func (c_ Contour) NormalizedPath() unsafe.Pointer { return rv } +// The contour object’s index path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548324-indexpath?language=objc +func (c_ Contour) IndexPath() foundation.IndexPath { + rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPath")) + return rv +} + +// The aspect ratio of the contour. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3600614-aspectratio?language=objc +func (c_ Contour) AspectRatio() float32 { + rv := objc.Call[float32](c_, objc.Sel("aspectRatio")) + return rv +} + // The total number of detected child contours. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548322-childcontourcount?language=objc diff --git a/macos/vision/contours_observation.gen.go b/macos/vision/contours_observation.gen.go index b8507ae0..858e92a2 100644 --- a/macos/vision/contours_observation.gen.go +++ b/macos/vision/contours_observation.gen.go @@ -21,10 +21,10 @@ type IContoursObservation interface { IObservation ContourAtIndexError(contourIndex int, error unsafe.Pointer) Contour ContourAtIndexPathError(indexPath foundation.IIndexPath, error unsafe.Pointer) Contour - TopLevelContours() []Contour ContourCount() int - TopLevelContourCount() int + TopLevelContours() []Contour NormalizedPath() unsafe.Pointer + TopLevelContourCount() int } // An object that represents the detected contours in an image. [Full Topic] @@ -76,14 +76,6 @@ func (c_ ContoursObservation) ContourAtIndexPathError(indexPath foundation.IInde return rv } -// An array of contours that don’t have another contour enclosing them. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548364-toplevelcontours?language=objc -func (c_ ContoursObservation) TopLevelContours() []Contour { - rv := objc.Call[[]Contour](c_, objc.Sel("topLevelContours")) - return rv -} - // The total number of detected contours. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548362-contourcount?language=objc @@ -92,11 +84,11 @@ func (c_ ContoursObservation) ContourCount() int { return rv } -// The total number of detected top-level contours. [Full Topic] +// An array of contours that don’t have another contour enclosing them. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3675675-toplevelcontourcount?language=objc -func (c_ ContoursObservation) TopLevelContourCount() int { - rv := objc.Call[int](c_, objc.Sel("topLevelContourCount")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548364-toplevelcontours?language=objc +func (c_ ContoursObservation) TopLevelContours() []Contour { + rv := objc.Call[[]Contour](c_, objc.Sel("topLevelContours")) return rv } @@ -107,3 +99,11 @@ func (c_ ContoursObservation) NormalizedPath() unsafe.Pointer { rv := objc.Call[unsafe.Pointer](c_, objc.Sel("normalizedPath")) return rv } + +// The total number of detected top-level contours. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3675675-toplevelcontourcount?language=objc +func (c_ ContoursObservation) TopLevelContourCount() int { + rv := objc.Call[int](c_, objc.Sel("topLevelContourCount")) + return rv +} diff --git a/macos/vision/core_ml_request.gen.go b/macos/vision/core_ml_request.gen.go index cc334a5c..18c4870e 100644 --- a/macos/vision/core_ml_request.gen.go +++ b/macos/vision/core_ml_request.gen.go @@ -18,9 +18,9 @@ type _CoreMLRequestClass struct { // An interface definition for the [CoreMLRequest] class. type ICoreMLRequest interface { IImageBasedRequest + Model() CoreMLModel ImageCropAndScaleOption() ImageCropAndScaleOption SetImageCropAndScaleOption(value ImageCropAndScaleOption) - Model() CoreMLModel } // An image analysis request that uses a Core ML model to process images. [Full Topic] @@ -36,20 +36,6 @@ func CoreMLRequestFrom(ptr unsafe.Pointer) CoreMLRequest { } } -func (c_ CoreMLRequest) InitWithModelCompletionHandler(model ICoreMLModel, completionHandler RequestCompletionHandler) CoreMLRequest { - rv := objc.Call[CoreMLRequest](c_, objc.Sel("initWithModel:completionHandler:"), model, completionHandler) - return rv -} - -// Creates a model container to use with an image analysis request based on the model you provide, with an optional completion handler. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncoremlrequest/2890152-initwithmodel?language=objc -func NewCoreMLRequestWithModelCompletionHandler(model ICoreMLModel, completionHandler RequestCompletionHandler) CoreMLRequest { - instance := CoreMLRequestClass.Alloc().InitWithModelCompletionHandler(model, completionHandler) - instance.Autorelease() - return instance -} - func (c_ CoreMLRequest) InitWithModel(model ICoreMLModel) CoreMLRequest { rv := objc.Call[CoreMLRequest](c_, objc.Sel("initWithModel:"), model) return rv @@ -98,6 +84,14 @@ func NewCoreMLRequestWithCompletionHandler(completionHandler RequestCompletionHa return instance } +// The model to base the image analysis request on. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vncoremlrequest/2890150-model?language=objc +func (c_ CoreMLRequest) Model() CoreMLModel { + rv := objc.Call[CoreMLModel](c_, objc.Sel("model")) + return rv +} + // An optional setting that tells the Vision algorithm how to scale an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vncoremlrequest/2890144-imagecropandscaleoption?language=objc @@ -112,11 +106,3 @@ func (c_ CoreMLRequest) ImageCropAndScaleOption() ImageCropAndScaleOption { func (c_ CoreMLRequest) SetImageCropAndScaleOption(value ImageCropAndScaleOption) { objc.Call[objc.Void](c_, objc.Sel("setImageCropAndScaleOption:"), value) } - -// The model to base the image analysis request on. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncoremlrequest/2890150-model?language=objc -func (c_ CoreMLRequest) Model() CoreMLModel { - rv := objc.Call[CoreMLModel](c_, objc.Sel("model")) - return rv -} diff --git a/macos/vision/detect_contours_request.gen.go b/macos/vision/detect_contours_request.gen.go index ac4f99c8..cb8373be 100644 --- a/macos/vision/detect_contours_request.gen.go +++ b/macos/vision/detect_contours_request.gen.go @@ -19,14 +19,14 @@ type _DetectContoursRequestClass struct { // An interface definition for the [DetectContoursRequest] class. type IDetectContoursRequest interface { IImageBasedRequest - ContrastAdjustment() float32 - SetContrastAdjustment(value float32) + ContrastPivot() foundation.Number + SetContrastPivot(value foundation.INumber) DetectsDarkOnLight() bool SetDetectsDarkOnLight(value bool) + ContrastAdjustment() float32 + SetContrastAdjustment(value float32) MaximumImageDimension() uint SetMaximumImageDimension(value uint) - ContrastPivot() foundation.Number - SetContrastPivot(value foundation.INumber) } // A request that detects the contours of the edges of an image. [Full Topic] @@ -76,19 +76,19 @@ func NewDetectContoursRequestWithCompletionHandler(completionHandler RequestComp return instance } -// The amount by which to adjust the image contrast. [Full Topic] +// The pixel value to use as a pivot for the contrast. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3548236-contrastadjustment?language=objc -func (d_ DetectContoursRequest) ContrastAdjustment() float32 { - rv := objc.Call[float32](d_, objc.Sel("contrastAdjustment")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3750961-contrastpivot?language=objc +func (d_ DetectContoursRequest) ContrastPivot() foundation.Number { + rv := objc.Call[foundation.Number](d_, objc.Sel("contrastPivot")) return rv } -// The amount by which to adjust the image contrast. [Full Topic] +// The pixel value to use as a pivot for the contrast. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3548236-contrastadjustment?language=objc -func (d_ DetectContoursRequest) SetContrastAdjustment(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setContrastAdjustment:"), value) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3750961-contrastpivot?language=objc +func (d_ DetectContoursRequest) SetContrastPivot(value foundation.INumber) { + objc.Call[objc.Void](d_, objc.Sel("setContrastPivot:"), value) } // A Boolean value that indicates whether the request detects a dark object on a light background to aid in detection. [Full Topic] @@ -106,6 +106,21 @@ func (d_ DetectContoursRequest) SetDetectsDarkOnLight(value bool) { objc.Call[objc.Void](d_, objc.Sel("setDetectsDarkOnLight:"), value) } +// The amount by which to adjust the image contrast. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3548236-contrastadjustment?language=objc +func (d_ DetectContoursRequest) ContrastAdjustment() float32 { + rv := objc.Call[float32](d_, objc.Sel("contrastAdjustment")) + return rv +} + +// The amount by which to adjust the image contrast. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3548236-contrastadjustment?language=objc +func (d_ DetectContoursRequest) SetContrastAdjustment(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setContrastAdjustment:"), value) +} + // The maximum image dimension to use for contour detection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3548238-maximumimagedimension?language=objc @@ -120,18 +135,3 @@ func (d_ DetectContoursRequest) MaximumImageDimension() uint { func (d_ DetectContoursRequest) SetMaximumImageDimension(value uint) { objc.Call[objc.Void](d_, objc.Sel("setMaximumImageDimension:"), value) } - -// The pixel value to use as a pivot for the contrast. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3750961-contrastpivot?language=objc -func (d_ DetectContoursRequest) ContrastPivot() foundation.Number { - rv := objc.Call[foundation.Number](d_, objc.Sel("contrastPivot")) - return rv -} - -// The pixel value to use as a pivot for the contrast. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3750961-contrastpivot?language=objc -func (d_ DetectContoursRequest) SetContrastPivot(value foundation.INumber) { - objc.Call[objc.Void](d_, objc.Sel("setContrastPivot:"), value) -} diff --git a/macos/vision/detect_rectangles_request.gen.go b/macos/vision/detect_rectangles_request.gen.go index 2a9638ef..0bf43909 100644 --- a/macos/vision/detect_rectangles_request.gen.go +++ b/macos/vision/detect_rectangles_request.gen.go @@ -18,18 +18,18 @@ type _DetectRectanglesRequestClass struct { // An interface definition for the [DetectRectanglesRequest] class. type IDetectRectanglesRequest interface { IImageBasedRequest - MinimumConfidence() Confidence - SetMinimumConfidence(value Confidence) - MaximumAspectRatio() AspectRatio - SetMaximumAspectRatio(value AspectRatio) MinimumAspectRatio() AspectRatio SetMinimumAspectRatio(value AspectRatio) MinimumSize() float32 SetMinimumSize(value float32) - QuadratureTolerance() Degrees - SetQuadratureTolerance(value Degrees) + MinimumConfidence() Confidence + SetMinimumConfidence(value Confidence) MaximumObservations() uint SetMaximumObservations(value uint) + MaximumAspectRatio() AspectRatio + SetMaximumAspectRatio(value AspectRatio) + QuadratureTolerance() Degrees + SetQuadratureTolerance(value Degrees) } // An image analysis request that finds projected rectangular regions in an image. [Full Topic] @@ -79,36 +79,6 @@ func NewDetectRectanglesRequestWithCompletionHandler(completionHandler RequestCo return instance } -// A value specifying the minimum acceptable confidence level. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875375-minimumconfidence?language=objc -func (d_ DetectRectanglesRequest) MinimumConfidence() Confidence { - rv := objc.Call[Confidence](d_, objc.Sel("minimumConfidence")) - return rv -} - -// A value specifying the minimum acceptable confidence level. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875375-minimumconfidence?language=objc -func (d_ DetectRectanglesRequest) SetMinimumConfidence(value Confidence) { - objc.Call[objc.Void](d_, objc.Sel("setMinimumConfidence:"), value) -} - -// A float specifying the maximum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875376-maximumaspectratio?language=objc -func (d_ DetectRectanglesRequest) MaximumAspectRatio() AspectRatio { - rv := objc.Call[AspectRatio](d_, objc.Sel("maximumAspectRatio")) - return rv -} - -// A float specifying the maximum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875376-maximumaspectratio?language=objc -func (d_ DetectRectanglesRequest) SetMaximumAspectRatio(value AspectRatio) { - objc.Call[objc.Void](d_, objc.Sel("setMaximumAspectRatio:"), value) -} - // A float specifying the minimum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875378-minimumaspectratio?language=objc @@ -139,19 +109,19 @@ func (d_ DetectRectanglesRequest) SetMinimumSize(value float32) { objc.Call[objc.Void](d_, objc.Sel("setMinimumSize:"), value) } -// A float specifying the number of degrees a rectangle corner angle can deviate from 90°. [Full Topic] +// A value specifying the minimum acceptable confidence level. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875379-quadraturetolerance?language=objc -func (d_ DetectRectanglesRequest) QuadratureTolerance() Degrees { - rv := objc.Call[Degrees](d_, objc.Sel("quadratureTolerance")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875375-minimumconfidence?language=objc +func (d_ DetectRectanglesRequest) MinimumConfidence() Confidence { + rv := objc.Call[Confidence](d_, objc.Sel("minimumConfidence")) return rv } -// A float specifying the number of degrees a rectangle corner angle can deviate from 90°. [Full Topic] +// A value specifying the minimum acceptable confidence level. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875379-quadraturetolerance?language=objc -func (d_ DetectRectanglesRequest) SetQuadratureTolerance(value Degrees) { - objc.Call[objc.Void](d_, objc.Sel("setQuadratureTolerance:"), value) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875375-minimumconfidence?language=objc +func (d_ DetectRectanglesRequest) SetMinimumConfidence(value Confidence) { + objc.Call[objc.Void](d_, objc.Sel("setMinimumConfidence:"), value) } // An integer specifying the maximum number of rectangles Vision returns. [Full Topic] @@ -168,3 +138,33 @@ func (d_ DetectRectanglesRequest) MaximumObservations() uint { func (d_ DetectRectanglesRequest) SetMaximumObservations(value uint) { objc.Call[objc.Void](d_, objc.Sel("setMaximumObservations:"), value) } + +// A float specifying the maximum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875376-maximumaspectratio?language=objc +func (d_ DetectRectanglesRequest) MaximumAspectRatio() AspectRatio { + rv := objc.Call[AspectRatio](d_, objc.Sel("maximumAspectRatio")) + return rv +} + +// A float specifying the maximum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875376-maximumaspectratio?language=objc +func (d_ DetectRectanglesRequest) SetMaximumAspectRatio(value AspectRatio) { + objc.Call[objc.Void](d_, objc.Sel("setMaximumAspectRatio:"), value) +} + +// A float specifying the number of degrees a rectangle corner angle can deviate from 90°. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875379-quadraturetolerance?language=objc +func (d_ DetectRectanglesRequest) QuadratureTolerance() Degrees { + rv := objc.Call[Degrees](d_, objc.Sel("quadratureTolerance")) + return rv +} + +// A float specifying the number of degrees a rectangle corner angle can deviate from 90°. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875379-quadraturetolerance?language=objc +func (d_ DetectRectanglesRequest) SetQuadratureTolerance(value Degrees) { + objc.Call[objc.Void](d_, objc.Sel("setQuadratureTolerance:"), value) +} diff --git a/macos/vision/detect_trajectories_request.gen.go b/macos/vision/detect_trajectories_request.gen.go index 877a152e..21b84d1e 100644 --- a/macos/vision/detect_trajectories_request.gen.go +++ b/macos/vision/detect_trajectories_request.gen.go @@ -19,13 +19,13 @@ type _DetectTrajectoriesRequestClass struct { // An interface definition for the [DetectTrajectoriesRequest] class. type IDetectTrajectoriesRequest interface { IStatefulRequest - ObjectMinimumNormalizedRadius() float32 - SetObjectMinimumNormalizedRadius(value float32) - TargetFrameTime() coremedia.Time - SetTargetFrameTime(value coremedia.Time) ObjectMaximumNormalizedRadius() float32 SetObjectMaximumNormalizedRadius(value float32) + TargetFrameTime() coremedia.Time + SetTargetFrameTime(value coremedia.Time) TrajectoryLength() int + ObjectMinimumNormalizedRadius() float32 + SetObjectMinimumNormalizedRadius(value float32) } // A request that detects the trajectories of shapes moving along a parabolic path. [Full Topic] @@ -103,19 +103,19 @@ func NewDetectTrajectoriesRequestWithCompletionHandler(completionHandler Request return instance } -// The minimum radius of the bounding circle of the object to track. [Full Topic] +// The maximum radius of the bounding circle of the object to track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675671-objectminimumnormalizedradius?language=objc -func (d_ DetectTrajectoriesRequest) ObjectMinimumNormalizedRadius() float32 { - rv := objc.Call[float32](d_, objc.Sel("objectMinimumNormalizedRadius")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675670-objectmaximumnormalizedradius?language=objc +func (d_ DetectTrajectoriesRequest) ObjectMaximumNormalizedRadius() float32 { + rv := objc.Call[float32](d_, objc.Sel("objectMaximumNormalizedRadius")) return rv } -// The minimum radius of the bounding circle of the object to track. [Full Topic] +// The maximum radius of the bounding circle of the object to track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675671-objectminimumnormalizedradius?language=objc -func (d_ DetectTrajectoriesRequest) SetObjectMinimumNormalizedRadius(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setObjectMinimumNormalizedRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675670-objectmaximumnormalizedradius?language=objc +func (d_ DetectTrajectoriesRequest) SetObjectMaximumNormalizedRadius(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setObjectMaximumNormalizedRadius:"), value) } // The requested target frame time for processing trajectory detection. [Full Topic] @@ -133,25 +133,25 @@ func (d_ DetectTrajectoriesRequest) SetTargetFrameTime(value coremedia.Time) { objc.Call[objc.Void](d_, objc.Sel("setTargetFrameTime:"), value) } -// The maximum radius of the bounding circle of the object to track. [Full Topic] +// The number of points to detect before calculating a trajectory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675670-objectmaximumnormalizedradius?language=objc -func (d_ DetectTrajectoriesRequest) ObjectMaximumNormalizedRadius() float32 { - rv := objc.Call[float32](d_, objc.Sel("objectMaximumNormalizedRadius")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675673-trajectorylength?language=objc +func (d_ DetectTrajectoriesRequest) TrajectoryLength() int { + rv := objc.Call[int](d_, objc.Sel("trajectoryLength")) return rv } -// The maximum radius of the bounding circle of the object to track. [Full Topic] +// The minimum radius of the bounding circle of the object to track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675670-objectmaximumnormalizedradius?language=objc -func (d_ DetectTrajectoriesRequest) SetObjectMaximumNormalizedRadius(value float32) { - objc.Call[objc.Void](d_, objc.Sel("setObjectMaximumNormalizedRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675671-objectminimumnormalizedradius?language=objc +func (d_ DetectTrajectoriesRequest) ObjectMinimumNormalizedRadius() float32 { + rv := objc.Call[float32](d_, objc.Sel("objectMinimumNormalizedRadius")) + return rv } -// The number of points to detect before calculating a trajectory. [Full Topic] +// The minimum radius of the bounding circle of the object to track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675673-trajectorylength?language=objc -func (d_ DetectTrajectoriesRequest) TrajectoryLength() int { - rv := objc.Call[int](d_, objc.Sel("trajectoryLength")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675671-objectminimumnormalizedradius?language=objc +func (d_ DetectTrajectoriesRequest) SetObjectMinimumNormalizedRadius(value float32) { + objc.Call[objc.Void](d_, objc.Sel("setObjectMinimumNormalizedRadius:"), value) } diff --git a/macos/vision/detected_point.gen.go b/macos/vision/detected_point.gen.go index 0f81a85a..0d22c437 100644 --- a/macos/vision/detected_point.gen.go +++ b/macos/vision/detected_point.gen.go @@ -55,30 +55,30 @@ func (d_ DetectedPoint) Init() DetectedPoint { return rv } -func (d_ DetectedPoint) InitWithLocation(location coregraphics.Point) DetectedPoint { - rv := objc.Call[DetectedPoint](d_, objc.Sel("initWithLocation:"), location) +func (d_ DetectedPoint) InitWithXY(x float64, y float64) DetectedPoint { + rv := objc.Call[DetectedPoint](d_, objc.Sel("initWithX:y:"), x, y) return rv } -// Creates a point object from the specified Core Graphics point. [Full Topic] +// Creates a point object with the specified coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548330-initwithlocation?language=objc -func NewDetectedPointWithLocation(location coregraphics.Point) DetectedPoint { - instance := DetectedPointClass.Alloc().InitWithLocation(location) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548331-initwithx?language=objc +func NewDetectedPointWithXY(x float64, y float64) DetectedPoint { + instance := DetectedPointClass.Alloc().InitWithXY(x, y) instance.Autorelease() return instance } -func (d_ DetectedPoint) InitWithXY(x float64, y float64) DetectedPoint { - rv := objc.Call[DetectedPoint](d_, objc.Sel("initWithX:y:"), x, y) +func (d_ DetectedPoint) InitWithLocation(location coregraphics.Point) DetectedPoint { + rv := objc.Call[DetectedPoint](d_, objc.Sel("initWithLocation:"), location) return rv } -// Creates a point object with the specified coordinates. [Full Topic] +// Creates a point object from the specified Core Graphics point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548331-initwithx?language=objc -func NewDetectedPointWithXY(x float64, y float64) DetectedPoint { - instance := DetectedPointClass.Alloc().InitWithXY(x, y) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548330-initwithlocation?language=objc +func NewDetectedPointWithLocation(location coregraphics.Point) DetectedPoint { + instance := DetectedPointClass.Alloc().InitWithLocation(location) instance.Autorelease() return instance } diff --git a/macos/vision/face_landmark_region2_d.gen.go b/macos/vision/face_landmark_region2_d.gen.go index 174334b7..ad9f8d77 100644 --- a/macos/vision/face_landmark_region2_d.gen.go +++ b/macos/vision/face_landmark_region2_d.gen.go @@ -21,8 +21,8 @@ type _FaceLandmarkRegion2DClass struct { type IFaceLandmarkRegion2D interface { IFaceLandmarkRegion PointsInImageOfSize(imageSize coregraphics.Size) *coregraphics.Point - NormalizedPoints() *coregraphics.Point PrecisionEstimatesPerPoint() []foundation.Number + NormalizedPoints() *coregraphics.Point } // 2D geometry information for a specific facial feature. [Full Topic] @@ -66,14 +66,6 @@ func (f_ FaceLandmarkRegion2D) PointsInImageOfSize(imageSize coregraphics.Size) return rv } -// A buffer in memory containing normalized landmark points. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarkregion2d/2923490-normalizedpoints?language=objc -func (f_ FaceLandmarkRegion2D) NormalizedPoints() *coregraphics.Point { - rv := objc.Call[*coregraphics.Point](f_, objc.Sel("normalizedPoints")) - return rv -} - // An array of precision estimates for each landmark point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarkregion2d/3143672-precisionestimatesperpoint?language=objc @@ -81,3 +73,11 @@ func (f_ FaceLandmarkRegion2D) PrecisionEstimatesPerPoint() []foundation.Number rv := objc.Call[[]foundation.Number](f_, objc.Sel("precisionEstimatesPerPoint")) return rv } + +// A buffer in memory containing normalized landmark points. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarkregion2d/2923490-normalizedpoints?language=objc +func (f_ FaceLandmarkRegion2D) NormalizedPoints() *coregraphics.Point { + rv := objc.Call[*coregraphics.Point](f_, objc.Sel("normalizedPoints")) + return rv +} diff --git a/macos/vision/face_landmarks2_d.gen.go b/macos/vision/face_landmarks2_d.gen.go index f5a57c71..99d47775 100644 --- a/macos/vision/face_landmarks2_d.gen.go +++ b/macos/vision/face_landmarks2_d.gen.go @@ -18,19 +18,19 @@ type _FaceLandmarks2DClass struct { // An interface definition for the [FaceLandmarks2D] class. type IFaceLandmarks2D interface { IFaceLandmarks - AllPoints() FaceLandmarkRegion2D - Nose() FaceLandmarkRegion2D - RightEye() FaceLandmarkRegion2D - RightEyebrow() FaceLandmarkRegion2D - NoseCrest() FaceLandmarkRegion2D RightPupil() FaceLandmarkRegion2D - OuterLips() FaceLandmarkRegion2D - LeftPupil() FaceLandmarkRegion2D - LeftEyebrow() FaceLandmarkRegion2D - FaceContour() FaceLandmarkRegion2D + Nose() FaceLandmarkRegion2D InnerLips() FaceLandmarkRegion2D + LeftPupil() FaceLandmarkRegion2D + OuterLips() FaceLandmarkRegion2D MedianLine() FaceLandmarkRegion2D + NoseCrest() FaceLandmarkRegion2D + RightEyebrow() FaceLandmarkRegion2D + FaceContour() FaceLandmarkRegion2D + AllPoints() FaceLandmarkRegion2D + LeftEyebrow() FaceLandmarkRegion2D LeftEye() FaceLandmarkRegion2D + RightEye() FaceLandmarkRegion2D } // A collection of facial features that a request detects. [Full Topic] @@ -66,11 +66,11 @@ func (f_ FaceLandmarks2D) Init() FaceLandmarks2D { return rv } -// The region containing all face landmark points. [Full Topic] +// The region containing the point where the right pupil is located. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879430-allpoints?language=objc -func (f_ FaceLandmarks2D) AllPoints() FaceLandmarkRegion2D { - rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("allPoints")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879441-rightpupil?language=objc +func (f_ FaceLandmarks2D) RightPupil() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("rightPupil")) return rv } @@ -82,35 +82,19 @@ func (f_ FaceLandmarks2D) Nose() FaceLandmarkRegion2D { return rv } -// The region containing points that outline the right eye. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879442-righteye?language=objc -func (f_ FaceLandmarks2D) RightEye() FaceLandmarkRegion2D { - rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("rightEye")) - return rv -} - -// The region containing points that trace the right eyebrow. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879432-righteyebrow?language=objc -func (f_ FaceLandmarks2D) RightEyebrow() FaceLandmarkRegion2D { - rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("rightEyebrow")) - return rv -} - -// The region containing points that trace the center crest of the nose. [Full Topic] +// The region containing points that outline the space between the lips. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879431-nosecrest?language=objc -func (f_ FaceLandmarks2D) NoseCrest() FaceLandmarkRegion2D { - rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("noseCrest")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879434-innerlips?language=objc +func (f_ FaceLandmarks2D) InnerLips() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("innerLips")) return rv } -// The region containing the point where the right pupil is located. [Full Topic] +// The region containing the point where the left pupil is located. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879441-rightpupil?language=objc -func (f_ FaceLandmarks2D) RightPupil() FaceLandmarkRegion2D { - rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("rightPupil")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879436-leftpupil?language=objc +func (f_ FaceLandmarks2D) LeftPupil() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("leftPupil")) return rv } @@ -122,19 +106,27 @@ func (f_ FaceLandmarks2D) OuterLips() FaceLandmarkRegion2D { return rv } -// The region containing the point where the left pupil is located. [Full Topic] +// The region containing points that trace a vertical line down the center of the face. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879436-leftpupil?language=objc -func (f_ FaceLandmarks2D) LeftPupil() FaceLandmarkRegion2D { - rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("leftPupil")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879427-medianline?language=objc +func (f_ FaceLandmarks2D) MedianLine() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("medianLine")) return rv } -// The region containing points that trace the left eyebrow. [Full Topic] +// The region containing points that trace the center crest of the nose. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879438-lefteyebrow?language=objc -func (f_ FaceLandmarks2D) LeftEyebrow() FaceLandmarkRegion2D { - rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("leftEyebrow")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879431-nosecrest?language=objc +func (f_ FaceLandmarks2D) NoseCrest() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("noseCrest")) + return rv +} + +// The region containing points that trace the right eyebrow. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879432-righteyebrow?language=objc +func (f_ FaceLandmarks2D) RightEyebrow() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("rightEyebrow")) return rv } @@ -146,19 +138,19 @@ func (f_ FaceLandmarks2D) FaceContour() FaceLandmarkRegion2D { return rv } -// The region containing points that outline the space between the lips. [Full Topic] +// The region containing all face landmark points. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879434-innerlips?language=objc -func (f_ FaceLandmarks2D) InnerLips() FaceLandmarkRegion2D { - rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("innerLips")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879430-allpoints?language=objc +func (f_ FaceLandmarks2D) AllPoints() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("allPoints")) return rv } -// The region containing points that trace a vertical line down the center of the face. [Full Topic] +// The region containing points that trace the left eyebrow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879427-medianline?language=objc -func (f_ FaceLandmarks2D) MedianLine() FaceLandmarkRegion2D { - rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("medianLine")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879438-lefteyebrow?language=objc +func (f_ FaceLandmarks2D) LeftEyebrow() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("leftEyebrow")) return rv } @@ -169,3 +161,11 @@ func (f_ FaceLandmarks2D) LeftEye() FaceLandmarkRegion2D { rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("leftEye")) return rv } + +// The region containing points that outline the right eye. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfacelandmarks2d/2879442-righteye?language=objc +func (f_ FaceLandmarks2D) RightEye() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("rightEye")) + return rv +} diff --git a/macos/vision/face_observation.gen.go b/macos/vision/face_observation.gen.go index 1b19687e..a1727b35 100644 --- a/macos/vision/face_observation.gen.go +++ b/macos/vision/face_observation.gen.go @@ -21,10 +21,10 @@ type _FaceObservationClass struct { type IFaceObservation interface { IDetectedObjectObservation Roll() foundation.Number - Pitch() foundation.Number Yaw() foundation.Number - Landmarks() FaceLandmarks2D FaceCaptureQuality() foundation.Number + Pitch() foundation.Number + Landmarks() FaceLandmarks2D } // Face or facial-feature information that an image analysis request detects. [Full Topic] @@ -104,14 +104,6 @@ func (f_ FaceObservation) Roll() foundation.Number { return rv } -// The pitch angle of a face in radians. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/3750998-pitch?language=objc -func (f_ FaceObservation) Pitch() foundation.Number { - rv := objc.Call[foundation.Number](f_, objc.Sel("pitch")) - return rv -} - // The yaw angle of a face in radians. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/2980940-yaw?language=objc @@ -120,14 +112,6 @@ func (f_ FaceObservation) Yaw() foundation.Number { return rv } -// The facial features of the detected face. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/2867250-landmarks?language=objc -func (f_ FaceObservation) Landmarks() FaceLandmarks2D { - rv := objc.Call[FaceLandmarks2D](f_, objc.Sel("landmarks")) - return rv -} - // A value that indicates the quality of the face capture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/3152627-facecapturequality?language=objc @@ -135,3 +119,19 @@ func (f_ FaceObservation) FaceCaptureQuality() foundation.Number { rv := objc.Call[foundation.Number](f_, objc.Sel("faceCaptureQuality")) return rv } + +// The pitch angle of a face in radians. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/3750998-pitch?language=objc +func (f_ FaceObservation) Pitch() foundation.Number { + rv := objc.Call[foundation.Number](f_, objc.Sel("pitch")) + return rv +} + +// The facial features of the detected face. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/2867250-landmarks?language=objc +func (f_ FaceObservation) Landmarks() FaceLandmarks2D { + rv := objc.Call[FaceLandmarks2D](f_, objc.Sel("landmarks")) + return rv +} diff --git a/macos/vision/generate_optical_flow_request.gen.go b/macos/vision/generate_optical_flow_request.gen.go index 41c4004d..47b04ea2 100644 --- a/macos/vision/generate_optical_flow_request.gen.go +++ b/macos/vision/generate_optical_flow_request.gen.go @@ -10,7 +10,6 @@ import ( "github.com/progrium/darwinkit/macos/coremedia" "github.com/progrium/darwinkit/macos/corevideo" "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/macos/imageio" "github.com/progrium/darwinkit/objc" ) @@ -63,226 +62,16 @@ func (g_ GenerateOpticalFlowRequest) Init() GenerateOpticalFlowRequest { return rv } -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCGImageOrientationOptions(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCGImage:orientation:options:"), cgImage, orientation, options) - return rv -} - -// Creates a new request targeting a Core Graphics image of known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923444-initwithtargetedcgimage?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCGImageOrientationOptions(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCGImageOrientationOptions(cgImage, orientation, options) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) - return rv -} - -// Creates a new request targeting a Core Graphics image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923452-initwithtargetedcgimage?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCGImageOptions(cgImage, options) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageURLOptionsCompletionHandler(imageURL foundation.IURL, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageURL:options:completionHandler:"), imageURL, options, completionHandler) - return rv -} - -// Creates a new request targeting an image at the specified URL, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923453-initwithtargetedimageurl?language=objc -func NewGenerateOpticalFlowRequestWithTargetedImageURLOptionsCompletionHandler(imageURL foundation.IURL, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedImageURLOptionsCompletionHandler(imageURL, options, completionHandler) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageData:options:"), imageData, options) - return rv -} - -// Creates a new request targeting an image as raw data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923460-initwithtargetedimagedata?language=objc -func NewGenerateOpticalFlowRequestWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedImageDataOptions(imageData, options) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCVPixelBuffer:options:completionHandler:"), pixelBuffer, options, completionHandler) - return rv -} - -// Creates a new request targeting an image in a CVPixelBufferRef, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923446-initwithtargetedcvpixelbuffer?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer, options, completionHandler) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCMSampleBuffer:options:completionHandler:"), sampleBuffer, options, completionHandler) - return rv -} - -// Creates a new request with a completion handler that targets an image in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571275-initwithtargetedcmsamplebuffer?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer, options, completionHandler) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageData:orientation:options:completionHandler:"), imageData, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a raw data image of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923443-initwithtargetedimagedata?language=objc -func NewGenerateOpticalFlowRequestWithTargetedImageDataOrientationOptionsCompletionHandler(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCMSampleBuffer:orientation:options:"), sampleBuffer, orientation, options) - return rv -} - -// Creates a new request that targets an image of a known orientation in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571276-initwithtargetedcmsamplebuffer?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer, orientation, options) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCVPixelBuffer:options:"), pixelBuffer, options) - return rv -} - -// Creates a new request targeting an image in a CVPixelBufferRef. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923445-initwithtargetedcvpixelbuffer?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageData:options:completionHandler:"), imageData, options, completionHandler) - return rv -} - -// Creates a new request targeting an image as raw data, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923455-initwithtargetedimagedata?language=objc -func NewGenerateOpticalFlowRequestWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedImageDataOptionsCompletionHandler(imageData, options, completionHandler) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCIImageOptionsCompletionHandler(ciImage coreimage.IImage, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCIImage:options:completionHandler:"), ciImage, options, completionHandler) - return rv -} - -// Creates a new request targeting a CIImage, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923454-initwithtargetedciimage?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCIImageOptionsCompletionHandler(ciImage coreimage.IImage, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCIImageOptionsCompletionHandler(ciImage, options, completionHandler) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCIImageOrientationOptions(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCIImage:orientation:options:"), ciImage, orientation, options) - return rv -} - -// Creates a new request targeting a CIImage of known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923459-initwithtargetedciimage?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCIImageOrientationOptions(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCIImageOrientationOptions(ciImage, orientation, options) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageURL:orientation:options:"), imageURL, orientation, options) - return rv -} - -// Creates a new request targeting an image of known orientation, at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923456-initwithtargetedimageurl?language=objc -func NewGenerateOpticalFlowRequestWithTargetedImageURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedImageURLOrientationOptions(imageURL, orientation, options) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCIImage:orientation:options:completionHandler:"), ciImage, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a CIImage of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923451-initwithtargetedciimage?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCGImage:options:completionHandler:"), cgImage, options, completionHandler) - return rv -} - -// Creates a new request targeting a Core Graphics image, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923448-initwithtargetedcgimage?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCGImageOptionsCompletionHandler(cgImage, options, completionHandler) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageData:orientation:options:"), imageData, orientation, options) +func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { + rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageURL:options:"), imageURL, options) return rv } -// Creates a new request targeting a raw data image of known orientation. [Full Topic] +// Creates a new request targeting an image at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923441-initwithtargetedimagedata?language=objc -func NewGenerateOpticalFlowRequestWithTargetedImageDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedImageDataOrientationOptions(imageData, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923458-initwithtargetedimageurl?language=objc +func NewGenerateOpticalFlowRequestWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { + instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedImageURLOptions(imageURL, options) instance.Autorelease() return instance } @@ -301,34 +90,6 @@ func NewGenerateOpticalFlowRequestWithTargetedCMSampleBufferOptions(sampleBuffer return instance } -func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageURL:orientation:options:completionHandler:"), imageURL, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting an image of known orientation, at the specified URL, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923457-initwithtargetedimageurl?language=objc -func NewGenerateOpticalFlowRequestWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCMSampleBuffer:orientation:options:completionHandler:"), sampleBuffer, orientation, options, completionHandler) - return rv -} - -// Creates a new request with a completion handler that targets an image of a known orientation in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571277-initwithtargetedcmsamplebuffer?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - func (g_ GenerateOpticalFlowRequest) InitWithTargetedCIImageOptions(ciImage coreimage.IImage, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCIImage:options:"), ciImage, options) return rv @@ -343,58 +104,44 @@ func NewGenerateOpticalFlowRequestWithTargetedCIImageOptions(ciImage coreimage.I return instance } -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCGImage:orientation:options:completionHandler:"), cgImage, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a Core Graphics image of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923450-initwithtargetedcgimage?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCVPixelBuffer:orientation:options:"), pixelBuffer, orientation, options) +func (g_ GenerateOpticalFlowRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { + rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCVPixelBuffer:options:"), pixelBuffer, options) return rv } -// Creates a new request targeting an image in a CVPixelBufferRef of known orientation. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923442-initwithtargetedcvpixelbuffer?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923445-initwithtargetedcvpixelbuffer?language=objc +func NewGenerateOpticalFlowRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { + instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) instance.Autorelease() return instance } -func (g_ GenerateOpticalFlowRequest) InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCVPixelBuffer:orientation:options:completionHandler:"), pixelBuffer, orientation, options, completionHandler) +func (g_ GenerateOpticalFlowRequest) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { + rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) return rv } -// Creates a new request targeting an image in a CVPixelBufferRef of known orientation, executing the completion handler when done. [Full Topic] +// Creates a new request targeting a Core Graphics image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923449-initwithtargetedcvpixelbuffer?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer, orientation, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923452-initwithtargetedcgimage?language=objc +func NewGenerateOpticalFlowRequestWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { + instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCGImageOptions(cgImage, options) instance.Autorelease() return instance } -func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageURL:options:"), imageURL, options) +func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { + rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageData:options:"), imageData, options) return rv } -// Creates a new request targeting an image at the specified URL. [Full Topic] +// Creates a new request targeting an image as raw data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923458-initwithtargetedimageurl?language=objc -func NewGenerateOpticalFlowRequestWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedImageURLOptions(imageURL, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923460-initwithtargetedimagedata?language=objc +func NewGenerateOpticalFlowRequestWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { + instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedImageDataOptions(imageData, options) instance.Autorelease() return instance } diff --git a/macos/vision/generate_person_segmentation_request.gen.go b/macos/vision/generate_person_segmentation_request.gen.go index a544184a..2a44733b 100644 --- a/macos/vision/generate_person_segmentation_request.gen.go +++ b/macos/vision/generate_person_segmentation_request.gen.go @@ -38,6 +38,16 @@ func GeneratePersonSegmentationRequestFrom(ptr unsafe.Pointer) GeneratePersonSeg } } +func (gc _GeneratePersonSegmentationRequestClass) New() GeneratePersonSegmentationRequest { + rv := objc.Call[GeneratePersonSegmentationRequest](gc, objc.Sel("new")) + rv.Autorelease() + return rv +} + +func NewGeneratePersonSegmentationRequest() GeneratePersonSegmentationRequest { + return GeneratePersonSegmentationRequestClass.New() +} + func (g_ GeneratePersonSegmentationRequest) InitWithCompletionHandler(completionHandler RequestCompletionHandler) GeneratePersonSegmentationRequest { rv := objc.Call[GeneratePersonSegmentationRequest](g_, objc.Sel("initWithCompletionHandler:"), completionHandler) return rv @@ -52,16 +62,6 @@ func NewGeneratePersonSegmentationRequestWithCompletionHandler(completionHandler return instance } -func (gc _GeneratePersonSegmentationRequestClass) New() GeneratePersonSegmentationRequest { - rv := objc.Call[GeneratePersonSegmentationRequest](gc, objc.Sel("new")) - rv.Autorelease() - return rv -} - -func NewGeneratePersonSegmentationRequest() GeneratePersonSegmentationRequest { - return GeneratePersonSegmentationRequestClass.New() -} - func (g_ GeneratePersonSegmentationRequest) Init() GeneratePersonSegmentationRequest { rv := objc.Call[GeneratePersonSegmentationRequest](g_, objc.Sel("init")) return rv diff --git a/macos/vision/geometry_utils.gen.go b/macos/vision/geometry_utils.gen.go index 6a7f09f9..dc86bc28 100644 --- a/macos/vision/geometry_utils.gen.go +++ b/macos/vision/geometry_utils.gen.go @@ -68,21 +68,6 @@ func GeometryUtils_CalculateAreaForContourOrientedAreaError(area *float64, conto return GeometryUtilsClass.CalculateAreaForContourOrientedAreaError(area, contour, orientedArea, error) } -// Calculates a bounding circle for the specified contour object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vngeometryutils/3548354-boundingcircleforcontour?language=objc -func (gc _GeometryUtilsClass) BoundingCircleForContourError(contour IContour, error unsafe.Pointer) Circle { - rv := objc.Call[Circle](gc, objc.Sel("boundingCircleForContour:error:"), contour, error) - return rv -} - -// Calculates a bounding circle for the specified contour object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vngeometryutils/3548354-boundingcircleforcontour?language=objc -func GeometryUtils_BoundingCircleForContourError(contour IContour, error unsafe.Pointer) Circle { - return GeometryUtilsClass.BoundingCircleForContourError(contour, error) -} - // Calculates a bounding circle for the specified array of points. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vngeometryutils/3548355-boundingcircleforpoints?language=objc @@ -113,6 +98,21 @@ func GeometryUtils_BoundingCircleForSIMDPointsPointCountError(points objc.IObjec return GeometryUtilsClass.BoundingCircleForSIMDPointsPointCountError(points, pointCount, error) } +// Calculates a bounding circle for the specified contour object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vngeometryutils/3548354-boundingcircleforcontour?language=objc +func (gc _GeometryUtilsClass) BoundingCircleForContourError(contour IContour, error unsafe.Pointer) Circle { + rv := objc.Call[Circle](gc, objc.Sel("boundingCircleForContour:error:"), contour, error) + return rv +} + +// Calculates a bounding circle for the specified contour object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vngeometryutils/3548354-boundingcircleforcontour?language=objc +func GeometryUtils_BoundingCircleForContourError(contour IContour, error unsafe.Pointer) Circle { + return GeometryUtilsClass.BoundingCircleForContourError(contour, error) +} + // Calculates the perimeter of a closed contour. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vngeometryutils/3548358-calculateperimeter?language=objc diff --git a/macos/vision/homographic_image_registration_request.gen.go b/macos/vision/homographic_image_registration_request.gen.go index d5339699..b5139c2f 100644 --- a/macos/vision/homographic_image_registration_request.gen.go +++ b/macos/vision/homographic_image_registration_request.gen.go @@ -10,7 +10,6 @@ import ( "github.com/progrium/darwinkit/macos/coremedia" "github.com/progrium/darwinkit/macos/corevideo" "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/macos/imageio" "github.com/progrium/darwinkit/objc" ) @@ -59,226 +58,16 @@ func (h_ HomographicImageRegistrationRequest) Init() HomographicImageRegistratio return rv } -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCGImageOrientationOptions(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCGImage:orientation:options:"), cgImage, orientation, options) - return rv -} - -// Creates a new request targeting a Core Graphics image of known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923444-initwithtargetedcgimage?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCGImageOrientationOptions(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOrientationOptions(cgImage, orientation, options) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) - return rv -} - -// Creates a new request targeting a Core Graphics image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923452-initwithtargetedcgimage?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOptions(cgImage, options) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageURLOptionsCompletionHandler(imageURL foundation.IURL, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageURL:options:completionHandler:"), imageURL, options, completionHandler) - return rv -} - -// Creates a new request targeting an image at the specified URL, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923453-initwithtargetedimageurl?language=objc -func NewHomographicImageRegistrationRequestWithTargetedImageURLOptionsCompletionHandler(imageURL foundation.IURL, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOptionsCompletionHandler(imageURL, options, completionHandler) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageData:options:"), imageData, options) - return rv -} - -// Creates a new request targeting an image as raw data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923460-initwithtargetedimagedata?language=objc -func NewHomographicImageRegistrationRequestWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOptions(imageData, options) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCVPixelBuffer:options:completionHandler:"), pixelBuffer, options, completionHandler) - return rv -} - -// Creates a new request targeting an image in a CVPixelBufferRef, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923446-initwithtargetedcvpixelbuffer?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer, options, completionHandler) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCMSampleBuffer:options:completionHandler:"), sampleBuffer, options, completionHandler) - return rv -} - -// Creates a new request with a completion handler that targets an image in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571275-initwithtargetedcmsamplebuffer?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer, options, completionHandler) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageData:orientation:options:completionHandler:"), imageData, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a raw data image of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923443-initwithtargetedimagedata?language=objc -func NewHomographicImageRegistrationRequestWithTargetedImageDataOrientationOptionsCompletionHandler(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCMSampleBuffer:orientation:options:"), sampleBuffer, orientation, options) - return rv -} - -// Creates a new request that targets an image of a known orientation in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571276-initwithtargetedcmsamplebuffer?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer, orientation, options) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCVPixelBuffer:options:"), pixelBuffer, options) - return rv -} - -// Creates a new request targeting an image in a CVPixelBufferRef. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923445-initwithtargetedcvpixelbuffer?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageData:options:completionHandler:"), imageData, options, completionHandler) - return rv -} - -// Creates a new request targeting an image as raw data, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923455-initwithtargetedimagedata?language=objc -func NewHomographicImageRegistrationRequestWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOptionsCompletionHandler(imageData, options, completionHandler) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCIImageOptionsCompletionHandler(ciImage coreimage.IImage, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCIImage:options:completionHandler:"), ciImage, options, completionHandler) - return rv -} - -// Creates a new request targeting a CIImage, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923454-initwithtargetedciimage?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCIImageOptionsCompletionHandler(ciImage coreimage.IImage, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCIImageOptionsCompletionHandler(ciImage, options, completionHandler) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCIImageOrientationOptions(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCIImage:orientation:options:"), ciImage, orientation, options) - return rv -} - -// Creates a new request targeting a CIImage of known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923459-initwithtargetedciimage?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCIImageOrientationOptions(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCIImageOrientationOptions(ciImage, orientation, options) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageURL:orientation:options:"), imageURL, orientation, options) - return rv -} - -// Creates a new request targeting an image of known orientation, at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923456-initwithtargetedimageurl?language=objc -func NewHomographicImageRegistrationRequestWithTargetedImageURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOrientationOptions(imageURL, orientation, options) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCIImage:orientation:options:completionHandler:"), ciImage, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a CIImage of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923451-initwithtargetedciimage?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCGImage:options:completionHandler:"), cgImage, options, completionHandler) - return rv -} - -// Creates a new request targeting a Core Graphics image, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923448-initwithtargetedcgimage?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOptionsCompletionHandler(cgImage, options, completionHandler) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageData:orientation:options:"), imageData, orientation, options) +func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { + rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageURL:options:"), imageURL, options) return rv } -// Creates a new request targeting a raw data image of known orientation. [Full Topic] +// Creates a new request targeting an image at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923441-initwithtargetedimagedata?language=objc -func NewHomographicImageRegistrationRequestWithTargetedImageDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOrientationOptions(imageData, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923458-initwithtargetedimageurl?language=objc +func NewHomographicImageRegistrationRequestWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { + instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOptions(imageURL, options) instance.Autorelease() return instance } @@ -297,34 +86,6 @@ func NewHomographicImageRegistrationRequestWithTargetedCMSampleBufferOptions(sam return instance } -func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageURL:orientation:options:completionHandler:"), imageURL, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting an image of known orientation, at the specified URL, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923457-initwithtargetedimageurl?language=objc -func NewHomographicImageRegistrationRequestWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCMSampleBuffer:orientation:options:completionHandler:"), sampleBuffer, orientation, options, completionHandler) - return rv -} - -// Creates a new request with a completion handler that targets an image of a known orientation in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571277-initwithtargetedcmsamplebuffer?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - func (h_ HomographicImageRegistrationRequest) InitWithTargetedCIImageOptions(ciImage coreimage.IImage, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCIImage:options:"), ciImage, options) return rv @@ -339,58 +100,44 @@ func NewHomographicImageRegistrationRequestWithTargetedCIImageOptions(ciImage co return instance } -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCGImage:orientation:options:completionHandler:"), cgImage, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a Core Graphics image of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923450-initwithtargetedcgimage?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCVPixelBuffer:orientation:options:"), pixelBuffer, orientation, options) +func (h_ HomographicImageRegistrationRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { + rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCVPixelBuffer:options:"), pixelBuffer, options) return rv } -// Creates a new request targeting an image in a CVPixelBufferRef of known orientation. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923442-initwithtargetedcvpixelbuffer?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923445-initwithtargetedcvpixelbuffer?language=objc +func NewHomographicImageRegistrationRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { + instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) instance.Autorelease() return instance } -func (h_ HomographicImageRegistrationRequest) InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCVPixelBuffer:orientation:options:completionHandler:"), pixelBuffer, orientation, options, completionHandler) +func (h_ HomographicImageRegistrationRequest) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { + rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) return rv } -// Creates a new request targeting an image in a CVPixelBufferRef of known orientation, executing the completion handler when done. [Full Topic] +// Creates a new request targeting a Core Graphics image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923449-initwithtargetedcvpixelbuffer?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer, orientation, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923452-initwithtargetedcgimage?language=objc +func NewHomographicImageRegistrationRequestWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { + instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOptions(cgImage, options) instance.Autorelease() return instance } -func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageURL:options:"), imageURL, options) +func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { + rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageData:options:"), imageData, options) return rv } -// Creates a new request targeting an image at the specified URL. [Full Topic] +// Creates a new request targeting an image as raw data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923458-initwithtargetedimageurl?language=objc -func NewHomographicImageRegistrationRequestWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOptions(imageURL, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923460-initwithtargetedimagedata?language=objc +func NewHomographicImageRegistrationRequestWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { + instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOptions(imageData, options) instance.Autorelease() return instance } diff --git a/macos/vision/human_body_pose_observation.gen.go b/macos/vision/human_body_pose_observation.gen.go index a8f4832a..33f110be 100644 --- a/macos/vision/human_body_pose_observation.gen.go +++ b/macos/vision/human_body_pose_observation.gen.go @@ -18,10 +18,10 @@ type _HumanBodyPoseObservationClass struct { // An interface definition for the [HumanBodyPoseObservation] class. type IHumanBodyPoseObservation interface { IRecognizedPointsObservation - RecognizedPointForJointNameError(jointName HumanBodyPoseObservationJointName, error unsafe.Pointer) RecognizedPoint RecognizedPointsForJointsGroupNameError(jointsGroupName HumanBodyPoseObservationJointsGroupName, error unsafe.Pointer) map[HumanBodyPoseObservationJointName]RecognizedPoint - AvailableJointsGroupNames() []HumanBodyPoseObservationJointsGroupName + RecognizedPointForJointNameError(jointName HumanBodyPoseObservationJointName, error unsafe.Pointer) RecognizedPoint AvailableJointNames() []HumanBodyPoseObservationJointName + AvailableJointsGroupNames() []HumanBodyPoseObservationJointsGroupName } // An observation that provides the body points the analysis recognized. [Full Topic] @@ -57,14 +57,6 @@ func (h_ HumanBodyPoseObservation) Init() HumanBodyPoseObservation { return rv } -// Retrieves the recognized point for a joint name. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675603-recognizedpointforjointname?language=objc -func (h_ HumanBodyPoseObservation) RecognizedPointForJointNameError(jointName HumanBodyPoseObservationJointName, error unsafe.Pointer) RecognizedPoint { - rv := objc.Call[RecognizedPoint](h_, objc.Sel("recognizedPointForJointName:error:"), jointName, error) - return rv -} - // Retrieves the recognized points associated with the joint group name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675604-recognizedpointsforjointsgroupna?language=objc @@ -73,11 +65,11 @@ func (h_ HumanBodyPoseObservation) RecognizedPointsForJointsGroupNameError(joint return rv } -// The available joint group names in the observation. [Full Topic] +// Retrieves the recognized point for a joint name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675602-availablejointsgroupnames?language=objc -func (h_ HumanBodyPoseObservation) AvailableJointsGroupNames() []HumanBodyPoseObservationJointsGroupName { - rv := objc.Call[[]HumanBodyPoseObservationJointsGroupName](h_, objc.Sel("availableJointsGroupNames")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675603-recognizedpointforjointname?language=objc +func (h_ HumanBodyPoseObservation) RecognizedPointForJointNameError(jointName HumanBodyPoseObservationJointName, error unsafe.Pointer) RecognizedPoint { + rv := objc.Call[RecognizedPoint](h_, objc.Sel("recognizedPointForJointName:error:"), jointName, error) return rv } @@ -88,3 +80,11 @@ func (h_ HumanBodyPoseObservation) AvailableJointNames() []HumanBodyPoseObservat rv := objc.Call[[]HumanBodyPoseObservationJointName](h_, objc.Sel("availableJointNames")) return rv } + +// The available joint group names in the observation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675602-availablejointsgroupnames?language=objc +func (h_ HumanBodyPoseObservation) AvailableJointsGroupNames() []HumanBodyPoseObservationJointsGroupName { + rv := objc.Call[[]HumanBodyPoseObservationJointsGroupName](h_, objc.Sel("availableJointsGroupNames")) + return rv +} diff --git a/macos/vision/human_hand_pose_observation.gen.go b/macos/vision/human_hand_pose_observation.gen.go index caef584f..5ae7f5bb 100644 --- a/macos/vision/human_hand_pose_observation.gen.go +++ b/macos/vision/human_hand_pose_observation.gen.go @@ -20,9 +20,9 @@ type IHumanHandPoseObservation interface { IRecognizedPointsObservation RecognizedPointsForJointsGroupNameError(jointsGroupName HumanHandPoseObservationJointsGroupName, error unsafe.Pointer) map[HumanHandPoseObservationJointName]RecognizedPoint RecognizedPointForJointNameError(jointName HumanHandPoseObservationJointName, error unsafe.Pointer) RecognizedPoint + Chirality() Chirality AvailableJointNames() []HumanHandPoseObservationJointName AvailableJointsGroupNames() []HumanHandPoseObservationJointsGroupName - Chirality() Chirality } // An observation that provides the hand points the analysis recognized. [Full Topic] @@ -74,6 +74,14 @@ func (h_ HumanHandPoseObservation) RecognizedPointForJointNameError(jointName Hu return rv } +// The chirality, or handedness, of a pose. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanhandposeobservation/3750971-chirality?language=objc +func (h_ HumanHandPoseObservation) Chirality() Chirality { + rv := objc.Call[Chirality](h_, objc.Sel("chirality")) + return rv +} + // The names of the available joints in the observation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanhandposeobservation/3675637-availablejointnames?language=objc @@ -89,11 +97,3 @@ func (h_ HumanHandPoseObservation) AvailableJointsGroupNames() []HumanHandPoseOb rv := objc.Call[[]HumanHandPoseObservationJointsGroupName](h_, objc.Sel("availableJointsGroupNames")) return rv } - -// The chirality, or handedness, of a pose. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanhandposeobservation/3750971-chirality?language=objc -func (h_ HumanHandPoseObservation) Chirality() Chirality { - rv := objc.Call[Chirality](h_, objc.Sel("chirality")) - return rv -} diff --git a/macos/vision/image_registration_request.gen.go b/macos/vision/image_registration_request.gen.go index e44e5677..f5ee0de0 100644 --- a/macos/vision/image_registration_request.gen.go +++ b/macos/vision/image_registration_request.gen.go @@ -10,7 +10,6 @@ import ( "github.com/progrium/darwinkit/macos/coremedia" "github.com/progrium/darwinkit/macos/corevideo" "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/macos/imageio" "github.com/progrium/darwinkit/objc" ) @@ -59,226 +58,16 @@ func (i_ ImageRegistrationRequest) Init() ImageRegistrationRequest { return rv } -func (i_ ImageRegistrationRequest) InitWithTargetedCGImageOrientationOptions(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCGImage:orientation:options:"), cgImage, orientation, options) - return rv -} - -// Creates a new request targeting a Core Graphics image of known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923444-initwithtargetedcgimage?language=objc -func NewImageRegistrationRequestWithTargetedCGImageOrientationOptions(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOrientationOptions(cgImage, orientation, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) - return rv -} - -// Creates a new request targeting a Core Graphics image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923452-initwithtargetedcgimage?language=objc -func NewImageRegistrationRequestWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOptions(cgImage, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedImageURLOptionsCompletionHandler(imageURL foundation.IURL, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageURL:options:completionHandler:"), imageURL, options, completionHandler) - return rv -} - -// Creates a new request targeting an image at the specified URL, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923453-initwithtargetedimageurl?language=objc -func NewImageRegistrationRequestWithTargetedImageURLOptionsCompletionHandler(imageURL foundation.IURL, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOptionsCompletionHandler(imageURL, options, completionHandler) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageData:options:"), imageData, options) - return rv -} - -// Creates a new request targeting an image as raw data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923460-initwithtargetedimagedata?language=objc -func NewImageRegistrationRequestWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOptions(imageData, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCVPixelBuffer:options:completionHandler:"), pixelBuffer, options, completionHandler) - return rv -} - -// Creates a new request targeting an image in a CVPixelBufferRef, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923446-initwithtargetedcvpixelbuffer?language=objc -func NewImageRegistrationRequestWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer, options, completionHandler) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCMSampleBuffer:options:completionHandler:"), sampleBuffer, options, completionHandler) - return rv -} - -// Creates a new request with a completion handler that targets an image in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571275-initwithtargetedcmsamplebuffer?language=objc -func NewImageRegistrationRequestWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer, options, completionHandler) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageData:orientation:options:completionHandler:"), imageData, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a raw data image of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923443-initwithtargetedimagedata?language=objc -func NewImageRegistrationRequestWithTargetedImageDataOrientationOptionsCompletionHandler(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCMSampleBuffer:orientation:options:"), sampleBuffer, orientation, options) - return rv -} - -// Creates a new request that targets an image of a known orientation in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571276-initwithtargetedcmsamplebuffer?language=objc -func NewImageRegistrationRequestWithTargetedCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer, orientation, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCVPixelBuffer:options:"), pixelBuffer, options) - return rv -} - -// Creates a new request targeting an image in a CVPixelBufferRef. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923445-initwithtargetedcvpixelbuffer?language=objc -func NewImageRegistrationRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageData:options:completionHandler:"), imageData, options, completionHandler) - return rv -} - -// Creates a new request targeting an image as raw data, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923455-initwithtargetedimagedata?language=objc -func NewImageRegistrationRequestWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOptionsCompletionHandler(imageData, options, completionHandler) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCIImageOptionsCompletionHandler(ciImage coreimage.IImage, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCIImage:options:completionHandler:"), ciImage, options, completionHandler) - return rv -} - -// Creates a new request targeting a CIImage, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923454-initwithtargetedciimage?language=objc -func NewImageRegistrationRequestWithTargetedCIImageOptionsCompletionHandler(ciImage coreimage.IImage, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCIImageOptionsCompletionHandler(ciImage, options, completionHandler) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCIImageOrientationOptions(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCIImage:orientation:options:"), ciImage, orientation, options) - return rv -} - -// Creates a new request targeting a CIImage of known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923459-initwithtargetedciimage?language=objc -func NewImageRegistrationRequestWithTargetedCIImageOrientationOptions(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCIImageOrientationOptions(ciImage, orientation, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedImageURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageURL:orientation:options:"), imageURL, orientation, options) - return rv -} - -// Creates a new request targeting an image of known orientation, at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923456-initwithtargetedimageurl?language=objc -func NewImageRegistrationRequestWithTargetedImageURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOrientationOptions(imageURL, orientation, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCIImage:orientation:options:completionHandler:"), ciImage, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a CIImage of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923451-initwithtargetedciimage?language=objc -func NewImageRegistrationRequestWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCGImage:options:completionHandler:"), cgImage, options, completionHandler) - return rv -} - -// Creates a new request targeting a Core Graphics image, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923448-initwithtargetedcgimage?language=objc -func NewImageRegistrationRequestWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOptionsCompletionHandler(cgImage, options, completionHandler) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedImageDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageData:orientation:options:"), imageData, orientation, options) +func (i_ ImageRegistrationRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) ImageRegistrationRequest { + rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageURL:options:"), imageURL, options) return rv } -// Creates a new request targeting a raw data image of known orientation. [Full Topic] +// Creates a new request targeting an image at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923441-initwithtargetedimagedata?language=objc -func NewImageRegistrationRequestWithTargetedImageDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOrientationOptions(imageData, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923458-initwithtargetedimageurl?language=objc +func NewImageRegistrationRequestWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) ImageRegistrationRequest { + instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOptions(imageURL, options) instance.Autorelease() return instance } @@ -297,34 +86,6 @@ func NewImageRegistrationRequestWithTargetedCMSampleBufferOptions(sampleBuffer c return instance } -func (i_ ImageRegistrationRequest) InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageURL:orientation:options:completionHandler:"), imageURL, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting an image of known orientation, at the specified URL, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923457-initwithtargetedimageurl?language=objc -func NewImageRegistrationRequestWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCMSampleBuffer:orientation:options:completionHandler:"), sampleBuffer, orientation, options, completionHandler) - return rv -} - -// Creates a new request with a completion handler that targets an image of a known orientation in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571277-initwithtargetedcmsamplebuffer?language=objc -func NewImageRegistrationRequestWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - func (i_ ImageRegistrationRequest) InitWithTargetedCIImageOptions(ciImage coreimage.IImage, options map[ImageOption]objc.IObject) ImageRegistrationRequest { rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCIImage:options:"), ciImage, options) return rv @@ -339,58 +100,44 @@ func NewImageRegistrationRequestWithTargetedCIImageOptions(ciImage coreimage.IIm return instance } -func (i_ ImageRegistrationRequest) InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCGImage:orientation:options:completionHandler:"), cgImage, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a Core Graphics image of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923450-initwithtargetedcgimage?language=objc -func NewImageRegistrationRequestWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (i_ ImageRegistrationRequest) InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCVPixelBuffer:orientation:options:"), pixelBuffer, orientation, options) +func (i_ ImageRegistrationRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) ImageRegistrationRequest { + rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCVPixelBuffer:options:"), pixelBuffer, options) return rv } -// Creates a new request targeting an image in a CVPixelBufferRef of known orientation. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923442-initwithtargetedcvpixelbuffer?language=objc -func NewImageRegistrationRequestWithTargetedCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923445-initwithtargetedcvpixelbuffer?language=objc +func NewImageRegistrationRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) ImageRegistrationRequest { + instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) instance.Autorelease() return instance } -func (i_ ImageRegistrationRequest) InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCVPixelBuffer:orientation:options:completionHandler:"), pixelBuffer, orientation, options, completionHandler) +func (i_ ImageRegistrationRequest) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRegistrationRequest { + rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) return rv } -// Creates a new request targeting an image in a CVPixelBufferRef of known orientation, executing the completion handler when done. [Full Topic] +// Creates a new request targeting a Core Graphics image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923449-initwithtargetedcvpixelbuffer?language=objc -func NewImageRegistrationRequestWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer, orientation, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923452-initwithtargetedcgimage?language=objc +func NewImageRegistrationRequestWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRegistrationRequest { + instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOptions(cgImage, options) instance.Autorelease() return instance } -func (i_ ImageRegistrationRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageURL:options:"), imageURL, options) +func (i_ ImageRegistrationRequest) InitWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) ImageRegistrationRequest { + rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageData:options:"), imageData, options) return rv } -// Creates a new request targeting an image at the specified URL. [Full Topic] +// Creates a new request targeting an image as raw data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923458-initwithtargetedimageurl?language=objc -func NewImageRegistrationRequestWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOptions(imageURL, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923460-initwithtargetedimagedata?language=objc +func NewImageRegistrationRequestWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) ImageRegistrationRequest { + instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOptions(imageData, options) instance.Autorelease() return instance } diff --git a/macos/vision/image_request_handler.gen.go b/macos/vision/image_request_handler.gen.go index 0ab41e5a..d70f9584 100644 --- a/macos/vision/image_request_handler.gen.go +++ b/macos/vision/image_request_handler.gen.go @@ -10,7 +10,6 @@ import ( "github.com/progrium/darwinkit/macos/coremedia" "github.com/progrium/darwinkit/macos/corevideo" "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/macos/imageio" "github.com/progrium/darwinkit/objc" ) @@ -40,62 +39,6 @@ func ImageRequestHandlerFrom(ptr unsafe.Pointer) ImageRequestHandler { } } -func (i_ ImageRequestHandler) InitWithCGImageOptions(image coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRequestHandler { - rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithCGImage:options:"), image, options) - return rv -} - -// Creates a handler to be used for performing requests on Core Graphics images. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/2866541-initwithcgimage?language=objc -func NewImageRequestHandlerWithCGImageOptions(image coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRequestHandler { - instance := ImageRequestHandlerClass.Alloc().InitWithCGImageOptions(image, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRequestHandler) InitWithDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithData:orientation:options:"), imageData, orientation, options) - return rv -} - -// Creates a handler to be used for performing requests on an image of known orientation, contained in an NSData object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/2869635-initwithdata?language=objc -func NewImageRequestHandlerWithDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - instance := ImageRequestHandlerClass.Alloc().InitWithDataOrientationOptions(imageData, orientation, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRequestHandler) InitWithDataOptions(imageData []byte, options map[ImageOption]objc.IObject) ImageRequestHandler { - rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithData:options:"), imageData, options) - return rv -} - -// Creates a handler to be used for performing requests on an image contained in an NSData object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/2866551-initwithdata?language=objc -func NewImageRequestHandlerWithDataOptions(imageData []byte, options map[ImageOption]objc.IObject) ImageRequestHandler { - instance := ImageRequestHandlerClass.Alloc().InitWithDataOptions(imageData, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRequestHandler) InitWithURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithURL:orientation:options:"), imageURL, orientation, options) - return rv -} - -// Creates a handler to be used for performing requests on an image with known orientation, at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/2869645-initwithurl?language=objc -func NewImageRequestHandlerWithURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - instance := ImageRequestHandlerClass.Alloc().InitWithURLOrientationOptions(imageURL, orientation, options) - instance.Autorelease() - return instance -} - func (i_ ImageRequestHandler) InitWithCIImageOptions(image coreimage.IImage, options map[ImageOption]objc.IObject) ImageRequestHandler { rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithCIImage:options:"), image, options) return rv @@ -110,30 +53,16 @@ func NewImageRequestHandlerWithCIImageOptions(image coreimage.IImage, options ma return instance } -func (i_ ImageRequestHandler) InitWithCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithCMSampleBuffer:orientation:options:"), sampleBuffer, orientation, options) - return rv -} - -// Creates a request handler that performs requests on an image of a specified orientation contained within a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/3548374-initwithcmsamplebuffer?language=objc -func NewImageRequestHandlerWithCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - instance := ImageRequestHandlerClass.Alloc().InitWithCMSampleBufferOrientationOptions(sampleBuffer, orientation, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRequestHandler) InitWithCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithCVPixelBuffer:orientation:options:"), pixelBuffer, orientation, options) +func (i_ ImageRequestHandler) InitWithDataOptions(imageData []byte, options map[ImageOption]objc.IObject) ImageRequestHandler { + rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithData:options:"), imageData, options) return rv } -// Creates a handler for performing requests on a Core Video pixel buffer of a known orientation. [Full Topic] +// Creates a handler to be used for performing requests on an image contained in an NSData object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/2880303-initwithcvpixelbuffer?language=objc -func NewImageRequestHandlerWithCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - instance := ImageRequestHandlerClass.Alloc().InitWithCVPixelBufferOrientationOptions(pixelBuffer, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/2866551-initwithdata?language=objc +func NewImageRequestHandlerWithDataOptions(imageData []byte, options map[ImageOption]objc.IObject) ImageRequestHandler { + instance := ImageRequestHandlerClass.Alloc().InitWithDataOptions(imageData, options) instance.Autorelease() return instance } @@ -166,30 +95,16 @@ func NewImageRequestHandlerWithCMSampleBufferOptions(sampleBuffer coremedia.Samp return instance } -func (i_ ImageRequestHandler) InitWithCIImageOrientationOptions(image coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithCIImage:orientation:options:"), image, orientation, options) - return rv -} - -// Creates a handler to be used for performing requests on CIImage data of a known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/2869641-initwithciimage?language=objc -func NewImageRequestHandlerWithCIImageOrientationOptions(image coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - instance := ImageRequestHandlerClass.Alloc().InitWithCIImageOrientationOptions(image, orientation, options) - instance.Autorelease() - return instance -} - -func (i_ ImageRequestHandler) InitWithCGImageOrientationOptions(image coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithCGImage:orientation:options:"), image, orientation, options) +func (i_ ImageRequestHandler) InitWithCGImageOptions(image coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRequestHandler { + rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithCGImage:options:"), image, options) return rv } -// Creates a handler to be used for performing requests on a Core Graphics image with known orientation. [Full Topic] +// Creates a handler to be used for performing requests on Core Graphics images. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/2869629-initwithcgimage?language=objc -func NewImageRequestHandlerWithCGImageOrientationOptions(image coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) ImageRequestHandler { - instance := ImageRequestHandlerClass.Alloc().InitWithCGImageOrientationOptions(image, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/2866541-initwithcgimage?language=objc +func NewImageRequestHandlerWithCGImageOptions(image coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRequestHandler { + instance := ImageRequestHandlerClass.Alloc().InitWithCGImageOptions(image, options) instance.Autorelease() return instance } diff --git a/macos/vision/observation.gen.go b/macos/vision/observation.gen.go index 89ed7682..563f5c29 100644 --- a/macos/vision/observation.gen.go +++ b/macos/vision/observation.gen.go @@ -20,9 +20,9 @@ type _ObservationClass struct { // An interface definition for the [Observation] class. type IObservation interface { objc.IObject - Confidence() Confidence TimeRange() coremedia.TimeRange Uuid() foundation.UUID + Confidence() Confidence } // The abstract superclass for analysis results. [Full Topic] @@ -58,14 +58,6 @@ func (o_ Observation) Init() Observation { return rv } -// The level of confidence in the observation’s accuracy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnobservation/2867220-confidence?language=objc -func (o_ Observation) Confidence() Confidence { - rv := objc.Call[Confidence](o_, objc.Sel("confidence")) - return rv -} - // The time range of the reported observation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnobservation/3548370-timerange?language=objc @@ -81,3 +73,11 @@ func (o_ Observation) Uuid() foundation.UUID { rv := objc.Call[foundation.UUID](o_, objc.Sel("uuid")) return rv } + +// The level of confidence in the observation’s accuracy. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnobservation/2867220-confidence?language=objc +func (o_ Observation) Confidence() Confidence { + rv := objc.Call[Confidence](o_, objc.Sel("confidence")) + return rv +} diff --git a/macos/vision/pixel_buffer_observation.gen.go b/macos/vision/pixel_buffer_observation.gen.go index 46ea7e6a..0b2ff290 100644 --- a/macos/vision/pixel_buffer_observation.gen.go +++ b/macos/vision/pixel_buffer_observation.gen.go @@ -19,8 +19,8 @@ type _PixelBufferObservationClass struct { // An interface definition for the [PixelBufferObservation] class. type IPixelBufferObservation interface { IObservation - PixelBuffer() corevideo.PixelBufferRef FeatureName() string + PixelBuffer() corevideo.PixelBufferRef } // An object that represents an image that an image analysis request produces. [Full Topic] @@ -56,14 +56,6 @@ func (p_ PixelBufferObservation) Init() PixelBufferObservation { return rv } -// The image that results from a request with image output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnpixelbufferobservation/2890132-pixelbuffer?language=objc -func (p_ PixelBufferObservation) PixelBuffer() corevideo.PixelBufferRef { - rv := objc.Call[corevideo.PixelBufferRef](p_, objc.Sel("pixelBuffer")) - return rv -} - // A feature name that the CoreML model defines. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnpixelbufferobservation/3131945-featurename?language=objc @@ -71,3 +63,11 @@ func (p_ PixelBufferObservation) FeatureName() string { rv := objc.Call[string](p_, objc.Sel("featureName")) return rv } + +// The image that results from a request with image output. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnpixelbufferobservation/2890132-pixelbuffer?language=objc +func (p_ PixelBufferObservation) PixelBuffer() corevideo.PixelBufferRef { + rv := objc.Call[corevideo.PixelBufferRef](p_, objc.Sel("pixelBuffer")) + return rv +} diff --git a/macos/vision/point.gen.go b/macos/vision/point.gen.go index 0b647cca..034e7009 100644 --- a/macos/vision/point.gen.go +++ b/macos/vision/point.gen.go @@ -20,9 +20,9 @@ type _PointClass struct { type IPoint interface { objc.IObject DistanceToPoint(point IPoint) float64 + X() float64 Y() float64 Location() coregraphics.Point - X() float64 } // An immutable object that represents a single, two-dimensional point in an image. [Full Topic] @@ -38,30 +38,30 @@ func PointFrom(ptr unsafe.Pointer) Point { } } -func (p_ Point) InitWithLocation(location coregraphics.Point) Point { - rv := objc.Call[Point](p_, objc.Sel("initWithLocation:"), location) +func (p_ Point) InitWithXY(x float64, y float64) Point { + rv := objc.Call[Point](p_, objc.Sel("initWithX:y:"), x, y) return rv } -// Creates a point object from the specified Core Graphics point. [Full Topic] +// Creates a point object with the specified coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548330-initwithlocation?language=objc -func NewPointWithLocation(location coregraphics.Point) Point { - instance := PointClass.Alloc().InitWithLocation(location) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548331-initwithx?language=objc +func NewPointWithXY(x float64, y float64) Point { + instance := PointClass.Alloc().InitWithXY(x, y) instance.Autorelease() return instance } -func (p_ Point) InitWithXY(x float64, y float64) Point { - rv := objc.Call[Point](p_, objc.Sel("initWithX:y:"), x, y) +func (p_ Point) InitWithLocation(location coregraphics.Point) Point { + rv := objc.Call[Point](p_, objc.Sel("initWithLocation:"), location) return rv } -// Creates a point object with the specified coordinates. [Full Topic] +// Creates a point object from the specified Core Graphics point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548331-initwithx?language=objc -func NewPointWithXY(x float64, y float64) Point { - instance := PointClass.Alloc().InitWithXY(x, y) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548330-initwithlocation?language=objc +func NewPointWithLocation(location coregraphics.Point) Point { + instance := PointClass.Alloc().InitWithLocation(location) instance.Autorelease() return instance } @@ -109,14 +109,6 @@ func (p_ Point) DistanceToPoint(point IPoint) float64 { return rv } -// The y-coordinate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548335-y?language=objc -func (p_ Point) Y() float64 { - rv := objc.Call[float64](p_, objc.Sel("y")) - return rv -} - // A point object that represents the origin. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548336-zeropoint?language=objc @@ -132,14 +124,6 @@ func Point_ZeroPoint() Point { return PointClass.ZeroPoint() } -// The Core Graphics point for this point. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548332-location?language=objc -func (p_ Point) Location() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("location")) - return rv -} - // The x-coordinate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548334-x?language=objc @@ -147,3 +131,19 @@ func (p_ Point) X() float64 { rv := objc.Call[float64](p_, objc.Sel("x")) return rv } + +// The y-coordinate. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548335-y?language=objc +func (p_ Point) Y() float64 { + rv := objc.Call[float64](p_, objc.Sel("y")) + return rv +} + +// The Core Graphics point for this point. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548332-location?language=objc +func (p_ Point) Location() coregraphics.Point { + rv := objc.Call[coregraphics.Point](p_, objc.Sel("location")) + return rv +} diff --git a/macos/vision/recognize_text_request.gen.go b/macos/vision/recognize_text_request.gen.go index 80231cde..9d367586 100644 --- a/macos/vision/recognize_text_request.gen.go +++ b/macos/vision/recognize_text_request.gen.go @@ -19,16 +19,16 @@ type _RecognizeTextRequestClass struct { type IRecognizeTextRequest interface { IImageBasedRequest SupportedRecognitionLanguagesAndReturnError(error unsafe.Pointer) []string - RecognitionLanguages() []string - SetRecognitionLanguages(value []string) RecognitionLevel() RequestTextRecognitionLevel SetRecognitionLevel(value RequestTextRecognitionLevel) + UsesLanguageCorrection() bool + SetUsesLanguageCorrection(value bool) MinimumTextHeight() float32 SetMinimumTextHeight(value float32) + RecognitionLanguages() []string + SetRecognitionLanguages(value []string) CustomWords() []string SetCustomWords(value []string) - UsesLanguageCorrection() bool - SetUsesLanguageCorrection(value bool) } // An image analysis request that finds and recognizes text in an image. [Full Topic] @@ -86,21 +86,6 @@ func (r_ RecognizeTextRequest) SupportedRecognitionLanguagesAndReturnError(error return rv } -// An array of languages to detect, in priority order. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3152642-recognitionlanguages?language=objc -func (r_ RecognizeTextRequest) RecognitionLanguages() []string { - rv := objc.Call[[]string](r_, objc.Sel("recognitionLanguages")) - return rv -} - -// An array of languages to detect, in priority order. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3152642-recognitionlanguages?language=objc -func (r_ RecognizeTextRequest) SetRecognitionLanguages(value []string) { - objc.Call[objc.Void](r_, objc.Sel("setRecognitionLanguages:"), value) -} - // A value that determines whether the request prioritizes accuracy or speed in text recognition. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3152643-recognitionlevel?language=objc @@ -116,6 +101,21 @@ func (r_ RecognizeTextRequest) SetRecognitionLevel(value RequestTextRecognitionL objc.Call[objc.Void](r_, objc.Sel("setRecognitionLevel:"), value) } +// A Boolean value that indicates whether the request applies language correction during the recognition process. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3166773-useslanguagecorrection?language=objc +func (r_ RecognizeTextRequest) UsesLanguageCorrection() bool { + rv := objc.Call[bool](r_, objc.Sel("usesLanguageCorrection")) + return rv +} + +// A Boolean value that indicates whether the request applies language correction during the recognition process. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3166773-useslanguagecorrection?language=objc +func (r_ RecognizeTextRequest) SetUsesLanguageCorrection(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setUsesLanguageCorrection:"), value) +} + // The minimum height, relative to the image height, of the text to recognize. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3152641-minimumtextheight?language=objc @@ -131,6 +131,21 @@ func (r_ RecognizeTextRequest) SetMinimumTextHeight(value float32) { objc.Call[objc.Void](r_, objc.Sel("setMinimumTextHeight:"), value) } +// An array of languages to detect, in priority order. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3152642-recognitionlanguages?language=objc +func (r_ RecognizeTextRequest) RecognitionLanguages() []string { + rv := objc.Call[[]string](r_, objc.Sel("recognitionLanguages")) + return rv +} + +// An array of languages to detect, in priority order. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3152642-recognitionlanguages?language=objc +func (r_ RecognizeTextRequest) SetRecognitionLanguages(value []string) { + objc.Call[objc.Void](r_, objc.Sel("setRecognitionLanguages:"), value) +} + // An array of strings to supplement the recognized languages at the word-recognition stage. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3152640-customwords?language=objc @@ -145,18 +160,3 @@ func (r_ RecognizeTextRequest) CustomWords() []string { func (r_ RecognizeTextRequest) SetCustomWords(value []string) { objc.Call[objc.Void](r_, objc.Sel("setCustomWords:"), value) } - -// A Boolean value that indicates whether the request applies language correction during the recognition process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3166773-useslanguagecorrection?language=objc -func (r_ RecognizeTextRequest) UsesLanguageCorrection() bool { - rv := objc.Call[bool](r_, objc.Sel("usesLanguageCorrection")) - return rv -} - -// A Boolean value that indicates whether the request applies language correction during the recognition process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizetextrequest/3166773-useslanguagecorrection?language=objc -func (r_ RecognizeTextRequest) SetUsesLanguageCorrection(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setUsesLanguageCorrection:"), value) -} diff --git a/macos/vision/recognized_point.gen.go b/macos/vision/recognized_point.gen.go index 92865f17..998c7df6 100644 --- a/macos/vision/recognized_point.gen.go +++ b/macos/vision/recognized_point.gen.go @@ -55,30 +55,30 @@ func (r_ RecognizedPoint) Init() RecognizedPoint { return rv } -func (r_ RecognizedPoint) InitWithLocation(location coregraphics.Point) RecognizedPoint { - rv := objc.Call[RecognizedPoint](r_, objc.Sel("initWithLocation:"), location) +func (r_ RecognizedPoint) InitWithXY(x float64, y float64) RecognizedPoint { + rv := objc.Call[RecognizedPoint](r_, objc.Sel("initWithX:y:"), x, y) return rv } -// Creates a point object from the specified Core Graphics point. [Full Topic] +// Creates a point object with the specified coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548330-initwithlocation?language=objc -func NewRecognizedPointWithLocation(location coregraphics.Point) RecognizedPoint { - instance := RecognizedPointClass.Alloc().InitWithLocation(location) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548331-initwithx?language=objc +func NewRecognizedPointWithXY(x float64, y float64) RecognizedPoint { + instance := RecognizedPointClass.Alloc().InitWithXY(x, y) instance.Autorelease() return instance } -func (r_ RecognizedPoint) InitWithXY(x float64, y float64) RecognizedPoint { - rv := objc.Call[RecognizedPoint](r_, objc.Sel("initWithX:y:"), x, y) +func (r_ RecognizedPoint) InitWithLocation(location coregraphics.Point) RecognizedPoint { + rv := objc.Call[RecognizedPoint](r_, objc.Sel("initWithLocation:"), location) return rv } -// Creates a point object with the specified coordinates. [Full Topic] +// Creates a point object from the specified Core Graphics point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548331-initwithx?language=objc -func NewRecognizedPointWithXY(x float64, y float64) RecognizedPoint { - instance := RecognizedPointClass.Alloc().InitWithXY(x, y) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548330-initwithlocation?language=objc +func NewRecognizedPointWithLocation(location coregraphics.Point) RecognizedPoint { + instance := RecognizedPointClass.Alloc().InitWithLocation(location) instance.Autorelease() return instance } diff --git a/macos/vision/recognized_points_observation.gen.go b/macos/vision/recognized_points_observation.gen.go index 15d41970..75c167ce 100644 --- a/macos/vision/recognized_points_observation.gen.go +++ b/macos/vision/recognized_points_observation.gen.go @@ -22,8 +22,8 @@ type IRecognizedPointsObservation interface { RecognizedPointsForGroupKeyError(groupKey RecognizedPointGroupKey, error unsafe.Pointer) map[RecognizedPointKey]RecognizedPoint RecognizedPointForKeyError(pointKey RecognizedPointKey, error unsafe.Pointer) RecognizedPoint KeypointsMultiArrayAndReturnError(error unsafe.Pointer) coreml.MultiArray - AvailableGroupKeys() []RecognizedPointGroupKey AvailableKeys() []RecognizedPointKey + AvailableGroupKeys() []RecognizedPointGroupKey } // An observation that provides the points the analysis recognized. [Full Topic] @@ -83,14 +83,6 @@ func (r_ RecognizedPointsObservation) KeypointsMultiArrayAndReturnError(error un return rv } -// The available point group keys in the observation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizedpointsobservation/3618960-availablegroupkeys?language=objc -func (r_ RecognizedPointsObservation) AvailableGroupKeys() []RecognizedPointGroupKey { - rv := objc.Call[[]RecognizedPointGroupKey](r_, objc.Sel("availableGroupKeys")) - return rv -} - // The available point keys in the observation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizedpointsobservation/3656174-availablekeys?language=objc @@ -98,3 +90,11 @@ func (r_ RecognizedPointsObservation) AvailableKeys() []RecognizedPointKey { rv := objc.Call[[]RecognizedPointKey](r_, objc.Sel("availableKeys")) return rv } + +// The available point group keys in the observation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizedpointsobservation/3618960-availablegroupkeys?language=objc +func (r_ RecognizedPointsObservation) AvailableGroupKeys() []RecognizedPointGroupKey { + rv := objc.Call[[]RecognizedPointGroupKey](r_, objc.Sel("availableGroupKeys")) + return rv +} diff --git a/macos/vision/rectangle_observation.gen.go b/macos/vision/rectangle_observation.gen.go index 8f6e8c10..f29fe5a2 100644 --- a/macos/vision/rectangle_observation.gen.go +++ b/macos/vision/rectangle_observation.gen.go @@ -19,8 +19,8 @@ type _RectangleObservationClass struct { // An interface definition for the [RectangleObservation] class. type IRectangleObservation interface { IDetectedObjectObservation - BottomLeft() coregraphics.Point BottomRight() coregraphics.Point + BottomLeft() coregraphics.Point TopRight() coregraphics.Point TopLeft() coregraphics.Point } @@ -82,14 +82,6 @@ func RectangleObservation_ObservationWithRequestRevisionBoundingBox(requestRevis return RectangleObservationClass.ObservationWithRequestRevisionBoundingBox(requestRevision, boundingBox) } -// The coordinates of the lower-left corner of the observation bounding box. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrectangleobservation/2867201-bottomleft?language=objc -func (r_ RectangleObservation) BottomLeft() coregraphics.Point { - rv := objc.Call[coregraphics.Point](r_, objc.Sel("bottomLeft")) - return rv -} - // The coordinates of the lower-right corner of the observation bounding box. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrectangleobservation/2867226-bottomright?language=objc @@ -98,6 +90,14 @@ func (r_ RectangleObservation) BottomRight() coregraphics.Point { return rv } +// The coordinates of the lower-left corner of the observation bounding box. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnrectangleobservation/2867201-bottomleft?language=objc +func (r_ RectangleObservation) BottomLeft() coregraphics.Point { + rv := objc.Call[coregraphics.Point](r_, objc.Sel("bottomLeft")) + return rv +} + // The coordinates of the upper-right corner of the observation bounding box. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrectangleobservation/2867233-topright?language=objc diff --git a/macos/vision/request.gen.go b/macos/vision/request.gen.go index cec1c644..f9ebda94 100644 --- a/macos/vision/request.gen.go +++ b/macos/vision/request.gen.go @@ -82,29 +82,6 @@ func (r_ Request) Cancel() { objc.Call[objc.Void](r_, objc.Sel("cancel")) } -// The collection of VNObservation results generated by request processing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2867238-results?language=objc -func (r_ Request) Results() []Observation { - rv := objc.Call[[]Observation](r_, objc.Sel("results")) - return rv -} - -// A hint to minimize the resource burden of the request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2875404-preferbackgroundprocessing?language=objc -func (r_ Request) PreferBackgroundProcessing() bool { - rv := objc.Call[bool](r_, objc.Sel("preferBackgroundProcessing")) - return rv -} - -// A hint to minimize the resource burden of the request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2875404-preferbackgroundprocessing?language=objc -func (r_ Request) SetPreferBackgroundProcessing(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setPreferBackgroundProcessing:"), value) -} - // The current revison supported by the request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2967108-currentrevision?language=objc @@ -120,14 +97,6 @@ func Request_CurrentRevision() uint { return RequestClass.CurrentRevision() } -// The completion handler the system invokes after the request finishes processing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2867266-completionhandler?language=objc -func (r_ Request) CompletionHandler() RequestCompletionHandler { - rv := objc.Call[RequestCompletionHandler](r_, objc.Sel("completionHandler")) - return rv -} - // The collection of currently-supported algorithm versions for the class of request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2967111-supportedrevisions?language=objc @@ -158,6 +127,37 @@ func Request_DefaultRevision() uint { return RequestClass.DefaultRevision() } +// The collection of VNObservation results generated by request processing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2867238-results?language=objc +func (r_ Request) Results() []Observation { + rv := objc.Call[[]Observation](r_, objc.Sel("results")) + return rv +} + +// A hint to minimize the resource burden of the request. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2875404-preferbackgroundprocessing?language=objc +func (r_ Request) PreferBackgroundProcessing() bool { + rv := objc.Call[bool](r_, objc.Sel("preferBackgroundProcessing")) + return rv +} + +// A hint to minimize the resource burden of the request. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2875404-preferbackgroundprocessing?language=objc +func (r_ Request) SetPreferBackgroundProcessing(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setPreferBackgroundProcessing:"), value) +} + +// The completion handler the system invokes after the request finishes processing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2867266-completionhandler?language=objc +func (r_ Request) CompletionHandler() RequestCompletionHandler { + rv := objc.Call[RequestCompletionHandler](r_, objc.Sel("completionHandler")) + return rv +} + // The specific algorithm or implementation revision that’s used to perform the request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2967110-revision?language=objc diff --git a/macos/vision/sequence_request_handler.gen.go b/macos/vision/sequence_request_handler.gen.go index e289d729..ddac1bb3 100644 --- a/macos/vision/sequence_request_handler.gen.go +++ b/macos/vision/sequence_request_handler.gen.go @@ -5,12 +5,7 @@ package vision import ( "unsafe" - "github.com/progrium/darwinkit/macos/coregraphics" - "github.com/progrium/darwinkit/macos/coreimage" "github.com/progrium/darwinkit/macos/coremedia" - "github.com/progrium/darwinkit/macos/corevideo" - "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/macos/imageio" "github.com/progrium/darwinkit/objc" ) @@ -24,17 +19,6 @@ type _SequenceRequestHandlerClass struct { // An interface definition for the [SequenceRequestHandler] class. type ISequenceRequestHandler interface { objc.IObject - PerformRequestsOnCVPixelBufferError(requests []IRequest, pixelBuffer corevideo.PixelBufferRef, error unsafe.Pointer) bool - PerformRequestsOnImageDataError(requests []IRequest, imageData []byte, error unsafe.Pointer) bool - PerformRequestsOnCVPixelBufferOrientationError(requests []IRequest, pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool - PerformRequestsOnCGImageOrientationError(requests []IRequest, image coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool - PerformRequestsOnCIImageOrientationError(requests []IRequest, image coreimage.IImage, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool - PerformRequestsOnCMSampleBufferOrientationError(requests []IRequest, sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool - PerformRequestsOnCGImageError(requests []IRequest, image coregraphics.ImageRef, error unsafe.Pointer) bool - PerformRequestsOnImageDataOrientationError(requests []IRequest, imageData []byte, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool - PerformRequestsOnCIImageError(requests []IRequest, image coreimage.IImage, error unsafe.Pointer) bool - PerformRequestsOnImageURLError(requests []IRequest, imageURL foundation.IURL, error unsafe.Pointer) bool - PerformRequestsOnImageURLOrientationError(requests []IRequest, imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool PerformRequestsOnCMSampleBufferError(requests []IRequest, sampleBuffer coremedia.SampleBufferRef, error unsafe.Pointer) bool } @@ -71,94 +55,6 @@ func NewSequenceRequestHandler() SequenceRequestHandler { return SequenceRequestHandlerClass.New() } -// Schedules one or more Vision requests to be performed on a Core Video pixel buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/2880307-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnCVPixelBufferError(requests []IRequest, pixelBuffer corevideo.PixelBufferRef, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onCVPixelBuffer:error:"), requests, pixelBuffer, error) - return rv -} - -// Schedules one or more Vision requests to be performed on raw image data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/2880302-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnImageDataError(requests []IRequest, imageData []byte, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onImageData:error:"), requests, imageData, error) - return rv -} - -// Schedules one or more Vision requests to be performed on a Core Video pixel buffer with known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/2880308-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnCVPixelBufferOrientationError(requests []IRequest, pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onCVPixelBuffer:orientation:error:"), requests, pixelBuffer, orientation, error) - return rv -} - -// Schedules one or more Vision requests to be performed on a Core Graphics image with known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/2880298-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnCGImageOrientationError(requests []IRequest, image coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onCGImage:orientation:error:"), requests, image, orientation, error) - return rv -} - -// Schedules one or more Vision requests to be performed on CIImage data with known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/2880301-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnCIImageOrientationError(requests []IRequest, image coreimage.IImage, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onCIImage:orientation:error:"), requests, image, orientation, error) - return rv -} - -// Performs one or more requests on an image of a specified orientation contained within a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/3571273-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnCMSampleBufferOrientationError(requests []IRequest, sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onCMSampleBuffer:orientation:error:"), requests, sampleBuffer, orientation, error) - return rv -} - -// Schedules Vision requests to be performed on a Core Graphics image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/2880300-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnCGImageError(requests []IRequest, image coregraphics.ImageRef, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onCGImage:error:"), requests, image, error) - return rv -} - -// Schedules one or more Vision requests to be performed on raw data containing an image with known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/2881930-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnImageDataOrientationError(requests []IRequest, imageData []byte, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onImageData:orientation:error:"), requests, imageData, orientation, error) - return rv -} - -// Schedules one or more Vision requests to be performed on CIImage data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/2880305-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnCIImageError(requests []IRequest, image coreimage.IImage, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onCIImage:error:"), requests, image, error) - return rv -} - -// Schedules one or more Vision requests to be performed on an image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/2880299-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnImageURLError(requests []IRequest, imageURL foundation.IURL, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onImageURL:error:"), requests, imageURL, error) - return rv -} - -// Schedules one or more Vision requests to be performed on an image with known orientation, at a specific URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/2881927-performrequests?language=objc -func (s_ SequenceRequestHandler) PerformRequestsOnImageURLOrientationError(requests []IRequest, imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, error unsafe.Pointer) bool { - rv := objc.Call[bool](s_, objc.Sel("performRequests:onImageURL:orientation:error:"), requests, imageURL, orientation, error) - return rv -} - // Performs one or more requests on an image contained within a sample buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnsequencerequesthandler/3571272-performrequests?language=objc diff --git a/macos/vision/stateful_request.gen.go b/macos/vision/stateful_request.gen.go index 8bb671fb..abe3f625 100644 --- a/macos/vision/stateful_request.gen.go +++ b/macos/vision/stateful_request.gen.go @@ -19,8 +19,8 @@ type _StatefulRequestClass struct { // An interface definition for the [StatefulRequest] class. type IStatefulRequest interface { IImageBasedRequest - FrameAnalysisSpacing() coremedia.Time MinimumLatencyFrameCount() int + FrameAnalysisSpacing() coremedia.Time } // An abstract request type that builds evidence of a condition over time. [Full Topic] @@ -84,14 +84,6 @@ func NewStatefulRequestWithCompletionHandler(completionHandler RequestCompletion return instance } -// A time value that indicates the interval between analysis operations. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnstatefulrequest/3675676-frameanalysisspacing?language=objc -func (s_ StatefulRequest) FrameAnalysisSpacing() coremedia.Time { - rv := objc.Call[coremedia.Time](s_, objc.Sel("frameAnalysisSpacing")) - return rv -} - // The minimum number of frames a request processes before reporting an observation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnstatefulrequest/3564829-minimumlatencyframecount?language=objc @@ -99,3 +91,11 @@ func (s_ StatefulRequest) MinimumLatencyFrameCount() int { rv := objc.Call[int](s_, objc.Sel("minimumLatencyFrameCount")) return rv } + +// A time value that indicates the interval between analysis operations. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnstatefulrequest/3675676-frameanalysisspacing?language=objc +func (s_ StatefulRequest) FrameAnalysisSpacing() coremedia.Time { + rv := objc.Call[coremedia.Time](s_, objc.Sel("frameAnalysisSpacing")) + return rv +} diff --git a/macos/vision/targeted_image_request.gen.go b/macos/vision/targeted_image_request.gen.go index 1b852d69..c9b28669 100644 --- a/macos/vision/targeted_image_request.gen.go +++ b/macos/vision/targeted_image_request.gen.go @@ -10,7 +10,6 @@ import ( "github.com/progrium/darwinkit/macos/coremedia" "github.com/progrium/darwinkit/macos/corevideo" "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/macos/imageio" "github.com/progrium/darwinkit/objc" ) @@ -39,226 +38,16 @@ func TargetedImageRequestFrom(ptr unsafe.Pointer) TargetedImageRequest { } } -func (t_ TargetedImageRequest) InitWithTargetedCGImageOrientationOptions(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCGImage:orientation:options:"), cgImage, orientation, options) - return rv -} - -// Creates a new request targeting a Core Graphics image of known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923444-initwithtargetedcgimage?language=objc -func NewTargetedImageRequestWithTargetedCGImageOrientationOptions(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCGImageOrientationOptions(cgImage, orientation, options) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) - return rv -} - -// Creates a new request targeting a Core Graphics image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923452-initwithtargetedcgimage?language=objc -func NewTargetedImageRequestWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCGImageOptions(cgImage, options) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedImageURLOptionsCompletionHandler(imageURL foundation.IURL, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageURL:options:completionHandler:"), imageURL, options, completionHandler) - return rv -} - -// Creates a new request targeting an image at the specified URL, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923453-initwithtargetedimageurl?language=objc -func NewTargetedImageRequestWithTargetedImageURLOptionsCompletionHandler(imageURL foundation.IURL, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedImageURLOptionsCompletionHandler(imageURL, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageData:options:"), imageData, options) - return rv -} - -// Creates a new request targeting an image as raw data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923460-initwithtargetedimagedata?language=objc -func NewTargetedImageRequestWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedImageDataOptions(imageData, options) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCVPixelBuffer:options:completionHandler:"), pixelBuffer, options, completionHandler) - return rv -} - -// Creates a new request targeting an image in a CVPixelBufferRef, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923446-initwithtargetedcvpixelbuffer?language=objc -func NewTargetedImageRequestWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCMSampleBuffer:options:completionHandler:"), sampleBuffer, options, completionHandler) - return rv -} - -// Creates a new request with a completion handler that targets an image in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571275-initwithtargetedcmsamplebuffer?language=objc -func NewTargetedImageRequestWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageData:orientation:options:completionHandler:"), imageData, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a raw data image of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923443-initwithtargetedimagedata?language=objc -func NewTargetedImageRequestWithTargetedImageDataOrientationOptionsCompletionHandler(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCMSampleBuffer:orientation:options:"), sampleBuffer, orientation, options) - return rv -} - -// Creates a new request that targets an image of a known orientation in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571276-initwithtargetedcmsamplebuffer?language=objc -func NewTargetedImageRequestWithTargetedCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer, orientation, options) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCVPixelBuffer:options:"), pixelBuffer, options) - return rv -} - -// Creates a new request targeting an image in a CVPixelBufferRef. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923445-initwithtargetedcvpixelbuffer?language=objc -func NewTargetedImageRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageData:options:completionHandler:"), imageData, options, completionHandler) - return rv -} - -// Creates a new request targeting an image as raw data, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923455-initwithtargetedimagedata?language=objc -func NewTargetedImageRequestWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedImageDataOptionsCompletionHandler(imageData, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCIImageOptionsCompletionHandler(ciImage coreimage.IImage, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCIImage:options:completionHandler:"), ciImage, options, completionHandler) - return rv -} - -// Creates a new request targeting a CIImage, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923454-initwithtargetedciimage?language=objc -func NewTargetedImageRequestWithTargetedCIImageOptionsCompletionHandler(ciImage coreimage.IImage, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCIImageOptionsCompletionHandler(ciImage, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCIImageOrientationOptions(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCIImage:orientation:options:"), ciImage, orientation, options) - return rv -} - -// Creates a new request targeting a CIImage of known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923459-initwithtargetedciimage?language=objc -func NewTargetedImageRequestWithTargetedCIImageOrientationOptions(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCIImageOrientationOptions(ciImage, orientation, options) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedImageURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageURL:orientation:options:"), imageURL, orientation, options) - return rv -} - -// Creates a new request targeting an image of known orientation, at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923456-initwithtargetedimageurl?language=objc -func NewTargetedImageRequestWithTargetedImageURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedImageURLOrientationOptions(imageURL, orientation, options) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCIImage:orientation:options:completionHandler:"), ciImage, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a CIImage of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923451-initwithtargetedciimage?language=objc -func NewTargetedImageRequestWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCGImage:options:completionHandler:"), cgImage, options, completionHandler) - return rv -} - -// Creates a new request targeting a Core Graphics image, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923448-initwithtargetedcgimage?language=objc -func NewTargetedImageRequestWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCGImageOptionsCompletionHandler(cgImage, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedImageDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageData:orientation:options:"), imageData, orientation, options) +func (t_ TargetedImageRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TargetedImageRequest { + rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageURL:options:"), imageURL, options) return rv } -// Creates a new request targeting a raw data image of known orientation. [Full Topic] +// Creates a new request targeting an image at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923441-initwithtargetedimagedata?language=objc -func NewTargetedImageRequestWithTargetedImageDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedImageDataOrientationOptions(imageData, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923458-initwithtargetedimageurl?language=objc +func NewTargetedImageRequestWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TargetedImageRequest { + instance := TargetedImageRequestClass.Alloc().InitWithTargetedImageURLOptions(imageURL, options) instance.Autorelease() return instance } @@ -277,34 +66,6 @@ func NewTargetedImageRequestWithTargetedCMSampleBufferOptions(sampleBuffer corem return instance } -func (t_ TargetedImageRequest) InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageURL:orientation:options:completionHandler:"), imageURL, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting an image of known orientation, at the specified URL, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923457-initwithtargetedimageurl?language=objc -func NewTargetedImageRequestWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCMSampleBuffer:orientation:options:completionHandler:"), sampleBuffer, orientation, options, completionHandler) - return rv -} - -// Creates a new request with a completion handler that targets an image of a known orientation in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571277-initwithtargetedcmsamplebuffer?language=objc -func NewTargetedImageRequestWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - func (t_ TargetedImageRequest) InitWithTargetedCIImageOptions(ciImage coreimage.IImage, options map[ImageOption]objc.IObject) TargetedImageRequest { rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCIImage:options:"), ciImage, options) return rv @@ -319,58 +80,44 @@ func NewTargetedImageRequestWithTargetedCIImageOptions(ciImage coreimage.IImage, return instance } -func (t_ TargetedImageRequest) InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCGImage:orientation:options:completionHandler:"), cgImage, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a Core Graphics image of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923450-initwithtargetedcgimage?language=objc -func NewTargetedImageRequestWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCVPixelBuffer:orientation:options:"), pixelBuffer, orientation, options) +func (t_ TargetedImageRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) TargetedImageRequest { + rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCVPixelBuffer:options:"), pixelBuffer, options) return rv } -// Creates a new request targeting an image in a CVPixelBufferRef of known orientation. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923442-initwithtargetedcvpixelbuffer?language=objc -func NewTargetedImageRequestWithTargetedCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923445-initwithtargetedcvpixelbuffer?language=objc +func NewTargetedImageRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) TargetedImageRequest { + instance := TargetedImageRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) instance.Autorelease() return instance } -func (t_ TargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCVPixelBuffer:orientation:options:completionHandler:"), pixelBuffer, orientation, options, completionHandler) +func (t_ TargetedImageRequest) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) TargetedImageRequest { + rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) return rv } -// Creates a new request targeting an image in a CVPixelBufferRef of known orientation, executing the completion handler when done. [Full Topic] +// Creates a new request targeting a Core Graphics image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923449-initwithtargetedcvpixelbuffer?language=objc -func NewTargetedImageRequestWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer, orientation, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923452-initwithtargetedcgimage?language=objc +func NewTargetedImageRequestWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) TargetedImageRequest { + instance := TargetedImageRequestClass.Alloc().InitWithTargetedCGImageOptions(cgImage, options) instance.Autorelease() return instance } -func (t_ TargetedImageRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageURL:options:"), imageURL, options) +func (t_ TargetedImageRequest) InitWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) TargetedImageRequest { + rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageData:options:"), imageData, options) return rv } -// Creates a new request targeting an image at the specified URL. [Full Topic] +// Creates a new request targeting an image as raw data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923458-initwithtargetedimageurl?language=objc -func NewTargetedImageRequestWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedImageURLOptions(imageURL, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923460-initwithtargetedimagedata?language=objc +func NewTargetedImageRequestWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) TargetedImageRequest { + instance := TargetedImageRequestClass.Alloc().InitWithTargetedImageDataOptions(imageData, options) instance.Autorelease() return instance } diff --git a/macos/vision/track_object_request.gen.go b/macos/vision/track_object_request.gen.go index b5d98683..fa69dd49 100644 --- a/macos/vision/track_object_request.gen.go +++ b/macos/vision/track_object_request.gen.go @@ -33,20 +33,6 @@ func TrackObjectRequestFrom(ptr unsafe.Pointer) TrackObjectRequest { } } -func (t_ TrackObjectRequest) InitWithDetectedObjectObservationCompletionHandler(observation IDetectedObjectObservation, completionHandler RequestCompletionHandler) TrackObjectRequest { - rv := objc.Call[TrackObjectRequest](t_, objc.Sel("initWithDetectedObjectObservation:completionHandler:"), observation, completionHandler) - return rv -} - -// Creates a new object tracking request with a detected object observation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntrackobjectrequest/2887295-initwithdetectedobjectobservatio?language=objc -func NewTrackObjectRequestWithDetectedObjectObservationCompletionHandler(observation IDetectedObjectObservation, completionHandler RequestCompletionHandler) TrackObjectRequest { - instance := TrackObjectRequestClass.Alloc().InitWithDetectedObjectObservationCompletionHandler(observation, completionHandler) - instance.Autorelease() - return instance -} - func (t_ TrackObjectRequest) InitWithDetectedObjectObservation(observation IDetectedObjectObservation) TrackObjectRequest { rv := objc.Call[TrackObjectRequest](t_, objc.Sel("initWithDetectedObjectObservation:"), observation) return rv diff --git a/macos/vision/track_rectangle_request.gen.go b/macos/vision/track_rectangle_request.gen.go index af00e922..56f26498 100644 --- a/macos/vision/track_rectangle_request.gen.go +++ b/macos/vision/track_rectangle_request.gen.go @@ -47,20 +47,6 @@ func NewTrackRectangleRequestWithRectangleObservation(observation IRectangleObse return instance } -func (t_ TrackRectangleRequest) InitWithRectangleObservationCompletionHandler(observation IRectangleObservation, completionHandler RequestCompletionHandler) TrackRectangleRequest { - rv := objc.Call[TrackRectangleRequest](t_, objc.Sel("initWithRectangleObservation:completionHandler:"), observation, completionHandler) - return rv -} - -// Creates a new rectangle tracking request with a rectangle observation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntrackrectanglerequest/2887357-initwithrectangleobservation?language=objc -func NewTrackRectangleRequestWithRectangleObservationCompletionHandler(observation IRectangleObservation, completionHandler RequestCompletionHandler) TrackRectangleRequest { - instance := TrackRectangleRequestClass.Alloc().InitWithRectangleObservationCompletionHandler(observation, completionHandler) - instance.Autorelease() - return instance -} - func (tc _TrackRectangleRequestClass) Alloc() TrackRectangleRequest { rv := objc.Call[TrackRectangleRequest](tc, objc.Sel("alloc")) return rv diff --git a/macos/vision/tracking_request.gen.go b/macos/vision/tracking_request.gen.go index a480fae1..8f761d9d 100644 --- a/macos/vision/tracking_request.gen.go +++ b/macos/vision/tracking_request.gen.go @@ -18,12 +18,12 @@ type _TrackingRequestClass struct { // An interface definition for the [TrackingRequest] class. type ITrackingRequest interface { IImageBasedRequest - TrackingLevel() RequestTrackingLevel - SetTrackingLevel(value RequestTrackingLevel) IsLastFrame() bool SetLastFrame(value bool) InputObservation() DetectedObjectObservation SetInputObservation(value IDetectedObjectObservation) + TrackingLevel() RequestTrackingLevel + SetTrackingLevel(value RequestTrackingLevel) } // The abstract superclass for image analysis requests that track unique features across multiple images or video frames. [Full Topic] @@ -73,21 +73,6 @@ func NewTrackingRequestWithCompletionHandler(completionHandler RequestCompletion return instance } -// A value for specifying whether to prioritize speed or location accuracy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntrackingrequest/2887353-trackinglevel?language=objc -func (t_ TrackingRequest) TrackingLevel() RequestTrackingLevel { - rv := objc.Call[RequestTrackingLevel](t_, objc.Sel("trackingLevel")) - return rv -} - -// A value for specifying whether to prioritize speed or location accuracy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntrackingrequest/2887353-trackinglevel?language=objc -func (t_ TrackingRequest) SetTrackingLevel(value RequestTrackingLevel) { - objc.Call[objc.Void](t_, objc.Sel("setTrackingLevel:"), value) -} - // A Boolean that indicates the last frame in a tracking sequence. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vntrackingrequest/2887356-lastframe?language=objc @@ -117,3 +102,18 @@ func (t_ TrackingRequest) InputObservation() DetectedObjectObservation { func (t_ TrackingRequest) SetInputObservation(value IDetectedObjectObservation) { objc.Call[objc.Void](t_, objc.Sel("setInputObservation:"), value) } + +// A value for specifying whether to prioritize speed or location accuracy. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vntrackingrequest/2887353-trackinglevel?language=objc +func (t_ TrackingRequest) TrackingLevel() RequestTrackingLevel { + rv := objc.Call[RequestTrackingLevel](t_, objc.Sel("trackingLevel")) + return rv +} + +// A value for specifying whether to prioritize speed or location accuracy. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vntrackingrequest/2887353-trackinglevel?language=objc +func (t_ TrackingRequest) SetTrackingLevel(value RequestTrackingLevel) { + objc.Call[objc.Void](t_, objc.Sel("setTrackingLevel:"), value) +} diff --git a/macos/vision/trajectory_observation.gen.go b/macos/vision/trajectory_observation.gen.go index ca0ed2cb..796778df 100644 --- a/macos/vision/trajectory_observation.gen.go +++ b/macos/vision/trajectory_observation.gen.go @@ -18,10 +18,10 @@ type _TrajectoryObservationClass struct { // An interface definition for the [TrajectoryObservation] class. type ITrajectoryObservation interface { IObservation - EquationCoefficients() objc.Object - DetectedPoints() []Point MovingAverageRadius() float64 + DetectedPoints() []Point ProjectedPoints() []Point + EquationCoefficients() objc.Object } // An observation that describes a detected trajectory. [Full Topic] @@ -57,11 +57,11 @@ func (t_ TrajectoryObservation) Init() TrajectoryObservation { return rv } -// The coefficients of the parabolic equation. [Full Topic] +// The moving average radius of the object the request is tracking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation/3564825-equationcoefficients?language=objc -func (t_ TrajectoryObservation) EquationCoefficients() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("equationCoefficients")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation/3751001-movingaverageradius?language=objc +func (t_ TrajectoryObservation) MovingAverageRadius() float64 { + rv := objc.Call[float64](t_, objc.Sel("movingAverageRadius")) return rv } @@ -73,14 +73,6 @@ func (t_ TrajectoryObservation) DetectedPoints() []Point { return rv } -// The moving average radius of the object the request is tracking. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation/3751001-movingaverageradius?language=objc -func (t_ TrajectoryObservation) MovingAverageRadius() float64 { - rv := objc.Call[float64](t_, objc.Sel("movingAverageRadius")) - return rv -} - // The centroids of the calculated trajectory from the detected points. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation/3564826-projectedpoints?language=objc @@ -88,3 +80,11 @@ func (t_ TrajectoryObservation) ProjectedPoints() []Point { rv := objc.Call[[]Point](t_, objc.Sel("projectedPoints")) return rv } + +// The coefficients of the parabolic equation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation/3564825-equationcoefficients?language=objc +func (t_ TrajectoryObservation) EquationCoefficients() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("equationCoefficients")) + return rv +} diff --git a/macos/vision/translational_image_registration_request.gen.go b/macos/vision/translational_image_registration_request.gen.go index c773ed06..bd88d427 100644 --- a/macos/vision/translational_image_registration_request.gen.go +++ b/macos/vision/translational_image_registration_request.gen.go @@ -10,7 +10,6 @@ import ( "github.com/progrium/darwinkit/macos/coremedia" "github.com/progrium/darwinkit/macos/corevideo" "github.com/progrium/darwinkit/macos/foundation" - "github.com/progrium/darwinkit/macos/imageio" "github.com/progrium/darwinkit/objc" ) @@ -59,226 +58,16 @@ func (t_ TranslationalImageRegistrationRequest) Init() TranslationalImageRegistr return rv } -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCGImageOrientationOptions(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCGImage:orientation:options:"), cgImage, orientation, options) - return rv -} - -// Creates a new request targeting a Core Graphics image of known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923444-initwithtargetedcgimage?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCGImageOrientationOptions(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOrientationOptions(cgImage, orientation, options) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) - return rv -} - -// Creates a new request targeting a Core Graphics image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923452-initwithtargetedcgimage?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOptions(cgImage, options) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageURLOptionsCompletionHandler(imageURL foundation.IURL, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageURL:options:completionHandler:"), imageURL, options, completionHandler) - return rv -} - -// Creates a new request targeting an image at the specified URL, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923453-initwithtargetedimageurl?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedImageURLOptionsCompletionHandler(imageURL foundation.IURL, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOptionsCompletionHandler(imageURL, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageData:options:"), imageData, options) - return rv -} - -// Creates a new request targeting an image as raw data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923460-initwithtargetedimagedata?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOptions(imageData, options) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCVPixelBuffer:options:completionHandler:"), pixelBuffer, options, completionHandler) - return rv -} - -// Creates a new request targeting an image in a CVPixelBufferRef, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923446-initwithtargetedcvpixelbuffer?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCMSampleBuffer:options:completionHandler:"), sampleBuffer, options, completionHandler) - return rv -} - -// Creates a new request with a completion handler that targets an image in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571275-initwithtargetedcmsamplebuffer?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageData:orientation:options:completionHandler:"), imageData, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a raw data image of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923443-initwithtargetedimagedata?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedImageDataOrientationOptionsCompletionHandler(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCMSampleBuffer:orientation:options:"), sampleBuffer, orientation, options) - return rv -} - -// Creates a new request that targets an image of a known orientation in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571276-initwithtargetedcmsamplebuffer?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCMSampleBufferOrientationOptions(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer, orientation, options) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCVPixelBuffer:options:"), pixelBuffer, options) - return rv -} - -// Creates a new request targeting an image in a CVPixelBufferRef. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923445-initwithtargetedcvpixelbuffer?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageData:options:completionHandler:"), imageData, options, completionHandler) - return rv -} - -// Creates a new request targeting an image as raw data, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923455-initwithtargetedimagedata?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOptionsCompletionHandler(imageData, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCIImageOptionsCompletionHandler(ciImage coreimage.IImage, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCIImage:options:completionHandler:"), ciImage, options, completionHandler) - return rv -} - -// Creates a new request targeting a CIImage, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923454-initwithtargetedciimage?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCIImageOptionsCompletionHandler(ciImage coreimage.IImage, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCIImageOptionsCompletionHandler(ciImage, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCIImageOrientationOptions(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCIImage:orientation:options:"), ciImage, orientation, options) - return rv -} - -// Creates a new request targeting a CIImage of known orientation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923459-initwithtargetedciimage?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCIImageOrientationOptions(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCIImageOrientationOptions(ciImage, orientation, options) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageURL:orientation:options:"), imageURL, orientation, options) - return rv -} - -// Creates a new request targeting an image of known orientation, at the specified URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923456-initwithtargetedimageurl?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedImageURLOrientationOptions(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOrientationOptions(imageURL, orientation, options) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCIImage:orientation:options:completionHandler:"), ciImage, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a CIImage of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923451-initwithtargetedciimage?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage coreimage.IImage, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCGImage:options:completionHandler:"), cgImage, options, completionHandler) - return rv -} - -// Creates a new request targeting a Core Graphics image, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923448-initwithtargetedcgimage?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOptionsCompletionHandler(cgImage, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageData:orientation:options:"), imageData, orientation, options) +func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { + rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageURL:options:"), imageURL, options) return rv } -// Creates a new request targeting a raw data image of known orientation. [Full Topic] +// Creates a new request targeting an image at the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923441-initwithtargetedimagedata?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedImageDataOrientationOptions(imageData []byte, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOrientationOptions(imageData, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923458-initwithtargetedimageurl?language=objc +func NewTranslationalImageRegistrationRequestWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { + instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOptions(imageURL, options) instance.Autorelease() return instance } @@ -297,34 +86,6 @@ func NewTranslationalImageRegistrationRequestWithTargetedCMSampleBufferOptions(s return instance } -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageURL:orientation:options:completionHandler:"), imageURL, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting an image of known orientation, at the specified URL, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923457-initwithtargetedimageurl?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCMSampleBuffer:orientation:options:completionHandler:"), sampleBuffer, orientation, options, completionHandler) - return rv -} - -// Creates a new request with a completion handler that targets an image of a known orientation in a sample buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/3571277-initwithtargetedcmsamplebuffer?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCIImageOptions(ciImage coreimage.IImage, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCIImage:options:"), ciImage, options) return rv @@ -339,58 +100,44 @@ func NewTranslationalImageRegistrationRequestWithTargetedCIImageOptions(ciImage return instance } -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCGImage:orientation:options:completionHandler:"), cgImage, orientation, options, completionHandler) - return rv -} - -// Creates a new request targeting a Core Graphics image of known orientation, executing the completion handler when done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923450-initwithtargetedcgimage?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage, orientation, options, completionHandler) - instance.Autorelease() - return instance -} - -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCVPixelBuffer:orientation:options:"), pixelBuffer, orientation, options) +func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { + rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCVPixelBuffer:options:"), pixelBuffer, options) return rv } -// Creates a new request targeting an image in a CVPixelBufferRef of known orientation. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923442-initwithtargetedcvpixelbuffer?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCVPixelBufferOrientationOptions(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer, orientation, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923445-initwithtargetedcvpixelbuffer?language=objc +func NewTranslationalImageRegistrationRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { + instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) instance.Autorelease() return instance } -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCVPixelBuffer:orientation:options:completionHandler:"), pixelBuffer, orientation, options, completionHandler) +func (t_ TranslationalImageRegistrationRequest) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { + rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) return rv } -// Creates a new request targeting an image in a CVPixelBufferRef of known orientation, executing the completion handler when done. [Full Topic] +// Creates a new request targeting a Core Graphics image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923449-initwithtargetedcvpixelbuffer?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, options map[ImageOption]objc.IObject, completionHandler RequestCompletionHandler) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer, orientation, options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923452-initwithtargetedcgimage?language=objc +func NewTranslationalImageRegistrationRequestWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { + instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCGImageOptions(cgImage, options) instance.Autorelease() return instance } -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageURL:options:"), imageURL, options) +func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { + rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageData:options:"), imageData, options) return rv } -// Creates a new request targeting an image at the specified URL. [Full Topic] +// Creates a new request targeting an image as raw data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923458-initwithtargetedimageurl?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedImageURLOptions(imageURL, options) +// [Full Topic]: https://developer.apple.com/documentation/vision/vntargetedimagerequest/2923460-initwithtargetedimagedata?language=objc +func NewTranslationalImageRegistrationRequestWithTargetedImageDataOptions(imageData []byte, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { + instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedImageDataOptions(imageData, options) instance.Autorelease() return instance } diff --git a/macos/vision/vector.gen.go b/macos/vision/vector.gen.go index 9641e8b8..8319dfaf 100644 --- a/macos/vision/vector.gen.go +++ b/macos/vision/vector.gen.go @@ -18,12 +18,12 @@ type _VectorClass struct { // An interface definition for the [Vector] class. type IVector interface { objc.IObject - Length() float64 X() float64 - R() float64 Y() float64 - SquaredLength() float64 + R() float64 + Length() float64 Theta() float64 + SquaredLength() float64 } // An immutable, two-dimensional vector represented by its x-axis and y-axis projections. [Full Topic] @@ -101,21 +101,6 @@ func (v_ Vector) Init() Vector { return rv } -// Creates a new vector by adding the specified vectors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548347-vectorbyaddingvector?language=objc -func (vc _VectorClass) VectorByAddingVectorToVector(v1 IVector, v2 IVector) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorByAddingVector:toVector:"), v1, v2) - return rv -} - -// Creates a new vector by adding the specified vectors. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548347-vectorbyaddingvector?language=objc -func Vector_VectorByAddingVectorToVector(v1 IVector, v2 IVector) Vector { - return VectorClass.VectorByAddingVectorToVector(v1, v2) -} - // Creates a new vector by subtracting the first vector from the second vector. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548349-vectorbysubtractingvector?language=objc @@ -131,21 +116,6 @@ func Vector_VectorBySubtractingVectorFromVector(v1 IVector, v2 IVector) Vector { return VectorClass.VectorBySubtractingVectorFromVector(v1, v2) } -// Creates a new vector by multiplying the specified vector’s x-axis and y-axis projections by the scalar value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548348-vectorbymultiplyingvector?language=objc -func (vc _VectorClass) VectorByMultiplyingVectorByScalar(vector IVector, scalar float64) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorByMultiplyingVector:byScalar:"), vector, scalar) - return rv -} - -// Creates a new vector by multiplying the specified vector’s x-axis and y-axis projections by the scalar value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548348-vectorbymultiplyingvector?language=objc -func Vector_VectorByMultiplyingVectorByScalar(vector IVector, scalar float64) Vector { - return VectorClass.VectorByMultiplyingVectorByScalar(vector, scalar) -} - // Caclulates the dot product of two vectors. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548338-dotproductofvector?language=objc @@ -176,29 +146,36 @@ func Vector_UnitVectorForVector(vector IVector) Vector { return VectorClass.UnitVectorForVector(vector) } -// A vector object with zero length. [Full Topic] +// Creates a new vector by adding the specified vectors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548352-zerovector?language=objc -func (vc _VectorClass) ZeroVector() Vector { - rv := objc.Call[Vector](vc, objc.Sel("zeroVector")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548347-vectorbyaddingvector?language=objc +func (vc _VectorClass) VectorByAddingVectorToVector(v1 IVector, v2 IVector) Vector { + rv := objc.Call[Vector](vc, objc.Sel("vectorByAddingVector:toVector:"), v1, v2) return rv } -// A vector object with zero length. [Full Topic] +// Creates a new vector by adding the specified vectors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548352-zerovector?language=objc -func Vector_ZeroVector() Vector { - return VectorClass.ZeroVector() +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548347-vectorbyaddingvector?language=objc +func Vector_VectorByAddingVectorToVector(v1 IVector, v2 IVector) Vector { + return VectorClass.VectorByAddingVectorToVector(v1, v2) } -// The length, or absolute value, of the vector. [Full Topic] +// Creates a new vector by multiplying the specified vector’s x-axis and y-axis projections by the scalar value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548342-length?language=objc -func (v_ Vector) Length() float64 { - rv := objc.Call[float64](v_, objc.Sel("length")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548348-vectorbymultiplyingvector?language=objc +func (vc _VectorClass) VectorByMultiplyingVectorByScalar(vector IVector, scalar float64) Vector { + rv := objc.Call[Vector](vc, objc.Sel("vectorByMultiplyingVector:byScalar:"), vector, scalar) return rv } +// Creates a new vector by multiplying the specified vector’s x-axis and y-axis projections by the scalar value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548348-vectorbymultiplyingvector?language=objc +func Vector_VectorByMultiplyingVectorByScalar(vector IVector, scalar float64) Vector { + return VectorClass.VectorByMultiplyingVectorByScalar(vector, scalar) +} + // A signed projection that indicates the vector’s direction on the x-axis. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548350-x?language=objc @@ -207,14 +184,6 @@ func (v_ Vector) X() float64 { return rv } -// The radius, absolute value, or length of the vector. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548343-r?language=objc -func (v_ Vector) R() float64 { - rv := objc.Call[float64](v_, objc.Sel("r")) - return rv -} - // A signed projection that indicates the vector’s direction on the y-axis. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548351-y?language=objc @@ -223,11 +192,34 @@ func (v_ Vector) Y() float64 { return rv } -// The squared length of the vector. [Full Topic] +// A vector object with zero length. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548344-squaredlength?language=objc -func (v_ Vector) SquaredLength() float64 { - rv := objc.Call[float64](v_, objc.Sel("squaredLength")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548352-zerovector?language=objc +func (vc _VectorClass) ZeroVector() Vector { + rv := objc.Call[Vector](vc, objc.Sel("zeroVector")) + return rv +} + +// A vector object with zero length. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548352-zerovector?language=objc +func Vector_ZeroVector() Vector { + return VectorClass.ZeroVector() +} + +// The radius, absolute value, or length of the vector. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548343-r?language=objc +func (v_ Vector) R() float64 { + rv := objc.Call[float64](v_, objc.Sel("r")) + return rv +} + +// The length, or absolute value, of the vector. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548342-length?language=objc +func (v_ Vector) Length() float64 { + rv := objc.Call[float64](v_, objc.Sel("length")) return rv } @@ -238,3 +230,11 @@ func (v_ Vector) Theta() float64 { rv := objc.Call[float64](v_, objc.Sel("theta")) return rv } + +// The squared length of the vector. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548344-squaredlength?language=objc +func (v_ Vector) SquaredLength() float64 { + rv := objc.Call[float64](v_, objc.Sel("squaredLength")) + return rv +} diff --git a/macos/vision/video_processor.gen.go b/macos/vision/video_processor.gen.go index 0f87cd8e..1227d49c 100644 --- a/macos/vision/video_processor.gen.go +++ b/macos/vision/video_processor.gen.go @@ -20,9 +20,9 @@ type _VideoProcessorClass struct { // An interface definition for the [VideoProcessor] class. type IVideoProcessor interface { objc.IObject - RemoveRequestError(request IRequest, error unsafe.Pointer) bool AddRequestProcessingOptionsError(request IRequest, processingOptions IVideoProcessorRequestProcessingOptions, error unsafe.Pointer) bool AnalyzeTimeRangeError(timeRange coremedia.TimeRange, error unsafe.Pointer) bool + RemoveRequestError(request IRequest, error unsafe.Pointer) bool Cancel() } @@ -73,14 +73,6 @@ func (v_ VideoProcessor) Init() VideoProcessor { return rv } -// Removes a Vision request from the video processor’s request queue. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvideoprocessor/3548387-removerequest?language=objc -func (v_ VideoProcessor) RemoveRequestError(request IRequest, error unsafe.Pointer) bool { - rv := objc.Call[bool](v_, objc.Sel("removeRequest:error:"), request, error) - return rv -} - // Adds a request with processing options to the video processor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnvideoprocessor/3675677-addrequest?language=objc @@ -97,6 +89,14 @@ func (v_ VideoProcessor) AnalyzeTimeRangeError(timeRange coremedia.TimeRange, er return rv } +// Removes a Vision request from the video processor’s request queue. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvideoprocessor/3548387-removerequest?language=objc +func (v_ VideoProcessor) RemoveRequestError(request IRequest, error unsafe.Pointer) bool { + rv := objc.Call[bool](v_, objc.Sel("removeRequest:error:"), request, error) + return rv +} + // Cancels the video processing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnvideoprocessor/3548385-cancel?language=objc diff --git a/macos/webkit/back_forward_list.gen.go b/macos/webkit/back_forward_list.gen.go index b2c2042e..cd394298 100644 --- a/macos/webkit/back_forward_list.gen.go +++ b/macos/webkit/back_forward_list.gen.go @@ -19,11 +19,11 @@ type _BackForwardListClass struct { type IBackForwardList interface { objc.IObject ItemAtIndex(index int) BackForwardListItem - CurrentItem() BackForwardListItem - ForwardList() []BackForwardListItem BackList() []BackForwardListItem - BackItem() BackForwardListItem ForwardItem() BackForwardListItem + CurrentItem() BackForwardListItem + BackItem() BackForwardListItem + ForwardList() []BackForwardListItem } // An object that manages the list of previously loaded webpages, which the web view uses for forward and backward navigation. [Full Topic] @@ -67,27 +67,27 @@ func (b_ BackForwardList) ItemAtIndex(index int) BackForwardListItem { return rv } -// The current item. [Full Topic] +// The array of items that precede the current item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlist/1516703-currentitem?language=objc -func (b_ BackForwardList) CurrentItem() BackForwardListItem { - rv := objc.Call[BackForwardListItem](b_, objc.Sel("currentItem")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlist/1516698-backlist?language=objc +func (b_ BackForwardList) BackList() []BackForwardListItem { + rv := objc.Call[[]BackForwardListItem](b_, objc.Sel("backList")) return rv } -// The array of items that follow the current item. [Full Topic] +// The item immediately following the current item, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlist/1516701-forwardlist?language=objc -func (b_ BackForwardList) ForwardList() []BackForwardListItem { - rv := objc.Call[[]BackForwardListItem](b_, objc.Sel("forwardList")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlist/1516700-forwarditem?language=objc +func (b_ BackForwardList) ForwardItem() BackForwardListItem { + rv := objc.Call[BackForwardListItem](b_, objc.Sel("forwardItem")) return rv } -// The array of items that precede the current item. [Full Topic] +// The current item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlist/1516698-backlist?language=objc -func (b_ BackForwardList) BackList() []BackForwardListItem { - rv := objc.Call[[]BackForwardListItem](b_, objc.Sel("backList")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlist/1516703-currentitem?language=objc +func (b_ BackForwardList) CurrentItem() BackForwardListItem { + rv := objc.Call[BackForwardListItem](b_, objc.Sel("currentItem")) return rv } @@ -99,10 +99,10 @@ func (b_ BackForwardList) BackItem() BackForwardListItem { return rv } -// The item immediately following the current item, if any. [Full Topic] +// The array of items that follow the current item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlist/1516700-forwarditem?language=objc -func (b_ BackForwardList) ForwardItem() BackForwardListItem { - rv := objc.Call[BackForwardListItem](b_, objc.Sel("forwardItem")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlist/1516701-forwardlist?language=objc +func (b_ BackForwardList) ForwardList() []BackForwardListItem { + rv := objc.Call[[]BackForwardListItem](b_, objc.Sel("forwardList")) return rv } diff --git a/macos/webkit/back_forward_list_item.gen.go b/macos/webkit/back_forward_list_item.gen.go index 3f1d6c28..2316b357 100644 --- a/macos/webkit/back_forward_list_item.gen.go +++ b/macos/webkit/back_forward_list_item.gen.go @@ -19,9 +19,9 @@ type _BackForwardListItemClass struct { // An interface definition for the [BackForwardListItem] class. type IBackForwardListItem interface { objc.IObject - InitialURL() foundation.URL - Title() string URL() foundation.URL + Title() string + InitialURL() foundation.URL } // A representation of a webpage that the web view previously visited. [Full Topic] @@ -57,11 +57,11 @@ func (b_ BackForwardListItem) Init() BackForwardListItem { return rv } -// The source URL that originally asked the web view to load this page. [Full Topic] +// The URL of the webpage this item represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlistitem/1455507-initialurl?language=objc -func (b_ BackForwardListItem) InitialURL() foundation.URL { - rv := objc.Call[foundation.URL](b_, objc.Sel("initialURL")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlistitem/1455513-url?language=objc +func (b_ BackForwardListItem) URL() foundation.URL { + rv := objc.Call[foundation.URL](b_, objc.Sel("URL")) return rv } @@ -73,10 +73,10 @@ func (b_ BackForwardListItem) Title() string { return rv } -// The URL of the webpage this item represents. [Full Topic] +// The source URL that originally asked the web view to load this page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlistitem/1455513-url?language=objc -func (b_ BackForwardListItem) URL() foundation.URL { - rv := objc.Call[foundation.URL](b_, objc.Sel("URL")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkbackforwardlistitem/1455507-initialurl?language=objc +func (b_ BackForwardListItem) InitialURL() foundation.URL { + rv := objc.Call[foundation.URL](b_, objc.Sel("initialURL")) return rv } diff --git a/macos/webkit/content_rule_list_store.gen.go b/macos/webkit/content_rule_list_store.gen.go index b6125b98..7a744df8 100644 --- a/macos/webkit/content_rule_list_store.gen.go +++ b/macos/webkit/content_rule_list_store.gen.go @@ -19,10 +19,10 @@ type _ContentRuleListStoreClass struct { // An interface definition for the [ContentRuleListStore] class. type IContentRuleListStore interface { objc.IObject - GetAvailableContentRuleListIdentifiers(completionHandler func(arg0 []string)) - CompileContentRuleListForIdentifierEncodedContentRuleListCompletionHandler(identifier string, encodedContentRuleList string, completionHandler func(arg0 ContentRuleList, arg1 foundation.Error)) LookUpContentRuleListForIdentifierCompletionHandler(identifier string, completionHandler func(arg0 ContentRuleList, arg1 foundation.Error)) + GetAvailableContentRuleListIdentifiers(completionHandler func(arg0 []string)) RemoveContentRuleListForIdentifierCompletionHandler(identifier string, completionHandler func(arg0 foundation.Error)) + CompileContentRuleListForIdentifierEncodedContentRuleListCompletionHandler(identifier string, encodedContentRuleList string, completionHandler func(arg0 ContentRuleList, arg1 foundation.Error)) } // An object that contains the rules for how to load and filter content in the web view. [Full Topic] @@ -82,20 +82,6 @@ func (c_ ContentRuleListStore) Init() ContentRuleListStore { return rv } -// Fetches the identifiers for all rule lists in the store asynchronously. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkcontentruleliststore/2902759-getavailablecontentrulelistident?language=objc -func (c_ ContentRuleListStore) GetAvailableContentRuleListIdentifiers(completionHandler func(arg0 []string)) { - objc.Call[objc.Void](c_, objc.Sel("getAvailableContentRuleListIdentifiers:"), completionHandler) -} - -// Compiles the specified JSON content into a new rule list and adds it to the current data store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkcontentruleliststore/2902761-compilecontentrulelistforidentif?language=objc -func (c_ ContentRuleListStore) CompileContentRuleListForIdentifierEncodedContentRuleListCompletionHandler(identifier string, encodedContentRuleList string, completionHandler func(arg0 ContentRuleList, arg1 foundation.Error)) { - objc.Call[objc.Void](c_, objc.Sel("compileContentRuleListForIdentifier:encodedContentRuleList:completionHandler:"), identifier, encodedContentRuleList, completionHandler) -} - // Searches asynchronously for a specific rule list in the data store. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkcontentruleliststore/2902747-lookupcontentrulelistforidentifi?language=objc @@ -103,9 +89,23 @@ func (c_ ContentRuleListStore) LookUpContentRuleListForIdentifierCompletionHandl objc.Call[objc.Void](c_, objc.Sel("lookUpContentRuleListForIdentifier:completionHandler:"), identifier, completionHandler) } +// Fetches the identifiers for all rule lists in the store asynchronously. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkcontentruleliststore/2902759-getavailablecontentrulelistident?language=objc +func (c_ ContentRuleListStore) GetAvailableContentRuleListIdentifiers(completionHandler func(arg0 []string)) { + objc.Call[objc.Void](c_, objc.Sel("getAvailableContentRuleListIdentifiers:"), completionHandler) +} + // Removes a rule list from the current data store asynchronously. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkcontentruleliststore/2902764-removecontentrulelistforidentifi?language=objc func (c_ ContentRuleListStore) RemoveContentRuleListForIdentifierCompletionHandler(identifier string, completionHandler func(arg0 foundation.Error)) { objc.Call[objc.Void](c_, objc.Sel("removeContentRuleListForIdentifier:completionHandler:"), identifier, completionHandler) } + +// Compiles the specified JSON content into a new rule list and adds it to the current data store. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkcontentruleliststore/2902761-compilecontentrulelistforidentif?language=objc +func (c_ ContentRuleListStore) CompileContentRuleListForIdentifierEncodedContentRuleListCompletionHandler(identifier string, encodedContentRuleList string, completionHandler func(arg0 ContentRuleList, arg1 foundation.Error)) { + objc.Call[objc.Void](c_, objc.Sel("compileContentRuleListForIdentifier:encodedContentRuleList:completionHandler:"), identifier, encodedContentRuleList, completionHandler) +} diff --git a/macos/webkit/content_world.gen.go b/macos/webkit/content_world.gen.go index b1a0d8c3..6bf7ed56 100644 --- a/macos/webkit/content_world.gen.go +++ b/macos/webkit/content_world.gen.go @@ -69,14 +69,6 @@ func ContentWorld_WorldWithName(name string) ContentWorld { return ContentWorldClass.WorldWithName(name) } -// The name of a custom content world. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkcontentworld/3552417-name?language=objc -func (c_ ContentWorld) Name() string { - rv := objc.Call[string](c_, objc.Sel("name")) - return rv -} - // The content world for the current webpage’s content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkcontentworld/3552418-pageworld?language=objc @@ -106,3 +98,11 @@ func (cc _ContentWorldClass) DefaultClientWorld() ContentWorld { func ContentWorld_DefaultClientWorld() ContentWorld { return ContentWorldClass.DefaultClientWorld() } + +// The name of a custom content world. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkcontentworld/3552417-name?language=objc +func (c_ ContentWorld) Name() string { + rv := objc.Call[string](c_, objc.Sel("name")) + return rv +} diff --git a/macos/webkit/dom_node.gen.go b/macos/webkit/dom_node.gen.go index 9b46bee3..185531f5 100644 --- a/macos/webkit/dom_node.gen.go +++ b/macos/webkit/dom_node.gen.go @@ -19,8 +19,8 @@ type _DOMNodeClass struct { // An interface definition for the [DOMNode] class. type IDOMNode interface { IDOMObject - BoundingBox() foundation.Rect LineBoxRects() []objc.Object + BoundingBox() foundation.Rect } // [Full Topic] @@ -56,14 +56,6 @@ func (d_ DOMNode) Init() DOMNode { return rv } -// Returns a rectangle that bounds the onscreen rendering of the node. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domnode/1536392-boundingbox?language=objc -func (d_ DOMNode) BoundingBox() foundation.Rect { - rv := objc.Call[foundation.Rect](d_, objc.Sel("boundingBox")) - return rv -} - // Returns the rectangles that bound each line of text in the node. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/domnode/1536778-lineboxrects?language=objc @@ -71,3 +63,11 @@ func (d_ DOMNode) LineBoxRects() []objc.Object { rv := objc.Call[[]objc.Object](d_, objc.Sel("lineBoxRects")) return rv } + +// Returns a rectangle that bounds the onscreen rendering of the node. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domnode/1536392-boundingbox?language=objc +func (d_ DOMNode) BoundingBox() foundation.Rect { + rv := objc.Call[foundation.Rect](d_, objc.Sel("boundingBox")) + return rv +} diff --git a/macos/webkit/domcss_style_declaration.gen.go b/macos/webkit/domcss_style_declaration.gen.go index e26eb84f..97ee4cbf 100644 --- a/macos/webkit/domcss_style_declaration.gen.go +++ b/macos/webkit/domcss_style_declaration.gen.go @@ -18,250 +18,250 @@ type _DOMCSSStyleDeclarationClass struct { // An interface definition for the [DOMCSSStyleDeclaration] class. type IDOMCSSStyleDeclaration interface { IDOMObject - SetFontSize(fontSize string) - SetBorderTopColor(borderTopColor string) - SpeechRate() string - SetListStyleType(listStyleType string) - BorderColor() string - SetVisibility(visibility string) + SetBorderTop(borderTop string) + SetZIndex(zIndex string) + PauseBefore() string + SetMinWidth(minWidth string) + Content() string + SetBorderRightStyle(borderRightStyle string) + SetSpeechRate(speechRate string) + Cursor() string + SetCueBefore(cueBefore string) + WhiteSpace() string + Color() string + SetLetterSpacing(letterSpacing string) + FontSizeAdjust() string + PlayDuring() string + SetBackground(background string) + Width() string + SetPaddingTop(paddingTop string) + SetAzimuth(azimuth string) + PageBreakAfter() string + PitchRange() string + Direction() string Marks() string - SetMarginRight(marginRight string) - SetDisplay(display string) - MarginTop() string - FontVariant() string - SetFontWeight(fontWeight string) - SetMarginTop(marginTop string) - FontStretch() string + Elevation() string + TextIndent() string + SetFontFamily(fontFamily string) + FontSize() string + EmptyCells() string + BorderBottomWidth() string + Volume() string + SetOverflow(overflow string) + SetClip(clip string) + UnicodeBidi() string + PaddingBottom() string SetCssFloat(cssFloat string) - SetMargin(margin string) + BorderBottomColor() string + VerticalAlign() string + MinHeight() string + SetTextShadow(textShadow string) + SetPadding(padding string) + SetBorderStyle(borderStyle string) + BorderTopColor() string + TextShadow() string + SetEmptyCells(emptyCells string) SetCaptionSide(captionSide string) + BorderTopWidth() string + SetBorderBottomStyle(borderBottomStyle string) + SetDisplay(display string) + SetTextIndent(textIndent string) + SetBorderCollapse(borderCollapse string) + FontFamily() string + SetBorder(border string) + SetPitchRange(pitchRange string) + BorderSpacing() string + ListStyle() string + TextTransform() string + SetPitch(pitch string) + SetSpeakHeader(speakHeader string) + Background() string + SetPlayDuring(playDuring string) + PaddingTop() string + SetPause(pause string) + SetOrphans(orphans string) + Clip() string + SetWhiteSpace(whiteSpace string) + SpeechRate() string + SetFontStretch(fontStretch string) + SetBorderLeftStyle(borderLeftStyle string) + SetPosition(position string) + Azimuth() string + SetBorderBottomColor(borderBottomColor string) + WordSpacing() string + SetBorderBottomWidth(borderBottomWidth string) + SetCue(cue string) + MinWidth() string + SetBorderColor(borderColor string) + SetCounterIncrement(counterIncrement string) + BorderTopStyle() string + SetBorderWidth(borderWidth string) PageBreakInside() string + Clear() string + SetBackgroundImage(backgroundImage string) + SetFontSize(fontSize string) + SetBorderLeftColor(borderLeftColor string) + SetBorderSpacing(borderSpacing string) SetTextDecoration(textDecoration string) - Width() string - LetterSpacing() string - BorderLeftColor() string - SetOutlineColor(outlineColor string) - SetListStylePosition(listStylePosition string) - SetSpeechRate(speechRate string) - SetClip(clip string) + BackgroundRepeat() string + SetTextTransform(textTransform string) + Left() string + SetBorderLeftWidth(borderLeftWidth string) + SetPageBreakBefore(pageBreakBefore string) + SetContent(content string) + VoiceFamily() string + CssFloat() string + Overflow() string + SetListStyle(listStyle string) + SetDirection(direction string) + Cue() string + Orphans() string + SetPaddingBottom(paddingBottom string) + SetRight(right string) SetVerticalAlign(verticalAlign string) - MarginRight() string - Font() string - SetBackgroundAttachment(backgroundAttachment string) - SetPage(page string) - TableLayout() string SetStress(stress string) - SetMarkerOffset(markerOffset string) - MinHeight() string - PitchRange() string - SetSpeakNumeral(speakNumeral string) - SetPaddingLeft(paddingLeft string) - SetBorderLeftColor(borderLeftColor string) - Pause() string - SetBorderBottom(borderBottom string) - SetBorder(border string) - SetOverflow(overflow string) - FontSize() string - CounterReset() string - BorderCollapse() string + SetElevation(elevation string) + BorderBottom() string + SetSpeak(speak string) Height() string - SetBorderTopStyle(borderTopStyle string) - SetTextTransform(textTransform string) - SetBorderColor(borderColor string) - Overflow() string - Border() string - BorderBottomWidth() string - SetPadding(padding string) - SetBorderTopWidth(borderTopWidth string) - SetTextShadow(textShadow string) - Visibility() string - SetTextAlign(textAlign string) Quotes() string - ListStyleImage() string - FontStyle() string - SetRight(right string) - Clear() string - Content() string - SetPauseAfter(pauseAfter string) - OutlineStyle() string - SetPaddingBottom(paddingBottom string) - CueBefore() string - SetContent(content string) - SetSpeakPunctuation(speakPunctuation string) - SetBorderStyle(borderStyle string) - SetOrphans(orphans string) - SetOutline(outline string) - Cursor() string - VoiceFamily() string - PauseAfter() string Margin() string - PageBreakBefore() string - Clip() string - BorderTopWidth() string - MinWidth() string - SetPageBreakAfter(pageBreakAfter string) + SetBorderRightWidth(borderRightWidth string) + SetSpeakPunctuation(speakPunctuation string) + BorderRight() string + SetBorderRightColor(borderRightColor string) + SetMinHeight(minHeight string) + SetFontVariant(fontVariant string) + PaddingLeft() string + Padding() string BorderTop() string - SetVolume(volume string) - SetMaxWidth(maxWidth string) - SetPosition(position string) - Right() string - BorderLeftStyle() string + SetBottom(bottom string) + LetterSpacing() string + TableLayout() string + SetBorderBottom(borderBottom string) + BorderBottomStyle() string + MarginRight() string + SetLeft(left string) + Position() string + ListStyleImage() string + SetWidows(widows string) + BackgroundColor() string + Display() string + CueBefore() string + SetFontSizeAdjust(fontSizeAdjust string) + SetFontWeight(fontWeight string) + Outline() string + Bottom() string + SetRichness(richness string) SetOutlineWidth(outlineWidth string) - SetBorderLeft(borderLeft string) - SetBackground(background string) - Stress() string + SpeakPunctuation() string + SetUnicodeBidi(unicodeBidi string) + Widows() string + BorderRightColor() string + BackgroundAttachment() string SetPageBreakInside(pageBreakInside string) - TextTransform() string - SetVoiceFamily(voiceFamily string) - SetWidows(widows string) - SetZIndex(zIndex string) - SetTableLayout(tableLayout string) - SetClear(clear string) - SetBorderRightColor(borderRightColor string) + CounterReset() string + SetOutlineColor(outlineColor string) + BorderRightWidth() string + SetFontStyle(fontStyle string) + Font() string + BackgroundImage() string + BorderLeftColor() string + SetVisibility(visibility string) SetPauseBefore(pauseBefore string) - SetBottom(bottom string) - SetBackgroundImage(backgroundImage string) - SetFont(font string) - BorderRightColor() string - SetBackgroundRepeat(backgroundRepeat string) - SetBorderLeftStyle(borderLeftStyle string) - BackgroundPosition() string - SetBackgroundColor(backgroundColor string) - ZIndex() string - TextDecoration() string - SetFontFamily(fontFamily string) - Left() string - SetFontVariant(fontVariant string) + Stress() string + SetClear(clear string) + BorderLeftWidth() string + SetBackgroundAttachment(backgroundAttachment string) + PageBreakBefore() string + SetHeight(height string) + MaxHeight() string + SetMargin(margin string) OutlineWidth() string - SetPause(pause string) - SetCounterReset(counterReset string) - SetCue(cue string) - SetMarginBottom(marginBottom string) - Orphans() string SetQuotes(quotes string) - CaptionSide() string + ListStyleType() string + SetPageBreakAfter(pageBreakAfter string) OutlineColor() string - BorderTopColor() string - MaxHeight() string - SetMarginLeft(marginLeft string) - SetMinHeight(minHeight string) - PaddingRight() string - BorderRightStyle() string - Volume() string - Direction() string - BorderBottom() string - Color() string - Padding() string - SetColor(color string) - Widows() string + SetCounterReset(counterReset string) + Top() string + SpeakHeader() string + SetListStylePosition(listStylePosition string) + SetFont(font string) + SetTextAlign(textAlign string) + MaxWidth() string + MarginTop() string + SetSpeakNumeral(speakNumeral string) + BorderCollapse() string + FontStretch() string + SetBorderTopWidth(borderTopWidth string) + CueAfter() string + Visibility() string + SetBorderTopColor(borderTopColor string) CounterIncrement() string - PaddingLeft() string - SetBorderRight(borderRight string) - SetPitchRange(pitchRange string) - Elevation() string - BackgroundRepeat() string - BorderLeft() string - SetFontSizeAdjust(fontSizeAdjust string) - Page() string - PlayDuring() string - ListStylePosition() string + SetBackgroundRepeat(backgroundRepeat string) + BorderStyle() string SpeakNumeral() string - BackgroundColor() string - Cue() string - Outline() string - BorderRightWidth() string - SetLetterSpacing(letterSpacing string) - SetWidth(width string) - SetPitch(pitch string) + CaptionSide() string + SetTop(top string) + SetBackgroundColor(backgroundColor string) Speak() string - SetMarks(marks string) - SetCursor(cursor string) + FontWeight() string + Right() string + SetPage(page string) SetPaddingRight(paddingRight string) - SetTop(top string) - UnicodeBidi() string - SetBackgroundPosition(backgroundPosition string) - Position() string - SetSpeakHeader(speakHeader string) - SetUnicodeBidi(unicodeBidi string) - SpeakHeader() string - Background() string - SetListStyleImage(listStyleImage string) - BorderRight() string - SetBorderRightWidth(borderRightWidth string) - MarginBottom() string - BackgroundAttachment() string - Size() string - SetWordSpacing(wordSpacing string) - Pitch() string - SpeakPunctuation() string + Richness() string + SetMarginLeft(marginLeft string) + SetBorderTopStyle(borderTopStyle string) + SetVoiceFamily(voiceFamily string) LineHeight() string - SetBorderLeftWidth(borderLeftWidth string) - Top() string - Display() string - SetCounterIncrement(counterIncrement string) - Bottom() string - WordSpacing() string - SetBorderTop(borderTop string) - PaddingTop() string + SetMarks(marks string) + SetColor(color string) + PaddingRight() string TextAlign() string - PaddingBottom() string - BorderLeftWidth() string - SetPaddingTop(paddingTop string) - TextIndent() string + SetOutline(outline string) + SetWordSpacing(wordSpacing string) + SetWidth(width string) + SetMarginTop(marginTop string) + BorderColor() string + SetSize(size string) + TextDecoration() string + SetPauseAfter(pauseAfter string) + Border() string BorderWidth() string - SetBorderCollapse(borderCollapse string) - CueAfter() string - SetBorderWidth(borderWidth string) + SetBorderLeft(borderLeft string) + BorderRightStyle() string + BorderLeft() string + PauseAfter() string + SetListStyleType(listStyleType string) + SetTableLayout(tableLayout string) SetOutlineStyle(outlineStyle string) - SetCueBefore(cueBefore string) - SetBorderSpacing(borderSpacing string) - MarginLeft() string - SetListStyle(listStyle string) - WhiteSpace() string - BorderBottomColor() string - BorderTopStyle() string - SetEmptyCells(emptyCells string) - PauseBefore() string - SetSize(size string) - SetWhiteSpace(whiteSpace string) - SetMinWidth(minWidth string) - FontWeight() string - ListStyle() string + SetMarginBottom(marginBottom string) + SetMaxWidth(maxWidth string) + SetMarginRight(marginRight string) + Pause() string + SetVolume(volume string) SetCueAfter(cueAfter string) - BorderSpacing() string - SetTextIndent(textIndent string) - SetAzimuth(azimuth string) - SetSpeak(speak string) - SetLeft(left string) - MarkerOffset() string - SetBorderRightStyle(borderRightStyle string) - CssFloat() string SetMaxHeight(maxHeight string) - SetPageBreakBefore(pageBreakBefore string) - VerticalAlign() string - SetFontStyle(fontStyle string) - Azimuth() string - BorderStyle() string - SetElevation(elevation string) - PageBreakAfter() string - SetDirection(direction string) - ListStyleType() string - BackgroundImage() string - EmptyCells() string - SetFontStretch(fontStretch string) - FontFamily() string - SetHeight(height string) - BorderBottomStyle() string - SetRichness(richness string) - FontSizeAdjust() string - SetBorderBottomColor(borderBottomColor string) - SetBorderBottomStyle(borderBottomStyle string) - TextShadow() string + MarkerOffset() string + Page() string + ZIndex() string + Pitch() string + SetListStyleImage(listStyleImage string) + OutlineStyle() string + Size() string + MarginBottom() string SetLineHeight(lineHeight string) - MaxWidth() string - Richness() string - SetBorderBottomWidth(borderBottomWidth string) - SetPlayDuring(playDuring string) + BackgroundPosition() string + MarginLeft() string + SetCursor(cursor string) + BorderLeftStyle() string + SetBackgroundPosition(backgroundPosition string) + SetBorderRight(borderRight string) + FontStyle() string + ListStylePosition() string + SetPaddingLeft(paddingLeft string) + SetMarkerOffset(markerOffset string) + FontVariant() string } // [Full Topic] @@ -299,253 +299,276 @@ func (d_ DOMCSSStyleDeclaration) Init() DOMCSSStyleDeclaration { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536339-setfontsize?language=objc -func (d_ DOMCSSStyleDeclaration) SetFontSize(fontSize string) { - objc.Call[objc.Void](d_, objc.Sel("setFontSize:"), fontSize) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537037-setbordertop?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderTop(borderTop string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderTop:"), borderTop) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537536-setbordertopcolor?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderTopColor(borderTopColor string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderTopColor:"), borderTopColor) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536811-setzindex?language=objc +func (d_ DOMCSSStyleDeclaration) SetZIndex(zIndex string) { + objc.Call[objc.Void](d_, objc.Sel("setZIndex:"), zIndex) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537016-speechrate?language=objc -func (d_ DOMCSSStyleDeclaration) SpeechRate() string { - rv := objc.Call[string](d_, objc.Sel("speechRate")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537469-pausebefore?language=objc +func (d_ DOMCSSStyleDeclaration) PauseBefore() string { + rv := objc.Call[string](d_, objc.Sel("pauseBefore")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536391-setliststyletype?language=objc -func (d_ DOMCSSStyleDeclaration) SetListStyleType(listStyleType string) { - objc.Call[objc.Void](d_, objc.Sel("setListStyleType:"), listStyleType) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537610-setminwidth?language=objc +func (d_ DOMCSSStyleDeclaration) SetMinWidth(minWidth string) { + objc.Call[objc.Void](d_, objc.Sel("setMinWidth:"), minWidth) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537719-content?language=objc +func (d_ DOMCSSStyleDeclaration) Content() string { + rv := objc.Call[string](d_, objc.Sel("content")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537468-setborderrightstyle?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderRightStyle(borderRightStyle string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderRightStyle:"), borderRightStyle) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537632-setspeechrate?language=objc +func (d_ DOMCSSStyleDeclaration) SetSpeechRate(speechRate string) { + objc.Call[objc.Void](d_, objc.Sel("setSpeechRate:"), speechRate) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537814-bordercolor?language=objc -func (d_ DOMCSSStyleDeclaration) BorderColor() string { - rv := objc.Call[string](d_, objc.Sel("borderColor")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537597-cursor?language=objc +func (d_ DOMCSSStyleDeclaration) Cursor() string { + rv := objc.Call[string](d_, objc.Sel("cursor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537057-setvisibility?language=objc -func (d_ DOMCSSStyleDeclaration) SetVisibility(visibility string) { - objc.Call[objc.Void](d_, objc.Sel("setVisibility:"), visibility) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536519-setcuebefore?language=objc +func (d_ DOMCSSStyleDeclaration) SetCueBefore(cueBefore string) { + objc.Call[objc.Void](d_, objc.Sel("setCueBefore:"), cueBefore) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536295-marks?language=objc -func (d_ DOMCSSStyleDeclaration) Marks() string { - rv := objc.Call[string](d_, objc.Sel("marks")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537569-whitespace?language=objc +func (d_ DOMCSSStyleDeclaration) WhiteSpace() string { + rv := objc.Call[string](d_, objc.Sel("whiteSpace")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537758-setmarginright?language=objc -func (d_ DOMCSSStyleDeclaration) SetMarginRight(marginRight string) { - objc.Call[objc.Void](d_, objc.Sel("setMarginRight:"), marginRight) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536621-color?language=objc +func (d_ DOMCSSStyleDeclaration) Color() string { + rv := objc.Call[string](d_, objc.Sel("color")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537000-setdisplay?language=objc -func (d_ DOMCSSStyleDeclaration) SetDisplay(display string) { - objc.Call[objc.Void](d_, objc.Sel("setDisplay:"), display) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537534-setletterspacing?language=objc +func (d_ DOMCSSStyleDeclaration) SetLetterSpacing(letterSpacing string) { + objc.Call[objc.Void](d_, objc.Sel("setLetterSpacing:"), letterSpacing) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536405-margintop?language=objc -func (d_ DOMCSSStyleDeclaration) MarginTop() string { - rv := objc.Call[string](d_, objc.Sel("marginTop")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537039-fontsizeadjust?language=objc +func (d_ DOMCSSStyleDeclaration) FontSizeAdjust() string { + rv := objc.Call[string](d_, objc.Sel("fontSizeAdjust")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537762-fontvariant?language=objc -func (d_ DOMCSSStyleDeclaration) FontVariant() string { - rv := objc.Call[string](d_, objc.Sel("fontVariant")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537957-playduring?language=objc +func (d_ DOMCSSStyleDeclaration) PlayDuring() string { + rv := objc.Call[string](d_, objc.Sel("playDuring")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536632-setfontweight?language=objc -func (d_ DOMCSSStyleDeclaration) SetFontWeight(fontWeight string) { - objc.Call[objc.Void](d_, objc.Sel("setFontWeight:"), fontWeight) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537184-setmargintop?language=objc -func (d_ DOMCSSStyleDeclaration) SetMarginTop(marginTop string) { - objc.Call[objc.Void](d_, objc.Sel("setMarginTop:"), marginTop) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537919-setbackground?language=objc +func (d_ DOMCSSStyleDeclaration) SetBackground(background string) { + objc.Call[objc.Void](d_, objc.Sel("setBackground:"), background) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537452-fontstretch?language=objc -func (d_ DOMCSSStyleDeclaration) FontStretch() string { - rv := objc.Call[string](d_, objc.Sel("fontStretch")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536411-width?language=objc +func (d_ DOMCSSStyleDeclaration) Width() string { + rv := objc.Call[string](d_, objc.Sel("width")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538076-setcssfloat?language=objc -func (d_ DOMCSSStyleDeclaration) SetCssFloat(cssFloat string) { - objc.Call[objc.Void](d_, objc.Sel("setCssFloat:"), cssFloat) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537395-setpaddingtop?language=objc +func (d_ DOMCSSStyleDeclaration) SetPaddingTop(paddingTop string) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingTop:"), paddingTop) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537501-setmargin?language=objc -func (d_ DOMCSSStyleDeclaration) SetMargin(margin string) { - objc.Call[objc.Void](d_, objc.Sel("setMargin:"), margin) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536701-setazimuth?language=objc +func (d_ DOMCSSStyleDeclaration) SetAzimuth(azimuth string) { + objc.Call[objc.Void](d_, objc.Sel("setAzimuth:"), azimuth) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537601-setcaptionside?language=objc -func (d_ DOMCSSStyleDeclaration) SetCaptionSide(captionSide string) { - objc.Call[objc.Void](d_, objc.Sel("setCaptionSide:"), captionSide) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537432-pagebreakafter?language=objc +func (d_ DOMCSSStyleDeclaration) PageBreakAfter() string { + rv := objc.Call[string](d_, objc.Sel("pageBreakAfter")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538055-pagebreakinside?language=objc -func (d_ DOMCSSStyleDeclaration) PageBreakInside() string { - rv := objc.Call[string](d_, objc.Sel("pageBreakInside")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537451-pitchrange?language=objc +func (d_ DOMCSSStyleDeclaration) PitchRange() string { + rv := objc.Call[string](d_, objc.Sel("pitchRange")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537524-settextdecoration?language=objc -func (d_ DOMCSSStyleDeclaration) SetTextDecoration(textDecoration string) { - objc.Call[objc.Void](d_, objc.Sel("setTextDecoration:"), textDecoration) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537340-direction?language=objc +func (d_ DOMCSSStyleDeclaration) Direction() string { + rv := objc.Call[string](d_, objc.Sel("direction")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536411-width?language=objc -func (d_ DOMCSSStyleDeclaration) Width() string { - rv := objc.Call[string](d_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536295-marks?language=objc +func (d_ DOMCSSStyleDeclaration) Marks() string { + rv := objc.Call[string](d_, objc.Sel("marks")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538024-letterspacing?language=objc -func (d_ DOMCSSStyleDeclaration) LetterSpacing() string { - rv := objc.Call[string](d_, objc.Sel("letterSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537097-elevation?language=objc +func (d_ DOMCSSStyleDeclaration) Elevation() string { + rv := objc.Call[string](d_, objc.Sel("elevation")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537504-borderleftcolor?language=objc -func (d_ DOMCSSStyleDeclaration) BorderLeftColor() string { - rv := objc.Call[string](d_, objc.Sel("borderLeftColor")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537671-textindent?language=objc +func (d_ DOMCSSStyleDeclaration) TextIndent() string { + rv := objc.Call[string](d_, objc.Sel("textIndent")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537412-setoutlinecolor?language=objc -func (d_ DOMCSSStyleDeclaration) SetOutlineColor(outlineColor string) { - objc.Call[objc.Void](d_, objc.Sel("setOutlineColor:"), outlineColor) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537485-setfontfamily?language=objc +func (d_ DOMCSSStyleDeclaration) SetFontFamily(fontFamily string) { + objc.Call[objc.Void](d_, objc.Sel("setFontFamily:"), fontFamily) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537407-setliststyleposition?language=objc -func (d_ DOMCSSStyleDeclaration) SetListStylePosition(listStylePosition string) { - objc.Call[objc.Void](d_, objc.Sel("setListStylePosition:"), listStylePosition) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538175-fontsize?language=objc +func (d_ DOMCSSStyleDeclaration) FontSize() string { + rv := objc.Call[string](d_, objc.Sel("fontSize")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537632-setspeechrate?language=objc -func (d_ DOMCSSStyleDeclaration) SetSpeechRate(speechRate string) { - objc.Call[objc.Void](d_, objc.Sel("setSpeechRate:"), speechRate) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536606-emptycells?language=objc +func (d_ DOMCSSStyleDeclaration) EmptyCells() string { + rv := objc.Call[string](d_, objc.Sel("emptyCells")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536697-setclip?language=objc -func (d_ DOMCSSStyleDeclaration) SetClip(clip string) { - objc.Call[objc.Void](d_, objc.Sel("setClip:"), clip) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537966-borderbottomwidth?language=objc +func (d_ DOMCSSStyleDeclaration) BorderBottomWidth() string { + rv := objc.Call[string](d_, objc.Sel("borderBottomWidth")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537810-setverticalalign?language=objc -func (d_ DOMCSSStyleDeclaration) SetVerticalAlign(verticalAlign string) { - objc.Call[objc.Void](d_, objc.Sel("setVerticalAlign:"), verticalAlign) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538123-volume?language=objc +func (d_ DOMCSSStyleDeclaration) Volume() string { + rv := objc.Call[string](d_, objc.Sel("volume")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537806-marginright?language=objc -func (d_ DOMCSSStyleDeclaration) MarginRight() string { - rv := objc.Call[string](d_, objc.Sel("marginRight")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537548-setoverflow?language=objc +func (d_ DOMCSSStyleDeclaration) SetOverflow(overflow string) { + objc.Call[objc.Void](d_, objc.Sel("setOverflow:"), overflow) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536196-font?language=objc -func (d_ DOMCSSStyleDeclaration) Font() string { - rv := objc.Call[string](d_, objc.Sel("font")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536697-setclip?language=objc +func (d_ DOMCSSStyleDeclaration) SetClip(clip string) { + objc.Call[objc.Void](d_, objc.Sel("setClip:"), clip) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537695-setbackgroundattachment?language=objc -func (d_ DOMCSSStyleDeclaration) SetBackgroundAttachment(backgroundAttachment string) { - objc.Call[objc.Void](d_, objc.Sel("setBackgroundAttachment:"), backgroundAttachment) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537505-unicodebidi?language=objc +func (d_ DOMCSSStyleDeclaration) UnicodeBidi() string { + rv := objc.Call[string](d_, objc.Sel("unicodeBidi")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536179-setpage?language=objc -func (d_ DOMCSSStyleDeclaration) SetPage(page string) { - objc.Call[objc.Void](d_, objc.Sel("setPage:"), page) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538125-paddingbottom?language=objc +func (d_ DOMCSSStyleDeclaration) PaddingBottom() string { + rv := objc.Call[string](d_, objc.Sel("paddingBottom")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536287-tablelayout?language=objc -func (d_ DOMCSSStyleDeclaration) TableLayout() string { - rv := objc.Call[string](d_, objc.Sel("tableLayout")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538076-setcssfloat?language=objc +func (d_ DOMCSSStyleDeclaration) SetCssFloat(cssFloat string) { + objc.Call[objc.Void](d_, objc.Sel("setCssFloat:"), cssFloat) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536294-setstress?language=objc -func (d_ DOMCSSStyleDeclaration) SetStress(stress string) { - objc.Call[objc.Void](d_, objc.Sel("setStress:"), stress) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536522-borderbottomcolor?language=objc +func (d_ DOMCSSStyleDeclaration) BorderBottomColor() string { + rv := objc.Call[string](d_, objc.Sel("borderBottomColor")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536269-setmarkeroffset?language=objc -func (d_ DOMCSSStyleDeclaration) SetMarkerOffset(markerOffset string) { - objc.Call[objc.Void](d_, objc.Sel("setMarkerOffset:"), markerOffset) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536515-verticalalign?language=objc +func (d_ DOMCSSStyleDeclaration) VerticalAlign() string { + rv := objc.Call[string](d_, objc.Sel("verticalAlign")) + return rv } // [Full Topic] @@ -558,750 +581,753 @@ func (d_ DOMCSSStyleDeclaration) MinHeight() string { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537451-pitchrange?language=objc -func (d_ DOMCSSStyleDeclaration) PitchRange() string { - rv := objc.Call[string](d_, objc.Sel("pitchRange")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537435-settextshadow?language=objc +func (d_ DOMCSSStyleDeclaration) SetTextShadow(textShadow string) { + objc.Call[objc.Void](d_, objc.Sel("setTextShadow:"), textShadow) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536395-setspeaknumeral?language=objc -func (d_ DOMCSSStyleDeclaration) SetSpeakNumeral(speakNumeral string) { - objc.Call[objc.Void](d_, objc.Sel("setSpeakNumeral:"), speakNumeral) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537535-setpadding?language=objc +func (d_ DOMCSSStyleDeclaration) SetPadding(padding string) { + objc.Call[objc.Void](d_, objc.Sel("setPadding:"), padding) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537543-setpaddingleft?language=objc -func (d_ DOMCSSStyleDeclaration) SetPaddingLeft(paddingLeft string) { - objc.Call[objc.Void](d_, objc.Sel("setPaddingLeft:"), paddingLeft) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536214-setborderstyle?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderStyle(borderStyle string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderStyle:"), borderStyle) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537964-setborderleftcolor?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderLeftColor(borderLeftColor string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderLeftColor:"), borderLeftColor) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537557-bordertopcolor?language=objc +func (d_ DOMCSSStyleDeclaration) BorderTopColor() string { + rv := objc.Call[string](d_, objc.Sel("borderTopColor")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537631-pause?language=objc -func (d_ DOMCSSStyleDeclaration) Pause() string { - rv := objc.Call[string](d_, objc.Sel("pause")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537426-textshadow?language=objc +func (d_ DOMCSSStyleDeclaration) TextShadow() string { + rv := objc.Call[string](d_, objc.Sel("textShadow")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536978-setborderbottom?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderBottom(borderBottom string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderBottom:"), borderBottom) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536195-setemptycells?language=objc +func (d_ DOMCSSStyleDeclaration) SetEmptyCells(emptyCells string) { + objc.Call[objc.Void](d_, objc.Sel("setEmptyCells:"), emptyCells) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538163-setborder?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorder(border string) { - objc.Call[objc.Void](d_, objc.Sel("setBorder:"), border) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537601-setcaptionside?language=objc +func (d_ DOMCSSStyleDeclaration) SetCaptionSide(captionSide string) { + objc.Call[objc.Void](d_, objc.Sel("setCaptionSide:"), captionSide) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537548-setoverflow?language=objc -func (d_ DOMCSSStyleDeclaration) SetOverflow(overflow string) { - objc.Call[objc.Void](d_, objc.Sel("setOverflow:"), overflow) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536449-bordertopwidth?language=objc +func (d_ DOMCSSStyleDeclaration) BorderTopWidth() string { + rv := objc.Call[string](d_, objc.Sel("borderTopWidth")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537769-setborderbottomstyle?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderBottomStyle(borderBottomStyle string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderBottomStyle:"), borderBottomStyle) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538175-fontsize?language=objc -func (d_ DOMCSSStyleDeclaration) FontSize() string { - rv := objc.Call[string](d_, objc.Sel("fontSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537000-setdisplay?language=objc +func (d_ DOMCSSStyleDeclaration) SetDisplay(display string) { + objc.Call[objc.Void](d_, objc.Sel("setDisplay:"), display) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537063-counterreset?language=objc -func (d_ DOMCSSStyleDeclaration) CounterReset() string { - rv := objc.Call[string](d_, objc.Sel("counterReset")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536327-settextindent?language=objc +func (d_ DOMCSSStyleDeclaration) SetTextIndent(textIndent string) { + objc.Call[objc.Void](d_, objc.Sel("setTextIndent:"), textIndent) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537897-bordercollapse?language=objc -func (d_ DOMCSSStyleDeclaration) BorderCollapse() string { - rv := objc.Call[string](d_, objc.Sel("borderCollapse")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537486-setbordercollapse?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderCollapse(borderCollapse string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderCollapse:"), borderCollapse) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536925-height?language=objc -func (d_ DOMCSSStyleDeclaration) Height() string { - rv := objc.Call[string](d_, objc.Sel("height")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537588-fontfamily?language=objc +func (d_ DOMCSSStyleDeclaration) FontFamily() string { + rv := objc.Call[string](d_, objc.Sel("fontFamily")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537004-setbordertopstyle?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderTopStyle(borderTopStyle string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderTopStyle:"), borderTopStyle) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538163-setborder?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorder(border string) { + objc.Call[objc.Void](d_, objc.Sel("setBorder:"), border) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537484-settexttransform?language=objc -func (d_ DOMCSSStyleDeclaration) SetTextTransform(textTransform string) { - objc.Call[objc.Void](d_, objc.Sel("setTextTransform:"), textTransform) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537383-setpitchrange?language=objc +func (d_ DOMCSSStyleDeclaration) SetPitchRange(pitchRange string) { + objc.Call[objc.Void](d_, objc.Sel("setPitchRange:"), pitchRange) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537641-setbordercolor?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderColor(borderColor string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderColor:"), borderColor) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536488-borderspacing?language=objc +func (d_ DOMCSSStyleDeclaration) BorderSpacing() string { + rv := objc.Call[string](d_, objc.Sel("borderSpacing")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537327-overflow?language=objc -func (d_ DOMCSSStyleDeclaration) Overflow() string { - rv := objc.Call[string](d_, objc.Sel("overflow")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536240-liststyle?language=objc +func (d_ DOMCSSStyleDeclaration) ListStyle() string { + rv := objc.Call[string](d_, objc.Sel("listStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537457-border?language=objc -func (d_ DOMCSSStyleDeclaration) Border() string { - rv := objc.Call[string](d_, objc.Sel("border")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537403-texttransform?language=objc +func (d_ DOMCSSStyleDeclaration) TextTransform() string { + rv := objc.Call[string](d_, objc.Sel("textTransform")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537966-borderbottomwidth?language=objc -func (d_ DOMCSSStyleDeclaration) BorderBottomWidth() string { - rv := objc.Call[string](d_, objc.Sel("borderBottomWidth")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536246-setpitch?language=objc +func (d_ DOMCSSStyleDeclaration) SetPitch(pitch string) { + objc.Call[objc.Void](d_, objc.Sel("setPitch:"), pitch) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537535-setpadding?language=objc -func (d_ DOMCSSStyleDeclaration) SetPadding(padding string) { - objc.Call[objc.Void](d_, objc.Sel("setPadding:"), padding) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536545-setspeakheader?language=objc +func (d_ DOMCSSStyleDeclaration) SetSpeakHeader(speakHeader string) { + objc.Call[objc.Void](d_, objc.Sel("setSpeakHeader:"), speakHeader) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536964-setbordertopwidth?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderTopWidth(borderTopWidth string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderTopWidth:"), borderTopWidth) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537291-background?language=objc +func (d_ DOMCSSStyleDeclaration) Background() string { + rv := objc.Call[string](d_, objc.Sel("background")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537435-settextshadow?language=objc -func (d_ DOMCSSStyleDeclaration) SetTextShadow(textShadow string) { - objc.Call[objc.Void](d_, objc.Sel("setTextShadow:"), textShadow) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537715-setplayduring?language=objc +func (d_ DOMCSSStyleDeclaration) SetPlayDuring(playDuring string) { + objc.Call[objc.Void](d_, objc.Sel("setPlayDuring:"), playDuring) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537329-visibility?language=objc -func (d_ DOMCSSStyleDeclaration) Visibility() string { - rv := objc.Call[string](d_, objc.Sel("visibility")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537698-paddingtop?language=objc +func (d_ DOMCSSStyleDeclaration) PaddingTop() string { + rv := objc.Call[string](d_, objc.Sel("paddingTop")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536564-settextalign?language=objc -func (d_ DOMCSSStyleDeclaration) SetTextAlign(textAlign string) { - objc.Call[objc.Void](d_, objc.Sel("setTextAlign:"), textAlign) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536470-setpause?language=objc +func (d_ DOMCSSStyleDeclaration) SetPause(pause string) { + objc.Call[objc.Void](d_, objc.Sel("setPause:"), pause) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537439-quotes?language=objc -func (d_ DOMCSSStyleDeclaration) Quotes() string { - rv := objc.Call[string](d_, objc.Sel("quotes")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537541-setorphans?language=objc +func (d_ DOMCSSStyleDeclaration) SetOrphans(orphans string) { + objc.Call[objc.Void](d_, objc.Sel("setOrphans:"), orphans) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537725-liststyleimage?language=objc -func (d_ DOMCSSStyleDeclaration) ListStyleImage() string { - rv := objc.Call[string](d_, objc.Sel("listStyleImage")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536966-clip?language=objc +func (d_ DOMCSSStyleDeclaration) Clip() string { + rv := objc.Call[string](d_, objc.Sel("clip")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537576-fontstyle?language=objc -func (d_ DOMCSSStyleDeclaration) FontStyle() string { - rv := objc.Call[string](d_, objc.Sel("fontStyle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536604-setwhitespace?language=objc +func (d_ DOMCSSStyleDeclaration) SetWhiteSpace(whiteSpace string) { + objc.Call[objc.Void](d_, objc.Sel("setWhiteSpace:"), whiteSpace) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536389-setright?language=objc -func (d_ DOMCSSStyleDeclaration) SetRight(right string) { - objc.Call[objc.Void](d_, objc.Sel("setRight:"), right) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537016-speechrate?language=objc +func (d_ DOMCSSStyleDeclaration) SpeechRate() string { + rv := objc.Call[string](d_, objc.Sel("speechRate")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536731-clear?language=objc -func (d_ DOMCSSStyleDeclaration) Clear() string { - rv := objc.Call[string](d_, objc.Sel("clear")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537280-setfontstretch?language=objc +func (d_ DOMCSSStyleDeclaration) SetFontStretch(fontStretch string) { + objc.Call[objc.Void](d_, objc.Sel("setFontStretch:"), fontStretch) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537719-content?language=objc -func (d_ DOMCSSStyleDeclaration) Content() string { - rv := objc.Call[string](d_, objc.Sel("content")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537982-setborderleftstyle?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderLeftStyle(borderLeftStyle string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderLeftStyle:"), borderLeftStyle) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537591-setpauseafter?language=objc -func (d_ DOMCSSStyleDeclaration) SetPauseAfter(pauseAfter string) { - objc.Call[objc.Void](d_, objc.Sel("setPauseAfter:"), pauseAfter) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537303-setposition?language=objc +func (d_ DOMCSSStyleDeclaration) SetPosition(position string) { + objc.Call[objc.Void](d_, objc.Sel("setPosition:"), position) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538219-outlinestyle?language=objc -func (d_ DOMCSSStyleDeclaration) OutlineStyle() string { - rv := objc.Call[string](d_, objc.Sel("outlineStyle")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537087-azimuth?language=objc +func (d_ DOMCSSStyleDeclaration) Azimuth() string { + rv := objc.Call[string](d_, objc.Sel("azimuth")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537428-setpaddingbottom?language=objc -func (d_ DOMCSSStyleDeclaration) SetPaddingBottom(paddingBottom string) { - objc.Call[objc.Void](d_, objc.Sel("setPaddingBottom:"), paddingBottom) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537304-setborderbottomcolor?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderBottomColor(borderBottomColor string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderBottomColor:"), borderBottomColor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537217-cuebefore?language=objc -func (d_ DOMCSSStyleDeclaration) CueBefore() string { - rv := objc.Call[string](d_, objc.Sel("cueBefore")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536882-wordspacing?language=objc +func (d_ DOMCSSStyleDeclaration) WordSpacing() string { + rv := objc.Call[string](d_, objc.Sel("wordSpacing")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537673-setcontent?language=objc -func (d_ DOMCSSStyleDeclaration) SetContent(content string) { - objc.Call[objc.Void](d_, objc.Sel("setContent:"), content) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536783-setborderbottomwidth?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderBottomWidth(borderBottomWidth string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderBottomWidth:"), borderBottomWidth) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536570-setspeakpunctuation?language=objc -func (d_ DOMCSSStyleDeclaration) SetSpeakPunctuation(speakPunctuation string) { - objc.Call[objc.Void](d_, objc.Sel("setSpeakPunctuation:"), speakPunctuation) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537627-setcue?language=objc +func (d_ DOMCSSStyleDeclaration) SetCue(cue string) { + objc.Call[objc.Void](d_, objc.Sel("setCue:"), cue) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536214-setborderstyle?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderStyle(borderStyle string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderStyle:"), borderStyle) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537387-minwidth?language=objc +func (d_ DOMCSSStyleDeclaration) MinWidth() string { + rv := objc.Call[string](d_, objc.Sel("minWidth")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537541-setorphans?language=objc -func (d_ DOMCSSStyleDeclaration) SetOrphans(orphans string) { - objc.Call[objc.Void](d_, objc.Sel("setOrphans:"), orphans) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537641-setbordercolor?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderColor(borderColor string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderColor:"), borderColor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537237-setoutline?language=objc -func (d_ DOMCSSStyleDeclaration) SetOutline(outline string) { - objc.Call[objc.Void](d_, objc.Sel("setOutline:"), outline) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537174-setcounterincrement?language=objc +func (d_ DOMCSSStyleDeclaration) SetCounterIncrement(counterIncrement string) { + objc.Call[objc.Void](d_, objc.Sel("setCounterIncrement:"), counterIncrement) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537597-cursor?language=objc -func (d_ DOMCSSStyleDeclaration) Cursor() string { - rv := objc.Call[string](d_, objc.Sel("cursor")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536636-bordertopstyle?language=objc +func (d_ DOMCSSStyleDeclaration) BorderTopStyle() string { + rv := objc.Call[string](d_, objc.Sel("borderTopStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537517-voicefamily?language=objc -func (d_ DOMCSSStyleDeclaration) VoiceFamily() string { - rv := objc.Call[string](d_, objc.Sel("voiceFamily")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536431-setborderwidth?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderWidth(borderWidth string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderWidth:"), borderWidth) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536316-pauseafter?language=objc -func (d_ DOMCSSStyleDeclaration) PauseAfter() string { - rv := objc.Call[string](d_, objc.Sel("pauseAfter")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538055-pagebreakinside?language=objc +func (d_ DOMCSSStyleDeclaration) PageBreakInside() string { + rv := objc.Call[string](d_, objc.Sel("pageBreakInside")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538039-margin?language=objc -func (d_ DOMCSSStyleDeclaration) Margin() string { - rv := objc.Call[string](d_, objc.Sel("margin")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536731-clear?language=objc +func (d_ DOMCSSStyleDeclaration) Clear() string { + rv := objc.Call[string](d_, objc.Sel("clear")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537033-pagebreakbefore?language=objc -func (d_ DOMCSSStyleDeclaration) PageBreakBefore() string { - rv := objc.Call[string](d_, objc.Sel("pageBreakBefore")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538180-setbackgroundimage?language=objc +func (d_ DOMCSSStyleDeclaration) SetBackgroundImage(backgroundImage string) { + objc.Call[objc.Void](d_, objc.Sel("setBackgroundImage:"), backgroundImage) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536966-clip?language=objc -func (d_ DOMCSSStyleDeclaration) Clip() string { - rv := objc.Call[string](d_, objc.Sel("clip")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536339-setfontsize?language=objc +func (d_ DOMCSSStyleDeclaration) SetFontSize(fontSize string) { + objc.Call[objc.Void](d_, objc.Sel("setFontSize:"), fontSize) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536449-bordertopwidth?language=objc -func (d_ DOMCSSStyleDeclaration) BorderTopWidth() string { - rv := objc.Call[string](d_, objc.Sel("borderTopWidth")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537964-setborderleftcolor?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderLeftColor(borderLeftColor string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderLeftColor:"), borderLeftColor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537387-minwidth?language=objc -func (d_ DOMCSSStyleDeclaration) MinWidth() string { - rv := objc.Call[string](d_, objc.Sel("minWidth")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537743-setborderspacing?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderSpacing(borderSpacing string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderSpacing:"), borderSpacing) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538004-setpagebreakafter?language=objc -func (d_ DOMCSSStyleDeclaration) SetPageBreakAfter(pageBreakAfter string) { - objc.Call[objc.Void](d_, objc.Sel("setPageBreakAfter:"), pageBreakAfter) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537524-settextdecoration?language=objc +func (d_ DOMCSSStyleDeclaration) SetTextDecoration(textDecoration string) { + objc.Call[objc.Void](d_, objc.Sel("setTextDecoration:"), textDecoration) } // [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537619-bordertop?language=objc -func (d_ DOMCSSStyleDeclaration) BorderTop() string { - rv := objc.Call[string](d_, objc.Sel("borderTop")) +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537415-backgroundrepeat?language=objc +func (d_ DOMCSSStyleDeclaration) BackgroundRepeat() string { + rv := objc.Call[string](d_, objc.Sel("backgroundRepeat")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536928-setvolume?language=objc -func (d_ DOMCSSStyleDeclaration) SetVolume(volume string) { - objc.Call[objc.Void](d_, objc.Sel("setVolume:"), volume) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537484-settexttransform?language=objc +func (d_ DOMCSSStyleDeclaration) SetTextTransform(textTransform string) { + objc.Call[objc.Void](d_, objc.Sel("setTextTransform:"), textTransform) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538133-setmaxwidth?language=objc -func (d_ DOMCSSStyleDeclaration) SetMaxWidth(maxWidth string) { - objc.Call[objc.Void](d_, objc.Sel("setMaxWidth:"), maxWidth) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537622-left?language=objc +func (d_ DOMCSSStyleDeclaration) Left() string { + rv := objc.Call[string](d_, objc.Sel("left")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537303-setposition?language=objc -func (d_ DOMCSSStyleDeclaration) SetPosition(position string) { - objc.Call[objc.Void](d_, objc.Sel("setPosition:"), position) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537422-setborderleftwidth?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderLeftWidth(borderLeftWidth string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderLeftWidth:"), borderLeftWidth) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536909-right?language=objc -func (d_ DOMCSSStyleDeclaration) Right() string { - rv := objc.Call[string](d_, objc.Sel("right")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537929-setpagebreakbefore?language=objc +func (d_ DOMCSSStyleDeclaration) SetPageBreakBefore(pageBreakBefore string) { + objc.Call[objc.Void](d_, objc.Sel("setPageBreakBefore:"), pageBreakBefore) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537899-borderleftstyle?language=objc -func (d_ DOMCSSStyleDeclaration) BorderLeftStyle() string { - rv := objc.Call[string](d_, objc.Sel("borderLeftStyle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537673-setcontent?language=objc +func (d_ DOMCSSStyleDeclaration) SetContent(content string) { + objc.Call[objc.Void](d_, objc.Sel("setContent:"), content) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536742-setoutlinewidth?language=objc -func (d_ DOMCSSStyleDeclaration) SetOutlineWidth(outlineWidth string) { - objc.Call[objc.Void](d_, objc.Sel("setOutlineWidth:"), outlineWidth) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537517-voicefamily?language=objc +func (d_ DOMCSSStyleDeclaration) VoiceFamily() string { + rv := objc.Call[string](d_, objc.Sel("voiceFamily")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537141-setborderleft?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderLeft(borderLeft string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderLeft:"), borderLeft) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537488-cssfloat?language=objc +func (d_ DOMCSSStyleDeclaration) CssFloat() string { + rv := objc.Call[string](d_, objc.Sel("cssFloat")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537919-setbackground?language=objc -func (d_ DOMCSSStyleDeclaration) SetBackground(background string) { - objc.Call[objc.Void](d_, objc.Sel("setBackground:"), background) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537327-overflow?language=objc +func (d_ DOMCSSStyleDeclaration) Overflow() string { + rv := objc.Call[string](d_, objc.Sel("overflow")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537394-stress?language=objc -func (d_ DOMCSSStyleDeclaration) Stress() string { - rv := objc.Call[string](d_, objc.Sel("stress")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537434-setliststyle?language=objc +func (d_ DOMCSSStyleDeclaration) SetListStyle(listStyle string) { + objc.Call[objc.Void](d_, objc.Sel("setListStyle:"), listStyle) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537608-setpagebreakinside?language=objc -func (d_ DOMCSSStyleDeclaration) SetPageBreakInside(pageBreakInside string) { - objc.Call[objc.Void](d_, objc.Sel("setPageBreakInside:"), pageBreakInside) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536956-setdirection?language=objc +func (d_ DOMCSSStyleDeclaration) SetDirection(direction string) { + objc.Call[objc.Void](d_, objc.Sel("setDirection:"), direction) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537403-texttransform?language=objc -func (d_ DOMCSSStyleDeclaration) TextTransform() string { - rv := objc.Call[string](d_, objc.Sel("textTransform")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536215-cue?language=objc +func (d_ DOMCSSStyleDeclaration) Cue() string { + rv := objc.Call[string](d_, objc.Sel("cue")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537862-setvoicefamily?language=objc -func (d_ DOMCSSStyleDeclaration) SetVoiceFamily(voiceFamily string) { - objc.Call[objc.Void](d_, objc.Sel("setVoiceFamily:"), voiceFamily) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536200-orphans?language=objc +func (d_ DOMCSSStyleDeclaration) Orphans() string { + rv := objc.Call[string](d_, objc.Sel("orphans")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537307-setwidows?language=objc -func (d_ DOMCSSStyleDeclaration) SetWidows(widows string) { - objc.Call[objc.Void](d_, objc.Sel("setWidows:"), widows) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537428-setpaddingbottom?language=objc +func (d_ DOMCSSStyleDeclaration) SetPaddingBottom(paddingBottom string) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingBottom:"), paddingBottom) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536811-setzindex?language=objc -func (d_ DOMCSSStyleDeclaration) SetZIndex(zIndex string) { - objc.Call[objc.Void](d_, objc.Sel("setZIndex:"), zIndex) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536389-setright?language=objc +func (d_ DOMCSSStyleDeclaration) SetRight(right string) { + objc.Call[objc.Void](d_, objc.Sel("setRight:"), right) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537940-settablelayout?language=objc -func (d_ DOMCSSStyleDeclaration) SetTableLayout(tableLayout string) { - objc.Call[objc.Void](d_, objc.Sel("setTableLayout:"), tableLayout) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537810-setverticalalign?language=objc +func (d_ DOMCSSStyleDeclaration) SetVerticalAlign(verticalAlign string) { + objc.Call[objc.Void](d_, objc.Sel("setVerticalAlign:"), verticalAlign) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538129-setclear?language=objc -func (d_ DOMCSSStyleDeclaration) SetClear(clear string) { - objc.Call[objc.Void](d_, objc.Sel("setClear:"), clear) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536294-setstress?language=objc +func (d_ DOMCSSStyleDeclaration) SetStress(stress string) { + objc.Call[objc.Void](d_, objc.Sel("setStress:"), stress) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536661-setborderrightcolor?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderRightColor(borderRightColor string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderRightColor:"), borderRightColor) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536650-setelevation?language=objc +func (d_ DOMCSSStyleDeclaration) SetElevation(elevation string) { + objc.Call[objc.Void](d_, objc.Sel("setElevation:"), elevation) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538116-setpausebefore?language=objc -func (d_ DOMCSSStyleDeclaration) SetPauseBefore(pauseBefore string) { - objc.Call[objc.Void](d_, objc.Sel("setPauseBefore:"), pauseBefore) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537136-borderbottom?language=objc +func (d_ DOMCSSStyleDeclaration) BorderBottom() string { + rv := objc.Call[string](d_, objc.Sel("borderBottom")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536531-setbottom?language=objc -func (d_ DOMCSSStyleDeclaration) SetBottom(bottom string) { - objc.Call[objc.Void](d_, objc.Sel("setBottom:"), bottom) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536305-setspeak?language=objc +func (d_ DOMCSSStyleDeclaration) SetSpeak(speak string) { + objc.Call[objc.Void](d_, objc.Sel("setSpeak:"), speak) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538180-setbackgroundimage?language=objc -func (d_ DOMCSSStyleDeclaration) SetBackgroundImage(backgroundImage string) { - objc.Call[objc.Void](d_, objc.Sel("setBackgroundImage:"), backgroundImage) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536925-height?language=objc +func (d_ DOMCSSStyleDeclaration) Height() string { + rv := objc.Call[string](d_, objc.Sel("height")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536461-setfont?language=objc -func (d_ DOMCSSStyleDeclaration) SetFont(font string) { - objc.Call[objc.Void](d_, objc.Sel("setFont:"), font) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537439-quotes?language=objc +func (d_ DOMCSSStyleDeclaration) Quotes() string { + rv := objc.Call[string](d_, objc.Sel("quotes")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536630-borderrightcolor?language=objc -func (d_ DOMCSSStyleDeclaration) BorderRightColor() string { - rv := objc.Call[string](d_, objc.Sel("borderRightColor")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538039-margin?language=objc +func (d_ DOMCSSStyleDeclaration) Margin() string { + rv := objc.Call[string](d_, objc.Sel("margin")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536502-setbackgroundrepeat?language=objc -func (d_ DOMCSSStyleDeclaration) SetBackgroundRepeat(backgroundRepeat string) { - objc.Call[objc.Void](d_, objc.Sel("setBackgroundRepeat:"), backgroundRepeat) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537779-setborderrightwidth?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderRightWidth(borderRightWidth string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderRightWidth:"), borderRightWidth) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537982-setborderleftstyle?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderLeftStyle(borderLeftStyle string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderLeftStyle:"), borderLeftStyle) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536570-setspeakpunctuation?language=objc +func (d_ DOMCSSStyleDeclaration) SetSpeakPunctuation(speakPunctuation string) { + objc.Call[objc.Void](d_, objc.Sel("setSpeakPunctuation:"), speakPunctuation) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537212-backgroundposition?language=objc -func (d_ DOMCSSStyleDeclaration) BackgroundPosition() string { - rv := objc.Call[string](d_, objc.Sel("backgroundPosition")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537216-borderright?language=objc +func (d_ DOMCSSStyleDeclaration) BorderRight() string { + rv := objc.Call[string](d_, objc.Sel("borderRight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536820-setbackgroundcolor?language=objc -func (d_ DOMCSSStyleDeclaration) SetBackgroundColor(backgroundColor string) { - objc.Call[objc.Void](d_, objc.Sel("setBackgroundColor:"), backgroundColor) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536661-setborderrightcolor?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderRightColor(borderRightColor string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderRightColor:"), borderRightColor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537553-zindex?language=objc -func (d_ DOMCSSStyleDeclaration) ZIndex() string { - rv := objc.Call[string](d_, objc.Sel("zIndex")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536334-setminheight?language=objc +func (d_ DOMCSSStyleDeclaration) SetMinHeight(minHeight string) { + objc.Call[objc.Void](d_, objc.Sel("setMinHeight:"), minHeight) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537483-textdecoration?language=objc -func (d_ DOMCSSStyleDeclaration) TextDecoration() string { - rv := objc.Call[string](d_, objc.Sel("textDecoration")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537586-setfontvariant?language=objc +func (d_ DOMCSSStyleDeclaration) SetFontVariant(fontVariant string) { + objc.Call[objc.Void](d_, objc.Sel("setFontVariant:"), fontVariant) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537485-setfontfamily?language=objc -func (d_ DOMCSSStyleDeclaration) SetFontFamily(fontFamily string) { - objc.Call[objc.Void](d_, objc.Sel("setFontFamily:"), fontFamily) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537561-paddingleft?language=objc +func (d_ DOMCSSStyleDeclaration) PaddingLeft() string { + rv := objc.Call[string](d_, objc.Sel("paddingLeft")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537622-left?language=objc -func (d_ DOMCSSStyleDeclaration) Left() string { - rv := objc.Call[string](d_, objc.Sel("left")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537208-padding?language=objc +func (d_ DOMCSSStyleDeclaration) Padding() string { + rv := objc.Call[string](d_, objc.Sel("padding")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537586-setfontvariant?language=objc -func (d_ DOMCSSStyleDeclaration) SetFontVariant(fontVariant string) { - objc.Call[objc.Void](d_, objc.Sel("setFontVariant:"), fontVariant) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537619-bordertop?language=objc +func (d_ DOMCSSStyleDeclaration) BorderTop() string { + rv := objc.Call[string](d_, objc.Sel("borderTop")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537819-outlinewidth?language=objc -func (d_ DOMCSSStyleDeclaration) OutlineWidth() string { - rv := objc.Call[string](d_, objc.Sel("outlineWidth")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536531-setbottom?language=objc +func (d_ DOMCSSStyleDeclaration) SetBottom(bottom string) { + objc.Call[objc.Void](d_, objc.Sel("setBottom:"), bottom) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536470-setpause?language=objc -func (d_ DOMCSSStyleDeclaration) SetPause(pause string) { - objc.Call[objc.Void](d_, objc.Sel("setPause:"), pause) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538024-letterspacing?language=objc +func (d_ DOMCSSStyleDeclaration) LetterSpacing() string { + rv := objc.Call[string](d_, objc.Sel("letterSpacing")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536331-setcounterreset?language=objc -func (d_ DOMCSSStyleDeclaration) SetCounterReset(counterReset string) { - objc.Call[objc.Void](d_, objc.Sel("setCounterReset:"), counterReset) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536287-tablelayout?language=objc +func (d_ DOMCSSStyleDeclaration) TableLayout() string { + rv := objc.Call[string](d_, objc.Sel("tableLayout")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537627-setcue?language=objc -func (d_ DOMCSSStyleDeclaration) SetCue(cue string) { - objc.Call[objc.Void](d_, objc.Sel("setCue:"), cue) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536978-setborderbottom?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderBottom(borderBottom string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderBottom:"), borderBottom) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537361-setmarginbottom?language=objc -func (d_ DOMCSSStyleDeclaration) SetMarginBottom(marginBottom string) { - objc.Call[objc.Void](d_, objc.Sel("setMarginBottom:"), marginBottom) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536865-borderbottomstyle?language=objc +func (d_ DOMCSSStyleDeclaration) BorderBottomStyle() string { + rv := objc.Call[string](d_, objc.Sel("borderBottomStyle")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536200-orphans?language=objc -func (d_ DOMCSSStyleDeclaration) Orphans() string { - rv := objc.Call[string](d_, objc.Sel("orphans")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537806-marginright?language=objc +func (d_ DOMCSSStyleDeclaration) MarginRight() string { + rv := objc.Call[string](d_, objc.Sel("marginRight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536734-setquotes?language=objc -func (d_ DOMCSSStyleDeclaration) SetQuotes(quotes string) { - objc.Call[objc.Void](d_, objc.Sel("setQuotes:"), quotes) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536916-setleft?language=objc +func (d_ DOMCSSStyleDeclaration) SetLeft(left string) { + objc.Call[objc.Void](d_, objc.Sel("setLeft:"), left) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536185-captionside?language=objc -func (d_ DOMCSSStyleDeclaration) CaptionSide() string { - rv := objc.Call[string](d_, objc.Sel("captionSide")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537949-position?language=objc +func (d_ DOMCSSStyleDeclaration) Position() string { + rv := objc.Call[string](d_, objc.Sel("position")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536817-outlinecolor?language=objc -func (d_ DOMCSSStyleDeclaration) OutlineColor() string { - rv := objc.Call[string](d_, objc.Sel("outlineColor")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537725-liststyleimage?language=objc +func (d_ DOMCSSStyleDeclaration) ListStyleImage() string { + rv := objc.Call[string](d_, objc.Sel("listStyleImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537557-bordertopcolor?language=objc -func (d_ DOMCSSStyleDeclaration) BorderTopColor() string { - rv := objc.Call[string](d_, objc.Sel("borderTopColor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537307-setwidows?language=objc +func (d_ DOMCSSStyleDeclaration) SetWidows(widows string) { + objc.Call[objc.Void](d_, objc.Sel("setWidows:"), widows) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537059-maxheight?language=objc -func (d_ DOMCSSStyleDeclaration) MaxHeight() string { - rv := objc.Call[string](d_, objc.Sel("maxHeight")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536508-backgroundcolor?language=objc +func (d_ DOMCSSStyleDeclaration) BackgroundColor() string { + rv := objc.Call[string](d_, objc.Sel("backgroundColor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536467-setmarginleft?language=objc -func (d_ DOMCSSStyleDeclaration) SetMarginLeft(marginLeft string) { - objc.Call[objc.Void](d_, objc.Sel("setMarginLeft:"), marginLeft) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536272-display?language=objc +func (d_ DOMCSSStyleDeclaration) Display() string { + rv := objc.Call[string](d_, objc.Sel("display")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536334-setminheight?language=objc -func (d_ DOMCSSStyleDeclaration) SetMinHeight(minHeight string) { - objc.Call[objc.Void](d_, objc.Sel("setMinHeight:"), minHeight) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537217-cuebefore?language=objc +func (d_ DOMCSSStyleDeclaration) CueBefore() string { + rv := objc.Call[string](d_, objc.Sel("cueBefore")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536223-paddingright?language=objc -func (d_ DOMCSSStyleDeclaration) PaddingRight() string { - rv := objc.Call[string](d_, objc.Sel("paddingRight")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536615-setfontsizeadjust?language=objc +func (d_ DOMCSSStyleDeclaration) SetFontSizeAdjust(fontSizeAdjust string) { + objc.Call[objc.Void](d_, objc.Sel("setFontSizeAdjust:"), fontSizeAdjust) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538198-borderrightstyle?language=objc -func (d_ DOMCSSStyleDeclaration) BorderRightStyle() string { - rv := objc.Call[string](d_, objc.Sel("borderRightStyle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536632-setfontweight?language=objc +func (d_ DOMCSSStyleDeclaration) SetFontWeight(fontWeight string) { + objc.Call[objc.Void](d_, objc.Sel("setFontWeight:"), fontWeight) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538123-volume?language=objc -func (d_ DOMCSSStyleDeclaration) Volume() string { - rv := objc.Call[string](d_, objc.Sel("volume")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537652-outline?language=objc +func (d_ DOMCSSStyleDeclaration) Outline() string { + rv := objc.Call[string](d_, objc.Sel("outline")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537340-direction?language=objc -func (d_ DOMCSSStyleDeclaration) Direction() string { - rv := objc.Call[string](d_, objc.Sel("direction")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536221-bottom?language=objc +func (d_ DOMCSSStyleDeclaration) Bottom() string { + rv := objc.Call[string](d_, objc.Sel("bottom")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537136-borderbottom?language=objc -func (d_ DOMCSSStyleDeclaration) BorderBottom() string { - rv := objc.Call[string](d_, objc.Sel("borderBottom")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537069-setrichness?language=objc +func (d_ DOMCSSStyleDeclaration) SetRichness(richness string) { + objc.Call[objc.Void](d_, objc.Sel("setRichness:"), richness) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536621-color?language=objc -func (d_ DOMCSSStyleDeclaration) Color() string { - rv := objc.Call[string](d_, objc.Sel("color")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536742-setoutlinewidth?language=objc +func (d_ DOMCSSStyleDeclaration) SetOutlineWidth(outlineWidth string) { + objc.Call[objc.Void](d_, objc.Sel("setOutlineWidth:"), outlineWidth) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537208-padding?language=objc -func (d_ DOMCSSStyleDeclaration) Padding() string { - rv := objc.Call[string](d_, objc.Sel("padding")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537181-speakpunctuation?language=objc +func (d_ DOMCSSStyleDeclaration) SpeakPunctuation() string { + rv := objc.Call[string](d_, objc.Sel("speakPunctuation")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537213-setcolor?language=objc -func (d_ DOMCSSStyleDeclaration) SetColor(color string) { - objc.Call[objc.Void](d_, objc.Sel("setColor:"), color) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536789-setunicodebidi?language=objc +func (d_ DOMCSSStyleDeclaration) SetUnicodeBidi(unicodeBidi string) { + objc.Call[objc.Void](d_, objc.Sel("setUnicodeBidi:"), unicodeBidi) } // [Full Topic] @@ -1314,221 +1340,206 @@ func (d_ DOMCSSStyleDeclaration) Widows() string { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537595-counterincrement?language=objc -func (d_ DOMCSSStyleDeclaration) CounterIncrement() string { - rv := objc.Call[string](d_, objc.Sel("counterIncrement")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536630-borderrightcolor?language=objc +func (d_ DOMCSSStyleDeclaration) BorderRightColor() string { + rv := objc.Call[string](d_, objc.Sel("borderRightColor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537561-paddingleft?language=objc -func (d_ DOMCSSStyleDeclaration) PaddingLeft() string { - rv := objc.Call[string](d_, objc.Sel("paddingLeft")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537399-backgroundattachment?language=objc +func (d_ DOMCSSStyleDeclaration) BackgroundAttachment() string { + rv := objc.Call[string](d_, objc.Sel("backgroundAttachment")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536575-setborderright?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderRight(borderRight string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderRight:"), borderRight) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537383-setpitchrange?language=objc -func (d_ DOMCSSStyleDeclaration) SetPitchRange(pitchRange string) { - objc.Call[objc.Void](d_, objc.Sel("setPitchRange:"), pitchRange) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537608-setpagebreakinside?language=objc +func (d_ DOMCSSStyleDeclaration) SetPageBreakInside(pageBreakInside string) { + objc.Call[objc.Void](d_, objc.Sel("setPageBreakInside:"), pageBreakInside) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537097-elevation?language=objc -func (d_ DOMCSSStyleDeclaration) Elevation() string { - rv := objc.Call[string](d_, objc.Sel("elevation")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537063-counterreset?language=objc +func (d_ DOMCSSStyleDeclaration) CounterReset() string { + rv := objc.Call[string](d_, objc.Sel("counterReset")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537415-backgroundrepeat?language=objc -func (d_ DOMCSSStyleDeclaration) BackgroundRepeat() string { - rv := objc.Call[string](d_, objc.Sel("backgroundRepeat")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537412-setoutlinecolor?language=objc +func (d_ DOMCSSStyleDeclaration) SetOutlineColor(outlineColor string) { + objc.Call[objc.Void](d_, objc.Sel("setOutlineColor:"), outlineColor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536544-borderleft?language=objc -func (d_ DOMCSSStyleDeclaration) BorderLeft() string { - rv := objc.Call[string](d_, objc.Sel("borderLeft")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536486-borderrightwidth?language=objc +func (d_ DOMCSSStyleDeclaration) BorderRightWidth() string { + rv := objc.Call[string](d_, objc.Sel("borderRightWidth")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536615-setfontsizeadjust?language=objc -func (d_ DOMCSSStyleDeclaration) SetFontSizeAdjust(fontSizeAdjust string) { - objc.Call[objc.Void](d_, objc.Sel("setFontSizeAdjust:"), fontSizeAdjust) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536843-setfontstyle?language=objc +func (d_ DOMCSSStyleDeclaration) SetFontStyle(fontStyle string) { + objc.Call[objc.Void](d_, objc.Sel("setFontStyle:"), fontStyle) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537256-page?language=objc -func (d_ DOMCSSStyleDeclaration) Page() string { - rv := objc.Call[string](d_, objc.Sel("page")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536196-font?language=objc +func (d_ DOMCSSStyleDeclaration) Font() string { + rv := objc.Call[string](d_, objc.Sel("font")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537957-playduring?language=objc -func (d_ DOMCSSStyleDeclaration) PlayDuring() string { - rv := objc.Call[string](d_, objc.Sel("playDuring")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537747-backgroundimage?language=objc +func (d_ DOMCSSStyleDeclaration) BackgroundImage() string { + rv := objc.Call[string](d_, objc.Sel("backgroundImage")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537637-liststyleposition?language=objc -func (d_ DOMCSSStyleDeclaration) ListStylePosition() string { - rv := objc.Call[string](d_, objc.Sel("listStylePosition")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537504-borderleftcolor?language=objc +func (d_ DOMCSSStyleDeclaration) BorderLeftColor() string { + rv := objc.Call[string](d_, objc.Sel("borderLeftColor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536347-speaknumeral?language=objc -func (d_ DOMCSSStyleDeclaration) SpeakNumeral() string { - rv := objc.Call[string](d_, objc.Sel("speakNumeral")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537057-setvisibility?language=objc +func (d_ DOMCSSStyleDeclaration) SetVisibility(visibility string) { + objc.Call[objc.Void](d_, objc.Sel("setVisibility:"), visibility) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536508-backgroundcolor?language=objc -func (d_ DOMCSSStyleDeclaration) BackgroundColor() string { - rv := objc.Call[string](d_, objc.Sel("backgroundColor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538116-setpausebefore?language=objc +func (d_ DOMCSSStyleDeclaration) SetPauseBefore(pauseBefore string) { + objc.Call[objc.Void](d_, objc.Sel("setPauseBefore:"), pauseBefore) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536215-cue?language=objc -func (d_ DOMCSSStyleDeclaration) Cue() string { - rv := objc.Call[string](d_, objc.Sel("cue")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537394-stress?language=objc +func (d_ DOMCSSStyleDeclaration) Stress() string { + rv := objc.Call[string](d_, objc.Sel("stress")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537652-outline?language=objc -func (d_ DOMCSSStyleDeclaration) Outline() string { - rv := objc.Call[string](d_, objc.Sel("outline")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538129-setclear?language=objc +func (d_ DOMCSSStyleDeclaration) SetClear(clear string) { + objc.Call[objc.Void](d_, objc.Sel("setClear:"), clear) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536486-borderrightwidth?language=objc -func (d_ DOMCSSStyleDeclaration) BorderRightWidth() string { - rv := objc.Call[string](d_, objc.Sel("borderRightWidth")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537527-borderleftwidth?language=objc +func (d_ DOMCSSStyleDeclaration) BorderLeftWidth() string { + rv := objc.Call[string](d_, objc.Sel("borderLeftWidth")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537534-setletterspacing?language=objc -func (d_ DOMCSSStyleDeclaration) SetLetterSpacing(letterSpacing string) { - objc.Call[objc.Void](d_, objc.Sel("setLetterSpacing:"), letterSpacing) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537695-setbackgroundattachment?language=objc +func (d_ DOMCSSStyleDeclaration) SetBackgroundAttachment(backgroundAttachment string) { + objc.Call[objc.Void](d_, objc.Sel("setBackgroundAttachment:"), backgroundAttachment) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537062-setwidth?language=objc -func (d_ DOMCSSStyleDeclaration) SetWidth(width string) { - objc.Call[objc.Void](d_, objc.Sel("setWidth:"), width) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537033-pagebreakbefore?language=objc +func (d_ DOMCSSStyleDeclaration) PageBreakBefore() string { + rv := objc.Call[string](d_, objc.Sel("pageBreakBefore")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536246-setpitch?language=objc -func (d_ DOMCSSStyleDeclaration) SetPitch(pitch string) { - objc.Call[objc.Void](d_, objc.Sel("setPitch:"), pitch) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537760-setheight?language=objc +func (d_ DOMCSSStyleDeclaration) SetHeight(height string) { + objc.Call[objc.Void](d_, objc.Sel("setHeight:"), height) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537827-speak?language=objc -func (d_ DOMCSSStyleDeclaration) Speak() string { - rv := objc.Call[string](d_, objc.Sel("speak")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537059-maxheight?language=objc +func (d_ DOMCSSStyleDeclaration) MaxHeight() string { + rv := objc.Call[string](d_, objc.Sel("maxHeight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538135-setmarks?language=objc -func (d_ DOMCSSStyleDeclaration) SetMarks(marks string) { - objc.Call[objc.Void](d_, objc.Sel("setMarks:"), marks) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537311-setcursor?language=objc -func (d_ DOMCSSStyleDeclaration) SetCursor(cursor string) { - objc.Call[objc.Void](d_, objc.Sel("setCursor:"), cursor) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537501-setmargin?language=objc +func (d_ DOMCSSStyleDeclaration) SetMargin(margin string) { + objc.Call[objc.Void](d_, objc.Sel("setMargin:"), margin) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537083-setpaddingright?language=objc -func (d_ DOMCSSStyleDeclaration) SetPaddingRight(paddingRight string) { - objc.Call[objc.Void](d_, objc.Sel("setPaddingRight:"), paddingRight) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537819-outlinewidth?language=objc +func (d_ DOMCSSStyleDeclaration) OutlineWidth() string { + rv := objc.Call[string](d_, objc.Sel("outlineWidth")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537420-settop?language=objc -func (d_ DOMCSSStyleDeclaration) SetTop(top string) { - objc.Call[objc.Void](d_, objc.Sel("setTop:"), top) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536734-setquotes?language=objc +func (d_ DOMCSSStyleDeclaration) SetQuotes(quotes string) { + objc.Call[objc.Void](d_, objc.Sel("setQuotes:"), quotes) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537505-unicodebidi?language=objc -func (d_ DOMCSSStyleDeclaration) UnicodeBidi() string { - rv := objc.Call[string](d_, objc.Sel("unicodeBidi")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537498-liststyletype?language=objc +func (d_ DOMCSSStyleDeclaration) ListStyleType() string { + rv := objc.Call[string](d_, objc.Sel("listStyleType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538222-setbackgroundposition?language=objc -func (d_ DOMCSSStyleDeclaration) SetBackgroundPosition(backgroundPosition string) { - objc.Call[objc.Void](d_, objc.Sel("setBackgroundPosition:"), backgroundPosition) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538004-setpagebreakafter?language=objc +func (d_ DOMCSSStyleDeclaration) SetPageBreakAfter(pageBreakAfter string) { + objc.Call[objc.Void](d_, objc.Sel("setPageBreakAfter:"), pageBreakAfter) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537949-position?language=objc -func (d_ DOMCSSStyleDeclaration) Position() string { - rv := objc.Call[string](d_, objc.Sel("position")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536817-outlinecolor?language=objc +func (d_ DOMCSSStyleDeclaration) OutlineColor() string { + rv := objc.Call[string](d_, objc.Sel("outlineColor")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536545-setspeakheader?language=objc -func (d_ DOMCSSStyleDeclaration) SetSpeakHeader(speakHeader string) { - objc.Call[objc.Void](d_, objc.Sel("setSpeakHeader:"), speakHeader) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536331-setcounterreset?language=objc +func (d_ DOMCSSStyleDeclaration) SetCounterReset(counterReset string) { + objc.Call[objc.Void](d_, objc.Sel("setCounterReset:"), counterReset) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536789-setunicodebidi?language=objc -func (d_ DOMCSSStyleDeclaration) SetUnicodeBidi(unicodeBidi string) { - objc.Call[objc.Void](d_, objc.Sel("setUnicodeBidi:"), unicodeBidi) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537992-top?language=objc +func (d_ DOMCSSStyleDeclaration) Top() string { + rv := objc.Call[string](d_, objc.Sel("top")) + return rv } // [Full Topic] @@ -1541,291 +1552,285 @@ func (d_ DOMCSSStyleDeclaration) SpeakHeader() string { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537291-background?language=objc -func (d_ DOMCSSStyleDeclaration) Background() string { - rv := objc.Call[string](d_, objc.Sel("background")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537407-setliststyleposition?language=objc +func (d_ DOMCSSStyleDeclaration) SetListStylePosition(listStylePosition string) { + objc.Call[objc.Void](d_, objc.Sel("setListStylePosition:"), listStylePosition) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538098-setliststyleimage?language=objc -func (d_ DOMCSSStyleDeclaration) SetListStyleImage(listStyleImage string) { - objc.Call[objc.Void](d_, objc.Sel("setListStyleImage:"), listStyleImage) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536461-setfont?language=objc +func (d_ DOMCSSStyleDeclaration) SetFont(font string) { + objc.Call[objc.Void](d_, objc.Sel("setFont:"), font) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537216-borderright?language=objc -func (d_ DOMCSSStyleDeclaration) BorderRight() string { - rv := objc.Call[string](d_, objc.Sel("borderRight")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536564-settextalign?language=objc +func (d_ DOMCSSStyleDeclaration) SetTextAlign(textAlign string) { + objc.Call[objc.Void](d_, objc.Sel("setTextAlign:"), textAlign) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537779-setborderrightwidth?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderRightWidth(borderRightWidth string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderRightWidth:"), borderRightWidth) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537577-maxwidth?language=objc +func (d_ DOMCSSStyleDeclaration) MaxWidth() string { + rv := objc.Call[string](d_, objc.Sel("maxWidth")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536390-marginbottom?language=objc -func (d_ DOMCSSStyleDeclaration) MarginBottom() string { - rv := objc.Call[string](d_, objc.Sel("marginBottom")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536405-margintop?language=objc +func (d_ DOMCSSStyleDeclaration) MarginTop() string { + rv := objc.Call[string](d_, objc.Sel("marginTop")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537399-backgroundattachment?language=objc -func (d_ DOMCSSStyleDeclaration) BackgroundAttachment() string { - rv := objc.Call[string](d_, objc.Sel("backgroundAttachment")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536395-setspeaknumeral?language=objc +func (d_ DOMCSSStyleDeclaration) SetSpeakNumeral(speakNumeral string) { + objc.Call[objc.Void](d_, objc.Sel("setSpeakNumeral:"), speakNumeral) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538103-size?language=objc -func (d_ DOMCSSStyleDeclaration) Size() string { - rv := objc.Call[string](d_, objc.Sel("size")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537897-bordercollapse?language=objc +func (d_ DOMCSSStyleDeclaration) BorderCollapse() string { + rv := objc.Call[string](d_, objc.Sel("borderCollapse")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537530-setwordspacing?language=objc -func (d_ DOMCSSStyleDeclaration) SetWordSpacing(wordSpacing string) { - objc.Call[objc.Void](d_, objc.Sel("setWordSpacing:"), wordSpacing) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537452-fontstretch?language=objc +func (d_ DOMCSSStyleDeclaration) FontStretch() string { + rv := objc.Call[string](d_, objc.Sel("fontStretch")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537996-pitch?language=objc -func (d_ DOMCSSStyleDeclaration) Pitch() string { - rv := objc.Call[string](d_, objc.Sel("pitch")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536964-setbordertopwidth?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderTopWidth(borderTopWidth string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderTopWidth:"), borderTopWidth) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537181-speakpunctuation?language=objc -func (d_ DOMCSSStyleDeclaration) SpeakPunctuation() string { - rv := objc.Call[string](d_, objc.Sel("speakPunctuation")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536557-cueafter?language=objc +func (d_ DOMCSSStyleDeclaration) CueAfter() string { + rv := objc.Call[string](d_, objc.Sel("cueAfter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536560-lineheight?language=objc -func (d_ DOMCSSStyleDeclaration) LineHeight() string { - rv := objc.Call[string](d_, objc.Sel("lineHeight")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537329-visibility?language=objc +func (d_ DOMCSSStyleDeclaration) Visibility() string { + rv := objc.Call[string](d_, objc.Sel("visibility")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537422-setborderleftwidth?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderLeftWidth(borderLeftWidth string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderLeftWidth:"), borderLeftWidth) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537536-setbordertopcolor?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderTopColor(borderTopColor string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderTopColor:"), borderTopColor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537992-top?language=objc -func (d_ DOMCSSStyleDeclaration) Top() string { - rv := objc.Call[string](d_, objc.Sel("top")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537595-counterincrement?language=objc +func (d_ DOMCSSStyleDeclaration) CounterIncrement() string { + rv := objc.Call[string](d_, objc.Sel("counterIncrement")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536272-display?language=objc -func (d_ DOMCSSStyleDeclaration) Display() string { - rv := objc.Call[string](d_, objc.Sel("display")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536502-setbackgroundrepeat?language=objc +func (d_ DOMCSSStyleDeclaration) SetBackgroundRepeat(backgroundRepeat string) { + objc.Call[objc.Void](d_, objc.Sel("setBackgroundRepeat:"), backgroundRepeat) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537174-setcounterincrement?language=objc -func (d_ DOMCSSStyleDeclaration) SetCounterIncrement(counterIncrement string) { - objc.Call[objc.Void](d_, objc.Sel("setCounterIncrement:"), counterIncrement) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537384-borderstyle?language=objc +func (d_ DOMCSSStyleDeclaration) BorderStyle() string { + rv := objc.Call[string](d_, objc.Sel("borderStyle")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536221-bottom?language=objc -func (d_ DOMCSSStyleDeclaration) Bottom() string { - rv := objc.Call[string](d_, objc.Sel("bottom")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536347-speaknumeral?language=objc +func (d_ DOMCSSStyleDeclaration) SpeakNumeral() string { + rv := objc.Call[string](d_, objc.Sel("speakNumeral")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536882-wordspacing?language=objc -func (d_ DOMCSSStyleDeclaration) WordSpacing() string { - rv := objc.Call[string](d_, objc.Sel("wordSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536185-captionside?language=objc +func (d_ DOMCSSStyleDeclaration) CaptionSide() string { + rv := objc.Call[string](d_, objc.Sel("captionSide")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537037-setbordertop?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderTop(borderTop string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderTop:"), borderTop) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537420-settop?language=objc +func (d_ DOMCSSStyleDeclaration) SetTop(top string) { + objc.Call[objc.Void](d_, objc.Sel("setTop:"), top) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537698-paddingtop?language=objc -func (d_ DOMCSSStyleDeclaration) PaddingTop() string { - rv := objc.Call[string](d_, objc.Sel("paddingTop")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536820-setbackgroundcolor?language=objc +func (d_ DOMCSSStyleDeclaration) SetBackgroundColor(backgroundColor string) { + objc.Call[objc.Void](d_, objc.Sel("setBackgroundColor:"), backgroundColor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536370-textalign?language=objc -func (d_ DOMCSSStyleDeclaration) TextAlign() string { - rv := objc.Call[string](d_, objc.Sel("textAlign")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537827-speak?language=objc +func (d_ DOMCSSStyleDeclaration) Speak() string { + rv := objc.Call[string](d_, objc.Sel("speak")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538125-paddingbottom?language=objc -func (d_ DOMCSSStyleDeclaration) PaddingBottom() string { - rv := objc.Call[string](d_, objc.Sel("paddingBottom")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537495-fontweight?language=objc +func (d_ DOMCSSStyleDeclaration) FontWeight() string { + rv := objc.Call[string](d_, objc.Sel("fontWeight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537527-borderleftwidth?language=objc -func (d_ DOMCSSStyleDeclaration) BorderLeftWidth() string { - rv := objc.Call[string](d_, objc.Sel("borderLeftWidth")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536909-right?language=objc +func (d_ DOMCSSStyleDeclaration) Right() string { + rv := objc.Call[string](d_, objc.Sel("right")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537395-setpaddingtop?language=objc -func (d_ DOMCSSStyleDeclaration) SetPaddingTop(paddingTop string) { - objc.Call[objc.Void](d_, objc.Sel("setPaddingTop:"), paddingTop) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536179-setpage?language=objc +func (d_ DOMCSSStyleDeclaration) SetPage(page string) { + objc.Call[objc.Void](d_, objc.Sel("setPage:"), page) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537671-textindent?language=objc -func (d_ DOMCSSStyleDeclaration) TextIndent() string { - rv := objc.Call[string](d_, objc.Sel("textIndent")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537083-setpaddingright?language=objc +func (d_ DOMCSSStyleDeclaration) SetPaddingRight(paddingRight string) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingRight:"), paddingRight) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537607-borderwidth?language=objc -func (d_ DOMCSSStyleDeclaration) BorderWidth() string { - rv := objc.Call[string](d_, objc.Sel("borderWidth")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537821-richness?language=objc +func (d_ DOMCSSStyleDeclaration) Richness() string { + rv := objc.Call[string](d_, objc.Sel("richness")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537486-setbordercollapse?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderCollapse(borderCollapse string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderCollapse:"), borderCollapse) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536467-setmarginleft?language=objc +func (d_ DOMCSSStyleDeclaration) SetMarginLeft(marginLeft string) { + objc.Call[objc.Void](d_, objc.Sel("setMarginLeft:"), marginLeft) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536557-cueafter?language=objc -func (d_ DOMCSSStyleDeclaration) CueAfter() string { - rv := objc.Call[string](d_, objc.Sel("cueAfter")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537004-setbordertopstyle?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderTopStyle(borderTopStyle string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderTopStyle:"), borderTopStyle) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536431-setborderwidth?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderWidth(borderWidth string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderWidth:"), borderWidth) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537862-setvoicefamily?language=objc +func (d_ DOMCSSStyleDeclaration) SetVoiceFamily(voiceFamily string) { + objc.Call[objc.Void](d_, objc.Sel("setVoiceFamily:"), voiceFamily) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537915-setoutlinestyle?language=objc -func (d_ DOMCSSStyleDeclaration) SetOutlineStyle(outlineStyle string) { - objc.Call[objc.Void](d_, objc.Sel("setOutlineStyle:"), outlineStyle) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536560-lineheight?language=objc +func (d_ DOMCSSStyleDeclaration) LineHeight() string { + rv := objc.Call[string](d_, objc.Sel("lineHeight")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536519-setcuebefore?language=objc -func (d_ DOMCSSStyleDeclaration) SetCueBefore(cueBefore string) { - objc.Call[objc.Void](d_, objc.Sel("setCueBefore:"), cueBefore) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538135-setmarks?language=objc +func (d_ DOMCSSStyleDeclaration) SetMarks(marks string) { + objc.Call[objc.Void](d_, objc.Sel("setMarks:"), marks) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537743-setborderspacing?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderSpacing(borderSpacing string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderSpacing:"), borderSpacing) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537213-setcolor?language=objc +func (d_ DOMCSSStyleDeclaration) SetColor(color string) { + objc.Call[objc.Void](d_, objc.Sel("setColor:"), color) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536298-marginleft?language=objc -func (d_ DOMCSSStyleDeclaration) MarginLeft() string { - rv := objc.Call[string](d_, objc.Sel("marginLeft")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536223-paddingright?language=objc +func (d_ DOMCSSStyleDeclaration) PaddingRight() string { + rv := objc.Call[string](d_, objc.Sel("paddingRight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537434-setliststyle?language=objc -func (d_ DOMCSSStyleDeclaration) SetListStyle(listStyle string) { - objc.Call[objc.Void](d_, objc.Sel("setListStyle:"), listStyle) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536370-textalign?language=objc +func (d_ DOMCSSStyleDeclaration) TextAlign() string { + rv := objc.Call[string](d_, objc.Sel("textAlign")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537569-whitespace?language=objc -func (d_ DOMCSSStyleDeclaration) WhiteSpace() string { - rv := objc.Call[string](d_, objc.Sel("whiteSpace")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537237-setoutline?language=objc +func (d_ DOMCSSStyleDeclaration) SetOutline(outline string) { + objc.Call[objc.Void](d_, objc.Sel("setOutline:"), outline) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536522-borderbottomcolor?language=objc -func (d_ DOMCSSStyleDeclaration) BorderBottomColor() string { - rv := objc.Call[string](d_, objc.Sel("borderBottomColor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537530-setwordspacing?language=objc +func (d_ DOMCSSStyleDeclaration) SetWordSpacing(wordSpacing string) { + objc.Call[objc.Void](d_, objc.Sel("setWordSpacing:"), wordSpacing) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536636-bordertopstyle?language=objc -func (d_ DOMCSSStyleDeclaration) BorderTopStyle() string { - rv := objc.Call[string](d_, objc.Sel("borderTopStyle")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537062-setwidth?language=objc +func (d_ DOMCSSStyleDeclaration) SetWidth(width string) { + objc.Call[objc.Void](d_, objc.Sel("setWidth:"), width) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536195-setemptycells?language=objc -func (d_ DOMCSSStyleDeclaration) SetEmptyCells(emptyCells string) { - objc.Call[objc.Void](d_, objc.Sel("setEmptyCells:"), emptyCells) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537184-setmargintop?language=objc +func (d_ DOMCSSStyleDeclaration) SetMarginTop(marginTop string) { + objc.Call[objc.Void](d_, objc.Sel("setMarginTop:"), marginTop) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537469-pausebefore?language=objc -func (d_ DOMCSSStyleDeclaration) PauseBefore() string { - rv := objc.Call[string](d_, objc.Sel("pauseBefore")) +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537814-bordercolor?language=objc +func (d_ DOMCSSStyleDeclaration) BorderColor() string { + rv := objc.Call[string](d_, objc.Sel("borderColor")) return rv } @@ -1838,291 +1843,286 @@ func (d_ DOMCSSStyleDeclaration) SetSize(size string) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536604-setwhitespace?language=objc -func (d_ DOMCSSStyleDeclaration) SetWhiteSpace(whiteSpace string) { - objc.Call[objc.Void](d_, objc.Sel("setWhiteSpace:"), whiteSpace) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537483-textdecoration?language=objc +func (d_ DOMCSSStyleDeclaration) TextDecoration() string { + rv := objc.Call[string](d_, objc.Sel("textDecoration")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537610-setminwidth?language=objc -func (d_ DOMCSSStyleDeclaration) SetMinWidth(minWidth string) { - objc.Call[objc.Void](d_, objc.Sel("setMinWidth:"), minWidth) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537591-setpauseafter?language=objc +func (d_ DOMCSSStyleDeclaration) SetPauseAfter(pauseAfter string) { + objc.Call[objc.Void](d_, objc.Sel("setPauseAfter:"), pauseAfter) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537495-fontweight?language=objc -func (d_ DOMCSSStyleDeclaration) FontWeight() string { - rv := objc.Call[string](d_, objc.Sel("fontWeight")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537457-border?language=objc +func (d_ DOMCSSStyleDeclaration) Border() string { + rv := objc.Call[string](d_, objc.Sel("border")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536240-liststyle?language=objc -func (d_ DOMCSSStyleDeclaration) ListStyle() string { - rv := objc.Call[string](d_, objc.Sel("listStyle")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537607-borderwidth?language=objc +func (d_ DOMCSSStyleDeclaration) BorderWidth() string { + rv := objc.Call[string](d_, objc.Sel("borderWidth")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537513-setcueafter?language=objc -func (d_ DOMCSSStyleDeclaration) SetCueAfter(cueAfter string) { - objc.Call[objc.Void](d_, objc.Sel("setCueAfter:"), cueAfter) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537141-setborderleft?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderLeft(borderLeft string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderLeft:"), borderLeft) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536488-borderspacing?language=objc -func (d_ DOMCSSStyleDeclaration) BorderSpacing() string { - rv := objc.Call[string](d_, objc.Sel("borderSpacing")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538198-borderrightstyle?language=objc +func (d_ DOMCSSStyleDeclaration) BorderRightStyle() string { + rv := objc.Call[string](d_, objc.Sel("borderRightStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536327-settextindent?language=objc -func (d_ DOMCSSStyleDeclaration) SetTextIndent(textIndent string) { - objc.Call[objc.Void](d_, objc.Sel("setTextIndent:"), textIndent) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536544-borderleft?language=objc +func (d_ DOMCSSStyleDeclaration) BorderLeft() string { + rv := objc.Call[string](d_, objc.Sel("borderLeft")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536701-setazimuth?language=objc -func (d_ DOMCSSStyleDeclaration) SetAzimuth(azimuth string) { - objc.Call[objc.Void](d_, objc.Sel("setAzimuth:"), azimuth) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536316-pauseafter?language=objc +func (d_ DOMCSSStyleDeclaration) PauseAfter() string { + rv := objc.Call[string](d_, objc.Sel("pauseAfter")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536305-setspeak?language=objc -func (d_ DOMCSSStyleDeclaration) SetSpeak(speak string) { - objc.Call[objc.Void](d_, objc.Sel("setSpeak:"), speak) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536391-setliststyletype?language=objc +func (d_ DOMCSSStyleDeclaration) SetListStyleType(listStyleType string) { + objc.Call[objc.Void](d_, objc.Sel("setListStyleType:"), listStyleType) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536916-setleft?language=objc -func (d_ DOMCSSStyleDeclaration) SetLeft(left string) { - objc.Call[objc.Void](d_, objc.Sel("setLeft:"), left) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537940-settablelayout?language=objc +func (d_ DOMCSSStyleDeclaration) SetTableLayout(tableLayout string) { + objc.Call[objc.Void](d_, objc.Sel("setTableLayout:"), tableLayout) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536310-markeroffset?language=objc -func (d_ DOMCSSStyleDeclaration) MarkerOffset() string { - rv := objc.Call[string](d_, objc.Sel("markerOffset")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537915-setoutlinestyle?language=objc +func (d_ DOMCSSStyleDeclaration) SetOutlineStyle(outlineStyle string) { + objc.Call[objc.Void](d_, objc.Sel("setOutlineStyle:"), outlineStyle) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537468-setborderrightstyle?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderRightStyle(borderRightStyle string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderRightStyle:"), borderRightStyle) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537361-setmarginbottom?language=objc +func (d_ DOMCSSStyleDeclaration) SetMarginBottom(marginBottom string) { + objc.Call[objc.Void](d_, objc.Sel("setMarginBottom:"), marginBottom) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537488-cssfloat?language=objc -func (d_ DOMCSSStyleDeclaration) CssFloat() string { - rv := objc.Call[string](d_, objc.Sel("cssFloat")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538133-setmaxwidth?language=objc +func (d_ DOMCSSStyleDeclaration) SetMaxWidth(maxWidth string) { + objc.Call[objc.Void](d_, objc.Sel("setMaxWidth:"), maxWidth) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537947-setmaxheight?language=objc -func (d_ DOMCSSStyleDeclaration) SetMaxHeight(maxHeight string) { - objc.Call[objc.Void](d_, objc.Sel("setMaxHeight:"), maxHeight) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537758-setmarginright?language=objc +func (d_ DOMCSSStyleDeclaration) SetMarginRight(marginRight string) { + objc.Call[objc.Void](d_, objc.Sel("setMarginRight:"), marginRight) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537929-setpagebreakbefore?language=objc -func (d_ DOMCSSStyleDeclaration) SetPageBreakBefore(pageBreakBefore string) { - objc.Call[objc.Void](d_, objc.Sel("setPageBreakBefore:"), pageBreakBefore) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537631-pause?language=objc +func (d_ DOMCSSStyleDeclaration) Pause() string { + rv := objc.Call[string](d_, objc.Sel("pause")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536515-verticalalign?language=objc -func (d_ DOMCSSStyleDeclaration) VerticalAlign() string { - rv := objc.Call[string](d_, objc.Sel("verticalAlign")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536928-setvolume?language=objc +func (d_ DOMCSSStyleDeclaration) SetVolume(volume string) { + objc.Call[objc.Void](d_, objc.Sel("setVolume:"), volume) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536843-setfontstyle?language=objc -func (d_ DOMCSSStyleDeclaration) SetFontStyle(fontStyle string) { - objc.Call[objc.Void](d_, objc.Sel("setFontStyle:"), fontStyle) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537513-setcueafter?language=objc +func (d_ DOMCSSStyleDeclaration) SetCueAfter(cueAfter string) { + objc.Call[objc.Void](d_, objc.Sel("setCueAfter:"), cueAfter) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537087-azimuth?language=objc -func (d_ DOMCSSStyleDeclaration) Azimuth() string { - rv := objc.Call[string](d_, objc.Sel("azimuth")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537947-setmaxheight?language=objc +func (d_ DOMCSSStyleDeclaration) SetMaxHeight(maxHeight string) { + objc.Call[objc.Void](d_, objc.Sel("setMaxHeight:"), maxHeight) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537384-borderstyle?language=objc -func (d_ DOMCSSStyleDeclaration) BorderStyle() string { - rv := objc.Call[string](d_, objc.Sel("borderStyle")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536310-markeroffset?language=objc +func (d_ DOMCSSStyleDeclaration) MarkerOffset() string { + rv := objc.Call[string](d_, objc.Sel("markerOffset")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536650-setelevation?language=objc -func (d_ DOMCSSStyleDeclaration) SetElevation(elevation string) { - objc.Call[objc.Void](d_, objc.Sel("setElevation:"), elevation) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537256-page?language=objc +func (d_ DOMCSSStyleDeclaration) Page() string { + rv := objc.Call[string](d_, objc.Sel("page")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537432-pagebreakafter?language=objc -func (d_ DOMCSSStyleDeclaration) PageBreakAfter() string { - rv := objc.Call[string](d_, objc.Sel("pageBreakAfter")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537553-zindex?language=objc +func (d_ DOMCSSStyleDeclaration) ZIndex() string { + rv := objc.Call[string](d_, objc.Sel("zIndex")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536956-setdirection?language=objc -func (d_ DOMCSSStyleDeclaration) SetDirection(direction string) { - objc.Call[objc.Void](d_, objc.Sel("setDirection:"), direction) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537996-pitch?language=objc +func (d_ DOMCSSStyleDeclaration) Pitch() string { + rv := objc.Call[string](d_, objc.Sel("pitch")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537498-liststyletype?language=objc -func (d_ DOMCSSStyleDeclaration) ListStyleType() string { - rv := objc.Call[string](d_, objc.Sel("listStyleType")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538098-setliststyleimage?language=objc +func (d_ DOMCSSStyleDeclaration) SetListStyleImage(listStyleImage string) { + objc.Call[objc.Void](d_, objc.Sel("setListStyleImage:"), listStyleImage) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537747-backgroundimage?language=objc -func (d_ DOMCSSStyleDeclaration) BackgroundImage() string { - rv := objc.Call[string](d_, objc.Sel("backgroundImage")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538219-outlinestyle?language=objc +func (d_ DOMCSSStyleDeclaration) OutlineStyle() string { + rv := objc.Call[string](d_, objc.Sel("outlineStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536606-emptycells?language=objc -func (d_ DOMCSSStyleDeclaration) EmptyCells() string { - rv := objc.Call[string](d_, objc.Sel("emptyCells")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538103-size?language=objc +func (d_ DOMCSSStyleDeclaration) Size() string { + rv := objc.Call[string](d_, objc.Sel("size")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537280-setfontstretch?language=objc -func (d_ DOMCSSStyleDeclaration) SetFontStretch(fontStretch string) { - objc.Call[objc.Void](d_, objc.Sel("setFontStretch:"), fontStretch) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536390-marginbottom?language=objc +func (d_ DOMCSSStyleDeclaration) MarginBottom() string { + rv := objc.Call[string](d_, objc.Sel("marginBottom")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537588-fontfamily?language=objc -func (d_ DOMCSSStyleDeclaration) FontFamily() string { - rv := objc.Call[string](d_, objc.Sel("fontFamily")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537602-setlineheight?language=objc +func (d_ DOMCSSStyleDeclaration) SetLineHeight(lineHeight string) { + objc.Call[objc.Void](d_, objc.Sel("setLineHeight:"), lineHeight) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537760-setheight?language=objc -func (d_ DOMCSSStyleDeclaration) SetHeight(height string) { - objc.Call[objc.Void](d_, objc.Sel("setHeight:"), height) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537212-backgroundposition?language=objc +func (d_ DOMCSSStyleDeclaration) BackgroundPosition() string { + rv := objc.Call[string](d_, objc.Sel("backgroundPosition")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536865-borderbottomstyle?language=objc -func (d_ DOMCSSStyleDeclaration) BorderBottomStyle() string { - rv := objc.Call[string](d_, objc.Sel("borderBottomStyle")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536298-marginleft?language=objc +func (d_ DOMCSSStyleDeclaration) MarginLeft() string { + rv := objc.Call[string](d_, objc.Sel("marginLeft")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537069-setrichness?language=objc -func (d_ DOMCSSStyleDeclaration) SetRichness(richness string) { - objc.Call[objc.Void](d_, objc.Sel("setRichness:"), richness) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537311-setcursor?language=objc +func (d_ DOMCSSStyleDeclaration) SetCursor(cursor string) { + objc.Call[objc.Void](d_, objc.Sel("setCursor:"), cursor) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537039-fontsizeadjust?language=objc -func (d_ DOMCSSStyleDeclaration) FontSizeAdjust() string { - rv := objc.Call[string](d_, objc.Sel("fontSizeAdjust")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537899-borderleftstyle?language=objc +func (d_ DOMCSSStyleDeclaration) BorderLeftStyle() string { + rv := objc.Call[string](d_, objc.Sel("borderLeftStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537304-setborderbottomcolor?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderBottomColor(borderBottomColor string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderBottomColor:"), borderBottomColor) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1538222-setbackgroundposition?language=objc +func (d_ DOMCSSStyleDeclaration) SetBackgroundPosition(backgroundPosition string) { + objc.Call[objc.Void](d_, objc.Sel("setBackgroundPosition:"), backgroundPosition) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537769-setborderbottomstyle?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderBottomStyle(borderBottomStyle string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderBottomStyle:"), borderBottomStyle) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536575-setborderright?language=objc +func (d_ DOMCSSStyleDeclaration) SetBorderRight(borderRight string) { + objc.Call[objc.Void](d_, objc.Sel("setBorderRight:"), borderRight) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537426-textshadow?language=objc -func (d_ DOMCSSStyleDeclaration) TextShadow() string { - rv := objc.Call[string](d_, objc.Sel("textShadow")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537576-fontstyle?language=objc +func (d_ DOMCSSStyleDeclaration) FontStyle() string { + rv := objc.Call[string](d_, objc.Sel("fontStyle")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537602-setlineheight?language=objc -func (d_ DOMCSSStyleDeclaration) SetLineHeight(lineHeight string) { - objc.Call[objc.Void](d_, objc.Sel("setLineHeight:"), lineHeight) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537577-maxwidth?language=objc -func (d_ DOMCSSStyleDeclaration) MaxWidth() string { - rv := objc.Call[string](d_, objc.Sel("maxWidth")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537637-liststyleposition?language=objc +func (d_ DOMCSSStyleDeclaration) ListStylePosition() string { + rv := objc.Call[string](d_, objc.Sel("listStylePosition")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537821-richness?language=objc -func (d_ DOMCSSStyleDeclaration) Richness() string { - rv := objc.Call[string](d_, objc.Sel("richness")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537543-setpaddingleft?language=objc +func (d_ DOMCSSStyleDeclaration) SetPaddingLeft(paddingLeft string) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingLeft:"), paddingLeft) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536783-setborderbottomwidth?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderBottomWidth(borderBottomWidth string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderBottomWidth:"), borderBottomWidth) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1536269-setmarkeroffset?language=objc +func (d_ DOMCSSStyleDeclaration) SetMarkerOffset(markerOffset string) { + objc.Call[objc.Void](d_, objc.Sel("setMarkerOffset:"), markerOffset) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537715-setplayduring?language=objc -func (d_ DOMCSSStyleDeclaration) SetPlayDuring(playDuring string) { - objc.Call[objc.Void](d_, objc.Sel("setPlayDuring:"), playDuring) +// [Full Topic]: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/1537762-fontvariant?language=objc +func (d_ DOMCSSStyleDeclaration) FontVariant() string { + rv := objc.Call[string](d_, objc.Sel("fontVariant")) + return rv } diff --git a/macos/webkit/download.gen.go b/macos/webkit/download.gen.go index ec7e3335..4c7a22f3 100644 --- a/macos/webkit/download.gen.go +++ b/macos/webkit/download.gen.go @@ -20,10 +20,10 @@ type _DownloadClass struct { type IDownload interface { objc.IObject Cancel(completionHandler func(resumeData []byte)) - OriginalRequest() foundation.URLRequest Delegate() DownloadDelegateObject SetDelegate(value PDownloadDelegate) SetDelegateObject(valueObject objc.IObject) + OriginalRequest() foundation.URLRequest } // An object that represents the download of a web resource. [Full Topic] @@ -66,14 +66,6 @@ func (d_ Download) Cancel(completionHandler func(resumeData []byte)) { objc.Call[objc.Void](d_, objc.Sel("cancel:"), completionHandler) } -// An object that represents the request that initiated the download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownload/3727341-originalrequest?language=objc -func (d_ Download) OriginalRequest() foundation.URLRequest { - rv := objc.Call[foundation.URLRequest](d_, objc.Sel("originalRequest")) - return rv -} - // An object you use to track download progress and handle redirects, authentication challenges, and failures. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownload/3727340-delegate?language=objc @@ -97,3 +89,11 @@ func (d_ Download) SetDelegate(value PDownloadDelegate) { func (d_ Download) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), valueObject) } + +// An object that represents the request that initiated the download. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownload/3727341-originalrequest?language=objc +func (d_ Download) OriginalRequest() foundation.URLRequest { + rv := objc.Call[foundation.URLRequest](d_, objc.Sel("originalRequest")) + return rv +} diff --git a/macos/webkit/download_delegate.gen.go b/macos/webkit/download_delegate.gen.go index 3761d52c..eccb93fd 100644 --- a/macos/webkit/download_delegate.gen.go +++ b/macos/webkit/download_delegate.gen.go @@ -11,10 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate?language=objc type PDownloadDelegate interface { - // optional - DownloadDidReceiveAuthenticationChallengeCompletionHandler(download Download, challenge foundation.URLAuthenticationChallenge, completionHandler func(arg0 foundation.URLSessionAuthChallengeDisposition, arg1 foundation.URLCredential)) - HasDownloadDidReceiveAuthenticationChallengeCompletionHandler() bool - // optional DownloadDidFailWithErrorResumeData(download Download, error foundation.Error, resumeData []byte) HasDownloadDidFailWithErrorResumeData() bool @@ -22,42 +18,14 @@ type PDownloadDelegate interface { // optional DownloadDidFinish(download Download) HasDownloadDidFinish() bool - - // optional - DownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler(download Download, response foundation.URLResponse, suggestedFilename string, completionHandler func(destination foundation.URL)) - HasDownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler() bool - - // optional - DownloadWillPerformHTTPRedirectionNewRequestDecisionHandler(download Download, response foundation.HTTPURLResponse, request foundation.URLRequest, decisionHandler func(arg0 DownloadRedirectPolicy)) - HasDownloadWillPerformHTTPRedirectionNewRequestDecisionHandler() bool } // A delegate implementation builder for the [PDownloadDelegate] protocol. type DownloadDelegate struct { - _DownloadDidReceiveAuthenticationChallengeCompletionHandler func(download Download, challenge foundation.URLAuthenticationChallenge, completionHandler func(arg0 foundation.URLSessionAuthChallengeDisposition, arg1 foundation.URLCredential)) - _DownloadDidFailWithErrorResumeData func(download Download, error foundation.Error, resumeData []byte) - _DownloadDidFinish func(download Download) - _DownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler func(download Download, response foundation.URLResponse, suggestedFilename string, completionHandler func(destination foundation.URL)) - _DownloadWillPerformHTTPRedirectionNewRequestDecisionHandler func(download Download, response foundation.HTTPURLResponse, request foundation.URLRequest, decisionHandler func(arg0 DownloadRedirectPolicy)) -} - -func (di *DownloadDelegate) HasDownloadDidReceiveAuthenticationChallengeCompletionHandler() bool { - return di._DownloadDidReceiveAuthenticationChallengeCompletionHandler != nil -} - -// Asks the delegate to respond to an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727346-download?language=objc -func (di *DownloadDelegate) SetDownloadDidReceiveAuthenticationChallengeCompletionHandler(f func(download Download, challenge foundation.URLAuthenticationChallenge, completionHandler func(arg0 foundation.URLSessionAuthChallengeDisposition, arg1 foundation.URLCredential))) { - di._DownloadDidReceiveAuthenticationChallengeCompletionHandler = f + _DownloadDidFailWithErrorResumeData func(download Download, error foundation.Error, resumeData []byte) + _DownloadDidFinish func(download Download) } -// Asks the delegate to respond to an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727346-download?language=objc -func (di *DownloadDelegate) DownloadDidReceiveAuthenticationChallengeCompletionHandler(download Download, challenge foundation.URLAuthenticationChallenge, completionHandler func(arg0 foundation.URLSessionAuthChallengeDisposition, arg1 foundation.URLCredential)) { - di._DownloadDidReceiveAuthenticationChallengeCompletionHandler(download, challenge, completionHandler) -} func (di *DownloadDelegate) HasDownloadDidFailWithErrorResumeData() bool { return di._DownloadDidFailWithErrorResumeData != nil } @@ -92,40 +60,6 @@ func (di *DownloadDelegate) SetDownloadDidFinish(f func(download Download)) { func (di *DownloadDelegate) DownloadDidFinish(download Download) { di._DownloadDidFinish(download) } -func (di *DownloadDelegate) HasDownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler() bool { - return di._DownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler != nil -} - -// Asks the delegate to provide a file destination where the system should write the download data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727344-download?language=objc -func (di *DownloadDelegate) SetDownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler(f func(download Download, response foundation.URLResponse, suggestedFilename string, completionHandler func(destination foundation.URL))) { - di._DownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler = f -} - -// Asks the delegate to provide a file destination where the system should write the download data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727344-download?language=objc -func (di *DownloadDelegate) DownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler(download Download, response foundation.URLResponse, suggestedFilename string, completionHandler func(destination foundation.URL)) { - di._DownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler(download, response, suggestedFilename, completionHandler) -} -func (di *DownloadDelegate) HasDownloadWillPerformHTTPRedirectionNewRequestDecisionHandler() bool { - return di._DownloadWillPerformHTTPRedirectionNewRequestDecisionHandler != nil -} - -// Asks the delegate to respond to the download’s redirect response. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727347-download?language=objc -func (di *DownloadDelegate) SetDownloadWillPerformHTTPRedirectionNewRequestDecisionHandler(f func(download Download, response foundation.HTTPURLResponse, request foundation.URLRequest, decisionHandler func(arg0 DownloadRedirectPolicy))) { - di._DownloadWillPerformHTTPRedirectionNewRequestDecisionHandler = f -} - -// Asks the delegate to respond to the download’s redirect response. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727347-download?language=objc -func (di *DownloadDelegate) DownloadWillPerformHTTPRedirectionNewRequestDecisionHandler(download Download, response foundation.HTTPURLResponse, request foundation.URLRequest, decisionHandler func(arg0 DownloadRedirectPolicy)) { - di._DownloadWillPerformHTTPRedirectionNewRequestDecisionHandler(download, response, request, decisionHandler) -} // ensure impl type implements protocol interface var _ PDownloadDelegate = (*DownloadDelegateObject)(nil) @@ -135,17 +69,6 @@ type DownloadDelegateObject struct { objc.Object } -func (d_ DownloadDelegateObject) HasDownloadDidReceiveAuthenticationChallengeCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("download:didReceiveAuthenticationChallenge:completionHandler:")) -} - -// Asks the delegate to respond to an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727346-download?language=objc -func (d_ DownloadDelegateObject) DownloadDidReceiveAuthenticationChallengeCompletionHandler(download Download, challenge foundation.URLAuthenticationChallenge, completionHandler func(arg0 foundation.URLSessionAuthChallengeDisposition, arg1 foundation.URLCredential)) { - objc.Call[objc.Void](d_, objc.Sel("download:didReceiveAuthenticationChallenge:completionHandler:"), download, challenge, completionHandler) -} - func (d_ DownloadDelegateObject) HasDownloadDidFailWithErrorResumeData() bool { return d_.RespondsToSelector(objc.Sel("download:didFailWithError:resumeData:")) } @@ -167,25 +90,3 @@ func (d_ DownloadDelegateObject) HasDownloadDidFinish() bool { func (d_ DownloadDelegateObject) DownloadDidFinish(download Download) { objc.Call[objc.Void](d_, objc.Sel("downloadDidFinish:"), download) } - -func (d_ DownloadDelegateObject) HasDownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("download:decideDestinationUsingResponse:suggestedFilename:completionHandler:")) -} - -// Asks the delegate to provide a file destination where the system should write the download data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727344-download?language=objc -func (d_ DownloadDelegateObject) DownloadDecideDestinationUsingResponseSuggestedFilenameCompletionHandler(download Download, response foundation.URLResponse, suggestedFilename string, completionHandler func(destination foundation.URL)) { - objc.Call[objc.Void](d_, objc.Sel("download:decideDestinationUsingResponse:suggestedFilename:completionHandler:"), download, response, suggestedFilename, completionHandler) -} - -func (d_ DownloadDelegateObject) HasDownloadWillPerformHTTPRedirectionNewRequestDecisionHandler() bool { - return d_.RespondsToSelector(objc.Sel("download:willPerformHTTPRedirection:newRequest:decisionHandler:")) -} - -// Asks the delegate to respond to the download’s redirect response. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727347-download?language=objc -func (d_ DownloadDelegateObject) DownloadWillPerformHTTPRedirectionNewRequestDecisionHandler(download Download, response foundation.HTTPURLResponse, request foundation.URLRequest, decisionHandler func(arg0 DownloadRedirectPolicy)) { - objc.Call[objc.Void](d_, objc.Sel("download:willPerformHTTPRedirection:newRequest:decisionHandler:"), download, response, request, decisionHandler) -} diff --git a/macos/webkit/find_configuration.gen.go b/macos/webkit/find_configuration.gen.go index 8538a444..1a3ce2b5 100644 --- a/macos/webkit/find_configuration.gen.go +++ b/macos/webkit/find_configuration.gen.go @@ -18,12 +18,12 @@ type _FindConfigurationClass struct { // An interface definition for the [FindConfiguration] class. type IFindConfiguration interface { objc.IObject - CaseSensitive() bool - SetCaseSensitive(value bool) Backwards() bool SetBackwards(value bool) Wraps() bool SetWraps(value bool) + CaseSensitive() bool + SetCaseSensitive(value bool) } // The configuration parameters to use when searching the contents of the web view. [Full Topic] @@ -59,21 +59,6 @@ func (f_ FindConfiguration) Init() FindConfiguration { return rv } -// A Boolean value that indicates whether to consider case when matching the search string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkfindconfiguration/3516855-casesensitive?language=objc -func (f_ FindConfiguration) CaseSensitive() bool { - rv := objc.Call[bool](f_, objc.Sel("caseSensitive")) - return rv -} - -// A Boolean value that indicates whether to consider case when matching the search string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkfindconfiguration/3516855-casesensitive?language=objc -func (f_ FindConfiguration) SetCaseSensitive(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setCaseSensitive:"), value) -} - // A Boolean value that indicates the search direction, relative to the current selection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkfindconfiguration/3516854-backwards?language=objc @@ -103,3 +88,18 @@ func (f_ FindConfiguration) Wraps() bool { func (f_ FindConfiguration) SetWraps(value bool) { objc.Call[objc.Void](f_, objc.Sel("setWraps:"), value) } + +// A Boolean value that indicates whether to consider case when matching the search string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkfindconfiguration/3516855-casesensitive?language=objc +func (f_ FindConfiguration) CaseSensitive() bool { + rv := objc.Call[bool](f_, objc.Sel("caseSensitive")) + return rv +} + +// A Boolean value that indicates whether to consider case when matching the search string. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkfindconfiguration/3516855-casesensitive?language=objc +func (f_ FindConfiguration) SetCaseSensitive(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setCaseSensitive:"), value) +} diff --git a/macos/webkit/frame_info.gen.go b/macos/webkit/frame_info.gen.go index e6fee69e..8dea612d 100644 --- a/macos/webkit/frame_info.gen.go +++ b/macos/webkit/frame_info.gen.go @@ -20,8 +20,8 @@ type _FrameInfoClass struct { type IFrameInfo interface { objc.IObject Request() foundation.URLRequest - SecurityOrigin() SecurityOrigin IsMainFrame() bool + SecurityOrigin() SecurityOrigin } // An object that contains information about a frame on a webpage. [Full Topic] @@ -65,14 +65,6 @@ func (f_ FrameInfo) Request() foundation.URLRequest { return rv } -// The frame’s security origin. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkframeinfo/1503089-securityorigin?language=objc -func (f_ FrameInfo) SecurityOrigin() SecurityOrigin { - rv := objc.Call[SecurityOrigin](f_, objc.Sel("securityOrigin")) - return rv -} - // A Boolean value indicating whether the frame is the web site's main frame or a subframe. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkframeinfo/1503096-mainframe?language=objc @@ -80,3 +72,11 @@ func (f_ FrameInfo) IsMainFrame() bool { rv := objc.Call[bool](f_, objc.Sel("isMainFrame")) return rv } + +// The frame’s security origin. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkframeinfo/1503089-securityorigin?language=objc +func (f_ FrameInfo) SecurityOrigin() SecurityOrigin { + rv := objc.Call[SecurityOrigin](f_, objc.Sel("securityOrigin")) + return rv +} diff --git a/macos/webkit/http_cookie_store.gen.go b/macos/webkit/http_cookie_store.gen.go index dbffba7d..b49711a7 100644 --- a/macos/webkit/http_cookie_store.gen.go +++ b/macos/webkit/http_cookie_store.gen.go @@ -19,13 +19,13 @@ type _HTTPCookieStoreClass struct { // An interface definition for the [HTTPCookieStore] class. type IHTTPCookieStore interface { objc.IObject + DeleteCookieCompletionHandler(cookie foundation.IHTTPCookie, completionHandler func()) + GetAllCookies(completionHandler func(arg0 []foundation.HTTPCookie)) RemoveObserver(observer PHTTPCookieStoreObserver) RemoveObserverObject(observerObject objc.IObject) - GetAllCookies(completionHandler func(arg0 []foundation.HTTPCookie)) - DeleteCookieCompletionHandler(cookie foundation.IHTTPCookie, completionHandler func()) + SetCookieCompletionHandler(cookie foundation.IHTTPCookie, completionHandler func()) AddObserver(observer PHTTPCookieStoreObserver) AddObserverObject(observerObject objc.IObject) - SetCookieCompletionHandler(cookie foundation.IHTTPCookie, completionHandler func()) } // An object that manages the HTTP cookies associated with a particular web view. [Full Topic] @@ -61,6 +61,20 @@ func (h_ HTTPCookieStore) Init() HTTPCookieStore { return rv } +// Deletes the specified cookie. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkhttpcookiestore/2882009-deletecookie?language=objc +func (h_ HTTPCookieStore) DeleteCookieCompletionHandler(cookie foundation.IHTTPCookie, completionHandler func()) { + objc.Call[objc.Void](h_, objc.Sel("deleteCookie:completionHandler:"), cookie, completionHandler) +} + +// Fetches all stored cookies asynchronously and delivers them to the specified completion handler. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkhttpcookiestore/2882005-getallcookies?language=objc +func (h_ HTTPCookieStore) GetAllCookies(completionHandler func(arg0 []foundation.HTTPCookie)) { + objc.Call[objc.Void](h_, objc.Sel("getAllCookies:"), completionHandler) +} + // Removes an observer from the cookie store. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkhttpcookiestore/2882004-removeobserver?language=objc @@ -76,18 +90,11 @@ func (h_ HTTPCookieStore) RemoveObserverObject(observerObject objc.IObject) { objc.Call[objc.Void](h_, objc.Sel("removeObserver:"), observerObject) } -// Fetches all stored cookies asynchronously and delivers them to the specified completion handler. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkhttpcookiestore/2882005-getallcookies?language=objc -func (h_ HTTPCookieStore) GetAllCookies(completionHandler func(arg0 []foundation.HTTPCookie)) { - objc.Call[objc.Void](h_, objc.Sel("getAllCookies:"), completionHandler) -} - -// Deletes the specified cookie. [Full Topic] +// Adds a cookie to the cookie store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkhttpcookiestore/2882009-deletecookie?language=objc -func (h_ HTTPCookieStore) DeleteCookieCompletionHandler(cookie foundation.IHTTPCookie, completionHandler func()) { - objc.Call[objc.Void](h_, objc.Sel("deleteCookie:completionHandler:"), cookie, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkhttpcookiestore/2882007-setcookie?language=objc +func (h_ HTTPCookieStore) SetCookieCompletionHandler(cookie foundation.IHTTPCookie, completionHandler func()) { + objc.Call[objc.Void](h_, objc.Sel("setCookie:completionHandler:"), cookie, completionHandler) } // Adds an observer to the cookie store. [Full Topic] @@ -104,10 +111,3 @@ func (h_ HTTPCookieStore) AddObserver(observer PHTTPCookieStoreObserver) { func (h_ HTTPCookieStore) AddObserverObject(observerObject objc.IObject) { objc.Call[objc.Void](h_, objc.Sel("addObserver:"), observerObject) } - -// Adds a cookie to the cookie store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkhttpcookiestore/2882007-setcookie?language=objc -func (h_ HTTPCookieStore) SetCookieCompletionHandler(cookie foundation.IHTTPCookie, completionHandler func()) { - objc.Call[objc.Void](h_, objc.Sel("setCookie:completionHandler:"), cookie, completionHandler) -} diff --git a/macos/webkit/navigation_action.gen.go b/macos/webkit/navigation_action.gen.go index 168e50ae..e033905d 100644 --- a/macos/webkit/navigation_action.gen.go +++ b/macos/webkit/navigation_action.gen.go @@ -20,13 +20,13 @@ type _NavigationActionClass struct { // An interface definition for the [NavigationAction] class. type INavigationAction interface { objc.IObject - ShouldPerformDownload() bool - SourceFrame() FrameInfo - NavigationType() NavigationType - TargetFrame() FrameInfo - ButtonNumber() int Request() foundation.URLRequest ModifierFlags() appkit.EventModifierFlags + ButtonNumber() int + SourceFrame() FrameInfo + TargetFrame() FrameInfo + ShouldPerformDownload() bool + NavigationType() NavigationType } // An object that contains information about an action that causes navigation to occur. [Full Topic] @@ -62,58 +62,58 @@ func (n_ NavigationAction) Init() NavigationAction { return rv } -// A Boolean value that indicates whether the web content provided an attribute that indicates a download. [Full Topic] +// The URL request object associated with the navigation action. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/3727357-shouldperformdownload?language=objc -func (n_ NavigationAction) ShouldPerformDownload() bool { - rv := objc.Call[bool](n_, objc.Sel("shouldPerformDownload")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401910-request?language=objc +func (n_ NavigationAction) Request() foundation.URLRequest { + rv := objc.Call[foundation.URLRequest](n_, objc.Sel("request")) return rv } -// The frame that requested the navigation. [Full Topic] +// The modifier keys that were pressed at the time of the navigation request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401926-sourceframe?language=objc -func (n_ NavigationAction) SourceFrame() FrameInfo { - rv := objc.Call[FrameInfo](n_, objc.Sel("sourceFrame")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401934-modifierflags?language=objc +func (n_ NavigationAction) ModifierFlags() appkit.EventModifierFlags { + rv := objc.Call[appkit.EventModifierFlags](n_, objc.Sel("modifierFlags")) return rv } -// The type of action that triggered the navigation. [Full Topic] +// The number of the mouse button that caused the navigation request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401914-navigationtype?language=objc -func (n_ NavigationAction) NavigationType() NavigationType { - rv := objc.Call[NavigationType](n_, objc.Sel("navigationType")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401916-buttonnumber?language=objc +func (n_ NavigationAction) ButtonNumber() int { + rv := objc.Call[int](n_, objc.Sel("buttonNumber")) return rv } -// The frame in which to display the new content. [Full Topic] +// The frame that requested the navigation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401918-targetframe?language=objc -func (n_ NavigationAction) TargetFrame() FrameInfo { - rv := objc.Call[FrameInfo](n_, objc.Sel("targetFrame")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401926-sourceframe?language=objc +func (n_ NavigationAction) SourceFrame() FrameInfo { + rv := objc.Call[FrameInfo](n_, objc.Sel("sourceFrame")) return rv } -// The number of the mouse button that caused the navigation request. [Full Topic] +// The frame in which to display the new content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401916-buttonnumber?language=objc -func (n_ NavigationAction) ButtonNumber() int { - rv := objc.Call[int](n_, objc.Sel("buttonNumber")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401918-targetframe?language=objc +func (n_ NavigationAction) TargetFrame() FrameInfo { + rv := objc.Call[FrameInfo](n_, objc.Sel("targetFrame")) return rv } -// The URL request object associated with the navigation action. [Full Topic] +// A Boolean value that indicates whether the web content provided an attribute that indicates a download. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401910-request?language=objc -func (n_ NavigationAction) Request() foundation.URLRequest { - rv := objc.Call[foundation.URLRequest](n_, objc.Sel("request")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/3727357-shouldperformdownload?language=objc +func (n_ NavigationAction) ShouldPerformDownload() bool { + rv := objc.Call[bool](n_, objc.Sel("shouldPerformDownload")) return rv } -// The modifier keys that were pressed at the time of the navigation request. [Full Topic] +// The type of action that triggered the navigation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401934-modifierflags?language=objc -func (n_ NavigationAction) ModifierFlags() appkit.EventModifierFlags { - rv := objc.Call[appkit.EventModifierFlags](n_, objc.Sel("modifierFlags")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401914-navigationtype?language=objc +func (n_ NavigationAction) NavigationType() NavigationType { + rv := objc.Call[NavigationType](n_, objc.Sel("navigationType")) return rv } diff --git a/macos/webkit/navigation_delegate.gen.go b/macos/webkit/navigation_delegate.gen.go index c2071d2b..add601b5 100644 --- a/macos/webkit/navigation_delegate.gen.go +++ b/macos/webkit/navigation_delegate.gen.go @@ -3,7 +3,6 @@ package webkit import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -11,200 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate?language=objc type PNavigationDelegate interface { - // optional - WebViewAuthenticationChallengeShouldAllowDeprecatedTLS(webView WebView, challenge foundation.URLAuthenticationChallenge, decisionHandler func(arg0 bool)) - HasWebViewAuthenticationChallengeShouldAllowDeprecatedTLS() bool - - // optional - WebViewDidFailNavigationWithError(webView WebView, navigation Navigation, error foundation.Error) - HasWebViewDidFailNavigationWithError() bool - - // optional - WebViewDidFailProvisionalNavigationWithError(webView WebView, navigation Navigation, error foundation.Error) - HasWebViewDidFailProvisionalNavigationWithError() bool - - // optional - WebViewDecidePolicyForNavigationActionPreferencesDecisionHandler(webView WebView, navigationAction NavigationAction, preferences WebpagePreferences, decisionHandler func(arg0 NavigationActionPolicy, arg1 WebpagePreferences)) - HasWebViewDecidePolicyForNavigationActionPreferencesDecisionHandler() bool - - // optional - WebViewNavigationResponseDidBecomeDownload(webView WebView, navigationResponse NavigationResponse, download Download) - HasWebViewNavigationResponseDidBecomeDownload() bool - - // optional - WebViewDecidePolicyForNavigationActionDecisionHandler(webView WebView, navigationAction NavigationAction, decisionHandler func(arg0 NavigationActionPolicy)) - HasWebViewDecidePolicyForNavigationActionDecisionHandler() bool - - // optional - WebViewDidFinishNavigation(webView WebView, navigation Navigation) - HasWebViewDidFinishNavigation() bool - // optional WebViewWebContentProcessDidTerminate(webView WebView) HasWebViewWebContentProcessDidTerminate() bool // optional - WebViewDidReceiveAuthenticationChallengeCompletionHandler(webView WebView, challenge foundation.URLAuthenticationChallenge, completionHandler func(disposition foundation.URLSessionAuthChallengeDisposition, credential foundation.URLCredential)) - HasWebViewDidReceiveAuthenticationChallengeCompletionHandler() bool - - // optional - WebViewNavigationActionDidBecomeDownload(webView WebView, navigationAction NavigationAction, download Download) - HasWebViewNavigationActionDidBecomeDownload() bool - - // optional - WebViewDidReceiveServerRedirectForProvisionalNavigation(webView WebView, navigation Navigation) - HasWebViewDidReceiveServerRedirectForProvisionalNavigation() bool - - // optional - WebViewDidCommitNavigation(webView WebView, navigation Navigation) - HasWebViewDidCommitNavigation() bool - - // optional - WebViewDecidePolicyForNavigationResponseDecisionHandler(webView WebView, navigationResponse NavigationResponse, decisionHandler func(arg0 NavigationResponsePolicy)) - HasWebViewDecidePolicyForNavigationResponseDecisionHandler() bool - - // optional - WebViewDidStartProvisionalNavigation(webView WebView, navigation Navigation) - HasWebViewDidStartProvisionalNavigation() bool + WebViewDidFinishNavigation(webView WebView, navigation Navigation) + HasWebViewDidFinishNavigation() bool } // A delegate implementation builder for the [PNavigationDelegate] protocol. type NavigationDelegate struct { - _WebViewAuthenticationChallengeShouldAllowDeprecatedTLS func(webView WebView, challenge foundation.URLAuthenticationChallenge, decisionHandler func(arg0 bool)) - _WebViewDidFailNavigationWithError func(webView WebView, navigation Navigation, error foundation.Error) - _WebViewDidFailProvisionalNavigationWithError func(webView WebView, navigation Navigation, error foundation.Error) - _WebViewDecidePolicyForNavigationActionPreferencesDecisionHandler func(webView WebView, navigationAction NavigationAction, preferences WebpagePreferences, decisionHandler func(arg0 NavigationActionPolicy, arg1 WebpagePreferences)) - _WebViewNavigationResponseDidBecomeDownload func(webView WebView, navigationResponse NavigationResponse, download Download) - _WebViewDecidePolicyForNavigationActionDecisionHandler func(webView WebView, navigationAction NavigationAction, decisionHandler func(arg0 NavigationActionPolicy)) - _WebViewDidFinishNavigation func(webView WebView, navigation Navigation) - _WebViewWebContentProcessDidTerminate func(webView WebView) - _WebViewDidReceiveAuthenticationChallengeCompletionHandler func(webView WebView, challenge foundation.URLAuthenticationChallenge, completionHandler func(disposition foundation.URLSessionAuthChallengeDisposition, credential foundation.URLCredential)) - _WebViewNavigationActionDidBecomeDownload func(webView WebView, navigationAction NavigationAction, download Download) - _WebViewDidReceiveServerRedirectForProvisionalNavigation func(webView WebView, navigation Navigation) - _WebViewDidCommitNavigation func(webView WebView, navigation Navigation) - _WebViewDecidePolicyForNavigationResponseDecisionHandler func(webView WebView, navigationResponse NavigationResponse, decisionHandler func(arg0 NavigationResponsePolicy)) - _WebViewDidStartProvisionalNavigation func(webView WebView, navigation Navigation) -} - -func (di *NavigationDelegate) HasWebViewAuthenticationChallengeShouldAllowDeprecatedTLS() bool { - return di._WebViewAuthenticationChallengeShouldAllowDeprecatedTLS != nil -} - -// Asks the delegate whether to continue with a connection that uses a deprecated version of TLS. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3601237-webview?language=objc -func (di *NavigationDelegate) SetWebViewAuthenticationChallengeShouldAllowDeprecatedTLS(f func(webView WebView, challenge foundation.URLAuthenticationChallenge, decisionHandler func(arg0 bool))) { - di._WebViewAuthenticationChallengeShouldAllowDeprecatedTLS = f -} - -// Asks the delegate whether to continue with a connection that uses a deprecated version of TLS. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3601237-webview?language=objc -func (di *NavigationDelegate) WebViewAuthenticationChallengeShouldAllowDeprecatedTLS(webView WebView, challenge foundation.URLAuthenticationChallenge, decisionHandler func(arg0 bool)) { - di._WebViewAuthenticationChallengeShouldAllowDeprecatedTLS(webView, challenge, decisionHandler) -} -func (di *NavigationDelegate) HasWebViewDidFailNavigationWithError() bool { - return di._WebViewDidFailNavigationWithError != nil -} - -// Tells the delegate that an error occurred during navigation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455623-webview?language=objc -func (di *NavigationDelegate) SetWebViewDidFailNavigationWithError(f func(webView WebView, navigation Navigation, error foundation.Error)) { - di._WebViewDidFailNavigationWithError = f -} - -// Tells the delegate that an error occurred during navigation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455623-webview?language=objc -func (di *NavigationDelegate) WebViewDidFailNavigationWithError(webView WebView, navigation Navigation, error foundation.Error) { - di._WebViewDidFailNavigationWithError(webView, navigation, error) -} -func (di *NavigationDelegate) HasWebViewDidFailProvisionalNavigationWithError() bool { - return di._WebViewDidFailProvisionalNavigationWithError != nil -} - -// Tells the delegate that an error occurred during the early navigation process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455637-webview?language=objc -func (di *NavigationDelegate) SetWebViewDidFailProvisionalNavigationWithError(f func(webView WebView, navigation Navigation, error foundation.Error)) { - di._WebViewDidFailProvisionalNavigationWithError = f -} - -// Tells the delegate that an error occurred during the early navigation process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455637-webview?language=objc -func (di *NavigationDelegate) WebViewDidFailProvisionalNavigationWithError(webView WebView, navigation Navigation, error foundation.Error) { - di._WebViewDidFailProvisionalNavigationWithError(webView, navigation, error) -} -func (di *NavigationDelegate) HasWebViewDecidePolicyForNavigationActionPreferencesDecisionHandler() bool { - return di._WebViewDecidePolicyForNavigationActionPreferencesDecisionHandler != nil + _WebViewWebContentProcessDidTerminate func(webView WebView) + _WebViewDidFinishNavigation func(webView WebView, navigation Navigation) } -// Asks the delegate for permission to navigate to new content based on the specified preferences and action information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3223382-webview?language=objc -func (di *NavigationDelegate) SetWebViewDecidePolicyForNavigationActionPreferencesDecisionHandler(f func(webView WebView, navigationAction NavigationAction, preferences WebpagePreferences, decisionHandler func(arg0 NavigationActionPolicy, arg1 WebpagePreferences))) { - di._WebViewDecidePolicyForNavigationActionPreferencesDecisionHandler = f -} - -// Asks the delegate for permission to navigate to new content based on the specified preferences and action information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3223382-webview?language=objc -func (di *NavigationDelegate) WebViewDecidePolicyForNavigationActionPreferencesDecisionHandler(webView WebView, navigationAction NavigationAction, preferences WebpagePreferences, decisionHandler func(arg0 NavigationActionPolicy, arg1 WebpagePreferences)) { - di._WebViewDecidePolicyForNavigationActionPreferencesDecisionHandler(webView, navigationAction, preferences, decisionHandler) -} -func (di *NavigationDelegate) HasWebViewNavigationResponseDidBecomeDownload() bool { - return di._WebViewNavigationResponseDidBecomeDownload != nil -} - -// Tells the delegate that a navigation response became a download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3727360-webview?language=objc -func (di *NavigationDelegate) SetWebViewNavigationResponseDidBecomeDownload(f func(webView WebView, navigationResponse NavigationResponse, download Download)) { - di._WebViewNavigationResponseDidBecomeDownload = f -} - -// Tells the delegate that a navigation response became a download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3727360-webview?language=objc -func (di *NavigationDelegate) WebViewNavigationResponseDidBecomeDownload(webView WebView, navigationResponse NavigationResponse, download Download) { - di._WebViewNavigationResponseDidBecomeDownload(webView, navigationResponse, download) -} -func (di *NavigationDelegate) HasWebViewDecidePolicyForNavigationActionDecisionHandler() bool { - return di._WebViewDecidePolicyForNavigationActionDecisionHandler != nil -} - -// Asks the delegate for permission to navigate to new content based on the specified action information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455641-webview?language=objc -func (di *NavigationDelegate) SetWebViewDecidePolicyForNavigationActionDecisionHandler(f func(webView WebView, navigationAction NavigationAction, decisionHandler func(arg0 NavigationActionPolicy))) { - di._WebViewDecidePolicyForNavigationActionDecisionHandler = f -} - -// Asks the delegate for permission to navigate to new content based on the specified action information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455641-webview?language=objc -func (di *NavigationDelegate) WebViewDecidePolicyForNavigationActionDecisionHandler(webView WebView, navigationAction NavigationAction, decisionHandler func(arg0 NavigationActionPolicy)) { - di._WebViewDecidePolicyForNavigationActionDecisionHandler(webView, navigationAction, decisionHandler) -} -func (di *NavigationDelegate) HasWebViewDidFinishNavigation() bool { - return di._WebViewDidFinishNavigation != nil -} - -// Tells the delegate that navigation is complete. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455629-webview?language=objc -func (di *NavigationDelegate) SetWebViewDidFinishNavigation(f func(webView WebView, navigation Navigation)) { - di._WebViewDidFinishNavigation = f -} - -// Tells the delegate that navigation is complete. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455629-webview?language=objc -func (di *NavigationDelegate) WebViewDidFinishNavigation(webView WebView, navigation Navigation) { - di._WebViewDidFinishNavigation(webView, navigation) -} func (di *NavigationDelegate) HasWebViewWebContentProcessDidTerminate() bool { return di._WebViewWebContentProcessDidTerminate != nil } @@ -222,107 +42,22 @@ func (di *NavigationDelegate) SetWebViewWebContentProcessDidTerminate(f func(web func (di *NavigationDelegate) WebViewWebContentProcessDidTerminate(webView WebView) { di._WebViewWebContentProcessDidTerminate(webView) } -func (di *NavigationDelegate) HasWebViewDidReceiveAuthenticationChallengeCompletionHandler() bool { - return di._WebViewDidReceiveAuthenticationChallengeCompletionHandler != nil -} - -// Asks the delegate to respond to an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455638-webview?language=objc -func (di *NavigationDelegate) SetWebViewDidReceiveAuthenticationChallengeCompletionHandler(f func(webView WebView, challenge foundation.URLAuthenticationChallenge, completionHandler func(disposition foundation.URLSessionAuthChallengeDisposition, credential foundation.URLCredential))) { - di._WebViewDidReceiveAuthenticationChallengeCompletionHandler = f -} - -// Asks the delegate to respond to an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455638-webview?language=objc -func (di *NavigationDelegate) WebViewDidReceiveAuthenticationChallengeCompletionHandler(webView WebView, challenge foundation.URLAuthenticationChallenge, completionHandler func(disposition foundation.URLSessionAuthChallengeDisposition, credential foundation.URLCredential)) { - di._WebViewDidReceiveAuthenticationChallengeCompletionHandler(webView, challenge, completionHandler) -} -func (di *NavigationDelegate) HasWebViewNavigationActionDidBecomeDownload() bool { - return di._WebViewNavigationActionDidBecomeDownload != nil -} - -// Tells the delegate that a navigation action became a download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3727359-webview?language=objc -func (di *NavigationDelegate) SetWebViewNavigationActionDidBecomeDownload(f func(webView WebView, navigationAction NavigationAction, download Download)) { - di._WebViewNavigationActionDidBecomeDownload = f -} - -// Tells the delegate that a navigation action became a download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3727359-webview?language=objc -func (di *NavigationDelegate) WebViewNavigationActionDidBecomeDownload(webView WebView, navigationAction NavigationAction, download Download) { - di._WebViewNavigationActionDidBecomeDownload(webView, navigationAction, download) -} -func (di *NavigationDelegate) HasWebViewDidReceiveServerRedirectForProvisionalNavigation() bool { - return di._WebViewDidReceiveServerRedirectForProvisionalNavigation != nil -} - -// Tells the delegate that the web view received a server redirect for a request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455627-webview?language=objc -func (di *NavigationDelegate) SetWebViewDidReceiveServerRedirectForProvisionalNavigation(f func(webView WebView, navigation Navigation)) { - di._WebViewDidReceiveServerRedirectForProvisionalNavigation = f -} - -// Tells the delegate that the web view received a server redirect for a request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455627-webview?language=objc -func (di *NavigationDelegate) WebViewDidReceiveServerRedirectForProvisionalNavigation(webView WebView, navigation Navigation) { - di._WebViewDidReceiveServerRedirectForProvisionalNavigation(webView, navigation) -} -func (di *NavigationDelegate) HasWebViewDidCommitNavigation() bool { - return di._WebViewDidCommitNavigation != nil -} - -// Tells the delegate that the web view has started to receive content for the main frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455635-webview?language=objc -func (di *NavigationDelegate) SetWebViewDidCommitNavigation(f func(webView WebView, navigation Navigation)) { - di._WebViewDidCommitNavigation = f -} - -// Tells the delegate that the web view has started to receive content for the main frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455635-webview?language=objc -func (di *NavigationDelegate) WebViewDidCommitNavigation(webView WebView, navigation Navigation) { - di._WebViewDidCommitNavigation(webView, navigation) -} -func (di *NavigationDelegate) HasWebViewDecidePolicyForNavigationResponseDecisionHandler() bool { - return di._WebViewDecidePolicyForNavigationResponseDecisionHandler != nil -} - -// Asks the delegate for permission to navigate to new content after the response to the navigation request is known. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455643-webview?language=objc -func (di *NavigationDelegate) SetWebViewDecidePolicyForNavigationResponseDecisionHandler(f func(webView WebView, navigationResponse NavigationResponse, decisionHandler func(arg0 NavigationResponsePolicy))) { - di._WebViewDecidePolicyForNavigationResponseDecisionHandler = f -} - -// Asks the delegate for permission to navigate to new content after the response to the navigation request is known. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455643-webview?language=objc -func (di *NavigationDelegate) WebViewDecidePolicyForNavigationResponseDecisionHandler(webView WebView, navigationResponse NavigationResponse, decisionHandler func(arg0 NavigationResponsePolicy)) { - di._WebViewDecidePolicyForNavigationResponseDecisionHandler(webView, navigationResponse, decisionHandler) -} -func (di *NavigationDelegate) HasWebViewDidStartProvisionalNavigation() bool { - return di._WebViewDidStartProvisionalNavigation != nil +func (di *NavigationDelegate) HasWebViewDidFinishNavigation() bool { + return di._WebViewDidFinishNavigation != nil } -// Tells the delegate that navigation from the main frame has started. [Full Topic] +// Tells the delegate that navigation is complete. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455621-webview?language=objc -func (di *NavigationDelegate) SetWebViewDidStartProvisionalNavigation(f func(webView WebView, navigation Navigation)) { - di._WebViewDidStartProvisionalNavigation = f +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455629-webview?language=objc +func (di *NavigationDelegate) SetWebViewDidFinishNavigation(f func(webView WebView, navigation Navigation)) { + di._WebViewDidFinishNavigation = f } -// Tells the delegate that navigation from the main frame has started. [Full Topic] +// Tells the delegate that navigation is complete. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455621-webview?language=objc -func (di *NavigationDelegate) WebViewDidStartProvisionalNavigation(webView WebView, navigation Navigation) { - di._WebViewDidStartProvisionalNavigation(webView, navigation) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455629-webview?language=objc +func (di *NavigationDelegate) WebViewDidFinishNavigation(webView WebView, navigation Navigation) { + di._WebViewDidFinishNavigation(webView, navigation) } // ensure impl type implements protocol interface @@ -333,83 +68,6 @@ type NavigationDelegateObject struct { objc.Object } -func (n_ NavigationDelegateObject) HasWebViewAuthenticationChallengeShouldAllowDeprecatedTLS() bool { - return n_.RespondsToSelector(objc.Sel("webView:authenticationChallenge:shouldAllowDeprecatedTLS:")) -} - -// Asks the delegate whether to continue with a connection that uses a deprecated version of TLS. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3601237-webview?language=objc -func (n_ NavigationDelegateObject) WebViewAuthenticationChallengeShouldAllowDeprecatedTLS(webView WebView, challenge foundation.URLAuthenticationChallenge, decisionHandler func(arg0 bool)) { - objc.Call[objc.Void](n_, objc.Sel("webView:authenticationChallenge:shouldAllowDeprecatedTLS:"), webView, challenge, decisionHandler) -} - -func (n_ NavigationDelegateObject) HasWebViewDidFailNavigationWithError() bool { - return n_.RespondsToSelector(objc.Sel("webView:didFailNavigation:withError:")) -} - -// Tells the delegate that an error occurred during navigation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455623-webview?language=objc -func (n_ NavigationDelegateObject) WebViewDidFailNavigationWithError(webView WebView, navigation Navigation, error foundation.Error) { - objc.Call[objc.Void](n_, objc.Sel("webView:didFailNavigation:withError:"), webView, navigation, error) -} - -func (n_ NavigationDelegateObject) HasWebViewDidFailProvisionalNavigationWithError() bool { - return n_.RespondsToSelector(objc.Sel("webView:didFailProvisionalNavigation:withError:")) -} - -// Tells the delegate that an error occurred during the early navigation process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455637-webview?language=objc -func (n_ NavigationDelegateObject) WebViewDidFailProvisionalNavigationWithError(webView WebView, navigation Navigation, error foundation.Error) { - objc.Call[objc.Void](n_, objc.Sel("webView:didFailProvisionalNavigation:withError:"), webView, navigation, error) -} - -func (n_ NavigationDelegateObject) HasWebViewDecidePolicyForNavigationActionPreferencesDecisionHandler() bool { - return n_.RespondsToSelector(objc.Sel("webView:decidePolicyForNavigationAction:preferences:decisionHandler:")) -} - -// Asks the delegate for permission to navigate to new content based on the specified preferences and action information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3223382-webview?language=objc -func (n_ NavigationDelegateObject) WebViewDecidePolicyForNavigationActionPreferencesDecisionHandler(webView WebView, navigationAction NavigationAction, preferences WebpagePreferences, decisionHandler func(arg0 NavigationActionPolicy, arg1 WebpagePreferences)) { - objc.Call[objc.Void](n_, objc.Sel("webView:decidePolicyForNavigationAction:preferences:decisionHandler:"), webView, navigationAction, preferences, decisionHandler) -} - -func (n_ NavigationDelegateObject) HasWebViewNavigationResponseDidBecomeDownload() bool { - return n_.RespondsToSelector(objc.Sel("webView:navigationResponse:didBecomeDownload:")) -} - -// Tells the delegate that a navigation response became a download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3727360-webview?language=objc -func (n_ NavigationDelegateObject) WebViewNavigationResponseDidBecomeDownload(webView WebView, navigationResponse NavigationResponse, download Download) { - objc.Call[objc.Void](n_, objc.Sel("webView:navigationResponse:didBecomeDownload:"), webView, navigationResponse, download) -} - -func (n_ NavigationDelegateObject) HasWebViewDecidePolicyForNavigationActionDecisionHandler() bool { - return n_.RespondsToSelector(objc.Sel("webView:decidePolicyForNavigationAction:decisionHandler:")) -} - -// Asks the delegate for permission to navigate to new content based on the specified action information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455641-webview?language=objc -func (n_ NavigationDelegateObject) WebViewDecidePolicyForNavigationActionDecisionHandler(webView WebView, navigationAction NavigationAction, decisionHandler func(arg0 NavigationActionPolicy)) { - objc.Call[objc.Void](n_, objc.Sel("webView:decidePolicyForNavigationAction:decisionHandler:"), webView, navigationAction, decisionHandler) -} - -func (n_ NavigationDelegateObject) HasWebViewDidFinishNavigation() bool { - return n_.RespondsToSelector(objc.Sel("webView:didFinishNavigation:")) -} - -// Tells the delegate that navigation is complete. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455629-webview?language=objc -func (n_ NavigationDelegateObject) WebViewDidFinishNavigation(webView WebView, navigation Navigation) { - objc.Call[objc.Void](n_, objc.Sel("webView:didFinishNavigation:"), webView, navigation) -} - func (n_ NavigationDelegateObject) HasWebViewWebContentProcessDidTerminate() bool { return n_.RespondsToSelector(objc.Sel("webViewWebContentProcessDidTerminate:")) } @@ -421,68 +79,13 @@ func (n_ NavigationDelegateObject) WebViewWebContentProcessDidTerminate(webView objc.Call[objc.Void](n_, objc.Sel("webViewWebContentProcessDidTerminate:"), webView) } -func (n_ NavigationDelegateObject) HasWebViewDidReceiveAuthenticationChallengeCompletionHandler() bool { - return n_.RespondsToSelector(objc.Sel("webView:didReceiveAuthenticationChallenge:completionHandler:")) -} - -// Asks the delegate to respond to an authentication challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455638-webview?language=objc -func (n_ NavigationDelegateObject) WebViewDidReceiveAuthenticationChallengeCompletionHandler(webView WebView, challenge foundation.URLAuthenticationChallenge, completionHandler func(disposition foundation.URLSessionAuthChallengeDisposition, credential foundation.URLCredential)) { - objc.Call[objc.Void](n_, objc.Sel("webView:didReceiveAuthenticationChallenge:completionHandler:"), webView, challenge, completionHandler) -} - -func (n_ NavigationDelegateObject) HasWebViewNavigationActionDidBecomeDownload() bool { - return n_.RespondsToSelector(objc.Sel("webView:navigationAction:didBecomeDownload:")) -} - -// Tells the delegate that a navigation action became a download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/3727359-webview?language=objc -func (n_ NavigationDelegateObject) WebViewNavigationActionDidBecomeDownload(webView WebView, navigationAction NavigationAction, download Download) { - objc.Call[objc.Void](n_, objc.Sel("webView:navigationAction:didBecomeDownload:"), webView, navigationAction, download) -} - -func (n_ NavigationDelegateObject) HasWebViewDidReceiveServerRedirectForProvisionalNavigation() bool { - return n_.RespondsToSelector(objc.Sel("webView:didReceiveServerRedirectForProvisionalNavigation:")) -} - -// Tells the delegate that the web view received a server redirect for a request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455627-webview?language=objc -func (n_ NavigationDelegateObject) WebViewDidReceiveServerRedirectForProvisionalNavigation(webView WebView, navigation Navigation) { - objc.Call[objc.Void](n_, objc.Sel("webView:didReceiveServerRedirectForProvisionalNavigation:"), webView, navigation) -} - -func (n_ NavigationDelegateObject) HasWebViewDidCommitNavigation() bool { - return n_.RespondsToSelector(objc.Sel("webView:didCommitNavigation:")) -} - -// Tells the delegate that the web view has started to receive content for the main frame. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455635-webview?language=objc -func (n_ NavigationDelegateObject) WebViewDidCommitNavigation(webView WebView, navigation Navigation) { - objc.Call[objc.Void](n_, objc.Sel("webView:didCommitNavigation:"), webView, navigation) -} - -func (n_ NavigationDelegateObject) HasWebViewDecidePolicyForNavigationResponseDecisionHandler() bool { - return n_.RespondsToSelector(objc.Sel("webView:decidePolicyForNavigationResponse:decisionHandler:")) -} - -// Asks the delegate for permission to navigate to new content after the response to the navigation request is known. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455643-webview?language=objc -func (n_ NavigationDelegateObject) WebViewDecidePolicyForNavigationResponseDecisionHandler(webView WebView, navigationResponse NavigationResponse, decisionHandler func(arg0 NavigationResponsePolicy)) { - objc.Call[objc.Void](n_, objc.Sel("webView:decidePolicyForNavigationResponse:decisionHandler:"), webView, navigationResponse, decisionHandler) -} - -func (n_ NavigationDelegateObject) HasWebViewDidStartProvisionalNavigation() bool { - return n_.RespondsToSelector(objc.Sel("webView:didStartProvisionalNavigation:")) +func (n_ NavigationDelegateObject) HasWebViewDidFinishNavigation() bool { + return n_.RespondsToSelector(objc.Sel("webView:didFinishNavigation:")) } -// Tells the delegate that navigation from the main frame has started. [Full Topic] +// Tells the delegate that navigation is complete. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455621-webview?language=objc -func (n_ NavigationDelegateObject) WebViewDidStartProvisionalNavigation(webView WebView, navigation Navigation) { - objc.Call[objc.Void](n_, objc.Sel("webView:didStartProvisionalNavigation:"), webView, navigation) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455629-webview?language=objc +func (n_ NavigationDelegateObject) WebViewDidFinishNavigation(webView WebView, navigation Navigation) { + objc.Call[objc.Void](n_, objc.Sel("webView:didFinishNavigation:"), webView, navigation) } diff --git a/macos/webkit/navigation_response.gen.go b/macos/webkit/navigation_response.gen.go index 183b03a4..0137fc02 100644 --- a/macos/webkit/navigation_response.gen.go +++ b/macos/webkit/navigation_response.gen.go @@ -19,8 +19,8 @@ type _NavigationResponseClass struct { // An interface definition for the [NavigationResponse] class. type INavigationResponse interface { objc.IObject - Response() foundation.URLResponse IsForMainFrame() bool + Response() foundation.URLResponse CanShowMIMEType() bool } @@ -57,14 +57,6 @@ func (n_ NavigationResponse) Init() NavigationResponse { return rv } -// The frame’s response. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationresponse/1459484-response?language=objc -func (n_ NavigationResponse) Response() foundation.URLResponse { - rv := objc.Call[foundation.URLResponse](n_, objc.Sel("response")) - return rv -} - // A Boolean value that indicates whether the response targets the web view’s main frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationresponse/1459482-formainframe?language=objc @@ -73,6 +65,14 @@ func (n_ NavigationResponse) IsForMainFrame() bool { return rv } +// The frame’s response. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationresponse/1459484-response?language=objc +func (n_ NavigationResponse) Response() foundation.URLResponse { + rv := objc.Call[foundation.URLResponse](n_, objc.Sel("response")) + return rv +} + // A Boolean value that indicates whether WebKit is capable of displaying the response’s MIME type natively. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationresponse/1459480-canshowmimetype?language=objc diff --git a/macos/webkit/open_panel_parameters.gen.go b/macos/webkit/open_panel_parameters.gen.go index 7eb6936e..95637651 100644 --- a/macos/webkit/open_panel_parameters.gen.go +++ b/macos/webkit/open_panel_parameters.gen.go @@ -18,8 +18,8 @@ type _OpenPanelParametersClass struct { // An interface definition for the [OpenPanelParameters] class. type IOpenPanelParameters interface { objc.IObject - AllowsDirectories() bool AllowsMultipleSelection() bool + AllowsDirectories() bool } // The configuration details of a file upload control in your web content. [Full Topic] @@ -55,14 +55,6 @@ func (o_ OpenPanelParameters) Init() OpenPanelParameters { return rv } -// A Boolean value that indicates whether the file upload control supports the selection of directories. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkopenpanelparameters/2937920-allowsdirectories?language=objc -func (o_ OpenPanelParameters) AllowsDirectories() bool { - rv := objc.Call[bool](o_, objc.Sel("allowsDirectories")) - return rv -} - // A Boolean value that indicates whether the file upload control supports multiple files. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkopenpanelparameters/1639524-allowsmultipleselection?language=objc @@ -70,3 +62,11 @@ func (o_ OpenPanelParameters) AllowsMultipleSelection() bool { rv := objc.Call[bool](o_, objc.Sel("allowsMultipleSelection")) return rv } + +// A Boolean value that indicates whether the file upload control supports the selection of directories. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkopenpanelparameters/2937920-allowsdirectories?language=objc +func (o_ OpenPanelParameters) AllowsDirectories() bool { + rv := objc.Call[bool](o_, objc.Sel("allowsDirectories")) + return rv +} diff --git a/macos/webkit/preferences.gen.go b/macos/webkit/preferences.gen.go index 897e8af3..d3570b3b 100644 --- a/macos/webkit/preferences.gen.go +++ b/macos/webkit/preferences.gen.go @@ -18,20 +18,20 @@ type _PreferencesClass struct { // An interface definition for the [Preferences] class. type IPreferences interface { objc.IObject - IsElementFullscreenEnabled() bool - SetElementFullscreenEnabled(value bool) - IsSiteSpecificQuirksModeEnabled() bool - SetSiteSpecificQuirksModeEnabled(value bool) - IsFraudulentWebsiteWarningEnabled() bool - SetFraudulentWebsiteWarningEnabled(value bool) MinimumFontSize() float64 SetMinimumFontSize(value float64) - JavaScriptCanOpenWindowsAutomatically() bool - SetJavaScriptCanOpenWindowsAutomatically(value bool) IsTextInteractionEnabled() bool SetTextInteractionEnabled(value bool) + JavaScriptCanOpenWindowsAutomatically() bool + SetJavaScriptCanOpenWindowsAutomatically(value bool) + IsSiteSpecificQuirksModeEnabled() bool + SetSiteSpecificQuirksModeEnabled(value bool) TabFocusesLinks() bool SetTabFocusesLinks(value bool) + IsElementFullscreenEnabled() bool + SetElementFullscreenEnabled(value bool) + IsFraudulentWebsiteWarningEnabled() bool + SetFraudulentWebsiteWarningEnabled(value bool) } // An object that encapsulates the standard behaviors to apply to websites. [Full Topic] @@ -67,51 +67,6 @@ func (p_ Preferences) Init() Preferences { return rv } -// A Boolean value that indicates whether a web view can display content full screen. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3917769-elementfullscreenenabled?language=objc -func (p_ Preferences) IsElementFullscreenEnabled() bool { - rv := objc.Call[bool](p_, objc.Sel("isElementFullscreenEnabled")) - return rv -} - -// A Boolean value that indicates whether a web view can display content full screen. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3917769-elementfullscreenenabled?language=objc -func (p_ Preferences) SetElementFullscreenEnabled(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setElementFullscreenEnabled:"), value) -} - -// A Boolean that indicates whether to apply site-specific compatibility workarounds. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3916069-sitespecificquirksmodeenabled?language=objc -func (p_ Preferences) IsSiteSpecificQuirksModeEnabled() bool { - rv := objc.Call[bool](p_, objc.Sel("isSiteSpecificQuirksModeEnabled")) - return rv -} - -// A Boolean that indicates whether to apply site-specific compatibility workarounds. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3916069-sitespecificquirksmodeenabled?language=objc -func (p_ Preferences) SetSiteSpecificQuirksModeEnabled(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setSiteSpecificQuirksModeEnabled:"), value) -} - -// A Boolean value that indicates whether the web view shows warnings for suspected fraudulent content, such as malware or phishing attemps. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3335219-fraudulentwebsitewarningenabled?language=objc -func (p_ Preferences) IsFraudulentWebsiteWarningEnabled() bool { - rv := objc.Call[bool](p_, objc.Sel("isFraudulentWebsiteWarningEnabled")) - return rv -} - -// A Boolean value that indicates whether the web view shows warnings for suspected fraudulent content, such as malware or phishing attemps. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3335219-fraudulentwebsitewarningenabled?language=objc -func (p_ Preferences) SetFraudulentWebsiteWarningEnabled(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setFraudulentWebsiteWarningEnabled:"), value) -} - // The minimum font size, in points. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/1537155-minimumfontsize?language=objc @@ -127,6 +82,21 @@ func (p_ Preferences) SetMinimumFontSize(value float64) { objc.Call[objc.Void](p_, objc.Sel("setMinimumFontSize:"), value) } +// A Boolean value that indicates whether to allow people to select or otherwise interact with text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3727362-textinteractionenabled?language=objc +func (p_ Preferences) IsTextInteractionEnabled() bool { + rv := objc.Call[bool](p_, objc.Sel("isTextInteractionEnabled")) + return rv +} + +// A Boolean value that indicates whether to allow people to select or otherwise interact with text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3727362-textinteractionenabled?language=objc +func (p_ Preferences) SetTextInteractionEnabled(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setTextInteractionEnabled:"), value) +} + // A Boolean value that indicates whether JavaScript can open windows without user interaction. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/1536573-javascriptcanopenwindowsautomati?language=objc @@ -142,19 +112,19 @@ func (p_ Preferences) SetJavaScriptCanOpenWindowsAutomatically(value bool) { objc.Call[objc.Void](p_, objc.Sel("setJavaScriptCanOpenWindowsAutomatically:"), value) } -// A Boolean value that indicates whether to allow people to select or otherwise interact with text. [Full Topic] +// A Boolean that indicates whether to apply site-specific compatibility workarounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3727362-textinteractionenabled?language=objc -func (p_ Preferences) IsTextInteractionEnabled() bool { - rv := objc.Call[bool](p_, objc.Sel("isTextInteractionEnabled")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3916069-sitespecificquirksmodeenabled?language=objc +func (p_ Preferences) IsSiteSpecificQuirksModeEnabled() bool { + rv := objc.Call[bool](p_, objc.Sel("isSiteSpecificQuirksModeEnabled")) return rv } -// A Boolean value that indicates whether to allow people to select or otherwise interact with text. [Full Topic] +// A Boolean that indicates whether to apply site-specific compatibility workarounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3727362-textinteractionenabled?language=objc -func (p_ Preferences) SetTextInteractionEnabled(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setTextInteractionEnabled:"), value) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3916069-sitespecificquirksmodeenabled?language=objc +func (p_ Preferences) SetSiteSpecificQuirksModeEnabled(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setSiteSpecificQuirksModeEnabled:"), value) } // A Boolean value that indicates whether pressing the tab key changes the focus to links and form controls. [Full Topic] @@ -171,3 +141,33 @@ func (p_ Preferences) TabFocusesLinks() bool { func (p_ Preferences) SetTabFocusesLinks(value bool) { objc.Call[objc.Void](p_, objc.Sel("setTabFocusesLinks:"), value) } + +// A Boolean value that indicates whether a web view can display content full screen. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3917769-elementfullscreenenabled?language=objc +func (p_ Preferences) IsElementFullscreenEnabled() bool { + rv := objc.Call[bool](p_, objc.Sel("isElementFullscreenEnabled")) + return rv +} + +// A Boolean value that indicates whether a web view can display content full screen. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3917769-elementfullscreenenabled?language=objc +func (p_ Preferences) SetElementFullscreenEnabled(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setElementFullscreenEnabled:"), value) +} + +// A Boolean value that indicates whether the web view shows warnings for suspected fraudulent content, such as malware or phishing attemps. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3335219-fraudulentwebsitewarningenabled?language=objc +func (p_ Preferences) IsFraudulentWebsiteWarningEnabled() bool { + rv := objc.Call[bool](p_, objc.Sel("isFraudulentWebsiteWarningEnabled")) + return rv +} + +// A Boolean value that indicates whether the web view shows warnings for suspected fraudulent content, such as malware or phishing attemps. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/3335219-fraudulentwebsitewarningenabled?language=objc +func (p_ Preferences) SetFraudulentWebsiteWarningEnabled(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setFraudulentWebsiteWarningEnabled:"), value) +} diff --git a/macos/webkit/script_message.gen.go b/macos/webkit/script_message.gen.go index 4b2b6e7b..35a7c52c 100644 --- a/macos/webkit/script_message.gen.go +++ b/macos/webkit/script_message.gen.go @@ -18,10 +18,10 @@ type _ScriptMessageClass struct { // An interface definition for the [ScriptMessage] class. type IScriptMessage interface { objc.IObject + Name() string + Body() objc.Object FrameInfo() FrameInfo World() ContentWorld - Body() objc.Object - Name() string } // An object that encapsulates a message sent by JavaScript code from a webpage. [Full Topic] @@ -57,19 +57,11 @@ func (s_ ScriptMessage) Init() ScriptMessage { return rv } -// The frame that sent the message. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkscriptmessage/1417906-frameinfo?language=objc -func (s_ ScriptMessage) FrameInfo() FrameInfo { - rv := objc.Call[FrameInfo](s_, objc.Sel("frameInfo")) - return rv -} - -// The namespace in which the JavaScript code executes. [Full Topic] +// The name of the message handler to which the message is sent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkscriptmessage/3585109-world?language=objc -func (s_ ScriptMessage) World() ContentWorld { - rv := objc.Call[ContentWorld](s_, objc.Sel("world")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkscriptmessage/1417908-name?language=objc +func (s_ ScriptMessage) Name() string { + rv := objc.Call[string](s_, objc.Sel("name")) return rv } @@ -81,10 +73,18 @@ func (s_ ScriptMessage) Body() objc.Object { return rv } -// The name of the message handler to which the message is sent. [Full Topic] +// The frame that sent the message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkscriptmessage/1417908-name?language=objc -func (s_ ScriptMessage) Name() string { - rv := objc.Call[string](s_, objc.Sel("name")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkscriptmessage/1417906-frameinfo?language=objc +func (s_ ScriptMessage) FrameInfo() FrameInfo { + rv := objc.Call[FrameInfo](s_, objc.Sel("frameInfo")) + return rv +} + +// The namespace in which the JavaScript code executes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkscriptmessage/3585109-world?language=objc +func (s_ ScriptMessage) World() ContentWorld { + rv := objc.Call[ContentWorld](s_, objc.Sel("world")) return rv } diff --git a/macos/webkit/security_origin.gen.go b/macos/webkit/security_origin.gen.go index fb450126..69ad28c3 100644 --- a/macos/webkit/security_origin.gen.go +++ b/macos/webkit/security_origin.gen.go @@ -18,8 +18,8 @@ type _SecurityOriginClass struct { // An interface definition for the [SecurityOrigin] class. type ISecurityOrigin interface { objc.IObject - Port() int Host() string + Port() int Protocol() string } @@ -56,14 +56,6 @@ func (s_ SecurityOrigin) Init() SecurityOrigin { return rv } -// The security origin's port. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wksecurityorigin/1536403-port?language=objc -func (s_ SecurityOrigin) Port() int { - rv := objc.Call[int](s_, objc.Sel("port")) - return rv -} - // The security origin’s host. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wksecurityorigin/1536794-host?language=objc @@ -72,6 +64,14 @@ func (s_ SecurityOrigin) Host() string { return rv } +// The security origin's port. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wksecurityorigin/1536403-port?language=objc +func (s_ SecurityOrigin) Port() int { + rv := objc.Call[int](s_, objc.Sel("port")) + return rv +} + // The security origin's protocol. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wksecurityorigin/1537470-protocol?language=objc diff --git a/macos/webkit/snapshot_configuration.gen.go b/macos/webkit/snapshot_configuration.gen.go index a79c52eb..6d918e64 100644 --- a/macos/webkit/snapshot_configuration.gen.go +++ b/macos/webkit/snapshot_configuration.gen.go @@ -20,10 +20,10 @@ type _SnapshotConfigurationClass struct { // An interface definition for the [SnapshotConfiguration] class. type ISnapshotConfiguration interface { objc.IObject - Rect() coregraphics.Rect - SetRect(value coregraphics.Rect) AfterScreenUpdates() bool SetAfterScreenUpdates(value bool) + Rect() coregraphics.Rect + SetRect(value coregraphics.Rect) SnapshotWidth() foundation.Number SetSnapshotWidth(value foundation.INumber) } @@ -61,21 +61,6 @@ func (s_ SnapshotConfiguration) Init() SnapshotConfiguration { return rv } -// The portion of your web view to capture, specified as a rectangle in the view’s coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wksnapshotconfiguration/2873250-rect?language=objc -func (s_ SnapshotConfiguration) Rect() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](s_, objc.Sel("rect")) - return rv -} - -// The portion of your web view to capture, specified as a rectangle in the view’s coordinate system. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wksnapshotconfiguration/2873250-rect?language=objc -func (s_ SnapshotConfiguration) SetRect(value coregraphics.Rect) { - objc.Call[objc.Void](s_, objc.Sel("setRect:"), value) -} - // A Boolean value that indicates whether to take the snapshot after incorporating any pending screen updates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wksnapshotconfiguration/3172739-afterscreenupdates?language=objc @@ -91,6 +76,21 @@ func (s_ SnapshotConfiguration) SetAfterScreenUpdates(value bool) { objc.Call[objc.Void](s_, objc.Sel("setAfterScreenUpdates:"), value) } +// The portion of your web view to capture, specified as a rectangle in the view’s coordinate system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wksnapshotconfiguration/2873250-rect?language=objc +func (s_ SnapshotConfiguration) Rect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](s_, objc.Sel("rect")) + return rv +} + +// The portion of your web view to capture, specified as a rectangle in the view’s coordinate system. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wksnapshotconfiguration/2873250-rect?language=objc +func (s_ SnapshotConfiguration) SetRect(value coregraphics.Rect) { + objc.Call[objc.Void](s_, objc.Sel("setRect:"), value) +} + // The width of the captured image, in points. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wksnapshotconfiguration/2873249-snapshotwidth?language=objc diff --git a/macos/webkit/ui_delegate.gen.go b/macos/webkit/ui_delegate.gen.go index 50c27aea..47d2083b 100644 --- a/macos/webkit/ui_delegate.gen.go +++ b/macos/webkit/ui_delegate.gen.go @@ -3,7 +3,6 @@ package webkit import ( - "github.com/progrium/darwinkit/macos/foundation" "github.com/progrium/darwinkit/objc" ) @@ -11,131 +10,16 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate?language=objc type PUIDelegate interface { - // optional - WebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler(webView WebView, message string, frame FrameInfo, completionHandler func()) - HasWebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler() bool - - // optional - WebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures(webView WebView, configuration WebViewConfiguration, navigationAction NavigationAction, windowFeatures WindowFeatures) WebView - HasWebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures() bool - - // optional - WebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler(webView WebView, message string, frame FrameInfo, completionHandler func(result bool)) - HasWebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler() bool - - // optional - WebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler(webView WebView, parameters OpenPanelParameters, frame FrameInfo, completionHandler func(URLs []foundation.URL)) - HasWebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler() bool - - // optional - WebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler(webView WebView, origin SecurityOrigin, frame FrameInfo, type_ MediaCaptureType, decisionHandler func(decision PermissionDecision)) - HasWebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler() bool - // optional WebViewDidClose(webView WebView) HasWebViewDidClose() bool - - // optional - WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler(webView WebView, prompt string, defaultText string, frame FrameInfo, completionHandler func(result string)) - HasWebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler() bool } // A delegate implementation builder for the [PUIDelegate] protocol. type UIDelegate struct { - _WebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler func(webView WebView, message string, frame FrameInfo, completionHandler func()) - _WebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures func(webView WebView, configuration WebViewConfiguration, navigationAction NavigationAction, windowFeatures WindowFeatures) WebView - _WebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler func(webView WebView, message string, frame FrameInfo, completionHandler func(result bool)) - _WebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler func(webView WebView, parameters OpenPanelParameters, frame FrameInfo, completionHandler func(URLs []foundation.URL)) - _WebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler func(webView WebView, origin SecurityOrigin, frame FrameInfo, type_ MediaCaptureType, decisionHandler func(decision PermissionDecision)) - _WebViewDidClose func(webView WebView) - _WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler func(webView WebView, prompt string, defaultText string, frame FrameInfo, completionHandler func(result string)) -} - -func (di *UIDelegate) HasWebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler() bool { - return di._WebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler != nil -} - -// Displays a JavaScript alert panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1537406-webview?language=objc -func (di *UIDelegate) SetWebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler(f func(webView WebView, message string, frame FrameInfo, completionHandler func())) { - di._WebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler = f -} - -// Displays a JavaScript alert panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1537406-webview?language=objc -func (di *UIDelegate) WebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler(webView WebView, message string, frame FrameInfo, completionHandler func()) { - di._WebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler(webView, message, frame, completionHandler) -} -func (di *UIDelegate) HasWebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures() bool { - return di._WebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures != nil -} - -// Creates a new web view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1536907-webview?language=objc -func (di *UIDelegate) SetWebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures(f func(webView WebView, configuration WebViewConfiguration, navigationAction NavigationAction, windowFeatures WindowFeatures) WebView) { - di._WebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures = f -} - -// Creates a new web view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1536907-webview?language=objc -func (di *UIDelegate) WebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures(webView WebView, configuration WebViewConfiguration, navigationAction NavigationAction, windowFeatures WindowFeatures) WebView { - return di._WebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures(webView, configuration, navigationAction, windowFeatures) -} -func (di *UIDelegate) HasWebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler() bool { - return di._WebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler != nil -} - -// Displays a JavaScript confirm panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1536489-webview?language=objc -func (di *UIDelegate) SetWebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler(f func(webView WebView, message string, frame FrameInfo, completionHandler func(result bool))) { - di._WebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler = f -} - -// Displays a JavaScript confirm panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1536489-webview?language=objc -func (di *UIDelegate) WebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler(webView WebView, message string, frame FrameInfo, completionHandler func(result bool)) { - di._WebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler(webView, message, frame, completionHandler) -} -func (di *UIDelegate) HasWebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler() bool { - return di._WebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler != nil -} - -// Displays a file upload panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1641952-webview?language=objc -func (di *UIDelegate) SetWebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler(f func(webView WebView, parameters OpenPanelParameters, frame FrameInfo, completionHandler func(URLs []foundation.URL))) { - di._WebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler = f -} - -// Displays a file upload panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1641952-webview?language=objc -func (di *UIDelegate) WebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler(webView WebView, parameters OpenPanelParameters, frame FrameInfo, completionHandler func(URLs []foundation.URL)) { - di._WebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler(webView, parameters, frame, completionHandler) -} -func (di *UIDelegate) HasWebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler() bool { - return di._WebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler != nil + _WebViewDidClose func(webView WebView) } -// Determines whether a web resource, which the security origin object describes, can access to the device’s microphone audio and camera video. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/3763087-webview?language=objc -func (di *UIDelegate) SetWebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler(f func(webView WebView, origin SecurityOrigin, frame FrameInfo, type_ MediaCaptureType, decisionHandler func(decision PermissionDecision))) { - di._WebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler = f -} - -// Determines whether a web resource, which the security origin object describes, can access to the device’s microphone audio and camera video. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/3763087-webview?language=objc -func (di *UIDelegate) WebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler(webView WebView, origin SecurityOrigin, frame FrameInfo, type_ MediaCaptureType, decisionHandler func(decision PermissionDecision)) { - di._WebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler(webView, origin, frame, type_, decisionHandler) -} func (di *UIDelegate) HasWebViewDidClose() bool { return di._WebViewDidClose != nil } @@ -153,23 +37,6 @@ func (di *UIDelegate) SetWebViewDidClose(f func(webView WebView)) { func (di *UIDelegate) WebViewDidClose(webView WebView) { di._WebViewDidClose(webView) } -func (di *UIDelegate) HasWebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler() bool { - return di._WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler != nil -} - -// Displays a JavaScript text input panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1538086-webview?language=objc -func (di *UIDelegate) SetWebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler(f func(webView WebView, prompt string, defaultText string, frame FrameInfo, completionHandler func(result string))) { - di._WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler = f -} - -// Displays a JavaScript text input panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1538086-webview?language=objc -func (di *UIDelegate) WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler(webView WebView, prompt string, defaultText string, frame FrameInfo, completionHandler func(result string)) { - di._WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler(webView, prompt, defaultText, frame, completionHandler) -} // ensure impl type implements protocol interface var _ PUIDelegate = (*UIDelegateObject)(nil) @@ -179,62 +46,6 @@ type UIDelegateObject struct { objc.Object } -func (u_ UIDelegateObject) HasWebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler() bool { - return u_.RespondsToSelector(objc.Sel("webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:")) -} - -// Displays a JavaScript alert panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1537406-webview?language=objc -func (u_ UIDelegateObject) WebViewRunJavaScriptAlertPanelWithMessageInitiatedByFrameCompletionHandler(webView WebView, message string, frame FrameInfo, completionHandler func()) { - objc.Call[objc.Void](u_, objc.Sel("webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:"), webView, message, frame, completionHandler) -} - -func (u_ UIDelegateObject) HasWebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures() bool { - return u_.RespondsToSelector(objc.Sel("webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:")) -} - -// Creates a new web view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1536907-webview?language=objc -func (u_ UIDelegateObject) WebViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures(webView WebView, configuration WebViewConfiguration, navigationAction NavigationAction, windowFeatures WindowFeatures) WebView { - rv := objc.Call[WebView](u_, objc.Sel("webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:"), webView, configuration, navigationAction, windowFeatures) - return rv -} - -func (u_ UIDelegateObject) HasWebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler() bool { - return u_.RespondsToSelector(objc.Sel("webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:")) -} - -// Displays a JavaScript confirm panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1536489-webview?language=objc -func (u_ UIDelegateObject) WebViewRunJavaScriptConfirmPanelWithMessageInitiatedByFrameCompletionHandler(webView WebView, message string, frame FrameInfo, completionHandler func(result bool)) { - objc.Call[objc.Void](u_, objc.Sel("webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:"), webView, message, frame, completionHandler) -} - -func (u_ UIDelegateObject) HasWebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler() bool { - return u_.RespondsToSelector(objc.Sel("webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:")) -} - -// Displays a file upload panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1641952-webview?language=objc -func (u_ UIDelegateObject) WebViewRunOpenPanelWithParametersInitiatedByFrameCompletionHandler(webView WebView, parameters OpenPanelParameters, frame FrameInfo, completionHandler func(URLs []foundation.URL)) { - objc.Call[objc.Void](u_, objc.Sel("webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:"), webView, parameters, frame, completionHandler) -} - -func (u_ UIDelegateObject) HasWebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler() bool { - return u_.RespondsToSelector(objc.Sel("webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:")) -} - -// Determines whether a web resource, which the security origin object describes, can access to the device’s microphone audio and camera video. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/3763087-webview?language=objc -func (u_ UIDelegateObject) WebViewRequestMediaCapturePermissionForOriginInitiatedByFrameTypeDecisionHandler(webView WebView, origin SecurityOrigin, frame FrameInfo, type_ MediaCaptureType, decisionHandler func(decision PermissionDecision)) { - objc.Call[objc.Void](u_, objc.Sel("webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:"), webView, origin, frame, type_, decisionHandler) -} - func (u_ UIDelegateObject) HasWebViewDidClose() bool { return u_.RespondsToSelector(objc.Sel("webViewDidClose:")) } @@ -245,14 +56,3 @@ func (u_ UIDelegateObject) HasWebViewDidClose() bool { func (u_ UIDelegateObject) WebViewDidClose(webView WebView) { objc.Call[objc.Void](u_, objc.Sel("webViewDidClose:"), webView) } - -func (u_ UIDelegateObject) HasWebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler() bool { - return u_.RespondsToSelector(objc.Sel("webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:")) -} - -// Displays a JavaScript text input panel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1538086-webview?language=objc -func (u_ UIDelegateObject) WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrameCompletionHandler(webView WebView, prompt string, defaultText string, frame FrameInfo, completionHandler func(result string)) { - objc.Call[objc.Void](u_, objc.Sel("webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:"), webView, prompt, defaultText, frame, completionHandler) -} diff --git a/macos/webkit/url_scheme_handler_protocol.gen.go b/macos/webkit/url_scheme_handler_protocol.gen.go index e1142691..85ff4bee 100644 --- a/macos/webkit/url_scheme_handler_protocol.gen.go +++ b/macos/webkit/url_scheme_handler_protocol.gen.go @@ -13,10 +13,6 @@ type PURLSchemeHandler interface { // optional WebViewStartURLSchemeTask(webView WebView, urlSchemeTask URLSchemeTaskObject) HasWebViewStartURLSchemeTask() bool - - // optional - WebViewStopURLSchemeTask(webView WebView, urlSchemeTask URLSchemeTaskObject) - HasWebViewStopURLSchemeTask() bool } // ensure impl type implements protocol interface @@ -38,15 +34,3 @@ func (u_ URLSchemeHandlerObject) WebViewStartURLSchemeTask(webView WebView, urlS po1 := objc.WrapAsProtocol("WKURLSchemeTask", urlSchemeTask) objc.Call[objc.Void](u_, objc.Sel("webView:startURLSchemeTask:"), webView, po1) } - -func (u_ URLSchemeHandlerObject) HasWebViewStopURLSchemeTask() bool { - return u_.RespondsToSelector(objc.Sel("webView:stopURLSchemeTask:")) -} - -// Asks your handler to stop loading the data for the specified resource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemehandler/2890835-webview?language=objc -func (u_ URLSchemeHandlerObject) WebViewStopURLSchemeTask(webView WebView, urlSchemeTask URLSchemeTaskObject) { - po1 := objc.WrapAsProtocol("WKURLSchemeTask", urlSchemeTask) - objc.Call[objc.Void](u_, objc.Sel("webView:stopURLSchemeTask:"), webView, po1) -} diff --git a/macos/webkit/url_scheme_task_protocol.gen.go b/macos/webkit/url_scheme_task_protocol.gen.go index fc87b407..5d710dc4 100644 --- a/macos/webkit/url_scheme_task_protocol.gen.go +++ b/macos/webkit/url_scheme_task_protocol.gen.go @@ -12,20 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask?language=objc type PURLSchemeTask interface { // optional - DidReceiveResponse(response foundation.URLResponse) - HasDidReceiveResponse() bool - - // optional - DidReceiveData(data []byte) - HasDidReceiveData() bool + DidFailWithError(error foundation.Error) + HasDidFailWithError() bool // optional DidFinish() HasDidFinish() bool // optional - DidFailWithError(error foundation.Error) - HasDidFailWithError() bool + DidReceiveData(data []byte) + HasDidReceiveData() bool + + // optional + DidReceiveResponse(response foundation.URLResponse) + HasDidReceiveResponse() bool // optional Request() foundation.URLRequest @@ -40,26 +40,15 @@ type URLSchemeTaskObject struct { objc.Object } -func (u_ URLSchemeTaskObject) HasDidReceiveResponse() bool { - return u_.RespondsToSelector(objc.Sel("didReceiveResponse:")) -} - -// Returns a URL response to WebKit with information about the requested resource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890839-didreceiveresponse?language=objc -func (u_ URLSchemeTaskObject) DidReceiveResponse(response foundation.URLResponse) { - objc.Call[objc.Void](u_, objc.Sel("didReceiveResponse:"), response) -} - -func (u_ URLSchemeTaskObject) HasDidReceiveData() bool { - return u_.RespondsToSelector(objc.Sel("didReceiveData:")) +func (u_ URLSchemeTaskObject) HasDidFailWithError() bool { + return u_.RespondsToSelector(objc.Sel("didFailWithError:")) } -// Sends some or all of the resource data to WebKit. [Full Topic] +// Completes the task and reports the specified error back to WebKit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890836-didreceivedata?language=objc -func (u_ URLSchemeTaskObject) DidReceiveData(data []byte) { - objc.Call[objc.Void](u_, objc.Sel("didReceiveData:"), data) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890841-didfailwitherror?language=objc +func (u_ URLSchemeTaskObject) DidFailWithError(error foundation.Error) { + objc.Call[objc.Void](u_, objc.Sel("didFailWithError:"), error) } func (u_ URLSchemeTaskObject) HasDidFinish() bool { @@ -73,15 +62,26 @@ func (u_ URLSchemeTaskObject) DidFinish() { objc.Call[objc.Void](u_, objc.Sel("didFinish")) } -func (u_ URLSchemeTaskObject) HasDidFailWithError() bool { - return u_.RespondsToSelector(objc.Sel("didFailWithError:")) +func (u_ URLSchemeTaskObject) HasDidReceiveData() bool { + return u_.RespondsToSelector(objc.Sel("didReceiveData:")) } -// Completes the task and reports the specified error back to WebKit. [Full Topic] +// Sends some or all of the resource data to WebKit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890841-didfailwitherror?language=objc -func (u_ URLSchemeTaskObject) DidFailWithError(error foundation.Error) { - objc.Call[objc.Void](u_, objc.Sel("didFailWithError:"), error) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890836-didreceivedata?language=objc +func (u_ URLSchemeTaskObject) DidReceiveData(data []byte) { + objc.Call[objc.Void](u_, objc.Sel("didReceiveData:"), data) +} + +func (u_ URLSchemeTaskObject) HasDidReceiveResponse() bool { + return u_.RespondsToSelector(objc.Sel("didReceiveResponse:")) +} + +// Returns a URL response to WebKit with information about the requested resource. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890839-didreceiveresponse?language=objc +func (u_ URLSchemeTaskObject) DidReceiveResponse(response foundation.URLResponse) { + objc.Call[objc.Void](u_, objc.Sel("didReceiveResponse:"), response) } func (u_ URLSchemeTaskObject) HasRequest() bool { diff --git a/macos/webkit/user_content_controller.gen.go b/macos/webkit/user_content_controller.gen.go index e06d35cf..603d0fff 100644 --- a/macos/webkit/user_content_controller.gen.go +++ b/macos/webkit/user_content_controller.gen.go @@ -18,21 +18,18 @@ type _UserContentControllerClass struct { // An interface definition for the [UserContentController] class. type IUserContentController interface { objc.IObject - RemoveAllScriptMessageHandlers() + RemoveScriptMessageHandlerForNameContentWorld(name string, contentWorld IContentWorld) AddScriptMessageHandlerName(scriptMessageHandler PScriptMessageHandler, name string) AddScriptMessageHandlerObjectName(scriptMessageHandlerObject objc.IObject, name string) - AddScriptMessageHandlerContentWorldName(scriptMessageHandler PScriptMessageHandler, world IContentWorld, name string) - AddScriptMessageHandlerObjectContentWorldName(scriptMessageHandlerObject objc.IObject, world IContentWorld, name string) - RemoveAllUserScripts() + RemoveContentRuleList(contentRuleList IContentRuleList) + RemoveAllScriptMessageHandlersFromContentWorld(contentWorld IContentWorld) RemoveAllContentRuleLists() + RemoveAllScriptMessageHandlers() + AddContentRuleList(contentRuleList IContentRuleList) + RemoveAllUserScripts() AddScriptMessageHandlerWithReplyContentWorldName(scriptMessageHandlerWithReply PScriptMessageHandlerWithReply, contentWorld IContentWorld, name string) AddScriptMessageHandlerWithReplyObjectContentWorldName(scriptMessageHandlerWithReplyObject objc.IObject, contentWorld IContentWorld, name string) - AddContentRuleList(contentRuleList IContentRuleList) - RemoveScriptMessageHandlerForName(name string) - RemoveAllScriptMessageHandlersFromContentWorld(contentWorld IContentWorld) AddUserScript(userScript IUserScript) - RemoveScriptMessageHandlerForNameContentWorld(name string, contentWorld IContentWorld) - RemoveContentRuleList(contentRuleList IContentRuleList) UserScripts() []UserScript } @@ -69,11 +66,11 @@ func (u_ UserContentController) Init() UserContentController { return rv } -// Uninstalls all custom message handlers associated with the user content controller. [Full Topic] +// Uninstalls a custom message handler from the specified content world in your JavaScript code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585114-removeallscriptmessagehandlers?language=objc -func (u_ UserContentController) RemoveAllScriptMessageHandlers() { - objc.Call[objc.Void](u_, objc.Sel("removeAllScriptMessageHandlers")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585116-removescriptmessagehandlerfornam?language=objc +func (u_ UserContentController) RemoveScriptMessageHandlerForNameContentWorld(name string, contentWorld IContentWorld) { + objc.Call[objc.Void](u_, objc.Sel("removeScriptMessageHandlerForName:contentWorld:"), name, contentWorld) } // Installs a message handler that you can call from your JavaScript code. [Full Topic] @@ -91,26 +88,18 @@ func (u_ UserContentController) AddScriptMessageHandlerObjectName(scriptMessageH objc.Call[objc.Void](u_, objc.Sel("addScriptMessageHandler:name:"), scriptMessageHandlerObject, name) } -// Installs a message handler that you can call from the specified content world in your JavaScript code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585112-addscriptmessagehandler?language=objc -func (u_ UserContentController) AddScriptMessageHandlerContentWorldName(scriptMessageHandler PScriptMessageHandler, world IContentWorld, name string) { - po0 := objc.WrapAsProtocol("WKScriptMessageHandler", scriptMessageHandler) - objc.Call[objc.Void](u_, objc.Sel("addScriptMessageHandler:contentWorld:name:"), po0, world, name) -} - -// Installs a message handler that you can call from the specified content world in your JavaScript code. [Full Topic] +// Removes the specified rule list from the content controller object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585112-addscriptmessagehandler?language=objc -func (u_ UserContentController) AddScriptMessageHandlerObjectContentWorldName(scriptMessageHandlerObject objc.IObject, world IContentWorld, name string) { - objc.Call[objc.Void](u_, objc.Sel("addScriptMessageHandler:contentWorld:name:"), scriptMessageHandlerObject, world, name) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/2902763-removecontentrulelist?language=objc +func (u_ UserContentController) RemoveContentRuleList(contentRuleList IContentRuleList) { + objc.Call[objc.Void](u_, objc.Sel("removeContentRuleList:"), contentRuleList) } -// Removes all user scripts from the web view. [Full Topic] +// Uninstalls all custom message handlers from the specified content world in your JavaScript code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1536540-removealluserscripts?language=objc -func (u_ UserContentController) RemoveAllUserScripts() { - objc.Call[objc.Void](u_, objc.Sel("removeAllUserScripts")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585115-removeallscriptmessagehandlersfr?language=objc +func (u_ UserContentController) RemoveAllScriptMessageHandlersFromContentWorld(contentWorld IContentWorld) { + objc.Call[objc.Void](u_, objc.Sel("removeAllScriptMessageHandlersFromContentWorld:"), contentWorld) } // Removes all rules lists from the content controller. [Full Topic] @@ -120,19 +109,11 @@ func (u_ UserContentController) RemoveAllContentRuleLists() { objc.Call[objc.Void](u_, objc.Sel("removeAllContentRuleLists")) } -// Installs a message handler that returns a reply to your JavaScript code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585113-addscriptmessagehandlerwithreply?language=objc -func (u_ UserContentController) AddScriptMessageHandlerWithReplyContentWorldName(scriptMessageHandlerWithReply PScriptMessageHandlerWithReply, contentWorld IContentWorld, name string) { - po0 := objc.WrapAsProtocol("WKScriptMessageHandlerWithReply", scriptMessageHandlerWithReply) - objc.Call[objc.Void](u_, objc.Sel("addScriptMessageHandlerWithReply:contentWorld:name:"), po0, contentWorld, name) -} - -// Installs a message handler that returns a reply to your JavaScript code. [Full Topic] +// Uninstalls all custom message handlers associated with the user content controller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585113-addscriptmessagehandlerwithreply?language=objc -func (u_ UserContentController) AddScriptMessageHandlerWithReplyObjectContentWorldName(scriptMessageHandlerWithReplyObject objc.IObject, contentWorld IContentWorld, name string) { - objc.Call[objc.Void](u_, objc.Sel("addScriptMessageHandlerWithReply:contentWorld:name:"), scriptMessageHandlerWithReplyObject, contentWorld, name) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585114-removeallscriptmessagehandlers?language=objc +func (u_ UserContentController) RemoveAllScriptMessageHandlers() { + objc.Call[objc.Void](u_, objc.Sel("removeAllScriptMessageHandlers")) } // Adds the specified content rule list to the content controller object. [Full Topic] @@ -142,18 +123,26 @@ func (u_ UserContentController) AddContentRuleList(contentRuleList IContentRuleL objc.Call[objc.Void](u_, objc.Sel("addContentRuleList:"), contentRuleList) } -// Uninstalls the custom message handler with the specified name from your JavaScript code. [Full Topic] +// Removes all user scripts from the web view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1537532-removescriptmessagehandlerfornam?language=objc -func (u_ UserContentController) RemoveScriptMessageHandlerForName(name string) { - objc.Call[objc.Void](u_, objc.Sel("removeScriptMessageHandlerForName:"), name) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1536540-removealluserscripts?language=objc +func (u_ UserContentController) RemoveAllUserScripts() { + objc.Call[objc.Void](u_, objc.Sel("removeAllUserScripts")) } -// Uninstalls all custom message handlers from the specified content world in your JavaScript code. [Full Topic] +// Installs a message handler that returns a reply to your JavaScript code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585115-removeallscriptmessagehandlersfr?language=objc -func (u_ UserContentController) RemoveAllScriptMessageHandlersFromContentWorld(contentWorld IContentWorld) { - objc.Call[objc.Void](u_, objc.Sel("removeAllScriptMessageHandlersFromContentWorld:"), contentWorld) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585113-addscriptmessagehandlerwithreply?language=objc +func (u_ UserContentController) AddScriptMessageHandlerWithReplyContentWorldName(scriptMessageHandlerWithReply PScriptMessageHandlerWithReply, contentWorld IContentWorld, name string) { + po0 := objc.WrapAsProtocol("WKScriptMessageHandlerWithReply", scriptMessageHandlerWithReply) + objc.Call[objc.Void](u_, objc.Sel("addScriptMessageHandlerWithReply:contentWorld:name:"), po0, contentWorld, name) +} + +// Installs a message handler that returns a reply to your JavaScript code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585113-addscriptmessagehandlerwithreply?language=objc +func (u_ UserContentController) AddScriptMessageHandlerWithReplyObjectContentWorldName(scriptMessageHandlerWithReplyObject objc.IObject, contentWorld IContentWorld, name string) { + objc.Call[objc.Void](u_, objc.Sel("addScriptMessageHandlerWithReply:contentWorld:name:"), scriptMessageHandlerWithReplyObject, contentWorld, name) } // Injects the specified script into the webpage’s content. [Full Topic] @@ -163,20 +152,6 @@ func (u_ UserContentController) AddUserScript(userScript IUserScript) { objc.Call[objc.Void](u_, objc.Sel("addUserScript:"), userScript) } -// Uninstalls a custom message handler from the specified content world in your JavaScript code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/3585116-removescriptmessagehandlerfornam?language=objc -func (u_ UserContentController) RemoveScriptMessageHandlerForNameContentWorld(name string, contentWorld IContentWorld) { - objc.Call[objc.Void](u_, objc.Sel("removeScriptMessageHandlerForName:contentWorld:"), name, contentWorld) -} - -// Removes the specified rule list from the content controller object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/2902763-removecontentrulelist?language=objc -func (u_ UserContentController) RemoveContentRuleList(contentRuleList IContentRuleList) { - objc.Call[objc.Void](u_, objc.Sel("removeContentRuleList:"), contentRuleList) -} - // The user scripts associated with the user content controller. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1538046-userscripts?language=objc diff --git a/macos/webkit/user_script.gen.go b/macos/webkit/user_script.gen.go index 8aa07286..122b4b2e 100644 --- a/macos/webkit/user_script.gen.go +++ b/macos/webkit/user_script.gen.go @@ -18,8 +18,8 @@ type _UserScriptClass struct { // An interface definition for the [UserScript] class. type IUserScript interface { objc.IObject - IsForMainFrameOnly() bool Source() string + IsForMainFrameOnly() bool InjectionTime() UserScriptInjectionTime } @@ -36,20 +36,6 @@ func UserScriptFrom(ptr unsafe.Pointer) UserScript { } } -func (u_ UserScript) InitWithSourceInjectionTimeForMainFrameOnlyInContentWorld(source string, injectionTime UserScriptInjectionTime, forMainFrameOnly bool, contentWorld IContentWorld) UserScript { - rv := objc.Call[UserScript](u_, objc.Sel("initWithSource:injectionTime:forMainFrameOnly:inContentWorld:"), source, injectionTime, forMainFrameOnly, contentWorld) - return rv -} - -// Creates a user script object that is scoped to a particular content world. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuserscript/3656354-initwithsource?language=objc -func NewUserScriptWithSourceInjectionTimeForMainFrameOnlyInContentWorld(source string, injectionTime UserScriptInjectionTime, forMainFrameOnly bool, contentWorld IContentWorld) UserScript { - instance := UserScriptClass.Alloc().InitWithSourceInjectionTimeForMainFrameOnlyInContentWorld(source, injectionTime, forMainFrameOnly, contentWorld) - instance.Autorelease() - return instance -} - func (u_ UserScript) InitWithSourceInjectionTimeForMainFrameOnly(source string, injectionTime UserScriptInjectionTime, forMainFrameOnly bool) UserScript { rv := objc.Call[UserScript](u_, objc.Sel("initWithSource:injectionTime:forMainFrameOnly:"), source, injectionTime, forMainFrameOnly) return rv @@ -84,14 +70,6 @@ func (u_ UserScript) Init() UserScript { return rv } -// A Boolean value that indicates whether to inject the script into the main frame or all frames. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuserscript/1537856-formainframeonly?language=objc -func (u_ UserScript) IsForMainFrameOnly() bool { - rv := objc.Call[bool](u_, objc.Sel("isForMainFrameOnly")) - return rv -} - // The script’s source code. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkuserscript/1537787-source?language=objc @@ -100,6 +78,14 @@ func (u_ UserScript) Source() string { return rv } +// A Boolean value that indicates whether to inject the script into the main frame or all frames. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuserscript/1537856-formainframeonly?language=objc +func (u_ UserScript) IsForMainFrameOnly() bool { + rv := objc.Call[bool](u_, objc.Sel("isForMainFrameOnly")) + return rv +} + // The time at which to inject the script into the webpage. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkuserscript/1536492-injectiontime?language=objc diff --git a/macos/webkit/web_back_forward_list.gen.go b/macos/webkit/web_back_forward_list.gen.go index 18bb06cf..d97eb847 100644 --- a/macos/webkit/web_back_forward_list.gen.go +++ b/macos/webkit/web_back_forward_list.gen.go @@ -20,7 +20,7 @@ type IWebBackForwardList interface { objc.IObject } -// A WebBackForwardList object maintains a list of visited pages used to go back and forward to the most recent page. A WebBackForwardList object maintains only the list data—it does not perform actual page loads (in other words, it does not make any client requests). If you need to perform a page load, see the [webkit/webframe/loadrequest] method in WebFrame to find out how to do this. [Full Topic] +// A WebBackForwardList object maintains a list of visited pages used to go back and forward to the most recent page. A WebBackForwardList object maintains only the list data—it does not perform actual page loads (in other words, it does not make any client requests). If you need to perform a page load, see the loadRequest: method in WebFrame to find out how to do this. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webbackforwardlist?language=objc type WebBackForwardList struct { diff --git a/macos/webkit/web_data_source.gen.go b/macos/webkit/web_data_source.gen.go index abfc24e8..376541f4 100644 --- a/macos/webkit/web_data_source.gen.go +++ b/macos/webkit/web_data_source.gen.go @@ -20,7 +20,7 @@ type IWebDataSource interface { objc.IObject } -// WebDataSource encapsulates the web content to be displayed in a web frame view. A WebDataSource object has a representation object, conforming to the WebDocumentRepresentation protocol, that holds the data in an appropriate format depending on the MIME type. You can extend WebKit to support new MIME types by implementing your own view and representation classes, and specifying the mapping between them using the [webkit/webview/registerviewclass] WebView class method. [Full Topic] +// WebDataSource encapsulates the web content to be displayed in a web frame view. A WebDataSource object has a representation object, conforming to the WebDocumentRepresentation protocol, that holds the data in an appropriate format depending on the MIME type. You can extend WebKit to support new MIME types by implementing your own view and representation classes, and specifying the mapping between them using the registerViewClass:representationClass:forMIMEType: WebView class method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webdatasource?language=objc type WebDataSource struct { diff --git a/macos/webkit/web_document_representation_protocol.gen.go b/macos/webkit/web_document_representation_protocol.gen.go index d844c86f..32ff9aba 100644 --- a/macos/webkit/web_document_representation_protocol.gen.go +++ b/macos/webkit/web_document_representation_protocol.gen.go @@ -6,7 +6,7 @@ import ( "github.com/progrium/darwinkit/objc" ) -// This protocol is adopted by document representation classes that handle specific MIME types. You can implement your own document view classes and document representation classes to render data for specific MIME types, and register those classes using the WebFrame [webkit/webview/registerviewclass] method. [Full Topic] +// This protocol is adopted by document representation classes that handle specific MIME types. You can implement your own document view classes and document representation classes to render data for specific MIME types, and register those classes using the WebFrame registerViewClass:representationClass:forMIMEType: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webdocumentrepresentation?language=objc type PWebDocumentRepresentation interface { diff --git a/macos/webkit/web_document_view_protocol.gen.go b/macos/webkit/web_document_view_protocol.gen.go index e3a3b7f1..cefd53f8 100644 --- a/macos/webkit/web_document_view_protocol.gen.go +++ b/macos/webkit/web_document_view_protocol.gen.go @@ -6,7 +6,7 @@ import ( "github.com/progrium/darwinkit/objc" ) -// This protocol is adopted by the document view of a WebFrameView. You can extend WebKit to support additional MIME types by implementing your own document view and document representation classes to render data for specific MIME types. You register those classes using the WebFrame [webkit/webview/registerviewclass] method. Classes that adopt this protocol are expected to be subclasses of NSView. [Full Topic] +// This protocol is adopted by the document view of a WebFrameView. You can extend WebKit to support additional MIME types by implementing your own document view and document representation classes to render data for specific MIME types. You register those classes using the WebFrame registerViewClass:representationClass:forMIMEType: method. Classes that adopt this protocol are expected to be subclasses of NSView. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webdocumentview?language=objc type PWebDocumentView interface { diff --git a/macos/webkit/web_history.gen.go b/macos/webkit/web_history.gen.go index d8c76006..64a976d9 100644 --- a/macos/webkit/web_history.gen.go +++ b/macos/webkit/web_history.gen.go @@ -20,7 +20,7 @@ type IWebHistory interface { objc.IObject } -// WebHistory objects are used to maintain the pages visited by users. Visited pages are represented by WebHistoryItem objects. You add and remove history items using the [webkit/webhistory/additems] and [webkit/webhistory/removeitems] methods. These methods post appropriate notifications when items are added or removed so you can update the display. WebHistory organizes the WebHistoryItem objects by the day they were visited, ordered from most recent to oldest. You can request all the days that contain history items using the [webkit/webhistory/orderedlastvisiteddays] method or request the items visited on a particular day using the [webkit/webhistory/ordereditemslastvisitedonday] method. WebHistory objects can be loaded and saved by specifying a file URL (see [webkit/webhistory/loadfromurl]). [Full Topic] +// WebHistory objects are used to maintain the pages visited by users. Visited pages are represented by WebHistoryItem objects. You add and remove history items using the addItems: and removeItems: methods. These methods post appropriate notifications when items are added or removed so you can update the display. WebHistory organizes the WebHistoryItem objects by the day they were visited, ordered from most recent to oldest. You can request all the days that contain history items using the orderedLastVisitedDays method or request the items visited on a particular day using the orderedItemsLastVisitedOnDay: method. WebHistory objects can be loaded and saved by specifying a file URL (see loadFromURL:error:). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webhistory?language=objc type WebHistory struct { diff --git a/macos/webkit/web_preferences.gen.go b/macos/webkit/web_preferences.gen.go index 0d93b6d4..d13de2c1 100644 --- a/macos/webkit/web_preferences.gen.go +++ b/macos/webkit/web_preferences.gen.go @@ -20,7 +20,7 @@ type IWebPreferences interface { objc.IObject } -// WebPreferences encapsulates the preferences you can change per WebView object. These preferences include font, text encoding, and image settings. Normally a WebView object uses the standard preferences returned by the [webkit/webpreferences/standardpreferences] class method. However, you can modify the preferences for individual WebView instances too. Use the [webkit/webview/preferencesidentifier] WebView method to change a WebView object’s preferences, or to share preferences between WebView objects. Use the [webkit/webpreferences/autosaves] method to specify if the preferences object should be automatically saved to the user defaults database. [Full Topic] +// WebPreferences encapsulates the preferences you can change per WebView object. These preferences include font, text encoding, and image settings. Normally a WebView object uses the standard preferences returned by the standardPreferences class method. However, you can modify the preferences for individual WebView instances too. Use the preferencesIdentifier WebView method to change a WebView object’s preferences, or to share preferences between WebView objects. Use the autosaves method to specify if the preferences object should be automatically saved to the user defaults database. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webpreferences?language=objc type WebPreferences struct { diff --git a/macos/webkit/web_resource.gen.go b/macos/webkit/web_resource.gen.go index 922181da..1e09b381 100644 --- a/macos/webkit/web_resource.gen.go +++ b/macos/webkit/web_resource.gen.go @@ -21,8 +21,8 @@ type IWebResource interface { objc.IObject MIMEType() string FrameName() string - URL() foundation.URL Data() []byte + URL() foundation.URL TextEncodingName() string } @@ -89,14 +89,6 @@ func (w_ WebResource) FrameName() string { return rv } -// The receiver’s URL. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/webresource/1392195-url?language=objc -func (w_ WebResource) URL() foundation.URL { - rv := objc.Call[foundation.URL](w_, objc.Sel("URL")) - return rv -} - // The receiver’s data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webresource/1392191-data?language=objc @@ -105,6 +97,14 @@ func (w_ WebResource) Data() []byte { return rv } +// The receiver’s URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/webresource/1392195-url?language=objc +func (w_ WebResource) URL() foundation.URL { + rv := objc.Call[foundation.URL](w_, objc.Sel("URL")) + return rv +} + // The receiver’s text encoding name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webresource/1392189-textencodingname?language=objc diff --git a/macos/webkit/web_view.gen.go b/macos/webkit/web_view.gen.go index 38572900..9efe323e 100644 --- a/macos/webkit/web_view.gen.go +++ b/macos/webkit/web_view.gen.go @@ -21,77 +21,70 @@ type _WebViewClass struct { // An interface definition for the [WebView] class. type IWebView interface { appkit.IView - LoadDataMIMETypeCharacterEncodingNameBaseURL(data []byte, MIMEType string, characterEncodingName string, baseURL foundation.IURL) Navigation - Reload() Navigation - CreatePDFWithConfigurationCompletionHandler(pdfConfiguration IPDFConfiguration, completionHandler func(pdfDocumentData []byte, error foundation.Error)) - CreateWebArchiveDataWithCompletionHandler(completionHandler func(arg0 []byte, arg1 foundation.Error)) - TakeSnapshotWithConfigurationCompletionHandler(snapshotConfiguration ISnapshotConfiguration, completionHandler func(snapshotImage appkit.Image, error foundation.Error)) + SetMagnificationCenteredAtPoint(magnification float64, point coregraphics.Point) + GoBack(sender objc.IObject) objc.Object + PrintOperationWithPrintInfo(printInfo appkit.IPrintInfo) appkit.PrintOperation + StopLoading(sender objc.IObject) objc.Object + PauseAllMediaPlaybackWithCompletionHandler(completionHandler func()) + GoForward() Navigation GoToBackForwardListItem(item IBackForwardListItem) Navigation - ResumeDownloadFromResumeDataCompletionHandler(resumeData []byte, completionHandler func(arg0 Download)) + RequestMediaPlaybackStateWithCompletionHandler(completionHandler func(arg0 MediaPlaybackState)) + Reload(sender objc.IObject) objc.Object + TakeSnapshotWithConfigurationCompletionHandler(snapshotConfiguration ISnapshotConfiguration, completionHandler func(snapshotImage appkit.Image, error foundation.Error)) + SetMicrophoneCaptureStateCompletionHandler(state MediaCaptureState, completionHandler func()) + LoadDataMIMETypeCharacterEncodingNameBaseURL(data []byte, MIMEType string, characterEncodingName string, baseURL foundation.IURL) Navigation + CloseAllMediaPresentationsWithCompletionHandler(completionHandler func()) + ReloadFromOrigin(sender objc.IObject) objc.Object + SetAllMediaPlaybackSuspendedCompletionHandler(suspended bool, completionHandler func()) LoadSimulatedRequestResponseHTMLString(request foundation.IURLRequest, string_ string) Navigation - Reload_(sender objc.IObject) objc.Object - GoBack_(sender objc.IObject) objc.Object - StopLoading_(sender objc.IObject) objc.Object + LoadFileRequestAllowingReadAccessToURL(request foundation.IURLRequest, readAccessURL foundation.IURL) Navigation + LoadRequest(request foundation.IURLRequest) Navigation + StartDownloadUsingRequestCompletionHandler(request foundation.IURLRequest, completionHandler func(arg0 Download)) + EvaluateJavaScriptCompletionHandler(javaScriptString string, completionHandler func(arg0 objc.Object, error foundation.Error)) + ResumeDownloadFromResumeDataCompletionHandler(resumeData []byte, completionHandler func(arg0 Download)) LoadFileURLAllowingReadAccessToURL(URL foundation.IURL, readAccessURL foundation.IURL) Navigation LoadHTMLStringBaseURL(string_ string, baseURL foundation.IURL) Navigation - GoBack() Navigation - EvaluateJavaScriptCompletionHandler(javaScriptString string, completionHandler func(arg0 objc.Object, error foundation.Error)) - PauseAllMediaPlaybackWithCompletionHandler(completionHandler func()) - SetMagnificationCenteredAtPoint(magnification float64, point coregraphics.Point) + SetCameraCaptureStateCompletionHandler(state MediaCaptureState, completionHandler func()) + CreatePDFWithConfigurationCompletionHandler(pdfConfiguration IPDFConfiguration, completionHandler func(pdfDocumentData []byte, error foundation.Error)) + CreateWebArchiveDataWithCompletionHandler(completionHandler func(arg0 []byte, arg1 foundation.Error)) FindStringWithConfigurationCompletionHandler(string_ string, configuration IFindConfiguration, completionHandler func(result FindResult)) - ReloadFromOrigin() Navigation - RequestMediaPlaybackStateWithCompletionHandler(completionHandler func(arg0 MediaPlaybackState)) - StopLoading() - LoadFileRequestAllowingReadAccessToURL(request foundation.IURLRequest, readAccessURL foundation.IURL) Navigation - ReloadFromOrigin_(sender objc.IObject) objc.Object - GoForward_(sender objc.IObject) objc.Object CallAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler(functionBody string, arguments map[string]objc.IObject, frame IFrameInfo, contentWorld IContentWorld, completionHandler func(arg0 objc.Object, error foundation.Error)) - PrintOperationWithPrintInfo(printInfo appkit.IPrintInfo) appkit.PrintOperation - SetCameraCaptureStateCompletionHandler(state MediaCaptureState, completionHandler func()) - LoadRequest(request foundation.IURLRequest) Navigation - SetMicrophoneCaptureStateCompletionHandler(state MediaCaptureState, completionHandler func()) - LoadSimulatedRequestResponseResponseData(request foundation.IURLRequest, response foundation.IURLResponse, data []byte) Navigation - GoForward() Navigation - EvaluateJavaScriptInFrameInContentWorldCompletionHandler(javaScriptString string, frame IFrameInfo, contentWorld IContentWorld, completionHandler func(arg0 objc.Object, error foundation.Error)) - StartDownloadUsingRequestCompletionHandler(request foundation.IURLRequest, completionHandler func(arg0 Download)) - CloseAllMediaPresentationsWithCompletionHandler(completionHandler func()) - SetAllMediaPlaybackSuspendedCompletionHandler(suspended bool, completionHandler func()) + AllowsMagnification() bool + SetAllowsMagnification(value bool) + EstimatedProgress() float64 IsLoading() bool - BackForwardList() BackForwardList - CanGoForward() bool AllowsBackForwardNavigationGestures() bool SetAllowsBackForwardNavigationGestures(value bool) - URL() foundation.URL - EstimatedProgress() float64 - MicrophoneCaptureState() MediaCaptureState - PageZoom() float64 - SetPageZoom(value float64) + HasOnlySecureContent() bool + CanGoBack() bool CustomUserAgent() string SetCustomUserAgent(value string) - CameraCaptureState() MediaCaptureState - UIDelegate() UIDelegateObject - SetUIDelegate(value PUIDelegate) - SetUIDelegateObject(valueObject objc.IObject) - AllowsMagnification() bool - SetAllowsMagnification(value bool) - UnderPageBackgroundColor() appkit.Color - SetUnderPageBackgroundColor(value appkit.IColor) MediaType() string SetMediaType(value string) ThemeColor() appkit.Color + Magnification() float64 + SetMagnification(value float64) + CanGoForward() bool + UIDelegate() UIDelegateObject + SetUIDelegate(value PUIDelegate) + SetUIDelegateObject(valueObject objc.IObject) + PageZoom() float64 + SetPageZoom(value float64) + URL() foundation.URL Configuration() WebViewConfiguration - Title() string - HasOnlySecureContent() bool + BackForwardList() BackForwardList + MicrophoneCaptureState() MediaCaptureState NavigationDelegate() NavigationDelegateObject SetNavigationDelegate(value PNavigationDelegate) SetNavigationDelegateObject(valueObject objc.IObject) - Magnification() float64 - SetMagnification(value float64) - InteractionState() objc.Object - SetInteractionState(value objc.IObject) + Title() string + CameraCaptureState() MediaCaptureState + UnderPageBackgroundColor() appkit.Color + SetUnderPageBackgroundColor(value appkit.IColor) AllowsLinkPreview() bool SetAllowsLinkPreview(value bool) - CanGoBack() bool + InteractionState() objc.Object + SetInteractionState(value objc.IObject) } // An object that displays interactive web content, such as for an in-app browser. [Full Topic] @@ -155,41 +148,50 @@ func NewWebViewWithFrame(frameRect foundation.Rect) WebView { return instance } -// Loads the content of the specified data object and navigates to it. [Full Topic] +// Scales the page content and centers the result on the specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415011-loaddata?language=objc -func (w_ WebView) LoadDataMIMETypeCharacterEncodingNameBaseURL(data []byte, MIMEType string, characterEncodingName string, baseURL foundation.IURL) Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("loadData:MIMEType:characterEncodingName:baseURL:"), data, MIMEType, characterEncodingName, baseURL) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414996-setmagnification?language=objc +func (w_ WebView) SetMagnificationCenteredAtPoint(magnification float64, point coregraphics.Point) { + objc.Call[objc.Void](w_, objc.Sel("setMagnification:centeredAtPoint:"), magnification, point) +} + +// Navigates to the back item in the back-forward list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414975-goback?language=objc +func (w_ WebView) GoBack(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("goBack:"), sender) return rv } -// Reloads the current webpage. [Full Topic] +// Returns the print operation object to use when printing the contents of the web view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414969-reload?language=objc -func (w_ WebView) Reload() Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("reload")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516861-printoperationwithprintinfo?language=objc +func (w_ WebView) PrintOperationWithPrintInfo(printInfo appkit.IPrintInfo) appkit.PrintOperation { + rv := objc.Call[appkit.PrintOperation](w_, objc.Sel("printOperationWithPrintInfo:"), printInfo) return rv } -// Generates PDF data from the web view’s contents asynchronously. [Full Topic] +// Stops loading all resources on the current page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516407-createpdfwithconfiguration?language=objc -func (w_ WebView) CreatePDFWithConfigurationCompletionHandler(pdfConfiguration IPDFConfiguration, completionHandler func(pdfDocumentData []byte, error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("createPDFWithConfiguration:completionHandler:"), pdfConfiguration, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415013-stoploading?language=objc +func (w_ WebView) StopLoading(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("stopLoading:"), sender) + return rv } -// Creates a web archive of the web view’s contents asynchronously. [Full Topic] +// Pauses playback of all media in the web view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516408-createwebarchivedatawithcompleti?language=objc -func (w_ WebView) CreateWebArchiveDataWithCompletionHandler(completionHandler func(arg0 []byte, arg1 foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("createWebArchiveDataWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752240-pauseallmediaplaybackwithcomplet?language=objc +func (w_ WebView) PauseAllMediaPlaybackWithCompletionHandler(completionHandler func()) { + objc.Call[objc.Void](w_, objc.Sel("pauseAllMediaPlaybackWithCompletionHandler:"), completionHandler) } -// Generates a platform-native image from the web view’s contents asynchronously. [Full Topic] +// Navigates to the forward item in the back-forward list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/2873260-takesnapshotwithconfiguration?language=objc -func (w_ WebView) TakeSnapshotWithConfigurationCompletionHandler(snapshotConfiguration ISnapshotConfiguration, completionHandler func(snapshotImage appkit.Image, error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("takeSnapshotWithConfiguration:completionHandler:"), snapshotConfiguration, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414993-goforward?language=objc +func (w_ WebView) GoForward() Navigation { + rv := objc.Call[Navigation](w_, objc.Sel("goForward")) + return rv } // Navigates to an item from the back-forward list and sets it as the current item. [Full Topic] @@ -200,117 +202,86 @@ func (w_ WebView) GoToBackForwardListItem(item IBackForwardListItem) Navigation return rv } -// Resumes a failed or canceled download. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3727367-resumedownloadfromresumedata?language=objc -func (w_ WebView) ResumeDownloadFromResumeDataCompletionHandler(resumeData []byte, completionHandler func(arg0 Download)) { - objc.Call[objc.Void](w_, objc.Sel("resumeDownloadFromResumeData:completionHandler:"), resumeData, completionHandler) -} - -// Loads the web content from the HTML you provide as if the HTML were the response to the request. [Full Topic] +// Requests the playback status of media in the web view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3763095-loadsimulatedrequest?language=objc -func (w_ WebView) LoadSimulatedRequestResponseHTMLString(request foundation.IURLRequest, string_ string) Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("loadSimulatedRequest:responseHTMLString:"), request, string_) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752241-requestmediaplaybackstatewithcom?language=objc +func (w_ WebView) RequestMediaPlaybackStateWithCompletionHandler(completionHandler func(arg0 MediaPlaybackState)) { + objc.Call[objc.Void](w_, objc.Sel("requestMediaPlaybackStateWithCompletionHandler:"), completionHandler) } -// Reloads the current webpage. [Full Topic] +// Returns a Boolean value that indicates whether WebKit natively supports resources with the specified URL scheme. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414987-reload?language=objc -func (w_ WebView) Reload_(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("reload:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/2875370-handlesurlscheme?language=objc +func (wc _WebViewClass) HandlesURLScheme(urlScheme string) bool { + rv := objc.Call[bool](wc, objc.Sel("handlesURLScheme:"), urlScheme) return rv } -// Navigates to the back item in the back-forward list. [Full Topic] +// Returns a Boolean value that indicates whether WebKit natively supports resources with the specified URL scheme. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414975-goback?language=objc -func (w_ WebView) GoBack_(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("goBack:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/2875370-handlesurlscheme?language=objc +func WebView_HandlesURLScheme(urlScheme string) bool { + return WebViewClass.HandlesURLScheme(urlScheme) } -// Stops loading all resources on the current page. [Full Topic] +// Reloads the current webpage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415013-stoploading?language=objc -func (w_ WebView) StopLoading_(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("stopLoading:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414987-reload?language=objc +func (w_ WebView) Reload(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("reload:"), sender) return rv } -// Loads the web content from the specified file and navigates to it. [Full Topic] +// Generates a platform-native image from the web view’s contents asynchronously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414973-loadfileurl?language=objc -func (w_ WebView) LoadFileURLAllowingReadAccessToURL(URL foundation.IURL, readAccessURL foundation.IURL) Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("loadFileURL:allowingReadAccessToURL:"), URL, readAccessURL) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/2873260-takesnapshotwithconfiguration?language=objc +func (w_ WebView) TakeSnapshotWithConfigurationCompletionHandler(snapshotConfiguration ISnapshotConfiguration, completionHandler func(snapshotImage appkit.Image, error foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("takeSnapshotWithConfiguration:completionHandler:"), snapshotConfiguration, completionHandler) } -// Loads the contents of the specified HTML string and navigates to it. [Full Topic] +// Changes whether the webpage is using the microphone to capture audio. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415004-loadhtmlstring?language=objc -func (w_ WebView) LoadHTMLStringBaseURL(string_ string, baseURL foundation.IURL) Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("loadHTMLString:baseURL:"), string_, baseURL) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3763098-setmicrophonecapturestate?language=objc +func (w_ WebView) SetMicrophoneCaptureStateCompletionHandler(state MediaCaptureState, completionHandler func()) { + objc.Call[objc.Void](w_, objc.Sel("setMicrophoneCaptureState:completionHandler:"), state, completionHandler) } -// Navigates to the back item in the back-forward list. [Full Topic] +// Loads the content of the specified data object and navigates to it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414952-goback?language=objc -func (w_ WebView) GoBack() Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("goBack")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415011-loaddata?language=objc +func (w_ WebView) LoadDataMIMETypeCharacterEncodingNameBaseURL(data []byte, MIMEType string, characterEncodingName string, baseURL foundation.IURL) Navigation { + rv := objc.Call[Navigation](w_, objc.Sel("loadData:MIMEType:characterEncodingName:baseURL:"), data, MIMEType, characterEncodingName, baseURL) return rv } -// Evaluates the specified JavaScript string. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415017-evaluatejavascript?language=objc -func (w_ WebView) EvaluateJavaScriptCompletionHandler(javaScriptString string, completionHandler func(arg0 objc.Object, error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("evaluateJavaScript:completionHandler:"), javaScriptString, completionHandler) -} - -// Pauses playback of all media in the web view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752240-pauseallmediaplaybackwithcomplet?language=objc -func (w_ WebView) PauseAllMediaPlaybackWithCompletionHandler(completionHandler func()) { - objc.Call[objc.Void](w_, objc.Sel("pauseAllMediaPlaybackWithCompletionHandler:"), completionHandler) -} - -// Scales the page content and centers the result on the specified point. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414996-setmagnification?language=objc -func (w_ WebView) SetMagnificationCenteredAtPoint(magnification float64, point coregraphics.Point) { - objc.Call[objc.Void](w_, objc.Sel("setMagnification:centeredAtPoint:"), magnification, point) -} - -// Searches for the specified string in the web view’s content. [Full Topic] +// Closes all media the web view is presenting, including picture-in-picture video and fullscreen video. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516409-findstring?language=objc -func (w_ WebView) FindStringWithConfigurationCompletionHandler(string_ string, configuration IFindConfiguration, completionHandler func(result FindResult)) { - objc.Call[objc.Void](w_, objc.Sel("findString:withConfiguration:completionHandler:"), string_, configuration, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752235-closeallmediapresentationswithco?language=objc +func (w_ WebView) CloseAllMediaPresentationsWithCompletionHandler(completionHandler func()) { + objc.Call[objc.Void](w_, objc.Sel("closeAllMediaPresentationsWithCompletionHandler:"), completionHandler) } // Reloads the current webpage, and performs end-to-end revalidation of the content using cache-validating conditionals, if possible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414956-reloadfromorigin?language=objc -func (w_ WebView) ReloadFromOrigin() Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("reloadFromOrigin")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414989-reloadfromorigin?language=objc +func (w_ WebView) ReloadFromOrigin(sender objc.IObject) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("reloadFromOrigin:"), sender) return rv } -// Requests the playback status of media in the web view. [Full Topic] +// Changes whether the webpage is suspending playback of all media in the page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752241-requestmediaplaybackstatewithcom?language=objc -func (w_ WebView) RequestMediaPlaybackStateWithCompletionHandler(completionHandler func(arg0 MediaPlaybackState)) { - objc.Call[objc.Void](w_, objc.Sel("requestMediaPlaybackStateWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752242-setallmediaplaybacksuspended?language=objc +func (w_ WebView) SetAllMediaPlaybackSuspendedCompletionHandler(suspended bool, completionHandler func()) { + objc.Call[objc.Void](w_, objc.Sel("setAllMediaPlaybackSuspended:completionHandler:"), suspended, completionHandler) } -// Stops loading all resources on the current page. [Full Topic] +// Loads the web content from the HTML you provide as if the HTML were the response to the request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414981-stoploading?language=objc -func (w_ WebView) StopLoading() { - objc.Call[objc.Void](w_, objc.Sel("stopLoading")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3763095-loadsimulatedrequest?language=objc +func (w_ WebView) LoadSimulatedRequestResponseHTMLString(request foundation.IURLRequest, string_ string) Navigation { + rv := objc.Call[Navigation](w_, objc.Sel("loadSimulatedRequest:responseHTMLString:"), request, string_) + return rv } // Loads the web content from the file the URL request object specifies and navigates to that content. [Full Topic] @@ -321,50 +292,49 @@ func (w_ WebView) LoadFileRequestAllowingReadAccessToURL(request foundation.IURL return rv } -// Reloads the current webpage, and performs end-to-end revalidation of the content using cache-validating conditionals, if possible. [Full Topic] +// Loads the web content that the specified URL request object references and navigates to that content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414989-reloadfromorigin?language=objc -func (w_ WebView) ReloadFromOrigin_(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("reloadFromOrigin:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414954-loadrequest?language=objc +func (w_ WebView) LoadRequest(request foundation.IURLRequest) Navigation { + rv := objc.Call[Navigation](w_, objc.Sel("loadRequest:"), request) return rv } -// Navigates to the forward item in the back-forward list. [Full Topic] +// Starts to download the resource at the URL in the request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414960-goforward?language=objc -func (w_ WebView) GoForward_(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("goForward:"), sender) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3727368-startdownloadusingrequest?language=objc +func (w_ WebView) StartDownloadUsingRequestCompletionHandler(request foundation.IURLRequest, completionHandler func(arg0 Download)) { + objc.Call[objc.Void](w_, objc.Sel("startDownloadUsingRequest:completionHandler:"), request, completionHandler) } -// Executes the specified string as an asynchronous JavaScript function. [Full Topic] +// Evaluates the specified JavaScript string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3656355-callasyncjavascript?language=objc -func (w_ WebView) CallAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler(functionBody string, arguments map[string]objc.IObject, frame IFrameInfo, contentWorld IContentWorld, completionHandler func(arg0 objc.Object, error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("callAsyncJavaScript:arguments:inFrame:inContentWorld:completionHandler:"), functionBody, arguments, frame, contentWorld, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415017-evaluatejavascript?language=objc +func (w_ WebView) EvaluateJavaScriptCompletionHandler(javaScriptString string, completionHandler func(arg0 objc.Object, error foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("evaluateJavaScript:completionHandler:"), javaScriptString, completionHandler) } -// Returns the print operation object to use when printing the contents of the web view. [Full Topic] +// Resumes a failed or canceled download. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516861-printoperationwithprintinfo?language=objc -func (w_ WebView) PrintOperationWithPrintInfo(printInfo appkit.IPrintInfo) appkit.PrintOperation { - rv := objc.Call[appkit.PrintOperation](w_, objc.Sel("printOperationWithPrintInfo:"), printInfo) - return rv +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3727367-resumedownloadfromresumedata?language=objc +func (w_ WebView) ResumeDownloadFromResumeDataCompletionHandler(resumeData []byte, completionHandler func(arg0 Download)) { + objc.Call[objc.Void](w_, objc.Sel("resumeDownloadFromResumeData:completionHandler:"), resumeData, completionHandler) } -// Returns a Boolean value that indicates whether WebKit natively supports resources with the specified URL scheme. [Full Topic] +// Loads the web content from the specified file and navigates to it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/2875370-handlesurlscheme?language=objc -func (wc _WebViewClass) HandlesURLScheme(urlScheme string) bool { - rv := objc.Call[bool](wc, objc.Sel("handlesURLScheme:"), urlScheme) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414973-loadfileurl?language=objc +func (w_ WebView) LoadFileURLAllowingReadAccessToURL(URL foundation.IURL, readAccessURL foundation.IURL) Navigation { + rv := objc.Call[Navigation](w_, objc.Sel("loadFileURL:allowingReadAccessToURL:"), URL, readAccessURL) return rv } -// Returns a Boolean value that indicates whether WebKit natively supports resources with the specified URL scheme. [Full Topic] +// Loads the contents of the specified HTML string and navigates to it. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/2875370-handlesurlscheme?language=objc -func WebView_HandlesURLScheme(urlScheme string) bool { - return WebViewClass.HandlesURLScheme(urlScheme) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415004-loadhtmlstring?language=objc +func (w_ WebView) LoadHTMLStringBaseURL(string_ string, baseURL foundation.IURL) Navigation { + rv := objc.Call[Navigation](w_, objc.Sel("loadHTMLString:baseURL:"), string_, baseURL) + return rv } // Changes whether the webpage is using the camera to capture images or video. [Full Topic] @@ -374,86 +344,62 @@ func (w_ WebView) SetCameraCaptureStateCompletionHandler(state MediaCaptureState objc.Call[objc.Void](w_, objc.Sel("setCameraCaptureState:completionHandler:"), state, completionHandler) } -// Loads the web content that the specified URL request object references and navigates to that content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414954-loadrequest?language=objc -func (w_ WebView) LoadRequest(request foundation.IURLRequest) Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("loadRequest:"), request) - return rv -} - -// Changes whether the webpage is using the microphone to capture audio. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3763098-setmicrophonecapturestate?language=objc -func (w_ WebView) SetMicrophoneCaptureStateCompletionHandler(state MediaCaptureState, completionHandler func()) { - objc.Call[objc.Void](w_, objc.Sel("setMicrophoneCaptureState:completionHandler:"), state, completionHandler) -} - -// Loads the web content from the data you provide as if the data were the response to the request. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3763094-loadsimulatedrequest?language=objc -func (w_ WebView) LoadSimulatedRequestResponseResponseData(request foundation.IURLRequest, response foundation.IURLResponse, data []byte) Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("loadSimulatedRequest:response:responseData:"), request, response, data) - return rv -} - -// Navigates to the forward item in the back-forward list. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414993-goforward?language=objc -func (w_ WebView) GoForward() Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("goForward")) - return rv -} - -// Evaluates the specified JavaScript string in the specified frame and content world. [Full Topic] +// Generates PDF data from the web view’s contents asynchronously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3656356-evaluatejavascript?language=objc -func (w_ WebView) EvaluateJavaScriptInFrameInContentWorldCompletionHandler(javaScriptString string, frame IFrameInfo, contentWorld IContentWorld, completionHandler func(arg0 objc.Object, error foundation.Error)) { - objc.Call[objc.Void](w_, objc.Sel("evaluateJavaScript:inFrame:inContentWorld:completionHandler:"), javaScriptString, frame, contentWorld, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516407-createpdfwithconfiguration?language=objc +func (w_ WebView) CreatePDFWithConfigurationCompletionHandler(pdfConfiguration IPDFConfiguration, completionHandler func(pdfDocumentData []byte, error foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("createPDFWithConfiguration:completionHandler:"), pdfConfiguration, completionHandler) } -// Starts to download the resource at the URL in the request. [Full Topic] +// Creates a web archive of the web view’s contents asynchronously. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3727368-startdownloadusingrequest?language=objc -func (w_ WebView) StartDownloadUsingRequestCompletionHandler(request foundation.IURLRequest, completionHandler func(arg0 Download)) { - objc.Call[objc.Void](w_, objc.Sel("startDownloadUsingRequest:completionHandler:"), request, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516408-createwebarchivedatawithcompleti?language=objc +func (w_ WebView) CreateWebArchiveDataWithCompletionHandler(completionHandler func(arg0 []byte, arg1 foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("createWebArchiveDataWithCompletionHandler:"), completionHandler) } -// Closes all media the web view is presenting, including picture-in-picture video and fullscreen video. [Full Topic] +// Searches for the specified string in the web view’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752235-closeallmediapresentationswithco?language=objc -func (w_ WebView) CloseAllMediaPresentationsWithCompletionHandler(completionHandler func()) { - objc.Call[objc.Void](w_, objc.Sel("closeAllMediaPresentationsWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516409-findstring?language=objc +func (w_ WebView) FindStringWithConfigurationCompletionHandler(string_ string, configuration IFindConfiguration, completionHandler func(result FindResult)) { + objc.Call[objc.Void](w_, objc.Sel("findString:withConfiguration:completionHandler:"), string_, configuration, completionHandler) } -// Changes whether the webpage is suspending playback of all media in the page. [Full Topic] +// Executes the specified string as an asynchronous JavaScript function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752242-setallmediaplaybacksuspended?language=objc -func (w_ WebView) SetAllMediaPlaybackSuspendedCompletionHandler(suspended bool, completionHandler func()) { - objc.Call[objc.Void](w_, objc.Sel("setAllMediaPlaybackSuspended:completionHandler:"), suspended, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3656355-callasyncjavascript?language=objc +func (w_ WebView) CallAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler(functionBody string, arguments map[string]objc.IObject, frame IFrameInfo, contentWorld IContentWorld, completionHandler func(arg0 objc.Object, error foundation.Error)) { + objc.Call[objc.Void](w_, objc.Sel("callAsyncJavaScript:arguments:inFrame:inContentWorld:completionHandler:"), functionBody, arguments, frame, contentWorld, completionHandler) } -// A Boolean value that indicates whether the view is currently loading content. [Full Topic] +// A Boolean value that indicates whether magnify gestures change the web view’s magnification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414964-loading?language=objc -func (w_ WebView) IsLoading() bool { - rv := objc.Call[bool](w_, objc.Sel("isLoading")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414983-allowsmagnification?language=objc +func (w_ WebView) AllowsMagnification() bool { + rv := objc.Call[bool](w_, objc.Sel("allowsMagnification")) return rv } -// The web view's back-forward list. [Full Topic] +// A Boolean value that indicates whether magnify gestures change the web view’s magnification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414977-backforwardlist?language=objc -func (w_ WebView) BackForwardList() BackForwardList { - rv := objc.Call[BackForwardList](w_, objc.Sel("backForwardList")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414983-allowsmagnification?language=objc +func (w_ WebView) SetAllowsMagnification(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAllowsMagnification:"), value) +} + +// An estimate of what fraction of the current navigation has been loaded. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415007-estimatedprogress?language=objc +func (w_ WebView) EstimatedProgress() float64 { + rv := objc.Call[float64](w_, objc.Sel("estimatedProgress")) return rv } -// A Boolean value that indicates whether there is a valid forward item in the back-forward list. [Full Topic] +// A Boolean value that indicates whether the view is currently loading content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward?language=objc -func (w_ WebView) CanGoForward() bool { - rv := objc.Call[bool](w_, objc.Sel("canGoForward")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414964-loading?language=objc +func (w_ WebView) IsLoading() bool { + rv := objc.Call[bool](w_, objc.Sel("isLoading")) return rv } @@ -472,65 +418,80 @@ func (w_ WebView) SetAllowsBackForwardNavigationGestures(value bool) { objc.Call[objc.Void](w_, objc.Sel("setAllowsBackForwardNavigationGestures:"), value) } -// The URL for the current webpage. [Full Topic] +// A Boolean value that indicates whether the web view loaded all resources on the page through securely encrypted connections. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415005-url?language=objc -func (w_ WebView) URL() foundation.URL { - rv := objc.Call[foundation.URL](w_, objc.Sel("URL")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415002-hasonlysecurecontent?language=objc +func (w_ WebView) HasOnlySecureContent() bool { + rv := objc.Call[bool](w_, objc.Sel("hasOnlySecureContent")) return rv } -// An estimate of what fraction of the current navigation has been loaded. [Full Topic] +// A Boolean value that indicates whether there is a valid back item in the back-forward list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415007-estimatedprogress?language=objc -func (w_ WebView) EstimatedProgress() float64 { - rv := objc.Call[float64](w_, objc.Sel("estimatedProgress")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414966-cangoback?language=objc +func (w_ WebView) CanGoBack() bool { + rv := objc.Call[bool](w_, objc.Sel("canGoBack")) return rv } -// An enumeration case that indicates whether the webpage is using the microphone to capture audio. [Full Topic] +// The custom user agent string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3763096-microphonecapturestate?language=objc -func (w_ WebView) MicrophoneCaptureState() MediaCaptureState { - rv := objc.Call[MediaCaptureState](w_, objc.Sel("microphoneCaptureState")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414950-customuseragent?language=objc +func (w_ WebView) CustomUserAgent() string { + rv := objc.Call[string](w_, objc.Sel("customUserAgent")) return rv } -// The scale factor by which the web view scales content relative to its bounds. [Full Topic] +// The custom user agent string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516411-pagezoom?language=objc -func (w_ WebView) PageZoom() float64 { - rv := objc.Call[float64](w_, objc.Sel("pageZoom")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414950-customuseragent?language=objc +func (w_ WebView) SetCustomUserAgent(value string) { + objc.Call[objc.Void](w_, objc.Sel("setCustomUserAgent:"), value) +} + +// The media type for the contents of the web view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516410-mediatype?language=objc +func (w_ WebView) MediaType() string { + rv := objc.Call[string](w_, objc.Sel("mediaType")) return rv } -// The scale factor by which the web view scales content relative to its bounds. [Full Topic] +// The media type for the contents of the web view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516411-pagezoom?language=objc -func (w_ WebView) SetPageZoom(value float64) { - objc.Call[objc.Void](w_, objc.Sel("setPageZoom:"), value) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516410-mediatype?language=objc +func (w_ WebView) SetMediaType(value string) { + objc.Call[objc.Void](w_, objc.Sel("setMediaType:"), value) } -// The custom user agent string. [Full Topic] +// The theme color that the system gets from the first valid meta tag in the webpage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414950-customuseragent?language=objc -func (w_ WebView) CustomUserAgent() string { - rv := objc.Call[string](w_, objc.Sel("customUserAgent")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3794258-themecolor?language=objc +func (w_ WebView) ThemeColor() appkit.Color { + rv := objc.Call[appkit.Color](w_, objc.Sel("themeColor")) return rv } -// The custom user agent string. [Full Topic] +// The factor by which the page content is currently scaled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414950-customuseragent?language=objc -func (w_ WebView) SetCustomUserAgent(value string) { - objc.Call[objc.Void](w_, objc.Sel("setCustomUserAgent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414985-magnification?language=objc +func (w_ WebView) Magnification() float64 { + rv := objc.Call[float64](w_, objc.Sel("magnification")) + return rv } -// An enumeration case that indicates whether the webpage is using the camera to capture images or video. [Full Topic] +// The factor by which the page content is currently scaled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3763093-cameracapturestate?language=objc -func (w_ WebView) CameraCaptureState() MediaCaptureState { - rv := objc.Call[MediaCaptureState](w_, objc.Sel("cameraCaptureState")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414985-magnification?language=objc +func (w_ WebView) SetMagnification(value float64) { + objc.Call[objc.Void](w_, objc.Sel("setMagnification:"), value) +} + +// A Boolean value that indicates whether there is a valid forward item in the back-forward list. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward?language=objc +func (w_ WebView) CanGoForward() bool { + rv := objc.Call[bool](w_, objc.Sel("canGoForward")) return rv } @@ -558,56 +519,26 @@ func (w_ WebView) SetUIDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](w_, objc.Sel("setUIDelegate:"), valueObject) } -// A Boolean value that indicates whether magnify gestures change the web view’s magnification. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414983-allowsmagnification?language=objc -func (w_ WebView) AllowsMagnification() bool { - rv := objc.Call[bool](w_, objc.Sel("allowsMagnification")) - return rv -} - -// A Boolean value that indicates whether magnify gestures change the web view’s magnification. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414983-allowsmagnification?language=objc -func (w_ WebView) SetAllowsMagnification(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setAllowsMagnification:"), value) -} - -// The color the web view displays behind the active page, visible when the user scrolls beyond the bounds of the page. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3850574-underpagebackgroundcolor?language=objc -func (w_ WebView) UnderPageBackgroundColor() appkit.Color { - rv := objc.Call[appkit.Color](w_, objc.Sel("underPageBackgroundColor")) - return rv -} - -// The color the web view displays behind the active page, visible when the user scrolls beyond the bounds of the page. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3850574-underpagebackgroundcolor?language=objc -func (w_ WebView) SetUnderPageBackgroundColor(value appkit.IColor) { - objc.Call[objc.Void](w_, objc.Sel("setUnderPageBackgroundColor:"), value) -} - -// The media type for the contents of the web view. [Full Topic] +// The scale factor by which the web view scales content relative to its bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516410-mediatype?language=objc -func (w_ WebView) MediaType() string { - rv := objc.Call[string](w_, objc.Sel("mediaType")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516411-pagezoom?language=objc +func (w_ WebView) PageZoom() float64 { + rv := objc.Call[float64](w_, objc.Sel("pageZoom")) return rv } -// The media type for the contents of the web view. [Full Topic] +// The scale factor by which the web view scales content relative to its bounds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516410-mediatype?language=objc -func (w_ WebView) SetMediaType(value string) { - objc.Call[objc.Void](w_, objc.Sel("setMediaType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3516411-pagezoom?language=objc +func (w_ WebView) SetPageZoom(value float64) { + objc.Call[objc.Void](w_, objc.Sel("setPageZoom:"), value) } -// The theme color that the system gets from the first valid meta tag in the webpage. [Full Topic] +// The URL for the current webpage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3794258-themecolor?language=objc -func (w_ WebView) ThemeColor() appkit.Color { - rv := objc.Call[appkit.Color](w_, objc.Sel("themeColor")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415005-url?language=objc +func (w_ WebView) URL() foundation.URL { + rv := objc.Call[foundation.URL](w_, objc.Sel("URL")) return rv } @@ -619,19 +550,19 @@ func (w_ WebView) Configuration() WebViewConfiguration { return rv } -// The page title. [Full Topic] +// The web view's back-forward list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415015-title?language=objc -func (w_ WebView) Title() string { - rv := objc.Call[string](w_, objc.Sel("title")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414977-backforwardlist?language=objc +func (w_ WebView) BackForwardList() BackForwardList { + rv := objc.Call[BackForwardList](w_, objc.Sel("backForwardList")) return rv } -// A Boolean value that indicates whether the web view loaded all resources on the page through securely encrypted connections. [Full Topic] +// An enumeration case that indicates whether the webpage is using the microphone to capture audio. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415002-hasonlysecurecontent?language=objc -func (w_ WebView) HasOnlySecureContent() bool { - rv := objc.Call[bool](w_, objc.Sel("hasOnlySecureContent")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3763096-microphonecapturestate?language=objc +func (w_ WebView) MicrophoneCaptureState() MediaCaptureState { + rv := objc.Call[MediaCaptureState](w_, objc.Sel("microphoneCaptureState")) return rv } @@ -659,34 +590,35 @@ func (w_ WebView) SetNavigationDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](w_, objc.Sel("setNavigationDelegate:"), valueObject) } -// The factor by which the page content is currently scaled. [Full Topic] +// The page title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414985-magnification?language=objc -func (w_ WebView) Magnification() float64 { - rv := objc.Call[float64](w_, objc.Sel("magnification")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415015-title?language=objc +func (w_ WebView) Title() string { + rv := objc.Call[string](w_, objc.Sel("title")) return rv } -// The factor by which the page content is currently scaled. [Full Topic] +// An enumeration case that indicates whether the webpage is using the camera to capture images or video. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414985-magnification?language=objc -func (w_ WebView) SetMagnification(value float64) { - objc.Call[objc.Void](w_, objc.Sel("setMagnification:"), value) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3763093-cameracapturestate?language=objc +func (w_ WebView) CameraCaptureState() MediaCaptureState { + rv := objc.Call[MediaCaptureState](w_, objc.Sel("cameraCaptureState")) + return rv } -// An object you use to capture the current state of interaction in a web view so that you can restore that state later to another web view. [Full Topic] +// The color the web view displays behind the active page, visible when the user scrolls beyond the bounds of the page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752236-interactionstate?language=objc -func (w_ WebView) InteractionState() objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("interactionState")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3850574-underpagebackgroundcolor?language=objc +func (w_ WebView) UnderPageBackgroundColor() appkit.Color { + rv := objc.Call[appkit.Color](w_, objc.Sel("underPageBackgroundColor")) return rv } -// An object you use to capture the current state of interaction in a web view so that you can restore that state later to another web view. [Full Topic] +// The color the web view displays behind the active page, visible when the user scrolls beyond the bounds of the page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752236-interactionstate?language=objc -func (w_ WebView) SetInteractionState(value objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("setInteractionState:"), value) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3850574-underpagebackgroundcolor?language=objc +func (w_ WebView) SetUnderPageBackgroundColor(value appkit.IColor) { + objc.Call[objc.Void](w_, objc.Sel("setUnderPageBackgroundColor:"), value) } // A Boolean value that determines whether pressing a link displays a preview of the destination for the link. [Full Topic] @@ -704,10 +636,17 @@ func (w_ WebView) SetAllowsLinkPreview(value bool) { objc.Call[objc.Void](w_, objc.Sel("setAllowsLinkPreview:"), value) } -// A Boolean value that indicates whether there is a valid back item in the back-forward list. [Full Topic] +// An object you use to capture the current state of interaction in a web view so that you can restore that state later to another web view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414966-cangoback?language=objc -func (w_ WebView) CanGoBack() bool { - rv := objc.Call[bool](w_, objc.Sel("canGoBack")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752236-interactionstate?language=objc +func (w_ WebView) InteractionState() objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("interactionState")) return rv } + +// An object you use to capture the current state of interaction in a web view so that you can restore that state later to another web view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752236-interactionstate?language=objc +func (w_ WebView) SetInteractionState(value objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("setInteractionState:"), value) +} diff --git a/macos/webkit/web_view_configuration.gen.go b/macos/webkit/web_view_configuration.gen.go index 17195184..a3082346 100644 --- a/macos/webkit/web_view_configuration.gen.go +++ b/macos/webkit/web_view_configuration.gen.go @@ -18,33 +18,33 @@ type _WebViewConfigurationClass struct { // An interface definition for the [WebViewConfiguration] class. type IWebViewConfiguration interface { objc.IObject + UrlSchemeHandlerForURLScheme(urlScheme string) URLSchemeHandlerObject SetURLSchemeHandlerForURLScheme(urlSchemeHandler PURLSchemeHandler, urlScheme string) SetURLSchemeHandlerObjectForURLScheme(urlSchemeHandlerObject objc.IObject, urlScheme string) - UrlSchemeHandlerForURLScheme(urlScheme string) URLSchemeHandlerObject + LimitsNavigationsToAppBoundDomains() bool + SetLimitsNavigationsToAppBoundDomains(value bool) + UpgradeKnownHostsToHTTPS() bool + SetUpgradeKnownHostsToHTTPS(value bool) UserContentController() UserContentController SetUserContentController(value IUserContentController) DefaultWebpagePreferences() WebpagePreferences SetDefaultWebpagePreferences(value IWebpagePreferences) + WebsiteDataStore() WebsiteDataStore + SetWebsiteDataStore(value IWebsiteDataStore) MediaTypesRequiringUserActionForPlayback() AudiovisualMediaTypes SetMediaTypesRequiringUserActionForPlayback(value AudiovisualMediaTypes) + UserInterfaceDirectionPolicy() UserInterfaceDirectionPolicy + SetUserInterfaceDirectionPolicy(value UserInterfaceDirectionPolicy) SuppressesIncrementalRendering() bool SetSuppressesIncrementalRendering(value bool) - UpgradeKnownHostsToHTTPS() bool - SetUpgradeKnownHostsToHTTPS(value bool) ProcessPool() ProcessPool SetProcessPool(value IProcessPool) - Preferences() Preferences - SetPreferences(value IPreferences) - LimitsNavigationsToAppBoundDomains() bool - SetLimitsNavigationsToAppBoundDomains(value bool) - WebsiteDataStore() WebsiteDataStore - SetWebsiteDataStore(value IWebsiteDataStore) - UserInterfaceDirectionPolicy() UserInterfaceDirectionPolicy - SetUserInterfaceDirectionPolicy(value UserInterfaceDirectionPolicy) AllowsAirPlayForMediaPlayback() bool SetAllowsAirPlayForMediaPlayback(value bool) ApplicationNameForUserAgent() string SetApplicationNameForUserAgent(value string) + Preferences() Preferences + SetPreferences(value IPreferences) } // A collection of properties that you use to initialize a web view. [Full Topic] @@ -80,6 +80,14 @@ func (w_ WebViewConfiguration) Init() WebViewConfiguration { return rv } +// Returns the currently registered handler object for the specified URL scheme. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2875767-urlschemehandlerforurlscheme?language=objc +func (w_ WebViewConfiguration) UrlSchemeHandlerForURLScheme(urlScheme string) URLSchemeHandlerObject { + rv := objc.Call[URLSchemeHandlerObject](w_, objc.Sel("urlSchemeHandlerForURLScheme:"), urlScheme) + return rv +} + // Registers an object to load resources associated with the specified URL scheme. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2875766-seturlschemehandler?language=objc @@ -95,14 +103,36 @@ func (w_ WebViewConfiguration) SetURLSchemeHandlerObjectForURLScheme(urlSchemeHa objc.Call[objc.Void](w_, objc.Sel("setURLSchemeHandler:forURLScheme:"), urlSchemeHandlerObject, urlScheme) } -// Returns the currently registered handler object for the specified URL scheme. [Full Topic] +// A Boolean value that indicates whether the web view limits navigation to pages within the app’s domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2875767-urlschemehandlerforurlscheme?language=objc -func (w_ WebViewConfiguration) UrlSchemeHandlerForURLScheme(urlScheme string) URLSchemeHandlerObject { - rv := objc.Call[URLSchemeHandlerObject](w_, objc.Sel("urlSchemeHandlerForURLScheme:"), urlScheme) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3585117-limitsnavigationstoappbounddomai?language=objc +func (w_ WebViewConfiguration) LimitsNavigationsToAppBoundDomains() bool { + rv := objc.Call[bool](w_, objc.Sel("limitsNavigationsToAppBoundDomains")) + return rv +} + +// A Boolean value that indicates whether the web view limits navigation to pages within the app’s domain. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3585117-limitsnavigationstoappbounddomai?language=objc +func (w_ WebViewConfiguration) SetLimitsNavigationsToAppBoundDomains(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setLimitsNavigationsToAppBoundDomains:"), value) +} + +// A Boolean value that indicates whether the web view should automatically upgrade supported HTTP requests to HTTPS. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3752243-upgradeknownhoststohttps?language=objc +func (w_ WebViewConfiguration) UpgradeKnownHostsToHTTPS() bool { + rv := objc.Call[bool](w_, objc.Sel("upgradeKnownHostsToHTTPS")) return rv } +// A Boolean value that indicates whether the web view should automatically upgrade supported HTTP requests to HTTPS. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3752243-upgradeknownhoststohttps?language=objc +func (w_ WebViewConfiguration) SetUpgradeKnownHostsToHTTPS(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setUpgradeKnownHostsToHTTPS:"), value) +} + // The object that coordinates interactions between your app’s native code and the webpage’s scripts and other content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395668-usercontentcontroller?language=objc @@ -133,6 +163,21 @@ func (w_ WebViewConfiguration) SetDefaultWebpagePreferences(value IWebpagePrefer objc.Call[objc.Void](w_, objc.Sel("setDefaultWebpagePreferences:"), value) } +// The object you use to get and set the site’s cookies and to track the cached data objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395661-websitedatastore?language=objc +func (w_ WebViewConfiguration) WebsiteDataStore() WebsiteDataStore { + rv := objc.Call[WebsiteDataStore](w_, objc.Sel("websiteDataStore")) + return rv +} + +// The object you use to get and set the site’s cookies and to track the cached data objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395661-websitedatastore?language=objc +func (w_ WebViewConfiguration) SetWebsiteDataStore(value IWebsiteDataStore) { + objc.Call[objc.Void](w_, objc.Sel("setWebsiteDataStore:"), value) +} + // The media types that require a user gesture to begin playing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1851524-mediatypesrequiringuseractionfor?language=objc @@ -148,6 +193,21 @@ func (w_ WebViewConfiguration) SetMediaTypesRequiringUserActionForPlayback(value objc.Call[objc.Void](w_, objc.Sel("setMediaTypesRequiringUserActionForPlayback:"), value) } +// The directionality of user interface elements. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1690322-userinterfacedirectionpolicy?language=objc +func (w_ WebViewConfiguration) UserInterfaceDirectionPolicy() UserInterfaceDirectionPolicy { + rv := objc.Call[UserInterfaceDirectionPolicy](w_, objc.Sel("userInterfaceDirectionPolicy")) + return rv +} + +// The directionality of user interface elements. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1690322-userinterfacedirectionpolicy?language=objc +func (w_ WebViewConfiguration) SetUserInterfaceDirectionPolicy(value UserInterfaceDirectionPolicy) { + objc.Call[objc.Void](w_, objc.Sel("setUserInterfaceDirectionPolicy:"), value) +} + // A Boolean value that indicates whether the web view suppresses content rendering until the content is fully loaded into memory. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395663-suppressesincrementalrendering?language=objc @@ -163,21 +223,6 @@ func (w_ WebViewConfiguration) SetSuppressesIncrementalRendering(value bool) { objc.Call[objc.Void](w_, objc.Sel("setSuppressesIncrementalRendering:"), value) } -// A Boolean value that indicates whether the web view should automatically upgrade supported HTTP requests to HTTPS. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3752243-upgradeknownhoststohttps?language=objc -func (w_ WebViewConfiguration) UpgradeKnownHostsToHTTPS() bool { - rv := objc.Call[bool](w_, objc.Sel("upgradeKnownHostsToHTTPS")) - return rv -} - -// A Boolean value that indicates whether the web view should automatically upgrade supported HTTP requests to HTTPS. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3752243-upgradeknownhoststohttps?language=objc -func (w_ WebViewConfiguration) SetUpgradeKnownHostsToHTTPS(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setUpgradeKnownHostsToHTTPS:"), value) -} - // The object that coordinates the processes the web view uses to render its web content and execute scripts. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395659-processpool?language=objc @@ -193,66 +238,6 @@ func (w_ WebViewConfiguration) SetProcessPool(value IProcessPool) { objc.Call[objc.Void](w_, objc.Sel("setProcessPool:"), value) } -// The object that manages the preference-related settings for the web view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395666-preferences?language=objc -func (w_ WebViewConfiguration) Preferences() Preferences { - rv := objc.Call[Preferences](w_, objc.Sel("preferences")) - return rv -} - -// The object that manages the preference-related settings for the web view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395666-preferences?language=objc -func (w_ WebViewConfiguration) SetPreferences(value IPreferences) { - objc.Call[objc.Void](w_, objc.Sel("setPreferences:"), value) -} - -// A Boolean value that indicates whether the web view limits navigation to pages within the app’s domain. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3585117-limitsnavigationstoappbounddomai?language=objc -func (w_ WebViewConfiguration) LimitsNavigationsToAppBoundDomains() bool { - rv := objc.Call[bool](w_, objc.Sel("limitsNavigationsToAppBoundDomains")) - return rv -} - -// A Boolean value that indicates whether the web view limits navigation to pages within the app’s domain. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3585117-limitsnavigationstoappbounddomai?language=objc -func (w_ WebViewConfiguration) SetLimitsNavigationsToAppBoundDomains(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setLimitsNavigationsToAppBoundDomains:"), value) -} - -// The object you use to get and set the site’s cookies and to track the cached data objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395661-websitedatastore?language=objc -func (w_ WebViewConfiguration) WebsiteDataStore() WebsiteDataStore { - rv := objc.Call[WebsiteDataStore](w_, objc.Sel("websiteDataStore")) - return rv -} - -// The object you use to get and set the site’s cookies and to track the cached data objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395661-websitedatastore?language=objc -func (w_ WebViewConfiguration) SetWebsiteDataStore(value IWebsiteDataStore) { - objc.Call[objc.Void](w_, objc.Sel("setWebsiteDataStore:"), value) -} - -// The directionality of user interface elements. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1690322-userinterfacedirectionpolicy?language=objc -func (w_ WebViewConfiguration) UserInterfaceDirectionPolicy() UserInterfaceDirectionPolicy { - rv := objc.Call[UserInterfaceDirectionPolicy](w_, objc.Sel("userInterfaceDirectionPolicy")) - return rv -} - -// The directionality of user interface elements. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1690322-userinterfacedirectionpolicy?language=objc -func (w_ WebViewConfiguration) SetUserInterfaceDirectionPolicy(value UserInterfaceDirectionPolicy) { - objc.Call[objc.Void](w_, objc.Sel("setUserInterfaceDirectionPolicy:"), value) -} - // A Boolean value that indicates whether the web view allows media playback over AirPlay. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395673-allowsairplayformediaplayback?language=objc @@ -282,3 +267,18 @@ func (w_ WebViewConfiguration) ApplicationNameForUserAgent() string { func (w_ WebViewConfiguration) SetApplicationNameForUserAgent(value string) { objc.Call[objc.Void](w_, objc.Sel("setApplicationNameForUserAgent:"), value) } + +// The object that manages the preference-related settings for the web view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395666-preferences?language=objc +func (w_ WebViewConfiguration) Preferences() Preferences { + rv := objc.Call[Preferences](w_, objc.Sel("preferences")) + return rv +} + +// The object that manages the preference-related settings for the web view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395666-preferences?language=objc +func (w_ WebViewConfiguration) SetPreferences(value IPreferences) { + objc.Call[objc.Void](w_, objc.Sel("setPreferences:"), value) +} diff --git a/macos/webkit/website_data_store.gen.go b/macos/webkit/website_data_store.gen.go index 5c1d9261..e5f5c248 100644 --- a/macos/webkit/website_data_store.gen.go +++ b/macos/webkit/website_data_store.gen.go @@ -19,9 +19,8 @@ type _WebsiteDataStoreClass struct { // An interface definition for the [WebsiteDataStore] class. type IWebsiteDataStore interface { objc.IObject - RemoveDataOfTypesModifiedSinceCompletionHandler(dataTypes foundation.ISet, date foundation.IDate, completionHandler func()) - RemoveDataOfTypesForDataRecordsCompletionHandler(dataTypes foundation.ISet, dataRecords []IWebsiteDataRecord, completionHandler func()) FetchDataRecordsOfTypesCompletionHandler(dataTypes foundation.ISet, completionHandler func(arg0 []WebsiteDataRecord)) + RemoveDataOfTypesModifiedSinceCompletionHandler(dataTypes foundation.ISet, date foundation.IDate, completionHandler func()) IsPersistent() bool HttpCookieStore() HTTPCookieStore } @@ -59,21 +58,6 @@ func (w_ WebsiteDataStore) Init() WebsiteDataStore { return rv } -// Returns the set of all the available data types. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532929-allwebsitedatatypes?language=objc -func (wc _WebsiteDataStoreClass) AllWebsiteDataTypes() foundation.Set { - rv := objc.Call[foundation.Set](wc, objc.Sel("allWebsiteDataTypes")) - return rv -} - -// Returns the set of all the available data types. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532929-allwebsitedatatypes?language=objc -func WebsiteDataStore_AllWebsiteDataTypes() foundation.Set { - return WebsiteDataStoreClass.AllWebsiteDataTypes() -} - // Returns the default data store, which stores data persistently to disk. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532937-defaultdatastore?language=objc @@ -89,25 +73,26 @@ func WebsiteDataStore_DefaultDataStore() WebsiteDataStore { return WebsiteDataStoreClass.DefaultDataStore() } -// Removes website data that changed after the specified date. [Full Topic] +// Fetches the specified types of records from the data store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532938-removedataoftypes?language=objc -func (w_ WebsiteDataStore) RemoveDataOfTypesModifiedSinceCompletionHandler(dataTypes foundation.ISet, date foundation.IDate, completionHandler func()) { - objc.Call[objc.Void](w_, objc.Sel("removeDataOfTypes:modifiedSince:completionHandler:"), dataTypes, date, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532932-fetchdatarecordsoftypes?language=objc +func (w_ WebsiteDataStore) FetchDataRecordsOfTypesCompletionHandler(dataTypes foundation.ISet, completionHandler func(arg0 []WebsiteDataRecord)) { + objc.Call[objc.Void](w_, objc.Sel("fetchDataRecordsOfTypes:completionHandler:"), dataTypes, completionHandler) } -// Removes the specified types of website data from one or more data records. [Full Topic] +// Returns the set of all the available data types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532936-removedataoftypes?language=objc -func (w_ WebsiteDataStore) RemoveDataOfTypesForDataRecordsCompletionHandler(dataTypes foundation.ISet, dataRecords []IWebsiteDataRecord, completionHandler func()) { - objc.Call[objc.Void](w_, objc.Sel("removeDataOfTypes:forDataRecords:completionHandler:"), dataTypes, dataRecords, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532929-allwebsitedatatypes?language=objc +func (wc _WebsiteDataStoreClass) AllWebsiteDataTypes() foundation.Set { + rv := objc.Call[foundation.Set](wc, objc.Sel("allWebsiteDataTypes")) + return rv } -// Fetches the specified types of records from the data store. [Full Topic] +// Returns the set of all the available data types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532932-fetchdatarecordsoftypes?language=objc -func (w_ WebsiteDataStore) FetchDataRecordsOfTypesCompletionHandler(dataTypes foundation.ISet, completionHandler func(arg0 []WebsiteDataRecord)) { - objc.Call[objc.Void](w_, objc.Sel("fetchDataRecordsOfTypes:completionHandler:"), dataTypes, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532929-allwebsitedatatypes?language=objc +func WebsiteDataStore_AllWebsiteDataTypes() foundation.Set { + return WebsiteDataStoreClass.AllWebsiteDataTypes() } // Creates a new data store object that stores website data in memory, and doesn’t write that data to disk. [Full Topic] @@ -125,6 +110,13 @@ func WebsiteDataStore_NonPersistentDataStore() WebsiteDataStore { return WebsiteDataStoreClass.NonPersistentDataStore() } +// Removes website data that changed after the specified date. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532938-removedataoftypes?language=objc +func (w_ WebsiteDataStore) RemoveDataOfTypesModifiedSinceCompletionHandler(dataTypes foundation.ISet, date foundation.IDate, completionHandler func()) { + objc.Call[objc.Void](w_, objc.Sel("removeDataOfTypes:modifiedSince:completionHandler:"), dataTypes, date, completionHandler) +} + // A Boolean value that indicates whether this object stores data to disk. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532928-persistent?language=objc diff --git a/macos/webkit/window_features.gen.go b/macos/webkit/window_features.gen.go index d8366973..404b3bc6 100644 --- a/macos/webkit/window_features.gen.go +++ b/macos/webkit/window_features.gen.go @@ -19,14 +19,16 @@ type _WindowFeaturesClass struct { // An interface definition for the [WindowFeatures] class. type IWindowFeatures interface { objc.IObject - MenuBarVisibility() foundation.Number - ToolbarsVisibility() foundation.Number - StatusBarVisibility() foundation.Number AllowsResizing() foundation.Number - Height() foundation.Number + Width() foundation.Number X() foundation.Number + SetX(value foundation.INumber) Y() foundation.Number - Width() foundation.Number + SetY(value foundation.INumber) + StatusBarVisibility() foundation.Number + Height() foundation.Number + ToolbarsVisibility() foundation.Number + MenuBarVisibility() foundation.Number } // Display-related attributes that a webpage requests for its window. [Full Topic] @@ -62,30 +64,6 @@ func (w_ WindowFeatures) Init() WindowFeatures { return rv } -// A Boolean value that indicates whether the webpage requests a visible menu bar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1538001-menubarvisibility?language=objc -func (w_ WindowFeatures) MenuBarVisibility() foundation.Number { - rv := objc.Call[foundation.Number](w_, objc.Sel("menuBarVisibility")) - return rv -} - -// A Boolean value that indicates whether the webpage requested a visible toolbar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1536218-toolbarsvisibility?language=objc -func (w_ WindowFeatures) ToolbarsVisibility() foundation.Number { - rv := objc.Call[foundation.Number](w_, objc.Sel("toolbarsVisibility")) - return rv -} - -// A Boolean value that indicates whether the webpage requested a visible status bar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1536638-statusbarvisibility?language=objc -func (w_ WindowFeatures) StatusBarVisibility() foundation.Number { - rv := objc.Call[foundation.Number](w_, objc.Sel("statusBarVisibility")) - return rv -} - // A Boolean value that indicates whether to make the containing window window resizable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1536871-allowsresizing?language=objc @@ -94,11 +72,11 @@ func (w_ WindowFeatures) AllowsResizing() foundation.Number { return rv } -// The requested height of the containing window. [Full Topic] +// The requested width of the containing window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1536826-height?language=objc -func (w_ WindowFeatures) Height() foundation.Number { - rv := objc.Call[foundation.Number](w_, objc.Sel("height")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1537562-width?language=objc +func (w_ WindowFeatures) Width() foundation.Number { + rv := objc.Call[foundation.Number](w_, objc.Sel("width")) return rv } @@ -110,6 +88,13 @@ func (w_ WindowFeatures) X() foundation.Number { return rv } +// The requested x-coordinate of the containing window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1537705-x?language=objc +func (w_ WindowFeatures) SetX(value foundation.INumber) { + objc.Call[objc.Void](w_, objc.Sel("setX:"), value) +} + // The requested y-coordinate of the containing window. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1537052-y?language=objc @@ -118,10 +103,41 @@ func (w_ WindowFeatures) Y() foundation.Number { return rv } -// The requested width of the containing window. [Full Topic] +// The requested y-coordinate of the containing window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1537562-width?language=objc -func (w_ WindowFeatures) Width() foundation.Number { - rv := objc.Call[foundation.Number](w_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1537052-y?language=objc +func (w_ WindowFeatures) SetY(value foundation.INumber) { + objc.Call[objc.Void](w_, objc.Sel("setY:"), value) +} + +// A Boolean value that indicates whether the webpage requested a visible status bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1536638-statusbarvisibility?language=objc +func (w_ WindowFeatures) StatusBarVisibility() foundation.Number { + rv := objc.Call[foundation.Number](w_, objc.Sel("statusBarVisibility")) + return rv +} + +// The requested height of the containing window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1536826-height?language=objc +func (w_ WindowFeatures) Height() foundation.Number { + rv := objc.Call[foundation.Number](w_, objc.Sel("height")) + return rv +} + +// A Boolean value that indicates whether the webpage requested a visible toolbar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1536218-toolbarsvisibility?language=objc +func (w_ WindowFeatures) ToolbarsVisibility() foundation.Number { + rv := objc.Call[foundation.Number](w_, objc.Sel("toolbarsVisibility")) + return rv +} + +// A Boolean value that indicates whether the webpage requests a visible menu bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1538001-menubarvisibility?language=objc +func (w_ WindowFeatures) MenuBarVisibility() foundation.Number { + rv := objc.Call[foundation.Number](w_, objc.Sel("menuBarVisibility")) return rv }